index.6c36cb53.js 4.5 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749
  1. var Cg=Object.defineProperty,Sg=Object.defineProperties;var Eg=Object.getOwnPropertyDescriptors;var Wm=Object.getOwnPropertySymbols;var xg=Object.prototype.hasOwnProperty,bg=Object.prototype.propertyIsEnumerable;var Ka=Math.pow,hg=(t,e,r)=>e in t?Cg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Pt=(t,e)=>{for(var r in e||(e={}))xg.call(e,r)&&hg(t,r,e[r]);if(Wm)for(var r of Wm(e))bg.call(e,r)&&hg(t,r,e[r]);return t},ei=(t,e)=>Sg(t,Eg(e));var fd=(t,e)=>{var r={};for(var n in t)xg.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&Wm)for(var n of Wm(t))e.indexOf(n)<0&&bg.call(t,n)&&(r[n]=t[n]);return r};var tp=(t,e,r)=>(hg(t,typeof e!="symbol"?e+"":e,r),r);var Gr=(t,e,r)=>new Promise((n,o)=>{var s=v=>{try{l(r.next(v))}catch(x){o(x)}},c=v=>{try{l(r.throw(v))}catch(x){o(x)}},l=v=>v.done?n(v.value):Promise.resolve(v.value).then(s,c);l((r=r.apply(t,e)).next())});(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&n(c)}).observe(document,{childList:!0,subtree:!0});function r(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerpolicy&&(s.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?s.credentials="include":o.crossorigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(o){if(o.ep)return;o.ep=!0;const s=r(o);fetch(o.href,s)}})();function makeMap(t,e){const r=Object.create(null),n=t.split(",");for(let o=0;o<n.length;o++)r[n[o]]=!0;return e?o=>!!r[o.toLowerCase()]:o=>!!r[o]}const EMPTY_OBJ={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,onRE$1=/^on[^a-z]/,isOn$1=t=>onRE$1.test(t),isModelListener=t=>t.startsWith("onUpdate:"),extend$1=Object.assign,remove=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},hasOwnProperty$4=Object.prototype.hasOwnProperty,hasOwn$1=(t,e)=>hasOwnProperty$4.call(t,e),isArray$3=Array.isArray,isMap=t=>toTypeString$1(t)==="[object Map]",isSet=t=>toTypeString$1(t)==="[object Set]",isDate$2=t=>toTypeString$1(t)==="[object Date]",isRegExp$2=t=>toTypeString$1(t)==="[object RegExp]",isFunction$3=t=>typeof t=="function",isString$4=t=>typeof t=="string",isSymbol=t=>typeof t=="symbol",isObject$4=t=>t!==null&&typeof t=="object",isPromise$2=t=>isObject$4(t)&&isFunction$3(t.then)&&isFunction$3(t.catch),objectToString$1=Object.prototype.toString,toTypeString$1=t=>objectToString$1.call(t),toRawType=t=>toTypeString$1(t).slice(8,-1),isPlainObject$3=t=>toTypeString$1(t)==="[object Object]",isIntegerKey=t=>isString$4(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=t=>{const e=Object.create(null);return r=>e[r]||(e[r]=t(r))},camelizeRE=/-(\w)/g,camelize=cacheStringFunction(t=>t.replace(camelizeRE,(e,r)=>r?r.toUpperCase():"")),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(t=>t.replace(hyphenateRE,"-$1").toLowerCase()),capitalize$1=cacheStringFunction(t=>t.charAt(0).toUpperCase()+t.slice(1)),toHandlerKey=cacheStringFunction(t=>t?`on${capitalize$1(t)}`:""),hasChanged=(t,e)=>!Object.is(t,e),invokeArrayFns=(t,e)=>{for(let r=0;r<t.length;r++)t[r](e)},def=(t,e,r)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:r})},looseToNumber=t=>{const e=parseFloat(t);return isNaN(e)?t:e},toNumber=t=>{const e=isString$4(t)?Number(t):NaN;return isNaN(e)?t:e};let _globalThis$1;const getGlobalThis$1=()=>_globalThis$1||(_globalThis$1=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{}),GLOBALS_WHITE_LISTED="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console",isGloballyWhitelisted=makeMap(GLOBALS_WHITE_LISTED);function normalizeStyle(t){if(isArray$3(t)){const e={};for(let r=0;r<t.length;r++){const n=t[r],o=isString$4(n)?parseStringStyle(n):normalizeStyle(n);if(o)for(const s in o)e[s]=o[s]}return e}else{if(isString$4(t))return t;if(isObject$4(t))return t}}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=/\/\*[^]*?\*\//g;function parseStringStyle(t){const e={};return t.replace(styleCommentRE,"").split(listDelimiterRE).forEach(r=>{if(r){const n=r.split(propertyDelimiterRE);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function normalizeClass(t){let e="";if(isString$4(t))e=t;else if(isArray$3(t))for(let r=0;r<t.length;r++){const n=normalizeClass(t[r]);n&&(e+=n+" ")}else if(isObject$4(t))for(const r in t)t[r]&&(e+=r+" ");return e.trim()}function normalizeProps(t){if(!t)return null;let{class:e,style:r}=t;return e&&!isString$4(e)&&(t.class=normalizeClass(e)),r&&(t.style=normalizeStyle(r)),t}const specialBooleanAttrs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",isSpecialBooleanAttr=makeMap(specialBooleanAttrs);function includeBooleanAttr(t){return!!t||t===""}function looseCompareArrays(t,e){if(t.length!==e.length)return!1;let r=!0;for(let n=0;r&&n<t.length;n++)r=looseEqual(t[n],e[n]);return r}function looseEqual(t,e){if(t===e)return!0;let r=isDate$2(t),n=isDate$2(e);if(r||n)return r&&n?t.getTime()===e.getTime():!1;if(r=isSymbol(t),n=isSymbol(e),r||n)return t===e;if(r=isArray$3(t),n=isArray$3(e),r||n)return r&&n?looseCompareArrays(t,e):!1;if(r=isObject$4(t),n=isObject$4(e),r||n){if(!r||!n)return!1;const o=Object.keys(t).length,s=Object.keys(e).length;if(o!==s)return!1;for(const c in t){const l=t.hasOwnProperty(c),v=e.hasOwnProperty(c);if(l&&!v||!l&&v||!looseEqual(t[c],e[c]))return!1}}return String(t)===String(e)}function looseIndexOf(t,e){return t.findIndex(r=>looseEqual(r,e))}const toDisplayString$1=t=>isString$4(t)?t:t==null?"":isArray$3(t)||isObject$4(t)&&(t.toString===objectToString$1||!isFunction$3(t.toString))?JSON.stringify(t,replacer,2):String(t),replacer=(t,e)=>e&&e.__v_isRef?replacer(t,e.value):isMap(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((r,[n,o])=>(r[`${n} =>`]=o,r),{})}:isSet(e)?{[`Set(${e.size})`]:[...e.values()]}:isObject$4(e)&&!isArray$3(e)&&!isPlainObject$3(e)?String(e):e;let activeEffectScope;class EffectScope{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=activeEffectScope,!e&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const r=activeEffectScope;try{return activeEffectScope=this,e()}finally{activeEffectScope=r}}}on(){activeEffectScope=this}off(){activeEffectScope=this.parent}stop(e){if(this._active){let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.scopes)for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);if(!this.detached&&this.parent&&!e){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function effectScope(t){return new EffectScope(t)}function recordEffectScope(t,e=activeEffectScope){e&&e.active&&e.effects.push(t)}function getCurrentScope(){return activeEffectScope}function onScopeDispose(t){activeEffectScope&&activeEffectScope.cleanups.push(t)}const createDep=t=>{const e=new Set(t);return e.w=0,e.n=0,e},wasTracked=t=>(t.w&trackOpBit)>0,newTracked=t=>(t.n&trackOpBit)>0,initDepMarkers=({deps:t})=>{if(t.length)for(let e=0;e<t.length;e++)t[e].w|=trackOpBit},finalizeDepMarkers=t=>{const{deps:e}=t;if(e.length){let r=0;for(let n=0;n<e.length;n++){const o=e[n];wasTracked(o)&&!newTracked(o)?o.delete(t):e[r++]=o,o.w&=~trackOpBit,o.n&=~trackOpBit}e.length=r}},targetMap=new WeakMap;let effectTrackDepth=0,trackOpBit=1;const maxMarkerBits=30;let activeEffect;const ITERATE_KEY=Symbol(""),MAP_KEY_ITERATE_KEY=Symbol("");class ReactiveEffect{constructor(e,r=null,n){this.fn=e,this.scheduler=r,this.active=!0,this.deps=[],this.parent=void 0,recordEffectScope(this,n)}run(){if(!this.active)return this.fn();let e=activeEffect,r=shouldTrack;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=activeEffect,activeEffect=this,shouldTrack=!0,trackOpBit=1<<++effectTrackDepth,effectTrackDepth<=maxMarkerBits?initDepMarkers(this):cleanupEffect(this),this.fn()}finally{effectTrackDepth<=maxMarkerBits&&finalizeDepMarkers(this),trackOpBit=1<<--effectTrackDepth,activeEffect=this.parent,shouldTrack=r,this.parent=void 0,this.deferStop&&this.stop()}}stop(){activeEffect===this?this.deferStop=!0:this.active&&(cleanupEffect(this),this.onStop&&this.onStop(),this.active=!1)}}function cleanupEffect(t){const{deps:e}=t;if(e.length){for(let r=0;r<e.length;r++)e[r].delete(t);e.length=0}}function effect(t,e){t.effect&&(t=t.effect.fn);const r=new ReactiveEffect(t);e&&(extend$1(r,e),e.scope&&recordEffectScope(r,e.scope)),(!e||!e.lazy)&&r.run();const n=r.run.bind(r);return n.effect=r,n}function stop(t){t.effect.stop()}let shouldTrack=!0;const trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function resetTracking(){const t=trackStack.pop();shouldTrack=t===void 0?!0:t}function track(t,e,r){if(shouldTrack&&activeEffect){let n=targetMap.get(t);n||targetMap.set(t,n=new Map);let o=n.get(r);o||n.set(r,o=createDep()),trackEffects(o)}}function trackEffects(t,e){let r=!1;effectTrackDepth<=maxMarkerBits?newTracked(t)||(t.n|=trackOpBit,r=!wasTracked(t)):r=!t.has(activeEffect),r&&(t.add(activeEffect),activeEffect.deps.push(t))}function trigger(t,e,r,n,o,s){const c=targetMap.get(t);if(!c)return;let l=[];if(e==="clear")l=[...c.values()];else if(r==="length"&&isArray$3(t)){const v=Number(n);c.forEach((x,w)=>{(w==="length"||w>=v)&&l.push(x)})}else switch(r!==void 0&&l.push(c.get(r)),e){case"add":isArray$3(t)?isIntegerKey(r)&&l.push(c.get("length")):(l.push(c.get(ITERATE_KEY)),isMap(t)&&l.push(c.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray$3(t)||(l.push(c.get(ITERATE_KEY)),isMap(t)&&l.push(c.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap(t)&&l.push(c.get(ITERATE_KEY));break}if(l.length===1)l[0]&&triggerEffects(l[0]);else{const v=[];for(const x of l)x&&v.push(...x);triggerEffects(createDep(v))}}function triggerEffects(t,e){const r=isArray$3(t)?t:[...t];for(const n of r)n.computed&&triggerEffect(n);for(const n of r)n.computed||triggerEffect(n)}function triggerEffect(t,e){(t!==activeEffect||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function getDepFromReactive(t,e){var r;return(r=targetMap.get(t))==null?void 0:r.get(e)}const isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(isSymbol)),get$1=createGetter(),shallowGet=createGetter(!1,!0),readonlyGet=createGetter(!0),shallowReadonlyGet=createGetter(!0,!0),arrayInstrumentations=createArrayInstrumentations();function createArrayInstrumentations(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...r){const n=toRaw(this);for(let s=0,c=this.length;s<c;s++)track(n,"get",s+"");const o=n[e](...r);return o===-1||o===!1?n[e](...r.map(toRaw)):o}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...r){pauseTracking();const n=toRaw(this)[e].apply(this,r);return resetTracking(),n}}),t}function hasOwnProperty$3(t){const e=toRaw(this);return track(e,"has",t),e.hasOwnProperty(t)}function createGetter(t=!1,e=!1){return function(n,o,s){if(o==="__v_isReactive")return!t;if(o==="__v_isReadonly")return t;if(o==="__v_isShallow")return e;if(o==="__v_raw"&&s===(t?e?shallowReadonlyMap:readonlyMap:e?shallowReactiveMap:reactiveMap).get(n))return n;const c=isArray$3(n);if(!t){if(c&&hasOwn$1(arrayInstrumentations,o))return Reflect.get(arrayInstrumentations,o,s);if(o==="hasOwnProperty")return hasOwnProperty$3}const l=Reflect.get(n,o,s);return(isSymbol(o)?builtInSymbols.has(o):isNonTrackableKeys(o))||(t||track(n,"get",o),e)?l:isRef(l)?c&&isIntegerKey(o)?l:l.value:isObject$4(l)?t?readonly(l):reactive(l):l}}const set$1=createSetter(),shallowSet=createSetter(!0);function createSetter(t=!1){return function(r,n,o,s){let c=r[n];if(isReadonly(c)&&isRef(c)&&!isRef(o))return!1;if(!t&&(!isShallow(o)&&!isReadonly(o)&&(c=toRaw(c),o=toRaw(o)),!isArray$3(r)&&isRef(c)&&!isRef(o)))return c.value=o,!0;const l=isArray$3(r)&&isIntegerKey(n)?Number(n)<r.length:hasOwn$1(r,n),v=Reflect.set(r,n,o,s);return r===toRaw(s)&&(l?hasChanged(o,c)&&trigger(r,"set",n,o):trigger(r,"add",n,o)),v}}function deleteProperty(t,e){const r=hasOwn$1(t,e);t[e];const n=Reflect.deleteProperty(t,e);return n&&r&&trigger(t,"delete",e,void 0),n}function has$1(t,e){const r=Reflect.has(t,e);return(!isSymbol(e)||!builtInSymbols.has(e))&&track(t,"has",e),r}function ownKeys(t){return track(t,"iterate",isArray$3(t)?"length":ITERATE_KEY),Reflect.ownKeys(t)}const mutableHandlers={get:get$1,set:set$1,deleteProperty,has:has$1,ownKeys},readonlyHandlers={get:readonlyGet,set(t,e){return!0},deleteProperty(t,e){return!0}},shallowReactiveHandlers=extend$1({},mutableHandlers,{get:shallowGet,set:shallowSet}),shallowReadonlyHandlers=extend$1({},readonlyHandlers,{get:shallowReadonlyGet}),toShallow=t=>t,getProto=t=>Reflect.getPrototypeOf(t);function get(t,e,r=!1,n=!1){t=t.__v_raw;const o=toRaw(t),s=toRaw(e);r||(e!==s&&track(o,"get",e),track(o,"get",s));const{has:c}=getProto(o),l=n?toShallow:r?toReadonly:toReactive;if(c.call(o,e))return l(t.get(e));if(c.call(o,s))return l(t.get(s));t!==o&&t.get(e)}function has$2(t,e=!1){const r=this.__v_raw,n=toRaw(r),o=toRaw(t);return e||(t!==o&&track(n,"has",t),track(n,"has",o)),t===o?r.has(t):r.has(t)||r.has(o)}function size(t,e=!1){return t=t.__v_raw,!e&&track(toRaw(t),"iterate",ITERATE_KEY),Reflect.get(t,"size",t)}function add$1(t){t=toRaw(t);const e=toRaw(this);return getProto(e).has.call(e,t)||(e.add(t),trigger(e,"add",t,t)),this}function set(t,e){e=toRaw(e);const r=toRaw(this),{has:n,get:o}=getProto(r);let s=n.call(r,t);s||(t=toRaw(t),s=n.call(r,t));const c=o.call(r,t);return r.set(t,e),s?hasChanged(e,c)&&trigger(r,"set",t,e):trigger(r,"add",t,e),this}function deleteEntry(t){const e=toRaw(this),{has:r,get:n}=getProto(e);let o=r.call(e,t);o||(t=toRaw(t),o=r.call(e,t)),n&&n.call(e,t);const s=e.delete(t);return o&&trigger(e,"delete",t,void 0),s}function clear(){const t=toRaw(this),e=t.size!==0,r=t.clear();return e&&trigger(t,"clear",void 0,void 0),r}function createForEach(t,e){return function(n,o){const s=this,c=s.__v_raw,l=toRaw(c),v=e?toShallow:t?toReadonly:toReactive;return!t&&track(l,"iterate",ITERATE_KEY),c.forEach((x,w)=>n.call(o,v(x),v(w),s))}}function createIterableMethod(t,e,r){return function(...n){const o=this.__v_raw,s=toRaw(o),c=isMap(s),l=t==="entries"||t===Symbol.iterator&&c,v=t==="keys"&&c,x=o[t](...n),w=r?toShallow:e?toReadonly:toReactive;return!e&&track(s,"iterate",v?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:_,done:b}=x.next();return b?{value:_,done:b}:{value:l?[w(_[0]),w(_[1])]:w(_),done:b}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(t){return function(...e){return t==="delete"?!1:this}}function createInstrumentations(){const t={get(s){return get(this,s)},get size(){return size(this)},has:has$2,add:add$1,set,delete:deleteEntry,clear,forEach:createForEach(!1,!1)},e={get(s){return get(this,s,!1,!0)},get size(){return size(this)},has:has$2,add:add$1,set,delete:deleteEntry,clear,forEach:createForEach(!1,!0)},r={get(s){return get(this,s,!0)},get size(){return size(this,!0)},has(s){return has$2.call(this,s,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},n={get(s){return get(this,s,!0,!0)},get size(){return size(this,!0)},has(s){return has$2.call(this,s,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{t[s]=createIterableMethod(s,!1,!1),r[s]=createIterableMethod(s,!0,!1),e[s]=createIterableMethod(s,!1,!0),n[s]=createIterableMethod(s,!0,!0)}),[t,r,e,n]}const[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter(t,e){const r=e?t?shallowReadonlyInstrumentations:shallowInstrumentations:t?readonlyInstrumentations:mutableInstrumentations;return(n,o,s)=>o==="__v_isReactive"?!t:o==="__v_isReadonly"?t:o==="__v_raw"?n:Reflect.get(hasOwn$1(r,o)&&o in n?r:n,o,s)}const mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},shallowCollectionHandlers={get:createInstrumentationGetter(!1,!0)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)},shallowReadonlyCollectionHandlers={get:createInstrumentationGetter(!0,!0)},reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(t){return t.__v_skip||!Object.isExtensible(t)?0:targetTypeMap(toRawType(t))}function reactive(t){return isReadonly(t)?t:createReactiveObject(t,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive(t){return createReactiveObject(t,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly(t){return createReactiveObject(t,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function shallowReadonly(t){return createReactiveObject(t,!0,shallowReadonlyHandlers,shallowReadonlyCollectionHandlers,shallowReadonlyMap)}function createReactiveObject(t,e,r,n,o){if(!isObject$4(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const s=o.get(t);if(s)return s;const c=getTargetType(t);if(c===0)return t;const l=new Proxy(t,c===2?n:r);return o.set(t,l),l}function isReactive(t){return isReadonly(t)?isReactive(t.__v_raw):!!(t&&t.__v_isReactive)}function isReadonly(t){return!!(t&&t.__v_isReadonly)}function isShallow(t){return!!(t&&t.__v_isShallow)}function isProxy(t){return isReactive(t)||isReadonly(t)}function toRaw(t){const e=t&&t.__v_raw;return e?toRaw(e):t}function markRaw(t){return def(t,"__v_skip",!0),t}const toReactive=t=>isObject$4(t)?reactive(t):t,toReadonly=t=>isObject$4(t)?readonly(t):t;function trackRefValue(t){shouldTrack&&activeEffect&&(t=toRaw(t),trackEffects(t.dep||(t.dep=createDep())))}function triggerRefValue(t,e){t=toRaw(t);const r=t.dep;r&&triggerEffects(r)}function isRef(t){return!!(t&&t.__v_isRef===!0)}function ref(t){return createRef(t,!1)}function shallowRef(t){return createRef(t,!0)}function createRef(t,e){return isRef(t)?t:new RefImpl(t,e)}class RefImpl{constructor(e,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?e:toRaw(e),this._value=r?e:toReactive(e)}get value(){return trackRefValue(this),this._value}set value(e){const r=this.__v_isShallow||isShallow(e)||isReadonly(e);e=r?e:toRaw(e),hasChanged(e,this._rawValue)&&(this._rawValue=e,this._value=r?e:toReactive(e),triggerRefValue(this))}}function triggerRef(t){triggerRefValue(t)}function unref(t){return isRef(t)?t.value:t}function toValue(t){return isFunction$3(t)?t():unref(t)}const shallowUnwrapHandlers={get:(t,e,r)=>unref(Reflect.get(t,e,r)),set:(t,e,r,n)=>{const o=t[e];return isRef(o)&&!isRef(r)?(o.value=r,!0):Reflect.set(t,e,r,n)}};function proxyRefs(t){return isReactive(t)?t:new Proxy(t,shallowUnwrapHandlers)}class CustomRefImpl{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:r,set:n}=e(()=>trackRefValue(this),()=>triggerRefValue(this));this._get=r,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function customRef(t){return new CustomRefImpl(t)}function toRefs(t){const e=isArray$3(t)?new Array(t.length):{};for(const r in t)e[r]=propertyToRef(t,r);return e}class ObjectRefImpl{constructor(e,r,n){this._object=e,this._key=r,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return getDepFromReactive(toRaw(this._object),this._key)}}class GetterRefImpl{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function toRef(t,e,r){return isRef(t)?t:isFunction$3(t)?new GetterRefImpl(t):isObject$4(t)&&arguments.length>1?propertyToRef(t,e,r):ref(t)}function propertyToRef(t,e,r){const n=t[e];return isRef(n)?n:new ObjectRefImpl(t,e,r)}class ComputedRefImpl{constructor(e,r,n,o){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new ReactiveEffect(e,()=>{this._dirty||(this._dirty=!0,triggerRefValue(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=toRaw(this);return trackRefValue(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function computed$1(t,e,r=!1){let n,o;const s=isFunction$3(t);return s?(n=t,o=NOOP):(n=t.get,o=t.set),new ComputedRefImpl(n,o,s||!o,r)}function warn$1(t,...e){}function assertNumber(t,e){}function callWithErrorHandling(t,e,r,n){let o;try{o=n?t(...n):t()}catch(s){handleError(s,e,r)}return o}function callWithAsyncErrorHandling(t,e,r,n){if(isFunction$3(t)){const s=callWithErrorHandling(t,e,r,n);return s&&isPromise$2(s)&&s.catch(c=>{handleError(c,e,r)}),s}const o=[];for(let s=0;s<t.length;s++)o.push(callWithAsyncErrorHandling(t[s],e,r,n));return o}function handleError(t,e,r,n=!0){const o=e?e.vnode:null;if(e){let s=e.parent;const c=e.proxy,l=r;for(;s;){const x=s.ec;if(x){for(let w=0;w<x.length;w++)if(x[w](t,c,l)===!1)return}s=s.parent}const v=e.appContext.config.errorHandler;if(v){callWithErrorHandling(v,null,10,[t,c,l]);return}}logError(t,r,o,n)}function logError(t,e,r,n=!0){console.error(t)}let isFlushing=!1,isFlushPending=!1;const queue=[];let flushIndex=0;const pendingPostFlushCbs=[];let activePostFlushCbs=null,postFlushIndex=0;const resolvedPromise=Promise.resolve();let currentFlushPromise=null;function nextTick(t){const e=currentFlushPromise||resolvedPromise;return t?e.then(this?t.bind(this):t):e}function findInsertionIndex(t){let e=flushIndex+1,r=queue.length;for(;e<r;){const n=e+r>>>1;getId(queue[n])<t?e=n+1:r=n}return e}function queueJob(t){(!queue.length||!queue.includes(t,isFlushing&&t.allowRecurse?flushIndex+1:flushIndex))&&(t.id==null?queue.push(t):queue.splice(findInsertionIndex(t.id),0,t),queueFlush())}function queueFlush(){!isFlushing&&!isFlushPending&&(isFlushPending=!0,currentFlushPromise=resolvedPromise.then(flushJobs))}function invalidateJob(t){const e=queue.indexOf(t);e>flushIndex&&queue.splice(e,1)}function queuePostFlushCb(t){isArray$3(t)?pendingPostFlushCbs.push(...t):(!activePostFlushCbs||!activePostFlushCbs.includes(t,t.allowRecurse?postFlushIndex+1:postFlushIndex))&&pendingPostFlushCbs.push(t),queueFlush()}function flushPreFlushCbs(t,e=isFlushing?flushIndex+1:0){for(;e<queue.length;e++){const r=queue[e];r&&r.pre&&(queue.splice(e,1),e--,r())}}function flushPostFlushCbs(t){if(pendingPostFlushCbs.length){const e=[...new Set(pendingPostFlushCbs)];if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...e);return}for(activePostFlushCbs=e,activePostFlushCbs.sort((r,n)=>getId(r)-getId(n)),postFlushIndex=0;postFlushIndex<activePostFlushCbs.length;postFlushIndex++)activePostFlushCbs[postFlushIndex]();activePostFlushCbs=null,postFlushIndex=0}}const getId=t=>t.id==null?1/0:t.id,comparator=(t,e)=>{const r=getId(t)-getId(e);if(r===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return r};function flushJobs(t){isFlushPending=!1,isFlushing=!0,queue.sort(comparator);const e=NOOP;try{for(flushIndex=0;flushIndex<queue.length;flushIndex++){const r=queue[flushIndex];r&&r.active!==!1&&callWithErrorHandling(r,null,14)}}finally{flushIndex=0,queue.length=0,flushPostFlushCbs(),isFlushing=!1,currentFlushPromise=null,(queue.length||pendingPostFlushCbs.length)&&flushJobs()}}let devtools$1,buffer$2=[];function setDevtoolsHook(t,e){var r,n;devtools$1=t,devtools$1?(devtools$1.enabled=!0,buffer$2.forEach(({event:o,args:s})=>devtools$1.emit(o,...s)),buffer$2=[]):typeof window!="undefined"&&window.HTMLElement&&!((n=(r=window.navigator)==null?void 0:r.userAgent)!=null&&n.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{setDevtoolsHook(s,e)}),setTimeout(()=>{devtools$1||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,buffer$2=[])},3e3)):buffer$2=[]}function emit(t,e,...r){if(t.isUnmounted)return;const n=t.vnode.props||EMPTY_OBJ;let o=r;const s=e.startsWith("update:"),c=s&&e.slice(7);if(c&&c in n){const w=`${c==="modelValue"?"model":c}Modifiers`,{number:_,trim:b}=n[w]||EMPTY_OBJ;b&&(o=r.map(E=>isString$4(E)?E.trim():E)),_&&(o=r.map(looseToNumber))}let l,v=n[l=toHandlerKey(e)]||n[l=toHandlerKey(camelize(e))];!v&&s&&(v=n[l=toHandlerKey(hyphenate(e))]),v&&callWithAsyncErrorHandling(v,t,6,o);const x=n[l+"Once"];if(x){if(!t.emitted)t.emitted={};else if(t.emitted[l])return;t.emitted[l]=!0,callWithAsyncErrorHandling(x,t,6,o)}}function normalizeEmitsOptions(t,e,r=!1){const n=e.emitsCache,o=n.get(t);if(o!==void 0)return o;const s=t.emits;let c={},l=!1;if(!isFunction$3(t)){const v=x=>{const w=normalizeEmitsOptions(x,e,!0);w&&(l=!0,extend$1(c,w))};!r&&e.mixins.length&&e.mixins.forEach(v),t.extends&&v(t.extends),t.mixins&&t.mixins.forEach(v)}return!s&&!l?(isObject$4(t)&&n.set(t,null),null):(isArray$3(s)?s.forEach(v=>c[v]=null):extend$1(c,s),isObject$4(t)&&n.set(t,c),c)}function isEmitListener(t,e){return!t||!isOn$1(e)?!1:(e=e.slice(2).replace(/Once$/,""),hasOwn$1(t,e[0].toLowerCase()+e.slice(1))||hasOwn$1(t,hyphenate(e))||hasOwn$1(t,e))}let currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(t){const e=currentRenderingInstance;return currentRenderingInstance=t,currentScopeId=t&&t.type.__scopeId||null,e}function pushScopeId(t){currentScopeId=t}function popScopeId(){currentScopeId=null}const withScopeId=t=>withCtx;function withCtx(t,e=currentRenderingInstance,r){if(!e||t._n)return t;const n=(...o)=>{n._d&&setBlockTracking(-1);const s=setCurrentRenderingInstance(e);let c;try{c=t(...o)}finally{setCurrentRenderingInstance(s),n._d&&setBlockTracking(1)}return c};return n._n=!0,n._c=!0,n._d=!0,n}function markAttrsAccessed(){}function renderComponentRoot(t){const{type:e,vnode:r,proxy:n,withProxy:o,props:s,propsOptions:[c],slots:l,attrs:v,emit:x,render:w,renderCache:_,data:b,setupState:E,ctx:I,inheritAttrs:O}=t;let N,A;const z=setCurrentRenderingInstance(t);try{if(r.shapeFlag&4){const V=o||n;N=normalizeVNode(w.call(V,V,_,s,E,b,I)),A=v}else{const V=e;N=normalizeVNode(V.length>1?V(s,{attrs:v,slots:l,emit:x}):V(s,null)),A=e.props?v:getFunctionalFallthrough(v)}}catch(V){blockStack.length=0,handleError(V,t,1),N=createVNode(Comment)}let G=N;if(A&&O!==!1){const V=Object.keys(A),{shapeFlag:ne}=G;V.length&&ne&7&&(c&&V.some(isModelListener)&&(A=filterModelListeners(A,c)),G=cloneVNode(G,A))}return r.dirs&&(G=cloneVNode(G),G.dirs=G.dirs?G.dirs.concat(r.dirs):r.dirs),r.transition&&(G.transition=r.transition),N=G,setCurrentRenderingInstance(z),N}function filterSingleRoot(t){let e;for(let r=0;r<t.length;r++){const n=t[r];if(isVNode$1(n)){if(n.type!==Comment||n.children==="v-if"){if(e)return;e=n}}else return}return e}const getFunctionalFallthrough=t=>{let e;for(const r in t)(r==="class"||r==="style"||isOn$1(r))&&((e||(e={}))[r]=t[r]);return e},filterModelListeners=(t,e)=>{const r={};for(const n in t)(!isModelListener(n)||!(n.slice(9)in e))&&(r[n]=t[n]);return r};function shouldUpdateComponent(t,e,r){const{props:n,children:o,component:s}=t,{props:c,children:l,patchFlag:v}=e,x=s.emitsOptions;if(e.dirs||e.transition)return!0;if(r&&v>=0){if(v&1024)return!0;if(v&16)return n?hasPropsChanged(n,c,x):!!c;if(v&8){const w=e.dynamicProps;for(let _=0;_<w.length;_++){const b=w[_];if(c[b]!==n[b]&&!isEmitListener(x,b))return!0}}}else return(o||l)&&(!l||!l.$stable)?!0:n===c?!1:n?c?hasPropsChanged(n,c,x):!0:!!c;return!1}function hasPropsChanged(t,e,r){const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!0;for(let o=0;o<n.length;o++){const s=n[o];if(e[s]!==t[s]&&!isEmitListener(r,s))return!0}return!1}function updateHOCHostEl({vnode:t,parent:e},r){for(;e&&e.subTree===t;)(t=e.vnode).el=r,e=e.parent}const isSuspense=t=>t.__isSuspense,SuspenseImpl={name:"Suspense",__isSuspense:!0,process(t,e,r,n,o,s,c,l,v,x){t==null?mountSuspense(e,r,n,o,s,c,l,v,x):patchSuspense(t,e,r,n,o,c,l,v,x)},hydrate:hydrateSuspense,create:createSuspenseBoundary,normalize:normalizeSuspenseChildren},Suspense=SuspenseImpl;function triggerEvent(t,e){const r=t.props&&t.props[e];isFunction$3(r)&&r()}function mountSuspense(t,e,r,n,o,s,c,l,v){const{p:x,o:{createElement:w}}=v,_=w("div"),b=t.suspense=createSuspenseBoundary(t,o,n,e,_,r,s,c,l,v);x(null,b.pendingBranch=t.ssContent,_,null,n,b,s,c),b.deps>0?(triggerEvent(t,"onPending"),triggerEvent(t,"onFallback"),x(null,t.ssFallback,e,r,n,null,s,c),setActiveBranch(b,t.ssFallback)):b.resolve(!1,!0)}function patchSuspense(t,e,r,n,o,s,c,l,{p:v,um:x,o:{createElement:w}}){const _=e.suspense=t.suspense;_.vnode=e,e.el=t.el;const b=e.ssContent,E=e.ssFallback,{activeBranch:I,pendingBranch:O,isInFallback:N,isHydrating:A}=_;if(O)_.pendingBranch=b,isSameVNodeType(b,O)?(v(O,b,_.hiddenContainer,null,o,_,s,c,l),_.deps<=0?_.resolve():N&&(v(I,E,r,n,o,null,s,c,l),setActiveBranch(_,E))):(_.pendingId++,A?(_.isHydrating=!1,_.activeBranch=O):x(O,o,_),_.deps=0,_.effects.length=0,_.hiddenContainer=w("div"),N?(v(null,b,_.hiddenContainer,null,o,_,s,c,l),_.deps<=0?_.resolve():(v(I,E,r,n,o,null,s,c,l),setActiveBranch(_,E))):I&&isSameVNodeType(b,I)?(v(I,b,r,n,o,_,s,c,l),_.resolve(!0)):(v(null,b,_.hiddenContainer,null,o,_,s,c,l),_.deps<=0&&_.resolve()));else if(I&&isSameVNodeType(b,I))v(I,b,r,n,o,_,s,c,l),setActiveBranch(_,b);else if(triggerEvent(e,"onPending"),_.pendingBranch=b,_.pendingId++,v(null,b,_.hiddenContainer,null,o,_,s,c,l),_.deps<=0)_.resolve();else{const{timeout:z,pendingId:G}=_;z>0?setTimeout(()=>{_.pendingId===G&&_.fallback(E)},z):z===0&&_.fallback(E)}}function createSuspenseBoundary(t,e,r,n,o,s,c,l,v,x,w=!1){const{p:_,m:b,um:E,n:I,o:{parentNode:O,remove:N}}=x;let A;const z=isVNodeSuspensible(t);z&&e!=null&&e.pendingBranch&&(A=e.pendingId,e.deps++);const G=t.props?toNumber(t.props.timeout):void 0,V={vnode:t,parent:e,parentComponent:r,isSVG:c,container:n,hiddenContainer:o,anchor:s,deps:0,pendingId:0,timeout:typeof G=="number"?G:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:w,isUnmounted:!1,effects:[],resolve(ne=!1,W=!1){const{vnode:B,activeBranch:q,pendingBranch:D,pendingId:F,effects:re,parentComponent:le,container:fe}=V;if(V.isHydrating)V.isHydrating=!1;else if(!ne){const Te=q&&D.transition&&D.transition.mode==="out-in";Te&&(q.transition.afterLeave=()=>{F===V.pendingId&&b(D,fe,ke,0)});let{anchor:ke}=V;q&&(ke=I(q),E(q,le,V,!0)),Te||b(D,fe,ke,0)}setActiveBranch(V,D),V.pendingBranch=null,V.isInFallback=!1;let me=V.parent,ye=!1;for(;me;){if(me.pendingBranch){me.effects.push(...re),ye=!0;break}me=me.parent}ye||queuePostFlushCb(re),V.effects=[],z&&e&&e.pendingBranch&&A===e.pendingId&&(e.deps--,e.deps===0&&!W&&e.resolve()),triggerEvent(B,"onResolve")},fallback(ne){if(!V.pendingBranch)return;const{vnode:W,activeBranch:B,parentComponent:q,container:D,isSVG:F}=V;triggerEvent(W,"onFallback");const re=I(B),le=()=>{!V.isInFallback||(_(null,ne,D,re,q,null,F,l,v),setActiveBranch(V,ne))},fe=ne.transition&&ne.transition.mode==="out-in";fe&&(B.transition.afterLeave=le),V.isInFallback=!0,E(B,q,null,!0),fe||le()},move(ne,W,B){V.activeBranch&&b(V.activeBranch,ne,W,B),V.container=ne},next(){return V.activeBranch&&I(V.activeBranch)},registerDep(ne,W){const B=!!V.pendingBranch;B&&V.deps++;const q=ne.vnode.el;ne.asyncDep.catch(D=>{handleError(D,ne,0)}).then(D=>{if(ne.isUnmounted||V.isUnmounted||V.pendingId!==ne.suspenseId)return;ne.asyncResolved=!0;const{vnode:F}=ne;handleSetupResult(ne,D,!1),q&&(F.el=q);const re=!q&&ne.subTree.el;W(ne,F,O(q||ne.subTree.el),q?null:I(ne.subTree),V,c,v),re&&N(re),updateHOCHostEl(ne,F.el),B&&--V.deps===0&&V.resolve()})},unmount(ne,W){V.isUnmounted=!0,V.activeBranch&&E(V.activeBranch,r,ne,W),V.pendingBranch&&E(V.pendingBranch,r,ne,W)}};return V}function hydrateSuspense(t,e,r,n,o,s,c,l,v){const x=e.suspense=createSuspenseBoundary(e,n,r,t.parentNode,document.createElement("div"),null,o,s,c,l,!0),w=v(t,x.pendingBranch=e.ssContent,r,x,s,c);return x.deps===0&&x.resolve(!1,!0),w}function normalizeSuspenseChildren(t){const{shapeFlag:e,children:r}=t,n=e&32;t.ssContent=normalizeSuspenseSlot(n?r.default:r),t.ssFallback=n?normalizeSuspenseSlot(r.fallback):createVNode(Comment)}function normalizeSuspenseSlot(t){let e;if(isFunction$3(t)){const r=isBlockTreeEnabled&&t._c;r&&(t._d=!1,openBlock()),t=t(),r&&(t._d=!0,e=currentBlock,closeBlock())}return isArray$3(t)&&(t=filterSingleRoot(t)),t=normalizeVNode(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(r=>r!==t)),t}function queueEffectWithSuspense(t,e){e&&e.pendingBranch?isArray$3(t)?e.effects.push(...t):e.effects.push(t):queuePostFlushCb(t)}function setActiveBranch(t,e){t.activeBranch=e;const{vnode:r,parentComponent:n}=t,o=r.el=e.el;n&&n.subTree===r&&(n.vnode.el=o,updateHOCHostEl(n,o))}function isVNodeSuspensible(t){var e;return((e=t.props)==null?void 0:e.suspensible)!=null&&t.props.suspensible!==!1}function watchEffect(t,e){return doWatch(t,null,e)}function watchPostEffect(t,e){return doWatch(t,null,{flush:"post"})}function watchSyncEffect(t,e){return doWatch(t,null,{flush:"sync"})}const INITIAL_WATCHER_VALUE={};function watch(t,e,r){return doWatch(t,e,r)}function doWatch(t,e,{immediate:r,deep:n,flush:o,onTrack:s,onTrigger:c}=EMPTY_OBJ){var l;const v=getCurrentScope()===((l=currentInstance)==null?void 0:l.scope)?currentInstance:null;let x,w=!1,_=!1;if(isRef(t)?(x=()=>t.value,w=isShallow(t)):isReactive(t)?(x=()=>t,n=!0):isArray$3(t)?(_=!0,w=t.some(V=>isReactive(V)||isShallow(V)),x=()=>t.map(V=>{if(isRef(V))return V.value;if(isReactive(V))return traverse(V);if(isFunction$3(V))return callWithErrorHandling(V,v,2)})):isFunction$3(t)?e?x=()=>callWithErrorHandling(t,v,2):x=()=>{if(!(v&&v.isUnmounted))return b&&b(),callWithAsyncErrorHandling(t,v,3,[E])}:x=NOOP,e&&n){const V=x;x=()=>traverse(V())}let b,E=V=>{b=z.onStop=()=>{callWithErrorHandling(V,v,4)}},I;if(isInSSRComponentSetup)if(E=NOOP,e?r&&callWithAsyncErrorHandling(e,v,3,[x(),_?[]:void 0,E]):x(),o==="sync"){const V=useSSRContext();I=V.__watcherHandles||(V.__watcherHandles=[])}else return NOOP;let O=_?new Array(t.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const N=()=>{if(!!z.active)if(e){const V=z.run();(n||w||(_?V.some((ne,W)=>hasChanged(ne,O[W])):hasChanged(V,O)))&&(b&&b(),callWithAsyncErrorHandling(e,v,3,[V,O===INITIAL_WATCHER_VALUE?void 0:_&&O[0]===INITIAL_WATCHER_VALUE?[]:O,E]),O=V)}else z.run()};N.allowRecurse=!!e;let A;o==="sync"?A=N:o==="post"?A=()=>queuePostRenderEffect(N,v&&v.suspense):(N.pre=!0,v&&(N.id=v.uid),A=()=>queueJob(N));const z=new ReactiveEffect(x,A);e?r?N():O=z.run():o==="post"?queuePostRenderEffect(z.run.bind(z),v&&v.suspense):z.run();const G=()=>{z.stop(),v&&v.scope&&remove(v.scope.effects,z)};return I&&I.push(G),G}function instanceWatch(t,e,r){const n=this.proxy,o=isString$4(t)?t.includes(".")?createPathGetter(n,t):()=>n[t]:t.bind(n,n);let s;isFunction$3(e)?s=e:(s=e.handler,r=e);const c=currentInstance;setCurrentInstance(this);const l=doWatch(o,s.bind(n),r);return c?setCurrentInstance(c):unsetCurrentInstance(),l}function createPathGetter(t,e){const r=e.split(".");return()=>{let n=t;for(let o=0;o<r.length&&n;o++)n=n[r[o]];return n}}function traverse(t,e){if(!isObject$4(t)||t.__v_skip||(e=e||new Set,e.has(t)))return t;if(e.add(t),isRef(t))traverse(t.value,e);else if(isArray$3(t))for(let r=0;r<t.length;r++)traverse(t[r],e);else if(isSet(t)||isMap(t))t.forEach(r=>{traverse(r,e)});else if(isPlainObject$3(t))for(const r in t)traverse(t[r],e);return t}function withDirectives(t,e){const r=currentRenderingInstance;if(r===null)return t;const n=getExposeProxy(r)||r.proxy,o=t.dirs||(t.dirs=[]);for(let s=0;s<e.length;s++){let[c,l,v,x=EMPTY_OBJ]=e[s];c&&(isFunction$3(c)&&(c={mounted:c,updated:c}),c.deep&&traverse(l),o.push({dir:c,instance:n,value:l,oldValue:void 0,arg:v,modifiers:x}))}return t}function invokeDirectiveHook(t,e,r,n){const o=t.dirs,s=e&&e.dirs;for(let c=0;c<o.length;c++){const l=o[c];s&&(l.oldValue=s[c].value);let v=l.dir[n];v&&(pauseTracking(),callWithAsyncErrorHandling(v,r,8,[t.el,l,t,e]),resetTracking())}}function useTransitionState(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return onMounted(()=>{t.isMounted=!0}),onBeforeUnmount(()=>{t.isUnmounting=!0}),t}const TransitionHookValidator=[Function,Array],BaseTransitionPropsValidators={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator},BaseTransitionImpl={name:"BaseTransition",props:BaseTransitionPropsValidators,setup(t,{slots:e}){const r=getCurrentInstance$1(),n=useTransitionState();let o;return()=>{const s=e.default&&getTransitionRawChildren(e.default(),!0);if(!s||!s.length)return;let c=s[0];if(s.length>1){for(const O of s)if(O.type!==Comment){c=O;break}}const l=toRaw(t),{mode:v}=l;if(n.isLeaving)return emptyPlaceholder(c);const x=getKeepAliveChild(c);if(!x)return emptyPlaceholder(c);const w=resolveTransitionHooks(x,l,n,r);setTransitionHooks(x,w);const _=r.subTree,b=_&&getKeepAliveChild(_);let E=!1;const{getTransitionKey:I}=x.type;if(I){const O=I();o===void 0?o=O:O!==o&&(o=O,E=!0)}if(b&&b.type!==Comment&&(!isSameVNodeType(x,b)||E)){const O=resolveTransitionHooks(b,l,n,r);if(setTransitionHooks(b,O),v==="out-in")return n.isLeaving=!0,O.afterLeave=()=>{n.isLeaving=!1,r.update.active!==!1&&r.update()},emptyPlaceholder(c);v==="in-out"&&x.type!==Comment&&(O.delayLeave=(N,A,z)=>{const G=getLeavingNodesForType(n,b);G[String(b.key)]=b,N._leaveCb=()=>{A(),N._leaveCb=void 0,delete w.delayedLeave},w.delayedLeave=z})}return c}}},BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(t,e){const{leavingVNodes:r}=t;let n=r.get(e.type);return n||(n=Object.create(null),r.set(e.type,n)),n}function resolveTransitionHooks(t,e,r,n){const{appear:o,mode:s,persisted:c=!1,onBeforeEnter:l,onEnter:v,onAfterEnter:x,onEnterCancelled:w,onBeforeLeave:_,onLeave:b,onAfterLeave:E,onLeaveCancelled:I,onBeforeAppear:O,onAppear:N,onAfterAppear:A,onAppearCancelled:z}=e,G=String(t.key),V=getLeavingNodesForType(r,t),ne=(q,D)=>{q&&callWithAsyncErrorHandling(q,n,9,D)},W=(q,D)=>{const F=D[1];ne(q,D),isArray$3(q)?q.every(re=>re.length<=1)&&F():q.length<=1&&F()},B={mode:s,persisted:c,beforeEnter(q){let D=l;if(!r.isMounted)if(o)D=O||l;else return;q._leaveCb&&q._leaveCb(!0);const F=V[G];F&&isSameVNodeType(t,F)&&F.el._leaveCb&&F.el._leaveCb(),ne(D,[q])},enter(q){let D=v,F=x,re=w;if(!r.isMounted)if(o)D=N||v,F=A||x,re=z||w;else return;let le=!1;const fe=q._enterCb=me=>{le||(le=!0,me?ne(re,[q]):ne(F,[q]),B.delayedLeave&&B.delayedLeave(),q._enterCb=void 0)};D?W(D,[q,fe]):fe()},leave(q,D){const F=String(t.key);if(q._enterCb&&q._enterCb(!0),r.isUnmounting)return D();ne(_,[q]);let re=!1;const le=q._leaveCb=fe=>{re||(re=!0,D(),fe?ne(I,[q]):ne(E,[q]),q._leaveCb=void 0,V[F]===t&&delete V[F])};V[F]=t,b?W(b,[q,le]):le()},clone(q){return resolveTransitionHooks(q,e,r,n)}};return B}function emptyPlaceholder(t){if(isKeepAlive(t))return t=cloneVNode(t),t.children=null,t}function getKeepAliveChild(t){return isKeepAlive(t)?t.children?t.children[0]:void 0:t}function setTransitionHooks(t,e){t.shapeFlag&6&&t.component?setTransitionHooks(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function getTransitionRawChildren(t,e=!1,r){let n=[],o=0;for(let s=0;s<t.length;s++){let c=t[s];const l=r==null?c.key:String(r)+String(c.key!=null?c.key:s);c.type===Fragment?(c.patchFlag&128&&o++,n=n.concat(getTransitionRawChildren(c.children,e,l))):(e||c.type!==Comment)&&n.push(l!=null?cloneVNode(c,{key:l}):c)}if(o>1)for(let s=0;s<n.length;s++)n[s].patchFlag=-2;return n}function defineComponent$1(t,e){return isFunction$3(t)?(()=>extend$1({name:t.name},e,{setup:t}))():t}const isAsyncWrapper=t=>!!t.type.__asyncLoader;function defineAsyncComponent(t){isFunction$3(t)&&(t={loader:t});const{loader:e,loadingComponent:r,errorComponent:n,delay:o=200,timeout:s,suspensible:c=!0,onError:l}=t;let v=null,x,w=0;const _=()=>(w++,v=null,b()),b=()=>{let E;return v||(E=v=e().catch(I=>{if(I=I instanceof Error?I:new Error(String(I)),l)return new Promise((O,N)=>{l(I,()=>O(_()),()=>N(I),w+1)});throw I}).then(I=>E!==v&&v?v:(I&&(I.__esModule||I[Symbol.toStringTag]==="Module")&&(I=I.default),x=I,I)))};return defineComponent$1({name:"AsyncComponentWrapper",__asyncLoader:b,get __asyncResolved(){return x},setup(){const E=currentInstance;if(x)return()=>createInnerComp(x,E);const I=z=>{v=null,handleError(z,E,13,!n)};if(c&&E.suspense||isInSSRComponentSetup)return b().then(z=>()=>createInnerComp(z,E)).catch(z=>(I(z),()=>n?createVNode(n,{error:z}):null));const O=ref(!1),N=ref(),A=ref(!!o);return o&&setTimeout(()=>{A.value=!1},o),s!=null&&setTimeout(()=>{if(!O.value&&!N.value){const z=new Error(`Async component timed out after ${s}ms.`);I(z),N.value=z}},s),b().then(()=>{O.value=!0,E.parent&&isKeepAlive(E.parent.vnode)&&queueJob(E.parent.update)}).catch(z=>{I(z),N.value=z}),()=>{if(O.value&&x)return createInnerComp(x,E);if(N.value&&n)return createVNode(n,{error:N.value});if(r&&!A.value)return createVNode(r)}}})}function createInnerComp(t,e){const{ref:r,props:n,children:o,ce:s}=e.vnode,c=createVNode(t,n,o);return c.ref=r,c.ce=s,delete e.vnode.ce,c}const isKeepAlive=t=>t.type.__isKeepAlive,KeepAliveImpl={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const r=getCurrentInstance$1(),n=r.ctx;if(!n.renderer)return()=>{const z=e.default&&e.default();return z&&z.length===1?z[0]:z};const o=new Map,s=new Set;let c=null;const l=r.suspense,{renderer:{p:v,m:x,um:w,o:{createElement:_}}}=n,b=_("div");n.activate=(z,G,V,ne,W)=>{const B=z.component;x(z,G,V,0,l),v(B.vnode,z,G,V,B,l,ne,z.slotScopeIds,W),queuePostRenderEffect(()=>{B.isDeactivated=!1,B.a&&invokeArrayFns(B.a);const q=z.props&&z.props.onVnodeMounted;q&&invokeVNodeHook(q,B.parent,z)},l)},n.deactivate=z=>{const G=z.component;x(z,b,null,1,l),queuePostRenderEffect(()=>{G.da&&invokeArrayFns(G.da);const V=z.props&&z.props.onVnodeUnmounted;V&&invokeVNodeHook(V,G.parent,z),G.isDeactivated=!0},l)};function E(z){resetShapeFlag(z),w(z,r,l,!0)}function I(z){o.forEach((G,V)=>{const ne=getComponentName(G.type);ne&&(!z||!z(ne))&&O(V)})}function O(z){const G=o.get(z);!c||!isSameVNodeType(G,c)?E(G):c&&resetShapeFlag(c),o.delete(z),s.delete(z)}watch(()=>[t.include,t.exclude],([z,G])=>{z&&I(V=>matches(z,V)),G&&I(V=>!matches(G,V))},{flush:"post",deep:!0});let N=null;const A=()=>{N!=null&&o.set(N,getInnerChild(r.subTree))};return onMounted(A),onUpdated(A),onBeforeUnmount(()=>{o.forEach(z=>{const{subTree:G,suspense:V}=r,ne=getInnerChild(G);if(z.type===ne.type&&z.key===ne.key){resetShapeFlag(ne);const W=ne.component.da;W&&queuePostRenderEffect(W,V);return}E(z)})}),()=>{if(N=null,!e.default)return null;const z=e.default(),G=z[0];if(z.length>1)return c=null,z;if(!isVNode$1(G)||!(G.shapeFlag&4)&&!(G.shapeFlag&128))return c=null,G;let V=getInnerChild(G);const ne=V.type,W=getComponentName(isAsyncWrapper(V)?V.type.__asyncResolved||{}:ne),{include:B,exclude:q,max:D}=t;if(B&&(!W||!matches(B,W))||q&&W&&matches(q,W))return c=V,G;const F=V.key==null?ne:V.key,re=o.get(F);return V.el&&(V=cloneVNode(V),G.shapeFlag&128&&(G.ssContent=V)),N=F,re?(V.el=re.el,V.component=re.component,V.transition&&setTransitionHooks(V,V.transition),V.shapeFlag|=512,s.delete(F),s.add(F)):(s.add(F),D&&s.size>parseInt(D,10)&&O(s.values().next().value)),V.shapeFlag|=256,c=V,isSuspense(G.type)?G:V}}},KeepAlive=KeepAliveImpl;function matches(t,e){return isArray$3(t)?t.some(r=>matches(r,e)):isString$4(t)?t.split(",").includes(e):isRegExp$2(t)?t.test(e):!1}function onActivated(t,e){registerKeepAliveHook(t,"a",e)}function onDeactivated(t,e){registerKeepAliveHook(t,"da",e)}function registerKeepAliveHook(t,e,r=currentInstance){const n=t.__wdc||(t.__wdc=()=>{let o=r;for(;o;){if(o.isDeactivated)return;o=o.parent}return t()});if(injectHook(e,n,r),r){let o=r.parent;for(;o&&o.parent;)isKeepAlive(o.parent.vnode)&&injectToKeepAliveRoot(n,e,r,o),o=o.parent}}function injectToKeepAliveRoot(t,e,r,n){const o=injectHook(e,t,n,!0);onUnmounted(()=>{remove(n[e],o)},r)}function resetShapeFlag(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function getInnerChild(t){return t.shapeFlag&128?t.ssContent:t}function injectHook(t,e,r=currentInstance,n=!1){if(r){const o=r[t]||(r[t]=[]),s=e.__weh||(e.__weh=(...c)=>{if(r.isUnmounted)return;pauseTracking(),setCurrentInstance(r);const l=callWithAsyncErrorHandling(e,r,t,c);return unsetCurrentInstance(),resetTracking(),l});return n?o.unshift(s):o.push(s),s}}const createHook=t=>(e,r=currentInstance)=>(!isInSSRComponentSetup||t==="sp")&&injectHook(t,(...n)=>e(...n),r),onBeforeMount=createHook("bm"),onMounted=createHook("m"),onBeforeUpdate=createHook("bu"),onUpdated=createHook("u"),onBeforeUnmount=createHook("bum"),onUnmounted=createHook("um"),onServerPrefetch=createHook("sp"),onRenderTriggered=createHook("rtg"),onRenderTracked=createHook("rtc");function onErrorCaptured(t,e=currentInstance){injectHook("ec",t,e)}const COMPONENTS="components",DIRECTIVES="directives";function resolveComponent(t,e){return resolveAsset(COMPONENTS,t,!0,e)||t}const NULL_DYNAMIC_COMPONENT=Symbol.for("v-ndc");function resolveDynamicComponent(t){return isString$4(t)?resolveAsset(COMPONENTS,t,!1)||t:t||NULL_DYNAMIC_COMPONENT}function resolveDirective(t){return resolveAsset(DIRECTIVES,t)}function resolveAsset(t,e,r=!0,n=!1){const o=currentRenderingInstance||currentInstance;if(o){const s=o.type;if(t===COMPONENTS){const l=getComponentName(s,!1);if(l&&(l===e||l===camelize(e)||l===capitalize$1(camelize(e))))return s}const c=resolve(o[t]||s[t],e)||resolve(o.appContext[t],e);return!c&&n?s:c}}function resolve(t,e){return t&&(t[e]||t[camelize(e)]||t[capitalize$1(camelize(e))])}function renderList(t,e,r,n){let o;const s=r&&r[n];if(isArray$3(t)||isString$4(t)){o=new Array(t.length);for(let c=0,l=t.length;c<l;c++)o[c]=e(t[c],c,void 0,s&&s[c])}else if(typeof t=="number"){o=new Array(t);for(let c=0;c<t;c++)o[c]=e(c+1,c,void 0,s&&s[c])}else if(isObject$4(t))if(t[Symbol.iterator])o=Array.from(t,(c,l)=>e(c,l,void 0,s&&s[l]));else{const c=Object.keys(t);o=new Array(c.length);for(let l=0,v=c.length;l<v;l++){const x=c[l];o[l]=e(t[x],x,l,s&&s[l])}}else o=[];return r&&(r[n]=o),o}function createSlots(t,e){for(let r=0;r<e.length;r++){const n=e[r];if(isArray$3(n))for(let o=0;o<n.length;o++)t[n[o].name]=n[o].fn;else n&&(t[n.name]=n.key?(...o)=>{const s=n.fn(...o);return s&&(s.key=n.key),s}:n.fn)}return t}function renderSlot(t,e,r={},n,o){if(currentRenderingInstance.isCE||currentRenderingInstance.parent&&isAsyncWrapper(currentRenderingInstance.parent)&&currentRenderingInstance.parent.isCE)return e!=="default"&&(r.name=e),createVNode("slot",r,n&&n());let s=t[e];s&&s._c&&(s._d=!1),openBlock();const c=s&&ensureValidVNode$1(s(r)),l=createBlock(Fragment,{key:r.key||c&&c.key||`_${e}`},c||(n?n():[]),c&&t._===1?64:-2);return!o&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function ensureValidVNode$1(t){return t.some(e=>isVNode$1(e)?!(e.type===Comment||e.type===Fragment&&!ensureValidVNode$1(e.children)):!0)?t:null}function toHandlers(t,e){const r={};for(const n in t)r[e&&/[A-Z]/.test(n)?`on:${n}`:toHandlerKey(n)]=t[n];return r}const getPublicInstance=t=>t?isStatefulComponent(t)?getExposeProxy(t)||t.proxy:getPublicInstance(t.parent):null,publicPropertiesMap=extend$1(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>getPublicInstance(t.parent),$root:t=>getPublicInstance(t.root),$emit:t=>t.emit,$options:t=>resolveMergedOptions(t),$forceUpdate:t=>t.f||(t.f=()=>queueJob(t.update)),$nextTick:t=>t.n||(t.n=nextTick.bind(t.proxy)),$watch:t=>instanceWatch.bind(t)}),hasSetupBinding=(t,e)=>t!==EMPTY_OBJ&&!t.__isScriptSetup&&hasOwn$1(t,e),PublicInstanceProxyHandlers={get({_:t},e){const{ctx:r,setupState:n,data:o,props:s,accessCache:c,type:l,appContext:v}=t;let x;if(e[0]!=="$"){const E=c[e];if(E!==void 0)switch(E){case 1:return n[e];case 2:return o[e];case 4:return r[e];case 3:return s[e]}else{if(hasSetupBinding(n,e))return c[e]=1,n[e];if(o!==EMPTY_OBJ&&hasOwn$1(o,e))return c[e]=2,o[e];if((x=t.propsOptions[0])&&hasOwn$1(x,e))return c[e]=3,s[e];if(r!==EMPTY_OBJ&&hasOwn$1(r,e))return c[e]=4,r[e];shouldCacheAccess&&(c[e]=0)}}const w=publicPropertiesMap[e];let _,b;if(w)return e==="$attrs"&&track(t,"get",e),w(t);if((_=l.__cssModules)&&(_=_[e]))return _;if(r!==EMPTY_OBJ&&hasOwn$1(r,e))return c[e]=4,r[e];if(b=v.config.globalProperties,hasOwn$1(b,e))return b[e]},set({_:t},e,r){const{data:n,setupState:o,ctx:s}=t;return hasSetupBinding(o,e)?(o[e]=r,!0):n!==EMPTY_OBJ&&hasOwn$1(n,e)?(n[e]=r,!0):hasOwn$1(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(s[e]=r,!0)},has({_:{data:t,setupState:e,accessCache:r,ctx:n,appContext:o,propsOptions:s}},c){let l;return!!r[c]||t!==EMPTY_OBJ&&hasOwn$1(t,c)||hasSetupBinding(e,c)||(l=s[0])&&hasOwn$1(l,c)||hasOwn$1(n,c)||hasOwn$1(publicPropertiesMap,c)||hasOwn$1(o.config.globalProperties,c)},defineProperty(t,e,r){return r.get!=null?t._.accessCache[e]=0:hasOwn$1(r,"value")&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}},RuntimeCompiledPublicInstanceProxyHandlers=extend$1({},PublicInstanceProxyHandlers,{get(t,e){if(e!==Symbol.unscopables)return PublicInstanceProxyHandlers.get(t,e,t)},has(t,e){return e[0]!=="_"&&!isGloballyWhitelisted(e)}});function defineProps(){return null}function defineEmits(){return null}function defineExpose(t){}function defineOptions(t){}function defineSlots(){return null}function defineModel(){}function withDefaults(t,e){return null}function useSlots(){return getContext().slots}function useAttrs(){return getContext().attrs}function useModel(t,e,r){const n=getCurrentInstance$1();if(r&&r.local){const o=ref(t[e]);return watch(()=>t[e],s=>o.value=s),watch(o,s=>{s!==t[e]&&n.emit(`update:${e}`,s)}),o}else return{__v_isRef:!0,get value(){return t[e]},set value(o){n.emit(`update:${e}`,o)}}}function getContext(){const t=getCurrentInstance$1();return t.setupContext||(t.setupContext=createSetupContext(t))}function normalizePropsOrEmits(t){return isArray$3(t)?t.reduce((e,r)=>(e[r]=null,e),{}):t}function mergeDefaults(t,e){const r=normalizePropsOrEmits(t);for(const n in e){if(n.startsWith("__skip"))continue;let o=r[n];o?isArray$3(o)||isFunction$3(o)?o=r[n]={type:o,default:e[n]}:o.default=e[n]:o===null&&(o=r[n]={default:e[n]}),o&&e[`__skip_${n}`]&&(o.skipFactory=!0)}return r}function mergeModels(t,e){return!t||!e?t||e:isArray$3(t)&&isArray$3(e)?t.concat(e):extend$1({},normalizePropsOrEmits(t),normalizePropsOrEmits(e))}function createPropsRestProxy(t,e){const r={};for(const n in t)e.includes(n)||Object.defineProperty(r,n,{enumerable:!0,get:()=>t[n]});return r}function withAsyncContext(t){const e=getCurrentInstance$1();let r=t();return unsetCurrentInstance(),isPromise$2(r)&&(r=r.catch(n=>{throw setCurrentInstance(e),n})),[r,()=>setCurrentInstance(e)]}let shouldCacheAccess=!0;function applyOptions(t){const e=resolveMergedOptions(t),r=t.proxy,n=t.ctx;shouldCacheAccess=!1,e.beforeCreate&&callHook$1(e.beforeCreate,t,"bc");const{data:o,computed:s,methods:c,watch:l,provide:v,inject:x,created:w,beforeMount:_,mounted:b,beforeUpdate:E,updated:I,activated:O,deactivated:N,beforeDestroy:A,beforeUnmount:z,destroyed:G,unmounted:V,render:ne,renderTracked:W,renderTriggered:B,errorCaptured:q,serverPrefetch:D,expose:F,inheritAttrs:re,components:le,directives:fe,filters:me}=e;if(x&&resolveInjections(x,n,null),c)for(const ke in c){const Le=c[ke];isFunction$3(Le)&&(n[ke]=Le.bind(r))}if(o){const ke=o.call(r,r);isObject$4(ke)&&(t.data=reactive(ke))}if(shouldCacheAccess=!0,s)for(const ke in s){const Le=s[ke],et=isFunction$3(Le)?Le.bind(r,r):isFunction$3(Le.get)?Le.get.bind(r,r):NOOP,it=!isFunction$3(Le)&&isFunction$3(Le.set)?Le.set.bind(r):NOOP,Ue=computed({get:et,set:it});Object.defineProperty(n,ke,{enumerable:!0,configurable:!0,get:()=>Ue.value,set:ht=>Ue.value=ht})}if(l)for(const ke in l)createWatcher(l[ke],n,r,ke);if(v){const ke=isFunction$3(v)?v.call(r):v;Reflect.ownKeys(ke).forEach(Le=>{provide(Le,ke[Le])})}w&&callHook$1(w,t,"c");function Te(ke,Le){isArray$3(Le)?Le.forEach(et=>ke(et.bind(r))):Le&&ke(Le.bind(r))}if(Te(onBeforeMount,_),Te(onMounted,b),Te(onBeforeUpdate,E),Te(onUpdated,I),Te(onActivated,O),Te(onDeactivated,N),Te(onErrorCaptured,q),Te(onRenderTracked,W),Te(onRenderTriggered,B),Te(onBeforeUnmount,z),Te(onUnmounted,V),Te(onServerPrefetch,D),isArray$3(F))if(F.length){const ke=t.exposed||(t.exposed={});F.forEach(Le=>{Object.defineProperty(ke,Le,{get:()=>r[Le],set:et=>r[Le]=et})})}else t.exposed||(t.exposed={});ne&&t.render===NOOP&&(t.render=ne),re!=null&&(t.inheritAttrs=re),le&&(t.components=le),fe&&(t.directives=fe)}function resolveInjections(t,e,r=NOOP){isArray$3(t)&&(t=normalizeInject(t));for(const n in t){const o=t[n];let s;isObject$4(o)?"default"in o?s=inject$1(o.from||n,o.default,!0):s=inject$1(o.from||n):s=inject$1(o),isRef(s)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:c=>s.value=c}):e[n]=s}}function callHook$1(t,e,r){callWithAsyncErrorHandling(isArray$3(t)?t.map(n=>n.bind(e.proxy)):t.bind(e.proxy),e,r)}function createWatcher(t,e,r,n){const o=n.includes(".")?createPathGetter(r,n):()=>r[n];if(isString$4(t)){const s=e[t];isFunction$3(s)&&watch(o,s)}else if(isFunction$3(t))watch(o,t.bind(r));else if(isObject$4(t))if(isArray$3(t))t.forEach(s=>createWatcher(s,e,r,n));else{const s=isFunction$3(t.handler)?t.handler.bind(r):e[t.handler];isFunction$3(s)&&watch(o,s,t)}}function resolveMergedOptions(t){const e=t.type,{mixins:r,extends:n}=e,{mixins:o,optionsCache:s,config:{optionMergeStrategies:c}}=t.appContext,l=s.get(e);let v;return l?v=l:!o.length&&!r&&!n?v=e:(v={},o.length&&o.forEach(x=>mergeOptions(v,x,c,!0)),mergeOptions(v,e,c)),isObject$4(e)&&s.set(e,v),v}function mergeOptions(t,e,r,n=!1){const{mixins:o,extends:s}=e;s&&mergeOptions(t,s,r,!0),o&&o.forEach(c=>mergeOptions(t,c,r,!0));for(const c in e)if(!(n&&c==="expose")){const l=internalOptionMergeStrats[c]||r&&r[c];t[c]=l?l(t[c],e[c]):e[c]}return t}const internalOptionMergeStrats={data:mergeDataFn,props:mergeEmitsOrPropsOptions,emits:mergeEmitsOrPropsOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(t,e){return e?t?function(){return extend$1(isFunction$3(t)?t.call(this,this):t,isFunction$3(e)?e.call(this,this):e)}:e:t}function mergeInject(t,e){return mergeObjectOptions(normalizeInject(t),normalizeInject(e))}function normalizeInject(t){if(isArray$3(t)){const e={};for(let r=0;r<t.length;r++)e[t[r]]=t[r];return e}return t}function mergeAsArray(t,e){return t?[...new Set([].concat(t,e))]:e}function mergeObjectOptions(t,e){return t?extend$1(Object.create(null),t,e):e}function mergeEmitsOrPropsOptions(t,e){return t?isArray$3(t)&&isArray$3(e)?[...new Set([...t,...e])]:extend$1(Object.create(null),normalizePropsOrEmits(t),normalizePropsOrEmits(e!=null?e:{})):e}function mergeWatchOptions(t,e){if(!t)return e;if(!e)return t;const r=extend$1(Object.create(null),t);for(const n in e)r[n]=mergeAsArray(t[n],e[n]);return r}function createAppContext(){return{app:null,config:{isNativeTag:NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let uid$1=0;function createAppAPI(t,e){return function(n,o=null){isFunction$3(n)||(n=extend$1({},n)),o!=null&&!isObject$4(o)&&(o=null);const s=createAppContext(),c=new Set;let l=!1;const v=s.app={_uid:uid$1++,_component:n,_props:o,_container:null,_context:s,_instance:null,version:version$4,get config(){return s.config},set config(x){},use(x,...w){return c.has(x)||(x&&isFunction$3(x.install)?(c.add(x),x.install(v,...w)):isFunction$3(x)&&(c.add(x),x(v,...w))),v},mixin(x){return s.mixins.includes(x)||s.mixins.push(x),v},component(x,w){return w?(s.components[x]=w,v):s.components[x]},directive(x,w){return w?(s.directives[x]=w,v):s.directives[x]},mount(x,w,_){if(!l){const b=createVNode(n,o);return b.appContext=s,w&&e?e(b,x):t(b,x,_),l=!0,v._container=x,x.__vue_app__=v,getExposeProxy(b.component)||b.component.proxy}},unmount(){l&&(t(null,v._container),delete v._container.__vue_app__)},provide(x,w){return s.provides[x]=w,v},runWithContext(x){currentApp=v;try{return x()}finally{currentApp=null}}};return v}}let currentApp=null;function provide(t,e){if(currentInstance){let r=currentInstance.provides;const n=currentInstance.parent&&currentInstance.parent.provides;n===r&&(r=currentInstance.provides=Object.create(n)),r[t]=e}}function inject$1(t,e,r=!1){const n=currentInstance||currentRenderingInstance;if(n||currentApp){const o=n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:currentApp._context.provides;if(o&&t in o)return o[t];if(arguments.length>1)return r&&isFunction$3(e)?e.call(n&&n.proxy):e}}function hasInjectionContext(){return!!(currentInstance||currentRenderingInstance||currentApp)}function initProps(t,e,r,n=!1){const o={},s={};def(s,InternalObjectKey,1),t.propsDefaults=Object.create(null),setFullProps(t,e,o,s);for(const c in t.propsOptions[0])c in o||(o[c]=void 0);r?t.props=n?o:shallowReactive(o):t.type.props?t.props=o:t.props=s,t.attrs=s}function updateProps(t,e,r,n){const{props:o,attrs:s,vnode:{patchFlag:c}}=t,l=toRaw(o),[v]=t.propsOptions;let x=!1;if((n||c>0)&&!(c&16)){if(c&8){const w=t.vnode.dynamicProps;for(let _=0;_<w.length;_++){let b=w[_];if(isEmitListener(t.emitsOptions,b))continue;const E=e[b];if(v)if(hasOwn$1(s,b))E!==s[b]&&(s[b]=E,x=!0);else{const I=camelize(b);o[I]=resolvePropValue(v,l,I,E,t,!1)}else E!==s[b]&&(s[b]=E,x=!0)}}}else{setFullProps(t,e,o,s)&&(x=!0);let w;for(const _ in l)(!e||!hasOwn$1(e,_)&&((w=hyphenate(_))===_||!hasOwn$1(e,w)))&&(v?r&&(r[_]!==void 0||r[w]!==void 0)&&(o[_]=resolvePropValue(v,l,_,void 0,t,!0)):delete o[_]);if(s!==l)for(const _ in s)(!e||!hasOwn$1(e,_)&&!0)&&(delete s[_],x=!0)}x&&trigger(t,"set","$attrs")}function setFullProps(t,e,r,n){const[o,s]=t.propsOptions;let c=!1,l;if(e)for(let v in e){if(isReservedProp(v))continue;const x=e[v];let w;o&&hasOwn$1(o,w=camelize(v))?!s||!s.includes(w)?r[w]=x:(l||(l={}))[w]=x:isEmitListener(t.emitsOptions,v)||(!(v in n)||x!==n[v])&&(n[v]=x,c=!0)}if(s){const v=toRaw(r),x=l||EMPTY_OBJ;for(let w=0;w<s.length;w++){const _=s[w];r[_]=resolvePropValue(o,v,_,x[_],t,!hasOwn$1(x,_))}}return c}function resolvePropValue(t,e,r,n,o,s){const c=t[r];if(c!=null){const l=hasOwn$1(c,"default");if(l&&n===void 0){const v=c.default;if(c.type!==Function&&!c.skipFactory&&isFunction$3(v)){const{propsDefaults:x}=o;r in x?n=x[r]:(setCurrentInstance(o),n=x[r]=v.call(null,e),unsetCurrentInstance())}else n=v}c[0]&&(s&&!l?n=!1:c[1]&&(n===""||n===hyphenate(r))&&(n=!0))}return n}function normalizePropsOptions(t,e,r=!1){const n=e.propsCache,o=n.get(t);if(o)return o;const s=t.props,c={},l=[];let v=!1;if(!isFunction$3(t)){const w=_=>{v=!0;const[b,E]=normalizePropsOptions(_,e,!0);extend$1(c,b),E&&l.push(...E)};!r&&e.mixins.length&&e.mixins.forEach(w),t.extends&&w(t.extends),t.mixins&&t.mixins.forEach(w)}if(!s&&!v)return isObject$4(t)&&n.set(t,EMPTY_ARR),EMPTY_ARR;if(isArray$3(s))for(let w=0;w<s.length;w++){const _=camelize(s[w]);validatePropName(_)&&(c[_]=EMPTY_OBJ)}else if(s)for(const w in s){const _=camelize(w);if(validatePropName(_)){const b=s[w],E=c[_]=isArray$3(b)||isFunction$3(b)?{type:b}:extend$1({},b);if(E){const I=getTypeIndex(Boolean,E.type),O=getTypeIndex(String,E.type);E[0]=I>-1,E[1]=O<0||I<O,(I>-1||hasOwn$1(E,"default"))&&l.push(_)}}}const x=[c,l];return isObject$4(t)&&n.set(t,x),x}function validatePropName(t){return t[0]!=="$"}function getType(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function isSameType(t,e){return getType(t)===getType(e)}function getTypeIndex(t,e){return isArray$3(e)?e.findIndex(r=>isSameType(r,t)):isFunction$3(e)&&isSameType(e,t)?0:-1}const isInternalKey=t=>t[0]==="_"||t==="$stable",normalizeSlotValue=t=>isArray$3(t)?t.map(normalizeVNode):[normalizeVNode(t)],normalizeSlot=(t,e,r)=>{if(e._n)return e;const n=withCtx((...o)=>normalizeSlotValue(e(...o)),r);return n._c=!1,n},normalizeObjectSlots=(t,e,r)=>{const n=t._ctx;for(const o in t){if(isInternalKey(o))continue;const s=t[o];if(isFunction$3(s))e[o]=normalizeSlot(o,s,n);else if(s!=null){const c=normalizeSlotValue(s);e[o]=()=>c}}},normalizeVNodeSlots=(t,e)=>{const r=normalizeSlotValue(e);t.slots.default=()=>r},initSlots=(t,e)=>{if(t.vnode.shapeFlag&32){const r=e._;r?(t.slots=toRaw(e),def(e,"_",r)):normalizeObjectSlots(e,t.slots={})}else t.slots={},e&&normalizeVNodeSlots(t,e);def(t.slots,InternalObjectKey,1)},updateSlots=(t,e,r)=>{const{vnode:n,slots:o}=t;let s=!0,c=EMPTY_OBJ;if(n.shapeFlag&32){const l=e._;l?r&&l===1?s=!1:(extend$1(o,e),!r&&l===1&&delete o._):(s=!e.$stable,normalizeObjectSlots(e,o)),c=e}else e&&(normalizeVNodeSlots(t,e),c={default:1});if(s)for(const l in o)!isInternalKey(l)&&!(l in c)&&delete o[l]};function setRef(t,e,r,n,o=!1){if(isArray$3(t)){t.forEach((b,E)=>setRef(b,e&&(isArray$3(e)?e[E]:e),r,n,o));return}if(isAsyncWrapper(n)&&!o)return;const s=n.shapeFlag&4?getExposeProxy(n.component)||n.component.proxy:n.el,c=o?null:s,{i:l,r:v}=t,x=e&&e.r,w=l.refs===EMPTY_OBJ?l.refs={}:l.refs,_=l.setupState;if(x!=null&&x!==v&&(isString$4(x)?(w[x]=null,hasOwn$1(_,x)&&(_[x]=null)):isRef(x)&&(x.value=null)),isFunction$3(v))callWithErrorHandling(v,l,12,[c,w]);else{const b=isString$4(v),E=isRef(v);if(b||E){const I=()=>{if(t.f){const O=b?hasOwn$1(_,v)?_[v]:w[v]:v.value;o?isArray$3(O)&&remove(O,s):isArray$3(O)?O.includes(s)||O.push(s):b?(w[v]=[s],hasOwn$1(_,v)&&(_[v]=w[v])):(v.value=[s],t.k&&(w[t.k]=v.value))}else b?(w[v]=c,hasOwn$1(_,v)&&(_[v]=c)):E&&(v.value=c,t.k&&(w[t.k]=c))};c?(I.id=-1,queuePostRenderEffect(I,r)):I()}}}let hasMismatch=!1;const isSVGContainer=t=>/svg/.test(t.namespaceURI)&&t.tagName!=="foreignObject",isComment=t=>t.nodeType===8;function createHydrationFunctions(t){const{mt:e,p:r,o:{patchProp:n,createText:o,nextSibling:s,parentNode:c,remove:l,insert:v,createComment:x}}=t,w=(A,z)=>{if(!z.hasChildNodes()){r(null,A,z),flushPostFlushCbs(),z._vnode=A;return}hasMismatch=!1,_(z.firstChild,A,null,null,null),flushPostFlushCbs(),z._vnode=A,hasMismatch&&console.error("Hydration completed but contains mismatches.")},_=(A,z,G,V,ne,W=!1)=>{const B=isComment(A)&&A.data==="[",q=()=>O(A,z,G,V,ne,B),{type:D,ref:F,shapeFlag:re,patchFlag:le}=z;let fe=A.nodeType;z.el=A,le===-2&&(W=!1,z.dynamicChildren=null);let me=null;switch(D){case Text:fe!==3?z.children===""?(v(z.el=o(""),c(A),A),me=A):me=q():(A.data!==z.children&&(hasMismatch=!0,A.data=z.children),me=s(A));break;case Comment:fe!==8||B?me=q():me=s(A);break;case Static:if(B&&(A=s(A),fe=A.nodeType),fe===1||fe===3){me=A;const ye=!z.children.length;for(let Te=0;Te<z.staticCount;Te++)ye&&(z.children+=me.nodeType===1?me.outerHTML:me.data),Te===z.staticCount-1&&(z.anchor=me),me=s(me);return B?s(me):me}else q();break;case Fragment:B?me=I(A,z,G,V,ne,W):me=q();break;default:if(re&1)fe!==1||z.type.toLowerCase()!==A.tagName.toLowerCase()?me=q():me=b(A,z,G,V,ne,W);else if(re&6){z.slotScopeIds=ne;const ye=c(A);if(e(z,ye,null,G,V,isSVGContainer(ye),W),me=B?N(A):s(A),me&&isComment(me)&&me.data==="teleport end"&&(me=s(me)),isAsyncWrapper(z)){let Te;B?(Te=createVNode(Fragment),Te.anchor=me?me.previousSibling:ye.lastChild):Te=A.nodeType===3?createTextVNode(""):createVNode("div"),Te.el=A,z.component.subTree=Te}}else re&64?fe!==8?me=q():me=z.type.hydrate(A,z,G,V,ne,W,t,E):re&128&&(me=z.type.hydrate(A,z,G,V,isSVGContainer(c(A)),ne,W,t,_))}return F!=null&&setRef(F,null,V,z),me},b=(A,z,G,V,ne,W)=>{W=W||!!z.dynamicChildren;const{type:B,props:q,patchFlag:D,shapeFlag:F,dirs:re}=z,le=B==="input"&&re||B==="option";if(le||D!==-1){if(re&&invokeDirectiveHook(z,null,G,"created"),q)if(le||!W||D&48)for(const me in q)(le&&me.endsWith("value")||isOn$1(me)&&!isReservedProp(me))&&n(A,me,null,q[me],!1,void 0,G);else q.onClick&&n(A,"onClick",null,q.onClick,!1,void 0,G);let fe;if((fe=q&&q.onVnodeBeforeMount)&&invokeVNodeHook(fe,G,z),re&&invokeDirectiveHook(z,null,G,"beforeMount"),((fe=q&&q.onVnodeMounted)||re)&&queueEffectWithSuspense(()=>{fe&&invokeVNodeHook(fe,G,z),re&&invokeDirectiveHook(z,null,G,"mounted")},V),F&16&&!(q&&(q.innerHTML||q.textContent))){let me=E(A.firstChild,z,A,G,V,ne,W);for(;me;){hasMismatch=!0;const ye=me;me=me.nextSibling,l(ye)}}else F&8&&A.textContent!==z.children&&(hasMismatch=!0,A.textContent=z.children)}return A.nextSibling},E=(A,z,G,V,ne,W,B)=>{B=B||!!z.dynamicChildren;const q=z.children,D=q.length;for(let F=0;F<D;F++){const re=B?q[F]:q[F]=normalizeVNode(q[F]);if(A)A=_(A,re,V,ne,W,B);else{if(re.type===Text&&!re.children)continue;hasMismatch=!0,r(null,re,G,null,V,ne,isSVGContainer(G),W)}}return A},I=(A,z,G,V,ne,W)=>{const{slotScopeIds:B}=z;B&&(ne=ne?ne.concat(B):B);const q=c(A),D=E(s(A),z,q,G,V,ne,W);return D&&isComment(D)&&D.data==="]"?s(z.anchor=D):(hasMismatch=!0,v(z.anchor=x("]"),q,D),D)},O=(A,z,G,V,ne,W)=>{if(hasMismatch=!0,z.el=null,W){const D=N(A);for(;;){const F=s(A);if(F&&F!==D)l(F);else break}}const B=s(A),q=c(A);return l(A),r(null,z,q,B,G,V,isSVGContainer(q),ne),B},N=A=>{let z=0;for(;A;)if(A=s(A),A&&isComment(A)&&(A.data==="["&&z++,A.data==="]")){if(z===0)return s(A);z--}return A};return[w,_]}const queuePostRenderEffect=queueEffectWithSuspense;function createRenderer(t){return baseCreateRenderer(t)}function createHydrationRenderer(t){return baseCreateRenderer(t,createHydrationFunctions)}function baseCreateRenderer(t,e){const r=getGlobalThis$1();r.__VUE__=!0;const{insert:n,remove:o,patchProp:s,createElement:c,createText:l,createComment:v,setText:x,setElementText:w,parentNode:_,nextSibling:b,setScopeId:E=NOOP,insertStaticContent:I}=t,O=(Ne,ze,Ke,vt=null,Ft=null,Ot=null,_t=!1,Tn=null,on=!!ze.dynamicChildren)=>{if(Ne===ze)return;Ne&&!isSameVNodeType(Ne,ze)&&(vt=gt(Ne),ht(Ne,Ft,Ot,!0),Ne=null),ze.patchFlag===-2&&(on=!1,ze.dynamicChildren=null);const{type:$n,ref:Zt,shapeFlag:Et}=ze;switch($n){case Text:N(Ne,ze,Ke,vt);break;case Comment:A(Ne,ze,Ke,vt);break;case Static:Ne==null&&z(ze,Ke,vt,_t);break;case Fragment:le(Ne,ze,Ke,vt,Ft,Ot,_t,Tn,on);break;default:Et&1?ne(Ne,ze,Ke,vt,Ft,Ot,_t,Tn,on):Et&6?fe(Ne,ze,Ke,vt,Ft,Ot,_t,Tn,on):(Et&64||Et&128)&&$n.process(Ne,ze,Ke,vt,Ft,Ot,_t,Tn,on,Ze)}Zt!=null&&Ft&&setRef(Zt,Ne&&Ne.ref,Ot,ze||Ne,!ze)},N=(Ne,ze,Ke,vt)=>{if(Ne==null)n(ze.el=l(ze.children),Ke,vt);else{const Ft=ze.el=Ne.el;ze.children!==Ne.children&&x(Ft,ze.children)}},A=(Ne,ze,Ke,vt)=>{Ne==null?n(ze.el=v(ze.children||""),Ke,vt):ze.el=Ne.el},z=(Ne,ze,Ke,vt)=>{[Ne.el,Ne.anchor]=I(Ne.children,ze,Ke,vt,Ne.el,Ne.anchor)},G=({el:Ne,anchor:ze},Ke,vt)=>{let Ft;for(;Ne&&Ne!==ze;)Ft=b(Ne),n(Ne,Ke,vt),Ne=Ft;n(ze,Ke,vt)},V=({el:Ne,anchor:ze})=>{let Ke;for(;Ne&&Ne!==ze;)Ke=b(Ne),o(Ne),Ne=Ke;o(ze)},ne=(Ne,ze,Ke,vt,Ft,Ot,_t,Tn,on)=>{_t=_t||ze.type==="svg",Ne==null?W(ze,Ke,vt,Ft,Ot,_t,Tn,on):D(Ne,ze,Ft,Ot,_t,Tn,on)},W=(Ne,ze,Ke,vt,Ft,Ot,_t,Tn)=>{let on,$n;const{type:Zt,props:Et,shapeFlag:rn,transition:wt,dirs:Yn}=Ne;if(on=Ne.el=c(Ne.type,Ot,Et&&Et.is,Et),rn&8?w(on,Ne.children):rn&16&&q(Ne.children,on,null,vt,Ft,Ot&&Zt!=="foreignObject",_t,Tn),Yn&&invokeDirectiveHook(Ne,null,vt,"created"),B(on,Ne,Ne.scopeId,_t,vt),Et){for(const Fe in Et)Fe!=="value"&&!isReservedProp(Fe)&&s(on,Fe,null,Et[Fe],Ot,Ne.children,vt,Ft,He);"value"in Et&&s(on,"value",null,Et.value),($n=Et.onVnodeBeforeMount)&&invokeVNodeHook($n,vt,Ne)}Yn&&invokeDirectiveHook(Ne,null,vt,"beforeMount");const pt=(!Ft||Ft&&!Ft.pendingBranch)&&wt&&!wt.persisted;pt&&wt.beforeEnter(on),n(on,ze,Ke),(($n=Et&&Et.onVnodeMounted)||pt||Yn)&&queuePostRenderEffect(()=>{$n&&invokeVNodeHook($n,vt,Ne),pt&&wt.enter(on),Yn&&invokeDirectiveHook(Ne,null,vt,"mounted")},Ft)},B=(Ne,ze,Ke,vt,Ft)=>{if(Ke&&E(Ne,Ke),vt)for(let Ot=0;Ot<vt.length;Ot++)E(Ne,vt[Ot]);if(Ft){let Ot=Ft.subTree;if(ze===Ot){const _t=Ft.vnode;B(Ne,_t,_t.scopeId,_t.slotScopeIds,Ft.parent)}}},q=(Ne,ze,Ke,vt,Ft,Ot,_t,Tn,on=0)=>{for(let $n=on;$n<Ne.length;$n++){const Zt=Ne[$n]=Tn?cloneIfMounted(Ne[$n]):normalizeVNode(Ne[$n]);O(null,Zt,ze,Ke,vt,Ft,Ot,_t,Tn)}},D=(Ne,ze,Ke,vt,Ft,Ot,_t)=>{const Tn=ze.el=Ne.el;let{patchFlag:on,dynamicChildren:$n,dirs:Zt}=ze;on|=Ne.patchFlag&16;const Et=Ne.props||EMPTY_OBJ,rn=ze.props||EMPTY_OBJ;let wt;Ke&&toggleRecurse(Ke,!1),(wt=rn.onVnodeBeforeUpdate)&&invokeVNodeHook(wt,Ke,ze,Ne),Zt&&invokeDirectiveHook(ze,Ne,Ke,"beforeUpdate"),Ke&&toggleRecurse(Ke,!0);const Yn=Ft&&ze.type!=="foreignObject";if($n?F(Ne.dynamicChildren,$n,Tn,Ke,vt,Yn,Ot):_t||Le(Ne,ze,Tn,null,Ke,vt,Yn,Ot,!1),on>0){if(on&16)re(Tn,ze,Et,rn,Ke,vt,Ft);else if(on&2&&Et.class!==rn.class&&s(Tn,"class",null,rn.class,Ft),on&4&&s(Tn,"style",Et.style,rn.style,Ft),on&8){const pt=ze.dynamicProps;for(let Fe=0;Fe<pt.length;Fe++){const Ie=pt[Fe],ct=Et[Ie],Ht=rn[Ie];(Ht!==ct||Ie==="value")&&s(Tn,Ie,ct,Ht,Ft,Ne.children,Ke,vt,He)}}on&1&&Ne.children!==ze.children&&w(Tn,ze.children)}else!_t&&$n==null&&re(Tn,ze,Et,rn,Ke,vt,Ft);((wt=rn.onVnodeUpdated)||Zt)&&queuePostRenderEffect(()=>{wt&&invokeVNodeHook(wt,Ke,ze,Ne),Zt&&invokeDirectiveHook(ze,Ne,Ke,"updated")},vt)},F=(Ne,ze,Ke,vt,Ft,Ot,_t)=>{for(let Tn=0;Tn<ze.length;Tn++){const on=Ne[Tn],$n=ze[Tn],Zt=on.el&&(on.type===Fragment||!isSameVNodeType(on,$n)||on.shapeFlag&70)?_(on.el):Ke;O(on,$n,Zt,null,vt,Ft,Ot,_t,!0)}},re=(Ne,ze,Ke,vt,Ft,Ot,_t)=>{if(Ke!==vt){if(Ke!==EMPTY_OBJ)for(const Tn in Ke)!isReservedProp(Tn)&&!(Tn in vt)&&s(Ne,Tn,Ke[Tn],null,_t,ze.children,Ft,Ot,He);for(const Tn in vt){if(isReservedProp(Tn))continue;const on=vt[Tn],$n=Ke[Tn];on!==$n&&Tn!=="value"&&s(Ne,Tn,$n,on,_t,ze.children,Ft,Ot,He)}"value"in vt&&s(Ne,"value",Ke.value,vt.value)}},le=(Ne,ze,Ke,vt,Ft,Ot,_t,Tn,on)=>{const $n=ze.el=Ne?Ne.el:l(""),Zt=ze.anchor=Ne?Ne.anchor:l("");let{patchFlag:Et,dynamicChildren:rn,slotScopeIds:wt}=ze;wt&&(Tn=Tn?Tn.concat(wt):wt),Ne==null?(n($n,Ke,vt),n(Zt,Ke,vt),q(ze.children,Ke,Zt,Ft,Ot,_t,Tn,on)):Et>0&&Et&64&&rn&&Ne.dynamicChildren?(F(Ne.dynamicChildren,rn,Ke,Ft,Ot,_t,Tn),(ze.key!=null||Ft&&ze===Ft.subTree)&&traverseStaticChildren(Ne,ze,!0)):Le(Ne,ze,Ke,Zt,Ft,Ot,_t,Tn,on)},fe=(Ne,ze,Ke,vt,Ft,Ot,_t,Tn,on)=>{ze.slotScopeIds=Tn,Ne==null?ze.shapeFlag&512?Ft.ctx.activate(ze,Ke,vt,_t,on):me(ze,Ke,vt,Ft,Ot,_t,on):ye(Ne,ze,on)},me=(Ne,ze,Ke,vt,Ft,Ot,_t)=>{const Tn=Ne.component=createComponentInstance(Ne,vt,Ft);if(isKeepAlive(Ne)&&(Tn.ctx.renderer=Ze),setupComponent(Tn),Tn.asyncDep){if(Ft&&Ft.registerDep(Tn,Te),!Ne.el){const on=Tn.subTree=createVNode(Comment);A(null,on,ze,Ke)}return}Te(Tn,Ne,ze,Ke,Ft,Ot,_t)},ye=(Ne,ze,Ke)=>{const vt=ze.component=Ne.component;if(shouldUpdateComponent(Ne,ze,Ke))if(vt.asyncDep&&!vt.asyncResolved){ke(vt,ze,Ke);return}else vt.next=ze,invalidateJob(vt.update),vt.update();else ze.el=Ne.el,vt.vnode=ze},Te=(Ne,ze,Ke,vt,Ft,Ot,_t)=>{const Tn=()=>{if(Ne.isMounted){let{next:Zt,bu:Et,u:rn,parent:wt,vnode:Yn}=Ne,pt=Zt,Fe;toggleRecurse(Ne,!1),Zt?(Zt.el=Yn.el,ke(Ne,Zt,_t)):Zt=Yn,Et&&invokeArrayFns(Et),(Fe=Zt.props&&Zt.props.onVnodeBeforeUpdate)&&invokeVNodeHook(Fe,wt,Zt,Yn),toggleRecurse(Ne,!0);const Ie=renderComponentRoot(Ne),ct=Ne.subTree;Ne.subTree=Ie,O(ct,Ie,_(ct.el),gt(ct),Ne,Ft,Ot),Zt.el=Ie.el,pt===null&&updateHOCHostEl(Ne,Ie.el),rn&&queuePostRenderEffect(rn,Ft),(Fe=Zt.props&&Zt.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(Fe,wt,Zt,Yn),Ft)}else{let Zt;const{el:Et,props:rn}=ze,{bm:wt,m:Yn,parent:pt}=Ne,Fe=isAsyncWrapper(ze);if(toggleRecurse(Ne,!1),wt&&invokeArrayFns(wt),!Fe&&(Zt=rn&&rn.onVnodeBeforeMount)&&invokeVNodeHook(Zt,pt,ze),toggleRecurse(Ne,!0),Et&&Lt){const Ie=()=>{Ne.subTree=renderComponentRoot(Ne),Lt(Et,Ne.subTree,Ne,Ft,null)};Fe?ze.type.__asyncLoader().then(()=>!Ne.isUnmounted&&Ie()):Ie()}else{const Ie=Ne.subTree=renderComponentRoot(Ne);O(null,Ie,Ke,vt,Ne,Ft,Ot),ze.el=Ie.el}if(Yn&&queuePostRenderEffect(Yn,Ft),!Fe&&(Zt=rn&&rn.onVnodeMounted)){const Ie=ze;queuePostRenderEffect(()=>invokeVNodeHook(Zt,pt,Ie),Ft)}(ze.shapeFlag&256||pt&&isAsyncWrapper(pt.vnode)&&pt.vnode.shapeFlag&256)&&Ne.a&&queuePostRenderEffect(Ne.a,Ft),Ne.isMounted=!0,ze=Ke=vt=null}},on=Ne.effect=new ReactiveEffect(Tn,()=>queueJob($n),Ne.scope),$n=Ne.update=()=>on.run();$n.id=Ne.uid,toggleRecurse(Ne,!0),$n()},ke=(Ne,ze,Ke)=>{ze.component=Ne;const vt=Ne.vnode.props;Ne.vnode=ze,Ne.next=null,updateProps(Ne,ze.props,vt,Ke),updateSlots(Ne,ze.children,Ke),pauseTracking(),flushPreFlushCbs(),resetTracking()},Le=(Ne,ze,Ke,vt,Ft,Ot,_t,Tn,on=!1)=>{const $n=Ne&&Ne.children,Zt=Ne?Ne.shapeFlag:0,Et=ze.children,{patchFlag:rn,shapeFlag:wt}=ze;if(rn>0){if(rn&128){it($n,Et,Ke,vt,Ft,Ot,_t,Tn,on);return}else if(rn&256){et($n,Et,Ke,vt,Ft,Ot,_t,Tn,on);return}}wt&8?(Zt&16&&He($n,Ft,Ot),Et!==$n&&w(Ke,Et)):Zt&16?wt&16?it($n,Et,Ke,vt,Ft,Ot,_t,Tn,on):He($n,Ft,Ot,!0):(Zt&8&&w(Ke,""),wt&16&&q(Et,Ke,vt,Ft,Ot,_t,Tn,on))},et=(Ne,ze,Ke,vt,Ft,Ot,_t,Tn,on)=>{Ne=Ne||EMPTY_ARR,ze=ze||EMPTY_ARR;const $n=Ne.length,Zt=ze.length,Et=Math.min($n,Zt);let rn;for(rn=0;rn<Et;rn++){const wt=ze[rn]=on?cloneIfMounted(ze[rn]):normalizeVNode(ze[rn]);O(Ne[rn],wt,Ke,null,Ft,Ot,_t,Tn,on)}$n>Zt?He(Ne,Ft,Ot,!0,!1,Et):q(ze,Ke,vt,Ft,Ot,_t,Tn,on,Et)},it=(Ne,ze,Ke,vt,Ft,Ot,_t,Tn,on)=>{let $n=0;const Zt=ze.length;let Et=Ne.length-1,rn=Zt-1;for(;$n<=Et&&$n<=rn;){const wt=Ne[$n],Yn=ze[$n]=on?cloneIfMounted(ze[$n]):normalizeVNode(ze[$n]);if(isSameVNodeType(wt,Yn))O(wt,Yn,Ke,null,Ft,Ot,_t,Tn,on);else break;$n++}for(;$n<=Et&&$n<=rn;){const wt=Ne[Et],Yn=ze[rn]=on?cloneIfMounted(ze[rn]):normalizeVNode(ze[rn]);if(isSameVNodeType(wt,Yn))O(wt,Yn,Ke,null,Ft,Ot,_t,Tn,on);else break;Et--,rn--}if($n>Et){if($n<=rn){const wt=rn+1,Yn=wt<Zt?ze[wt].el:vt;for(;$n<=rn;)O(null,ze[$n]=on?cloneIfMounted(ze[$n]):normalizeVNode(ze[$n]),Ke,Yn,Ft,Ot,_t,Tn,on),$n++}}else if($n>rn)for(;$n<=Et;)ht(Ne[$n],Ft,Ot,!0),$n++;else{const wt=$n,Yn=$n,pt=new Map;for($n=Yn;$n<=rn;$n++){const Kr=ze[$n]=on?cloneIfMounted(ze[$n]):normalizeVNode(ze[$n]);Kr.key!=null&&pt.set(Kr.key,$n)}let Fe,Ie=0;const ct=rn-Yn+1;let Ht=!1,sn=0;const yn=new Array(ct);for($n=0;$n<ct;$n++)yn[$n]=0;for($n=wt;$n<=Et;$n++){const Kr=Ne[$n];if(Ie>=ct){ht(Kr,Ft,Ot,!0);continue}let ii;if(Kr.key!=null)ii=pt.get(Kr.key);else for(Fe=Yn;Fe<=rn;Fe++)if(yn[Fe-Yn]===0&&isSameVNodeType(Kr,ze[Fe])){ii=Fe;break}ii===void 0?ht(Kr,Ft,Ot,!0):(yn[ii-Yn]=$n+1,ii>=sn?sn=ii:Ht=!0,O(Kr,ze[ii],Ke,null,Ft,Ot,_t,Tn,on),Ie++)}const Dr=Ht?getSequence(yn):EMPTY_ARR;for(Fe=Dr.length-1,$n=ct-1;$n>=0;$n--){const Kr=Yn+$n,ii=ze[Kr],_n=Kr+1<Zt?ze[Kr+1].el:vt;yn[$n]===0?O(null,ii,Ke,_n,Ft,Ot,_t,Tn,on):Ht&&(Fe<0||$n!==Dr[Fe]?Ue(ii,Ke,_n,2):Fe--)}}},Ue=(Ne,ze,Ke,vt,Ft=null)=>{const{el:Ot,type:_t,transition:Tn,children:on,shapeFlag:$n}=Ne;if($n&6){Ue(Ne.component.subTree,ze,Ke,vt);return}if($n&128){Ne.suspense.move(ze,Ke,vt);return}if($n&64){_t.move(Ne,ze,Ke,Ze);return}if(_t===Fragment){n(Ot,ze,Ke);for(let Et=0;Et<on.length;Et++)Ue(on[Et],ze,Ke,vt);n(Ne.anchor,ze,Ke);return}if(_t===Static){G(Ne,ze,Ke);return}if(vt!==2&&$n&1&&Tn)if(vt===0)Tn.beforeEnter(Ot),n(Ot,ze,Ke),queuePostRenderEffect(()=>Tn.enter(Ot),Ft);else{const{leave:Et,delayLeave:rn,afterLeave:wt}=Tn,Yn=()=>n(Ot,ze,Ke),pt=()=>{Et(Ot,()=>{Yn(),wt&&wt()})};rn?rn(Ot,Yn,pt):pt()}else n(Ot,ze,Ke)},ht=(Ne,ze,Ke,vt=!1,Ft=!1)=>{const{type:Ot,props:_t,ref:Tn,children:on,dynamicChildren:$n,shapeFlag:Zt,patchFlag:Et,dirs:rn}=Ne;if(Tn!=null&&setRef(Tn,null,Ke,Ne,!0),Zt&256){ze.ctx.deactivate(Ne);return}const wt=Zt&1&&rn,Yn=!isAsyncWrapper(Ne);let pt;if(Yn&&(pt=_t&&_t.onVnodeBeforeUnmount)&&invokeVNodeHook(pt,ze,Ne),Zt&6)Ve(Ne.component,Ke,vt);else{if(Zt&128){Ne.suspense.unmount(Ke,vt);return}wt&&invokeDirectiveHook(Ne,null,ze,"beforeUnmount"),Zt&64?Ne.type.remove(Ne,ze,Ke,Ft,Ze,vt):$n&&(Ot!==Fragment||Et>0&&Et&64)?He($n,ze,Ke,!1,!0):(Ot===Fragment&&Et&384||!Ft&&Zt&16)&&He(on,ze,Ke),vt&&De(Ne)}(Yn&&(pt=_t&&_t.onVnodeUnmounted)||wt)&&queuePostRenderEffect(()=>{pt&&invokeVNodeHook(pt,ze,Ne),wt&&invokeDirectiveHook(Ne,null,ze,"unmounted")},Ke)},De=Ne=>{const{type:ze,el:Ke,anchor:vt,transition:Ft}=Ne;if(ze===Fragment){Be(Ke,vt);return}if(ze===Static){V(Ne);return}const Ot=()=>{o(Ke),Ft&&!Ft.persisted&&Ft.afterLeave&&Ft.afterLeave()};if(Ne.shapeFlag&1&&Ft&&!Ft.persisted){const{leave:_t,delayLeave:Tn}=Ft,on=()=>_t(Ke,Ot);Tn?Tn(Ne.el,Ot,on):on()}else Ot()},Be=(Ne,ze)=>{let Ke;for(;Ne!==ze;)Ke=b(Ne),o(Ne),Ne=Ke;o(ze)},Ve=(Ne,ze,Ke)=>{const{bum:vt,scope:Ft,update:Ot,subTree:_t,um:Tn}=Ne;vt&&invokeArrayFns(vt),Ft.stop(),Ot&&(Ot.active=!1,ht(_t,Ne,ze,Ke)),Tn&&queuePostRenderEffect(Tn,ze),queuePostRenderEffect(()=>{Ne.isUnmounted=!0},ze),ze&&ze.pendingBranch&&!ze.isUnmounted&&Ne.asyncDep&&!Ne.asyncResolved&&Ne.suspenseId===ze.pendingId&&(ze.deps--,ze.deps===0&&ze.resolve())},He=(Ne,ze,Ke,vt=!1,Ft=!1,Ot=0)=>{for(let _t=Ot;_t<Ne.length;_t++)ht(Ne[_t],ze,Ke,vt,Ft)},gt=Ne=>Ne.shapeFlag&6?gt(Ne.component.subTree):Ne.shapeFlag&128?Ne.suspense.next():b(Ne.anchor||Ne.el),dn=(Ne,ze,Ke)=>{Ne==null?ze._vnode&&ht(ze._vnode,null,null,!0):O(ze._vnode||null,Ne,ze,null,null,null,Ke),flushPreFlushCbs(),flushPostFlushCbs(),ze._vnode=Ne},Ze={p:O,um:ht,m:Ue,r:De,mt:me,mc:q,pc:Le,pbc:F,n:gt,o:t};let at,Lt;return e&&([at,Lt]=e(Ze)),{render:dn,hydrate:at,createApp:createAppAPI(dn,at)}}function toggleRecurse({effect:t,update:e},r){t.allowRecurse=e.allowRecurse=r}function traverseStaticChildren(t,e,r=!1){const n=t.children,o=e.children;if(isArray$3(n)&&isArray$3(o))for(let s=0;s<n.length;s++){const c=n[s];let l=o[s];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=o[s]=cloneIfMounted(o[s]),l.el=c.el),r||traverseStaticChildren(c,l)),l.type===Text&&(l.el=c.el)}}function getSequence(t){const e=t.slice(),r=[0];let n,o,s,c,l;const v=t.length;for(n=0;n<v;n++){const x=t[n];if(x!==0){if(o=r[r.length-1],t[o]<x){e[n]=o,r.push(n);continue}for(s=0,c=r.length-1;s<c;)l=s+c>>1,t[r[l]]<x?s=l+1:c=l;x<t[r[s]]&&(s>0&&(e[n]=r[s-1]),r[s]=n)}}for(s=r.length,c=r[s-1];s-- >0;)r[s]=c,c=e[c];return r}const isTeleport=t=>t.__isTeleport,isTeleportDisabled=t=>t&&(t.disabled||t.disabled===""),isTargetSVG=t=>typeof SVGElement!="undefined"&&t instanceof SVGElement,resolveTarget=(t,e)=>{const r=t&&t.to;return isString$4(r)?e?e(r):null:r},TeleportImpl={__isTeleport:!0,process(t,e,r,n,o,s,c,l,v,x){const{mc:w,pc:_,pbc:b,o:{insert:E,querySelector:I,createText:O,createComment:N}}=x,A=isTeleportDisabled(e.props);let{shapeFlag:z,children:G,dynamicChildren:V}=e;if(t==null){const ne=e.el=O(""),W=e.anchor=O("");E(ne,r,n),E(W,r,n);const B=e.target=resolveTarget(e.props,I),q=e.targetAnchor=O("");B&&(E(q,B),c=c||isTargetSVG(B));const D=(F,re)=>{z&16&&w(G,F,re,o,s,c,l,v)};A?D(r,W):B&&D(B,q)}else{e.el=t.el;const ne=e.anchor=t.anchor,W=e.target=t.target,B=e.targetAnchor=t.targetAnchor,q=isTeleportDisabled(t.props),D=q?r:W,F=q?ne:B;if(c=c||isTargetSVG(W),V?(b(t.dynamicChildren,V,D,o,s,c,l),traverseStaticChildren(t,e,!0)):v||_(t,e,D,F,o,s,c,l,!1),A)q||moveTeleport(e,r,ne,x,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const re=e.target=resolveTarget(e.props,I);re&&moveTeleport(e,re,null,x,0)}else q&&moveTeleport(e,W,B,x,1)}updateCssVars(e)},remove(t,e,r,n,{um:o,o:{remove:s}},c){const{shapeFlag:l,children:v,anchor:x,targetAnchor:w,target:_,props:b}=t;if(_&&s(w),(c||!isTeleportDisabled(b))&&(s(x),l&16))for(let E=0;E<v.length;E++){const I=v[E];o(I,e,r,!0,!!I.dynamicChildren)}},move:moveTeleport,hydrate:hydrateTeleport};function moveTeleport(t,e,r,{o:{insert:n},m:o},s=2){s===0&&n(t.targetAnchor,e,r);const{el:c,anchor:l,shapeFlag:v,children:x,props:w}=t,_=s===2;if(_&&n(c,e,r),(!_||isTeleportDisabled(w))&&v&16)for(let b=0;b<x.length;b++)o(x[b],e,r,2);_&&n(l,e,r)}function hydrateTeleport(t,e,r,n,o,s,{o:{nextSibling:c,parentNode:l,querySelector:v}},x){const w=e.target=resolveTarget(e.props,v);if(w){const _=w._lpa||w.firstChild;if(e.shapeFlag&16)if(isTeleportDisabled(e.props))e.anchor=x(c(t),e,l(t),r,n,o,s),e.targetAnchor=_;else{e.anchor=c(t);let b=_;for(;b;)if(b=c(b),b&&b.nodeType===8&&b.data==="teleport anchor"){e.targetAnchor=b,w._lpa=e.targetAnchor&&c(e.targetAnchor);break}x(_,e,w,r,n,o,s)}updateCssVars(e)}return e.anchor&&c(e.anchor)}const Teleport=TeleportImpl;function updateCssVars(t){const e=t.ctx;if(e&&e.ut){let r=t.children[0].el;for(;r!==t.targetAnchor;)r.nodeType===1&&r.setAttribute("data-v-owner",e.uid),r=r.nextSibling;e.ut()}}const Fragment=Symbol.for("v-fgt"),Text=Symbol.for("v-txt"),Comment=Symbol.for("v-cmt"),Static=Symbol.for("v-stc"),blockStack=[];let currentBlock=null;function openBlock(t=!1){blockStack.push(currentBlock=t?null:[])}function closeBlock(){blockStack.pop(),currentBlock=blockStack[blockStack.length-1]||null}let isBlockTreeEnabled=1;function setBlockTracking(t){isBlockTreeEnabled+=t}function setupBlock(t){return t.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&&currentBlock&&currentBlock.push(t),t}function createElementBlock(t,e,r,n,o,s){return setupBlock(createBaseVNode(t,e,r,n,o,s,!0))}function createBlock(t,e,r,n,o){return setupBlock(createVNode(t,e,r,n,o,!0))}function isVNode$1(t){return t?t.__v_isVNode===!0:!1}function isSameVNodeType(t,e){return t.type===e.type&&t.key===e.key}function transformVNodeArgs(t){}const InternalObjectKey="__vInternal",normalizeKey=({key:t})=>t!=null?t:null,normalizeRef=({ref:t,ref_key:e,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?isString$4(t)||isRef(t)||isFunction$3(t)?{i:currentRenderingInstance,r:t,k:e,f:!!r}:t:null);function createBaseVNode(t,e=null,r=null,n=0,o=null,s=t===Fragment?0:1,c=!1,l=!1){const v={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&normalizeKey(e),ref:e&&normalizeRef(e),scopeId:currentScopeId,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:n,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return l?(normalizeChildren(v,r),s&128&&t.normalize(v)):r&&(v.shapeFlag|=isString$4(r)?8:16),isBlockTreeEnabled>0&&!c&&currentBlock&&(v.patchFlag>0||s&6)&&v.patchFlag!==32&&currentBlock.push(v),v}const createVNode=_createVNode;function _createVNode(t,e=null,r=null,n=0,o=null,s=!1){if((!t||t===NULL_DYNAMIC_COMPONENT)&&(t=Comment),isVNode$1(t)){const l=cloneVNode(t,e,!0);return r&&normalizeChildren(l,r),isBlockTreeEnabled>0&&!s&&currentBlock&&(l.shapeFlag&6?currentBlock[currentBlock.indexOf(t)]=l:currentBlock.push(l)),l.patchFlag|=-2,l}if(isClassComponent(t)&&(t=t.__vccOpts),e){e=guardReactiveProps(e);let{class:l,style:v}=e;l&&!isString$4(l)&&(e.class=normalizeClass(l)),isObject$4(v)&&(isProxy(v)&&!isArray$3(v)&&(v=extend$1({},v)),e.style=normalizeStyle(v))}const c=isString$4(t)?1:isSuspense(t)?128:isTeleport(t)?64:isObject$4(t)?4:isFunction$3(t)?2:0;return createBaseVNode(t,e,r,n,o,c,s,!0)}function guardReactiveProps(t){return t?isProxy(t)||InternalObjectKey in t?extend$1({},t):t:null}function cloneVNode(t,e,r=!1){const{props:n,ref:o,patchFlag:s,children:c}=t,l=e?mergeProps(n||{},e):n;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:l,key:l&&normalizeKey(l),ref:e&&e.ref?r&&o?isArray$3(o)?o.concat(normalizeRef(e)):[o,normalizeRef(e)]:normalizeRef(e):o,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:c,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Fragment?s===-1?16:s|16:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&cloneVNode(t.ssContent),ssFallback:t.ssFallback&&cloneVNode(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function createTextVNode(t=" ",e=0){return createVNode(Text,null,t,e)}function createStaticVNode(t,e){const r=createVNode(Static,null,t);return r.staticCount=e,r}function createCommentVNode(t="",e=!1){return e?(openBlock(),createBlock(Comment,null,t)):createVNode(Comment,null,t)}function normalizeVNode(t){return t==null||typeof t=="boolean"?createVNode(Comment):isArray$3(t)?createVNode(Fragment,null,t.slice()):typeof t=="object"?cloneIfMounted(t):createVNode(Text,null,String(t))}function cloneIfMounted(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:cloneVNode(t)}function normalizeChildren(t,e){let r=0;const{shapeFlag:n}=t;if(e==null)e=null;else if(isArray$3(e))r=16;else if(typeof e=="object")if(n&65){const o=e.default;o&&(o._c&&(o._d=!1),normalizeChildren(t,o()),o._c&&(o._d=!0));return}else{r=32;const o=e._;!o&&!(InternalObjectKey in e)?e._ctx=currentRenderingInstance:o===3&&currentRenderingInstance&&(currentRenderingInstance.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else isFunction$3(e)?(e={default:e,_ctx:currentRenderingInstance},r=32):(e=String(e),n&64?(r=16,e=[createTextVNode(e)]):r=8);t.children=e,t.shapeFlag|=r}function mergeProps(...t){const e={};for(let r=0;r<t.length;r++){const n=t[r];for(const o in n)if(o==="class")e.class!==n.class&&(e.class=normalizeClass([e.class,n.class]));else if(o==="style")e.style=normalizeStyle([e.style,n.style]);else if(isOn$1(o)){const s=e[o],c=n[o];c&&s!==c&&!(isArray$3(s)&&s.includes(c))&&(e[o]=s?[].concat(s,c):c)}else o!==""&&(e[o]=n[o])}return e}function invokeVNodeHook(t,e,r,n=null){callWithAsyncErrorHandling(t,e,7,[r,n])}const emptyAppContext=createAppContext();let uid=0;function createComponentInstance(t,e,r){const n=t.type,o=(e?e.appContext:t.appContext)||emptyAppContext,s={uid:uid++,vnode:t,type:n,parent:e,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new EffectScope(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:normalizePropsOptions(n,o),emitsOptions:normalizeEmitsOptions(n,o),emit:null,emitted:null,propsDefaults:EMPTY_OBJ,inheritAttrs:n.inheritAttrs,ctx:EMPTY_OBJ,data:EMPTY_OBJ,props:EMPTY_OBJ,attrs:EMPTY_OBJ,slots:EMPTY_OBJ,refs:EMPTY_OBJ,setupState:EMPTY_OBJ,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=e?e.root:s,s.emit=emit.bind(null,s),t.ce&&t.ce(s),s}let currentInstance=null;const getCurrentInstance$1=()=>currentInstance||currentRenderingInstance;let internalSetCurrentInstance,globalCurrentInstanceSetters,settersKey="__VUE_INSTANCE_SETTERS__";(globalCurrentInstanceSetters=getGlobalThis$1()[settersKey])||(globalCurrentInstanceSetters=getGlobalThis$1()[settersKey]=[]),globalCurrentInstanceSetters.push(t=>currentInstance=t),internalSetCurrentInstance=t=>{globalCurrentInstanceSetters.length>1?globalCurrentInstanceSetters.forEach(e=>e(t)):globalCurrentInstanceSetters[0](t)};const setCurrentInstance=t=>{internalSetCurrentInstance(t),t.scope.on()},unsetCurrentInstance=()=>{currentInstance&&currentInstance.scope.off(),internalSetCurrentInstance(null)};function isStatefulComponent(t){return t.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent(t,e=!1){isInSSRComponentSetup=e;const{props:r,children:n}=t.vnode,o=isStatefulComponent(t);initProps(t,r,o,e),initSlots(t,n);const s=o?setupStatefulComponent(t,e):void 0;return isInSSRComponentSetup=!1,s}function setupStatefulComponent(t,e){const r=t.type;t.accessCache=Object.create(null),t.proxy=markRaw(new Proxy(t.ctx,PublicInstanceProxyHandlers));const{setup:n}=r;if(n){const o=t.setupContext=n.length>1?createSetupContext(t):null;setCurrentInstance(t),pauseTracking();const s=callWithErrorHandling(n,t,0,[t.props,o]);if(resetTracking(),unsetCurrentInstance(),isPromise$2(s)){if(s.then(unsetCurrentInstance,unsetCurrentInstance),e)return s.then(c=>{handleSetupResult(t,c,e)}).catch(c=>{handleError(c,t,0)});t.asyncDep=s}else handleSetupResult(t,s,e)}else finishComponentSetup(t,e)}function handleSetupResult(t,e,r){isFunction$3(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:isObject$4(e)&&(t.setupState=proxyRefs(e)),finishComponentSetup(t,r)}let compile$2,installWithProxy;function registerRuntimeCompiler(t){compile$2=t,installWithProxy=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,RuntimeCompiledPublicInstanceProxyHandlers))}}const isRuntimeOnly=()=>!compile$2;function finishComponentSetup(t,e,r){const n=t.type;if(!t.render){if(!e&&compile$2&&!n.render){const o=n.template||resolveMergedOptions(t).template;if(o){const{isCustomElement:s,compilerOptions:c}=t.appContext.config,{delimiters:l,compilerOptions:v}=n,x=extend$1(extend$1({isCustomElement:s,delimiters:l},c),v);n.render=compile$2(o,x)}}t.render=n.render||NOOP,installWithProxy&&installWithProxy(t)}setCurrentInstance(t),pauseTracking(),applyOptions(t),resetTracking(),unsetCurrentInstance()}function getAttrsProxy(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,r){return track(t,"get","$attrs"),e[r]}}))}function createSetupContext(t){const e=r=>{t.exposed=r||{}};return{get attrs(){return getAttrsProxy(t)},slots:t.slots,emit:t.emit,expose:e}}function getExposeProxy(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(proxyRefs(markRaw(t.exposed)),{get(e,r){if(r in e)return e[r];if(r in publicPropertiesMap)return publicPropertiesMap[r](t)},has(e,r){return r in e||r in publicPropertiesMap}}))}function getComponentName(t,e=!0){return isFunction$3(t)?t.displayName||t.name:t.name||e&&t.__name}function isClassComponent(t){return isFunction$3(t)&&"__vccOpts"in t}const computed=(t,e)=>computed$1(t,e,isInSSRComponentSetup);function h(t,e,r){const n=arguments.length;return n===2?isObject$4(e)&&!isArray$3(e)?isVNode$1(e)?createVNode(t,null,[e]):createVNode(t,e):createVNode(t,null,e):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&isVNode$1(r)&&(r=[r]),createVNode(t,e,r))}const ssrContextKey=Symbol.for("v-scx"),useSSRContext=()=>inject$1(ssrContextKey);function initCustomFormatter(){}function withMemo(t,e,r,n){const o=r[n];if(o&&isMemoSame(o,t))return o;const s=e();return s.memo=t.slice(),r[n]=s}function isMemoSame(t,e){const r=t.memo;if(r.length!=e.length)return!1;for(let n=0;n<r.length;n++)if(hasChanged(r[n],e[n]))return!1;return isBlockTreeEnabled>0&&currentBlock&&currentBlock.push(t),!0}const version$4="3.3.4",_ssrUtils={createComponentInstance,setupComponent,renderComponentRoot,setCurrentRenderingInstance,isVNode:isVNode$1,normalizeVNode},ssrUtils=_ssrUtils,resolveFilter=null,compatUtils=null,svgNS="http://www.w3.org/2000/svg",doc=typeof document!="undefined"?document:null,templateContainer=doc&&doc.createElement("template"),nodeOps={insert:(t,e,r)=>{e.insertBefore(t,r||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,r,n)=>{const o=e?doc.createElementNS(svgNS,t):doc.createElement(t,r?{is:r}:void 0);return t==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:t=>doc.createTextNode(t),createComment:t=>doc.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>doc.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,r,n,o,s){const c=r?r.previousSibling:e.lastChild;if(o&&(o===s||o.nextSibling))for(;e.insertBefore(o.cloneNode(!0),r),!(o===s||!(o=o.nextSibling)););else{templateContainer.innerHTML=n?`<svg>${t}</svg>`:t;const l=templateContainer.content;if(n){const v=l.firstChild;for(;v.firstChild;)l.appendChild(v.firstChild);l.removeChild(v)}e.insertBefore(l,r)}return[c?c.nextSibling:e.firstChild,r?r.previousSibling:e.lastChild]}};function patchClass(t,e,r){const n=t._vtc;n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?t.removeAttribute("class"):r?t.setAttribute("class",e):t.className=e}function patchStyle(t,e,r){const n=t.style,o=isString$4(r);if(r&&!o){if(e&&!isString$4(e))for(const s in e)r[s]==null&&setStyle(n,s,"");for(const s in r)setStyle(n,s,r[s])}else{const s=n.display;o?e!==r&&(n.cssText=r):e&&t.removeAttribute("style"),"_vod"in t&&(n.display=s)}}const importantRE=/\s*!important$/;function setStyle(t,e,r){if(isArray$3(r))r.forEach(n=>setStyle(t,e,n));else if(r==null&&(r=""),e.startsWith("--"))t.setProperty(e,r);else{const n=autoPrefix(t,e);importantRE.test(r)?t.setProperty(hyphenate(n),r.replace(importantRE,""),"important"):t[n]=r}}const prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(t,e){const r=prefixCache[e];if(r)return r;let n=camelize(e);if(n!=="filter"&&n in t)return prefixCache[e]=n;n=capitalize$1(n);for(let o=0;o<prefixes.length;o++){const s=prefixes[o]+n;if(s in t)return prefixCache[e]=s}return e}const xlinkNS="http://www.w3.org/1999/xlink";function patchAttr(t,e,r,n,o){if(n&&e.startsWith("xlink:"))r==null?t.removeAttributeNS(xlinkNS,e.slice(6,e.length)):t.setAttributeNS(xlinkNS,e,r);else{const s=isSpecialBooleanAttr(e);r==null||s&&!includeBooleanAttr(r)?t.removeAttribute(e):t.setAttribute(e,s?"":r)}}function patchDOMProp(t,e,r,n,o,s,c){if(e==="innerHTML"||e==="textContent"){n&&c(n,o,s),t[e]=r==null?"":r;return}const l=t.tagName;if(e==="value"&&l!=="PROGRESS"&&!l.includes("-")){t._value=r;const x=l==="OPTION"?t.getAttribute("value"):t.value,w=r==null?"":r;x!==w&&(t.value=w),r==null&&t.removeAttribute(e);return}let v=!1;if(r===""||r==null){const x=typeof t[e];x==="boolean"?r=includeBooleanAttr(r):r==null&&x==="string"?(r="",v=!0):x==="number"&&(r=0,v=!0)}try{t[e]=r}catch(x){}v&&t.removeAttribute(e)}function addEventListener(t,e,r,n){t.addEventListener(e,r,n)}function removeEventListener(t,e,r,n){t.removeEventListener(e,r,n)}function patchEvent(t,e,r,n,o=null){const s=t._vei||(t._vei={}),c=s[e];if(n&&c)c.value=n;else{const[l,v]=parseName(e);if(n){const x=s[e]=createInvoker(n,o);addEventListener(t,l,x,v)}else c&&(removeEventListener(t,l,c,v),s[e]=void 0)}}const optionsModifierRE=/(?:Once|Passive|Capture)$/;function parseName(t){let e;if(optionsModifierRE.test(t)){e={};let n;for(;n=t.match(optionsModifierRE);)t=t.slice(0,t.length-n[0].length),e[n[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):hyphenate(t.slice(2)),e]}let cachedNow=0;const p$1=Promise.resolve(),getNow=()=>cachedNow||(p$1.then(()=>cachedNow=0),cachedNow=Date.now());function createInvoker(t,e){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(n,r.value),e,5,[n])};return r.value=t,r.attached=getNow(),r}function patchStopImmediatePropagation(t,e){if(isArray$3(e)){const r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},e.map(n=>o=>!o._stopped&&n&&n(o))}else return e}const nativeOnRE=/^on[a-z]/,patchProp=(t,e,r,n,o=!1,s,c,l,v)=>{e==="class"?patchClass(t,n,o):e==="style"?patchStyle(t,r,n):isOn$1(e)?isModelListener(e)||patchEvent(t,e,r,n,c):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):shouldSetAsProp(t,e,n,o))?patchDOMProp(t,e,n,s,c,l,v):(e==="true-value"?t._trueValue=n:e==="false-value"&&(t._falseValue=n),patchAttr(t,e,n,o))};function shouldSetAsProp(t,e,r,n){return n?!!(e==="innerHTML"||e==="textContent"||e in t&&nativeOnRE.test(e)&&isFunction$3(r)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||nativeOnRE.test(e)&&isString$4(r)?!1:e in t}function defineCustomElement(t,e){const r=defineComponent$1(t);class n extends VueElement{constructor(s){super(r,s,e)}}return n.def=r,n}const defineSSRCustomElement=t=>defineCustomElement(t,hydrate),BaseClass=typeof HTMLElement!="undefined"?HTMLElement:class{};class VueElement extends BaseClass{constructor(e,r={},n){super(),this._def=e,this._props=r,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,nextTick(()=>{this._connected||(render$1(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);new MutationObserver(n=>{for(const o of n)this._setAttr(o.attributeName)}).observe(this,{attributes:!0});const e=(n,o=!1)=>{const{props:s,styles:c}=n;let l;if(s&&!isArray$3(s))for(const v in s){const x=s[v];(x===Number||x&&x.type===Number)&&(v in this._props&&(this._props[v]=toNumber(this._props[v])),(l||(l=Object.create(null)))[camelize(v)]=!0)}this._numberProps=l,o&&this._resolveProps(n),this._applyStyles(c),this._update()},r=this._def.__asyncLoader;r?r().then(n=>e(n,!0)):e(this._def)}_resolveProps(e){const{props:r}=e,n=isArray$3(r)?r:Object.keys(r||{});for(const o of Object.keys(this))o[0]!=="_"&&n.includes(o)&&this._setProp(o,this[o],!0,!1);for(const o of n.map(camelize))Object.defineProperty(this,o,{get(){return this._getProp(o)},set(s){this._setProp(o,s)}})}_setAttr(e){let r=this.getAttribute(e);const n=camelize(e);this._numberProps&&this._numberProps[n]&&(r=toNumber(r)),this._setProp(n,r,!1)}_getProp(e){return this._props[e]}_setProp(e,r,n=!0,o=!0){r!==this._props[e]&&(this._props[e]=r,o&&this._instance&&this._update(),n&&(r===!0?this.setAttribute(hyphenate(e),""):typeof r=="string"||typeof r=="number"?this.setAttribute(hyphenate(e),r+""):r||this.removeAttribute(hyphenate(e))))}_update(){render$1(this._createVNode(),this.shadowRoot)}_createVNode(){const e=createVNode(this._def,extend$1({},this._props));return this._instance||(e.ce=r=>{this._instance=r,r.isCE=!0;const n=(s,c)=>{this.dispatchEvent(new CustomEvent(s,{detail:c}))};r.emit=(s,...c)=>{n(s,c),hyphenate(s)!==s&&n(hyphenate(s),c)};let o=this;for(;o=o&&(o.parentNode||o.host);)if(o instanceof VueElement){r.parent=o._instance,r.provides=o._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach(r=>{const n=document.createElement("style");n.textContent=r,this.shadowRoot.appendChild(n)})}}function useCssModule(t="$style"){{const e=getCurrentInstance$1();if(!e)return EMPTY_OBJ;const r=e.type.__cssModules;if(!r)return EMPTY_OBJ;const n=r[t];return n||EMPTY_OBJ}}function useCssVars(t){const e=getCurrentInstance$1();if(!e)return;const r=e.ut=(o=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(s=>setVarsOnNode(s,o))},n=()=>{const o=t(e.proxy);setVarsOnVNode(e.subTree,o),r(o)};watchPostEffect(n),onMounted(()=>{const o=new MutationObserver(n);o.observe(e.subTree.el.parentNode,{childList:!0}),onUnmounted(()=>o.disconnect())})}function setVarsOnVNode(t,e){if(t.shapeFlag&128){const r=t.suspense;t=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{setVarsOnVNode(r.activeBranch,e)})}for(;t.component;)t=t.component.subTree;if(t.shapeFlag&1&&t.el)setVarsOnNode(t.el,e);else if(t.type===Fragment)t.children.forEach(r=>setVarsOnVNode(r,e));else if(t.type===Static){let{el:r,anchor:n}=t;for(;r&&(setVarsOnNode(r,e),r!==n);)r=r.nextSibling}}function setVarsOnNode(t,e){if(t.nodeType===1){const r=t.style;for(const n in e)r.setProperty(`--${n}`,e[n])}}const TRANSITION="transition",ANIMATION="animation",Transition=(t,{slots:e})=>h(BaseTransition,resolveTransitionProps(t),e);Transition.displayName="Transition";const DOMTransitionPropsValidators={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},TransitionPropsValidators=Transition.props=extend$1({},BaseTransitionPropsValidators,DOMTransitionPropsValidators),callHook=(t,e=[])=>{isArray$3(t)?t.forEach(r=>r(...e)):t&&t(...e)},hasExplicitCallback=t=>t?isArray$3(t)?t.some(e=>e.length>1):t.length>1:!1;function resolveTransitionProps(t){const e={};for(const le in t)le in DOMTransitionPropsValidators||(e[le]=t[le]);if(t.css===!1)return e;const{name:r="v",type:n,duration:o,enterFromClass:s=`${r}-enter-from`,enterActiveClass:c=`${r}-enter-active`,enterToClass:l=`${r}-enter-to`,appearFromClass:v=s,appearActiveClass:x=c,appearToClass:w=l,leaveFromClass:_=`${r}-leave-from`,leaveActiveClass:b=`${r}-leave-active`,leaveToClass:E=`${r}-leave-to`}=t,I=normalizeDuration(o),O=I&&I[0],N=I&&I[1],{onBeforeEnter:A,onEnter:z,onEnterCancelled:G,onLeave:V,onLeaveCancelled:ne,onBeforeAppear:W=A,onAppear:B=z,onAppearCancelled:q=G}=e,D=(le,fe,me)=>{removeTransitionClass(le,fe?w:l),removeTransitionClass(le,fe?x:c),me&&me()},F=(le,fe)=>{le._isLeaving=!1,removeTransitionClass(le,_),removeTransitionClass(le,E),removeTransitionClass(le,b),fe&&fe()},re=le=>(fe,me)=>{const ye=le?B:z,Te=()=>D(fe,le,me);callHook(ye,[fe,Te]),nextFrame(()=>{removeTransitionClass(fe,le?v:s),addTransitionClass(fe,le?w:l),hasExplicitCallback(ye)||whenTransitionEnds(fe,n,O,Te)})};return extend$1(e,{onBeforeEnter(le){callHook(A,[le]),addTransitionClass(le,s),addTransitionClass(le,c)},onBeforeAppear(le){callHook(W,[le]),addTransitionClass(le,v),addTransitionClass(le,x)},onEnter:re(!1),onAppear:re(!0),onLeave(le,fe){le._isLeaving=!0;const me=()=>F(le,fe);addTransitionClass(le,_),forceReflow(),addTransitionClass(le,b),nextFrame(()=>{!le._isLeaving||(removeTransitionClass(le,_),addTransitionClass(le,E),hasExplicitCallback(V)||whenTransitionEnds(le,n,N,me))}),callHook(V,[le,me])},onEnterCancelled(le){D(le,!1),callHook(G,[le])},onAppearCancelled(le){D(le,!0),callHook(q,[le])},onLeaveCancelled(le){F(le),callHook(ne,[le])}})}function normalizeDuration(t){if(t==null)return null;if(isObject$4(t))return[NumberOf(t.enter),NumberOf(t.leave)];{const e=NumberOf(t);return[e,e]}}function NumberOf(t){return toNumber(t)}function addTransitionClass(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t._vtc||(t._vtc=new Set)).add(e)}function removeTransitionClass(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.remove(n));const{_vtc:r}=t;r&&(r.delete(e),r.size||(t._vtc=void 0))}function nextFrame(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let endId=0;function whenTransitionEnds(t,e,r,n){const o=t._endId=++endId,s=()=>{o===t._endId&&n()};if(r)return setTimeout(s,r);const{type:c,timeout:l,propCount:v}=getTransitionInfo(t,e);if(!c)return n();const x=c+"end";let w=0;const _=()=>{t.removeEventListener(x,b),s()},b=E=>{E.target===t&&++w>=v&&_()};setTimeout(()=>{w<v&&_()},l+1),t.addEventListener(x,b)}function getTransitionInfo(t,e){const r=window.getComputedStyle(t),n=I=>(r[I]||"").split(", "),o=n(`${TRANSITION}Delay`),s=n(`${TRANSITION}Duration`),c=getTimeout(o,s),l=n(`${ANIMATION}Delay`),v=n(`${ANIMATION}Duration`),x=getTimeout(l,v);let w=null,_=0,b=0;e===TRANSITION?c>0&&(w=TRANSITION,_=c,b=s.length):e===ANIMATION?x>0&&(w=ANIMATION,_=x,b=v.length):(_=Math.max(c,x),w=_>0?c>x?TRANSITION:ANIMATION:null,b=w?w===TRANSITION?s.length:v.length:0);const E=w===TRANSITION&&/\b(transform|all)(,|$)/.test(n(`${TRANSITION}Property`).toString());return{type:w,timeout:_,propCount:b,hasTransform:E}}function getTimeout(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((r,n)=>toMs(r)+toMs(t[n])))}function toMs(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function forceReflow(){return document.body.offsetHeight}const positionMap=new WeakMap,newPositionMap=new WeakMap,TransitionGroupImpl={name:"TransitionGroup",props:extend$1({},TransitionPropsValidators,{tag:String,moveClass:String}),setup(t,{slots:e}){const r=getCurrentInstance$1(),n=useTransitionState();let o,s;return onUpdated(()=>{if(!o.length)return;const c=t.moveClass||`${t.name||"v"}-move`;if(!hasCSSTransform(o[0].el,r.vnode.el,c))return;o.forEach(callPendingCbs),o.forEach(recordPosition);const l=o.filter(applyTranslation);forceReflow(),l.forEach(v=>{const x=v.el,w=x.style;addTransitionClass(x,c),w.transform=w.webkitTransform=w.transitionDuration="";const _=x._moveCb=b=>{b&&b.target!==x||(!b||/transform$/.test(b.propertyName))&&(x.removeEventListener("transitionend",_),x._moveCb=null,removeTransitionClass(x,c))};x.addEventListener("transitionend",_)})}),()=>{const c=toRaw(t),l=resolveTransitionProps(c);let v=c.tag||Fragment;o=s,s=e.default?getTransitionRawChildren(e.default()):[];for(let x=0;x<s.length;x++){const w=s[x];w.key!=null&&setTransitionHooks(w,resolveTransitionHooks(w,l,n,r))}if(o)for(let x=0;x<o.length;x++){const w=o[x];setTransitionHooks(w,resolveTransitionHooks(w,l,n,r)),positionMap.set(w,w.el.getBoundingClientRect())}return createVNode(v,null,s)}}},removeMode=t=>delete t.mode;TransitionGroupImpl.props;const TransitionGroup=TransitionGroupImpl;function callPendingCbs(t){const e=t.el;e._moveCb&&e._moveCb(),e._enterCb&&e._enterCb()}function recordPosition(t){newPositionMap.set(t,t.el.getBoundingClientRect())}function applyTranslation(t){const e=positionMap.get(t),r=newPositionMap.get(t),n=e.left-r.left,o=e.top-r.top;if(n||o){const s=t.el.style;return s.transform=s.webkitTransform=`translate(${n}px,${o}px)`,s.transitionDuration="0s",t}}function hasCSSTransform(t,e,r){const n=t.cloneNode();t._vtc&&t._vtc.forEach(c=>{c.split(/\s+/).forEach(l=>l&&n.classList.remove(l))}),r.split(/\s+/).forEach(c=>c&&n.classList.add(c)),n.style.display="none";const o=e.nodeType===1?e:e.parentNode;o.appendChild(n);const{hasTransform:s}=getTransitionInfo(n);return o.removeChild(n),s}const getModelAssigner=t=>{const e=t.props["onUpdate:modelValue"]||!1;return isArray$3(e)?r=>invokeArrayFns(e,r):e};function onCompositionStart(t){t.target.composing=!0}function onCompositionEnd(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const vModelText={created(t,{modifiers:{lazy:e,trim:r,number:n}},o){t._assign=getModelAssigner(o);const s=n||o.props&&o.props.type==="number";addEventListener(t,e?"change":"input",c=>{if(c.target.composing)return;let l=t.value;r&&(l=l.trim()),s&&(l=looseToNumber(l)),t._assign(l)}),r&&addEventListener(t,"change",()=>{t.value=t.value.trim()}),e||(addEventListener(t,"compositionstart",onCompositionStart),addEventListener(t,"compositionend",onCompositionEnd),addEventListener(t,"change",onCompositionEnd))},mounted(t,{value:e}){t.value=e==null?"":e},beforeUpdate(t,{value:e,modifiers:{lazy:r,trim:n,number:o}},s){if(t._assign=getModelAssigner(s),t.composing||document.activeElement===t&&t.type!=="range"&&(r||n&&t.value.trim()===e||(o||t.type==="number")&&looseToNumber(t.value)===e))return;const c=e==null?"":e;t.value!==c&&(t.value=c)}},vModelCheckbox={deep:!0,created(t,e,r){t._assign=getModelAssigner(r),addEventListener(t,"change",()=>{const n=t._modelValue,o=getValue(t),s=t.checked,c=t._assign;if(isArray$3(n)){const l=looseIndexOf(n,o),v=l!==-1;if(s&&!v)c(n.concat(o));else if(!s&&v){const x=[...n];x.splice(l,1),c(x)}}else if(isSet(n)){const l=new Set(n);s?l.add(o):l.delete(o),c(l)}else c(getCheckboxValue(t,s))})},mounted:setChecked,beforeUpdate(t,e,r){t._assign=getModelAssigner(r),setChecked(t,e,r)}};function setChecked(t,{value:e,oldValue:r},n){t._modelValue=e,isArray$3(e)?t.checked=looseIndexOf(e,n.props.value)>-1:isSet(e)?t.checked=e.has(n.props.value):e!==r&&(t.checked=looseEqual(e,getCheckboxValue(t,!0)))}const vModelRadio={created(t,{value:e},r){t.checked=looseEqual(e,r.props.value),t._assign=getModelAssigner(r),addEventListener(t,"change",()=>{t._assign(getValue(t))})},beforeUpdate(t,{value:e,oldValue:r},n){t._assign=getModelAssigner(n),e!==r&&(t.checked=looseEqual(e,n.props.value))}},vModelSelect={deep:!0,created(t,{value:e,modifiers:{number:r}},n){const o=isSet(e);addEventListener(t,"change",()=>{const s=Array.prototype.filter.call(t.options,c=>c.selected).map(c=>r?looseToNumber(getValue(c)):getValue(c));t._assign(t.multiple?o?new Set(s):s:s[0])}),t._assign=getModelAssigner(n)},mounted(t,{value:e}){setSelected(t,e)},beforeUpdate(t,e,r){t._assign=getModelAssigner(r)},updated(t,{value:e}){setSelected(t,e)}};function setSelected(t,e){const r=t.multiple;if(!(r&&!isArray$3(e)&&!isSet(e))){for(let n=0,o=t.options.length;n<o;n++){const s=t.options[n],c=getValue(s);if(r)isArray$3(e)?s.selected=looseIndexOf(e,c)>-1:s.selected=e.has(c);else if(looseEqual(getValue(s),e)){t.selectedIndex!==n&&(t.selectedIndex=n);return}}!r&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function getValue(t){return"_value"in t?t._value:t.value}function getCheckboxValue(t,e){const r=e?"_trueValue":"_falseValue";return r in t?t[r]:e}const vModelDynamic={created(t,e,r){callModelHook(t,e,r,null,"created")},mounted(t,e,r){callModelHook(t,e,r,null,"mounted")},beforeUpdate(t,e,r,n){callModelHook(t,e,r,n,"beforeUpdate")},updated(t,e,r,n){callModelHook(t,e,r,n,"updated")}};function resolveDynamicModel(t,e){switch(t){case"SELECT":return vModelSelect;case"TEXTAREA":return vModelText;default:switch(e){case"checkbox":return vModelCheckbox;case"radio":return vModelRadio;default:return vModelText}}}function callModelHook(t,e,r,n,o){const c=resolveDynamicModel(t.tagName,r.props&&r.props.type)[o];c&&c(t,e,r,n)}function initVModelForSSR(){vModelText.getSSRProps=({value:t})=>({value:t}),vModelRadio.getSSRProps=({value:t},e)=>{if(e.props&&looseEqual(e.props.value,t))return{checked:!0}},vModelCheckbox.getSSRProps=({value:t},e)=>{if(isArray$3(t)){if(e.props&&looseIndexOf(t,e.props.value)>-1)return{checked:!0}}else if(isSet(t)){if(e.props&&t.has(e.props.value))return{checked:!0}}else if(t)return{checked:!0}},vModelDynamic.getSSRProps=(t,e)=>{if(typeof e.type!="string")return;const r=resolveDynamicModel(e.type.toUpperCase(),e.props&&e.props.type);if(r.getSSRProps)return r.getSSRProps(t,e)}}const systemModifiers=["ctrl","shift","alt","meta"],modifierGuards={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>systemModifiers.some(r=>t[`${r}Key`]&&!e.includes(r))},withModifiers=(t,e)=>(r,...n)=>{for(let o=0;o<e.length;o++){const s=modifierGuards[e[o]];if(s&&s(r,e))return}return t(r,...n)},keyNames={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},withKeys=(t,e)=>r=>{if(!("key"in r))return;const n=hyphenate(r.key);if(e.some(o=>o===n||keyNames[o]===n))return t(r)},vShow={beforeMount(t,{value:e},{transition:r}){t._vod=t.style.display==="none"?"":t.style.display,r&&e?r.beforeEnter(t):setDisplay(t,e)},mounted(t,{value:e},{transition:r}){r&&e&&r.enter(t)},updated(t,{value:e,oldValue:r},{transition:n}){!e!=!r&&(n?e?(n.beforeEnter(t),setDisplay(t,!0),n.enter(t)):n.leave(t,()=>{setDisplay(t,!1)}):setDisplay(t,e))},beforeUnmount(t,{value:e}){setDisplay(t,e)}};function setDisplay(t,e){t.style.display=e?t._vod:"none"}function initVShowForSSR(){vShow.getSSRProps=({value:t})=>{if(!t)return{style:{display:"none"}}}}const rendererOptions=extend$1({patchProp},nodeOps);let renderer,enabledHydration=!1;function ensureRenderer(){return renderer||(renderer=createRenderer(rendererOptions))}function ensureHydrationRenderer(){return renderer=enabledHydration?renderer:createHydrationRenderer(rendererOptions),enabledHydration=!0,renderer}const render$1=(...t)=>{ensureRenderer().render(...t)},hydrate=(...t)=>{ensureHydrationRenderer().hydrate(...t)},createApp=(...t)=>{const e=ensureRenderer().createApp(...t),{mount:r}=e;return e.mount=n=>{const o=normalizeContainer(n);if(!o)return;const s=e._component;!isFunction$3(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.innerHTML="";const c=r(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),c},e},createSSRApp=(...t)=>{const e=ensureHydrationRenderer().createApp(...t),{mount:r}=e;return e.mount=n=>{const o=normalizeContainer(n);if(o)return r(o,!0,o instanceof SVGElement)},e};function normalizeContainer(t){return isString$4(t)?document.querySelector(t):t}let ssrDirectiveInitialized=!1;const initDirectivesForSSR=()=>{ssrDirectiveInitialized||(ssrDirectiveInitialized=!0,initVModelForSSR(),initVShowForSSR())},compile$1=()=>{},Vue=Object.freeze(Object.defineProperty({__proto__:null,compile:compile$1,EffectScope,ReactiveEffect,customRef,effect,effectScope,getCurrentScope,isProxy,isReactive,isReadonly,isRef,isShallow,markRaw,onScopeDispose,proxyRefs,reactive,readonly,ref,shallowReactive,shallowReadonly,shallowRef,stop,toRaw,toRef,toRefs,toValue,triggerRef,unref,camelize,capitalize:capitalize$1,normalizeClass,normalizeProps,normalizeStyle,toDisplayString:toDisplayString$1,toHandlerKey,BaseTransition,BaseTransitionPropsValidators,Comment,Fragment,KeepAlive,Static,Suspense,Teleport,Text,assertNumber,callWithAsyncErrorHandling,callWithErrorHandling,cloneVNode,compatUtils,computed,createBlock,createCommentVNode,createElementBlock,createElementVNode:createBaseVNode,createHydrationRenderer,createPropsRestProxy,createRenderer,createSlots,createStaticVNode,createTextVNode,createVNode,defineAsyncComponent,defineComponent:defineComponent$1,defineEmits,defineExpose,defineModel,defineOptions,defineProps,defineSlots,get devtools(){return devtools$1},getCurrentInstance:getCurrentInstance$1,getTransitionRawChildren,guardReactiveProps,h,handleError,hasInjectionContext,initCustomFormatter,inject:inject$1,isMemoSame,isRuntimeOnly,isVNode:isVNode$1,mergeDefaults,mergeModels,mergeProps,nextTick,onActivated,onBeforeMount,onBeforeUnmount,onBeforeUpdate,onDeactivated,onErrorCaptured,onMounted,onRenderTracked,onRenderTriggered,onServerPrefetch,onUnmounted,onUpdated,openBlock,popScopeId,provide,pushScopeId,queuePostFlushCb,registerRuntimeCompiler,renderList,renderSlot,resolveComponent,resolveDirective,resolveDynamicComponent,resolveFilter,resolveTransitionHooks,setBlockTracking,setDevtoolsHook,setTransitionHooks,ssrContextKey,ssrUtils,toHandlers,transformVNodeArgs,useAttrs,useModel,useSSRContext,useSlots,useTransitionState,version:version$4,warn:warn$1,watch,watchEffect,watchPostEffect,watchSyncEffect,withAsyncContext,withCtx,withDefaults,withDirectives,withMemo,withScopeId,Transition,TransitionGroup,VueElement,createApp,createSSRApp,defineCustomElement,defineSSRCustomElement,hydrate,initDirectivesForSSR,render:render$1,useCssModule,useCssVars,vModelCheckbox,vModelDynamic,vModelRadio,vModelSelect,vModelText,vShow,withKeys,withModifiers},Symbol.toStringTag,{value:"Module"})),__vite_glob_0_0=""+new URL("mxdrawassembly_min.469e7cb5.js",import.meta.url).href,__vite_glob_0_1=""+new URL("mxdrawassembly_min.def69ed0.wasm",import.meta.url).href,__vite_glob_0_2=""+new URL("mxdrawassembly_min.worker.ded005df.js",import.meta.url).href,__vite_glob_1_0=""+new URL("mxdrawassembly_min.4f26d534.js",import.meta.url).href,__vite_glob_1_1=""+new URL("mxdrawassembly_minst.28337e29.wasm",import.meta.url).href;var commonjsGlobal$1=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function getDefaultExportFromCjs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function commonjsRequire(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}class PubSub$1{constructor(){this.events={}}on(e,r){let n=this;n.events.hasOwnProperty(e)||(n.events[e]=[]),n.events[e].push(r)}emit(e,...r){this.events.hasOwnProperty(e)&&this.events[e].map(n=>n(...r))}off(e,r){if(this.events[e])if(r===void 0)this.events[e]=[];else{const n=this.events[e].indexOf(r);this.events[e].splice(n,1)}}}class Store{constructor(e){let r=this;r.actions={},r.mutations={},r.state=e.state,r.status="resting",r.events=new PubSub$1,e.hasOwnProperty("actions")&&(r.actions=e.actions),e.hasOwnProperty("mutations")&&(r.mutations=e.mutations)}dispatch(e,r){let n=this;return typeof n.actions[e]=="function"&&(console.groupCollapsed(`ACTION: ${e}`),n.status="action",n.actions[e](n,r),console.groupEnd(),!0)}commit(e,r){let n=this;if(typeof n.mutations[e]!="function")return console.log(`Mutation "${e}" doesn't exist`),!1;n.status="mutation";let o=n.mutations[e](n.state,r);return n.state=Object.assign(n.state,o),!0}}const options={state:{MxFun:null,Mxassembly:null,isCreateDrawObj:!1},actions:{},mutations:{}};for(let t in options.state){const e=t.charAt(0).toUpperCase()+t.slice(1);options.mutations["set"+e]=(r,n)=>{r[t]=n}}const store=new Store(options);function mxfun(){(function t(e,r,n){function o(l,v){if(!r[l]){if(!e[l]){var x=typeof commonjsRequire=="function"&&commonjsRequire;if(!v&&x)return x(l,!0);if(s)return s(l,!0);var w=new Error("Cannot find module '"+l+"'");throw w.code="MODULE_NOT_FOUND",w}var _=r[l]={exports:{}};e[l][0].call(_.exports,function(b){return o(e[l][1][b]||b)},_,_.exports,t,e,r,n)}return r[l].exports}for(var s=typeof commonjsRequire=="function"&&commonjsRequire,c=0;c<n.length;c++)o(n[c]);return o})({1:[function(t,e,r){var n={};(0,t("./lib/utils/common").assign)(n,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),e.exports=n},{"./lib/deflate":2,"./lib/inflate":3,"./lib/utils/common":4,"./lib/zlib/constants":7}],2:[function(t,e,r){var n=t("./zlib/deflate"),o=t("./utils/common"),s=t("./utils/strings"),c=t("./zlib/messages"),l=t("./zlib/zstream"),v=Object.prototype.toString,x=0,w=-1,_=0,b=8;function E(O){if(!(this instanceof E))return new E(O);this.options=o.assign({level:w,method:b,chunkSize:16384,windowBits:15,memLevel:8,strategy:_,to:""},O||{});var N=this.options;N.raw&&0<N.windowBits?N.windowBits=-N.windowBits:N.gzip&&0<N.windowBits&&N.windowBits<16&&(N.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var A=n.deflateInit2(this.strm,N.level,N.method,N.windowBits,N.memLevel,N.strategy);if(A!==x)throw new Error(c[A]);if(N.header&&n.deflateSetHeader(this.strm,N.header),N.dictionary){var z;if(z=typeof N.dictionary=="string"?s.string2buf(N.dictionary):v.call(N.dictionary)==="[object ArrayBuffer]"?new Uint8Array(N.dictionary):N.dictionary,(A=n.deflateSetDictionary(this.strm,z))!==x)throw new Error(c[A]);this._dict_set=!0}}function I(O,N){var A=new E(N);if(A.push(O,!0),A.err)throw A.msg||c[A.err];return A.result}E.prototype.push=function(O,N){var A,z,G=this.strm,V=this.options.chunkSize;if(this.ended)return!1;z=N===~~N?N:N===!0?4:0,typeof O=="string"?G.input=s.string2buf(O):v.call(O)==="[object ArrayBuffer]"?G.input=new Uint8Array(O):G.input=O,G.next_in=0,G.avail_in=G.input.length;do{if(G.avail_out===0&&(G.output=new o.Buf8(V),G.next_out=0,G.avail_out=V),(A=n.deflate(G,z))!==1&&A!==x)return this.onEnd(A),!(this.ended=!0);G.avail_out!==0&&(G.avail_in!==0||z!==4&&z!==2)||(this.options.to==="string"?this.onData(s.buf2binstring(o.shrinkBuf(G.output,G.next_out))):this.onData(o.shrinkBuf(G.output,G.next_out)))}while((0<G.avail_in||G.avail_out===0)&&A!==1);return z===4?(A=n.deflateEnd(this.strm),this.onEnd(A),this.ended=!0,A===x):z!==2||(this.onEnd(x),!(G.avail_out=0))},E.prototype.onData=function(O){this.chunks.push(O)},E.prototype.onEnd=function(O){O===x&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=O,this.msg=this.strm.msg},r.Deflate=E,r.deflate=I,r.deflateRaw=function(O,N){return(N=N||{}).raw=!0,I(O,N)},r.gzip=function(O,N){return(N=N||{}).gzip=!0,I(O,N)}},{"./utils/common":4,"./utils/strings":5,"./zlib/deflate":9,"./zlib/messages":14,"./zlib/zstream":16}],3:[function(t,e,r){var n=t("./zlib/inflate"),o=t("./utils/common"),s=t("./utils/strings"),c=t("./zlib/constants"),l=t("./zlib/messages"),v=t("./zlib/zstream"),x=t("./zlib/gzheader"),w=Object.prototype.toString;function _(E){if(!(this instanceof _))return new _(E);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},E||{});var I=this.options;I.raw&&0<=I.windowBits&&I.windowBits<16&&(I.windowBits=-I.windowBits,I.windowBits===0&&(I.windowBits=-15)),!(0<=I.windowBits&&I.windowBits<16)||E&&E.windowBits||(I.windowBits+=32),15<I.windowBits&&I.windowBits<48&&(15&I.windowBits)==0&&(I.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new v,this.strm.avail_out=0;var O=n.inflateInit2(this.strm,I.windowBits);if(O!==c.Z_OK)throw new Error(l[O]);if(this.header=new x,n.inflateGetHeader(this.strm,this.header),I.dictionary&&(typeof I.dictionary=="string"?I.dictionary=s.string2buf(I.dictionary):w.call(I.dictionary)==="[object ArrayBuffer]"&&(I.dictionary=new Uint8Array(I.dictionary)),I.raw&&(O=n.inflateSetDictionary(this.strm,I.dictionary))!==c.Z_OK))throw new Error(l[O])}function b(E,I){var O=new _(I);if(O.push(E,!0),O.err)throw O.msg||l[O.err];return O.result}_.prototype.push=function(E,I){var O,N,A,z,G,V=this.strm,ne=this.options.chunkSize,W=this.options.dictionary,B=!1;if(this.ended)return!1;N=I===~~I?I:I===!0?c.Z_FINISH:c.Z_NO_FLUSH,typeof E=="string"?V.input=s.binstring2buf(E):w.call(E)==="[object ArrayBuffer]"?V.input=new Uint8Array(E):V.input=E,V.next_in=0,V.avail_in=V.input.length;do{if(V.avail_out===0&&(V.output=new o.Buf8(ne),V.next_out=0,V.avail_out=ne),(O=n.inflate(V,c.Z_NO_FLUSH))===c.Z_NEED_DICT&&W&&(O=n.inflateSetDictionary(this.strm,W)),O===c.Z_BUF_ERROR&&B===!0&&(O=c.Z_OK,B=!1),O!==c.Z_STREAM_END&&O!==c.Z_OK)return this.onEnd(O),!(this.ended=!0);V.next_out&&(V.avail_out!==0&&O!==c.Z_STREAM_END&&(V.avail_in!==0||N!==c.Z_FINISH&&N!==c.Z_SYNC_FLUSH)||(this.options.to==="string"?(A=s.utf8border(V.output,V.next_out),z=V.next_out-A,G=s.buf2string(V.output,A),V.next_out=z,V.avail_out=ne-z,z&&o.arraySet(V.output,V.output,A,z,0),this.onData(G)):this.onData(o.shrinkBuf(V.output,V.next_out)))),V.avail_in===0&&V.avail_out===0&&(B=!0)}while((0<V.avail_in||V.avail_out===0)&&O!==c.Z_STREAM_END);return O===c.Z_STREAM_END&&(N=c.Z_FINISH),N===c.Z_FINISH?(O=n.inflateEnd(this.strm),this.onEnd(O),this.ended=!0,O===c.Z_OK):N!==c.Z_SYNC_FLUSH||(this.onEnd(c.Z_OK),!(V.avail_out=0))},_.prototype.onData=function(E){this.chunks.push(E)},_.prototype.onEnd=function(E){E===c.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=E,this.msg=this.strm.msg},r.Inflate=_,r.inflate=b,r.inflateRaw=function(E,I){return(I=I||{}).raw=!0,b(E,I)},r.ungzip=b},{"./utils/common":4,"./utils/strings":5,"./zlib/constants":7,"./zlib/gzheader":10,"./zlib/inflate":12,"./zlib/messages":14,"./zlib/zstream":16}],4:[function(t,e,r){var n=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";r.assign=function(c){for(var l,v,x=Array.prototype.slice.call(arguments,1);x.length;){var w=x.shift();if(w){if(typeof w!="object")throw new TypeError(w+"must be non-object");for(var _ in w)l=w,v=_,Object.prototype.hasOwnProperty.call(l,v)&&(c[_]=w[_])}}return c},r.shrinkBuf=function(c,l){return c.length===l?c:c.subarray?c.subarray(0,l):(c.length=l,c)};var o={arraySet:function(c,l,v,x,w){if(l.subarray&&c.subarray)c.set(l.subarray(v,v+x),w);else for(var _=0;_<x;_++)c[w+_]=l[v+_]},flattenChunks:function(c){var l,v,x,w,_,b;for(l=x=0,v=c.length;l<v;l++)x+=c[l].length;for(b=new Uint8Array(x),l=w=0,v=c.length;l<v;l++)_=c[l],b.set(_,w),w+=_.length;return b}},s={arraySet:function(c,l,v,x,w){for(var _=0;_<x;_++)c[w+_]=l[v+_]},flattenChunks:function(c){return[].concat.apply([],c)}};r.setTyped=function(c){c?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,o)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,s))},r.setTyped(n)},{}],5:[function(t,e,r){var n=t("./common"),o=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch(x){o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(x){s=!1}for(var c=new n.Buf8(256),l=0;l<256;l++)c[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function v(x,w){if(w<65534&&(x.subarray&&s||!x.subarray&&o))return String.fromCharCode.apply(null,n.shrinkBuf(x,w));for(var _="",b=0;b<w;b++)_+=String.fromCharCode(x[b]);return _}c[254]=c[254]=1,r.string2buf=function(x){var w,_,b,E,I,O=x.length,N=0;for(E=0;E<O;E++)(64512&(_=x.charCodeAt(E)))==55296&&E+1<O&&(64512&(b=x.charCodeAt(E+1)))==56320&&(_=65536+(_-55296<<10)+(b-56320),E++),N+=_<128?1:_<2048?2:_<65536?3:4;for(w=new n.Buf8(N),E=I=0;I<N;E++)(64512&(_=x.charCodeAt(E)))==55296&&E+1<O&&(64512&(b=x.charCodeAt(E+1)))==56320&&(_=65536+(_-55296<<10)+(b-56320),E++),_<128?w[I++]=_:(_<2048?w[I++]=192|_>>>6:(_<65536?w[I++]=224|_>>>12:(w[I++]=240|_>>>18,w[I++]=128|_>>>12&63),w[I++]=128|_>>>6&63),w[I++]=128|63&_);return w},r.buf2binstring=function(x){return v(x,x.length)},r.binstring2buf=function(x){for(var w=new n.Buf8(x.length),_=0,b=w.length;_<b;_++)w[_]=x.charCodeAt(_);return w},r.buf2string=function(x,w){var _,b,E,I,O=w||x.length,N=new Array(2*O);for(_=b=0;_<O;)if((E=x[_++])<128)N[b++]=E;else if(4<(I=c[E]))N[b++]=65533,_+=I-1;else{for(E&=I===2?31:I===3?15:7;1<I&&_<O;)E=E<<6|63&x[_++],I--;1<I?N[b++]=65533:E<65536?N[b++]=E:(E-=65536,N[b++]=55296|E>>10&1023,N[b++]=56320|1023&E)}return v(N,b)},r.utf8border=function(x,w){var _;for((w=w||x.length)>x.length&&(w=x.length),_=w-1;0<=_&&(192&x[_])==128;)_--;return!(_<0)&&_!==0&&_+c[x[_]]>w?_:w}},{"./common":4}],6:[function(t,e,r){e.exports=function(n,o,s,c){for(var l=65535&n|0,v=n>>>16&65535|0,x=0;s!==0;){for(s-=x=2e3<s?2e3:s;v=v+(l=l+o[c++]|0)|0,--x;);l%=65521,v%=65521}return l|v<<16|0}},{}],7:[function(t,e,r){e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],8:[function(t,e,r){var n=function(){for(var o,s=[],c=0;c<256;c++){o=c;for(var l=0;l<8;l++)o=1&o?3988292384^o>>>1:o>>>1;s[c]=o}return s}();e.exports=function(o,s,c,l){var v=n,x=l+c;o^=-1;for(var w=l;w<x;w++)o=o>>>8^v[255&(o^s[w])];return-1^o}},{}],9:[function(t,e,r){var n,o=t("../utils/common"),s=t("./trees"),c=t("./adler32"),l=t("./crc32"),v=t("./messages"),x=0,w=0,_=-2,b=2,E=8,I=286,O=30,N=19,A=2*I+1,z=15,G=3,V=258,ne=V+G+1,W=42,B=113;function q(De,Be){return De.msg=v[Be],Be}function D(De){return(De<<1)-(4<De?9:0)}function F(De){for(var Be=De.length;0<=--Be;)De[Be]=0}function re(De){var Be=De.state,Ve=Be.pending;Ve>De.avail_out&&(Ve=De.avail_out),Ve!==0&&(o.arraySet(De.output,Be.pending_buf,Be.pending_out,Ve,De.next_out),De.next_out+=Ve,Be.pending_out+=Ve,De.total_out+=Ve,De.avail_out-=Ve,Be.pending-=Ve,Be.pending===0&&(Be.pending_out=0))}function le(De,Be){s._tr_flush_block(De,0<=De.block_start?De.block_start:-1,De.strstart-De.block_start,Be),De.block_start=De.strstart,re(De.strm)}function fe(De,Be){De.pending_buf[De.pending++]=Be}function me(De,Be){De.pending_buf[De.pending++]=Be>>>8&255,De.pending_buf[De.pending++]=255&Be}function ye(De,Be){var Ve,He,gt=De.max_chain_length,dn=De.strstart,Ze=De.prev_length,at=De.nice_match,Lt=De.strstart>De.w_size-ne?De.strstart-(De.w_size-ne):0,Ne=De.window,ze=De.w_mask,Ke=De.prev,vt=De.strstart+V,Ft=Ne[dn+Ze-1],Ot=Ne[dn+Ze];De.prev_length>=De.good_match&&(gt>>=2),at>De.lookahead&&(at=De.lookahead);do if(Ne[(Ve=Be)+Ze]===Ot&&Ne[Ve+Ze-1]===Ft&&Ne[Ve]===Ne[dn]&&Ne[++Ve]===Ne[dn+1]){dn+=2,Ve++;do;while(Ne[++dn]===Ne[++Ve]&&Ne[++dn]===Ne[++Ve]&&Ne[++dn]===Ne[++Ve]&&Ne[++dn]===Ne[++Ve]&&Ne[++dn]===Ne[++Ve]&&Ne[++dn]===Ne[++Ve]&&Ne[++dn]===Ne[++Ve]&&Ne[++dn]===Ne[++Ve]&&dn<vt);if(He=V-(vt-dn),dn=vt-V,Ze<He){if(De.match_start=Be,at<=(Ze=He))break;Ft=Ne[dn+Ze-1],Ot=Ne[dn+Ze]}}while((Be=Ke[Be&ze])>Lt&&--gt!=0);return Ze<=De.lookahead?Ze:De.lookahead}function Te(De){var Be,Ve,He,gt,dn,Ze,at,Lt,Ne,ze,Ke=De.w_size;do{if(gt=De.window_size-De.lookahead-De.strstart,De.strstart>=Ke+(Ke-ne)){for(o.arraySet(De.window,De.window,Ke,Ke,0),De.match_start-=Ke,De.strstart-=Ke,De.block_start-=Ke,Be=Ve=De.hash_size;He=De.head[--Be],De.head[Be]=Ke<=He?He-Ke:0,--Ve;);for(Be=Ve=Ke;He=De.prev[--Be],De.prev[Be]=Ke<=He?He-Ke:0,--Ve;);gt+=Ke}if(De.strm.avail_in===0)break;if(Ze=De.strm,at=De.window,Lt=De.strstart+De.lookahead,ze=void 0,(Ne=gt)<(ze=Ze.avail_in)&&(ze=Ne),Ve=ze===0?0:(Ze.avail_in-=ze,o.arraySet(at,Ze.input,Ze.next_in,ze,Lt),Ze.state.wrap===1?Ze.adler=c(Ze.adler,at,ze,Lt):Ze.state.wrap===2&&(Ze.adler=l(Ze.adler,at,ze,Lt)),Ze.next_in+=ze,Ze.total_in+=ze,ze),De.lookahead+=Ve,De.lookahead+De.insert>=G)for(dn=De.strstart-De.insert,De.ins_h=De.window[dn],De.ins_h=(De.ins_h<<De.hash_shift^De.window[dn+1])&De.hash_mask;De.insert&&(De.ins_h=(De.ins_h<<De.hash_shift^De.window[dn+G-1])&De.hash_mask,De.prev[dn&De.w_mask]=De.head[De.ins_h],De.head[De.ins_h]=dn,dn++,De.insert--,!(De.lookahead+De.insert<G)););}while(De.lookahead<ne&&De.strm.avail_in!==0)}function ke(De,Be){for(var Ve,He;;){if(De.lookahead<ne){if(Te(De),De.lookahead<ne&&Be===x)return 1;if(De.lookahead===0)break}if(Ve=0,De.lookahead>=G&&(De.ins_h=(De.ins_h<<De.hash_shift^De.window[De.strstart+G-1])&De.hash_mask,Ve=De.prev[De.strstart&De.w_mask]=De.head[De.ins_h],De.head[De.ins_h]=De.strstart),Ve!==0&&De.strstart-Ve<=De.w_size-ne&&(De.match_length=ye(De,Ve)),De.match_length>=G)if(He=s._tr_tally(De,De.strstart-De.match_start,De.match_length-G),De.lookahead-=De.match_length,De.match_length<=De.max_lazy_match&&De.lookahead>=G){for(De.match_length--;De.strstart++,De.ins_h=(De.ins_h<<De.hash_shift^De.window[De.strstart+G-1])&De.hash_mask,Ve=De.prev[De.strstart&De.w_mask]=De.head[De.ins_h],De.head[De.ins_h]=De.strstart,--De.match_length!=0;);De.strstart++}else De.strstart+=De.match_length,De.match_length=0,De.ins_h=De.window[De.strstart],De.ins_h=(De.ins_h<<De.hash_shift^De.window[De.strstart+1])&De.hash_mask;else He=s._tr_tally(De,0,De.window[De.strstart]),De.lookahead--,De.strstart++;if(He&&(le(De,!1),De.strm.avail_out===0))return 1}return De.insert=De.strstart<G-1?De.strstart:G-1,Be===4?(le(De,!0),De.strm.avail_out===0?3:4):De.last_lit&&(le(De,!1),De.strm.avail_out===0)?1:2}function Le(De,Be){for(var Ve,He,gt;;){if(De.lookahead<ne){if(Te(De),De.lookahead<ne&&Be===x)return 1;if(De.lookahead===0)break}if(Ve=0,De.lookahead>=G&&(De.ins_h=(De.ins_h<<De.hash_shift^De.window[De.strstart+G-1])&De.hash_mask,Ve=De.prev[De.strstart&De.w_mask]=De.head[De.ins_h],De.head[De.ins_h]=De.strstart),De.prev_length=De.match_length,De.prev_match=De.match_start,De.match_length=G-1,Ve!==0&&De.prev_length<De.max_lazy_match&&De.strstart-Ve<=De.w_size-ne&&(De.match_length=ye(De,Ve),De.match_length<=5&&(De.strategy===1||De.match_length===G&&4096<De.strstart-De.match_start)&&(De.match_length=G-1)),De.prev_length>=G&&De.match_length<=De.prev_length){for(gt=De.strstart+De.lookahead-G,He=s._tr_tally(De,De.strstart-1-De.prev_match,De.prev_length-G),De.lookahead-=De.prev_length-1,De.prev_length-=2;++De.strstart<=gt&&(De.ins_h=(De.ins_h<<De.hash_shift^De.window[De.strstart+G-1])&De.hash_mask,Ve=De.prev[De.strstart&De.w_mask]=De.head[De.ins_h],De.head[De.ins_h]=De.strstart),--De.prev_length!=0;);if(De.match_available=0,De.match_length=G-1,De.strstart++,He&&(le(De,!1),De.strm.avail_out===0))return 1}else if(De.match_available){if((He=s._tr_tally(De,0,De.window[De.strstart-1]))&&le(De,!1),De.strstart++,De.lookahead--,De.strm.avail_out===0)return 1}else De.match_available=1,De.strstart++,De.lookahead--}return De.match_available&&(He=s._tr_tally(De,0,De.window[De.strstart-1]),De.match_available=0),De.insert=De.strstart<G-1?De.strstart:G-1,Be===4?(le(De,!0),De.strm.avail_out===0?3:4):De.last_lit&&(le(De,!1),De.strm.avail_out===0)?1:2}function et(De,Be,Ve,He,gt){this.good_length=De,this.max_lazy=Be,this.nice_length=Ve,this.max_chain=He,this.func=gt}function it(De){var Be;return De&&De.state?(De.total_in=De.total_out=0,De.data_type=b,(Be=De.state).pending=0,Be.pending_out=0,Be.wrap<0&&(Be.wrap=-Be.wrap),Be.status=Be.wrap?W:B,De.adler=Be.wrap===2?0:1,Be.last_flush=x,s._tr_init(Be),w):q(De,_)}function Ue(De){var Be,Ve=it(De);return Ve===w&&((Be=De.state).window_size=2*Be.w_size,F(Be.head),Be.max_lazy_match=n[Be.level].max_lazy,Be.good_match=n[Be.level].good_length,Be.nice_match=n[Be.level].nice_length,Be.max_chain_length=n[Be.level].max_chain,Be.strstart=0,Be.block_start=0,Be.lookahead=0,Be.insert=0,Be.match_length=Be.prev_length=G-1,Be.match_available=0,Be.ins_h=0),Ve}function ht(De,Be,Ve,He,gt,dn){if(!De)return _;var Ze=1;if(Be===-1&&(Be=6),He<0?(Ze=0,He=-He):15<He&&(Ze=2,He-=16),gt<1||9<gt||Ve!==E||He<8||15<He||Be<0||9<Be||dn<0||4<dn)return q(De,_);He===8&&(He=9);var at=new function(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=E,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new o.Buf16(2*A),this.dyn_dtree=new o.Buf16(2*(2*O+1)),this.bl_tree=new o.Buf16(2*(2*N+1)),F(this.dyn_ltree),F(this.dyn_dtree),F(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(z+1),this.heap=new o.Buf16(2*I+1),F(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*I+1),F(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0};return(De.state=at).strm=De,at.wrap=Ze,at.gzhead=null,at.w_bits=He,at.w_size=1<<at.w_bits,at.w_mask=at.w_size-1,at.hash_bits=gt+7,at.hash_size=1<<at.hash_bits,at.hash_mask=at.hash_size-1,at.hash_shift=~~((at.hash_bits+G-1)/G),at.window=new o.Buf8(2*at.w_size),at.head=new o.Buf16(at.hash_size),at.prev=new o.Buf16(at.w_size),at.lit_bufsize=1<<gt+6,at.pending_buf_size=4*at.lit_bufsize,at.pending_buf=new o.Buf8(at.pending_buf_size),at.d_buf=+at.lit_bufsize,at.l_buf=3*at.lit_bufsize,at.level=Be,at.strategy=dn,at.method=Ve,Ue(De)}n=[new et(0,0,0,0,function(De,Be){var Ve=65535;for(Ve>De.pending_buf_size-5&&(Ve=De.pending_buf_size-5);;){if(De.lookahead<=1){if(Te(De),De.lookahead===0&&Be===x)return 1;if(De.lookahead===0)break}De.strstart+=De.lookahead,De.lookahead=0;var He=De.block_start+Ve;if((De.strstart===0||De.strstart>=He)&&(De.lookahead=De.strstart-He,De.strstart=He,le(De,!1),De.strm.avail_out===0)||De.strstart-De.block_start>=De.w_size-ne&&(le(De,!1),De.strm.avail_out===0))return 1}return De.insert=0,Be===4?(le(De,!0),De.strm.avail_out===0?3:4):(De.strstart>De.block_start&&(le(De,!1),De.strm.avail_out),1)}),new et(4,4,8,4,ke),new et(4,5,16,8,ke),new et(4,6,32,32,ke),new et(4,4,16,16,Le),new et(8,16,32,32,Le),new et(8,16,128,128,Le),new et(8,32,128,256,Le),new et(32,128,258,1024,Le),new et(32,258,258,4096,Le)],r.deflateInit=function(De,Be){return ht(De,Be,E,15,8,0)},r.deflateInit2=ht,r.deflateReset=Ue,r.deflateResetKeep=it,r.deflateSetHeader=function(De,Be){return De&&De.state&&De.state.wrap===2?(De.state.gzhead=Be,w):_},r.deflate=function(De,Be){var Ve,He,gt,dn;if(!De||!De.state||5<Be||Be<0)return De?q(De,_):_;if(He=De.state,!De.output||!De.input&&De.avail_in!==0||He.status===666&&Be!==4)return q(De,De.avail_out===0?-5:_);if(He.strm=De,Ve=He.last_flush,He.last_flush=Be,He.status===W)if(He.wrap===2)De.adler=0,fe(He,31),fe(He,139),fe(He,8),He.gzhead?(fe(He,(He.gzhead.text?1:0)+(He.gzhead.hcrc?2:0)+(He.gzhead.extra?4:0)+(He.gzhead.name?8:0)+(He.gzhead.comment?16:0)),fe(He,255&He.gzhead.time),fe(He,He.gzhead.time>>8&255),fe(He,He.gzhead.time>>16&255),fe(He,He.gzhead.time>>24&255),fe(He,He.level===9?2:2<=He.strategy||He.level<2?4:0),fe(He,255&He.gzhead.os),He.gzhead.extra&&He.gzhead.extra.length&&(fe(He,255&He.gzhead.extra.length),fe(He,He.gzhead.extra.length>>8&255)),He.gzhead.hcrc&&(De.adler=l(De.adler,He.pending_buf,He.pending,0)),He.gzindex=0,He.status=69):(fe(He,0),fe(He,0),fe(He,0),fe(He,0),fe(He,0),fe(He,He.level===9?2:2<=He.strategy||He.level<2?4:0),fe(He,3),He.status=B);else{var Ze=E+(He.w_bits-8<<4)<<8;Ze|=(2<=He.strategy||He.level<2?0:He.level<6?1:He.level===6?2:3)<<6,He.strstart!==0&&(Ze|=32),Ze+=31-Ze%31,He.status=B,me(He,Ze),He.strstart!==0&&(me(He,De.adler>>>16),me(He,65535&De.adler)),De.adler=1}if(He.status===69)if(He.gzhead.extra){for(gt=He.pending;He.gzindex<(65535&He.gzhead.extra.length)&&(He.pending!==He.pending_buf_size||(He.gzhead.hcrc&&He.pending>gt&&(De.adler=l(De.adler,He.pending_buf,He.pending-gt,gt)),re(De),gt=He.pending,He.pending!==He.pending_buf_size));)fe(He,255&He.gzhead.extra[He.gzindex]),He.gzindex++;He.gzhead.hcrc&&He.pending>gt&&(De.adler=l(De.adler,He.pending_buf,He.pending-gt,gt)),He.gzindex===He.gzhead.extra.length&&(He.gzindex=0,He.status=73)}else He.status=73;if(He.status===73)if(He.gzhead.name){gt=He.pending;do{if(He.pending===He.pending_buf_size&&(He.gzhead.hcrc&&He.pending>gt&&(De.adler=l(De.adler,He.pending_buf,He.pending-gt,gt)),re(De),gt=He.pending,He.pending===He.pending_buf_size)){dn=1;break}dn=He.gzindex<He.gzhead.name.length?255&He.gzhead.name.charCodeAt(He.gzindex++):0,fe(He,dn)}while(dn!==0);He.gzhead.hcrc&&He.pending>gt&&(De.adler=l(De.adler,He.pending_buf,He.pending-gt,gt)),dn===0&&(He.gzindex=0,He.status=91)}else He.status=91;if(He.status===91)if(He.gzhead.comment){gt=He.pending;do{if(He.pending===He.pending_buf_size&&(He.gzhead.hcrc&&He.pending>gt&&(De.adler=l(De.adler,He.pending_buf,He.pending-gt,gt)),re(De),gt=He.pending,He.pending===He.pending_buf_size)){dn=1;break}dn=He.gzindex<He.gzhead.comment.length?255&He.gzhead.comment.charCodeAt(He.gzindex++):0,fe(He,dn)}while(dn!==0);He.gzhead.hcrc&&He.pending>gt&&(De.adler=l(De.adler,He.pending_buf,He.pending-gt,gt)),dn===0&&(He.status=103)}else He.status=103;if(He.status===103&&(He.gzhead.hcrc?(He.pending+2>He.pending_buf_size&&re(De),He.pending+2<=He.pending_buf_size&&(fe(He,255&De.adler),fe(He,De.adler>>8&255),De.adler=0,He.status=B)):He.status=B),He.pending!==0){if(re(De),De.avail_out===0)return He.last_flush=-1,w}else if(De.avail_in===0&&D(Be)<=D(Ve)&&Be!==4)return q(De,-5);if(He.status===666&&De.avail_in!==0)return q(De,-5);if(De.avail_in!==0||He.lookahead!==0||Be!==x&&He.status!==666){var at=He.strategy===2?function(Lt,Ne){for(var ze;;){if(Lt.lookahead===0&&(Te(Lt),Lt.lookahead===0)){if(Ne===x)return 1;break}if(Lt.match_length=0,ze=s._tr_tally(Lt,0,Lt.window[Lt.strstart]),Lt.lookahead--,Lt.strstart++,ze&&(le(Lt,!1),Lt.strm.avail_out===0))return 1}return Lt.insert=0,Ne===4?(le(Lt,!0),Lt.strm.avail_out===0?3:4):Lt.last_lit&&(le(Lt,!1),Lt.strm.avail_out===0)?1:2}(He,Be):He.strategy===3?function(Lt,Ne){for(var ze,Ke,vt,Ft,Ot=Lt.window;;){if(Lt.lookahead<=V){if(Te(Lt),Lt.lookahead<=V&&Ne===x)return 1;if(Lt.lookahead===0)break}if(Lt.match_length=0,Lt.lookahead>=G&&0<Lt.strstart&&(Ke=Ot[vt=Lt.strstart-1])===Ot[++vt]&&Ke===Ot[++vt]&&Ke===Ot[++vt]){Ft=Lt.strstart+V;do;while(Ke===Ot[++vt]&&Ke===Ot[++vt]&&Ke===Ot[++vt]&&Ke===Ot[++vt]&&Ke===Ot[++vt]&&Ke===Ot[++vt]&&Ke===Ot[++vt]&&Ke===Ot[++vt]&&vt<Ft);Lt.match_length=V-(Ft-vt),Lt.match_length>Lt.lookahead&&(Lt.match_length=Lt.lookahead)}if(Lt.match_length>=G?(ze=s._tr_tally(Lt,1,Lt.match_length-G),Lt.lookahead-=Lt.match_length,Lt.strstart+=Lt.match_length,Lt.match_length=0):(ze=s._tr_tally(Lt,0,Lt.window[Lt.strstart]),Lt.lookahead--,Lt.strstart++),ze&&(le(Lt,!1),Lt.strm.avail_out===0))return 1}return Lt.insert=0,Ne===4?(le(Lt,!0),Lt.strm.avail_out===0?3:4):Lt.last_lit&&(le(Lt,!1),Lt.strm.avail_out===0)?1:2}(He,Be):n[He.level].func(He,Be);if(at!==3&&at!==4||(He.status=666),at===1||at===3)return De.avail_out===0&&(He.last_flush=-1),w;if(at===2&&(Be===1?s._tr_align(He):Be!==5&&(s._tr_stored_block(He,0,0,!1),Be===3&&(F(He.head),He.lookahead===0&&(He.strstart=0,He.block_start=0,He.insert=0))),re(De),De.avail_out===0))return He.last_flush=-1,w}return Be!==4?w:He.wrap<=0?1:(He.wrap===2?(fe(He,255&De.adler),fe(He,De.adler>>8&255),fe(He,De.adler>>16&255),fe(He,De.adler>>24&255),fe(He,255&De.total_in),fe(He,De.total_in>>8&255),fe(He,De.total_in>>16&255),fe(He,De.total_in>>24&255)):(me(He,De.adler>>>16),me(He,65535&De.adler)),re(De),0<He.wrap&&(He.wrap=-He.wrap),He.pending!==0?w:1)},r.deflateEnd=function(De){var Be;return De&&De.state?(Be=De.state.status)!==W&&Be!==69&&Be!==73&&Be!==91&&Be!==103&&Be!==B&&Be!==666?q(De,_):(De.state=null,Be===B?q(De,-3):w):_},r.deflateSetDictionary=function(De,Be){var Ve,He,gt,dn,Ze,at,Lt,Ne,ze=Be.length;if(!De||!De.state||(dn=(Ve=De.state).wrap)===2||dn===1&&Ve.status!==W||Ve.lookahead)return _;for(dn===1&&(De.adler=c(De.adler,Be,ze,0)),Ve.wrap=0,ze>=Ve.w_size&&(dn===0&&(F(Ve.head),Ve.strstart=0,Ve.block_start=0,Ve.insert=0),Ne=new o.Buf8(Ve.w_size),o.arraySet(Ne,Be,ze-Ve.w_size,Ve.w_size,0),Be=Ne,ze=Ve.w_size),Ze=De.avail_in,at=De.next_in,Lt=De.input,De.avail_in=ze,De.next_in=0,De.input=Be,Te(Ve);Ve.lookahead>=G;){for(He=Ve.strstart,gt=Ve.lookahead-(G-1);Ve.ins_h=(Ve.ins_h<<Ve.hash_shift^Ve.window[He+G-1])&Ve.hash_mask,Ve.prev[He&Ve.w_mask]=Ve.head[Ve.ins_h],Ve.head[Ve.ins_h]=He,He++,--gt;);Ve.strstart=He,Ve.lookahead=G-1,Te(Ve)}return Ve.strstart+=Ve.lookahead,Ve.block_start=Ve.strstart,Ve.insert=Ve.lookahead,Ve.lookahead=0,Ve.match_length=Ve.prev_length=G-1,Ve.match_available=0,De.next_in=at,De.input=Lt,De.avail_in=Ze,Ve.wrap=dn,w},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":4,"./adler32":6,"./crc32":8,"./messages":14,"./trees":15}],10:[function(t,e,r){e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],11:[function(t,e,r){e.exports=function(n,o){var s,c,l,v,x,w,_,b,E,I,O,N,A,z,G,V,ne,W,B,q,D,F,re,le,fe;s=n.state,c=n.next_in,le=n.input,l=c+(n.avail_in-5),v=n.next_out,fe=n.output,x=v-(o-n.avail_out),w=v+(n.avail_out-257),_=s.dmax,b=s.wsize,E=s.whave,I=s.wnext,O=s.window,N=s.hold,A=s.bits,z=s.lencode,G=s.distcode,V=(1<<s.lenbits)-1,ne=(1<<s.distbits)-1;e:do{A<15&&(N+=le[c++]<<A,A+=8,N+=le[c++]<<A,A+=8),W=z[N&V];t:for(;;){if(N>>>=B=W>>>24,A-=B,(B=W>>>16&255)==0)fe[v++]=65535&W;else{if(!(16&B)){if((64&B)==0){W=z[(65535&W)+(N&(1<<B)-1)];continue t}if(32&B){s.mode=12;break e}n.msg="invalid literal/length code",s.mode=30;break e}q=65535&W,(B&=15)&&(A<B&&(N+=le[c++]<<A,A+=8),q+=N&(1<<B)-1,N>>>=B,A-=B),A<15&&(N+=le[c++]<<A,A+=8,N+=le[c++]<<A,A+=8),W=G[N&ne];n:for(;;){if(N>>>=B=W>>>24,A-=B,!(16&(B=W>>>16&255))){if((64&B)==0){W=G[(65535&W)+(N&(1<<B)-1)];continue n}n.msg="invalid distance code",s.mode=30;break e}if(D=65535&W,A<(B&=15)&&(N+=le[c++]<<A,(A+=8)<B&&(N+=le[c++]<<A,A+=8)),_<(D+=N&(1<<B)-1)){n.msg="invalid distance too far back",s.mode=30;break e}if(N>>>=B,A-=B,(B=v-x)<D){if(E<(B=D-B)&&s.sane){n.msg="invalid distance too far back",s.mode=30;break e}if(re=O,(F=0)===I){if(F+=b-B,B<q){for(q-=B;fe[v++]=O[F++],--B;);F=v-D,re=fe}}else if(I<B){if(F+=b+I-B,(B-=I)<q){for(q-=B;fe[v++]=O[F++],--B;);if(F=0,I<q){for(q-=B=I;fe[v++]=O[F++],--B;);F=v-D,re=fe}}}else if(F+=I-B,B<q){for(q-=B;fe[v++]=O[F++],--B;);F=v-D,re=fe}for(;2<q;)fe[v++]=re[F++],fe[v++]=re[F++],fe[v++]=re[F++],q-=3;q&&(fe[v++]=re[F++],1<q&&(fe[v++]=re[F++]))}else{for(F=v-D;fe[v++]=fe[F++],fe[v++]=fe[F++],fe[v++]=fe[F++],2<(q-=3););q&&(fe[v++]=fe[F++],1<q&&(fe[v++]=fe[F++]))}break}}break}}while(c<l&&v<w);c-=q=A>>3,N&=(1<<(A-=q<<3))-1,n.next_in=c,n.next_out=v,n.avail_in=c<l?l-c+5:5-(c-l),n.avail_out=v<w?w-v+257:257-(v-w),s.hold=N,s.bits=A}},{}],12:[function(t,e,r){var n=t("../utils/common"),o=t("./adler32"),s=t("./crc32"),c=t("./inffast"),l=t("./inftrees"),v=0,x=-2,w=1,_=852,b=592;function E(q){return(q>>>24&255)+(q>>>8&65280)+((65280&q)<<8)+((255&q)<<24)}function I(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function O(q){var D;return q&&q.state?(D=q.state,q.total_in=q.total_out=D.total=0,q.msg="",D.wrap&&(q.adler=1&D.wrap),D.mode=w,D.last=0,D.havedict=0,D.dmax=32768,D.head=null,D.hold=0,D.bits=0,D.lencode=D.lendyn=new n.Buf32(_),D.distcode=D.distdyn=new n.Buf32(b),D.sane=1,D.back=-1,v):x}function N(q){var D;return q&&q.state?((D=q.state).wsize=0,D.whave=0,D.wnext=0,O(q)):x}function A(q,D){var F,re;return q&&q.state?(re=q.state,D<0?(F=0,D=-D):(F=1+(D>>4),D<48&&(D&=15)),D&&(D<8||15<D)?x:(re.window!==null&&re.wbits!==D&&(re.window=null),re.wrap=F,re.wbits=D,N(q))):x}function z(q,D){var F,re;return q?(re=new I,(q.state=re).window=null,(F=A(q,D))!==v&&(q.state=null),F):x}var G,V,ne=!0;function W(q){if(ne){var D;for(G=new n.Buf32(512),V=new n.Buf32(32),D=0;D<144;)q.lens[D++]=8;for(;D<256;)q.lens[D++]=9;for(;D<280;)q.lens[D++]=7;for(;D<288;)q.lens[D++]=8;for(l(1,q.lens,0,288,G,0,q.work,{bits:9}),D=0;D<32;)q.lens[D++]=5;l(2,q.lens,0,32,V,0,q.work,{bits:5}),ne=!1}q.lencode=G,q.lenbits=9,q.distcode=V,q.distbits=5}function B(q,D,F,re){var le,fe=q.state;return fe.window===null&&(fe.wsize=1<<fe.wbits,fe.wnext=0,fe.whave=0,fe.window=new n.Buf8(fe.wsize)),re>=fe.wsize?(n.arraySet(fe.window,D,F-fe.wsize,fe.wsize,0),fe.wnext=0,fe.whave=fe.wsize):(re<(le=fe.wsize-fe.wnext)&&(le=re),n.arraySet(fe.window,D,F-re,le,fe.wnext),(re-=le)?(n.arraySet(fe.window,D,F-re,re,0),fe.wnext=re,fe.whave=fe.wsize):(fe.wnext+=le,fe.wnext===fe.wsize&&(fe.wnext=0),fe.whave<fe.wsize&&(fe.whave+=le))),0}r.inflateReset=N,r.inflateReset2=A,r.inflateResetKeep=O,r.inflateInit=function(q){return z(q,15)},r.inflateInit2=z,r.inflate=function(q,D){var F,re,le,fe,me,ye,Te,ke,Le,et,it,Ue,ht,De,Be,Ve,He,gt,dn,Ze,at,Lt,Ne,ze,Ke=0,vt=new n.Buf8(4),Ft=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!q||!q.state||!q.output||!q.input&&q.avail_in!==0)return x;(F=q.state).mode===12&&(F.mode=13),me=q.next_out,le=q.output,Te=q.avail_out,fe=q.next_in,re=q.input,ye=q.avail_in,ke=F.hold,Le=F.bits,et=ye,it=Te,Lt=v;e:for(;;)switch(F.mode){case w:if(F.wrap===0){F.mode=13;break}for(;Le<16;){if(ye===0)break e;ye--,ke+=re[fe++]<<Le,Le+=8}if(2&F.wrap&&ke===35615){vt[F.check=0]=255&ke,vt[1]=ke>>>8&255,F.check=s(F.check,vt,2,0),Le=ke=0,F.mode=2;break}if(F.flags=0,F.head&&(F.head.done=!1),!(1&F.wrap)||(((255&ke)<<8)+(ke>>8))%31){q.msg="incorrect header check",F.mode=30;break}if((15&ke)!=8){q.msg="unknown compression method",F.mode=30;break}if(Le-=4,at=8+(15&(ke>>>=4)),F.wbits===0)F.wbits=at;else if(at>F.wbits){q.msg="invalid window size",F.mode=30;break}F.dmax=1<<at,q.adler=F.check=1,F.mode=512&ke?10:12,Le=ke=0;break;case 2:for(;Le<16;){if(ye===0)break e;ye--,ke+=re[fe++]<<Le,Le+=8}if(F.flags=ke,(255&F.flags)!=8){q.msg="unknown compression method",F.mode=30;break}if(57344&F.flags){q.msg="unknown header flags set",F.mode=30;break}F.head&&(F.head.text=ke>>8&1),512&F.flags&&(vt[0]=255&ke,vt[1]=ke>>>8&255,F.check=s(F.check,vt,2,0)),Le=ke=0,F.mode=3;case 3:for(;Le<32;){if(ye===0)break e;ye--,ke+=re[fe++]<<Le,Le+=8}F.head&&(F.head.time=ke),512&F.flags&&(vt[0]=255&ke,vt[1]=ke>>>8&255,vt[2]=ke>>>16&255,vt[3]=ke>>>24&255,F.check=s(F.check,vt,4,0)),Le=ke=0,F.mode=4;case 4:for(;Le<16;){if(ye===0)break e;ye--,ke+=re[fe++]<<Le,Le+=8}F.head&&(F.head.xflags=255&ke,F.head.os=ke>>8),512&F.flags&&(vt[0]=255&ke,vt[1]=ke>>>8&255,F.check=s(F.check,vt,2,0)),Le=ke=0,F.mode=5;case 5:if(1024&F.flags){for(;Le<16;){if(ye===0)break e;ye--,ke+=re[fe++]<<Le,Le+=8}F.length=ke,F.head&&(F.head.extra_len=ke),512&F.flags&&(vt[0]=255&ke,vt[1]=ke>>>8&255,F.check=s(F.check,vt,2,0)),Le=ke=0}else F.head&&(F.head.extra=null);F.mode=6;case 6:if(1024&F.flags&&(ye<(Ue=F.length)&&(Ue=ye),Ue&&(F.head&&(at=F.head.extra_len-F.length,F.head.extra||(F.head.extra=new Array(F.head.extra_len)),n.arraySet(F.head.extra,re,fe,Ue,at)),512&F.flags&&(F.check=s(F.check,re,Ue,fe)),ye-=Ue,fe+=Ue,F.length-=Ue),F.length))break e;F.length=0,F.mode=7;case 7:if(2048&F.flags){if(ye===0)break e;for(Ue=0;at=re[fe+Ue++],F.head&&at&&F.length<65536&&(F.head.name+=String.fromCharCode(at)),at&&Ue<ye;);if(512&F.flags&&(F.check=s(F.check,re,Ue,fe)),ye-=Ue,fe+=Ue,at)break e}else F.head&&(F.head.name=null);F.length=0,F.mode=8;case 8:if(4096&F.flags){if(ye===0)break e;for(Ue=0;at=re[fe+Ue++],F.head&&at&&F.length<65536&&(F.head.comment+=String.fromCharCode(at)),at&&Ue<ye;);if(512&F.flags&&(F.check=s(F.check,re,Ue,fe)),ye-=Ue,fe+=Ue,at)break e}else F.head&&(F.head.comment=null);F.mode=9;case 9:if(512&F.flags){for(;Le<16;){if(ye===0)break e;ye--,ke+=re[fe++]<<Le,Le+=8}if(ke!==(65535&F.check)){q.msg="header crc mismatch",F.mode=30;break}Le=ke=0}F.head&&(F.head.hcrc=F.flags>>9&1,F.head.done=!0),q.adler=F.check=0,F.mode=12;break;case 10:for(;Le<32;){if(ye===0)break e;ye--,ke+=re[fe++]<<Le,Le+=8}q.adler=F.check=E(ke),Le=ke=0,F.mode=11;case 11:if(F.havedict===0)return q.next_out=me,q.avail_out=Te,q.next_in=fe,q.avail_in=ye,F.hold=ke,F.bits=Le,2;q.adler=F.check=1,F.mode=12;case 12:if(D===5||D===6)break e;case 13:if(F.last){ke>>>=7&Le,Le-=7&Le,F.mode=27;break}for(;Le<3;){if(ye===0)break e;ye--,ke+=re[fe++]<<Le,Le+=8}switch(F.last=1&ke,--Le,3&(ke>>>=1)){case 0:F.mode=14;break;case 1:if(W(F),F.mode=20,D!==6)break;ke>>>=2,Le-=2;break e;case 2:F.mode=17;break;case 3:q.msg="invalid block type",F.mode=30}ke>>>=2,Le-=2;break;case 14:for(ke>>>=7&Le,Le-=7&Le;Le<32;){if(ye===0)break e;ye--,ke+=re[fe++]<<Le,Le+=8}if((65535&ke)!=(ke>>>16^65535)){q.msg="invalid stored block lengths",F.mode=30;break}if(F.length=65535&ke,Le=ke=0,F.mode=15,D===6)break e;case 15:F.mode=16;case 16:if(Ue=F.length){if(ye<Ue&&(Ue=ye),Te<Ue&&(Ue=Te),Ue===0)break e;n.arraySet(le,re,fe,Ue,me),ye-=Ue,fe+=Ue,Te-=Ue,me+=Ue,F.length-=Ue;break}F.mode=12;break;case 17:for(;Le<14;){if(ye===0)break e;ye--,ke+=re[fe++]<<Le,Le+=8}if(F.nlen=257+(31&ke),ke>>>=5,Le-=5,F.ndist=1+(31&ke),ke>>>=5,Le-=5,F.ncode=4+(15&ke),ke>>>=4,Le-=4,286<F.nlen||30<F.ndist){q.msg="too many length or distance symbols",F.mode=30;break}F.have=0,F.mode=18;case 18:for(;F.have<F.ncode;){for(;Le<3;){if(ye===0)break e;ye--,ke+=re[fe++]<<Le,Le+=8}F.lens[Ft[F.have++]]=7&ke,ke>>>=3,Le-=3}for(;F.have<19;)F.lens[Ft[F.have++]]=0;if(F.lencode=F.lendyn,F.lenbits=7,Ne={bits:F.lenbits},Lt=l(0,F.lens,0,19,F.lencode,0,F.work,Ne),F.lenbits=Ne.bits,Lt){q.msg="invalid code lengths set",F.mode=30;break}F.have=0,F.mode=19;case 19:for(;F.have<F.nlen+F.ndist;){for(;Ve=(Ke=F.lencode[ke&(1<<F.lenbits)-1])>>>16&255,He=65535&Ke,!((Be=Ke>>>24)<=Le);){if(ye===0)break e;ye--,ke+=re[fe++]<<Le,Le+=8}if(He<16)ke>>>=Be,Le-=Be,F.lens[F.have++]=He;else{if(He===16){for(ze=Be+2;Le<ze;){if(ye===0)break e;ye--,ke+=re[fe++]<<Le,Le+=8}if(ke>>>=Be,Le-=Be,F.have===0){q.msg="invalid bit length repeat",F.mode=30;break}at=F.lens[F.have-1],Ue=3+(3&ke),ke>>>=2,Le-=2}else if(He===17){for(ze=Be+3;Le<ze;){if(ye===0)break e;ye--,ke+=re[fe++]<<Le,Le+=8}Le-=Be,at=0,Ue=3+(7&(ke>>>=Be)),ke>>>=3,Le-=3}else{for(ze=Be+7;Le<ze;){if(ye===0)break e;ye--,ke+=re[fe++]<<Le,Le+=8}Le-=Be,at=0,Ue=11+(127&(ke>>>=Be)),ke>>>=7,Le-=7}if(F.have+Ue>F.nlen+F.ndist){q.msg="invalid bit length repeat",F.mode=30;break}for(;Ue--;)F.lens[F.have++]=at}}if(F.mode===30)break;if(F.lens[256]===0){q.msg="invalid code -- missing end-of-block",F.mode=30;break}if(F.lenbits=9,Ne={bits:F.lenbits},Lt=l(1,F.lens,0,F.nlen,F.lencode,0,F.work,Ne),F.lenbits=Ne.bits,Lt){q.msg="invalid literal/lengths set",F.mode=30;break}if(F.distbits=6,F.distcode=F.distdyn,Ne={bits:F.distbits},Lt=l(2,F.lens,F.nlen,F.ndist,F.distcode,0,F.work,Ne),F.distbits=Ne.bits,Lt){q.msg="invalid distances set",F.mode=30;break}if(F.mode=20,D===6)break e;case 20:F.mode=21;case 21:if(6<=ye&&258<=Te){q.next_out=me,q.avail_out=Te,q.next_in=fe,q.avail_in=ye,F.hold=ke,F.bits=Le,c(q,it),me=q.next_out,le=q.output,Te=q.avail_out,fe=q.next_in,re=q.input,ye=q.avail_in,ke=F.hold,Le=F.bits,F.mode===12&&(F.back=-1);break}for(F.back=0;Ve=(Ke=F.lencode[ke&(1<<F.lenbits)-1])>>>16&255,He=65535&Ke,!((Be=Ke>>>24)<=Le);){if(ye===0)break e;ye--,ke+=re[fe++]<<Le,Le+=8}if(Ve&&(240&Ve)==0){for(gt=Be,dn=Ve,Ze=He;Ve=(Ke=F.lencode[Ze+((ke&(1<<gt+dn)-1)>>gt)])>>>16&255,He=65535&Ke,!(gt+(Be=Ke>>>24)<=Le);){if(ye===0)break e;ye--,ke+=re[fe++]<<Le,Le+=8}ke>>>=gt,Le-=gt,F.back+=gt}if(ke>>>=Be,Le-=Be,F.back+=Be,F.length=He,Ve===0){F.mode=26;break}if(32&Ve){F.back=-1,F.mode=12;break}if(64&Ve){q.msg="invalid literal/length code",F.mode=30;break}F.extra=15&Ve,F.mode=22;case 22:if(F.extra){for(ze=F.extra;Le<ze;){if(ye===0)break e;ye--,ke+=re[fe++]<<Le,Le+=8}F.length+=ke&(1<<F.extra)-1,ke>>>=F.extra,Le-=F.extra,F.back+=F.extra}F.was=F.length,F.mode=23;case 23:for(;Ve=(Ke=F.distcode[ke&(1<<F.distbits)-1])>>>16&255,He=65535&Ke,!((Be=Ke>>>24)<=Le);){if(ye===0)break e;ye--,ke+=re[fe++]<<Le,Le+=8}if((240&Ve)==0){for(gt=Be,dn=Ve,Ze=He;Ve=(Ke=F.distcode[Ze+((ke&(1<<gt+dn)-1)>>gt)])>>>16&255,He=65535&Ke,!(gt+(Be=Ke>>>24)<=Le);){if(ye===0)break e;ye--,ke+=re[fe++]<<Le,Le+=8}ke>>>=gt,Le-=gt,F.back+=gt}if(ke>>>=Be,Le-=Be,F.back+=Be,64&Ve){q.msg="invalid distance code",F.mode=30;break}F.offset=He,F.extra=15&Ve,F.mode=24;case 24:if(F.extra){for(ze=F.extra;Le<ze;){if(ye===0)break e;ye--,ke+=re[fe++]<<Le,Le+=8}F.offset+=ke&(1<<F.extra)-1,ke>>>=F.extra,Le-=F.extra,F.back+=F.extra}if(F.offset>F.dmax){q.msg="invalid distance too far back",F.mode=30;break}F.mode=25;case 25:if(Te===0)break e;if(Ue=it-Te,F.offset>Ue){if((Ue=F.offset-Ue)>F.whave&&F.sane){q.msg="invalid distance too far back",F.mode=30;break}ht=Ue>F.wnext?(Ue-=F.wnext,F.wsize-Ue):F.wnext-Ue,Ue>F.length&&(Ue=F.length),De=F.window}else De=le,ht=me-F.offset,Ue=F.length;for(Te<Ue&&(Ue=Te),Te-=Ue,F.length-=Ue;le[me++]=De[ht++],--Ue;);F.length===0&&(F.mode=21);break;case 26:if(Te===0)break e;le[me++]=F.length,Te--,F.mode=21;break;case 27:if(F.wrap){for(;Le<32;){if(ye===0)break e;ye--,ke|=re[fe++]<<Le,Le+=8}if(it-=Te,q.total_out+=it,F.total+=it,it&&(q.adler=F.check=(F.flags?s:o)(F.check,le,it,me-it)),it=Te,(F.flags?ke:E(ke))!==F.check){q.msg="incorrect data check",F.mode=30;break}Le=ke=0}F.mode=28;case 28:if(F.wrap&&F.flags){for(;Le<32;){if(ye===0)break e;ye--,ke+=re[fe++]<<Le,Le+=8}if(ke!==(4294967295&F.total)){q.msg="incorrect length check",F.mode=30;break}Le=ke=0}F.mode=29;case 29:Lt=1;break e;case 30:Lt=-3;break e;case 31:return-4;default:return x}return q.next_out=me,q.avail_out=Te,q.next_in=fe,q.avail_in=ye,F.hold=ke,F.bits=Le,(F.wsize||it!==q.avail_out&&F.mode<30&&(F.mode<27||D!==4))&&B(q,q.output,q.next_out,it-q.avail_out)?(F.mode=31,-4):(et-=q.avail_in,it-=q.avail_out,q.total_in+=et,q.total_out+=it,F.total+=it,F.wrap&&it&&(q.adler=F.check=(F.flags?s:o)(F.check,le,it,q.next_out-it)),q.data_type=F.bits+(F.last?64:0)+(F.mode===12?128:0)+(F.mode===20||F.mode===15?256:0),(et==0&&it===0||D===4)&&Lt===v&&(Lt=-5),Lt)},r.inflateEnd=function(q){if(!q||!q.state)return x;var D=q.state;return D.window&&(D.window=null),q.state=null,v},r.inflateGetHeader=function(q,D){var F;return q&&q.state&&(2&(F=q.state).wrap)!=0?((F.head=D).done=!1,v):x},r.inflateSetDictionary=function(q,D){var F,re=D.length;return!q||!q.state||(F=q.state).wrap!==0&&F.mode!==11?x:F.mode===11&&o(1,D,re,0)!==F.check?-3:B(q,D,re,re)?(F.mode=31,-4):(F.havedict=1,v)},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":4,"./adler32":6,"./crc32":8,"./inffast":11,"./inftrees":13}],13:[function(t,e,r){var n=t("../utils/common"),o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],s=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],c=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],l=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(v,x,w,_,b,E,I,O){var N,A,z,G,V,ne,W,B,q,D=O.bits,F=0,re=0,le=0,fe=0,me=0,ye=0,Te=0,ke=0,Le=0,et=0,it=null,Ue=0,ht=new n.Buf16(16),De=new n.Buf16(16),Be=null,Ve=0;for(F=0;F<=15;F++)ht[F]=0;for(re=0;re<_;re++)ht[x[w+re]]++;for(me=D,fe=15;1<=fe&&ht[fe]===0;fe--);if(fe<me&&(me=fe),fe===0)return b[E++]=20971520,b[E++]=20971520,O.bits=1,0;for(le=1;le<fe&&ht[le]===0;le++);for(me<le&&(me=le),F=ke=1;F<=15;F++)if(ke<<=1,(ke-=ht[F])<0)return-1;if(0<ke&&(v===0||fe!==1))return-1;for(De[1]=0,F=1;F<15;F++)De[F+1]=De[F]+ht[F];for(re=0;re<_;re++)x[w+re]!==0&&(I[De[x[w+re]]++]=re);if(ne=v===0?(it=Be=I,19):v===1?(it=o,Ue-=257,Be=s,Ve-=257,256):(it=c,Be=l,-1),F=le,V=E,Te=re=et=0,z=-1,G=(Le=1<<(ye=me))-1,v===1&&852<Le||v===2&&592<Le)return 1;for(;;){for(W=F-Te,q=I[re]<ne?(B=0,I[re]):I[re]>ne?(B=Be[Ve+I[re]],it[Ue+I[re]]):(B=96,0),N=1<<F-Te,le=A=1<<ye;b[V+(et>>Te)+(A-=N)]=W<<24|B<<16|q|0,A!==0;);for(N=1<<F-1;et&N;)N>>=1;if(N!==0?(et&=N-1,et+=N):et=0,re++,--ht[F]==0){if(F===fe)break;F=x[w+I[re]]}if(me<F&&(et&G)!==z){for(Te===0&&(Te=me),V+=le,ke=1<<(ye=F-Te);ye+Te<fe&&!((ke-=ht[ye+Te])<=0);)ye++,ke<<=1;if(Le+=1<<ye,v===1&&852<Le||v===2&&592<Le)return 1;b[z=et&G]=me<<24|ye<<16|V-E|0}}return et!==0&&(b[V+et]=F-Te<<24|64<<16|0),O.bits=me,0}},{"../utils/common":4}],14:[function(t,e,r){e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],15:[function(t,e,r){var n=t("../utils/common");function o(Ve){for(var He=Ve.length;0<=--He;)Ve[He]=0}var s=256,c=286,l=30,v=15,x=16,w=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],_=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],b=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],E=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],I=new Array(576);o(I);var O=new Array(60);o(O);var N=new Array(512);o(N);var A=new Array(256);o(A);var z=new Array(29);o(z);var G,V,ne,W=new Array(l);function B(Ve,He,gt,dn,Ze){this.static_tree=Ve,this.extra_bits=He,this.extra_base=gt,this.elems=dn,this.max_length=Ze,this.has_stree=Ve&&Ve.length}function q(Ve,He){this.dyn_tree=Ve,this.max_code=0,this.stat_desc=He}function D(Ve){return Ve<256?N[Ve]:N[256+(Ve>>>7)]}function F(Ve,He){Ve.pending_buf[Ve.pending++]=255&He,Ve.pending_buf[Ve.pending++]=He>>>8&255}function re(Ve,He,gt){Ve.bi_valid>x-gt?(Ve.bi_buf|=He<<Ve.bi_valid&65535,F(Ve,Ve.bi_buf),Ve.bi_buf=He>>x-Ve.bi_valid,Ve.bi_valid+=gt-x):(Ve.bi_buf|=He<<Ve.bi_valid&65535,Ve.bi_valid+=gt)}function le(Ve,He,gt){re(Ve,gt[2*He],gt[2*He+1])}function fe(Ve,He){for(var gt=0;gt|=1&Ve,Ve>>>=1,gt<<=1,0<--He;);return gt>>>1}function me(Ve,He,gt){var dn,Ze,at=new Array(v+1),Lt=0;for(dn=1;dn<=v;dn++)at[dn]=Lt=Lt+gt[dn-1]<<1;for(Ze=0;Ze<=He;Ze++){var Ne=Ve[2*Ze+1];Ne!==0&&(Ve[2*Ze]=fe(at[Ne]++,Ne))}}function ye(Ve){var He;for(He=0;He<c;He++)Ve.dyn_ltree[2*He]=0;for(He=0;He<l;He++)Ve.dyn_dtree[2*He]=0;for(He=0;He<19;He++)Ve.bl_tree[2*He]=0;Ve.dyn_ltree[512]=1,Ve.opt_len=Ve.static_len=0,Ve.last_lit=Ve.matches=0}function Te(Ve){8<Ve.bi_valid?F(Ve,Ve.bi_buf):0<Ve.bi_valid&&(Ve.pending_buf[Ve.pending++]=Ve.bi_buf),Ve.bi_buf=0,Ve.bi_valid=0}function ke(Ve,He,gt,dn){var Ze=2*He,at=2*gt;return Ve[Ze]<Ve[at]||Ve[Ze]===Ve[at]&&dn[He]<=dn[gt]}function Le(Ve,He,gt){for(var dn=Ve.heap[gt],Ze=gt<<1;Ze<=Ve.heap_len&&(Ze<Ve.heap_len&&ke(He,Ve.heap[Ze+1],Ve.heap[Ze],Ve.depth)&&Ze++,!ke(He,dn,Ve.heap[Ze],Ve.depth));)Ve.heap[gt]=Ve.heap[Ze],gt=Ze,Ze<<=1;Ve.heap[gt]=dn}function et(Ve,He,gt){var dn,Ze,at,Lt,Ne=0;if(Ve.last_lit!==0)for(;dn=Ve.pending_buf[Ve.d_buf+2*Ne]<<8|Ve.pending_buf[Ve.d_buf+2*Ne+1],Ze=Ve.pending_buf[Ve.l_buf+Ne],Ne++,dn===0?le(Ve,Ze,He):(le(Ve,(at=A[Ze])+s+1,He),(Lt=w[at])!==0&&re(Ve,Ze-=z[at],Lt),le(Ve,at=D(--dn),gt),(Lt=_[at])!==0&&re(Ve,dn-=W[at],Lt)),Ne<Ve.last_lit;);le(Ve,256,He)}function it(Ve,He){var gt,dn,Ze,at=He.dyn_tree,Lt=He.stat_desc.static_tree,Ne=He.stat_desc.has_stree,ze=He.stat_desc.elems,Ke=-1;for(Ve.heap_len=0,Ve.heap_max=573,gt=0;gt<ze;gt++)at[2*gt]!==0?(Ve.heap[++Ve.heap_len]=Ke=gt,Ve.depth[gt]=0):at[2*gt+1]=0;for(;Ve.heap_len<2;)at[2*(Ze=Ve.heap[++Ve.heap_len]=Ke<2?++Ke:0)]=1,Ve.depth[Ze]=0,Ve.opt_len--,Ne&&(Ve.static_len-=Lt[2*Ze+1]);for(He.max_code=Ke,gt=Ve.heap_len>>1;1<=gt;gt--)Le(Ve,at,gt);for(Ze=ze;gt=Ve.heap[1],Ve.heap[1]=Ve.heap[Ve.heap_len--],Le(Ve,at,1),dn=Ve.heap[1],Ve.heap[--Ve.heap_max]=gt,Ve.heap[--Ve.heap_max]=dn,at[2*Ze]=at[2*gt]+at[2*dn],Ve.depth[Ze]=(Ve.depth[gt]>=Ve.depth[dn]?Ve.depth[gt]:Ve.depth[dn])+1,at[2*gt+1]=at[2*dn+1]=Ze,Ve.heap[1]=Ze++,Le(Ve,at,1),2<=Ve.heap_len;);Ve.heap[--Ve.heap_max]=Ve.heap[1],function(vt,Ft){var Ot,_t,Tn,on,$n,Zt,Et=Ft.dyn_tree,rn=Ft.max_code,wt=Ft.stat_desc.static_tree,Yn=Ft.stat_desc.has_stree,pt=Ft.stat_desc.extra_bits,Fe=Ft.stat_desc.extra_base,Ie=Ft.stat_desc.max_length,ct=0;for(on=0;on<=v;on++)vt.bl_count[on]=0;for(Et[2*vt.heap[vt.heap_max]+1]=0,Ot=vt.heap_max+1;Ot<573;Ot++)Ie<(on=Et[2*Et[2*(_t=vt.heap[Ot])+1]+1]+1)&&(on=Ie,ct++),Et[2*_t+1]=on,rn<_t||(vt.bl_count[on]++,$n=0,Fe<=_t&&($n=pt[_t-Fe]),Zt=Et[2*_t],vt.opt_len+=Zt*(on+$n),Yn&&(vt.static_len+=Zt*(wt[2*_t+1]+$n)));if(ct!==0){do{for(on=Ie-1;vt.bl_count[on]===0;)on--;vt.bl_count[on]--,vt.bl_count[on+1]+=2,vt.bl_count[Ie]--,ct-=2}while(0<ct);for(on=Ie;on!==0;on--)for(_t=vt.bl_count[on];_t!==0;)rn<(Tn=vt.heap[--Ot])||(Et[2*Tn+1]!==on&&(vt.opt_len+=(on-Et[2*Tn+1])*Et[2*Tn],Et[2*Tn+1]=on),_t--)}}(Ve,He),me(at,Ke,Ve.bl_count)}function Ue(Ve,He,gt){var dn,Ze,at=-1,Lt=He[1],Ne=0,ze=7,Ke=4;for(Lt===0&&(ze=138,Ke=3),He[2*(gt+1)+1]=65535,dn=0;dn<=gt;dn++)Ze=Lt,Lt=He[2*(dn+1)+1],++Ne<ze&&Ze===Lt||(Ne<Ke?Ve.bl_tree[2*Ze]+=Ne:Ze!==0?(Ze!==at&&Ve.bl_tree[2*Ze]++,Ve.bl_tree[32]++):Ne<=10?Ve.bl_tree[34]++:Ve.bl_tree[36]++,at=Ze,Ke=(Ne=0)===Lt?(ze=138,3):Ze===Lt?(ze=6,3):(ze=7,4))}function ht(Ve,He,gt){var dn,Ze,at=-1,Lt=He[1],Ne=0,ze=7,Ke=4;for(Lt===0&&(ze=138,Ke=3),dn=0;dn<=gt;dn++)if(Ze=Lt,Lt=He[2*(dn+1)+1],!(++Ne<ze&&Ze===Lt)){if(Ne<Ke)for(;le(Ve,Ze,Ve.bl_tree),--Ne!=0;);else Ze!==0?(Ze!==at&&(le(Ve,Ze,Ve.bl_tree),Ne--),le(Ve,16,Ve.bl_tree),re(Ve,Ne-3,2)):Ne<=10?(le(Ve,17,Ve.bl_tree),re(Ve,Ne-3,3)):(le(Ve,18,Ve.bl_tree),re(Ve,Ne-11,7));at=Ze,Ke=(Ne=0)===Lt?(ze=138,3):Ze===Lt?(ze=6,3):(ze=7,4)}}o(W);var De=!1;function Be(Ve,He,gt,dn){var Ze,at,Lt;re(Ve,0+(dn?1:0),3),at=He,Lt=gt,Te(Ze=Ve),F(Ze,Lt),F(Ze,~Lt),n.arraySet(Ze.pending_buf,Ze.window,at,Lt,Ze.pending),Ze.pending+=Lt}r._tr_init=function(Ve){De||(function(){var He,gt,dn,Ze,at,Lt=new Array(v+1);for(Ze=dn=0;Ze<28;Ze++)for(z[Ze]=dn,He=0;He<1<<w[Ze];He++)A[dn++]=Ze;for(A[dn-1]=Ze,Ze=at=0;Ze<16;Ze++)for(W[Ze]=at,He=0;He<1<<_[Ze];He++)N[at++]=Ze;for(at>>=7;Ze<l;Ze++)for(W[Ze]=at<<7,He=0;He<1<<_[Ze]-7;He++)N[256+at++]=Ze;for(gt=0;gt<=v;gt++)Lt[gt]=0;for(He=0;He<=143;)I[2*He+1]=8,He++,Lt[8]++;for(;He<=255;)I[2*He+1]=9,He++,Lt[9]++;for(;He<=279;)I[2*He+1]=7,He++,Lt[7]++;for(;He<=287;)I[2*He+1]=8,He++,Lt[8]++;for(me(I,287,Lt),He=0;He<l;He++)O[2*He+1]=5,O[2*He]=fe(He,5);G=new B(I,w,257,c,v),V=new B(O,_,0,l,v),ne=new B(new Array(0),b,0,19,7)}(),De=!0),Ve.l_desc=new q(Ve.dyn_ltree,G),Ve.d_desc=new q(Ve.dyn_dtree,V),Ve.bl_desc=new q(Ve.bl_tree,ne),Ve.bi_buf=0,Ve.bi_valid=0,ye(Ve)},r._tr_stored_block=Be,r._tr_flush_block=function(Ve,He,gt,dn){var Ze,at,Lt=0;0<Ve.level?(Ve.strm.data_type===2&&(Ve.strm.data_type=function(Ne){var ze,Ke=4093624447;for(ze=0;ze<=31;ze++,Ke>>>=1)if(1&Ke&&Ne.dyn_ltree[2*ze]!==0)return 0;if(Ne.dyn_ltree[18]!==0||Ne.dyn_ltree[20]!==0||Ne.dyn_ltree[26]!==0)return 1;for(ze=32;ze<s;ze++)if(Ne.dyn_ltree[2*ze]!==0)return 1;return 0}(Ve)),it(Ve,Ve.l_desc),it(Ve,Ve.d_desc),Lt=function(Ne){var ze;for(Ue(Ne,Ne.dyn_ltree,Ne.l_desc.max_code),Ue(Ne,Ne.dyn_dtree,Ne.d_desc.max_code),it(Ne,Ne.bl_desc),ze=18;3<=ze&&Ne.bl_tree[2*E[ze]+1]===0;ze--);return Ne.opt_len+=3*(ze+1)+5+5+4,ze}(Ve),Ze=Ve.opt_len+3+7>>>3,(at=Ve.static_len+3+7>>>3)<=Ze&&(Ze=at)):Ze=at=gt+5,gt+4<=Ze&&He!==-1?Be(Ve,He,gt,dn):Ve.strategy===4||at===Ze?(re(Ve,2+(dn?1:0),3),et(Ve,I,O)):(re(Ve,4+(dn?1:0),3),function(Ne,ze,Ke,vt){var Ft;for(re(Ne,ze-257,5),re(Ne,Ke-1,5),re(Ne,vt-4,4),Ft=0;Ft<vt;Ft++)re(Ne,Ne.bl_tree[2*E[Ft]+1],3);ht(Ne,Ne.dyn_ltree,ze-1),ht(Ne,Ne.dyn_dtree,Ke-1)}(Ve,Ve.l_desc.max_code+1,Ve.d_desc.max_code+1,Lt+1),et(Ve,Ve.dyn_ltree,Ve.dyn_dtree)),ye(Ve),dn&&Te(Ve)},r._tr_tally=function(Ve,He,gt){return Ve.pending_buf[Ve.d_buf+2*Ve.last_lit]=He>>>8&255,Ve.pending_buf[Ve.d_buf+2*Ve.last_lit+1]=255&He,Ve.pending_buf[Ve.l_buf+Ve.last_lit]=255&gt,Ve.last_lit++,He===0?Ve.dyn_ltree[2*gt]++:(Ve.matches++,He--,Ve.dyn_ltree[2*(A[gt]+s+1)]++,Ve.dyn_dtree[2*D(He)]++),Ve.last_lit===Ve.lit_bufsize-1},r._tr_align=function(Ve){var He;re(Ve,2,3),le(Ve,256,I),(He=Ve).bi_valid===16?(F(He,He.bi_buf),He.bi_buf=0,He.bi_valid=0):8<=He.bi_valid&&(He.pending_buf[He.pending++]=255&He.bi_buf,He.bi_buf>>=8,He.bi_valid-=8)}},{"../utils/common":4}],16:[function(t,e,r){e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],17:[function(t,e,r){var n=t("three");n.OrbitControls=function(o,s){var c,l,v,x,w;s===void 0&&console.warn('THREE.OrbitControls: The second parameter "domElement" is now mandatory.'),s===document&&console.error('THREE.OrbitControls: "document" should not be used as the target "domElement". Please use "renderer.domElement" instead.'),this.object=o,this.domElement=s,this.enabled=!0,this.target=new n.Vector3,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!1,this.keyPanSpeed=7,this.autoRotate=!1,this.autoRotateSpeed=2,this.enableKeys=!0,this.keys={LEFT:37,UP:38,RIGHT:39,BOTTOM:40},this.mouseButtons={LEFT:n.MOUSE.ROTATE,MIDDLE:n.MOUSE.DOLLY,RIGHT:n.MOUSE.PAN},this.touches={ONE:n.TOUCH.ROTATE,TWO:n.TOUCH.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this.getPolarAngle=function(){return z.phi},this.getAzimuthalAngle=function(){return z.theta},this.saveState=function(){_.target0.copy(_.target),_.position0.copy(_.object.position),_.zoom0=_.object.zoom},this.resetStatusValue=function(){N=O.NONE},this.reset=function(){_.target.copy(_.target0),_.object.position.copy(_.position0),_.object.zoom=_.zoom0,_.object.updateProjectionMatrix(),_.dispatchEvent(b),_.update(),N=O.NONE},this.update=(c=new n.Vector3,l=new n.Quaternion().setFromUnitVectors(o.up,new n.Vector3(0,1,0)),v=l.clone().inverse(),x=new n.Vector3,w=new n.Quaternion,function(){var Et=_.object.position;return c.copy(Et).sub(_.target),c.applyQuaternion(l),z.setFromVector3(c),_.autoRotate&&N===O.NONE&&ke(2*Math.PI/60/60*_.autoRotateSpeed),_.enableDamping?(z.theta+=G.theta*_.dampingFactor,z.phi+=G.phi*_.dampingFactor):(z.theta+=G.theta,z.phi+=G.phi),z.theta=Math.max(_.minAzimuthAngle,Math.min(_.maxAzimuthAngle,z.theta)),z.phi=Math.max(_.minPolarAngle,Math.min(_.maxPolarAngle,z.phi)),z.makeSafe(),z.radius*=V,z.radius=Math.max(_.minDistance,Math.min(_.maxDistance,z.radius)),_.enableDamping===!0?_.target.addScaledVector(ne,_.dampingFactor):_.target.add(ne),c.setFromSpherical(z),c.applyQuaternion(v),Et.copy(_.target).add(c),_.object.lookAt(_.target),_.enableDamping===!0?(G.theta*=1-_.dampingFactor,G.phi*=1-_.dampingFactor,ne.multiplyScalar(1-_.dampingFactor)):(G.set(0,0,0),ne.set(0,0,0)),V=1,!(!(W||x.distanceToSquared(_.object.position)>A||8*(1-w.dot(_.object.quaternion))>A)||(_.dispatchEvent(b),x.copy(_.object.position),w.copy(_.object.quaternion),W=!1))}),this.dispose=function(){_.domElement.removeEventListener("contextmenu",Zt,!1),_.domElement.removeEventListener("mousedown",Ke,!1),_.domElement.removeEventListener("wheel",Ot,!1),_.domElement.removeEventListener("touchstart",Tn,!1),_.domElement.removeEventListener("touchend",$n,!1),_.domElement.removeEventListener("touchmove",on,!1),document.removeEventListener("mousemove",vt,!1),document.removeEventListener("mouseup",Ft,!1),_.domElement.removeEventListener("keydown",_t,!1)};var _=this,b={type:"change"},E={type:"start"},I={type:"end"},O={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6},N=O.NONE,A=1e-6,z=new n.Spherical,G=new n.Spherical,V=1,ne=new n.Vector3,W=!1,B=new n.Vector2,q=new n.Vector2,D=new n.Vector2,F=new n.Vector2,re=new n.Vector2,le=new n.Vector2,fe=new n.Vector2,me=new n.Vector2,ye=new n.Vector2;function Te(){return Math.pow(.95,_.zoomSpeed)}function ke(Et){G.theta-=Et}function Le(Et){G.phi-=Et}var et,it,Ue,ht=(et=new n.Vector3,function(Et,rn){et.setFromMatrixColumn(rn,0),et.multiplyScalar(-Et),ne.add(et)}),De=(it=new n.Vector3,function(Et,rn){_.screenSpacePanning===!0?it.setFromMatrixColumn(rn,1):(it.setFromMatrixColumn(rn,0),it.crossVectors(_.object.up,it)),it.multiplyScalar(Et),ne.add(it)}),Be=(Ue=new n.Vector3,function(Et,rn){var wt=_.domElement;if(_.object.isPerspectiveCamera){var Yn=_.object.position;Ue.copy(Yn).sub(_.target);var pt=Ue.length();pt*=Math.tan(_.object.fov/2*Math.PI/180),ht(2*Et*pt/wt.clientHeight,_.object.matrix),De(2*rn*pt/wt.clientHeight,_.object.matrix)}else _.object.isOrthographicCamera?(ht(Et*(_.object.right-_.object.left)/_.object.zoom/wt.clientWidth,_.object.matrix),De(rn*(_.object.top-_.object.bottom)/_.object.zoom/wt.clientHeight,_.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),_.enablePan=!1)});function Ve(Et){_.object.isPerspectiveCamera?V/=Et:_.object.isOrthographicCamera?(_.object.zoom=Math.max(_.minZoom,Math.min(_.maxZoom,_.object.zoom*Et)),_.object.updateProjectionMatrix(),W=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),_.enableZoom=!1)}function He(Et){B.set(Et.clientX,Et.clientY)}function gt(Et){F.set(Et.clientX,Et.clientY)}function dn(Et){if(Et.touches.length==1)B.set(Et.touches[0].pageX,Et.touches[0].pageY);else{var rn=.5*(Et.touches[0].pageX+Et.touches[1].pageX),wt=.5*(Et.touches[0].pageY+Et.touches[1].pageY);B.set(rn,wt)}}function Ze(Et){if(Et.touches.length==1)F.set(Et.touches[0].pageX,Et.touches[0].pageY);else{var rn=.5*(Et.touches[0].pageX+Et.touches[1].pageX),wt=.5*(Et.touches[0].pageY+Et.touches[1].pageY);F.set(rn,wt)}}function at(Et){var rn=Et.touches[0].pageX-Et.touches[1].pageX,wt=Et.touches[0].pageY-Et.touches[1].pageY,Yn=Math.sqrt(rn*rn+wt*wt);fe.set(0,Yn)}function Lt(Et){if(Et.touches.length==1)q.set(Et.touches[0].pageX,Et.touches[0].pageY);else{var rn=.5*(Et.touches[0].pageX+Et.touches[1].pageX),wt=.5*(Et.touches[0].pageY+Et.touches[1].pageY);q.set(rn,wt)}D.subVectors(q,B).multiplyScalar(_.rotateSpeed);var Yn=_.domElement;ke(2*Math.PI*D.x/Yn.clientHeight),Le(2*Math.PI*D.y/Yn.clientHeight),B.copy(q)}function Ne(Et){if(Et.touches.length==1)re.set(Et.touches[0].pageX,Et.touches[0].pageY);else{var rn=.5*(Et.touches[0].pageX+Et.touches[1].pageX),wt=.5*(Et.touches[0].pageY+Et.touches[1].pageY);re.set(rn,wt)}le.subVectors(re,F).multiplyScalar(_.panSpeed),Be(le.x,le.y),F.copy(re)}function ze(Et){var rn=Et.touches[0].pageX-Et.touches[1].pageX,wt=Et.touches[0].pageY-Et.touches[1].pageY,Yn=Math.sqrt(rn*rn+wt*wt);me.set(0,Yn),ye.set(0,Math.pow(me.y/fe.y,_.zoomSpeed)),Ve(ye.y),fe.copy(me)}function Ke(Et){if(_.enabled!==!1){switch(Et.preventDefault(),_.domElement.focus?_.domElement.focus():window.focus(),Et.button){case 0:switch(_.mouseButtons.LEFT){case n.MOUSE.ROTATE:if(Et.ctrlKey||Et.metaKey||Et.shiftKey){if(_.enablePan===!1)return;gt(Et),N=O.PAN}else{if(_.enableRotate===!1)return;He(Et),N=O.ROTATE}break;case n.MOUSE.PAN:if(Et.ctrlKey||Et.metaKey||Et.shiftKey){if(_.enableRotate===!1)return;He(Et),N=O.ROTATE}else{if(_.enablePan===!1)return;gt(Et),N=O.PAN}break;default:N=O.NONE}break;case 1:switch(_.mouseButtons.MIDDLE){case n.MOUSE.DOLLY:if(_.enableZoom===!1)return;rn=Et,fe.set(rn.clientX,rn.clientY),N=O.DOLLY;break;case n.MOUSE.PAN:if(_.enablePan===!1)return;gt(Et),N=O.PAN;break;default:N=O.NONE}break;case 2:switch(_.mouseButtons.RIGHT){case n.MOUSE.ROTATE:if(_.enableRotate===!1)return;He(Et),N=O.ROTATE;break;case n.MOUSE.PAN:if(_.enablePan===!1)return;gt(Et),N=O.PAN;break;default:N=O.NONE}}var rn;N!==O.NONE&&(document.addEventListener("mousemove",vt,!1),document.addEventListener("mouseup",Ft,!1),_.dispatchEvent(E))}}function vt(Et){var rn;if(_.enabled!==!1)switch(Et.preventDefault(),N){case O.ROTATE:if(_.enableRotate===!1)return;(function(wt){q.set(wt.clientX,wt.clientY),D.subVectors(q,B).multiplyScalar(_.rotateSpeed);var Yn=_.domElement;ke(2*Math.PI*D.x/Yn.clientHeight),Le(2*Math.PI*D.y/Yn.clientHeight),B.copy(q),_.update()})(Et);break;case O.DOLLY:if(_.enableZoom===!1)return;(function(wt){var Yn;me.set(wt.clientX,wt.clientY),ye.subVectors(me,fe),0<ye.y?Ve(Te()):ye.y<0&&(Yn=Te(),_.object.isPerspectiveCamera?V*=Yn:_.object.isOrthographicCamera?(_.object.zoom=Math.max(_.minZoom,Math.min(_.maxZoom,_.object.zoom/Yn)),_.object.updateProjectionMatrix(),W=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),_.enableZoom=!1)),fe.copy(me),_.update()})(Et);break;case O.PAN:if(_.enablePan===!1)return;rn=Et,re.set(rn.clientX,rn.clientY),le.subVectors(re,F).multiplyScalar(_.panSpeed),Be(le.x,le.y),F.copy(re),_.update()}}function Ft(Et){_.enabled!==!1&&(document.removeEventListener("mousemove",vt,!1),document.removeEventListener("mouseup",Ft,!1),_.dispatchEvent(I),N=O.NONE)}function Ot(Et){_.enabled===!1||_.enableZoom===!1||N!==O.NONE&&N!==O.ROTATE||(Et.preventDefault(),Et.stopPropagation(),_.dispatchEvent(E),function(rn){rn.deltaY<0?function(wt,Yn){if(_.object.isPerspectiveCamera)_n*=wt;else if(_.object.isOrthographicCamera){var pt=_.domElement.clientWidth,Fe=_.domElement.clientHeight,Ie=(_.object.near+_.object.far)/(_.object.near-_.object.far),ct=Yn.offsetX,Ht=Yn.offsetY,sn=new n.Vector3(ct/pt*2-1,-Ht/Fe*2+1,Ie);sn.applyMatrix4(_.object.projectionMatrixInverse);var yn=new n.Vector3(-1,-1,Ie),Dr=new n.Vector3(1,1,Ie);yn.applyMatrix4(_.object.projectionMatrixInverse),Dr.applyMatrix4(_.object.projectionMatrixInverse);var Kr=Math.max(_.minZoom,Math.min(_.maxZoom,1/wt)),ii=new n.Matrix4;ii.makeTranslation(-sn.x,-sn.y,0);var _n=new n.Matrix4().scale(new n.Vector3(1/Kr,1/Kr,1/Kr)),xn=new n.Matrix4;xn.makeTranslation(sn.x,sn.y,0);var jn=new n.Matrix4().multiply(xn).multiply(_n).multiply(ii);yn.applyMatrix4(jn),Dr.applyMatrix4(jn),_.object.left=yn.x,_.object.right=Dr.x,_.object.top=Dr.y,_.object.bottom=yn.y,_.object.zoom=1,_.object.updateProjectionMatrix(),W=!0}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),_.enableZoom=!1}(Te(),rn):0<rn.deltaY&&function(wt,Yn){if(_.object.isPerspectiveCamera)_n/=wt;else if(_.object.isOrthographicCamera){var pt=_.domElement.clientWidth,Fe=_.domElement.clientHeight,Ie=(_.object.near+_.object.far)/(_.object.near-_.object.far),ct=Yn.offsetX,Ht=Yn.offsetY,sn=new n.Vector3(ct/pt*2-1,-Ht/Fe*2+1,Ie);sn.applyMatrix4(_.object.projectionMatrixInverse);var yn=new n.Vector3(-1,-1,Ie),Dr=new n.Vector3(1,1,Ie);yn.applyMatrix4(_.object.projectionMatrixInverse),Dr.applyMatrix4(_.object.projectionMatrixInverse);var Kr=Math.max(_.minZoom,Math.min(_.maxZoom,wt)),ii=new n.Matrix4;ii.makeTranslation(-sn.x,-sn.y,0);var _n=new n.Matrix4().scale(new n.Vector3(1/Kr,1/Kr,1/Kr)),xn=new n.Matrix4;xn.makeTranslation(sn.x,sn.y,0);var jn=new n.Matrix4().multiply(xn).multiply(_n).multiply(ii);yn.applyMatrix4(jn),Dr.applyMatrix4(jn),_.object.left=yn.x,_.object.right=Dr.x,_.object.top=Dr.y,_.object.bottom=yn.y,_.object.zoom=1,_.object.updateProjectionMatrix(),W=!0}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),_.enableZoom=!1}(Te(),rn),_.update()}(Et),_.dispatchEvent(I))}function _t(Et){_.enabled!==!1&&_.enableKeys!==!1&&_.enablePan!==!1&&function(rn){var wt=!1;switch(rn.keyCode){case _.keys.UP:Be(0,_.keyPanSpeed),wt=!0;break;case _.keys.BOTTOM:Be(0,-_.keyPanSpeed),wt=!0;break;case _.keys.LEFT:Be(_.keyPanSpeed,0),wt=!0;break;case _.keys.RIGHT:Be(-_.keyPanSpeed,0),wt=!0}wt&&(rn.preventDefault(),_.update())}(Et)}function Tn(Et){if(_.enabled!==!1){switch(Et.preventDefault(),Et.touches.length){case 1:switch(_.touches.ONE){case n.TOUCH.ROTATE:if(_.enableRotate===!1)return;dn(Et),N=O.TOUCH_ROTATE;break;case n.TOUCH.PAN:if(_.enablePan===!1)return;Ze(Et),N=O.TOUCH_PAN;break;default:N=O.NONE}break;case 2:switch(_.touches.TWO){case n.TOUCH.DOLLY_PAN:if(_.enableZoom===!1&&_.enablePan===!1)return;wt=Et,_.enableZoom&&at(wt),_.enablePan&&Ze(wt),N=O.TOUCH_DOLLY_PAN;break;case n.TOUCH.DOLLY_ROTATE:if(_.enableZoom===!1&&_.enableRotate===!1)return;rn=Et,_.enableZoom&&at(rn),_.enableRotate&&dn(rn),N=O.TOUCH_DOLLY_ROTATE;break;default:N=O.NONE}break;default:N=O.NONE}var rn,wt;N!==O.NONE&&_.dispatchEvent(E)}}function on(Et){var rn,wt;if(_.enabled!==!1)switch(Et.preventDefault(),Et.stopPropagation(),N){case O.TOUCH_ROTATE:if(_.enableRotate===!1)return;Lt(Et),_.update();break;case O.TOUCH_PAN:if(_.enablePan===!1)return;Ne(Et),_.update();break;case O.TOUCH_DOLLY_PAN:if(_.enableZoom===!1&&_.enablePan===!1)return;wt=Et,_.enableZoom&&ze(wt),_.enablePan&&Ne(wt),_.update();break;case O.TOUCH_DOLLY_ROTATE:if(_.enableZoom===!1&&_.enableRotate===!1)return;rn=Et,_.enableZoom&&ze(rn),_.enableRotate&&Lt(rn),_.update();break;default:N=O.NONE}}function $n(Et){_.enabled!==!1&&(_.dispatchEvent(I),N=O.NONE)}function Zt(Et){_.enabled!==!1&&Et.preventDefault()}_.domElement.addEventListener("contextmenu",Zt,!1),_.domElement.addEventListener("mousedown",Ke,!1),_.domElement.addEventListener("wheel",Ot,!1),_.domElement.addEventListener("touchstart",Tn,!1),_.domElement.addEventListener("touchend",$n,!1),_.domElement.addEventListener("touchmove",on,!1),_.domElement.addEventListener("keydown",_t,!1),_.domElement.tabIndex===-1&&(_.domElement.tabIndex=0),this.update()},n.OrbitControls.prototype=Object.create(n.EventDispatcher.prototype),n.OrbitControls.prototype.constructor=n.OrbitControls,n.MapControls=function(o,s){n.OrbitControls.call(this,o,s),this.mouseButtons.LEFT=n.MOUSE.PAN,this.mouseButtons.RIGHT=n.MOUSE.ROTATE,this.touches.ONE=n.TOUCH.PAN,this.touches.TWO=n.TOUCH.DOLLY_ROTATE},n.MapControls.prototype=Object.create(n.EventDispatcher.prototype),n.MapControls.prototype.constructor=n.MapControls,r!==void 0&&(e!==void 0&&e.exports&&(r=e.exports={OrbitControls:n.OrbitControls,MapControls:n.MapControls}),r.OrbitControls=n.OrbitControls,r.MapControls=n.MapControls)},{three:19}],18:[function(t,e,r){(function(){var n,o,s,c=t!==void 0,l=this.THREE||c&&t("three");if(!l)throw new Error("MeshLine requires three.js");function v(){this.positions=[],this.previous=[],this.next=[],this.side=[],this.width=[],this.indices_array=[],this.uvs=[],this.counters=[],this.geometry=new l.BufferGeometry,this.widthCallback=null,this.matrixWorld=new l.Matrix4}function x(_,b,E,I,O){var N;if(_=_.subarray||_.slice?_:_.buffer,E=E.subarray||E.slice?E:E.buffer,_=b?_.subarray?_.subarray(b,O&&b+O):_.slice(b,O&&b+O):_,E.set)E.set(_,I);else for(N=0;N<_.length;N++)E[N+I]=_[N];return E}function w(_){l.ShaderMaterial.call(this,{uniforms:Object.assign({},l.UniformsLib.fog,{lineWidth:{value:1},map:{value:null},useMap:{value:0},alphaMap:{value:null},useAlphaMap:{value:0},color:{value:new l.Color(16777215)},opacity:{value:1},resolution:{value:new l.Vector2(1,1)},sizeAttenuation:{value:1},near:{value:1},far:{value:1},dashArray:{value:0},dashOffset:{value:0},dashRatio:{value:.5},useDash:{value:0},visibility:{value:1},alphaTest:{value:0},repeat:{value:new l.Vector2(1,1)}}),vertexShader:l.ShaderChunk.meshline_vert,fragmentShader:l.ShaderChunk.meshline_frag}),this.type="MeshLineMaterial",Object.defineProperties(this,{lineWidth:{enumerable:!0,get:function(){return this.uniforms.lineWidth.value},set:function(b){this.uniforms.lineWidth.value=b}},map:{enumerable:!0,get:function(){return this.uniforms.map.value},set:function(b){this.uniforms.map.value=b}},useMap:{enumerable:!0,get:function(){return this.uniforms.useMap.value},set:function(b){this.uniforms.useMap.value=b}},alphaMap:{enumerable:!0,get:function(){return this.uniforms.alphaMap.value},set:function(b){this.uniforms.alphaMap.value=b}},useAlphaMap:{enumerable:!0,get:function(){return this.uniforms.useAlphaMap.value},set:function(b){this.uniforms.useAlphaMap.value=b}},color:{enumerable:!0,get:function(){return this.uniforms.color.value},set:function(b){this.uniforms.color.value=b}},opacity:{enumerable:!0,get:function(){return this.uniforms.opacity.value},set:function(b){this.uniforms.opacity.value=b}},resolution:{enumerable:!0,get:function(){return this.uniforms.resolution.value},set:function(b){this.uniforms.resolution.value.copy(b)}},sizeAttenuation:{enumerable:!0,get:function(){return this.uniforms.sizeAttenuation.value},set:function(b){this.uniforms.sizeAttenuation.value=b}},near:{enumerable:!0,get:function(){return this.uniforms.near.value},set:function(b){this.uniforms.near.value=b}},far:{enumerable:!0,get:function(){return this.uniforms.far.value},set:function(b){this.uniforms.far.value=b}},dashArray:{enumerable:!0,get:function(){return this.uniforms.dashArray.value},set:function(b){this.uniforms.dashArray.value=b,this.useDash=b!==0?1:0}},dashOffset:{enumerable:!0,get:function(){return this.uniforms.dashOffset.value},set:function(b){this.uniforms.dashOffset.value=b}},dashRatio:{enumerable:!0,get:function(){return this.uniforms.dashRatio.value},set:function(b){this.uniforms.dashRatio.value=b}},useDash:{enumerable:!0,get:function(){return this.uniforms.useDash.value},set:function(b){this.uniforms.useDash.value=b}},visibility:{enumerable:!0,get:function(){return this.uniforms.visibility.value},set:function(b){this.uniforms.visibility.value=b}},alphaTest:{enumerable:!0,get:function(){return this.uniforms.alphaTest.value},set:function(b){this.uniforms.alphaTest.value=b}},repeat:{enumerable:!0,get:function(){return this.uniforms.repeat.value},set:function(b){this.uniforms.repeat.value.copy(b)}}}),this.setValues(_)}v.prototype.setMatrixWorld=function(_){this.matrixWorld=_},v.prototype.setGeometry=function(_,b){if(this.widthCallback=b,this.positions=[],this.counters=[],_ instanceof l.Geometry)for(var E=0;E<_.vertices.length;E++){var I=_.vertices[E];b=E/_.vertices.length,this.positions.push(I.x,I.y,I.z),this.positions.push(I.x,I.y,I.z),this.counters.push(b),this.counters.push(b)}if(l.BufferGeometry,_ instanceof Float32Array||_ instanceof Array)for(E=0;E<_.length;E+=3)b=E/_.length,this.positions.push(_[E],_[E+1],_[E+2]),this.positions.push(_[E],_[E+1],_[E+2]),this.counters.push(b),this.counters.push(b);this.process()},v.prototype.raycast=(n=new l.Matrix4,o=new l.Ray,s=new l.Sphere,function(_,b){var E=_.linePrecision,I=E*E,O=this.geometry;if(O.boundingSphere===null&&O.computeBoundingSphere(),s.copy(O.boundingSphere),s.applyMatrix4(this.matrixWorld),_.ray.intersectSphere(s)!==!1){n.getInverse(this.matrixWorld),o.copy(_.ray).applyMatrix4(n);var N=new l.Vector3,A=new l.Vector3,z=new l.Vector3,G=new l.Vector3,V=this instanceof l.LineSegments?2:1;if(O instanceof l.BufferGeometry){var ne=O.index,W=O.attributes;if(ne!==null)for(var B=ne.array,q=W.position.array,D=0,F=B.length-1;D<F;D+=V){var re=B[D],le=B[D+1];N.fromArray(q,3*re),A.fromArray(q,3*le),I<o.distanceSqToSegment(N,A,G,z)||(G.applyMatrix4(this.matrixWorld),(ye=_.ray.origin.distanceTo(G))<_.near||ye>_.far||b.push({distance:ye,point:z.clone().applyMatrix4(this.matrixWorld),index:D,face:null,faceIndex:null,object:this}))}else for(D=0,F=(q=W.position.array).length/3-1;D<F;D+=V)N.fromArray(q,3*D),A.fromArray(q,3*D+3),I<o.distanceSqToSegment(N,A,G,z)||(G.applyMatrix4(this.matrixWorld),(ye=_.ray.origin.distanceTo(G))<_.near||ye>_.far||b.push({distance:ye,point:z.clone().applyMatrix4(this.matrixWorld),index:D,face:null,faceIndex:null,object:this}))}else if(O instanceof l.Geometry){var fe=O.vertices,me=fe.length;for(D=0;D<me-1;D+=V){var ye;I<o.distanceSqToSegment(fe[D],fe[D+1],G,z)||(G.applyMatrix4(this.matrixWorld),(ye=_.ray.origin.distanceTo(G))<_.near||ye>_.far||b.push({distance:ye,point:z.clone().applyMatrix4(this.matrixWorld),index:D,face:null,faceIndex:null,object:this}))}}}}),v.prototype.compareV3=function(_,b){var E=6*_,I=6*b;return this.positions[E]===this.positions[I]&&this.positions[1+E]===this.positions[1+I]&&this.positions[2+E]===this.positions[2+I]},v.prototype.copyV3=function(_){var b=6*_;return[this.positions[b],this.positions[1+b],this.positions[2+b]]},v.prototype.process=function(){var _,b,E=this.positions.length/6;this.previous=[],this.next=[],this.side=[],this.width=[],this.indices_array=[],this.uvs=[];for(var I=0;I<E;I++)this.side.push(1),this.side.push(-1);for(I=0;I<E;I++)_=this.widthCallback?this.widthCallback(I/(E-1)):1,this.width.push(_),this.width.push(_);for(I=0;I<E;I++)this.uvs.push(I/(E-1),0),this.uvs.push(I/(E-1),1);for(b=this.compareV3(0,E-1)?this.copyV3(E-2):this.copyV3(0),this.previous.push(b[0],b[1],b[2]),this.previous.push(b[0],b[1],b[2]),I=0;I<E-1;I++)b=this.copyV3(I),this.previous.push(b[0],b[1],b[2]),this.previous.push(b[0],b[1],b[2]);for(I=1;I<E;I++)b=this.copyV3(I),this.next.push(b[0],b[1],b[2]),this.next.push(b[0],b[1],b[2]);for(b=this.compareV3(E-1,0)?this.copyV3(1):this.copyV3(E-1),this.next.push(b[0],b[1],b[2]),this.next.push(b[0],b[1],b[2]),I=0;I<E-1;I++){var O=2*I;this.indices_array.push(O,1+O,2+O),this.indices_array.push(2+O,1+O,3+O)}this.attributes?(this.attributes.position.copyArray(new Float32Array(this.positions)),this.attributes.position.needsUpdate=!0,this.attributes.previous.copyArray(new Float32Array(this.previous)),this.attributes.previous.needsUpdate=!0,this.attributes.next.copyArray(new Float32Array(this.next)),this.attributes.next.needsUpdate=!0,this.attributes.side.copyArray(new Float32Array(this.side)),this.attributes.side.needsUpdate=!0,this.attributes.width.copyArray(new Float32Array(this.width)),this.attributes.width.needsUpdate=!0,this.attributes.uv.copyArray(new Float32Array(this.uvs)),this.attributes.uv.needsUpdate=!0,this.attributes.index.copyArray(new Uint16Array(this.indices_array)),this.attributes.index.needsUpdate=!0):this.attributes={position:new l.BufferAttribute(new Float32Array(this.positions),3),previous:new l.BufferAttribute(new Float32Array(this.previous),3),next:new l.BufferAttribute(new Float32Array(this.next),3),side:new l.BufferAttribute(new Float32Array(this.side),1),width:new l.BufferAttribute(new Float32Array(this.width),1),uv:new l.BufferAttribute(new Float32Array(this.uvs),2),index:new l.BufferAttribute(new Uint16Array(this.indices_array),1),counters:new l.BufferAttribute(new Float32Array(this.counters),1)},this.geometry.setAttribute("position",this.attributes.position),this.geometry.setAttribute("previous",this.attributes.previous),this.geometry.setAttribute("next",this.attributes.next),this.geometry.setAttribute("side",this.attributes.side),this.geometry.setAttribute("width",this.attributes.width),this.geometry.setAttribute("uv",this.attributes.uv),this.geometry.setAttribute("counters",this.attributes.counters),this.geometry.setIndex(this.attributes.index)},v.prototype.advance=function(_){var b=this.attributes.position.array,E=this.attributes.previous.array,I=this.attributes.next.array,O=b.length;x(b,0,E,0,O),x(b,6,b,0,O-6),b[O-6]=_.x,b[O-5]=_.y,b[O-4]=_.z,b[O-3]=_.x,b[O-2]=_.y,b[O-1]=_.z,x(b,6,I,0,O-6),I[O-6]=_.x,I[O-5]=_.y,I[O-4]=_.z,I[O-3]=_.x,I[O-2]=_.y,I[O-1]=_.z,this.attributes.position.needsUpdate=!0,this.attributes.previous.needsUpdate=!0,this.attributes.next.needsUpdate=!0},l.ShaderChunk.meshline_vert=["",l.ShaderChunk.logdepthbuf_pars_vertex,l.ShaderChunk.fog_pars_vertex,"","attribute vec3 previous;","attribute vec3 next;","attribute float side;","attribute float width;","attribute float counters;","","uniform vec2 resolution;","uniform float lineWidth;","uniform vec3 color;","uniform float opacity;","uniform float sizeAttenuation;","","varying vec2 vUV;","varying vec4 vColor;","varying float vCounters;","","vec2 fix( vec4 i, float aspect ) {",""," vec2 res = i.xy / i.w;"," res.x *= aspect;"," vCounters = counters;"," return res;","","}","","void main() {",""," float aspect = resolution.x / resolution.y;",""," vColor = vec4( color, opacity );"," vUV = uv;",""," mat4 m = projectionMatrix * modelViewMatrix;"," vec4 finalPosition = m * vec4( position, 1.0 );"," vec4 prevPos = m * vec4( previous, 1.0 );"," vec4 nextPos = m * vec4( next, 1.0 );",""," vec2 currentP = fix( finalPosition, aspect );"," vec2 prevP = fix( prevPos, aspect );"," vec2 nextP = fix( nextPos, aspect );",""," float w = lineWidth * width;",""," vec2 dir;"," if( nextP == currentP ) dir = normalize( currentP - prevP );"," else if( prevP == currentP ) dir = normalize( nextP - currentP );"," else {"," vec2 dir1 = normalize( currentP - prevP );"," vec2 dir2 = normalize( nextP - currentP );"," dir = normalize( dir1 + dir2 );",""," vec2 perp = vec2( -dir1.y, dir1.x );"," vec2 miter = vec2( -dir.y, dir.x );"," //w = clamp( w / dot( miter, perp ), 0., 4. * lineWidth * width );",""," }",""," //vec2 normal = ( cross( vec3( dir, 0. ), vec3( 0., 0., 1. ) ) ).xy;"," vec4 normal = vec4( -dir.y, dir.x, 0., 1. );"," normal.xy *= .5 * w;"," normal *= projectionMatrix;"," if( sizeAttenuation == 0. ) {"," normal.xy *= finalPosition.w;"," normal.xy /= ( vec4( resolution, 0., 1. ) * projectionMatrix ).xy;"," }",""," finalPosition.xy += normal.xy * side;",""," gl_Position = finalPosition;","",l.ShaderChunk.logdepthbuf_vertex,l.ShaderChunk.fog_vertex&&" vec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );",l.ShaderChunk.fog_vertex,"}"].join(`
  2. `),l.ShaderChunk.meshline_frag=["",l.ShaderChunk.fog_pars_fragment,l.ShaderChunk.logdepthbuf_pars_fragment,"","uniform sampler2D map;","uniform sampler2D alphaMap;","uniform float useMap;","uniform float useAlphaMap;","uniform float useDash;","uniform float dashArray;","uniform float dashOffset;","uniform float dashRatio;","uniform float visibility;","uniform float alphaTest;","uniform vec2 repeat;","","varying vec2 vUV;","varying vec4 vColor;","varying float vCounters;","","void main() {","",l.ShaderChunk.logdepthbuf_fragment,""," vec4 c = vColor;"," if( useMap == 1. ) c *= texture2D( map, vUV * repeat );"," if( useAlphaMap == 1. ) c.a *= texture2D( alphaMap, vUV * repeat ).a;"," if( c.a < alphaTest ) discard;"," if( useDash == 1. ){"," c.a *= ceil(mod(vCounters + dashOffset, dashArray) - (dashArray * dashRatio));"," }"," gl_FragColor = c;"," gl_FragColor.a *= step(vCounters, visibility);","",l.ShaderChunk.fog_fragment,"}"].join(`
  3. `),((w.prototype=Object.create(l.ShaderMaterial.prototype)).constructor=w).prototype.isMeshLineMaterial=!0,w.prototype.copy=function(_){return l.ShaderMaterial.prototype.copy.call(this,_),this.lineWidth=_.lineWidth,this.map=_.map,this.useMap=_.useMap,this.alphaMap=_.alphaMap,this.useAlphaMap=_.useAlphaMap,this.color.copy(_.color),this.opacity=_.opacity,this.resolution.copy(_.resolution),this.sizeAttenuation=_.sizeAttenuation,this.near=_.near,this.far=_.far,this.dashArray.copy(_.dashArray),this.dashOffset.copy(_.dashOffset),this.dashRatio.copy(_.dashRatio),this.useDash=_.useDash,this.visibility=_.visibility,this.alphaTest=_.alphaTest,this.repeat.copy(_.repeat),this},r!==void 0?(e!==void 0&&e.exports&&(r=e.exports={MeshLine:v,MeshLineMaterial:w}),r.MeshLine=v,r.MeshLineMaterial=w):(this.MeshLine=v,this.MeshLineMaterial=w)}).call(this)},{three:19}],19:[function(t,e,r){var n,o;n=this,o=function(s){Number.EPSILON===void 0&&(Number.EPSILON=Math.pow(2,-52)),Number.isInteger===void 0&&(Number.isInteger=function(u){return typeof u=="number"&&isFinite(u)&&Math.floor(u)===u}),Math.sign===void 0&&(Math.sign=function(u){return u<0?-1:0<u?1:+u}),"name"in Function.prototype==0&&Object.defineProperty(Function.prototype,"name",{get:function(){return this.toString().match(/^\s*function\s*([^\(\s]*)/)[1]}}),Object.assign===void 0&&(Object.assign=function(u){if(u==null)throw new TypeError("Cannot convert undefined or null to object");for(var g=Object(u),C=1;C<arguments.length;C++){var L=arguments[C];if(L!=null)for(var K in L)Object.prototype.hasOwnProperty.call(L,K)&&(g[K]=L[K])}return g});var c=0,l=1,v=2,x=1,w=2,_=3,b=0,E=1,I=2,O=0,N=0,A=1,z=2,G=3,V=4,ne=5,W=100,B=101,q=102,D=103,F=104,re=200,le=201,fe=202,me=203,ye=204,Te=205,ke=206,Le=207,et=208,it=209,Ue=210,ht=0,De=1,Be=2,Ve=3,He=4,gt=5,dn=6,Ze=7,at=0,Lt=1,Ne=2,ze=0,Ke=1,vt=2,Ft=3,Ot=4,_t=5,Tn=301,on=302,$n=303,Zt=304,Et=305,rn=306,wt=307,Yn=1e3,pt=1001,Fe=1002,Ie=1003,ct=1004,Ht=1005,sn=1006,yn=1007,Dr=1008,Kr=1009,ii=1010,_n=1011,xn=1012,jn=1013,ln=1014,ar=1015,zr=1016,Jr=1017,bi=1018,hi=1019,wi=1020,Ca=1021,jt=1022,dt=1023,xt=1024,Nt=1025,Qt=dt,mn=1026,Un=1027,we=1028,En=1029,Kn=1030,er=1031,Hr=1032,Ir=1033,Ri=33776,Ti=33777,mi=33778,Li=33779,tr=35840,ha=35841,ti=35842,ua=35843,Va=36196,ns=37808,Xo=37809,qr=37810,ca=37811,va=37812,Ms=37813,rs=37814,Ai=37815,Na=37816,sl=37817,eo=37818,ja=37819,no=37820,yo=37821,Ra=2300,Ye=2301,$t=2400,ft=2401,Gt=2402,bn=3e3,sr=3001,Br=3007,Pr=3002,Mi=3003,vi=3004,Sa=3005,La=3006,Cs=3200,ko=3201,Co=0,gs=1,No=7680,wl=519,Ua=35044,Vs=35048;function jo(){}Object.assign(jo.prototype,{addEventListener:function(u,g){this._listeners===void 0&&(this._listeners={});var C=this._listeners;C[u]===void 0&&(C[u]=[]),C[u].indexOf(g)===-1&&C[u].push(g)},hasEventListener:function(u,g){if(this._listeners===void 0)return!1;var C=this._listeners;return C[u]!==void 0&&C[u].indexOf(g)!==-1},removeEventListener:function(u,g){if(this._listeners!==void 0){var C=this._listeners[u];if(C!==void 0){var L=C.indexOf(g);L!==-1&&C.splice(L,1)}}},dispatchEvent:function(u){if(this._listeners!==void 0){var g=this._listeners[u.type];if(g!==void 0){u.target=this;for(var C=g.slice(0),L=0,K=C.length;L<K;L++)C[L].call(this,u)}}}});for(var ys=[],Ol=0;Ol<256;Ol++)ys[Ol]=(Ol<16?"0":"")+Ol.toString(16);var is,Ta={DEG2RAD:Math.PI/180,RAD2DEG:180/Math.PI,generateUUID:function(){var u=4294967295*Math.random()|0,g=4294967295*Math.random()|0,C=4294967295*Math.random()|0,L=4294967295*Math.random()|0;return(ys[255&u]+ys[u>>8&255]+ys[u>>16&255]+ys[u>>24&255]+"-"+ys[255&g]+ys[g>>8&255]+"-"+ys[g>>16&15|64]+ys[g>>24&255]+"-"+ys[63&C|128]+ys[C>>8&255]+"-"+ys[C>>16&255]+ys[C>>24&255]+ys[255&L]+ys[L>>8&255]+ys[L>>16&255]+ys[L>>24&255]).toUpperCase()},clamp:function(u,g,C){return Math.max(g,Math.min(C,u))},euclideanModulo:function(u,g){return(u%g+g)%g},mapLinear:function(u,g,C,L,K){return L+(u-g)*(K-L)/(C-g)},lerp:function(u,g,C){return(1-C)*u+C*g},smoothstep:function(u,g,C){return u<=g?0:C<=u?1:(u=(u-g)/(C-g))*u*(3-2*u)},smootherstep:function(u,g,C){return u<=g?0:C<=u?1:(u=(u-g)/(C-g))*u*u*(u*(6*u-15)+10)},randInt:function(u,g){return u+Math.floor(Math.random()*(g-u+1))},randFloat:function(u,g){return u+Math.random()*(g-u)},randFloatSpread:function(u){return u*(.5-Math.random())},degToRad:function(u){return u*Ta.DEG2RAD},radToDeg:function(u){return u*Ta.RAD2DEG},isPowerOfTwo:function(u){return(u&u-1)==0&&u!==0},ceilPowerOfTwo:function(u){return Math.pow(2,Math.ceil(Math.log(u)/Math.LN2))},floorPowerOfTwo:function(u){return Math.pow(2,Math.floor(Math.log(u)/Math.LN2))},setQuaternionFromProperEuler:function(u,g,C,L,K){var ie=Math.cos,ce=Math.sin,ge=ie(C/2),Ee=ce(C/2),Ae=ie((g+L)/2),We=ce((g+L)/2),tt=ie((g-L)/2),ot=ce((g-L)/2),Oe=ie((L-g)/2),mt=ce((L-g)/2);K==="XYX"?u.set(ge*We,Ee*tt,Ee*ot,ge*Ae):K==="YZY"?u.set(Ee*ot,ge*We,Ee*tt,ge*Ae):K==="ZXZ"?u.set(Ee*tt,Ee*ot,ge*We,ge*Ae):K==="XZX"?u.set(ge*We,Ee*mt,Ee*Oe,ge*Ae):K==="YXY"?u.set(Ee*Oe,ge*We,Ee*mt,ge*Ae):K==="ZYZ"?u.set(Ee*mt,Ee*Oe,ge*We,ge*Ae):console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order.")}};function Lr(u,g){this.x=u||0,this.y=g||0}function Vo(){this.elements=[1,0,0,0,1,0,0,0,1],0<arguments.length&&console.error("THREE.Matrix3: the constructor no longer reads arguments. use .set() instead.")}Object.defineProperties(Lr.prototype,{width:{get:function(){return this.x},set:function(u){this.x=u}},height:{get:function(){return this.y},set:function(u){this.y=u}}}),Object.assign(Lr.prototype,{isVector2:!0,set:function(u,g){return this.x=u,this.y=g,this},setScalar:function(u){return this.x=u,this.y=u,this},setX:function(u){return this.x=u,this},setY:function(u){return this.y=u,this},setComponent:function(u,g){switch(u){case 0:this.x=g;break;case 1:this.y=g;break;default:throw new Error("index is out of range: "+u)}return this},getComponent:function(u){switch(u){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+u)}},clone:function(){return new this.constructor(this.x,this.y)},copy:function(u){return this.x=u.x,this.y=u.y,this},add:function(u,g){return g!==void 0?(console.warn("THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(u,g)):(this.x+=u.x,this.y+=u.y,this)},addScalar:function(u){return this.x+=u,this.y+=u,this},addVectors:function(u,g){return this.x=u.x+g.x,this.y=u.y+g.y,this},addScaledVector:function(u,g){return this.x+=u.x*g,this.y+=u.y*g,this},sub:function(u,g){return g!==void 0?(console.warn("THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(u,g)):(this.x-=u.x,this.y-=u.y,this)},subScalar:function(u){return this.x-=u,this.y-=u,this},subVectors:function(u,g){return this.x=u.x-g.x,this.y=u.y-g.y,this},multiply:function(u){return this.x*=u.x,this.y*=u.y,this},multiplyScalar:function(u){return this.x*=u,this.y*=u,this},divide:function(u){return this.x/=u.x,this.y/=u.y,this},divideScalar:function(u){return this.multiplyScalar(1/u)},applyMatrix3:function(u){var g=this.x,C=this.y,L=u.elements;return this.x=L[0]*g+L[3]*C+L[6],this.y=L[1]*g+L[4]*C+L[7],this},min:function(u){return this.x=Math.min(this.x,u.x),this.y=Math.min(this.y,u.y),this},max:function(u){return this.x=Math.max(this.x,u.x),this.y=Math.max(this.y,u.y),this},clamp:function(u,g){return this.x=Math.max(u.x,Math.min(g.x,this.x)),this.y=Math.max(u.y,Math.min(g.y,this.y)),this},clampScalar:function(u,g){return this.x=Math.max(u,Math.min(g,this.x)),this.y=Math.max(u,Math.min(g,this.y)),this},clampLength:function(u,g){var C=this.length();return this.divideScalar(C||1).multiplyScalar(Math.max(u,Math.min(g,C)))},floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},roundToZero:function(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this},negate:function(){return this.x=-this.x,this.y=-this.y,this},dot:function(u){return this.x*u.x+this.y*u.y},cross:function(u){return this.x*u.y-this.y*u.x},lengthSq:function(){return this.x*this.x+this.y*this.y},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},manhattanLength:function(){return Math.abs(this.x)+Math.abs(this.y)},normalize:function(){return this.divideScalar(this.length()||1)},angle:function(){var u=Math.atan2(this.y,this.x);return u<0&&(u+=2*Math.PI),u},distanceTo:function(u){return Math.sqrt(this.distanceToSquared(u))},distanceToSquared:function(u){var g=this.x-u.x,C=this.y-u.y;return g*g+C*C},manhattanDistanceTo:function(u){return Math.abs(this.x-u.x)+Math.abs(this.y-u.y)},setLength:function(u){return this.normalize().multiplyScalar(u)},lerp:function(u,g){return this.x+=(u.x-this.x)*g,this.y+=(u.y-this.y)*g,this},lerpVectors:function(u,g,C){return this.subVectors(g,u).multiplyScalar(C).add(u)},equals:function(u){return u.x===this.x&&u.y===this.y},fromArray:function(u,g){return g===void 0&&(g=0),this.x=u[g],this.y=u[g+1],this},toArray:function(u,g){return u===void 0&&(u=[]),g===void 0&&(g=0),u[g]=this.x,u[g+1]=this.y,u},fromBufferAttribute:function(u,g,C){return C!==void 0&&console.warn("THREE.Vector2: offset has been removed from .fromBufferAttribute()."),this.x=u.getX(g),this.y=u.getY(g),this},rotateAround:function(u,g){var C=Math.cos(g),L=Math.sin(g),K=this.x-u.x,ie=this.y-u.y;return this.x=K*C-ie*L+u.x,this.y=K*L+ie*C+u.y,this}}),Object.assign(Vo.prototype,{isMatrix3:!0,set:function(u,g,C,L,K,ie,ce,ge,Ee){var Ae=this.elements;return Ae[0]=u,Ae[1]=L,Ae[2]=ce,Ae[3]=g,Ae[4]=K,Ae[5]=ge,Ae[6]=C,Ae[7]=ie,Ae[8]=Ee,this},identity:function(){return this.set(1,0,0,0,1,0,0,0,1),this},clone:function(){return new this.constructor().fromArray(this.elements)},copy:function(u){var g=this.elements,C=u.elements;return g[0]=C[0],g[1]=C[1],g[2]=C[2],g[3]=C[3],g[4]=C[4],g[5]=C[5],g[6]=C[6],g[7]=C[7],g[8]=C[8],this},setFromMatrix4:function(u){var g=u.elements;return this.set(g[0],g[4],g[8],g[1],g[5],g[9],g[2],g[6],g[10]),this},multiply:function(u){return this.multiplyMatrices(this,u)},premultiply:function(u){return this.multiplyMatrices(u,this)},multiplyMatrices:function(u,g){var C=u.elements,L=g.elements,K=this.elements,ie=C[0],ce=C[3],ge=C[6],Ee=C[1],Ae=C[4],We=C[7],tt=C[2],ot=C[5],Oe=C[8],mt=L[0],Tt=L[3],At=L[6],nn=L[1],fn=L[4],An=L[7],zn=L[2],Dn=L[5],Qn=L[8];return K[0]=ie*mt+ce*nn+ge*zn,K[3]=ie*Tt+ce*fn+ge*Dn,K[6]=ie*At+ce*An+ge*Qn,K[1]=Ee*mt+Ae*nn+We*zn,K[4]=Ee*Tt+Ae*fn+We*Dn,K[7]=Ee*At+Ae*An+We*Qn,K[2]=tt*mt+ot*nn+Oe*zn,K[5]=tt*Tt+ot*fn+Oe*Dn,K[8]=tt*At+ot*An+Oe*Qn,this},multiplyScalar:function(u){var g=this.elements;return g[0]*=u,g[3]*=u,g[6]*=u,g[1]*=u,g[4]*=u,g[7]*=u,g[2]*=u,g[5]*=u,g[8]*=u,this},determinant:function(){var u=this.elements,g=u[0],C=u[1],L=u[2],K=u[3],ie=u[4],ce=u[5],ge=u[6],Ee=u[7],Ae=u[8];return g*ie*Ae-g*ce*Ee-C*K*Ae+C*ce*ge+L*K*Ee-L*ie*ge},getInverse:function(u,g){u&&u.isMatrix4&&console.error("THREE.Matrix3: .getInverse() no longer takes a Matrix4 argument.");var C=u.elements,L=this.elements,K=C[0],ie=C[1],ce=C[2],ge=C[3],Ee=C[4],Ae=C[5],We=C[6],tt=C[7],ot=C[8],Oe=ot*Ee-Ae*tt,mt=Ae*We-ot*ge,Tt=tt*ge-Ee*We,At=K*Oe+ie*mt+ce*Tt;if(At==0){var nn="THREE.Matrix3: .getInverse() can't invert matrix, determinant is 0";if(g===!0)throw new Error(nn);return console.warn(nn),this.identity()}var fn=1/At;return L[0]=Oe*fn,L[1]=(ce*tt-ot*ie)*fn,L[2]=(Ae*ie-ce*Ee)*fn,L[3]=mt*fn,L[4]=(ot*K-ce*We)*fn,L[5]=(ce*ge-Ae*K)*fn,L[6]=Tt*fn,L[7]=(ie*We-tt*K)*fn,L[8]=(Ee*K-ie*ge)*fn,this},transpose:function(){var u,g=this.elements;return u=g[1],g[1]=g[3],g[3]=u,u=g[2],g[2]=g[6],g[6]=u,u=g[5],g[5]=g[7],g[7]=u,this},getNormalMatrix:function(u){return this.setFromMatrix4(u).getInverse(this).transpose()},transposeIntoArray:function(u){var g=this.elements;return u[0]=g[0],u[1]=g[3],u[2]=g[6],u[3]=g[1],u[4]=g[4],u[5]=g[7],u[6]=g[2],u[7]=g[5],u[8]=g[8],this},setUvTransform:function(u,g,C,L,K,ie,ce){var ge=Math.cos(K),Ee=Math.sin(K);this.set(C*ge,C*Ee,-C*(ge*ie+Ee*ce)+ie+u,-L*Ee,L*ge,-L*(-Ee*ie+ge*ce)+ce+g,0,0,1)},scale:function(u,g){var C=this.elements;return C[0]*=u,C[3]*=u,C[6]*=u,C[1]*=g,C[4]*=g,C[7]*=g,this},rotate:function(u){var g=Math.cos(u),C=Math.sin(u),L=this.elements,K=L[0],ie=L[3],ce=L[6],ge=L[1],Ee=L[4],Ae=L[7];return L[0]=g*K+C*ge,L[3]=g*ie+C*Ee,L[6]=g*ce+C*Ae,L[1]=-C*K+g*ge,L[4]=-C*ie+g*Ee,L[7]=-C*ce+g*Ae,this},translate:function(u,g){var C=this.elements;return C[0]+=u*C[2],C[3]+=u*C[5],C[6]+=u*C[8],C[1]+=g*C[2],C[4]+=g*C[5],C[7]+=g*C[8],this},equals:function(u){for(var g=this.elements,C=u.elements,L=0;L<9;L++)if(g[L]!==C[L])return!1;return!0},fromArray:function(u,g){g===void 0&&(g=0);for(var C=0;C<9;C++)this.elements[C]=u[C+g];return this},toArray:function(u,g){u===void 0&&(u=[]),g===void 0&&(g=0);var C=this.elements;return u[g]=C[0],u[g+1]=C[1],u[g+2]=C[2],u[g+3]=C[3],u[g+4]=C[4],u[g+5]=C[5],u[g+6]=C[6],u[g+7]=C[7],u[g+8]=C[8],u}});var ll={getDataURL:function(u){var g;if(typeof HTMLCanvasElement=="undefined")return u.src;if(u instanceof HTMLCanvasElement)g=u;else{is===void 0&&(is=document.createElementNS("http://www.w3.org/1999/xhtml","canvas")),is.width=u.width,is.height=u.height;var C=is.getContext("2d");u instanceof ImageData?C.putImageData(u,0,0):C.drawImage(u,0,0,u.width,u.height),g=is}return 2048<g.width||2048<g.height?g.toDataURL("image/jpeg",.6):g.toDataURL("image/png")}},xu=0;function vo(u,g,C,L,K,ie,ce,ge,Ee,Ae){Object.defineProperty(this,"id",{value:xu++}),this.uuid=Ta.generateUUID(),this.name="",this.image=u!==void 0?u:vo.DEFAULT_IMAGE,this.mipmaps=[],this.mapping=g!==void 0?g:vo.DEFAULT_MAPPING,this.wrapS=C!==void 0?C:pt,this.wrapT=L!==void 0?L:pt,this.magFilter=K!==void 0?K:sn,this.minFilter=ie!==void 0?ie:Dr,this.anisotropy=Ee!==void 0?Ee:1,this.format=ce!==void 0?ce:dt,this.internalFormat=null,this.type=ge!==void 0?ge:Kr,this.offset=new Lr(0,0),this.repeat=new Lr(1,1),this.center=new Lr(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new Vo,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.encoding=Ae!==void 0?Ae:bn,this.version=0,this.onUpdate=null}function _o(u,g,C,L){this.x=u||0,this.y=g||0,this.z=C||0,this.w=L!==void 0?L:1}function Rs(u,g,C){this.width=u,this.height=g,this.scissor=new _o(0,0,u,g),this.scissorTest=!1,this.viewport=new _o(0,0,u,g),C=C||{},this.texture=new vo(void 0,C.mapping,C.wrapS,C.wrapT,C.magFilter,C.minFilter,C.format,C.type,C.anisotropy,C.encoding),this.texture.image={},this.texture.image.width=u,this.texture.image.height=g,this.texture.generateMipmaps=C.generateMipmaps!==void 0&&C.generateMipmaps,this.texture.minFilter=C.minFilter!==void 0?C.minFilter:sn,this.depthBuffer=C.depthBuffer===void 0||C.depthBuffer,this.stencilBuffer=C.stencilBuffer===void 0||C.stencilBuffer,this.depthTexture=C.depthTexture!==void 0?C.depthTexture:null}function Fl(u,g,C){Rs.call(this,u,g,C),this.samples=4}function Zo(u,g,C,L){this._x=u||0,this._y=g||0,this._z=C||0,this._w=L!==void 0?L:1}vo.DEFAULT_IMAGE=void 0,vo.DEFAULT_MAPPING=300,vo.prototype=Object.assign(Object.create(jo.prototype),{constructor:vo,isTexture:!0,updateMatrix:function(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)},clone:function(){return new this.constructor().copy(this)},copy:function(u){return this.name=u.name,this.image=u.image,this.mipmaps=u.mipmaps.slice(0),this.mapping=u.mapping,this.wrapS=u.wrapS,this.wrapT=u.wrapT,this.magFilter=u.magFilter,this.minFilter=u.minFilter,this.anisotropy=u.anisotropy,this.format=u.format,this.internalFormat=u.internalFormat,this.type=u.type,this.offset.copy(u.offset),this.repeat.copy(u.repeat),this.center.copy(u.center),this.rotation=u.rotation,this.matrixAutoUpdate=u.matrixAutoUpdate,this.matrix.copy(u.matrix),this.generateMipmaps=u.generateMipmaps,this.premultiplyAlpha=u.premultiplyAlpha,this.flipY=u.flipY,this.unpackAlignment=u.unpackAlignment,this.encoding=u.encoding,this},toJSON:function(u){var g=u===void 0||typeof u=="string";if(!g&&u.textures[this.uuid]!==void 0)return u.textures[this.uuid];var C={metadata:{version:4.5,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,mapping:this.mapping,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,type:this.type,encoding:this.encoding,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};if(this.image!==void 0){var L=this.image;if(L.uuid===void 0&&(L.uuid=Ta.generateUUID()),!g&&u.images[L.uuid]===void 0){var K;if(Array.isArray(L)){K=[];for(var ie=0,ce=L.length;ie<ce;ie++)K.push(ll.getDataURL(L[ie]))}else K=ll.getDataURL(L);u.images[L.uuid]={uuid:L.uuid,url:K}}C.image=L.uuid}return g||(u.textures[this.uuid]=C),C},dispose:function(){this.dispatchEvent({type:"dispose"})},transformUv:function(u){if(this.mapping!==300)return u;if(u.applyMatrix3(this.matrix),u.x<0||1<u.x)switch(this.wrapS){case Yn:u.x=u.x-Math.floor(u.x);break;case pt:u.x=u.x<0?0:1;break;case Fe:Math.abs(Math.floor(u.x)%2)===1?u.x=Math.ceil(u.x)-u.x:u.x=u.x-Math.floor(u.x)}if(u.y<0||1<u.y)switch(this.wrapT){case Yn:u.y=u.y-Math.floor(u.y);break;case pt:u.y=u.y<0?0:1;break;case Fe:Math.abs(Math.floor(u.y)%2)===1?u.y=Math.ceil(u.y)-u.y:u.y=u.y-Math.floor(u.y)}return this.flipY&&(u.y=1-u.y),u}}),Object.defineProperty(vo.prototype,"needsUpdate",{set:function(u){u===!0&&this.version++}}),Object.defineProperties(_o.prototype,{width:{get:function(){return this.z},set:function(u){this.z=u}},height:{get:function(){return this.w},set:function(u){this.w=u}}}),Object.assign(_o.prototype,{isVector4:!0,set:function(u,g,C,L){return this.x=u,this.y=g,this.z=C,this.w=L,this},setScalar:function(u){return this.x=u,this.y=u,this.z=u,this.w=u,this},setX:function(u){return this.x=u,this},setY:function(u){return this.y=u,this},setZ:function(u){return this.z=u,this},setW:function(u){return this.w=u,this},setComponent:function(u,g){switch(u){case 0:this.x=g;break;case 1:this.y=g;break;case 2:this.z=g;break;case 3:this.w=g;break;default:throw new Error("index is out of range: "+u)}return this},getComponent:function(u){switch(u){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+u)}},clone:function(){return new this.constructor(this.x,this.y,this.z,this.w)},copy:function(u){return this.x=u.x,this.y=u.y,this.z=u.z,this.w=u.w!==void 0?u.w:1,this},add:function(u,g){return g!==void 0?(console.warn("THREE.Vector4: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(u,g)):(this.x+=u.x,this.y+=u.y,this.z+=u.z,this.w+=u.w,this)},addScalar:function(u){return this.x+=u,this.y+=u,this.z+=u,this.w+=u,this},addVectors:function(u,g){return this.x=u.x+g.x,this.y=u.y+g.y,this.z=u.z+g.z,this.w=u.w+g.w,this},addScaledVector:function(u,g){return this.x+=u.x*g,this.y+=u.y*g,this.z+=u.z*g,this.w+=u.w*g,this},sub:function(u,g){return g!==void 0?(console.warn("THREE.Vector4: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(u,g)):(this.x-=u.x,this.y-=u.y,this.z-=u.z,this.w-=u.w,this)},subScalar:function(u){return this.x-=u,this.y-=u,this.z-=u,this.w-=u,this},subVectors:function(u,g){return this.x=u.x-g.x,this.y=u.y-g.y,this.z=u.z-g.z,this.w=u.w-g.w,this},multiplyScalar:function(u){return this.x*=u,this.y*=u,this.z*=u,this.w*=u,this},applyMatrix4:function(u){var g=this.x,C=this.y,L=this.z,K=this.w,ie=u.elements;return this.x=ie[0]*g+ie[4]*C+ie[8]*L+ie[12]*K,this.y=ie[1]*g+ie[5]*C+ie[9]*L+ie[13]*K,this.z=ie[2]*g+ie[6]*C+ie[10]*L+ie[14]*K,this.w=ie[3]*g+ie[7]*C+ie[11]*L+ie[15]*K,this},divideScalar:function(u){return this.multiplyScalar(1/u)},setAxisAngleFromQuaternion:function(u){this.w=2*Math.acos(u.w);var g=Math.sqrt(1-u.w*u.w);return g<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=u.x/g,this.y=u.y/g,this.z=u.z/g),this},setAxisAngleFromRotationMatrix:function(u){var g,C,L,K,ie=u.elements,ce=ie[0],ge=ie[4],Ee=ie[8],Ae=ie[1],We=ie[5],tt=ie[9],ot=ie[2],Oe=ie[6],mt=ie[10];if(Math.abs(ge-Ae)<.01&&Math.abs(Ee-ot)<.01&&Math.abs(tt-Oe)<.01){if(Math.abs(ge+Ae)<.1&&Math.abs(Ee+ot)<.1&&Math.abs(tt+Oe)<.1&&Math.abs(ce+We+mt-3)<.1)return this.set(1,0,0,0),this;g=Math.PI;var Tt=(ce+1)/2,At=(We+1)/2,nn=(mt+1)/2,fn=(ge+Ae)/4,An=(Ee+ot)/4,zn=(tt+Oe)/4;return At<Tt&&nn<Tt?K=Tt<.01?(C=0,L=.707106781):(L=fn/(C=Math.sqrt(Tt)),An/C):nn<At?K=At<.01?(L=0,C=.707106781):(C=fn/(L=Math.sqrt(At)),zn/L):nn<.01?(L=C=.707106781,K=0):(C=An/(K=Math.sqrt(nn)),L=zn/K),this.set(C,L,K,g),this}var Dn=Math.sqrt((Oe-tt)*(Oe-tt)+(Ee-ot)*(Ee-ot)+(Ae-ge)*(Ae-ge));return Math.abs(Dn)<.001&&(Dn=1),this.x=(Oe-tt)/Dn,this.y=(Ee-ot)/Dn,this.z=(Ae-ge)/Dn,this.w=Math.acos((ce+We+mt-1)/2),this},min:function(u){return this.x=Math.min(this.x,u.x),this.y=Math.min(this.y,u.y),this.z=Math.min(this.z,u.z),this.w=Math.min(this.w,u.w),this},max:function(u){return this.x=Math.max(this.x,u.x),this.y=Math.max(this.y,u.y),this.z=Math.max(this.z,u.z),this.w=Math.max(this.w,u.w),this},clamp:function(u,g){return this.x=Math.max(u.x,Math.min(g.x,this.x)),this.y=Math.max(u.y,Math.min(g.y,this.y)),this.z=Math.max(u.z,Math.min(g.z,this.z)),this.w=Math.max(u.w,Math.min(g.w,this.w)),this},clampScalar:function(u,g){return this.x=Math.max(u,Math.min(g,this.x)),this.y=Math.max(u,Math.min(g,this.y)),this.z=Math.max(u,Math.min(g,this.z)),this.w=Math.max(u,Math.min(g,this.w)),this},clampLength:function(u,g){var C=this.length();return this.divideScalar(C||1).multiplyScalar(Math.max(u,Math.min(g,C)))},floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this},roundToZero:function(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this.w=this.w<0?Math.ceil(this.w):Math.floor(this.w),this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this},dot:function(u){return this.x*u.x+this.y*u.y+this.z*u.z+this.w*u.w},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)},manhattanLength:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)},normalize:function(){return this.divideScalar(this.length()||1)},setLength:function(u){return this.normalize().multiplyScalar(u)},lerp:function(u,g){return this.x+=(u.x-this.x)*g,this.y+=(u.y-this.y)*g,this.z+=(u.z-this.z)*g,this.w+=(u.w-this.w)*g,this},lerpVectors:function(u,g,C){return this.subVectors(g,u).multiplyScalar(C).add(u)},equals:function(u){return u.x===this.x&&u.y===this.y&&u.z===this.z&&u.w===this.w},fromArray:function(u,g){return g===void 0&&(g=0),this.x=u[g],this.y=u[g+1],this.z=u[g+2],this.w=u[g+3],this},toArray:function(u,g){return u===void 0&&(u=[]),g===void 0&&(g=0),u[g]=this.x,u[g+1]=this.y,u[g+2]=this.z,u[g+3]=this.w,u},fromBufferAttribute:function(u,g,C){return C!==void 0&&console.warn("THREE.Vector4: offset has been removed from .fromBufferAttribute()."),this.x=u.getX(g),this.y=u.getY(g),this.z=u.getZ(g),this.w=u.getW(g),this}}),Rs.prototype=Object.assign(Object.create(jo.prototype),{constructor:Rs,isWebGLRenderTarget:!0,setSize:function(u,g){this.width===u&&this.height===g||(this.width=u,this.height=g,this.texture.image.width=u,this.texture.image.height=g,this.dispose()),this.viewport.set(0,0,u,g),this.scissor.set(0,0,u,g)},clone:function(){return new this.constructor().copy(this)},copy:function(u){return this.width=u.width,this.height=u.height,this.viewport.copy(u.viewport),this.texture=u.texture.clone(),this.depthBuffer=u.depthBuffer,this.stencilBuffer=u.stencilBuffer,this.depthTexture=u.depthTexture,this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),Fl.prototype=Object.assign(Object.create(Rs.prototype),{constructor:Fl,isWebGLMultisampleRenderTarget:!0,copy:function(u){return Rs.prototype.copy.call(this,u),this.samples=u.samples,this}}),Object.assign(Zo,{slerp:function(u,g,C,L){return C.copy(u).slerp(g,L)},slerpFlat:function(u,g,C,L,K,ie,ce){var ge=C[L+0],Ee=C[L+1],Ae=C[L+2],We=C[L+3],tt=K[ie+0],ot=K[ie+1],Oe=K[ie+2],mt=K[ie+3];if(We!==mt||ge!==tt||Ee!==ot||Ae!==Oe){var Tt=1-ce,At=ge*tt+Ee*ot+Ae*Oe+We*mt,nn=0<=At?1:-1,fn=1-At*At;if(fn>Number.EPSILON){var An=Math.sqrt(fn),zn=Math.atan2(An,At*nn);Tt=Math.sin(Tt*zn)/An,ce=Math.sin(ce*zn)/An}var Dn=ce*nn;if(ge=ge*Tt+tt*Dn,Ee=Ee*Tt+ot*Dn,Ae=Ae*Tt+Oe*Dn,We=We*Tt+mt*Dn,Tt===1-ce){var Qn=1/Math.sqrt(ge*ge+Ee*Ee+Ae*Ae+We*We);ge*=Qn,Ee*=Qn,Ae*=Qn,We*=Qn}}u[g]=ge,u[g+1]=Ee,u[g+2]=Ae,u[g+3]=We}}),Object.defineProperties(Zo.prototype,{x:{get:function(){return this._x},set:function(u){this._x=u,this._onChangeCallback()}},y:{get:function(){return this._y},set:function(u){this._y=u,this._onChangeCallback()}},z:{get:function(){return this._z},set:function(u){this._z=u,this._onChangeCallback()}},w:{get:function(){return this._w},set:function(u){this._w=u,this._onChangeCallback()}}}),Object.assign(Zo.prototype,{isQuaternion:!0,set:function(u,g,C,L){return this._x=u,this._y=g,this._z=C,this._w=L,this._onChangeCallback(),this},clone:function(){return new this.constructor(this._x,this._y,this._z,this._w)},copy:function(u){return this._x=u.x,this._y=u.y,this._z=u.z,this._w=u.w,this._onChangeCallback(),this},setFromEuler:function(u,g){if(!u||!u.isEuler)throw new Error("THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.");var C=u._x,L=u._y,K=u._z,ie=u.order,ce=Math.cos,ge=Math.sin,Ee=ce(C/2),Ae=ce(L/2),We=ce(K/2),tt=ge(C/2),ot=ge(L/2),Oe=ge(K/2);return ie==="XYZ"?(this._x=tt*Ae*We+Ee*ot*Oe,this._y=Ee*ot*We-tt*Ae*Oe,this._z=Ee*Ae*Oe+tt*ot*We,this._w=Ee*Ae*We-tt*ot*Oe):ie==="YXZ"?(this._x=tt*Ae*We+Ee*ot*Oe,this._y=Ee*ot*We-tt*Ae*Oe,this._z=Ee*Ae*Oe-tt*ot*We,this._w=Ee*Ae*We+tt*ot*Oe):ie==="ZXY"?(this._x=tt*Ae*We-Ee*ot*Oe,this._y=Ee*ot*We+tt*Ae*Oe,this._z=Ee*Ae*Oe+tt*ot*We,this._w=Ee*Ae*We-tt*ot*Oe):ie==="ZYX"?(this._x=tt*Ae*We-Ee*ot*Oe,this._y=Ee*ot*We+tt*Ae*Oe,this._z=Ee*Ae*Oe-tt*ot*We,this._w=Ee*Ae*We+tt*ot*Oe):ie==="YZX"?(this._x=tt*Ae*We+Ee*ot*Oe,this._y=Ee*ot*We+tt*Ae*Oe,this._z=Ee*Ae*Oe-tt*ot*We,this._w=Ee*Ae*We-tt*ot*Oe):ie==="XZY"&&(this._x=tt*Ae*We-Ee*ot*Oe,this._y=Ee*ot*We-tt*Ae*Oe,this._z=Ee*Ae*Oe+tt*ot*We,this._w=Ee*Ae*We+tt*ot*Oe),g!==!1&&this._onChangeCallback(),this},setFromAxisAngle:function(u,g){var C=g/2,L=Math.sin(C);return this._x=u.x*L,this._y=u.y*L,this._z=u.z*L,this._w=Math.cos(C),this._onChangeCallback(),this},setFromRotationMatrix:function(u){var g,C=u.elements,L=C[0],K=C[4],ie=C[8],ce=C[1],ge=C[5],Ee=C[9],Ae=C[2],We=C[6],tt=C[10],ot=L+ge+tt;return 0<ot?(g=.5/Math.sqrt(ot+1),this._w=.25/g,this._x=(We-Ee)*g,this._y=(ie-Ae)*g,this._z=(ce-K)*g):ge<L&&tt<L?(g=2*Math.sqrt(1+L-ge-tt),this._w=(We-Ee)/g,this._x=.25*g,this._y=(K+ce)/g,this._z=(ie+Ae)/g):tt<ge?(g=2*Math.sqrt(1+ge-L-tt),this._w=(ie-Ae)/g,this._x=(K+ce)/g,this._y=.25*g,this._z=(Ee+We)/g):(g=2*Math.sqrt(1+tt-L-ge),this._w=(ce-K)/g,this._x=(ie+Ae)/g,this._y=(Ee+We)/g,this._z=.25*g),this._onChangeCallback(),this},setFromUnitVectors:function(u,g){var C=u.dot(g)+1;return C<1e-6?(C=0,Math.abs(u.x)>Math.abs(u.z)?(this._x=-u.y,this._y=u.x,this._z=0):(this._x=0,this._y=-u.z,this._z=u.y)):(this._x=u.y*g.z-u.z*g.y,this._y=u.z*g.x-u.x*g.z,this._z=u.x*g.y-u.y*g.x),this._w=C,this.normalize()},angleTo:function(u){return 2*Math.acos(Math.abs(Ta.clamp(this.dot(u),-1,1)))},rotateTowards:function(u,g){var C=this.angleTo(u);if(C===0)return this;var L=Math.min(1,g/C);return this.slerp(u,L),this},inverse:function(){return this.conjugate()},conjugate:function(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this},dot:function(u){return this._x*u._x+this._y*u._y+this._z*u._z+this._w*u._w},lengthSq:function(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w},length:function(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)},normalize:function(){var u=this.length();return u===0?(this._x=0,this._y=0,this._z=0,this._w=1):(u=1/u,this._x=this._x*u,this._y=this._y*u,this._z=this._z*u,this._w=this._w*u),this._onChangeCallback(),this},multiply:function(u,g){return g!==void 0?(console.warn("THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead."),this.multiplyQuaternions(u,g)):this.multiplyQuaternions(this,u)},premultiply:function(u){return this.multiplyQuaternions(u,this)},multiplyQuaternions:function(u,g){var C=u._x,L=u._y,K=u._z,ie=u._w,ce=g._x,ge=g._y,Ee=g._z,Ae=g._w;return this._x=C*Ae+ie*ce+L*Ee-K*ge,this._y=L*Ae+ie*ge+K*ce-C*Ee,this._z=K*Ae+ie*Ee+C*ge-L*ce,this._w=ie*Ae-C*ce-L*ge-K*Ee,this._onChangeCallback(),this},slerp:function(u,g){if(g===0)return this;if(g===1)return this.copy(u);var C=this._x,L=this._y,K=this._z,ie=this._w,ce=ie*u._w+C*u._x+L*u._y+K*u._z;if(ce<0?(this._w=-u._w,this._x=-u._x,this._y=-u._y,this._z=-u._z,ce=-ce):this.copy(u),1<=ce)return this._w=ie,this._x=C,this._y=L,this._z=K,this;var ge=1-ce*ce;if(ge<=Number.EPSILON){var Ee=1-g;return this._w=Ee*ie+g*this._w,this._x=Ee*C+g*this._x,this._y=Ee*L+g*this._y,this._z=Ee*K+g*this._z,this.normalize(),this._onChangeCallback(),this}var Ae=Math.sqrt(ge),We=Math.atan2(Ae,ce),tt=Math.sin((1-g)*We)/Ae,ot=Math.sin(g*We)/Ae;return this._w=ie*tt+this._w*ot,this._x=C*tt+this._x*ot,this._y=L*tt+this._y*ot,this._z=K*tt+this._z*ot,this._onChangeCallback(),this},equals:function(u){return u._x===this._x&&u._y===this._y&&u._z===this._z&&u._w===this._w},fromArray:function(u,g){return g===void 0&&(g=0),this._x=u[g],this._y=u[g+1],this._z=u[g+2],this._w=u[g+3],this._onChangeCallback(),this},toArray:function(u,g){return u===void 0&&(u=[]),g===void 0&&(g=0),u[g]=this._x,u[g+1]=this._y,u[g+2]=this._z,u[g+3]=this._w,u},_onChange:function(u){return this._onChangeCallback=u,this},_onChangeCallback:function(){}});var ql=new Kt,Al=new Zo;function Kt(u,g,C){this.x=u||0,this.y=g||0,this.z=C||0}Object.assign(Kt.prototype,{isVector3:!0,set:function(u,g,C){return this.x=u,this.y=g,this.z=C,this},setScalar:function(u){return this.x=u,this.y=u,this.z=u,this},setX:function(u){return this.x=u,this},setY:function(u){return this.y=u,this},setZ:function(u){return this.z=u,this},setComponent:function(u,g){switch(u){case 0:this.x=g;break;case 1:this.y=g;break;case 2:this.z=g;break;default:throw new Error("index is out of range: "+u)}return this},getComponent:function(u){switch(u){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+u)}},clone:function(){return new this.constructor(this.x,this.y,this.z)},copy:function(u){return this.x=u.x,this.y=u.y,this.z=u.z,this},add:function(u,g){return g!==void 0?(console.warn("THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(u,g)):(this.x+=u.x,this.y+=u.y,this.z+=u.z,this)},addScalar:function(u){return this.x+=u,this.y+=u,this.z+=u,this},addVectors:function(u,g){return this.x=u.x+g.x,this.y=u.y+g.y,this.z=u.z+g.z,this},addScaledVector:function(u,g){return this.x+=u.x*g,this.y+=u.y*g,this.z+=u.z*g,this},sub:function(u,g){return g!==void 0?(console.warn("THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(u,g)):(this.x-=u.x,this.y-=u.y,this.z-=u.z,this)},subScalar:function(u){return this.x-=u,this.y-=u,this.z-=u,this},subVectors:function(u,g){return this.x=u.x-g.x,this.y=u.y-g.y,this.z=u.z-g.z,this},multiply:function(u,g){return g!==void 0?(console.warn("THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead."),this.multiplyVectors(u,g)):(this.x*=u.x,this.y*=u.y,this.z*=u.z,this)},multiplyScalar:function(u){return this.x*=u,this.y*=u,this.z*=u,this},multiplyVectors:function(u,g){return this.x=u.x*g.x,this.y=u.y*g.y,this.z=u.z*g.z,this},applyEuler:function(u){return u&&u.isEuler||console.error("THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order."),this.applyQuaternion(Al.setFromEuler(u))},applyAxisAngle:function(u,g){return this.applyQuaternion(Al.setFromAxisAngle(u,g))},applyMatrix3:function(u){var g=this.x,C=this.y,L=this.z,K=u.elements;return this.x=K[0]*g+K[3]*C+K[6]*L,this.y=K[1]*g+K[4]*C+K[7]*L,this.z=K[2]*g+K[5]*C+K[8]*L,this},applyNormalMatrix:function(u){return this.applyMatrix3(u).normalize()},applyMatrix4:function(u){var g=this.x,C=this.y,L=this.z,K=u.elements,ie=1/(K[3]*g+K[7]*C+K[11]*L+K[15]);return this.x=(K[0]*g+K[4]*C+K[8]*L+K[12])*ie,this.y=(K[1]*g+K[5]*C+K[9]*L+K[13])*ie,this.z=(K[2]*g+K[6]*C+K[10]*L+K[14])*ie,this},applyQuaternion:function(u){var g=this.x,C=this.y,L=this.z,K=u.x,ie=u.y,ce=u.z,ge=u.w,Ee=ge*g+ie*L-ce*C,Ae=ge*C+ce*g-K*L,We=ge*L+K*C-ie*g,tt=-K*g-ie*C-ce*L;return this.x=Ee*ge+tt*-K+Ae*-ce-We*-ie,this.y=Ae*ge+tt*-ie+We*-K-Ee*-ce,this.z=We*ge+tt*-ce+Ee*-ie-Ae*-K,this},project:function(u){return this.applyMatrix4(u.matrixWorldInverse).applyMatrix4(u.projectionMatrix)},unproject:function(u){return this.applyMatrix4(u.projectionMatrixInverse).applyMatrix4(u.matrixWorld)},transformDirection:function(u){var g=this.x,C=this.y,L=this.z,K=u.elements;return this.x=K[0]*g+K[4]*C+K[8]*L,this.y=K[1]*g+K[5]*C+K[9]*L,this.z=K[2]*g+K[6]*C+K[10]*L,this.normalize()},divide:function(u){return this.x/=u.x,this.y/=u.y,this.z/=u.z,this},divideScalar:function(u){return this.multiplyScalar(1/u)},min:function(u){return this.x=Math.min(this.x,u.x),this.y=Math.min(this.y,u.y),this.z=Math.min(this.z,u.z),this},max:function(u){return this.x=Math.max(this.x,u.x),this.y=Math.max(this.y,u.y),this.z=Math.max(this.z,u.z),this},clamp:function(u,g){return this.x=Math.max(u.x,Math.min(g.x,this.x)),this.y=Math.max(u.y,Math.min(g.y,this.y)),this.z=Math.max(u.z,Math.min(g.z,this.z)),this},clampScalar:function(u,g){return this.x=Math.max(u,Math.min(g,this.x)),this.y=Math.max(u,Math.min(g,this.y)),this.z=Math.max(u,Math.min(g,this.z)),this},clampLength:function(u,g){var C=this.length();return this.divideScalar(C||1).multiplyScalar(Math.max(u,Math.min(g,C)))},floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this},roundToZero:function(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},dot:function(u){return this.x*u.x+this.y*u.y+this.z*u.z},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)},manhattanLength:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)},normalize:function(){return this.divideScalar(this.length()||1)},setLength:function(u){return this.normalize().multiplyScalar(u)},lerp:function(u,g){return this.x+=(u.x-this.x)*g,this.y+=(u.y-this.y)*g,this.z+=(u.z-this.z)*g,this},lerpVectors:function(u,g,C){return this.subVectors(g,u).multiplyScalar(C).add(u)},cross:function(u,g){return g!==void 0?(console.warn("THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead."),this.crossVectors(u,g)):this.crossVectors(this,u)},crossVectors:function(u,g){var C=u.x,L=u.y,K=u.z,ie=g.x,ce=g.y,ge=g.z;return this.x=L*ge-K*ce,this.y=K*ie-C*ge,this.z=C*ce-L*ie,this},projectOnVector:function(u){var g=u.lengthSq();if(g===0)return this.set(0,0,0);var C=u.dot(this)/g;return this.copy(u).multiplyScalar(C)},projectOnPlane:function(u){return ql.copy(this).projectOnVector(u),this.sub(ql)},reflect:function(u){return this.sub(ql.copy(u).multiplyScalar(2*this.dot(u)))},angleTo:function(u){var g=Math.sqrt(this.lengthSq()*u.lengthSq());if(g===0)return Math.PI/2;var C=this.dot(u)/g;return Math.acos(Ta.clamp(C,-1,1))},distanceTo:function(u){return Math.sqrt(this.distanceToSquared(u))},distanceToSquared:function(u){var g=this.x-u.x,C=this.y-u.y,L=this.z-u.z;return g*g+C*C+L*L},manhattanDistanceTo:function(u){return Math.abs(this.x-u.x)+Math.abs(this.y-u.y)+Math.abs(this.z-u.z)},setFromSpherical:function(u){return this.setFromSphericalCoords(u.radius,u.phi,u.theta)},setFromSphericalCoords:function(u,g,C){var L=Math.sin(g)*u;return this.x=L*Math.sin(C),this.y=Math.cos(g)*u,this.z=L*Math.cos(C),this},setFromCylindrical:function(u){return this.setFromCylindricalCoords(u.radius,u.theta,u.y)},setFromCylindricalCoords:function(u,g,C){return this.x=u*Math.sin(g),this.y=C,this.z=u*Math.cos(g),this},setFromMatrixPosition:function(u){var g=u.elements;return this.x=g[12],this.y=g[13],this.z=g[14],this},setFromMatrixScale:function(u){var g=this.setFromMatrixColumn(u,0).length(),C=this.setFromMatrixColumn(u,1).length(),L=this.setFromMatrixColumn(u,2).length();return this.x=g,this.y=C,this.z=L,this},setFromMatrixColumn:function(u,g){return this.fromArray(u.elements,4*g)},setFromMatrix3Column:function(u,g){return this.fromArray(u.elements,3*g)},equals:function(u){return u.x===this.x&&u.y===this.y&&u.z===this.z},fromArray:function(u,g){return g===void 0&&(g=0),this.x=u[g],this.y=u[g+1],this.z=u[g+2],this},toArray:function(u,g){return u===void 0&&(u=[]),g===void 0&&(g=0),u[g]=this.x,u[g+1]=this.y,u[g+2]=this.z,u},fromBufferAttribute:function(u,g,C){return C!==void 0&&console.warn("THREE.Vector3: offset has been removed from .fromBufferAttribute()."),this.x=u.getX(g),this.y=u.getY(g),this.z=u.getZ(g),this}});var Ml=new Kt,rr=new Ki,to=new Kt(0,0,0),ho=new Kt(1,1,1),xa=new Kt,Ea=new Kt,ao=new Kt;function Ki(){this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],0<arguments.length&&console.error("THREE.Matrix4: the constructor no longer reads arguments. use .set() instead.")}Object.assign(Ki.prototype,{isMatrix4:!0,set:function(u,g,C,L,K,ie,ce,ge,Ee,Ae,We,tt,ot,Oe,mt,Tt){var At=this.elements;return At[0]=u,At[4]=g,At[8]=C,At[12]=L,At[1]=K,At[5]=ie,At[9]=ce,At[13]=ge,At[2]=Ee,At[6]=Ae,At[10]=We,At[14]=tt,At[3]=ot,At[7]=Oe,At[11]=mt,At[15]=Tt,this},identity:function(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this},clone:function(){return new Ki().fromArray(this.elements)},copy:function(u){var g=this.elements,C=u.elements;return g[0]=C[0],g[1]=C[1],g[2]=C[2],g[3]=C[3],g[4]=C[4],g[5]=C[5],g[6]=C[6],g[7]=C[7],g[8]=C[8],g[9]=C[9],g[10]=C[10],g[11]=C[11],g[12]=C[12],g[13]=C[13],g[14]=C[14],g[15]=C[15],this},copyPosition:function(u){var g=this.elements,C=u.elements;return g[12]=C[12],g[13]=C[13],g[14]=C[14],this},extractBasis:function(u,g,C){return u.setFromMatrixColumn(this,0),g.setFromMatrixColumn(this,1),C.setFromMatrixColumn(this,2),this},makeBasis:function(u,g,C){return this.set(u.x,g.x,C.x,0,u.y,g.y,C.y,0,u.z,g.z,C.z,0,0,0,0,1),this},extractRotation:function(u){var g=this.elements,C=u.elements,L=1/Ml.setFromMatrixColumn(u,0).length(),K=1/Ml.setFromMatrixColumn(u,1).length(),ie=1/Ml.setFromMatrixColumn(u,2).length();return g[0]=C[0]*L,g[1]=C[1]*L,g[2]=C[2]*L,g[3]=0,g[4]=C[4]*K,g[5]=C[5]*K,g[6]=C[6]*K,g[7]=0,g[8]=C[8]*ie,g[9]=C[9]*ie,g[10]=C[10]*ie,g[11]=0,g[12]=0,g[13]=0,g[14]=0,g[15]=1,this},makeRotationFromEuler:function(u){u&&u.isEuler||console.error("THREE.Matrix4: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.");var g=this.elements,C=u.x,L=u.y,K=u.z,ie=Math.cos(C),ce=Math.sin(C),ge=Math.cos(L),Ee=Math.sin(L),Ae=Math.cos(K),We=Math.sin(K);if(u.order==="XYZ"){var tt=ie*Ae,ot=ie*We,Oe=ce*Ae,mt=ce*We;g[0]=ge*Ae,g[4]=-ge*We,g[8]=Ee,g[1]=ot+Oe*Ee,g[5]=tt-mt*Ee,g[9]=-ce*ge,g[2]=mt-tt*Ee,g[6]=Oe+ot*Ee,g[10]=ie*ge}else if(u.order==="YXZ"){var Tt=ge*Ae,At=ge*We,nn=Ee*Ae,fn=Ee*We;g[0]=Tt+fn*ce,g[4]=nn*ce-At,g[8]=ie*Ee,g[1]=ie*We,g[5]=ie*Ae,g[9]=-ce,g[2]=At*ce-nn,g[6]=fn+Tt*ce,g[10]=ie*ge}else if(u.order==="ZXY")Tt=ge*Ae,At=ge*We,nn=Ee*Ae,fn=Ee*We,g[0]=Tt-fn*ce,g[4]=-ie*We,g[8]=nn+At*ce,g[1]=At+nn*ce,g[5]=ie*Ae,g[9]=fn-Tt*ce,g[2]=-ie*Ee,g[6]=ce,g[10]=ie*ge;else if(u.order==="ZYX")tt=ie*Ae,ot=ie*We,Oe=ce*Ae,mt=ce*We,g[0]=ge*Ae,g[4]=Oe*Ee-ot,g[8]=tt*Ee+mt,g[1]=ge*We,g[5]=mt*Ee+tt,g[9]=ot*Ee-Oe,g[2]=-Ee,g[6]=ce*ge,g[10]=ie*ge;else if(u.order==="YZX"){var An=ie*ge,zn=ie*Ee,Dn=ce*ge,Qn=ce*Ee;g[0]=ge*Ae,g[4]=Qn-An*We,g[8]=Dn*We+zn,g[1]=We,g[5]=ie*Ae,g[9]=-ce*Ae,g[2]=-Ee*Ae,g[6]=zn*We+Dn,g[10]=An-Qn*We}else u.order==="XZY"&&(An=ie*ge,zn=ie*Ee,Dn=ce*ge,Qn=ce*Ee,g[0]=ge*Ae,g[4]=-We,g[8]=Ee*Ae,g[1]=An*We+Qn,g[5]=ie*Ae,g[9]=zn*We-Dn,g[2]=Dn*We-zn,g[6]=ce*Ae,g[10]=Qn*We+An);return g[3]=0,g[7]=0,g[11]=0,g[12]=0,g[13]=0,g[14]=0,g[15]=1,this},makeRotationFromQuaternion:function(u){return this.compose(to,u,ho)},lookAt:function(u,g,C){var L=this.elements;return ao.subVectors(u,g),ao.lengthSq()===0&&(ao.z=1),ao.normalize(),xa.crossVectors(C,ao),xa.lengthSq()===0&&(Math.abs(C.z)===1?ao.x+=1e-4:ao.z+=1e-4,ao.normalize(),xa.crossVectors(C,ao)),xa.normalize(),Ea.crossVectors(ao,xa),L[0]=xa.x,L[4]=Ea.x,L[8]=ao.x,L[1]=xa.y,L[5]=Ea.y,L[9]=ao.y,L[2]=xa.z,L[6]=Ea.z,L[10]=ao.z,this},multiply:function(u,g){return g!==void 0?(console.warn("THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead."),this.multiplyMatrices(u,g)):this.multiplyMatrices(this,u)},premultiply:function(u){return this.multiplyMatrices(u,this)},multiplyMatrices:function(u,g){var C=u.elements,L=g.elements,K=this.elements,ie=C[0],ce=C[4],ge=C[8],Ee=C[12],Ae=C[1],We=C[5],tt=C[9],ot=C[13],Oe=C[2],mt=C[6],Tt=C[10],At=C[14],nn=C[3],fn=C[7],An=C[11],zn=C[15],Dn=L[0],Qn=L[4],Pn=L[8],cr=L[12],Cr=L[1],_r=L[5],Er=L[9],Vr=L[13],si=L[2],Ar=L[6],vr=L[10],yi=L[14],Bi=L[3],ya=L[7],sa=L[11],oa=L[15];return K[0]=ie*Dn+ce*Cr+ge*si+Ee*Bi,K[4]=ie*Qn+ce*_r+ge*Ar+Ee*ya,K[8]=ie*Pn+ce*Er+ge*vr+Ee*sa,K[12]=ie*cr+ce*Vr+ge*yi+Ee*oa,K[1]=Ae*Dn+We*Cr+tt*si+ot*Bi,K[5]=Ae*Qn+We*_r+tt*Ar+ot*ya,K[9]=Ae*Pn+We*Er+tt*vr+ot*sa,K[13]=Ae*cr+We*Vr+tt*yi+ot*oa,K[2]=Oe*Dn+mt*Cr+Tt*si+At*Bi,K[6]=Oe*Qn+mt*_r+Tt*Ar+At*ya,K[10]=Oe*Pn+mt*Er+Tt*vr+At*sa,K[14]=Oe*cr+mt*Vr+Tt*yi+At*oa,K[3]=nn*Dn+fn*Cr+An*si+zn*Bi,K[7]=nn*Qn+fn*_r+An*Ar+zn*ya,K[11]=nn*Pn+fn*Er+An*vr+zn*sa,K[15]=nn*cr+fn*Vr+An*yi+zn*oa,this},multiplyScalar:function(u){var g=this.elements;return g[0]*=u,g[4]*=u,g[8]*=u,g[12]*=u,g[1]*=u,g[5]*=u,g[9]*=u,g[13]*=u,g[2]*=u,g[6]*=u,g[10]*=u,g[14]*=u,g[3]*=u,g[7]*=u,g[11]*=u,g[15]*=u,this},determinant:function(){var u=this.elements,g=u[0],C=u[4],L=u[8],K=u[12],ie=u[1],ce=u[5],ge=u[9],Ee=u[13],Ae=u[2],We=u[6],tt=u[10],ot=u[14];return u[3]*(K*ge*We-L*Ee*We-K*ce*tt+C*Ee*tt+L*ce*ot-C*ge*ot)+u[7]*(g*ge*ot-g*Ee*tt+K*ie*tt-L*ie*ot+L*Ee*Ae-K*ge*Ae)+u[11]*(g*Ee*We-g*ce*ot-K*ie*We+C*ie*ot+K*ce*Ae-C*Ee*Ae)+u[15]*(-L*ce*Ae-g*ge*We+g*ce*tt+L*ie*We-C*ie*tt+C*ge*Ae)},transpose:function(){var u,g=this.elements;return u=g[1],g[1]=g[4],g[4]=u,u=g[2],g[2]=g[8],g[8]=u,u=g[6],g[6]=g[9],g[9]=u,u=g[3],g[3]=g[12],g[12]=u,u=g[7],g[7]=g[13],g[13]=u,u=g[11],g[11]=g[14],g[14]=u,this},setPosition:function(u,g,C){var L=this.elements;return u.isVector3?(L[12]=u.x,L[13]=u.y,L[14]=u.z):(L[12]=u,L[13]=g,L[14]=C),this},getInverse:function(u,g){var C=this.elements,L=u.elements,K=L[0],ie=L[1],ce=L[2],ge=L[3],Ee=L[4],Ae=L[5],We=L[6],tt=L[7],ot=L[8],Oe=L[9],mt=L[10],Tt=L[11],At=L[12],nn=L[13],fn=L[14],An=L[15],zn=Oe*fn*tt-nn*mt*tt+nn*We*Tt-Ae*fn*Tt-Oe*We*An+Ae*mt*An,Dn=At*mt*tt-ot*fn*tt-At*We*Tt+Ee*fn*Tt+ot*We*An-Ee*mt*An,Qn=ot*nn*tt-At*Oe*tt+At*Ae*Tt-Ee*nn*Tt-ot*Ae*An+Ee*Oe*An,Pn=At*Oe*We-ot*nn*We-At*Ae*mt+Ee*nn*mt+ot*Ae*fn-Ee*Oe*fn,cr=K*zn+ie*Dn+ce*Qn+ge*Pn;if(cr==0){var Cr="THREE.Matrix4: .getInverse() can't invert matrix, determinant is 0";if(g===!0)throw new Error(Cr);return console.warn(Cr),this.identity()}var _r=1/cr;return C[0]=zn*_r,C[1]=(nn*mt*ge-Oe*fn*ge-nn*ce*Tt+ie*fn*Tt+Oe*ce*An-ie*mt*An)*_r,C[2]=(Ae*fn*ge-nn*We*ge+nn*ce*tt-ie*fn*tt-Ae*ce*An+ie*We*An)*_r,C[3]=(Oe*We*ge-Ae*mt*ge-Oe*ce*tt+ie*mt*tt+Ae*ce*Tt-ie*We*Tt)*_r,C[4]=Dn*_r,C[5]=(ot*fn*ge-At*mt*ge+At*ce*Tt-K*fn*Tt-ot*ce*An+K*mt*An)*_r,C[6]=(At*We*ge-Ee*fn*ge-At*ce*tt+K*fn*tt+Ee*ce*An-K*We*An)*_r,C[7]=(Ee*mt*ge-ot*We*ge+ot*ce*tt-K*mt*tt-Ee*ce*Tt+K*We*Tt)*_r,C[8]=Qn*_r,C[9]=(At*Oe*ge-ot*nn*ge-At*ie*Tt+K*nn*Tt+ot*ie*An-K*Oe*An)*_r,C[10]=(Ee*nn*ge-At*Ae*ge+At*ie*tt-K*nn*tt-Ee*ie*An+K*Ae*An)*_r,C[11]=(ot*Ae*ge-Ee*Oe*ge-ot*ie*tt+K*Oe*tt+Ee*ie*Tt-K*Ae*Tt)*_r,C[12]=Pn*_r,C[13]=(ot*nn*ce-At*Oe*ce+At*ie*mt-K*nn*mt-ot*ie*fn+K*Oe*fn)*_r,C[14]=(At*Ae*ce-Ee*nn*ce-At*ie*We+K*nn*We+Ee*ie*fn-K*Ae*fn)*_r,C[15]=(Ee*Oe*ce-ot*Ae*ce+ot*ie*We-K*Oe*We-Ee*ie*mt+K*Ae*mt)*_r,this},scale:function(u){var g=this.elements,C=u.x,L=u.y,K=u.z;return g[0]*=C,g[4]*=L,g[8]*=K,g[1]*=C,g[5]*=L,g[9]*=K,g[2]*=C,g[6]*=L,g[10]*=K,g[3]*=C,g[7]*=L,g[11]*=K,this},getMaxScaleOnAxis:function(){var u=this.elements,g=u[0]*u[0]+u[1]*u[1]+u[2]*u[2],C=u[4]*u[4]+u[5]*u[5]+u[6]*u[6],L=u[8]*u[8]+u[9]*u[9]+u[10]*u[10];return Math.sqrt(Math.max(g,C,L))},makeTranslation:function(u,g,C){return this.set(1,0,0,u,0,1,0,g,0,0,1,C,0,0,0,1),this},makeRotationX:function(u){var g=Math.cos(u),C=Math.sin(u);return this.set(1,0,0,0,0,g,-C,0,0,C,g,0,0,0,0,1),this},makeRotationY:function(u){var g=Math.cos(u),C=Math.sin(u);return this.set(g,0,C,0,0,1,0,0,-C,0,g,0,0,0,0,1),this},makeRotationZ:function(u){var g=Math.cos(u),C=Math.sin(u);return this.set(g,-C,0,0,C,g,0,0,0,0,1,0,0,0,0,1),this},makeRotationAxis:function(u,g){var C=Math.cos(g),L=Math.sin(g),K=1-C,ie=u.x,ce=u.y,ge=u.z,Ee=K*ie,Ae=K*ce;return this.set(Ee*ie+C,Ee*ce-L*ge,Ee*ge+L*ce,0,Ee*ce+L*ge,Ae*ce+C,Ae*ge-L*ie,0,Ee*ge-L*ce,Ae*ge+L*ie,K*ge*ge+C,0,0,0,0,1),this},makeScale:function(u,g,C){return this.set(u,0,0,0,0,g,0,0,0,0,C,0,0,0,0,1),this},makeShear:function(u,g,C){return this.set(1,g,C,0,u,1,C,0,u,g,1,0,0,0,0,1),this},compose:function(u,g,C){var L=this.elements,K=g._x,ie=g._y,ce=g._z,ge=g._w,Ee=K+K,Ae=ie+ie,We=ce+ce,tt=K*Ee,ot=K*Ae,Oe=K*We,mt=ie*Ae,Tt=ie*We,At=ce*We,nn=ge*Ee,fn=ge*Ae,An=ge*We,zn=C.x,Dn=C.y,Qn=C.z;return L[0]=(1-(mt+At))*zn,L[1]=(ot+An)*zn,L[2]=(Oe-fn)*zn,L[3]=0,L[4]=(ot-An)*Dn,L[5]=(1-(tt+At))*Dn,L[6]=(Tt+nn)*Dn,L[7]=0,L[8]=(Oe+fn)*Qn,L[9]=(Tt-nn)*Qn,L[10]=(1-(tt+mt))*Qn,L[11]=0,L[12]=u.x,L[13]=u.y,L[14]=u.z,L[15]=1,this},decompose:function(u,g,C){var L=this.elements,K=Ml.set(L[0],L[1],L[2]).length(),ie=Ml.set(L[4],L[5],L[6]).length(),ce=Ml.set(L[8],L[9],L[10]).length();this.determinant()<0&&(K=-K),u.x=L[12],u.y=L[13],u.z=L[14],rr.copy(this);var ge=1/K,Ee=1/ie,Ae=1/ce;return rr.elements[0]*=ge,rr.elements[1]*=ge,rr.elements[2]*=ge,rr.elements[4]*=Ee,rr.elements[5]*=Ee,rr.elements[6]*=Ee,rr.elements[8]*=Ae,rr.elements[9]*=Ae,rr.elements[10]*=Ae,g.setFromRotationMatrix(rr),C.x=K,C.y=ie,C.z=ce,this},makePerspective:function(u,g,C,L,K,ie){ie===void 0&&console.warn("THREE.Matrix4: .makePerspective() has been redefined and has a new signature. Please check the docs.");var ce=this.elements,ge=2*K/(g-u),Ee=2*K/(C-L),Ae=(g+u)/(g-u),We=(C+L)/(C-L),tt=-(ie+K)/(ie-K),ot=-2*ie*K/(ie-K);return ce[0]=ge,ce[4]=0,ce[8]=Ae,ce[12]=0,ce[1]=0,ce[5]=Ee,ce[9]=We,ce[13]=0,ce[2]=0,ce[6]=0,ce[10]=tt,ce[14]=ot,ce[3]=0,ce[7]=0,ce[11]=-1,ce[15]=0,this},makeOrthographic:function(u,g,C,L,K,ie){var ce=this.elements,ge=1/(g-u),Ee=1/(C-L),Ae=1/(ie-K),We=(g+u)*ge,tt=(C+L)*Ee,ot=(ie+K)*Ae;return ce[0]=2*ge,ce[4]=0,ce[8]=0,ce[12]=-We,ce[1]=0,ce[5]=2*Ee,ce[9]=0,ce[13]=-tt,ce[2]=0,ce[6]=0,ce[10]=-2*Ae,ce[14]=-ot,ce[3]=0,ce[7]=0,ce[11]=0,ce[15]=1,this},equals:function(u){for(var g=this.elements,C=u.elements,L=0;L<16;L++)if(g[L]!==C[L])return!1;return!0},fromArray:function(u,g){g===void 0&&(g=0);for(var C=0;C<16;C++)this.elements[C]=u[C+g];return this},toArray:function(u,g){u===void 0&&(u=[]),g===void 0&&(g=0);var C=this.elements;return u[g]=C[0],u[g+1]=C[1],u[g+2]=C[2],u[g+3]=C[3],u[g+4]=C[4],u[g+5]=C[5],u[g+6]=C[6],u[g+7]=C[7],u[g+8]=C[8],u[g+9]=C[9],u[g+10]=C[10],u[g+11]=C[11],u[g+12]=C[12],u[g+13]=C[13],u[g+14]=C[14],u[g+15]=C[15],u}});var $o=new Ki,Ho=new Zo;function de(u,g,C,L){this._x=u||0,this._y=g||0,this._z=C||0,this._order=L||de.DefaultOrder}function Me(){this.mask=1}de.RotationOrders=["XYZ","YZX","ZXY","XZY","YXZ","ZYX"],de.DefaultOrder="XYZ",Object.defineProperties(de.prototype,{x:{get:function(){return this._x},set:function(u){this._x=u,this._onChangeCallback()}},y:{get:function(){return this._y},set:function(u){this._y=u,this._onChangeCallback()}},z:{get:function(){return this._z},set:function(u){this._z=u,this._onChangeCallback()}},order:{get:function(){return this._order},set:function(u){this._order=u,this._onChangeCallback()}}}),Object.assign(de.prototype,{isEuler:!0,set:function(u,g,C,L){return this._x=u,this._y=g,this._z=C,this._order=L||this._order,this._onChangeCallback(),this},clone:function(){return new this.constructor(this._x,this._y,this._z,this._order)},copy:function(u){return this._x=u._x,this._y=u._y,this._z=u._z,this._order=u._order,this._onChangeCallback(),this},setFromRotationMatrix:function(u,g,C){var L=Ta.clamp,K=u.elements,ie=K[0],ce=K[4],ge=K[8],Ee=K[1],Ae=K[5],We=K[9],tt=K[2],ot=K[6],Oe=K[10];return(g=g||this._order)==="XYZ"?(this._y=Math.asin(L(ge,-1,1)),Math.abs(ge)<.9999999?(this._x=Math.atan2(-We,Oe),this._z=Math.atan2(-ce,ie)):(this._x=Math.atan2(ot,Ae),this._z=0)):g==="YXZ"?(this._x=Math.asin(-L(We,-1,1)),Math.abs(We)<.9999999?(this._y=Math.atan2(ge,Oe),this._z=Math.atan2(Ee,Ae)):(this._y=Math.atan2(-tt,ie),this._z=0)):g==="ZXY"?(this._x=Math.asin(L(ot,-1,1)),Math.abs(ot)<.9999999?(this._y=Math.atan2(-tt,Oe),this._z=Math.atan2(-ce,Ae)):(this._y=0,this._z=Math.atan2(Ee,ie))):g==="ZYX"?(this._y=Math.asin(-L(tt,-1,1)),Math.abs(tt)<.9999999?(this._x=Math.atan2(ot,Oe),this._z=Math.atan2(Ee,ie)):(this._x=0,this._z=Math.atan2(-ce,Ae))):g==="YZX"?(this._z=Math.asin(L(Ee,-1,1)),Math.abs(Ee)<.9999999?(this._x=Math.atan2(-We,Ae),this._y=Math.atan2(-tt,ie)):(this._x=0,this._y=Math.atan2(ge,Oe))):g==="XZY"?(this._z=Math.asin(-L(ce,-1,1)),Math.abs(ce)<.9999999?(this._x=Math.atan2(ot,Ae),this._y=Math.atan2(ge,ie)):(this._x=Math.atan2(-We,Oe),this._y=0)):console.warn("THREE.Euler: .setFromRotationMatrix() given unsupported order: "+g),this._order=g,C!==!1&&this._onChangeCallback(),this},setFromQuaternion:function(u,g,C){return $o.makeRotationFromQuaternion(u),this.setFromRotationMatrix($o,g,C)},setFromVector3:function(u,g){return this.set(u.x,u.y,u.z,g||this._order)},reorder:function(u){return Ho.setFromEuler(this),this.setFromQuaternion(Ho,u)},equals:function(u){return u._x===this._x&&u._y===this._y&&u._z===this._z&&u._order===this._order},fromArray:function(u){return this._x=u[0],this._y=u[1],this._z=u[2],u[3]!==void 0&&(this._order=u[3]),this._onChangeCallback(),this},toArray:function(u,g){return u===void 0&&(u=[]),g===void 0&&(g=0),u[g]=this._x,u[g+1]=this._y,u[g+2]=this._z,u[g+3]=this._order,u},toVector3:function(u){return u?u.set(this._x,this._y,this._z):new Kt(this._x,this._y,this._z)},_onChange:function(u){return this._onChangeCallback=u,this},_onChangeCallback:function(){}}),Object.assign(Me.prototype,{set:function(u){this.mask=1<<u|0},enable:function(u){this.mask|=1<<u|0},enableAll:function(){this.mask=-1},toggle:function(u){this.mask^=1<<u|0},disable:function(u){this.mask&=~(1<<u|0)},disableAll:function(){this.mask=0},test:function(u){return(this.mask&u.mask)!=0}});var qe=0,Qe=new Kt,J=new Zo,ae=new Ki,ve=new Kt,be=new Kt,Re=new Kt,Ge=new Zo,rt=new Kt(1,0,0),Dt=new Kt(0,1,0),Mt=new Kt(0,0,1),Yt={type:"added"},Xn={type:"removed"};function Sn(){Object.defineProperty(this,"id",{value:qe++}),this.uuid=Ta.generateUUID(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=Sn.DefaultUp.clone();var u=new Kt,g=new de,C=new Zo,L=new Kt(1,1,1);g._onChange(function(){C.setFromEuler(g,!1)}),C._onChange(function(){g.setFromQuaternion(C,void 0,!1)}),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:u},rotation:{configurable:!0,enumerable:!0,value:g},quaternion:{configurable:!0,enumerable:!0,value:C},scale:{configurable:!0,enumerable:!0,value:L},modelViewMatrix:{value:new Ki},normalMatrix:{value:new Vo}}),this.matrix=new Ki,this.matrixWorld=new Ki,this.matrixAutoUpdate=Sn.DefaultMatrixAutoUpdate,this.matrixWorldNeedsUpdate=!1,this.layers=new Me,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.userData={}}function Gn(){Sn.call(this),this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.overrideMaterial=null,this.autoUpdate=!0,typeof __THREE_DEVTOOLS__!="undefined"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}Sn.DefaultUp=new Kt(0,1,0),Sn.DefaultMatrixAutoUpdate=!0,Sn.prototype=Object.assign(Object.create(jo.prototype),{constructor:Sn,isObject3D:!0,onBeforeRender:function(){},onAfterRender:function(){},applyMatrix4:function(u){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(u),this.matrix.decompose(this.position,this.quaternion,this.scale)},applyQuaternion:function(u){return this.quaternion.premultiply(u),this},setRotationFromAxisAngle:function(u,g){this.quaternion.setFromAxisAngle(u,g)},setRotationFromEuler:function(u){this.quaternion.setFromEuler(u,!0)},setRotationFromMatrix:function(u){this.quaternion.setFromRotationMatrix(u)},setRotationFromQuaternion:function(u){this.quaternion.copy(u)},rotateOnAxis:function(u,g){return J.setFromAxisAngle(u,g),this.quaternion.multiply(J),this},rotateOnWorldAxis:function(u,g){return J.setFromAxisAngle(u,g),this.quaternion.premultiply(J),this},rotateX:function(u){return this.rotateOnAxis(rt,u)},rotateY:function(u){return this.rotateOnAxis(Dt,u)},rotateZ:function(u){return this.rotateOnAxis(Mt,u)},translateOnAxis:function(u,g){return Qe.copy(u).applyQuaternion(this.quaternion),this.position.add(Qe.multiplyScalar(g)),this},translateX:function(u){return this.translateOnAxis(rt,u)},translateY:function(u){return this.translateOnAxis(Dt,u)},translateZ:function(u){return this.translateOnAxis(Mt,u)},localToWorld:function(u){return u.applyMatrix4(this.matrixWorld)},worldToLocal:function(u){return u.applyMatrix4(ae.getInverse(this.matrixWorld))},lookAt:function(u,g,C){u.isVector3?ve.copy(u):ve.set(u,g,C);var L=this.parent;this.updateWorldMatrix(!0,!1),be.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?ae.lookAt(be,ve,this.up):ae.lookAt(ve,be,this.up),this.quaternion.setFromRotationMatrix(ae),L&&(ae.extractRotation(L.matrixWorld),J.setFromRotationMatrix(ae),this.quaternion.premultiply(J.inverse()))},add:function(u){if(1<arguments.length){for(var g=0;g<arguments.length;g++)this.add(arguments[g]);return this}return u===this?console.error("THREE.Object3D.add: object can't be added as a child of itself.",u):u&&u.isObject3D?(u.parent!==null&&u.parent.remove(u),(u.parent=this).children.push(u),u.dispatchEvent(Yt)):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",u),this},remove:function(u){if(1<arguments.length){for(var g=0;g<arguments.length;g++)this.remove(arguments[g]);return this}var C=this.children.indexOf(u);return C!==-1&&(u.parent=null,this.children.splice(C,1),u.dispatchEvent(Xn)),this},attach:function(u){return this.updateWorldMatrix(!0,!1),ae.getInverse(this.matrixWorld),u.parent!==null&&(u.parent.updateWorldMatrix(!0,!1),ae.multiply(u.parent.matrixWorld)),u.applyMatrix4(ae),u.updateWorldMatrix(!1,!1),this.add(u),this},getObjectById:function(u){return this.getObjectByProperty("id",u)},getObjectByName:function(u){return this.getObjectByProperty("name",u)},getObjectByProperty:function(u,g){if(this[u]===g)return this;for(var C=0,L=this.children.length;C<L;C++){var K=this.children[C].getObjectByProperty(u,g);if(K!==void 0)return K}},getWorldPosition:function(u){return u===void 0&&(console.warn("THREE.Object3D: .getWorldPosition() target is now required"),u=new Kt),this.updateMatrixWorld(!0),u.setFromMatrixPosition(this.matrixWorld)},getWorldQuaternion:function(u){return u===void 0&&(console.warn("THREE.Object3D: .getWorldQuaternion() target is now required"),u=new Zo),this.updateMatrixWorld(!0),this.matrixWorld.decompose(be,u,Re),u},getWorldScale:function(u){return u===void 0&&(console.warn("THREE.Object3D: .getWorldScale() target is now required"),u=new Kt),this.updateMatrixWorld(!0),this.matrixWorld.decompose(be,Ge,u),u},getWorldDirection:function(u){u===void 0&&(console.warn("THREE.Object3D: .getWorldDirection() target is now required"),u=new Kt),this.updateMatrixWorld(!0);var g=this.matrixWorld.elements;return u.set(g[8],g[9],g[10]).normalize()},raycast:function(){},traverse:function(u){u(this);for(var g=this.children,C=0,L=g.length;C<L;C++)g[C].traverse(u)},traverseVisible:function(u){if(this.visible!==!1){u(this);for(var g=this.children,C=0,L=g.length;C<L;C++)g[C].traverseVisible(u)}},traverseAncestors:function(u){var g=this.parent;g!==null&&(u(g),g.traverseAncestors(u))},updateMatrix:function(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0},updateMatrixWorld:function(u){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||u)&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),u=!(this.matrixWorldNeedsUpdate=!1));for(var g=this.children,C=0,L=g.length;C<L;C++)g[C].updateMatrixWorld(u)},updateWorldMatrix:function(u,g){var C=this.parent;if(u===!0&&C!==null&&C.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),g===!0)for(var L=this.children,K=0,ie=L.length;K<ie;K++)L[K].updateWorldMatrix(!1,!0)},toJSON:function(u){var g=u===void 0||typeof u=="string",C={};g&&(u={geometries:{},materials:{},textures:{},images:{},shapes:{}},C.metadata={version:4.5,type:"Object",generator:"Object3D.toJSON"});var L={};function K(At,nn){return At[nn.uuid]===void 0&&(At[nn.uuid]=nn.toJSON(u)),nn.uuid}if(L.uuid=this.uuid,L.type=this.type,this.name!==""&&(L.name=this.name),this.castShadow===!0&&(L.castShadow=!0),this.receiveShadow===!0&&(L.receiveShadow=!0),this.visible===!1&&(L.visible=!1),this.frustumCulled===!1&&(L.frustumCulled=!1),this.renderOrder!==0&&(L.renderOrder=this.renderOrder),JSON.stringify(this.userData)!=="{}"&&(L.userData=this.userData),L.layers=this.layers.mask,L.matrix=this.matrix.toArray(),this.matrixAutoUpdate===!1&&(L.matrixAutoUpdate=!1),this.isInstancedMesh&&(L.type="InstancedMesh",L.count=this.count,L.instanceMatrix=this.instanceMatrix.toJSON()),this.isMesh||this.isLine||this.isPoints){L.geometry=K(u.geometries,this.geometry);var ie=this.geometry.parameters;if(ie!==void 0&&ie.shapes!==void 0){var ce=ie.shapes;if(Array.isArray(ce))for(var ge=0,Ee=ce.length;ge<Ee;ge++){var Ae=ce[ge];K(u.shapes,Ae)}else K(u.shapes,ce)}}if(this.material!==void 0)if(Array.isArray(this.material)){var We=[];for(ge=0,Ee=this.material.length;ge<Ee;ge++)We.push(K(u.materials,this.material[ge]));L.material=We}else L.material=K(u.materials,this.material);if(0<this.children.length)for(L.children=[],ge=0;ge<this.children.length;ge++)L.children.push(this.children[ge].toJSON(u).object);if(g){var tt=Tt(u.geometries),ot=Tt(u.materials),Oe=Tt(u.textures),mt=Tt(u.images);ce=Tt(u.shapes),0<tt.length&&(C.geometries=tt),0<ot.length&&(C.materials=ot),0<Oe.length&&(C.textures=Oe),0<mt.length&&(C.images=mt),0<ce.length&&(C.shapes=ce)}return C.object=L,C;function Tt(At){var nn=[];for(var fn in At){var An=At[fn];delete An.metadata,nn.push(An)}return nn}},clone:function(u){return new this.constructor().copy(this,u)},copy:function(u,g){if(g===void 0&&(g=!0),this.name=u.name,this.up.copy(u.up),this.position.copy(u.position),this.quaternion.copy(u.quaternion),this.scale.copy(u.scale),this.matrix.copy(u.matrix),this.matrixWorld.copy(u.matrixWorld),this.matrixAutoUpdate=u.matrixAutoUpdate,this.matrixWorldNeedsUpdate=u.matrixWorldNeedsUpdate,this.layers.mask=u.layers.mask,this.visible=u.visible,this.castShadow=u.castShadow,this.receiveShadow=u.receiveShadow,this.frustumCulled=u.frustumCulled,this.renderOrder=u.renderOrder,this.userData=JSON.parse(JSON.stringify(u.userData)),g===!0)for(var C=0;C<u.children.length;C++){var L=u.children[C];this.add(L.clone())}return this}}),Gn.prototype=Object.assign(Object.create(Sn.prototype),{constructor:Gn,isScene:!0,copy:function(u,g){return Sn.prototype.copy.call(this,u,g),u.background!==null&&(this.background=u.background.clone()),u.environment!==null&&(this.environment=u.environment.clone()),u.fog!==null&&(this.fog=u.fog.clone()),u.overrideMaterial!==null&&(this.overrideMaterial=u.overrideMaterial.clone()),this.autoUpdate=u.autoUpdate,this.matrixAutoUpdate=u.matrixAutoUpdate,this},toJSON:function(u){var g=Sn.prototype.toJSON.call(this,u);return this.background!==null&&(g.object.background=this.background.toJSON(u)),this.environment!==null&&(g.object.environment=this.environment.toJSON(u)),this.fog!==null&&(g.object.fog=this.fog.toJSON()),g},dispose:function(){this.dispatchEvent({type:"dispose"})}});var Or=[new Kt,new Kt,new Kt,new Kt,new Kt,new Kt,new Kt,new Kt],ki=new Kt,Ia=new Ss,ma=new Kt,na=new Kt,Ya=new Kt,Da=new Kt,Yi=new Kt,Ba=new Kt,gl=new Kt,Oa=new Kt,Oo=new Kt,Ls=new Kt;function Ss(u,g){this.min=u!==void 0?u:new Kt(1/0,1/0,1/0),this.max=g!==void 0?g:new Kt(-1/0,-1/0,-1/0)}function Es(u,g,C,L,K){var ie,ce;for(ie=0,ce=u.length-3;ie<=ce;ie+=3){Ls.fromArray(u,ie);var ge=K.x*Math.abs(Ls.x)+K.y*Math.abs(Ls.y)+K.z*Math.abs(Ls.z),Ee=g.dot(Ls),Ae=C.dot(Ls),We=L.dot(Ls);if(Math.max(-Math.max(Ee,Ae,We),Math.min(Ee,Ae,We))>ge)return!1}return!0}Object.assign(Ss.prototype,{isBox3:!0,set:function(u,g){return this.min.copy(u),this.max.copy(g),this},setFromArray:function(u){for(var g=1/0,C=1/0,L=1/0,K=-1/0,ie=-1/0,ce=-1/0,ge=0,Ee=u.length;ge<Ee;ge+=3){var Ae=u[ge],We=u[ge+1],tt=u[ge+2];Ae<g&&(g=Ae),We<C&&(C=We),tt<L&&(L=tt),K<Ae&&(K=Ae),ie<We&&(ie=We),ce<tt&&(ce=tt)}return this.min.set(g,C,L),this.max.set(K,ie,ce),this},setFromBufferAttribute:function(u){for(var g=1/0,C=1/0,L=1/0,K=-1/0,ie=-1/0,ce=-1/0,ge=0,Ee=u.count;ge<Ee;ge++){var Ae=u.getX(ge),We=u.getY(ge),tt=u.getZ(ge);Ae<g&&(g=Ae),We<C&&(C=We),tt<L&&(L=tt),K<Ae&&(K=Ae),ie<We&&(ie=We),ce<tt&&(ce=tt)}return this.min.set(g,C,L),this.max.set(K,ie,ce),this},setFromPoints:function(u){this.makeEmpty();for(var g=0,C=u.length;g<C;g++)this.expandByPoint(u[g]);return this},setFromCenterAndSize:function(u,g){var C=ki.copy(g).multiplyScalar(.5);return this.min.copy(u).sub(C),this.max.copy(u).add(C),this},setFromObject:function(u){return this.makeEmpty(),this.expandByObject(u)},clone:function(){return new this.constructor().copy(this)},copy:function(u){return this.min.copy(u.min),this.max.copy(u.max),this},makeEmpty:function(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this},isEmpty:function(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z},getCenter:function(u){return u===void 0&&(console.warn("THREE.Box3: .getCenter() target is now required"),u=new Kt),this.isEmpty()?u.set(0,0,0):u.addVectors(this.min,this.max).multiplyScalar(.5)},getSize:function(u){return u===void 0&&(console.warn("THREE.Box3: .getSize() target is now required"),u=new Kt),this.isEmpty()?u.set(0,0,0):u.subVectors(this.max,this.min)},expandByPoint:function(u){return this.min.min(u),this.max.max(u),this},expandByVector:function(u){return this.min.sub(u),this.max.add(u),this},expandByScalar:function(u){return this.min.addScalar(-u),this.max.addScalar(u),this},expandByObject:function(u){u.updateWorldMatrix(!1,!1);var g=u.geometry;g!==void 0&&(g.boundingBox===null&&g.computeBoundingBox(),Ia.copy(g.boundingBox),Ia.applyMatrix4(u.matrixWorld),this.expandByPoint(Ia.min),this.expandByPoint(Ia.max));for(var C=u.children,L=0,K=C.length;L<K;L++)this.expandByObject(C[L]);return this},containsPoint:function(u){return!(u.x<this.min.x||u.x>this.max.x||u.y<this.min.y||u.y>this.max.y||u.z<this.min.z||u.z>this.max.z)},containsBox:function(u){return this.min.x<=u.min.x&&u.max.x<=this.max.x&&this.min.y<=u.min.y&&u.max.y<=this.max.y&&this.min.z<=u.min.z&&u.max.z<=this.max.z},getParameter:function(u,g){return g===void 0&&(console.warn("THREE.Box3: .getParameter() target is now required"),g=new Kt),g.set((u.x-this.min.x)/(this.max.x-this.min.x),(u.y-this.min.y)/(this.max.y-this.min.y),(u.z-this.min.z)/(this.max.z-this.min.z))},intersectsBox:function(u){return!(u.max.x<this.min.x||u.min.x>this.max.x||u.max.y<this.min.y||u.min.y>this.max.y||u.max.z<this.min.z||u.min.z>this.max.z)},intersectsSphere:function(u){return this.clampPoint(u.center,ki),ki.distanceToSquared(u.center)<=u.radius*u.radius},intersectsPlane:function(u){var g,C;return C=0<u.normal.x?(g=u.normal.x*this.min.x,u.normal.x*this.max.x):(g=u.normal.x*this.max.x,u.normal.x*this.min.x),0<u.normal.y?(g+=u.normal.y*this.min.y,C+=u.normal.y*this.max.y):(g+=u.normal.y*this.max.y,C+=u.normal.y*this.min.y),0<u.normal.z?(g+=u.normal.z*this.min.z,C+=u.normal.z*this.max.z):(g+=u.normal.z*this.max.z,C+=u.normal.z*this.min.z),g<=-u.constant&&C>=-u.constant},intersectsTriangle:function(u){if(this.isEmpty())return!1;this.getCenter(gl),Oa.subVectors(this.max,gl),ma.subVectors(u.a,gl),na.subVectors(u.b,gl),Ya.subVectors(u.c,gl),Da.subVectors(na,ma),Yi.subVectors(Ya,na),Ba.subVectors(ma,Ya);var g=[0,-Da.z,Da.y,0,-Yi.z,Yi.y,0,-Ba.z,Ba.y,Da.z,0,-Da.x,Yi.z,0,-Yi.x,Ba.z,0,-Ba.x,-Da.y,Da.x,0,-Yi.y,Yi.x,0,-Ba.y,Ba.x,0];return!!Es(g,ma,na,Ya,Oa)&&!!Es(g=[1,0,0,0,1,0,0,0,1],ma,na,Ya,Oa)&&(Oo.crossVectors(Da,Yi),Es(g=[Oo.x,Oo.y,Oo.z],ma,na,Ya,Oa))},clampPoint:function(u,g){return g===void 0&&(console.warn("THREE.Box3: .clampPoint() target is now required"),g=new Kt),g.copy(u).clamp(this.min,this.max)},distanceToPoint:function(u){return ki.copy(u).clamp(this.min,this.max).sub(u).length()},getBoundingSphere:function(u){return u===void 0&&console.error("THREE.Box3: .getBoundingSphere() target is now required"),this.getCenter(u.center),u.radius=.5*this.getSize(ki).length(),u},intersect:function(u){return this.min.max(u.min),this.max.min(u.max),this.isEmpty()&&this.makeEmpty(),this},union:function(u){return this.min.min(u.min),this.max.max(u.max),this},applyMatrix4:function(u){return this.isEmpty()||(Or[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(u),Or[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(u),Or[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(u),Or[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(u),Or[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(u),Or[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(u),Or[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(u),Or[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(u),this.setFromPoints(Or)),this},translate:function(u){return this.min.add(u),this.max.add(u),this},equals:function(u){return u.min.equals(this.min)&&u.max.equals(this.max)}});var vs=new Ss;function po(u,g){this.center=u!==void 0?u:new Kt,this.radius=g!==void 0?g:0}Object.assign(po.prototype,{set:function(u,g){return this.center.copy(u),this.radius=g,this},setFromPoints:function(u,g){var C=this.center;g!==void 0?C.copy(g):vs.setFromPoints(u).getCenter(C);for(var L=0,K=0,ie=u.length;K<ie;K++)L=Math.max(L,C.distanceToSquared(u[K]));return this.radius=Math.sqrt(L),this},clone:function(){return new this.constructor().copy(this)},copy:function(u){return this.center.copy(u.center),this.radius=u.radius,this},empty:function(){return this.radius<=0},containsPoint:function(u){return u.distanceToSquared(this.center)<=this.radius*this.radius},distanceToPoint:function(u){return u.distanceTo(this.center)-this.radius},intersectsSphere:function(u){var g=this.radius+u.radius;return u.center.distanceToSquared(this.center)<=g*g},intersectsBox:function(u){return u.intersectsSphere(this)},intersectsPlane:function(u){return Math.abs(u.distanceToPoint(this.center))<=this.radius},clampPoint:function(u,g){var C=this.center.distanceToSquared(u);return g===void 0&&(console.warn("THREE.Sphere: .clampPoint() target is now required"),g=new Kt),g.copy(u),C>this.radius*this.radius&&(g.sub(this.center).normalize(),g.multiplyScalar(this.radius).add(this.center)),g},getBoundingBox:function(u){return u===void 0&&(console.warn("THREE.Sphere: .getBoundingBox() target is now required"),u=new Ss),u.set(this.center,this.center),u.expandByScalar(this.radius),u},applyMatrix4:function(u){return this.center.applyMatrix4(u),this.radius=this.radius*u.getMaxScaleOnAxis(),this},translate:function(u){return this.center.add(u),this},equals:function(u){return u.center.equals(this.center)&&u.radius===this.radius}});var oo=new Kt,Ko=new Kt,Ts=new Kt,as=new Kt,Qi=new Kt,Io=new Kt,Jo=new Kt;function fo(u,g){this.origin=u!==void 0?u:new Kt,this.direction=g!==void 0?g:new Kt(0,0,-1)}Object.assign(fo.prototype,{set:function(u,g){return this.origin.copy(u),this.direction.copy(g),this},clone:function(){return new this.constructor().copy(this)},copy:function(u){return this.origin.copy(u.origin),this.direction.copy(u.direction),this},at:function(u,g){return g===void 0&&(console.warn("THREE.Ray: .at() target is now required"),g=new Kt),g.copy(this.direction).multiplyScalar(u).add(this.origin)},lookAt:function(u){return this.direction.copy(u).sub(this.origin).normalize(),this},recast:function(u){return this.origin.copy(this.at(u,oo)),this},closestPointToPoint:function(u,g){g===void 0&&(console.warn("THREE.Ray: .closestPointToPoint() target is now required"),g=new Kt),g.subVectors(u,this.origin);var C=g.dot(this.direction);return C<0?g.copy(this.origin):g.copy(this.direction).multiplyScalar(C).add(this.origin)},distanceToPoint:function(u){return Math.sqrt(this.distanceSqToPoint(u))},distanceSqToPoint:function(u){var g=oo.subVectors(u,this.origin).dot(this.direction);return g<0?this.origin.distanceToSquared(u):(oo.copy(this.direction).multiplyScalar(g).add(this.origin),oo.distanceToSquared(u))},distanceSqToSegment:function(u,g,C,L){Ko.copy(u).add(g).multiplyScalar(.5),Ts.copy(g).sub(u).normalize(),as.copy(this.origin).sub(Ko);var K,ie,ce,ge,Ee=.5*u.distanceTo(g),Ae=-this.direction.dot(Ts),We=as.dot(this.direction),tt=-as.dot(Ts),ot=as.lengthSq(),Oe=Math.abs(1-Ae*Ae);if(0<Oe)if(ie=Ae*We-tt,ge=Ee*Oe,0<=(K=Ae*tt-We))if(-ge<=ie)if(ie<=ge){var mt=1/Oe;ce=(K*=mt)*(K+Ae*(ie*=mt)+2*We)+ie*(Ae*K+ie+2*tt)+ot}else ie=Ee,ce=-(K=Math.max(0,-(Ae*ie+We)))*K+ie*(ie+2*tt)+ot;else ie=-Ee,ce=-(K=Math.max(0,-(Ae*ie+We)))*K+ie*(ie+2*tt)+ot;else ce=ie<=-ge?-(K=Math.max(0,-(-Ae*Ee+We)))*K+(ie=0<K?-Ee:Math.min(Math.max(-Ee,-tt),Ee))*(ie+2*tt)+ot:ie<=ge?(K=0,(ie=Math.min(Math.max(-Ee,-tt),Ee))*(ie+2*tt)+ot):-(K=Math.max(0,-(Ae*Ee+We)))*K+(ie=0<K?Ee:Math.min(Math.max(-Ee,-tt),Ee))*(ie+2*tt)+ot;else ie=0<Ae?-Ee:Ee,ce=-(K=Math.max(0,-(Ae*ie+We)))*K+ie*(ie+2*tt)+ot;return C&&C.copy(this.direction).multiplyScalar(K).add(this.origin),L&&L.copy(Ts).multiplyScalar(ie).add(Ko),ce},intersectSphere:function(u,g){oo.subVectors(u.center,this.origin);var C=oo.dot(this.direction),L=oo.dot(oo)-C*C,K=u.radius*u.radius;if(K<L)return null;var ie=Math.sqrt(K-L),ce=C-ie,ge=C+ie;return ce<0&&ge<0?null:ce<0?this.at(ge,g):this.at(ce,g)},intersectsSphere:function(u){return this.distanceSqToPoint(u.center)<=u.radius*u.radius},distanceToPlane:function(u){var g=u.normal.dot(this.direction);if(g===0)return u.distanceToPoint(this.origin)===0?0:null;var C=-(this.origin.dot(u.normal)+u.constant)/g;return 0<=C?C:null},intersectPlane:function(u,g){var C=this.distanceToPlane(u);return C===null?null:this.at(C,g)},intersectsPlane:function(u){var g=u.distanceToPoint(this.origin);return g===0||u.normal.dot(this.direction)*g<0},intersectBox:function(u,g){var C,L,K,ie,ce,ge,Ee=1/this.direction.x,Ae=1/this.direction.y,We=1/this.direction.z,tt=this.origin;return L=0<=Ee?(C=(u.min.x-tt.x)*Ee,(u.max.x-tt.x)*Ee):(C=(u.max.x-tt.x)*Ee,(u.min.x-tt.x)*Ee),(ie=0<=Ae?(K=(u.min.y-tt.y)*Ae,(u.max.y-tt.y)*Ae):(K=(u.max.y-tt.y)*Ae,(u.min.y-tt.y)*Ae))<C||L<K?null:((C<K||C!=C)&&(C=K),(ie<L||L!=L)&&(L=ie),(ge=0<=We?(ce=(u.min.z-tt.z)*We,(u.max.z-tt.z)*We):(ce=(u.max.z-tt.z)*We,(u.min.z-tt.z)*We))<C||L<ce?null:((C<ce||C!=C)&&(C=ce),(ge<L||L!=L)&&(L=ge),L<0?null:this.at(0<=C?C:L,g)))},intersectsBox:function(u){return this.intersectBox(u,oo)!==null},intersectTriangle:function(u,g,C,L,K){Qi.subVectors(g,u),Io.subVectors(C,u),Jo.crossVectors(Qi,Io);var ie,ce=this.direction.dot(Jo);if(0<ce){if(L)return null;ie=1}else{if(!(ce<0))return null;ie=-1,ce=-ce}as.subVectors(this.origin,u);var ge=ie*this.direction.dot(Io.crossVectors(as,Io));if(ge<0)return null;var Ee=ie*this.direction.dot(Qi.cross(as));if(Ee<0||ce<ge+Ee)return null;var Ae=-ie*as.dot(Jo);return Ae<0?null:this.at(Ae/ce,K)},applyMatrix4:function(u){return this.origin.applyMatrix4(u),this.direction.transformDirection(u),this},equals:function(u){return u.origin.equals(this.origin)&&u.direction.equals(this.direction)}});var ul=new Kt,lo=new Kt,bu=new Vo;function Wo(u,g){this.normal=u!==void 0?u:new Kt(1,0,0),this.constant=g!==void 0?g:0}Object.assign(Wo.prototype,{isPlane:!0,set:function(u,g){return this.normal.copy(u),this.constant=g,this},setComponents:function(u,g,C,L){return this.normal.set(u,g,C),this.constant=L,this},setFromNormalAndCoplanarPoint:function(u,g){return this.normal.copy(u),this.constant=-g.dot(this.normal),this},setFromCoplanarPoints:function(u,g,C){var L=ul.subVectors(C,g).cross(lo.subVectors(u,g)).normalize();return this.setFromNormalAndCoplanarPoint(L,u),this},clone:function(){return new this.constructor().copy(this)},copy:function(u){return this.normal.copy(u.normal),this.constant=u.constant,this},normalize:function(){var u=1/this.normal.length();return this.normal.multiplyScalar(u),this.constant*=u,this},negate:function(){return this.constant*=-1,this.normal.negate(),this},distanceToPoint:function(u){return this.normal.dot(u)+this.constant},distanceToSphere:function(u){return this.distanceToPoint(u.center)-u.radius},projectPoint:function(u,g){return g===void 0&&(console.warn("THREE.Plane: .projectPoint() target is now required"),g=new Kt),g.copy(this.normal).multiplyScalar(-this.distanceToPoint(u)).add(u)},intersectLine:function(u,g){g===void 0&&(console.warn("THREE.Plane: .intersectLine() target is now required"),g=new Kt);var C=u.delta(ul),L=this.normal.dot(C);if(L===0)return this.distanceToPoint(u.start)===0?g.copy(u.start):void 0;var K=-(u.start.dot(this.normal)+this.constant)/L;return K<0||1<K?void 0:g.copy(C).multiplyScalar(K).add(u.start)},intersectsLine:function(u){var g=this.distanceToPoint(u.start),C=this.distanceToPoint(u.end);return g<0&&0<C||C<0&&0<g},intersectsBox:function(u){return u.intersectsPlane(this)},intersectsSphere:function(u){return u.intersectsPlane(this)},coplanarPoint:function(u){return u===void 0&&(console.warn("THREE.Plane: .coplanarPoint() target is now required"),u=new Kt),u.copy(this.normal).multiplyScalar(-this.constant)},applyMatrix4:function(u,g){var C=g||bu.getNormalMatrix(u),L=this.coplanarPoint(ul).applyMatrix4(u),K=this.normal.applyMatrix3(C).normalize();return this.constant=-L.dot(K),this},translate:function(u){return this.constant-=u.dot(this.normal),this},equals:function(u){return u.normal.equals(this.normal)&&u.constant===this.constant}});var Ds=new Kt,os=new Kt,Ou=new Kt,il=new Kt,zs=new Kt,Xl=new Kt,Bl=new Kt,ga=new Kt,zo=new Kt,wu=new Kt;function ds(u,g,C){this.a=u!==void 0?u:new Kt,this.b=g!==void 0?g:new Kt,this.c=C!==void 0?C:new Kt}Object.assign(ds,{getNormal:function(u,g,C,L){L===void 0&&(console.warn("THREE.Triangle: .getNormal() target is now required"),L=new Kt),L.subVectors(C,g),Ds.subVectors(u,g),L.cross(Ds);var K=L.lengthSq();return 0<K?L.multiplyScalar(1/Math.sqrt(K)):L.set(0,0,0)},getBarycoord:function(u,g,C,L,K){Ds.subVectors(L,g),os.subVectors(C,g),Ou.subVectors(u,g);var ie=Ds.dot(Ds),ce=Ds.dot(os),ge=Ds.dot(Ou),Ee=os.dot(os),Ae=os.dot(Ou),We=ie*Ee-ce*ce;if(K===void 0&&(console.warn("THREE.Triangle: .getBarycoord() target is now required"),K=new Kt),We==0)return K.set(-2,-1,-1);var tt=1/We,ot=(Ee*ge-ce*Ae)*tt,Oe=(ie*Ae-ce*ge)*tt;return K.set(1-ot-Oe,Oe,ot)},containsPoint:function(u,g,C,L){return ds.getBarycoord(u,g,C,L,il),0<=il.x&&0<=il.y&&il.x+il.y<=1},getUV:function(u,g,C,L,K,ie,ce,ge){return this.getBarycoord(u,g,C,L,il),ge.set(0,0),ge.addScaledVector(K,il.x),ge.addScaledVector(ie,il.y),ge.addScaledVector(ce,il.z),ge},isFrontFacing:function(u,g,C,L){return Ds.subVectors(C,g),os.subVectors(u,g),Ds.cross(os).dot(L)<0}}),Object.assign(ds.prototype,{set:function(u,g,C){return this.a.copy(u),this.b.copy(g),this.c.copy(C),this},setFromPointsAndIndices:function(u,g,C,L){return this.a.copy(u[g]),this.b.copy(u[C]),this.c.copy(u[L]),this},clone:function(){return new this.constructor().copy(this)},copy:function(u){return this.a.copy(u.a),this.b.copy(u.b),this.c.copy(u.c),this},getArea:function(){return Ds.subVectors(this.c,this.b),os.subVectors(this.a,this.b),.5*Ds.cross(os).length()},getMidpoint:function(u){return u===void 0&&(console.warn("THREE.Triangle: .getMidpoint() target is now required"),u=new Kt),u.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)},getNormal:function(u){return ds.getNormal(this.a,this.b,this.c,u)},getPlane:function(u){return u===void 0&&(console.warn("THREE.Triangle: .getPlane() target is now required"),u=new Wo),u.setFromCoplanarPoints(this.a,this.b,this.c)},getBarycoord:function(u,g){return ds.getBarycoord(u,this.a,this.b,this.c,g)},getUV:function(u,g,C,L,K){return ds.getUV(u,this.a,this.b,this.c,g,C,L,K)},containsPoint:function(u){return ds.containsPoint(u,this.a,this.b,this.c)},isFrontFacing:function(u){return ds.isFrontFacing(this.a,this.b,this.c,u)},intersectsBox:function(u){return u.intersectsTriangle(this)},closestPointToPoint:function(u,g){g===void 0&&(console.warn("THREE.Triangle: .closestPointToPoint() target is now required"),g=new Kt);var C,L,K=this.a,ie=this.b,ce=this.c;zs.subVectors(ie,K),Xl.subVectors(ce,K),ga.subVectors(u,K);var ge=zs.dot(ga),Ee=Xl.dot(ga);if(ge<=0&&Ee<=0)return g.copy(K);zo.subVectors(u,ie);var Ae=zs.dot(zo),We=Xl.dot(zo);if(0<=Ae&&We<=Ae)return g.copy(ie);var tt=ge*We-Ae*Ee;if(tt<=0&&0<=ge&&Ae<=0)return C=ge/(ge-Ae),g.copy(K).addScaledVector(zs,C);wu.subVectors(u,ce);var ot=zs.dot(wu),Oe=Xl.dot(wu);if(0<=Oe&&ot<=Oe)return g.copy(ce);var mt=ot*Ee-ge*Oe;if(mt<=0&&0<=Ee&&Oe<=0)return L=Ee/(Ee-Oe),g.copy(K).addScaledVector(Xl,L);var Tt=Ae*Oe-ot*We;if(Tt<=0&&0<=We-Ae&&0<=ot-Oe)return Bl.subVectors(ce,ie),L=(We-Ae)/(We-Ae+(ot-Oe)),g.copy(ie).addScaledVector(Bl,L);var At=1/(Tt+mt+tt);return C=mt*At,L=tt*At,g.copy(K).addScaledVector(zs,C).addScaledVector(Xl,L)},equals:function(u){return u.a.equals(this.a)&&u.b.equals(this.b)&&u.c.equals(this.c)}});var pu={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},gn={h:0,s:0,l:0},Zn={h:0,s:0,l:0};function Fn(u,g,C){return g===void 0&&C===void 0?this.set(u):this.setRGB(u,g,C)}function Mr(u,g,C){return C<0&&(C+=1),1<C&&--C,C<1/6?u+6*(g-u)*C:C<.5?g:C<2/3?u+6*(g-u)*(2/3-C):u}function Nr(u){return u<.04045?.0773993808*u:Math.pow(.9478672986*u+.0521327014,2.4)}function _i(u){return u<.0031308?12.92*u:1.055*Math.pow(u,.41666)-.055}function Ci(u,g,C,L,K,ie){this.a=u,this.b=g,this.c=C,this.normal=L&&L.isVector3?L:new Kt,this.vertexNormals=Array.isArray(L)?L:[],this.color=K&&K.isColor?K:new Fn,this.vertexColors=Array.isArray(K)?K:[],this.materialIndex=ie!==void 0?ie:0}Object.assign(Fn.prototype,{isColor:!0,r:1,g:1,b:1,set:function(u){return u&&u.isColor?this.copy(u):typeof u=="number"?this.setHex(u):typeof u=="string"&&this.setStyle(u),this},setScalar:function(u){return this.r=u,this.g=u,this.b=u,this},setHex:function(u){return u=Math.floor(u),this.r=(u>>16&255)/255,this.g=(u>>8&255)/255,this.b=(255&u)/255,this},setRGB:function(u,g,C){return this.r=u,this.g=g,this.b=C,this},setHSL:function(u,g,C){if(u=Ta.euclideanModulo(u,1),g=Ta.clamp(g,0,1),C=Ta.clamp(C,0,1),g===0)this.r=this.g=this.b=C;else{var L=C<=.5?C*(1+g):C+g-C*g,K=2*C-L;this.r=Mr(K,L,u+1/3),this.g=Mr(K,L,u),this.b=Mr(K,L,u-1/3)}return this},setStyle:function(u){function g(tt){tt!==void 0&&parseFloat(tt)<1&&console.warn("THREE.Color: Alpha component of "+u+" will be ignored.")}var C;if(C=/^((?:rgb|hsl)a?)\(\s*([^\)]*)\)/.exec(u)){var L,K=C[1],ie=C[2];switch(K){case"rgb":case"rgba":if(L=/^(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(ie))return this.r=Math.min(255,parseInt(L[1],10))/255,this.g=Math.min(255,parseInt(L[2],10))/255,this.b=Math.min(255,parseInt(L[3],10))/255,g(L[5]),this;if(L=/^(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(ie))return this.r=Math.min(100,parseInt(L[1],10))/100,this.g=Math.min(100,parseInt(L[2],10))/100,this.b=Math.min(100,parseInt(L[3],10))/100,g(L[5]),this;break;case"hsl":case"hsla":if(L=/^([0-9]*\.?[0-9]+)\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(ie)){var ce=parseFloat(L[1])/360,ge=parseInt(L[2],10)/100,Ee=parseInt(L[3],10)/100;return g(L[5]),this.setHSL(ce,ge,Ee)}}}else if(C=/^\#([A-Fa-f0-9]+)$/.exec(u)){var Ae=C[1],We=Ae.length;if(We===3)return this.r=parseInt(Ae.charAt(0)+Ae.charAt(0),16)/255,this.g=parseInt(Ae.charAt(1)+Ae.charAt(1),16)/255,this.b=parseInt(Ae.charAt(2)+Ae.charAt(2),16)/255,this;if(We===6)return this.r=parseInt(Ae.charAt(0)+Ae.charAt(1),16)/255,this.g=parseInt(Ae.charAt(2)+Ae.charAt(3),16)/255,this.b=parseInt(Ae.charAt(4)+Ae.charAt(5),16)/255,this}return u&&0<u.length?this.setColorName(u):this},setColorName:function(u){var g=pu[u];return g!==void 0?this.setHex(g):console.warn("THREE.Color: Unknown color "+u),this},clone:function(){return new this.constructor(this.r,this.g,this.b)},copy:function(u){return this.r=u.r,this.g=u.g,this.b=u.b,this},copyGammaToLinear:function(u,g){return g===void 0&&(g=2),this.r=Math.pow(u.r,g),this.g=Math.pow(u.g,g),this.b=Math.pow(u.b,g),this},copyLinearToGamma:function(u,g){g===void 0&&(g=2);var C=0<g?1/g:1;return this.r=Math.pow(u.r,C),this.g=Math.pow(u.g,C),this.b=Math.pow(u.b,C),this},convertGammaToLinear:function(u){return this.copyGammaToLinear(this,u),this},convertLinearToGamma:function(u){return this.copyLinearToGamma(this,u),this},copySRGBToLinear:function(u){return this.r=Nr(u.r),this.g=Nr(u.g),this.b=Nr(u.b),this},copyLinearToSRGB:function(u){return this.r=_i(u.r),this.g=_i(u.g),this.b=_i(u.b),this},convertSRGBToLinear:function(){return this.copySRGBToLinear(this),this},convertLinearToSRGB:function(){return this.copyLinearToSRGB(this),this},getHex:function(){return 255*this.r<<16^255*this.g<<8^255*this.b<<0},getHexString:function(){return("000000"+this.getHex().toString(16)).slice(-6)},getHSL:function(u){u===void 0&&(console.warn("THREE.Color: .getHSL() target is now required"),u={h:0,s:0,l:0});var g,C,L=this.r,K=this.g,ie=this.b,ce=Math.max(L,K,ie),ge=Math.min(L,K,ie),Ee=(ge+ce)/2;if(ge===ce)C=g=0;else{var Ae=ce-ge;switch(C=Ee<=.5?Ae/(ce+ge):Ae/(2-ce-ge),ce){case L:g=(K-ie)/Ae+(K<ie?6:0);break;case K:g=(ie-L)/Ae+2;break;case ie:g=(L-K)/Ae+4}g/=6}return u.h=g,u.s=C,u.l=Ee,u},getStyle:function(){return"rgb("+(255*this.r|0)+","+(255*this.g|0)+","+(255*this.b|0)+")"},offsetHSL:function(u,g,C){return this.getHSL(gn),gn.h+=u,gn.s+=g,gn.l+=C,this.setHSL(gn.h,gn.s,gn.l),this},add:function(u){return this.r+=u.r,this.g+=u.g,this.b+=u.b,this},addColors:function(u,g){return this.r=u.r+g.r,this.g=u.g+g.g,this.b=u.b+g.b,this},addScalar:function(u){return this.r+=u,this.g+=u,this.b+=u,this},sub:function(u){return this.r=Math.max(0,this.r-u.r),this.g=Math.max(0,this.g-u.g),this.b=Math.max(0,this.b-u.b),this},multiply:function(u){return this.r*=u.r,this.g*=u.g,this.b*=u.b,this},multiplyScalar:function(u){return this.r*=u,this.g*=u,this.b*=u,this},lerp:function(u,g){return this.r+=(u.r-this.r)*g,this.g+=(u.g-this.g)*g,this.b+=(u.b-this.b)*g,this},lerpHSL:function(u,g){this.getHSL(gn),u.getHSL(Zn);var C=Ta.lerp(gn.h,Zn.h,g),L=Ta.lerp(gn.s,Zn.s,g),K=Ta.lerp(gn.l,Zn.l,g);return this.setHSL(C,L,K),this},equals:function(u){return u.r===this.r&&u.g===this.g&&u.b===this.b},fromArray:function(u,g){return g===void 0&&(g=0),this.r=u[g],this.g=u[g+1],this.b=u[g+2],this},toArray:function(u,g){return u===void 0&&(u=[]),g===void 0&&(g=0),u[g]=this.r,u[g+1]=this.g,u[g+2]=this.b,u},toJSON:function(){return this.getHex()}}),Fn.NAMES=pu,Object.assign(Ci.prototype,{clone:function(){return new this.constructor().copy(this)},copy:function(u){this.a=u.a,this.b=u.b,this.c=u.c,this.normal.copy(u.normal),this.color.copy(u.color),this.materialIndex=u.materialIndex;for(var g=0,C=u.vertexNormals.length;g<C;g++)this.vertexNormals[g]=u.vertexNormals[g].clone();for(g=0,C=u.vertexColors.length;g<C;g++)this.vertexColors[g]=u.vertexColors[g].clone();return this}});var Vt=0;function Wt(){Object.defineProperty(this,"id",{value:Vt++}),this.uuid=Ta.generateUUID(),this.name="",this.type="Material",this.fog=!0,this.blending=A,this.side=b,this.flatShading=!1,this.vertexTangents=!1,this.vertexColors=O,this.opacity=1,this.transparent=!1,this.blendSrc=ye,this.blendDst=Te,this.blendEquation=W,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.depthFunc=Ve,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=wl,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=No,this.stencilZFail=No,this.stencilZPass=No,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaTest=0,this.premultipliedAlpha=!1,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0}function Jn(u){Wt.call(this),this.type="MeshBasicMaterial",this.color=new Fn(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=at,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.skinning=!1,this.morphTargets=!1,this.setValues(u)}Wt.prototype=Object.assign(Object.create(jo.prototype),{constructor:Wt,isMaterial:!0,onBeforeCompile:function(){},setValues:function(u){if(u!==void 0)for(var g in u){var C=u[g];if(C!==void 0)if(g!=="shading"){var L=this[g];L!==void 0?L&&L.isColor?L.set(C):L&&L.isVector3&&C&&C.isVector3?L.copy(C):this[g]=C:console.warn("THREE."+this.type+": '"+g+"' is not a property of this material.")}else console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=C===1;else console.warn("THREE.Material: '"+g+"' parameter is undefined.")}},toJSON:function(u){var g=u===void 0||typeof u=="string";g&&(u={textures:{},images:{}});var C={metadata:{version:4.5,type:"Material",generator:"Material.toJSON"}};function L(ce){var ge=[];for(var Ee in ce){var Ae=ce[Ee];delete Ae.metadata,ge.push(Ae)}return ge}if(C.uuid=this.uuid,C.type=this.type,this.name!==""&&(C.name=this.name),this.color&&this.color.isColor&&(C.color=this.color.getHex()),this.roughness!==void 0&&(C.roughness=this.roughness),this.metalness!==void 0&&(C.metalness=this.metalness),this.sheen&&this.sheen.isColor&&(C.sheen=this.sheen.getHex()),this.emissive&&this.emissive.isColor&&(C.emissive=this.emissive.getHex()),this.emissiveIntensity&&this.emissiveIntensity!==1&&(C.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(C.specular=this.specular.getHex()),this.shininess!==void 0&&(C.shininess=this.shininess),this.clearcoat!==void 0&&(C.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(C.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(C.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(u).uuid,C.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.map&&this.map.isTexture&&(C.map=this.map.toJSON(u).uuid),this.matcap&&this.matcap.isTexture&&(C.matcap=this.matcap.toJSON(u).uuid),this.alphaMap&&this.alphaMap.isTexture&&(C.alphaMap=this.alphaMap.toJSON(u).uuid),this.lightMap&&this.lightMap.isTexture&&(C.lightMap=this.lightMap.toJSON(u).uuid),this.aoMap&&this.aoMap.isTexture&&(C.aoMap=this.aoMap.toJSON(u).uuid,C.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(C.bumpMap=this.bumpMap.toJSON(u).uuid,C.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(C.normalMap=this.normalMap.toJSON(u).uuid,C.normalMapType=this.normalMapType,C.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(C.displacementMap=this.displacementMap.toJSON(u).uuid,C.displacementScale=this.displacementScale,C.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(C.roughnessMap=this.roughnessMap.toJSON(u).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(C.metalnessMap=this.metalnessMap.toJSON(u).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(C.emissiveMap=this.emissiveMap.toJSON(u).uuid),this.specularMap&&this.specularMap.isTexture&&(C.specularMap=this.specularMap.toJSON(u).uuid),this.envMap&&this.envMap.isTexture&&(C.envMap=this.envMap.toJSON(u).uuid,C.reflectivity=this.reflectivity,C.refractionRatio=this.refractionRatio,this.combine!==void 0&&(C.combine=this.combine),this.envMapIntensity!==void 0&&(C.envMapIntensity=this.envMapIntensity)),this.gradientMap&&this.gradientMap.isTexture&&(C.gradientMap=this.gradientMap.toJSON(u).uuid),this.size!==void 0&&(C.size=this.size),this.sizeAttenuation!==void 0&&(C.sizeAttenuation=this.sizeAttenuation),this.blending!==A&&(C.blending=this.blending),this.flatShading===!0&&(C.flatShading=this.flatShading),this.side!==b&&(C.side=this.side),this.vertexColors!==O&&(C.vertexColors=this.vertexColors),this.opacity<1&&(C.opacity=this.opacity),this.transparent===!0&&(C.transparent=this.transparent),C.depthFunc=this.depthFunc,C.depthTest=this.depthTest,C.depthWrite=this.depthWrite,C.stencilWrite=this.stencilWrite,C.stencilWriteMask=this.stencilWriteMask,C.stencilFunc=this.stencilFunc,C.stencilRef=this.stencilRef,C.stencilFuncMask=this.stencilFuncMask,C.stencilFail=this.stencilFail,C.stencilZFail=this.stencilZFail,C.stencilZPass=this.stencilZPass,this.rotation&&this.rotation!==0&&(C.rotation=this.rotation),this.polygonOffset===!0&&(C.polygonOffset=!0),this.polygonOffsetFactor!==0&&(C.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(C.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth&&this.linewidth!==1&&(C.linewidth=this.linewidth),this.dashSize!==void 0&&(C.dashSize=this.dashSize),this.gapSize!==void 0&&(C.gapSize=this.gapSize),this.scale!==void 0&&(C.scale=this.scale),this.dithering===!0&&(C.dithering=!0),0<this.alphaTest&&(C.alphaTest=this.alphaTest),this.premultipliedAlpha===!0&&(C.premultipliedAlpha=this.premultipliedAlpha),this.wireframe===!0&&(C.wireframe=this.wireframe),1<this.wireframeLinewidth&&(C.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(C.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(C.wireframeLinejoin=this.wireframeLinejoin),this.morphTargets===!0&&(C.morphTargets=!0),this.morphNormals===!0&&(C.morphNormals=!0),this.skinning===!0&&(C.skinning=!0),this.visible===!1&&(C.visible=!1),this.toneMapped===!1&&(C.toneMapped=!1),JSON.stringify(this.userData)!=="{}"&&(C.userData=this.userData),g){var K=L(u.textures),ie=L(u.images);0<K.length&&(C.textures=K),0<ie.length&&(C.images=ie)}return C},clone:function(){return new this.constructor().copy(this)},copy:function(u){this.name=u.name,this.fog=u.fog,this.blending=u.blending,this.side=u.side,this.flatShading=u.flatShading,this.vertexTangents=u.vertexTangents,this.vertexColors=u.vertexColors,this.opacity=u.opacity,this.transparent=u.transparent,this.blendSrc=u.blendSrc,this.blendDst=u.blendDst,this.blendEquation=u.blendEquation,this.blendSrcAlpha=u.blendSrcAlpha,this.blendDstAlpha=u.blendDstAlpha,this.blendEquationAlpha=u.blendEquationAlpha,this.depthFunc=u.depthFunc,this.depthTest=u.depthTest,this.depthWrite=u.depthWrite,this.stencilWriteMask=u.stencilWriteMask,this.stencilFunc=u.stencilFunc,this.stencilRef=u.stencilRef,this.stencilFuncMask=u.stencilFuncMask,this.stencilFail=u.stencilFail,this.stencilZFail=u.stencilZFail,this.stencilZPass=u.stencilZPass,this.stencilWrite=u.stencilWrite;var g=u.clippingPlanes,C=null;if(g!==null){var L=g.length;C=new Array(L);for(var K=0;K!==L;++K)C[K]=g[K].clone()}return this.clippingPlanes=C,this.clipIntersection=u.clipIntersection,this.clipShadows=u.clipShadows,this.shadowSide=u.shadowSide,this.colorWrite=u.colorWrite,this.precision=u.precision,this.polygonOffset=u.polygonOffset,this.polygonOffsetFactor=u.polygonOffsetFactor,this.polygonOffsetUnits=u.polygonOffsetUnits,this.dithering=u.dithering,this.alphaTest=u.alphaTest,this.premultipliedAlpha=u.premultipliedAlpha,this.visible=u.visible,this.toneMapped=u.toneMapped,this.userData=JSON.parse(JSON.stringify(u.userData)),this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),Object.defineProperty(Wt.prototype,"needsUpdate",{set:function(u){u===!0&&this.version++}}),((Jn.prototype=Object.create(Wt.prototype)).constructor=Jn).prototype.isMeshBasicMaterial=!0,Jn.prototype.copy=function(u){return Wt.prototype.copy.call(this,u),this.color.copy(u.color),this.map=u.map,this.lightMap=u.lightMap,this.lightMapIntensity=u.lightMapIntensity,this.aoMap=u.aoMap,this.aoMapIntensity=u.aoMapIntensity,this.specularMap=u.specularMap,this.alphaMap=u.alphaMap,this.envMap=u.envMap,this.combine=u.combine,this.reflectivity=u.reflectivity,this.refractionRatio=u.refractionRatio,this.wireframe=u.wireframe,this.wireframeLinewidth=u.wireframeLinewidth,this.wireframeLinecap=u.wireframeLinecap,this.wireframeLinejoin=u.wireframeLinejoin,this.skinning=u.skinning,this.morphTargets=u.morphTargets,this};var Vn=new Kt;function Bn(u,g,C){if(Array.isArray(u))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.name="",this.array=u,this.itemSize=g,this.count=u!==void 0?u.length/g:0,this.normalized=C===!0,this.usage=Ua,this.updateRange={offset:0,count:-1},this.version=0}function Hn(u,g,C){Bn.call(this,new Int8Array(u),g,C)}function kr(u,g,C){Bn.call(this,new Uint8Array(u),g,C)}function fi(u,g,C){Bn.call(this,new Uint8ClampedArray(u),g,C)}function oi(u,g,C){Bn.call(this,new Int16Array(u),g,C)}function da(u,g,C){Bn.call(this,new Uint16Array(u),g,C)}function St(u,g,C){Bn.call(this,new Int32Array(u),g,C)}function zi(u,g,C){Bn.call(this,new Uint32Array(u),g,C)}function Fr(u,g,C){Bn.call(this,new Float32Array(u),g,C)}function ni(u,g,C){Bn.call(this,new Float64Array(u),g,C)}function Gi(){this.vertices=[],this.normals=[],this.colors=[],this.uvs=[],this.uvs2=[],this.groups=[],this.morphTargets={},this.skinWeights=[],this.skinIndices=[],this.boundingBox=null,this.boundingSphere=null,this.verticesNeedUpdate=!1,this.normalsNeedUpdate=!1,this.colorsNeedUpdate=!1,this.uvsNeedUpdate=!1,this.groupsNeedUpdate=!1}function Po(u){if(u.length===0)return-1/0;for(var g=u[0],C=1,L=u.length;C<L;++C)u[C]>g&&(g=u[C]);return g}Object.defineProperty(Bn.prototype,"needsUpdate",{set:function(u){u===!0&&this.version++}}),Object.assign(Bn.prototype,{isBufferAttribute:!0,onUploadCallback:function(){},setUsage:function(u){return this.usage=u,this},copy:function(u){return this.name=u.name,this.array=new u.array.constructor(u.array),this.itemSize=u.itemSize,this.count=u.count,this.normalized=u.normalized,this.usage=u.usage,this},copyAt:function(u,g,C){u*=this.itemSize,C*=g.itemSize;for(var L=0,K=this.itemSize;L<K;L++)this.array[u+L]=g.array[C+L];return this},copyArray:function(u){return this.array.set(u),this},copyColorsArray:function(u){for(var g=this.array,C=0,L=0,K=u.length;L<K;L++){var ie=u[L];ie===void 0&&(console.warn("THREE.BufferAttribute.copyColorsArray(): color is undefined",L),ie=new Fn),g[C++]=ie.r,g[C++]=ie.g,g[C++]=ie.b}return this},copyVector2sArray:function(u){for(var g=this.array,C=0,L=0,K=u.length;L<K;L++){var ie=u[L];ie===void 0&&(console.warn("THREE.BufferAttribute.copyVector2sArray(): vector is undefined",L),ie=new Lr),g[C++]=ie.x,g[C++]=ie.y}return this},copyVector3sArray:function(u){for(var g=this.array,C=0,L=0,K=u.length;L<K;L++){var ie=u[L];ie===void 0&&(console.warn("THREE.BufferAttribute.copyVector3sArray(): vector is undefined",L),ie=new Kt),g[C++]=ie.x,g[C++]=ie.y,g[C++]=ie.z}return this},copyVector4sArray:function(u){for(var g=this.array,C=0,L=0,K=u.length;L<K;L++){var ie=u[L];ie===void 0&&(console.warn("THREE.BufferAttribute.copyVector4sArray(): vector is undefined",L),ie=new _o),g[C++]=ie.x,g[C++]=ie.y,g[C++]=ie.z,g[C++]=ie.w}return this},applyMatrix3:function(u){for(var g=0,C=this.count;g<C;g++)Vn.x=this.getX(g),Vn.y=this.getY(g),Vn.z=this.getZ(g),Vn.applyMatrix3(u),this.setXYZ(g,Vn.x,Vn.y,Vn.z);return this},applyMatrix4:function(u){for(var g=0,C=this.count;g<C;g++)Vn.x=this.getX(g),Vn.y=this.getY(g),Vn.z=this.getZ(g),Vn.applyMatrix4(u),this.setXYZ(g,Vn.x,Vn.y,Vn.z);return this},applyNormalMatrix:function(u){for(var g=0,C=this.count;g<C;g++)Vn.x=this.getX(g),Vn.y=this.getY(g),Vn.z=this.getZ(g),Vn.applyNormalMatrix(u),this.setXYZ(g,Vn.x,Vn.y,Vn.z);return this},transformDirection:function(u){for(var g=0,C=this.count;g<C;g++)Vn.x=this.getX(g),Vn.y=this.getY(g),Vn.z=this.getZ(g),Vn.transformDirection(u),this.setXYZ(g,Vn.x,Vn.y,Vn.z);return this},set:function(u,g){return g===void 0&&(g=0),this.array.set(u,g),this},getX:function(u){return this.array[u*this.itemSize]},setX:function(u,g){return this.array[u*this.itemSize]=g,this},getY:function(u){return this.array[u*this.itemSize+1]},setY:function(u,g){return this.array[u*this.itemSize+1]=g,this},getZ:function(u){return this.itemSize<3?0:this.array[u*this.itemSize+2]},setZ:function(u,g){return this.array[u*this.itemSize+2]=g,this},getW:function(u){return this.array[u*this.itemSize+3]},setW:function(u,g){return this.array[u*this.itemSize+3]=g,this},setXY:function(u,g,C){return u*=this.itemSize,this.array[u+0]=g,this.array[u+1]=C,this},setXYZ:function(u,g,C,L){return u*=this.itemSize,this.array[u+0]=g,this.array[u+1]=C,this.array[u+2]=L,this},setXYZW:function(u,g,C,L,K){return u*=this.itemSize,this.array[u+0]=g,this.array[u+1]=C,this.array[u+2]=L,this.array[u+3]=K,this},onUpload:function(u){return this.onUploadCallback=u,this},clone:function(){return new this.constructor(this.array,this.itemSize).copy(this)},toJSON:function(){return{itemSize:this.itemSize,type:this.array.constructor.name,array:Array.prototype.slice.call(this.array),normalized:this.normalized}}}),(Hn.prototype=Object.create(Bn.prototype)).constructor=Hn,(kr.prototype=Object.create(Bn.prototype)).constructor=kr,(fi.prototype=Object.create(Bn.prototype)).constructor=fi,(oi.prototype=Object.create(Bn.prototype)).constructor=oi,(da.prototype=Object.create(Bn.prototype)).constructor=da,(St.prototype=Object.create(Bn.prototype)).constructor=St,(zi.prototype=Object.create(Bn.prototype)).constructor=zi,(Fr.prototype=Object.create(Bn.prototype)).constructor=Fr,(ni.prototype=Object.create(Bn.prototype)).constructor=ni,Object.assign(Gi.prototype,{computeGroups:function(u){for(var g,C=[],L=void 0,K=u.faces,ie=0;ie<K.length;ie++){var ce=K[ie];ce.materialIndex!==L&&(L=ce.materialIndex,g!==void 0&&(g.count=3*ie-g.start,C.push(g)),g={start:3*ie,materialIndex:L})}g!==void 0&&(g.count=3*ie-g.start,C.push(g)),this.groups=C},fromGeometry:function(u){var g,C=u.faces,L=u.vertices,K=u.faceVertexUvs,ie=K[0]&&0<K[0].length,ce=K[1]&&0<K[1].length,ge=u.morphTargets,Ee=ge.length;if(0<Ee){g=[];for(var Ae=0;Ae<Ee;Ae++)g[Ae]={name:ge[Ae].name,data:[]};this.morphTargets.position=g}var We,tt=u.morphNormals,ot=tt.length;if(0<ot){for(We=[],Ae=0;Ae<ot;Ae++)We[Ae]={name:tt[Ae].name,data:[]};this.morphTargets.normal=We}var Oe=u.skinIndices,mt=u.skinWeights,Tt=Oe.length===L.length,At=mt.length===L.length;for(0<L.length&&C.length===0&&console.error("THREE.DirectGeometry: Faceless geometries are not supported."),Ae=0;Ae<C.length;Ae++){var nn=C[Ae];this.vertices.push(L[nn.a],L[nn.b],L[nn.c]);var fn=nn.vertexNormals;if(fn.length===3)this.normals.push(fn[0],fn[1],fn[2]);else{var An=nn.normal;this.normals.push(An,An,An)}var zn,Dn=nn.vertexColors;if(Dn.length===3)this.colors.push(Dn[0],Dn[1],Dn[2]);else{var Qn=nn.color;this.colors.push(Qn,Qn,Qn)}ie===!0&&((zn=K[0][Ae])!==void 0?this.uvs.push(zn[0],zn[1],zn[2]):(console.warn("THREE.DirectGeometry.fromGeometry(): Undefined vertexUv ",Ae),this.uvs.push(new Lr,new Lr,new Lr))),ce===!0&&((zn=K[1][Ae])!==void 0?this.uvs2.push(zn[0],zn[1],zn[2]):(console.warn("THREE.DirectGeometry.fromGeometry(): Undefined vertexUv2 ",Ae),this.uvs2.push(new Lr,new Lr,new Lr)));for(var Pn=0;Pn<Ee;Pn++){var cr=ge[Pn].vertices;g[Pn].data.push(cr[nn.a],cr[nn.b],cr[nn.c])}for(Pn=0;Pn<ot;Pn++){var Cr=tt[Pn].vertexNormals[Ae];We[Pn].data.push(Cr.a,Cr.b,Cr.c)}Tt&&this.skinIndices.push(Oe[nn.a],Oe[nn.b],Oe[nn.c]),At&&this.skinWeights.push(mt[nn.a],mt[nn.b],mt[nn.c])}return this.computeGroups(u),this.verticesNeedUpdate=u.verticesNeedUpdate,this.normalsNeedUpdate=u.normalsNeedUpdate,this.colorsNeedUpdate=u.colorsNeedUpdate,this.uvsNeedUpdate=u.uvsNeedUpdate,this.groupsNeedUpdate=u.groupsNeedUpdate,u.boundingSphere!==null&&(this.boundingSphere=u.boundingSphere.clone()),u.boundingBox!==null&&(this.boundingBox=u.boundingBox.clone()),this}});var Yo=2147483647,xo=new Ki,Zs=new Sn,As=new Kt,Uo=new Ss,cc=new Ss,Os=new Kt;function qi(){Object.defineProperty(this,"id",{value:Yo+=2}),this.uuid=Ta.generateUUID(),this.name="",this.type="BufferGeometry",this.index=null,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={}}qi.prototype=Object.assign(Object.create(jo.prototype),{constructor:qi,isBufferGeometry:!0,getIndex:function(){return this.index},setIndex:function(u){Array.isArray(u)?this.index=new(65535<Po(u)?zi:da)(u,1):this.index=u},getAttribute:function(u){return this.attributes[u]},setAttribute:function(u,g){return this.attributes[u]=g,this},deleteAttribute:function(u){return delete this.attributes[u],this},addGroup:function(u,g,C){this.groups.push({start:u,count:g,materialIndex:C!==void 0?C:0})},clearGroups:function(){this.groups=[]},setDrawRange:function(u,g){this.drawRange.start=u,this.drawRange.count=g},applyMatrix4:function(u){var g=this.attributes.position;g!==void 0&&(g.applyMatrix4(u),g.needsUpdate=!0);var C=this.attributes.normal;if(C!==void 0){var L=new Vo().getNormalMatrix(u);C.applyNormalMatrix(L),C.needsUpdate=!0}var K=this.attributes.tangent;return K!==void 0&&(K.transformDirection(u),K.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this},rotateX:function(u){return xo.makeRotationX(u),this.applyMatrix4(xo),this},rotateY:function(u){return xo.makeRotationY(u),this.applyMatrix4(xo),this},rotateZ:function(u){return xo.makeRotationZ(u),this.applyMatrix4(xo),this},translate:function(u,g,C){return xo.makeTranslation(u,g,C),this.applyMatrix4(xo),this},scale:function(u,g,C){return xo.makeScale(u,g,C),this.applyMatrix4(xo),this},lookAt:function(u){return Zs.lookAt(u),Zs.updateMatrix(),this.applyMatrix4(Zs.matrix),this},center:function(){return this.computeBoundingBox(),this.boundingBox.getCenter(As).negate(),this.translate(As.x,As.y,As.z),this},setFromObject:function(u){var g=u.geometry;if(u.isPoints||u.isLine){var C=new Fr(3*g.vertices.length,3),L=new Fr(3*g.colors.length,3);if(this.setAttribute("position",C.copyVector3sArray(g.vertices)),this.setAttribute("color",L.copyColorsArray(g.colors)),g.lineDistances&&g.lineDistances.length===g.vertices.length){var K=new Fr(g.lineDistances.length,1);this.setAttribute("lineDistance",K.copyArray(g.lineDistances))}g.boundingSphere!==null&&(this.boundingSphere=g.boundingSphere.clone()),g.boundingBox!==null&&(this.boundingBox=g.boundingBox.clone())}else u.isMesh&&g&&g.isGeometry&&this.fromGeometry(g);return this},setFromPoints:function(u){for(var g=[],C=0,L=u.length;C<L;C++){var K=u[C];g.push(K.x,K.y,K.z||0)}return this.setAttribute("position",new Fr(g,3)),this},updateFromObject:function(u){var g,C=u.geometry;if(u.isMesh){var L=C.__directGeometry;if(C.elementsNeedUpdate===!0&&(L=void 0,C.elementsNeedUpdate=!1),L===void 0)return this.fromGeometry(C);L.verticesNeedUpdate=C.verticesNeedUpdate,L.normalsNeedUpdate=C.normalsNeedUpdate,L.colorsNeedUpdate=C.colorsNeedUpdate,L.uvsNeedUpdate=C.uvsNeedUpdate,L.groupsNeedUpdate=C.groupsNeedUpdate,C.verticesNeedUpdate=!1,C.normalsNeedUpdate=!1,C.colorsNeedUpdate=!1,C.uvsNeedUpdate=!1,C.groupsNeedUpdate=!1,C=L}return C.verticesNeedUpdate===!0&&((g=this.attributes.position)!==void 0&&(g.copyVector3sArray(C.vertices),g.needsUpdate=!0),C.verticesNeedUpdate=!1),C.normalsNeedUpdate===!0&&((g=this.attributes.normal)!==void 0&&(g.copyVector3sArray(C.normals),g.needsUpdate=!0),C.normalsNeedUpdate=!1),C.colorsNeedUpdate===!0&&((g=this.attributes.color)!==void 0&&(g.copyColorsArray(C.colors),g.needsUpdate=!0),C.colorsNeedUpdate=!1),C.uvsNeedUpdate&&((g=this.attributes.uv)!==void 0&&(g.copyVector2sArray(C.uvs),g.needsUpdate=!0),C.uvsNeedUpdate=!1),C.lineDistancesNeedUpdate&&((g=this.attributes.lineDistance)!==void 0&&(g.copyArray(C.lineDistances),g.needsUpdate=!0),C.lineDistancesNeedUpdate=!1),C.groupsNeedUpdate&&(C.computeGroups(u.geometry),this.groups=C.groups,C.groupsNeedUpdate=!1),this},fromGeometry:function(u){return u.__directGeometry=new Gi().fromGeometry(u),this.fromDirectGeometry(u.__directGeometry)},fromDirectGeometry:function(u){var g=new Float32Array(3*u.vertices.length);if(this.setAttribute("position",new Bn(g,3).copyVector3sArray(u.vertices)),0<u.normals.length){var C=new Float32Array(3*u.normals.length);this.setAttribute("normal",new Bn(C,3).copyVector3sArray(u.normals))}if(0<u.colors.length){var L=new Float32Array(3*u.colors.length);this.setAttribute("color",new Bn(L,3).copyColorsArray(u.colors))}if(0<u.uvs.length){var K=new Float32Array(2*u.uvs.length);this.setAttribute("uv",new Bn(K,2).copyVector2sArray(u.uvs))}if(0<u.uvs2.length){var ie=new Float32Array(2*u.uvs2.length);this.setAttribute("uv2",new Bn(ie,2).copyVector2sArray(u.uvs2))}for(var ce in this.groups=u.groups,u.morphTargets){for(var ge=[],Ee=u.morphTargets[ce],Ae=0,We=Ee.length;Ae<We;Ae++){var tt=Ee[Ae],ot=new Fr(3*tt.data.length,3);ot.name=tt.name,ge.push(ot.copyVector3sArray(tt.data))}this.morphAttributes[ce]=ge}if(0<u.skinIndices.length){var Oe=new Fr(4*u.skinIndices.length,4);this.setAttribute("skinIndex",Oe.copyVector4sArray(u.skinIndices))}if(0<u.skinWeights.length){var mt=new Fr(4*u.skinWeights.length,4);this.setAttribute("skinWeight",mt.copyVector4sArray(u.skinWeights))}return u.boundingSphere!==null&&(this.boundingSphere=u.boundingSphere.clone()),u.boundingBox!==null&&(this.boundingBox=u.boundingBox.clone()),this},computeBoundingBox:function(){this.boundingBox===null&&(this.boundingBox=new Ss);var u=this.attributes.position,g=this.morphAttributes.position;if(u!==void 0){if(this.boundingBox.setFromBufferAttribute(u),g)for(var C=0,L=g.length;C<L;C++){var K=g[C];Uo.setFromBufferAttribute(K),this.morphTargetsRelative?(Os.addVectors(this.boundingBox.min,Uo.min),this.boundingBox.expandByPoint(Os),Os.addVectors(this.boundingBox.max,Uo.max),this.boundingBox.expandByPoint(Os)):(this.boundingBox.expandByPoint(Uo.min),this.boundingBox.expandByPoint(Uo.max))}}else this.boundingBox.makeEmpty();(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox: Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)},computeBoundingSphere:function(){this.boundingSphere===null&&(this.boundingSphere=new po);var u=this.attributes.position,g=this.morphAttributes.position;if(u){var C=this.boundingSphere.center;if(Uo.setFromBufferAttribute(u),g)for(var L=0,K=g.length;L<K;L++){var ie=g[L];cc.setFromBufferAttribute(ie),this.morphTargetsRelative?(Os.addVectors(Uo.min,cc.min),Uo.expandByPoint(Os),Os.addVectors(Uo.max,cc.max),Uo.expandByPoint(Os)):(Uo.expandByPoint(cc.min),Uo.expandByPoint(cc.max))}Uo.getCenter(C);var ce=0;for(L=0,K=u.count;L<K;L++)Os.fromBufferAttribute(u,L),ce=Math.max(ce,C.distanceToSquared(Os));if(g)for(L=0,K=g.length;L<K;L++){ie=g[L];for(var ge=this.morphTargetsRelative,Ee=0,Ae=ie.count;Ee<Ae;Ee++)Os.fromBufferAttribute(ie,Ee),ge&&(As.fromBufferAttribute(u,Ee),Os.add(As)),ce=Math.max(ce,C.distanceToSquared(Os))}this.boundingSphere.radius=Math.sqrt(ce),isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',this)}},computeFaceNormals:function(){},computeVertexNormals:function(){var u=this.index,g=this.attributes;if(g.position){var C=g.position.array;if(g.normal===void 0)this.setAttribute("normal",new Bn(new Float32Array(C.length),3));else for(var L=g.normal.array,K=0,ie=L.length;K<ie;K++)L[K]=0;var ce,ge,Ee,Ae=g.normal.array,We=new Kt,tt=new Kt,ot=new Kt,Oe=new Kt,mt=new Kt;if(u){var Tt=u.array;for(K=0,ie=u.count;K<ie;K+=3)ce=3*Tt[K+0],ge=3*Tt[K+1],Ee=3*Tt[K+2],We.fromArray(C,ce),tt.fromArray(C,ge),ot.fromArray(C,Ee),Oe.subVectors(ot,tt),mt.subVectors(We,tt),Oe.cross(mt),Ae[ce]+=Oe.x,Ae[1+ce]+=Oe.y,Ae[2+ce]+=Oe.z,Ae[ge]+=Oe.x,Ae[1+ge]+=Oe.y,Ae[2+ge]+=Oe.z,Ae[Ee]+=Oe.x,Ae[1+Ee]+=Oe.y,Ae[2+Ee]+=Oe.z}else for(K=0,ie=C.length;K<ie;K+=9)We.fromArray(C,K),tt.fromArray(C,K+3),ot.fromArray(C,K+6),Oe.subVectors(ot,tt),mt.subVectors(We,tt),Oe.cross(mt),Ae[K]=Oe.x,Ae[K+1]=Oe.y,Ae[K+2]=Oe.z,Ae[K+3]=Oe.x,Ae[K+4]=Oe.y,Ae[K+5]=Oe.z,Ae[K+6]=Oe.x,Ae[K+7]=Oe.y,Ae[K+8]=Oe.z;this.normalizeNormals(),g.normal.needsUpdate=!0}},merge:function(u,g){if(u&&u.isBufferGeometry){g===void 0&&(g=0,console.warn("THREE.BufferGeometry.merge(): Overwriting original geometry, starting at offset=0. Use BufferGeometryUtils.mergeBufferGeometries() for lossless merge."));var C=this.attributes;for(var L in C)if(u.attributes[L]!==void 0)for(var K=C[L].array,ie=u.attributes[L],ce=ie.array,ge=ie.itemSize*g,Ee=Math.min(ce.length,K.length-ge),Ae=0,We=ge;Ae<Ee;Ae++,We++)K[We]=ce[Ae];return this}console.error("THREE.BufferGeometry.merge(): geometry not an instance of THREE.BufferGeometry.",u)},normalizeNormals:function(){for(var u=this.attributes.normal,g=0,C=u.count;g<C;g++)Os.x=u.getX(g),Os.y=u.getY(g),Os.z=u.getZ(g),Os.normalize(),u.setXYZ(g,Os.x,Os.y,Os.z)},toNonIndexed:function(){function u(mt,Tt){for(var At=mt.array,nn=mt.itemSize,fn=new At.constructor(Tt.length*nn),An=0,zn=0,Dn=0,Qn=Tt.length;Dn<Qn;Dn++){An=Tt[Dn]*nn;for(var Pn=0;Pn<nn;Pn++)fn[zn++]=At[An++]}return new Bn(fn,nn)}if(this.index===null)return console.warn("THREE.BufferGeometry.toNonIndexed(): Geometry is already non-indexed."),this;var g=new qi,C=this.index.array,L=this.attributes;for(var K in L){var ie=u(L[K],C);g.setAttribute(K,ie)}var ce=this.morphAttributes;for(K in ce){for(var ge=[],Ee=ce[K],Ae=0,We=Ee.length;Ae<We;Ae++)ie=u(Ee[Ae],C),ge.push(ie);g.morphAttributes[K]=ge}g.morphTargetsRelative=this.morphTargetsRelative;for(var tt=this.groups,ot=(Ae=0,tt.length);Ae<ot;Ae++){var Oe=tt[Ae];g.addGroup(Oe.start,Oe.count,Oe.materialIndex)}return g},toJSON:function(){var u={metadata:{version:4.5,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(u.uuid=this.uuid,u.type=this.type,this.name!==""&&(u.name=this.name),0<Object.keys(this.userData).length&&(u.userData=this.userData),this.parameters!==void 0){var g=this.parameters;for(var C in g)g[C]!==void 0&&(u[C]=g[C]);return u}u.data={attributes:{}};var L=this.index;L!==null&&(u.data.index={type:L.array.constructor.name,array:Array.prototype.slice.call(L.array)});var K=this.attributes;for(var C in K){var ie=(ot=K[C]).toJSON();ot.name!==""&&(ie.name=ot.name),u.data.attributes[C]=ie}var ce={},ge=!1;for(var C in this.morphAttributes){for(var Ee=this.morphAttributes[C],Ae=[],We=0,tt=Ee.length;We<tt;We++){var ot;ie=(ot=Ee[We]).toJSON(),ot.name!==""&&(ie.name=ot.name),Ae.push(ie)}0<Ae.length&&(ce[C]=Ae,ge=!0)}ge&&(u.data.morphAttributes=ce,u.data.morphTargetsRelative=this.morphTargetsRelative);var Oe=this.groups;0<Oe.length&&(u.data.groups=JSON.parse(JSON.stringify(Oe)));var mt=this.boundingSphere;return mt!==null&&(u.data.boundingSphere={center:mt.center.toArray(),radius:mt.radius}),u},clone:function(){return new qi().copy(this)},copy:function(u){var g,C,L;this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.name=u.name;var K=u.index;K!==null&&this.setIndex(K.clone());var ie=u.attributes;for(g in ie){var ce=ie[g];this.setAttribute(g,ce.clone())}var ge=u.morphAttributes;for(g in ge){var Ee=[],Ae=ge[g];for(C=0,L=Ae.length;C<L;C++)Ee.push(Ae[C].clone());this.morphAttributes[g]=Ee}this.morphTargetsRelative=u.morphTargetsRelative;var We=u.groups;for(C=0,L=We.length;C<L;C++){var tt=We[C];this.addGroup(tt.start,tt.count,tt.materialIndex)}var ot=u.boundingBox;ot!==null&&(this.boundingBox=ot.clone());var Oe=u.boundingSphere;return Oe!==null&&(this.boundingSphere=Oe.clone()),this.drawRange.start=u.drawRange.start,this.drawRange.count=u.drawRange.count,this.userData=u.userData,this},dispose:function(){this.dispatchEvent({type:"dispose"})}});var md=new Ki,Xu=new fo,Zu=new po,Nl=new Kt,Ku=new Kt,Zl=new Kt,Kl=new Kt,rh=new Kt,Fu=new Kt,Cc=new Kt,Bu=new Kt,Bd=new Kt,gd=new Lr,dc=new Lr,Ju=new Lr,So=new Kt,kl=new Kt;function hs(u,g){Sn.call(this),this.type="Mesh",this.geometry=u!==void 0?u:new qi,this.material=g!==void 0?g:new Jn,this.updateMorphTargets()}function Qu(u,g,C,L,K,ie,ce,ge){if((g.side===E?L.intersectTriangle(ce,ie,K,!0,ge):L.intersectTriangle(K,ie,ce,g.side!==I,ge))===null)return null;kl.copy(ge),kl.applyMatrix4(u.matrixWorld);var Ee=C.ray.origin.distanceTo(kl);return Ee<C.near||Ee>C.far?null:{distance:Ee,point:kl.clone(),object:u}}function Nd(u,g,C,L,K,ie,ce,ge,Ee,Ae,We,tt){Nl.fromBufferAttribute(K,Ae),Ku.fromBufferAttribute(K,We),Zl.fromBufferAttribute(K,tt);var ot=u.morphTargetInfluences;if(g.morphTargets&&ie&&ot){Cc.set(0,0,0),Bu.set(0,0,0),Bd.set(0,0,0);for(var Oe=0,mt=ie.length;Oe<mt;Oe++){var Tt=ot[Oe],At=ie[Oe];Tt!==0&&(Kl.fromBufferAttribute(At,Ae),rh.fromBufferAttribute(At,We),Fu.fromBufferAttribute(At,tt),ce?(Cc.addScaledVector(Kl,Tt),Bu.addScaledVector(rh,Tt),Bd.addScaledVector(Fu,Tt)):(Cc.addScaledVector(Kl.sub(Nl),Tt),Bu.addScaledVector(rh.sub(Ku),Tt),Bd.addScaledVector(Fu.sub(Zl),Tt)))}Nl.add(Cc),Ku.add(Bu),Zl.add(Bd)}var nn=Qu(u,g,C,L,Nl,Ku,Zl,So);if(nn){ge&&(gd.fromBufferAttribute(ge,Ae),dc.fromBufferAttribute(ge,We),Ju.fromBufferAttribute(ge,tt),nn.uv=ds.getUV(So,Nl,Ku,Zl,gd,dc,Ju,new Lr)),Ee&&(gd.fromBufferAttribute(Ee,Ae),dc.fromBufferAttribute(Ee,We),Ju.fromBufferAttribute(Ee,tt),nn.uv2=ds.getUV(So,Nl,Ku,Zl,gd,dc,Ju,new Lr));var fn=new Ci(Ae,We,tt);ds.getNormal(Nl,Ku,Zl,fn.normal),nn.face=fn}return nn}hs.prototype=Object.assign(Object.create(Sn.prototype),{constructor:hs,isMesh:!0,copy:function(u){return Sn.prototype.copy.call(this,u),u.morphTargetInfluences!==void 0&&(this.morphTargetInfluences=u.morphTargetInfluences.slice()),u.morphTargetDictionary!==void 0&&(this.morphTargetDictionary=Object.assign({},u.morphTargetDictionary)),this},updateMorphTargets:function(){var u,g,C,L=this.geometry;if(L.isBufferGeometry){var K=L.morphAttributes,ie=Object.keys(K);if(0<ie.length){var ce=K[ie[0]];if(ce!==void 0)for(this.morphTargetInfluences=[],this.morphTargetDictionary={},u=0,g=ce.length;u<g;u++)C=ce[u].name||String(u),this.morphTargetInfluences.push(0),this.morphTargetDictionary[C]=u}}else{var ge=L.morphTargets;ge!==void 0&&0<ge.length&&console.error("THREE.Mesh.updateMorphTargets() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}},raycast:function(u,g){var C,L=this.geometry,K=this.material,ie=this.matrixWorld;if(K!==void 0&&(L.boundingSphere===null&&L.computeBoundingSphere(),Zu.copy(L.boundingSphere),Zu.applyMatrix4(ie),u.ray.intersectsSphere(Zu)!==!1&&(md.getInverse(ie),Xu.copy(u.ray).applyMatrix4(md),L.boundingBox===null||Xu.intersectsBox(L.boundingBox)!==!1))){if(L.isBufferGeometry){var ce,ge,Ee,Ae,We,tt,ot,Oe,mt,Tt=L.index,At=L.attributes.position,nn=L.morphAttributes.position,fn=L.morphTargetsRelative,An=L.attributes.uv,zn=L.attributes.uv2,Dn=L.groups,Qn=L.drawRange;if(Tt!==null)if(Array.isArray(K))for(Ae=0,tt=Dn.length;Ae<tt;Ae++)for(mt=K[(Oe=Dn[Ae]).materialIndex],We=Math.max(Oe.start,Qn.start),ot=Math.min(Oe.start+Oe.count,Qn.start+Qn.count);We<ot;We+=3)ce=Tt.getX(We),ge=Tt.getX(We+1),Ee=Tt.getX(We+2),(C=Nd(this,mt,u,Xu,At,nn,fn,An,zn,ce,ge,Ee))&&(C.faceIndex=Math.floor(We/3),C.face.materialIndex=Oe.materialIndex,g.push(C));else for(Ae=Math.max(0,Qn.start),tt=Math.min(Tt.count,Qn.start+Qn.count);Ae<tt;Ae+=3)ce=Tt.getX(Ae),ge=Tt.getX(Ae+1),Ee=Tt.getX(Ae+2),(C=Nd(this,K,u,Xu,At,nn,fn,An,zn,ce,ge,Ee))&&(C.faceIndex=Math.floor(Ae/3),g.push(C));else if(At!==void 0)if(Array.isArray(K))for(Ae=0,tt=Dn.length;Ae<tt;Ae++)for(mt=K[(Oe=Dn[Ae]).materialIndex],We=Math.max(Oe.start,Qn.start),ot=Math.min(Oe.start+Oe.count,Qn.start+Qn.count);We<ot;We+=3)(C=Nd(this,mt,u,Xu,At,nn,fn,An,zn,ce=We,ge=We+1,Ee=We+2))&&(C.faceIndex=Math.floor(We/3),C.face.materialIndex=Oe.materialIndex,g.push(C));else for(Ae=Math.max(0,Qn.start),tt=Math.min(At.count,Qn.start+Qn.count);Ae<tt;Ae+=3)(C=Nd(this,K,u,Xu,At,nn,fn,An,zn,ce=Ae,ge=Ae+1,Ee=Ae+2))&&(C.faceIndex=Math.floor(Ae/3),g.push(C))}else if(L.isGeometry){var Pn,cr,Cr,_r,Er=Array.isArray(K),Vr=L.vertices,si=L.faces,Ar=L.faceVertexUvs[0];0<Ar.length&&(_r=Ar);for(var vr=0,yi=si.length;vr<yi;vr++){var Bi=si[vr],ya=Er?K[Bi.materialIndex]:K;if(ya!==void 0&&(Pn=Vr[Bi.a],cr=Vr[Bi.b],Cr=Vr[Bi.c],C=Qu(this,ya,u,Xu,Pn,cr,Cr,So))){if(_r&&_r[vr]){var sa=_r[vr];gd.copy(sa[0]),dc.copy(sa[1]),Ju.copy(sa[2]),C.uv=ds.getUV(So,Pn,cr,Cr,gd,dc,Ju,new Lr)}C.face=Bi,C.faceIndex=vr,g.push(C)}}}}},clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}});var Nu=0,Vl=new Ki,ec=new Sn,ks=new Kt;function Fa(){Object.defineProperty(this,"id",{value:Nu+=2}),this.uuid=Ta.generateUUID(),this.name="",this.type="Geometry",this.vertices=[],this.colors=[],this.faces=[],this.faceVertexUvs=[[]],this.morphTargets=[],this.morphNormals=[],this.skinWeights=[],this.skinIndices=[],this.lineDistances=[],this.boundingBox=null,this.boundingSphere=null,this.elementsNeedUpdate=!1,this.verticesNeedUpdate=!1,this.uvsNeedUpdate=!1,this.normalsNeedUpdate=!1,this.colorsNeedUpdate=!1,this.lineDistancesNeedUpdate=!1,this.groupsNeedUpdate=!1}Fa.prototype=Object.assign(Object.create(jo.prototype),{constructor:Fa,isGeometry:!0,applyMatrix4:function(u){for(var g=new Vo().getNormalMatrix(u),C=0,L=this.vertices.length;C<L;C++)this.vertices[C].applyMatrix4(u);for(C=0,L=this.faces.length;C<L;C++){var K=this.faces[C];K.normal.applyMatrix3(g).normalize();for(var ie=0,ce=K.vertexNormals.length;ie<ce;ie++)K.vertexNormals[ie].applyMatrix3(g).normalize()}return this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this.verticesNeedUpdate=!0,this.normalsNeedUpdate=!0,this},rotateX:function(u){return Vl.makeRotationX(u),this.applyMatrix4(Vl),this},rotateY:function(u){return Vl.makeRotationY(u),this.applyMatrix4(Vl),this},rotateZ:function(u){return Vl.makeRotationZ(u),this.applyMatrix4(Vl),this},translate:function(u,g,C){return Vl.makeTranslation(u,g,C),this.applyMatrix4(Vl),this},scale:function(u,g,C){return Vl.makeScale(u,g,C),this.applyMatrix4(Vl),this},lookAt:function(u){return ec.lookAt(u),ec.updateMatrix(),this.applyMatrix4(ec.matrix),this},fromBufferGeometry:function(u){var g=this,C=u.index!==null?u.index.array:void 0,L=u.attributes;if(L.position===void 0)return console.error("THREE.Geometry.fromBufferGeometry(): Position attribute required for conversion."),this;var K=L.position.array,ie=L.normal!==void 0?L.normal.array:void 0,ce=L.color!==void 0?L.color.array:void 0,ge=L.uv!==void 0?L.uv.array:void 0,Ee=L.uv2!==void 0?L.uv2.array:void 0;Ee!==void 0&&(this.faceVertexUvs[1]=[]);for(var Ae=0;Ae<K.length;Ae+=3)g.vertices.push(new Kt().fromArray(K,Ae)),ce!==void 0&&g.colors.push(new Fn().fromArray(ce,Ae));function We(At,nn,fn,An){var zn=ce===void 0?[]:[g.colors[At].clone(),g.colors[nn].clone(),g.colors[fn].clone()],Dn=new Ci(At,nn,fn,ie===void 0?[]:[new Kt().fromArray(ie,3*At),new Kt().fromArray(ie,3*nn),new Kt().fromArray(ie,3*fn)],zn,An);g.faces.push(Dn),ge!==void 0&&g.faceVertexUvs[0].push([new Lr().fromArray(ge,2*At),new Lr().fromArray(ge,2*nn),new Lr().fromArray(ge,2*fn)]),Ee!==void 0&&g.faceVertexUvs[1].push([new Lr().fromArray(Ee,2*At),new Lr().fromArray(Ee,2*nn),new Lr().fromArray(Ee,2*fn)])}var tt=u.groups;if(0<tt.length)for(Ae=0;Ae<tt.length;Ae++)for(var ot=tt[Ae],Oe=ot.start,mt=Oe,Tt=Oe+ot.count;mt<Tt;mt+=3)C!==void 0?We(C[mt],C[mt+1],C[mt+2],ot.materialIndex):We(mt,mt+1,mt+2,ot.materialIndex);else if(C!==void 0)for(Ae=0;Ae<C.length;Ae+=3)We(C[Ae],C[Ae+1],C[Ae+2]);else for(Ae=0;Ae<K.length/3;Ae+=3)We(Ae,Ae+1,Ae+2);return this.computeFaceNormals(),u.boundingBox!==null&&(this.boundingBox=u.boundingBox.clone()),u.boundingSphere!==null&&(this.boundingSphere=u.boundingSphere.clone()),this},center:function(){return this.computeBoundingBox(),this.boundingBox.getCenter(ks).negate(),this.translate(ks.x,ks.y,ks.z),this},normalize:function(){this.computeBoundingSphere();var u=this.boundingSphere.center,g=this.boundingSphere.radius,C=g===0?1:1/g,L=new Ki;return L.set(C,0,0,-C*u.x,0,C,0,-C*u.y,0,0,C,-C*u.z,0,0,0,1),this.applyMatrix4(L),this},computeFaceNormals:function(){for(var u=new Kt,g=new Kt,C=0,L=this.faces.length;C<L;C++){var K=this.faces[C],ie=this.vertices[K.a],ce=this.vertices[K.b],ge=this.vertices[K.c];u.subVectors(ge,ce),g.subVectors(ie,ce),u.cross(g),u.normalize(),K.normal.copy(u)}},computeVertexNormals:function(u){var g,C,L,K,ie,ce;for(u===void 0&&(u=!0),ce=new Array(this.vertices.length),g=0,C=this.vertices.length;g<C;g++)ce[g]=new Kt;if(u){var ge,Ee,Ae,We=new Kt,tt=new Kt;for(L=0,K=this.faces.length;L<K;L++)ie=this.faces[L],ge=this.vertices[ie.a],Ee=this.vertices[ie.b],Ae=this.vertices[ie.c],We.subVectors(Ae,Ee),tt.subVectors(ge,Ee),We.cross(tt),ce[ie.a].add(We),ce[ie.b].add(We),ce[ie.c].add(We)}else for(this.computeFaceNormals(),L=0,K=this.faces.length;L<K;L++)ce[(ie=this.faces[L]).a].add(ie.normal),ce[ie.b].add(ie.normal),ce[ie.c].add(ie.normal);for(g=0,C=this.vertices.length;g<C;g++)ce[g].normalize();for(L=0,K=this.faces.length;L<K;L++){var ot=(ie=this.faces[L]).vertexNormals;ot.length===3?(ot[0].copy(ce[ie.a]),ot[1].copy(ce[ie.b]),ot[2].copy(ce[ie.c])):(ot[0]=ce[ie.a].clone(),ot[1]=ce[ie.b].clone(),ot[2]=ce[ie.c].clone())}0<this.faces.length&&(this.normalsNeedUpdate=!0)},computeFlatVertexNormals:function(){var u,g,C;for(this.computeFaceNormals(),u=0,g=this.faces.length;u<g;u++){var L=(C=this.faces[u]).vertexNormals;L.length===3?(L[0].copy(C.normal),L[1].copy(C.normal),L[2].copy(C.normal)):(L[0]=C.normal.clone(),L[1]=C.normal.clone(),L[2]=C.normal.clone())}0<this.faces.length&&(this.normalsNeedUpdate=!0)},computeMorphNormals:function(){var u,g,C,L,K;for(C=0,L=this.faces.length;C<L;C++)for((K=this.faces[C]).__originalFaceNormal?K.__originalFaceNormal.copy(K.normal):K.__originalFaceNormal=K.normal.clone(),K.__originalVertexNormals||(K.__originalVertexNormals=[]),u=0,g=K.vertexNormals.length;u<g;u++)K.__originalVertexNormals[u]?K.__originalVertexNormals[u].copy(K.vertexNormals[u]):K.__originalVertexNormals[u]=K.vertexNormals[u].clone();var ie=new Fa;for(ie.faces=this.faces,u=0,g=this.morphTargets.length;u<g;u++){if(!this.morphNormals[u]){this.morphNormals[u]={},this.morphNormals[u].faceNormals=[],this.morphNormals[u].vertexNormals=[];var ce=this.morphNormals[u].faceNormals,ge=this.morphNormals[u].vertexNormals;for(C=0,L=this.faces.length;C<L;C++)Ee=new Kt,Ae={a:new Kt,b:new Kt,c:new Kt},ce.push(Ee),ge.push(Ae)}var Ee,Ae,We=this.morphNormals[u];for(ie.vertices=this.morphTargets[u].vertices,ie.computeFaceNormals(),ie.computeVertexNormals(),C=0,L=this.faces.length;C<L;C++)K=this.faces[C],Ee=We.faceNormals[C],Ae=We.vertexNormals[C],Ee.copy(K.normal),Ae.a.copy(K.vertexNormals[0]),Ae.b.copy(K.vertexNormals[1]),Ae.c.copy(K.vertexNormals[2])}for(C=0,L=this.faces.length;C<L;C++)(K=this.faces[C]).normal=K.__originalFaceNormal,K.vertexNormals=K.__originalVertexNormals},computeBoundingBox:function(){this.boundingBox===null&&(this.boundingBox=new Ss),this.boundingBox.setFromPoints(this.vertices)},computeBoundingSphere:function(){this.boundingSphere===null&&(this.boundingSphere=new po),this.boundingSphere.setFromPoints(this.vertices)},merge:function(u,g,C){if(u&&u.isGeometry){var L,K=this.vertices.length,ie=this.vertices,ce=u.vertices,ge=this.faces,Ee=u.faces,Ae=this.colors,We=u.colors;C===void 0&&(C=0),g!==void 0&&(L=new Vo().getNormalMatrix(g));for(var tt=0,ot=ce.length;tt<ot;tt++){var Oe=ce[tt].clone();g!==void 0&&Oe.applyMatrix4(g),ie.push(Oe)}for(tt=0,ot=We.length;tt<ot;tt++)Ae.push(We[tt].clone());for(tt=0,ot=Ee.length;tt<ot;tt++){var mt,Tt,At,nn=Ee[tt],fn=nn.vertexNormals,An=nn.vertexColors;(mt=new Ci(nn.a+K,nn.b+K,nn.c+K)).normal.copy(nn.normal),L!==void 0&&mt.normal.applyMatrix3(L).normalize();for(var zn=0,Dn=fn.length;zn<Dn;zn++)Tt=fn[zn].clone(),L!==void 0&&Tt.applyMatrix3(L).normalize(),mt.vertexNormals.push(Tt);for(mt.color.copy(nn.color),zn=0,Dn=An.length;zn<Dn;zn++)At=An[zn],mt.vertexColors.push(At.clone());mt.materialIndex=nn.materialIndex+C,ge.push(mt)}for(tt=0,ot=u.faceVertexUvs.length;tt<ot;tt++){var Qn=u.faceVertexUvs[tt];for(this.faceVertexUvs[tt]===void 0&&(this.faceVertexUvs[tt]=[]),zn=0,Dn=Qn.length;zn<Dn;zn++){for(var Pn=Qn[zn],cr=[],Cr=0,_r=Pn.length;Cr<_r;Cr++)cr.push(Pn[Cr].clone());this.faceVertexUvs[tt].push(cr)}}}else console.error("THREE.Geometry.merge(): geometry not an instance of THREE.Geometry.",u)},mergeMesh:function(u){u&&u.isMesh?(u.matrixAutoUpdate&&u.updateMatrix(),this.merge(u.geometry,u.matrix)):console.error("THREE.Geometry.mergeMesh(): mesh not an instance of THREE.Mesh.",u)},mergeVertices:function(){var u,g,C,L,K,ie,ce,ge,Ee={},Ae=[],We=[],tt=Math.pow(10,4);for(C=0,L=this.vertices.length;C<L;C++)u=this.vertices[C],Ee[g=Math.round(u.x*tt)+"_"+Math.round(u.y*tt)+"_"+Math.round(u.z*tt)]===void 0?(Ee[g]=C,Ae.push(this.vertices[C]),We[C]=Ae.length-1):We[C]=We[Ee[g]];var ot=[];for(C=0,L=this.faces.length;C<L;C++){(K=this.faces[C]).a=We[K.a],K.b=We[K.b],K.c=We[K.c],ie=[K.a,K.b,K.c];for(var Oe=0;Oe<3;Oe++)if(ie[Oe]===ie[(Oe+1)%3]){ot.push(C);break}}for(C=ot.length-1;0<=C;C--){var mt=ot[C];for(this.faces.splice(mt,1),ce=0,ge=this.faceVertexUvs.length;ce<ge;ce++)this.faceVertexUvs[ce].splice(mt,1)}var Tt=this.vertices.length-Ae.length;return this.vertices=Ae,Tt},setFromPoints:function(u){this.vertices=[];for(var g=0,C=u.length;g<C;g++){var L=u[g];this.vertices.push(new Kt(L.x,L.y,L.z||0))}return this},sortFacesByMaterialIndex:function(){for(var u=this.faces,g=u.length,C=0;C<g;C++)u[C]._id=C;u.sort(function(Ee,Ae){return Ee.materialIndex-Ae.materialIndex});var L,K,ie=this.faceVertexUvs[0],ce=this.faceVertexUvs[1];for(ie&&ie.length===g&&(L=[]),ce&&ce.length===g&&(K=[]),C=0;C<g;C++){var ge=u[C]._id;L&&L.push(ie[ge]),K&&K.push(ce[ge])}L&&(this.faceVertexUvs[0]=L),K&&(this.faceVertexUvs[1]=K)},toJSON:function(){var u={metadata:{version:4.5,type:"Geometry",generator:"Geometry.toJSON"}};if(u.uuid=this.uuid,u.type=this.type,this.name!==""&&(u.name=this.name),this.parameters!==void 0){var g=this.parameters;for(var C in g)g[C]!==void 0&&(u[C]=g[C]);return u}for(var L=[],K=0;K<this.vertices.length;K++){var ie=this.vertices[K];L.push(ie.x,ie.y,ie.z)}var ce=[],ge=[],Ee={},Ae=[],We={},tt=[],ot={};for(K=0;K<this.faces.length;K++){var Oe=this.faces[K],mt=this.faceVertexUvs[0][K]!==void 0,Tt=0<Oe.normal.length(),At=0<Oe.vertexNormals.length,nn=Oe.color.r!==1||Oe.color.g!==1||Oe.color.b!==1,fn=0<Oe.vertexColors.length,An=0;if(An=Pn(An=Pn(An=Pn(An=Pn(An=Pn(An=Pn(An=Pn(An=Pn(An,0,0),1,!0),2,!1),3,mt),4,Tt),5,At),6,nn),7,fn),ce.push(An),ce.push(Oe.a,Oe.b,Oe.c),ce.push(Oe.materialIndex),mt){var zn=this.faceVertexUvs[0][K];ce.push(_r(zn[0]),_r(zn[1]),_r(zn[2]))}if(Tt&&ce.push(cr(Oe.normal)),At){var Dn=Oe.vertexNormals;ce.push(cr(Dn[0]),cr(Dn[1]),cr(Dn[2]))}if(nn&&ce.push(Cr(Oe.color)),fn){var Qn=Oe.vertexColors;ce.push(Cr(Qn[0]),Cr(Qn[1]),Cr(Qn[2]))}}function Pn(Er,Vr,si){return si?Er|1<<Vr:Er&~(1<<Vr)}function cr(Er){var Vr=Er.x.toString()+Er.y.toString()+Er.z.toString();return Ee[Vr]!==void 0||(Ee[Vr]=ge.length/3,ge.push(Er.x,Er.y,Er.z)),Ee[Vr]}function Cr(Er){var Vr=Er.r.toString()+Er.g.toString()+Er.b.toString();return We[Vr]!==void 0||(We[Vr]=Ae.length,Ae.push(Er.getHex())),We[Vr]}function _r(Er){var Vr=Er.x.toString()+Er.y.toString();return ot[Vr]!==void 0||(ot[Vr]=tt.length/2,tt.push(Er.x,Er.y)),ot[Vr]}return u.data={},u.data.vertices=L,u.data.normals=ge,0<Ae.length&&(u.data.colors=Ae),0<tt.length&&(u.data.uvs=[tt]),u.data.faces=ce,u},clone:function(){return new Fa().copy(this)},copy:function(u){var g,C,L,K,ie,ce;this.vertices=[],this.colors=[],this.faces=[],this.faceVertexUvs=[[]],this.morphTargets=[],this.morphNormals=[],this.skinWeights=[],this.skinIndices=[],this.lineDistances=[],this.boundingBox=null,this.boundingSphere=null,this.name=u.name;var ge=u.vertices;for(g=0,C=ge.length;g<C;g++)this.vertices.push(ge[g].clone());var Ee=u.colors;for(g=0,C=Ee.length;g<C;g++)this.colors.push(Ee[g].clone());var Ae=u.faces;for(g=0,C=Ae.length;g<C;g++)this.faces.push(Ae[g].clone());for(g=0,C=u.faceVertexUvs.length;g<C;g++){var We=u.faceVertexUvs[g];for(this.faceVertexUvs[g]===void 0&&(this.faceVertexUvs[g]=[]),L=0,K=We.length;L<K;L++){var tt=We[L],ot=[];for(ie=0,ce=tt.length;ie<ce;ie++){var Oe=tt[ie];ot.push(Oe.clone())}this.faceVertexUvs[g].push(ot)}}var mt=u.morphTargets;for(g=0,C=mt.length;g<C;g++){var Tt={};if(Tt.name=mt[g].name,mt[g].vertices!==void 0)for(Tt.vertices=[],L=0,K=mt[g].vertices.length;L<K;L++)Tt.vertices.push(mt[g].vertices[L].clone());if(mt[g].normals!==void 0)for(Tt.normals=[],L=0,K=mt[g].normals.length;L<K;L++)Tt.normals.push(mt[g].normals[L].clone());this.morphTargets.push(Tt)}var At=u.morphNormals;for(g=0,C=At.length;g<C;g++){var nn={};if(At[g].vertexNormals!==void 0)for(nn.vertexNormals=[],L=0,K=At[g].vertexNormals.length;L<K;L++){var fn=At[g].vertexNormals[L],An={};An.a=fn.a.clone(),An.b=fn.b.clone(),An.c=fn.c.clone(),nn.vertexNormals.push(An)}if(At[g].faceNormals!==void 0)for(nn.faceNormals=[],L=0,K=At[g].faceNormals.length;L<K;L++)nn.faceNormals.push(At[g].faceNormals[L].clone());this.morphNormals.push(nn)}var zn=u.skinWeights;for(g=0,C=zn.length;g<C;g++)this.skinWeights.push(zn[g].clone());var Dn=u.skinIndices;for(g=0,C=Dn.length;g<C;g++)this.skinIndices.push(Dn[g].clone());var Qn=u.lineDistances;for(g=0,C=Qn.length;g<C;g++)this.lineDistances.push(Qn[g]);var Pn=u.boundingBox;Pn!==null&&(this.boundingBox=Pn.clone());var cr=u.boundingSphere;return cr!==null&&(this.boundingSphere=cr.clone()),this.elementsNeedUpdate=u.elementsNeedUpdate,this.verticesNeedUpdate=u.verticesNeedUpdate,this.uvsNeedUpdate=u.uvsNeedUpdate,this.normalsNeedUpdate=u.normalsNeedUpdate,this.colorsNeedUpdate=u.colorsNeedUpdate,this.lineDistancesNeedUpdate=u.lineDistancesNeedUpdate,this.groupsNeedUpdate=u.groupsNeedUpdate,this},dispose:function(){this.dispatchEvent({type:"dispose"})}});var Si=function(u){function g(C,L,K,ie,ce,ge){u.call(this),this.type="BoxGeometry",this.parameters={width:C,height:L,depth:K,widthSegments:ie,heightSegments:ce,depthSegments:ge},this.fromBufferGeometry(new Vd(C,L,K,ie,ce,ge)),this.mergeVertices()}return u&&(g.__proto__=u),(g.prototype=Object.create(u&&u.prototype)).constructor=g}(Fa),Vd=function(u){function g(C,L,K,ie,ce,ge){u.call(this),this.type="BoxBufferGeometry",this.parameters={width:C,height:L,depth:K,widthSegments:ie,heightSegments:ce,depthSegments:ge};var Ee=this;C=C||1,L=L||1,K=K||1,ie=Math.floor(ie)||1,ce=Math.floor(ce)||1;var Ae=[],We=[],tt=[],ot=[],Oe=0,mt=0;function Tt(At,nn,fn,An,zn,Dn,Qn,Pn,cr,Cr,_r){var Er,Vr,si=Dn/cr,Ar=Qn/Cr,vr=Dn/2,yi=Qn/2,Bi=Pn/2,ya=cr+1,sa=Cr+1,oa=0,$a=0,ta=new Kt;for(Vr=0;Vr<sa;Vr++){var Mn=Vr*Ar-yi;for(Er=0;Er<ya;Er++){var Wn=Er*si-vr;ta[At]=Wn*An,ta[nn]=Mn*zn,ta[fn]=Bi,We.push(ta.x,ta.y,ta.z),ta[At]=0,ta[nn]=0,ta[fn]=0<Pn?1:-1,tt.push(ta.x,ta.y,ta.z),ot.push(Er/cr),ot.push(1-Vr/Cr),oa+=1}}for(Vr=0;Vr<Cr;Vr++)for(Er=0;Er<cr;Er++){var ai=Oe+Er+ya*Vr,Zr=Oe+Er+ya*(Vr+1),Ga=Oe+(Er+1)+ya*(Vr+1),ia=Oe+(Er+1)+ya*Vr;Ae.push(ai,Zr,ia),Ae.push(Zr,Ga,ia),$a+=6}Ee.addGroup(mt,$a,_r),mt+=$a,Oe+=oa}Tt("z","y","x",-1,-1,K,L,C,ge=Math.floor(ge)||1,ce,0),Tt("z","y","x",1,-1,K,L,-C,ge,ce,1),Tt("x","z","y",1,1,C,K,L,ie,ge,2),Tt("x","z","y",1,-1,C,K,-L,ie,ge,3),Tt("x","y","z",1,-1,C,L,K,ie,ce,4),Tt("x","y","z",-1,-1,C,L,-K,ie,ce,5),this.setIndex(Ae),this.setAttribute("position",new Fr(We,3)),this.setAttribute("normal",new Fr(tt,3)),this.setAttribute("uv",new Fr(ot,2))}return u&&(g.__proto__=u),(g.prototype=Object.create(u&&u.prototype)).constructor=g}(qi);function tc(u){var g={};for(var C in u)for(var L in g[C]={},u[C]){var K=u[C][L];K&&(K.isColor||K.isMatrix3||K.isMatrix4||K.isVector2||K.isVector3||K.isVector4||K.isTexture)?g[C][L]=K.clone():Array.isArray(K)?g[C][L]=K.slice():g[C][L]=K}return g}function Ks(u){for(var g={},C=0;C<u.length;C++){var L=tc(u[C]);for(var K in L)g[K]=L[K]}return g}var Hc={clone:tc,merge:Ks},yd=`void main() {
  4. gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
  5. }`,Th=`void main() {
  6. gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );
  7. }`;function zl(u){Wt.call(this),this.type="ShaderMaterial",this.defines={},this.uniforms={},this.vertexShader=yd,this.fragmentShader=Th,this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.clipping=!1,this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.extensions={derivatives:!1,fragDepth:!1,drawBuffers:!1,shaderTextureLOD:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv2:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,u!==void 0&&(u.attributes!==void 0&&console.error("THREE.ShaderMaterial: attributes should now be defined in THREE.BufferGeometry instead."),this.setValues(u))}function lu(){Sn.call(this),this.type="Camera",this.matrixWorldInverse=new Ki,this.projectionMatrix=new Ki,this.projectionMatrixInverse=new Ki}function Js(u,g,C,L){lu.call(this),this.type="PerspectiveCamera",this.fov=u!==void 0?u:50,this.zoom=1,this.near=C!==void 0?C:.1,this.far=L!==void 0?L:2e3,this.focus=10,this.aspect=g!==void 0?g:1,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}function Wc(u,g,C,L){Sn.call(this),this.type="CubeCamera";var K=new Js(90,1,u,g);K.up.set(0,-1,0),K.lookAt(new Kt(1,0,0)),this.add(K);var ie=new Js(90,1,u,g);ie.up.set(0,-1,0),ie.lookAt(new Kt(-1,0,0)),this.add(ie);var ce=new Js(90,1,u,g);ce.up.set(0,0,1),ce.lookAt(new Kt(0,1,0)),this.add(ce);var ge=new Js(90,1,u,g);ge.up.set(0,0,-1),ge.lookAt(new Kt(0,-1,0)),this.add(ge);var Ee=new Js(90,1,u,g);Ee.up.set(0,-1,0),Ee.lookAt(new Kt(0,0,1)),this.add(Ee);var Ae=new Js(90,1,u,g);Ae.up.set(0,-1,0),Ae.lookAt(new Kt(0,0,-1)),this.add(Ae),L=L||{format:jt,magFilter:sn,minFilter:sn},this.renderTarget=new Sc(C,L),this.renderTarget.texture.name="CubeCamera",this.update=function(We,tt){this.parent===null&&this.updateMatrixWorld();var ot=We.getRenderTarget(),Oe=this.renderTarget,mt=Oe.texture.generateMipmaps;Oe.texture.generateMipmaps=!1,We.setRenderTarget(Oe,0),We.render(tt,K),We.setRenderTarget(Oe,1),We.render(tt,ie),We.setRenderTarget(Oe,2),We.render(tt,ce),We.setRenderTarget(Oe,3),We.render(tt,ge),We.setRenderTarget(Oe,4),We.render(tt,Ee),Oe.texture.generateMipmaps=mt,We.setRenderTarget(Oe,5),We.render(tt,Ae),We.setRenderTarget(ot)},this.clear=function(We,tt,ot,Oe){for(var mt=We.getRenderTarget(),Tt=this.renderTarget,At=0;At<6;At++)We.setRenderTarget(Tt,At),We.clear(tt,ot,Oe);We.setRenderTarget(mt)}}function Sc(u,g,C){Number.isInteger(g)&&(console.warn("THREE.WebGLCubeRenderTarget: constructor signature is now WebGLCubeRenderTarget( size, options )"),g=C),Rs.call(this,u,u,g)}function Ec(u,g,C,L,K,ie,ce,ge,Ee,Ae,We,tt){vo.call(this,null,ie,ce,ge,Ee,Ae,L,K,We,tt),this.image={data:u||null,width:g||1,height:C||1},this.magFilter=Ee!==void 0?Ee:Ie,this.minFilter=Ae!==void 0?Ae:Ie,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1,this.needsUpdate=!0}((zl.prototype=Object.create(Wt.prototype)).constructor=zl).prototype.isShaderMaterial=!0,zl.prototype.copy=function(u){return Wt.prototype.copy.call(this,u),this.fragmentShader=u.fragmentShader,this.vertexShader=u.vertexShader,this.uniforms=tc(u.uniforms),this.defines=Object.assign({},u.defines),this.wireframe=u.wireframe,this.wireframeLinewidth=u.wireframeLinewidth,this.lights=u.lights,this.clipping=u.clipping,this.skinning=u.skinning,this.morphTargets=u.morphTargets,this.morphNormals=u.morphNormals,this.extensions=u.extensions,this},zl.prototype.toJSON=function(u){var g=Wt.prototype.toJSON.call(this,u);for(var C in g.uniforms={},this.uniforms){var L=this.uniforms[C].value;L&&L.isTexture?g.uniforms[C]={type:"t",value:L.toJSON(u).uuid}:L&&L.isColor?g.uniforms[C]={type:"c",value:L.getHex()}:L&&L.isVector2?g.uniforms[C]={type:"v2",value:L.toArray()}:L&&L.isVector3?g.uniforms[C]={type:"v3",value:L.toArray()}:L&&L.isVector4?g.uniforms[C]={type:"v4",value:L.toArray()}:L&&L.isMatrix3?g.uniforms[C]={type:"m3",value:L.toArray()}:L&&L.isMatrix4?g.uniforms[C]={type:"m4",value:L.toArray()}:g.uniforms[C]={value:L}}0<Object.keys(this.defines).length&&(g.defines=this.defines),g.vertexShader=this.vertexShader,g.fragmentShader=this.fragmentShader;var K={};for(var ie in this.extensions)this.extensions[ie]===!0&&(K[ie]=!0);return 0<Object.keys(K).length&&(g.extensions=K),g},lu.prototype=Object.assign(Object.create(Sn.prototype),{constructor:lu,isCamera:!0,copy:function(u,g){return Sn.prototype.copy.call(this,u,g),this.matrixWorldInverse.copy(u.matrixWorldInverse),this.projectionMatrix.copy(u.projectionMatrix),this.projectionMatrixInverse.copy(u.projectionMatrixInverse),this},getWorldDirection:function(u){u===void 0&&(console.warn("THREE.Camera: .getWorldDirection() target is now required"),u=new Kt),this.updateMatrixWorld(!0);var g=this.matrixWorld.elements;return u.set(-g[8],-g[9],-g[10]).normalize()},updateMatrixWorld:function(u){Sn.prototype.updateMatrixWorld.call(this,u),this.matrixWorldInverse.getInverse(this.matrixWorld)},updateWorldMatrix:function(u,g){Sn.prototype.updateWorldMatrix.call(this,u,g),this.matrixWorldInverse.getInverse(this.matrixWorld)},clone:function(){return new this.constructor().copy(this)}}),Js.prototype=Object.assign(Object.create(lu.prototype),{constructor:Js,isPerspectiveCamera:!0,copy:function(u,g){return lu.prototype.copy.call(this,u,g),this.fov=u.fov,this.zoom=u.zoom,this.near=u.near,this.far=u.far,this.focus=u.focus,this.aspect=u.aspect,this.view=u.view===null?null:Object.assign({},u.view),this.filmGauge=u.filmGauge,this.filmOffset=u.filmOffset,this},setFocalLength:function(u){var g=.5*this.getFilmHeight()/u;this.fov=2*Ta.RAD2DEG*Math.atan(g),this.updateProjectionMatrix()},getFocalLength:function(){var u=Math.tan(.5*Ta.DEG2RAD*this.fov);return .5*this.getFilmHeight()/u},getEffectiveFOV:function(){return 2*Ta.RAD2DEG*Math.atan(Math.tan(.5*Ta.DEG2RAD*this.fov)/this.zoom)},getFilmWidth:function(){return this.filmGauge*Math.min(this.aspect,1)},getFilmHeight:function(){return this.filmGauge/Math.max(this.aspect,1)},setViewOffset:function(u,g,C,L,K,ie){this.aspect=u/g,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=u,this.view.fullHeight=g,this.view.offsetX=C,this.view.offsetY=L,this.view.width=K,this.view.height=ie,this.updateProjectionMatrix()},clearViewOffset:function(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()},updateProjectionMatrix:function(){var u=this.near,g=u*Math.tan(.5*Ta.DEG2RAD*this.fov)/this.zoom,C=2*g,L=this.aspect*C,K=-.5*L,ie=this.view;if(this.view!==null&&this.view.enabled){var ce=ie.fullWidth,ge=ie.fullHeight;K+=ie.offsetX*L/ce,g-=ie.offsetY*C/ge,L*=ie.width/ce,C*=ie.height/ge}var Ee=this.filmOffset;Ee!==0&&(K+=u*Ee/this.getFilmWidth()),this.projectionMatrix.makePerspective(K,K+L,g,g-C,u,this.far),this.projectionMatrixInverse.getInverse(this.projectionMatrix)},toJSON:function(u){var g=Sn.prototype.toJSON.call(this,u);return g.object.fov=this.fov,g.object.zoom=this.zoom,g.object.near=this.near,g.object.far=this.far,g.object.focus=this.focus,g.object.aspect=this.aspect,this.view!==null&&(g.object.view=Object.assign({},this.view)),g.object.filmGauge=this.filmGauge,g.object.filmOffset=this.filmOffset,g}}),(Wc.prototype=Object.create(Sn.prototype)).constructor=Wc,((Sc.prototype=Object.create(Rs.prototype)).constructor=Sc).prototype.isWebGLCubeRenderTarget=!0,Sc.prototype.fromEquirectangularTexture=function(u,g){this.texture.type=g.type,this.texture.format=g.format,this.texture.encoding=g.encoding;var C=new Gn,L={uniforms:{tEquirect:{value:null}},vertexShader:["varying vec3 vWorldDirection;","vec3 transformDirection( in vec3 dir, in mat4 matrix ) {"," return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );","}","void main() {"," vWorldDirection = transformDirection( position, modelMatrix );"," #include <begin_vertex>"," #include <project_vertex>","}"].join(`
  8. `),fragmentShader:["uniform sampler2D tEquirect;","varying vec3 vWorldDirection;","#define RECIPROCAL_PI 0.31830988618","#define RECIPROCAL_PI2 0.15915494","void main() {"," vec3 direction = normalize( vWorldDirection );"," vec2 sampleUV;"," sampleUV.y = asin( clamp( direction.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;"," sampleUV.x = atan( direction.z, direction.x ) * RECIPROCAL_PI2 + 0.5;"," gl_FragColor = texture2D( tEquirect, sampleUV );","}"].join(`
  9. `)},K=new zl({type:"CubemapFromEquirect",uniforms:tc(L.uniforms),vertexShader:L.vertexShader,fragmentShader:L.fragmentShader,side:E,blending:N});K.uniforms.tEquirect.value=g;var ie=new hs(new Vd(5,5,5),K);C.add(ie);var ce=new Wc(1,10,1);return ce.renderTarget=this,ce.renderTarget.texture.name="CubeCameraTexture",ce.update(u,C),ie.geometry.dispose(),ie.material.dispose(),this},((Ec.prototype=Object.create(vo.prototype)).constructor=Ec).prototype.isDataTexture=!0;var nc=new po,hc=new Kt;function Yc(u,g,C,L,K,ie){this.planes=[u!==void 0?u:new Wo,g!==void 0?g:new Wo,C!==void 0?C:new Wo,L!==void 0?L:new Wo,K!==void 0?K:new Wo,ie!==void 0?ie:new Wo]}Object.assign(Yc.prototype,{set:function(u,g,C,L,K,ie){var ce=this.planes;return ce[0].copy(u),ce[1].copy(g),ce[2].copy(C),ce[3].copy(L),ce[4].copy(K),ce[5].copy(ie),this},clone:function(){return new this.constructor().copy(this)},copy:function(u){for(var g=this.planes,C=0;C<6;C++)g[C].copy(u.planes[C]);return this},setFromProjectionMatrix:function(u){var g=this.planes,C=u.elements,L=C[0],K=C[1],ie=C[2],ce=C[3],ge=C[4],Ee=C[5],Ae=C[6],We=C[7],tt=C[8],ot=C[9],Oe=C[10],mt=C[11],Tt=C[12],At=C[13],nn=C[14],fn=C[15];return g[0].setComponents(ce-L,We-ge,mt-tt,fn-Tt).normalize(),g[1].setComponents(ce+L,We+ge,mt+tt,fn+Tt).normalize(),g[2].setComponents(ce+K,We+Ee,mt+ot,fn+At).normalize(),g[3].setComponents(ce-K,We-Ee,mt-ot,fn-At).normalize(),g[4].setComponents(ce-ie,We-Ae,mt-Oe,fn-nn).normalize(),g[5].setComponents(ce+ie,We+Ae,mt+Oe,fn+nn).normalize(),this},intersectsObject:function(u){var g=u.geometry;return g.boundingSphere===null&&g.computeBoundingSphere(),nc.copy(g.boundingSphere).applyMatrix4(u.matrixWorld),this.intersectsSphere(nc)},intersectsSprite:function(u){return nc.center.set(0,0,0),nc.radius=.7071067811865476,nc.applyMatrix4(u.matrixWorld),this.intersectsSphere(nc)},intersectsSphere:function(u){for(var g=this.planes,C=u.center,L=-u.radius,K=0;K<6;K++)if(g[K].distanceToPoint(C)<L)return!1;return!0},intersectsBox:function(u){for(var g=this.planes,C=0;C<6;C++){var L=g[C];if(hc.x=0<L.normal.x?u.max.x:u.min.x,hc.y=0<L.normal.y?u.max.y:u.min.y,hc.z=0<L.normal.z?u.max.z:u.min.z,L.distanceToPoint(hc)<0)return!1}return!0},containsPoint:function(u){for(var g=this.planes,C=0;C<6;C++)if(g[C].distanceToPoint(u)<0)return!1;return!0}});var Wi={common:{diffuse:{value:new Fn(15658734)},opacity:{value:1},map:{value:null},uvTransform:{value:new Vo},uv2Transform:{value:new Vo},alphaMap:{value:null}},specularmap:{specularMap:{value:null}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},refractionRatio:{value:.98},maxMipLevel:{value:0}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1}},emissivemap:{emissiveMap:{value:null}},bumpmap:{bumpMap:{value:null},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalScale:{value:new Lr(1,1)}},displacementmap:{displacementMap:{value:null},displacementScale:{value:1},displacementBias:{value:0}},roughnessmap:{roughnessMap:{value:null}},metalnessmap:{metalnessMap:{value:null}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new Fn(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{},shadow:{},shadowBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{},shadow:{},shadowBias:{},shadowRadius:{},shadowMapSize:{}}},spotShadowMap:{value:[]},spotShadowMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{},shadow:{},shadowBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}}},points:{diffuse:{value:new Fn(15658734)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},uvTransform:{value:new Vo}},sprite:{diffuse:{value:new Fn(15658734)},opacity:{value:1},center:{value:new Lr(.5,.5)},rotation:{value:0},map:{value:null},alphaMap:{value:null},uvTransform:{value:new Vo}}};function Dh(){var u=null,g=!1,C=null;function L(K,ie){g!==!1&&(C(K,ie),u.requestAnimationFrame(L))}return{start:function(){g!==!0&&C!==null&&(u.requestAnimationFrame(L),g=!0)},stop:function(){g=!1},setAnimationLoop:function(K){C=K},setContext:function(K){u=K}}}function qc(u,g,C,L){Fa.call(this),this.type="PlaneGeometry",this.parameters={width:u,height:g,widthSegments:C,heightSegments:L},this.fromBufferGeometry(new Xc(u,g,C,L)),this.mergeVertices()}function Xc(u,g,C,L){qi.call(this),this.type="PlaneBufferGeometry",this.parameters={width:u,height:g,widthSegments:C,heightSegments:L};var K,ie,ce=(u=u||1)/2,ge=(g=g||1)/2,Ee=Math.floor(C)||1,Ae=Math.floor(L)||1,We=Ee+1,tt=Ae+1,ot=u/Ee,Oe=g/Ae,mt=[],Tt=[],At=[],nn=[];for(ie=0;ie<tt;ie++){var fn=ie*Oe-ge;for(K=0;K<We;K++){var An=K*ot-ce;Tt.push(An,-fn,0),At.push(0,0,1),nn.push(K/Ee),nn.push(1-ie/Ae)}}for(ie=0;ie<Ae;ie++)for(K=0;K<Ee;K++){var zn=K+We*ie,Dn=K+We*(ie+1),Qn=K+1+We*(ie+1),Pn=K+1+We*ie;mt.push(zn,Dn,Pn),mt.push(Dn,Qn,Pn)}this.setIndex(mt),this.setAttribute("position",new Fr(Tt,3)),this.setAttribute("normal",new Fr(At,3)),this.setAttribute("uv",new Fr(nn,2))}(qc.prototype=Object.create(Fa.prototype)).constructor=qc,(Xc.prototype=Object.create(qi.prototype)).constructor=Xc;var bo={alphamap_fragment:`#ifdef USE_ALPHAMAP
  10. diffuseColor.a *= texture2D( alphaMap, vUv ).g;
  11. #endif`,alphamap_pars_fragment:`#ifdef USE_ALPHAMAP
  12. uniform sampler2D alphaMap;
  13. #endif`,alphatest_fragment:`#ifdef ALPHATEST
  14. if ( diffuseColor.a < ALPHATEST ) discard;
  15. #endif`,aomap_fragment:`#ifdef USE_AOMAP
  16. float ambientOcclusion = ( texture2D( aoMap, vUv2 ).r - 1.0 ) * aoMapIntensity + 1.0;
  17. reflectedLight.indirectDiffuse *= ambientOcclusion;
  18. #if defined( USE_ENVMAP ) && defined( STANDARD )
  19. float dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );
  20. reflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.specularRoughness );
  21. #endif
  22. #endif`,aomap_pars_fragment:`#ifdef USE_AOMAP
  23. uniform sampler2D aoMap;
  24. uniform float aoMapIntensity;
  25. #endif`,begin_vertex:"vec3 transformed = vec3( position );",beginnormal_vertex:`vec3 objectNormal = vec3( normal );
  26. #ifdef USE_TANGENT
  27. vec3 objectTangent = vec3( tangent.xyz );
  28. #endif`,bsdfs:`vec2 integrateSpecularBRDF( const in float dotNV, const in float roughness ) {
  29. const vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );
  30. const vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );
  31. vec4 r = roughness * c0 + c1;
  32. float a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;
  33. return vec2( -1.04, 1.04 ) * a004 + r.zw;
  34. }
  35. float punctualLightIntensityToIrradianceFactor( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {
  36. #if defined ( PHYSICALLY_CORRECT_LIGHTS )
  37. float distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );
  38. if( cutoffDistance > 0.0 ) {
  39. distanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );
  40. }
  41. return distanceFalloff;
  42. #else
  43. if( cutoffDistance > 0.0 && decayExponent > 0.0 ) {
  44. return pow( saturate( -lightDistance / cutoffDistance + 1.0 ), decayExponent );
  45. }
  46. return 1.0;
  47. #endif
  48. }
  49. vec3 BRDF_Diffuse_Lambert( const in vec3 diffuseColor ) {
  50. return RECIPROCAL_PI * diffuseColor;
  51. }
  52. vec3 F_Schlick( const in vec3 specularColor, const in float dotLH ) {
  53. float fresnel = exp2( ( -5.55473 * dotLH - 6.98316 ) * dotLH );
  54. return ( 1.0 - specularColor ) * fresnel + specularColor;
  55. }
  56. vec3 F_Schlick_RoughnessDependent( const in vec3 F0, const in float dotNV, const in float roughness ) {
  57. float fresnel = exp2( ( -5.55473 * dotNV - 6.98316 ) * dotNV );
  58. vec3 Fr = max( vec3( 1.0 - roughness ), F0 ) - F0;
  59. return Fr * fresnel + F0;
  60. }
  61. float G_GGX_Smith( const in float alpha, const in float dotNL, const in float dotNV ) {
  62. float a2 = pow2( alpha );
  63. float gl = dotNL + sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );
  64. float gv = dotNV + sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );
  65. return 1.0 / ( gl * gv );
  66. }
  67. float G_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {
  68. float a2 = pow2( alpha );
  69. float gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );
  70. float gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );
  71. return 0.5 / max( gv + gl, EPSILON );
  72. }
  73. float D_GGX( const in float alpha, const in float dotNH ) {
  74. float a2 = pow2( alpha );
  75. float denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;
  76. return RECIPROCAL_PI * a2 / pow2( denom );
  77. }
  78. vec3 BRDF_Specular_GGX( const in IncidentLight incidentLight, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float roughness ) {
  79. float alpha = pow2( roughness );
  80. vec3 halfDir = normalize( incidentLight.direction + viewDir );
  81. float dotNL = saturate( dot( normal, incidentLight.direction ) );
  82. float dotNV = saturate( dot( normal, viewDir ) );
  83. float dotNH = saturate( dot( normal, halfDir ) );
  84. float dotLH = saturate( dot( incidentLight.direction, halfDir ) );
  85. vec3 F = F_Schlick( specularColor, dotLH );
  86. float G = G_GGX_SmithCorrelated( alpha, dotNL, dotNV );
  87. float D = D_GGX( alpha, dotNH );
  88. return F * ( G * D );
  89. }
  90. vec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {
  91. const float LUT_SIZE = 64.0;
  92. const float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;
  93. const float LUT_BIAS = 0.5 / LUT_SIZE;
  94. float dotNV = saturate( dot( N, V ) );
  95. vec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );
  96. uv = uv * LUT_SCALE + LUT_BIAS;
  97. return uv;
  98. }
  99. float LTC_ClippedSphereFormFactor( const in vec3 f ) {
  100. float l = length( f );
  101. return max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );
  102. }
  103. vec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {
  104. float x = dot( v1, v2 );
  105. float y = abs( x );
  106. float a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;
  107. float b = 3.4175940 + ( 4.1616724 + y ) * y;
  108. float v = a / b;
  109. float theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;
  110. return cross( v1, v2 ) * theta_sintheta;
  111. }
  112. vec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {
  113. vec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];
  114. vec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];
  115. vec3 lightNormal = cross( v1, v2 );
  116. if( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );
  117. vec3 T1, T2;
  118. T1 = normalize( V - N * dot( V, N ) );
  119. T2 = - cross( N, T1 );
  120. mat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );
  121. vec3 coords[ 4 ];
  122. coords[ 0 ] = mat * ( rectCoords[ 0 ] - P );
  123. coords[ 1 ] = mat * ( rectCoords[ 1 ] - P );
  124. coords[ 2 ] = mat * ( rectCoords[ 2 ] - P );
  125. coords[ 3 ] = mat * ( rectCoords[ 3 ] - P );
  126. coords[ 0 ] = normalize( coords[ 0 ] );
  127. coords[ 1 ] = normalize( coords[ 1 ] );
  128. coords[ 2 ] = normalize( coords[ 2 ] );
  129. coords[ 3 ] = normalize( coords[ 3 ] );
  130. vec3 vectorFormFactor = vec3( 0.0 );
  131. vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );
  132. vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );
  133. vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );
  134. vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );
  135. float result = LTC_ClippedSphereFormFactor( vectorFormFactor );
  136. return vec3( result );
  137. }
  138. vec3 BRDF_Specular_GGX_Environment( const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float roughness ) {
  139. float dotNV = saturate( dot( normal, viewDir ) );
  140. vec2 brdf = integrateSpecularBRDF( dotNV, roughness );
  141. return specularColor * brdf.x + brdf.y;
  142. }
  143. void BRDF_Specular_Multiscattering_Environment( const in GeometricContext geometry, const in vec3 specularColor, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {
  144. float dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );
  145. vec3 F = F_Schlick_RoughnessDependent( specularColor, dotNV, roughness );
  146. vec2 brdf = integrateSpecularBRDF( dotNV, roughness );
  147. vec3 FssEss = F * brdf.x + brdf.y;
  148. float Ess = brdf.x + brdf.y;
  149. float Ems = 1.0 - Ess;
  150. vec3 Favg = specularColor + ( 1.0 - specularColor ) * 0.047619; vec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );
  151. singleScatter += FssEss;
  152. multiScatter += Fms * Ems;
  153. }
  154. float G_BlinnPhong_Implicit( ) {
  155. return 0.25;
  156. }
  157. float D_BlinnPhong( const in float shininess, const in float dotNH ) {
  158. return RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );
  159. }
  160. vec3 BRDF_Specular_BlinnPhong( const in IncidentLight incidentLight, const in GeometricContext geometry, const in vec3 specularColor, const in float shininess ) {
  161. vec3 halfDir = normalize( incidentLight.direction + geometry.viewDir );
  162. float dotNH = saturate( dot( geometry.normal, halfDir ) );
  163. float dotLH = saturate( dot( incidentLight.direction, halfDir ) );
  164. vec3 F = F_Schlick( specularColor, dotLH );
  165. float G = G_BlinnPhong_Implicit( );
  166. float D = D_BlinnPhong( shininess, dotNH );
  167. return F * ( G * D );
  168. }
  169. float GGXRoughnessToBlinnExponent( const in float ggxRoughness ) {
  170. return ( 2.0 / pow2( ggxRoughness + 0.0001 ) - 2.0 );
  171. }
  172. float BlinnExponentToGGXRoughness( const in float blinnExponent ) {
  173. return sqrt( 2.0 / ( blinnExponent + 2.0 ) );
  174. }
  175. #if defined( USE_SHEEN )
  176. float D_Charlie(float roughness, float NoH) {
  177. float invAlpha = 1.0 / roughness;
  178. float cos2h = NoH * NoH;
  179. float sin2h = max(1.0 - cos2h, 0.0078125); return (2.0 + invAlpha) * pow(sin2h, invAlpha * 0.5) / (2.0 * PI);
  180. }
  181. float V_Neubelt(float NoV, float NoL) {
  182. return saturate(1.0 / (4.0 * (NoL + NoV - NoL * NoV)));
  183. }
  184. vec3 BRDF_Specular_Sheen( const in float roughness, const in vec3 L, const in GeometricContext geometry, vec3 specularColor ) {
  185. vec3 N = geometry.normal;
  186. vec3 V = geometry.viewDir;
  187. vec3 H = normalize( V + L );
  188. float dotNH = saturate( dot( N, H ) );
  189. return specularColor * D_Charlie( roughness, dotNH ) * V_Neubelt( dot(N, V), dot(N, L) );
  190. }
  191. #endif`,bumpmap_pars_fragment:`#ifdef USE_BUMPMAP
  192. uniform sampler2D bumpMap;
  193. uniform float bumpScale;
  194. vec2 dHdxy_fwd() {
  195. vec2 dSTdx = dFdx( vUv );
  196. vec2 dSTdy = dFdy( vUv );
  197. float Hll = bumpScale * texture2D( bumpMap, vUv ).x;
  198. float dBx = bumpScale * texture2D( bumpMap, vUv + dSTdx ).x - Hll;
  199. float dBy = bumpScale * texture2D( bumpMap, vUv + dSTdy ).x - Hll;
  200. return vec2( dBx, dBy );
  201. }
  202. vec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy ) {
  203. vec3 vSigmaX = vec3( dFdx( surf_pos.x ), dFdx( surf_pos.y ), dFdx( surf_pos.z ) );
  204. vec3 vSigmaY = vec3( dFdy( surf_pos.x ), dFdy( surf_pos.y ), dFdy( surf_pos.z ) );
  205. vec3 vN = surf_norm;
  206. vec3 R1 = cross( vSigmaY, vN );
  207. vec3 R2 = cross( vN, vSigmaX );
  208. float fDet = dot( vSigmaX, R1 );
  209. fDet *= ( float( gl_FrontFacing ) * 2.0 - 1.0 );
  210. vec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );
  211. return normalize( abs( fDet ) * surf_norm - vGrad );
  212. }
  213. #endif`,clipping_planes_fragment:`#if NUM_CLIPPING_PLANES > 0
  214. vec4 plane;
  215. #pragma unroll_loop
  216. for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {
  217. plane = clippingPlanes[ i ];
  218. if ( dot( vViewPosition, plane.xyz ) > plane.w ) discard;
  219. }
  220. #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES
  221. bool clipped = true;
  222. #pragma unroll_loop
  223. for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {
  224. plane = clippingPlanes[ i ];
  225. clipped = ( dot( vViewPosition, plane.xyz ) > plane.w ) && clipped;
  226. }
  227. if ( clipped ) discard;
  228. #endif
  229. #endif`,clipping_planes_pars_fragment:`#if NUM_CLIPPING_PLANES > 0
  230. #if ! defined( STANDARD ) && ! defined( PHONG ) && ! defined( MATCAP )
  231. varying vec3 vViewPosition;
  232. #endif
  233. uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];
  234. #endif`,clipping_planes_pars_vertex:`#if NUM_CLIPPING_PLANES > 0 && ! defined( STANDARD ) && ! defined( PHONG ) && ! defined( MATCAP )
  235. varying vec3 vViewPosition;
  236. #endif`,clipping_planes_vertex:`#if NUM_CLIPPING_PLANES > 0 && ! defined( STANDARD ) && ! defined( PHONG ) && ! defined( MATCAP )
  237. vViewPosition = - mvPosition.xyz;
  238. #endif`,color_fragment:`#ifdef USE_COLOR
  239. diffuseColor.rgb *= vColor;
  240. #endif`,color_pars_fragment:`#ifdef USE_COLOR
  241. varying vec3 vColor;
  242. #endif`,color_pars_vertex:`#ifdef USE_COLOR
  243. varying vec3 vColor;
  244. #endif`,color_vertex:`#ifdef USE_COLOR
  245. vColor.xyz = color.xyz;
  246. #endif`,common:`#define PI 3.14159265359
  247. #define PI2 6.28318530718
  248. #define PI_HALF 1.5707963267949
  249. #define RECIPROCAL_PI 0.31830988618
  250. #define RECIPROCAL_PI2 0.15915494
  251. #define LOG2 1.442695
  252. #define EPSILON 1e-6
  253. #ifndef saturate
  254. #define saturate(a) clamp( a, 0.0, 1.0 )
  255. #endif
  256. #define whiteComplement(a) ( 1.0 - saturate( a ) )
  257. float pow2( const in float x ) { return x*x; }
  258. float pow3( const in float x ) { return x*x*x; }
  259. float pow4( const in float x ) { float x2 = x*x; return x2*x2; }
  260. float average( const in vec3 color ) { return dot( color, vec3( 0.3333 ) ); }
  261. highp float rand( const in vec2 uv ) {
  262. const highp float a = 12.9898, b = 78.233, c = 43758.5453;
  263. highp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );
  264. return fract(sin(sn) * c);
  265. }
  266. #ifdef HIGH_PRECISION
  267. float precisionSafeLength( vec3 v ) { return length( v ); }
  268. #else
  269. float max3( vec3 v ) { return max( max( v.x, v.y ), v.z ); }
  270. float precisionSafeLength( vec3 v ) {
  271. float maxComponent = max3( abs( v ) );
  272. return length( v / maxComponent ) * maxComponent;
  273. }
  274. #endif
  275. struct IncidentLight {
  276. vec3 color;
  277. vec3 direction;
  278. bool visible;
  279. };
  280. struct ReflectedLight {
  281. vec3 directDiffuse;
  282. vec3 directSpecular;
  283. vec3 indirectDiffuse;
  284. vec3 indirectSpecular;
  285. };
  286. struct GeometricContext {
  287. vec3 position;
  288. vec3 normal;
  289. vec3 viewDir;
  290. #ifdef CLEARCOAT
  291. vec3 clearcoatNormal;
  292. #endif
  293. };
  294. vec3 transformDirection( in vec3 dir, in mat4 matrix ) {
  295. return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );
  296. }
  297. vec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {
  298. return normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );
  299. }
  300. vec3 projectOnPlane(in vec3 point, in vec3 pointOnPlane, in vec3 planeNormal ) {
  301. float distance = dot( planeNormal, point - pointOnPlane );
  302. return - distance * planeNormal + point;
  303. }
  304. float sideOfPlane( in vec3 point, in vec3 pointOnPlane, in vec3 planeNormal ) {
  305. return sign( dot( point - pointOnPlane, planeNormal ) );
  306. }
  307. vec3 linePlaneIntersect( in vec3 pointOnLine, in vec3 lineDirection, in vec3 pointOnPlane, in vec3 planeNormal ) {
  308. return lineDirection * ( dot( planeNormal, pointOnPlane - pointOnLine ) / dot( planeNormal, lineDirection ) ) + pointOnLine;
  309. }
  310. mat3 transposeMat3( const in mat3 m ) {
  311. mat3 tmp;
  312. tmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );
  313. tmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );
  314. tmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );
  315. return tmp;
  316. }
  317. float linearToRelativeLuminance( const in vec3 color ) {
  318. vec3 weights = vec3( 0.2126, 0.7152, 0.0722 );
  319. return dot( weights, color.rgb );
  320. }
  321. bool isPerspectiveMatrix( mat4 m ) {
  322. return m[ 2 ][ 3 ] == - 1.0;
  323. }`,cube_uv_reflection_fragment:`#ifdef ENVMAP_TYPE_CUBE_UV
  324. #define cubeUV_maxMipLevel 8.0
  325. #define cubeUV_minMipLevel 4.0
  326. #define cubeUV_maxTileSize 256.0
  327. #define cubeUV_minTileSize 16.0
  328. float getFace(vec3 direction) {
  329. vec3 absDirection = abs(direction);
  330. float face = -1.0;
  331. if (absDirection.x > absDirection.z) {
  332. if (absDirection.x > absDirection.y)
  333. face = direction.x > 0.0 ? 0.0 : 3.0;
  334. else
  335. face = direction.y > 0.0 ? 1.0 : 4.0;
  336. } else {
  337. if (absDirection.z > absDirection.y)
  338. face = direction.z > 0.0 ? 2.0 : 5.0;
  339. else
  340. face = direction.y > 0.0 ? 1.0 : 4.0;
  341. }
  342. return face;
  343. }
  344. vec2 getUV(vec3 direction, float face) {
  345. vec2 uv;
  346. if (face == 0.0) {
  347. uv = vec2(-direction.z, direction.y) / abs(direction.x);
  348. } else if (face == 1.0) {
  349. uv = vec2(direction.x, -direction.z) / abs(direction.y);
  350. } else if (face == 2.0) {
  351. uv = direction.xy / abs(direction.z);
  352. } else if (face == 3.0) {
  353. uv = vec2(direction.z, direction.y) / abs(direction.x);
  354. } else if (face == 4.0) {
  355. uv = direction.xz / abs(direction.y);
  356. } else {
  357. uv = vec2(-direction.x, direction.y) / abs(direction.z);
  358. }
  359. return 0.5 * (uv + 1.0);
  360. }
  361. vec3 bilinearCubeUV(sampler2D envMap, vec3 direction, float mipInt) {
  362. float face = getFace(direction);
  363. float filterInt = max(cubeUV_minMipLevel - mipInt, 0.0);
  364. mipInt = max(mipInt, cubeUV_minMipLevel);
  365. float faceSize = exp2(mipInt);
  366. float texelSize = 1.0 / (3.0 * cubeUV_maxTileSize);
  367. vec2 uv = getUV(direction, face) * (faceSize - 1.0);
  368. vec2 f = fract(uv);
  369. uv += 0.5 - f;
  370. if (face > 2.0) {
  371. uv.y += faceSize;
  372. face -= 3.0;
  373. }
  374. uv.x += face * faceSize;
  375. if(mipInt < cubeUV_maxMipLevel){
  376. uv.y += 2.0 * cubeUV_maxTileSize;
  377. }
  378. uv.y += filterInt * 2.0 * cubeUV_minTileSize;
  379. uv.x += 3.0 * max(0.0, cubeUV_maxTileSize - 2.0 * faceSize);
  380. uv *= texelSize;
  381. vec3 tl = envMapTexelToLinear(texture2D(envMap, uv)).rgb;
  382. uv.x += texelSize;
  383. vec3 tr = envMapTexelToLinear(texture2D(envMap, uv)).rgb;
  384. uv.y += texelSize;
  385. vec3 br = envMapTexelToLinear(texture2D(envMap, uv)).rgb;
  386. uv.x -= texelSize;
  387. vec3 bl = envMapTexelToLinear(texture2D(envMap, uv)).rgb;
  388. vec3 tm = mix(tl, tr, f.x);
  389. vec3 bm = mix(bl, br, f.x);
  390. return mix(tm, bm, f.y);
  391. }
  392. #define r0 1.0
  393. #define v0 0.339
  394. #define m0 -2.0
  395. #define r1 0.8
  396. #define v1 0.276
  397. #define m1 -1.0
  398. #define r4 0.4
  399. #define v4 0.046
  400. #define m4 2.0
  401. #define r5 0.305
  402. #define v5 0.016
  403. #define m5 3.0
  404. #define r6 0.21
  405. #define v6 0.0038
  406. #define m6 4.0
  407. float roughnessToMip(float roughness) {
  408. float mip = 0.0;
  409. if (roughness >= r1) {
  410. mip = (r0 - roughness) * (m1 - m0) / (r0 - r1) + m0;
  411. } else if (roughness >= r4) {
  412. mip = (r1 - roughness) * (m4 - m1) / (r1 - r4) + m1;
  413. } else if (roughness >= r5) {
  414. mip = (r4 - roughness) * (m5 - m4) / (r4 - r5) + m4;
  415. } else if (roughness >= r6) {
  416. mip = (r5 - roughness) * (m6 - m5) / (r5 - r6) + m5;
  417. } else {
  418. mip = -2.0 * log2(1.16 * roughness); }
  419. return mip;
  420. }
  421. vec4 textureCubeUV(sampler2D envMap, vec3 sampleDir, float roughness) {
  422. float mip = clamp(roughnessToMip(roughness), m0, cubeUV_maxMipLevel);
  423. float mipF = fract(mip);
  424. float mipInt = floor(mip);
  425. vec3 color0 = bilinearCubeUV(envMap, sampleDir, mipInt);
  426. if (mipF == 0.0) {
  427. return vec4(color0, 1.0);
  428. } else {
  429. vec3 color1 = bilinearCubeUV(envMap, sampleDir, mipInt + 1.0);
  430. return vec4(mix(color0, color1, mipF), 1.0);
  431. }
  432. }
  433. #endif`,defaultnormal_vertex:`vec3 transformedNormal = objectNormal;
  434. #ifdef USE_INSTANCING
  435. transformedNormal = mat3( instanceMatrix ) * transformedNormal;
  436. #endif
  437. transformedNormal = normalMatrix * transformedNormal;
  438. #ifdef FLIP_SIDED
  439. transformedNormal = - transformedNormal;
  440. #endif
  441. #ifdef USE_TANGENT
  442. vec3 transformedTangent = ( modelViewMatrix * vec4( objectTangent, 0.0 ) ).xyz;
  443. #ifdef FLIP_SIDED
  444. transformedTangent = - transformedTangent;
  445. #endif
  446. #endif`,displacementmap_pars_vertex:`#ifdef USE_DISPLACEMENTMAP
  447. uniform sampler2D displacementMap;
  448. uniform float displacementScale;
  449. uniform float displacementBias;
  450. #endif`,displacementmap_vertex:`#ifdef USE_DISPLACEMENTMAP
  451. transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vUv ).x * displacementScale + displacementBias );
  452. #endif`,emissivemap_fragment:`#ifdef USE_EMISSIVEMAP
  453. vec4 emissiveColor = texture2D( emissiveMap, vUv );
  454. emissiveColor.rgb = emissiveMapTexelToLinear( emissiveColor ).rgb;
  455. totalEmissiveRadiance *= emissiveColor.rgb;
  456. #endif`,emissivemap_pars_fragment:`#ifdef USE_EMISSIVEMAP
  457. uniform sampler2D emissiveMap;
  458. #endif`,encodings_fragment:"gl_FragColor = linearToOutputTexel( gl_FragColor );",encodings_pars_fragment:`
  459. vec4 LinearToLinear( in vec4 value ) {
  460. return value;
  461. }
  462. vec4 GammaToLinear( in vec4 value, in float gammaFactor ) {
  463. return vec4( pow( value.rgb, vec3( gammaFactor ) ), value.a );
  464. }
  465. vec4 LinearToGamma( in vec4 value, in float gammaFactor ) {
  466. return vec4( pow( value.rgb, vec3( 1.0 / gammaFactor ) ), value.a );
  467. }
  468. vec4 sRGBToLinear( in vec4 value ) {
  469. return vec4( mix( pow( value.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), value.rgb * 0.0773993808, vec3( lessThanEqual( value.rgb, vec3( 0.04045 ) ) ) ), value.a );
  470. }
  471. vec4 LinearTosRGB( in vec4 value ) {
  472. return vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );
  473. }
  474. vec4 RGBEToLinear( in vec4 value ) {
  475. return vec4( value.rgb * exp2( value.a * 255.0 - 128.0 ), 1.0 );
  476. }
  477. vec4 LinearToRGBE( in vec4 value ) {
  478. float maxComponent = max( max( value.r, value.g ), value.b );
  479. float fExp = clamp( ceil( log2( maxComponent ) ), -128.0, 127.0 );
  480. return vec4( value.rgb / exp2( fExp ), ( fExp + 128.0 ) / 255.0 );
  481. }
  482. vec4 RGBMToLinear( in vec4 value, in float maxRange ) {
  483. return vec4( value.rgb * value.a * maxRange, 1.0 );
  484. }
  485. vec4 LinearToRGBM( in vec4 value, in float maxRange ) {
  486. float maxRGB = max( value.r, max( value.g, value.b ) );
  487. float M = clamp( maxRGB / maxRange, 0.0, 1.0 );
  488. M = ceil( M * 255.0 ) / 255.0;
  489. return vec4( value.rgb / ( M * maxRange ), M );
  490. }
  491. vec4 RGBDToLinear( in vec4 value, in float maxRange ) {
  492. return vec4( value.rgb * ( ( maxRange / 255.0 ) / value.a ), 1.0 );
  493. }
  494. vec4 LinearToRGBD( in vec4 value, in float maxRange ) {
  495. float maxRGB = max( value.r, max( value.g, value.b ) );
  496. float D = max( maxRange / maxRGB, 1.0 );
  497. D = clamp( floor( D ) / 255.0, 0.0, 1.0 );
  498. return vec4( value.rgb * ( D * ( 255.0 / maxRange ) ), D );
  499. }
  500. const mat3 cLogLuvM = mat3( 0.2209, 0.3390, 0.4184, 0.1138, 0.6780, 0.7319, 0.0102, 0.1130, 0.2969 );
  501. vec4 LinearToLogLuv( in vec4 value ) {
  502. vec3 Xp_Y_XYZp = cLogLuvM * value.rgb;
  503. Xp_Y_XYZp = max( Xp_Y_XYZp, vec3( 1e-6, 1e-6, 1e-6 ) );
  504. vec4 vResult;
  505. vResult.xy = Xp_Y_XYZp.xy / Xp_Y_XYZp.z;
  506. float Le = 2.0 * log2(Xp_Y_XYZp.y) + 127.0;
  507. vResult.w = fract( Le );
  508. vResult.z = ( Le - ( floor( vResult.w * 255.0 ) ) / 255.0 ) / 255.0;
  509. return vResult;
  510. }
  511. const mat3 cLogLuvInverseM = mat3( 6.0014, -2.7008, -1.7996, -1.3320, 3.1029, -5.7721, 0.3008, -1.0882, 5.6268 );
  512. vec4 LogLuvToLinear( in vec4 value ) {
  513. float Le = value.z * 255.0 + value.w;
  514. vec3 Xp_Y_XYZp;
  515. Xp_Y_XYZp.y = exp2( ( Le - 127.0 ) / 2.0 );
  516. Xp_Y_XYZp.z = Xp_Y_XYZp.y / value.y;
  517. Xp_Y_XYZp.x = value.x * Xp_Y_XYZp.z;
  518. vec3 vRGB = cLogLuvInverseM * Xp_Y_XYZp.rgb;
  519. return vec4( max( vRGB, 0.0 ), 1.0 );
  520. }`,envmap_fragment:`#ifdef USE_ENVMAP
  521. #ifdef ENV_WORLDPOS
  522. vec3 cameraToFrag;
  523. if ( isOrthographic ) {
  524. cameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );
  525. } else {
  526. cameraToFrag = normalize( vWorldPosition - cameraPosition );
  527. }
  528. vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );
  529. #ifdef ENVMAP_MODE_REFLECTION
  530. vec3 reflectVec = reflect( cameraToFrag, worldNormal );
  531. #else
  532. vec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );
  533. #endif
  534. #else
  535. vec3 reflectVec = vReflect;
  536. #endif
  537. #ifdef ENVMAP_TYPE_CUBE
  538. vec4 envColor = textureCube( envMap, vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );
  539. #elif defined( ENVMAP_TYPE_CUBE_UV )
  540. vec4 envColor = textureCubeUV( envMap, reflectVec, 0.0 );
  541. #elif defined( ENVMAP_TYPE_EQUIREC )
  542. vec2 sampleUV;
  543. reflectVec = normalize( reflectVec );
  544. sampleUV.y = asin( clamp( reflectVec.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;
  545. sampleUV.x = atan( reflectVec.z, reflectVec.x ) * RECIPROCAL_PI2 + 0.5;
  546. vec4 envColor = texture2D( envMap, sampleUV );
  547. #elif defined( ENVMAP_TYPE_SPHERE )
  548. reflectVec = normalize( reflectVec );
  549. vec3 reflectView = normalize( ( viewMatrix * vec4( reflectVec, 0.0 ) ).xyz + vec3( 0.0, 0.0, 1.0 ) );
  550. vec4 envColor = texture2D( envMap, reflectView.xy * 0.5 + 0.5 );
  551. #else
  552. vec4 envColor = vec4( 0.0 );
  553. #endif
  554. #ifndef ENVMAP_TYPE_CUBE_UV
  555. envColor = envMapTexelToLinear( envColor );
  556. #endif
  557. #ifdef ENVMAP_BLENDING_MULTIPLY
  558. outgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );
  559. #elif defined( ENVMAP_BLENDING_MIX )
  560. outgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );
  561. #elif defined( ENVMAP_BLENDING_ADD )
  562. outgoingLight += envColor.xyz * specularStrength * reflectivity;
  563. #endif
  564. #endif`,envmap_common_pars_fragment:`#ifdef USE_ENVMAP
  565. uniform float envMapIntensity;
  566. uniform float flipEnvMap;
  567. uniform int maxMipLevel;
  568. #ifdef ENVMAP_TYPE_CUBE
  569. uniform samplerCube envMap;
  570. #else
  571. uniform sampler2D envMap;
  572. #endif
  573. #endif`,envmap_pars_fragment:`#ifdef USE_ENVMAP
  574. uniform float reflectivity;
  575. #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG )
  576. #define ENV_WORLDPOS
  577. #endif
  578. #ifdef ENV_WORLDPOS
  579. varying vec3 vWorldPosition;
  580. uniform float refractionRatio;
  581. #else
  582. varying vec3 vReflect;
  583. #endif
  584. #endif`,envmap_pars_vertex:`#ifdef USE_ENVMAP
  585. #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) ||defined( PHONG )
  586. #define ENV_WORLDPOS
  587. #endif
  588. #ifdef ENV_WORLDPOS
  589. varying vec3 vWorldPosition;
  590. #else
  591. varying vec3 vReflect;
  592. uniform float refractionRatio;
  593. #endif
  594. #endif`,envmap_physical_pars_fragment:`#if defined( USE_ENVMAP )
  595. #ifdef ENVMAP_MODE_REFRACTION
  596. uniform float refractionRatio;
  597. #endif
  598. vec3 getLightProbeIndirectIrradiance( const in GeometricContext geometry, const in int maxMIPLevel ) {
  599. vec3 worldNormal = inverseTransformDirection( geometry.normal, viewMatrix );
  600. #ifdef ENVMAP_TYPE_CUBE
  601. vec3 queryVec = vec3( flipEnvMap * worldNormal.x, worldNormal.yz );
  602. #ifdef TEXTURE_LOD_EXT
  603. vec4 envMapColor = textureCubeLodEXT( envMap, queryVec, float( maxMIPLevel ) );
  604. #else
  605. vec4 envMapColor = textureCube( envMap, queryVec, float( maxMIPLevel ) );
  606. #endif
  607. envMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;
  608. #elif defined( ENVMAP_TYPE_CUBE_UV )
  609. vec4 envMapColor = textureCubeUV( envMap, worldNormal, 1.0 );
  610. #else
  611. vec4 envMapColor = vec4( 0.0 );
  612. #endif
  613. return PI * envMapColor.rgb * envMapIntensity;
  614. }
  615. float getSpecularMIPLevel( const in float roughness, const in int maxMIPLevel ) {
  616. float maxMIPLevelScalar = float( maxMIPLevel );
  617. float sigma = PI * roughness * roughness / ( 1.0 + roughness );
  618. float desiredMIPLevel = maxMIPLevelScalar + log2( sigma );
  619. return clamp( desiredMIPLevel, 0.0, maxMIPLevelScalar );
  620. }
  621. vec3 getLightProbeIndirectRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in int maxMIPLevel ) {
  622. #ifdef ENVMAP_MODE_REFLECTION
  623. vec3 reflectVec = reflect( -viewDir, normal );
  624. reflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );
  625. #else
  626. vec3 reflectVec = refract( -viewDir, normal, refractionRatio );
  627. #endif
  628. reflectVec = inverseTransformDirection( reflectVec, viewMatrix );
  629. float specularMIPLevel = getSpecularMIPLevel( roughness, maxMIPLevel );
  630. #ifdef ENVMAP_TYPE_CUBE
  631. vec3 queryReflectVec = vec3( flipEnvMap * reflectVec.x, reflectVec.yz );
  632. #ifdef TEXTURE_LOD_EXT
  633. vec4 envMapColor = textureCubeLodEXT( envMap, queryReflectVec, specularMIPLevel );
  634. #else
  635. vec4 envMapColor = textureCube( envMap, queryReflectVec, specularMIPLevel );
  636. #endif
  637. envMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;
  638. #elif defined( ENVMAP_TYPE_CUBE_UV )
  639. vec4 envMapColor = textureCubeUV( envMap, reflectVec, roughness );
  640. #elif defined( ENVMAP_TYPE_EQUIREC )
  641. vec2 sampleUV;
  642. sampleUV.y = asin( clamp( reflectVec.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;
  643. sampleUV.x = atan( reflectVec.z, reflectVec.x ) * RECIPROCAL_PI2 + 0.5;
  644. #ifdef TEXTURE_LOD_EXT
  645. vec4 envMapColor = texture2DLodEXT( envMap, sampleUV, specularMIPLevel );
  646. #else
  647. vec4 envMapColor = texture2D( envMap, sampleUV, specularMIPLevel );
  648. #endif
  649. envMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;
  650. #elif defined( ENVMAP_TYPE_SPHERE )
  651. vec3 reflectView = normalize( ( viewMatrix * vec4( reflectVec, 0.0 ) ).xyz + vec3( 0.0,0.0,1.0 ) );
  652. #ifdef TEXTURE_LOD_EXT
  653. vec4 envMapColor = texture2DLodEXT( envMap, reflectView.xy * 0.5 + 0.5, specularMIPLevel );
  654. #else
  655. vec4 envMapColor = texture2D( envMap, reflectView.xy * 0.5 + 0.5, specularMIPLevel );
  656. #endif
  657. envMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;
  658. #endif
  659. return envMapColor.rgb * envMapIntensity;
  660. }
  661. #endif`,envmap_vertex:`#ifdef USE_ENVMAP
  662. #ifdef ENV_WORLDPOS
  663. vWorldPosition = worldPosition.xyz;
  664. #else
  665. vec3 cameraToVertex;
  666. if ( isOrthographic ) {
  667. cameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );
  668. } else {
  669. cameraToVertex = normalize( worldPosition.xyz - cameraPosition );
  670. }
  671. vec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );
  672. #ifdef ENVMAP_MODE_REFLECTION
  673. vReflect = reflect( cameraToVertex, worldNormal );
  674. #else
  675. vReflect = refract( cameraToVertex, worldNormal, refractionRatio );
  676. #endif
  677. #endif
  678. #endif`,fog_vertex:`#ifdef USE_FOG
  679. fogDepth = -mvPosition.z;
  680. #endif`,fog_pars_vertex:`#ifdef USE_FOG
  681. varying float fogDepth;
  682. #endif`,fog_fragment:`#ifdef USE_FOG
  683. #ifdef FOG_EXP2
  684. float fogFactor = 1.0 - exp( - fogDensity * fogDensity * fogDepth * fogDepth );
  685. #else
  686. float fogFactor = smoothstep( fogNear, fogFar, fogDepth );
  687. #endif
  688. gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );
  689. #endif`,fog_pars_fragment:`#ifdef USE_FOG
  690. uniform vec3 fogColor;
  691. varying float fogDepth;
  692. #ifdef FOG_EXP2
  693. uniform float fogDensity;
  694. #else
  695. uniform float fogNear;
  696. uniform float fogFar;
  697. #endif
  698. #endif`,gradientmap_pars_fragment:`#ifdef USE_GRADIENTMAP
  699. uniform sampler2D gradientMap;
  700. #endif
  701. vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {
  702. float dotNL = dot( normal, lightDirection );
  703. vec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );
  704. #ifdef USE_GRADIENTMAP
  705. return texture2D( gradientMap, coord ).rgb;
  706. #else
  707. return ( coord.x < 0.7 ) ? vec3( 0.7 ) : vec3( 1.0 );
  708. #endif
  709. }`,lightmap_fragment:`#ifdef USE_LIGHTMAP
  710. vec4 lightMapTexel= texture2D( lightMap, vUv2 );
  711. reflectedLight.indirectDiffuse += PI * lightMapTexelToLinear( lightMapTexel ).rgb * lightMapIntensity;
  712. #endif`,lightmap_pars_fragment:`#ifdef USE_LIGHTMAP
  713. uniform sampler2D lightMap;
  714. uniform float lightMapIntensity;
  715. #endif`,lights_lambert_vertex:`vec3 diffuse = vec3( 1.0 );
  716. GeometricContext geometry;
  717. geometry.position = mvPosition.xyz;
  718. geometry.normal = normalize( transformedNormal );
  719. geometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( -mvPosition.xyz );
  720. GeometricContext backGeometry;
  721. backGeometry.position = geometry.position;
  722. backGeometry.normal = -geometry.normal;
  723. backGeometry.viewDir = geometry.viewDir;
  724. vLightFront = vec3( 0.0 );
  725. vIndirectFront = vec3( 0.0 );
  726. #ifdef DOUBLE_SIDED
  727. vLightBack = vec3( 0.0 );
  728. vIndirectBack = vec3( 0.0 );
  729. #endif
  730. IncidentLight directLight;
  731. float dotNL;
  732. vec3 directLightColor_Diffuse;
  733. #if NUM_POINT_LIGHTS > 0
  734. #pragma unroll_loop
  735. for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {
  736. getPointDirectLightIrradiance( pointLights[ i ], geometry, directLight );
  737. dotNL = dot( geometry.normal, directLight.direction );
  738. directLightColor_Diffuse = PI * directLight.color;
  739. vLightFront += saturate( dotNL ) * directLightColor_Diffuse;
  740. #ifdef DOUBLE_SIDED
  741. vLightBack += saturate( -dotNL ) * directLightColor_Diffuse;
  742. #endif
  743. }
  744. #endif
  745. #if NUM_SPOT_LIGHTS > 0
  746. #pragma unroll_loop
  747. for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {
  748. getSpotDirectLightIrradiance( spotLights[ i ], geometry, directLight );
  749. dotNL = dot( geometry.normal, directLight.direction );
  750. directLightColor_Diffuse = PI * directLight.color;
  751. vLightFront += saturate( dotNL ) * directLightColor_Diffuse;
  752. #ifdef DOUBLE_SIDED
  753. vLightBack += saturate( -dotNL ) * directLightColor_Diffuse;
  754. #endif
  755. }
  756. #endif
  757. #if NUM_DIR_LIGHTS > 0
  758. #pragma unroll_loop
  759. for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {
  760. getDirectionalDirectLightIrradiance( directionalLights[ i ], geometry, directLight );
  761. dotNL = dot( geometry.normal, directLight.direction );
  762. directLightColor_Diffuse = PI * directLight.color;
  763. vLightFront += saturate( dotNL ) * directLightColor_Diffuse;
  764. #ifdef DOUBLE_SIDED
  765. vLightBack += saturate( -dotNL ) * directLightColor_Diffuse;
  766. #endif
  767. }
  768. #endif
  769. #if NUM_HEMI_LIGHTS > 0
  770. #pragma unroll_loop
  771. for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {
  772. vIndirectFront += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry );
  773. #ifdef DOUBLE_SIDED
  774. vIndirectBack += getHemisphereLightIrradiance( hemisphereLights[ i ], backGeometry );
  775. #endif
  776. }
  777. #endif`,lights_pars_begin:`uniform bool receiveShadow;
  778. uniform vec3 ambientLightColor;
  779. uniform vec3 lightProbe[ 9 ];
  780. vec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {
  781. float x = normal.x, y = normal.y, z = normal.z;
  782. vec3 result = shCoefficients[ 0 ] * 0.886227;
  783. result += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;
  784. result += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;
  785. result += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;
  786. result += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;
  787. result += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;
  788. result += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );
  789. result += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;
  790. result += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );
  791. return result;
  792. }
  793. vec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in GeometricContext geometry ) {
  794. vec3 worldNormal = inverseTransformDirection( geometry.normal, viewMatrix );
  795. vec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );
  796. return irradiance;
  797. }
  798. vec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {
  799. vec3 irradiance = ambientLightColor;
  800. #ifndef PHYSICALLY_CORRECT_LIGHTS
  801. irradiance *= PI;
  802. #endif
  803. return irradiance;
  804. }
  805. #if NUM_DIR_LIGHTS > 0
  806. struct DirectionalLight {
  807. vec3 direction;
  808. vec3 color;
  809. int shadow;
  810. float shadowBias;
  811. float shadowRadius;
  812. vec2 shadowMapSize;
  813. };
  814. uniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];
  815. void getDirectionalDirectLightIrradiance( const in DirectionalLight directionalLight, const in GeometricContext geometry, out IncidentLight directLight ) {
  816. directLight.color = directionalLight.color;
  817. directLight.direction = directionalLight.direction;
  818. directLight.visible = true;
  819. }
  820. #endif
  821. #if NUM_POINT_LIGHTS > 0
  822. struct PointLight {
  823. vec3 position;
  824. vec3 color;
  825. float distance;
  826. float decay;
  827. int shadow;
  828. float shadowBias;
  829. float shadowRadius;
  830. vec2 shadowMapSize;
  831. float shadowCameraNear;
  832. float shadowCameraFar;
  833. };
  834. uniform PointLight pointLights[ NUM_POINT_LIGHTS ];
  835. void getPointDirectLightIrradiance( const in PointLight pointLight, const in GeometricContext geometry, out IncidentLight directLight ) {
  836. vec3 lVector = pointLight.position - geometry.position;
  837. directLight.direction = normalize( lVector );
  838. float lightDistance = length( lVector );
  839. directLight.color = pointLight.color;
  840. directLight.color *= punctualLightIntensityToIrradianceFactor( lightDistance, pointLight.distance, pointLight.decay );
  841. directLight.visible = ( directLight.color != vec3( 0.0 ) );
  842. }
  843. #endif
  844. #if NUM_SPOT_LIGHTS > 0
  845. struct SpotLight {
  846. vec3 position;
  847. vec3 direction;
  848. vec3 color;
  849. float distance;
  850. float decay;
  851. float coneCos;
  852. float penumbraCos;
  853. int shadow;
  854. float shadowBias;
  855. float shadowRadius;
  856. vec2 shadowMapSize;
  857. };
  858. uniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];
  859. void getSpotDirectLightIrradiance( const in SpotLight spotLight, const in GeometricContext geometry, out IncidentLight directLight ) {
  860. vec3 lVector = spotLight.position - geometry.position;
  861. directLight.direction = normalize( lVector );
  862. float lightDistance = length( lVector );
  863. float angleCos = dot( directLight.direction, spotLight.direction );
  864. if ( angleCos > spotLight.coneCos ) {
  865. float spotEffect = smoothstep( spotLight.coneCos, spotLight.penumbraCos, angleCos );
  866. directLight.color = spotLight.color;
  867. directLight.color *= spotEffect * punctualLightIntensityToIrradianceFactor( lightDistance, spotLight.distance, spotLight.decay );
  868. directLight.visible = true;
  869. } else {
  870. directLight.color = vec3( 0.0 );
  871. directLight.visible = false;
  872. }
  873. }
  874. #endif
  875. #if NUM_RECT_AREA_LIGHTS > 0
  876. struct RectAreaLight {
  877. vec3 color;
  878. vec3 position;
  879. vec3 halfWidth;
  880. vec3 halfHeight;
  881. };
  882. uniform sampler2D ltc_1; uniform sampler2D ltc_2;
  883. uniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];
  884. #endif
  885. #if NUM_HEMI_LIGHTS > 0
  886. struct HemisphereLight {
  887. vec3 direction;
  888. vec3 skyColor;
  889. vec3 groundColor;
  890. };
  891. uniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];
  892. vec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in GeometricContext geometry ) {
  893. float dotNL = dot( geometry.normal, hemiLight.direction );
  894. float hemiDiffuseWeight = 0.5 * dotNL + 0.5;
  895. vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );
  896. #ifndef PHYSICALLY_CORRECT_LIGHTS
  897. irradiance *= PI;
  898. #endif
  899. return irradiance;
  900. }
  901. #endif`,lights_toon_fragment:`ToonMaterial material;
  902. material.diffuseColor = diffuseColor.rgb;
  903. material.specularColor = specular;
  904. material.specularShininess = shininess;
  905. material.specularStrength = specularStrength;`,lights_toon_pars_fragment:`varying vec3 vViewPosition;
  906. #ifndef FLAT_SHADED
  907. varying vec3 vNormal;
  908. #endif
  909. struct ToonMaterial {
  910. vec3 diffuseColor;
  911. vec3 specularColor;
  912. float specularShininess;
  913. float specularStrength;
  914. };
  915. void RE_Direct_Toon( const in IncidentLight directLight, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {
  916. vec3 irradiance = getGradientIrradiance( geometry.normal, directLight.direction ) * directLight.color;
  917. #ifndef PHYSICALLY_CORRECT_LIGHTS
  918. irradiance *= PI;
  919. #endif
  920. reflectedLight.directDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );
  921. reflectedLight.directSpecular += irradiance * BRDF_Specular_BlinnPhong( directLight, geometry, material.specularColor, material.specularShininess ) * material.specularStrength;
  922. }
  923. void RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {
  924. reflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );
  925. }
  926. #define RE_Direct RE_Direct_Toon
  927. #define RE_IndirectDiffuse RE_IndirectDiffuse_Toon
  928. #define Material_LightProbeLOD( material ) (0)`,lights_phong_fragment:`BlinnPhongMaterial material;
  929. material.diffuseColor = diffuseColor.rgb;
  930. material.specularColor = specular;
  931. material.specularShininess = shininess;
  932. material.specularStrength = specularStrength;`,lights_phong_pars_fragment:`varying vec3 vViewPosition;
  933. #ifndef FLAT_SHADED
  934. varying vec3 vNormal;
  935. #endif
  936. struct BlinnPhongMaterial {
  937. vec3 diffuseColor;
  938. vec3 specularColor;
  939. float specularShininess;
  940. float specularStrength;
  941. };
  942. void RE_Direct_BlinnPhong( const in IncidentLight directLight, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {
  943. float dotNL = saturate( dot( geometry.normal, directLight.direction ) );
  944. vec3 irradiance = dotNL * directLight.color;
  945. #ifndef PHYSICALLY_CORRECT_LIGHTS
  946. irradiance *= PI;
  947. #endif
  948. reflectedLight.directDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );
  949. reflectedLight.directSpecular += irradiance * BRDF_Specular_BlinnPhong( directLight, geometry, material.specularColor, material.specularShininess ) * material.specularStrength;
  950. }
  951. void RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {
  952. reflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );
  953. }
  954. #define RE_Direct RE_Direct_BlinnPhong
  955. #define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong
  956. #define Material_LightProbeLOD( material ) (0)`,lights_physical_fragment:`PhysicalMaterial material;
  957. material.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );
  958. vec3 dxy = max( abs( dFdx( geometryNormal ) ), abs( dFdy( geometryNormal ) ) );
  959. float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );
  960. material.specularRoughness = max( roughnessFactor, 0.0525 );material.specularRoughness += geometryRoughness;
  961. material.specularRoughness = min( material.specularRoughness, 1.0 );
  962. #ifdef REFLECTIVITY
  963. material.specularColor = mix( vec3( MAXIMUM_SPECULAR_COEFFICIENT * pow2( reflectivity ) ), diffuseColor.rgb, metalnessFactor );
  964. #else
  965. material.specularColor = mix( vec3( DEFAULT_SPECULAR_COEFFICIENT ), diffuseColor.rgb, metalnessFactor );
  966. #endif
  967. #ifdef CLEARCOAT
  968. material.clearcoat = saturate( clearcoat ); material.clearcoatRoughness = max( clearcoatRoughness, 0.0525 );
  969. material.clearcoatRoughness += geometryRoughness;
  970. material.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );
  971. #endif
  972. #ifdef USE_SHEEN
  973. material.sheenColor = sheen;
  974. #endif`,lights_physical_pars_fragment:`struct PhysicalMaterial {
  975. vec3 diffuseColor;
  976. float specularRoughness;
  977. vec3 specularColor;
  978. #ifdef CLEARCOAT
  979. float clearcoat;
  980. float clearcoatRoughness;
  981. #endif
  982. #ifdef USE_SHEEN
  983. vec3 sheenColor;
  984. #endif
  985. };
  986. #define MAXIMUM_SPECULAR_COEFFICIENT 0.16
  987. #define DEFAULT_SPECULAR_COEFFICIENT 0.04
  988. float clearcoatDHRApprox( const in float roughness, const in float dotNL ) {
  989. return DEFAULT_SPECULAR_COEFFICIENT + ( 1.0 - DEFAULT_SPECULAR_COEFFICIENT ) * ( pow( 1.0 - dotNL, 5.0 ) * pow( 1.0 - roughness, 2.0 ) );
  990. }
  991. #if NUM_RECT_AREA_LIGHTS > 0
  992. void RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {
  993. vec3 normal = geometry.normal;
  994. vec3 viewDir = geometry.viewDir;
  995. vec3 position = geometry.position;
  996. vec3 lightPos = rectAreaLight.position;
  997. vec3 halfWidth = rectAreaLight.halfWidth;
  998. vec3 halfHeight = rectAreaLight.halfHeight;
  999. vec3 lightColor = rectAreaLight.color;
  1000. float roughness = material.specularRoughness;
  1001. vec3 rectCoords[ 4 ];
  1002. rectCoords[ 0 ] = lightPos + halfWidth - halfHeight; rectCoords[ 1 ] = lightPos - halfWidth - halfHeight;
  1003. rectCoords[ 2 ] = lightPos - halfWidth + halfHeight;
  1004. rectCoords[ 3 ] = lightPos + halfWidth + halfHeight;
  1005. vec2 uv = LTC_Uv( normal, viewDir, roughness );
  1006. vec4 t1 = texture2D( ltc_1, uv );
  1007. vec4 t2 = texture2D( ltc_2, uv );
  1008. mat3 mInv = mat3(
  1009. vec3( t1.x, 0, t1.y ),
  1010. vec3( 0, 1, 0 ),
  1011. vec3( t1.z, 0, t1.w )
  1012. );
  1013. vec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );
  1014. reflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );
  1015. reflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );
  1016. }
  1017. #endif
  1018. void RE_Direct_Physical( const in IncidentLight directLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {
  1019. float dotNL = saturate( dot( geometry.normal, directLight.direction ) );
  1020. vec3 irradiance = dotNL * directLight.color;
  1021. #ifndef PHYSICALLY_CORRECT_LIGHTS
  1022. irradiance *= PI;
  1023. #endif
  1024. #ifdef CLEARCOAT
  1025. float ccDotNL = saturate( dot( geometry.clearcoatNormal, directLight.direction ) );
  1026. vec3 ccIrradiance = ccDotNL * directLight.color;
  1027. #ifndef PHYSICALLY_CORRECT_LIGHTS
  1028. ccIrradiance *= PI;
  1029. #endif
  1030. float clearcoatDHR = material.clearcoat * clearcoatDHRApprox( material.clearcoatRoughness, ccDotNL );
  1031. reflectedLight.directSpecular += ccIrradiance * material.clearcoat * BRDF_Specular_GGX( directLight, geometry.viewDir, geometry.clearcoatNormal, vec3( DEFAULT_SPECULAR_COEFFICIENT ), material.clearcoatRoughness );
  1032. #else
  1033. float clearcoatDHR = 0.0;
  1034. #endif
  1035. #ifdef USE_SHEEN
  1036. reflectedLight.directSpecular += ( 1.0 - clearcoatDHR ) * irradiance * BRDF_Specular_Sheen(
  1037. material.specularRoughness,
  1038. directLight.direction,
  1039. geometry,
  1040. material.sheenColor
  1041. );
  1042. #else
  1043. reflectedLight.directSpecular += ( 1.0 - clearcoatDHR ) * irradiance * BRDF_Specular_GGX( directLight, geometry.viewDir, geometry.normal, material.specularColor, material.specularRoughness);
  1044. #endif
  1045. reflectedLight.directDiffuse += ( 1.0 - clearcoatDHR ) * irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );
  1046. }
  1047. void RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {
  1048. reflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );
  1049. }
  1050. void RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {
  1051. #ifdef CLEARCOAT
  1052. float ccDotNV = saturate( dot( geometry.clearcoatNormal, geometry.viewDir ) );
  1053. reflectedLight.indirectSpecular += clearcoatRadiance * material.clearcoat * BRDF_Specular_GGX_Environment( geometry.viewDir, geometry.clearcoatNormal, vec3( DEFAULT_SPECULAR_COEFFICIENT ), material.clearcoatRoughness );
  1054. float ccDotNL = ccDotNV;
  1055. float clearcoatDHR = material.clearcoat * clearcoatDHRApprox( material.clearcoatRoughness, ccDotNL );
  1056. #else
  1057. float clearcoatDHR = 0.0;
  1058. #endif
  1059. float clearcoatInv = 1.0 - clearcoatDHR;
  1060. vec3 singleScattering = vec3( 0.0 );
  1061. vec3 multiScattering = vec3( 0.0 );
  1062. vec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;
  1063. BRDF_Specular_Multiscattering_Environment( geometry, material.specularColor, material.specularRoughness, singleScattering, multiScattering );
  1064. vec3 diffuse = material.diffuseColor * ( 1.0 - ( singleScattering + multiScattering ) );
  1065. reflectedLight.indirectSpecular += clearcoatInv * radiance * singleScattering;
  1066. reflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;
  1067. reflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;
  1068. }
  1069. #define RE_Direct RE_Direct_Physical
  1070. #define RE_Direct_RectArea RE_Direct_RectArea_Physical
  1071. #define RE_IndirectDiffuse RE_IndirectDiffuse_Physical
  1072. #define RE_IndirectSpecular RE_IndirectSpecular_Physical
  1073. float computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {
  1074. return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );
  1075. }`,lights_fragment_begin:`
  1076. GeometricContext geometry;
  1077. geometry.position = - vViewPosition;
  1078. geometry.normal = normal;
  1079. geometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );
  1080. #ifdef CLEARCOAT
  1081. geometry.clearcoatNormal = clearcoatNormal;
  1082. #endif
  1083. IncidentLight directLight;
  1084. #if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )
  1085. PointLight pointLight;
  1086. #pragma unroll_loop
  1087. for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {
  1088. pointLight = pointLights[ i ];
  1089. getPointDirectLightIrradiance( pointLight, geometry, directLight );
  1090. #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )
  1091. directLight.color *= all( bvec3( pointLight.shadow, directLight.visible, receiveShadow ) ) ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;
  1092. #endif
  1093. RE_Direct( directLight, geometry, material, reflectedLight );
  1094. }
  1095. #endif
  1096. #if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )
  1097. SpotLight spotLight;
  1098. #pragma unroll_loop
  1099. for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {
  1100. spotLight = spotLights[ i ];
  1101. getSpotDirectLightIrradiance( spotLight, geometry, directLight );
  1102. #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )
  1103. directLight.color *= all( bvec3( spotLight.shadow, directLight.visible, receiveShadow ) ) ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;
  1104. #endif
  1105. RE_Direct( directLight, geometry, material, reflectedLight );
  1106. }
  1107. #endif
  1108. #if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )
  1109. DirectionalLight directionalLight;
  1110. #pragma unroll_loop
  1111. for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {
  1112. directionalLight = directionalLights[ i ];
  1113. getDirectionalDirectLightIrradiance( directionalLight, geometry, directLight );
  1114. #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )
  1115. directLight.color *= all( bvec3( directionalLight.shadow, directLight.visible, receiveShadow ) ) ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;
  1116. #endif
  1117. RE_Direct( directLight, geometry, material, reflectedLight );
  1118. }
  1119. #endif
  1120. #if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )
  1121. RectAreaLight rectAreaLight;
  1122. #pragma unroll_loop
  1123. for ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {
  1124. rectAreaLight = rectAreaLights[ i ];
  1125. RE_Direct_RectArea( rectAreaLight, geometry, material, reflectedLight );
  1126. }
  1127. #endif
  1128. #if defined( RE_IndirectDiffuse )
  1129. vec3 iblIrradiance = vec3( 0.0 );
  1130. vec3 irradiance = getAmbientLightIrradiance( ambientLightColor );
  1131. irradiance += getLightProbeIrradiance( lightProbe, geometry );
  1132. #if ( NUM_HEMI_LIGHTS > 0 )
  1133. #pragma unroll_loop
  1134. for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {
  1135. irradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry );
  1136. }
  1137. #endif
  1138. #endif
  1139. #if defined( RE_IndirectSpecular )
  1140. vec3 radiance = vec3( 0.0 );
  1141. vec3 clearcoatRadiance = vec3( 0.0 );
  1142. #endif`,lights_fragment_maps:`#if defined( RE_IndirectDiffuse )
  1143. #ifdef USE_LIGHTMAP
  1144. vec4 lightMapTexel= texture2D( lightMap, vUv2 );
  1145. vec3 lightMapIrradiance = lightMapTexelToLinear( lightMapTexel ).rgb * lightMapIntensity;
  1146. #ifndef PHYSICALLY_CORRECT_LIGHTS
  1147. lightMapIrradiance *= PI;
  1148. #endif
  1149. irradiance += lightMapIrradiance;
  1150. #endif
  1151. #if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )
  1152. iblIrradiance += getLightProbeIndirectIrradiance( geometry, maxMipLevel );
  1153. #endif
  1154. #endif
  1155. #if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )
  1156. radiance += getLightProbeIndirectRadiance( geometry.viewDir, geometry.normal, material.specularRoughness, maxMipLevel );
  1157. #ifdef CLEARCOAT
  1158. clearcoatRadiance += getLightProbeIndirectRadiance( geometry.viewDir, geometry.clearcoatNormal, material.clearcoatRoughness, maxMipLevel );
  1159. #endif
  1160. #endif`,lights_fragment_end:`#if defined( RE_IndirectDiffuse )
  1161. RE_IndirectDiffuse( irradiance, geometry, material, reflectedLight );
  1162. #endif
  1163. #if defined( RE_IndirectSpecular )
  1164. RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometry, material, reflectedLight );
  1165. #endif`,logdepthbuf_fragment:`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )
  1166. gl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;
  1167. #endif`,logdepthbuf_pars_fragment:`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )
  1168. uniform float logDepthBufFC;
  1169. varying float vFragDepth;
  1170. varying float vIsPerspective;
  1171. #endif`,logdepthbuf_pars_vertex:`#ifdef USE_LOGDEPTHBUF
  1172. #ifdef USE_LOGDEPTHBUF_EXT
  1173. varying float vFragDepth;
  1174. varying float vIsPerspective;
  1175. #else
  1176. uniform float logDepthBufFC;
  1177. #endif
  1178. #endif`,logdepthbuf_vertex:`#ifdef USE_LOGDEPTHBUF
  1179. #ifdef USE_LOGDEPTHBUF_EXT
  1180. vFragDepth = 1.0 + gl_Position.w;
  1181. vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );
  1182. #else
  1183. if ( isPerspectiveMatrix( projectionMatrix ) ) {
  1184. gl_Position.z = log2( max( EPSILON, gl_Position.w + 1.0 ) ) * logDepthBufFC - 1.0;
  1185. gl_Position.z *= gl_Position.w;
  1186. }
  1187. #endif
  1188. #endif`,map_fragment:`#ifdef USE_MAP
  1189. vec4 texelColor = texture2D( map, vUv );
  1190. texelColor = mapTexelToLinear( texelColor );
  1191. diffuseColor *= texelColor;
  1192. #endif`,map_pars_fragment:`#ifdef USE_MAP
  1193. uniform sampler2D map;
  1194. #endif`,map_particle_fragment:`#if defined( USE_MAP ) || defined( USE_ALPHAMAP )
  1195. vec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;
  1196. #endif
  1197. #ifdef USE_MAP
  1198. vec4 mapTexel = texture2D( map, uv );
  1199. diffuseColor *= mapTexelToLinear( mapTexel );
  1200. #endif
  1201. #ifdef USE_ALPHAMAP
  1202. diffuseColor.a *= texture2D( alphaMap, uv ).g;
  1203. #endif`,map_particle_pars_fragment:`#if defined( USE_MAP ) || defined( USE_ALPHAMAP )
  1204. uniform mat3 uvTransform;
  1205. #endif
  1206. #ifdef USE_MAP
  1207. uniform sampler2D map;
  1208. #endif
  1209. #ifdef USE_ALPHAMAP
  1210. uniform sampler2D alphaMap;
  1211. #endif`,metalnessmap_fragment:`float metalnessFactor = metalness;
  1212. #ifdef USE_METALNESSMAP
  1213. vec4 texelMetalness = texture2D( metalnessMap, vUv );
  1214. metalnessFactor *= texelMetalness.b;
  1215. #endif`,metalnessmap_pars_fragment:`#ifdef USE_METALNESSMAP
  1216. uniform sampler2D metalnessMap;
  1217. #endif`,morphnormal_vertex:`#ifdef USE_MORPHNORMALS
  1218. objectNormal *= morphTargetBaseInfluence;
  1219. objectNormal += morphNormal0 * morphTargetInfluences[ 0 ];
  1220. objectNormal += morphNormal1 * morphTargetInfluences[ 1 ];
  1221. objectNormal += morphNormal2 * morphTargetInfluences[ 2 ];
  1222. objectNormal += morphNormal3 * morphTargetInfluences[ 3 ];
  1223. #endif`,morphtarget_pars_vertex:`#ifdef USE_MORPHTARGETS
  1224. uniform float morphTargetBaseInfluence;
  1225. #ifndef USE_MORPHNORMALS
  1226. uniform float morphTargetInfluences[ 8 ];
  1227. #else
  1228. uniform float morphTargetInfluences[ 4 ];
  1229. #endif
  1230. #endif`,morphtarget_vertex:`#ifdef USE_MORPHTARGETS
  1231. transformed *= morphTargetBaseInfluence;
  1232. transformed += morphTarget0 * morphTargetInfluences[ 0 ];
  1233. transformed += morphTarget1 * morphTargetInfluences[ 1 ];
  1234. transformed += morphTarget2 * morphTargetInfluences[ 2 ];
  1235. transformed += morphTarget3 * morphTargetInfluences[ 3 ];
  1236. #ifndef USE_MORPHNORMALS
  1237. transformed += morphTarget4 * morphTargetInfluences[ 4 ];
  1238. transformed += morphTarget5 * morphTargetInfluences[ 5 ];
  1239. transformed += morphTarget6 * morphTargetInfluences[ 6 ];
  1240. transformed += morphTarget7 * morphTargetInfluences[ 7 ];
  1241. #endif
  1242. #endif`,normal_fragment_begin:`#ifdef FLAT_SHADED
  1243. vec3 fdx = vec3( dFdx( vViewPosition.x ), dFdx( vViewPosition.y ), dFdx( vViewPosition.z ) );
  1244. vec3 fdy = vec3( dFdy( vViewPosition.x ), dFdy( vViewPosition.y ), dFdy( vViewPosition.z ) );
  1245. vec3 normal = normalize( cross( fdx, fdy ) );
  1246. #else
  1247. vec3 normal = normalize( vNormal );
  1248. #ifdef DOUBLE_SIDED
  1249. normal = normal * ( float( gl_FrontFacing ) * 2.0 - 1.0 );
  1250. #endif
  1251. #ifdef USE_TANGENT
  1252. vec3 tangent = normalize( vTangent );
  1253. vec3 bitangent = normalize( vBitangent );
  1254. #ifdef DOUBLE_SIDED
  1255. tangent = tangent * ( float( gl_FrontFacing ) * 2.0 - 1.0 );
  1256. bitangent = bitangent * ( float( gl_FrontFacing ) * 2.0 - 1.0 );
  1257. #endif
  1258. #if defined( TANGENTSPACE_NORMALMAP ) || defined( USE_CLEARCOAT_NORMALMAP )
  1259. mat3 vTBN = mat3( tangent, bitangent, normal );
  1260. #endif
  1261. #endif
  1262. #endif
  1263. vec3 geometryNormal = normal;`,normal_fragment_maps:`#ifdef OBJECTSPACE_NORMALMAP
  1264. normal = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;
  1265. #ifdef FLIP_SIDED
  1266. normal = - normal;
  1267. #endif
  1268. #ifdef DOUBLE_SIDED
  1269. normal = normal * ( float( gl_FrontFacing ) * 2.0 - 1.0 );
  1270. #endif
  1271. normal = normalize( normalMatrix * normal );
  1272. #elif defined( TANGENTSPACE_NORMALMAP )
  1273. vec3 mapN = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;
  1274. mapN.xy *= normalScale;
  1275. #ifdef USE_TANGENT
  1276. normal = normalize( vTBN * mapN );
  1277. #else
  1278. normal = perturbNormal2Arb( -vViewPosition, normal, mapN );
  1279. #endif
  1280. #elif defined( USE_BUMPMAP )
  1281. normal = perturbNormalArb( -vViewPosition, normal, dHdxy_fwd() );
  1282. #endif`,normalmap_pars_fragment:`#ifdef USE_NORMALMAP
  1283. uniform sampler2D normalMap;
  1284. uniform vec2 normalScale;
  1285. #endif
  1286. #ifdef OBJECTSPACE_NORMALMAP
  1287. uniform mat3 normalMatrix;
  1288. #endif
  1289. #if ! defined ( USE_TANGENT ) && ( defined ( TANGENTSPACE_NORMALMAP ) || defined ( USE_CLEARCOAT_NORMALMAP ) )
  1290. vec3 perturbNormal2Arb( vec3 eye_pos, vec3 surf_norm, vec3 mapN ) {
  1291. vec3 q0 = vec3( dFdx( eye_pos.x ), dFdx( eye_pos.y ), dFdx( eye_pos.z ) );
  1292. vec3 q1 = vec3( dFdy( eye_pos.x ), dFdy( eye_pos.y ), dFdy( eye_pos.z ) );
  1293. vec2 st0 = dFdx( vUv.st );
  1294. vec2 st1 = dFdy( vUv.st );
  1295. float scale = sign( st1.t * st0.s - st0.t * st1.s );
  1296. vec3 S = normalize( ( q0 * st1.t - q1 * st0.t ) * scale );
  1297. vec3 T = normalize( ( - q0 * st1.s + q1 * st0.s ) * scale );
  1298. vec3 N = normalize( surf_norm );
  1299. mat3 tsn = mat3( S, T, N );
  1300. mapN.xy *= ( float( gl_FrontFacing ) * 2.0 - 1.0 );
  1301. return normalize( tsn * mapN );
  1302. }
  1303. #endif`,clearcoat_normal_fragment_begin:`#ifdef CLEARCOAT
  1304. vec3 clearcoatNormal = geometryNormal;
  1305. #endif`,clearcoat_normal_fragment_maps:`#ifdef USE_CLEARCOAT_NORMALMAP
  1306. vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vUv ).xyz * 2.0 - 1.0;
  1307. clearcoatMapN.xy *= clearcoatNormalScale;
  1308. #ifdef USE_TANGENT
  1309. clearcoatNormal = normalize( vTBN * clearcoatMapN );
  1310. #else
  1311. clearcoatNormal = perturbNormal2Arb( - vViewPosition, clearcoatNormal, clearcoatMapN );
  1312. #endif
  1313. #endif`,clearcoat_normalmap_pars_fragment:`#ifdef USE_CLEARCOAT_NORMALMAP
  1314. uniform sampler2D clearcoatNormalMap;
  1315. uniform vec2 clearcoatNormalScale;
  1316. #endif`,packing:`vec3 packNormalToRGB( const in vec3 normal ) {
  1317. return normalize( normal ) * 0.5 + 0.5;
  1318. }
  1319. vec3 unpackRGBToNormal( const in vec3 rgb ) {
  1320. return 2.0 * rgb.xyz - 1.0;
  1321. }
  1322. const float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;
  1323. const vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. );
  1324. const vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );
  1325. const float ShiftRight8 = 1. / 256.;
  1326. vec4 packDepthToRGBA( const in float v ) {
  1327. vec4 r = vec4( fract( v * PackFactors ), v );
  1328. r.yzw -= r.xyz * ShiftRight8; return r * PackUpscale;
  1329. }
  1330. float unpackRGBAToDepth( const in vec4 v ) {
  1331. return dot( v, UnpackFactors );
  1332. }
  1333. vec4 pack2HalfToRGBA( vec2 v ) {
  1334. vec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ));
  1335. return vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w);
  1336. }
  1337. vec2 unpackRGBATo2Half( vec4 v ) {
  1338. return vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );
  1339. }
  1340. float viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {
  1341. return ( viewZ + near ) / ( near - far );
  1342. }
  1343. float orthographicDepthToViewZ( const in float linearClipZ, const in float near, const in float far ) {
  1344. return linearClipZ * ( near - far ) - near;
  1345. }
  1346. float viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {
  1347. return (( near + viewZ ) * far ) / (( far - near ) * viewZ );
  1348. }
  1349. float perspectiveDepthToViewZ( const in float invClipZ, const in float near, const in float far ) {
  1350. return ( near * far ) / ( ( far - near ) * invClipZ - far );
  1351. }`,premultiplied_alpha_fragment:`#ifdef PREMULTIPLIED_ALPHA
  1352. gl_FragColor.rgb *= gl_FragColor.a;
  1353. #endif`,project_vertex:`vec4 mvPosition = vec4( transformed, 1.0 );
  1354. #ifdef USE_INSTANCING
  1355. mvPosition = instanceMatrix * mvPosition;
  1356. #endif
  1357. mvPosition = modelViewMatrix * mvPosition;
  1358. gl_Position = projectionMatrix * mvPosition;`,dithering_fragment:`#ifdef DITHERING
  1359. gl_FragColor.rgb = dithering( gl_FragColor.rgb );
  1360. #endif`,dithering_pars_fragment:`#ifdef DITHERING
  1361. vec3 dithering( vec3 color ) {
  1362. float grid_position = rand( gl_FragCoord.xy );
  1363. vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );
  1364. dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );
  1365. return color + dither_shift_RGB;
  1366. }
  1367. #endif`,roughnessmap_fragment:`float roughnessFactor = roughness;
  1368. #ifdef USE_ROUGHNESSMAP
  1369. vec4 texelRoughness = texture2D( roughnessMap, vUv );
  1370. roughnessFactor *= texelRoughness.g;
  1371. #endif`,roughnessmap_pars_fragment:`#ifdef USE_ROUGHNESSMAP
  1372. uniform sampler2D roughnessMap;
  1373. #endif`,shadowmap_pars_fragment:`#ifdef USE_SHADOWMAP
  1374. #if NUM_DIR_LIGHT_SHADOWS > 0
  1375. uniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];
  1376. varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];
  1377. #endif
  1378. #if NUM_SPOT_LIGHT_SHADOWS > 0
  1379. uniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];
  1380. varying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHT_SHADOWS ];
  1381. #endif
  1382. #if NUM_POINT_LIGHT_SHADOWS > 0
  1383. uniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];
  1384. varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];
  1385. #endif
  1386. float texture2DCompare( sampler2D depths, vec2 uv, float compare ) {
  1387. return step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );
  1388. }
  1389. vec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {
  1390. return unpackRGBATo2Half( texture2D( shadow, uv ) );
  1391. }
  1392. float VSMShadow (sampler2D shadow, vec2 uv, float compare ){
  1393. float occlusion = 1.0;
  1394. vec2 distribution = texture2DDistribution( shadow, uv );
  1395. float hard_shadow = step( compare , distribution.x );
  1396. if (hard_shadow != 1.0 ) {
  1397. float distance = compare - distribution.x ;
  1398. float variance = max( 0.00000, distribution.y * distribution.y );
  1399. float softness_probability = variance / (variance + distance * distance ); softness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 ); occlusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );
  1400. }
  1401. return occlusion;
  1402. }
  1403. float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {
  1404. float shadow = 1.0;
  1405. shadowCoord.xyz /= shadowCoord.w;
  1406. shadowCoord.z += shadowBias;
  1407. bvec4 inFrustumVec = bvec4 ( shadowCoord.x >= 0.0, shadowCoord.x <= 1.0, shadowCoord.y >= 0.0, shadowCoord.y <= 1.0 );
  1408. bool inFrustum = all( inFrustumVec );
  1409. bvec2 frustumTestVec = bvec2( inFrustum, shadowCoord.z <= 1.0 );
  1410. bool frustumTest = all( frustumTestVec );
  1411. if ( frustumTest ) {
  1412. #if defined( SHADOWMAP_TYPE_PCF )
  1413. vec2 texelSize = vec2( 1.0 ) / shadowMapSize;
  1414. float dx0 = - texelSize.x * shadowRadius;
  1415. float dy0 = - texelSize.y * shadowRadius;
  1416. float dx1 = + texelSize.x * shadowRadius;
  1417. float dy1 = + texelSize.y * shadowRadius;
  1418. float dx2 = dx0 / 2.0;
  1419. float dy2 = dy0 / 2.0;
  1420. float dx3 = dx1 / 2.0;
  1421. float dy3 = dy1 / 2.0;
  1422. shadow = (
  1423. texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +
  1424. texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +
  1425. texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +
  1426. texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +
  1427. texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +
  1428. texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +
  1429. texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +
  1430. texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +
  1431. texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +
  1432. texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +
  1433. texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +
  1434. texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +
  1435. texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +
  1436. texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +
  1437. texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +
  1438. texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +
  1439. texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )
  1440. ) * ( 1.0 / 17.0 );
  1441. #elif defined( SHADOWMAP_TYPE_PCF_SOFT )
  1442. vec2 texelSize = vec2( 1.0 ) / shadowMapSize;
  1443. float dx = texelSize.x;
  1444. float dy = texelSize.y;
  1445. vec2 uv = shadowCoord.xy;
  1446. vec2 f = fract( uv * shadowMapSize + 0.5 );
  1447. uv -= f * texelSize;
  1448. shadow = (
  1449. texture2DCompare( shadowMap, uv, shadowCoord.z ) +
  1450. texture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +
  1451. texture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +
  1452. texture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +
  1453. mix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ),
  1454. texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),
  1455. f.x ) +
  1456. mix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ),
  1457. texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),
  1458. f.x ) +
  1459. mix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ),
  1460. texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),
  1461. f.y ) +
  1462. mix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ),
  1463. texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),
  1464. f.y ) +
  1465. mix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ),
  1466. texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),
  1467. f.x ),
  1468. mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ),
  1469. texture2DCompare( shadowMap, uv + + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),
  1470. f.x ),
  1471. f.y )
  1472. ) * ( 1.0 / 9.0 );
  1473. #elif defined( SHADOWMAP_TYPE_VSM )
  1474. shadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );
  1475. #else
  1476. shadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );
  1477. #endif
  1478. }
  1479. return shadow;
  1480. }
  1481. vec2 cubeToUV( vec3 v, float texelSizeY ) {
  1482. vec3 absV = abs( v );
  1483. float scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );
  1484. absV *= scaleToCube;
  1485. v *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );
  1486. vec2 planar = v.xy;
  1487. float almostATexel = 1.5 * texelSizeY;
  1488. float almostOne = 1.0 - almostATexel;
  1489. if ( absV.z >= almostOne ) {
  1490. if ( v.z > 0.0 )
  1491. planar.x = 4.0 - v.x;
  1492. } else if ( absV.x >= almostOne ) {
  1493. float signX = sign( v.x );
  1494. planar.x = v.z * signX + 2.0 * signX;
  1495. } else if ( absV.y >= almostOne ) {
  1496. float signY = sign( v.y );
  1497. planar.x = v.x + 2.0 * signY + 2.0;
  1498. planar.y = v.z * signY - 2.0;
  1499. }
  1500. return vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );
  1501. }
  1502. float getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {
  1503. vec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );
  1504. vec3 lightToPosition = shadowCoord.xyz;
  1505. float dp = ( length( lightToPosition ) - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear ); dp += shadowBias;
  1506. vec3 bd3D = normalize( lightToPosition );
  1507. #if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )
  1508. vec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;
  1509. return (
  1510. texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +
  1511. texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +
  1512. texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +
  1513. texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +
  1514. texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +
  1515. texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +
  1516. texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +
  1517. texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +
  1518. texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )
  1519. ) * ( 1.0 / 9.0 );
  1520. #else
  1521. return texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );
  1522. #endif
  1523. }
  1524. #endif`,shadowmap_pars_vertex:`#ifdef USE_SHADOWMAP
  1525. #if NUM_DIR_LIGHT_SHADOWS > 0
  1526. uniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];
  1527. varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];
  1528. #endif
  1529. #if NUM_SPOT_LIGHT_SHADOWS > 0
  1530. uniform mat4 spotShadowMatrix[ NUM_SPOT_LIGHT_SHADOWS ];
  1531. varying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHT_SHADOWS ];
  1532. #endif
  1533. #if NUM_POINT_LIGHT_SHADOWS > 0
  1534. uniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];
  1535. varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];
  1536. #endif
  1537. #endif`,shadowmap_vertex:`#ifdef USE_SHADOWMAP
  1538. #if NUM_DIR_LIGHT_SHADOWS > 0
  1539. #pragma unroll_loop
  1540. for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {
  1541. vDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * worldPosition;
  1542. }
  1543. #endif
  1544. #if NUM_SPOT_LIGHT_SHADOWS > 0
  1545. #pragma unroll_loop
  1546. for ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {
  1547. vSpotShadowCoord[ i ] = spotShadowMatrix[ i ] * worldPosition;
  1548. }
  1549. #endif
  1550. #if NUM_POINT_LIGHT_SHADOWS > 0
  1551. #pragma unroll_loop
  1552. for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {
  1553. vPointShadowCoord[ i ] = pointShadowMatrix[ i ] * worldPosition;
  1554. }
  1555. #endif
  1556. #endif`,shadowmask_pars_fragment:`float getShadowMask() {
  1557. float shadow = 1.0;
  1558. #ifdef USE_SHADOWMAP
  1559. #if NUM_DIR_LIGHT_SHADOWS > 0
  1560. DirectionalLight directionalLight;
  1561. #pragma unroll_loop
  1562. for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {
  1563. directionalLight = directionalLights[ i ];
  1564. shadow *= all( bvec2( directionalLight.shadow, receiveShadow ) ) ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;
  1565. }
  1566. #endif
  1567. #if NUM_SPOT_LIGHT_SHADOWS > 0
  1568. SpotLight spotLight;
  1569. #pragma unroll_loop
  1570. for ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {
  1571. spotLight = spotLights[ i ];
  1572. shadow *= all( bvec2( spotLight.shadow, receiveShadow ) ) ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;
  1573. }
  1574. #endif
  1575. #if NUM_POINT_LIGHT_SHADOWS > 0
  1576. PointLight pointLight;
  1577. #pragma unroll_loop
  1578. for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {
  1579. pointLight = pointLights[ i ];
  1580. shadow *= all( bvec2( pointLight.shadow, receiveShadow ) ) ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;
  1581. }
  1582. #endif
  1583. #endif
  1584. return shadow;
  1585. }`,skinbase_vertex:`#ifdef USE_SKINNING
  1586. mat4 boneMatX = getBoneMatrix( skinIndex.x );
  1587. mat4 boneMatY = getBoneMatrix( skinIndex.y );
  1588. mat4 boneMatZ = getBoneMatrix( skinIndex.z );
  1589. mat4 boneMatW = getBoneMatrix( skinIndex.w );
  1590. #endif`,skinning_pars_vertex:`#ifdef USE_SKINNING
  1591. uniform mat4 bindMatrix;
  1592. uniform mat4 bindMatrixInverse;
  1593. #ifdef BONE_TEXTURE
  1594. uniform highp sampler2D boneTexture;
  1595. uniform int boneTextureSize;
  1596. mat4 getBoneMatrix( const in float i ) {
  1597. float j = i * 4.0;
  1598. float x = mod( j, float( boneTextureSize ) );
  1599. float y = floor( j / float( boneTextureSize ) );
  1600. float dx = 1.0 / float( boneTextureSize );
  1601. float dy = 1.0 / float( boneTextureSize );
  1602. y = dy * ( y + 0.5 );
  1603. vec4 v1 = texture2D( boneTexture, vec2( dx * ( x + 0.5 ), y ) );
  1604. vec4 v2 = texture2D( boneTexture, vec2( dx * ( x + 1.5 ), y ) );
  1605. vec4 v3 = texture2D( boneTexture, vec2( dx * ( x + 2.5 ), y ) );
  1606. vec4 v4 = texture2D( boneTexture, vec2( dx * ( x + 3.5 ), y ) );
  1607. mat4 bone = mat4( v1, v2, v3, v4 );
  1608. return bone;
  1609. }
  1610. #else
  1611. uniform mat4 boneMatrices[ MAX_BONES ];
  1612. mat4 getBoneMatrix( const in float i ) {
  1613. mat4 bone = boneMatrices[ int(i) ];
  1614. return bone;
  1615. }
  1616. #endif
  1617. #endif`,skinning_vertex:`#ifdef USE_SKINNING
  1618. vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );
  1619. vec4 skinned = vec4( 0.0 );
  1620. skinned += boneMatX * skinVertex * skinWeight.x;
  1621. skinned += boneMatY * skinVertex * skinWeight.y;
  1622. skinned += boneMatZ * skinVertex * skinWeight.z;
  1623. skinned += boneMatW * skinVertex * skinWeight.w;
  1624. transformed = ( bindMatrixInverse * skinned ).xyz;
  1625. #endif`,skinnormal_vertex:`#ifdef USE_SKINNING
  1626. mat4 skinMatrix = mat4( 0.0 );
  1627. skinMatrix += skinWeight.x * boneMatX;
  1628. skinMatrix += skinWeight.y * boneMatY;
  1629. skinMatrix += skinWeight.z * boneMatZ;
  1630. skinMatrix += skinWeight.w * boneMatW;
  1631. skinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;
  1632. objectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;
  1633. #ifdef USE_TANGENT
  1634. objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;
  1635. #endif
  1636. #endif`,specularmap_fragment:`float specularStrength;
  1637. #ifdef USE_SPECULARMAP
  1638. vec4 texelSpecular = texture2D( specularMap, vUv );
  1639. specularStrength = texelSpecular.r;
  1640. #else
  1641. specularStrength = 1.0;
  1642. #endif`,specularmap_pars_fragment:`#ifdef USE_SPECULARMAP
  1643. uniform sampler2D specularMap;
  1644. #endif`,tonemapping_fragment:`#if defined( TONE_MAPPING )
  1645. gl_FragColor.rgb = toneMapping( gl_FragColor.rgb );
  1646. #endif`,tonemapping_pars_fragment:`#ifndef saturate
  1647. #define saturate(a) clamp( a, 0.0, 1.0 )
  1648. #endif
  1649. uniform float toneMappingExposure;
  1650. uniform float toneMappingWhitePoint;
  1651. vec3 LinearToneMapping( vec3 color ) {
  1652. return toneMappingExposure * color;
  1653. }
  1654. vec3 ReinhardToneMapping( vec3 color ) {
  1655. color *= toneMappingExposure;
  1656. return saturate( color / ( vec3( 1.0 ) + color ) );
  1657. }
  1658. #define Uncharted2Helper( x ) max( ( ( x * ( 0.15 * x + 0.10 * 0.50 ) + 0.20 * 0.02 ) / ( x * ( 0.15 * x + 0.50 ) + 0.20 * 0.30 ) ) - 0.02 / 0.30, vec3( 0.0 ) )
  1659. vec3 Uncharted2ToneMapping( vec3 color ) {
  1660. color *= toneMappingExposure;
  1661. return saturate( Uncharted2Helper( color ) / Uncharted2Helper( vec3( toneMappingWhitePoint ) ) );
  1662. }
  1663. vec3 OptimizedCineonToneMapping( vec3 color ) {
  1664. color *= toneMappingExposure;
  1665. color = max( vec3( 0.0 ), color - 0.004 );
  1666. return pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );
  1667. }
  1668. vec3 ACESFilmicToneMapping( vec3 color ) {
  1669. color *= toneMappingExposure;
  1670. return saturate( ( color * ( 2.51 * color + 0.03 ) ) / ( color * ( 2.43 * color + 0.59 ) + 0.14 ) );
  1671. }`,uv_pars_fragment:`#if ( defined( USE_UV ) && ! defined( UVS_VERTEX_ONLY ) )
  1672. varying vec2 vUv;
  1673. #endif`,uv_pars_vertex:`#ifdef USE_UV
  1674. #ifdef UVS_VERTEX_ONLY
  1675. vec2 vUv;
  1676. #else
  1677. varying vec2 vUv;
  1678. #endif
  1679. uniform mat3 uvTransform;
  1680. #endif`,uv_vertex:`#ifdef USE_UV
  1681. vUv = ( uvTransform * vec3( uv, 1 ) ).xy;
  1682. #endif`,uv2_pars_fragment:`#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )
  1683. varying vec2 vUv2;
  1684. #endif`,uv2_pars_vertex:`#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )
  1685. attribute vec2 uv2;
  1686. varying vec2 vUv2;
  1687. uniform mat3 uv2Transform;
  1688. #endif`,uv2_vertex:`#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )
  1689. vUv2 = ( uv2Transform * vec3( uv2, 1 ) ).xy;
  1690. #endif`,worldpos_vertex:`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP )
  1691. vec4 worldPosition = vec4( transformed, 1.0 );
  1692. #ifdef USE_INSTANCING
  1693. worldPosition = instanceMatrix * worldPosition;
  1694. #endif
  1695. worldPosition = modelMatrix * worldPosition;
  1696. #endif`,background_frag:`uniform sampler2D t2D;
  1697. varying vec2 vUv;
  1698. void main() {
  1699. vec4 texColor = texture2D( t2D, vUv );
  1700. gl_FragColor = mapTexelToLinear( texColor );
  1701. #include <tonemapping_fragment>
  1702. #include <encodings_fragment>
  1703. }`,background_vert:`varying vec2 vUv;
  1704. uniform mat3 uvTransform;
  1705. void main() {
  1706. vUv = ( uvTransform * vec3( uv, 1 ) ).xy;
  1707. gl_Position = vec4( position.xy, 1.0, 1.0 );
  1708. }`,cube_frag:`#include <envmap_common_pars_fragment>
  1709. uniform float opacity;
  1710. varying vec3 vWorldDirection;
  1711. #include <cube_uv_reflection_fragment>
  1712. void main() {
  1713. vec3 vReflect = vWorldDirection;
  1714. #include <envmap_fragment>
  1715. gl_FragColor = envColor;
  1716. gl_FragColor.a *= opacity;
  1717. #include <tonemapping_fragment>
  1718. #include <encodings_fragment>
  1719. }`,cube_vert:`varying vec3 vWorldDirection;
  1720. #include <common>
  1721. void main() {
  1722. vWorldDirection = transformDirection( position, modelMatrix );
  1723. #include <begin_vertex>
  1724. #include <project_vertex>
  1725. gl_Position.z = gl_Position.w;
  1726. }`,depth_frag:`#if DEPTH_PACKING == 3200
  1727. uniform float opacity;
  1728. #endif
  1729. #include <common>
  1730. #include <packing>
  1731. #include <uv_pars_fragment>
  1732. #include <map_pars_fragment>
  1733. #include <alphamap_pars_fragment>
  1734. #include <logdepthbuf_pars_fragment>
  1735. #include <clipping_planes_pars_fragment>
  1736. void main() {
  1737. #include <clipping_planes_fragment>
  1738. vec4 diffuseColor = vec4( 1.0 );
  1739. #if DEPTH_PACKING == 3200
  1740. diffuseColor.a = opacity;
  1741. #endif
  1742. #include <map_fragment>
  1743. #include <alphamap_fragment>
  1744. #include <alphatest_fragment>
  1745. #include <logdepthbuf_fragment>
  1746. #if DEPTH_PACKING == 3200
  1747. gl_FragColor = vec4( vec3( 1.0 - gl_FragCoord.z ), opacity );
  1748. #elif DEPTH_PACKING == 3201
  1749. gl_FragColor = packDepthToRGBA( gl_FragCoord.z );
  1750. #endif
  1751. }`,depth_vert:`#include <common>
  1752. #include <uv_pars_vertex>
  1753. #include <displacementmap_pars_vertex>
  1754. #include <morphtarget_pars_vertex>
  1755. #include <skinning_pars_vertex>
  1756. #include <logdepthbuf_pars_vertex>
  1757. #include <clipping_planes_pars_vertex>
  1758. void main() {
  1759. #include <uv_vertex>
  1760. #include <skinbase_vertex>
  1761. #ifdef USE_DISPLACEMENTMAP
  1762. #include <beginnormal_vertex>
  1763. #include <morphnormal_vertex>
  1764. #include <skinnormal_vertex>
  1765. #endif
  1766. #include <begin_vertex>
  1767. #include <morphtarget_vertex>
  1768. #include <skinning_vertex>
  1769. #include <displacementmap_vertex>
  1770. #include <project_vertex>
  1771. #include <logdepthbuf_vertex>
  1772. #include <clipping_planes_vertex>
  1773. }`,distanceRGBA_frag:`#define DISTANCE
  1774. uniform vec3 referencePosition;
  1775. uniform float nearDistance;
  1776. uniform float farDistance;
  1777. varying vec3 vWorldPosition;
  1778. #include <common>
  1779. #include <packing>
  1780. #include <uv_pars_fragment>
  1781. #include <map_pars_fragment>
  1782. #include <alphamap_pars_fragment>
  1783. #include <clipping_planes_pars_fragment>
  1784. void main () {
  1785. #include <clipping_planes_fragment>
  1786. vec4 diffuseColor = vec4( 1.0 );
  1787. #include <map_fragment>
  1788. #include <alphamap_fragment>
  1789. #include <alphatest_fragment>
  1790. float dist = length( vWorldPosition - referencePosition );
  1791. dist = ( dist - nearDistance ) / ( farDistance - nearDistance );
  1792. dist = saturate( dist );
  1793. gl_FragColor = packDepthToRGBA( dist );
  1794. }`,distanceRGBA_vert:`#define DISTANCE
  1795. varying vec3 vWorldPosition;
  1796. #include <common>
  1797. #include <uv_pars_vertex>
  1798. #include <displacementmap_pars_vertex>
  1799. #include <morphtarget_pars_vertex>
  1800. #include <skinning_pars_vertex>
  1801. #include <clipping_planes_pars_vertex>
  1802. void main() {
  1803. #include <uv_vertex>
  1804. #include <skinbase_vertex>
  1805. #ifdef USE_DISPLACEMENTMAP
  1806. #include <beginnormal_vertex>
  1807. #include <morphnormal_vertex>
  1808. #include <skinnormal_vertex>
  1809. #endif
  1810. #include <begin_vertex>
  1811. #include <morphtarget_vertex>
  1812. #include <skinning_vertex>
  1813. #include <displacementmap_vertex>
  1814. #include <project_vertex>
  1815. #include <worldpos_vertex>
  1816. #include <clipping_planes_vertex>
  1817. vWorldPosition = worldPosition.xyz;
  1818. }`,equirect_frag:`uniform sampler2D tEquirect;
  1819. varying vec3 vWorldDirection;
  1820. #include <common>
  1821. void main() {
  1822. vec3 direction = normalize( vWorldDirection );
  1823. vec2 sampleUV;
  1824. sampleUV.y = asin( clamp( direction.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;
  1825. sampleUV.x = atan( direction.z, direction.x ) * RECIPROCAL_PI2 + 0.5;
  1826. vec4 texColor = texture2D( tEquirect, sampleUV );
  1827. gl_FragColor = mapTexelToLinear( texColor );
  1828. #include <tonemapping_fragment>
  1829. #include <encodings_fragment>
  1830. }`,equirect_vert:`varying vec3 vWorldDirection;
  1831. #include <common>
  1832. void main() {
  1833. vWorldDirection = transformDirection( position, modelMatrix );
  1834. #include <begin_vertex>
  1835. #include <project_vertex>
  1836. }`,linedashed_frag:`uniform vec3 diffuse;
  1837. uniform float opacity;
  1838. uniform float dashSize;
  1839. uniform float totalSize;
  1840. varying float vLineDistance;
  1841. #include <common>
  1842. #include <color_pars_fragment>
  1843. #include <fog_pars_fragment>
  1844. #include <logdepthbuf_pars_fragment>
  1845. #include <clipping_planes_pars_fragment>
  1846. void main() {
  1847. #include <clipping_planes_fragment>
  1848. if ( mod( vLineDistance, totalSize ) > dashSize ) {
  1849. discard;
  1850. }
  1851. vec3 outgoingLight = vec3( 0.0 );
  1852. vec4 diffuseColor = vec4( diffuse, opacity );
  1853. #include <logdepthbuf_fragment>
  1854. #include <color_fragment>
  1855. outgoingLight = diffuseColor.rgb;
  1856. gl_FragColor = vec4( outgoingLight, diffuseColor.a );
  1857. #include <tonemapping_fragment>
  1858. #include <encodings_fragment>
  1859. #include <fog_fragment>
  1860. #include <premultiplied_alpha_fragment>
  1861. }`,linedashed_vert:`uniform float scale;
  1862. attribute float lineDistance;
  1863. varying float vLineDistance;
  1864. #include <common>
  1865. #include <color_pars_vertex>
  1866. #include <fog_pars_vertex>
  1867. #include <logdepthbuf_pars_vertex>
  1868. #include <clipping_planes_pars_vertex>
  1869. void main() {
  1870. #include <color_vertex>
  1871. vLineDistance = scale * lineDistance;
  1872. vec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );
  1873. gl_Position = projectionMatrix * mvPosition;
  1874. #include <logdepthbuf_vertex>
  1875. #include <clipping_planes_vertex>
  1876. #include <fog_vertex>
  1877. }`,meshbasic_frag:`uniform vec3 diffuse;
  1878. uniform float opacity;
  1879. #ifndef FLAT_SHADED
  1880. varying vec3 vNormal;
  1881. #endif
  1882. #include <common>
  1883. #include <color_pars_fragment>
  1884. #include <uv_pars_fragment>
  1885. #include <uv2_pars_fragment>
  1886. #include <map_pars_fragment>
  1887. #include <alphamap_pars_fragment>
  1888. #include <aomap_pars_fragment>
  1889. #include <lightmap_pars_fragment>
  1890. #include <envmap_common_pars_fragment>
  1891. #include <envmap_pars_fragment>
  1892. #include <cube_uv_reflection_fragment>
  1893. #include <fog_pars_fragment>
  1894. #include <specularmap_pars_fragment>
  1895. #include <logdepthbuf_pars_fragment>
  1896. #include <clipping_planes_pars_fragment>
  1897. void main() {
  1898. #include <clipping_planes_fragment>
  1899. vec4 diffuseColor = vec4( diffuse, opacity );
  1900. #include <logdepthbuf_fragment>
  1901. #include <map_fragment>
  1902. #include <color_fragment>
  1903. #include <alphamap_fragment>
  1904. #include <alphatest_fragment>
  1905. #include <specularmap_fragment>
  1906. ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
  1907. #ifdef USE_LIGHTMAP
  1908. vec4 lightMapTexel= texture2D( lightMap, vUv2 );
  1909. reflectedLight.indirectDiffuse += lightMapTexelToLinear( lightMapTexel ).rgb * lightMapIntensity;
  1910. #else
  1911. reflectedLight.indirectDiffuse += vec3( 1.0 );
  1912. #endif
  1913. #include <aomap_fragment>
  1914. reflectedLight.indirectDiffuse *= diffuseColor.rgb;
  1915. vec3 outgoingLight = reflectedLight.indirectDiffuse;
  1916. #include <envmap_fragment>
  1917. gl_FragColor = vec4( outgoingLight, diffuseColor.a );
  1918. #include <tonemapping_fragment>
  1919. #include <encodings_fragment>
  1920. #include <fog_fragment>
  1921. #include <premultiplied_alpha_fragment>
  1922. }`,meshbasic_vert:`#include <common>
  1923. #include <uv_pars_vertex>
  1924. #include <uv2_pars_vertex>
  1925. #include <envmap_pars_vertex>
  1926. #include <color_pars_vertex>
  1927. #include <fog_pars_vertex>
  1928. #include <morphtarget_pars_vertex>
  1929. #include <skinning_pars_vertex>
  1930. #include <logdepthbuf_pars_vertex>
  1931. #include <clipping_planes_pars_vertex>
  1932. void main() {
  1933. #include <uv_vertex>
  1934. #include <uv2_vertex>
  1935. #include <color_vertex>
  1936. #include <skinbase_vertex>
  1937. #ifdef USE_ENVMAP
  1938. #include <beginnormal_vertex>
  1939. #include <morphnormal_vertex>
  1940. #include <skinnormal_vertex>
  1941. #include <defaultnormal_vertex>
  1942. #endif
  1943. #include <begin_vertex>
  1944. #include <morphtarget_vertex>
  1945. #include <skinning_vertex>
  1946. #include <project_vertex>
  1947. #include <logdepthbuf_vertex>
  1948. #include <worldpos_vertex>
  1949. #include <clipping_planes_vertex>
  1950. #include <envmap_vertex>
  1951. #include <fog_vertex>
  1952. }`,meshlambert_frag:`uniform vec3 diffuse;
  1953. uniform vec3 emissive;
  1954. uniform float opacity;
  1955. varying vec3 vLightFront;
  1956. varying vec3 vIndirectFront;
  1957. #ifdef DOUBLE_SIDED
  1958. varying vec3 vLightBack;
  1959. varying vec3 vIndirectBack;
  1960. #endif
  1961. #include <common>
  1962. #include <packing>
  1963. #include <dithering_pars_fragment>
  1964. #include <color_pars_fragment>
  1965. #include <uv_pars_fragment>
  1966. #include <uv2_pars_fragment>
  1967. #include <map_pars_fragment>
  1968. #include <alphamap_pars_fragment>
  1969. #include <aomap_pars_fragment>
  1970. #include <lightmap_pars_fragment>
  1971. #include <emissivemap_pars_fragment>
  1972. #include <envmap_common_pars_fragment>
  1973. #include <envmap_pars_fragment>
  1974. #include <cube_uv_reflection_fragment>
  1975. #include <bsdfs>
  1976. #include <lights_pars_begin>
  1977. #include <fog_pars_fragment>
  1978. #include <shadowmap_pars_fragment>
  1979. #include <shadowmask_pars_fragment>
  1980. #include <specularmap_pars_fragment>
  1981. #include <logdepthbuf_pars_fragment>
  1982. #include <clipping_planes_pars_fragment>
  1983. void main() {
  1984. #include <clipping_planes_fragment>
  1985. vec4 diffuseColor = vec4( diffuse, opacity );
  1986. ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
  1987. vec3 totalEmissiveRadiance = emissive;
  1988. #include <logdepthbuf_fragment>
  1989. #include <map_fragment>
  1990. #include <color_fragment>
  1991. #include <alphamap_fragment>
  1992. #include <alphatest_fragment>
  1993. #include <specularmap_fragment>
  1994. #include <emissivemap_fragment>
  1995. reflectedLight.indirectDiffuse = getAmbientLightIrradiance( ambientLightColor );
  1996. #ifdef DOUBLE_SIDED
  1997. reflectedLight.indirectDiffuse += ( gl_FrontFacing ) ? vIndirectFront : vIndirectBack;
  1998. #else
  1999. reflectedLight.indirectDiffuse += vIndirectFront;
  2000. #endif
  2001. #include <lightmap_fragment>
  2002. reflectedLight.indirectDiffuse *= BRDF_Diffuse_Lambert( diffuseColor.rgb );
  2003. #ifdef DOUBLE_SIDED
  2004. reflectedLight.directDiffuse = ( gl_FrontFacing ) ? vLightFront : vLightBack;
  2005. #else
  2006. reflectedLight.directDiffuse = vLightFront;
  2007. #endif
  2008. reflectedLight.directDiffuse *= BRDF_Diffuse_Lambert( diffuseColor.rgb ) * getShadowMask();
  2009. #include <aomap_fragment>
  2010. vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;
  2011. #include <envmap_fragment>
  2012. gl_FragColor = vec4( outgoingLight, diffuseColor.a );
  2013. #include <tonemapping_fragment>
  2014. #include <encodings_fragment>
  2015. #include <fog_fragment>
  2016. #include <premultiplied_alpha_fragment>
  2017. #include <dithering_fragment>
  2018. }`,meshlambert_vert:`#define LAMBERT
  2019. varying vec3 vLightFront;
  2020. varying vec3 vIndirectFront;
  2021. #ifdef DOUBLE_SIDED
  2022. varying vec3 vLightBack;
  2023. varying vec3 vIndirectBack;
  2024. #endif
  2025. #include <common>
  2026. #include <uv_pars_vertex>
  2027. #include <uv2_pars_vertex>
  2028. #include <envmap_pars_vertex>
  2029. #include <bsdfs>
  2030. #include <lights_pars_begin>
  2031. #include <color_pars_vertex>
  2032. #include <fog_pars_vertex>
  2033. #include <morphtarget_pars_vertex>
  2034. #include <skinning_pars_vertex>
  2035. #include <shadowmap_pars_vertex>
  2036. #include <logdepthbuf_pars_vertex>
  2037. #include <clipping_planes_pars_vertex>
  2038. void main() {
  2039. #include <uv_vertex>
  2040. #include <uv2_vertex>
  2041. #include <color_vertex>
  2042. #include <beginnormal_vertex>
  2043. #include <morphnormal_vertex>
  2044. #include <skinbase_vertex>
  2045. #include <skinnormal_vertex>
  2046. #include <defaultnormal_vertex>
  2047. #include <begin_vertex>
  2048. #include <morphtarget_vertex>
  2049. #include <skinning_vertex>
  2050. #include <project_vertex>
  2051. #include <logdepthbuf_vertex>
  2052. #include <clipping_planes_vertex>
  2053. #include <worldpos_vertex>
  2054. #include <envmap_vertex>
  2055. #include <lights_lambert_vertex>
  2056. #include <shadowmap_vertex>
  2057. #include <fog_vertex>
  2058. }`,meshmatcap_frag:`#define MATCAP
  2059. uniform vec3 diffuse;
  2060. uniform float opacity;
  2061. uniform sampler2D matcap;
  2062. varying vec3 vViewPosition;
  2063. #ifndef FLAT_SHADED
  2064. varying vec3 vNormal;
  2065. #endif
  2066. #include <common>
  2067. #include <uv_pars_fragment>
  2068. #include <map_pars_fragment>
  2069. #include <alphamap_pars_fragment>
  2070. #include <fog_pars_fragment>
  2071. #include <bumpmap_pars_fragment>
  2072. #include <normalmap_pars_fragment>
  2073. #include <logdepthbuf_pars_fragment>
  2074. #include <clipping_planes_pars_fragment>
  2075. void main() {
  2076. #include <clipping_planes_fragment>
  2077. vec4 diffuseColor = vec4( diffuse, opacity );
  2078. #include <logdepthbuf_fragment>
  2079. #include <map_fragment>
  2080. #include <alphamap_fragment>
  2081. #include <alphatest_fragment>
  2082. #include <normal_fragment_begin>
  2083. #include <normal_fragment_maps>
  2084. vec3 viewDir = normalize( vViewPosition );
  2085. vec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );
  2086. vec3 y = cross( viewDir, x );
  2087. vec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;
  2088. #ifdef USE_MATCAP
  2089. vec4 matcapColor = texture2D( matcap, uv );
  2090. matcapColor = matcapTexelToLinear( matcapColor );
  2091. #else
  2092. vec4 matcapColor = vec4( 1.0 );
  2093. #endif
  2094. vec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;
  2095. gl_FragColor = vec4( outgoingLight, diffuseColor.a );
  2096. #include <tonemapping_fragment>
  2097. #include <encodings_fragment>
  2098. #include <fog_fragment>
  2099. #include <premultiplied_alpha_fragment>
  2100. }`,meshmatcap_vert:`#define MATCAP
  2101. varying vec3 vViewPosition;
  2102. #ifndef FLAT_SHADED
  2103. varying vec3 vNormal;
  2104. #endif
  2105. #include <common>
  2106. #include <uv_pars_vertex>
  2107. #include <displacementmap_pars_vertex>
  2108. #include <fog_pars_vertex>
  2109. #include <morphtarget_pars_vertex>
  2110. #include <skinning_pars_vertex>
  2111. #include <logdepthbuf_pars_vertex>
  2112. #include <clipping_planes_pars_vertex>
  2113. void main() {
  2114. #include <uv_vertex>
  2115. #include <beginnormal_vertex>
  2116. #include <morphnormal_vertex>
  2117. #include <skinbase_vertex>
  2118. #include <skinnormal_vertex>
  2119. #include <defaultnormal_vertex>
  2120. #ifndef FLAT_SHADED
  2121. vNormal = normalize( transformedNormal );
  2122. #endif
  2123. #include <begin_vertex>
  2124. #include <morphtarget_vertex>
  2125. #include <skinning_vertex>
  2126. #include <displacementmap_vertex>
  2127. #include <project_vertex>
  2128. #include <logdepthbuf_vertex>
  2129. #include <clipping_planes_vertex>
  2130. #include <fog_vertex>
  2131. vViewPosition = - mvPosition.xyz;
  2132. }`,meshtoon_frag:`#define TOON
  2133. uniform vec3 diffuse;
  2134. uniform vec3 emissive;
  2135. uniform vec3 specular;
  2136. uniform float shininess;
  2137. uniform float opacity;
  2138. #include <common>
  2139. #include <packing>
  2140. #include <dithering_pars_fragment>
  2141. #include <color_pars_fragment>
  2142. #include <uv_pars_fragment>
  2143. #include <uv2_pars_fragment>
  2144. #include <map_pars_fragment>
  2145. #include <alphamap_pars_fragment>
  2146. #include <aomap_pars_fragment>
  2147. #include <lightmap_pars_fragment>
  2148. #include <emissivemap_pars_fragment>
  2149. #include <gradientmap_pars_fragment>
  2150. #include <fog_pars_fragment>
  2151. #include <bsdfs>
  2152. #include <lights_pars_begin>
  2153. #include <lights_toon_pars_fragment>
  2154. #include <shadowmap_pars_fragment>
  2155. #include <bumpmap_pars_fragment>
  2156. #include <normalmap_pars_fragment>
  2157. #include <specularmap_pars_fragment>
  2158. #include <logdepthbuf_pars_fragment>
  2159. #include <clipping_planes_pars_fragment>
  2160. void main() {
  2161. #include <clipping_planes_fragment>
  2162. vec4 diffuseColor = vec4( diffuse, opacity );
  2163. ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
  2164. vec3 totalEmissiveRadiance = emissive;
  2165. #include <logdepthbuf_fragment>
  2166. #include <map_fragment>
  2167. #include <color_fragment>
  2168. #include <alphamap_fragment>
  2169. #include <alphatest_fragment>
  2170. #include <specularmap_fragment>
  2171. #include <normal_fragment_begin>
  2172. #include <normal_fragment_maps>
  2173. #include <emissivemap_fragment>
  2174. #include <lights_toon_fragment>
  2175. #include <lights_fragment_begin>
  2176. #include <lights_fragment_maps>
  2177. #include <lights_fragment_end>
  2178. #include <aomap_fragment>
  2179. vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;
  2180. gl_FragColor = vec4( outgoingLight, diffuseColor.a );
  2181. #include <tonemapping_fragment>
  2182. #include <encodings_fragment>
  2183. #include <fog_fragment>
  2184. #include <premultiplied_alpha_fragment>
  2185. #include <dithering_fragment>
  2186. }`,meshtoon_vert:`#define TOON
  2187. varying vec3 vViewPosition;
  2188. #ifndef FLAT_SHADED
  2189. varying vec3 vNormal;
  2190. #endif
  2191. #include <common>
  2192. #include <uv_pars_vertex>
  2193. #include <uv2_pars_vertex>
  2194. #include <displacementmap_pars_vertex>
  2195. #include <color_pars_vertex>
  2196. #include <fog_pars_vertex>
  2197. #include <morphtarget_pars_vertex>
  2198. #include <skinning_pars_vertex>
  2199. #include <shadowmap_pars_vertex>
  2200. #include <logdepthbuf_pars_vertex>
  2201. #include <clipping_planes_pars_vertex>
  2202. void main() {
  2203. #include <uv_vertex>
  2204. #include <uv2_vertex>
  2205. #include <color_vertex>
  2206. #include <beginnormal_vertex>
  2207. #include <morphnormal_vertex>
  2208. #include <skinbase_vertex>
  2209. #include <skinnormal_vertex>
  2210. #include <defaultnormal_vertex>
  2211. #ifndef FLAT_SHADED
  2212. vNormal = normalize( transformedNormal );
  2213. #endif
  2214. #include <begin_vertex>
  2215. #include <morphtarget_vertex>
  2216. #include <skinning_vertex>
  2217. #include <displacementmap_vertex>
  2218. #include <project_vertex>
  2219. #include <logdepthbuf_vertex>
  2220. #include <clipping_planes_vertex>
  2221. vViewPosition = - mvPosition.xyz;
  2222. #include <worldpos_vertex>
  2223. #include <shadowmap_vertex>
  2224. #include <fog_vertex>
  2225. }`,meshphong_frag:`#define PHONG
  2226. uniform vec3 diffuse;
  2227. uniform vec3 emissive;
  2228. uniform vec3 specular;
  2229. uniform float shininess;
  2230. uniform float opacity;
  2231. #include <common>
  2232. #include <packing>
  2233. #include <dithering_pars_fragment>
  2234. #include <color_pars_fragment>
  2235. #include <uv_pars_fragment>
  2236. #include <uv2_pars_fragment>
  2237. #include <map_pars_fragment>
  2238. #include <alphamap_pars_fragment>
  2239. #include <aomap_pars_fragment>
  2240. #include <lightmap_pars_fragment>
  2241. #include <emissivemap_pars_fragment>
  2242. #include <envmap_common_pars_fragment>
  2243. #include <envmap_pars_fragment>
  2244. #include <cube_uv_reflection_fragment>
  2245. #include <fog_pars_fragment>
  2246. #include <bsdfs>
  2247. #include <lights_pars_begin>
  2248. #include <lights_phong_pars_fragment>
  2249. #include <shadowmap_pars_fragment>
  2250. #include <bumpmap_pars_fragment>
  2251. #include <normalmap_pars_fragment>
  2252. #include <specularmap_pars_fragment>
  2253. #include <logdepthbuf_pars_fragment>
  2254. #include <clipping_planes_pars_fragment>
  2255. void main() {
  2256. #include <clipping_planes_fragment>
  2257. vec4 diffuseColor = vec4( diffuse, opacity );
  2258. ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
  2259. vec3 totalEmissiveRadiance = emissive;
  2260. #include <logdepthbuf_fragment>
  2261. #include <map_fragment>
  2262. #include <color_fragment>
  2263. #include <alphamap_fragment>
  2264. #include <alphatest_fragment>
  2265. #include <specularmap_fragment>
  2266. #include <normal_fragment_begin>
  2267. #include <normal_fragment_maps>
  2268. #include <emissivemap_fragment>
  2269. #include <lights_phong_fragment>
  2270. #include <lights_fragment_begin>
  2271. #include <lights_fragment_maps>
  2272. #include <lights_fragment_end>
  2273. #include <aomap_fragment>
  2274. vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;
  2275. #include <envmap_fragment>
  2276. gl_FragColor = vec4( outgoingLight, diffuseColor.a );
  2277. #include <tonemapping_fragment>
  2278. #include <encodings_fragment>
  2279. #include <fog_fragment>
  2280. #include <premultiplied_alpha_fragment>
  2281. #include <dithering_fragment>
  2282. }`,meshphong_vert:`#define PHONG
  2283. varying vec3 vViewPosition;
  2284. #ifndef FLAT_SHADED
  2285. varying vec3 vNormal;
  2286. #endif
  2287. #include <common>
  2288. #include <uv_pars_vertex>
  2289. #include <uv2_pars_vertex>
  2290. #include <displacementmap_pars_vertex>
  2291. #include <envmap_pars_vertex>
  2292. #include <color_pars_vertex>
  2293. #include <fog_pars_vertex>
  2294. #include <morphtarget_pars_vertex>
  2295. #include <skinning_pars_vertex>
  2296. #include <shadowmap_pars_vertex>
  2297. #include <logdepthbuf_pars_vertex>
  2298. #include <clipping_planes_pars_vertex>
  2299. void main() {
  2300. #include <uv_vertex>
  2301. #include <uv2_vertex>
  2302. #include <color_vertex>
  2303. #include <beginnormal_vertex>
  2304. #include <morphnormal_vertex>
  2305. #include <skinbase_vertex>
  2306. #include <skinnormal_vertex>
  2307. #include <defaultnormal_vertex>
  2308. #ifndef FLAT_SHADED
  2309. vNormal = normalize( transformedNormal );
  2310. #endif
  2311. #include <begin_vertex>
  2312. #include <morphtarget_vertex>
  2313. #include <skinning_vertex>
  2314. #include <displacementmap_vertex>
  2315. #include <project_vertex>
  2316. #include <logdepthbuf_vertex>
  2317. #include <clipping_planes_vertex>
  2318. vViewPosition = - mvPosition.xyz;
  2319. #include <worldpos_vertex>
  2320. #include <envmap_vertex>
  2321. #include <shadowmap_vertex>
  2322. #include <fog_vertex>
  2323. }`,meshphysical_frag:`#define STANDARD
  2324. #ifdef PHYSICAL
  2325. #define REFLECTIVITY
  2326. #define CLEARCOAT
  2327. #define TRANSPARENCY
  2328. #endif
  2329. uniform vec3 diffuse;
  2330. uniform vec3 emissive;
  2331. uniform float roughness;
  2332. uniform float metalness;
  2333. uniform float opacity;
  2334. #ifdef TRANSPARENCY
  2335. uniform float transparency;
  2336. #endif
  2337. #ifdef REFLECTIVITY
  2338. uniform float reflectivity;
  2339. #endif
  2340. #ifdef CLEARCOAT
  2341. uniform float clearcoat;
  2342. uniform float clearcoatRoughness;
  2343. #endif
  2344. #ifdef USE_SHEEN
  2345. uniform vec3 sheen;
  2346. #endif
  2347. varying vec3 vViewPosition;
  2348. #ifndef FLAT_SHADED
  2349. varying vec3 vNormal;
  2350. #ifdef USE_TANGENT
  2351. varying vec3 vTangent;
  2352. varying vec3 vBitangent;
  2353. #endif
  2354. #endif
  2355. #include <common>
  2356. #include <packing>
  2357. #include <dithering_pars_fragment>
  2358. #include <color_pars_fragment>
  2359. #include <uv_pars_fragment>
  2360. #include <uv2_pars_fragment>
  2361. #include <map_pars_fragment>
  2362. #include <alphamap_pars_fragment>
  2363. #include <aomap_pars_fragment>
  2364. #include <lightmap_pars_fragment>
  2365. #include <emissivemap_pars_fragment>
  2366. #include <bsdfs>
  2367. #include <cube_uv_reflection_fragment>
  2368. #include <envmap_common_pars_fragment>
  2369. #include <envmap_physical_pars_fragment>
  2370. #include <fog_pars_fragment>
  2371. #include <lights_pars_begin>
  2372. #include <lights_physical_pars_fragment>
  2373. #include <shadowmap_pars_fragment>
  2374. #include <bumpmap_pars_fragment>
  2375. #include <normalmap_pars_fragment>
  2376. #include <clearcoat_normalmap_pars_fragment>
  2377. #include <roughnessmap_pars_fragment>
  2378. #include <metalnessmap_pars_fragment>
  2379. #include <logdepthbuf_pars_fragment>
  2380. #include <clipping_planes_pars_fragment>
  2381. void main() {
  2382. #include <clipping_planes_fragment>
  2383. vec4 diffuseColor = vec4( diffuse, opacity );
  2384. ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
  2385. vec3 totalEmissiveRadiance = emissive;
  2386. #include <logdepthbuf_fragment>
  2387. #include <map_fragment>
  2388. #include <color_fragment>
  2389. #include <alphamap_fragment>
  2390. #include <alphatest_fragment>
  2391. #include <roughnessmap_fragment>
  2392. #include <metalnessmap_fragment>
  2393. #include <normal_fragment_begin>
  2394. #include <normal_fragment_maps>
  2395. #include <clearcoat_normal_fragment_begin>
  2396. #include <clearcoat_normal_fragment_maps>
  2397. #include <emissivemap_fragment>
  2398. #include <lights_physical_fragment>
  2399. #include <lights_fragment_begin>
  2400. #include <lights_fragment_maps>
  2401. #include <lights_fragment_end>
  2402. #include <aomap_fragment>
  2403. vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;
  2404. #ifdef TRANSPARENCY
  2405. diffuseColor.a *= saturate( 1. - transparency + linearToRelativeLuminance( reflectedLight.directSpecular + reflectedLight.indirectSpecular ) );
  2406. #endif
  2407. gl_FragColor = vec4( outgoingLight, diffuseColor.a );
  2408. #include <tonemapping_fragment>
  2409. #include <encodings_fragment>
  2410. #include <fog_fragment>
  2411. #include <premultiplied_alpha_fragment>
  2412. #include <dithering_fragment>
  2413. }`,meshphysical_vert:`#define STANDARD
  2414. varying vec3 vViewPosition;
  2415. #ifndef FLAT_SHADED
  2416. varying vec3 vNormal;
  2417. #ifdef USE_TANGENT
  2418. varying vec3 vTangent;
  2419. varying vec3 vBitangent;
  2420. #endif
  2421. #endif
  2422. #include <common>
  2423. #include <uv_pars_vertex>
  2424. #include <uv2_pars_vertex>
  2425. #include <displacementmap_pars_vertex>
  2426. #include <color_pars_vertex>
  2427. #include <fog_pars_vertex>
  2428. #include <morphtarget_pars_vertex>
  2429. #include <skinning_pars_vertex>
  2430. #include <shadowmap_pars_vertex>
  2431. #include <logdepthbuf_pars_vertex>
  2432. #include <clipping_planes_pars_vertex>
  2433. void main() {
  2434. #include <uv_vertex>
  2435. #include <uv2_vertex>
  2436. #include <color_vertex>
  2437. #include <beginnormal_vertex>
  2438. #include <morphnormal_vertex>
  2439. #include <skinbase_vertex>
  2440. #include <skinnormal_vertex>
  2441. #include <defaultnormal_vertex>
  2442. #ifndef FLAT_SHADED
  2443. vNormal = normalize( transformedNormal );
  2444. #ifdef USE_TANGENT
  2445. vTangent = normalize( transformedTangent );
  2446. vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );
  2447. #endif
  2448. #endif
  2449. #include <begin_vertex>
  2450. #include <morphtarget_vertex>
  2451. #include <skinning_vertex>
  2452. #include <displacementmap_vertex>
  2453. #include <project_vertex>
  2454. #include <logdepthbuf_vertex>
  2455. #include <clipping_planes_vertex>
  2456. vViewPosition = - mvPosition.xyz;
  2457. #include <worldpos_vertex>
  2458. #include <shadowmap_vertex>
  2459. #include <fog_vertex>
  2460. }`,normal_frag:`#define NORMAL
  2461. uniform float opacity;
  2462. #if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )
  2463. varying vec3 vViewPosition;
  2464. #endif
  2465. #ifndef FLAT_SHADED
  2466. varying vec3 vNormal;
  2467. #ifdef USE_TANGENT
  2468. varying vec3 vTangent;
  2469. varying vec3 vBitangent;
  2470. #endif
  2471. #endif
  2472. #include <packing>
  2473. #include <uv_pars_fragment>
  2474. #include <bumpmap_pars_fragment>
  2475. #include <normalmap_pars_fragment>
  2476. #include <logdepthbuf_pars_fragment>
  2477. #include <clipping_planes_pars_fragment>
  2478. void main() {
  2479. #include <clipping_planes_fragment>
  2480. #include <logdepthbuf_fragment>
  2481. #include <normal_fragment_begin>
  2482. #include <normal_fragment_maps>
  2483. gl_FragColor = vec4( packNormalToRGB( normal ), opacity );
  2484. }`,normal_vert:`#define NORMAL
  2485. #if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )
  2486. varying vec3 vViewPosition;
  2487. #endif
  2488. #ifndef FLAT_SHADED
  2489. varying vec3 vNormal;
  2490. #ifdef USE_TANGENT
  2491. varying vec3 vTangent;
  2492. varying vec3 vBitangent;
  2493. #endif
  2494. #endif
  2495. #include <common>
  2496. #include <uv_pars_vertex>
  2497. #include <displacementmap_pars_vertex>
  2498. #include <morphtarget_pars_vertex>
  2499. #include <skinning_pars_vertex>
  2500. #include <logdepthbuf_pars_vertex>
  2501. #include <clipping_planes_pars_vertex>
  2502. void main() {
  2503. #include <uv_vertex>
  2504. #include <beginnormal_vertex>
  2505. #include <morphnormal_vertex>
  2506. #include <skinbase_vertex>
  2507. #include <skinnormal_vertex>
  2508. #include <defaultnormal_vertex>
  2509. #ifndef FLAT_SHADED
  2510. vNormal = normalize( transformedNormal );
  2511. #ifdef USE_TANGENT
  2512. vTangent = normalize( transformedTangent );
  2513. vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );
  2514. #endif
  2515. #endif
  2516. #include <begin_vertex>
  2517. #include <morphtarget_vertex>
  2518. #include <skinning_vertex>
  2519. #include <displacementmap_vertex>
  2520. #include <project_vertex>
  2521. #include <logdepthbuf_vertex>
  2522. #include <clipping_planes_vertex>
  2523. #if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )
  2524. vViewPosition = - mvPosition.xyz;
  2525. #endif
  2526. }`,points_frag:`uniform vec3 diffuse;
  2527. uniform float opacity;
  2528. #include <common>
  2529. #include <color_pars_fragment>
  2530. #include <map_particle_pars_fragment>
  2531. #include <fog_pars_fragment>
  2532. #include <logdepthbuf_pars_fragment>
  2533. #include <clipping_planes_pars_fragment>
  2534. void main() {
  2535. #include <clipping_planes_fragment>
  2536. vec3 outgoingLight = vec3( 0.0 );
  2537. vec4 diffuseColor = vec4( diffuse, opacity );
  2538. #include <logdepthbuf_fragment>
  2539. #include <map_particle_fragment>
  2540. #include <color_fragment>
  2541. #include <alphatest_fragment>
  2542. outgoingLight = diffuseColor.rgb;
  2543. gl_FragColor = vec4( outgoingLight, diffuseColor.a );
  2544. #include <tonemapping_fragment>
  2545. #include <encodings_fragment>
  2546. #include <fog_fragment>
  2547. #include <premultiplied_alpha_fragment>
  2548. }`,points_vert:`uniform float size;
  2549. uniform float scale;
  2550. #include <common>
  2551. #include <color_pars_vertex>
  2552. #include <fog_pars_vertex>
  2553. #include <morphtarget_pars_vertex>
  2554. #include <logdepthbuf_pars_vertex>
  2555. #include <clipping_planes_pars_vertex>
  2556. void main() {
  2557. #include <color_vertex>
  2558. #include <begin_vertex>
  2559. #include <morphtarget_vertex>
  2560. #include <project_vertex>
  2561. gl_PointSize = size;
  2562. #ifdef USE_SIZEATTENUATION
  2563. bool isPerspective = isPerspectiveMatrix( projectionMatrix );
  2564. if ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );
  2565. #endif
  2566. #include <logdepthbuf_vertex>
  2567. #include <clipping_planes_vertex>
  2568. #include <worldpos_vertex>
  2569. #include <fog_vertex>
  2570. }`,shadow_frag:`uniform vec3 color;
  2571. uniform float opacity;
  2572. #include <common>
  2573. #include <packing>
  2574. #include <fog_pars_fragment>
  2575. #include <bsdfs>
  2576. #include <lights_pars_begin>
  2577. #include <shadowmap_pars_fragment>
  2578. #include <shadowmask_pars_fragment>
  2579. void main() {
  2580. gl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );
  2581. #include <tonemapping_fragment>
  2582. #include <encodings_fragment>
  2583. #include <fog_fragment>
  2584. }`,shadow_vert:`#include <fog_pars_vertex>
  2585. #include <shadowmap_pars_vertex>
  2586. void main() {
  2587. #include <begin_vertex>
  2588. #include <project_vertex>
  2589. #include <worldpos_vertex>
  2590. #include <shadowmap_vertex>
  2591. #include <fog_vertex>
  2592. }`,sprite_frag:`uniform vec3 diffuse;
  2593. uniform float opacity;
  2594. #include <common>
  2595. #include <uv_pars_fragment>
  2596. #include <map_pars_fragment>
  2597. #include <alphamap_pars_fragment>
  2598. #include <fog_pars_fragment>
  2599. #include <logdepthbuf_pars_fragment>
  2600. #include <clipping_planes_pars_fragment>
  2601. void main() {
  2602. #include <clipping_planes_fragment>
  2603. vec3 outgoingLight = vec3( 0.0 );
  2604. vec4 diffuseColor = vec4( diffuse, opacity );
  2605. #include <logdepthbuf_fragment>
  2606. #include <map_fragment>
  2607. #include <alphamap_fragment>
  2608. #include <alphatest_fragment>
  2609. outgoingLight = diffuseColor.rgb;
  2610. gl_FragColor = vec4( outgoingLight, diffuseColor.a );
  2611. #include <tonemapping_fragment>
  2612. #include <encodings_fragment>
  2613. #include <fog_fragment>
  2614. }`,sprite_vert:`uniform float rotation;
  2615. uniform vec2 center;
  2616. #include <common>
  2617. #include <uv_pars_vertex>
  2618. #include <fog_pars_vertex>
  2619. #include <logdepthbuf_pars_vertex>
  2620. #include <clipping_planes_pars_vertex>
  2621. void main() {
  2622. #include <uv_vertex>
  2623. vec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );
  2624. vec2 scale;
  2625. scale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );
  2626. scale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );
  2627. #ifndef USE_SIZEATTENUATION
  2628. bool isPerspective = isPerspectiveMatrix( projectionMatrix );
  2629. if ( isPerspective ) scale *= - mvPosition.z;
  2630. #endif
  2631. vec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;
  2632. vec2 rotatedPosition;
  2633. rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;
  2634. rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;
  2635. mvPosition.xy += rotatedPosition;
  2636. gl_Position = projectionMatrix * mvPosition;
  2637. #include <logdepthbuf_vertex>
  2638. #include <clipping_planes_vertex>
  2639. #include <fog_vertex>
  2640. }`},Mu={basic:{uniforms:Ks([Wi.common,Wi.specularmap,Wi.envmap,Wi.aomap,Wi.lightmap,Wi.fog]),vertexShader:bo.meshbasic_vert,fragmentShader:bo.meshbasic_frag},lambert:{uniforms:Ks([Wi.common,Wi.specularmap,Wi.envmap,Wi.aomap,Wi.lightmap,Wi.emissivemap,Wi.fog,Wi.lights,{emissive:{value:new Fn(0)}}]),vertexShader:bo.meshlambert_vert,fragmentShader:bo.meshlambert_frag},phong:{uniforms:Ks([Wi.common,Wi.specularmap,Wi.envmap,Wi.aomap,Wi.lightmap,Wi.emissivemap,Wi.bumpmap,Wi.normalmap,Wi.displacementmap,Wi.fog,Wi.lights,{emissive:{value:new Fn(0)},specular:{value:new Fn(1118481)},shininess:{value:30}}]),vertexShader:bo.meshphong_vert,fragmentShader:bo.meshphong_frag},standard:{uniforms:Ks([Wi.common,Wi.envmap,Wi.aomap,Wi.lightmap,Wi.emissivemap,Wi.bumpmap,Wi.normalmap,Wi.displacementmap,Wi.roughnessmap,Wi.metalnessmap,Wi.fog,Wi.lights,{emissive:{value:new Fn(0)},roughness:{value:.5},metalness:{value:.5},envMapIntensity:{value:1}}]),vertexShader:bo.meshphysical_vert,fragmentShader:bo.meshphysical_frag},toon:{uniforms:Ks([Wi.common,Wi.specularmap,Wi.aomap,Wi.lightmap,Wi.emissivemap,Wi.bumpmap,Wi.normalmap,Wi.displacementmap,Wi.gradientmap,Wi.fog,Wi.lights,{emissive:{value:new Fn(0)},specular:{value:new Fn(1118481)},shininess:{value:30}}]),vertexShader:bo.meshtoon_vert,fragmentShader:bo.meshtoon_frag},matcap:{uniforms:Ks([Wi.common,Wi.bumpmap,Wi.normalmap,Wi.displacementmap,Wi.fog,{matcap:{value:null}}]),vertexShader:bo.meshmatcap_vert,fragmentShader:bo.meshmatcap_frag},points:{uniforms:Ks([Wi.points,Wi.fog]),vertexShader:bo.points_vert,fragmentShader:bo.points_frag},dashed:{uniforms:Ks([Wi.common,Wi.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:bo.linedashed_vert,fragmentShader:bo.linedashed_frag},depth:{uniforms:Ks([Wi.common,Wi.displacementmap]),vertexShader:bo.depth_vert,fragmentShader:bo.depth_frag},normal:{uniforms:Ks([Wi.common,Wi.bumpmap,Wi.normalmap,Wi.displacementmap,{opacity:{value:1}}]),vertexShader:bo.normal_vert,fragmentShader:bo.normal_frag},sprite:{uniforms:Ks([Wi.sprite,Wi.fog]),vertexShader:bo.sprite_vert,fragmentShader:bo.sprite_frag},background:{uniforms:{uvTransform:{value:new Vo},t2D:{value:null}},vertexShader:bo.background_vert,fragmentShader:bo.background_frag},cube:{uniforms:Ks([Wi.envmap,{opacity:{value:1}}]),vertexShader:bo.cube_vert,fragmentShader:bo.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:bo.equirect_vert,fragmentShader:bo.equirect_frag},distanceRGBA:{uniforms:Ks([Wi.common,Wi.displacementmap,{referencePosition:{value:new Kt},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:bo.distanceRGBA_vert,fragmentShader:bo.distanceRGBA_frag},shadow:{uniforms:Ks([Wi.lights,Wi.fog,{color:{value:new Fn(0)},opacity:{value:1}}]),vertexShader:bo.shadow_vert,fragmentShader:bo.shadow_frag}};function wo(u,g,C,L){var K,ie,ce=new Fn(0),ge=0,Ee=null,Ae=0,We=null;function tt(ot,Oe){g.buffers.color.setClear(ot.r,ot.g,ot.b,Oe,L)}return{getClearColor:function(){return ce},setClearColor:function(ot,Oe){ce.set(ot),tt(ce,ge=Oe!==void 0?Oe:1)},getClearAlpha:function(){return ge},setClearAlpha:function(ot){tt(ce,ge=ot)},render:function(ot,Oe,mt,Tt){var At=Oe.background,nn=u.xr,fn=nn.getSession&&nn.getSession();if(fn&&fn.environmentBlendMode==="additive"&&(At=null),At===null?tt(ce,ge):At&&At.isColor&&(tt(At,1),Tt=!0),(u.autoClear||Tt)&&u.clear(u.autoClearColor,u.autoClearDepth,u.autoClearStencil),At&&(At.isCubeTexture||At.isWebGLCubeRenderTarget||At.mapping===rn)){ie===void 0&&((ie=new hs(new Vd(1,1,1),new zl({type:"BackgroundCubeMaterial",uniforms:tc(Mu.cube.uniforms),vertexShader:Mu.cube.vertexShader,fragmentShader:Mu.cube.fragmentShader,side:E,depthTest:!1,depthWrite:!1,fog:!1}))).geometry.deleteAttribute("normal"),ie.geometry.deleteAttribute("uv"),ie.onBeforeRender=function(zn,Dn,Qn){this.matrixWorld.copyPosition(Qn.matrixWorld)},Object.defineProperty(ie.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),C.update(ie));var An=At.isWebGLCubeRenderTarget?At.texture:At;ie.material.uniforms.envMap.value=An,ie.material.uniforms.flipEnvMap.value=An.isCubeTexture?-1:1,Ee===At&&Ae===An.version&&We===u.toneMapping||(ie.material.needsUpdate=!0,Ee=At,Ae=An.version,We=u.toneMapping),ot.unshift(ie,ie.geometry,ie.material,0,0,null)}else At&&At.isTexture&&(K===void 0&&((K=new hs(new Xc(2,2),new zl({type:"BackgroundMaterial",uniforms:tc(Mu.background.uniforms),vertexShader:Mu.background.vertexShader,fragmentShader:Mu.background.fragmentShader,side:b,depthTest:!1,depthWrite:!1,fog:!1}))).geometry.deleteAttribute("normal"),Object.defineProperty(K.material,"map",{get:function(){return this.uniforms.t2D.value}}),C.update(K)),(K.material.uniforms.t2D.value=At).matrixAutoUpdate===!0&&At.updateMatrix(),K.material.uniforms.uvTransform.value.copy(At.matrix),Ee===At&&Ae===At.version&&We===u.toneMapping||(K.material.needsUpdate=!0,Ae=(Ee=At).version,We=u.toneMapping),ot.unshift(K,K.geometry,K.material,0,0,null))}}}function zd(u,g){return Math.abs(g[1])-Math.abs(u[1])}function Tc(u,g,C,L,K,ie,ce,ge,Ee,Ae){vo.call(this,u=u!==void 0?u:[],g=g!==void 0?g:Tn,C,L,K,ie,ce=ce!==void 0?ce:jt,ge,Ee,Ae),this.flipY=!1}function ih(u,g,C,L){vo.call(this,null),this.image={data:u||null,width:g||1,height:C||1,depth:L||1},this.magFilter=Ie,this.minFilter=Ie,this.wrapR=pt,this.generateMipmaps=!1,this.flipY=!1,this.needsUpdate=!0}function Cl(u,g,C,L){vo.call(this,null),this.image={data:u||null,width:g||1,height:C||1,depth:L||1},this.magFilter=Ie,this.minFilter=Ie,this.wrapR=pt,this.generateMipmaps=!1,this.flipY=!1,this.needsUpdate=!0}Mu.physical={uniforms:Ks([Mu.standard.uniforms,{transparency:{value:0},clearcoat:{value:0},clearcoatRoughness:{value:0},sheen:{value:new Fn(0)},clearcoatNormalScale:{value:new Lr(1,1)},clearcoatNormalMap:{value:null}}]),vertexShader:bo.meshphysical_vert,fragmentShader:bo.meshphysical_frag},((Tc.prototype=Object.create(vo.prototype)).constructor=Tc).prototype.isCubeTexture=!0,Object.defineProperty(Tc.prototype,"images",{get:function(){return this.image},set:function(u){this.image=u}}),((ih.prototype=Object.create(vo.prototype)).constructor=ih).prototype.isDataTexture2DArray=!0,((Cl.prototype=Object.create(vo.prototype)).constructor=Cl).prototype.isDataTexture3D=!0;var Ah=new vo,ah=new ih,Zc=new Cl,kh=new Tc,Gd=[],Jl=[],Vu=new Float32Array(16),Ih=new Float32Array(9),Ph=new Float32Array(4);function zu(u,g,C){var L=u[0];if(L<=0||0<L)return u;var K=g*C,ie=Gd[K];if(ie===void 0&&(ie=new Float32Array(K),Gd[K]=ie),g!==0){L.toArray(ie,0);for(var ce=1,ge=0;ce!==g;++ce)ge+=C,u[ce].toArray(ie,ge)}return ie}function Ql(u,g){if(u.length===g.length){for(var C=0,L=u.length;C<L;C++)if(u[C]!==g[C])return;return 1}}function Il(u,g){for(var C=0,L=g.length;C<L;C++)u[C]=g[C]}function np(u,g){var C=Jl[g];C===void 0&&(C=new Int32Array(g),Jl[g]=C);for(var L=0;L!==g;++L)C[L]=u.allocateTextureUnit();return C}function rp(u,g){var C=this.cache;C[0]!==g&&(u.uniform1f(this.addr,g),C[0]=g)}function oh(u,g){var C=this.cache;if(g.x!==void 0)C[0]===g.x&&C[1]===g.y||(u.uniform2f(this.addr,g.x,g.y),C[0]=g.x,C[1]=g.y);else{if(Ql(C,g))return;u.uniform2fv(this.addr,g),Il(C,g)}}function Gu(u,g){var C=this.cache;if(g.x!==void 0)C[0]===g.x&&C[1]===g.y&&C[2]===g.z||(u.uniform3f(this.addr,g.x,g.y,g.z),C[0]=g.x,C[1]=g.y,C[2]=g.z);else if(g.r!==void 0)C[0]===g.r&&C[1]===g.g&&C[2]===g.b||(u.uniform3f(this.addr,g.r,g.g,g.b),C[0]=g.r,C[1]=g.g,C[2]=g.b);else{if(Ql(C,g))return;u.uniform3fv(this.addr,g),Il(C,g)}}function ip(u,g){var C=this.cache;if(g.x!==void 0)C[0]===g.x&&C[1]===g.y&&C[2]===g.z&&C[3]===g.w||(u.uniform4f(this.addr,g.x,g.y,g.z,g.w),C[0]=g.x,C[1]=g.y,C[2]=g.z,C[3]=g.w);else{if(Ql(C,g))return;u.uniform4fv(this.addr,g),Il(C,g)}}function pc(u,g){var C=this.cache,L=g.elements;if(L===void 0){if(Ql(C,g))return;u.uniformMatrix2fv(this.addr,!1,g),Il(C,g)}else{if(Ql(C,L))return;Ph.set(L),u.uniformMatrix2fv(this.addr,!1,Ph),Il(C,L)}}function uu(u,g){var C=this.cache,L=g.elements;if(L===void 0){if(Ql(C,g))return;u.uniformMatrix3fv(this.addr,!1,g),Il(C,g)}else{if(Ql(C,L))return;Ih.set(L),u.uniformMatrix3fv(this.addr,!1,Ih),Il(C,L)}}function fu(u,g){var C=this.cache,L=g.elements;if(L===void 0){if(Ql(C,g))return;u.uniformMatrix4fv(this.addr,!1,g),Il(C,g)}else{if(Ql(C,L))return;Vu.set(L),u.uniformMatrix4fv(this.addr,!1,Vu),Il(C,L)}}function vd(u,g,C){var L=this.cache,K=C.allocateTextureUnit();L[0]!==K&&(u.uniform1i(this.addr,K),L[0]=K),C.safeSetTexture2D(g||Ah,K)}function Kc(u,g,C){var L=this.cache,K=C.allocateTextureUnit();L[0]!==K&&(u.uniform1i(this.addr,K),L[0]=K),C.setTexture2DArray(g||ah,K)}function Rh(u,g,C){var L=this.cache,K=C.allocateTextureUnit();L[0]!==K&&(u.uniform1i(this.addr,K),L[0]=K),C.setTexture3D(g||Zc,K)}function sh(u,g,C){var L=this.cache,K=C.allocateTextureUnit();L[0]!==K&&(u.uniform1i(this.addr,K),L[0]=K),C.safeSetTextureCube(g||kh,K)}function _d(u,g){var C=this.cache;C[0]!==g&&(u.uniform1i(this.addr,g),C[0]=g)}function Gs(u,g){var C=this.cache;Ql(C,g)||(u.uniform2iv(this.addr,g),Il(C,g))}function Ro(u,g){var C=this.cache;Ql(C,g)||(u.uniform3iv(this.addr,g),Il(C,g))}function Jc(u,g){var C=this.cache;Ql(C,g)||(u.uniform4iv(this.addr,g),Il(C,g))}function rc(u,g){var C=this.cache;C[0]!==g&&(u.uniform1ui(this.addr,g),C[0]=g)}function U(u,g){u.uniform1fv(this.addr,g)}function f(u,g){u.uniform1iv(this.addr,g)}function k(u,g){u.uniform2iv(this.addr,g)}function Z(u,g){u.uniform3iv(this.addr,g)}function ue(u,g){u.uniform4iv(this.addr,g)}function he(u,g){var C=zu(g,this.size,2);u.uniform2fv(this.addr,C)}function _e(u,g){var C=zu(g,this.size,3);u.uniform3fv(this.addr,C)}function Ce(u,g){var C=zu(g,this.size,4);u.uniform4fv(this.addr,C)}function Xe(u,g){var C=zu(g,this.size,4);u.uniformMatrix2fv(this.addr,!1,C)}function nt(u,g){var C=zu(g,this.size,9);u.uniformMatrix3fv(this.addr,!1,C)}function lt(u,g){var C=zu(g,this.size,16);u.uniformMatrix4fv(this.addr,!1,C)}function yt(u,g,C){var L=g.length,K=np(C,L);u.uniform1iv(this.addr,K);for(var ie=0;ie!==L;++ie)C.safeSetTexture2D(g[ie]||Ah,K[ie])}function Rt(u,g,C){var L=g.length,K=np(C,L);u.uniform1iv(this.addr,K);for(var ie=0;ie!==L;++ie)C.safeSetTextureCube(g[ie]||kh,K[ie])}function Ut(u,g,C){this.id=u,this.addr=C,this.cache=[],this.setValue=function(L){switch(g.type){case 5126:return rp;case 35664:return oh;case 35665:return Gu;case 35666:return ip;case 35674:return pc;case 35675:return uu;case 35676:return fu;case 5124:case 35670:return _d;case 35667:case 35671:return Gs;case 35668:case 35672:return Ro;case 35669:case 35673:return Jc;case 5125:return rc;case 35678:case 36198:case 36298:case 36306:case 35682:return vd;case 35679:case 36299:case 36307:return Rh;case 35680:case 36300:case 36308:case 36293:return sh;case 36289:case 36303:case 36311:case 36292:return Kc}}()}function Bt(u,g,C){this.id=u,this.addr=C,this.cache=[],this.size=g.size,this.setValue=function(L){switch(g.type){case 5126:return U;case 35664:return he;case 35665:return _e;case 35666:return Ce;case 35674:return Xe;case 35675:return nt;case 35676:return lt;case 5124:case 35670:return f;case 35667:case 35671:return k;case 35668:case 35672:return Z;case 35669:case 35673:return ue;case 35678:case 36198:case 36298:case 36306:case 35682:return yt;case 35680:case 36300:case 36308:case 36293:return Rt}}()}function It(u){this.id=u,this.seq=[],this.map={}}Bt.prototype.updateCache=function(u){var g=this.cache;u instanceof Float32Array&&g.length!==u.length&&(this.cache=new Float32Array(u.length)),Il(g,u)},It.prototype.setValue=function(u,g,C){for(var L=this.seq,K=0,ie=L.length;K!==ie;++K){var ce=L[K];ce.setValue(u,g[ce.id],C)}};var vn=/([\w\d_]+)(\])?(\[|\.)?/g;function tn(u,g){u.seq.push(g),u.map[g.id]=g}function cn(u,g,C){var L=u.name,K=L.length;for(vn.lastIndex=0;;){var ie=vn.exec(L),ce=vn.lastIndex,ge=ie[1],Ee=ie[2]==="]",Ae=ie[3];if(Ee&&(ge|=0),Ae===void 0||Ae==="["&&ce+2===K){tn(C,new(Ae===void 0?Ut:Bt)(ge,u,g));break}var We=C.map[ge];We===void 0&&tn(C,We=new It(ge)),C=We}}function pn(u,g){this.seq=[],this.map={};for(var C=u.getProgramParameter(g,35718),L=0;L<C;++L){var K=u.getActiveUniform(g,L);cn(K,u.getUniformLocation(g,K.name),this)}}function Cn(u,g,C){var L=u.createShader(g);return u.shaderSource(L,C),u.compileShader(L),L}pn.prototype.setValue=function(u,g,C,L){var K=this.map[g];K!==void 0&&K.setValue(u,C,L)},pn.prototype.setOptional=function(u,g,C){var L=g[C];L!==void 0&&this.setValue(u,C,L)},pn.upload=function(u,g,C,L){for(var K=0,ie=g.length;K!==ie;++K){var ce=g[K],ge=C[ce.id];ge.needsUpdate!==!1&&ce.setValue(u,ge.value,L)}},pn.seqWithValue=function(u,g){for(var C=[],L=0,K=u.length;L!==K;++L){var ie=u[L];ie.id in g&&C.push(ie)}return C};var un=0;function kn(u){switch(u){case bn:return["Linear","( value )"];case sr:return["sRGB","( value )"];case Pr:return["RGBE","( value )"];case vi:return["RGBM","( value, 7.0 )"];case Sa:return["RGBM","( value, 16.0 )"];case La:return["RGBD","( value, 256.0 )"];case Br:return["Gamma","( value, float( GAMMA_FACTOR ) )"];case Mi:return["LogLuv","( value )"];default:throw new Error("unsupported encoding: "+u)}}function nr(u,g,C){var L=u.getShaderParameter(g,35713),K=u.getShaderInfoLog(g).trim();return L&&K===""?"":"THREE.WebGLShader: gl.getShaderInfoLog() "+C+`
  2641. `+K+function(ie){for(var ce=ie.split(`
  2642. `),ge=0;ge<ce.length;ge++)ce[ge]=ge+1+": "+ce[ge];return ce.join(`
  2643. `)}(u.getShaderSource(g))}function dr(u,g){var C=kn(g);return"vec4 "+u+"( vec4 value ) { return "+C[0]+"ToLinear"+C[1]+"; }"}function xr(u){return u!==""}function yr(u,g){return u.replace(/NUM_DIR_LIGHTS/g,g.numDirLights).replace(/NUM_SPOT_LIGHTS/g,g.numSpotLights).replace(/NUM_RECT_AREA_LIGHTS/g,g.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,g.numPointLights).replace(/NUM_HEMI_LIGHTS/g,g.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g,g.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS/g,g.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,g.numPointLightShadows)}function Qr(u,g){return u.replace(/NUM_CLIPPING_PLANES/g,g.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,g.numClippingPlanes-g.numClipIntersection)}var ir=/^[ \t]*#include +<([\w\d./]+)>/gm;function gr(u){return u.replace(ir,Yr)}function Yr(u,g){var C=bo[g];if(C===void 0)throw new Error("Can not resolve #include <"+g+">");return gr(C)}var Oi=/#pragma unroll_loop[\s]+?for \( int i \= (\d+)\; i < (\d+)\; i \+\+ \) \{([\s\S]+?)(?=\})\}/g;function br(u){return u.replace(Oi,Ii)}function Ii(u,g,C,L){for(var K="",ie=parseInt(g);ie<parseInt(C);ie++)K+=L.replace(/\[ i \]/g,"[ "+ie+" ]").replace(/UNROLLED_LOOP_INDEX/g,ie);return K}function ea(u){var g="precision "+u.precision+` float;
  2644. precision `+u.precision+" int;";return u.precision==="highp"?g+=`
  2645. #define HIGH_PRECISION`:u.precision==="mediump"?g+=`
  2646. #define MEDIUM_PRECISION`:u.precision==="lowp"&&(g+=`
  2647. #define LOW_PRECISION`),g}function ui(u,g,C){var L,K,ie,ce,ge,Ee,Ae,We=u.getContext(),tt=C.defines,ot=C.vertexShader,Oe=C.fragmentShader,mt=(K="SHADOWMAP_TYPE_BASIC",(L=C).shadowMapType===x?K="SHADOWMAP_TYPE_PCF":L.shadowMapType===w?K="SHADOWMAP_TYPE_PCF_SOFT":L.shadowMapType===_&&(K="SHADOWMAP_TYPE_VSM"),K),Tt=function($a){var ta="ENVMAP_TYPE_CUBE";if($a.envMap)switch($a.envMapMode){case Tn:case on:ta="ENVMAP_TYPE_CUBE";break;case rn:case wt:ta="ENVMAP_TYPE_CUBE_UV";break;case $n:case Zt:ta="ENVMAP_TYPE_EQUIREC";break;case Et:ta="ENVMAP_TYPE_SPHERE"}return ta}(C),At=function($a){var ta="ENVMAP_MODE_REFLECTION";if($a.envMap)switch($a.envMapMode){case on:case Zt:ta="ENVMAP_MODE_REFRACTION"}return ta}(C),nn=function($a){var ta="ENVMAP_BLENDING_NONE";if($a.envMap)switch($a.combine){case at:ta="ENVMAP_BLENDING_MULTIPLY";break;case Lt:ta="ENVMAP_BLENDING_MIX";break;case Ne:ta="ENVMAP_BLENDING_ADD"}return ta}(C),fn=0<u.gammaFactor?u.gammaFactor:1,An=C.isWebGL2?"":[(ie=C).extensionDerivatives||ie.envMapCubeUV||ie.bumpMap||ie.tangentSpaceNormalMap||ie.clearcoatNormalMap||ie.flatShading||ie.shaderID==="physical"?"#extension GL_OES_standard_derivatives : enable":"",(ie.extensionFragDepth||ie.logarithmicDepthBuffer)&&ie.rendererExtensionFragDepth?"#extension GL_EXT_frag_depth : enable":"",ie.extensionDrawBuffers&&ie.rendererExtensionDrawBuffers?"#extension GL_EXT_draw_buffers : require":"",(ie.extensionShaderTextureLOD||ie.envMap)&&ie.rendererExtensionShaderTextureLod?"#extension GL_EXT_shader_texture_lod : enable":""].filter(xr).join(`
  2648. `),zn=function($a){var ta=[];for(var Mn in $a){var Wn=$a[Mn];Wn!==!1&&ta.push("#define "+Mn+" "+Wn)}return ta.join(`
  2649. `)}(tt),Dn=We.createProgram(),Qn=C.numMultiviewViews;if(C.isRawShaderMaterial?(0<(ce=[zn].filter(xr).join(`
  2650. `)).length&&(ce+=`
  2651. `),0<(ge=[An,zn].filter(xr).join(`
  2652. `)).length&&(ge+=`
  2653. `)):(ce=[ea(C),"#define SHADER_NAME "+C.shaderName,zn,C.instancing?"#define USE_INSTANCING":"",C.supportsVertexTextures?"#define VERTEX_TEXTURES":"","#define GAMMA_FACTOR "+fn,"#define MAX_BONES "+C.maxBones,C.useFog&&C.fog?"#define USE_FOG":"",C.useFog&&C.fogExp2?"#define FOG_EXP2":"",C.map?"#define USE_MAP":"",C.envMap?"#define USE_ENVMAP":"",C.envMap?"#define "+At:"",C.lightMap?"#define USE_LIGHTMAP":"",C.aoMap?"#define USE_AOMAP":"",C.emissiveMap?"#define USE_EMISSIVEMAP":"",C.bumpMap?"#define USE_BUMPMAP":"",C.normalMap?"#define USE_NORMALMAP":"",C.normalMap&&C.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",C.normalMap&&C.tangentSpaceNormalMap?"#define TANGENTSPACE_NORMALMAP":"",C.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",C.displacementMap&&C.supportsVertexTextures?"#define USE_DISPLACEMENTMAP":"",C.specularMap?"#define USE_SPECULARMAP":"",C.roughnessMap?"#define USE_ROUGHNESSMAP":"",C.metalnessMap?"#define USE_METALNESSMAP":"",C.alphaMap?"#define USE_ALPHAMAP":"",C.vertexTangents?"#define USE_TANGENT":"",C.vertexColors?"#define USE_COLOR":"",C.vertexUvs?"#define USE_UV":"",C.uvsVertexOnly?"#define UVS_VERTEX_ONLY":"",C.flatShading?"#define FLAT_SHADED":"",C.skinning?"#define USE_SKINNING":"",C.useVertexTexture?"#define BONE_TEXTURE":"",C.morphTargets?"#define USE_MORPHTARGETS":"",C.morphNormals&&C.flatShading===!1?"#define USE_MORPHNORMALS":"",C.doubleSided?"#define DOUBLE_SIDED":"",C.flipSided?"#define FLIP_SIDED":"",C.shadowMapEnabled?"#define USE_SHADOWMAP":"",C.shadowMapEnabled?"#define "+mt:"",C.sizeAttenuation?"#define USE_SIZEATTENUATION":"",C.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",C.logarithmicDepthBuffer&&C.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING"," attribute mat4 instanceMatrix;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_TANGENT"," attribute vec4 tangent;","#endif","#ifdef USE_COLOR"," attribute vec3 color;","#endif","#ifdef USE_MORPHTARGETS"," attribute vec3 morphTarget0;"," attribute vec3 morphTarget1;"," attribute vec3 morphTarget2;"," attribute vec3 morphTarget3;"," #ifdef USE_MORPHNORMALS"," attribute vec3 morphNormal0;"," attribute vec3 morphNormal1;"," attribute vec3 morphNormal2;"," attribute vec3 morphNormal3;"," #else"," attribute vec3 morphTarget4;"," attribute vec3 morphTarget5;"," attribute vec3 morphTarget6;"," attribute vec3 morphTarget7;"," #endif","#endif","#ifdef USE_SKINNING"," attribute vec4 skinIndex;"," attribute vec4 skinWeight;","#endif",`
  2654. `].filter(xr).join(`
  2655. `),ge=[An,ea(C),"#define SHADER_NAME "+C.shaderName,zn,C.alphaTest?"#define ALPHATEST "+C.alphaTest+(C.alphaTest%1?"":".0"):"","#define GAMMA_FACTOR "+fn,C.useFog&&C.fog?"#define USE_FOG":"",C.useFog&&C.fogExp2?"#define FOG_EXP2":"",C.map?"#define USE_MAP":"",C.matcap?"#define USE_MATCAP":"",C.envMap?"#define USE_ENVMAP":"",C.envMap?"#define "+Tt:"",C.envMap?"#define "+At:"",C.envMap?"#define "+nn:"",C.lightMap?"#define USE_LIGHTMAP":"",C.aoMap?"#define USE_AOMAP":"",C.emissiveMap?"#define USE_EMISSIVEMAP":"",C.bumpMap?"#define USE_BUMPMAP":"",C.normalMap?"#define USE_NORMALMAP":"",C.normalMap&&C.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",C.normalMap&&C.tangentSpaceNormalMap?"#define TANGENTSPACE_NORMALMAP":"",C.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",C.specularMap?"#define USE_SPECULARMAP":"",C.roughnessMap?"#define USE_ROUGHNESSMAP":"",C.metalnessMap?"#define USE_METALNESSMAP":"",C.alphaMap?"#define USE_ALPHAMAP":"",C.sheen?"#define USE_SHEEN":"",C.vertexTangents?"#define USE_TANGENT":"",C.vertexColors?"#define USE_COLOR":"",C.vertexUvs?"#define USE_UV":"",C.uvsVertexOnly?"#define UVS_VERTEX_ONLY":"",C.gradientMap?"#define USE_GRADIENTMAP":"",C.flatShading?"#define FLAT_SHADED":"",C.doubleSided?"#define DOUBLE_SIDED":"",C.flipSided?"#define FLIP_SIDED":"",C.shadowMapEnabled?"#define USE_SHADOWMAP":"",C.shadowMapEnabled?"#define "+mt:"",C.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",C.physicallyCorrectLights?"#define PHYSICALLY_CORRECT_LIGHTS":"",C.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",C.logarithmicDepthBuffer&&C.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"",(C.extensionShaderTextureLOD||C.envMap)&&C.rendererExtensionShaderTextureLod?"#define TEXTURE_LOD_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",C.toneMapping!==ze?"#define TONE_MAPPING":"",C.toneMapping!==ze?bo.tonemapping_pars_fragment:"",C.toneMapping!==ze?function($a,ta){var Mn;switch(ta){case Ke:Mn="Linear";break;case vt:Mn="Reinhard";break;case Ft:Mn="Uncharted2";break;case Ot:Mn="OptimizedCineon";break;case _t:Mn="ACESFilmic";break;default:throw new Error("unsupported toneMapping: "+ta)}return"vec3 toneMapping( vec3 color ) { return "+Mn+"ToneMapping( color ); }"}(0,C.toneMapping):"",C.dithering?"#define DITHERING":"",C.outputEncoding||C.mapEncoding||C.matcapEncoding||C.envMapEncoding||C.emissiveMapEncoding||C.lightMapEncoding?bo.encodings_pars_fragment:"",C.mapEncoding?dr("mapTexelToLinear",C.mapEncoding):"",C.matcapEncoding?dr("matcapTexelToLinear",C.matcapEncoding):"",C.envMapEncoding?dr("envMapTexelToLinear",C.envMapEncoding):"",C.emissiveMapEncoding?dr("emissiveMapTexelToLinear",C.emissiveMapEncoding):"",C.lightMapEncoding?dr("lightMapTexelToLinear",C.lightMapEncoding):"",C.outputEncoding?(Ee=C.outputEncoding,Ae=kn(Ee),"vec4 linearToOutputTexel( vec4 value ) { return LinearTo"+Ae[0]+Ae[1]+"; }"):"",C.depthPacking?"#define DEPTH_PACKING "+C.depthPacking:"",`
  2656. `].filter(xr).join(`
  2657. `)),ot=Qr(ot=yr(ot=gr(ot),C),C),Oe=Qr(Oe=yr(Oe=gr(Oe),C),C),ot=br(ot),Oe=br(Oe),C.isWebGL2&&!C.isRawShaderMaterial){var Pn=!1,cr=/^\s*#version\s+300\s+es\s*\n/;C.isShaderMaterial&&ot.match(cr)!==null&&Oe.match(cr)!==null&&(Pn=!0,ot=ot.replace(cr,""),Oe=Oe.replace(cr,"")),ce=[`#version 300 es
  2658. `,"#define attribute in","#define varying out","#define texture2D texture"].join(`
  2659. `)+`
  2660. `+ce,ge=[`#version 300 es
  2661. `,"#define varying in",Pn?"":"out highp vec4 pc_fragColor;",Pn?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join(`
  2662. `)+`
  2663. `+ge,0<Qn&&(ce=(ce=ce.replace(`#version 300 es
  2664. `,[`#version 300 es
  2665. `,"#extension GL_OVR_multiview2 : require","layout(num_views = "+Qn+") in;","#define VIEW_ID gl_ViewID_OVR"].join(`
  2666. `))).replace(["uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;"].join(`
  2667. `),["uniform mat4 modelViewMatrices["+Qn+"];","uniform mat4 projectionMatrices["+Qn+"];","uniform mat4 viewMatrices["+Qn+"];","uniform mat3 normalMatrices["+Qn+"];","#define modelViewMatrix modelViewMatrices[VIEW_ID]","#define projectionMatrix projectionMatrices[VIEW_ID]","#define viewMatrix viewMatrices[VIEW_ID]","#define normalMatrix normalMatrices[VIEW_ID]"].join(`
  2668. `)),ge=(ge=ge.replace(`#version 300 es
  2669. `,[`#version 300 es
  2670. `,"#extension GL_OVR_multiview2 : require","#define VIEW_ID gl_ViewID_OVR"].join(`
  2671. `))).replace("uniform mat4 viewMatrix;",["uniform mat4 viewMatrices["+Qn+"];","#define viewMatrix viewMatrices[VIEW_ID]"].join(`
  2672. `)))}var Cr,_r,Er=ge+Oe,Vr=Cn(We,35633,ce+ot),si=Cn(We,35632,Er);if(We.attachShader(Dn,Vr),We.attachShader(Dn,si),C.index0AttributeName!==void 0?We.bindAttribLocation(Dn,0,C.index0AttributeName):C.morphTargets===!0&&We.bindAttribLocation(Dn,0,"position"),We.linkProgram(Dn),u.debug.checkShaderErrors){var Ar=We.getProgramInfoLog(Dn).trim(),vr=We.getShaderInfoLog(Vr).trim(),yi=We.getShaderInfoLog(si).trim(),Bi=!0,ya=!0;if(We.getProgramParameter(Dn,35714)===!1){Bi=!1;var sa=nr(We,Vr,"vertex"),oa=nr(We,si,"fragment");console.error("THREE.WebGLProgram: shader error: ",We.getError(),"35715",We.getProgramParameter(Dn,35715),"gl.getProgramInfoLog",Ar,sa,oa)}else Ar!==""?console.warn("THREE.WebGLProgram: gl.getProgramInfoLog()",Ar):vr!==""&&yi!==""||(ya=!1);ya&&(this.diagnostics={runnable:Bi,programLog:Ar,vertexShader:{log:vr,prefix:ce},fragmentShader:{log:yi,prefix:ge}})}return We.deleteShader(Vr),We.deleteShader(si),this.getUniforms=function(){return Cr===void 0&&(Cr=new pn(We,Dn)),Cr},this.getAttributes=function(){return _r===void 0&&(_r=function($a,ta){for(var Mn={},Wn=$a.getProgramParameter(ta,35721),ai=0;ai<Wn;ai++){var Zr=$a.getActiveAttrib(ta,ai).name;Mn[Zr]=$a.getAttribLocation(ta,Zr)}return Mn}(We,Dn)),_r},this.destroy=function(){We.deleteProgram(Dn),this.program=void 0},this.name=C.shaderName,this.id=un++,this.cacheKey=g,this.usedTimes=1,this.program=Dn,this.vertexShader=Vr,this.fragmentShader=si,this.numMultiviewViews=Qn,this}function Fi(u,g,C){var L=[],K=C.isWebGL2,ie=C.logarithmicDepthBuffer,ce=C.floatVertexTextures,ge=C.precision,Ee=C.maxVertexUniforms,Ae=C.vertexTextures,We={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"},tt=["precision","isWebGL2","supportsVertexTextures","outputEncoding","instancing","numMultiviewViews","map","mapEncoding","matcap","matcapEncoding","envMap","envMapMode","envMapEncoding","envMapCubeUV","lightMap","lightMapEncoding","aoMap","emissiveMap","emissiveMapEncoding","bumpMap","normalMap","objectSpaceNormalMap","tangentSpaceNormalMap","clearcoatNormalMap","displacementMap","specularMap","roughnessMap","metalnessMap","gradientMap","alphaMap","combine","vertexColors","vertexTangents","vertexUvs","uvsVertexOnly","fog","useFog","fogExp2","flatShading","sizeAttenuation","logarithmicDepthBuffer","skinning","maxBones","useVertexTexture","morphTargets","morphNormals","maxMorphTargets","maxMorphNormals","premultipliedAlpha","numDirLights","numPointLights","numSpotLights","numHemiLights","numRectAreaLights","numDirLightShadows","numPointLightShadows","numSpotLightShadows","shadowMapEnabled","shadowMapType","toneMapping","physicallyCorrectLights","alphaTest","doubleSided","flipSided","numClippingPlanes","numClipIntersection","depthPacking","dithering","sheen"];function ot(Oe){var mt;return Oe?Oe.isTexture?mt=Oe.encoding:Oe.isWebGLRenderTarget&&(console.warn("THREE.WebGLPrograms.getTextureEncodingFromMap: don't use render targets as textures. Use their .texture property instead."),mt=Oe.texture.encoding):mt=bn,mt}this.getParameters=function(Oe,mt,Tt,At,nn,fn,An){var zn=At.fog,Dn=Oe.isMeshStandardMaterial?At.environment:null,Qn=Oe.envMap||Dn,Pn=We[Oe.type],cr=An.isSkinnedMesh?function(Vr){var si=An.skeleton.bones;if(ce)return 1024;var Ar=Ee,vr=Math.floor((Ar-20)/4),yi=Math.min(vr,si.length);return yi<si.length?(console.warn("THREE.WebGLRenderer: Skeleton has "+si.length+" bones. This GPU supports "+yi+"."),0):yi}():0;Oe.precision!==null&&(ge=C.getMaxPrecision(Oe.precision))!==Oe.precision&&console.warn("THREE.WebGLProgram.getParameters:",Oe.precision,"not supported, using",ge,"instead.");var Cr=function(Vr,si){var Ar;if(Pn){var vr=Mu[Pn];Ar={name:Vr.type,uniforms:Hc.clone(vr.uniforms),vertexShader:vr.vertexShader,fragmentShader:vr.fragmentShader}}else Ar={name:Vr.type,uniforms:Vr.uniforms,vertexShader:Vr.vertexShader,fragmentShader:Vr.fragmentShader};return Ar}(Oe);Oe.onBeforeCompile(Cr,u);var _r=u.getRenderTarget(),Er=_r&&_r.isWebGLMultiviewRenderTarget?_r.numViews:0;return{isWebGL2:K,shaderID:Pn,shaderName:Cr.name,uniforms:Cr.uniforms,vertexShader:Cr.vertexShader,fragmentShader:Cr.fragmentShader,defines:Oe.defines,isRawShaderMaterial:Oe.isRawShaderMaterial,isShaderMaterial:Oe.isShaderMaterial,precision:ge,instancing:An.isInstancedMesh===!0,supportsVertexTextures:Ae,numMultiviewViews:Er,outputEncoding:_r!==null?ot(_r.texture):u.outputEncoding,map:!!Oe.map,mapEncoding:ot(Oe.map),matcap:!!Oe.matcap,matcapEncoding:ot(Oe.matcap),envMap:!!Qn,envMapMode:Qn&&Qn.mapping,envMapEncoding:ot(Qn),envMapCubeUV:!!Qn&&(Qn.mapping===rn||Qn.mapping===wt),lightMap:!!Oe.lightMap,lightMapEncoding:ot(Oe.lightMap),aoMap:!!Oe.aoMap,emissiveMap:!!Oe.emissiveMap,emissiveMapEncoding:ot(Oe.emissiveMap),bumpMap:!!Oe.bumpMap,normalMap:!!Oe.normalMap,objectSpaceNormalMap:Oe.normalMapType===gs,tangentSpaceNormalMap:Oe.normalMapType===Co,clearcoatNormalMap:!!Oe.clearcoatNormalMap,displacementMap:!!Oe.displacementMap,roughnessMap:!!Oe.roughnessMap,metalnessMap:!!Oe.metalnessMap,specularMap:!!Oe.specularMap,alphaMap:!!Oe.alphaMap,gradientMap:!!Oe.gradientMap,sheen:!!Oe.sheen,combine:Oe.combine,vertexTangents:Oe.normalMap&&Oe.vertexTangents,vertexColors:Oe.vertexColors,vertexUvs:!!(Oe.map||Oe.bumpMap||Oe.normalMap||Oe.specularMap||Oe.alphaMap||Oe.emissiveMap||Oe.roughnessMap||Oe.metalnessMap||Oe.clearcoatNormalMap||Oe.displacementMap),uvsVertexOnly:!(Oe.map||Oe.bumpMap||Oe.normalMap||Oe.specularMap||Oe.alphaMap||Oe.emissiveMap||Oe.roughnessMap||Oe.metalnessMap||Oe.clearcoatNormalMap||!Oe.displacementMap),fog:!!zn,useFog:Oe.fog,fogExp2:zn&&zn.isFogExp2,flatShading:Oe.flatShading,sizeAttenuation:Oe.sizeAttenuation,logarithmicDepthBuffer:ie,skinning:Oe.skinning&&0<cr,maxBones:cr,useVertexTexture:ce,morphTargets:Oe.morphTargets,morphNormals:Oe.morphNormals,maxMorphTargets:u.maxMorphTargets,maxMorphNormals:u.maxMorphNormals,numDirLights:mt.directional.length,numPointLights:mt.point.length,numSpotLights:mt.spot.length,numRectAreaLights:mt.rectArea.length,numHemiLights:mt.hemi.length,numDirLightShadows:mt.directionalShadowMap.length,numPointLightShadows:mt.pointShadowMap.length,numSpotLightShadows:mt.spotShadowMap.length,numClippingPlanes:nn,numClipIntersection:fn,dithering:Oe.dithering,shadowMapEnabled:u.shadowMap.enabled&&0<Tt.length,shadowMapType:u.shadowMap.type,toneMapping:Oe.toneMapped?u.toneMapping:ze,physicallyCorrectLights:u.physicallyCorrectLights,premultipliedAlpha:Oe.premultipliedAlpha,alphaTest:Oe.alphaTest,doubleSided:Oe.side===I,flipSided:Oe.side===E,depthPacking:Oe.depthPacking!==void 0&&Oe.depthPacking,index0AttributeName:Oe.index0AttributeName,extensionDerivatives:Oe.extensions&&Oe.extensions.derivatives,extensionFragDepth:Oe.extensions&&Oe.extensions.frawbuffers,extensionDrawbuffers:Oe.extensions&&Oe.extensions.drawbuffers,extensionShaderTextureLOD:Oe.extensions&&Oe.extensions.shaderTextureLOD,rendererExtensionFragDepth:K||g.get("EXT_frag_depth")!==null,rendererExtensionDrawBuffers:K||g.get("WEBGL_draw_buffers")!==null,rendererExtensionShaderTextureLod:K||g.get("EXT_shader_texture_lod")!==null,onBeforeCompile:Oe.onBeforeCompile}},this.getProgramCacheKey=function(Oe){var mt=[];if(Oe.shaderID?mt.push(Oe.shaderID):(mt.push(Oe.fragmentShader),mt.push(Oe.vertexShader)),Oe.defines!==void 0)for(var Tt in Oe.defines)mt.push(Tt),mt.push(Oe.defines[Tt]);if(Oe.isRawShaderMaterial===void 0){for(var At=0;At<tt.length;At++)mt.push(Oe[tt[At]]);mt.push(u.outputEncoding),mt.push(u.gammaFactor)}return mt.push(Oe.onBeforeCompile.toString()),mt.join()},this.acquireProgram=function(Oe,mt){for(var Tt,At=0,nn=L.length;At<nn;At++){var fn=L[At];if(fn.cacheKey===mt){++(Tt=fn).usedTimes;break}}return Tt===void 0&&(Tt=new ui(u,mt,Oe),L.push(Tt)),Tt},this.releaseProgram=function(Oe){if(--Oe.usedTimes==0){var mt=L.indexOf(Oe);L[mt]=L[L.length-1],L.pop(),Oe.destroy()}},this.programs=L}function pa(u,g){return u.groupOrder!==g.groupOrder?u.groupOrder-g.groupOrder:u.renderOrder!==g.renderOrder?u.renderOrder-g.renderOrder:u.program!==g.program?u.program.id-g.program.id:u.material.id!==g.material.id?u.material.id-g.material.id:u.z!==g.z?u.z-g.z:u.id-g.id}function Ja(u,g){return u.groupOrder!==g.groupOrder?u.groupOrder-g.groupOrder:u.renderOrder!==g.renderOrder?u.renderOrder-g.renderOrder:u.z!==g.z?g.z-u.z:u.id-g.id}function ji(){var u=[],g=0,C=[],L=[],K={id:-1};function ie(ce,ge,Ee,Ae,We,tt){var ot=u[g];return ot===void 0?(ot={id:ce.id,object:ce,geometry:ge,material:Ee,program:Ee.program||K,groupOrder:Ae,renderOrder:ce.renderOrder,z:We,group:tt},u[g]=ot):(ot.id=ce.id,ot.object=ce,ot.geometry=ge,ot.material=Ee,ot.program=Ee.program||K,ot.groupOrder=Ae,ot.renderOrder=ce.renderOrder,ot.z=We,ot.group=tt),g++,ot}return{opaque:C,transparent:L,init:function(){g=0,C.length=0,L.length=0},push:function(ce,ge,Ee,Ae,We,tt){var ot=ie(ce,ge,Ee,Ae,We,tt);(Ee.transparent===!0?L:C).push(ot)},unshift:function(ce,ge,Ee,Ae,We,tt){var ot=ie(ce,ge,Ee,Ae,We,tt);(Ee.transparent===!0?L:C).unshift(ot)},sort:function(ce,ge){1<C.length&&C.sort(ce||pa),1<L.length&&L.sort(ge||Ja)}}}var Xi=0;function Mo(u,g){return(g.castShadow?1:0)-(u.castShadow?1:0)}function Is(){for(var u=new function(){var ce={};return{get:function(ge){if(ce[ge.id]!==void 0)return ce[ge.id];var Ee;switch(ge.type){case"DirectionalLight":Ee={direction:new Kt,color:new Fn,shadow:!1,shadowBias:0,shadowRadius:1,shadowMapSize:new Lr};break;case"SpotLight":Ee={position:new Kt,direction:new Kt,color:new Fn,distance:0,coneCos:0,penumbraCos:0,decay:0,shadow:!1,shadowBias:0,shadowRadius:1,shadowMapSize:new Lr};break;case"PointLight":Ee={position:new Kt,color:new Fn,distance:0,decay:0,shadow:!1,shadowBias:0,shadowRadius:1,shadowMapSize:new Lr,shadowCameraNear:1,shadowCameraFar:1e3};break;case"HemisphereLight":Ee={direction:new Kt,skyColor:new Fn,groundColor:new Fn};break;case"RectAreaLight":Ee={color:new Fn,position:new Kt,halfWidth:new Kt,halfHeight:new Kt}}return ce[ge.id]=Ee}}},g={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotShadowMap:[],spotShadowMatrix:[],rectArea:[],point:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1},C=0;C<9;C++)g.probe.push(new Kt);var L=new Kt,K=new Ki,ie=new Ki;return{setup:function(ce,ge,Ee){for(var Ae=0,We=0,tt=0,ot=0;ot<9;ot++)g.probe[ot].set(0,0,0);var Oe=0,mt=0,Tt=0,At=0,nn=0,fn=0,An=0,zn=0,Dn=Ee.matrixWorldInverse;ce.sort(Mo),ot=0;for(var Qn=ce.length;ot<Qn;ot++){var Pn=ce[ot],cr=Pn.color,Cr=Pn.intensity,_r=Pn.distance,Er=Pn.shadow&&Pn.shadow.map?Pn.shadow.map.texture:null;if(Pn.isAmbientLight)Ae+=cr.r*Cr,We+=cr.g*Cr,tt+=cr.b*Cr;else if(Pn.isLightProbe)for(var Vr=0;Vr<9;Vr++)g.probe[Vr].addScaledVector(Pn.sh.coefficients[Vr],Cr);else if(Pn.isDirectionalLight){if((Ar=u.get(Pn)).color.copy(Pn.color).multiplyScalar(Pn.intensity),Ar.direction.setFromMatrixPosition(Pn.matrixWorld),L.setFromMatrixPosition(Pn.target.matrixWorld),Ar.direction.sub(L),Ar.direction.transformDirection(Dn),Ar.shadow=Pn.castShadow,Pn.castShadow){var si=Pn.shadow;Ar.shadowBias=si.bias,Ar.shadowRadius=si.radius,Ar.shadowMapSize=si.mapSize,g.directionalShadowMap[Oe]=Er,g.directionalShadowMatrix[Oe]=Pn.shadow.matrix,fn++}g.directional[Oe]=Ar,Oe++}else if(Pn.isSpotLight)(Ar=u.get(Pn)).position.setFromMatrixPosition(Pn.matrixWorld),Ar.position.applyMatrix4(Dn),Ar.color.copy(cr).multiplyScalar(Cr),Ar.distance=_r,Ar.direction.setFromMatrixPosition(Pn.matrixWorld),L.setFromMatrixPosition(Pn.target.matrixWorld),Ar.direction.sub(L),Ar.direction.transformDirection(Dn),Ar.coneCos=Math.cos(Pn.angle),Ar.penumbraCos=Math.cos(Pn.angle*(1-Pn.penumbra)),Ar.decay=Pn.decay,Ar.shadow=Pn.castShadow,Pn.castShadow&&(si=Pn.shadow,Ar.shadowBias=si.bias,Ar.shadowRadius=si.radius,Ar.shadowMapSize=si.mapSize,g.spotShadowMap[Tt]=Er,g.spotShadowMatrix[Tt]=Pn.shadow.matrix,zn++),g.spot[Tt]=Ar,Tt++;else if(Pn.isRectAreaLight)(Ar=u.get(Pn)).color.copy(cr).multiplyScalar(Cr),Ar.position.setFromMatrixPosition(Pn.matrixWorld),Ar.position.applyMatrix4(Dn),ie.identity(),K.copy(Pn.matrixWorld),K.premultiply(Dn),ie.extractRotation(K),Ar.halfWidth.set(.5*Pn.width,0,0),Ar.halfHeight.set(0,.5*Pn.height,0),Ar.halfWidth.applyMatrix4(ie),Ar.halfHeight.applyMatrix4(ie),g.rectArea[At]=Ar,At++;else if(Pn.isPointLight)(Ar=u.get(Pn)).position.setFromMatrixPosition(Pn.matrixWorld),Ar.position.applyMatrix4(Dn),Ar.color.copy(Pn.color).multiplyScalar(Pn.intensity),Ar.distance=Pn.distance,Ar.decay=Pn.decay,Ar.shadow=Pn.castShadow,Pn.castShadow&&(si=Pn.shadow,Ar.shadowBias=si.bias,Ar.shadowRadius=si.radius,Ar.shadowMapSize=si.mapSize,Ar.shadowCameraNear=si.camera.near,Ar.shadowCameraFar=si.camera.far,g.pointShadowMap[mt]=Er,g.pointShadowMatrix[mt]=Pn.shadow.matrix,An++),g.point[mt]=Ar,mt++;else if(Pn.isHemisphereLight){var Ar;(Ar=u.get(Pn)).direction.setFromMatrixPosition(Pn.matrixWorld),Ar.direction.transformDirection(Dn),Ar.direction.normalize(),Ar.skyColor.copy(Pn.color).multiplyScalar(Cr),Ar.groundColor.copy(Pn.groundColor).multiplyScalar(Cr),g.hemi[nn]=Ar,nn++}}g.ambient[0]=Ae,g.ambient[1]=We,g.ambient[2]=tt;var vr=g.hash;vr.directionalLength===Oe&&vr.pointLength===mt&&vr.spotLength===Tt&&vr.rectAreaLength===At&&vr.hemiLength===nn&&vr.numDirectionalShadows===fn&&vr.numPointShadows===An&&vr.numSpotShadows===zn||(g.directional.length=Oe,g.spot.length=Tt,g.rectArea.length=At,g.point.length=mt,g.hemi.length=nn,g.directionalShadowMap.length=fn,g.pointShadowMap.length=An,g.spotShadowMap.length=zn,g.directionalShadowMatrix.length=fn,g.pointShadowMatrix.length=An,g.spotShadowMatrix.length=zn,vr.directionalLength=Oe,vr.pointLength=mt,vr.spotLength=Tt,vr.rectAreaLength=At,vr.hemiLength=nn,vr.numDirectionalShadows=fn,vr.numPointShadows=An,vr.numSpotShadows=zn,g.version=Xi++)},state:g}}function Gl(){var u=new Is,g=[],C=[];return{init:function(){g.length=0,C.length=0},state:{lightsArray:g,shadowsArray:C,lights:u},setupLights:function(L){u.setup(g,C,L)},pushLight:function(L){g.push(L)},pushShadow:function(L){C.push(L)}}}function js(u){Wt.call(this),this.type="MeshDepthMaterial",this.depthPacking=Cs,this.skinning=!1,this.morphTargets=!1,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.setValues(u)}function Sl(u){Wt.call(this),this.type="MeshDistanceMaterial",this.referencePosition=new Kt,this.nearDistance=1,this.farDistance=1e3,this.skinning=!1,this.morphTargets=!1,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.fog=!1,this.setValues(u)}((js.prototype=Object.create(Wt.prototype)).constructor=js).prototype.isMeshDepthMaterial=!0,js.prototype.copy=function(u){return Wt.prototype.copy.call(this,u),this.depthPacking=u.depthPacking,this.skinning=u.skinning,this.morphTargets=u.morphTargets,this.map=u.map,this.alphaMap=u.alphaMap,this.displacementMap=u.displacementMap,this.displacementScale=u.displacementScale,this.displacementBias=u.displacementBias,this.wireframe=u.wireframe,this.wireframeLinewidth=u.wireframeLinewidth,this},((Sl.prototype=Object.create(Wt.prototype)).constructor=Sl).prototype.isMeshDistanceMaterial=!0,Sl.prototype.copy=function(u){return Wt.prototype.copy.call(this,u),this.referencePosition.copy(u.referencePosition),this.nearDistance=u.nearDistance,this.farDistance=u.farDistance,this.skinning=u.skinning,this.morphTargets=u.morphTargets,this.map=u.map,this.alphaMap=u.alphaMap,this.displacementMap=u.displacementMap,this.displacementScale=u.displacementScale,this.displacementBias=u.displacementBias,this};var ju=`uniform sampler2D shadow_pass;
  2673. uniform vec2 resolution;
  2674. uniform float radius;
  2675. #include <packing>
  2676. void main() {
  2677. float mean = 0.0;
  2678. float squared_mean = 0.0;
  2679. float depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy ) / resolution ) );
  2680. for ( float i = -1.0; i < 1.0 ; i += SAMPLE_RATE) {
  2681. #ifdef HORIZONAL_PASS
  2682. vec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( i, 0.0 ) * radius ) / resolution ) );
  2683. mean += distribution.x;
  2684. squared_mean += distribution.y * distribution.y + distribution.x * distribution.x;
  2685. #else
  2686. float depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, i ) * radius ) / resolution ) );
  2687. mean += depth;
  2688. squared_mean += depth * depth;
  2689. #endif
  2690. }
  2691. mean = mean * HALF_SAMPLE_RATE;
  2692. squared_mean = squared_mean * HALF_SAMPLE_RATE;
  2693. float std_dev = sqrt( squared_mean - mean * mean );
  2694. gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );
  2695. }`,mc=`void main() {
  2696. gl_Position = vec4( position, 1.0 );
  2697. }`;function gc(u,g,C){var L=new Yc,K=new Lr,ie=new Lr,ce=new _o,ge=[],Ee=[],Ae={},We={0:E,1:b,2:I},tt=new zl({defines:{SAMPLE_RATE:.25,HALF_SAMPLE_RATE:1/8},uniforms:{shadow_pass:{value:null},resolution:{value:new Lr},radius:{value:4}},vertexShader:mc,fragmentShader:ju}),ot=tt.clone();ot.defines.HORIZONAL_PASS=1;var Oe=new qi;Oe.setAttribute("position",new Bn(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));var mt=new hs(Oe,tt),Tt=this;function At(Dn,Qn){var Pn=g.update(mt);tt.uniforms.shadow_pass.value=Dn.map.texture,tt.uniforms.resolution.value=Dn.mapSize,tt.uniforms.radius.value=Dn.radius,u.setRenderTarget(Dn.mapPass),u.clear(),u.renderBufferDirect(Qn,null,Pn,tt,mt,null),ot.uniforms.shadow_pass.value=Dn.mapPass.texture,ot.uniforms.resolution.value=Dn.mapSize,ot.uniforms.radius.value=Dn.radius,u.setRenderTarget(Dn.map),u.clear(),u.renderBufferDirect(Qn,null,Pn,ot,mt,null)}function nn(Dn,Qn,Pn){var cr=Dn<<0|Qn<<1|Pn<<2,Cr=ge[cr];return Cr===void 0&&(Cr=new js({depthPacking:ko,morphTargets:Dn,skinning:Qn}),ge[cr]=Cr),Cr}function fn(Dn,Qn,Pn){var cr=Dn<<0|Qn<<1|Pn<<2,Cr=Ee[cr];return Cr===void 0&&(Cr=new Sl({morphTargets:Dn,skinning:Qn}),Ee[cr]=Cr),Cr}function An(Dn,Qn,Pn,cr,Cr,_r){var Er=Dn.geometry,Vr=null,si=nn,Ar=Dn.customDepthMaterial;if(Pn.isPointLight===!0&&(si=fn,Ar=Dn.customDistanceMaterial),Ar===void 0){var vr=!1;Qn.morphTargets===!0&&(Er.isBufferGeometry===!0?vr=Er.morphAttributes&&Er.morphAttributes.position&&0<Er.morphAttributes.position.length:Er.isGeometry===!0&&(vr=Er.morphTargets&&0<Er.morphTargets.length));var yi=!1;Dn.isSkinnedMesh===!0&&(Qn.skinning===!0?yi=!0:console.warn("THREE.WebGLShadowMap: THREE.SkinnedMesh with material.skinning set to false:",Dn)),Vr=si(vr,yi,Dn.isInstancedMesh===!0)}else Vr=Ar;if(u.localClippingEnabled&&Qn.clipShadows===!0&&Qn.clippingPlanes.length!==0){var Bi=Vr.uuid,ya=Qn.uuid,sa=Ae[Bi];sa===void 0&&(sa={},Ae[Bi]=sa);var oa=sa[ya];oa===void 0&&(oa=Vr.clone(),sa[ya]=oa),Vr=oa}return Vr.visible=Qn.visible,Vr.wireframe=Qn.wireframe,Vr.side=_r===_?Qn.shadowSide!==null?Qn.shadowSide:Qn.side:Qn.shadowSide!==null?Qn.shadowSide:We[Qn.side],Vr.clipShadows=Qn.clipShadows,Vr.clippingPlanes=Qn.clippingPlanes,Vr.clipIntersection=Qn.clipIntersection,Vr.wireframeLinewidth=Qn.wireframeLinewidth,Vr.linewidth=Qn.linewidth,Pn.isPointLight===!0&&Vr.isMeshDistanceMaterial===!0&&(Vr.referencePosition.setFromMatrixPosition(Pn.matrixWorld),Vr.nearDistance=cr,Vr.farDistance=Cr),Vr}function zn(Dn,Qn,Pn,cr,Cr){if(Dn.visible!==!1){if(Dn.layers.test(Qn.layers)&&(Dn.isMesh||Dn.isLine||Dn.isPoints)&&(Dn.castShadow||Dn.receiveShadow&&Cr===_)&&(!Dn.frustumCulled||L.intersectsObject(Dn))){Dn.modelViewMatrix.multiplyMatrices(Pn.matrixWorldInverse,Dn.matrixWorld);var _r=g.update(Dn),Er=Dn.material;if(Array.isArray(Er))for(var Vr=_r.groups,si=0,Ar=Vr.length;si<Ar;si++){var vr=Vr[si],yi=Er[vr.materialIndex];if(yi&&yi.visible){var Bi=An(Dn,yi,cr,Pn.near,Pn.far,Cr);u.renderBufferDirect(Pn,null,_r,Bi,Dn,vr)}}else Er.visible&&(Bi=An(Dn,Er,cr,Pn.near,Pn.far,Cr),u.renderBufferDirect(Pn,null,_r,Bi,Dn,null))}for(var ya=Dn.children,sa=0,oa=ya.length;sa<oa;sa++)zn(ya[sa],Qn,Pn,cr,Cr)}}this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=x,this.render=function(Dn,Qn,Pn){if(Tt.enabled!==!1&&(Tt.autoUpdate!==!1||Tt.needsUpdate!==!1)&&Dn.length!==0){var cr=u.getRenderTarget(),Cr=u.getActiveCubeFace(),_r=u.getActiveMipmapLevel(),Er=u.state;Er.setBlending(N),Er.buffers.color.setClear(1,1,1,1),Er.buffers.depth.setTest(!0),Er.setScissorTest(!1);for(var Vr=0,si=Dn.length;Vr<si;Vr++){var Ar=Dn[Vr],vr=Ar.shadow;if(vr!==void 0){K.copy(vr.mapSize);var yi=vr.getFrameExtents();if(K.multiply(yi),ie.copy(vr.mapSize),(K.x>C||K.y>C)&&(console.warn("THREE.WebGLShadowMap:",Ar,"has shadow exceeding max texture size, reducing"),K.x>C&&(ie.x=Math.floor(C/yi.x),K.x=ie.x*yi.x,vr.mapSize.x=ie.x),K.y>C&&(ie.y=Math.floor(C/yi.y),K.y=ie.y*yi.y,vr.mapSize.y=ie.y)),vr.map===null&&!vr.isPointLightShadow&&this.type===_){var Bi={minFilter:sn,magFilter:sn,format:dt};vr.map=new Rs(K.x,K.y,Bi),vr.map.texture.name=Ar.name+".shadowMap",vr.mapPass=new Rs(K.x,K.y,Bi),vr.camera.updateProjectionMatrix()}vr.map===null&&(Bi={minFilter:Ie,magFilter:Ie,format:dt},vr.map=new Rs(K.x,K.y,Bi),vr.map.texture.name=Ar.name+".shadowMap",vr.camera.updateProjectionMatrix()),u.setRenderTarget(vr.map),u.clear();for(var ya=vr.getViewportCount(),sa=0;sa<ya;sa++){var oa=vr.getViewport(sa);ce.set(ie.x*oa.x,ie.y*oa.y,ie.x*oa.z,ie.y*oa.w),Er.viewport(ce),vr.updateMatrices(Ar,sa),L=vr.getFrustum(),zn(Qn,Pn,vr.camera,Ar,this.type)}vr.isPointLightShadow||this.type!==_||At(vr,Pn)}else console.warn("THREE.WebGLShadowMap:",Ar,"has no shadow.")}Tt.needsUpdate=!1,u.setRenderTarget(cr,Cr,_r)}}}function ic(u,g,C){var L=C.isWebGL2,K=new function(){var lr=!1,Zi=new _o,$i=null,Ha=new _o(0,0,0,0);return{setMask:function(Ei){$i===Ei||lr||(u.colorMask(Ei,Ei,Ei,Ei),$i=Ei)},setLocked:function(Ei){lr=Ei},setClear:function(Ei,mo,go,Bs,Pu){Pu===!0&&(Ei*=Bs,mo*=Bs,go*=Bs),Zi.set(Ei,mo,go,Bs),Ha.equals(Zi)===!1&&(u.clearColor(Ei,mo,go,Bs),Ha.copy(Zi))},reset:function(){lr=!1,$i=null,Ha.set(-1,0,0,0)}}},ie=new function(){var lr=!1,Zi=null,$i=null,Ha=null;return{setTest:function(Ei){(Ei?ta:Mn)(2929)},setMask:function(Ei){Zi===Ei||lr||(u.depthMask(Ei),Zi=Ei)},setFunc:function(Ei){if($i!==Ei){if(Ei)switch(Ei){case ht:u.depthFunc(512);break;case De:u.depthFunc(519);break;case Be:u.depthFunc(513);break;case Ve:u.depthFunc(515);break;case He:u.depthFunc(514);break;case gt:u.depthFunc(518);break;case dn:u.depthFunc(516);break;case Ze:u.depthFunc(517);break;default:u.depthFunc(515)}else u.depthFunc(515);$i=Ei}},setLocked:function(Ei){lr=Ei},setClear:function(Ei){Ha!==Ei&&(u.clearDepth(Ei),Ha=Ei)},reset:function(){lr=!1,Ha=$i=Zi=null}}},ce=new function(){var lr=!1,Zi=null,$i=null,Ha=null,Ei=null,mo=null,go=null,Bs=null,Pu=null;return{setTest:function(uo){lr||(uo?ta:Mn)(2960)},setMask:function(uo){Zi===uo||lr||(u.stencilMask(uo),Zi=uo)},setFunc:function(uo,tl,To){$i===uo&&Ha===tl&&Ei===To||(u.stencilFunc(uo,tl,To),$i=uo,Ha=tl,Ei=To)},setOp:function(uo,tl,To){mo===uo&&go===tl&&Bs===To||(u.stencilOp(uo,tl,To),mo=uo,go=tl,Bs=To)},setLocked:function(uo){lr=uo},setClear:function(uo){Pu!==uo&&(u.clearStencil(uo),Pu=uo)},reset:function(){lr=!1,Pu=Bs=go=mo=Ei=Ha=$i=Zi=null}}},ge=u.getParameter(34921),Ee=new Uint8Array(ge),Ae=new Uint8Array(ge),We=new Uint8Array(ge),tt={},ot=null,Oe=null,mt=null,Tt=null,At=null,nn=null,fn=null,An=null,zn=null,Dn=!1,Qn=null,Pn=null,cr=null,Cr=null,_r=null,Er=u.getParameter(35661),Vr=!1,si=0,Ar=u.getParameter(7938);Ar.indexOf("WebGL")!==-1?(si=parseFloat(/^WebGL\ ([0-9])/.exec(Ar)[1]),Vr=1<=si):Ar.indexOf("OpenGL ES")!==-1&&(si=parseFloat(/^OpenGL\ ES\ ([0-9])/.exec(Ar)[1]),Vr=2<=si);var vr=null,yi={},Bi=new _o,ya=new _o;function sa(lr,Zi,$i){var Ha=new Uint8Array(4),Ei=u.createTexture();u.bindTexture(lr,Ei),u.texParameteri(lr,10241,9728),u.texParameteri(lr,10240,9728);for(var mo=0;mo<$i;mo++)u.texImage2D(Zi+mo,0,6408,1,1,0,6408,5121,Ha);return Ei}var oa={};function $a(lr,Zi){Ee[lr]=1,Ae[lr]===0&&(u.enableVertexAttribArray(lr),Ae[lr]=1),We[lr]!==Zi&&((L?u:g.get("ANGLE_instanced_arrays"))[L?"vertexAttribDivisor":"vertexAttribDivisorANGLE"](lr,Zi),We[lr]=Zi)}function ta(lr){tt[lr]!==!0&&(u.enable(lr),tt[lr]=!0)}function Mn(lr){tt[lr]!==!1&&(u.disable(lr),tt[lr]=!1)}oa[3553]=sa(3553,3553,1),oa[34067]=sa(34067,34069,6),K.setClear(0,0,0,1),ie.setClear(1),ce.setClear(0),ta(2929),ie.setFunc(Ve),ia(!1),Tr(l),ta(2884),Ga(N);var Wn={};if(Wn[W]=32774,Wn[B]=32778,Wn[q]=32779,L)Wn[D]=32775,Wn[F]=32776;else{var ai=g.get("EXT_blend_minmax");ai!==null&&(Wn[D]=ai.MIN_EXT,Wn[F]=ai.MAX_EXT)}var Zr={};function Ga(lr,Zi,$i,Ha,Ei,mo,go,Bs){if(lr!==N){if(Oe||(ta(3042),Oe=!0),lr===ne)Ei=Ei||Zi,mo=mo||$i,go=go||Ha,Zi===Tt&&Ei===fn||(u.blendEquationSeparate(Wn[Zi],Wn[Ei]),Tt=Zi,fn=Ei),$i===At&&Ha===nn&&mo===An&&go===zn||(u.blendFuncSeparate(Zr[$i],Zr[Ha],Zr[mo],Zr[go]),At=$i,nn=Ha,An=mo,zn=go),mt=lr,Dn=null;else if(lr!==mt||Bs!==Dn){if(Tt===W&&fn===W||(u.blendEquation(32774),fn=Tt=W),Bs)switch(lr){case A:u.blendFuncSeparate(1,771,1,771);break;case z:u.blendFunc(1,1);break;case G:u.blendFuncSeparate(0,0,769,771);break;case V:u.blendFuncSeparate(0,768,0,770);break;default:console.error("THREE.WebGLState: Invalid blending: ",lr)}else switch(lr){case A:u.blendFuncSeparate(770,771,1,771);break;case z:u.blendFunc(770,1);break;case G:u.blendFunc(0,769);break;case V:u.blendFunc(0,768);break;default:console.error("THREE.WebGLState: Invalid blending: ",lr)}zn=An=nn=At=null,mt=lr,Dn=Bs}}else Oe&&(Mn(3042),Oe=!1)}function ia(lr){Qn!==lr&&(lr?u.frontFace(2304):u.frontFace(2305),Qn=lr)}function Tr(lr){lr!==c?(ta(2884),lr!==Pn&&(lr===l?u.cullFace(1029):lr===v?u.cullFace(1028):u.cullFace(1032))):Mn(2884),Pn=lr}function la(lr,Zi,$i){lr?(ta(32823),Cr===Zi&&_r===$i||(u.polygonOffset(Zi,$i),Cr=Zi,_r=$i)):Mn(32823)}function qa(lr){lr===void 0&&(lr=33984+Er-1),vr!==lr&&(u.activeTexture(lr),vr=lr)}return Zr[re]=0,Zr[le]=1,Zr[fe]=768,Zr[ye]=770,Zr[Ue]=776,Zr[et]=774,Zr[ke]=772,Zr[me]=769,Zr[Te]=771,Zr[it]=775,Zr[Le]=773,{buffers:{color:K,depth:ie,stencil:ce},initAttributes:function(){for(var lr=0,Zi=Ee.length;lr<Zi;lr++)Ee[lr]=0},enableAttribute:function(lr){$a(lr,0)},enableAttributeAndDivisor:$a,disableUnusedAttributes:function(){for(var lr=0,Zi=Ae.length;lr!==Zi;++lr)Ae[lr]!==Ee[lr]&&(u.disableVertexAttribArray(lr),Ae[lr]=0)},enable:ta,disable:Mn,useProgram:function(lr){return ot!==lr&&(u.useProgram(lr),ot=lr,!0)},setBlending:Ga,setMaterial:function(lr,Zi){(lr.side===I?Mn:ta)(2884);var $i=lr.side===E;Zi&&($i=!$i),ia($i),lr.blending===A&&lr.transparent===!1?Ga(N):Ga(lr.blending,lr.blendEquation,lr.blendSrc,lr.blendDst,lr.blendEquationAlpha,lr.blendSrcAlpha,lr.blendDstAlpha,lr.premultipliedAlpha),ie.setFunc(lr.depthFunc),ie.setTest(lr.depthTest),ie.setMask(lr.depthWrite),K.setMask(lr.colorWrite);var Ha=lr.stencilWrite;ce.setTest(Ha),Ha&&(ce.setMask(lr.stencilWriteMask),ce.setFunc(lr.stencilFunc,lr.stencilRef,lr.stencilFuncMask),ce.setOp(lr.stencilFail,lr.stencilZFail,lr.stencilZPass)),la(lr.polygonOffset,lr.polygonOffsetFactor,lr.polygonOffsetUnits)},setFlipSided:ia,setCullFace:Tr,setLineWidth:function(lr){lr!==cr&&(Vr&&u.lineWidth(lr),cr=lr)},setPolygonOffset:la,setScissorTest:function(lr){(lr?ta:Mn)(3089)},activeTexture:qa,bindTexture:function(lr,Zi){vr===null&&qa();var $i=yi[vr];$i===void 0&&($i={type:void 0,texture:void 0},yi[vr]=$i),$i.type===lr&&$i.texture===Zi||(u.bindTexture(lr,Zi||oa[lr]),$i.type=lr,$i.texture=Zi)},unbindTexture:function(){var lr=yi[vr];lr!==void 0&&lr.type!==void 0&&(u.bindTexture(lr.type,null),lr.type=void 0,lr.texture=void 0)},compressedTexImage2D:function(){try{u.compressedTexImage2D.apply(u,arguments)}catch(lr){console.error("THREE.WebGLState:",lr)}},texImage2D:function(){try{u.texImage2D.apply(u,arguments)}catch(lr){console.error("THREE.WebGLState:",lr)}},texImage3D:function(){try{u.texImage3D.apply(u,arguments)}catch(lr){console.error("THREE.WebGLState:",lr)}},scissor:function(lr){Bi.equals(lr)===!1&&(u.scissor(lr.x,lr.y,lr.z,lr.w),Bi.copy(lr))},viewport:function(lr){ya.equals(lr)===!1&&(u.viewport(lr.x,lr.y,lr.z,lr.w),ya.copy(lr))},reset:function(){for(var lr=0;lr<Ae.length;lr++)Ae[lr]===1&&(u.disableVertexAttribArray(lr),Ae[lr]=0);tt={},yi={},Pn=Qn=mt=ot=vr=null,K.reset(),ie.reset(),ce.reset()}}}function Us(u,g,C,L,K,ie,ce){var ge,Ee=K.isWebGL2,Ae=K.maxTextures,We=K.maxCubemapSize,tt=K.maxTextureSize,ot=K.maxSamples,Oe=new WeakMap,mt=!1;try{mt=typeof OffscreenCanvas!="undefined"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch(Mn){}function Tt(Mn,Wn){return mt?new OffscreenCanvas(Mn,Wn):document.createElementNS("http://www.w3.org/1999/xhtml","canvas")}function At(Mn,Wn,ai,Zr){var Ga=1;if((Mn.width>Zr||Mn.height>Zr)&&(Ga=Zr/Math.max(Mn.width,Mn.height)),Ga<1||Wn===!0){if(typeof HTMLImageElement!="undefined"&&Mn instanceof HTMLImageElement||typeof HTMLCanvasElement!="undefined"&&Mn instanceof HTMLCanvasElement||typeof ImageBitmap!="undefined"&&Mn instanceof ImageBitmap){var ia=Wn?Ta.floorPowerOfTwo:Math.floor,Tr=ia(Ga*Mn.width),la=ia(Ga*Mn.height);ge===void 0&&(ge=Tt(Tr,la));var qa=ai?Tt(Tr,la):ge;return qa.width=Tr,qa.height=la,qa.getContext("2d").drawImage(Mn,0,0,Tr,la),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+Mn.width+"x"+Mn.height+") to ("+Tr+"x"+la+")."),qa}return"data"in Mn&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+Mn.width+"x"+Mn.height+")."),Mn}return Mn}function nn(Mn){return Ta.isPowerOfTwo(Mn.width)&&Ta.isPowerOfTwo(Mn.height)}function fn(Mn,Wn){return Mn.generateMipmaps&&Wn&&Mn.minFilter!==Ie&&Mn.minFilter!==sn}function An(Mn,Wn,ai,Zr){u.generateMipmap(Mn),L.get(Wn).__maxMipLevel=Math.log(Math.max(ai,Zr))*Math.LOG2E}function zn(Mn,Wn,ai){if(Ee===!1)return Wn;if(Mn!==null){if(u[Mn]!==void 0)return u[Mn];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+Mn+"'")}var Zr=Wn;return Wn===6403&&(ai===5126&&(Zr=33326),ai===5131&&(Zr=33325),ai===5121&&(Zr=33321)),Wn===6407&&(ai===5126&&(Zr=34837),ai===5131&&(Zr=34843),ai===5121&&(Zr=32849)),Wn===6408&&(ai===5126&&(Zr=34836),ai===5131&&(Zr=34842),ai===5121&&(Zr=32856)),Zr===33325||Zr===33326||Zr===34842||Zr===34836?g.get("EXT_color_buffer_float"):Zr!==34843&&Zr!==34837||console.warn("THREE.WebGLRenderer: Floating point textures with RGB format not supported. Please use RGBA instead."),Zr}function Dn(Mn){return Mn===Ie||Mn===ct||Mn===Ht?9728:9729}function Qn(Mn){var Wn=Mn.target;Wn.removeEventListener("dispose",Qn),function(ai){var Zr=L.get(ai);Zr.__webglInit!==void 0&&(u.deleteTexture(Zr.__webglTexture),L.remove(ai))}(Wn),Wn.isVideoTexture&&Oe.delete(Wn),ce.memory.textures--}function Pn(Mn){var Wn=Mn.target;Wn.removeEventListener("dispose",Pn),function(ai){var Zr=L.get(ai),Ga=L.get(ai.texture);if(ai){if(Ga.__webglTexture!==void 0&&u.deleteTexture(Ga.__webglTexture),ai.depthTexture&&ai.depthTexture.dispose(),ai.isWebGLCubeRenderTarget)for(var ia=0;ia<6;ia++)u.deleteFramebuffer(Zr.__webglFramebuffer[ia]),Zr.__webglDepthbuffer&&u.deleteRenderbuffer(Zr.__webglDepthbuffer[ia]);else u.deleteFramebuffer(Zr.__webglFramebuffer),Zr.__webglDepthbuffer&&u.deleteRenderbuffer(Zr.__webglDepthbuffer);if(ai.isWebGLMultiviewRenderTarget){u.deleteTexture(Zr.__webglColorTexture),u.deleteTexture(Zr.__webglDepthStencilTexture),ce.memory.textures-=2,ia=0;for(var Tr=Zr.__webglViewFramebuffers.length;ia<Tr;ia++)u.deleteFramebuffer(Zr.__webglViewFramebuffers[ia])}L.remove(ai.texture),L.remove(ai)}}(Wn),ce.memory.textures--}var cr=0;function Cr(Mn,Wn){var ai,Zr,Ga=L.get(Mn);if(Mn.isVideoTexture&&(ai=Mn,Zr=ce.render.frame,Oe.get(ai)!==Zr&&(Oe.set(ai,Zr),ai.update())),0<Mn.version&&Ga.__version!==Mn.version){var ia=Mn.image;if(ia===void 0)console.warn("THREE.WebGLRenderer: Texture marked for update but image is undefined");else{if(ia.complete!==!1)return void yi(Ga,Mn,Wn);console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete")}}C.activeTexture(33984+Wn),C.bindTexture(3553,Ga.__webglTexture)}function _r(Mn,Wn){if(Mn.image.length===6){var ai=L.get(Mn);if(0<Mn.version&&ai.__version!==Mn.version){vr(ai,Mn),C.activeTexture(33984+Wn),C.bindTexture(34067,ai.__webglTexture),u.pixelStorei(37440,Mn.flipY);for(var Zr=Mn&&(Mn.isCompressedTexture||Mn.image[0].isCompressedTexture),Ga=Mn.image[0]&&Mn.image[0].isDataTexture,ia=[],Tr=0;Tr<6;Tr++)ia[Tr]=Zr||Ga?Ga?Mn.image[Tr].image:Mn.image[Tr]:At(Mn.image[Tr],!1,!0,We);var la,qa=ia[0],lr=nn(qa)||Ee,Zi=ie.convert(Mn.format),$i=ie.convert(Mn.type),Ha=zn(Mn.internalFormat,Zi,$i);if(Ar(34067,Mn,lr),Zr){for(Tr=0;Tr<6;Tr++){la=ia[Tr].mipmaps;for(var Ei=0;Ei<la.length;Ei++){var mo=la[Ei];Mn.format!==dt&&Mn.format!==jt?Zi!==null?C.compressedTexImage2D(34069+Tr,Ei,Ha,mo.width,mo.height,0,mo.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):C.texImage2D(34069+Tr,Ei,Ha,mo.width,mo.height,0,Zi,$i,mo.data)}}ai.__maxMipLevel=la.length-1}else{for(la=Mn.mipmaps,Tr=0;Tr<6;Tr++)if(Ga)for(C.texImage2D(34069+Tr,0,Ha,ia[Tr].width,ia[Tr].height,0,Zi,$i,ia[Tr].data),Ei=0;Ei<la.length;Ei++){var go=(mo=la[Ei]).image[Tr].image;C.texImage2D(34069+Tr,Ei+1,Ha,go.width,go.height,0,Zi,$i,go.data)}else for(C.texImage2D(34069+Tr,0,Ha,Zi,$i,ia[Tr]),Ei=0;Ei<la.length;Ei++)mo=la[Ei],C.texImage2D(34069+Tr,Ei+1,Ha,Zi,$i,mo.image[Tr]);ai.__maxMipLevel=la.length}fn(Mn,lr)&&An(34067,Mn,qa.width,qa.height),ai.__version=Mn.version,Mn.onUpdate&&Mn.onUpdate(Mn)}else C.activeTexture(33984+Wn),C.bindTexture(34067,ai.__webglTexture)}}function Er(Mn,Wn){C.activeTexture(33984+Wn),C.bindTexture(34067,L.get(Mn).__webglTexture)}var Vr={};Vr[Yn]=10497,Vr[pt]=33071,Vr[Fe]=33648;var si={};function Ar(Mn,Wn,ai){ai?(u.texParameteri(Mn,10242,Vr[Wn.wrapS]),u.texParameteri(Mn,10243,Vr[Wn.wrapT]),Mn!==32879&&Mn!==35866||u.texParameteri(Mn,32882,Vr[Wn.wrapR]),u.texParameteri(Mn,10240,si[Wn.magFilter]),u.texParameteri(Mn,10241,si[Wn.minFilter])):(u.texParameteri(Mn,10242,33071),u.texParameteri(Mn,10243,33071),Mn!==32879&&Mn!==35866||u.texParameteri(Mn,32882,33071),Wn.wrapS===pt&&Wn.wrapT===pt||console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),u.texParameteri(Mn,10240,Dn(Wn.magFilter)),u.texParameteri(Mn,10241,Dn(Wn.minFilter)),Wn.minFilter!==Ie&&Wn.minFilter!==sn&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter."));var Zr=g.get("EXT_texture_filter_anisotropic");if(Zr){if(Wn.type===ar&&g.get("OES_texture_float_linear")===null||Wn.type===zr&&(Ee||g.get("OES_texture_half_float_linear"))===null)return;(1<Wn.anisotropy||L.get(Wn).__currentAnisotropy)&&(u.texParameterf(Mn,Zr.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(Wn.anisotropy,K.getMaxAnisotropy())),L.get(Wn).__currentAnisotropy=Wn.anisotropy)}}function vr(Mn,Wn){Mn.__webglInit===void 0&&(Mn.__webglInit=!0,Wn.addEventListener("dispose",Qn),Mn.__webglTexture=u.createTexture(),ce.memory.textures++)}function yi(Mn,Wn,ai){var Zr=3553;Wn.isDataTexture2DArray&&(Zr=35866),Wn.isDataTexture3D&&(Zr=32879),vr(Mn,Wn),C.activeTexture(33984+ai),C.bindTexture(Zr,Mn.__webglTexture),u.pixelStorei(37440,Wn.flipY),u.pixelStorei(37441,Wn.premultiplyAlpha),u.pixelStorei(3317,Wn.unpackAlignment);var Ga,ia=(Ga=Wn,!Ee&&(Ga.wrapS!==pt||Ga.wrapT!==pt||Ga.minFilter!==Ie&&Ga.minFilter!==sn)&&nn(Wn.image)===!1),Tr=At(Wn.image,ia,!1,tt),la=nn(Tr)||Ee,qa=ie.convert(Wn.format),lr=ie.convert(Wn.type),Zi=zn(Wn.internalFormat,qa,lr);Ar(Zr,Wn,la);var $i,Ha=Wn.mipmaps;if(Wn.isDepthTexture){if(Zi=6402,Wn.type===ar){if(Ee===!1)throw new Error("Float Depth Texture only supported in WebGL2.0");Zi=36012}else Ee&&(Zi=33189);Wn.format===mn&&Zi===6402&&Wn.type!==xn&&Wn.type!==ln&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),Wn.type=xn,lr=ie.convert(Wn.type)),Wn.format===Un&&(Zi=34041,Wn.type!==wi&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),Wn.type=wi,lr=ie.convert(Wn.type))),C.texImage2D(3553,0,Zi,Tr.width,Tr.height,0,qa,lr,null)}else if(Wn.isDataTexture)if(0<Ha.length&&la){for(var Ei=0,mo=Ha.length;Ei<mo;Ei++)$i=Ha[Ei],C.texImage2D(3553,Ei,Zi,$i.width,$i.height,0,qa,lr,$i.data);Wn.generateMipmaps=!1,Mn.__maxMipLevel=Ha.length-1}else C.texImage2D(3553,0,Zi,Tr.width,Tr.height,0,qa,lr,Tr.data),Mn.__maxMipLevel=0;else if(Wn.isCompressedTexture){for(Ei=0,mo=Ha.length;Ei<mo;Ei++)$i=Ha[Ei],Wn.format!==dt&&Wn.format!==jt?qa!==null?C.compressedTexImage2D(3553,Ei,Zi,$i.width,$i.height,0,$i.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):C.texImage2D(3553,Ei,Zi,$i.width,$i.height,0,qa,lr,$i.data);Mn.__maxMipLevel=Ha.length-1}else if(Wn.isDataTexture2DArray)C.texImage3D(35866,0,Zi,Tr.width,Tr.height,Tr.depth,0,qa,lr,Tr.data),Mn.__maxMipLevel=0;else if(Wn.isDataTexture3D)C.texImage3D(32879,0,Zi,Tr.width,Tr.height,Tr.depth,0,qa,lr,Tr.data),Mn.__maxMipLevel=0;else if(0<Ha.length&&la){for(Ei=0,mo=Ha.length;Ei<mo;Ei++)$i=Ha[Ei],C.texImage2D(3553,Ei,Zi,qa,lr,$i);Wn.generateMipmaps=!1,Mn.__maxMipLevel=Ha.length-1}else C.texImage2D(3553,0,Zi,qa,lr,Tr),Mn.__maxMipLevel=0;fn(Wn,la)&&An(Zr,Wn,Tr.width,Tr.height),Mn.__version=Wn.version,Wn.onUpdate&&Wn.onUpdate(Wn)}function Bi(Mn,Wn,ai,Zr){var Ga=ie.convert(Wn.texture.format),ia=ie.convert(Wn.texture.type),Tr=zn(Wn.texture.internalFormat,Ga,ia);C.texImage2D(Zr,0,Tr,Wn.width,Wn.height,0,Ga,ia,null),u.bindFramebuffer(36160,Mn),u.framebufferTexture2D(36160,ai,Zr,L.get(Wn.texture).__webglTexture,0),u.bindFramebuffer(36160,null)}function ya(Mn,Wn,ai){if(u.bindRenderbuffer(36161,Mn),Wn.depthBuffer&&!Wn.stencilBuffer){if(ai){var Zr=oa(Wn);u.renderbufferStorageMultisample(36161,Zr,33189,Wn.width,Wn.height)}else u.renderbufferStorage(36161,33189,Wn.width,Wn.height);u.framebufferRenderbuffer(36160,36096,36161,Mn)}else if(Wn.depthBuffer&&Wn.stencilBuffer)ai?(Zr=oa(Wn),u.renderbufferStorageMultisample(36161,Zr,35056,Wn.width,Wn.height)):u.renderbufferStorage(36161,34041,Wn.width,Wn.height),u.framebufferRenderbuffer(36160,33306,36161,Mn);else{var Ga=ie.convert(Wn.texture.format),ia=ie.convert(Wn.texture.type),Tr=zn(Wn.texture.internalFormat,Ga,ia);ai?(Zr=oa(Wn),u.renderbufferStorageMultisample(36161,Zr,Tr,Wn.width,Wn.height)):u.renderbufferStorage(36161,Tr,Wn.width,Wn.height)}u.bindRenderbuffer(36161,null)}function sa(Mn){var Wn=L.get(Mn),ai=Mn.isWebGLCubeRenderTarget===!0;if(Mn.depthTexture){if(ai)throw new Error("target.depthTexture not supported in Cube render targets");(function(Ga,ia){if(ia&&ia.isWebGLCubeRenderTarget)throw new Error("Depth Texture with cube render targets is not supported");if(u.bindFramebuffer(36160,Ga),!ia.depthTexture||!ia.depthTexture.isDepthTexture)throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");L.get(ia.depthTexture).__webglTexture&&ia.depthTexture.image.width===ia.width&&ia.depthTexture.image.height===ia.height||(ia.depthTexture.image.width=ia.width,ia.depthTexture.image.height=ia.height,ia.depthTexture.needsUpdate=!0),Cr(ia.depthTexture,0);var Tr=L.get(ia.depthTexture).__webglTexture;if(ia.depthTexture.format===mn)u.framebufferTexture2D(36160,36096,3553,Tr,0);else{if(ia.depthTexture.format!==Un)throw new Error("Unknown depthTexture format");u.framebufferTexture2D(36160,33306,3553,Tr,0)}})(Wn.__webglFramebuffer,Mn)}else if(ai){Wn.__webglDepthbuffer=[];for(var Zr=0;Zr<6;Zr++)u.bindFramebuffer(36160,Wn.__webglFramebuffer[Zr]),Wn.__webglDepthbuffer[Zr]=u.createRenderbuffer(),ya(Wn.__webglDepthbuffer[Zr],Mn)}else u.bindFramebuffer(36160,Wn.__webglFramebuffer),Wn.__webglDepthbuffer=u.createRenderbuffer(),ya(Wn.__webglDepthbuffer,Mn);u.bindFramebuffer(36160,null)}function oa(Mn){return Ee&&Mn.isWebGLMultisampleRenderTarget?Math.min(ot,Mn.samples):0}si[Ie]=9728,si[ct]=9984,si[Ht]=9986,si[sn]=9729,si[yn]=9985;var $a=!(si[Dr]=9987),ta=!1;this.allocateTextureUnit=function(){var Mn=cr;return Ae<=Mn&&console.warn("THREE.WebGLTextures: Trying to use "+Mn+" texture units while this GPU supports only "+Ae),cr+=1,Mn},this.resetTextureUnits=function(){cr=0},this.setTexture2D=Cr,this.setTexture2DArray=function(Mn,Wn){var ai=L.get(Mn);0<Mn.version&&ai.__version!==Mn.version?yi(ai,Mn,Wn):(C.activeTexture(33984+Wn),C.bindTexture(35866,ai.__webglTexture))},this.setTexture3D=function(Mn,Wn){var ai=L.get(Mn);0<Mn.version&&ai.__version!==Mn.version?yi(ai,Mn,Wn):(C.activeTexture(33984+Wn),C.bindTexture(32879,ai.__webglTexture))},this.setTextureCube=_r,this.setTextureCubeDynamic=Er,this.setupRenderTarget=function(Mn){var Wn=L.get(Mn),ai=L.get(Mn.texture);Mn.addEventListener("dispose",Pn),ai.__webglTexture=u.createTexture(),ce.memory.textures++;var Zr=Mn.isWebGLCubeRenderTarget===!0,Ga=Mn.isWebGLMultisampleRenderTarget===!0,ia=Mn.isWebGLMultiviewRenderTarget===!0,Tr=nn(Mn)||Ee;if(Zr){Wn.__webglFramebuffer=[];for(var la=0;la<6;la++)Wn.__webglFramebuffer[la]=u.createFramebuffer()}else if(Wn.__webglFramebuffer=u.createFramebuffer(),Ga)if(Ee){Wn.__webglMultisampledFramebuffer=u.createFramebuffer(),Wn.__webglColorRenderbuffer=u.createRenderbuffer(),u.bindRenderbuffer(36161,Wn.__webglColorRenderbuffer);var qa=ie.convert(Mn.texture.format),lr=ie.convert(Mn.texture.type),Zi=zn(Mn.texture.internalFormat,qa,lr),$i=oa(Mn);u.renderbufferStorageMultisample(36161,$i,Zi,Mn.width,Mn.height),u.bindFramebuffer(36160,Wn.__webglMultisampledFramebuffer),u.framebufferRenderbuffer(36160,36064,36161,Wn.__webglColorRenderbuffer),u.bindRenderbuffer(36161,null),Mn.depthBuffer&&(Wn.__webglDepthRenderbuffer=u.createRenderbuffer(),ya(Wn.__webglDepthRenderbuffer,Mn,!0)),u.bindFramebuffer(36160,null)}else console.warn("THREE.WebGLRenderer: WebGLMultisampleRenderTarget can only be used with WebGL2.");else if(ia){var Ha=Mn.width,Ei=Mn.height,mo=Mn.numViews;u.bindFramebuffer(36160,Wn.__webglFramebuffer);var go=g.get("OVR_multiview2");ce.memory.textures+=2;var Bs=u.createTexture();u.bindTexture(35866,Bs),u.texParameteri(35866,10240,9728),u.texParameteri(35866,10241,9728),u.texImage3D(35866,0,32856,Ha,Ei,mo,0,6408,5121,null),go.framebufferTextureMultiviewOVR(36160,36064,Bs,0,0,mo);var Pu=u.createTexture();u.bindTexture(35866,Pu),u.texParameteri(35866,10240,9728),u.texParameteri(35866,10241,9728),u.texImage3D(35866,0,35056,Ha,Ei,mo,0,34041,34042,null),go.framebufferTextureMultiviewOVR(36160,33306,Pu,0,0,mo);var uo=new Array(mo);for(la=0;la<mo;++la)uo[la]=u.createFramebuffer(),u.bindFramebuffer(36160,uo[la]),u.framebufferTextureLayer(36160,36064,Bs,0,la);Wn.__webglColorTexture=Bs,Wn.__webglDepthStencilTexture=Pu,Wn.__webglViewFramebuffers=uo,u.bindFramebuffer(36160,null),u.bindTexture(35866,null)}if(Zr){for(C.bindTexture(34067,ai.__webglTexture),Ar(34067,Mn.texture,Tr),la=0;la<6;la++)Bi(Wn.__webglFramebuffer[la],Mn,36064,34069+la);fn(Mn.texture,Tr)&&An(34067,Mn.texture,Mn.width,Mn.height),C.bindTexture(34067,null)}else ia||(C.bindTexture(3553,ai.__webglTexture),Ar(3553,Mn.texture,Tr),Bi(Wn.__webglFramebuffer,Mn,36064,3553),fn(Mn.texture,Tr)&&An(3553,Mn.texture,Mn.width,Mn.height),C.bindTexture(3553,null));Mn.depthBuffer&&sa(Mn)},this.updateRenderTargetMipmap=function(Mn){var Wn=Mn.texture;if(fn(Wn,nn(Mn)||Ee)){var ai=Mn.isWebGLCubeRenderTarget?34067:3553,Zr=L.get(Wn).__webglTexture;C.bindTexture(ai,Zr),An(ai,Wn,Mn.width,Mn.height),C.bindTexture(ai,null)}},this.updateMultisampleRenderTarget=function(Mn){if(Mn.isWebGLMultisampleRenderTarget)if(Ee){var Wn=L.get(Mn);u.bindFramebuffer(36008,Wn.__webglMultisampledFramebuffer),u.bindFramebuffer(36009,Wn.__webglFramebuffer);var ai=Mn.width,Zr=Mn.height,Ga=16384;Mn.depthBuffer&&(Ga|=256),Mn.stencilBuffer&&(Ga|=1024),u.blitFramebuffer(0,0,ai,Zr,0,0,ai,Zr,Ga,9728)}else console.warn("THREE.WebGLRenderer: WebGLMultisampleRenderTarget can only be used with WebGL2.")},this.safeSetTexture2D=function(Mn,Wn){Mn&&Mn.isWebGLRenderTarget&&($a===!1&&(console.warn("THREE.WebGLTextures.safeSetTexture2D: don't use render targets as textures. Use their .texture property instead."),$a=!0),Mn=Mn.texture),Cr(Mn,Wn)},this.safeSetTextureCube=function(Mn,Wn){Mn&&Mn.isWebGLCubeRenderTarget&&(ta===!1&&(console.warn("THREE.WebGLTextures.safeSetTextureCube: don't use cube render targets as textures. Use their .texture property instead."),ta=!0),Mn=Mn.texture),(Mn&&Mn.isCubeTexture||Array.isArray(Mn.image)&&Mn.image.length===6?_r:Er)(Mn,Wn)}}function _s(u,g,C){var L=C.isWebGL2;return{convert:function(K){var ie;if(K===Kr)return 5121;if(K===Jr)return 32819;if(K===bi)return 32820;if(K===hi)return 33635;if(K===ii)return 5120;if(K===_n)return 5122;if(K===xn)return 5123;if(K===jn)return 5124;if(K===ln)return 5125;if(K===ar)return 5126;if(K===zr)return L?5131:(ie=g.get("OES_texture_half_float"))!==null?ie.HALF_FLOAT_OES:null;if(K===Ca)return 6406;if(K===jt)return 6407;if(K===dt)return 6408;if(K===xt)return 6409;if(K===Nt)return 6410;if(K===mn)return 6402;if(K===Un)return 34041;if(K===we)return 6403;if(K===En)return 36244;if(K===Kn)return 33319;if(K===er)return 33320;if(K===Hr)return 36248;if(K===Ir)return 36249;if(K===Ri||K===Ti||K===mi||K===Li){if((ie=g.get("WEBGL_compressed_texture_s3tc"))===null)return null;if(K===Ri)return ie.COMPRESSED_RGB_S3TC_DXT1_EXT;if(K===Ti)return ie.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(K===mi)return ie.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(K===Li)return ie.COMPRESSED_RGBA_S3TC_DXT5_EXT}if(K===tr||K===ha||K===ti||K===ua){if((ie=g.get("WEBGL_compressed_texture_pvrtc"))===null)return null;if(K===tr)return ie.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(K===ha)return ie.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(K===ti)return ie.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(K===ua)return ie.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}return K===Va?(ie=g.get("WEBGL_compressed_texture_etc1"))!==null?ie.COMPRESSED_RGB_ETC1_WEBGL:null:K===ns||K===Xo||K===qr||K===ca||K===va||K===Ms||K===rs||K===Ai||K===Na||K===sl||K===eo||K===ja||K===no||K===yo?(ie=g.get("WEBGL_compressed_texture_astc"))!==null?K:null:K===wi?L?34042:(ie=g.get("WEBGL_depth_texture"))!==null?ie.UNSIGNED_INT_24_8_WEBGL:null:void 0}}}function Eo(u,g,C,L){Rs.call(this,u,g,L),this.depthBuffer=!1,this.stencilBuffer=!1,this.numViews=C}function $s(u){Js.call(this),this.cameras=u||[]}function El(){Sn.call(this),this.type="Group"}function ps(u,g){var C=this,L=null,K=null,ie="local-floor",ce=null,ge=[],Ee=new Map,Ae=new Js;Ae.layers.enable(1),Ae.viewport=new _o;var We=new Js;We.layers.enable(2),We.viewport=new _o;var tt=new $s([Ae,We]);tt.layers.enable(1),tt.layers.enable(2);var ot=null,Oe=null;function mt(Pn){var cr=Ee.get(Pn.inputSource);cr&&(cr.targetRay&&cr.targetRay.dispatchEvent({type:Pn.type}),cr.grip&&cr.grip.dispatchEvent({type:Pn.type}))}function Tt(){Ee.forEach(function(Pn,cr){Pn.targetRay&&(Pn.targetRay.dispatchEvent({type:"disconnected",data:cr}),Pn.targetRay.visible=!1),Pn.grip&&(Pn.grip.dispatchEvent({type:"disconnected",data:cr}),Pn.grip.visible=!1)}),Ee.clear(),u.setFramebuffer(null),u.setRenderTarget(u.getRenderTarget()),Qn.stop(),C.isPresenting=!1,C.dispatchEvent({type:"sessionend"})}function At(Pn){K=Pn,Qn.setContext(L),Qn.start(),C.isPresenting=!0,C.dispatchEvent({type:"sessionstart"})}function nn(Pn){for(var cr=L.inputSources,Cr=0;Cr<ge.length;Cr++)Ee.set(cr[Cr],ge[Cr]);for(Cr=0;Cr<Pn.removed.length;Cr++){var _r=Pn.removed[Cr];(Er=Ee.get(_r))&&(Er.targetRay&&Er.targetRay.dispatchEvent({type:"disconnected",data:_r}),Er.grip&&Er.grip.dispatchEvent({type:"disconnected",data:_r}),Ee.delete(_r))}for(Cr=0;Cr<Pn.added.length;Cr++){var Er;_r=Pn.added[Cr],(Er=Ee.get(_r))&&(Er.targetRay&&Er.targetRay.dispatchEvent({type:"connected",data:_r}),Er.grip&&Er.grip.dispatchEvent({type:"connected",data:_r}))}}this.enabled=!1,this.isPresenting=!1,this.getController=function(Pn){var cr=ge[Pn];return cr===void 0&&(cr={},ge[Pn]=cr),cr.targetRay===void 0&&(cr.targetRay=new El,cr.targetRay.matrixAutoUpdate=!1,cr.targetRay.visible=!1),cr.targetRay},this.getControllerGrip=function(Pn){var cr=ge[Pn];return cr===void 0&&(cr={},ge[Pn]=cr),cr.grip===void 0&&(cr.grip=new El,cr.grip.matrixAutoUpdate=!1,cr.grip.visible=!1),cr.grip},this.setFramebufferScaleFactor=function(){},this.setReferenceSpaceType=function(Pn){ie=Pn},this.getReferenceSpace=function(){return K},this.getSession=function(){return L},this.setSession=function(Pn){if((L=Pn)!==null){L.addEventListener("select",mt),L.addEventListener("selectstart",mt),L.addEventListener("selectend",mt),L.addEventListener("squeeze",mt),L.addEventListener("squeezestart",mt),L.addEventListener("squeezeend",mt),L.addEventListener("end",Tt);var cr=g.getContextAttributes(),Cr={antialias:cr.antialias,alpha:cr.alpha,depth:cr.depth,stencil:cr.stencil},_r=new XRWebGLLayer(L,g,Cr);L.updateRenderState({baseLayer:_r}),L.requestReferenceSpace(ie).then(At),L.addEventListener("inputsourceschange",nn)}};var fn=new Kt,An=new Kt;function zn(Pn,cr){cr===null?Pn.matrixWorld.copy(Pn.matrix):Pn.matrixWorld.multiplyMatrices(cr.matrixWorld,Pn.matrix),Pn.matrixWorldInverse.getInverse(Pn.matrixWorld)}this.getCamera=function(Pn){tt.near=We.near=Ae.near=Pn.near,tt.far=We.far=Ae.far=Pn.far,ot===tt.near&&Oe===tt.far||(L.updateRenderState({depthNear:tt.near,depthFar:tt.far}),ot=tt.near,Oe=tt.far);var cr=Pn.parent,Cr=tt.cameras;zn(tt,cr);for(var _r=0;_r<Cr.length;_r++)zn(Cr[_r],cr);Pn.matrixWorld.copy(tt.matrixWorld);for(var Er=Pn.children,Vr=(_r=0,Er.length);_r<Vr;_r++)Er[_r].updateMatrixWorld(!0);return function(si,Ar,vr){fn.setFromMatrixPosition(Ar.matrixWorld),An.setFromMatrixPosition(vr.matrixWorld);var yi=fn.distanceTo(An),Bi=Ar.projectionMatrix.elements,ya=vr.projectionMatrix.elements,sa=Bi[14]/(Bi[10]-1),oa=Bi[14]/(Bi[10]+1),$a=(Bi[9]+1)/Bi[5],ta=(Bi[9]-1)/Bi[5],Mn=(Bi[8]-1)/Bi[0],Wn=(ya[8]+1)/ya[0],ai=sa*Mn,Zr=sa*Wn,Ga=yi/(Wn-Mn),ia=Ga*-Mn;Ar.matrixWorld.decompose(si.position,si.quaternion,si.scale),si.translateX(ia),si.translateZ(Ga),si.matrixWorld.compose(si.position,si.quaternion,si.scale),si.matrixWorldInverse.getInverse(si.matrixWorld);var Tr=sa+Ga,la=oa+Ga,qa=ai-ia,lr=yi-ia+Zr,Zi=$a*oa/la*Tr,$i=ta*oa/la*Tr;si.projectionMatrix.makePerspective(qa,lr,Zi,$i,Tr,la)}(tt,Ae,We),tt};var Dn=null,Qn=new Dh;Qn.setAnimationLoop(function(Pn,cr){if((ce=cr.getViewerPose(K))!==null){var Cr=ce.views,_r=L.renderState.baseLayer;u.setFramebuffer(_r.framebuffer);for(var Er=0;Er<Cr.length;Er++){var Vr=Cr[Er],si=_r.getViewport(Vr),Ar=tt.cameras[Er];Ar.matrix.fromArray(Vr.transform.matrix),Ar.projectionMatrix.fromArray(Vr.projectionMatrix),Ar.viewport.set(si.x,si.y,si.width,si.height),Er===0&&tt.matrix.copy(Ar.matrix)}}var vr=L.inputSources;for(Er=0;Er<ge.length;Er++){var yi=ge[Er],Bi=vr[Er],ya=null,sa=null;Bi&&(yi.targetRay&&(ya=cr.getPose(Bi.targetRaySpace,K))!==null&&(yi.targetRay.matrix.fromArray(ya.transform.matrix),yi.targetRay.matrix.decompose(yi.targetRay.position,yi.targetRay.rotation,yi.targetRay.scale)),yi.grip&&Bi.gripSpace&&(sa=cr.getPose(Bi.gripSpace,K))!==null&&(yi.grip.matrix.fromArray(sa.transform.matrix),yi.grip.matrix.decompose(yi.grip.position,yi.grip.rotation,yi.grip.scale))),yi.targetRay&&(yi.targetRay.visible=ya!==null),yi.grip&&(yi.grip.visible=sa!==null)}Dn&&Dn(Pn,cr)}),this.setAnimationLoop=function(Pn){Dn=Pn},this.dispose=function(){}}function cu(u){var g=(u=u||{}).canvas!==void 0?u.canvas:document.createElementNS("http://www.w3.org/1999/xhtml","canvas"),C=u.context!==void 0?u.context:null,L=u.alpha!==void 0&&u.alpha,K=u.depth===void 0||u.depth,ie=u.stencil===void 0||u.stencil,ce=u.antialias!==void 0&&u.antialias,ge=u.premultipliedAlpha===void 0||u.premultipliedAlpha,Ee=u.preserveDrawingBuffer!==void 0&&u.preserveDrawingBuffer,Ae=u.powerPreference!==void 0?u.powerPreference:"default",We=u.failIfMajorPerformanceCaveat!==void 0&&u.failIfMajorPerformanceCaveat,tt=null,ot=null;this.domElement=g,this.debug={checkShaderErrors:!0},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.gammaFactor=2,this.outputEncoding=bn,this.physicallyCorrectLights=!1,this.toneMapping=Ke,this.toneMappingExposure=1,this.toneMappingWhitePoint=1,this.maxMorphTargets=8,this.maxMorphNormals=4;var Oe,mt,Tt,At,nn,fn,An,zn,Dn,Qn,Pn,cr,Cr,_r,Er,Vr,si,Ar,vr=this,yi=!1,Bi=null,ya=0,sa=0,oa=null,$a=null,ta=-1,Mn={geometry:null,program:null,wireframe:!1},Wn=null,ai=null,Zr=new _o,Ga=new _o,ia=null,Tr=g.width,la=g.height,qa=1,lr=null,Zi=null,$i=new _o(0,0,Tr,la),Ha=new _o(0,0,Tr,la),Ei=!1,mo=new Yc,go=new function(){var qt=this,On=null,In=0,or=!1,pr=!1,Pi=new Wo,Ni=new Vo,Di={value:null,needsUpdate:!1};function Hi(){Di.value!==On&&(Di.value=On,Di.needsUpdate=0<In),qt.numPlanes=In,qt.numIntersection=0}function Ur(gi,Ma,ka,m){var d=gi!==null?gi.length:0,y=null;if(d!==0){if(y=Di.value,m!==!0||y===null){var T=ka+4*d,P=Ma.matrixWorldInverse;Ni.getNormalMatrix(P),(y===null||y.length<T)&&(y=new Float32Array(T));for(var Y=0,te=ka;Y!==d;++Y,te+=4)Pi.copy(gi[Y]).applyMatrix4(P,Ni),Pi.normal.toArray(y,te),y[te+3]=Pi.constant}Di.value=y,Di.needsUpdate=!0}return qt.numPlanes=d,y}this.uniform=Di,this.numPlanes=0,this.numIntersection=0,this.init=function(gi,Ma,ka){var m=gi.length!==0||Ma||In!==0||or;return or=Ma,On=Ur(gi,ka,0),In=gi.length,m},this.beginShadows=function(){pr=!0,Ur(null)},this.endShadows=function(){pr=!1,Hi()},this.setState=function(gi,Ma,ka,m,d,y){if(!or||gi===null||gi.length===0||pr&&!ka)pr?Ur(null):Hi();else{var T=pr?0:In,P=4*T,Y=d.clippingState||null;Di.value=Y,Y=Ur(gi,m,P,y);for(var te=0;te!==P;++te)Y[te]=On[te];d.clippingState=Y,this.numIntersection=Ma?this.numPlanes:0,this.numPlanes+=T}}},Bs=!1,Pu=!1,uo=new Ki,tl=new Kt;function To(){return oa===null?qa:1}try{var Fo={alpha:L,depth:K,stencil:ie,antialias:ce,premultipliedAlpha:ge,preserveDrawingBuffer:Ee,powerPreference:Ae,failIfMajorPerformanceCaveat:We,xrCompatible:!0};g.addEventListener("webglcontextlost",qu,!1),g.addEventListener("webglcontextrestored",Od,!1);var ls="webgl";if(u.webgl2===!0&&(ls="webgl2"),(Oe=C||g.getContext(ls,Fo)||g.getContext("experimental-webgl",Fo))===null)throw g.getContext("webgl")!==null?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.");u.retver=ls,Oe.getShaderPrecisionFormat===void 0&&(Oe.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}})}catch(qt){throw console.error("THREE.WebGLRenderer: "+qt.message),qt}function Ll(){mt=new function(qt){var On={};return{get:function(In){if(On[In]!==void 0)return On[In];var or;switch(In){case"WEBGL_depth_texture":or=qt.getExtension("WEBGL_depth_texture")||qt.getExtension("MOZ_WEBGL_depth_texture")||qt.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":or=qt.getExtension("EXT_texture_filter_anisotropic")||qt.getExtension("MOZ_EXT_texture_filter_anisotropic")||qt.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":or=qt.getExtension("WEBGL_compressed_texture_s3tc")||qt.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||qt.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":or=qt.getExtension("WEBGL_compressed_texture_pvrtc")||qt.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:or=qt.getExtension(In)}return or===null&&console.warn("THREE.WebGLRenderer: "+In+" extension not supported."),On[In]=or}}}(Oe),(Tt=new function(qt,On,In){var or;function pr(te){if(te==="highp"){if(0<qt.getShaderPrecisionFormat(35633,36338).precision&&0<qt.getShaderPrecisionFormat(35632,36338).precision)return"highp";te="mediump"}return te==="mediump"&&0<qt.getShaderPrecisionFormat(35633,36337).precision&&0<qt.getShaderPrecisionFormat(35632,36337).precision?"mediump":"lowp"}var Pi=typeof WebGL2RenderingContext!="undefined"&&qt instanceof WebGL2RenderingContext||typeof WebGL2ComputeRenderingContext!="undefined"&&qt instanceof WebGL2ComputeRenderingContext,Ni=In.precision!==void 0?In.precision:"highp",Di=pr(Ni);Di!==Ni&&(console.warn("THREE.WebGLRenderer:",Ni,"not supported, using",Di,"instead."),Ni=Di);var Hi=In.logarithmicDepthBuffer===!0,Ur=qt.getParameter(34930),gi=qt.getParameter(35660),Ma=qt.getParameter(3379),ka=qt.getParameter(34076),m=qt.getParameter(34921),d=qt.getParameter(36347),y=qt.getParameter(36348),T=qt.getParameter(36349),P=0<gi,Y=Pi||!!On.get("OES_texture_float");return{isWebGL2:Pi,getMaxAnisotropy:function(){if(or!==void 0)return or;var te=On.get("EXT_texture_filter_anisotropic");return or=te!==null?qt.getParameter(te.MAX_TEXTURE_MAX_ANISOTROPY_EXT):0},getMaxPrecision:pr,precision:Ni,logarithmicDepthBuffer:Hi,maxTextures:Ur,maxVertexTextures:gi,maxTextureSize:Ma,maxCubemapSize:ka,maxAttributes:m,maxVertexUniforms:d,maxVaryings:y,maxFragmentUniforms:T,vertexTextures:P,floatFragmentTextures:Y,floatVertexTextures:P&&Y,maxSamples:Pi?qt.getParameter(36183):0}}(Oe,mt,u)).isWebGL2===!1&&(mt.get("WEBGL_depth_texture"),mt.get("OES_texture_float"),mt.get("OES_texture_half_float"),mt.get("OES_texture_half_float_linear"),mt.get("OES_standard_derivatives"),mt.get("OES_element_index_uint"),mt.get("ANGLE_instanced_arrays")),mt.get("OES_texture_float_linear"),Ar=new _s(0,mt,Tt),(At=new ic(Oe,mt,Tt)).scissor(Ga.copy(Ha).multiplyScalar(qa).floor()),At.viewport(Zr.copy($i).multiplyScalar(qa).floor()),nn=new function(qt){var On={frame:0,calls:0,triangles:0,points:0,lines:0};return{memory:{geometries:0,textures:0},render:On,programs:null,autoReset:!0,reset:function(){On.frame++,On.calls=0,On.triangles=0,On.points=0,On.lines=0},update:function(In,or,pr){switch(pr=pr||1,On.calls++,or){case 4:On.triangles+=pr*(In/3);break;case 1:On.lines+=pr*(In/2);break;case 3:On.lines+=pr*(In-1);break;case 2:On.lines+=pr*In;break;case 0:On.points+=pr*In;break;default:console.error("THREE.WebGLInfo: Unknown draw mode:",or)}}}},fn=new function(){var qt=new WeakMap;return{get:function(On){var In=qt.get(On);return In===void 0&&(In={},qt.set(On,In)),In},remove:function(On){qt.delete(On)},update:function(On,In,or){qt.get(On)[In]=or},dispose:function(){qt=new WeakMap}}},An=new Us(Oe,mt,At,fn,Tt,Ar,nn),zn=new function(qt,On){var In=On.isWebGL2,or=new WeakMap;return{get:function(pr){return pr.isInterleavedBufferAttribute&&(pr=pr.data),or.get(pr)},remove:function(pr){pr.isInterleavedBufferAttribute&&(pr=pr.data);var Pi=or.get(pr);Pi&&(qt.deleteBuffer(Pi.buffer),or.delete(pr))},update:function(pr,Pi){pr.isInterleavedBufferAttribute&&(pr=pr.data);var Ni,Di,Hi,Ur,gi,Ma=or.get(pr);Ma===void 0?or.set(pr,function(ka,m){var d=ka.array,y=ka.usage,T=qt.createBuffer();qt.bindBuffer(m,T),qt.bufferData(m,d,y),ka.onUploadCallback();var P=5126;return d instanceof Float32Array?P=5126:d instanceof Float64Array?console.warn("THREE.WebGLAttributes: Unsupported data buffer format: Float64Array."):d instanceof Uint16Array?P=5123:d instanceof Int16Array?P=5122:d instanceof Uint32Array?P=5125:d instanceof Int32Array?P=5124:d instanceof Int8Array?P=5120:d instanceof Uint8Array&&(P=5121),{buffer:T,type:P,bytesPerElement:d.BYTES_PER_ELEMENT,version:ka.version}}(pr,Pi)):Ma.version<pr.version&&(Ni=Ma.buffer,Hi=Pi,Ur=(Di=pr).array,gi=Di.updateRange,qt.bindBuffer(Hi,Ni),gi.count===-1?qt.bufferSubData(Hi,0,Ur):(In?qt.bufferSubData(Hi,gi.offset*Ur.BYTES_PER_ELEMENT,Ur,gi.offset,gi.count):qt.bufferSubData(Hi,gi.offset*Ur.BYTES_PER_ELEMENT,Ur.subarray(gi.offset,gi.offset+gi.count)),gi.count=-1),Ma.version=pr.version)}}}(Oe,Tt),Dn=new function(qt,On,In){var or=new WeakMap,pr=new WeakMap;function Pi(Di){var Hi=Di.target,Ur=or.get(Hi);for(var gi in Ur.index!==null&&On.remove(Ur.index),Ur.attributes)On.remove(Ur.attributes[gi]);Hi.removeEventListener("dispose",Pi),or.delete(Hi);var Ma=pr.get(Ur);Ma&&(On.remove(Ma),pr.delete(Ur)),In.memory.geometries--}function Ni(Di){var Hi=[],Ur=Di.index,gi=Di.attributes.position,Ma=0;if(Ur!==null){var ka=Ur.array;Ma=Ur.version;for(var m=0,d=ka.length;m<d;m+=3){var y=ka[m+0],T=ka[m+1],P=ka[m+2];Hi.push(y,T,T,P,P,y)}}else for(ka=gi.array,Ma=gi.version,m=0,d=ka.length/3-1;m<d;m+=3)y=m+0,T=m+1,P=m+2,Hi.push(y,T,T,P,P,y);var Y=new(65535<Po(Hi)?zi:da)(Hi,1);Y.version=Ma,On.update(Y,34963);var te=pr.get(Di);te&&On.remove(te),pr.set(Di,Y)}return{get:function(Di,Hi){var Ur=or.get(Hi);return Ur||(Hi.addEventListener("dispose",Pi),Hi.isBufferGeometry?Ur=Hi:Hi.isGeometry&&(Hi._bufferGeometry===void 0&&(Hi._bufferGeometry=new qi().setFromObject(Di)),Ur=Hi._bufferGeometry),or.set(Hi,Ur),In.memory.geometries++,Ur)},update:function(Di){var Hi=Di.index,Ur=Di.attributes;for(var gi in Hi!==null&&On.update(Hi,34963),Ur)On.update(Ur[gi],34962);var Ma=Di.morphAttributes;for(var gi in Ma)for(var ka=Ma[gi],m=0,d=ka.length;m<d;m++)On.update(ka[m],34962)},getWireframeAttribute:function(Di){var Hi=pr.get(Di);if(Hi){var Ur=Di.index;Ur!==null&&Hi.version<Ur.version&&Ni(Di)}else Ni(Di);return pr.get(Di)}}}(0,zn,nn),Qn=new function(qt,On,In,or){var pr={};return{update:function(Pi){var Ni=or.render.frame,Di=Pi.geometry,Hi=On.get(Pi,Di);return pr[Hi.id]!==Ni&&(Di.isGeometry&&Hi.updateFromObject(Pi),On.update(Hi),pr[Hi.id]=Ni),Pi.isInstancedMesh&&In.update(Pi.instanceMatrix,34962),Hi},dispose:function(){pr={}}}}(0,Dn,zn,nn),Er=new function(qt){var On={},In=new Float32Array(8);return{update:function(or,pr,Pi,Ni){var Di=or.morphTargetInfluences,Hi=Di===void 0?0:Di.length,Ur=On[pr.id];if(Ur===void 0){Ur=[];for(var gi=0;gi<Hi;gi++)Ur[gi]=[gi,0];On[pr.id]=Ur}var Ma=Pi.morphTargets&&pr.morphAttributes.position,ka=Pi.morphNormals&&pr.morphAttributes.normal;for(gi=0;gi<Hi;gi++)(d=Ur[gi])[1]!==0&&(Ma&&pr.deleteAttribute("morphTarget"+gi),ka&&pr.deleteAttribute("morphNormal"+gi));for(gi=0;gi<Hi;gi++)(d=Ur[gi])[0]=gi,d[1]=Di[gi];Ur.sort(zd);var m=0;for(gi=0;gi<8;gi++){var d;if(d=Ur[gi]){var y=d[0],T=d[1];if(T){Ma&&pr.setAttribute("morphTarget"+gi,Ma[y]),ka&&pr.setAttribute("morphNormal"+gi,ka[y]),m+=In[gi]=T;continue}}In[gi]=0}var P=pr.morphTargetsRelative?1:1-m;Ni.getUniforms().setValue(qt,"morphTargetBaseInfluence",P),Ni.getUniforms().setValue(qt,"morphTargetInfluences",In)}}}(Oe),Pn=new Fi(vr,mt,Tt),cr=new function(){var qt=new WeakMap;function On(In){var or=In.target;or.removeEventListener("dispose",On),qt.delete(or)}return{get:function(In,or){var pr,Pi=qt.get(In);return Pi===void 0?(pr=new ji,qt.set(In,new WeakMap),qt.get(In).set(or,pr),In.addEventListener("dispose",On)):(pr=Pi.get(or))===void 0&&(pr=new ji,Pi.set(or,pr)),pr},dispose:function(){qt=new WeakMap}}},Cr=new function(){var qt=new WeakMap;function On(In){var or=In.target;or.removeEventListener("dispose",On),qt.delete(or)}return{get:function(In,or){var pr;return qt.has(In)===!1?(pr=new Gl,qt.set(In,new WeakMap),qt.get(In).set(or,pr),In.addEventListener("dispose",On)):qt.get(In).has(or)===!1?(pr=new Gl,qt.get(In).set(or,pr)):pr=qt.get(In).get(or),pr},dispose:function(){qt=new WeakMap}}},_r=new wo(vr,At,Qn,ge),Vr=new function(qt,On,In,or){var pr,Pi=or.isWebGL2;this.setMode=function(Ni){pr=Ni},this.render=function(Ni,Di){qt.drawArrays(pr,Ni,Di),In.update(Di,pr)},this.renderInstances=function(Ni,Di,Hi,Ur){if(Ur!==0){var gi,Ma;if(Pi)gi=qt,Ma="drawArraysInstanced";else if(Ma="drawArraysInstancedANGLE",(gi=On.get("ANGLE_instanced_arrays"))===null)return void console.error("THREE.WebGLBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");gi[Ma](pr,Di,Hi,Ur),In.update(Hi,pr,Ur)}}}(Oe,mt,nn,Tt),si=new function(qt,On,In,or){var pr,Pi,Ni,Di=or.isWebGL2;this.setMode=function(Hi){pr=Hi},this.setIndex=function(Hi){Pi=Hi.type,Ni=Hi.bytesPerElement},this.render=function(Hi,Ur){qt.drawElements(pr,Ur,Pi,Hi*Ni),In.update(Ur,pr)},this.renderInstances=function(Hi,Ur,gi,Ma){if(Ma!==0){var ka,m;if(Di)ka=qt,m="drawElementsInstanced";else if(m="drawElementsInstancedANGLE",(ka=On.get("ANGLE_instanced_arrays"))===null)return void console.error("THREE.WebGLIndexedBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");ka[m](pr,gi,Pi,Ur*Ni,Ma),In.update(gi,pr,Ma)}}}(Oe,mt,nn,Tt),nn.programs=Pn.programs,vr.capabilities=Tt,vr.extensions=mt,vr.properties=fn,vr.renderLists=cr,vr.state=At,vr.info=nn}Ll();var us=new ps(vr,Oe);this.xr=us;var ml=new function(qt,On){var In,or,pr,Pi,Ni,Di,Hi,Ur=qt.extensions,gi=qt.properties,Ma=0;function ka(m){return m.isArrayCamera?m.cameras:(Ni[0]=m,Ni)}this.isAvailable=function(){if(Hi===void 0){var m=Ur.get("OVR_multiview2");if(Hi=m!==null&&On.getContextAttributes().antialias===!1){Ma=On.getParameter(m.MAX_VIEWS_OVR),In=new Eo(0,0,2),Di=new Lr,Pi=[],pr=[],Ni=[];for(var d=0;d<Ma;d++)Pi[d]=new Ki,pr[d]=new Vo}}return Hi},this.attachCamera=function(m){(function(d){if(d.isArrayCamera===void 0)return!0;var y=d.cameras;if(y.length>Ma)return!1;for(var T=1,P=y.length;T<P;T++)if(y[0].viewport.z!==y[T].viewport.z||y[0].viewport.w!==y[T].viewport.w)return!1;return!0})(m)!==!1&&(or=qt.getRenderTarget(),function(d){if(or?Di.set(or.width,or.height):qt.getDrawingBufferSize(Di),d.isArrayCamera){var y=d.cameras[0].viewport;In.setSize(y.z,y.w),In.setNumViews(d.cameras.length)}else In.setSize(Di.x,Di.y),In.setNumViews(2)}(m),qt.setRenderTarget(In))},this.detachCamera=function(m){In===qt.getRenderTarget()&&(qt.setRenderTarget(or),function(d){var y=In,T=y.numViews,P=gi.get(y).__webglViewFramebuffers,Y=y.width,te=y.height;if(d.isArrayCamera)for(var se=0;se<T;se++){var pe=d.cameras[se].viewport,xe=pe.x,Pe=pe.y,je=xe+pe.z,$e=Pe+pe.w;On.bindFramebuffer(36008,P[se]),On.blitFramebuffer(0,0,Y,te,xe,Pe,je,$e,16384,9728)}else On.bindFramebuffer(36008,P[0]),On.blitFramebuffer(0,0,Y,te,0,0,Di.x,Di.y,16384,9728)}(m))},this.updateCameraProjectionMatricesUniform=function(m,d){for(var y=ka(m),T=0;T<y.length;T++)Pi[T].copy(y[T].projectionMatrix);d.setValue(On,"projectionMatrices",Pi)},this.updateCameraViewMatricesUniform=function(m,d){for(var y=ka(m),T=0;T<y.length;T++)Pi[T].copy(y[T].matrixWorldInverse);d.setValue(On,"viewMatrices",Pi)},this.updateObjectMatricesUniforms=function(m,d,y){for(var T=ka(d),P=0;P<T.length;P++)Pi[P].multiplyMatrices(T[P].matrixWorldInverse,m.matrixWorld),pr[P].getNormalMatrix(Pi[P]);y.setValue(On,"modelViewMatrices",Pi),y.setValue(On,"normalMatrices",pr)}}(vr,Oe),Ru=new gc(vr,Qn,Tt.maxTextureSize);function qu(qt){qt.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),yi=!0}function Od(){console.log("THREE.WebGLRenderer: Context Restored."),yi=!1,Ll()}function Fd(qt){var On,In=qt.target;In.removeEventListener("dispose",Fd),qp(On=In),fn.remove(On)}function qp(qt){var On=fn.get(qt).program;(qt.program=void 0)!==On&&Pn.releaseProgram(On)}this.shadowMap=Ru,this.getContext=function(){return Oe},this.getContextAttributes=function(){return Oe.getContextAttributes()},this.forceContextLoss=function(){var qt=mt.get("WEBGL_lose_context");qt&&qt.loseContext()},this.forceContextRestore=function(){var qt=mt.get("WEBGL_lose_context");qt&&qt.restoreContext()},this.getPixelRatio=function(){return qa},this.setPixelRatio=function(qt){qt!==void 0&&(qa=qt,this.setSize(Tr,la,!1))},this.getSize=function(qt){return qt===void 0&&(console.warn("WebGLRenderer: .getsize() now requires a Vector2 as an argument"),qt=new Lr),qt.set(Tr,la)},this.setSize=function(qt,On,In){us.isPresenting?console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting."):(Tr=qt,la=On,g.width=Math.floor(qt*qa),g.height=Math.floor(On*qa),In!==!1&&(g.style.width=qt+"px",g.style.height=On+"px"),this.setViewport(0,0,qt,On))},this.getDrawingBufferSize=function(qt){return qt===void 0&&(console.warn("WebGLRenderer: .getdrawingBufferSize() now requires a Vector2 as an argument"),qt=new Lr),qt.set(Tr*qa,la*qa).floor()},this.setDrawingBufferSize=function(qt,On,In){Tr=qt,la=On,qa=In,g.width=Math.floor(qt*In),g.height=Math.floor(On*In),this.setViewport(0,0,qt,On)},this.getCurrentViewport=function(qt){return qt===void 0&&(console.warn("WebGLRenderer: .getCurrentViewport() now requires a Vector4 as an argument"),qt=new _o),qt.copy(Zr)},this.getViewport=function(qt){return qt.copy($i)},this.setViewport=function(qt,On,In,or){qt.isVector4?$i.set(qt.x,qt.y,qt.z,qt.w):$i.set(qt,On,In,or),At.viewport(Zr.copy($i).multiplyScalar(qa).floor())},this.getScissor=function(qt){return qt.copy(Ha)},this.setScissor=function(qt,On,In,or){qt.isVector4?Ha.set(qt.x,qt.y,qt.z,qt.w):Ha.set(qt,On,In,or),At.scissor(Ga.copy(Ha).multiplyScalar(qa).floor())},this.getScissorTest=function(){return Ei},this.setScissorTest=function(qt){At.setScissorTest(Ei=qt)},this.setOpaqueSort=function(qt){lr=qt},this.setTransparentSort=function(qt){Zi=qt},this.getClearColor=function(){return _r.getClearColor()},this.setClearColor=function(){_r.setClearColor.apply(_r,arguments)},this.getClearAlpha=function(){return _r.getClearAlpha()},this.setClearAlpha=function(){_r.setClearAlpha.apply(_r,arguments)},this.clear=function(qt,On,In){var or=0;qt!==void 0&&!qt||(or|=16384),On!==void 0&&!On||(or|=256),In!==void 0&&!In||(or|=1024),Oe.clear(or)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){g.removeEventListener("webglcontextlost",qu,!1),g.removeEventListener("webglcontextrestored",Od,!1),cr.dispose(),Cr.dispose(),fn.dispose(),Qn.dispose(),us.dispose(),Qh.stop()},this.renderBufferImmediate=function(qt,On){At.initAttributes();var In=fn.get(qt);qt.hasPositions&&!In.position&&(In.position=Oe.createBuffer()),qt.hasNormals&&!In.normal&&(In.normal=Oe.createBuffer()),qt.hasUvs&&!In.uv&&(In.uv=Oe.createBuffer()),qt.hasColors&&!In.color&&(In.color=Oe.createBuffer());var or=On.getAttributes();qt.hasPositions&&(Oe.bindBuffer(34962,In.position),Oe.bufferData(34962,qt.positionArray,35048),At.enableAttribute(or.position),Oe.vertexAttribPointer(or.position,3,5126,!1,0,0)),qt.hasNormals&&(Oe.bindBuffer(34962,In.normal),Oe.bufferData(34962,qt.normalArray,35048),At.enableAttribute(or.normal),Oe.vertexAttribPointer(or.normal,3,5126,!1,0,0)),qt.hasUvs&&(Oe.bindBuffer(34962,In.uv),Oe.bufferData(34962,qt.uvArray,35048),At.enableAttribute(or.uv),Oe.vertexAttribPointer(or.uv,2,5126,!1,0,0)),qt.hasColors&&(Oe.bindBuffer(34962,In.color),Oe.bufferData(34962,qt.colorArray,35048),At.enableAttribute(or.color),Oe.vertexAttribPointer(or.color,3,5126,!1,0,0)),At.disableUnusedAttributes(),Oe.drawArrays(4,0,qt.count),qt.count=0};var Df=new Gn;this.renderBufferDirect=function(qt,On,In,or,pr,Pi){On===null&&(On=Df);var Ni=pr.isMesh&&pr.matrixWorld.determinant()<0,Di=Af(qt,On,or,pr);At.setMaterial(or,Ni);var Hi=!1;Mn.geometry===In.id&&Mn.program===Di.id&&Mn.wireframe===(or.wireframe===!0)||(Mn.geometry=In.id,Mn.program=Di.id,Mn.wireframe=or.wireframe===!0,Hi=!0),(or.morphTargets||or.morphNormals)&&(Er.update(pr,In,or,Di),Hi=!0);var Ur=In.index,gi=In.attributes.position;if(Ur===null){if(gi===void 0||gi.count===0)return}else if(Ur.count===0)return;var Ma,ka=1;or.wireframe===!0&&(Ur=Dn.getWireframeAttribute(In),ka=2);var m=Vr;Ur!==null&&((Ma=zn.get(Ur))?(m=si).setIndex(Ma):(console.log("mx attribute == null"),Ur=null)),Hi&&(function(Pe,je,$e,ut){if(Tt.isWebGL2!==!1||!Pe.isInstancedMesh&&!je.isInstancedBufferGeometry||mt.get("ANGLE_instanced_arrays")!==null){At.initAttributes();var bt=je.attributes,kt=ut.getAttributes(),zt=$e.defaultAttributeValues;for(var Xt in kt){var wn=kt[Xt];if(0<=wn){var Ln=bt[Xt];if(Ln!==void 0){var hn=Ln.normalized,Jt=Ln.itemSize;if((Sr=zn.get(Ln))===void 0)continue;var Nn=Sr.buffer,fr=Sr.type,wr=Sr.bytesPerElement;if(Ln.isInterleavedBufferAttribute){var Rr=Ln.data,$r=Rr.stride,mr=Ln.offset;Rr&&Rr.isInstancedInterleavedBuffer?(At.enableAttributeAndDivisor(wn,Rr.meshPerAttribute),je.maxInstancedCount===void 0&&(je.maxInstancedCount=Rr.meshPerAttribute*Rr.count)):At.enableAttribute(wn),Oe.bindBuffer(34962,Nn),Oe.vertexAttribPointer(wn,Jt,fr,hn,$r*wr,mr*wr)}else Ln.isInstancedBufferAttribute?(At.enableAttributeAndDivisor(wn,Ln.meshPerAttribute),je.maxInstancedCount===void 0&&(je.maxInstancedCount=Ln.meshPerAttribute*Ln.count)):At.enableAttribute(wn),Oe.bindBuffer(34962,Nn),Oe.vertexAttribPointer(wn,Jt,fr,hn,0,0)}else if(Xt==="instanceMatrix"){var Sr;if((Sr=zn.get(Pe.instanceMatrix))===void 0)continue;Nn=Sr.buffer,fr=Sr.type,At.enableAttributeAndDivisor(wn+0,1),At.enableAttributeAndDivisor(wn+1,1),At.enableAttributeAndDivisor(wn+2,1),At.enableAttributeAndDivisor(wn+3,1),Oe.bindBuffer(34962,Nn),Oe.vertexAttribPointer(wn+0,4,fr,!1,64,0),Oe.vertexAttribPointer(wn+1,4,fr,!1,64,16),Oe.vertexAttribPointer(wn+2,4,fr,!1,64,32),Oe.vertexAttribPointer(wn+3,4,fr,!1,64,48)}else if(zt!==void 0){var Wr=zt[Xt];if(Wr!==void 0)switch(Wr.length){case 2:Oe.vertexAttrib2fv(wn,Wr);break;case 3:Oe.vertexAttrib3fv(wn,Wr);break;case 4:Oe.vertexAttrib4fv(wn,Wr);break;default:Oe.vertexAttrib1fv(wn,Wr)}}}}At.disableUnusedAttributes()}}(pr,In,or,Di),Ur!==null&&Oe.bindBuffer(34963,Ma.buffer));var d=Ur!==null?Ur.count:gi.count,y=In.drawRange.start*ka,T=In.drawRange.count*ka,P=Pi!==null?Pi.start*ka:0,Y=Pi!==null?Pi.count*ka:1/0,te=Math.max(y,P),se=Math.min(d,y+T,P+Y)-1,pe=Math.max(0,se-te+1);if(pe!==0){if(pr.isMesh)or.wireframe===!0?(At.setLineWidth(or.wireframeLinewidth*To()),m.setMode(1)):m.setMode(4);else if(pr.isLine){var xe=or.linewidth;xe===void 0&&(xe=1),At.setLineWidth(xe*To()),pr.isLineSegments?m.setMode(1):pr.isLineLoop?m.setMode(2):m.setMode(3)}else pr.isPoints?m.setMode(0):pr.isSprite&&m.setMode(4);pr.isInstancedMesh?m.renderInstances(In,te,pe,pr.count):In.isInstancedBufferGeometry?m.renderInstances(In,te,pe,In.maxInstancedCount):m.render(te,pe)}},this.compile=function(qt,On){(ot=Cr.get(qt,On)).init(),qt.traverse(function(or){or.isLight&&(ot.pushLight(or),or.castShadow&&ot.pushShadow(or))}),ot.setupLights(On);var In={};qt.traverse(function(or){if(or.material)if(Array.isArray(or.material))for(var pr=0;pr<or.material.length;pr++)or.material[pr].uuid in In==0&&(Ap(or.material[pr],qt,or),In[or.material[pr].uuid]=!0);else or.material.uuid in In==0&&(Ap(or.material,qt,or),In[or.material.uuid]=!0)})};var Tp=null,Qh=new Dh;function Dp(qt,On,In,or){for(var pr=0,Pi=qt.length;pr<Pi;pr++){var Ni=qt[pr],Di=Ni.object,Hi=Ni.geometry,Ur=or===void 0?Ni.material:or,gi=Ni.group;if(In.isArrayCamera)if(ai=In,us.enabled&&ml.isAvailable())xc(Di,On,In,Hi,Ur,gi);else for(var Ma=In.cameras,ka=0,m=Ma.length;ka<m;ka++){var d=Ma[ka];Di.layers.test(d.layers)&&(At.viewport(Zr.copy(d.viewport)),ot.setupLights(d),xc(Di,On,d,Hi,Ur,gi))}else ai=null,xc(Di,On,In,Hi,Ur,gi)}}function xc(qt,On,In,or,pr,Pi){if(qt.onBeforeRender(vr,On,In,or,pr,Pi),ot=Cr.get(On,ai||In),qt.modelViewMatrix.multiplyMatrices(In.matrixWorldInverse,qt.matrixWorld),qt.normalMatrix.getNormalMatrix(qt.modelViewMatrix),qt.isImmediateRenderObject){var Ni=Af(In,On,pr,qt);At.setMaterial(pr),Mn.geometry=null,Mn.program=null,Mn.wireframe=!1,Di=Ni,qt.render(function(Hi){vr.renderBufferImmediate(Hi,Di)})}else vr.renderBufferDirect(In,On,or,pr,qt,Pi);var Di;qt.onAfterRender(vr,On,In,or,pr,Pi),ot=Cr.get(On,ai||In)}function Ap(qt,On,In){var or=fn.get(qt),pr=ot.state.lights,Pi=ot.state.shadowsArray,Ni=pr.state.version,Di=Pn.getParameters(qt,pr.state,Pi,On,go.numPlanes,go.numIntersection,In),Hi=Pn.getProgramCacheKey(Di),Ur=or.program,gi=!0;if(Ur===void 0)qt.addEventListener("dispose",Fd);else if(Ur.cacheKey!==Hi)qp(qt);else if(or.lightsStateVersion!==Ni)or.lightsStateVersion=Ni,gi=!1;else{if(Di.shaderID!==void 0)return;gi=!1}gi&&(Ur=Pn.acquireProgram(Di,Hi),or.program=Ur,or.uniforms=Di.uniforms,or.environment=qt.isMeshStandardMaterial?On.environment:null,or.outputEncoding=vr.outputEncoding,qt.program=Ur);var Ma=Ur.getAttributes();if(qt.morphTargets)for(var ka=qt.numSupportedMorphTargets=0;ka<vr.maxMorphTargets;ka++)0<=Ma["morphTarget"+ka]&&qt.numSupportedMorphTargets++;if(qt.morphNormals)for(ka=qt.numSupportedMorphNormals=0;ka<vr.maxMorphNormals;ka++)0<=Ma["morphNormal"+ka]&&qt.numSupportedMorphNormals++;var m,d=or.uniforms;(qt.isShaderMaterial||qt.isRawShaderMaterial)&&qt.clipping!==!0||(or.numClippingPlanes=go.numPlanes,or.numIntersection=go.numIntersection,d.clippingPlanes=go.uniform),or.fog=On.fog,or.needsLights=(m=qt).isMeshLambertMaterial||m.isMeshToonMaterial||m.isMeshPhongMaterial||m.isMeshStandardMaterial||m.isShadowMaterial||m.isShaderMaterial&&m.lights===!0,or.lightsStateVersion=Ni,or.needsLights&&(d.ambientLightColor.value=pr.state.ambient,d.lightProbe.value=pr.state.probe,d.directionalLights.value=pr.state.directional,d.spotLights.value=pr.state.spot,d.rectAreaLights.value=pr.state.rectArea,d.pointLights.value=pr.state.point,d.hemisphereLights.value=pr.state.hemi,d.directionalShadowMap.value=pr.state.directionalShadowMap,d.directionalShadowMatrix.value=pr.state.directionalShadowMatrix,d.spotShadowMap.value=pr.state.spotShadowMap,d.spotShadowMatrix.value=pr.state.spotShadowMatrix,d.pointShadowMap.value=pr.state.pointShadowMap,d.pointShadowMatrix.value=pr.state.pointShadowMatrix);var y=or.program.getUniforms(),T=pn.seqWithValue(y.seq,d);or.uniformsList=T}function Af(qt,On,In,or){An.resetTextureUnits();var pr=On.fog,Pi=In.isMeshStandardMaterial?On.environment:null,Ni=fn.get(In),Di=ot.state.lights;if(Bs&&(Pu||qt!==Wn)){var Hi=qt===Wn&&In.id===ta;go.setState(In.clippingPlanes,In.clipIntersection,In.clipShadows,qt,Ni,Hi)}In.version===Ni.__version?(Ni.program===void 0||In.fog&&Ni.fog!==pr||Ni.environment!==Pi||Ni.needsLights&&Ni.lightsStateVersion!==Di.state.version||Ni.numClippingPlanes!==void 0&&(Ni.numClippingPlanes!==go.numPlanes||Ni.numIntersection!==go.numIntersection)||Ni.outputEncoding!==vr.outputEncoding)&&Ap(In,On,or):(fn.update(In,"uniforms",In.uniforms),Ap(In,On,or),Ni.__version=In.version);var Ur,gi,Ma,ka,m,d,y,T,P,Y,te,se,pe=!1,xe=!1,Pe=!1,je=Ni.program,$e=je.getUniforms(),ut=Ni.uniforms;if(At.useProgram(je.program)&&(Pe=xe=pe=!0),In.id!==ta&&(ta=In.id,xe=!0),pe||Wn!==qt){if(0<je.numMultiviewViews?ml.updateCameraProjectionMatricesUniform(qt,$e):$e.setValue(Oe,"projectionMatrix",qt.projectionMatrix),Tt.logarithmicDepthBuffer&&$e.setValue(Oe,"logDepthBufFC",2/(Math.log(qt.far+1)/Math.LN2)),Wn!==qt&&(Wn=qt,Pe=xe=!0),In.isShaderMaterial||In.isMeshPhongMaterial||In.isMeshToonMaterial||In.isMeshStandardMaterial||In.envMap){var bt=$e.map.cameraPosition;bt!==void 0&&bt.setValue(Oe,tl.setFromMatrixPosition(qt.matrixWorld))}(In.isMeshPhongMaterial||In.isMeshToonMaterial||In.isMeshLambertMaterial||In.isMeshBasicMaterial||In.isMeshStandardMaterial||In.isShaderMaterial)&&$e.setValue(Oe,"isOrthographic",qt.isOrthographicCamera===!0),(In.isMeshPhongMaterial||In.isMeshToonMaterial||In.isMeshLambertMaterial||In.isMeshBasicMaterial||In.isMeshStandardMaterial||In.isShaderMaterial||In.skinning)&&(0<je.numMultiviewViews?ml.updateCameraViewMatricesUniform(qt,$e):$e.setValue(Oe,"viewMatrix",qt.matrixWorldInverse))}if(In.skinning){$e.setOptional(Oe,or,"bindMatrix"),$e.setOptional(Oe,or,"bindMatrixInverse");var kt=or.skeleton;if(kt){var zt=kt.bones;if(Tt.floatVertexTextures){if(kt.boneTexture===void 0){var Xt=Math.sqrt(4*zt.length);Xt=Ta.ceilPowerOfTwo(Xt),Xt=Math.max(Xt,4);var wn=new Float32Array(Xt*Xt*4);wn.set(kt.boneMatrices);var Ln=new Ec(wn,Xt,Xt,dt,ar);kt.boneMatrices=wn,kt.boneTexture=Ln,kt.boneTextureSize=Xt}$e.setValue(Oe,"boneTexture",kt.boneTexture,An),$e.setValue(Oe,"boneTextureSize",kt.boneTextureSize)}else $e.setOptional(Oe,kt,"boneMatrices")}}return!xe&&Ni.receiveShadow===or.receiveShadow||(Ni.receiveShadow=or.receiveShadow,$e.setValue(Oe,"receiveShadow",or.receiveShadow)),xe&&($e.setValue(Oe,"toneMappingExposure",vr.toneMappingExposure),$e.setValue(Oe,"toneMappingWhitePoint",vr.toneMappingWhitePoint),Ni.needsLights&&(se=Pe,(te=ut).ambientLightColor.needsUpdate=se,te.lightProbe.needsUpdate=se,te.directionalLights.needsUpdate=se,te.pointLights.needsUpdate=se,te.spotLights.needsUpdate=se,te.rectAreaLights.needsUpdate=se,te.hemisphereLights.needsUpdate=se),pr&&In.fog&&(Y=pr,(P=ut).fogColor.value.copy(Y.color),Y.isFog?(P.fogNear.value=Y.near,P.fogFar.value=Y.far):Y.isFogExp2&&(P.fogDensity.value=Y.density)),In.isMeshBasicMaterial?gu(ut,In):In.isMeshLambertMaterial?(gu(ut,In),y=ut,(T=In).emissiveMap&&(y.emissiveMap.value=T.emissiveMap)):In.isMeshToonMaterial?(gu(ut,In),function(hn,Jt){hn.specular.value.copy(Jt.specular),hn.shininess.value=Math.max(Jt.shininess,1e-4),Jt.gradientMap&&(hn.gradientMap.value=Jt.gradientMap),Jt.emissiveMap&&(hn.emissiveMap.value=Jt.emissiveMap),Jt.bumpMap&&(hn.bumpMap.value=Jt.bumpMap,hn.bumpScale.value=Jt.bumpScale,Jt.side===E&&(hn.bumpScale.value*=-1)),Jt.normalMap&&(hn.normalMap.value=Jt.normalMap,hn.normalScale.value.copy(Jt.normalScale),Jt.side===E&&hn.normalScale.value.negate()),Jt.displacementMap&&(hn.displacementMap.value=Jt.displacementMap,hn.displacementScale.value=Jt.displacementScale,hn.displacementBias.value=Jt.displacementBias)}(ut,In)):In.isMeshPhongMaterial?(gu(ut,In),function(hn,Jt){hn.specular.value.copy(Jt.specular),hn.shininess.value=Math.max(Jt.shininess,1e-4),Jt.emissiveMap&&(hn.emissiveMap.value=Jt.emissiveMap),Jt.bumpMap&&(hn.bumpMap.value=Jt.bumpMap,hn.bumpScale.value=Jt.bumpScale,Jt.side===E&&(hn.bumpScale.value*=-1)),Jt.normalMap&&(hn.normalMap.value=Jt.normalMap,hn.normalScale.value.copy(Jt.normalScale),Jt.side===E&&hn.normalScale.value.negate()),Jt.displacementMap&&(hn.displacementMap.value=Jt.displacementMap,hn.displacementScale.value=Jt.displacementScale,hn.displacementBias.value=Jt.displacementBias)}(ut,In)):In.isMeshStandardMaterial?(gu(ut,In,Pi),(In.isMeshPhysicalMaterial?function(hn,Jt,Nn){Xp(hn,Jt,Nn),hn.reflectivity.value=Jt.reflectivity,hn.clearcoat.value=Jt.clearcoat,hn.clearcoatRoughness.value=Jt.clearcoatRoughness,Jt.sheen&&hn.sheen.value.copy(Jt.sheen),Jt.clearcoatNormalMap&&(hn.clearcoatNormalScale.value.copy(Jt.clearcoatNormalScale),hn.clearcoatNormalMap.value=Jt.clearcoatNormalMap,Jt.side===E&&hn.clearcoatNormalScale.value.negate()),hn.transparency.value=Jt.transparency}:Xp)(ut,In,Pi)):In.isMeshMatcapMaterial?(gu(ut,In),function(hn,Jt){Jt.matcap&&(hn.matcap.value=Jt.matcap),Jt.bumpMap&&(hn.bumpMap.value=Jt.bumpMap,hn.bumpScale.value=Jt.bumpScale,Jt.side===E&&(hn.bumpScale.value*=-1)),Jt.normalMap&&(hn.normalMap.value=Jt.normalMap,hn.normalScale.value.copy(Jt.normalScale),Jt.side===E&&hn.normalScale.value.negate()),Jt.displacementMap&&(hn.displacementMap.value=Jt.displacementMap,hn.displacementScale.value=Jt.displacementScale,hn.displacementBias.value=Jt.displacementBias)}(ut,In)):In.isMeshDepthMaterial?(gu(ut,In),m=ut,(d=In).displacementMap&&(m.displacementMap.value=d.displacementMap,m.displacementScale.value=d.displacementScale,m.displacementBias.value=d.displacementBias)):In.isMeshDistanceMaterial?(gu(ut,In),function(hn,Jt){Jt.displacementMap&&(hn.displacementMap.value=Jt.displacementMap,hn.displacementScale.value=Jt.displacementScale,hn.displacementBias.value=Jt.displacementBias),hn.referencePosition.value.copy(Jt.referencePosition),hn.nearDistance.value=Jt.nearDistance,hn.farDistance.value=Jt.farDistance}(ut,In)):In.isMeshNormalMaterial?(gu(ut,In),function(hn,Jt){Jt.bumpMap&&(hn.bumpMap.value=Jt.bumpMap,hn.bumpScale.value=Jt.bumpScale,Jt.side===E&&(hn.bumpScale.value*=-1)),Jt.normalMap&&(hn.normalMap.value=Jt.normalMap,hn.normalScale.value.copy(Jt.normalScale),Jt.side===E&&hn.normalScale.value.negate()),Jt.displacementMap&&(hn.displacementMap.value=Jt.displacementMap,hn.displacementScale.value=Jt.displacementScale,hn.displacementBias.value=Jt.displacementBias)}(ut,In)):In.isLineBasicMaterial?(ka=In,(Ma=ut).diffuse.value.copy(ka.color),Ma.opacity.value=ka.opacity,In.isLineDashedMaterial&&(gi=In,(Ur=ut).dashSize.value=gi.dashSize,Ur.totalSize.value=gi.dashSize+gi.gapSize,Ur.scale.value=gi.scale)):In.isPointsMaterial?function(hn,Jt){var Nn;hn.diffuse.value.copy(Jt.color),hn.opacity.value=Jt.opacity,hn.size.value=Jt.size*qa,hn.scale.value=.5*la,Jt.map&&(hn.map.value=Jt.map),Jt.alphaMap&&(hn.alphaMap.value=Jt.alphaMap),Jt.map?Nn=Jt.map:Jt.alphaMap&&(Nn=Jt.alphaMap),Nn!==void 0&&(Nn.matrixAutoUpdate===!0&&Nn.updateMatrix(),hn.uvTransform.value.copy(Nn.matrix))}(ut,In):In.isSpriteMaterial?function(hn,Jt){var Nn;hn.diffuse.value.copy(Jt.color),hn.opacity.value=Jt.opacity,hn.rotation.value=Jt.rotation,Jt.map&&(hn.map.value=Jt.map),Jt.alphaMap&&(hn.alphaMap.value=Jt.alphaMap),Jt.map?Nn=Jt.map:Jt.alphaMap&&(Nn=Jt.alphaMap),Nn!==void 0&&(Nn.matrixAutoUpdate===!0&&Nn.updateMatrix(),hn.uvTransform.value.copy(Nn.matrix))}(ut,In):In.isShadowMaterial&&(ut.color.value.copy(In.color),ut.opacity.value=In.opacity),ut.ltc_1!==void 0&&(ut.ltc_1.value=Wi.LTC_1),ut.ltc_2!==void 0&&(ut.ltc_2.value=Wi.LTC_2),pn.upload(Oe,Ni.uniformsList,ut,An),In.isShaderMaterial&&(In.uniformsNeedUpdate=!1)),In.isShaderMaterial&&In.uniformsNeedUpdate===!0&&(pn.upload(Oe,Ni.uniformsList,ut,An),In.uniformsNeedUpdate=!1),In.isSpriteMaterial&&$e.setValue(Oe,"center",or.center),0<je.numMultiviewViews?ml.updateObjectMatricesUniforms(or,qt,$e):($e.setValue(Oe,"modelViewMatrix",or.modelViewMatrix),$e.setValue(Oe,"normalMatrix",or.normalMatrix)),$e.setValue(Oe,"modelMatrix",or.matrixWorld),je}function gu(qt,On,In){qt.opacity.value=On.opacity,On.color&&qt.diffuse.value.copy(On.color),On.emissive&&qt.emissive.value.copy(On.emissive).multiplyScalar(On.emissiveIntensity),On.map&&(qt.map.value=On.map),On.alphaMap&&(qt.alphaMap.value=On.alphaMap),On.specularMap&&(qt.specularMap.value=On.specularMap);var or,pr,Pi=On.envMap||In;Pi&&(qt.envMap.value=Pi,qt.flipEnvMap.value=Pi.isCubeTexture?-1:1,qt.reflectivity.value=On.reflectivity,qt.refractionRatio.value=On.refractionRatio,qt.maxMipLevel.value=fn.get(Pi).__maxMipLevel),On.lightMap&&(qt.lightMap.value=On.lightMap,qt.lightMapIntensity.value=On.lightMapIntensity),On.aoMap&&(qt.aoMap.value=On.aoMap,qt.aoMapIntensity.value=On.aoMapIntensity),On.map?or=On.map:On.specularMap?or=On.specularMap:On.displacementMap?or=On.displacementMap:On.normalMap?or=On.normalMap:On.bumpMap?or=On.bumpMap:On.roughnessMap?or=On.roughnessMap:On.metalnessMap?or=On.metalnessMap:On.alphaMap?or=On.alphaMap:On.emissiveMap&&(or=On.emissiveMap),or!==void 0&&(or.isWebGLRenderTarget&&(or=or.texture),or.matrixAutoUpdate===!0&&or.updateMatrix(),qt.uvTransform.value.copy(or.matrix)),On.aoMap?pr=On.aoMap:On.lightMap&&(pr=On.lightMap),pr!==void 0&&(pr.isWebGLRenderTarget&&(pr=pr.texture),pr.matrixAutoUpdate===!0&&pr.updateMatrix(),qt.uv2Transform.value.copy(pr.matrix))}function Xp(qt,On,In){qt.roughness.value=On.roughness,qt.metalness.value=On.metalness,On.roughnessMap&&(qt.roughnessMap.value=On.roughnessMap),On.metalnessMap&&(qt.metalnessMap.value=On.metalnessMap),On.emissiveMap&&(qt.emissiveMap.value=On.emissiveMap),On.bumpMap&&(qt.bumpMap.value=On.bumpMap,qt.bumpScale.value=On.bumpScale,On.side===E&&(qt.bumpScale.value*=-1)),On.normalMap&&(qt.normalMap.value=On.normalMap,qt.normalScale.value.copy(On.normalScale),On.side===E&&qt.normalScale.value.negate()),On.displacementMap&&(qt.displacementMap.value=On.displacementMap,qt.displacementScale.value=On.displacementScale,qt.displacementBias.value=On.displacementBias),(On.envMap||In)&&(qt.envMapIntensity.value=On.envMapIntensity)}Qh.setAnimationLoop(function(qt){us.isPresenting||Tp&&Tp(qt)}),typeof window!="undefined"&&Qh.setContext(window),this.setAnimationLoop=function(qt){Tp=qt,us.setAnimationLoop(qt),Qh.start()},this.render=function(qt,On){var In,or;if(arguments[2]!==void 0&&(console.warn("THREE.WebGLRenderer.render(): the renderTarget argument has been removed. Use .setRenderTarget() instead."),In=arguments[2]),arguments[3]!==void 0&&(console.warn("THREE.WebGLRenderer.render(): the forceClear argument has been removed. Use .clear() instead."),or=arguments[3]),On&&On.isCamera){if(!yi){Mn.geometry=null,Mn.program=null,Mn.wireframe=!1,ta=-1,!(Wn=null)===qt.autoUpdate&&qt.updateMatrixWorld(),On.parent===null&&On.updateMatrixWorld(),us.enabled&&us.isPresenting&&(On=us.getCamera(On)),(ot=Cr.get(qt,On)).init(),qt.onBeforeRender(vr,qt,On,In||oa),uo.multiplyMatrices(On.projectionMatrix,On.matrixWorldInverse),mo.setFromProjectionMatrix(uo),Pu=this.localClippingEnabled,Bs=go.init(this.clippingPlanes,Pu,On),(tt=cr.get(qt,On)).init(),function Hi(Ur,gi,Ma,ka){if(Ur.visible!==!1){if(Ur.layers.test(gi.layers)){if(Ur.isGroup)Ma=Ur.renderOrder;else if(Ur.isLOD)Ur.autoUpdate===!0&&Ur.update(gi);else if(Ur.isLight)ot.pushLight(Ur),Ur.castShadow&&ot.pushShadow(Ur);else if(Ur.isSprite){if(!Ur.frustumCulled||mo.intersectsSprite(Ur)){ka&&tl.setFromMatrixPosition(Ur.matrixWorld).applyMatrix4(uo);var m=Qn.update(Ur);(d=Ur.material).visible&&tt.push(Ur,m,d,Ma,tl.z,null)}}else if(Ur.isImmediateRenderObject)ka&&tl.setFromMatrixPosition(Ur.matrixWorld).applyMatrix4(uo),tt.push(Ur,null,Ur.material,Ma,tl.z,null);else if((Ur.isMesh||Ur.isLine||Ur.isPoints)&&(Ur.isSkinnedMesh&&Ur.skeleton.frame!==nn.render.frame&&(Ur.skeleton.update(),Ur.skeleton.frame=nn.render.frame),!Ur.frustumCulled||mo.intersectsObject(Ur))){ka&&tl.setFromMatrixPosition(Ur.matrixWorld).applyMatrix4(uo),m=Qn.update(Ur);var d=Ur.material;if(Array.isArray(d))for(var y=m.groups,T=0,P=y.length;T<P;T++){var Y=y[T],te=d[Y.materialIndex];te&&te.visible&&tt.push(Ur,m,te,Ma,tl.z,Y)}else d.visible&&tt.push(Ur,m,d,Ma,tl.z,null)}}var se=Ur.children;for(T=0,P=se.length;T<P;T++)Hi(se[T],gi,Ma,ka)}}(qt,On,0,vr.sortObjects),vr.sortObjects===!0&&tt.sort(lr,Zi),Bs&&go.beginShadows();var pr=ot.state.shadowsArray;Ru.render(pr,qt,On),ot.setupLights(On),Bs&&go.endShadows(),this.info.autoReset&&this.info.reset(),In!==void 0&&this.setRenderTarget(In),us.enabled&&ml.isAvailable()&&ml.attachCamera(On),_r.render(tt,qt,On,or);var Pi=tt.opaque,Ni=tt.transparent;if(qt.overrideMaterial){var Di=qt.overrideMaterial;Pi.length&&Dp(Pi,qt,On,Di),Ni.length&&Dp(Ni,qt,On,Di)}else Pi.length&&Dp(Pi,qt,On),Ni.length&&Dp(Ni,qt,On);qt.onAfterRender(vr,qt,On),oa!==null&&(An.updateRenderTargetMipmap(oa),An.updateMultisampleRenderTarget(oa)),At.buffers.depth.setTest(!0),At.buffers.depth.setMask(!0),At.buffers.color.setMask(!0),At.setPolygonOffset(!1),us.enabled&&ml.isAvailable()&&ml.detachCamera(On),ot=tt=null}}else console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.")},this.mxRenderObject=function(qt,On,In,or,pr){xc(qt,On,In,Qn.update(qt),or,pr)},this.setFramebuffer=function(qt){Bi!==qt&&oa===null&&Oe.bindFramebuffer(36160,qt),Bi=qt},this.getActiveCubeFace=function(){return ya},this.getActiveMipmapLevel=function(){return sa},this.getRenderTarget=function(){return oa},this.setRenderTarget=function(qt,On,In){ya=On,sa=In,(oa=qt)&&fn.get(qt).__webglFramebuffer===void 0&&An.setupRenderTarget(qt);var or=Bi,pr=!1;if(qt){var Pi=fn.get(qt).__webglFramebuffer;qt.isWebGLCubeRenderTarget?(or=Pi[On||0],pr=!0):or=qt.isWebGLMultisampleRenderTarget?fn.get(qt).__webglMultisampledFramebuffer:Pi,Zr.copy(qt.viewport),Ga.copy(qt.scissor),ia=qt.scissorTest}else Zr.copy($i).multiplyScalar(qa).floor(),Ga.copy(Ha).multiplyScalar(qa).floor(),ia=Ei;if($a!==or&&(Oe.bindFramebuffer(36160,or),$a=or),At.viewport(Zr),At.scissor(Ga),At.setScissorTest(ia),pr){var Ni=fn.get(qt.texture);Oe.framebufferTexture2D(36160,36064,34069+(On||0),Ni.__webglTexture,In||0)}},this.readRenderTargetPixels=function(qt,On,In,or,pr,Pi,Ni){if(qt&&qt.isWebGLRenderTarget){var Di=fn.get(qt).__webglFramebuffer;if(qt.isWebGLCubeRenderTarget&&Ni!==void 0&&(Di=Di[Ni]),Di){var Hi=!1;Di!==$a&&(Oe.bindFramebuffer(36160,Di),Hi=!0);try{var Ur=qt.texture,gi=Ur.format,Ma=Ur.type;if(gi!==dt&&Ar.convert(gi)!==Oe.getParameter(35739))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");if(!(Ma===Kr||Ar.convert(Ma)===Oe.getParameter(35738)||Ma===ar&&(Tt.isWebGL2||mt.get("OES_texture_float")||mt.get("WEBGL_color_buffer_float"))||Ma===zr&&(Tt.isWebGL2?mt.get("EXT_color_buffer_float"):mt.get("EXT_color_buffer_half_float"))))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");Oe.checkFramebufferStatus(36160)===36053?0<=On&&On<=qt.width-or&&0<=In&&In<=qt.height-pr&&Oe.readPixels(On,In,or,pr,Ar.convert(gi),Ar.convert(Ma),Pi):console.error("THREE.WebGLRenderer.readRenderTargetPixels: readPixels from renderTarget failed. Framebuffer not complete.")}finally{Hi&&Oe.bindFramebuffer(36160,$a)}}}else console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.")},this.copyFramebufferToTexture=function(qt,On,In){In===void 0&&(In=0);var or=Math.pow(2,-In),pr=Math.floor(On.image.width*or),Pi=Math.floor(On.image.height*or),Ni=Ar.convert(On.format);An.setTexture2D(On,0),Oe.copyTexImage2D(3553,In,Ni,qt.x,qt.y,pr,Pi,0),At.unbindTexture()},this.copyTextureToTexture=function(qt,On,In,or){var pr=On.image.width,Pi=On.image.height,Ni=Ar.convert(In.format),Di=Ar.convert(In.type);An.setTexture2D(In,0),On.isDataTexture?Oe.texSubImage2D(3553,or||0,qt.x,qt.y,pr,Pi,Ni,Di,On.image.data):Oe.texSubImage2D(3553,or||0,qt.x,qt.y,Ni,Di,On.image),At.unbindTexture()},this.initTexture=function(qt){An.setTexture2D(qt,0),At.unbindTexture()},typeof __THREE_DEVTOOLS__!="undefined"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}function jl(u,g){this.name="",this.color=new Fn(u),this.density=g!==void 0?g:25e-5}function cl(u,g,C){this.name="",this.color=new Fn(u),this.near=g!==void 0?g:1,this.far=C!==void 0?C:1e3}function eu(u,g){this.array=u,this.stride=g,this.count=u!==void 0?u.length/g:0,this.usage=Ua,this.updateRange={offset:0,count:-1},this.version=0}Eo.prototype=Object.assign(Object.create(Rs.prototype),{constructor:Eo,isWebGLMultiviewRenderTarget:!0,copy:function(u){return Rs.prototype.copy.call(this,u),this.numViews=u.numViews,this},setNumViews:function(u){return this.numViews!==u&&(this.numViews=u,this.dispose()),this}}),$s.prototype=Object.assign(Object.create(Js.prototype),{constructor:$s,isArrayCamera:!0}),El.prototype=Object.assign(Object.create(Sn.prototype),{constructor:El,isGroup:!0}),Object.assign(ps.prototype,jo.prototype),Object.assign(jl.prototype,{isFogExp2:!0,clone:function(){return new jl(this.color,this.density)},toJSON:function(){return{type:"FogExp2",color:this.color.getHex(),density:this.density}}}),Object.assign(cl.prototype,{isFog:!0,clone:function(){return new cl(this.color,this.near,this.far)},toJSON:function(){return{type:"Fog",color:this.color.getHex(),near:this.near,far:this.far}}}),Object.defineProperty(eu.prototype,"needsUpdate",{set:function(u){u===!0&&this.version++}}),Object.assign(eu.prototype,{isInterleavedBuffer:!0,onUploadCallback:function(){},setUsage:function(u){return this.usage=u,this},copy:function(u){return this.array=new u.array.constructor(u.array),this.count=u.count,this.stride=u.stride,this.usage=u.usage,this},copyAt:function(u,g,C){u*=this.stride,C*=g.stride;for(var L=0,K=this.stride;L<K;L++)this.array[u+L]=g.array[C+L];return this},set:function(u,g){return g===void 0&&(g=0),this.array.set(u,g),this},clone:function(){return new this.constructor().copy(this)},onUpload:function(u){return this.onUploadCallback=u,this}});var xd,Dc=new Kt;function yc(u,g,C,L){this.data=u,this.itemSize=g,this.offset=C,this.normalized=L===!0}function bd(u){Wt.call(this),this.type="SpriteMaterial",this.color=new Fn(16777215),this.map=null,this.alphaMap=null,this.rotation=0,this.sizeAttenuation=!0,this.transparent=!0,this.setValues(u)}Object.defineProperties(yc.prototype,{count:{get:function(){return this.data.count}},array:{get:function(){return this.data.array}}}),Object.assign(yc.prototype,{isInterleavedBufferAttribute:!0,applyMatrix4:function(u){for(var g=0,C=this.data.count;g<C;g++)Dc.x=this.getX(g),Dc.y=this.getY(g),Dc.z=this.getZ(g),Dc.applyMatrix4(u),this.setXYZ(g,Dc.x,Dc.y,Dc.z);return this},setX:function(u,g){return this.data.array[u*this.data.stride+this.offset]=g,this},setY:function(u,g){return this.data.array[u*this.data.stride+this.offset+1]=g,this},setZ:function(u,g){return this.data.array[u*this.data.stride+this.offset+2]=g,this},setW:function(u,g){return this.data.array[u*this.data.stride+this.offset+3]=g,this},getX:function(u){return this.data.array[u*this.data.stride+this.offset]},getY:function(u){return this.data.array[u*this.data.stride+this.offset+1]},getZ:function(u){return this.data.array[u*this.data.stride+this.offset+2]},getW:function(u){return this.data.array[u*this.data.stride+this.offset+3]},setXY:function(u,g,C){return u=u*this.data.stride+this.offset,this.data.array[u+0]=g,this.data.array[u+1]=C,this},setXYZ:function(u,g,C,L){return u=u*this.data.stride+this.offset,this.data.array[u+0]=g,this.data.array[u+1]=C,this.data.array[u+2]=L,this},setXYZW:function(u,g,C,L,K){return u=u*this.data.stride+this.offset,this.data.array[u+0]=g,this.data.array[u+1]=C,this.data.array[u+2]=L,this.data.array[u+3]=K,this}}),((bd.prototype=Object.create(Wt.prototype)).constructor=bd).prototype.isSpriteMaterial=!0,bd.prototype.copy=function(u){return Wt.prototype.copy.call(this,u),this.color.copy(u.color),this.map=u.map,this.alphaMap=u.alphaMap,this.rotation=u.rotation,this.sizeAttenuation=u.sizeAttenuation,this};var Cu=new Kt,Ac=new Kt,Qc=new Kt,lh=new Lr,uh=new Lr,ap=new Ki,fl=new Kt,jd=new Kt,Lh=new Kt,Jp=new Lr,op=new Lr,If=new Lr;function sp(u){if(Sn.call(this),this.type="Sprite",xd===void 0){xd=new qi;var g=new eu(new Float32Array([-.5,-.5,0,0,0,.5,-.5,0,1,0,.5,.5,0,1,1,-.5,.5,0,0,1]),5);xd.setIndex([0,1,2,0,2,3]),xd.setAttribute("position",new yc(g,3,0,!1)),xd.setAttribute("uv",new yc(g,2,3,!1))}this.geometry=xd,this.material=u!==void 0?u:new bd,this.center=new Lr(.5,.5)}function Oh(u,g,C,L,K,ie){lh.subVectors(u,C).addScalar(.5).multiply(L),K!==void 0?(uh.x=ie*lh.x-K*lh.y,uh.y=K*lh.x+ie*lh.y):uh.copy(lh),u.copy(g),u.x+=uh.x,u.y+=uh.y,u.applyMatrix4(ap)}sp.prototype=Object.assign(Object.create(Sn.prototype),{constructor:sp,isSprite:!0,raycast:function(u,g){u.camera===null&&console.error('THREE.Sprite: "Raycaster.camera" needs to be set in order to raycast against sprites.'),Ac.setFromMatrixScale(this.matrixWorld),ap.copy(u.camera.matrixWorld),this.modelViewMatrix.multiplyMatrices(u.camera.matrixWorldInverse,this.matrixWorld),Qc.setFromMatrixPosition(this.modelViewMatrix),u.camera.isPerspectiveCamera&&this.material.sizeAttenuation===!1&&Ac.multiplyScalar(-Qc.z);var C,L,K=this.material.rotation;K!==0&&(L=Math.cos(K),C=Math.sin(K));var ie=this.center;Oh(fl.set(-.5,-.5,0),Qc,ie,Ac,C,L),Oh(jd.set(.5,-.5,0),Qc,ie,Ac,C,L),Oh(Lh.set(.5,.5,0),Qc,ie,Ac,C,L),Jp.set(0,0),op.set(1,0),If.set(1,1);var ce=u.ray.intersectTriangle(fl,jd,Lh,!1,Cu);if(ce!==null||(Oh(jd.set(-.5,.5,0),Qc,ie,Ac,C,L),op.set(0,1),(ce=u.ray.intersectTriangle(fl,Lh,jd,!1,Cu))!==null)){var ge=u.ray.origin.distanceTo(Cu);ge<u.near||ge>u.far||g.push({distance:ge,point:Cu.clone(),uv:ds.getUV(Cu,fl,jd,Lh,Jp,op,If,new Lr),face:null,object:this})}},clone:function(){return new this.constructor(this.material).copy(this)},copy:function(u){return Sn.prototype.copy.call(this,u),u.center!==void 0&&this.center.copy(u.center),this}});var ed=new Kt,Ud=new Kt;function ac(){Sn.call(this),this.type="LOD",Object.defineProperties(this,{levels:{enumerable:!0,value:[]}}),this.autoUpdate=!0}function Su(u,g){u&&u.isGeometry&&console.error("THREE.SkinnedMesh no longer supports THREE.Geometry. Use THREE.BufferGeometry instead."),hs.call(this,u,g),this.type="SkinnedMesh",this.bindMode="attached",this.bindMatrix=new Ki,this.bindMatrixInverse=new Ki}ac.prototype=Object.assign(Object.create(Sn.prototype),{constructor:ac,isLOD:!0,copy:function(u){Sn.prototype.copy.call(this,u,!1);for(var g=u.levels,C=0,L=g.length;C<L;C++){var K=g[C];this.addLevel(K.object.clone(),K.distance)}return this.autoUpdate=u.autoUpdate,this},addLevel:function(u,g){g===void 0&&(g=0),g=Math.abs(g);for(var C=this.levels,L=0;L<C.length&&!(g<C[L].distance);L++);return C.splice(L,0,{distance:g,object:u}),this.add(u),this},getObjectForDistance:function(u){var g=this.levels;if(0<g.length){for(var C=1,L=g.length;C<L&&!(u<g[C].distance);C++);return g[C-1].object}return null},raycast:function(u,g){if(0<this.levels.length){ed.setFromMatrixPosition(this.matrixWorld);var C=u.ray.origin.distanceTo(ed);this.getObjectForDistance(C).raycast(u,g)}},update:function(u){var g=this.levels;if(1<g.length){ed.setFromMatrixPosition(u.matrixWorld),Ud.setFromMatrixPosition(this.matrixWorld);var C=ed.distanceTo(Ud);g[0].object.visible=!0;for(var L=1,K=g.length;L<K&&C>=g[L].distance;L++)g[L-1].object.visible=!1,g[L].object.visible=!0;for(;L<K;L++)g[L].object.visible=!1}},toJSON:function(u){var g=Sn.prototype.toJSON.call(this,u);this.autoUpdate===!1&&(g.object.autoUpdate=!1),g.object.levels=[];for(var C=this.levels,L=0,K=C.length;L<K;L++){var ie=C[L];g.object.levels.push({object:ie.object.uuid,distance:ie.distance})}return g}}),Su.prototype=Object.assign(Object.create(hs.prototype),{constructor:Su,isSkinnedMesh:!0,bind:function(u,g){this.skeleton=u,g===void 0&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),g=this.matrixWorld),this.bindMatrix.copy(g),this.bindMatrixInverse.getInverse(g)},pose:function(){this.skeleton.pose()},normalizeSkinWeights:function(){for(var u=new _o,g=this.geometry.attributes.skinWeight,C=0,L=g.count;C<L;C++){u.x=g.getX(C),u.y=g.getY(C),u.z=g.getZ(C),u.w=g.getW(C);var K=1/u.manhattanLength();K!=1/0?u.multiplyScalar(K):u.set(1,0,0,0),g.setXYZW(C,u.x,u.y,u.z,u.w)}},updateMatrixWorld:function(u){hs.prototype.updateMatrixWorld.call(this,u),this.bindMode==="attached"?this.bindMatrixInverse.getInverse(this.matrixWorld):this.bindMode==="detached"?this.bindMatrixInverse.getInverse(this.bindMatrix):console.warn("THREE.SkinnedMesh: Unrecognized bindMode: "+this.bindMode)},clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}});var wd=new Ki,$d=new Ki;function td(u,g){if(u=u||[],this.bones=u.slice(0),this.boneMatrices=new Float32Array(16*this.bones.length),this.frame=-1,g===void 0)this.calculateInverses();else if(this.bones.length===g.length)this.boneInverses=g.slice(0);else{console.warn("THREE.Skeleton boneInverses is the wrong length."),this.boneInverses=[];for(var C=0,L=this.bones.length;C<L;C++)this.boneInverses.push(new Ki)}}function Qp(){Sn.call(this),this.type="Bone"}Object.assign(td.prototype,{calculateInverses:function(){this.boneInverses=[];for(var u=0,g=this.bones.length;u<g;u++){var C=new Ki;this.bones[u]&&C.getInverse(this.bones[u].matrixWorld),this.boneInverses.push(C)}},pose:function(){var u,g,C;for(g=0,C=this.bones.length;g<C;g++)(u=this.bones[g])&&u.matrixWorld.getInverse(this.boneInverses[g]);for(g=0,C=this.bones.length;g<C;g++)(u=this.bones[g])&&(u.parent&&u.parent.isBone?(u.matrix.getInverse(u.parent.matrixWorld),u.matrix.multiply(u.matrixWorld)):u.matrix.copy(u.matrixWorld),u.matrix.decompose(u.position,u.quaternion,u.scale))},update:function(){for(var u=this.bones,g=this.boneInverses,C=this.boneMatrices,L=this.boneTexture,K=0,ie=u.length;K<ie;K++){var ce=u[K]?u[K].matrixWorld:$d;wd.multiplyMatrices(ce,g[K]),wd.toArray(C,16*K)}L!==void 0&&(L.needsUpdate=!0)},clone:function(){return new td(this.bones,this.boneInverses)},getBoneByName:function(u){for(var g=0,C=this.bones.length;g<C;g++){var L=this.bones[g];if(L.name===u)return L}}}),Qp.prototype=Object.assign(Object.create(Sn.prototype),{constructor:Qp,isBone:!0});var ef=new Ki,lp=new Ki,Fh=[],Bh=new hs;function ch(u,g,C){hs.call(this,u,g),this.instanceMatrix=new Bn(new Float32Array(16*C),16),this.count=C,this.frustumCulled=!1}function ss(u){Wt.call(this),this.type="LineBasicMaterial",this.color=new Fn(16777215),this.linewidth=1,this.linecap="round",this.linejoin="round",this.setValues(u)}ch.prototype=Object.assign(Object.create(hs.prototype),{constructor:ch,isInstancedMesh:!0,getMatrixAt:function(u,g){g.fromArray(this.instanceMatrix.array,16*u)},raycast:function(u,g){var C=this.matrixWorld,L=this.count;if(Bh.geometry=this.geometry,Bh.material=this.material,Bh.material!==void 0)for(var K=0;K<L;K++)this.getMatrixAt(K,ef),lp.multiplyMatrices(C,ef),Bh.matrixWorld=lp,Bh.raycast(u,Fh),0<Fh.length&&(Fh[0].instanceId=K,Fh[0].object=this,g.push(Fh[0]),Fh.length=0)},setMatrixAt:function(u,g){g.toArray(this.instanceMatrix.array,16*u)},updateMorphTargets:function(){}}),((ss.prototype=Object.create(Wt.prototype)).constructor=ss).prototype.isLineBasicMaterial=!0,ss.prototype.copy=function(u){return Wt.prototype.copy.call(this,u),this.color.copy(u.color),this.linewidth=u.linewidth,this.linecap=u.linecap,this.linejoin=u.linejoin,this};var tf=new Kt,nf=new Kt,Qs=new Ki,za=new fo,kc=new po;function tu(u,g,C){C===1&&console.error("THREE.Line: parameter THREE.LinePieces no longer supported. Use THREE.LineSegments instead."),Sn.call(this),this.type="Line",this.geometry=u!==void 0?u:new qi,this.material=g!==void 0?g:new ss}tu.prototype=Object.assign(Object.create(Sn.prototype),{constructor:tu,isLine:!0,computeLineDistances:function(){var u=this.geometry;if(u.isBufferGeometry)if(u.index===null){for(var g=u.attributes.position,C=[0],L=1,K=g.count;L<K;L++)tf.fromBufferAttribute(g,L-1),nf.fromBufferAttribute(g,L),C[L]=C[L-1],C[L]+=tf.distanceTo(nf);u.setAttribute("lineDistance",new Fr(C,1))}else console.warn("THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else if(u.isGeometry){var ie=u.vertices;for((C=u.lineDistances)[0]=0,L=1,K=ie.length;L<K;L++)C[L]=C[L-1],C[L]+=ie[L-1].distanceTo(ie[L])}return this},raycast:function(u,g){var C=u.linePrecision,L=this.geometry,K=this.matrixWorld;if(L.boundingSphere===null&&L.computeBoundingSphere(),kc.copy(L.boundingSphere),kc.applyMatrix4(K),kc.radius+=C,u.ray.intersectsSphere(kc)!==!1){Qs.getInverse(K),za.copy(u.ray).applyMatrix4(Qs);var ie=C/((this.scale.x+this.scale.y+this.scale.z)/3),ce=ie*ie,ge=new Kt,Ee=new Kt,Ae=new Kt,We=new Kt,tt=this&&this.isLineSegments?2:1;if(L.isBufferGeometry){var ot=L.index,Oe=L.attributes.position.array;if(ot!==null)for(var mt=ot.array,Tt=0,At=mt.length-1;Tt<At;Tt+=tt){var nn=mt[Tt],fn=mt[Tt+1];ge.fromArray(Oe,3*nn),Ee.fromArray(Oe,3*fn),ce<za.distanceSqToSegment(ge,Ee,We,Ae)||(We.applyMatrix4(this.matrixWorld),(Dn=u.ray.origin.distanceTo(We))<u.near||Dn>u.far||g.push({distance:Dn,point:Ae.clone().applyMatrix4(this.matrixWorld),index:Tt,face:null,faceIndex:null,object:this}))}else for(Tt=0,At=Oe.length/3-1;Tt<At;Tt+=tt)ge.fromArray(Oe,3*Tt),Ee.fromArray(Oe,3*Tt+3),ce<za.distanceSqToSegment(ge,Ee,We,Ae)||(We.applyMatrix4(this.matrixWorld),(Dn=u.ray.origin.distanceTo(We))<u.near||Dn>u.far||g.push({distance:Dn,point:Ae.clone().applyMatrix4(this.matrixWorld),index:Tt,face:null,faceIndex:null,object:this}))}else if(L.isGeometry){var An=L.vertices,zn=An.length;for(Tt=0;Tt<zn-1;Tt+=tt){var Dn;ce<za.distanceSqToSegment(An[Tt],An[Tt+1],We,Ae)||(We.applyMatrix4(this.matrixWorld),(Dn=u.ray.origin.distanceTo(We))<u.near||Dn>u.far||g.push({distance:Dn,point:Ae.clone().applyMatrix4(this.matrixWorld),index:Tt,face:null,faceIndex:null,object:this}))}}}},clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}});var Go=new Kt,up=new Kt;function Fs(u,g){tu.call(this,u,g),this.type="LineSegments"}function Md(u,g){tu.call(this,u,g),this.type="LineLoop"}function Eu(u){Wt.call(this),this.type="PointsMaterial",this.color=new Fn(16777215),this.map=null,this.alphaMap=null,this.size=1,this.sizeAttenuation=!0,this.morphTargets=!1,this.setValues(u)}Fs.prototype=Object.assign(Object.create(tu.prototype),{constructor:Fs,isLineSegments:!0,computeLineDistances:function(){var u=this.geometry;if(u.isBufferGeometry)if(u.index===null){for(var g=u.attributes.position,C=[],L=0,K=g.count;L<K;L+=2)Go.fromBufferAttribute(g,L),up.fromBufferAttribute(g,L+1),C[L]=L===0?0:C[L-1],C[L+1]=C[L]+Go.distanceTo(up);u.setAttribute("lineDistance",new Fr(C,1))}else console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else if(u.isGeometry){var ie=u.vertices;for(C=u.lineDistances,L=0,K=ie.length;L<K;L+=2)Go.copy(ie[L]),up.copy(ie[L+1]),C[L]=L===0?0:C[L-1],C[L+1]=C[L]+Go.distanceTo(up)}return this}}),Md.prototype=Object.assign(Object.create(tu.prototype),{constructor:Md,isLineLoop:!0}),((Eu.prototype=Object.create(Wt.prototype)).constructor=Eu).prototype.isPointsMaterial=!0,Eu.prototype.copy=function(u){return Wt.prototype.copy.call(this,u),this.color.copy(u.color),this.map=u.map,this.alphaMap=u.alphaMap,this.size=u.size,this.sizeAttenuation=u.sizeAttenuation,this.morphTargets=u.morphTargets,this};var Cd=new Ki,Tu=new fo,yl=new po,cp=new Kt;function Du(u,g){Sn.call(this),this.type="Points",this.geometry=u!==void 0?u:new qi,this.material=g!==void 0?g:new Eu,this.updateMorphTargets()}function Sd(u,g,C,L,K,ie,ce){var ge=Tu.distanceSqToPoint(u);if(ge<C){var Ee=new Kt;Tu.closestPointToPoint(u,Ee),Ee.applyMatrix4(L);var Ae=K.ray.origin.distanceTo(Ee);if(Ae<K.near||Ae>K.far)return;ie.push({distance:Ae,distanceToRay:Math.sqrt(ge),point:Ee,index:g,face:null,object:ce})}}function Hd(u,g,C,L,K,ie,ce,ge,Ee){vo.call(this,u,g,C,L,K,ie,ce,ge,Ee),this.format=ce!==void 0?ce:jt,this.minFilter=ie!==void 0?ie:sn,this.magFilter=K!==void 0?K:sn,this.generateMipmaps=!1}function kp(u,g,C,L,K,ie,ce,ge,Ee,Ae,We,tt){vo.call(this,null,ie,ce,ge,Ee,Ae,L,K,We,tt),this.image={width:g,height:C},this.mipmaps=u,this.flipY=!1,this.generateMipmaps=!1}function dh(u,g,C,L,K,ie,ce,ge,Ee){vo.call(this,u,g,C,L,K,ie,ce,ge,Ee),this.needsUpdate=!0}function dp(u,g,C,L,K,ie,ce,ge,Ee,Ae){if((Ae=Ae!==void 0?Ae:mn)!==mn&&Ae!==Un)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");C===void 0&&Ae===mn&&(C=xn),C===void 0&&Ae===Un&&(C=wi),vo.call(this,null,L,K,ie,ce,ge,Ae,C,Ee),this.image={width:u,height:g},this.magFilter=ce!==void 0?ce:Ie,this.minFilter=ge!==void 0?ge:Ie,this.flipY=!1,this.generateMipmaps=!1}function hp(u){qi.call(this),this.type="WireframeGeometry";var g,C,L,K,ie,ce,ge,Ee,Ae,We,tt=[],ot=[0,0],Oe={},mt=["a","b","c"];if(u&&u.isGeometry){var Tt=u.faces;for(g=0,L=Tt.length;g<L;g++){var At=Tt[g];for(C=0;C<3;C++)ge=At[mt[C]],Ee=At[mt[(C+1)%3]],ot[0]=Math.min(ge,Ee),ot[1]=Math.max(ge,Ee),Oe[Ae=ot[0]+","+ot[1]]===void 0&&(Oe[Ae]={index1:ot[0],index2:ot[1]})}for(Ae in Oe)ce=Oe[Ae],We=u.vertices[ce.index1],tt.push(We.x,We.y,We.z),We=u.vertices[ce.index2],tt.push(We.x,We.y,We.z)}else if(u&&u.isBufferGeometry){var nn,fn,An,zn,Dn,Qn;if(We=new Kt,u.index!==null){for(nn=u.attributes.position,fn=u.index,(An=u.groups).length===0&&(An=[{start:0,count:fn.count,materialIndex:0}]),K=0,ie=An.length;K<ie;++K)for(L=(g=(zn=An[K]).start)+zn.count;g<L;g+=3)for(C=0;C<3;C++)ge=fn.getX(g+C),Ee=fn.getX(g+(C+1)%3),ot[0]=Math.min(ge,Ee),ot[1]=Math.max(ge,Ee),Oe[Ae=ot[0]+","+ot[1]]===void 0&&(Oe[Ae]={index1:ot[0],index2:ot[1]});for(Ae in Oe)ce=Oe[Ae],We.fromBufferAttribute(nn,ce.index1),tt.push(We.x,We.y,We.z),We.fromBufferAttribute(nn,ce.index2),tt.push(We.x,We.y,We.z)}else for(g=0,L=(nn=u.attributes.position).count/3;g<L;g++)for(C=0;C<3;C++)Dn=3*g+C,We.fromBufferAttribute(nn,Dn),tt.push(We.x,We.y,We.z),Qn=3*g+(C+1)%3,We.fromBufferAttribute(nn,Qn),tt.push(We.x,We.y,We.z)}this.setAttribute("position",new Fr(tt,3))}function vl(u,g,C){Fa.call(this),this.type="ParametricGeometry",this.parameters={func:u,slices:g,stacks:C},this.fromBufferGeometry(new Ic(u,g,C)),this.mergeVertices()}function Ic(u,g,C){qi.call(this),this.type="ParametricBufferGeometry",this.parameters={func:u,slices:g,stacks:C};var L,K,ie=[],ce=[],ge=[],Ee=[],Ae=new Kt,We=new Kt,tt=new Kt,ot=new Kt,Oe=new Kt;u.length<3&&console.error("THREE.ParametricGeometry: Function must now modify a Vector3 as third parameter.");var mt=g+1;for(L=0;L<=C;L++){var Tt=L/C;for(K=0;K<=g;K++){var At=K/g;u(At,Tt,We),ce.push(We.x,We.y,We.z),0<=At-1e-5?(u(At-1e-5,Tt,tt),ot.subVectors(We,tt)):(u(1e-5+At,Tt,tt),ot.subVectors(tt,We)),0<=Tt-1e-5?(u(At,Tt-1e-5,tt),Oe.subVectors(We,tt)):(u(At,1e-5+Tt,tt),Oe.subVectors(tt,We)),Ae.crossVectors(ot,Oe).normalize(),ge.push(Ae.x,Ae.y,Ae.z),Ee.push(At,Tt)}}for(L=0;L<C;L++)for(K=0;K<g;K++){var nn=L*mt+K,fn=L*mt+K+1,An=(L+1)*mt+K+1,zn=(L+1)*mt+K;ie.push(nn,fn,zn),ie.push(fn,An,zn)}this.setIndex(ie),this.setAttribute("position",new Fr(ce,3)),this.setAttribute("normal",new Fr(ge,3)),this.setAttribute("uv",new Fr(Ee,2))}function hh(u,g,C,L){Fa.call(this),this.type="PolyhedronGeometry",this.parameters={vertices:u,indices:g,radius:C,detail:L},this.fromBufferGeometry(new _l(u,g,C,L)),this.mergeVertices()}function _l(u,g,C,L){qi.call(this),this.type="PolyhedronBufferGeometry",this.parameters={vertices:u,indices:g,radius:C,detail:L},C=C||1;var K=[],ie=[];function ce(tt,ot,Oe,mt){var Tt,At,nn=Math.pow(2,mt),fn=[];for(Tt=0;Tt<=nn;Tt++){fn[Tt]=[];var An=tt.clone().lerp(Oe,Tt/nn),zn=ot.clone().lerp(Oe,Tt/nn),Dn=nn-Tt;for(At=0;At<=Dn;At++)fn[Tt][At]=At===0&&Tt===nn?An:An.clone().lerp(zn,At/Dn)}for(Tt=0;Tt<nn;Tt++)for(At=0;At<2*(nn-Tt)-1;At++){var Qn=Math.floor(At/2);At%2==0?(ge(fn[Tt][Qn+1]),ge(fn[Tt+1][Qn]),ge(fn[Tt][Qn])):(ge(fn[Tt][Qn+1]),ge(fn[Tt+1][Qn+1]),ge(fn[Tt+1][Qn]))}}function ge(tt){K.push(tt.x,tt.y,tt.z)}function Ee(tt,ot){var Oe=3*tt;ot.x=u[0+Oe],ot.y=u[1+Oe],ot.z=u[2+Oe]}function Ae(tt,ot,Oe,mt){mt<0&&tt.x===1&&(ie[ot]=tt.x-1),Oe.x===0&&Oe.z===0&&(ie[ot]=mt/2/Math.PI+.5)}function We(tt){return Math.atan2(tt.z,-tt.x)}(function(tt){for(var ot=new Kt,Oe=new Kt,mt=new Kt,Tt=0;Tt<g.length;Tt+=3)Ee(g[Tt+0],ot),Ee(g[Tt+1],Oe),Ee(g[Tt+2],mt),ce(ot,Oe,mt,tt)})(L=L||0),function(tt){for(var ot=new Kt,Oe=0;Oe<K.length;Oe+=3)ot.x=K[Oe+0],ot.y=K[Oe+1],ot.z=K[Oe+2],ot.normalize().multiplyScalar(tt),K[Oe+0]=ot.x,K[Oe+1]=ot.y,K[Oe+2]=ot.z}(C),function(){for(var tt=new Kt,ot=0;ot<K.length;ot+=3){tt.x=K[ot+0],tt.y=K[ot+1],tt.z=K[ot+2];var Oe=We(tt)/2/Math.PI+.5,mt=(Tt=tt,Math.atan2(-Tt.y,Math.sqrt(Tt.x*Tt.x+Tt.z*Tt.z))/Math.PI+.5);ie.push(Oe,1-mt)}var Tt;(function(){for(var At=new Kt,nn=new Kt,fn=new Kt,An=new Kt,zn=new Lr,Dn=new Lr,Qn=new Lr,Pn=0,cr=0;Pn<K.length;Pn+=9,cr+=6){At.set(K[Pn+0],K[Pn+1],K[Pn+2]),nn.set(K[Pn+3],K[Pn+4],K[Pn+5]),fn.set(K[Pn+6],K[Pn+7],K[Pn+8]),zn.set(ie[cr+0],ie[cr+1]),Dn.set(ie[cr+2],ie[cr+3]),Qn.set(ie[cr+4],ie[cr+5]),An.copy(At).add(nn).add(fn).divideScalar(3);var Cr=We(An);Ae(zn,cr+0,At,Cr),Ae(Dn,cr+2,nn,Cr),Ae(Qn,cr+4,fn,Cr)}})(),function(){for(var At=0;At<ie.length;At+=6){var nn=ie[At+0],fn=ie[At+2],An=ie[At+4],zn=Math.max(nn,fn,An),Dn=Math.min(nn,fn,An);.9<zn&&Dn<.1&&(nn<.2&&(ie[At+0]+=1),fn<.2&&(ie[At+2]+=1),An<.2&&(ie[At+4]+=1))}}()}(),this.setAttribute("position",new Fr(K,3)),this.setAttribute("normal",new Fr(K.slice(),3)),this.setAttribute("uv",new Fr(ie,2)),L===0?this.computeVertexNormals():this.normalizeNormals()}function ro(u,g){Fa.call(this),this.type="TetrahedronGeometry",this.parameters={radius:u,detail:g},this.fromBufferGeometry(new Nh(u,g)),this.mergeVertices()}function Nh(u,g){_l.call(this,[1,1,1,-1,-1,1,-1,1,-1,1,-1,-1],[2,1,0,0,3,2,1,3,0,2,3,1],u,g),this.type="TetrahedronBufferGeometry",this.parameters={radius:u,detail:g}}function du(u,g){Fa.call(this),this.type="OctahedronGeometry",this.parameters={radius:u,detail:g},this.fromBufferGeometry(new Hs(u,g)),this.mergeVertices()}function Hs(u,g){_l.call(this,[1,0,0,-1,0,0,0,1,0,0,-1,0,0,0,1,0,0,-1],[0,2,4,0,4,3,0,3,5,0,5,2,1,2,5,1,5,3,1,3,4,1,4,2],u,g),this.type="OctahedronBufferGeometry",this.parameters={radius:u,detail:g}}function Pc(u,g){Fa.call(this),this.type="IcosahedronGeometry",this.parameters={radius:u,detail:g},this.fromBufferGeometry(new ph(u,g)),this.mergeVertices()}function ph(u,g){var C=(1+Math.sqrt(5))/2;_l.call(this,[-1,C,0,1,C,0,-1,-C,0,1,-C,0,0,-1,C,0,1,C,0,-1,-C,0,1,-C,C,0,-1,C,0,1,-C,0,-1,-C,0,1],[0,11,5,0,5,1,0,1,7,0,7,10,0,10,11,1,5,9,5,11,4,11,10,2,10,7,6,7,1,8,3,9,4,3,4,2,3,2,6,3,6,8,3,8,9,4,9,5,2,4,11,6,2,10,8,6,7,9,8,1],u,g),this.type="IcosahedronBufferGeometry",this.parameters={radius:u,detail:g}}function Vh(u,g){Fa.call(this),this.type="DodecahedronGeometry",this.parameters={radius:u,detail:g},this.fromBufferGeometry(new Au(u,g)),this.mergeVertices()}function Au(u,g){var C=(1+Math.sqrt(5))/2,L=1/C;_l.call(this,[-1,-1,-1,-1,-1,1,-1,1,-1,-1,1,1,1,-1,-1,1,-1,1,1,1,-1,1,1,1,0,-L,-C,0,-L,C,0,L,-C,0,L,C,-L,-C,0,-L,C,0,L,-C,0,L,C,0,-C,0,-L,C,0,-L,-C,0,L,C,0,L],[3,11,7,3,7,15,3,15,13,7,19,17,7,17,6,7,6,15,17,4,8,17,8,10,17,10,6,8,0,16,8,16,2,8,2,10,0,12,1,0,1,18,0,18,16,6,10,2,6,2,13,6,13,15,2,16,18,2,18,3,2,3,13,18,1,9,18,9,11,18,11,3,4,14,12,4,12,0,4,0,8,11,9,5,11,5,19,11,19,7,19,5,14,19,14,4,19,4,17,1,12,14,1,14,5,1,5,9],u,g),this.type="DodecahedronBufferGeometry",this.parameters={radius:u,detail:g}}function zh(u,g,C,L,K,ie){Fa.call(this),this.type="TubeGeometry",this.parameters={path:u,tubularSegments:g,radius:C,radialSegments:L,closed:K},ie!==void 0&&console.warn("THREE.TubeGeometry: taper has been removed.");var ce=new Ed(u,g,C,L,K);this.tangents=ce.tangents,this.normals=ce.normals,this.binormals=ce.binormals,this.fromBufferGeometry(ce),this.mergeVertices()}function Ed(u,g,C,L,K){qi.call(this),this.type="TubeBufferGeometry",this.parameters={path:u,tubularSegments:g,radius:C,radialSegments:L,closed:K},g=g||64,C=C||1,L=L||8,K=K||!1;var ie=u.computeFrenetFrames(g,K);this.tangents=ie.tangents,this.normals=ie.normals,this.binormals=ie.binormals;var ce,ge,Ee=new Kt,Ae=new Kt,We=new Lr,tt=new Kt,ot=[],Oe=[],mt=[],Tt=[];function At(nn){tt=u.getPointAt(nn/g,tt);var fn=ie.normals[nn],An=ie.binormals[nn];for(ge=0;ge<=L;ge++){var zn=ge/L*Math.PI*2,Dn=Math.sin(zn),Qn=-Math.cos(zn);Ae.x=Qn*fn.x+Dn*An.x,Ae.y=Qn*fn.y+Dn*An.y,Ae.z=Qn*fn.z+Dn*An.z,Ae.normalize(),Oe.push(Ae.x,Ae.y,Ae.z),Ee.x=tt.x+C*Ae.x,Ee.y=tt.y+C*Ae.y,Ee.z=tt.z+C*Ae.z,ot.push(Ee.x,Ee.y,Ee.z)}}(function(){for(ce=0;ce<g;ce++)At(ce);At(K===!1?g:0),function(){for(ce=0;ce<=g;ce++)for(ge=0;ge<=L;ge++)We.x=ce/g,We.y=ge/L,mt.push(We.x,We.y)}(),function(){for(ge=1;ge<=g;ge++)for(ce=1;ce<=L;ce++){var nn=(L+1)*(ge-1)+(ce-1),fn=(L+1)*ge+(ce-1),An=(L+1)*ge+ce,zn=(L+1)*(ge-1)+ce;Tt.push(nn,fn,zn),Tt.push(fn,An,zn)}}()})(),this.setIndex(Tt),this.setAttribute("position",new Fr(ot,3)),this.setAttribute("normal",new Fr(Oe,3)),this.setAttribute("uv",new Fr(mt,2))}function fs(u,g,C,L,K,ie,ce){Fa.call(this),this.type="TorusKnotGeometry",this.parameters={radius:u,tube:g,tubularSegments:C,radialSegments:L,p:K,q:ie},ce!==void 0&&console.warn("THREE.TorusKnotGeometry: heightScale has been deprecated. Use .scale( x, y, z ) instead."),this.fromBufferGeometry(new Ws(u,g,C,L,K,ie)),this.mergeVertices()}function Ws(u,g,C,L,K,ie){qi.call(this),this.type="TorusKnotBufferGeometry",this.parameters={radius:u,tube:g,tubularSegments:C,radialSegments:L,p:K,q:ie},u=u||1,g=g||.4,C=Math.floor(C)||64,L=Math.floor(L)||8,K=K||2,ie=ie||3;var ce,ge,Ee=[],Ae=[],We=[],tt=[],ot=new Kt,Oe=new Kt,mt=new Kt,Tt=new Kt,At=new Kt,nn=new Kt,fn=new Kt;for(ce=0;ce<=C;++ce){var An=ce/C*K*Math.PI*2;for(Er(An,K,ie,u,mt),Er(.01+An,K,ie,u,Tt),nn.subVectors(Tt,mt),fn.addVectors(Tt,mt),At.crossVectors(nn,fn),fn.crossVectors(At,nn),At.normalize(),fn.normalize(),ge=0;ge<=L;++ge){var zn=ge/L*Math.PI*2,Dn=-g*Math.cos(zn),Qn=g*Math.sin(zn);ot.x=mt.x+(Dn*fn.x+Qn*At.x),ot.y=mt.y+(Dn*fn.y+Qn*At.y),ot.z=mt.z+(Dn*fn.z+Qn*At.z),Ae.push(ot.x,ot.y,ot.z),Oe.subVectors(ot,mt).normalize(),We.push(Oe.x,Oe.y,Oe.z),tt.push(ce/C),tt.push(ge/L)}}for(ge=1;ge<=C;ge++)for(ce=1;ce<=L;ce++){var Pn=(L+1)*(ge-1)+(ce-1),cr=(L+1)*ge+(ce-1),Cr=(L+1)*ge+ce,_r=(L+1)*(ge-1)+ce;Ee.push(Pn,cr,_r),Ee.push(cr,Cr,_r)}function Er(Vr,si,Ar,vr,yi){var Bi=Math.cos(Vr),ya=Math.sin(Vr),sa=Ar/si*Vr,oa=Math.cos(sa);yi.x=vr*(2+oa)*.5*Bi,yi.y=vr*(2+oa)*ya*.5,yi.z=vr*Math.sin(sa)*.5}this.setIndex(Ee),this.setAttribute("position",new Fr(Ae,3)),this.setAttribute("normal",new Fr(We,3)),this.setAttribute("uv",new Fr(tt,2))}function pp(u,g,C,L,K){Fa.call(this),this.type="TorusGeometry",this.parameters={radius:u,tube:g,radialSegments:C,tubularSegments:L,arc:K},this.fromBufferGeometry(new Rc(u,g,C,L,K)),this.mergeVertices()}function Rc(u,g,C,L,K){qi.call(this),this.type="TorusBufferGeometry",this.parameters={radius:u,tube:g,radialSegments:C,tubularSegments:L,arc:K},u=u||1,g=g||.4,C=Math.floor(C)||8,L=Math.floor(L)||6,K=K||2*Math.PI;var ie,ce,ge=[],Ee=[],Ae=[],We=[],tt=new Kt,ot=new Kt,Oe=new Kt;for(ie=0;ie<=C;ie++)for(ce=0;ce<=L;ce++){var mt=ce/L*K,Tt=ie/C*Math.PI*2;ot.x=(u+g*Math.cos(Tt))*Math.cos(mt),ot.y=(u+g*Math.cos(Tt))*Math.sin(mt),ot.z=g*Math.sin(Tt),Ee.push(ot.x,ot.y,ot.z),tt.x=u*Math.cos(mt),tt.y=u*Math.sin(mt),Oe.subVectors(ot,tt).normalize(),Ae.push(Oe.x,Oe.y,Oe.z),We.push(ce/L),We.push(ie/C)}for(ie=1;ie<=C;ie++)for(ce=1;ce<=L;ce++){var At=(L+1)*ie+ce-1,nn=(L+1)*(ie-1)+ce-1,fn=(L+1)*(ie-1)+ce,An=(L+1)*ie+ce;ge.push(At,nn,An),ge.push(nn,fn,An)}this.setIndex(ge),this.setAttribute("position",new Fr(Ee,3)),this.setAttribute("normal",new Fr(Ae,3)),this.setAttribute("uv",new Fr(We,2))}function Td(u,g,C,L,K){var ie,ce;if(K===0<function(ge,Ee,Ae,We){for(var tt=0,ot=Ee,Oe=Ae-We;ot<Ae;ot+=We)tt+=(ge[Oe]-ge[ot])*(ge[ot+1]+ge[Oe+1]),Oe=ot;return tt}(u,g,C,L))for(ie=g;ie<C;ie+=L)ce=Gh(ie,u[ie],u[ie+1],ce);else for(ie=C-L;g<=ie;ie-=L)ce=Gh(ie,u[ie],u[ie+1],ce);return ce&&nd(ce,ce.next)&&(Dd(ce),ce=ce.next),ce}function Wd(u,g){if(!u)return u;g=g||u;var C,L=u;do if(C=!1,L.steiner||!nd(L,L.next)&&xs(L.prev,L,L.next)!==0)L=L.next;else{if(Dd(L),(L=g=L.prev)===L.next)break;C=!0}while(C||L!==g);return g}function fh(u,g,C,L,K,ie,ce){if(u){!ce&&ie&&function(We,tt,ot,Oe){for(var mt=We;mt.z===null&&(mt.z=sc(mt.x,mt.y,tt,ot,Oe)),mt.prevZ=mt.prev,mt.nextZ=mt.next,(mt=mt.next)!==We;);mt.prevZ.nextZ=null,mt.prevZ=null,function(Tt){var At,nn,fn,An,zn,Dn,Qn,Pn,cr=1;do{for(nn=Tt,zn=Tt=null,Dn=0;nn;){for(Dn++,fn=nn,At=Qn=0;At<cr&&(Qn++,fn=fn.nextZ);At++);for(Pn=cr;0<Qn||0<Pn&&fn;)Qn!==0&&(Pn===0||!fn||nn.z<=fn.z)?(nn=(An=nn).nextZ,Qn--):(fn=(An=fn).nextZ,Pn--),zn?zn.nextZ=An:Tt=An,An.prevZ=zn,zn=An;nn=fn}zn.nextZ=null,cr*=2}while(1<Dn)}(mt)}(u,L,K,ie);for(var ge,Ee,Ae=u;u.prev!==u.next;)if(ge=u.prev,Ee=u.next,ie?oc(u,L,K,ie):Ip(u))g.push(ge.i/C),g.push(u.i/C),g.push(Ee.i/C),Dd(u),u=Ee.next,Ae=Ee.next;else if((u=Ee)===Ae){ce?ce===1?fh(u=Yd(u,g,C),g,C,L,K,ie,2):ce===2&&Uu(u,g,C,L,K,ie):fh(Wd(u),g,C,L,K,ie,1);break}}}function Ip(u){var g=u.prev,C=u,L=u.next;if(!(0<=xs(g,C,L))){for(var K=u.next.next;K!==u.prev;){if($u(g.x,g.y,C.x,C.y,L.x,L.y,K.x,K.y)&&0<=xs(K.prev,K,K.next))return;K=K.next}return 1}}function oc(u,g,C,L){var K=u.prev,ie=u,ce=u.next;if(!(0<=xs(K,ie,ce))){for(var ge=K.x<ie.x?K.x<ce.x?K.x:ce.x:ie.x<ce.x?ie.x:ce.x,Ee=K.y<ie.y?K.y<ce.y?K.y:ce.y:ie.y<ce.y?ie.y:ce.y,Ae=K.x>ie.x?K.x>ce.x?K.x:ce.x:ie.x>ce.x?ie.x:ce.x,We=K.y>ie.y?K.y>ce.y?K.y:ce.y:ie.y>ce.y?ie.y:ce.y,tt=sc(ge,Ee,g,C,L),ot=sc(Ae,We,g,C,L),Oe=u.prevZ,mt=u.nextZ;Oe&&Oe.z>=tt&&mt&&mt.z<=ot;){if(Oe!==u.prev&&Oe!==u.next&&$u(K.x,K.y,ie.x,ie.y,ce.x,ce.y,Oe.x,Oe.y)&&0<=xs(Oe.prev,Oe,Oe.next)||(Oe=Oe.prevZ,mt!==u.prev&&mt!==u.next&&$u(K.x,K.y,ie.x,ie.y,ce.x,ce.y,mt.x,mt.y)&&0<=xs(mt.prev,mt,mt.next)))return;mt=mt.nextZ}for(;Oe&&Oe.z>=tt;){if(Oe!==u.prev&&Oe!==u.next&&$u(K.x,K.y,ie.x,ie.y,ce.x,ce.y,Oe.x,Oe.y)&&0<=xs(Oe.prev,Oe,Oe.next))return;Oe=Oe.prevZ}for(;mt&&mt.z<=ot;){if(mt!==u.prev&&mt!==u.next&&$u(K.x,K.y,ie.x,ie.y,ce.x,ce.y,mt.x,mt.y)&&0<=xs(mt.prev,mt,mt.next))return;mt=mt.nextZ}return 1}}function Yd(u,g,C){var L=u;do{var K=L.prev,ie=L.next.next;!nd(K,ie)&&ms(K,L,L.next,ie)&&mh(K,ie)&&mh(ie,K)&&(g.push(K.i/C),g.push(L.i/C),g.push(ie.i/C),Dd(L),Dd(L.next),L=u=ie),L=L.next}while(L!==u);return L}function Uu(u,g,C,L,K,ie){var ce,ge,Ee=u;do{for(var Ae=Ee.next.next;Ae!==Ee.prev;){if(Ee.i!==Ae.i&&(ge=Ae,(ce=Ee).next.i!==ge.i&&ce.prev.i!==ge.i&&!function(tt,ot){var Oe=tt;do{if(Oe.i!==tt.i&&Oe.next.i!==tt.i&&Oe.i!==ot.i&&Oe.next.i!==ot.i&&ms(Oe,Oe.next,tt,ot))return 1;Oe=Oe.next}while(Oe!==tt)}(ce,ge)&&mh(ce,ge)&&mh(ge,ce)&&function(tt,ot){for(var Oe=tt,mt=!1,Tt=(tt.x+ot.x)/2,At=(tt.y+ot.y)/2;Oe.y>At!=Oe.next.y>At&&Oe.next.y!==Oe.y&&Tt<(Oe.next.x-Oe.x)*(At-Oe.y)/(Oe.next.y-Oe.y)+Oe.x&&(mt=!mt),(Oe=Oe.next)!==tt;);return mt}(ce,ge))){var We=Pp(Ee,Ae);return Ee=Wd(Ee,Ee.next),We=Wd(We,We.next),fh(Ee,g,C,L,K,ie),void fh(We,g,C,L,K,ie)}Ae=Ae.next}Ee=Ee.next}while(Ee!==u)}function Pf(u,g){return u.x-g.x}function Lc(u,g){if(g=function(L,K){var ie,ce=K,ge=L.x,Ee=L.y,Ae=-1/0;do{if(Ee<=ce.y&&Ee>=ce.next.y&&ce.next.y!==ce.y){var We=ce.x+(Ee-ce.y)*(ce.next.x-ce.x)/(ce.next.y-ce.y);if(We<=ge&&Ae<We){if((Ae=We)===ge){if(Ee===ce.y)return ce;if(Ee===ce.next.y)return ce.next}ie=ce.x<ce.next.x?ce:ce.next}}ce=ce.next}while(ce!==K);if(!ie)return null;if(ge===Ae)return ie.prev;var tt,ot=ie,Oe=ie.x,mt=ie.y,Tt=1/0;for(ce=ie.next;ce!==ot;)ge>=ce.x&&ce.x>=Oe&&ge!==ce.x&&$u(Ee<mt?ge:Ae,Ee,Oe,mt,Ee<mt?Ae:ge,Ee,ce.x,ce.y)&&((tt=Math.abs(Ee-ce.y)/(ge-ce.x))<Tt||tt===Tt&&ce.x>ie.x)&&mh(ce,L)&&(ie=ce,Tt=tt),ce=ce.next;return ie}(u,g)){var C=Pp(g,u);Wd(C,C.next)}}function sc(u,g,C,L,K){return(u=1431655765&((u=858993459&((u=252645135&((u=16711935&((u=32767*(u-C)*K)|u<<8))|u<<4))|u<<2))|u<<1))|(g=1431655765&((g=858993459&((g=252645135&((g=16711935&((g=32767*(g-L)*K)|g<<8))|g<<4))|g<<2))|g<<1))<<1}function so(u){for(var g=u,C=u;(g.x<C.x||g.x===C.x&&g.y<C.y)&&(C=g),(g=g.next)!==u;);return C}function $u(u,g,C,L,K,ie,ce,ge){return 0<=(K-ce)*(g-ge)-(u-ce)*(ie-ge)&&0<=(u-ce)*(L-ge)-(C-ce)*(g-ge)&&0<=(C-ce)*(ie-ge)-(K-ce)*(L-ge)}function xs(u,g,C){return(g.y-u.y)*(C.x-g.x)-(g.x-u.x)*(C.y-g.y)}function nd(u,g){return u.x===g.x&&u.y===g.y}function ms(u,g,C,L){return nd(u,C)&&nd(g,L)||nd(u,L)&&nd(C,g)||0<xs(u,g,C)!=0<xs(u,g,L)&&0<xs(C,L,u)!=0<xs(C,L,g)}function mh(u,g){return xs(u.prev,u,u.next)<0?0<=xs(u,g,u.next)&&0<=xs(u,u.prev,g):xs(u,g,u.prev)<0||xs(u,u.next,g)<0}function Pp(u,g){var C=new Rp(u.i,u.x,u.y),L=new Rp(g.i,g.x,g.y),K=u.next,ie=g.prev;return(u.next=g).prev=u,(C.next=K).prev=C,(L.next=C).prev=L,(ie.next=L).prev=ie,L}function Gh(u,g,C,L){var K=new Rp(u,g,C);return L?(K.next=L.next,(K.prev=L).next.prev=K,L.next=K):(K.prev=K).next=K,K}function Dd(u){u.next.prev=u.prev,u.prev.next=u.next,u.prevZ&&(u.prevZ.nextZ=u.nextZ),u.nextZ&&(u.nextZ.prevZ=u.prevZ)}function Rp(u,g,C){this.i=u,this.x=g,this.y=C,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}Du.prototype=Object.assign(Object.create(Sn.prototype),{constructor:Du,isPoints:!0,raycast:function(u,g){var C=this.geometry,L=this.matrixWorld,K=u.params.Points.threshold;if(C.boundingSphere===null&&C.computeBoundingSphere(),yl.copy(C.boundingSphere),yl.applyMatrix4(L),yl.radius+=K,u.ray.intersectsSphere(yl)!==!1){Cd.getInverse(L),Tu.copy(u.ray).applyMatrix4(Cd);var ie=K/((this.scale.x+this.scale.y+this.scale.z)/3),ce=ie*ie;if(C.isBufferGeometry){var ge=C.index,Ee=C.attributes.position.array;if(ge!==null)for(var Ae=ge.array,We=0,tt=Ae.length;We<tt;We++){var ot=Ae[We];cp.fromArray(Ee,3*ot),Sd(cp,ot,ce,L,u,g,this)}else{We=0;for(var Oe=Ee.length/3;We<Oe;We++)cp.fromArray(Ee,3*We),Sd(cp,We,ce,L,u,g,this)}}else{var mt=C.vertices;for(We=0,Oe=mt.length;We<Oe;We++)Sd(mt[We],We,ce,L,u,g,this)}}},updateMorphTargets:function(){var u,g,C,L=this.geometry;if(L.isBufferGeometry){var K=L.morphAttributes,ie=Object.keys(K);if(0<ie.length){var ce=K[ie[0]];if(ce!==void 0)for(this.morphTargetInfluences=[],this.morphTargetDictionary={},u=0,g=ce.length;u<g;u++)C=ce[u].name||String(u),this.morphTargetInfluences.push(0),this.morphTargetDictionary[C]=u}}else{var ge=L.morphTargets;ge!==void 0&&0<ge.length&&console.error("THREE.Points.updateMorphTargets() does not support THREE.Geometry. Use THREE.BufferGeometry instead.")}},clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}}),Hd.prototype=Object.assign(Object.create(vo.prototype),{constructor:Hd,isVideoTexture:!0,update:function(){var u=this.image;u.readyState>=u.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}),((kp.prototype=Object.create(vo.prototype)).constructor=kp).prototype.isCompressedTexture=!0,((dh.prototype=Object.create(vo.prototype)).constructor=dh).prototype.isCanvasTexture=!0,((dp.prototype=Object.create(vo.prototype)).constructor=dp).prototype.isDepthTexture=!0,(hp.prototype=Object.create(qi.prototype)).constructor=hp,(vl.prototype=Object.create(Fa.prototype)).constructor=vl,(Ic.prototype=Object.create(qi.prototype)).constructor=Ic,(hh.prototype=Object.create(Fa.prototype)).constructor=hh,(_l.prototype=Object.create(qi.prototype)).constructor=_l,(ro.prototype=Object.create(Fa.prototype)).constructor=ro,(Nh.prototype=Object.create(_l.prototype)).constructor=Nh,(du.prototype=Object.create(Fa.prototype)).constructor=du,(Hs.prototype=Object.create(_l.prototype)).constructor=Hs,(Pc.prototype=Object.create(Fa.prototype)).constructor=Pc,(ph.prototype=Object.create(_l.prototype)).constructor=ph,(Vh.prototype=Object.create(Fa.prototype)).constructor=Vh,(Au.prototype=Object.create(_l.prototype)).constructor=Au,(zh.prototype=Object.create(Fa.prototype)).constructor=zh,((Ed.prototype=Object.create(qi.prototype)).constructor=Ed).prototype.toJSON=function(){var u=qi.prototype.toJSON.call(this);return u.path=this.parameters.path.toJSON(),u},(fs.prototype=Object.create(Fa.prototype)).constructor=fs,(Ws.prototype=Object.create(qi.prototype)).constructor=Ws,(pp.prototype=Object.create(Fa.prototype)).constructor=pp,(Rc.prototype=Object.create(qi.prototype)).constructor=Rc;var rd={area:function(u){for(var g=u.length,C=0,L=g-1,K=0;K<g;L=K++)C+=u[L].x*u[K].y-u[K].x*u[L].y;return .5*C},isClockWise:function(u){return rd.area(u)<0},triangulateShape:function(u,g){var C=[],L=[],K=[];rf(u),jh(C,u);var ie=u.length;g.forEach(rf);for(var ce=0;ce<g.length;ce++)L.push(ie),ie+=g[ce].length,jh(C,g[ce]);var ge=function(Ee,Ae,We){We=We||2;var tt,ot,Oe,mt,Tt,At,nn,fn=Ae&&Ae.length,An=fn?Ae[0]*We:Ee.length,zn=Td(Ee,0,An,We,!0),Dn=[];if(!zn||zn.next===zn.prev)return Dn;if(fn&&(zn=function(Pn,cr,Cr,_r){var Er,Vr,si,Ar=[];for(Er=0,Vr=cr.length;Er<Vr;Er++)(si=Td(Pn,cr[Er]*_r,Er<Vr-1?cr[Er+1]*_r:Pn.length,_r,!1))===si.next&&(si.steiner=!0),Ar.push(so(si));for(Ar.sort(Pf),Er=0;Er<Ar.length;Er++)Lc(Ar[Er],Cr),Cr=Wd(Cr,Cr.next);return Cr}(Ee,Ae,zn,We)),Ee.length>80*We){tt=Oe=Ee[0],ot=mt=Ee[1];for(var Qn=We;Qn<An;Qn+=We)(Tt=Ee[Qn])<tt&&(tt=Tt),(At=Ee[Qn+1])<ot&&(ot=At),Oe<Tt&&(Oe=Tt),mt<At&&(mt=At);nn=(nn=Math.max(Oe-tt,mt-ot))!==0?1/nn:0}return fh(zn,Dn,We,tt,ot,nn),Dn}(C,L);for(ce=0;ce<ge.length;ce+=3)K.push(ge.slice(ce,ce+3));return K}};function rf(u){var g=u.length;2<g&&u[g-1].equals(u[0])&&u.pop()}function jh(u,g){for(var C=0;C<g.length;C++)u.push(g[C].x),u.push(g[C].y)}function Ad(u,g){Fa.call(this),this.type="ExtrudeGeometry",this.parameters={shapes:u,options:g},this.fromBufferGeometry(new vc(u,g)),this.mergeVertices()}function vc(u,g){qi.call(this),this.type="ExtrudeBufferGeometry",this.parameters={shapes:u,options:g};for(var C=this,L=[],K=[],ie=0,ce=(u=Array.isArray(u)?u:[u]).length;ie<ce;ie++)ge(u[ie]);function ge(Ee){var Ae=[],We=g.curveSegments!==void 0?g.curveSegments:12,tt=g.steps!==void 0?g.steps:1,ot=g.depth!==void 0?g.depth:100,Oe=g.bevelEnabled===void 0||g.bevelEnabled,mt=g.bevelThickness!==void 0?g.bevelThickness:6,Tt=g.bevelSize!==void 0?g.bevelSize:mt-2,At=g.bevelOffset!==void 0?g.bevelOffset:0,nn=g.bevelSegments!==void 0?g.bevelSegments:3,fn=g.extrudePath,An=g.UVGenerator!==void 0?g.UVGenerator:af;g.amount!==void 0&&(console.warn("THREE.ExtrudeBufferGeometry: amount has been renamed to depth."),ot=g.amount);var zn,Dn,Qn,Pn,cr,Cr,_r,Er,Vr=!1;fn&&(zn=fn.getSpacedPoints(tt),Oe=!(Vr=!0),Dn=fn.computeFrenetFrames(tt,!1),Qn=new Kt,Pn=new Kt,cr=new Kt),Oe||(At=Tt=mt=nn=0);var si=Ee.extractPoints(We),Ar=si.shape,vr=si.holes;if(!rd.isClockWise(Ar))for(Ar=Ar.reverse(),_r=0,Er=vr.length;_r<Er;_r++)Cr=vr[_r],rd.isClockWise(Cr)&&(vr[_r]=Cr.reverse());var yi=rd.triangulateShape(Ar,vr),Bi=Ar;for(_r=0,Er=vr.length;_r<Er;_r++)Cr=vr[_r],Ar=Ar.concat(Cr);function ya(To,Fo,ls){return Fo||console.error("THREE.ExtrudeGeometry: vec does not exist"),Fo.clone().multiplyScalar(ls).add(To)}var sa,oa,$a,ta,Mn,Wn,ai=Ar.length,Zr=yi.length;function Ga(To,Fo,ls){var Ll,us,ml,Ru=To.x-Fo.x,qu=To.y-Fo.y,Od=ls.x-To.x,Fd=ls.y-To.y,qp=Ru*Ru+qu*qu,Df=Ru*Fd-qu*Od;if(Math.abs(Df)>Number.EPSILON){var Tp=Math.sqrt(qp),Qh=Math.sqrt(Od*Od+Fd*Fd),Dp=Fo.x-qu/Tp,xc=Fo.y+Ru/Tp,Ap=((ls.x-Fd/Qh-Dp)*Fd-(ls.y+Od/Qh-xc)*Od)/(Ru*Fd-qu*Od),Af=(Ll=Dp+Ru*Ap-To.x)*Ll+(us=xc+qu*Ap-To.y)*us;if(Af<=2)return new Lr(Ll,us);ml=Math.sqrt(Af/2)}else{var gu=!1;Ru>Number.EPSILON?Od>Number.EPSILON&&(gu=!0):Ru<-Number.EPSILON?Od<-Number.EPSILON&&(gu=!0):Math.sign(qu)===Math.sign(Fd)&&(gu=!0),ml=gu?(Ll=-qu,us=Ru,Math.sqrt(qp)):(Ll=Ru,us=qu,Math.sqrt(qp/2))}return new Lr(Ll/ml,us/ml)}for(var ia=[],Tr=0,la=Bi.length,qa=la-1,lr=Tr+1;Tr<la;Tr++,qa++,lr++)qa===la&&(qa=0),lr===la&&(lr=0),ia[Tr]=Ga(Bi[Tr],Bi[qa],Bi[lr]);var Zi,$i,Ha=[],Ei=ia.concat();for(_r=0,Er=vr.length;_r<Er;_r++){for(Cr=vr[_r],Zi=[],Tr=0,qa=(la=Cr.length)-1,lr=Tr+1;Tr<la;Tr++,qa++,lr++)qa===la&&(qa=0),lr===la&&(lr=0),Zi[Tr]=Ga(Cr[Tr],Cr[qa],Cr[lr]);Ha.push(Zi),Ei=Ei.concat(Zi)}for(sa=0;sa<nn;sa++){for($a=sa/nn,ta=mt*Math.cos($a*Math.PI/2),oa=Tt*Math.sin($a*Math.PI/2)+At,Tr=0,la=Bi.length;Tr<la;Tr++)go((Mn=ya(Bi[Tr],ia[Tr],oa)).x,Mn.y,-ta);for(_r=0,Er=vr.length;_r<Er;_r++)for(Cr=vr[_r],Zi=Ha[_r],Tr=0,la=Cr.length;Tr<la;Tr++)go((Mn=ya(Cr[Tr],Zi[Tr],oa)).x,Mn.y,-ta)}for(oa=Tt+At,Tr=0;Tr<ai;Tr++)Mn=Oe?ya(Ar[Tr],Ei[Tr],oa):Ar[Tr],Vr?(Pn.copy(Dn.normals[0]).multiplyScalar(Mn.x),Qn.copy(Dn.binormals[0]).multiplyScalar(Mn.y),cr.copy(zn[0]).add(Pn).add(Qn),go(cr.x,cr.y,cr.z)):go(Mn.x,Mn.y,0);for($i=1;$i<=tt;$i++)for(Tr=0;Tr<ai;Tr++)Mn=Oe?ya(Ar[Tr],Ei[Tr],oa):Ar[Tr],Vr?(Pn.copy(Dn.normals[$i]).multiplyScalar(Mn.x),Qn.copy(Dn.binormals[$i]).multiplyScalar(Mn.y),cr.copy(zn[$i]).add(Pn).add(Qn),go(cr.x,cr.y,cr.z)):go(Mn.x,Mn.y,ot/tt*$i);for(sa=nn-1;0<=sa;sa--){for($a=sa/nn,ta=mt*Math.cos($a*Math.PI/2),oa=Tt*Math.sin($a*Math.PI/2)+At,Tr=0,la=Bi.length;Tr<la;Tr++)go((Mn=ya(Bi[Tr],ia[Tr],oa)).x,Mn.y,ot+ta);for(_r=0,Er=vr.length;_r<Er;_r++)for(Cr=vr[_r],Zi=Ha[_r],Tr=0,la=Cr.length;Tr<la;Tr++)Mn=ya(Cr[Tr],Zi[Tr],oa),Vr?go(Mn.x,Mn.y+zn[tt-1].y,zn[tt-1].x+ta):go(Mn.x,Mn.y,ot+ta)}function mo(To,Fo){var ls,Ll;for(Tr=To.length;0<=--Tr;){(Ll=(ls=Tr)-1)<0&&(Ll=To.length-1);var us=0,ml=tt+2*nn;for(us=0;us<ml;us++){var Ru=ai*us,qu=ai*(us+1);Pu(Fo+ls+Ru,Fo+Ll+Ru,Fo+Ll+qu,Fo+ls+qu)}}}function go(To,Fo,ls){Ae.push(To),Ae.push(Fo),Ae.push(ls)}function Bs(To,Fo,ls){uo(To),uo(Fo),uo(ls);var Ll=L.length/3,us=An.generateTopUV(C,L,Ll-3,Ll-2,Ll-1);tl(us[0]),tl(us[1]),tl(us[2])}function Pu(To,Fo,ls,Ll){uo(To),uo(Fo),uo(Ll),uo(Fo),uo(ls),uo(Ll);var us=L.length/3,ml=An.generateSideWallUV(C,L,us-6,us-3,us-2,us-1);tl(ml[0]),tl(ml[1]),tl(ml[3]),tl(ml[1]),tl(ml[2]),tl(ml[3])}function uo(To){L.push(Ae[3*To+0]),L.push(Ae[3*To+1]),L.push(Ae[3*To+2])}function tl(To){K.push(To.x),K.push(To.y)}(function(){var To=L.length/3;if(Oe){var Fo=0,ls=ai*Fo;for(Tr=0;Tr<Zr;Tr++)Bs((Wn=yi[Tr])[2]+ls,Wn[1]+ls,Wn[0]+ls);for(ls=ai*(Fo=tt+2*nn),Tr=0;Tr<Zr;Tr++)Bs((Wn=yi[Tr])[0]+ls,Wn[1]+ls,Wn[2]+ls)}else{for(Tr=0;Tr<Zr;Tr++)Bs((Wn=yi[Tr])[2],Wn[1],Wn[0]);for(Tr=0;Tr<Zr;Tr++)Bs((Wn=yi[Tr])[0]+ai*tt,Wn[1]+ai*tt,Wn[2]+ai*tt)}C.addGroup(To,L.length/3-To,0)})(),function(){var To=L.length/3,Fo=0;for(mo(Bi,Fo),Fo+=Bi.length,_r=0,Er=vr.length;_r<Er;_r++)mo(Cr=vr[_r],Fo),Fo+=Cr.length;C.addGroup(To,L.length/3-To,1)}()}this.setAttribute("position",new Fr(L,3)),this.setAttribute("uv",new Fr(K,2)),this.computeVertexNormals()}((Ad.prototype=Object.create(Fa.prototype)).constructor=Ad).prototype.toJSON=function(){var u=Fa.prototype.toJSON.call(this);return Uh(this.parameters.shapes,this.parameters.options,u)},((vc.prototype=Object.create(qi.prototype)).constructor=vc).prototype.toJSON=function(){var u=qi.prototype.toJSON.call(this);return Uh(this.parameters.shapes,this.parameters.options,u)};var af={generateTopUV:function(u,g,C,L,K){var ie=g[3*C],ce=g[3*C+1],ge=g[3*L],Ee=g[3*L+1],Ae=g[3*K],We=g[3*K+1];return[new Lr(ie,ce),new Lr(ge,Ee),new Lr(Ae,We)]},generateSideWallUV:function(u,g,C,L,K,ie){var ce=g[3*C],ge=g[3*C+1],Ee=g[3*C+2],Ae=g[3*L],We=g[3*L+1],tt=g[3*L+2],ot=g[3*K],Oe=g[3*K+1],mt=g[3*K+2],Tt=g[3*ie],At=g[3*ie+1],nn=g[3*ie+2];return Math.abs(ge-We)<.01?[new Lr(ce,1-Ee),new Lr(Ae,1-tt),new Lr(ot,1-mt),new Lr(Tt,1-nn)]:[new Lr(ge,1-Ee),new Lr(We,1-tt),new Lr(Oe,1-mt),new Lr(At,1-nn)]}};function Uh(u,g,C){if(C.shapes=[],Array.isArray(u))for(var L=0,K=u.length;L<K;L++){var ie=u[L];C.shapes.push(ie.uuid)}else C.shapes.push(u.uuid);return g.extrudePath!==void 0&&(C.options.extrudePath=g.extrudePath.toJSON()),C}function al(u,g){Fa.call(this),this.type="TextGeometry",this.parameters={text:u,parameters:g},this.fromBufferGeometry(new Ul(u,g)),this.mergeVertices()}function Ul(u,g){var C=(g=g||{}).font;if(!C||!C.isFont)return console.error("THREE.TextGeometry: font parameter is not an instance of THREE.Font."),new Fa;var L=C.generateShapes(u,g.size);g.depth=g.height!==void 0?g.height:50,g.bevelThickness===void 0&&(g.bevelThickness=10),g.bevelSize===void 0&&(g.bevelSize=8),g.bevelEnabled===void 0&&(g.bevelEnabled=!1),vc.call(this,L,g),this.type="TextBufferGeometry"}function id(u,g,C,L,K,ie,ce){Fa.call(this),this.type="SphereGeometry",this.parameters={radius:u,widthSegments:g,heightSegments:C,phiStart:L,phiLength:K,thetaStart:ie,thetaLength:ce},this.fromBufferGeometry(new qd(u,g,C,L,K,ie,ce)),this.mergeVertices()}function qd(u,g,C,L,K,ie,ce){qi.call(this),this.type="SphereBufferGeometry",this.parameters={radius:u,widthSegments:g,heightSegments:C,phiStart:L,phiLength:K,thetaStart:ie,thetaLength:ce},u=u||1,g=Math.max(3,Math.floor(g)||8),C=Math.max(2,Math.floor(C)||6),L=L!==void 0?L:0,K=K!==void 0?K:2*Math.PI,ie=ie!==void 0?ie:0,ce=ce!==void 0?ce:Math.PI;var ge,Ee,Ae=Math.min(ie+ce,Math.PI),We=0,tt=[],ot=new Kt,Oe=new Kt,mt=[],Tt=[],At=[],nn=[];for(Ee=0;Ee<=C;Ee++){var fn=[],An=Ee/C,zn=0;for(Ee==0&&ie==0?zn=.5/g:Ee==C&&Ae==Math.PI&&(zn=-.5/g),ge=0;ge<=g;ge++){var Dn=ge/g;ot.x=-u*Math.cos(L+Dn*K)*Math.sin(ie+An*ce),ot.y=u*Math.cos(ie+An*ce),ot.z=u*Math.sin(L+Dn*K)*Math.sin(ie+An*ce),Tt.push(ot.x,ot.y,ot.z),Oe.copy(ot).normalize(),At.push(Oe.x,Oe.y,Oe.z),nn.push(Dn+zn,1-An),fn.push(We++)}tt.push(fn)}for(Ee=0;Ee<C;Ee++)for(ge=0;ge<g;ge++){var Qn=tt[Ee][ge+1],Pn=tt[Ee][ge],cr=tt[Ee+1][ge],Cr=tt[Ee+1][ge+1];(Ee!==0||0<ie)&&mt.push(Qn,Pn,Cr),(Ee!==C-1||Ae<Math.PI)&&mt.push(Pn,cr,Cr)}this.setIndex(mt),this.setAttribute("position",new Fr(Tt,3)),this.setAttribute("normal",new Fr(At,3)),this.setAttribute("uv",new Fr(nn,2))}function Xd(u,g,C,L,K,ie){Fa.call(this),this.type="RingGeometry",this.parameters={innerRadius:u,outerRadius:g,thetaSegments:C,phiSegments:L,thetaStart:K,thetaLength:ie},this.fromBufferGeometry(new ad(u,g,C,L,K,ie)),this.mergeVertices()}function ad(u,g,C,L,K,ie){qi.call(this),this.type="RingBufferGeometry",this.parameters={innerRadius:u,outerRadius:g,thetaSegments:C,phiSegments:L,thetaStart:K,thetaLength:ie},u=u||.5,g=g||1,K=K!==void 0?K:0,ie=ie!==void 0?ie:2*Math.PI,C=C!==void 0?Math.max(3,C):8;var ce,ge,Ee,Ae=[],We=[],tt=[],ot=[],Oe=u,mt=(g-u)/(L=L!==void 0?Math.max(1,L):1),Tt=new Kt,At=new Lr;for(ge=0;ge<=L;ge++){for(Ee=0;Ee<=C;Ee++)ce=K+Ee/C*ie,Tt.x=Oe*Math.cos(ce),Tt.y=Oe*Math.sin(ce),We.push(Tt.x,Tt.y,Tt.z),tt.push(0,0,1),At.x=(Tt.x/g+1)/2,At.y=(Tt.y/g+1)/2,ot.push(At.x,At.y);Oe+=mt}for(ge=0;ge<L;ge++){var nn=ge*(C+1);for(Ee=0;Ee<C;Ee++){var fn=ce=Ee+nn,An=ce+C+1,zn=ce+C+2,Dn=ce+1;Ae.push(fn,An,Dn),Ae.push(An,zn,Dn)}}this.setIndex(Ae),this.setAttribute("position",new Fr(We,3)),this.setAttribute("normal",new Fr(tt,3)),this.setAttribute("uv",new Fr(ot,2))}function fp(u,g,C,L){Fa.call(this),this.type="LatheGeometry",this.parameters={points:u,segments:g,phiStart:C,phiLength:L},this.fromBufferGeometry(new $h(u,g,C,L)),this.mergeVertices()}function $h(u,g,C,L){qi.call(this),this.type="LatheBufferGeometry",this.parameters={points:u,segments:g,phiStart:C,phiLength:L},g=Math.floor(g)||12,C=C||0,L=L||2*Math.PI,L=Ta.clamp(L,0,2*Math.PI);var K,ie,ce,ge=[],Ee=[],Ae=[],We=1/g,tt=new Kt,ot=new Lr;for(ie=0;ie<=g;ie++){var Oe=C+ie*We*L,mt=Math.sin(Oe),Tt=Math.cos(Oe);for(ce=0;ce<=u.length-1;ce++)tt.x=u[ce].x*mt,tt.y=u[ce].y,tt.z=u[ce].x*Tt,Ee.push(tt.x,tt.y,tt.z),ot.x=ie/g,ot.y=ce/(u.length-1),Ae.push(ot.x,ot.y)}for(ie=0;ie<g;ie++)for(ce=0;ce<u.length-1;ce++){var At=K=ce+ie*u.length,nn=K+u.length,fn=K+u.length+1,An=K+1;ge.push(At,nn,An),ge.push(nn,fn,An)}if(this.setIndex(ge),this.setAttribute("position",new Fr(Ee,3)),this.setAttribute("uv",new Fr(Ae,2)),this.computeVertexNormals(),L===2*Math.PI){var zn=this.attributes.normal.array,Dn=new Kt,Qn=new Kt,Pn=new Kt;for(K=g*u.length*3,ce=ie=0;ie<u.length;ie++,ce+=3)Dn.x=zn[ce+0],Dn.y=zn[ce+1],Dn.z=zn[ce+2],Qn.x=zn[K+ce+0],Qn.y=zn[K+ce+1],Qn.z=zn[K+ce+2],Pn.addVectors(Dn,Qn).normalize(),zn[ce+0]=zn[K+ce+0]=Pn.x,zn[ce+1]=zn[K+ce+1]=Pn.y,zn[ce+2]=zn[K+ce+2]=Pn.z}}function Oc(u,g){Fa.call(this),this.type="ShapeGeometry",typeof g=="object"&&(console.warn("THREE.ShapeGeometry: Options parameter has been removed."),g=g.curveSegments),this.parameters={shapes:u,curveSegments:g},this.fromBufferGeometry(new Fc(u,g)),this.mergeVertices()}function Fc(u,g){qi.call(this),this.type="ShapeBufferGeometry",this.parameters={shapes:u,curveSegments:g},g=g||12;var C=[],L=[],K=[],ie=[],ce=0,ge=0;if(Array.isArray(u)===!1)Ae(u);else for(var Ee=0;Ee<u.length;Ee++)Ae(u[Ee]),this.addGroup(ce,ge,Ee),ce+=ge,ge=0;function Ae(We){var tt,ot,Oe,mt=L.length/3,Tt=We.extractPoints(g),At=Tt.shape,nn=Tt.holes;for(rd.isClockWise(At)===!1&&(At=At.reverse()),tt=0,ot=nn.length;tt<ot;tt++)Oe=nn[tt],rd.isClockWise(Oe)===!0&&(nn[tt]=Oe.reverse());var fn=rd.triangulateShape(At,nn);for(tt=0,ot=nn.length;tt<ot;tt++)Oe=nn[tt],At=At.concat(Oe);for(tt=0,ot=At.length;tt<ot;tt++){var An=At[tt];L.push(An.x,An.y,0),K.push(0,0,1),ie.push(An.x,An.y)}for(tt=0,ot=fn.length;tt<ot;tt++){var zn=fn[tt],Dn=zn[0]+mt,Qn=zn[1]+mt,Pn=zn[2]+mt;C.push(Dn,Qn,Pn),ge+=3}}this.setIndex(C),this.setAttribute("position",new Fr(L,3)),this.setAttribute("normal",new Fr(K,3)),this.setAttribute("uv",new Fr(ie,2))}function of(u,g){if(g.shapes=[],Array.isArray(u))for(var C=0,L=u.length;C<L;C++){var K=u[C];g.shapes.push(K.uuid)}else g.shapes.push(u.uuid);return g}function gh(u,g){qi.call(this),this.type="EdgesGeometry",this.parameters={thresholdAngle:g},g=g!==void 0?g:1;var C,L,K,ie,ce=[],ge=Math.cos(Ta.DEG2RAD*g),Ee=[0,0],Ae={},We=["a","b","c"];u.isBufferGeometry?(ie=new Fa).fromBufferGeometry(u):ie=u.clone(),ie.mergeVertices(),ie.computeFaceNormals();for(var tt=ie.vertices,ot=ie.faces,Oe=0,mt=ot.length;Oe<mt;Oe++)for(var Tt=ot[Oe],At=0;At<3;At++)C=Tt[We[At]],L=Tt[We[(At+1)%3]],Ee[0]=Math.min(C,L),Ee[1]=Math.max(C,L),Ae[K=Ee[0]+","+Ee[1]]===void 0?Ae[K]={index1:Ee[0],index2:Ee[1],face1:Oe,face2:void 0}:Ae[K].face2=Oe;for(K in Ae){var nn=Ae[K];if(nn.face2===void 0||ot[nn.face1].normal.dot(ot[nn.face2].normal)<=ge){var fn=tt[nn.index1];ce.push(fn.x,fn.y,fn.z),fn=tt[nn.index2],ce.push(fn.x,fn.y,fn.z)}}this.setAttribute("position",new Fr(ce,3))}function kd(u,g,C,L,K,ie,ce,ge){Fa.call(this),this.type="CylinderGeometry",this.parameters={radiusTop:u,radiusBottom:g,height:C,radialSegments:L,heightSegments:K,openEnded:ie,thetaStart:ce,thetaLength:ge},this.fromBufferGeometry(new Pl(u,g,C,L,K,ie,ce,ge)),this.mergeVertices()}function Pl(u,g,C,L,K,ie,ce,ge){qi.call(this),this.type="CylinderBufferGeometry",this.parameters={radiusTop:u,radiusBottom:g,height:C,radialSegments:L,heightSegments:K,openEnded:ie,thetaStart:ce,thetaLength:ge};var Ee=this;u=u!==void 0?u:1,g=g!==void 0?g:1,C=C||1,L=Math.floor(L)||8,K=Math.floor(K)||1,ie=ie!==void 0&&ie,ce=ce!==void 0?ce:0,ge=ge!==void 0?ge:2*Math.PI;var Ae=[],We=[],tt=[],ot=[],Oe=0,mt=[],Tt=C/2,At=0;function nn(fn){var An,zn,Dn,Qn=new Lr,Pn=new Kt,cr=0,Cr=fn===!0?u:g,_r=fn===!0?1:-1;for(zn=Oe,An=1;An<=L;An++)We.push(0,Tt*_r,0),tt.push(0,_r,0),ot.push(.5,.5),Oe++;for(Dn=Oe,An=0;An<=L;An++){var Er=An/L*ge+ce,Vr=Math.cos(Er),si=Math.sin(Er);Pn.x=Cr*si,Pn.y=Tt*_r,Pn.z=Cr*Vr,We.push(Pn.x,Pn.y,Pn.z),tt.push(0,_r,0),Qn.x=.5*Vr+.5,Qn.y=.5*si*_r+.5,ot.push(Qn.x,Qn.y),Oe++}for(An=0;An<L;An++){var Ar=zn+An,vr=Dn+An;fn===!0?Ae.push(vr,vr+1,Ar):Ae.push(vr+1,vr,Ar),cr+=3}Ee.addGroup(At,cr,fn===!0?1:2),At+=cr}(function(){var fn,An,zn=new Kt,Dn=new Kt,Qn=0,Pn=(g-u)/C;for(An=0;An<=K;An++){var cr=[],Cr=An/K,_r=Cr*(g-u)+u;for(fn=0;fn<=L;fn++){var Er=fn/L,Vr=Er*ge+ce,si=Math.sin(Vr),Ar=Math.cos(Vr);Dn.x=_r*si,Dn.y=-Cr*C+Tt,Dn.z=_r*Ar,We.push(Dn.x,Dn.y,Dn.z),zn.set(si,Pn,Ar).normalize(),tt.push(zn.x,zn.y,zn.z),ot.push(Er,1-Cr),cr.push(Oe++)}mt.push(cr)}for(fn=0;fn<L;fn++)for(An=0;An<K;An++){var vr=mt[An][fn],yi=mt[An+1][fn],Bi=mt[An+1][fn+1],ya=mt[An][fn+1];Ae.push(vr,yi,ya),Ae.push(yi,Bi,ya),Qn+=6}Ee.addGroup(At,Qn,0),At+=Qn})(),ie===!1&&(0<u&&nn(!0),0<g&&nn(!1)),this.setIndex(Ae),this.setAttribute("position",new Fr(We,3)),this.setAttribute("normal",new Fr(tt,3)),this.setAttribute("uv",new Fr(ot,2))}function mp(u,g,C,L,K,ie,ce){kd.call(this,0,u,g,C,L,K,ie,ce),this.type="ConeGeometry",this.parameters={radius:u,height:g,radialSegments:C,heightSegments:L,openEnded:K,thetaStart:ie,thetaLength:ce}}function Lp(u,g,C,L,K,ie,ce){Pl.call(this,0,u,g,C,L,K,ie,ce),this.type="ConeBufferGeometry",this.parameters={radius:u,height:g,radialSegments:C,heightSegments:L,openEnded:K,thetaStart:ie,thetaLength:ce}}function gp(u,g,C,L){Fa.call(this),this.type="CircleGeometry",this.parameters={radius:u,segments:g,thetaStart:C,thetaLength:L},this.fromBufferGeometry(new yp(u,g,C,L)),this.mergeVertices()}function yp(u,g,C,L){qi.call(this),this.type="CircleBufferGeometry",this.parameters={radius:u,segments:g,thetaStart:C,thetaLength:L},u=u||1,g=g!==void 0?Math.max(3,g):8,C=C!==void 0?C:0,L=L!==void 0?L:2*Math.PI;var K,ie,ce=[],ge=[],Ee=[],Ae=[],We=new Kt,tt=new Lr;for(ge.push(0,0,0),Ee.push(0,0,1),Ae.push(.5,.5),ie=0,K=3;ie<=g;ie++,K+=3){var ot=C+ie/g*L;We.x=u*Math.cos(ot),We.y=u*Math.sin(ot),ge.push(We.x,We.y,We.z),Ee.push(0,0,1),tt.x=(ge[K]/u+1)/2,tt.y=(ge[K+1]/u+1)/2,Ae.push(tt.x,tt.y)}for(K=1;K<=g;K++)ce.push(K,K+1,0);this.setIndex(ce),this.setAttribute("position",new Fr(ge,3)),this.setAttribute("normal",new Fr(Ee,3)),this.setAttribute("uv",new Fr(Ae,2))}(al.prototype=Object.create(Fa.prototype)).constructor=al,(Ul.prototype=Object.create(vc.prototype)).constructor=Ul,(id.prototype=Object.create(Fa.prototype)).constructor=id,(qd.prototype=Object.create(qi.prototype)).constructor=qd,(Xd.prototype=Object.create(Fa.prototype)).constructor=Xd,(ad.prototype=Object.create(qi.prototype)).constructor=ad,(fp.prototype=Object.create(Fa.prototype)).constructor=fp,($h.prototype=Object.create(qi.prototype)).constructor=$h,((Oc.prototype=Object.create(Fa.prototype)).constructor=Oc).prototype.toJSON=function(){var u=Fa.prototype.toJSON.call(this);return of(this.parameters.shapes,u)},((Fc.prototype=Object.create(qi.prototype)).constructor=Fc).prototype.toJSON=function(){var u=qi.prototype.toJSON.call(this);return of(this.parameters.shapes,u)},(gh.prototype=Object.create(qi.prototype)).constructor=gh,(kd.prototype=Object.create(Fa.prototype)).constructor=kd,(Pl.prototype=Object.create(qi.prototype)).constructor=Pl,(mp.prototype=Object.create(kd.prototype)).constructor=mp,(Lp.prototype=Object.create(Pl.prototype)).constructor=Lp,(gp.prototype=Object.create(Fa.prototype)).constructor=gp,(yp.prototype=Object.create(qi.prototype)).constructor=yp;var ku=Object.freeze({__proto__:null,WireframeGeometry:hp,ParametricGeometry:vl,ParametricBufferGeometry:Ic,TetrahedronGeometry:ro,TetrahedronBufferGeometry:Nh,OctahedronGeometry:du,OctahedronBufferGeometry:Hs,IcosahedronGeometry:Pc,IcosahedronBufferGeometry:ph,DodecahedronGeometry:Vh,DodecahedronBufferGeometry:Au,PolyhedronGeometry:hh,PolyhedronBufferGeometry:_l,TubeGeometry:zh,TubeBufferGeometry:Ed,TorusKnotGeometry:fs,TorusKnotBufferGeometry:Ws,TorusGeometry:pp,TorusBufferGeometry:Rc,TextGeometry:al,TextBufferGeometry:Ul,SphereGeometry:id,SphereBufferGeometry:qd,RingGeometry:Xd,RingBufferGeometry:ad,PlaneGeometry:qc,PlaneBufferGeometry:Xc,LatheGeometry:fp,LatheBufferGeometry:$h,ShapeGeometry:Oc,ShapeBufferGeometry:Fc,ExtrudeGeometry:Ad,ExtrudeBufferGeometry:vc,EdgesGeometry:gh,ConeGeometry:mp,ConeBufferGeometry:Lp,CylinderGeometry:kd,CylinderBufferGeometry:Pl,CircleGeometry:gp,CircleBufferGeometry:yp,BoxGeometry:Si,BoxBufferGeometry:Vd});function Zd(u){Wt.call(this),this.type="ShadowMaterial",this.color=new Fn(0),this.transparent=!0,this.setValues(u)}function Id(u){zl.call(this,u),this.type="RawShaderMaterial"}function od(u){Wt.call(this),this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new Fn(16777215),this.roughness=1,this.metalness=0,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Fn(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Co,this.normalScale=new Lr(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapIntensity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.setValues(u)}function yh(u){od.call(this),this.defines={STANDARD:"",PHYSICAL:""},this.type="MeshPhysicalMaterial",this.reflectivity=.5,this.clearcoat=0,this.clearcoatRoughness=0,this.sheen=null,this.clearcoatNormalScale=new Lr(1,1),this.clearcoatNormalMap=null,this.transparency=0,this.setValues(u)}function mu(u){Wt.call(this),this.type="MeshPhongMaterial",this.color=new Fn(16777215),this.specular=new Fn(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Fn(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Co,this.normalScale=new Lr(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=at,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.setValues(u)}function nu(u){Wt.call(this),this.defines={TOON:""},this.type="MeshToonMaterial",this.color=new Fn(16777215),this.specular=new Fn(1118481),this.shininess=30,this.map=null,this.gradientMap=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Fn(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Co,this.normalScale=new Lr(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.setValues(u)}function vp(u){Wt.call(this),this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Co,this.normalScale=new Lr(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.setValues(u)}function Rl(u){Wt.call(this),this.type="MeshLambertMaterial",this.color=new Fn(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Fn(0),this.emissiveIntensity=1,this.emissiveMap=null,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=at,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.setValues(u)}function vh(u){Wt.call(this),this.defines={MATCAP:""},this.type="MeshMatcapMaterial",this.color=new Fn(16777215),this.matcap=null,this.map=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Co,this.normalScale=new Lr(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.setValues(u)}function _p(u){ss.call(this),this.type="LineDashedMaterial",this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(u)}((Zd.prototype=Object.create(Wt.prototype)).constructor=Zd).prototype.isShadowMaterial=!0,Zd.prototype.copy=function(u){return Wt.prototype.copy.call(this,u),this.color.copy(u.color),this},((Id.prototype=Object.create(zl.prototype)).constructor=Id).prototype.isRawShaderMaterial=!0,((od.prototype=Object.create(Wt.prototype)).constructor=od).prototype.isMeshStandardMaterial=!0,od.prototype.copy=function(u){return Wt.prototype.copy.call(this,u),this.defines={STANDARD:""},this.color.copy(u.color),this.roughness=u.roughness,this.metalness=u.metalness,this.map=u.map,this.lightMap=u.lightMap,this.lightMapIntensity=u.lightMapIntensity,this.aoMap=u.aoMap,this.aoMapIntensity=u.aoMapIntensity,this.emissive.copy(u.emissive),this.emissiveMap=u.emissiveMap,this.emissiveIntensity=u.emissiveIntensity,this.bumpMap=u.bumpMap,this.bumpScale=u.bumpScale,this.normalMap=u.normalMap,this.normalMapType=u.normalMapType,this.normalScale.copy(u.normalScale),this.displacementMap=u.displacementMap,this.displacementScale=u.displacementScale,this.displacementBias=u.displacementBias,this.roughnessMap=u.roughnessMap,this.metalnessMap=u.metalnessMap,this.alphaMap=u.alphaMap,this.envMap=u.envMap,this.envMapIntensity=u.envMapIntensity,this.refractionRatio=u.refractionRatio,this.wireframe=u.wireframe,this.wireframeLinewidth=u.wireframeLinewidth,this.wireframeLinecap=u.wireframeLinecap,this.wireframeLinejoin=u.wireframeLinejoin,this.skinning=u.skinning,this.morphTargets=u.morphTargets,this.morphNormals=u.morphNormals,this},((yh.prototype=Object.create(od.prototype)).constructor=yh).prototype.isMeshPhysicalMaterial=!0,yh.prototype.copy=function(u){return od.prototype.copy.call(this,u),this.defines={STANDARD:"",PHYSICAL:""},this.reflectivity=u.reflectivity,this.clearcoat=u.clearcoat,this.clearcoatRoughness=u.clearcoatRoughness,u.sheen?this.sheen=(this.sheen||new Fn).copy(u.sheen):this.sheen=null,this.clearcoatNormalMap=u.clearcoatNormalMap,this.clearcoatNormalScale.copy(u.clearcoatNormalScale),this.transparency=u.transparency,this},((mu.prototype=Object.create(Wt.prototype)).constructor=mu).prototype.isMeshPhongMaterial=!0,mu.prototype.copy=function(u){return Wt.prototype.copy.call(this,u),this.color.copy(u.color),this.specular.copy(u.specular),this.shininess=u.shininess,this.map=u.map,this.lightMap=u.lightMap,this.lightMapIntensity=u.lightMapIntensity,this.aoMap=u.aoMap,this.aoMapIntensity=u.aoMapIntensity,this.emissive.copy(u.emissive),this.emissiveMap=u.emissiveMap,this.emissiveIntensity=u.emissiveIntensity,this.bumpMap=u.bumpMap,this.bumpScale=u.bumpScale,this.normalMap=u.normalMap,this.normalMapType=u.normalMapType,this.normalScale.copy(u.normalScale),this.displacementMap=u.displacementMap,this.displacementScale=u.displacementScale,this.displacementBias=u.displacementBias,this.specularMap=u.specularMap,this.alphaMap=u.alphaMap,this.envMap=u.envMap,this.combine=u.combine,this.reflectivity=u.reflectivity,this.refractionRatio=u.refractionRatio,this.wireframe=u.wireframe,this.wireframeLinewidth=u.wireframeLinewidth,this.wireframeLinecap=u.wireframeLinecap,this.wireframeLinejoin=u.wireframeLinejoin,this.skinning=u.skinning,this.morphTargets=u.morphTargets,this.morphNormals=u.morphNormals,this},((nu.prototype=Object.create(Wt.prototype)).constructor=nu).prototype.isMeshToonMaterial=!0,nu.prototype.copy=function(u){return Wt.prototype.copy.call(this,u),this.color.copy(u.color),this.specular.copy(u.specular),this.shininess=u.shininess,this.map=u.map,this.gradientMap=u.gradientMap,this.lightMap=u.lightMap,this.lightMapIntensity=u.lightMapIntensity,this.aoMap=u.aoMap,this.aoMapIntensity=u.aoMapIntensity,this.emissive.copy(u.emissive),this.emissiveMap=u.emissiveMap,this.emissiveIntensity=u.emissiveIntensity,this.bumpMap=u.bumpMap,this.bumpScale=u.bumpScale,this.normalMap=u.normalMap,this.normalMapType=u.normalMapType,this.normalScale.copy(u.normalScale),this.displacementMap=u.displacementMap,this.displacementScale=u.displacementScale,this.displacementBias=u.displacementBias,this.specularMap=u.specularMap,this.alphaMap=u.alphaMap,this.wireframe=u.wireframe,this.wireframeLinewidth=u.wireframeLinewidth,this.wireframeLinecap=u.wireframeLinecap,this.wireframeLinejoin=u.wireframeLinejoin,this.skinning=u.skinning,this.morphTargets=u.morphTargets,this.morphNormals=u.morphNormals,this},((vp.prototype=Object.create(Wt.prototype)).constructor=vp).prototype.isMeshNormalMaterial=!0,vp.prototype.copy=function(u){return Wt.prototype.copy.call(this,u),this.bumpMap=u.bumpMap,this.bumpScale=u.bumpScale,this.normalMap=u.normalMap,this.normalMapType=u.normalMapType,this.normalScale.copy(u.normalScale),this.displacementMap=u.displacementMap,this.displacementScale=u.displacementScale,this.displacementBias=u.displacementBias,this.wireframe=u.wireframe,this.wireframeLinewidth=u.wireframeLinewidth,this.skinning=u.skinning,this.morphTargets=u.morphTargets,this.morphNormals=u.morphNormals,this},((Rl.prototype=Object.create(Wt.prototype)).constructor=Rl).prototype.isMeshLambertMaterial=!0,Rl.prototype.copy=function(u){return Wt.prototype.copy.call(this,u),this.color.copy(u.color),this.map=u.map,this.lightMap=u.lightMap,this.lightMapIntensity=u.lightMapIntensity,this.aoMap=u.aoMap,this.aoMapIntensity=u.aoMapIntensity,this.emissive.copy(u.emissive),this.emissiveMap=u.emissiveMap,this.emissiveIntensity=u.emissiveIntensity,this.specularMap=u.specularMap,this.alphaMap=u.alphaMap,this.envMap=u.envMap,this.combine=u.combine,this.reflectivity=u.reflectivity,this.refractionRatio=u.refractionRatio,this.wireframe=u.wireframe,this.wireframeLinewidth=u.wireframeLinewidth,this.wireframeLinecap=u.wireframeLinecap,this.wireframeLinejoin=u.wireframeLinejoin,this.skinning=u.skinning,this.morphTargets=u.morphTargets,this.morphNormals=u.morphNormals,this},((vh.prototype=Object.create(Wt.prototype)).constructor=vh).prototype.isMeshMatcapMaterial=!0,vh.prototype.copy=function(u){return Wt.prototype.copy.call(this,u),this.defines={MATCAP:""},this.color.copy(u.color),this.matcap=u.matcap,this.map=u.map,this.bumpMap=u.bumpMap,this.bumpScale=u.bumpScale,this.normalMap=u.normalMap,this.normalMapType=u.normalMapType,this.normalScale.copy(u.normalScale),this.displacementMap=u.displacementMap,this.displacementScale=u.displacementScale,this.displacementBias=u.displacementBias,this.alphaMap=u.alphaMap,this.skinning=u.skinning,this.morphTargets=u.morphTargets,this.morphNormals=u.morphNormals,this},((_p.prototype=Object.create(ss.prototype)).constructor=_p).prototype.isLineDashedMaterial=!0,_p.prototype.copy=function(u){return ss.prototype.copy.call(this,u),this.scale=u.scale,this.dashSize=u.dashSize,this.gapSize=u.gapSize,this};var om=Object.freeze({__proto__:null,ShadowMaterial:Zd,SpriteMaterial:bd,RawShaderMaterial:Id,ShaderMaterial:zl,PointsMaterial:Eu,MeshPhysicalMaterial:yh,MeshStandardMaterial:od,MeshPhongMaterial:mu,MeshToonMaterial:nu,MeshNormalMaterial:vp,MeshLambertMaterial:Rl,MeshDepthMaterial:js,MeshDistanceMaterial:Sl,MeshBasicMaterial:Jn,MeshMatcapMaterial:vh,LineDashedMaterial:_p,LineBasicMaterial:ss,Material:Wt}),Ys={arraySlice:function(u,g,C){return Ys.isTypedArray(u)?new u.constructor(u.subarray(g,C!==void 0?C:u.length)):u.slice(g,C)},convertArray:function(u,g,C){return!u||!C&&u.constructor===g?u:typeof g.BYTES_PER_ELEMENT=="number"?new g(u):Array.prototype.slice.call(u)},isTypedArray:function(u){return ArrayBuffer.isView(u)&&!(u instanceof DataView)},getKeyframeOrder:function(u){for(var g=u.length,C=new Array(g),L=0;L!==g;++L)C[L]=L;return C.sort(function(K,ie){return u[K]-u[ie]}),C},sortedArray:function(u,g,C){for(var L=u.length,K=new u.constructor(L),ie=0,ce=0;ce!==L;++ie)for(var ge=C[ie]*g,Ee=0;Ee!==g;++Ee)K[ce++]=u[ge+Ee];return K},flattenJSON:function(u,g,C,L){for(var K=1,ie=u[0];ie!==void 0&&ie[L]===void 0;)ie=u[K++];if(ie!==void 0){var ce=ie[L];if(ce!==void 0)if(Array.isArray(ce))for(;(ce=ie[L])!==void 0&&(g.push(ie.time),C.push.apply(C,ce)),(ie=u[K++])!==void 0;);else if(ce.toArray!==void 0)for(;(ce=ie[L])!==void 0&&(g.push(ie.time),ce.toArray(C,C.length)),(ie=u[K++])!==void 0;);else for(;(ce=ie[L])!==void 0&&(g.push(ie.time),C.push(ce)),(ie=u[K++])!==void 0;);}},subclip:function(u,g,C,L,K){K=K||30;var ie=u.clone();ie.name=g;for(var ce=[],ge=0;ge<ie.tracks.length;++ge){for(var Ee=ie.tracks[ge],Ae=Ee.getValueSize(),We=[],tt=[],ot=0;ot<Ee.times.length;++ot){var Oe=Ee.times[ot]*K;if(!(Oe<C||L<=Oe)){We.push(Ee.times[ot]);for(var mt=0;mt<Ae;++mt)tt.push(Ee.values[ot*Ae+mt])}}We.length!==0&&(Ee.times=Ys.convertArray(We,Ee.times.constructor),Ee.values=Ys.convertArray(tt,Ee.values.constructor),ce.push(Ee))}ie.tracks=ce;var Tt=1/0;for(ge=0;ge<ie.tracks.length;++ge)Tt>ie.tracks[ge].times[0]&&(Tt=ie.tracks[ge].times[0]);for(ge=0;ge<ie.tracks.length;++ge)ie.tracks[ge].shift(-1*Tt);return ie.resetDuration(),ie}};function Iu(u,g,C,L){this.parameterPositions=u,this._cachedIndex=0,this.resultBuffer=L!==void 0?L:new g.constructor(C),this.sampleValues=g,this.valueSize=C}function _h(u,g,C,L){Iu.call(this,u,g,C,L),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0}function Hh(u,g,C,L){Iu.call(this,u,g,C,L)}function Bc(u,g,C,L){Iu.call(this,u,g,C,L)}function xl(u,g,C,L){if(u===void 0)throw new Error("THREE.KeyframeTrack: track name is undefined");if(g===void 0||g.length===0)throw new Error("THREE.KeyframeTrack: no keyframes in track named "+u);this.name=u,this.times=Ys.convertArray(g,this.TimeBufferType),this.values=Ys.convertArray(C,this.ValueBufferType),this.setInterpolation(L||this.DefaultInterpolation)}function Op(u,g,C){xl.call(this,u,g,C)}function Fp(u,g,C,L){xl.call(this,u,g,C,L)}function Kd(u,g,C,L){xl.call(this,u,g,C,L)}function Wh(u,g,C,L){Iu.call(this,u,g,C,L)}function xh(u,g,C,L){xl.call(this,u,g,C,L)}function Bp(u,g,C,L){xl.call(this,u,g,C,L)}function Yh(u,g,C,L){xl.call(this,u,g,C,L)}function Hu(u,g,C){this.name=u,this.tracks=C,this.duration=g!==void 0?g:-1,this.uuid=Ta.generateUUID(),this.duration<0&&this.resetDuration()}function sm(u){if(u.type===void 0)throw new Error("THREE.KeyframeTrack: track type undefined, can not parse");var g=function(K){switch(K.toLowerCase()){case"scalar":case"double":case"float":case"number":case"integer":return Kd;case"vector":case"vector2":case"vector3":case"vector4":return Yh;case"color":return Fp;case"quaternion":return xh;case"bool":case"boolean":return Op;case"string":return Bp}throw new Error("THREE.KeyframeTrack: Unsupported typeName: "+K)}(u.type);if(u.times===void 0){var C=[],L=[];Ys.flattenJSON(u.keys,C,L,"value"),u.times=C,u.values=L}return g.parse!==void 0?g.parse(u):new g(u.name,u.times,u.values,u.interpolation)}Object.assign(Iu.prototype,{evaluate:function(u){var g=this.parameterPositions,C=this._cachedIndex,L=g[C],K=g[C-1];e:{t:{var ie;n:{a:if(!(u<L)){for(var ce=C+2;;){if(L===void 0){if(u<K)break a;return C=g.length,this._cachedIndex=C,this.afterEnd_(C-1,u,K)}if(C===ce)break;if(K=L,u<(L=g[++C]))break t}ie=g.length;break n}if(K<=u)break e;var ge=g[1];for(u<ge&&(C=2,K=ge),ce=C-2;;){if(K===void 0)return this._cachedIndex=0,this.beforeStart_(0,u,L);if(C===ce)break;if(L=K,(K=g[--C-1])<=u)break t}ie=C,C=0}for(;C<ie;){var Ee=C+ie>>>1;u<g[Ee]?ie=Ee:C=1+Ee}if(L=g[C],(K=g[C-1])===void 0)return this._cachedIndex=0,this.beforeStart_(0,u,L);if(L===void 0)return C=g.length,this._cachedIndex=C,this.afterEnd_(C-1,K,u)}this._cachedIndex=C,this.intervalChanged_(C,K,L)}return this.interpolate_(C,K,u,L)},settings:null,DefaultSettings_:{},getSettings_:function(){return this.settings||this.DefaultSettings_},copySampleValue_:function(u){for(var g=this.resultBuffer,C=this.sampleValues,L=this.valueSize,K=u*L,ie=0;ie!==L;++ie)g[ie]=C[K+ie];return g},interpolate_:function(){throw new Error("call to abstract method")},intervalChanged_:function(){}}),Object.assign(Iu.prototype,{beforeStart_:Iu.prototype.copySampleValue_,afterEnd_:Iu.prototype.copySampleValue_}),_h.prototype=Object.assign(Object.create(Iu.prototype),{constructor:_h,DefaultSettings_:{endingStart:$t,endingEnd:$t},intervalChanged_:function(u,g,C){var L=this.parameterPositions,K=u-2,ie=u+1,ce=L[K],ge=L[ie];if(ce===void 0)switch(this.getSettings_().endingStart){case ft:K=u,ce=2*g-C;break;case Gt:ce=g+L[K=L.length-2]-L[K+1];break;default:K=u,ce=C}if(ge===void 0)switch(this.getSettings_().endingEnd){case ft:ie=u,ge=2*C-g;break;case Gt:ge=C+L[ie=1]-L[0];break;default:ie=u-1,ge=g}var Ee=.5*(C-g),Ae=this.valueSize;this._weightPrev=Ee/(g-ce),this._weightNext=Ee/(ge-C),this._offsetPrev=K*Ae,this._offsetNext=ie*Ae},interpolate_:function(u,g,C,L){for(var K=this.resultBuffer,ie=this.sampleValues,ce=this.valueSize,ge=u*ce,Ee=ge-ce,Ae=this._offsetPrev,We=this._offsetNext,tt=this._weightPrev,ot=this._weightNext,Oe=(C-g)/(L-g),mt=Oe*Oe,Tt=mt*Oe,At=-tt*Tt+2*tt*mt-tt*Oe,nn=(1+tt)*Tt+(-1.5-2*tt)*mt+(-.5+tt)*Oe+1,fn=(-1-ot)*Tt+(1.5+ot)*mt+.5*Oe,An=ot*Tt-ot*mt,zn=0;zn!==ce;++zn)K[zn]=At*ie[Ae+zn]+nn*ie[Ee+zn]+fn*ie[ge+zn]+An*ie[We+zn];return K}}),Hh.prototype=Object.assign(Object.create(Iu.prototype),{constructor:Hh,interpolate_:function(u,g,C,L){for(var K=this.resultBuffer,ie=this.sampleValues,ce=this.valueSize,ge=u*ce,Ee=ge-ce,Ae=(C-g)/(L-g),We=1-Ae,tt=0;tt!==ce;++tt)K[tt]=ie[Ee+tt]*We+ie[ge+tt]*Ae;return K}}),Bc.prototype=Object.assign(Object.create(Iu.prototype),{constructor:Bc,interpolate_:function(u){return this.copySampleValue_(u-1)}}),Object.assign(xl,{toJSON:function(u){var g,C=u.constructor;if(C.toJSON!==void 0)g=C.toJSON(u);else{g={name:u.name,times:Ys.convertArray(u.times,Array),values:Ys.convertArray(u.values,Array)};var L=u.getInterpolation();L!==u.DefaultInterpolation&&(g.interpolation=L)}return g.type=u.ValueTypeName,g}}),Object.assign(xl.prototype,{constructor:xl,TimeBufferType:Float32Array,ValueBufferType:Float32Array,DefaultInterpolation:Ye,InterpolantFactoryMethodDiscrete:function(u){return new Bc(this.times,this.values,this.getValueSize(),u)},InterpolantFactoryMethodLinear:function(u){return new Hh(this.times,this.values,this.getValueSize(),u)},InterpolantFactoryMethodSmooth:function(u){return new _h(this.times,this.values,this.getValueSize(),u)},setInterpolation:function(u){var g;switch(u){case Ra:g=this.InterpolantFactoryMethodDiscrete;break;case Ye:g=this.InterpolantFactoryMethodLinear;break;case 2302:g=this.InterpolantFactoryMethodSmooth}if(g!==void 0)return this.createInterpolant=g,this;var C="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name;if(this.createInterpolant===void 0){if(u===this.DefaultInterpolation)throw new Error(C);this.setInterpolation(this.DefaultInterpolation)}return console.warn("THREE.KeyframeTrack:",C),this},getInterpolation:function(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return Ra;case this.InterpolantFactoryMethodLinear:return Ye;case this.InterpolantFactoryMethodSmooth:return 2302}},getValueSize:function(){return this.values.length/this.times.length},shift:function(u){if(u!==0)for(var g=this.times,C=0,L=g.length;C!==L;++C)g[C]+=u;return this},scale:function(u){if(u!==1)for(var g=this.times,C=0,L=g.length;C!==L;++C)g[C]*=u;return this},trim:function(u,g){for(var C=this.times,L=C.length,K=0,ie=L-1;K!==L&&C[K]<u;)++K;for(;ie!==-1&&C[ie]>g;)--ie;if(++ie,K!==0||ie!==L){ie<=K&&(K=(ie=Math.max(ie,1))-1);var ce=this.getValueSize();this.times=Ys.arraySlice(C,K,ie),this.values=Ys.arraySlice(this.values,K*ce,ie*ce)}return this},validate:function(){var u=!0,g=this.getValueSize();g-Math.floor(g)!=0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),u=!1);var C=this.times,L=this.values,K=C.length;K===0&&(console.error("THREE.KeyframeTrack: Track is empty.",this),u=!1);for(var ie=null,ce=0;ce!==K;ce++){var ge=C[ce];if(typeof ge=="number"&&isNaN(ge)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,ce,ge),u=!1;break}if(ie!==null&&ge<ie){console.error("THREE.KeyframeTrack: Out of order keys.",this,ce,ge,ie),u=!1;break}ie=ge}if(L!==void 0&&Ys.isTypedArray(L)){ce=0;for(var Ee=L.length;ce!==Ee;++ce){var Ae=L[ce];if(isNaN(Ae)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,ce,Ae),u=!1;break}}}return u},optimize:function(){for(var u=Ys.arraySlice(this.times),g=Ys.arraySlice(this.values),C=this.getValueSize(),L=this.getInterpolation()===2302,K=1,ie=u.length-1,ce=1;ce<ie;++ce){var ge=!1,Ee=u[ce];if(Ee!==u[ce+1]&&(ce!==1||Ee!==Ee[0]))if(L)ge=!0;else for(var Ae=ce*C,We=Ae-C,tt=Ae+C,ot=0;ot!==C;++ot){var Oe=g[Ae+ot];if(Oe!==g[We+ot]||Oe!==g[tt+ot]){ge=!0;break}}if(ge){if(ce!==K){u[K]=u[ce];var mt=ce*C,Tt=K*C;for(ot=0;ot!==C;++ot)g[Tt+ot]=g[mt+ot]}++K}}if(0<ie){for(u[K]=u[ie],mt=ie*C,Tt=K*C,ot=0;ot!==C;++ot)g[Tt+ot]=g[mt+ot];++K}return K!==u.length?(this.times=Ys.arraySlice(u,0,K),this.values=Ys.arraySlice(g,0,K*C)):(this.times=u,this.values=g),this},clone:function(){var u=Ys.arraySlice(this.times,0),g=Ys.arraySlice(this.values,0),C=new this.constructor(this.name,u,g);return C.createInterpolant=this.createInterpolant,C}}),Op.prototype=Object.assign(Object.create(xl.prototype),{constructor:Op,ValueTypeName:"bool",ValueBufferType:Array,DefaultInterpolation:Ra,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),Fp.prototype=Object.assign(Object.create(xl.prototype),{constructor:Fp,ValueTypeName:"color"}),Kd.prototype=Object.assign(Object.create(xl.prototype),{constructor:Kd,ValueTypeName:"number"}),Wh.prototype=Object.assign(Object.create(Iu.prototype),{constructor:Wh,interpolate_:function(u,g,C,L){for(var K=this.resultBuffer,ie=this.sampleValues,ce=this.valueSize,ge=u*ce,Ee=(C-g)/(L-g),Ae=ge+ce;ge!==Ae;ge+=4)Zo.slerpFlat(K,0,ie,ge-ce,ie,ge,Ee);return K}}),xh.prototype=Object.assign(Object.create(xl.prototype),{constructor:xh,ValueTypeName:"quaternion",DefaultInterpolation:Ye,InterpolantFactoryMethodLinear:function(u){return new Wh(this.times,this.values,this.getValueSize(),u)},InterpolantFactoryMethodSmooth:void 0}),Bp.prototype=Object.assign(Object.create(xl.prototype),{constructor:Bp,ValueTypeName:"string",ValueBufferType:Array,DefaultInterpolation:Ra,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),Yh.prototype=Object.assign(Object.create(xl.prototype),{constructor:Yh,ValueTypeName:"vector"}),Object.assign(Hu,{parse:function(u){for(var g=[],C=u.tracks,L=1/(u.fps||1),K=0,ie=C.length;K!==ie;++K)g.push(sm(C[K]).scale(L));return new Hu(u.name,u.duration,g)},toJSON:function(u){for(var g=[],C=u.tracks,L={name:u.name,duration:u.duration,tracks:g,uuid:u.uuid},K=0,ie=C.length;K!==ie;++K)g.push(xl.toJSON(C[K]));return L},CreateFromMorphTargetSequence:function(u,g,C,L){for(var K=g.length,ie=[],ce=0;ce<K;ce++){var ge=[],Ee=[];ge.push((ce+K-1)%K,ce,(ce+1)%K),Ee.push(0,1,0);var Ae=Ys.getKeyframeOrder(ge);ge=Ys.sortedArray(ge,1,Ae),Ee=Ys.sortedArray(Ee,1,Ae),L||ge[0]!==0||(ge.push(K),Ee.push(Ee[0])),ie.push(new Kd(".morphTargetInfluences["+g[ce].name+"]",ge,Ee).scale(1/C))}return new Hu(u,-1,ie)},findByName:function(u,g){var C=u;Array.isArray(u)||(C=u.geometry&&u.geometry.animations||u.animations);for(var L=0;L<C.length;L++)if(C[L].name===g)return C[L];return null},CreateClipsFromMorphTargetSequences:function(u,g,C){for(var L={},K=/^([\w-]*?)([\d]+)$/,ie=0,ce=u.length;ie<ce;ie++){var ge=u[ie],Ee=ge.name.match(K);if(Ee&&1<Ee.length){var Ae=L[tt=Ee[1]];Ae||(L[tt]=Ae=[]),Ae.push(ge)}}var We=[];for(var tt in L)We.push(Hu.CreateFromMorphTargetSequence(tt,L[tt],g,C));return We},parseAnimation:function(u,g){if(!u)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;for(var C=function(fn,An,zn,Dn,Qn){if(zn.length!==0){var Pn=[],cr=[];Ys.flattenJSON(zn,Pn,cr,Dn),Pn.length!==0&&Qn.push(new fn(An,Pn,cr))}},L=[],K=u.name||"default",ie=u.length||-1,ce=u.fps||30,ge=u.hierarchy||[],Ee=0;Ee<ge.length;Ee++){var Ae=ge[Ee].keys;if(Ae&&Ae.length!==0)if(Ae[0].morphTargets){for(var We={},tt=0;tt<Ae.length;tt++)if(Ae[tt].morphTargets)for(var ot=0;ot<Ae[tt].morphTargets.length;ot++)We[Ae[tt].morphTargets[ot]]=-1;for(var Oe in We){var mt=[],Tt=[];for(ot=0;ot!==Ae[tt].morphTargets.length;++ot){var At=Ae[tt];mt.push(At.time),Tt.push(At.morphTarget===Oe?1:0)}L.push(new Kd(".morphTargetInfluence["+Oe+"]",mt,Tt))}ie=We.length*(ce||1)}else{var nn=".bones["+g[Ee].name+"]";C(Yh,nn+".position",Ae,"pos",L),C(xh,nn+".quaternion",Ae,"rot",L),C(Yh,nn+".scale",Ae,"scl",L)}}return L.length===0?null:new Hu(K,ie,L)}}),Object.assign(Hu.prototype,{resetDuration:function(){for(var u=0,g=0,C=this.tracks.length;g!==C;++g){var L=this.tracks[g];u=Math.max(u,L.times[L.times.length-1])}return this.duration=u,this},trim:function(){for(var u=0;u<this.tracks.length;u++)this.tracks[u].trim(0,this.duration);return this},validate:function(){for(var u=!0,g=0;g<this.tracks.length;g++)u=u&&this.tracks[g].validate();return u},optimize:function(){for(var u=0;u<this.tracks.length;u++)this.tracks[u].optimize();return this},clone:function(){for(var u=[],g=0;g<this.tracks.length;g++)u.push(this.tracks[g].clone());return new Hu(this.name,this.duration,u)}});var _c={enabled:!1,files:{},add:function(u,g){this.enabled!==!1&&(this.files[u]=g)},get:function(u){if(this.enabled!==!1)return this.files[u]},remove:function(u){delete this.files[u]},clear:function(){this.files={}}};function sf(u,g,C){var L=this,K=!1,ie=0,ce=0,ge=void 0,Ee=[];this.onStart=void 0,this.onLoad=u,this.onProgress=g,this.onError=C,this.itemStart=function(Ae){ce++,K===!1&&L.onStart!==void 0&&L.onStart(Ae,ie,ce),K=!0},this.itemEnd=function(Ae){ie++,L.onProgress!==void 0&&L.onProgress(Ae,ie,ce),ie===ce&&(K=!1,L.onLoad!==void 0&&L.onLoad())},this.itemError=function(Ae){L.onError!==void 0&&L.onError(Ae)},this.resolveURL=function(Ae){return ge?ge(Ae):Ae},this.setURLModifier=function(Ae){return ge=Ae,this},this.addHandler=function(Ae,We){return Ee.push(Ae,We),this},this.removeHandler=function(Ae){var We=Ee.indexOf(Ae);return We!==-1&&Ee.splice(We,2),this},this.getHandler=function(Ae){for(var We=0,tt=Ee.length;We<tt;We+=2){var ot=Ee[We],Oe=Ee[We+1];if(ot.global&&(ot.lastIndex=0),ot.test(Ae))return Oe}return null}}var dl=new sf;function X(u){this.manager=u!==void 0?u:dl,this.crossOrigin="anonymous",this.path="",this.resourcePath=""}Object.assign(X.prototype,{load:function(){},parse:function(){},setCrossOrigin:function(u){return this.crossOrigin=u,this},setPath:function(u){return this.path=u,this},setResourcePath:function(u){return this.resourcePath=u,this}});var oe={};function Se(u){X.call(this,u)}function st(u){X.call(this,u)}function Ct(u){X.call(this,u)}function an(u){X.call(this,u)}function Rn(u){X.call(this,u)}function qn(u){X.call(this,u)}function hr(u){X.call(this,u)}function ur(){this.type="Curve",this.arcLengthDivisions=200}function jr(u,g,C,L,K,ie,ce,ge){ur.call(this),this.type="EllipseCurve",this.aX=u||0,this.aY=g||0,this.xRadius=C||1,this.yRadius=L||1,this.aStartAngle=K||0,this.aEndAngle=ie||2*Math.PI,this.aClockwise=ce||!1,this.aRotation=ge||0}function ci(u,g,C,L,K,ie){jr.call(this,u,g,C,C,L,K,ie),this.type="ArcCurve"}function ra(){var u=0,g=0,C=0,L=0;function K(ie,ce,ge,Ee){C=-3*(u=ie)+3*ce-2*(g=ge)-Ee,L=2*ie-2*ce+ge+Ee}return{initCatmullRom:function(ie,ce,ge,Ee,Ae){K(ce,ge,Ae*(ge-ie),Ae*(Ee-ce))},initNonuniformCatmullRom:function(ie,ce,ge,Ee,Ae,We,tt){var ot=(ce-ie)/Ae-(ge-ie)/(Ae+We)+(ge-ce)/We,Oe=(ge-ce)/We-(Ee-ce)/(We+tt)+(Ee-ge)/tt;K(ce,ge,ot*=We,Oe*=We)},calc:function(ie){var ce=ie*ie;return u+g*ie+C*ce+L*(ce*ie)}}}Se.prototype=Object.assign(Object.create(X.prototype),{constructor:Se,load:function(u,g,C,L){u===void 0&&(u=""),this.path!==void 0&&(u=this.path+u),u=this.manager.resolveURL(u);var K=this,ie=_c.get(u);if(ie!==void 0)return K.manager.itemStart(u),setTimeout(function(){g&&g(ie),K.manager.itemEnd(u)},0),ie;if(oe[u]===void 0){var ce=u.match(/^data:(.*?)(;base64)?,(.*)$/);if(ce){var ge=ce[1],Ee=!!ce[2],Ae=ce[3];Ae=decodeURIComponent(Ae),Ee&&(Ae=atob(Ae));try{var We,tt=(this.responseType||"").toLowerCase();switch(tt){case"arraybuffer":case"blob":for(var ot=new Uint8Array(Ae.length),Oe=0;Oe<Ae.length;Oe++)ot[Oe]=Ae.charCodeAt(Oe);We=tt==="blob"?new Blob([ot.buffer],{type:ge}):ot.buffer;break;case"document":var mt=new DOMParser;We=mt.parseFromString(Ae,ge);break;case"json":We=JSON.parse(Ae);break;default:We=Ae}setTimeout(function(){g&&g(We),K.manager.itemEnd(u)},0)}catch(nn){setTimeout(function(){L&&L(nn),K.manager.itemError(u),K.manager.itemEnd(u)},0)}}else{oe[u]=[],oe[u].push({onLoad:g,onProgress:C,onError:L});var Tt=new XMLHttpRequest;for(var At in Tt.open("GET",u,!0),Tt.addEventListener("load",function(nn){var fn=this.response,An=oe[u];if(delete oe[u],this.status===200||this.status===0){this.status===0&&console.warn("THREE.FileLoader: HTTP Status 0 received."),_c.add(u,fn);for(var zn=0,Dn=An.length;zn<Dn;zn++)(Qn=An[zn]).onLoad&&Qn.onLoad(fn);K.manager.itemEnd(u)}else{for(zn=0,Dn=An.length;zn<Dn;zn++){var Qn;(Qn=An[zn]).onError&&Qn.onError(nn)}K.manager.itemError(u),K.manager.itemEnd(u)}},!1),Tt.addEventListener("progress",function(nn){for(var fn=oe[u],An=0,zn=fn.length;An<zn;An++){var Dn=fn[An];Dn.onProgress&&Dn.onProgress(nn)}},!1),Tt.addEventListener("error",function(nn){var fn=oe[u];delete oe[u];for(var An=0,zn=fn.length;An<zn;An++){var Dn=fn[An];Dn.onError&&Dn.onError(nn)}K.manager.itemError(u),K.manager.itemEnd(u)},!1),Tt.addEventListener("abort",function(nn){var fn=oe[u];delete oe[u];for(var An=0,zn=fn.length;An<zn;An++){var Dn=fn[An];Dn.onError&&Dn.onError(nn)}K.manager.itemError(u),K.manager.itemEnd(u)},!1),this.responseType!==void 0&&(Tt.responseType=this.responseType),this.withCredentials!==void 0&&(Tt.withCredentials=this.withCredentials),Tt.overrideMimeType&&Tt.overrideMimeType(this.mimeType!==void 0?this.mimeType:"text/plain"),this.requestHeader)Tt.setRequestHeader(At,this.requestHeader[At]);Tt.send(null)}return K.manager.itemStart(u),Tt}oe[u].push({onLoad:g,onProgress:C,onError:L})},setResponseType:function(u){return this.responseType=u,this},setWithCredentials:function(u){return this.withCredentials=u,this},setMimeType:function(u){return this.mimeType=u,this},setRequestHeader:function(u){return this.requestHeader=u,this}}),st.prototype=Object.assign(Object.create(X.prototype),{constructor:st,load:function(u,g,C,L){var K=this,ie=new Se(K.manager);ie.setPath(K.path),ie.load(u,function(ce){g(K.parse(JSON.parse(ce)))},C,L)},parse:function(u){for(var g=[],C=0;C<u.length;C++){var L=Hu.parse(u[C]);g.push(L)}return g}}),Ct.prototype=Object.assign(Object.create(X.prototype),{constructor:Ct,load:function(u,g,C,L){var K=this,ie=[],ce=new kp;ce.image=ie;var ge=new Se(this.manager);function Ee(ot){ge.load(u[ot],function(Oe){var mt=K.parse(Oe,!0);ie[ot]={width:mt.width,height:mt.height,format:mt.format,mipmaps:mt.mipmaps},(Ae+=1)===6&&(mt.mipmapCount===1&&(ce.minFilter=sn),ce.format=mt.format,ce.needsUpdate=!0,g&&g(ce))},C,L)}if(ge.setPath(this.path),ge.setResponseType("arraybuffer"),Array.isArray(u))for(var Ae=0,We=0,tt=u.length;We<tt;++We)Ee(We);else ge.load(u,function(ot){var Oe=K.parse(ot,!0);if(Oe.isCubemap)for(var mt=Oe.mipmaps.length/Oe.mipmapCount,Tt=0;Tt<mt;Tt++){ie[Tt]={mipmaps:[]};for(var At=0;At<Oe.mipmapCount;At++)ie[Tt].mipmaps.push(Oe.mipmaps[Tt*Oe.mipmapCount+At]),ie[Tt].format=Oe.format,ie[Tt].width=Oe.width,ie[Tt].height=Oe.height}else ce.image.width=Oe.width,ce.image.height=Oe.height,ce.mipmaps=Oe.mipmaps;Oe.mipmapCount===1&&(ce.minFilter=sn),ce.format=Oe.format,ce.needsUpdate=!0,g&&g(ce)},C,L);return ce}}),an.prototype=Object.assign(Object.create(X.prototype),{constructor:an,load:function(u,g,C,L){var K=this,ie=new Ec,ce=new Se(this.manager);return ce.setResponseType("arraybuffer"),ce.setPath(this.path),ce.load(u,function(ge){var Ee=K.parse(ge);Ee&&(Ee.image!==void 0?ie.image=Ee.image:Ee.data!==void 0&&(ie.image.width=Ee.width,ie.image.height=Ee.height,ie.image.data=Ee.data),ie.wrapS=Ee.wrapS!==void 0?Ee.wrapS:pt,ie.wrapT=Ee.wrapT!==void 0?Ee.wrapT:pt,ie.magFilter=Ee.magFilter!==void 0?Ee.magFilter:sn,ie.minFilter=Ee.minFilter!==void 0?Ee.minFilter:sn,ie.anisotropy=Ee.anisotropy!==void 0?Ee.anisotropy:1,Ee.format!==void 0&&(ie.format=Ee.format),Ee.type!==void 0&&(ie.type=Ee.type),Ee.mipmaps!==void 0&&(ie.mipmaps=Ee.mipmaps,ie.minFilter=Dr),Ee.mipmapCount===1&&(ie.minFilter=sn),ie.needsUpdate=!0,g&&g(ie,Ee))},C,L),ie}}),Rn.prototype=Object.assign(Object.create(X.prototype),{constructor:Rn,load:function(u,g,C,L){this.path!==void 0&&(u=this.path+u),u=this.manager.resolveURL(u);var K=this,ie=_c.get(u);if(ie!==void 0)return K.manager.itemStart(u),setTimeout(function(){g&&g(ie),K.manager.itemEnd(u)},0),ie;var ce=document.createElementNS("http://www.w3.org/1999/xhtml","img");function ge(){ce.removeEventListener("load",ge,!1),ce.removeEventListener("error",Ee,!1),_c.add(u,this),g&&g(this),K.manager.itemEnd(u)}function Ee(Ae){ce.removeEventListener("load",ge,!1),ce.removeEventListener("error",Ee,!1),L&&L(Ae),K.manager.itemError(u),K.manager.itemEnd(u)}return ce.addEventListener("load",ge,!1),ce.addEventListener("error",Ee,!1),u.substr(0,5)!=="data:"&&this.crossOrigin!==void 0&&(ce.crossOrigin=this.crossOrigin),K.manager.itemStart(u),ce.src=u,ce}}),qn.prototype=Object.assign(Object.create(X.prototype),{constructor:qn,load:function(u,g,C,L){var K=new Tc,ie=new Rn(this.manager);ie.setCrossOrigin(this.crossOrigin),ie.setPath(this.path);var ce=0;function ge(Ae){ie.load(u[Ae],function(We){K.images[Ae]=We,++ce==6&&(K.needsUpdate=!0,g&&g(K))},void 0,L)}for(var Ee=0;Ee<u.length;++Ee)ge(Ee);return K}}),hr.prototype=Object.assign(Object.create(X.prototype),{constructor:hr,load:function(u,g,C,L){var K=new vo,ie=new Rn(this.manager);return ie.setCrossOrigin(this.crossOrigin),ie.setPath(this.path),ie.load(u,function(ce){K.image=ce;var ge=0<u.search(/\.jpe?g($|\?)/i)||u.search(/^data\:image\/jpeg/)===0;K.format=ge?jt:dt,K.needsUpdate=!0,g!==void 0&&g(K)},C,L),K}}),Object.assign(ur.prototype,{getPoint:function(){return console.warn("THREE.Curve: .getPoint() not implemented."),null},getPointAt:function(u,g){var C=this.getUtoTmapping(u);return this.getPoint(C,g)},getPoints:function(u){u===void 0&&(u=5);for(var g=[],C=0;C<=u;C++)g.push(this.getPoint(C/u));return g},getSpacedPoints:function(u){u===void 0&&(u=5);for(var g=[],C=0;C<=u;C++)g.push(this.getPointAt(C/u));return g},getLength:function(){var u=this.getLengths();return u[u.length-1]},getLengths:function(u){if(u===void 0&&(u=this.arcLengthDivisions),this.cacheArcLengths&&this.cacheArcLengths.length===u+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var g,C,L=[],K=this.getPoint(0),ie=0;for(L.push(0),C=1;C<=u;C++)ie+=(g=this.getPoint(C/u)).distanceTo(K),L.push(ie),K=g;return this.cacheArcLengths=L},updateArcLengths:function(){this.needsUpdate=!0,this.getLengths()},getUtoTmapping:function(u,g){var C,L=this.getLengths(),K=0,ie=L.length;C=g||u*L[ie-1];for(var ce,ge=0,Ee=ie-1;ge<=Ee;)if((ce=L[K=Math.floor(ge+(Ee-ge)/2)]-C)<0)ge=K+1;else{if(!(0<ce)){Ee=K;break}Ee=K-1}if(L[K=Ee]===C)return K/(ie-1);var Ae=L[K];return(K+(C-Ae)/(L[K+1]-Ae))/(ie-1)},getTangent:function(u){var g=u-1e-4,C=u+1e-4;g<0&&(g=0),1<C&&(C=1);var L=this.getPoint(g);return this.getPoint(C).clone().sub(L).normalize()},getTangentAt:function(u){var g=this.getUtoTmapping(u);return this.getTangent(g)},computeFrenetFrames:function(u,g){var C,L,K,ie=new Kt,ce=[],ge=[],Ee=[],Ae=new Kt,We=new Ki;for(C=0;C<=u;C++)L=C/u,ce[C]=this.getTangentAt(L),ce[C].normalize();ge[0]=new Kt,Ee[0]=new Kt;var tt=Number.MAX_VALUE,ot=Math.abs(ce[0].x),Oe=Math.abs(ce[0].y),mt=Math.abs(ce[0].z);for(ot<=tt&&(tt=ot,ie.set(1,0,0)),Oe<=tt&&(tt=Oe,ie.set(0,1,0)),mt<=tt&&ie.set(0,0,1),Ae.crossVectors(ce[0],ie).normalize(),ge[0].crossVectors(ce[0],Ae),Ee[0].crossVectors(ce[0],ge[0]),C=1;C<=u;C++)ge[C]=ge[C-1].clone(),Ee[C]=Ee[C-1].clone(),Ae.crossVectors(ce[C-1],ce[C]),Ae.length()>Number.EPSILON&&(Ae.normalize(),K=Math.acos(Ta.clamp(ce[C-1].dot(ce[C]),-1,1)),ge[C].applyMatrix4(We.makeRotationAxis(Ae,K))),Ee[C].crossVectors(ce[C],ge[C]);if(g===!0)for(K=Math.acos(Ta.clamp(ge[0].dot(ge[u]),-1,1)),K/=u,0<ce[0].dot(Ae.crossVectors(ge[0],ge[u]))&&(K=-K),C=1;C<=u;C++)ge[C].applyMatrix4(We.makeRotationAxis(ce[C],K*C)),Ee[C].crossVectors(ce[C],ge[C]);return{tangents:ce,normals:ge,binormals:Ee}},clone:function(){return new this.constructor().copy(this)},copy:function(u){return this.arcLengthDivisions=u.arcLengthDivisions,this},toJSON:function(){var u={metadata:{version:4.5,type:"Curve",generator:"Curve.toJSON"}};return u.arcLengthDivisions=this.arcLengthDivisions,u.type=this.type,u},fromJSON:function(u){return this.arcLengthDivisions=u.arcLengthDivisions,this}}),((jr.prototype=Object.create(ur.prototype)).constructor=jr).prototype.isEllipseCurve=!0,jr.prototype.getPoint=function(u,g){for(var C=g||new Lr,L=2*Math.PI,K=this.aEndAngle-this.aStartAngle,ie=Math.abs(K)<Number.EPSILON;K<0;)K+=L;for(;L<K;)K-=L;K<Number.EPSILON&&(K=ie?0:L),this.aClockwise!==!0||ie||(K===L?K=-L:K-=L);var ce=this.aStartAngle+u*K,ge=this.aX+this.xRadius*Math.cos(ce),Ee=this.aY+this.yRadius*Math.sin(ce);if(this.aRotation!==0){var Ae=Math.cos(this.aRotation),We=Math.sin(this.aRotation),tt=ge-this.aX,ot=Ee-this.aY;ge=tt*Ae-ot*We+this.aX,Ee=tt*We+ot*Ae+this.aY}return C.set(ge,Ee)},jr.prototype.copy=function(u){return ur.prototype.copy.call(this,u),this.aX=u.aX,this.aY=u.aY,this.xRadius=u.xRadius,this.yRadius=u.yRadius,this.aStartAngle=u.aStartAngle,this.aEndAngle=u.aEndAngle,this.aClockwise=u.aClockwise,this.aRotation=u.aRotation,this},jr.prototype.toJSON=function(){var u=ur.prototype.toJSON.call(this);return u.aX=this.aX,u.aY=this.aY,u.xRadius=this.xRadius,u.yRadius=this.yRadius,u.aStartAngle=this.aStartAngle,u.aEndAngle=this.aEndAngle,u.aClockwise=this.aClockwise,u.aRotation=this.aRotation,u},jr.prototype.fromJSON=function(u){return ur.prototype.fromJSON.call(this,u),this.aX=u.aX,this.aY=u.aY,this.xRadius=u.xRadius,this.yRadius=u.yRadius,this.aStartAngle=u.aStartAngle,this.aEndAngle=u.aEndAngle,this.aClockwise=u.aClockwise,this.aRotation=u.aRotation,this},((ci.prototype=Object.create(jr.prototype)).constructor=ci).prototype.isArcCurve=!0;var ba=new Kt,Pa=new ra,Xr=new ra,xi=new ra;function fa(u,g,C,L){ur.call(this),this.type="CatmullRomCurve3",this.points=u||[],this.closed=g||!1,this.curveType=C||"centripetal",this.tension=L||.5}function Ui(u,g,C,L,K){var ie=.5*(L-g),ce=.5*(K-C),ge=u*u;return(2*C-2*L+ie+ce)*(u*ge)+(-3*C+3*L-2*ie-ce)*ge+ie*u+C}function io(u,g,C,L){return(ce=1-u)*ce*g+2*(1-(ie=u))*ie*C+(K=u)*K*L;var K,ie,ce}function Qa(u,g,C,L,K){return(Ae=1-u)*Ae*Ae*g+3*(Ee=1-(ge=u))*Ee*ge*C+3*(1-(ce=u))*ce*ce*L+(ie=u)*ie*ie*K;var ie,ce,ge,Ee,Ae}function Ao(u,g,C,L){ur.call(this),this.type="CubicBezierCurve",this.v0=u||new Lr,this.v1=g||new Lr,this.v2=C||new Lr,this.v3=L||new Lr}function wa(u,g,C,L){ur.call(this),this.type="CubicBezierCurve3",this.v0=u||new Kt,this.v1=g||new Kt,this.v2=C||new Kt,this.v3=L||new Kt}function Aa(u,g){ur.call(this),this.type="LineCurve",this.v1=u||new Lr,this.v2=g||new Lr}function qs(u,g){ur.call(this),this.type="LineCurve3",this.v1=u||new Kt,this.v2=g||new Kt}function bs(u,g,C){ur.call(this),this.type="QuadraticBezierCurve",this.v0=u||new Lr,this.v1=g||new Lr,this.v2=C||new Lr}function Xs(u,g,C){ur.call(this),this.type="QuadraticBezierCurve3",this.v0=u||new Kt,this.v1=g||new Kt,this.v2=C||new Kt}function Qo(u){ur.call(this),this.type="SplineCurve",this.points=u||[]}((fa.prototype=Object.create(ur.prototype)).constructor=fa).prototype.isCatmullRomCurve3=!0,fa.prototype.getPoint=function(u,g){var C,L,K,ie,ce=g||new Kt,ge=this.points,Ee=ge.length,Ae=(Ee-(this.closed?0:1))*u,We=Math.floor(Ae),tt=Ae-We;if(this.closed?We+=0<We?0:(Math.floor(Math.abs(We)/Ee)+1)*Ee:tt===0&&We===Ee-1&&(We=Ee-2,tt=1),C=this.closed||0<We?ge[(We-1)%Ee]:(ba.subVectors(ge[0],ge[1]).add(ge[0]),ba),L=ge[We%Ee],K=ge[(We+1)%Ee],ie=this.closed||We+2<Ee?ge[(We+2)%Ee]:(ba.subVectors(ge[Ee-1],ge[Ee-2]).add(ge[Ee-1]),ba),this.curveType==="centripetal"||this.curveType==="chordal"){var ot=this.curveType==="chordal"?.5:.25,Oe=Math.pow(C.distanceToSquared(L),ot),mt=Math.pow(L.distanceToSquared(K),ot),Tt=Math.pow(K.distanceToSquared(ie),ot);mt<1e-4&&(mt=1),Oe<1e-4&&(Oe=mt),Tt<1e-4&&(Tt=mt),Pa.initNonuniformCatmullRom(C.x,L.x,K.x,ie.x,Oe,mt,Tt),Xr.initNonuniformCatmullRom(C.y,L.y,K.y,ie.y,Oe,mt,Tt),xi.initNonuniformCatmullRom(C.z,L.z,K.z,ie.z,Oe,mt,Tt)}else this.curveType==="catmullrom"&&(Pa.initCatmullRom(C.x,L.x,K.x,ie.x,this.tension),Xr.initCatmullRom(C.y,L.y,K.y,ie.y,this.tension),xi.initCatmullRom(C.z,L.z,K.z,ie.z,this.tension));return ce.set(Pa.calc(tt),Xr.calc(tt),xi.calc(tt)),ce},fa.prototype.copy=function(u){ur.prototype.copy.call(this,u),this.points=[];for(var g=0,C=u.points.length;g<C;g++){var L=u.points[g];this.points.push(L.clone())}return this.closed=u.closed,this.curveType=u.curveType,this.tension=u.tension,this},fa.prototype.toJSON=function(){var u=ur.prototype.toJSON.call(this);u.points=[];for(var g=0,C=this.points.length;g<C;g++){var L=this.points[g];u.points.push(L.toArray())}return u.closed=this.closed,u.curveType=this.curveType,u.tension=this.tension,u},fa.prototype.fromJSON=function(u){ur.prototype.fromJSON.call(this,u),this.points=[];for(var g=0,C=u.points.length;g<C;g++){var L=u.points[g];this.points.push(new Kt().fromArray(L))}return this.closed=u.closed,this.curveType=u.curveType,this.tension=u.tension,this},((Ao.prototype=Object.create(ur.prototype)).constructor=Ao).prototype.isCubicBezierCurve=!0,Ao.prototype.getPoint=function(u,g){var C=g||new Lr,L=this.v0,K=this.v1,ie=this.v2,ce=this.v3;return C.set(Qa(u,L.x,K.x,ie.x,ce.x),Qa(u,L.y,K.y,ie.y,ce.y)),C},Ao.prototype.copy=function(u){return ur.prototype.copy.call(this,u),this.v0.copy(u.v0),this.v1.copy(u.v1),this.v2.copy(u.v2),this.v3.copy(u.v3),this},Ao.prototype.toJSON=function(){var u=ur.prototype.toJSON.call(this);return u.v0=this.v0.toArray(),u.v1=this.v1.toArray(),u.v2=this.v2.toArray(),u.v3=this.v3.toArray(),u},Ao.prototype.fromJSON=function(u){return ur.prototype.fromJSON.call(this,u),this.v0.fromArray(u.v0),this.v1.fromArray(u.v1),this.v2.fromArray(u.v2),this.v3.fromArray(u.v3),this},((wa.prototype=Object.create(ur.prototype)).constructor=wa).prototype.isCubicBezierCurve3=!0,wa.prototype.getPoint=function(u,g){var C=g||new Kt,L=this.v0,K=this.v1,ie=this.v2,ce=this.v3;return C.set(Qa(u,L.x,K.x,ie.x,ce.x),Qa(u,L.y,K.y,ie.y,ce.y),Qa(u,L.z,K.z,ie.z,ce.z)),C},wa.prototype.copy=function(u){return ur.prototype.copy.call(this,u),this.v0.copy(u.v0),this.v1.copy(u.v1),this.v2.copy(u.v2),this.v3.copy(u.v3),this},wa.prototype.toJSON=function(){var u=ur.prototype.toJSON.call(this);return u.v0=this.v0.toArray(),u.v1=this.v1.toArray(),u.v2=this.v2.toArray(),u.v3=this.v3.toArray(),u},wa.prototype.fromJSON=function(u){return ur.prototype.fromJSON.call(this,u),this.v0.fromArray(u.v0),this.v1.fromArray(u.v1),this.v2.fromArray(u.v2),this.v3.fromArray(u.v3),this},((Aa.prototype=Object.create(ur.prototype)).constructor=Aa).prototype.isLineCurve=!0,Aa.prototype.getPoint=function(u,g){var C=g||new Lr;return u===1?C.copy(this.v2):(C.copy(this.v2).sub(this.v1),C.multiplyScalar(u).add(this.v1)),C},Aa.prototype.getPointAt=function(u,g){return this.getPoint(u,g)},Aa.prototype.getTangent=function(){return this.v2.clone().sub(this.v1).normalize()},Aa.prototype.copy=function(u){return ur.prototype.copy.call(this,u),this.v1.copy(u.v1),this.v2.copy(u.v2),this},Aa.prototype.toJSON=function(){var u=ur.prototype.toJSON.call(this);return u.v1=this.v1.toArray(),u.v2=this.v2.toArray(),u},Aa.prototype.fromJSON=function(u){return ur.prototype.fromJSON.call(this,u),this.v1.fromArray(u.v1),this.v2.fromArray(u.v2),this},((qs.prototype=Object.create(ur.prototype)).constructor=qs).prototype.isLineCurve3=!0,qs.prototype.getPoint=function(u,g){var C=g||new Kt;return u===1?C.copy(this.v2):(C.copy(this.v2).sub(this.v1),C.multiplyScalar(u).add(this.v1)),C},qs.prototype.getPointAt=function(u,g){return this.getPoint(u,g)},qs.prototype.copy=function(u){return ur.prototype.copy.call(this,u),this.v1.copy(u.v1),this.v2.copy(u.v2),this},qs.prototype.toJSON=function(){var u=ur.prototype.toJSON.call(this);return u.v1=this.v1.toArray(),u.v2=this.v2.toArray(),u},qs.prototype.fromJSON=function(u){return ur.prototype.fromJSON.call(this,u),this.v1.fromArray(u.v1),this.v2.fromArray(u.v2),this},((bs.prototype=Object.create(ur.prototype)).constructor=bs).prototype.isQuadraticBezierCurve=!0,bs.prototype.getPoint=function(u,g){var C=g||new Lr,L=this.v0,K=this.v1,ie=this.v2;return C.set(io(u,L.x,K.x,ie.x),io(u,L.y,K.y,ie.y)),C},bs.prototype.copy=function(u){return ur.prototype.copy.call(this,u),this.v0.copy(u.v0),this.v1.copy(u.v1),this.v2.copy(u.v2),this},bs.prototype.toJSON=function(){var u=ur.prototype.toJSON.call(this);return u.v0=this.v0.toArray(),u.v1=this.v1.toArray(),u.v2=this.v2.toArray(),u},bs.prototype.fromJSON=function(u){return ur.prototype.fromJSON.call(this,u),this.v0.fromArray(u.v0),this.v1.fromArray(u.v1),this.v2.fromArray(u.v2),this},((Xs.prototype=Object.create(ur.prototype)).constructor=Xs).prototype.isQuadraticBezierCurve3=!0,Xs.prototype.getPoint=function(u,g){var C=g||new Kt,L=this.v0,K=this.v1,ie=this.v2;return C.set(io(u,L.x,K.x,ie.x),io(u,L.y,K.y,ie.y),io(u,L.z,K.z,ie.z)),C},Xs.prototype.copy=function(u){return ur.prototype.copy.call(this,u),this.v0.copy(u.v0),this.v1.copy(u.v1),this.v2.copy(u.v2),this},Xs.prototype.toJSON=function(){var u=ur.prototype.toJSON.call(this);return u.v0=this.v0.toArray(),u.v1=this.v1.toArray(),u.v2=this.v2.toArray(),u},Xs.prototype.fromJSON=function(u){return ur.prototype.fromJSON.call(this,u),this.v0.fromArray(u.v0),this.v1.fromArray(u.v1),this.v2.fromArray(u.v2),this},((Qo.prototype=Object.create(ur.prototype)).constructor=Qo).prototype.isSplineCurve=!0,Qo.prototype.getPoint=function(u,g){var C=g||new Lr,L=this.points,K=(L.length-1)*u,ie=Math.floor(K),ce=K-ie,ge=L[ie===0?ie:ie-1],Ee=L[ie],Ae=L[ie>L.length-2?L.length-1:ie+1],We=L[ie>L.length-3?L.length-1:ie+2];return C.set(Ui(ce,ge.x,Ee.x,Ae.x,We.x),Ui(ce,ge.y,Ee.y,Ae.y,We.y)),C},Qo.prototype.copy=function(u){ur.prototype.copy.call(this,u),this.points=[];for(var g=0,C=u.points.length;g<C;g++){var L=u.points[g];this.points.push(L.clone())}return this},Qo.prototype.toJSON=function(){var u=ur.prototype.toJSON.call(this);u.points=[];for(var g=0,C=this.points.length;g<C;g++){var L=this.points[g];u.points.push(L.toArray())}return u},Qo.prototype.fromJSON=function(u){ur.prototype.fromJSON.call(this,u),this.points=[];for(var g=0,C=u.points.length;g<C;g++){var L=u.points[g];this.points.push(new Lr().fromArray(L))}return this};var ru=Object.freeze({__proto__:null,ArcCurve:ci,CatmullRomCurve3:fa,CubicBezierCurve:Ao,CubicBezierCurve3:wa,EllipseCurve:jr,LineCurve:Aa,LineCurve3:qs,QuadraticBezierCurve:bs,QuadraticBezierCurve3:Xs,SplineCurve:Qo});function $l(){ur.call(this),this.type="CurvePath",this.curves=[],this.autoClose=!1}function Hl(u){$l.call(this),this.type="Path",this.currentPoint=new Lr,u&&this.setFromPoints(u)}function Wu(u){Hl.call(this,u),this.uuid=Ta.generateUUID(),this.type="Shape",this.holes=[]}function qo(u,g){Sn.call(this),this.type="Light",this.color=new Fn(u),this.intensity=g!==void 0?g:1,this.receiveShadow=void 0}function Nc(u,g,C){qo.call(this,u,C),this.type="HemisphereLight",this.castShadow=void 0,this.position.copy(Sn.DefaultUp),this.updateMatrix(),this.groundColor=new Fn(g)}function Yu(u){this.camera=u,this.bias=0,this.radius=1,this.mapSize=new Lr(512,512),this.map=null,this.mapPass=null,this.matrix=new Ki,this._frustum=new Yc,this._frameExtents=new Lr(1,1),this._viewportCount=1,this._viewports=[new _o(0,0,1,1)]}function bh(){Yu.call(this,new Js(50,1,.5,500))}function qh(u,g,C,L,K,ie){qo.call(this,u,g),this.type="SpotLight",this.position.copy(Sn.DefaultUp),this.updateMatrix(),this.target=new Sn,Object.defineProperty(this,"power",{get:function(){return this.intensity*Math.PI},set:function(ce){this.intensity=ce/Math.PI}}),this.distance=C!==void 0?C:0,this.angle=L!==void 0?L:Math.PI/3,this.penumbra=K!==void 0?K:0,this.decay=ie!==void 0?ie:1,this.shadow=new bh}function sd(){Yu.call(this,new Js(90,1,.5,500)),this._frameExtents=new Lr(4,2),this._viewportCount=6,this._viewports=[new _o(2,1,1,1),new _o(0,1,1,1),new _o(3,1,1,1),new _o(1,1,1,1),new _o(3,0,1,1),new _o(1,0,1,1)],this._cubeDirections=[new Kt(1,0,0),new Kt(-1,0,0),new Kt(0,0,1),new Kt(0,0,-1),new Kt(0,1,0),new Kt(0,-1,0)],this._cubeUps=[new Kt(0,1,0),new Kt(0,1,0),new Kt(0,1,0),new Kt(0,1,0),new Kt(0,0,1),new Kt(0,0,-1)]}function Vc(u,g,C,L){qo.call(this,u,g),this.type="PointLight",Object.defineProperty(this,"power",{get:function(){return 4*this.intensity*Math.PI},set:function(K){this.intensity=K/(4*Math.PI)}}),this.distance=C!==void 0?C:0,this.decay=L!==void 0?L:1,this.shadow=new sd}function Jd(u,g,C,L,K,ie){lu.call(this),this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=u!==void 0?u:-1,this.right=g!==void 0?g:1,this.top=C!==void 0?C:1,this.bottom=L!==void 0?L:-1,this.near=K!==void 0?K:.1,this.far=ie!==void 0?ie:2e3,this.updateProjectionMatrix()}function zc(){Yu.call(this,new Jd(-5,5,5,-5,.5,500))}function wh(u,g){qo.call(this,u,g),this.type="DirectionalLight",this.position.copy(Sn.DefaultUp),this.updateMatrix(),this.target=new Sn,this.shadow=new zc}function Rf(u,g){qo.call(this,u,g),this.type="AmbientLight",this.castShadow=void 0}function Xh(u,g,C,L){qo.call(this,u,g),this.type="RectAreaLight",this.width=C!==void 0?C:10,this.height=L!==void 0?L:10}function lf(u){X.call(this,u),this.textures={}}$l.prototype=Object.assign(Object.create(ur.prototype),{constructor:$l,add:function(u){this.curves.push(u)},closePath:function(){var u=this.curves[0].getPoint(0),g=this.curves[this.curves.length-1].getPoint(1);u.equals(g)||this.curves.push(new Aa(g,u))},getPoint:function(u){for(var g=u*this.getLength(),C=this.getCurveLengths(),L=0;L<C.length;){if(C[L]>=g){var K=C[L]-g,ie=this.curves[L],ce=ie.getLength(),ge=ce===0?0:1-K/ce;return ie.getPointAt(ge)}L++}return null},getLength:function(){var u=this.getCurveLengths();return u[u.length-1]},updateArcLengths:function(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()},getCurveLengths:function(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;for(var u=[],g=0,C=0,L=this.curves.length;C<L;C++)g+=this.curves[C].getLength(),u.push(g);return this.cacheLengths=u},getSpacedPoints:function(u){u===void 0&&(u=40);for(var g=[],C=0;C<=u;C++)g.push(this.getPoint(C/u));return this.autoClose&&g.push(g[0]),g},getPoints:function(u){u=u||12;for(var g,C=[],L=0,K=this.curves;L<K.length;L++)for(var ie=K[L],ce=ie&&ie.isEllipseCurve?2*u:ie&&(ie.isLineCurve||ie.isLineCurve3)?1:ie&&ie.isSplineCurve?u*ie.points.length:u,ge=ie.getPoints(ce),Ee=0;Ee<ge.length;Ee++){var Ae=ge[Ee];g&&g.equals(Ae)||(C.push(Ae),g=Ae)}return this.autoClose&&1<C.length&&!C[C.length-1].equals(C[0])&&C.push(C[0]),C},copy:function(u){ur.prototype.copy.call(this,u),this.curves=[];for(var g=0,C=u.curves.length;g<C;g++){var L=u.curves[g];this.curves.push(L.clone())}return this.autoClose=u.autoClose,this},toJSON:function(){var u=ur.prototype.toJSON.call(this);u.autoClose=this.autoClose,u.curves=[];for(var g=0,C=this.curves.length;g<C;g++){var L=this.curves[g];u.curves.push(L.toJSON())}return u},fromJSON:function(u){ur.prototype.fromJSON.call(this,u),this.autoClose=u.autoClose,this.curves=[];for(var g=0,C=u.curves.length;g<C;g++){var L=u.curves[g];this.curves.push(new ru[L.type]().fromJSON(L))}return this}}),Hl.prototype=Object.assign(Object.create($l.prototype),{constructor:Hl,setFromPoints:function(u){this.moveTo(u[0].x,u[0].y);for(var g=1,C=u.length;g<C;g++)this.lineTo(u[g].x,u[g].y);return this},moveTo:function(u,g){return this.currentPoint.set(u,g),this},lineTo:function(u,g){var C=new Aa(this.currentPoint.clone(),new Lr(u,g));return this.curves.push(C),this.currentPoint.set(u,g),this},quadraticCurveTo:function(u,g,C,L){var K=new bs(this.currentPoint.clone(),new Lr(u,g),new Lr(C,L));return this.curves.push(K),this.currentPoint.set(C,L),this},bezierCurveTo:function(u,g,C,L,K,ie){var ce=new Ao(this.currentPoint.clone(),new Lr(u,g),new Lr(C,L),new Lr(K,ie));return this.curves.push(ce),this.currentPoint.set(K,ie),this},splineThru:function(u){var g=new Qo([this.currentPoint.clone()].concat(u));return this.curves.push(g),this.currentPoint.copy(u[u.length-1]),this},arc:function(u,g,C,L,K,ie){var ce=this.currentPoint.x,ge=this.currentPoint.y;return this.absarc(u+ce,g+ge,C,L,K,ie),this},absarc:function(u,g,C,L,K,ie){return this.absellipse(u,g,C,C,L,K,ie),this},ellipse:function(u,g,C,L,K,ie,ce,ge){var Ee=this.currentPoint.x,Ae=this.currentPoint.y;return this.absellipse(u+Ee,g+Ae,C,L,K,ie,ce,ge),this},absellipse:function(u,g,C,L,K,ie,ce,ge){var Ee=new jr(u,g,C,L,K,ie,ce,ge);if(0<this.curves.length){var Ae=Ee.getPoint(0);Ae.equals(this.currentPoint)||this.lineTo(Ae.x,Ae.y)}this.curves.push(Ee);var We=Ee.getPoint(1);return this.currentPoint.copy(We),this},copy:function(u){return $l.prototype.copy.call(this,u),this.currentPoint.copy(u.currentPoint),this},toJSON:function(){var u=$l.prototype.toJSON.call(this);return u.currentPoint=this.currentPoint.toArray(),u},fromJSON:function(u){return $l.prototype.fromJSON.call(this,u),this.currentPoint.fromArray(u.currentPoint),this}}),Wu.prototype=Object.assign(Object.create(Hl.prototype),{constructor:Wu,getPointsHoles:function(u){for(var g=[],C=0,L=this.holes.length;C<L;C++)g[C]=this.holes[C].getPoints(u);return g},extractPoints:function(u){return{shape:this.getPoints(u),holes:this.getPointsHoles(u)}},copy:function(u){Hl.prototype.copy.call(this,u),this.holes=[];for(var g=0,C=u.holes.length;g<C;g++){var L=u.holes[g];this.holes.push(L.clone())}return this},toJSON:function(){var u=Hl.prototype.toJSON.call(this);u.uuid=this.uuid,u.holes=[];for(var g=0,C=this.holes.length;g<C;g++){var L=this.holes[g];u.holes.push(L.toJSON())}return u},fromJSON:function(u){Hl.prototype.fromJSON.call(this,u),this.uuid=u.uuid,this.holes=[];for(var g=0,C=u.holes.length;g<C;g++){var L=u.holes[g];this.holes.push(new Hl().fromJSON(L))}return this}}),qo.prototype=Object.assign(Object.create(Sn.prototype),{constructor:qo,isLight:!0,copy:function(u){return Sn.prototype.copy.call(this,u),this.color.copy(u.color),this.intensity=u.intensity,this},toJSON:function(u){var g=Sn.prototype.toJSON.call(this,u);return g.object.color=this.color.getHex(),g.object.intensity=this.intensity,this.groundColor!==void 0&&(g.object.groundColor=this.groundColor.getHex()),this.distance!==void 0&&(g.object.distance=this.distance),this.angle!==void 0&&(g.object.angle=this.angle),this.decay!==void 0&&(g.object.decay=this.decay),this.penumbra!==void 0&&(g.object.penumbra=this.penumbra),this.shadow!==void 0&&(g.object.shadow=this.shadow.toJSON()),g}}),Nc.prototype=Object.assign(Object.create(qo.prototype),{constructor:Nc,isHemisphereLight:!0,copy:function(u){return qo.prototype.copy.call(this,u),this.groundColor.copy(u.groundColor),this}}),Object.assign(Yu.prototype,{_projScreenMatrix:new Ki,_lightPositionWorld:new Kt,_lookTarget:new Kt,getViewportCount:function(){return this._viewportCount},getFrustum:function(){return this._frustum},updateMatrices:function(u){var g=this.camera,C=this.matrix,L=this._projScreenMatrix,K=this._lookTarget,ie=this._lightPositionWorld;ie.setFromMatrixPosition(u.matrixWorld),g.position.copy(ie),K.setFromMatrixPosition(u.target.matrixWorld),g.lookAt(K),g.updateMatrixWorld(),L.multiplyMatrices(g.projectionMatrix,g.matrixWorldInverse),this._frustum.setFromProjectionMatrix(L),C.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),C.multiply(g.projectionMatrix),C.multiply(g.matrixWorldInverse)},getViewport:function(u){return this._viewports[u]},getFrameExtents:function(){return this._frameExtents},copy:function(u){return this.camera=u.camera.clone(),this.bias=u.bias,this.radius=u.radius,this.mapSize.copy(u.mapSize),this},clone:function(){return new this.constructor().copy(this)},toJSON:function(){var u={};return this.bias!==0&&(u.bias=this.bias),this.radius!==1&&(u.radius=this.radius),this.mapSize.x===512&&this.mapSize.y===512||(u.mapSize=this.mapSize.toArray()),u.camera=this.camera.toJSON(!1).object,delete u.camera.matrix,u}}),bh.prototype=Object.assign(Object.create(Yu.prototype),{constructor:bh,isSpotLightShadow:!0,updateMatrices:function(u){var g=this.camera,C=2*Ta.RAD2DEG*u.angle,L=this.mapSize.width/this.mapSize.height,K=u.distance||g.far;C===g.fov&&L===g.aspect&&K===g.far||(g.fov=C,g.aspect=L,g.far=K,g.updateProjectionMatrix()),Yu.prototype.updateMatrices.call(this,u)}}),qh.prototype=Object.assign(Object.create(qo.prototype),{constructor:qh,isSpotLight:!0,copy:function(u){return qo.prototype.copy.call(this,u),this.distance=u.distance,this.angle=u.angle,this.penumbra=u.penumbra,this.decay=u.decay,this.target=u.target.clone(),this.shadow=u.shadow.clone(),this}}),sd.prototype=Object.assign(Object.create(Yu.prototype),{constructor:sd,isPointLightShadow:!0,updateMatrices:function(u,g){g===void 0&&(g=0);var C=this.camera,L=this.matrix,K=this._lightPositionWorld,ie=this._lookTarget,ce=this._projScreenMatrix;K.setFromMatrixPosition(u.matrixWorld),C.position.copy(K),ie.copy(C.position),ie.add(this._cubeDirections[g]),C.up.copy(this._cubeUps[g]),C.lookAt(ie),C.updateMatrixWorld(),L.makeTranslation(-K.x,-K.y,-K.z),ce.multiplyMatrices(C.projectionMatrix,C.matrixWorldInverse),this._frustum.setFromProjectionMatrix(ce)}}),Vc.prototype=Object.assign(Object.create(qo.prototype),{constructor:Vc,isPointLight:!0,copy:function(u){return qo.prototype.copy.call(this,u),this.distance=u.distance,this.decay=u.decay,this.shadow=u.shadow.clone(),this}}),Jd.prototype=Object.assign(Object.create(lu.prototype),{constructor:Jd,isOrthographicCamera:!0,copy:function(u,g){return lu.prototype.copy.call(this,u,g),this.left=u.left,this.right=u.right,this.top=u.top,this.bottom=u.bottom,this.near=u.near,this.far=u.far,this.zoom=u.zoom,this.view=u.view===null?null:Object.assign({},u.view),this},setViewOffset:function(u,g,C,L,K,ie){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=u,this.view.fullHeight=g,this.view.offsetX=C,this.view.offsetY=L,this.view.width=K,this.view.height=ie,this.updateProjectionMatrix()},clearViewOffset:function(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()},updateProjectionMatrix:function(){var u=(this.right-this.left)/(2*this.zoom),g=(this.top-this.bottom)/(2*this.zoom),C=(this.right+this.left)/2,L=(this.top+this.bottom)/2,K=C-u,ie=C+u,ce=L+g,ge=L-g;if(this.view!==null&&this.view.enabled){var Ee=(this.right-this.left)/this.view.fullWidth/this.zoom,Ae=(this.top-this.bottom)/this.view.fullHeight/this.zoom;ie=(K+=Ee*this.view.offsetX)+Ee*this.view.width,ge=(ce-=Ae*this.view.offsetY)-Ae*this.view.height}this.projectionMatrix.makeOrthographic(K,ie,ce,ge,this.near,this.far),this.projectionMatrixInverse.getInverse(this.projectionMatrix)},toJSON:function(u){var g=Sn.prototype.toJSON.call(this,u);return g.object.zoom=this.zoom,g.object.left=this.left,g.object.right=this.right,g.object.top=this.top,g.object.bottom=this.bottom,g.object.near=this.near,g.object.far=this.far,this.view!==null&&(g.object.view=Object.assign({},this.view)),g}}),zc.prototype=Object.assign(Object.create(Yu.prototype),{constructor:zc,isDirectionalLightShadow:!0,updateMatrices:function(u){Yu.prototype.updateMatrices.call(this,u)}}),wh.prototype=Object.assign(Object.create(qo.prototype),{constructor:wh,isDirectionalLight:!0,copy:function(u){return qo.prototype.copy.call(this,u),this.target=u.target.clone(),this.shadow=u.shadow.clone(),this}}),Rf.prototype=Object.assign(Object.create(qo.prototype),{constructor:Rf,isAmbientLight:!0}),Xh.prototype=Object.assign(Object.create(qo.prototype),{constructor:Xh,isRectAreaLight:!0,copy:function(u){return qo.prototype.copy.call(this,u),this.width=u.width,this.height=u.height,this},toJSON:function(u){var g=qo.prototype.toJSON.call(this,u);return g.object.width=this.width,g.object.height=this.height,g}}),lf.prototype=Object.assign(Object.create(X.prototype),{constructor:lf,load:function(u,g,C,L){var K=this,ie=new Se(K.manager);ie.setPath(K.path),ie.load(u,function(ce){g(K.parse(JSON.parse(ce)))},C,L)},parse:function(u){var g=this.textures;function C(Ee){return g[Ee]===void 0&&console.warn("THREE.MaterialLoader: Undefined texture",Ee),g[Ee]}var L=new om[u.type];if(u.uuid!==void 0&&(L.uuid=u.uuid),u.name!==void 0&&(L.name=u.name),u.color!==void 0&&L.color.setHex(u.color),u.roughness!==void 0&&(L.roughness=u.roughness),u.metalness!==void 0&&(L.metalness=u.metalness),u.sheen!==void 0&&(L.sheen=new Fn().setHex(u.sheen)),u.emissive!==void 0&&L.emissive.setHex(u.emissive),u.specular!==void 0&&L.specular.setHex(u.specular),u.shininess!==void 0&&(L.shininess=u.shininess),u.clearcoat!==void 0&&(L.clearcoat=u.clearcoat),u.clearcoatRoughness!==void 0&&(L.clearcoatRoughness=u.clearcoatRoughness),u.vertexColors!==void 0&&(L.vertexColors=u.vertexColors),u.fog!==void 0&&(L.fog=u.fog),u.flatShading!==void 0&&(L.flatShading=u.flatShading),u.blending!==void 0&&(L.blending=u.blending),u.combine!==void 0&&(L.combine=u.combine),u.side!==void 0&&(L.side=u.side),u.opacity!==void 0&&(L.opacity=u.opacity),u.transparent!==void 0&&(L.transparent=u.transparent),u.alphaTest!==void 0&&(L.alphaTest=u.alphaTest),u.depthTest!==void 0&&(L.depthTest=u.depthTest),u.depthWrite!==void 0&&(L.depthWrite=u.depthWrite),u.colorWrite!==void 0&&(L.colorWrite=u.colorWrite),u.stencilWrite!==void 0&&(L.stencilWrite=u.stencilWrite),u.stencilWriteMask!==void 0&&(L.stencilWriteMask=u.stencilWriteMask),u.stencilFunc!==void 0&&(L.stencilFunc=u.stencilFunc),u.stencilRef!==void 0&&(L.stencilRef=u.stencilRef),u.stencilFuncMask!==void 0&&(L.stencilFuncMask=u.stencilFuncMask),u.stencilFail!==void 0&&(L.stencilFail=u.stencilFail),u.stencilZFail!==void 0&&(L.stencilZFail=u.stencilZFail),u.stencilZPass!==void 0&&(L.stencilZPass=u.stencilZPass),u.wireframe!==void 0&&(L.wireframe=u.wireframe),u.wireframeLinewidth!==void 0&&(L.wireframeLinewidth=u.wireframeLinewidth),u.wireframeLinecap!==void 0&&(L.wireframeLinecap=u.wireframeLinecap),u.wireframeLinejoin!==void 0&&(L.wireframeLinejoin=u.wireframeLinejoin),u.rotation!==void 0&&(L.rotation=u.rotation),u.linewidth!==1&&(L.linewidth=u.linewidth),u.dashSize!==void 0&&(L.dashSize=u.dashSize),u.gapSize!==void 0&&(L.gapSize=u.gapSize),u.scale!==void 0&&(L.scale=u.scale),u.polygonOffset!==void 0&&(L.polygonOffset=u.polygonOffset),u.polygonOffsetFactor!==void 0&&(L.polygonOffsetFactor=u.polygonOffsetFactor),u.polygonOffsetUnits!==void 0&&(L.polygonOffsetUnits=u.polygonOffsetUnits),u.skinning!==void 0&&(L.skinning=u.skinning),u.morphTargets!==void 0&&(L.morphTargets=u.morphTargets),u.morphNormals!==void 0&&(L.morphNormals=u.morphNormals),u.dithering!==void 0&&(L.dithering=u.dithering),u.visible!==void 0&&(L.visible=u.visible),u.toneMapped!==void 0&&(L.toneMapped=u.toneMapped),u.userData!==void 0&&(L.userData=u.userData),u.uniforms!==void 0)for(var K in u.uniforms){var ie=u.uniforms[K];switch(L.uniforms[K]={},ie.type){case"t":L.uniforms[K].value=C(ie.value);break;case"c":L.uniforms[K].value=new Fn().setHex(ie.value);break;case"v2":L.uniforms[K].value=new Lr().fromArray(ie.value);break;case"v3":L.uniforms[K].value=new Kt().fromArray(ie.value);break;case"v4":L.uniforms[K].value=new _o().fromArray(ie.value);break;case"m3":L.uniforms[K].value=new Vo().fromArray(ie.value);case"m4":L.uniforms[K].value=new Ki().fromArray(ie.value);break;default:L.uniforms[K].value=ie.value}}if(u.defines!==void 0&&(L.defines=u.defines),u.vertexShader!==void 0&&(L.vertexShader=u.vertexShader),u.fragmentShader!==void 0&&(L.fragmentShader=u.fragmentShader),u.extensions!==void 0)for(var ce in u.extensions)L.extensions[ce]=u.extensions[ce];if(u.shading!==void 0&&(L.flatShading=u.shading===1),u.size!==void 0&&(L.size=u.size),u.sizeAttenuation!==void 0&&(L.sizeAttenuation=u.sizeAttenuation),u.map!==void 0&&(L.map=C(u.map)),u.matcap!==void 0&&(L.matcap=C(u.matcap)),u.alphaMap!==void 0&&(L.alphaMap=C(u.alphaMap),L.transparent=!0),u.bumpMap!==void 0&&(L.bumpMap=C(u.bumpMap)),u.bumpScale!==void 0&&(L.bumpScale=u.bumpScale),u.normalMap!==void 0&&(L.normalMap=C(u.normalMap)),u.normalMapType!==void 0&&(L.normalMapType=u.normalMapType),u.normalScale!==void 0){var ge=u.normalScale;Array.isArray(ge)===!1&&(ge=[ge,ge]),L.normalScale=new Lr().fromArray(ge)}return u.displacementMap!==void 0&&(L.displacementMap=C(u.displacementMap)),u.displacementScale!==void 0&&(L.displacementScale=u.displacementScale),u.displacementBias!==void 0&&(L.displacementBias=u.displacementBias),u.roughnessMap!==void 0&&(L.roughnessMap=C(u.roughnessMap)),u.metalnessMap!==void 0&&(L.metalnessMap=C(u.metalnessMap)),u.emissiveMap!==void 0&&(L.emissiveMap=C(u.emissiveMap)),u.emissiveIntensity!==void 0&&(L.emissiveIntensity=u.emissiveIntensity),u.specularMap!==void 0&&(L.specularMap=C(u.specularMap)),u.envMap!==void 0&&(L.envMap=C(u.envMap)),u.envMapIntensity!==void 0&&(L.envMapIntensity=u.envMapIntensity),u.reflectivity!==void 0&&(L.reflectivity=u.reflectivity),u.refractionRatio!==void 0&&(L.refractionRatio=u.refractionRatio),u.lightMap!==void 0&&(L.lightMap=C(u.lightMap)),u.lightMapIntensity!==void 0&&(L.lightMapIntensity=u.lightMapIntensity),u.aoMap!==void 0&&(L.aoMap=C(u.aoMap)),u.aoMapIntensity!==void 0&&(L.aoMapIntensity=u.aoMapIntensity),u.gradientMap!==void 0&&(L.gradientMap=C(u.gradientMap)),u.clearcoatNormalMap!==void 0&&(L.clearcoatNormalMap=C(u.clearcoatNormalMap)),u.clearcoatNormalScale!==void 0&&(L.clearcoatNormalScale=new Lr().fromArray(u.clearcoatNormalScale)),L},setTextures:function(u){return this.textures=u,this}});var Lf={decodeText:function(u){if(typeof TextDecoder!="undefined")return new TextDecoder().decode(u);for(var g="",C=0,L=u.length;C<L;C++)g+=String.fromCharCode(u[C]);try{return decodeURIComponent(escape(g))}catch(K){return g}},extractUrlBase:function(u){var g=u.lastIndexOf("/");return g===-1?"./":u.substr(0,g+1)}};function Of(){qi.call(this),this.type="InstancedBufferGeometry",this.maxInstancedCount=void 0}function Ff(u,g,C,L){typeof C=="number"&&(L=C,C=!1,console.error("THREE.InstancedBufferAttribute: The constructor now expects normalized as the third argument.")),Bn.call(this,u,g,C),this.meshPerAttribute=L||1}function Bf(u){X.call(this,u)}Of.prototype=Object.assign(Object.create(qi.prototype),{constructor:Of,isInstancedBufferGeometry:!0,copy:function(u){return qi.prototype.copy.call(this,u),this.maxInstancedCount=u.maxInstancedCount,this},clone:function(){return new this.constructor().copy(this)},toJSON:function(){var u=qi.prototype.toJSON.call(this);return u.maxInstancedCount=this.maxInstancedCount,u.isInstancedBufferGeometry=!0,u}}),Ff.prototype=Object.assign(Object.create(Bn.prototype),{constructor:Ff,isInstancedBufferAttribute:!0,copy:function(u){return Bn.prototype.copy.call(this,u),this.meshPerAttribute=u.meshPerAttribute,this},toJSON:function(){var u=Bn.prototype.toJSON.call(this);return u.meshPerAttribute=this.meshPerAttribute,u.isInstancedBufferAttribute=!0,u}}),Bf.prototype=Object.assign(Object.create(X.prototype),{constructor:Bf,load:function(u,g,C,L){var K=this,ie=new Se(K.manager);ie.setPath(K.path),ie.load(u,function(ce){g(K.parse(JSON.parse(ce)))},C,L)},parse:function(u){var g=new(u.isInstancedBufferGeometry?Of:qi),C=u.data.index;if(C!==void 0){var L=new lm[C.type](C.array);g.setIndex(new Bn(L,1))}var K=u.data.attributes;for(var ie in K){var ce=K[ie],ge=(L=new lm[ce.type](ce.array),new(ce.isInstancedBufferAttribute?Ff:Bn)(L,ce.itemSize,ce.normalized));ce.name!==void 0&&(ge.name=ce.name),g.setAttribute(ie,ge)}var Ee=u.data.morphAttributes;if(Ee)for(var ie in Ee){for(var Ae=Ee[ie],We=[],tt=0,ot=Ae.length;tt<ot;tt++)ce=Ae[tt],ge=new Bn(L=new lm[ce.type](ce.array),ce.itemSize,ce.normalized),ce.name!==void 0&&(ge.name=ce.name),We.push(ge);g.morphAttributes[ie]=We}u.data.morphTargetsRelative&&(g.morphTargetsRelative=!0);var Oe=u.data.groups||u.data.drawcalls||u.data.offsets;if(Oe!==void 0){tt=0;for(var mt=Oe.length;tt!==mt;++tt){var Tt=Oe[tt];g.addGroup(Tt.start,Tt.count,Tt.materialIndex)}}var At=u.data.boundingSphere;if(At!==void 0){var nn=new Kt;At.center!==void 0&&nn.fromArray(At.center),g.boundingSphere=new po(nn,At.radius)}return u.name&&(g.name=u.name),u.userData&&(g.userData=u.userData),g}});var lm={Int8Array,Uint8Array,Uint8ClampedArray:typeof Uint8ClampedArray!="undefined"?Uint8ClampedArray:Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array};function Nf(u){X.call(this,u)}Nf.prototype=Object.assign(Object.create(X.prototype),{constructor:Nf,load:function(u,g,C,L){var K=this,ie=this.path===""?Lf.extractUrlBase(u):this.path;this.resourcePath=this.resourcePath||ie;var ce=new Se(K.manager);ce.setPath(this.path),ce.load(u,function(ge){var Ee=null;try{Ee=JSON.parse(ge)}catch(We){return L!==void 0&&L(We),void console.error("THREE:ObjectLoader: Can't parse "+u+".",We.message)}var Ae=Ee.metadata;Ae!==void 0&&Ae.type!==void 0&&Ae.type.toLowerCase()!=="geometry"?K.parse(Ee,g):console.error("THREE.ObjectLoader: Can't load "+u)},C,L)},parse:function(u,g){var C=this.parseShape(u.shapes),L=this.parseGeometries(u.geometries,C),K=this.parseImages(u.images,function(){g!==void 0&&g(ge)}),ie=this.parseTextures(u.textures,K),ce=this.parseMaterials(u.materials,ie),ge=this.parseObject(u.object,L,ce);return u.animations&&(ge.animations=this.parseAnimations(u.animations)),u.images!==void 0&&u.images.length!==0||g!==void 0&&g(ge),ge},parseShape:function(u){var g={};if(u!==void 0)for(var C=0,L=u.length;C<L;C++){var K=new Wu().fromJSON(u[C]);g[K.uuid]=K}return g},parseGeometries:function(u,g){var C={};if(u!==void 0)for(var L=new Bf,K=0,ie=u.length;K<ie;K++){var ce,ge=u[K];switch(ge.type){case"PlaneGeometry":case"PlaneBufferGeometry":ce=new ku[ge.type](ge.width,ge.height,ge.widthSegments,ge.heightSegments);break;case"BoxGeometry":case"BoxBufferGeometry":case"CubeGeometry":ce=new ku[ge.type](ge.width,ge.height,ge.depth,ge.widthSegments,ge.heightSegments,ge.depthSegments);break;case"CircleGeometry":case"CircleBufferGeometry":ce=new ku[ge.type](ge.radius,ge.segments,ge.thetaStart,ge.thetaLength);break;case"CylinderGeometry":case"CylinderBufferGeometry":ce=new ku[ge.type](ge.radiusTop,ge.radiusBottom,ge.height,ge.radialSegments,ge.heightSegments,ge.openEnded,ge.thetaStart,ge.thetaLength);break;case"ConeGeometry":case"ConeBufferGeometry":ce=new ku[ge.type](ge.radius,ge.height,ge.radialSegments,ge.heightSegments,ge.openEnded,ge.thetaStart,ge.thetaLength);break;case"SphereGeometry":case"SphereBufferGeometry":ce=new ku[ge.type](ge.radius,ge.widthSegments,ge.heightSegments,ge.phiStart,ge.phiLength,ge.thetaStart,ge.thetaLength);break;case"DodecahedronGeometry":case"DodecahedronBufferGeometry":case"IcosahedronGeometry":case"IcosahedronBufferGeometry":case"OctahedronGeometry":case"OctahedronBufferGeometry":case"TetrahedronGeometry":case"TetrahedronBufferGeometry":ce=new ku[ge.type](ge.radius,ge.detail);break;case"RingGeometry":case"RingBufferGeometry":ce=new ku[ge.type](ge.innerRadius,ge.outerRadius,ge.thetaSegments,ge.phiSegments,ge.thetaStart,ge.thetaLength);break;case"TorusGeometry":case"TorusBufferGeometry":ce=new ku[ge.type](ge.radius,ge.tube,ge.radialSegments,ge.tubularSegments,ge.arc);break;case"TorusKnotGeometry":case"TorusKnotBufferGeometry":ce=new ku[ge.type](ge.radius,ge.tube,ge.tubularSegments,ge.radialSegments,ge.p,ge.q);break;case"TubeGeometry":case"TubeBufferGeometry":ce=new ku[ge.type](new ru[ge.path.type]().fromJSON(ge.path),ge.tubularSegments,ge.radius,ge.radialSegments,ge.closed);break;case"LatheGeometry":case"LatheBufferGeometry":ce=new ku[ge.type](ge.points,ge.segments,ge.phiStart,ge.phiLength);break;case"PolyhedronGeometry":case"PolyhedronBufferGeometry":ce=new ku[ge.type](ge.vertices,ge.indices,ge.radius,ge.details);break;case"ShapeGeometry":case"ShapeBufferGeometry":for(var Ee=[],Ae=0,We=ge.shapes.length;Ae<We;Ae++){var tt=g[ge.shapes[Ae]];Ee.push(tt)}ce=new ku[ge.type](Ee,ge.curveSegments);break;case"ExtrudeGeometry":case"ExtrudeBufferGeometry":for(Ee=[],Ae=0,We=ge.shapes.length;Ae<We;Ae++)tt=g[ge.shapes[Ae]],Ee.push(tt);var ot=ge.options.extrudePath;ot!==void 0&&(ge.options.extrudePath=new ru[ot.type]().fromJSON(ot)),ce=new ku[ge.type](Ee,ge.options);break;case"BufferGeometry":case"InstancedBufferGeometry":ce=L.parse(ge);break;case"Geometry":"THREE"in window&&"LegacyJSONLoader"in THREE?ce=new THREE.LegacyJSONLoader().parse(ge,this.resourcePath).geometry:console.error('THREE.ObjectLoader: You have to import LegacyJSONLoader in order load geometry data of type "Geometry".');break;default:console.warn('THREE.ObjectLoader: Unsupported geometry type "'+ge.type+'"');continue}ce.uuid=ge.uuid,ge.name!==void 0&&(ce.name=ge.name),ce.isBufferGeometry===!0&&ge.userData!==void 0&&(ce.userData=ge.userData),C[ge.uuid]=ce}return C},parseMaterials:function(u,g){var C={},L={};if(u!==void 0){var K=new lf;K.setTextures(g);for(var ie=0,ce=u.length;ie<ce;ie++){var ge=u[ie];if(ge.type==="MultiMaterial"){for(var Ee=[],Ae=0;Ae<ge.materials.length;Ae++){var We=ge.materials[Ae];C[We.uuid]===void 0&&(C[We.uuid]=K.parse(We)),Ee.push(C[We.uuid])}L[ge.uuid]=Ee}else C[ge.uuid]===void 0&&(C[ge.uuid]=K.parse(ge)),L[ge.uuid]=C[ge.uuid]}}return L},parseAnimations:function(u){for(var g=[],C=0;C<u.length;C++){var L=u[C],K=Hu.parse(L);L.uuid!==void 0&&(K.uuid=L.uuid),g.push(K)}return g},parseImages:function(u,g){var C=this,L={};function K(mt){return C.manager.itemStart(mt),ie.load(mt,function(){C.manager.itemEnd(mt)},void 0,function(){C.manager.itemError(mt),C.manager.itemEnd(mt)})}if(u!==void 0&&0<u.length){var ie=new Rn(new sf(g));ie.setCrossOrigin(this.crossOrigin);for(var ce=0,ge=u.length;ce<ge;ce++){var Ee=u[ce],Ae=Ee.url;if(Array.isArray(Ae)){L[Ee.uuid]=[];for(var We=0,tt=Ae.length;We<tt;We++){var ot=Ae[We],Oe=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(ot)?ot:C.resourcePath+ot;L[Ee.uuid].push(K(Oe))}}else Oe=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(Ee.url)?Ee.url:C.resourcePath+Ee.url,L[Ee.uuid]=K(Oe)}}return L},parseTextures:function(u,g){function C(Ee,Ae){return typeof Ee=="number"?Ee:(console.warn("THREE.ObjectLoader.parseTexture: Constant should be in numeric form.",Ee),Ae[Ee])}var L={};if(u!==void 0)for(var K=0,ie=u.length;K<ie;K++){var ce,ge=u[K];ge.image===void 0&&console.warn('THREE.ObjectLoader: No "image" specified for',ge.uuid),g[ge.image]===void 0&&console.warn("THREE.ObjectLoader: Undefined image",ge.image),(ce=new(Array.isArray(g[ge.image])?Tc:vo)(g[ge.image])).needsUpdate=!0,ce.uuid=ge.uuid,ge.name!==void 0&&(ce.name=ge.name),ge.mapping!==void 0&&(ce.mapping=C(ge.mapping,Ym)),ge.offset!==void 0&&ce.offset.fromArray(ge.offset),ge.repeat!==void 0&&ce.repeat.fromArray(ge.repeat),ge.center!==void 0&&ce.center.fromArray(ge.center),ge.rotation!==void 0&&(ce.rotation=ge.rotation),ge.wrap!==void 0&&(ce.wrapS=C(ge.wrap[0],uf),ce.wrapT=C(ge.wrap[1],uf)),ge.format!==void 0&&(ce.format=ge.format),ge.type!==void 0&&(ce.type=ge.type),ge.encoding!==void 0&&(ce.encoding=ge.encoding),ge.minFilter!==void 0&&(ce.minFilter=C(ge.minFilter,Im)),ge.magFilter!==void 0&&(ce.magFilter=C(ge.magFilter,Im)),ge.anisotropy!==void 0&&(ce.anisotropy=ge.anisotropy),ge.flipY!==void 0&&(ce.flipY=ge.flipY),ge.premultiplyAlpha!==void 0&&(ce.premultiplyAlpha=ge.premultiplyAlpha),ge.unpackAlignment!==void 0&&(ce.unpackAlignment=ge.unpackAlignment),L[ge.uuid]=ce}return L},parseObject:function(u,g,C){var L;function K(At){return g[At]===void 0&&console.warn("THREE.ObjectLoader: Undefined geometry",At),g[At]}function ie(At){if(At!==void 0){if(Array.isArray(At)){for(var nn=[],fn=0,An=At.length;fn<An;fn++){var zn=At[fn];C[zn]===void 0&&console.warn("THREE.ObjectLoader: Undefined material",zn),nn.push(C[zn])}return nn}return C[At]===void 0&&console.warn("THREE.ObjectLoader: Undefined material",At),C[At]}}switch(u.type){case"Scene":L=new Gn,u.background!==void 0&&Number.isInteger(u.background)&&(L.background=new Fn(u.background)),u.fog!==void 0&&(u.fog.type==="Fog"?L.fog=new cl(u.fog.color,u.fog.near,u.fog.far):u.fog.type==="FogExp2"&&(L.fog=new jl(u.fog.color,u.fog.density)));break;case"PerspectiveCamera":L=new Js(u.fov,u.aspect,u.near,u.far),u.focus!==void 0&&(L.focus=u.focus),u.zoom!==void 0&&(L.zoom=u.zoom),u.filmGauge!==void 0&&(L.filmGauge=u.filmGauge),u.filmOffset!==void 0&&(L.filmOffset=u.filmOffset),u.view!==void 0&&(L.view=Object.assign({},u.view));break;case"OrthographicCamera":L=new Jd(u.left,u.right,u.top,u.bottom,u.near,u.far),u.zoom!==void 0&&(L.zoom=u.zoom),u.view!==void 0&&(L.view=Object.assign({},u.view));break;case"AmbientLight":L=new Rf(u.color,u.intensity);break;case"DirectionalLight":L=new wh(u.color,u.intensity);break;case"PointLight":L=new Vc(u.color,u.intensity,u.distance,u.decay);break;case"RectAreaLight":L=new Xh(u.color,u.intensity,u.width,u.height);break;case"SpotLight":L=new qh(u.color,u.intensity,u.distance,u.angle,u.penumbra,u.decay);break;case"HemisphereLight":L=new Nc(u.color,u.groundColor,u.intensity);break;case"SkinnedMesh":console.warn("THREE.ObjectLoader.parseObject() does not support SkinnedMesh yet.");case"Mesh":var ce=K(u.geometry),ge=ie(u.material);L=new(ce.bones&&0<ce.bones.length?Su:hs)(ce,ge);break;case"InstancedMesh":ce=K(u.geometry),ge=ie(u.material);var Ee=u.count,Ae=u.instanceMatrix;(L=new ch(ce,ge,Ee)).instanceMatrix=new Bn(new Float32Array(Ae.array),16);break;case"LOD":L=new ac;break;case"Line":L=new tu(K(u.geometry),ie(u.material),u.mode);break;case"LineLoop":L=new Md(K(u.geometry),ie(u.material));break;case"LineSegments":L=new Fs(K(u.geometry),ie(u.material));break;case"PointCloud":case"Points":L=new Du(K(u.geometry),ie(u.material));break;case"Sprite":L=new sp(ie(u.material));break;case"Group":L=new El;break;default:L=new Sn}if(L.uuid=u.uuid,u.name!==void 0&&(L.name=u.name),u.matrix!==void 0?(L.matrix.fromArray(u.matrix),u.matrixAutoUpdate!==void 0&&(L.matrixAutoUpdate=u.matrixAutoUpdate),L.matrixAutoUpdate&&L.matrix.decompose(L.position,L.quaternion,L.scale)):(u.position!==void 0&&L.position.fromArray(u.position),u.rotation!==void 0&&L.rotation.fromArray(u.rotation),u.quaternion!==void 0&&L.quaternion.fromArray(u.quaternion),u.scale!==void 0&&L.scale.fromArray(u.scale)),u.castShadow!==void 0&&(L.castShadow=u.castShadow),u.receiveShadow!==void 0&&(L.receiveShadow=u.receiveShadow),u.shadow&&(u.shadow.bias!==void 0&&(L.shadow.bias=u.shadow.bias),u.shadow.radius!==void 0&&(L.shadow.radius=u.shadow.radius),u.shadow.mapSize!==void 0&&L.shadow.mapSize.fromArray(u.shadow.mapSize),u.shadow.camera!==void 0&&(L.shadow.camera=this.parseObject(u.shadow.camera))),u.visible!==void 0&&(L.visible=u.visible),u.frustumCulled!==void 0&&(L.frustumCulled=u.frustumCulled),u.renderOrder!==void 0&&(L.renderOrder=u.renderOrder),u.userData!==void 0&&(L.userData=u.userData),u.layers!==void 0&&(L.layers.mask=u.layers),u.children!==void 0)for(var We=u.children,tt=0;tt<We.length;tt++)L.add(this.parseObject(We[tt],g,C));if(u.type==="LOD"){u.autoUpdate!==void 0&&(L.autoUpdate=u.autoUpdate);for(var ot=u.levels,Oe=0;Oe<ot.length;Oe++){var mt=ot[Oe],Tt=L.getObjectByProperty("uuid",mt.object);Tt!==void 0&&L.addLevel(Tt,mt.distance)}}return L}});var Vf,Ym={UVMapping:300,CubeReflectionMapping:Tn,CubeRefractionMapping:on,EquirectangularReflectionMapping:$n,EquirectangularRefractionMapping:Zt,SphericalReflectionMapping:Et,CubeUVReflectionMapping:rn,CubeUVRefractionMapping:wt},uf={RepeatWrapping:Yn,ClampToEdgeWrapping:pt,MirroredRepeatWrapping:Fe},Im={NearestFilter:Ie,NearestMipmapNearestFilter:ct,NearestMipmapLinearFilter:Ht,LinearFilter:sn,LinearMipmapNearestFilter:yn,LinearMipmapLinearFilter:Dr};function zf(u){typeof createImageBitmap=="undefined"&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),typeof fetch=="undefined"&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),X.call(this,u),this.options=void 0}function Gf(){this.type="ShapePath",this.color=new Fn,this.subPaths=[],this.currentPath=null}function jf(u){this.type="Font",this.data=u}function qm(u,g,C,L,K){var ie=K.glyphs[u]||K.glyphs["?"];if(ie){var ce,ge,Ee,Ae,We,tt,ot,Oe,mt=new Gf;if(ie.o)for(var Tt=ie._cachedOutline||(ie._cachedOutline=ie.o.split(" ")),At=0,nn=Tt.length;At<nn;)switch(Tt[At++]){case"m":ce=Tt[At++]*g+C,ge=Tt[At++]*g+L,mt.moveTo(ce,ge);break;case"l":ce=Tt[At++]*g+C,ge=Tt[At++]*g+L,mt.lineTo(ce,ge);break;case"q":Ee=Tt[At++]*g+C,Ae=Tt[At++]*g+L,We=Tt[At++]*g+C,tt=Tt[At++]*g+L,mt.quadraticCurveTo(We,tt,Ee,Ae);break;case"b":Ee=Tt[At++]*g+C,Ae=Tt[At++]*g+L,We=Tt[At++]*g+C,tt=Tt[At++]*g+L,ot=Tt[At++]*g+C,Oe=Tt[At++]*g+L,mt.bezierCurveTo(We,tt,ot,Oe,Ee,Ae)}return{offsetX:ie.ha*g,path:mt}}console.error('THREE.Font: character "'+u+'" does not exists in font family '+K.familyName+".")}function um(u){X.call(this,u)}zf.prototype=Object.assign(Object.create(X.prototype),{constructor:zf,setOptions:function(u){return this.options=u,this},load:function(u,g,C,L){u===void 0&&(u=""),this.path!==void 0&&(u=this.path+u),u=this.manager.resolveURL(u);var K=this,ie=_c.get(u);if(ie!==void 0)return K.manager.itemStart(u),setTimeout(function(){g&&g(ie),K.manager.itemEnd(u)},0),ie;fetch(u).then(function(ce){return ce.blob()}).then(function(ce){return K.options===void 0?createImageBitmap(ce):createImageBitmap(ce,K.options)}).then(function(ce){_c.add(u,ce),g&&g(ce),K.manager.itemEnd(u)}).catch(function(ce){L&&L(ce),K.manager.itemError(u),K.manager.itemEnd(u)}),K.manager.itemStart(u)}}),Object.assign(Gf.prototype,{moveTo:function(u,g){return this.currentPath=new Hl,this.subPaths.push(this.currentPath),this.currentPath.moveTo(u,g),this},lineTo:function(u,g){return this.currentPath.lineTo(u,g),this},quadraticCurveTo:function(u,g,C,L){return this.currentPath.quadraticCurveTo(u,g,C,L),this},bezierCurveTo:function(u,g,C,L,K,ie){return this.currentPath.bezierCurveTo(u,g,C,L,K,ie),this},splineThru:function(u){return this.currentPath.splineThru(u),this},toShapes:function(u,g){function C(vr){for(var yi=[],Bi=0,ya=vr.length;Bi<ya;Bi++){var sa=vr[Bi],oa=new Wu;oa.curves=sa.curves,yi.push(oa)}return yi}function L(vr,yi){for(var Bi=yi.length,ya=!1,sa=Bi-1,oa=0;oa<Bi;sa=oa++){var $a=yi[sa],ta=yi[oa],Mn=ta.x-$a.x,Wn=ta.y-$a.y;if(Math.abs(Wn)>Number.EPSILON){if(Wn<0&&($a=yi[oa],Mn=-Mn,ta=yi[sa],Wn=-Wn),vr.y<$a.y||vr.y>ta.y)continue;if(vr.y===$a.y){if(vr.x===$a.x)return 1}else{var ai=Wn*(vr.x-$a.x)-Mn*(vr.y-$a.y);if(ai==0)return 1;if(ai<0)continue;ya=!ya}}else{if(vr.y!==$a.y)continue;if(ta.x<=vr.x&&vr.x<=$a.x||$a.x<=vr.x&&vr.x<=ta.x)return 1}}return ya}var K=rd.isClockWise,ie=this.subPaths;if(ie.length===0)return[];if(g===!0)return C(ie);var ce,ge,Ee,Ae=[];if(ie.length===1)return ge=ie[0],(Ee=new Wu).curves=ge.curves,Ae.push(Ee),Ae;var We=!K(ie[0].getPoints());We=u?!We:We;var tt,ot,Oe=[],mt=[],Tt=[],At=0;mt[At]=void 0,Tt[At]=[];for(var nn=0,fn=ie.length;nn<fn;nn++)ce=K(tt=(ge=ie[nn]).getPoints()),(ce=u?!ce:ce)?(!We&&mt[At]&&At++,mt[At]={s:new Wu,p:tt},mt[At].s.curves=ge.curves,We&&At++,Tt[At]=[]):Tt[At].push({h:ge,p:tt[0]});if(!mt[0])return C(ie);if(1<mt.length){for(var An=!1,zn=[],Dn=0,Qn=mt.length;Dn<Qn;Dn++)Oe[Dn]=[];for(Dn=0,Qn=mt.length;Dn<Qn;Dn++)for(var Pn=Tt[Dn],cr=0;cr<Pn.length;cr++){for(var Cr=Pn[cr],_r=!0,Er=0;Er<mt.length;Er++)L(Cr.p,mt[Er].p)&&(Dn!==Er&&zn.push({froms:Dn,tos:Er,hole:cr}),_r?(_r=!1,Oe[Er].push(Cr)):An=!0);_r&&Oe[Dn].push(Cr)}0<zn.length&&(An||(Tt=Oe))}nn=0;for(var Vr=mt.length;nn<Vr;nn++){Ee=mt[nn].s,Ae.push(Ee);for(var si=0,Ar=(ot=Tt[nn]).length;si<Ar;si++)Ee.holes.push(ot[si].h)}return Ae}}),Object.assign(jf.prototype,{isFont:!0,generateShapes:function(u,g){g===void 0&&(g=100);for(var C=[],L=function(ce,ge,Ee){for(var Ae=Array.from?Array.from(ce):String(ce).split(""),We=ge/Ee.resolution,tt=(Ee.boundingBox.yMax-Ee.boundingBox.yMin+Ee.underlineThickness)*We,ot=[],Oe=0,mt=0,Tt=0;Tt<Ae.length;Tt++){var At=Ae[Tt];if(At===`
  2698. `)Oe=0,mt-=tt;else{var nn=qm(At,We,Oe,mt,Ee);Oe+=nn.offsetX,ot.push(nn.path)}}return ot}(u,g,this.data),K=0,ie=L.length;K<ie;K++)Array.prototype.push.apply(C,L[K].toShapes());return C}}),um.prototype=Object.assign(Object.create(X.prototype),{constructor:um,load:function(u,g,C,L){var K=this,ie=new Se(this.manager);ie.setPath(this.path),ie.load(u,function(ce){var ge;try{ge=JSON.parse(ce)}catch(Ae){console.warn("THREE.FontLoader: typeface.js support is being deprecated. Use typeface.json instead."),ge=JSON.parse(ce.substring(65,ce.length-2))}var Ee=K.parse(ge);g&&g(Ee)},C,L)},parse:function(u){return new jf(u)}});var cm={getContext:function(){return Vf===void 0&&(Vf=new(window.AudioContext||window.webkitAudioContext)),Vf},setContext:function(u){Vf=u}};function Uf(u){X.call(this,u)}function cf(){this.coefficients=[];for(var u=0;u<9;u++)this.coefficients.push(new Kt)}function Pd(u,g){qo.call(this,void 0,g),this.sh=u!==void 0?u:new cf}function iu(u,g,C){Pd.call(this,void 0,C);var L=new Fn().set(u),K=new Fn().set(g),ie=new Kt(L.r,L.g,L.b),ce=new Kt(K.r,K.g,K.b),ge=Math.sqrt(Math.PI),Ee=ge*Math.sqrt(.75);this.sh.coefficients[0].copy(ie).add(ce).multiplyScalar(ge),this.sh.coefficients[1].copy(ie).sub(ce).multiplyScalar(Ee)}function ld(u,g){Pd.call(this,void 0,g);var C=new Fn().set(u);this.sh.coefficients[0].set(C.r,C.g,C.b).multiplyScalar(2*Math.sqrt(Math.PI))}Uf.prototype=Object.assign(Object.create(X.prototype),{constructor:Uf,load:function(u,g,C,L){var K=new Se(this.manager);K.setResponseType("arraybuffer"),K.setPath(this.path),K.load(u,function(ie){var ce=ie.slice(0);cm.getContext().decodeAudioData(ce,function(ge){g(ge)})},C,L)}}),Object.assign(cf.prototype,{isSphericalHarmonics3:!0,set:function(u){for(var g=0;g<9;g++)this.coefficients[g].copy(u[g]);return this},zero:function(){for(var u=0;u<9;u++)this.coefficients[u].set(0,0,0);return this},getAt:function(u,g){var C=u.x,L=u.y,K=u.z,ie=this.coefficients;return g.copy(ie[0]).multiplyScalar(.282095),g.addScale(ie[1],.488603*L),g.addScale(ie[2],.488603*K),g.addScale(ie[3],.488603*C),g.addScale(ie[4],C*L*1.092548),g.addScale(ie[5],L*K*1.092548),g.addScale(ie[6],.315392*(3*K*K-1)),g.addScale(ie[7],C*K*1.092548),g.addScale(ie[8],.546274*(C*C-L*L)),g},getIrradianceAt:function(u,g){var C=u.x,L=u.y,K=u.z,ie=this.coefficients;return g.copy(ie[0]).multiplyScalar(.886227),g.addScale(ie[1],1.023328*L),g.addScale(ie[2],1.023328*K),g.addScale(ie[3],1.023328*C),g.addScale(ie[4],.858086*C*L),g.addScale(ie[5],.858086*L*K),g.addScale(ie[6],.743125*K*K-.247708),g.addScale(ie[7],.858086*C*K),g.addScale(ie[8],.429043*(C*C-L*L)),g},add:function(u){for(var g=0;g<9;g++)this.coefficients[g].add(u.coefficients[g]);return this},scale:function(u){for(var g=0;g<9;g++)this.coefficients[g].multiplyScalar(u);return this},lerp:function(u,g){for(var C=0;C<9;C++)this.coefficients[C].lerp(u.coefficients[C],g);return this},equals:function(u){for(var g=0;g<9;g++)if(!this.coefficients[g].equals(u.coefficients[g]))return!1;return!0},copy:function(u){return this.set(u.coefficients)},clone:function(){return new this.constructor().copy(this)},fromArray:function(u,g){g===void 0&&(g=0);for(var C=this.coefficients,L=0;L<9;L++)C[L].fromArray(u,g+3*L);return this},toArray:function(u,g){u===void 0&&(u=[]),g===void 0&&(g=0);for(var C=this.coefficients,L=0;L<9;L++)C[L].toArray(u,g+3*L);return u}}),Object.assign(cf,{getBasisAt:function(u,g){var C=u.x,L=u.y,K=u.z;g[0]=.282095,g[1]=.488603*L,g[2]=.488603*K,g[3]=.488603*C,g[4]=1.092548*C*L,g[5]=1.092548*L*K,g[6]=.315392*(3*K*K-1),g[7]=1.092548*C*K,g[8]=.546274*(C*C-L*L)}}),Pd.prototype=Object.assign(Object.create(qo.prototype),{constructor:Pd,isLightProbe:!0,copy:function(u){return qo.prototype.copy.call(this,u),this.sh.copy(u.sh),this.intensity=u.intensity,this},toJSON:function(u){return qo.prototype.toJSON.call(this,u)}}),iu.prototype=Object.assign(Object.create(Pd.prototype),{constructor:iu,isHemisphereLightProbe:!0,copy:function(u){return Pd.prototype.copy.call(this,u),this},toJSON:function(u){return Pd.prototype.toJSON.call(this,u)}}),ld.prototype=Object.assign(Object.create(Pd.prototype),{constructor:ld,isAmbientLightProbe:!0,copy:function(u){return Pd.prototype.copy.call(this,u),this},toJSON:function(u){return Pd.prototype.toJSON.call(this,u)}});var $f=new Ki,df=new Ki;function xp(){this.type="StereoCamera",this.aspect=1,this.eyeSep=.064,this.cameraL=new Js,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new Js,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1,this._cache={focus:null,fov:null,aspect:null,near:null,far:null,zoom:null,eyeSep:null}}function dm(u){this.autoStart=u===void 0||u,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}Object.assign(xp.prototype,{update:function(u){var g=this._cache;if(g.focus!==u.focus||g.fov!==u.fov||g.aspect!==u.aspect*this.aspect||g.near!==u.near||g.far!==u.far||g.zoom!==u.zoom||g.eyeSep!==this.eyeSep){g.focus=u.focus,g.fov=u.fov,g.aspect=u.aspect*this.aspect,g.near=u.near,g.far=u.far,g.zoom=u.zoom,g.eyeSep=this.eyeSep;var C,L,K=u.projectionMatrix.clone(),ie=g.eyeSep/2,ce=ie*g.near/g.focus,ge=g.near*Math.tan(Ta.DEG2RAD*g.fov*.5)/g.zoom;df.elements[12]=-ie,$f.elements[12]=ie,C=-ge*g.aspect+ce,L=ge*g.aspect+ce,K.elements[0]=2*g.near/(L-C),K.elements[8]=(L+C)/(L-C),this.cameraL.projectionMatrix.copy(K),C=-ge*g.aspect-ce,L=ge*g.aspect-ce,K.elements[0]=2*g.near/(L-C),K.elements[8]=(L+C)/(L-C),this.cameraR.projectionMatrix.copy(K)}this.cameraL.matrixWorld.copy(u.matrixWorld).multiply(df),this.cameraR.matrixWorld.copy(u.matrixWorld).multiply($f)}}),Object.assign(dm.prototype,{start:function(){this.startTime=(typeof performance=="undefined"?Date:performance).now(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0},stop:function(){this.getElapsedTime(),this.running=!1,this.autoStart=!1},getElapsedTime:function(){return this.getDelta(),this.elapsedTime},getDelta:function(){var u=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){var g=(typeof performance=="undefined"?Date:performance).now();u=(g-this.oldTime)/1e3,this.oldTime=g,this.elapsedTime+=u}return u}});var bp=new Kt,Np=new Zo,Xm=new Kt,wp=new Kt;function Hf(){Sn.call(this),this.type="AudioListener",this.context=cm.getContext(),this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null,this.timeDelta=0,this._clock=new dm}function Mp(u){Sn.call(this),this.type="Audio",this.listener=u,this.context=u.context,this.gain=this.context.createGain(),this.gain.connect(u.getInput()),this.autoplay=!1,this.buffer=null,this.detune=0,this.loop=!1,this.loopStart=0,this.loopEnd=0,this.offset=0,this.duration=void 0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.sourceType="empty",this._startedAt=0,this._pausedAt=0,this.filters=[]}Hf.prototype=Object.assign(Object.create(Sn.prototype),{constructor:Hf,getInput:function(){return this.gain},removeFilter:function(){return this.filter!==null&&(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination),this.gain.connect(this.context.destination),this.filter=null),this},getFilter:function(){return this.filter},setFilter:function(u){return this.filter!==null?(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination)):this.gain.disconnect(this.context.destination),this.filter=u,this.gain.connect(this.filter),this.filter.connect(this.context.destination),this},getMasterVolume:function(){return this.gain.gain.value},setMasterVolume:function(u){return this.gain.gain.setTargetAtTime(u,this.context.currentTime,.01),this},updateMatrixWorld:function(u){Sn.prototype.updateMatrixWorld.call(this,u);var g=this.context.listener,C=this.up;if(this.timeDelta=this._clock.getDelta(),this.matrixWorld.decompose(bp,Np,Xm),wp.set(0,0,-1).applyQuaternion(Np),g.positionX){var L=this.context.currentTime+this.timeDelta;g.positionX.linearRampToValueAtTime(bp.x,L),g.positionY.linearRampToValueAtTime(bp.y,L),g.positionZ.linearRampToValueAtTime(bp.z,L),g.forwardX.linearRampToValueAtTime(wp.x,L),g.forwardY.linearRampToValueAtTime(wp.y,L),g.forwardZ.linearRampToValueAtTime(wp.z,L),g.upX.linearRampToValueAtTime(C.x,L),g.upY.linearRampToValueAtTime(C.y,L),g.upZ.linearRampToValueAtTime(C.z,L)}else g.setPosition(bp.x,bp.y,bp.z),g.setOrientation(wp.x,wp.y,wp.z,C.x,C.y,C.z)}}),Mp.prototype=Object.assign(Object.create(Sn.prototype),{constructor:Mp,getOutput:function(){return this.gain},setNodeSource:function(u){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=u,this.connect(),this},setMediaElementSource:function(u){return this.hasPlaybackControl=!1,this.sourceType="mediaNode",this.source=this.context.createMediaElementSource(u),this.connect(),this},setMediaStreamSource:function(u){return this.hasPlaybackControl=!1,this.sourceType="mediaStreamNode",this.source=this.context.createMediaStreamSource(u),this.connect(),this},setBuffer:function(u){return this.buffer=u,this.sourceType="buffer",this.autoplay&&this.play(),this},play:function(u){if(u===void 0&&(u=0),this.isPlaying!==!0){if(this.hasPlaybackControl!==!1){this._startedAt=this.context.currentTime+u;var g=this.context.createBufferSource();return g.buffer=this.buffer,g.loop=this.loop,g.loopStart=this.loopStart,g.loopEnd=this.loopEnd,g.onended=this.onEnded.bind(this),g.start(this._startedAt,this._pausedAt+this.offset,this.duration),this.isPlaying=!0,this.source=g,this.setDetune(this.detune),this.setPlaybackRate(this.playbackRate),this.connect()}console.warn("THREE.Audio: this Audio has no playback control.")}else console.warn("THREE.Audio: Audio is already playing.")},pause:function(){if(this.hasPlaybackControl!==!1)return this.isPlaying===!0&&(this._pausedAt=(this.context.currentTime-this._startedAt)*this.playbackRate,this.source.stop(),this.source.onended=null,this.isPlaying=!1),this;console.warn("THREE.Audio: this Audio has no playback control.")},stop:function(){if(this.hasPlaybackControl!==!1)return this._pausedAt=0,this.source.stop(),this.source.onended=null,this.isPlaying=!1,this;console.warn("THREE.Audio: this Audio has no playback control.")},connect:function(){if(0<this.filters.length){this.source.connect(this.filters[0]);for(var u=1,g=this.filters.length;u<g;u++)this.filters[u-1].connect(this.filters[u]);this.filters[this.filters.length-1].connect(this.getOutput())}else this.source.connect(this.getOutput());return this},disconnect:function(){if(0<this.filters.length){this.source.disconnect(this.filters[0]);for(var u=1,g=this.filters.length;u<g;u++)this.filters[u-1].disconnect(this.filters[u]);this.filters[this.filters.length-1].disconnect(this.getOutput())}else this.source.disconnect(this.getOutput());return this},getFilters:function(){return this.filters},setFilters:function(u){return u=u||[],this.isPlaying===!0?(this.disconnect(),this.filters=u,this.connect()):this.filters=u,this},setDetune:function(u){if(this.detune=u,this.source.detune!==void 0)return this.isPlaying===!0&&this.source.detune.setTargetAtTime(this.detune,this.context.currentTime,.01),this},getDetune:function(){return this.detune},getFilter:function(){return this.getFilters()[0]},setFilter:function(u){return this.setFilters(u?[u]:[])},setPlaybackRate:function(u){if(this.hasPlaybackControl!==!1)return this.playbackRate=u,this.isPlaying===!0&&this.source.playbackRate.setTargetAtTime(this.playbackRate,this.context.currentTime,.01),this;console.warn("THREE.Audio: this Audio has no playback control.")},getPlaybackRate:function(){return this.playbackRate},onEnded:function(){this.isPlaying=!1},getLoop:function(){return this.hasPlaybackControl===!1?(console.warn("THREE.Audio: this Audio has no playback control."),!1):this.loop},setLoop:function(u){if(this.hasPlaybackControl!==!1)return this.loop=u,this.isPlaying===!0&&(this.source.loop=this.loop),this;console.warn("THREE.Audio: this Audio has no playback control.")},setLoopStart:function(u){return this.loopStart=u,this},setLoopEnd:function(u){return this.loopEnd=u,this},getVolume:function(){return this.gain.gain.value},setVolume:function(u){return this.gain.gain.setTargetAtTime(u,this.context.currentTime,.01),this}});var Rd=new Kt,ws=new Zo,hm=new Kt,Zh=new Kt;function Wf(u){Mp.call(this,u),this.panner=this.context.createPanner(),this.panner.panningModel="HRTF",this.panner.connect(this.gain)}function Ld(u,g){this.analyser=u.context.createAnalyser(),this.analyser.fftSize=g!==void 0?g:2048,this.data=new Uint8Array(this.analyser.frequencyBinCount),u.getOutput().connect(this.analyser)}function Kh(u,g,C){this.binding=u,this.valueSize=C;var L,K=Float64Array;switch(g){case"quaternion":L=this._slerp;break;case"string":case"bool":K=Array,L=this._select;break;default:L=this._lerp}this.buffer=new K(4*C),this._mixBufferRegion=L,this.cumulativeWeight=0,this.useCount=0,this.referenceCount=0}Wf.prototype=Object.assign(Object.create(Mp.prototype),{constructor:Wf,getOutput:function(){return this.panner},getRefDistance:function(){return this.panner.refDistance},setRefDistance:function(u){return this.panner.refDistance=u,this},getRolloffFactor:function(){return this.panner.rolloffFactor},setRolloffFactor:function(u){return this.panner.rolloffFactor=u,this},getDistanceModel:function(){return this.panner.distanceModel},setDistanceModel:function(u){return this.panner.distanceModel=u,this},getMaxDistance:function(){return this.panner.maxDistance},setMaxDistance:function(u){return this.panner.maxDistance=u,this},setDirectionalCone:function(u,g,C){return this.panner.coneInnerAngle=u,this.panner.coneOuterAngle=g,this.panner.coneOuterGain=C,this},updateMatrixWorld:function(u){if(Sn.prototype.updateMatrixWorld.call(this,u),this.hasPlaybackControl!==!0||this.isPlaying!==!1){this.matrixWorld.decompose(Rd,ws,hm),Zh.set(0,0,1).applyQuaternion(ws);var g=this.panner;if(g.positionX){var C=this.context.currentTime+this.listener.timeDelta;g.positionX.linearRampToValueAtTime(Rd.x,C),g.positionY.linearRampToValueAtTime(Rd.y,C),g.positionZ.linearRampToValueAtTime(Rd.z,C),g.orientationX.linearRampToValueAtTime(Zh.x,C),g.orientationY.linearRampToValueAtTime(Zh.y,C),g.orientationZ.linearRampToValueAtTime(Zh.z,C)}else g.setPosition(Rd.x,Rd.y,Rd.z),g.setOrientation(Zh.x,Zh.y,Zh.z)}}}),Object.assign(Ld.prototype,{getFrequencyData:function(){return this.analyser.getByteFrequencyData(this.data),this.data},getAverageFrequency:function(){for(var u=0,g=this.getFrequencyData(),C=0;C<g.length;C++)u+=g[C];return u/g.length}}),Object.assign(Kh.prototype,{accumulate:function(u,g){var C=this.buffer,L=this.valueSize,K=u*L+L,ie=this.cumulativeWeight;if(ie===0){for(var ce=0;ce!==L;++ce)C[K+ce]=C[ce];ie=g}else{var ge=g/(ie+=g);this._mixBufferRegion(C,K,0,ge,L)}this.cumulativeWeight=ie},apply:function(u){var g=this.valueSize,C=this.buffer,L=u*g+g,K=this.cumulativeWeight,ie=this.binding;if(this.cumulativeWeight=0,K<1){var ce=3*g;this._mixBufferRegion(C,L,ce,1-K,g)}for(var ge=g,Ee=g+g;ge!==Ee;++ge)if(C[ge]!==C[ge+g]){ie.setValue(C,L);break}},saveOriginalState:function(){var u=this.binding,g=this.buffer,C=this.valueSize,L=3*C;u.getValue(g,L);for(var K=C,ie=L;K!==ie;++K)g[K]=g[L+K%C];this.cumulativeWeight=0},restoreOriginalState:function(){var u=3*this.valueSize;this.binding.setValue(this.buffer,u)},_select:function(u,g,C,L,K){if(.5<=L)for(var ie=0;ie!==K;++ie)u[g+ie]=u[C+ie]},_slerp:function(u,g,C,L){Zo.slerpFlat(u,g,u,g,u,C,L)},_lerp:function(u,g,C,L,K){for(var ie=1-L,ce=0;ce!==K;++ce){var ge=g+ce;u[ge]=u[ge]*ie+u[C+ce]*L}}});var Yf="\\[\\]\\.:\\/",Zm=new RegExp("["+Yf+"]","g"),pm="[^"+Yf+"]",Km="[^"+Yf.replace("\\.","")+"]",Jm=/((?:WC+[\/:])*)/.source.replace("WC",pm),Qm=/(WCOD+)?/.source.replace("WCOD",Km),eg=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",pm),tg=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",pm),ng=new RegExp("^"+Jm+Qm+eg+tg+"$"),rg=["material","materials","bones"];function hf(u,g,C){var L=C||Wl.parseTrackName(g);this._targetGroup=u,this._bindings=u.subscribe_(g,L)}function Wl(u,g,C){this.path=g,this.parsedPath=C||Wl.parseTrackName(g),this.node=Wl.findNode(u,this.parsedPath.nodeName)||u,this.rootNode=u}function fm(){this.uuid=Ta.generateUUID(),this._objects=Array.prototype.slice.call(arguments),this.nCachedObjects_=0;var u={};this._indicesByUUID=u;for(var g=0,C=arguments.length;g!==C;++g)u[arguments[g].uuid]=g;this._paths=[],this._parsedPaths=[],this._bindings=[],this._bindingsIndicesByPath={};var L=this;this.stats={objects:{get total(){return L._objects.length},get inUse(){return this.total-L.nCachedObjects_}},get bindingsPerObject(){return L._bindings.length}}}function Pm(u,g,C){this._mixer=u,this._clip=g,this._localRoot=C||null;for(var L=g.tracks,K=L.length,ie=new Array(K),ce={endingStart:$t,endingEnd:$t},ge=0;ge!==K;++ge){var Ee=L[ge].createInterpolant(null);(ie[ge]=Ee).settings=ce}this._interpolantSettings=ce,this._interpolants=ie,this._propertyBindings=new Array(K),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=2201,this._loopCount=-1,this._startTime=null,this.time=0,this.timeScale=1,this._effectiveTimeScale=1,this.weight=1,this._effectiveWeight=1,this.repetitions=1/0,this.paused=!1,this.enabled=!0,this.clampWhenFinished=!1,this.zeroSlopeAtStart=!0,this.zeroSlopeAtEnd=!0}function mm(u){this._root=u,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}function qf(u){typeof u=="string"&&(console.warn("THREE.Uniform: Type parameter is no longer needed."),u=arguments[1]),this.value=u}function pf(u,g,C){eu.call(this,u,g),this.meshPerAttribute=C||1}function Xf(u,g,C,L){this.ray=new fo(u,g),this.near=C||0,this.far=L||1/0,this.camera=null,this.params={Mesh:{},Line:{},LOD:{},Points:{threshold:1},Sprite:{}},Object.defineProperties(this.params,{PointCloud:{get:function(){return console.warn("THREE.Raycaster: params.PointCloud has been renamed to params.Points."),this.Points}}})}function gm(u,g){return u.distance-g.distance}function lc(u,g,C,L){if(u.visible!==!1&&(u.raycast(g,C),L===!0))for(var K=u.children,ie=0,ce=K.length;ie<ce;ie++)lc(K[ie],g,C,!0)}function Vp(u,g,C){return this.radius=u!==void 0?u:1,this.phi=g!==void 0?g:0,this.theta=C!==void 0?C:0,this}function Cp(u,g,C){return this.radius=u!==void 0?u:1,this.theta=g!==void 0?g:0,this.y=C!==void 0?C:0,this}Object.assign(hf.prototype,{getValue:function(u,g){this.bind();var C=this._targetGroup.nCachedObjects_,L=this._bindings[C];L!==void 0&&L.getValue(u,g)},setValue:function(u,g){for(var C=this._bindings,L=this._targetGroup.nCachedObjects_,K=C.length;L!==K;++L)C[L].setValue(u,g)},bind:function(){for(var u=this._bindings,g=this._targetGroup.nCachedObjects_,C=u.length;g!==C;++g)u[g].bind()},unbind:function(){for(var u=this._bindings,g=this._targetGroup.nCachedObjects_,C=u.length;g!==C;++g)u[g].unbind()}}),Object.assign(Wl,{Composite:hf,create:function(u,g,C){return u&&u.isAnimationObjectGroup?new Wl.Composite(u,g,C):new Wl(u,g,C)},sanitizeNodeName:function(u){return u.replace(/\s/g,"_").replace(Zm,"")},parseTrackName:function(u){var g=ng.exec(u);if(!g)throw new Error("PropertyBinding: Cannot parse trackName: "+u);var C={nodeName:g[2],objectName:g[3],objectIndex:g[4],propertyName:g[5],propertyIndex:g[6]},L=C.nodeName&&C.nodeName.lastIndexOf(".");if(L!==void 0&&L!==-1){var K=C.nodeName.substring(L+1);rg.indexOf(K)!==-1&&(C.nodeName=C.nodeName.substring(0,L),C.objectName=K)}if(C.propertyName===null||C.propertyName.length===0)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+u);return C},findNode:function(u,g){if(!g||g===""||g==="root"||g==="."||g===-1||g===u.name||g===u.uuid)return u;if(u.skeleton){var C=u.skeleton.getBoneByName(g);if(C!==void 0)return C}if(u.children){var L=function(ie){for(var ce=0;ce<ie.length;ce++){var ge=ie[ce];if(ge.name===g||ge.uuid===g)return ge;var Ee=L(ge.children);if(Ee)return Ee}return null},K=L(u.children);if(K)return K}return null}}),Object.assign(Wl.prototype,{_getValue_unavailable:function(){},_setValue_unavailable:function(){},BindingType:{Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3},Versioning:{None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2},GetterByBindingType:[function(u,g){u[g]=this.node[this.propertyName]},function(u,g){for(var C=this.resolvedProperty,L=0,K=C.length;L!==K;++L)u[g++]=C[L]},function(u,g){u[g]=this.resolvedProperty[this.propertyIndex]},function(u,g){this.resolvedProperty.toArray(u,g)}],SetterByBindingTypeAndVersioning:[[function(u,g){this.targetObject[this.propertyName]=u[g]},function(u,g){this.targetObject[this.propertyName]=u[g],this.targetObject.needsUpdate=!0},function(u,g){this.targetObject[this.propertyName]=u[g],this.targetObject.matrixWorldNeedsUpdate=!0}],[function(u,g){for(var C=this.resolvedProperty,L=0,K=C.length;L!==K;++L)C[L]=u[g++]},function(u,g){for(var C=this.resolvedProperty,L=0,K=C.length;L!==K;++L)C[L]=u[g++];this.targetObject.needsUpdate=!0},function(u,g){for(var C=this.resolvedProperty,L=0,K=C.length;L!==K;++L)C[L]=u[g++];this.targetObject.matrixWorldNeedsUpdate=!0}],[function(u,g){this.resolvedProperty[this.propertyIndex]=u[g]},function(u,g){this.resolvedProperty[this.propertyIndex]=u[g],this.targetObject.needsUpdate=!0},function(u,g){this.resolvedProperty[this.propertyIndex]=u[g],this.targetObject.matrixWorldNeedsUpdate=!0}],[function(u,g){this.resolvedProperty.fromArray(u,g)},function(u,g){this.resolvedProperty.fromArray(u,g),this.targetObject.needsUpdate=!0},function(u,g){this.resolvedProperty.fromArray(u,g),this.targetObject.matrixWorldNeedsUpdate=!0}]],getValue:function(u,g){this.bind(),this.getValue(u,g)},setValue:function(u,g){this.bind(),this.setValue(u,g)},bind:function(){var u=this.node,g=this.parsedPath,C=g.objectName,L=g.propertyName,K=g.propertyIndex;if(u||(u=Wl.findNode(this.rootNode,g.nodeName)||this.rootNode,this.node=u),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,u){if(C){var ie=g.objectIndex;switch(C){case"materials":if(!u.material)return void console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);if(!u.material.materials)return void console.error("THREE.PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.",this);u=u.material.materials;break;case"bones":if(!u.skeleton)return void console.error("THREE.PropertyBinding: Can not bind to bones as node does not have a skeleton.",this);u=u.skeleton.bones;for(var ce=0;ce<u.length;ce++)if(u[ce].name===ie){ie=ce;break}break;default:if(u[C]===void 0)return void console.error("THREE.PropertyBinding: Can not bind to objectName of node undefined.",this);u=u[C]}if(ie!==void 0){if(u[ie]===void 0)return void console.error("THREE.PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.",this,u);u=u[ie]}}var ge=u[L];if(ge!==void 0){var Ee=this.Versioning.None;(this.targetObject=u).needsUpdate!==void 0?Ee=this.Versioning.NeedsUpdate:u.matrixWorldNeedsUpdate!==void 0&&(Ee=this.Versioning.MatrixWorldNeedsUpdate);var Ae=this.BindingType.Direct;if(K!==void 0){if(L==="morphTargetInfluences"){if(!u.geometry)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.",this);if(u.geometry.isBufferGeometry){if(!u.geometry.morphAttributes)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.",this);for(ce=0;ce<this.node.geometry.morphAttributes.position.length;ce++)if(u.geometry.morphAttributes.position[ce].name===K){K=ce;break}}else{if(!u.geometry.morphTargets)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphTargets.",this);for(ce=0;ce<this.node.geometry.morphTargets.length;ce++)if(u.geometry.morphTargets[ce].name===K){K=ce;break}}}Ae=this.BindingType.ArrayElement,this.resolvedProperty=ge,this.propertyIndex=K}else ge.fromArray!==void 0&&ge.toArray!==void 0?(Ae=this.BindingType.HasFromToArray,this.resolvedProperty=ge):Array.isArray(ge)?(Ae=this.BindingType.EntireArray,this.resolvedProperty=ge):this.propertyName=L;this.getValue=this.GetterByBindingType[Ae],this.setValue=this.SetterByBindingTypeAndVersioning[Ae][Ee]}else{var We=g.nodeName;console.error("THREE.PropertyBinding: Trying to update property for track: "+We+"."+L+" but it wasn't found.",u)}}else console.error("THREE.PropertyBinding: Trying to update node for track: "+this.path+" but it wasn't found.")},unbind:function(){this.node=null,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}}),Object.assign(Wl.prototype,{_getValue_unbound:Wl.prototype.getValue,_setValue_unbound:Wl.prototype.setValue}),Object.assign(fm.prototype,{isAnimationObjectGroup:!0,add:function(){for(var u=this._objects,g=u.length,C=this.nCachedObjects_,L=this._indicesByUUID,K=this._paths,ie=this._parsedPaths,ce=this._bindings,ge=ce.length,Ee=void 0,Ae=0,We=arguments.length;Ae!==We;++Ae){var tt=arguments[Ae],ot=tt.uuid,Oe=L[ot];if(Oe===void 0){Oe=g++,L[ot]=Oe,u.push(tt);for(var mt=0,Tt=ge;mt!==Tt;++mt)ce[mt].push(new Wl(tt,K[mt],ie[mt]))}else if(Oe<C){Ee=u[Oe];var At=--C,nn=u[At];for(u[L[nn.uuid]=Oe]=nn,u[L[ot]=At]=tt,mt=0,Tt=ge;mt!==Tt;++mt){var fn=ce[mt],An=fn[At],zn=fn[Oe];fn[Oe]=An,zn===void 0&&(zn=new Wl(tt,K[mt],ie[mt])),fn[At]=zn}}else u[Oe]!==Ee&&console.error("THREE.AnimationObjectGroup: Different objects with the same UUID detected. Clean the caches or recreate your infrastructure when reloading scenes.")}this.nCachedObjects_=C},remove:function(){for(var u=this._objects,g=this.nCachedObjects_,C=this._indicesByUUID,L=this._bindings,K=L.length,ie=0,ce=arguments.length;ie!==ce;++ie){var ge=arguments[ie],Ee=ge.uuid,Ae=C[Ee];if(Ae!==void 0&&g<=Ae){var We=g++,tt=u[We];u[C[tt.uuid]=Ae]=tt,u[C[Ee]=We]=ge;for(var ot=0,Oe=K;ot!==Oe;++ot){var mt=L[ot],Tt=mt[We],At=mt[Ae];mt[Ae]=Tt,mt[We]=At}}}this.nCachedObjects_=g},uncache:function(){for(var u=this._objects,g=u.length,C=this.nCachedObjects_,L=this._indicesByUUID,K=this._bindings,ie=K.length,ce=0,ge=arguments.length;ce!==ge;++ce){var Ee=arguments[ce].uuid,Ae=L[Ee];if(Ae!==void 0)if(delete L[Ee],Ae<C){var We=--C,tt=u[We],ot=u[nn=--g];u[L[tt.uuid]=Ae]=tt,u[L[ot.uuid]=We]=ot,u.pop();for(var Oe=0,mt=ie;Oe!==mt;++Oe){var Tt=(fn=K[Oe])[We],At=fn[nn];fn[Ae]=Tt,fn[We]=At,fn.pop()}}else{var nn;for(u[L[(ot=u[nn=--g]).uuid]=Ae]=ot,u.pop(),Oe=0,mt=ie;Oe!==mt;++Oe){var fn;(fn=K[Oe])[Ae]=fn[nn],fn.pop()}}}this.nCachedObjects_=C},subscribe_:function(u,g){var C=this._bindingsIndicesByPath,L=C[u],K=this._bindings;if(L!==void 0)return K[L];var ie=this._paths,ce=this._parsedPaths,ge=this._objects,Ee=ge.length,Ae=this.nCachedObjects_,We=new Array(Ee);L=K.length,C[u]=L,ie.push(u),ce.push(g),K.push(We);for(var tt=Ae,ot=ge.length;tt!==ot;++tt){var Oe=ge[tt];We[tt]=new Wl(Oe,u,g)}return We},unsubscribe_:function(u){var g=this._bindingsIndicesByPath,C=g[u];if(C!==void 0){var L=this._paths,K=this._parsedPaths,ie=this._bindings,ce=ie.length-1,ge=ie[ce];ie[g[u[ce]]=C]=ge,ie.pop(),K[C]=K[ce],K.pop(),L[C]=L[ce],L.pop()}}}),Object.assign(Pm.prototype,{play:function(){return this._mixer._activateAction(this),this},stop:function(){return this._mixer._deactivateAction(this),this.reset()},reset:function(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()},isRunning:function(){return this.enabled&&!this.paused&&this.timeScale!==0&&this._startTime===null&&this._mixer._isActiveAction(this)},isScheduled:function(){return this._mixer._isActiveAction(this)},startAt:function(u){return this._startTime=u,this},setLoop:function(u,g){return this.loop=u,this.repetitions=g,this},setEffectiveWeight:function(u){return this.weight=u,this._effectiveWeight=this.enabled?u:0,this.stopFading()},getEffectiveWeight:function(){return this._effectiveWeight},fadeIn:function(u){return this._scheduleFading(u,0,1)},fadeOut:function(u){return this._scheduleFading(u,1,0)},crossFadeFrom:function(u,g,C){if(u.fadeOut(g),this.fadeIn(g),C){var L=this._clip.duration,K=u._clip.duration,ie=K/L,ce=L/K;u.warp(1,ie,g),this.warp(ce,1,g)}return this},crossFadeTo:function(u,g,C){return u.crossFadeFrom(this,g,C)},stopFading:function(){var u=this._weightInterpolant;return u!==null&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(u)),this},setEffectiveTimeScale:function(u){return this.timeScale=u,this._effectiveTimeScale=this.paused?0:u,this.stopWarping()},getEffectiveTimeScale:function(){return this._effectiveTimeScale},setDuration:function(u){return this.timeScale=this._clip.duration/u,this.stopWarping()},syncWith:function(u){return this.time=u.time,this.timeScale=u.timeScale,this.stopWarping()},halt:function(u){return this.warp(this._effectiveTimeScale,0,u)},warp:function(u,g,C){var L=this._mixer,K=L.time,ie=this._timeScaleInterpolant,ce=this.timeScale;ie===null&&(ie=L._lendControlInterpolant(),this._timeScaleInterpolant=ie);var ge=ie.parameterPositions,Ee=ie.sampleValues;return ge[0]=K,ge[1]=K+C,Ee[0]=u/ce,Ee[1]=g/ce,this},stopWarping:function(){var u=this._timeScaleInterpolant;return u!==null&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(u)),this},getMixer:function(){return this._mixer},getClip:function(){return this._clip},getRoot:function(){return this._localRoot||this._mixer._root},_update:function(u,g,C,L){if(this.enabled){var K=this._startTime;if(K!==null){var ie=(u-K)*C;if(ie<0||C===0)return;this._startTime=null,g=C*ie}g*=this._updateTimeScale(u);var ce=this._updateTime(g),ge=this._updateWeight(u);if(0<ge)for(var Ee=this._interpolants,Ae=this._propertyBindings,We=0,tt=Ee.length;We!==tt;++We)Ee[We].evaluate(ce),Ae[We].accumulate(L,ge)}else this._updateWeight(u)},_updateWeight:function(u){var g=0;if(this.enabled){g=this.weight;var C=this._weightInterpolant;if(C!==null){var L=C.evaluate(u)[0];g*=L,u>C.parameterPositions[1]&&(this.stopFading(),L===0&&(this.enabled=!1))}}return this._effectiveWeight=g},_updateTimeScale:function(u){var g=0;if(!this.paused){g=this.timeScale;var C=this._timeScaleInterpolant;C!==null&&(g*=C.evaluate(u)[0],u>C.parameterPositions[1]&&(this.stopWarping(),g===0?this.paused=!0:this.timeScale=g))}return this._effectiveTimeScale=g},_updateTime:function(u){var g=this.time+u,C=this._clip.duration,L=this.loop,K=this._loopCount,ie=L===2202;if(u===0)return K!==-1&&ie&&(1&K)==1?C-g:g;if(L===2200){K===-1&&(this._loopCount=0,this._setEndings(!0,!0,!1));e:{if(C<=g)g=C;else{if(!(g<0)){this.time=g;break e}g=0}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=g,this._mixer.dispatchEvent({type:"finished",action:this,direction:u<0?-1:1})}}else{if(K===-1&&(0<=u?(K=0,this._setEndings(!0,this.repetitions===0,ie)):this._setEndings(this.repetitions===0,!0,ie)),C<=g||g<0){var ce=Math.floor(g/C);g-=C*ce,K+=Math.abs(ce);var ge=this.repetitions-K;if(ge<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,g=0<u?C:0,this.time=g,this._mixer.dispatchEvent({type:"finished",action:this,direction:0<u?1:-1});else{if(ge==1){var Ee=u<0;this._setEndings(Ee,!Ee,ie)}else this._setEndings(!1,!1,ie);this._loopCount=K,this.time=g,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:ce})}}else this.time=g;if(ie&&(1&K)==1)return C-g}return g},_setEndings:function(u,g,C){var L=this._interpolantSettings;C?(L.endingStart=ft,L.endingEnd=ft):(L.endingStart=u?this.zeroSlopeAtStart?ft:$t:Gt,L.endingEnd=g?this.zeroSlopeAtEnd?ft:$t:Gt)},_scheduleFading:function(u,g,C){var L=this._mixer,K=L.time,ie=this._weightInterpolant;ie===null&&(ie=L._lendControlInterpolant(),this._weightInterpolant=ie);var ce=ie.parameterPositions,ge=ie.sampleValues;return ce[0]=K,ge[0]=g,ce[1]=K+u,ge[1]=C,this}}),mm.prototype=Object.assign(Object.create(jo.prototype),{constructor:mm,_bindAction:function(u,g){var C=u._localRoot||this._root,L=u._clip.tracks,K=L.length,ie=u._propertyBindings,ce=u._interpolants,ge=C.uuid,Ee=this._bindingsByRootAndName,Ae=Ee[ge];Ae===void 0&&(Ae={},Ee[ge]=Ae);for(var We=0;We!==K;++We){var tt=L[We],ot=tt.name,Oe=Ae[ot];if(Oe!==void 0)ie[We]=Oe;else{if((Oe=ie[We])!==void 0){Oe._cacheIndex===null&&(++Oe.referenceCount,this._addInactiveBinding(Oe,ge,ot));continue}var mt=g&&g._propertyBindings[We].binding.parsedPath;++(Oe=new Kh(Wl.create(C,ot,mt),tt.ValueTypeName,tt.getValueSize())).referenceCount,this._addInactiveBinding(Oe,ge,ot),ie[We]=Oe}ce[We].resultBuffer=Oe.buffer}},_activateAction:function(u){if(!this._isActiveAction(u)){if(u._cacheIndex===null){var g=(u._localRoot||this._root).uuid,C=u._clip.uuid,L=this._actionsByClip[C];this._bindAction(u,L&&L.knownActions[0]),this._addInactiveAction(u,C,g)}for(var K=u._propertyBindings,ie=0,ce=K.length;ie!==ce;++ie){var ge=K[ie];ge.useCount++==0&&(this._lendBinding(ge),ge.saveOriginalState())}this._lendAction(u)}},_deactivateAction:function(u){if(this._isActiveAction(u)){for(var g=u._propertyBindings,C=0,L=g.length;C!==L;++C){var K=g[C];--K.useCount==0&&(K.restoreOriginalState(),this._takeBackBinding(K))}this._takeBackAction(u)}},_initMemoryManager:function(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;var u=this;this.stats={actions:{get total(){return u._actions.length},get inUse(){return u._nActiveActions}},bindings:{get total(){return u._bindings.length},get inUse(){return u._nActiveBindings}},controlInterpolants:{get total(){return u._controlInterpolants.length},get inUse(){return u._nActiveControlInterpolants}}}},_isActiveAction:function(u){var g=u._cacheIndex;return g!==null&&g<this._nActiveActions},_addInactiveAction:function(u,g,C){var L=this._actions,K=this._actionsByClip,ie=K[g];if(ie===void 0)ie={knownActions:[u],actionByRoot:{}},u._byClipCacheIndex=0,K[g]=ie;else{var ce=ie.knownActions;u._byClipCacheIndex=ce.length,ce.push(u)}u._cacheIndex=L.length,L.push(u),ie.actionByRoot[C]=u},_removeInactiveAction:function(u){var g=this._actions,C=g[g.length-1],L=u._cacheIndex;g[C._cacheIndex=L]=C,g.pop(),u._cacheIndex=null;var K=u._clip.uuid,ie=this._actionsByClip,ce=ie[K],ge=ce.knownActions,Ee=ge[ge.length-1],Ae=u._byClipCacheIndex;ge[Ee._byClipCacheIndex=Ae]=Ee,ge.pop(),u._byClipCacheIndex=null,delete ce.actionByRoot[(u._localRoot||this._root).uuid],ge.length===0&&delete ie[K],this._removeInactiveBindingsForAction(u)},_removeInactiveBindingsForAction:function(u){for(var g=u._propertyBindings,C=0,L=g.length;C!==L;++C){var K=g[C];--K.referenceCount==0&&this._removeInactiveBinding(K)}},_lendAction:function(u){var g=this._actions,C=u._cacheIndex,L=this._nActiveActions++,K=g[L];g[u._cacheIndex=L]=u,g[K._cacheIndex=C]=K},_takeBackAction:function(u){var g=this._actions,C=u._cacheIndex,L=--this._nActiveActions,K=g[L];g[u._cacheIndex=L]=u,g[K._cacheIndex=C]=K},_addInactiveBinding:function(u,g,C){var L=this._bindingsByRootAndName,K=L[g],ie=this._bindings;K===void 0&&(K={},L[g]=K),(K[C]=u)._cacheIndex=ie.length,ie.push(u)},_removeInactiveBinding:function(u){var g=this._bindings,C=u.binding,L=C.rootNode.uuid,K=C.path,ie=this._bindingsByRootAndName,ce=ie[L],ge=g[g.length-1],Ee=u._cacheIndex;g[ge._cacheIndex=Ee]=ge,g.pop(),delete ce[K],Object.keys(ce).length===0&&delete ie[L]},_lendBinding:function(u){var g=this._bindings,C=u._cacheIndex,L=this._nActiveBindings++,K=g[L];g[u._cacheIndex=L]=u,g[K._cacheIndex=C]=K},_takeBackBinding:function(u){var g=this._bindings,C=u._cacheIndex,L=--this._nActiveBindings,K=g[L];g[u._cacheIndex=L]=u,g[K._cacheIndex=C]=K},_lendControlInterpolant:function(){var u=this._controlInterpolants,g=this._nActiveControlInterpolants++,C=u[g];return C===void 0&&(u[(C=new Hh(new Float32Array(2),new Float32Array(2),1,this._controlInterpolantsResultBuffer)).__cacheIndex=g]=C),C},_takeBackControlInterpolant:function(u){var g=this._controlInterpolants,C=u.__cacheIndex,L=--this._nActiveControlInterpolants,K=g[L];g[u.__cacheIndex=L]=u,g[K.__cacheIndex=C]=K},_controlInterpolantsResultBuffer:new Float32Array(1),clipAction:function(u,g){var C=g||this._root,L=C.uuid,K=typeof u=="string"?Hu.findByName(C,u):u,ie=K!==null?K.uuid:u,ce=this._actionsByClip[ie],ge=null;if(ce!==void 0){var Ee=ce.actionByRoot[L];if(Ee!==void 0)return Ee;ge=ce.knownActions[0],K===null&&(K=ge._clip)}if(K===null)return null;var Ae=new Pm(this,K,g);return this._bindAction(Ae,ge),this._addInactiveAction(Ae,ie,L),Ae},existingAction:function(u,g){var C=g||this._root,L=C.uuid,K=typeof u=="string"?Hu.findByName(C,u):u,ie=K?K.uuid:u,ce=this._actionsByClip[ie];return ce!==void 0&&ce.actionByRoot[L]||null},stopAllAction:function(){var u=this._actions,g=this._nActiveActions,C=this._bindings,L=this._nActiveBindings;this._nActiveActions=0;for(var K=this._nActiveBindings=0;K!==g;++K)u[K].reset();for(K=0;K!==L;++K)C[K].useCount=0;return this},update:function(u){u*=this.timeScale;for(var g=this._actions,C=this._nActiveActions,L=this.time+=u,K=Math.sign(u),ie=this._accuIndex^=1,ce=0;ce!==C;++ce)g[ce]._update(L,u,K,ie);var ge=this._bindings,Ee=this._nActiveBindings;for(ce=0;ce!==Ee;++ce)ge[ce].apply(ie);return this},setTime:function(u){for(var g=this.time=0;g<this._actions.length;g++)this._actions[g].time=0;return this.update(u)},getRoot:function(){return this._root},uncacheClip:function(u){var g=this._actions,C=u.uuid,L=this._actionsByClip,K=L[C];if(K!==void 0){for(var ie=K.knownActions,ce=0,ge=ie.length;ce!==ge;++ce){var Ee=ie[ce];this._deactivateAction(Ee);var Ae=Ee._cacheIndex,We=g[g.length-1];Ee._cacheIndex=null,Ee._byClipCacheIndex=null,g[We._cacheIndex=Ae]=We,g.pop(),this._removeInactiveBindingsForAction(Ee)}delete L[C]}},uncacheRoot:function(u){var g=u.uuid,C=this._actionsByClip;for(var L in C){var K=C[L].actionByRoot[g];K!==void 0&&(this._deactivateAction(K),this._removeInactiveAction(K))}var ie=this._bindingsByRootAndName[g];if(ie!==void 0)for(var ce in ie){var ge=ie[ce];ge.restoreOriginalState(),this._removeInactiveBinding(ge)}},uncacheAction:function(u,g){var C=this.existingAction(u,g);C!==null&&(this._deactivateAction(C),this._removeInactiveAction(C))}}),qf.prototype.clone=function(){return new qf(this.value.clone===void 0?this.value:this.value.clone())},pf.prototype=Object.assign(Object.create(eu.prototype),{constructor:pf,isInstancedInterleavedBuffer:!0,copy:function(u){return eu.prototype.copy.call(this,u),this.meshPerAttribute=u.meshPerAttribute,this}}),Object.assign(Xf.prototype,{linePrecision:1,set:function(u,g){this.ray.set(u,g)},setFromCamera:function(u,g){g&&g.isPerspectiveCamera?(this.ray.origin.setFromMatrixPosition(g.matrixWorld),this.ray.direction.set(u.x,u.y,.5).unproject(g).sub(this.ray.origin).normalize(),this.camera=g):g&&g.isOrthographicCamera?(this.ray.origin.set(u.x,u.y,(g.near+g.far)/(g.near-g.far)).unproject(g),this.ray.direction.set(0,0,-1).transformDirection(g.matrixWorld),this.camera=g):console.error("THREE.Raycaster: Unsupported camera type.")},intersectObject:function(u,g,C){var L=C||[];return lc(u,this,L,g),L.sort(gm),L},intersectObjects:function(u,g,C){var L=C||[];if(Array.isArray(u)===!1)return console.warn("THREE.Raycaster.intersectObjects: objects is not an Array."),L;for(var K=0,ie=u.length;K<ie;K++)lc(u[K],this,L,g);return L.sort(gm),L}}),Object.assign(Vp.prototype,{set:function(u,g,C){return this.radius=u,this.phi=g,this.theta=C,this},clone:function(){return new this.constructor().copy(this)},copy:function(u){return this.radius=u.radius,this.phi=u.phi,this.theta=u.theta,this},makeSafe:function(){return this.phi=Math.max(1e-6,Math.min(Math.PI-1e-6,this.phi)),this},setFromVector3:function(u){return this.setFromCartesianCoords(u.x,u.y,u.z)},setFromCartesianCoords:function(u,g,C){return this.radius=Math.sqrt(u*u+g*g+C*C),this.radius===0?(this.theta=0,this.phi=0):(this.theta=Math.atan2(u,C),this.phi=Math.acos(Ta.clamp(g/this.radius,-1,1))),this}}),Object.assign(Cp.prototype,{set:function(u,g,C){return this.radius=u,this.theta=g,this.y=C,this},clone:function(){return new this.constructor().copy(this)},copy:function(u){return this.radius=u.radius,this.theta=u.theta,this.y=u.y,this},setFromVector3:function(u){return this.setFromCartesianCoords(u.x,u.y,u.z)},setFromCartesianCoords:function(u,g,C){return this.radius=Math.sqrt(u*u+C*C),this.theta=Math.atan2(u,C),this.y=g,this}});var Zf=new Lr;function zp(u,g){this.min=u!==void 0?u:new Lr(1/0,1/0),this.max=g!==void 0?g:new Lr(-1/0,-1/0)}Object.assign(zp.prototype,{set:function(u,g){return this.min.copy(u),this.max.copy(g),this},setFromPoints:function(u){this.makeEmpty();for(var g=0,C=u.length;g<C;g++)this.expandByPoint(u[g]);return this},setFromCenterAndSize:function(u,g){var C=Zf.copy(g).multiplyScalar(.5);return this.min.copy(u).sub(C),this.max.copy(u).add(C),this},clone:function(){return new this.constructor().copy(this)},copy:function(u){return this.min.copy(u.min),this.max.copy(u.max),this},makeEmpty:function(){return this.min.x=this.min.y=1/0,this.max.x=this.max.y=-1/0,this},isEmpty:function(){return this.max.x<this.min.x||this.max.y<this.min.y},getCenter:function(u){return u===void 0&&(console.warn("THREE.Box2: .getCenter() target is now required"),u=new Lr),this.isEmpty()?u.set(0,0):u.addVectors(this.min,this.max).multiplyScalar(.5)},getSize:function(u){return u===void 0&&(console.warn("THREE.Box2: .getSize() target is now required"),u=new Lr),this.isEmpty()?u.set(0,0):u.subVectors(this.max,this.min)},expandByPoint:function(u){return this.min.min(u),this.max.max(u),this},expandByVector:function(u){return this.min.sub(u),this.max.add(u),this},expandByScalar:function(u){return this.min.addScalar(-u),this.max.addScalar(u),this},containsPoint:function(u){return!(u.x<this.min.x||u.x>this.max.x||u.y<this.min.y||u.y>this.max.y)},containsBox:function(u){return this.min.x<=u.min.x&&u.max.x<=this.max.x&&this.min.y<=u.min.y&&u.max.y<=this.max.y},getParameter:function(u,g){return g===void 0&&(console.warn("THREE.Box2: .getParameter() target is now required"),g=new Lr),g.set((u.x-this.min.x)/(this.max.x-this.min.x),(u.y-this.min.y)/(this.max.y-this.min.y))},intersectsBox:function(u){return!(u.max.x<this.min.x||u.min.x>this.max.x||u.max.y<this.min.y||u.min.y>this.max.y)},clampPoint:function(u,g){return g===void 0&&(console.warn("THREE.Box2: .clampPoint() target is now required"),g=new Lr),g.copy(u).clamp(this.min,this.max)},distanceToPoint:function(u){return Zf.copy(u).clamp(this.min,this.max).sub(u).length()},intersect:function(u){return this.min.max(u.min),this.max.min(u.max),this},union:function(u){return this.min.min(u.min),this.max.max(u.max),this},translate:function(u){return this.min.add(u),this.max.add(u),this},equals:function(u){return u.min.equals(this.min)&&u.max.equals(this.max)}});var Rm=new Kt,ff=new Kt;function Kf(u,g){this.start=u!==void 0?u:new Kt,this.end=g!==void 0?g:new Kt}function ym(u){Sn.call(this),this.material=u,this.render=function(){}}Object.assign(Kf.prototype,{set:function(u,g){return this.start.copy(u),this.end.copy(g),this},clone:function(){return new this.constructor().copy(this)},copy:function(u){return this.start.copy(u.start),this.end.copy(u.end),this},getCenter:function(u){return u===void 0&&(console.warn("THREE.Line3: .getCenter() target is now required"),u=new Kt),u.addVectors(this.start,this.end).multiplyScalar(.5)},delta:function(u){return u===void 0&&(console.warn("THREE.Line3: .delta() target is now required"),u=new Kt),u.subVectors(this.end,this.start)},distanceSq:function(){return this.start.distanceToSquared(this.end)},distance:function(){return this.start.distanceTo(this.end)},at:function(u,g){return g===void 0&&(console.warn("THREE.Line3: .at() target is now required"),g=new Kt),this.delta(g).multiplyScalar(u).add(this.start)},closestPointToPointParameter:function(u,g){Rm.subVectors(u,this.start),ff.subVectors(this.end,this.start);var C=ff.dot(ff),L=ff.dot(Rm)/C;return g&&(L=Ta.clamp(L,0,1)),L},closestPointToPoint:function(u,g,C){var L=this.closestPointToPointParameter(u,g);return C===void 0&&(console.warn("THREE.Line3: .closestPointToPoint() target is now required"),C=new Kt),this.delta(C).multiplyScalar(L).add(this.start)},applyMatrix4:function(u){return this.start.applyMatrix4(u),this.end.applyMatrix4(u),this},equals:function(u){return u.start.equals(this.start)&&u.end.equals(this.end)}}),((ym.prototype=Object.create(Sn.prototype)).constructor=ym).prototype.isImmediateRenderObject=!0;var vm=new Kt;function mf(u,g){Sn.call(this),this.light=u,this.light.updateMatrixWorld(),this.matrix=u.matrixWorld,this.matrixAutoUpdate=!1,this.color=g;for(var C=new qi,L=[0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,-1,0,1,0,0,0,0,1,1,0,0,0,0,-1,1],K=0,ie=1;K<32;K++,ie++){var ce=K/32*Math.PI*2,ge=ie/32*Math.PI*2;L.push(Math.cos(ce),Math.sin(ce),1,Math.cos(ge),Math.sin(ge),1)}C.setAttribute("position",new Fr(L,3));var Ee=new ss({fog:!1});this.cone=new Fs(C,Ee),this.add(this.cone),this.update()}((mf.prototype=Object.create(Sn.prototype)).constructor=mf).prototype.dispose=function(){this.cone.geometry.dispose(),this.cone.material.dispose()},mf.prototype.update=function(){this.light.updateMatrixWorld();var u=this.light.distance?this.light.distance:1e3,g=u*Math.tan(this.light.angle);this.cone.scale.set(g,g,u),vm.setFromMatrixPosition(this.light.target.matrixWorld),this.cone.lookAt(vm),this.color!==void 0?this.cone.material.color.set(this.color):this.cone.material.color.copy(this.light.color)};var Qd=new Kt,Gp=new Ki,Jf=new Ki;function Qf(u){for(var g=function We(tt){var ot=[];tt&&tt.isBone&&ot.push(tt);for(var Oe=0;Oe<tt.children.length;Oe++)ot.push.apply(ot,We(tt.children[Oe]));return ot}(u),C=new qi,L=[],K=[],ie=new Fn(0,0,1),ce=new Fn(0,1,0),ge=0;ge<g.length;ge++){var Ee=g[ge];Ee.parent&&Ee.parent.isBone&&(L.push(0,0,0),L.push(0,0,0),K.push(ie.r,ie.g,ie.b),K.push(ce.r,ce.g,ce.b))}C.setAttribute("position",new Fr(L,3)),C.setAttribute("color",new Fr(K,3));var Ae=new ss({vertexColors:2,depthTest:!1,depthWrite:!1,transparent:!0});Fs.call(this,C,Ae),this.root=u,this.bones=g,this.matrix=u.matrixWorld,this.matrixAutoUpdate=!1}function gf(u,g,C){this.light=u,this.light.updateMatrixWorld(),this.color=C;var L=new qd(g,4,2),K=new Jn({wireframe:!0,fog:!1});hs.call(this,L,K),this.matrix=this.light.matrixWorld,this.matrixAutoUpdate=!1,this.update()}((Qf.prototype=Object.create(Fs.prototype)).constructor=Qf).prototype.updateMatrixWorld=function(u){var g=this.bones,C=this.geometry,L=C.getAttribute("position");Jf.getInverse(this.root.matrixWorld);for(var K=0,ie=0;K<g.length;K++){var ce=g[K];ce.parent&&ce.parent.isBone&&(Gp.multiplyMatrices(Jf,ce.matrixWorld),Qd.setFromMatrixPosition(Gp),L.setXYZ(ie,Qd.x,Qd.y,Qd.z),Gp.multiplyMatrices(Jf,ce.parent.matrixWorld),Qd.setFromMatrixPosition(Gp),L.setXYZ(ie+1,Qd.x,Qd.y,Qd.z),ie+=2)}C.getAttribute("position").needsUpdate=!0,Sn.prototype.updateMatrixWorld.call(this,u)},((gf.prototype=Object.create(hs.prototype)).constructor=gf).prototype.dispose=function(){this.geometry.dispose(),this.material.dispose()},gf.prototype.update=function(){this.color!==void 0?this.material.color.set(this.color):this.material.color.copy(this.light.color)};var Mh=new Kt,_m=new Fn,xm=new Fn;function yf(u,g,C){Sn.call(this),this.light=u,this.light.updateMatrixWorld(),this.matrix=u.matrixWorld,this.matrixAutoUpdate=!1,this.color=C;var L=new Hs(g);L.rotateY(.5*Math.PI),this.material=new Jn({wireframe:!0,fog:!1}),this.color===void 0&&(this.material.vertexColors=2);var K=L.getAttribute("position"),ie=new Float32Array(3*K.count);L.setAttribute("color",new Bn(ie,3)),this.add(new hs(L,this.material)),this.update()}function vf(u,g,C,L){u=u||10,g=g||10,C=new Fn(C!==void 0?C:4473924),L=new Fn(L!==void 0?L:8947848);for(var K=g/2,ie=u/g,ce=u/2,ge=[],Ee=[],Ae=0,We=0,tt=-ce;Ae<=g;Ae++,tt+=ie){ge.push(-ce,0,tt,ce,0,tt),ge.push(tt,0,-ce,tt,0,ce);var ot=Ae===K?C:L;ot.toArray(Ee,We),We+=3,ot.toArray(Ee,We),We+=3,ot.toArray(Ee,We),We+=3,ot.toArray(Ee,We),We+=3}var Oe=new qi;Oe.setAttribute("position",new Fr(ge,3)),Oe.setAttribute("color",new Fr(Ee,3));var mt=new ss({vertexColors:2});Fs.call(this,Oe,mt)}function bm(u,g,C,L,K,ie){u=u||10,g=g||16,C=C||8,L=L||64,K=new Fn(K!==void 0?K:4473924),ie=new Fn(ie!==void 0?ie:8947848);var ce,ge,Ee,Ae,We,tt,ot,Oe=[],mt=[];for(Ae=0;Ae<=g;Ae++)Ee=Ae/g*(2*Math.PI),ce=Math.sin(Ee)*u,ge=Math.cos(Ee)*u,Oe.push(0,0,0),Oe.push(ce,0,ge),ot=1&Ae?K:ie,mt.push(ot.r,ot.g,ot.b),mt.push(ot.r,ot.g,ot.b);for(Ae=0;Ae<=C;Ae++)for(ot=1&Ae?K:ie,tt=u-u/C*Ae,We=0;We<L;We++)Ee=We/L*(2*Math.PI),ce=Math.sin(Ee)*tt,ge=Math.cos(Ee)*tt,Oe.push(ce,0,ge),mt.push(ot.r,ot.g,ot.b),Ee=(We+1)/L*(2*Math.PI),ce=Math.sin(Ee)*tt,ge=Math.cos(Ee)*tt,Oe.push(ce,0,ge),mt.push(ot.r,ot.g,ot.b);var Tt=new qi;Tt.setAttribute("position",new Fr(Oe,3)),Tt.setAttribute("color",new Fr(mt,3));var At=new ss({vertexColors:2});Fs.call(this,Tt,At)}((yf.prototype=Object.create(Sn.prototype)).constructor=yf).prototype.dispose=function(){this.children[0].geometry.dispose(),this.children[0].material.dispose()},yf.prototype.update=function(){var u=this.children[0];if(this.color!==void 0)this.material.color.set(this.color);else{var g=u.geometry.getAttribute("color");_m.copy(this.light.color),xm.copy(this.light.groundColor);for(var C=0,L=g.count;C<L;C++){var K=C<L/2?_m:xm;g.setXYZ(C,K.r,K.g,K.b)}g.needsUpdate=!0}u.lookAt(Mh.setFromMatrixPosition(this.light.matrixWorld).negate())},vf.prototype=Object.assign(Object.create(Fs.prototype),{constructor:vf,copy:function(u){return Fs.prototype.copy.call(this,u),this.geometry.copy(u.geometry),this.material.copy(u.material),this},clone:function(){return new this.constructor().copy(this)}}),(bm.prototype=Object.create(Fs.prototype)).constructor=bm;var Lm=new Kt,_f=new Kt,wm=new Kt;function Jh(u,g,C){Sn.call(this),this.light=u,this.light.updateMatrixWorld(),this.matrix=u.matrixWorld,this.matrixAutoUpdate=!1,this.color=C,g===void 0&&(g=1);var L=new qi;L.setAttribute("position",new Fr([-g,g,0,g,g,0,g,-g,0,-g,-g,0,-g,g,0],3));var K=new ss({fog:!1});this.lightPlane=new tu(L,K),this.add(this.lightPlane),(L=new qi).setAttribute("position",new Fr([0,0,0,0,0,1],3)),this.targetLine=new tu(L,K),this.add(this.targetLine),this.update()}((Jh.prototype=Object.create(Sn.prototype)).constructor=Jh).prototype.dispose=function(){this.lightPlane.geometry.dispose(),this.lightPlane.material.dispose(),this.targetLine.geometry.dispose(),this.targetLine.material.dispose()},Jh.prototype.update=function(){Lm.setFromMatrixPosition(this.light.matrixWorld),_f.setFromMatrixPosition(this.light.target.matrixWorld),wm.subVectors(_f,Lm),this.lightPlane.lookAt(_f),this.color!==void 0?(this.lightPlane.material.color.set(this.color),this.targetLine.material.color.set(this.color)):(this.lightPlane.material.color.copy(this.light.color),this.targetLine.material.color.copy(this.light.color)),this.targetLine.lookAt(_f),this.targetLine.scale.z=wm.length()};var xf=new Kt,Tl=new lu;function bf(u){var g=new qi,C=new ss({color:16777215,vertexColors:1}),L=[],K=[],ie={},ce=new Fn(16755200),ge=new Fn(16711680),Ee=new Fn(43775),Ae=new Fn(16777215),We=new Fn(3355443);function tt(Oe,mt,Tt){ot(Oe,Tt),ot(mt,Tt)}function ot(Oe,mt){L.push(0,0,0),K.push(mt.r,mt.g,mt.b),ie[Oe]===void 0&&(ie[Oe]=[]),ie[Oe].push(L.length/3-1)}tt("n1","n2",ce),tt("n2","n4",ce),tt("n4","n3",ce),tt("n3","n1",ce),tt("f1","f2",ce),tt("f2","f4",ce),tt("f4","f3",ce),tt("f3","f1",ce),tt("n1","f1",ce),tt("n2","f2",ce),tt("n3","f3",ce),tt("n4","f4",ce),tt("p","n1",ge),tt("p","n2",ge),tt("p","n3",ge),tt("p","n4",ge),tt("u1","u2",Ee),tt("u2","u3",Ee),tt("u3","u1",Ee),tt("c","t",Ae),tt("p","c",We),tt("cn1","cn2",We),tt("cn3","cn4",We),tt("cf1","cf2",We),tt("cf3","cf4",We),g.setAttribute("position",new Fr(L,3)),g.setAttribute("color",new Fr(K,3)),Fs.call(this,g,C),this.camera=u,this.camera.updateProjectionMatrix&&this.camera.updateProjectionMatrix(),this.matrix=u.matrixWorld,this.matrixAutoUpdate=!1,this.pointMap=ie,this.update()}function hl(u,g,C,L,K,ie,ce){xf.set(K,ie,ce).unproject(L);var ge=g[u];if(ge!==void 0)for(var Ee=C.getAttribute("position"),Ae=0,We=ge.length;Ae<We;Ae++)Ee.setXYZ(ge[Ae],xf.x,xf.y,xf.z)}((bf.prototype=Object.create(Fs.prototype)).constructor=bf).prototype.update=function(){var u=this.geometry,g=this.pointMap;Tl.projectionMatrixInverse.copy(this.camera.projectionMatrixInverse),hl("c",g,u,Tl,0,0,-1),hl("t",g,u,Tl,0,0,1),hl("n1",g,u,Tl,-1,-1,-1),hl("n2",g,u,Tl,1,-1,-1),hl("n3",g,u,Tl,-1,1,-1),hl("n4",g,u,Tl,1,1,-1),hl("f1",g,u,Tl,-1,-1,1),hl("f2",g,u,Tl,1,-1,1),hl("f3",g,u,Tl,-1,1,1),hl("f4",g,u,Tl,1,1,1),hl("u1",g,u,Tl,.7,1.1,-1),hl("u2",g,u,Tl,-.7,1.1,-1),hl("u3",g,u,Tl,0,2,-1),hl("cf1",g,u,Tl,-1,0,1),hl("cf2",g,u,Tl,1,0,1),hl("cf3",g,u,Tl,0,-1,1),hl("cf4",g,u,Tl,0,1,1),hl("cn1",g,u,Tl,-1,0,-1),hl("cn2",g,u,Tl,1,0,-1),hl("cn3",g,u,Tl,0,-1,-1),hl("cn4",g,u,Tl,0,1,-1),u.getAttribute("position").needsUpdate=!0};var wf=new Ss;function eh(u,g){this.object=u,g===void 0&&(g=16776960);var C=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]),L=new Float32Array(24),K=new qi;K.setIndex(new Bn(C,1)),K.setAttribute("position",new Bn(L,3)),Fs.call(this,K,new ss({color:g})),this.matrixAutoUpdate=!1,this.update()}function em(u,g){this.type="Box3Helper",this.box=u,g=g||16776960;var C=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]),L=new qi;L.setIndex(new Bn(C,1)),L.setAttribute("position",new Fr([1,1,1,-1,1,1,-1,-1,1,1,-1,1,1,1,-1,-1,1,-1,-1,-1,-1,1,-1,-1],3)),Fs.call(this,L,new ss({color:g})),this.geometry.computeBoundingSphere()}function jp(u,g,C){this.type="PlaneHelper",this.plane=u,this.size=g===void 0?1:g;var L=C!==void 0?C:16776960,K=new qi;K.setAttribute("position",new Fr([1,-1,1,-1,1,1,-1,-1,1,1,1,1,-1,1,1,-1,-1,1,1,-1,1,1,1,1,0,0,1,0,0,0],3)),K.computeBoundingSphere(),tu.call(this,K,new ss({color:L}));var ie=new qi;ie.setAttribute("position",new Fr([1,1,1,-1,1,1,-1,-1,1,1,1,1,-1,-1,1,1,-1,1],3)),ie.computeBoundingSphere(),this.add(new hs(ie,new Jn({color:L,opacity:.2,transparent:!0,depthWrite:!1})))}((eh.prototype=Object.create(Fs.prototype)).constructor=eh).prototype.update=function(u){if(u!==void 0&&console.warn("THREE.BoxHelper: .update() has no longer arguments."),this.object!==void 0&&wf.setFromObject(this.object),!wf.isEmpty()){var g=wf.min,C=wf.max,L=this.geometry.attributes.position,K=L.array;K[0]=C.x,K[1]=C.y,K[2]=C.z,K[3]=g.x,K[4]=C.y,K[5]=C.z,K[6]=g.x,K[7]=g.y,K[8]=C.z,K[9]=C.x,K[10]=g.y,K[11]=C.z,K[12]=C.x,K[13]=C.y,K[14]=g.z,K[15]=g.x,K[16]=C.y,K[17]=g.z,K[18]=g.x,K[19]=g.y,K[20]=g.z,K[21]=C.x,K[22]=g.y,K[23]=g.z,L.needsUpdate=!0,this.geometry.computeBoundingSphere()}},eh.prototype.setFromObject=function(u){return this.object=u,this.update(),this},eh.prototype.copy=function(u){return Fs.prototype.copy.call(this,u),this.object=u.object,this},eh.prototype.clone=function(){return new this.constructor().copy(this)},((em.prototype=Object.create(Fs.prototype)).constructor=em).prototype.updateMatrixWorld=function(u){var g=this.box;g.isEmpty()||(g.getCenter(this.position),g.getSize(this.scale),this.scale.multiplyScalar(.5),Sn.prototype.updateMatrixWorld.call(this,u))},((jp.prototype=Object.create(tu.prototype)).constructor=jp).prototype.updateMatrixWorld=function(u){var g=-this.plane.constant;Math.abs(g)<1e-8&&(g=1e-8),this.scale.set(.5*this.size,.5*this.size,g),this.children[0].material.side=g<0?E:b,this.lookAt(this.plane.normal),Sn.prototype.updateMatrixWorld.call(this,u)};var Up,Om,Fm=new Kt;function Sp(u,g,C,L,K,ie){Sn.call(this),u===void 0&&(u=new Kt(0,0,1)),g===void 0&&(g=new Kt(0,0,0)),C===void 0&&(C=1),L===void 0&&(L=16776960),K===void 0&&(K=.2*C),ie===void 0&&(ie=.2*K),Up===void 0&&((Up=new qi).setAttribute("position",new Fr([0,0,0,0,1,0],3)),(Om=new Pl(0,.5,1,5,1)).translate(0,-.5,0)),this.position.copy(g),this.line=new tu(Up,new ss({color:L})),this.line.matrixAutoUpdate=!1,this.add(this.line),this.cone=new hs(Om,new Jn({color:L})),this.cone.matrixAutoUpdate=!1,this.add(this.cone),this.setDirection(u),this.setLength(C,K,ie)}function tm(u){var g=[0,0,0,u=u||1,0,0,0,0,0,0,u,0,0,0,0,0,0,u],C=new qi;C.setAttribute("position",new Fr(g,3)),C.setAttribute("color",new Fr([1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],3));var L=new ss({vertexColors:2});Fs.call(this,C,L)}((Sp.prototype=Object.create(Sn.prototype)).constructor=Sp).prototype.setDirection=function(u){if(.99999<u.y)this.quaternion.set(0,0,0,1);else if(u.y<-.99999)this.quaternion.set(1,0,0,0);else{Fm.set(u.z,0,-u.x).normalize();var g=Math.acos(u.y);this.quaternion.setFromAxisAngle(Fm,g)}},Sp.prototype.setLength=function(u,g,C){g===void 0&&(g=.2*u),C===void 0&&(C=.2*g),this.line.scale.set(1,Math.max(1e-4,u-g),1),this.line.updateMatrix(),this.cone.scale.set(C,g,C),this.cone.position.y=u,this.cone.updateMatrix()},Sp.prototype.setColor=function(u){this.line.material.color.set(u),this.cone.material.color.set(u)},Sp.prototype.copy=function(u){return Sn.prototype.copy.call(this,u,!1),this.line.copy(u.line),this.cone.copy(u.cone),this},Sp.prototype.clone=function(){return new this.constructor().copy(this)},(tm.prototype=Object.create(Fs.prototype)).constructor=tm;var $p=4,Gc=8,ud=Math.pow(2,Gc),Bm=[.125,.215,.35,.446,.526,.582],Mm=Gc-$p+1+Bm.length,Hp=20,hu={};hu[bn]=0,hu[sr]=1,hu[Pr]=2,hu[vi]=3,hu[Sa]=4,hu[La]=5,hu[Br]=6;var Nm,Ch,nm=new Jd,Mf=((Ch=new Id({defines:{n:Nm=Hp},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:new Float32Array(Nm)},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:new Kt(0,1,0)},inputEncoding:{value:hu[bn]},outputEncoding:{value:hu[bn]}},vertexShader:`
  2699. precision mediump float;
  2700. precision mediump int;
  2701. attribute vec3 position;
  2702. attribute vec2 uv;
  2703. attribute float faceIndex;
  2704. varying vec3 vOutputDirection;
  2705. vec3 getDirection(vec2 uv, float face) {
  2706. uv = 2.0 * uv - 1.0;
  2707. vec3 direction = vec3(uv, 1.0);
  2708. if (face == 0.0) {
  2709. direction = direction.zyx;
  2710. direction.z *= -1.0;
  2711. } else if (face == 1.0) {
  2712. direction = direction.xzy;
  2713. direction.z *= -1.0;
  2714. } else if (face == 3.0) {
  2715. direction = direction.zyx;
  2716. direction.x *= -1.0;
  2717. } else if (face == 4.0) {
  2718. direction = direction.xzy;
  2719. direction.y *= -1.0;
  2720. } else if (face == 5.0) {
  2721. direction.xz *= -1.0;
  2722. }
  2723. return direction;
  2724. }
  2725. void main() {
  2726. vOutputDirection = getDirection(uv, faceIndex);
  2727. gl_Position = vec4( position, 1.0 );
  2728. }
  2729. `,fragmentShader:`
  2730. precision mediump float;
  2731. precision mediump int;
  2732. varying vec3 vOutputDirection;
  2733. uniform sampler2D envMap;
  2734. uniform int samples;
  2735. uniform float weights[n];
  2736. uniform bool latitudinal;
  2737. uniform float dTheta;
  2738. uniform float mipInt;
  2739. uniform vec3 poleAxis;
  2740. uniform int inputEncoding;
  2741. uniform int outputEncoding;
  2742. #include <encodings_pars_fragment>
  2743. vec4 inputTexelToLinear(vec4 value){
  2744. if(inputEncoding == 0){
  2745. return value;
  2746. }else if(inputEncoding == 1){
  2747. return sRGBToLinear(value);
  2748. }else if(inputEncoding == 2){
  2749. return RGBEToLinear(value);
  2750. }else if(inputEncoding == 3){
  2751. return RGBMToLinear(value, 7.0);
  2752. }else if(inputEncoding == 4){
  2753. return RGBMToLinear(value, 16.0);
  2754. }else if(inputEncoding == 5){
  2755. return RGBDToLinear(value, 256.0);
  2756. }else{
  2757. return GammaToLinear(value, 2.2);
  2758. }
  2759. }
  2760. vec4 linearToOutputTexel(vec4 value){
  2761. if(outputEncoding == 0){
  2762. return value;
  2763. }else if(outputEncoding == 1){
  2764. return LinearTosRGB(value);
  2765. }else if(outputEncoding == 2){
  2766. return LinearToRGBE(value);
  2767. }else if(outputEncoding == 3){
  2768. return LinearToRGBM(value, 7.0);
  2769. }else if(outputEncoding == 4){
  2770. return LinearToRGBM(value, 16.0);
  2771. }else if(outputEncoding == 5){
  2772. return LinearToRGBD(value, 256.0);
  2773. }else{
  2774. return LinearToGamma(value, 2.2);
  2775. }
  2776. }
  2777. vec4 envMapTexelToLinear(vec4 color) {
  2778. return inputTexelToLinear(color);
  2779. }
  2780. #define ENVMAP_TYPE_CUBE_UV
  2781. #include <cube_uv_reflection_fragment>
  2782. void main() {
  2783. gl_FragColor = vec4(0.0);
  2784. for (int i = 0; i < n; i++) {
  2785. if (i >= samples)
  2786. break;
  2787. for (int dir = -1; dir < 2; dir += 2) {
  2788. if (i == 0 && dir == 1)
  2789. continue;
  2790. vec3 axis = latitudinal ? poleAxis : cross(poleAxis, vOutputDirection);
  2791. if (all(equal(axis, vec3(0.0))))
  2792. axis = cross(vec3(0.0, 1.0, 0.0), vOutputDirection);
  2793. axis = normalize(axis);
  2794. float theta = dTheta * float(dir * i);
  2795. float cosTheta = cos(theta);
  2796. // Rodrigues' axis-angle rotation
  2797. vec3 sampleDirection = vOutputDirection * cosTheta
  2798. + cross(axis, vOutputDirection) * sin(theta)
  2799. + axis * dot(axis, vOutputDirection) * (1.0 - cosTheta);
  2800. gl_FragColor.rgb +=
  2801. weights[i] * bilinearCubeUV(envMap, sampleDirection, mipInt);
  2802. }
  2803. }
  2804. gl_FragColor = linearToOutputTexel(gl_FragColor);
  2805. }
  2806. `,blending:N,depthTest:!1,depthWrite:!1})).type="SphericalGaussianBlur",Ch),th=null,Sh=null,Cm=function(){for(var u=[],g=[],C=[],L=Gc,K=0;K<Mm;K++){var ie=Math.pow(2,L);g.push(ie);var ce=1/ie;Gc-$p<K?ce=Bm[K-Gc+$p-1]:K==0&&(ce=0),C.push(ce);for(var ge=1/(ie-1),Ee=-ge/2,Ae=1+ge/2,We=[Ee,Ee,Ae,Ee,Ae,Ae,Ee,Ee,Ae,Ae,Ee,Ae],tt=new Float32Array(108),ot=new Float32Array(72),Oe=new Float32Array(36),mt=0;mt<6;mt++){var Tt=mt%3*2/3-1,At=2<mt?0:-1,nn=[Tt,At,0,Tt+2/3,At,0,Tt+2/3,1+At,0,Tt,At,0,Tt+2/3,1+At,0,Tt,1+At,0];tt.set(nn,18*mt),ot.set(We,12*mt);var fn=[mt,mt,mt,mt,mt,mt];Oe.set(fn,6*mt)}var An=new qi;An.setAttribute("position",new Bn(tt,3)),An.setAttribute("uv",new Bn(ot,2)),An.setAttribute("faceIndex",new Bn(Oe,1)),u.push(An),$p<L&&L--}return{_lodPlanes:u,_sizeLods:g,_sigmas:C}}(),Cf=Cm._lodPlanes,Vm=Cm._sizeLods,Ep=Cm._sigmas,Wp=null,ol=null,Sf=null,Eh=(1+Math.sqrt(5))/2,jc=1/Eh,zm=[new Kt(1,1,1),new Kt(-1,1,1),new Kt(1,1,-1),new Kt(-1,1,-1),new Kt(0,Eh,jc),new Kt(0,Eh,-jc),new Kt(jc,0,Eh),new Kt(-jc,0,Eh),new Kt(Eh,jc,0),new Kt(-Eh,jc,0)];function Ef(u){ol=u,Em(Mf)}function Sm(u){var g={magFilter:Ie,minFilter:Ie,generateMipmaps:!1,type:u?u.type:Kr,format:u?u.format:Qt,encoding:u?u.encoding:Pr,depthBuffer:!1,stencilBuffer:!1},C=Gm(g);return C.depthBuffer=!u,Wp=Gm(g),C}function Tf(u){Wp.dispose(),ol.setRenderTarget(Sf),u.scissorTest=!1,u.setSize(u.width,u.height)}function Em(u){var g=new Gn;g.add(new hs(Cf[0],u)),ol.compile(g,nm)}function Gm(u){var g=new Rs(3*ud,3*ud,u);return g.texture.mapping=rn,g.texture.name="PMREM.cubeUv",g.scissorTest=!0,g}function Tm(u,g,C,L,K){u.viewport.set(g,C,L,K),u.scissor.set(g,C,L,K)}function jm(u){var g=ol.autoClear;ol.autoClear=!1;for(var C=1;C<Mm;C++)rm(u,C-1,C,Math.sqrt(Ep[C]*Ep[C]-Ep[C-1]*Ep[C-1]),zm[(C-1)%zm.length]);ol.autoClear=g}function rm(u,g,C,L,K){Um(u,Wp,g,C,L,"latitudinal",K),Um(Wp,u,C,C,L,"longitudinal",K)}function Um(u,g,C,L,K,ie,ce){ie!=="latitudinal"&&ie!=="longitudinal"&&console.error("blur direction must be either latitudinal or longitudinal!");var ge=new Gn;ge.add(new hs(Cf[L],Mf));var Ee=Mf.uniforms,Ae=Vm[C]-1,We=isFinite(K)?Math.PI/(2*Ae):2*Math.PI/(2*Hp-1),tt=K/We,ot=isFinite(K)?1+Math.floor(3*tt):Hp;Hp<ot&&console.warn("sigmaRadians, "+K+", is too large and will clip, as it requested "+ot+" samples when the maximum is set to "+Hp);for(var Oe=[],mt=0,Tt=0;Tt<Hp;++Tt){var At=Tt/tt,nn=Math.exp(-At*At/2);Oe.push(nn),Tt==0?mt+=nn:Tt<ot&&(mt+=2*nn)}for(Tt=0;Tt<Oe.length;Tt++)Oe[Tt]=Oe[Tt]/mt;Ee.envMap.value=u.texture,Ee.samples.value=ot,Ee.weights.value=Oe,Ee.latitudinal.value=ie==="latitudinal",ce&&(Ee.poleAxis.value=ce),Ee.dTheta.value=We,Ee.mipInt.value=Gc-C,Ee.inputEncoding.value=hu[u.texture.encoding],Ee.outputEncoding.value=hu[u.texture.encoding];var fn=Vm[L];Tm(g,At=3*Math.max(0,ud-2*fn),(L===0?0:2*ud)+2*fn*(Gc-$p<L?L-Gc+$p:0),3*fn,2*fn),ol.setRenderTarget(g),ol.render(ge,nm)}function Yp(){var u=new Id({uniforms:{envMap:{value:null},texelSize:{value:new Lr(1,1)},inputEncoding:{value:hu[bn]},outputEncoding:{value:hu[bn]}},vertexShader:`
  2807. precision mediump float;
  2808. precision mediump int;
  2809. attribute vec3 position;
  2810. attribute vec2 uv;
  2811. attribute float faceIndex;
  2812. varying vec3 vOutputDirection;
  2813. vec3 getDirection(vec2 uv, float face) {
  2814. uv = 2.0 * uv - 1.0;
  2815. vec3 direction = vec3(uv, 1.0);
  2816. if (face == 0.0) {
  2817. direction = direction.zyx;
  2818. direction.z *= -1.0;
  2819. } else if (face == 1.0) {
  2820. direction = direction.xzy;
  2821. direction.z *= -1.0;
  2822. } else if (face == 3.0) {
  2823. direction = direction.zyx;
  2824. direction.x *= -1.0;
  2825. } else if (face == 4.0) {
  2826. direction = direction.xzy;
  2827. direction.y *= -1.0;
  2828. } else if (face == 5.0) {
  2829. direction.xz *= -1.0;
  2830. }
  2831. return direction;
  2832. }
  2833. void main() {
  2834. vOutputDirection = getDirection(uv, faceIndex);
  2835. gl_Position = vec4( position, 1.0 );
  2836. }
  2837. `,fragmentShader:`
  2838. precision mediump float;
  2839. precision mediump int;
  2840. varying vec3 vOutputDirection;
  2841. uniform sampler2D envMap;
  2842. uniform vec2 texelSize;
  2843. uniform int inputEncoding;
  2844. uniform int outputEncoding;
  2845. #include <encodings_pars_fragment>
  2846. vec4 inputTexelToLinear(vec4 value){
  2847. if(inputEncoding == 0){
  2848. return value;
  2849. }else if(inputEncoding == 1){
  2850. return sRGBToLinear(value);
  2851. }else if(inputEncoding == 2){
  2852. return RGBEToLinear(value);
  2853. }else if(inputEncoding == 3){
  2854. return RGBMToLinear(value, 7.0);
  2855. }else if(inputEncoding == 4){
  2856. return RGBMToLinear(value, 16.0);
  2857. }else if(inputEncoding == 5){
  2858. return RGBDToLinear(value, 256.0);
  2859. }else{
  2860. return GammaToLinear(value, 2.2);
  2861. }
  2862. }
  2863. vec4 linearToOutputTexel(vec4 value){
  2864. if(outputEncoding == 0){
  2865. return value;
  2866. }else if(outputEncoding == 1){
  2867. return LinearTosRGB(value);
  2868. }else if(outputEncoding == 2){
  2869. return LinearToRGBE(value);
  2870. }else if(outputEncoding == 3){
  2871. return LinearToRGBM(value, 7.0);
  2872. }else if(outputEncoding == 4){
  2873. return LinearToRGBM(value, 16.0);
  2874. }else if(outputEncoding == 5){
  2875. return LinearToRGBD(value, 256.0);
  2876. }else{
  2877. return LinearToGamma(value, 2.2);
  2878. }
  2879. }
  2880. vec4 envMapTexelToLinear(vec4 color) {
  2881. return inputTexelToLinear(color);
  2882. }
  2883. #define RECIPROCAL_PI 0.31830988618
  2884. #define RECIPROCAL_PI2 0.15915494
  2885. void main() {
  2886. gl_FragColor = vec4(0.0);
  2887. vec3 outputDirection = normalize(vOutputDirection);
  2888. vec2 uv;
  2889. uv.y = asin(clamp(outputDirection.y, -1.0, 1.0)) * RECIPROCAL_PI + 0.5;
  2890. uv.x = atan(outputDirection.z, outputDirection.x) * RECIPROCAL_PI2 + 0.5;
  2891. vec2 f = fract(uv / texelSize - 0.5);
  2892. uv -= f * texelSize;
  2893. vec3 tl = envMapTexelToLinear(texture2D(envMap, uv)).rgb;
  2894. uv.x += texelSize.x;
  2895. vec3 tr = envMapTexelToLinear(texture2D(envMap, uv)).rgb;
  2896. uv.y += texelSize.y;
  2897. vec3 br = envMapTexelToLinear(texture2D(envMap, uv)).rgb;
  2898. uv.x -= texelSize.x;
  2899. vec3 bl = envMapTexelToLinear(texture2D(envMap, uv)).rgb;
  2900. vec3 tm = mix(tl, tr, f.x);
  2901. vec3 bm = mix(bl, br, f.x);
  2902. gl_FragColor.rgb = mix(tm, bm, f.y);
  2903. gl_FragColor = linearToOutputTexel(gl_FragColor);
  2904. }
  2905. `,blending:N,depthTest:!1,depthWrite:!1});return u.type="EquirectangularToCubeUV",u}function im(){var u=new Id({uniforms:{envMap:{value:null},inputEncoding:{value:hu[bn]},outputEncoding:{value:hu[bn]}},vertexShader:`
  2906. precision mediump float;
  2907. precision mediump int;
  2908. attribute vec3 position;
  2909. attribute vec2 uv;
  2910. attribute float faceIndex;
  2911. varying vec3 vOutputDirection;
  2912. vec3 getDirection(vec2 uv, float face) {
  2913. uv = 2.0 * uv - 1.0;
  2914. vec3 direction = vec3(uv, 1.0);
  2915. if (face == 0.0) {
  2916. direction = direction.zyx;
  2917. direction.z *= -1.0;
  2918. } else if (face == 1.0) {
  2919. direction = direction.xzy;
  2920. direction.z *= -1.0;
  2921. } else if (face == 3.0) {
  2922. direction = direction.zyx;
  2923. direction.x *= -1.0;
  2924. } else if (face == 4.0) {
  2925. direction = direction.xzy;
  2926. direction.y *= -1.0;
  2927. } else if (face == 5.0) {
  2928. direction.xz *= -1.0;
  2929. }
  2930. return direction;
  2931. }
  2932. void main() {
  2933. vOutputDirection = getDirection(uv, faceIndex);
  2934. gl_Position = vec4( position, 1.0 );
  2935. }
  2936. `,fragmentShader:`
  2937. precision mediump float;
  2938. precision mediump int;
  2939. varying vec3 vOutputDirection;
  2940. uniform samplerCube envMap;
  2941. uniform int inputEncoding;
  2942. uniform int outputEncoding;
  2943. #include <encodings_pars_fragment>
  2944. vec4 inputTexelToLinear(vec4 value){
  2945. if(inputEncoding == 0){
  2946. return value;
  2947. }else if(inputEncoding == 1){
  2948. return sRGBToLinear(value);
  2949. }else if(inputEncoding == 2){
  2950. return RGBEToLinear(value);
  2951. }else if(inputEncoding == 3){
  2952. return RGBMToLinear(value, 7.0);
  2953. }else if(inputEncoding == 4){
  2954. return RGBMToLinear(value, 16.0);
  2955. }else if(inputEncoding == 5){
  2956. return RGBDToLinear(value, 256.0);
  2957. }else{
  2958. return GammaToLinear(value, 2.2);
  2959. }
  2960. }
  2961. vec4 linearToOutputTexel(vec4 value){
  2962. if(outputEncoding == 0){
  2963. return value;
  2964. }else if(outputEncoding == 1){
  2965. return LinearTosRGB(value);
  2966. }else if(outputEncoding == 2){
  2967. return LinearToRGBE(value);
  2968. }else if(outputEncoding == 3){
  2969. return LinearToRGBM(value, 7.0);
  2970. }else if(outputEncoding == 4){
  2971. return LinearToRGBM(value, 16.0);
  2972. }else if(outputEncoding == 5){
  2973. return LinearToRGBD(value, 256.0);
  2974. }else{
  2975. return LinearToGamma(value, 2.2);
  2976. }
  2977. }
  2978. vec4 envMapTexelToLinear(vec4 color) {
  2979. return inputTexelToLinear(color);
  2980. }
  2981. void main() {
  2982. gl_FragColor = vec4(0.0);
  2983. gl_FragColor.rgb = envMapTexelToLinear(textureCube(envMap, vec3( - vOutputDirection.x, vOutputDirection.yz ))).rgb;
  2984. gl_FragColor = linearToOutputTexel(gl_FragColor);
  2985. }
  2986. `,blending:N,depthTest:!1,depthWrite:!1});return u.type="CubemapToCubeUV",u}function $m(u){console.warn("THREE.ClosedSplineCurve3 has been deprecated. Use THREE.CatmullRomCurve3 instead."),fa.call(this,u),this.type="catmullrom",this.closed=!0}function Hm(u){console.warn("THREE.SplineCurve3 has been deprecated. Use THREE.CatmullRomCurve3 instead."),fa.call(this,u),this.type="catmullrom"}function am(u){console.warn("THREE.Spline has been removed. Use THREE.CatmullRomCurve3 instead."),fa.call(this,u),this.type="catmullrom"}Ef.prototype={constructor:Ef,fromScene:function(u,g,C,L){g===void 0&&(g=0),C===void 0&&(C=.1),L===void 0&&(L=100),Sf=ol.getRenderTarget();var K=Sm();return function(ie,ce,ge,Ee){var Ae=new Js(90,1,ce,ge),We=[1,1,1,1,-1,1],tt=[1,1,-1,-1,-1,1],ot=ol.outputEncoding,Oe=ol.toneMapping,mt=ol.toneMappingExposure,Tt=ol.getClearColor(),At=ol.getClearAlpha();ol.toneMapping=Ke,ol.toneMappingExposure=1,ol.outputEncoding=bn,ie.scale.z*=-1;var nn=ie.background;if(nn&&nn.isColor){nn.convertSRGBToLinear();var fn=Math.max(nn.r,nn.g,nn.b),An=Math.min(Math.max(Math.ceil(Math.log2(fn)),-128),127);nn=nn.multiplyScalar(Math.pow(2,-An));var zn=(An+128)/255;ol.setClearColor(nn,zn),ie.background=null}for(var Dn=0;Dn<6;Dn++){var Qn=Dn%3;Qn==0?(Ae.up.set(0,We[Dn],0),Ae.lookAt(tt[Dn],0,0)):Qn==1?(Ae.up.set(0,0,We[Dn]),Ae.lookAt(0,tt[Dn],0)):(Ae.up.set(0,We[Dn],0),Ae.lookAt(0,0,tt[Dn])),Tm(Ee,Qn*ud,2<Dn?ud:0,ud,ud),ol.setRenderTarget(Ee),ol.render(ie,Ae)}ol.toneMapping=Oe,ol.toneMappingExposure=mt,ol.outputEncoding=ot,ol.setClearColor(Tt,At),ie.scale.z*=-1}(u,C,L,K),0<g&&rm(K,0,0,g),jm(K),Tf(K),K},fromEquirectangular:function(u){return u.magFilter=Ie,u.minFilter=Ie,u.generateMipmaps=!1,this.fromCubemap(u)},fromCubemap:function(u){Sf=ol.getRenderTarget();var g=Sm(u);return function(C,L){var K=new Gn;C.isCubeTexture?Sh==null&&(Sh=im()):th==null&&(th=Yp());var ie=C.isCubeTexture?Sh:th;K.add(new hs(Cf[0],ie));var ce=ie.uniforms;(ce.envMap.value=C).isCubeTexture||ce.texelSize.value.set(1/C.image.width,1/C.image.height),ce.inputEncoding.value=hu[C.encoding],ce.outputEncoding.value=hu[C.encoding],Tm(L,0,0,3*ud,2*ud),ol.setRenderTarget(L),ol.render(K,nm)}(u,g),jm(g),Tf(g),g},compileCubemapShader:function(){Sh==null&&Em(Sh=im())},compileEquirectangularShader:function(){th==null&&Em(th=Yp())},dispose:function(){Mf.dispose(),Sh!=null&&Sh.dispose(),th!=null&&th.dispose();for(var u=0;u<Cf.length;u++)Cf[u].dispose()}},ur.create=function(u,g){return console.log("THREE.Curve.create() has been deprecated"),u.prototype=Object.create(ur.prototype),(u.prototype.constructor=u).prototype.getPoint=g,u},Object.assign($l.prototype,{createPointsGeometry:function(u){console.warn("THREE.CurvePath: .createPointsGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.");var g=this.getPoints(u);return this.createGeometry(g)},createSpacedPointsGeometry:function(u){console.warn("THREE.CurvePath: .createSpacedPointsGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.");var g=this.getSpacedPoints(u);return this.createGeometry(g)},createGeometry:function(u){console.warn("THREE.CurvePath: .createGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.");for(var g=new Fa,C=0,L=u.length;C<L;C++){var K=u[C];g.vertices.push(new Kt(K.x,K.y,K.z||0))}return g}}),Object.assign(Hl.prototype,{fromPoints:function(u){return console.warn("THREE.Path: .fromPoints() has been renamed to .setFromPoints()."),this.setFromPoints(u)}}),$m.prototype=Object.create(fa.prototype),Hm.prototype=Object.create(fa.prototype),am.prototype=Object.create(fa.prototype),Object.assign(am.prototype,{initFromArray:function(){console.error("THREE.Spline: .initFromArray() has been removed.")},getControlPointsArray:function(){console.error("THREE.Spline: .getControlPointsArray() has been removed.")},reparametrizeByArcLength:function(){console.error("THREE.Spline: .reparametrizeByArcLength() has been removed.")}}),vf.prototype.setColors=function(){console.error("THREE.GridHelper: setColors() has been deprecated, pass them in the constructor instead.")},Qf.prototype.update=function(){console.error("THREE.SkeletonHelper: update() no longer needs to be called.")},Object.assign(X.prototype,{extractUrlBase:function(u){return console.warn("THREE.Loader: .extractUrlBase() has been deprecated. Use THREE.LoaderUtils.extractUrlBase() instead."),Lf.extractUrlBase(u)}}),X.Handlers={add:function(){console.error("THREE.Loader: Handlers.add() has been removed. Use LoadingManager.addHandler() instead.")},get:function(){console.error("THREE.Loader: Handlers.get() has been removed. Use LoadingManager.getHandler() instead.")}},Object.assign(Nf.prototype,{setTexturePath:function(u){return console.warn("THREE.ObjectLoader: .setTexturePath() has been renamed to .setResourcePath()."),this.setResourcePath(u)}}),Object.assign(zp.prototype,{center:function(u){return console.warn("THREE.Box2: .center() has been renamed to .getCenter()."),this.getCenter(u)},empty:function(){return console.warn("THREE.Box2: .empty() has been renamed to .isEmpty()."),this.isEmpty()},isIntersectionBox:function(u){return console.warn("THREE.Box2: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(u)},size:function(u){return console.warn("THREE.Box2: .size() has been renamed to .getSize()."),this.getSize(u)}}),Object.assign(Ss.prototype,{center:function(u){return console.warn("THREE.Box3: .center() has been renamed to .getCenter()."),this.getCenter(u)},empty:function(){return console.warn("THREE.Box3: .empty() has been renamed to .isEmpty()."),this.isEmpty()},isIntersectionBox:function(u){return console.warn("THREE.Box3: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(u)},isIntersectionSphere:function(u){return console.warn("THREE.Box3: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(u)},size:function(u){return console.warn("THREE.Box3: .size() has been renamed to .getSize()."),this.getSize(u)}}),Yc.prototype.setFromMatrix=function(u){return console.warn("THREE.Frustum: .setFromMatrix() has been renamed to .setFromProjectionMatrix()."),this.setFromProjectionMatrix(u)},Kf.prototype.center=function(u){return console.warn("THREE.Line3: .center() has been renamed to .getCenter()."),this.getCenter(u)},Object.assign(Ta,{random16:function(){return console.warn("THREE.Math: .random16() has been deprecated. Use Math.random() instead."),Math.random()},nearestPowerOfTwo:function(u){return console.warn("THREE.Math: .nearestPowerOfTwo() has been renamed to .floorPowerOfTwo()."),Ta.floorPowerOfTwo(u)},nextPowerOfTwo:function(u){return console.warn("THREE.Math: .nextPowerOfTwo() has been renamed to .ceilPowerOfTwo()."),Ta.ceilPowerOfTwo(u)}}),Object.assign(Vo.prototype,{flattenToArrayOffset:function(u,g){return console.warn("THREE.Matrix3: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(u,g)},multiplyVector3:function(u){return console.warn("THREE.Matrix3: .multiplyVector3() has been removed. Use vector.applyMatrix3( matrix ) instead."),u.applyMatrix3(this)},multiplyVector3Array:function(){console.error("THREE.Matrix3: .multiplyVector3Array() has been removed.")},applyToBufferAttribute:function(u){return console.warn("THREE.Matrix3: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix3( matrix ) instead."),u.applyMatrix3(this)},applyToVector3Array:function(){console.error("THREE.Matrix3: .applyToVector3Array() has been removed.")}}),Object.assign(Ki.prototype,{extractPosition:function(u){return console.warn("THREE.Matrix4: .extractPosition() has been renamed to .copyPosition()."),this.copyPosition(u)},flattenToArrayOffset:function(u,g){return console.warn("THREE.Matrix4: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(u,g)},getPosition:function(){return console.warn("THREE.Matrix4: .getPosition() has been removed. Use Vector3.setFromMatrixPosition( matrix ) instead."),new Kt().setFromMatrixColumn(this,3)},setRotationFromQuaternion:function(u){return console.warn("THREE.Matrix4: .setRotationFromQuaternion() has been renamed to .makeRotationFromQuaternion()."),this.makeRotationFromQuaternion(u)},multiplyToArray:function(){console.warn("THREE.Matrix4: .multiplyToArray() has been removed.")},multiplyVector3:function(u){return console.warn("THREE.Matrix4: .multiplyVector3() has been removed. Use vector.applyMatrix4( matrix ) instead."),u.applyMatrix4(this)},multiplyVector4:function(u){return console.warn("THREE.Matrix4: .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead."),u.applyMatrix4(this)},multiplyVector3Array:function(){console.error("THREE.Matrix4: .multiplyVector3Array() has been removed.")},rotateAxis:function(u){console.warn("THREE.Matrix4: .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead."),u.transformDirection(this)},crossVector:function(u){return console.warn("THREE.Matrix4: .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead."),u.applyMatrix4(this)},translate:function(){console.error("THREE.Matrix4: .translate() has been removed.")},rotateX:function(){console.error("THREE.Matrix4: .rotateX() has been removed.")},rotateY:function(){console.error("THREE.Matrix4: .rotateY() has been removed.")},rotateZ:function(){console.error("THREE.Matrix4: .rotateZ() has been removed.")},rotateByAxis:function(){console.error("THREE.Matrix4: .rotateByAxis() has been removed.")},applyToBufferAttribute:function(u){return console.warn("THREE.Matrix4: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix4( matrix ) instead."),u.applyMatrix4(this)},applyToVector3Array:function(){console.error("THREE.Matrix4: .applyToVector3Array() has been removed.")},makeFrustum:function(u,g,C,L,K,ie){return console.warn("THREE.Matrix4: .makeFrustum() has been removed. Use .makePerspective( left, right, top, bottom, near, far ) instead."),this.makePerspective(u,g,L,C,K,ie)}}),Wo.prototype.isIntersectionLine=function(u){return console.warn("THREE.Plane: .isIntersectionLine() has been renamed to .intersectsLine()."),this.intersectsLine(u)},Zo.prototype.multiplyVector3=function(u){return console.warn("THREE.Quaternion: .multiplyVector3() has been removed. Use is now vector.applyQuaternion( quaternion ) instead."),u.applyQuaternion(this)},Object.assign(fo.prototype,{isIntersectionBox:function(u){return console.warn("THREE.Ray: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(u)},isIntersectionPlane:function(u){return console.warn("THREE.Ray: .isIntersectionPlane() has been renamed to .intersectsPlane()."),this.intersectsPlane(u)},isIntersectionSphere:function(u){return console.warn("THREE.Ray: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(u)}}),Object.assign(ds.prototype,{area:function(){return console.warn("THREE.Triangle: .area() has been renamed to .getArea()."),this.getArea()},barycoordFromPoint:function(u,g){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),this.getBarycoord(u,g)},midpoint:function(u){return console.warn("THREE.Triangle: .midpoint() has been renamed to .getMidpoint()."),this.getMidpoint(u)},normal:function(u){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),this.getNormal(u)},plane:function(u){return console.warn("THREE.Triangle: .plane() has been renamed to .getPlane()."),this.getPlane(u)}}),Object.assign(ds,{barycoordFromPoint:function(u,g,C,L,K){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),ds.getBarycoord(u,g,C,L,K)},normal:function(u,g,C,L){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),ds.getNormal(u,g,C,L)}}),Object.assign(Wu.prototype,{extractAllPoints:function(u){return console.warn("THREE.Shape: .extractAllPoints() has been removed. Use .extractPoints() instead."),this.extractPoints(u)},extrude:function(u){return console.warn("THREE.Shape: .extrude() has been removed. Use ExtrudeGeometry() instead."),new Ad(this,u)},makeGeometry:function(u){return console.warn("THREE.Shape: .makeGeometry() has been removed. Use ShapeGeometry() instead."),new Oc(this,u)}}),Object.assign(Lr.prototype,{fromAttribute:function(u,g,C){return console.warn("THREE.Vector2: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(u,g,C)},distanceToManhattan:function(u){return console.warn("THREE.Vector2: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(u)},lengthManhattan:function(){return console.warn("THREE.Vector2: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()}}),Object.assign(Kt.prototype,{setEulerFromRotationMatrix:function(){console.error("THREE.Vector3: .setEulerFromRotationMatrix() has been removed. Use Euler.setFromRotationMatrix() instead.")},setEulerFromQuaternion:function(){console.error("THREE.Vector3: .setEulerFromQuaternion() has been removed. Use Euler.setFromQuaternion() instead.")},getPositionFromMatrix:function(u){return console.warn("THREE.Vector3: .getPositionFromMatrix() has been renamed to .setFromMatrixPosition()."),this.setFromMatrixPosition(u)},getScaleFromMatrix:function(u){return console.warn("THREE.Vector3: .getScaleFromMatrix() has been renamed to .setFromMatrixScale()."),this.setFromMatrixScale(u)},getColumnFromMatrix:function(u,g){return console.warn("THREE.Vector3: .getColumnFromMatrix() has been renamed to .setFromMatrixColumn()."),this.setFromMatrixColumn(g,u)},applyProjection:function(u){return console.warn("THREE.Vector3: .applyProjection() has been removed. Use .applyMatrix4( m ) instead."),this.applyMatrix4(u)},fromAttribute:function(u,g,C){return console.warn("THREE.Vector3: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(u,g,C)},distanceToManhattan:function(u){return console.warn("THREE.Vector3: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(u)},lengthManhattan:function(){return console.warn("THREE.Vector3: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()}}),Object.assign(_o.prototype,{fromAttribute:function(u,g,C){return console.warn("THREE.Vector4: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(u,g,C)},lengthManhattan:function(){return console.warn("THREE.Vector4: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()}}),Object.assign(Fa.prototype,{computeTangents:function(){console.error("THREE.Geometry: .computeTangents() has been removed.")},computeLineDistances:function(){console.error("THREE.Geometry: .computeLineDistances() has been removed. Use THREE.Line.computeLineDistances() instead.")},applyMatrix:function(u){return console.warn("THREE.Geometry: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(u)}}),Object.assign(Sn.prototype,{getChildByName:function(u){return console.warn("THREE.Object3D: .getChildByName() has been renamed to .getObjectByName()."),this.getObjectByName(u)},renderDepth:function(){console.warn("THREE.Object3D: .renderDepth has been removed. Use .renderOrder, instead.")},translate:function(u,g){return console.warn("THREE.Object3D: .translate() has been removed. Use .translateOnAxis( axis, distance ) instead."),this.translateOnAxis(g,u)},getWorldRotation:function(){console.error("THREE.Object3D: .getWorldRotation() has been removed. Use THREE.Object3D.getWorldQuaternion( target ) instead.")},applyMatrix:function(u){return console.warn("THREE.Object3D: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(u)}}),Object.defineProperties(Sn.prototype,{eulerOrder:{get:function(){return console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order},set:function(u){console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order=u}},useQuaternion:{get:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")},set:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")}}}),Object.assign(hs.prototype,{setDrawMode:function(){console.error("THREE.Mesh: .setDrawMode() has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.")}}),Object.defineProperties(hs.prototype,{drawMode:{get:function(){return console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode."),0},set:function(){console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.")}}}),Object.defineProperties(ac.prototype,{objects:{get:function(){return console.warn("THREE.LOD: .objects has been renamed to .levels."),this.levels}}}),Object.defineProperty(td.prototype,"useVertexTexture",{get:function(){console.warn("THREE.Skeleton: useVertexTexture has been removed.")},set:function(){console.warn("THREE.Skeleton: useVertexTexture has been removed.")}}),Su.prototype.initBones=function(){console.error("THREE.SkinnedMesh: initBones() has been removed.")},Object.defineProperty(ur.prototype,"__arcLengthDivisions",{get:function(){return console.warn("THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions."),this.arcLengthDivisions},set:function(u){console.warn("THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions."),this.arcLengthDivisions=u}}),Js.prototype.setLens=function(u,g){console.warn("THREE.PerspectiveCamera.setLens is deprecated. Use .setFocalLength and .filmGauge for a photographic setup."),g!==void 0&&(this.filmGauge=g),this.setFocalLength(u)},Object.defineProperties(qo.prototype,{onlyShadow:{set:function(){console.warn("THREE.Light: .onlyShadow has been removed.")}},shadowCameraFov:{set:function(u){console.warn("THREE.Light: .shadowCameraFov is now .shadow.camera.fov."),this.shadow.camera.fov=u}},shadowCameraLeft:{set:function(u){console.warn("THREE.Light: .shadowCameraLeft is now .shadow.camera.left."),this.shadow.camera.left=u}},shadowCameraRight:{set:function(u){console.warn("THREE.Light: .shadowCameraRight is now .shadow.camera.right."),this.shadow.camera.right=u}},shadowCameraTop:{set:function(u){console.warn("THREE.Light: .shadowCameraTop is now .shadow.camera.top."),this.shadow.camera.top=u}},shadowCameraBottom:{set:function(u){console.warn("THREE.Light: .shadowCameraBottom is now .shadow.camera.bottom."),this.shadow.camera.bottom=u}},shadowCameraNear:{set:function(u){console.warn("THREE.Light: .shadowCameraNear is now .shadow.camera.near."),this.shadow.camera.near=u}},shadowCameraFar:{set:function(u){console.warn("THREE.Light: .shadowCameraFar is now .shadow.camera.far."),this.shadow.camera.far=u}},shadowCameraVisible:{set:function(){console.warn("THREE.Light: .shadowCameraVisible has been removed. Use new THREE.CameraHelper( light.shadow.camera ) instead.")}},shadowBias:{set:function(u){console.warn("THREE.Light: .shadowBias is now .shadow.bias."),this.shadow.bias=u}},shadowDarkness:{set:function(){console.warn("THREE.Light: .shadowDarkness has been removed.")}},shadowMapWidth:{set:function(u){console.warn("THREE.Light: .shadowMapWidth is now .shadow.mapSize.width."),this.shadow.mapSize.width=u}},shadowMapHeight:{set:function(u){console.warn("THREE.Light: .shadowMapHeight is now .shadow.mapSize.height."),this.shadow.mapSize.height=u}}}),Object.defineProperties(Bn.prototype,{length:{get:function(){return console.warn("THREE.BufferAttribute: .length has been deprecated. Use .count instead."),this.array.length}},dynamic:{get:function(){return console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."),this.usage===Vs},set:function(){console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."),this.setUsage(Vs)}}}),Object.assign(Bn.prototype,{setDynamic:function(u){return console.warn("THREE.BufferAttribute: .setDynamic() has been deprecated. Use .setUsage() instead."),this.setUsage(u===!0?Vs:Ua),this},copyIndicesArray:function(){console.error("THREE.BufferAttribute: .copyIndicesArray() has been removed.")},setArray:function(){console.error("THREE.BufferAttribute: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers")}}),Object.assign(qi.prototype,{addIndex:function(u){console.warn("THREE.BufferGeometry: .addIndex() has been renamed to .setIndex()."),this.setIndex(u)},addAttribute:function(u,g){return console.warn("THREE.BufferGeometry: .addAttribute() has been renamed to .setAttribute()."),g&&g.isBufferAttribute||g&&g.isInterleavedBufferAttribute?u==="index"?(console.warn("THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute."),this.setIndex(g),this):this.setAttribute(u,g):(console.warn("THREE.BufferGeometry: .addAttribute() now expects ( name, attribute )."),this.setAttribute(u,new Bn(g,arguments[2])))},addDrawCall:function(u,g,C){C!==void 0&&console.warn("THREE.BufferGeometry: .addDrawCall() no longer supports indexOffset."),console.warn("THREE.BufferGeometry: .addDrawCall() is now .addGroup()."),this.addGroup(u,g)},clearDrawCalls:function(){console.warn("THREE.BufferGeometry: .clearDrawCalls() is now .clearGroups()."),this.clearGroups()},computeTangents:function(){console.warn("THREE.BufferGeometry: .computeTangents() has been removed.")},computeOffsets:function(){console.warn("THREE.BufferGeometry: .computeOffsets() has been removed.")},removeAttribute:function(u){return console.warn("THREE.BufferGeometry: .removeAttribute() has been renamed to .deleteAttribute()."),this.deleteAttribute(u)},applyMatrix:function(u){return console.warn("THREE.BufferGeometry: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(u)}}),Object.defineProperties(qi.prototype,{drawcalls:{get:function(){return console.error("THREE.BufferGeometry: .drawcalls has been renamed to .groups."),this.groups}},offsets:{get:function(){return console.warn("THREE.BufferGeometry: .offsets has been renamed to .groups."),this.groups}}}),Object.defineProperties(eu.prototype,{dynamic:{get:function(){return console.warn("THREE.InterleavedBuffer: .length has been deprecated. Use .usage instead."),this.usage===Vs},set:function(u){console.warn("THREE.InterleavedBuffer: .length has been deprecated. Use .usage instead."),this.setUsage(u)}}}),Object.assign(eu.prototype,{setDynamic:function(u){return console.warn("THREE.InterleavedBuffer: .setDynamic() has been deprecated. Use .setUsage() instead."),this.setUsage(u===!0?Vs:Ua),this},setArray:function(){console.error("THREE.InterleavedBuffer: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers")}}),Object.assign(vc.prototype,{getArrays:function(){console.error("THREE.ExtrudeBufferGeometry: .getArrays() has been removed.")},addShapeList:function(){console.error("THREE.ExtrudeBufferGeometry: .addShapeList() has been removed.")},addShape:function(){console.error("THREE.ExtrudeBufferGeometry: .addShape() has been removed.")}}),Object.defineProperties(qf.prototype,{dynamic:{set:function(){console.warn("THREE.Uniform: .dynamic has been removed. Use object.onBeforeRender() instead.")}},onUpdate:{value:function(){return console.warn("THREE.Uniform: .onUpdate() has been removed. Use object.onBeforeRender() instead."),this}}}),Object.defineProperties(Wt.prototype,{wrapAround:{get:function(){console.warn("THREE.Material: .wrapAround has been removed.")},set:function(){console.warn("THREE.Material: .wrapAround has been removed.")}},overdraw:{get:function(){console.warn("THREE.Material: .overdraw has been removed.")},set:function(){console.warn("THREE.Material: .overdraw has been removed.")}},wrapRGB:{get:function(){return console.warn("THREE.Material: .wrapRGB has been removed."),new Fn}},shading:{get:function(){console.error("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead.")},set:function(u){console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=u===1}},stencilMask:{get:function(){return console.warn("THREE."+this.type+": .stencilMask has been removed. Use .stencilFuncMask instead."),this.stencilFuncMask},set:function(u){console.warn("THREE."+this.type+": .stencilMask has been removed. Use .stencilFuncMask instead."),this.stencilFuncMask=u}}}),Object.defineProperties(mu.prototype,{metal:{get:function(){return console.warn("THREE.MeshPhongMaterial: .metal has been removed. Use THREE.MeshStandardMaterial instead."),!1},set:function(){console.warn("THREE.MeshPhongMaterial: .metal has been removed. Use THREE.MeshStandardMaterial instead")}}}),Object.defineProperties(zl.prototype,{derivatives:{get:function(){return console.warn("THREE.ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives},set:function(u){console.warn("THREE. ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives=u}}}),Object.assign(cu.prototype,{clearTarget:function(u,g,C,L){console.warn("THREE.WebGLRenderer: .clearTarget() has been deprecated. Use .setRenderTarget() and .clear() instead."),this.setRenderTarget(u),this.clear(g,C,L)},animate:function(u){console.warn("THREE.WebGLRenderer: .animate() is now .setAnimationLoop()."),this.setAnimationLoop(u)},getCurrentRenderTarget:function(){return console.warn("THREE.WebGLRenderer: .getCurrentRenderTarget() is now .getRenderTarget()."),this.getRenderTarget()},getMaxAnisotropy:function(){return console.warn("THREE.WebGLRenderer: .getMaxAnisotropy() is now .capabilities.getMaxAnisotropy()."),this.capabilities.getMaxAnisotropy()},getPrecision:function(){return console.warn("THREE.WebGLRenderer: .getPrecision() is now .capabilities.precision."),this.capabilities.precision},resetGLState:function(){return console.warn("THREE.WebGLRenderer: .resetGLState() is now .state.reset()."),this.state.reset()},supportsFloatTextures:function(){return console.warn("THREE.WebGLRenderer: .supportsFloatTextures() is now .extensions.get( 'OES_texture_float' )."),this.extensions.get("OES_texture_float")},supportsHalfFloatTextures:function(){return console.warn("THREE.WebGLRenderer: .supportsHalfFloatTextures() is now .extensions.get( 'OES_texture_half_float' )."),this.extensions.get("OES_texture_half_float")},supportsStandardDerivatives:function(){return console.warn("THREE.WebGLRenderer: .supportsStandardDerivatives() is now .extensions.get( 'OES_standard_derivatives' )."),this.extensions.get("OES_standard_derivatives")},supportsCompressedTextureS3TC:function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTextureS3TC() is now .extensions.get( 'WEBGL_compressed_texture_s3tc' )."),this.extensions.get("WEBGL_compressed_texture_s3tc")},supportsCompressedTexturePVRTC:function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTexturePVRTC() is now .extensions.get( 'WEBGL_compressed_texture_pvrtc' )."),this.extensions.get("WEBGL_compressed_texture_pvrtc")},supportsBlendMinMax:function(){return console.warn("THREE.WebGLRenderer: .supportsBlendMinMax() is now .extensions.get( 'EXT_blend_minmax' )."),this.extensions.get("EXT_blend_minmax")},supportsVertexTextures:function(){return console.warn("THREE.WebGLRenderer: .supportsVertexTextures() is now .capabilities.vertexTextures."),this.capabilities.vertexTextures},supportsInstancedArrays:function(){return console.warn("THREE.WebGLRenderer: .supportsInstancedArrays() is now .extensions.get( 'ANGLE_instanced_arrays' )."),this.extensions.get("ANGLE_instanced_arrays")},enableScissorTest:function(u){console.warn("THREE.WebGLRenderer: .enableScissorTest() is now .setScissorTest()."),this.setScissorTest(u)},initMaterial:function(){console.warn("THREE.WebGLRenderer: .initMaterial() has been removed.")},addPrePlugin:function(){console.warn("THREE.WebGLRenderer: .addPrePlugin() has been removed.")},addPostPlugin:function(){console.warn("THREE.WebGLRenderer: .addPostPlugin() has been removed.")},updateShadowMap:function(){console.warn("THREE.WebGLRenderer: .updateShadowMap() has been removed.")},setFaceCulling:function(){console.warn("THREE.WebGLRenderer: .setFaceCulling() has been removed.")},allocTextureUnit:function(){console.warn("THREE.WebGLRenderer: .allocTextureUnit() has been removed.")},setTexture:function(){console.warn("THREE.WebGLRenderer: .setTexture() has been removed.")},setTexture2D:function(){console.warn("THREE.WebGLRenderer: .setTexture2D() has been removed.")},setTextureCube:function(){console.warn("THREE.WebGLRenderer: .setTextureCube() has been removed.")},getActiveMipMapLevel:function(){return console.warn("THREE.WebGLRenderer: .getActiveMipMapLevel() is now .getActiveMipmapLevel()."),this.getActiveMipmapLevel()}}),Object.defineProperties(cu.prototype,{shadowMapEnabled:{get:function(){return this.shadowMap.enabled},set:function(u){console.warn("THREE.WebGLRenderer: .shadowMapEnabled is now .shadowMap.enabled."),this.shadowMap.enabled=u}},shadowMapType:{get:function(){return this.shadowMap.type},set:function(u){console.warn("THREE.WebGLRenderer: .shadowMapType is now .shadowMap.type."),this.shadowMap.type=u}},shadowMapCullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")}},context:{get:function(){return console.warn("THREE.WebGLRenderer: .context has been removed. Use .getContext() instead."),this.getContext()}},vr:{get:function(){return console.warn("THREE.WebGLRenderer: .vr has been renamed to .xr"),this.xr}},gammaInput:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead."),!1},set:function(){console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead.")}},gammaOutput:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead."),!1},set:function(u){console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead."),this.outputEncoding=u===!0?sr:bn}}}),Object.defineProperties(gc.prototype,{cullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")}},renderReverseSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")}},renderSingleSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")}}}),Object.defineProperties(Rs.prototype,{wrapS:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS},set:function(u){console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS=u}},wrapT:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT},set:function(u){console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT=u}},magFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter},set:function(u){console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter=u}},minFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter},set:function(u){console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter=u}},anisotropy:{get:function(){return console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy},set:function(u){console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy=u}},offset:{get:function(){return console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset},set:function(u){console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset=u}},repeat:{get:function(){return console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat},set:function(u){console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat=u}},format:{get:function(){return console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format},set:function(u){console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format=u}},type:{get:function(){return console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type},set:function(u){console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type=u}},generateMipmaps:{get:function(){return console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps},set:function(u){console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps=u}}}),Object.defineProperties(Mp.prototype,{load:{value:function(u){console.warn("THREE.Audio: .load has been deprecated. Use THREE.AudioLoader instead.");var g=this;return new Uf().load(u,function(C){g.setBuffer(C)}),this}},startTime:{set:function(){console.warn("THREE.Audio: .startTime is now .play( delay ).")}}}),Ld.prototype.getData=function(){return console.warn("THREE.AudioAnalyser: .getData() is now .getFrequencyData()."),this.getFrequencyData()},Wc.prototype.updateCubeMap=function(u,g){return console.warn("THREE.CubeCamera: .updateCubeMap() is now .update()."),this.update(u,g)};var ig={merge:function(u,g,C){var L;console.warn("THREE.GeometryUtils: .merge() has been moved to Geometry. Use geometry.merge( geometry2, matrix, materialIndexOffset ) instead."),g.isMesh&&(g.matrixAutoUpdate&&g.updateMatrix(),L=g.matrix,g=g.geometry),u.merge(g,L,C)},center:function(u){return console.warn("THREE.GeometryUtils: .center() has been moved to Geometry. Use geometry.center() instead."),u.center()}};ll.crossOrigin=void 0,ll.loadTexture=function(u,g,C,L){console.warn("THREE.ImageUtils.loadTexture has been deprecated. Use THREE.TextureLoader() instead.");var K=new hr;K.setCrossOrigin(this.crossOrigin);var ie=K.load(u,C,void 0,L);return g&&(ie.mapping=g),ie},ll.loadTextureCube=function(u,g,C,L){console.warn("THREE.ImageUtils.loadTextureCube has been deprecated. Use THREE.CubeTextureLoader() instead.");var K=new qn;K.setCrossOrigin(this.crossOrigin);var ie=K.load(u,C,void 0,L);return g&&(ie.mapping=g),ie},ll.loadCompressedTexture=function(){console.error("THREE.ImageUtils.loadCompressedTexture has been removed. Use THREE.DDSLoader instead.")},ll.loadCompressedTextureCube=function(){console.error("THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead.")};var ag={createMultiMaterialObject:function(){console.error("THREE.SceneUtils has been moved to /examples/js/utils/SceneUtils.js")},detach:function(){console.error("THREE.SceneUtils has been moved to /examples/js/utils/SceneUtils.js")},attach:function(){console.error("THREE.SceneUtils has been moved to /examples/js/utils/SceneUtils.js")}};typeof __THREE_DEVTOOLS__!="undefined"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:"113"}})),s.ACESFilmicToneMapping=_t,s.AddEquation=W,s.AddOperation=Ne,s.AdditiveBlending=z,s.AlphaFormat=Ca,s.AlwaysDepth=De,s.AlwaysStencilFunc=wl,s.AmbientLight=Rf,s.AmbientLightProbe=ld,s.AnimationClip=Hu,s.AnimationLoader=st,s.AnimationMixer=mm,s.AnimationObjectGroup=fm,s.AnimationUtils=Ys,s.ArcCurve=ci,s.ArrayCamera=$s,s.ArrowHelper=Sp,s.Audio=Mp,s.AudioAnalyser=Ld,s.AudioContext=cm,s.AudioListener=Hf,s.AudioLoader=Uf,s.AxesHelper=tm,s.AxisHelper=function(u){return console.warn("THREE.AxisHelper has been renamed to THREE.AxesHelper."),new tm(u)},s.BackSide=E,s.BasicDepthPacking=Cs,s.BasicShadowMap=0,s.BinaryTextureLoader=function(u){return console.warn("THREE.BinaryTextureLoader has been renamed to THREE.DataTextureLoader."),new an(u)},s.Bone=Qp,s.BooleanKeyframeTrack=Op,s.BoundingBoxHelper=function(u,g){return console.warn("THREE.BoundingBoxHelper has been deprecated. Creating a THREE.BoxHelper instead."),new eh(u,g)},s.Box2=zp,s.Box3=Ss,s.Box3Helper=em,s.BoxBufferGeometry=Vd,s.BoxGeometry=Si,s.BoxHelper=eh,s.BufferAttribute=Bn,s.BufferGeometry=qi,s.BufferGeometryLoader=Bf,s.ByteType=ii,s.Cache=_c,s.Camera=lu,s.CameraHelper=bf,s.CanvasRenderer=function(){console.error("THREE.CanvasRenderer has been removed")},s.CanvasTexture=dh,s.CatmullRomCurve3=fa,s.CineonToneMapping=Ot,s.CircleBufferGeometry=yp,s.CircleGeometry=gp,s.ClampToEdgeWrapping=pt,s.Clock=dm,s.ClosedSplineCurve3=$m,s.Color=Fn,s.ColorKeyframeTrack=Fp,s.CompressedTexture=kp,s.CompressedTextureLoader=Ct,s.ConeBufferGeometry=Lp,s.ConeGeometry=mp,s.CubeCamera=Wc,s.CubeGeometry=Si,s.CubeReflectionMapping=Tn,s.CubeRefractionMapping=on,s.CubeTexture=Tc,s.CubeTextureLoader=qn,s.CubeUVReflectionMapping=rn,s.CubeUVRefractionMapping=wt,s.CubicBezierCurve=Ao,s.CubicBezierCurve3=wa,s.CubicInterpolant=_h,s.CullFaceBack=l,s.CullFaceFront=v,s.CullFaceFrontBack=3,s.CullFaceNone=c,s.Curve=ur,s.CurvePath=$l,s.CustomBlending=ne,s.CylinderBufferGeometry=Pl,s.CylinderGeometry=kd,s.Cylindrical=Cp,s.DataTexture=Ec,s.DataTexture2DArray=ih,s.DataTexture3D=Cl,s.DataTextureLoader=an,s.DecrementStencilOp=7683,s.DecrementWrapStencilOp=34056,s.DefaultLoadingManager=dl,s.DepthFormat=mn,s.DepthStencilFormat=Un,s.DepthTexture=dp,s.DirectionalLight=wh,s.DirectionalLightHelper=Jh,s.DirectionalLightShadow=zc,s.DiscreteInterpolant=Bc,s.DodecahedronBufferGeometry=Au,s.DodecahedronGeometry=Vh,s.DoubleSide=I,s.DstAlphaFactor=ke,s.DstColorFactor=et,s.DynamicBufferAttribute=function(u,g){return console.warn("THREE.DynamicBufferAttribute has been removed. Use new THREE.BufferAttribute().setUsage( THREE.DynamicDrawUsage ) instead."),new Bn(u,g).setUsage(Vs)},s.DynamicCopyUsage=35050,s.DynamicDrawUsage=Vs,s.DynamicReadUsage=35049,s.EdgesGeometry=gh,s.EdgesHelper=function(u,g){return console.warn("THREE.EdgesHelper has been removed. Use THREE.EdgesGeometry instead."),new Fs(new gh(u.geometry),new ss({color:g!==void 0?g:16777215}))},s.EllipseCurve=jr,s.EqualDepth=He,s.EqualStencilFunc=514,s.EquirectangularReflectionMapping=$n,s.EquirectangularRefractionMapping=Zt,s.Euler=de,s.EventDispatcher=jo,s.ExtrudeBufferGeometry=vc,s.ExtrudeGeometry=Ad,s.Face3=Ci,s.Face4=function(u,g,C,L,K,ie,ce){return console.warn("THREE.Face4 has been removed. A THREE.Face3 will be created instead."),new Ci(u,g,C,K,ie,ce)},s.FaceColors=1,s.FileLoader=Se,s.FlatShading=1,s.Float32Attribute=function(u,g){return console.warn("THREE.Float32Attribute has been removed. Use new THREE.Float32BufferAttribute() instead."),new Fr(u,g)},s.Float32BufferAttribute=Fr,s.Float64Attribute=function(u,g){return console.warn("THREE.Float64Attribute has been removed. Use new THREE.Float64BufferAttribute() instead."),new ni(u,g)},s.Float64BufferAttribute=ni,s.FloatType=ar,s.Fog=cl,s.FogExp2=jl,s.Font=jf,s.FontLoader=um,s.FrontFaceDirectionCCW=1,s.FrontFaceDirectionCW=0,s.FrontSide=b,s.Frustum=Yc,s.GammaEncoding=Br,s.Geometry=Fa,s.GeometryUtils=ig,s.GreaterDepth=dn,s.GreaterEqualDepth=gt,s.GreaterEqualStencilFunc=518,s.GreaterStencilFunc=516,s.GridHelper=vf,s.Group=El,s.HalfFloatType=zr,s.HemisphereLight=Nc,s.HemisphereLightHelper=yf,s.HemisphereLightProbe=iu,s.IcosahedronBufferGeometry=ph,s.IcosahedronGeometry=Pc,s.ImageBitmapLoader=zf,s.ImageLoader=Rn,s.ImageUtils=ll,s.ImmediateRenderObject=ym,s.IncrementStencilOp=7682,s.IncrementWrapStencilOp=34055,s.InstancedBufferAttribute=Ff,s.InstancedBufferGeometry=Of,s.InstancedInterleavedBuffer=pf,s.InstancedMesh=ch,s.Int16Attribute=function(u,g){return console.warn("THREE.Int16Attribute has been removed. Use new THREE.Int16BufferAttribute() instead."),new oi(u,g)},s.Int16BufferAttribute=oi,s.Int32Attribute=function(u,g){return console.warn("THREE.Int32Attribute has been removed. Use new THREE.Int32BufferAttribute() instead."),new St(u,g)},s.Int32BufferAttribute=St,s.Int8Attribute=function(u,g){return console.warn("THREE.Int8Attribute has been removed. Use new THREE.Int8BufferAttribute() instead."),new Hn(u,g)},s.Int8BufferAttribute=Hn,s.IntType=jn,s.InterleavedBuffer=eu,s.InterleavedBufferAttribute=yc,s.Interpolant=Iu,s.InterpolateDiscrete=Ra,s.InterpolateLinear=Ye,s.InterpolateSmooth=2302,s.InvertStencilOp=5386,s.JSONLoader=function(){console.error("THREE.JSONLoader has been removed.")},s.KeepStencilOp=No,s.KeyframeTrack=xl,s.LOD=ac,s.LatheBufferGeometry=$h,s.LatheGeometry=fp,s.Layers=Me,s.LensFlare=function(){console.error("THREE.LensFlare has been moved to /examples/js/objects/Lensflare.js")},s.LessDepth=Be,s.LessEqualDepth=Ve,s.LessEqualStencilFunc=515,s.LessStencilFunc=513,s.Light=qo,s.LightProbe=Pd,s.LightShadow=Yu,s.Line=tu,s.Line3=Kf,s.LineBasicMaterial=ss,s.LineCurve=Aa,s.LineCurve3=qs,s.LineDashedMaterial=_p,s.LineLoop=Md,s.LinePieces=1,s.LineSegments=Fs,s.LineStrip=0,s.LinearEncoding=bn,s.LinearFilter=sn,s.LinearInterpolant=Hh,s.LinearMipMapLinearFilter=1008,s.LinearMipMapNearestFilter=1007,s.LinearMipmapLinearFilter=Dr,s.LinearMipmapNearestFilter=yn,s.LinearToneMapping=Ke,s.Loader=X,s.LoaderUtils=Lf,s.LoadingManager=sf,s.LogLuvEncoding=Mi,s.LoopOnce=2200,s.LoopPingPong=2202,s.LoopRepeat=2201,s.LuminanceAlphaFormat=Nt,s.LuminanceFormat=xt,s.MOUSE={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2},s.Material=Wt,s.MaterialLoader=lf,s.Math=Ta,s.MathUtils=Ta,s.Matrix3=Vo,s.Matrix4=Ki,s.MaxEquation=F,s.Mesh=hs,s.MeshBasicMaterial=Jn,s.MeshDepthMaterial=js,s.MeshDistanceMaterial=Sl,s.MeshFaceMaterial=function(u){return console.warn("THREE.MeshFaceMaterial has been removed. Use an Array instead."),u},s.MeshLambertMaterial=Rl,s.MeshMatcapMaterial=vh,s.MeshNormalMaterial=vp,s.MeshPhongMaterial=mu,s.MeshPhysicalMaterial=yh,s.MeshStandardMaterial=od,s.MeshToonMaterial=nu,s.MinEquation=D,s.MirroredRepeatWrapping=Fe,s.MixOperation=Lt,s.MultiMaterial=function(u){return u===void 0&&(u=[]),console.warn("THREE.MultiMaterial has been removed. Use an Array instead."),u.isMultiMaterial=!0,(u.materials=u).clone=function(){return u.slice()},u},s.MultiplyBlending=V,s.MultiplyOperation=at,s.NearestFilter=Ie,s.NearestMipMapLinearFilter=1005,s.NearestMipMapNearestFilter=1004,s.NearestMipmapLinearFilter=Ht,s.NearestMipmapNearestFilter=ct,s.NeverDepth=ht,s.NeverStencilFunc=512,s.NoBlending=N,s.NoColors=O,s.NoToneMapping=ze,s.NormalBlending=A,s.NotEqualDepth=Ze,s.NotEqualStencilFunc=517,s.NumberKeyframeTrack=Kd,s.Object3D=Sn,s.ObjectLoader=Nf,s.ObjectSpaceNormalMap=gs,s.OctahedronBufferGeometry=Hs,s.OctahedronGeometry=du,s.OneFactor=le,s.OneMinusDstAlphaFactor=Le,s.OneMinusDstColorFactor=it,s.OneMinusSrcAlphaFactor=Te,s.OneMinusSrcColorFactor=me,s.OrthographicCamera=Jd,s.PCFShadowMap=x,s.PCFSoftShadowMap=w,s.PMREMGenerator=Ef,s.ParametricBufferGeometry=Ic,s.ParametricGeometry=vl,s.Particle=function(u){return console.warn("THREE.Particle has been renamed to THREE.Sprite."),new sp(u)},s.ParticleBasicMaterial=function(u){return console.warn("THREE.ParticleBasicMaterial has been renamed to THREE.PointsMaterial."),new Eu(u)},s.ParticleSystem=function(u,g){return console.warn("THREE.ParticleSystem has been renamed to THREE.Points."),new Du(u,g)},s.ParticleSystemMaterial=function(u){return console.warn("THREE.ParticleSystemMaterial has been renamed to THREE.PointsMaterial."),new Eu(u)},s.Path=Hl,s.PerspectiveCamera=Js,s.Plane=Wo,s.PlaneBufferGeometry=Xc,s.PlaneGeometry=qc,s.PlaneHelper=jp,s.PointCloud=function(u,g){return console.warn("THREE.PointCloud has been renamed to THREE.Points."),new Du(u,g)},s.PointCloudMaterial=function(u){return console.warn("THREE.PointCloudMaterial has been renamed to THREE.PointsMaterial."),new Eu(u)},s.PointLight=Vc,s.PointLightHelper=gf,s.Points=Du,s.PointsMaterial=Eu,s.PolarGridHelper=bm,s.PolyhedronBufferGeometry=_l,s.PolyhedronGeometry=hh,s.PositionalAudio=Wf,s.PropertyBinding=Wl,s.PropertyMixer=Kh,s.QuadraticBezierCurve=bs,s.QuadraticBezierCurve3=Xs,s.Quaternion=Zo,s.QuaternionKeyframeTrack=xh,s.QuaternionLinearInterpolant=Wh,s.REVISION="113",s.RGBADepthPacking=ko,s.RGBAFormat=dt,s.RGBAIntegerFormat=Ir,s.RGBA_ASTC_10x10_Format=ja,s.RGBA_ASTC_10x5_Format=Na,s.RGBA_ASTC_10x6_Format=sl,s.RGBA_ASTC_10x8_Format=eo,s.RGBA_ASTC_12x10_Format=no,s.RGBA_ASTC_12x12_Format=yo,s.RGBA_ASTC_4x4_Format=ns,s.RGBA_ASTC_5x4_Format=Xo,s.RGBA_ASTC_5x5_Format=qr,s.RGBA_ASTC_6x5_Format=ca,s.RGBA_ASTC_6x6_Format=va,s.RGBA_ASTC_8x5_Format=Ms,s.RGBA_ASTC_8x6_Format=rs,s.RGBA_ASTC_8x8_Format=Ai,s.RGBA_PVRTC_2BPPV1_Format=ua,s.RGBA_PVRTC_4BPPV1_Format=ti,s.RGBA_S3TC_DXT1_Format=Ti,s.RGBA_S3TC_DXT3_Format=mi,s.RGBA_S3TC_DXT5_Format=Li,s.RGBDEncoding=La,s.RGBEEncoding=Pr,s.RGBEFormat=Qt,s.RGBFormat=jt,s.RGBIntegerFormat=Hr,s.RGBM16Encoding=Sa,s.RGBM7Encoding=vi,s.RGB_ETC1_Format=Va,s.RGB_PVRTC_2BPPV1_Format=ha,s.RGB_PVRTC_4BPPV1_Format=tr,s.RGB_S3TC_DXT1_Format=Ri,s.RGFormat=Kn,s.RGIntegerFormat=er,s.RawShaderMaterial=Id,s.Ray=fo,s.Raycaster=Xf,s.RectAreaLight=Xh,s.RedFormat=we,s.RedIntegerFormat=En,s.ReinhardToneMapping=vt,s.RepeatWrapping=Yn,s.ReplaceStencilOp=7681,s.ReverseSubtractEquation=q,s.RingBufferGeometry=ad,s.RingGeometry=Xd,s.Scene=Gn,s.SceneUtils=ag,s.ShaderChunk=bo,s.ShaderLib=Mu,s.ShaderMaterial=zl,s.ShadowMaterial=Zd,s.Shape=Wu,s.ShapeBufferGeometry=Fc,s.ShapeGeometry=Oc,s.ShapePath=Gf,s.ShapeUtils=rd,s.ShortType=_n,s.Skeleton=td,s.SkeletonHelper=Qf,s.SkinnedMesh=Su,s.SmoothShading=2,s.Sphere=po,s.SphereBufferGeometry=qd,s.SphereGeometry=id,s.Spherical=Vp,s.SphericalHarmonics3=cf,s.SphericalReflectionMapping=Et,s.Spline=am,s.SplineCurve=Qo,s.SplineCurve3=Hm,s.SpotLight=qh,s.SpotLightHelper=mf,s.SpotLightShadow=bh,s.Sprite=sp,s.SpriteMaterial=bd,s.SrcAlphaFactor=ye,s.SrcAlphaSaturateFactor=Ue,s.SrcColorFactor=fe,s.StaticCopyUsage=35046,s.StaticDrawUsage=Ua,s.StaticReadUsage=35045,s.StereoCamera=xp,s.StreamCopyUsage=35042,s.StreamDrawUsage=35040,s.StreamReadUsage=35041,s.StringKeyframeTrack=Bp,s.SubtractEquation=B,s.SubtractiveBlending=G,s.TOUCH={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},s.TangentSpaceNormalMap=Co,s.TetrahedronBufferGeometry=Nh,s.TetrahedronGeometry=ro,s.TextBufferGeometry=Ul,s.TextGeometry=al,s.Texture=vo,s.TextureLoader=hr,s.TorusBufferGeometry=Rc,s.TorusGeometry=pp,s.TorusKnotBufferGeometry=Ws,s.TorusKnotGeometry=fs,s.Triangle=ds,s.TriangleFanDrawMode=2,s.TriangleStripDrawMode=1,s.TrianglesDrawMode=0,s.TubeBufferGeometry=Ed,s.TubeGeometry=zh,s.UVMapping=300,s.Uint16Attribute=function(u,g){return console.warn("THREE.Uint16Attribute has been removed. Use new THREE.Uint16BufferAttribute() instead."),new da(u,g)},s.Uint16BufferAttribute=da,s.Uint32Attribute=function(u,g){return console.warn("THREE.Uint32Attribute has been removed. Use new THREE.Uint32BufferAttribute() instead."),new zi(u,g)},s.Uint32BufferAttribute=zi,s.Uint8Attribute=function(u,g){return console.warn("THREE.Uint8Attribute has been removed. Use new THREE.Uint8BufferAttribute() instead."),new kr(u,g)},s.Uint8BufferAttribute=kr,s.Uint8ClampedAttribute=function(u,g){return console.warn("THREE.Uint8ClampedAttribute has been removed. Use new THREE.Uint8ClampedBufferAttribute() instead."),new fi(u,g)},s.Uint8ClampedBufferAttribute=fi,s.Uncharted2ToneMapping=Ft,s.Uniform=qf,s.UniformsLib=Wi,s.UniformsUtils=Hc,s.UnsignedByteType=Kr,s.UnsignedInt248Type=wi,s.UnsignedIntType=ln,s.UnsignedShort4444Type=Jr,s.UnsignedShort5551Type=bi,s.UnsignedShort565Type=hi,s.UnsignedShortType=xn,s.VSMShadowMap=_,s.Vector2=Lr,s.Vector3=Kt,s.Vector4=_o,s.VectorKeyframeTrack=Yh,s.Vertex=function(u,g,C){return console.warn("THREE.Vertex has been removed. Use THREE.Vector3 instead."),new Kt(u,g,C)},s.VertexColors=2,s.VideoTexture=Hd,s.WebGLCubeRenderTarget=Sc,s.WebGLMultisampleRenderTarget=Fl,s.WebGLRenderTarget=Rs,s.WebGLRenderTargetCube=function(u,g,C){return console.warn("THREE.WebGLRenderTargetCube( width, height, options ) is now WebGLCubeRenderTarget( size, options )."),new Sc(u,C)},s.WebGLRenderer=cu,s.WebGLUtils=_s,s.WireframeGeometry=hp,s.WireframeHelper=function(u,g){return console.warn("THREE.WireframeHelper has been removed. Use THREE.WireframeGeometry instead."),new Fs(new hp(u.geometry),new ss({color:g!==void 0?g:16777215}))},s.WrapAroundEnding=Gt,s.XHRLoader=function(u){return console.warn("THREE.XHRLoader has been renamed to THREE.FileLoader."),new Se(u)},s.ZeroCurvatureEnding=$t,s.ZeroFactor=re,s.ZeroSlopeEnding=ft,s.ZeroStencilOp=0,s.sRGBEncoding=sr,Object.defineProperty(s,"__esModule",{value:!0})},o(typeof r=="object"&&e!==void 0?r:(n=n||self).THREE={})},{}],20:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MrxDbgUtils=void 0;var n,o=t("three"),s=t("./Operate/MxEntSelJig"),c=t("./Operate/MxJigCmdManager"),l=t("./UI/MxUiVue"),v=t("./Operate/MrxDbgUiPrPoint"),x=t("./Operate/MrxDbgUiPrBase"),w=t("./MxThreeJS");(n=r.MrxDbgUtils||(r.MrxDbgUtils={})).findEntAtPoint=function(_,b,E,I,O){return E===void 0&&(E=null),I===void 0&&(I=!0),new Promise(function(N){for(var A=_.findMxEntityAtPoint(b,I,O),z=[],G=A.length,V=0;V<G;V++){var ne=A[V];if(!E||!E.type||E.type==ne.getTypeName()){var W=ne.objectId();z.push(W)}}N(z)})},n.selectEnt=function(_,b){return b===void 0&&(b=null),new Promise(function(E){var I=new s.MxEntSelJig;I.disableAllTrace(),I.setDynamicInputType(c.MxJigCmdManager.DynamicInputType.kDynTip),_&&l.MxUiVue.acutPrintf(_),I.filter=b,I.callRet=function(O){E(O)},c.MxJigCmdManager.runCmd(I)})},n.getCorner=function(_,b,E,I,O){return E===void 0&&(E=!1),O===void 0&&(O=!1),new Promise(function(N){var A=new v.MrxDbgUiPrPoint;A.setMessage(b),E?(A.setDynamicInputType(c.MxJigCmdManager.DynamicInputType.kDynTip),A.disableAllTrace()):(A.setDynamicInputType(c.MxJigCmdManager.DynamicInputType.kXYCoordInput),O&&A.disableAllTrace());var z=new x.McEdGetPointWorldDrawObject;z.setDraw(function(G,V){var ne=new o.Vector3(_.x,G.y,G.z),W=new o.Vector3(G.x,_.y,G.z),B=[];B.push(_),B.push(ne),B.push(G),B.push(W),B.push(_);var q=null,D=65280;if(E){if(G.x>_.x)q=w.MxThreeJS.createLines(B,16777215),D=255;else{var F=V.getMcEdJig().getMxObject().viewCoordLong2Cad(3);q=w.MxThreeJS.createDashedLines(B,16777215,2*F,F)}var re=[];re.push(_),re.push(ne),re.push(G),re.push(_),re.push(G),re.push(W);var le=w.MxThreeJS.createTriangle(re,D,.27);V.drawEntity(le,30),V.drawEntity(q,31)}else q=w.MxThreeJS.createLines(B,16777215),V.drawEntity(q,31)}),A.setUserDraw(z),A.go(function(G){I&&I({status:G,detailedResult:A.getDetailedResult()}),G!=0?N(null):(A.clearLastInputPoint(),N(A.value()))})})}},{"./MxThreeJS":36,"./Operate/MrxDbgUiPrBase":44,"./Operate/MrxDbgUiPrPoint":46,"./Operate/MxEntSelJig":49,"./Operate/MxJigCmdManager":53,"./UI/MxUiVue":63,three:19}],21:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MxDrawCommands=void 0;var n=t("./MxFun"),o=t("./MxType"),s=t("./Operate/MxIntelliSelect"),c=t("./Operate/MxJigCmdManager"),l=t("./MxWindowsEvent");function v(O){if(O!=null&&O.pt1!=null){var N=new s.MxIntelliSelectJig(O.pt1);N.setDisableDynInput(!0),N.setDisableOsnap(!0);var A=O.pt1,z=n.MxFun.getCurrentMx();z.isMultipleSelect||z.getMcObject().isValid()&&z.getMcObject().getGripManager().clearAll(),N.doPointSelect(n.MxFun.getCurrentMx(),O.pt1,function(G){if(JSON.parse(G).lCount!=0&&z.isMultipleSelect){var V=l.MxWindowsEvent.getCurrentMousePostion();if(z.screenCoord2Current(V.x,V.y,0).distanceTo(A)<z.viewCoordLong2Cad(10)){var ne=c.MxJigCmdManager.getCurCmd();ne&&ne.getTypeName()=="MxIntelliSelect"&&c.MxJigCmdManager.stopCmd(c.MxJigCmdManager.DetailedResult.kUnknown)}}}),z.isMultipleSelect&&c.MxJigCmdManager.runCmd(N)}}function x(O){O!=null&&O.grips!=null&&O.ids!=null&&n.MxFun.getCurrentMx().getMcObject().getGripManager().gripEditImp(O)}function w(O){if(O!=null&&O.pt!=null){var N=n.MxFun.getCurrentMx(),A=O.pt;if(!N.getMxDatabase().getGripManager().doPointSelect(A)){var z=!0;if(N.isValidMcObject()&&N.getMcObject().getGripManager().doPointSelect(A)&&(z=!1),z&&N.isMultipleSelect){var G=N.screenCoord2Current(A.x,A.y,0),V=new s.MxIntelliSelectJig(G);V.setDisableDynInput(!0),V.setDisableOsnap(!0),c.MxJigCmdManager.runCmd(V)}}}}function _(O){O!=null&&O.grips!=null&&O.ents!=null&&n.MxFun.getCurrentMx().getMxDatabase().getGripManager().gripEditImp(O)}function b(){n.MxFun.getCurrentMx().getMcObject().undo()}function E(){n.MxFun.getCurrentMx().getMcObject().redo()}function I(){n.MxFun.getCurrentMx().startPanCommand()}(r.MxDrawCommands||(r.MxDrawCommands={})).registerCommand=function(){n.MxFun.addCommand("Mx_IntelliSel",v,o.MxType.MxCommandFlag.MCRX_CMD_TRANSPARENT|o.MxType.MxCommandFlag.MCRX_CMD_NO_UNDO_MARKER),n.MxFun.addCommand("McDraw_GripEdit",x,o.MxType.MxCommandFlag.MCRX_CMD_TRANSPARENT),n.MxFun.addCommand("Mx_FrontEndWebpageIntelliSel",w,o.MxType.MxCommandFlag.MCRX_CMD_TRANSPARENT|o.MxType.MxCommandFlag.MCRX_CMD_NO_UNDO_MARKER),n.MxFun.addCommand("Mx_FrontEndWebpageGripEdit",_,o.MxType.MxCommandFlag.MCRX_CMD_TRANSPARENT|o.MxType.MxCommandFlag.MCRX_CMD_NO_UNDO_MARKER),n.MxFun.addCommand("Mx_Undo",b,o.MxType.MxCommandFlag.MCRX_CMD_NO_UNDO_MARKER),n.MxFun.addCommand("Mx_Redo",E,o.MxType.MxCommandFlag.MCRX_CMD_NO_UNDO_MARKER),n.MxFun.addCommand("Mx_Pan",I,o.MxType.MxCommandFlag.MCRX_CMD_NO_UNDO_MARKER)}},{"./MxFun":27,"./MxType":38,"./MxWindowsEvent":40,"./Operate/MxIntelliSelect":51,"./Operate/MxJigCmdManager":53}],22:[function(t,e,r){var n;Object.defineProperty(r,"__esModule",{value:!0}),r.MxDrawData=void 0,(n=r.MxDrawData||(r.MxDrawData={})).m_isEnableIntelliSelect=!0,n.m_isEnableGripEidt=!0,n.m_isForbiddenDynInput=!1,n.m_isMultipleSelect=!1,n.m_isAutoResetRenderer=!1,n.m_isCorrectLargeCoordinates=!0,n.m_isRequestHeaderCacheControl=!1,n.m_dGridWidth=16,n.m_isMapBox=!1,n.getCursorWidthPixels=function(){return 16},n.setIniset=function(o){o.EnableIntelliSelect!==void 0&&typeof o.EnableIntelliSelect=="boolean"&&(n.m_isEnableIntelliSelect=o.EnableIntelliSelect),o.EnableGripEidt!==void 0&&typeof o.EnableGripEidt=="boolean"&&(n.m_isEnableGripEidt=o.EnableGripEidt),o.ForbiddenDynInput!==void 0&&typeof o.ForbiddenDynInput=="boolean"&&(n.m_isForbiddenDynInput=o.ForbiddenDynInput),o.multipleSelect!==void 0&&typeof o.multipleSelect=="boolean"&&(n.m_isMultipleSelect=o.multipleSelect),o.autoResetRenderer!==void 0&&typeof o.autoResetRenderer=="boolean"&&(n.m_isAutoResetRenderer=o.autoResetRenderer),o.correctLargeCoordinates!==void 0&&typeof o.correctLargeCoordinates=="boolean"&&(n.m_isCorrectLargeCoordinates=o.correctLargeCoordinates),o.requestHeaderCacheControl!==void 0&&typeof o.requestHeaderCacheControl=="boolean"&&(n.m_isRequestHeaderCacheControl=o.requestHeaderCacheControl),o.MapBox!==void 0&&typeof o.MapBox=="boolean"&&(n.m_isMapBox=o.MapBox)}},{}],23:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MxDrawObject=r.IniSetName=r.MxRunMode=void 0;var n,o,s,c=t("three"),l=t("./MxFun"),v=t("./View/MxBrowseLayerData"),x=t("./View/MxBrowseDisplay"),w=t("./MxNetData"),_=t("./MxNetData"),b=t("./MxManager"),E=t("./MxSystemVariable"),I=t("./MxLocalFileLoad"),O=t("./Operate/MxDrawObjectOsnap"),N=t("./View/MxDbDatabase"),A=t("./View/MxDrawMapBox"),z=t("./MxDrawObjectEvent"),G=t("./View/MxDbEntityGrip"),V=t("./cpp/McDrawObject"),ne=t("./UI/MxUiVue"),W=t("./MxDrawData");(o=n=r.MxRunMode||(r.MxRunMode={}))[o.kBrowse=1]="kBrowse",o[o.kCPPMxCAD=4]="kCPPMxCAD",(s=r.IniSetName||(r.IniSetName={})).kEnableOsnapFunction="EnableOsnapFunction";var B=(q.prototype.mapBoxRender=function(D,F,re){this.mcObject.updateDisplayMapBox(F),re||(this.camera.projectionMatrix=F,this.renderer.autoClear=!1,this.renderer.state.reset(),this.secenView&&this.renderer.render(this.secenView,this.cameraView),this.renderer.render(this.scene,this.camera),this._callCreateCanvasImageData!=null&&(this._callCreateCanvasImageData(this.renderer.domElement.toDataURL("image/png")),this._callCreateCanvasImageData=void 0)),this.callEvent("render",this.renderer)},q.prototype.mapBoxInitThreeJSObject=function(D,F,re,le){this.scene=D,this.camera=F,this.renderer=re,this.controls=le},q.prototype.getMxDrawThreeJs=function(){return this.mxdrawThreeJS},q.prototype.setPointMultipleSelect=function(D){this.isPointMultipleSelect=D},q.prototype.pointMultipleSelect=function(){return this.isPointMultipleSelect},q.prototype.getMcObject=function(){return this.mcObject},q.prototype.getSysVarLong=function(D){return this.mcObject.isValid()?this.mcObject.getSysVarLong(D):this.m_sysVariable.getSysVarNumber(D)},q.prototype.getSysVarDouble=function(D){return this.mcObject.isValid()?this.mcObject.getSysVarDouble(D):this.m_sysVariable.getSysVarNumber(D)},q.prototype.getSysVarPoint=function(D){return this.mcObject.isValid()?this.mcObject.getSysVarPoint(D):this.m_sysVariable.getSysVarPoint(D)},q.prototype.getCAD2DocMatrix=function(){return this._cad2Doc},q.prototype.isValidMcObject=function(){return this.mcObject.isValid()},q.prototype.getId=function(){return this.id},q.prototype.getEventManager=function(){return this.eventManager},q.prototype.setCurrentLoadUrl=function(D){this._sCurrentLoadURL=D},q.prototype.getCurrentLoadUrl=function(){return this._sCurrentLoadURL},q.prototype.isWebgl2=function(){return!(!this._rendererParam||this._rendererParam.retver!="webgl2")},q.prototype.getMxDatabase=function(){return this.m_mxDatabase},q.prototype.updateCanvasSize=function(){this._onResizeFun&&this._onResizeFun()},q.prototype.addMxEntity=function(D){return this.m_mxDatabase.addMxEntity(D)},q.prototype.getMxEntity=function(D){return this.m_mxDatabase.getEntity(D)},q.prototype.getMxEntityUserObject=function(D){var F=this.getMxEntity(D);return F?F.getUserObject():null},q.prototype.eraseAllMxEntity=function(){this.m_mxDatabase.eraseAllEntity()},q.prototype.eraseMxEntity=function(D){var F=this.m_mxDatabase.getEntity(D);return!!F&&F.erase()},q.prototype.getAllMxEntity=function(){var D=[];return this.m_mxDatabase.getAllEntity().forEach(function(F){F&&D.push(F.getUserObject())}),D},q.prototype.getMxAllSelect=function(){var D=this.m_mxDatabase.getSelectManager().getAllSelect(),F=this.m_mxDatabase.getGripManager().getAllSelect(),re=new Set;return D.forEach(function(le){re.add(le)}),F.forEach(function(le){re.has(le)||D.push(le)}),D},q.prototype.getPrvCommandSelect=function(){return this.m_mxDatabase.getSelectManager().getPrvCommandSelect()},q.prototype.getMxCADAllSelect=function(){return this.mcObject.isValid()?this.mcObject.getGripManager().getAllSelect():[]},q.prototype.getPrvCommandMxCADSelect=function(){return this.mcObject.isValid()?this.mcObject.getGripManager().getPrvCommandSelect():[]},q.prototype.addMxCurrentSelect=function(D,F,re){return F===void 0&&(F=!0),re===void 0&&(re=!0),this.m_mxDatabase.getGripManager().addSelect(D,F,re)},q.prototype.addMxCADCurrentSelect=function(D,F,re){return F===void 0&&(F=!0),re===void 0&&(re=!0),!!this.mcObject.isValid()&&this.mcObject.getGripManager().addSelect(D,F,re)},q.prototype.fireSelectChange=function(D){if(D){if(this.mcObject.isValid())return this.mcObject.getGripManager().fireSelectChange()}else this.m_mxDatabase.getGripManager().fireMxEntitySelectChange()},q.prototype.clearMxCurrentSelect=function(){var D=this.m_mxDatabase.clearMxCurrentSelect();return this.mcObject.isValid()&&this.mcObject.getGripManager().clearAll(),D},q.prototype.addViewObject=function(D){this.secenView?this.threejsselectObjectsView.add(D):console.log("this.secenView is null")},q.prototype.removeViewObject=function(D){l.MxFun.removeThreejsObject(D,this.threejsselectObjectsView)},q.prototype.setOtherRefFile=function(D){this._tzDwgStaticFile=D},q.prototype.setRequestHeader=function(D){this._requestHeader=D},q.prototype.initZoomW=function(D,F){this._initZoomwCoordPt1=D.clone(),this._initZoomWCoordPt2=F.clone()},q.prototype.setMouseRightRotate=function(D){this._mouseRightRotate=D,this.controls!=null&&(this.controls.mouseButtons.RIGHT=D?c.MOUSE.ROTATE:-1)},q.prototype.setZoomSpeed=function(D){var F=this.controls.zoomSpeed;return this.controls.zoomSpeed=D,F},q.prototype.resetRenderer=function(){this.renderer.info.reset()},q.prototype.getRenderer=function(){return this.renderer},q.prototype.isPaningCommand_call=function(){return this.bakControls!=null},q.prototype.startPanCommand_call=function(){this.bakControls={},this.bakControls.LEFT=this.controls.mouseButtons.LEFT,this.bakControls.RIGHT=this.controls.mouseButtons.RIGHT,this.bakControls.MIDDLE=this.controls.mouseButtons.MIDDLE,this.controls.mouseButtons.LEFT=c.MOUSE.PAN,this._mouseRightRotate?this.controls.mouseButtons.RIGHT=c.MOUSE.ROTATE:this.controls.mouseButtons.RIGHT=-1,this.controls.mouseButtons.MIDDLE=1,ne.MxUiVue.setCursorType(ne.MxUiVue.CursorType.kPan)},q.prototype.endPanCommand_call=function(){this.bakControls&&(this.controls.mouseButtons.LEFT=this.bakControls.LEFT,this.controls.mouseButtons.RIGHT=this.bakControls.RIGHT,this.controls.mouseButtons.MIDDLE=this.bakControls.MIDDLE,this.bakControls=void 0,ne.MxUiVue.setCursorType(ne.MxUiVue.CursorType.kNormal))},q.prototype.isPaningCommand=function(){return this.mxdrawThreeJS.isPaningCommand()},q.prototype.startPanCommand=function(){this.mxdrawThreeJS.startPanCommand()},q.prototype.endPanCommand=function(){this.mxdrawThreeJS.endPanCommand()},q.prototype.setMouseMiddlePan=function(D){this._isMouseMiddlePan=typeof D=="boolean"?D?1:0:D,this.controls!=null&&(this._isMouseMiddlePan==1?(this.controls.mouseButtons.LEFT=-1,this.controls.mouseButtons.RIGHT=-1,this.controls.mouseButtons.MIDDLE=c.MOUSE.PAN):this._isMouseMiddlePan==2?(this.controls.mouseButtons.LEFT=c.MOUSE.PAN,this.controls.mouseButtons.RIGHT=-1,this.controls.mouseButtons.MIDDLE=c.MOUSE.PAN):(this.controls.mouseButtons.LEFT=c.MOUSE.PAN,this._mouseRightRotate?this.controls.mouseButtons.RIGHT=c.MOUSE.ROTATE:this.controls.mouseButtons.RIGHT=-1,this.controls.mouseButtons.MIDDLE=1))},q.prototype.resetThreeJSControls=function(){this.controls&&(this.controls.saveState(),this.controls.reset())},q.prototype.enableZoom=function(D){this.controls!=null&&(this.controls.enableZoom=D)},q.prototype.enablePan=function(D){this.controls!=null&&(this.controls.enablePan=D)},q.prototype.getOrbitControls=function(){return this.controls},q.prototype.enableViewControls=function(D){this.controls.enabled=D},q.prototype.initRunMode=function(D){this._isCreate?console.log("iniRunMode failed,mxobject already created"):this._runMode=D},q.prototype.getRunMode=function(){return this._runMode},q.prototype.setStaticLocalLoad=function(D){this._isStaticLocalLoad=D},q.prototype.isStaticLocalLoad=function(){return this._isStaticLocalLoad},q.prototype.setStaticLocalLoadPath=function(D){this._staticLocalLoadPath=D},q.prototype.on=function(D,F){if(this._event[D])if(this._event[D]instanceof Array)this._event[D].includes(F)||this._event[D].push(F);else{var re=this._event[D];if(re==F)return;this._event[D]=[],this._event[D].push(re),this._event[D].push(F)}else this._event[D]=F},q.prototype.addEvent=function(D,F){this.on(D,F)},q.prototype.addControlsEvent=function(D,F,re){return re===void 0&&(re=!1),this.eventManager.addEventListener(D,F,re)},q.prototype.removeEvent=function(D){this._event[D]=void 0},q.prototype.removeEventFuction=function(D,F){if(this._event[D]){if(this._event[D]instanceof Array){var re=this._event[D].indexOf(F);if(re!=-1)return this._event[D].splice(re,1),this._event[D].length==0&&(this._event[D]=void 0),!0}else if(this._event[D]==F)return!(this._event[D]=void 0)}return!1},q.prototype.sysVariable=function(){return this.m_sysVariable},q.prototype.setIniset=function(D){this.m_iniSet=D},q.prototype.getInisetValue=function(D){return this.m_iniSet[D]},q.prototype.getViewColor=function(){return this._viewcolor},q.prototype.isWhiteViewColor=function(){return this._viewcolor==16777215},q.prototype.initUserLoginData=function(D,F){this._userIdentitySign=D,this._userRandomToken=F},q.prototype.initRendererParam=function(D){this._rendererParam=D},q.prototype.getRendererParam=function(){return this._rendererParam},q.prototype.automaticInversionColor=function(D){return this._viewcolor!=16777215||D!=16777215?D:0},q.prototype.automaticInversionColor2=function(D){return this._viewcolor==16777215&&(16777215&D)==16777215?4278190080&D:D},q.prototype.setViewColor=function(D){this._viewcolor=D,this._runMode!=n.kCPPMxCAD&&this.scene!=null&&(this.scene.background=new c.Color(D))},q.prototype.zoomScale=function(D,F){this.mxdrawThreeJS.zoomScale(D,F)},q.prototype.setViewAngle=function(D){this.mxdrawThreeJS.setViewAngle(D)},q.prototype.zoomW=function(D,F,re,le){this.mxdrawThreeJS.zoomW(D,F,re,le)},q.prototype.zoomCenter=function(D,F,re){this.mxdrawThreeJS.zoomCenter(D,F,re)},q.prototype.getViewAngle=function(){return this._viewangle},q.prototype.callInitCompleteEvent=function(){this.callEvent("loadComplete")},q.prototype.callInitObjectEvent=function(){this.callEvent("initObject")},q.prototype.callInitSceneEvent=function(D,F,re){var le=this._event.initScene;if(!le)return 0;if(le instanceof Array){var fe=0;return le.forEach(function(me){fe=me(D,F,re)}),fe}return le(D,F,re)},q.prototype.callOpenFileComplete=function(D,F){F===void 0&&(F=0);try{var re=this._event.openFileComplete;if(!re)return;re instanceof Array?re.forEach(function(le){le(D,F)}):re(D,F)}catch(le){throw console.log(le),le}},q.prototype.hasEvent=function(D){return this._event[D]!=null},q.prototype.regenAllMxDbEntity=function(){return this.m_mxDatabase.regenAllMxDbEntity()},q.prototype.callEvent=function(D,F){try{var re=this._event[D];if(!re)return!1;if(re instanceof Array){var le=!1;return re.forEach(function(fe){le=fe(F)}),le}return re(F)}catch(fe){throw console.log(fe),fe}},q.prototype.callViewChange=function(){this.onViewChange(),this.callEvent("viewchange")},q.prototype.userLoginResult=function(D){this.callEvent("userLoginResult",D)},q.prototype.serverReturn=function(D){var F=JSON.parse(D);this.callEvent("serverReturn",F)},q.prototype.openFileResult=function(D){JSON.parse(D).linkServer||console.log("link mx serverobj error"),this.callEvent("openFileResult",D)},q.prototype.xzSize=function(D){var F=this._devicePixelRatio;if(F-1<=1e-4&&-1e-4<=F-1)return D;for(var re=9999999,le=D,fe=0,me=D;fe<100;fe++){if((Te=(ye=me*F)-Math.floor(ye))<=.001)return me;Te<re&&(re=Te,le=me),me+=1}for(me=D;fe<100;fe++){var ye,Te;if((Te=(ye=me*F)-Math.floor(ye))<=.001)return me;Te<re&&(re=Te,le=me),--me}return le},q.prototype.setSize=function(D,F){this._viewWidth=D,this._viewHeight=F,this._userCanvas!=null&&(this._userCanvas.width=D,this._userCanvas.height=F,this._userCanvas.style.width=D+"px",this._userCanvas.style.height=F+"px"),this.onResizeImp(),this.updateDisplay()},q.prototype.getCurrentColor=function(){return this._color},q.prototype.setCurrentColor=function(D){this._color=D},q.prototype.call=function(D,F,re){this._net.getSend().CallServerJS(D,F,re)},q.prototype.zoomAll=function(){this._is2d&&this.call("getDatabaseBoundHelp",'{"isBackground":1}',function(D){if(D.length!=0){var F=JSON.parse(D);this.zoomW(new c.Vector3(F[0],F[1],0),new c.Vector3(F[2],F[3],0))}})},q.prototype.getViewCenterDocCoord=function(){return this._userCanvas!=null?this.screenCoord2Current(.5*this._userCanvas.clientWidth,.5*this._userCanvas.clientHeight,0):this.screenCoord2Current(.5*this._viewWidth,.5*this._viewHeight,0)},q.prototype.closeWebSocket=function(){this._net.closeWebSocket()},q.prototype.findMxEntityAtPoint=function(D,F,re){!F&&F!==void 0||(D=this.currentCoord2Screen(D.x,D.y,0));var le=[],fe=this.m_mxDatabase.getIntersectObjects(D);if(fe.length==0)return le;var me=new Map;return fe.forEach(function(ye){var Te=G.MxGetMxDbEntitForThreeJsObject(ye.object);if(Te){var ke=Te.objectId();if(!me.has(ke)){if(re){var Le=G.MxGetWordDrawxDataForThreeJsObject(ye.object);Le&&re(ke,Le)}me.set(ke,Te.getUserObject())}}}),me.forEach(function(ye){le.push(ye)}),le},q.prototype.isCppMxCAD=function(){return this._runMode==n.kCPPMxCAD},q.prototype.loadMxCADImage=function(D,F){var re=this;if(this.mcObject.isValid()){var le=D;le.lastIndexOf("/")!=-1&&(le=le.substring(le.lastIndexOf("/")+1).toLowerCase()),this.mcObject.getTextureManager().loadImage(D,le,function(fe,me){fe?(re.mcObject.getTextureManager().createOpenGLTexture(D),F(me)):F(void 0)})}else F(void 0)},q.prototype.onLoad=function(D){if(this._runMode==n.kCPPMxCAD)this.callInitCompleteEvent();else if(this._isStaticLocalLoad)this._net=new _.MxNet,this._net.init(this,!1),0<this._openFile.length&&(this._staticLocalNet=new I.MxLocalDwgFileLoad(this._net),this._staticLocalNet.load(encodeURIComponent(this._staticLocalLoadPath),encodeURIComponent(this._openFile)));else if(this._openFile.length==0)this.callInitCompleteEvent(),this.callOpenFileComplete(0);else if(this._net=new _.MxNet,this._net.init(this,!1),this._staticNet=new _.MxHFileLoad(this._net),this._staticNet.setRequestHeader(this._requestHeader),this._staticNet.setUrlParam(D),this._staticNet.load(this._openFile,this._staticLoadingOpenFiles),this._tzDwgStaticFile&&0<this._tzDwgStaticFile.length){var F=new _.MxNet;F.init(this,!1),this._extRefManager.createTzDwgExternalReferences(99999),F.setCurrentDatabaseId(99999),this._staticLoadTzNet=new _.MxHFileLoad(F),this._staticLoadTzNet.setShowloading(!1),this._staticLoadTzNet.setRequestHeader(this._requestHeader),this._staticLoadTzNet.load(this._tzDwgStaticFile,[])}},q.prototype.stopAllLoading=function(){this._staticNet&&this._staticNet.stopAllLoading()},q.prototype.getStaticNet=function(){return this._staticNet},q.prototype.isStaticFileNet=function(){return!this._isStaticLocalLoad&&this._staticNet!=null},q.prototype.getStaticLocalNet=function(){return this._staticLocalNet},q.prototype.getStaticLoadTzNet=function(){return this._staticLoadTzNet},q.prototype.getViewWidth=function(){return this._userCanvas!=null?this._userCanvas.clientWidth:this._viewWidth},q.prototype.getViewHeight=function(){return this._userCanvas!=null?this._userCanvas.clientHeight:this._viewHeight},q.prototype.makeCurrent=function(){b.MxManager.setCurrentMx(this)},q.prototype.createCanvasImageData=function(D,F){var re=this,le=0,fe=0,me=!1;F&&F.width&&F.height&&(le=this.getViewWidth(),fe=this.getViewHeight(),me=!0,this.setSize(F.width,F.height)),this._callCreateCanvasImageData=function(ye){me&&re.setSize(le,fe),D(ye)},this.updateDisplay()},q.prototype.addObject=function(D){this.threejsselectObjects.add(D)},q.prototype.removeAllSelectObject=function(){for(;this.threejsselectObjects.children.length;)this.threejsselectObjects.remove(this.threejsselectObjects.children[0])},q.prototype.removeObject=function(D){this.threejsselectObjects.remove(D)},q.prototype.render=function(){this.secenView?(this.mcObject.updateDisplay()?(this.renderer.autoClear=!1,this.renderer.state.reset()):this.renderer.autoClear=!0,this.renderer.render(this.secenView,this.cameraView),this.renderer.autoClear=!1):this.mcObject.updateDisplay()?(this.renderer.autoClear=!1,this.renderer.state.reset()):this.renderer.autoClear=!0,this.renderer.render(this.scene,this.camera),this._callCreateCanvasImageData!=null&&(this._callCreateCanvasImageData(this.renderer.domElement.toDataURL("image/png")),this._callCreateCanvasImageData=void 0),this.callEvent("render",this.renderer)},q.prototype.updateDisplay=function(D){D===void 0&&(D=!1),this.mxdrawThreeJS.updateDisplay(D)},q.prototype.isRenderLoop=function(){return this._isAnimation},q.prototype.renderLoop=function(D){D===void 0&&(D=!0),this._isAnimation=D,this.updateDisplay()},q.prototype.updateDisplayImplement=function(D){D===void 0&&(D=!1);var F=this,re=function(){F.m_mxDatabase.upDirtyDisplay(),F._isAnimation?(F._isAnimationStarting=!0,requestAnimationFrame(re)):F._isWaiteCount=0,F.render()};D!==!0?this._isAnimationStarting||(this._isAnimation?requestAnimationFrame(re):((5<this._isWaiteCount||this._isWaiteCount<0)&&(this._isWaiteCount=0),this._isWaiteCount<=0&&requestAnimationFrame(re),this._isWaiteCount++)):re()},q.prototype.gotoLayoutOld=function(D){D=="Modle"&&(D="");var F=this._openFile;for(var re in this._iniParam)(ye=(me=this._iniParam[re])[0])=="srcname"&&(F=me[1]);var le={},fe="";for(var re in this._iniParam){var me,ye;if(le[ye=(me=this._iniParam[re])[0]]==null){le[ye]=!0;var Te=me[1];if(ye=="file"){if(Te=F,0<D.length){var ke=Te.substring(Te.lastIndexOf(".")+1);Te=Te.substring(0,Te.lastIndexOf("."))+"%23"+D+"%23."+ke}}else if(ye=="srcname")continue;fe.length==0?fe=ye+"="+Te+"&srcname="+F:fe+="&"+ye+"="+Te}}var Le=l.MxFun.getLocationPageUrl()+"?"+fe;window.location.href=Le},q.prototype.gotoLayout=function(D){var F=!1,re=!this.isStaticFileNet();for(var le in this._iniParam)if((Le=this._iniParam[le])[0]=="dwgdir"){F=!0;break}if(F||re)this.gotoLayoutOld(D);else{D=="Model"&&(D="");var fe=this._openFile;if(!fe)return;var me=fe.lastIndexOf(".dwg");if(me===void 0||me===-1)return;if((fe=fe.substring(0,me))[fe.length-1]=="#"){var ye=fe.substring(0,fe.length-1),Te=ye.lastIndexOf("#");Te!==void 0&&Te!==-1&&(fe=ye.substring(0,Te))}0<D.length?fe=fe+"#"+D+"#.dwg.mxb1.wgh":fe+=".dwg.mxb1.wgh";var ke={};for(var le in this._iniParam){var Le,et=(Le=this._iniParam[le])[0];if(ke[et]==null){ke[et]=!0;var it=Le[1];et!="file"&&et!="srcname"&&(fe+="&"+et+"="+it)}}var Ue=l.MxFun.getLocationPageUrl()+"?file="+fe;window.location.href=encodeURI(Ue)}},q.prototype.addInitParam=function(D,F){var re=new Array;re.push(D),re.push(F),this._iniParam.push(re)},q.prototype.openFile=function(D,F){if(F===void 0&&(F=""),!this._isCreate)return console.log("mx: openFile Fialed mxasser(_isCreate == false)"),!1;if(this.stopAllLoading(),D.length==0)return!1;this.reInit(),this._devicePixelRatio=window.devicePixelRatio,D instanceof Array?(this._openFile=D[0],this._staticLoadingOpenFiles=D):this._openFile=D,this._openFileExtName=this._openFile.substring(this._openFile.lastIndexOf(".")+1),this._iniParam=[],this._initZoomwCoordPt1=null,this._initZoomWCoordPt2=null;var re=new Array;return re.push("file"),re.push(this._openFile),this._iniParam.push(re),this.onLoad(F),!0},q.prototype.updateCameraDisplayRange=function(D,F,re){this.mxdrawThreeJS.updateCameraDisplayRange(D,F,re)},q.prototype.clearAllObject=function(){this.reInit()},q.prototype.newFile=function(D,F,re,le){if(!this._isCreate)return console.log("mx: openFile Fialed mxasser(_isCreate == false)"),!1;var fe,me;if(me=D instanceof Object&&F instanceof Object?(fe=D,F):(fe=new c.Vector3(D,F,0),new c.Vector3(re,le,0)),fe.x>me.x){var ye=fe.x;fe.x=me.x,me.x=ye}if(fe.y>me.y){var Te=fe.y;fe.y=me.y,me.y=Te}this.reInit(),this._devicePixelRatio=window.devicePixelRatio,this._openFile="",this._openFileExtName="dwg",this._iniParam=[],this._initZoomwCoordPt1=null,this._initZoomWCoordPt2=null;var ke=new c.Matrix4;ke.identity(),this.intiDoc2Wold(ke),this.initCAD2Doc(ke),this.initializingObjectMatrix(),this.mxdrawThreeJS.updateCameraDisplayRange(fe,me,0),this.updateDisplay(!0);var Le=l.MxFun.getUiObj();Le!=null&&(Le.SetLayoutData(this._allLayoutName),Le.UpDisplayLayout())},q.prototype.calcViewsize=function(){if(this._userCanvas==null)return{viewWidth:window.innerWidth,viewHeight:window.innerHeight};var D=this._userCanvas.clientWidth,F=this._userCanvas.clientHeight;if(this._event.onResize!=null){var re=this._event.onResize;re instanceof Array&&(re=re[0]);var le=re();le!=null&&(D=parseInt(le.width),F=parseInt(le.height))}return{viewWidth:D,viewHeight:F}},q.prototype.initMxCpp=function(D){D&&D.getImp()?(this.mcObject.init(this,D),this.secenView!=null?this.secenView.background=null:this.scene.background=null):console.log("mxerror: mcppObjectImp is null")},q.prototype.create=function(D,F,re,le){if(this._is2d?this.mxdrawThreeJS=le?new A.MxDrawMapBoxThreeJS(le,this):new A.MxDrawObject2dThreeJS(this):this.mxdrawThreeJS=new A.MxDrawObject3dThreeJS(this),this._callCreateCanvasImageData=void 0,this._devicePixelRatio=window.devicePixelRatio,this._runMode==n.kCPPMxCAD)this._openFile="";else{if(F instanceof Array?(this._openFile=F[0],this._staticLoadingOpenFiles=F):this._openFile=F,this._iniParam=l.MxFun.getUrlParams(),this._openFileExtName=this._openFile.substring(this._openFile.lastIndexOf(".")+1),this._openFile!=""){var fe=new Array;fe.push("file"),fe.push(this._openFile),this._iniParam.push(fe)}this._userIdentitySign!=""&&(this.addInitParam("userIdentitySign",this._userIdentitySign),this.addInitParam("userRandomToken",this._userRandomToken)),this.addInitParam("runMode","browse")}this._userCanvas=D;var me=window.innerWidth,ye=window.innerHeight;if(D!=null&&(me=D.clientWidth,ye=D.clientHeight),this._viewWidth=me,this._viewHeight=ye,this.m_mxDatabase.getSelectManager().setCanvasSize(me,ye),this.mxdrawThreeJS.onInitThreejs(),this.eventManager.registEvent(this),this.onCreate(),this.m_mxDatabase.init(this),this._parentDocObject=new c.Object3D,this.scene.add(this._parentDocObject),this._parentDocObject_SmallCoord=new c.Object3D,this.scene.add(this._parentDocObject_SmallCoord),this.threejsselectObjects=new c.Object3D,this.scene.add(this.threejsselectObjects),this._objectsOsnap=new O.MxDrawObjectOsnap(this),b.MxManager.add(this),b.MxManager.setCurrentMx(this),this.mxdrawThreeJS.addControlsChangeEvent(),le||this.updateDisplay(),this.mxdrawThreeJS.getType()!=A.MxThreeJSType.kMapBox){var Te=this;if(D==null){var ke=function(){Te._viewWidth=window.innerWidth,Te._viewHeight=window.innerHeight,Te.onResizeImp(),Te.updateDisplay()};window.addEventListener("resize",ke,!1),this._onResizeFun=ke}else{var Le=function(Ve){Ve&&Ve.viewWidth&&Ve.viewHeight||(Ve=Te.calcViewsize()),Te._viewWidth=Ve.viewWidth,Te._viewHeight=Ve.viewHeight,Te.onResizeImp(Te._viewWidth,Te._viewHeight),Te.updateDisplay()};if(this._onResizeFun=Le,this._event.addResizeEvent!=null){var et=this._event.addResizeEvent;et instanceof Array&&(et=et[0]),et(Le,D)}else window.addEventListener("resize",Le,!1);if(window.setTimeout(function(){Le()},5),this._event.onResize!=null){var it=Te.calcViewsize();Le(it);var Ue=0,ht=0,De=!0,Be=window.setInterval(function(){ht++;var Ve=Te.calcViewsize();if(Ve.viewWidth==it.viewWidth&&Ve.viewHeight==it.viewHeight&&0<Ve.viewWidth&&0<Ve.viewHeight){if(8<++Ue)return clearInterval(Be),void Le(Ve);1<=Ue&&De&&(Le(Ve),2<=Ue&&(De=!1))}else Ue=0;it=Ve,50<ht&&(clearInterval(Be),0<Ve.viewWidth&&0<Ve.viewHeight?Le(Ve):console.log("mxassert(0) error view size"))},50)}}}this.callInitObjectEvent(),this.onLoad(re),this._isCreate=!0},q.prototype.initResize=function(){if(this._userCanvas==null)this._viewWidth=window.innerWidth,this._viewHeight=window.innerHeight,this.onResizeImp();else{if(this._viewWidth=this._userCanvas.clientWidth,this._viewHeight=this._userCanvas.clientHeight,this._event.onResize!=null){var D=this._event.onResize;D instanceof Array&&(D=D[0]);var F=D();F!=null&&(this._viewWidth=F.width,this._viewHeight=F.height)}this.onResizeImp(this._viewWidth,this._viewHeight)}this.updateDisplay()},q.prototype.is2D=function(){return this._is2d},q.prototype.getOpenFile=function(){return this._openFile},q.prototype.getFileTitle=function(){var D=this._openFile;if(this._openFile.substring(this._openFile.lastIndexOf(".")+1).toLowerCase()=="wgh"){var F=this._openFile.substring(0,this._openFile.indexOf(".mxb1.wgh")).split("/");(D=F.length==1?F[0]:F[F.length-1])[0]=="$"&&(D=D.substring(1))}return D},q.prototype.getIniParam=function(){return this._iniParam},q.prototype.getOpenFileExtName=function(){return this._openFileExtName},q.prototype.loadCodeToServer=function(D,F){this._net.getSend().CallLoadCodeToServer(D,F)},q.prototype.userLogin=function(D,F){this._net.getSend().UserLogin(D,F)},q.prototype.getUserCanvas=function(){return this._userCanvas},q.prototype.getCanvas=function(){return this._userCanvas!=null?this._userCanvas:this.renderer.domElement},q.prototype.getScene=function(){return this.scene},q.prototype.getCamera=function(){return this.camera},q.prototype.callCommand=function(D,F,re){F===void 0&&(F=""),this._net.getSend().DoCommand(D,F,re)},q.prototype.deleteAll=function(){this.removeAllEntity(),this.callCommand("Mx_ClearAll"),this.updateDisplay()},q.prototype.initAllLayoutName=function(D){this._allLayoutName=D},q.prototype.getAllLayoutName=function(){return this._allLayoutName},q.prototype.updataClipMaterial=function(){this._blocks.updataClipMaterial(this)},q.prototype.getExtRefManager=function(){return this._extRefManager},q.prototype.showLayer=function(D,F){typeof D=="string"&&(D=this._layers.getLayerIdForName(D)),this._blocks.showLayer(D,F),this.updateDisplay()},q.prototype.addLayerInfo=function(D,F,re){F=this.automaticInversionColor(16777215&F),this._layers.add(D,F,re)},q.prototype.setZeroLayerId=function(D){this._layers.setZeroLayerId(D)},q.prototype.addLayerInfoComplete=function(){this._layers.initComplete()},q.prototype.addEntity=function(D,F){var re=this._mapId2Entity.get(D);re==null&&(re=new Array,this._mapId2Entity.set(D,re)),re.push(F)},q.prototype.getEntity=function(D){return this._mapId2Entity.get(D)},q.prototype.clearThreejsScence=function(){this.m_mxDatabase.getGripManager().reInit(),this.isValidMcObject()&&this.mcObject.getGripManager().reInit(),l.MxFun.removeThreejsObject(this.threejsselectObjects,this.scene),this.threejsselectObjects=new c.Object3D,l.MxFun.removeThreejsObject(this._parentDocObject,this.scene),this._parentDocObject=new c.Object3D,l.MxFun.removeThreejsObject(this._parentDocObject_SmallCoord,this.scene),this._parentDocObject_SmallCoord=new c.Object3D,this.scene.remove(),this.scene.dispose(),this.scene=new c.Scene,this.scene.add(this.threejsselectObjects),this.scene.add(this._parentDocObject),this.scene.add(this._parentDocObject_SmallCoord),this._objectsOsnap=new O.MxDrawObjectOsnap(this),this.m_mxDatabase.reInit(),this.mxdrawThreeJS.onInitScene(),l.MxFun.removeThreejsObject(this.threejsselectObjectsView,this.secenView),this.threejsselectObjectsView=null,this.secenView.remove(),this.secenView.dispose(),this.secenView=null,this.onInitViewScene(),this._runMode!=n.kCPPMxCAD&&this.mxdrawThreeJS.getType()!=A.MxThreeJSType.kMapBox||(this.secenView!=null?this.secenView.background=null:this.scene.background=null)},q.prototype.reInit=function(){this.clearThreejsScence(),this._openFile="",this._openFileExtName="",this._mapId2Entity=new Map,this._setAdyDelete=new Map,this._layers=new v.MxBrowseLayerData,this._blocks=new x.Blocks,this._extRefManager=new x.ExternalReferenceManager,this._doc2World=new c.Matrix4,this._word2doc=new c.Matrix4,this._allLayoutName=new Array,this._tzDwgStaticFile="",this._devicePixelRatio=window.devicePixelRatio,this._blocks.initRootBlockRef()},q.prototype.removeEntity=function(D){if(this._setAdyDelete[D]==null){this._setAdyDelete[D]=!0;var F=this._mapId2Entity.get(D);if(F!=null){for(var re in F)this.scene.remove(F[re]);this._mapId2Entity.delete(D)}}},q.prototype.removeEntityFromServer=function(D){for(var F=D.getInt32(4,!0),re=0;re<F;re++){var le=D.getInt32(4*(re+20),!0);this.removeEntity(le)}},q.prototype.removeAllEntity=function(){var D=this;this._mapId2Entity.forEach(function(F,re,le){for(var fe in F)D.scene.remove(F[fe])}),this._mapId2Entity.clear()},q.prototype.mxWebAddEntity=function(D){this._setAdyDelete.clear();var F=this.mxWebAddEntity_3DChild(D);this.mxWebAddEntity_Curve(D,F),this._setAdyDelete.clear()},q.prototype.getViewWorldCoord=function(){var D=new c.Vector3(-1,-1,1);D.unproject(this.camera);var F=new c.Vector3(-1,1,1);F.unproject(this.camera);var re=new c.Vector3(1,1,1);re.unproject(this.camera);var le=new c.Vector3(1,-1,1);return le.unproject(this.camera),{pt1:D,pt2:F,pt3:re,pt4:le}},q.prototype.getViewDocCoord=function(){var D=this.getViewWorldCoord();return D.pt1=this.docCoord2Cad2(this.worldCoord2Doc(D.pt1.x,D.pt1.y,0)),D.pt2=this.docCoord2Cad2(this.worldCoord2Doc(D.pt2.x,D.pt2.y,0)),D.pt3=this.docCoord2Cad2(this.worldCoord2Doc(D.pt3.x,D.pt3.y,0)),D.pt4=this.docCoord2Cad2(this.worldCoord2Doc(D.pt4.x,D.pt4.y,0)),D},q.prototype.screenCoord2World=function(D,F,re){return this.mxdrawThreeJS.screenCoord2World(D,F,re)},q.prototype.worldCoord2Screen=function(D,F,re){return this.mxdrawThreeJS.worldCoord2Screen(D,F,re)},q.prototype.screenCoord2World_mxdrawThreeJS_call=function(D,F,re){var le=this.getCanvas(),fe=le.clientWidth,me=le.clientHeight;re=.5;var ye=this.camera;ye&&ye.isOrthographicCamera&&(re=(ye.near+ye.far)/(ye.near-ye.far));var Te=new c.Vector3(D/fe*2-1,-F/me*2+1,re);return Te.unproject(this.camera),Te.z=0,Te},q.prototype.worldCoord2Screen_mxdrawThreeJS_call=function(D,F,re){var le=new c.Vector3(D,F,re).project(this.camera),fe=this.getCanvas(),me=fe.clientWidth/2,ye=fe.clientHeight/2,Te=Math.round(le.x*me+me),ke=Math.round(-le.y*ye+ye);return new c.Vector3(Te,ke,0)},q.prototype.worldCoordLong2Doc=function(D){var F=this.worldCoord2Doc(0,0,0),re=this.worldCoord2Doc(D,0,0);return F.distanceTo(re)},q.prototype.docCoordLong2World=function(D){var F=this.docCoord2World(0,0,0),re=this.docCoord2World(D,0,0);return F.distanceTo(re)},q.prototype.getDoc2CADMatrix=function(){return this._doc2CAD},q.prototype.docCoord2Cad=function(D,F,re){var le=new c.Vector3(D,F,re);return le.applyMatrix4(this._doc2CAD),le},q.prototype.toSmallcoord=function(D){return this._runMode==n.kCPPMxCAD?this.cadCoord2Doc2(D):D},q.prototype.toSmallcoord2=function(D,F,re){return re===void 0&&(re=0),this._runMode==n.kCPPMxCAD?this.cadCoord2Doc(D,F,re):new c.Vector3(D,F,re)},q.prototype.docCoord2Cad2=function(D){return(D=D.clone()).applyMatrix4(this._doc2CAD),D},q.prototype.cadCoord2Doc=function(D,F,re){var le=new c.Vector3(D,F,re);return le.applyMatrix4(this._cad2Doc),le},q.prototype.cadCoord2Doc2=function(D){return(D=D.clone()).applyMatrix4(this._cad2Doc),D},q.prototype.docCoordLong2Cad=function(D){var F=this.docCoord2Cad(0,0,0),re=this.docCoord2Cad(D,0,0);return F.distanceTo(re)},q.prototype.cadCoordLong2Doc=function(D){var F=this.cadCoord2Doc(0,0,0),re=this.cadCoord2Doc(D,0,0);return F.distanceTo(re)},q.prototype.viewCoordLong2Cad=function(D){return this.docCoordLong2Cad(this.screenCoordLong2Doc(D))},q.prototype.cadCoordLong2View=function(D){return this.docCoordLong2Screen(this.cadCoordLong2Doc(D))},q.prototype.viewCoord2Cad=function(D,F,re){var le=this.screenCoord2Doc(D,F,re);return this.docCoord2Cad(le.x,le.y,le.z)},q.prototype.cadCoord2View=function(D,F,re){var le=this.cadCoord2Doc(D,F,re);return this.docCoord2Screen(le.x,le.y,le.z)},q.prototype.docCoord2World=function(D,F,re){var le=new c.Vector3(D,F,re);return le.applyMatrix4(this._doc2World),le},q.prototype.getDoc2World=function(){return this._doc2World},q.prototype.getWorldToDoc=function(){return this._word2doc},q.prototype.worldCoord2Doc=function(D,F,re){var le=new c.Vector3(D,F,re);return le.applyMatrix4(this._word2doc),le},q.prototype.screenCoord2Doc=function(D,F,re){var le=this.screenCoord2World(D,F,re);return this.worldCoord2Doc(le.x,le.y,0)},q.prototype.worldCoord2Currnet=function(D,F,re){var le=new c.Vector3(D,F,re);return le.applyMatrix4(this._word2Current),le},q.prototype.currentCoord2World=function(D,F,re){var le=new c.Vector3(D,F,re);return le.applyMatrix4(this._current2word),le},q.prototype.screenCoord2Current=function(D,F,re){var le=this.screenCoord2World(D,F,re);return le.applyMatrix4(this._word2Current),le},q.prototype.currentCoord2Screen=function(D,F,re){var le=new c.Vector3(D,F,re);return le.applyMatrix4(this._current2word),this.worldCoord2Screen(le.x,le.y,le.z)},q.prototype.docCoord2Screen=function(D,F,re){var le=this.docCoord2World(D,F,re);return this.worldCoord2Screen(le.x,le.y,le.z)},q.prototype.screenCoordLong2Doc=function(D){var F=this.screenCoord2Doc(0,0,0),re=this.screenCoord2Doc(D,0,0);return F.distanceTo(re)},q.prototype.screenCoordLong2DocScale=function(){var D=this.screenCoord2Doc(0,0,0),F=this.screenCoord2Doc(1,0,0);return D.distanceTo(F)},q.prototype.docCoordLong2Screen=function(D){var F=this.docCoord2Screen(0,0,0),re=this.docCoord2Screen(0<D?D:-D,0,0);return 0<=D?F.distanceTo(re):-F.distanceTo(re)},q.prototype.screenCoordLong2World=function(D){var F=this.screenCoord2World(0,0,0),re=this.screenCoord2World(0<D?D:-D,0,0);return 0<=D?F.distanceTo(re):-F.distanceTo(re)},q.prototype.worldCoordLong2Screen=function(D){var F=this.worldCoord2Screen(0,0,0),re=this.worldCoord2Screen(D,0,0);return F.distanceTo(re)},q.prototype.initCAD2Doc=function(D){D instanceof Array?this._cad2Doc.fromArray(D):this._cad2Doc=D,this._doc2CAD.getInverse(this._cad2Doc),this.mcObject.initCAD2Doc(this._cad2Doc,this._doc2CAD)},q.prototype.intiDoc2Wold=function(D){D instanceof Array?this._doc2World.fromArray(D):this._doc2World=D,this._word2doc.getInverse(this._doc2World)},q.prototype.intiword2Current=function(D){this._word2Current=D.clone(),this._current2word.getInverse(this._word2Current)},q.prototype.initializingObjectMatrix=function(){this.isNewObjectMatrix&&this._runMode==n.kCPPMxCAD?(this.m_mxDatabase.initObjectMatrix(this._cad2Doc),this._parentDocObject.matrix=this._cad2Doc,this._parentDocObject.matrixAutoUpdate=!1,this._parentDocObject_SmallCoord.matrix=new c.Matrix4,this._parentDocObject_SmallCoord.matrixAutoUpdate=!1,this.threejsselectObjects.matrix=this._cad2Doc,this.threejsselectObjects.matrixAutoUpdate=!1,this.intiword2Current(this._doc2CAD)):(this.m_mxDatabase.initObjectMatrix(this._doc2World),this._parentDocObject.matrix=this._doc2World,this._parentDocObject.matrixAutoUpdate=!1,this._parentDocObject_SmallCoord.matrix=this._doc2World,this._parentDocObject_SmallCoord.matrixAutoUpdate=!1,this.threejsselectObjects.matrix=this._doc2World,this.threejsselectObjects.matrixAutoUpdate=!1,this.intiword2Current(this._word2doc))},q.prototype.getDrawContainer=function(){return this.threejsselectObjects},q.prototype.getTheTempDrawContainer=function(){return this._parentDocObject},q.prototype.getTheTempDrawContainer_SmallCoord=function(){return this._parentDocObject_SmallCoord},q.prototype.mxWebAddEntityFor2dPointMeshBuffers=function(D,F){var re=new w.MxNetData(D),le=re.getdPointMeshBuffersHead(),fe=le.zeroLayerIdIndex,me=le.databaseIndex;F!=-1&&(me=F);for(var ye=le.datasize,Te=0;Te<le.datacount;Te++){var ke=re.getdPointMeshBufferDataHead(ye);ye=ke.offset;var Le=ke.layerId,et=Le==fe,it=ke.blkId,Ue=ke.pointCount;if(!(Ue<1)){for(var ht=[],De=[],Be=[],Ve=[],He=[],gt=0;gt<Ue;gt++){var dn=D.getFloat32(ye,!0);ye+=4;var Ze=D.getFloat32(ye,!0);ye+=4;var at=D.getFloat32(ye,!0);ye+=4;var Lt=D.getFloat32(ye,!0);ye+=4;var Ne=D.getFloat32(ye,!0);ye+=4;var ze=D.getFloat32(ye,!0);ye+=4;var Ke=D.getInt32(ye,!0);ye+=4;var vt=Ke>>24&255;vt==2?(Ve.push(dn,Ze),Ve.push(at,Lt),Ve.push(Ne,ze)):vt==1?it!=0&&et?(He.push(dn,Ze),He.push(at,Lt),He.push(Ne,ze)):(Be.push(dn,Ze),Be.push(at,Lt),Be.push(Ne,ze)):(Ke=this.automaticInversionColor(16777215&Ke),ht.push(dn,Ze),ht.push(at,Lt),ht.push(Ne,ze),De.push((255&Ke)/255,(Ke>>8&255)/255,(Ke>>16&255)/255),De.push((255&Ke)/255,(Ke>>8&255)/255,(Ke>>16&255)/255),De.push((255&Ke)/255,(Ke>>8&255)/255,(Ke>>16&255)/255))}var Ft=this._blocks,Ot=this._layers;me!=0&&(Ft=this._extRefManager.getBlocks(me),Ot=this._extRefManager.getLayers(me));var _t=Ft.crateBlock(it);_t.addGeometryMesh(ht,De,Le,Ve,Be,He),Ft.createThreejsObj(_t,this,Ot)}}},q.prototype.mxWebAddEntityForMemorySections=function(D,F){var re=new w.MxNetData(D),le=re.getMemorySectionsHead(),fe=(le.zeroLayerIdIndex,le.databaseIndex);F!=-1&&(fe=F);var me=le.nOffset,ye=this._blocks,Te=this._layers;fe!=0&&(ye=this._extRefManager.getBlocks(fe),Te=this._extRefManager.getLayers(fe));for(var ke=0;ke<le.datacount;ke++){var Le=re.getMemorySectionHead(me);me=Le.offset;var et=new x.MxNewDisplayMemorySection;et.layerId=Le.layerId,et.blockId=Le.blkId,et.id=Le.memId,et.color=Le.memColor,et.type=Le.memType;var it=!1;et.type==x.MxNewDisplayMemorySectionType.kLinesType_Float?(it=!0,et.type=x.MxNewDisplayMemorySectionType.kLinesType):et.type==x.MxNewDisplayMemorySectionType.kTriangleType_Float?(it=!0,et.type=x.MxNewDisplayMemorySectionType.kTriangleType):et.type==x.MxNewDisplayMemorySectionType.kPointType_Float&&(it=!0,et.type=x.MxNewDisplayMemorySectionType.kPointType);var Ue=Le.pointCount;if(!(Ue<1)){for(var ht=[],De=0;De<Ue;De++)if(it){var Be=D.getFloat32(me,!0);me+=4;var Ve=D.getFloat32(me,!0);me+=4,D.getFloat32(me,!0),me+=4,ht.push(Be,Ve,0)}else Be=D.getFloat64(me,!0),me+=8,Ve=D.getFloat64(me,!0),me+=8,D.getFloat64(me,!0),me+=8,ht.push(Be,Ve,0);et.points=ht;var He=ye.crateBlock(et.blockId);He.addMemorySections(et),ye.createThreejsObj(He,this,Te)}}},q.prototype.convertBytesToUTF8=function(D,F){var re=0;F=Math.min(F||D.length,D.length),D[0]===239&&D[1]===187&&D[2]===191&&(re=3);for(var le=[],fe=0;re<F;fe++){var me,ye,Te,ke=D[re++];if(ke===0)break;ke<128?le[fe]=String.fromCharCode(ke):194<=ke&&ke<224?(me=D[re++],le[fe]=String.fromCharCode(((31&ke)<<6)+(63&me))):224<=ke&&ke<240?(me=D[re++],ye=D[re++],le[fe]=String.fromCharCode(((15&ke)<<12)+((63&me)<<6)+(63&ye))):240<=ke&&ke<245&&(Te=((7&ke)<<18)+((63&(me=D[re++]))<<12)+((63&(ye=D[re++]))<<6)+(63&D[re++])-65536,le[fe]=String.fromCharCode(55296+(Te>>10),56320+(1023&Te)))}return le.join("")},q.prototype.mxWebAddEntityFor2dPointTextureBuffers=function(D,F){var re=new w.MxNetData(D),le=re.getdPointTextureBuffersHead(),fe=le.ver,me=(le.zeroLayerIdIndex,le.databaseIndex);F!=-1&&(me=F);for(var ye=le.datasize,Te=0;Te<le.datacount;Te++){var ke=re.getdPointTextureBufferDataHead(ye);ye=ke.offset;var Le=ke.layerId,et=ke.blkId,it=ke.dataCount;if(!(it<1)){var Ue=0,ht=this._blocks,De=this._layers;me!=0&&(ht=this._extRefManager.getBlocks(me),De=this._extRefManager.getLayers(me));for(var Be=ht.crateBlock(et);Ue<it;Ue++){var Ve=D.getFloat64(ye,!0);ye+=8;var He=D.getFloat64(ye,!0);ye+=8;var gt=D.getFloat64(ye,!0);ye+=8;var dn=D.getUint32(ye,!0);ye+=4;var Ze=D.getUint32(ye,!0);ye+=4;var at=this.convertBytesToUTF8(new Uint8Array(D.buffer.slice(ye,ye+Ze)),void 0);ye+=Ze;var Lt=[],Ne=[],ze=[];if(!(dn<1)){for(var Ke=0;Ke<dn;Ke++){if(5<=fe){var vt=D.getFloat64(ye,!0);ye+=8;var Ft=D.getFloat64(ye,!0);ye+=8,D.getFloat64(ye,!0),ye+=8;var Ot=D.getFloat64(ye,!0);ye+=8;var _t=D.getFloat64(ye,!0);ye+=8,D.getFloat64(ye,!0),ye+=8;var Tn=D.getFloat64(ye,!0);ye+=8;var on=D.getFloat64(ye,!0);ye+=8,D.getFloat64(ye,!0),ye+=8,Lt.push(vt,Ft),Lt.push(Ot,_t),Lt.push(Tn,on)}else vt=D.getFloat32(ye,!0),ye+=4,Ft=D.getFloat32(ye,!0),ye+=4,Ot=D.getFloat32(ye,!0),ye+=4,_t=D.getFloat32(ye,!0),ye+=4,Tn=D.getFloat32(ye,!0),ye+=4,on=D.getFloat32(ye,!0),ye+=4,Lt.push(vt,Ft),Lt.push(Ot,_t),Lt.push(Tn,on);var $n=D.getInt32(ye,!0);ye+=4;var Zt=D.getFloat32(ye,!0);ye+=4;var Et=D.getFloat32(ye,!0);ye+=4;var rn=D.getFloat32(ye,!0);ye+=4;var wt=D.getFloat32(ye,!0);ye+=4;var Yn=D.getFloat32(ye,!0);ye+=4;var pt=D.getFloat32(ye,!0);ye+=4;var Fe=$n>>24&255;$n=Fe==2||Fe==1?16777215:this.automaticInversionColor(16777215&$n),ze.push(Zt,Et),ze.push(rn,wt),ze.push(Yn,pt),Ne.push((255&$n)/255,($n>>8&255)/255,($n>>16&255)/255),Ne.push((255&$n)/255,($n>>8&255)/255,($n>>16&255)/255),Ne.push((255&$n)/255,($n>>8&255)/255,($n>>16&255)/255)}Be.addGeometryTexture(Lt,ze,Ne,Le,at,Ve,He,gt)}}ht.createThreejsObj(Be,this,De)}}},q.prototype.mxWebAddEntityFor2dPointCurveBuffers=function(D,F){var re=new w.MxNetData(D),le=re.getdPointCurveBuffersHead(),fe=le.zeroLayerIdIndex,me=le.databaseIndex;F!=-1&&(me=F);for(var ye=le.datasize,Te=0;Te<le.datacount;Te++){var ke=re.getdPointCurveBufferDataHead(ye);ye=ke.offset;var Le=ke.layerId,et=Le==fe,it=ke.blkId,Ue=ke.pointCount;if(!(Ue<1)){for(var ht=[],De=[],Be=[],Ve=[],He=[],gt=0;gt<Ue;gt++){var dn=D.getFloat32(ye,!0);ye+=4;var Ze=D.getFloat32(ye,!0);ye+=4;var at=D.getFloat32(ye,!0);ye+=4;var Lt=D.getFloat32(ye,!0);ye+=4;var Ne=D.getInt32(ye,!0);ye+=4;var ze=Ne>>24&255;ze==2?(Ve.push(dn,Ze),Ve.push(at,Lt)):ze==1?it!=0&&et?(He.push(dn,Ze),He.push(at,Lt)):(Be.push(dn,Ze),Be.push(at,Lt)):(ht.push(dn,Ze),ht.push(at,Lt),Ne=this.automaticInversionColor(16777215&Ne),De.push((255&Ne)/255,(Ne>>8&255)/255,(Ne>>16&255)/255),De.push((255&Ne)/255,(Ne>>8&255)/255,(Ne>>16&255)/255))}var Ke=this._blocks,vt=this._layers;me!=0&&(Ke=this._extRefManager.getBlocks(me),vt=this._extRefManager.getLayers(me));var Ft=Ke.crateBlock(it);Ft.addGeometryCurve(ht,De,Le,Ve,Be,He),Ke.createThreejsObj(Ft,this,vt)}}},q.prototype.mxWebAddEntityFor2dPointCurveBuffer=function(D,F){var re=new w.MxNetData(D);if(!re.getIsSketchEntity()){var le,fe=re.getLayerId(),me=fe==re.getZeroLayerId(),ye=re.getBlockId();if(!((le=D.getInt32(20,!0)/20)<1)){for(var Te=80,ke=[],Le=[],et=[],it=[],Ue=[],ht=0;ht<le;ht++){var De=D.getFloat32(Te,!0);Te+=4;var Be=D.getFloat32(Te,!0);Te+=4;var Ve=D.getFloat32(Te,!0);Te+=4;var He=D.getFloat32(Te,!0);Te+=4;var gt=D.getInt32(Te,!0);Te+=4;var dn=gt>>24&255;dn==2?(it.push(De,Be),it.push(Ve,He)):dn==1?ye!=0&&me?(Ue.push(De,Be),Ue.push(Ve,He)):(et.push(De,Be),et.push(Ve,He)):(gt=this.automaticInversionColor(16777215&gt),ke.push(De,Be),ke.push(Ve,He),Le.push((255&gt)/255,(gt>>8&255)/255,(gt>>16&255)/255),Le.push((255&gt)/255,(gt>>8&255)/255,(gt>>16&255)/255))}var Ze=re.getDatabaseIndex();F!=-1&&(Ze=F);var at=this._blocks,Lt=this._layers;Ze!=0&&(at=this._extRefManager.getBlocks(Ze),Lt=this._extRefManager.getLayers(Ze));var Ne=at.crateBlock(ye);Ne.addGeometryCurve(ke,Le,fe,it,et,Ue),at.createThreejsObj(Ne,this,Lt)}}},q.prototype.mxWebAddEntityFor2dPointMeshBuffer=function(D,F){var re=new w.MxNetData(D);if(!re.getIsSketchEntity()){var le,fe=re.getLayerId(),me=re.getBlockId(),ye=fe==re.getZeroLayerId();if(!((le=D.getInt32(12,!0)/28)<1)){for(var Te=80,ke=[],Le=[],et=[],it=[],Ue=[],ht=0;ht<le;ht++){var De=D.getFloat32(Te,!0);Te+=4;var Be=D.getFloat32(Te,!0);Te+=4;var Ve=D.getFloat32(Te,!0);Te+=4;var He=D.getFloat32(Te,!0);Te+=4;var gt=D.getFloat32(Te,!0);Te+=4;var dn=D.getFloat32(Te,!0);Te+=4;var Ze=D.getInt32(Te,!0);Te+=4;var at=Ze>>24&255;at==2?(it.push(De,Be),it.push(Ve,He),it.push(gt,dn)):at==1?me!=0&&ye?(Ue.push(De,Be),Ue.push(Ve,He),Ue.push(gt,dn)):(et.push(De,Be),et.push(Ve,He),et.push(gt,dn)):(ke.push(De,Be),ke.push(Ve,He),ke.push(gt,dn),Ze=this.automaticInversionColor(16777215&Ze),Le.push((255&Ze)/255,(Ze>>8&255)/255,(Ze>>16&255)/255),Le.push((255&Ze)/255,(Ze>>8&255)/255,(Ze>>16&255)/255),Le.push((255&Ze)/255,(Ze>>8&255)/255,(Ze>>16&255)/255))}var Lt=re.getDatabaseIndex();F!=-1&&(Lt=F);var Ne=this._blocks,ze=this._layers;Lt!=0&&(Ne=this._extRefManager.getBlocks(Lt),ze=this._extRefManager.getLayers(Lt));var Ke=Ne.crateBlock(me);Ke.addGeometryMesh(ke,Le,fe,it,et,Ue),Ne.createThreejsObj(Ke,this,ze)}}},q.prototype.mxWebCreateAllBlocks=function(D,F){var re=new w.MxNetData(D).getDatabaseIndex();F!=-1&&(re=F);var le=this._blocks;re!=0&&(le=this._extRefManager.getBlocks(re)),le.createBlocks(D,this.scene)},q.prototype.mxWebEntitysData=function(D,F){F==-1&&this._objectsOsnap.mxWebEntitysData(D,F)},q.prototype.getObjectOsnap=function(){return this._objectsOsnap},q.prototype.saveMxEntityToJson=function(D){return this.m_mxDatabase.saveJson(D)},q.prototype.getDtabaseJsonString=function(){return JSON.stringify(this.m_mxDatabase.toJsonObject())},q.prototype.loadMxEntityFromJson=function(D){return this.m_mxDatabase.loadJson(D)},q);function q(D){this._is2d=!0,this._runMode=n.kBrowse,this._userCanvas=null,this._openFile="empty",this._staticLoadingOpenFiles=[],this._openFileExtName="",this._userIdentitySign="",this._rendererParam=void 0,this._userRandomToken="",this._isCreate=!1,this.m_iniSet={},this._net=null,this._staticNet=null,this._staticLoadTzNet=null,this._staticLocalNet=null,this._isStaticLocalLoad=!1,this._staticLocalLoadPath="",this._viewWidth=1,this._viewHeight=1,this.m_sysVariable=new E.MxSystemVariable,this._color="#FFFFFF",this._viewcolor=15790320,this._isAnimation=!1,this._isAnimationStarting=!1,this._isWaiteCount=0,this._callCreateCanvasImageData=void 0,this._event={},this.scene=null,this.camera=null,this.secenView=null,this.cameraView=null,this.renderer=null,this.controls=null,this.threejsselectObjectsView=null,this._mouseRightRotate=!1,this._isMouseMiddlePan=1,this._mapId2Entity=new Map,this._setAdyDelete=new Map,this._layers=new v.MxBrowseLayerData,this._blocks=new x.Blocks,this._extRefManager=new x.ExternalReferenceManager,this._doc2World=new c.Matrix4,this._word2doc=new c.Matrix4,this._cad2Doc=new c.Matrix4,this._doc2CAD=new c.Matrix4,this._word2Current=new c.Matrix4,this._current2word=new c.Matrix4,this._allLayoutName=new Array,this._devicePixelRatio=1,this._tzDwgStaticFile="",this._requestHeader="",this._objectsOsnap=null,this._initZoomwCoordPt1=null,this._initZoomWCoordPt2=null,this.m_mxDatabase=null,this._parentDocObject=null,this._parentDocObject_SmallCoord=null,this.threejsselectObjects=null,this._onResizeFun=null,this._sCurrentLoadURL="",this.eventManager=new z.MxDrawObjectEvent,this._viewangle=0,this.id=0,this.mcObject=new V.McDrawObject,this.isPointMultipleSelect=!1,this.isNewObjectMatrix=!0,this.bakControls=void 0,this.isMultipleSelect=!1,this.mxdrawThreeJS=null,this._is2d=D,this._blocks.initRootBlockRef(),this.m_iniSet[s.kEnableOsnapFunction]=!1,this.m_sysVariable.init(this),this.m_mxDatabase=new N.MxDbDatabase,this.id=b.MxManager.allocId(),this.isMultipleSelect=W.MxDrawData.m_isMultipleSelect}r.MxDrawObject=B},{"./MxDrawData":22,"./MxDrawObjectEvent":26,"./MxFun":27,"./MxLocalFileLoad":28,"./MxManager":29,"./MxNetData":31,"./MxSystemVariable":35,"./Operate/MxDrawObjectOsnap":48,"./UI/MxUiVue":63,"./View/MxBrowseDisplay":64,"./View/MxBrowseLayerData":65,"./View/MxDbDatabase":66,"./View/MxDbEntityGrip":68,"./View/MxDrawMapBox":73,"./cpp/McDrawObject":75,three:19}],24:[function(t,e,r){var n,o=this&&this.__extends||(n=function(N,A){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,G){z.__proto__=G}||function(z,G){for(var V in G)Object.prototype.hasOwnProperty.call(G,V)&&(z[V]=G[V])})(N,A)},function(N,A){function z(){this.constructor=N}n(N,A),N.prototype=A===null?Object.create(A):(z.prototype=A.prototype,new z)});Object.defineProperty(r,"__esModule",{value:!0}),r.MxDrawObject2d=void 0;var s,c=t("three"),l=t("./MxFun"),v=t("./MxDrawObject"),x=t("three-orbitcontrols"),w=t("./MxNetData"),_=t("./MxMaterial"),b=t("./MxDrawData"),E=t("./View/MxDrawMapBox"),I=(o(O,s=v.MxDrawObject),O.prototype.set3DDraw=function(N){this.is3DDraw=N},O.prototype.getOrthographicCamera=function(){return this.camera instanceof c.OrthographicCamera?this.camera:null},O.prototype.getFullDisplayRange=function(){return{minPt:this._initMinDisplayPoint,maxPt:this._initMaxDisplayPoint}},O.prototype.zoomW_call=function(N,A,z){if(N.distanceTo(A)<1e-7)console.log("Mx:ZoomW param invalid");else{if(z!=null&&z||(N=this.currentCoord2World(N.x,N.y,0),A=this.currentCoord2World(A.x,A.y,0)),N.x>A.x){var G=N.x;N.x=A.x,A.x=G}N.y>A.y&&(G=N.y,N.y=A.y,A.y=G);var V=this.getViewWidth(),ne=this.getViewHeight();ne<5&&(ne=5),V<5&&(V=5);var W=Math.abs(N.x-A.x),B=Math.abs(N.y-A.y);W<1e-5&&(W=1e-5),B<1e-5&&(B=1e-5);var q=this.getOrthographicCamera();if(W/B<V/ne){var D=.5*B,F=V/ne;q.left=-D*F,q.right=D*F,q.top=D,q.bottom=-D}else D=.5*W,F=ne/V,q.left=-D,q.right=D,q.top=D*F,q.bottom=-D*F;var re=W,le=B,fe=re;fe<le&&(fe=le),this._runMode==v.MxRunMode.kCPPMxCAD?(q.far=102400,q.near=-102400):(q.far=1e3*fe,q.far<9e4&&(q.far=9e4),q.near=1e3*-fe,-9e4<q.near&&(q.near=-9e4));var me=N.x+.5*re,ye=N.y+.5*le;q.zoom=1,q.position.set(me,ye,100),q.lookAt(new c.Vector3(me,ye,0)),q.updateProjectionMatrix(),this.controls.target.x=me,this.controls.target.y=ye,this.controls.target.z=0,this.controls.update(),this.mcObject.updateDisplayMatrixData()}},O.prototype.zoomScale_call=function(N){var A=this.getOrthographicCamera();A.zoom=Math.max(this.controls.minZoom,Math.min(this.controls.maxZoom,A.zoom*N)),A.updateProjectionMatrix(),this.controls.update(),this.mcObject.updateDisplayMatrixData()},O.prototype.zoomCenter_call=function(N,A){var z=this.getOrthographicCamera(),G=this.currentCoord2World(N,A,0);N=G.x,A=G.y,z.position.set(N,A,z.position.z),z.lookAt(new c.Vector3(N,A,0)),z.updateProjectionMatrix(),this.controls.target.x=N,this.controls.target.y=A,this.controls.target.z=0,this.controls.update(),this.mcObject.updateDisplayMatrixData()},O.prototype.calcCameraUp=function(N){var A=new c.Vector3(0,1,0),z=new c.Matrix4;return z.makeRotationZ(N),A.applyMatrix4(z),A},O.prototype.updateCameraDisplayRangeImp=function(N,A,z){this._initZoomwCoordPt1!=null&&this._initZoomWCoordPt2!=null?(this._initMinDisplayPoint=this.docCoord2World(this._initZoomwCoordPt1.x,this._initZoomwCoordPt1.y,0),this._initMaxDisplayPoint=this.docCoord2World(this._initZoomWCoordPt2.x,this._initZoomWCoordPt2.y,0)):(this._initMinDisplayPoint=N,this._initMaxDisplayPoint=A),this._viewangle=z,this.camera.up=this.calcCameraUp(z),this.cameraView.up=this.calcCameraUp(z),this.cameraView.updateProjectionMatrix(),this.zoomW(this._initMinDisplayPoint,this._initMaxDisplayPoint,!0)},O.prototype.setViewAngle_call=function(N){this._viewangle=N;var A=this.getOrthographicCamera();A&&(A.up=this.calcCameraUp(N),A.updateProjectionMatrix()),this.cameraView.up=this.calcCameraUp(N),this.cameraView.updateProjectionMatrix(),this.controls.update(),this.mcObject.updateDisplayMatrixData()},O.prototype.zoomInitialStates=function(){this._initMinDisplayPoint!=null&&this._initMaxDisplayPoint!=null?(this.camera.up=this.calcCameraUp(this._viewangle),this.cameraView.up=this.calcCameraUp(this._viewangle),this.cameraView.updateProjectionMatrix(),this.zoomW(this._initMinDisplayPoint,this._initMaxDisplayPoint,!0)):console.log("mx assert(0)")},O.prototype.onInitScene=function(){if(this.callInitSceneEvent(this.scene,this.controls,!0)==0){var N=new c.AmbientLight(3355443,1);this.scene.add(N);var A=new c.DirectionalLight(16777215,1);A.position.set(-2,2,3).normalize(),this.scene.add(A)}},O.prototype.updataCameraView=function(N,A){var z=N,G=A;this.cameraView.left=0,this.cameraView.right=z,this.cameraView.top=G,this.cameraView.bottom=0,this.cameraView.updateProjectionMatrix()},O.prototype.onInitViewScene=function(){if(!this.secenView){this.secenView=new c.Scene,this._runMode!=v.MxRunMode.kCPPMxCAD&&this.mxdrawThreeJS.getType()!=E.MxThreeJSType.kMapBox&&(this.secenView.background=new c.Color(this._viewcolor));var N=this.getViewWidth(),A=this.getViewHeight();N=this.xzSize(N),A=this.xzSize(A),this.cameraView=new c.OrthographicCamera(0,N,A,0,1,2e3),this.cameraView.position.set(0,0,2e3),this.cameraView.lookAt(new c.Vector3(0,0,0)),this.cameraView.updateProjectionMatrix();var z=new c.AmbientLight(3355443,1);this.secenView.add(z);var G=new c.DirectionalLight(16777215,1);G.position.set(-2,2,3).normalize(),this.secenView.add(G),this.threejsselectObjectsView=new c.Object3D,this.secenView.add(this.threejsselectObjectsView)}},O.prototype.onInitThreejs=function(){var N=this.getViewWidth(),A=this.getViewHeight(),z=(N=this.xzSize(N))/(A=this.xzSize(A))*50;this.onInitViewScene(),this.camera=new c.OrthographicCamera(z/-2,z/2,25,-25,1,1e3),this.camera.position.set(0,0,200),this.scene=new c.Scene;var G=this.getUserCanvas(),V=this._rendererParam;V=V||{},G==null?(V.antialias=!1,V.stencil=!0,this.renderer=new c.WebGLRenderer(V),this.renderer.setClearColor(0,1),this.renderer.setPixelRatio(this._devicePixelRatio),this.renderer.setSize(N,A),document.body.appendChild(this.renderer.domElement)):(V.canvas=G,V.stencil=!0,this.renderer=new c.WebGLRenderer(V),this.renderer.setClearColor(0,1),this.renderer.setPixelRatio(this._devicePixelRatio)),this.renderer.sortObjects=!0,this.renderer.info.autoReset=b.MxDrawData.m_isAutoResetRenderer,this.renderer.info.reset();var ne=this.getUserCanvas();ne==null&&(ne=this.renderer.domElement),this.controls=new x.OrbitControls(this.camera,ne),this.is3DDraw||(this.controls.enableZoom=!0),l.MxFun.isPC()?(this.controls.zoomSpeed=4,this.controls.screenSpacePanning=!0,this.setMouseMiddlePan(this._isMouseMiddlePan),this._mouseRightRotate&&(this.controls.mouseButtons.RIGHT=c.MOUSE.ROTATE)):(this.controls.zoomSpeed=1.5,this.controls.touches.ONE=c.TOUCH.PAN,this.controls.screenSpacePanning=!0)},O.prototype.onCreate=function(){this._is2d=!0,this.mxdrawThreeJS.onInitScene()},O.prototype.mxWebAddEntity_3DChild=function(N){var A=new w.MxNetData(N).getMesh();if(A.id==null)return A.size;var z=new c.Mesh(A.geometry,_.MxMaterial.GetBaseColorMaterial(A.nColorIndex));return this.removeEntity(A.id),this.scene.add(z),A.isSketchEntity&&this.addEntity(A.id,z),A.size},O.prototype.mxWebAddEntity_Curve=function(N,A){var z=new w.MxNetData(N).getCurve(A);if(z.id!=null){var G=_.MxMaterial.GetCurveColorMaterial(z.colorIndex),V=new c.LineSegments(z.geometry,G);this.removeEntity(z.id),this.scene.add(V),z.isSketchEntity&&this.addEntity(z.id,V)}},O.prototype.onViewChange=function(){this._onResizeImpCalling||(this._bakOnResizeViewWorldCoord=void 0)},O.prototype.mapBox_onResizeImp=function(N,A){var z=N,G=A;this.mcObject.setSize(z,G),this.callEvent("viewsizechange",{width:z,height:G}),this.callEvent("viewchange"),this.m_mxDatabase.getSelectManager().setCanvasSize(z,G)},O.prototype.onResizeImp=function(N,A){var z;this._bakOnResizeViewWorldCoord?z=this._bakOnResizeViewWorldCoord:(z=this.getViewWorldCoord(),this._bakOnResizeViewWorldCoord=z);var G=this.getViewWidth();N!=null&&(G=N);var V=this.getViewHeight();if(A!=null&&(V=A),!(V<5||G<5)){var ne=z.pt1.x+.5*(z.pt3.x-z.pt1.x),W=z.pt1.y+.5*(z.pt3.y-z.pt1.y),B=new c.Matrix4;B.makeRotationZ(this._viewangle);var q=new c.Matrix4().makeTranslation(ne,W,0).multiply(B).multiply(new c.Matrix4().makeTranslation(-ne,-W,0)),D=z.pt1.clone(),F=z.pt2.clone(),re=z.pt3.clone(),le=z.pt4.clone();D.applyMatrix4(q),F.applyMatrix4(q),re.applyMatrix4(q),le.applyMatrix4(q);var fe=D.clone();fe.x>F.x&&(fe.x=F.x),fe.x>re.x&&(fe.x=re.x),fe.x>le.x&&(fe.x=le.x),fe.y>F.y&&(fe.y=F.y),fe.y>re.y&&(fe.y=re.y),fe.y>le.y&&(fe.y=le.y);var me=D.clone();me.x<F.x&&(me.x=F.x),me.x<re.x&&(me.x=re.x),me.x<le.x&&(me.x=le.x),me.y<F.y&&(me.y=F.y),me.y<re.y&&(me.y=re.y),me.y<le.y&&(me.y=le.y),G=this.xzSize(G),V=this.xzSize(V);var ye=new c.Vector2;if(this.renderer.getSize(ye),ye.x!=G||ye.y!=V){this._onResizeImpCalling=!0;var Te=this.getOrthographicCamera(),ke=Math.abs(me.x-fe.x),Le=Math.abs(me.y-fe.y);if(ke<1e-5&&(ke=1e-5),Le<1e-5&&(Le=1e-5),ke/Le<G/V){var et=.5*Le,it=G/V;Te.left=-et*it,Te.right=et*it,Te.top=et,Te.bottom=-et}else et=.5*ke,it=V/G,Te.left=-et,Te.right=et,Te.top=et*it,Te.bottom=-et*it;var Ue=fe.x+.5*ke,ht=fe.y+.5*Le;Te.zoom=1;var De=Te.position.z;Te.position.set(Ue,ht,De),Te.lookAt(new c.Vector3(Ue,ht,0)),Te.updateProjectionMatrix(),this.controls.target.x=Ue,this.controls.target.y=ht,this.controls.target.z=0,this.controls.update(),this.renderer.setSize(G,V),this.mcObject.setSize(G,V),this.updataClipMaterial(),this.updataCameraView(G,V),this.callEvent("viewsizechange",{width:G,height:V}),this.callEvent("viewchange"),this.m_mxDatabase.getSelectManager().setCanvasSize(G,V),this.m_mxDatabase.onViewChange(),this._onResizeImpCalling=!1}}},O);function O(){var N=s.call(this,!0)||this;return N._initMinDisplayPoint=null,N._initMaxDisplayPoint=null,N.is3DDraw=l.MxFun.is3DDwg(),N._bakOnResizeViewWorldCoord=void 0,N._onResizeImpCalling=!1,N}r.MxDrawObject2d=I},{"./MxDrawData":22,"./MxDrawObject":23,"./MxFun":27,"./MxMaterial":30,"./MxNetData":31,"./View/MxDrawMapBox":73,three:19,"three-orbitcontrols":17}],25:[function(t,e,r){var n,o=this&&this.__extends||(n=function(I,O){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,A){N.__proto__=A}||function(N,A){for(var z in A)Object.prototype.hasOwnProperty.call(A,z)&&(N[z]=A[z])})(I,O)},function(I,O){function N(){this.constructor=I}n(I,O),I.prototype=O===null?Object.create(O):(N.prototype=O.prototype,new N)});Object.defineProperty(r,"__esModule",{value:!0}),r.MxDrawObject3d=void 0;var s,c=t("three"),l=t("./MxDrawObject"),v=t("three-orbitcontrols"),x=t("./MxNetData"),w=t("./MxMaterial"),_=t("./MxTools"),b=(o(E,s=l.MxDrawObject),E.prototype.mxWebAddEntity_Curve=function(I,O){var N,A=new x.MxNetData(I),z=I.getInt32(32,!0)==0,G=A.getIsSketchEntity();if(!((N=z?I.getInt32(20,!0)/4/3:I.getInt32(20,!0)/4/2)<2)){for(var V=new c.Geometry,ne=O,W=0;W<N;W++){var B=I.getFloat32(ne,!0);ne+=4;var q=I.getFloat32(ne,!0);ne+=4;var D=0;z&&(D=I.getFloat32(ne,!0),ne+=4),V.vertices.push(_.MxTools.AsThreeJsPoint(B,q,D))}var F=I.getInt32(28,!0),re=w.MxMaterial.GetCurveColorMaterial(F),le=new c.LineSegments(V,re),fe=I.getInt32(4,!0);this.removeEntity(fe),this.scene.add(le),G&&this.addEntity(fe,le)}},E.prototype.mxWebAddEntity_3DChild=function(I){var O=new x.MxNetData(I),N=O.getId(),A=(O.getColorIndex(),O.getBufferType()==0),z=O.getIsSketchEntity();this.removeEntity(N);var G=new c.Mesh(new c.Geometry),V=this.mxWebUpdateEntity_3DChild(G,I,A);return this.scene.add(G),z&&this.addEntity(N,G),G.geometry.computeBoundingBox(),G.geometry.computeBoundingSphere(),V},E.prototype.mxWebUpdateEntity_3DChild=function(I,O,N){var A=new x.MxNetData(O),z=A.getVertexBufferSize(),G=A.getIndexBufferSize(),V=A.getColorIndex();if(z===0||G===0)return A.getDrawDataOffset();var ne=A.getMateria(),W=void 0,B=!0,q=!1,D=!1;ne.length!=0&&((W=JSON.parse(ne)).computeFaceNonmal!=null&&(B=W.computeFaceNonmal),W.castShadow!=null&&(q=W.castShadow),W.receiveShadow!=null&&(D=W.receiveShadow)),I.material=w.MxMaterial.createMaterial(W),I.material==null&&(I.material=w.MxMaterial.GetColorMaterial(V)),I.castShadow=q,I.receiveShadow=D;var F,re=A.getDrawDataOffset();F=N?z/4/8:z/4/2;var le=I.geometry;le.vertices=[],le.faces=[];for(var fe=0;fe<F;fe++){var me=O.getFloat32(re+0,!0),ye=O.getFloat32(re+4,!0),Te=0,ke=0,Le=0,et=0,it=0,Ue=0;N?(Te=O.getFloat32(re+8,!0),ke=O.getFloat32(re+12,!0),Le=O.getFloat32(re+16,!0),et=O.getFloat32(re+20,!0),it=O.getFloat32(re+24,!0),Ue=O.getFloat32(re+28,!0),re+=32):re+=8;var ht=_.MxTools.AsThreeJsPoint(me,ye,Te);le.vertices.push(ht),le.vertices[fe].normal=_.MxTools.AsThreeJsPoint(ke,Le,et),le.vertices[fe].uv=new c.Vector2(it,Ue)}var De=G/4;for(fe=0;fe<De;fe+=3){var Be=O.getInt32(re,!0);re+=4;var Ve=O.getInt32(re,!0);re+=4;var He=O.getInt32(re,!0);re+=4;var gt=new c.Face3(Be,Ve,He);B||gt.vertexNormals.push(le.vertices[Be].normal,le.vertices[Ve].normal,le.vertices[He].normal),le.faces.push(gt),le.faceVertexUvs[0].push([le.vertices[Be].uv,le.vertices[Ve].uv,le.vertices[He].uv])}return B&&le.computeFaceNormals(),re},E.prototype.updateUVs=function(I){I.faceVertexUvs[0]=[],I.faces.forEach(function(O){var N=["x","y","z"].sort(function(B,q){return Math.abs(O.normal[B])-Math.abs(O.normal[q])}),A=I.vertices[O.a],z=I.vertices[O.b],G=I.vertices[O.c],V=new c.Vector2(A[N[0]],A[N[1]]),ne=new c.Vector2(z[N[0]],z[N[1]]),W=new c.Vector2(G[N[0]],G[N[1]]);I.faceVertexUvs[0].push([V,ne,W])}),I.uvsNeedUpdate=!0},E.prototype.onInitThreejs=function(){var I=this.getViewWidth(),O=this.getViewHeight(),N=(I=this.xzSize(I))/(O=this.xzSize(O))*50;this.camera=new c.OrthographicCamera(N/-2,N/2,25,-25,1,1e3),this.camera.position.set(-200,200,200),this.scene=new c.Scene,this.scene.background=new c.Color(this._viewcolor);var A=this.getUserCanvas();A==null?(this.renderer=new c.WebGLRenderer({antialias:!0,alpha:!0}),this.renderer.setPixelRatio(this._devicePixelRatio),this.renderer.setSize(I,O),document.body.appendChild(this.renderer.domElement)):(this.renderer=new c.WebGLRenderer({canvas:A,antialias:!0,alpha:!0}),this.renderer.setPixelRatio(this._devicePixelRatio));var z=this.getUserCanvas();z==null&&(z=this.renderer.domElement),this.controls=new v.OrbitControls(this.camera,z)},E.prototype.onInitViewScene=function(){},E.prototype.onInitScene=function(){if(this.callInitSceneEvent(this.scene,this.controls,!1)==0){var I=new c.AmbientLight(2236962);I.integrity=1,this.scene.add(I);var O=new c.DirectionalLight(16777215,1);O.position.set(-2,2,3).normalize(),this.scene.add(O);var N=new c.GridHelper(2e3,100);N.position.y=-199,N.material.opacity=.25,N.material.transparent=!0,this.scene.add(N);var A=new c.AxesHelper(20);this.scene.add(A)}},E.prototype.onCreate=function(){this._is2d=!1,this.callEvent("initRenderer",this.renderer),this.mxdrawThreeJS.onInitScene()},E.prototype.getOrthographicCamera=function(){return this.camera instanceof c.OrthographicCamera?this.camera:null},E.prototype.onViewChange=function(){},E.prototype.onResizeImp=function(I,O){var N=this.getViewWidth();I!=null&&(N=I);var A=this.getViewHeight();O!=null&&(A=O),N=this.xzSize(N),A=this.xzSize(A);var z=this.getOrthographicCamera(),G=N/A;z.left=50*G/-2,z.right=50*G/2,z.top=25,z.bottom=-25,z.updateProjectionMatrix(),this.renderer.setSize(N,A)},E.prototype.zoomInitialStates=function(){},E.prototype.zoomScale_call=function(I){},E.prototype.zoomW_call=function(I,O,N){},E.prototype.zoomCenter_call=function(I,O){},E.prototype.setViewAngle_call=function(I){this._viewangle=I},E.prototype.getFullDisplayRange=function(){return{}},E);function E(){var I=s.call(this,!1)||this;return I._viewcolor=15790320,I}r.MxDrawObject3d=b},{"./MxDrawObject":23,"./MxMaterial":30,"./MxNetData":31,"./MxTools":37,three:19,"three-orbitcontrols":17}],26:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MxDrawObjectEvent=r.MxDrawObjectEventDefautProc=void 0;var n=t("./MxFun"),o=t("./Operate/MxJigCmdManager"),s=t("three"),c=t("./UI/MxUiVue"),l=t("./MxDrawData"),v=(x.prototype.onMousemove=function(b){if(c.MxUiVue.isNull())return 0;var E=this.mxObj.screenCoord2Doc(b.offsetX,b.offsetY,0);return E=this.mxObj.docCoord2Cad(E.x,E.y,E.z),c.MxUiVue.setTipCoord(n.MxFun.formatString("{0},{1},0.000",E.x.toFixed(3),E.y.toFixed(3))),0},x.prototype.onTouchStart=function(b){if(l.MxDrawData.m_isEnableIntelliSelect&&!o.MxJigCmdManager.isRunning()){var E=b.touches[0].pageX,I=b.touches[0].pageY,O=this.mxObj,N=O.screenCoord2Current(E,I,0);if(!O.getMxDatabase().getGripManager().onMouseLBDown(N)){var A=new s.Vector3(E,I,0);return n.MxFun.sendStringToExecute("Mx_FrontEndWebpageIntelliSel",{pt:A}),1}}return 0},x.prototype.onMousdown=function(b){if(b.button==o.MxJigCmdManager.MouseButton.kRight&&o.MxJigCmdManager.isRunning())return o.MxJigCmdManager.OnEnter(-1),0;if(l.MxDrawData.m_isEnableIntelliSelect&&b.button==o.MxJigCmdManager.MouseButton.kLeft&&!o.MxJigCmdManager.isRunning()&&!this.mxObj.isPaningCommand()){var E=this.mxObj,I=E.screenCoord2Current(b.offsetX,b.offsetY,0);if(!(E.getMxDatabase().getGripManager().onMouseLBDown(I)||E.isValidMcObject()&&E.getMcObject().getGripManager().onMouseLBDown(I))){var O=new s.Vector3(b.offsetX,b.offsetY,0);return n.MxFun.sendStringToExecute("Mx_FrontEndWebpageIntelliSel",{pt:O}),1}}return 0},x.prototype.init=function(b,E){this.mxObj=b;var I=this;E.addEventListener("mousemove",function(O){return I.onMousemove(O)}),E.addEventListener("mousedown",function(O){return I.onMousdown(O)}),E.addEventListener("touchstart",function(O){return I.onTouchStart(O)})},x);function x(){}r.MxDrawObjectEventDefautProc=v;var w=(_.prototype.onMousedown=function(b,E){this.callEvent("mousedown",b,E)},_.prototype.onMousemove=function(b,E){this.callEvent("mousemove",b,E)},_.prototype.onMouseup=function(b,E){this.callEvent("mouseup",b,E)},_.prototype.registEvent=function(b){var E=b.getMxDrawThreeJs().getRegistEventObject();if(!E)return!1;var I=this;n.MxFun.isPC()?(E.addEventListener("mouseup",function(O){var N=b.getMxDrawThreeJs().getDomMousePos(O);I.onMouseup(O,N)},!0),E.addEventListener("mousemove",function(O){var N=b.getMxDrawThreeJs().getDomMousePos(O);I.onMousemove(O,N)},!0),E.addEventListener("mousedown",function(O){var N=b.getMxDrawThreeJs().getDomMousePos(O);I.onMousedown(O,N)},!0)):(E.addEventListener("touchstart",function(O){I.callEvent("touchstart",O)},!0),E.addEventListener("touchend",function(O){I.callEvent("touchend",O)},!0),E.addEventListener("touchmove",function(O){I.callEvent("touchmove",O)},!0)),this.defautProc.init(b,this)},_.prototype.getEventCall=function(b){var E;return b=="mousemove"?E=this.aryMousemoveEventCall:b=="mouseup"?E=this.aryMouseupEventCall:b=="mousedown"?E=this.aryMousedownEventCall:b=="touchstart"?E=this.aryTouchstartEventCall:b=="touchend"?E=this.aryTouchendEventCall:b=="touchmove"&&(E=this.aryTouchmoveEventCall),E},_.prototype.callEvent=function(b,E,I){var O=this.getEventCall(b);if(O){for(var N=O.slice(),A=0,z=N.length;A<z;A++){var G=N[A](E,I);if(G==1)return G}return 0}},_.prototype.addEventListener=function(b,E,I){I===void 0&&(I=!1);var O=this.getEventCall(b);return!!O&&(-1<O.indexOf(E)||(I?O.unshift(E):O.push(E)),!0)},_.prototype.removeEventListener=function(b,E){var I=this.getEventCall(b);if(!I)return!1;var O=I.indexOf(E);return-1<O&&(I.splice(O,1),!0)},_);function _(){this.aryMousedownEventCall=[],this.aryMouseupEventCall=[],this.aryMousemoveEventCall=[],this.aryTouchstartEventCall=[],this.aryTouchendEventCall=[],this.aryTouchmoveEventCall=[],this.defautProc=new v}r.MxDrawObjectEvent=w},{"./MxDrawData":22,"./MxFun":27,"./Operate/MxJigCmdManager":53,"./UI/MxUiVue":63,three:19}],27:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MxFun=void 0;var n,o,s,c,l,v,x,w,_,b,E,I,O,N,A=t("three"),z=t("./MxManager"),G=t("./MxDrawObject"),V=t("./MxDrawObject2d"),ne=t("./MxDrawObject3d"),W=t("./UI/MxUiObjectMobile"),B=t("./UI/MxUiObjectPC"),q=t("./Operate/MxJigCmdManager"),D=t("./Operate/MxJigGetLine"),F=t("./Operate/MxCmdRunManager"),re=t("./UI/MxUiVue"),le=t("./MxThreeJS"),fe=t("./MxWindowsEvent"),me=t("./MxTools"),ye=t("./MxDrawCommands"),Te=t("./MxDrawData"),ke=t("./MxLocalFileLoad"),Le=t("./TempTest/MxTestJig"),et=t("./MxVersion"),it=t("./MrxDbgUtils");function Ue(Ze){Ze.cmd&&gt(Ze.cmd)}function ht(Ze){var at=new RegExp("(^|&)"+Ze+"=([^&]*)(&|$)"),Lt=window.location.href,Ne=Lt.indexOf("?"),ze=(Lt=Ne==-1?"":Lt.substring(Ne)).substr(1).match(at);return ze!=null?decodeURIComponent(ze[2]):""}function De(){return z.MxManager.currentMx()}function Be(Ze,at){var Lt={};if(Ze!=null)if(Ze instanceof Array)Lt.is2d=!0;else{Ze.length==0&&(Ze="empty");var Ne=Ze.substring(Ze.lastIndexOf(".")+1).toLowerCase();if(Ne!="dwg"&&Ne!="dxf"&&Ne!="dwf"&&Ne!="mwg"&&Ne!="wgh"||(Lt.is2d=!0),at!=1&&at!=null&&Ne!="wgh"){var ze=void 0,Ke=Ze.split("/");(ze=Ke.length==1?Ke[0]:Ke[Ke.length-1])[0]=="$"&&(ze=ze.substring(1));for(var vt=void 0,Ft=0;Ft<Ke.length-1;Ft++)vt=Ft==0?Ke[Ft]:vt+"/"+Ke[Ft];Ze=vt?vt+"/$"+ze+".mxb1.wgh":"$"+ze+".mxb1.wgh"}}else Ze="empty_template.dwg";return Lt.sFileName=Ze,Lt}function Ve(Ze){if(typeof Ze=="string"){var at=Ze.substring(Ze.lastIndexOf(".")+1).toLowerCase();if(at!="dwg"&&at!="wgh"){var Lt=Ze.lastIndexOf("?");if(Lt!=-1){var Ne=Ze.substring(Lt,Ze.length);return{sFileName:Ze=Ze.substring(0,Lt),sUrlParam:Ne}}}}return null}function He(){return q.MxJigCmdManager.stopCmd(q.MxJigCmdManager.DetailedResult.kUnknown)}function gt(Ze,at){if(Ze.length!=0){var Lt=De();return F.MxCmdRunManager.runCmd(Lt,Ze,at)}He()}function dn(Ze){Ze!=null&&(Ze.init(),re.MxUiVue.init(Ze)),E||(console.log("MxDraw Version:"+et.MxBulid.getVersion()),E=!0,N=new ke.MxLocalNodeJs,q.MxJigCmdManager.init(),fe.MxWindowsEvent.registEvent(),ye.MxDrawCommands.registerCommand(),window.mxConfig_isLoadTest&&Le.MxTest.registerCommand(),O.sendStringToExecute=Ue)}n=r.MxFun||(r.MxFun={}),o=".",x=l=c=-1,b=null,E=!(_="ws://localhost:5090"),O={},N=I=w=v=s=void 0,n.getUiObj=function(){return b},n.on=function(Ze,at){z.MxManager.on(Ze,at)},n.callEvent=function(Ze,at){return z.MxManager.callEvent(Ze,at)},n.getNodeJs=function(){return N},n.setMxServer=function(Ze){_=Ze},n.getMxServer=function(){return _},n.isPC=function(){return!/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)},n.getClientPlatform=function(){return navigator.platform},n.getClientInfo=function(){return{width:document.body.clientWidth,height:document.body.clientHeight}},n.curPath=function(){return o},n.setCurPath=function(Ze){o=Ze},n.getQueryString=ht,n.getLocationPageUrl=function(){var Ze=window.location.href,at=Ze.lastIndexOf("?");return at==-1?Ze:Ze.substring(0,at)},n.getHostUrl=function(){var Ze=window.location.hostname;return Ze.substring(0,4)!="http"&&(Ze="http://"+Ze),Ze},n.isAbsoluteWebPath=function(Ze){return Ze.substring(0,4)=="http"},n.getUrlParams=function(){var Ze=window.location.search,at=Ze.substr(1,Ze.length).split("&"),Lt=new Array;if(at!=null)for(var Ne=0;Ne<at.length;Ne++){var ze=at[Ne].replace(/[=|^==]/,"&").split("&");if(1<ze.length){var Ke=new Array;Ke.push(decodeURIComponent(ze[0])),Ke.push(decodeURIComponent(ze[1])),Lt.push(Ke)}}return Lt},n.call=function(Ze,at,Lt){at==null?at="{}":typeof at=="string"?at.length==0?at="{}":at[0]=="["&&at[at.length-1]=="]"||at[0]=="{"&&at[at.length-1]=="}"||(at='"'+(at=at.replace(/"/g,"'"))+'"'):at=typeof at=="object"?JSON.stringify(at):"{}",z.MxManager.currentMx().call(Ze,at,Lt)},n.loadCodeToServer=function(Ze,at){z.MxManager.currentMx().loadCodeToServer(Ze,at)},n.getCurrentMx=function(){return z.MxManager.currentMx()},n.isEnableSelect=function(){if(c!=-1)return c==1;var Ze=ht("select");return c=0,Ze!=null&&Ze.toLowerCase()=="y"&&(c=1),c==1},n.is3DDwg=function(){if(x!=-1)return x==1;var Ze=ht("3ddwg");return x=0,Ze!=null&&Ze.toLowerCase()=="y"&&(x=1),x==1},n.isStaticLoad=function(){if(l!=-1)return l==1;var Ze=ht("static");return l=0,Ze!=null&&Ze.toLowerCase()=="y"&&(l=1),l==1},n.enableSelect=function(Ze){c=Ze?1:0},n.enablStaticLoad=function(Ze){l=Ze==null||Ze?1:0},n.dwgDir=function(){return v!=null||(v=ht("dwgdir"))==null&&(v=""),v},n.setDwgDir=function(Ze){v=Ze},n.getStaticServer=function(){return w!=null||(w=ht("staticServer"))==null&&(w=""),w},n.setStaticServer=function(Ze){w=Ze},n.is2dParam=function(){if(s!=null)return s;var Ze=ht("file");if(s=!1,Ze!=null){var at=Ze.substring(Ze.lastIndexOf(".")+1);at.toLowerCase()!="dwg"&&at.toLowerCase()!="dxf"&&at.toLowerCase()!="dwf"&&at.toLowerCase()!="mwg"||(s=!0)}return s},n.set2dParam=function(Ze){s=Ze},n.showLayer=function(Ze,at){return z.MxManager.currentMx().showLayer(Ze,at)},n.screenCoord2World=function(Ze,at,Lt){return Ze instanceof Object?z.MxManager.currentMx().screenCoord2World(Ze.x,Ze.y,Ze.z):z.MxManager.currentMx().screenCoord2World(Ze,at,Lt)},n.worldCoord2Screen=function(Ze,at,Lt){return Ze instanceof Object?z.MxManager.currentMx().worldCoord2Screen(Ze.x,Ze.y,Ze.z):z.MxManager.currentMx().worldCoord2Screen(Ze,at,Lt)},n.docCoord2Cad=function(Ze,at,Lt){return Ze instanceof Object?z.MxManager.currentMx().docCoord2Cad(Ze.x,Ze.y,Ze.z):z.MxManager.currentMx().docCoord2Cad(Ze,at,Lt)},n.cadCoord2Doc=function(Ze,at,Lt){return Ze instanceof Object?z.MxManager.currentMx().cadCoord2Doc(Ze.x,Ze.y,Ze.z):z.MxManager.currentMx().cadCoord2Doc(Ze,at,Lt)},n.docCoord2World=function(Ze,at,Lt){return Ze instanceof Object?z.MxManager.currentMx().docCoord2World(Ze.x,Ze.y,Ze.z):z.MxManager.currentMx().docCoord2World(Ze,at,Lt)},n.worldCoord2Doc=function(Ze,at,Lt){return Ze instanceof Object?z.MxManager.currentMx().worldCoord2Doc(Ze.x,Ze.y,Ze.z):z.MxManager.currentMx().worldCoord2Doc(Ze,at,Lt)},n.screenCoord2Doc=function(Ze,at,Lt){return Ze instanceof Object?z.MxManager.currentMx().screenCoord2Doc(Ze.x,Ze.y,Ze.z):z.MxManager.currentMx().screenCoord2Doc(Ze,at,Lt)},n.docCoord2Screen=function(Ze,at,Lt){return Ze instanceof Object?z.MxManager.currentMx().docCoord2Screen(Ze.x,Ze.y,Ze.z):z.MxManager.currentMx().docCoord2Screen(Ze,at,Lt)},n.docCoordLong2Cad=function(Ze){return z.MxManager.currentMx().docCoordLong2Cad(Ze)},n.cadCoordLong2Doc=function(Ze){return z.MxManager.currentMx().cadCoordLong2Doc(Ze)},n.viewCoordLong2Cad=function(Ze){return z.MxManager.currentMx().viewCoordLong2Cad(Ze)},n.cadCoordLong2View=function(Ze){return z.MxManager.currentMx().cadCoordLong2View(Ze)},n.zoomCenter=function(Ze,at){z.MxManager.currentMx().is2D()&&(z.MxManager.currentMx().zoomCenter(Ze,at),z.MxManager.currentMx().updateDisplay())},n.zoomW=function(Ze,at,Lt,Ne,ze){z.MxManager.currentMx().is2D()&&(z.MxManager.currentMx().zoomW(new A.Vector3(Ze,at,0),new A.Vector3(Lt,Ne,0),ze),z.MxManager.currentMx().updateDisplay())},n.zoomScale=function(Ze){z.MxManager.currentMx().is2D()&&(z.MxManager.currentMx().zoomScale(Ze),z.MxManager.currentMx().updateDisplay())},n.zoomAll=function(){z.MxManager.currentMx().is2D()&&(z.MxManager.currentMx().zoomAll(),z.MxManager.currentMx().updateDisplay())},n.deleteAll=function(){return z.MxManager.currentMx().deleteAll()},n.callCommand=function(Ze,at,Lt){z.MxManager.currentMx().callCommand(Ze,at,Lt)},n.getCurrentColor=function(){return z.MxManager.currentMx().getCurrentColor()},n.setCurrentColor=function(Ze){z.MxManager.currentMx().setCurrentColor(Ze)},n.showLoading=function(){b!=null&&b.ShowLoading()},n.hideLoading=function(){b!=null&&b.HideLoading()},n.showProp=function(Ze){b!=null&&b.ShowObjectProperty(Ze)},n.hideProp=function(){b!=null&&b.HideObjectProp()},n.getUiObject=function(){return b},n.getViewCenterDocCoord=function(){return z.MxManager.currentMx().is2D()?z.MxManager.currentMx().getViewCenterDocCoord():new A.Vector3(0,0,0)},n.screenCoordLong2Doc=function(Ze){return z.MxManager.currentMx().is2D()?z.MxManager.currentMx().screenCoordLong2Doc(Ze):Ze},n.docCoordLong2Screen=function(Ze){return z.MxManager.currentMx().is2D()?z.MxManager.currentMx().docCoordLong2Screen(Ze):Ze},n.worldCoordLong2Doc=function(Ze){return z.MxManager.currentMx().is2D()?z.MxManager.currentMx().worldCoordLong2Doc(Ze):Ze},n.docCoordLong2World=function(Ze){return z.MxManager.currentMx().is2D()?z.MxManager.currentMx().docCoordLong2World(Ze):Ze},n.screenCoordLong2World=function(Ze){return z.MxManager.currentMx().is2D()?z.MxManager.currentMx().screenCoordLong2World(Ze):Ze},n.worldCoordLong2Screen=function(Ze){return z.MxManager.currentMx().is2D()?z.MxManager.currentMx().worldCoordLong2Screen(Ze):Ze},n.addSelectEvent=function(Ze){z.MxManager.addSelectEvent(Ze)},n.clearSelectEvent=function(){z.MxManager.clearSelectEvent()},n.removeThreejsObject=function(Ze,at,Lt){Ze&&(Ze.traverse(function(Ne){(Ne instanceof A.Mesh||Ne instanceof A.Line||Ne instanceof A.LineLoop)&&(Ne.geometry.dispose(),Lt&&(Ne.material instanceof Array?Ne.material.forEach(function(ze){ze.dispose()}):Ne.material.dispose()))}),at.remove(Ze))},n.setOutServerDebugCall=function(Ze){z.MxManager.setOutDebugCall(Ze)},n.updateDisplay=function(){z.MxManager.updateDisplay()},n.getCurrentDraw=De,n.formatString=function(Ze){for(var at=[],Lt=1;Lt<arguments.length;Lt++)at[Lt-1]=arguments[Lt];for(var Ne=0;Ne<at.length;Ne++)Ze=Ze.replace("{"+Ne+"}",at[Ne]);return Ze},n.createMxUiObject=function(Ze){var at;return at=this.isPC()?new B.MxUiObjectPC:new W.MxUiObjectMobile,Ze(b=at),at.create(),at},n.openFile=function(Ze,at){var Lt="";if(typeof Ze=="string"){var Ne=Ve(Ze);Ne&&(Lt=Ne.sUrlParam,Ze=Ne.sFileName)}at==null&&(at=!1);var ze=Be(Ze,at);return ze.is2d&&(s=ze.is2d),Ze=ze.sFileName,z.MxManager.currentMx().openFile(Ze,Lt)},n.createMxObject=function(Ze,at,Lt,Ne,ze,Ke,vt,Ft){E||dn(),typeof Ze=="string"&&(Ze=Ze.length==0?void 0:document.getElementById(Ze));var Ot=null,_t="";if(Ft)at="",(Ot=new V.MxDrawObject2d).initRunMode(G.MxRunMode.kCPPMxCAD),Ot.setViewColor(0);else{if(at==null)at=n.getQueryString("file");else{var Tn=Ve(at);Tn&&(_t=Tn.sUrlParam,at=Tn.sFileName)}var on=Ne==null||Ne;if(at===void 0||at.length==0||at=="empty")on=!0,at=at=="empty"?"":"empty_template.dwg";else{var $n=Be(at,Ke);$n.is2d&&(on=$n.is2d),at=$n.sFileName}ze==1&&(at=""),on?(Ot=new V.MxDrawObject2d).setViewColor(0):(Ot=new ne.MxDrawObject3d).setViewColor(15790320)}return Lt!=null&&Lt(Ot),Ot.create(Ze,at,_t,vt),Ot},n.getMxObjectFormElement=function(Ze){return z.MxManager.getMxObject(Ze)},n.initMxCpp=function(Ze){z.MxManager.initMxCpp(Ze)},n.isRunningCommand=function(){return q.MxJigCmdManager.isRunning()},n.stopRunCommand=He,n.runCommand=function(Ze){return q.MxJigCmdManager.runCmd(Ze)},n.getTHREE=function(){return A},n.getLine=function(Ze){var at=new D.MxJigGetLine;at.setRetCall(Ze),q.MxJigCmdManager.runCmd(at)},n.addCommand=function(Ze,at,Lt){F.MxCmdRunManager.addCommand(Ze,at,Lt)},n.sendStringToExecute=gt,n.getMxEntity=function(Ze){var at=De();return at?at.getMxEntityUserObject(Ze):null},n.initUiDataObject=function(Ze){re.MxUiVue.isNull()&&(Ze.init(n),re.MxUiVue.init(Ze))},n.init=dn,n.addWindowsEvent=function(Ze){fe.MxWindowsEvent.addEvent(Ze)},n.getCurrentMousePostion=function(){return fe.MxWindowsEvent.getCurrentMousePostion()},n.getMxThreeJS=function(){return le.MxThreeJS},n.getMxTools=function(){return me.MxTools},n.getMxCmdRunManager=function(){return F.MxCmdRunManager},n.getMxJigCmdManager=function(){return q.MxJigCmdManager},n.initQuickCommand=function(Ze){F.MxCmdRunManager.InitQuickCommand(Ze)},n.InitLanguageString=function(Ze){F.MxCmdRunManager.InitLanguageString(Ze)},n.getLanguageString=function(Ze,at){return at===void 0&&(at=""),F.MxCmdRunManager.getLanguageString(Ze,at)},n.Assert=function(Ze){Ze||console.log("MxAssert error")},n.setIniset=function(Ze){Te.MxDrawData.setIniset(Ze)},n.setPostMessageToParentFrameFunction=function(Ze){I=Ze},n.postMessageToParentFrame=function(Ze){return I!=null&&(I(Ze),!0)},n.onParentFrameMessage=function(Ze){Ze!=null&&Ze.type!=null&&O[Ze.type]&&O[Ze.type](Ze)},n.acutPrintf=function(Ze){for(var at=[],Lt=1;Lt<arguments.length;Lt++)at[Lt-1]=arguments[Lt];if(!re.MxUiVue.isNull()){for(var Ne=arguments,ze=Ne[0],Ke=0;Ke<Ne.length-1;Ke++){var vt=new RegExp("\\{"+Ke+"\\}","gm");ze=ze.replace(vt,Ne[Ke+1])}re.MxUiVue.AcutPrintfNoFormat(ze,!0)}},n.loadImageMaterial=function(Ze,at){z.MxManager.getMxDbTextureManager().loadImage(Ze,at)},n.loadSVG=function(Ze,at,Lt,Ne){z.MxManager.getMxDbSvgManager().loadSVG(Ze,at,Lt,Ne)},n.initMxDbEntityType=function(Ze){z.MxManager.getMxDbEntityClassHierarchy().init(Ze)},n.initDynamicCreate=function(Ze){z.MxManager.getMxDbEntityClassHierarchy().initDynamic(Ze)},n.ceneratecursor=function(Ze,at,Lt,Ne){Ze===void 0&&(Ze=128),at===void 0&&(at=10),Lt===void 0&&(Lt=!0);var ze=document.createElement("canvas");ze.width=ze.height=Ze,ze.style.background="transparent";var Ke=ze.getContext("2d"),vt=Ze%2==0?-.5:0,Ft=at%2==0?-.5:0;Ke.strokeStyle=Ne||"#fff",Lt&&(Ke.beginPath(),Ke.moveTo(ze.width/2+vt,vt),Ke.lineTo(ze.width/2+vt,ze.height+vt),Ke.stroke(),Ke.beginPath(),Ke.moveTo(vt,ze.height/2+vt),Ke.lineTo(ze.width+vt,ze.height/2+vt),Ke.stroke()),Ke.beginPath(),Ke.strokeRect(Ze/2-at/2+Ft,Ze/2-at/2+Ft,at,at),Ke.stroke();var Ot=new Image;return Ot.src=ze.toDataURL("image/png"),Ot.src},n.getMrxDbgUtilsClass=function(){return it.MrxDbgUtils},n.getNumberColor=function(Ze){return Ze instanceof Object?Ze.getHex&&(Ze=Ze.getHex()):typeof Ze=="string"&&(Ze=parseInt(Ze)),Ze}},{"./MrxDbgUtils":20,"./MxDrawCommands":21,"./MxDrawData":22,"./MxDrawObject":23,"./MxDrawObject2d":24,"./MxDrawObject3d":25,"./MxLocalFileLoad":28,"./MxManager":29,"./MxThreeJS":36,"./MxTools":37,"./MxVersion":39,"./MxWindowsEvent":40,"./Operate/MxCmdRunManager":47,"./Operate/MxJigCmdManager":53,"./Operate/MxJigGetLine":54,"./TempTest/MxTestJig":59,"./UI/MxUiObjectMobile":61,"./UI/MxUiObjectPC":62,"./UI/MxUiVue":63,three:19}],28:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MxLocalDwgFileLoad=r.MxLocalFileLoad=r.MxLocalNodeJs=void 0;var n=t("./MxFun"),o=(s.prototype.init=function(w){this.loadFileCall=w.loadFileFun},s.prototype.loadFile=function(w,_,b,E,I){this.loadFileCall!=null?this.loadFileCall(w,_,b,E,I):I(void 0)},s);function s(){this.loadFileCall=null}r.MxLocalNodeJs=o;var c=(l.prototype.setPath=function(w){this.path=w},l.prototype.setBinary=function(w){this.isBinary=w},l.prototype.load=function(w,_,b,E){n.MxFun.getNodeJs().loadFile(this.path+w,this.isBinary,_,b,E)},l);function l(){this.path="",this.isBinary=!1}r.MxLocalFileLoad=c;var v=(x.prototype.setShowloading=function(w){this._isShowLoading=w},x.prototype.load=function(w,_){var b="$"+_+".mxb1.wgh";this._path=w,this._filename=_;var E=this;this.getFile(this._path,b,!1,function(I){typeof I=="string"?E.net.onStaticHeadMessage(I):console.log("mx error h1")},function(){console.log("mx get "+b+" faild")})},x.prototype.getDatas=function(){if(this._iGet>=this._dataNum)this._isShowLoading&&n.MxFun.hideLoading();else{var w=this._dataType[this._iGet];this._iGet++;var _=this,b=this._iGet+1,E="$"+this._filename+".mxb"+b+".wgh",I=w!=0;this.getFile(this._path,E,I,function(O){_.net.onStaticMessage(O),_.getDatas()},function(){_._dataNum=0,_._iGet=0,_._isShowLoading&&n.MxFun.hideLoading(),console.log("mx get "+E+" faild")})}},x.prototype.onRenderHead=function(w){var _=JSON.parse(w);this._dataType=_.type,this._dataNum=_.count,this._iGet=0,this._isShowLoading&&n.MxFun.showLoading(),this.getDatas()},x.prototype.getFile=function(w,_,b,E,I){var O=new c;O.setPath(w),O.setBinary(b),O.load(_,E,function(){},I)},x);function x(w){this.net=null,this._dataNum=0,this._iGet=0,this._dataType=[],this._path="",this._filename="",this._isShowLoading=!0,this.net=w}r.MxLocalDwgFileLoad=v},{"./MxFun":27}],29:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MxManager=r.MxCpp=r.MxData=void 0;var n,o=t("./View/MxDbEntity"),s=t("./View/MxDbTextureManager"),c=t("./SVGLoader/MxSVGLoader");(n=r.MxData||(r.MxData={})).iSelectRenderOrder=5,n.iCADMeshRenderOrder=10,n.iCADCurveRenderOrder=20,n.iMxEntityRenderOrder=30,n.iGripRenderOrder=110,n.iDynJigRenderOrder=120;var l,v,x,w,_,b,E,I,O,N,A,z=(G.prototype.init=function(V){this.imp=V},G.prototype.getMxCAD_MxCpp=function(){return this.imp},G.prototype.getMxCAD_App=function(){return this.imp.App},G.prototype.newMcGePoint3d=function(V){return this.imp?this.imp.newMcGePoint3d(V):null},G.prototype.decodeFromGb2312=function(V){return this.imp.decodeFromGb2312(V)},G.prototype.encodeToGb2312=function(V){return this.imp.encodeToGb2312(V)},G.prototype.getMcDbCurve=function(V){if(this.imp.App.objectIdIsKindOf(V,"McDbCurve"))return this.imp.App.objectIdToObject(V)},G);function G(){}r.MxCpp=z,l=r.MxManager||(r.MxManager={}),v=[],x=null,_=[],b=void(w=0),E=new s.MxDbTextureManager,I=new c.MxSvgManager,O=new o.MxDbEntityClassHierarchy,N=new z,A={},l.add=function(V){v.push(V)},l.on=function(V,ne){A[V]||(A[V]=[]),A[V].push(ne)},l.callEvent=function(V,ne){var W;if(A[V])return A[V].forEach(function(B){var q=B(ne);W=W||q}),W},l.initMxCpp=function(V){N.init(V)},l.getMxCpp=function(){return N},l.allocId=function(){return++w},l.getMxDbEntityClassHierarchy=function(){return O},l.getMxDbTextureManager=function(){return E},l.getMxDbSvgManager=function(){return I},l.outDebugString=function(V){b==null?console.log(V):b(V)},l.setOutDebugCall=function(V){b=V},l.onLoad=function(){for(var V in v)v[V].onLoad("")},l.updateDisplay=function(){for(var V in v)v[V].updateDisplay()},l.currentMx=function(){return x},l.setCurrentMx=function(V){x=V},l.initResize=function(){for(var V in v)v[V].initResize()},l.addSelectEvent=function(V){_.push(V)},l.clearSelectEvent=function(){_=[]},l.callSelectObject=function(V){for(var ne in _)if(_[ne](V)==1)break},l.getMxObject=function(V){if(typeof V=="number"){for(var ne in v)if(v[ne].getId()===V)return v[ne]}else for(var ne in v)if(v[ne].getCanvas()===V)return v[ne];return null}},{"./SVGLoader/MxSVGLoader":57,"./View/MxDbEntity":67,"./View/MxDbTextureManager":72}],30:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MxMaterial=void 0;var n=t("three");(function(o){o.shaderUniforms={crAmbient:{value:new n.Vector3(1,0,0)},crDiffuse:{value:new n.Vector3(1,0,0)},crSpecular:{value:new n.Vector3(1,0,0)}},o.m_arrSystemColors=new Array(0,16711680,16776960,65280,65535,255,16711935,16777215,8421504,12632256,16711680,16744319,13369344,13395558,10027008,10046540,8323072,8339263,4980736,4990502,16727808,16752511,13382400,13401958,10036736,10051404,8331008,8343359,4985600,4992806,16744192,16760703,13395456,13408614,10046464,10056268,8339200,8347455,4990464,4995366,16760576,16768895,13408512,13415014,10056192,10061132,8347392,8351551,4995328,4997670,16776960,16777087,13421568,13421670,10066176,10066252,8355584,8355647,5000192,5000230,12582656,14679935,10079232,11717734,7510272,8755532,6258432,7307071,3755008,4344870,8388352,12582783,6736896,10079334,5019904,7510348,4161280,6258495,2509824,3755046,4194048,10485631,3394560,8375398,2529536,6265164,2064128,5209919,1264640,3099686,65280,8388479,52224,6736998,39168,5019980,32512,4161343,19456,2509862,65343,8388511,52275,6737023,39206,5019999,32543,4161359,19475,2509871,65407,8388543,52326,6737049,39244,5020018,32575,4161375,19494,2509881,65471,8388575,52377,6737074,39282,5020037,32607,4161391,19513,2509890,65535,8388607,52428,6737100,39321,5020057,32639,4161407,19532,2509900,49151,8380415,39372,6730444,29337,5014937,24447,4157311,14668,2507340,32767,8372223,26316,6724044,19609,5010073,16255,4153215,9804,2505036,16383,8364031,13260,6717388,9881,5005209,8063,4149119,4940,2502476,255,8355839,204,6710988,153,5000345,127,4145023,76,2500172,4129023,10452991,3342540,8349388,2490521,6245529,2031743,5193599,1245260,3089996,8323327,12550143,6684876,10053324,4980889,7490713,4128895,6242175,2490444,3745356,12517631,14647295,10027212,11691724,7471257,8735897,6226047,7290751,3735628,4335180,16711935,16744447,13369548,13395660,10027161,10046617,8323199,8339327,4980812,4990540,16711871,16744415,13369497,13395634,10027122,10046597,8323167,8339311,4980793,4990530,16711807,16744383,13369446,13395609,10027084,10046578,8323135,8339295,4980774,4990521,16711743,16744351,13369395,13395583,10027046,10046559,8323103,8339279,4980755,4990511,3355443,5987163,8684676,11382189,14079702,16777215),o.m_arrDefUseMaterials=new Array(null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null),o.m_arrDefUseCurveMaterials=new Array(null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null),o.m_arrDefUseBasicMaterials=new Array(null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null),o.m_selectMaterial=new n.MeshPhongMaterial({color:255,opacity:.2,transparent:!0,side:n.DoubleSide}),o.m_mouseMoveMaterial=new n.MeshPhongMaterial({color:16776960,side:n.DoubleSide}),o.m_lockedMaterial=new n.MeshPhongMaterial({color:197379,side:n.DoubleSide}),o.m_samplePoints=new n.PointsMaterial({color:255,depthTest:!1,size:8}),o.m_samplePointsMouseMove=new n.PointsMaterial({color:16711680,depthTest:!1,size:12});var s=new n.MeshBasicMaterial({color:16777215,transparent:!0,depthTest:!1,side:n.DoubleSide,opacity:1,stencilWrite:!1,colorWrite:!1});o.getStencilMaterial=function(){return s},o.GetColorByIndex=function(c){return o.m_arrSystemColors[c]},o.GetColorMaterial=function(c){var l=o.m_arrDefUseMaterials[c];return l===null&&(l=new n.MeshLambertMaterial({color:o.m_arrSystemColors[c],side:n.DoubleSide}),o.m_arrDefUseMaterials[c]=l),l},o.GetBaseColorMaterial=function(c){var l=o.m_arrDefUseBasicMaterials[c];return l===null&&(l=new n.MeshBasicMaterial({color:o.m_arrSystemColors[c],side:n.DoubleSide}),o.m_arrDefUseMaterials[c]=l),l},o.GetCurveColorMaterial=function(c){var l=o.m_arrDefUseCurveMaterials[c];return l===null&&(l=new n.LineBasicMaterial({color:o.m_arrSystemColors[c],linewidth:1}),o.m_arrDefUseCurveMaterials[c]=l),l},o.GetSelectMaterial=function(){return o.m_selectMaterial},o.GetMouseMoveMaterial=function(){return o.m_mouseMoveMaterial},o.GetLockedMaterial=function(){return o.m_lockedMaterial},o.GetSamplePointsMaterial=function(){return o.m_samplePoints},o.GetSamplePointsMouseMoveMaterial=function(){return o.m_samplePointsMouseMove},o.createMaterial=function(c){var l=void 0;if(c==null)return l;function v(x,w){if(w.map!=null){var _=w.map,b=new n.TextureLoader().load(_);b.wrapS=b.wrapT=n.RepeatWrapping,x.map=b,x.side=n.DoubleSide}}return c.transparent!=0?c.transparent=!0:c.transparent=!1,c.name=="MeshPhongMaterial"?v(l=new n.MeshPhongMaterial(c),c):c.name=="MeshBasicMaterial"?v(l=new n.MeshBasicMaterial(c),c):c.name=="MeshDepthMaterial"?v(l=new n.MeshDepthMaterial(c),c):c.name=="MeshNormalMaterial"?v(l=new n.MeshNormalMaterial(c),c):c.name=="MeshLambertMaterial"?v(l=new n.MeshLambertMaterial(c),c):c.name=="MeshStandardMaterial"&&v(l=new n.MeshStandardMaterial(c),c),l}})(r.MxMaterial||(r.MxMaterial={}))},{three:19}],31:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MxHFileLoad=r.MxNet=r.MxNetBinMessageType=r.MxNetSend=r.MxNetMessage=r.MxNetMessageType=r.MxNetData=void 0;var n,o,s=t("three"),c=t("./MxFun"),l=t("pako"),v=t("./MxManager"),x=t("./MxDrawData"),w=(_.prototype.getId=function(){return this._dataView.getInt32(4,!0)},_.prototype.getVersion_MwBlobHead=function(){return this._dataView.getInt32(60,!0)},_.prototype.getVersion_MwBlobHeadDynLen=function(){return this._dataView.getInt32(4,!0)},_.prototype.getdPointCurveBuffersHead=function(){var W={};return W.ver=this._dataView.getInt32(4,!0),W.databaseIndex=this._dataView.getInt32(8,!0),W.zeroLayerIdIndex=this._dataView.getInt32(16,!0),W.datacount=this._dataView.getInt32(20,!0),W.datasize=this._dataView.getInt32(24,!0),W},_.prototype.getdPointMeshBuffersHead=function(){var W={};return W.ver=this._dataView.getInt32(4,!0),W.databaseIndex=this._dataView.getInt32(8,!0),W.id=this._dataView.getInt32(12,!0),W.zeroLayerIdIndex=this._dataView.getInt32(16,!0),W.datacount=this._dataView.getInt32(20,!0),W.datasize=this._dataView.getInt32(24,!0),W},_.prototype.getdPointTextureBuffersHead=function(){var W={};return W.ver=this._dataView.getInt32(4,!0),W.databaseIndex=this._dataView.getInt32(8,!0),W.zeroLayerIdIndex=this._dataView.getInt32(16,!0),W.datacount=this._dataView.getInt32(20,!0),W.datasize=this._dataView.getInt32(24,!0),W},_.prototype.getBlobHeadForMemorySectionsHead=function(W){var B={};return B.type=this._dataView.getInt32(W,!0),W+=4,B.ver=this._dataView.getInt32(W,!0),W+=4,B.databaseIndex=this._dataView.getInt32(W,!0),W+=4,B.nOffset=W,B},_.prototype.getMemorySectionsHead=function(){var W=this.getBlobHeadForMemorySectionsHead(0);return W.zeroLayerIdIndex=this._dataView.getInt32(W.nOffset,!0),W.nOffset+=4,W.datacount=this._dataView.getInt32(W.nOffset,!0),W.nOffset+=4,W.datasize=this._dataView.getInt32(W.nOffset,!0),W.nOffset+=4,W.datasize!=W.nOffset&&console.log("mx: sectionshead size assert(0)"),W},_.prototype.getMemorySectionHead=function(W){var B=this.getBlobHeadForMemorySectionsHead(W);return W=B.nOffset,B.pointCount=this._dataView.getInt32(W,!0),W+=4,B.layerId=this._dataView.getInt32(W,!0),W+=4,B.blkId=this._dataView.getInt32(W,!0),W+=4,B.memColor=this._dataView.getInt32(W,!0),W+=4,B.memId=this._dataView.getInt32(W,!0),W+=4,B.memType=this._dataView.getInt32(W,!0),W+=4,B.offset=W,B},_.prototype.getdPointTextureBufferDataHead=function(W){W+=4,W+=4,W+=4;var B={};return B.dataCount=this._dataView.getInt32(W,!0),W+=4,B.layerId=this._dataView.getInt32(W,!0),W+=4,B.blkId=this._dataView.getInt32(W,!0),W+=4,B.offset=W,B},_.prototype.getdPointCurveBufferDataHead=function(W){W+=4,W+=4,W+=4;var B={};return B.pointCount=this._dataView.getInt32(W,!0),W+=4,B.layerId=this._dataView.getInt32(W,!0),W+=4,B.blkId=this._dataView.getInt32(W,!0),W+=4,B.offset=W,B},_.prototype.getdPointMeshBufferDataHead=function(W){W+=4,W+=4,W+=4;var B={};return B.pointCount=this._dataView.getInt32(W,!0),W+=4,B.layerId=this._dataView.getInt32(W,!0),W+=4,B.blkId=this._dataView.getInt32(W,!0),W+=4,B.offset=W,B},_.prototype.getDatabaseIndex=function(){return this._dataView.getInt32(8,!0)},_.prototype.getColorIndex=function(){return this._dataView.getInt32(24,!0)},_.prototype.getBufferType=function(){return this._dataView.getInt32(32,!0)},_.prototype.getIsSketchEntity=function(){return this._dataView.getInt32(40,!0)},_.prototype.getLayerId=function(){return this._dataView.getInt32(44,!0)},_.prototype.getBlockId=function(){return this._dataView.getInt32(48,!0)},_.prototype.getVertexBufferSize=function(){return this._dataView.getInt32(12,!0)},_.prototype.getIndexBufferSize=function(){return this._dataView.getInt32(16,!0)},_.prototype.getZeroLayerId=function(){return this._dataView.getInt32(52,!0)},_.prototype.getSelectMark=function(){return this._dataView.getInt32(56,!0)},_.prototype.getMateria=function(){var W=this._dataView.getInt32(36,!0);if(W==0)return"";for(var B=[],q=0;q<W;q++){var D=String.fromCharCode(this._dataView.getUint8(80+q));B.push(D)}return B.join("")},_.prototype.getDrawDataOffset=function(){return this._dataView.getInt32(36,!0)+80},_.prototype.getMesh=function(){var W=this._dataView.getInt32(4,!0),B=this._dataView.getInt32(32,!0)==0,q={},D=this._dataView.getInt32(12,!0),F=this._dataView.getInt32(16,!0);if(D===0||F===0)return q.size=80,q;var re,le=new s.Geometry,fe=80;re=B?D/4/8:D/4/2;for(var me=0;me<re;me++){var ye=this._dataView.getFloat32(fe+0,!0),Te=this._dataView.getFloat32(fe+4,!0),ke=0;B?(ke=this._dataView.getFloat32(fe+8,!0),this._dataView.getFloat32(fe+12,!0),this._dataView.getFloat32(fe+16,!0),this._dataView.getFloat32(fe+20,!0),this._dataView.getFloat32(fe+24,!0),this._dataView.getFloat32(fe+28,!0),fe+=32):fe+=8;var Le=new s.Vector3(ye,Te,ke);le.vertices.push(Le)}var et=F/4;for(me=0;me<et;me+=3){var it=this._dataView.getInt32(fe,!0);fe+=4;var Ue=this._dataView.getInt32(fe,!0);fe+=4;var ht=this._dataView.getInt32(fe,!0);fe+=4;var De=new s.Face3(it,Ue,ht);le.faces.push(De)}var Be=this.getIsSketchEntity();return q.size=fe,q.geometry=le,q.id=W,q.isSketchEntity=Be,q.nColorIndex=this._dataView.getInt32(24,!0),q},_.prototype.getCurve=function(W){var B,q=this._dataView.getInt32(32,!0),D=this.getIsSketchEntity(),F=q==0,re={};if((B=F?this._dataView.getInt32(20,!0)/4/3:this._dataView.getInt32(20,!0)/4/2)<2)return re;for(var le=new s.Geometry,fe=W,me=0;me<B;me++){var ye=this._dataView.getFloat32(fe,!0);fe+=4;var Te=this._dataView.getFloat32(fe,!0);fe+=4;var ke=0;F&&(ke=this._dataView.getFloat32(fe,!0),fe+=4),le.vertices.push(new s.Vector3(ye,Te,ke))}var Le=this._dataView.getInt32(4,!0);return re.size=fe,re.geometry=le,re.id=Le,re.isSketchEntity=D,re.colorIndex=this._dataView.getInt32(28,!0),re},_);function _(W){this._dataView=W}r.MxNetData=w,(o=n=r.MxNetMessageType||(r.MxNetMessageType={})).kAddLayer="00000007",o.kClearLayer="00000008",o.kHideLayer="00000009",o.kShowLayer="00000010",o.kUpdateDisplayRange="00000011",o.kCallJsReturn="00000012",o.kLayerData="00000013",o.kSendDebugString="00000014",o.kShowLoading="00000015",o.kHideLoading="00000016",o.kSelectObject="00000017",o.kGlRenderHead="00000018",o.kUserLoginResult="00000019",o.kOpenFileResult="00000020",o.kServerReturn="00000021",o.kMxCADLayerData="00000056",o.kMxCADSystemVariable="00000057";var b=(E.prototype.setJsRetCall=function(W,B,q){this.serverJsRetCall.set(B+q,W)},E.prototype.onSocketErrort=function(){this.serverJsRetCall.forEach(function(W){W(void 0)}),this.serverJsRetCall=new Map},E.prototype.Do=function(W){var B=this.net.getCurrentDatabaseId();if(B==-1){var q=W.substring(0,4);B=parseInt(q)}var D=W.substring(4,12),F=W.substring(12);return this.messageCall[D]!=null&&(this.messageCall[D](F,B),!0)},E);function E(W,B){this.messageCall=new Map,this.serverJsRetCall=new Map,this.net=null,this.net=B;var q=this;this.messageCall[n.kUpdateDisplayRange]=function(D){if(!q.net.isTzDwgStaticFile()){D=D.replace(/\\/g,"\\\\");try{var F=JSON.parse(D);if(F!=null&&W.is2D()){W.initCAD2Doc(new s.Matrix4),F.newbrownermode?F.DToSMat?x.MxDrawData.m_isCorrectLargeCoordinates?(W.intiDoc2Wold(new s.Matrix4),W.initCAD2Doc(F.DToSMat)):W.intiDoc2Wold(F.DToSMat):W.intiDoc2Wold(new s.Matrix4):W.intiDoc2Wold(F.DToWMat),W.initializingObjectMatrix(),W.updateCameraDisplayRange(new s.Vector3(+F.pt1[0],+F.pt1[1],+F.pt1[2]),new s.Vector3(+F.pt2[0],+F.pt2[1],+F.pt2[2]),+F.viewangle),W.initAllLayoutName(F.layout),W.updateDisplay(!0);var re=c.MxFun.getUiObj();re!=null&&(re.SetLayoutData(F.layout),re.UpDisplayLayout())}}catch(le){console.log("UpdateDisplayRange exception")}}},this.messageCall[n.kCallJsReturn]=function(D){if(D.length!=0){var F=JSON.parse(D);F.cmd.length==0&&(F.cmd="__mx_loadcode");var re=F.cmd+F.count,le=q.serverJsRetCall.get(re);le&&(q.serverJsRetCall.delete(re),typeof F.ret=="string"&&(F.ret=F.ret.replace(/\'/g,'"')),le(F.ret))}else console.log("assert(0),kCallJsReturn return empty")},this.messageCall[n.kSendDebugString]=function(D){v.MxManager.outDebugString(D)},this.messageCall[n.kUserLoginResult]=function(D){W.userLoginResult(D)},this.messageCall[n.kOpenFileResult]=function(D){W.openFileResult(D)},this.messageCall[n.kServerReturn]=function(D){W.serverReturn(D)},this.messageCall[n.kShowLoading]=function(D){q.net.isTzDwgStaticFile()||c.MxFun.showLoading()},this.messageCall[n.kHideLoading]=function(D){q.net.isTzDwgStaticFile()||(c.MxFun.hideLoading(),W.callInitCompleteEvent())},this.messageCall[n.kSelectObject]=function(D){var F=JSON.parse(D);v.MxManager.callSelectObject(parseInt(F.id))},this.messageCall[n.kGlRenderHead]=function(D){W.isStaticLocalLoad()?W.getStaticLocalNet().onRenderHead(D):(q.net.isTzDwgStaticFile()?W.getStaticLoadTzNet():W.getStaticNet()).onRenderHead(D)},this.messageCall[n.kMxCADSystemVariable]=function(D,F){W.sysVariable().OnMessageMxCADSystemVariable(D)},this.messageCall[n.kLayerData]=function(D,F){if(F==0){if(W.addLayerInfoComplete(),(me=JSON.parse(D))!=null){if(!me.isSketch){var re=me.list;for(var le in re)W.addLayerInfo(re[le].id,re[le].colorvalue,re[le].name),re[le].zerolayer==1&&W.setZeroLayerId(re[le].id)}me.isSketch||W.callEvent("uiSetLayerData",me.list);var fe=c.MxFun.getUiObj();fe!=null&&(me.isSketch?fe.SetSketchLayerData(me.list):fe.SetLayerData(me.list),fe.UpDisplayLayer())}}else{var me,ye=W.getExtRefManager().getLayers(F);if(ye.initComplete(),(me=JSON.parse(D))!=null)for(var le in re=me.list)ye.add(re[le].id,re[le].colorvalue,re[le].name),re[le].zerolayer==1&&ye.setZeroLayerId(re[le].id)}}}r.MxNetMessage=b;var I,O,N=(A.prototype.setWebSocket=function(W){this._webSocket=W},A.prototype.UndoMark=function(){this._webSocket!=null&&this._webSocket.send(this.SendType.kUndoMark+"")},A.prototype.DoCommand=function(W,B,q){this._webSocket!=null&&(q!=null?(this._callCount++,200<this._callCount&&(this._callCount=1),this._msg.setJsRetCall(q,W,this._callCount),B==null&&(B=""),this._webSocket.send(this.SendType.kCmdEx+","+W+","+this._callCount+","+B)):B==null?this._webSocket.send(this.SendType.kCmd+","+W):this._webSocket.send(this.SendType.kCmd+","+W+","+B))},A.prototype.OpenFile=function(W){this._webSocket!=null&&this._webSocket.send(this.SendType.kOpenFile+","+W)},A.prototype.UserLogin=function(W,B,q){if(this._webSocket!=null){var D={};D.IdentitySign=W,D.RandomToken=B==null?"":B,D.Init=q==null?"":q,this._webSocket.send(this.SendType.kUserLogin+","+JSON.stringify(D))}},A.prototype.Init=function(W){this._webSocket!=null&&this._webSocket.send(this.SendType.kInit+","+W)},A.prototype.CallServerJS=function(W,B,q){this._webSocket!=null&&(q==null?B==null||B==null||B.length==0?this._webSocket.send(this.SendType.kCallJS+',{"command":"'+W+'","param":"{}"}'):this._webSocket.send(this.SendType.kCallJS+',{"command":"'+W+'","param":'+B+"}"):(this._callCount++,200<this._callCount&&(this._callCount=1),this._msg.setJsRetCall(q,W,this._callCount),B==null||B==null||B.length==0?this._webSocket.send(this.SendType.kCallJS+',{"command":"'+W+'","param":"{}","count":"'+this._callCount+'"}'):this._webSocket.send(this.SendType.kCallJS+',{"command":"'+W+'","param":'+B+',"count":"'+this._callCount+'"}')))},A.prototype.CallLoadCodeToServer=function(W,B){this._webSocket!=null&&(this._msg.setJsRetCall(B,"__mx_loadcode",0),W!=null&&W!=null&&W.length!=0&&this._webSocket.send(this.SendType.kCallJS+","+W))},A.prototype.DeleteObject=function(W){this._webSocket!=null&&this._webSocket.send(this.SendType.kDelete+","+W)},A.prototype.SelectObject=function(W){this._webSocket!=null&&this._webSocket.send(this.SendType.kSelect+","+W)},A.prototype.QuitSelectObject=function(W){this._webSocket!=null&&this._webSocket.send(this.SendType.kQuitSelect+","+W)},A.prototype.SendDragDrawEntity=function(W){this._webSocket!=null&&this._webSocket.send(this.SendType.kAddDragDraw+","+W)},A.prototype.SendDragDrawRequest=function(){this._webSocket!=null&&(this.SendMousePickRay(),this._webSocket.send(this.SendType.kRequestDragDraw))},A.prototype.SendDragDrawDetermine=function(){this._webSocket!=null&&(this.SendMousePickRay(),this._webSocket.send(this.SendType.kDetermineDragDraw))},A.prototype.SendDragDrawCancel=function(){this._webSocket!=null&&this._webSocket.send(this.SendType.kCancelDragDraw)},A.prototype.SendMousePickRay=function(){this._webSocket},A);function A(W,B){this.SendType={},this._callCount=1,this._webSocket=W,this._msg=B,this.SendType.kCmd=0,this.SendType.kDelete=1,this.SendType.kSelect=2,this.SendType.kOpenFile=3,this.SendType.kGetDemoList=4,this.SendType.kCallJS=5,this.SendType.kAddDragDraw=6,this.SendType.kRequestDragDraw=7,this.SendType.kMousePickRay=8,this.SendType.kDetermineDragDraw=9,this.SendType.kCancelDragDraw=10,this.SendType.kQuitSelect=11,this.SendType.kInit=12,this.SendType.kCmdEx=13,this.SendType.kUserLogin=14,this.SendType.kUndoMark=15}r.MxNetSend=N,(O=I=r.MxNetBinMessageType||(r.MxNetBinMessageType={})).eBlockRef=10,O.eEntitysData=14,O.eAddEntityFor2dPointTextureBuffers=15,O.eMxNewMemorySections=16,O.kMxCADBlockRef=56,O.kMxCADMemorySections=57,O.kMxCADMemorySectionsFromChange=59,O.kMxCADNotUseMemorySectionsForChage=61,O.kMxCADEntityDisplayDatas=62;var z=(G.prototype.setCurrentDatabaseId=function(W){this._iCurrentDatabaseId=W},G.prototype.getMxDrawObject=function(){return this._mx},G.prototype.getCurrentDatabaseId=function(){return this._iCurrentDatabaseId},G.prototype.isTzDwgStaticFile=function(){return this._iCurrentDatabaseId!=-1},G.prototype.onBinMessage=function(W){var B=this._mx,q=l.inflate(W),D=new DataView(q.buffer),F=D.getInt32(0,!0);this._binMessageCall.has(F)?this._binMessageCall.get(F)(D,this._iCurrentDatabaseId):(this._iCurrentDatabaseId==-1&&(F==0?B.mxWebAddEntity(D):F==6?B.removeEntityFromServer(D):F==11&&B.getExtRefManager().createExternalReferences(D)),F==12?B.mxWebAddEntityFor2dPointCurveBuffers(D,this._iCurrentDatabaseId):F==13?B.mxWebAddEntityFor2dPointMeshBuffers(D,this._iCurrentDatabaseId):F==8?B.mxWebAddEntityFor2dPointCurveBuffer(D,this._iCurrentDatabaseId):F==9?B.mxWebAddEntityFor2dPointMeshBuffer(D,this._iCurrentDatabaseId):F==I.eBlockRef&&B.mxWebCreateAllBlocks(D,this._iCurrentDatabaseId))},G.prototype.socket_onErrort=function(){this._msg.onSocketErrort()},G.prototype.socket_onMessageImp=function(W,B){if(B===void 0&&(B=!1),typeof W=="string")this._msg.Do(W);else if(B)this.onBinMessage(W);else{var q=new FileReader;q.readAsArrayBuffer(W);var D=this;q.onload=function(F){D._mx.updateDisplay(),D.onBinMessage(q.result)}}this._mx.updateDisplay()},G.prototype.initBinMessage=function(){var W=this._mx;this._binMessageCall.set(I.eEntitysData,function(B,q){W.mxWebEntitysData(B,q)}),this._binMessageCall.set(I.eAddEntityFor2dPointTextureBuffers,function(B,q){W.mxWebAddEntityFor2dPointTextureBuffers(B,q)}),this._binMessageCall.set(I.eMxNewMemorySections,function(B,q){W.mxWebAddEntityForMemorySections(B,q)})},G.prototype.init=function(W,B){var q=this;this._mx=W,this._msg=new b(W,this),this.initBinMessage(),B&&(this._webSocket=new WebSocket(c.MxFun.getMxServer()),this._webSocket.onopen=function(){var D=q._mx.getIniParam();if(D.length!=0){for(var F="{",re=D.length,le=0;le<re;le++)F=le==0?F+'"'+D[le][0]+'":"'+D[le][1]+'"':F+',"'+D[le][0]+'":"'+D[le][1]+'"';F+="}",q._send.Init(F)}},this._webSocket.onmessage=function(D){q.socket_onMessageImp(D.data)},this._webSocket.onerror=function(){console.log("mx: socket error"),q.socket_onErrort()}),this._send=new N(this._webSocket,this._msg)},G.prototype.closeWebSocket=function(){this._webSocket&&(this._send.setWebSocket(null),this._webSocket.close(),this._webSocket=null)},G.prototype.getOnMessage=function(){return this._msg},G.prototype.getSend=function(){return this._send},G.prototype.onStaticMessage=function(W){try{return this.socket_onMessageImp(W,!0),!0}catch(B){return console.log("mx file data error!"),console.log(B),!1}},G.prototype.onStaticHeadMessage=function(W){return typeof W=="string"&&this._msg.Do(W)},G);function G(){this._webSocket=null,this._send=null,this._msg=null,this._mx=null,this._binMessageCall=new Map,this._iCurrentDatabaseId=-1}r.MxNet=z;var V=(ne.prototype.stopAllLoading=function(){this._isStopLoading||(this._isStopLoading=!0,this._isShowLoading&&c.MxFun.hideLoading())},ne.prototype.setShowloading=function(W){this._isShowLoading=W},ne.prototype.showLoading=function(){this._isShowLoading&&c.MxFun.showLoading()},ne.prototype.hideLoading=function(W){this._isStopLoading||(this._isShowLoading&&c.MxFun.hideLoading(),this.net.getMxDrawObject().callInitCompleteEvent(),this.net.getMxDrawObject().callOpenFileComplete(W))},ne.prototype.setRequestHeader=function(W){this._requestHeader=W},ne.prototype.setUrlParam=function(W){this._urlParam=W},ne.prototype.load=function(W,B){var q=c.MxFun.curPath(),D=c.MxFun.dwgDir(),F=c.MxFun.getStaticServer(),re="/buf/";if(W.substring(W.lastIndexOf(".")+1).toLowerCase()=="wgh"){re="/";var le=W.substring(0,W.indexOf(".mxb1.wgh")).split("/");(W=le.length==1?le[0]:(F=W.substring(0,W.lastIndexOf("/")),le[le.length-1]))[0]=="$"&&(W=W.substring(1))}var fe="$"+(W=encodeURIComponent(W))+".mxb1.wgh";F.length!=0?q=F+re:D.length!=0?q=q+"/"+D+re:q+=re,this._path=q,this._filename=W,1<(this._staticLoadingOpenFiles=B).length&&(fe=B[0],this._path=void 0);var me=this;this.getFile(this._path,fe,function(ye){if(!me._isStopLoading)return typeof ye!="string"?(console.log("mx error h1"),void me.hideLoading(4)):me.net.onStaticHeadMessage(ye)?void 0:(console.log("mx error h1:"+ye),void me.hideLoading(2))},function(){me.hideLoading(3),console.log("mx get "+fe+" faild")})},ne.prototype.getData=function(){if(this._isStopLoading)this.hideLoading(5);else if(this._iGet>=this._dataNum)this.hideLoading(0);else{var W=this._dataType[this._iGet];this._iGet++;var B=this,q=this._iGet+1,D="$"+this._filename+".mxb"+q+".wgh";if(1<this._staticLoadingOpenFiles.length){if(this._iGet>=this._staticLoadingOpenFiles.length)return console.log("Mx staticLoadingOpenFiles error!"),void this.hideLoading(7);D=this._staticLoadingOpenFiles[this._iGet]}var F=D;this._path&&(F=this._path+D);var re=F.substring(0,F.lastIndexOf("/")+1);if(this.net.getMxDrawObject().setCurrentLoadUrl(re),W==0)this.getFile(this._path,D,function(me){B._isStopLoading||(B.net.onStaticMessage(me)||(console.log(this._path),console.log(D)),B.getData())},function(){B._dataNum=0,B._iGet=0,B.hideLoading(8),console.log("mx get "+D+" faild")});else{var le=new XMLHttpRequest,fe=D;this._path&&(fe=this._path+D),this._urlParam.length!=0?le.open("GET",fe+this._urlParam):le.open("GET",fe),x.MxDrawData.m_isRequestHeaderCacheControl&&le.setRequestHeader("Cache-Control","max-age=7200"),this._requestHeader.length!=0&&le.setRequestHeader("usertoken",this._requestHeader),le.responseType="arraybuffer",le.onload=function(){B._isStopLoading||(B.net.onStaticMessage(le.response)||console.log(fe),B.getData())},le.addEventListener("error",function(me){B._dataNum=0,B._iGet=0,B.hideLoading(9),console.log("mx get "+D+" faild")},!1),le.send()}}},ne.prototype.onRenderHead=function(W){if(!this._isStopLoading){var B=JSON.parse(W);this._dataType=B.type,this._dataNum=B.count,this._iGet=0,this.showLoading(),this.getData()}},ne.prototype.getFile=function(W,B,q,D){var F=new s.FileLoader(this.manager);F.setPath(W);var re=B;this._urlParam.length!=0&&(re=B+this._urlParam),this._requestHeader.length!=0&&(F.requestHeader={usertoken:this._requestHeader}),F.load(re,q,function(){},D)},ne);function ne(W,B){this.net=null,this.manager=null,this._dataNum=0,this._iGet=0,this._dataType=[],this._path="",this._filename="",this._staticLoadingOpenFiles=[],this._isShowLoading=!0,this._requestHeader="",this._isStopLoading=!1,this._urlParam="",this.net=W,this.manager=B!==void 0?B:s.DefaultLoadingManager}r.MxHFileLoad=V},{"./MxDrawData":22,"./MxFun":27,"./MxManager":29,pako:1,three:19}],32:[function(t,e,r){var n;Object.defineProperty(r,"__esModule",{value:!0}),r.MxShader=void 0,(n=r.MxShader||(r.MxShader={})).VSHADER_COLOR_POINT=` precision highp float;
  2987. uniform mat4 modelViewMatrix;
  2988. uniform mat4 projectionMatrix;
  2989. attribute vec2 position;
  2990. attribute vec3 color;
  2991. attribute vec4 tran1;
  2992. attribute vec4 tran2;
  2993. attribute vec4 tran3;
  2994. attribute vec4 tran4;
  2995. attribute float ishide;
  2996. varying vec4 vColor;
  2997. void main(){
  2998. mat4 tran;
  2999. tran[0][0] = tran1.x;tran[0][1] = tran1.y;tran[0][2] = tran1.z;tran[0][3] = tran1.w;
  3000. tran[1][0] = tran2.x;tran[1][1] = tran2.y;tran[1][2] = tran2.z;tran[1][3] = tran2.w;
  3001. tran[2][0] = tran3.x;tran[2][1] = tran3.y;tran[2][2] = tran3.z;tran[2][3] = tran3.w;
  3002. tran[3][0] = tran4.x;tran[3][1] = tran4.y;tran[3][2] = tran4.z;tran[3][3] = tran4.w;
  3003. if(ishide > 0.1)
  3004. vColor = vec4(color,0.0);
  3005. else
  3006. vColor = vec4(color,1.0);
  3007. gl_Position = projectionMatrix * modelViewMatrix * tran * vec4( position.x,position.y,0.0, 1.0 );
  3008. }
  3009. `,n.VSHADER_COLOR_POINT_BYLAYER=` precision highp float;
  3010. uniform mat4 modelViewMatrix;
  3011. uniform mat4 projectionMatrix;
  3012. uniform vec3 color;
  3013. attribute vec2 position;
  3014. attribute vec4 tran1;
  3015. attribute vec4 tran2;
  3016. attribute vec4 tran3;
  3017. attribute vec4 tran4;
  3018. attribute float ishide;
  3019. varying vec4 vColor;
  3020. void main(){
  3021. mat4 tran;
  3022. tran[0][0] = tran1.x;tran[0][1] = tran1.y;tran[0][2] = tran1.z;tran[0][3] = tran1.w;
  3023. tran[1][0] = tran2.x;tran[1][1] = tran2.y;tran[1][2] = tran2.z;tran[1][3] = tran2.w;
  3024. tran[2][0] = tran3.x;tran[2][1] = tran3.y;tran[2][2] = tran3.z;tran[2][3] = tran3.w;
  3025. tran[3][0] = tran4.x;tran[3][1] = tran4.y;tran[3][2] = tran4.z;tran[3][3] = tran4.w;
  3026. if(ishide > 0.1)
  3027. vColor = vec4(color,0.0);
  3028. else
  3029. vColor = vec4(color,1.0);
  3030. gl_Position = projectionMatrix * modelViewMatrix * tran * vec4( position.x,position.y,0.0, 1.0 );
  3031. }
  3032. `,n.FSHADER_COLOR_POINT=` precision highp float;
  3033. varying vec4 vColor;
  3034. void main() {
  3035. gl_FragColor = vColor;
  3036. }
  3037. `,n.VSHADER_COLOR_POINT_TEXTURE=` precision highp float;
  3038. uniform mat4 modelViewMatrix;
  3039. uniform mat4 projectionMatrix;
  3040. attribute vec2 position;
  3041. attribute vec2 uv;
  3042. attribute vec4 tran1;
  3043. attribute vec4 tran2;
  3044. attribute vec4 tran3;
  3045. attribute vec4 tran4;
  3046. varying vec2 vUv;
  3047. void main(){
  3048. vUv = uv;
  3049. mat4 tran;
  3050. tran[0][0] = tran1.x;tran[0][1] = tran1.y;tran[0][2] = tran1.z;tran[0][3] = tran1.w;
  3051. tran[1][0] = tran2.x;tran[1][1] = tran2.y;tran[1][2] = tran2.z;tran[1][3] = tran2.w;
  3052. tran[2][0] = tran3.x;tran[2][1] = tran3.y;tran[2][2] = tran3.z;tran[2][3] = tran3.w;
  3053. tran[3][0] = tran4.x;tran[3][1] = tran4.y;tran[3][2] = tran4.z;tran[3][3] = tran4.w;
  3054. gl_Position = projectionMatrix * modelViewMatrix * tran * vec4( position.x,position.y,0.0, 1.0 );
  3055. }
  3056. `,n.FSHADER_COLOR_POINT_TEXTURE=` precision highp float;
  3057. varying vec2 vUv;
  3058. uniform sampler2D texture;
  3059. void main() {
  3060. gl_FragColor = texture2D( texture, vUv );
  3061. }
  3062. `,n.VSHADER_COLOR_POINT_CLIP=` precision highp float;
  3063. uniform mat4 modelViewMatrix;
  3064. uniform mat4 projectionMatrix;
  3065. uniform vec2 clippt1;
  3066. uniform vec2 clippt2;
  3067. uniform float vieww;
  3068. uniform float viewh;
  3069. attribute vec2 position;
  3070. attribute vec3 color;
  3071. attribute vec4 tran1;
  3072. attribute vec4 tran2;
  3073. attribute vec4 tran3;
  3074. attribute vec4 tran4;
  3075. attribute float ishide;
  3076. varying vec4 vColor;
  3077. varying vec2 vCp1;
  3078. varying vec2 vCp2;
  3079. void main(){
  3080. mat4 tran;
  3081. tran[0][0] = tran1.x;tran[0][1] = tran1.y;tran[0][2] = tran1.z;tran[0][3] = tran1.w;
  3082. tran[1][0] = tran2.x;tran[1][1] = tran2.y;tran[1][2] = tran2.z;tran[1][3] = tran2.w;
  3083. tran[2][0] = tran3.x;tran[2][1] = tran3.y;tran[2][2] = tran3.z;tran[2][3] = tran3.w;
  3084. tran[3][0] = tran4.x;tran[3][1] = tran4.y;tran[3][2] = tran4.z;tran[3][3] = tran4.w;
  3085. vec4 pt1 = projectionMatrix * modelViewMatrix * vec4( clippt1.x,clippt1.y,0.0, 1.0 );
  3086. vec4 pt2 = projectionMatrix * modelViewMatrix * vec4( clippt2.x,clippt2.y,0.0, 1.0 );
  3087. vCp1 = vec2(pt1.x * vieww + vieww,pt1.y * viewh + viewh);
  3088. vCp2 = vec2(pt2.x * vieww + vieww,pt2.y * viewh + viewh);
  3089. if(ishide > 0.1)
  3090. vColor = vec4(color,0.0);
  3091. else
  3092. vColor = vec4(color,1.0);
  3093. gl_Position = projectionMatrix * modelViewMatrix * tran * vec4( position.x,position.y,0.0, 1.0 );
  3094. }
  3095. `,n.VSHADER_COLOR_POINT_BYLAYER_CLIP=` precision highp float;
  3096. uniform mat4 modelViewMatrix;
  3097. uniform mat4 projectionMatrix;
  3098. uniform vec3 color;
  3099. uniform vec2 clippt1;
  3100. uniform vec2 clippt2;
  3101. uniform float vieww;
  3102. uniform float viewh;
  3103. attribute vec2 position;
  3104. attribute vec4 tran1;
  3105. attribute vec4 tran2;
  3106. attribute vec4 tran3;
  3107. attribute vec4 tran4;
  3108. attribute float ishide;
  3109. varying vec4 vColor;
  3110. varying vec2 vCp1;
  3111. varying vec2 vCp2;
  3112. void main(){
  3113. mat4 tran;
  3114. tran[0][0] = tran1.x;tran[0][1] = tran1.y;tran[0][2] = tran1.z;tran[0][3] = tran1.w;
  3115. tran[1][0] = tran2.x;tran[1][1] = tran2.y;tran[1][2] = tran2.z;tran[1][3] = tran2.w;
  3116. tran[2][0] = tran3.x;tran[2][1] = tran3.y;tran[2][2] = tran3.z;tran[2][3] = tran3.w;
  3117. tran[3][0] = tran4.x;tran[3][1] = tran4.y;tran[3][2] = tran4.z;tran[3][3] = tran4.w;
  3118. vec4 pt1 = projectionMatrix * modelViewMatrix * vec4( clippt1.x,clippt1.y,0.0, 1.0 );
  3119. vec4 pt2 = projectionMatrix * modelViewMatrix * vec4( clippt2.x,clippt2.y,0.0, 1.0 );
  3120. vCp1 = vec2(pt1.x * vieww + vieww,pt1.y * viewh + viewh);
  3121. vCp2 = vec2(pt2.x * vieww + vieww,pt2.y * viewh + viewh);
  3122. if(ishide > 0.1)
  3123. vColor = vec4(color,0.0);
  3124. else
  3125. vColor = vec4(color,1.0);
  3126. gl_Position = projectionMatrix * modelViewMatrix * tran * vec4( position.x,position.y,0.0, 1.0 );
  3127. }
  3128. `,n.FSHADER_COLOR_POINT_CLIP=`precision highp float;
  3129. varying vec4 vColor;
  3130. varying vec2 vCp1;
  3131. varying vec2 vCp2;
  3132. void main() {
  3133. if(gl_FragCoord.x > vCp1.x && gl_FragCoord.x < vCp2.x && gl_FragCoord.y > vCp1.y && gl_FragCoord.y < vCp2.y)
  3134. gl_FragColor = vColor;
  3135. else
  3136. discard;
  3137. }
  3138. `,n.VSHADER_COLOR_POINT_FORMXCAD=` precision highp float;
  3139. uniform mat4 modelViewMatrix;
  3140. uniform mat4 projectionMatrix;
  3141. uniform vec3 color;
  3142. attribute vec2 position;
  3143. attribute vec4 tran1;
  3144. attribute vec4 tran2;
  3145. attribute vec4 tran3;
  3146. attribute vec4 tran4;
  3147. attribute float ishide;
  3148. varying vec4 vColor;
  3149. void main(){
  3150. mat4 tran;
  3151. tran[0][0] = tran1.x;tran[0][1] = tran1.y;tran[0][2] = tran1.z;tran[0][3] = tran1.w;
  3152. tran[1][0] = tran2.x;tran[1][1] = tran2.y;tran[1][2] = tran2.z;tran[1][3] = tran2.w;
  3153. tran[2][0] = tran3.x;tran[2][1] = tran3.y;tran[2][2] = tran3.z;tran[2][3] = tran3.w;
  3154. tran[3][0] = tran4.x;tran[3][1] = tran4.y;tran[3][2] = tran4.z;tran[3][3] = tran4.w;
  3155. gl_PointSize = 1.0;
  3156. if(ishide > 0.1)
  3157. vColor = vec4(color,0.0);
  3158. else
  3159. vColor = vec4(color,1.0);
  3160. gl_Position = projectionMatrix * modelViewMatrix * tran * vec4( position.x,position.y,0.0, 1.0 );
  3161. }
  3162. `,n.FSHADER_COLOR_POINT_FORMXCAD=` precision highp float;
  3163. varying vec4 vColor;
  3164. void main() {
  3165. gl_FragColor = vColor;
  3166. }
  3167. `,n.VSHADER_COLOR_POINT_CLIP_FORMXCAD=` precision highp float;
  3168. uniform mat4 modelViewMatrix;
  3169. uniform mat4 projectionMatrix;
  3170. uniform vec3 color;
  3171. uniform vec2 clippt1;
  3172. uniform vec2 clippt2;
  3173. uniform float vieww;
  3174. uniform float viewh;
  3175. attribute vec2 position;
  3176. attribute vec4 tran1;
  3177. attribute vec4 tran2;
  3178. attribute vec4 tran3;
  3179. attribute vec4 tran4;
  3180. attribute float ishide;
  3181. varying vec4 vColor;
  3182. varying vec2 vCp1;
  3183. varying vec2 vCp2;
  3184. void main(){
  3185. mat4 tran;
  3186. tran[0][0] = tran1.x;tran[0][1] = tran1.y;tran[0][2] = tran1.z;tran[0][3] = tran1.w;
  3187. tran[1][0] = tran2.x;tran[1][1] = tran2.y;tran[1][2] = tran2.z;tran[1][3] = tran2.w;
  3188. tran[2][0] = tran3.x;tran[2][1] = tran3.y;tran[2][2] = tran3.z;tran[2][3] = tran3.w;
  3189. tran[3][0] = tran4.x;tran[3][1] = tran4.y;tran[3][2] = tran4.z;tran[3][3] = tran4.w;
  3190. vec4 pt1 = projectionMatrix * modelViewMatrix * vec4( clippt1.x,clippt1.y,0.0, 1.0 );
  3191. vec4 pt2 = projectionMatrix * modelViewMatrix * vec4( clippt2.x,clippt2.y,0.0, 1.0 );
  3192. vCp1 = vec2(pt1.x * vieww + vieww,pt1.y * viewh + viewh);
  3193. vCp2 = vec2(pt2.x * vieww + vieww,pt2.y * viewh + viewh);
  3194. if(ishide > 0.1)
  3195. vColor = vec4(color,0.0);
  3196. else
  3197. vColor = vec4(color,1.0);
  3198. gl_Position = projectionMatrix * modelViewMatrix * tran * vec4( position.x,position.y,0.0, 1.0 );
  3199. }
  3200. `,n.FSHADER_COLOR_POINT_CLIP_FORMXCAD=`precision highp float;
  3201. varying vec4 vColor;
  3202. varying vec2 vCp1;
  3203. varying vec2 vCp2;
  3204. void main() {
  3205. if(gl_FragCoord.x > vCp1.x && gl_FragCoord.x < vCp2.x && gl_FragCoord.y > vCp1.y && gl_FragCoord.y < vCp2.y)
  3206. gl_FragColor = vColor;
  3207. else
  3208. discard;
  3209. }
  3210. `},{}],33:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MxStencilObject=void 0;var n=t("three"),o=t("./MxMaterial"),s=(c.prototype.object_onAfterRender=function(l){var v=this.aryMeshStencil;if(v&&0<v.length){l.getContext();var x=l.state.buffers;x.stencil.setLocked(!1),x.depth.setTest(!0),x.stencil.setTest(!1)}},c.prototype.object_onBeforeRender=function(l,v,x){var w=this.aryMeshStencil;if(w&&0<w.length){var _=l.getContext(),b=l.state.buffers;b.color.setMask(!1),b.color.setLocked(!0),b.depth.setTest(!1),b.stencil.setTest(!0),b.stencil.setMask(255),b.stencil.setClear(0),l.clearStencil(),b.stencil.setLocked(!0);var E=1,I=!0;w.forEach(function(O){I?(I=!1,b.stencil.setFunc(_.ALWAYS,E,255),b.stencil.setOp(_.KEEP,_.KEEP,_.REPLACE)):(b.stencil.setFunc(_.EQUAL,E,255),b.stencil.setOp(_.KEEP,_.KEEP,_.INCR),E++),l.mxRenderObject(O,v,x,O.material,null)}),b.color.setLocked(!1),b.color.setMask(!0),b.stencil.setMask(0),b.stencil.setFunc(_.EQUAL,E,255)}},c.prototype.associateObject=function(l,v){var x=this;v.forEach(function(_){if(3<=_.length){var b=new n.Shape(_),E=new n.ShapeGeometry(b),I=new n.Mesh(E,o.MxMaterial.getStencilMaterial());x.aryMeshStencil.push(I)}});var w=this;l.onBeforeRender=function(_,b,E){w.object_onBeforeRender(_,b,E)},l.onAfterRender=function(_){w.object_onAfterRender(_)}},c);function c(){this.aryMeshStencil=[]}r.MxStencilObject=s},{"./MxMaterial":30,three:19}],34:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MxString=void 0;var n=(o.prototype.Find=function(s){return this.m_val.indexOf(s)},o.prototype.Left=function(s){return this.m_val.substring(0,s)},o.prototype.Right=function(s){return this.m_val.substring(this.m_val.length-s,this.m_val.length)},o.prototype.TrimLeft=function(s){for(;0<this.m_val.length&&this.m_val[0]==s;)this.m_val=this.m_val.slice(1)},o.prototype.TrimRight=function(s){for(;0<this.m_val.length&&this.m_val[this.m_val.length-1]==s;)this.m_val=this.m_val.slice(0,-1)},o.prototype.AnalyzeString=function(s){return this.m_val.split(s)},o.prototype.IsEmpty=function(){return this.m_val.length==0},o.prototype.MakeUpper=function(){this.m_val=this.m_val.toUpperCase()},o.prototype.MakeLower=function(){this.m_val=this.m_val.toLowerCase()},o.prototype.GetLength=function(){return this.m_val.length},o);function o(s){this.m_val="",s!=null&&(this.m_val=s)}r.MxString=n},{}],35:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MxSystemVariable=void 0;var n=t("three"),o=t("./Operate/McEdJigOsnap"),s=(c.prototype.init=function(l){this.m_mxObj=l},c.prototype.getAllLinetypeName=function(){return this.m_vecLinetype},c.prototype.getSysVarBool=function(l){return this.m_data[l]!=null&&this.m_data[l]},c.prototype.setSysVarBool=function(l,v){this.m_data[l]=v},c.prototype.setSysVarPoint=function(l,v){this.m_data[l]=v},c.prototype.OnMessageMxCADSystemVariable=function(l){this.m_vecLinetype=[];var v=JSON.parse(l);if(v!=null){var x=v.vecLinetypeName;for(var w in x)this.m_vecLinetype.push(x[w]);this.m_data.CELTYPE=v.curLinetypeName,this.m_data.CLAYER=v.clayer,this.m_data.CECOLOR=v.cecolor,this.m_data.CECOLORINDEX=v.cecolorindex}this.m_mxObj.callEvent("loadSystmeVariableComplete")},c.prototype.getSysVarPoint=function(l){return this.m_data[l]==null?new n.Vector3(0,0,0):this.m_data[l]},c.prototype.setSysVarNumber=function(l,v){this.m_data[l]=v},c.prototype.getSysVarNumber=function(l){return this.m_data[l]==null?0:this.m_data[l]},c.prototype.getSysVar=function(l){return this.m_data[l]},c.prototype.setSysVar=function(l,v){this.m_data[l]=v},c);function c(){this.m_data={},this.m_mxObj=null,this.m_vecLinetype=[],this.m_data.GETPOINTSTATUS=0,this.m_data.LASTPOINT=void 0,this.m_data.LASTMOVEPOINT=void 0,this.m_data.CELTYPE="Continuous",this.m_data.CLAYER="0",this.m_data.CECOLOR=67108863,this.m_data.CECOLORINDEX=7,this.m_data.OSMODE=o.MxOsnapDefine.OsModeAll}r.MxSystemVariable=s},{"./Operate/McEdJigOsnap":42,three:19}],36:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MxThreeJS=void 0;var n,o=t("three"),s=t("./MxFun");function c(l){return Math.pow(2,Math.floor(Math.log(l)/Math.LN2))}(n=r.MxThreeJS||(r.MxThreeJS={})).createLine=function(l,v,x,w){var _,b=new o.Geometry;return _=w&&w!=1||w==0?new o.LineBasicMaterial({color:x,transparent:!0,depthTest:!1,opacity:w}):new o.LineBasicMaterial({color:x,transparent:!0,depthTest:!1}),b.vertices.push(l,v),new o.Line(b,_)},n.createSolid=function(l,v,x){if(l.length<3)return null;var w,_=new o.Shape(l.map(function(E){var I=E.x,O=E.y;return new o.Vector2(I,O)})),b=new o.ShapeGeometry(_);return w=x&&x!=1||x==0?new o.MeshPhongMaterial({color:v,side:o.DoubleSide,transparent:!0,depthTest:!1,opacity:x}):new o.MeshPhongMaterial({color:v,side:o.DoubleSide,transparent:!0,depthTest:!1}),new o.Mesh(b,w)},n.createPoint=function(l,v,x){x===void 0&&(x=3);var w=new o.Geometry;w.vertices.push(l);var _=new o.PointsMaterial({color:v,size:x});return new o.Points(w,_)},n.createDashedLine=function(l,v,x,w,_){var b=new o.Geometry;b.vertices.push(l,v);var E=new o.Line(b,new o.LineDashedMaterial({color:x,dashSize:w,gapSize:_,transparent:!0,depthTest:!1}));return E.computeLineDistances(),E},n.createCircle=function(l,v,x){var w=new o.CircleGeometry(v,64,3,2*Math.PI),_=new o.LineBasicMaterial({color:x,transparent:!0,depthTest:!1});w.vertices.shift();var b=new o.LineLoop(w,_);return b.position.x=l.x,b.position.y=l.y,b.position.z=l.z,b},n.clacTextSize=function(l,v){var x=document.createElement("canvas").getContext("2d");if(x==null)return v;var w=s.MxFun.formatString("normal {0}px Arial","256");return x.font=w,x.measureText(l).width*v/256},n.clacTextSpriteSize=function(l,v,x){v<=1e-8&&(v=1);var w=document.createElement("canvas"),_=w.getContext("2d"),b=s.MxFun.formatString("normal {0}px Arial","256");_.font=b;var E=v/256,I=0,O=[],N=!0,A=0;if(x){I=x;for(var z=0,G=0,V=0;G<l.length;G++)(ne=_.measureText(l.substring(z,G+1))).width*E>I&&(A+=(ne.fontBoundingBoxAscent+ne.fontBoundingBoxDescent)*E,O.push(l.substring(z,G)),z=G,V++);if(z<G){var ne=_.measureText(l.substring(z,G));O.push(l.substring(z,G)),A+=(ne.fontBoundingBoxAscent+ne.fontBoundingBoxDescent)*E,V++}N=V<=1}else A=v,I=(ne=_.measureText(l)).width*E,O.push(l),N=!1;var W=A/I*(w.width=1024);return w.height=c(W),w.height<W&&(w.height*=2),w.height==0&&(w.height=512),{spritewidth:I,spriteheight:I*w.height/w.width,textwidth:I,allTextHeight:A,singleline:N}},n.creatTextSprite=function(l,v,x,w,_,b,E){x<=1e-8&&(x=1);var I=document.createElement("canvas"),O=I.getContext("2d");E?(O.font=E(256),O.font.length==0&&(O.font=s.MxFun.formatString("normal {0}px Arial","256"))):O.font=s.MxFun.formatString("normal {0}px Arial","256");var N=x/256,A=0,z=[],G=[],V=0;if(b){A=b;for(var ne=0,W=0;W<l.length;W++)(q=O.measureText(l.substring(ne,W+1))).width*N>A&&(V+=B=(q.fontBoundingBoxAscent+q.fontBoundingBoxDescent)*N,z.push(l.substring(ne,W)),G.push(B),ne=W);if(ne<W){var B,q=O.measureText(l.substring(ne,W));z.push(l.substring(ne,W)),V+=B=(q.fontBoundingBoxAscent+q.fontBoundingBoxDescent)*N,G.push(B)}}else V=x,A=(q=O.measureText(l)).width*N,z.push(l),G.push(V);var D=V/A*(I.width=1024);I.height=c(D),I.height<D&&(I.height*=2),I.height==0&&(I.height=512);var F=1024/A,re=F*x;E?(O.font=E(re),O.font.length==0&&(O.font=s.MxFun.formatString("normal {0}px Arial",""+re))):O.font=s.MxFun.formatString("normal {0}px Arial",""+re);var le=s.MxFun.formatString("rgba({0}, {1}, {2}, 1.0)",(_>>16&255)+"",(_>>8&255)+"",(255&_)+"");O.fillStyle=le,O.textAlign="left",O.textBaseline="bottom";for(var fe=0,me=0;fe<z.length;fe++)me+=F*G[fe];for(fe=0,me=.5*(I.height-me);fe<z.length;fe++)me+=F*G[fe],O.fillText(z[fe],0,me);var ye=new o.Texture(I);ye.needsUpdate=!0;var Te=new o.SpriteMaterial({transparent:!0,depthTest:!1,map:ye});Te.rotation=w;var ke=new o.Sprite(Te);return ke.scale.set(A,A/I.width*I.height,1),ke.position.set(v.x,v.y,v.z),ke},n.createTriangle=function(l,v,x){if(!(l.length<3)){for(var w=l.length,_=new o.Geometry,b=0;b+2<w;b+=3){_.vertices.push(l[b]),_.vertices.push(l[b+1]),_.vertices.push(l[b+2]);var E=new o.Face3(b,b+1,b+2);_.faces.push(E)}_.computeFaceNormals(),_.computeVertexNormals(),x==null&&(x=1);var I=new o.MeshBasicMaterial({color:v,transparent:!0,depthTest:!1,side:o.DoubleSide,opacity:x});return new o.Mesh(_,I)}},n.createLines=function(l,v,x){var w,_=new o.Geometry;return _.vertices=l,w=x&&x!=1||x==0?new o.LineBasicMaterial({color:v,transparent:!0,depthTest:!1,opacity:x}):new o.LineBasicMaterial({color:v,transparent:!0,depthTest:!1}),new o.Line(_,w)},n.createDashedArc=function(l,v,x,w,_,b,E){var I=new o.CircleGeometry(v,64,x,w),O=new o.LineDashedMaterial({color:_,dashSize:b,gapSize:E,transparent:!0,depthTest:!1});I.vertices.shift();var N=new o.Line(I,O);return N.position.x=l.x,N.position.y=l.y,N.position.z=l.z,N},n.createDashedLines=function(l,v,x,w){var _=new o.Geometry;return _.vertices=l,new o.Line(_,new o.LineDashedMaterial({color:v,dashSize:x,gapSize:w,transparent:!0,depthTest:!1}))}},{"./MxFun":27,three:19}],37:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MxPair=r.MxTools=void 0;var n,o=t("three");(n=r.MxTools||(r.MxTools={})).AsMxWebPoint=function(s,c,l){return new o.Vector3(-s,l,c)},n.AsMxWebPoint_pt=function(s){return new o.Vector3(-s.x,s.z,s.y)},n.AsThreeJsPoint=function(s,c,l){return new o.Vector3(-s,l,c)},n.stringTrimLeftSpace=function(s){return s.replace(/^\s*/g,"")},n.stringDeleteAllSpace=function(s){return s.replace(/\s*/g,"")},n.stringTrimLeftRightSpace=function(s){return s.replace(/^\s*|\s*$/g,"")},n.stringTrimRightSpace=function(s){return s.replace(/(\s*$)/g,"")},n.IsNumerical=function(s){if(typeof s=="string"){var c=/^(-(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*)))$/;return!(!/^\d+(\.\d+)?$/.test(s)&&!c.test(s))}var l=s.m_val;return c=/^(-(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*)))$/,!(!/^\d+(\.\d+)?$/.test(l)&&!c.test(l))},n.formatString=function(s){for(var c=[],l=1;l<arguments.length;l++)c[l-1]=arguments[l];for(var v=0;v<c.length;v++)s=s.replace("{"+v+"}",c[v]);return s},n._tstof=function(s){return parseFloat(s)},n._tstoi=function(s){return parseInt(s)},n.IsZero=function(s){return-1e-7<s&&s<1e-7},n.MillimeterToPixels=function(s){return 10*s},n.getXYPlanDistance=function(s,c){var l=new o.Vector2(s.x,s.y),v=new o.Vector2(c.x,c.y);return l.distanceTo(v)},n.MxASSERT=function(s,c){s||console.log("MxASSERT(0):"+c)},n.generateUUID=function(){return o.MathUtils.generateUUID()},n.MxMax=function(s,c){return c<s?s:c},r.MxPair=function(s,c){this.first=s,this.second=c}},{three:19}],38:[function(t,e,r){var n,o,s;Object.defineProperty(r,"__esModule",{value:!0}),r.MxType=void 0,(o=(n=r.MxType||(r.MxType={})).MxCommandFlag||(n.MxCommandFlag={}))[o.MCRX_CMD_MODAL=0]="MCRX_CMD_MODAL",o[o.MCRX_CMD_TRANSPARENT=1]="MCRX_CMD_TRANSPARENT",o[o.MCRX_CMD_NO_UNDO_MARKER=2]="MCRX_CMD_NO_UNDO_MARKER",o[o.MCRX_CMD_NOPRV=4]="MCRX_CMD_NOPRV",(s=n.MxCloneType||(n.MxCloneType={}))[s.kClone=1]="kClone",s[s.kDragClone=2]="kDragClone",s[s.kMxFileClone=3]="kMxFileClone",s[s.kSaveDwgClone=4]="kSaveDwgClone"},{}],39:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MxBulid=void 0,window.MxDrawVersion="1.0(2024-03-27 19:04)",(r.MxBulid||(r.MxBulid={})).getVersion=function(){return window.MxDrawVersion?window.MxDrawVersion:"inalid version"}},{}],40:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MxWindowsEvent=void 0;var n,o,s,c,l=t("./MxFun"),v=t("./Operate/MxJigCmdManager"),x=t("three"),w=t("./MxDrawData"),_=t("./UI/MxUiVue");function b(z,G){for(var V=0,ne=c.length;V<ne;V++){var W=c[V](z,G);if(W!=0)return W}}function E(z){s.x=z.offsetX,s.y=z.offsetY,b("mousemove",z)}function I(z){b("mouseup",z)}function O(z){b("dblclick",z)}function N(z){s.x=z.offsetX,s.y=z.offsetY,b("mousedown",z)}function A(z){var G=z||window.event||arguments.callee.caller.arguments[0];if(G&&G.keyCode==27){var V=l.MxFun.getCurrentMx();if(V.isPaningCommand())return void V.endPanCommand();if(v.MxJigCmdManager.isRunning()){if(v.MxJigCmdManager.getCurCmd().getDynImput().onKeyEcsDown()!=0)return;v.MxJigCmdManager.stopCmd(v.MxJigCmdManager.DetailedResult.kEcsIn)}else{var ne=!1;if(w.MxDrawData.m_isEnableIntelliSelect){var W=!1;V.getMxDatabase().getGripManager().removeAllGrips()&&(W=!0),V.getMxDatabase().getSelectManager().removeAllEntity()&&(W=!0),V.isValidMcObject()&&V.getMcObject().getGripManager().clearAll()&&(W=!0),W&&(V.updateDisplay(),V.getMxDatabase().getGripManager().fireMxEntitySelectChange(),ne=!0)}ne||_.MxUiVue.acutPrintf(` *\u53D6\u6D88*
  3211. \u547D\u4EE4:`)}}}n=r.MxWindowsEvent||(r.MxWindowsEvent={}),o=!1,s=new x.Vector2(0,0),c=new Array,n.addEvent=function(z){c.push(z)},n.getCurrentMousePostion=function(){return s},n.registEvent=function(){o||(o=!0,l.MxFun.isPC()&&(document.addEventListener("mousemove",E,!1),document.addEventListener("mouseup",I,!1),document.addEventListener("mousedown",N,!1),document.addEventListener("dblclick",O,!1),document.onkeydown=A))}},{"./MxDrawData":22,"./MxFun":27,"./Operate/MxJigCmdManager":53,"./UI/MxUiVue":63,three:19}],41:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.McEdJigDynamicTrace=void 0;var n=t("three"),o=t("./MxJigCmdManager"),s=t("../MxFun"),c=t("../MxDrawData"),l=t("../MxTools"),v=t("../MxManager"),x=t("../MxThreeJS"),w=t("./McEdJigOsnap"),_=(b.prototype.IsEqual=function(A){return this.m_snapObjectId==A.m_snapObjectId&&this.m_pt.distanceTo(A.m_pt)<1e-6},b.prototype.drawLine=function(A,z,G){var V=x.MxThreeJS.createLine(new n.Vector3(A.x,A.y,A.z),new n.Vector3(z.x,z.y,z.z),this.m_iColor);G.add(V),this.m_aryDynDrawObject.push(V)},b.prototype.clearDraw=function(A){for(var z=this.m_aryDynDrawObject.length,G=0;G<z;G++)s.MxFun.removeThreejsObject(this.m_aryDynDrawObject[G],A);this.m_aryDynDrawObject=[]},b.prototype.draw=function(A,z){var G=A.toSmallcoord(this.m_pt),V=new n.Vector3(G.x,G.y+this.m_iGripWidth,0),ne=new n.Vector3(G.x,G.y-this.m_iGripWidth,0);this.drawLine(V,ne,z);var W=new n.Vector3(G.x+this.m_iGripWidth,G.y,0),B=new n.Vector3(G.x-this.m_iGripWidth,G.y,0);this.drawLine(W,B,z)},b);function b(){this.m_snapObjectId=0,this.m_pt=new n.Vector3,this.m_osmode=0,this.m_iColor=16760703,this.m_iGripWidth=10,this.m_aryDynDrawObject=new Array}var E=(I.prototype.clearDraw=function(A){for(var z=this.m_aryDynDrawObject.length,G=0;G<z;G++)s.MxFun.removeThreejsObject(this.m_aryDynDrawObject[G],A);this.m_aryDynDrawObject=[]},I.prototype.draw=function(A,z){this.m_draw.setWidth(this.m_iGripWidth),this.m_draw.draw(A.toSmallcoord(this.m_pt),this.m_ostype,z)},I);function I(A,z){var G=this;this.m_aryDynDrawObject=new Array,this.m_iGripWidth=10,this.m_draw=new w.McEdJigOsnapDraw,this.m_pt=A,this.m_ostype=z,this.m_draw.setAddDynDrawObject_call(function(V){G.m_aryDynDrawObject.push(V)})}var O=(N.prototype.DynamicTraceTimeCall=function(A){if(!this.m_mxJig.isExit()&&this.m_iTimeCallId==A&&this.m_isDynTrace&&this.m_snapObjectId!=0){var z=new _;z.m_osmode=this.m_osmode,z.m_snapObjectId=this.m_snapObjectId,z.m_pt=this.m_ptSnapPoint,z.m_iGripWidth=.5*this.m_mxJig.getMxObject().screenCoordLong2Doc(c.MxDrawData.getCursorWidthPixels());for(var G=this.m_aryTraceObject.length,V=this.m_mxJig.getMxObject().getTheTempDrawContainer_SmallCoord(),ne=0;ne<G;ne++)if(this.m_aryTraceObject[ne].IsEqual(z))return this.m_aryTraceObject[ne].clearDraw(V),void this.m_aryTraceObject.splice(ne,1);this.m_aryTraceObject.push(z),z.draw(this.m_mxJig.getMxObject(),V),this.m_mxJig.getMxObject().updateDisplay()}},N.prototype.OnDynamicTrace=function(A,z,G){if(this.m_isDynTrace)if(A==0)this.m_iTimeCallId++,this.m_snapObjectId=0;else{if(G==o.MxJigCmdManager.OsnapMode.kOsModeNear||this.m_snapObjectId!=0&&this.m_ptSnapPoint.distanceTo(z)<1e-6)return;var V=this.m_iTimeCallId,ne=this;setTimeout(function(){ne.DynamicTraceTimeCall(V)},200),this.m_snapObjectId=A,this.m_ptSnapPoint=z,this.m_osmode=G}},N.prototype.ClearOsmodeObjectDisplay=function(){for(var A=this.m_mxJig.getMxObject().getTheTempDrawContainer_SmallCoord(),z=this.m_aryTraceOsmodeObject.length,G=0;G<z;G++)this.m_aryTraceOsmodeObject[G].clearDraw(A);this.m_aryTraceOsmodeObject=[]},N.prototype.ClearTraceObject=function(){for(var A=this.m_mxJig.getMxObject().getTheTempDrawContainer_SmallCoord(),z=this.m_aryTraceObject.length,G=0;G<z;G++)this.m_aryTraceObject[G].clearDraw(A);this.m_aryTraceObject=[]},N.prototype.ClearDisplay=function(){this.ClearTraceObject(),this.ClearOsmodeObjectDisplay(),this.ClearDynDrawEntity()},N.prototype.GetTraceLine=function(A,z,G,V){var ne=z.m_pt;if(ne.distanceTo(A)<2*G)return[];var W={pt1:new n.Vector3(ne.x-V,ne.y),pt2:new n.Vector3(ne.x+V,ne.y)},B={pt1:new n.Vector3(ne.x,ne.y-V),pt2:new n.Vector3(ne.x,ne.y+V)},q=[];q.push(W),q.push(B);for(var D=v.MxManager.getMxCpp().getMcDbCurve(z.m_snapObjectId);D;){var F=D.getFirstDeriv(v.MxManager.getMxCpp().newMcGePoint3d(ne));if(F.ret!=0||F.val.isZeroLength())break;F.val.normalize(),F.val.mult(V);var re={pt1:new n.Vector3(ne.x-F.val.x,ne.y-F.val.y),pt2:new n.Vector3(ne.x+F.val.x,ne.y+F.val.y)};q.push(re),F.val.rotateBy(Math.PI/2);var le={pt1:new n.Vector3(ne.x-F.val.x,ne.y-F.val.y),pt2:new n.Vector3(ne.x+F.val.x,ne.y+F.val.y)};q.push(le);break}return q},N.prototype.ClearDynDrawEntity=function(){for(var A=this.m_mxJig.getMxObject().getTheTempDrawContainer_SmallCoord(),z=this.m_vecDynDrawEntity.length,G=0;G<z;G++)s.MxFun.removeThreejsObject(this.m_vecDynDrawEntity[G],A);this.m_vecDynDrawEntity=[]},N.prototype.DoMouseMove=function(A){if(this.ClearDynDrawEntity(),this.ClearOsmodeObjectDisplay(),this.m_isValidTracePoint=!1,!this.m_isDynTrace)return[];if(this.m_aryTraceObject.length==0)return[];for(var z=[],G=this.m_mxJig.getMxObject(),V=G.viewCoordLong2Cad(c.MxDrawData.getCursorWidthPixels()),ne=2*V,W=G.viewCoordLong2Cad(G.getViewWidth()),B=G.viewCoordLong2Cad(G.getViewHeight()),q=l.MxTools.MxMax(W,B),D=v.MxManager.getMxCpp().getMxCAD_App(),F=this.m_mxJig.getMxObject().getTheTempDrawContainer_SmallCoord(),re=this.m_mxJig.getMxObject().viewCoordLong2Cad(this.m_dashedLineLen),le=0;le<this.m_aryTraceObject.length-1;le++){var fe=this.m_aryTraceObject[le],me=fe.m_pt,ye=this.GetTraceLine(A,fe,ne,q);if(ye.length!=0)for(var Te=le+1;Te<this.m_aryTraceObject.length&&!this.m_isValidTracePoint;Te++){var ke=this.m_aryTraceObject[le],Le=ke.m_pt,et=this.GetTraceLine(A,ke,ne,q);if(ye.length!=0)for(var it=0;it<et.length&&!this.m_isValidTracePoint;it++)for(var Ue=et[it],ht=0;ht<ye.length&&!this.m_isValidTracePoint;ht++){var De=ye[ht],Be=D.MxCADAssist.IntersectWith(De.pt1.x,De.pt1.y,De.pt2.x,De.pt2.y,Ue.pt1.x,Ue.pt1.y,Ue.pt2.x,Ue.pt2.y,3);if(0<Be.length()){var Ve=Be.at(0),He=new n.Vector3(Ve.x,Ve.y,Ve.z);if(He.distanceTo(A)<ne){var gt=x.MxThreeJS.createDashedLine(G.toSmallcoord(De.pt1),G.toSmallcoord(De.pt2),this.m_iDashedLineLenColor,re,re);F.add(gt),this.m_vecDynDrawEntity.push(gt);var dn=x.MxThreeJS.createDashedLine(G.toSmallcoord(Ue.pt1),G.toSmallcoord(Ue.pt2),this.m_iDashedLineLenColor,re,re);F.add(dn),this.m_vecDynDrawEntity.push(dn),it=et.length,this.m_isValidTracePoint=!0,this.m_ptTracePoint=He,this.CreteTracePoint(He,V),z.push({pt:me,ostype:fe.m_osmode}),z.push({pt:Le,ostype:ke.m_osmode});break}}}}}if(this.m_isValidTracePoint||this.TracekPerpLine(A,z,ne,q,V)||this.TracekTangLine(A,z,ne,q,V))return z;for(le=0;le<this.m_aryTraceObject.length;le++)if(me=this.m_aryTraceObject[le].m_pt,this.m_aryTraceObject[le].m_osmode!=o.MxJigCmdManager.OsnapMode.kOsModePerp&&!(me.distanceTo(A)<2*ne)){var Ze={pt1:new n.Vector3(me.x-q,me.y),pt2:new n.Vector3(me.x+q,me.y)};if(0<(Ne=D.MxCADAssist.GetClosestPointTo(Ze.pt1.x,Ze.pt1.y,Ze.pt2.x,Ze.pt2.y,A.x,A.y,!0)).length()){var at=Ne.at(0);if((ze=new n.Vector3(at.x,at.y,at.z)).distanceTo(A)<ne){var Lt=x.MxThreeJS.createDashedLine(G.toSmallcoord(Ze.pt1),G.toSmallcoord(Ze.pt2),this.m_iDashedLineLenColor,re,re);F.add(Lt),this.m_vecDynDrawEntity.push(Lt),this.m_isValidTracePoint=!0,this.m_ptTracePoint=ze,z.push({pt:me,ostype:this.m_aryTraceObject[le].m_osmode}),this.CreteTracePoint(ze,V);break}}var Ne,ze,Ke={pt1:new n.Vector3(me.x,me.y-q),pt2:new n.Vector3(me.x,me.y+q)};if(0<(Ne=D.MxCADAssist.GetClosestPointTo(Ke.pt1.x,Ke.pt1.y,Ke.pt2.x,Ke.pt2.y,A.x,A.y,!0)).length()&&(at=Ne.at(0),(ze=new n.Vector3(at.x,at.y,at.z)).distanceTo(A)<ne)){Lt=x.MxThreeJS.createDashedLine(G.toSmallcoord(Ke.pt1),G.toSmallcoord(Ke.pt2),this.m_iDashedLineLenColor,re,re),F.add(Lt),this.m_vecDynDrawEntity.push(Lt),this.m_isValidTracePoint=!0,this.m_ptTracePoint=ze,z.push({pt:me,ostype:this.m_aryTraceObject[le].m_osmode}),this.CreteTracePoint(ze,V);break}}return z},N.prototype.MouseMove=function(A){var z=this.DoMouseMove(A);if(this.m_isValidTracePoint)for(var G=this.m_mxJig.getMxObject().getTheTempDrawContainer_SmallCoord(),V=this.m_mxJig.getMxObject().screenCoordLong2Doc(c.MxDrawData.getCursorWidthPixels()),ne=0;ne<z.length;ne++){var W=new E(z[ne].pt,z[ne].ostype);W.m_iGripWidth=V,W.draw(this.m_mxJig.getMxObject(),G),this.m_aryTraceOsmodeObject.push(W)}},N.prototype.Init=function(){var A=this.m_mxJig.getMxObject();A.getMcObject().isValid()?(this.m_isDynTrace=A.getSysVarLong("DYNTRACE")!=0,A.sysVariable().getSysVarNumber("GETPOINTSTATUS")&o.MxJigCmdManager.GETPOINTSTATUS.OsModeDynTraceTempDisable&&(this.m_isDynTrace=!1),this.m_mxJig.isDisableDynamicTrace()&&(this.m_isDynTrace=!1),this.m_isDynTrace):this.m_isDynTrace=!1},N.prototype.GetTracePoint=function(){if(this.m_isDynTrace)return this.m_isValidTracePoint?this.m_ptTracePoint:void 0},N.prototype.ReSetTempDisplay=function(){this.ClearDynDrawEntity(),this.ClearOsmodeObjectDisplay(),this.m_isValidTracePoint=!1},N.prototype.CreteTracePoint=function(A,z){var G=this.m_mxJig.getMxObject(),V=G.getTheTempDrawContainer_SmallCoord();z/=2;var ne=x.MxThreeJS.createLine(G.toSmallcoord2(A.x+z,A.y+z,0),G.toSmallcoord2(A.x-z,A.y-z,0),16711680);V.add(ne),this.m_vecDynDrawEntity.push(ne);var W=x.MxThreeJS.createLine(G.toSmallcoord2(A.x-z,A.y+z,0),G.toSmallcoord2(A.x+z,A.y-z,0),16711680);V.add(W),this.m_vecDynDrawEntity.push(W)},N.prototype.TracekPerpLine=function(A,z,G,V,ne){for(var W=this.m_aryTraceObject,B=W.length,q=v.MxManager.getMxCpp().getMxCAD_App(),D=this.m_mxJig.getMxObject(),F=D.getTheTempDrawContainer_SmallCoord(),re=D.viewCoordLong2Cad(this.m_dashedLineLen),le=0;le<B;le++){var fe=W[le].m_pt;if(!(fe.distanceTo(A)<2*G)){var me=v.MxManager.getMxCpp().getMcDbCurve(W[le].m_snapObjectId);if(me){var ye=me.getFirstDeriv(v.MxManager.getMxCpp().newMcGePoint3d(fe));if(ye.ret==0&&!ye.val.isZeroLength()){ye.val.normalize(),ye.val.rotateBy(Math.PI/2),ye.val.mult(V);var Te={pt1:new n.Vector3(fe.x-ye.val.x,fe.y-ye.val.y),pt2:new n.Vector3(fe.x+ye.val.x,fe.y+ye.val.y)},ke=q.MxCADAssist.GetClosestPointTo(Te.pt1.x,Te.pt1.y,Te.pt2.x,Te.pt2.y,A.x,A.y,!0);if(0<ke.length()){var Le=ke.at(0),et=new n.Vector3(Le.x,Le.y,Le.z);if(et.distanceTo(A)<G){var it=x.MxThreeJS.createDashedLine(D.toSmallcoord2(fe.x-ye.val.x,fe.y-ye.val.y,0),D.toSmallcoord2(fe.x+ye.val.x,fe.y+ye.val.y,0),this.m_iDashedLineLenColor,re,re);F.add(it),this.m_vecDynDrawEntity.push(it),this.m_isValidTracePoint=!0,this.m_ptTracePoint=et,z.push({pt:fe,ostype:W[le].m_osmode}),this.CreteTracePoint(et,ne);break}}}}}}return this.m_isValidTracePoint},N.prototype.TracekTangLine=function(A,z,G,V,ne){for(var W=this.m_aryTraceObject,B=W.length,q=v.MxManager.getMxCpp().getMxCAD_App(),D=this.m_mxJig.getMxObject(),F=D.getTheTempDrawContainer_SmallCoord(),re=D.viewCoordLong2Cad(this.m_dashedLineLen),le=0;le<B;le++){var fe=W[le].m_pt;if(!(fe.distanceTo(A)<2*G)){var me=v.MxManager.getMxCpp().getMcDbCurve(W[le].m_snapObjectId);if(me){var ye=me.getFirstDeriv(v.MxManager.getMxCpp().newMcGePoint3d(fe));if(ye.ret==0&&!ye.val.isZeroLength()){ye.val.normalize(),ye.val.mult(V);var Te={pt1:new n.Vector3(fe.x-ye.val.x,fe.y-ye.val.y),pt2:new n.Vector3(fe.x+ye.val.x,fe.y+ye.val.y)},ke=q.MxCADAssist.GetClosestPointTo(Te.pt1.x,Te.pt1.y,Te.pt2.x,Te.pt2.y,A.x,A.y,!0);if(0<ke.length()){var Le=ke.at(0),et=new n.Vector3(Le.x,Le.y,Le.z);if(et.distanceTo(A)<G){var it=x.MxThreeJS.createDashedLine(D.toSmallcoord2(fe.x-ye.val.x,fe.y-ye.val.y),D.toSmallcoord2(fe.x+ye.val.x,fe.y+ye.val.y),this.m_iDashedLineLenColor,re,re);F.add(it),this.m_vecDynDrawEntity.push(it),this.m_isValidTracePoint=!0,this.m_ptTracePoint=et,z.push({pt:fe,ostype:W[le].m_osmode}),this.CreteTracePoint(et,ne);break}}}}}}return this.m_isValidTracePoint},N);function N(A){this.m_snapObjectId=0,this.m_ptSnapPoint=new n.Vector3,this.m_osmode=0,this.m_ptTracePoint=new n.Vector3,this.m_isValidTracePoint=!1,this.m_isDynTrace=!1,this.m_iTimeCallId=0,this.m_mxJig=null,this.m_aryTraceObject=[],this.m_aryTraceOsmodeObject=[],this.m_vecDynDrawEntity=[],this.m_dashedLineLen=1.5,this.m_iDashedLineLenColor=11184810,this.m_mxJig=A}r.McEdJigDynamicTrace=O},{"../MxDrawData":22,"../MxFun":27,"../MxManager":29,"../MxThreeJS":36,"../MxTools":37,"./McEdJigOsnap":42,"./MxJigCmdManager":53,three:19}],42:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.McEdJigOsnap=r.McEdJigOsnapDraw=r.McEdJigOrtho=r.McEdImpJigGlobalData=r.MxOsnapDefine=void 0;var n,o,s,c,l,v,x,w,_,b,E=t("three"),I=t("../MxDrawObject"),O=t("../MxFun"),N=t("./MxJigCmdManager"),A=t("../MxTools"),z=t("../MxDrawData"),G=t("../MxWindowsEvent");(o=n=r.MxOsnapDefine||(r.MxOsnapDefine={}))[o.OsModeInvalid=0]="OsModeInvalid",o[o.OsModeEnd=1]="OsModeEnd",o[o.OsModeMid=2]="OsModeMid",o[o.OsModeCen=4]="OsModeCen",o[o.OsModeNode=8]="OsModeNode",o[o.OsModeQuad=16]="OsModeQuad",o[o.OsModeInt=32]="OsModeInt",o[o.OsModeIns=64]="OsModeIns",o[o.OsModePerp=128]="OsModePerp",o[o.OsModeTan=256]="OsModeTan",o[o.OsModeNear=512]="OsModeNear",o[o.OsModeApp=2048]="OsModeApp",o[o.OsModeExt=4096]="OsModeExt",o[o.OsModePar=8192]="OsModePar",o[o.OsModeOff=16384]="OsModeOff",o[o.OsModeAll=16383]="OsModeAll",c=s=r.McEdImpJigGlobalData||(r.McEdImpJigGlobalData={}),l=!1,v=new E.Vector3,x=new E.Vector3,_=w=!1,b=new Array,c.setPrvPoint=function(F){v=F,_=!0},c.isOsnapZValue=function(){return!1},c.setIsValidPrvpoint=function(F){_=F},c.isValidPrvpoint=function(){return _},c.getPrvPoint=function(){return v},c.setIsValidBasepoint=function(F){l=F},c.isValidBasepoint=function(){return l},c.setBasepoint=function(F){l=!0,x=F},c.getBasepoint=function(){return x},c.initStartCommand=function(){w=l=!1},c.setIsTmpDisableOsmode=function(F){w=F},c.isTmpDisableOsmode=function(){return w},c.addDynDrawObject=function(F){b.push(F)},c.clearDisplay=function(F){for(var re=b.length,le=0;le<re;le++)O.MxFun.removeThreejsObject(b[le],F);b=[]};var V=(ne.prototype.Init=function(){this.m_isTrace=!this.m_mxJig.isDisableOrthoTrace(),this.m_isValid=!1},ne.prototype.OnViewMouseMove=function(F){if(this.m_isTrace){var re=this.m_mxJig.getMxObject(),le=re.sysVariable().getSysVarNumber("GETPOINTSTATUS");if(!(re.getSysVarLong("ORTHOMODE")==0||le&N.MxJigCmdManager.GETPOINTSTATUS.OsModeOrthoTempDisable)&&le&N.MxJigCmdManager.GETPOINTSTATUS.OsModeSValidLastPoint){var fe=re.sysVariable().getSysVarPoint("LASTPOINT");Math.abs(F.x-fe.x)>Math.abs(F.y-fe.y)?(this.m_ptOrtho.x=F.x,this.m_ptOrtho.y=fe.y):(this.m_ptOrtho.x=fe.x,this.m_ptOrtho.y=F.y),this.m_isValid=!0}else this.m_isValid=!1}},ne.prototype.GetCurOrthoPoint=function(){return{pt:this.m_ptOrtho,isValid:this.m_isValid}},ne);function ne(F){this.m_mxJig=null,this.m_ptOrtho=new E.Vector3,this.m_isValid=!1,this.m_isTrace=!0,this.m_mxJig=F}r.McEdJigOrtho=V;var W=(B.prototype.setAddDynDrawObject_call=function(F){this.m_addDynDrawObject_call=F},B.prototype.addDynDrawObject=function(F){this.m_addDynDrawObject_call?this.m_addDynDrawObject_call(F):s.addDynDrawObject(F)},B.prototype.drawLine=function(F,re,le){var fe=new E.Geometry,me=new E.LineBasicMaterial({color:this.m_iColor});fe.vertices.push(new E.Vector3(F.x,F.y,F.z),new E.Vector3(re.x,re.y,re.z));var ye=new E.Line(fe,me);le.add(ye),this.addDynDrawObject(ye)},B.prototype.drawPolyline=function(F,re){for(var le=new E.Geometry,fe=new E.LineBasicMaterial({color:this.m_iColor}),me=F.length,ye=0;ye<me;ye++)le.vertices.push(new E.Vector3(F[ye].x,F[ye].y,F[ye].z));var Te=new E.Line(le,fe);re.add(Te),this.addDynDrawObject(Te)},B.prototype.setWidth=function(F){this.m_dOsmodeWdith=F},B.prototype.GetDrawRect=function(){var F=.5*this.m_dOsmodeWdith,re={};return re.left=this.m_pt.x-F,re.right=this.m_pt.x+F,re.top=this.m_pt.y-F,re.bottom=this.m_pt.y+F,re},B.prototype.DrawNear=function(F){var re=this.GetDrawRect(),le=[new E.Vector3,new E.Vector3];le[0].x=re.left,le[0].y=re.top,le[1].x=re.right,le[1].y=re.top,this.drawLine(le[0],le[1],F),le[0].x=re.left,le[0].y=re.bottom,le[1].x=re.right,le[1].y=re.bottom,this.drawLine(le[0],le[1],F),le[0].x=re.right,le[0].y=re.top,le[1].x=re.left,le[1].y=re.bottom,this.drawLine(le[0],le[1],F),le[0].x=re.right,le[0].y=re.bottom,le[1].x=re.left,le[1].y=re.top,this.drawLine(le[0],le[1],F)},B.prototype.DrawEnd=function(F){var re=this.GetDrawRect(),le=[new E.Vector3,new E.Vector3,new E.Vector3,new E.Vector3];le[0].x=re.left,le[0].y=re.top,le[1].x=re.right,le[1].y=re.top,le[2].x=re.right,le[2].y=re.bottom,le[3].x=re.left,le[3].y=re.bottom,this.drawLine(le[0],le[1],F),this.drawLine(le[1],le[2],F),this.drawLine(le[2],le[3],F),this.drawLine(le[3],le[0],F)},B.prototype.DrawMid=function(F){var re=this.GetDrawRect(),le=1.2*(re.right-re.left),fe=le/2/Math.sin(60*3.14159265/180),me=fe*Math.sin(.5235987750000001),ye=new E.Vector3(this.m_pt.x,this.m_pt.y,this.m_pt.z);ye.y-=fe;var Te=new E.Vector3;Te.x=this.m_pt.x+le/2,Te.y=this.m_pt.y+me;var ke=new E.Vector3;ke.x=this.m_pt.x-le/2,ke.y=this.m_pt.y+me;var Le=[new E.Vector3,new E.Vector3,new E.Vector3,new E.Vector3];Le[0].x=ye.x,Le[0].y=ye.y,Le[1].x=Te.x,Le[1].y=Te.y,Le[2].x=ke.x,Le[2].y=ke.y,Le[3].x=ye.x,Le[3].y=ye.y,this.drawLine(Le[0],Le[1],F),this.drawLine(Le[1],Le[2],F),this.drawLine(Le[2],Le[3],F)},B.prototype.DrawPerp=function(F){var re=this.GetDrawRect(),le=[new E.Vector3,new E.Vector3,new E.Vector3];le[0].x=re.left,le[0].y=re.top,le[1].x=re.left,le[1].y=re.bottom,le[2].x=re.right,le[2].y=re.bottom,this.drawPolyline(le,F),le[0].x=re.left,le[0].y=this.m_pt.y,le[1].x=this.m_pt.x,le[1].y=this.m_pt.y,le[2].x=this.m_pt.x,le[2].y=re.bottom,this.drawPolyline(le,F)},B.prototype.DrawCircle=function(F,re,le){le==null&&(le=.5*this.m_dOsmodeWdith);for(var fe=[],me=0,ye=3.14159265/180;me<=360;me+=15){var Te=le*Math.cos(me*ye)+F.x,ke=le*Math.sin(me*ye)+F.y;fe.push(new E.Vector3(Te,ke))}this.drawPolyline(fe,re)},B.prototype.DrawInt=function(F){var re=this.GetDrawRect(),le=[new E.Vector3,new E.Vector3];le[0].x=re.right,le[0].y=re.top,le[1].x=re.left,le[1].y=re.bottom,this.drawLine(le[0],le[1],F),le[0].x=re.right,le[0].y=re.bottom,le[1].x=re.left,le[1].y=re.top,this.drawLine(le[0],le[1],F)},B.prototype.DrawCen=function(F){this.DrawInt(F),this.DrawCircle(this.m_pt,F)},B.prototype.DrawTan=function(F){this.DrawEnd(F)},B.prototype.DrawIns=function(F){var re=this.GetDrawRect(),le={},fe=(re.right-re.left)/1.5;le.left=this.m_pt.x-fe,le.right=this.m_pt.x+fe,le.top=this.m_pt.y-fe,le.bottom=this.m_pt.y+fe;var me=this.m_pt.x,ye=this.m_pt.y,Te=[new E.Vector3,new E.Vector3,new E.Vector3,new E.Vector3,new E.Vector3,new E.Vector3,new E.Vector3,new E.Vector3,new E.Vector3];Te[0].x=le.left,Te[0].y=le.top,Te[1].x=le.left,Te[1].y=ye+2,Te[2].x=me,Te[2].y=ye+2,Te[3].x=me,Te[3].y=le.bottom,Te[4].x=le.right,Te[4].y=le.bottom,Te[5].x=le.right,Te[5].y=ye-2,Te[6].x=me,Te[6].y=ye-2,Te[7].x=me,Te[7].y=le.top,Te[8].x=le.left,Te[8].y=le.top,this.drawPolyline(Te,F)},B.prototype.DrawNode=function(F){var re=this.GetDrawRect(),le={},fe=(re.right-re.left)/1.5;le.left=this.m_pt.x-fe,le.right=this.m_pt.x+fe,le.top=this.m_pt.y-fe,le.bottom=this.m_pt.y+fe;var me=this.m_dOsmodeWdith/1.3;this.m_pt.x,this.m_pt.x,this.m_pt.y,this.m_pt.y;var ye=[new E.Vector3,new E.Vector3,new E.Vector3,new E.Vector3];ye[0].x=le.left,ye[0].y=le.top,ye[1].x=le.right,ye[1].y=le.bottom,ye[2].x=le.left,ye[2].y=le.bottom,ye[3].x=le.right,ye[3].y=le.top,this.drawLine(ye[0],ye[1],F),this.drawLine(ye[2],ye[3],F),this.DrawCircle(this.m_pt,F,me)},B.prototype.draw=function(F,re,le){this.m_pt=F,this.m_osmode=re;var fe=.5*this.m_dOsmodeWdith;if(this.m_osmode!=N.MxJigCmdManager.OsnapMode.kOsModekInValid)if(this.m_osmode==N.MxJigCmdManager.OsnapMode.kOsModeNear)this.DrawNear(le);else if(this.m_osmode==N.MxJigCmdManager.OsnapMode.kOsModeEnd)this.DrawEnd(le);else if(this.m_osmode==N.MxJigCmdManager.OsnapMode.kOsModeMid)this.DrawMid(le);else if(this.m_osmode==N.MxJigCmdManager.OsnapMode.kOsModePerp)this.DrawPerp(le);else if(this.m_osmode==N.MxJigCmdManager.OsnapMode.kOsModeInt)this.DrawInt(le);else if(this.m_osmode==N.MxJigCmdManager.OsnapMode.kOsModeCen)this.DrawCen(le);else if(this.m_osmode==N.MxJigCmdManager.OsnapMode.kOsModeTan)this.DrawTan(le);else if(this.m_osmode==N.MxJigCmdManager.OsnapMode.kOsModeIns)this.DrawIns(le);else if(this.m_osmode==N.MxJigCmdManager.OsnapMode.kOsModeNode)this.DrawNode(le);else{var me=new E.Vector3(F.x-fe,F.y-fe,0),ye=new E.Vector3(F.x+fe,F.y+fe,0);this.drawLine(me,ye,le);var Te=new E.Vector3(F.x-fe,F.y+fe,0),ke=new E.Vector3(F.x+fe,F.y-fe,0);this.drawLine(Te,ke,le)}},B.prototype.upDisplay=function(F,re,le){this.clearDisplay(le);var fe=le.getMxObject();this.setWidth(fe.screenCoordLong2Doc(z.MxDrawData.getCursorWidthPixels())),F=fe.toSmallcoord(F),this.draw(F,re,fe.getTheTempDrawContainer_SmallCoord())},B.prototype.clearDisplay=function(F){var re=F.getMxObject().getTheTempDrawContainer_SmallCoord();s.clearDisplay(re)},B);function B(){this.m_iColor=16711935,this.m_addDynDrawObject_call=void 0,this.m_pt=new E.Vector3,this.m_osmode=N.MxJigCmdManager.OsnapMode.kOsModekInValid,this.m_dOsmodeWdith=10}r.McEdJigOsnapDraw=W;var q=(D.prototype.resetData=function(){this.m_osmode=N.MxJigCmdManager.OsnapMode.kOsModekInValid,this.m_isValidPrvInputPoint=!1,this.m_lOSmode=0,this.m_vecOffset.set(0,0,0),this.m_isValid=!1,this.m_iLongprogressStatus=-1},D.prototype.notifyOsnapToServer=function(){var F=this;if(this.m_isRuning){var re={ptx:this.m_pt.x,pty:this.m_pt.y,osmode:this.m_lOSmode,isValidPrvInputPoint:this.m_isValidPrvInputPoint};this.m_isValidPrvInputPoint&&(re.prvPtx=this.m_prvInputPoint.x,re.prvPty=this.m_prvInputPoint.y);var le=this.m_mxJig.getMxObject();if(le.getRunMode()==I.MxRunMode.kBrowse){var fe=this,me=G.MxWindowsEvent.getCurrentMousePostion();le.getObjectOsnap().getOsnapData(me,function(ke,Le){ke=le.worldCoord2Doc(ke.x,ke.y,ke.z),fe.m_ptSnapPoint.x=ke.x,fe.m_ptSnapPoint.y=ke.y,fe.m_ptSnapPoint.z=0,fe.m_ptSnapSrcPoint.x=fe.m_pt.x,fe.m_ptSnapSrcPoint.y=fe.m_pt.y,fe.m_ptSnapSrcPoint.z=0,fe.m_osmode=Le,fe.m_draw.upDisplay(new E.Vector3(ke.x,ke.y,0),Le,fe.m_mxJig)})}else if(le.getRunMode()==I.MxRunMode.kCPPMxCAD){var ye=this;re.SearchRnge=le.viewCoordLong2Cad(z.MxDrawData.getCursorWidthPixels()),le.getMcObject().onNotifyOsnap(re,function(ke){ye.m_ptSnapPoint.x=ke.ptsx,ye.m_ptSnapPoint.y=ke.ptsy,ye.m_ptSnapPoint.z=ke.ptsz,ye.m_ptSnapSrcPoint.x=ke.ptx,ye.m_ptSnapSrcPoint.y=ke.pty,ye.m_ptSnapSrcPoint.z=0,ye.m_osmode=ke.osmode,ye.m_snapObjectId=ke.id,ye.m_draw.upDisplay(new E.Vector3(ke.ptsx,ke.ptsy,ke.ptsz),ke.osmode,ye.m_mxJig),ye.m_mxJig.onGetOsnapData(ke)})}else{re.SearchRnge=le.viewCoordLong2Cad(z.MxDrawData.getCursorWidthPixels());var Te=this;le.callCommand("MxCAD_NotifyOsnap",JSON.stringify(re),function(ke){if(!(typeof ke!="string"||ke.length<1)&&Te.m_isRuning){var Le=JSON.parse(ke);F.m_ptSnapPoint.x=Le.ptsx,F.m_ptSnapPoint.y=Le.ptsy,F.m_ptSnapPoint.z=Le.ptsz,F.m_ptSnapSrcPoint.x=Le.ptx,F.m_ptSnapSrcPoint.y=Le.pty,F.m_ptSnapSrcPoint.z=0,F.m_osmode=Le.osmode,Te.m_draw.upDisplay(new E.Vector3(Le.ptsx,Le.ptsy,Le.ptsz),Le.osmode,Te.m_mxJig)}})}}},D.prototype.startDrag=function(F,re){this.m_mxJig=re;var le,fe,me=this.m_mxJig.getMxObject();function ye(){le.notifyOsnapToServer()}return re.isDisableOsnap()?this.m_isEnable=!1:this.m_isEnable=me.getInisetValue(I.IniSetName.kEnableOsnapFunction)===!0,this.m_isOffsetInputPostion=F,this.m_isRuning=!0,this.resetData(),this.m_notifyOsnap_delayCall=(le=this,fe=null,function(){clearTimeout(fe),fe=setTimeout(ye,20)}),!0},D.prototype.endDrag=function(){return this.m_isRuning=!1,this.m_draw.clearDisplay(this.m_mxJig),!0},D.prototype.reCompteCurrentPoint=function(F){return F},D.prototype.isEnable=function(){var F,re=this.m_mxJig.getMxObject().getSysVarLong("OSMODE");return F=!(re==0||re&n.OsModeOff||s.isTmpDisableOsmode()),this.m_isEnable&&F},D.prototype.notifyOsnap=function(F,re){this.m_lOSmode=F,re==null?this.m_isValidPrvInputPoint=!1:(this.m_isValidPrvInputPoint=!0,this.m_prvInputPoint=re),this.m_osmode==N.MxJigCmdManager.OsnapMode.kOsModekInValid&&this.m_draw.clearDisplay(this.m_mxJig),this.m_notifyOsnap_delayCall()},D.prototype.setPoint=function(F,re){if(this.isEnable()){F==null?(this.m_isValid=!1,this.m_osmode=N.MxJigCmdManager.OsnapMode.kOsModekInValid):(this.m_iLongprogressStatus==-1||this.m_iLongprogressStatus,this.m_pt=F,this.m_inPoint=F,this.m_isValid=!0,(re==null||this.m_osmode!=N.MxJigCmdManager.OsnapMode.kOsModekInValid&&A.MxTools.getXYPlanDistance(this.m_ptSnapSrcPoint,F)>re)&&(this.m_osmode=N.MxJigCmdManager.OsnapMode.kOsModekInValid));var le=this.m_mxJig.getMxObject().getSysVarLong("OSMODE"),fe=s.getPrvPoint();this.notifyOsnap(le,s.isValidPrvpoint()?fe:void 0)}},D.prototype.seInValidPoint=function(){this.setPoint(void 0)},D.prototype.getCurrentOSnapPoint=function(F){var re={isSnapPoint:!1};return this.isEnable()?(re.pt=F,re.osmode=this.m_osmode,this.m_osmode!=N.MxJigCmdManager.OsnapMode.kOsModekInValid?(re.isSnapPoint=!0,re.pt.x=this.m_ptSnapPoint.x,re.pt.y=this.m_ptSnapPoint.y,re.pt.z=this.m_ptSnapPoint.z,s.isOsnapZValue()||(F.z=0)):re.pt=F):(re.pt=F,re.osmode=N.MxJigCmdManager.OsnapMode.kOsModekInValid),re},D.prototype.setLongprogressStatus=function(F){this.m_iLongprogressStatus=F},D.prototype.reComputeOffset=function(){},D);function D(F){this.m_inPoint=new E.Vector3,this.m_vecOffset=new E.Vector3,this.m_pt=new E.Vector3,this.m_isValid=!1,this.m_ptSnapPoint=new E.Vector3,this.m_ptSnapSrcPoint=new E.Vector3,this.m_snapObjectId=0,this.m_osmode=N.MxJigCmdManager.OsnapMode.kOsModekInValid,this.m_prvInputPoint=new E.Vector3,this.m_isValidPrvInputPoint=!1,this.m_lOSmode=0,this.m_iLongprogressStatus=-1,this.m_isOffsetInputPostion=!1,this.m_mxJig=null,this.m_notifyOsnap_delayCall=void 0,this.m_isRuning=!1,this.m_isEnable=!1,this.m_mxJig=F,this.m_draw=new W}r.McEdJigOsnap=q},{"../MxDrawData":22,"../MxDrawObject":23,"../MxFun":27,"../MxTools":37,"../MxWindowsEvent":40,"./MxJigCmdManager":53,three:19}],43:[function(t,e,r){var n,o=this&&this.__extends||(n=function(A,z){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,V){G.__proto__=V}||function(G,V){for(var ne in V)Object.prototype.hasOwnProperty.call(V,ne)&&(G[ne]=V[ne])})(A,z)},function(A,z){function G(){this.constructor=A}n(A,z),A.prototype=z===null?Object.create(z):(G.prototype=z.prototype,new G)});Object.defineProperty(r,"__esModule",{value:!0}),r.McGiWorldDrawSelect=r.McGiWorldDraw=r.McGiWorldDrawType=void 0;var s,c,l=t("three"),v=t("../MxThreeJS"),x=t("../MxManager"),w=t("three.meshline"),_=t("../MxFun");(c=s=r.McGiWorldDrawType||(r.McGiWorldDrawType={}))[c.kWorldDraw=1]="kWorldDraw",c[c.kDynDragDraw=2]="kDynDragDraw",c[c.kSelectDraw=3]="kSelectDraw";var b=(E.prototype.getType=function(){return this.worldDrawType},E.prototype.setXData=function(A){this.xData=A},E.prototype.setMatrix=function(A){this.matrix=A},E.prototype.getMatrix=function(){return this.matrix},E.prototype.setOpacity=function(A){this.opacity=A},E.prototype.getOpacity=function(){return this.opacity},E.prototype.setColor=function(A){A=_.MxFun.getNumberColor(A),this.iColor!=A&&(this.widthMaterial=null),this.iColor=A},E.prototype.setDash=function(A,z){this.dDashArray=A,this.dDashRatio=z},E.prototype.getDash=function(){return{dDashArray:this.dDashArray,dDashRatio:this.dDashRatio}},E.prototype.setDashLineDisplay=function(A){A?(this.dDashArray=.03,this.dDashRatio=.1,this.dLineWidth==0&&(this.dLineWidth=6,this.lineWidthByPixels=!0)):(this.dDashArray=0,this.dDashRatio=0)},E.prototype.isDashLineDisplay=function(){return 0<this.dDashArray&&0<this.dDashRatio},E.prototype.getColor=function(){return this.iColor},E.prototype.setRenderOrder=function(A){this.iRenderOrder=A},E.prototype.getRenderOrder=function(){return this.iRenderOrder},E.prototype.setLineWidthByPixels=function(A){this.lineWidthByPixels!=A&&(this.widthMaterial=null),this.lineWidthByPixels=A},E.prototype.getLineWidthByPixels=function(){return this.lineWidthByPixels},E.prototype.setLineWidth=function(A){this.dLineWidth!=A&&(this.widthMaterial=null),this.dLineWidth=A},E.prototype.getLineWidth=function(){return this.dLineWidth},E.prototype.drawEntity=function(A){var z=this.iRenderOrder;A.type=="Group"?A.traverse(function(G){G.type!="Group"&&(G.renderOrder=z)}):A.renderOrder=z,this.matrix!=null&&A.applyMatrix4(this.matrix),this.aryEntity.push(A),this.xData&&(A.MxWordDrawXData=this.xData,this.xData=null)},E.prototype.getEntitys=function(){return this.aryEntity},E.prototype.getMxObject=function(){return this.mxObj},E.prototype.createWidthMaterial=function(){this.widthMaterial==null&&(0<this.dDashArray&&0<this.dDashRatio?this.widthMaterial=new w.MeshLineMaterial({useMap:!1,color:this.iColor,opacity:1,resolution:new l.Vector2(this.mxObj.getViewWidth(),this.mxObj.getViewHeight()),sizeAttenuation:!this.lineWidthByPixels,lineWidth:this.dLineWidth,transparent:!0,depthTest:!1,dashArray:this.dDashArray,dashRatio:this.dDashRatio}):this.widthMaterial=new w.MeshLineMaterial({useMap:!1,color:this.iColor,opacity:1,resolution:new l.Vector2(this.mxObj.getViewWidth(),this.mxObj.getViewHeight()),sizeAttenuation:!this.lineWidthByPixels,lineWidth:this.dLineWidth,transparent:!0,depthTest:!1}))},E.prototype.drawSolid=function(A){if(!(A.length<3)){var z=new l.Shape(A.map(function(ne){var W=ne.x,B=ne.y;return new l.Vector2(W,B)})),G=new l.ShapeGeometry(z),V=new l.Mesh(G,new l.MeshPhongMaterial({color:this.getColor(),side:l.DoubleSide,transparent:!0,opacity:this.getOpacity()}));this.drawEntity(V)}},E.prototype.drawLines=function(A){if(!(A.length<2))if(this.dLineWidth!=0){this.createWidthMaterial();var z=new l.Geometry;z.vertices=A;var G=new w.MeshLine;G.setGeometry(z);var V=new l.Mesh(G.geometry,this.widthMaterial);this.drawEntity(V),this.drawEntity(v.MxThreeJS.createLines(A.slice(0),this.iColor,0))}else this.drawEntity(v.MxThreeJS.createLines(A.slice(0),this.iColor,this.opacity))},E.prototype.drawGeometryLines=function(A){if(!(A.vertices.length<2))if(this.dLineWidth!=0){this.createWidthMaterial();var z=new w.MeshLine;if(!(A instanceof l.Geometry)){var G=new l.Geometry;G.vertices=A.vertices,A=G}z.setGeometry(A);var V=new l.Mesh(z.geometry,this.widthMaterial);this.drawEntity(V);var ne=new l.LineBasicMaterial({color:this.iColor,transparent:!0,depthTest:!1,opacity:0}),W=new l.Line(A,ne);this.drawEntity(W)}else ne=void 0,ne=this.opacity&&this.opacity!=1||this.opacity==0?new l.LineBasicMaterial({color:this.iColor,transparent:!0,depthTest:!1,opacity:this.opacity}):new l.LineBasicMaterial({color:this.iColor,transparent:!0,depthTest:!1}),W=new l.Line(A,ne),this.drawEntity(W)},E.prototype.drawSelectLine=function(A,z,G,V){A instanceof Object&&z instanceof Object?this.drawEntity(v.MxThreeJS.createLine(A,z,this.iColor,0)):typeof A=="number"&&typeof z=="number"&&this.drawEntity(v.MxThreeJS.createLine(new l.Vector3(A,z,0),new l.Vector3(G,V,0),this.iColor,0))},E.prototype.drawLine=function(A,z,G,V){var ne,W;if(A instanceof Object&&z instanceof Object?(ne=A,W=z):typeof A=="number"&&typeof z=="number"&&(ne=new l.Vector3(A,z,0),W=new l.Vector3(G,V,0)),this.dLineWidth!=0){this.createWidthMaterial();var B=new Float32Array(6);B[0]=ne.x,B[1]=ne.y,B[2]=0,B[3]=W.x,B[4]=W.y,B[5]=0;var q=new w.MeshLine;q.setGeometry(B);var D=new l.Mesh(q.geometry,this.widthMaterial);D.renderOrder=this.iRenderOrder,this.drawEntity(D),this.drawSelectLine(ne,W)}else this.drawEntity(v.MxThreeJS.createLine(ne,W,this.iColor,this.opacity))},E.prototype.drawCircle=function(A,z){this.drawEntity(v.MxThreeJS.createCircle(A,z,this.iColor))},E.prototype.drawText=function(A,z,G,V,ne,W){var B=v.MxThreeJS.creatTextSprite(A,V,z,G,this.iColor,ne,W);return this.drawEntity(B),B},E.prototype.setupForEntity=function(A){this.iColor=_.MxFun.getNumberColor(A.getColor()),this.iRenderOrder=A.getRenderOrder(),this.opacity=A.opacity,this.dLineWidth=A.getLineWidth(),this.lineWidthByPixels=A.getLineWidthByPixels(),this.dDashArray=A.getDash().dDashArray,this.dDashRatio=A.getDash().dDashRatio},E);function E(A,z){this.aryEntity=[],this.iColor=16777215,this.dLineWidth=0,this.lineWidthByPixels=!0,this.iRenderOrder=x.MxData.iMxEntityRenderOrder,this.worldDrawType=1,this.widthMaterial=null,this.dDashArray=0,this.dDashRatio=0,this.matrix=null,this.opacity=1,this.xData=null,this.mxObj=A,this.worldDrawType=z}r.McGiWorldDraw=b;var I,O=(o(N,I=b),N.prototype.setSmallCoordDraw=function(A){this.isSmallCorrdDraw=A},N.prototype.setCurEntityId=function(A){this.curEntityId=A},N.prototype.drawEntity=function(A){},N.prototype.drawText=function(A,z,G,V,ne,W){return null},N.prototype.drawSelectLine=function(A,z,G,V){},N.prototype.isValid=function(){return this.curEntityId!=0||(console.log("this.curEntityId == 0"),!1)},N.prototype.drawLine=function(A,z,G,V){var ne,W;this.isValid()&&(A instanceof Object&&z instanceof Object?(ne=A,W=z):typeof A=="number"&&typeof z=="number"&&(ne=new l.Vector3(A,z,0),W=new l.Vector3(G,V,0)),this.selectManager.addLineDisplay(this.curEntityId,ne,W,this.isSmallCorrdDraw))},N.prototype.drawCircle=function(A,z){this.isValid()&&this.selectManager.addCircleDisplay(this.curEntityId,A,z,this.isSmallCorrdDraw)},N.prototype.drawLines=function(A){if(!(A.length<2))for(var z=A.length,G=0;G<z-1;G++)this.selectManager.addLineDisplay(this.curEntityId,A[G],A[G+1],this.isSmallCorrdDraw)},N);function N(A,z){var G=I.call(this,A,s.kSelectDraw)||this;return G.isSmallCorrdDraw=!1,G.selectManager=z,G.curEntityId=0,G.isSmallCorrdDraw=!1,G}r.McGiWorldDrawSelect=O},{"../MxFun":27,"../MxManager":29,"../MxThreeJS":36,three:19,"three.meshline":18}],44:[function(t,e,r){var n,o=this&&this.__extends||(n=function(B,q){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,F){D.__proto__=F}||function(D,F){for(var re in F)Object.prototype.hasOwnProperty.call(F,re)&&(D[re]=F[re])})(B,q)},function(B,q){function D(){this.constructor=B}n(B,q),B.prototype=q===null?Object.create(q):(D.prototype=q.prototype,new D)});Object.defineProperty(r,"__esModule",{value:!0}),r.MrxDbgUiPrBase=r.MrxDbgUiPrBase_Return=r.McEdGetPointWorldDrawObject=r.McEdGetPointWorldDraw=void 0;var s=t("three"),c=t("./MxJig"),l=t("./MxJigCmdManager"),v=t("../MxThreeJS"),x=t("../UI/MxUiVue"),w=t("../MxString"),_=t("./McGiWorldDraw"),b=t("../MxManager"),E=(I.prototype.setMcEdJig=function(B){this.m_pJig=B},I.prototype.getMcEdJig=function(){return this.m_pJig},I.prototype.setColor=function(B){this.m_iColor=B},I.prototype.getColor=function(){return this.m_iColor},I.prototype.getDrawColor=function(){return this.m_pJig.getMxObject().automaticInversionColor(this.m_iColor)},I.prototype.drawLine=function(B,q){this.m_pJig.drawEntity(v.MxThreeJS.createLine(B,q,this.getDrawColor()))},I.prototype.drawRect=function(B,q){var D=new s.Vector3(B.x,q.y,0),F=new s.Vector3(q.x,B.y,0);this.drawLine(B,D),this.drawLine(D,q),this.drawLine(q,F),this.drawLine(F,B)},I.prototype.drawMcDbEntity=function(B){this.m_pJig.drawMcDbEntity(B,this.getDrawColor())},I.prototype.drawMcDbLine=function(B,q,D,F,re,le){this.m_pJig.drawMcDbLine(B,q,D,F,re,le,this.getDrawColor())},I.prototype.drawCircle=function(B,q){this.m_pJig.drawEntity(v.MxThreeJS.createCircle(B,q,this.getDrawColor()))},I.prototype.drawEntity=function(B,q,D){D===void 0&&(D=!1),this.m_pJig.drawEntity(B,q,D)},I.prototype.drawText=function(B,q,D,F){var re=v.MxThreeJS.creatTextSprite(B,F,q,D,this.getDrawColor());this.drawEntity(re)},I.prototype.drawSolid=function(B,q){var D=v.MxThreeJS.createSolid(B,this.getDrawColor(),q);D&&this.drawEntity(D)},I.prototype.drawCustomEntity=function(B,q){var D=new _.McGiWorldDraw(this.m_pJig.getMxObject(),_.McGiWorldDrawType.kDynDragDraw);D.setupForEntity(B),B.worldDraw(D);for(var F=D.getEntitys(),re=F.length,le=0;le<re;le++)this.drawEntity(F[le],q,B.isUseSmallcoordDisplay())},I);function I(){this.m_pJig=null,this.m_iColor=16777215}r.McEdGetPointWorldDraw=E;var O,N,A,z=(o(G,O=E),G.prototype.setDraw=function(B){this.m_callDraw=B},G.prototype.worldDraw=function(B){this.m_callDraw!=null&&this.m_callDraw(B,this)},G);function G(){var B=O!==null&&O.apply(this,arguments)||this;return B.m_callDraw=void 0,B}r.McEdGetPointWorldDrawObject=z,(A=N=r.MrxDbgUiPrBase_Return||(r.MrxDbgUiPrBase_Return={}))[A.kCancel=-2]="kCancel",A[A.kNone=-1]="kNone",A[A.kOk=0]="kOk",A[A.kKeyWord=1]="kKeyWord";var V,ne=(o(W,V=c.McEdJigCommand),W.prototype.procInKeyword=function(B){B.status>=l.MxJigCmdManager.DragStatus.kKW1&&0<B.sKeyValue.length?this.m_keyWordPicked=B.sKeyValue.toUpperCase():this.m_keyWordPicked=""},W.prototype.getReturnStatus=function(B){switch(B){case l.MxJigCmdManager.DragStatus.kNoChange:return N.kNone;case l.MxJigCmdManager.DragStatus.kCancel:return N.kCancel;case l.MxJigCmdManager.DragStatus.kNull:return N.kNone;case l.MxJigCmdManager.DragStatus.kNormal:return N.kOk}return 1<=B?N.kKeyWord:N.kCancel},W.prototype.SetLASTPOINT=function(B){var q=this._mxObject;if(q.sysVariable().setSysVarPoint("LASTPOINT",B),B){var D=q.sysVariable().getSysVarNumber("GETPOINTSTATUS");D|=l.MxJigCmdManager.GETPOINTSTATUS.OsModeSValidLastPoint,q.sysVariable().setSysVarNumber("GETPOINTSTATUS",D)}else D=q.sysVariable().getSysVarNumber("GETPOINTSTATUS"),D&=~l.MxJigCmdManager.GETPOINTSTATUS.OsModeSValidLastPoint,q.sysVariable().setSysVarNumber("GETPOINTSTATUS",D)},W.prototype.clearLastInputPoint=function(){this._mxObject||(this._mxObject=b.MxManager.currentMx()),this.SetLASTPOINT(void 0)},W.prototype.setCursorType=function(B){this.m_cursorType=B},W.prototype.getCursorType=function(){return this.m_cursorType},W.prototype.setInputToucheType=function(B){this.m_toucheType=B},W.prototype.getInputToucheType=function(){return this.m_toucheType},W.prototype.keyWords=function(){return this.m_keyWords},W.prototype.setKeyWords=function(B){this.m_keyWords=B},W.prototype.message=function(){return this.m_message},W.prototype.setMessage=function(B){this.m_message=B},W.prototype.keyWordPicked=function(){return this.m_keyWordPicked},W.prototype.isKeyWordPicked=function(B){return B=B.toUpperCase(),this.m_keyWordPicked==B},W.prototype.setUserDraw=function(B){B.setMcEdJig(this),this.m_pWorldDraw=B},W.prototype.printMessage=function(){var B=new w.MxString(this.m_message);B.TrimRight(":"),1<this.m_keyWords.length&&this.m_keyWords[0]=="["&&this.m_keyWords[this.m_keyWords.length-1]=="]"?x.MxUiVue.acutPrintf(B.m_val+" \u6216"+this.m_keyWords+":"):x.MxUiVue.acutPrintf(B.m_val+":")},W);function W(){var B=V!==null&&V.apply(this,arguments)||this;return B.m_keyWords="",B.m_message="",B.m_keyWordPicked="",B.m_pWorldDraw=null,B.m_toucheType=l.MxJigCmdManager.InType.kGetBegan,B.m_cursorType=x.MxUiVue.CursorType.kNormal,B}r.MrxDbgUiPrBase=ne},{"../MxManager":29,"../MxString":34,"../MxThreeJS":36,"../UI/MxUiVue":63,"./McGiWorldDraw":43,"./MxJig":52,"./MxJigCmdManager":53,three:19}],45:[function(t,e,r){var n,o=this&&this.__extends||(n=function(F,re){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(le,fe){le.__proto__=fe}||function(le,fe){for(var me in fe)Object.prototype.hasOwnProperty.call(fe,me)&&(le[me]=fe[me])})(F,re)},function(F,re){function le(){this.constructor=F}n(F,re),F.prototype=re===null?Object.create(re):(le.prototype=re.prototype,new le)});Object.defineProperty(r,"__esModule",{value:!0}),r.MrxDbgUiPrAngle=r.MrxDbgUiPrKeyWord=r.MrxDbgUiPrString=r.MrxDbgUiPrInt=r.MrxDbgUiPrDist=void 0;var s,c=t("three"),l=t("./MxJigCmdManager"),v=t("../MxFun"),x=t("./MrxDbgUiPrBase"),w=t("../UI/MxUiVue"),_=t("../MxThreeJS"),b=(o(E,s=x.MrxDbgUiPrBase),E.prototype.value=function(){return this.m_value},E.prototype.basePt=function(){return new c.Vector3(this.m_basePt.x,this.m_basePt.y,0)},E.prototype.setBasePt=function(F){this.m_basePt==null?this.m_basePt=new c.Vector3(F.x,F.y,0):(this.m_basePt.x=F.x,this.m_basePt.y=F.y)},E.prototype.setUseBasePt=function(F){this.m_useBasePt=F},E.prototype.initGo=function(){this.m_keyWordPicked="",this.m_retcall=null,this.clearLastInputPoint()},E.prototype.go=function(F){this.initGo(),this.m_retcall=F,this.m_previousInPoint=null,this.m_currentInPoint=null,this.m_value=0,l.MxJigCmdManager.runCmd(this)},E.prototype.onExitCommand=function(){var F=this;w.MxUiVue.setCursorType(w.MxUiVue.CursorType.kNormal);var re=!1;this.m_retcall!=null&&(l.MxJigCmdManager.setRunCmdEvent(function(){s.prototype.onExitCommand.call(F,!1),re=!0}),this.m_retcall(this.getReturnStatus(this.m_resultDragStatus)),l.MxJigCmdManager.setRunCmdEvent(void 0)),!re&&l.MxJigCmdManager.isWaitCmdNull()&&w.MxUiVue.restoreCmdStatus(),re||s.prototype.onExitCommand.call(this,!0)},E.prototype.onStartCommand=function(){w.MxUiVue.setCursorType(this.m_cursorType),this.printMessage(),l.MxJigCmdManager.setKeywordList(this.keyWords()),s.prototype.onStartCommand.call(this)},E.prototype.sampler=function(){var F,re=l.MxJigCmdManager.acquirePoint(this.m_toucheType,!1);return re.status==l.MxJigCmdManager.DragStatus.kNormal&&(this.m_currSamplerPoint==null?this.m_currSamplerPoint=new c.Vector3(re.pt.x,re.pt.y,0):(this.m_currSamplerPoint.x=re.pt.x,this.m_currSamplerPoint.y=re.pt.y)),F=this.m_useBasePt?this.acquireDist(this.m_toucheType,this.m_basePt):this.acquireDist(this.m_toucheType,this.m_currentInPoint),this.procInKeyword(F),F.status==l.MxJigCmdManager.DragStatus.kNormal?(this.m_value=F.dist,F.status):F.status==l.MxJigCmdManager.DragStatus.kKW1?F.status:this.m_useBasePt||this.m_currentInPoint?re.status:((F=this.acquirePoint(this.m_toucheType,!1)).status==l.MxJigCmdManager.DragStatus.kNormal&&F.exit&&(this.m_previousInPoint==null?this.m_previousInPoint=new c.Vector3(F.pt.x,F.pt.y,0):(this.m_previousInPoint.x=F.pt.x,this.m_previousInPoint.y=F.pt.y)),F.status)},E.prototype.done=function(F){if(this.m_retcall!=null)return this.m_resultDragStatus=F,this.m_useBasePt||F!=l.MxJigCmdManager.DragStatus.kNormal||!this.m_previousInPoint||this.m_currentInPoint?l.MxJigCmdManager.DoneStatius.kExitCommand:(this.m_currentInPoint=this.m_previousInPoint,this.m_previousInPoint=null,l.MxJigCmdManager.DoneStatius.kContinueCommand);v.MxFun.Assert(0)},E.prototype.upDisplay=function(){this.m_currSamplerPoint&&(this.m_pWorldDraw&&(this._mxObject.getMcObject().onReadyJigUpdateDispla(),this.m_pWorldDraw.worldDraw(this.m_currSamplerPoint)),this.m_useBasePt&&this.m_basePt?this.drawEntity(_.MxThreeJS.createLine(this.m_currSamplerPoint,this.m_basePt,16777215)):this.m_currentInPoint&&this.drawEntity(_.MxThreeJS.createLine(this.m_currSamplerPoint,this.m_currentInPoint,16777215)))},E);function E(){var F=s.call(this)||this;return F.m_useBasePt=!1,F.m_basePt=null,F.m_previousInPoint=null,F.m_currentInPoint=null,F.m_value=0,F.m_currSamplerPoint=null,F.m_retcall=null,F.m_resultDragStatus=l.MxJigCmdManager.DragStatus.kCancel,F.m_cursorType=w.MxUiVue.CursorType.kCross,F}r.MrxDbgUiPrDist=b;var I,O=(o(N,I=x.MrxDbgUiPrBase),N.prototype.value=function(){return this.m_value},N.prototype.initGo=function(){this.m_keyWordPicked="",this.m_retcall=null,this.clearLastInputPoint()},N.prototype.go=function(F){this.initGo(),this.m_retcall=F,this.m_value=0,this.m_currSamplerPoint=null,l.MxJigCmdManager.runCmd(this)},N.prototype.onExitCommand=function(){var F=this;w.MxUiVue.setCursorType(w.MxUiVue.CursorType.kNormal);var re=!1;this.m_retcall!=null&&(l.MxJigCmdManager.setRunCmdEvent(function(){I.prototype.onExitCommand.call(F,!1),re=!0}),this.m_retcall(this.getReturnStatus(this.m_resultDragStatus)),l.MxJigCmdManager.setRunCmdEvent(void 0)),!re&&l.MxJigCmdManager.isWaitCmdNull()&&w.MxUiVue.restoreCmdStatus(),re||I.prototype.onExitCommand.call(this,!0)},N.prototype.onStartCommand=function(){w.MxUiVue.setCursorType(this.m_cursorType),this.printMessage(),l.MxJigCmdManager.setKeywordList(this.keyWords()),I.prototype.onStartCommand.call(this)},N.prototype.sampler=function(){var F=l.MxJigCmdManager.acquirePoint(this.m_toucheType,!1);F.status==l.MxJigCmdManager.DragStatus.kNormal&&(this.m_currSamplerPoint==null?this.m_currSamplerPoint=new c.Vector3(F.pt.x,F.pt.y,0):(this.m_currSamplerPoint.x=F.pt.x,this.m_currSamplerPoint.y=F.pt.y));var re=this.acquireInt();return this.procInKeyword(re),re.status==l.MxJigCmdManager.DragStatus.kNormal?this.m_value=re.iVal:(re.status,l.MxJigCmdManager.DragStatus.kKW1),re.status},N.prototype.done=function(F){if(this.m_retcall!=null)return this.m_resultDragStatus=F,l.MxJigCmdManager.DoneStatius.kExitCommand;v.MxFun.Assert(0)},N.prototype.upDisplay=function(){this.m_currSamplerPoint&&this.m_pWorldDraw&&(this._mxObject.getMcObject().onReadyJigUpdateDispla(),this.m_pWorldDraw.worldDraw(this.m_currSamplerPoint))},N);function N(){var F=I.call(this)||this;return F.m_value=0,F.m_currSamplerPoint=null,F.m_retcall=null,F.m_resultDragStatus=l.MxJigCmdManager.DragStatus.kCancel,F.m_cursorType=w.MxUiVue.CursorType.kNormal,F.setDynamicInputType(l.MxJigCmdManager.DynamicInputType.kNoInput),F}r.MrxDbgUiPrInt=O;var A,z=(o(G,A=x.MrxDbgUiPrBase),G.prototype.value=function(){return this.m_value},G.prototype.initGo=function(){this.m_keyWordPicked="",this.m_retcall=null},G.prototype.go=function(F){this.initGo(),this.m_retcall=F,this.m_value="",this.m_currSamplerPoint=null,l.MxJigCmdManager.runCmd(this)},G.prototype.onExitCommand=function(){var F=this;w.MxUiVue.setCursorType(w.MxUiVue.CursorType.kNormal);var re=!1;this.m_retcall!=null&&(l.MxJigCmdManager.setRunCmdEvent(function(){A.prototype.onExitCommand.call(F,!1),re=!0}),this.m_retcall(this.getReturnStatus(this.m_resultDragStatus)),l.MxJigCmdManager.setRunCmdEvent(void 0)),!re&&l.MxJigCmdManager.isWaitCmdNull()&&w.MxUiVue.restoreCmdStatus(),re||A.prototype.onExitCommand.call(this,!0)},G.prototype.onStartCommand=function(){w.MxUiVue.setCursorType(this.m_cursorType),this.printMessage(),l.MxJigCmdManager.setKeywordList(this.keyWords()),A.prototype.onStartCommand.call(this)},G.prototype.sampler=function(){var F=l.MxJigCmdManager.acquirePoint(this.m_toucheType,!1);F.status==l.MxJigCmdManager.DragStatus.kNormal&&(this.m_currSamplerPoint==null?this.m_currSamplerPoint=new c.Vector3(F.pt.x,F.pt.y,0):(this.m_currSamplerPoint.x=F.pt.x,this.m_currSamplerPoint.y=F.pt.y));var re=this.acquireString();return this.procInKeyword(re),re.status==l.MxJigCmdManager.DragStatus.kNormal?this.m_value=re.sValue:(re.status,l.MxJigCmdManager.DragStatus.kKW1),re.status},G.prototype.done=function(F){if(this.m_retcall!=null)return this.m_resultDragStatus=F,l.MxJigCmdManager.DoneStatius.kExitCommand;v.MxFun.Assert(0)},G.prototype.upDisplay=function(){this.m_currSamplerPoint&&this.m_pWorldDraw&&(this._mxObject.getMcObject().onReadyJigUpdateDispla(),this.m_pWorldDraw.worldDraw(this.m_currSamplerPoint))},G);function G(){var F=A.call(this)||this;return F.m_value="",F.m_currSamplerPoint=null,F.m_retcall=null,F.m_resultDragStatus=l.MxJigCmdManager.DragStatus.kCancel,F.m_cursorType=w.MxUiVue.CursorType.kCross,F}r.MrxDbgUiPrString=z;var V,ne=(o(W,V=x.MrxDbgUiPrBase),W.prototype.initGo=function(){this.m_keyWordPicked="",this.m_retcall=null},W.prototype.go=function(F){this.initGo(),this.m_retcall=F,this.m_currSamplerPoint=null,l.MxJigCmdManager.runCmd(this)},W.prototype.onExitCommand=function(){var F=this;w.MxUiVue.setCursorType(w.MxUiVue.CursorType.kNormal);var re=!1;this.m_retcall!=null&&(l.MxJigCmdManager.setRunCmdEvent(function(){V.prototype.onExitCommand.call(F,!1),re=!0}),this.m_retcall(this.getReturnStatus(this.m_resultDragStatus)),l.MxJigCmdManager.setRunCmdEvent(void 0)),!re&&l.MxJigCmdManager.isWaitCmdNull()&&w.MxUiVue.restoreCmdStatus(),re||V.prototype.onExitCommand.call(this,!0)},W.prototype.onStartCommand=function(){w.MxUiVue.setCursorType(this.m_cursorType),this.printMessage(),l.MxJigCmdManager.setKeywordList(this.keyWords()),V.prototype.onStartCommand.call(this)},W.prototype.sampler=function(){var F=l.MxJigCmdManager.acquirePoint(this.m_toucheType,!1);F.status==l.MxJigCmdManager.DragStatus.kNormal&&(this.m_currSamplerPoint==null?this.m_currSamplerPoint=new c.Vector3(F.pt.x,F.pt.y,0):(this.m_currSamplerPoint.x=F.pt.x,this.m_currSamplerPoint.y=F.pt.y));var re=this.acquireKeyword();return this.procInKeyword(re),re.status,l.MxJigCmdManager.DragStatus.kKW1,re.status},W.prototype.done=function(F){if(this.m_retcall!=null)return F>=l.MxJigCmdManager.DragStatus.kKW1&&(F=l.MxJigCmdManager.DragStatus.kNormal),this.m_resultDragStatus=F,l.MxJigCmdManager.DoneStatius.kExitCommand;v.MxFun.Assert(0)},W.prototype.upDisplay=function(){this.m_currSamplerPoint&&this.m_pWorldDraw&&(this._mxObject.getMcObject().onReadyJigUpdateDispla(),this.m_pWorldDraw.worldDraw(this.m_currSamplerPoint))},W);function W(){var F=V.call(this)||this;return F.m_currSamplerPoint=null,F.m_retcall=null,F.m_resultDragStatus=l.MxJigCmdManager.DragStatus.kCancel,F.m_cursorType=w.MxUiVue.CursorType.kCross,F}r.MrxDbgUiPrKeyWord=ne;var B,q=(o(D,B=x.MrxDbgUiPrBase),D.prototype.value=function(){return this.m_value},D.prototype.basePt=function(){return new c.Vector3(this.m_basePt.x,this.m_basePt.y,0)},D.prototype.setBasePt=function(F){this.m_basePt==null?this.m_basePt=new c.Vector3(F.x,F.y,0):(this.m_basePt.x=F.x,this.m_basePt.y=F.y)},D.prototype.setUseBasePt=function(F){this.m_useBasePt=F},D.prototype.initGo=function(){this.m_keyWordPicked="",this.m_retcall=null},D.prototype.go=function(F){this.initGo(),this.m_retcall=F,this.m_previousInPoint=null,this.m_currentInPoint=null,this.m_value=0,l.MxJigCmdManager.runCmd(this)},D.prototype.onExitCommand=function(){var F=this;w.MxUiVue.setCursorType(w.MxUiVue.CursorType.kNormal);var re=!1;this.m_retcall!=null&&(l.MxJigCmdManager.setRunCmdEvent(function(){B.prototype.onExitCommand.call(F,!1),re=!0}),this.m_retcall(this.getReturnStatus(this.m_resultDragStatus)),l.MxJigCmdManager.setRunCmdEvent(void 0)),!re&&l.MxJigCmdManager.isWaitCmdNull()&&w.MxUiVue.restoreCmdStatus(),re||B.prototype.onExitCommand.call(this,!0)},D.prototype.onStartCommand=function(){w.MxUiVue.setCursorType(this.m_cursorType),this.printMessage(),l.MxJigCmdManager.setKeywordList(this.keyWords()),B.prototype.onStartCommand.call(this)},D.prototype.sampler=function(){var F,re=l.MxJigCmdManager.acquirePoint(this.m_toucheType,!1);return re.status==l.MxJigCmdManager.DragStatus.kNormal&&(this.m_currSamplerPoint==null?this.m_currSamplerPoint=new c.Vector3(re.pt.x,re.pt.y,0):(this.m_currSamplerPoint.x=re.pt.x,this.m_currSamplerPoint.y=re.pt.y)),F=this.m_useBasePt?this.acquireAngle(this.m_toucheType,this.m_basePt):this.acquireAngle(this.m_toucheType,this.m_currentInPoint),this.procInKeyword(F),F.status==l.MxJigCmdManager.DragStatus.kNormal?(this.m_value=F.ang,F.status):F.status==l.MxJigCmdManager.DragStatus.kKW1?F.status:this.m_useBasePt||this.m_currentInPoint?re.status:((F=this.acquirePoint(this.m_toucheType,!1)).status==l.MxJigCmdManager.DragStatus.kNormal&&F.exit&&(this.m_previousInPoint==null?this.m_previousInPoint=new c.Vector3(F.pt.x,F.pt.y,0):(this.m_previousInPoint.x=F.pt.x,this.m_previousInPoint.y=F.pt.y)),F.status)},D.prototype.done=function(F){if(this.m_retcall!=null)return this.m_resultDragStatus=F,this.m_useBasePt||F!=l.MxJigCmdManager.DragStatus.kNormal||!this.m_previousInPoint||this.m_currentInPoint?l.MxJigCmdManager.DoneStatius.kExitCommand:(this.m_currentInPoint=this.m_previousInPoint,this.m_previousInPoint=null,l.MxJigCmdManager.DoneStatius.kContinueCommand);v.MxFun.Assert(0)},D.prototype.upDisplay=function(){this.m_currSamplerPoint&&(this.m_pWorldDraw&&(this._mxObject.getMcObject().onReadyJigUpdateDispla(),this.m_pWorldDraw.worldDraw(this.m_currSamplerPoint)),this.m_useBasePt&&this.m_basePt?this.drawEntity(_.MxThreeJS.createLine(this.m_currSamplerPoint,this.m_basePt,16777215)):this.m_currentInPoint&&this.drawEntity(_.MxThreeJS.createLine(this.m_currSamplerPoint,this.m_currentInPoint,16777215)))},D);function D(){var F=B.call(this)||this;return F.m_useBasePt=!1,F.m_basePt=null,F.m_previousInPoint=null,F.m_currentInPoint=null,F.m_value=0,F.m_currSamplerPoint=null,F.m_retcall=null,F.m_resultDragStatus=l.MxJigCmdManager.DragStatus.kCancel,F.m_cursorType=w.MxUiVue.CursorType.kCross,F}r.MrxDbgUiPrAngle=q},{"../MxFun":27,"../MxThreeJS":36,"../UI/MxUiVue":63,"./MrxDbgUiPrBase":44,"./MxJigCmdManager":53,three:19}],46:[function(t,e,r){var n,o=this&&this.__extends||(n=function(O,N){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,z){A.__proto__=z}||function(A,z){for(var G in z)Object.prototype.hasOwnProperty.call(z,G)&&(A[G]=z[G])})(O,N)},function(O,N){function A(){this.constructor=O}n(O,N),O.prototype=N===null?Object.create(N):(A.prototype=N.prototype,new A)});Object.defineProperty(r,"__esModule",{value:!0}),r.MrxDbgUiPrPoint=void 0;var s,c=t("three"),l=t("./MxJigCmdManager"),v=t("../MxFun"),x=t("./MrxDbgUiPrBase"),w=t("../UI/MxUiVue"),_=t("../MxThreeJS"),b=t("../MxManager"),E=(o(I,s=x.MrxDbgUiPrBase),I.prototype.value=function(){return new c.Vector3(this.m_value.x,this.m_value.y,0)},I.prototype.getCADValue=function(){return b.MxManager.getMxCpp().newMcGePoint3d(new c.Vector3(this.m_value.x,this.m_value.y,0))},I.prototype.basePt=function(){return new c.Vector3(this.m_basePt.x,this.m_basePt.y,0)},I.prototype.setBasePt=function(O){this.m_basePt==null?this.m_basePt=new c.Vector3(O.x,O.y,0):(this.m_basePt.x=O.x,this.m_basePt.y=O.y)},I.prototype.setUseBasePt=function(O){this.m_useBasePt=O},I.prototype.initGo=function(){this.m_keyWordPicked="",this.m_retcall=null,this.m_retWhileCall=null,this.m_exitCall=null},I.prototype.go=function(O){this.initGo(),this.m_retcall=O,l.MxJigCmdManager.runCmd(this)},I.prototype.goWhile=function(O,N){this.initGo(),this.m_retWhileCall=O,N&&(this.m_exitCall=N),l.MxJigCmdManager.runCmd(this)},I.prototype.onExitCommand=function(){var O=this;w.MxUiVue.setCursorType(w.MxUiVue.CursorType.kNormal);var N=!1;this.m_retcall!=null&&(l.MxJigCmdManager.setRunCmdEvent(function(){s.prototype.onExitCommand.call(O,!1),N=!0}),this.m_retcall(this.getReturnStatus(this.m_resultDragStatus)),l.MxJigCmdManager.setRunCmdEvent(void 0)),!N&&l.MxJigCmdManager.isWaitCmdNull()&&w.MxUiVue.restoreCmdStatus(),N||s.prototype.onExitCommand.call(this,!0)},I.prototype.onStartCommand=function(){w.MxUiVue.setCursorType(this.m_cursorType),this.printMessage(),l.MxJigCmdManager.setKeywordList(this.keyWords()),this.m_useBasePt&&this.SetLASTPOINT(this.m_basePt),s.prototype.onStartCommand.call(this)},I.prototype.sampler=function(){var O=this.acquirePoint(this.m_toucheType);return this.procInKeyword(O),O.status==l.MxJigCmdManager.DragStatus.kNormal&&(this.m_value==null?this.m_value=new c.Vector3(O.pt.x,O.pt.y,0):(this.m_value.x=O.pt.x,this.m_value.y=O.pt.y)),O.status},I.prototype.done=function(O){if(this.m_retcall!=null)return this.m_resultDragStatus=O,this.m_exitCall&&this.m_exitCall(this.getReturnStatus(this.m_resultDragStatus)),l.MxJigCmdManager.DoneStatius.kExitCommand;if(this.m_retWhileCall!=null){if((this.m_resultDragStatus=O)==l.MxJigCmdManager.DragStatus.kCancel)return this.m_exitCall&&this.m_exitCall(this.getReturnStatus(this.m_resultDragStatus)),l.MxJigCmdManager.DoneStatius.kExitCommand;var N=!1;O==l.MxJigCmdManager.DragStatus.kNull&&(N=!0);var A=this.m_retWhileCall(this.getReturnStatus(this.m_resultDragStatus));return A!=null&&A.exit!=null&&(N=A.exit),N?(this.m_exitCall&&this.m_exitCall(this.getReturnStatus(this.m_resultDragStatus)),l.MxJigCmdManager.DoneStatius.kExitCommand):(l.MxJigCmdManager.setKeywordList(this.keyWords()),this.printMessage(),l.MxJigCmdManager.DoneStatius.kContinueCommand)}v.MxFun.Assert(0)},I.prototype.upDisplay=function(){if(this.m_value&&(this.m_pWorldDraw&&(this._mxObject.getMcObject().onReadyJigUpdateDispla(),this.m_pWorldDraw.worldDraw(this.m_value)),this.m_useBasePt&&this.m_basePt)){var O=16777215;this._mxObject.isWhiteViewColor()&&(O=0);var N=this._mxObject;this.drawEntity(_.MxThreeJS.createLine(N.toSmallcoord(this.m_value),N.toSmallcoord(this.m_basePt),O),void 0,!0)}},I);function I(){var O=s.call(this)||this;return O.m_useBasePt=!1,O.m_basePt=null,O.m_value=null,O.m_retcall=null,O.m_retWhileCall=null,O.m_exitCall=null,O.m_resultDragStatus=l.MxJigCmdManager.DragStatus.kCancel,O.m_cursorType=w.MxUiVue.CursorType.kCross,O}r.MrxDbgUiPrPoint=E},{"../MxFun":27,"../MxManager":29,"../MxThreeJS":36,"../UI/MxUiVue":63,"./MrxDbgUiPrBase":44,"./MxJigCmdManager":53,three:19}],47:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MxCmdRunManager=void 0;var n,o,s,c,l,v,x,w,_=t("../MxFun"),b=t("../MxType"),E=t("./MxJigCmdManager"),I=t("../UI/MxUiVue"),O=t("../MxDrawData");n=r.MxCmdRunManager||(r.MxCmdRunManager={}),o={},s=new Array,c=0,l=!1,v="",x={},w={},n.InitQuickCommand=function(N){if(N)if(N instanceof Array)for(var A=N.length,z=0;z<A;z++){var G=N[z];if(!(G.length<2)){var V=G[0];if(V.length!=0)for(var ne=G.length,W=1;W<ne;W++)G[W].length!=0&&(x[G[W].toUpperCase()]=V)}}else console.log("Mx:QuickCommand data error,Not an array");else console.log("Mx:QuickCommand data error")},n.InitLanguageString=function(N){this.m_mapLanguageString=N},n.getLanguageString=function(N,A){var z=w[N];return z===void 0&&(z=A),z},n.MoveUpKey=function(){return l?++c>=s.length&&(c=0):l=!0,!0},n.MoveDownKey=function(){return!!l&&(--c<0&&(c=s.length-1),!0)},n.GetListCommad=function(){return c<0||c>=s.length?"":s[c]},n.ClearPrvCmd=function(){v=""},n.GetPrvCmd=function(){return v},n.SetPrvCmd=function(N){v=N},n.runCmd=function(N,A,z){var G=A.toUpperCase(),V=o[G];if(N&&V==null){var ne=x[G];if(ne!=null&&(V=o[ne.toUpperCase()]),V==null)return I.MxUiVue.isNull()?console.log(_.MxFun.formatString('\u672A\u77E5\u547D\u4EE4"{0}"',A)):I.MxUiVue.acutPrintf(`\u672A\u77E5\u547D\u4EE4"{0}"\u3002
  3212. \u547D\u4EE4:`,A),!1}if(!V)return!1;N.endPanCommand();var W=s.indexOf(V.cmd);-1<W&&s.splice(W,1),l=!(c=0),s.push(V.cmd),v=V.cmd;var B=V.fun;N&&(V.flag&b.MxType.MxCommandFlag.MCRX_CMD_TRANSPARENT)==0&&I.MxUiVue.acutPrintf(`{0}
  3213. `,V.cmd),E.MxJigCmdManager.stopCmd(E.MxJigCmdManager.DetailedResult.kNewCommadIn),N.callEvent("commandWillStart",{cmd:V.cmd}),N.getMcObject().fireStartRunCommand(V.cmd,V.flag);var q=N.sysVariable().getSysVarNumber("GETPOINTSTATUS");if(q&=~E.MxJigCmdManager.GETPOINTSTATUS.OsModeSValidLastPoint,q&=~E.MxJigCmdManager.GETPOINTSTATUS.OsModeSValidLastMovePoint,N.sysVariable().setSysVarNumber("GETPOINTSTATUS",q),N&&A!="Mx_IntelliSel"&&A!="McDraw_GripEdit"&&A!="Mx_FrontEndWebpageIntelliSel"&&A!="Mx_FrontEndWebpageGripEdit"){var D=!1,F=N.getMxAllSelect();if(N.getMxDatabase().getGripManager().removeAllGrips()&&(D=!0),N.getMxDatabase().getSelectManager().removeAllEntity()&&(D=!0),N.isValidMcObject()){var re=N.getMcObject().getGripManager().getAllSelect();N.getMcObject().getGripManager().setPrvCommandSelect(re),N.getMcObject().getGripManager().clearAll()&&(D=!0)}N.getMxDatabase().getSelectManager().setPrvCommandSelect(F),D&&(N.getMxDatabase().getGripManager().fireMxEntitySelectChange(),N.updateDisplay())}try{B(z)}catch(le){console.log("mx: run cmd error"),console.log(le)}return N.getMcObject().fireEndRunCommand(V.cmd,V.flag),N&&(E.MxJigCmdManager.isRunning()||I.MxUiVue.restoreCmdStatus(),N.updateDisplay(),O.MxDrawData.m_isAutoResetRenderer||N.resetRenderer()),!0},n.addCommand=function(N,A,z){z==null&&(z=b.MxType.MxCommandFlag.MCRX_CMD_MODAL);var G=N.toUpperCase();o[G]={fun:A,cmd:N,flag:z}}},{"../MxDrawData":22,"../MxFun":27,"../MxType":38,"../UI/MxUiVue":63,"./MxJigCmdManager":53}],48:[function(t,e,r){var n,o=this&&this.__extends||(n=function(W,B){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,D){q.__proto__=D}||function(q,D){for(var F in D)Object.prototype.hasOwnProperty.call(D,F)&&(q[F]=D[F])})(W,B)},function(W,B){function q(){this.constructor=W}n(W,B),W.prototype=B===null?Object.create(B):(q.prototype=B.prototype,new q)});Object.defineProperty(r,"__esModule",{value:!0}),r.MxDrawObjectOsnap=r.McDbLine=r.McDbCurve=r.McDbEntity=r.McDbType=void 0;var s,c,l=t("three"),v=t("../MxThreeJS"),x=t("../MxDrawData"),w=t("./MxJigCmdManager"),_=t("./McEdJigOsnap");(c=s=r.McDbType||(r.McDbType={}))[c.kInValid=0]="kInValid",c[c.kLine=1]="kLine";var b=(E.prototype.getType=function(){return this.m_type},E);function E(){this.m_type=s.kInValid}r.McDbEntity=b;var I,O=(o(N,I=b),N);function N(){return I!==null&&I.apply(this,arguments)||this}r.McDbCurve=O;var A,z=(o(G,A=O),G);function G(){var W=A.call(this)||this;return W.m_type=s.kLine,W}r.McDbLine=z;var V=(ne.prototype.getBlobHead=function(W,B){var q={};return q.type=W.getInt32(B,!0),B+=4,q.ver=W.getInt32(B,!0),B+=4,q.databaseIndex=W.getInt32(B,!0),B+=4,q.nOffset=B,q},ne.prototype.clearData=function(){this.threejsObjects=new l.Object3D},ne.prototype.calculateDistance=function(W,B,q){var D=new l.Vector3().subVectors(B,W),F=new l.Vector3().subVectors(q,W),re=D.clone().normalize(),le=F.clone().normalize(),fe=re.dot(le),me=new l.Vector3().subVectors(q,B),ye=new l.Vector3().subVectors(W,B),Te=me.clone().normalize(),ke=ye.clone().normalize();if(0<Te.dot(ke)&&0<fe){var Le=Math.sqrt(1-fe*fe),et=W.distanceTo(q),it=et*Le,Ue=et*fe,ht=D.clone().normalize().multiplyScalar(Ue),De=W.clone().add(ht),Be=D.clone().normalize().multiplyScalar(200+Ue);return{pt1:W,pt2:B,pt:q,distance:it,targetPt:De,warningPt:W.clone().add(Be)}}return null},ne.prototype.getOsnapData=function(W,B){if(this.threejsObjects){var q=new l.Raycaster,D=x.MxDrawData.getCursorWidthPixels();q.linePrecision=this.mxObj.screenCoordLong2World(D);var F=this.mxObj.getCanvas(),re=F.clientWidth,le=F.clientHeight,fe=this.mxObj.screenCoord2World(W.x,W.y);fe.z=0,W=new l.Vector2(W.x/re*2-1,-W.y/le*2+1),q.setFromCamera(W,this.mxObj.getCamera());var me=q.intersectObjects(this.threejsObjects.children,!0),ye=this.mxObj.getSysVarLong("OSMODE"),Te=new Map;if(me.length)for(var ke=0;ke<me.length;ke++){var Le=me[ke];if(Le.object.userData&&Le.object.userData.obj.getType()==s.kLine){var et=Le.object.userData.obj;if(ye&_.MxOsnapDefine.OsModeEnd){var it=fe.distanceTo(et.pt1);et.pt1.type=w.MxJigCmdManager.OsnapMode.kOsModeEnd,Te.set(it,et.pt1);var Ue=fe.distanceTo(et.pt2);et.pt2.type=w.MxJigCmdManager.OsnapMode.kOsModeEnd,Te.set(Ue,et.pt2)}if(ye&_.MxOsnapDefine.OsModeNear&&(!et.bulge||et.bulge==0)){var ht=this.calculateDistance(et.pt1,et.pt2,fe);ht&&(ht.targetPt.type=w.MxJigCmdManager.OsnapMode.kOsModeNear,Te.set(ht.distance,ht.targetPt))}}}if(Te.size){var De=this.mxObj.screenCoordLong2World(D),Be=Array.from(Te);Be.sort(function(Ve,He){return Ve[0]-He[0]}),Be[0][0]<De&&B(Be[0][1],Be[0][1].type)}}},ne.prototype.mxWebEntitysData=function(W,B){var q=this.getBlobHead(W,0);W.getInt32(q.nOffset,!0),q.nOffset+=4;var D=W.getInt32(q.nOffset,!0);q.nOffset+=4;var F=W.getInt32(q.nOffset,!0);if(q.nOffset+=4,1<F)console.log("mx:error mxfun.js version is old!");else{var re=W.getInt32(q.nOffset,!0);if(q.nOffset+=4,re==q.nOffset){this.threejsObjects=new l.Object3D;for(var le=0;le<D;le++){var fe=W.getInt8(q.nOffset);q.nOffset+=1;var me=W.getInt32(q.nOffset,!0);if(q.nOffset+=4,fe==1){var ye=W.getFloat32(q.nOffset,!0);q.nOffset+=4;var Te=W.getFloat32(q.nOffset,!0);q.nOffset+=4;var ke=W.getFloat32(q.nOffset,!0);q.nOffset+=4;var Le=W.getFloat32(q.nOffset,!0);q.nOffset+=4,(He=new z).pt1=new l.Vector3(ye,Te,0),He.pt2=new l.Vector3(ke,Le,0),(gt=v.MxThreeJS.createLine(He.pt1,He.pt2,16777215)).userData.obj=He,this.threejsObjects.add(gt)}else if(fe==2){var et=W.getInt8(q.nOffset);q.nOffset+=1;var it=W.getInt32(q.nOffset,!0);q.nOffset+=4;for(var Ue=new l.Vector3,ht=0,De=null,Be=0;Be<it;Be++){var Ve=new l.Vector3;Ve.x=W.getFloat32(q.nOffset,!0),q.nOffset+=4,Ve.y=W.getFloat32(q.nOffset,!0),q.nOffset+=4;var He,gt,dn=W.getFloat32(q.nOffset,!0);q.nOffset+=4,0<Be&&((He=new z).pt1=Ue.clone(),He.pt2=Ve.clone(),He.bulge=dn,(gt=v.MxThreeJS.createLine(He.pt1,He.pt2,16777215)).userData.obj=He,this.threejsObjects.add(gt)),Ue=Ve,ht=dn,Be==0&&(De=Ve)}et&&2<it&&((He=new z).pt1=De.clone(),He.pt2=Ue.clone(),He.bulge=ht,(gt=v.MxThreeJS.createLine(He.pt1,He.pt2,16777215)).userData.obj=He,this.threejsObjects.add(gt))}else console.log("mx:error mxWebEntitysData type"),q.nOffset=q.nOffset-5+me}}else console.log("mx: mxWebEntitysData size assert(0)")}},ne);function ne(W){this.threejsObjects=null,this.mxObj=null,this.mxObj=W}r.MxDrawObjectOsnap=V},{"../MxDrawData":22,"../MxThreeJS":36,"./McEdJigOsnap":42,"./MxJigCmdManager":53,three:19}],49:[function(t,e,r){var n,o=this&&this.__extends||(n=function(b,E){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,O){I.__proto__=O}||function(I,O){for(var N in O)Object.prototype.hasOwnProperty.call(O,N)&&(I[N]=O[N])})(b,E)},function(b,E){function I(){this.constructor=b}n(b,E),b.prototype=E===null?Object.create(E):(I.prototype=E.prototype,new I)});Object.defineProperty(r,"__esModule",{value:!0}),r.MxEntSelJig=void 0;var s,c=t("./MxJig"),l=t("./MxJigCmdManager"),v=t("../UI/MxUiVue"),x=t("../MrxDbgUtils"),w=(o(_,s=c.McEdJigCommand),_.prototype.sampler=function(){var b=l.MxJigCmdManager.InType.kGetBegan,E=this.acquirePoint(b);return E.status==l.MxJigCmdManager.DragStatus.kNormal&&(this.point=E.pt),E.status},_.prototype.done=function(b){if(b==l.MxJigCmdManager.DragStatus.kNormal){var E=this;x.MrxDbgUtils.findEntAtPoint(this.getMxObject(),this.point,this.filter).then(function(I){E.callRet(I)})}else this.callRet([]);return l.MxJigCmdManager.DoneStatius.kExitCommand},_.prototype.onStartCommand=function(){v.MxUiVue.setCursorType(v.MxUiVue.CursorType.kRect),s.prototype.onStartCommand.call(this)},_.prototype.onExitCommand=function(){v.MxUiVue.setCursorType(v.MxUiVue.CursorType.kNormal),l.MxJigCmdManager.isWaitCmdNull()&&v.MxUiVue.restoreCmdStatus(),s.prototype.onExitCommand.call(this,!0)},_.prototype.upDisplay=function(){},_);function _(){return s!==null&&s.apply(this,arguments)||this}r.MxEntSelJig=w},{"../MrxDbgUtils":20,"../UI/MxUiVue":63,"./MxJig":52,"./MxJigCmdManager":53}],50:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MxGridTrace=void 0;var n=t("three"),o=t("./MxJigCmdManager"),s=t("../MxFun"),c=t("../MxDrawData"),l=t("../MxThreeJS"),v=(x.prototype.ClearDynDrawEntity=function(){for(var w=this.m_mxJig.getMxObject().getTheTempDrawContainer_SmallCoord(),_=this.m_vecDynDrawEntity.length,b=0;b<_;b++)s.MxFun.removeThreejsObject(this.m_vecDynDrawEntity[b],w);this.m_vecDynDrawEntity=[]},x.prototype.GetSanpValue=function(w,_){var b=w%_;return 0<=b?_/2<b?w+=_-b:w-=b:_/2<(b=Math.abs(b))?w-=_-b:w+=b,w},x.prototype.CreteTracePoint=function(w,_){var b=this.m_mxJig.getMxObject(),E=b.getTheTempDrawContainer_SmallCoord();_/=2;var I=l.MxThreeJS.createLine(b.toSmallcoord2(w.x+_,w.y+_,0),b.toSmallcoord2(w.x-_,w.y-_,0),16711680);E.add(I),this.m_vecDynDrawEntity.push(I);var O=l.MxThreeJS.createLine(b.toSmallcoord2(w.x-_,w.y+_,0),b.toSmallcoord2(w.x+_,w.y-_,0),16711680);E.add(O),this.m_vecDynDrawEntity.push(O)},x.prototype.MouseMove=function(w){var _=this.m_mxJig.getMxObject();if(_.getMcObject().isValid()){if(this.ClearDynDrawEntity(),this.m_isValidTracePoint=!1,this.m_isTrace){var b=_.getSysVarPoint("SNAPUNIT");if(!(b.x<1e-6||b.y<1e-6)){w.z=0;var E=new n.Vector3;E.x=this.GetSanpValue(w.x,b.x),E.y=this.GetSanpValue(w.y,b.y);var I=_.viewCoordLong2Cad(c.MxDrawData.getCursorWidthPixels()),O=2*I;E.distanceTo(w)<O&&(this.m_isValidTracePoint=!0,this.m_ptTracePoint=E,this.CreteTracePoint(E,I))}}}else this.m_isTrace=!1},x.prototype.Init=function(){var w=this.m_mxJig.getMxObject();w.getMcObject().isValid()?(this.m_isValidTracePoint=!1,this.m_isTrace=!1,w.getSysVarLong("GRIDMODE")!=0&&(this.m_isTrace=!0),w.sysVariable().getSysVarNumber("GETPOINTSTATUS")&o.MxJigCmdManager.GETPOINTSTATUS.OsModeGridSnapTempDisable&&(this.m_isTrace=!1),this.m_mxJig.isDisableGridTrace()&&(this.m_isTrace=!1),this.m_isTrace):this.m_isTrace=!1},x.prototype.GetTracePoint=function(){if(this.m_isTrace)return this.m_isValidTracePoint?this.m_ptTracePoint:void 0},x.prototype.ClearDisplay=function(){this.ClearDynDrawEntity()},x.prototype.ReSetTempDisplay=function(){this.ClearDynDrawEntity(),this.m_isValidTracePoint=!1},x);function x(w){this.m_vecDynDrawEntity=[],this.m_ptTracePoint=new n.Vector3,this.m_isValidTracePoint=!1,this.m_isTrace=!1,this.m_mxJig=null,this.m_mxJig=w}r.MxGridTrace=v},{"../MxDrawData":22,"../MxFun":27,"../MxThreeJS":36,"./MxJigCmdManager":53,three:19}],51:[function(t,e,r){var n,o=this&&this.__extends||(n=function(b,E){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,O){I.__proto__=O}||function(I,O){for(var N in O)Object.prototype.hasOwnProperty.call(O,N)&&(I[N]=O[N])})(b,E)},function(b,E){function I(){this.constructor=b}n(b,E),b.prototype=E===null?Object.create(E):(I.prototype=E.prototype,new I)});Object.defineProperty(r,"__esModule",{value:!0}),r.MxIntelliSelectJig=void 0;var s,c=t("three"),l=t("./MxJig"),v=t("./MxJigCmdManager"),x=t("../MxThreeJS"),w=(o(_,s=l.McEdJigCommand),_.prototype.sampler=function(){var b=v.MxJigCmdManager.InType.kGetBegan,E=this.acquirePoint(b);return E.status==v.MxJigCmdManager.DragStatus.kNormal&&(this.m_pt2=E.pt),E.status},_.prototype.getTypeName=function(){return"MxIntelliSelect"},_.prototype.done=function(b){if(b==v.MxJigCmdManager.DragStatus.kNormal){var E=this.getMxObject();E.getMxDatabase().getGripManager().doWindowsSelect(this.m_pt1,this.m_pt2),E.getMcObject().getGripManager().doRangeSelect(this.m_pt1,this.m_pt2)}return v.MxJigCmdManager.DoneStatius.kExitCommand},_.prototype.doPointSelect=function(b,E,I){var O=b.viewCoordLong2Cad(16),N={x:E.x,y:E.y,tol:O};b.callCommand("MxCAD_IntelliSelect_Point",JSON.stringify(N),function(A){I(A)})},_.prototype.upDisplay=function(){var b=new c.Vector3(this.m_pt1.x,this.m_pt2.y,this.m_pt2.z),E=new c.Vector3(this.m_pt2.x,this.m_pt1.y,this.m_pt2.z),I=[];I.push(this.m_pt1),I.push(b),I.push(this.m_pt2),I.push(E),I.push(this.m_pt1);var O=null,N=65280;if(this.m_pt2.x>this.m_pt1.x)O=x.MxThreeJS.createLines(I,16777215),N=255;else{var A=this.getMxObject().viewCoordLong2Cad(3);O=x.MxThreeJS.createDashedLines(I,16777215,2*A,A)}var z=[];z.push(this.m_pt1),z.push(b),z.push(this.m_pt2),z.push(this.m_pt1),z.push(this.m_pt2),z.push(E);var G=x.MxThreeJS.createTriangle(z,N,.27);this.drawEntity(G,30),this.drawEntity(O,31)},_);function _(b){var E=s.call(this)||this;return E.m_pt1=b,E.m_pt2=b,E}r.MxIntelliSelectJig=w},{"../MxThreeJS":36,"./MxJig":52,"./MxJigCmdManager":53,three:19}],52:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.McEdJigCommand=r.MxDynamicInput=void 0;var n=t("three"),o=t("../MxFun"),s=t("./MxJigCmdManager"),c=t("../MxManager"),l=t("../MxTools"),v=t("../UI/MxUiVue"),x=t("./McEdJigOsnap"),w=t("../MxWindowsEvent"),_=t("./McEdJigDynamicTrace"),b=t("./MxPolarAxisTrace"),E=t("./MxGridTrace"),I=t("../MxThreeJS"),O=t("../MxDrawData"),N=(A.prototype.getFocusIndex=function(){return this.m_isShowDynInput?this.m_iFocusIndex:-1},A.prototype.ClearDynDrawEntity=function(){for(var V=this.m_jig.getMxObject().getTheTempDrawContainer_SmallCoord(),ne=this.m_vecDynDrawEntity.length,W=0;W<ne;W++)o.MxFun.removeThreejsObject(this.m_vecDynDrawEntity[W],V);this.m_vecDynDrawEntity=[]},A.prototype.ClearDisplay=function(){this.ClearDynDrawEntity()},A.prototype.onKeyEcsDown=function(){return this.m_isShowDynInput&&this.m_isInputStatus?(this.m_isInputStatus=!1,v.MxUiVue.OnMxEvent({name:"dynInputReSet"}),1):0},A.prototype.onKeyDonw=function(V){if(!this.m_isShowDynInput||V==27||V==16||V==17||V==18)return 0;if(V!=32&&V!=13)return this.m_isInputStatus=!0,0;if(this.m_isInputStatus&&v.MxUiVue.DynamicInput_isShow())if(v.MxUiVue.DynamicInput_getType()==s.MxJigCmdManager.DynamicInputType.kXYCoordInput){var ne=v.MxUiVue.DynamicInput_getValue1(),W=v.MxUiVue.DynamicInput_getValue2(),B=v.MxUiVue.DynamicInput_getFocusValue(),q=v.MxUiVue.DynamicInput_getFocusIndex(),D="";B.length!=0?D=l.MxTools.IsNumerical(B)?q==0?o.MxFun.formatString("{0},{1}",B,W):o.MxFun.formatString("{0},{1}",ne,B):B:l.MxTools.IsNumerical(ne)&&l.MxTools.IsNumerical(W)&&(D=o.MxFun.formatString("{0},{1}",ne,W)),this.m_iFocusIndex=q,v.MxUiVue.setCmdText(D)}else v.MxUiVue.DynamicInput_getType()==s.MxJigCmdManager.DynamicInputType.kDistanceInput&&(B=v.MxUiVue.DynamicInput_getFocusValue(),this.m_iFocusIndex=v.MxUiVue.DynamicInput_getFocusIndex(),v.MxUiVue.setCmdText(B));return this.m_isInputStatus=!1,0},A.prototype.isInputStatus=function(){return this.m_isInputStatus},A.prototype.isTruncatedInput=function(){return this.m_isShowDynInput&&this.m_isInputStatus},A.prototype.initDynInput=function(V){this.m_jig=V;var ne=this.m_jig.getMxObject();if(this.m_iFocusIndex=-1,this.m_isShowDynInput=!1,!v.MxUiVue.isNull()){v.MxUiVue.DynamicInput_setType(this.m_dynType);var W=ne.sysVariable().getSysVarNumber("GETPOINTSTATUS");W&s.MxJigCmdManager.GETPOINTSTATUS.OsModeSValidLastPoint&&v.MxUiVue.SetLasetPoint(ne.sysVariable().getSysVarPoint("LASTPOINT")),this.m_dynType==s.MxJigCmdManager.DynamicInputType.kAutoInput&&(W&s.MxJigCmdManager.GETPOINTSTATUS.OsModeSValidLastPoint?v.MxUiVue.DynamicInput_setType(s.MxJigCmdManager.DynamicInputType.kDistanceInput):v.MxUiVue.DynamicInput_setType(s.MxJigCmdManager.DynamicInputType.kXYCoordInput))}},A.prototype.setFocus=function(V){v.MxUiVue.OnMxEvent({name:"dynInputSetFocus",param:{isFocus:V}})},A.prototype.exitDynInput=function(){v.MxUiVue.DynamicInput_setShow(!1),v.MxUiVue.DynamicInput_upDisplay()},A.prototype.isShow=function(){return v.MxUiVue.DynamicInput_isShow()},A.prototype.drawSolidPoint=function(V,ne,W,B){var q=I.MxThreeJS.createPoint(B.toSmallcoord(V),this.m_iDashedLineLenColor,ne);W.add(q),this.m_vecDynDrawEntity.push(q)},A.prototype.drawDashedLine=function(V,ne,W,B,q,D){var F=I.MxThreeJS.createDashedLine(D.toSmallcoord2(V.x,V.y,V.z),D.toSmallcoord2(ne.x,ne.y,ne.z),this.m_iDashedLineLenColor,B,B);W.add(F),this.m_vecDynDrawEntity.push(F)},A.prototype.worldDrawDistanceInput=function(V,ne){var W=this.m_jig.getMxObject();if(W.getMcObject().isValid()&&((V=V.clone()).z=0,(ne=ne.clone()).z=0,!(W.docCoordLong2Screen(V.distanceTo(ne))<20))){var B=W.getTheTempDrawContainer_SmallCoord(),q=W.viewCoordLong2Cad(this.m_dashedLineLen),D=V.clone().sub(ne),F=D.clone();F.applyAxisAngle(new n.Vector3(0,0,1),.5*Math.PI),F.normalize(),F.multiplyScalar(W.viewCoordLong2Cad(50));var re=new n.Vector3(0,1,0),le=new n.Vector3(1,0,0);F.dot(re)<0&&F.multiplyScalar(-1),D.dot(re)<0&&F.multiplyScalar(-1),D.dot(le)<0&&F.multiplyScalar(-1);var fe=ne.clone().add(F),me=V.clone().add(F),ye=ne.distanceTo(V),Te=new n.Vector3(ne.x+ye,ne.y,ne.z);this.drawSolidPoint(ne.clone().add(F),3,B,W),this.drawSolidPoint(V.clone().add(F),3,B,W),this.drawSolidPoint(Te,3,B,W),this.drawDashedLine(fe,me,B,q,q,W),this.drawDashedLine(ne,fe,B,q,q,W),this.drawDashedLine(V,me,B,q,q,W),this.drawDashedLine(ne,Te,B,q,q,W);var ke=V.clone().sub(ne),Le=0;1e-6<ke.length()&&(Le=ke.angleTo(new n.Vector3(1,0,0)));var et=0,it=Le;ke.dot(re)<0&&(et=2*Math.PI-Le,it=Le);var Ue=I.MxThreeJS.createDashedArc(W.toSmallcoord(ne),ye,et,it,this.m_iDashedLineLenColor,q,q);B.add(Ue),this.m_vecDynDrawEntity.push(Ue)}},A.prototype.upDynInput=function(){if(!v.MxUiVue.isNull()){var V=this.m_jig.getMxObject(),ne=!1;if(ne=!this.m_jig.isDisableDynInput()&&V.getSysVarLong("DYNINPUT")==1,O.MxDrawData.m_isForbiddenDynInput&&(ne=!1),v.MxUiVue.DynamicInput_setShow(ne),this.m_isShowDynInput=ne){if(v.MxUiVue.DynamicInput_setTip(v.MxUiVue.getCmdTip()),s.MxJigCmdManager.getAcquireStatus()==s.MxJigCmdManager.AcquireStatus.kMove){var W=s.MxJigCmdManager.getAcquirePoint();if(v.MxUiVue.DynamicInput_setPos(V.currentCoord2Screen(W.x,W.y,W.z)),v.MxUiVue.DynamicInput_getType()==s.MxJigCmdManager.DynamicInputType.kXYCoordInput)v.MxUiVue.DynamicInput_setValue1(W.x.toFixed(3)),v.MxUiVue.DynamicInput_setValue2(W.y.toFixed(3));else if(v.MxUiVue.DynamicInput_getType()==s.MxJigCmdManager.DynamicInputType.kDistanceInput){var B=s.MxJigCmdManager.getAcquirePoint(),q=v.MxUiVue.GetLasetPoint();this.worldDrawDistanceInput(B,q);var D=new n.Vector3(q.x+.5*(B.x-q.x),q.y+.5*(B.y-q.y),q.z+.5*(B.z-q.z)),F=B.clone().sub(q);F.length()<1e-8&&(F=new n.Vector3(1,0,0));var re=F.clone();re.applyAxisAngle(new n.Vector3(0,0,1),.5*Math.PI),re.normalize(),re.multiplyScalar(V.viewCoordLong2Cad(50));var le=new n.Vector3(0,1,0),fe=new n.Vector3(1,0,0);re.dot(le)<0&&re.multiplyScalar(-1),F.dot(le)<0&&re.multiplyScalar(-1),F.dot(fe)<0&&re.multiplyScalar(-1),D.add(re);var me=q.distanceTo(B);v.MxUiVue.DynamicInput_setValue1(me.toFixed(3)),v.MxUiVue.DynamicInput_setValue1Pos(V.currentCoord2Screen(D.x,D.y,W.z)),me=q.distanceTo(B);var ye=q.clone();ye.x+=me;var Te=(D=new n.Vector3(ye.x+.5*(B.x-ye.x),ye.y+.5*(B.y-ye.y),ye.z+.5*(B.z-ye.z))).clone().sub(q);Te.normalize(),Te.multiplyScalar(me),D=q.clone().add(Te);var ke=B.clone().sub(q),Le=0;1e-6<ke.length()&&(Le=ke.angleTo(new n.Vector3(1,0,0))),Le=180*Le/Math.PI,v.MxUiVue.DynamicInput_setValue2(Le.toFixed(3)+"\xB0"),v.MxUiVue.DynamicInput_setValue2Pos(V.currentCoord2Screen(D.x,D.y,W.z))}}v.MxUiVue.DynamicInput_upDisplay()}}},A.prototype.setDynamicInputType=function(V){this.m_dynType=V},A.prototype.getDynamicInputType=function(){return this.m_dynType},A);function A(V){this.m_dynType=s.MxJigCmdManager.DynamicInputType.kAutoInput,this.m_isInputStatus=!1,this.m_vecDynDrawEntity=[],this.m_dashedLineLen=1.5,this.m_iDashedLineLenColor=8421504,this.m_iFocusIndex=-1,this.m_isShowDynInput=!1,this.m_jig=V}r.MxDynamicInput=N;var z=(G.prototype.getTypeName=function(){return""},G.prototype.isExit=function(){return this._isExit},G.prototype.getDetailedResult=function(){return this.m_DetailedResult},G.prototype.getParentGroup=function(){return this.drawGroup||(this.drawGroup=new n.Group,this.drawGroup.renderOrder=c.MxData.iGripRenderOrder,this._mxObject.getTheTempDrawContainer().add(this.drawGroup)),this.drawGroup},G.prototype.getParentGroup_smallCoord=function(){return this.drawGroup_smallCoord||(this.drawGroup_smallCoord=new n.Group,this.drawGroup_smallCoord.renderOrder=c.MxData.iGripRenderOrder,this._mxObject.getTheTempDrawContainer_SmallCoord().add(this.drawGroup_smallCoord)),this.drawGroup_smallCoord},G.prototype.onExitCommand=function(V){V&&this.m_dynInput.exitDynInput(),this.m_osnap.endDrag(),this.m_dynamicTrace.ClearDisplay(),this.m_polarAxisTrace.ClearDisplay(),this.m_gridTrace.ClearDisplay(),this.m_dynInput.ClearDisplay(),this._mxObject.getMcObject().onJigCommandEnd()},G.prototype.getOsnap=function(){return this.m_osnap},G.prototype.getOrtho=function(){return this.m_ortho},G.prototype.getDynamicTrace=function(){return this.m_dynamicTrace},G.prototype.getPolarAxisTrace=function(){return this.m_polarAxisTrace},G.prototype.getGridTrace=function(){return this.m_gridTrace},G.prototype.onGetOsnapData=function(V){this.m_dynamicTrace.OnDynamicTrace(V.id,new n.Vector3(V.ptsx,V.ptsy,V.ptsz),V.osmode)},G.prototype.isDisableDynInput=function(){return this.m_isDisableDynInput},G.prototype.setDisableDynInput=function(V){this.m_isDisableDynInput=V},G.prototype.setDisableOsnap=function(V){this.m_isDisableOsnap=V},G.prototype.isDisableOsnap=function(){return this.m_isDisableOsnap},G.prototype.setDisableDynamicTrace=function(V){this.m_isDisableDynamicTrace=V},G.prototype.isDisableDynamicTrace=function(){return this.m_isDisableDynamicTrace},G.prototype.setDisablePolarAxisTrace=function(V){this.m_isDisablePolarAxisTrace=V},G.prototype.isDisablePolarAxisTrace=function(){return this.m_isDisablePolarAxisTrace},G.prototype.setDisableGridTrace=function(V){this.m_isDisableGridTrace=V},G.prototype.isDisableGridTrace=function(){return this.m_isDisableGridTrace},G.prototype.setDisableOrthoTrace=function(V){this.m_isDisableOrtho=V},G.prototype.isDisableOrthoTrace=function(){return this.m_isDisableOrtho},G.prototype.disableAllTrace=function(V){V===void 0&&(V=!0),this.m_isDisableOsnap=V,this.m_isDisableDynamicTrace=V,this.m_isDisablePolarAxisTrace=V,this.m_isDisableGridTrace=V,this.m_isDisableOrtho=V},G.prototype.onStartCommand=function(){this._isCancle=!1,this._isExit=!1,this.m_DetailedResult=s.MxJigCmdManager.DetailedResult.kUnknown,this.m_dynInput.initDynInput(this),this.m_osnap.startDrag(this.m_isOffsetInputPostion,this);var V=w.MxWindowsEvent.getCurrentMousePostion(),ne=this._mxObject.screenCoord2Current(V.x,V.y,0);this.m_osnap.setPoint(ne),this.m_dynamicTrace.Init(),this.m_polarAxisTrace.Init(),this.m_gridTrace.Init(),this.m_ortho.Init(),s.MxJigCmdManager.doMouseMoveImp(),this.m_dynInput.setFocus(!0)},G.prototype.getDynImput=function(){return this.m_dynInput},G.prototype.setMxObject=function(V){this._mxObject=V},G.prototype.getMxObject=function(){return this._mxObject},G.prototype.setColor=function(V){this._iColor=V},G.prototype.getColor=function(){return this._iColor},G.prototype.setDynamicInputType=function(V){this.m_dynInput.setDynamicInputType(V)},G.prototype.getDynamicInputType=function(){return this.m_dynInput.getDynamicInputType()},G.prototype.createTriangle=function(V,ne,W){var B=new n.MeshBasicMaterial({color:this._iColor,side:n.DoubleSide}),q=new n.Geometry;q.vertices.push(V),q.vertices.push(ne),q.vertices.push(W);var D=new n.Vector3(1,1,1),F=new n.Color(this._iColor),re=new n.Face3(0,1,2,D,F,0);return q.faces.push(re),q.computeFaceNormals(),q.computeVertexNormals(),new n.Mesh(q,B)},G.prototype.createPoint=function(V){var ne=new n.Geometry;ne.vertices.push(V);var W=new n.PointsMaterial({color:this._iColor,size:3});return new n.Points(ne,W)},G.prototype.createLine=function(V,ne){var W=new n.Geometry,B=new n.LineBasicMaterial({color:this._iColor});return W.vertices.push(V,ne),new n.Line(W,B)},G.prototype.drawReserve=function(V){this.m_isReserveDrawStatus=!0,this.m_callReserveDrawAddEntity=V,this.upDisplay(),this.m_isReserveDrawStatus=!1,this.m_callReserveDrawAddEntity=null},G.prototype.drawMcDbEntity=function(V,ne){this.m_isReserveDrawStatus?this._mxObject.getMcObject().DrawEntity(V.getImp(),ne):this._mxObject.getMcObject().onJigDrawEntityDisplay(V.getImp(),ne)},G.prototype.drawMcDbLine=function(V,ne,W,B,q,D,F){this.m_isReserveDrawStatus?this._mxObject.getMcObject().DrawLine(V,ne,W,B,q,D,F):this._mxObject.getMcObject().onJigDrawEntityDisplay_line(V,ne,W,B,q,D,F)},G.prototype.drawEntity=function(V,ne,W){if(W===void 0&&(W=!1),V!=null)if(this.m_isReserveDrawStatus)V.renderOrder=ne!=null?ne:c.MxData.iDynJigRenderOrder,this._mxObject.addObject(V),this.m_callReserveDrawAddEntity&&this.m_callReserveDrawAddEntity(V);else{var B="MxDynDraw_"+this._DynNameId.toString();V.name=B,V.renderOrder=ne!=null?ne:c.MxData.iDynJigRenderOrder,this._aryDynDrawObjectNamesId==null&&(this._aryDynDrawObjectNamesId=new Array),this._aryDynDrawObjectNamesId.push(this._DynNameId),this._DynNameId++,W?this.getParentGroup_smallCoord().add(V):this.getParentGroup().add(V)}},G.prototype.floorPowerOfTwo=function(V){return Math.pow(2,Math.floor(Math.log(V)/Math.LN2))},G.prototype.makeTextSprite=function(V,ne,W,B,q){var D,F=document.createElement("canvas"),re=F.getContext("2d"),le=o.MxFun.formatString("normal {0}px Arial","256");re.font=le;var fe=re.measureText(V);D=2*this.floorPowerOfTwo(fe.width),F.width=D,F.height=256,re.font=le,re.textAlign="center",re.textBaseline="middle";var me=o.MxFun.formatString("#{0}",q.toString(16));re.fillStyle=me,re.fillText(V,D/2,128);var ye=new n.Texture(F);ye.needsUpdate=!0;var Te=new n.SpriteMaterial({map:ye});Te.transparent=!1,Te.rotation=B;var ke=new n.Sprite(Te);return ke.scale.set(D/256*W,W,1),ke.position.set(ne.x,ne.y,0),ke},G.prototype.drawText=function(V,ne,W,B){var q=this.makeTextSprite(V,B,ne,W,this._iColor);this.drawEntity(q)},G.prototype.drawPoints=function(V){for(var ne=0;ne<V.length;ne++){var W=new n.Geometry;W.vertices.push(V[ne]);var B=new n.PointsMaterial({color:this._iColor,size:3}),q=new n.Points(W,B);this.drawEntity(q)}},G.prototype.drawPoint=function(V){var ne=new n.Geometry;ne.vertices.push(V);var W=new n.PointsMaterial({color:this._iColor,size:3}),B=new n.Points(ne,W);this.drawEntity(B)},G.prototype.drawPolyline=function(V){for(var ne=new n.Geometry,W=0;W<V.length;W++)ne.vertices.push(V[W]);var B=new n.LineBasicMaterial({color:this._iColor}),q=new n.Line(ne,B);this.drawEntity(q)},G.prototype.drawSpline=function(V){},G.prototype.drawCircle=function(V,ne){var W=new n.CircleGeometry(ne,64,3,2*Math.PI),B=new n.LineBasicMaterial({color:this._iColor});W.vertices.shift();var q=new n.LineLoop(W,B);q.position.x=V.x,q.position.y=V.y,q.position.z=V.z,this.drawEntity(q)},G.prototype.drawArc=function(V,ne,W,B){var q=new n.CircleGeometry(ne,64,W,B),D=new n.LineBasicMaterial({color:this._iColor});q.vertices.shift();var F=new n.Line(q,D);F.position.x=V.x,F.position.y=V.y,F.position.z=V.z,this.drawEntity(F)},G.prototype.drawLine=function(V,ne){var W=new n.Geometry,B=new n.LineBasicMaterial({color:this._iColor});W.vertices.push(V,ne);var q=new n.Line(W,B);this.drawEntity(q)},G.prototype.removeDynDrawObject=function(){if(this._aryDynDrawObjectNamesId!=null){for(var V=0;V<this._aryDynDrawObjectNamesId.length;V++){var ne,W="MxDynDraw_"+this._aryDynDrawObjectNamesId[V].toString();(ne=this.getParentGroup().getObjectByName(W))?o.MxFun.removeThreejsObject(ne,this.getParentGroup()):(ne=this.getParentGroup_smallCoord().getObjectByName(W))&&o.MxFun.removeThreejsObject(ne,this.getParentGroup_smallCoord())}this._aryDynDrawObjectNamesId=[],this._mxObject.getMcObject().onJigClearDisplay()}},G.prototype.acquirePoint=function(V,ne){ne===void 0&&(ne=!0);var W=s.MxJigCmdManager.acquirePoint(V,ne);return this._isExit=W.exit,this._isExit&&(this.m_DetailedResult=W.DetailedResult),W},G.prototype.acquireDist=function(V,ne){var W=s.MxJigCmdManager.acquireDist(V,ne);return this._isExit=W.exit,this._isExit&&(this.m_DetailedResult=W.DetailedResult),W},G.prototype.acquireAngle=function(V,ne){var W=s.MxJigCmdManager.acquireAngle(V,ne);return this._isExit=W.exit,this._isExit&&(this.m_DetailedResult=W.DetailedResult),W},G.prototype.acquireInt=function(){var V=s.MxJigCmdManager.acquireInt();return this._isExit=V.exit,this._isExit&&(this.m_DetailedResult=V.DetailedResult),V},G.prototype.acquireString=function(){var V=s.MxJigCmdManager.acquireString();return this._isExit=V.exit,this._isExit&&(this.m_DetailedResult=V.DetailedResult),V},G.prototype.acquireKeyword=function(){var V=s.MxJigCmdManager.acquireKeyword();return this._isExit=V.exit,this._isExit&&(this.m_DetailedResult=V.DetailedResult),V},G.prototype.notifyCancleExit=function(V){this.m_DetailedResult=V,this._isCancle=!0,this.removeDynDrawObject(),this.done(s.MxJigCmdManager.DragStatus.kCancel),this.onExitCommand(!0),s.MxJigCmdManager.commandRunComplete(this)},G.prototype.notifySampler=function(){var V=this.sampler();if(this.m_dynInput.upDynInput(),V==s.MxJigCmdManager.DragStatus.kNormal&&(this.removeDynDrawObject(),this.upDisplay()),this._isExit){var ne=this.done(V);this._isCancle||(ne==s.MxJigCmdManager.DoneStatius.kContinueCommand?(this._isExit=!1,s.MxJigCmdManager.doMouseMoveImp(),v.MxUiVue.OnMxEvent({name:"dynInputReSet"})):(this.removeDynDrawObject(),s.MxJigCmdManager.commandRunComplete(this),this.onExitCommand(!0)))}this._mxObject.updateDisplay()},G.prototype.getCurrentMouseButton=function(){return s.MxJigCmdManager.getCurrentMouseButton()},G.prototype.userInputControls=function(){return this._userInputContros},G.prototype.setUserInputControls=function(V){this._userInputContros=V},G.prototype.abort=function(V){s.MxJigCmdManager.stopCmd(V)},G);function G(){this._isExit=!1,this._aryDynDrawObjectNamesId=void 0,this._DynNameId=1,this._iColor=16777215,this._isCancle=!1,this.m_isDisableDynInput=!1,this.m_isDisableOsnap=!1,this.m_isDisableDynamicTrace=!1,this.m_isDisablePolarAxisTrace=!1,this.m_isDisableGridTrace=!1,this.m_isDisableOrtho=!1,this.m_dynInput=new N(this),this.m_dynamicTrace=new _.McEdJigDynamicTrace(this),this.m_polarAxisTrace=new b.MxPolarAxisTrace(this),this.m_gridTrace=new E.MxGridTrace(this),this.m_osnap=new x.McEdJigOsnap(this),this.m_ortho=new x.McEdJigOrtho(this),this._userInputContros=s.MxJigCmdManager.UserInputControls.kNullResponseAccepted,this.m_isOffsetInputPostion=!1,this.m_isReserveDrawStatus=!1,this.m_callReserveDrawAddEntity=null,this.drawGroup=null,this.drawGroup_smallCoord=null,this._mxObject=null,this.m_DetailedResult=s.MxJigCmdManager.DetailedResult.kUnknown}r.McEdJigCommand=z},{"../MxDrawData":22,"../MxFun":27,"../MxManager":29,"../MxThreeJS":36,"../MxTools":37,"../MxWindowsEvent":40,"../UI/MxUiVue":63,"./McEdJigDynamicTrace":41,"./McEdJigOsnap":42,"./MxGridTrace":50,"./MxJigCmdManager":53,"./MxPolarAxisTrace":55,three:19}],53:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MxJigCmdManager=r.AcquireReturn=void 0;var n,o=t("three"),s=t("../MxFun"),c=t("./MxJig"),l=t("../MxManager"),v=t("./MrxDbgUiPrPoint"),x=t("./MrxDbgUiPrBase"),w=t("../UI/MxUiVue"),_=t("../MxTools"),b=t("../MxString"),E=t("../MxWindowsEvent"),I=t("./McEdJigOsnap"),O=t("../MxDrawData"),N=t("./MrxDbgUiPrDist"),A=function(){this.status=n.DragStatus.kNoChange,this.exit=!0,this.DetailedResult=n.DetailedResult.kUnknown,this.sKeyValue="",this.dist=0,this.iVal=0,this.sValue="",this.ang=0};r.AcquireReturn=A,function(z){var G,V,ne,W,B,q,D,F,re,le,fe,me,ye,Te,ke,Le,et,it,Ue,ht;(V=G=z.UserInputControls||(z.UserInputControls={}))[V.kGovernedByOrthoMode=1]="kGovernedByOrthoMode",V[V.kNullResponseAccepted=2]="kNullResponseAccepted",V[V.kDontEchoCancelForCtrlC=4]="kDontEchoCancelForCtrlC",V[V.kDontUpdateLastPoint=8]="kDontUpdateLastPoint",V[V.kNoDwgLimitsChecking=16]="kNoDwgLimitsChecking",V[V.kNoZeroResponseAccepted=32]="kNoZeroResponseAccepted",V[V.kNoNegativeResponseAccepted=64]="kNoNegativeResponseAccepted",V[V.kAccept3dCoordinates=128]="kAccept3dCoordinates",V[V.kAcceptMouseUpAsPoint=256]="kAcceptMouseUpAsPoint",V[V.kAnyBlankTerminatesInput=512]="kAnyBlankTerminatesInput",V[V.kInitialBlankTerminatesInput=1024]="kInitialBlankTerminatesInput",V[V.kAcceptOtherInputString=2048]="kAcceptOtherInputString",V[V.kGovernedByUCSDetect=4096]="kGovernedByUCSDetect",V[V.kNoZDirectionOrtho=8192]="kNoZDirectionOrtho",V[V.kSpacesInAccepted=16384]="kSpacesInAccepted",(W=ne=z.AcquireStatus||(z.AcquireStatus={}))[W.kNoChange=0]="kNoChange",W[W.kMove=1]="kMove",W[W.kBegan=2]="kBegan",W[W.kEnd=3]="kEnd",W[W.kMouseUp=4]="kMouseUp",W[W.kMouseDown=5]="kMouseDown",W[W.kCancle=6]="kCancle",(q=B=z.DragStatus||(z.DragStatus={}))[q.kNoChange=-6]="kNoChange",q[q.kCancel=-4]="kCancel",q[q.kOther=-3]="kOther",q[q.kNull=-1]="kNull",q[q.kNormal=0]="kNormal",q[q.kKW1=1]="kKW1",(F=D=z.DetailedResult||(z.DetailedResult={}))[F.kUnknown=1]="kUnknown",F[F.kTouchDownIn=2]="kTouchDownIn",F[F.kTouchUpIn=3]="kTouchUpIn",F[F.kMouseLeftIn=4]="kMouseLeftIn",F[F.kMouseLeftUpIn=5]="kMouseLeftUpIn",F[F.kMouseRightIn=6]="kMouseRightIn",F[F.kKeyIn=7]="kKeyIn",F[F.kCoordIn=8]="kCoordIn",F[F.kNullEnterIn=9]="kNullEnterIn",F[F.kNullSpaceIn=10]="kNullSpaceIn",F[F.kEcsIn=11]="kEcsIn",F[F.kNewCommadIn=12]="kNewCommadIn",(re=z.DoneStatius||(z.DoneStatius={}))[re.kContinueCommand=0]="kContinueCommand",re[re.kExitCommand=1]="kExitCommand",(fe=le=z.InType||(z.InType={}))[fe.kGetBegan=1]="kGetBegan",fe[fe.kGetEnd=2]="kGetEnd",(ye=me=z.MouseButton||(z.MouseButton={}))[ye.kInvalid=-1]="kInvalid",ye[ye.kLeft=0]="kLeft",ye[ye.kMid=1]="kMid",ye[ye.kRight=2]="kRight",(ke=Te=z.COMMAND_IN||(z.COMMAND_IN={}))[ke.COMMAND_IN_NO_ENTITY=0]="COMMAND_IN_NO_ENTITY",ke[ke.COMMAND_IN_EMTPY=1]="COMMAND_IN_EMTPY",ke[ke.COMMAND_IN_KEY=2]="COMMAND_IN_KEY",ke[ke.COMMAND_IN_STRING=3]="COMMAND_IN_STRING",ke[ke.COMMAND_IN_COORD=5]="COMMAND_IN_COORD",ke[ke.COMMAND_IN_DIST=6]="COMMAND_IN_DIST",ke[ke.COMMAND_IN_INVALID=7]="COMMAND_IN_INVALID",ke[ke.COMMAND_IN_INVALID_ZERO=8]="COMMAND_IN_INVALID_ZERO",ke[ke.COMMAND_IN_INVALID_NEG=9]="COMMAND_IN_INVALID_NEG",ke[ke.COMMAND_IN_INT=10]="COMMAND_IN_INT",(et=Le=z.COMMAND_GET||(z.COMMAND_GET={}))[et.COMMAND_GET_STRING=1]="COMMAND_GET_STRING",et[et.COMMAND_GET_KEY=2]="COMMAND_GET_KEY",et[et.COMMAND_GET_DIST=4]="COMMAND_GET_DIST",et[et.COMMAND_GET_COORD=8]="COMMAND_GET_COORD",et[et.COMMAND_GET_INT=16]="COMMAND_GET_INT",(it=z.DynamicInputType||(z.DynamicInputType={}))[it.kNoInput=0]="kNoInput",it[it.kXYCoordInput=1]="kXYCoordInput",it[it.kDistanceInput=2]="kDistanceInput",it[it.kDynTip=3]="kDynTip",it[it.kAutoInput=4]="kAutoInput",it[it.kAngleInput=5]="kAngleInput",(Ue=z.GETPOINTSTATUS||(z.GETPOINTSTATUS={}))[Ue.OsModeSValidLastPoint=1]="OsModeSValidLastPoint",Ue[Ue.OsModeSTempDisable=2]="OsModeSTempDisable",Ue[Ue.OsModeOrthoTempDisable=4]="OsModeOrthoTempDisable",Ue[Ue.OsModeSValidLastMovePoint=8]="OsModeSValidLastMovePoint",Ue[Ue.OsModePoloarTempDisable=16]="OsModePoloarTempDisable",Ue[Ue.OsModeDynTraceTempDisable=32]="OsModeDynTraceTempDisable",Ue[Ue.OsModeGridSnapTempDisable=64]="OsModeGridSnapTempDisable",(ht=z.OsnapMode||(z.OsnapMode={}))[ht.kOsModekInValid=0]="kOsModekInValid",ht[ht.kOsModeEnd=1]="kOsModeEnd",ht[ht.kOsModeMid=2]="kOsModeMid",ht[ht.kOsModeCen=3]="kOsModeCen",ht[ht.kOsModeNode=4]="kOsModeNode",ht[ht.kOsModeQuad=5]="kOsModeQuad",ht[ht.kOsModeIns=7]="kOsModeIns",ht[ht.kOsModePerp=8]="kOsModePerp",ht[ht.kOsModeTan=9]="kOsModeTan",ht[ht.kOsModeNear=10]="kOsModeNear",ht[ht.kOsModeInt=11]="kOsModeInt";var De,Be=void 0,Ve=void 0,He=ne.kNoChange,gt=me.kInvalid,dn=-9999999,Ze=new o.Vector2(dn,dn),at=!1,Lt=void 0,Ne=!1,ze=0,Ke=new Map,vt=new Array,Ft=new b.MxString,Ot=void 0,_t=-2;function Tn(){Be!=null&&Be.notifySampler()}function on(_n,xn){var jn=_n.srcElement;if(jn&&(O.MxDrawData.m_isMapBox||jn.tagName=="CANVAS")){if(Be==null||Be.getDynImput().isTruncatedInput())return 0;Ze.x=_n.offsetX,Ze.y=_n.offsetY,xn&&(Ze.x=xn.x,Ze.y=xn.y),pt(Ze)}return 0}function $n(_n,xn){if(_n.button!=me.kLeft)return 0;var jn=_n.srcElement;return!jn||!O.MxDrawData.m_isMapBox&&jn.tagName!="CANVAS"||Be==null||Be.getDynImput().isTruncatedInput()?0:(Ze.x=_n.offsetX,Ze.y=_n.offsetY,xn&&(Ze.x=xn.x,Ze.y=xn.y),De=Be.getMxObject().screenCoord2Current(_n.offsetX,_n.offsetY,0),He=ne.kMouseUp,gt=_n.button,Tn(),_n.stopPropagation(),1)}function Zt(_n,xn,jn){var ln=Be.getMxObject().screenCoord2Current(_n,xn,jn),ar=Be.getOsnap().getCurrentOSnapPoint(ln);ln=ar.pt;var zr,Jr=!1;if(ar.isSnapPoint&&(Jr=!0),Jr||(zr=Be.getDynamicTrace().GetTracePoint())&&(ln.copy(zr),Jr=!0),Jr||(zr=Be.getPolarAxisTrace().GetTracePoint())&&(ln.copy(zr),Jr=!0),!Jr){var bi=Be.getOrtho();bi.OnViewMouseMove(ln);var hi=bi.GetCurOrthoPoint();hi.isValid&&(ln.copy(hi.pt),Jr=!0)}return Jr||(zr=Be.getGridTrace().GetTracePoint())&&(ln.copy(zr),Jr=!0),ln}function Et(_n,xn){if(_n.button!=me.kLeft)return 0;Be!=null&&Be.getDynImput().isShow()&&Be.getDynImput().setFocus(!0);var jn=_n.srcElement;if(!jn||!O.MxDrawData.m_isMapBox&&jn.tagName!="CANVAS"||Be==null||Be.getDynImput().isTruncatedInput())return 0;Ze.x=_n.offsetX,Ze.y=_n.offsetY,xn&&(Ze.x=xn.x,Ze.y=xn.y);var ln=Zt(_n.offsetX,_n.offsetY,0);return I.McEdImpJigGlobalData.setPrvPoint(ln),Be.getOsnap().seInValidPoint(),De=ln,He=ne.kMouseDown,gt=_n.button,Tn(),_n.stopPropagation(),1}function rn(_n){if(_n.touches.length!=0){Be!=null&&Be.getDynImput().isShow()&&Be.getDynImput().setFocus(!0);var xn=_n.srcElement;if(xn&&(O.MxDrawData.m_isMapBox||xn.tagName=="CANVAS")){if(Be==null)return;Ze.x=_n.touches[0].pageX,Ze.y=_n.touches[0].pageY;var jn=Zt(_n.touches[0].pageX,_n.touches[0].pageY,0);return I.McEdImpJigGlobalData.setPrvPoint(jn),Be.getOsnap().seInValidPoint(),De=jn,He=ne.kBegan,gt=me.kInvalid,Tn(),_n.stopPropagation(),1}}}function wt(_n){var xn=_n.srcElement;if(xn&&(O.MxDrawData.m_isMapBox||xn.tagName=="CANVAS")){if(Be==null||Ze.x==dn||Ze.y==dn)return;Ze.x=_n.touches[0].pageX,Ze.y=_n.touches[0].pageY;var jn=Zt(_n.touches[0].pageX,_n.touches[0].pageY,0);return I.McEdImpJigGlobalData.setPrvPoint(jn),Be.getOsnap().seInValidPoint(),De=jn,He=ne.kEnd,gt=me.kInvalid,Tn(),_n.stopPropagation(),1}}function Yn(_n){var xn=_n.srcElement;if(xn&&(O.MxDrawData.m_isMapBox||xn.tagName=="CANVAS")){if(Be==null)return;Ze.x=_n.touches[0].pageX,Ze.y=_n.touches[0].pageY,pt(Ze)}}function pt(_n){if(Ne=!1,_n==null){if(Ze.x==dn||Ze.y==dn)return;_n=Ze}Be.getDynImput().ClearDisplay();var xn=Be.getMxObject().screenCoord2Current(_n.x,_n.y,0),jn=Be.getOsnap(),ln=Be.getMxObject().viewCoordLong2Cad(.5*O.MxDrawData.getCursorWidthPixels());jn.setPoint(xn,ln);var ar=Be.getDynamicTrace();ar.ReSetTempDisplay(),ar.OnDynamicTrace(0,xn,z.OsnapMode.kOsModekInValid),ar.MouseMove(xn);var zr=!1,Jr=ar.GetTracePoint();Jr&&(xn.x=Jr.x,xn.y=Jr.y,xn.z=Jr.z,zr=!0);var bi=Be.getPolarAxisTrace();if(bi.ReSetTempDisplay(),zr||(bi.MouseMove(xn),(Jr=bi.GetTracePoint())&&(xn.x=Jr.x,xn.y=Jr.y,xn.z=Jr.z,zr=!0)),!zr){var hi=Be.getOrtho();hi.OnViewMouseMove(xn);var wi=hi.GetCurOrthoPoint();wi.isValid&&xn.copy(wi.pt)}var Ca=Be.getGridTrace();Ca.ReSetTempDisplay(),zr||(Ca.MouseMove(xn),(Jr=Ca.GetTracePoint())&&(xn.x=Jr.x,xn.y=Jr.y,xn.z=Jr.z,zr=!0)),De=xn,He=ne.kMove;var jt=Be.getMxObject();jt.sysVariable().setSysVarPoint("LASTMOVEPOINT",xn);var dt=jt.sysVariable().getSysVarNumber("GETPOINTSTATUS");dt|=z.GETPOINTSTATUS.OsModeSValidLastMovePoint,jt.sysVariable().setSysVarNumber("GETPOINTSTATUS",dt),Tn.call(this)}function Fe(){Be&&(Ot=Be.getMxObject().getEventManager(),s.MxFun.isPC()?(Ot.addEventListener("mouseup",$n,!0),Ot.addEventListener("mousemove",on,!0),Ot.addEventListener("mousedown",Et,!0)):(Ot.addEventListener("touchstart",rn,!0),Ot.addEventListener("touchend",wt,!0),Ot.addEventListener("touchmove",Yn,!0)))}function Ie(){Ot&&(s.MxFun.isPC()?(Ot.removeEventListener("mouseup",$n,!0),Ot.removeEventListener("mousemove",on,!0),Ot.removeEventListener("mousedown",Et,!0)):(Ot.removeEventListener("touchstart",rn,!0),Ot.removeEventListener("touchend",wt,!0),Ot.removeEventListener("touchmove",Yn,!0)),Ot=void 0)}function ct(_n){var xn=_n.getOrbitControls();s.MxFun.isPC()?(_t=xn.mouseButtons.LEFT,xn.mouseButtons.LEFT=-1):xn.enabled=!1,xn.resetStatusValue(),_n.callEvent("dragWillStart"),_n.updateDisplay()}function Ht(_n){var xn=new o.Vector3,jn=!1,ln=new b.MxString(_n),ar=ln.AnalyzeString(",");if(ar.length<2)for(;;){var zr=Be.getDynImput().getFocusIndex();if(zr==-1||ln.IsEmpty()||!_.MxTools.IsNumerical(ln))break;if(zr==0){var Jr=_.MxTools._tstof(ln.m_val);if(_.MxTools.IsZero(Jr)||!((dt=(xt=Be.getMxObject()).sysVariable().getSysVarNumber("GETPOINTSTATUS"))&z.GETPOINTSTATUS.OsModeSValidLastPoint)||!(dt&z.GETPOINTSTATUS.OsModeSValidLastMovePoint))break;var bi=xt.sysVariable().getSysVarPoint("LASTPOINT");if((wi=xt.sysVariable().getSysVarPoint("LASTMOVEPOINT").clone().sub(bi)).length()<1e-7)break;wi.normalize(),wi.multiplyScalar(Jr);var hi=(xn=bi.add(wi)).clone().add(wi.multiplyScalar(10));xt.sysVariable().setSysVarPoint("LASTMOVEPOINT",hi),jn=!0}else if(zr==1){var wi,Ca=_.MxTools._tstof(ln.m_val);if(!((dt=(xt=Be.getMxObject()).sysVariable().getSysVarNumber("GETPOINTSTATUS"))&z.GETPOINTSTATUS.OsModeSValidLastPoint)||!(dt&z.GETPOINTSTATUS.OsModeSValidLastMovePoint)||(bi=xt.sysVariable().getSysVarPoint("LASTPOINT"),(wi=xt.sysVariable().getSysVarPoint("LASTMOVEPOINT").clone().sub(bi)).length()<1e-7))break;var jt=new o.Vector3(wi.length(),0,0);jt.applyAxisAngle(new o.Vector3(0,0,1),Ca*Math.PI/180),hi=(xn=bi.add(jt)).clone().add(jt.multiplyScalar(2)),xt.sysVariable().setSysVarPoint("LASTMOVEPOINT",hi),jn=!0}break}else{var dt,xt=Be.getMxObject(),Nt=new b.MxString(ar[0]),Qt=new b.MxString(ar[1]),mn=new b.MxString("0");if(2<ar.length&&(mn.m_val=ar[2]),Nt.IsEmpty()||Nt.Left(1)!="@")_.MxTools.IsNumerical(Nt)&&_.MxTools.IsNumerical(Qt)&&_.MxTools.IsNumerical(mn)?(jn=!0,xn.x=_.MxTools._tstof(Nt.m_val),xn.y=_.MxTools._tstof(Qt.m_val),xn.z=_.MxTools._tstof(mn.m_val)):jn=!1;else if(Nt.m_val=Nt.m_val.substring(1,Nt.m_val.length),_.MxTools.IsNumerical(Nt)&&_.MxTools.IsNumerical(Qt)&&_.MxTools.IsNumerical(mn))if((dt=xt.sysVariable().getSysVarNumber("GETPOINTSTATUS"))&z.GETPOINTSTATUS.OsModeSValidLastPoint){jn=!0;var Un=_.MxTools._tstof(Nt.m_val),we=_.MxTools._tstof(Qt.m_val),En=_.MxTools._tstof(mn.m_val);bi=xt.sysVariable().getSysVarPoint("LASTPOINT"),xn.x=bi.x+Un,xn.y=bi.y+we,xn.z=bi.z+En}else jn=!1;else jn=!1}return jn?xn:null}function sn(_n,xn){xn===void 0&&(xn=!1),w.MxUiVue.AcutPrintfNoFormat(_n,xn)}function yn(_n,xn){if(_n==Te.COMMAND_IN_INVALID){var jn=w.MxUiVue.getCmdTip();return sn(xn),sn(jn),B.kNoChange}return _n==Te.COMMAND_IN_INVALID_ZERO?(jn=w.MxUiVue.getCmdTip(),Be.userInputControls()&G.kNoNegativeResponseAccepted?sn(`
  3214. \u503C\u5FC5\u987B\u4E3A\u6B63 \u4E14\u975E\u96F6\u3002
  3215. `):sn(`
  3216. \u503C\u5FC5\u4E0D\u80FD\u4E3A\u96F6\u3002
  3217. `),sn(jn),B.kOther):_n!=Te.COMMAND_IN_INVALID_NEG?B.kNoChange:(jn=w.MxUiVue.getCmdTip(),Be.userInputControls()&G.kNoZeroResponseAccepted?sn(`
  3218. \u503C\u5FC5\u987B\u4E3A\u6B63 \u4E14\u975E\u96F6\u3002
  3219. `):sn(`
  3220. \u503C\u5FC5\u4E0D\u80FD\u4E3A\u8D1F\u3002
  3221. `),sn(jn),B.kOther)}function Dr(_n){var xn={iRet:Te.COMMAND_IN_NO_ENTITY,sValue:"",iKey:B.kNull,dDist:0,iVal:0,pt:null};if(!Ne)return xn;var jn=Be.userInputControls(),ln=w.MxUiVue.getCmdText();if(ln.length==0)return jn&G.kNullResponseAccepted?xn.iRet=Te.COMMAND_IN_EMTPY:xn.iRet=Te.COMMAND_IN_INVALID,xn;if(_n&Le.COMMAND_GET_KEY&&0<Ke.size){var ar=new b.MxString(ln);ar.MakeUpper(),ar.TrimLeft(" "),ar.TrimRight(" ");var zr=Ke.get(ar.m_val);if(zr!=null)return xn.iRet=Te.COMMAND_IN_KEY,xn.iKey=zr,xn.sValue=ar.m_val,xn}if(_n&Le.COMMAND_GET_DIST&&_.MxTools.IsNumerical(ln))return xn.dDist=_.MxTools._tstof(ln),jn&G.kNoZeroResponseAccepted&&_.MxTools.IsZero(xn.dDist)?xn.iRet=Te.COMMAND_IN_INVALID_ZERO:jn&G.kNoNegativeResponseAccepted&&xn.dDist<0?xn.iRet=Te.COMMAND_IN_INVALID_NEG:(xn.sValue=ln,xn.iRet=Te.COMMAND_IN_DIST),xn;if(_n&Le.COMMAND_GET_INT&&_.MxTools.IsNumerical(ln))return xn.iVal=_.MxTools._tstoi(ln),jn&G.kNoZeroResponseAccepted&&xn.iVal==0?xn.iRet=Te.COMMAND_IN_INVALID_ZERO:jn&G.kNoNegativeResponseAccepted&&xn.iVal<0?xn.iRet=Te.COMMAND_IN_INVALID_NEG:(xn.sValue=ln,xn.iRet=Te.COMMAND_IN_INT),xn;if(_n&Le.COMMAND_GET_COORD){var Jr=Ht(ln);if(Jr!=null)return xn.sValue=ln,xn.iRet=Te.COMMAND_IN_COORD,xn.pt=Jr,xn}return _n&Le.COMMAND_GET_STRING?(xn.sValue=ln,xn.iRet=Te.COMMAND_IN_STRING):xn.iRet=Te.COMMAND_IN_INVALID,xn}function Kr(_n){var xn=Be.getMxObject();if(xn.sysVariable().setSysVarPoint("LASTPOINT",_n),_n){var jn=xn.sysVariable().getSysVarNumber("GETPOINTSTATUS");jn|=z.GETPOINTSTATUS.OsModeSValidLastPoint,xn.sysVariable().setSysVarNumber("GETPOINTSTATUS",jn)}else jn=xn.sysVariable().getSysVarNumber("GETPOINTSTATUS"),jn&=~z.GETPOINTSTATUS.OsModeSValidLastPoint,xn.sysVariable().setSysVarNumber("GETPOINTSTATUS",jn)}function ii(_n){var xn=new A;return He==ne.kMove?(xn.status=B.kNormal,xn.pt=De,xn.exit=!1):He==ne.kEnd?_n&le.kGetEnd?(xn.status=B.kNormal,xn.pt=De,xn.exit=!0,xn.DetailedResult=D.kTouchUpIn,Kr(xn.pt)):(xn.status=B.kNormal,xn.pt=De,xn.exit=!1):He==ne.kCancle?(xn.status=B.kCancel,xn.pt=De,xn.exit=!0):He==ne.kBegan?_n&le.kGetBegan?(xn.status=B.kNormal,xn.pt=De,xn.exit=!0,xn.DetailedResult=D.kTouchDownIn,Kr(xn.pt)):(xn.status=B.kNormal,xn.pt=De,xn.exit=!1):He==ne.kMouseDown?(xn.status=B.kNormal,xn.pt=De,xn.exit=!0,xn.DetailedResult=D.kMouseLeftIn,Kr(xn.pt)):(xn.status=B.kNoChange,xn.pt=void 0,xn.exit=!1),xn}z.getInputKeyword=function(_n){if(_n<1)return"";for(var xn,jn=Ke.entries();!(xn=jn.next()).done;)if(xn.value==_n)return xn.key;return""},z.GetKeyWordToString=function(){return vt},z.keywordList=function(){return Ft.m_val},z.setKeywordList=function(_n){if(Ft.m_val=_n,Ke.clear(),vt.length=0,!Ft.IsEmpty())if(Ft.TrimLeft(" "),Ft.TrimRight(" "),Ft.m_val[0]=="["&&Ft.m_val[Ft.m_val.length-1]=="]"){Ft.TrimLeft("["),Ft.TrimRight("]");for(var xn=Ft.AnalyzeString("/"),jn=1,ln=0;ln<xn.length;ln++){var ar=(bi=new b.MxString(xn[ln])).Find("(");if(ar!=-1){var zr=new b.MxString(bi.Left(ar)),Jr=new b.MxString(bi.Right(bi.GetLength()-ar-1));Jr.TrimRight(")"),zr.IsEmpty()||Jr.IsEmpty()||(Jr.MakeUpper(),Ke.set(Jr.m_val,jn),jn++,vt.push(new _.MxPair(Jr.m_val,zr.m_val)))}}}else for(xn=Ft.AnalyzeString(" "),jn=1,ln=0;ln<xn.length;ln++){var bi;(bi=new b.MxString(xn[ln])).IsEmpty()||(bi.MakeUpper(),Ke.set(bi.m_val,jn),jn++)}},z.getAcquirePoint=function(){return De},z.getAcquireStatus=function(){return He},z.doMouseMoveImp=pt,z.OnThreeControlsChage=function(){Be==null||Ze.x!=dn&&Ze.y!=dn&&pt(Ze)},z.OnEnter=function(_n){ze=_n,Ne=!0,He=ne.kNoChange,Tn(),Ne=!1},z.Test=function(){Ne=!0},z.registEvent=Fe,z.unRegistEvent=Ie,z.getCurrentMouseButton=function(){return gt},z.isRunning=function(){return Be!=null},z.getCurCmd=function(){return Be},z.commandRunComplete=function(_n){Be!=_n&&console.log("aseert:_curCmd == cmd");var xn,jn,ln=l.MxManager.currentMx();Be!=null&&(ln=Be.getMxObject()),Ve!=null?(Be=Ve,Ve=void 0,gt=me.kInvalid,Fe(),Be.onStartCommand(),ct(ln)):(Ie(),Be=void 0,jn=(xn=ln).getOrbitControls(),s.MxFun.isPC()?_t!=-2&&(jn.mouseButtons.LEFT=_t,_t=-2,jn.resetStatusValue()):(jn.enabled=!0,jn.resetStatusValue()),xn.callEvent("dragWillEnd"),xn.updateDisplay(),O.MxDrawData.m_isAutoResetRenderer||xn.resetRenderer())},z.isWaitCmdNull=function(){return Ve==null},z.stopCmd=function(_n){l.MxManager.currentMx().endPanCommand(),Be!=null&&(at=!0,Be.notifyCancleExit(_n),at=!1)},z.setRunCmdEvent=function(_n){Lt=_n},z.runCmd=function(_n){if(!at){var xn=l.MxManager.currentMx();_n.setMxObject(xn),s.MxFun.isPC()?Ze=E.MxWindowsEvent.getCurrentMousePostion():(Ze.x=dn,Ze.y=dn),Lt&&Lt(),Be==null?(Be=_n,gt=me.kInvalid,Fe(),Be.onStartCommand(),ct(xn)):(Ve=_n,at=!0,Be.notifyCancleExit(D.kNewCommadIn),at=!1)}},z.GetAcqurePointFromStringTo=Ht,z.ProcCommandRetResult=yn,z.GetCommandLineContent=Dr,z.acquireKeyword=function(){var _n=new A;if(Be==null)return _n.status=B.kCancel,_n.exit=!0,_n;var xn=Dr(Le.COMMAND_GET_STRING|Le.COMMAND_GET_KEY);return xn.iRet==Te.COMMAND_IN_EMTPY?(_n.status=B.kNull,_n.exit=!0,ze==13?_n.DetailedResult=D.kNullEnterIn:ze==32?_n.DetailedResult=D.kNullSpaceIn:ze==-1&&(_n.DetailedResult=D.kMouseRightIn)):xn.iRet==Te.COMMAND_IN_KEY?(_n.status=xn.iKey,_n.exit=!0,_n.sKeyValue=xn.sValue,_n.DetailedResult=D.kKeyIn):(_n.status=yn(xn.iRet,`
  3222. \u9700\u8981\u8F93\u5165\u5173\u952E\u5B57\u3002
  3223. `),_n.exit=!1),_n},z.acquireString=function(){var _n=new A;if(Be==null)return _n.status=B.kCancel,_n.exit=!0,_n;var xn=Dr(Le.COMMAND_GET_STRING|Le.COMMAND_GET_KEY);return xn.iRet==Te.COMMAND_IN_EMTPY?(_n.status=B.kNull,_n.exit=!0,ze==13?_n.DetailedResult=D.kNullEnterIn:ze==32?_n.DetailedResult=D.kNullSpaceIn:ze==-1&&(_n.DetailedResult=D.kMouseRightIn)):xn.iRet==Te.COMMAND_IN_KEY?(_n.status=xn.iKey,_n.exit=!0,_n.sKeyValue=xn.sValue,_n.DetailedResult=D.kKeyIn):xn.iRet==Te.COMMAND_IN_STRING?(_n.status=B.kNormal,_n.sValue=xn.sValue,_n.exit=!0,_n.DetailedResult=D.kKeyIn):(_n.status=yn(xn.iRet,`
  3224. \u9700\u8981\u8F93\u5165\u975E\u7A7A\u5B57\u7B26\u4E32\u3002
  3225. `),_n.exit=!1),_n},z.acquireInt=function(){var _n=new A;if(Be==null)return _n.status=B.kCancel,_n.exit=!0,_n;var xn=Dr(Le.COMMAND_GET_INT|Le.COMMAND_GET_KEY);return xn.iRet==Te.COMMAND_IN_EMTPY?(_n.status=B.kNull,_n.exit=!0,ze==13?_n.DetailedResult=D.kNullEnterIn:ze==32?_n.DetailedResult=D.kNullSpaceIn:ze==-1&&(_n.DetailedResult=D.kMouseRightIn)):xn.iRet==Te.COMMAND_IN_KEY?(_n.status=xn.iKey,_n.exit=!0,_n.sKeyValue=xn.sValue,_n.DetailedResult=D.kKeyIn):xn.iRet==Te.COMMAND_IN_INT?(_n.status=B.kNormal,_n.iVal=xn.iVal,_n.exit=!0,_n.DetailedResult=D.kKeyIn):(_n.status=yn(xn.iRet,`
  3226. \u9700\u8981\u6574\u6570\u6216\u9009\u9879\u5173\u952E\u5B57\u3002
  3227. `),_n.exit=!1),_n},z.acquireDist=function(_n,xn){var jn=new A;if(Be==null)return jn.status=B.kCancel,jn.exit=!0,jn;var ln=Dr(Le.COMMAND_GET_DIST|Le.COMMAND_GET_KEY);if(ln.iRet==Te.COMMAND_IN_EMTPY)return jn.status=B.kNull,jn.exit=!0,ze==13?jn.DetailedResult=D.kNullEnterIn:ze==32?jn.DetailedResult=D.kNullSpaceIn:ze==-1&&(jn.DetailedResult=D.kMouseRightIn),jn;if(ln.iRet==Te.COMMAND_IN_KEY)return jn.status=ln.iKey,jn.exit=!0,jn.sKeyValue=ln.sValue,jn.DetailedResult=D.kKeyIn,jn;if(ln.iRet==Te.COMMAND_IN_DIST)return jn.status=B.kNormal,jn.dist=ln.dDist,jn.exit=!0,jn.DetailedResult=D.kCoordIn,jn;if(jn.status=yn(ln.iRet,`
  3228. \u9700\u8981\u70B9\u6216\u9009\u9879\u5173\u952E\u5B57\u3002
  3229. `),!xn||ln.iRet==Te.COMMAND_IN_INVALID_ZERO||ln.iRet==Te.COMMAND_IN_INVALID_NEG)return jn.exit=!1,jn;var ar=ii(_n);if(ar.status==B.kNormal&&ar.exit){var zr=ar.pt.clone(),Jr=xn.clone();zr.z=Jr.z=0;var bi=zr.distanceTo(Jr);return Be.userInputControls()&G.kNoZeroResponseAccepted&&_.MxTools.IsZero(bi)?(yn(Te.COMMAND_IN_INVALID_ZERO,`
  3230. \u9700\u8981\u70B9\u6216\u9009\u9879\u5173\u952E\u5B57\u3002
  3231. `),jn.status=B.kOther,jn.exit=!1,jn):(jn.status=B.kNormal,jn.dist=bi,jn.exit=!0,jn.DetailedResult=ar.DetailedResult,jn)}return jn.exit=!1,jn.status=B.kNoChange,jn},z.acquirePoint=function(_n,xn){xn===void 0&&(xn=!0);var jn=new A;if(Be==null)return jn.status=B.kCancel,jn;var ln=Dr(Le.COMMAND_GET_COORD|Le.COMMAND_GET_KEY);return ln.iRet==Te.COMMAND_IN_EMTPY?(jn.status=B.kNull,jn.exit=!0,ze==13?jn.DetailedResult=D.kNullEnterIn:ze==32?jn.DetailedResult=D.kNullSpaceIn:ze==-1&&(jn.DetailedResult=D.kMouseRightIn),jn):ln.iRet==Te.COMMAND_IN_KEY?(jn.status=ln.iKey,jn.exit=!0,jn.sKeyValue=ln.sValue,jn.DetailedResult=D.kKeyIn,jn):ln.iRet==Te.COMMAND_IN_COORD?(jn.status=B.kNormal,jn.pt=new o.Vector3(ln.pt.x,ln.pt.y,ln.pt.z),jn.exit=!0,jn.DetailedResult=D.kCoordIn,jn):(xn&&yn(ln.iRet,`
  3232. \u9700\u8981\u70B9\u6216\u9009\u9879\u5173\u952E\u5B57\u3002
  3233. `),ii(_n))},z.acquireAngle=function(_n,xn){var jn=new A;if(Be==null)return jn.status=B.kCancel,jn.exit=!0,jn;var ln=Dr(Le.COMMAND_GET_DIST|Le.COMMAND_GET_KEY);if(ln.iRet==Te.COMMAND_IN_EMTPY)return jn.status=B.kNull,jn.exit=!0,ze==13?jn.DetailedResult=D.kNullEnterIn:ze==32?jn.DetailedResult=D.kNullSpaceIn:ze==-1&&(jn.DetailedResult=D.kMouseRightIn),jn;if(ln.iRet==Te.COMMAND_IN_KEY)return jn.status=ln.iKey,jn.exit=!0,jn.sKeyValue=ln.sValue,jn.DetailedResult=D.kKeyIn,jn;if(ln.iRet==Te.COMMAND_IN_DIST)return jn.status=B.kNormal,jn.dist=3.14159265*ln.dDist/180,jn.exit=!0,jn.DetailedResult=D.kCoordIn,jn;if(jn.status=yn(ln.iRet,`
  3234. \u9700\u8981\u70B9\u6216\u9009\u9879\u5173\u952E\u5B57\u3002
  3235. `),!xn||ln.iRet==Te.COMMAND_IN_INVALID_ZERO||ln.iRet==Te.COMMAND_IN_INVALID_NEG)return jn.exit=!1,jn;var ar=ii(_n);if(ar.status==B.kNormal&&ar.exit){var zr=new o.Vector3(ar.pt.x-xn.x,ar.pt.y-xn.y,0).angleTo(new o.Vector3(1,0,0)),Jr=Be.userInputControls();return Jr&G.kNoZeroResponseAccepted&&_.MxTools.IsZero(zr)?(yn(Te.COMMAND_IN_INVALID_ZERO,`
  3236. \u9700\u8981\u70B9\u6216\u9009\u9879\u5173\u952E\u5B57\u3002
  3237. `),jn.status=B.kOther,jn.exit=!1,jn):(Jr&G.kNoNegativeResponseAccepted&&zr<0?(yn(Te.COMMAND_IN_INVALID_NEG,`
  3238. \u9700\u8981\u70B9\u6216\u9009\u9879\u5173\u952E\u5B57\u3002
  3239. `),jn.status=B.kOther,jn.exit=!1):(jn.status=B.kNormal,jn.ang=zr,jn.exit=!0,jn.DetailedResult=ar.DetailedResult),jn)}return jn.exit=!1,jn.status=B.kNoChange,jn},z.getMcEdJigCommandClass=function(){return c.McEdJigCommand},z.getMrxDbgUiPrPointClass=function(){return v.MrxDbgUiPrPoint},z.getMrxDbgUiPrDistClass=function(){return N.MrxDbgUiPrDist},z.getMrxDbgUiPrIntClass=function(){return N.MrxDbgUiPrInt},z.getMrxDbgUiPrStringClass=function(){return N.MrxDbgUiPrString},z.getMrxDbgUiPrKeyWordClass=function(){return N.MrxDbgUiPrKeyWord},z.getMrxDbgUiPrAngleClass=function(){return N.MrxDbgUiPrAngle},z.getMcEdGetPointWorldDrawClass=function(){return x.McEdGetPointWorldDraw},z.McEdGetPointWorldDrawObjectClass=function(){return x.McEdGetPointWorldDrawObject},z.init=function(){this._curCmd=void 0}}(n=r.MxJigCmdManager||(r.MxJigCmdManager={}))},{"../MxDrawData":22,"../MxFun":27,"../MxManager":29,"../MxString":34,"../MxTools":37,"../MxWindowsEvent":40,"../UI/MxUiVue":63,"./McEdJigOsnap":42,"./MrxDbgUiPrBase":44,"./MrxDbgUiPrDist":45,"./MrxDbgUiPrPoint":46,"./MxJig":52,three:19}],54:[function(t,e,r){var n,o=this&&this.__extends||(n=function(w,_){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,E){b.__proto__=E}||function(b,E){for(var I in E)Object.prototype.hasOwnProperty.call(E,I)&&(b[I]=E[I])})(w,_)},function(w,_){function b(){this.constructor=w}n(w,_),w.prototype=_===null?Object.create(_):(b.prototype=_.prototype,new b)});Object.defineProperty(r,"__esModule",{value:!0}),r.MxJigGetLine=void 0;var s,c=t("./MxJig"),l=t("./MxJigCmdManager"),v=(o(x,s=c.McEdJigCommand),x.prototype.sampler=function(){var w=l.MxJigCmdManager.InType.kGetBegan;this._isGetPt1||(w=l.MxJigCmdManager.InType.kGetEnd);var _=this.acquirePoint(w);return _.status==l.MxJigCmdManager.DragStatus.kNormal&&(this._isGetPt1?this._pt1=_.pt:this._pt2=_.pt),_.status},x.prototype.setRetCall=function(w){this._retCall=w},x.prototype.done=function(w){if(this._isGetPt1)return this._isGetPt1=!1,l.MxJigCmdManager.DoneStatius.kContinueCommand;var _={};return _.pt1=this.getMxObject().worldCoord2Currnet(this._pt1.x,this._pt1.y,this._pt1.z),_.pt2=this.getMxObject().worldCoord2Currnet(this._pt2.x,this._pt2.y,this._pt2.z),this._retCall(_),l.MxJigCmdManager.DoneStatius.kExitCommand},x.prototype.upDisplay=function(){this._isGetPt1||this._pt1==null||this._pt2==null||this.drawLine(this._pt1,this._pt2)},x);function x(){var w=s!==null&&s.apply(this,arguments)||this;return w._isGetPt1=!0,w}r.MxJigGetLine=v},{"./MxJig":52,"./MxJigCmdManager":53}],55:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MxPolarAxisTrace=void 0;var n=t("three"),o=t("./MxJigCmdManager"),s=t("../MxFun"),c=t("../MxDrawData"),l=t("../MxTools"),v=t("../MxManager"),x=t("../MxThreeJS"),w=(_.prototype.ClearDynDrawEntity=function(){for(var b=this.m_mxJig.getMxObject().getTheTempDrawContainer_SmallCoord(),E=this.m_vecDynDrawEntity.length,I=0;I<E;I++)s.MxFun.removeThreejsObject(this.m_vecDynDrawEntity[I],b);this.m_vecDynDrawEntity=[]},_.prototype.CreteTracePoint=function(b,E){var I=this.m_mxJig.getMxObject(),O=I.getTheTempDrawContainer_SmallCoord();E/=2;var N=x.MxThreeJS.createLine(I.toSmallcoord2(b.x+E,b.y+E,0),I.toSmallcoord2(b.x-E,b.y-E,0),16711680);O.add(N),this.m_vecDynDrawEntity.push(N);var A=x.MxThreeJS.createLine(I.toSmallcoord2(b.x-E,b.y+E,0),I.toSmallcoord2(b.x+E,b.y-E,0),16711680);O.add(A),this.m_vecDynDrawEntity.push(A)},_.prototype.MouseMove=function(b){var E=this.m_mxJig.getMxObject();if(E.getMcObject().isValid()){if(this.ClearDynDrawEntity(),this.m_isValidTracePoint=!1,this.m_isTrace&&E.sysVariable().getSysVarNumber("GETPOINTSTATUS")&o.MxJigCmdManager.GETPOINTSTATUS.OsModeSValidLastPoint){var I=E.sysVariable().getSysVarPoint("LASTPOINT"),O=E.getSysVarDouble("POLARANG");if(O=180*O/Math.PI,!((O=Math.abs(O))<.001)){var N=E.viewCoordLong2Cad(c.MxDrawData.getCursorWidthPixels()),A=2*N,z=b.clone().sub(I);if(!(z.length()<A)){z.normalize();var G=v.MxManager.getMxCpp().getMxCAD_MxCpp(),V=v.MxManager.getMxCpp().getMxCAD_App(),ne=E.getTheTempDrawContainer_SmallCoord(),W=E.viewCoordLong2Cad(this.m_dashedLineLen);z=G.newMcGeVector3d(z);var B=G.newMcGeVector3d(new n.Vector3(1,0,0)),q=z.angleTo2(B),D=(q=180*q/Math.PI)%O;D<O/2?q-=D:q+=O-D;var F=E.viewCoordLong2Cad(E.getViewWidth()),re=E.viewCoordLong2Cad(E.getViewHeight()),le=l.MxTools.MxMax(F,re);(z=B.clone()).rotateBy(q*Math.PI/180),z.mult(le);var fe=new n.Vector3(I.x+z.x,I.y+z.y,I.z+z.z),me={pt1:fe,pt2:I},ye=V.MxCADAssist.GetClosestPointTo(me.pt1.x,me.pt1.y,me.pt2.x,me.pt2.y,b.x,b.y,!0);if(0<ye.length()){var Te=ye.at(0),ke=new n.Vector3(Te.x,Te.y,Te.z);if(ke.distanceTo(b)<A){var Le=x.MxThreeJS.createDashedLine(E.toSmallcoord2(I.x-z.x,I.y-z.y,I.z-z.z),E.toSmallcoord(fe),this.m_iDashedLineLenColor,W,W);ne.add(Le),this.m_vecDynDrawEntity.push(Le),this.m_isValidTracePoint=!0,this.m_ptTracePoint=ke,this.CreteTracePoint(ke,N)}}}}}}else this.m_isTrace=!1},_.prototype.Init=function(){var b=this.m_mxJig.getMxObject();b.getMcObject().isValid()?(this.m_isValidTracePoint=!1,this.m_isTrace=!1,8&b.getSysVarLong("AUTOSNAP")&&(this.m_isTrace=!0),b.sysVariable().getSysVarNumber("GETPOINTSTATUS")&o.MxJigCmdManager.GETPOINTSTATUS.OsModePoloarTempDisable&&(this.m_isTrace=!1),this.m_mxJig.isDisablePolarAxisTrace()&&(this.m_isTrace=!1),this.m_isTrace):this.m_isTrace=!1},_.prototype.GetTracePoint=function(){if(this.m_isTrace)return this.m_isValidTracePoint?this.m_ptTracePoint:void 0},_.prototype.ClearDisplay=function(){this.ClearDynDrawEntity()},_.prototype.ReSetTempDisplay=function(){this.ClearDynDrawEntity(),this.m_isValidTracePoint=!1},_);function _(b){this.m_vecDynDrawEntity=[],this.m_ptTracePoint=new n.Vector3,this.m_isValidTracePoint=!1,this.m_isTrace=!1,this.m_mxJig=null,this.m_dashedLineLen=1.5,this.m_iDashedLineLenColor=11184810,this.m_mxJig=b}r.MxPolarAxisTrace=w},{"../MxDrawData":22,"../MxFun":27,"../MxManager":29,"../MxThreeJS":36,"../MxTools":37,"./MxJigCmdManager":53,three:19}],56:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0});var n=t("./MxFun");window.MXFUN_THREE=n.MxFun.getTHREE();var o=t("./MxManager");function s(){}(s.CreateMx=function(){n.MxFun.init(),typeof MxMain!="undefined"&&MxMain(t)==0||n.MxFun.createMxObject(),o.MxManager.callEvent("init");var c=n.MxFun.getUiObject();c!=null&&(c.sTitle=n.MxFun.getCurrentDraw().getFileTitle(),setTimeout(function(){c.init()},400))},s.Main=function(){if(typeof MxUiMain!="undefined"){MxUiMain(t);var c=n.MxFun.getUiObject();c!=null&&c.writeUICSS()}typeof MxDocumentReady=="undefined"?$(document).ready(function(){s.CreateMx()}):MxDocumentReady(t,s.CreateMx)},s).Main()},{"./MxFun":27,"./MxManager":29}],57:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MxSvgManager=void 0;var n=t("three"),o=t("three"),s=t("./SVGLoader"),c=function(){this.svg=new n.Group,this.aryMeterial=[],this.boxSize=new o.Vector3(1,1,1)},l=(v.prototype.loadSVGImp=function(_,b,E,I){new s.SVGLoader().load(_,function(O){if(O.paths.length){var N=[],A=O.paths,z=new n.Group,G=!0,V=!0,ne=!1,W=!1;I&&(I.drawStrokes&&(G=I.drawStrokes),I.drawFillShapes&&(V=I.drawFillShapes),I.fillShapesWireframe&&(ne=I.fillShapesWireframe),I.strokesWireframe&&(W=I.strokesWireframe));for(var B=0;B<A.length;B++){var q=A[B],D=q.userData.style.fill;if(V&&D!==void 0&&D!=="none"){for(var F=new n.MeshBasicMaterial({color:b||new n.Color().setStyle(D),opacity:q.userData.style.fillOpacity,transparent:q.userData.style.fillOpacity<1,side:n.DoubleSide,depthWrite:!1,wireframe:ne}),re=s.SVGLoader.createShapes(q),le=0;le<re.length;le++){var fe=re[le],me=new n.ShapeBufferGeometry(fe),ye=new n.Mesh(me,F);z.add(ye)}N.push(F)}var Te=q.userData.style.stroke;if(G&&Te!==void 0&&Te!=="none"){F=new n.MeshBasicMaterial({color:b||new n.Color().setStyle(Te),opacity:q.userData.style.strokeOpacity,transparent:q.userData.style.strokeOpacity<1,side:n.DoubleSide,depthWrite:!1,wireframe:W}),le=0;for(var ke=q.subPaths.length;le<ke;le++){var Le=q.subPaths[le];(me=s.SVGLoader.pointsToStroke(Le.getPoints(),q.userData.style,12,.001))&&(ye=new n.Mesh(me,F),z.add(ye))}N.push(F)}}E&&E(z,N)}else console.log("mx svg:"+_+" data.paths.length == 0"),E&&E(null,null)},void 0,function(){E&&E(null,null)})},v.prototype.loadSVG=function(_,b,E,I){var O=this,N=this.mapSvgUrlToData.get(_),A=!I||!I.useBuffer||I.useBuffer;if(N&&A){if(E)if(N==null)E(null,null);else{var z=N.svg.clone();z.boxSize=N.boxSize,E(z,N.aryMeterial)}}else this.loadSVGImp(_,b,function(G,V){if(G&&V){var ne=new c;ne.svg=G,ne.aryMeterial=V;var W=new o.Box3().setFromObject(G);ne.boxSize.x=W.max.x-W.min.x,ne.boxSize.y=W.max.y-W.min.y,ne.boxSize.x!==-1/0&&ne.boxSize.y!==-1/0||console.log("mx svg:"+_+" boxSize invalid"),O.mapSvgUrlToData.set(_,ne);var B=ne.svg.clone();B.boxSize=ne.boxSize,E&&E(B,ne.aryMeterial)}else O.mapSvgUrlToData.set(_,null),E&&E(null,null)},I)},v);function v(){this.mapSvgUrlToData=new Map}var x=(w.prototype.loadSVG=function(_,b,E,I){E&&this.mxThreeJsBuffer.loadSVG(_,b,E,I)},w);function w(){this.mxThreeJsBuffer=new l}r.MxSvgManager=x},{"./SVGLoader":58,three:19}],58:[function(t,e,r){var n,o=this&&this.__extends||(n=function(x,w){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,b){_.__proto__=b}||function(_,b){for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&(_[E]=b[E])})(x,w)},function(x,w){function _(){this.constructor=x}n(x,w),x.prototype=w===null?Object.create(w):(_.prototype=w.prototype,new _)});Object.defineProperty(r,"__esModule",{value:!0}),r.SVGLoader=void 0;var s,c=t("three"),l=(o(v,s=c.Loader),v.prototype.load=function(x,w,_,b){var E=this,I=new c.FileLoader(E.manager);I.setPath(E.path),I.setRequestHeader(E.requestHeader),I.setWithCredentials(E.withCredentials),I.load(x,function(O){try{w(E.parse(O))}catch(N){b?b(N):console.error(N),E.manager.itemError(x)}},_,b)},v.prototype.parse=function(x){var w=this;function _(me,ye,Te,ke,Le,et,it,Ue){if(ye!=0&&Te!=0){ke=ke*Math.PI/180,ye=Math.abs(ye),Te=Math.abs(Te);var ht=(it.x-Ue.x)/2,De=(it.y-Ue.y)/2,Be=Math.cos(ke)*ht+Math.sin(ke)*De,Ve=-Math.sin(ke)*ht+Math.cos(ke)*De,He=ye*ye,gt=Te*Te,dn=Be*Be,Ze=Ve*Ve,at=dn/He+Ze/gt;if(1<at){var Lt=Math.sqrt(at);He=(ye*=Lt)*ye,gt=(Te*=Lt)*Te}var Ne=He*Ze+gt*dn,ze=(He*gt-Ne)/Ne,Ke=Math.sqrt(Math.max(0,ze));Le===et&&(Ke=-Ke);var vt=Ke*ye*Ve/Te,Ft=-Ke*Te*Be/ye,Ot=Math.cos(ke)*vt-Math.sin(ke)*Ft+(it.x+Ue.x)/2,_t=Math.sin(ke)*vt+Math.cos(ke)*Ft+(it.y+Ue.y)/2,Tn=b(1,0,(Be-vt)/ye,(Ve-Ft)/Te),on=b((Be-vt)/ye,(Ve-Ft)/Te,(-Be-vt)/ye,(-Ve-Ft)/Te)%(2*Math.PI);me.currentPath.absellipse(Ot,_t,ye,Te,Tn,Tn+on,et===0,ke)}else me.lineTo(Ue.x,Ue.y)}function b(me,ye,Te,ke){var Le=me*Te+ye*ke,et=Math.sqrt(me*me+ye*ye)*Math.sqrt(Te*Te+ke*ke),it=Math.acos(Math.max(-1,Math.min(1,Le/et)));return me*ke-ye*Te<0&&(it=-it),it}function E(me,ye){ye=Object.assign({},ye);var Te={};if(me.hasAttribute("class"))for(var ke=me.getAttribute("class").split(/\s/).filter(Boolean).map(function(ht){return ht.trim()}),Le=0;Le<ke.length;Le++)Te=Object.assign(Te,V["."+ke[Le]]);function et(ht,De,Be){Be===void 0&&(Be=function(Ve){return Ve.startsWith("url")&&console.warn("SVGLoader: url access in attributes is not implemented."),Ve}),me.hasAttribute(ht)&&(ye[De]=Be(me.getAttribute(ht))),Te[ht]&&(ye[De]=Be(Te[ht])),me.style&&me.style[ht]!==""&&(ye[De]=Be(me.style[ht]))}function it(ht){return Math.max(0,Math.min(1,z(ht)))}function Ue(ht){return Math.max(0,z(ht))}return me.hasAttribute("id")&&(Te=Object.assign(Te,V["#"+me.getAttribute("id")])),et("fill","fill"),et("fill-opacity","fillOpacity",it),et("fill-rule","fillRule"),et("opacity","opacity",it),et("stroke","stroke"),et("stroke-opacity","strokeOpacity",it),et("stroke-width","strokeWidth",Ue),et("stroke-linejoin","strokeLineJoin"),et("stroke-linecap","strokeLineCap"),et("stroke-miterlimit","strokeMiterLimit",Ue),et("visibility","visibility"),ye}function I(me,ye){return me-(ye-me)}function O(me,ye,Te){if(typeof me!="string")throw new TypeError("Invalid input: "+typeof me);var ke,Le={SEPARATOR:/[ \t\r\n\,.\-+]/,WHITESPACE:/[ \t\r\n]/,DIGIT:/[\d]/,SIGN:/[-+]/,POINT:/\./,COMMA:/,/,EXP:/e/i,FLAGS:/[01]/},et=0,it=!0,Ue="",ht="",De=[];function Be(dn,Ze,at){var Lt=new SyntaxError('Unexpected character "'+dn+'" at index '+Ze+".");throw Lt.partial=at,Lt}function Ve(){Ue!==""&&(ht===""?De.push(Number(Ue)):De.push(Number(Ue)*Math.pow(10,Number(ht)))),ht=Ue=""}for(var He=me.length,gt=0;gt<He;gt++)if(ke=me[gt],Array.isArray(ye)&&ye.includes(De.length%Te)&&Le.FLAGS.test(ke))et=1,Ue=ke,Ve();else{if(et===0){if(Le.WHITESPACE.test(ke))continue;if(Le.DIGIT.test(ke)||Le.SIGN.test(ke)){et=1,Ue=ke;continue}if(Le.POINT.test(ke)){et=2,Ue=ke;continue}Le.COMMA.test(ke)&&(it&&Be(ke,gt,De),it=!0)}if(et===1){if(Le.DIGIT.test(ke)){Ue+=ke;continue}if(Le.POINT.test(ke)){Ue+=ke,et=2;continue}if(Le.EXP.test(ke)){et=3;continue}Le.SIGN.test(ke)&&Ue.length===1&&Le.SIGN.test(Ue[0])&&Be(ke,gt,De)}if(et===2){if(Le.DIGIT.test(ke)){Ue+=ke;continue}if(Le.EXP.test(ke)){et=3;continue}Le.POINT.test(ke)&&Ue[Ue.length-1]==="."&&Be(ke,gt,De)}if(et===3){if(Le.DIGIT.test(ke)){ht+=ke;continue}if(Le.SIGN.test(ke)){if(ht===""){ht+=ke;continue}ht.length===1&&Le.SIGN.test(ht)&&Be(ke,gt,De)}}Le.WHITESPACE.test(ke)?(Ve(),et=0,it=!1):Le.COMMA.test(ke)?(Ve(),it=!(et=0)):Le.SIGN.test(ke)?(Ve(),et=1,Ue=ke):Le.POINT.test(ke)?(Ve(),et=2,Ue=ke):Be(ke,gt,De)}return Ve(),De}var N=["mm","cm","in","pt","pc","px"],A={mm:{mm:1,cm:.1,in:1/25.4,pt:72/25.4,pc:6/25.4,px:-1},cm:{mm:10,cm:1,in:1/2.54,pt:72/2.54,pc:6/2.54,px:-1},in:{mm:25.4,cm:2.54,in:1,pt:72,pc:6,px:-1},pt:{mm:25.4/72,cm:2.54/72,in:1/72,pt:1,pc:6/72,px:-1},pc:{mm:25.4/6,cm:2.54/6,in:1/6,pt:12,pc:1,px:-1},px:{px:1}};function z(me){var ye="px";if(typeof me=="string"||me instanceof String)for(var Te=0,ke=N.length;Te<ke;Te++){var Le=N[Te];if(me.endsWith(Le)){ye=Le,me=me.substring(0,me.length-Le.length);break}}var et=void 0;return ye==="px"&&w.defaultUnit!=="px"?et=A.in[w.defaultUnit]/w.defaultDPI:(et=A[ye][w.defaultUnit])<0&&(et=A[ye].in*w.defaultDPI),et*parseFloat(me)}var G=[],V={},ne=[],W=new c.Matrix3,B=new c.Matrix3,q=new c.Matrix3,D=new c.Matrix3,F=new c.Vector2,re=new c.Vector3,le=new c.Matrix3,fe=new DOMParser().parseFromString(x,"image/svg+xml");return function me(ye,Te){if(ye.nodeType===1){var ke,Le,et,it,Ue,ht,De,Be,Ve,He,gt,dn,Ze=function(Ft){if(!(Ft.hasAttribute("transform")||Ft.nodeName==="use"&&(Ft.hasAttribute("x")||Ft.hasAttribute("y"))))return null;var Ot=function(_t){var Tn=new c.Matrix3,on=W;if(_t.nodeName==="use"&&(_t.hasAttribute("x")||_t.hasAttribute("y"))){var $n=z(_t.getAttribute("x")),Zt=z(_t.getAttribute("y"));Tn.translate($n,Zt)}if(_t.hasAttribute("transform"))for(var Et=_t.getAttribute("transform").split(")"),rn=Et.length-1;0<=rn;rn--){var wt=Et[rn].trim();if(wt!==""){var Yn=wt.indexOf("("),pt=wt.length;if(0<Yn&&Yn<pt){var Fe=wt.substr(0,Yn),Ie=O(wt.substr(Yn+1,pt-Yn-1));switch(on.identity(),Fe){case"translate":1<=Ie.length&&(Zt=$n=Ie[0],2<=Ie.length&&(Zt=Ie[1]),on.translate($n,Zt));break;case"rotate":if(1<=Ie.length){var ct,Ht=0,sn=0;ct=-Ie[0]*Math.PI/180,3<=Ie.length&&(Ht=Ie[1],sn=Ie[2]),B.identity().translate(-Ht,-sn),q.identity().rotate(ct),D.multiplyMatrices(q,B),B.identity().translate(Ht,sn),on.multiplyMatrices(B,D)}break;case"scale":if(1<=Ie.length){var yn=Ie[0],Dr=yn;2<=Ie.length&&(Dr=Ie[1]),on.scale(yn,Dr)}break;case"skewX":Ie.length===1&&on.set(1,Math.tan(Ie[0]*Math.PI/180),0,0,1,0,0,0,1);break;case"skewY":Ie.length===1&&on.set(1,0,0,Math.tan(Ie[0]*Math.PI/180),1,0,0,0,1);break;case"matrix":Ie.length===6&&on.set(Ie[0],Ie[2],Ie[4],Ie[1],Ie[3],Ie[5],0,0,1)}}Tn.premultiply(on)}}return Tn}(Ft);return 0<ne.length&&Ot.premultiply(ne[ne.length-1]),le.copy(Ot),ne.push(Ot),Ot}(ye),at=!0,Lt=null;switch(ye.nodeName){case"svg":break;case"style":(function(Ft){if(Ft.sheet&&Ft.sheet.cssRules&&Ft.sheet.cssRules.length)for(var Ot=0;Ot<Ft.sheet.cssRules.length;Ot++){var _t=Ft.sheet.cssRules[Ot];if(_t.type===1)for(var Tn=_t.selectorText.split(/,/gm).filter(Boolean).map(function($n){return $n.trim()}),on=0;on<Tn.length;on++)V[Tn[on]]=Object.assign(V[Tn[on]]||{},_t.style)}})(ye);break;case"g":Te=E(ye,Te);break;case"path":Te=E(ye,Te),ye.hasAttribute("d")&&(Lt=function(Ft){for(var Ot=new c.ShapePath,_t=new c.Vector2,Tn=new c.Vector2,on=new c.Vector2,$n=!0,Zt=!1,Et=Ft.getAttribute("d").match(/[a-df-z][^a-df-z]*/gi),rn=0,wt=Et.length;rn<wt;rn++){var Yn=Et[rn],pt=Yn.charAt(0),Fe=Yn.substr(1).trim();$n===!0&&($n=!(Zt=!0));var Ie=void 0;switch(pt){case"M":for(var ct=0,Ht=(Ie=O(Fe)).length;ct<Ht;ct+=2)_t.x=Ie[ct+0],_t.y=Ie[ct+1],Tn.x=_t.x,Tn.y=_t.y,ct===0?Ot.moveTo(_t.x,_t.y):Ot.lineTo(_t.x,_t.y),ct===0&&on.copy(_t);break;case"H":for(ct=0,Ht=(Ie=O(Fe)).length;ct<Ht;ct++)_t.x=Ie[ct],Tn.x=_t.x,Tn.y=_t.y,Ot.lineTo(_t.x,_t.y),ct===0&&Zt===!0&&on.copy(_t);break;case"V":for(ct=0,Ht=(Ie=O(Fe)).length;ct<Ht;ct++)_t.y=Ie[ct],Tn.x=_t.x,Tn.y=_t.y,Ot.lineTo(_t.x,_t.y),ct===0&&Zt===!0&&on.copy(_t);break;case"L":for(ct=0,Ht=(Ie=O(Fe)).length;ct<Ht;ct+=2)_t.x=Ie[ct+0],_t.y=Ie[ct+1],Tn.x=_t.x,Tn.y=_t.y,Ot.lineTo(_t.x,_t.y),ct===0&&Zt===!0&&on.copy(_t);break;case"C":for(ct=0,Ht=(Ie=O(Fe)).length;ct<Ht;ct+=6)Ot.bezierCurveTo(Ie[ct+0],Ie[ct+1],Ie[ct+2],Ie[ct+3],Ie[ct+4],Ie[ct+5]),Tn.x=Ie[ct+2],Tn.y=Ie[ct+3],_t.x=Ie[ct+4],_t.y=Ie[ct+5],ct===0&&Zt===!0&&on.copy(_t);break;case"S":for(ct=0,Ht=(Ie=O(Fe)).length;ct<Ht;ct+=4)Ot.bezierCurveTo(I(_t.x,Tn.x),I(_t.y,Tn.y),Ie[ct+0],Ie[ct+1],Ie[ct+2],Ie[ct+3]),Tn.x=Ie[ct+0],Tn.y=Ie[ct+1],_t.x=Ie[ct+2],_t.y=Ie[ct+3],ct===0&&Zt===!0&&on.copy(_t);break;case"Q":for(ct=0,Ht=(Ie=O(Fe)).length;ct<Ht;ct+=4)Ot.quadraticCurveTo(Ie[ct+0],Ie[ct+1],Ie[ct+2],Ie[ct+3]),Tn.x=Ie[ct+0],Tn.y=Ie[ct+1],_t.x=Ie[ct+2],_t.y=Ie[ct+3],ct===0&&Zt===!0&&on.copy(_t);break;case"T":for(ct=0,Ht=(Ie=O(Fe)).length;ct<Ht;ct+=2){var sn=I(_t.x,Tn.x),yn=I(_t.y,Tn.y);Ot.quadraticCurveTo(sn,yn,Ie[ct+0],Ie[ct+1]),Tn.x=sn,Tn.y=yn,_t.x=Ie[ct+0],_t.y=Ie[ct+1],ct===0&&Zt===!0&&on.copy(_t)}break;case"A":for(ct=0,Ht=(Ie=O(Fe,[3,4],7)).length;ct<Ht;ct+=7)if(Ie[ct+5]!=_t.x||Ie[ct+6]!=_t.y){var Dr=_t.clone();_t.x=Ie[ct+5],_t.y=Ie[ct+6],Tn.x=_t.x,Tn.y=_t.y,_(Ot,Ie[ct],Ie[ct+1],Ie[ct+2],Ie[ct+3],Ie[ct+4],Dr,_t),ct===0&&Zt===!0&&on.copy(_t)}break;case"m":for(ct=0,Ht=(Ie=O(Fe)).length;ct<Ht;ct+=2)_t.x+=Ie[ct+0],_t.y+=Ie[ct+1],Tn.x=_t.x,Tn.y=_t.y,ct===0?Ot.moveTo(_t.x,_t.y):Ot.lineTo(_t.x,_t.y),ct===0&&on.copy(_t);break;case"h":for(ct=0,Ht=(Ie=O(Fe)).length;ct<Ht;ct++)_t.x+=Ie[ct],Tn.x=_t.x,Tn.y=_t.y,Ot.lineTo(_t.x,_t.y),ct===0&&Zt===!0&&on.copy(_t);break;case"v":for(ct=0,Ht=(Ie=O(Fe)).length;ct<Ht;ct++)_t.y+=Ie[ct],Tn.x=_t.x,Tn.y=_t.y,Ot.lineTo(_t.x,_t.y),ct===0&&Zt===!0&&on.copy(_t);break;case"l":for(ct=0,Ht=(Ie=O(Fe)).length;ct<Ht;ct+=2)_t.x+=Ie[ct+0],_t.y+=Ie[ct+1],Tn.x=_t.x,Tn.y=_t.y,Ot.lineTo(_t.x,_t.y),ct===0&&Zt===!0&&on.copy(_t);break;case"c":for(ct=0,Ht=(Ie=O(Fe)).length;ct<Ht;ct+=6)Ot.bezierCurveTo(_t.x+Ie[ct+0],_t.y+Ie[ct+1],_t.x+Ie[ct+2],_t.y+Ie[ct+3],_t.x+Ie[ct+4],_t.y+Ie[ct+5]),Tn.x=_t.x+Ie[ct+2],Tn.y=_t.y+Ie[ct+3],_t.x+=Ie[ct+4],_t.y+=Ie[ct+5],ct===0&&Zt===!0&&on.copy(_t);break;case"s":for(ct=0,Ht=(Ie=O(Fe)).length;ct<Ht;ct+=4)Ot.bezierCurveTo(I(_t.x,Tn.x),I(_t.y,Tn.y),_t.x+Ie[ct+0],_t.y+Ie[ct+1],_t.x+Ie[ct+2],_t.y+Ie[ct+3]),Tn.x=_t.x+Ie[ct+0],Tn.y=_t.y+Ie[ct+1],_t.x+=Ie[ct+2],_t.y+=Ie[ct+3],ct===0&&Zt===!0&&on.copy(_t);break;case"q":for(ct=0,Ht=(Ie=O(Fe)).length;ct<Ht;ct+=4)Ot.quadraticCurveTo(_t.x+Ie[ct+0],_t.y+Ie[ct+1],_t.x+Ie[ct+2],_t.y+Ie[ct+3]),Tn.x=_t.x+Ie[ct+0],Tn.y=_t.y+Ie[ct+1],_t.x+=Ie[ct+2],_t.y+=Ie[ct+3],ct===0&&Zt===!0&&on.copy(_t);break;case"t":for(ct=0,Ht=(Ie=O(Fe)).length;ct<Ht;ct+=2)sn=I(_t.x,Tn.x),yn=I(_t.y,Tn.y),Ot.quadraticCurveTo(sn,yn,_t.x+Ie[ct+0],_t.y+Ie[ct+1]),Tn.x=sn,Tn.y=yn,_t.x=_t.x+Ie[ct+0],_t.y=_t.y+Ie[ct+1],ct===0&&Zt===!0&&on.copy(_t);break;case"a":for(ct=0,Ht=(Ie=O(Fe,[3,4],7)).length;ct<Ht;ct+=7)Ie[ct+5]==0&&Ie[ct+6]==0||(Dr=_t.clone(),_t.x+=Ie[ct+5],_t.y+=Ie[ct+6],Tn.x=_t.x,Tn.y=_t.y,_(Ot,Ie[ct],Ie[ct+1],Ie[ct+2],Ie[ct+3],Ie[ct+4],Dr,_t),ct===0&&Zt===!0&&on.copy(_t));break;case"Z":case"z":Ot.currentPath.autoClose=!0,0<Ot.currentPath.curves.length&&(_t.copy(on),Ot.currentPath.currentPoint.copy(_t),$n=!0);break;default:console.warn(Yn)}Zt=!1}return Ot}(ye));break;case"rect":Te=E(ye,Te),Lt=function(Ft){var Ot=z(Ft.getAttribute("x")||0),_t=z(Ft.getAttribute("y")||0),Tn=z(Ft.getAttribute("rx")||Ft.getAttribute("ry")||0),on=z(Ft.getAttribute("ry")||Ft.getAttribute("rx")||0),$n=z(Ft.getAttribute("width")),Zt=z(Ft.getAttribute("height")),Et=.448084975506,rn=new c.ShapePath;return rn.moveTo(Ot+Tn,_t),rn.lineTo(Ot+$n-Tn,_t),Tn===0&&on===0||rn.bezierCurveTo(Ot+$n-Tn*Et,_t,Ot+$n,_t+on*Et,Ot+$n,_t+on),rn.lineTo(Ot+$n,_t+Zt-on),Tn===0&&on===0||rn.bezierCurveTo(Ot+$n,_t+Zt-on*Et,Ot+$n-Tn*Et,_t+Zt,Ot+$n-Tn,_t+Zt),rn.lineTo(Ot+Tn,_t+Zt),Tn===0&&on===0||rn.bezierCurveTo(Ot+Tn*Et,_t+Zt,Ot,_t+Zt-on*Et,Ot,_t+Zt-on),rn.lineTo(Ot,_t+on),Tn===0&&on===0||rn.bezierCurveTo(Ot,_t+on*Et,Ot+Tn*Et,_t,Ot+Tn,_t),rn}(ye);break;case"polygon":Te=E(ye,Te),He=ye,gt=new c.ShapePath,dn=0,He.getAttribute("points").replace(/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,function(Ft,Ot,_t){var Tn=z(Ot),on=z(_t);dn===0?gt.moveTo(Tn,on):gt.lineTo(Tn,on),dn++}),gt.currentPath.autoClose=!0,Lt=gt;break;case"polyline":Te=E(ye,Te),De=ye,Be=new c.ShapePath,Ve=0,De.getAttribute("points").replace(/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,function(Ft,Ot,_t){var Tn=z(Ot),on=z(_t);Ve===0?Be.moveTo(Tn,on):Be.lineTo(Tn,on),Ve++}),Be.currentPath.autoClose=!1,Lt=Be;break;case"circle":Te=E(ye,Te),Lt=function(Ft){var Ot=z(Ft.getAttribute("cx")||0),_t=z(Ft.getAttribute("cy")||0),Tn=z(Ft.getAttribute("r")||0),on=new c.Path;on.absarc(Ot,_t,Tn,0,2*Math.PI,!1);var $n=new c.ShapePath;return $n.subPaths.push(on),$n}(ye);break;case"ellipse":Te=E(ye,Te),Lt=function(Ft){var Ot=z(Ft.getAttribute("cx")||0),_t=z(Ft.getAttribute("cy")||0),Tn=z(Ft.getAttribute("rx")||0),on=z(Ft.getAttribute("ry")||0),$n=new c.Path;$n.absellipse(Ot,_t,Tn,on,0,2*Math.PI,void 0,void 0);var Zt=new c.ShapePath;return Zt.subPaths.push($n),Zt}(ye);break;case"line":Te=E(ye,Te),Le=z((ke=ye).getAttribute("x1")||0),et=z(ke.getAttribute("y1")||0),it=z(ke.getAttribute("x2")||0),Ue=z(ke.getAttribute("y2")||0),(ht=new c.ShapePath).moveTo(Le,et),ht.lineTo(it,Ue),ht.currentPath.autoClose=!1,Lt=ht;break;case"defs":at=!1;break;case"use":Te=E(ye,Te);var Ne=ye.href.baseVal.substring(1),ze=ye.viewportElement.getElementById(Ne);ze?me(ze,Te):console.warn("SVGLoader: 'use node' references non-existent node id: "+Ne)}if(Lt&&(Te.fill!==void 0&&Te.fill!=="none"&&Lt.color.setStyle(Te.fill),function(Ft,Ot){function _t(Fe){re.set(Fe.x,Fe.y,1).applyMatrix3(Ot),Fe.set(re.x,re.y)}for(var Tn=function(Fe){return Fe.elements[1]!==0||Fe.elements[3]!==0}(Ot),on=Ft.subPaths,$n=0,Zt=on.length;$n<Zt;$n++)for(var Et=on[$n].curves,rn=0;rn<Et.length;rn++){var wt=Et[rn];wt.isLineCurve?(_t(wt.v1),_t(wt.v2)):wt.isCubicBezierCurve?(_t(wt.v0),_t(wt.v1),_t(wt.v2),_t(wt.v3)):wt.isQuadraticBezierCurve?(_t(wt.v0),_t(wt.v1),_t(wt.v2)):wt.isEllipseCurve&&(Tn&&console.warn("SVGLoader: Elliptic arc or ellipse rotation or skewing is not implemented."),F.set(wt.aX,wt.aY),_t(F),wt.aX=F.x,wt.aY=F.y,wt.xRadius*=(pt=Ot.elements,Math.sqrt(pt[0]*pt[0]+pt[1]*pt[1])),wt.yRadius*=(Yn=Ot.elements,Math.sqrt(Yn[3]*Yn[3]+Yn[4]*Yn[4])))}var Yn,pt}(Lt,le),G.push(Lt),Lt.userData={node:ye,style:Te}),at)for(var Ke=ye.childNodes,vt=0;vt<Ke.length;vt++)me(Ke[vt],Te);Ze&&(ne.pop(),0<ne.length?le.copy(ne[ne.length-1]):le.identity())}}(fe.documentElement,{fill:"#000",fillOpacity:1,strokeOpacity:1,strokeWidth:1,strokeLineJoin:"miter",strokeLineCap:"butt",strokeMiterLimit:4}),{paths:G,xml:fe.documentElement}},v.createShapes=function(x){var w=999999999,_={ORIGIN:0,DESTINATION:1,BETWEEN:2,LEFT:3,RIGHT:4,BEHIND:5,BEYOND:6},b={loc:_.ORIGIN,t:0};function E(W,B,q,D){var F=W.x,re=B.x,le=q.x,fe=D.x,me=W.y,ye=B.y,Te=q.y,ke=D.y,Le=(fe-le)*(me-Te)-(ke-Te)*(F-le),et=(ke-Te)*(re-F)-(fe-le)*(ye-me),it=Le/et,Ue=((re-F)*(me-Te)-(ye-me)*(F-le))/et;if(et==0&&Le!=0||it<=0||1<=it||Ue<0||1<Ue)return null;if(Le==0&&et==0){for(var ht=0;ht<2;ht++){if(I(ht===0?q:D,W,B),b.loc==_.ORIGIN)return{x:(De=ht===0?q:D).x,y:De.y,t:b.t};if(b.loc==_.BETWEEN)return{x:+(F+b.t*(re-F)).toPrecision(10),y:+(me+b.t*(ye-me)).toPrecision(10),t:b.t}}return null}for(ht=0;ht<2;ht++){var De;if(I(ht===0?q:D,W,B),b.loc==_.ORIGIN)return{x:(De=ht===0?q:D).x,y:De.y,t:b.t}}return{x:+(F+it*(re-F)).toPrecision(10),y:+(me+it*(ye-me)).toPrecision(10),t:it}}function I(W,B,q){var D,F=q.x-B.x,re=q.y-B.y,le=W.x-B.x,fe=W.y-B.y,me=F*fe-le*re;return W.x===B.x&&W.y===B.y?(b.loc=_.ORIGIN,b.t=0):W.x===q.x&&W.y===q.y?(b.loc=_.DESTINATION,b.t=1,0):void(me<-Number.EPSILON?b.loc=_.LEFT:me>Number.EPSILON?b.loc=_.RIGHT:F*le<0||re*fe<0?b.loc=_.BEHIND:Math.sqrt(F*F+re*re)<Math.sqrt(le*le+fe*fe)?b.loc=_.BEYOND:(D=F!=0?le/F:fe/re,b.loc=_.BETWEEN,b.t=D))}function O(W,B,q){var D=new c.Vector2;B.getCenter(D);var F=[];return q.forEach(function(re){re.boundingBox.containsPoint(D)&&function(le,fe){for(var me=[],ye=[],Te=1;Te<le.length;Te++)for(var ke=le[Te-1],Le=le[Te],et=function(Ue){var ht=fe[Ue-1],De=fe[Ue],Be=E(ke,Le,ht,De);Be!==null&&me.find(function(Ve){return Ve.t<=Be.t+Number.EPSILON&&Ve.t>=Be.t-Number.EPSILON})===void 0&&(me.push(Be),ye.push(new c.Vector2(Be.x,Be.y)))},it=1;it<fe.length;it++)et(it);return ye}(W,re.points).forEach(function(le){F.push({identifier:re.identifier,isCW:re.isCW,point:le})})}),F.sort(function(re,le){return re.point.x-le.point.x}),F}var N=0,A=w,z=-w,G=x.subPaths.map(function(W){for(var B=W.getPoints(),q=-w,D=w,F=-w,re=w,le=0;le<B.length;le++){var fe=B[le];fe.y>q&&(q=fe.y),fe.y<D&&(D=fe.y),fe.x>F&&(F=fe.x),fe.x<re&&(re=fe.x)}return z<=F&&(z=F+1),re<=A&&(A=re-1),{curves:W.curves,points:B,isCW:c.ShapeUtils.isClockWise(B),identifier:N++,boundingBox:new c.Box2(new c.Vector2(re,D),new c.Vector2(F,q))}});G=G.filter(function(W){return 1<W.points.length}),N=0;var V=(G=G.map(function(W){return W.identifier=N,N++,W})).map(function(W){return function(B,q,D,F,re){re!=null&&re!==""||(re="nonzero");var le=new c.Vector2;B.boundingBox.getCenter(le);var fe=O([new c.Vector2(D,le.y),new c.Vector2(F,le.y)],B.boundingBox,q);fe.sort(function(Be,Ve){return Be.point.x-Ve.point.x});var me=[],ye=[];fe.forEach(function(Be){Be.identifier===B.identifier?me.push(Be):ye.push(Be)});for(var Te=me[0].point.x,ke=[],Le=0;Le<ye.length&&ye[Le].point.x<Te;)0<ke.length&&ke[ke.length-1]===ye[Le].identifier?ke.pop():ke.push(ye[Le].identifier),Le++;if(ke.push(B.identifier),re==="evenodd"){var et=ke.length%2==0,it=ke[ke.length-2];return{identifier:B.identifier,isHole:et,for:it}}if(re==="nonzero"){et=!0;for(var Ue=it=null,ht=0;ht<ke.length;ht++){var De=ke[ht];et?(Ue=q[De].isCW,et=!1,it=De):Ue!==q[De].isCW&&(Ue=q[De].isCW,et=!0)}return{identifier:B.identifier,isHole:et,for:it}}console.warn('fill-rule: "'+re+'" is currently not implemented.')}(W,G,A,z,x.userData.style.fillRule)}),ne=[];return G.forEach(function(W){if(!V[W.identifier].isHole){var B=new c.Shape;B.curves=W.curves,V.filter(function(q){return q.isHole&&q.for===W.identifier}).forEach(function(q){var D=G[q.identifier],F=new c.Path;F.curves=D.curves,B.holes.push(F)}),ne.push(B)}}),ne},v.getStrokeStyle=function(x,w,_,b,E){return{strokeColor:w=w!==void 0?w:"#000",strokeWidth:x=x!==void 0?x:1,strokeLineJoin:_=_!==void 0?_:"miter",strokeLineCap:b=b!==void 0?b:"butt",strokeMiterLimit:E=E!==void 0?E:4}},v.pointsToStroke=function(x,w,_,b){var E=[],I=[],O=[];if(v.pointsToStrokeWithBuffers(x,w,_,b,E,I,O)===0)return null;var N=new c.BufferGeometry;return N.setAttribute("position",new c.Float32BufferAttribute(E,3)),N.setAttribute("normal",new c.Float32BufferAttribute(I,3)),N.setAttribute("uv",new c.Float32BufferAttribute(O,2)),N},v.pointsToStrokeWithBuffers=function(x,w,_,b,E,I,O,N){var A=new c.Vector2,z=new c.Vector2,G=new c.Vector2,V=new c.Vector2,ne=new c.Vector2,W=new c.Vector2,B=new c.Vector2,q=new c.Vector2,D=new c.Vector2,F=new c.Vector2,re=new c.Vector2,le=new c.Vector2,fe=new c.Vector2,me=new c.Vector2,ye=new c.Vector2,Te=new c.Vector2,ke=new c.Vector2;_=_!==void 0?_:12,b=b!==void 0?b:.001,N=N!==void 0?N:0;var Le=(x=function(Ht){for(var sn=!1,yn=1,Dr=Ht.length-1;yn<Dr;yn++)if(Ht[yn].distanceTo(Ht[yn+1])<b){sn=!0;break}if(!sn)return Ht;var Kr=[];for(Kr.push(Ht[0]),yn=1,Dr=Ht.length-1;yn<Dr;yn++)Ht[yn].distanceTo(Ht[yn+1])>=b&&Kr.push(Ht[yn]);return Kr.push(Ht[Ht.length-1]),Kr}(x)).length;if(Le<2)return 0;var et,it,Ue,ht,De,Be,Ve=x[0].equals(x[Le-1]),He=x[0],gt=w.strokeWidth/2,dn=1/(Le-1),Ze=0,at=!1,Lt=0,Ne=3*N,ze=2*N;rn(x[0],x[1],A).multiplyScalar(gt),q.copy(x[0]).sub(A),D.copy(x[0]).add(A),F.copy(q),re.copy(D);for(var Ke=1;Ke<Le;Ke++){et=x[Ke],it=Ke===Le-1?Ve?x[1]:void 0:x[Ke+1];var vt=A;if(rn(He,et,vt),G.copy(vt).multiplyScalar(gt),le.copy(et).sub(G),fe.copy(et).add(G),Ue=Ze+dn,ht=!1,it!==void 0){rn(et,it,z),G.copy(z).multiplyScalar(gt),me.copy(et).sub(G),ye.copy(et).add(G),De=!0,G.subVectors(it,He),vt.dot(G)<0&&(De=!1),Ke===1&&(at=De),G.subVectors(it,et),G.normalize();var Ft=Math.abs(vt.dot(G));if(Ft!==0){var Ot=gt/Ft;G.multiplyScalar(-Ot),V.subVectors(et,He),ne.copy(V).setLength(Ot).add(G),Te.copy(ne).negate();var _t=ne.length(),Tn=V.length();V.divideScalar(Tn),W.subVectors(it,et);var on=W.length();switch(W.divideScalar(on),V.dot(Te)<Tn&&W.dot(Te)<on&&(ht=!0),ke.copy(ne).add(et),Te.add(et),Be=!1,ht?De?(ye.copy(Te),fe.copy(Te)):(me.copy(Te),le.copy(Te)):pt(),w.strokeLineJoin){case"bevel":Fe(De,ht,Ue);break;case"round":Ie(De,ht),De?Yn(et,le,me,Ue,0):Yn(et,ye,fe,Ue,1);break;default:var $n=gt*w.strokeMiterLimit/_t;if($n<1){if(w.strokeLineJoin!=="miter-clip"){Fe(De,ht,Ue);break}Ie(De,ht),De?(W.subVectors(ke,le).multiplyScalar($n).add(le),B.subVectors(ke,me).multiplyScalar($n).add(me),wt(le,Ue,0),wt(W,Ue,0),wt(et,Ue,.5),wt(et,Ue,.5),wt(W,Ue,0),wt(B,Ue,0),wt(et,Ue,.5),wt(B,Ue,0),wt(me,Ue,0)):(W.subVectors(ke,fe).multiplyScalar($n).add(fe),B.subVectors(ke,ye).multiplyScalar($n).add(ye),wt(fe,Ue,1),wt(W,Ue,1),wt(et,Ue,.5),wt(et,Ue,.5),wt(W,Ue,1),wt(B,Ue,1),wt(et,Ue,.5),wt(B,Ue,1),wt(ye,Ue,1))}else ht?(De?(wt(D,Ze,1),wt(q,Ze,0),wt(ke,Ue,0),wt(D,Ze,1),wt(ke,Ue,0),wt(Te,Ue,1)):(wt(D,Ze,1),wt(q,Ze,0),wt(ke,Ue,1),wt(q,Ze,0),wt(Te,Ue,0),wt(ke,Ue,1)),De?me.copy(ke):ye.copy(ke)):De?(wt(le,Ue,0),wt(ke,Ue,0),wt(et,Ue,.5),wt(et,Ue,.5),wt(ke,Ue,0),wt(me,Ue,0)):(wt(fe,Ue,1),wt(ke,Ue,1),wt(et,Ue,.5),wt(et,Ue,.5),wt(ke,Ue,1),wt(ye,Ue,1)),Be=!0}}else pt()}else pt();Ve||Ke!==Le-1||ct(x[0],F,re,De,!0,Ze),Ze=Ue,He=et,q.copy(me),D.copy(ye)}if(Ve){if(ht&&E){var Zt=ke,Et=Te;at!==De&&(Zt=Te,Et=ke),De?(Be||at)&&(Et.toArray(E,0),Et.toArray(E,9),Be&&Zt.toArray(E,3)):!Be&&at||(Et.toArray(E,3),Et.toArray(E,9),Be&&Zt.toArray(E,0))}}else ct(et,le,fe,De,!1,Ue);return Lt;function rn(Ht,sn,yn){return yn.subVectors(sn,Ht),yn.set(-yn.y,yn.x).normalize()}function wt(Ht,sn,yn){E&&(E[Ne]=Ht.x,E[Ne+1]=Ht.y,E[Ne+2]=0,I&&(I[Ne]=0,I[Ne+1]=0,I[Ne+2]=1),Ne+=3,O&&(O[ze]=sn,O[ze+1]=yn,ze+=2)),Lt+=3}function Yn(Ht,sn,yn,Dr,Kr){A.copy(sn).sub(Ht).normalize(),z.copy(yn).sub(Ht).normalize();var ii=Math.PI,_n=A.dot(z);Math.abs(_n)<1&&(ii=Math.abs(Math.acos(_n))),ii/=_,G.copy(sn);for(var xn=0,jn=_-1;xn<jn;xn++)V.copy(G).rotateAround(Ht,ii),wt(G,Dr,Kr),wt(V,Dr,Kr),wt(Ht,Dr,.5),G.copy(V);wt(V,Dr,Kr),wt(yn,Dr,Kr),wt(Ht,Dr,.5)}function pt(){wt(D,Ze,1),wt(q,Ze,0),wt(le,Ue,0),wt(D,Ze,1),wt(le,Ue,1),wt(fe,Ue,0)}function Fe(Ht,sn,yn){sn?(Ht?(wt(D,Ze,1),wt(q,Ze,0),wt(le,Ue,0),wt(D,Ze,1),wt(le,Ue,0),wt(Te,Ue,1),wt(le,yn,0),wt(me,yn,0)):(wt(D,Ze,1),wt(q,Ze,0),wt(fe,Ue,1),wt(q,Ze,0),wt(Te,Ue,0),wt(fe,Ue,1),wt(fe,yn,1),wt(ye,yn,0)),wt(Te,yn,.5)):(Ht?(wt(le,yn,0),wt(me,yn,0)):(wt(fe,yn,1),wt(ye,yn,0)),wt(et,yn,.5))}function Ie(Ht,sn){sn&&(Ht?(wt(D,Ze,1),wt(q,Ze,0),wt(le,Ue,0),wt(D,Ze,1),wt(le,Ue,0),wt(Te,Ue,1),wt(le,Ze,0),wt(et,Ue,.5),wt(Te,Ue,1),wt(et,Ue,.5),wt(me,Ze,0),wt(Te,Ue,1)):(wt(D,Ze,1),wt(q,Ze,0),wt(fe,Ue,1),wt(q,Ze,0),wt(Te,Ue,0),wt(fe,Ue,1),wt(fe,Ze,1),wt(Te,Ue,0),wt(et,Ue,.5),wt(et,Ue,.5),wt(Te,Ue,0),wt(ye,Ze,1)))}function ct(Ht,sn,yn,Dr,Kr,ii){switch(w.strokeLineCap){case"round":Kr?Yn(Ht,yn,sn,ii,.5):Yn(Ht,sn,yn,ii,.5);break;case"square":if(Kr)A.subVectors(sn,Ht),z.set(A.y,-A.x),G.addVectors(A,z).add(Ht),V.subVectors(z,A).add(Ht),Dr?(G.toArray(E,3),V.toArray(E,0),V.toArray(E,9)):(G.toArray(E,3),G.toArray(E,9),V.toArray(E,0));else{A.subVectors(yn,Ht),z.set(A.y,-A.x),G.addVectors(A,z).add(Ht),V.subVectors(z,A).add(Ht);var _n=E.length;Dr?(G.toArray(E,_n-3),V.toArray(E,_n-6)):(G.toArray(E,_n-6),V.toArray(E,_n-3)),V.toArray(E,_n-12)}}}},v);function v(x){var w=s.call(this,x)||this;return w.defaultDPI=90,w.defaultUnit="px",w}r.SVGLoader=l},{three:19}],59:[function(t,e,r){var n,o=this&&this.__extends||(n=function(q,D){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,re){F.__proto__=re}||function(F,re){for(var le in re)Object.prototype.hasOwnProperty.call(re,le)&&(F[le]=re[le])})(q,D)},function(q,D){function F(){this.constructor=q}n(q,D),q.prototype=D===null?Object.create(D):(F.prototype=D.prototype,new F)});Object.defineProperty(r,"__esModule",{value:!0}),r.MxTest=void 0;var s,c,l=t("../Operate/MrxDbgUiPrBase"),v=t("../Operate/MrxDbgUiPrPoint"),x=t("../MxThreeJS"),w=t("three"),_=t("../MxFun"),b=t("../View/MxDbEntity"),E=t("../MrxDbgUtils"),I=t("../Operate/MrxDbgUiPrDist"),O=(t("../MxString"),o(N,s=b.MxDbEntityUserObject),N.prototype.worldDraw=function(q){var D=new w.Vector3(this.pt.x-this.r,this.pt.y-this.r,0),F=new w.Vector3(this.pt.x+this.r,this.pt.y+this.r,0);new w.Vector3(D.x,F.y);var re=new w.Vector3(F.x,D.y);q.setDashLineDisplay(!0),q.setDash(.1,.2),q.drawLine(re,D)},N.prototype.setPoint=function(q){this.pt=q},N.prototype.setR=function(q){this.r=q},N.prototype.getTypeName=function(){return"MxDbTest"},N.prototype.getGripPoints=function(){var q=[];return q.push(this.pt),q},N.prototype.moveGripPointsAt=function(q,D){return q==0&&this.pt.add(D),!0},N.prototype.dwgIn=function(q){return s.prototype.dwgIn.call(this,q),this.pt.copy(q.pt),this.r=q.r,!0},N.prototype.dwgOut=function(q){return s.prototype.dwgOut.call(this,q),q.pt=this.pt,q.r=this.r,q},N.prototype.create=function(){return new N},N);function N(){var q=s!==null&&s.apply(this,arguments)||this;return q.pt=new w.Vector3,q.r=100,q}function A(q){var D=new v.MrxDbgUiPrPoint;D.setMessage(`
  3240. \u6307\u5B9A\u7B2C\u4E00\u70B9:`),D.go(function(F){if(F==0){var re=D.value(),le=new w.Vector3;le.x=re.x,le.y=re.y;var fe=new l.McEdGetPointWorldDrawObject;fe.setDraw(function(me,ye){ye.setColor(255),ye.drawLine(me,le)}),D.setUserDraw(fe),D.setMessage(`
  3241. \u6307\u5B9A\u4E0B\u4E00\u70B9:`),D.go(function(me){if(me==0){var ye=D.value(),Te=_.MxFun.getCurrentDraw(),ke=x.MxThreeJS.createLine(re,ye,16777215);Te.addObject(ke)}})}})}function z(){var q=new v.MrxDbgUiPrPoint;q.setMessage(`
  3242. \u6307\u5B9A\u7B2C\u4E00\u70B9:`),q.go(function(D){if(D==0){var F=_.MxFun.getCurrentDraw(),re=new O;re.setColor(16711680),re.setPoint(q.value()),re.setR(F.viewCoordLong2Cad(100)),F.addMxEntity(re),F.addMxCurrentSelect(re.objectId())}})}function G(){E.MrxDbgUtils.selectEnt("Test").then(function(q){console.log(q)})}function V(){var q=_.MxFun.getCurrentDraw();c?(q.eraseAllMxEntity(),q.loadMxEntityFromJson(c)):(c=q.saveMxEntityToJson(),console.log(c))}function ne(){_.MxFun.openFile("demo/buf/hhhh.dwg?token=123456")}function W(){var q=new v.MrxDbgUiPrPoint;q.setMessage(`
  3243. \u6307\u5B9A\u7B2C\u4E00\u70B9:`),q.go(function(D){if(D==0){var F=q.value();E.MrxDbgUtils.getCorner(F,"Test",!0).then(function(re){console.log("xxxdddd"),console.log(re)})}})}function B(){var q=new I.MrxDbgUiPrDist;q.setMessage(`
  3244. \u8F93\u5165\u8DDD\u79BB:`),q.go(function(D){if(D==0){var F=q.value();console.log(F)}})}(r.MxTest||(r.MxTest={})).registerCommand=function(){console.log("regist mx test"),new O().init(),_.MxFun.addCommand("MxTest_GetPoint",A),_.MxFun.addCommand("MxTest_GetDist",B),_.MxFun.addCommand("MxTest_DrawCustomEntity",z),_.MxFun.addCommand("MxTest_EntSel",G),_.MxFun.addCommand("MxTest_SaveMxDbEntityToJson",V),_.MxFun.addCommand("MxTest_OpenFile",ne),_.MxFun.addCommand("MxTest_GetCorner",W),_.MxFun.addWindowsEvent(function(q,D){if(q=="mouseup"){if(_.MxFun.isRunningCommand()||D.button!=0)return 0;var F=D.srcElement;if(F&&F.tagName=="CANVAS"){var re=_.MxFun.getCurrentDraw(),le=new w.Vector3(D.offsetX,D.offsetY,0);re.findMxEntityAtPoint(le,!1).length&&D.preventDefault()}return 0}})}},{"../MrxDbgUtils":20,"../MxFun":27,"../MxString":34,"../MxThreeJS":36,"../Operate/MrxDbgUiPrBase":44,"../Operate/MrxDbgUiPrDist":45,"../Operate/MrxDbgUiPrPoint":46,"../View/MxDbEntity":67,three:19}],60:[function(require,module,exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.MxUiObject=exports.MxToolBarItem=exports.MxMenuItem=void 0;var MxFun_1=require("../MxFun"),MxMenuItem=function(){this.id=-1,this.text="",this.evalString="",this.parentId=-1};exports.MxMenuItem=MxMenuItem;var MxToolBarItem=function(){this.isMxCommand=!1,this.itemid=""};exports.MxToolBarItem=MxToolBarItem;var MxUiObject=function(){function MxUiObject(){this.vecMenuItem=new Array,this.vecToolBarItem=new Array,this.uiPath="./ui",this.idMenuItemCount=100,this.isShowTitle=!1,this.isShowStructTree=!1,this.isEnableLoading=!0,this.isShowLayer=!1,this.isShowTakeColor=!1,this.isShowLayout=!1,this.isEnableObjectProperty=!1,this.isShowToolbar=!1,this.isShowMainMenu=!1,this.sTitle="",this.sLanguageTable={layout:"\u5E03\u5C40",layer:"\u56FE\u5C42",visible:"\u53EF\u89C1",color:"\u989C\u8272",name:"\u540D\u5B57",status:"\u72B6\u6001",openComplete:"\u63D0\u793A\uFF1A\u6253\u5F00\u56FE\u7EB8\u5B8C\u6210"}}return MxUiObject.prototype.SetLayoutData=function(t){this.vecLayoutData=t},MxUiObject.prototype.CallMxCommand=function(t){MxFun_1.MxFun.callCommand(t,"")},MxUiObject.prototype.EvalJs=function(value){eval(value)},MxUiObject.prototype.SetLayerData=function(t){this.vecLayerData=t},MxUiObject.prototype.SetSketchLayerData=function(t){this.vecSketchLayerData=t},MxUiObject.prototype.init=function(){this.onInit()},MxUiObject.prototype.addMenuItem=function(t,e,r,n){e===void 0&&(e=""),r===void 0&&(r=-1),n===void 0&&(n=-1);var o=new MxMenuItem;o.text=t,o.evalString=e,n==-1&&(n=this.idMenuItemCount,this.idMenuItemCount++),o.id=n,o.parentId=r,this.vecMenuItem.push(o)},MxUiObject.prototype.addToolBarItem=function(t,e,r,n,o){e===void 0&&(e=""),r===void 0&&(r=""),n===void 0&&(n=!1),o===void 0&&(o="");var s=new MxToolBarItem;s.image=t,s.evalString=r,s.text=e,s.isMxCommand=n,s.itemid=o,this.vecToolBarItem.push(s)},MxUiObject.prototype.setPath=function(t){this.uiPath=t},MxUiObject.prototype.getPath=function(){return this.uiPath},MxUiObject.prototype.create=function(){this.onCreate()},MxUiObject.prototype.writeUICSS=function(){var t=this.uiPath;MxFun_1.MxFun.isPC()?(document.write("<link rel='stylesheet' href='"+t+"/css/mxbimpcm.css'>"),this.isShowMainMenu&&(document.write("<link rel='stylesheet' href='"+t+"/css/rightfacefonts2.css'>"),document.write("<link rel='stylesheet' href='"+t+"/css/rightmnu.css'>"),document.write("<script type='text/javascript' src='"+t+"/hc-mobile-nav.js'><\/script>"))):(document.write("<link rel='stylesheet' href='"+t+"/css/mxmobile.css'>"),this.isShowMainMenu&&(document.write("<link href='"+t+"/css/font-awesome.min.css' rel='stylesheet'>"),document.write("<link rel='stylesheet' href='"+t+"/css/rightfacefonts1.css'>"),document.write("<link rel='stylesheet' href='"+t+"/css/rightfacefonts2.css'>"),document.write("<link rel='stylesheet' href='"+t+"/css/rightmnu.css'>"),document.write("<script type='text/javascript' src='"+t+"/hc-mobile-nav.js'><\/script>")))},MxUiObject}();exports.MxUiObject=MxUiObject},{"../MxFun":27}],61:[function(t,e,r){var n,o=this&&this.__extends||(n=function(w,_){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,E){b.__proto__=E}||function(b,E){for(var I in E)Object.prototype.hasOwnProperty.call(E,I)&&(b[I]=E[I])})(w,_)},function(w,_){function b(){this.constructor=w}n(w,_),w.prototype=_===null?Object.create(_):(b.prototype=_.prototype,new b)});Object.defineProperty(r,"__esModule",{value:!0}),r.MxUiObjectMobile=void 0;var s,c=t("./MxUiObject"),l=t("../MxFun"),v=(o(x,s=c.MxUiObject),x.prototype.onCreate=function(){this.isShowTitle&&this.WriteTitle(),this.WriteStructTree(),this.isEnableLoading&&this.WriteLoading(),this.WriteLayer(),this.WriteTakeColor(),this.WriteLayout(),this.isEnableObjectProperty&&this.WriteObjectProperty(),this.isShowToolbar&&this.WriteToolbar()},x.prototype.onInit=function(){this.InitEvent()},x.prototype.ShowLoading=function(){this.isEnableLoading&&($(".Prompt").css("background","rgba(0, 0, 0, 0)"),$(".Prompt").fadeIn(100),$(".Prompt span").css("display","none"))},x.prototype.HideLoading=function(){this.isEnableLoading&&($(".Prompt").css("background","rgba(0, 0, 0, 0.8)"),$(".Prompt div").fadeOut(100),$(".Prompt span").fadeIn(200),setTimeout(function(){$(".Prompt").fadeOut(1e3)},1e3))},x.prototype.ShowObjectProperty=function(w){if(w.length!=0){var _;_=typeof w=="string"?JSON.parse(w):w;var b="";for(var E in _){var I=_[E];for(var O in b+='<tbody class="bf-group undefined bf-collapse">',b+='<tr class="bf-group-title">',b+='<td colspan="2"><i class="bf-icon" style=" padding: 12px;"></i>'+I.name+"</td>",b+="</tr>",I.datas){var N=I.datas[O];b+="<tr class='bf-group-content'>",b+="<td class='bf-key'>"+N.name+"</td>",b+="<td class='bf-value'>"+N.value+"</td>",b+="</tr>"}b+="</tbody>"}document.getElementById("ComponentContent").innerHTML=b,$(".bf-group").click(function(){$(this).hasClass("bf-collapse")?$(this).removeClass("bf-collapse"):$(this).addClass("bf-collapse")})}},x.prototype.HideObjectProp=function(){},x.prototype.SwitchShowLayer=function(){var w=document.getElementById("LayerInterface");w.style.display=="none"?(w.style.display="block",w.style.left="80px",w.style.top="50px"):w.style.display="none"},x.prototype.SwitchShowStructTree=function(){},x.prototype.Chosecolor=function(){document.getElementById("color-picker").click()},x.prototype.ColorChange=function(w){document.getElementById("colorbox").style.backgroundColor=w,l.MxFun.setCurrentColor(w)},x.prototype.SwitchShowLayout=function(){var w=document.getElementById("LayerOutInterface");w.style.display=="none"?w.style.display="block":w.style.display="none"},x.prototype.WriteTitle=function(){var w=this.uiPath;document.write("<div class='bar1'>"),document.write("<img src='"+w+"/image/mxcad.png' style='height: 50%;position: absolute;top: 12px;left: 10px;'>"),document.write("<span class='barspan' style='position: absolute;left: 45px;'>"),document.write("</span>"),document.write("<div id='container'>"),this.isShowMainMenu&&(document.write("<header>"),document.write("<div class='wrapper cf'style='z-index: 999'>"),document.write("<nav id='main-nav' >"),document.write("</nav>"),document.write("<a class='toggle'>"),document.write("<span></span>"),document.write("</a>"),document.write("</div>"),document.write("</header>")),document.write("</div>"),document.write("</div>")},x.prototype.WriteToolbar=function(){document.write("<div id='MainMenuContent' class='bf-toolbar bf-toolbar-bottom'>"),document.write("</div>")},x.prototype.WriteLoading=function(){var w=this.uiPath;document.write("<div class='Prompt' style='width: 100px;height:30px;position:"),document.write("absolute;top: 60px;left: 50%;margin-left: -50px;color: #fff;text-align: center;'>"),document.write("<div style='text-align: center;'>"),document.write("<img src='"+w+"/image/loading.gif' alt='' style='width:30px;height:30px;float: left'>"),document.write("<p style='color:black;vertical-align: middle;float: left; margin-top: 5px;margin-left: 5px;'>\u52A0\u8F7D\u4E2D.....</p>"),document.write("</div>"),document.write("<span style='vertical-align: middle;display: none'>\u56FE\u7EB8\u52A0\u8F7D\u5B8C\u6BD5</span>"),document.write("</div>")},x.prototype.WriteLayer=function(){var w=this.uiPath;this.isShowLayer&&(document.write("<div class='bf-toolbar bf-toolbar bf-tree-toolbar' title='ModelTree' style='position: absolute; top:111px;left: 0px;' onclick='uiObj.SwitchShowLayer()'>"),document.write("<div class='bf-button mxbim-bf-tree' title='\u56FE\u5C42'>"),document.write("<img src='"+w+"/image/layer.png.gif' alt='' style='width: 24px;'>"),document.write("</div>"),document.write("</div>")),document.write("<div class='bf-panel bf-has-title bf-sizable' id='LayerInterface' title='\u56FE\u5C42'"),document.write("style='left: 0px;"),document.write("top: 0px;"),document.write("width: 100%;"),document.write("height: 100%;"),document.write("display: none;'>"),document.write("<div class='bf-close' onclick='uiObj.SwitchShowLayer()' style='text-align: center;'><i class='fa fa-times' aria-hidden='true'></i></div>"),document.write("<div class='bf-title' style='cursor: move; user-select: none;'>\u56FE\u5C42</div>"),document.write("<div>"),document.write("<div class='layer-title' style='width: 12.5%;'>\u53EF\u89C1</div>"),document.write("<div class='layer-title' style='width: 12.5%;'>\u989C\u8272</div>"),document.write("<div class='layer-title' style='width: 62.5%'>\u540D\u5B57</div>"),document.write("<div class='layer-title' style='width: 12.5%'>\u72B6\u6001</div>"),document.write("</div>"),document.write("<div id='Layer-Info' style='margin-top: 26px;height: 79%;width: 100%; position: absolute;overflow-y: auto;'>"),document.write("</div>"),document.write("</div>")},x.prototype.WriteStructTree=function(){this.isShowStructTree&&(document.write("<div class='bf-toolbar bf-toolbar bf-tree-toolbar' id='Fmj' title='ModelTree'"),document.write("style='position: absolute; top:60px;left: 0px;' onclick='uiObj.SwitchShowStructTree()'>"),document.write("<div class='bf-button mxbim-bf-tree' title='\u6784\u4EF6\u6811'><i class='fa fa-sitemap' aria-hidden='true' style='font-size: 24px;'></i></div>"),document.write("</div>")),document.write("<div class='bf-panel bf-has-title bf-sizable tree-panel' id='dv' title='\u76EE\u5F55\u6811' style='left: 0px; top: 0px; width: 100%; height: 100%; display: none;'>"),document.write("<div class='bf-close' onclick='uiObj.SwitchShowStructTree()'><i class='fa fa-times fa-2x' aria-hidden='true'></i></div>"),document.write("<div class='bf-title' style='cursor: move; user-select: none;'>\u76EE\u5F55\u6811</div>"),document.write("<div class='bf-panel-body' style='padding-top: 57px;overflow-y: scroll;'>"),document.write("<div class='bf-panel-header'>"),document.write("<div class='bf-panel-header'>"),document.write("<div class='bf-tree-header' style='margin-top: -57px;'>"),document.write("<div class='bf-tabs bf-tabs-tree'>"),document.write("<ul class='bf-tabs-list'>"),document.write("<li class='bf-tabs-option my-option undefined active' id='component'>\u6784\u4EF6</li>"),document.write("<li class='bf-tabs-option my-option undefined' id='area'>\u7A7A\u95F4</li>"),document.write("<li class='bf-tabs-option my-option undefined' id='drawing'>\u56FE\u7EB8</li>"),document.write("</ul>"),document.write("</div>"),document.write("</div>"),document.write("</div>"),document.write("</div>"),document.write("<div class='' style='margin-bottom: 100px;' id='DirectoryContent'>"),document.write("</div>"),document.write("</div>"),document.write("</div>")},x.prototype.WriteTakeColor=function(){var w=this.uiPath;this.isShowTakeColor&&(document.write("<div class='bf-toolbar bf-toolbar bf-tree-toolbar' id='TakeColor'"),document.write("style='position: absolute;left: 0px; top: 162px;width: 45px; '>"),document.write("<div class='bf-button' onclick='uiObj.Chosecolor()' style='opacity: 1;width: 45px;'>"),document.write("<div style='position: relative;margin-left: 10px;margin-top: -5px;'>"),document.write("<img src='"+w+"/image/color.png' alt='' style='width: 40px;margin-left: -21px;'>"),document.write("</div>"),document.write("<div id='colorbox' style='width: 30px;height: 5px;background-color: #cccccc;margin-left: -3px;margin-top: -5px;'>"),document.write("</div>"),document.write("<div style='width: 18px;height: 40px;float: right;margin-top: -38px;margin-left: 14px;position: absolute;'>"),document.write("<img src='"+w+"/image/daojiao.png' alt='' style='width: 15px;margin-top: 10px;z-index: 999;position: relative'>"),document.write("<input id='color-picker' type='color' value='#c0c0c0' style='display: none' onchange='colorChange(value)'>"),document.write("</div>"),document.write("</div>"),document.write("</div>"))},x.prototype.WriteLayout=function(){var w=this.uiPath;this.isShowLayout&&(document.write("<div class='bf-toolbar bf-toolbar bf-tree-toolbar' id='LayerOut'"),document.write("style='position: absolute;left: 0px; top: 213px; ' onclick='uiObj.SwitchShowLayout()'>"),document.write("<div class='bf-button'>"),document.write("<img src='"+w+"/image/layout.png' alt='' style='width: 24px;'>"),document.write("</div>"),document.write("</div>")),document.write("<div class='bf-panel bf-has-title bf-sizable' id='LayerOutInterface'"),document.write("style='left: 0; top: 0; width: 100%;display:none'>"),document.write("<div class='bf-close' onclick='uiObj.SwitchShowLayout()'><i class='fa fa-times' aria-hidden='true'></i></div>"),document.write("<div class='bf-title' id='buju' style='cursor: move; user-select: none;'>\u5E03\u5C40</div>"),document.write("<div>"),document.write("</div>"),document.write("<div id=''>"),document.write("<div>"),document.write("<table class='bf-table'>"),document.write("<tbody class='bf-group'>"),document.write("<tr class='bf-group-title bf_layerout' style='height: 30px;cursor: pointer;'>"),document.write("<td class='bf_layerout_td' style='width: 60px' >"),document.write("<div class='bf_layer_div layer_on'></div>"),document.write("</td>"),document.write("<td style='width: 238px' >"),document.write("<span style='color: white;cursor: pointer;'>LayerOut</span>"),document.write("</td>"),document.write("</tr>"),document.write("<tr class='bf-group-title bf_layerout' style='height: 30px;cursor: pointer;'>"),document.write("<td class='bf_layerout_td' style='width: 60px' >"),document.write("<div class='bf_layer_div' ></div>"),document.write("</td>"),document.write("<td style='width: 238px' >"),document.write("<span style='color: white;cursor: pointer;'>LayerOut</span>"),document.write("</td>"),document.write("</tr>"),document.write("<tr class='bf-group-title bf_layerout' style='height: 30px;cursor: pointer;'>"),document.write("<td class='bf_layerout_td' style='width: 60px' >"),document.write("<div class='bf_layer_div' ></div>"),document.write("</td>"),document.write("<td style='width: 238px' >"),document.write("<span style='color: white;cursor: pointer;'>LayerOut</span>"),document.write("</td>"),document.write("</tr>"),document.write("<tr class='bf-group-title bf_layerout' style='height: 30px;cursor: pointer;'>"),document.write("<td class='bf_layerout_td' style='width: 60px' >"),document.write("<div class='bf_layer_div'></div>"),document.write("</td>"),document.write("<td style='width: 238px' >"),document.write("<span style='color: white;cursor: pointer;'>LayerOut</span>"),document.write("</td>"),document.write("</tr>"),document.write("</tbody>"),document.write("</table>"),document.write("</div>"),document.write("</div>"),document.write("</div>")},x.prototype.WriteObjectProperty=function(){document.write("<div class='bf-panel bf-has-title bf-sizable property-panel' id='fmj2' title='\u6784\u4EF6\u8BE6\u60C5' style='left: 0px; top: 0px; width: 100%; height: 100%;display: none;'>"),document.write("<div class='bf-close' id='close2' style='top:4.0em;'><i class='fa fa-times fa-2x' aria-hidden='true'></i></div>"),document.write("<div class='bf-title' style='cursor: move; user-select: none;'>\u6784\u4EF6\u8BE6\u60C5</div>"),document.write("<div class='bf-panel-body' style='padding-top: 41px;'>"),document.write("<div class='bf-panel-container bf-scroll-bar' style='top:0;width: 100%;height: 100%;overflow-y: auto;position: relative;'>"),document.write("<table class='bf-table' id='ComponentContent'>"),document.write("</table>"),document.write("</div>"),document.write("</div>"),document.write("</div>")},x.prototype.UpDisplayLayout=function(){},x.prototype.UpDisplayLayer=function(){var w=this.uiPath,_=this.vecLayerData,b=this.vecSketchLayerData,E="";if(b!=null){var I=b;for(var O in I){E+="<div>";var N="hide.png";I[O].off==0&&(N="show.png");var A="unlock.png";E+="<table class='bf-table'>",E+="<tbody class='bf-group'>",E+="<tr class='bf-group-title'>",E+='<td><img class="layer-enable" sketch=1 id='+I[O].id+' src="'+w+"/image/"+N+'"/></td>',E+='<td><span class="layer-color" style="background-color:'+I[O].color+'"></span></td>',E+='<td><span class="layer-text">\u8349\u56FE_'+I[O].name+"</span></td>",E+='<td><img class="layer-state" src="'+w+"/image/"+A+'"/></td>',E+="</tr>",E+="</tbody>",E+="</table>",E+="</div>"}}if(_!=null)for(var O in I=_)E+="<div>",N="hide.png",I[O].off==0&&(N="show.png"),A="lock.png",E+="<table class='bf-table'>",E+="<tbody class='bf-group'>",E+="<tr class='bf-group-title'>",E+='<td><img class="layer-enable" sketch=0 id='+I[O].id+' src="'+w+"/image/"+N+'"/></td>',E+='<td><span class="layer-color" style="background-color:'+I[O].color+'"></span></td>',E+='<td><span class="layer-text">'+I[O].name+"</span></td>",E+='<td><img class="layer-state" src="'+w+"/image/"+A+'"/></td>',E+="</tr>",E+="</tbody>",E+="</table>",E+="</div>";var z=document.getElementById("Layer-Info");z!=null&&(z.innerHTML=E)},x.prototype.WriteFooter=function(){document.write("<div class='footer' style='background: rgba(0, 0, 0, 0.7);min-width: auto;position: fixed;left: 0;bottom: 0;width: 100%;'>"),document.write("<div style='line-height: 40px;font-size: 12px;color: #999;padding: 0 10px;'>"),document.write("<p style='float: right;line-height: 15px;font-size: 12px;color: #999;display: block;'>"),document.write("<a style='color: #4a90e2;text-decoration: none;outline: none;' href='http://www.mxdraw.com/' target='_blank'>\u68A6\u60F3CAD</a>\u65D7\u4E0B\u4EA7\u54C1"),document.write("</p>"),document.write("<a style='color: #4a90e2;text-decoration: none;outline: none;' href='http://www.mxdraw.com' target='_blank'>MX3D</a> \u8700ICP\u590715011727\u53F7"),document.write("</div>"),document.write("</div>")},x.prototype.CreateToolBar=function(w){if(this.isShowToolbar){var _="";for(var b in w){var E=w[b],I="uiObj.CallMxCommand";E.isMxCommand||(I="uiObj.EvalJs"),0<E.itemid.length?_+='<div class="bf-button" onclick="'+I+"('"+w[b].evalString+`')"><img class="mainimage-bf-butto" id="`+E.itemid+'" src="'+this.uiPath+"\\image\\"+E.image+'" title="'+w[b].text+'"></div>':_+='<div class="bf-button" onclick="'+I+"('"+w[b].evalString+`')"><img class="mainimage-bf-butto" src="`+this.uiPath+"\\image\\"+E.image+'" title="'+w[b].text+'"></div>'}document.getElementById("MainMenuContent").innerHTML=_}},x.prototype.InitEvent=function(){var w=document.getElementById("LayerInterface");this.CreateToolBar(this.vecToolBarItem),w.style.display="none";var _=this.vecMenuItem;this.isShowMainMenu&&function(N){var A="";(function B(q,D){var F=function(le,fe){var me=new Array;for(var ye in fe)fe[ye].parentId==le&&me.push(fe[ye]);return me}(q,D);if(0<F.length){for(var re in A+="<ul>",F)F[re].evalString.length!=0?(A+='<li><p class="li_option" ',A+=`onclick="uiObj.EvalJs('`+F[re].evalString+`')"`,A+=">"+F[re].text+"</p>"):(A+="<li><a ",A+=">"+F[re].text+"</a>"),B(F[re].id,D),A+="</li>";A+="</br>",A+="</br>",A+="</br>",A+="</ul>"}})(-1,_),N("#main-nav").append(A);var z=N("#main-nav"),G=N(".toggle"),V={maxWidth:!1,customToggle:G,levelTitles:!0},ne=null,W={};ne&&ne.remove(),G.off("click"),ne=z.clone(),N.extend(W,{side:"right"}),ne.hcMobileNav(N.extend({},V,W))}(jQuery);var b=window.location.href,E=b.length,I=b.indexOf("?"),O=b.substr(I,E).split("=")[1];$(".barspan").html(decodeURIComponent(O)),$("#close2").click(function(){$(this).parent("div").fadeOut(200)}),$(".bf-select-current").click(function(){$(this).hasClass("bf-open")?$(this).removeClass("bf-open"):$(this).addClass("bf-open")}),$(".my-option").click(function(){var N=$(this);$(".my-option").each(function(){$(this).removeClass("active")}),N.addClass("active")}),$(".bf-select-option").click(function(){$(this).parent("ul").prev("span").html($(this).text()),$(this).parent("ul").prev("span").removeClass("bf-open")}),$(document).on("click",".layer-enable",function(){var N=l.MxFun.getUiObj().getPath(),A=parseInt($(this).attr("id")),z=!0;$(this).attr("src")==N+"/image/show.png"?($(this).attr("src",N+"/image/hide.png"),z=!1):$(this).attr("src",N+"/image/show.png"),l.MxFun.showLayer(A,z)})},x.prototype.Fullscreen=function(){var w=document.documentElement;w.requestFullscreen?w.requestFullscreen():w.mozRequestFullScreen?w.mozRequestFullScreen():w.webkitRequestFullScreen&&w.webkitRequestFullScreen(),document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen(),this.IsFullStatus()?($("img[title='\u53D6\u6D88\u5168\u5C4F']").attr("src",this.uiPath+"/image\\fullscreen1.gif"),$("img[title='\u53D6\u6D88\u5168\u5C4F']").attr("title","\u5168\u5C4F")):($("img[title='\u5168\u5C4F']").attr("src",this.uiPath+"/image\\escscreen1.gif"),$("img[title='\u5168\u5C4F']").attr("title","\u53D6\u6D88\u5168\u5C4F"))},x.prototype.IsFullStatus=function(){return(document.fullscreenEnabled||document.mozFullscreenElement||document.webkitFullscreenElement)!=null},x);function x(){return s!==null&&s.apply(this,arguments)||this}r.MxUiObjectMobile=v},{"../MxFun":27,"./MxUiObject":60}],62:[function(t,e,r){var n,o=this&&this.__extends||(n=function(w,_){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,E){b.__proto__=E}||function(b,E){for(var I in E)Object.prototype.hasOwnProperty.call(E,I)&&(b[I]=E[I])})(w,_)},function(w,_){function b(){this.constructor=w}n(w,_),w.prototype=_===null?Object.create(_):(b.prototype=_.prototype,new b)});Object.defineProperty(r,"__esModule",{value:!0}),r.MxUiObjectPC=void 0;var s,c=t("./MxUiObject"),l=t("../MxFun"),v=(o(x,s=c.MxUiObject),x.prototype.onCreate=function(){this.isShowTitle&&this.WriteTitle(),this.WriteStructTree(),this.isEnableLoading&&this.WriteLoading(),this.WriteLayer(),this.WriteTakeColor(),this.WriteLayout(),this.isEnableObjectProperty&&this.WriteObjectProperty(),this.isShowToolbar&&this.WriteToolbar()},x.prototype.onInit=function(){this.InitEvent()},x.prototype.WriteTitle=function(){var w=this.uiPath;document.write("<div id='all'>"),document.write(" <div class='bar1'>"),document.write(" <img src="+w+"/image/mxcad.png style='height: 50%;position: absolute;top: 12px;left: 10px;'>"),document.write(" <span class='barspan' style='position: absolute;left: 45px;'>"),document.write(" </span>"),document.write(" <div id='container'>"),this.isShowMainMenu&&(document.write(" <header>"),document.write(" <div class='wrapper cf'style='z-index: 999'>"),document.write(" <nav id='main-nav' >"),document.write(" </nav>"),document.write(" <a class='toggle'>"),document.write(" <span></span>"),document.write(" </a>"),document.write(" </div>"),document.write(" </header>")),document.write(" </div>"),document.write(" </div>")},x.prototype.WriteStructTree=function(){this.isShowStructTree&&(document.write("<div class='bf-toolbar bf-toolbar bf-tree-toolbar' id='ModelTreeThumbnail' title='\u76EE\u5F55\u6811'"),document.write("style='position: absolute;left: 10px; top: 97px; ' onclick='uiObj.SwitchShowStructTree()'>"),document.write("<div class='bf-button mxbim-bf-tree' title='\u76EE\u5F55\u6811'><i class='fa fa-sitemap' aria-hidden='true'></i></div>"),document.write("</div>")),document.write("<div class='bf-panel bf-has-title bf-sizable' id='ModelTreeInterface' title='\u76EE\u5F55\u6811'"),document.write("style='left:0px; top: 0px; width: 300px; height: 416px;display: none'>"),document.write(" <div class='bf-close' onclick='uiObj.SwitchShowStructTree()'><i class='fa fa-times' aria-hidden='true'></i></div>"),document.write("<div class='bf-title' style='cursor: move; user-select: none;' id='mulushu'>\u76EE\u5F55\u6811</div>"),document.write("<div class='bf-panel-body' style='padding-top: 36px;'>"),document.write("<div class='bf-panel-header'>"),document.write("<div class='bf-tree-header' style='margin-top: -36px;'>"),document.write("<div class='bf-select bf-select-tree'>"),document.write("<span class='bf-select-current'>\u6784\u4EF6</span>"),document.write("<ul class='bf-select-list'>"),document.write("<li class='bf-select-option' id='type'>\u6784\u4EF6</li>"),document.write("<li class='bf-select-option' id='file'>\u6587\u4EF6</li>"),document.write("<li class='bf-select-option' id='area'>\u7A7A\u95F4</li>"),document.write("<li class='bf-select-option' id='drawing'>\u56FE\u7EB8</li>"),document.write("</ul>"),document.write("</div>"),document.write("</div>"),document.write("</div>"),document.write("<div id='DirectoryContent' class='bf-panel-container TreeInfo'>"),document.write("</div>"),document.write("</div>"),document.write("</div>")},x.prototype.WriteLoading=function(){var w=this.uiPath;document.write("<div class='Prompt'>"),document.write("<div style='text-align: center;'>"),document.write("<img src='"+w+"/image/loading.gif' alt='' style='width:30px;height:30px;float: left'>"),document.write("<p style='color:black;vertical-align: middle;float: left; margin-top: 5px;margin-left: 5px;'>\u52A0\u8F7D\u4E2D.....</p>"),document.write("</div>"),document.write("<span style='display: none'>"+this.sLanguageTable.openComplete+"</span>"),document.write("</div>")},x.prototype.WriteLayer=function(){var w=this.uiPath;this.isShowLayer&&(document.write("<div class='bf-toolbar bf-toolbar bf-tree-toolbar' id='LayerThumbnail' title='"+this.sLanguageTable.layer+"'"),document.write("style='position: absolute;left: 10px; top: 45px; ' onclick='uiObj.SwitchShowLayer()'>"),document.write("<div class='bf-button'>"),document.write("<img src='"+w+"/image/layer.png.gif' alt='' style='width: 32px;'>"),document.write("</div>"),document.write("</div>")),document.write("<div class='bf-panel bf-has-title bf-sizable' id='LayerInterface'"),document.write("style='left: 10px; top: 50px; width: 300px; height: 416px;display: none'>"),document.write("<div class='bf-close' onclick='uiObj.SwitchShowLayer(false)'><i class='fa fa-times' aria-hidden='true'></i></div>"),document.write("<div class='bf-title' id='tuceng' style='cursor: move; user-select: none;'>"+this.sLanguageTable.layer+"</div>"),document.write("<div>"),document.write("<div class='layer-title' style='width: 50px;font-size: 14px'>"+this.sLanguageTable.visible+"</div>"),document.write("<div class='layer-title' style='width: 50px;font-size: 14px'>"+this.sLanguageTable.color+"</div>"),document.write("<div class='layer-title' style='width: 148px;font-size: 14px'>"+this.sLanguageTable.name+"</div>"),document.write("<div class='layer-title' style='width: 50px;font-size: 14px'>"+this.sLanguageTable.status+"</div>"),document.write("</div>"),document.write("<div id='Layer-Info' style='margin-top: 25px;height: 349px;position: absolute;overflow-y: auto;'>"),document.write("</div>"),document.write("</div>")},x.prototype.WriteTakeColor=function(){var w=this.uiPath;this.isShowTakeColor&&(document.write("<div class='bf-toolbar bf-toolbar bf-tree-toolbar' id='TakeColor' title='\u9009\u62E9\u989C\u8272'"),document.write("style='position: absolute;left: 10px; top: 149px; '>"),document.write("<div class='bf-button' onclick='uiObj.Chosecolor()' style='opacity: 1;'>"),document.write("<img src='"+w+"/image/color.png' alt='' style='width: 40px;margin-left: -10px;'>"),document.write("<div id='colorbox' style='width: 35px;height: 5px;background-color: #cccccc;margin-left: -3px'>"),document.write("</div>"),document.write("<div style='width: 18px;height: 40px;float: right;margin-top: -42px;margin-left: 14px;'>"),document.write("<img src='"+w+"/image/daojiao.png' alt='' style='width: 15px;margin-top: 10px;z-index: 999;position: relative'>"),document.write("<input id='color-picker' type='color' value='#c0c0c0' style='display: none' onchange='uiObj.ColorChange(value)'>"),document.write("</div>"),document.write("</div>"),document.write("</div>"))},x.prototype.WriteLayout=function(){var w=this.uiPath;this.isShowLayout&&(document.write("<div class='bf-toolbar bf-toolbar bf-tree-toolbar' id='LayerOut' title='"+this.sLanguageTable.layout+"'"),document.write("style='position: absolute;left: 10px; top: 97px; ' onclick='uiObj.SwitchShowLayout()'>"),document.write("<div class='bf-button'>"),document.write("<img src='"+w+"/image/layout.png' alt='' style='width: 32px;'>"),document.write("</div>"),document.write("</div>")),document.write("<div class='bf-panel bf-has-title bf-sizable' id='LayerOutInterface'"),document.write("style='left: 10px; top: 50px; width: 300px;display:none'>"),document.write("<div class='bf-close' onclick='uiObj.SwitchShowLayout()'><i class='fa fa-times' aria-hidden='true'></i></div>"),document.write("<div class='bf-title' id='buju' style='cursor: move; user-select: none;'>"+this.sLanguageTable.layout+"</div>"),document.write("<div>"),document.write("</div>"),document.write("<div id='layout-Info'>"),document.write("</div>"),document.write("</div>")},x.prototype.WriteObjectProperty=function(){document.write("<div class='bf-panel bf-has-title bf-sizable' id='StrcutInfoBase' title='\u5C5E\u6027'"),document.write("style='right: 10px; top: 45px; width: 300px; height: 416px;display: none'>"),document.write("<div class='bf-close' id='close2'><i class='fa fa-times' aria-hidden='true'></i></div>"),document.write("<div class='bf-title' style='cursor: move; user-select: none;'>\u5C5E\u6027</div>"),document.write("<div id='ComponentContent' class='bf-panel-body StructInfo'></div>"),document.write("<div class='bf-resize'></div>"),document.write("</div>")},x.prototype.WriteToolbar=function(){document.write("<div id='MainMenuContent' class='bf-toolbar bf-toolbar-bottom' style='position: fixed'></div>")},x.prototype.CreateToolBar=function(w){if(this.isShowToolbar){var _="";for(var b in w){var E=w[b],I="uiObj.CallMxCommand";E.isMxCommand||(I="uiObj.EvalJs"),0<E.itemid.length?_+='<div class="bf-button" onclick="'+I+"('"+w[b].evalString+`')"><img class="mainimage-bf-butto" id="`+E.itemid+'" src="'+this.uiPath+"\\image\\"+E.image+'" title="'+w[b].text+'"></div>':_+='<div class="bf-button" onclick="'+I+"('"+w[b].evalString+`')"><img class="mainimage-bf-butto" src="`+this.uiPath+"\\image\\"+E.image+'" title="'+w[b].text+'"></div>'}document.getElementById("MainMenuContent").innerHTML=_}},x.prototype.UpDisplayLayer=function(){var w=this.uiPath,_=this.vecLayerData,b=this.vecSketchLayerData,E="";if(b!=null){var I=b;for(var O in I){E+="<div>";var N="hide.png";I[O].off==0&&(N="show.png");var A="unlock.png";E+="<table class='bf-table'>",E+="<tbody class='bf-group'>",E+="<tr class='bf-group-title'>",E+='<td><img class="layer-enable" sketch=1 id='+I[O].id+' src="'+w+"/image/"+N+'"/></td>',E+='<td><span class="layer-color" style="background-color:'+I[O].color+'"></span></td>',E+='<td><span class="layer-text">\u8349\u56FE_'+I[O].name+"</span></td>",E+='<td><img class="layer-state" src="'+w+"/image/"+A+'"/></td>',E+="</tr>",E+="</tbody>",E+="</table>",E+="</div>"}}if(_!=null)for(var O in I=_)E+="<div>",N="hide.png",I[O].off==0&&(N="show.png"),A="lock.png",E+="<table class='bf-table'>",E+="<tbody class='bf-group'>",E+="<tr class='bf-group-title'>",E+='<td><img class="layer-enable" sketch=0 id='+I[O].id+' src="'+w+"/image/"+N+'"/></td>',E+='<td><span class="layer-color" style="background-color:'+I[O].color+'"></span></td>',E+='<td><span class="layer-text">'+I[O].name+"</span></td>",E+='<td><img class="layer-state" src="'+w+"/image/"+A+'"/></td>',E+="</tr>",E+="</tbody>",E+="</table>",E+="</div>";var z=document.getElementById("Layer-Info");z!=null&&(z.innerHTML=E)},x.prototype.UpDisplayLayout=function(){var w=this.vecLayoutData,_="";if(_+="<div>",_+="<table class='bf-table'>",_+="<tbody class='bf-group'>",_+="<tr class='bf-group-title bf_layerout' style='height: 30px;cursor: pointer;'>",_+="<td class='bf_layerout_td' style='width: 60px' >",_+="<div class='bf_layer_div layer_on'></div>",_+="</td>",_+="<td style='width: 238px' >",_+="<span class='layout-name' name='Model' style='color: white;cursor: pointer;'>Model</span>",_+="</td>",_+="</tr>",w!=null){var b=w;for(var E in b)_+="<tr class='bf-group-title bf_layerout' style='height: 30px;cursor: pointer;'>",_+="<td class='bf_layerout_td' style='width: 60px' >",_+="<div class='bf_layer_div layer_on'></div>",_+="</td>",_+="<td style='width: 238px' >",_+="<span class='layout-name' name='"+b[E]+"' style='color: white;cursor: pointer;'>"+b[E]+"</span>",_+="</td>",_+="</tr>"}_+="</tbody>",_+="</table>",_+="</div>";var I=document.getElementById("layout-Info");I!=null&&(I.innerHTML=_)},x.prototype.InitEvent=function(){var w=document.getElementById("ModelTreeInterface"),_=document.getElementById("LayerInterface"),b=document.getElementById("LayerOutInterface"),E=document.getElementById("tuceng"),I=document.getElementById("mulushu"),O=document.getElementById("buju"),N=0,A=0,z=0,G=0,V=!1;I.onmousedown=function(re){N=re.clientX,A=re.clientY,z=w.offsetLeft,G=w.offsetTop,V=!0,w.style.cursor="move"},E.onmousedown=function(re){N=re.clientX,A=re.clientY,z=_.offsetLeft,G=_.offsetTop,V=!0,_.style.cursor="move"},O.onmousedown=function(re){N=re.clientX,A=re.clientY,z=b.offsetLeft,G=b.offsetTop,V=!0,b.style.cursor="move"},window.onmousemove=function(re){if(V!=0){var le=re.clientX,fe=re.clientY,me=le-(N-z),ye=fe-(A-G);w.style.left=me+"px",w.style.top=ye+"px",_.style.left=me+"px",_.style.top=ye+"px",b.style.left=me+"px",b.style.top=ye+"px"}},I.onmouseup=function(){V=!1,w.style.cursor="default"},E.onmouseup=function(){V=!1,_.style.cursor="default"},O.onmouseup=function(){V=!1,b.style.cursor="default"},$("#close2").click(function(){$(this).parent("div").fadeOut(200)}),$("#menu4").click(function(){$("#StrcutInfoBase").hasClass("hide")?($("#StrcutInfoBase").fadeIn(200),$("#StrcutInfoBase").removeClass("hide")):($("#StrcutInfoBase").fadeOut(200),$("#StrcutInfoBase").addClass("hide"))}),$(".bf-select-current").click(function(){$(this).hasClass("bf-open")?$(this).removeClass("bf-open"):$(this).addClass("bf-open")}),$(".bf-select-option").click(function(){$(this).parent("ul").prev("span").html($(this).text()),$(this).parent("ul").prev("span").removeClass("bf-open")});var ne=$("#StrcutInfoBase");ne.bind("mousedown",function(re){var le=$(this)[0].offsetLeft,fe=$(this)[0].offsetTop,me=re.pageX,ye=re.pageY;$(document).bind("mousemove",function(Te){var ke=Te.pageX-me,Le=Te.pageY-ye,et=le+ke+"px",it=fe+Le+"px";ne.css({top:it,left:et})})}),$(document).bind("mouseup",function(){$(this).unbind("mousemove")}),this.CreateToolBar(this.vecToolBarItem);var W=this.vecMenuItem;if(this.isShowMainMenu&&function(re){var le="";(function Le(et,it){var Ue=function(De,Be){var Ve=new Array;for(var He in Be)Be[He].parentId==De&&Ve.push(Be[He]);return Ve}(et,it);if(0<Ue.length){for(var ht in le+="<ul>",Ue)Ue[ht].evalString.length!=0?(le+='<li><p class="li_option" ',le+=`onclick="uiObj.EvalJs('`+Ue[ht].evalString+`')"`,le+=">"+Ue[ht].text+"</p>"):(le+="<li><a ",le+=">"+Ue[ht].text+"</a>"),Le(Ue[ht].id,it),le+="</li>";le+="</br>",le+="</br>",le+="</br>",le+="</ul>"}})(-1,W),re("#main-nav").append(le);var fe=re("#main-nav"),me=re(".toggle"),ye={maxWidth:!1,customToggle:me,levelTitles:!0},Te=null,ke={};Te&&Te.remove(),me.off("click"),Te=fe.clone(),re.extend(ke,{side:"right"}),Te.hcMobileNav(re.extend({},ye,ke))}(jQuery),$(".li_option").click(function(){var re=$(this);$(".li_option").each(function(){$(this).removeClass("active")}),re.addClass("active")}),this.sTitle==""){var B=window.location.href,q=B.length,D=B.indexOf("?"),F=B.substr(D,q).split("=")[1];F!=null&&(this.sTitle=F)}$(".barspan").html(decodeURIComponent(this.sTitle)),$(document).on("click",".layer-enable",function(){var re=l.MxFun.getUiObj().getPath(),le=parseInt($(this).attr("id")),fe=(parseInt($(this).attr("sketch")),!0);$(this).attr("src")==re+"/image/show.png"?($(this).attr("src",re+"/image/hide.png"),fe=!1):$(this).attr("src",re+"/image/show.png"),l.MxFun.showLayer(le,fe)}),$(document).on("click",".layout-name",function(){var re=$(this).attr("name");re=="Model"&&(re=""),l.MxFun.getCurrentDraw().gotoLayout(re)})},x.prototype.WriteFooter=function(){document.write("<div class='footer' style='background: rgba(0, 0, 0, 0.7);position: fixed;left: 0;bottom: 0;width: 100%;'>"),document.write(" <div style='line-height: 40px;font-size: 12px;color: #999;padding: 0 10px;'>"),document.write(" <p style='float: right;line-height: 15px;font-size: 12px;color: #999;display: block;'>"),document.write(" <a style='color: #4a90e2;text-decoration: none;outline: none;' href='http://www.mxdraw.com/' target='_blank'>MxDraw </a>\u65D7\u4E0B\u4EA7\u54C1"),document.write(" </p>"),document.write(" <a style='color: #4a90e2;text-decoration: none;outline: none;' href='http://www.mxdraw.com' target='_blank'>MX3D </a> \u8700ICP\u590715011727\u53F7"),document.write(" </div>"),document.write(" </div>")},x.prototype.ShowLoading=function(){this.isEnableLoading&&($(".Prompt").css("background","rgba(0, 0, 0, 0)"),$(".Prompt").fadeIn(100),$(".Prompt span").css("display","none"))},x.prototype.HideLoading=function(){this.isEnableLoading&&($(".Prompt").css("background","rgba(0, 0, 0, 0.8)"),$(".Prompt div").fadeOut(100),$(".Prompt span").fadeIn(200),setTimeout(function(){$(".Prompt").fadeOut(1e3)},1e3))},x.prototype.ShowObjectProperty=function(w){if(w.length!=0){var _;_=typeof w=="string"?JSON.parse(w):w;var b="";for(var E in _){var I=_[E];for(var O in b+="<table class='bf-table'>",b+="<tbody class='bf-group'>",b+="<tr class='bf-group-title'>",b+="<td colspan='2'><i class='bf-icon'></i>"+I.name+"</td>",b+="</tr>",I.datas){var N=I.datas[O];b+="<tr class='bf-group-content'>",b+="<td class='bf-key'>"+N.name+"</td>",b+="<td class='bf-value'>"+N.value+"</td>",b+="</tr>"}b+="</tbody>",b+="</table>"}document.getElementById("ComponentContent").innerHTML=b,$(".bf-group").click(function(){$(this).hasClass("bf-collapse")?$(this).removeClass("bf-collapse"):$(this).addClass("bf-collapse")}),$("#StrcutInfoBase").fadeIn(200),$("#StrcutInfoBase").removeClass("hide")}},x.prototype.HideObjectProp=function(){$("#StrcutInfoBase").hasClass("hide")||($("#StrcutInfoBase").fadeOut(200),$("#StrcutInfoBase").addClass("hide"))},x.prototype.SwitchShowLayer=function(){var w=document.getElementById("ModelTreeInterface"),_=document.getElementById("ModelTreeThumbnail"),b=document.getElementById("LayerThumbnail"),E=document.getElementById("LayerInterface"),I=document.getElementById("LayerOut"),O=document.getElementById("LayerOutInterface");w.style.display="none",(O.style.display="none")==E.style.display?(b.style.display="block",E.style.display="block",E.style.left="80px",E.style.top="50px",_!=null&&(_.style.display="block"),I!=null&&(I.style.display="block"),w.style.display="none",O.style.display="none"):(E.style.display="none",_!=null&&(_.style.display="block"),b.style.display="block",I!=null&&(I.style.display="block"))},x.prototype.SwitchShowStructTree=function(){var w=document.getElementById("ModelTreeInterface"),_=document.getElementById("ModelTreeThumbnail"),b=document.getElementById("LayerThumbnail"),E=document.getElementById("LayerInterface"),I=document.getElementById("LayerOut"),O=document.getElementById("LayerOutInterface");E.style.display="none",(O.style.display="none")==w.style.display?(_!=null&&(_.style.display="block"),w.style.display="block",w.style.left="80px",w.style.top="50px",b.style.display="block",I!=null&&(I.style.display="block"),E.style.display="none",O.style.display="none"):(w.style.display="none",_!=null&&(_.style.display="block"),b.style.display="block",I!=null&&(I.style.display="block"))},x.prototype.Chosecolor=function(){document.getElementById("color-picker").click()},x.prototype.ColorChange=function(w){document.getElementById("colorbox").style.backgroundColor=w,l.MxFun.setCurrentColor(w)},x.prototype.SwitchShowLayout=function(){var w=document.getElementById("ModelTreeInterface"),_=document.getElementById("ModelTreeThumbnail"),b=document.getElementById("LayerThumbnail"),E=document.getElementById("LayerInterface"),I=document.getElementById("LayerOut"),O=document.getElementById("LayerOutInterface");w.style.display="none",E.style.display="none",O&&O.style.display=="none"?(I&&(I.style.display="block"),O.style.display="block",O.style.left="80px",O.style.top="120px",_!=null&&(_.style.display="block"),b&&(b.style.display="block"),w.style.display="none",E.style.display="none"):(O&&(O.style.display="none"),_!=null&&(_.style.display="block"),b&&(b.style.display="block"),I&&(I.style.display="block"))},x.prototype.Fullscreen=function(){var w=document.documentElement;w.requestFullscreen?w.requestFullscreen():w.mozRequestFullScreen?w.mozRequestFullScreen():w.webkitRequestFullScreen&&w.webkitRequestFullScreen(),document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen(),this.IsFullStatus()?($("img[title='\u53D6\u6D88\u5168\u5C4F']").attr("src",this.uiPath+"/image\\fullscreen1.gif"),$("img[title='\u53D6\u6D88\u5168\u5C4F']").attr("title","\u5168\u5C4F")):($("img[title='\u5168\u5C4F']").attr("src",this.uiPath+"/image\\escscreen1.gif"),$("img[title='\u5168\u5C4F']").attr("title","\u53D6\u6D88\u5168\u5C4F"))},x.prototype.IsFullStatus=function(){return(document.fullscreenEnabled||document.mozFullscreenElement||document.webkitFullscreenElement)!=null},x);function x(){return s!==null&&s.apply(this,arguments)||this}r.MxUiObjectPC=v},{"../MxFun":27,"./MxUiObject":60}],63:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MxUiVue=void 0;var n,o,s,c,l=t("three"),v=t("../MxFun"),x=t("../Operate/MxJigCmdManager"),w=t("../MxTools"),_=t("../Operate/MxCmdRunManager");function b(G){if(G==32||G==13)if(x.MxJigCmdManager.isRunning())x.MxJigCmdManager.OnEnter(G);else{var V=N(),ne="";ne=V.length==0?_.MxCmdRunManager.GetPrvCmd():V,A(""),ne=w.MxTools.stringTrimLeftSpace(ne),v.MxFun.sendStringToExecute(ne)}else if(G==38)x.MxJigCmdManager.isRunning()||(_.MxCmdRunManager.MoveUpKey(),(W=_.MxCmdRunManager.GetListCommad()).length!=0&&(A(W),O()));else if(G==40){var W;x.MxJigCmdManager.isRunning()||(_.MxCmdRunManager.MoveDownKey(),(W=_.MxCmdRunManager.GetListCommad()).length!=0&&(A(W),O()))}}function E(G,V){V===void 0&&(V=!0);var ne=G.length;if(!(ne<1)){for(var W=s.getCmdLine(),B=W.getCmdTip(),q=W.getCmdText(),D=G.indexOf(`
  3245. `),F=0,re=!0;D!=-1&&(re?(W.addCmdDisplay(`
  3246. `+B+q+G.substring(F,D-F)),q=B="",re=!1):W.addCmdDisplay(`
  3247. `+G.substring(F,D-F)),(F=D+1)<ne);)D=G.indexOf(`
  3248. `,F);if(re){var le=G.substring(F,ne-F),fe=le.indexOf("\r"),me=le.length;B=fe==-1?B+q+le:fe+1<me?le.substring(fe+1,me-fe-1):""}else F<ne&&(B=G.substring(F,ne));q="",V&&(B+=" "),W.setCmdTip(B),W.setCmdText(q),W.upDisplay()}}function I(G){for(var V=[],ne=1;ne<arguments.length;ne++)V[ne-1]=arguments[ne];if(s!=null){for(var W=arguments,B=W[0],q=0;q<W.length-1;q++){var D=new RegExp("\\{"+q+"\\}","gm");B=B.replace(D,W[q+1])}E(B,!0)}}function O(){s!=null&&s.getCmdLine().upDisplay()}function N(){if(s==null)return"";var G=s.getCmdLine();return w.MxTools.stringTrimLeftRightSpace(G.getCmdText())}function A(G){if(s!=null)return s.getCmdLine().setCmdText(G)}function z(G){var V=x.MxJigCmdManager.getCurCmd();V!=null&&(V.getDynImput().onKeyDonw(G)||b(G))}n=r.MxUiVue||(r.MxUiVue={}),s=void 0,c=new l.Vector3,n.SetLasetPoint=function(G){c=G},n.GetLasetPoint=function(){return c},(o=n.CursorType||(n.CursorType={}))[o.kNormal=0]="kNormal",o[o.kRect=1]="kRect",o[o.kCross=2]="kCross",o[o.kPan=3]="kPan",n.isNull=function(){return s==null},n.init=function(G){(s=G).mountKeydownEvent(b),s.getDynamicInput().mountKeydownEvent(z)},n.setTipCoord=function(G){s!=null&&s.setTipCoord(G)},n.setCursorType=function(G){s!=null&&s.setCursorType(G)},n.AcutPrintfNoFormat=E,n.acutPrintf=I,n.cmdLineUpDisplay=O,n.getCmdText=N,n.setCmdText=A,n.getCmdDisplay=function(){return s==null?"":s.getCmdLine().getCmdDisplay()},n.setCmdDisplay=function(G){if(s!=null)return s.getCmdLine().setCmdDisplay(G)},n.getCmdTip=function(){return s==null?"":s.getCmdLine().getCmdTip()},n.setCmdTip=function(G){if(s!=null)return s.getCmdLine().setCmdTip(G)},n.restoreCmdStatus=function(){if(s!=null){var G=s.getCmdLine();G.getCmdTip()==" "&&G.getCmdText().length==0?(G.setCmdTip(""),I("{0}:","\u547D\u4EE4")):I(`
  3249. {0}:`,"\u547D\u4EE4")}},n.DynamicInput_upDisplay=function(){s!=null&&n.OnMxEvent({name:"dynInputUpDisplay"})},n.DynamicInput_setType=function(G){s!=null&&s.getDynamicInput().setType(G)},n.DynamicInput_getType=function(){return s==null?x.MxJigCmdManager.DynamicInputType.kNoInput:s.getDynamicInput().getType()},n.DynamicInput_setPos=function(G){s!=null&&s.getDynamicInput().setPos([G.x,G.y])},n.DynamicInput_setTip=function(G){s!=null&&s.getDynamicInput().setTip(G)},n.DynamicInput_setValue1=function(G){s!=null&&s.getDynamicInput().setValue1(G)},n.DynamicInput_getValue1=function(){return s==null?"":s.getDynamicInput().getValue1()},n.DynamicInput_setValue1Pos=function(G){s!=null&&s.getDynamicInput().setValue1Pos([G.x,G.y])},n.DynamicInput_setValue2=function(G){s!=null&&s.getDynamicInput().setValue2(G)},n.DynamicInput_getValue2=function(){return s==null?"":s.getDynamicInput().getValue2()},n.DynamicInput_getFocusValue=function(){return s==null?"":s.getDynamicInput().getFocusValue()},n.DynamicInput_getFocusIndex=function(){return s==null?0:s.getDynamicInput().getFocusIndex()},n.DynamicInput_setValue2Pos=function(G){s!=null&&s.getDynamicInput().setValue2Pos([G.x,G.y])},n.DynamicInput_setShow=function(G){s!=null&&s.getDynamicInput().setShow(G)},n.DynamicInput_isShow=function(){return s!=null&&s.getDynamicInput().isShow()},n.OnMxEvent=function(G){if(s==null)return!1;s.OnMxEvent(G)}},{"../MxFun":27,"../MxTools":37,"../Operate/MxCmdRunManager":47,"../Operate/MxJigCmdManager":53,three:19}],64:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ExternalReferenceManager=r.ExternalReferenceDatabase=r.Blocks=r.Block=r.Layer=r.MxNewDisplayMemorySection=r.MxNewDisplayMemorySectionType=r.TextureData=r.BlockInstance=r.BlockRef=r.ClipPlans=r.ClipPlan=void 0;var n=t("three"),o=t("../MxShader"),s=t("./MxBrowseLayerData"),c=t("../MxManager"),l=t("../MxNetData"),v=t("../MxStencilObject"),x=t("../MxFun"),w=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0};r.ClipPlan=w;var _=function(){this.ver=4,this.id=1,this.clipPlanArray=new Array,this.clipPoints=[],this.instansClipePoints=[]};r.ClipPlans=_;var b=function(){this.ver=4,this.mat=new n.Matrix4,this.blkRecId=-1,this.blkOwnerId=0,this.layerId=-1,this.color=16777215,this.clipPlans=new _};r.BlockRef=b;var E=function(){this.mat=new n.Matrix4,this.color=new Array,this.topLayerColor=new Array,this.clipPlans=new _,this.clipMat=new n.Matrix4};r.BlockInstance=E;var I,O,N=function(){};r.TextureData=N,(O=I=r.MxNewDisplayMemorySectionType||(r.MxNewDisplayMemorySectionType={}))[O.kLinesType=1]="kLinesType",O[O.kTriangleType=2]="kTriangleType",O[O.kLinesType_Float=3]="kLinesType_Float",O[O.kTriangleType_Float=4]="kTriangleType_Float",O[O.kPointType_Float=5]="kPointType_Float",O[O.kPointType=6]="kPointType",r.MxNewDisplayMemorySection=function(){this.id=0,this.type=I.kLinesType,this.blockId=0,this.layerId=0,this.color=0,this.points=[]};var A=(z.prototype.Show=function(F){for(var re=0,le=this._entitys.length;re<le;re++)this._entitys[re].visible=F},z.prototype.updataClipMaterial=function(F){for(var re=this._material_clip.length,le=.5*F.width,fe=.5*F.height,me=0;me<re;me++)this._material_clip[me].uniforms.vieww.value=le,this._material_clip[me].uniforms.viewh.value=fe},z.prototype.createThreejsObjForMesh_Clip=function(F,re,le){F.size!=0&&F.forEach(function(fe){var me=fe;if(me.length!=0){var ye=[],Te=[],ke=me[0].clipPlans;ke.ver<=3&&(ye.push(ke.clipPlanArray[0].x1,ke.clipPlanArray[0].y1),Te.push(ke.clipPlanArray[0].x2,ke.clipPlanArray[0].y2));for(var Le=[],et=[],it=[],Ue=[],ht=[],De=[],Be=[],Ve=0;Ve<me.length;Ve++){var He=me[Ve];Le=Le.concat(He.mat.elements.slice(0,4)),et=et.concat(He.mat.elements.slice(4,8)),it=it.concat(He.mat.elements.slice(8,12)),Ue=Ue.concat(He.mat.elements.slice(12,16)),ht.push(0),De=De.concat(me[Ve].color)}if(0<this._geometryMeshPositionsByBlock.length)for(Ve=0;Ve<me.length;Ve++)De=De.concat(me[Ve].color);if(0<this._geometryMeshPositionsByBlock_ZeroLayer.length)for(Ve=0;Ve<me.length;Ve++)Be=Be.concat(me[Ve].topLayerColor);var gt,dn=.5*le.width,Ze=.5*le.height;ke.ver<=3?(gt=new n.RawShaderMaterial({uniforms:{clippt1:{value:ye},clippt2:{value:Te},vieww:{value:dn},viewh:{value:Ze}},vertexShader:o.MxShader.VSHADER_COLOR_POINT_CLIP,fragmentShader:o.MxShader.FSHADER_COLOR_POINT_CLIP,linewidth:1,transparent:!0,side:n.DoubleSide}),this._material_clip.push(gt)):gt=new n.RawShaderMaterial({vertexShader:o.MxShader.VSHADER_COLOR_POINT,fragmentShader:o.MxShader.FSHADER_COLOR_POINT,linewidth:1,transparent:!0,side:n.DoubleSide});for(var at=0;at<this._geometryMeshPostion.length;at++)(Ne=new n.InstancedBufferGeometry).maxInstancedCount=me.length,Ne.setAttribute("position",new n.Float32BufferAttribute(this._geometryMeshPostion[at],2)),Ne.setAttribute("color",new n.Float32BufferAttribute(this._geometryMeshColor[at],3)),Ne.setAttribute("tran1",new n.InstancedBufferAttribute(new Float32Array(Le),4)),Ne.setAttribute("tran2",new n.InstancedBufferAttribute(new Float32Array(et),4)),Ne.setAttribute("tran3",new n.InstancedBufferAttribute(new Float32Array(it),4)),Ne.setAttribute("tran4",new n.InstancedBufferAttribute(new Float32Array(Ue),4)),Ne.setAttribute("ishide",new n.InstancedBufferAttribute(new Float32Array(ht),1)),(ze=new n.Mesh(Ne,gt)).frustumCulled=!1,ze.renderOrder=c.MxData.iCADMeshRenderOrder,re.add(ze),this._entitys.push(ze),4<=ke.ver&&0<ke.instansClipePoints.length&&new v.MxStencilObject().associateObject(ze,ke.instansClipePoints);for(at=0;at<this._geometryMeshPositionsByBlock.length;at++)(Ne=new n.InstancedBufferGeometry).maxInstancedCount=me.length,Ne.setAttribute("position",new n.Float32BufferAttribute(this._geometryMeshPositionsByBlock[at],2)),Ne.setAttribute("color",new n.InstancedBufferAttribute(new Float32Array(De),3)),Ne.setAttribute("tran1",new n.InstancedBufferAttribute(new Float32Array(Le),4)),Ne.setAttribute("tran2",new n.InstancedBufferAttribute(new Float32Array(et),4)),Ne.setAttribute("tran3",new n.InstancedBufferAttribute(new Float32Array(it),4)),Ne.setAttribute("tran4",new n.InstancedBufferAttribute(new Float32Array(Ue),4)),Ne.setAttribute("ishide",new n.InstancedBufferAttribute(new Float32Array(ht),1)),(ze=new n.Mesh(Ne,gt)).frustumCulled=!1,ze.renderOrder=c.MxData.iCADMeshRenderOrder,re.add(ze),this._entitys.push(ze),4<=ke.ver&&0<ke.instansClipePoints.length&&new v.MxStencilObject().associateObject(ze,ke.instansClipePoints);for(at=0;at<this._geometryMeshPositionsByBlock_ZeroLayer.length;at++)(Ne=new n.InstancedBufferGeometry).maxInstancedCount=me.length,Ne.setAttribute("position",new n.Float32BufferAttribute(this._geometryMeshPositionsByBlock_ZeroLayer[at],2)),Ne.setAttribute("color",new n.InstancedBufferAttribute(new Float32Array(Be),3)),Ne.setAttribute("tran1",new n.InstancedBufferAttribute(new Float32Array(Le),4)),Ne.setAttribute("tran2",new n.InstancedBufferAttribute(new Float32Array(et),4)),Ne.setAttribute("tran3",new n.InstancedBufferAttribute(new Float32Array(it),4)),Ne.setAttribute("tran4",new n.InstancedBufferAttribute(new Float32Array(Ue),4)),Ne.setAttribute("ishide",new n.InstancedBufferAttribute(new Float32Array(ht),1)),(ze=new n.Mesh(Ne,gt)).frustumCulled=!1,ze.renderOrder=c.MxData.iCADMeshRenderOrder,re.add(ze),this._entitys.push(ze),4<=ke.ver&&0<ke.instansClipePoints.length&&new v.MxStencilObject().associateObject(ze,ke.instansClipePoints);var Lt=new n.RawShaderMaterial({uniforms:{color:{value:this._color},clippt1:{value:ye},clippt2:{value:Te},vieww:{value:dn},viewh:{value:Ze}},vertexShader:o.MxShader.VSHADER_COLOR_POINT_BYLAYER_CLIP,fragmentShader:o.MxShader.FSHADER_COLOR_POINT_CLIP,linewidth:1,transparent:!0,side:n.DoubleSide});for(this._material_clip.push(Lt),at=0;at<this._geometryMeshPositionsByLayer.length;at++){var Ne,ze;(Ne=new n.InstancedBufferGeometry).maxInstancedCount=me.length,Ne.setAttribute("position",new n.Float32BufferAttribute(this._geometryMeshPositionsByLayer[at],2)),Ne.setAttribute("tran1",new n.InstancedBufferAttribute(new Float32Array(Le),4)),Ne.setAttribute("tran2",new n.InstancedBufferAttribute(new Float32Array(et),4)),Ne.setAttribute("tran3",new n.InstancedBufferAttribute(new Float32Array(it),4)),Ne.setAttribute("tran4",new n.InstancedBufferAttribute(new Float32Array(Ue),4)),Ne.setAttribute("ishide",new n.InstancedBufferAttribute(new Float32Array(ht),1)),(ze=new n.Mesh(Ne,Lt)).frustumCulled=!1,ze.renderOrder=c.MxData.iCADMeshRenderOrder,re.add(ze),this._entitys.push(ze),4<=ke.ver&&0<ke.instansClipePoints.length&&new v.MxStencilObject().associateObject(ze,ke.instansClipePoints)}}},this)},z.prototype.createThreejsObjForCurve_Clip=function(F,re,le){F.size!=0&&F.forEach(function(fe,me,ye){var Te=fe;if(Te.length!=0){var ke=[],Le=[],et=Te[0].clipPlans;et.ver<=3&&(ke.push(et.clipPlanArray[0].x1,et.clipPlanArray[0].y1),Le.push(et.clipPlanArray[0].x2,et.clipPlanArray[0].y2));for(var it=[],Ue=[],ht=[],De=[],Be=[],Ve=[],He=[],gt=0;gt<Te.length;gt++){var dn=Te[gt];it=it.concat(dn.mat.elements.slice(0,4)),Ue=Ue.concat(dn.mat.elements.slice(4,8)),ht=ht.concat(dn.mat.elements.slice(8,12)),De=De.concat(dn.mat.elements.slice(12,16)),Be.push(0)}if(0<this._geometryCurvePositionsByBlock.length)for(gt=0;gt<Te.length;gt++)Ve=Ve.concat(Te[gt].color);if(0<this._geometryCurvePositionsByBlock_ZeroLayer.length)for(gt=0;gt<Te.length;gt++)He=He.concat(Te[gt].topLayerColor);var Ze,at=.5*le.width,Lt=.5*le.height;et.ver<=3?(Ze=new n.RawShaderMaterial({uniforms:{clippt1:{value:ke},clippt2:{value:Le},vieww:{value:at},viewh:{value:Lt}},vertexShader:o.MxShader.VSHADER_COLOR_POINT_CLIP,fragmentShader:o.MxShader.FSHADER_COLOR_POINT_CLIP,linewidth:1,transparent:!0,side:n.DoubleSide}),this._material_clip.push(Ze)):Ze=new n.RawShaderMaterial({vertexShader:o.MxShader.VSHADER_COLOR_POINT,fragmentShader:o.MxShader.FSHADER_COLOR_POINT,linewidth:1,transparent:!0,side:n.DoubleSide});for(var Ne=0;Ne<this._geometryCurvePostion.length;Ne++)(Ke=new n.InstancedBufferGeometry).maxInstancedCount=Te.length,Ke.setAttribute("position",new n.Float32BufferAttribute(this._geometryCurvePostion[Ne],2)),Ke.setAttribute("color",new n.Float32BufferAttribute(this._geometryCurveColor[Ne],3)),Ke.setAttribute("tran1",new n.InstancedBufferAttribute(new Float32Array(it),4)),Ke.setAttribute("tran2",new n.InstancedBufferAttribute(new Float32Array(Ue),4)),Ke.setAttribute("tran3",new n.InstancedBufferAttribute(new Float32Array(ht),4)),Ke.setAttribute("tran4",new n.InstancedBufferAttribute(new Float32Array(De),4)),Ke.setAttribute("ishide",new n.InstancedBufferAttribute(new Float32Array(Be),1)),(vt=new n.LineSegments(Ke,Ze)).frustumCulled=!1,vt.renderOrder=c.MxData.iCADCurveRenderOrder,re.add(vt),this._entitys.push(vt),4<=et.ver&&0<et.instansClipePoints.length&&new v.MxStencilObject().associateObject(vt,et.instansClipePoints);for(Ne=0;Ne<this._geometryCurvePositionsByBlock.length;Ne++)(Ke=new n.InstancedBufferGeometry).maxInstancedCount=Te.length,Ke.setAttribute("position",new n.Float32BufferAttribute(this._geometryCurvePositionsByBlock[Ne],2)),Ke.setAttribute("color",new n.InstancedBufferAttribute(new Float32Array(Ve),3)),Ke.setAttribute("tran1",new n.InstancedBufferAttribute(new Float32Array(it),4)),Ke.setAttribute("tran2",new n.InstancedBufferAttribute(new Float32Array(Ue),4)),Ke.setAttribute("tran3",new n.InstancedBufferAttribute(new Float32Array(ht),4)),Ke.setAttribute("tran4",new n.InstancedBufferAttribute(new Float32Array(De),4)),Ke.setAttribute("ishide",new n.InstancedBufferAttribute(new Float32Array(Be),1)),(vt=new n.LineSegments(Ke,Ze)).frustumCulled=!1,vt.renderOrder=c.MxData.iCADCurveRenderOrder,re.add(vt),this._entitys.push(vt),4<=et.ver&&0<et.instansClipePoints.length&&new v.MxStencilObject().associateObject(vt,et.instansClipePoints);for(Ne=0;Ne<this._geometryCurvePositionsByBlock_ZeroLayer.length;Ne++)(Ke=new n.InstancedBufferGeometry).maxInstancedCount=Te.length,Ke.setAttribute("position",new n.Float32BufferAttribute(this._geometryCurvePositionsByBlock_ZeroLayer[Ne],2)),Ke.setAttribute("color",new n.InstancedBufferAttribute(new Float32Array(He),3)),Ke.setAttribute("tran1",new n.InstancedBufferAttribute(new Float32Array(it),4)),Ke.setAttribute("tran2",new n.InstancedBufferAttribute(new Float32Array(Ue),4)),Ke.setAttribute("tran3",new n.InstancedBufferAttribute(new Float32Array(ht),4)),Ke.setAttribute("tran4",new n.InstancedBufferAttribute(new Float32Array(De),4)),Ke.setAttribute("ishide",new n.InstancedBufferAttribute(new Float32Array(Be),1)),(vt=new n.LineSegments(Ke,Ze)).frustumCulled=!1,vt.renderOrder=c.MxData.iCADCurveRenderOrder,re.add(vt),this._entitys.push(vt),4<=et.ver&&0<et.instansClipePoints.length&&new v.MxStencilObject().associateObject(vt,et.instansClipePoints);var ze=new n.RawShaderMaterial({uniforms:{color:{value:this._color},clippt1:{value:ke},clippt2:{value:Le},vieww:{value:at},viewh:{value:Lt}},vertexShader:o.MxShader.VSHADER_COLOR_POINT_BYLAYER_CLIP,fragmentShader:o.MxShader.FSHADER_COLOR_POINT_CLIP,linewidth:1,transparent:!0,side:n.DoubleSide});for(this._material_clip.push(ze),Ne=0;Ne<this._geometryCurvePositionsByLayer.length;Ne++){var Ke,vt;(Ke=new n.InstancedBufferGeometry).maxInstancedCount=Te.length,Ke.setAttribute("position",new n.Float32BufferAttribute(this._geometryCurvePositionsByLayer[Ne],2)),Ke.setAttribute("tran1",new n.InstancedBufferAttribute(new Float32Array(it),4)),Ke.setAttribute("tran2",new n.InstancedBufferAttribute(new Float32Array(Ue),4)),Ke.setAttribute("tran3",new n.InstancedBufferAttribute(new Float32Array(ht),4)),Ke.setAttribute("tran4",new n.InstancedBufferAttribute(new Float32Array(De),4)),Ke.setAttribute("ishide",new n.InstancedBufferAttribute(new Float32Array(Be),1)),(vt=new n.LineSegments(Ke,ze)).frustumCulled=!1,vt.renderOrder=c.MxData.iCADCurveRenderOrder,re.add(vt),this._entitys.push(vt),4<=et.ver&&0<et.instansClipePoints.length&&new v.MxStencilObject().associateObject(vt,et.instansClipePoints)}}},this)},z.prototype.createThreejsObjForCurve=function(F,re){if(F.length!=0){for(var le=[],fe=[],me=[],ye=[],Te=[],ke=[],Le=[],et=0;et<F.length;et++){var it=F[et];le=le.concat(it.mat.elements.slice(0,4)),fe=fe.concat(it.mat.elements.slice(4,8)),me=me.concat(it.mat.elements.slice(8,12)),ye=ye.concat(it.mat.elements.slice(12,16)),Te.push(0)}if(0<this._geometryCurvePositionsByBlock.length)for(et=0;et<F.length;et++)ke=ke.concat(F[et].color);if(0<this._geometryCurvePositionsByBlock_ZeroLayer.length)for(et=0;et<F.length;et++)Le=Le.concat(F[et].topLayerColor);for(var Ue=new n.RawShaderMaterial({vertexShader:o.MxShader.VSHADER_COLOR_POINT,fragmentShader:o.MxShader.FSHADER_COLOR_POINT,linewidth:1,transparent:!0,side:n.DoubleSide}),ht=0;ht<this._geometryCurvePostion.length;ht++)(Be=new n.InstancedBufferGeometry).maxInstancedCount=F.length,Be.setAttribute("position",new n.Float32BufferAttribute(this._geometryCurvePostion[ht],2)),Be.setAttribute("color",new n.Float32BufferAttribute(this._geometryCurveColor[ht],3)),Be.setAttribute("tran1",new n.InstancedBufferAttribute(new Float32Array(le),4)),Be.setAttribute("tran2",new n.InstancedBufferAttribute(new Float32Array(fe),4)),Be.setAttribute("tran3",new n.InstancedBufferAttribute(new Float32Array(me),4)),Be.setAttribute("tran4",new n.InstancedBufferAttribute(new Float32Array(ye),4)),Be.setAttribute("ishide",new n.InstancedBufferAttribute(new Float32Array(Te),1)),(Ve=new n.LineSegments(Be,Ue)).frustumCulled=!1,Ve.renderOrder=c.MxData.iCADCurveRenderOrder,re.add(Ve),this._entitys.push(Ve);for(ht=0;ht<this._geometryCurvePositionsByBlock.length;ht++)(Be=new n.InstancedBufferGeometry).maxInstancedCount=F.length,Be.setAttribute("position",new n.Float32BufferAttribute(this._geometryCurvePositionsByBlock[ht],2)),Be.setAttribute("color",new n.InstancedBufferAttribute(new Float32Array(ke),3)),Be.setAttribute("tran1",new n.InstancedBufferAttribute(new Float32Array(le),4)),Be.setAttribute("tran2",new n.InstancedBufferAttribute(new Float32Array(fe),4)),Be.setAttribute("tran3",new n.InstancedBufferAttribute(new Float32Array(me),4)),Be.setAttribute("tran4",new n.InstancedBufferAttribute(new Float32Array(ye),4)),Be.setAttribute("ishide",new n.InstancedBufferAttribute(new Float32Array(Te),1)),(Ve=new n.LineSegments(Be,Ue)).frustumCulled=!1,Ve.renderOrder=c.MxData.iCADCurveRenderOrder,re.add(Ve),this._entitys.push(Ve);for(ht=0;ht<this._geometryCurvePositionsByBlock_ZeroLayer.length;ht++)(Be=new n.InstancedBufferGeometry).maxInstancedCount=F.length,Be.setAttribute("position",new n.Float32BufferAttribute(this._geometryCurvePositionsByBlock_ZeroLayer[ht],2)),Be.setAttribute("color",new n.InstancedBufferAttribute(new Float32Array(Le),3)),Be.setAttribute("tran1",new n.InstancedBufferAttribute(new Float32Array(le),4)),Be.setAttribute("tran2",new n.InstancedBufferAttribute(new Float32Array(fe),4)),Be.setAttribute("tran3",new n.InstancedBufferAttribute(new Float32Array(me),4)),Be.setAttribute("tran4",new n.InstancedBufferAttribute(new Float32Array(ye),4)),Be.setAttribute("ishide",new n.InstancedBufferAttribute(new Float32Array(Te),1)),(Ve=new n.LineSegments(Be,Ue)).frustumCulled=!1,Ve.renderOrder=c.MxData.iCADCurveRenderOrder,re.add(Ve),this._entitys.push(Ve);var De=new n.RawShaderMaterial({uniforms:{color:{value:this._color}},vertexShader:o.MxShader.VSHADER_COLOR_POINT_BYLAYER,fragmentShader:o.MxShader.FSHADER_COLOR_POINT,linewidth:1,transparent:!0,side:n.DoubleSide});for(ht=0;ht<this._geometryCurvePositionsByLayer.length;ht++){var Be,Ve;(Be=new n.InstancedBufferGeometry).maxInstancedCount=F.length,Be.setAttribute("position",new n.Float32BufferAttribute(this._geometryCurvePositionsByLayer[ht],2)),Be.setAttribute("tran1",new n.InstancedBufferAttribute(new Float32Array(le),4)),Be.setAttribute("tran2",new n.InstancedBufferAttribute(new Float32Array(fe),4)),Be.setAttribute("tran3",new n.InstancedBufferAttribute(new Float32Array(me),4)),Be.setAttribute("tran4",new n.InstancedBufferAttribute(new Float32Array(ye),4)),Be.setAttribute("ishide",new n.InstancedBufferAttribute(new Float32Array(Te),1)),(Ve=new n.LineSegments(Be,De)).frustumCulled=!1,Ve.renderOrder=c.MxData.iCADCurveRenderOrder,re.add(Ve),this._entitys.push(Ve)}}},z.prototype.createThreejsObjForMemorySections_clip=function(F,re,le){F.size!=0&&F.forEach(function(fe){var me=fe;if(me.length!=0){for(var ye=me[0].clipPlans,Te=[],ke=[],Le=[],et=[],it=[],Ue=0;Ue<me.length;Ue++){var ht=me[Ue];Te.push.apply(Te,ht.mat.elements.slice(0,4)),ke.push.apply(ke,ht.mat.elements.slice(4,8)),Le.push.apply(Le,ht.mat.elements.slice(8,12)),et.push.apply(et,ht.mat.elements.slice(12,16)),it.push(0)}for(var De=this._MemorySections.length,Be=0;Be<De;Be++){var Ve=this._MemorySections[Be],He=le.automaticInversionColor2(Ve.color),gt=[];if((4278190080&He)==16777216?gt=this._color:gt.push((255&He)/255,(He>>8&255)/255,(He>>16&255)/255),Ve.type==I.kLinesType){var dn=new n.RawShaderMaterial({uniforms:{color:{value:gt}},vertexShader:o.MxShader.VSHADER_COLOR_POINT_FORMXCAD,fragmentShader:o.MxShader.FSHADER_COLOR_POINT_FORMXCAD,linewidth:1,transparent:!0,side:n.DoubleSide});(at=new n.InstancedBufferGeometry).maxInstancedCount=me.length,at.setAttribute("position",new n.Float32BufferAttribute(Ve.points,3)),at.setAttribute("tran1",new n.InstancedBufferAttribute(new Float32Array(Te),4)),at.setAttribute("tran2",new n.InstancedBufferAttribute(new Float32Array(ke),4)),at.setAttribute("tran3",new n.InstancedBufferAttribute(new Float32Array(Le),4)),at.setAttribute("tran4",new n.InstancedBufferAttribute(new Float32Array(et),4)),at.setAttribute("ishide",new n.InstancedBufferAttribute(new Float32Array(it),1)),(Lt=new n.LineSegments(at,dn)).frustumCulled=!1,Lt.renderOrder=c.MxData.iCADCurveRenderOrder,4<=ye.ver&&0<ye.instansClipePoints.length&&new v.MxStencilObject().associateObject(Lt,ye.instansClipePoints),re.add(Lt),this._entitys.push(Lt)}else if(Ve.type==I.kTriangleType){dn=new n.RawShaderMaterial({uniforms:{color:{value:gt}},vertexShader:o.MxShader.VSHADER_COLOR_POINT_FORMXCAD,fragmentShader:o.MxShader.FSHADER_COLOR_POINT_FORMXCAD,transparent:!0,side:n.DoubleSide}),(at=new n.InstancedBufferGeometry).maxInstancedCount=me.length,at.setAttribute("position",new n.Float32BufferAttribute(Ve.points,3)),at.setAttribute("tran1",new n.InstancedBufferAttribute(new Float32Array(Te),4)),at.setAttribute("tran2",new n.InstancedBufferAttribute(new Float32Array(ke),4)),at.setAttribute("tran3",new n.InstancedBufferAttribute(new Float32Array(Le),4)),at.setAttribute("tran4",new n.InstancedBufferAttribute(new Float32Array(et),4)),at.setAttribute("ishide",new n.InstancedBufferAttribute(new Float32Array(it),1));var Ze=new n.Mesh(at,dn);Ze.frustumCulled=!1,Ze.renderOrder=c.MxData.iCADMeshRenderOrder,4<=ye.ver&&0<ye.instansClipePoints.length&&new v.MxStencilObject().associateObject(Ze,ye.instansClipePoints),re.add(Ze),this._entitys.push(Ze)}else if(Ve.type==I.kPointType){var at,Lt;dn=new n.RawShaderMaterial({uniforms:{color:{value:gt}},vertexShader:o.MxShader.VSHADER_COLOR_POINT_FORMXCAD,fragmentShader:o.MxShader.FSHADER_COLOR_POINT_FORMXCAD,transparent:!0,side:n.DoubleSide}),(at=new n.InstancedBufferGeometry).maxInstancedCount=me.length,at.setAttribute("position",new n.Float32BufferAttribute(Ve.points,3)),at.setAttribute("tran1",new n.InstancedBufferAttribute(new Float32Array(Te),4)),at.setAttribute("tran2",new n.InstancedBufferAttribute(new Float32Array(ke),4)),at.setAttribute("tran3",new n.InstancedBufferAttribute(new Float32Array(Le),4)),at.setAttribute("tran4",new n.InstancedBufferAttribute(new Float32Array(et),4)),at.setAttribute("ishide",new n.InstancedBufferAttribute(new Float32Array(it),1)),(Lt=new n.Points(at,dn)).frustumCulled=!1,Lt.renderOrder=c.MxData.iCADCurveRenderOrder,4<=ye.ver&&0<ye.instansClipePoints.length&&new v.MxStencilObject().associateObject(Lt,ye.instansClipePoints),re.add(Lt),this._entitys.push(Lt)}}}},this)},z.prototype.createThreejsObjForMemorySections=function(F,re,le){if(F.length!=0){for(var fe=[],me=[],ye=[],Te=[],ke=[],Le=0;Le<F.length;Le++){var et=F[Le];fe.push.apply(fe,et.mat.elements.slice(0,4)),me.push.apply(me,et.mat.elements.slice(4,8)),ye.push.apply(ye,et.mat.elements.slice(8,12)),Te.push.apply(Te,et.mat.elements.slice(12,16)),ke.push(0)}for(var it=this._MemorySections.length,Ue=0;Ue<it;Ue++){var ht=this._MemorySections[Ue],De=le.automaticInversionColor2(ht.color),Be=[];if((4278190080&De)==16777216?(Be=this._color,this._colorValue):Be.push((255&De)/255,(De>>8&255)/255,(De>>16&255)/255),ht.type==I.kLinesType){var Ve=new n.RawShaderMaterial({uniforms:{color:{value:Be}},vertexShader:o.MxShader.VSHADER_COLOR_POINT_FORMXCAD,fragmentShader:o.MxShader.FSHADER_COLOR_POINT_FORMXCAD,linewidth:1,transparent:!0,side:n.DoubleSide});(gt=new n.InstancedBufferGeometry).maxInstancedCount=F.length,gt.setAttribute("position",new n.Float32BufferAttribute(ht.points,3)),gt.setAttribute("tran1",new n.InstancedBufferAttribute(new Float32Array(fe),4)),gt.setAttribute("tran2",new n.InstancedBufferAttribute(new Float32Array(me),4)),gt.setAttribute("tran3",new n.InstancedBufferAttribute(new Float32Array(ye),4)),gt.setAttribute("tran4",new n.InstancedBufferAttribute(new Float32Array(Te),4)),gt.setAttribute("ishide",new n.InstancedBufferAttribute(new Float32Array(ke),1)),(dn=new n.LineSegments(gt,Ve)).frustumCulled=!1,dn.renderOrder=c.MxData.iCADCurveRenderOrder,re.add(dn),this._entitys.push(dn)}else if(ht.type==I.kTriangleType){Ve=new n.RawShaderMaterial({uniforms:{color:{value:Be}},vertexShader:o.MxShader.VSHADER_COLOR_POINT_FORMXCAD,fragmentShader:o.MxShader.FSHADER_COLOR_POINT_FORMXCAD,transparent:!0,side:n.DoubleSide}),(gt=new n.InstancedBufferGeometry).maxInstancedCount=F.length,gt.setAttribute("position",new n.Float32BufferAttribute(ht.points,3)),gt.setAttribute("tran1",new n.InstancedBufferAttribute(new Float32Array(fe),4)),gt.setAttribute("tran2",new n.InstancedBufferAttribute(new Float32Array(me),4)),gt.setAttribute("tran3",new n.InstancedBufferAttribute(new Float32Array(ye),4)),gt.setAttribute("tran4",new n.InstancedBufferAttribute(new Float32Array(Te),4)),gt.setAttribute("ishide",new n.InstancedBufferAttribute(new Float32Array(ke),1));var He=new n.Mesh(gt,Ve);He.frustumCulled=!1,He.renderOrder=c.MxData.iCADMeshRenderOrder,re.add(He),this._entitys.push(He)}else if(ht.type==I.kPointType){var gt,dn;Ve=new n.RawShaderMaterial({uniforms:{color:{value:Be},size:1},vertexShader:o.MxShader.VSHADER_COLOR_POINT_FORMXCAD,fragmentShader:o.MxShader.FSHADER_COLOR_POINT_FORMXCAD,transparent:!0,side:n.DoubleSide}),(gt=new n.InstancedBufferGeometry).maxInstancedCount=F.length,gt.setAttribute("position",new n.Float32BufferAttribute(ht.points,3)),gt.setAttribute("tran1",new n.InstancedBufferAttribute(new Float32Array(fe),4)),gt.setAttribute("tran2",new n.InstancedBufferAttribute(new Float32Array(me),4)),gt.setAttribute("tran3",new n.InstancedBufferAttribute(new Float32Array(ye),4)),gt.setAttribute("tran4",new n.InstancedBufferAttribute(new Float32Array(Te),4)),gt.setAttribute("ishide",new n.InstancedBufferAttribute(new Float32Array(ke),1)),(dn=new n.Points(gt,Ve)).frustumCulled=!1,dn.renderOrder=c.MxData.iCADCurveRenderOrder,re.add(dn),this._entitys.push(dn)}}}},z.prototype.createThreejsObjForTexture=function(F,re,le){if(F.length!=0){var fe=[],me=[],ye=[],Te=[],ke=[],Le=le.getCurrentLoadUrl(),et=x.MxFun.dwgDir();et.length!=0&&Le.substring(Le.lastIndexOf("/buf/")).toLowerCase()!="/buf/"&&(Le=Le+et+"/buf/");for(var it=0;it<F.length;it++){var Ue=F[it];fe=fe.concat(Ue.mat.elements.slice(0,4)),me=me.concat(Ue.mat.elements.slice(4,8)),ye=ye.concat(Ue.mat.elements.slice(8,12)),Te=Te.concat(Ue.mat.elements.slice(12,16)),ke.push(0)}for(var ht=0;ht<this._TextureData.length;ht++){var De=this._TextureData[ht],Be=new n.InstancedBufferGeometry;Be.maxInstancedCount=F.length,Be.setAttribute("position",new n.Float32BufferAttribute(De.pos,2)),Be.setAttribute("uv",new n.Float32BufferAttribute(De.textureCoord,2)),Be.setAttribute("color",new n.Float32BufferAttribute(De.color,3)),Be.setAttribute("tran1",new n.InstancedBufferAttribute(new Float32Array(fe),4)),Be.setAttribute("tran2",new n.InstancedBufferAttribute(new Float32Array(me),4)),Be.setAttribute("tran3",new n.InstancedBufferAttribute(new Float32Array(ye),4)),Be.setAttribute("tran4",new n.InstancedBufferAttribute(new Float32Array(Te),4)),Be.setAttribute("ishide",new n.InstancedBufferAttribute(new Float32Array(ke),1));var Ve=Le+De.sFileName,He={texture:{value:new n.TextureLoader().load(Ve,function(Ze){Ze&&le.updateDisplay()})}};He.texture.value.wrapS=He.texture.value.wrapT=n.RepeatWrapping;var gt=new n.RawShaderMaterial({uniforms:He,vertexShader:o.MxShader.VSHADER_COLOR_POINT_TEXTURE,fragmentShader:o.MxShader.FSHADER_COLOR_POINT_TEXTURE,transparent:!0,side:n.DoubleSide}),dn=new n.Mesh(Be,gt);dn.renderOrder=c.MxData.iCADMeshRenderOrder,dn.frustumCulled=!1,re.add(dn),this._entitys.push(dn)}}},z.prototype.createThreejsObjForTexture_Clip=function(F,re,le){if(F.size!=0){var fe=le.getCurrentLoadUrl(),me=x.MxFun.dwgDir();me.length!=0&&fe.substring(fe.lastIndexOf("/buf/")).toLowerCase()!="/buf/"&&(fe=fe+me+"/buf/"),F.forEach(function(ye){var Te=ye;if(Te.length!=0){for(var ke=Te[0].clipPlans,Le=[],et=[],it=[],Ue=[],ht=[],De=0;De<Te.length;De++){var Be=Te[De];Le=Le.concat(Be.mat.elements.slice(0,4)),et=et.concat(Be.mat.elements.slice(4,8)),it=it.concat(Be.mat.elements.slice(8,12)),Ue=Ue.concat(Be.mat.elements.slice(12,16)),ht.push(0)}for(var Ve=0;Ve<this._TextureData.length;Ve++){var He=this._TextureData[Ve],gt=new n.InstancedBufferGeometry;gt.maxInstancedCount=Te.length,gt.setAttribute("position",new n.Float32BufferAttribute(He.pos,2)),gt.setAttribute("uv",new n.Float32BufferAttribute(He.textureCoord,2)),gt.setAttribute("color",new n.Float32BufferAttribute(He.color,3)),gt.setAttribute("tran1",new n.InstancedBufferAttribute(new Float32Array(Le),4)),gt.setAttribute("tran2",new n.InstancedBufferAttribute(new Float32Array(et),4)),gt.setAttribute("tran3",new n.InstancedBufferAttribute(new Float32Array(it),4)),gt.setAttribute("tran4",new n.InstancedBufferAttribute(new Float32Array(Ue),4)),gt.setAttribute("ishide",new n.InstancedBufferAttribute(new Float32Array(ht),1));var dn=fe+He.sFileName,Ze={texture:{value:new n.TextureLoader().load(dn,function(Ne){Ne&&le.updateDisplay()})}};Ze.texture.value.wrapS=Ze.texture.value.wrapT=n.RepeatWrapping;var at=new n.RawShaderMaterial({uniforms:Ze,vertexShader:o.MxShader.VSHADER_COLOR_POINT_TEXTURE,fragmentShader:o.MxShader.FSHADER_COLOR_POINT_TEXTURE,transparent:!0,side:n.DoubleSide}),Lt=new n.Mesh(gt,at);Lt.renderOrder=c.MxData.iCADMeshRenderOrder,Lt.frustumCulled=!1,4<=ke.ver&&0<ke.instansClipePoints.length&&new v.MxStencilObject().associateObject(Lt,ke.instansClipePoints),re.add(Lt),this._entitys.push(Lt)}}},this)}},z.prototype.createThreejsObjForMesh=function(F,re){if(F.length!=0){for(var le=[],fe=[],me=[],ye=[],Te=[],ke=[],Le=[],et=0;et<F.length;et++){var it=F[et];le=le.concat(it.mat.elements.slice(0,4)),fe=fe.concat(it.mat.elements.slice(4,8)),me=me.concat(it.mat.elements.slice(8,12)),ye=ye.concat(it.mat.elements.slice(12,16)),Te.push(0),ke=ke.concat(F[et].color)}if(0<this._geometryMeshPositionsByBlock.length)for(et=0;et<F.length;et++)ke=ke.concat(F[et].color);if(0<this._geometryMeshPositionsByBlock_ZeroLayer.length)for(et=0;et<F.length;et++)Le=Le.concat(F[et].topLayerColor);for(var Ue=new n.RawShaderMaterial({vertexShader:o.MxShader.VSHADER_COLOR_POINT,fragmentShader:o.MxShader.FSHADER_COLOR_POINT,transparent:!0,side:n.DoubleSide}),ht=0;ht<this._geometryMeshPostion.length;ht++)(Be=new n.InstancedBufferGeometry).maxInstancedCount=F.length,Be.setAttribute("position",new n.Float32BufferAttribute(this._geometryMeshPostion[ht],2)),Be.setAttribute("color",new n.Float32BufferAttribute(this._geometryMeshColor[ht],3)),Be.setAttribute("tran1",new n.InstancedBufferAttribute(new Float32Array(le),4)),Be.setAttribute("tran2",new n.InstancedBufferAttribute(new Float32Array(fe),4)),Be.setAttribute("tran3",new n.InstancedBufferAttribute(new Float32Array(me),4)),Be.setAttribute("tran4",new n.InstancedBufferAttribute(new Float32Array(ye),4)),Be.setAttribute("ishide",new n.InstancedBufferAttribute(new Float32Array(Te),1)),(Ve=new n.Mesh(Be,Ue)).frustumCulled=!1,Ve.renderOrder=c.MxData.iCADMeshRenderOrder,re.add(Ve),this._entitys.push(Ve);for(ht=0;ht<this._geometryMeshPositionsByBlock.length;ht++)(Be=new n.InstancedBufferGeometry).maxInstancedCount=F.length,Be.setAttribute("position",new n.Float32BufferAttribute(this._geometryMeshPositionsByBlock[ht],2)),Be.setAttribute("color",new n.InstancedBufferAttribute(new Float32Array(ke),3)),Be.setAttribute("tran1",new n.InstancedBufferAttribute(new Float32Array(le),4)),Be.setAttribute("tran2",new n.InstancedBufferAttribute(new Float32Array(fe),4)),Be.setAttribute("tran3",new n.InstancedBufferAttribute(new Float32Array(me),4)),Be.setAttribute("tran4",new n.InstancedBufferAttribute(new Float32Array(ye),4)),Be.setAttribute("ishide",new n.InstancedBufferAttribute(new Float32Array(Te),1)),(Ve=new n.Mesh(Be,Ue)).frustumCulled=!1,Ve.renderOrder=c.MxData.iCADMeshRenderOrder,re.add(Ve),this._entitys.push(Ve);for(ht=0;ht<this._geometryMeshPositionsByBlock_ZeroLayer.length;ht++)(Be=new n.InstancedBufferGeometry).maxInstancedCount=F.length,Be.setAttribute("position",new n.Float32BufferAttribute(this._geometryMeshPositionsByBlock_ZeroLayer[ht],2)),Be.setAttribute("color",new n.InstancedBufferAttribute(new Float32Array(Le),3)),Be.setAttribute("tran1",new n.InstancedBufferAttribute(new Float32Array(le),4)),Be.setAttribute("tran2",new n.InstancedBufferAttribute(new Float32Array(fe),4)),Be.setAttribute("tran3",new n.InstancedBufferAttribute(new Float32Array(me),4)),Be.setAttribute("tran4",new n.InstancedBufferAttribute(new Float32Array(ye),4)),Be.setAttribute("ishide",new n.InstancedBufferAttribute(new Float32Array(Te),1)),(Ve=new n.Mesh(Be,Ue)).frustumCulled=!1,Ve.renderOrder=c.MxData.iCADMeshRenderOrder,re.add(Ve),this._entitys.push(Ve);var De=new n.RawShaderMaterial({uniforms:{color:{value:this._color}},vertexShader:o.MxShader.VSHADER_COLOR_POINT,fragmentShader:o.MxShader.FSHADER_COLOR_POINT,transparent:!0,side:n.DoubleSide});for(ht=0;ht<this._geometryMeshPositionsByLayer.length;ht++){var Be,Ve;(Be=new n.InstancedBufferGeometry).maxInstancedCount=F.length,Be.setAttribute("position",new n.Float32BufferAttribute(this._geometryMeshPositionsByLayer[ht],2)),Be.setAttribute("tran1",new n.InstancedBufferAttribute(new Float32Array(le),4)),Be.setAttribute("tran2",new n.InstancedBufferAttribute(new Float32Array(fe),4)),Be.setAttribute("tran3",new n.InstancedBufferAttribute(new Float32Array(me),4)),Be.setAttribute("tran4",new n.InstancedBufferAttribute(new Float32Array(ye),4)),Be.setAttribute("ishide",new n.InstancedBufferAttribute(new Float32Array(Te),1)),(Ve=new n.Mesh(Be,De)).frustumCulled=!1,Ve.renderOrder=c.MxData.iCADMeshRenderOrder,re.add(Ve),this._entitys.push(Ve)}}},z.prototype.addGeometryCurve=function(F,re,le,fe,me){0<F.length&&(this._geometryCurvePostion.push(F),this._geometryCurveColor.push(re)),0<le.length&&this._geometryCurvePositionsByBlock.push(le),0<fe.length&&this._geometryCurvePositionsByLayer.push(fe),0<me.length&&this._geometryCurvePositionsByBlock_ZeroLayer.push(me)},z.prototype.addGeometryMesh=function(F,re,le,fe,me){0<F.length&&(this._geometryMeshPostion.push(F),this._geometryMeshColor.push(re)),0<le.length&&this._geometryMeshPositionsByBlock.push(le),0<fe.length&&this._geometryMeshPositionsByLayer.push(fe),0<me.length&&this._geometryMeshPositionsByBlock_ZeroLayer.push(me)},z.prototype.addGeometryTexture=function(F,re,le,fe,me,ye,Te){var ke=new N;ke.pos=F,ke.textureCoord=re,ke.color=le,ke.sFileName=fe,ke.dAngel=me,ke.ptRotationPostionX=ye,ke.ptRotationPostionY=Te,this._TextureData.push(ke)},z.prototype.addMemorySections=function(F){this._MemorySections.push(F)},z.prototype.createThreejsObj=function(F,re,le,fe,me){var ye=le.getScene(),Te=le.getCanvas();if(F.length!=0){if(this._color==null){var ke=fe.getColor(me);this._color=[],this._color.push((255&ke)/255,(ke>>8&255)/255,(ke>>16&255)/255),this._colorValue=16777215&ke}this._geometryCurvePostion.length==0&&this._geometryCurvePositionsByBlock.length==0&&this._geometryCurvePositionsByLayer.length==0&&this._geometryCurvePositionsByBlock_ZeroLayer.length==0||this.createThreejsObjForCurve(F,ye),this._geometryMeshPostion.length==0&&this._geometryMeshPositionsByBlock.length==0&&this._geometryMeshPositionsByLayer.length==0&&this._geometryMeshPositionsByBlock_ZeroLayer.length==0||this.createThreejsObjForMesh(F,ye),this._TextureData.length!=0&&this.createThreejsObjForTexture(F,ye,le),this._MemorySections.length!=0&&this.createThreejsObjForMemorySections(F,ye,le)}re.size!=0&&(this._color==null&&(ke=fe.getColor(me),this._color=[],this._color.push((255&ke)/255,(ke>>8&255)/255,(ke>>16&255)/255),this._colorValue=16777215&ke),this._geometryCurvePostion.length==0&&this._geometryCurvePositionsByBlock.length==0&&this._geometryCurvePositionsByLayer.length==0&&this._geometryCurvePositionsByBlock_ZeroLayer.length==0||this.createThreejsObjForCurve_Clip(re,ye,Te),this._geometryMeshPostion.length==0&&this._geometryMeshPositionsByBlock.length==0&&this._geometryMeshPositionsByLayer.length==0&&this._geometryMeshPositionsByBlock_ZeroLayer.length==0||this.createThreejsObjForMesh_Clip(re,ye,Te),this._TextureData.length!=0&&this.createThreejsObjForTexture_Clip(re,ye,le),this._MemorySections.length!=0&&this.createThreejsObjForMemorySections_clip(re,ye,le)),this._geometryCurvePostion=[],this._geometryCurvePositionsByBlock=[],this._geometryCurvePositionsByLayer=[],this._geometryCurvePositionsByBlock_ZeroLayer=[],this._geometryCurveColor=[],this._geometryMeshPostion=[],this._geometryMeshPositionsByBlock=[],this._geometryMeshPositionsByLayer=[],this._geometryMeshPositionsByBlock_ZeroLayer=[],this._geometryMeshColor=[],this._TextureData=[],this._MemorySections=[]},z);function z(F){this._blockRecId=0,this._TextureData=[],this._MemorySections=[],this._geometryCurvePostion=new Array,this._geometryCurveColor=new Array,this._geometryMeshPostion=new Array,this._geometryMeshColor=new Array,this._geometryCurvePositionsByBlock=new Array,this._geometryMeshPositionsByBlock=new Array,this._geometryCurvePositionsByLayer=new Array,this._geometryMeshPositionsByLayer=new Array,this._geometryCurvePositionsByBlock_ZeroLayer=new Array,this._geometryMeshPositionsByBlock_ZeroLayer=new Array,this._entitys=new Array,this._color=void 0,this._colorValue=16777215,this._material_clip=[],this._blockRecId=F}r.Layer=A;var G=(V.prototype.showLayer=function(F,re){var le=this._layerTogeometry.get(F);le!=null&&le.Show(re)},V.prototype.updataClipMaterial=function(F){var re=F.getCanvas();this._layerTogeometry.forEach(function(le,fe,me){le.updataClipMaterial(re)})},V.prototype.getId=function(){return this._id},V.prototype.getBlkRef=function(){return this._blkRef},V.prototype.createThreejsObj=function(F,re){var le=this;this._layerTogeometry.forEach(function(fe,me,ye){fe.createThreejsObj(le._instance,le._instance_clip,F,re,me)})},V.prototype.addGeometryCurve=function(F,re,le,fe,me,ye){var Te=this._layerTogeometry.get(le);Te==null&&(Te=new A(this._id),this._layerTogeometry.set(le,Te)),Te.addGeometryCurve(F,re,fe,me,ye)},V.prototype.addMemorySections=function(F){var re=this._layerTogeometry.get(F.layerId);re==null&&(re=new A(this._id),this._layerTogeometry.set(F.layerId,re)),re.addMemorySections(F)},V.prototype.addGeometryTexture=function(F,re,le,fe,me,ye,Te,ke){var Le=this._layerTogeometry.get(fe);Le==null&&(Le=new A(this._id),this._layerTogeometry.set(fe,Le)),Le.addGeometryTexture(F,re,le,me,ye,Te,ke)},V.prototype.addGeometryMesh=function(F,re,le,fe,me,ye){var Te=this._layerTogeometry.get(le);Te==null&&(Te=new A(this._id),this._layerTogeometry.set(le,Te)),Te.addGeometryMesh(F,re,fe,me,ye)},V.prototype.addInstance=function(F){var re;F.clipPlans.ver<=3?F.clipPlans.clipPlanArray.length==0?this._instance.length<5e4&&this._instance.push(F):((re=this._instance_clip.get(F.clipPlans.id))==null&&(re=[],this._instance_clip.set(F.clipPlans.id,re)),re.push(F)):F.clipPlans.instansClipePoints.length==0||100<this._instance_clip.size?this._instance.length<5e4&&this._instance.push(F):((re=this._instance_clip.get(F.clipPlans.id))==null&&(re=[],this._instance_clip.set(F.clipPlans.id,re)),re.push(F))},V.prototype.addBlkRef=function(F){this._blkRef.push(F)},V);function V(F){this._id=0,this._layerTogeometry=new Map,this._blkRef=[],this._instance=[],this._instance_clip=new Map,this._id=F}r.Block=G;var ne=(W.prototype.crateBlock=function(F){var re=this._mapBlock.get(F);return re==null&&(re=new G(F),this._mapBlock.set(F,re)),re},W.prototype.getBlock=function(F){return this._mapBlock.get(F)},W.prototype.addBlockRef=function(F){this.crateBlock(F.blkOwnerId).addBlkRef(F)},W.prototype.showLayer=function(F,re){this._mapBlock.forEach(function(le,fe){var me=le,ye=fe;return function(Te,ke,Le){Te.showLayer(me,ye)}}.call(this,F,re))},W.prototype.createBlocks_30=function(F,re){if(!this._isCreate){this.crateBlock(0);for(var le=1,fe=F.getInt32(12,!0),me=80,ye=0;ye<fe;ye++){var Te=F.getInt32(me,!0);me+=4;var ke=F.getInt32(me,!0);me+=4;var Le=F.getInt32(me,!0);me+=4;var et=F.getInt32(me,!0);me+=4;for(var it=new Array,Ue=0;Ue<16;Ue++){var ht=F.getFloat32(me,!0);me+=4,it.push(ht)}var De=F.getInt32(me,!0);me+=4;var Be=new _;Be.id=le,Be.ver=3,le++,Be.clipPlanArray=[];for(var Ve=0;Ve<De;Ve++){var He=F.getFloat32(me,!0);me+=4;var gt=F.getFloat32(me,!0);me+=4;var dn=F.getFloat32(me,!0);me+=4;var Ze=F.getFloat32(me,!0);me+=4;var at=new w;at.x1=He,at.y1=gt,at.x2=dn,at.y2=Ze,Be.clipPlanArray.push(at)}var Lt=new b;Lt.ver=3,Lt.mat=new n.Matrix4,Lt.mat.fromArray(it),Lt.blkRecId=Le,Lt.blkOwnerId=Te,Lt.layerId=ke,Lt.color=et,Lt.clipPlans=Be,this.crateBlock(Le),this.addBlockRef(Lt)}this._isGetAllBlocks=!0,this._isCreate=!0}},W.prototype.createBlocks_40=function(F,re){if(!this._isCreate){this.crateBlock(0);for(var le=1,fe=F.getInt32(12,!0),me=80,ye=0;ye<fe;ye++){var Te=F.getInt32(me,!0);me+=4;var ke=F.getInt32(me,!0);me+=4;var Le=F.getInt32(me,!0);me+=4;var et=F.getInt32(me,!0);me+=4;for(var it=new Array,Ue=0;Ue<16;Ue++){var ht=F.getFloat32(me,!0);me+=4,it.push(ht)}var De=F.getInt32(me,!0);me+=4;var Be=new _;Be.id=le,Be.ver=4,le++,Be.clipPoints=[];for(var Ve=0;Ve<De;Ve++){var He=new n.Vector2;He.x=F.getFloat32(me,!0),me+=4,He.y=F.getFloat32(me,!0),me+=4,Be.clipPoints.push(He)}var gt=new b;gt.ver=4,gt.mat=new n.Matrix4,gt.mat.fromArray(it),gt.blkRecId=Le,gt.blkOwnerId=Te,gt.layerId=ke,gt.color=et,gt.clipPlans=Be,this.crateBlock(Le),this.addBlockRef(gt)}this._isGetAllBlocks=!0,this._isCreate=!0}},W.prototype.createBlocks=function(F,re){this._isCreate||(new l.MxNetData(F).getVersion_MwBlobHead()<=3?this.createBlocks_30(F,re):this.createBlocks_40(F,re))},W.prototype.updataClipMaterial=function(F){this._mapBlock.forEach(function(re,le,fe){re.updataClipMaterial(F)})},W.prototype.createAllInstance=function(F){var re=this.getBlock(0);if(re==null||this._rootBlockRef==null)return!1;var le=new n.Matrix4,fe=new Map,me=new _;return this._iClipIdCount=1,me.id=this._iClipIdCount,this._iClipIdCount++,this.createAllInstanceCall(re,this._rootBlockRef,le,fe,16777215,F,void 0,me),!0},W.prototype.createThreejsObj=function(F,re,le){this._mapNeedCreateThreejsObj.get(F.getId())==null&&this._mapNeedCreateThreejsObj.set(F.getId(),F),this._isCreateAllInstance||this._isGetAllBlocks&&le.isInitComplete()&&(this._isCreateAllInstance=this.createAllInstance(le)),this._isCreateAllInstance&&(this._mapNeedCreateThreejsObj.forEach(function(fe,me,ye){fe.createThreejsObj(re,le)}),this._mapNeedCreateThreejsObj.clear())},W.prototype.createAllInstanceCall=function(F,re,le,fe,me,ye,Te,ke){if(fe[F.getId()]!=1){fe[F.getId()]=!0;var Le=new E;if(Le.mat=new n.Matrix4,Le.mat.copy(le),Le.mat.multiply(re.mat),re.ver<=3)if(re.clipPlans.clipPlanArray.length==0)Le.clipPlans=ke;else{Le.clipPlans=re.clipPlans,Le.clipPlans.ver=3;for(var et,it,Ue,ht,De=Le.clipPlans.clipPlanArray.length,Be=function(){et=new n.Vector3(Le.clipPlans.clipPlanArray[Ve].x1,Le.clipPlans.clipPlanArray[Ve].y1,0),it=new n.Vector3(Le.clipPlans.clipPlanArray[Ve].x2,Le.clipPlans.clipPlanArray[Ve].y2,0),Ue=new n.Vector3(Le.clipPlans.clipPlanArray[Ve].x1,Le.clipPlans.clipPlanArray[Ve].y2,0),ht=new n.Vector3(Le.clipPlans.clipPlanArray[Ve].x2,Le.clipPlans.clipPlanArray[Ve].y1,0),et.applyMatrix4(Le.mat),it.applyMatrix4(Le.mat),Ue.applyMatrix4(Le.mat),ht.applyMatrix4(Le.mat);var vt=et.x,Ft=et.x,Ot=et.y,_t=et.y,Tn=[];Tn.push(it),Tn.push(Ue),Tn.push(ht),Tn.forEach(function(on){vt>on.x&&(vt=on.x),Ft<on.x&&(Ft=on.x),Ot>on.y&&(Ot=on.y),_t<on.y&&(_t=on.y)}),Le.clipPlans.clipPlanArray[Ve].x1=vt,Le.clipPlans.clipPlanArray[Ve].y1=Ot,Le.clipPlans.clipPlanArray[Ve].x2=Ft,Le.clipPlans.clipPlanArray[Ve].y2=_t},Ve=0;Ve<De;Ve++)Be()}else if(re.clipPlans.clipPoints.length==0)Le.clipPlans=ke;else{Le.clipPlans=new _,Le.clipPlans.ver=4,Le.clipPlans.id=this._iClipIdCount,this._iClipIdCount++,Le.clipPlans.instansClipePoints=ke.instansClipePoints.slice(0);var He=[],gt=re.clipPlans.clipPoints;for(De=gt.length,Ve=0;Ve<De;Ve++){var dn=new n.Vector3(gt[Ve].x,gt[Ve].y,0);dn.applyMatrix4(Le.mat),He.push(new n.Vector2(dn.x,dn.y))}Le.clipPlans.instansClipePoints.push(He)}Te==null?Le.topLayerColor.push(1,1,1):Le.topLayerColor.push(Te[0],Te[1],Te[2]);var Ze=re.color>>24&255;if(Ze==2)Le.color.push((255&me)/255,(me>>8&255)/255,(me>>16&255)/255);else if(Ze==1){var at=ye.getColor(re.layerId);Le.color.push((255&at)/255,(at>>8&255)/255,(at>>16&255)/255),me=at}else Le.color.push((255&re.color)/255,(re.color>>8&255)/255,(re.color>>16&255)/255),me=re.color;F.addInstance(Le);for(var Lt=F.getBlkRef(),Ne=Te==null,ze=0;ze<Lt.length;ze++)if(Lt[ze].blkRecId!=0){var Ke=this.getBlock(Lt[ze].blkRecId);if(Ke==null)return;Ne&&(Te=[],at=ye.getColor(Lt[ze].layerId),Te.push((255&at)/255,(at>>8&255)/255,(at>>16&255)/255)),this.createAllInstanceCall(Ke,Lt[ze],Le.mat,fe,me,ye,Te,Le.clipPlans)}fe[F.getId()]=!1}},W.prototype.initRootBlockRef=function(F){F==null&&((F=new b).mat=new n.Matrix4,F.blkRecId=0,F.blkOwnerId=-1,F.layerId=-1,F.color=16777215),this._rootBlockRef=F},W);function W(){this._mapBlock=new Map,this._mapNeedCreateThreejsObj=new Map,this._isCreate=!1,this._isGetAllBlocks=!1,this._isCreateAllInstance=!1,this._rootBlockRef=void 0,this._iClipIdCount=1}r.Blocks=ne;var B=function(){this.blocks=new ne,this.layers=new s.MxBrowseLayerData};r.ExternalReferenceDatabase=B;var q=(D.prototype.createTzDwgExternalReferences=function(F){this._mapId2ExternalDatabase.get(F)||this.getBlocks(F).initRootBlockRef()},D.prototype.createExternalReferences=function(F){for(var re=F.getInt32(12,!0),le=80,fe=0;fe<re;fe++){for(var me=new Array,ye=0;ye<16;ye++){var Te=F.getFloat32(le,!0);le+=4,me.push(Te)}var ke=F.getInt32(le,!0);le+=4;var Le=F.getInt32(le,!0);if(le+=4,F.getInt32(le,!0),le+=4,ke!=0){var et=this.getBlocks(ke),it=new b;it.mat=new n.Matrix4,it.mat.fromArray(me),it.blkRecId=0,it.blkOwnerId=-1,it.layerId=-1,it.color=Le,et.initRootBlockRef(it)}else console.log("mx error iDatabaseIndex")}},D.prototype.getBlocks=function(F){if(F!=0){var re=this._mapId2ExternalDatabase.get(F);return re==null&&(re=new B,this._mapId2ExternalDatabase.set(F,re)),re.blocks}console.log("mx error iDatabaseIndex")},D.prototype.getLayers=function(F){if(F!=0){var re=this._mapId2ExternalDatabase.get(F);return re==null&&(re=new B,this._mapId2ExternalDatabase.set(F,re)),re.layers}console.log("mx error iDatabaseIndex")},D);function D(){this._mapId2ExternalDatabase=new Map}r.ExternalReferenceManager=q},{"../MxFun":27,"../MxManager":29,"../MxNetData":31,"../MxShader":32,"../MxStencilObject":33,"./MxBrowseLayerData":65,three:19}],65:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MxBrowseLayerData=void 0;var n=(o.prototype.add=function(s,c,l){this._layerColor[s]=c,this._nametoId[l]=s},o.prototype.setZeroLayerId=function(s){this._zeroLayerId=s},o.prototype.getZeroLayerId=function(){return this._zeroLayerId},o.prototype.getLayerIdForName=function(s){return this._nametoId[s]==null?0:this._nametoId[s]},o.prototype.getColor=function(s){return this._layerColor[s]==null?16777215:this._layerColor[s]},o.prototype.initComplete=function(){this._isSetInstanceComplete=!0},o.prototype.isInitComplete=function(){return this._isSetInstanceComplete},o);function o(){this._isSetInstanceComplete=!1,this._layerColor=new Map,this._nametoId=new Map,this._zeroLayerId=0}r.MxBrowseLayerData=n},{}],66:[function(t,e,r){var n=this&&this.__awaiter||function(A,z,G,V){return new(G=G||Promise)(function(ne,W){function B(F){try{D(V.next(F))}catch(re){W(re)}}function q(F){try{D(V.throw(F))}catch(re){W(re)}}function D(F){var re;F.done?ne(F.value):((re=F.value)instanceof G?re:new G(function(le){le(re)})).then(B,q)}D((V=V.apply(A,z||[])).next())})},o=this&&this.__generator||function(A,z){var G,V,ne,W,B={label:0,sent:function(){if(1&ne[0])throw ne[1];return ne[1]},trys:[],ops:[]};return W={next:q(0),throw:q(1),return:q(2)},typeof Symbol=="function"&&(W[Symbol.iterator]=function(){return this}),W;function q(D){return function(F){return function(re){if(G)throw new TypeError("Generator is already executing.");for(;B;)try{if(G=1,V&&(ne=2&re[0]?V.return:re[0]?V.throw||((ne=V.return)&&ne.call(V),0):V.next)&&!(ne=ne.call(V,re[1])).done)return ne;switch(V=0,ne&&(re=[2&re[0],ne.value]),re[0]){case 0:case 1:ne=re;break;case 4:return B.label++,{value:re[1],done:!1};case 5:B.label++,V=re[1],re=[0];continue;case 7:re=B.ops.pop(),B.trys.pop();continue;default:if(!(ne=0<(ne=B.trys).length&&ne[ne.length-1])&&(re[0]===6||re[0]===2)){B=0;continue}if(re[0]===3&&(!ne||re[1]>ne[0]&&re[1]<ne[3])){B.label=re[1];break}if(re[0]===6&&B.label<ne[1]){B.label=ne[1],ne=re;break}if(ne&&B.label<ne[2]){B.label=ne[2],B.ops.push(re);break}ne[2]&&B.ops.pop(),B.trys.pop();continue}re=z.call(A,B)}catch(le){re=[6,le],V=0}finally{G=ne=0}if(5&re[0])throw re[1];return{value:re[0]?re[1]:void 0,done:!0}}([D,F])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.MxDbDatabase=void 0;var s=t("three"),c=t("../MxFun"),l=t("./MxDbEntity"),v=t("./MxDbEntityGrip"),x=t("./MxDbEntitySelect"),w=t("../MxManager"),_=t("../MxType"),b=t("./MxDbLayerTable"),E=t("./MxDbGroup"),I=t("../MxTools"),O=(N.prototype.getAllEntity=function(){return this.mapIdToEntity},N.prototype.getGroupDictionary=function(){return this.groupDictionary},N.prototype.regenAllMxDbEntity=function(){return this.mapIdToEntity.forEach(function(A){A.upDisplay(),A.setDirtyDisplay(!1)}),!0},N.prototype.upDirtyDisplay=function(){var A=!1;return this.mapIdToEntity.forEach(function(z){z.getDirtyDisplay()&&(z.upDisplay(),z.setDirtyDisplay(!1),A=!0)}),A},N.prototype.onViewChange=function(){var A=!1;return this.mapIdToEntity.forEach(function(z){z.onViewChange()&&(A=!0)}),A},N.prototype.toJsonObject=function(A){var z={ver:1},G=new s.Vector3(0,0,0),V=new s.Vector3(this.mxObj.getViewWidth(),this.mxObj.getViewHeight(),0),ne=_.MxType.MxCloneType.kMxFileClone;A&&(ne=_.MxType.MxCloneType.kSaveDwgClone);var W=this.mxObj.screenCoord2Current(G.x,G.y,0),B=this.mxObj.screenCoord2Current(V.x,V.y,0);z.view={ptView1:W,ptView2:B};var q=[];return this.mapNameToLayer.forEach(function(D){var F={type:ne};D.dwgOut(F),F.TypeName="MxDbLayerTableRecord",q.push(F)}),z.layers=q,this.groupDictionary.dwgOut(z),z},N.prototype.saveJson=function(A){var z=this,G=this.toJsonObject(A),V=_.MxType.MxCloneType.kMxFileClone;A&&(V=_.MxType.MxCloneType.kSaveDwgClone);var ne=[];return this.mapIdToEntity.forEach(function(W){var B=W.getUserObject(),q={type:V};B.dwgOut(q),q.TypeName=B.getTypeName(),q.group=z.groupDictionary.getEntityInGroupName(W.objectId()),ne.push(q)}),G.entitys=ne,G},N.prototype.reInit=function(){this.eraseAllEntity(),this.groupDictionary=new E.MxDbGroupDictionary;var A=this.parentObject.matrix;this.init(this.mxObj),this.initObjectMatrix(A)},N.prototype.init=function(A){this.mxObj=A,this.scene=A.getScene(),c.MxFun.removeThreejsObject(this.parentObject,this.scene),c.MxFun.removeThreejsObject(this.parentObject_SmallCoord,this.scene),this.parentObject=new s.Object3D,this.parentObject.renderOrder=w.MxData.iMxEntityRenderOrder,this.scene.add(this.parentObject),this.parentObject_SmallCoord=new s.Object3D,this.parentObject_SmallCoord.renderOrder=w.MxData.iMxEntityRenderOrder,this.scene.add(this.parentObject_SmallCoord),this.initLayerTable()},N.prototype.loadJson=function(A){return n(this,void 0,void 0,function(){var z,G,V,ne,W,B,q,D,F,re,le=this;return o(this,function(fe){switch(fe.label){case 0:if(this.reInit(),(z=A).view&&(G=z.view,this.mxObj.zoomW(new s.Vector3(G.ptView1.x,G.ptView1.y,0),new s.Vector3(G.ptView2.x,G.ptView2.y,0),!1)),V=z.layers)for(ne=V.length,re=0;re<ne;re++)W=V[re],this.addLayer(W.name).dwgIn(W);this.groupDictionary.dwgIn(z),B=z.entitys,q=B.length,D=function(me){var ye,Te,ke,Le;return o(this,function(et){switch(et.label){case 0:return ye=B[me],[4,w.MxManager.getMxDbEntityClassHierarchy().createMxEntity(ye.TypeName)];case 1:return(Te=et.sent())?(Te.dwgIn(ye),(ke=new l.MxDbEntity).initUserObject(Te),F.addEntityImp(ke),(Le=ye.group)&&0<Le.length&&Le.forEach(function(it){le.groupDictionary.add(it).append(ke.objectId())}),[2]):[2,"continue"]}})},F=this,re=0,fe.label=1;case 1:return re<q?[5,D(re)]:[3,4];case 2:fe.sent(),fe.label=3;case 3:return re++,[3,1];case 4:return[2,new Promise(function(me){me(!0)})]}})})},N.prototype.getMxObject=function(){return this.mxObj},N.prototype.getGripManager=function(){return this.gripManager},N.prototype.getSelectManager=function(){return this.selectManager},N.prototype.clearMxCurrentSelect=function(){var A=!1;return this.gripManager.removeAllGrips()&&(A=!0),this.selectManager.removeAllEntity()&&(A=!0),A},N.prototype.eraseAllEntity=function(){this.mapIdToEntity.forEach(function(A){A.clearDisplayImp()}),this.mapIdToEntity=new Map,this.clearMxCurrentSelect()},N.prototype.initObjectMatrix=function(A){this.parentObject.matrix=A,this.parentObject.matrixAutoUpdate=!1,this.parentObject_SmallCoord.matrix=new s.Matrix4,this.parentObject_SmallCoord.matrixAutoUpdate=!1},N.prototype.initLayerTable=function(){this.mapNameToLayer=new Map,this.curLayer="0";var A=new b.MxDbLayerTableRecord;A.init(this.curLayer,this.parentObject,this.parentObject_SmallCoord),this.mapNameToLayer.set(this.curLayer,A)},N.prototype.getEntity=function(A){return this.mapIdToEntity.get(A)},N.prototype.isValidId=function(A){return this.mapIdToEntity.has(A)},N.prototype.setRenderOrder=function(A){var z=this.parentObject.renderOrder;return this.parentObject.renderOrder=A,this.parentObject_SmallCoord.renderOrder=A,z},N.prototype.eraseEntity=function(A){this.gripManager.deleteGripData(A),this.selectManager.deleteSelect(A),this.mapIdToEntity.delete(A)},N.prototype.showLayer=function(A,z){var G=this.getLayer(A);G&&G.setVisible(z)},N.prototype.setCurrentLayer=function(A){if(A.length!=0)return this.curLayer=A,this.addLayer(A)},N.prototype.addLayer=function(A){var z=this.mapNameToLayer.get(A);return z||((z=new b.MxDbLayerTableRecord).init(A,this.parentObject,this.parentObject_SmallCoord),this.mapNameToLayer.set(A,z),z)},N.prototype.getLayer=function(A){return this.mapNameToLayer.get(A)},N.prototype.addMxEntity=function(A){if(A.getImp())return A.objectId();var z=new l.MxDbEntity;return z.initUserObject(A),A.initGuid(I.MxTools.generateUUID()),this.addEntityImp(z)},N.prototype.addEntityImp=function(A){return this.mapIdToEntity.set(this.idCount,A),A.setMxDatabase(this),A.setObjectId(this.idCount),A.getLayer().length==0&&A.setLayer(this.curLayer),A.upDisplay(),this.idCount++},N.prototype.getThreeJSParentObject=function(){return this.parentObject},N.prototype.getThreeJSParentObject_SmallCoord=function(){return this.parentObject_SmallCoord},N.prototype.getIntersectObjects=function(A){var z=this.getIntersectObjects_imp(A),G=this.getIntersectObjects_SmallCoord_imp(A);return z.concat(G)},N.prototype.getIntersectObjects_imp=function(A){return this.mxObj.getMxDrawThreeJs().createRaycaster(A).intersectObjects(this.parentObject.children,!0)},N.prototype.getIntersectObjects_SmallCoord_imp=function(A){return this.mxObj.getMxDrawThreeJs().createRaycaster(A).intersectObjects(this.parentObject_SmallCoord.children,!0)},N);function N(){this.mapIdToEntity=new Map,this.mxObj=null,this.scene=null,this.idCount=1,this.parentObject=null,this.parentObject_SmallCoord=null,this.mapNameToLayer=new Map,this.curLayer="0",this.gripManager=new v.MxDbEntityGrip(this),this.selectManager=new x.MxDbEntitySelect(this),this.groupDictionary=new E.MxDbGroupDictionary}r.MxDbDatabase=O},{"../MxFun":27,"../MxManager":29,"../MxTools":37,"../MxType":38,"./MxDbEntity":67,"./MxDbEntityGrip":68,"./MxDbEntitySelect":69,"./MxDbGroup":70,"./MxDbLayerTable":71,three:19}],67:[function(t,e,r){var n=this&&this.__awaiter||function(N,A,z,G){return new(z=z||Promise)(function(V,ne){function W(D){try{q(G.next(D))}catch(F){ne(F)}}function B(D){try{q(G.throw(D))}catch(F){ne(F)}}function q(D){var F;D.done?V(D.value):((F=D.value)instanceof z?F:new z(function(re){re(F)})).then(W,B)}q((G=G.apply(N,A||[])).next())})},o=this&&this.__generator||function(N,A){var z,G,V,ne,W={label:0,sent:function(){if(1&V[0])throw V[1];return V[1]},trys:[],ops:[]};return ne={next:B(0),throw:B(1),return:B(2)},typeof Symbol=="function"&&(ne[Symbol.iterator]=function(){return this}),ne;function B(q){return function(D){return function(F){if(z)throw new TypeError("Generator is already executing.");for(;W;)try{if(z=1,G&&(V=2&F[0]?G.return:F[0]?G.throw||((V=G.return)&&V.call(G),0):G.next)&&!(V=V.call(G,F[1])).done)return V;switch(G=0,V&&(F=[2&F[0],V.value]),F[0]){case 0:case 1:V=F;break;case 4:return W.label++,{value:F[1],done:!1};case 5:W.label++,G=F[1],F=[0];continue;case 7:F=W.ops.pop(),W.trys.pop();continue;default:if(!(V=0<(V=W.trys).length&&V[V.length-1])&&(F[0]===6||F[0]===2)){W=0;continue}if(F[0]===3&&(!V||F[1]>V[0]&&F[1]<V[3])){W.label=F[1];break}if(F[0]===6&&W.label<V[1]){W.label=V[1],V=F;break}if(V&&W.label<V[2]){W.label=V[2],W.ops.push(F);break}V[2]&&W.ops.pop(),W.trys.pop();continue}F=A.call(N,W)}catch(re){F=[6,re],G=0}finally{z=V=0}if(5&F[0])throw F[1];return{value:F[0]?F[1]:void 0,done:!0}}([q,D])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.MxDbEntity=r.MxDbEntityClassHierarchy=r.MxDbEntityUserObject=void 0;var s=t("three"),c=t("../Operate/McGiWorldDraw"),l=t("../MxManager"),v=t("../MxTools"),x=t("../MxType"),w=(_.prototype.getClosestPointTo=function(N,A){return null},_.prototype.getTypeName=function(){return""},_.prototype.isUseSmallcoordDisplay=function(){return this.use_smallcoord_display},_.prototype.toSmallcoord=function(N,A){return this.use_smallcoord_display?N.toSmallcoord(A):A},_.prototype.initGuid=function(N){0<this.sGuid.length?console.log("mx: init guid error"):this.sGuid=N},_.prototype.guid=function(){return this.sGuid},_.prototype.setGuid=function(N){this.sGuid=N},_.prototype.setLayer=function(N){var A=this.getImp();A&&A.nodifySetLayer(),this.layer=N},_.prototype.getLayer=function(){return this.layer},_.prototype.setDash=function(N,A){this.dDashArray=N,this.dDashRatio=A,this.dLineWidth==0&&(this.dLineWidth=6,this.lineWidthByPixels=!0)},_.prototype.getDash=function(){return{dDashArray:this.dDashArray,dDashRatio:this.dDashRatio}},_.prototype.setDashLineDisplay=function(N){N?(this.dDashArray=.03,this.dDashRatio=.1,this.dLineWidth==0&&(this.dLineWidth=6,this.lineWidthByPixels=!0)):(this.dDashArray=0,this.dDashRatio=0)},_.prototype.isDashLineDisplay=function(){return 0<this.dDashArray&&0<this.dDashRatio},_.prototype.setLineWidthByPixels=function(N){this.lineWidthByPixels=N},_.prototype.getLineWidthByPixels=function(){return this.lineWidthByPixels},_.prototype.setLineWidth=function(N){this.dLineWidth=N},_.prototype.getLineWidth=function(){return this.dLineWidth},_.prototype.getMxObject=function(){var N=this.getImp();return N?N.getMxObject():null},_.prototype.onViewChange=function(){return!1},_.prototype.getImp=function(){return this.MxDbEntityImp},_.prototype.upDisplay=function(){var N=this.getImp();return!!N&&N.upDisplay()},_.prototype.erase=function(){var N=this.getImp();return!!N&&N.erase()},_.prototype.setColor=function(N){this.iColor=N},_.prototype.getColor=function(){return this.iColor},_.prototype.setRenderOrder=function(N){this.iRenderOrder=N},_.prototype.getRenderOrder=function(){return this.iRenderOrder},_.prototype.onEndGripEidt=function(){},_.prototype.onStartGripEidt=function(){},_.prototype.dwgIn=function(N){return this.iColor=N.iColor,this.iRenderOrder=N.iRenderOrder,this.opacity=N.opacity,this.visible=N.visible,this.dLineWidth=N.lineWidth,this.lineWidthByPixels=N.lineWidthByPixels,this.dDashArray=N.dashArray,this.dDashRatio=N.dashRatio,this.layer=N.layer,N.guid&&(this.sGuid=N.guid),!0},_.prototype.dwgOut=function(N){return N.iColor=this.iColor,N.iRenderOrder=this.iRenderOrder,N.opacity=this.opacity,N.visible=this.visible,N.lineWidth=this.dLineWidth,N.lineWidthByPixels=this.lineWidthByPixels,N.dashArray=this.dDashArray,N.dashRatio=this.dDashRatio,N.layer=this.layer,N.guid=this.sGuid,N},_.prototype.clone=function(N){var A=this.create(),z={type:N||x.MxType.MxCloneType.kClone};return this.dwgOut(z),A.dwgIn(z),A.sGuid="",A},_.prototype.init=function(){l.MxManager.getMxDbEntityClassHierarchy().init(this)},_.prototype.transformBy=function(N){},_.prototype.objectId=function(){var N=this.getImp();return N?N.objectId():0},_);function _(){this.iColor=16777215,this.iRenderOrder=l.MxData.iMxEntityRenderOrder,this.opacity=1,this.visible=!0,this.dLineWidth=0,this.lineWidthByPixels=!0,this.dDashArray=0,this.dDashRatio=0,this.layer="",this.sGuid="",this.use_smallcoord_display=!1}r.MxDbEntityUserObject=w;var b=(E.prototype.init=function(N){var A=N.getTypeName();this.mapType2Create.get(A)&&console.log("MxError:already has this class name "+A),this.mapType2Create.set(A,{type:0,createfun:N})},E.prototype.initDynamic=function(N){this.dynmaicCreate=N},E.prototype.createMxEntity=function(N){return n(this,void 0,void 0,function(){var A,z;return o(this,function(G){switch(G.label){case 0:return(A=this.mapType2Create.get(N))?[3,3]:this.dynmaicCreate?[4,this.dynmaicCreate(N)]:[3,2];case 1:return(z=G.sent())?(this.mapType2Create.set(N,{type:1,createfun:z}),[2,new Promise(function(V,ne){V(new z)})]):[2,new Promise(function(V,ne){V(null)})];case 2:return[2,new Promise(function(V,ne){V(null)})];case 3:return A.type==0?[2,new Promise(function(V,ne){V(A.createfun.create())})]:A.type==1?[2,new Promise(function(V,ne){V(new A.createfun)})]:[2,new Promise(function(V,ne){V(null)})]}})})},E);function E(){this.mapType2Create=new Map,this.dynmaicCreate=null}r.MxDbEntityClassHierarchy=b;var I=(O.prototype.setObjectId=function(N){this.id=N},O.prototype.nodifySetLayer=function(){this.layerObjectGroup&&this.clearDisplayImp()},O.prototype.setLayer=function(N){this.userObject.setLayer(N)},O.prototype.getLayer=function(){return this.userObject.getLayer()},O.prototype.setDirtyDisplay=function(N){this.isDirtyDisplay=N},O.prototype.getDirtyDisplay=function(){return this.isDirtyDisplay},O.prototype.setMxDatabase=function(N){this.mxDatabase=N},O.prototype.objectId=function(){return this.id},O.prototype.initUserObject=function(N){(this.userObject=N).MxDbEntityImp=this},O.prototype.upDisplay=function(){if(!this.mxDatabase)return console.log("mxassert(0) this.mxDatabase is null"),!1;this.updateDisplayImp(this.mxDatabase.getMxObject())},O.prototype.erase=function(){if(this.id==0)return!1;this.clearDisplayImp(),this.userObject=null,this.mxDatabase.eraseEntity(this.id),this.id=0,this.mxDatabase=null},O.prototype.clearDisplayImp=function(){this.layerObjectGroup&&(this.threeObjectGroup&&(this.threeObjectGroup.traverse(function(N){N.type==="Mesh"&&(N.geometry.dispose(),N.material.dispose())}),this.layerObjectGroup.remove(this.threeObjectGroup)),this.threeObjectGroup=null,this.layerObjectGroup=null)},O.prototype.updateDisplayImp=function(N){if(this.clearDisplayImp(),this.userObject){if(this.userObject.visible){var A=this.mxDatabase.addLayer(this.userObject.getLayer());if(!A)return console.log("mxassert(0) this.layerRecord is null"),!1;this.threeObjectGroup=new s.Object3D;var z=new c.McGiWorldDraw(N,c.McGiWorldDrawType.kWorldDraw);z.setupForEntity(this.userObject),this.worldDraw(z);for(var G=z.getEntitys(),V=G.length,ne=0;ne<V;ne++){var W=G[ne];(W.MxDbEntity=this).threeObjectGroup.add(W)}this.userObject.isUseSmallcoordDisplay()?this.layerObjectGroup=A.getGroup_SmallCoord():this.layerObjectGroup=A.getGroup(),this.layerObjectGroup.add(this.threeObjectGroup)}}else v.MxTools.MxASSERT(!1,"this.userObject == null")},O.prototype.worldDraw=function(N){this.userObject.worldDraw(N)},O.prototype.getGripPoints=function(){return this.userObject.getGripPoints()},O.prototype.getClosestPointTo=function(N,A){return this.userObject.getClosestPointTo(N,A)},O.prototype.getUserObject=function(){return this.userObject},O.prototype.clone=function(N){var A=new O;return A.initUserObject(this.userObject.clone(N)),A},O.prototype.transformBy=function(N){this.userObject.transformBy(N)},O.prototype.setColor=function(N){this.userObject.setColor(N)},O.prototype.onEndGripEidt=function(){this.userObject.onEndGripEidt()},O.prototype.onStartGripEidt=function(){return this.userObject.onStartGripEidt()},O.prototype.getColor=function(){return this.userObject.getColor()},O.prototype.getMxObject=function(){return this.mxDatabase?this.mxDatabase.getMxObject():null},O.prototype.onViewChange=function(){return!!this.userObject&&this.userObject.onViewChange()},O);function O(){this.threeObjectGroup=null,this.userObject=null,this.mxDatabase=null,this.isDirtyDisplay=!1,this.layerObjectGroup=null,this.id=0}r.MxDbEntity=I},{"../MxManager":29,"../MxTools":37,"../MxType":38,"../Operate/McGiWorldDraw":43,three:19}],68:[function(t,e,r){var n,o=this&&this.__extends||(n=function(V,ne){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,B){W.__proto__=B}||function(W,B){for(var q in B)Object.prototype.hasOwnProperty.call(B,q)&&(W[q]=B[q])})(V,ne)},function(V,ne){function W(){this.constructor=V}n(V,ne),V.prototype=ne===null?Object.create(ne):(W.prototype=ne.prototype,new W)});Object.defineProperty(r,"__esModule",{value:!0}),r.MxDbEntityGrip=r.MxDbEntityGripJig=r.MxGetWordDrawxDataForThreeJsObject=r.MxGetMxDbEntitForThreeJsObject=r.MxDbEntityGripData=void 0;var s=t("three"),c=t("../MxFun"),l=t("../MxDrawData"),v=t("../Operate/MxJig"),x=t("../Operate/MxJigCmdManager"),w=t("../Operate/McGiWorldDraw"),_=t("../MxManager"),b=t("../MxType"),E=function(){this.threeObject=null};function I(V){for(var ne=null;V&&!(ne=V.MxDbEntity)&&V.parent;)V=V.parent;return ne}r.MxDbEntityGripData=E,r.MxGetMxDbEntitForThreeJsObject=I,r.MxGetWordDrawxDataForThreeJsObject=function(V){for(var ne=null;V&&!(ne=V.MxWordDrawXData)&&V.parent;)V=V.parent;return ne};var O,N=(o(A,O=v.McEdJigCommand),A.prototype.sampler=function(){var V=x.MxJigCmdManager.InType.kGetBegan|x.MxJigCmdManager.InType.kGetEnd,ne=this.acquirePoint(V);return ne.status==x.MxJigCmdManager.DragStatus.kNormal&&(this.currPt=ne.pt),ne.status},A.prototype.getTypeName=function(){return"MxGripEdit"},A.prototype.onStartCommand=function(){this.iscallOnStartCommand=!0,O.prototype.onStartCommand.call(this)},A.prototype.done=function(V){if(V==x.MxJigCmdManager.DragStatus.kNormal){var ne=this.currPt.clone();ne.sub(this.dragBasePt);for(var W=this.getMxObject(),B=W.getMxDatabase(),q=W.getMxDatabase().getGripManager(),D=this.grips.length,F=new Set,re=[],le=0;le<D;le++){var fe=this.grips[le],me=this.ents[le];q.deleteGripData(me.objectId()),me.getUserObject().moveGripPointsAt(fe.iIndex,ne),q.addGripFromEntity(me),me.upDisplay(),F.add(me.objectId());var ye={id:me.objectId(),index:fe.iIndex,curentPoint:this.currPt};re.push(ye)}W.updateDisplay(),0<re.length&&W.callEvent("objectGripEdit",re),B.getSelectManager().upSelectDilsplay(F)}var Te=this.ents.length;for(le=0;le<Te;le++)(me=this.ents[le]).onEndGripEidt(),V!=x.MxJigCmdManager.DragStatus.kNormal&&me.upDisplay();return x.MxJigCmdManager.DoneStatius.kExitCommand},A.prototype.upDisplay=function(){var V=this.currPt.clone();if(V.sub(this.dragBasePt),!(V.length()<.001)){if(this.iscallOnStartCommand){for(var ne=this.ents.length,W=0;W<ne;W++){var B=this.ents[W];this.aryParam.push(B.onStartGripEidt())}this.iscallOnStartCommand=!1}var q=this.getMxObject(),D=this.grips.length;for(W=0;W<D;W++){var F=this.grips[W],re=(B=this.ents[W],this.aryParam[W]),le=B.clone(b.MxType.MxCloneType.kDragClone);le.getUserObject().moveGripPointsAt(F.iIndex,V);var fe=new w.McGiWorldDraw(q,w.McGiWorldDrawType.kDynDragDraw);fe.setupForEntity(le.getUserObject()),le.worldDraw(fe);var me=fe.getEntitys(),ye=me.length,Te=31;re&&re.renderOrder&&(Te=re.renderOrder);for(var ke=0;ke<ye;ke++)this.drawEntity(me[ke],Te,le.getUserObject().isUseSmallcoordDisplay())}}},A);function A(V,ne,W){var B=O.call(this)||this;return B.aryParam=[],B.iscallOnStartCommand=!0,B.dragBasePt=V,B.grips=ne,B.ents=W,B.currPt=V,B.iscallOnStartCommand=!0,B}r.MxDbEntityGripJig=N;var z=(G.prototype.getAllSelect=function(){var V=[];return this.mapGrips.forEach(function(ne,W){V.push(W)}),V},G.prototype.getParentGroup=function(){return this.drawGroup||(this.drawGroup=new s.Group,this.drawGroup.renderOrder=_.MxData.iGripRenderOrder,this.database.getMxObject().getTheTempDrawContainer_SmallCoord().add(this.drawGroup)),this.drawGroup},G.prototype.reInit=function(){this.removeAllGrips(),this.drawGroup&&c.MxFun.removeThreejsObject(this.drawGroup,this.database.getMxObject().getTheTempDrawContainer_SmallCoord()),this.drawGroup=null},G.prototype.removeAllGrips=function(){if(this.mapGrips.size==0)return!1;var V=this.getParentGroup();return this.mapGrips.forEach(function(ne,W,B){for(var q=ne.length,D=0;D<q;D++){var F=ne[D];c.MxFun.removeThreejsObject(F.threeObject,V)}}),this.mapGrips=new Map,!0},G.prototype.deleteGripData=function(V){var ne=this.getParentGroup(),W=this.mapGrips.get(V);if(W)for(var B=W.length,q=0;q<B;q++){var D=W[q];c.MxFun.removeThreejsObject(D.threeObject,ne)}this.mapGrips.delete(V)},G.prototype.createGripDisplayObject=function(V){var ne=this.database.getMxObject(),W=this.getParentGroup();V.geometry=new s.Geometry;var B=ne.toSmallcoord2(V.point.x,V.point.y,V.point.z),q=ne.screenCoordLong2World(l.MxDrawData.m_dGridWidth/2);V.geometry.vertices.push(new s.Vector3(B.x-q,B.y-q,0)),V.geometry.vertices.push(new s.Vector3(B.x-q,B.y+q,0)),V.geometry.vertices.push(new s.Vector3(B.x+q,B.y+q,0)),V.geometry.vertices.push(new s.Vector3(B.x+q,B.y-q,0)),V.geometry.faces.push(new s.Face3(0,1,2)),V.geometry.faces.push(new s.Face3(2,3,0)),V.geometry.computeFaceNormals(),V.geometry.computeVertexNormals();var D=new s.MeshBasicMaterial({color:255,transparent:!0,depthTest:!1,side:s.DoubleSide,opacity:.9}),F=new s.Mesh(V.geometry,D);W.add(F),V.threeObject=F},G.prototype.addGripData=function(V,ne,W){var B=this.mapGrips.get(V);B==null&&(B=new Array,this.mapGrips.set(V,B));var q=new E;return q.iIndex=ne,q.point=new s.Vector3(W.x,W.y,0),B.push(q),q},G.prototype.hitTest=function(V){var ne=this,W={grips:new Array,ents:new Array,pt:V},B=new s.Vector3(V.x,V.y,0),q=this.database.getMxObject(),D=q.viewCoordLong2Cad(l.MxDrawData.m_dGridWidth/2);return this.mapGrips.forEach(function(F,re){for(var le=F.length,fe=0;fe<le;fe++){var me=F[fe];if(me.point.distanceTo(B)<=D){var ye=ne.database.getEntity(re),Te=!0;q.hasEvent("whetherEditTheGripPoint")&&(Te=q.callEvent("whetherEditTheGripPoint",{entity:ye.getUserObject(),index:me.iIndex})),Te&&(W.grips.push(me),W.ents.push(ye));break}}}),W},G.prototype.onMouseLBDown=function(V){if(!l.MxDrawData.m_isEnableGripEidt)return!1;var ne=this.hitTest(V);return ne.grips.length!=0&&(c.MxFun.sendStringToExecute("Mx_FrontEndWebpageGripEdit",ne),!0)},G.prototype.gripEditImp=function(V){var ne=V.grips,W=V.ents,B=V.pt,q=new N(B,ne,W);q.setDisableDynInput(!0),q.setDisableOsnap(!0),x.MxJigCmdManager.runCmd(q)},G.prototype.doWindowsSelect=function(V,ne){},G.prototype.addGripFromEntity=function(V){if(l.MxDrawData.m_isEnableGripEidt){var ne=V.getGripPoints(),W=V.objectId();this.deleteGripData(W);for(var B=0;B<ne.length;B++){var q=this.addGripData(W,B,ne[B]);this.createGripDisplayObject(q)}}},G.prototype.addSelect=function(V,ne,W){W===void 0&&(W=!0);var B=this.database.getSelectManager(),q=!1;if(this.getAllSelect().forEach(function(re){re==V&&(q=!0)}),q)return!1;var D=this.database.getMxObject().getMxEntity(V);if(!D)return!1;var F=new Set;return F.add(V),W&&this.addGripFromEntity(D),B.upSelectDilsplay(F),ne&&this.fireMxEntitySelectChange(),!0},G.prototype.fireMxEntitySelectChange=function(){var V=this.database.getMxObject();this.isCallingMxEntitySelectChange||(this.isCallingMxEntitySelectChange=!0,V.callEvent("mxdrawSelectChange",this.getAllSelect()),this.isCallingMxEntitySelectChange=!1)},G.prototype.doPointSelect=function(V){for(var ne=!1,W=this.database.getSelectManager(),B=this.database.getMxObject(),q=W.isEmptySelect(),D=!1,F=B.viewCoordLong2Cad(.5*l.MxDrawData.m_dGridWidth),re=function(){B.pointMultipleSelect()||(le.removeAllGrips(),W.removeAllEntity(),B.getMcObject().isValid()&&B.getMcObject().getGripManager().clearAll());var fe=le.database.getIntersectObjects(V);if(fe.length==0)return B.updateDisplay(),"break";var me=B.screenCoord2Current(V.x,V.y,V.z),ye=le,Te=new Set;fe.forEach(function(et){var it=I(et.object);if(it){var Ue=it.objectId();if(ye.database.isValidId(Ue)&&!Te.has(Ue)){var ht=it.getClosestPointTo(me,1),De=!1;(!ht||ht.distanceTo(me)<F)&&(De=!0),De&&(Te.add(Ue),ye.addGripFromEntity(it))}}});var ke=new Set,Le=le.database.getGroupDictionary();return Te.forEach(function(et){ke.add(et),Le.getEntityInGroup(et).forEach(function(it){it.getAll().forEach(function(Ue){ye.database.isValidId(Ue)&&ke.add(Ue)})})}),D=!0,W.upSelectDilsplay(ke),B.updateDisplay(),ne=!0,"break"},le=this;re()!=="break";);return!D&&q==W.isEmptySelect()||this.fireMxEntitySelectChange(),ne},G);function G(V){this.database=null,this.mapGrips=new Map,this.isCallingMxEntitySelectChange=!1,this.drawGroup=null,this.database=V}r.MxDbEntityGrip=z},{"../MxDrawData":22,"../MxFun":27,"../MxManager":29,"../MxType":38,"../Operate/McGiWorldDraw":43,"../Operate/MxJig":52,"../Operate/MxJigCmdManager":53,three:19}],69:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MxDbEntitySelect=void 0;var n=t("three"),o=t("../MxFun"),s=t("three.meshline"),c=t("../Operate/McGiWorldDraw"),l=t("../MxManager"),v=(x.prototype.setRenderOrder=function(w){this.iRenderOrder=w},x.prototype.getRenderOrder=function(){return this.iRenderOrder},x.prototype.setCanvasSize=function(w,_){this.canvasWidth==w&&this.canvasHeight==_||(this.canvasWidth=w,this.canvasHeight=_,this.material.resolution=new n.Vector2(this.canvasWidth,this.canvasHeight),this.material.needsUpdate=!0)},x.prototype.removeAllEntity=function(){return this.mapIdToThreeObject.size!=0&&(this.mapIdToThreeObject.forEach(function(w){for(var _=w.length,b=0;b<_;b++){var E=w[b];o.MxFun.removeThreejsObject(E,E.parentObject)}}),this.mapIdToThreeObject.clear(),!0)},x.prototype.isEmptySelect=function(){return this.mapIdToThreeObject.size==0},x.prototype.getParentObject=function(w){return w?this.mxDatabase.getMxObject().getTheTempDrawContainer_SmallCoord():this.mxDatabase.getMxObject().getTheTempDrawContainer()},x.prototype.getAllSelect=function(){var w=[];return this.mapIdToThreeObject.forEach(function(_,b){w.push(b)}),w},x.prototype.setPrvCommandSelect=function(w){this.aryPrvCommandSelect=w},x.prototype.getPrvCommandSelect=function(){return this.aryPrvCommandSelect},x.prototype.deleteSelect=function(w){var _=this.mapIdToThreeObject.get(w);if(_){for(var b=_.length,E=0;E<b;E++){var I=_[E];o.MxFun.removeThreejsObject(I,I.parentObject)}this.mapIdToThreeObject.delete(w)}},x.prototype.upSelectDilsplayFromId=function(w){var _=new Set;_.add(w),this.upSelectDilsplay(_)},x.prototype.upSelectDilsplay=function(w){var _=this,b=new c.McGiWorldDrawSelect(this.mxDatabase.getMxObject(),this);w.forEach(function(E){_.deleteSelect(E);var I=_.mxDatabase.getEntity(E);I&&(b.setSmallCoordDraw(I.getUserObject().isUseSmallcoordDisplay()),b.setCurEntityId(E),I.worldDraw(b))})},x.prototype.addCircleDisplay=function(w,_,b,E){var I=new n.CircleGeometry(b,64,3,2*Math.PI);if(I.vertices.shift(),I.vertices.length!=0){I.vertices.push(I.vertices[0]);var O=3*I.vertices.length;if(O!=0){for(var N=this.getParentObject(E),A=new Float32Array(O),z=0,G=0;z+2<O;z+=3,G++)A[z]=I.vertices[G].x+_.x,A[z+1]=I.vertices[G].y+_.y,A[z+2]=_.z;var V=new s.MeshLine;V.setGeometry(A);var ne=new n.Mesh(V.geometry,this.material);ne.renderOrder=this.iRenderOrder,(ne.parentObject=N).add(ne);var W=this.mapIdToThreeObject.get(w);W||(W=new Array,this.mapIdToThreeObject.set(w,W)),W.push(ne)}}},x.prototype.addLineDisplay=function(w,_,b,E){var I=this.getParentObject(E),O=new Float32Array(6);O[0]=_.x,O[1]=_.y,O[2]=0,O[3]=b.x,O[4]=b.y,O[5]=0;var N=new s.MeshLine;N.setGeometry(O);var A=new n.Mesh(N.geometry,this.material);A.renderOrder=this.iRenderOrder,(A.parentObject=I).add(A);var z=this.mapIdToThreeObject.get(w);z||(z=new Array,this.mapIdToThreeObject.set(w,z)),z.push(A)},x);function x(w){this.mapIdToThreeObject=new Map,this.canvasWidth=800,this.canvasHeight=500,this.mxDatabase=null,this.material=new s.MeshLineMaterial({useMap:!1,color:new n.Color(2641557),opacity:.8,resolution:new n.Vector2(800,500),sizeAttenuation:!1,lineWidth:10,transparent:!0,depthTest:!1}),this.iRenderOrder=l.MxData.iSelectRenderOrder,this.aryPrvCommandSelect=[],this.mxDatabase=w}r.MxDbEntitySelect=v},{"../MxFun":27,"../MxManager":29,"../Operate/McGiWorldDraw":43,three:19,"three.meshline":18}],70:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MxDbGroupDictionary=r.MxDbGroup=void 0;var n=(o.prototype.name=function(){return this.sName},o.prototype.append=function(l){this.has(l)||this.setId.add(l)},o.prototype.clear=function(){this.setId=new Set},o.prototype.getAll=function(){var l=[];return this.setId.forEach(function(v){l.push(v)}),l},o.prototype.has=function(l){return this.setId.has(l)},o.prototype.delete=function(l){return this.setId.delete(l)},o);function o(l){this.setId=new Set,this.sName="",this.sName=l}r.MxDbGroup=n;var s=(c.prototype.getAt=function(l){return this.mapNameToGroup.get(l)},c.prototype.delete=function(l){return!!this.mapNameToGroup.has(l)&&this.mapNameToGroup.delete(l)},c.prototype.add=function(l){var v=this.mapNameToGroup.get(l);return v||(v=new n(l),this.mapNameToGroup.set(l,v),v)},c.prototype.dwgOut=function(l){var v=[];return this.mapNameToGroup.forEach(function(x,w){v.push(w)}),l.groups=v,l},c.prototype.dwgIn=function(l){var v=this;return l.groups.forEach(function(x){var w=new n(x);v.mapNameToGroup.set(x,w)}),!0},c.prototype.getEntityInGroup=function(l){var v=[];return this.mapNameToGroup.forEach(function(x){x.has(l)&&v.push(x)}),v},c.prototype.getEntityInGroupName=function(l){var v=[];return this.mapNameToGroup.forEach(function(x,w){x.has(l)&&v.push(w)}),v},c);function c(){this.mapNameToGroup=new Map}r.MxDbGroupDictionary=s},{}],71:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MxDbLayerTableRecord=void 0;var n=t("three"),o=(s.prototype.getGroup=function(){return this.group},s.prototype.getGroup_SmallCoord=function(){return this.group_SmallCoord},s.prototype.getName=function(){return this.name},s.prototype.setName=function(c){this.name=c},s.prototype.setVisible=function(c){this.visible=c,this.group.visible=c,this.group_SmallCoord.visible=c},s.prototype.getVisible=function(){return this.visible},s.prototype.init=function(c,l,v){return this.name=c,l.add(this.group),v.add(this.group_SmallCoord),!0},s.prototype.dwgIn=function(c){return this.visible=c.visible,this.name=c.name,this.group.visible=this.visible,this.group_SmallCoord.visible=this.visible,!0},s.prototype.dwgOut=function(c){return c.visible=this.visible,c.name=this.name,c},s);function s(){this.group=new n.Group,this.group_SmallCoord=new n.Group,this.name="",this.visible=!0}r.MxDbLayerTableRecord=o},{three:19}],72:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MxDbTextureManager=void 0;var n=t("three"),o=(s.prototype.loadImage=function(c,l){var v=this.mapImageUrlToMaterialTexture.get(c);if(v)l(v);else{var x=this;new n.TextureLoader().load(c,function(w){var _=new n.MeshLambertMaterial({map:w,transparent:!0,side:n.DoubleSide});_.map&&(_.map.needsUpdate=!0),x.mapImageUrlToMaterialTexture.set(c,_),l&&l(_)},void 0,function(w){console.log(w),l&&l(null)})}},s);function s(){this.mapImageUrlToMaterialTexture=new Map}r.MxDbTextureManager=o},{three:19}],73:[function(t,e,r){var n,o=this&&this.__extends||(n=function(D,F){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,le){re.__proto__=le}||function(re,le){for(var fe in le)Object.prototype.hasOwnProperty.call(le,fe)&&(re[fe]=le[fe])})(D,F)},function(D,F){function re(){this.constructor=D}n(D,F),D.prototype=F===null?Object.create(F):(re.prototype=F.prototype,new re)});Object.defineProperty(r,"__esModule",{value:!0}),r.MxDrawObject3dThreeJS=r.MxDrawMapBoxThreeJS=r.MxDrawObject2dThreeJS=r.MxDrawThreeJS=r.MxThreeJSType=void 0;var s,c,l,v=t("three"),x=t("../Operate/MxJigCmdManager"),w=t("three-orbitcontrols"),_=t("../UI/MxUiVue"),b=(o(E,s=w.OrbitControls),E.prototype.update=function(){},E);function E(D,F){return s.call(this,D,F)||this}(l=c=r.MxThreeJSType||(r.MxThreeJSType={}))[l.k2d=0]="k2d",l[l.k3d=1]="k3d",l[l.kMapBox=2]="kMapBox";var I=(O.prototype.screenCoord2World=function(D,F,re){return this.mxObject.screenCoord2World_mxdrawThreeJS_call(D,F,re)},O.prototype.worldCoord2Screen=function(D,F,re){return this.mxObject.worldCoord2Screen_mxdrawThreeJS_call(D,F,re)},O.prototype.getDomMousePos=function(D){},O.prototype.createRaycaster=function(D){var F=new v.Raycaster;F.linePrecision=this.mxObject.screenCoordLong2World(10);var re=this.mxObject.getCanvas(),le=re.clientWidth,fe=re.clientHeight,me=new v.Vector2(D.x/le*2-1,-D.y/fe*2+1);return F.setFromCamera(me,this.mxObject.getCamera()),F},O.prototype.zoomW=function(D,F,re,le){return this.mxObject.zoomW_call(D,F,re)},O.prototype.zoomCenter=function(D,F,re){return this.mxObject.zoomCenter_call(D,F)},O.prototype.zoomScale=function(D,F){return this.mxObject.zoomScale_call(D)},O.prototype.setViewAngle=function(D){return this.mxObject.setViewAngle_call(D)},O.prototype.startPanCommand=function(){return this.mxObject.startPanCommand_call()},O.prototype.endPanCommand=function(){return this.mxObject.endPanCommand_call()},O.prototype.isPaningCommand=function(){return this.mxObject.isPaningCommand_call()},O);function O(D){this.mxObject=D}r.MxDrawThreeJS=I;var N,A=(o(z,N=I),z.prototype.onInitThreejs=function(){this.proxyObj.onInitThreejs()},z.prototype.onInitScene=function(){this.proxyObj.onInitScene()},z.prototype.getType=function(){return c.k2d},z.prototype.updateCameraDisplayRange=function(D,F,re){this.proxyObj.updateCameraDisplayRangeImp(D,F,re)},z.prototype.addControlsChangeEvent=function(){var D=this.mxObject;this.mxObject.getOrbitControls().addEventListener("change",function(){x.MxJigCmdManager.OnThreeControlsChage(),D.callViewChange(),D.getMxDatabase().onViewChange(),D.getMcObject().isValid()&&D.getMcObject().getGripManager().onControlsChage(),D.updateDisplay()})},z.prototype.updateDisplay=function(D){D===void 0&&(D=!1),this.mxObject.updateDisplayImplement(D)},z.prototype.getRegistEventObject=function(){return this.mxObject.getCanvas()},z);function z(D){var F=N.call(this,D)||this;return F.proxyObj=D,F}r.MxDrawObject2dThreeJS=A;var G,V=(o(ne,G=I),ne.prototype.startPanCommand=function(){this.mapBox.map&&(this.isPaning=!0,this.bakPan=this.mapBox.map.dragPan.useMouseMiddle(!1),_.MxUiVue.setCursorType(_.MxUiVue.CursorType.kPan))},ne.prototype.endPanCommand=function(){this.mapBox.map&&this.isPaning&&(this.isPaning=!1,this.mapBox.map.dragPan.useMouseMiddle(this.bakPan),_.MxUiVue.setCursorType(_.MxUiVue.CursorType.kNormal))},ne.prototype.isPaningCommand=function(){return this.mapBox.map,this.isPaning},ne.prototype.mercatorCoord2CAD=function(D,F){var re=new v.Vector3(D,F,0);return re.applyMatrix4(this.mapBox.matMapToCad),re},ne.prototype.cadToMercatorCoord=function(D){return D.applyMatrix4(this.mapBox.matCadToMap),D},ne.prototype.setViewAngle=function(D){this.mapBox.map&&this.mapBox.map.setBearing(180*D/Math.PI)},ne.prototype.zoomCenter=function(D,F,re){if(this.mapBox.map){var le=this.cadToMercatorCoord(new v.Vector3(D,F,0)),fe=this.mapBox.map.mercator_to_lnglat(le.x,le.y,0),me=this.mapBox.map.getBounds(),ye=.5*(me._ne.wrap().lng-me._sw.wrap().lng),Te=.5*(me._ne.wrap().lat-me._sw.wrap().lat);this.mapBox.map.fitBounds([[fe.lng-ye,fe.lat-Te],[fe.lng+ye,fe.lat+Te]],{animate:!!re})}},ne.prototype.zoomScale=function(D,F){if(this.mapBox.map){var re=this.mapBox.map.getBounds(),le=.5*(re._ne.wrap().lng-re._sw.wrap().lng),fe=.5*(re._ne.wrap().lat-re._sw.wrap().lat),me=re._sw.wrap().lng+le,ye=re._sw.wrap().lat+fe;le*=D,fe*=D,this.mapBox.map.fitBounds([[me-le,ye-fe],[me+le,ye+fe]],{animate:!!F})}},ne.prototype.zoomW=function(D,F,re,le){if(this.mapBox.map)if(D.distanceTo(F)<1e-7)console.log("Mx:ZoomW param invalid");else{re!==void 0&&re&&(D=this.mxObject2d.docCoord2Cad(D.x,D.y,0),F=this.mxObject2d.docCoord2Cad(F.x,F.y,0));var fe=this.cadToMercatorCoord(D),me=this.cadToMercatorCoord(F),ye=this.mapBox.map.mercator_to_lnglat(fe.x,fe.y,0),Te=this.mapBox.map.mercator_to_lnglat(me.x,me.y,0),ke=Math.min(ye.lng,Te.lng),Le=Math.max(ye.lng,Te.lng),et=Math.min(ye.lat,Te.lat),it=Math.max(ye.lat,Te.lat);this.mapBox.map.fitBounds([[ke,et],[Le,it]],{animate:!!le})}},ne.prototype.onInitScene=function(){},ne.prototype.addControlsChangeEvent=function(){},ne.prototype.updateDisplay=function(D){this.mapBox.map&&(this.mapBox.map.repaint=!0)},ne.prototype.createRaycaster=function(D){if(this.mapBox.map){var F=D.x/this.mapBox.map.transform.width*2-1,re=-D.y/this.mapBox.map.transform.height*2+1,le=this.mxObject2d.getCamera(),fe=new v.Raycaster;fe.linePrecision=this.mxObject2d.screenCoordLong2World(10);var me=new v.Matrix4().getInverse(le.projectionMatrix),ye=new v.Vector3().applyMatrix4(me),Te=new v.Vector3(F,re,1).applyMatrix4(me).clone().sub(ye).normalize();return fe.setFromCamera(new v.Vector2(F,re),le),fe.set(ye,Te),fe}return G.prototype.createRaycaster.call(this,D)},ne.prototype.getRegistEventObject=function(){return this.mapBox.canvasContainer},ne.prototype.getType=function(){return c.kMapBox},ne.prototype.getDomMousePos=function(D){return this.mapBox.map?this.mapBox.map.dom_mousePos(D):void 0},ne.prototype.screenCoord2World=function(D,F,re){if(this.mapBox.map){var le=this.mapBox.map.unproject({x:D,y:F}),fe=this.mapBox.map.lnglat_to_mercator(le.lng,le.lat),me=new v.Vector3(fe.x,fe.y,0);return me.applyMatrix4(this.mapBox.matMapToCADDrawCoord),me}return G.prototype.screenCoord2World.call(this,D,F,re)},ne.prototype.worldCoord2Screen=function(D,F,re){if(this.mapBox.map){var le=new v.Vector3(D,F,re);le.applyMatrix4(this.mapBox.matCADDrawCoordToMap);var fe=this.mapBox.map.mercator_to_lnglat(le.x,le.y,0),me=this.mapBox.map.project([fe.lng,fe.lat]);return new v.Vector3(me.x,me.y,0)}G.prototype.worldCoord2Screen.call(this,D,F,re)},ne.prototype.onInitThreejs=function(){var D=this,F=this.mapBox.threebox;if(F){var re=F.camera,le=F.scene,fe=this.mapBox.canvas,me=F.renderer;this.canvas=fe,me.autoClear=!1;var ye=new b(re,fe);this.mxObject2d.mapBoxInitThreeJSObject(le,re,me,ye)}else{this.mxObject2d.onInitViewScene(),le=new v.Scene;var Te=(fe=this.mapBox.canvas).clientHeight,ke=fe.clientWidth;re=new v.OrthographicCamera(ke/-2,ke/2,Te/2,Te/-2,.1,1e21),this.canvas=fe;var Le=new v.DirectionalLight(16777215);Le.position.set(0,-70,100).normalize(),le.add(Le);var et=new v.DirectionalLight(16777215);et.position.set(0,70,100).normalize(),le.add(et);var it=this.mxObject2d.getRendererParam();(it=it||{}).canvas=fe,it.context=this.mapBox.gl,(me=new v.WebGLRenderer(it)).autoClear=!1,(ye=new b(new v.Camera,fe)).enabled=!1,this.mxObject2d.mapBoxInitThreeJSObject(le,re,me,ye)}this.mxObject2d.initRendererParam({retver:"webgl2",webgl2:!0});var Ue=this;this.mapBox.render=function(ht,De){var Be=new v.Matrix4().fromArray(De);Be.multiply(D.matCADDrawCoordToMap);var Ve=new v.Vector3(0,0,0);if(Ve.applyMatrix4(Be),1<Ve.z){var He=1-Ve.z-1e-5;Be=new v.Matrix4().makeTranslation(0,0,He).multiply(Be)}Ue.mxObject2d.mapBoxRender(ht,Be,!!Ue.mapBox.threebox),Ue.mxObject2d.isRenderLoop()&&D.mapBox.map&&(D.mapBox.map.repaint=!0)},this.mapBox.onResize=function(){Ue.mxObject2d.mapBox_onResizeImp(Ue.canvas.clientWidth,Ue.canvas.clientHeight)}},ne.prototype.updateCameraDisplayRange=function(D,F,re){if(this.mxObject2d.isCppMxCAD()){(me=new v.Matrix4).makeTranslation(-this.mapBox.cadOrigin.x,-this.mapBox.cadOrigin.y,-this.mapBox.cadOrigin.z),(ye=new v.Matrix4).makeTranslation(this.mapBox.mapOrigin.x,this.mapBox.mapOrigin.y,this.mapBox.elevation),(Te=new v.Matrix4).makeScale(this.mapBox.mapLenInCADUnits,-this.mapBox.mapLenInCADUnits,this.mapBox.mapLenInCADUnits);var le=ye.multiply(Te).multiply(me),fe=this.mxObject2d.getDoc2CADMatrix();this.matCADDrawCoordToMap=le.clone().multiply(fe),this.mapBox.matcadtsmall=new v.Matrix4,this.mapBox.matcadtsmall.getInverse(fe),this.mapBox.matCADDrawCoordToMap=this.matCADDrawCoordToMap,this.mapBox.matMapToCADDrawCoord=new v.Matrix4,this.mapBox.matMapToCADDrawCoord.getInverse(this.matCADDrawCoordToMap),this.mapBox.matCadToMap=le,this.mapBox.matMapToCad=new v.Matrix4,this.mapBox.matMapToCad.getInverse(le),1e-5<Math.abs(re)&&this.setViewAngle(re),this.zoomW(D,F,!0,!1)}else{var me,ye,Te;(me=new v.Matrix4).makeTranslation(-this.mapBox.cadOrigin.x,-this.mapBox.cadOrigin.y,-this.mapBox.cadOrigin.z),(ye=new v.Matrix4).makeTranslation(this.mapBox.mapOrigin.x,this.mapBox.mapOrigin.y,this.mapBox.elevation),(Te=new v.Matrix4).makeScale(this.mapBox.mapLenInCADUnits,-this.mapBox.mapLenInCADUnits,this.mapBox.mapLenInCADUnits);var ke=ye.multiply(Te).multiply(me),Le=this.mxObject2d.getWorldToDoc();this.matCADDrawCoordToMap=ke.clone().multiply(Le),this.mapBox.matcadtsmall=new v.Matrix4,this.mapBox.matcadtsmall.getInverse(Le),this.mapBox.matCADDrawCoordToMap=this.matCADDrawCoordToMap,this.mapBox.matMapToCADDrawCoord=new v.Matrix4,this.mapBox.matMapToCADDrawCoord.getInverse(this.matCADDrawCoordToMap),this.mapBox.matCadToMap=ke,this.mapBox.matMapToCad=new v.Matrix4,this.mapBox.matMapToCad.getInverse(ke)}},ne);function ne(D,F){var re=G.call(this,F)||this;return re.matCADDrawCoordToMap=new v.Matrix4,re.isPaning=!1,re.bakPan=!0,re.mapBox=D,re.mxObject2d=F,re.mapBox.matMapToCad=re.mapBox.matCadToMap=re.mapBox.matCADDrawCoordToMap=re.mapBox.matMapToCADDrawCoord=new v.Matrix4,re}r.MxDrawMapBoxThreeJS=V;var W,B=(o(q,W=I),q.prototype.onInitThreejs=function(){this.proxyObj.onInitThreejs()},q.prototype.onInitScene=function(){this.proxyObj.onInitScene()},q.prototype.getType=function(){return c.k3d},q.prototype.updateCameraDisplayRange=function(D,F,re){},q.prototype.addControlsChangeEvent=function(){var D=this.mxObject;this.mxObject.getOrbitControls().addEventListener("change",function(){x.MxJigCmdManager.OnThreeControlsChage(),D.callViewChange(),D.getMxDatabase().onViewChange(),D.getMcObject().isValid()&&D.getMcObject().getGripManager().onControlsChage(),D.updateDisplay()})},q.prototype.updateDisplay=function(D){D===void 0&&(D=!1),this.mxObject.updateDisplayImplement(D)},q.prototype.getRegistEventObject=function(){return this.mxObject.getCanvas()},q);function q(D){var F=W.call(this,D)||this;return F.proxyObj=D,F}r.MxDrawObject3dThreeJS=B},{"../Operate/MxJigCmdManager":53,"../UI/MxUiVue":63,three:19,"three-orbitcontrols":17}],74:[function(t,e,r){var n,o=this&&this.__extends||(n=function(G,V){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ne,W){ne.__proto__=W}||function(ne,W){for(var B in W)Object.prototype.hasOwnProperty.call(W,B)&&(ne[B]=W[B])})(G,V)},function(G,V){function ne(){this.constructor=G}n(G,V),G.prototype=V===null?Object.create(V):(ne.prototype=V.prototype,new ne)});Object.defineProperty(r,"__esModule",{value:!0}),r.McDrawGripJig=r.McDrawGrip=r.McDrawSlect=r.McDrawGripData=void 0;var s=t("three"),c=t("../MxFun"),l=t("../Operate/MxJig"),v=t("../Operate/MxJigCmdManager"),x=t("../MxManager"),w=t("../MxDrawData"),_=function(){this.threeObject=null};r.McDrawGripData=_;var b=(E.prototype.add=function(G){return!this.setId.has(G)&&(this.setId.add(G),this.mcObj.HighlightEntity(G,!0),!0)},E.prototype.remove=function(G){this.setId.has(G)&&(this.setId.delete(G),this.mcObj.HighlightEntity(G,!1))},E.prototype.removeAll=function(){var G=this;this.setId.forEach(function(V){G.mcObj.HighlightEntity(V,!1)}),this.setId.clear()},E.prototype.getAllSelect=function(){var G=[];return this.setId.forEach(function(V,ne){G.push(ne)}),G},E.prototype.getSelectCount=function(){return this.setId.size},E);function E(G){this.mcObj=null,this.setId=new Set,this.mcObj=G}r.McDrawSlect=b;var I=(O.prototype.fireSelectChange=function(){this.isCallingSelectChange||(this.isCallingSelectChange=!0,this.mxObj.callEvent("selectChange",this.getAllSelect()),this.isCallingSelectChange=!1)},O.prototype.getParentGroup=function(){return this.drawGroup||(this.drawGroup=new s.Group,this.drawGroup.renderOrder=x.MxData.iGripRenderOrder,this.mxObj.getTheTempDrawContainer_SmallCoord().add(this.drawGroup)),this.drawGroup},O.prototype.reInit=function(){this.clearAll(),this.drawGroup&&c.MxFun.removeThreejsObject(this.drawGroup,this.mxObj.getTheTempDrawContainer_SmallCoord()),this.drawGroup=null},O.prototype.removeAllEntity=function(){var G=this.getParentGroup();this.mapGrips.forEach(function(V,ne,W){for(var B=V.length,q=0;q<B;q++){var D=V[q];c.MxFun.removeThreejsObject(D.threeObject,G)}}),this.mapGrips=new Map},O.prototype.deleteGripData=function(G){var V=this.getParentGroup(),ne=this.mapGrips.get(G);if(ne)for(var W=ne.length,B=0;B<W;B++){var q=ne[B];c.MxFun.removeThreejsObject(q.threeObject,V)}this.mapGrips.delete(G)},O.prototype.addGripData=function(G,V,ne,W){var B=this.mapGrips.get(G);B==null&&(B=new Array,this.mapGrips.set(G,B));var q=new _;return q.iIndex=V,q.point=new s.Vector3(ne,W),B.push(q),q},O.prototype.createGripDisplayObject=function(G){var V=this.getParentGroup();G.geometry=new s.Geometry;var ne=this.mxObj.toSmallcoord2(G.point.x,G.point.y,G.point.z),W=this.mxObj.screenCoordLong2World(w.MxDrawData.m_dGridWidth/2);G.geometry.vertices.push(new s.Vector3(ne.x-W,ne.y-W,0)),G.geometry.vertices.push(new s.Vector3(ne.x-W,ne.y+W,0)),G.geometry.vertices.push(new s.Vector3(ne.x+W,ne.y+W,0)),G.geometry.vertices.push(new s.Vector3(ne.x+W,ne.y-W,0)),G.geometry.faces.push(new s.Face3(0,1,2)),G.geometry.faces.push(new s.Face3(2,3,0)),G.geometry.computeFaceNormals(),G.geometry.computeVertexNormals();var B=new s.MeshBasicMaterial({color:255,transparent:!0,depthTest:!1,side:s.DoubleSide,opacity:.9}),q=new s.Mesh(G.geometry,B);V.add(q),G.threeObject=q},O.prototype.setPrvCommandSelect=function(G){this.aryPrvCommandSelect=G},O.prototype.getPrvCommandSelect=function(){return this.aryPrvCommandSelect},O.prototype.getAllSelect=function(){return this.mcSelect.getAllSelect()},O.prototype.clearAll=function(){return this.mcSelect.removeAll(),this.mapGrips.size!=0&&(this.removeAllEntity(),!0)},O.prototype.onControlsChage=function(){var G=this;if(this.mapGrips.size!=0){var V=this.mxObj.screenCoordLong2World(8),ne=!1;this.mapGrips.forEach(function(W,B,q){for(var D=W.length,F=0;F<D;F++){var re=W[F];if(re.geometry.vertices.length==4){var le=G.mxObj.cadCoord2Doc(re.point.x,re.point.y,re.point.z);re.geometry.vertices[0].x=le.x-V,re.geometry.vertices[0].y=le.y-V,re.geometry.vertices[1].x=le.x-V,re.geometry.vertices[1].y=le.y+V,re.geometry.vertices[2].x=le.x+V,re.geometry.vertices[2].y=le.y+V,re.geometry.vertices[3].x=le.x+V,re.geometry.vertices[3].y=le.y-V,re.geometry.computeFaceNormals(),re.geometry.computeVertexNormals(),re.geometry.verticesNeedUpdate=!0,ne=!0}}}),ne&&this.mxObj.resetRenderer()}},O.prototype.hitTest=function(G){var V={grips:new Array,ids:new Array,pt:G},ne=new s.Vector3(G.x,G.y,0),W=this.mxObj.viewCoordLong2Cad(32);return this.mapGrips.forEach(function(B,q){for(var D=B.length,F=0;F<D;F++){var re=B[F];if(re.point.distanceTo(ne)<=W){V.grips.push(re),V.ids.push(q);break}}}),V},O.prototype.onMouseLBDown=function(G){var V=this.hitTest(G);return V.grips.length!=0&&(c.MxFun.sendStringToExecute("McDraw_GripEdit",V),!0)},O.prototype.gripEditImp=function(G){var V=G.grips,ne=G.ids,W=G.pt,B=new A(W,V,ne,this.mcObj);B.setDisableDynInput(!0),B.setDisableOsnap(!0),v.MxJigCmdManager.runCmd(B)},O.prototype.addGridDisplay=function(G,V){var ne=this;G&&G.length()!=0&&(this.deleteGripData(V),G.forEach(function(W,B){var q=ne.addGripData(V,B,W.x,W.y);ne.createGripDisplayObject(q)}))},O.prototype.upEntityGridDisplay=function(G){if(G==0)return!1;var V=this.mcObj.ObjectIdToObject(G);if(!V)return!1;var ne=V.getGripPoints();return this.addGridDisplay(ne,G),!0},O.prototype.doPointSelect=function(G){if(!this.mcObj.mcObjectImp)return!1;var V=this.mxObj.screenCoord2Doc(G.x,G.y,0),ne=this.mxObj.docCoord2Cad(V.x,V.y,V.z),W=this.mcObj.mcObjectImp.IntelliSelect_PointSelect(ne.x,ne.y);if(W!=0){this.mxObj.pointMultipleSelect()||(this.mxObj.getMxDatabase().clearMxCurrentSelect(),this.clearAll()),this.mcSelect.add(W);var B=this.upEntityGridDisplay(W);return this.fireSelectChange(),B}},O.prototype.doRangeSelect=function(G,V){if(this.mcObj.mcObjectImp){var ne,W=G.clone(),B=V.clone();ne=V.x<G.x?0:1;for(var q=this.mcObj.mcObjectImp.IntelliSelect_RangeSelect(W.x,W.y,B.x,B.y,ne),D=q.length(),F=D+this.mcSelect.getSelectCount(),re=0;re<D;re++){var le=q.at(re);this.mcSelect.add(le),F<100&&this.upEntityGridDisplay(le)}0<D&&this.fireSelectChange()}},O.prototype.addSelect=function(G,V,ne){if(ne===void 0&&(ne=!0),G==0)return!1;var W=this.mcSelect.add(G);return ne&&this.upEntityGridDisplay(G),V&&this.fireSelectChange(),W},O);function O(G,V){this.mxObj=null,this.mcObj=null,this.mcSelect=null,this.mapGrips=new Map,this.aryPrvCommandSelect=[],this.drawGroup=null,this.isCallingSelectChange=!1,this.mxObj=G,this.mcObj=V,this.mcSelect=new b(V)}r.McDrawGrip=I;var N,A=(o(z,N=l.McEdJigCommand),z.prototype.onExitCommand=function(G){this.tempEntity=null,this.tempEntityWordDraw=null,N.prototype.onExitCommand.call(this,G)},z.prototype.sampler=function(){var G=v.MxJigCmdManager.InType.kGetBegan,V=this.acquirePoint(G);if(V.status==v.MxJigCmdManager.DragStatus.kNormal&&(this.currPt=V.pt,this.tempEntity)){var ne=new s.Vector3(V.pt.x,V.pt.y,V.pt.z),W=new s.Vector3(this.pt.x,this.pt.y,this.pt.z);this.tempEntityWordDraw=this.tempEntity.clone(),this.tempEntityWordDraw&&this.tempEntityWordDraw.moveGripPointsAt(this.grips[0].iIndex,ne.x-W.x,ne.y-W.y,ne.z-W.z)}return V.status},z.prototype.getTypeName=function(){return"McDrawGripEdit"},z.prototype.done=function(G){if(G==v.MxJigCmdManager.DragStatus.kNormal)for(var V=new s.Vector3(this.pt.x,this.pt.y,this.pt.z),ne=new s.Vector3(this.currPt.x,this.currPt.y,this.currPt.z),W=ne.x-V.x,B=ne.y-V.y,q=this.getMxObject().getMcObject().getGripManager(),D=this.grips.length,F=0;F<D;F++){var re=this.grips[F],le=this.ids[F],fe=this.mcObj.ObjectIdToObject(le);fe&&fe.moveGripPointsAt(re.iIndex,W,B,0),q.upEntityGridDisplay(le)}return v.MxJigCmdManager.DoneStatius.kExitCommand},z.prototype.upDisplay=function(){this.mcObj.onReadyJigUpdateDispla(),this.tempEntityWordDraw.tempRelationObject(),this.mcObj.onJigDrawEntityDisplay(this.tempEntityWordDraw.getImp()),this.tempEntityWordDraw.freeTempRelationObject()},z);function z(G,V,ne,W){var B=N.call(this)||this;return B.pt=G,B.grips=V,B.ids=ne,B.currPt=G,B.mcObj=W,B.ids.length&&(B.tempEntity=W.ObjectIdToObject(B.ids[0])),B}r.McDrawGripJig=A},{"../MxDrawData":22,"../MxFun":27,"../MxManager":29,"../Operate/MxJig":52,"../Operate/MxJigCmdManager":53,three:19}],75:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.McDrawObject=void 0;var n=t("../MxManager"),o=t("three"),s=t("../MxFun"),c=t("./McDrawGrip"),l=t("./McTextureManager"),v=window;v.McDrawObjectEvent_openFileComplete=function(_,b,E){var I=n.MxManager.getMxObject(b);I&&I.getMcObject().openFileComplete(_,E)},v.McDrawObjectEvent_call=function(_,b,E){if(b=="mxpost")try{var I=JSON.parse(E);if(I&&I.url&&I.data){var O=new XMLHttpRequest;O.open("POST",I.url,!0),O.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),O.onreadystatechange=function(){O.readyState===4&&O.status},O.send(I.data)}}catch(A){}else if(b=="regen_complete"){if(!(N=n.MxManager.getMxObject(_)))return;N.regenAllMxDbEntity()}else{var N;if(!(N=n.MxManager.getMxObject(_)))return;N.callEvent(b,E)}},v.McDrawObjectEvent_synchronizeuUdateDisplayRange=function(_,b){var E=n.MxManager.getMxObject(_);E&&E.getMcObject().updateDisplayRange(b==1)},v.McDrawObjectEvent_osnapComplete=function(_,b){var E=n.MxManager.getMxObject(_);E&&E.getMcObject().callOsnapComplete(b)},v.McDrawObjectEvent_mcutPrintf=function(_){s.MxFun.acutPrintf(_)},v.McDrawObjectEvent_updateDisplay=function(_){var b=n.MxManager.getMxObject(_);b&&b.updateDisplay()},v.McDrawObjectEvent_loadImages=function(_,b,E,I){var O=n.MxManager.getMxObject(_);if(O){O.getMcObject().getTextureManager().clear();var N=0,A=[];I.substring(0,5)=="blob:"&&(I=I.substring(5)),b.forEach(function(z){var G=n.MxManager.getMxCpp().decodeFromGb2312(z),V=G;G.lastIndexOf("/")==-1?(E&&0<E.length&&(V=E+"/"+V),I&&0<I.length&&(V=I+"/"+V)):G=G.substring(G.lastIndexOf("/")+1).toLowerCase(),A.push(V),O.getMcObject().getTextureManager().loadImage(V,G,function(){++N==b.length&&(A.forEach(function(ne){O.getMcObject().getTextureManager().createOpenGLTexture(ne)}),O.updateDisplay(!1))})})}};var x=(w.prototype.getTextureManager=function(){return this.textureManager},w.prototype.isValid=function(){return this.mcObjectImp!==null},w.prototype.fireStartRunCommand=function(_,b){this.mcObjectImp&&this.mcObjectImp.fireStartRunCommand(_,b)},w.prototype.fireEndRunCommand=function(_,b){this.mcObjectImp&&this.mcObjectImp.fireEndRunCommand(_,b)},w.prototype.undo=function(){this.mcObjectImp&&this.mcObjectImp.undo()},w.prototype.redo=function(){this.mcObjectImp&&this.mcObjectImp.redo()},w.prototype.initCAD2Doc=function(_,b){this.matCad2doc=_,this.matDoc2cad=b},w.prototype.getSysVarLong=function(_){return this.mcObjectImp.GetSysVarLong(_)},w.prototype.getSysVarDouble=function(_){return this.mcObjectImp.GetSysVarDouble(_)},w.prototype.getSysVarPoint=function(_){var b=this.mcObjectImp.GetSysVarPoint(_);return new o.Vector3(b.x,b.y,b.z)},w.prototype.ObjectIdToMdObjectImp=function(_){return this.mcObjectImp?this.mxcpp.App.getImp().ObjectIdToMdObject(_):null},w.prototype.DestroyObject=function(_){if(!this.mcObjectImp)return null;this.mcObject.destroyObject(_)},w.prototype.onJigCommandEnd=function(){this.mcObjectImp&&this.mcObjectImp.EntityTempWordDraw_onJigCommandEnd()},w.prototype.callOsnapComplete=function(_){if(this.m_retCall&&_)try{var b=_;if(typeof _=="string"&&(b=JSON.parse(_)),b.callId!=this.m_lOsnapCallCount)return;this.m_retCall(b)}catch(E){}},w.prototype.doc2cad1=function(_){return _},w.prototype.doc2cad2=function(_,b){return new o.Vector3(_,b,0)},w.prototype.cad2doc1=function(_){return _},w.prototype.cad2doc2=function(_,b){return new o.Vector3(_,b,0)},w.prototype.onNotifyOsnap=function(_,b){if(this.mcObjectImp){this.m_lOsnapCallCount++,this.m_retCall=b,1e5<this.m_lOsnapCallCount&&(this.m_lOsnapCallCount=1);var E,I=this.doc2cad2(_.ptx,_.pty);_.isValidPrvInputPoint&&(E=this.doc2cad2(_.prvPtx,_.prvPty)),this.mcObjectImp.Osnap_NotifyOsnap(I.x,I.y,_.isValidPrvInputPoint,_.isValidPrvInputPoint?E.x:0,_.isValidPrvInputPoint?E.y:0,_.osmode,_.SearchRnge,this.m_lOsnapCallCount)}},w.prototype.DrawEntity=function(_,b){_&&this.mcObjectImp&&(b&&_.SetTrueColor(this.THREEColor2MdCmColor(b)),this.mcObjectImp.DrawEntity(_))},w.prototype.onJigDrawEntityDisplay=function(_,b){_&&this.mcObjectImp&&(b&&_.SetTrueColor(this.THREEColor2MdCmColor(b)),this.mcObjectImp.EntityTempWordDraw_onJigDrawEntityDisplay(_))},w.prototype.THREEColor2MdCmColor=function(_){var b=new o.Color(_),E=new this.mxcppImp.MdCmColor;return E.setRGB(255*b.r,255*b.g,255*b.b),E},w.prototype.onJigDrawEntityDisplay_line=function(_,b,E,I,O,N,A){if(this.mcObjectImp){var z=new this.mxcppImp.MdDbLine,G=new this.mxcppImp.MdGePoint3d;G.x=_,G.y=b,G.z=E,z.setStartPoint(G);var V=new this.mxcppImp.MdGePoint3d;V.x=I,V.y=O,V.z=N,z.setEndPoint(V),z.SetTrueColor(this.THREEColor2MdCmColor(A)),this.mcObjectImp.EntityTempWordDraw_onJigDrawEntityDisplay(z)}},w.prototype.DrawLine=function(_,b,E,I,O,N,A){if(this.mcObjectImp){var z=new this.mxcppImp.MdDbLine,G=new this.mxcppImp.MdGePoint3d;G.x=_,G.y=b,G.z=E,z.setStartPoint(G);var V=new this.mxcppImp.MdGePoint3d;V.x=I,V.y=O,V.z=N,z.setEndPoint(V),z.SetTrueColor(this.THREEColor2MdCmColor(A)),this.mcObjectImp.DrawEntity(z)}},w.prototype.HighlightEntity=function(_,b){if(!this.mcDrawUtility)return!1;this.mcDrawUtility.highlightEntity(_,b)},w.prototype.onReadyJigUpdateDispla=function(){this.mcObjectImp&&this.mcObjectImp.EntityTempWordDraw_onReadyJigUpdateDispla()},w.prototype.onJigClearDisplay=function(){this.mcObjectImp&&this.mcObjectImp.EntityTempWordDraw_onJigClearDisplay()},w.prototype.ObjectIdToObject=function(_){return this.mcObject?this.mxcpp.App.objectIdToObject(_):null},w.prototype.init=function(_,b){b.initMxObject(_),this.mxObject=_,this.mcObject=b,this.mcObjectImp=b.getImp(),this.mxcpp=b.getMxCpp(),this.mxcppImp=this.mxcpp.mxcadassemblyimp,this.grip=new c.McDrawGrip(_,this),this.mcDrawUtility=new this.mxcppImp.McDrawUtility,this.textureManager=new l.McTextureManager(this,_.getRenderer().getContext());var E=this;this.mxObject.addEvent("dragWillEnd",function(){E.mcObjectImp.fireEventDragWillEnd()})},w.prototype.setSize=function(_,b){if(!this.mcObjectImp)return!1;this.mcObjectImp.fireEventWindowSize(_,b)},w.prototype.getGripManager=function(){return this.grip},w.prototype.updateDisplayRange=function(_){if(_===void 0&&(_=!1),this.mcObjectImp){var b=this.mcObjectImp.getViewDataJsonParam(_);b=b.replace(/\\/g,"\\\\");try{var E=JSON.parse(b),I=this.mxObject;if(E!=null){I.intiDoc2Wold(new o.Matrix4),I.initCAD2Doc(JSON.parse(E.DToSMat)),I.initializingObjectMatrix(),I.updateCameraDisplayRange(new o.Vector3(E.pt1x,E.pt1y,0),new o.Vector3(E.pt2x,E.pt2y,0),E.viewangle),I.initAllLayoutName(JSON.parse(E.layout)),I.updateDisplay(!0);var O=s.MxFun.getUiObj();O!=null&&(O.SetLayoutData(E.layout),O.UpDisplayLayout())}}catch(N){console.log("getViewDataJsonParam exception")}}},w.prototype.openFileComplete=function(_,b){this.updateDisplayRange(),this.mxObject.callOpenFileComplete(_,b)},w.prototype.updateDisplayMapBox=function(_){return!!this.mcObjectImp&&(this.mxObject.getScene().background!==null&&console.log("mxerror: background must be empty"),this.mcObjectImp.updateDisplay(new o.Matrix4().elements,_.elements))},w.prototype.updateDisplay=function(){if(!this.mcObjectImp)return!1;var _=this.mxObject.getCamera();this.mxObject.getScene().background!==null&&console.log("mxerror: background must be empty");var b=new o.Matrix4;b.multiplyMatrices(_.matrixWorldInverse,this.mxObject.getDoc2World());var E=_.projectionMatrix;return this.mcObjectImp.updateDisplay(b.elements,E.elements)},w.prototype.updateDisplayMatrixData=function(){if(this.mcObjectImp){var _=this.mxObject.getCamera(),b=new o.Matrix4;b.multiplyMatrices(_.matrixWorldInverse,this.mxObject.getDoc2World());var E=_.projectionMatrix;return this.mcObjectImp.updateDisplayMatrixData(b.elements,E.elements)}},w.prototype.createTexture=function(){return this.mcObjectImp.createTexture()},w.prototype.deleteTexture=function(_){return this.mcObjectImp.deleteTexture(_)},w.prototype.bindTexture=function(_,b){return this.mcObjectImp.bindTexture(_,b)},w.prototype.allocTextureHandle=function(_){return this.mcObjectImp.allocTextureHandle(_)},w.prototype.registTexture=function(_,b){return this.mcObjectImp.registTexture(_,b)},w);function w(){this.grip=null,this.mcObjectImp=null,this.mxcppImp=null,this.mxcpp=null,this.mcObject=null,this.mcDrawUtility=null,this.m_lOsnapCallCount=1,this.m_retCall=null,this.matCad2doc=new o.Matrix4,this.matDoc2cad=new o.Matrix4}r.McDrawObject=x},{"../MxFun":27,"../MxManager":29,"./McDrawGrip":74,"./McTextureManager":76,three:19}],76:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.McTextureManager=void 0;var n=t("three"),o=t("../MxManager"),s=(c.prototype.get=function(x){if(this.extensions[x]!==void 0)return this.extensions[x];var w;switch(x){case"WEBGL_depth_texture":w=this.gl.getExtension("WEBGL_depth_texture")||this.gl.getExtension("MOZ_WEBGL_depth_texture")||this.gl.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":w=this.gl.getExtension("EXT_texture_filter_anisotropic")||this.gl.getExtension("MOZ_EXT_texture_filter_anisotropic")||this.gl.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":w=this.gl.getExtension("WEBGL_compressed_texture_s3tc")||this.gl.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||this.gl.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":w=this.gl.getExtension("WEBGL_compressed_texture_pvrtc")||this.gl.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:w=this.gl.getExtension(x)}return w===null&&console.warn("THREE.WebGLRenderer: "+x+" extension not supported."),this.extensions[x]=w},c);function c(x){this.extensions={},this.gl=x}var l=(v.prototype.allocHandle=function(x){return this.mcObject.allocTextureHandle(o.MxManager.getMxCpp().encodeToGb2312(x))},v.prototype.convert=function(x){var w;if(x===n.UnsignedByteType)return 5121;if(x===n.UnsignedShort4444Type)return 32819;if(x===n.UnsignedShort5551Type)return 32820;if(x===n.UnsignedShort565Type)return 33635;if(x===n.ByteType)return 5120;if(x===n.ShortType)return 5122;if(x===n.UnsignedShortType)return 5123;if(x===n.IntType)return 5124;if(x===n.UnsignedIntType)return 5125;if(x===n.FloatType)return 5126;if(x===n.HalfFloatType)return this.isWebGL2?5131:(w=this.extensions.get("OES_texture_half_float"))!==null?w.HALF_FLOAT_OES:null;if(x===n.AlphaFormat)return 6406;if(x===n.RGBFormat)return 6407;if(x===n.RGBAFormat)return 6408;if(x===n.LuminanceFormat)return 6409;if(x===n.LuminanceAlphaFormat)return 6410;if(x===n.DepthFormat)return 6402;if(x===n.DepthStencilFormat)return 34041;if(x===n.RedFormat)return 6403;if(x===n.RedIntegerFormat)return 36244;if(x===n.RGFormat)return 33319;if(x===n.RGIntegerFormat)return 33320;if(x===n.RGBIntegerFormat)return 36248;if(x===n.RGBAIntegerFormat)return 36249;if(x===n.RGB_S3TC_DXT1_Format||x===n.RGBA_S3TC_DXT1_Format||x===n.RGBA_S3TC_DXT3_Format||x===n.RGBA_S3TC_DXT5_Format){if((w=this.extensions.get("WEBGL_compressed_texture_s3tc"))===null)return null;if(x===n.RGB_S3TC_DXT1_Format)return w.COMPRESSED_RGB_S3TC_DXT1_EXT;if(x===n.RGBA_S3TC_DXT1_Format)return w.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(x===n.RGBA_S3TC_DXT3_Format)return w.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(x===n.RGBA_S3TC_DXT5_Format)return w.COMPRESSED_RGBA_S3TC_DXT5_EXT}if(x===n.RGB_PVRTC_4BPPV1_Format||x===n.RGB_PVRTC_2BPPV1_Format||x===n.RGBA_PVRTC_4BPPV1_Format||x===n.RGBA_PVRTC_2BPPV1_Format){if((w=this.extensions.get("WEBGL_compressed_texture_pvrtc"))===null)return null;if(x===n.RGB_PVRTC_4BPPV1_Format)return w.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(x===n.RGB_PVRTC_2BPPV1_Format)return w.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(x===n.RGBA_PVRTC_4BPPV1_Format)return w.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(x===n.RGBA_PVRTC_2BPPV1_Format)return w.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}return x===n.RGB_ETC1_Format?(w=this.extensions.get("WEBGL_compressed_texture_etc1"))!==null?w.COMPRESSED_RGB_ETC1_WEBGL:null:x===n.RGBA_ASTC_4x4_Format||x===n.RGBA_ASTC_5x4_Format||x===n.RGBA_ASTC_5x5_Format||x===n.RGBA_ASTC_6x5_Format||x===n.RGBA_ASTC_6x6_Format||x===n.RGBA_ASTC_8x5_Format||x===n.RGBA_ASTC_8x6_Format||x===n.RGBA_ASTC_8x8_Format||x===n.RGBA_ASTC_10x5_Format||x===n.RGBA_ASTC_10x6_Format||x===n.RGBA_ASTC_10x8_Format||x===n.RGBA_ASTC_10x10_Format||x===n.RGBA_ASTC_12x10_Format||x===n.RGBA_ASTC_12x12_Format?(w=this.extensions.get("WEBGL_compressed_texture_astc"))!==null?x:null:x===n.UnsignedInt248Type?this.isWebGL2?34042:(w=this.extensions.get("WEBGL_depth_texture"))!==null?w.UNSIGNED_INT_24_8_WEBGL:null:void 0},v.prototype.textureNeedsPowerOfTwo=function(x){return x.wrapS!==1001||x.wrapT!==1001||x.minFilter!==1003&&x.minFilter!==1006},v.prototype.createCanvas=function(x,w){return document.createElementNS("http://www.w3.org/1999/xhtml","canvas")},v.prototype.floorPowerOfTwo=function(x){return Math.pow(2,Math.floor(Math.log(x)/Math.LN2))},v.prototype.resizeImage=function(x,w,_,b){var E=1;if((x.width>b||x.height>b)&&(E=b/Math.max(x.width,x.height)),E<1||w===!0){if(typeof HTMLImageElement!="undefined"&&x instanceof HTMLImageElement||typeof HTMLCanvasElement!="undefined"&&x instanceof HTMLCanvasElement||typeof ImageBitmap!="undefined"&&x instanceof ImageBitmap){var I=w?this.floorPowerOfTwo:Math.floor,O=I(E*x.width),N=I(E*x.height);this._canvas===void 0&&(this._canvas=this.createCanvas(O,N));var A=_?this.createCanvas(O,N):this._canvas;return A.width=O,A.height=N,A.getContext("2d").drawImage(x,0,0,O,N),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+x.width+"x"+x.height+") to ("+O+"x"+N+")."),A}return"data"in x&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+x.width+"x"+x.height+")."),x}return x},v.prototype.mathIsPowerOfTwo=function(x){return(x&x-1)==0&&x!==0},v.prototype.isPowerOfTwo=function(x){return this.mathIsPowerOfTwo(x.width)&&this.mathIsPowerOfTwo(x.height)},v.prototype.getInternalFormat=function(x,w,_){if(this.isWebGL2===!1)return w;if(x!==null){if(this._gl[x]!==void 0)return this._gl[x];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+x+"'")}var b=w;return w===6403&&(_===5126&&(b=33326),_===5131&&(b=33325),_===5121&&(b=33321)),w===6407&&(_===5126&&(b=34837),_===5131&&(b=34843),_===5121&&(b=32849)),w===6408&&(_===5126&&(b=34836),_===5131&&(b=34842),_===5121&&(b=32856)),b===33325||b===33326||b===34842||b===34836?this.extensions.get("EXT_color_buffer_float"):b!==34843&&b!==34837||console.warn("THREE.WebGLRenderer: Floating point textures with RGB format not supported. Please use RGBA instead."),b},v.prototype.filterFallback=function(x){return x===n.NearestFilter||x===n.NearestMipmapNearestFilter||x===n.NearestMipmapLinearFilter?9728:9729},v.prototype.setTextureParameters=function(x,w,_){var b={};b[n.RepeatWrapping]=10497,b[n.ClampToEdgeWrapping]=33071,b[n.MirroredRepeatWrapping]=33648;var E={};E[n.NearestFilter]=9728,E[n.NearestMipmapNearestFilter]=9984,E[n.NearestMipmapLinearFilter]=9986,E[n.LinearFilter]=9729,E[n.LinearMipmapNearestFilter]=9985,E[n.LinearMipmapLinearFilter]=9987,_?(this._gl.texParameteri(x,10242,b[w.wrapS]),this._gl.texParameteri(x,10243,b[w.wrapT]),x!==32879&&x!==35866||this._gl.texParameteri(x,32882,b[w.wrapR]),this._gl.texParameteri(x,10240,E[w.magFilter]),this._gl.texParameteri(x,10241,E[w.minFilter])):(this._gl.texParameteri(x,10242,33071),this._gl.texParameteri(x,10243,33071),x!==32879&&x!==35866||this._gl.texParameteri(x,32882,33071),w.wrapS===n.ClampToEdgeWrapping&&w.wrapT===n.ClampToEdgeWrapping||console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),this._gl.texParameteri(x,10240,this.filterFallback(w.magFilter)),this._gl.texParameteri(x,10241,this.filterFallback(w.minFilter)),w.minFilter!==n.NearestFilter&&w.minFilter!==n.LinearFilter&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter."))},v.prototype.textureNeedsGenerateMipmaps=function(x,w){return x.generateMipmaps&&w&&x.minFilter!==n.NearestFilter&&x.minFilter!==n.LinearFilter},v.prototype.generateMipmap=function(x,w,_,b,E){this._gl.generateMipmap(w)},v.prototype.clear=function(){var x=this;Object.keys(this.mapImagePathToTexture).forEach(function(w){var _=x.mapImagePathToTexture[w];_&&_.webglTexture&&x.mcObject.deleteTexture(_.webglTexture)}),this.mapImagePathToTexture={}},v.prototype.loadImage=function(x,w,_){if(this.mapImagePathToTexture[x]){var b=this.mapImagePathToTexture[x];return b&&b.isload&&b.texture?_(!0,b.texture.image):_(!1,void 0),0}var E={isload:!1,texture:null,handle:this.allocHandle(w),webglTexture:void 0};return this.mapImagePathToTexture[x]=E,new n.TextureLoader().load(x,function(I){E.isload=!0,E.texture=I,_(!0,I.image)},void 0,function(I){E.isload=!1,_(!1,void 0)}),E.handle},v.prototype.createOpenGLTexture=function(x){var w=this.mapImagePathToTexture[x];if(!w||!w.isload||w.webglTexture)return!1;var _=w.texture;w.webglTexture=this.mcObject.createTexture(),this._gl.activeTexture(33984),this.mcObject.bindTexture(3553,w.webglTexture),this._gl.pixelStorei(37440,_.flipY),this._gl.pixelStorei(37441,_.premultiplyAlpha),this._gl.pixelStorei(3317,_.unpackAlignment);var b=this._gl.getParameter(3379),E=this.textureNeedsPowerOfTwo(_)&&this.isPowerOfTwo(_.image)===!1,I=this.resizeImage(_.image,E,!1,b),O=this.isPowerOfTwo(I)||this.isWebGL2,N=this.convert(_.format),A=this.convert(_.type),z=this.getInternalFormat(_.internalFormat,N,A);this.setTextureParameters(3553,_,O);var G,V=_.mipmaps;if(0<V.length&&O){for(var ne=0,W=V.length;ne<W;ne++)G=V[ne],this._gl.texImage2D(3553,ne,z,N,A,G);_.generateMipmaps=!1}else this._gl.texImage2D(3553,0,z,N,A,I);this.textureNeedsGenerateMipmaps(_,O)&&this.generateMipmap(w,3553,_,I.width,I.height),this.mcObject.registTexture(w.handle,w.webglTexture)},v);function v(x,w){this.mapImagePathToTexture={},this.mcObject=x,this._gl=w,this.extensions=new s(w),this.isWebGL2=typeof WebGL2RenderingContext!="undefined"&&w instanceof WebGL2RenderingContext}r.McTextureManager=l},{"../MxManager":29,three:19}]},{},[56])}function registerMxDbEntity(){store.events.emit("MxDbEntityRegister")}let registerList=[];function addRegisterMxDbEntity(t){t.isRegister=!1;const e=()=>{!t.isRegister&&t.register&&t.register(),store.events.off("stateChange",e)};registerList.push(e)}const callRegisterMxDbEntityLists=()=>{registerList.forEach(t=>{t&&t()}),registerList=[]};store.events.on("MxDbEntityRegister",callRegisterMxDbEntityLists);var commonjsGlobal=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function unwrapExports(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function createCommonjsModule(t,e){return t(e={exports:{}},e.exports),e.exports}var jquery$1=createCommonjsModule(function(t){var e,r;e=typeof window!="undefined"?window:commonjsGlobal,r=function(n,o){var s=[],c=Object.getPrototypeOf,l=s.slice,v=s.flat?function(de){return s.flat.call(de)}:function(de){return s.concat.apply([],de)},x=s.push,w=s.indexOf,_={},b=_.toString,E=_.hasOwnProperty,I=E.toString,O=I.call(Object),N={},A=function(de){return typeof de=="function"&&typeof de.nodeType!="number"&&typeof de.item!="function"},z=function(de){return de!=null&&de===de.window},G=n.document,V={type:!0,src:!0,nonce:!0,noModule:!0};function ne(de,Me,qe){var Qe,J,ae=(qe=qe||G).createElement("script");if(ae.text=de,Me)for(Qe in V)(J=Me[Qe]||Me.getAttribute&&Me.getAttribute(Qe))&&ae.setAttribute(Qe,J);qe.head.appendChild(ae).parentNode.removeChild(ae)}function W(de){return de==null?de+"":typeof de=="object"||typeof de=="function"?_[b.call(de)]||"object":typeof de}var B="3.7.0",q=/HTML$/i,D=function(de,Me){return new D.fn.init(de,Me)};function F(de){var Me=!!de&&"length"in de&&de.length,qe=W(de);return!A(de)&&!z(de)&&(qe==="array"||Me===0||typeof Me=="number"&&Me>0&&Me-1 in de)}function re(de,Me){return de.nodeName&&de.nodeName.toLowerCase()===Me.toLowerCase()}D.fn=D.prototype={jquery:B,constructor:D,length:0,toArray:function(){return l.call(this)},get:function(de){return de==null?l.call(this):de<0?this[de+this.length]:this[de]},pushStack:function(de){var Me=D.merge(this.constructor(),de);return Me.prevObject=this,Me},each:function(de){return D.each(this,de)},map:function(de){return this.pushStack(D.map(this,function(Me,qe){return de.call(Me,qe,Me)}))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(D.grep(this,function(de,Me){return(Me+1)%2}))},odd:function(){return this.pushStack(D.grep(this,function(de,Me){return Me%2}))},eq:function(de){var Me=this.length,qe=+de+(de<0?Me:0);return this.pushStack(qe>=0&&qe<Me?[this[qe]]:[])},end:function(){return this.prevObject||this.constructor()},push:x,sort:s.sort,splice:s.splice},D.extend=D.fn.extend=function(){var de,Me,qe,Qe,J,ae,ve=arguments[0]||{},be=1,Re=arguments.length,Ge=!1;for(typeof ve=="boolean"&&(Ge=ve,ve=arguments[be]||{},be++),typeof ve=="object"||A(ve)||(ve={}),be===Re&&(ve=this,be--);be<Re;be++)if((de=arguments[be])!=null)for(Me in de)Qe=de[Me],Me!=="__proto__"&&ve!==Qe&&(Ge&&Qe&&(D.isPlainObject(Qe)||(J=Array.isArray(Qe)))?(qe=ve[Me],ae=J&&!Array.isArray(qe)?[]:J||D.isPlainObject(qe)?qe:{},J=!1,ve[Me]=D.extend(Ge,ae,Qe)):Qe!==void 0&&(ve[Me]=Qe));return ve},D.extend({expando:"jQuery"+(B+Math.random()).replace(/\D/g,""),isReady:!0,error:function(de){throw new Error(de)},noop:function(){},isPlainObject:function(de){var Me,qe;return!(!de||b.call(de)!=="[object Object]"||(Me=c(de))&&(typeof(qe=E.call(Me,"constructor")&&Me.constructor)!="function"||I.call(qe)!==O))},isEmptyObject:function(de){var Me;for(Me in de)return!1;return!0},globalEval:function(de,Me,qe){ne(de,{nonce:Me&&Me.nonce},qe)},each:function(de,Me){var qe,Qe=0;if(F(de))for(qe=de.length;Qe<qe&&Me.call(de[Qe],Qe,de[Qe])!==!1;Qe++);else for(Qe in de)if(Me.call(de[Qe],Qe,de[Qe])===!1)break;return de},text:function(de){var Me,qe="",Qe=0,J=de.nodeType;if(J){if(J===1||J===9||J===11)return de.textContent;if(J===3||J===4)return de.nodeValue}else for(;Me=de[Qe++];)qe+=D.text(Me);return qe},makeArray:function(de,Me){var qe=Me||[];return de!=null&&(F(Object(de))?D.merge(qe,typeof de=="string"?[de]:de):x.call(qe,de)),qe},inArray:function(de,Me,qe){return Me==null?-1:w.call(Me,de,qe)},isXMLDoc:function(de){var Me=de&&de.namespaceURI,qe=de&&(de.ownerDocument||de).documentElement;return!q.test(Me||qe&&qe.nodeName||"HTML")},merge:function(de,Me){for(var qe=+Me.length,Qe=0,J=de.length;Qe<qe;Qe++)de[J++]=Me[Qe];return de.length=J,de},grep:function(de,Me,qe){for(var Qe=[],J=0,ae=de.length,ve=!qe;J<ae;J++)!Me(de[J],J)!==ve&&Qe.push(de[J]);return Qe},map:function(de,Me,qe){var Qe,J,ae=0,ve=[];if(F(de))for(Qe=de.length;ae<Qe;ae++)(J=Me(de[ae],ae,qe))!=null&&ve.push(J);else for(ae in de)(J=Me(de[ae],ae,qe))!=null&&ve.push(J);return v(ve)},guid:1,support:N}),typeof Symbol=="function"&&(D.fn[Symbol.iterator]=s[Symbol.iterator]),D.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(de,Me){_["[object "+Me+"]"]=Me.toLowerCase()});var le=s.pop,fe=s.sort,me=s.splice,ye="[\\x20\\t\\r\\n\\f]",Te=new RegExp("^"+ye+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ye+"+$","g");D.contains=function(de,Me){var qe=Me&&Me.parentNode;return de===qe||!(!qe||qe.nodeType!==1||!(de.contains?de.contains(qe):de.compareDocumentPosition&&16&de.compareDocumentPosition(qe)))};var ke=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function Le(de,Me){return Me?de==="\0"?"\uFFFD":de.slice(0,-1)+"\\"+de.charCodeAt(de.length-1).toString(16)+" ":"\\"+de}D.escapeSelector=function(de){return(de+"").replace(ke,Le)};var et=G,it=x;(function(){var de,Me,qe,Qe,J,ae,ve,be,Re,Ge,rt=it,Dt=D.expando,Mt=0,Yt=0,Xn=Io(),Sn=Io(),Gn=Io(),Or=Io(),ki=function(gn,Zn){return gn===Zn&&(J=!0),0},Ia="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ma="(?:\\\\[\\da-fA-F]{1,6}"+ye+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",na="\\["+ye+"*("+ma+")(?:"+ye+"*([*^$|!~]?=)"+ye+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+ma+"))|)"+ye+"*\\]",Ya=":("+ma+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+na+")*)|.*)\\)|)",Da=new RegExp(ye+"+","g"),Yi=new RegExp("^"+ye+"*,"+ye+"*"),Ba=new RegExp("^"+ye+"*([>+~]|"+ye+")"+ye+"*"),gl=new RegExp(ye+"|>"),Oa=new RegExp(Ya),Oo=new RegExp("^"+ma+"$"),Ls={ID:new RegExp("^#("+ma+")"),CLASS:new RegExp("^\\.("+ma+")"),TAG:new RegExp("^("+ma+"|[*])"),ATTR:new RegExp("^"+na),PSEUDO:new RegExp("^"+Ya),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ye+"*(even|odd|(([+-]|)(\\d*)n|)"+ye+"*(?:([+-]|)"+ye+"*(\\d+)|))"+ye+"*\\)|)","i"),bool:new RegExp("^(?:"+Ia+")$","i"),needsContext:new RegExp("^"+ye+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ye+"*((?:-\\d)?\\d*)"+ye+"*\\)|)(?=[^-]|$)","i")},Ss=/^(?:input|select|textarea|button)$/i,Es=/^h\d$/i,vs=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,po=/[+~]/,oo=new RegExp("\\\\[\\da-fA-F]{1,6}"+ye+"?|\\\\([^\\r\\n\\f])","g"),Ko=function(gn,Zn){var Fn="0x"+gn.slice(1)-65536;return Zn||(Fn<0?String.fromCharCode(Fn+65536):String.fromCharCode(Fn>>10|55296,1023&Fn|56320))},Ts=function(){os()},as=Xl(function(gn){return gn.disabled===!0&&re(gn,"fieldset")},{dir:"parentNode",next:"legend"});try{rt.apply(s=l.call(et.childNodes),et.childNodes),s[et.childNodes.length].nodeType}catch(gn){rt={apply:function(Zn,Fn){it.apply(Zn,l.call(Fn))},call:function(Zn){it.apply(Zn,l.call(arguments,1))}}}function Qi(gn,Zn,Fn,Mr){var Nr,_i,Ci,Vt,Wt,Jn,Vn,Bn=Zn&&Zn.ownerDocument,Hn=Zn?Zn.nodeType:9;if(Fn=Fn||[],typeof gn!="string"||!gn||Hn!==1&&Hn!==9&&Hn!==11)return Fn;if(!Mr&&(os(Zn),Zn=Zn||ae,be)){if(Hn!==11&&(Wt=vs.exec(gn)))if(Nr=Wt[1]){if(Hn===9){if(!(Ci=Zn.getElementById(Nr)))return Fn;if(Ci.id===Nr)return rt.call(Fn,Ci),Fn}else if(Bn&&(Ci=Bn.getElementById(Nr))&&Qi.contains(Zn,Ci)&&Ci.id===Nr)return rt.call(Fn,Ci),Fn}else{if(Wt[2])return rt.apply(Fn,Zn.getElementsByTagName(gn)),Fn;if((Nr=Wt[3])&&Zn.getElementsByClassName)return rt.apply(Fn,Zn.getElementsByClassName(Nr)),Fn}if(!(Or[gn+" "]||Re&&Re.test(gn))){if(Vn=gn,Bn=Zn,Hn===1&&(gl.test(gn)||Ba.test(gn))){for((Bn=po.test(gn)&&Ds(Zn.parentNode)||Zn)==Zn&&N.scope||((Vt=Zn.getAttribute("id"))?Vt=D.escapeSelector(Vt):Zn.setAttribute("id",Vt=Dt)),_i=(Jn=il(gn)).length;_i--;)Jn[_i]=(Vt?"#"+Vt:":scope")+" "+zs(Jn[_i]);Vn=Jn.join(",")}try{return rt.apply(Fn,Bn.querySelectorAll(Vn)),Fn}catch(kr){Or(gn,!0)}finally{Vt===Dt&&Zn.removeAttribute("id")}}}return pu(gn.replace(Te,"$1"),Zn,Fn,Mr)}function Io(){var gn=[];return function Zn(Fn,Mr){return gn.push(Fn+" ")>Me.cacheLength&&delete Zn[gn.shift()],Zn[Fn+" "]=Mr}}function Jo(gn){return gn[Dt]=!0,gn}function fo(gn){var Zn=ae.createElement("fieldset");try{return!!gn(Zn)}catch(Fn){return!1}finally{Zn.parentNode&&Zn.parentNode.removeChild(Zn),Zn=null}}function ul(gn){return function(Zn){return re(Zn,"input")&&Zn.type===gn}}function lo(gn){return function(Zn){return(re(Zn,"input")||re(Zn,"button"))&&Zn.type===gn}}function bu(gn){return function(Zn){return"form"in Zn?Zn.parentNode&&Zn.disabled===!1?"label"in Zn?"label"in Zn.parentNode?Zn.parentNode.disabled===gn:Zn.disabled===gn:Zn.isDisabled===gn||Zn.isDisabled!==!gn&&as(Zn)===gn:Zn.disabled===gn:"label"in Zn&&Zn.disabled===gn}}function Wo(gn){return Jo(function(Zn){return Zn=+Zn,Jo(function(Fn,Mr){for(var Nr,_i=gn([],Fn.length,Zn),Ci=_i.length;Ci--;)Fn[Nr=_i[Ci]]&&(Fn[Nr]=!(Mr[Nr]=Fn[Nr]))})})}function Ds(gn){return gn&&gn.getElementsByTagName!==void 0&&gn}function os(gn){var Zn,Fn=gn?gn.ownerDocument||gn:et;return Fn!=ae&&Fn.nodeType===9&&Fn.documentElement&&(ve=(ae=Fn).documentElement,be=!D.isXMLDoc(ae),Ge=ve.matches||ve.webkitMatchesSelector||ve.msMatchesSelector,et!=ae&&(Zn=ae.defaultView)&&Zn.top!==Zn&&Zn.addEventListener("unload",Ts),N.getById=fo(function(Mr){return ve.appendChild(Mr).id=D.expando,!ae.getElementsByName||!ae.getElementsByName(D.expando).length}),N.disconnectedMatch=fo(function(Mr){return Ge.call(Mr,"*")}),N.scope=fo(function(){return ae.querySelectorAll(":scope")}),N.cssHas=fo(function(){try{return ae.querySelector(":has(*,:jqfake)"),!1}catch(Mr){return!0}}),N.getById?(Me.filter.ID=function(Mr){var Nr=Mr.replace(oo,Ko);return function(_i){return _i.getAttribute("id")===Nr}},Me.find.ID=function(Mr,Nr){if(Nr.getElementById!==void 0&&be){var _i=Nr.getElementById(Mr);return _i?[_i]:[]}}):(Me.filter.ID=function(Mr){var Nr=Mr.replace(oo,Ko);return function(_i){var Ci=_i.getAttributeNode!==void 0&&_i.getAttributeNode("id");return Ci&&Ci.value===Nr}},Me.find.ID=function(Mr,Nr){if(Nr.getElementById!==void 0&&be){var _i,Ci,Vt,Wt=Nr.getElementById(Mr);if(Wt){if((_i=Wt.getAttributeNode("id"))&&_i.value===Mr)return[Wt];for(Vt=Nr.getElementsByName(Mr),Ci=0;Wt=Vt[Ci++];)if((_i=Wt.getAttributeNode("id"))&&_i.value===Mr)return[Wt]}return[]}}),Me.find.TAG=function(Mr,Nr){return Nr.getElementsByTagName!==void 0?Nr.getElementsByTagName(Mr):Nr.querySelectorAll(Mr)},Me.find.CLASS=function(Mr,Nr){if(Nr.getElementsByClassName!==void 0&&be)return Nr.getElementsByClassName(Mr)},Re=[],fo(function(Mr){var Nr;ve.appendChild(Mr).innerHTML="<a id='"+Dt+"' href='' disabled='disabled'></a><select id='"+Dt+"-\r\\' disabled='disabled'><option selected=''></option></select>",Mr.querySelectorAll("[selected]").length||Re.push("\\["+ye+"*(?:value|"+Ia+")"),Mr.querySelectorAll("[id~="+Dt+"-]").length||Re.push("~="),Mr.querySelectorAll("a#"+Dt+"+*").length||Re.push(".#.+[+~]"),Mr.querySelectorAll(":checked").length||Re.push(":checked"),(Nr=ae.createElement("input")).setAttribute("type","hidden"),Mr.appendChild(Nr).setAttribute("name","D"),ve.appendChild(Mr).disabled=!0,Mr.querySelectorAll(":disabled").length!==2&&Re.push(":enabled",":disabled"),(Nr=ae.createElement("input")).setAttribute("name",""),Mr.appendChild(Nr),Mr.querySelectorAll("[name='']").length||Re.push("\\["+ye+"*name"+ye+"*="+ye+`*(?:''|"")`)}),N.cssHas||Re.push(":has"),Re=Re.length&&new RegExp(Re.join("|")),ki=function(Mr,Nr){if(Mr===Nr)return J=!0,0;var _i=!Mr.compareDocumentPosition-!Nr.compareDocumentPosition;return _i||(1&(_i=(Mr.ownerDocument||Mr)==(Nr.ownerDocument||Nr)?Mr.compareDocumentPosition(Nr):1)||!N.sortDetached&&Nr.compareDocumentPosition(Mr)===_i?Mr===ae||Mr.ownerDocument==et&&Qi.contains(et,Mr)?-1:Nr===ae||Nr.ownerDocument==et&&Qi.contains(et,Nr)?1:Qe?w.call(Qe,Mr)-w.call(Qe,Nr):0:4&_i?-1:1)}),ae}for(de in Qi.matches=function(gn,Zn){return Qi(gn,null,null,Zn)},Qi.matchesSelector=function(gn,Zn){if(os(gn),be&&!Or[Zn+" "]&&(!Re||!Re.test(Zn)))try{var Fn=Ge.call(gn,Zn);if(Fn||N.disconnectedMatch||gn.document&&gn.document.nodeType!==11)return Fn}catch(Mr){Or(Zn,!0)}return Qi(Zn,ae,null,[gn]).length>0},Qi.contains=function(gn,Zn){return(gn.ownerDocument||gn)!=ae&&os(gn),D.contains(gn,Zn)},Qi.attr=function(gn,Zn){(gn.ownerDocument||gn)!=ae&&os(gn);var Fn=Me.attrHandle[Zn.toLowerCase()],Mr=Fn&&E.call(Me.attrHandle,Zn.toLowerCase())?Fn(gn,Zn,!be):void 0;return Mr!==void 0?Mr:gn.getAttribute(Zn)},Qi.error=function(gn){throw new Error("Syntax error, unrecognized expression: "+gn)},D.uniqueSort=function(gn){var Zn,Fn=[],Mr=0,Nr=0;if(J=!N.sortStable,Qe=!N.sortStable&&l.call(gn,0),fe.call(gn,ki),J){for(;Zn=gn[Nr++];)Zn===gn[Nr]&&(Mr=Fn.push(Nr));for(;Mr--;)me.call(gn,Fn[Mr],1)}return Qe=null,gn},D.fn.uniqueSort=function(){return this.pushStack(D.uniqueSort(l.apply(this)))},(Me=D.expr={cacheLength:50,createPseudo:Jo,match:Ls,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(gn){return gn[1]=gn[1].replace(oo,Ko),gn[3]=(gn[3]||gn[4]||gn[5]||"").replace(oo,Ko),gn[2]==="~="&&(gn[3]=" "+gn[3]+" "),gn.slice(0,4)},CHILD:function(gn){return gn[1]=gn[1].toLowerCase(),gn[1].slice(0,3)==="nth"?(gn[3]||Qi.error(gn[0]),gn[4]=+(gn[4]?gn[5]+(gn[6]||1):2*(gn[3]==="even"||gn[3]==="odd")),gn[5]=+(gn[7]+gn[8]||gn[3]==="odd")):gn[3]&&Qi.error(gn[0]),gn},PSEUDO:function(gn){var Zn,Fn=!gn[6]&&gn[2];return Ls.CHILD.test(gn[0])?null:(gn[3]?gn[2]=gn[4]||gn[5]||"":Fn&&Oa.test(Fn)&&(Zn=il(Fn,!0))&&(Zn=Fn.indexOf(")",Fn.length-Zn)-Fn.length)&&(gn[0]=gn[0].slice(0,Zn),gn[2]=Fn.slice(0,Zn)),gn.slice(0,3))}},filter:{TAG:function(gn){var Zn=gn.replace(oo,Ko).toLowerCase();return gn==="*"?function(){return!0}:function(Fn){return re(Fn,Zn)}},CLASS:function(gn){var Zn=Xn[gn+" "];return Zn||(Zn=new RegExp("(^|"+ye+")"+gn+"("+ye+"|$)"))&&Xn(gn,function(Fn){return Zn.test(typeof Fn.className=="string"&&Fn.className||Fn.getAttribute!==void 0&&Fn.getAttribute("class")||"")})},ATTR:function(gn,Zn,Fn){return function(Mr){var Nr=Qi.attr(Mr,gn);return Nr==null?Zn==="!=":!Zn||(Nr+="",Zn==="="?Nr===Fn:Zn==="!="?Nr!==Fn:Zn==="^="?Fn&&Nr.indexOf(Fn)===0:Zn==="*="?Fn&&Nr.indexOf(Fn)>-1:Zn==="$="?Fn&&Nr.slice(-Fn.length)===Fn:Zn==="~="?(" "+Nr.replace(Da," ")+" ").indexOf(Fn)>-1:Zn==="|="&&(Nr===Fn||Nr.slice(0,Fn.length+1)===Fn+"-"))}},CHILD:function(gn,Zn,Fn,Mr,Nr){var _i=gn.slice(0,3)!=="nth",Ci=gn.slice(-4)!=="last",Vt=Zn==="of-type";return Mr===1&&Nr===0?function(Wt){return!!Wt.parentNode}:function(Wt,Jn,Vn){var Bn,Hn,kr,fi,oi,da=_i!==Ci?"nextSibling":"previousSibling",St=Wt.parentNode,zi=Vt&&Wt.nodeName.toLowerCase(),Fr=!Vn&&!Vt,ni=!1;if(St){if(_i){for(;da;){for(kr=Wt;kr=kr[da];)if(Vt?re(kr,zi):kr.nodeType===1)return!1;oi=da=gn==="only"&&!oi&&"nextSibling"}return!0}if(oi=[Ci?St.firstChild:St.lastChild],Ci&&Fr){for(ni=(fi=(Bn=(Hn=St[Dt]||(St[Dt]={}))[gn]||[])[0]===Mt&&Bn[1])&&Bn[2],kr=fi&&St.childNodes[fi];kr=++fi&&kr&&kr[da]||(ni=fi=0)||oi.pop();)if(kr.nodeType===1&&++ni&&kr===Wt){Hn[gn]=[Mt,fi,ni];break}}else if(Fr&&(ni=fi=(Bn=(Hn=Wt[Dt]||(Wt[Dt]={}))[gn]||[])[0]===Mt&&Bn[1]),ni===!1)for(;(kr=++fi&&kr&&kr[da]||(ni=fi=0)||oi.pop())&&(!(Vt?re(kr,zi):kr.nodeType===1)||!++ni||(Fr&&((Hn=kr[Dt]||(kr[Dt]={}))[gn]=[Mt,ni]),kr!==Wt)););return(ni-=Nr)===Mr||ni%Mr==0&&ni/Mr>=0}}},PSEUDO:function(gn,Zn){var Fn,Mr=Me.pseudos[gn]||Me.setFilters[gn.toLowerCase()]||Qi.error("unsupported pseudo: "+gn);return Mr[Dt]?Mr(Zn):Mr.length>1?(Fn=[gn,gn,"",Zn],Me.setFilters.hasOwnProperty(gn.toLowerCase())?Jo(function(Nr,_i){for(var Ci,Vt=Mr(Nr,Zn),Wt=Vt.length;Wt--;)Nr[Ci=w.call(Nr,Vt[Wt])]=!(_i[Ci]=Vt[Wt])}):function(Nr){return Mr(Nr,0,Fn)}):Mr}},pseudos:{not:Jo(function(gn){var Zn=[],Fn=[],Mr=ds(gn.replace(Te,"$1"));return Mr[Dt]?Jo(function(Nr,_i,Ci,Vt){for(var Wt,Jn=Mr(Nr,null,Vt,[]),Vn=Nr.length;Vn--;)(Wt=Jn[Vn])&&(Nr[Vn]=!(_i[Vn]=Wt))}):function(Nr,_i,Ci){return Zn[0]=Nr,Mr(Zn,null,Ci,Fn),Zn[0]=null,!Fn.pop()}}),has:Jo(function(gn){return function(Zn){return Qi(gn,Zn).length>0}}),contains:Jo(function(gn){return gn=gn.replace(oo,Ko),function(Zn){return(Zn.textContent||D.text(Zn)).indexOf(gn)>-1}}),lang:Jo(function(gn){return Oo.test(gn||"")||Qi.error("unsupported lang: "+gn),gn=gn.replace(oo,Ko).toLowerCase(),function(Zn){var Fn;do if(Fn=be?Zn.lang:Zn.getAttribute("xml:lang")||Zn.getAttribute("lang"))return(Fn=Fn.toLowerCase())===gn||Fn.indexOf(gn+"-")===0;while((Zn=Zn.parentNode)&&Zn.nodeType===1);return!1}}),target:function(gn){var Zn=n.location&&n.location.hash;return Zn&&Zn.slice(1)===gn.id},root:function(gn){return gn===ve},focus:function(gn){return gn===function(){try{return ae.activeElement}catch(Zn){}}()&&ae.hasFocus()&&!!(gn.type||gn.href||~gn.tabIndex)},enabled:bu(!1),disabled:bu(!0),checked:function(gn){return re(gn,"input")&&!!gn.checked||re(gn,"option")&&!!gn.selected},selected:function(gn){return gn.parentNode&&gn.parentNode.selectedIndex,gn.selected===!0},empty:function(gn){for(gn=gn.firstChild;gn;gn=gn.nextSibling)if(gn.nodeType<6)return!1;return!0},parent:function(gn){return!Me.pseudos.empty(gn)},header:function(gn){return Es.test(gn.nodeName)},input:function(gn){return Ss.test(gn.nodeName)},button:function(gn){return re(gn,"input")&&gn.type==="button"||re(gn,"button")},text:function(gn){var Zn;return re(gn,"input")&&gn.type==="text"&&((Zn=gn.getAttribute("type"))==null||Zn.toLowerCase()==="text")},first:Wo(function(){return[0]}),last:Wo(function(gn,Zn){return[Zn-1]}),eq:Wo(function(gn,Zn,Fn){return[Fn<0?Fn+Zn:Fn]}),even:Wo(function(gn,Zn){for(var Fn=0;Fn<Zn;Fn+=2)gn.push(Fn);return gn}),odd:Wo(function(gn,Zn){for(var Fn=1;Fn<Zn;Fn+=2)gn.push(Fn);return gn}),lt:Wo(function(gn,Zn,Fn){var Mr;for(Mr=Fn<0?Fn+Zn:Fn>Zn?Zn:Fn;--Mr>=0;)gn.push(Mr);return gn}),gt:Wo(function(gn,Zn,Fn){for(var Mr=Fn<0?Fn+Zn:Fn;++Mr<Zn;)gn.push(Mr);return gn})}}).pseudos.nth=Me.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})Me.pseudos[de]=ul(de);for(de in{submit:!0,reset:!0})Me.pseudos[de]=lo(de);function Ou(){}function il(gn,Zn){var Fn,Mr,Nr,_i,Ci,Vt,Wt,Jn=Sn[gn+" "];if(Jn)return Zn?0:Jn.slice(0);for(Ci=gn,Vt=[],Wt=Me.preFilter;Ci;){for(_i in Fn&&!(Mr=Yi.exec(Ci))||(Mr&&(Ci=Ci.slice(Mr[0].length)||Ci),Vt.push(Nr=[])),Fn=!1,(Mr=Ba.exec(Ci))&&(Fn=Mr.shift(),Nr.push({value:Fn,type:Mr[0].replace(Te," ")}),Ci=Ci.slice(Fn.length)),Me.filter)!(Mr=Ls[_i].exec(Ci))||Wt[_i]&&!(Mr=Wt[_i](Mr))||(Fn=Mr.shift(),Nr.push({value:Fn,type:_i,matches:Mr}),Ci=Ci.slice(Fn.length));if(!Fn)break}return Zn?Ci.length:Ci?Qi.error(gn):Sn(gn,Vt).slice(0)}function zs(gn){for(var Zn=0,Fn=gn.length,Mr="";Zn<Fn;Zn++)Mr+=gn[Zn].value;return Mr}function Xl(gn,Zn,Fn){var Mr=Zn.dir,Nr=Zn.next,_i=Nr||Mr,Ci=Fn&&_i==="parentNode",Vt=Yt++;return Zn.first?function(Wt,Jn,Vn){for(;Wt=Wt[Mr];)if(Wt.nodeType===1||Ci)return gn(Wt,Jn,Vn);return!1}:function(Wt,Jn,Vn){var Bn,Hn,kr=[Mt,Vt];if(Vn){for(;Wt=Wt[Mr];)if((Wt.nodeType===1||Ci)&&gn(Wt,Jn,Vn))return!0}else for(;Wt=Wt[Mr];)if(Wt.nodeType===1||Ci)if(Hn=Wt[Dt]||(Wt[Dt]={}),Nr&&re(Wt,Nr))Wt=Wt[Mr]||Wt;else{if((Bn=Hn[_i])&&Bn[0]===Mt&&Bn[1]===Vt)return kr[2]=Bn[2];if(Hn[_i]=kr,kr[2]=gn(Wt,Jn,Vn))return!0}return!1}}function Bl(gn){return gn.length>1?function(Zn,Fn,Mr){for(var Nr=gn.length;Nr--;)if(!gn[Nr](Zn,Fn,Mr))return!1;return!0}:gn[0]}function ga(gn,Zn,Fn,Mr,Nr){for(var _i,Ci=[],Vt=0,Wt=gn.length,Jn=Zn!=null;Vt<Wt;Vt++)(_i=gn[Vt])&&(Fn&&!Fn(_i,Mr,Nr)||(Ci.push(_i),Jn&&Zn.push(Vt)));return Ci}function zo(gn,Zn,Fn,Mr,Nr,_i){return Mr&&!Mr[Dt]&&(Mr=zo(Mr)),Nr&&!Nr[Dt]&&(Nr=zo(Nr,_i)),Jo(function(Ci,Vt,Wt,Jn){var Vn,Bn,Hn,kr,fi=[],oi=[],da=Vt.length,St=Ci||function(Fr,ni,Gi){for(var Po=0,Yo=ni.length;Po<Yo;Po++)Qi(Fr,ni[Po],Gi);return Gi}(Zn||"*",Wt.nodeType?[Wt]:Wt,[]),zi=!gn||!Ci&&Zn?St:ga(St,fi,gn,Wt,Jn);if(Fn?Fn(zi,kr=Nr||(Ci?gn:da||Mr)?[]:Vt,Wt,Jn):kr=zi,Mr)for(Vn=ga(kr,oi),Mr(Vn,[],Wt,Jn),Bn=Vn.length;Bn--;)(Hn=Vn[Bn])&&(kr[oi[Bn]]=!(zi[oi[Bn]]=Hn));if(Ci){if(Nr||gn){if(Nr){for(Vn=[],Bn=kr.length;Bn--;)(Hn=kr[Bn])&&Vn.push(zi[Bn]=Hn);Nr(null,kr=[],Vn,Jn)}for(Bn=kr.length;Bn--;)(Hn=kr[Bn])&&(Vn=Nr?w.call(Ci,Hn):fi[Bn])>-1&&(Ci[Vn]=!(Vt[Vn]=Hn))}}else kr=ga(kr===Vt?kr.splice(da,kr.length):kr),Nr?Nr(null,Vt,kr,Jn):rt.apply(Vt,kr)})}function wu(gn){for(var Zn,Fn,Mr,Nr=gn.length,_i=Me.relative[gn[0].type],Ci=_i||Me.relative[" "],Vt=_i?1:0,Wt=Xl(function(Bn){return Bn===Zn},Ci,!0),Jn=Xl(function(Bn){return w.call(Zn,Bn)>-1},Ci,!0),Vn=[function(Bn,Hn,kr){var fi=!_i&&(kr||Hn!=qe)||((Zn=Hn).nodeType?Wt(Bn,Hn,kr):Jn(Bn,Hn,kr));return Zn=null,fi}];Vt<Nr;Vt++)if(Fn=Me.relative[gn[Vt].type])Vn=[Xl(Bl(Vn),Fn)];else{if((Fn=Me.filter[gn[Vt].type].apply(null,gn[Vt].matches))[Dt]){for(Mr=++Vt;Mr<Nr&&!Me.relative[gn[Mr].type];Mr++);return zo(Vt>1&&Bl(Vn),Vt>1&&zs(gn.slice(0,Vt-1).concat({value:gn[Vt-2].type===" "?"*":""})).replace(Te,"$1"),Fn,Vt<Mr&&wu(gn.slice(Vt,Mr)),Mr<Nr&&wu(gn=gn.slice(Mr)),Mr<Nr&&zs(gn))}Vn.push(Fn)}return Bl(Vn)}function ds(gn,Zn){var Fn,Mr=[],Nr=[],_i=Gn[gn+" "];if(!_i){for(Zn||(Zn=il(gn)),Fn=Zn.length;Fn--;)(_i=wu(Zn[Fn]))[Dt]?Mr.push(_i):Nr.push(_i);(_i=Gn(gn,function(Ci,Vt){var Wt=Vt.length>0,Jn=Ci.length>0,Vn=function(Bn,Hn,kr,fi,oi){var da,St,zi,Fr=0,ni="0",Gi=Bn&&[],Po=[],Yo=qe,xo=Bn||Jn&&Me.find.TAG("*",oi),Zs=Mt+=Yo==null?1:Math.random()||.1,As=xo.length;for(oi&&(qe=Hn==ae||Hn||oi);ni!==As&&(da=xo[ni])!=null;ni++){if(Jn&&da){for(St=0,Hn||da.ownerDocument==ae||(os(da),kr=!be);zi=Ci[St++];)if(zi(da,Hn||ae,kr)){rt.call(fi,da);break}oi&&(Mt=Zs)}Wt&&((da=!zi&&da)&&Fr--,Bn&&Gi.push(da))}if(Fr+=ni,Wt&&ni!==Fr){for(St=0;zi=Vt[St++];)zi(Gi,Po,Hn,kr);if(Bn){if(Fr>0)for(;ni--;)Gi[ni]||Po[ni]||(Po[ni]=le.call(fi));Po=ga(Po)}rt.apply(fi,Po),oi&&!Bn&&Po.length>0&&Fr+Vt.length>1&&D.uniqueSort(fi)}return oi&&(Mt=Zs,qe=Yo),Gi};return Wt?Jo(Vn):Vn}(Nr,Mr))).selector=gn}return _i}function pu(gn,Zn,Fn,Mr){var Nr,_i,Ci,Vt,Wt,Jn=typeof gn=="function"&&gn,Vn=!Mr&&il(gn=Jn.selector||gn);if(Fn=Fn||[],Vn.length===1){if((_i=Vn[0]=Vn[0].slice(0)).length>2&&(Ci=_i[0]).type==="ID"&&Zn.nodeType===9&&be&&Me.relative[_i[1].type]){if(!(Zn=(Me.find.ID(Ci.matches[0].replace(oo,Ko),Zn)||[])[0]))return Fn;Jn&&(Zn=Zn.parentNode),gn=gn.slice(_i.shift().value.length)}for(Nr=Ls.needsContext.test(gn)?0:_i.length;Nr--&&(Ci=_i[Nr],!Me.relative[Vt=Ci.type]);)if((Wt=Me.find[Vt])&&(Mr=Wt(Ci.matches[0].replace(oo,Ko),po.test(_i[0].type)&&Ds(Zn.parentNode)||Zn))){if(_i.splice(Nr,1),!(gn=Mr.length&&zs(_i)))return rt.apply(Fn,Mr),Fn;break}}return(Jn||ds(gn,Vn))(Mr,Zn,!be,Fn,!Zn||po.test(gn)&&Ds(Zn.parentNode)||Zn),Fn}Ou.prototype=Me.filters=Me.pseudos,Me.setFilters=new Ou,N.sortStable=Dt.split("").sort(ki).join("")===Dt,os(),N.sortDetached=fo(function(gn){return 1&gn.compareDocumentPosition(ae.createElement("fieldset"))}),D.find=Qi,D.expr[":"]=D.expr.pseudos,D.unique=D.uniqueSort,Qi.compile=ds,Qi.select=pu,Qi.setDocument=os,Qi.escape=D.escapeSelector,Qi.getText=D.text,Qi.isXML=D.isXMLDoc,Qi.selectors=D.expr,Qi.support=D.support,Qi.uniqueSort=D.uniqueSort})();var Ue=function(de,Me,qe){for(var Qe=[],J=qe!==void 0;(de=de[Me])&&de.nodeType!==9;)if(de.nodeType===1){if(J&&D(de).is(qe))break;Qe.push(de)}return Qe},ht=function(de,Me){for(var qe=[];de;de=de.nextSibling)de.nodeType===1&&de!==Me&&qe.push(de);return qe},De=D.expr.match.needsContext,Be=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Ve(de,Me,qe){return A(Me)?D.grep(de,function(Qe,J){return!!Me.call(Qe,J,Qe)!==qe}):Me.nodeType?D.grep(de,function(Qe){return Qe===Me!==qe}):typeof Me!="string"?D.grep(de,function(Qe){return w.call(Me,Qe)>-1!==qe}):D.filter(Me,de,qe)}D.filter=function(de,Me,qe){var Qe=Me[0];return qe&&(de=":not("+de+")"),Me.length===1&&Qe.nodeType===1?D.find.matchesSelector(Qe,de)?[Qe]:[]:D.find.matches(de,D.grep(Me,function(J){return J.nodeType===1}))},D.fn.extend({find:function(de){var Me,qe,Qe=this.length,J=this;if(typeof de!="string")return this.pushStack(D(de).filter(function(){for(Me=0;Me<Qe;Me++)if(D.contains(J[Me],this))return!0}));for(qe=this.pushStack([]),Me=0;Me<Qe;Me++)D.find(de,J[Me],qe);return Qe>1?D.uniqueSort(qe):qe},filter:function(de){return this.pushStack(Ve(this,de||[],!1))},not:function(de){return this.pushStack(Ve(this,de||[],!0))},is:function(de){return!!Ve(this,typeof de=="string"&&De.test(de)?D(de):de||[],!1).length}});var He,gt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(D.fn.init=function(de,Me,qe){var Qe,J;if(!de)return this;if(qe=qe||He,typeof de=="string"){if(!(Qe=de[0]==="<"&&de[de.length-1]===">"&&de.length>=3?[null,de,null]:gt.exec(de))||!Qe[1]&&Me)return!Me||Me.jquery?(Me||qe).find(de):this.constructor(Me).find(de);if(Qe[1]){if(Me=Me instanceof D?Me[0]:Me,D.merge(this,D.parseHTML(Qe[1],Me&&Me.nodeType?Me.ownerDocument||Me:G,!0)),Be.test(Qe[1])&&D.isPlainObject(Me))for(Qe in Me)A(this[Qe])?this[Qe](Me[Qe]):this.attr(Qe,Me[Qe]);return this}return(J=G.getElementById(Qe[2]))&&(this[0]=J,this.length=1),this}return de.nodeType?(this[0]=de,this.length=1,this):A(de)?qe.ready!==void 0?qe.ready(de):de(D):D.makeArray(de,this)}).prototype=D.fn,He=D(G);var dn=/^(?:parents|prev(?:Until|All))/,Ze={children:!0,contents:!0,next:!0,prev:!0};function at(de,Me){for(;(de=de[Me])&&de.nodeType!==1;);return de}D.fn.extend({has:function(de){var Me=D(de,this),qe=Me.length;return this.filter(function(){for(var Qe=0;Qe<qe;Qe++)if(D.contains(this,Me[Qe]))return!0})},closest:function(de,Me){var qe,Qe=0,J=this.length,ae=[],ve=typeof de!="string"&&D(de);if(!De.test(de)){for(;Qe<J;Qe++)for(qe=this[Qe];qe&&qe!==Me;qe=qe.parentNode)if(qe.nodeType<11&&(ve?ve.index(qe)>-1:qe.nodeType===1&&D.find.matchesSelector(qe,de))){ae.push(qe);break}}return this.pushStack(ae.length>1?D.uniqueSort(ae):ae)},index:function(de){return de?typeof de=="string"?w.call(D(de),this[0]):w.call(this,de.jquery?de[0]:de):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(de,Me){return this.pushStack(D.uniqueSort(D.merge(this.get(),D(de,Me))))},addBack:function(de){return this.add(de==null?this.prevObject:this.prevObject.filter(de))}}),D.each({parent:function(de){var Me=de.parentNode;return Me&&Me.nodeType!==11?Me:null},parents:function(de){return Ue(de,"parentNode")},parentsUntil:function(de,Me,qe){return Ue(de,"parentNode",qe)},next:function(de){return at(de,"nextSibling")},prev:function(de){return at(de,"previousSibling")},nextAll:function(de){return Ue(de,"nextSibling")},prevAll:function(de){return Ue(de,"previousSibling")},nextUntil:function(de,Me,qe){return Ue(de,"nextSibling",qe)},prevUntil:function(de,Me,qe){return Ue(de,"previousSibling",qe)},siblings:function(de){return ht((de.parentNode||{}).firstChild,de)},children:function(de){return ht(de.firstChild)},contents:function(de){return de.contentDocument!=null&&c(de.contentDocument)?de.contentDocument:(re(de,"template")&&(de=de.content||de),D.merge([],de.childNodes))}},function(de,Me){D.fn[de]=function(qe,Qe){var J=D.map(this,Me,qe);return de.slice(-5)!=="Until"&&(Qe=qe),Qe&&typeof Qe=="string"&&(J=D.filter(Qe,J)),this.length>1&&(Ze[de]||D.uniqueSort(J),dn.test(de)&&J.reverse()),this.pushStack(J)}});var Lt=/[^\x20\t\r\n\f]+/g;function Ne(de){return de}function ze(de){throw de}function Ke(de,Me,qe,Qe){var J;try{de&&A(J=de.promise)?J.call(de).done(Me).fail(qe):de&&A(J=de.then)?J.call(de,Me,qe):Me.apply(void 0,[de].slice(Qe))}catch(ae){qe.apply(void 0,[ae])}}D.Callbacks=function(de){de=typeof de=="string"?function(rt){var Dt={};return D.each(rt.match(Lt)||[],function(Mt,Yt){Dt[Yt]=!0}),Dt}(de):D.extend({},de);var Me,qe,Qe,J,ae=[],ve=[],be=-1,Re=function(){for(J=J||de.once,Qe=Me=!0;ve.length;be=-1)for(qe=ve.shift();++be<ae.length;)ae[be].apply(qe[0],qe[1])===!1&&de.stopOnFalse&&(be=ae.length,qe=!1);de.memory||(qe=!1),Me=!1,J&&(ae=qe?[]:"")},Ge={add:function(){return ae&&(qe&&!Me&&(be=ae.length-1,ve.push(qe)),function rt(Dt){D.each(Dt,function(Mt,Yt){A(Yt)?de.unique&&Ge.has(Yt)||ae.push(Yt):Yt&&Yt.length&&W(Yt)!=="string"&&rt(Yt)})}(arguments),qe&&!Me&&Re()),this},remove:function(){return D.each(arguments,function(rt,Dt){for(var Mt;(Mt=D.inArray(Dt,ae,Mt))>-1;)ae.splice(Mt,1),Mt<=be&&be--}),this},has:function(rt){return rt?D.inArray(rt,ae)>-1:ae.length>0},empty:function(){return ae&&(ae=[]),this},disable:function(){return J=ve=[],ae=qe="",this},disabled:function(){return!ae},lock:function(){return J=ve=[],qe||Me||(ae=qe=""),this},locked:function(){return!!J},fireWith:function(rt,Dt){return J||(Dt=[rt,(Dt=Dt||[]).slice?Dt.slice():Dt],ve.push(Dt),Me||Re()),this},fire:function(){return Ge.fireWith(this,arguments),this},fired:function(){return!!Qe}};return Ge},D.extend({Deferred:function(de){var Me=[["notify","progress",D.Callbacks("memory"),D.Callbacks("memory"),2],["resolve","done",D.Callbacks("once memory"),D.Callbacks("once memory"),0,"resolved"],["reject","fail",D.Callbacks("once memory"),D.Callbacks("once memory"),1,"rejected"]],qe="pending",Qe={state:function(){return qe},always:function(){return J.done(arguments).fail(arguments),this},catch:function(ae){return Qe.then(null,ae)},pipe:function(){var ae=arguments;return D.Deferred(function(ve){D.each(Me,function(be,Re){var Ge=A(ae[Re[4]])&&ae[Re[4]];J[Re[1]](function(){var rt=Ge&&Ge.apply(this,arguments);rt&&A(rt.promise)?rt.promise().progress(ve.notify).done(ve.resolve).fail(ve.reject):ve[Re[0]+"With"](this,Ge?[rt]:arguments)})}),ae=null}).promise()},then:function(ae,ve,be){var Re=0;function Ge(rt,Dt,Mt,Yt){return function(){var Xn=this,Sn=arguments,Gn=function(){var ki,Ia;if(!(rt<Re)){if((ki=Mt.apply(Xn,Sn))===Dt.promise())throw new TypeError("Thenable self-resolution");Ia=ki&&(typeof ki=="object"||typeof ki=="function")&&ki.then,A(Ia)?Yt?Ia.call(ki,Ge(Re,Dt,Ne,Yt),Ge(Re,Dt,ze,Yt)):(Re++,Ia.call(ki,Ge(Re,Dt,Ne,Yt),Ge(Re,Dt,ze,Yt),Ge(Re,Dt,Ne,Dt.notifyWith))):(Mt!==Ne&&(Xn=void 0,Sn=[ki]),(Yt||Dt.resolveWith)(Xn,Sn))}},Or=Yt?Gn:function(){try{Gn()}catch(ki){D.Deferred.exceptionHook&&D.Deferred.exceptionHook(ki,Or.error),rt+1>=Re&&(Mt!==ze&&(Xn=void 0,Sn=[ki]),Dt.rejectWith(Xn,Sn))}};rt?Or():(D.Deferred.getErrorHook?Or.error=D.Deferred.getErrorHook():D.Deferred.getStackHook&&(Or.error=D.Deferred.getStackHook()),n.setTimeout(Or))}}return D.Deferred(function(rt){Me[0][3].add(Ge(0,rt,A(be)?be:Ne,rt.notifyWith)),Me[1][3].add(Ge(0,rt,A(ae)?ae:Ne)),Me[2][3].add(Ge(0,rt,A(ve)?ve:ze))}).promise()},promise:function(ae){return ae!=null?D.extend(ae,Qe):Qe}},J={};return D.each(Me,function(ae,ve){var be=ve[2],Re=ve[5];Qe[ve[1]]=be.add,Re&&be.add(function(){qe=Re},Me[3-ae][2].disable,Me[3-ae][3].disable,Me[0][2].lock,Me[0][3].lock),be.add(ve[3].fire),J[ve[0]]=function(){return J[ve[0]+"With"](this===J?void 0:this,arguments),this},J[ve[0]+"With"]=be.fireWith}),Qe.promise(J),de&&de.call(J,J),J},when:function(de){var Me=arguments.length,qe=Me,Qe=Array(qe),J=l.call(arguments),ae=D.Deferred(),ve=function(be){return function(Re){Qe[be]=this,J[be]=arguments.length>1?l.call(arguments):Re,--Me||ae.resolveWith(Qe,J)}};if(Me<=1&&(Ke(de,ae.done(ve(qe)).resolve,ae.reject,!Me),ae.state()==="pending"||A(J[qe]&&J[qe].then)))return ae.then();for(;qe--;)Ke(J[qe],ve(qe),ae.reject);return ae.promise()}});var vt=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;D.Deferred.exceptionHook=function(de,Me){n.console&&n.console.warn&&de&&vt.test(de.name)&&n.console.warn("jQuery.Deferred exception: "+de.message,de.stack,Me)},D.readyException=function(de){n.setTimeout(function(){throw de})};var Ft=D.Deferred();function Ot(){G.removeEventListener("DOMContentLoaded",Ot),n.removeEventListener("load",Ot),D.ready()}D.fn.ready=function(de){return Ft.then(de).catch(function(Me){D.readyException(Me)}),this},D.extend({isReady:!1,readyWait:1,ready:function(de){(de===!0?--D.readyWait:D.isReady)||(D.isReady=!0,de!==!0&&--D.readyWait>0||Ft.resolveWith(G,[D]))}}),D.ready.then=Ft.then,G.readyState==="complete"||G.readyState!=="loading"&&!G.documentElement.doScroll?n.setTimeout(D.ready):(G.addEventListener("DOMContentLoaded",Ot),n.addEventListener("load",Ot));var _t=function(de,Me,qe,Qe,J,ae,ve){var be=0,Re=de.length,Ge=qe==null;if(W(qe)==="object")for(be in J=!0,qe)_t(de,Me,be,qe[be],!0,ae,ve);else if(Qe!==void 0&&(J=!0,A(Qe)||(ve=!0),Ge&&(ve?(Me.call(de,Qe),Me=null):(Ge=Me,Me=function(rt,Dt,Mt){return Ge.call(D(rt),Mt)})),Me))for(;be<Re;be++)Me(de[be],qe,ve?Qe:Qe.call(de[be],be,Me(de[be],qe)));return J?de:Ge?Me.call(de):Re?Me(de[0],qe):ae},Tn=/^-ms-/,on=/-([a-z])/g;function $n(de,Me){return Me.toUpperCase()}function Zt(de){return de.replace(Tn,"ms-").replace(on,$n)}var Et=function(de){return de.nodeType===1||de.nodeType===9||!+de.nodeType};function rn(){this.expando=D.expando+rn.uid++}rn.uid=1,rn.prototype={cache:function(de){var Me=de[this.expando];return Me||(Me={},Et(de)&&(de.nodeType?de[this.expando]=Me:Object.defineProperty(de,this.expando,{value:Me,configurable:!0}))),Me},set:function(de,Me,qe){var Qe,J=this.cache(de);if(typeof Me=="string")J[Zt(Me)]=qe;else for(Qe in Me)J[Zt(Qe)]=Me[Qe];return J},get:function(de,Me){return Me===void 0?this.cache(de):de[this.expando]&&de[this.expando][Zt(Me)]},access:function(de,Me,qe){return Me===void 0||Me&&typeof Me=="string"&&qe===void 0?this.get(de,Me):(this.set(de,Me,qe),qe!==void 0?qe:Me)},remove:function(de,Me){var qe,Qe=de[this.expando];if(Qe!==void 0){if(Me!==void 0)for(qe=(Me=Array.isArray(Me)?Me.map(Zt):(Me=Zt(Me))in Qe?[Me]:Me.match(Lt)||[]).length;qe--;)delete Qe[Me[qe]];(Me===void 0||D.isEmptyObject(Qe))&&(de.nodeType?de[this.expando]=void 0:delete de[this.expando])}},hasData:function(de){var Me=de[this.expando];return Me!==void 0&&!D.isEmptyObject(Me)}};var wt=new rn,Yn=new rn,pt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Fe=/[A-Z]/g;function Ie(de,Me,qe){var Qe;if(qe===void 0&&de.nodeType===1)if(Qe="data-"+Me.replace(Fe,"-$&").toLowerCase(),typeof(qe=de.getAttribute(Qe))=="string"){try{qe=function(J){return J==="true"||J!=="false"&&(J==="null"?null:J===+J+""?+J:pt.test(J)?JSON.parse(J):J)}(qe)}catch(J){}Yn.set(de,Me,qe)}else qe=void 0;return qe}D.extend({hasData:function(de){return Yn.hasData(de)||wt.hasData(de)},data:function(de,Me,qe){return Yn.access(de,Me,qe)},removeData:function(de,Me){Yn.remove(de,Me)},_data:function(de,Me,qe){return wt.access(de,Me,qe)},_removeData:function(de,Me){wt.remove(de,Me)}}),D.fn.extend({data:function(de,Me){var qe,Qe,J,ae=this[0],ve=ae&&ae.attributes;if(de===void 0){if(this.length&&(J=Yn.get(ae),ae.nodeType===1&&!wt.get(ae,"hasDataAttrs"))){for(qe=ve.length;qe--;)ve[qe]&&(Qe=ve[qe].name).indexOf("data-")===0&&(Qe=Zt(Qe.slice(5)),Ie(ae,Qe,J[Qe]));wt.set(ae,"hasDataAttrs",!0)}return J}return typeof de=="object"?this.each(function(){Yn.set(this,de)}):_t(this,function(be){var Re;if(ae&&be===void 0)return(Re=Yn.get(ae,de))!==void 0||(Re=Ie(ae,de))!==void 0?Re:void 0;this.each(function(){Yn.set(this,de,be)})},null,Me,arguments.length>1,null,!0)},removeData:function(de){return this.each(function(){Yn.remove(this,de)})}}),D.extend({queue:function(de,Me,qe){var Qe;if(de)return Me=(Me||"fx")+"queue",Qe=wt.get(de,Me),qe&&(!Qe||Array.isArray(qe)?Qe=wt.access(de,Me,D.makeArray(qe)):Qe.push(qe)),Qe||[]},dequeue:function(de,Me){Me=Me||"fx";var qe=D.queue(de,Me),Qe=qe.length,J=qe.shift(),ae=D._queueHooks(de,Me);J==="inprogress"&&(J=qe.shift(),Qe--),J&&(Me==="fx"&&qe.unshift("inprogress"),delete ae.stop,J.call(de,function(){D.dequeue(de,Me)},ae)),!Qe&&ae&&ae.empty.fire()},_queueHooks:function(de,Me){var qe=Me+"queueHooks";return wt.get(de,qe)||wt.access(de,qe,{empty:D.Callbacks("once memory").add(function(){wt.remove(de,[Me+"queue",qe])})})}}),D.fn.extend({queue:function(de,Me){var qe=2;return typeof de!="string"&&(Me=de,de="fx",qe--),arguments.length<qe?D.queue(this[0],de):Me===void 0?this:this.each(function(){var Qe=D.queue(this,de,Me);D._queueHooks(this,de),de==="fx"&&Qe[0]!=="inprogress"&&D.dequeue(this,de)})},dequeue:function(de){return this.each(function(){D.dequeue(this,de)})},clearQueue:function(de){return this.queue(de||"fx",[])},promise:function(de,Me){var qe,Qe=1,J=D.Deferred(),ae=this,ve=this.length,be=function(){--Qe||J.resolveWith(ae,[ae])};for(typeof de!="string"&&(Me=de,de=void 0),de=de||"fx";ve--;)(qe=wt.get(ae[ve],de+"queueHooks"))&&qe.empty&&(Qe++,qe.empty.add(be));return be(),J.promise(Me)}});var ct=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ht=new RegExp("^(?:([+-])=|)("+ct+")([a-z%]*)$","i"),sn=["Top","Right","Bottom","Left"],yn=G.documentElement,Dr=function(de){return D.contains(de.ownerDocument,de)},Kr={composed:!0};yn.getRootNode&&(Dr=function(de){return D.contains(de.ownerDocument,de)||de.getRootNode(Kr)===de.ownerDocument});var ii=function(de,Me){return(de=Me||de).style.display==="none"||de.style.display===""&&Dr(de)&&D.css(de,"display")==="none"};function _n(de,Me,qe,Qe){var J,ae,ve=20,be=Qe?function(){return Qe.cur()}:function(){return D.css(de,Me,"")},Re=be(),Ge=qe&&qe[3]||(D.cssNumber[Me]?"":"px"),rt=de.nodeType&&(D.cssNumber[Me]||Ge!=="px"&&+Re)&&Ht.exec(D.css(de,Me));if(rt&&rt[3]!==Ge){for(Re/=2,Ge=Ge||rt[3],rt=+Re||1;ve--;)D.style(de,Me,rt+Ge),(1-ae)*(1-(ae=be()/Re||.5))<=0&&(ve=0),rt/=ae;rt*=2,D.style(de,Me,rt+Ge),qe=qe||[]}return qe&&(rt=+rt||+Re||0,J=qe[1]?rt+(qe[1]+1)*qe[2]:+qe[2],Qe&&(Qe.unit=Ge,Qe.start=rt,Qe.end=J)),J}var xn={};function jn(de){var Me,qe=de.ownerDocument,Qe=de.nodeName,J=xn[Qe];return J||(Me=qe.body.appendChild(qe.createElement(Qe)),J=D.css(Me,"display"),Me.parentNode.removeChild(Me),J==="none"&&(J="block"),xn[Qe]=J,J)}function ln(de,Me){for(var qe,Qe,J=[],ae=0,ve=de.length;ae<ve;ae++)(Qe=de[ae]).style&&(qe=Qe.style.display,Me?(qe==="none"&&(J[ae]=wt.get(Qe,"display")||null,J[ae]||(Qe.style.display="")),Qe.style.display===""&&ii(Qe)&&(J[ae]=jn(Qe))):qe!=="none"&&(J[ae]="none",wt.set(Qe,"display",qe)));for(ae=0;ae<ve;ae++)J[ae]!=null&&(de[ae].style.display=J[ae]);return de}D.fn.extend({show:function(){return ln(this,!0)},hide:function(){return ln(this)},toggle:function(de){return typeof de=="boolean"?de?this.show():this.hide():this.each(function(){ii(this)?D(this).show():D(this).hide()})}});var ar,zr,Jr=/^(?:checkbox|radio)$/i,bi=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,hi=/^$|^module$|\/(?:java|ecma)script/i;ar=G.createDocumentFragment().appendChild(G.createElement("div")),(zr=G.createElement("input")).setAttribute("type","radio"),zr.setAttribute("checked","checked"),zr.setAttribute("name","t"),ar.appendChild(zr),N.checkClone=ar.cloneNode(!0).cloneNode(!0).lastChild.checked,ar.innerHTML="<textarea>x</textarea>",N.noCloneChecked=!!ar.cloneNode(!0).lastChild.defaultValue,ar.innerHTML="<option></option>",N.option=!!ar.lastChild;var wi={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Ca(de,Me){var qe;return qe=de.getElementsByTagName!==void 0?de.getElementsByTagName(Me||"*"):de.querySelectorAll!==void 0?de.querySelectorAll(Me||"*"):[],Me===void 0||Me&&re(de,Me)?D.merge([de],qe):qe}function jt(de,Me){for(var qe=0,Qe=de.length;qe<Qe;qe++)wt.set(de[qe],"globalEval",!Me||wt.get(Me[qe],"globalEval"))}wi.tbody=wi.tfoot=wi.colgroup=wi.caption=wi.thead,wi.th=wi.td,N.option||(wi.optgroup=wi.option=[1,"<select multiple='multiple'>","</select>"]);var dt=/<|&#?\w+;/;function xt(de,Me,qe,Qe,J){for(var ae,ve,be,Re,Ge,rt,Dt=Me.createDocumentFragment(),Mt=[],Yt=0,Xn=de.length;Yt<Xn;Yt++)if((ae=de[Yt])||ae===0)if(W(ae)==="object")D.merge(Mt,ae.nodeType?[ae]:ae);else if(dt.test(ae)){for(ve=ve||Dt.appendChild(Me.createElement("div")),be=(bi.exec(ae)||["",""])[1].toLowerCase(),Re=wi[be]||wi._default,ve.innerHTML=Re[1]+D.htmlPrefilter(ae)+Re[2],rt=Re[0];rt--;)ve=ve.lastChild;D.merge(Mt,ve.childNodes),(ve=Dt.firstChild).textContent=""}else Mt.push(Me.createTextNode(ae));for(Dt.textContent="",Yt=0;ae=Mt[Yt++];)if(Qe&&D.inArray(ae,Qe)>-1)J&&J.push(ae);else if(Ge=Dr(ae),ve=Ca(Dt.appendChild(ae),"script"),Ge&&jt(ve),qe)for(rt=0;ae=ve[rt++];)hi.test(ae.type||"")&&qe.push(ae);return Dt}var Nt=/^([^.]*)(?:\.(.+)|)/;function Qt(){return!0}function mn(){return!1}function Un(de,Me,qe,Qe,J,ae){var ve,be;if(typeof Me=="object"){for(be in typeof qe!="string"&&(Qe=Qe||qe,qe=void 0),Me)Un(de,be,qe,Qe,Me[be],ae);return de}if(Qe==null&&J==null?(J=qe,Qe=qe=void 0):J==null&&(typeof qe=="string"?(J=Qe,Qe=void 0):(J=Qe,Qe=qe,qe=void 0)),J===!1)J=mn;else if(!J)return de;return ae===1&&(ve=J,(J=function(Re){return D().off(Re),ve.apply(this,arguments)}).guid=ve.guid||(ve.guid=D.guid++)),de.each(function(){D.event.add(this,Me,J,Qe,qe)})}function we(de,Me,qe){qe?(wt.set(de,Me,!1),D.event.add(de,Me,{namespace:!1,handler:function(Qe){var J,ae=wt.get(this,Me);if(1&Qe.isTrigger&&this[Me]){if(ae)(D.event.special[Me]||{}).delegateType&&Qe.stopPropagation();else if(ae=l.call(arguments),wt.set(this,Me,ae),this[Me](),J=wt.get(this,Me),wt.set(this,Me,!1),ae!==J)return Qe.stopImmediatePropagation(),Qe.preventDefault(),J}else ae&&(wt.set(this,Me,D.event.trigger(ae[0],ae.slice(1),this)),Qe.stopPropagation(),Qe.isImmediatePropagationStopped=Qt)}})):wt.get(de,Me)===void 0&&D.event.add(de,Me,Qt)}D.event={global:{},add:function(de,Me,qe,Qe,J){var ae,ve,be,Re,Ge,rt,Dt,Mt,Yt,Xn,Sn,Gn=wt.get(de);if(Et(de))for(qe.handler&&(qe=(ae=qe).handler,J=ae.selector),J&&D.find.matchesSelector(yn,J),qe.guid||(qe.guid=D.guid++),(Re=Gn.events)||(Re=Gn.events=Object.create(null)),(ve=Gn.handle)||(ve=Gn.handle=function(Or){return D!==void 0&&D.event.triggered!==Or.type?D.event.dispatch.apply(de,arguments):void 0}),Ge=(Me=(Me||"").match(Lt)||[""]).length;Ge--;)Yt=Sn=(be=Nt.exec(Me[Ge])||[])[1],Xn=(be[2]||"").split(".").sort(),Yt&&(Dt=D.event.special[Yt]||{},Yt=(J?Dt.delegateType:Dt.bindType)||Yt,Dt=D.event.special[Yt]||{},rt=D.extend({type:Yt,origType:Sn,data:Qe,handler:qe,guid:qe.guid,selector:J,needsContext:J&&D.expr.match.needsContext.test(J),namespace:Xn.join(".")},ae),(Mt=Re[Yt])||((Mt=Re[Yt]=[]).delegateCount=0,Dt.setup&&Dt.setup.call(de,Qe,Xn,ve)!==!1||de.addEventListener&&de.addEventListener(Yt,ve)),Dt.add&&(Dt.add.call(de,rt),rt.handler.guid||(rt.handler.guid=qe.guid)),J?Mt.splice(Mt.delegateCount++,0,rt):Mt.push(rt),D.event.global[Yt]=!0)},remove:function(de,Me,qe,Qe,J){var ae,ve,be,Re,Ge,rt,Dt,Mt,Yt,Xn,Sn,Gn=wt.hasData(de)&&wt.get(de);if(Gn&&(Re=Gn.events)){for(Ge=(Me=(Me||"").match(Lt)||[""]).length;Ge--;)if(Yt=Sn=(be=Nt.exec(Me[Ge])||[])[1],Xn=(be[2]||"").split(".").sort(),Yt){for(Dt=D.event.special[Yt]||{},Mt=Re[Yt=(Qe?Dt.delegateType:Dt.bindType)||Yt]||[],be=be[2]&&new RegExp("(^|\\.)"+Xn.join("\\.(?:.*\\.|)")+"(\\.|$)"),ve=ae=Mt.length;ae--;)rt=Mt[ae],!J&&Sn!==rt.origType||qe&&qe.guid!==rt.guid||be&&!be.test(rt.namespace)||Qe&&Qe!==rt.selector&&(Qe!=="**"||!rt.selector)||(Mt.splice(ae,1),rt.selector&&Mt.delegateCount--,Dt.remove&&Dt.remove.call(de,rt));ve&&!Mt.length&&(Dt.teardown&&Dt.teardown.call(de,Xn,Gn.handle)!==!1||D.removeEvent(de,Yt,Gn.handle),delete Re[Yt])}else for(Yt in Re)D.event.remove(de,Yt+Me[Ge],qe,Qe,!0);D.isEmptyObject(Re)&&wt.remove(de,"handle events")}},dispatch:function(de){var Me,qe,Qe,J,ae,ve,be=new Array(arguments.length),Re=D.event.fix(de),Ge=(wt.get(this,"events")||Object.create(null))[Re.type]||[],rt=D.event.special[Re.type]||{};for(be[0]=Re,Me=1;Me<arguments.length;Me++)be[Me]=arguments[Me];if(Re.delegateTarget=this,!rt.preDispatch||rt.preDispatch.call(this,Re)!==!1){for(ve=D.event.handlers.call(this,Re,Ge),Me=0;(J=ve[Me++])&&!Re.isPropagationStopped();)for(Re.currentTarget=J.elem,qe=0;(ae=J.handlers[qe++])&&!Re.isImmediatePropagationStopped();)Re.rnamespace&&ae.namespace!==!1&&!Re.rnamespace.test(ae.namespace)||(Re.handleObj=ae,Re.data=ae.data,(Qe=((D.event.special[ae.origType]||{}).handle||ae.handler).apply(J.elem,be))!==void 0&&(Re.result=Qe)===!1&&(Re.preventDefault(),Re.stopPropagation()));return rt.postDispatch&&rt.postDispatch.call(this,Re),Re.result}},handlers:function(de,Me){var qe,Qe,J,ae,ve,be=[],Re=Me.delegateCount,Ge=de.target;if(Re&&Ge.nodeType&&!(de.type==="click"&&de.button>=1)){for(;Ge!==this;Ge=Ge.parentNode||this)if(Ge.nodeType===1&&(de.type!=="click"||Ge.disabled!==!0)){for(ae=[],ve={},qe=0;qe<Re;qe++)ve[J=(Qe=Me[qe]).selector+" "]===void 0&&(ve[J]=Qe.needsContext?D(J,this).index(Ge)>-1:D.find(J,this,null,[Ge]).length),ve[J]&&ae.push(Qe);ae.length&&be.push({elem:Ge,handlers:ae})}}return Ge=this,Re<Me.length&&be.push({elem:Ge,handlers:Me.slice(Re)}),be},addProp:function(de,Me){Object.defineProperty(D.Event.prototype,de,{enumerable:!0,configurable:!0,get:A(Me)?function(){if(this.originalEvent)return Me(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[de]},set:function(qe){Object.defineProperty(this,de,{enumerable:!0,configurable:!0,writable:!0,value:qe})}})},fix:function(de){return de[D.expando]?de:new D.Event(de)},special:{load:{noBubble:!0},click:{setup:function(de){var Me=this||de;return Jr.test(Me.type)&&Me.click&&re(Me,"input")&&we(Me,"click",!0),!1},trigger:function(de){var Me=this||de;return Jr.test(Me.type)&&Me.click&&re(Me,"input")&&we(Me,"click"),!0},_default:function(de){var Me=de.target;return Jr.test(Me.type)&&Me.click&&re(Me,"input")&&wt.get(Me,"click")||re(Me,"a")}},beforeunload:{postDispatch:function(de){de.result!==void 0&&de.originalEvent&&(de.originalEvent.returnValue=de.result)}}}},D.removeEvent=function(de,Me,qe){de.removeEventListener&&de.removeEventListener(Me,qe)},D.Event=function(de,Me){if(!(this instanceof D.Event))return new D.Event(de,Me);de&&de.type?(this.originalEvent=de,this.type=de.type,this.isDefaultPrevented=de.defaultPrevented||de.defaultPrevented===void 0&&de.returnValue===!1?Qt:mn,this.target=de.target&&de.target.nodeType===3?de.target.parentNode:de.target,this.currentTarget=de.currentTarget,this.relatedTarget=de.relatedTarget):this.type=de,Me&&D.extend(this,Me),this.timeStamp=de&&de.timeStamp||Date.now(),this[D.expando]=!0},D.Event.prototype={constructor:D.Event,isDefaultPrevented:mn,isPropagationStopped:mn,isImmediatePropagationStopped:mn,isSimulated:!1,preventDefault:function(){var de=this.originalEvent;this.isDefaultPrevented=Qt,de&&!this.isSimulated&&de.preventDefault()},stopPropagation:function(){var de=this.originalEvent;this.isPropagationStopped=Qt,de&&!this.isSimulated&&de.stopPropagation()},stopImmediatePropagation:function(){var de=this.originalEvent;this.isImmediatePropagationStopped=Qt,de&&!this.isSimulated&&de.stopImmediatePropagation(),this.stopPropagation()}},D.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},D.event.addProp),D.each({focus:"focusin",blur:"focusout"},function(de,Me){function qe(Qe){if(G.documentMode){var J=wt.get(this,"handle"),ae=D.event.fix(Qe);ae.type=Qe.type==="focusin"?"focus":"blur",ae.isSimulated=!0,J(Qe),ae.target===ae.currentTarget&&J(ae)}else D.event.simulate(Me,Qe.target,D.event.fix(Qe))}D.event.special[de]={setup:function(){var Qe;if(we(this,de,!0),!G.documentMode)return!1;(Qe=wt.get(this,Me))||this.addEventListener(Me,qe),wt.set(this,Me,(Qe||0)+1)},trigger:function(){return we(this,de),!0},teardown:function(){var Qe;if(!G.documentMode)return!1;(Qe=wt.get(this,Me)-1)?wt.set(this,Me,Qe):(this.removeEventListener(Me,qe),wt.remove(this,Me))},_default:function(Qe){return wt.get(Qe.target,de)},delegateType:Me},D.event.special[Me]={setup:function(){var Qe=this.ownerDocument||this.document||this,J=G.documentMode?this:Qe,ae=wt.get(J,Me);ae||(G.documentMode?this.addEventListener(Me,qe):Qe.addEventListener(de,qe,!0)),wt.set(J,Me,(ae||0)+1)},teardown:function(){var Qe=this.ownerDocument||this.document||this,J=G.documentMode?this:Qe,ae=wt.get(J,Me)-1;ae?wt.set(J,Me,ae):(G.documentMode?this.removeEventListener(Me,qe):Qe.removeEventListener(de,qe,!0),wt.remove(J,Me))}}}),D.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(de,Me){D.event.special[de]={delegateType:Me,bindType:Me,handle:function(qe){var Qe,J=qe.relatedTarget,ae=qe.handleObj;return J&&(J===this||D.contains(this,J))||(qe.type=ae.origType,Qe=ae.handler.apply(this,arguments),qe.type=Me),Qe}}}),D.fn.extend({on:function(de,Me,qe,Qe){return Un(this,de,Me,qe,Qe)},one:function(de,Me,qe,Qe){return Un(this,de,Me,qe,Qe,1)},off:function(de,Me,qe){var Qe,J;if(de&&de.preventDefault&&de.handleObj)return Qe=de.handleObj,D(de.delegateTarget).off(Qe.namespace?Qe.origType+"."+Qe.namespace:Qe.origType,Qe.selector,Qe.handler),this;if(typeof de=="object"){for(J in de)this.off(J,Me,de[J]);return this}return Me!==!1&&typeof Me!="function"||(qe=Me,Me=void 0),qe===!1&&(qe=mn),this.each(function(){D.event.remove(this,de,qe,Me)})}});var En=/<script|<style|<link/i,Kn=/checked\s*(?:[^=]|=\s*.checked.)/i,er=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Hr(de,Me){return re(de,"table")&&re(Me.nodeType!==11?Me:Me.firstChild,"tr")&&D(de).children("tbody")[0]||de}function Ir(de){return de.type=(de.getAttribute("type")!==null)+"/"+de.type,de}function Ri(de){return(de.type||"").slice(0,5)==="true/"?de.type=de.type.slice(5):de.removeAttribute("type"),de}function Ti(de,Me){var qe,Qe,J,ae,ve,be;if(Me.nodeType===1){if(wt.hasData(de)&&(be=wt.get(de).events))for(J in wt.remove(Me,"handle events"),be)for(qe=0,Qe=be[J].length;qe<Qe;qe++)D.event.add(Me,J,be[J][qe]);Yn.hasData(de)&&(ae=Yn.access(de),ve=D.extend({},ae),Yn.set(Me,ve))}}function mi(de,Me){var qe=Me.nodeName.toLowerCase();qe==="input"&&Jr.test(de.type)?Me.checked=de.checked:qe!=="input"&&qe!=="textarea"||(Me.defaultValue=de.defaultValue)}function Li(de,Me,qe,Qe){Me=v(Me);var J,ae,ve,be,Re,Ge,rt=0,Dt=de.length,Mt=Dt-1,Yt=Me[0],Xn=A(Yt);if(Xn||Dt>1&&typeof Yt=="string"&&!N.checkClone&&Kn.test(Yt))return de.each(function(Sn){var Gn=de.eq(Sn);Xn&&(Me[0]=Yt.call(this,Sn,Gn.html())),Li(Gn,Me,qe,Qe)});if(Dt&&(ae=(J=xt(Me,de[0].ownerDocument,!1,de,Qe)).firstChild,J.childNodes.length===1&&(J=ae),ae||Qe)){for(be=(ve=D.map(Ca(J,"script"),Ir)).length;rt<Dt;rt++)Re=J,rt!==Mt&&(Re=D.clone(Re,!0,!0),be&&D.merge(ve,Ca(Re,"script"))),qe.call(de[rt],Re,rt);if(be)for(Ge=ve[ve.length-1].ownerDocument,D.map(ve,Ri),rt=0;rt<be;rt++)Re=ve[rt],hi.test(Re.type||"")&&!wt.access(Re,"globalEval")&&D.contains(Ge,Re)&&(Re.src&&(Re.type||"").toLowerCase()!=="module"?D._evalUrl&&!Re.noModule&&D._evalUrl(Re.src,{nonce:Re.nonce||Re.getAttribute("nonce")},Ge):ne(Re.textContent.replace(er,""),Re,Ge))}return de}function tr(de,Me,qe){for(var Qe,J=Me?D.filter(Me,de):de,ae=0;(Qe=J[ae])!=null;ae++)qe||Qe.nodeType!==1||D.cleanData(Ca(Qe)),Qe.parentNode&&(qe&&Dr(Qe)&&jt(Ca(Qe,"script")),Qe.parentNode.removeChild(Qe));return de}D.extend({htmlPrefilter:function(de){return de},clone:function(de,Me,qe){var Qe,J,ae,ve,be=de.cloneNode(!0),Re=Dr(de);if(!(N.noCloneChecked||de.nodeType!==1&&de.nodeType!==11||D.isXMLDoc(de)))for(ve=Ca(be),Qe=0,J=(ae=Ca(de)).length;Qe<J;Qe++)mi(ae[Qe],ve[Qe]);if(Me)if(qe)for(ae=ae||Ca(de),ve=ve||Ca(be),Qe=0,J=ae.length;Qe<J;Qe++)Ti(ae[Qe],ve[Qe]);else Ti(de,be);return(ve=Ca(be,"script")).length>0&&jt(ve,!Re&&Ca(de,"script")),be},cleanData:function(de){for(var Me,qe,Qe,J=D.event.special,ae=0;(qe=de[ae])!==void 0;ae++)if(Et(qe)){if(Me=qe[wt.expando]){if(Me.events)for(Qe in Me.events)J[Qe]?D.event.remove(qe,Qe):D.removeEvent(qe,Qe,Me.handle);qe[wt.expando]=void 0}qe[Yn.expando]&&(qe[Yn.expando]=void 0)}}}),D.fn.extend({detach:function(de){return tr(this,de,!0)},remove:function(de){return tr(this,de)},text:function(de){return _t(this,function(Me){return Me===void 0?D.text(this):this.empty().each(function(){this.nodeType!==1&&this.nodeType!==11&&this.nodeType!==9||(this.textContent=Me)})},null,de,arguments.length)},append:function(){return Li(this,arguments,function(de){this.nodeType!==1&&this.nodeType!==11&&this.nodeType!==9||Hr(this,de).appendChild(de)})},prepend:function(){return Li(this,arguments,function(de){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var Me=Hr(this,de);Me.insertBefore(de,Me.firstChild)}})},before:function(){return Li(this,arguments,function(de){this.parentNode&&this.parentNode.insertBefore(de,this)})},after:function(){return Li(this,arguments,function(de){this.parentNode&&this.parentNode.insertBefore(de,this.nextSibling)})},empty:function(){for(var de,Me=0;(de=this[Me])!=null;Me++)de.nodeType===1&&(D.cleanData(Ca(de,!1)),de.textContent="");return this},clone:function(de,Me){return de=de!=null&&de,Me=Me==null?de:Me,this.map(function(){return D.clone(this,de,Me)})},html:function(de){return _t(this,function(Me){var qe=this[0]||{},Qe=0,J=this.length;if(Me===void 0&&qe.nodeType===1)return qe.innerHTML;if(typeof Me=="string"&&!En.test(Me)&&!wi[(bi.exec(Me)||["",""])[1].toLowerCase()]){Me=D.htmlPrefilter(Me);try{for(;Qe<J;Qe++)(qe=this[Qe]||{}).nodeType===1&&(D.cleanData(Ca(qe,!1)),qe.innerHTML=Me);qe=0}catch(ae){}}qe&&this.empty().append(Me)},null,de,arguments.length)},replaceWith:function(){var de=[];return Li(this,arguments,function(Me){var qe=this.parentNode;D.inArray(this,de)<0&&(D.cleanData(Ca(this)),qe&&qe.replaceChild(Me,this))},de)}}),D.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(de,Me){D.fn[de]=function(qe){for(var Qe,J=[],ae=D(qe),ve=ae.length-1,be=0;be<=ve;be++)Qe=be===ve?this:this.clone(!0),D(ae[be])[Me](Qe),x.apply(J,Qe.get());return this.pushStack(J)}});var ha=new RegExp("^("+ct+")(?!px)[a-z%]+$","i"),ti=/^--/,ua=function(de){var Me=de.ownerDocument.defaultView;return Me&&Me.opener||(Me=n),Me.getComputedStyle(de)},Va=function(de,Me,qe){var Qe,J,ae={};for(J in Me)ae[J]=de.style[J],de.style[J]=Me[J];for(J in Qe=qe.call(de),Me)de.style[J]=ae[J];return Qe},ns=new RegExp(sn.join("|"),"i");function Xo(de,Me,qe){var Qe,J,ae,ve,be=ti.test(Me),Re=de.style;return(qe=qe||ua(de))&&(ve=qe.getPropertyValue(Me)||qe[Me],be&&ve&&(ve=ve.replace(Te,"$1")||void 0),ve!==""||Dr(de)||(ve=D.style(de,Me)),!N.pixelBoxStyles()&&ha.test(ve)&&ns.test(Me)&&(Qe=Re.width,J=Re.minWidth,ae=Re.maxWidth,Re.minWidth=Re.maxWidth=Re.width=ve,ve=qe.width,Re.width=Qe,Re.minWidth=J,Re.maxWidth=ae)),ve!==void 0?ve+"":ve}function qr(de,Me){return{get:function(){if(!de())return(this.get=Me).apply(this,arguments);delete this.get}}}(function(){function de(){if(Ge){Re.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",Ge.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",yn.appendChild(Re).appendChild(Ge);var rt=n.getComputedStyle(Ge);qe=rt.top!=="1%",be=Me(rt.marginLeft)===12,Ge.style.right="60%",ae=Me(rt.right)===36,Qe=Me(rt.width)===36,Ge.style.position="absolute",J=Me(Ge.offsetWidth/3)===12,yn.removeChild(Re),Ge=null}}function Me(rt){return Math.round(parseFloat(rt))}var qe,Qe,J,ae,ve,be,Re=G.createElement("div"),Ge=G.createElement("div");Ge.style&&(Ge.style.backgroundClip="content-box",Ge.cloneNode(!0).style.backgroundClip="",N.clearCloneStyle=Ge.style.backgroundClip==="content-box",D.extend(N,{boxSizingReliable:function(){return de(),Qe},pixelBoxStyles:function(){return de(),ae},pixelPosition:function(){return de(),qe},reliableMarginLeft:function(){return de(),be},scrollboxSize:function(){return de(),J},reliableTrDimensions:function(){var rt,Dt,Mt,Yt;return ve==null&&(rt=G.createElement("table"),Dt=G.createElement("tr"),Mt=G.createElement("div"),rt.style.cssText="position:absolute;left:-11111px;border-collapse:separate",Dt.style.cssText="border:1px solid",Dt.style.height="1px",Mt.style.height="9px",Mt.style.display="block",yn.appendChild(rt).appendChild(Dt).appendChild(Mt),Yt=n.getComputedStyle(Dt),ve=parseInt(Yt.height,10)+parseInt(Yt.borderTopWidth,10)+parseInt(Yt.borderBottomWidth,10)===Dt.offsetHeight,yn.removeChild(rt)),ve}}))})();var ca=["Webkit","Moz","ms"],va=G.createElement("div").style,Ms={};function rs(de){return D.cssProps[de]||Ms[de]||(de in va?de:Ms[de]=function(Me){for(var qe=Me[0].toUpperCase()+Me.slice(1),Qe=ca.length;Qe--;)if((Me=ca[Qe]+qe)in va)return Me}(de)||de)}var Ai=/^(none|table(?!-c[ea]).+)/,Na={position:"absolute",visibility:"hidden",display:"block"},sl={letterSpacing:"0",fontWeight:"400"};function eo(de,Me,qe){var Qe=Ht.exec(Me);return Qe?Math.max(0,Qe[2]-(qe||0))+(Qe[3]||"px"):Me}function ja(de,Me,qe,Qe,J,ae){var ve=Me==="width"?1:0,be=0,Re=0,Ge=0;if(qe===(Qe?"border":"content"))return 0;for(;ve<4;ve+=2)qe==="margin"&&(Ge+=D.css(de,qe+sn[ve],!0,J)),Qe?(qe==="content"&&(Re-=D.css(de,"padding"+sn[ve],!0,J)),qe!=="margin"&&(Re-=D.css(de,"border"+sn[ve]+"Width",!0,J))):(Re+=D.css(de,"padding"+sn[ve],!0,J),qe!=="padding"?Re+=D.css(de,"border"+sn[ve]+"Width",!0,J):be+=D.css(de,"border"+sn[ve]+"Width",!0,J));return!Qe&&ae>=0&&(Re+=Math.max(0,Math.ceil(de["offset"+Me[0].toUpperCase()+Me.slice(1)]-ae-Re-be-.5))||0),Re+Ge}function no(de,Me,qe){var Qe=ua(de),J=(!N.boxSizingReliable()||qe)&&D.css(de,"boxSizing",!1,Qe)==="border-box",ae=J,ve=Xo(de,Me,Qe),be="offset"+Me[0].toUpperCase()+Me.slice(1);if(ha.test(ve)){if(!qe)return ve;ve="auto"}return(!N.boxSizingReliable()&&J||!N.reliableTrDimensions()&&re(de,"tr")||ve==="auto"||!parseFloat(ve)&&D.css(de,"display",!1,Qe)==="inline")&&de.getClientRects().length&&(J=D.css(de,"boxSizing",!1,Qe)==="border-box",(ae=be in de)&&(ve=de[be])),(ve=parseFloat(ve)||0)+ja(de,Me,qe||(J?"border":"content"),ae,Qe,ve)+"px"}function yo(de,Me,qe,Qe,J){return new yo.prototype.init(de,Me,qe,Qe,J)}D.extend({cssHooks:{opacity:{get:function(de,Me){if(Me){var qe=Xo(de,"opacity");return qe===""?"1":qe}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(de,Me,qe,Qe){if(de&&de.nodeType!==3&&de.nodeType!==8&&de.style){var J,ae,ve,be=Zt(Me),Re=ti.test(Me),Ge=de.style;if(Re||(Me=rs(be)),ve=D.cssHooks[Me]||D.cssHooks[be],qe===void 0)return ve&&"get"in ve&&(J=ve.get(de,!1,Qe))!==void 0?J:Ge[Me];(ae=typeof qe)=="string"&&(J=Ht.exec(qe))&&J[1]&&(qe=_n(de,Me,J),ae="number"),qe!=null&&qe==qe&&(ae!=="number"||Re||(qe+=J&&J[3]||(D.cssNumber[be]?"":"px")),N.clearCloneStyle||qe!==""||Me.indexOf("background")!==0||(Ge[Me]="inherit"),ve&&"set"in ve&&(qe=ve.set(de,qe,Qe))===void 0||(Re?Ge.setProperty(Me,qe):Ge[Me]=qe))}},css:function(de,Me,qe,Qe){var J,ae,ve,be=Zt(Me);return ti.test(Me)||(Me=rs(be)),(ve=D.cssHooks[Me]||D.cssHooks[be])&&"get"in ve&&(J=ve.get(de,!0,qe)),J===void 0&&(J=Xo(de,Me,Qe)),J==="normal"&&Me in sl&&(J=sl[Me]),qe===""||qe?(ae=parseFloat(J),qe===!0||isFinite(ae)?ae||0:J):J}}),D.each(["height","width"],function(de,Me){D.cssHooks[Me]={get:function(qe,Qe,J){if(Qe)return!Ai.test(D.css(qe,"display"))||qe.getClientRects().length&&qe.getBoundingClientRect().width?no(qe,Me,J):Va(qe,Na,function(){return no(qe,Me,J)})},set:function(qe,Qe,J){var ae,ve=ua(qe),be=!N.scrollboxSize()&&ve.position==="absolute",Re=(be||J)&&D.css(qe,"boxSizing",!1,ve)==="border-box",Ge=J?ja(qe,Me,J,Re,ve):0;return Re&&be&&(Ge-=Math.ceil(qe["offset"+Me[0].toUpperCase()+Me.slice(1)]-parseFloat(ve[Me])-ja(qe,Me,"border",!1,ve)-.5)),Ge&&(ae=Ht.exec(Qe))&&(ae[3]||"px")!=="px"&&(qe.style[Me]=Qe,Qe=D.css(qe,Me)),eo(0,Qe,Ge)}}}),D.cssHooks.marginLeft=qr(N.reliableMarginLeft,function(de,Me){if(Me)return(parseFloat(Xo(de,"marginLeft"))||de.getBoundingClientRect().left-Va(de,{marginLeft:0},function(){return de.getBoundingClientRect().left}))+"px"}),D.each({margin:"",padding:"",border:"Width"},function(de,Me){D.cssHooks[de+Me]={expand:function(qe){for(var Qe=0,J={},ae=typeof qe=="string"?qe.split(" "):[qe];Qe<4;Qe++)J[de+sn[Qe]+Me]=ae[Qe]||ae[Qe-2]||ae[0];return J}},de!=="margin"&&(D.cssHooks[de+Me].set=eo)}),D.fn.extend({css:function(de,Me){return _t(this,function(qe,Qe,J){var ae,ve,be={},Re=0;if(Array.isArray(Qe)){for(ae=ua(qe),ve=Qe.length;Re<ve;Re++)be[Qe[Re]]=D.css(qe,Qe[Re],!1,ae);return be}return J!==void 0?D.style(qe,Qe,J):D.css(qe,Qe)},de,Me,arguments.length>1)}}),D.Tween=yo,yo.prototype={constructor:yo,init:function(de,Me,qe,Qe,J,ae){this.elem=de,this.prop=qe,this.easing=J||D.easing._default,this.options=Me,this.start=this.now=this.cur(),this.end=Qe,this.unit=ae||(D.cssNumber[qe]?"":"px")},cur:function(){var de=yo.propHooks[this.prop];return de&&de.get?de.get(this):yo.propHooks._default.get(this)},run:function(de){var Me,qe=yo.propHooks[this.prop];return this.options.duration?this.pos=Me=D.easing[this.easing](de,this.options.duration*de,0,1,this.options.duration):this.pos=Me=de,this.now=(this.end-this.start)*Me+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),qe&&qe.set?qe.set(this):yo.propHooks._default.set(this),this}},yo.prototype.init.prototype=yo.prototype,yo.propHooks={_default:{get:function(de){var Me;return de.elem.nodeType!==1||de.elem[de.prop]!=null&&de.elem.style[de.prop]==null?de.elem[de.prop]:(Me=D.css(de.elem,de.prop,""))&&Me!=="auto"?Me:0},set:function(de){D.fx.step[de.prop]?D.fx.step[de.prop](de):de.elem.nodeType!==1||!D.cssHooks[de.prop]&&de.elem.style[rs(de.prop)]==null?de.elem[de.prop]=de.now:D.style(de.elem,de.prop,de.now+de.unit)}}},yo.propHooks.scrollTop=yo.propHooks.scrollLeft={set:function(de){de.elem.nodeType&&de.elem.parentNode&&(de.elem[de.prop]=de.now)}},D.easing={linear:function(de){return de},swing:function(de){return .5-Math.cos(de*Math.PI)/2},_default:"swing"},D.fx=yo.prototype.init,D.fx.step={};var Ra,Ye,$t=/^(?:toggle|show|hide)$/,ft=/queueHooks$/;function Gt(){Ye&&(G.hidden===!1&&n.requestAnimationFrame?n.requestAnimationFrame(Gt):n.setTimeout(Gt,D.fx.interval),D.fx.tick())}function bn(){return n.setTimeout(function(){Ra=void 0}),Ra=Date.now()}function sr(de,Me){var qe,Qe=0,J={height:de};for(Me=Me?1:0;Qe<4;Qe+=2-Me)J["margin"+(qe=sn[Qe])]=J["padding"+qe]=de;return Me&&(J.opacity=J.width=de),J}function Br(de,Me,qe){for(var Qe,J=(Pr.tweeners[Me]||[]).concat(Pr.tweeners["*"]),ae=0,ve=J.length;ae<ve;ae++)if(Qe=J[ae].call(qe,Me,de))return Qe}function Pr(de,Me,qe){var Qe,J,ae=0,ve=Pr.prefilters.length,be=D.Deferred().always(function(){delete Re.elem}),Re=function(){if(J)return!1;for(var Dt=Ra||bn(),Mt=Math.max(0,Ge.startTime+Ge.duration-Dt),Yt=1-(Mt/Ge.duration||0),Xn=0,Sn=Ge.tweens.length;Xn<Sn;Xn++)Ge.tweens[Xn].run(Yt);return be.notifyWith(de,[Ge,Yt,Mt]),Yt<1&&Sn?Mt:(Sn||be.notifyWith(de,[Ge,1,0]),be.resolveWith(de,[Ge]),!1)},Ge=be.promise({elem:de,props:D.extend({},Me),opts:D.extend(!0,{specialEasing:{},easing:D.easing._default},qe),originalProperties:Me,originalOptions:qe,startTime:Ra||bn(),duration:qe.duration,tweens:[],createTween:function(Dt,Mt){var Yt=D.Tween(de,Ge.opts,Dt,Mt,Ge.opts.specialEasing[Dt]||Ge.opts.easing);return Ge.tweens.push(Yt),Yt},stop:function(Dt){var Mt=0,Yt=Dt?Ge.tweens.length:0;if(J)return this;for(J=!0;Mt<Yt;Mt++)Ge.tweens[Mt].run(1);return Dt?(be.notifyWith(de,[Ge,1,0]),be.resolveWith(de,[Ge,Dt])):be.rejectWith(de,[Ge,Dt]),this}}),rt=Ge.props;for(function(Dt,Mt){var Yt,Xn,Sn,Gn,Or;for(Yt in Dt)if(Sn=Mt[Xn=Zt(Yt)],Gn=Dt[Yt],Array.isArray(Gn)&&(Sn=Gn[1],Gn=Dt[Yt]=Gn[0]),Yt!==Xn&&(Dt[Xn]=Gn,delete Dt[Yt]),(Or=D.cssHooks[Xn])&&"expand"in Or)for(Yt in Gn=Or.expand(Gn),delete Dt[Xn],Gn)Yt in Dt||(Dt[Yt]=Gn[Yt],Mt[Yt]=Sn);else Mt[Xn]=Sn}(rt,Ge.opts.specialEasing);ae<ve;ae++)if(Qe=Pr.prefilters[ae].call(Ge,de,rt,Ge.opts))return A(Qe.stop)&&(D._queueHooks(Ge.elem,Ge.opts.queue).stop=Qe.stop.bind(Qe)),Qe;return D.map(rt,Br,Ge),A(Ge.opts.start)&&Ge.opts.start.call(de,Ge),Ge.progress(Ge.opts.progress).done(Ge.opts.done,Ge.opts.complete).fail(Ge.opts.fail).always(Ge.opts.always),D.fx.timer(D.extend(Re,{elem:de,anim:Ge,queue:Ge.opts.queue})),Ge}D.Animation=D.extend(Pr,{tweeners:{"*":[function(de,Me){var qe=this.createTween(de,Me);return _n(qe.elem,de,Ht.exec(Me),qe),qe}]},tweener:function(de,Me){A(de)?(Me=de,de=["*"]):de=de.match(Lt);for(var qe,Qe=0,J=de.length;Qe<J;Qe++)qe=de[Qe],Pr.tweeners[qe]=Pr.tweeners[qe]||[],Pr.tweeners[qe].unshift(Me)},prefilters:[function(de,Me,qe){var Qe,J,ae,ve,be,Re,Ge,rt,Dt="width"in Me||"height"in Me,Mt=this,Yt={},Xn=de.style,Sn=de.nodeType&&ii(de),Gn=wt.get(de,"fxshow");for(Qe in qe.queue||((ve=D._queueHooks(de,"fx")).unqueued==null&&(ve.unqueued=0,be=ve.empty.fire,ve.empty.fire=function(){ve.unqueued||be()}),ve.unqueued++,Mt.always(function(){Mt.always(function(){ve.unqueued--,D.queue(de,"fx").length||ve.empty.fire()})})),Me)if(J=Me[Qe],$t.test(J)){if(delete Me[Qe],ae=ae||J==="toggle",J===(Sn?"hide":"show")){if(J!=="show"||!Gn||Gn[Qe]===void 0)continue;Sn=!0}Yt[Qe]=Gn&&Gn[Qe]||D.style(de,Qe)}if((Re=!D.isEmptyObject(Me))||!D.isEmptyObject(Yt))for(Qe in Dt&&de.nodeType===1&&(qe.overflow=[Xn.overflow,Xn.overflowX,Xn.overflowY],(Ge=Gn&&Gn.display)==null&&(Ge=wt.get(de,"display")),(rt=D.css(de,"display"))==="none"&&(Ge?rt=Ge:(ln([de],!0),Ge=de.style.display||Ge,rt=D.css(de,"display"),ln([de]))),(rt==="inline"||rt==="inline-block"&&Ge!=null)&&D.css(de,"float")==="none"&&(Re||(Mt.done(function(){Xn.display=Ge}),Ge==null&&(rt=Xn.display,Ge=rt==="none"?"":rt)),Xn.display="inline-block")),qe.overflow&&(Xn.overflow="hidden",Mt.always(function(){Xn.overflow=qe.overflow[0],Xn.overflowX=qe.overflow[1],Xn.overflowY=qe.overflow[2]})),Re=!1,Yt)Re||(Gn?"hidden"in Gn&&(Sn=Gn.hidden):Gn=wt.access(de,"fxshow",{display:Ge}),ae&&(Gn.hidden=!Sn),Sn&&ln([de],!0),Mt.done(function(){for(Qe in Sn||ln([de]),wt.remove(de,"fxshow"),Yt)D.style(de,Qe,Yt[Qe])})),Re=Br(Sn?Gn[Qe]:0,Qe,Mt),Qe in Gn||(Gn[Qe]=Re.start,Sn&&(Re.end=Re.start,Re.start=0))}],prefilter:function(de,Me){Me?Pr.prefilters.unshift(de):Pr.prefilters.push(de)}}),D.speed=function(de,Me,qe){var Qe=de&&typeof de=="object"?D.extend({},de):{complete:qe||!qe&&Me||A(de)&&de,duration:de,easing:qe&&Me||Me&&!A(Me)&&Me};return D.fx.off?Qe.duration=0:typeof Qe.duration!="number"&&(Qe.duration in D.fx.speeds?Qe.duration=D.fx.speeds[Qe.duration]:Qe.duration=D.fx.speeds._default),Qe.queue!=null&&Qe.queue!==!0||(Qe.queue="fx"),Qe.old=Qe.complete,Qe.complete=function(){A(Qe.old)&&Qe.old.call(this),Qe.queue&&D.dequeue(this,Qe.queue)},Qe},D.fn.extend({fadeTo:function(de,Me,qe,Qe){return this.filter(ii).css("opacity",0).show().end().animate({opacity:Me},de,qe,Qe)},animate:function(de,Me,qe,Qe){var J=D.isEmptyObject(de),ae=D.speed(Me,qe,Qe),ve=function(){var be=Pr(this,D.extend({},de),ae);(J||wt.get(this,"finish"))&&be.stop(!0)};return ve.finish=ve,J||ae.queue===!1?this.each(ve):this.queue(ae.queue,ve)},stop:function(de,Me,qe){var Qe=function(J){var ae=J.stop;delete J.stop,ae(qe)};return typeof de!="string"&&(qe=Me,Me=de,de=void 0),Me&&this.queue(de||"fx",[]),this.each(function(){var J=!0,ae=de!=null&&de+"queueHooks",ve=D.timers,be=wt.get(this);if(ae)be[ae]&&be[ae].stop&&Qe(be[ae]);else for(ae in be)be[ae]&&be[ae].stop&&ft.test(ae)&&Qe(be[ae]);for(ae=ve.length;ae--;)ve[ae].elem!==this||de!=null&&ve[ae].queue!==de||(ve[ae].anim.stop(qe),J=!1,ve.splice(ae,1));!J&&qe||D.dequeue(this,de)})},finish:function(de){return de!==!1&&(de=de||"fx"),this.each(function(){var Me,qe=wt.get(this),Qe=qe[de+"queue"],J=qe[de+"queueHooks"],ae=D.timers,ve=Qe?Qe.length:0;for(qe.finish=!0,D.queue(this,de,[]),J&&J.stop&&J.stop.call(this,!0),Me=ae.length;Me--;)ae[Me].elem===this&&ae[Me].queue===de&&(ae[Me].anim.stop(!0),ae.splice(Me,1));for(Me=0;Me<ve;Me++)Qe[Me]&&Qe[Me].finish&&Qe[Me].finish.call(this);delete qe.finish})}}),D.each(["toggle","show","hide"],function(de,Me){var qe=D.fn[Me];D.fn[Me]=function(Qe,J,ae){return Qe==null||typeof Qe=="boolean"?qe.apply(this,arguments):this.animate(sr(Me,!0),Qe,J,ae)}}),D.each({slideDown:sr("show"),slideUp:sr("hide"),slideToggle:sr("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(de,Me){D.fn[de]=function(qe,Qe,J){return this.animate(Me,qe,Qe,J)}}),D.timers=[],D.fx.tick=function(){var de,Me=0,qe=D.timers;for(Ra=Date.now();Me<qe.length;Me++)(de=qe[Me])()||qe[Me]!==de||qe.splice(Me--,1);qe.length||D.fx.stop(),Ra=void 0},D.fx.timer=function(de){D.timers.push(de),D.fx.start()},D.fx.interval=13,D.fx.start=function(){Ye||(Ye=!0,Gt())},D.fx.stop=function(){Ye=null},D.fx.speeds={slow:600,fast:200,_default:400},D.fn.delay=function(de,Me){return de=D.fx&&D.fx.speeds[de]||de,Me=Me||"fx",this.queue(Me,function(qe,Qe){var J=n.setTimeout(qe,de);Qe.stop=function(){n.clearTimeout(J)}})},function(){var de=G.createElement("input"),Me=G.createElement("select").appendChild(G.createElement("option"));de.type="checkbox",N.checkOn=de.value!=="",N.optSelected=Me.selected,(de=G.createElement("input")).value="t",de.type="radio",N.radioValue=de.value==="t"}();var Mi,vi=D.expr.attrHandle;D.fn.extend({attr:function(de,Me){return _t(this,D.attr,de,Me,arguments.length>1)},removeAttr:function(de){return this.each(function(){D.removeAttr(this,de)})}}),D.extend({attr:function(de,Me,qe){var Qe,J,ae=de.nodeType;if(ae!==3&&ae!==8&&ae!==2)return de.getAttribute===void 0?D.prop(de,Me,qe):(ae===1&&D.isXMLDoc(de)||(J=D.attrHooks[Me.toLowerCase()]||(D.expr.match.bool.test(Me)?Mi:void 0)),qe!==void 0?qe===null?void D.removeAttr(de,Me):J&&"set"in J&&(Qe=J.set(de,qe,Me))!==void 0?Qe:(de.setAttribute(Me,qe+""),qe):J&&"get"in J&&(Qe=J.get(de,Me))!==null?Qe:(Qe=D.find.attr(de,Me))==null?void 0:Qe)},attrHooks:{type:{set:function(de,Me){if(!N.radioValue&&Me==="radio"&&re(de,"input")){var qe=de.value;return de.setAttribute("type",Me),qe&&(de.value=qe),Me}}}},removeAttr:function(de,Me){var qe,Qe=0,J=Me&&Me.match(Lt);if(J&&de.nodeType===1)for(;qe=J[Qe++];)de.removeAttribute(qe)}}),Mi={set:function(de,Me,qe){return Me===!1?D.removeAttr(de,qe):de.setAttribute(qe,qe),qe}},D.each(D.expr.match.bool.source.match(/\w+/g),function(de,Me){var qe=vi[Me]||D.find.attr;vi[Me]=function(Qe,J,ae){var ve,be,Re=J.toLowerCase();return ae||(be=vi[Re],vi[Re]=ve,ve=qe(Qe,J,ae)!=null?Re:null,vi[Re]=be),ve}});var Sa=/^(?:input|select|textarea|button)$/i,La=/^(?:a|area)$/i;function Cs(de){return(de.match(Lt)||[]).join(" ")}function ko(de){return de.getAttribute&&de.getAttribute("class")||""}function Co(de){return Array.isArray(de)?de:typeof de=="string"&&de.match(Lt)||[]}D.fn.extend({prop:function(de,Me){return _t(this,D.prop,de,Me,arguments.length>1)},removeProp:function(de){return this.each(function(){delete this[D.propFix[de]||de]})}}),D.extend({prop:function(de,Me,qe){var Qe,J,ae=de.nodeType;if(ae!==3&&ae!==8&&ae!==2)return ae===1&&D.isXMLDoc(de)||(Me=D.propFix[Me]||Me,J=D.propHooks[Me]),qe!==void 0?J&&"set"in J&&(Qe=J.set(de,qe,Me))!==void 0?Qe:de[Me]=qe:J&&"get"in J&&(Qe=J.get(de,Me))!==null?Qe:de[Me]},propHooks:{tabIndex:{get:function(de){var Me=D.find.attr(de,"tabindex");return Me?parseInt(Me,10):Sa.test(de.nodeName)||La.test(de.nodeName)&&de.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),N.optSelected||(D.propHooks.selected={get:function(de){var Me=de.parentNode;return Me&&Me.parentNode&&Me.parentNode.selectedIndex,null},set:function(de){var Me=de.parentNode;Me&&(Me.selectedIndex,Me.parentNode&&Me.parentNode.selectedIndex)}}),D.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){D.propFix[this.toLowerCase()]=this}),D.fn.extend({addClass:function(de){var Me,qe,Qe,J,ae,ve;return A(de)?this.each(function(be){D(this).addClass(de.call(this,be,ko(this)))}):(Me=Co(de)).length?this.each(function(){if(Qe=ko(this),qe=this.nodeType===1&&" "+Cs(Qe)+" "){for(ae=0;ae<Me.length;ae++)J=Me[ae],qe.indexOf(" "+J+" ")<0&&(qe+=J+" ");ve=Cs(qe),Qe!==ve&&this.setAttribute("class",ve)}}):this},removeClass:function(de){var Me,qe,Qe,J,ae,ve;return A(de)?this.each(function(be){D(this).removeClass(de.call(this,be,ko(this)))}):arguments.length?(Me=Co(de)).length?this.each(function(){if(Qe=ko(this),qe=this.nodeType===1&&" "+Cs(Qe)+" "){for(ae=0;ae<Me.length;ae++)for(J=Me[ae];qe.indexOf(" "+J+" ")>-1;)qe=qe.replace(" "+J+" "," ");ve=Cs(qe),Qe!==ve&&this.setAttribute("class",ve)}}):this:this.attr("class","")},toggleClass:function(de,Me){var qe,Qe,J,ae,ve=typeof de,be=ve==="string"||Array.isArray(de);return A(de)?this.each(function(Re){D(this).toggleClass(de.call(this,Re,ko(this),Me),Me)}):typeof Me=="boolean"&&be?Me?this.addClass(de):this.removeClass(de):(qe=Co(de),this.each(function(){if(be)for(ae=D(this),J=0;J<qe.length;J++)Qe=qe[J],ae.hasClass(Qe)?ae.removeClass(Qe):ae.addClass(Qe);else de!==void 0&&ve!=="boolean"||((Qe=ko(this))&&wt.set(this,"__className__",Qe),this.setAttribute&&this.setAttribute("class",Qe||de===!1?"":wt.get(this,"__className__")||""))}))},hasClass:function(de){var Me,qe,Qe=0;for(Me=" "+de+" ";qe=this[Qe++];)if(qe.nodeType===1&&(" "+Cs(ko(qe))+" ").indexOf(Me)>-1)return!0;return!1}});var gs=/\r/g;D.fn.extend({val:function(de){var Me,qe,Qe,J=this[0];return arguments.length?(Qe=A(de),this.each(function(ae){var ve;this.nodeType===1&&((ve=Qe?de.call(this,ae,D(this).val()):de)==null?ve="":typeof ve=="number"?ve+="":Array.isArray(ve)&&(ve=D.map(ve,function(be){return be==null?"":be+""})),(Me=D.valHooks[this.type]||D.valHooks[this.nodeName.toLowerCase()])&&"set"in Me&&Me.set(this,ve,"value")!==void 0||(this.value=ve))})):J?(Me=D.valHooks[J.type]||D.valHooks[J.nodeName.toLowerCase()])&&"get"in Me&&(qe=Me.get(J,"value"))!==void 0?qe:typeof(qe=J.value)=="string"?qe.replace(gs,""):qe==null?"":qe:void 0}}),D.extend({valHooks:{option:{get:function(de){var Me=D.find.attr(de,"value");return Me!=null?Me:Cs(D.text(de))}},select:{get:function(de){var Me,qe,Qe,J=de.options,ae=de.selectedIndex,ve=de.type==="select-one",be=ve?null:[],Re=ve?ae+1:J.length;for(Qe=ae<0?Re:ve?ae:0;Qe<Re;Qe++)if(((qe=J[Qe]).selected||Qe===ae)&&!qe.disabled&&(!qe.parentNode.disabled||!re(qe.parentNode,"optgroup"))){if(Me=D(qe).val(),ve)return Me;be.push(Me)}return be},set:function(de,Me){for(var qe,Qe,J=de.options,ae=D.makeArray(Me),ve=J.length;ve--;)((Qe=J[ve]).selected=D.inArray(D.valHooks.option.get(Qe),ae)>-1)&&(qe=!0);return qe||(de.selectedIndex=-1),ae}}}}),D.each(["radio","checkbox"],function(){D.valHooks[this]={set:function(de,Me){if(Array.isArray(Me))return de.checked=D.inArray(D(de).val(),Me)>-1}},N.checkOn||(D.valHooks[this].get=function(de){return de.getAttribute("value")===null?"on":de.value})});var No=n.location,wl={guid:Date.now()},Ua=/\?/;D.parseXML=function(de){var Me,qe;if(!de||typeof de!="string")return null;try{Me=new n.DOMParser().parseFromString(de,"text/xml")}catch(Qe){}return qe=Me&&Me.getElementsByTagName("parsererror")[0],Me&&!qe||D.error("Invalid XML: "+(qe?D.map(qe.childNodes,function(Qe){return Qe.textContent}).join(`
  3250. `):de)),Me};var Vs=/^(?:focusinfocus|focusoutblur)$/,jo=function(de){de.stopPropagation()};D.extend(D.event,{trigger:function(de,Me,qe,Qe){var J,ae,ve,be,Re,Ge,rt,Dt,Mt=[qe||G],Yt=E.call(de,"type")?de.type:de,Xn=E.call(de,"namespace")?de.namespace.split("."):[];if(ae=Dt=ve=qe=qe||G,qe.nodeType!==3&&qe.nodeType!==8&&!Vs.test(Yt+D.event.triggered)&&(Yt.indexOf(".")>-1&&(Yt=(Xn=Yt.split(".")).shift(),Xn.sort()),Re=Yt.indexOf(":")<0&&"on"+Yt,(de=de[D.expando]?de:new D.Event(Yt,typeof de=="object"&&de)).isTrigger=Qe?2:3,de.namespace=Xn.join("."),de.rnamespace=de.namespace?new RegExp("(^|\\.)"+Xn.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,de.result=void 0,de.target||(de.target=qe),Me=Me==null?[de]:D.makeArray(Me,[de]),rt=D.event.special[Yt]||{},Qe||!rt.trigger||rt.trigger.apply(qe,Me)!==!1)){if(!Qe&&!rt.noBubble&&!z(qe)){for(be=rt.delegateType||Yt,Vs.test(be+Yt)||(ae=ae.parentNode);ae;ae=ae.parentNode)Mt.push(ae),ve=ae;ve===(qe.ownerDocument||G)&&Mt.push(ve.defaultView||ve.parentWindow||n)}for(J=0;(ae=Mt[J++])&&!de.isPropagationStopped();)Dt=ae,de.type=J>1?be:rt.bindType||Yt,(Ge=(wt.get(ae,"events")||Object.create(null))[de.type]&&wt.get(ae,"handle"))&&Ge.apply(ae,Me),(Ge=Re&&ae[Re])&&Ge.apply&&Et(ae)&&(de.result=Ge.apply(ae,Me),de.result===!1&&de.preventDefault());return de.type=Yt,Qe||de.isDefaultPrevented()||rt._default&&rt._default.apply(Mt.pop(),Me)!==!1||!Et(qe)||Re&&A(qe[Yt])&&!z(qe)&&((ve=qe[Re])&&(qe[Re]=null),D.event.triggered=Yt,de.isPropagationStopped()&&Dt.addEventListener(Yt,jo),qe[Yt](),de.isPropagationStopped()&&Dt.removeEventListener(Yt,jo),D.event.triggered=void 0,ve&&(qe[Re]=ve)),de.result}},simulate:function(de,Me,qe){var Qe=D.extend(new D.Event,qe,{type:de,isSimulated:!0});D.event.trigger(Qe,null,Me)}}),D.fn.extend({trigger:function(de,Me){return this.each(function(){D.event.trigger(de,Me,this)})},triggerHandler:function(de,Me){var qe=this[0];if(qe)return D.event.trigger(de,Me,qe,!0)}});var ys=/\[\]$/,Ol=/\r?\n/g,is=/^(?:submit|button|image|reset|file)$/i,Ta=/^(?:input|select|textarea|keygen)/i;function Lr(de,Me,qe,Qe){var J;if(Array.isArray(Me))D.each(Me,function(ae,ve){qe||ys.test(de)?Qe(de,ve):Lr(de+"["+(typeof ve=="object"&&ve!=null?ae:"")+"]",ve,qe,Qe)});else if(qe||W(Me)!=="object")Qe(de,Me);else for(J in Me)Lr(de+"["+J+"]",Me[J],qe,Qe)}D.param=function(de,Me){var qe,Qe=[],J=function(ae,ve){var be=A(ve)?ve():ve;Qe[Qe.length]=encodeURIComponent(ae)+"="+encodeURIComponent(be==null?"":be)};if(de==null)return"";if(Array.isArray(de)||de.jquery&&!D.isPlainObject(de))D.each(de,function(){J(this.name,this.value)});else for(qe in de)Lr(qe,de[qe],Me,J);return Qe.join("&")},D.fn.extend({serialize:function(){return D.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var de=D.prop(this,"elements");return de?D.makeArray(de):this}).filter(function(){var de=this.type;return this.name&&!D(this).is(":disabled")&&Ta.test(this.nodeName)&&!is.test(de)&&(this.checked||!Jr.test(de))}).map(function(de,Me){var qe=D(this).val();return qe==null?null:Array.isArray(qe)?D.map(qe,function(Qe){return{name:Me.name,value:Qe.replace(Ol,`\r
  3251. `)}}):{name:Me.name,value:qe.replace(Ol,`\r
  3252. `)}}).get()}});var Vo=/%20/g,ll=/#.*$/,xu=/([?&])_=[^&]*/,vo=/^(.*?):[ \t]*([^\r\n]*)$/gm,_o=/^(?:GET|HEAD)$/,Rs=/^\/\//,Fl={},Zo={},ql="*/".concat("*"),Al=G.createElement("a");function Kt(de){return function(Me,qe){typeof Me!="string"&&(qe=Me,Me="*");var Qe,J=0,ae=Me.toLowerCase().match(Lt)||[];if(A(qe))for(;Qe=ae[J++];)Qe[0]==="+"?(Qe=Qe.slice(1)||"*",(de[Qe]=de[Qe]||[]).unshift(qe)):(de[Qe]=de[Qe]||[]).push(qe)}}function Ml(de,Me,qe,Qe){var J={},ae=de===Zo;function ve(be){var Re;return J[be]=!0,D.each(de[be]||[],function(Ge,rt){var Dt=rt(Me,qe,Qe);return typeof Dt!="string"||ae||J[Dt]?ae?!(Re=Dt):void 0:(Me.dataTypes.unshift(Dt),ve(Dt),!1)}),Re}return ve(Me.dataTypes[0])||!J["*"]&&ve("*")}function rr(de,Me){var qe,Qe,J=D.ajaxSettings.flatOptions||{};for(qe in Me)Me[qe]!==void 0&&((J[qe]?de:Qe||(Qe={}))[qe]=Me[qe]);return Qe&&D.extend(!0,de,Qe),de}Al.href=No.href,D.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:No.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(No.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ql,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":D.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(de,Me){return Me?rr(rr(de,D.ajaxSettings),Me):rr(D.ajaxSettings,de)},ajaxPrefilter:Kt(Fl),ajaxTransport:Kt(Zo),ajax:function(de,Me){typeof de=="object"&&(Me=de,de=void 0),Me=Me||{};var qe,Qe,J,ae,ve,be,Re,Ge,rt,Dt,Mt=D.ajaxSetup({},Me),Yt=Mt.context||Mt,Xn=Mt.context&&(Yt.nodeType||Yt.jquery)?D(Yt):D.event,Sn=D.Deferred(),Gn=D.Callbacks("once memory"),Or=Mt.statusCode||{},ki={},Ia={},ma="canceled",na={readyState:0,getResponseHeader:function(Da){var Yi;if(Re){if(!ae)for(ae={};Yi=vo.exec(J);)ae[Yi[1].toLowerCase()+" "]=(ae[Yi[1].toLowerCase()+" "]||[]).concat(Yi[2]);Yi=ae[Da.toLowerCase()+" "]}return Yi==null?null:Yi.join(", ")},getAllResponseHeaders:function(){return Re?J:null},setRequestHeader:function(Da,Yi){return Re==null&&(Da=Ia[Da.toLowerCase()]=Ia[Da.toLowerCase()]||Da,ki[Da]=Yi),this},overrideMimeType:function(Da){return Re==null&&(Mt.mimeType=Da),this},statusCode:function(Da){var Yi;if(Da)if(Re)na.always(Da[na.status]);else for(Yi in Da)Or[Yi]=[Or[Yi],Da[Yi]];return this},abort:function(Da){var Yi=Da||ma;return qe&&qe.abort(Yi),Ya(0,Yi),this}};if(Sn.promise(na),Mt.url=((de||Mt.url||No.href)+"").replace(Rs,No.protocol+"//"),Mt.type=Me.method||Me.type||Mt.method||Mt.type,Mt.dataTypes=(Mt.dataType||"*").toLowerCase().match(Lt)||[""],Mt.crossDomain==null){be=G.createElement("a");try{be.href=Mt.url,be.href=be.href,Mt.crossDomain=Al.protocol+"//"+Al.host!=be.protocol+"//"+be.host}catch(Da){Mt.crossDomain=!0}}if(Mt.data&&Mt.processData&&typeof Mt.data!="string"&&(Mt.data=D.param(Mt.data,Mt.traditional)),Ml(Fl,Mt,Me,na),Re)return na;for(rt in(Ge=D.event&&Mt.global)&&D.active++==0&&D.event.trigger("ajaxStart"),Mt.type=Mt.type.toUpperCase(),Mt.hasContent=!_o.test(Mt.type),Qe=Mt.url.replace(ll,""),Mt.hasContent?Mt.data&&Mt.processData&&(Mt.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(Mt.data=Mt.data.replace(Vo,"+")):(Dt=Mt.url.slice(Qe.length),Mt.data&&(Mt.processData||typeof Mt.data=="string")&&(Qe+=(Ua.test(Qe)?"&":"?")+Mt.data,delete Mt.data),Mt.cache===!1&&(Qe=Qe.replace(xu,"$1"),Dt=(Ua.test(Qe)?"&":"?")+"_="+wl.guid+++Dt),Mt.url=Qe+Dt),Mt.ifModified&&(D.lastModified[Qe]&&na.setRequestHeader("If-Modified-Since",D.lastModified[Qe]),D.etag[Qe]&&na.setRequestHeader("If-None-Match",D.etag[Qe])),(Mt.data&&Mt.hasContent&&Mt.contentType!==!1||Me.contentType)&&na.setRequestHeader("Content-Type",Mt.contentType),na.setRequestHeader("Accept",Mt.dataTypes[0]&&Mt.accepts[Mt.dataTypes[0]]?Mt.accepts[Mt.dataTypes[0]]+(Mt.dataTypes[0]!=="*"?", "+ql+"; q=0.01":""):Mt.accepts["*"]),Mt.headers)na.setRequestHeader(rt,Mt.headers[rt]);if(Mt.beforeSend&&(Mt.beforeSend.call(Yt,na,Mt)===!1||Re))return na.abort();if(ma="abort",Gn.add(Mt.complete),na.done(Mt.success),na.fail(Mt.error),qe=Ml(Zo,Mt,Me,na)){if(na.readyState=1,Ge&&Xn.trigger("ajaxSend",[na,Mt]),Re)return na;Mt.async&&Mt.timeout>0&&(ve=n.setTimeout(function(){na.abort("timeout")},Mt.timeout));try{Re=!1,qe.send(ki,Ya)}catch(Da){if(Re)throw Da;Ya(-1,Da)}}else Ya(-1,"No Transport");function Ya(Da,Yi,Ba,gl){var Oa,Oo,Ls,Ss,Es,vs=Yi;Re||(Re=!0,ve&&n.clearTimeout(ve),qe=void 0,J=gl||"",na.readyState=Da>0?4:0,Oa=Da>=200&&Da<300||Da===304,Ba&&(Ss=function(po,oo,Ko){for(var Ts,as,Qi,Io,Jo=po.contents,fo=po.dataTypes;fo[0]==="*";)fo.shift(),Ts===void 0&&(Ts=po.mimeType||oo.getResponseHeader("Content-Type"));if(Ts){for(as in Jo)if(Jo[as]&&Jo[as].test(Ts)){fo.unshift(as);break}}if(fo[0]in Ko)Qi=fo[0];else{for(as in Ko){if(!fo[0]||po.converters[as+" "+fo[0]]){Qi=as;break}Io||(Io=as)}Qi=Qi||Io}if(Qi)return Qi!==fo[0]&&fo.unshift(Qi),Ko[Qi]}(Mt,na,Ba)),!Oa&&D.inArray("script",Mt.dataTypes)>-1&&D.inArray("json",Mt.dataTypes)<0&&(Mt.converters["text script"]=function(){}),Ss=function(po,oo,Ko,Ts){var as,Qi,Io,Jo,fo,ul={},lo=po.dataTypes.slice();if(lo[1])for(Io in po.converters)ul[Io.toLowerCase()]=po.converters[Io];for(Qi=lo.shift();Qi;)if(po.responseFields[Qi]&&(Ko[po.responseFields[Qi]]=oo),!fo&&Ts&&po.dataFilter&&(oo=po.dataFilter(oo,po.dataType)),fo=Qi,Qi=lo.shift()){if(Qi==="*")Qi=fo;else if(fo!=="*"&&fo!==Qi){if(!(Io=ul[fo+" "+Qi]||ul["* "+Qi])){for(as in ul)if((Jo=as.split(" "))[1]===Qi&&(Io=ul[fo+" "+Jo[0]]||ul["* "+Jo[0]])){Io===!0?Io=ul[as]:ul[as]!==!0&&(Qi=Jo[0],lo.unshift(Jo[1]));break}}if(Io!==!0)if(Io&&po.throws)oo=Io(oo);else try{oo=Io(oo)}catch(bu){return{state:"parsererror",error:Io?bu:"No conversion from "+fo+" to "+Qi}}}}return{state:"success",data:oo}}(Mt,Ss,na,Oa),Oa?(Mt.ifModified&&((Es=na.getResponseHeader("Last-Modified"))&&(D.lastModified[Qe]=Es),(Es=na.getResponseHeader("etag"))&&(D.etag[Qe]=Es)),Da===204||Mt.type==="HEAD"?vs="nocontent":Da===304?vs="notmodified":(vs=Ss.state,Oo=Ss.data,Oa=!(Ls=Ss.error))):(Ls=vs,!Da&&vs||(vs="error",Da<0&&(Da=0))),na.status=Da,na.statusText=(Yi||vs)+"",Oa?Sn.resolveWith(Yt,[Oo,vs,na]):Sn.rejectWith(Yt,[na,vs,Ls]),na.statusCode(Or),Or=void 0,Ge&&Xn.trigger(Oa?"ajaxSuccess":"ajaxError",[na,Mt,Oa?Oo:Ls]),Gn.fireWith(Yt,[na,vs]),Ge&&(Xn.trigger("ajaxComplete",[na,Mt]),--D.active||D.event.trigger("ajaxStop")))}return na},getJSON:function(de,Me,qe){return D.get(de,Me,qe,"json")},getScript:function(de,Me){return D.get(de,void 0,Me,"script")}}),D.each(["get","post"],function(de,Me){D[Me]=function(qe,Qe,J,ae){return A(Qe)&&(ae=ae||J,J=Qe,Qe=void 0),D.ajax(D.extend({url:qe,type:Me,dataType:ae,data:Qe,success:J},D.isPlainObject(qe)&&qe))}}),D.ajaxPrefilter(function(de){var Me;for(Me in de.headers)Me.toLowerCase()==="content-type"&&(de.contentType=de.headers[Me]||"")}),D._evalUrl=function(de,Me,qe){return D.ajax({url:de,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(Qe){D.globalEval(Qe,Me,qe)}})},D.fn.extend({wrapAll:function(de){var Me;return this[0]&&(A(de)&&(de=de.call(this[0])),Me=D(de,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&Me.insertBefore(this[0]),Me.map(function(){for(var qe=this;qe.firstElementChild;)qe=qe.firstElementChild;return qe}).append(this)),this},wrapInner:function(de){return A(de)?this.each(function(Me){D(this).wrapInner(de.call(this,Me))}):this.each(function(){var Me=D(this),qe=Me.contents();qe.length?qe.wrapAll(de):Me.append(de)})},wrap:function(de){var Me=A(de);return this.each(function(qe){D(this).wrapAll(Me?de.call(this,qe):de)})},unwrap:function(de){return this.parent(de).not("body").each(function(){D(this).replaceWith(this.childNodes)}),this}}),D.expr.pseudos.hidden=function(de){return!D.expr.pseudos.visible(de)},D.expr.pseudos.visible=function(de){return!!(de.offsetWidth||de.offsetHeight||de.getClientRects().length)},D.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(de){}};var to={0:200,1223:204},ho=D.ajaxSettings.xhr();N.cors=!!ho&&"withCredentials"in ho,N.ajax=ho=!!ho,D.ajaxTransport(function(de){var Me,qe;if(N.cors||ho&&!de.crossDomain)return{send:function(Qe,J){var ae,ve=de.xhr();if(ve.open(de.type,de.url,de.async,de.username,de.password),de.xhrFields)for(ae in de.xhrFields)ve[ae]=de.xhrFields[ae];for(ae in de.mimeType&&ve.overrideMimeType&&ve.overrideMimeType(de.mimeType),de.crossDomain||Qe["X-Requested-With"]||(Qe["X-Requested-With"]="XMLHttpRequest"),Qe)ve.setRequestHeader(ae,Qe[ae]);Me=function(be){return function(){Me&&(Me=qe=ve.onload=ve.onerror=ve.onabort=ve.ontimeout=ve.onreadystatechange=null,be==="abort"?ve.abort():be==="error"?typeof ve.status!="number"?J(0,"error"):J(ve.status,ve.statusText):J(to[ve.status]||ve.status,ve.statusText,(ve.responseType||"text")!=="text"||typeof ve.responseText!="string"?{binary:ve.response}:{text:ve.responseText},ve.getAllResponseHeaders()))}},ve.onload=Me(),qe=ve.onerror=ve.ontimeout=Me("error"),ve.onabort!==void 0?ve.onabort=qe:ve.onreadystatechange=function(){ve.readyState===4&&n.setTimeout(function(){Me&&qe()})},Me=Me("abort");try{ve.send(de.hasContent&&de.data||null)}catch(be){if(Me)throw be}},abort:function(){Me&&Me()}}}),D.ajaxPrefilter(function(de){de.crossDomain&&(de.contents.script=!1)}),D.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(de){return D.globalEval(de),de}}}),D.ajaxPrefilter("script",function(de){de.cache===void 0&&(de.cache=!1),de.crossDomain&&(de.type="GET")}),D.ajaxTransport("script",function(de){var Me,qe;if(de.crossDomain||de.scriptAttrs)return{send:function(Qe,J){Me=D("<script>").attr(de.scriptAttrs||{}).prop({charset:de.scriptCharset,src:de.url}).on("load error",qe=function(ae){Me.remove(),qe=null,ae&&J(ae.type==="error"?404:200,ae.type)}),G.head.appendChild(Me[0])},abort:function(){qe&&qe()}}});var xa,Ea=[],ao=/(=)\?(?=&|$)|\?\?/;D.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var de=Ea.pop()||D.expando+"_"+wl.guid++;return this[de]=!0,de}}),D.ajaxPrefilter("json jsonp",function(de,Me,qe){var Qe,J,ae,ve=de.jsonp!==!1&&(ao.test(de.url)?"url":typeof de.data=="string"&&(de.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&ao.test(de.data)&&"data");if(ve||de.dataTypes[0]==="jsonp")return Qe=de.jsonpCallback=A(de.jsonpCallback)?de.jsonpCallback():de.jsonpCallback,ve?de[ve]=de[ve].replace(ao,"$1"+Qe):de.jsonp!==!1&&(de.url+=(Ua.test(de.url)?"&":"?")+de.jsonp+"="+Qe),de.converters["script json"]=function(){return ae||D.error(Qe+" was not called"),ae[0]},de.dataTypes[0]="json",J=n[Qe],n[Qe]=function(){ae=arguments},qe.always(function(){J===void 0?D(n).removeProp(Qe):n[Qe]=J,de[Qe]&&(de.jsonpCallback=Me.jsonpCallback,Ea.push(Qe)),ae&&A(J)&&J(ae[0]),ae=J=void 0}),"script"}),N.createHTMLDocument=((xa=G.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",xa.childNodes.length===2),D.parseHTML=function(de,Me,qe){return typeof de!="string"?[]:(typeof Me=="boolean"&&(qe=Me,Me=!1),Me||(N.createHTMLDocument?((Qe=(Me=G.implementation.createHTMLDocument("")).createElement("base")).href=G.location.href,Me.head.appendChild(Qe)):Me=G),ae=!qe&&[],(J=Be.exec(de))?[Me.createElement(J[1])]:(J=xt([de],Me,ae),ae&&ae.length&&D(ae).remove(),D.merge([],J.childNodes)));var Qe,J,ae},D.fn.load=function(de,Me,qe){var Qe,J,ae,ve=this,be=de.indexOf(" ");return be>-1&&(Qe=Cs(de.slice(be)),de=de.slice(0,be)),A(Me)?(qe=Me,Me=void 0):Me&&typeof Me=="object"&&(J="POST"),ve.length>0&&D.ajax({url:de,type:J||"GET",dataType:"html",data:Me}).done(function(Re){ae=arguments,ve.html(Qe?D("<div>").append(D.parseHTML(Re)).find(Qe):Re)}).always(qe&&function(Re,Ge){ve.each(function(){qe.apply(this,ae||[Re.responseText,Ge,Re])})}),this},D.expr.pseudos.animated=function(de){return D.grep(D.timers,function(Me){return de===Me.elem}).length},D.offset={setOffset:function(de,Me,qe){var Qe,J,ae,ve,be,Re,Ge=D.css(de,"position"),rt=D(de),Dt={};Ge==="static"&&(de.style.position="relative"),be=rt.offset(),ae=D.css(de,"top"),Re=D.css(de,"left"),(Ge==="absolute"||Ge==="fixed")&&(ae+Re).indexOf("auto")>-1?(ve=(Qe=rt.position()).top,J=Qe.left):(ve=parseFloat(ae)||0,J=parseFloat(Re)||0),A(Me)&&(Me=Me.call(de,qe,D.extend({},be))),Me.top!=null&&(Dt.top=Me.top-be.top+ve),Me.left!=null&&(Dt.left=Me.left-be.left+J),"using"in Me?Me.using.call(de,Dt):rt.css(Dt)}},D.fn.extend({offset:function(de){if(arguments.length)return de===void 0?this:this.each(function(J){D.offset.setOffset(this,de,J)});var Me,qe,Qe=this[0];return Qe?Qe.getClientRects().length?(Me=Qe.getBoundingClientRect(),qe=Qe.ownerDocument.defaultView,{top:Me.top+qe.pageYOffset,left:Me.left+qe.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var de,Me,qe,Qe=this[0],J={top:0,left:0};if(D.css(Qe,"position")==="fixed")Me=Qe.getBoundingClientRect();else{for(Me=this.offset(),qe=Qe.ownerDocument,de=Qe.offsetParent||qe.documentElement;de&&(de===qe.body||de===qe.documentElement)&&D.css(de,"position")==="static";)de=de.parentNode;de&&de!==Qe&&de.nodeType===1&&((J=D(de).offset()).top+=D.css(de,"borderTopWidth",!0),J.left+=D.css(de,"borderLeftWidth",!0))}return{top:Me.top-J.top-D.css(Qe,"marginTop",!0),left:Me.left-J.left-D.css(Qe,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var de=this.offsetParent;de&&D.css(de,"position")==="static";)de=de.offsetParent;return de||yn})}}),D.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(de,Me){var qe=Me==="pageYOffset";D.fn[de]=function(Qe){return _t(this,function(J,ae,ve){var be;if(z(J)?be=J:J.nodeType===9&&(be=J.defaultView),ve===void 0)return be?be[Me]:J[ae];be?be.scrollTo(qe?be.pageXOffset:ve,qe?ve:be.pageYOffset):J[ae]=ve},de,Qe,arguments.length)}}),D.each(["top","left"],function(de,Me){D.cssHooks[Me]=qr(N.pixelPosition,function(qe,Qe){if(Qe)return Qe=Xo(qe,Me),ha.test(Qe)?D(qe).position()[Me]+"px":Qe})}),D.each({Height:"height",Width:"width"},function(de,Me){D.each({padding:"inner"+de,content:Me,"":"outer"+de},function(qe,Qe){D.fn[Qe]=function(J,ae){var ve=arguments.length&&(qe||typeof J!="boolean"),be=qe||(J===!0||ae===!0?"margin":"border");return _t(this,function(Re,Ge,rt){var Dt;return z(Re)?Qe.indexOf("outer")===0?Re["inner"+de]:Re.document.documentElement["client"+de]:Re.nodeType===9?(Dt=Re.documentElement,Math.max(Re.body["scroll"+de],Dt["scroll"+de],Re.body["offset"+de],Dt["offset"+de],Dt["client"+de])):rt===void 0?D.css(Re,Ge,be):D.style(Re,Ge,rt,be)},Me,ve?J:void 0,ve)}})}),D.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(de,Me){D.fn[Me]=function(qe){return this.on(Me,qe)}}),D.fn.extend({bind:function(de,Me,qe){return this.on(de,null,Me,qe)},unbind:function(de,Me){return this.off(de,null,Me)},delegate:function(de,Me,qe,Qe){return this.on(Me,de,qe,Qe)},undelegate:function(de,Me,qe){return arguments.length===1?this.off(de,"**"):this.off(Me,de||"**",qe)},hover:function(de,Me){return this.mouseenter(de).mouseleave(Me||de)}}),D.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(de,Me){D.fn[Me]=function(qe,Qe){return arguments.length>0?this.on(Me,null,qe,Qe):this.trigger(Me)}});var Ki=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;D.proxy=function(de,Me){var qe,Qe,J;if(typeof Me=="string"&&(qe=de[Me],Me=de,de=qe),A(de))return Qe=l.call(arguments,2),(J=function(){return de.apply(Me||this,Qe.concat(l.call(arguments)))}).guid=de.guid=de.guid||D.guid++,J},D.holdReady=function(de){de?D.readyWait++:D.ready(!0)},D.isArray=Array.isArray,D.parseJSON=JSON.parse,D.nodeName=re,D.isFunction=A,D.isWindow=z,D.camelCase=Zt,D.type=W,D.now=Date.now,D.isNumeric=function(de){var Me=D.type(de);return(Me==="number"||Me==="string")&&!isNaN(de-parseFloat(de))},D.trim=function(de){return de==null?"":(de+"").replace(Ki,"$1")};var $o=n.jQuery,Ho=n.$;return D.noConflict=function(de){return n.$===D&&(n.$=Ho),de&&n.jQuery===D&&(n.jQuery=$o),D},o===void 0&&(n.jQuery=n.$=D),D},t.exports=e.document?r(e,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return r(n)}}),jquery$1$1=Object.freeze({__proto__:null,default:jquery$1,__moduleExports:jquery$1});function mxcadassemblyinit(){var t,e=(t=typeof document!="undefined"&&document.currentScript?document.currentScript.src:void 0,typeof __filename!="undefined"&&(t=t||__filename),function(r){var n,o,s;r=r||{},n||(n=r!==void 0?r:{}),n.ready=new Promise(function(ln,ar){o=ln,s=ar});var c,l,v,x,w,_,b=Object.assign({},n),E=typeof window=="object",I=typeof importScripts=="function",O=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",N="";O?(N=I?xxxxx("path").dirname(N)+"/":__dirname+"/",_=()=>{w||(x=xxxxx("fs"),w=xxxxx("path"))},c=function(ln,ar){var zr=Ze(ln);return zr?ar?zr:zr.toString():(_(),ln=w.normalize(ln),x.readFileSync(ln,ar?void 0:"utf8"))},v=ln=>((ln=c(ln,!0)).buffer||(ln=new Uint8Array(ln)),ln),l=(ln,ar,zr)=>{var Jr=Ze(ln);Jr&&ar(Jr),_(),ln=w.normalize(ln),x.readFile(ln,function(bi,hi){bi?zr(bi):ar(hi.buffer)})},1<process.argv.length&&process.argv[1].replace(/\\/g,"/"),process.argv.slice(2),process.on("uncaughtException",function(ln){throw ln}),process.on("unhandledRejection",function(ln){throw ln}),n.inspect=function(){return"[Emscripten Module object]"}):(E||I)&&(I?N=self.location.href:typeof document!="undefined"&&document.currentScript&&(N=document.currentScript.src),t&&(N=t),N=N.indexOf("blob:")!==0?N.substr(0,N.replace(/[?#].*/,"").lastIndexOf("/")+1):"",c=ln=>{try{var ar=new XMLHttpRequest;return ar.open("GET",ln,!1),ar.send(null),ar.responseText}catch(bi){if(ln=Ze(ln)){ar=[];for(var zr=0;zr<ln.length;zr++){var Jr=ln[zr];255<Jr&&(Jr&=255),ar.push(String.fromCharCode(Jr))}return ar.join("")}throw bi}},I&&(v=ln=>{try{var ar=new XMLHttpRequest;return ar.open("GET",ln,!1),ar.responseType="arraybuffer",ar.send(null),new Uint8Array(ar.response)}catch(zr){if(ln=Ze(ln))return ln;throw zr}}),l=(ln,ar,zr)=>{var Jr=new XMLHttpRequest;Jr.open("GET",ln,!0),Jr.responseType="arraybuffer",Jr.onload=()=>{if(Jr.status==200||Jr.status==0&&Jr.response)ar(Jr.response);else{var bi=Ze(ln);bi?ar(bi.buffer):zr()}},Jr.onerror=zr,Jr.send(null)}),n.print||console.log.bind(console);var A,z=n.printErr||console.warn.bind(console);Object.assign(n,b),b=null,n.wasmBinary&&(A=n.wasmBinary),n.noExitRuntime;var G=Error,V={};A=[],typeof V!="object"&&it("no native wasm support detected");var ne,W,B,q,D,F=!1,re=n.INITIAL_MEMORY||16777216;(ne=n.wasmMemory?n.wasmMemory:new function(){this.buffer=new ArrayBuffer(re/65536*65536)})&&(W=ne.buffer),re=W.byteLength;var le=W;W=le,n.HEAP8=B=new Int8Array(le),n.HEAP16=new Int16Array(le),n.HEAP32=D=new Int32Array(le),n.HEAPU8=q=new Uint8Array(le),n.HEAPU16=new Uint16Array(le),n.HEAPU32=new Uint32Array(le),n.HEAPF32=new Float32Array(le),n.HEAPF64=new Float64Array(le);var fe,me=[],ye=[],Te=[];function ke(){var ln=n.preRun.shift();me.unshift(ln)}var Le=0,et=null;function it(ln){throw n.onAbort&&n.onAbort(ln),z(ln="Aborted("+ln+")"),F=!0,ln=new G(ln+". Build with -s ASSERTIONS=1 for more info."),s(ln),ln}n.preloadedImages={},n.preloadedAudios={};var Ue,ht="data:application/octet-stream;base64,";if(!(Ue="mxcadassembly_min.wasm").startsWith(ht)){var De=Ue;Ue=n.locateFile?n.locateFile(De,N):N+De}function Be(){var ln=Ue;try{if(ln==Ue&&A)return new Uint8Array(A);var ar=Ze(ln);if(ar)return ar;if(v)return v(ln);throw"both async and sync fetching of the wasm failed"}catch(zr){it(zr)}}function Ve(ln){for(;0<ln.length;){var ar=ln.shift();if(typeof ar=="function")ar(n);else{var zr=ar.U;typeof zr=="number"?ar.G===void 0?gt(zr)():gt(zr)(ar.G):zr(ar.G===void 0?null:ar.G)}}}var He=[];function gt(ln){var ar=He[ln];return ar||(ln>=He.length&&(He.length=ln+1),He[ln]=ar=fe.get(ln)),ar}var dn=typeof atob=="function"?atob:function(ln){var ar="",zr=0;ln=ln.replace(/[^A-Za-z0-9\+\/=]/g,"");do{var Jr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(ln.charAt(zr++)),bi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(ln.charAt(zr++)),hi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(ln.charAt(zr++)),wi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(ln.charAt(zr++));Jr=Jr<<2|bi>>4,bi=(15&bi)<<4|hi>>2;var Ca=(3&hi)<<6|wi;ar+=String.fromCharCode(Jr),hi!==64&&(ar+=String.fromCharCode(bi)),wi!==64&&(ar+=String.fromCharCode(Ca))}while(zr<ln.length);return ar};function Ze(ln){if(ln.startsWith(ht)){if(ln=ln.slice(ht.length),typeof O=="boolean"&&O){var ar=Buffer.from(ln,"base64");ar=new Uint8Array(ar.buffer,ar.byteOffset,ar.byteLength)}else try{var zr=dn(ln),Jr=new Uint8Array(zr.length);for(ln=0;ln<zr.length;++ln)Jr[ln]=zr.charCodeAt(ln);ar=Jr}catch(bi){throw Error("Converting base64 string to bytes failed.")}return ar}}var at={f:function(ln){return Ht(ln+16)+16},e:function(ln,ar,zr){throw new function(Jr){this.C=Jr-16,this.P=function(bi){D[this.C+4>>2]=bi},this.M=function(bi){D[this.C+8>>2]=bi},this.N=function(){D[this.C>>2]=0},this.L=function(){B[this.C+12>>0]=0},this.O=function(){B[this.C+13>>0]=0},this.K=function(bi,hi){this.P(bi),this.M(hi),this.N(),this.L(),this.O()}}(ln).K(ar,zr),ln},c:function(){it("")},d:function(ln,ar,zr){q.copyWithin(ln,ar,ar+zr)},b:function(){it("OOM")},a:ne};(function(){function ln(bi){n.asm=bi.exports,fe=n.asm.A,ye.unshift(n.asm.g),Le--,n.monitorRunDependencies&&n.monitorRunDependencies(Le),Le==0&&et&&(bi=et,et=null,bi())}function ar(bi){ln(bi.instance)}function zr(bi){return function(){if(!A&&(E||I)){if(typeof fetch=="function"&&!Ue.startsWith("file://"))return fetch(Ue,{credentials:"same-origin"}).then(function(hi){if(!hi.ok)throw"failed to load wasm binary file at '"+Ue+"'";return hi.arrayBuffer()}).catch(function(){return Be()});if(l)return new Promise(function(hi,wi){l(Ue,function(Ca){hi(new Uint8Array(Ca))},wi)})}return Promise.resolve().then(function(){return Be()})}().then(function(){return{then:function(hi){hi({instance:new function(){this.exports=function(wi){for(var Ca,jt=new Uint8Array(123),dt=25;dt>=0;--dt)jt[48+dt]=52+dt,jt[65+dt]=dt,jt[97+dt]=26+dt;function xt(Nt,Qt,mn){for(var Un,we,En=0,Kn=Qt,er=mn.length,Hr=Qt+(3*er>>2)-(mn[er-2]=="=")-(mn[er-1]=="=");En<er;En+=4)Un=jt[mn.charCodeAt(En+1)],we=jt[mn.charCodeAt(En+2)],Nt[Kn++]=jt[mn.charCodeAt(En)]<<2|Un>>4,Kn<Hr&&(Nt[Kn++]=Un<<4|we>>2),Kn<Hr&&(Nt[Kn++]=we<<6|jt[mn.charCodeAt(En+3)])}return jt[43]=62,jt[47]=63,function(Nt){var Qt=Nt.a.buffer,mn=new Int8Array(Qt),Un=new Int16Array(Qt),we=new Int32Array(Qt),En=new Uint8Array(Qt),Kn=new Uint32Array(Qt),er=new Float64Array(Qt),Hr=Math.imul,Ir=Nt.abort,Ri=Nt.b,Ti=Nt.c,mi=Nt.d,Li=Nt.e,tr=Nt.f,ha=5245008;function ti(Ye){var $t,ft=0,Gt=0,bn=0,sr=0,Br=0,Pr=0,Mi=0,vi=0,Sa=0,La=0;ha=$t=ha-16|0;e:{t:{n:{a:{i:{l:{r:{u:{c:{s:{o:{if((Ye|=0)>>>0<=244){if(3&(ft=(sr=we[404])>>>(Gt=(Pr=Ye>>>0<11?16:Ye+11&-8)>>>3|0)|0)){Ye=(Br=we[1664+(ft=(bn=Gt+(1&(-1^ft))|0)<<3)>>2])+8|0,(0|(Gt=we[Br+8>>2]))!=(0|(ft=ft+1656|0))?(we[Gt+12>>2]=ft,we[ft+8>>2]=Gt):we[404]=Na(bn)&sr,ft=bn<<3,we[Br+4>>2]=3|ft,we[4+(ft=ft+Br|0)>>2]=1|we[ft+4>>2];break e}if((La=we[406])>>>0>=Pr>>>0)break o;if(ft){Gt=Ye=(ft=(0-(Ye=(0-(Ye=2<<Gt)|Ye)&ft<<Gt)&Ye)-1|0)>>>12&16,Gt|=Ye=(ft=ft>>>Ye|0)>>>5&8,Gt|=Ye=(ft=ft>>>Ye|0)>>>2&4,Sa=we[1664+(Ye=(Gt=((Gt|=Ye=(ft=ft>>>Ye|0)>>>1&2)|(Ye=(ft=ft>>>Ye|0)>>>1&1))+(ft>>>Ye|0)|0)<<3)>>2],(0|(ft=we[Sa+8>>2]))!=(0|(Ye=Ye+1656|0))?(we[ft+12>>2]=Ye,we[Ye+8>>2]=ft):(sr=Na(Gt)&sr,we[404]=sr),Ye=Sa+8|0,we[Sa+4>>2]=3|Pr,Br=(ft=Gt<<3)-Pr|0,we[4+(bn=Pr+Sa|0)>>2]=1|Br,we[ft+Sa>>2]=Br,La&&(Gt=1656+((ft=La>>>3|0)<<3)|0,Sa=we[409],(ft=1<<ft)&sr?ft=we[Gt+8>>2]:(we[404]=ft|sr,ft=Gt),we[Gt+8>>2]=Sa,we[ft+12>>2]=Sa,we[Sa+12>>2]=Gt,we[Sa+8>>2]=ft),we[409]=bn,we[406]=Br;break e}if(!(Mi=we[405]))break o;for(Gt=Ye=(ft=(0-Mi&Mi)-1|0)>>>12&16,Gt|=Ye=(ft=ft>>>Ye|0)>>>5&8,Gt|=Ye=(ft=ft>>>Ye|0)>>>2&4,ft=we[1920+(((Gt|=Ye=(ft=ft>>>Ye|0)>>>1&2)|(Ye=(ft=ft>>>Ye|0)>>>1&1))+(ft>>>Ye|0)<<2)>>2],bn=(-8&we[ft+4>>2])-Pr|0,Gt=ft;(Ye=we[Gt+16>>2])||(Ye=we[Gt+20>>2]);)bn=(Br=(Gt=(-8&we[Ye+4>>2])-Pr|0)>>>0<bn>>>0)?Gt:bn,ft=Br?Ye:ft,Gt=Ye;if(vi=we[ft+24>>2],(0|(Br=we[ft+12>>2]))!=(0|ft)){Ye=we[ft+8>>2],we[Ye+12>>2]=Br,we[Br+8>>2]=Ye;break t}if(!(Ye=we[(Gt=ft+20|0)>>2])){if(!(Ye=we[ft+16>>2]))break s;Gt=ft+16|0}for(;Sa=Gt,Br=Ye,(Ye=we[(Gt=Ye+20|0)>>2])||(Gt=Br+16|0,Ye=we[Br+16>>2]););we[Sa>>2]=0;break t}if(Pr=-1,!(Ye>>>0>4294967231)&&(Pr=-8&(Ye=Ye+11|0),vi=we[405])){bn=0-Pr|0,sr=0,Pr>>>0<256||(sr=31,Pr>>>0>16777215||(Ye=Ye>>>8|0,Ye<<=Sa=Ye+1048320>>>16&8,sr=28+((Ye=((Ye<<=Gt=Ye+520192>>>16&4)<<(ft=Ye+245760>>>16&2)>>>15|0)-(ft|Gt|Sa)|0)<<1|Pr>>>Ye+21&1)|0));d:{h:{if(Gt=we[1920+(sr<<2)>>2])for(Ye=0,ft=Pr<<((0|sr)==31?0:25-(sr>>>1|0)|0);;){if(!((Sa=(Mi=-8&we[Gt+4>>2])-Pr|0)>>>0>=bn>>>0)&&(bn=Sa,Br=Gt,(0|Pr)==(0|Mi))){bn=0,Ye=Gt;break h}if(Sa=we[Gt+20>>2],Gt=we[16+((ft>>>29&4)+Gt|0)>>2],Ye=Sa?(0|Sa)==(0|Gt)?Ye:Sa:Ye,ft<<=1,!Gt)break}else Ye=0;if(!(Ye|Br)){if(Br=0,!(Ye=(0-(Ye=2<<sr)|Ye)&vi))break o;Gt=Ye=(ft=(Ye&0-Ye)-1|0)>>>12&16,Gt|=Ye=(ft=ft>>>Ye|0)>>>5&8,Gt|=Ye=(ft=ft>>>Ye|0)>>>2&4,Ye=we[1920+(((Gt|=Ye=(ft=ft>>>Ye|0)>>>1&2)|(Ye=(ft=ft>>>Ye|0)>>>1&1))+(ft>>>Ye|0)<<2)>>2]}if(!Ye)break d}for(;bn=(Gt=(ft=(-8&we[Ye+4>>2])-Pr|0)>>>0<bn>>>0)?ft:bn,Br=Gt?Ye:Br,Ye=(ft=we[Ye+16>>2])||we[Ye+20>>2];);}if(!(!Br|we[406]-Pr>>>0<=bn>>>0)){if(sr=we[Br+24>>2],(0|Br)!=(0|(ft=we[Br+12>>2]))){Ye=we[Br+8>>2],we[Ye+12>>2]=ft,we[ft+8>>2]=Ye;break n}if(!(Ye=we[(Gt=Br+20|0)>>2])){if(!(Ye=we[Br+16>>2]))break c;Gt=Br+16|0}for(;Sa=Gt,ft=Ye,(Ye=we[(Gt=Ye+20|0)>>2])||(Gt=ft+16|0,Ye=we[ft+16>>2]););we[Sa>>2]=0;break n}}}if((Gt=we[406])>>>0>=Pr>>>0){bn=we[409],(ft=Gt-Pr|0)>>>0>=16?(we[406]=ft,Ye=bn+Pr|0,we[409]=Ye,we[Ye+4>>2]=1|ft,we[Gt+bn>>2]=ft,we[bn+4>>2]=3|Pr):(we[409]=0,we[406]=0,we[bn+4>>2]=3|Gt,we[4+(Ye=Gt+bn|0)>>2]=1|we[Ye+4>>2]),Ye=bn+8|0;break e}if((vi=we[407])>>>0>Pr>>>0){ft=vi-Pr|0,we[407]=ft,Ye=(Gt=we[410])+Pr|0,we[410]=Ye,we[Ye+4>>2]=1|ft,we[Gt+4>>2]=3|Pr,Ye=Gt+8|0;break e}if(Ye=0,Mi=Pr+47|0,we[522]?Gt=we[524]:(we[525]=-1,we[526]=-1,we[523]=4096,we[524]=4096,we[522]=$t+12&-16^1431655768,we[527]=0,we[515]=0,Gt=4096),(Gt=(Sa=Mi+Gt|0)&(Br=0-Gt|0))>>>0<=Pr>>>0||(bn=we[514])&&(sr=(ft=we[512])+Gt|0)>>>0>bn>>>0|ft>>>0>=sr>>>0)break e;if(4&En[2060])break l;o:{d:{if(bn=we[410])for(Ye=2064;;){if((ft=we[Ye>>2])>>>0<=bn>>>0&bn>>>0<ft+we[Ye+4>>2]>>>0)break d;if(!(Ye=we[Ye+8>>2]))break}if((0|(ft=Ms(0)))==-1||(sr=Gt,(Ye=(bn=we[523])-1|0)&ft&&(sr=(Gt-ft|0)+(Ye+ft&0-bn)|0),sr>>>0<=Pr>>>0|sr>>>0>2147483646)||(bn=we[514])&&bn>>>0<(Br=(Ye=we[512])+sr|0)>>>0|Ye>>>0>=Br>>>0)break r;if((0|ft)!=(0|(Ye=Ms(sr))))break o;break i}if((sr=Br&Sa-vi)>>>0>2147483646)break r;if((0|(ft=Ms(sr)))==(we[Ye>>2]+we[Ye+4>>2]|0))break u;Ye=ft}if(!((0|Ye)==-1|Pr+48>>>0<=sr>>>0)){if((ft=(ft=we[524])+(Mi-sr|0)&0-ft)>>>0>2147483646){ft=Ye;break i}if((0|Ms(ft))!=-1){sr=ft+sr|0,ft=Ye;break i}Ms(0-sr|0);break r}if(ft=Ye,(0|Ye)!=-1)break i;break r}Br=0;break t}ft=0;break n}if((0|ft)!=-1)break i}we[515]=4|we[515]}if(Gt>>>0>2147483646||(0|(ft=Ms(Gt)))==-1|(0|(Ye=Ms(0)))==-1|Ye>>>0<=ft>>>0||(sr=Ye-ft|0)>>>0<=Pr+40>>>0)break a}Ye=we[512]+sr|0,we[512]=Ye,Ye>>>0>Kn[513]&&(we[513]=Ye);i:{l:{r:{if(Mi=we[410]){for(Ye=2064;;){if(((bn=we[Ye>>2])+(Gt=we[Ye+4>>2])|0)==(0|ft))break r;if(!(Ye=we[Ye+8>>2]))break}break l}for((Ye=we[408])>>>0<=ft>>>0&&Ye||(we[408]=ft),Ye=0,we[517]=sr,we[516]=ft,we[412]=-1,we[413]=we[522],we[519]=0;Gt=1656+(bn=Ye<<3)|0,we[bn+1664>>2]=Gt,we[bn+1668>>2]=Gt,(0|(Ye=Ye+1|0))!=32;);Gt=(bn=sr-40|0)-(Ye=ft+8&7?-8-ft&7:0)|0,we[407]=Gt,Ye=Ye+ft|0,we[410]=Ye,we[Ye+4>>2]=1|Gt,we[4+(ft+bn|0)>>2]=40,we[411]=we[526];break i}if(!(8&En[Ye+12|0]|bn>>>0>Mi>>>0|ft>>>0<=Mi>>>0)){we[Ye+4>>2]=Gt+sr,Gt=(Ye=Mi+8&7?-8-Mi&7:0)+Mi|0,we[410]=Gt,Ye=(ft=we[407]+sr|0)-Ye|0,we[407]=Ye,we[Gt+4>>2]=1|Ye,we[4+(ft+Mi|0)>>2]=40,we[411]=we[526];break i}}Kn[408]>ft>>>0&&(we[408]=ft),Gt=ft+sr|0,Ye=2064;l:{r:{u:{c:{s:{o:{for(;;){if((0|Gt)!=we[Ye>>2]){if(Ye=we[Ye+8>>2])continue;break o}break}if(!(8&En[Ye+12|0]))break s}for(Ye=2064;;){if((Gt=we[Ye>>2])>>>0<=Mi>>>0&&(Br=Gt+we[Ye+4>>2]|0)>>>0>Mi>>>0)break c;Ye=we[Ye+8>>2]}}if(we[Ye>>2]=ft,we[Ye+4>>2]=we[Ye+4>>2]+sr,we[4+(Sa=(ft+8&7?-8-ft&7:0)+ft|0)>>2]=3|Pr,Pr=(sr=Gt+(Gt+8&7?-8-Gt&7:0)|0)-(vi=Pr+Sa|0)|0,(0|sr)==(0|Mi)){we[410]=vi,Ye=we[407]+Pr|0,we[407]=Ye,we[vi+4>>2]=1|Ye;break r}if(we[409]==(0|sr)){we[409]=vi,Ye=we[406]+Pr|0,we[406]=Ye,we[vi+4>>2]=1|Ye,we[Ye+vi>>2]=Ye;break r}if((3&(Ye=we[sr+4>>2]))==1){Br=-8&Ye;s:if(Ye>>>0<=255){if(Gt=we[sr+8>>2],Ye=Ye>>>3|0,(0|(ft=we[sr+12>>2]))==(0|Gt)){we[404]=we[404]&Na(Ye);break s}we[Gt+12>>2]=ft,we[ft+8>>2]=Gt}else{if(Mi=we[sr+24>>2],(0|sr)==(0|(ft=we[sr+12>>2])))if((bn=we[(Ye=sr+20|0)>>2])||(bn=we[(Ye=sr+16|0)>>2])){for(;Gt=Ye,(bn=we[(Ye=(ft=bn)+20|0)>>2])||(Ye=ft+16|0,bn=we[ft+16>>2]););we[Gt>>2]=0}else ft=0;else Ye=we[sr+8>>2],we[Ye+12>>2]=ft,we[ft+8>>2]=Ye;if(Mi){Gt=we[sr+28>>2];o:{if(we[(Ye=1920+(Gt<<2)|0)>>2]==(0|sr)){if(we[Ye>>2]=ft,ft)break o;we[405]=we[405]&Na(Gt);break s}if(we[Mi+(we[Mi+16>>2]==(0|sr)?16:20)>>2]=ft,!ft)break s}we[ft+24>>2]=Mi,(Ye=we[sr+16>>2])&&(we[ft+16>>2]=Ye,we[Ye+24>>2]=ft),(Ye=we[sr+20>>2])&&(we[ft+20>>2]=Ye,we[Ye+24>>2]=ft)}}Pr=Br+Pr|0,sr=sr+Br|0}if(we[sr+4>>2]=-2&we[sr+4>>2],we[vi+4>>2]=1|Pr,we[Pr+vi>>2]=Pr,Pr>>>0<=255){ft=1656+((Ye=Pr>>>3|0)<<3)|0,(Gt=we[404])&(Ye=1<<Ye)?Ye=we[ft+8>>2]:(we[404]=Ye|Gt,Ye=ft),we[ft+8>>2]=vi,we[Ye+12>>2]=vi,we[vi+12>>2]=ft,we[vi+8>>2]=Ye;break r}if(Ye=31,Pr>>>0<=16777215&&(Ye=Pr>>>8|0,Ye<<=bn=Ye+1048320>>>16&8,Ye=28+((Ye=((Ye<<=Gt=Ye+520192>>>16&4)<<(ft=Ye+245760>>>16&2)>>>15|0)-(ft|Gt|bn)|0)<<1|Pr>>>Ye+21&1)|0),we[vi+28>>2]=Ye,we[vi+16>>2]=0,we[vi+20>>2]=0,bn=1920+(Ye<<2)|0,(Gt=we[405])&(ft=1<<Ye)){for(Ye=Pr<<((0|Ye)==31?0:25-(Ye>>>1|0)|0),ft=we[bn>>2];;){if(Gt=ft,(-8&we[ft+4>>2])==(0|Pr))break u;if(ft=Ye>>>29|0,Ye<<=1,!(ft=we[16+(bn=Gt+(4&ft)|0)>>2]))break}we[bn+16>>2]=vi,we[vi+24>>2]=Gt}else we[405]=ft|Gt,we[bn>>2]=vi,we[vi+24>>2]=bn;we[vi+12>>2]=vi,we[vi+8>>2]=vi;break r}for(Gt=(bn=sr-40|0)-(Ye=ft+8&7?-8-ft&7:0)|0,we[407]=Gt,Ye=Ye+ft|0,we[410]=Ye,we[Ye+4>>2]=1|Gt,we[4+(ft+bn|0)>>2]=40,we[411]=we[526],we[(Gt=(Ye=(Br+(Br-39&7?39-Br&7:0)|0)-47|0)>>>0<Mi+16>>>0?Mi:Ye)+4>>2]=27,Ye=we[519],we[Gt+16>>2]=we[518],we[Gt+20>>2]=Ye,Ye=we[517],we[Gt+8>>2]=we[516],we[Gt+12>>2]=Ye,we[518]=Gt+8,we[517]=sr,we[516]=ft,we[519]=0,Ye=Gt+24|0;we[Ye+4>>2]=7,ft=Ye+8|0,Ye=Ye+4|0,ft>>>0<Br>>>0;);if((0|Gt)==(0|Mi))break i;if(we[Gt+4>>2]=-2&we[Gt+4>>2],Br=Gt-Mi|0,we[Mi+4>>2]=1|Br,we[Gt>>2]=Br,Br>>>0<=255){ft=1656+((Ye=Br>>>3|0)<<3)|0,(Gt=we[404])&(Ye=1<<Ye)?Ye=we[ft+8>>2]:(we[404]=Ye|Gt,Ye=ft),we[ft+8>>2]=Mi,we[Ye+12>>2]=Mi,we[Mi+12>>2]=ft,we[Mi+8>>2]=Ye;break i}if(Ye=31,we[Mi+16>>2]=0,we[Mi+20>>2]=0,Br>>>0<=16777215&&(Ye=Br>>>8|0,Ye<<=bn=Ye+1048320>>>16&8,Ye=28+((Ye=((Ye<<=Gt=Ye+520192>>>16&4)<<(ft=Ye+245760>>>16&2)>>>15|0)-(ft|Gt|bn)|0)<<1|Br>>>Ye+21&1)|0),we[Mi+28>>2]=Ye,bn=1920+(Ye<<2)|0,(Gt=we[405])&(ft=1<<Ye)){for(Ye=Br<<((0|Ye)==31?0:25-(Ye>>>1|0)|0),ft=we[bn>>2];;){if(Gt=ft,(0|Br)==(-8&we[ft+4>>2]))break l;if(ft=Ye>>>29|0,Ye<<=1,!(ft=we[16+(bn=Gt+(4&ft)|0)>>2]))break}we[bn+16>>2]=Mi,we[Mi+24>>2]=Gt}else we[405]=ft|Gt,we[bn>>2]=Mi,we[Mi+24>>2]=bn;we[Mi+12>>2]=Mi,we[Mi+8>>2]=Mi;break i}Ye=we[Gt+8>>2],we[Ye+12>>2]=vi,we[Gt+8>>2]=vi,we[vi+24>>2]=0,we[vi+12>>2]=Gt,we[vi+8>>2]=Ye}Ye=Sa+8|0;break e}Ye=we[Gt+8>>2],we[Ye+12>>2]=Mi,we[Gt+8>>2]=Mi,we[Mi+24>>2]=0,we[Mi+12>>2]=Gt,we[Mi+8>>2]=Ye}if(!((Ye=we[407])>>>0<=Pr>>>0)){ft=Ye-Pr|0,we[407]=ft,Ye=(Gt=we[410])+Pr|0,we[410]=Ye,we[Ye+4>>2]=1|ft,we[Gt+4>>2]=3|Pr,Ye=Gt+8|0;break e}}we[403]=48,Ye=0;break e}n:if(sr){Gt=we[Br+28>>2];a:{if(we[(Ye=1920+(Gt<<2)|0)>>2]==(0|Br)){if(we[Ye>>2]=ft,ft)break a;vi=Na(Gt)&vi,we[405]=vi;break n}if(we[sr+(we[sr+16>>2]==(0|Br)?16:20)>>2]=ft,!ft)break n}we[ft+24>>2]=sr,(Ye=we[Br+16>>2])&&(we[ft+16>>2]=Ye,we[Ye+24>>2]=ft),(Ye=we[Br+20>>2])&&(we[ft+20>>2]=Ye,we[Ye+24>>2]=ft)}n:if(bn>>>0<=15)Ye=bn+Pr|0,we[Br+4>>2]=3|Ye,we[4+(Ye=Ye+Br|0)>>2]=1|we[Ye+4>>2];else if(we[Br+4>>2]=3|Pr,we[4+(sr=Br+Pr|0)>>2]=1|bn,we[sr+bn>>2]=bn,bn>>>0<=255)ft=1656+((Ye=bn>>>3|0)<<3)|0,(Gt=we[404])&(Ye=1<<Ye)?Ye=we[ft+8>>2]:(we[404]=Ye|Gt,Ye=ft),we[ft+8>>2]=sr,we[Ye+12>>2]=sr,we[sr+12>>2]=ft,we[sr+8>>2]=Ye;else{Ye=31,bn>>>0<=16777215&&(Ye=bn>>>8|0,Ye<<=Sa=Ye+1048320>>>16&8,Ye=28+((Ye=((Ye<<=Gt=Ye+520192>>>16&4)<<(ft=Ye+245760>>>16&2)>>>15|0)-(ft|Gt|Sa)|0)<<1|bn>>>Ye+21&1)|0),we[sr+28>>2]=Ye,we[sr+16>>2]=0,we[sr+20>>2]=0,ft=1920+(Ye<<2)|0;a:{if((Gt=1<<Ye)&vi){for(Ye=bn<<((0|Ye)==31?0:25-(Ye>>>1|0)|0),Gt=we[ft>>2];;){if((-8&we[(ft=Gt)+4>>2])==(0|bn))break a;if(Gt=Ye>>>29|0,Ye<<=1,!(Gt=we[16+(Sa=(4&Gt)+ft|0)>>2]))break}we[Sa+16>>2]=sr}else we[405]=Gt|vi,we[ft>>2]=sr;we[sr+24>>2]=ft,we[sr+12>>2]=sr,we[sr+8>>2]=sr;break n}Ye=we[ft+8>>2],we[Ye+12>>2]=sr,we[ft+8>>2]=sr,we[sr+24>>2]=0,we[sr+12>>2]=ft,we[sr+8>>2]=Ye}Ye=Br+8|0;break e}t:if(vi){Gt=we[ft+28>>2];n:{if(we[(Ye=1920+(Gt<<2)|0)>>2]==(0|ft)){if(we[Ye>>2]=Br,Br)break n;we[405]=Na(Gt)&Mi;break t}if(we[vi+(we[vi+16>>2]==(0|ft)?16:20)>>2]=Br,!Br)break t}we[Br+24>>2]=vi,(Ye=we[ft+16>>2])&&(we[Br+16>>2]=Ye,we[Ye+24>>2]=Br),(Ye=we[ft+20>>2])&&(we[Br+20>>2]=Ye,we[Ye+24>>2]=Br)}bn>>>0<=15?(Ye=bn+Pr|0,we[ft+4>>2]=3|Ye,we[4+(Ye=Ye+ft|0)>>2]=1|we[Ye+4>>2]):(we[ft+4>>2]=3|Pr,we[4+(Br=ft+Pr|0)>>2]=1|bn,we[bn+Br>>2]=bn,La&&(Gt=1656+((Ye=La>>>3|0)<<3)|0,Sa=we[409],(Ye=1<<Ye)&sr?Ye=we[Gt+8>>2]:(we[404]=Ye|sr,Ye=Gt),we[Gt+8>>2]=Sa,we[Ye+12>>2]=Sa,we[Sa+12>>2]=Gt,we[Sa+8>>2]=Ye),we[409]=Br,we[406]=bn),Ye=ft+8|0}return ha=$t+16|0,0|Ye}function ua(Ye){var $t=0,ft=0,Gt=0,bn=0,sr=0,Br=0,Pr=0;e:if(Ye){sr=(Gt=Ye-8|0)+(Ye=-8&($t=we[Ye-4>>2]))|0;t:if(!(1&$t)){if(!(3&$t)||(Gt=Gt-($t=we[Gt>>2])|0)>>>0<Kn[408])break e;if(Ye=Ye+$t|0,we[409]==(0|Gt)){if((3&($t=we[sr+4>>2]))==3)return we[406]=Ye,we[sr+4>>2]=-2&$t,we[Gt+4>>2]=1|Ye,void(we[Ye+Gt>>2]=Ye)}else{if($t>>>0<=255){if(bn=we[Gt+8>>2],$t=$t>>>3|0,(0|(ft=we[Gt+12>>2]))==(0|bn)){we[404]=we[404]&Na($t);break t}we[bn+12>>2]=ft,we[ft+8>>2]=bn;break t}if(Pr=we[Gt+24>>2],(0|Gt)==(0|($t=we[Gt+12>>2])))if((ft=we[(bn=Gt+20|0)>>2])||(ft=we[(bn=Gt+16|0)>>2])){for(;Br=bn,(ft=we[(bn=($t=ft)+20|0)>>2])||(bn=$t+16|0,ft=we[$t+16>>2]););we[Br>>2]=0}else $t=0;else ft=we[Gt+8>>2],we[ft+12>>2]=$t,we[$t+8>>2]=ft;if(!Pr)break t;bn=we[Gt+28>>2];n:{if(we[(ft=1920+(bn<<2)|0)>>2]==(0|Gt)){if(we[ft>>2]=$t,$t)break n;we[405]=we[405]&Na(bn);break t}if(we[Pr+(we[Pr+16>>2]==(0|Gt)?16:20)>>2]=$t,!$t)break t}if(we[$t+24>>2]=Pr,(ft=we[Gt+16>>2])&&(we[$t+16>>2]=ft,we[ft+24>>2]=$t),!(ft=we[Gt+20>>2]))break t;we[$t+20>>2]=ft,we[ft+24>>2]=$t}}if(!(Gt>>>0>=sr>>>0)&&1&($t=we[sr+4>>2])){t:{if(!(2&$t)){if(we[410]==(0|sr)){if(we[410]=Gt,Ye=we[407]+Ye|0,we[407]=Ye,we[Gt+4>>2]=1|Ye,we[409]!=(0|Gt))break e;return we[406]=0,void(we[409]=0)}if(we[409]==(0|sr))return we[409]=Gt,Ye=we[406]+Ye|0,we[406]=Ye,we[Gt+4>>2]=1|Ye,void(we[Ye+Gt>>2]=Ye);Ye=(-8&$t)+Ye|0;n:if($t>>>0<=255){if(bn=we[sr+8>>2],$t=$t>>>3|0,(0|(ft=we[sr+12>>2]))==(0|bn)){we[404]=we[404]&Na($t);break n}we[bn+12>>2]=ft,we[ft+8>>2]=bn}else{if(Pr=we[sr+24>>2],(0|sr)==(0|($t=we[sr+12>>2])))if((ft=we[(bn=sr+20|0)>>2])||(ft=we[(bn=sr+16|0)>>2])){for(;Br=bn,(ft=we[(bn=($t=ft)+20|0)>>2])||(bn=$t+16|0,ft=we[$t+16>>2]););we[Br>>2]=0}else $t=0;else ft=we[sr+8>>2],we[ft+12>>2]=$t,we[$t+8>>2]=ft;if(Pr){bn=we[sr+28>>2];a:{if(we[(ft=1920+(bn<<2)|0)>>2]==(0|sr)){if(we[ft>>2]=$t,$t)break a;we[405]=we[405]&Na(bn);break n}if(we[Pr+(we[Pr+16>>2]==(0|sr)?16:20)>>2]=$t,!$t)break n}we[$t+24>>2]=Pr,(ft=we[sr+16>>2])&&(we[$t+16>>2]=ft,we[ft+24>>2]=$t),(ft=we[sr+20>>2])&&(we[$t+20>>2]=ft,we[ft+24>>2]=$t)}}if(we[Gt+4>>2]=1|Ye,we[Ye+Gt>>2]=Ye,we[409]!=(0|Gt))break t;return void(we[406]=Ye)}we[sr+4>>2]=-2&$t,we[Gt+4>>2]=1|Ye,we[Ye+Gt>>2]=Ye}if(Ye>>>0<=255)return $t=1656+((Ye=Ye>>>3|0)<<3)|0,(ft=we[404])&(Ye=1<<Ye)?Ye=we[$t+8>>2]:(we[404]=Ye|ft,Ye=$t),we[$t+8>>2]=Gt,we[Ye+12>>2]=Gt,we[Gt+12>>2]=$t,void(we[Gt+8>>2]=Ye);bn=31,we[Gt+16>>2]=0,we[Gt+20>>2]=0,Ye>>>0<=16777215&&($t=Ye>>>8|0,$t<<=Br=$t+1048320>>>16&8,bn=28+(($t=(($t<<=bn=$t+520192>>>16&4)<<(ft=$t+245760>>>16&2)>>>15|0)-(ft|bn|Br)|0)<<1|Ye>>>$t+21&1)|0),we[Gt+28>>2]=bn,Br=1920+(bn<<2)|0;t:{n:{if((ft=we[405])&($t=1<<bn)){for(bn=Ye<<((0|bn)==31?0:25-(bn>>>1|0)|0),$t=we[Br>>2];;){if(ft=$t,(-8&we[$t+4>>2])==(0|Ye))break n;if($t=bn>>>29|0,bn<<=1,!($t=we[16+(Br=ft+(4&$t)|0)>>2]))break}we[Br+16>>2]=Gt,we[Gt+24>>2]=ft}else we[405]=$t|ft,we[Br>>2]=Gt,we[Gt+24>>2]=Br;we[Gt+12>>2]=Gt,we[Gt+8>>2]=Gt;break t}Ye=we[ft+8>>2],we[Ye+12>>2]=Gt,we[ft+8>>2]=Gt,we[Gt+24>>2]=0,we[Gt+12>>2]=ft,we[Gt+8>>2]=Ye}Ye=we[412]-1|0,we[412]=Ye||-1}}}function Va(Ye,$t,ft){var Gt,bn=0,sr=0;if(ft>>>0>=512)return mi(0|Ye,0|$t,0|ft),Ye;Gt=Ye+ft|0;e:if(3&(Ye^$t))if(Gt>>>0<4)ft=Ye;else if((bn=Gt-4|0)>>>0<Ye>>>0)ft=Ye;else for(ft=Ye;mn[0|ft]=En[0|$t],mn[ft+1|0]=En[$t+1|0],mn[ft+2|0]=En[$t+2|0],mn[ft+3|0]=En[$t+3|0],$t=$t+4|0,bn>>>0>=(ft=ft+4|0)>>>0;);else{t:if(3&Ye)if(ft)for(ft=Ye;;){if(mn[0|ft]=En[0|$t],$t=$t+1|0,!(3&(ft=ft+1|0)))break t;if(!(ft>>>0<Gt>>>0))break}else ft=Ye;else ft=Ye;if(!((bn=-4&Gt)>>>0<64||(sr=bn+-64|0)>>>0<ft>>>0))for(;we[ft>>2]=we[$t>>2],we[ft+4>>2]=we[$t+4>>2],we[ft+8>>2]=we[$t+8>>2],we[ft+12>>2]=we[$t+12>>2],we[ft+16>>2]=we[$t+16>>2],we[ft+20>>2]=we[$t+20>>2],we[ft+24>>2]=we[$t+24>>2],we[ft+28>>2]=we[$t+28>>2],we[ft+32>>2]=we[$t+32>>2],we[ft+36>>2]=we[$t+36>>2],we[ft+40>>2]=we[$t+40>>2],we[ft+44>>2]=we[$t+44>>2],we[ft+48>>2]=we[$t+48>>2],we[ft+52>>2]=we[$t+52>>2],we[ft+56>>2]=we[$t+56>>2],we[ft+60>>2]=we[$t+60>>2],$t=$t- -64|0,sr>>>0>=(ft=ft- -64|0)>>>0;);if(ft>>>0>=bn>>>0)break e;for(;we[ft>>2]=we[$t>>2],$t=$t+4|0,bn>>>0>(ft=ft+4|0)>>>0;);}if(ft>>>0<Gt>>>0)for(;mn[0|ft]=En[0|$t],$t=$t+1|0,(0|Gt)!=(0|(ft=ft+1|0)););return Ye}function ns(Ye,$t){var ft=0;if($t&&(mn[0|Ye]=0,mn[(ft=Ye+$t|0)-1|0]=0,!($t>>>0<3||(mn[Ye+2|0]=0,mn[Ye+1|0]=0,mn[ft-3|0]=0,mn[ft-2|0]=0,$t>>>0<7||(mn[Ye+3|0]=0,mn[ft-4|0]=0,$t>>>0<9||(we[(Ye=(ft=0-Ye&3)+Ye|0)>>2]=0,we[($t=(ft=$t-ft&-4)+Ye|0)-4>>2]=0,ft>>>0<9||(we[Ye+8>>2]=0,we[Ye+4>>2]=0,we[$t-8>>2]=0,we[$t-12>>2]=0,ft>>>0<25||(we[Ye+24>>2]=0,we[Ye+20>>2]=0,we[Ye+16>>2]=0,we[Ye+12>>2]=0,we[$t-16>>2]=0,we[$t-20>>2]=0,we[$t-24>>2]=0,we[$t-28>>2]=0,($t=($t=ft)-(ft=4&Ye|24)|0)>>>0<32))))))))for(Ye=Ye+ft|0;we[Ye+24>>2]=0,we[Ye+28>>2]=0,we[Ye+16>>2]=0,we[Ye+20>>2]=0,we[Ye+8>>2]=0,we[Ye+12>>2]=0,we[Ye>>2]=0,we[Ye+4>>2]=0,Ye=Ye+32|0,($t=$t-32|0)>>>0>31;);}function Xo(Ye){var $t,ft=0,Gt=0,bn=0;$t=0|tr(8),we[$t>>2]=1348,we[$t>>2]=1392;e:{t:{if(3&(ft=Ye))for(;;){if(!En[0|ft])break t;if(!(3&(ft=ft+1|0)))break}for(;Gt=ft,ft=ft+4|0,!((-1^(bn=we[Gt>>2]))&bn-16843009&-2139062144););if(ft=Gt-Ye|0,!(255&bn))break e;for(;bn=En[Gt+1|0],Gt=ft=Gt+1|0,bn;);}ft=ft-Ye|0}Gt=rs(ft+13|0),we[Gt+8>>2]=0,we[Gt+4>>2]=ft,we[Gt>>2]=ft,we[$t+4>>2]=Va(Gt+12|0,Ye,ft+1|0),we[$t>>2]=1440,Li(0|$t,1472,1),Ir()}function qr(Ye,$t,ft,Gt){mn[Ye+53|0]=1;e:if(we[Ye+4>>2]==(0|ft)){mn[Ye+52|0]=1;t:{if(!(ft=we[Ye+16>>2])){if(we[Ye+36>>2]=1,we[Ye+24>>2]=Gt,we[Ye+16>>2]=$t,(0|Gt)!=1)break e;if(we[Ye+48>>2]==1)break t;break e}if((0|$t)==(0|ft)){if((0|(ft=we[Ye+24>>2]))==2&&(we[Ye+24>>2]=Gt,ft=Gt),we[Ye+48>>2]!=1)break e;if((0|ft)==1)break t;break e}we[Ye+36>>2]=we[Ye+36>>2]+1}mn[Ye+54|0]=1}}function ca(Ye,$t,ft){var Gt=0;if(!ft)return we[Ye+4>>2]==we[$t+4>>2];if((0|Ye)==(0|$t))return 1;Gt=we[Ye+4>>2],Ye=En[0|Gt],ft=we[$t+4>>2];e:if(!(!Ye|(0|($t=En[0|ft]))!=(0|Ye)))for(;;){if($t=En[ft+1|0],!(Ye=En[Gt+1|0]))break e;if(ft=ft+1|0,Gt=Gt+1|0,(0|Ye)!=(0|$t))break}return(0|Ye)==(0|$t)}function va(Ye,$t,ft){var Gt;if(!(Gt=we[Ye+16>>2]))return we[Ye+36>>2]=1,we[Ye+24>>2]=ft,void(we[Ye+16>>2]=$t);e:{if((0|$t)==(0|Gt)){if(we[Ye+24>>2]!=2)break e;return void(we[Ye+24>>2]=ft)}mn[Ye+54|0]=1,we[Ye+24>>2]=2,we[Ye+36>>2]=we[Ye+36>>2]+1}}function Ms(Ye){var $t,ft;return(Ye=($t=we[377])+(ft=Ye+3&-4)|0)>>>0<=$t>>>0&&ft||Ye>>>0>(Qt.byteLength/65536|0)<<16>>>0&&!(0|Ri(0|Ye))?(we[403]=48,-1):(we[377]=Ye,$t)}function rs(Ye){var $t=0;Ye=Ye||1;e:{for(;;){if($t=ti(Ye))break e;if(!($t=we[528]))break;Ra[0|$t]()}Ti(),Ir()}return $t}function Ai(Ye){var $t,ft;return we[(Ye|=0)>>2]=1392,$t=we[Ye+4>>2]-12|0,ft=we[$t+8>>2]-1|0,we[$t+8>>2]=ft,(0|ft)<0&&ua($t),0|Ye}function Na(Ye){var $t;return(-1>>>($t=31&Ye)&-2)<<$t|(-1<<(Ye=0-Ye&31)&-2)>>>Ye}function sl(Ye){(Ye|=0)&&ua(Ye)}function eo(Ye){Ai(Ye|=0),ua(Ye)}function ja(Ye){return 0|Ye}function no(Ye){ua(Ye|=0)}function yo(Ye){}xt(Ca=En,1024,"dmVjdG9yAHN0ZDo6ZXhjZXB0aW9uAGFsbG9jYXRvcjxUPjo6YWxsb2NhdGUoc2l6ZV90IG4pICduJyBleGNlZWRzIG1heGltdW0gc3VwcG9ydGVkIHNpemUATjEwX19jeHhhYml2MTE2X19zaGltX3R5cGVfaW5mb0UAAOgEAABaBAAA3AUAAE4xMF9fY3h4YWJpdjExN19fY2xhc3NfdHlwZV9pbmZvRQAAAOgEAACIBAAAfAQAAAAAAACsBAAAAgAAAAMAAAAEAAAABQAAAAYAAAAHAAAACAAAAAkAAAAAAAAAMAUAAAIAAAAKAAAABAAAAAUAAAAGAAAACwAAAAwAAAANAAAATjEwX19jeHhhYml2MTIwX19zaV9jbGFzc190eXBlX2luZm9FAAAAAOgEAAAIBQAArAQAAAAAAABgBQAADgAAAA8AAAAQAAAAU3Q5ZXhjZXB0aW9uAAAAAMAEAABQBQAAAAAAAIwFAAABAAAAEQAAABIAAABTdDExbG9naWNfZXJyb3IA6AQAAHwFAABgBQAAAAAAAMAFAAABAAAAEwAAABIAAABTdDEybGVuZ3RoX2Vycm9yAAAAAOgEAACsBQAAjAUAAFN0OXR5cGVfaW5mbwAAAADABAAAzAU="),xt(Ca,1508,"UAhQ");var Ra=function(Ye){return Ye.grow=function($t){var ft=this.length;return this.length=this.length+$t,ft},Ye.set=function($t,ft){this[$t]=ft},Ye.get=function($t){return this[$t]},Ye}([null,Ai,ja,no,yo,yo,function(Ye,$t,ft){ft|=0;var Gt,bn=0,sr=0,Br=0,Pr=0;if(ha=Gt=ha+-64|0,bn=1,!ca(Ye|=0,$t|=0,0)&&(bn=0,$t)){ha=bn=ha+-64|0,sr=we[$t>>2],Br=we[sr-4>>2],Pr=we[sr-8>>2],we[bn+20>>2]=0,we[bn+16>>2]=1148,we[bn+12>>2]=$t,we[bn+8>>2]=1196,sr=0,ns(bn+24|0,39),$t=$t+Pr|0;e:if(ca(Br,1196,0))we[bn+56>>2]=1,Ra[we[we[Br>>2]+20>>2]](Br,bn+8|0,$t,$t,1,0),sr=we[bn+32>>2]==1?$t:0;else{Ra[we[we[Br>>2]+24>>2]](Br,bn+8|0,$t,1,0);t:switch(we[bn+44>>2]){case 0:sr=we[bn+48>>2]==1&&we[bn+36>>2]==1&&we[bn+40>>2]==1?we[bn+28>>2]:0;break e;case 1:break t;default:break e}we[bn+32>>2]!=1&&we[bn+48>>2]|we[bn+36>>2]!=1|we[bn+40>>2]!=1||(sr=we[bn+24>>2])}ha=bn- -64|0,bn=0,sr&&(ns(4|($t=Gt+8|0),52),we[Gt+56>>2]=1,we[Gt+20>>2]=-1,we[Gt+16>>2]=Ye,we[Gt+8>>2]=sr,Ra[we[we[sr>>2]+28>>2]](sr,$t,we[ft>>2],1),(0|(Ye=we[Gt+32>>2]))==1&&(we[ft>>2]=we[Gt+24>>2]),bn=(0|Ye)==1)}return ha=Gt- -64|0,0|bn},function(Ye,$t,ft,Gt,bn,sr){ft|=0,Gt|=0,bn|=0,sr|=0,ca(Ye|=0,we[8+($t|=0)>>2],sr)&&qr($t,ft,Gt,bn)},function(Ye,$t,ft,Gt,bn){if(ft|=0,Gt|=0,bn|=0,ca(Ye|=0,we[8+($t|=0)>>2],bn))we[$t+28>>2]==1|we[$t+4>>2]!=(0|ft)||(we[$t+28>>2]=Gt);else e:if(ca(Ye,we[$t>>2],bn)){if(!(we[$t+16>>2]!=(0|ft)&we[$t+20>>2]!=(0|ft))){if((0|Gt)!=1)break e;return void(we[$t+32>>2]=1)}we[$t+20>>2]=ft,we[$t+32>>2]=Gt,we[$t+40>>2]=we[$t+40>>2]+1,we[$t+36>>2]!=1|we[$t+24>>2]!=2||(mn[$t+54|0]=1),we[$t+44>>2]=4}},function(Ye,$t,ft,Gt){ft|=0,Gt|=0,ca(Ye|=0,we[8+($t|=0)>>2],0)&&va($t,ft,Gt)},no,function(Ye,$t,ft,Gt,bn,sr){ft|=0,Gt|=0,bn|=0,sr|=0,ca(Ye|=0,we[8+($t|=0)>>2],sr)?qr($t,ft,Gt,bn):(Ye=we[Ye+8>>2],Ra[we[we[Ye>>2]+20>>2]](Ye,$t,ft,Gt,bn,sr))},function(Ye,$t,ft,Gt,bn){if(ft|=0,Gt|=0,bn|=0,ca(Ye|=0,we[8+($t|=0)>>2],bn))we[$t+28>>2]==1|we[$t+4>>2]!=(0|ft)||(we[$t+28>>2]=Gt);else e:{if(ca(Ye,we[$t>>2],bn)){if(!(we[$t+16>>2]!=(0|ft)&we[$t+20>>2]!=(0|ft))){if((0|Gt)!=1)break e;return void(we[$t+32>>2]=1)}we[$t+32>>2]=Gt;t:if(we[$t+44>>2]!=4){if(Un[$t+52>>1]=0,Ye=we[Ye+8>>2],Ra[we[we[Ye>>2]+20>>2]](Ye,$t,ft,ft,1,bn),En[$t+53|0]){if(we[$t+44>>2]=3,!En[$t+52|0])break t;break e}we[$t+44>>2]=4}if(we[$t+20>>2]=ft,we[$t+40>>2]=we[$t+40>>2]+1,we[$t+36>>2]!=1|we[$t+24>>2]!=2)break e;return void(mn[$t+54|0]=1)}Ye=we[Ye+8>>2],Ra[we[we[Ye>>2]+24>>2]](Ye,$t,ft,Gt,bn)}},function(Ye,$t,ft,Gt){ft|=0,Gt|=0,ca(Ye|=0,we[8+($t|=0)>>2],0)?va($t,ft,Gt):(Ye=we[Ye+8>>2],Ra[we[we[Ye>>2]+28>>2]](Ye,$t,ft,Gt))},ja,no,function(Ye){return 1031},eo,function(Ye){return we[4+(Ye|=0)>>2]},eo]);return{g:function(){},h:sl,i:function(){var Ye;return Ye=rs(24),we[Ye>>2]=0,we[Ye+4>>2]=0,we[Ye+16>>2]=0,we[Ye+20>>2]=0,we[Ye+8>>2]=0,we[Ye+12>>2]=0,0|Ye},j:function(Ye,$t,ft){var Gt;return Ye=+Ye,$t=+$t,ft=+ft,Gt=rs(24),er[Gt+16>>3]=ft,er[Gt+8>>3]=$t,er[Gt>>3]=Ye,0|Gt},k:function(Ye,$t){$t|=0,er[(Ye|=0)>>3]=er[Ye>>3]+er[$t>>3],er[Ye+8>>3]=er[Ye+8>>3]+er[$t+8>>3],er[Ye+16>>3]=er[Ye+16>>3]+er[$t+16>>3]},l:function(Ye,$t){$t|=0,er[(Ye|=0)>>3]=er[Ye>>3]-er[$t>>3],er[Ye+8>>3]=er[Ye+8>>3]-er[$t+8>>3],er[Ye+16>>3]=er[Ye+16>>3]-er[$t+16>>3]},m:function(Ye){return+er[(Ye|=0)>>3]},n:function(Ye,$t){$t=+$t,er[(Ye|=0)>>3]=$t},o:function(Ye){return+er[8+(Ye|=0)>>3]},p:function(Ye,$t){$t=+$t,er[8+(Ye|=0)>>3]=$t},q:function(Ye){return+er[16+(Ye|=0)>>3]},r:function(Ye,$t){$t=+$t,er[16+(Ye|=0)>>3]=$t},s:sl,t:function(){var Ye;return Ye=rs(12),we[Ye+8>>2]=0,we[Ye>>2]=0,we[Ye+4>>2]=0,0|Ye},u:function(Ye,$t){$t|=0;var ft=0,Gt=0,bn=0,sr=0,Br=0,Pr=0;e:if((0|(ft=we[4+(Ye|=0)>>2]))==we[Ye+8>>2]){t:{if((bn=1+(ft=(0|(Pr=ft-(Gt=we[Ye>>2])|0))/24|0)|0)>>>0<178956971){if(sr=ft<<1,bn=ft>>>0<89478485?bn>>>0<sr>>>0?sr:bn:178956970){if(bn>>>0>=178956971)break t;sr=rs(Hr(bn,24))}else sr=0;ft=sr+Hr(ft,24)|0,Br=we[$t+4>>2],we[ft>>2]=we[$t>>2],we[ft+4>>2]=Br,Br=we[$t+20>>2],we[ft+16>>2]=we[$t+16>>2],we[ft+20>>2]=Br,Br=we[$t+12>>2],we[ft+8>>2]=we[$t+8>>2],we[ft+12>>2]=Br,$t=ft+Hr((0|Pr)/-24|0,24)|0,(0|Pr)>0&&Va($t,Gt,Pr),we[Ye+8>>2]=sr+Hr(bn,24),we[Ye+4>>2]=ft+24,we[Ye>>2]=$t,Gt&&ua(Gt);break e}Xo(1024),Ir()}Xo(1046),Ir()}else Gt=we[$t+4>>2],we[ft>>2]=we[$t>>2],we[ft+4>>2]=Gt,Gt=we[$t+20>>2],we[ft+16>>2]=we[$t+16>>2],we[ft+20>>2]=Gt,Gt=we[$t+12>>2],we[ft+8>>2]=we[$t+8>>2],we[ft+12>>2]=Gt,we[Ye+4>>2]=ft+24},v:function(Ye){var $t=0;(Ye|=0)&&(($t=we[Ye>>2])&&(we[Ye+4>>2]=$t,ua($t)),ua(Ye))},w:function(){return 0|rs(1)},x:function(Ye,$t){Ye|=0;var ft=0,Gt=0,bn=0,sr=0,Br=0,Pr=0,Mi=0,vi=0,Sa=0,La=0,Cs=0,ko=0;if(Ye=we[($t|=0)>>2],(Gt=(0|(bn=we[$t+4>>2]-Ye|0))/24|0)>>>0>=2){if(!(bn-24>>>0<24)){if(ft=er[Ye+8>>3],$t=1,Cs=1&(Gt=Gt-1|0),Br=er[Ye>>3],bn-48>>>0<24)Pr=ft;else for(ko=-2&Gt,Gt=0,Mi=Br,vi=ft;bn=Ye+Hr($t,24)|0,sr=.5*((Br=er[bn+24>>3])-(Sa=er[bn>>3]))*((La=er[bn+8>>3]-ft)+((Pr=er[bn+32>>3])-ft))+(.5*(Sa-Mi)*(vi-ft+La)+sr),$t=$t+2|0,Mi=Br,vi=Pr,(0|ko)!=(0|(Gt=Gt+2|0)););Cs&&(Ye=Ye+Hr($t,24)|0,sr=.5*(er[Ye>>3]-Br)*(Pr-ft+(er[Ye+8>>3]-ft))+sr)}ft=sr<0?-sr:sr}else ft=0;return+ft},y:function(Ye,$t,ft){Ye|=0,$t|=0;var Gt,bn=0,sr=0,Br=0,Pr=0,Mi=0,vi=0,Sa=0;if((Gt=((Ye=we[4+(ft|=0)>>2])-(ft=we[ft>>2])|0)/24|0)>>>0>=3)for(Ye=Gt-1|0,bn=er[$t+8>>3],Sa=er[$t>>3],$t=0;Pr=ft+Hr(Ye,24)|0,Br=er[Pr+8>>3],Ye=$t,$t=ft+Hr($t,24)|0,!(bn<Br&(sr=er[$t+8>>3])<=bn)&(!(bn>=Br)|!(bn<sr))||Sa-(Mi=er[$t>>3])<(bn-sr)*(er[Pr>>3]-Mi)/(Br-sr)&&(vi^=1),(0|Gt)!=(0|($t=Ye+1|0)););return 1&vi},z:sl,A:Ra,B:ti}}(wi)}(at)}})}}}).then(function(hi){return hi}).then(bi,function(hi){z("failed to asynchronously prepare wasm: "+hi),it(hi)})}var Jr={a:at};if(Le++,n.monitorRunDependencies&&n.monitorRunDependencies(Le),n.instantiateWasm)try{return n.instantiateWasm(Jr,ln)}catch(bi){return z("Module.instantiateWasm callback failed with error: "+bi),!1}(A||typeof V.instantiateStreaming!="function"||Ue.startsWith(ht)||Ue.startsWith("file://")||typeof fetch!="function"?zr(ar):fetch(Ue,{credentials:"same-origin"}).then(function(bi){return V.instantiateStreaming(bi,Jr).then(ar,function(hi){return z("wasm streaming compile failed: "+hi),z("falling back to ArrayBuffer instantiation"),zr(ar)})})).catch(s)})(),n.___wasm_call_ctors=function(){return(n.___wasm_call_ctors=n.asm.g).apply(null,arguments)};var Lt,Ne=n._emscripten_bind_VoidPtr___destroy___0=function(){return(Ne=n._emscripten_bind_VoidPtr___destroy___0=n.asm.h).apply(null,arguments)},ze=n._emscripten_bind_McGePoint3d_McGePoint3d_0=function(){return(ze=n._emscripten_bind_McGePoint3d_McGePoint3d_0=n.asm.i).apply(null,arguments)},Ke=n._emscripten_bind_McGePoint3d_McGePoint3d_3=function(){return(Ke=n._emscripten_bind_McGePoint3d_McGePoint3d_3=n.asm.j).apply(null,arguments)},vt=n._emscripten_bind_McGePoint3d_op_add_1=function(){return(vt=n._emscripten_bind_McGePoint3d_op_add_1=n.asm.k).apply(null,arguments)},Ft=n._emscripten_bind_McGePoint3d_op_sub_1=function(){return(Ft=n._emscripten_bind_McGePoint3d_op_sub_1=n.asm.l).apply(null,arguments)},Ot=n._emscripten_bind_McGePoint3d_get_x_0=function(){return(Ot=n._emscripten_bind_McGePoint3d_get_x_0=n.asm.m).apply(null,arguments)},_t=n._emscripten_bind_McGePoint3d_set_x_1=function(){return(_t=n._emscripten_bind_McGePoint3d_set_x_1=n.asm.n).apply(null,arguments)},Tn=n._emscripten_bind_McGePoint3d_get_y_0=function(){return(Tn=n._emscripten_bind_McGePoint3d_get_y_0=n.asm.o).apply(null,arguments)},on=n._emscripten_bind_McGePoint3d_set_y_1=function(){return(on=n._emscripten_bind_McGePoint3d_set_y_1=n.asm.p).apply(null,arguments)},$n=n._emscripten_bind_McGePoint3d_get_z_0=function(){return($n=n._emscripten_bind_McGePoint3d_get_z_0=n.asm.q).apply(null,arguments)},Zt=n._emscripten_bind_McGePoint3d_set_z_1=function(){return(Zt=n._emscripten_bind_McGePoint3d_set_z_1=n.asm.r).apply(null,arguments)},Et=n._emscripten_bind_McGePoint3d___destroy___0=function(){return(Et=n._emscripten_bind_McGePoint3d___destroy___0=n.asm.s).apply(null,arguments)},rn=n._emscripten_bind_McGePoint3dArray_McGePoint3dArray_0=function(){return(rn=n._emscripten_bind_McGePoint3dArray_McGePoint3dArray_0=n.asm.t).apply(null,arguments)},wt=n._emscripten_bind_McGePoint3dArray_append_1=function(){return(wt=n._emscripten_bind_McGePoint3dArray_append_1=n.asm.u).apply(null,arguments)},Yn=n._emscripten_bind_McGePoint3dArray___destroy___0=function(){return(Yn=n._emscripten_bind_McGePoint3dArray___destroy___0=n.asm.v).apply(null,arguments)},pt=n._emscripten_bind_McGeTool_McGeTool_0=function(){return(pt=n._emscripten_bind_McGeTool_McGeTool_0=n.asm.w).apply(null,arguments)},Fe=n._emscripten_bind_McGeTool_calcArea_1=function(){return(Fe=n._emscripten_bind_McGeTool_calcArea_1=n.asm.x).apply(null,arguments)},Ie=n._emscripten_bind_McGeTool_pointInPolyline_2=function(){return(Ie=n._emscripten_bind_McGeTool_pointInPolyline_2=n.asm.y).apply(null,arguments)},ct=n._emscripten_bind_McGeTool___destroy___0=function(){return(ct=n._emscripten_bind_McGeTool___destroy___0=n.asm.z).apply(null,arguments)},Ht=n._malloc=function(){return(Ht=n._malloc=n.asm.B).apply(null,arguments)};function sn(){function ln(){if(!Lt&&(Lt=!0,n.calledRun=!0,!F)){if(Ve(ye),o(n),n.onRuntimeInitialized&&n.onRuntimeInitialized(),n.postRun)for(typeof n.postRun=="function"&&(n.postRun=[n.postRun]);n.postRun.length;){var ar=n.postRun.shift();Te.unshift(ar)}Ve(Te)}}if(!(0<Le)){if(n.preRun)for(typeof n.preRun=="function"&&(n.preRun=[n.preRun]);n.preRun.length;)ke();Ve(me),0<Le||(n.setStatus?(n.setStatus("Running..."),setTimeout(function(){setTimeout(function(){n.setStatus("")},1),ln()},1)):ln())}}if(et=function ln(){Lt||sn(),Lt||(et=ln)},n.run=sn,n.preInit)for(typeof n.preInit=="function"&&(n.preInit=[n.preInit]);0<n.preInit.length;)n.preInit.pop()();function yn(){}function Dr(ln){return(ln||yn).F}function Kr(ln,ar){var zr=Dr(ar),Jr=zr[ln];return Jr||((Jr=Object.create((ar||yn).prototype)).C=ln,zr[ln]=Jr)}function ii(){throw"cannot construct a VoidPtr, no constructor in IDL"}function _n(ln,ar,zr){ln&&typeof ln=="object"&&(ln=ln.C),ar&&typeof ar=="object"&&(ar=ar.C),zr&&typeof zr=="object"&&(zr=zr.C),this.C=ln===void 0?ze():ar===void 0?_emscripten_bind_McGePoint3d_McGePoint3d_1(ln):zr===void 0?_emscripten_bind_McGePoint3d_McGePoint3d_2(ln,ar):Ke(ln,ar,zr),Dr(_n)[this.C]=this}function xn(){this.C=rn(),Dr(xn)[this.C]=this}function jn(){this.C=pt(),Dr(jn)[this.C]=this}return sn(),yn.prototype=Object.create(yn.prototype),yn.prototype.constructor=yn,yn.prototype.D=yn,yn.F={},n.WrapperObject=yn,n.getCache=Dr,n.wrapPointer=Kr,n.castObject=function(ln,ar){return Kr(ln.C,ar)},n.NULL=Kr(0),n.destroy=function(ln){if(!ln.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";ln.__destroy__(),delete Dr(ln.D)[ln.C]},n.compare=function(ln,ar){return ln.C===ar.C},n.getPointer=function(ln){return ln.C},n.getClass=function(ln){return ln.D},ii.prototype=Object.create(yn.prototype),ii.prototype.constructor=ii,ii.prototype.D=ii,ii.F={},n.VoidPtr=ii,ii.prototype.__destroy__=function(){Ne(this.C)},_n.prototype=Object.create(yn.prototype),_n.prototype.constructor=_n,_n.prototype.D=_n,_n.F={},n.McGePoint3d=_n,_n.prototype.op_add=function(ln){var ar=this.C;ln&&typeof ln=="object"&&(ln=ln.C),vt(ar,ln)},_n.prototype.op_sub=function(ln){var ar=this.C;ln&&typeof ln=="object"&&(ln=ln.C),Ft(ar,ln)},_n.prototype.get_x=_n.prototype.H=function(){return Ot(this.C)},_n.prototype.set_x=_n.prototype.R=function(ln){var ar=this.C;ln&&typeof ln=="object"&&(ln=ln.C),_t(ar,ln)},Object.defineProperty(_n.prototype,"x",{get:_n.prototype.H,set:_n.prototype.R}),_n.prototype.get_y=_n.prototype.I=function(){return Tn(this.C)},_n.prototype.set_y=_n.prototype.S=function(ln){var ar=this.C;ln&&typeof ln=="object"&&(ln=ln.C),on(ar,ln)},Object.defineProperty(_n.prototype,"y",{get:_n.prototype.I,set:_n.prototype.S}),_n.prototype.get_z=_n.prototype.J=function(){return $n(this.C)},_n.prototype.set_z=_n.prototype.T=function(ln){var ar=this.C;ln&&typeof ln=="object"&&(ln=ln.C),Zt(ar,ln)},Object.defineProperty(_n.prototype,"z",{get:_n.prototype.J,set:_n.prototype.T}),_n.prototype.__destroy__=function(){Et(this.C)},xn.prototype=Object.create(yn.prototype),xn.prototype.constructor=xn,xn.prototype.D=xn,xn.F={},n.McGePoint3dArray=xn,xn.prototype.append=xn.prototype.append=function(ln){var ar=this.C;ln&&typeof ln=="object"&&(ln=ln.C),wt(ar,ln)},xn.prototype.__destroy__=function(){Yn(this.C)},jn.prototype=Object.create(yn.prototype),jn.prototype.constructor=jn,jn.prototype.D=jn,jn.F={},n.McGeTool=jn,jn.prototype.calcArea=function(ln){var ar=this.C;return ln&&typeof ln=="object"&&(ln=ln.C),Fe(ar,ln)},jn.prototype.pointInPolyline=function(ln,ar){var zr=this.C;return ln&&typeof ln=="object"&&(ln=ln.C),ar&&typeof ar=="object"&&(ar=ar.C),!!Ie(zr,ln,ar)},jn.prototype.__destroy__=function(){ct(this.C)},r.ready});return typeof exports=="object"&&typeof module=="object"?module.exports=e:typeof exports=="object"&&(exports.mxcadassembly=e),e()}function loadMxcadAssembly(){mxcadassemblyinit().then(function(t){store.commit("setMxassembly",t)})}function _load(t){window.MxDocumentReady=void 0,window.MxUiMain=e=>{const r=e("./MxFun").MxFun;window.THREE=r.getTHREE(),store.commit("setMxFun",r),store.events.emit("MxUiMain",e),window.MxUiMain=void 0},window.MxMain=e=>(store.events.emit("MxMain",e),window.MxMain=void 0,registerMxDbEntity(),t(),0),mxfun(),loadMxcadAssembly()}function loadCoreCode(){return Gr(this,null,function*(){return new Promise((t,e)=>Gr(this,null,function*(){try{if(store.state.MxFun)return console.warn("\u7A0B\u5E8F\u5DF2\u81EA\u52A8\u8C03\u7528loadCoreCode \u65E0\u9700\u4E3B\u52A8\u8C03\u7528 | The program has automatically called loadCoreCode without actively calling it"),void t();_load(t)}catch(r){e({code:"error",msg:r})}}))})}function createCanvas(t="mx-canvas"){let e=document.getElementById(t);return e||(console.warn("\u6CA1\u6709\u627E\u5230id\u4E3A:"+t+"\u7684canvas\u5143\u7D20"),(e=document.createElement("canvas")).id=t),e}function createCanvasParent(t=createCanvas()){let e;return t||(t=createCanvas()),t.parentNode?e=t.parentNode:((e=document.createElement("div")).style.height="80vh",e.appendChild(t)),e}function dynamicImport(t){return Gr(this,null,function*(){let e;switch(t){case"jquery":e=yield dynamicImportJquery();break;case"element-resize-event-polyfill":e=yield dynamicImportResize()}return e})}function dynamicImportResize(){return Gr(this,null,function*(){try{const t=yield Promise.resolve().then(function(){return elementResizeEventPolyfill_umd_min$2});return t.default?t.default:t}catch(t){console.log("import\u52A8\u6001\u5BFC\u5165\uFF1Aelement-resize-event-polyfill\u5931\u8D25\uFF01",t)}})}function dynamicImportJquery(){return Gr(this,null,function*(){try{const t=yield Promise.resolve().then(function(){return jquery$1$1});return t.default?t.default:t}catch(t){console.log("import\u52A8\u6001\u5BFC\u5165\uFF1Ajquery\u5931\u8D25\uFF01",t)}})}window.$=window.jQuery=jquery$1,_load(()=>{});var lodash=createCommonjsModule(function(t,e){(function(){var r,n="Expected a function",o="__lodash_hash_undefined__",s="__lodash_placeholder__",c=16,l=32,v=64,x=128,w=256,_=1/0,b=9007199254740991,E=NaN,I=4294967295,O=[["ary",x],["bind",1],["bindKey",2],["curry",8],["curryRight",c],["flip",512],["partial",l],["partialRight",v],["rearg",w]],N="[object Arguments]",A="[object Array]",z="[object Boolean]",G="[object Date]",V="[object Error]",ne="[object Function]",W="[object GeneratorFunction]",B="[object Map]",q="[object Number]",D="[object Object]",F="[object Promise]",re="[object RegExp]",le="[object Set]",fe="[object String]",me="[object Symbol]",ye="[object WeakMap]",Te="[object ArrayBuffer]",ke="[object DataView]",Le="[object Float32Array]",et="[object Float64Array]",it="[object Int8Array]",Ue="[object Int16Array]",ht="[object Int32Array]",De="[object Uint8Array]",Be="[object Uint8ClampedArray]",Ve="[object Uint16Array]",He="[object Uint32Array]",gt=/\b__p \+= '';/g,dn=/\b(__p \+=) '' \+/g,Ze=/(__e\(.*?\)|\b__t\)) \+\n'';/g,at=/&(?:amp|lt|gt|quot|#39);/g,Lt=/[&<>"']/g,Ne=RegExp(at.source),ze=RegExp(Lt.source),Ke=/<%-([\s\S]+?)%>/g,vt=/<%([\s\S]+?)%>/g,Ft=/<%=([\s\S]+?)%>/g,Ot=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_t=/^\w*$/,Tn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,on=/[\\^$.*+?()[\]{}|]/g,$n=RegExp(on.source),Zt=/^\s+/,Et=/\s/,rn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,wt=/\{\n\/\* \[wrapped with (.+)\] \*/,Yn=/,? & /,pt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Fe=/[()=,{}\[\]\/\s]/,Ie=/\\(\\)?/g,ct=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ht=/\w*$/,sn=/^[-+]0x[0-9a-f]+$/i,yn=/^0b[01]+$/i,Dr=/^\[object .+?Constructor\]$/,Kr=/^0o[0-7]+$/i,ii=/^(?:0|[1-9]\d*)$/,_n=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xn=/($^)/,jn=/['\n\r\u2028\u2029\\]/g,ln="\\ud800-\\udfff",ar="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",zr="\\u2700-\\u27bf",Jr="a-z\\xdf-\\xf6\\xf8-\\xff",bi="A-Z\\xc0-\\xd6\\xd8-\\xde",hi="\\ufe0e\\ufe0f",wi="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ca="["+ln+"]",jt="["+wi+"]",dt="["+ar+"]",xt="\\d+",Nt="["+zr+"]",Qt="["+Jr+"]",mn="[^"+ln+wi+xt+zr+Jr+bi+"]",Un="\\ud83c[\\udffb-\\udfff]",we="[^"+ln+"]",En="(?:\\ud83c[\\udde6-\\uddff]){2}",Kn="[\\ud800-\\udbff][\\udc00-\\udfff]",er="["+bi+"]",Hr="\\u200d",Ir="(?:"+Qt+"|"+mn+")",Ri="(?:"+er+"|"+mn+")",Ti="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",mi="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Li="(?:"+dt+"|"+Un+")?",tr="["+hi+"]?",ha=tr+Li+"(?:"+Hr+"(?:"+[we,En,Kn].join("|")+")"+tr+Li+")*",ti="(?:"+[Nt,En,Kn].join("|")+")"+ha,ua="(?:"+[we+dt+"?",dt,En,Kn,Ca].join("|")+")",Va=RegExp("['\u2019]","g"),ns=RegExp(dt,"g"),Xo=RegExp(Un+"(?="+Un+")|"+ua+ha,"g"),qr=RegExp([er+"?"+Qt+"+"+Ti+"(?="+[jt,er,"$"].join("|")+")",Ri+"+"+mi+"(?="+[jt,er+Ir,"$"].join("|")+")",er+"?"+Ir+"+"+Ti,er+"+"+mi,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xt,ti].join("|"),"g"),ca=RegExp("["+Hr+ln+ar+hi+"]"),va=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ms=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rs=-1,Ai={};Ai[Le]=Ai[et]=Ai[it]=Ai[Ue]=Ai[ht]=Ai[De]=Ai[Be]=Ai[Ve]=Ai[He]=!0,Ai[N]=Ai[A]=Ai[Te]=Ai[z]=Ai[ke]=Ai[G]=Ai[V]=Ai[ne]=Ai[B]=Ai[q]=Ai[D]=Ai[re]=Ai[le]=Ai[fe]=Ai[ye]=!1;var Na={};Na[N]=Na[A]=Na[Te]=Na[ke]=Na[z]=Na[G]=Na[Le]=Na[et]=Na[it]=Na[Ue]=Na[ht]=Na[B]=Na[q]=Na[D]=Na[re]=Na[le]=Na[fe]=Na[me]=Na[De]=Na[Be]=Na[Ve]=Na[He]=!0,Na[V]=Na[ne]=Na[ye]=!1;var sl={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},eo=parseFloat,ja=parseInt,no=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,yo=typeof self=="object"&&self&&self.Object===Object&&self,Ra=no||yo||Function("return this")(),Ye=e&&!e.nodeType&&e,$t=Ye&&t&&!t.nodeType&&t,ft=$t&&$t.exports===Ye,Gt=ft&&no.process,bn=function(){try{return $t&&$t.require&&$t.require("util").types||Gt&&Gt.binding&&Gt.binding("util")}catch(be){}}(),sr=bn&&bn.isArrayBuffer,Br=bn&&bn.isDate,Pr=bn&&bn.isMap,Mi=bn&&bn.isRegExp,vi=bn&&bn.isSet,Sa=bn&&bn.isTypedArray;function La(be,Re,Ge){switch(Ge.length){case 0:return be.call(Re);case 1:return be.call(Re,Ge[0]);case 2:return be.call(Re,Ge[0],Ge[1]);case 3:return be.call(Re,Ge[0],Ge[1],Ge[2])}return be.apply(Re,Ge)}function Cs(be,Re,Ge,rt){for(var Dt=-1,Mt=be==null?0:be.length;++Dt<Mt;){var Yt=be[Dt];Re(rt,Yt,Ge(Yt),be)}return rt}function ko(be,Re){for(var Ge=-1,rt=be==null?0:be.length;++Ge<rt&&Re(be[Ge],Ge,be)!==!1;);return be}function Co(be,Re){for(var Ge=-1,rt=be==null?0:be.length;++Ge<rt;)if(!Re(be[Ge],Ge,be))return!1;return!0}function gs(be,Re){for(var Ge=-1,rt=be==null?0:be.length,Dt=0,Mt=[];++Ge<rt;){var Yt=be[Ge];Re(Yt,Ge,be)&&(Mt[Dt++]=Yt)}return Mt}function No(be,Re){return!(be==null||!be.length)&&Vo(be,Re,0)>-1}function wl(be,Re,Ge){for(var rt=-1,Dt=be==null?0:be.length;++rt<Dt;)if(Ge(Re,be[rt]))return!0;return!1}function Ua(be,Re){for(var Ge=-1,rt=be==null?0:be.length,Dt=Array(rt);++Ge<rt;)Dt[Ge]=Re(be[Ge],Ge,be);return Dt}function Vs(be,Re){for(var Ge=-1,rt=Re.length,Dt=be.length;++Ge<rt;)be[Dt+Ge]=Re[Ge];return be}function jo(be,Re,Ge,rt){var Dt=-1,Mt=be==null?0:be.length;for(rt&&Mt&&(Ge=be[++Dt]);++Dt<Mt;)Ge=Re(Ge,be[Dt],Dt,be);return Ge}function ys(be,Re,Ge,rt){var Dt=be==null?0:be.length;for(rt&&Dt&&(Ge=be[--Dt]);Dt--;)Ge=Re(Ge,be[Dt],Dt,be);return Ge}function Ol(be,Re){for(var Ge=-1,rt=be==null?0:be.length;++Ge<rt;)if(Re(be[Ge],Ge,be))return!0;return!1}var is=_o("length");function Ta(be,Re,Ge){var rt;return Ge(be,function(Dt,Mt,Yt){if(Re(Dt,Mt,Yt))return rt=Mt,!1}),rt}function Lr(be,Re,Ge,rt){for(var Dt=be.length,Mt=Ge+(rt?1:-1);rt?Mt--:++Mt<Dt;)if(Re(be[Mt],Mt,be))return Mt;return-1}function Vo(be,Re,Ge){return Re==Re?function(rt,Dt,Mt){for(var Yt=Mt-1,Xn=rt.length;++Yt<Xn;)if(rt[Yt]===Dt)return Yt;return-1}(be,Re,Ge):Lr(be,xu,Ge)}function ll(be,Re,Ge,rt){for(var Dt=Ge-1,Mt=be.length;++Dt<Mt;)if(rt(be[Dt],Re))return Dt;return-1}function xu(be){return be!=be}function vo(be,Re){var Ge=be==null?0:be.length;return Ge?Zo(be,Re)/Ge:E}function _o(be){return function(Re){return Re==null?r:Re[be]}}function Rs(be){return function(Re){return be==null?r:be[Re]}}function Fl(be,Re,Ge,rt,Dt){return Dt(be,function(Mt,Yt,Xn){Ge=rt?(rt=!1,Mt):Re(Ge,Mt,Yt,Xn)}),Ge}function Zo(be,Re){for(var Ge,rt=-1,Dt=be.length;++rt<Dt;){var Mt=Re(be[rt]);Mt!==r&&(Ge=Ge===r?Mt:Ge+Mt)}return Ge}function ql(be,Re){for(var Ge=-1,rt=Array(be);++Ge<be;)rt[Ge]=Re(Ge);return rt}function Al(be){return be&&be.slice(0,J(be)+1).replace(Zt,"")}function Kt(be){return function(Re){return be(Re)}}function Ml(be,Re){return Ua(Re,function(Ge){return be[Ge]})}function rr(be,Re){return be.has(Re)}function to(be,Re){for(var Ge=-1,rt=be.length;++Ge<rt&&Vo(Re,be[Ge],0)>-1;);return Ge}function ho(be,Re){for(var Ge=be.length;Ge--&&Vo(Re,be[Ge],0)>-1;);return Ge}var xa=Rs({\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"}),Ea=Rs({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function ao(be){return"\\"+sl[be]}function Ki(be){return ca.test(be)}function $o(be){var Re=-1,Ge=Array(be.size);return be.forEach(function(rt,Dt){Ge[++Re]=[Dt,rt]}),Ge}function Ho(be,Re){return function(Ge){return be(Re(Ge))}}function de(be,Re){for(var Ge=-1,rt=be.length,Dt=0,Mt=[];++Ge<rt;){var Yt=be[Ge];Yt!==Re&&Yt!==s||(be[Ge]=s,Mt[Dt++]=Ge)}return Mt}function Me(be){var Re=-1,Ge=Array(be.size);return be.forEach(function(rt){Ge[++Re]=rt}),Ge}function qe(be){return Ki(be)?function(Re){for(var Ge=Xo.lastIndex=0;Xo.test(Re);)++Ge;return Ge}(be):is(be)}function Qe(be){return Ki(be)?function(Re){return Re.match(Xo)||[]}(be):function(Re){return Re.split("")}(be)}function J(be){for(var Re=be.length;Re--&&Et.test(be.charAt(Re)););return Re}var ae=Rs({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),ve=function be(Re){var Ge,rt=(Re=Re==null?Ra:ve.defaults(Ra.Object(),Re,ve.pick(Ra,Ms))).Array,Dt=Re.Date,Mt=Re.Error,Yt=Re.Function,Xn=Re.Math,Sn=Re.Object,Gn=Re.RegExp,Or=Re.String,ki=Re.TypeError,Ia=rt.prototype,ma=Yt.prototype,na=Sn.prototype,Ya=Re["__core-js_shared__"],Da=ma.toString,Yi=na.hasOwnProperty,Ba=0,gl=(Ge=/[^.]+$/.exec(Ya&&Ya.keys&&Ya.keys.IE_PROTO||""))?"Symbol(src)_1."+Ge:"",Oa=na.toString,Oo=Da.call(Sn),Ls=Ra._,Ss=Gn("^"+Da.call(Yi).replace(on,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Es=ft?Re.Buffer:r,vs=Re.Symbol,po=Re.Uint8Array,oo=Es?Es.allocUnsafe:r,Ko=Ho(Sn.getPrototypeOf,Sn),Ts=Sn.create,as=na.propertyIsEnumerable,Qi=Ia.splice,Io=vs?vs.isConcatSpreadable:r,Jo=vs?vs.iterator:r,fo=vs?vs.toStringTag:r,ul=function(){try{var X=br(Sn,"defineProperty");return X({},"",{}),X}catch(oe){}}(),lo=Re.clearTimeout!==Ra.clearTimeout&&Re.clearTimeout,bu=Dt&&Dt.now!==Ra.Date.now&&Dt.now,Wo=Re.setTimeout!==Ra.setTimeout&&Re.setTimeout,Ds=Xn.ceil,os=Xn.floor,Ou=Sn.getOwnPropertySymbols,il=Es?Es.isBuffer:r,zs=Re.isFinite,Xl=Ia.join,Bl=Ho(Sn.keys,Sn),ga=Xn.max,zo=Xn.min,wu=Dt.now,ds=Re.parseInt,pu=Xn.random,gn=Ia.reverse,Zn=br(Re,"DataView"),Fn=br(Re,"Map"),Mr=br(Re,"Promise"),Nr=br(Re,"Set"),_i=br(Re,"WeakMap"),Ci=br(Sn,"create"),Vt=_i&&new _i,Wt={},Jn=cl(Zn),Vn=cl(Fn),Bn=cl(Mr),Hn=cl(Nr),kr=cl(_i),fi=vs?vs.prototype:r,oi=fi?fi.valueOf:r,da=fi?fi.toString:r;function St(X){if(Ws(X)&&!ro(X)&&!(X instanceof Gi)){if(X instanceof ni)return X;if(Yi.call(X,"__wrapped__"))return eu(X)}return new ni(X)}var zi=function(){function X(){}return function(oe){if(!fs(oe))return{};if(Ts)return Ts(oe);X.prototype=oe;var Se=new X;return X.prototype=r,Se}}();function Fr(){}function ni(X,oe){this.__wrapped__=X,this.__actions__=[],this.__chain__=!!oe,this.__index__=0,this.__values__=r}function Gi(X){this.__wrapped__=X,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=I,this.__views__=[]}function Po(X){var oe=-1,Se=X==null?0:X.length;for(this.clear();++oe<Se;){var st=X[oe];this.set(st[0],st[1])}}function Yo(X){var oe=-1,Se=X==null?0:X.length;for(this.clear();++oe<Se;){var st=X[oe];this.set(st[0],st[1])}}function xo(X){var oe=-1,Se=X==null?0:X.length;for(this.clear();++oe<Se;){var st=X[oe];this.set(st[0],st[1])}}function Zs(X){var oe=-1,Se=X==null?0:X.length;for(this.__data__=new xo;++oe<Se;)this.add(X[oe])}function As(X){var oe=this.__data__=new Yo(X);this.size=oe.size}function Uo(X,oe){var Se=ro(X),st=!Se&&_l(X),Ct=!Se&&!st&&Pc(X),an=!Se&&!st&&!Ct&&Yd(X),Rn=Se||st||Ct||an,qn=Rn?ql(X.length,Or):[],hr=qn.length;for(var ur in X)!oe&&!Yi.call(X,ur)||Rn&&(ur=="length"||Ct&&(ur=="offset"||ur=="parent")||an&&(ur=="buffer"||ur=="byteLength"||ur=="byteOffset")||ji(ur,hr))||qn.push(ur);return qn}function cc(X){var oe=X.length;return oe?X[bo(0,oe-1)]:r}function Os(X,oe,Se){(Se!==r&&!vl(X[oe],Se)||Se===r&&!(oe in X))&&Nl(X,oe,Se)}function qi(X,oe,Se){var st=X[oe];Yi.call(X,oe)&&vl(st,Se)&&(Se!==r||oe in X)||Nl(X,oe,Se)}function md(X,oe){for(var Se=X.length;Se--;)if(vl(X[Se][0],oe))return Se;return-1}function Xu(X,oe,Se,st){return Bu(X,function(Ct,an,Rn){oe(st,Ct,Se(Ct),Rn)}),st}function Zu(X,oe){return X&&Ro(oe,al(oe),X)}function Nl(X,oe,Se){oe=="__proto__"&&ul?ul(X,oe,{configurable:!0,enumerable:!0,value:Se,writable:!0}):X[oe]=Se}function Ku(X,oe){for(var Se=-1,st=oe.length,Ct=rt(st),an=X==null;++Se<st;)Ct[Se]=an?r:jh(X,oe[Se]);return Ct}function Zl(X,oe,Se){return X==X&&(Se!==r&&(X=X<=Se?X:Se),oe!==r&&(X=X>=oe?X:oe)),X}function Kl(X,oe,Se,st,Ct,an){var Rn,qn=1&oe,hr=2&oe,ur=4&oe;if(Se&&(Rn=Ct?Se(X,st,Ct,an):Se(X)),Rn!==r)return Rn;if(!fs(X))return X;var jr=ro(X);if(jr){if(Rn=function(Xr){var xi=Xr.length,fa=new Xr.constructor(xi);return xi&&typeof Xr[0]=="string"&&Yi.call(Xr,"index")&&(fa.index=Xr.index,fa.input=Xr.input),fa}(X),!qn)return Gs(X,Rn)}else{var ci=ui(X),ra=ci==ne||ci==W;if(Pc(X))return fu(X,qn);if(ci==D||ci==N||ra&&!Ct){if(Rn=hr||ra?{}:pa(X),!qn)return hr?function(Xr,xi){return Ro(Xr,ea(Xr),xi)}(X,function(Xr,xi){return Xr&&Ro(xi,Ul(xi),Xr)}(Rn,X)):function(Xr,xi){return Ro(Xr,Ii(Xr),xi)}(X,Zu(Rn,X))}else{if(!Na[ci])return Ct?X:{};Rn=function(Xr,xi,fa){var Ui,io=Xr.constructor;switch(xi){case Te:return vd(Xr);case z:case G:return new io(+Xr);case ke:return function(Qa,Ao){var wa=Ao?vd(Qa.buffer):Qa.buffer;return new Qa.constructor(wa,Qa.byteOffset,Qa.byteLength)}(Xr,fa);case Le:case et:case it:case Ue:case ht:case De:case Be:case Ve:case He:return Kc(Xr,fa);case B:return new io;case q:case fe:return new io(Xr);case re:return function(Qa){var Ao=new Qa.constructor(Qa.source,Ht.exec(Qa));return Ao.lastIndex=Qa.lastIndex,Ao}(Xr);case le:return new io;case me:return Ui=Xr,oi?Sn(oi.call(Ui)):{}}}(X,ci,qn)}}an||(an=new As);var ba=an.get(X);if(ba)return ba;an.set(X,Rn),fh(X)?X.forEach(function(Xr){Rn.add(Kl(Xr,oe,Se,Xr,X,an))}):pp(X)&&X.forEach(function(Xr,xi){Rn.set(xi,Kl(Xr,oe,Se,xi,X,an))});var Pa=jr?r:(ur?hr?xr:dr:hr?Ul:al)(X);return ko(Pa||X,function(Xr,xi){Pa&&(Xr=X[xi=Xr]),qi(Rn,xi,Kl(Xr,oe,Se,xi,X,an))}),Rn}function rh(X,oe,Se){var st=Se.length;if(X==null)return!st;for(X=Sn(X);st--;){var Ct=Se[st],an=oe[Ct],Rn=X[Ct];if(Rn===r&&!(Ct in X)||!an(Rn))return!1}return!0}function Fu(X,oe,Se){if(typeof X!="function")throw new ki(n);return _s(function(){X.apply(r,Se)},oe)}function Cc(X,oe,Se,st){var Ct=-1,an=No,Rn=!0,qn=X.length,hr=[],ur=oe.length;if(!qn)return hr;Se&&(oe=Ua(oe,Kt(Se))),st?(an=wl,Rn=!1):oe.length>=200&&(an=rr,Rn=!1,oe=new Zs(oe));e:for(;++Ct<qn;){var jr=X[Ct],ci=Se==null?jr:Se(jr);if(jr=st||jr!==0?jr:0,Rn&&ci==ci){for(var ra=ur;ra--;)if(oe[ra]===ci)continue e;hr.push(jr)}else an(oe,ci,st)||hr.push(jr)}return hr}St.templateSettings={escape:Ke,evaluate:vt,interpolate:Ft,variable:"",imports:{_:St}},St.prototype=Fr.prototype,St.prototype.constructor=St,ni.prototype=zi(Fr.prototype),ni.prototype.constructor=ni,Gi.prototype=zi(Fr.prototype),Gi.prototype.constructor=Gi,Po.prototype.clear=function(){this.__data__=Ci?Ci(null):{},this.size=0},Po.prototype.delete=function(X){var oe=this.has(X)&&delete this.__data__[X];return this.size-=oe?1:0,oe},Po.prototype.get=function(X){var oe=this.__data__;if(Ci){var Se=oe[X];return Se===o?r:Se}return Yi.call(oe,X)?oe[X]:r},Po.prototype.has=function(X){var oe=this.__data__;return Ci?oe[X]!==r:Yi.call(oe,X)},Po.prototype.set=function(X,oe){var Se=this.__data__;return this.size+=this.has(X)?0:1,Se[X]=Ci&&oe===r?o:oe,this},Yo.prototype.clear=function(){this.__data__=[],this.size=0},Yo.prototype.delete=function(X){var oe=this.__data__,Se=md(oe,X);return!(Se<0||(Se==oe.length-1?oe.pop():Qi.call(oe,Se,1),--this.size,0))},Yo.prototype.get=function(X){var oe=this.__data__,Se=md(oe,X);return Se<0?r:oe[Se][1]},Yo.prototype.has=function(X){return md(this.__data__,X)>-1},Yo.prototype.set=function(X,oe){var Se=this.__data__,st=md(Se,X);return st<0?(++this.size,Se.push([X,oe])):Se[st][1]=oe,this},xo.prototype.clear=function(){this.size=0,this.__data__={hash:new Po,map:new(Fn||Yo),string:new Po}},xo.prototype.delete=function(X){var oe=Yr(this,X).delete(X);return this.size-=oe?1:0,oe},xo.prototype.get=function(X){return Yr(this,X).get(X)},xo.prototype.has=function(X){return Yr(this,X).has(X)},xo.prototype.set=function(X,oe){var Se=Yr(this,X),st=Se.size;return Se.set(X,oe),this.size+=Se.size==st?0:1,this},Zs.prototype.add=Zs.prototype.push=function(X){return this.__data__.set(X,o),this},Zs.prototype.has=function(X){return this.__data__.has(X)},As.prototype.clear=function(){this.__data__=new Yo,this.size=0},As.prototype.delete=function(X){var oe=this.__data__,Se=oe.delete(X);return this.size=oe.size,Se},As.prototype.get=function(X){return this.__data__.get(X)},As.prototype.has=function(X){return this.__data__.has(X)},As.prototype.set=function(X,oe){var Se=this.__data__;if(Se instanceof Yo){var st=Se.__data__;if(!Fn||st.length<199)return st.push([X,oe]),this.size=++Se.size,this;Se=this.__data__=new xo(st)}return Se.set(X,oe),this.size=Se.size,this};var Bu=U(Qu),Bd=U(Nd,!0);function gd(X,oe){var Se=!0;return Bu(X,function(st,Ct,an){return Se=!!oe(st,Ct,an)}),Se}function dc(X,oe,Se){for(var st=-1,Ct=X.length;++st<Ct;){var an=X[st],Rn=oe(an);if(Rn!=null&&(qn===r?Rn==Rn&&!oc(Rn):Se(Rn,qn)))var qn=Rn,hr=an}return hr}function Ju(X,oe){var Se=[];return Bu(X,function(st,Ct,an){oe(st,Ct,an)&&Se.push(st)}),Se}function So(X,oe,Se,st,Ct){var an=-1,Rn=X.length;for(Se||(Se=Ja),Ct||(Ct=[]);++an<Rn;){var qn=X[an];oe>0&&Se(qn)?oe>1?So(qn,oe-1,Se,st,Ct):Vs(Ct,qn):st||(Ct[Ct.length]=qn)}return Ct}var kl=f(),hs=f(!0);function Qu(X,oe){return X&&kl(X,oe,al)}function Nd(X,oe){return X&&hs(X,oe,al)}function Nu(X,oe){return gs(oe,function(Se){return Au(X[Se])})}function Vl(X,oe){for(var Se=0,st=(oe=Gu(oe,X)).length;X!=null&&Se<st;)X=X[jl(oe[Se++])];return Se&&Se==st?X:r}function ec(X,oe,Se){var st=oe(X);return ro(X)?st:Vs(st,Se(X))}function ks(X){return X==null?X===r?"[object Undefined]":"[object Null]":fo&&fo in Sn(X)?function(oe){var Se=Yi.call(oe,fo),st=oe[fo];try{oe[fo]=r;var Ct=!0}catch(Rn){}var an=Oa.call(oe);return Ct&&(Se?oe[fo]=st:delete oe[fo]),an}(X):function(oe){return Oa.call(oe)}(X)}function Fa(X,oe){return X>oe}function Si(X,oe){return X!=null&&Yi.call(X,oe)}function Vd(X,oe){return X!=null&&oe in Sn(X)}function tc(X,oe,Se){for(var st=Se?wl:No,Ct=X[0].length,an=X.length,Rn=an,qn=rt(an),hr=1/0,ur=[];Rn--;){var jr=X[Rn];Rn&&oe&&(jr=Ua(jr,Kt(oe))),hr=zo(jr.length,hr),qn[Rn]=!Se&&(oe||Ct>=120&&jr.length>=120)?new Zs(Rn&&jr):r}jr=X[0];var ci=-1,ra=qn[0];e:for(;++ci<Ct&&ur.length<hr;){var ba=jr[ci],Pa=oe?oe(ba):ba;if(ba=Se||ba!==0?ba:0,!(ra?rr(ra,Pa):st(ur,Pa,Se))){for(Rn=an;--Rn;){var Xr=qn[Rn];if(!(Xr?rr(Xr,Pa):st(X[Rn],Pa,Se)))continue e}ra&&ra.push(Pa),ur.push(ba)}}return ur}function Ks(X,oe,Se){var st=(X=gc(X,oe=Gu(oe,X)))==null?X:X[jl(fl(oe))];return st==null?r:La(st,X,Se)}function Hc(X){return Ws(X)&&ks(X)==N}function yd(X,oe,Se,st,Ct){return X===oe||(X==null||oe==null||!Ws(X)&&!Ws(oe)?X!=X&&oe!=oe:function(an,Rn,qn,hr,ur,jr){var ci=ro(an),ra=ro(Rn),ba=ci?A:ui(an),Pa=ra?A:ui(Rn),Xr=(ba=ba==N?D:ba)==D,xi=(Pa=Pa==N?D:Pa)==D,fa=ba==Pa;if(fa&&Pc(an)){if(!Pc(Rn))return!1;ci=!0,Xr=!1}if(fa&&!Xr)return jr||(jr=new As),ci||Yd(an)?kn(an,Rn,qn,hr,ur,jr):function(wa,Aa,qs,bs,Xs,Qo,ru){switch(qs){case ke:if(wa.byteLength!=Aa.byteLength||wa.byteOffset!=Aa.byteOffset)return!1;wa=wa.buffer,Aa=Aa.buffer;case Te:return!(wa.byteLength!=Aa.byteLength||!Qo(new po(wa),new po(Aa)));case z:case G:case q:return vl(+wa,+Aa);case V:return wa.name==Aa.name&&wa.message==Aa.message;case re:case fe:return wa==Aa+"";case B:var $l=$o;case le:var Hl=1&bs;if($l||($l=Me),wa.size!=Aa.size&&!Hl)return!1;var Wu=ru.get(wa);if(Wu)return Wu==Aa;bs|=2,ru.set(wa,Aa);var qo=kn($l(wa),$l(Aa),bs,Xs,Qo,ru);return ru.delete(wa),qo;case me:if(oi)return oi.call(wa)==oi.call(Aa)}return!1}(an,Rn,ba,qn,hr,ur,jr);if(!(1&qn)){var Ui=Xr&&Yi.call(an,"__wrapped__"),io=xi&&Yi.call(Rn,"__wrapped__");if(Ui||io){var Qa=Ui?an.value():an,Ao=io?Rn.value():Rn;return jr||(jr=new As),ur(Qa,Ao,qn,hr,jr)}}return!!fa&&(jr||(jr=new As),function(wa,Aa,qs,bs,Xs,Qo){var ru=1&qs,$l=dr(wa),Hl=$l.length;if(Hl!=dr(Aa).length&&!ru)return!1;for(var Wu=Hl;Wu--;){var qo=$l[Wu];if(!(ru?qo in Aa:Yi.call(Aa,qo)))return!1}var Nc=Qo.get(wa),Yu=Qo.get(Aa);if(Nc&&Yu)return Nc==Aa&&Yu==wa;var bh=!0;Qo.set(wa,Aa),Qo.set(Aa,wa);for(var qh=ru;++Wu<Hl;){var sd=wa[qo=$l[Wu]],Vc=Aa[qo];if(bs)var Jd=ru?bs(Vc,sd,qo,Aa,wa,Qo):bs(sd,Vc,qo,wa,Aa,Qo);if(!(Jd===r?sd===Vc||Xs(sd,Vc,qs,bs,Qo):Jd)){bh=!1;break}qh||(qh=qo=="constructor")}if(bh&&!qh){var zc=wa.constructor,wh=Aa.constructor;zc==wh||!("constructor"in wa)||!("constructor"in Aa)||typeof zc=="function"&&zc instanceof zc&&typeof wh=="function"&&wh instanceof wh||(bh=!1)}return Qo.delete(wa),Qo.delete(Aa),bh}(an,Rn,qn,hr,ur,jr))}(X,oe,Se,st,yd,Ct))}function Th(X,oe,Se,st){var Ct=Se.length,an=Ct,Rn=!st;if(X==null)return!an;for(X=Sn(X);Ct--;){var qn=Se[Ct];if(Rn&&qn[2]?qn[1]!==X[qn[0]]:!(qn[0]in X))return!1}for(;++Ct<an;){var hr=(qn=Se[Ct])[0],ur=X[hr],jr=qn[1];if(Rn&&qn[2]){if(ur===r&&!(hr in X))return!1}else{var ci=new As;if(st)var ra=st(ur,jr,hr,X,oe,ci);if(!(ra===r?yd(jr,ur,3,st,ci):ra))return!1}}return!0}function zl(X){return!(!fs(X)||(oe=X,gl&&gl in oe))&&(Au(X)?Ss:Dr).test(cl(X));var oe}function lu(X){return typeof X=="function"?X:X==null?Rl:typeof X=="object"?ro(X)?nc(X[0],X[1]):Ec(X):xl(X)}function Js(X){if(!js(X))return Bl(X);var oe=[];for(var Se in Sn(X))Yi.call(X,Se)&&Se!="constructor"&&oe.push(Se);return oe}function Wc(X,oe){return X<oe}function Sc(X,oe){var Se=-1,st=du(X)?rt(X.length):[];return Bu(X,function(Ct,an,Rn){st[++Se]=oe(Ct,an,Rn)}),st}function Ec(X){var oe=Oi(X);return oe.length==1&&oe[0][2]?ju(oe[0][0],oe[0][1]):function(Se){return Se===X||Th(Se,X,oe)}}function nc(X,oe){return Mo(X)&&Sl(oe)?ju(jl(X),oe):function(Se){var st=jh(Se,X);return st===r&&st===oe?Ad(Se,X):yd(oe,st,3)}}function hc(X,oe,Se,st,Ct){X!==oe&&kl(oe,function(an,Rn){if(Ct||(Ct=new As),fs(an))(function(hr,ur,jr,ci,ra,ba,Pa){var Xr=ic(hr,jr),xi=ic(ur,jr),fa=Pa.get(xi);if(fa)Os(hr,jr,fa);else{var Ui=ba?ba(Xr,xi,jr+"",hr,ur,Pa):r,io=Ui===r;if(io){var Qa=ro(xi),Ao=!Qa&&Pc(xi),wa=!Qa&&!Ao&&Yd(xi);Ui=xi,Qa||Ao||wa?ro(Xr)?Ui=Xr:Hs(Xr)?Ui=Gs(Xr):Ao?(io=!1,Ui=fu(xi,!0)):wa?(io=!1,Ui=Kc(xi,!0)):Ui=[]:Td(xi)||_l(xi)?(Ui=Xr,_l(Xr)?Ui=nd(Xr):fs(Xr)&&!Au(Xr)||(Ui=pa(xi))):io=!1}io&&(Pa.set(xi,Ui),ra(Ui,xi,ci,ba,Pa),Pa.delete(xi)),Os(hr,jr,Ui)}})(X,oe,Rn,Se,hc,st,Ct);else{var qn=st?st(ic(X,Rn),an,Rn+"",X,oe,Ct):r;qn===r&&(qn=an),Os(X,Rn,qn)}},Ul)}function Yc(X,oe){var Se=X.length;if(Se)return ji(oe+=oe<0?Se:0,Se)?X[oe]:r}function Wi(X,oe,Se){var st=-1;return oe=Ua(oe=oe.length?Ua(oe,function(Ct){return ro(Ct)?function(an){return Vl(an,Ct.length===1?Ct[0]:Ct)}:Ct}):[Rl],Kt(gr())),function(Ct,an){var Rn=Ct.length;for(Ct.sort(an);Rn--;)Ct[Rn]=Ct[Rn].value;return Ct}(Sc(X,function(Ct,an,Rn){return{criteria:Ua(oe,function(qn){return qn(Ct)}),index:++st,value:Ct}}),function(Ct,an){return function(Rn,qn,hr){for(var ur=-1,jr=Rn.criteria,ci=qn.criteria,ra=jr.length,ba=hr.length;++ur<ra;){var Pa=Rh(jr[ur],ci[ur]);if(Pa)return ur>=ba?Pa:Pa*(hr[ur]=="desc"?-1:1)}return Rn.index-qn.index}(Ct,an,Se)})}function Dh(X,oe,Se){for(var st=-1,Ct=oe.length,an={};++st<Ct;){var Rn=oe[st],qn=Vl(X,Rn);Se(qn,Rn)&&zd(an,Gu(Rn,X),qn)}return an}function qc(X,oe,Se,st){var Ct=st?ll:Vo,an=-1,Rn=oe.length,qn=X;for(X===oe&&(oe=Gs(oe)),Se&&(qn=Ua(X,Kt(Se)));++an<Rn;)for(var hr=0,ur=oe[an],jr=Se?Se(ur):ur;(hr=Ct(qn,jr,hr,st))>-1;)qn!==X&&Qi.call(qn,hr,1),Qi.call(X,hr,1);return X}function Xc(X,oe){for(var Se=X?oe.length:0,st=Se-1;Se--;){var Ct=oe[Se];if(Se==st||Ct!==an){var an=Ct;ji(Ct)?Qi.call(X,Ct,1):Ih(X,Ct)}}return X}function bo(X,oe){return X+os(pu()*(oe-X+1))}function Mu(X,oe){var Se="";if(!X||oe<1||oe>b)return Se;do oe%2&&(Se+=X),(oe=os(oe/2))&&(X+=X);while(oe);return Se}function wo(X,oe){return Eo(mc(X,oe,Rl),X+"")}function zd(X,oe,Se,st){if(!fs(X))return X;for(var Ct=-1,an=(oe=Gu(oe,X)).length,Rn=an-1,qn=X;qn!=null&&++Ct<an;){var hr=jl(oe[Ct]),ur=Se;if(hr==="__proto__"||hr==="constructor"||hr==="prototype")return X;if(Ct!=Rn){var jr=qn[hr];(ur=st?st(jr,hr,qn):r)===r&&(ur=fs(jr)?jr:ji(oe[Ct+1])?[]:{})}qi(qn,hr,ur),qn=qn[hr]}return X}var Tc=Vt?function(X,oe){return Vt.set(X,oe),X}:Rl,ih=ul?function(X,oe){return ul(X,"toString",{configurable:!0,enumerable:!1,value:mu(oe),writable:!0})}:Rl;function Cl(X,oe,Se){var st=-1,Ct=X.length;oe<0&&(oe=-oe>Ct?0:Ct+oe),(Se=Se>Ct?Ct:Se)<0&&(Se+=Ct),Ct=oe>Se?0:Se-oe>>>0,oe>>>=0;for(var an=rt(Ct);++st<Ct;)an[st]=X[st+oe];return an}function Ah(X,oe){var Se;return Bu(X,function(st,Ct,an){return!(Se=oe(st,Ct,an))}),!!Se}function ah(X,oe,Se){var st=0,Ct=X==null?st:X.length;if(typeof oe=="number"&&oe==oe&&Ct<=2147483647){for(;st<Ct;){var an=st+Ct>>>1,Rn=X[an];Rn!==null&&!oc(Rn)&&(Se?Rn<=oe:Rn<oe)?st=an+1:Ct=an}return Ct}return Zc(X,oe,Rl,Se)}function Zc(X,oe,Se,st){var Ct=0,an=X==null?0:X.length;if(an===0)return 0;for(var Rn=(oe=Se(oe))!=oe,qn=oe===null,hr=oc(oe),ur=oe===r;Ct<an;){var jr=os((Ct+an)/2),ci=Se(X[jr]),ra=ci!==r,ba=ci===null,Pa=ci==ci,Xr=oc(ci);if(Rn)var xi=st||Pa;else xi=ur?Pa&&(st||ra):qn?Pa&&ra&&(st||!ba):hr?Pa&&ra&&!ba&&(st||!Xr):!ba&&!Xr&&(st?ci<=oe:ci<oe);xi?Ct=jr+1:an=jr}return zo(an,4294967294)}function kh(X,oe){for(var Se=-1,st=X.length,Ct=0,an=[];++Se<st;){var Rn=X[Se],qn=oe?oe(Rn):Rn;if(!Se||!vl(qn,hr)){var hr=qn;an[Ct++]=Rn===0?0:Rn}}return an}function Gd(X){return typeof X=="number"?X:oc(X)?E:+X}function Jl(X){if(typeof X=="string")return X;if(ro(X))return Ua(X,Jl)+"";if(oc(X))return da?da.call(X):"";var oe=X+"";return oe=="0"&&1/X==-1/0?"-0":oe}function Vu(X,oe,Se){var st=-1,Ct=No,an=X.length,Rn=!0,qn=[],hr=qn;if(Se)Rn=!1,Ct=wl;else if(an>=200){var ur=oe?null:vn(X);if(ur)return Me(ur);Rn=!1,Ct=rr,hr=new Zs}else hr=oe?[]:qn;e:for(;++st<an;){var jr=X[st],ci=oe?oe(jr):jr;if(jr=Se||jr!==0?jr:0,Rn&&ci==ci){for(var ra=hr.length;ra--;)if(hr[ra]===ci)continue e;oe&&hr.push(ci),qn.push(jr)}else Ct(hr,ci,Se)||(hr!==qn&&hr.push(ci),qn.push(jr))}return qn}function Ih(X,oe){return(X=gc(X,oe=Gu(oe,X)))==null||delete X[jl(fl(oe))]}function Ph(X,oe,Se,st){return zd(X,oe,Se(Vl(X,oe)),st)}function zu(X,oe,Se,st){for(var Ct=X.length,an=st?Ct:-1;(st?an--:++an<Ct)&&oe(X[an],an,X););return Se?Cl(X,st?0:an,st?an+1:Ct):Cl(X,st?an+1:0,st?Ct:an)}function Ql(X,oe){var Se=X;return Se instanceof Gi&&(Se=Se.value()),jo(oe,function(st,Ct){return Ct.func.apply(Ct.thisArg,Vs([st],Ct.args))},Se)}function Il(X,oe,Se){var st=X.length;if(st<2)return st?Vu(X[0]):[];for(var Ct=-1,an=rt(st);++Ct<st;)for(var Rn=X[Ct],qn=-1;++qn<st;)qn!=Ct&&(an[Ct]=Cc(an[Ct]||Rn,X[qn],oe,Se));return Vu(So(an,1),oe,Se)}function np(X,oe,Se){for(var st=-1,Ct=X.length,an=oe.length,Rn={};++st<Ct;){var qn=st<an?oe[st]:r;Se(Rn,X[st],qn)}return Rn}function rp(X){return Hs(X)?X:[]}function oh(X){return typeof X=="function"?X:Rl}function Gu(X,oe){return ro(X)?X:Mo(X,oe)?[X]:cu(ms(X))}var ip=wo;function pc(X,oe,Se){var st=X.length;return Se=Se===r?st:Se,!oe&&Se>=st?X:Cl(X,oe,Se)}var uu=lo||function(X){return Ra.clearTimeout(X)};function fu(X,oe){if(oe)return X.slice();var Se=X.length,st=oo?oo(Se):new X.constructor(Se);return X.copy(st),st}function vd(X){var oe=new X.constructor(X.byteLength);return new po(oe).set(new po(X)),oe}function Kc(X,oe){var Se=oe?vd(X.buffer):X.buffer;return new X.constructor(Se,X.byteOffset,X.length)}function Rh(X,oe){if(X!==oe){var Se=X!==r,st=X===null,Ct=X==X,an=oc(X),Rn=oe!==r,qn=oe===null,hr=oe==oe,ur=oc(oe);if(!qn&&!ur&&!an&&X>oe||an&&Rn&&hr&&!qn&&!ur||st&&Rn&&hr||!Se&&hr||!Ct)return 1;if(!st&&!an&&!ur&&X<oe||ur&&Se&&Ct&&!st&&!an||qn&&Se&&Ct||!Rn&&Ct||!hr)return-1}return 0}function sh(X,oe,Se,st){for(var Ct=-1,an=X.length,Rn=Se.length,qn=-1,hr=oe.length,ur=ga(an-Rn,0),jr=rt(hr+ur),ci=!st;++qn<hr;)jr[qn]=oe[qn];for(;++Ct<Rn;)(ci||Ct<an)&&(jr[Se[Ct]]=X[Ct]);for(;ur--;)jr[qn++]=X[Ct++];return jr}function _d(X,oe,Se,st){for(var Ct=-1,an=X.length,Rn=-1,qn=Se.length,hr=-1,ur=oe.length,jr=ga(an-qn,0),ci=rt(jr+ur),ra=!st;++Ct<jr;)ci[Ct]=X[Ct];for(var ba=Ct;++hr<ur;)ci[ba+hr]=oe[hr];for(;++Rn<qn;)(ra||Ct<an)&&(ci[ba+Se[Rn]]=X[Ct++]);return ci}function Gs(X,oe){var Se=-1,st=X.length;for(oe||(oe=rt(st));++Se<st;)oe[Se]=X[Se];return oe}function Ro(X,oe,Se,st){var Ct=!Se;Se||(Se={});for(var an=-1,Rn=oe.length;++an<Rn;){var qn=oe[an],hr=st?st(Se[qn],X[qn],qn,Se,X):r;hr===r&&(hr=X[qn]),Ct?Nl(Se,qn,hr):qi(Se,qn,hr)}return Se}function Jc(X,oe){return function(Se,st){var Ct=ro(Se)?Cs:Xu,an=oe?oe():{};return Ct(Se,X,gr(st,2),an)}}function rc(X){return wo(function(oe,Se){var st=-1,Ct=Se.length,an=Ct>1?Se[Ct-1]:r,Rn=Ct>2?Se[2]:r;for(an=X.length>3&&typeof an=="function"?(Ct--,an):r,Rn&&Xi(Se[0],Se[1],Rn)&&(an=Ct<3?r:an,Ct=1),oe=Sn(oe);++st<Ct;){var qn=Se[st];qn&&X(oe,qn,st,an)}return oe})}function U(X,oe){return function(Se,st){if(Se==null)return Se;if(!du(Se))return X(Se,st);for(var Ct=Se.length,an=oe?Ct:-1,Rn=Sn(Se);(oe?an--:++an<Ct)&&st(Rn[an],an,Rn)!==!1;);return Se}}function f(X){return function(oe,Se,st){for(var Ct=-1,an=Sn(oe),Rn=st(oe),qn=Rn.length;qn--;){var hr=Rn[X?qn:++Ct];if(Se(an[hr],hr,an)===!1)break}return oe}}function k(X){return function(oe){var Se=Ki(oe=ms(oe))?Qe(oe):r,st=Se?Se[0]:oe.charAt(0),Ct=Se?pc(Se,1).join(""):oe.slice(1);return st[X]()+Ct}}function Z(X){return function(oe){return jo(Id(kd(oe).replace(Va,"")),X,"")}}function ue(X){return function(){var oe=arguments;switch(oe.length){case 0:return new X;case 1:return new X(oe[0]);case 2:return new X(oe[0],oe[1]);case 3:return new X(oe[0],oe[1],oe[2]);case 4:return new X(oe[0],oe[1],oe[2],oe[3]);case 5:return new X(oe[0],oe[1],oe[2],oe[3],oe[4]);case 6:return new X(oe[0],oe[1],oe[2],oe[3],oe[4],oe[5]);case 7:return new X(oe[0],oe[1],oe[2],oe[3],oe[4],oe[5],oe[6])}var Se=zi(X.prototype),st=X.apply(Se,oe);return fs(st)?st:Se}}function he(X){return function(oe,Se,st){var Ct=Sn(oe);if(!du(oe)){var an=gr(Se,3);oe=al(oe),Se=function(qn){return an(Ct[qn],qn,Ct)}}var Rn=X(oe,Se,st);return Rn>-1?Ct[an?oe[Rn]:Rn]:r}}function _e(X){return nr(function(oe){var Se=oe.length,st=Se,Ct=ni.prototype.thru;for(X&&oe.reverse();st--;){var an=oe[st];if(typeof an!="function")throw new ki(n);if(Ct&&!Rn&&Qr(an)=="wrapper")var Rn=new ni([],!0)}for(st=Rn?st:Se;++st<Se;){var qn=Qr(an=oe[st]),hr=qn=="wrapper"?yr(an):r;Rn=hr&&Is(hr[0])&&hr[1]==424&&!hr[4].length&&hr[9]==1?Rn[Qr(hr[0])].apply(Rn,hr[3]):an.length==1&&Is(an)?Rn[qn]():Rn.thru(an)}return function(){var ur=arguments,jr=ur[0];if(Rn&&ur.length==1&&ro(jr))return Rn.plant(jr).value();for(var ci=0,ra=Se?oe[ci].apply(this,ur):jr;++ci<Se;)ra=oe[ci].call(this,ra);return ra}})}function Ce(X,oe,Se,st,Ct,an,Rn,qn,hr,ur){var jr=oe&x,ci=1&oe,ra=2&oe,ba=24&oe,Pa=512&oe,Xr=ra?r:ue(X);return function xi(){for(var fa=arguments.length,Ui=rt(fa),io=fa;io--;)Ui[io]=arguments[io];if(ba)var Qa=ir(xi),Ao=function(bs,Xs){for(var Qo=bs.length,ru=0;Qo--;)bs[Qo]===Xs&&++ru;return ru}(Ui,Qa);if(st&&(Ui=sh(Ui,st,Ct,ba)),an&&(Ui=_d(Ui,an,Rn,ba)),fa-=Ao,ba&&fa<ur){var wa=de(Ui,Qa);return Bt(X,oe,Ce,xi.placeholder,Se,Ui,wa,qn,hr,ur-fa)}var Aa=ci?Se:this,qs=ra?Aa[X]:X;return fa=Ui.length,qn?Ui=function(bs,Xs){for(var Qo=bs.length,ru=zo(Xs.length,Qo),$l=Gs(bs);ru--;){var Hl=Xs[ru];bs[ru]=ji(Hl,Qo)?$l[Hl]:r}return bs}(Ui,qn):Pa&&fa>1&&Ui.reverse(),jr&&hr<fa&&(Ui.length=hr),this&&this!==Ra&&this instanceof xi&&(qs=Xr||ue(qs)),qs.apply(Aa,Ui)}}function Xe(X,oe){return function(Se,st){return function(Ct,an,Rn,qn){return Qu(Ct,function(hr,ur,jr){an(qn,Rn(hr),ur,jr)}),qn}(Se,X,oe(st),{})}}function nt(X,oe){return function(Se,st){var Ct;if(Se===r&&st===r)return oe;if(Se!==r&&(Ct=Se),st!==r){if(Ct===r)return st;typeof Se=="string"||typeof st=="string"?(Se=Jl(Se),st=Jl(st)):(Se=Gd(Se),st=Gd(st)),Ct=X(Se,st)}return Ct}}function lt(X){return nr(function(oe){return oe=Ua(oe,Kt(gr())),wo(function(Se){var st=this;return X(oe,function(Ct){return La(Ct,st,Se)})})})}function yt(X,oe){var Se=(oe=oe===r?" ":Jl(oe)).length;if(Se<2)return Se?Mu(oe,X):oe;var st=Mu(oe,Ds(X/qe(oe)));return Ki(oe)?pc(Qe(st),0,X).join(""):st.slice(0,X)}function Rt(X){return function(oe,Se,st){return st&&typeof st!="number"&&Xi(oe,Se,st)&&(Se=st=r),oe=sc(oe),Se===r?(Se=oe,oe=0):Se=sc(Se),function(Ct,an,Rn,qn){for(var hr=-1,ur=ga(Ds((an-Ct)/(Rn||1)),0),jr=rt(ur);ur--;)jr[qn?ur:++hr]=Ct,Ct+=Rn;return jr}(oe,Se,st=st===r?oe<Se?1:-1:sc(st),X)}}function Ut(X){return function(oe,Se){return typeof oe=="string"&&typeof Se=="string"||(oe=xs(oe),Se=xs(Se)),X(oe,Se)}}function Bt(X,oe,Se,st,Ct,an,Rn,qn,hr,ur){var jr=8&oe;oe|=jr?l:v,4&(oe&=~(jr?v:l))||(oe&=-4);var ci=[X,oe,Ct,jr?an:r,jr?Rn:r,jr?r:an,jr?r:Rn,qn,hr,ur],ra=Se.apply(r,ci);return Is(X)&&Us(ra,ci),ra.placeholder=st,$s(ra,X,oe)}function It(X){var oe=Xn[X];return function(Se,st){if(Se=xs(Se),(st=st==null?0:zo(so(st),292))&&zs(Se)){var Ct=(ms(Se)+"e").split("e");return+((Ct=(ms(oe(Ct[0]+"e"+(+Ct[1]+st)))+"e").split("e"))[0]+"e"+(+Ct[1]-st))}return oe(Se)}}var vn=Nr&&1/Me(new Nr([,-0]))[1]==_?function(X){return new Nr(X)}:Iu;function tn(X){return function(oe){var Se=ui(oe);return Se==B?$o(oe):Se==le?function(st){var Ct=-1,an=Array(st.size);return st.forEach(function(Rn){an[++Ct]=[Rn,Rn]}),an}(oe):function(st,Ct){return Ua(Ct,function(an){return[an,st[an]]})}(oe,X(oe))}}function cn(X,oe,Se,st,Ct,an,Rn,qn){var hr=2&oe;if(!hr&&typeof X!="function")throw new ki(n);var ur=st?st.length:0;if(ur||(oe&=-97,st=Ct=r),Rn=Rn===r?Rn:ga(so(Rn),0),qn=qn===r?qn:so(qn),ur-=Ct?Ct.length:0,oe&v){var jr=st,ci=Ct;st=Ct=r}var ra=hr?r:yr(X),ba=[X,oe,Se,st,Ct,jr,ci,an,Rn,qn];if(ra&&function(Xr,xi){var fa=Xr[1],Ui=xi[1],io=fa|Ui,Qa=io<131,Ao=Ui==x&&fa==8||Ui==x&&fa==w&&Xr[7].length<=xi[8]||Ui==384&&xi[7].length<=xi[8]&&fa==8;if(!Qa&&!Ao)return Xr;1&Ui&&(Xr[2]=xi[2],io|=1&fa?0:4);var wa=xi[3];if(wa){var Aa=Xr[3];Xr[3]=Aa?sh(Aa,wa,xi[4]):wa,Xr[4]=Aa?de(Xr[3],s):xi[4]}(wa=xi[5])&&(Aa=Xr[5],Xr[5]=Aa?_d(Aa,wa,xi[6]):wa,Xr[6]=Aa?de(Xr[5],s):xi[6]),(wa=xi[7])&&(Xr[7]=wa),Ui&x&&(Xr[8]=Xr[8]==null?xi[8]:zo(Xr[8],xi[8])),Xr[9]==null&&(Xr[9]=xi[9]),Xr[0]=xi[0],Xr[1]=io}(ba,ra),X=ba[0],oe=ba[1],Se=ba[2],st=ba[3],Ct=ba[4],!(qn=ba[9]=ba[9]===r?hr?0:X.length:ga(ba[9]-ur,0))&&24&oe&&(oe&=-25),oe&&oe!=1)Pa=oe==8||oe==c?function(Xr,xi,fa){var Ui=ue(Xr);return function io(){for(var Qa=arguments.length,Ao=rt(Qa),wa=Qa,Aa=ir(io);wa--;)Ao[wa]=arguments[wa];var qs=Qa<3&&Ao[0]!==Aa&&Ao[Qa-1]!==Aa?[]:de(Ao,Aa);return(Qa-=qs.length)<fa?Bt(Xr,xi,Ce,io.placeholder,r,Ao,qs,r,r,fa-Qa):La(this&&this!==Ra&&this instanceof io?Ui:Xr,this,Ao)}}(X,oe,qn):oe!=l&&oe!=33||Ct.length?Ce.apply(r,ba):function(Xr,xi,fa,Ui){var io=1&xi,Qa=ue(Xr);return function Ao(){for(var wa=-1,Aa=arguments.length,qs=-1,bs=Ui.length,Xs=rt(bs+Aa),Qo=this&&this!==Ra&&this instanceof Ao?Qa:Xr;++qs<bs;)Xs[qs]=Ui[qs];for(;Aa--;)Xs[qs++]=arguments[++wa];return La(Qo,io?fa:this,Xs)}}(X,oe,Se,st);else var Pa=function(Xr,xi,fa){var Ui=1&xi,io=ue(Xr);return function Qa(){return(this&&this!==Ra&&this instanceof Qa?io:Xr).apply(Ui?fa:this,arguments)}}(X,oe,Se);return $s((ra?Tc:Us)(Pa,ba),X,oe)}function pn(X,oe,Se,st){return X===r||vl(X,na[Se])&&!Yi.call(st,Se)?oe:X}function Cn(X,oe,Se,st,Ct,an){return fs(X)&&fs(oe)&&(an.set(oe,X),hc(X,oe,r,Cn,an),an.delete(oe)),X}function un(X){return Td(X)?r:X}function kn(X,oe,Se,st,Ct,an){var Rn=1&Se,qn=X.length,hr=oe.length;if(qn!=hr&&!(Rn&&hr>qn))return!1;var ur=an.get(X),jr=an.get(oe);if(ur&&jr)return ur==oe&&jr==X;var ci=-1,ra=!0,ba=2&Se?new Zs:r;for(an.set(X,oe),an.set(oe,X);++ci<qn;){var Pa=X[ci],Xr=oe[ci];if(st)var xi=Rn?st(Xr,Pa,ci,oe,X,an):st(Pa,Xr,ci,X,oe,an);if(xi!==r){if(xi)continue;ra=!1;break}if(ba){if(!Ol(oe,function(fa,Ui){if(!rr(ba,Ui)&&(Pa===fa||Ct(Pa,fa,Se,st,an)))return ba.push(Ui)})){ra=!1;break}}else if(Pa!==Xr&&!Ct(Pa,Xr,Se,st,an)){ra=!1;break}}return an.delete(X),an.delete(oe),ra}function nr(X){return Eo(mc(X,r,Ac),X+"")}function dr(X){return ec(X,al,Ii)}function xr(X){return ec(X,Ul,ea)}var yr=Vt?function(X){return Vt.get(X)}:Iu;function Qr(X){for(var oe=X.name+"",Se=Wt[oe],st=Yi.call(Wt,oe)?Se.length:0;st--;){var Ct=Se[st],an=Ct.func;if(an==null||an==X)return Ct.name}return oe}function ir(X){return(Yi.call(St,"placeholder")?St:X).placeholder}function gr(){var X=St.iteratee||vh;return X=X===vh?lu:X,arguments.length?X(arguments[0],arguments[1]):X}function Yr(X,oe){var Se,st,Ct=X.__data__;return((st=typeof(Se=oe))=="string"||st=="number"||st=="symbol"||st=="boolean"?Se!=="__proto__":Se===null)?Ct[typeof oe=="string"?"string":"hash"]:Ct.map}function Oi(X){for(var oe=al(X),Se=oe.length;Se--;){var st=oe[Se],Ct=X[st];oe[Se]=[st,Ct,Sl(Ct)]}return oe}function br(X,oe){var Se=function(st,Ct){return st==null?r:st[Ct]}(X,oe);return zl(Se)?Se:r}var Ii=Ou?function(X){return X==null?[]:(X=Sn(X),gs(Ou(X),function(oe){return as.call(X,oe)}))}:Kd,ea=Ou?function(X){for(var oe=[];X;)Vs(oe,Ii(X)),X=Ko(X);return oe}:Kd,ui=ks;function Fi(X,oe,Se){for(var st=-1,Ct=(oe=Gu(oe,X)).length,an=!1;++st<Ct;){var Rn=jl(oe[st]);if(!(an=X!=null&&Se(X,Rn)))break;X=X[Rn]}return an||++st!=Ct?an:!!(Ct=X==null?0:X.length)&&Ed(Ct)&&ji(Rn,Ct)&&(ro(X)||_l(X))}function pa(X){return typeof X.constructor!="function"||js(X)?{}:zi(Ko(X))}function Ja(X){return ro(X)||_l(X)||!!(Io&&X&&X[Io])}function ji(X,oe){var Se=typeof X;return!!(oe=oe==null?b:oe)&&(Se=="number"||Se!="symbol"&&ii.test(X))&&X>-1&&X%1==0&&X<oe}function Xi(X,oe,Se){if(!fs(Se))return!1;var st=typeof oe;return!!(st=="number"?du(Se)&&ji(oe,Se.length):st=="string"&&oe in Se)&&vl(Se[oe],X)}function Mo(X,oe){if(ro(X))return!1;var Se=typeof X;return!(Se!="number"&&Se!="symbol"&&Se!="boolean"&&X!=null&&!oc(X))||_t.test(X)||!Ot.test(X)||oe!=null&&X in Sn(oe)}function Is(X){var oe=Qr(X),Se=St[oe];if(typeof Se!="function"||!(oe in Gi.prototype))return!1;if(X===Se)return!0;var st=yr(Se);return!!st&&X===st[0]}(Zn&&ui(new Zn(new ArrayBuffer(1)))!=ke||Fn&&ui(new Fn)!=B||Mr&&ui(Mr.resolve())!=F||Nr&&ui(new Nr)!=le||_i&&ui(new _i)!=ye)&&(ui=function(X){var oe=ks(X),Se=oe==D?X.constructor:r,st=Se?cl(Se):"";if(st)switch(st){case Jn:return ke;case Vn:return B;case Bn:return F;case Hn:return le;case kr:return ye}return oe});var Gl=Ya?Au:Wh;function js(X){var oe=X&&X.constructor;return X===(typeof oe=="function"&&oe.prototype||na)}function Sl(X){return X==X&&!fs(X)}function ju(X,oe){return function(Se){return Se!=null&&Se[X]===oe&&(oe!==r||X in Sn(Se))}}function mc(X,oe,Se){return oe=ga(oe===r?X.length-1:oe,0),function(){for(var st=arguments,Ct=-1,an=ga(st.length-oe,0),Rn=rt(an);++Ct<an;)Rn[Ct]=st[oe+Ct];Ct=-1;for(var qn=rt(oe+1);++Ct<oe;)qn[Ct]=st[Ct];return qn[oe]=Se(Rn),La(X,this,qn)}}function gc(X,oe){return oe.length<2?X:Vl(X,Cl(oe,0,-1))}function ic(X,oe){if((oe!=="constructor"||typeof X[oe]!="function")&&oe!="__proto__")return X[oe]}var Us=El(Tc),_s=Wo||function(X,oe){return Ra.setTimeout(X,oe)},Eo=El(ih);function $s(X,oe,Se){var st=oe+"";return Eo(X,function(Ct,an){var Rn=an.length;if(!Rn)return Ct;var qn=Rn-1;return an[qn]=(Rn>1?"& ":"")+an[qn],an=an.join(Rn>2?", ":" "),Ct.replace(rn,`{
  3253. /* [wrapped with `+an+`] */
  3254. `)}(st,function(Ct,an){return ko(O,function(Rn){var qn="_."+Rn[0];an&Rn[1]&&!No(Ct,qn)&&Ct.push(qn)}),Ct.sort()}(function(Ct){var an=st.match(wt);return an?an[1].split(Yn):[]}(),Se)))}function El(X){var oe=0,Se=0;return function(){var st=wu(),Ct=16-(st-Se);if(Se=st,Ct>0){if(++oe>=800)return arguments[0]}else oe=0;return X.apply(r,arguments)}}function ps(X,oe){var Se=-1,st=X.length,Ct=st-1;for(oe=oe===r?st:oe;++Se<oe;){var an=bo(Se,Ct),Rn=X[an];X[an]=X[Se],X[Se]=Rn}return X.length=oe,X}var cu=function(X){var oe=Sd(function(st){var Ct=[];return st.charCodeAt(0)===46&&Ct.push(""),st.replace(Tn,function(an,Rn,qn,hr){Ct.push(qn?hr.replace(Ie,"$1"):Rn||an)}),Ct},function(st){return Se.size===500&&Se.clear(),st}),Se=oe.cache;return oe}();function jl(X){if(typeof X=="string"||oc(X))return X;var oe=X+"";return oe=="0"&&1/X==-1/0?"-0":oe}function cl(X){if(X!=null){try{return Da.call(X)}catch(oe){}try{return X+""}catch(oe){}}return""}function eu(X){if(X instanceof Gi)return X.clone();var oe=new ni(X.__wrapped__,X.__chain__);return oe.__actions__=Gs(X.__actions__),oe.__index__=X.__index__,oe.__values__=X.__values__,oe}var xd=wo(function(X,oe){return Hs(X)?Cc(X,So(oe,1,Hs,!0)):[]}),Dc=wo(function(X,oe){var Se=fl(oe);return Hs(Se)&&(Se=r),Hs(X)?Cc(X,So(oe,1,Hs,!0),gr(Se,2)):[]}),yc=wo(function(X,oe){var Se=fl(oe);return Hs(Se)&&(Se=r),Hs(X)?Cc(X,So(oe,1,Hs,!0),r,Se):[]});function bd(X,oe,Se){var st=X==null?0:X.length;if(!st)return-1;var Ct=Se==null?0:so(Se);return Ct<0&&(Ct=ga(st+Ct,0)),Lr(X,gr(oe,3),Ct)}function Cu(X,oe,Se){var st=X==null?0:X.length;if(!st)return-1;var Ct=st-1;return Se!==r&&(Ct=so(Se),Ct=Se<0?ga(st+Ct,0):zo(Ct,st-1)),Lr(X,gr(oe,3),Ct,!0)}function Ac(X){return X!=null&&X.length?So(X,1):[]}function Qc(X){return X&&X.length?X[0]:r}var lh=wo(function(X){var oe=Ua(X,rp);return oe.length&&oe[0]===X[0]?tc(oe):[]}),uh=wo(function(X){var oe=fl(X),Se=Ua(X,rp);return oe===fl(Se)?oe=r:Se.pop(),Se.length&&Se[0]===X[0]?tc(Se,gr(oe,2)):[]}),ap=wo(function(X){var oe=fl(X),Se=Ua(X,rp);return(oe=typeof oe=="function"?oe:r)&&Se.pop(),Se.length&&Se[0]===X[0]?tc(Se,r,oe):[]});function fl(X){var oe=X==null?0:X.length;return oe?X[oe-1]:r}var jd=wo(Lh);function Lh(X,oe){return X&&X.length&&oe&&oe.length?qc(X,oe):X}var Jp=nr(function(X,oe){var Se=X==null?0:X.length,st=Ku(X,oe);return Xc(X,Ua(oe,function(Ct){return ji(Ct,Se)?+Ct:Ct}).sort(Rh)),st});function op(X){return X==null?X:gn.call(X)}var If=wo(function(X){return Vu(So(X,1,Hs,!0))}),sp=wo(function(X){var oe=fl(X);return Hs(oe)&&(oe=r),Vu(So(X,1,Hs,!0),gr(oe,2))}),Oh=wo(function(X){var oe=fl(X);return oe=typeof oe=="function"?oe:r,Vu(So(X,1,Hs,!0),r,oe)});function ed(X){if(!X||!X.length)return[];var oe=0;return X=gs(X,function(Se){if(Hs(Se))return oe=ga(Se.length,oe),!0}),ql(oe,function(Se){return Ua(X,_o(Se))})}function Ud(X,oe){if(!X||!X.length)return[];var Se=ed(X);return oe==null?Se:Ua(Se,function(st){return La(oe,r,st)})}var ac=wo(function(X,oe){return Hs(X)?Cc(X,oe):[]}),Su=wo(function(X){return Il(gs(X,Hs))}),wd=wo(function(X){var oe=fl(X);return Hs(oe)&&(oe=r),Il(gs(X,Hs),gr(oe,2))}),$d=wo(function(X){var oe=fl(X);return oe=typeof oe=="function"?oe:r,Il(gs(X,Hs),r,oe)}),td=wo(ed),Qp=wo(function(X){var oe=X.length,Se=oe>1?X[oe-1]:r;return Ud(X,Se=typeof Se=="function"?(X.pop(),Se):r)});function ef(X){var oe=St(X);return oe.__chain__=!0,oe}function lp(X,oe){return oe(X)}var Fh=nr(function(X){var oe=X.length,Se=oe?X[0]:0,st=this.__wrapped__,Ct=function(an){return Ku(an,X)};return!(oe>1||this.__actions__.length)&&st instanceof Gi&&ji(Se)?((st=st.slice(Se,+Se+(oe?1:0))).__actions__.push({func:lp,args:[Ct],thisArg:r}),new ni(st,this.__chain__).thru(function(an){return oe&&!an.length&&an.push(r),an})):this.thru(Ct)}),Bh=Jc(function(X,oe,Se){Yi.call(X,Se)?++X[Se]:Nl(X,Se,1)}),ch=he(bd),ss=he(Cu);function tf(X,oe){return(ro(X)?ko:Bu)(X,gr(oe,3))}function nf(X,oe){return(ro(X)?function(Se,st){for(var Ct=Se==null?0:Se.length;Ct--&&st(Se[Ct],Ct,Se)!==!1;);return Se}:Bd)(X,gr(oe,3))}var Qs=Jc(function(X,oe,Se){Yi.call(X,Se)?X[Se].push(oe):Nl(X,Se,[oe])}),za=wo(function(X,oe,Se){var st=-1,Ct=typeof oe=="function",an=du(X)?rt(X.length):[];return Bu(X,function(Rn){an[++st]=Ct?La(oe,Rn,Se):Ks(Rn,oe,Se)}),an}),kc=Jc(function(X,oe,Se){Nl(X,Se,oe)});function tu(X,oe){return(ro(X)?Ua:Sc)(X,gr(oe,3))}var Go=Jc(function(X,oe,Se){X[Se?0:1].push(oe)},function(){return[[],[]]}),up=wo(function(X,oe){if(X==null)return[];var Se=oe.length;return Se>1&&Xi(X,oe[0],oe[1])?oe=[]:Se>2&&Xi(oe[0],oe[1],oe[2])&&(oe=[oe[0]]),Wi(X,So(oe,1),[])}),Fs=bu||function(){return Ra.Date.now()};function Md(X,oe,Se){return oe=Se?r:oe,oe=X&&oe==null?X.length:oe,cn(X,x,r,r,r,r,oe)}function Eu(X,oe){var Se;if(typeof oe!="function")throw new ki(n);return X=so(X),function(){return--X>0&&(Se=oe.apply(this,arguments)),X<=1&&(oe=r),Se}}var Cd=wo(function(X,oe,Se){var st=1;if(Se.length){var Ct=de(Se,ir(Cd));st|=l}return cn(X,st,oe,Se,Ct)}),Tu=wo(function(X,oe,Se){var st=3;if(Se.length){var Ct=de(Se,ir(Tu));st|=l}return cn(oe,st,X,Se,Ct)});function yl(X,oe,Se){var st,Ct,an,Rn,qn,hr,ur=0,jr=!1,ci=!1,ra=!0;if(typeof X!="function")throw new ki(n);function ba(Ui){var io=st,Qa=Ct;return st=Ct=r,ur=Ui,Rn=X.apply(Qa,io)}function Pa(Ui){var io=Ui-hr;return hr===r||io>=oe||io<0||ci&&Ui-ur>=an}function Xr(){var Ui=Fs();if(Pa(Ui))return xi(Ui);qn=_s(Xr,function(io){var Qa=oe-(io-hr);return ci?zo(Qa,an-(io-ur)):Qa}(Ui))}function xi(Ui){return qn=r,ra&&st?ba(Ui):(st=Ct=r,Rn)}function fa(){var Ui=Fs(),io=Pa(Ui);if(st=arguments,Ct=this,hr=Ui,io){if(qn===r)return function(Qa){return ur=Qa,qn=_s(Xr,oe),jr?ba(Qa):Rn}(hr);if(ci)return uu(qn),qn=_s(Xr,oe),ba(hr)}return qn===r&&(qn=_s(Xr,oe)),Rn}return oe=xs(oe)||0,fs(Se)&&(jr=!!Se.leading,an=(ci="maxWait"in Se)?ga(xs(Se.maxWait)||0,oe):an,ra="trailing"in Se?!!Se.trailing:ra),fa.cancel=function(){qn!==r&&uu(qn),ur=0,st=hr=Ct=qn=r},fa.flush=function(){return qn===r?Rn:xi(Fs())},fa}var cp=wo(function(X,oe){return Fu(X,1,oe)}),Du=wo(function(X,oe,Se){return Fu(X,xs(oe)||0,Se)});function Sd(X,oe){if(typeof X!="function"||oe!=null&&typeof oe!="function")throw new ki(n);var Se=function(){var st=arguments,Ct=oe?oe.apply(this,st):st[0],an=Se.cache;if(an.has(Ct))return an.get(Ct);var Rn=X.apply(this,st);return Se.cache=an.set(Ct,Rn)||an,Rn};return Se.cache=new(Sd.Cache||xo),Se}function Hd(X){if(typeof X!="function")throw new ki(n);return function(){var oe=arguments;switch(oe.length){case 0:return!X.call(this);case 1:return!X.call(this,oe[0]);case 2:return!X.call(this,oe[0],oe[1]);case 3:return!X.call(this,oe[0],oe[1],oe[2])}return!X.apply(this,oe)}}Sd.Cache=xo;var kp=ip(function(X,oe){var Se=(oe=oe.length==1&&ro(oe[0])?Ua(oe[0],Kt(gr())):Ua(So(oe,1),Kt(gr()))).length;return wo(function(st){for(var Ct=-1,an=zo(st.length,Se);++Ct<an;)st[Ct]=oe[Ct].call(this,st[Ct]);return La(X,this,st)})}),dh=wo(function(X,oe){var Se=de(oe,ir(dh));return cn(X,l,r,oe,Se)}),dp=wo(function(X,oe){var Se=de(oe,ir(dp));return cn(X,v,r,oe,Se)}),hp=nr(function(X,oe){return cn(X,w,r,r,r,oe)});function vl(X,oe){return X===oe||X!=X&&oe!=oe}var Ic=Ut(Fa),hh=Ut(function(X,oe){return X>=oe}),_l=Hc(function(){return arguments}())?Hc:function(X){return Ws(X)&&Yi.call(X,"callee")&&!as.call(X,"callee")},ro=rt.isArray,Nh=sr?Kt(sr):function(X){return Ws(X)&&ks(X)==Te};function du(X){return X!=null&&Ed(X.length)&&!Au(X)}function Hs(X){return Ws(X)&&du(X)}var Pc=il||Wh,ph=Br?Kt(Br):function(X){return Ws(X)&&ks(X)==G};function Vh(X){if(!Ws(X))return!1;var oe=ks(X);return oe==V||oe=="[object DOMException]"||typeof X.message=="string"&&typeof X.name=="string"&&!Td(X)}function Au(X){if(!fs(X))return!1;var oe=ks(X);return oe==ne||oe==W||oe=="[object AsyncFunction]"||oe=="[object Proxy]"}function zh(X){return typeof X=="number"&&X==so(X)}function Ed(X){return typeof X=="number"&&X>-1&&X%1==0&&X<=b}function fs(X){var oe=typeof X;return X!=null&&(oe=="object"||oe=="function")}function Ws(X){return X!=null&&typeof X=="object"}var pp=Pr?Kt(Pr):function(X){return Ws(X)&&ui(X)==B};function Rc(X){return typeof X=="number"||Ws(X)&&ks(X)==q}function Td(X){if(!Ws(X)||ks(X)!=D)return!1;var oe=Ko(X);if(oe===null)return!0;var Se=Yi.call(oe,"constructor")&&oe.constructor;return typeof Se=="function"&&Se instanceof Se&&Da.call(Se)==Oo}var Wd=Mi?Kt(Mi):function(X){return Ws(X)&&ks(X)==re},fh=vi?Kt(vi):function(X){return Ws(X)&&ui(X)==le};function Ip(X){return typeof X=="string"||!ro(X)&&Ws(X)&&ks(X)==fe}function oc(X){return typeof X=="symbol"||Ws(X)&&ks(X)==me}var Yd=Sa?Kt(Sa):function(X){return Ws(X)&&Ed(X.length)&&!!Ai[ks(X)]},Uu=Ut(Wc),Pf=Ut(function(X,oe){return X<=oe});function Lc(X){if(!X)return[];if(du(X))return Ip(X)?Qe(X):Gs(X);if(Jo&&X[Jo])return function(Se){for(var st,Ct=[];!(st=Se.next()).done;)Ct.push(st.value);return Ct}(X[Jo]());var oe=ui(X);return(oe==B?$o:oe==le?Me:Fc)(X)}function sc(X){return X?(X=xs(X))===_||X===-1/0?17976931348623157e292*(X<0?-1:1):X==X?X:0:X===0?X:0}function so(X){var oe=sc(X),Se=oe%1;return oe==oe?Se?oe-Se:oe:0}function $u(X){return X?Zl(so(X),0,I):0}function xs(X){if(typeof X=="number")return X;if(oc(X))return E;if(fs(X)){var oe=typeof X.valueOf=="function"?X.valueOf():X;X=fs(oe)?oe+"":oe}if(typeof X!="string")return X===0?X:+X;X=Al(X);var Se=yn.test(X);return Se||Kr.test(X)?ja(X.slice(2),Se?2:8):sn.test(X)?E:+X}function nd(X){return Ro(X,Ul(X))}function ms(X){return X==null?"":Jl(X)}var mh=rc(function(X,oe){if(js(oe)||du(oe))Ro(oe,al(oe),X);else for(var Se in oe)Yi.call(oe,Se)&&qi(X,Se,oe[Se])}),Pp=rc(function(X,oe){Ro(oe,Ul(oe),X)}),Gh=rc(function(X,oe,Se,st){Ro(oe,Ul(oe),X,st)}),Dd=rc(function(X,oe,Se,st){Ro(oe,al(oe),X,st)}),Rp=nr(Ku),rd=wo(function(X,oe){X=Sn(X);var Se=-1,st=oe.length,Ct=st>2?oe[2]:r;for(Ct&&Xi(oe[0],oe[1],Ct)&&(st=1);++Se<st;)for(var an=oe[Se],Rn=Ul(an),qn=-1,hr=Rn.length;++qn<hr;){var ur=Rn[qn],jr=X[ur];(jr===r||vl(jr,na[ur])&&!Yi.call(X,ur))&&(X[ur]=an[ur])}return X}),rf=wo(function(X){return X.push(r,Cn),La(qd,r,X)});function jh(X,oe,Se){var st=X==null?r:Vl(X,oe);return st===r?Se:st}function Ad(X,oe){return X!=null&&Fi(X,oe,Vd)}var vc=Xe(function(X,oe,Se){oe!=null&&typeof oe.toString!="function"&&(oe=Oa.call(oe)),X[oe]=Se},mu(Rl)),af=Xe(function(X,oe,Se){oe!=null&&typeof oe.toString!="function"&&(oe=Oa.call(oe)),Yi.call(X,oe)?X[oe].push(Se):X[oe]=[Se]},gr),Uh=wo(Ks);function al(X){return du(X)?Uo(X):Js(X)}function Ul(X){return du(X)?Uo(X,!0):function(oe){if(!fs(oe))return function(an){var Rn=[];if(an!=null)for(var qn in Sn(an))Rn.push(qn);return Rn}(oe);var Se=js(oe),st=[];for(var Ct in oe)(Ct!="constructor"||!Se&&Yi.call(oe,Ct))&&st.push(Ct);return st}(X)}var id=rc(function(X,oe,Se){hc(X,oe,Se)}),qd=rc(function(X,oe,Se,st){hc(X,oe,Se,st)}),Xd=nr(function(X,oe){var Se={};if(X==null)return Se;var st=!1;oe=Ua(oe,function(an){return an=Gu(an,X),st||(st=an.length>1),an}),Ro(X,xr(X),Se),st&&(Se=Kl(Se,7,un));for(var Ct=oe.length;Ct--;)Ih(Se,oe[Ct]);return Se}),ad=nr(function(X,oe){return X==null?{}:function(Se,st){return Dh(Se,st,function(Ct,an){return Ad(Se,an)})}(X,oe)});function fp(X,oe){if(X==null)return{};var Se=Ua(xr(X),function(st){return[st]});return oe=gr(oe),Dh(X,Se,function(st,Ct){return oe(st,Ct[0])})}var $h=tn(al),Oc=tn(Ul);function Fc(X){return X==null?[]:Ml(X,al(X))}var of=Z(function(X,oe,Se){return oe=oe.toLowerCase(),X+(Se?gh(oe):oe)});function gh(X){return Zd(ms(X).toLowerCase())}function kd(X){return(X=ms(X))&&X.replace(_n,xa).replace(ns,"")}var Pl=Z(function(X,oe,Se){return X+(Se?"-":"")+oe.toLowerCase()}),mp=Z(function(X,oe,Se){return X+(Se?" ":"")+oe.toLowerCase()}),Lp=k("toLowerCase"),gp=Z(function(X,oe,Se){return X+(Se?"_":"")+oe.toLowerCase()}),yp=Z(function(X,oe,Se){return X+(Se?" ":"")+Zd(oe)}),ku=Z(function(X,oe,Se){return X+(Se?" ":"")+oe.toUpperCase()}),Zd=k("toUpperCase");function Id(X,oe,Se){return X=ms(X),(oe=Se?r:oe)===r?function(st){return va.test(st)}(X)?function(st){return st.match(qr)||[]}(X):function(st){return st.match(pt)||[]}(X):X.match(oe)||[]}var od=wo(function(X,oe){try{return La(X,r,oe)}catch(Se){return Vh(Se)?Se:new Mt(Se)}}),yh=nr(function(X,oe){return ko(oe,function(Se){Se=jl(Se),Nl(X,Se,Cd(X[Se],X))}),X});function mu(X){return function(){return X}}var nu=_e(),vp=_e(!0);function Rl(X){return X}function vh(X){return lu(typeof X=="function"?X:Kl(X,1))}var _p=wo(function(X,oe){return function(Se){return Ks(Se,X,oe)}}),om=wo(function(X,oe){return function(Se){return Ks(X,Se,oe)}});function Ys(X,oe,Se){var st=al(oe),Ct=Nu(oe,st);Se!=null||fs(oe)&&(Ct.length||!st.length)||(Se=oe,oe=X,X=this,Ct=Nu(oe,al(oe)));var an=!(fs(Se)&&"chain"in Se&&!Se.chain),Rn=Au(X);return ko(Ct,function(qn){var hr=oe[qn];X[qn]=hr,Rn&&(X.prototype[qn]=function(){var ur=this.__chain__;if(an||ur){var jr=X(this.__wrapped__);return(jr.__actions__=Gs(this.__actions__)).push({func:hr,args:arguments,thisArg:X}),jr.__chain__=ur,jr}return hr.apply(X,Vs([this.value()],arguments))})}),X}function Iu(){}var _h=lt(Ua),Hh=lt(Co),Bc=lt(Ol);function xl(X){return Mo(X)?_o(jl(X)):function(oe){return function(Se){return Vl(Se,oe)}}(X)}var Op=Rt(),Fp=Rt(!0);function Kd(){return[]}function Wh(){return!1}var xh,Bp=nt(function(X,oe){return X+oe},0),Yh=It("ceil"),Hu=nt(function(X,oe){return X/oe},1),sm=It("floor"),_c=nt(function(X,oe){return X*oe},1),sf=It("round"),dl=nt(function(X,oe){return X-oe},0);return St.after=function(X,oe){if(typeof oe!="function")throw new ki(n);return X=so(X),function(){if(--X<1)return oe.apply(this,arguments)}},St.ary=Md,St.assign=mh,St.assignIn=Pp,St.assignInWith=Gh,St.assignWith=Dd,St.at=Rp,St.before=Eu,St.bind=Cd,St.bindAll=yh,St.bindKey=Tu,St.castArray=function(){if(!arguments.length)return[];var X=arguments[0];return ro(X)?X:[X]},St.chain=ef,St.chunk=function(X,oe,Se){oe=(Se?Xi(X,oe,Se):oe===r)?1:ga(so(oe),0);var st=X==null?0:X.length;if(!st||oe<1)return[];for(var Ct=0,an=0,Rn=rt(Ds(st/oe));Ct<st;)Rn[an++]=Cl(X,Ct,Ct+=oe);return Rn},St.compact=function(X){for(var oe=-1,Se=X==null?0:X.length,st=0,Ct=[];++oe<Se;){var an=X[oe];an&&(Ct[st++]=an)}return Ct},St.concat=function(){var X=arguments.length;if(!X)return[];for(var oe=rt(X-1),Se=arguments[0],st=X;st--;)oe[st-1]=arguments[st];return Vs(ro(Se)?Gs(Se):[Se],So(oe,1))},St.cond=function(X){var oe=X==null?0:X.length,Se=gr();return X=oe?Ua(X,function(st){if(typeof st[1]!="function")throw new ki(n);return[Se(st[0]),st[1]]}):[],wo(function(st){for(var Ct=-1;++Ct<oe;){var an=X[Ct];if(La(an[0],this,st))return La(an[1],this,st)}})},St.conforms=function(X){return function(oe){var Se=al(oe);return function(st){return rh(st,oe,Se)}}(Kl(X,1))},St.constant=mu,St.countBy=Bh,St.create=function(X,oe){var Se=zi(X);return oe==null?Se:Zu(Se,oe)},St.curry=function X(oe,Se,st){var Ct=cn(oe,8,r,r,r,r,r,Se=st?r:Se);return Ct.placeholder=X.placeholder,Ct},St.curryRight=function X(oe,Se,st){var Ct=cn(oe,c,r,r,r,r,r,Se=st?r:Se);return Ct.placeholder=X.placeholder,Ct},St.debounce=yl,St.defaults=rd,St.defaultsDeep=rf,St.defer=cp,St.delay=Du,St.difference=xd,St.differenceBy=Dc,St.differenceWith=yc,St.drop=function(X,oe,Se){var st=X==null?0:X.length;return st?Cl(X,(oe=Se||oe===r?1:so(oe))<0?0:oe,st):[]},St.dropRight=function(X,oe,Se){var st=X==null?0:X.length;return st?Cl(X,0,(oe=st-(oe=Se||oe===r?1:so(oe)))<0?0:oe):[]},St.dropRightWhile=function(X,oe){return X&&X.length?zu(X,gr(oe,3),!0,!0):[]},St.dropWhile=function(X,oe){return X&&X.length?zu(X,gr(oe,3),!0):[]},St.fill=function(X,oe,Se,st){var Ct=X==null?0:X.length;return Ct?(Se&&typeof Se!="number"&&Xi(X,oe,Se)&&(Se=0,st=Ct),function(an,Rn,qn,hr){var ur=an.length;for((qn=so(qn))<0&&(qn=-qn>ur?0:ur+qn),(hr=hr===r||hr>ur?ur:so(hr))<0&&(hr+=ur),hr=qn>hr?0:$u(hr);qn<hr;)an[qn++]=Rn;return an}(X,oe,Se,st)):[]},St.filter=function(X,oe){return(ro(X)?gs:Ju)(X,gr(oe,3))},St.flatMap=function(X,oe){return So(tu(X,oe),1)},St.flatMapDeep=function(X,oe){return So(tu(X,oe),_)},St.flatMapDepth=function(X,oe,Se){return Se=Se===r?1:so(Se),So(tu(X,oe),Se)},St.flatten=Ac,St.flattenDeep=function(X){return X!=null&&X.length?So(X,_):[]},St.flattenDepth=function(X,oe){return X!=null&&X.length?So(X,oe=oe===r?1:so(oe)):[]},St.flip=function(X){return cn(X,512)},St.flow=nu,St.flowRight=vp,St.fromPairs=function(X){for(var oe=-1,Se=X==null?0:X.length,st={};++oe<Se;){var Ct=X[oe];st[Ct[0]]=Ct[1]}return st},St.functions=function(X){return X==null?[]:Nu(X,al(X))},St.functionsIn=function(X){return X==null?[]:Nu(X,Ul(X))},St.groupBy=Qs,St.initial=function(X){return X!=null&&X.length?Cl(X,0,-1):[]},St.intersection=lh,St.intersectionBy=uh,St.intersectionWith=ap,St.invert=vc,St.invertBy=af,St.invokeMap=za,St.iteratee=vh,St.keyBy=kc,St.keys=al,St.keysIn=Ul,St.map=tu,St.mapKeys=function(X,oe){var Se={};return oe=gr(oe,3),Qu(X,function(st,Ct,an){Nl(Se,oe(st,Ct,an),st)}),Se},St.mapValues=function(X,oe){var Se={};return oe=gr(oe,3),Qu(X,function(st,Ct,an){Nl(Se,Ct,oe(st,Ct,an))}),Se},St.matches=function(X){return Ec(Kl(X,1))},St.matchesProperty=function(X,oe){return nc(X,Kl(oe,1))},St.memoize=Sd,St.merge=id,St.mergeWith=qd,St.method=_p,St.methodOf=om,St.mixin=Ys,St.negate=Hd,St.nthArg=function(X){return X=so(X),wo(function(oe){return Yc(oe,X)})},St.omit=Xd,St.omitBy=function(X,oe){return fp(X,Hd(gr(oe)))},St.once=function(X){return Eu(2,X)},St.orderBy=function(X,oe,Se,st){return X==null?[]:(ro(oe)||(oe=oe==null?[]:[oe]),ro(Se=st?r:Se)||(Se=Se==null?[]:[Se]),Wi(X,oe,Se))},St.over=_h,St.overArgs=kp,St.overEvery=Hh,St.overSome=Bc,St.partial=dh,St.partialRight=dp,St.partition=Go,St.pick=ad,St.pickBy=fp,St.property=xl,St.propertyOf=function(X){return function(oe){return X==null?r:Vl(X,oe)}},St.pull=jd,St.pullAll=Lh,St.pullAllBy=function(X,oe,Se){return X&&X.length&&oe&&oe.length?qc(X,oe,gr(Se,2)):X},St.pullAllWith=function(X,oe,Se){return X&&X.length&&oe&&oe.length?qc(X,oe,r,Se):X},St.pullAt=Jp,St.range=Op,St.rangeRight=Fp,St.rearg=hp,St.reject=function(X,oe){return(ro(X)?gs:Ju)(X,Hd(gr(oe,3)))},St.remove=function(X,oe){var Se=[];if(!X||!X.length)return Se;var st=-1,Ct=[],an=X.length;for(oe=gr(oe,3);++st<an;){var Rn=X[st];oe(Rn,st,X)&&(Se.push(Rn),Ct.push(st))}return Xc(X,Ct),Se},St.rest=function(X,oe){if(typeof X!="function")throw new ki(n);return wo(X,oe=oe===r?oe:so(oe))},St.reverse=op,St.sampleSize=function(X,oe,Se){return oe=(Se?Xi(X,oe,Se):oe===r)?1:so(oe),(ro(X)?function(st,Ct){return ps(Gs(st),Zl(Ct,0,st.length))}:function(st,Ct){var an=Fc(st);return ps(an,Zl(Ct,0,an.length))})(X,oe)},St.set=function(X,oe,Se){return X==null?X:zd(X,oe,Se)},St.setWith=function(X,oe,Se,st){return st=typeof st=="function"?st:r,X==null?X:zd(X,oe,Se,st)},St.shuffle=function(X){return(ro(X)?function(oe){return ps(Gs(oe))}:function(oe){return ps(Fc(oe))})(X)},St.slice=function(X,oe,Se){var st=X==null?0:X.length;return st?(Se&&typeof Se!="number"&&Xi(X,oe,Se)?(oe=0,Se=st):(oe=oe==null?0:so(oe),Se=Se===r?st:so(Se)),Cl(X,oe,Se)):[]},St.sortBy=up,St.sortedUniq=function(X){return X&&X.length?kh(X):[]},St.sortedUniqBy=function(X,oe){return X&&X.length?kh(X,gr(oe,2)):[]},St.split=function(X,oe,Se){return Se&&typeof Se!="number"&&Xi(X,oe,Se)&&(oe=Se=r),(Se=Se===r?I:Se>>>0)?(X=ms(X))&&(typeof oe=="string"||oe!=null&&!Wd(oe))&&!(oe=Jl(oe))&&Ki(X)?pc(Qe(X),0,Se):X.split(oe,Se):[]},St.spread=function(X,oe){if(typeof X!="function")throw new ki(n);return oe=oe==null?0:ga(so(oe),0),wo(function(Se){var st=Se[oe],Ct=pc(Se,0,oe);return st&&Vs(Ct,st),La(X,this,Ct)})},St.tail=function(X){var oe=X==null?0:X.length;return oe?Cl(X,1,oe):[]},St.take=function(X,oe,Se){return X&&X.length?Cl(X,0,(oe=Se||oe===r?1:so(oe))<0?0:oe):[]},St.takeRight=function(X,oe,Se){var st=X==null?0:X.length;return st?Cl(X,(oe=st-(oe=Se||oe===r?1:so(oe)))<0?0:oe,st):[]},St.takeRightWhile=function(X,oe){return X&&X.length?zu(X,gr(oe,3),!1,!0):[]},St.takeWhile=function(X,oe){return X&&X.length?zu(X,gr(oe,3)):[]},St.tap=function(X,oe){return oe(X),X},St.throttle=function(X,oe,Se){var st=!0,Ct=!0;if(typeof X!="function")throw new ki(n);return fs(Se)&&(st="leading"in Se?!!Se.leading:st,Ct="trailing"in Se?!!Se.trailing:Ct),yl(X,oe,{leading:st,maxWait:oe,trailing:Ct})},St.thru=lp,St.toArray=Lc,St.toPairs=$h,St.toPairsIn=Oc,St.toPath=function(X){return ro(X)?Ua(X,jl):oc(X)?[X]:Gs(cu(ms(X)))},St.toPlainObject=nd,St.transform=function(X,oe,Se){var st=ro(X),Ct=st||Pc(X)||Yd(X);if(oe=gr(oe,4),Se==null){var an=X&&X.constructor;Se=Ct?st?new an:[]:fs(X)&&Au(an)?zi(Ko(X)):{}}return(Ct?ko:Qu)(X,function(Rn,qn,hr){return oe(Se,Rn,qn,hr)}),Se},St.unary=function(X){return Md(X,1)},St.union=If,St.unionBy=sp,St.unionWith=Oh,St.uniq=function(X){return X&&X.length?Vu(X):[]},St.uniqBy=function(X,oe){return X&&X.length?Vu(X,gr(oe,2)):[]},St.uniqWith=function(X,oe){return oe=typeof oe=="function"?oe:r,X&&X.length?Vu(X,r,oe):[]},St.unset=function(X,oe){return X==null||Ih(X,oe)},St.unzip=ed,St.unzipWith=Ud,St.update=function(X,oe,Se){return X==null?X:Ph(X,oe,oh(Se))},St.updateWith=function(X,oe,Se,st){return st=typeof st=="function"?st:r,X==null?X:Ph(X,oe,oh(Se),st)},St.values=Fc,St.valuesIn=function(X){return X==null?[]:Ml(X,Ul(X))},St.without=ac,St.words=Id,St.wrap=function(X,oe){return dh(oh(oe),X)},St.xor=Su,St.xorBy=wd,St.xorWith=$d,St.zip=td,St.zipObject=function(X,oe){return np(X||[],oe||[],qi)},St.zipObjectDeep=function(X,oe){return np(X||[],oe||[],zd)},St.zipWith=Qp,St.entries=$h,St.entriesIn=Oc,St.extend=Pp,St.extendWith=Gh,Ys(St,St),St.add=Bp,St.attempt=od,St.camelCase=of,St.capitalize=gh,St.ceil=Yh,St.clamp=function(X,oe,Se){return Se===r&&(Se=oe,oe=r),Se!==r&&(Se=(Se=xs(Se))==Se?Se:0),oe!==r&&(oe=(oe=xs(oe))==oe?oe:0),Zl(xs(X),oe,Se)},St.clone=function(X){return Kl(X,4)},St.cloneDeep=function(X){return Kl(X,5)},St.cloneDeepWith=function(X,oe){return Kl(X,5,oe=typeof oe=="function"?oe:r)},St.cloneWith=function(X,oe){return Kl(X,4,oe=typeof oe=="function"?oe:r)},St.conformsTo=function(X,oe){return oe==null||rh(X,oe,al(oe))},St.deburr=kd,St.defaultTo=function(X,oe){return X==null||X!=X?oe:X},St.divide=Hu,St.endsWith=function(X,oe,Se){X=ms(X),oe=Jl(oe);var st=X.length,Ct=Se=Se===r?st:Zl(so(Se),0,st);return(Se-=oe.length)>=0&&X.slice(Se,Ct)==oe},St.eq=vl,St.escape=function(X){return(X=ms(X))&&ze.test(X)?X.replace(Lt,Ea):X},St.escapeRegExp=function(X){return(X=ms(X))&&$n.test(X)?X.replace(on,"\\$&"):X},St.every=function(X,oe,Se){var st=ro(X)?Co:gd;return Se&&Xi(X,oe,Se)&&(oe=r),st(X,gr(oe,3))},St.find=ch,St.findIndex=bd,St.findKey=function(X,oe){return Ta(X,gr(oe,3),Qu)},St.findLast=ss,St.findLastIndex=Cu,St.findLastKey=function(X,oe){return Ta(X,gr(oe,3),Nd)},St.floor=sm,St.forEach=tf,St.forEachRight=nf,St.forIn=function(X,oe){return X==null?X:kl(X,gr(oe,3),Ul)},St.forInRight=function(X,oe){return X==null?X:hs(X,gr(oe,3),Ul)},St.forOwn=function(X,oe){return X&&Qu(X,gr(oe,3))},St.forOwnRight=function(X,oe){return X&&Nd(X,gr(oe,3))},St.get=jh,St.gt=Ic,St.gte=hh,St.has=function(X,oe){return X!=null&&Fi(X,oe,Si)},St.hasIn=Ad,St.head=Qc,St.identity=Rl,St.includes=function(X,oe,Se,st){X=du(X)?X:Fc(X),Se=Se&&!st?so(Se):0;var Ct=X.length;return Se<0&&(Se=ga(Ct+Se,0)),Ip(X)?Se<=Ct&&X.indexOf(oe,Se)>-1:!!Ct&&Vo(X,oe,Se)>-1},St.indexOf=function(X,oe,Se){var st=X==null?0:X.length;if(!st)return-1;var Ct=Se==null?0:so(Se);return Ct<0&&(Ct=ga(st+Ct,0)),Vo(X,oe,Ct)},St.inRange=function(X,oe,Se){return oe=sc(oe),Se===r?(Se=oe,oe=0):Se=sc(Se),function(st,Ct,an){return st>=zo(Ct,an)&&st<ga(Ct,an)}(X=xs(X),oe,Se)},St.invoke=Uh,St.isArguments=_l,St.isArray=ro,St.isArrayBuffer=Nh,St.isArrayLike=du,St.isArrayLikeObject=Hs,St.isBoolean=function(X){return X===!0||X===!1||Ws(X)&&ks(X)==z},St.isBuffer=Pc,St.isDate=ph,St.isElement=function(X){return Ws(X)&&X.nodeType===1&&!Td(X)},St.isEmpty=function(X){if(X==null)return!0;if(du(X)&&(ro(X)||typeof X=="string"||typeof X.splice=="function"||Pc(X)||Yd(X)||_l(X)))return!X.length;var oe=ui(X);if(oe==B||oe==le)return!X.size;if(js(X))return!Js(X).length;for(var Se in X)if(Yi.call(X,Se))return!1;return!0},St.isEqual=function(X,oe){return yd(X,oe)},St.isEqualWith=function(X,oe,Se){var st=(Se=typeof Se=="function"?Se:r)?Se(X,oe):r;return st===r?yd(X,oe,r,Se):!!st},St.isError=Vh,St.isFinite=function(X){return typeof X=="number"&&zs(X)},St.isFunction=Au,St.isInteger=zh,St.isLength=Ed,St.isMap=pp,St.isMatch=function(X,oe){return X===oe||Th(X,oe,Oi(oe))},St.isMatchWith=function(X,oe,Se){return Se=typeof Se=="function"?Se:r,Th(X,oe,Oi(oe),Se)},St.isNaN=function(X){return Rc(X)&&X!=+X},St.isNative=function(X){if(Gl(X))throw new Mt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return zl(X)},St.isNil=function(X){return X==null},St.isNull=function(X){return X===null},St.isNumber=Rc,St.isObject=fs,St.isObjectLike=Ws,St.isPlainObject=Td,St.isRegExp=Wd,St.isSafeInteger=function(X){return zh(X)&&X>=-9007199254740991&&X<=b},St.isSet=fh,St.isString=Ip,St.isSymbol=oc,St.isTypedArray=Yd,St.isUndefined=function(X){return X===r},St.isWeakMap=function(X){return Ws(X)&&ui(X)==ye},St.isWeakSet=function(X){return Ws(X)&&ks(X)=="[object WeakSet]"},St.join=function(X,oe){return X==null?"":Xl.call(X,oe)},St.kebabCase=Pl,St.last=fl,St.lastIndexOf=function(X,oe,Se){var st=X==null?0:X.length;if(!st)return-1;var Ct=st;return Se!==r&&(Ct=(Ct=so(Se))<0?ga(st+Ct,0):zo(Ct,st-1)),oe==oe?function(an,Rn,qn){for(var hr=Ct+1;hr--;)if(an[hr]===Rn)return hr;return hr}(X,oe):Lr(X,xu,Ct,!0)},St.lowerCase=mp,St.lowerFirst=Lp,St.lt=Uu,St.lte=Pf,St.max=function(X){return X&&X.length?dc(X,Rl,Fa):r},St.maxBy=function(X,oe){return X&&X.length?dc(X,gr(oe,2),Fa):r},St.mean=function(X){return vo(X,Rl)},St.meanBy=function(X,oe){return vo(X,gr(oe,2))},St.min=function(X){return X&&X.length?dc(X,Rl,Wc):r},St.minBy=function(X,oe){return X&&X.length?dc(X,gr(oe,2),Wc):r},St.stubArray=Kd,St.stubFalse=Wh,St.stubObject=function(){return{}},St.stubString=function(){return""},St.stubTrue=function(){return!0},St.multiply=_c,St.nth=function(X,oe){return X&&X.length?Yc(X,so(oe)):r},St.noConflict=function(){return Ra._===this&&(Ra._=Ls),this},St.noop=Iu,St.now=Fs,St.pad=function(X,oe,Se){X=ms(X);var st=(oe=so(oe))?qe(X):0;if(!oe||st>=oe)return X;var Ct=(oe-st)/2;return yt(os(Ct),Se)+X+yt(Ds(Ct),Se)},St.padEnd=function(X,oe,Se){X=ms(X);var st=(oe=so(oe))?qe(X):0;return oe&&st<oe?X+yt(oe-st,Se):X},St.padStart=function(X,oe,Se){X=ms(X);var st=(oe=so(oe))?qe(X):0;return oe&&st<oe?yt(oe-st,Se)+X:X},St.parseInt=function(X,oe,Se){return Se||oe==null?oe=0:oe&&(oe=+oe),ds(ms(X).replace(Zt,""),oe||0)},St.random=function(X,oe,Se){if(Se&&typeof Se!="boolean"&&Xi(X,oe,Se)&&(oe=Se=r),Se===r&&(typeof oe=="boolean"?(Se=oe,oe=r):typeof X=="boolean"&&(Se=X,X=r)),X===r&&oe===r?(X=0,oe=1):(X=sc(X),oe===r?(oe=X,X=0):oe=sc(oe)),X>oe){var st=X;X=oe,oe=st}if(Se||X%1||oe%1){var Ct=pu();return zo(X+Ct*(oe-X+eo("1e-"+((Ct+"").length-1))),oe)}return bo(X,oe)},St.reduce=function(X,oe,Se){var st=ro(X)?jo:Fl,Ct=arguments.length<3;return st(X,gr(oe,4),Se,Ct,Bu)},St.reduceRight=function(X,oe,Se){var st=ro(X)?ys:Fl,Ct=arguments.length<3;return st(X,gr(oe,4),Se,Ct,Bd)},St.repeat=function(X,oe,Se){return oe=(Se?Xi(X,oe,Se):oe===r)?1:so(oe),Mu(ms(X),oe)},St.replace=function(){var X=arguments,oe=ms(X[0]);return X.length<3?oe:oe.replace(X[1],X[2])},St.result=function(X,oe,Se){var st=-1,Ct=(oe=Gu(oe,X)).length;for(Ct||(Ct=1,X=r);++st<Ct;){var an=X==null?r:X[jl(oe[st])];an===r&&(st=Ct,an=Se),X=Au(an)?an.call(X):an}return X},St.round=sf,St.runInContext=be,St.sample=function(X){return(ro(X)?cc:function(oe){return cc(Fc(oe))})(X)},St.size=function(X){if(X==null)return 0;if(du(X))return Ip(X)?qe(X):X.length;var oe=ui(X);return oe==B||oe==le?X.size:Js(X).length},St.snakeCase=gp,St.some=function(X,oe,Se){var st=ro(X)?Ol:Ah;return Se&&Xi(X,oe,Se)&&(oe=r),st(X,gr(oe,3))},St.sortedIndex=function(X,oe){return ah(X,oe)},St.sortedIndexBy=function(X,oe,Se){return Zc(X,oe,gr(Se,2))},St.sortedIndexOf=function(X,oe){var Se=X==null?0:X.length;if(Se){var st=ah(X,oe);if(st<Se&&vl(X[st],oe))return st}return-1},St.sortedLastIndex=function(X,oe){return ah(X,oe,!0)},St.sortedLastIndexBy=function(X,oe,Se){return Zc(X,oe,gr(Se,2),!0)},St.sortedLastIndexOf=function(X,oe){if(X!=null&&X.length){var Se=ah(X,oe,!0)-1;if(vl(X[Se],oe))return Se}return-1},St.startCase=yp,St.startsWith=function(X,oe,Se){return X=ms(X),Se=Se==null?0:Zl(so(Se),0,X.length),oe=Jl(oe),X.slice(Se,Se+oe.length)==oe},St.subtract=dl,St.sum=function(X){return X&&X.length?Zo(X,Rl):0},St.sumBy=function(X,oe){return X&&X.length?Zo(X,gr(oe,2)):0},St.template=function(X,oe,Se){var st=St.templateSettings;Se&&Xi(X,oe,Se)&&(oe=r),X=ms(X),oe=Gh({},oe,st,pn);var Ct,an,Rn=Gh({},oe.imports,st.imports,pn),qn=al(Rn),hr=Ml(Rn,qn),ur=0,jr=oe.interpolate||xn,ci="__p += '",ra=Gn((oe.escape||xn).source+"|"+jr.source+"|"+(jr===Ft?ct:xn).source+"|"+(oe.evaluate||xn).source+"|$","g"),ba="//# sourceURL="+(Yi.call(oe,"sourceURL")?(oe.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rs+"]")+`
  3255. `;X.replace(ra,function(xi,fa,Ui,io,Qa,Ao){return Ui||(Ui=io),ci+=X.slice(ur,Ao).replace(jn,ao),fa&&(Ct=!0,ci+=`' +
  3256. __e(`+fa+`) +
  3257. '`),Qa&&(an=!0,ci+=`';
  3258. `+Qa+`;
  3259. __p += '`),Ui&&(ci+=`' +
  3260. ((__t = (`+Ui+`)) == null ? '' : __t) +
  3261. '`),ur=Ao+xi.length,xi}),ci+=`';
  3262. `;var Pa=Yi.call(oe,"variable")&&oe.variable;if(Pa){if(Fe.test(Pa))throw new Mt("Invalid `variable` option passed into `_.template`")}else ci=`with (obj) {
  3263. `+ci+`
  3264. }
  3265. `;ci=(an?ci.replace(gt,""):ci).replace(dn,"$1").replace(Ze,"$1;"),ci="function("+(Pa||"obj")+`) {
  3266. `+(Pa?"":`obj || (obj = {});
  3267. `)+"var __t, __p = ''"+(Ct?", __e = _.escape":"")+(an?`, __j = Array.prototype.join;
  3268. function print() { __p += __j.call(arguments, '') }
  3269. `:`;
  3270. `)+ci+`return __p
  3271. }`;var Xr=od(function(){return Yt(qn,ba+"return "+ci).apply(r,hr)});if(Xr.source=ci,Vh(Xr))throw Xr;return Xr},St.times=function(X,oe){if((X=so(X))<1||X>b)return[];var Se=I,st=zo(X,I);oe=gr(oe),X-=I;for(var Ct=ql(st,oe);++Se<X;)oe(Se);return Ct},St.toFinite=sc,St.toInteger=so,St.toLength=$u,St.toLower=function(X){return ms(X).toLowerCase()},St.toNumber=xs,St.toSafeInteger=function(X){return X?Zl(so(X),-9007199254740991,b):X===0?X:0},St.toString=ms,St.toUpper=function(X){return ms(X).toUpperCase()},St.trim=function(X,oe,Se){if((X=ms(X))&&(Se||oe===r))return Al(X);if(!X||!(oe=Jl(oe)))return X;var st=Qe(X),Ct=Qe(oe);return pc(st,to(st,Ct),ho(st,Ct)+1).join("")},St.trimEnd=function(X,oe,Se){if((X=ms(X))&&(Se||oe===r))return X.slice(0,J(X)+1);if(!X||!(oe=Jl(oe)))return X;var st=Qe(X);return pc(st,0,ho(st,Qe(oe))+1).join("")},St.trimStart=function(X,oe,Se){if((X=ms(X))&&(Se||oe===r))return X.replace(Zt,"");if(!X||!(oe=Jl(oe)))return X;var st=Qe(X);return pc(st,to(st,Qe(oe))).join("")},St.truncate=function(X,oe){var Se=30,st="...";if(fs(oe)){var Ct="separator"in oe?oe.separator:Ct;Se="length"in oe?so(oe.length):Se,st="omission"in oe?Jl(oe.omission):st}var an=(X=ms(X)).length;if(Ki(X)){var Rn=Qe(X);an=Rn.length}if(Se>=an)return X;var qn=Se-qe(st);if(qn<1)return st;var hr=Rn?pc(Rn,0,qn).join(""):X.slice(0,qn);if(Ct===r)return hr+st;if(Rn&&(qn+=hr.length-qn),Wd(Ct)){if(X.slice(qn).search(Ct)){var ur,jr=hr;for(Ct.global||(Ct=Gn(Ct.source,ms(Ht.exec(Ct))+"g")),Ct.lastIndex=0;ur=Ct.exec(jr);)var ci=ur.index;hr=hr.slice(0,ci===r?qn:ci)}}else if(X.indexOf(Jl(Ct),qn)!=qn){var ra=hr.lastIndexOf(Ct);ra>-1&&(hr=hr.slice(0,ra))}return hr+st},St.unescape=function(X){return(X=ms(X))&&Ne.test(X)?X.replace(at,ae):X},St.uniqueId=function(X){var oe=++Ba;return ms(X)+oe},St.upperCase=ku,St.upperFirst=Zd,St.each=tf,St.eachRight=nf,St.first=Qc,Ys(St,(xh={},Qu(St,function(X,oe){Yi.call(St.prototype,oe)||(xh[oe]=X)}),xh),{chain:!1}),St.VERSION="4.17.21",ko(["bind","bindKey","curry","curryRight","partial","partialRight"],function(X){St[X].placeholder=St}),ko(["drop","take"],function(X,oe){Gi.prototype[X]=function(Se){Se=Se===r?1:ga(so(Se),0);var st=this.__filtered__&&!oe?new Gi(this):this.clone();return st.__filtered__?st.__takeCount__=zo(Se,st.__takeCount__):st.__views__.push({size:zo(Se,I),type:X+(st.__dir__<0?"Right":"")}),st},Gi.prototype[X+"Right"]=function(Se){return this.reverse()[X](Se).reverse()}}),ko(["filter","map","takeWhile"],function(X,oe){var Se=oe+1,st=Se==1||Se==3;Gi.prototype[X]=function(Ct){var an=this.clone();return an.__iteratees__.push({iteratee:gr(Ct,3),type:Se}),an.__filtered__=an.__filtered__||st,an}}),ko(["head","last"],function(X,oe){var Se="take"+(oe?"Right":"");Gi.prototype[X]=function(){return this[Se](1).value()[0]}}),ko(["initial","tail"],function(X,oe){var Se="drop"+(oe?"":"Right");Gi.prototype[X]=function(){return this.__filtered__?new Gi(this):this[Se](1)}}),Gi.prototype.compact=function(){return this.filter(Rl)},Gi.prototype.find=function(X){return this.filter(X).head()},Gi.prototype.findLast=function(X){return this.reverse().find(X)},Gi.prototype.invokeMap=wo(function(X,oe){return typeof X=="function"?new Gi(this):this.map(function(Se){return Ks(Se,X,oe)})}),Gi.prototype.reject=function(X){return this.filter(Hd(gr(X)))},Gi.prototype.slice=function(X,oe){X=so(X);var Se=this;return Se.__filtered__&&(X>0||oe<0)?new Gi(Se):(X<0?Se=Se.takeRight(-X):X&&(Se=Se.drop(X)),oe!==r&&(Se=(oe=so(oe))<0?Se.dropRight(-oe):Se.take(oe-X)),Se)},Gi.prototype.takeRightWhile=function(X){return this.reverse().takeWhile(X).reverse()},Gi.prototype.toArray=function(){return this.take(I)},Qu(Gi.prototype,function(X,oe){var Se=/^(?:filter|find|map|reject)|While$/.test(oe),st=/^(?:head|last)$/.test(oe),Ct=St[st?"take"+(oe=="last"?"Right":""):oe],an=st||/^find/.test(oe);Ct&&(St.prototype[oe]=function(){var Rn=this.__wrapped__,qn=st?[1]:arguments,hr=Rn instanceof Gi,ur=qn[0],jr=hr||ro(Rn),ci=function(fa){var Ui=Ct.apply(St,Vs([fa],qn));return st&&ra?Ui[0]:Ui};jr&&Se&&typeof ur=="function"&&ur.length!=1&&(hr=jr=!1);var ra=this.__chain__,ba=!!this.__actions__.length,Pa=an&&!ra,Xr=hr&&!ba;if(!an&&jr){Rn=Xr?Rn:new Gi(this);var xi=X.apply(Rn,qn);return xi.__actions__.push({func:lp,args:[ci],thisArg:r}),new ni(xi,ra)}return Pa&&Xr?X.apply(this,qn):(xi=this.thru(ci),Pa?st?xi.value()[0]:xi.value():xi)})}),ko(["pop","push","shift","sort","splice","unshift"],function(X){var oe=Ia[X],Se=/^(?:push|sort|unshift)$/.test(X)?"tap":"thru",st=/^(?:pop|shift)$/.test(X);St.prototype[X]=function(){var Ct=arguments;if(st&&!this.__chain__){var an=this.value();return oe.apply(ro(an)?an:[],Ct)}return this[Se](function(Rn){return oe.apply(ro(Rn)?Rn:[],Ct)})}}),Qu(Gi.prototype,function(X,oe){var Se=St[oe];if(Se){var st=Se.name+"";Yi.call(Wt,st)||(Wt[st]=[]),Wt[st].push({name:oe,func:Se})}}),Wt[Ce(r,2).name]=[{name:"wrapper",func:r}],Gi.prototype.clone=function(){var X=new Gi(this.__wrapped__);return X.__actions__=Gs(this.__actions__),X.__dir__=this.__dir__,X.__filtered__=this.__filtered__,X.__iteratees__=Gs(this.__iteratees__),X.__takeCount__=this.__takeCount__,X.__views__=Gs(this.__views__),X},Gi.prototype.reverse=function(){if(this.__filtered__){var X=new Gi(this);X.__dir__=-1,X.__filtered__=!0}else(X=this.clone()).__dir__*=-1;return X},Gi.prototype.value=function(){var X=this.__wrapped__.value(),oe=this.__dir__,Se=ro(X),st=oe<0,Ct=Se?X.length:0,an=function(Ao,wa,Aa){for(var qs=-1,bs=Aa.length;++qs<bs;){var Xs=Aa[qs],Qo=Xs.size;switch(Xs.type){case"drop":Ao+=Qo;break;case"dropRight":wa-=Qo;break;case"take":wa=zo(wa,Ao+Qo);break;case"takeRight":Ao=ga(Ao,wa-Qo)}}return{start:Ao,end:wa}}(0,Ct,this.__views__),Rn=an.start,qn=an.end,hr=qn-Rn,ur=st?qn:Rn-1,jr=this.__iteratees__,ci=jr.length,ra=0,ba=zo(hr,this.__takeCount__);if(!Se||!st&&Ct==hr&&ba==hr)return Ql(X,this.__actions__);var Pa=[];e:for(;hr--&&ra<ba;){for(var Xr=-1,xi=X[ur+=oe];++Xr<ci;){var fa=jr[Xr],Ui=fa.iteratee,io=fa.type,Qa=Ui(xi);if(io==2)xi=Qa;else if(!Qa){if(io==1)continue e;break e}}Pa[ra++]=xi}return Pa},St.prototype.at=Fh,St.prototype.chain=function(){return ef(this)},St.prototype.commit=function(){return new ni(this.value(),this.__chain__)},St.prototype.next=function(){this.__values__===r&&(this.__values__=Lc(this.value()));var X=this.__index__>=this.__values__.length;return{done:X,value:X?r:this.__values__[this.__index__++]}},St.prototype.plant=function(X){for(var oe,Se=this;Se instanceof Fr;){var st=eu(Se);st.__index__=0,st.__values__=r,oe?Ct.__wrapped__=st:oe=st;var Ct=st;Se=Se.__wrapped__}return Ct.__wrapped__=X,oe},St.prototype.reverse=function(){var X=this.__wrapped__;if(X instanceof Gi){var oe=X;return this.__actions__.length&&(oe=new Gi(this)),(oe=oe.reverse()).__actions__.push({func:lp,args:[op],thisArg:r}),new ni(oe,this.__chain__)}return this.thru(op)},St.prototype.toJSON=St.prototype.valueOf=St.prototype.value=function(){return Ql(this.__wrapped__,this.__actions__)},St.prototype.first=St.prototype.head,Jo&&(St.prototype[Jo]=function(){return this}),St}();$t?(($t.exports=ve)._=ve,Ye._=ve):Ra._=ve}).call(commonjsGlobal)}),MrxDbgUiPrBaseReturn;function useCanvasResizeListener(t,e,r=100){return Gr(this,null,function*(){if(!store.state.MxFun)return void console.error("\u8BF7\u5148\u8C03\u7528loadCoreCode\u65B9\u6CD5! ");if(!t)return void console.error("\u8BF7\u786E\u4FDDmxdrawObj\u53C2\u6570 \u662F\u901A\u8FC7\u8C03\u7528MxFun.createMxObject\u7684callback\u56DE\u8C03\u51FD\u6570\u62FF\u5230\u7684mxDraw\u5BF9\u8C61");let n=t;if(!n.isLoadCanvasResizeListene){let o;n.isLoadCanvasResizeListene=!0,t.addEvent("addResizeEvent",c=>{o=c}),yield dynamicImport("element-resize-event-polyfill");let s=createCanvasParent(e);s.addEventListener?s.addEventListener("resize",lodash.throttle(function(c){o&&o()},r),!1):console.log("mx: parentdiv[addEventListener] invalid")}})}class McEdGetPointWorldDrawObject{constructor(){var e;this._McEdGetPointWorldDraw=new((e=store.state.MxFun)===null||e===void 0?void 0:e.getMxJigCmdManager().McEdGetPointWorldDrawObjectClass()),this._get=()=>this._McEdGetPointWorldDraw}drawCircle(e,r){return this._McEdGetPointWorldDraw.drawCircle(e,r)}drawLine(e,r){return this._McEdGetPointWorldDraw.drawLine(e,r)}drawSolid(e,r){this.drawSolid(e,r)}drawRect(e,r){return this._McEdGetPointWorldDraw.drawRect(e,r)}drawEntity(e,r){return this._McEdGetPointWorldDraw.drawEntity(e,r)}drawMcDbEntity(e){return this._McEdGetPointWorldDraw.drawMcDbEntity(e)}drawMcDbLine(e,r,n,o,s,c){return this._McEdGetPointWorldDraw.drawMcDbLine(e,r,n,o,s,c)}drawText(e,r,n,o){return this._McEdGetPointWorldDraw.drawText(e,r,n,o)}setDraw(e){return this._McEdGetPointWorldDraw.setDraw(e)}setColor(e){return this._McEdGetPointWorldDraw.setColor(e)}getColor(){return this._McEdGetPointWorldDraw.getColor()}drawCustomEntity(e,r){return this._McEdGetPointWorldDraw.drawCustomEntity(e,r)}}(function(t){t[t.kCancel=-2]="kCancel",t[t.kNone=-1]="kNone",t[t.kOk=0]="kOk",t[t.kKeyWord=1]="kKeyWord"})(MrxDbgUiPrBaseReturn||(MrxDbgUiPrBaseReturn={}));var MrxDbgUiPrBaseReturn$1=MrxDbgUiPrBaseReturn,MxCursorType,DynamicInputType,DetailedResult,UserInputControls;(function(t){t[t.kNormal=0]="kNormal",t[t.kRect=1]="kRect",t[t.kCross=2]="kCross"})(MxCursorType||(MxCursorType={})),function(t){t[t.kNoInput=0]="kNoInput",t[t.kXYCoordInput=1]="kXYCoordInput",t[t.kDistanceInput=2]="kDistanceInput",t[t.kDynTip=3]="kDynTip",t[t.kAutoInput=4]="kAutoInput",t[t.kAngleInput=5]="kAngleInput"}(DynamicInputType||(DynamicInputType={})),function(t){t[t.kUnknown=1]="kUnknown",t[t.kTouchDownIn=2]="kTouchDownIn",t[t.kTouchUpIn=3]="kTouchUpIn",t[t.kMouseLeftIn=4]="kMouseLeftIn",t[t.kMouseLeftUpIn=5]="kMouseLeftUpIn",t[t.kMouseRightIn=6]="kMouseRightIn",t[t.kKeyIn=7]="kKeyIn",t[t.kCoordIn=8]="kCoordIn",t[t.kNullEnterIn=9]="kNullEnterIn",t[t.kNullSpaceIn=10]="kNullSpaceIn",t[t.kEcsIn=11]="kEcsIn",t[t.kNewCommadIn=12]="kNewCommadIn",t[t.kCodeAbort=13]="kCodeAbort"}(DetailedResult||(DetailedResult={})),function(t){t[t.kGovernedByOrthoMode=1]="kGovernedByOrthoMode",t[t.kNullResponseAccepted=2]="kNullResponseAccepted",t[t.kDontEchoCancelForCtrlC=4]="kDontEchoCancelForCtrlC",t[t.kDontUpdateLastPoint=8]="kDontUpdateLastPoint",t[t.kNoDwgLimitsChecking=16]="kNoDwgLimitsChecking",t[t.kNoZeroResponseAccepted=32]="kNoZeroResponseAccepted",t[t.kNoNegativeResponseAccepted=64]="kNoNegativeResponseAccepted",t[t.kAccept3dCoordinates=128]="kAccept3dCoordinates",t[t.kAcceptMouseUpAsPoint=256]="kAcceptMouseUpAsPoint",t[t.kAnyBlankTerminatesInput=512]="kAnyBlankTerminatesInput",t[t.kInitialBlankTerminatesInput=1024]="kInitialBlankTerminatesInput",t[t.kAcceptOtherInputString=2048]="kAcceptOtherInputString",t[t.kGovernedByUCSDetect=4096]="kGovernedByUCSDetect",t[t.kNoZDirectionOrtho=8192]="kNoZDirectionOrtho",t[t.kSpacesInAccepted=16384]="kSpacesInAccepted"}(UserInputControls||(UserInputControls={}));class MrxDbgUiPrBase{constructor(e){this.imp=e,this.status=MrxDbgUiPrBaseReturn$1.kCancel}keyWords(){return this.imp.keyWords()}setKeyWords(e){return this.imp.setKeyWords(e)}message(){return this.imp.message()}setMessage(e){return this.imp.setMessage(e)}clearLastInputPoint(){this.imp.clearLastInputPoint()}setLastInputPoint(e){this.imp.SetLASTPOINT(e)}keyWordPicked(){return this.imp.keyWordPicked()}isKeyWordPicked(e){return this.status==MrxDbgUiPrBaseReturn$1.kKeyWord&&this.imp.isKeyWordPicked(e)}setUserDraw(e){if(typeof e!="function")return this.imp.setUserDraw(e._get?e._get():e);{const r=new McEdGetPointWorldDrawObject;r.setDraw(e),this.imp.setUserDraw(r._get())}}getDetailedResult(){return this.imp.getDetailedResult()}getStatus(){return this.status}drawReserve(e){return this.imp.drawReserve(e)}setInputToucheType(e){return this.imp.setInputToucheType(e)}getInputToucheType(){return this.imp.getInputToucheType()}setCursorType(e){this.imp.setCursorType(e)}getCursorType(){return this.imp.getCursorType()}setDynamicInputType(e){this.imp.setDynamicInputType(e)}getDynamicInputType(){return this.imp.getDynamicInputType()}isDisableDynInput(){return this.imp.isDisableDynInput()}setDisableDynInput(e){return this.imp.setDisableDynInput(e)}setDisableOsnap(e){return this.imp.setDisableOsnap(e)}isDisableOsnap(){return this.imp.isDisableOsnap()}setDisableDynamicTrace(e){this.imp.setDisableDynamicTrace(e)}isDisableDynamicTrace(){return this.imp.isDisableDynamicTrace()}setDisablePolarAxisTrace(e){this.imp.setDisablePolarAxisTrace(e)}isDisablePolarAxisTrace(){return this.imp.isDisablePolarAxisTrace()}setDisableGridTrace(e){this.imp.setDisableGridTrace(e)}isDisableGridTrace(){return this.imp.isDisableGridTrace()}setDisableOrthoTrace(e){this.imp.setDisableOrthoTrace(e)}isDisableOrthoTrace(){return this.imp.isDisableOrtho()}disableAllTrace(e=!0){this.imp.disableAllTrace(e)}userInputControls(){return this.imp.userInputControls()}setUserInputControls(e){this.imp.setUserInputControls(e)}}class MrxDbgUiPrPoint extends MrxDbgUiPrBase{constructor(){var e;super(new((e=store.state.MxFun)===null||e===void 0?void 0:e.getMxJigCmdManager().getMrxDbgUiPrPointClass()))}value(){return this.imp.value()}getCADValue(){return this.imp.getCADValue()}valueDocCoord(){return this.imp.valueDocCoord()}basePt(){return this.imp.basePt()}setBasePt(e){return this.imp.setBasePt(e)}setUseBasePt(e){return this.imp.setUseBasePt(e)}go(e){let r=this;return e?(r.imp.go(n=>{r.status=n,e(n)}),new Promise((n,o)=>{n(null)})):new Promise((n,o)=>{r.imp.go(s=>{r.status=s,n(s!=0?null:r.imp.value())})})}goWhile(e,r){return this.imp.goWhile(e,r)}abort(e){this.imp.abort(e)}}class MxVueComandLine{constructor(){this.msCmdText="",this.msCmdDisplay="",this.msCmdTip="",this.mxFunObject=void 0,this.mountUpDisplayFun=e=>{this.mUpDisplayFun=e},this.setCmdText=e=>{this.msCmdText=e},this.getCmdText=()=>this.msCmdText,this.getCmdDisplay=()=>this.msCmdDisplay,this.setCmdDisplay=e=>{this.msCmdDisplay=e},this.addCmdDisplay=e=>{this.msCmdDisplay.length>1024?(this.msCmdDisplay=this.msCmdDisplay.substring(this.msCmdDisplay.length-1024,this.msCmdDisplay.length),this.msCmdDisplay=this.msCmdDisplay+e):this.msCmdDisplay=this.msCmdDisplay+e},this.setCmdTip=e=>{this.msCmdTip=e},this.getCmdTip=()=>this.msCmdTip}upDisplay(){const{msCmdTip:e,msCmdDisplay:r,msCmdText:n}=this;this.mUpDisplayFun!=null&&this.mUpDisplayFun({msCmdTip:e,msCmdDisplay:r,msCmdText:n})}}const MxInputType={kNoInput:0,kXYCoordInput:1,kDistanceInput:2,kDynTip:3},MxInputPostionType={kRelative:0,kAbsolutely:1};class MxDynamicInput{constructor(){this.mType=MxInputType.kNoInput,this.mPos=[0,0],this.mTip="",this.mValue1="",this.mValue1Pos=[0,0],this.mValue2="",this.mValue2Pos=[0,0],this.misShow=!1,this.focusIndex=0,this.mOnKeydownEvent=void 0,this.mFocusValue="",this.setFocusValue=e=>{this.mFocusValue=e},this.getFocusValue=()=>this.mFocusValue,this.getFocusIndex=()=>this.focusIndex,this.setFocusIndex=e=>{this.focusIndex=e},this.mountKeydownEvent=e=>{this.mOnKeydownEvent=e},this.onKeydown=e=>{this.mOnKeydownEvent!=null&&this.mOnKeydownEvent(e)},this.setType=e=>{this.mType=e},this.getType=()=>this.mType,this.isShow=()=>this.misShow,this.setPos=e=>{this.mPos=e},this.setTip=e=>{this.mTip=e},this.setValue1=e=>{this.mValue1=e},this.getValue1=()=>this.mValue1,this.setValue1Pos=e=>{this.mValue1Pos=e},this.setValue2=e=>{this.mValue2=e},this.getValue2=()=>this.mValue2,this.setValue2Pos=e=>{this.mValue2Pos=e},this.setShow=e=>{this.misShow=e},this.getData=()=>{if(!this.misShow)return;let e={list:[{value:"",readonly:!0},{value:"",readonly:!1},{value:"",readonly:!1}],pos:this.mPos,postype:MxInputPostionType.kRelative};return this.mType!=MxInputType.kNoInput?(this.mType==MxInputType.kXYCoordInput?(e.list[0].show=!0,e.list[0].value=this.mTip,e.list[0].readonly=!0,e.list[1].show=!0,e.list[1].value=this.mValue1,e.list[1].readonly=!1,e.list[2].show=!0,e.list[2].value=this.mValue2,e.list[2].readonly=!1):this.mType==MxInputType.kDistanceInput?(e.list[0].show=!0,e.list[0].value=this.mTip,e.list[0].readonly=!0,e.list[1].show=!0,e.list[1].value=this.mValue1,e.list[1].readonly=!1,e.list[1].pos=this.mValue1Pos,e.list[2].show=!0,e.list[2].value=this.mValue2,e.list[2].readonly=!1,e.list[2].pos=this.mValue2Pos,e.postype=MxInputPostionType.kAbsolutely):this.mType==MxInputType.kDynTip?(e.list[0].show=!0,e.list[0].value=this.mTip,e.list[0].readonly=!0,e.list[1].show=!1,e.list[2].show=!1):e=void 0,e):void 0}}}const CursorType={kNormal:"Normal",kRect:"Rect",kCross:"Cross",kPan:"Pan"};class MxVueInterface{constructor(){this.mSetCoordFun=void 0,this.mUpdateCursorFun=void 0,this.mOnKeydownEvent=void 0,this.mCursorType=CursorType.kNormal,this.mComandLine=new MxVueComandLine,this.mdynamicInput=new MxDynamicInput,this.mMxEvents={},this.mountSetCoordFun=e=>{this.mSetCoordFun=e},this.mountUpdateCursorFun=e=>{this.mUpdateCursorFun=e},this.mountKeydownEvent=e=>{this.mOnKeydownEvent=e},this.onKeydown=e=>{this.mOnKeydownEvent!=null&&this.mOnKeydownEvent(e)},this.setTipCoord=e=>{this.mSetCoordFun!=null&&this.mSetCoordFun(e)},this.getCursorType=()=>this.mCursorType,this.setCursorType=e=>{if(typeof e=="number")switch(e){case 0:this.mCursorType=CursorType.kNormal;break;case 1:this.mCursorType=CursorType.kRect;break;case 2:this.mCursorType=CursorType.kCross;break;case 3:this.mCursorType=CursorType.kPan}else this.mCursorType=e;this.mUpdateCursorFun!=null&&this.mUpdateCursorFun(this.mCursorType)},this.getTitle=()=>this.mTitle,this.getTopButtonBarData=()=>this.mTopButtonBarData,this.getMenuBarData=()=>this.mMenuBarData,this.getRighButtonBarData=()=>this.mRighButtonBarData,this.getLeftButtonBarData=()=>this.mLeftButtonBarData,this.getTitleButtonBarData=()=>this.mTitleButtonBarData,this.getLayerComboxData=()=>this.mLayerComboxData,this.getColorComboxData=()=>this.mColorComboxData,this.getLinetypeComboxData=()=>this.mLinetypeComboxData,this.getFooterData=()=>this.mFooterData,this.sendStringToExecute=e=>{this.mxFunObject.sendStringToExecute(e)},this.getCmdLine=()=>this.mComandLine,this.getDynamicInput=()=>this.mdynamicInput,this.init=e=>{this.mxFunObject=e},this.OnMxEvent=e=>{const r=e.name;if(r==null)return;const n=this.mMxEvents[r];n!=null&&n(e.param)},this.mountMxEvent=(e,r)=>{this.mMxEvents[e]=r}}}const mxUiData$1=new MxVueInterface;function createReandomId(t=10){return new Number(Math.random().toString().substr(3,t)+Date.now()).toString(36)}class Node$1 extends PubSub$1{constructor(){super(...arguments),this.parent=null,this.children=[]}add(...e){if(e.length>1){for(let n=0;n<e.length;n++){const o=e[n];this.add(o)}return this}const r=e[0];return r===this?(console.error("Node.add \u4E0D\u53EF\u4EE5\u6DFB\u52A0\u5B83\u81EA\u5DF1"),this):(r&&(r.parent!==null&&r.parent.remove(r),r.parent=this,this.children.push(r)),this)}remove(...e){e.length>1&&e.forEach(o=>{this.remove(o)});const r=e[0],n=this.children.indexOf(r);return n!==-1&&(r.parent=null,this.children.splice(n,1)),this}removeFromParent(){const e=this.parent;return e!==null&&e.remove(this),this}clear(){for(let e=0;e<this.children.length;e++)this.children[e].parent=null;return this.children.length=0,this}getNodeByProperty(e,r){if(this[e]===r)return this;for(let n=0,o=this.children.length;n<o;n++){const s=this.children[n].getNodeByProperty(e,r);if(s!==void 0)return s}}getNodesByProperty(e,r){let n=[];this[e]===r&&n.push(this);for(let o=0,s=this.children.length;o<s;o++){const c=this.children[o].getNodesByProperty(e,r);c.length>0&&(n=n.concat(c))}return n}traverse(e){e(this);const r=this.children;for(let n=0,o=r.length;n<o;n++)r[n].traverse(e)}traverseParent(e){this.parent!==null&&e(this.parent)!==!1&&this.parent.traverseParent(e)}emit(e,...r){super.emit(e,...r),this.traverseParent(n=>(n.emit(e,...r),(r==null?void 0:r.isEventBubbling)!==!1&&void 0))}}class RenderOrderNode extends Node$1{constructor(){super(),this.renderOrder=30}setRenderOrder(e){this.renderOrder=e}getRenderOrder(){return this.renderOrder}top(){var e;if(!this.parent)return;let r=Math.max(...(e=this.parent)===null||e===void 0?void 0:e.children.map(({renderOrder:n})=>n));r!==this.renderOrder&&r++,this.setRenderOrder(r)}bottom(){var e;if(!this.parent)return;let r=Math.min(...(e=this.parent)===null||e===void 0?void 0:e.children.map(({renderOrder:n})=>n));r--,this.setRenderOrder(r)}restoreDefaultRenderOrder(){this.renderOrder=30}}class Layer extends RenderOrderNode{constructor(e){super(),this.isLayer=!0,this.getLayerMap=()=>this.getDatabase()._mxDatabase.mapNameToLayer,this.getEntityMap=()=>this.getDatabase()._mxDatabase.mapIdToEntity,this.getRootLayerName=()=>this.getNames()[0]||"0";const r=typeof e=="string"?e:Date.now()+Math.random().toString(36).substr(2,9);Object.defineProperty(this,"name",{get:()=>r,set(){throw new Error("\u4E0D\u80FD\u4FEE\u6539Layer.name\u503C, \u56E0\u4E3A\u5B83\u662FLayer \u5B9E\u4F8B\u7684\u552F\u4E00\u6807\u8BC6")},configurable:!1});let n=this.renderOrder;Object.defineProperty(this,"renderOrder",{get:()=>n,set(o){this.getLayer().group.renderOrder=o,n=o,MxFun.updateDisplay()}})}get visible(){const e=this.getDatabase().getLayer(this.name);return!e||e.getVisible()}set visible(e){this.getDatabase().showLayer(this.name,e),MxFun.updateDisplay()}setVisible(e){this.visible=e}getDatabase(){return this._database||(this._database=MxFun.getCurrentDatabase()),this._database}getLayer(){return this.getDatabase().getLayer(this.name)||this.getDatabase().addLayer(this.name),this.getDatabase().getLayer(this.name)}getCurrentName(){return this.getDatabase()._mxDatabase.curLayer.toString()}callLayerContextFun(e){return Gr(this,null,function*(){const r=this.getCurrentName();this.getDatabase().setCurrentLayer(this.name);const n=yield e();return this.getDatabase().setCurrentLayer(r),n})}getNames(){return Array.from(this.getLayerMap().keys())}getAllEntity(){return Array.from(this.getEntityMap().values()).filter(({userObject:e})=>e.layer===this.name).map(({userObject:e})=>e)}add(...e){var r;const n=this.getLayer();return n.group.renderOrder!==this.renderOrder&&(n.group.renderOrder=this.renderOrder,this.children=this.getAllEntity()),this.parent||(this.parent=MxFun.getCurrentDraw(),(r=this.parent)===null||r===void 0||r.add(this)),super.add(...e),this.callLayerContextFun(()=>{e.forEach(o=>{o&&this.getDatabase().addEntity(o)})}),this}remove(...e){super.remove(...e);let r=this.getRootLayerName();return this.callLayerContextFun(()=>{e.forEach(n=>{n&&(n.setLayer(r),n.setNeedUpdateDisplay())})}),this}}class MxDbDatabase{constructor(e){this._mxDatabase=e}addLayer(e){return this._mxDatabase.addLayer(e)}showLayer(e,r){this._mxDatabase.showLayer(e,r)}setCurrentLayer(e){return this._mxDatabase.setCurrentLayer(e)}getLayer(e){return this._mxDatabase.getLayer(e)}addEntity(e){return this._mxDatabase.addMxEntity(e)}getGroup(e){return this._mxDatabase.getGroupDictionary().getAt(e)}addGroup(e){return this._mxDatabase.getGroupDictionary().add(e)}getEntityInGroup(e){return this._mxDatabase.getGroupDictionary().getEntityInGroup(e)}deleteGroup(e){return this._mxDatabase.getGroupDictionary().delete(e)}}function setGeometrPostion(t,e){for(let r=0;r<t.vertices.length;r++)t.vertices[r].x+=e.x,t.vertices[r].y+=e.y,t.vertices[r].z+=e.z}function repairGeometryFaceVertexUvs(t){t.computeBoundingBox();const e=t.boundingBox.min,r=t.boundingBox.max,n=new THREE.Vector2(0-e.x,0-e.y),o=new THREE.Vector2(r.x-e.x,r.y-e.y);t.faceVertexUvs[0]=[];const s=t.faces;for(let c=0;c<s.length;c++){const l=s[c],v=t.vertices[l.a],x=t.vertices[l.b],w=t.vertices[l.c];t.faceVertexUvs[0].push([new THREE.Vector2((v.x+n.x)/o.x,(v.y+n.y)/o.y),new THREE.Vector2((x.x+n.x)/o.x,(x.y+n.y)/o.y),new THREE.Vector2((w.x+n.x)/o.x,(w.y+n.y)/o.y)])}return t.uvsNeedUpdate=!0,t}function insertPointsWithEqualSpacing(t){const e=[];if(t.length<2)return t;let r=Number.MAX_VALUE;for(let n=0;n<t.length-1;n++){const o=t[n].distanceTo(t[n+1]);o<r&&(r=o)}for(let n=0;n<t.length-1;n++){const o=t[n],s=t[n+1];e.push(o);const c=o.distanceTo(s);if(c>r){const l=Math.floor(c/r),v=s.clone().sub(o).normalize();for(let x=1;x<l;x++){const w=o.clone().add(v.clone().multiplyScalar(x*r));e.push(w)}}}return e.push(t[t.length-1]),e}function getToGenerateRoundedCorners(t,e,r=!0){const n=new THREE.CurvePath;if(t.length<2)throw new Error("Points should have at least 2 items");if(!e||e.length===0)return t;!r&&t[0].equals(t[t.length-1])&&t.pop(),r||t.push(t[0]);for(let s=0;s<t.length-1;s++){const c=e[s]||0;if(s===0&&!r){const E=t[0].clone().sub(t[1]);E.normalize();const I=t[1].clone();I.add(E.clone().multiplyScalar(c));const O=new THREE.LineCurve3(t[0],I);n.curves.push(O);continue}const l=!r||t[s-1]?t[s-1].clone().sub(t[s]):t[t.length-1].clone().sub(t[0]);l.normalize();const v=!r||t[s+1]?t[s+1].clone().sub(t[s]):t[1].clone().sub(t[0]);v.normalize();const x=t[s].clone().add(l.clone().multiplyScalar(c)),w=t[s].clone(),_=t[s].clone().add(v.clone().multiplyScalar(c)),b=new THREE.QuadraticBezierCurve3(x,w,_);if(s===t.length-2){const E=t[s].clone().add(v.clone().multiplyScalar(c)),I=t[s+1].clone();r?I.add(v.clone().multiplyScalar(-c)):I.add(v.clone());const O=new THREE.LineCurve3(E,I);n.curves.push(b,O)}else n.curves.push(b);s===0&&t.push(t[0])}let o=n.getPoints();return o=insertPointsWithEqualSpacing(o)}function computeRectPoints(t,e){return[t,t.clone().set(e.x,t.y,e.z),e,e.clone().set(t.x,e.y,t.z)]}function calculateArcOrigin(t,e,r){const n=t.x,o=e.x,s=r.x,c=t.y,l=e.y,v=r.y,x=n-o,w=c-l,_=n-s,b=c-v,E=(n*n-o*o+(c*c-l*l))/2,I=(n*n-s*s+(c*c-v*v))/2,O=w*_-x*b,N=-(b*E-w*I)/O,A=-(x*I-_*E)/O;return new THREE.Vector3(N,A,0)}function calculateRadiusArc(t,e){const r=t.x,n=t.y,o=e.x,s=e.y;return Math.sqrt((r-o)*(r-o)+(n-s)*(n-s))}function calculateArcAngle(t,e,r){const n=t.x,o=e.x;let s,c,l;return s=(t.y-e.y)/r,(c=(n-o)/r)>=.99999&&(c=.99999),c<=-.99999&&(c=-.99999),l=(l=Math.acos(c))/Math.PI*180,s<-.05&&(l=360-l),{sin:s,cos:c,angle:l}}function judgementArcRenderDirection(t,e,r){return(t<e?e-t:e-t+360)>(t<r?r-t:r-t+360)}function createThreePointArc(t,e,r,n=!1,o=!1,s=new THREE.Color("#ff0000")){const c=calculateArcOrigin(t,e,r),l=c.x,v=c.y,x=calculateRadiusArc(t,c),w=calculateArcAngle(t,c,x),_=calculateArcAngle(e,c,x),b=calculateArcAngle(r,c,x);let E,I,O=w.angle,N=_.angle,A=b.angle,z=judgementArcRenderDirection(O,N,A);o&&(z=!0),n?(I=new THREE.ArcCurve(l,v,x,THREE.MathUtils.degToRad(O),THREE.MathUtils.degToRad(N),!z),E=z?N>O?THREE.MathUtils.radToDeg(I.aEndAngle-I.aStartAngle):360-Math.abs(THREE.MathUtils.radToDeg(I.aEndAngle-I.aStartAngle)):O>N?Math.abs(THREE.MathUtils.radToDeg(I.aEndAngle-I.aStartAngle)):360-THREE.MathUtils.radToDeg(I.aEndAngle-I.aStartAngle)):(I=new THREE.ArcCurve(l,v,x,THREE.MathUtils.degToRad(O),THREE.MathUtils.degToRad(A),z),E=z?A>O?360-THREE.MathUtils.radToDeg(I.aEndAngle-I.aStartAngle):Math.abs(THREE.MathUtils.radToDeg(I.aEndAngle-I.aStartAngle)):O>A?360+THREE.MathUtils.radToDeg(I.aEndAngle-I.aStartAngle):THREE.MathUtils.radToDeg(I.aEndAngle-I.aStartAngle));const G=E*Math.PI*x/180,V=new THREE.BufferGeometry().setFromPoints(I.getPoints(50)),ne=new THREE.LineBasicMaterial({color:s});return{arc:new THREE.Line(V,ne),radius:x,angle:E,arcLength:G}}function computeRegularPolygonVertices$2(t=new THREE.Vector3,e=new THREE.Vector3,r=3){const n=[];r=Math.max(3,r),n.push(e);const o=2*Math.PI/r;for(let s=1;s<r;s++){const c=Math.cos(o*s),l=Math.sin(o*s),v=t.clone(),x=e.clone(),w=x.x-v.x,_=x.y-v.y,b=new THREE.Vector3(w*c-_*l+v.x,w*l+_*c+v.y);n.push(b)}return n}function computeBounding(t){if(t.length==0){let e=new THREE.Vector3;return{centerPoint:e,minPoint:e,maxPoint:e}}{let e=new THREE.Vector3(t[0].x,t[0].y,t[0].z||0),r=new THREE.Vector3(t[0].x,t[0].y,t[0].z||0),n=t.length;for(let o=1;o<n;o++){let s=t[o];e.x>s.x&&(e.x=s.x),e.y>s.y&&(e.y=s.y),r.x<s.x&&(r.x=s.x),r.y<s.y&&(r.y=s.y)}return{centerPoint:new THREE.Vector3(e.x+.5*(r.x-e.x),e.y+.5*(r.y-e.y),0),minPoint:e,maxPoint:r}}}function MxThreeJSMixin(t){return t.createImage=function(e,r,n,o,s){if(!s)return new Promise((c,l)=>{t.createImage.call(this,e,r,n,o,v=>c(v))});new THREE.TextureLoader().load(o,function(c){let l=new THREE.PlaneGeometry(r,n),v=new THREE.MeshLambertMaterial({map:c,transparent:!0,side:THREE.DoubleSide});v.map&&(v.map.needsUpdate=!0),setGeometrPostion(l,e);let x=new THREE.Mesh(l,v);x.material.depthTest=!1,s&&s(x)},void 0,function(c){console.log(c),s&&s(null)})},t.loadSVG=function(e,r,n,o){return n?(store.state.MxFun.loadSVG(e,r,n,o),new Promise(s=>{s(null)})):new Promise(s=>{store.state.MxFun.loadSVG(e,r,c=>{s(c)},o)})},t.clacTextSize=(e,r)=>store.state.MxFun.getMxThreeJS().clacTextSize(e,r),t.clacTextSpriteSize=(e,r,n)=>store.state.MxFun.getMxThreeJS().clacTextSpriteSize(e,r,n),t.creatTextSprite=(e,r,n,o,s)=>e.length===0?null:(s instanceof Object?s.getHex&&(s=s.getHex()):typeof s=="string"&&(s=parseInt(s)),store.state.MxFun.getMxThreeJS().creatTextSprite(e,r,n,o,s)),t}class MxThreeJS$1{createLine(e,r,n){const o=new THREE.Geometry,s=new THREE.LineBasicMaterial({color:n});return o.vertices.push(e,r),new THREE.Line(o,s)}createCircle(e,r,n){const o=new THREE.CircleGeometry(r,64,3,2*Math.PI),s=new THREE.LineBasicMaterial({color:n});o.vertices.shift();const c=new THREE.LineLoop(o,s),{x:l,y:v,z:x}=e;return c.position.set(l,v,x),c}createPoint(e,r,n=3){const o=new THREE.Geometry;o.vertices.push(e);const s=new THREE.PointsMaterial({color:r,size:n});return new THREE.Points(o,s)}createTriangle(e,r,n=1){if(e.length<3)return null;const o=e.length,s=new THREE.Geometry;for(let l=0;l+2<o;l+=3){s.vertices.push(e[l]),s.vertices.push(e[l+1]),s.vertices.push(e[l+2]);const v=new THREE.Face3(l,l+1,l+2);s.faces.push(v)}s.computeFaceNormals(),s.computeVertexNormals();const c=new THREE.MeshBasicMaterial({color:r,transparent:!0,depthTest:!1,side:THREE.DoubleSide,opacity:n});return new THREE.Mesh(s,c)}createLines(e,r){const n=new THREE.Geometry;n.vertices=e;const o=new THREE.LineBasicMaterial({color:r});return new THREE.Line(n,o)}createDashedLines(e,r,n,o){const s=new THREE.Geometry;s.vertices=e;const c=new THREE.Line(s,new THREE.LineDashedMaterial({color:r,dashSize:n,gapSize:o}));return c.computeLineDistances(),c}}const MxThreeJS=MxThreeJSMixin(new MxThreeJS$1);class MxDrawObject extends Node$1{constructor(e){super(),this.rootLayer=new Layer(e.m_mxDatabase.curLayer),this.add(this.rootLayer),this._mxdrawObj=e}getMxObjectImplement(){return this._mxdrawObj}getScene(){return this._mxdrawObj.getScene()}setMultipleSelect(e){this._mxdrawObj.isMultipleSelect=e}getCamera(){return this._mxdrawObj.getCamera()}getRenderer(){return this._mxdrawObj.renderer}setMouseRightRotate(e=!0){return this._mxdrawObj.setMouseRightRotate(e)}getFullDisplayRange(){return this._mxdrawObj.getFullDisplayRange()}getCanvas(){return this._mxdrawObj.getCanvas()}updateDisplay(e=!1){return this._mxdrawObj.updateDisplay(e)}createCanvasImageData(e,r){return this._mxdrawObj.createCanvasImageData(e,r)}setViewColor(e){return this._mxdrawObj.setViewColor(e)}getViewColor(){return this._mxdrawObj.getViewColor()}setSize(e,r){return this._mxdrawObj.setSize(e,r)}getIntersectObjects(e){return this._mxdrawObj.getIntersectObjects(e)}addObject(e,r=!0){return this._mxdrawObj.addObject(e,r)}addViewObject(e){return this._mxdrawObj.addViewObject(e)}getViewWidth(){return this._mxdrawObj.getViewWidth()}getViewHeight(){return this._mxdrawObj.getViewHeight()}removeObject(e,r=!0){return this._mxdrawObj.removeObject(e,r)}zoomInitialStates(){return this._mxdrawObj.zoomInitialStates()}zoomScale(e){return this._mxdrawObj.zoomScale(e)}zoomW(e,r,n){return this._mxdrawObj.zoomW(e,r,n)}zoomCenter(e,r){return this._mxdrawObj.zoomCenter(e,r)}initZoomW(e,r){return this._mxdrawObj.initZoomW(e,r)}addEvent(e,r){return this._mxdrawObj.addEvent(e,r)}on(e,r){return super.on(e,r),this._mxdrawObj.addEvent(e,r)}off(e,r){return super.off(e,r),this.removeEventFuction(e,r)}removeEventFuction(e,r){return this._mxdrawObj.removeEventFuction(e,r)}setIniset(e){return this._mxdrawObj.setIniset(e)}getViewDocCoord(){return this._mxdrawObj.getViewDocCoord()}screenCoord2World(e,r,n){return this._mxdrawObj.screenCoord2World(e,r,n)}worldCoord2Screen(e,r,n){return this._mxdrawObj.worldCoord2Screen(e,r,n)}screenCoord2Doc(e,r){return this._mxdrawObj.screenCoord2Doc(e,r,0)}worldCoordLong2Doc(e){return this._mxdrawObj.worldCoordLong2Doc(e)}docCoordLong2World(e){return this._mxdrawObj.docCoordLong2World(e)}docCoord2World(e,r,n){return this._mxdrawObj.docCoord2World(e,r,n)}docCoord2World2(e){return this._mxdrawObj.docCoord2World(e.x,e.y,e.z)}worldCoord2Doc(e,r,n){return this._mxdrawObj.worldCoord2Doc(e,r,n)}worldCoord2Doc2(e){return this._mxdrawObj.worldCoord2Doc(e.x,e.y,e.z)}docCoord2Screen(e,r){return this._mxdrawObj.docCoord2Screen(e,r,0)}screenCoordLong2Doc(e){return this._mxdrawObj.screenCoordLong2Doc(e)}docCoordLong2Screen(e){return this._mxdrawObj.docCoordLong2Screen(e)}screenCoordLong2World(e){return this._mxdrawObj.screenCoordLong2World(e)}worldCoordLong2Screen(e){return this._mxdrawObj.worldCoordLong2Screen(e)}initRendererParam(e){return this._mxdrawObj.initRendererParam(e)}addMxEntity(e){return this.rootLayer.add(e),e.objectId()}getMxCurrentSelect(){let e=this._mxdrawObj.getMxAllSelect();return e.length==0&&(e=this._mxdrawObj.getPrvCommandSelect()),e}getMxCADCurrentSelect(){let e=this._mxdrawObj.getMxCADAllSelect();return e.length==0&&(e=this._mxdrawObj.getPrvCommandMxCADSelect()),e}addMxCurrentSelect(e,r=!0,n=!0){return this._mxdrawObj.addMxCurrentSelect(e,r,n)}addMxCADCurrentSelect(e,r=!0,n=!0){return this._mxdrawObj.addMxCADCurrentSelect(e,r,n)}fireSelectChange(e){this._mxdrawObj.fireSelectChange(e)}clearMxCurrentSelect(){return this._mxdrawObj.clearMxCurrentSelect()}getMxEntity(e){return this._mxdrawObj.getMxEntityUserObject(e)}findMxEntityAtPoint(e,r,n){return this._mxdrawObj.findMxEntityAtPoint(e,r,n)}getAllMxEntity(){return this._mxdrawObj.getAllMxEntity()}setViewMovementMethod(e){return this._mxdrawObj.setMouseMiddlePan(e)}setMouseMiddlePan(e){return this._mxdrawObj.setMouseMiddlePan(e)}resetThreeJSControls(){return this._mxdrawObj.resetThreeJSControls()}enableZoom(e){return this._mxdrawObj.enableZoom(e)}enablePan(e){return this._mxdrawObj.enablePan(e)}eraseMxEntity(e){return this._mxdrawObj.eraseMxEntity(e)}removeViewObject(e){this._mxdrawObj.removeViewObject(e)}saveMxEntityToJson(e){return JSON.stringify(this._mxdrawObj.saveMxEntityToJson(e))}saveMxEntityToObject(e){return this._mxdrawObj.saveMxEntityToJson(e)}loadMxEntityFromJson(e,r=null){return Gr(this,null,function*(){if(r){let n=r.length;for(let o=0;o<n;o++)yield MxThreeJS.loadSVG(r[o])}return this.getAllMxEntity().forEach(n=>{for(let o in n)Reflect.deleteProperty(n,o)}),typeof e=="string"?this._mxdrawObj.loadMxEntityFromJson(JSON.parse(e)):this._mxdrawObj.loadMxEntityFromJson(e)})}eraseAllMxEntity(){return this._mxdrawObj.eraseAllMxEntity()}makeCurrent(){this._mxdrawObj.makeCurrent()}getViewCenterDocCoord(){return this._mxdrawObj.getViewCenterDocCoord()}updateCanvasSize(){this._mxdrawObj.updateCanvasSize()}newFile(e,r,n,o){return this._mxdrawObj.newFile(e,r,n,o)}stopAllLoading(){this._mxdrawObj.stopAllLoading()}getOrbitControls(){return this._mxdrawObj.getOrbitControls()}enableViewControls(e){return this._mxdrawObj.enableViewControls(e)}getMxDatabase(){return new MxDbDatabase(this._mxdrawObj.getMxDatabase())}setZoomSpeed(e){return this._mxdrawObj.setZoomSpeed(e)}resetRenderer(){return this._mxdrawObj.resetRenderer()}setRequestHeader(e){return this._mxdrawObj.setRequestHeader(e)}closeWebSocket(){return this._mxdrawObj.closeWebSocket()}cadCoord2Doc(e,r,n){return this._mxdrawObj.cadCoord2Doc(e,r,n)}cadCoord2Doc2(e){return this._mxdrawObj.cadCoord2Doc2(e)}toSmallcoord(e){return this._mxdrawObj.toSmallcoord(e)}toSmallcoord2(e,r,n=0){return this._mxdrawObj.toSmallcoord2(e,r,n)}docCoord2Cad(e,r,n){return this._mxdrawObj.docCoord2Cad(e,r,n)}docCoord2Cad2(e){return this._mxdrawObj.docCoord2Cad2(e)}viewCoord2Cad(e,r,n){return this._mxdrawObj.viewCoord2Cad(e,r,n)}cadCoord2View(e,r,n){return this._mxdrawObj.cadCoord2View(e,r,n)}cadCoordLong2View(e){return this._mxdrawObj.cadCoordLong2View(e)}viewCoordLong2Cad(e){return this._mxdrawObj.viewCoordLong2Cad(e)}docCoordLong2Cad(e){return this._mxdrawObj.docCoordLong2Cad(e)}cadCoordLong2Doc(e){return this._mxdrawObj.cadCoordLong2Doc(e)}setViewAngle(e){return this._mxdrawObj.setViewAngle(e)}getViewAngle(){return this._mxdrawObj.getViewAngle()}getSysVar(e){return this._mxdrawObj.sysVariable().getSysVar()}setSysVar(e,r){return this._mxdrawObj.sysVariable().setSysVar(e,r)}isMxCAD(){return this._mxdrawObj.isCppMxCAD()}getAllLayoutName(){return this._mxdrawObj.getAllLayoutName()}getDtabaseJsonString(){return this._mxdrawObj.getDtabaseJsonString()}gotoLayout(e){return this._mxdrawObj.gotoLayout(e)}initMxCpp(e){return this._mxdrawObj.initMxCpp(e)}isWebgl2(){return this._mxdrawObj.isWebgl2()}getId(){return this._mxdrawObj.getId()}addControlsEvent(e,r,n=!1){return this._mxdrawObj.addControlsEvent(e,r,n)}clearAllObject(){return this.rootLayer.clear(),this._mxdrawObj.clearAllObject()}setPointMultipleSelect(e=!0){return this._mxdrawObj.setPointMultipleSelect(e)}isWhiteViewColor(){return this._mxdrawObj.isWhiteViewColor()}automaticInversionColor(e){return this._mxdrawObj.automaticInversionColor(e)}renderLoop(e=!0){return this._mxdrawObj.renderLoop(e)}}const initEvents=t=>{let e=[];["click","mousedown","mouseup"].forEach(r=>{t.addEventListener(r,()=>{e.forEach(n=>{n.emit(r)})})}),t.addEventListener("mousemove",()=>{const r=MxFun.getCurrentDraw().findMxEntityAtPoint(MxFun.getCurrentMousePostion(),!1);r.forEach(n=>{n.emit("mousemove")}),r.length===0&&(e.length>0&&e.forEach(n=>{n.emit("mouseout")}),e=[]),e.length===0&&(e=r).forEach(n=>{n.emit("mouseover"),n.emit("hover")})})};function createMxObject({canvasId:t=createReandomId(),cadFile:e="",callback:r,isNewFile:n=!1,useWebsocket:o=!1,isAutoResize:s=!0,mapBox:c,isMxCAD:l=!1,userIdentitySign:v="emptyUserIdentity",isCPPMxCAD:x=!1}){if(this.initUiDataObject(mxUiData$1),!o&&n&&(n=!1),c)if(x){const w=c.canvas;let _=!0;store.state.MxFun.createMxObject(w,"",b=>{let E=new MxDrawObject(b);b.setMouseRightRotate(!1),b.setIniset({EnableOsnapFunction:!0}),r&&r(E,{canvas:w,canvasParent:void 0})},_,!1,!1,c,x)}else{const w=c.canvas;store.state.MxFun.createMxObject(w,e,_=>{let b=new MxDrawObject(_);_.setIniset({EnableOsnapFunction:!0}),r&&r(b,{canvas:w,canvasParent:void 0})},void 0,n,o,c)}else if(x){const w=createCanvas(t),_=createCanvasParent(w);_.parentNode&&_.parentNode.nodeType!=11||document.body.appendChild(_);let b=!0;store.state.MxFun.createMxObject(t,"",E=>{let I=new MxDrawObject(E);E.setMouseRightRotate(!1),E.setIniset({EnableOsnapFunction:!0}),E.addEvent("onResize",()=>(_.tabindex=3,{width:_.clientWidth,height:_.clientHeight})),s&&useCanvasResizeListener(I,w),r&&r(I,{canvas:w,canvasParent:_})},b,!1,!1,void 0,x)}else{const w=createCanvas(t),_=createCanvasParent(w);let b;_.parentNode&&_.parentNode.nodeType!=11||document.body.appendChild(_),l&&(b=!0,o=!0),store.state.MxFun.createMxObject(t,e,E=>{let I=new MxDrawObject(E);l&&(v.length==0&&(v="invalidUserIdentity"),E.initRunMode(2),E.initUserLoginData(v,"")),E.setMouseRightRotate(!1),E.setIniset({EnableOsnapFunction:!0}),E.addEvent("onResize",()=>(_.tabindex=3,{width:_.clientWidth,height:_.clientHeight})),s&&useCanvasResizeListener(I,w),initEvents(w),r&&r(I,{canvas:w,canvasParent:_})},b,n,o,void 0)}}let mxUiData=mxUiData$1;class MxFunClass{constructor(){this.createMxObject=createMxObject,this.getMxFunTHREE=()=>store.state.MxFun.getTHREE()}setMxServer(e="ws://localhost:5090"){store.state.MxFun.setMxServer(e)}screenCoord2Doc(e,r){return store.state.MxFun.screenCoord2Doc(e,r,0)}docCoord2Screen(e,r){return store.state.MxFun.docCoord2Screen(e,r,0)}getCurrentDraw(){const e=store.state.MxFun.getCurrentDraw();return e.tmp||(e.tmp=new MxDrawObject(e)),e.tmp}addToCurrentSpace(e){return MxFun.getCurrentDraw().addMxEntity(e)}initUiDataObject(e){return mxUiData=e,store.state.MxFun.initUiDataObject(e)}getUIData(){return mxUiData}getCurrentDatabase(){return MxFun.getCurrentDraw().getMxDatabase()}testMX(e){return 11}loadImageMaterial(e,r){return r?(store.state.MxFun.loadImageMaterial(e,r),new Promise((n,o)=>{n(null)})):new Promise((n,o)=>{store.state.MxFun.loadImageMaterial(e,s=>{n(s||null)})})}selectEnt(e,r=null){return new Promise((n,o)=>{const s=new MrxDbgUiPrPoint;s.setMessage(e),s.go(c=>{if(c!=0)return void n(0);const l=s.value();let v=MxFun.getCurrentDraw().findMxEntityAtPoint(l),x=0;for(;v.length!=0;){let w=v.length;for(let _=0;_<w;_++){let b=v[_];if(!r||!r.type||r.type==b.getTypeName()){x=b.objectId();break}}break}n(x)})})}listenForCommandLineInput(e){mxUiData.getCmdLine().mountUpDisplayFun(e)}setCommandLineInputData(e,r){mxUiData.getCmdLine().setCmdText(e),mxUiData.onKeydown(r)}listenForCoordTip(e){mxUiData.mountSetCoordFun(e)}listenForUpdateCursor(e){mxUiData.mountUpdateCursorFun(e)}getMxFunThreeTool(){return store.state.MxFun.getMxThreeJS()}ceneratecursor(e=128,r=10,n=!0,o){return store.state.MxFun.ceneratecursor(e,r,n,o)}getCurrentMousePostion(){let e=store.state.MxFun.getCurrentMousePostion();return new THREE.Vector3(e.x,e.y,0)}onUseCreateMxDbEntity(e){store.events.on("use:create:MxDbEntity",e)}}const _MxFun=new MxFunClass,MxFun=new Proxy({},{get:(t,e)=>typeof _MxFun[e]=="function"?_MxFun[e].bind(_MxFun):store.state.MxFun[e]});var MxCloneType,MxCommandFlag,MxDefaultRenderOrder,InputToucheType;(function(t){t[t.kClone=1]="kClone",t[t.kDragClone=2]="kDragClone",t[t.kMxFileClone=3]="kMxFileClone",t[t.kSaveDwgClone=4]="kSaveDwgClone"})(MxCloneType||(MxCloneType={})),function(t){t[t.MCRX_CMD_MODAL=0]="MCRX_CMD_MODAL",t[t.MCRX_CMD_TRANSPARENT=1]="MCRX_CMD_TRANSPARENT",t[t.MCRX_CMD_NO_UNDO_MARKER=2]="MCRX_CMD_NO_UNDO_MARKER",t[t.MCRX_CMD_NOPRV=4]="MCRX_CMD_NOPRV"}(MxCommandFlag||(MxCommandFlag={})),function(t){t[t.kCADMeshRenderOrder=10]="kCADMeshRenderOrder",t[t.kCADCurveRenderOrder=20]="kCADCurveRenderOrder",t[t.kMxEntityRenderOrder=30]="kMxEntityRenderOrder",t[t.kGripRenderOrder=110]="kGripRenderOrder",t[t.kDynJigRenderOrder=120]="kDynJigRenderOrder"}(MxDefaultRenderOrder||(MxDefaultRenderOrder={})),function(t){t[t.kGetBegan=1]="kGetBegan",t[t.kGetEnd=2]="kGetEnd"}(InputToucheType||(InputToucheType={}));var MxType=Object.freeze({__proto__:null,get MxCloneType(){return MxCloneType},get MxCommandFlag(){return MxCommandFlag},get MxDefaultRenderOrder(){return MxDefaultRenderOrder},get InputToucheType(){return InputToucheType}});class MxassemblyClass{constructor(){this.mxassembly=null}initImp(){this.mxassembly||store.state.Mxassembly&&(this.mxassembly=store.state.Mxassembly)}NewMcGePoint3d(e,r,n){this.initImp();let o=new this.mxassembly.McGePoint3d;return e&&(o.x=e),r&&(o.y=r),n&&(o.z=n),o}NewMcGePoint3dArray(e){this.initImp();let r=new this.mxassembly.McGePoint3dArray;return e&&e.forEach(n=>{let o=this.NewMcGePoint3d();o.x=n.x,o.y=n.y,o.z=n.z,r.append(o)}),r}}const Mxassembly=new MxassemblyClass;class McGeToolClass{constructor(){this.mxgeTool=null}initImp(){this.mxgeTool||store.state.Mxassembly&&(this.mxgeTool=new store.state.Mxassembly.McGeTool)}calcArea(e){if(this.initImp(),!store.state.Mxassembly)return 0;if(e instanceof Array){let r=Mxassembly.NewMcGePoint3dArray(e);return this.mxgeTool.calcArea(r)}return this.mxgeTool.calcArea(e)}pointInPolyline(e,r){this.initImp();let n=r;r instanceof Array&&(n=Mxassembly.NewMcGePoint3dArray(r));let o=Mxassembly.NewMcGePoint3d(e.x,e.y,e.z);return this.mxgeTool.pointInPolyline(o,n)}}const McGeTool=new McGeToolClass;class MrxDbgUtilsClass{constructor(){this.imp=null}initImp(){if(!this.imp&&store.state.MxFun){let e=store.state.MxFun;this.imp=new e.getMrxDbgUtilsClass}}findEntAtPoint(e,r=null,n,o=!0,s){return this.initImp(),n||(n=MxFun.getCurrentDraw()),this.imp.findEntAtPoint(n.getMxObjectImplement(),e,r,o,s)}selectEnt(e,r){return this.initImp(),this.imp.selectEnt(e)}getCorner(e,r,n=!1,o,s=!1){return this.initImp(),this.imp.getCorner(e,r,n,o,s)}}const MrxDbgUtils=new MrxDbgUtilsClass,MxPaintBrushProps={},MxPaintBrush={getProps:()=>MxPaintBrushProps,setProps:t=>Object.assign(MxPaintBrushProps,t),use:t=>Object.assign(t,MxPaintBrushProps)};var DataType;(function(t){t[t.Default=0]="Default",t[t.Color=1]="Color",t[t.Vector2=2]="Vector2",t[t.Vector3=3]="Vector3",t[t.Vector4=4]="Vector4",t[t.Matrix3=5]="Matrix3",t[t.Matrix4=6]="Matrix4"})(DataType||(DataType={}));const MXDBDATATYPE="datatype";function getDwgKeyVal(t,e){let r,n="";return lodash.isObject(e)?(r=e.default,n=e.key):typeof e=="string"&&(n=e),[n,t[n]===void 0?r:t[n]]}class MxDbEntity extends RenderOrderNode{constructor(){super(),this.color=16777215,this.opacity=1,this.visible=!0,this.userData={},this.sGuid="",this.dLineWidth=0,this.lineWidthByPixels=!0,this.dDashArray=0,this.dDashRatio=0,this.layer="",this.use_smallcoord_display=!1,this.addEvent=this.on,this.removeEvent=this.off,this.callEvent=this.emit;const e=this.constructor;e.isPaintBrushDraw&&(MxPaintBrush.use(this),store.events.emit("use:create:MxDbEntity",this),e.isPaintBrushDraw=!1)}static register(){const e=this;e.isRegister||(e.cmd&&e.draw&&MxFun.addCommand(e.cmd,r=>e.use.call(e,void 0,r)),new e().rxInit(),e.isRegister=!0)}static use(e,r){return Gr(this,null,function*(){return new Promise((n,o)=>{const s=this;if(!s.isRegister&&s.register(),s.isPaintBrushDraw=!0,!s.cmd&&s.draw)return o();const c=l=>{n(l),e&&e(l),store.events.off("use:create:MxDbEntity",c)};store.events.on("use:create:MxDbEntity",c),s.draw(r)})})}initGuid(e){this.sGuid.length>0?console.log("mx: init guid error"):this.sGuid=e}toSmallcoord2(e,r,n,o=0){return this.use_smallcoord_display?e.toSmallcoord2(r,n,o):new THREE.Vector3(r,n,o)}toSmallcoord(e,r){return this.use_smallcoord_display?e.toSmallcoord(r):r}isUseSmallcoordDisplay(){return this.use_smallcoord_display}setUseSmallcoordDisplay(e){this.use_smallcoord_display=e}dwgInHelp(e,r,n){let o=this;const s=e.type===MxType.MxCloneType.kMxFileClone||e.type===MxType.MxCloneType.kSaveDwgClone,c=v=>{if(!v)return;const{value:x,[MXDBDATATYPE]:w}=v;switch(w){case DataType.Color:return new THREE.Color(...x);case DataType.Vector2:return new THREE.Vector2(...x);case DataType.Vector3:return new THREE.Vector3(...x);case DataType.Vector4:return new THREE.Vector4(...x);case DataType.Matrix3:return new THREE.Matrix3().fromArray(x);case DataType.Matrix4:return new THREE.Matrix4().fromArray(x)}return n&&n.getCacheVal?n.getCacheVal(v):void 0};function l(v){return v instanceof THREE.Color||v instanceof THREE.Vector2||v instanceof THREE.Vector3||v instanceof THREE.Vector4||v instanceof THREE.Matrix3||v instanceof THREE.Matrix4?v.clone():n&&n.getVal?n.getVal(v):void 0}return r.forEach(v=>{const[x,w]=getDwgKeyVal(e,v);o[x]=lodash.cloneDeepWith(w,s?c:l)}),!0}dwgOutHelp(e,r){const n=c=>c instanceof THREE.Color?{[MXDBDATATYPE]:DataType.Color,value:c.toArray()}:c instanceof THREE.Vector2?{[MXDBDATATYPE]:DataType.Vector2,value:c.toArray()}:c instanceof THREE.Vector3?{[MXDBDATATYPE]:DataType.Vector3,value:c.toArray()}:c instanceof THREE.Vector4?{[MXDBDATATYPE]:DataType.Vector4,value:c.toArray()}:c instanceof THREE.Matrix3?{[MXDBDATATYPE]:DataType.Matrix3,value:c.toArray()}:c instanceof THREE.Matrix4?{[MXDBDATATYPE]:DataType.Matrix4,value:c.toArray()}:void 0;let o=this;const s=e.type===MxType.MxCloneType.kMxFileClone||e.type===MxType.MxCloneType.kSaveDwgClone;return r.forEach(c=>{const[l,v]=getDwgKeyVal(o,c);e[l]=s?lodash.cloneDeepWith(v,n):v}),e}create(e){return new this.constructor(e)}transformBy(e){}getGeomExtents(){return null}getClosestPointTo(e,r=0){return null}getImp(){return this.MxDbEntityImp}setNeedUpdateDisplay(e){let r=this.getImp();return!!r&&(e?r.upDisplay():r.setDirtyDisplay(!0),!0)}getMxObject(){let e=this.getImp();return e?e.getMxObject():null}onViewChange(){return!1}objectId(){let e=this.getImp();return e?e.objectId():0}erase(){let e=this.getImp();return!!e&&e.erase()}setLayer(e){let r=this.getImp();r&&r.nodifySetLayer(),this.layer=e}getLayer(){return this.layer}setColor(e){return this.color=e,this}getColor(){return this.color||16777215}clone(e){let r=this.create(),n={type:e||MxType.MxCloneType.kClone};return this.dwgOut(n),r.dwgIn(n),r.sGuid="",r}onDwgIn(e){this.color=e.color,this.renderOrder=e.renderOrder,this.opacity=e.opacity,this.visible=e.visible,e.userData?this.userData=JSON.parse(JSON.stringify(e.userData)):this.userData={},this.dLineWidth=e.lineWidth,this.lineWidthByPixels=e.lineWidthByPixels,this.dDashArray=e.dashArray,this.dDashRatio=e.dashRatio,this.layer=e.layer,e.guid&&(this.sGuid=e.guid)}onDwgOut(e){e.color=this.color,e.renderOrder=this.renderOrder,e.opacity=this.opacity,e.visible=this.visible,e.lineWidth=this.dLineWidth,e.lineWidthByPixels=this.lineWidthByPixels,e.dashArray=this.dDashArray,e.dashRatio=this.dDashRatio,e.layer=this.layer,e.guid=this.sGuid,Object.keys(this.userData).length>0&&(e.userData=this.userData)}rxInit(){MxFun.initMxDbEntityType(this)}setRenderOrder(e){this.renderOrder=e}getRenderOrder(){return this.renderOrder}setLineWidthByPixels(e){return this.lineWidthByPixels=e,this}getLineWidthByPixels(){return this.lineWidthByPixels}setLineWidth(e){return this.dLineWidth=e,this}getLineWidth(){return this.dLineWidth}getGetLength(){return 0}setDashLen(e){let r=this.getGetLength();if(r<1e-6||e<1e-6)return this;let n=Math.floor(r/e);return n<1e-6&&(this.dDashRatio=0),this.dDashArray=1/n,this}setDashRatio(e){return this.dDashRatio=e,this}setDashArray(e){return this.dDashArray=e,this}setDash(e,r){return this.dDashArray=e,this.dDashRatio=r,this.dLineWidth==0&&(this.dLineWidth=6,this.lineWidthByPixels=!0),this}getDash(){return{dDashArray:this.dDashArray,dDashRatio:this.dDashRatio}}setDashLineDisplay(e){return e?(this.dDashArray<1e-5&&(this.dDashArray=.03),this.dDashRatio<1e-5&&(this.dDashRatio=.1),this.dLineWidth==0&&(this.dLineWidth=6,this.lineWidthByPixels=!0)):(this.dDashArray=0,this.dDashRatio=0),this}isDashLineDisplay(){return this.dDashArray>0&&this.dDashRatio>0}guid(){return this.sGuid}setGuid(e){return this.sGuid=e}onEndGripEidt(){this.callEvent("onEndGripEidt")}onStartGripEidt(){return this.callEvent("onStartGripEidt")}toJsonString(e=MxType.MxCloneType.kMxFileClone){let r={type:e};return this.dwgOut(r),r.TypeName=this.getTypeName(),JSON.stringify(r)}fromJsonString(e){let r=JSON.parse(e);return(r.type==MxType.MxCloneType.kMxFileClone||r.type==MxType.MxCloneType.kClone)&&this.dwgIn(r)}}function drawMxDbImage(){const t=new MrxDbgUiPrPoint;t.setMessage(`
  3272. \u6307\u5B9A\u63D2\u5165\u70B9:`);let e=MxFun.getCurrentDraw();t.go(r=>{if(r!=0)return;let n=MxFun.screenCoordLong2Doc(300),o=MxFun.screenCoordLong2Doc(200);const s=t.value();let c=MxFun.screenCoord2Doc(10,10);s.z=c.z;let l=new MxDbImage;l.setRenderOrder(MxType.MxDefaultRenderOrder.kCADMeshRenderOrder-1),l.setPoint1(s);let v=new THREE.Vector3(s.x+n,s.y+o,s.z);l.setPoint2(v);let x=prompt("\u8BF7\u586B\u5199\u56FE\u7247\u7F51\u7EDC\u5730\u5740","https://cdn.pixabay.com/photo/2022/11/15/12/23/winter-7593872_960_720.jpg");x&&(l.setImagePath(x),e.addMxEntity(l),l.addEvent("onStartGripEidt",()=>(l.visible=!1,l.setNeedUpdateDisplay(),{renderOrder:MxType.MxDefaultRenderOrder.kCADMeshRenderOrder-1})),l.addEvent("onEndGripEidt",()=>{l.visible=!0,l.setNeedUpdateDisplay()}))})}MxDbEntity.isRegister=!1;class MxDbImage extends MxDbEntity{constructor(){super(...arguments),this.pt1=new THREE.Vector3,this.pt2=new THREE.Vector3,this.imagePath="",this.isLoadMaterialFromPath=!0,this.material=null,this.angle=0}getTypeName(){return"MxDbImage"}getAngle(){return this.angle}setAngle(e){this.angle=e}worldDraw(e){let r=new THREE.Vector3(this.pt1.x,this.pt2.y),n=new THREE.Vector3(this.pt2.x,this.pt1.y);if(Math.abs(this.angle)>1e-5){let o=new THREE.Vector3(.5*(this.pt1.x-this.pt2.x)+this.pt2.x,.5*(this.pt1.y-this.pt2.y)+this.pt2.y),s=new THREE.Matrix4;s.makeRotationZ(this.angle);let c=new THREE.Matrix4().makeTranslation(o.x,o.y,o.z).multiply(s).multiply(new THREE.Matrix4().makeTranslation(-o.x,-o.y,-o.z));e.setMatrix(c)}if(e.getType()==1){if(e.drawSelectLine(this.pt1,r),e.drawSelectLine(r,this.pt2),e.drawSelectLine(this.pt2,n),e.drawSelectLine(n,this.pt1),this.material){let o=Math.abs(this.pt1.x-this.pt2.x),s=Math.abs(this.pt1.y-this.pt2.y),c=new THREE.PlaneGeometry(o,s),l=Math.min(this.pt1.x,this.pt2.x),v=Math.min(this.pt1.y,this.pt2.y);for(let w=0;w<c.vertices.length;w++)c.vertices[w].x+=l+.5*o,c.vertices[w].y+=v+.5*s,c.vertices[w].z=0;let x=new THREE.Mesh(c,this.material);x.material.depthTest=!1,e.drawEntity(x)}else if(this.imagePath.length>0&&this.isLoadMaterialFromPath){let o=this,s=e.getMxObject();const c=l=>{this.isLoadMaterialFromPath=!1,l&&(o.setMaterial(l),o.setNeedUpdateDisplay(),s.updateDisplay())};MxFun.loadImageMaterial(this.imagePath,l=>{c(l)})}}else if(this.material){let o=Math.abs(this.pt1.x-this.pt2.x),s=Math.abs(this.pt1.y-this.pt2.y),c=new THREE.PlaneGeometry(o,s),l=Math.min(this.pt1.x,this.pt2.x),v=Math.min(this.pt1.y,this.pt2.y);for(let w=0;w<c.vertices.length;w++)c.vertices[w].x+=l+.5*o,c.vertices[w].y+=v+.5*s,c.vertices[w].z=0;let x=new THREE.Mesh(c,this.material);x.material.depthTest=!1,e.drawEntity(x)}else e.drawLine(this.pt1,r),e.drawLine(r,this.pt2),e.drawLine(this.pt2,n),e.drawLine(n,this.pt1);e.setMatrix(null)}setImagePath(e){this.imagePath=e,this.isLoadMaterialFromPath=!0,this.material=null}getImagePath(){return this.imagePath}setMaterial(e){this.material=e}loadMaterial(e){e&&(this.imagePath=e),this.isLoadMaterialFromPath=!1,this.material=null;let r=this;MxFun.loadImageMaterial(this.imagePath,n=>{this.isLoadMaterialFromPath=!1,r.setMaterial(n)})}setPoint1(e){this.pt1=e}getPoint1(){return this.pt1}setPoint2(e){this.pt2=e}getPoint2(){return this.pt2}getGripPoints(){let e=[];e.push(this.pt1),e.push(this.pt2);let r=new THREE.Vector3(this.pt1.x+.5*(this.pt2.x-this.pt1.x),this.pt1.y+.5*(this.pt2.y-this.pt1.y));return e.push(r),e}moveGripPointsAt(e,r){return e==0?this.pt1.add(r):e==1?this.pt2.add(r):e==2&&(this.pt1.add(r),this.pt2.add(r)),!0}dwgIn(e){return this.onDwgIn(e),this.pt1.copy(e.pt1),this.pt2.copy(e.pt2),this.imagePath=e.imagePath.substr(0),this.isLoadMaterialFromPath=!0,e.angle&&(this.angle=e.angle),e.material&&(this.material=e.material),!0}dwgOut(e){return this.onDwgOut(e),e.pt1=this.pt1,e.pt2=this.pt2,e.imagePath=this.imagePath,e.angle=this.angle,e.type==MxType.MxCloneType.kDragClone&&(e.material=this.material),e}create(){return new MxDbImage}}var McGiWorldDrawType;MxDbImage.cmd="Mx_DrawImage",MxDbImage.draw=drawMxDbImage,addRegisterMxDbEntity(MxDbImage),function(t){t[t.kWorldDraw=1]="kWorldDraw",t[t.kDynDragDraw=2]="kDynDragDraw",t[t.kSelectDraw=3]="kSelectDraw"}(McGiWorldDrawType||(McGiWorldDrawType={}));var McGiWorldDrawType$1=McGiWorldDrawType;class MxDbSVGText{constructor(){this.txtPos=new THREE.Vector3,this.txt="",this.txtHeight=1,this.color=void 0,this._txtObject=null,this._txtAspectRatio=-1,this.move=!1,this.drawConnectingLine=!1,this._connectingLine=null,this.fontStyle="",this.underline=!1,this._underLine=null}}function drawMxDbSVG(){return Gr(this,null,function*(){const t=new MrxDbgUiPrPoint;t.setMessage(`
  3273. \u6307\u5B9A\u4E00\u70B9:`);let e=yield t.go();if(!e)return;let r=new MxDbSVG,n=prompt("\u8BF7\u8F93\u5165svg\u56FE\u7247\u7F51\u7EDC\u6216\u672C\u5730\u5730\u5740","https://img.alicdn.com/imgextra/i2/O1CN01FF1t1g1Q3PDWpSm4b_!!6000000001920-55-tps-508-135.svg");if(!n)return;r.setSvgPath(n),r.setSvgPostion(e),r.svgReverse=!0,r.svgMargin.x=.2,r.setSvgAlignmentRatio(new THREE.Vector2(.5,-1)),r.setRenderOrder(100),r.setSvgSize(new THREE.Vector2(50,0));let o=new MxDbSVGText;o.txt="A1",o.txtPos=new THREE.Vector3(0,-30,0),o.txtHeight=30,r.addText(o),r.fixedSize=!0,r.color=65297,MxFun.addToCurrentSpace(r)})}class MxDbSVG extends MxDbEntity{constructor(){super(...arguments),this.svgPos=new THREE.Vector3,this.svg=null,this.svgPath="",this.svgSize=new THREE.Vector2(50,50),this.svgAlignmentRatio=new THREE.Vector2(0,0),this.imagePath="",this.isLoadMaterialFromPath=!0,this.material=null,this.svgRotate=0,this.svgReverse=!1,this.svgMirror=!1,this.svgChildColor=[],this.svgMargin=new THREE.Vector2(0,0),this.isSvgDirtyLocation=!1,this.isLoadFromPath=!0,this.aryText=[],this.svgBoxSize=null,this.fixedSize=!1,this.useSvgColor=!1}setSvgChildColor(e){if(this.svgChildColor=e,!this.useSvgColor&&this.svg){let r=new THREE.Color(this.getColor()),n=0,o=this;this.svg.traverse(function(s){s.material&&(n<o.svgChildColor.length?s.material.color=new THREE.Color(o.svgChildColor[n]):s.material.color=r,n++)}),this.setNeedUpdateDisplay(!0)}}getSvgChildColor(){return this.svgChildColor}calcVewSize(e){let r=this.svgSize.x,n=this.svgSize.y;return n<=0&&(n=this.svgBoxSize?this.svgBoxSize.y/this.svgBoxSize.x*r:r),this.fixedSize&&(r=e.screenCoordLong2Doc(r),n=e.screenCoordLong2Doc(n)),[r,n]}calcSvgDrawRect(e){if(!e)return;this.calcSvgPosition(e);let[r,n]=this.calcVewSize(e),o=new THREE.Matrix4;o.makeScale(this.svgMirror?-1:1,this.svgReverse?-1:1,1);let s=new THREE.Matrix4;s.makeRotationZ(this.svgRotate);let c=new THREE.Matrix4,l=new THREE.Vector3(this.svgPos.x-r*this.svgAlignmentRatio.x,this.svgPos.y-n*this.svgAlignmentRatio.y,0);c.makeTranslation(l.x,l.y,l.z),s.multiply(o),s.premultiply(c);let v=new THREE.Vector3(0,0,0),x=new THREE.Vector3(r,0,0),w=new THREE.Vector3(r,n,0),_=new THREE.Vector3(0,n,0);return v.applyMatrix4(s),x.applyMatrix4(s),w.applyMatrix4(s),_.applyMatrix4(s),{pt1:v,pt2:w,pt3:x,pt4:_,cenpt:w.clone().add(v.clone().sub(w).multiplyScalar(.5)),sizew:r,sizeh:n}}calcImageDrawRect(e){if(!e)return;this.calcSvgPosition(e);let[r,n]=this.calcVewSize(e),o=new THREE.Matrix4;o.makeScale(this.svgMirror?-1:1,this.svgReverse?-1:1,1);let s=new THREE.Matrix4,c=new THREE.Matrix4,l=new THREE.Vector3(this.svgPos.x-r*this.svgAlignmentRatio.x,this.svgPos.y-n*this.svgAlignmentRatio.y,0);c.makeTranslation(l.x,l.y,l.z),s.multiply(o),s.premultiply(c);let v=new THREE.Vector3(0,0,0),x=new THREE.Vector3(r,0,0),w=new THREE.Vector3(r,n,0),_=new THREE.Vector3(0,n,0);return v.applyMatrix4(s),x.applyMatrix4(s),w.applyMatrix4(s),_.applyMatrix4(s),{pt1:v,pt2:w,pt3:x,pt4:_,cenpt:w.clone().add(v.clone().sub(w).multiplyScalar(.5)),sizew:r,sizeh:n}}worldDraw(e){let r,n=e.getMxObject();if(this.imagePath.length>0){if(r=this.calcImageDrawRect(n),Math.abs(this.svgRotate)>1e-5){let _=new THREE.Vector3(.5*(r.pt1.x-r.pt2.x)+r.pt2.x,.5*(r.pt1.y-r.pt2.y)+r.pt2.y),b=new THREE.Matrix4;b.makeRotationZ(this.svgRotate);let E=new THREE.Matrix4().makeTranslation(_.x,_.y,_.z).multiply(b).multiply(new THREE.Matrix4().makeTranslation(-_.x,-_.y,-_.z));e.setMatrix(E)}}else r=this.calcSvgDrawRect(n);let o=r.pt1,s=r.pt2,c=r.pt3,l=r.pt4,v=r.cenpt,x=r.sizew,w=this;if(e.getType()!=McGiWorldDrawType$1.kSelectDraw&&this.aryText.forEach((_,b)=>{if(_.txt.length>0){let O,N=new THREE.Vector3(_.txtPos.x,_.txtPos.y,0);this.fixedSize&&(_.txtPos.x>0?N.x=this.svgPos.x+n.screenCoordLong2Doc(_.txtPos.x):N.x=this.svgPos.x-n.screenCoordLong2Doc(_.txtPos.x),_.txtPos.y>0?N.y=this.svgPos.y+n.screenCoordLong2Doc(_.txtPos.y):N.y=this.svgPos.y-n.screenCoordLong2Doc(_.txtPos.y)),_.color&&(O=e.getColor(),e.setColor(_.color));let A=_.txtHeight;w.fixedSize&&(A=n.screenCoordLong2Doc(_.txtHeight)),e.setXData({type:"text",txt:_.txt,index:b});let z=e.drawText(_.txt,A,0,N,void 0,G=>_.fontStyle.length>0?`${_.fontStyle} ${G}px Arial`:`normal ${G}px Arial`);if(e.getType()==McGiWorldDrawType$1.kWorldDraw&&(_._txtObject=z),_.underline&&_._txtObject){const G=new THREE.Box3;G.expandByObject(_._txtObject);let V=new THREE.Vector3(G.min.x,G.min.y+.1*A,0),ne=new THREE.Vector3(G.max.x,G.min.y+.1*A,0);var E=new THREE.Geometry;let W=new THREE.LineBasicMaterial({color:e.getColor(),transparent:!0,depthTest:!1});E.vertices.push(V,ne);var I=new THREE.Line(E,W);e.drawEntity(I),e.getType()==McGiWorldDrawType$1.kWorldDraw&&(_._underLine=I)}if(_._txtAspectRatio=-1,O&&e.setColor(O),_.drawConnectingLine){let G=v.clone().sub(N);if(G.length()>A+x){G.normalize();let V=v.clone().sub(G.clone().multiplyScalar(x)),ne=N.clone().add(G.clone().multiplyScalar(A));E=new THREE.Geometry;let W=new THREE.LineBasicMaterial({color:e.getColor(),transparent:!0,depthTest:!1});E.vertices.push(V,ne),I=new THREE.Line(E,W),e.setXData({type:"line"}),e.drawEntity(I),e.getType()==McGiWorldDrawType$1.kWorldDraw&&(_._connectingLine=I)}}}}),e.getType()==1){if(this.svg)e.setXData({type:"svg"}),e.drawEntity(this.svg);else if(this.svgPath.length>0&&this.isLoadFromPath){let _=this,b=e.getMxObject();MxThreeJS.loadSVG(this.svgPath,void 0,E=>{if(E){let I=E;if(I.boxSize)_.svgBoxSize=I.boxSize.clone();else{let G=new THREE.Box3().setFromObject(E);_.svgBoxSize||(_.svgBoxSize=new THREE.Vector3),_.svgBoxSize.x=G.max.x-G.min.x,_.svgBoxSize.y=G.max.y-G.min.y}let[O,N]=_.calcVewSize(n);_.svgBoxSize&&(E.scale.x=O/_.svgBoxSize.x,E.scale.y=N/_.svgBoxSize.y),E.scale.z=E.scale.x,_.svgReverse&&(E.scale.y*=-1),_.svgMirror&&(E.scale.x*=-1),E.rotateZ(_.svgRotate),_.isSvgDirtyLocation=!0;let A=new THREE.Color(e.getColor()),z=0;E.traverse(function(G){G.material&&(G.material=G.material.clone(),G.material.transparent=!0,G.material.depthTest=!1,_.useSvgColor||(z<_.svgChildColor.length?G.material.color=new THREE.Color(_.svgChildColor[z]):G.material.color=A),z++)}),_.svg=E,_.setNeedUpdateDisplay(),b.updateDisplay()}else console.log("mx LoadSVG:"+_.svgPath+" failed");_.isLoadFromPath=!1})}else if(this.material){let _=Math.abs(o.x-s.x),b=Math.abs(o.y-s.y),E=new THREE.PlaneGeometry(_,b),I=Math.min(o.x,s.x),O=Math.min(o.y,s.y);for(let A=0;A<E.vertices.length;A++)E.vertices[A].x+=I+.5*_,E.vertices[A].y+=O+.5*b,E.vertices[A].z=0;let N=new THREE.Mesh(E,this.material);N.material.depthTest=!1,e.drawEntity(N)}else if(this.isLoadMaterialFromPath&&this.imagePath.length>0){let _=this,b=e.getMxObject();MxFun.loadImageMaterial(this.imagePath,E=>{this.isLoadMaterialFromPath=!1,E&&(_.material=E,_.setNeedUpdateDisplay(),b.updateDisplay())})}this.fixedSize||(e.drawSelectLine(o,s),e.drawSelectLine(c,l),e.drawSelectLine(o,c),e.drawSelectLine(c,s),e.drawSelectLine(s,l),e.drawSelectLine(l,o))}else e.drawLine(o,c),e.drawLine(c,s),e.drawLine(s,l),e.drawLine(l,o);this.imagePath.length>0&&e.setMatrix(null)}setSvgPath(e,r=!1){return Gr(this,null,function*(){this.svgPath=e,this.svg=null,this.isLoadFromPath=!0,this.svgBoxSize=null,r&&(yield MxThreeJS.loadSVG(e))})}getSvgPath(){return this.svgPath}setSvgPostion(e){this.svgPos=e.clone(),this.isSvgDirtyLocation=!0}setImagePath(e,r){this.imagePath=e,r?(this.material=r,this.isLoadMaterialFromPath=!1):(this.material=null,this.isLoadMaterialFromPath=!0)}getImagePath(){return this.imagePath}getSvgPostion(){return this.svgPos}setSvgSize(e){this.svgSize=e,this.isSvgDirtyLocation=!0}getSvgSize(){return this.svgSize}setSvgAlignmentRatio(e){this.svgAlignmentRatio=e,this.isSvgDirtyLocation=!0}getSvgAlignmentRatio(){return this.svgAlignmentRatio}getText(e){return e<this.aryText.length?this.aryText[e]:null}addText(e){this.aryText.push(e)}getGripPoints(){let e=[];e.push(this.svgPos);let r=0;for(;r<this.aryText.length;r++){let n=this.aryText[r];if(n.move){let o=new THREE.Vector3(n.txtPos.x,n.txtPos.y,0);if(this.fixedSize){let s=MxFun.getCurrentDraw();n.txtPos.x>0?o.x=this.svgPos.x+s.screenCoordLong2Doc(n.txtPos.x):o.x=this.svgPos.x-s.screenCoordLong2Doc(n.txtPos.x),n.txtPos.y>0?o.y=this.svgPos.y+s.screenCoordLong2Doc(n.txtPos.y):o.y=this.svgPos.y-s.screenCoordLong2Doc(n.txtPos.y)}e.push(o)}}return e}moveGripPointsAt(e,r){if(e==0)this.svgPos.add(r),this.fixedSize||this.aryText.forEach(n=>{n.txtPos.add(r)});else if(e-1>=0&&e-1<this.aryText.length){let n=this.aryText[e-1];if(n.move)if(this.fixedSize){let o=MxFun.getCurrentDraw();n.txtPos.x+=o.docCoordLong2Screen(r.x),n.txtPos.y+=o.docCoordLong2Screen(r.y)}else n.txtPos.add(r)}return this.isSvgDirtyLocation=!0,!0}calcSvgPosition(e){if(!this.svg||!this.isSvgDirtyLocation)return;this.isSvgDirtyLocation=!1;let[r,n]=this.calcVewSize(e);this.svg.position.x=this.svgPos.x-r*this.svgAlignmentRatio.x-this.svgMargin.x*r,this.svg.position.y=this.svgPos.y-n*this.svgAlignmentRatio.y-this.svgMargin.y*n}dwgIn(e){this.onDwgIn(e),this.fixedSize=e.fixedSize,this.fixedSize?this.svg=null:e.type==MxType.MxCloneType.kClone&&e.svg&&(this.svg=e.svg.clone()),this.svgPos.copy(e.svgPos),this.svgPath=e.svgPath.substr(0),this.svgSize.copy(e.svgSize),this.svgAlignmentRatio.copy(e.svgAlignmentRatio),this.isSvgDirtyLocation=!0,this.svg||(this.isLoadFromPath=!0),this.svgBoxSize=null;let r=e.txts;return this.aryText=[],r.forEach(n=>{let o=new MxDbSVGText;o.txt=n.txt,o.txtHeight=n.txtHeight,o.txtPos.copy(n.txtPos),o.move=n.move,o.drawConnectingLine=n.drawConnectingLine,this.aryText.push(o)}),this.svgRotate=e.svgRotate,this.useSvgColor=e.useSvgColor,this.svgReverse=e.svgReverse,this.svgMirror=e.svgMirror,this.svgMargin=e.svgMargin,e.svgChildColor?this.svgChildColor=e.svgChildColor:this.svgChildColor=[],this.imagePath=e.imagePath.substr(0),this.isLoadMaterialFromPath=!0,e.material&&(this.material=e.material),!0}dwgOut(e){this.onDwgOut(e);let r,n=this.getMxObject();return e.type==MxType.MxCloneType.kClone&&(e.svg=this.svg),e.svgPath=this.svgPath,e.svgPos=this.svgPos,e.svgSize=this.svgSize,e.svgAlignmentRatio=this.svgAlignmentRatio,e.txts=[],e.type==MxType.MxCloneType.kSaveDwgClone&&n&&(r=this.calcSvgDrawRect(n)),this.aryText.forEach(o=>{let s={txtPos:o.txtPos,txt:o.txt,txtHeight:o.txtHeight,color:o.color,_txtAspectRatio:o._txtAspectRatio,move:o.move,drawConnectingLine:o.drawConnectingLine};e.type==MxType.MxCloneType.kSaveDwgClone&&(o._connectingLine&&(s.connectingLine=o._connectingLine.geometry.vertice),o._underLine&&(s._underLine=o._underLine.geometry.vertice)),e.txts.push(s)}),e.fixedSize=this.fixedSize,e.svgRotate=this.svgRotate,e.useSvgColor=this.useSvgColor,e.svgReverse=this.svgReverse,e.svgMirror=this.svgMirror,e.svgMargin=this.svgMargin,e.svgChildColor=this.svgChildColor,e.type==MxType.MxCloneType.kSaveDwgClone&&(e.svgRect=r),e.imagePath=this.imagePath,e.type==MxType.MxCloneType.kDragClone&&(e.material=this.material),e}create(){return new MxDbSVG}transformBy(e){this.svgPos.applyMatrix4(e),this.isSvgDirtyLocation=!0,this.fixedSize||this.aryText.forEach(r=>{r.txtPos.applyMatrix4(e)})}getTypeName(){return"MxDbSVG"}setColor(e){if(super.setColor(e),this.svg){let r=new THREE.Color(this.color);this.svg.traverse(function(n){n.material&&(n.material.color=r)})}return this}setSvg(e){this.svg=e,this.isLoadFromPath=!1,this.svgBoxSize=null}calcSvgBoxSize(e){if(!this.svgBoxSize)if(e.boxSize)this.svgBoxSize=e.boxSize.clone();else{let r=new THREE.Box3().setFromObject(e);this.svgBoxSize||(this.svgBoxSize=new THREE.Vector3),this.svgBoxSize.x=r.max.x-r.min.x,this.svgBoxSize.y=r.max.y-r.min.y}}reComputeSVG(){if(!this.svg)return;let e=this.getMxObject();if(!e)return;this.calcSvgBoxSize(this.svg);let[r,n]=this.calcVewSize(e);this.svgBoxSize&&(this.svg.scale.x=r/this.svgBoxSize.x,this.svg.scale.y=n/this.svgBoxSize.y),this.svg.scale.z=this.svg.scale.x,this.svgReverse&&(this.svg.scale.y*=-1),this.svgMirror&&(this.svg.scale.x*=-1),this.isSvgDirtyLocation=!0,this.calcSvgPosition(e)}onViewChange(){if(!this.fixedSize)return!1;if(this.imagePath.length>0)return this.setNeedUpdateDisplay(!1),!0;let e=this.getMxObject();if(e==null)return!1;if(this.svg){this.calcSvgBoxSize(this.svg);let[c,l]=this.calcVewSize(e);this.svgBoxSize&&(this.svg.scale.x=c/this.svgBoxSize.x,this.svg.scale.y=l/this.svgBoxSize.y),this.svg.scale.z=this.svg.scale.x,this.svgReverse&&(this.svg.scale.y*=-1),this.svgMirror&&(this.svg.scale.x*=-1),this.isSvgDirtyLocation=!0,this.calcSvgPosition(e)}let r=this.calcSvgDrawRect(e),n=r.cenpt,o=r.sizew,s=this;return this.aryText.forEach(c=>{if(c._txtObject&&e){let v=e.screenCoordLong2Doc(c.txtHeight);if(v>1e-5){c._txtAspectRatio<=0&&(c._txtAspectRatio=c._txtObject.scale.x/c._txtObject.scale.y),c._txtObject.scale.set(c._txtAspectRatio*v*1.5,1.5*v,1),c.txtPos.x>0?c._txtObject.position.x=s.svgPos.x+e.screenCoordLong2Doc(c.txtPos.x):c._txtObject.position.x=s.svgPos.x-e.screenCoordLong2Doc(c.txtPos.x),c.txtPos.y>0?c._txtObject.position.y=s.svgPos.y+e.screenCoordLong2Doc(c.txtPos.y):c._txtObject.position.y=s.svgPos.y-e.screenCoordLong2Doc(c.txtPos.y);let x=c._txtObject.position;if(c._txtObject.updateMatrix(),c._underLine){const w=new THREE.Box3;let _=c._txtObject.parent;c._txtObject.parent=null,w.expandByObject(c._txtObject),c._txtObject.parent=_;let b=new THREE.Vector3(w.min.x,w.min.y+.1*v,0),E=new THREE.Vector3(w.max.x,w.min.y+.1*v,0);(l=new THREE.Geometry).vertices.push(b,E),c._underLine.geometry=l}if(c._connectingLine){let w=n.clone().sub(x);w.normalize();let _=n.clone().sub(w.clone().multiplyScalar(o)),b=x.clone().add(w.clone().multiplyScalar(v));var l;(l=new THREE.Geometry).vertices.push(_,b),c._connectingLine.geometry=l}}}}),!0}}function drawMxDbPolyline(){const t=new MrxDbgUiPrPoint;t.setMessage(`
  3274. \u6307\u5B9A\u7B2C\u4E00\u70B9:`);let e,r=new MxDbPolyline;t.go(n=>{if(n!=0)return;let o=t.value();e||(e=o.clone());let s=o;const c=new McEdGetPointWorldDrawObject;c.setDraw((v,x)=>{x.setColor(16711680),x.drawLine(s,v),x.drawCustomEntity(r)}),t.setUserDraw(c),t.setMessage(`
  3275. \u6307\u5B9A\u4E0B\u4E00\u70B9:`);let l=0;r.addVertexAt(o),t.goWhile(v=>{if(v==0)s=t.value(),r.addVertexAt(s),++l>=2?(t.setMessage(`
  3276. \u6307\u5B9A\u4E0B\u4E00\u70B9:`),t.setKeyWords("[\u95ED\u5408(C)/\u653E\u5F03(U)]")):l>0?(t.setMessage(`
  3277. \u6307\u5B9A\u4E0B\u4E00\u70B9:`),t.setKeyWords("[\u653E\u5F03(U)]")):(t.setMessage(`
  3278. \u6307\u5B9A\u7B2C\u4E00\u70B9:`),t.setKeyWords(""));else if(v==1){if(t.isKeyWordPicked("C"))return{exit:!0};t.isKeyWordPicked("U")&&console.log("Mx_Line undo....")}},()=>{MxFun.getCurrentDraw().addMxEntity(r)})})}MxDbSVG.cmd="Mx_ModelFixedSvg",MxDbSVG.draw=drawMxDbSVG,addRegisterMxDbEntity(MxDbSVG);class MxDbPolyline extends MxDbEntity{constructor(){super(...arguments),this.points=[]}getTypeName(){return"MxDbPolyline"}worldDraw(e){this.points.length<2||e.drawLines(this.points)}getGripPoints(){return this.points}moveGripPointsAt(e,r){return!(e>=this.points.length||(this.points[e].add(r),0))}create(){return new MxDbPolyline}dwgIn(e){this.onDwgIn(e);let r=e.points;return this.points=[],r.forEach(n=>{this.points.push(new THREE.Vector3(n.x,n.y,n.z))}),!0}dwgOut(e){return this.onDwgOut(e),e.points=this.points,e}addVertexAt(e){this.points.push(e)}numVerts(){return this.points.length}getPointAt(e){return e<this.points.length?this.points[e]:null}setPointAt(e,r){return e<this.points.length&&(this.points[e]=r,!0)}}function drawMxDb2LineAngularDimension(){const t=new MrxDbgUiPrPoint,e=MxFun.getCurrentDraw(),r=new MxDb2LineAngularDimension,n=new McEdGetPointWorldDrawObject;return t.setMessage(`
  3279. \u6307\u5B9A\u7B2C\u4E00\u70B9:`),t.go(o=>{o===0&&(t.setMessage(`
  3280. \u6307\u5B9A\u7B2C\u4E8C\u4E2A\u89D2\u5EA6\u70B9:`),r.point1=t.value(),n.setDraw((s,c)=>{r.point2=s,n.drawLine(r.point1,s)}),t.setUserDraw(n),t.go(s=>{t.setMessage(`
  3281. \u6307\u5B9A\u6700\u540E\u4E00\u4E2A\u70B9:`),s===0&&(r.point2=t.value(),n.setDraw((c,l)=>{r.point3=c,n.drawCustomEntity(r)}),t.go(c=>{c===0&&e.addMxEntity(r)}))}))}),r}MxDbPolyline.cmd="Mx_Lines",MxDbPolyline.draw=drawMxDbPolyline,addRegisterMxDbEntity(MxDbPolyline);const propertyDbKeys$6=["colors","point1","point2","point3"];class MxDb2LineAngularDimension extends MxDbEntity{constructor(e){if(super(),this.point1=new THREE.Vector3,this.point2=new THREE.Vector3,this.point3=new THREE.Vector3,this.colors=[],e){const{points:r,colors:n}=e;r&&this.setPoints(r),n&&this.setColor(n)}}calculateLineAngle(e,r,n){const o=2*Math.PI/360;return{startAngle:180*Math.atan2(r.y-e.y,r.x-e.x)/Math.PI*o,endAngle:180*Math.atan2(n.y-e.y,n.x-e.x)/Math.PI*o}}setPoints(e){const[r,n,o]=e;return r&&(this.point1=r),n&&(this.point2=n),o&&(this.point3=o),this}setColor(e){return lodash.isArray(e)?this.colors=e:this.color=e,this}worldDraw(e){if(e.getType()==McGiWorldDrawType$1.kWorldDraw||e.getType()==McGiWorldDrawType$1.kDynDragDraw){const[r,n,o,s]=this.colors||[],c=this.getColor(),l=e.getMxObject();e.setOpacity(this.opacity),e.setColor(r||c),e.drawLine(this.point1,this.point2),e.setColor(n||c),e.drawLine(this.point2,this.point3);const{startAngle:v,endAngle:x}=this.calculateLineAngle(this.point2,this.point1,this.point3),w=this.point2.distanceTo(this.point1),_=this.point2.distanceTo(this.point3),b=Math.min(w,_)/4;let E=THREE.MathUtils.radToDeg(v-x);E<0&&(E+=360);let I=l.screenCoordLong2Doc(50);const O=new THREE.ArcCurve(this.point2.x,this.point2.y,b,v,x,!0),N=new THREE.Geometry().setFromPoints(O.getPoints(50));e.setColor(o||c),e.drawGeometryLines(N);const A=O.getPoint(.5);let z=new THREE.Vector3(A.x,A.y,0);const G=z.sub(this.point2),V=G.length()+.5*I;G.normalize().multiplyScalar(V),z=this.point2.clone().add(G),e.setColor(s||c),e.drawText(E.toFixed(3)+"\xB0",.5*I,0,z)}else e.drawLine(this.point1,this.point2),e.drawLine(this.point3,this.point2)}getGripPoints(){return[this.point1,this.point2,this.point3]}moveGripPointsAt(e,r){return e===0?this.point1.add(r):e===1?this.point2.add(r):e===2&&this.point3.add(r),!0}dwgIn(e){return this.onDwgIn(e),this.dwgInHelp(e,propertyDbKeys$6),!0}dwgOut(e){return this.onDwgOut(e),this.dwgOutHelp(e,propertyDbKeys$6),e}create(){return new MxDb2LineAngularDimension}transformBy(e){this.point1.applyMatrix4(e),this.point2.applyMatrix4(e)}getTypeName(){return"MxDb2LineAngularDimension"}}MxDb2LineAngularDimension.cmd="Mx_AngleSurveying",MxDb2LineAngularDimension.draw=drawMxDb2LineAngularDimension,addRegisterMxDbEntity(MxDb2LineAngularDimension);class MxFilters{constructor(){this.uniformObj={},this.filtersStr="",this.filtersTypes="",this.VSHADER_SOURCE=`
  3282. varying vec2 v_Uv;
  3283. void main () {
  3284. v_Uv = uv;
  3285. gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
  3286. }
  3287. `,this.FSHADER_SOURCE=`
  3288. varying vec2 v_Uv;
  3289. uniform sampler2D e_Texture;
  3290. uniform mat4 colorMatrix;
  3291. ${this.filtersStr}
  3292. void main () {
  3293. vec4 color = texture2D( e_Texture, v_Uv );
  3294. color = color * colorMatrix;
  3295. ${this.filtersTypes}
  3296. gl_FragColor = color;
  3297. }`,this._matrix=new THREE.Matrix4}channel({r:e=1,g:r=1,b:n=1}){return this._matrix=new THREE.Matrix4().set(e,0,0,0,0,r,0,0,0,0,n,0,0,0,0,1).multiply(this._matrix),this}brightness(e){return this._matrix=new THREE.Matrix4().set(e,0,0,0,0,e,0,0,0,0,e,0,0,0,0,1).multiply(this._matrix),this}saturate(e){const r=.2126*(1-e),n=.7152*(1-e),o=.0722*(1-e);return this._matrix=new THREE.Matrix4().set(r+e,n,o,0,r,n+e,o,0,r,n,o+e,0,0,0,0,1).multiply(this._matrix),this}contrast(e){const r=.5*(1-e);return this._matrix=new THREE.Matrix4().set(e,0,0,0,0,e,0,0,0,0,e,0,r,r,r,1).multiply(this._matrix),this}opacity(e){return this._matrix=new THREE.Matrix4().set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,e).multiply(this._matrix),this}invert(e){const r=1-2*e;return this._matrix=new THREE.Matrix4().set(r,0,0,0,0,r,0,0,0,0,r,0,e,e,e,1).multiply(this._matrix),this}grayscale(e=1){const r=.2126*e,n=.7152*e,o=.0722*e;return this._matrix=new THREE.Matrix4().set(r+1-e,n,o,0,r,n+1-e,o,0,r,n,o+1-e,0,0,0,0,1).multiply(this._matrix),this}sepia(e=1){return this._matrix=new THREE.Matrix4().set(1-.607*e,.769*e,.189*e,0,.349*e,1-.314*e,.168*e,0,.272*e,.534*e,1-.869*e,0,0,0,0,1).multiply(this._matrix),this}hueRotate(e){const r=e/180*Math.PI,n=Math.cos(r),o=Math.sin(r),s=.2126,c=.7152,l=.0722;return this._matrix=new THREE.Matrix4().set(s+.7874*n+o*-s,c+n*-c+o*-c,l+n*-l+.9278*o,0,s+n*-s+.143*o,c+n*(1-c)+.14*o,l+n*-l+-.283*o,0,s+n*-s+-.7874*o,c+n*-c+o*c,l+.9278*n+o*l,0,0,0,0,1).multiply(this._matrix),this}convolution(e,r=1/9,n=521){return this.uniformObj=Object.assign(Object.assign({},this.uniformObj),{cKernel:{value:e.toArray()},stStep:{value:r},scaleFactor:{value:n}}),this.filtersTypes.indexOf("convolutionTextureColor")<0&&(this.filtersStr+=`
  3298. uniform float cKernel[9];
  3299. uniform float stStep;
  3300. uniform float scaleFactor;
  3301. vec4 convolutionTextureColor(vec4 color) {
  3302. vec2 offsets[9];
  3303. offsets[0] = vec2(-1.0,-1.0);
  3304. offsets[1] = vec2(0.0,-1.0);
  3305. offsets[2] = vec2(1.0,-1.0);
  3306. offsets[3] = vec2(-1.0,0.0);
  3307. offsets[4] = vec2(0.0,0.0);
  3308. offsets[5] = vec2(1.0,0.0);
  3309. offsets[6] = vec2(-1.0,1.0);
  3310. offsets[7] = vec2(0.0,1.0);
  3311. offsets[8] = vec2(1.0,1.0);
  3312. vec4 sum = color;
  3313. for(int i = 0; i < 9; i++) {
  3314. sum = sum + cKernel[i] * scaleFactor * texture2D(e_Texture, v_Uv + offsets[i] / stStep);
  3315. };
  3316. return sum;
  3317. }`,this.filtersTypes+=`color = convolutionTextureColor(color);
  3318. `),this}reset(){return this.uniformObj={},this.filtersStr="",this.filtersTypes="",this._matrix=new THREE.Matrix4,this}_getFilterShaderData(e){return{uniforms:Object.assign({e_Texture:{value:e},colorMatrix:{value:this._matrix}},this.uniformObj),vertexShader:this.VSHADER_SOURCE,fragmentShader:this.FSHADER_SOURCE}}_getFilterColor(e="#000000",r=1){e=new THREE.Color(e);let{r:n,g:o,b:s}=e;const c=this._matrix.toArray();c[12],c[13],c[14],c[15];const l=c[0]*n+c[1]*n+c[2]*n+c[3]*r,v=c[4]*o+c[5]*o+c[6]*o+c[7]*r,x=c[8]*s+c[9]*s+c[10]*s+c[11]*r;return e.setRGB(l,v,x),e}toJSON(){return JSON.stringify({matrix:this._matrix.toArray(),uniformObj:this.uniformObj,filtersStr:this.filtersStr,filtersTypes:this.filtersTypes})}static fromJSON(e){const{matrix:r,uniformObj:n,filtersStr:o,filtersTypes:s}=JSON.parse(e),c=new MxFilters;return c._matrix=new THREE.Matrix4().fromArray(r),c.uniformObj=n,c.filtersStr=o,c.filtersTypes=s,c}}class MxDbShape extends MxDbEntity{constructor(){super(...arguments),this.isLoadMaterialFromPath=!0,this.stroke="#fff",this.strokeLineWidth=2,this.isStrokeDashLine=!1,this.isFill=!1,this._fillImageSrc=null,this.curveSegments=50,this.closed=!0,this.filter=null,this._cornerRadius=[],this._propertyDbKeys=["isFill","stroke","strokeLineWidth","isStrokeDashLine","closed","cornerRadius","fillImageSrc","fillImageParam","curveSegments"]}setStroke(e){return this.stroke=e,this}setStrokeLineWidth(e){return this.strokeLineWidth=e,this}setIsStrokeDashLine(e){return this.isStrokeDashLine=e,this}setIsFill(e){return this.isFill=e,this}get fillImageSrc(){return this._fillImageSrc}set fillImageSrc(e){this._fillImageSrc=e,this.isLoadMaterialFromPath=!0,this.material=null,this.fillImageSrc&&(this.isFill=!0),e!==!1&&e!==null||(this.setNeedUpdateDisplay(),MxFun.updateDisplay())}setFillImageSrc(e){return this.fillImageSrc=e,this}setFillImageParam(e){this.fillImageParam=e===void 0?e:Object.assign(this.fillImageParam,e)}setCurveSegments(e){return this.curveSegments=e,this}setClosed(e){return this.closed=e,this}getFilter(){return this.filter}setFilter(e){this.filter=e,this.isLoadMaterialFromPath=!0,this.material=null}get cornerRadius(){return this._cornerRadius}set cornerRadius(e){this.setCornerRadius(e)}setCornerRadius(e,r=!0){this._cornerRadius=e instanceof Array?e.map(n=>r?MxFun.screenCoordLong2Doc(n):n):r?MxFun.screenCoordLong2Doc(e):e}getTypeName(){return"MxDbShape"}getShapePoints(e){const{curveSegments:r}=this;return this.points=e.getPoints(r).map(n=>n instanceof THREE.Vector2?new THREE.Vector3(n.x,n.y,0):n),this.points}createPaths(e){return this._paths=new THREE.CurvePath,Array.isArray(e)?e.forEach(r=>this._paths.add(r)):this._paths.add(e),this._paths}_draw(e,r){let{isFill:n,closed:o,opacity:s,dLineWidth:c,lineWidthByPixels:l}=this;e.setOpacity(s),e.setLineWidthByPixels(l),e.setLineWidth(c);const v=e.getColor();e.setColor(this.filter?this.filter._getFilterColor(this.color,this.opacity):this.color);const x=this.getCornerRadiusPoints(o||n?this.getClosedPoints(r):r);n?!this.fillImageSrc&&e.drawSolid(x):e.drawLines(x),this._fillImg(e,x),e.setColor(v)}getCornerRadiusPoints(e){const{cornerRadius:r}=this;if(!r)return e;const n=typeof r=="number"?e.map(()=>r):r;return n.length>0?getToGenerateRoundedCorners(e,n):e}_drawStoreLine(e,r,n){const{isFill:o,stroke:s,strokeLineWidth:c}=this,l=e.getLineWidth(),v=e.getColor(),x=e.isDashLineDisplay();s&&o&&(e.setDashLineDisplay(this.isStrokeDashLine),e.setColor(s),e.setLineWidth(c),n?n(e):e.drawLines(this.getCornerRadiusPoints(this.getClosedPoints(r))),e.setColor(v),e.setLineWidth(l),e.setDashLineDisplay(x))}getClosedPoints(e){return[...e,e[0]]}getTotalLength(){if(this.points){let e=0;return this.points.reduce((r,n)=>(e+=r.distanceTo(n),n)),e}if(this._paths)return this._paths.getLength()+(this.closedLine?this.closedLine.getLength():0)}getGetLength(){return this._paths.getLength()}getArea(){return this.points?McGeTool.calcArea(this.closed?this.getClosedPoints(this.points):this.points):0}worldDraw(e){const r=this.createPaths(new THREE.Curve),n=this.getShapePoints(r);this._draw(e,n),this._drawStoreLine(e,n)}_fillImg(e,r){const n={transparent:!0,depthTest:!1,opacity:this.opacity,visible:this.visible};if(!this.isFill||!this.fillImageSrc)return;if(!this.material){let v=this;return void MxFun.loadImageMaterial(this.fillImageSrc,x=>{v.isLoadMaterialFromPath=!1,x&&(v.material=x,v.setNeedUpdateDisplay(),MxFun.updateDisplay())})}const o=r.map(({x:v,y:x})=>new THREE.Vector2(v,x));let s=this.material,c=new THREE.ShapeGeometry(new THREE.Shape(o));if(c=repairGeometryFaceVertexUvs(c),this.filter){const v=s.map,x=this.filter._getFilterShaderData(v);s=new THREE.ShaderMaterial(Object.assign(Object.assign({},x),n))}if(s.depthTest=!1,s.transparent=!0,s.opacity=this.opacity,s.visible=this.visible,this.fillImageParam){const v=this.fillImageParam;for(let x in this.fillImageParam)this.material.map[x]=v[x]}let l=new THREE.Mesh(c,s);e.drawEntity(l)}getGripPoints(){return[]}moveGripPointsAt(e,r){return!0}dwgIn(e){return this.onDwgIn(e),this.dwgInHelp(e,this._propertyDbKeys),this.isLoadMaterialFromPath=!0,this.material=null,e.type===MxType.MxCloneType.kMxFileClone?e.filter&&(this.filter=MxFilters.fromJSON(e.filter)):e.filter&&(this.filter=e.filter),!0}dwgOut(e){var r;return this.onDwgOut(e),this.dwgOutHelp(e,this._propertyDbKeys),e.type===MxType.MxCloneType.kMxFileClone?this.filter&&(e.filter=(r=this.filter)===null||r===void 0?void 0:r.toJSON()):e.filter=this.filter,e}transformBy(e){this.points&&this.points.forEach(r=>{r.applyMatrix4(e)})}}class MxDbEllipseShape extends MxDbShape{constructor(){super(),this.center=new THREE.Vector3,this.xRadius=10,this.yRadius=10,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!1,this.rotation=0,this.isClosedToCenter=!0,this._propertyDbKeys=[...this._propertyDbKeys,"center","xRadius","yRadius","startAngle","endAngle","clockwise","rotation","isClosedToCenter"]}getTypeName(){return"MxDbEllipseShape"}setCenter(e){return this.center=e,this}setXRadius(e){return this.xRadius=e,this}setYRadius(e){return this.yRadius=e,this}setStartAngle(e){return this.startAngle=e,this}setEndAngle(e){return this.endAngle=e,this}setClockwise(e){return this.clockwise=e,this}setRotation(e){return this.rotation=e,this}setIsClosedToCenter(e){return this.isClosedToCenter=e,this}worldDraw(e){this.drawEllipseShape(e)}drawEllipseShape(e){let{startAngle:r,endAngle:n,clockwise:o}=this;const s=this.createEllipseCurve(),c=this.createPaths(s);let l=this.getShapePoints(c);return this._draw(e,l),this._drawStoreLine(e,l),{centralAngle:o?n>r?THREE.MathUtils.radToDeg(s.aEndAngle-s.aStartAngle):360-Math.abs(THREE.MathUtils.radToDeg(s.aEndAngle-s.aStartAngle)):r>n?Math.abs(THREE.MathUtils.radToDeg(s.aEndAngle-s.aStartAngle)):360-THREE.MathUtils.radToDeg(s.aEndAngle-s.aStartAngle),curve:s,points:l}}createEllipseCurve(e=this.center.x,r=this.center.y,n=this.xRadius,o=this.yRadius,s=this.startAngle,c=this.endAngle,l=this.clockwise,v=this.rotation){return new THREE.EllipseCurve(e,r,n,o,s,c,l,v)}getCornerRadiusPoints(e){return e}getClosedPoints(e){try{let r=(this._paths||new THREE.CatmullRomCurve3(e,!1,"catmullrom",0)).getLength();this.closedLine=this.getClosedLine(e);const n=this.closedLine.getLength();let o=this.curveSegments/r,s=2.5*(r>this.curveSegments?n*o:1);if(s>20*this.curveSegments&&(s=20*this.curveSegments),s<=0)return e;const c=this.closedLine.getPoints(s);return[...e,...c]}catch(r){return[...e,e[0]]}}getClosedLine(e){const{isClosedToCenter:r,center:n}=this;let o=r?[e[e.length-1],n,e[0]]:[e[e.length-1],e[0]];return new THREE.CatmullRomCurve3(o,!1,"catmullrom",.01)}getGripPoints(){return[this.center]}moveGripPointsAt(e,r){return e===0&&this.center.add(r),!0}}class MxDbCircleShape extends MxDbEllipseShape{getTypeName(){return"MxDbCircleShape"}get radius(){return this.xRadius}set radius(e){this.xRadius=e,this.yRadius=e}setRadius(e){return this.radius=e,this}setXRadius(e){return this.setRadius(e),this}setYRadius(e){return this.setRadius(e),this}}function drawMx3PointArc(){const t=new MrxDbgUiPrPoint,e=new McEdGetPointWorldDrawObject,r=new Mx3PointArc;t.setUserDraw(e),t.setMessage(`
  3319. \u786E\u5B9A\u5706\u5F27\u5F00\u59CB\u70B9:`),t.go(n=>{n===MrxDbgUiPrBaseReturn$1.kOk&&(r.point1=t.value(),e.setDraw(o=>{e.drawLine(r.point1,o)})),t.setMessage(`
  3320. \u786E\u5B9A\u5706\u5F27\u7ED3\u675F\u70B9:`),t.go(o=>{o===MrxDbgUiPrBaseReturn$1.kOk&&(r.point2=t.value(),e.setDraw(s=>{r.point3=s,e.drawCustomEntity(r)})),t.setMessage(`
  3321. \u786E\u5B9A\u5706\u5F27\u4E0A\u4EFB\u610F\u4E00\u70B9:`),t.go(s=>{if(s===MrxDbgUiPrBaseReturn$1.kOk){MxFun.getCurrentDraw().addMxEntity(r);const{radius:c,angle:l,arcLength:v}=createThreePointArc(r.point1,r.point2,r.point3,!0);console.log("\u534A\u5F84:",c),console.log("\u5706\u5F27\u5F27\u957F:",v,r.getTotalLength())}})})})}class Mx3PointArc extends MxDbCircleShape{constructor(){super(),this.point1=new THREE.Vector3,this.point2=new THREE.Vector3,this.point3=new THREE.Vector3,this.autoClockwise=!0,this.closed=!1,this.centralAngle=0,this._propertyDbKeys=[...this._propertyDbKeys,"point1","point2","point3","autoClockwise"]}getTypeName(){return"Mx3PointArc"}create(){return new Mx3PointArc}worldDraw(e){this.updateDataInfo();const{centralAngle:r}=this.drawEllipseShape(e);this.centralAngle=r}getGripPoints(){return[this.point1,this.point2,this.point3,this.center]}compute3PointAngle(e=this.point1,r=this.point2,n=this.point3){const o=calculateArcAngle(e,this.center,this.radius),s=calculateArcAngle(r,this.center,this.radius),c=calculateArcAngle(n,this.center,this.radius);return[o.angle,s.angle,c.angle]}upDateCenter(e=this.point1,r=this.point2,n=this.point3){return this.center=calculateArcOrigin(e,r,n),this.center}upDateRadius(e=this.point1){return this.radius=calculateRadiusArc(e,this.center),this.radius}upDataClockwise(e,r,n){const{autoClockwise:o}=this;o&&(this.clockwise=judgementArcRenderDirection(r,e,n))}updateDataInfo(){this.upDateCenter(this.point1,this.point2,this.point3),this.upDateRadius(this.point1);const[e,r,n]=this.compute3PointAngle();this.startAngle=THREE.MathUtils.degToRad(e),this.endAngle=THREE.MathUtils.degToRad(r),this.upDataClockwise(e,r,n)}getArcMidPoint(){const e=MxFun.getMxFunTHREE();this.updateDataInfo();let{startAngle:r,endAngle:n,center:o,radius:s,clockwise:c}=this;c?r<n&&(r+=2*Math.PI):r>n&&(n+=2*Math.PI);const l=(r+n)/2,v=o.x+s*Math.cos(l),x=o.y+s*Math.sin(l);return new e.Vector3(v,x,0)}moveGripPointsAt(e,r){return e===0?this.point1.add(r):e===1?this.point2.add(r):e===2?this.point3.add(r):e===3&&(this.point1.add(r),this.point2.add(r),this.point3.add(r)),this.upDateCenter(),!0}}Mx3PointArc.cmd="Mx_3PointArc",Mx3PointArc.draw=drawMx3PointArc,Mx3PointArc.isRegister=!1,addRegisterMxDbEntity(Mx3PointArc);const drawMx2PointArc=()=>Gr(void 0,null,function*(){const t=new MrxDbgUiPrPoint,e=new Mx2PointArc,r=yield t.go();if(!r)return;e.startPoint=r,t.setUserDraw((o,s)=>{e.endPoint=o,s.drawCustomEntity(e)});const n=yield t.go();n&&(e.endPoint=n,MxFun.getCurrentDraw().addMxEntity(e))});class Mx2PointArc extends Mx3PointArc{getTypeName(){return"Mx2PointArc"}create(){return new Mx2PointArc}get startPoint(){return this.point1}set startPoint(e){this.point1=e,this.point3.x,this.point1.x,this.point3.y,this.point2.y}get endPoint(){return this.point2}set endPoint(e){this.point2=e,this.point3=this.getArcMidPoint()}}function drawMxDbCoord(){const t=new MrxDbgUiPrPoint;t.setMessage(`
  3322. \u6307\u5B9A\u5750\u6807\u70B9:`),t.go(e=>{if(e!=0)return;const r=t.value();let n=new MxDbCoord;n.point1=r,n.point2=r.clone(),t.setBasePt(r),t.setUseBasePt(!0),t.setUserDraw((o,s)=>{n.point2=o,s.drawCustomEntity(n)}),t.setMessage(`
  3323. \u6307\u5B9A\u6807\u6CE8\u70B9:`),t.go(o=>{o==0?(n.point2=t.value(),MxFun.addToCurrentSpace(n)):console.log(o)})})}Mx2PointArc.cmd="Mx_2PointArc",Mx2PointArc.draw=drawMx2PointArc,Mx2PointArc.isRegister=!1,addRegisterMxDbEntity(Mx2PointArc);class MxDbCoord extends MxDbEntity{constructor(){super(...arguments),this.point1=new THREE.Vector3,this.point2=new THREE.Vector3}worldDraw(e){let r=e.getMxObject();e.drawLine(this.point1,this.point2);let n=this.point2.clone();var o=r.screenCoordLong2Doc(20),s=6*o;n.x=n.x+s,e.drawLine(this.point2,n);var c=new THREE.Vector3,l=new THREE.Vector3;let v=r.docCoord2Cad(this.point1.x,this.point1.y,this.point1.z),x=v.x.toFixed(3),w=v.y.toFixed(3);c.x=this.point2.x+.3*o+.5*s,c.y=this.point2.y+.1*o+.5*o,e.drawText(x,o,0,c),l.x=this.point2.x+.3*o+.5*s,l.y=this.point2.y-.1*o-.5*o,e.drawText(w,o,0,l)}getGripPoints(){let e=[];return e.push(this.point1),e.push(this.point2),e}moveGripPointsAt(e,r){return e==0?this.point1.add(r):e==1&&this.point2.add(r),!0}dwgIn(e){return this.onDwgIn(e),this.point1.copy(e.point1),this.point2.copy(e.point2),!0}dwgOut(e){return this.onDwgOut(e),e.point1=this.point1,e.point2=this.point2,e}create(){return new MxDbCoord}transformBy(e){this.point1.applyMatrix4(e),this.point2.applyMatrix4(e)}getTypeName(){return"MxDbCoord"}}function drawMxDbLine(){return Gr(this,null,function*(){const t=new MrxDbgUiPrPoint;t.setMessage(`
  3324. \u6307\u5B9A\u7B2C\u4E00\u70B9:`);let e=yield t.go();if(e==null)return;t.setBasePt(e.clone()),t.setUseBasePt(!0),t.setMessage(`
  3325. \u6307\u5B9A\u7B2C\u4E8C\u70B9:`);let r=yield t.go();if(r==null)return;let n=new MxDbLine;n.pt1=e,n.pt2=r,MxFun.addToCurrentSpace(n)})}MxDbCoord.cmd="Mx_Coord",MxDbCoord.draw=drawMxDbCoord,addRegisterMxDbEntity(MxDbCoord);class MxDbLine extends MxDbEntity{constructor(){super(...arguments),this.pt1=new THREE.Vector3,this.pt2=new THREE.Vector3}getTypeName(){return"MxDbLine"}worldDraw(e){e.drawLine(this.pt1,this.pt2)}setPoint1(e){this.pt1=e}getPoint1(){return this.pt1}setPoint2(e){this.pt2=e}getPoint2(){return this.pt2}getGripPoints(){let e=[];e.push(this.pt1),e.push(this.pt2);let r=new THREE.Vector3(this.pt1.x+.5*(this.pt2.x-this.pt1.x),this.pt1.y+.5*(this.pt2.y-this.pt1.y),0);return e.push(r),e}moveGripPointsAt(e,r){return e==0?this.pt1.add(r):e==1?this.pt2.add(r):e==2&&(this.pt1.add(r),this.pt2.add(r)),!0}dwgIn(e){return this.onDwgIn(e),this.pt1.copy(e.pt1),this.pt2.copy(e.pt2),!0}dwgOut(e){return this.onDwgOut(e),e.pt1=this.pt1,e.pt2=this.pt2,e}create(){return new MxDbLine}getGeomExtents(){return new THREE.Box3(this.pt1,this.pt2)}getGetLength(){return this.pt1.distanceTo(this.pt2)}}function drawMxDbRect(){return Gr(this,null,function*(){const t=new MrxDbgUiPrPoint;t.setMessage(`
  3326. \u6307\u5B9A\u7B2C\u4E00\u70B9:`);let e=yield t.go();if(!e)return;let r=new MxDbRect;r.pt1=e;const n=new McEdGetPointWorldDrawObject;n.setDraw(o=>{r.pt2=o,n.drawCustomEntity(r)}),t.setBasePt(e),t.setUseBasePt(!0),t.setUserDraw(n),t.setMessage(`
  3327. \u6307\u5B9A\u7B2C\u4E8C\u70B9:`),(yield t.go())&&(r.pt2=t.value(),MxFun.getCurrentDraw().addMxEntity(r))})}MxDbLine.cmd="Mx_Line",MxDbLine.draw=drawMxDbLine,addRegisterMxDbEntity(MxDbLine);class MxDbRect extends MxDbEntity{constructor(){super(...arguments),this.cornerRadius=[],this.pt1=new THREE.Vector3,this.pt2=new THREE.Vector3,this.isSolidColorFill=!1,this.isLoadMaterialFromPath=!0,this.material=null}worldDraw(e){let r=computeRectPoints(this.pt1,this.pt2);if(this.cornerRadius.length>0&&(r=getToGenerateRoundedCorners(r,this.cornerRadius)),e.getType()!=McGiWorldDrawType$1.kWorldDraw)return r.push(r[0]),void e.drawLines(r);const n={transparent:!0,depthTest:!1,opacity:this.opacity,visible:this.visible};if(this.isSolidColorFill){let o;r=r.map(({x:l,y:v})=>new THREE.Vector2(l,v)),o=new THREE.ShapeGeometry(new THREE.Shape(r));let s=new THREE.MeshBasicMaterial(Object.assign({color:this.filter?this.filter._getFilterColor(this.color,this.opacity):new THREE.Color(this.color)},n)),c=new THREE.Mesh(o,s);e.drawEntity(c)}else if(this.fillImageSrc){if(this.material){r=r.map(({x:l,y:v})=>new THREE.Vector2(l,v));let o=this.material,s=new THREE.ShapeGeometry(new THREE.Shape(r));if(s=repairGeometryFaceVertexUvs(s),this.filter){const l=o.map;this.fillImageParam&&(this.fillImageParam.center&&(l.center=this.fillImageParam.center),this.fillImageParam.offset&&(l.offset=this.fillImageParam.offset),this.fillImageParam.repeat&&(l.repeat=this.fillImageParam.repeat),this.fillImageParam.rotation&&(l.rotation=this.fillImageParam.rotation));const v=this.filter._getFilterShaderData(l);o=new THREE.ShaderMaterial(Object.assign(Object.assign({},v),n))}o.depthTest=!1,o.transparent=!0,o.opacity=this.opacity,o.visible=this.visible;let c=new THREE.Mesh(s,o);e.drawEntity(c)}else if(this.fillImageSrc.length>0&&this.isLoadMaterialFromPath){let o=this;MxFun.loadImageMaterial(this.fillImageSrc,s=>{this.isLoadMaterialFromPath=!1,s&&(o.material=s,o.setNeedUpdateDisplay(),MxFun.updateDisplay())})}}else{let o=new THREE.BufferGeometry().setFromPoints(r),s=new THREE.LineBasicMaterial(Object.assign({color:this.getColor()},n)),c=new THREE.LineLoop(o,s);e.drawEntity(c)}}getGripPoints(){let e=[];e.push(this.pt1);const r=new THREE.Line3(this.pt1,this.pt2);let n=new THREE.Vector3;return r.getCenter(n),e.push(n),e.push(this.pt2),e}moveGripPointsAt(e,r){return e==0?this.pt1.add(r):e==1?(this.pt1.add(r),this.pt2.add(r)):e==2&&this.pt2.add(r),!0}dwgIn(e){return this.onDwgIn(e),this.pt1.copy(e.pt1),this.pt2.copy(e.pt2),this.isSolidColorFill=e.isSolidColorFill,this.fillImageSrc=e.fillImageSrc,this.fillImageParam=e.fillImageParam,this.cornerRadius=e.cornerRadius,this.filter=e.filter,this.isLoadMaterialFromPath=!0,this.material=null,!0}dwgOut(e){return this.onDwgOut(e),e.pt1=this.pt1,e.pt2=this.pt2,e.isSolidColorFill=this.isSolidColorFill,e.fillImageSrc=this.fillImageSrc,e.fillImageParam=this.fillImageParam,e.cornerRadius=this.cornerRadius,e.filter=this.filter,e}create(){return new MxDbRect}transformBy(e){this.pt1.applyMatrix4(e),this.pt2.applyMatrix4(e)}setRadius(e,r=!0){this.cornerRadius=e instanceof Array?e.map(n=>r?MxFun.screenCoordLong2Doc(n):n):e>0?r?[MxFun.screenCoordLong2Doc(e),MxFun.screenCoordLong2Doc(e),MxFun.screenCoordLong2Doc(e),MxFun.screenCoordLong2Doc(e)]:[e,e,e,e]:[]}getTypeName(){return"MxDbRect"}getFilter(){return this.filter}setFilter(e){this.filter=e,this.isLoadMaterialFromPath=!0,this.material=null}setFillImagePath(e){this.fillImageSrc=e,this.isLoadMaterialFromPath=!0,this.material=null,this.fillImageSrc&&(this.isSolidColorFill=!1)}getFillImagePath(){return this.fillImageSrc}}function drawMxDbAlignedDimension(){let t=new MxDbAlignedDimension;const e=new MrxDbgUiPrPoint;return e.setMessage(`
  3328. \u6307\u5B9A\u7B2C\u4E00\u70B9:`),e.go(r=>{if(r!=0)return;const n=e.value();t.setPoint1(n),t.setColor(65314);const o=new McEdGetPointWorldDrawObject;o.setDraw(s=>{t.setPoint2(s),o.drawCustomEntity(t)}),e.setBasePt(n),e.setUseBasePt(!0),e.setUserDraw(o),e.setMessage(`
  3329. \u6307\u5B9A\u7B2C\u4E8C\u70B9:`),e.setInputToucheType(MxType.InputToucheType.kGetEnd),e.go(s=>{if(s!=0)return void console.log(s);const c=e.value();t.setPoint2(c),MxFun.getCurrentDraw().addMxEntity(t)})}),t}MxDbRect.cmd="Mx_DrawRect",MxDbRect.draw=drawMxDbRect,addRegisterMxDbEntity(MxDbRect);const propertyDbKeys$5=["point1","point2","fontColor"];class MxDbAlignedDimension extends MxDbEntity{constructor(e){if(super(),this.point1=new THREE.Vector3,this.point2=new THREE.Vector3,e){const{points:r,fontColor:n}=e;r&&this.setPoints(r),n&&(this.fontColor=n)}}setPoints(e){const[r,n]=e;r&&(this.point1=r),n&&(this.point2=n)}getTypeName(){return"MxDbAlignedDimension"}getDirection(e,r,n){const o=new THREE.Vector3(e.x,e.y,0),s=new THREE.Vector3(1,0,0),c=e.angleTo(s);let l=-1;(c<7*Math.PI/18||c>10*Math.PI/18)&&r.x>n.x&&(l=1);const v=new THREE.Matrix4;return v.makeRotationZ(Math.PI/2*l),o.applyMatrix4(v),o}getDimText(){return new THREE.Vector3(this.point1.x-this.point2.x,this.point1.y-this.point2.y,0).length().toFixed(3)}worldDraw(e){if(e.setOpacity(this.opacity),e.getType()==McGiWorldDrawType$1.kWorldDraw||e.getType()==McGiWorldDrawType$1.kDynDragDraw){let V=function(ne,W){Array.isArray(ne)?ne.forEach(B=>{V(B,W)}):ne.opacity=W};const r=this.point1,n=this.point2;let o,s,c,l,v,x,w;const _=new THREE.Vector3(r.x-n.x,r.y-n.y,0),b=this.getDirection(_,r,n),E=new THREE.Matrix4;E.makeScale(.01,.01,.01);const I=new THREE.Vector3(b.x,b.y,0);I.applyMatrix4(E);const O=new THREE.Vector3(r.x+I.x,r.y+I.y,0),N=new THREE.Vector3(n.x+I.x,n.y+I.y,0),A=this.getColor();x=MxThreeJS.createPoint(r,A),w=MxThreeJS.createPoint(n,A);const z=new THREE.Vector3(b.x,b.y,0),G=new THREE.Vector3(b.x,b.y,0);E.identity(),E.makeScale(.2,.2,0),z.applyMatrix4(E),E.identity(),E.makeScale(.02,.02,0),G.applyMatrix4(E),e.drawLine(O.x+2*G.x,O.y+2*G.y,N.x+2*G.x,N.y+2*G.y),o=MxThreeJS.createLine(new THREE.Vector3(O.x+3*G.x,O.y+3*G.y,0),new THREE.Vector3(r.x+.5*G.x,r.y+.5*G.y,0),A),s=MxThreeJS.createLine(new THREE.Vector3(N.x+3*G.x,N.y+3*G.y,0),new THREE.Vector3(n.x+.5*G.x,n.y+.5*G.y,0),A);{const ne=new THREE.Vector3(1,0,0);let W=_.angleTo(ne);const B=new THREE.Vector3(b.x,b.y,0);B.normalize();const q=r.distanceTo(n);_.y<0?W=W<Math.PI/2?2*Math.PI-W:Math.PI-W:W>Math.PI/2&&(W=Math.PI+W);const D=e.getMxObject();D&&(W-=D.getViewAngle());const F=this.getDimText();(c=MxThreeJS.creatTextSprite(F,new THREE.Vector3(N.x+_.x/2+B.x*q/15,N.y+_.y/2+B.y*q/15,0),.07*q,W,this.fontColor||A))!=null&&(c.material.opacity=this.opacity,e.drawEntity(c))}{E.identity(),E.makeScale(.08,.08,.08);const ne=new THREE.Matrix4;ne.makeRotationZ(17*Math.PI/18);let W=new THREE.Vector3(_.x,_.y,0);W.applyMatrix4(E),W.applyMatrix4(ne),ne.identity(),ne.makeRotationZ(17*-Math.PI/18);let B=new THREE.Vector3(_.x,_.y,0);B.applyMatrix4(E),B.applyMatrix4(ne);const q=new Array;q.push(new THREE.Vector3(O.x+2*G.x,O.y+2*G.y,0),new THREE.Vector3(O.x+2*G.x+W.x,O.y+W.y+2*G.y,0),new THREE.Vector3(O.x+2*G.x+B.x,O.y+B.y+2*G.y,0)),l=MxThreeJS.createTriangle(q,A),ne.identity(),ne.makeRotationZ(Math.PI/18),(W=new THREE.Vector3(_.x,_.y,0)).applyMatrix4(E),W.applyMatrix4(ne),ne.identity(),ne.makeRotationZ(-Math.PI/18),(B=new THREE.Vector3(_.x,_.y,0)).applyMatrix4(E),B.applyMatrix4(ne);const D=new Array;D.push(new THREE.Vector3(N.x+2*G.x,N.y+2*G.y,0),new THREE.Vector3(N.x+W.x+2*G.x,N.y+W.y+2*G.y,0),new THREE.Vector3(N.x+B.x+2*G.x,N.y+B.y+2*G.y,0)),v=MxThreeJS.createTriangle(D,A)}e.drawEntity(o),e.drawEntity(s),l&&(V(l.material,this.opacity),e.drawEntity(l)),v&&(V(v.material,this.opacity),e.drawEntity(v)),e.drawEntity(x),e.drawEntity(w)}else e.drawLine(this.point1,this.point2)}setPoint1(e){this.point1=e}setPoint2(e){this.point2=e}setColor(e){return lodash.isArray(e)?([this.color=this.color,this.fontColor=this.fontColor||this.color]=e,console.log("this.fontColor : ",this.fontColor)):this.color=e,this}getGripPoints(){let e=[];return e.push(this.point1),e.push(this.point2),e}moveGripPointsAt(e,r){return e==0?this.point1.add(r):(e=1)&&this.point2.add(r),!0}dwgIn(e){return this.onDwgIn(e),this.dwgInHelp(e,propertyDbKeys$5),!0}dwgOut(e){return this.onDwgOut(e),this.dwgOutHelp(e,propertyDbKeys$5),e}create(){return new MxDbAlignedDimension}}MxDbAlignedDimension.cmd="Mx_DimensionMeasurement",MxDbAlignedDimension.draw=drawMxDbAlignedDimension,addRegisterMxDbEntity(MxDbAlignedDimension);class MxDbHatch extends MxDbEntity{constructor(){super(...arguments),this.points=[]}worldDraw(e){e.getType()===McGiWorldDrawType$1.kWorldDraw?e.drawSolid(this.points):e.drawLines([...this.points,this.points[0]])}getTypeName(){return"MxDbHatch"}moveGripPointsAt(e,r){return e===0?this.points.forEach(n=>{n.add(r)}):this.points[e-1]&&this.points[e-1].add(r),!0}setPoints(e){this.points=e.map(r=>r.clone())}getGripPoints(){if(this.points.length>0){const{centerPoint:e}=computeBounding(this.points);return[e,...this.points]}return[]}dwgIn(e){this.onDwgIn(e);const r=e.points;return this.points=r.map(({x:n,y:o,z:s})=>new THREE.Vector3(n,o,s)),!0}dwgOut(e){return this.onDwgOut(e),e.points=this.points,e}}function drawMxDbArea(){const t=new MrxDbgUiPrPoint;t.setMessage(`
  3330. \u6307\u5B9A\u7B2C\u4E00\u70B9:`),t.go(e=>{if(e!=0)return;const r=t.value();let n=new MxDbArea;n.addPoint(r);const o=new McEdGetPointWorldDrawObject;o.setDraw((s,c)=>{let l=n.clone();l.addPoint(s),o.drawCustomEntity(l)}),t.setUserDraw(o),t.setMessage(`
  3331. \u6307\u5B9A\u4E0B\u4E00\u70B9:`),t.goWhile(s=>{if(s==0){const c=t.value();n.addPoint(c)}},s=>{n.isFill=!0,n.fillOpacity=.7,n.fillColor=6697540,MxFun.getCurrentDraw().addMxEntity(n)})})}addRegisterMxDbEntity(MxDbHatch);class MxDbArea extends MxDbEntity{constructor(){super(...arguments),this.points=[],this.isFill=!1,this.fillColor=6697540,this.fillOpacity=.7}getTypeName(){return"MxDbArea"}create(){return new MxDbArea}getDimText(){return McGeTool.calcArea(this.points).toFixed(2)}worldDraw(e){if(this.points.length<3)return void(this.points.length==2&&e.drawLine(this.points[0],this.points[1]));let r=this.points[0],n=r.clone(),o=r.clone(),s=this.points.length;for(let w=1;w<s;w++){let _=this.points[w];n.x>_.x&&(n.x=_.x),n.y>_.y&&(n.y=_.y),o.x<_.x&&(o.x=_.x),o.y<_.y&&(o.y=_.y),e.drawLine(r,_),r=_}e.drawLine(r,this.points[0]);let c=new THREE.Vector3(n.x+.5*(o.x-n.x),n.y+.5*(o.y-n.y));const l=e.getColor();let v=MxFun.screenCoordLong2Doc(20),x=MxThreeJS.creatTextSprite(this.getDimText(),c,v,0,l);if(x!=null&&e.drawEntity(x),e.getType()==McGiWorldDrawType$1.kWorldDraw&&this.isFill){e.setColor(this.fillColor),e.setOpacity(this.fillOpacity),e.setRenderOrder(e.getRenderOrder()-1);const w=new MxDbHatch;w.points=this.points,w.worldDraw(e)}}getGripPoints(){return this.points}moveGripPointsAt(e,r){return!(e>=this.points.length||(this.points[e].add(r),0))}dwgIn(e){this.onDwgIn(e);let r=e.points;return this.points=[],r.forEach(n=>{this.points.push(new THREE.Vector3(n.x,n.y,n.z))}),this.dwgInHelp(e,["isFill","fillColor","fillOpacity"]),!0}dwgOut(e){return this.onDwgOut(e),e.points=this.points,this.dwgOutHelp(e,["isFill","fillColor","fillOpacity"]),e}addPoint(e){this.points.push(e.clone())}getPoints(){return this.points}clearPoint(){this.points=[]}}function drawMxDbLeadTag(){return Gr(this,null,function*(){let e=yield new MrxDbgUiPrPoint().go();if(!e)return;let r=prompt("\u8BF7\u8F93\u5165\u6587\u5B57\u6279\u6CE8","\u6279\u6CE8");if(!r)return;const n=new MxDbLeadTag;n.point=e,n.text=r,MxFun.addToCurrentSpace(n)})}MxDbArea.cmd="Mx_Area",MxDbArea.draw=drawMxDbArea,addRegisterMxDbEntity(MxDbArea);class MxDbLeadTag extends MxDbEntity{constructor(){super(...arguments),this.point=new THREE.Vector3,this.leadLen=88,this.text="",this.textHeight=24}getTypeName(){return"MxDbLeadTag"}createDots(e,r){const{x:n,y:o,z:s}=e,c=new THREE.Shape;c.arc(n,o,r.screenCoordLong2Doc(6),0,2*Math.PI,!0);const l=new THREE.Path;l.arc(n,o,r.screenCoordLong2Doc(3),0,2*Math.PI,!0),c.holes.push(l);const v=new THREE.ShapeGeometry(c),x=new THREE.MeshPhongMaterial({color:"#ff0000",transparent:!0}),w=new THREE.Shape;w.arc(n,o,r.screenCoordLong2Doc(3),0,2*Math.PI,!0);const _=new THREE.ShapeGeometry(w),b=new THREE.MeshPhongMaterial({color:"#e2da8f",transparent:!0}),E=new THREE.Mesh(v,x),I=new THREE.Mesh(_,b);return E.add(I),E}worldDraw(e){let r=e.getMxObject();const n=this.createDots(this.point,r);if(e.drawEntity(n),n.geometry.computeBoundingBox(),e.drawSelectLine(n.geometry.boundingBox.max,n.geometry.boundingBox.min),e.getType()===2)return;let o=e.getMxObject().screenCoordLong2Doc(this.leadLen),s=new THREE.Vector3(this.point.x+2*o,this.point.y+o,0);const c=s.x-o,l=new THREE.Vector3(c,s.y,s.z);e.setLineWidth(4),e.setColor(16770565),e.drawLines([this.point,l,s]);const v=e.getMxObject().screenCoordLong2Doc(this.textHeight),x=s.clone().setX(s.x);e.setColor(16744448);const w=MxThreeJS.creatTextSprite(this.text,x,v,0,e.getColor());if(w){const _=new THREE.Box3,b=new THREE.Vector3;_.expandByObject(w),_.getSize(b),w.position.setX(w.position.x+b.x/2);const E=e.getMxObject().screenCoordLong2Doc(5),I=_.min.clone().setX(_.min.x+b.x/2).setY(_.min.y-E),O=_.max.clone().setX(_.max.x+b.x/2).setY(_.min.y+E);O.setY(_.max.y+E);const N=new THREE.Vector3(I.x,O.y),A=new THREE.Vector3(O.x,I.y);e.setColor(16777215),e.setLineWidth(0),e.drawLine(I,N),e.drawLine(O,A),e.drawLine(I,A),e.drawLine(N,O);const z=E/2,G=[],V=[];G.push(new THREE.Vector3(N.x+z,N.y-E,N.z),new THREE.Vector3(N.x+z,N.y-z,N.z),new THREE.Vector3(N.x+E,N.y-z,N.z)),V.push(new THREE.Vector3(A.x-z,A.y+E,A.z),new THREE.Vector3(A.x-z,A.y+z,A.z),new THREE.Vector3(A.x-E,A.y+z,A.z)),e.drawLines(G),e.drawLines(V),e.setOpacity(.5),e.setColor(6697540),e.setRenderOrder(-100),e.drawSolid([I,N,O,A]),e.setRenderOrder(100),e.drawEntity(w)}}getGripPoints(){return[this.point]}onViewChange(){return this.setNeedUpdateDisplay(),!0}moveGripPointsAt(e,r){return e===0&&this.point.add(r),!0}dwgIn(e){return this.onDwgIn(e),this.dwgInHelp(e,["point","text","textHeight","leadLen"]),!0}dwgOut(e){return this.onDwgOut(e),this.dwgOutHelp(e,["point","text","textHeight","leadLen"]),e}}function drawMxDbAnyLine(){const t=new MrxDbgUiPrPoint,e=MxFun.getCurrentDraw(),r=new McEdGetPointWorldDrawObject,n=new MxDbAnyLine;t.setUserDraw(r),t.setMessage(`
  3332. \u70B9\u51FB\u5F00\u59CB\u753B\u7EBF:`),t.go(o=>{o===MrxDbgUiPrBaseReturn$1.kOk&&(n.points.push(t.value()),r.setDraw(s=>{n.points.push(s.clone()),r.drawCustomEntity(n)})),t.setMessage(`
  3333. \u518D\u6B21\u70B9\u51FB\u7ED3\u675F\u753B\u7EBF:`),t.go(s=>{s===MrxDbgUiPrBaseReturn$1.kOk&&e.addMxEntity(n)})})}MxDbLeadTag.cmd="Mx_LeadTag",MxDbLeadTag.draw=drawMxDbLeadTag,addRegisterMxDbEntity(MxDbLeadTag);const propertyDbKeys$4=["points"];class MxDbAnyLine extends MxDbEntity{constructor(){super(...arguments),this.points=[]}getTypeName(){return"MxDbAnyLine"}create(){return new MxDbAnyLine}worldDraw(e){let r=e.getMxObject();const n=new THREE.Box3().setFromPoints(this.points);let o=new THREE.Vector3;if(n.getCenter(o),e.drawLines(this.points),e.getType()===McGiWorldDrawType$1.kSelectDraw){const s=new THREE.Vector3;n.getSize(s),s.addScalar(r.screenCoordLong2Doc(20));const c=s.x/2,l=s.y/2,v={x:o.x-c,y:o.y-l},x={x:o.x+c,y:o.y-l},w={x:o.x+c,y:o.y+l},_={x:o.x-c,y:o.y+l};e.drawLine(x.x,x.y,w.x,w.y),e.drawLine(v.x,v.y,x.x,x.y),e.drawLine(w.x,w.y,_.x,_.y),e.drawLine(_.x,_.y,v.x,v.y)}}setPoints(e){return this.points=e,this}getCenter(){const e=new THREE.Geometry;e.vertices=this.points;const r=new THREE.Vector3;return e.computeBoundingBox(),e.boundingBox.getCenter(r),r}getGripPoints(){return[this.getCenter()]}moveGripPointsAt(e,r){return e===0&&this.points.forEach(n=>{n.add(r)}),!0}dwgIn(e){return this.onDwgIn(e),this.dwgInHelp(e,propertyDbKeys$4),!0}dwgOut(e){return this.onDwgOut(e),this.dwgOutHelp(e,propertyDbKeys$4),e}}function drawMxDbCloudLine(){const t=new MrxDbgUiPrPoint,e=MxFun.getCurrentDraw(),r=new McEdGetPointWorldDrawObject;t.setMessage(`
  3334. \u70B9\u51FB\u5F00\u542F\u7ED8\u5236\u4E91\u7EBF:`),t.go(()=>{const n=MxFun.screenCoordLong2Doc(16);let o=t.value();const s=new MxDbCloudLine;s.setRadius(n),s.addPoint(o),r.setDraw(c=>{o.distanceTo(c)>n&&(o=c.clone(),s.addPoint(c,!0)),r.drawCustomEntity(s)}),t.setUserDraw(r),t.setMessage(`
  3335. \u518D\u6B21\u70B9\u51FB\u7ED3\u675F\u7ED8\u5236\u4E91\u7EBF:`),t.go(()=>{e.addMxEntity(s)})})}MxDbAnyLine.cmd="Mx_AnyLine",MxDbAnyLine.draw=drawMxDbAnyLine,addRegisterMxDbEntity(MxDbAnyLine);const propertyDbKeys$3=["points","radius"];class MxDbCloudLine extends MxDbEntity{constructor(){super(),this.points=[],this.radius=16,this.cachePoint=null,this.use_smallcoord_display=!0}getTypeName(){return"MxDbCloudLine"}create(){return new MxDbCloudLine}setRadius(e){this.radius=e}getRadius(){return this.radius}getCachePoint(){return this.cachePoint}clacNewArcDiameterPoint(e){if(this.points.length==0)return e;let r=this.points[this.points.length-1];const n=2*this.radius,o=r.distanceTo(e);if(o<n)return null;const s=n*(e.x-r.x)/o+r.x,c=n*(e.y-r.y)/o+r.y;return new THREE.Vector3(s,c,r.z)}createCloudArcCurvePoints(e,r,n){const o=new THREE.Vector3((e.x+r.x)/2,(e.y+r.y)/2,0);n||(n=o.distanceTo(e));const{startAngle:s,endAngle:c}=function(l,v,x){const w=2*Math.PI/360;return{startAngle:180*Math.atan2(v.y-l.y,v.x-l.x)/Math.PI*w,endAngle:180*Math.atan2(x.y-l.y,x.x-l.x)/Math.PI*w}}(o,e,r);return new THREE.ArcCurve(o.x,o.y,n,s,c,!0).getPoints(10)}addPoint(e,r){let n=this.clacNewArcDiameterPoint(e);n&&(this.points.push(n),this.cachePoint=null,r&&(this.cachePoint=this.reCalculateDrawGeometryPoint()))}addLine(e,r){this.addPoint(e);const n=2*this.radius;let o=this.points[this.points.length-1],s=o.distanceTo(r);const c=Math.round(s/n);for(let l=0;l<c;l++){s=o.distanceTo(r);const v=n*(r.x-o.x)/s+o.x,x=n*(r.y-o.y)/s+o.y;let w=new THREE.Vector3(v,x,r.z);this.addPoint(w),o=w}return this.points[this.points.length-1]}reCalculateDrawGeometryPoint(){if(this.points.length<2)return null;let e=this.points[0],r=this.points.length,n=[];for(let o=1;o<r;o++){let s=this.points[o];this.createCloudArcCurvePoints(e,s).forEach(c=>{n.push(new THREE.Vector3(c.x,c.y,0))}),e=s}return n}worldDraw(e){if(this.cachePoint||(this.cachePoint=this.reCalculateDrawGeometryPoint()),!this.cachePoint)return;let r=e.getMxObject();if(e.getType()===McGiWorldDrawType$1.kSelectDraw){let n=new THREE.Geometry;this.cachePoint.forEach(b=>{n.vertices.push(new THREE.Vector3(b.x,b.y,0))}),n.computeBoundingBox();const o=new THREE.Vector3;n.boundingBox.getSize(o);let s=new THREE.Vector3;n.boundingBox.getCenter(s);const c=o.x/2,l=o.y/2,v={x:s.x-c,y:s.y-l},x={x:s.x+c,y:s.y-l},w={x:s.x+c,y:s.y+l},_={x:s.x-c,y:s.y+l};e.drawLine(this.toSmallcoord2(r,v.x,v.y),this.toSmallcoord2(r,x.x,x.y)),e.drawLine(this.toSmallcoord2(r,x.x,x.y),this.toSmallcoord2(r,w.x,w.y)),e.drawLine(this.toSmallcoord2(r,w.x,w.y),this.toSmallcoord2(r,_.x,_.y)),e.drawLine(this.toSmallcoord2(r,_.x,_.y),this.toSmallcoord2(r,v.x,v.y))}else{let n=[];this.cachePoint.forEach(o=>{n.push(this.toSmallcoord(r,o))}),e.drawLines(n)}}getCenter(){const e=new THREE.Geometry;e.vertices=this.points;let r=new THREE.Vector3;return e.computeBoundingBox(),e.boundingBox.getCenter(r),r}getGripPoints(){return[this.getCenter()]}moveGripPointsAt(e,r){return this.points.forEach(n=>{n.add(r)}),this.cachePoint=null,!0}dwgIn(e){return this.onDwgIn(e),this.dwgInHelp(e,propertyDbKeys$3),this.cachePoint=null,!0}dwgOut(e){return this.onDwgOut(e),this.dwgOutHelp(e,propertyDbKeys$3),e.type===MxType.MxCloneType.kSaveDwgClone&&this.dwgOutHelp(e,["cachePoint"]),e}}function drawMxDbRegularPolygon(){const t=new MrxDbgUiPrPoint,e=MxFun.getCurrentDraw(),r=new McEdGetPointWorldDrawObject,n=new MxDbRegularPolygon;t.setMessage(`
  3336. \u70B9\u51FB\u5F00\u59CB\u7ED8\u5236\u591A\u8FB9\u5F62:`),t.go(()=>{let o=prompt("\u8BF7\u8F93\u5165\u591A\u8FB9\u5F62\u7684\u8FB9\u6570","8");o&&(n.sidesNumber=Number(o),n.centerPoint=t.value(),t.setUserDraw(r),r.setDraw(s=>{n.otherPoint=s,r.drawCustomEntity(n)}),t.setMessage(`
  3337. \u518D\u6B21\u70B9\u51FB\u7ED3\u675F\u7ED8\u5236\u591A\u8FB9\u5F62:`),t.go(()=>{e.addMxEntity(n)}))})}MxDbCloudLine.isRegister=!1,MxDbCloudLine.cmd="Mx_CloudLine",MxDbCloudLine.draw=drawMxDbCloudLine,addRegisterMxDbEntity(MxDbCloudLine);class MxDbRegularPolygon extends MxDbShape{getTypeName(){return"MxDbRegularPolygon"}constructor(){super(),this.centerPoint=new THREE.Vector3,this.otherPoint=new THREE.Vector3,this.sidesNumber=5,this._propertyDbKeys=[...this._propertyDbKeys,"centerPoint","otherPoint","sidesNumber"]}worldDraw(e){const r=computeRegularPolygonVertices$2(this.centerPoint,this.otherPoint,this.sidesNumber);this.closed=!1,r.push(r[0]),this._draw(e,r),this._drawStoreLine(e,r)}getGripPoints(){return[this.centerPoint,this.otherPoint]}moveGripPointsAt(e,r){return e===0?(this.centerPoint.add(r),this.otherPoint.add(r)):e===1&&this.otherPoint.add(r),!0}}function drawMxDbLeadComment(){const t=new MrxDbgUiPrPoint;t.setMessage(`
  3338. \u6307\u5B9A\u7B2C\u4E00\u70B9:`),t.go(e=>{if(e!=0)return;const r=t.value();let n=new MxDbLeadComment;n.point1=r.clone(),n.textHeight=MxFun.screenCoordLong2Doc(50);let o=prompt("\u8BF7\u8F93\u5165\u6587\u5B57\u6279\u6CE8","\u6279\u6CE8");if(!o)return;n.text=o,n.textWidth=MxFun.screenCoordLong2Doc(10*o.length),n.fixedSize=!0,n.fixedSize&&(n.textHeight=50,n.textWidth=50*o.length);const s=new McEdGetPointWorldDrawObject;s.setDraw((c,l)=>{n.point2=c,l.drawCustomEntity(n)}),t.setBasePt(r),t.setUseBasePt(!0),t.setUserDraw(s),t.setMessage(`
  3339. \u6307\u5B9A\u7B2C\u4E8C\u70B9:`),t.go(c=>{if(c!=0)return void console.log(c);const l=t.value();n.point2=l,MxFun.addToCurrentSpace(n)})})}MxDbRegularPolygon.cmd="Mx_RegularPolygon",MxDbRegularPolygon.draw=drawMxDbRegularPolygon,addRegisterMxDbEntity(MxDbRegularPolygon);class MxDbLeadComment extends MxDbEntity{constructor(){super(),this.point1=new THREE.Vector3,this.point2=new THREE.Vector3,this.text="",this.textHeight=20,this.textWidth=0,this.fixedSize=!1,this.use_smallcoord_display=!0}getTypeName(){return"MxDbLeadComment"}create(){return new MxDbLeadComment}worldDraw(e){let r=e.getMxObject(),n=this.toSmallcoord(r,this.point1),o=this.toSmallcoord(r,this.point2);if(e.drawLine(n,o),this.text.length>0){const s=new THREE.Vector3;let c=this.textHeight,l=this.textWidth;this.fixedSize&&(c=r.screenCoordLong2Doc(c),l=r.screenCoordLong2Doc(l));let v=MxThreeJS.clacTextSpriteSize(this.text,c,l);s.x=o.x+.5*v.textwidth,s.y=o.y+.5*v.allTextHeight,e.drawText(this.text,c,0,s,l);const x=new THREE.Vector3;x.x=o.x+v.textwidth,x.y=o.y,e.drawLine(x,o)}}getGripPoints(){let e=[];return e.push(this.point1),e.push(this.point2),e}moveGripPointsAt(e,r){return e==0?this.point1.add(r):e==1&&this.point2.add(r),!0}dwgIn(e){return this.onDwgIn(e),this.point1.copy(e.point1),this.point2.copy(e.point2),this.text=e.text.substr(0),this.textHeight=e.textHeight,e.textWidth&&(this.textWidth=e.textWidth),this.fixedSize=e.fixedSize,!0}dwgOut(e){return this.onDwgOut(e),e.point1=this.point1,e.point2=this.point2,e.textHeight=this.textHeight,e.text=this.text,e.textWidth=this.textWidth,e.fixedSize=this.fixedSize,e}onViewChange(){return!!this.fixedSize&&(this.setNeedUpdateDisplay(!1),!0)}}function drawMxDbRectBoxLeadComment(){const t=new MrxDbgUiPrPoint,e=MxFun.getCurrentDraw(),r=new McEdGetPointWorldDrawObject,n=new MxDbRectBoxLeadComment;n.setLineWidth(3),n.setLineWidthByPixels(!0),t.setMessage(`
  3340. \u4E91\u7EBF\u6846\u8D77\u59CB\u70B9:`),t.go(o=>{n.radius=MxFun.screenCoordLong2Doc(8),o==MrxDbgUiPrBaseReturn$1.kOk&&(n.point1=t.value(),r.setDraw(s=>{n.point2=s,r.drawCustomEntity(n)}),t.setUserDraw(r),t.setMessage(`
  3341. \u4E91\u7EBF\u6846\u7ED3\u675F\u70B9:`),t.go(s=>{if(s!=MrxDbgUiPrBaseReturn$1.kOk)return;n.point2=t.value(),r.setDraw(l=>{n.point3=l,r.drawCustomEntity(n)});let c=prompt("\u8BF7\u8F93\u5165\u6587\u5B57\u6279\u6CE8","\u6279\u6CE8");c||(c="\u9ED8\u8BA4\u6279\u6CE8\u6587\u5B57"),n.text=c,n.textWidth=MxFun.screenCoordLong2Doc(10*c.length),n.textHeight=MxFun.screenCoordLong2Doc(5*c.length),n.fixedSize=!0,n.fixedSize&&(n.textHeight=20,n.textWidth=20*c.length),t.setMessage(`
  3342. \u5BA1\u56FE\u6807\u6CE8\u70B9:`),t.go(l=>{l==MrxDbgUiPrBaseReturn$1.kOk&&(n.point3=t.value(),e.addMxEntity(n))})}))})}MxDbLeadComment.cmd="Mx_Comment",MxDbLeadComment.draw=drawMxDbLeadComment,addRegisterMxDbEntity(MxDbLeadComment);class MxDbRectBoxLeadComment extends MxDbEntity{constructor(){super(),this.point1=new THREE.Vector3,this.point2=new THREE.Vector3,this.point3=new THREE.Vector3,this.text="",this.textHeight=20,this.radius=16,this.textWidth=0,this.fixedSize=!1,this.use_smallcoord_display=!0}getTypeName(){return"MxDbRectBoxLeadComment"}create(){return new MxDbRectBoxLeadComment}getCloudLine(){let e=new MxDbCloudLine;e.setRadius(this.radius);let r=this.point1.clone(),n=this.point2.clone();if(r.x>n.x){let v=r.x;r.x=n.x,n.x=v}if(r.y>n.y){let v=r.y;r.y=n.y,n.y=v}let o=new THREE.Vector3(r.x,n.y,r.z);o=e.addLine(r,o),n=new THREE.Vector3(n.x,o.y,n.z),n=e.addLine(o,n);let s=new THREE.Vector3(n.x,r.y,r.z);s=e.addLine(n,s);let c=r=e.addLine(s,r),l=r.distanceTo(this.point3);return l>o.distanceTo(this.point3)&&(c=o,l=o.distanceTo(this.point3)),l>n.distanceTo(this.point3)&&(c=n,l=n.distanceTo(this.point3)),l>s.distanceTo(this.point3)&&(c=s,l=s.distanceTo(this.point3)),{cloudLine:e,pt1:r,pt2:o,pt3:n,pt4:s,leadPt:c}}worldDraw(e){let r=this.getCloudLine(),n=r.cloudLine;if(n.setUseSmallcoordDisplay(this.use_smallcoord_display),n.worldDraw(e),this.text.length>0){let o=r.leadPt,s=new MxDbLeadComment;s.setUseSmallcoordDisplay(this.use_smallcoord_display),s.point1=o,s.point2=this.point3,s.text=this.text,s.textHeight=this.textHeight,s.textWidth=this.textWidth,s.fixedSize=this.fixedSize,s.worldDraw(e)}}getGripPoints(){let e=[];return e.push(this.point1),e.push(this.point2),e.push(this.point3),e}moveGripPointsAt(e,r){return e==0?this.point1.add(r):e==1?this.point2.add(r):e==2&&this.point3.add(r),!0}dwgIn(e){return this.onDwgIn(e),this.point1.copy(e.point1),this.point2.copy(e.point2),this.point3.copy(e.point3),this.text=e.text.substr(0),this.textHeight=e.textHeight,this.radius=e.radius,e.textWidth&&(this.textWidth=e.textWidth),this.fixedSize=e.fixedSize,!0}dwgOut(e){if(this.onDwgOut(e),e.point1=this.point1,e.point2=this.point2,e.point3=this.point3,e.textHeight=this.textHeight,e.text=this.text,e.radius=this.radius,e.textWidth=this.textWidth,e.fixedSize=this.fixedSize,e.type===MxType.MxCloneType.kSaveDwgClone){let r=this.getCloudLine(),n=r.cloudLine.reCalculateDrawGeometryPoint();e.cachePoint=n||[],e.leadPt=r.leadPt}return e}onViewChange(){return!!this.fixedSize&&(this.setNeedUpdateDisplay(!1),!0)}}function drawMxDbEllipse$1(){const t=new MrxDbgUiPrPoint,e=MxFun.getCurrentDraw(),r=new McEdGetPointWorldDrawObject,n=new MxDbEllipse;t.setMessage(`
  3343. \u70B9\u51FB\u5F00\u59CB\u7ED8\u5236\u692D\u5706:`),t.go(()=>{n.point1=t.value(),r.setDraw(o=>{n.point2=o,r.drawCustomEntity(n)}),t.setUserDraw(r),t.setMessage(`
  3344. \u518D\u6B21\u70B9\u51FB\u7ED3\u675F\u7ED8\u5236\u692D\u5706:`),t.go(()=>{e.addMxEntity(n)})})}MxDbRectBoxLeadComment.cmd="Mx_CheckDraw",MxDbRectBoxLeadComment.draw=drawMxDbRectBoxLeadComment,addRegisterMxDbEntity(MxDbRectBoxLeadComment);class MxDbEllipse extends MxDbEllipseShape{constructor(){super(),this.point1=new THREE.Vector3,this.point2=new THREE.Vector3,this.isClosedToCenter=!1,this.closed=!1,this._propertyDbKeys=[...this._propertyDbKeys,"point1","point2"]}getTypeName(){return"MxDbEllipse"}create(){return new MxDbEllipse}setPoint1(e){return this.point1=e,this}setPoint2(e){return this.point2=e,this}worldDraw(e){const{point1:r,point2:n}=this,o=r.clone().set(n.x,r.y,n.z),s=n.clone().set(r.x,n.y,r.z);this.xRadius=r.distanceTo(o)/2,this.yRadius=r.distanceTo(s)/2;const c=r.x>n.x,l=r.y>n.y,v=c?r.x-this.xRadius:r.x+this.xRadius,x=l?r.y-this.yRadius:r.y+this.yRadius;this.center=new THREE.Vector3(v,x,0),this.drawEllipseShape(e),e.getType()===McGiWorldDrawType$1.kSelectDraw&&e.drawLines([r,new THREE.Vector3(r.x,n.y),n,new THREE.Vector3(n.x,r.y),r])}getGripPoints(){let e=new THREE.Vector3(.5*(this.point2.x+this.point1.x),.5*(this.point2.y+this.point1.y),0);return[this.point1,this.point2,e]}moveGripPointsAt(e,r){return e===0?this.point1.add(r):e===1?this.point2.add(r):e===2&&(this.point1.add(r),this.point2.add(r)),!0}}function drawMxDbText(){return Gr(this,null,function*(){const t=new MrxDbgUiPrPoint;t.setMessage(`
  3345. \u70B9\u53D6\u6587\u5B57\u63D2\u5165\u70B9:`);let e=yield t.go();if(e==null)return;let r=prompt("\u8BF7\u8F93\u5165\u6587\u5B57");if(!r)return;let n=new MxDbText;n.position=e,n.height=MxFun.screenCoordLong2Doc(50),n.text=r,MxFun.addToCurrentSpace(n)})}let _SpriteText;function getSpriteTextColor(t){return t?t instanceof THREE.Color?t.getStyle():typeof t=="number"?new THREE.Color(t).getStyle():t:"#fff"}function toCSSFont(t,e,r,n,o){let s=document.createElement("span");return s.style.font="1px serif",s.style.fontFamily=t,s.style.fontSize=`${e}px`,s.style.fontStyle=r,s.style.fontVariant=n,s.style.fontWeight=o,s.style.font}function getSpriteTextClass(){if(!_SpriteText){class t extends THREE.Sprite{constructor(r){super(new THREE.SpriteMaterial);const{text:n,textHeight:o,color:s,backgroundColor:c,padding:l,borderWidth:v,borderRadius:x,borderColor:w,strokeWidth:_,strokeColor:b,fontFace:E,fontSize:I,fontWeight:O,textAlign:N,textShadowBlur:A,textShadowColor:z,textShadowOffsetX:G,textShadowOffsetY:V,angle:ne,scale:W,underline:B,fontStyle:q,fontVariant:D}=r||{};this._text=`${n}`,this._textHeight=o||10,this._color=s,this._backgroundColor=c,this._padding=l||0,this._borderWidth=v||0,this._borderRadius=x||0,this._borderColor=w||"white",this._strokeWidth=_||0,this._strokeColor=b||"white",this._fontFace=E||"Arial",this._fontSize=I||90,this._fontWeight=(O==null?void 0:O.toString())||"normal",this._textAlign=N||"start",this._fontStyle=q||"normal",this._fontVariant=D||"normal",this._textShadowBlur=A||0,this._textShadowColor=z,this._textShadowOffsetX=G||0,this._textShadowOffsetY=V||0,this._angle=ne||0,this._textScale=W||1,this._underline=B||!1,this._canvas=document.createElement("canvas"),this._genCanvas()}get text(){return this._text}set text(r){this._text=r,this._genCanvas()}get textHeight(){return this._textHeight}set textHeight(r){this._textHeight=r,this._genCanvas()}get color(){return this._color}set color(r){this._color=r,this._genCanvas()}get backgroundColor(){return this._backgroundColor}set backgroundColor(r){this._backgroundColor=r,this._genCanvas()}get padding(){return this._padding}set padding(r){this._padding=r,this._genCanvas()}get borderWidth(){return this._borderWidth}set borderWidth(r){this._borderWidth=r,this._genCanvas()}get borderRadius(){return this._borderRadius}set borderRadius(r){this._borderRadius=r,this._genCanvas()}get borderColor(){return this._borderColor}set borderColor(r){this._borderColor=r,this._genCanvas()}get fontFace(){return this._fontFace}set fontFace(r){this._fontFace=r,this._genCanvas()}get fontSize(){return this._fontSize}set fontSize(r){this._fontSize=r,this._genCanvas()}get fontWeight(){return this._fontWeight}set fontWeight(r){this._fontWeight=r,this._genCanvas()}get strokeWidth(){return this._strokeWidth}set strokeWidth(r){this._strokeWidth=r,this._genCanvas()}get strokeColor(){return this._strokeColor}set strokeColor(r){this._strokeColor=r,this._genCanvas()}get textAlign(){return this._textAlign}set textAlign(r){this._textAlign=r,this._genCanvas()}get textShadowBlur(){return this._textShadowBlur}set textShadowBlur(r){this._textShadowBlur=r,this._genCanvas()}get textShadowColor(){return this._textShadowColor}set textShadowColor(r){this._textShadowColor=r,this._genCanvas()}get textShadowOffsetX(){return this._textShadowOffsetX}set textShadowOffsetX(r){this._textShadowOffsetX=r,this._genCanvas()}get textShadowOffsetY(){return this._textShadowOffsetY}set textShadowOffsetY(r){this._textShadowOffsetY=r,this._genCanvas()}get angle(){return this._angle}set angle(r){this._angle=r,this._genCanvas()}get textScale(){return this._textScale}set textScale(r){this._textScale=r,this._genCanvas()}get underline(){return this._underline}set underline(r){this._underline=r,this._genCanvas()}get fontStyle(){return this._fontStyle}set fontStyle(r){this._fontStyle=r,this._genCanvas()}get fontVariant(){return this._fontVariant}set fontVariant(r){this._fontVariant=r,this._genCanvas()}_genCanvas(){const r=this._canvas,n=r.getContext("2d"),o=Array.isArray(this.borderWidth)?this.borderWidth:[this.borderWidth,this.borderWidth],s=o.map(V=>V*this.fontSize*.1),c=(Array.isArray(this.borderRadius)?this.borderRadius:[this.borderRadius,this.borderRadius,this.borderRadius,this.borderRadius]).map(V=>V*this.fontSize*.1),l=Array.isArray(this.padding)?this.padding:[this.padding,this.padding],v=l.map(V=>V*this.fontSize*.1),x=this.text.split(`
  3346. `),w=this.font;n.font=w;const _=Math.max(...x.map(V=>n.measureText(V).width)),b=4*this.strokeWidth+(this.underline?this.fontSize/15*4:this.fontSize/15),E=(this.fontSize+b)*x.length;if(r.width=_+2*s[0]+2*v[0],r.height=E+2*s[1]+2*v[1],this.borderWidth){if(n.strokeStyle=getSpriteTextColor(this.borderColor),s[0]){const V=s[0]/2;n.lineWidth=s[0],n.beginPath(),n.moveTo(V,c[0]),n.lineTo(V,r.height-c[3]),n.moveTo(r.width-V,c[1]),n.lineTo(r.width-V,r.height-c[2]),n.stroke()}if(s[1]){const V=s[1]/2;n.lineWidth=s[1],n.beginPath(),n.moveTo(Math.max(s[0],c[0]),V),n.lineTo(r.width-Math.max(s[0],c[1]),V),n.moveTo(Math.max(s[0],c[3]),r.height-V),n.lineTo(r.width-Math.max(s[0],c[2]),r.height-V),n.stroke()}if(this.borderRadius){const V=Math.max(...s),ne=V/2;n.lineWidth=V,n.beginPath(),[!!c[0]&&[c[0],ne,ne,c[0]],!!c[1]&&[r.width-c[1],r.width-ne,ne,c[1]],!!c[2]&&[r.width-c[2],r.width-ne,r.height-ne,r.height-c[2]],!!c[3]&&[c[3],ne,r.height-ne,r.height-c[3]]].filter(W=>W).forEach(W=>{const[B,q,D,F]=W;n.moveTo(B,D),n.quadraticCurveTo(q,D,q,F)}),n.stroke()}}this.backgroundColor&&(n.fillStyle=getSpriteTextColor(this.backgroundColor),this.borderRadius?(n.beginPath(),n.moveTo(s[0],c[0]),[[s[0],c[0],r.width-c[1],s[1],s[1],s[1]],[r.width-s[0],r.width-s[0],r.width-s[0],s[1],c[1],r.height-c[2]],[r.width-s[0],r.width-c[2],c[3],r.height-s[1],r.height-s[1],r.height-s[1]],[s[0],s[0],s[0],r.height-s[1],r.height-c[3],c[0]]].forEach(([V,ne,W,B,q,D])=>{n.quadraticCurveTo(V,B,ne,q),n.lineTo(W,D)}),n.closePath(),n.fill()):n.fillRect(s[0],s[1],r.width-2*s[0],r.height-2*s[1])),n.translate(s[0],s[1]),n.translate(v[0],v[1]),n.font=w,n.fillStyle=getSpriteTextColor(this.color),n.textBaseline="bottom",n.shadowBlur=this.textShadowBlur,n.shadowColor=new THREE.Color(this.textShadowColor).getStyle(),n.shadowOffsetX=this.textShadowOffsetX,n.shadowOffsetY=this.textShadowOffsetY;const I=this.strokeWidth>0;I&&(n.lineWidth=this.strokeWidth*this.fontSize/10,n.strokeStyle=getSpriteTextColor(this.strokeColor));const O=this.textAlign==="center",N=this.textAlign==="start"||this.textAlign==="left";x.forEach((V,ne)=>Gr(this,null,function*(){let W=O?2:1;const B=n.measureText(V).width,q=N?0:(_-B)/W,D=(ne+1)*(this.fontSize+b);I&&n.strokeText(V,q,D),n.fillText(V,q,D),this.underline&&n.fillRect(q,r.height-this.fontSize/25,B,this.fontSize/25)})),this.material.map&&this.material.map.dispose();const A=this.material.map=new THREE.Texture(r);A.minFilter=THREE.LinearFilter,A.needsUpdate=!0;const z=this.textHeight*x.length+2*o[1]+2*l[1],G=z*r.width/r.height;this.scale.set(G,z,this.scale.z),this.material.rotation=this.angle,this.scale.applyMatrix4(new THREE.Matrix4().makeScale(this.textScale,this.textScale,1))}clone(){return new this.constructor(this.text,this.textHeight,this.color).copy(THREE.Sprite.prototype.clone.call(this))}copy(r){return THREE.Sprite.prototype.copy.call(this,r),this.color=r.color,this.backgroundColor=r.backgroundColor,this.padding=r.padding,this.borderWidth=r.borderWidth,this.borderColor=r.borderColor,this.fontFace=r.fontFace,this.fontSize=r.fontSize,this.fontWeight=r.fontWeight,this.strokeWidth=r.strokeWidth,this.strokeColor=r.strokeColor,this.textAlign=r.textAlign,this.textShadowBlur=r.textShadowBlur,this.textShadowColor=r.textShadowColor,this.textShadowOffsetX=r.textShadowOffsetX,this.textShadowOffsetY=r.textShadowOffsetY,this.angle=r.angle,this.textScale=r.textScale,this}get font(){return toCSSFont(this.fontFace,this.fontSize,this.fontStyle,this.fontVariant,this.fontWeight)}checkFontFace(){try{const{fontFace:r}=this;return document.fonts.check(r)}catch(r){}return!0}loadFontFace(){return Gr(this,null,function*(){try{const{fontFace:r}=this;yield document.fonts.load(r)}catch(r){}})}dispose(){var r;(r=this.material.map)===null||r===void 0||r.dispose(),this.material.dispose(),this.geometry.dispose(),this.dispatchEvent({type:"dispose"})}}_SpriteText=t}return _SpriteText}MxDbEllipse.cmd="Mx_Ellipse",MxDbEllipse.draw=drawMxDbEllipse$1,addRegisterMxDbEntity(MxDbEllipse);const propertyDbKeys$2=["text","position","height","backgroundColor","padding","borderWidth","borderRadius","borderColor","fontFace","fontSize","fontWeight","strokeWidth","strokeColor","angle","textAlign","textShadowBlur","textShadowColor","textShadowOffsetX","textShadowOffsetY","scale","underline"];class MxDbText extends MxDbEntity{constructor(){super(...arguments),this.position=new THREE.Vector3,this._text="",this._height=16,this._angle=0,this._scale=1,this._underline=!1}setPosition(e){return this.position=e,this}get text(){return this.spriteText?this.spriteText.text:this._text}set text(e){this.spriteText?this.spriteText.text=e:this._text=e}setText(e){return this.text=e,this}get height(){return this.spriteText?this.spriteText.textHeight:this._height}set height(e){this.spriteText?this.spriteText.textHeight=e:this._height=e}setHeight(e){return this.height=e,this}get backgroundColor(){return this.spriteText?this.spriteText.backgroundColor:this._backgroundColor}set backgroundColor(e){this.spriteText?this.spriteText.backgroundColor=e:this._backgroundColor=e}setBackgroundColor(e){return this.backgroundColor=e,this}get padding(){return this.spriteText?this.spriteText.padding:this._padding}set padding(e){this.spriteText?this.spriteText.padding=e:this._padding=e}setPadding(e){return this.padding=e,this}get borderWidth(){return this.spriteText?this.spriteText.borderWidth:this._borderWidth}set borderWidth(e){this.spriteText?this.spriteText.borderWidth=e:this._borderWidth=e}setBorderWidth(e){return this.borderWidth=e,this}get borderRadius(){return this.spriteText?this.spriteText.borderRadius:this._borderRadius}set borderRadius(e){this.spriteText?this.spriteText.borderRadius=e:this._borderRadius=e}setBorderRadius(e){return this.borderRadius=e,this}get borderColor(){return this.spriteText?this.spriteText.borderColor:this._borderColor}set borderColor(e){this.spriteText?this.spriteText.borderColor=e:this._borderColor=e}setBorderColor(e){return this.borderColor=e,this}get fontFace(){return this.spriteText?this.spriteText.fontFace:this._fontFace}set fontFace(e){this.spriteText?this.spriteText.fontFace=e:this._fontFace=e}setFontFace(e){return this.fontFace=e,this}get fontSize(){return this.spriteText?this.spriteText.fontSize:this._fontSize}set fontSize(e){this.spriteText?this.spriteText.fontSize=e:this._fontSize=e}setFontSize(e){return this.fontSize=e,this}get fontWeight(){return this.spriteText?this.spriteText.fontWeight:this._fontWeight}set fontWeight(e){this.spriteText?this.spriteText.fontWeight=e:this._fontWeight=e}setFontWeight(e){return this.fontWeight=e,this}get strokeWidth(){return this.spriteText?this.spriteText.strokeWidth:this._strokeWidth}set strokeWidth(e){this.spriteText?this.spriteText.strokeWidth=e:this._strokeWidth=e}setStrokeWidth(e){return this.strokeWidth=e,this}get strokeColor(){return this.spriteText?this.spriteText.strokeColor:this._strokeColor}set strokeColor(e){this.spriteText?this.spriteText.strokeColor=e:this._strokeColor=e}setStrokeColor(e){return this.strokeColor=e,this}get textAlign(){return this.spriteText?this.spriteText.textAlign:this._textAlign}set textAlign(e){this.spriteText?this.spriteText.textAlign=e:this._textAlign=e}setTextAlign(e){return this.textAlign=e,this}get textShadowBlur(){return this.spriteText?this.spriteText.textShadowBlur:this._textShadowBlur}set textShadowBlur(e){this.spriteText?this.spriteText.textShadowBlur=e:this._textShadowBlur=e}setTextShadowBlur(e){return this.textShadowBlur=e,this}get textShadowColor(){return this.spriteText?this.spriteText.textShadowColor:this._textShadowColor}set textShadowColor(e){this.spriteText?this.spriteText.textShadowColor=e:this._textShadowColor=e}setTextShadowColor(e){return this.textShadowColor=e,this}get textShadowOffsetX(){return this.spriteText?this.spriteText.textShadowOffsetX:this._textShadowOffsetX}set textShadowOffsetX(e){this.spriteText?this.spriteText.textShadowOffsetX=e:this._textShadowOffsetX=e}setTextShadowOffsetX(e){return this.textShadowOffsetX=e,this}get textShadowOffsetY(){return this.spriteText?this.spriteText.textShadowOffsetY:this._textShadowOffsetY}set textShadowOffsetY(e){this.spriteText?this.spriteText.textShadowOffsetY=e:this._textShadowOffsetY=e}setTextShadowOffsetY(e){return this.textShadowOffsetY=e,this}get angle(){return this.spriteText?this.spriteText.angle:this._angle}set angle(e){this.spriteText?this.spriteText.angle=e:this._angle=e}setAngle(e){return this.angle=e,this}get scale(){return this.spriteText?this.spriteText.textScale:this._scale}set scale(e){this.spriteText?this.spriteText.textScale=e:this._scale=e}setScale(e){return this.scale=e,this}get underline(){return this.spriteText?this.spriteText.underline:this._underline}set underline(e){this.spriteText?this.spriteText.underline=e:this._underline=e}setUnderline(e){this.underline=e}getTypeName(){return"MxDbText"}worldDraw(e){if(this.text.length>0){e.getType()!==McGiWorldDrawType$1.kWorldDraw||this.spriteText||this.createSpriteText(),this.color!==this.spriteText.color&&(this.spriteText.color=this.color),this.spriteText.material.setValues({opacity:this.opacity,visible:this.visible});const{x:r,y:n,z:o}=this.position;this.spriteText.position.set(r,n,o),e.drawEntity(this.spriteText)}}createSpriteText(){const e=getSpriteTextClass(),{text:r,height:n,color:o,backgroundColor:s,padding:c,borderWidth:l,borderRadius:v,borderColor:x,strokeWidth:w,strokeColor:_,fontFace:b,fontSize:E,fontWeight:I,textAlign:O,textShadowBlur:N,textShadowColor:A,textShadowOffsetX:z,textShadowOffsetY:G,angle:V,scale:ne,underline:W}=this;this.spriteText=new e({text:r,textHeight:n,color:o,backgroundColor:s,padding:c,borderWidth:l,borderRadius:v,borderColor:x,strokeWidth:w,strokeColor:_,fontFace:b,fontSize:E,fontWeight:I,textAlign:O,textShadowBlur:N,textShadowColor:A,textShadowOffsetX:z,textShadowOffsetY:G,angle:V,scale:ne,underline:W})}getGripPoints(){return[this.position]}moveGripPointsAt(e,r){return e===0&&this.position.add(r),!0}create(){return new MxDbText}dwgIn(e){var r,n;return this.onDwgIn(e),this.dwgInHelp(e,propertyDbKeys$2),typeof e.path=="string"&&(e.path=JSON.parse(e.path)),((n=(r=e==null?void 0:e.path)===null||r===void 0?void 0:r.metadata)===null||n===void 0?void 0:n.generator)==="Curve.toJSON"&&(e.path=new THREE.Path().fromJSON(e.path)),e.type===MxType.MxCloneType.kMxFileClone||e.type===MxType.MxCloneType.kSaveDwgClone?this.createSpriteText():this.spriteText=e.spriteText,!0}dwgOut(e){return this.onDwgOut(e),this.dwgOutHelp(e,propertyDbKeys$2),e.type===MxType.MxCloneType.kMxFileClone||e.type===MxType.MxCloneType.kSaveDwgClone?e.spriteText=void 0:e.spriteText=this.spriteText,e}getGeomExtents(){return new THREE.Box3().expandByObject(this.spriteText)}erase(){return super.erase(),this.spriteText&&this.spriteText.dispose(),!0}}function createCurvePath(t=!1){const e=new THREE.CurvePath;return e.autoClose=t,e}function createQuadraticBezierCurve3(t){let e=0,r=[];for(let n=0;n<t.length;n++){const o=t[e],s=t[++e]||o,c=t[++e]||s;if(!o||!s||!c)break;r.push(new THREE.QuadraticBezierCurve3(o,s,c))}return r}function createCubicBezierCurve3(t){let e=0,r=[];for(let n=0;n<t.length;n++){const o=t[e],s=t[++e]||o,c=t[++e]||s,l=t[++e]||c;if(!(o&&s&&c&&l))break;r.push(new THREE.CubicBezierCurve3(o,s,c,l))}return r}function getCurveColorGradientData(t,e){let r=0,n=[],o=[];const s=Number((1/e.length).toFixed(2));let c=new THREE.Color(e[r]),l=new THREE.Color(e[r+1]);for(let v=0,x=t.length;v<x;v++){const w=t[v],_=v/t.length;_/r>=s&&(r++,l.set(new THREE.Color(e[r]||e[--r]))),n.push(w.x,w.y,w.z||0),c.lerpHSL(l,_),o.push(c.r,c.g,c.b)}return[n,o]}function getColorGradientData(t,e){let r=[],n=[];for(let o=0,s=t.length;o<s;o++){const c=t[o];r.push(c.x,c.y,c.z||0);const l=new THREE.Color(e[o]);n.push(l.r,l.g,l.b)}return[r,n]}MxDbText.cmd="Mx_Text",MxDbText.draw=drawMxDbText,addRegisterMxDbEntity(MxDbText);const propertyDbKeys$1=["points","colors","linecap","linejoin","closed","curveType","tension","bezierType"];class MxDbGradientLine extends MxDbEntity{constructor(){super(...arguments),this.linecap="round",this.linejoin="round",this.closed=!1,this.curveType="centripetal",this.tension=0,this.bezierType="quadratic"}create(){return new MxDbGradientLine}getTypeName(){return"MxDbGradientLine"}setPoints(e){return this.points=e,this}setColors(e){return this.colors=e,this}addColor(e){return this.colors.push(e),this}setLinecap(e){this.linecap=e}setClosed(e){this.closed=e}setCurveType(e){this.curveType=e}setTension(e){this.tension=e}setBezierType(e){this.bezierType=e}worldDraw(e){const r=e.getType();let n=this.getPoints();const{closed:o,curveType:s,tension:c,bezierType:l}=this,v=new THREE.BufferGeometry;let x=[],w=[];const _=l==="cubic",b=l==="quadratic";c!==0?this.curve=new THREE.CatmullRomCurve3(n,o,s,c):l?(this.curve=createCurvePath(o),_?this.curve.curves=createCubicBezierCurve3(n):b?this.curve.curves=createQuadraticBezierCurve3(n):this.curve=void 0):this.curve=void 0,this.curve&&(n=this.curve.getPoints(50));const{linecap:E,linejoin:I}=this;let O;if(this.colors&&this.colors.length>1){const A=o?[...this.colors,this.colors[0]]:this.colors;[x,w]=this.curve?getCurveColorGradientData(n,A):getColorGradientData(n,A),v.setAttribute("position",new THREE.Float32BufferAttribute(x,3)),v.setAttribute("color",new THREE.Float32BufferAttribute(w,3)),O=new THREE.LineBasicMaterial({vertexColors:THREE.VertexColors,linecap:E,linejoin:I})}else v.setFromPoints(n),O=new THREE.LineBasicMaterial({color:this.color,linecap:E,linejoin:I});const N=o?new THREE.LineLoop(v,O):new THREE.Line(v,O);if(e.drawEntity(N),(r===McGiWorldDrawType$1.kSelectDraw||r===McGiWorldDrawType$1.kDynDragDraw)&&this.curve){let A=this.getPoints();const z=e.getLineWidth();e.setLineWidth(1),e.drawLines(A),e.setLineWidth(z)}}getGripPoints(){return this.getPoints()}getPoints(){return this.closed?[...this.points,this.points[0]]:this.points}moveGripPointsAt(e,r){return this.move(e,r),!0}move(e,r){return this.points[e].add(r),this}dwgIn(e){return this.dwgInHelp(e,propertyDbKeys$1),this.curve=e.curve,!0}dwgOut(e){return this.dwgOutHelp(e,propertyDbKeys$1),e.curve=this.curve,e}}function drawMxDbEllipseArc(){const t=new MrxDbgUiPrPoint,e=MxFun.getCurrentDraw(),r=new McEdGetPointWorldDrawObject;let n=new MxDbEllipseArc;t.setUserDraw(r),t.go(()=>Gr(this,null,function*(){n.center=t.value(),r.setDraw((o,s)=>{n.startPoint=o,n.yRadius=n.center.distanceTo(o),s.drawCustomEntity(n)}),n.startPoint=(yield t.go())||new THREE.Vector3,r.setDraw((o,s)=>{n.endPoint=o,s.drawCustomEntity(n)}),n.endPoint=(yield t.go())||new THREE.Vector3,e.addMxEntity(n)}))}addRegisterMxDbEntity(MxDbGradientLine);class MxDbEllipseArc extends MxDbEllipseShape{getTypeName(){return"MxDbEllipseArc"}constructor(){super(),this._propertyDbKeys=[...this._propertyDbKeys,"startPoint","endPoint"]}setStartPoint(e){return this.startPoint=e,this}setEndPoint(e){return this.endPoint=e,this}worldDraw(e){let{center:r,startPoint:n,endPoint:o}=this;n&&(this.xRadius=r.distanceTo(n),this.startAngle=THREE.MathUtils.degToRad(calculateArcAngle(n,r,this.xRadius).angle)),o&&(this.yRadius=r.distanceTo(o),this.endAngle=THREE.MathUtils.degToRad(calculateArcAngle(o,r,this.yRadius).angle)),this.drawEllipseShape(e)}getGripPoints(){return[this.center,this.startPoint,this.endPoint]}moveGripPointsAt(e,r){return e===0&&(this.center.add(r),this.startPoint.add(r),this.endPoint.add(r)),e===1&&this.startPoint.add(r),e===2&&this.endPoint.add(r),!0}}function drawMxDbCircleArc(){const t=new MrxDbgUiPrPoint,e=MxFun.getCurrentDraw(),r=new McEdGetPointWorldDrawObject;let n=new MxDbCircleArc;n.stroke="#ff0000",t.setUserDraw(r),t.setMessage(`
  3347. \u786E\u5B9A\u5706\u5F27\u4E2D\u70B9:`),t.go(()=>Gr(this,null,function*(){n.center=t.value(),r.setDraw(o=>{r.drawLine(n.center,o)}),t.setMessage(`
  3348. \u786E\u5B9A\u5706\u5F27\u5F00\u59CB\u70B9:`),n.startPoint=(yield t.go())||new THREE.Vector3,r.setDraw(o=>{n.endPoint=o,r.drawCustomEntity(n)}),t.setMessage(`
  3349. \u786E\u5B9A\u5706\u5F27\u7ED3\u675F\u70B9:`),n.endPoint=(yield t.go())||new THREE.Vector3,r.setDraw(()=>{}),e.addMxEntity(n)}))}MxDbEllipseArc.cmd="Mx_MxDbEllipseArc",MxDbEllipseArc.draw=drawMxDbEllipseArc,addRegisterMxDbEntity(MxDbEllipseArc);class MxDbCircleArc extends MxDbCircleShape{constructor(){super(),this._propertyDbKeys=[...this._propertyDbKeys,"startPoint","endPoint"]}getTypeName(){return"MxDbCircleArc"}setStartPoint(e){return this.startPoint=e,this}setEndPoint(e){return this.endPoint=e,this}worldDraw(e){let{startPoint:r,endPoint:n}=this;if(r&&(this.startAngle=this.computePointAngle(r)),n&&(this.endAngle=this.computePointAngle(n)),r&&n){const{points:o}=this.drawEllipseShape(e);this.startPoint=o[0]}}computePointAngle(e){return this.radius=this.center.distanceTo(e),THREE.MathUtils.degToRad(calculateArcAngle(e,this.center,this.radius).angle)}getGripPoints(){return[this.center,this.startPoint,this.endPoint]}moveGripPointsAt(e,r){return e===0?(this.center.add(r),this.startPoint.add(r),this.endPoint.add(r)):e===1?this.startPoint.add(r):e===2&&this.endPoint.add(r),!0}}MxDbCircleArc.cmd="Mx_MxDbCircleArc",MxDbCircleArc.draw=drawMxDbCircleArc,addRegisterMxDbEntity(MxDbCircleArc);class MxDbArcShape extends MxDbCircleArc{constructor(){super(),this.center=new THREE.Vector3,this.innerRadius=10,this.outerRadius=20,this._propertyDbKeys=[...this._propertyDbKeys,"center","innerRadius","outerRadius"]}getTypeName(){return"MxDbArcShape"}worldDraw(e){e.getType()===McGiWorldDrawType$1.kDynDragDraw?(e.drawCircle(this.center,this.innerRadius),e.drawCircle(this.center,this.outerRadius)):this.drawArcShape(e)}drawArcShape(e){const{center:r,startAngle:n,endAngle:o,clockwise:s}=this,{x:c,y:l}=r;this.isClosedToCenter=!1;const v=this.createEllipseCurve(c,l,this.innerRadius,this.innerRadius,n,o,s),x=this.createEllipseCurve(c,l,this.outerRadius,this.outerRadius,o,n,!s),w=this.createPaths([v,x]);let _=this.getShapePoints(w);this._draw(e,_),this._drawStoreLine(e,_)}getGripPoints(){return[this.center]}moveGripPointsAt(e,r){return e===0&&this.center.add(r),!0}}function drawMxDbArcShape(){const t=new MrxDbgUiPrPoint,e=MxFun.getCurrentDraw(),r=new McEdGetPointWorldDrawObject;let n=new MxDbArcShapeDraw;t.setMessage(`
  3350. \u786E\u5B9A\u5706\u5F27\u4E2D\u70B9:`),t.setUserDraw(r),t.go(()=>Gr(this,null,function*(){t.setMessage(`
  3351. \u786E\u5B9A\u5706\u5F27\u5F00\u59CB\u70B9:`),n.center=t.value(),r.setDraw(o=>{n.interRadiusPoint=o,r.drawCircle(n.center,o.distanceTo(n.center))}),n.interRadiusPoint=(yield t.go())||new THREE.Vector3,r.setDraw(o=>{n.outerRadiusPoint=o,r.drawCustomEntity(n)}),n.outerRadiusPoint=(yield t.go())||new THREE.Vector3,e.addMxEntity(n)}))}class MxDbArcShapeDraw extends MxDbArcShape{getTypeName(){return"MxDbArcShapeDraw"}constructor(){super(),this.outerRadiusPoint=new THREE.Vector3,this.interRadiusPoint=new THREE.Vector3,this._propertyDbKeys=[...this._propertyDbKeys,"interRadiusPoint","outerRadiusPoint"]}worldDraw(e){this.innerRadius=this.center.distanceTo(this.interRadiusPoint),this.outerRadius=this.center.distanceTo(this.outerRadiusPoint),this.startAngle=THREE.MathUtils.degToRad(calculateArcAngle(this.interRadiusPoint,this.center,this.innerRadius).angle),this.endAngle=THREE.MathUtils.degToRad(calculateArcAngle(this.outerRadiusPoint,this.center,this.outerRadius).angle),this.drawArcShape(e)}getGripPoints(){return[this.center,this.interRadiusPoint,this.outerRadiusPoint]}moveGripPointsAt(e,r){return e===0&&(this.center.add(r),this.interRadiusPoint.add(r),this.outerRadiusPoint.add(r)),e===1&&this.interRadiusPoint.add(r),e===2&&this.outerRadiusPoint.add(r),!0}}function drawMxDbRingShape(){const t=new MrxDbgUiPrPoint,e=MxFun.getCurrentDraw(),r=new McEdGetPointWorldDrawObject;t.setUserDraw(r);const n=new McEdGetPointWorldDrawObject,o=new MxDbRingShapeDraw;t.setUserDraw(n),t.setMessage(`
  3352. \u786E\u5B9A\u5706\u5F27\u5F00\u59CB\u70B9:`),t.go(s=>Gr(this,null,function*(){console.log(123),o.center=t.value(),n.setDraw(c=>{n.drawCircle(o.center,o.center.distanceTo(c))}),o.innerPoint=(yield t.go())||new THREE.Vector3,n.setDraw(c=>{o.outerPoint=c,n.drawCustomEntity(o)}),o.outerPoint=(yield t.go())||new THREE.Vector3,e.addMxEntity(o)}))}MxDbArcShapeDraw.isRegister=!1,MxDbArcShapeDraw.cmd="Mx_MxDbArcShape",MxDbArcShapeDraw.draw=drawMxDbArcShape,addRegisterMxDbEntity(MxDbArcShapeDraw);class MxDbRingShape extends MxDbArcShape{getTypeName(){return"MxDbRingShape"}worldDraw(e){const{center:r,startAngle:n,endAngle:o,clockwise:s}=this,{x:c,y:l}=r;this.isClosedToCenter=!1;const v=this.createEllipseCurve(c,l,this.innerRadius,this.innerRadius,n,o,s),x=this.createEllipseCurve(c,l,this.outerRadius,this.outerRadius,n,o,!s),w=this.createPaths([v,x]);let _=this.getShapePoints(w);const b=this.createPaths(v);let E=this.getShapePoints(b);const I=this.createPaths(x);let O=this.getShapePoints(I);this.isFill?(this._draw(e,_),this._drawStoreLine(e,E),this._drawStoreLine(e,O)):(this._draw(e,E),this._drawStoreLine(e,E),this._draw(e,O),this._drawStoreLine(e,O))}}MxDbRingShape.isRegister=!1,MxDbRingShape.cmd="Mx_MxDbRingShape",MxDbRingShape.draw=drawMxDbRingShape;class MxDbRingShapeDraw extends MxDbRingShape{constructor(){super(),this.innerPoint=new THREE.Vector3,this.outerPoint=new THREE.Vector3,this._propertyDbKeys=[...this._propertyDbKeys,"innerPoint","outerPoint"]}getGripPoints(){return[this.center,this.innerPoint,this.outerPoint]}moveGripPointsAt(e,r){return e===0&&(this.center.add(r),this.innerPoint.add(r),this.outerPoint.add(r)),e===1&&this.innerPoint.add(r),e===2&&this.outerPoint.add(r),!0}worldDraw(e){this.innerPoint&&(this.innerRadius=this.center.distanceTo(this.innerPoint)),this.outerPoint&&(this.outerRadius=this.center.distanceTo(this.outerPoint)),super.worldDraw(e)}}function drawMxDbStarShape(){const t=new MrxDbgUiPrPoint,e=MxFun.getCurrentDraw(),r=new McEdGetPointWorldDrawObject;t.setUserDraw(r);const n=new McEdGetPointWorldDrawObject,o=new MxDbStarShapeDraw;t.setUserDraw(n),t.setMessage(`
  3353. \u786E\u5B9A\u5706\u5F27\u5F00\u59CB\u70B9:`),t.go(s=>Gr(this,null,function*(){o.center=t.value(),n.setDraw(c=>{o.innerPoint=c,n.drawCircle(o.center,o.center.distanceTo(c))}),o.innerPoint=(yield t.go())||new THREE.Vector3,n.setDraw(c=>{o.outerPoint=c,n.drawCustomEntity(o)}),o.outerPoint=(yield t.go())||new THREE.Vector3,e.addMxEntity(o)}))}addRegisterMxDbEntity(MxDbRingShape);class MxDbStarShape extends MxDbShape{getTypeName(){return"MxDbStarShape"}constructor(){super(),this.center=new THREE.Vector3,this.numPoints=10,this.innerRadius=10,this.outerRadius=10,this._propertyDbKeys=[...this._propertyDbKeys,"center","numPoints","innerRadius","outerRadius"]}worldDraw(e){const{x:r,y:n}=this.center,o=new THREE.Path;o.moveTo(r,n-this.outerRadius);for(let l=1;l<2*this.numPoints;l++){const v=l%2==0?this.outerRadius:this.innerRadius,x=v*Math.sin(l*Math.PI/this.numPoints)+r,w=-1*v*Math.cos(l*Math.PI/this.numPoints)+n;o.lineTo(x,w)}o.closePath();const s=this.createPaths(o),c=this.getShapePoints(s);this._draw(e,c),this._drawStoreLine(e,c)}getGripPoints(){return[this.center]}moveGripPointsAt(e,r){return e===0&&this.center.add(r),!0}}MxDbStarShape.cmd="Mx_MxDbStarShape",MxDbStarShape.draw=drawMxDbStarShape;class MxDbStarShapeDraw extends MxDbStarShape{constructor(){super(),this.innerPoint=new THREE.Vector3,this.outerPoint=new THREE.Vector3,this._propertyDbKeys=[...this._propertyDbKeys,"innerPoint","outerPoint"]}getGripPoints(){return[this.center,this.innerPoint,this.outerPoint]}moveGripPointsAt(e,r){return e===0&&(this.center.add(r),this.innerPoint.add(r),this.outerPoint.add(r)),e===1&&this.innerPoint.add(r),e===2&&this.outerPoint.add(r),!0}worldDraw(e){this.innerPoint&&(this.innerRadius=this.center.distanceTo(this.innerPoint)),this.outerPoint&&(this.outerRadius=this.center.distanceTo(this.outerPoint)),super.worldDraw(e)}}addRegisterMxDbEntity(MxDbStarShape);class MxDbRegularPolygonShape extends MxDbShape{getTypeName(){return"MxDbRegularPolygonShape"}constructor(){super(),this.center=new THREE.Vector3,this.sidesNumber=6,this.radius=70,this._propertyDbKeys=[...this._propertyDbKeys,"center","sidesNumber","radius"]}worldDraw(e){this._drawPolygonShape(e)}_drawPolygonShape(e){const r=this._getPoints(),n=new THREE.Path;n.moveTo(r[0].x,r[0].y);for(let c=0;c<r.length;c++)n.lineTo(r[c].x,r[c].y);n.closePath();const o=this.createPaths(n),s=this.getShapePoints(o);this._draw(e,s),this._drawStoreLine(e,s)}_getPoints(){const{sidesNumber:e,radius:r}=this,{x:n,y:o}=this.center,s=[];for(let c=0;c<e;c++)s.push({x:r*Math.sin(2*c*Math.PI/e)+n,y:-1*r*Math.cos(2*c*Math.PI/e)+o});return s}getGripPoints(){return[this.center]}moveGripPointsAt(e,r){return e===0&&this.center.add(r),!0}}function getScreenPixel(t,e){let r=MxFun.screenCoordLong2World(e?t:t-t/3);return r=MxFun.worldCoordLong2Doc(r)}function drawMxDbArrow(){const t=new McEdGetPointWorldDrawObject,e=new MxDbArrow,r=MxFun.getCurrentDraw(),n=new MrxDbgUiPrPoint;n.setUserDraw(t),e.setLineWidth(10),n.go(()=>{e.innerOffset=getScreenPixel(10),e.outerOffset=getScreenPixel(22),e.topOffset=getScreenPixel(36),e.startPoint=n.value(),t.setDraw(o=>{e.endPoint=o,t.drawCustomEntity(e)}),n.go(o=>Gr(this,null,function*(){e.endPoint=n.value(),r.addMxEntity(e)}))})}addRegisterMxDbEntity(MxDbRegularPolygonShape);class MxDbArrow extends MxDbShape{constructor(){super(),this.isSharpCorner=!1,this.innerOffset=10,this.outerOffset=22,this.topOffset=36,this.startPoint=new THREE.Vector3,this.endPoint=new THREE.Vector3,this._propertyDbKeys=[...this._propertyDbKeys,"outerOffset","topOffset","innerOffset","isSharpCorner","startPoint","endPoint"]}worldDraw(e){const r=this.getArrowVertex(this.startPoint,this.endPoint);r&&(this._draw(e,r),this._drawStoreLine(e,r))}getArrowVertex(e,r,n=this.isSharpCorner){let{innerOffset:o,topOffset:s,outerOffset:c}=this;const l=[];l[3]=r;const v=Math.sqrt((e.x-r.x)*(e.x-r.x)+(e.y-r.y)*(e.y-r.y));if(v===0)return;const x=-(r.x-e.x)/v,w=(r.y-e.y)/v,_=e.x+o,b=e.y+v-s,E=e.x+c,I=e.y+v-s,O=e.x-o,N=e.y+v-s,A=e.x-c,z=e.y+v-s;return n?(l[0]=e,l[6]=l[0]):(l[0]=new THREE.Vector3(e.x-(O-e.x)*w,e.y-(O-e.x)*x),l[6]=new THREE.Vector3(e.x+(O-e.x)*w,e.y+(O-e.x)*x),l[7]=l[0]),l[1]=new THREE.Vector3(e.x+(_-e.x)*w-(b-e.y)*x,e.y+(_-e.x)*x+(b-e.y)*w),l[2]=new THREE.Vector3(e.x+(E-e.x)*w-(I-e.y)*x,e.y+(E-e.x)*x+(I-e.y)*w),l[4]=new THREE.Vector3(e.x+(A-e.x)*w-(z-e.y)*x,e.y+(A-e.x)*x+(z-e.y)*w),l[5]=new THREE.Vector3(e.x+(O-e.x)*w-(N-e.y)*x,e.y+(O-e.x)*x+(N-e.y)*w),l}getGripPoints(){const e=new THREE.Vector3;return new THREE.Line3(this.startPoint,this.endPoint).getCenter(e),[this.startPoint,e,this.endPoint]}moveGripPointsAt(e,r){return e===0&&this.startPoint.add(r),e===1&&(this.startPoint.add(r),this.endPoint.add(r)),e===2&&this.endPoint.add(r),!0}getCornerRadiusPoints(e){return e}}MxDbArrow.cmd="Mx_MxDbArrow",MxDbArrow.draw=drawMxDbArrow,addRegisterMxDbEntity(MxDbArrow);class MxDbLineShape extends MxDbShape{setPoints(e){return this.points=e,this}addPoint(e){return this.points.push(e),this}removePoint(e){return this.points.splice(e,1),this}constructor(){super(),this.points=[],this._propertyDbKeys=[...this._propertyDbKeys,"points"]}getTypeName(){return"MxDbLineShape"}worldDraw(e){this._draw(e,this.points),this._drawStoreLine(e,this.points)}getGripPoints(){return this.points}moveGripPointsAt(e,r){return this.points[e].add(r),!0}getGeomExtents(){return new THREE.Box3().setFromPoints(this.points)}getGetLength(){let e=0;for(let r=0;r++;r<this.points.length)this.points[r+1]&&(e+=this.points[r].distanceTo(this.points[r+1]));return e}}function drawMxDbSplineCurve(){return Gr(this,null,function*(){const t=new MrxDbgUiPrPoint,e=new MxDbSplineCurve;t.setMessage(`
  3354. \u6307\u5B9A\u7B2C\u4E00\u4E2A\u70B9:`),t.goWhile(r=>Gr(this,null,function*(){if(r===MrxDbgUiPrBaseReturn$1.kOk)e.points.push(t.value()),t.setUserDraw((n,o)=>{const s=e.clone();s.points.push(n),o.drawCustomEntity(s),e.points.length===0?t.setMessage(`
  3355. \u6307\u5B9A\u7B2C\u4E00\u4E2A\u70B9:`):(t.setMessage(`
  3356. \u6307\u5B9A\u4E0B\u4E00\u4E2A\u70B9:`),t.setKeyWords("[\u95ED\u5408(C)/ \u653E\u5F03(U)]"))});else if(r===MrxDbgUiPrBaseReturn$1.kKeyWord){if(t.isKeyWordPicked("C"))return e.closed=!0,{exit:!0};t.isKeyWordPicked("U")&&e.points.pop()}}),()=>{MxFun.getCurrentDraw().addMxEntity(e)})})}addRegisterMxDbEntity(MxDbLineShape);const propertyDbKeys=["points","closed","tension","curveType"];class MxDbSplineCurve extends MxDbEntity{constructor(){super(...arguments),this.points=[],this.closed=!1,this.tension=.5,this.curveType="centripetal"}worldDraw(e){const r=new THREE.CatmullRomCurve3(this.points,this.closed,"catmullrom",this.tension).getPoints(15*this.points.length),n=new THREE.Geometry().setFromPoints(r),o=new THREE.LineBasicMaterial({color:this.color}),s=new THREE.Line(n,o);e.drawEntity(s)}getGripPoints(){return this.points}moveGripPointsAt(e,r){return this.points[e].add(r),!0}create(){return new MxDbSplineCurve}dwgIn(e){return this.onDwgIn(e),this.dwgInHelp(e,propertyDbKeys),!0}dwgOut(e){return this.onDwgOut(e),this.dwgOutHelp(e,propertyDbKeys),e}getTypeName(){return"MxDbSplineCurve"}}MxDbSplineCurve.draw=drawMxDbSplineCurve,MxDbSplineCurve.cmd="Mx_Spline",addRegisterMxDbEntity(MxDbSplineCurve);class MrxDbgUiPrDist extends MrxDbgUiPrBase{constructor(){var e;super(new((e=store.state.MxFun)===null||e===void 0?void 0:e.getMxJigCmdManager().getMrxDbgUiPrDistClass()))}value(){return this.imp.value()}basePt(){return this.imp.basePt()}setBasePt(e){return this.imp.setBasePt(e)}setUseBasePt(e){return this.imp.setUseBasePt(e)}go(e){let r=this;return e?(r.imp.go(n=>{r.status=n,e(n)}),new Promise((n,o)=>{n(null)})):new Promise((n,o)=>{r.imp.go(s=>{r.status=s,n(s!=0?null:r.imp.value())})})}}class MrxDbgUiPrInt extends MrxDbgUiPrBase{constructor(){var e;super(new((e=store.state.MxFun)===null||e===void 0?void 0:e.getMxJigCmdManager().getMrxDbgUiPrIntClass()))}value(){return this.imp.value()}go(e){let r=this;return e?(r.imp.go(n=>{r.status=n,e(n)}),new Promise((n,o)=>{n(null)})):new Promise((n,o)=>{r.imp.go(s=>{r.status=s,n(s!=0?null:r.imp.value())})})}}class MrxDbgUiPrString extends MrxDbgUiPrBase{constructor(){var e;super(new((e=store.state.MxFun)===null||e===void 0?void 0:e.getMxJigCmdManager().getMrxDbgUiPrStringClass()))}value(){return this.imp.value()}go(e){let r=this;return e?(r.imp.go(n=>{r.status=n,e(n)}),new Promise((n,o)=>{n(null)})):new Promise((n,o)=>{r.imp.go(s=>{r.status=s,n(s!=0?null:r.imp.value())})})}}class MrxDbgUiPrKeyWord extends MrxDbgUiPrBase{constructor(){var e;super(new((e=store.state.MxFun)===null||e===void 0?void 0:e.getMxJigCmdManager().getMrxDbgUiPrKeyWordClass()))}go(e){let r=this;return e?(r.imp.go(n=>{r.status=n,e(n)}),new Promise((n,o)=>{n(null)})):new Promise((n,o)=>{r.imp.go(s=>{r.status=s,n(s!=0?null:r.keyWordPicked())})})}}class MrxDbgUiPrAngle extends MrxDbgUiPrBase{constructor(){var e;super(new((e=store.state.MxFun)===null||e===void 0?void 0:e.getMxJigCmdManager().getMrxDbgUiPrAngleClass()))}value(){return this.imp.value()}basePt(){return this.imp.basePt()}setBasePt(e){return this.imp.setBasePt(e)}setUseBasePt(e){return this.imp.setUseBasePt(e)}go(e){let r=this;return e?(r.imp.go(n=>{r.status=n,e(n)}),new Promise((n,o)=>{n(null)})):new Promise((n,o)=>{r.imp.go(s=>{r.status=s,n(s!=0?null:r.imp.value())})})}}var Mx=Object.freeze({__proto__:null,loadCoreCode,useCanvasResizeListener,store,MxFun,MxThreeJS,MxType,Mxassembly,McGeTool,MrxDbgUtils,MxPaintBrush,MrxDbgUiPrPoint,McEdGetPointWorldDrawObject,MrxDbgUiPrBaseReturn:MrxDbgUiPrBaseReturn$1,MxDbEntity,MxDbImage,MxDbSVG,MxDbSVGText,MxDbPolyline,MxDb2LineAngularDimension,Mx3PointArc,Mx2PointArc,MxDbCoord,MxDbLine,MxDbRect,MxDbAlignedDimension,MxFilters,McGiWorldDrawType:McGiWorldDrawType$1,MxDbArea,MxDbLeadTag,MxDbAnyLine,MxDbCloudLine,MxDbRegularPolygon,MxDbLeadComment,MxDbRectBoxLeadComment,MxDbEllipse,MxDbText,MxDrawObject,MxDbHatch,MxDbDatabase,MxDbGradientLine,MxDbShape,MxDbEllipseShape,MxDbEllipseArc,MxDbCircleShape,MxDbCircleArc,MxDbArcShapeDraw,MxDbRingShape,MxDbStarShape,MxDbRegularPolygonShape,MxDbArrow,MxDbLineShape,Layer,MxDbSplineCurve,MrxDbgUiPrBase,get MxCursorType(){return MxCursorType},get DetailedResult(){return DetailedResult},get DynamicInputType(){return DynamicInputType},get UserInputControls(){return UserInputControls},MrxDbgUiPrDist,MrxDbgUiPrInt,MrxDbgUiPrString,MrxDbgUiPrKeyWord,MrxDbgUiPrAngle}),elementResizeEventPolyfill_umd_min=createCommonjsModule(function(t,e){t.exports=function(r){var n={};function o(s){if(n[s])return n[s].exports;var c=n[s]={i:s,l:!1,exports:{}};return r[s].call(c.exports,c,c.exports,o),c.l=!0,c.exports}return o.m=r,o.c=n,o.d=function(s,c,l){o.o(s,c)||Object.defineProperty(s,c,{enumerable:!0,get:l})},o.r=function(s){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},o.t=function(s,c){if(1&c&&(s=o(s)),8&c||4&c&&typeof s=="object"&&s&&s.__esModule)return s;var l=Object.create(null);if(o.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:s}),2&c&&typeof s!="string")for(var v in s)o.d(l,v,function(x){return s[x]}.bind(null,v));return l},o.n=function(s){var c=s&&s.__esModule?function(){return s.default}:function(){return s};return o.d(c,"a",c),c},o.o=function(s,c){return Object.prototype.hasOwnProperty.call(s,c)},o.p="",o(o.s="fae3")}({"6dd8":function(r,n,o){(function(s){var c=function(){if(typeof Map!="undefined")return Map;function me(ye,Te){var ke=-1;return ye.some(function(Le,et){return Le[0]===Te&&(ke=et,!0)}),ke}return function(){function ye(){this.__entries__=[]}return Object.defineProperty(ye.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),ye.prototype.get=function(Te){var ke=me(this.__entries__,Te),Le=this.__entries__[ke];return Le&&Le[1]},ye.prototype.set=function(Te,ke){var Le=me(this.__entries__,Te);~Le?this.__entries__[Le][1]=ke:this.__entries__.push([Te,ke])},ye.prototype.delete=function(Te){var ke=this.__entries__,Le=me(ke,Te);~Le&&ke.splice(Le,1)},ye.prototype.has=function(Te){return!!~me(this.__entries__,Te)},ye.prototype.clear=function(){this.__entries__.splice(0)},ye.prototype.forEach=function(Te,ke){ke===void 0&&(ke=null);for(var Le=0,et=this.__entries__;Le<et.length;Le++){var it=et[Le];Te.call(ke,it[1],it[0])}},ye}()}(),l=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,v=s!==void 0&&s.Math===Math?s:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")(),x=typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(v):function(me){return setTimeout(function(){return me(Date.now())},1e3/60)},w=2,_=20,b=["top","right","bottom","left","width","height","size","weight"],E=typeof MutationObserver!="undefined",I=function(){function me(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(ye,Te){var ke=!1,Le=!1,et=0;function it(){ke&&(ke=!1,ye()),Le&&ht()}function Ue(){x(it)}function ht(){var De=Date.now();if(ke){if(De-et<w)return;Le=!0}else ke=!0,Le=!1,setTimeout(Ue,Te);et=De}return ht}(this.refresh.bind(this),_)}return me.prototype.addObserver=function(ye){~this.observers_.indexOf(ye)||this.observers_.push(ye),this.connected_||this.connect_()},me.prototype.removeObserver=function(ye){var Te=this.observers_,ke=Te.indexOf(ye);~ke&&Te.splice(ke,1),!Te.length&&this.connected_&&this.disconnect_()},me.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},me.prototype.updateObservers_=function(){var ye=this.observers_.filter(function(Te){return Te.gatherActive(),Te.hasActive()});return ye.forEach(function(Te){return Te.broadcastActive()}),ye.length>0},me.prototype.connect_=function(){l&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),E?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},me.prototype.disconnect_=function(){l&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},me.prototype.onTransitionEnd_=function(ye){var Te=ye.propertyName,ke=Te===void 0?"":Te;b.some(function(Le){return!!~ke.indexOf(Le)})&&this.refresh()},me.getInstance=function(){return this.instance_||(this.instance_=new me),this.instance_},me.instance_=null,me}(),O=function(me,ye){for(var Te=0,ke=Object.keys(ye);Te<ke.length;Te++){var Le=ke[Te];Object.defineProperty(me,Le,{value:ye[Le],enumerable:!1,writable:!1,configurable:!0})}return me},N=function(me){return me&&me.ownerDocument&&me.ownerDocument.defaultView||v},A=B(0,0,0,0);function z(me){return parseFloat(me)||0}function G(me){for(var ye=[],Te=1;Te<arguments.length;Te++)ye[Te-1]=arguments[Te];return ye.reduce(function(ke,Le){return ke+z(me["border-"+Le+"-width"])},0)}function V(me){var ye=me.clientWidth,Te=me.clientHeight;if(!ye&&!Te)return A;var ke=N(me).getComputedStyle(me),Le=function(Ve){for(var He={},gt=0,dn=["top","right","bottom","left"];gt<dn.length;gt++){var Ze=dn[gt],at=Ve["padding-"+Ze];He[Ze]=z(at)}return He}(ke),et=Le.left+Le.right,it=Le.top+Le.bottom,Ue=z(ke.width),ht=z(ke.height);if(ke.boxSizing==="border-box"&&(Math.round(Ue+et)!==ye&&(Ue-=G(ke,"left","right")+et),Math.round(ht+it)!==Te&&(ht-=G(ke,"top","bottom")+it)),!function(Ve){return Ve===N(Ve).document.documentElement}(me)){var De=Math.round(Ue+et)-ye,Be=Math.round(ht+it)-Te;Math.abs(De)!==1&&(Ue-=De),Math.abs(Be)!==1&&(ht-=Be)}return B(Le.left,Le.top,Ue,ht)}var ne=typeof SVGGraphicsElement!="undefined"?function(me){return me instanceof N(me).SVGGraphicsElement}:function(me){return me instanceof N(me).SVGElement&&typeof me.getBBox=="function"};function W(me){return l?ne(me)?function(ye){var Te=ye.getBBox();return B(0,0,Te.width,Te.height)}(me):V(me):A}function B(me,ye,Te,ke){return{x:me,y:ye,width:Te,height:ke}}var q=function(){function me(ye){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=B(0,0,0,0),this.target=ye}return me.prototype.isActive=function(){var ye=W(this.target);return this.contentRect_=ye,ye.width!==this.broadcastWidth||ye.height!==this.broadcastHeight},me.prototype.broadcastRect=function(){var ye=this.contentRect_;return this.broadcastWidth=ye.width,this.broadcastHeight=ye.height,ye},me}(),D=function(){return function(me,ye){var Te=function(ke){var Le=ke.x,et=ke.y,it=ke.width,Ue=ke.height,ht=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,De=Object.create(ht.prototype);return O(De,{x:Le,y:et,width:it,height:Ue,top:et,right:Le+it,bottom:Ue+et,left:Le}),De}(ye);O(this,{target:me,contentRect:Te})}}(),F=function(){function me(ye,Te,ke){if(this.activeObservations_=[],this.observations_=new c,typeof ye!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=ye,this.controller_=Te,this.callbackCtx_=ke}return me.prototype.observe=function(ye){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(typeof Element!="undefined"&&Element instanceof Object){if(!(ye instanceof N(ye).Element))throw new TypeError('parameter 1 is not of type "Element".');var Te=this.observations_;Te.has(ye)||(Te.set(ye,new q(ye)),this.controller_.addObserver(this),this.controller_.refresh())}},me.prototype.unobserve=function(ye){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(typeof Element!="undefined"&&Element instanceof Object){if(!(ye instanceof N(ye).Element))throw new TypeError('parameter 1 is not of type "Element".');var Te=this.observations_;Te.has(ye)&&(Te.delete(ye),Te.size||this.controller_.removeObserver(this))}},me.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},me.prototype.gatherActive=function(){var ye=this;this.clearActive(),this.observations_.forEach(function(Te){Te.isActive()&&ye.activeObservations_.push(Te)})},me.prototype.broadcastActive=function(){if(this.hasActive()){var ye=this.callbackCtx_,Te=this.activeObservations_.map(function(ke){return new D(ke.target,ke.broadcastRect())});this.callback_.call(ye,Te,ye),this.clearActive()}},me.prototype.clearActive=function(){this.activeObservations_.splice(0)},me.prototype.hasActive=function(){return this.activeObservations_.length>0},me}(),re=typeof WeakMap!="undefined"?new WeakMap:new c,le=function(){return function me(ye){if(!(this instanceof me))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var Te=I.getInstance(),ke=new F(ye,Te,this);re.set(this,ke)}}();["observe","unobserve","disconnect"].forEach(function(me){le.prototype[me]=function(){var ye;return(ye=re.get(this))[me].apply(ye,arguments)}});var fe=v.ResizeObserver!==void 0?v.ResizeObserver:le;n.a=fe}).call(this,o("c8ba"))},c8ba:function(r,n){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch(s){typeof window=="object"&&(o=window)}r.exports=o},f6fd:function(r,n){(function(o){var s="currentScript",c=o.getElementsByTagName("script");s in o||Object.defineProperty(o,s,{get:function(){try{throw new Error}catch(x){var l,v=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(x.stack)||[!1])[1];for(l in c)if(c[l].src==v||c[l].readyState=="interactive")return c[l];return null}}})})(document)},fae3:function(r,n,o){var s;o.r(n),o.d(n,"EventListenerWrapper",function(){return x}),typeof window!="undefined"&&(o("f6fd"),(s=window.document.currentScript)&&(s=s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(o.p=s[1]));var c=o("6dd8");const l=EventTarget.prototype.addEventListener,v=function(b){const E=document.createEvent("HTMLEvents");return E.initEvent(b),E},x=function(b){b==="resize"&&_(this),l.apply(this,arguments)};function w(b){const E=w.observer=w.observer||new c.a(b);return E.initialized=!0,E}function _(b){const E=w(I=>{if(E.initialized)E.initialized=!1;else for(let O of I){const N=v("resize");O.target.dispatchEvent(N),O&&O.target&&typeof O.target.onresize=="function"&&O.target.onresize(N)}});E.observe(b)}HTMLElement.prototype.addEventListener=x,Reflect.defineProperty(HTMLElement.prototype,"onresize",{set(b){this._onresize=b,typeof b=="function"&&_(this)},get(){return this._onresize||null}})}})}),elementResizeEventPolyfill_umd_min$1=unwrapExports(elementResizeEventPolyfill_umd_min),elementResizeEventPolyfill_umd_min$2=Object.freeze({__proto__:null,default:elementResizeEventPolyfill_umd_min$1,__moduleExports:elementResizeEventPolyfill_umd_min});const Mx$1=Object.freeze(Object.defineProperty({__proto__:null,get DetailedResult(){return DetailedResult},get DynamicInputType(){return DynamicInputType},Layer,McEdGetPointWorldDrawObject,McGeTool,McGiWorldDrawType:McGiWorldDrawType$1,MrxDbgUiPrAngle,MrxDbgUiPrBase,MrxDbgUiPrBaseReturn:MrxDbgUiPrBaseReturn$1,MrxDbgUiPrDist,MrxDbgUiPrInt,MrxDbgUiPrKeyWord,MrxDbgUiPrPoint,MrxDbgUiPrString,MrxDbgUtils,Mx2PointArc,Mx3PointArc,get MxCursorType(){return MxCursorType},MxDb2LineAngularDimension,MxDbAlignedDimension,MxDbAnyLine,MxDbArcShapeDraw,MxDbArea,MxDbArrow,MxDbCircleArc,MxDbCircleShape,MxDbCloudLine,MxDbCoord,MxDbDatabase,MxDbEllipse,MxDbEllipseArc,MxDbEllipseShape,MxDbEntity,MxDbGradientLine,MxDbHatch,MxDbImage,MxDbLeadComment,MxDbLeadTag,MxDbLine,MxDbLineShape,MxDbPolyline,MxDbRect,MxDbRectBoxLeadComment,MxDbRegularPolygon,MxDbRegularPolygonShape,MxDbRingShape,MxDbSVG,MxDbSVGText,MxDbShape,MxDbSplineCurve,MxDbStarShape,MxDbText,MxDrawObject,MxFilters,MxFun,MxPaintBrush,MxThreeJS,MxType,Mxassembly,get UserInputControls(){return UserInputControls},default:Mx,loadCoreCode,store,useCanvasResizeListener},Symbol.toStringTag,{value:"Module"}));function asyncGeneratorStep(t,e,r,n,o,s,c){try{var l=t[s](c),v=l.value}catch(x){r(x);return}l.done?e(v):Promise.resolve(v).then(n,o)}function _asyncToGenerator(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var s=t.apply(e,r);function c(v){asyncGeneratorStep(s,n,o,c,l,"next",v)}function l(v){asyncGeneratorStep(s,n,o,c,l,"throw",v)}c(void 0)})}}function _typeof$2(t){return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$2(t)}function getAugmentedNamespace(t){var e=t.default;if(typeof e=="function"){var r=function(){return e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),r}var regeneratorRuntime$1={exports:{}},_typeof$1={exports:{}};(function(t){function e(r){return t.exports=e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(_typeof$1);(function(t){var e=_typeof$1.exports.default;function r(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=r=function(){return o},t.exports.__esModule=!0,t.exports.default=t.exports;var n,o={},s=Object.prototype,c=s.hasOwnProperty,l=Object.defineProperty||function(et,it,Ue){et[it]=Ue.value},v=typeof Symbol=="function"?Symbol:{},x=v.iterator||"@@iterator",w=v.asyncIterator||"@@asyncIterator",_=v.toStringTag||"@@toStringTag";function b(et,it,Ue){return Object.defineProperty(et,it,{value:Ue,enumerable:!0,configurable:!0,writable:!0}),et[it]}try{b({},"")}catch(et){b=function(Ue,ht,De){return Ue[ht]=De}}function E(et,it,Ue,ht){var De=it&&it.prototype instanceof V?it:V,Be=Object.create(De.prototype),Ve=new ke(ht||[]);return l(Be,"_invoke",{value:fe(et,Ue,Ve)}),Be}function I(et,it,Ue){try{return{type:"normal",arg:et.call(it,Ue)}}catch(ht){return{type:"throw",arg:ht}}}o.wrap=E;var O="suspendedStart",N="suspendedYield",A="executing",z="completed",G={};function V(){}function ne(){}function W(){}var B={};b(B,x,function(){return this});var q=Object.getPrototypeOf,D=q&&q(q(Le([])));D&&D!==s&&c.call(D,x)&&(B=D);var F=W.prototype=V.prototype=Object.create(B);function re(et){["next","throw","return"].forEach(function(it){b(et,it,function(Ue){return this._invoke(it,Ue)})})}function le(et,it){function Ue(De,Be,Ve,He){var gt=I(et[De],et,Be);if(gt.type!=="throw"){var dn=gt.arg,Ze=dn.value;return Ze&&e(Ze)=="object"&&c.call(Ze,"__await")?it.resolve(Ze.__await).then(function(at){Ue("next",at,Ve,He)},function(at){Ue("throw",at,Ve,He)}):it.resolve(Ze).then(function(at){dn.value=at,Ve(dn)},function(at){return Ue("throw",at,Ve,He)})}He(gt.arg)}var ht;l(this,"_invoke",{value:function(Be,Ve){function He(){return new it(function(gt,dn){Ue(Be,Ve,gt,dn)})}return ht=ht?ht.then(He,He):He()}})}function fe(et,it,Ue){var ht=O;return function(De,Be){if(ht===A)throw new Error("Generator is already running");if(ht===z){if(De==="throw")throw Be;return{value:n,done:!0}}for(Ue.method=De,Ue.arg=Be;;){var Ve=Ue.delegate;if(Ve){var He=me(Ve,Ue);if(He){if(He===G)continue;return He}}if(Ue.method==="next")Ue.sent=Ue._sent=Ue.arg;else if(Ue.method==="throw"){if(ht===O)throw ht=z,Ue.arg;Ue.dispatchException(Ue.arg)}else Ue.method==="return"&&Ue.abrupt("return",Ue.arg);ht=A;var gt=I(et,it,Ue);if(gt.type==="normal"){if(ht=Ue.done?z:N,gt.arg===G)continue;return{value:gt.arg,done:Ue.done}}gt.type==="throw"&&(ht=z,Ue.method="throw",Ue.arg=gt.arg)}}}function me(et,it){var Ue=it.method,ht=et.iterator[Ue];if(ht===n)return it.delegate=null,Ue==="throw"&&et.iterator.return&&(it.method="return",it.arg=n,me(et,it),it.method==="throw")||Ue!=="return"&&(it.method="throw",it.arg=new TypeError("The iterator does not provide a '"+Ue+"' method")),G;var De=I(ht,et.iterator,it.arg);if(De.type==="throw")return it.method="throw",it.arg=De.arg,it.delegate=null,G;var Be=De.arg;return Be?Be.done?(it[et.resultName]=Be.value,it.next=et.nextLoc,it.method!=="return"&&(it.method="next",it.arg=n),it.delegate=null,G):Be:(it.method="throw",it.arg=new TypeError("iterator result is not an object"),it.delegate=null,G)}function ye(et){var it={tryLoc:et[0]};1 in et&&(it.catchLoc=et[1]),2 in et&&(it.finallyLoc=et[2],it.afterLoc=et[3]),this.tryEntries.push(it)}function Te(et){var it=et.completion||{};it.type="normal",delete it.arg,et.completion=it}function ke(et){this.tryEntries=[{tryLoc:"root"}],et.forEach(ye,this),this.reset(!0)}function Le(et){if(et||et===""){var it=et[x];if(it)return it.call(et);if(typeof et.next=="function")return et;if(!isNaN(et.length)){var Ue=-1,ht=function De(){for(;++Ue<et.length;)if(c.call(et,Ue))return De.value=et[Ue],De.done=!1,De;return De.value=n,De.done=!0,De};return ht.next=ht}}throw new TypeError(e(et)+" is not iterable")}return ne.prototype=W,l(F,"constructor",{value:W,configurable:!0}),l(W,"constructor",{value:ne,configurable:!0}),ne.displayName=b(W,_,"GeneratorFunction"),o.isGeneratorFunction=function(et){var it=typeof et=="function"&&et.constructor;return!!it&&(it===ne||(it.displayName||it.name)==="GeneratorFunction")},o.mark=function(et){return Object.setPrototypeOf?Object.setPrototypeOf(et,W):(et.__proto__=W,b(et,_,"GeneratorFunction")),et.prototype=Object.create(F),et},o.awrap=function(et){return{__await:et}},re(le.prototype),b(le.prototype,w,function(){return this}),o.AsyncIterator=le,o.async=function(et,it,Ue,ht,De){De===void 0&&(De=Promise);var Be=new le(E(et,it,Ue,ht),De);return o.isGeneratorFunction(it)?Be:Be.next().then(function(Ve){return Ve.done?Ve.value:Be.next()})},re(F),b(F,_,"Generator"),b(F,x,function(){return this}),b(F,"toString",function(){return"[object Generator]"}),o.keys=function(et){var it=Object(et),Ue=[];for(var ht in it)Ue.push(ht);return Ue.reverse(),function De(){for(;Ue.length;){var Be=Ue.pop();if(Be in it)return De.value=Be,De.done=!1,De}return De.done=!0,De}},o.values=Le,ke.prototype={constructor:ke,reset:function(it){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(Te),!it)for(var Ue in this)Ue.charAt(0)==="t"&&c.call(this,Ue)&&!isNaN(+Ue.slice(1))&&(this[Ue]=n)},stop:function(){this.done=!0;var it=this.tryEntries[0].completion;if(it.type==="throw")throw it.arg;return this.rval},dispatchException:function(it){if(this.done)throw it;var Ue=this;function ht(dn,Ze){return Ve.type="throw",Ve.arg=it,Ue.next=dn,Ze&&(Ue.method="next",Ue.arg=n),!!Ze}for(var De=this.tryEntries.length-1;De>=0;--De){var Be=this.tryEntries[De],Ve=Be.completion;if(Be.tryLoc==="root")return ht("end");if(Be.tryLoc<=this.prev){var He=c.call(Be,"catchLoc"),gt=c.call(Be,"finallyLoc");if(He&&gt){if(this.prev<Be.catchLoc)return ht(Be.catchLoc,!0);if(this.prev<Be.finallyLoc)return ht(Be.finallyLoc)}else if(He){if(this.prev<Be.catchLoc)return ht(Be.catchLoc,!0)}else{if(!gt)throw new Error("try statement without catch or finally");if(this.prev<Be.finallyLoc)return ht(Be.finallyLoc)}}}},abrupt:function(it,Ue){for(var ht=this.tryEntries.length-1;ht>=0;--ht){var De=this.tryEntries[ht];if(De.tryLoc<=this.prev&&c.call(De,"finallyLoc")&&this.prev<De.finallyLoc){var Be=De;break}}Be&&(it==="break"||it==="continue")&&Be.tryLoc<=Ue&&Ue<=Be.finallyLoc&&(Be=null);var Ve=Be?Be.completion:{};return Ve.type=it,Ve.arg=Ue,Be?(this.method="next",this.next=Be.finallyLoc,G):this.complete(Ve)},complete:function(it,Ue){if(it.type==="throw")throw it.arg;return it.type==="break"||it.type==="continue"?this.next=it.arg:it.type==="return"?(this.rval=this.arg=it.arg,this.method="return",this.next="end"):it.type==="normal"&&Ue&&(this.next=Ue),G},finish:function(it){for(var Ue=this.tryEntries.length-1;Ue>=0;--Ue){var ht=this.tryEntries[Ue];if(ht.finallyLoc===it)return this.complete(ht.completion,ht.afterLoc),Te(ht),G}},catch:function(it){for(var Ue=this.tryEntries.length-1;Ue>=0;--Ue){var ht=this.tryEntries[Ue];if(ht.tryLoc===it){var De=ht.completion;if(De.type==="throw"){var Be=De.arg;Te(ht)}return Be}}throw new Error("illegal catch attempt")},delegateYield:function(it,Ue,ht){return this.delegate={iterator:Le(it),resultName:Ue,nextLoc:ht},this.method==="next"&&(this.arg=n),G}},o}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})(regeneratorRuntime$1);var runtime=regeneratorRuntime$1.exports(),regenerator=runtime;try{regeneratorRuntime=runtime}catch(t){(typeof globalThis=="undefined"?"undefined":_typeof$2(globalThis))==="object"?globalThis.regeneratorRuntime=runtime:Function("r","regeneratorRuntime = r")(runtime)}function b64Encode(t){return btoa(unescape(encodeURIComponent(t)))}function b64Decode(t){return decodeURIComponent(escape(atob(t)))}function saveAsFileDialog(t){return _saveAsFileDialog.apply(this,arguments)}function _saveAsFileDialog(){return _saveAsFileDialog=_asyncToGenerator(regenerator.mark(function t(e){var r,n,o,s,c,l,v,x,w,_,b;return regenerator.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(r=e.blob,n=e.filename,o=n===void 0?"":n,s=e.types,c=s===void 0?[{description:"mxweb File",accept:{"application/octet-stream":[".mxweb"]}}]:s,I.prev=1,!window.showSaveFilePicker){I.next=28;break}if(!((v=window.navigator)!==null&&v!==void 0&&(x=v.userActivation)!==null&&x!==void 0&&x.isActive)){I.next=27;break}if(I.prev=4,window.showSaveFilePicker){I.next=7;break}return I.abrupt("return");case 7:return I.next=9,window.showSaveFilePicker({suggestedName:o,types:c});case 9:return w=I.sent,I.next=12,w.createWritable();case 12:return _=I.sent,I.next=15,_.write(r);case 15:return I.next=17,_.close();case 17:return I.abrupt("return",w);case 20:if(I.prev=20,I.t0=I.catch(4),(I.t0===null||I.t0===void 0?void 0:I.t0.name)!=="AbortError"){I.next=24;break}return I.abrupt("return");case 24:console.error(I.t0);case 25:I.next=28;break;case 27:console.warn("\u975E\u7528\u6237\u4EA4\u4E92 \u65E0\u6CD5\u8C03\u7528showSaveFilePicker \u5DF2\u9009\u62E9\u517C\u5BB9\u65B9\u6848");case 28:if(!((l=window.navigator)!==null&&l!==void 0&&l.msSaveOrOpenBlob)){I.next=31;break}return window.navigator.msSaveOrOpenBlob(r,o),I.abrupt("return");case 31:b=document.createElement("a"),b.href=window.URL.createObjectURL(r),b.download=o,b.style.display="none",document.body.appendChild(b),b.click(),document.body.removeChild(b),typeof window.URL.revokeObjectURL=="function"?window.URL.revokeObjectURL(b.href):typeof window.webkitURL!="undefined"&&typeof window.webkitURL.revokeObjectURL=="function"?window.webkitURL.revokeObjectURL(b.href):window.URL.revokeObjectURL(b.href),I.next=44;break;case 41:I.prev=41,I.t1=I.catch(1),console.error(I.t1.name,I.t1.message);case 44:case"end":return I.stop()}},t,null,[[1,41],[4,20]])})),_saveAsFileDialog.apply(this,arguments)}function downloadFile(t,e){var r=document.createElement("a");r.href=window.URL.createObjectURL(t),r.download=e,r.click()}function downloadFileFromUrl(t,e){fetch(t).then(function(r){return r.blob()}).then(function(r){var n=document.createElement("a");n.href=window.URL.createObjectURL(r),n.download=e,n.click()})}var getJsonFromUrl=function(){var t=_asyncToGenerator(regenerator.mark(function e(r){return regenerator.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,o.next=3,fetch(r);case 3:return o.next=5,o.sent.json();case 5:return o.abrupt("return",o.sent);case 8:o.prev=8,o.t0=o.catch(0),console.error("MxTip:error getJsonFromurl:"+r);case 11:case"end":return o.stop()}},e,null,[[0,8]])}));return function(r){return t.apply(this,arguments)}}(),getFileFromUrl=function(){var t=_asyncToGenerator(regenerator.mark(function e(r){return regenerator.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,o.next=3,fetch(r);case 3:return o.abrupt("return",o.sent);case 6:o.prev=6,o.t0=o.catch(0),console.error("MxTip:error getFileFromUrl:"+r);case 9:case"end":return o.stop()}},e,null,[[0,6]])}));return function(r){return t.apply(this,arguments)}}();function _ML_String(t,e){return MxFun.getLanguageString(t,e)}function IsZero(t){return Math.abs(t)<1e-7}function postMemoryFile(t,e,r,n,o){try{var s=new FormData,c=new Blob([t],{type:"application/octet-stream"});s.append("file",new File([c],r)),o&&s.append("param",o);var l=new XMLHttpRequest;l.open("POST",e),l.send(s),l.onreadystatechange=function(){l.readyState===XMLHttpRequest.DONE&&(l.status===200?n(0,l.responseText):(console.log(l.responseText),n(4,"server error")))}}catch(v){n(-1,"catch error")}}function postEmscriptenIndexedDBFile(t,e,r,n){var o=window.indexedDB.open("emscripten_filesystem",1);o.onerror=function(){r(1,"open emscripten_filesystem failed")},o.onsuccess=function(s){try{if(s.target!=null){var c=s.target.result,l=c.transaction("FILES","readonly"),v=l.objectStore("FILES"),x=v.get(t);x.onerror=function(){r(3,"get file error")},x.onsuccess=function(){var w=x.result;if(w){var _=new FormData;_.append("file",w),n&&_.append("param",n);var b=new XMLHttpRequest;b.open("POST",e),b.send(_),b.onreadystatechange=function(){b.readyState===XMLHttpRequest.DONE&&(b.status===200?r(0,b.responseText):(console.log(b.responseText),r(4,"server error")))}}else r(5,"get file data error")}}else r(2,"event.target == null")}catch(w){r(-1,"catch error")}}}var MxTools={b64Encode,b64Decode,saveAsFileDialog,downloadFile,downloadFileFromUrl,getJsonFromUrl,getFileFromUrl,_ML_String,IsZero,postEmscriptenIndexedDBFile,postMemoryFile};function _classCallCheck$1(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function toPrimitive(t,e){if(_typeof$2(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(_typeof$2(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function toPropertyKey(t){var e=toPrimitive(t,"string");return _typeof$2(e)=="symbol"?e:String(e)}function _defineProperties$1(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,toPropertyKey(n.key),n)}}function _createClass$1(t,e,r){return e&&_defineProperties$1(t.prototype,e),r&&_defineProperties$1(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function _defineProperty(t,e,r){return e=toPropertyKey(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var lib={exports:{}};function _assertThisInitialized$1(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _setPrototypeOf$1(t,e){return _setPrototypeOf$1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},_setPrototypeOf$1(t,e)}function _inherits$1(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf$1(t,e)}function _possibleConstructorReturn$1(t,e){if(e&&(_typeof$2(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1(t)}function _getPrototypeOf$1(t){return _getPrototypeOf$1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_getPrototypeOf$1(t)}var buffer$1={},base64Js={};base64Js.byteLength=byteLength;base64Js.toByteArray=toByteArray;base64Js.fromByteArray=fromByteArray;var lookup=[],revLookup=[],Arr=typeof Uint8Array!="undefined"?Uint8Array:Array,code$3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var i=0,len=code$3.length;i<len;++i)lookup[i]=code$3[i],revLookup[code$3.charCodeAt(i)]=i;revLookup["-".charCodeAt(0)]=62;revLookup["_".charCodeAt(0)]=63;function getLens(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function byteLength(t){var e=getLens(t),r=e[0],n=e[1];return(r+n)*3/4-n}function _byteLength(t,e,r){return(e+r)*3/4-r}function toByteArray(t){var e,r=getLens(t),n=r[0],o=r[1],s=new Arr(_byteLength(t,n,o)),c=0,l=o>0?n-4:n,v;for(v=0;v<l;v+=4)e=revLookup[t.charCodeAt(v)]<<18|revLookup[t.charCodeAt(v+1)]<<12|revLookup[t.charCodeAt(v+2)]<<6|revLookup[t.charCodeAt(v+3)],s[c++]=e>>16&255,s[c++]=e>>8&255,s[c++]=e&255;return o===2&&(e=revLookup[t.charCodeAt(v)]<<2|revLookup[t.charCodeAt(v+1)]>>4,s[c++]=e&255),o===1&&(e=revLookup[t.charCodeAt(v)]<<10|revLookup[t.charCodeAt(v+1)]<<4|revLookup[t.charCodeAt(v+2)]>>2,s[c++]=e>>8&255,s[c++]=e&255),s}function tripletToBase64(t){return lookup[t>>18&63]+lookup[t>>12&63]+lookup[t>>6&63]+lookup[t&63]}function encodeChunk(t,e,r){for(var n,o=[],s=e;s<r;s+=3)n=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(t[s+2]&255),o.push(tripletToBase64(n));return o.join("")}function fromByteArray(t){for(var e,r=t.length,n=r%3,o=[],s=16383,c=0,l=r-n;c<l;c+=s)o.push(encodeChunk(t,c,c+s>l?l:c+s));return n===1?(e=t[r-1],o.push(lookup[e>>2]+lookup[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],o.push(lookup[e>>10]+lookup[e>>4&63]+lookup[e<<2&63]+"=")),o.join("")}var ieee754={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ieee754.read=function(t,e,r,n,o){var s,c,l=o*8-n-1,v=(1<<l)-1,x=v>>1,w=-7,_=r?o-1:0,b=r?-1:1,E=t[e+_];for(_+=b,s=E&(1<<-w)-1,E>>=-w,w+=l;w>0;s=s*256+t[e+_],_+=b,w-=8);for(c=s&(1<<-w)-1,s>>=-w,w+=n;w>0;c=c*256+t[e+_],_+=b,w-=8);if(s===0)s=1-x;else{if(s===v)return c?NaN:(E?-1:1)*(1/0);c=c+Math.pow(2,n),s=s-x}return(E?-1:1)*c*Math.pow(2,s-n)};ieee754.write=function(t,e,r,n,o,s){var c,l,v,x=s*8-o-1,w=(1<<x)-1,_=w>>1,b=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=n?0:s-1,I=n?1:-1,O=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,c=w):(c=Math.floor(Math.log(e)/Math.LN2),e*(v=Math.pow(2,-c))<1&&(c--,v*=2),c+_>=1?e+=b/v:e+=b*Math.pow(2,1-_),e*v>=2&&(c++,v/=2),c+_>=w?(l=0,c=w):c+_>=1?(l=(e*v-1)*Math.pow(2,o),c=c+_):(l=e*Math.pow(2,_-1)*Math.pow(2,o),c=0));o>=8;t[r+E]=l&255,E+=I,l/=256,o-=8);for(c=c<<o|l,x+=o;x>0;t[r+E]=c&255,E+=I,c/=256,x-=8);t[r+E-I]|=O*128};function _createSuper$7(t){var e=_isNativeReflectConstruct$7();return function(){var n=_getPrototypeOf$1(t),o;if(e){var s=_getPrototypeOf$1(this).constructor;o=Reflect.construct(n,arguments,s)}else o=n.apply(this,arguments);return _possibleConstructorReturn$1(this,o)}}function _isNativeReflectConstruct$7(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(function(t){var e=base64Js,r=ieee754,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=l,t.SlowBuffer=z,t.INSPECT_MAX_BYTES=50;var o=2147483647;t.kMaxLength=o,l.TYPED_ARRAY_SUPPORT=s(),!l.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function s(){try{var pt=new Uint8Array(1),Fe={foo:function(){return 42}};return Object.setPrototypeOf(Fe,Uint8Array.prototype),Object.setPrototypeOf(pt,Fe),pt.foo()===42}catch(Ie){return!1}}Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(!!l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(!!l.isBuffer(this))return this.byteOffset}});function c(pt){if(pt>o)throw new RangeError('The value "'+pt+'" is invalid for option "size"');var Fe=new Uint8Array(pt);return Object.setPrototypeOf(Fe,l.prototype),Fe}function l(pt,Fe,Ie){if(typeof pt=="number"){if(typeof Fe=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return _(pt)}return v(pt,Fe,Ie)}l.poolSize=8192;function v(pt,Fe,Ie){if(typeof pt=="string")return b(pt,Fe);if(ArrayBuffer.isView(pt))return I(pt);if(pt==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+_typeof$2(pt));if(Zt(pt,ArrayBuffer)||pt&&Zt(pt.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Zt(pt,SharedArrayBuffer)||pt&&Zt(pt.buffer,SharedArrayBuffer)))return O(pt,Fe,Ie);if(typeof pt=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var ct=pt.valueOf&&pt.valueOf();if(ct!=null&&ct!==pt)return l.from(ct,Fe,Ie);var Ht=N(pt);if(Ht)return Ht;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof pt[Symbol.toPrimitive]=="function")return l.from(pt[Symbol.toPrimitive]("string"),Fe,Ie);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+_typeof$2(pt))}l.from=function(pt,Fe,Ie){return v(pt,Fe,Ie)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array);function x(pt){if(typeof pt!="number")throw new TypeError('"size" argument must be of type number');if(pt<0)throw new RangeError('The value "'+pt+'" is invalid for option "size"')}function w(pt,Fe,Ie){return x(pt),pt<=0?c(pt):Fe!==void 0?typeof Ie=="string"?c(pt).fill(Fe,Ie):c(pt).fill(Fe):c(pt)}l.alloc=function(pt,Fe,Ie){return w(pt,Fe,Ie)};function _(pt){return x(pt),c(pt<0?0:A(pt)|0)}l.allocUnsafe=function(pt){return _(pt)},l.allocUnsafeSlow=function(pt){return _(pt)};function b(pt,Fe){if((typeof Fe!="string"||Fe==="")&&(Fe="utf8"),!l.isEncoding(Fe))throw new TypeError("Unknown encoding: "+Fe);var Ie=G(pt,Fe)|0,ct=c(Ie),Ht=ct.write(pt,Fe);return Ht!==Ie&&(ct=ct.slice(0,Ht)),ct}function E(pt){for(var Fe=pt.length<0?0:A(pt.length)|0,Ie=c(Fe),ct=0;ct<Fe;ct+=1)Ie[ct]=pt[ct]&255;return Ie}function I(pt){if(Zt(pt,Uint8Array)){var Fe=new Uint8Array(pt);return O(Fe.buffer,Fe.byteOffset,Fe.byteLength)}return E(pt)}function O(pt,Fe,Ie){if(Fe<0||pt.byteLength<Fe)throw new RangeError('"offset" is outside of buffer bounds');if(pt.byteLength<Fe+(Ie||0))throw new RangeError('"length" is outside of buffer bounds');var ct;return Fe===void 0&&Ie===void 0?ct=new Uint8Array(pt):Ie===void 0?ct=new Uint8Array(pt,Fe):ct=new Uint8Array(pt,Fe,Ie),Object.setPrototypeOf(ct,l.prototype),ct}function N(pt){if(l.isBuffer(pt)){var Fe=A(pt.length)|0,Ie=c(Fe);return Ie.length===0||pt.copy(Ie,0,0,Fe),Ie}if(pt.length!==void 0)return typeof pt.length!="number"||Et(pt.length)?c(0):E(pt);if(pt.type==="Buffer"&&Array.isArray(pt.data))return E(pt.data)}function A(pt){if(pt>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return pt|0}function z(pt){return+pt!=pt&&(pt=0),l.alloc(+pt)}l.isBuffer=function(Fe){return Fe!=null&&Fe._isBuffer===!0&&Fe!==l.prototype},l.compare=function(Fe,Ie){if(Zt(Fe,Uint8Array)&&(Fe=l.from(Fe,Fe.offset,Fe.byteLength)),Zt(Ie,Uint8Array)&&(Ie=l.from(Ie,Ie.offset,Ie.byteLength)),!l.isBuffer(Fe)||!l.isBuffer(Ie))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Fe===Ie)return 0;for(var ct=Fe.length,Ht=Ie.length,sn=0,yn=Math.min(ct,Ht);sn<yn;++sn)if(Fe[sn]!==Ie[sn]){ct=Fe[sn],Ht=Ie[sn];break}return ct<Ht?-1:Ht<ct?1:0},l.isEncoding=function(Fe){switch(String(Fe).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(Fe,Ie){if(!Array.isArray(Fe))throw new TypeError('"list" argument must be an Array of Buffers');if(Fe.length===0)return l.alloc(0);var ct;if(Ie===void 0)for(Ie=0,ct=0;ct<Fe.length;++ct)Ie+=Fe[ct].length;var Ht=l.allocUnsafe(Ie),sn=0;for(ct=0;ct<Fe.length;++ct){var yn=Fe[ct];if(Zt(yn,Uint8Array))sn+yn.length>Ht.length?(l.isBuffer(yn)||(yn=l.from(yn)),yn.copy(Ht,sn)):Uint8Array.prototype.set.call(Ht,yn,sn);else if(l.isBuffer(yn))yn.copy(Ht,sn);else throw new TypeError('"list" argument must be an Array of Buffers');sn+=yn.length}return Ht};function G(pt,Fe){if(l.isBuffer(pt))return pt.length;if(ArrayBuffer.isView(pt)||Zt(pt,ArrayBuffer))return pt.byteLength;if(typeof pt!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+_typeof$2(pt));var Ie=pt.length,ct=arguments.length>2&&arguments[2]===!0;if(!ct&&Ie===0)return 0;for(var Ht=!1;;)switch(Fe){case"ascii":case"latin1":case"binary":return Ie;case"utf8":case"utf-8":return Ot(pt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ie*2;case"hex":return Ie>>>1;case"base64":return on(pt).length;default:if(Ht)return ct?-1:Ot(pt).length;Fe=(""+Fe).toLowerCase(),Ht=!0}}l.byteLength=G;function V(pt,Fe,Ie){var ct=!1;if((Fe===void 0||Fe<0)&&(Fe=0),Fe>this.length||((Ie===void 0||Ie>this.length)&&(Ie=this.length),Ie<=0)||(Ie>>>=0,Fe>>>=0,Ie<=Fe))return"";for(pt||(pt="utf8");;)switch(pt){case"hex":return et(this,Fe,Ie);case"utf8":case"utf-8":return me(this,Fe,Ie);case"ascii":return ke(this,Fe,Ie);case"latin1":case"binary":return Le(this,Fe,Ie);case"base64":return fe(this,Fe,Ie);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return it(this,Fe,Ie);default:if(ct)throw new TypeError("Unknown encoding: "+pt);pt=(pt+"").toLowerCase(),ct=!0}}l.prototype._isBuffer=!0;function ne(pt,Fe,Ie){var ct=pt[Fe];pt[Fe]=pt[Ie],pt[Ie]=ct}l.prototype.swap16=function(){var Fe=this.length;if(Fe%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Ie=0;Ie<Fe;Ie+=2)ne(this,Ie,Ie+1);return this},l.prototype.swap32=function(){var Fe=this.length;if(Fe%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Ie=0;Ie<Fe;Ie+=4)ne(this,Ie,Ie+3),ne(this,Ie+1,Ie+2);return this},l.prototype.swap64=function(){var Fe=this.length;if(Fe%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Ie=0;Ie<Fe;Ie+=8)ne(this,Ie,Ie+7),ne(this,Ie+1,Ie+6),ne(this,Ie+2,Ie+5),ne(this,Ie+3,Ie+4);return this},l.prototype.toString=function(){var Fe=this.length;return Fe===0?"":arguments.length===0?me(this,0,Fe):V.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(Fe){if(!l.isBuffer(Fe))throw new TypeError("Argument must be a Buffer");return this===Fe?!0:l.compare(this,Fe)===0},l.prototype.inspect=function(){var Fe="",Ie=t.INSPECT_MAX_BYTES;return Fe=this.toString("hex",0,Ie).replace(/(.{2})/g,"$1 ").trim(),this.length>Ie&&(Fe+=" ... "),"<Buffer "+Fe+">"},n&&(l.prototype[n]=l.prototype.inspect),l.prototype.compare=function(Fe,Ie,ct,Ht,sn){if(Zt(Fe,Uint8Array)&&(Fe=l.from(Fe,Fe.offset,Fe.byteLength)),!l.isBuffer(Fe))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+_typeof$2(Fe));if(Ie===void 0&&(Ie=0),ct===void 0&&(ct=Fe?Fe.length:0),Ht===void 0&&(Ht=0),sn===void 0&&(sn=this.length),Ie<0||ct>Fe.length||Ht<0||sn>this.length)throw new RangeError("out of range index");if(Ht>=sn&&Ie>=ct)return 0;if(Ht>=sn)return-1;if(Ie>=ct)return 1;if(Ie>>>=0,ct>>>=0,Ht>>>=0,sn>>>=0,this===Fe)return 0;for(var yn=sn-Ht,Dr=ct-Ie,Kr=Math.min(yn,Dr),ii=this.slice(Ht,sn),_n=Fe.slice(Ie,ct),xn=0;xn<Kr;++xn)if(ii[xn]!==_n[xn]){yn=ii[xn],Dr=_n[xn];break}return yn<Dr?-1:Dr<yn?1:0};function W(pt,Fe,Ie,ct,Ht){if(pt.length===0)return-1;if(typeof Ie=="string"?(ct=Ie,Ie=0):Ie>2147483647?Ie=2147483647:Ie<-2147483648&&(Ie=-2147483648),Ie=+Ie,Et(Ie)&&(Ie=Ht?0:pt.length-1),Ie<0&&(Ie=pt.length+Ie),Ie>=pt.length){if(Ht)return-1;Ie=pt.length-1}else if(Ie<0)if(Ht)Ie=0;else return-1;if(typeof Fe=="string"&&(Fe=l.from(Fe,ct)),l.isBuffer(Fe))return Fe.length===0?-1:B(pt,Fe,Ie,ct,Ht);if(typeof Fe=="number")return Fe=Fe&255,typeof Uint8Array.prototype.indexOf=="function"?Ht?Uint8Array.prototype.indexOf.call(pt,Fe,Ie):Uint8Array.prototype.lastIndexOf.call(pt,Fe,Ie):B(pt,[Fe],Ie,ct,Ht);throw new TypeError("val must be string, number or Buffer")}function B(pt,Fe,Ie,ct,Ht){var sn=1,yn=pt.length,Dr=Fe.length;if(ct!==void 0&&(ct=String(ct).toLowerCase(),ct==="ucs2"||ct==="ucs-2"||ct==="utf16le"||ct==="utf-16le")){if(pt.length<2||Fe.length<2)return-1;sn=2,yn/=2,Dr/=2,Ie/=2}function Kr(ln,ar){return sn===1?ln[ar]:ln.readUInt16BE(ar*sn)}var ii;if(Ht){var _n=-1;for(ii=Ie;ii<yn;ii++)if(Kr(pt,ii)===Kr(Fe,_n===-1?0:ii-_n)){if(_n===-1&&(_n=ii),ii-_n+1===Dr)return _n*sn}else _n!==-1&&(ii-=ii-_n),_n=-1}else for(Ie+Dr>yn&&(Ie=yn-Dr),ii=Ie;ii>=0;ii--){for(var xn=!0,jn=0;jn<Dr;jn++)if(Kr(pt,ii+jn)!==Kr(Fe,jn)){xn=!1;break}if(xn)return ii}return-1}l.prototype.includes=function(Fe,Ie,ct){return this.indexOf(Fe,Ie,ct)!==-1},l.prototype.indexOf=function(Fe,Ie,ct){return W(this,Fe,Ie,ct,!0)},l.prototype.lastIndexOf=function(Fe,Ie,ct){return W(this,Fe,Ie,ct,!1)};function q(pt,Fe,Ie,ct){Ie=Number(Ie)||0;var Ht=pt.length-Ie;ct?(ct=Number(ct),ct>Ht&&(ct=Ht)):ct=Ht;var sn=Fe.length;ct>sn/2&&(ct=sn/2);var yn;for(yn=0;yn<ct;++yn){var Dr=parseInt(Fe.substr(yn*2,2),16);if(Et(Dr))return yn;pt[Ie+yn]=Dr}return yn}function D(pt,Fe,Ie,ct){return $n(Ot(Fe,pt.length-Ie),pt,Ie,ct)}function F(pt,Fe,Ie,ct){return $n(_t(Fe),pt,Ie,ct)}function re(pt,Fe,Ie,ct){return $n(on(Fe),pt,Ie,ct)}function le(pt,Fe,Ie,ct){return $n(Tn(Fe,pt.length-Ie),pt,Ie,ct)}l.prototype.write=function(Fe,Ie,ct,Ht){if(Ie===void 0)Ht="utf8",ct=this.length,Ie=0;else if(ct===void 0&&typeof Ie=="string")Ht=Ie,ct=this.length,Ie=0;else if(isFinite(Ie))Ie=Ie>>>0,isFinite(ct)?(ct=ct>>>0,Ht===void 0&&(Ht="utf8")):(Ht=ct,ct=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var sn=this.length-Ie;if((ct===void 0||ct>sn)&&(ct=sn),Fe.length>0&&(ct<0||Ie<0)||Ie>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ht||(Ht="utf8");for(var yn=!1;;)switch(Ht){case"hex":return q(this,Fe,Ie,ct);case"utf8":case"utf-8":return D(this,Fe,Ie,ct);case"ascii":case"latin1":case"binary":return F(this,Fe,Ie,ct);case"base64":return re(this,Fe,Ie,ct);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return le(this,Fe,Ie,ct);default:if(yn)throw new TypeError("Unknown encoding: "+Ht);Ht=(""+Ht).toLowerCase(),yn=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function fe(pt,Fe,Ie){return Fe===0&&Ie===pt.length?e.fromByteArray(pt):e.fromByteArray(pt.slice(Fe,Ie))}function me(pt,Fe,Ie){Ie=Math.min(pt.length,Ie);for(var ct=[],Ht=Fe;Ht<Ie;){var sn=pt[Ht],yn=null,Dr=sn>239?4:sn>223?3:sn>191?2:1;if(Ht+Dr<=Ie){var Kr=void 0,ii=void 0,_n=void 0,xn=void 0;switch(Dr){case 1:sn<128&&(yn=sn);break;case 2:Kr=pt[Ht+1],(Kr&192)===128&&(xn=(sn&31)<<6|Kr&63,xn>127&&(yn=xn));break;case 3:Kr=pt[Ht+1],ii=pt[Ht+2],(Kr&192)===128&&(ii&192)===128&&(xn=(sn&15)<<12|(Kr&63)<<6|ii&63,xn>2047&&(xn<55296||xn>57343)&&(yn=xn));break;case 4:Kr=pt[Ht+1],ii=pt[Ht+2],_n=pt[Ht+3],(Kr&192)===128&&(ii&192)===128&&(_n&192)===128&&(xn=(sn&15)<<18|(Kr&63)<<12|(ii&63)<<6|_n&63,xn>65535&&xn<1114112&&(yn=xn))}}yn===null?(yn=65533,Dr=1):yn>65535&&(yn-=65536,ct.push(yn>>>10&1023|55296),yn=56320|yn&1023),ct.push(yn),Ht+=Dr}return Te(ct)}var ye=4096;function Te(pt){var Fe=pt.length;if(Fe<=ye)return String.fromCharCode.apply(String,pt);for(var Ie="",ct=0;ct<Fe;)Ie+=String.fromCharCode.apply(String,pt.slice(ct,ct+=ye));return Ie}function ke(pt,Fe,Ie){var ct="";Ie=Math.min(pt.length,Ie);for(var Ht=Fe;Ht<Ie;++Ht)ct+=String.fromCharCode(pt[Ht]&127);return ct}function Le(pt,Fe,Ie){var ct="";Ie=Math.min(pt.length,Ie);for(var Ht=Fe;Ht<Ie;++Ht)ct+=String.fromCharCode(pt[Ht]);return ct}function et(pt,Fe,Ie){var ct=pt.length;(!Fe||Fe<0)&&(Fe=0),(!Ie||Ie<0||Ie>ct)&&(Ie=ct);for(var Ht="",sn=Fe;sn<Ie;++sn)Ht+=rn[pt[sn]];return Ht}function it(pt,Fe,Ie){for(var ct=pt.slice(Fe,Ie),Ht="",sn=0;sn<ct.length-1;sn+=2)Ht+=String.fromCharCode(ct[sn]+ct[sn+1]*256);return Ht}l.prototype.slice=function(Fe,Ie){var ct=this.length;Fe=~~Fe,Ie=Ie===void 0?ct:~~Ie,Fe<0?(Fe+=ct,Fe<0&&(Fe=0)):Fe>ct&&(Fe=ct),Ie<0?(Ie+=ct,Ie<0&&(Ie=0)):Ie>ct&&(Ie=ct),Ie<Fe&&(Ie=Fe);var Ht=this.subarray(Fe,Ie);return Object.setPrototypeOf(Ht,l.prototype),Ht};function Ue(pt,Fe,Ie){if(pt%1!==0||pt<0)throw new RangeError("offset is not uint");if(pt+Fe>Ie)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUintLE=l.prototype.readUIntLE=function(Fe,Ie,ct){Fe=Fe>>>0,Ie=Ie>>>0,ct||Ue(Fe,Ie,this.length);for(var Ht=this[Fe],sn=1,yn=0;++yn<Ie&&(sn*=256);)Ht+=this[Fe+yn]*sn;return Ht},l.prototype.readUintBE=l.prototype.readUIntBE=function(Fe,Ie,ct){Fe=Fe>>>0,Ie=Ie>>>0,ct||Ue(Fe,Ie,this.length);for(var Ht=this[Fe+--Ie],sn=1;Ie>0&&(sn*=256);)Ht+=this[Fe+--Ie]*sn;return Ht},l.prototype.readUint8=l.prototype.readUInt8=function(Fe,Ie){return Fe=Fe>>>0,Ie||Ue(Fe,1,this.length),this[Fe]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(Fe,Ie){return Fe=Fe>>>0,Ie||Ue(Fe,2,this.length),this[Fe]|this[Fe+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(Fe,Ie){return Fe=Fe>>>0,Ie||Ue(Fe,2,this.length),this[Fe]<<8|this[Fe+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(Fe,Ie){return Fe=Fe>>>0,Ie||Ue(Fe,4,this.length),(this[Fe]|this[Fe+1]<<8|this[Fe+2]<<16)+this[Fe+3]*16777216},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(Fe,Ie){return Fe=Fe>>>0,Ie||Ue(Fe,4,this.length),this[Fe]*16777216+(this[Fe+1]<<16|this[Fe+2]<<8|this[Fe+3])},l.prototype.readBigUInt64LE=wt(function(Fe){Fe=Fe>>>0,ze(Fe,"offset");var Ie=this[Fe],ct=this[Fe+7];(Ie===void 0||ct===void 0)&&Ke(Fe,this.length-8);var Ht=Ie+this[++Fe]*Math.pow(2,8)+this[++Fe]*Math.pow(2,16)+this[++Fe]*Math.pow(2,24),sn=this[++Fe]+this[++Fe]*Math.pow(2,8)+this[++Fe]*Math.pow(2,16)+ct*Math.pow(2,24);return BigInt(Ht)+(BigInt(sn)<<BigInt(32))}),l.prototype.readBigUInt64BE=wt(function(Fe){Fe=Fe>>>0,ze(Fe,"offset");var Ie=this[Fe],ct=this[Fe+7];(Ie===void 0||ct===void 0)&&Ke(Fe,this.length-8);var Ht=Ie*Math.pow(2,24)+this[++Fe]*Math.pow(2,16)+this[++Fe]*Math.pow(2,8)+this[++Fe],sn=this[++Fe]*Math.pow(2,24)+this[++Fe]*Math.pow(2,16)+this[++Fe]*Math.pow(2,8)+ct;return(BigInt(Ht)<<BigInt(32))+BigInt(sn)}),l.prototype.readIntLE=function(Fe,Ie,ct){Fe=Fe>>>0,Ie=Ie>>>0,ct||Ue(Fe,Ie,this.length);for(var Ht=this[Fe],sn=1,yn=0;++yn<Ie&&(sn*=256);)Ht+=this[Fe+yn]*sn;return sn*=128,Ht>=sn&&(Ht-=Math.pow(2,8*Ie)),Ht},l.prototype.readIntBE=function(Fe,Ie,ct){Fe=Fe>>>0,Ie=Ie>>>0,ct||Ue(Fe,Ie,this.length);for(var Ht=Ie,sn=1,yn=this[Fe+--Ht];Ht>0&&(sn*=256);)yn+=this[Fe+--Ht]*sn;return sn*=128,yn>=sn&&(yn-=Math.pow(2,8*Ie)),yn},l.prototype.readInt8=function(Fe,Ie){return Fe=Fe>>>0,Ie||Ue(Fe,1,this.length),this[Fe]&128?(255-this[Fe]+1)*-1:this[Fe]},l.prototype.readInt16LE=function(Fe,Ie){Fe=Fe>>>0,Ie||Ue(Fe,2,this.length);var ct=this[Fe]|this[Fe+1]<<8;return ct&32768?ct|4294901760:ct},l.prototype.readInt16BE=function(Fe,Ie){Fe=Fe>>>0,Ie||Ue(Fe,2,this.length);var ct=this[Fe+1]|this[Fe]<<8;return ct&32768?ct|4294901760:ct},l.prototype.readInt32LE=function(Fe,Ie){return Fe=Fe>>>0,Ie||Ue(Fe,4,this.length),this[Fe]|this[Fe+1]<<8|this[Fe+2]<<16|this[Fe+3]<<24},l.prototype.readInt32BE=function(Fe,Ie){return Fe=Fe>>>0,Ie||Ue(Fe,4,this.length),this[Fe]<<24|this[Fe+1]<<16|this[Fe+2]<<8|this[Fe+3]},l.prototype.readBigInt64LE=wt(function(Fe){Fe=Fe>>>0,ze(Fe,"offset");var Ie=this[Fe],ct=this[Fe+7];(Ie===void 0||ct===void 0)&&Ke(Fe,this.length-8);var Ht=this[Fe+4]+this[Fe+5]*Math.pow(2,8)+this[Fe+6]*Math.pow(2,16)+(ct<<24);return(BigInt(Ht)<<BigInt(32))+BigInt(Ie+this[++Fe]*Math.pow(2,8)+this[++Fe]*Math.pow(2,16)+this[++Fe]*Math.pow(2,24))}),l.prototype.readBigInt64BE=wt(function(Fe){Fe=Fe>>>0,ze(Fe,"offset");var Ie=this[Fe],ct=this[Fe+7];(Ie===void 0||ct===void 0)&&Ke(Fe,this.length-8);var Ht=(Ie<<24)+this[++Fe]*Math.pow(2,16)+this[++Fe]*Math.pow(2,8)+this[++Fe];return(BigInt(Ht)<<BigInt(32))+BigInt(this[++Fe]*Math.pow(2,24)+this[++Fe]*Math.pow(2,16)+this[++Fe]*Math.pow(2,8)+ct)}),l.prototype.readFloatLE=function(Fe,Ie){return Fe=Fe>>>0,Ie||Ue(Fe,4,this.length),r.read(this,Fe,!0,23,4)},l.prototype.readFloatBE=function(Fe,Ie){return Fe=Fe>>>0,Ie||Ue(Fe,4,this.length),r.read(this,Fe,!1,23,4)},l.prototype.readDoubleLE=function(Fe,Ie){return Fe=Fe>>>0,Ie||Ue(Fe,8,this.length),r.read(this,Fe,!0,52,8)},l.prototype.readDoubleBE=function(Fe,Ie){return Fe=Fe>>>0,Ie||Ue(Fe,8,this.length),r.read(this,Fe,!1,52,8)};function ht(pt,Fe,Ie,ct,Ht,sn){if(!l.isBuffer(pt))throw new TypeError('"buffer" argument must be a Buffer instance');if(Fe>Ht||Fe<sn)throw new RangeError('"value" argument is out of bounds');if(Ie+ct>pt.length)throw new RangeError("Index out of range")}l.prototype.writeUintLE=l.prototype.writeUIntLE=function(Fe,Ie,ct,Ht){if(Fe=+Fe,Ie=Ie>>>0,ct=ct>>>0,!Ht){var sn=Math.pow(2,8*ct)-1;ht(this,Fe,Ie,ct,sn,0)}var yn=1,Dr=0;for(this[Ie]=Fe&255;++Dr<ct&&(yn*=256);)this[Ie+Dr]=Fe/yn&255;return Ie+ct},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(Fe,Ie,ct,Ht){if(Fe=+Fe,Ie=Ie>>>0,ct=ct>>>0,!Ht){var sn=Math.pow(2,8*ct)-1;ht(this,Fe,Ie,ct,sn,0)}var yn=ct-1,Dr=1;for(this[Ie+yn]=Fe&255;--yn>=0&&(Dr*=256);)this[Ie+yn]=Fe/Dr&255;return Ie+ct},l.prototype.writeUint8=l.prototype.writeUInt8=function(Fe,Ie,ct){return Fe=+Fe,Ie=Ie>>>0,ct||ht(this,Fe,Ie,1,255,0),this[Ie]=Fe&255,Ie+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(Fe,Ie,ct){return Fe=+Fe,Ie=Ie>>>0,ct||ht(this,Fe,Ie,2,65535,0),this[Ie]=Fe&255,this[Ie+1]=Fe>>>8,Ie+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(Fe,Ie,ct){return Fe=+Fe,Ie=Ie>>>0,ct||ht(this,Fe,Ie,2,65535,0),this[Ie]=Fe>>>8,this[Ie+1]=Fe&255,Ie+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(Fe,Ie,ct){return Fe=+Fe,Ie=Ie>>>0,ct||ht(this,Fe,Ie,4,4294967295,0),this[Ie+3]=Fe>>>24,this[Ie+2]=Fe>>>16,this[Ie+1]=Fe>>>8,this[Ie]=Fe&255,Ie+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(Fe,Ie,ct){return Fe=+Fe,Ie=Ie>>>0,ct||ht(this,Fe,Ie,4,4294967295,0),this[Ie]=Fe>>>24,this[Ie+1]=Fe>>>16,this[Ie+2]=Fe>>>8,this[Ie+3]=Fe&255,Ie+4};function De(pt,Fe,Ie,ct,Ht){Ne(Fe,ct,Ht,pt,Ie,7);var sn=Number(Fe&BigInt(4294967295));pt[Ie++]=sn,sn=sn>>8,pt[Ie++]=sn,sn=sn>>8,pt[Ie++]=sn,sn=sn>>8,pt[Ie++]=sn;var yn=Number(Fe>>BigInt(32)&BigInt(4294967295));return pt[Ie++]=yn,yn=yn>>8,pt[Ie++]=yn,yn=yn>>8,pt[Ie++]=yn,yn=yn>>8,pt[Ie++]=yn,Ie}function Be(pt,Fe,Ie,ct,Ht){Ne(Fe,ct,Ht,pt,Ie,7);var sn=Number(Fe&BigInt(4294967295));pt[Ie+7]=sn,sn=sn>>8,pt[Ie+6]=sn,sn=sn>>8,pt[Ie+5]=sn,sn=sn>>8,pt[Ie+4]=sn;var yn=Number(Fe>>BigInt(32)&BigInt(4294967295));return pt[Ie+3]=yn,yn=yn>>8,pt[Ie+2]=yn,yn=yn>>8,pt[Ie+1]=yn,yn=yn>>8,pt[Ie]=yn,Ie+8}l.prototype.writeBigUInt64LE=wt(function(Fe){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return De(this,Fe,Ie,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=wt(function(Fe){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Be(this,Fe,Ie,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(Fe,Ie,ct,Ht){if(Fe=+Fe,Ie=Ie>>>0,!Ht){var sn=Math.pow(2,8*ct-1);ht(this,Fe,Ie,ct,sn-1,-sn)}var yn=0,Dr=1,Kr=0;for(this[Ie]=Fe&255;++yn<ct&&(Dr*=256);)Fe<0&&Kr===0&&this[Ie+yn-1]!==0&&(Kr=1),this[Ie+yn]=(Fe/Dr>>0)-Kr&255;return Ie+ct},l.prototype.writeIntBE=function(Fe,Ie,ct,Ht){if(Fe=+Fe,Ie=Ie>>>0,!Ht){var sn=Math.pow(2,8*ct-1);ht(this,Fe,Ie,ct,sn-1,-sn)}var yn=ct-1,Dr=1,Kr=0;for(this[Ie+yn]=Fe&255;--yn>=0&&(Dr*=256);)Fe<0&&Kr===0&&this[Ie+yn+1]!==0&&(Kr=1),this[Ie+yn]=(Fe/Dr>>0)-Kr&255;return Ie+ct},l.prototype.writeInt8=function(Fe,Ie,ct){return Fe=+Fe,Ie=Ie>>>0,ct||ht(this,Fe,Ie,1,127,-128),Fe<0&&(Fe=255+Fe+1),this[Ie]=Fe&255,Ie+1},l.prototype.writeInt16LE=function(Fe,Ie,ct){return Fe=+Fe,Ie=Ie>>>0,ct||ht(this,Fe,Ie,2,32767,-32768),this[Ie]=Fe&255,this[Ie+1]=Fe>>>8,Ie+2},l.prototype.writeInt16BE=function(Fe,Ie,ct){return Fe=+Fe,Ie=Ie>>>0,ct||ht(this,Fe,Ie,2,32767,-32768),this[Ie]=Fe>>>8,this[Ie+1]=Fe&255,Ie+2},l.prototype.writeInt32LE=function(Fe,Ie,ct){return Fe=+Fe,Ie=Ie>>>0,ct||ht(this,Fe,Ie,4,2147483647,-2147483648),this[Ie]=Fe&255,this[Ie+1]=Fe>>>8,this[Ie+2]=Fe>>>16,this[Ie+3]=Fe>>>24,Ie+4},l.prototype.writeInt32BE=function(Fe,Ie,ct){return Fe=+Fe,Ie=Ie>>>0,ct||ht(this,Fe,Ie,4,2147483647,-2147483648),Fe<0&&(Fe=4294967295+Fe+1),this[Ie]=Fe>>>24,this[Ie+1]=Fe>>>16,this[Ie+2]=Fe>>>8,this[Ie+3]=Fe&255,Ie+4},l.prototype.writeBigInt64LE=wt(function(Fe){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return De(this,Fe,Ie,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=wt(function(Fe){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Be(this,Fe,Ie,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ve(pt,Fe,Ie,ct,Ht,sn){if(Ie+ct>pt.length)throw new RangeError("Index out of range");if(Ie<0)throw new RangeError("Index out of range")}function He(pt,Fe,Ie,ct,Ht){return Fe=+Fe,Ie=Ie>>>0,Ht||Ve(pt,Fe,Ie,4),r.write(pt,Fe,Ie,ct,23,4),Ie+4}l.prototype.writeFloatLE=function(Fe,Ie,ct){return He(this,Fe,Ie,!0,ct)},l.prototype.writeFloatBE=function(Fe,Ie,ct){return He(this,Fe,Ie,!1,ct)};function gt(pt,Fe,Ie,ct,Ht){return Fe=+Fe,Ie=Ie>>>0,Ht||Ve(pt,Fe,Ie,8),r.write(pt,Fe,Ie,ct,52,8),Ie+8}l.prototype.writeDoubleLE=function(Fe,Ie,ct){return gt(this,Fe,Ie,!0,ct)},l.prototype.writeDoubleBE=function(Fe,Ie,ct){return gt(this,Fe,Ie,!1,ct)},l.prototype.copy=function(Fe,Ie,ct,Ht){if(!l.isBuffer(Fe))throw new TypeError("argument should be a Buffer");if(ct||(ct=0),!Ht&&Ht!==0&&(Ht=this.length),Ie>=Fe.length&&(Ie=Fe.length),Ie||(Ie=0),Ht>0&&Ht<ct&&(Ht=ct),Ht===ct||Fe.length===0||this.length===0)return 0;if(Ie<0)throw new RangeError("targetStart out of bounds");if(ct<0||ct>=this.length)throw new RangeError("Index out of range");if(Ht<0)throw new RangeError("sourceEnd out of bounds");Ht>this.length&&(Ht=this.length),Fe.length-Ie<Ht-ct&&(Ht=Fe.length-Ie+ct);var sn=Ht-ct;return this===Fe&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(Ie,ct,Ht):Uint8Array.prototype.set.call(Fe,this.subarray(ct,Ht),Ie),sn},l.prototype.fill=function(Fe,Ie,ct,Ht){if(typeof Fe=="string"){if(typeof Ie=="string"?(Ht=Ie,Ie=0,ct=this.length):typeof ct=="string"&&(Ht=ct,ct=this.length),Ht!==void 0&&typeof Ht!="string")throw new TypeError("encoding must be a string");if(typeof Ht=="string"&&!l.isEncoding(Ht))throw new TypeError("Unknown encoding: "+Ht);if(Fe.length===1){var sn=Fe.charCodeAt(0);(Ht==="utf8"&&sn<128||Ht==="latin1")&&(Fe=sn)}}else typeof Fe=="number"?Fe=Fe&255:typeof Fe=="boolean"&&(Fe=Number(Fe));if(Ie<0||this.length<Ie||this.length<ct)throw new RangeError("Out of range index");if(ct<=Ie)return this;Ie=Ie>>>0,ct=ct===void 0?this.length:ct>>>0,Fe||(Fe=0);var yn;if(typeof Fe=="number")for(yn=Ie;yn<ct;++yn)this[yn]=Fe;else{var Dr=l.isBuffer(Fe)?Fe:l.from(Fe,Ht),Kr=Dr.length;if(Kr===0)throw new TypeError('The value "'+Fe+'" is invalid for argument "value"');for(yn=0;yn<ct-Ie;++yn)this[yn+Ie]=Dr[yn%Kr]}return this};var dn={};function Ze(pt,Fe,Ie){dn[pt]=function(ct){_inherits$1(sn,ct);var Ht=_createSuper$7(sn);function sn(){var yn;return _classCallCheck$1(this,sn),yn=Ht.call(this),Object.defineProperty(_assertThisInitialized$1(yn),"message",{value:Fe.apply(_assertThisInitialized$1(yn),arguments),writable:!0,configurable:!0}),yn.name="".concat(yn.name," [").concat(pt,"]"),yn.stack,delete yn.name,yn}return _createClass$1(sn,[{key:"code",get:function(){return pt},set:function(Dr){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Dr,writable:!0})}},{key:"toString",value:function(){return"".concat(this.name," [").concat(pt,"]: ").concat(this.message)}}]),sn}(Ie)}Ze("ERR_BUFFER_OUT_OF_BOUNDS",function(pt){return pt?"".concat(pt," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"},RangeError),Ze("ERR_INVALID_ARG_TYPE",function(pt,Fe){return'The "'.concat(pt,'" argument must be of type number. Received type ').concat(_typeof$2(Fe))},TypeError),Ze("ERR_OUT_OF_RANGE",function(pt,Fe,Ie){var ct='The value of "'.concat(pt,'" is out of range.'),Ht=Ie;return Number.isInteger(Ie)&&Math.abs(Ie)>Math.pow(2,32)?Ht=at(String(Ie)):typeof Ie=="bigint"&&(Ht=String(Ie),(Ie>Math.pow(BigInt(2),BigInt(32))||Ie<-Math.pow(BigInt(2),BigInt(32)))&&(Ht=at(Ht)),Ht+="n"),ct+=" It must be ".concat(Fe,". Received ").concat(Ht),ct},RangeError);function at(pt){for(var Fe="",Ie=pt.length,ct=pt[0]==="-"?1:0;Ie>=ct+4;Ie-=3)Fe="_".concat(pt.slice(Ie-3,Ie)).concat(Fe);return"".concat(pt.slice(0,Ie)).concat(Fe)}function Lt(pt,Fe,Ie){ze(Fe,"offset"),(pt[Fe]===void 0||pt[Fe+Ie]===void 0)&&Ke(Fe,pt.length-(Ie+1))}function Ne(pt,Fe,Ie,ct,Ht,sn){if(pt>Ie||pt<Fe){var yn=typeof Fe=="bigint"?"n":"",Dr;throw sn>3?Fe===0||Fe===BigInt(0)?Dr=">= 0".concat(yn," and < 2").concat(yn," ** ").concat((sn+1)*8).concat(yn):Dr=">= -(2".concat(yn," ** ").concat((sn+1)*8-1).concat(yn,") and < 2 ** ")+"".concat((sn+1)*8-1).concat(yn):Dr=">= ".concat(Fe).concat(yn," and <= ").concat(Ie).concat(yn),new dn.ERR_OUT_OF_RANGE("value",Dr,pt)}Lt(ct,Ht,sn)}function ze(pt,Fe){if(typeof pt!="number")throw new dn.ERR_INVALID_ARG_TYPE(Fe,"number",pt)}function Ke(pt,Fe,Ie){throw Math.floor(pt)!==pt?(ze(pt,Ie),new dn.ERR_OUT_OF_RANGE(Ie||"offset","an integer",pt)):Fe<0?new dn.ERR_BUFFER_OUT_OF_BOUNDS:new dn.ERR_OUT_OF_RANGE(Ie||"offset",">= ".concat(Ie?1:0," and <= ").concat(Fe),pt)}var vt=/[^+/0-9A-Za-z-_]/g;function Ft(pt){if(pt=pt.split("=")[0],pt=pt.trim().replace(vt,""),pt.length<2)return"";for(;pt.length%4!==0;)pt=pt+"=";return pt}function Ot(pt,Fe){Fe=Fe||1/0;for(var Ie,ct=pt.length,Ht=null,sn=[],yn=0;yn<ct;++yn){if(Ie=pt.charCodeAt(yn),Ie>55295&&Ie<57344){if(!Ht){if(Ie>56319){(Fe-=3)>-1&&sn.push(239,191,189);continue}else if(yn+1===ct){(Fe-=3)>-1&&sn.push(239,191,189);continue}Ht=Ie;continue}if(Ie<56320){(Fe-=3)>-1&&sn.push(239,191,189),Ht=Ie;continue}Ie=(Ht-55296<<10|Ie-56320)+65536}else Ht&&(Fe-=3)>-1&&sn.push(239,191,189);if(Ht=null,Ie<128){if((Fe-=1)<0)break;sn.push(Ie)}else if(Ie<2048){if((Fe-=2)<0)break;sn.push(Ie>>6|192,Ie&63|128)}else if(Ie<65536){if((Fe-=3)<0)break;sn.push(Ie>>12|224,Ie>>6&63|128,Ie&63|128)}else if(Ie<1114112){if((Fe-=4)<0)break;sn.push(Ie>>18|240,Ie>>12&63|128,Ie>>6&63|128,Ie&63|128)}else throw new Error("Invalid code point")}return sn}function _t(pt){for(var Fe=[],Ie=0;Ie<pt.length;++Ie)Fe.push(pt.charCodeAt(Ie)&255);return Fe}function Tn(pt,Fe){for(var Ie,ct,Ht,sn=[],yn=0;yn<pt.length&&!((Fe-=2)<0);++yn)Ie=pt.charCodeAt(yn),ct=Ie>>8,Ht=Ie%256,sn.push(Ht),sn.push(ct);return sn}function on(pt){return e.toByteArray(Ft(pt))}function $n(pt,Fe,Ie,ct){var Ht;for(Ht=0;Ht<ct&&!(Ht+Ie>=Fe.length||Ht>=pt.length);++Ht)Fe[Ht+Ie]=pt[Ht];return Ht}function Zt(pt,Fe){return pt instanceof Fe||pt!=null&&pt.constructor!=null&&pt.constructor.name!=null&&pt.constructor.name===Fe.name}function Et(pt){return pt!==pt}var rn=function(){for(var pt="0123456789abcdef",Fe=new Array(256),Ie=0;Ie<16;++Ie)for(var ct=Ie*16,Ht=0;Ht<16;++Ht)Fe[ct+Ht]=pt[Ie]+pt[Ht];return Fe}();function wt(pt){return typeof BigInt=="undefined"?Yn:pt}function Yn(){throw new Error("BigInt not supported")}})(buffer$1);var buffer=buffer$1,Buffer$1=buffer.Buffer,safer={},key$1;for(key$1 in buffer)!buffer.hasOwnProperty(key$1)||key$1==="SlowBuffer"||key$1==="Buffer"||(safer[key$1]=buffer[key$1]);var Safer=safer.Buffer={};for(key$1 in Buffer$1)!Buffer$1.hasOwnProperty(key$1)||key$1==="allocUnsafe"||key$1==="allocUnsafeSlow"||(Safer[key$1]=Buffer$1[key$1]);safer.Buffer.prototype=Buffer$1.prototype;(!Safer.from||Safer.from===Uint8Array.from)&&(Safer.from=function(t,e,r){if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+_typeof$2(t));if(t&&typeof t.length=="undefined")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+_typeof$2(t));return Buffer$1(t,e,r)});Safer.alloc||(Safer.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError('The "size" argument must be of type number. Received type '+_typeof$2(t));if(t<0||t>=2*(1<<30))throw new RangeError('The value "'+t+'" is invalid for option "size"');var n=Buffer$1(t);return!e||e.length===0?n.fill(0):typeof r=="string"?n.fill(e,r):n.fill(e),n});if(!safer.kStringMaxLength)try{safer.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(t){}safer.constants||(safer.constants={MAX_LENGTH:safer.kMaxLength},safer.kStringMaxLength&&(safer.constants.MAX_STRING_LENGTH=safer.kStringMaxLength));var safer_1=safer,bomHandling={},BOMChar="\uFEFF";bomHandling.PrependBOM=PrependBOMWrapper;function PrependBOMWrapper(t,e){this.encoder=t,this.addBOM=!0}PrependBOMWrapper.prototype.write=function(t){return this.addBOM&&(t=BOMChar+t,this.addBOM=!1),this.encoder.write(t)};PrependBOMWrapper.prototype.end=function(){return this.encoder.end()};bomHandling.StripBOM=StripBOMWrapper;function StripBOMWrapper(t,e){this.decoder=t,this.pass=!1,this.options=e||{}}StripBOMWrapper.prototype.write=function(t){var e=this.decoder.write(t);return this.pass||!e||(e[0]===BOMChar&&(e=e.slice(1),typeof this.options.stripBOM=="function"&&this.options.stripBOM()),this.pass=!0),e};StripBOMWrapper.prototype.end=function(){return this.decoder.end()};var encodings={},string_decoder={},safeBuffer$1={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var hasRequiredSafeBuffer;function requireSafeBuffer(){return hasRequiredSafeBuffer||(hasRequiredSafeBuffer=1,function(t,e){var r=buffer$1,n=r.Buffer;function o(c,l){for(var v in c)l[v]=c[v]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=s);function s(c,l,v){return n(c,l,v)}s.prototype=Object.create(n.prototype),o(n,s),s.from=function(c,l,v){if(typeof c=="number")throw new TypeError("Argument must not be a number");return n(c,l,v)},s.alloc=function(c,l,v){if(typeof c!="number")throw new TypeError("Argument must be a number");var x=n(c);return l!==void 0?typeof v=="string"?x.fill(l,v):x.fill(l):x.fill(0),x},s.allocUnsafe=function(c){if(typeof c!="number")throw new TypeError("Argument must be a number");return n(c)},s.allocUnsafeSlow=function(c){if(typeof c!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(c)}}(safeBuffer$1,safeBuffer$1.exports)),safeBuffer$1.exports}var hasRequiredString_decoder;function requireString_decoder(){if(hasRequiredString_decoder)return string_decoder;hasRequiredString_decoder=1;var t=requireSafeBuffer().Buffer,e=t.isEncoding||function(A){switch(A=""+A,A&&A.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(A){if(!A)return"utf8";for(var z;;)switch(A){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return A;default:if(z)return;A=(""+A).toLowerCase(),z=!0}}function n(A){var z=r(A);if(typeof z!="string"&&(t.isEncoding===e||!e(A)))throw new Error("Unknown encoding: "+A);return z||A}string_decoder.StringDecoder=o;function o(A){this.encoding=n(A);var z;switch(this.encoding){case"utf16le":this.text=_,this.end=b,z=4;break;case"utf8":this.fillLast=v,z=4;break;case"base64":this.text=E,this.end=I,z=3;break;default:this.write=O,this.end=N;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(z)}o.prototype.write=function(A){if(A.length===0)return"";var z,G;if(this.lastNeed){if(z=this.fillLast(A),z===void 0)return"";G=this.lastNeed,this.lastNeed=0}else G=0;return G<A.length?z?z+this.text(A,G):this.text(A,G):z||""},o.prototype.end=w,o.prototype.text=x,o.prototype.fillLast=function(A){if(this.lastNeed<=A.length)return A.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);A.copy(this.lastChar,this.lastTotal-this.lastNeed,0,A.length),this.lastNeed-=A.length};function s(A){return A<=127?0:A>>5===6?2:A>>4===14?3:A>>3===30?4:A>>6===2?-1:-2}function c(A,z,G){var V=z.length-1;if(V<G)return 0;var ne=s(z[V]);return ne>=0?(ne>0&&(A.lastNeed=ne-1),ne):--V<G||ne===-2?0:(ne=s(z[V]),ne>=0?(ne>0&&(A.lastNeed=ne-2),ne):--V<G||ne===-2?0:(ne=s(z[V]),ne>=0?(ne>0&&(ne===2?ne=0:A.lastNeed=ne-3),ne):0))}function l(A,z,G){if((z[0]&192)!==128)return A.lastNeed=0,"\uFFFD";if(A.lastNeed>1&&z.length>1){if((z[1]&192)!==128)return A.lastNeed=1,"\uFFFD";if(A.lastNeed>2&&z.length>2&&(z[2]&192)!==128)return A.lastNeed=2,"\uFFFD"}}function v(A){var z=this.lastTotal-this.lastNeed,G=l(this,A);if(G!==void 0)return G;if(this.lastNeed<=A.length)return A.copy(this.lastChar,z,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);A.copy(this.lastChar,z,0,A.length),this.lastNeed-=A.length}function x(A,z){var G=c(this,A,z);if(!this.lastNeed)return A.toString("utf8",z);this.lastTotal=G;var V=A.length-(G-this.lastNeed);return A.copy(this.lastChar,0,V),A.toString("utf8",z,V)}function w(A){var z=A&&A.length?this.write(A):"";return this.lastNeed?z+"\uFFFD":z}function _(A,z){if((A.length-z)%2===0){var G=A.toString("utf16le",z);if(G){var V=G.charCodeAt(G.length-1);if(V>=55296&&V<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=A[A.length-2],this.lastChar[1]=A[A.length-1],G.slice(0,-1)}return G}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=A[A.length-1],A.toString("utf16le",z,A.length-1)}function b(A){var z=A&&A.length?this.write(A):"";if(this.lastNeed){var G=this.lastTotal-this.lastNeed;return z+this.lastChar.toString("utf16le",0,G)}return z}function E(A,z){var G=(A.length-z)%3;return G===0?A.toString("base64",z):(this.lastNeed=3-G,this.lastTotal=3,G===1?this.lastChar[0]=A[A.length-1]:(this.lastChar[0]=A[A.length-2],this.lastChar[1]=A[A.length-1]),A.toString("base64",z,A.length-G))}function I(A){var z=A&&A.length?this.write(A):"";return this.lastNeed?z+this.lastChar.toString("base64",0,3-this.lastNeed):z}function O(A){return A.toString(this.encoding)}function N(A){return A&&A.length?this.write(A):""}return string_decoder}var internal,hasRequiredInternal;function requireInternal(){if(hasRequiredInternal)return internal;hasRequiredInternal=1;var t=safer_1.Buffer;internal={utf8:{type:"_internal",bomAware:!0},cesu8:{type:"_internal",bomAware:!0},unicode11utf8:"utf8",ucs2:{type:"_internal",bomAware:!0},utf16le:"ucs2",binary:{type:"_internal"},base64:{type:"_internal"},hex:{type:"_internal"},_internal:e};function e(v,x){this.enc=v.encodingName,this.bomAware=v.bomAware,this.enc==="base64"?this.encoder=s:this.enc==="cesu8"&&(this.enc="utf8",this.encoder=c,t.from("eda0bdedb2a9","hex").toString()!=="\u{1F4A9}"&&(this.decoder=l,this.defaultCharUnicode=x.defaultCharUnicode))}e.prototype.encoder=o,e.prototype.decoder=n;var r=requireString_decoder().StringDecoder;r.prototype.end||(r.prototype.end=function(){});function n(v,x){this.decoder=new r(x.enc)}n.prototype.write=function(v){return t.isBuffer(v)||(v=t.from(v)),this.decoder.write(v)},n.prototype.end=function(){return this.decoder.end()};function o(v,x){this.enc=x.enc}o.prototype.write=function(v){return t.from(v,this.enc)},o.prototype.end=function(){};function s(v,x){this.prevStr=""}s.prototype.write=function(v){v=this.prevStr+v;var x=v.length-v.length%4;return this.prevStr=v.slice(x),v=v.slice(0,x),t.from(v,"base64")},s.prototype.end=function(){return t.from(this.prevStr,"base64")};function c(v,x){}c.prototype.write=function(v){for(var x=t.alloc(v.length*3),w=0,_=0;_<v.length;_++){var b=v.charCodeAt(_);b<128?x[w++]=b:b<2048?(x[w++]=192+(b>>>6),x[w++]=128+(b&63)):(x[w++]=224+(b>>>12),x[w++]=128+(b>>>6&63),x[w++]=128+(b&63))}return x.slice(0,w)},c.prototype.end=function(){};function l(v,x){this.acc=0,this.contBytes=0,this.accBytes=0,this.defaultCharUnicode=x.defaultCharUnicode}return l.prototype.write=function(v){for(var x=this.acc,w=this.contBytes,_=this.accBytes,b="",E=0;E<v.length;E++){var I=v[E];(I&192)!==128?(w>0&&(b+=this.defaultCharUnicode,w=0),I<128?b+=String.fromCharCode(I):I<224?(x=I&31,w=1,_=1):I<240?(x=I&15,w=2,_=1):b+=this.defaultCharUnicode):w>0?(x=x<<6|I&63,w--,_++,w===0&&(_===2&&x<128&&x>0?b+=this.defaultCharUnicode:_===3&&x<2048?b+=this.defaultCharUnicode:b+=String.fromCharCode(x))):b+=this.defaultCharUnicode}return this.acc=x,this.contBytes=w,this.accBytes=_,b},l.prototype.end=function(){var v=0;return this.contBytes>0&&(v+=this.defaultCharUnicode),v},internal}var utf32={},hasRequiredUtf32;function requireUtf32(){if(hasRequiredUtf32)return utf32;hasRequiredUtf32=1;var t=safer_1.Buffer;utf32._utf32=e;function e(x,w){this.iconv=w,this.bomAware=!0,this.isLE=x.isLE}utf32.utf32le={type:"_utf32",isLE:!0},utf32.utf32be={type:"_utf32",isLE:!1},utf32.ucs4le="utf32le",utf32.ucs4be="utf32be",e.prototype.encoder=r,e.prototype.decoder=n;function r(x,w){this.isLE=w.isLE,this.highSurrogate=0}r.prototype.write=function(x){for(var w=t.from(x,"ucs2"),_=t.alloc(w.length*2),b=this.isLE?_.writeUInt32LE:_.writeUInt32BE,E=0,I=0;I<w.length;I+=2){var O=w.readUInt16LE(I),N=55296<=O&&O<56320,A=56320<=O&&O<57344;if(this.highSurrogate)if(N||!A)b.call(_,this.highSurrogate,E),E+=4;else{var z=(this.highSurrogate-55296<<10|O-56320)+65536;b.call(_,z,E),E+=4,this.highSurrogate=0;continue}N?this.highSurrogate=O:(b.call(_,O,E),E+=4,this.highSurrogate=0)}return E<_.length&&(_=_.slice(0,E)),_},r.prototype.end=function(){if(!!this.highSurrogate){var x=t.alloc(4);return this.isLE?x.writeUInt32LE(this.highSurrogate,0):x.writeUInt32BE(this.highSurrogate,0),this.highSurrogate=0,x}};function n(x,w){this.isLE=w.isLE,this.badChar=w.iconv.defaultCharUnicode.charCodeAt(0),this.overflow=[]}n.prototype.write=function(x){if(x.length===0)return"";var w=0,_=0,b=t.alloc(x.length+4),E=0,I=this.isLE,O=this.overflow,N=this.badChar;if(O.length>0){for(;w<x.length&&O.length<4;w++)O.push(x[w]);O.length===4&&(I?_=O[w]|O[w+1]<<8|O[w+2]<<16|O[w+3]<<24:_=O[w+3]|O[w+2]<<8|O[w+1]<<16|O[w]<<24,O.length=0,E=o(b,E,_,N))}for(;w<x.length-3;w+=4)I?_=x[w]|x[w+1]<<8|x[w+2]<<16|x[w+3]<<24:_=x[w+3]|x[w+2]<<8|x[w+1]<<16|x[w]<<24,E=o(b,E,_,N);for(;w<x.length;w++)O.push(x[w]);return b.slice(0,E).toString("ucs2")};function o(x,w,_,b){if((_<0||_>1114111)&&(_=b),_>=65536){_-=65536;var E=55296|_>>10;x[w++]=E&255,x[w++]=E>>8;var _=56320|_&1023}return x[w++]=_&255,x[w++]=_>>8,w}n.prototype.end=function(){this.overflow.length=0},utf32.utf32=s,utf32.ucs4="utf32";function s(x,w){this.iconv=w}s.prototype.encoder=c,s.prototype.decoder=l;function c(x,w){x=x||{},x.addBOM===void 0&&(x.addBOM=!0),this.encoder=w.iconv.getEncoder(x.defaultEncoding||"utf-32le",x)}c.prototype.write=function(x){return this.encoder.write(x)},c.prototype.end=function(){return this.encoder.end()};function l(x,w){this.decoder=null,this.initialBufs=[],this.initialBufsLen=0,this.options=x||{},this.iconv=w.iconv}l.prototype.write=function(x){if(!this.decoder){if(this.initialBufs.push(x),this.initialBufsLen+=x.length,this.initialBufsLen<32)return"";var w=v(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(w,this.options);for(var _="",b=0;b<this.initialBufs.length;b++)_+=this.decoder.write(this.initialBufs[b]);return this.initialBufs.length=this.initialBufsLen=0,_}return this.decoder.write(x)},l.prototype.end=function(){if(!this.decoder){var x=v(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(x,this.options);for(var w="",_=0;_<this.initialBufs.length;_++)w+=this.decoder.write(this.initialBufs[_]);var b=this.decoder.end();return b&&(w+=b),this.initialBufs.length=this.initialBufsLen=0,w}return this.decoder.end()};function v(x,w){var _=[],b=0,E=0,I=0,O=0,N=0;e:for(var A=0;A<x.length;A++)for(var z=x[A],G=0;G<z.length;G++)if(_.push(z[G]),_.length===4){if(b===0){if(_[0]===255&&_[1]===254&&_[2]===0&&_[3]===0)return"utf-32le";if(_[0]===0&&_[1]===0&&_[2]===254&&_[3]===255)return"utf-32be"}if((_[0]!==0||_[1]>16)&&I++,(_[3]!==0||_[2]>16)&&E++,_[0]===0&&_[1]===0&&(_[2]!==0||_[3]!==0)&&N++,(_[0]!==0||_[1]!==0)&&_[2]===0&&_[3]===0&&O++,_.length=0,b++,b>=100)break e}return N-I>O-E?"utf-32be":N-I<O-E?"utf-32le":w||"utf-32le"}return utf32}var utf16={},hasRequiredUtf16;function requireUtf16(){if(hasRequiredUtf16)return utf16;hasRequiredUtf16=1;var t=safer_1.Buffer;utf16.utf16be=e;function e(){}e.prototype.encoder=r,e.prototype.decoder=n,e.prototype.bomAware=!0;function r(){}r.prototype.write=function(v){for(var x=t.from(v,"ucs2"),w=0;w<x.length;w+=2){var _=x[w];x[w]=x[w+1],x[w+1]=_}return x},r.prototype.end=function(){};function n(){this.overflowByte=-1}n.prototype.write=function(v){if(v.length==0)return"";var x=t.alloc(v.length+1),w=0,_=0;for(this.overflowByte!==-1&&(x[0]=v[0],x[1]=this.overflowByte,w=1,_=2);w<v.length-1;w+=2,_+=2)x[_]=v[w+1],x[_+1]=v[w];return this.overflowByte=w==v.length-1?v[v.length-1]:-1,x.slice(0,_).toString("ucs2")},n.prototype.end=function(){this.overflowByte=-1},utf16.utf16=o;function o(v,x){this.iconv=x}o.prototype.encoder=s,o.prototype.decoder=c;function s(v,x){v=v||{},v.addBOM===void 0&&(v.addBOM=!0),this.encoder=x.iconv.getEncoder("utf-16le",v)}s.prototype.write=function(v){return this.encoder.write(v)},s.prototype.end=function(){return this.encoder.end()};function c(v,x){this.decoder=null,this.initialBufs=[],this.initialBufsLen=0,this.options=v||{},this.iconv=x.iconv}c.prototype.write=function(v){if(!this.decoder){if(this.initialBufs.push(v),this.initialBufsLen+=v.length,this.initialBufsLen<16)return"";var x=l(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(x,this.options);for(var w="",_=0;_<this.initialBufs.length;_++)w+=this.decoder.write(this.initialBufs[_]);return this.initialBufs.length=this.initialBufsLen=0,w}return this.decoder.write(v)},c.prototype.end=function(){if(!this.decoder){var v=l(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(v,this.options);for(var x="",w=0;w<this.initialBufs.length;w++)x+=this.decoder.write(this.initialBufs[w]);var _=this.decoder.end();return _&&(x+=_),this.initialBufs.length=this.initialBufsLen=0,x}return this.decoder.end()};function l(v,x){var w=[],_=0,b=0,E=0;e:for(var I=0;I<v.length;I++)for(var O=v[I],N=0;N<O.length;N++)if(w.push(O[N]),w.length===2){if(_===0){if(w[0]===255&&w[1]===254)return"utf-16le";if(w[0]===254&&w[1]===255)return"utf-16be"}if(w[0]===0&&w[1]!==0&&E++,w[0]!==0&&w[1]===0&&b++,w.length=0,_++,_>=100)break e}return E>b?"utf-16be":E<b?"utf-16le":x||"utf-16le"}return utf16}var utf7={},hasRequiredUtf7;function requireUtf7(){if(hasRequiredUtf7)return utf7;hasRequiredUtf7=1;var t=safer_1.Buffer;utf7.utf7=e,utf7.unicode11utf7="utf7";function e(O,N){this.iconv=N}e.prototype.encoder=n,e.prototype.decoder=o,e.prototype.bomAware=!0;var r=/[^A-Za-z0-9'\(\),-\.\/:\? \n\r\t]+/g;function n(O,N){this.iconv=N.iconv}n.prototype.write=function(O){return t.from(O.replace(r,function(N){return"+"+(N==="+"?"":this.iconv.encode(N,"utf16-be").toString("base64").replace(/=+$/,""))+"-"}.bind(this)))},n.prototype.end=function(){};function o(O,N){this.iconv=N.iconv,this.inBase64=!1,this.base64Accum=""}for(var s=/[A-Za-z0-9\/+]/,c=[],l=0;l<256;l++)c[l]=s.test(String.fromCharCode(l));var v="+".charCodeAt(0),x="-".charCodeAt(0),w="&".charCodeAt(0);o.prototype.write=function(O){for(var N="",A=0,z=this.inBase64,G=this.base64Accum,V=0;V<O.length;V++)if(!z)O[V]==v&&(N+=this.iconv.decode(O.slice(A,V),"ascii"),A=V+1,z=!0);else if(!c[O[V]]){if(V==A&&O[V]==x)N+="+";else{var ne=G+this.iconv.decode(O.slice(A,V),"ascii");N+=this.iconv.decode(t.from(ne,"base64"),"utf16-be")}O[V]!=x&&V--,A=V+1,z=!1,G=""}if(!z)N+=this.iconv.decode(O.slice(A),"ascii");else{var ne=G+this.iconv.decode(O.slice(A),"ascii"),W=ne.length-ne.length%8;G=ne.slice(W),ne=ne.slice(0,W),N+=this.iconv.decode(t.from(ne,"base64"),"utf16-be")}return this.inBase64=z,this.base64Accum=G,N},o.prototype.end=function(){var O="";return this.inBase64&&this.base64Accum.length>0&&(O=this.iconv.decode(t.from(this.base64Accum,"base64"),"utf16-be")),this.inBase64=!1,this.base64Accum="",O},utf7.utf7imap=_;function _(O,N){this.iconv=N}_.prototype.encoder=b,_.prototype.decoder=E,_.prototype.bomAware=!0;function b(O,N){this.iconv=N.iconv,this.inBase64=!1,this.base64Accum=t.alloc(6),this.base64AccumIdx=0}b.prototype.write=function(O){for(var N=this.inBase64,A=this.base64Accum,z=this.base64AccumIdx,G=t.alloc(O.length*5+10),V=0,ne=0;ne<O.length;ne++){var W=O.charCodeAt(ne);32<=W&&W<=126?(N&&(z>0&&(V+=G.write(A.slice(0,z).toString("base64").replace(/\//g,",").replace(/=+$/,""),V),z=0),G[V++]=x,N=!1),N||(G[V++]=W,W===w&&(G[V++]=x))):(N||(G[V++]=w,N=!0),N&&(A[z++]=W>>8,A[z++]=W&255,z==A.length&&(V+=G.write(A.toString("base64").replace(/\//g,","),V),z=0)))}return this.inBase64=N,this.base64AccumIdx=z,G.slice(0,V)},b.prototype.end=function(){var O=t.alloc(10),N=0;return this.inBase64&&(this.base64AccumIdx>0&&(N+=O.write(this.base64Accum.slice(0,this.base64AccumIdx).toString("base64").replace(/\//g,",").replace(/=+$/,""),N),this.base64AccumIdx=0),O[N++]=x,this.inBase64=!1),O.slice(0,N)};function E(O,N){this.iconv=N.iconv,this.inBase64=!1,this.base64Accum=""}var I=c.slice();return I[",".charCodeAt(0)]=!0,E.prototype.write=function(O){for(var N="",A=0,z=this.inBase64,G=this.base64Accum,V=0;V<O.length;V++)if(!z)O[V]==w&&(N+=this.iconv.decode(O.slice(A,V),"ascii"),A=V+1,z=!0);else if(!I[O[V]]){if(V==A&&O[V]==x)N+="&";else{var ne=G+this.iconv.decode(O.slice(A,V),"ascii").replace(/,/g,"/");N+=this.iconv.decode(t.from(ne,"base64"),"utf16-be")}O[V]!=x&&V--,A=V+1,z=!1,G=""}if(!z)N+=this.iconv.decode(O.slice(A),"ascii");else{var ne=G+this.iconv.decode(O.slice(A),"ascii").replace(/,/g,"/"),W=ne.length-ne.length%8;G=ne.slice(W),ne=ne.slice(0,W),N+=this.iconv.decode(t.from(ne,"base64"),"utf16-be")}return this.inBase64=z,this.base64Accum=G,N},E.prototype.end=function(){var O="";return this.inBase64&&this.base64Accum.length>0&&(O=this.iconv.decode(t.from(this.base64Accum,"base64"),"utf16-be")),this.inBase64=!1,this.base64Accum="",O},utf7}var sbcsCodec={},hasRequiredSbcsCodec;function requireSbcsCodec(){if(hasRequiredSbcsCodec)return sbcsCodec;hasRequiredSbcsCodec=1;var t=safer_1.Buffer;sbcsCodec._sbcs=e;function e(o,s){if(!o)throw new Error("SBCS codec is called without the data.");if(!o.chars||o.chars.length!==128&&o.chars.length!==256)throw new Error("Encoding '"+o.type+"' has incorrect 'chars' (must be of len 128 or 256)");if(o.chars.length===128){for(var c="",l=0;l<128;l++)c+=String.fromCharCode(l);o.chars=c+o.chars}this.decodeBuf=t.from(o.chars,"ucs2");for(var v=t.alloc(65536,s.defaultCharSingleByte.charCodeAt(0)),l=0;l<o.chars.length;l++)v[o.chars.charCodeAt(l)]=l;this.encodeBuf=v}e.prototype.encoder=r,e.prototype.decoder=n;function r(o,s){this.encodeBuf=s.encodeBuf}r.prototype.write=function(o){for(var s=t.alloc(o.length),c=0;c<o.length;c++)s[c]=this.encodeBuf[o.charCodeAt(c)];return s},r.prototype.end=function(){};function n(o,s){this.decodeBuf=s.decodeBuf}return n.prototype.write=function(o){for(var s=this.decodeBuf,c=t.alloc(o.length*2),l=0,v=0,x=0;x<o.length;x++)l=o[x]*2,v=x*2,c[v]=s[l],c[v+1]=s[l+1];return c.toString("ucs2")},n.prototype.end=function(){},sbcsCodec}var sbcsData,hasRequiredSbcsData;function requireSbcsData(){return hasRequiredSbcsData||(hasRequiredSbcsData=1,sbcsData={10029:"maccenteuro",maccenteuro:{type:"_sbcs",chars:"\xC4\u0100\u0101\xC9\u0104\xD6\xDC\xE1\u0105\u010C\xE4\u010D\u0106\u0107\xE9\u0179\u017A\u010E\xED\u010F\u0112\u0113\u0116\xF3\u0117\xF4\xF6\xF5\xFA\u011A\u011B\xFC\u2020\xB0\u0118\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\u0119\xA8\u2260\u0123\u012E\u012F\u012A\u2264\u2265\u012B\u0136\u2202\u2211\u0142\u013B\u013C\u013D\u013E\u0139\u013A\u0145\u0146\u0143\xAC\u221A\u0144\u0147\u2206\xAB\xBB\u2026\xA0\u0148\u0150\xD5\u0151\u014C\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\u014D\u0154\u0155\u0158\u2039\u203A\u0159\u0156\u0157\u0160\u201A\u201E\u0161\u015A\u015B\xC1\u0164\u0165\xCD\u017D\u017E\u016A\xD3\xD4\u016B\u016E\xDA\u016F\u0170\u0171\u0172\u0173\xDD\xFD\u0137\u017B\u0141\u017C\u0122\u02C7"},808:"cp808",ibm808:"cp808",cp808:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\u20AC\u25A0\xA0"},mik:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u2514\u2534\u252C\u251C\u2500\u253C\u2563\u2551\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2510\u2591\u2592\u2593\u2502\u2524\u2116\xA7\u2557\u255D\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},cp720:{type:"_sbcs",chars:"\x80\x81\xE9\xE2\x84\xE0\x86\xE7\xEA\xEB\xE8\xEF\xEE\x8D\x8E\x8F\x90\u0651\u0652\xF4\xA4\u0640\xFB\xF9\u0621\u0622\u0623\u0624\xA3\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0636\u0637\u0638\u0639\u063A\u0641\xB5\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u2261\u064B\u064C\u064D\u064E\u064F\u0650\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ascii8bit:"ascii",usascii:"ascii",ansix34:"ascii",ansix341968:"ascii",ansix341986:"ascii",csascii:"ascii",cp367:"ascii",ibm367:"ascii",isoir6:"ascii",iso646us:"ascii",iso646irv:"ascii",us:"ascii",latin1:"iso88591",latin2:"iso88592",latin3:"iso88593",latin4:"iso88594",latin5:"iso88599",latin6:"iso885910",latin7:"iso885913",latin8:"iso885914",latin9:"iso885915",latin10:"iso885916",csisolatin1:"iso88591",csisolatin2:"iso88592",csisolatin3:"iso88593",csisolatin4:"iso88594",csisolatincyrillic:"iso88595",csisolatinarabic:"iso88596",csisolatingreek:"iso88597",csisolatinhebrew:"iso88598",csisolatin5:"iso88599",csisolatin6:"iso885910",l1:"iso88591",l2:"iso88592",l3:"iso88593",l4:"iso88594",l5:"iso88599",l6:"iso885910",l7:"iso885913",l8:"iso885914",l9:"iso885915",l10:"iso885916",isoir14:"iso646jp",isoir57:"iso646cn",isoir100:"iso88591",isoir101:"iso88592",isoir109:"iso88593",isoir110:"iso88594",isoir144:"iso88595",isoir127:"iso88596",isoir126:"iso88597",isoir138:"iso88598",isoir148:"iso88599",isoir157:"iso885910",isoir166:"tis620",isoir179:"iso885913",isoir199:"iso885914",isoir203:"iso885915",isoir226:"iso885916",cp819:"iso88591",ibm819:"iso88591",cyrillic:"iso88595",arabic:"iso88596",arabic8:"iso88596",ecma114:"iso88596",asmo708:"iso88596",greek:"iso88597",greek8:"iso88597",ecma118:"iso88597",elot928:"iso88597",hebrew:"iso88598",hebrew8:"iso88598",turkish:"iso88599",turkish8:"iso88599",thai:"iso885911",thai8:"iso885911",celtic:"iso885914",celtic8:"iso885914",isoceltic:"iso885914",tis6200:"tis620",tis62025291:"tis620",tis62025330:"tis620",1e4:"macroman",10006:"macgreek",10007:"maccyrillic",10079:"maciceland",10081:"macturkish",cspc8codepage437:"cp437",cspc775baltic:"cp775",cspc850multilingual:"cp850",cspcp852:"cp852",cspc862latinhebrew:"cp862",cpgr:"cp869",msee:"cp1250",mscyrl:"cp1251",msansi:"cp1252",msgreek:"cp1253",msturk:"cp1254",mshebr:"cp1255",msarab:"cp1256",winbaltrim:"cp1257",cp20866:"koi8r",20866:"koi8r",ibm878:"koi8r",cskoi8r:"koi8r",cp21866:"koi8u",21866:"koi8u",ibm1168:"koi8u",strk10482002:"rk1048",tcvn5712:"tcvn",tcvn57121:"tcvn",gb198880:"iso646cn",cn:"iso646cn",csiso14jisc6220ro:"iso646jp",jisc62201969ro:"iso646jp",jp:"iso646jp",cshproman8:"hproman8",r8:"hproman8",roman8:"hproman8",xroman8:"hproman8",ibm1051:"hproman8",mac:"macintosh",csmacintosh:"macintosh"}),sbcsData}var sbcsDataGenerated,hasRequiredSbcsDataGenerated;function requireSbcsDataGenerated(){return hasRequiredSbcsDataGenerated||(hasRequiredSbcsDataGenerated=1,sbcsDataGenerated={437:"cp437",737:"cp737",775:"cp775",850:"cp850",852:"cp852",855:"cp855",856:"cp856",857:"cp857",858:"cp858",860:"cp860",861:"cp861",862:"cp862",863:"cp863",864:"cp864",865:"cp865",866:"cp866",869:"cp869",874:"windows874",922:"cp922",1046:"cp1046",1124:"cp1124",1125:"cp1125",1129:"cp1129",1133:"cp1133",1161:"cp1161",1162:"cp1162",1163:"cp1163",1250:"windows1250",1251:"windows1251",1252:"windows1252",1253:"windows1253",1254:"windows1254",1255:"windows1255",1256:"windows1256",1257:"windows1257",1258:"windows1258",28591:"iso88591",28592:"iso88592",28593:"iso88593",28594:"iso88594",28595:"iso88595",28596:"iso88596",28597:"iso88597",28598:"iso88598",28599:"iso88599",28600:"iso885910",28601:"iso885911",28603:"iso885913",28604:"iso885914",28605:"iso885915",28606:"iso885916",windows874:{type:"_sbcs",chars:"\u20AC\uFFFD\uFFFD\uFFFD\uFFFD\u2026\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\xA0\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"},win874:"windows874",cp874:"windows874",windows1250:{type:"_sbcs",chars:"\u20AC\uFFFD\u201A\uFFFD\u201E\u2026\u2020\u2021\uFFFD\u2030\u0160\u2039\u015A\u0164\u017D\u0179\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\u2122\u0161\u203A\u015B\u0165\u017E\u017A\xA0\u02C7\u02D8\u0141\xA4\u0104\xA6\xA7\xA8\xA9\u015E\xAB\xAC\xAD\xAE\u017B\xB0\xB1\u02DB\u0142\xB4\xB5\xB6\xB7\xB8\u0105\u015F\xBB\u013D\u02DD\u013E\u017C\u0154\xC1\xC2\u0102\xC4\u0139\u0106\xC7\u010C\xC9\u0118\xCB\u011A\xCD\xCE\u010E\u0110\u0143\u0147\xD3\xD4\u0150\xD6\xD7\u0158\u016E\xDA\u0170\xDC\xDD\u0162\xDF\u0155\xE1\xE2\u0103\xE4\u013A\u0107\xE7\u010D\xE9\u0119\xEB\u011B\xED\xEE\u010F\u0111\u0144\u0148\xF3\xF4\u0151\xF6\xF7\u0159\u016F\xFA\u0171\xFC\xFD\u0163\u02D9"},win1250:"windows1250",cp1250:"windows1250",windows1251:{type:"_sbcs",chars:"\u0402\u0403\u201A\u0453\u201E\u2026\u2020\u2021\u20AC\u2030\u0409\u2039\u040A\u040C\u040B\u040F\u0452\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\u2122\u0459\u203A\u045A\u045C\u045B\u045F\xA0\u040E\u045E\u0408\xA4\u0490\xA6\xA7\u0401\xA9\u0404\xAB\xAC\xAD\xAE\u0407\xB0\xB1\u0406\u0456\u0491\xB5\xB6\xB7\u0451\u2116\u0454\xBB\u0458\u0405\u0455\u0457\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},win1251:"windows1251",cp1251:"windows1251",windows1252:{type:"_sbcs",chars:"\u20AC\uFFFD\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\uFFFD\u017D\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\uFFFD\u017E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\xD0\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\xDE\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},win1252:"windows1252",cp1252:"windows1252",windows1253:{type:"_sbcs",chars:"\u20AC\uFFFD\u201A\u0192\u201E\u2026\u2020\u2021\uFFFD\u2030\uFFFD\u2039\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\u2122\uFFFD\u203A\uFFFD\uFFFD\uFFFD\uFFFD\xA0\u0385\u0386\xA3\xA4\xA5\xA6\xA7\xA8\xA9\uFFFD\xAB\xAC\xAD\xAE\u2015\xB0\xB1\xB2\xB3\u0384\xB5\xB6\xB7\u0388\u0389\u038A\xBB\u038C\xBD\u038E\u038F\u0390\u0391\u0392\u0393\u0394\u0395\u0396\u0397\u0398\u0399\u039A\u039B\u039C\u039D\u039E\u039F\u03A0\u03A1\uFFFD\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03AA\u03AB\u03AC\u03AD\u03AE\u03AF\u03B0\u03B1\u03B2\u03B3\u03B4\u03B5\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C2\u03C3\u03C4\u03C5\u03C6\u03C7\u03C8\u03C9\u03CA\u03CB\u03CC\u03CD\u03CE\uFFFD"},win1253:"windows1253",cp1253:"windows1253",windows1254:{type:"_sbcs",chars:"\u20AC\uFFFD\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\uFFFD\uFFFD\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\uFFFD\uFFFD\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u011E\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\u0130\u015E\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u011F\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\u0131\u015F\xFF"},win1254:"windows1254",cp1254:"windows1254",windows1255:{type:"_sbcs",chars:"\u20AC\uFFFD\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\uFFFD\u2039\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\uFFFD\u203A\uFFFD\uFFFD\uFFFD\uFFFD\xA0\xA1\xA2\xA3\u20AA\xA5\xA6\xA7\xA8\xA9\xD7\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xF7\xBB\xBC\xBD\xBE\xBF\u05B0\u05B1\u05B2\u05B3\u05B4\u05B5\u05B6\u05B7\u05B8\u05B9\u05BA\u05BB\u05BC\u05BD\u05BE\u05BF\u05C0\u05C1\u05C2\u05C3\u05F0\u05F1\u05F2\u05F3\u05F4\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u05D0\u05D1\u05D2\u05D3\u05D4\u05D5\u05D6\u05D7\u05D8\u05D9\u05DA\u05DB\u05DC\u05DD\u05DE\u05DF\u05E0\u05E1\u05E2\u05E3\u05E4\u05E5\u05E6\u05E7\u05E8\u05E9\u05EA\uFFFD\uFFFD\u200E\u200F\uFFFD"},win1255:"windows1255",cp1255:"windows1255",windows1256:{type:"_sbcs",chars:"\u20AC\u067E\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0679\u2039\u0152\u0686\u0698\u0688\u06AF\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u06A9\u2122\u0691\u203A\u0153\u200C\u200D\u06BA\xA0\u060C\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\u06BE\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\u061B\xBB\xBC\xBD\xBE\u061F\u06C1\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\xD7\u0637\u0638\u0639\u063A\u0640\u0641\u0642\u0643\xE0\u0644\xE2\u0645\u0646\u0647\u0648\xE7\xE8\xE9\xEA\xEB\u0649\u064A\xEE\xEF\u064B\u064C\u064D\u064E\xF4\u064F\u0650\xF7\u0651\xF9\u0652\xFB\xFC\u200E\u200F\u06D2"},win1256:"windows1256",cp1256:"windows1256",windows1257:{type:"_sbcs",chars:"\u20AC\uFFFD\u201A\uFFFD\u201E\u2026\u2020\u2021\uFFFD\u2030\uFFFD\u2039\uFFFD\xA8\u02C7\xB8\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\u2122\uFFFD\u203A\uFFFD\xAF\u02DB\uFFFD\xA0\uFFFD\xA2\xA3\xA4\uFFFD\xA6\xA7\xD8\xA9\u0156\xAB\xAC\xAD\xAE\xC6\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xF8\xB9\u0157\xBB\xBC\xBD\xBE\xE6\u0104\u012E\u0100\u0106\xC4\xC5\u0118\u0112\u010C\xC9\u0179\u0116\u0122\u0136\u012A\u013B\u0160\u0143\u0145\xD3\u014C\xD5\xD6\xD7\u0172\u0141\u015A\u016A\xDC\u017B\u017D\xDF\u0105\u012F\u0101\u0107\xE4\xE5\u0119\u0113\u010D\xE9\u017A\u0117\u0123\u0137\u012B\u013C\u0161\u0144\u0146\xF3\u014D\xF5\xF6\xF7\u0173\u0142\u015B\u016B\xFC\u017C\u017E\u02D9"},win1257:"windows1257",cp1257:"windows1257",windows1258:{type:"_sbcs",chars:"\u20AC\uFFFD\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\uFFFD\u2039\u0152\uFFFD\uFFFD\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\uFFFD\u203A\u0153\uFFFD\uFFFD\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\u0102\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\u0300\xCD\xCE\xCF\u0110\xD1\u0309\xD3\xD4\u01A0\xD6\xD7\xD8\xD9\xDA\xDB\xDC\u01AF\u0303\xDF\xE0\xE1\xE2\u0103\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\u0301\xED\xEE\xEF\u0111\xF1\u0323\xF3\xF4\u01A1\xF6\xF7\xF8\xF9\xFA\xFB\xFC\u01B0\u20AB\xFF"},win1258:"windows1258",cp1258:"windows1258",iso88591:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\xD0\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\xDE\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},cp28591:"iso88591",iso88592:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0104\u02D8\u0141\xA4\u013D\u015A\xA7\xA8\u0160\u015E\u0164\u0179\xAD\u017D\u017B\xB0\u0105\u02DB\u0142\xB4\u013E\u015B\u02C7\xB8\u0161\u015F\u0165\u017A\u02DD\u017E\u017C\u0154\xC1\xC2\u0102\xC4\u0139\u0106\xC7\u010C\xC9\u0118\xCB\u011A\xCD\xCE\u010E\u0110\u0143\u0147\xD3\xD4\u0150\xD6\xD7\u0158\u016E\xDA\u0170\xDC\xDD\u0162\xDF\u0155\xE1\xE2\u0103\xE4\u013A\u0107\xE7\u010D\xE9\u0119\xEB\u011B\xED\xEE\u010F\u0111\u0144\u0148\xF3\xF4\u0151\xF6\xF7\u0159\u016F\xFA\u0171\xFC\xFD\u0163\u02D9"},cp28592:"iso88592",iso88593:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0126\u02D8\xA3\xA4\uFFFD\u0124\xA7\xA8\u0130\u015E\u011E\u0134\xAD\uFFFD\u017B\xB0\u0127\xB2\xB3\xB4\xB5\u0125\xB7\xB8\u0131\u015F\u011F\u0135\xBD\uFFFD\u017C\xC0\xC1\xC2\uFFFD\xC4\u010A\u0108\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\uFFFD\xD1\xD2\xD3\xD4\u0120\xD6\xD7\u011C\xD9\xDA\xDB\xDC\u016C\u015C\xDF\xE0\xE1\xE2\uFFFD\xE4\u010B\u0109\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\uFFFD\xF1\xF2\xF3\xF4\u0121\xF6\xF7\u011D\xF9\xFA\xFB\xFC\u016D\u015D\u02D9"},cp28593:"iso88593",iso88594:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0104\u0138\u0156\xA4\u0128\u013B\xA7\xA8\u0160\u0112\u0122\u0166\xAD\u017D\xAF\xB0\u0105\u02DB\u0157\xB4\u0129\u013C\u02C7\xB8\u0161\u0113\u0123\u0167\u014A\u017E\u014B\u0100\xC1\xC2\xC3\xC4\xC5\xC6\u012E\u010C\xC9\u0118\xCB\u0116\xCD\xCE\u012A\u0110\u0145\u014C\u0136\xD4\xD5\xD6\xD7\xD8\u0172\xDA\xDB\xDC\u0168\u016A\xDF\u0101\xE1\xE2\xE3\xE4\xE5\xE6\u012F\u010D\xE9\u0119\xEB\u0117\xED\xEE\u012B\u0111\u0146\u014D\u0137\xF4\xF5\xF6\xF7\xF8\u0173\xFA\xFB\xFC\u0169\u016B\u02D9"},cp28594:"iso88594",iso88595:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0401\u0402\u0403\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\xAD\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u2116\u0451\u0452\u0453\u0454\u0455\u0456\u0457\u0458\u0459\u045A\u045B\u045C\xA7\u045E\u045F"},cp28595:"iso88595",iso88596:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\uFFFD\uFFFD\uFFFD\xA4\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u060C\xAD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u061B\uFFFD\uFFFD\uFFFD\u061F\uFFFD\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\u0638\u0639\u063A\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},cp28596:"iso88596",iso88597:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u2018\u2019\xA3\u20AC\u20AF\xA6\xA7\xA8\xA9\u037A\xAB\xAC\xAD\uFFFD\u2015\xB0\xB1\xB2\xB3\u0384\u0385\u0386\xB7\u0388\u0389\u038A\xBB\u038C\xBD\u038E\u038F\u0390\u0391\u0392\u0393\u0394\u0395\u0396\u0397\u0398\u0399\u039A\u039B\u039C\u039D\u039E\u039F\u03A0\u03A1\uFFFD\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03AA\u03AB\u03AC\u03AD\u03AE\u03AF\u03B0\u03B1\u03B2\u03B3\u03B4\u03B5\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C2\u03C3\u03C4\u03C5\u03C6\u03C7\u03C8\u03C9\u03CA\u03CB\u03CC\u03CD\u03CE\uFFFD"},cp28597:"iso88597",iso88598:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\uFFFD\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xD7\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xF7\xBB\xBC\xBD\xBE\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u2017\u05D0\u05D1\u05D2\u05D3\u05D4\u05D5\u05D6\u05D7\u05D8\u05D9\u05DA\u05DB\u05DC\u05DD\u05DE\u05DF\u05E0\u05E1\u05E2\u05E3\u05E4\u05E5\u05E6\u05E7\u05E8\u05E9\u05EA\uFFFD\uFFFD\u200E\u200F\uFFFD"},cp28598:"iso88598",iso88599:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u011E\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\u0130\u015E\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u011F\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\u0131\u015F\xFF"},cp28599:"iso88599",iso885910:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0104\u0112\u0122\u012A\u0128\u0136\xA7\u013B\u0110\u0160\u0166\u017D\xAD\u016A\u014A\xB0\u0105\u0113\u0123\u012B\u0129\u0137\xB7\u013C\u0111\u0161\u0167\u017E\u2015\u016B\u014B\u0100\xC1\xC2\xC3\xC4\xC5\xC6\u012E\u010C\xC9\u0118\xCB\u0116\xCD\xCE\xCF\xD0\u0145\u014C\xD3\xD4\xD5\xD6\u0168\xD8\u0172\xDA\xDB\xDC\xDD\xDE\xDF\u0101\xE1\xE2\xE3\xE4\xE5\xE6\u012F\u010D\xE9\u0119\xEB\u0117\xED\xEE\xEF\xF0\u0146\u014D\xF3\xF4\xF5\xF6\u0169\xF8\u0173\xFA\xFB\xFC\xFD\xFE\u0138"},cp28600:"iso885910",iso885911:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"},cp28601:"iso885911",iso885913:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u201D\xA2\xA3\xA4\u201E\xA6\xA7\xD8\xA9\u0156\xAB\xAC\xAD\xAE\xC6\xB0\xB1\xB2\xB3\u201C\xB5\xB6\xB7\xF8\xB9\u0157\xBB\xBC\xBD\xBE\xE6\u0104\u012E\u0100\u0106\xC4\xC5\u0118\u0112\u010C\xC9\u0179\u0116\u0122\u0136\u012A\u013B\u0160\u0143\u0145\xD3\u014C\xD5\xD6\xD7\u0172\u0141\u015A\u016A\xDC\u017B\u017D\xDF\u0105\u012F\u0101\u0107\xE4\xE5\u0119\u0113\u010D\xE9\u017A\u0117\u0123\u0137\u012B\u013C\u0161\u0144\u0146\xF3\u014D\xF5\xF6\xF7\u0173\u0142\u015B\u016B\xFC\u017C\u017E\u2019"},cp28603:"iso885913",iso885914:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u1E02\u1E03\xA3\u010A\u010B\u1E0A\xA7\u1E80\xA9\u1E82\u1E0B\u1EF2\xAD\xAE\u0178\u1E1E\u1E1F\u0120\u0121\u1E40\u1E41\xB6\u1E56\u1E81\u1E57\u1E83\u1E60\u1EF3\u1E84\u1E85\u1E61\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0174\xD1\xD2\xD3\xD4\xD5\xD6\u1E6A\xD8\xD9\xDA\xDB\xDC\xDD\u0176\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0175\xF1\xF2\xF3\xF4\xF5\xF6\u1E6B\xF8\xF9\xFA\xFB\xFC\xFD\u0177\xFF"},cp28604:"iso885914",iso885915:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\u20AC\xA5\u0160\xA7\u0161\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\u017D\xB5\xB6\xB7\u017E\xB9\xBA\xBB\u0152\u0153\u0178\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\xD0\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\xDE\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},cp28605:"iso885915",iso885916:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0104\u0105\u0141\u20AC\u201E\u0160\xA7\u0161\xA9\u0218\xAB\u0179\xAD\u017A\u017B\xB0\xB1\u010C\u0142\u017D\u201D\xB6\xB7\u017E\u010D\u0219\xBB\u0152\u0153\u0178\u017C\xC0\xC1\xC2\u0102\xC4\u0106\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0110\u0143\xD2\xD3\xD4\u0150\xD6\u015A\u0170\xD9\xDA\xDB\xDC\u0118\u021A\xDF\xE0\xE1\xE2\u0103\xE4\u0107\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0111\u0144\xF2\xF3\xF4\u0151\xF6\u015B\u0171\xF9\xFA\xFB\xFC\u0119\u021B\xFF"},cp28606:"iso885916",cp437:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xA2\xA3\xA5\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm437:"cp437",csibm437:"cp437",cp737:{type:"_sbcs",chars:"\u0391\u0392\u0393\u0394\u0395\u0396\u0397\u0398\u0399\u039A\u039B\u039C\u039D\u039E\u039F\u03A0\u03A1\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u03B4\u03B5\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u03C5\u03C6\u03C7\u03C8\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03C9\u03AC\u03AD\u03AE\u03CA\u03AF\u03CC\u03CD\u03CB\u03CE\u0386\u0388\u0389\u038A\u038C\u038E\u038F\xB1\u2265\u2264\u03AA\u03AB\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm737:"cp737",csibm737:"cp737",cp775:{type:"_sbcs",chars:"\u0106\xFC\xE9\u0101\xE4\u0123\xE5\u0107\u0142\u0113\u0156\u0157\u012B\u0179\xC4\xC5\xC9\xE6\xC6\u014D\xF6\u0122\xA2\u015A\u015B\xD6\xDC\xF8\xA3\xD8\xD7\xA4\u0100\u012A\xF3\u017B\u017C\u017A\u201D\xA6\xA9\xAE\xAC\xBD\xBC\u0141\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u0104\u010C\u0118\u0116\u2563\u2551\u2557\u255D\u012E\u0160\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u0172\u016A\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u017D\u0105\u010D\u0119\u0117\u012F\u0161\u0173\u016B\u017E\u2518\u250C\u2588\u2584\u258C\u2590\u2580\xD3\xDF\u014C\u0143\xF5\xD5\xB5\u0144\u0136\u0137\u013B\u013C\u0146\u0112\u0145\u2019\xAD\xB1\u201C\xBE\xB6\xA7\xF7\u201E\xB0\u2219\xB7\xB9\xB3\xB2\u25A0\xA0"},ibm775:"cp775",csibm775:"cp775",cp850:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\xD7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\xAE\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\xC1\xC2\xC0\xA9\u2563\u2551\u2557\u255D\xA2\xA5\u2510\u2514\u2534\u252C\u251C\u2500\u253C\xE3\xC3\u255A\u2554\u2569\u2566\u2560\u2550\u256C\xA4\xF0\xD0\xCA\xCB\xC8\u0131\xCD\xCE\xCF\u2518\u250C\u2588\u2584\xA6\xCC\u2580\xD3\xDF\xD4\xD2\xF5\xD5\xB5\xFE\xDE\xDA\xDB\xD9\xFD\xDD\xAF\xB4\xAD\xB1\u2017\xBE\xB6\xA7\xF7\xB8\xB0\xA8\xB7\xB9\xB3\xB2\u25A0\xA0"},ibm850:"cp850",csibm850:"cp850",cp852:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\u016F\u0107\xE7\u0142\xEB\u0150\u0151\xEE\u0179\xC4\u0106\xC9\u0139\u013A\xF4\xF6\u013D\u013E\u015A\u015B\xD6\xDC\u0164\u0165\u0141\xD7\u010D\xE1\xED\xF3\xFA\u0104\u0105\u017D\u017E\u0118\u0119\xAC\u017A\u010C\u015F\xAB\xBB\u2591\u2592\u2593\u2502\u2524\xC1\xC2\u011A\u015E\u2563\u2551\u2557\u255D\u017B\u017C\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u0102\u0103\u255A\u2554\u2569\u2566\u2560\u2550\u256C\xA4\u0111\u0110\u010E\xCB\u010F\u0147\xCD\xCE\u011B\u2518\u250C\u2588\u2584\u0162\u016E\u2580\xD3\xDF\xD4\u0143\u0144\u0148\u0160\u0161\u0154\xDA\u0155\u0170\xFD\xDD\u0163\xB4\xAD\u02DD\u02DB\u02C7\u02D8\xA7\xF7\xB8\xB0\xA8\u02D9\u0171\u0158\u0159\u25A0\xA0"},ibm852:"cp852",csibm852:"cp852",cp855:{type:"_sbcs",chars:"\u0452\u0402\u0453\u0403\u0451\u0401\u0454\u0404\u0455\u0405\u0456\u0406\u0457\u0407\u0458\u0408\u0459\u0409\u045A\u040A\u045B\u040B\u045C\u040C\u045E\u040E\u045F\u040F\u044E\u042E\u044A\u042A\u0430\u0410\u0431\u0411\u0446\u0426\u0434\u0414\u0435\u0415\u0444\u0424\u0433\u0413\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u0445\u0425\u0438\u0418\u2563\u2551\u2557\u255D\u0439\u0419\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u043A\u041A\u255A\u2554\u2569\u2566\u2560\u2550\u256C\xA4\u043B\u041B\u043C\u041C\u043D\u041D\u043E\u041E\u043F\u2518\u250C\u2588\u2584\u041F\u044F\u2580\u042F\u0440\u0420\u0441\u0421\u0442\u0422\u0443\u0423\u0436\u0416\u0432\u0412\u044C\u042C\u2116\xAD\u044B\u042B\u0437\u0417\u0448\u0428\u044D\u042D\u0449\u0429\u0447\u0427\xA7\u25A0\xA0"},ibm855:"cp855",csibm855:"cp855",cp856:{type:"_sbcs",chars:"\u05D0\u05D1\u05D2\u05D3\u05D4\u05D5\u05D6\u05D7\u05D8\u05D9\u05DA\u05DB\u05DC\u05DD\u05DE\u05DF\u05E0\u05E1\u05E2\u05E3\u05E4\u05E5\u05E6\u05E7\u05E8\u05E9\u05EA\uFFFD\xA3\uFFFD\xD7\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\xAE\xAC\xBD\xBC\uFFFD\xAB\xBB\u2591\u2592\u2593\u2502\u2524\uFFFD\uFFFD\uFFFD\xA9\u2563\u2551\u2557\u255D\xA2\xA5\u2510\u2514\u2534\u252C\u251C\u2500\u253C\uFFFD\uFFFD\u255A\u2554\u2569\u2566\u2560\u2550\u256C\xA4\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u2518\u250C\u2588\u2584\xA6\uFFFD\u2580\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\xB5\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\xAF\xB4\xAD\xB1\u2017\xBE\xB6\xA7\xF7\xB8\xB0\xA8\xB7\xB9\xB3\xB2\u25A0\xA0"},ibm856:"cp856",csibm856:"cp856",cp857:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\u0131\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\u0130\xD6\xDC\xF8\xA3\xD8\u015E\u015F\xE1\xED\xF3\xFA\xF1\xD1\u011E\u011F\xBF\xAE\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\xC1\xC2\xC0\xA9\u2563\u2551\u2557\u255D\xA2\xA5\u2510\u2514\u2534\u252C\u251C\u2500\u253C\xE3\xC3\u255A\u2554\u2569\u2566\u2560\u2550\u256C\xA4\xBA\xAA\xCA\xCB\xC8\uFFFD\xCD\xCE\xCF\u2518\u250C\u2588\u2584\xA6\xCC\u2580\xD3\xDF\xD4\xD2\xF5\xD5\xB5\uFFFD\xD7\xDA\xDB\xD9\xEC\xFF\xAF\xB4\xAD\xB1\uFFFD\xBE\xB6\xA7\xF7\xB8\xB0\xA8\xB7\xB9\xB3\xB2\u25A0\xA0"},ibm857:"cp857",csibm857:"cp857",cp858:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\xD7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\xAE\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\xC1\xC2\xC0\xA9\u2563\u2551\u2557\u255D\xA2\xA5\u2510\u2514\u2534\u252C\u251C\u2500\u253C\xE3\xC3\u255A\u2554\u2569\u2566\u2560\u2550\u256C\xA4\xF0\xD0\xCA\xCB\xC8\u20AC\xCD\xCE\xCF\u2518\u250C\u2588\u2584\xA6\xCC\u2580\xD3\xDF\xD4\xD2\xF5\xD5\xB5\xFE\xDE\xDA\xDB\xD9\xFD\xDD\xAF\xB4\xAD\xB1\u2017\xBE\xB6\xA7\xF7\xB8\xB0\xA8\xB7\xB9\xB3\xB2\u25A0\xA0"},ibm858:"cp858",csibm858:"cp858",cp860:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE3\xE0\xC1\xE7\xEA\xCA\xE8\xCD\xD4\xEC\xC3\xC2\xC9\xC0\xC8\xF4\xF5\xF2\xDA\xF9\xCC\xD5\xDC\xA2\xA3\xD9\u20A7\xD3\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\xD2\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm860:"cp860",csibm860:"cp860",cp861:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xD0\xF0\xDE\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xFE\xFB\xDD\xFD\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xC1\xCD\xD3\xDA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm861:"cp861",csibm861:"cp861",cp862:{type:"_sbcs",chars:"\u05D0\u05D1\u05D2\u05D3\u05D4\u05D5\u05D6\u05D7\u05D8\u05D9\u05DA\u05DB\u05DC\u05DD\u05DE\u05DF\u05E0\u05E1\u05E2\u05E3\u05E4\u05E5\u05E6\u05E7\u05E8\u05E9\u05EA\xA2\xA3\xA5\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm862:"cp862",csibm862:"cp862",cp863:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xC2\xE0\xB6\xE7\xEA\xEB\xE8\xEF\xEE\u2017\xC0\xA7\xC9\xC8\xCA\xF4\xCB\xCF\xFB\xF9\xA4\xD4\xDC\xA2\xA3\xD9\xDB\u0192\xA6\xB4\xF3\xFA\xA8\xB8\xB3\xAF\xCE\u2310\xAC\xBD\xBC\xBE\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm863:"cp863",csibm863:"cp863",cp864:{type:"_sbcs",chars:`\0\x07\b
  3357. \v\f\r\x1B !"#$\u066A&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xB0\xB7\u2219\u221A\u2592\u2500\u2502\u253C\u2524\u252C\u251C\u2534\u2510\u250C\u2514\u2518\u03B2\u221E\u03C6\xB1\xBD\xBC\u2248\xAB\xBB\uFEF7\uFEF8\uFFFD\uFFFD\uFEFB\uFEFC\uFFFD\xA0\xAD\uFE82\xA3\xA4\uFE84\uFFFD\uFFFD\uFE8E\uFE8F\uFE95\uFE99\u060C\uFE9D\uFEA1\uFEA5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFED1\u061B\uFEB1\uFEB5\uFEB9\u061F\xA2\uFE80\uFE81\uFE83\uFE85\uFECA\uFE8B\uFE8D\uFE91\uFE93\uFE97\uFE9B\uFE9F\uFEA3\uFEA7\uFEA9\uFEAB\uFEAD\uFEAF\uFEB3\uFEB7\uFEBB\uFEBF\uFEC1\uFEC5\uFECB\uFECF\xA6\xAC\xF7\xD7\uFEC9\u0640\uFED3\uFED7\uFEDB\uFEDF\uFEE3\uFEE7\uFEEB\uFEED\uFEEF\uFEF3\uFEBD\uFECC\uFECE\uFECD\uFEE1\uFE7D\u0651\uFEE5\uFEE9\uFEEC\uFEF0\uFEF2\uFED0\uFED5\uFEF5\uFEF6\uFEDD\uFED9\uFEF1\u25A0\uFFFD`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xA4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\xA4\u25A0\xA0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0386\uFFFD\xB7\xAC\xA6\u2018\u2019\u0388\u2015\u0389\u038A\u03AA\u038C\uFFFD\uFFFD\u038E\u03AB\xA9\u038F\xB2\xB3\u03AC\xA3\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03CD\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xBD\u0398\u0399\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u039A\u039B\u039C\u039D\u2563\u2551\u2557\u255D\u039E\u039F\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u03A0\u03A1\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u2518\u250C\u2588\u2584\u03B4\u03B5\u2580\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u0384\xAD\xB1\u03C5\u03C6\u03C7\xA7\u03C8\u0385\xB0\xA8\u03C9\u03CB\u03B0\u03CE\u25A0\xA0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\u203E\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0160\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\u017D\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0161\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\u017E\xFF"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\uFE88\xD7\xF7\uF8F6\uF8F5\uF8F4\uF8F7\uFE71\x88\u25A0\u2502\u2500\u2510\u250C\u2514\u2518\uFE79\uFE7B\uFE7D\uFE7F\uFE77\uFE8A\uFEF0\uFEF3\uFEF2\uFECE\uFECF\uFED0\uFEF6\uFEF8\uFEFA\uFEFC\xA0\uF8FA\uF8F9\uF8F8\xA4\uF8FB\uFE8B\uFE91\uFE97\uFE9B\uFE9F\uFEA3\u060C\xAD\uFEA7\uFEB3\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFEB7\u061B\uFEBB\uFEBF\uFECA\u061F\uFECB\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\uFEC7\u0639\u063A\uFECC\uFE82\uFE84\uFE8E\uFED3\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\uFED7\uFEDB\uFEDF\uF8FC\uFEF5\uFEF7\uFEF9\uFEFB\uFEE3\uFEE7\uFEEC\uFEE9\uFFFD"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0401\u0402\u0490\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\xAD\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u2116\u0451\u0452\u0491\u0454\u0455\u0456\u0457\u0458\u0459\u045A\u045B\u045C\xA7\u045E\u045F"},ibm1124:"cp1124",csibm1124:"cp1124",cp1125:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0490\u0491\u0404\u0454\u0406\u0456\u0407\u0457\xB7\u221A\u2116\xA4\u25A0\xA0"},ibm1125:"cp1125",csibm1125:"cp1125",cp1129:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\u0153\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\u0178\xB5\xB6\xB7\u0152\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\u0102\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\u0300\xCD\xCE\xCF\u0110\xD1\u0309\xD3\xD4\u01A0\xD6\xD7\xD8\xD9\xDA\xDB\xDC\u01AF\u0303\xDF\xE0\xE1\xE2\u0103\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\u0301\xED\xEE\xEF\u0111\xF1\u0323\xF3\xF4\u01A1\xF6\xF7\xF8\xF9\xFA\xFB\xFC\u01B0\u20AB\xFF"},ibm1129:"cp1129",csibm1129:"cp1129",cp1133:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0E81\u0E82\u0E84\u0E87\u0E88\u0EAA\u0E8A\u0E8D\u0E94\u0E95\u0E96\u0E97\u0E99\u0E9A\u0E9B\u0E9C\u0E9D\u0E9E\u0E9F\u0EA1\u0EA2\u0EA3\u0EA5\u0EA7\u0EAB\u0EAD\u0EAE\uFFFD\uFFFD\uFFFD\u0EAF\u0EB0\u0EB2\u0EB3\u0EB4\u0EB5\u0EB6\u0EB7\u0EB8\u0EB9\u0EBC\u0EB1\u0EBB\u0EBD\uFFFD\uFFFD\uFFFD\u0EC0\u0EC1\u0EC2\u0EC3\u0EC4\u0EC8\u0EC9\u0ECA\u0ECB\u0ECC\u0ECD\u0EC6\uFFFD\u0EDC\u0EDD\u20AD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0ED0\u0ED1\u0ED2\u0ED3\u0ED4\u0ED5\u0ED6\u0ED7\u0ED8\u0ED9\uFFFD\uFFFD\xA2\xAC\xA6\uFFFD"},ibm1133:"cp1133",csibm1133:"cp1133",cp1161:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E48\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\u0E49\u0E4A\u0E4B\u20AC\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\xA2\xAC\xA6\xA0"},ibm1161:"cp1161",csibm1161:"cp1161",cp1162:{type:"_sbcs",chars:"\u20AC\x81\x82\x83\x84\u2026\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"},ibm1162:"cp1162",csibm1162:"cp1162",cp1163:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\u20AC\xA5\xA6\xA7\u0153\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\u0178\xB5\xB6\xB7\u0152\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\u0102\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\u0300\xCD\xCE\xCF\u0110\xD1\u0309\xD3\xD4\u01A0\xD6\xD7\xD8\xD9\xDA\xDB\xDC\u01AF\u0303\xDF\xE0\xE1\xE2\u0103\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\u0301\xED\xEE\xEF\u0111\xF1\u0323\xF3\xF4\u01A1\xF6\xF7\xF8\xF9\xFA\xFB\xFC\u01B0\u20AB\xFF"},ibm1163:"cp1163",csibm1163:"cp1163",maccroatian:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\u0160\u2122\xB4\xA8\u2260\u017D\xD8\u221E\xB1\u2264\u2265\u2206\xB5\u2202\u2211\u220F\u0161\u222B\xAA\xBA\u2126\u017E\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u0106\xAB\u010C\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u0110\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\uFFFD\xA9\u2044\xA4\u2039\u203A\xC6\xBB\u2013\xB7\u201A\u201E\u2030\xC2\u0107\xC1\u010D\xC8\xCD\xCE\xCF\xCC\xD3\xD4\u0111\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u03C0\xCB\u02DA\xB8\xCA\xE6\u02C7"},maccyrillic:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u2020\xB0\xA2\xA3\xA7\u2022\xB6\u0406\xAE\xA9\u2122\u0402\u0452\u2260\u0403\u0453\u221E\xB1\u2264\u2265\u0456\xB5\u2202\u0408\u0404\u0454\u0407\u0457\u0409\u0459\u040A\u045A\u0458\u0405\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\u040B\u045B\u040C\u045C\u0455\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u201E\u040E\u045E\u040F\u045F\u2116\u0401\u0451\u044F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\xA4"},macgreek:{type:"_sbcs",chars:"\xC4\xB9\xB2\xC9\xB3\xD6\xDC\u0385\xE0\xE2\xE4\u0384\xA8\xE7\xE9\xE8\xEA\xEB\xA3\u2122\xEE\xEF\u2022\xBD\u2030\xF4\xF6\xA6\xAD\xF9\xFB\xFC\u2020\u0393\u0394\u0398\u039B\u039E\u03A0\xDF\xAE\xA9\u03A3\u03AA\xA7\u2260\xB0\u0387\u0391\xB1\u2264\u2265\xA5\u0392\u0395\u0396\u0397\u0399\u039A\u039C\u03A6\u03AB\u03A8\u03A9\u03AC\u039D\xAC\u039F\u03A1\u2248\u03A4\xAB\xBB\u2026\xA0\u03A5\u03A7\u0386\u0388\u0153\u2013\u2015\u201C\u201D\u2018\u2019\xF7\u0389\u038A\u038C\u038E\u03AD\u03AE\u03AF\u03CC\u038F\u03CD\u03B1\u03B2\u03C8\u03B4\u03B5\u03C6\u03B3\u03B7\u03B9\u03BE\u03BA\u03BB\u03BC\u03BD\u03BF\u03C0\u03CE\u03C1\u03C3\u03C4\u03B8\u03C9\u03C2\u03C7\u03C5\u03B6\u03CA\u03CB\u0390\u03B0\uFFFD"},maciceland:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\xDD\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\xD0\xF0\xDE\xFE\xFD\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},macroman:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},macromania:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\u0102\u015E\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\u0103\u015F\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\u0162\u0163\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},macthai:{type:"_sbcs",chars:"\xAB\xBB\u2026\uF88C\uF88F\uF892\uF895\uF898\uF88B\uF88E\uF891\uF894\uF897\u201C\u201D\uF899\uFFFD\u2022\uF884\uF889\uF885\uF886\uF887\uF888\uF88A\uF88D\uF890\uF893\uF896\u2018\u2019\uFFFD\xA0\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFEFF\u200B\u2013\u2014\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u2122\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\xAE\xA9\uFFFD\uFFFD\uFFFD\uFFFD"},macturkish:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u011E\u011F\u0130\u0131\u015E\u015F\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\uFFFD\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},macukraine:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u2020\xB0\u0490\xA3\xA7\u2022\xB6\u0406\xAE\xA9\u2122\u0402\u0452\u2260\u0403\u0453\u221E\xB1\u2264\u2265\u0456\xB5\u0491\u0408\u0404\u0454\u0407\u0457\u0409\u0459\u040A\u045A\u0458\u0405\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\u040B\u045B\u040C\u045C\u0455\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u201E\u040E\u045E\u040F\u045F\u2116\u0401\u0451\u044F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\xA4"},koi8r:{type:"_sbcs",chars:"\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2580\u2584\u2588\u258C\u2590\u2591\u2592\u2593\u2320\u25A0\u2219\u221A\u2248\u2264\u2265\xA0\u2321\xB0\xB2\xB7\xF7\u2550\u2551\u2552\u0451\u2553\u2554\u2555\u2556\u2557\u2558\u2559\u255A\u255B\u255C\u255D\u255E\u255F\u2560\u2561\u0401\u2562\u2563\u2564\u2565\u2566\u2567\u2568\u2569\u256A\u256B\u256C\xA9\u044E\u0430\u0431\u0446\u0434\u0435\u0444\u0433\u0445\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u044F\u0440\u0441\u0442\u0443\u0436\u0432\u044C\u044B\u0437\u0448\u044D\u0449\u0447\u044A\u042E\u0410\u0411\u0426\u0414\u0415\u0424\u0413\u0425\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u042F\u0420\u0421\u0422\u0423\u0416\u0412\u042C\u042B\u0417\u0428\u042D\u0429\u0427\u042A"},koi8u:{type:"_sbcs",chars:"\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2580\u2584\u2588\u258C\u2590\u2591\u2592\u2593\u2320\u25A0\u2219\u221A\u2248\u2264\u2265\xA0\u2321\xB0\xB2\xB7\xF7\u2550\u2551\u2552\u0451\u0454\u2554\u0456\u0457\u2557\u2558\u2559\u255A\u255B\u0491\u255D\u255E\u255F\u2560\u2561\u0401\u0404\u2563\u0406\u0407\u2566\u2567\u2568\u2569\u256A\u0490\u256C\xA9\u044E\u0430\u0431\u0446\u0434\u0435\u0444\u0433\u0445\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u044F\u0440\u0441\u0442\u0443\u0436\u0432\u044C\u044B\u0437\u0448\u044D\u0449\u0447\u044A\u042E\u0410\u0411\u0426\u0414\u0415\u0424\u0413\u0425\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u042F\u0420\u0421\u0422\u0423\u0416\u0412\u042C\u042B\u0417\u0428\u042D\u0429\u0427\u042A"},koi8ru:{type:"_sbcs",chars:"\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2580\u2584\u2588\u258C\u2590\u2591\u2592\u2593\u2320\u25A0\u2219\u221A\u2248\u2264\u2265\xA0\u2321\xB0\xB2\xB7\xF7\u2550\u2551\u2552\u0451\u0454\u2554\u0456\u0457\u2557\u2558\u2559\u255A\u255B\u0491\u045E\u255E\u255F\u2560\u2561\u0401\u0404\u2563\u0406\u0407\u2566\u2567\u2568\u2569\u256A\u0490\u040E\xA9\u044E\u0430\u0431\u0446\u0434\u0435\u0444\u0433\u0445\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u044F\u0440\u0441\u0442\u0443\u0436\u0432\u044C\u044B\u0437\u0448\u044D\u0449\u0447\u044A\u042E\u0410\u0411\u0426\u0414\u0415\u0424\u0413\u0425\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u042F\u0420\u0421\u0422\u0423\u0416\u0412\u042C\u042B\u0417\u0428\u042D\u0429\u0427\u042A"},koi8t:{type:"_sbcs",chars:"\u049B\u0493\u201A\u0492\u201E\u2026\u2020\u2021\uFFFD\u2030\u04B3\u2039\u04B2\u04B7\u04B6\uFFFD\u049A\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\u2122\uFFFD\u203A\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u04EF\u04EE\u0451\xA4\u04E3\xA6\xA7\uFFFD\uFFFD\uFFFD\xAB\xAC\xAD\xAE\uFFFD\xB0\xB1\xB2\u0401\uFFFD\u04E2\xB6\xB7\uFFFD\u2116\uFFFD\xBB\uFFFD\uFFFD\uFFFD\xA9\u044E\u0430\u0431\u0446\u0434\u0435\u0444\u0433\u0445\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u044F\u0440\u0441\u0442\u0443\u0436\u0432\u044C\u044B\u0437\u0448\u044D\u0449\u0447\u044A\u042E\u0410\u0411\u0426\u0414\u0415\u0424\u0413\u0425\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u042F\u0420\u0421\u0422\u0423\u0416\u0412\u042C\u042B\u0417\u0428\u042D\u0429\u0427\u042A"},armscii8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\uFFFD\u0587\u0589)(\xBB\xAB\u2014.\u055D,-\u058A\u2026\u055C\u055B\u055E\u0531\u0561\u0532\u0562\u0533\u0563\u0534\u0564\u0535\u0565\u0536\u0566\u0537\u0567\u0538\u0568\u0539\u0569\u053A\u056A\u053B\u056B\u053C\u056C\u053D\u056D\u053E\u056E\u053F\u056F\u0540\u0570\u0541\u0571\u0542\u0572\u0543\u0573\u0544\u0574\u0545\u0575\u0546\u0576\u0547\u0577\u0548\u0578\u0549\u0579\u054A\u057A\u054B\u057B\u054C\u057C\u054D\u057D\u054E\u057E\u054F\u057F\u0550\u0580\u0551\u0581\u0552\u0582\u0553\u0583\u0554\u0584\u0555\u0585\u0556\u0586\u055A\uFFFD"},rk1048:{type:"_sbcs",chars:"\u0402\u0403\u201A\u0453\u201E\u2026\u2020\u2021\u20AC\u2030\u0409\u2039\u040A\u049A\u04BA\u040F\u0452\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\u2122\u0459\u203A\u045A\u049B\u04BB\u045F\xA0\u04B0\u04B1\u04D8\xA4\u04E8\xA6\xA7\u0401\xA9\u0492\xAB\xAC\xAD\xAE\u04AE\xB0\xB1\u0406\u0456\u04E9\xB5\xB6\xB7\u0451\u2116\u0493\xBB\u04D9\u04A2\u04A3\u04AF\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},tcvn:{type:"_sbcs",chars:`\0\xDA\u1EE4\u1EEA\u1EEC\u1EEE\x07\b
  3358. \v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xC0\u1EA2\xC3\xC1\u1EA0\u1EB6\u1EAC\xC8\u1EBA\u1EBC\xC9\u1EB8\u1EC6\xCC\u1EC8\u0128\xCD\u1ECA\xD2\u1ECE\xD5\xD3\u1ECC\u1ED8\u1EDC\u1EDE\u1EE0\u1EDA\u1EE2\xD9\u1EE6\u0168\xA0\u0102\xC2\xCA\xD4\u01A0\u01AF\u0110\u0103\xE2\xEA\xF4\u01A1\u01B0\u0111\u1EB0\u0300\u0309\u0303\u0301\u0323\xE0\u1EA3\xE3\xE1\u1EA1\u1EB2\u1EB1\u1EB3\u1EB5\u1EAF\u1EB4\u1EAE\u1EA6\u1EA8\u1EAA\u1EA4\u1EC0\u1EB7\u1EA7\u1EA9\u1EAB\u1EA5\u1EAD\xE8\u1EC2\u1EBB\u1EBD\xE9\u1EB9\u1EC1\u1EC3\u1EC5\u1EBF\u1EC7\xEC\u1EC9\u1EC4\u1EBE\u1ED2\u0129\xED\u1ECB\xF2\u1ED4\u1ECF\xF5\xF3\u1ECD\u1ED3\u1ED5\u1ED7\u1ED1\u1ED9\u1EDD\u1EDF\u1EE1\u1EDB\u1EE3\xF9\u1ED6\u1EE7\u0169\xFA\u1EE5\u1EEB\u1EED\u1EEF\u1EE9\u1EF1\u1EF3\u1EF7\u1EF9\xFD\u1EF5\u1ED0`},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10EF\u10F0\u10F1\u10F2\u10F3\u10F4\u10F5\u10F6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10F1\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10F2\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10F3\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10F4\u10EF\u10F0\u10F5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04EE\u0493\u201E\u2026\u04B6\u04AE\u04B2\u04AF\u04A0\u04E2\u04A2\u049A\u04BA\u04B8\u0497\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u04B3\u04B7\u04A1\u04E3\u04A3\u049B\u04BB\u04B9\xA0\u040E\u045E\u0408\u04E8\u0498\u04B0\xA7\u0401\xA9\u04D8\xAB\xAC\u04EF\xAE\u049C\xB0\u04B1\u0406\u0456\u0499\u04E9\xB6\xB7\u0451\u2116\u04D9\xBB\u0458\u04AA\u04AB\u049D\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},viscii:{type:"_sbcs",chars:`\0\u1EB2\u1EB4\u1EAA\x07\b
  3359. \v\f\r\u1EF6\u1EF8\x1B\u1EF4 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\u1EA0\u1EAE\u1EB0\u1EB6\u1EA4\u1EA6\u1EA8\u1EAC\u1EBC\u1EB8\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EE2\u1EDA\u1EDC\u1EDE\u1ECA\u1ECE\u1ECC\u1EC8\u1EE6\u0168\u1EE4\u1EF2\xD5\u1EAF\u1EB1\u1EB7\u1EA5\u1EA7\u1EA9\u1EAD\u1EBD\u1EB9\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1ED1\u1ED3\u1ED5\u1ED7\u1EE0\u01A0\u1ED9\u1EDD\u1EDF\u1ECB\u1EF0\u1EE8\u1EEA\u1EEC\u01A1\u1EDB\u01AF\xC0\xC1\xC2\xC3\u1EA2\u0102\u1EB3\u1EB5\xC8\xC9\xCA\u1EBA\xCC\xCD\u0128\u1EF3\u0110\u1EE9\xD2\xD3\xD4\u1EA1\u1EF7\u1EEB\u1EED\xD9\xDA\u1EF9\u1EF5\xDD\u1EE1\u01B0\xE0\xE1\xE2\xE3\u1EA3\u0103\u1EEF\u1EAB\xE8\xE9\xEA\u1EBB\xEC\xED\u0129\u1EC9\u0111\u1EF1\xF2\xF3\xF4\xF5\u1ECF\u1ECD\u1EE5\xF9\xFA\u0169\u1EE7\xFD\u1EE3\u1EEE`},iso646cn:{type:"_sbcs",chars:`\0\x07\b
  3360. \v\f\r\x1B !"#\xA5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},iso646jp:{type:"_sbcs",chars:`\0\x07\b
  3361. \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}),sbcsDataGenerated}var dbcsCodec={},hasRequiredDbcsCodec;function requireDbcsCodec(){if(hasRequiredDbcsCodec)return dbcsCodec;hasRequiredDbcsCodec=1;var t=safer_1.Buffer;dbcsCodec._dbcs=v;for(var e=-1,r=-2,n=-10,o=-1e3,s=new Array(256),c=-1,l=0;l<256;l++)s[l]=e;function v(b,E){if(this.encodingName=b.encodingName,!b)throw new Error("DBCS codec is called without the data.");if(!b.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var I=b.table();this.decodeTables=[],this.decodeTables[0]=s.slice(0),this.decodeTableSeq=[];for(var O=0;O<I.length;O++)this._addDecodeChunk(I[O]);if(typeof b.gb18030=="function"){this.gb18030=b.gb18030();var N=this.decodeTables.length;this.decodeTables.push(s.slice(0));var A=this.decodeTables.length;this.decodeTables.push(s.slice(0));for(var z=this.decodeTables[0],O=129;O<=254;O++)for(var G=this.decodeTables[o-z[O]],V=48;V<=57;V++){if(G[V]===e)G[V]=o-N;else if(G[V]>o)throw new Error("gb18030 decode tables conflict at byte 2");for(var ne=this.decodeTables[o-G[V]],W=129;W<=254;W++){if(ne[W]===e)ne[W]=o-A;else{if(ne[W]===o-A)continue;if(ne[W]>o)throw new Error("gb18030 decode tables conflict at byte 3")}for(var B=this.decodeTables[o-ne[W]],q=48;q<=57;q++)B[q]===e&&(B[q]=r)}}}this.defaultCharUnicode=E.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var D={};if(b.encodeSkipVals)for(var O=0;O<b.encodeSkipVals.length;O++){var F=b.encodeSkipVals[O];if(typeof F=="number")D[F]=!0;else for(var V=F.from;V<=F.to;V++)D[V]=!0}if(this._fillEncodeTable(0,0,D),b.encodeAdd)for(var re in b.encodeAdd)Object.prototype.hasOwnProperty.call(b.encodeAdd,re)&&this._setEncodeChar(re.charCodeAt(0),b.encodeAdd[re]);this.defCharSB=this.encodeTable[0][E.defaultCharSingleByte.charCodeAt(0)],this.defCharSB===e&&(this.defCharSB=this.encodeTable[0]["?"]),this.defCharSB===e&&(this.defCharSB="?".charCodeAt(0))}v.prototype.encoder=x,v.prototype.decoder=w,v.prototype._getDecodeTrieNode=function(b){for(var E=[];b>0;b>>>=8)E.push(b&255);E.length==0&&E.push(0);for(var I=this.decodeTables[0],O=E.length-1;O>0;O--){var N=I[E[O]];if(N==e)I[E[O]]=o-this.decodeTables.length,this.decodeTables.push(I=s.slice(0));else if(N<=o)I=this.decodeTables[o-N];else throw new Error("Overwrite byte in "+this.encodingName+", addr: "+b.toString(16))}return I},v.prototype._addDecodeChunk=function(b){var E=parseInt(b[0],16),I=this._getDecodeTrieNode(E);E=E&255;for(var O=1;O<b.length;O++){var N=b[O];if(typeof N=="string")for(var A=0;A<N.length;){var z=N.charCodeAt(A++);if(55296<=z&&z<56320){var G=N.charCodeAt(A++);if(56320<=G&&G<57344)I[E++]=65536+(z-55296)*1024+(G-56320);else throw new Error("Incorrect surrogate pair in "+this.encodingName+" at chunk "+b[0])}else if(4080<z&&z<=4095){for(var V=4095-z+2,ne=[],W=0;W<V;W++)ne.push(N.charCodeAt(A++));I[E++]=n-this.decodeTableSeq.length,this.decodeTableSeq.push(ne)}else I[E++]=z}else if(typeof N=="number")for(var B=I[E-1]+1,A=0;A<N;A++)I[E++]=B++;else throw new Error("Incorrect type '"+_typeof$2(N)+"' given in "+this.encodingName+" at chunk "+b[0])}if(E>255)throw new Error("Incorrect chunk in "+this.encodingName+" at addr "+b[0]+": too long"+E)},v.prototype._getEncodeBucket=function(b){var E=b>>8;return this.encodeTable[E]===void 0&&(this.encodeTable[E]=s.slice(0)),this.encodeTable[E]},v.prototype._setEncodeChar=function(b,E){var I=this._getEncodeBucket(b),O=b&255;I[O]<=n?this.encodeTableSeq[n-I[O]][c]=E:I[O]==e&&(I[O]=E)},v.prototype._setEncodeSequence=function(b,E){var I=b[0],O=this._getEncodeBucket(I),N=I&255,A;O[N]<=n?A=this.encodeTableSeq[n-O[N]]:(A={},O[N]!==e&&(A[c]=O[N]),O[N]=n-this.encodeTableSeq.length,this.encodeTableSeq.push(A));for(var z=1;z<b.length-1;z++){var G=A[I];_typeof$2(G)==="object"?A=G:(A=A[I]={},G!==void 0&&(A[c]=G))}I=b[b.length-1],A[I]=E},v.prototype._fillEncodeTable=function(b,E,I){for(var O=this.decodeTables[b],N=!1,A={},z=0;z<256;z++){var G=O[z],V=E+z;if(!I[V])if(G>=0)this._setEncodeChar(G,V),N=!0;else if(G<=o){var ne=o-G;if(!A[ne]){var W=V<<8>>>0;this._fillEncodeTable(ne,W,I)?N=!0:A[ne]=!0}}else G<=n&&(this._setEncodeSequence(this.decodeTableSeq[n-G],V),N=!0)}return N};function x(b,E){this.leadSurrogate=-1,this.seqObj=void 0,this.encodeTable=E.encodeTable,this.encodeTableSeq=E.encodeTableSeq,this.defaultCharSingleByte=E.defCharSB,this.gb18030=E.gb18030}x.prototype.write=function(b){for(var E=t.alloc(b.length*(this.gb18030?4:3)),I=this.leadSurrogate,O=this.seqObj,N=-1,A=0,z=0;;){if(N===-1){if(A==b.length)break;var G=b.charCodeAt(A++)}else{var G=N;N=-1}if(55296<=G&&G<57344)if(G<56320)if(I===-1){I=G;continue}else I=G,G=e;else I!==-1?(G=65536+(I-55296)*1024+(G-56320),I=-1):G=e;else I!==-1&&(N=G,G=e,I=-1);var V=e;if(O!==void 0&&G!=e){var ne=O[G];if(_typeof$2(ne)==="object"){O=ne;continue}else typeof ne=="number"?V=ne:ne==null&&(ne=O[c],ne!==void 0&&(V=ne,N=G));O=void 0}else if(G>=0){var W=this.encodeTable[G>>8];if(W!==void 0&&(V=W[G&255]),V<=n){O=this.encodeTableSeq[n-V];continue}if(V==e&&this.gb18030){var B=_(this.gb18030.uChars,G);if(B!=-1){var V=this.gb18030.gbChars[B]+(G-this.gb18030.uChars[B]);E[z++]=129+Math.floor(V/12600),V=V%12600,E[z++]=48+Math.floor(V/1260),V=V%1260,E[z++]=129+Math.floor(V/10),V=V%10,E[z++]=48+V;continue}}}V===e&&(V=this.defaultCharSingleByte),V<256?E[z++]=V:V<65536?(E[z++]=V>>8,E[z++]=V&255):V<16777216?(E[z++]=V>>16,E[z++]=V>>8&255,E[z++]=V&255):(E[z++]=V>>>24,E[z++]=V>>>16&255,E[z++]=V>>>8&255,E[z++]=V&255)}return this.seqObj=O,this.leadSurrogate=I,E.slice(0,z)},x.prototype.end=function(){if(!(this.leadSurrogate===-1&&this.seqObj===void 0)){var b=t.alloc(10),E=0;if(this.seqObj){var I=this.seqObj[c];I!==void 0&&(I<256?b[E++]=I:(b[E++]=I>>8,b[E++]=I&255)),this.seqObj=void 0}return this.leadSurrogate!==-1&&(b[E++]=this.defaultCharSingleByte,this.leadSurrogate=-1),b.slice(0,E)}},x.prototype.findIdx=_;function w(b,E){this.nodeIdx=0,this.prevBytes=[],this.decodeTables=E.decodeTables,this.decodeTableSeq=E.decodeTableSeq,this.defaultCharUnicode=E.defaultCharUnicode,this.gb18030=E.gb18030}w.prototype.write=function(b){for(var E=t.alloc(b.length*2),I=this.nodeIdx,O=this.prevBytes,N=this.prevBytes.length,A=-this.prevBytes.length,z,G=0,V=0;G<b.length;G++){var ne=G>=0?b[G]:O[G+N],z=this.decodeTables[I][ne];if(!(z>=0))if(z===e)z=this.defaultCharUnicode.charCodeAt(0),G=A;else if(z===r){if(G>=3)var W=(b[G-3]-129)*12600+(b[G-2]-48)*1260+(b[G-1]-129)*10+(ne-48);else var W=(O[G-3+N]-129)*12600+((G-2>=0?b[G-2]:O[G-2+N])-48)*1260+((G-1>=0?b[G-1]:O[G-1+N])-129)*10+(ne-48);var B=_(this.gb18030.gbChars,W);z=this.gb18030.uChars[B]+W-this.gb18030.gbChars[B]}else if(z<=o){I=o-z;continue}else if(z<=n){for(var q=this.decodeTableSeq[n-z],D=0;D<q.length-1;D++)z=q[D],E[V++]=z&255,E[V++]=z>>8;z=q[q.length-1]}else throw new Error("iconv-lite internal error: invalid decoding table value "+z+" at "+I+"/"+ne);if(z>=65536){z-=65536;var F=55296|z>>10;E[V++]=F&255,E[V++]=F>>8,z=56320|z&1023}E[V++]=z&255,E[V++]=z>>8,I=0,A=G+1}return this.nodeIdx=I,this.prevBytes=A>=0?Array.prototype.slice.call(b,A):O.slice(A+N).concat(Array.prototype.slice.call(b)),E.slice(0,V).toString("ucs2")},w.prototype.end=function(){for(var b="";this.prevBytes.length>0;){b+=this.defaultCharUnicode;var E=this.prevBytes.slice(1);this.prevBytes=[],this.nodeIdx=0,E.length>0&&(b+=this.write(E))}return this.prevBytes=[],this.nodeIdx=0,b};function _(b,E){if(b[0]>E)return-1;for(var I=0,O=b.length;I<O-1;){var N=I+(O-I+1>>1);b[N]<=E?I=N:O=N}return I}return dbcsCodec}const require$$0=[["0","\0",128],["a1","\uFF61",62],["8140","\u3000\u3001\u3002\uFF0C\uFF0E\u30FB\uFF1A\uFF1B\uFF1F\uFF01\u309B\u309C\xB4\uFF40\xA8\uFF3E\uFFE3\uFF3F\u30FD\u30FE\u309D\u309E\u3003\u4EDD\u3005\u3006\u3007\u30FC\u2015\u2010\uFF0F\uFF3C\uFF5E\u2225\uFF5C\u2026\u2025\u2018\u2019\u201C\u201D\uFF08\uFF09\u3014\u3015\uFF3B\uFF3D\uFF5B\uFF5D\u3008",9,"\uFF0B\uFF0D\xB1\xD7"],["8180","\xF7\uFF1D\u2260\uFF1C\uFF1E\u2266\u2267\u221E\u2234\u2642\u2640\xB0\u2032\u2033\u2103\uFFE5\uFF04\uFFE0\uFFE1\uFF05\uFF03\uFF06\uFF0A\uFF20\xA7\u2606\u2605\u25CB\u25CF\u25CE\u25C7\u25C6\u25A1\u25A0\u25B3\u25B2\u25BD\u25BC\u203B\u3012\u2192\u2190\u2191\u2193\u3013"],["81b8","\u2208\u220B\u2286\u2287\u2282\u2283\u222A\u2229"],["81c8","\u2227\u2228\uFFE2\u21D2\u21D4\u2200\u2203"],["81da","\u2220\u22A5\u2312\u2202\u2207\u2261\u2252\u226A\u226B\u221A\u223D\u221D\u2235\u222B\u222C"],["81f0","\u212B\u2030\u266F\u266D\u266A\u2020\u2021\xB6"],["81fc","\u25EF"],["824f","\uFF10",9],["8260","\uFF21",25],["8281","\uFF41",25],["829f","\u3041",82],["8340","\u30A1",62],["8380","\u30E0",22],["839f","\u0391",16,"\u03A3",6],["83bf","\u03B1",16,"\u03C3",6],["8440","\u0410",5,"\u0401\u0416",25],["8470","\u0430",5,"\u0451\u0436",7],["8480","\u043E",17],["849f","\u2500\u2502\u250C\u2510\u2518\u2514\u251C\u252C\u2524\u2534\u253C\u2501\u2503\u250F\u2513\u251B\u2517\u2523\u2533\u252B\u253B\u254B\u2520\u252F\u2528\u2537\u253F\u251D\u2530\u2525\u2538\u2542"],["8740","\u2460",19,"\u2160",9],["875f","\u3349\u3314\u3322\u334D\u3318\u3327\u3303\u3336\u3351\u3357\u330D\u3326\u3323\u332B\u334A\u333B\u339C\u339D\u339E\u338E\u338F\u33C4\u33A1"],["877e","\u337B"],["8780","\u301D\u301F\u2116\u33CD\u2121\u32A4",4,"\u3231\u3232\u3239\u337E\u337D\u337C\u2252\u2261\u222B\u222E\u2211\u221A\u22A5\u2220\u221F\u22BF\u2235\u2229\u222A"],["889f","\u4E9C\u5516\u5A03\u963F\u54C0\u611B\u6328\u59F6\u9022\u8475\u831C\u7A50\u60AA\u63E1\u6E25\u65ED\u8466\u82A6\u9BF5\u6893\u5727\u65A1\u6271\u5B9B\u59D0\u867B\u98F4\u7D62\u7DBE\u9B8E\u6216\u7C9F\u88B7\u5B89\u5EB5\u6309\u6697\u6848\u95C7\u978D\u674F\u4EE5\u4F0A\u4F4D\u4F9D\u5049\u56F2\u5937\u59D4\u5A01\u5C09\u60DF\u610F\u6170\u6613\u6905\u70BA\u754F\u7570\u79FB\u7DAD\u7DEF\u80C3\u840E\u8863\u8B02\u9055\u907A\u533B\u4E95\u4EA5\u57DF\u80B2\u90C1\u78EF\u4E00\u58F1\u6EA2\u9038\u7A32\u8328\u828B\u9C2F\u5141\u5370\u54BD\u54E1\u56E0\u59FB\u5F15\u98F2\u6DEB\u80E4\u852D"],["8940","\u9662\u9670\u96A0\u97FB\u540B\u53F3\u5B87\u70CF\u7FBD\u8FC2\u96E8\u536F\u9D5C\u7ABA\u4E11\u7893\u81FC\u6E26\u5618\u5504\u6B1D\u851A\u9C3B\u59E5\u53A9\u6D66\u74DC\u958F\u5642\u4E91\u904B\u96F2\u834F\u990C\u53E1\u55B6\u5B30\u5F71\u6620\u66F3\u6804\u6C38\u6CF3\u6D29\u745B\u76C8\u7A4E\u9834\u82F1\u885B\u8A60\u92ED\u6DB2\u75AB\u76CA\u99C5\u60A6\u8B01\u8D8A\u95B2\u698E\u53AD\u5186"],["8980","\u5712\u5830\u5944\u5BB4\u5EF6\u6028\u63A9\u63F4\u6CBF\u6F14\u708E\u7114\u7159\u71D5\u733F\u7E01\u8276\u82D1\u8597\u9060\u925B\u9D1B\u5869\u65BC\u6C5A\u7525\u51F9\u592E\u5965\u5F80\u5FDC\u62BC\u65FA\u6A2A\u6B27\u6BB4\u738B\u7FC1\u8956\u9D2C\u9D0E\u9EC4\u5CA1\u6C96\u837B\u5104\u5C4B\u61B6\u81C6\u6876\u7261\u4E59\u4FFA\u5378\u6069\u6E29\u7A4F\u97F3\u4E0B\u5316\u4EEE\u4F55\u4F3D\u4FA1\u4F73\u52A0\u53EF\u5609\u590F\u5AC1\u5BB6\u5BE1\u79D1\u6687\u679C\u67B6\u6B4C\u6CB3\u706B\u73C2\u798D\u79BE\u7A3C\u7B87\u82B1\u82DB\u8304\u8377\u83EF\u83D3\u8766\u8AB2\u5629\u8CA8\u8FE6\u904E\u971E\u868A\u4FC4\u5CE8\u6211\u7259\u753B\u81E5\u82BD\u86FE\u8CC0\u96C5\u9913\u99D5\u4ECB\u4F1A\u89E3\u56DE\u584A\u58CA\u5EFB\u5FEB\u602A\u6094\u6062\u61D0\u6212\u62D0\u6539"],["8a40","\u9B41\u6666\u68B0\u6D77\u7070\u754C\u7686\u7D75\u82A5\u87F9\u958B\u968E\u8C9D\u51F1\u52BE\u5916\u54B3\u5BB3\u5D16\u6168\u6982\u6DAF\u788D\u84CB\u8857\u8A72\u93A7\u9AB8\u6D6C\u99A8\u86D9\u57A3\u67FF\u86CE\u920E\u5283\u5687\u5404\u5ED3\u62E1\u64B9\u683C\u6838\u6BBB\u7372\u78BA\u7A6B\u899A\u89D2\u8D6B\u8F03\u90ED\u95A3\u9694\u9769\u5B66\u5CB3\u697D\u984D\u984E\u639B\u7B20\u6A2B"],["8a80","\u6A7F\u68B6\u9C0D\u6F5F\u5272\u559D\u6070\u62EC\u6D3B\u6E07\u6ED1\u845B\u8910\u8F44\u4E14\u9C39\u53F6\u691B\u6A3A\u9784\u682A\u515C\u7AC3\u84B2\u91DC\u938C\u565B\u9D28\u6822\u8305\u8431\u7CA5\u5208\u82C5\u74E6\u4E7E\u4F83\u51A0\u5BD2\u520A\u52D8\u52E7\u5DFB\u559A\u582A\u59E6\u5B8C\u5B98\u5BDB\u5E72\u5E79\u60A3\u611F\u6163\u61BE\u63DB\u6562\u67D1\u6853\u68FA\u6B3E\u6B53\u6C57\u6F22\u6F97\u6F45\u74B0\u7518\u76E3\u770B\u7AFF\u7BA1\u7C21\u7DE9\u7F36\u7FF0\u809D\u8266\u839E\u89B3\u8ACC\u8CAB\u9084\u9451\u9593\u9591\u95A2\u9665\u97D3\u9928\u8218\u4E38\u542B\u5CB8\u5DCC\u73A9\u764C\u773C\u5CA9\u7FEB\u8D0B\u96C1\u9811\u9854\u9858\u4F01\u4F0E\u5371\u559C\u5668\u57FA\u5947\u5B09\u5BC4\u5C90\u5E0C\u5E7E\u5FCC\u63EE\u673A\u65D7\u65E2\u671F\u68CB\u68C4"],["8b40","\u6A5F\u5E30\u6BC5\u6C17\u6C7D\u757F\u7948\u5B63\u7A00\u7D00\u5FBD\u898F\u8A18\u8CB4\u8D77\u8ECC\u8F1D\u98E2\u9A0E\u9B3C\u4E80\u507D\u5100\u5993\u5B9C\u622F\u6280\u64EC\u6B3A\u72A0\u7591\u7947\u7FA9\u87FB\u8ABC\u8B70\u63AC\u83CA\u97A0\u5409\u5403\u55AB\u6854\u6A58\u8A70\u7827\u6775\u9ECD\u5374\u5BA2\u811A\u8650\u9006\u4E18\u4E45\u4EC7\u4F11\u53CA\u5438\u5BAE\u5F13\u6025\u6551"],["8b80","\u673D\u6C42\u6C72\u6CE3\u7078\u7403\u7A76\u7AAE\u7B08\u7D1A\u7CFE\u7D66\u65E7\u725B\u53BB\u5C45\u5DE8\u62D2\u62E0\u6319\u6E20\u865A\u8A31\u8DDD\u92F8\u6F01\u79A6\u9B5A\u4EA8\u4EAB\u4EAC\u4F9B\u4FA0\u50D1\u5147\u7AF6\u5171\u51F6\u5354\u5321\u537F\u53EB\u55AC\u5883\u5CE1\u5F37\u5F4A\u602F\u6050\u606D\u631F\u6559\u6A4B\u6CC1\u72C2\u72ED\u77EF\u80F8\u8105\u8208\u854E\u90F7\u93E1\u97FF\u9957\u9A5A\u4EF0\u51DD\u5C2D\u6681\u696D\u5C40\u66F2\u6975\u7389\u6850\u7C81\u50C5\u52E4\u5747\u5DFE\u9326\u65A4\u6B23\u6B3D\u7434\u7981\u79BD\u7B4B\u7DCA\u82B9\u83CC\u887F\u895F\u8B39\u8FD1\u91D1\u541F\u9280\u4E5D\u5036\u53E5\u533A\u72D7\u7396\u77E9\u82E6\u8EAF\u99C6\u99C8\u99D2\u5177\u611A\u865E\u55B0\u7A7A\u5076\u5BD3\u9047\u9685\u4E32\u6ADB\u91E7\u5C51\u5C48"],["8c40","\u6398\u7A9F\u6C93\u9774\u8F61\u7AAA\u718A\u9688\u7C82\u6817\u7E70\u6851\u936C\u52F2\u541B\u85AB\u8A13\u7FA4\u8ECD\u90E1\u5366\u8888\u7941\u4FC2\u50BE\u5211\u5144\u5553\u572D\u73EA\u578B\u5951\u5F62\u5F84\u6075\u6176\u6167\u61A9\u63B2\u643A\u656C\u666F\u6842\u6E13\u7566\u7A3D\u7CFB\u7D4C\u7D99\u7E4B\u7F6B\u830E\u834A\u86CD\u8A08\u8A63\u8B66\u8EFD\u981A\u9D8F\u82B8\u8FCE\u9BE8"],["8c80","\u5287\u621F\u6483\u6FC0\u9699\u6841\u5091\u6B20\u6C7A\u6F54\u7A74\u7D50\u8840\u8A23\u6708\u4EF6\u5039\u5026\u5065\u517C\u5238\u5263\u55A7\u570F\u5805\u5ACC\u5EFA\u61B2\u61F8\u62F3\u6372\u691C\u6A29\u727D\u72AC\u732E\u7814\u786F\u7D79\u770C\u80A9\u898B\u8B19\u8CE2\u8ED2\u9063\u9375\u967A\u9855\u9A13\u9E78\u5143\u539F\u53B3\u5E7B\u5F26\u6E1B\u6E90\u7384\u73FE\u7D43\u8237\u8A00\u8AFA\u9650\u4E4E\u500B\u53E4\u547C\u56FA\u59D1\u5B64\u5DF1\u5EAB\u5F27\u6238\u6545\u67AF\u6E56\u72D0\u7CCA\u88B4\u80A1\u80E1\u83F0\u864E\u8A87\u8DE8\u9237\u96C7\u9867\u9F13\u4E94\u4E92\u4F0D\u5348\u5449\u543E\u5A2F\u5F8C\u5FA1\u609F\u68A7\u6A8E\u745A\u7881\u8A9E\u8AA4\u8B77\u9190\u4E5E\u9BC9\u4EA4\u4F7C\u4FAF\u5019\u5016\u5149\u516C\u529F\u52B9\u52FE\u539A\u53E3\u5411"],["8d40","\u540E\u5589\u5751\u57A2\u597D\u5B54\u5B5D\u5B8F\u5DE5\u5DE7\u5DF7\u5E78\u5E83\u5E9A\u5EB7\u5F18\u6052\u614C\u6297\u62D8\u63A7\u653B\u6602\u6643\u66F4\u676D\u6821\u6897\u69CB\u6C5F\u6D2A\u6D69\u6E2F\u6E9D\u7532\u7687\u786C\u7A3F\u7CE0\u7D05\u7D18\u7D5E\u7DB1\u8015\u8003\u80AF\u80B1\u8154\u818F\u822A\u8352\u884C\u8861\u8B1B\u8CA2\u8CFC\u90CA\u9175\u9271\u783F\u92FC\u95A4\u964D"],["8d80","\u9805\u9999\u9AD8\u9D3B\u525B\u52AB\u53F7\u5408\u58D5\u62F7\u6FE0\u8C6A\u8F5F\u9EB9\u514B\u523B\u544A\u56FD\u7A40\u9177\u9D60\u9ED2\u7344\u6F09\u8170\u7511\u5FFD\u60DA\u9AA8\u72DB\u8FBC\u6B64\u9803\u4ECA\u56F0\u5764\u58BE\u5A5A\u6068\u61C7\u660F\u6606\u6839\u68B1\u6DF7\u75D5\u7D3A\u826E\u9B42\u4E9B\u4F50\u53C9\u5506\u5D6F\u5DE6\u5DEE\u67FB\u6C99\u7473\u7802\u8A50\u9396\u88DF\u5750\u5EA7\u632B\u50B5\u50AC\u518D\u6700\u54C9\u585E\u59BB\u5BB0\u5F69\u624D\u63A1\u683D\u6B73\u6E08\u707D\u91C7\u7280\u7815\u7826\u796D\u658E\u7D30\u83DC\u88C1\u8F09\u969B\u5264\u5728\u6750\u7F6A\u8CA1\u51B4\u5742\u962A\u583A\u698A\u80B4\u54B2\u5D0E\u57FC\u7895\u9DFA\u4F5C\u524A\u548B\u643E\u6628\u6714\u67F5\u7A84\u7B56\u7D22\u932F\u685C\u9BAD\u7B39\u5319\u518A\u5237"],["8e40","\u5BDF\u62F6\u64AE\u64E6\u672D\u6BBA\u85A9\u96D1\u7690\u9BD6\u634C\u9306\u9BAB\u76BF\u6652\u4E09\u5098\u53C2\u5C71\u60E8\u6492\u6563\u685F\u71E6\u73CA\u7523\u7B97\u7E82\u8695\u8B83\u8CDB\u9178\u9910\u65AC\u66AB\u6B8B\u4ED5\u4ED4\u4F3A\u4F7F\u523A\u53F8\u53F2\u55E3\u56DB\u58EB\u59CB\u59C9\u59FF\u5B50\u5C4D\u5E02\u5E2B\u5FD7\u601D\u6307\u652F\u5B5C\u65AF\u65BD\u65E8\u679D\u6B62"],["8e80","\u6B7B\u6C0F\u7345\u7949\u79C1\u7CF8\u7D19\u7D2B\u80A2\u8102\u81F3\u8996\u8A5E\u8A69\u8A66\u8A8C\u8AEE\u8CC7\u8CDC\u96CC\u98FC\u6B6F\u4E8B\u4F3C\u4F8D\u5150\u5B57\u5BFA\u6148\u6301\u6642\u6B21\u6ECB\u6CBB\u723E\u74BD\u75D4\u78C1\u793A\u800C\u8033\u81EA\u8494\u8F9E\u6C50\u9E7F\u5F0F\u8B58\u9D2B\u7AFA\u8EF8\u5B8D\u96EB\u4E03\u53F1\u57F7\u5931\u5AC9\u5BA4\u6089\u6E7F\u6F06\u75BE\u8CEA\u5B9F\u8500\u7BE0\u5072\u67F4\u829D\u5C61\u854A\u7E1E\u820E\u5199\u5C04\u6368\u8D66\u659C\u716E\u793E\u7D17\u8005\u8B1D\u8ECA\u906E\u86C7\u90AA\u501F\u52FA\u5C3A\u6753\u707C\u7235\u914C\u91C8\u932B\u82E5\u5BC2\u5F31\u60F9\u4E3B\u53D6\u5B88\u624B\u6731\u6B8A\u72E9\u73E0\u7A2E\u816B\u8DA3\u9152\u9996\u5112\u53D7\u546A\u5BFF\u6388\u6A39\u7DAC\u9700\u56DA\u53CE\u5468"],["8f40","\u5B97\u5C31\u5DDE\u4FEE\u6101\u62FE\u6D32\u79C0\u79CB\u7D42\u7E4D\u7FD2\u81ED\u821F\u8490\u8846\u8972\u8B90\u8E74\u8F2F\u9031\u914B\u916C\u96C6\u919C\u4EC0\u4F4F\u5145\u5341\u5F93\u620E\u67D4\u6C41\u6E0B\u7363\u7E26\u91CD\u9283\u53D4\u5919\u5BBF\u6DD1\u795D\u7E2E\u7C9B\u587E\u719F\u51FA\u8853\u8FF0\u4FCA\u5CFB\u6625\u77AC\u7AE3\u821C\u99FF\u51C6\u5FAA\u65EC\u696F\u6B89\u6DF3"],["8f80","\u6E96\u6F64\u76FE\u7D14\u5DE1\u9075\u9187\u9806\u51E6\u521D\u6240\u6691\u66D9\u6E1A\u5EB6\u7DD2\u7F72\u66F8\u85AF\u85F7\u8AF8\u52A9\u53D9\u5973\u5E8F\u5F90\u6055\u92E4\u9664\u50B7\u511F\u52DD\u5320\u5347\u53EC\u54E8\u5546\u5531\u5617\u5968\u59BE\u5A3C\u5BB5\u5C06\u5C0F\u5C11\u5C1A\u5E84\u5E8A\u5EE0\u5F70\u627F\u6284\u62DB\u638C\u6377\u6607\u660C\u662D\u6676\u677E\u68A2\u6A1F\u6A35\u6CBC\u6D88\u6E09\u6E58\u713C\u7126\u7167\u75C7\u7701\u785D\u7901\u7965\u79F0\u7AE0\u7B11\u7CA7\u7D39\u8096\u83D6\u848B\u8549\u885D\u88F3\u8A1F\u8A3C\u8A54\u8A73\u8C61\u8CDE\u91A4\u9266\u937E\u9418\u969C\u9798\u4E0A\u4E08\u4E1E\u4E57\u5197\u5270\u57CE\u5834\u58CC\u5B22\u5E38\u60C5\u64FE\u6761\u6756\u6D44\u72B6\u7573\u7A63\u84B8\u8B72\u91B8\u9320\u5631\u57F4\u98FE"],["9040","\u62ED\u690D\u6B96\u71ED\u7E54\u8077\u8272\u89E6\u98DF\u8755\u8FB1\u5C3B\u4F38\u4FE1\u4FB5\u5507\u5A20\u5BDD\u5BE9\u5FC3\u614E\u632F\u65B0\u664B\u68EE\u699B\u6D78\u6DF1\u7533\u75B9\u771F\u795E\u79E6\u7D33\u81E3\u82AF\u85AA\u89AA\u8A3A\u8EAB\u8F9B\u9032\u91DD\u9707\u4EBA\u4EC1\u5203\u5875\u58EC\u5C0B\u751A\u5C3D\u814E\u8A0A\u8FC5\u9663\u976D\u7B25\u8ACF\u9808\u9162\u56F3\u53A8"],["9080","\u9017\u5439\u5782\u5E25\u63A8\u6C34\u708A\u7761\u7C8B\u7FE0\u8870\u9042\u9154\u9310\u9318\u968F\u745E\u9AC4\u5D07\u5D69\u6570\u67A2\u8DA8\u96DB\u636E\u6749\u6919\u83C5\u9817\u96C0\u88FE\u6F84\u647A\u5BF8\u4E16\u702C\u755D\u662F\u51C4\u5236\u52E2\u59D3\u5F81\u6027\u6210\u653F\u6574\u661F\u6674\u68F2\u6816\u6B63\u6E05\u7272\u751F\u76DB\u7CBE\u8056\u58F0\u88FD\u897F\u8AA0\u8A93\u8ACB\u901D\u9192\u9752\u9759\u6589\u7A0E\u8106\u96BB\u5E2D\u60DC\u621A\u65A5\u6614\u6790\u77F3\u7A4D\u7C4D\u7E3E\u810A\u8CAC\u8D64\u8DE1\u8E5F\u78A9\u5207\u62D9\u63A5\u6442\u6298\u8A2D\u7A83\u7BC0\u8AAC\u96EA\u7D76\u820C\u8749\u4ED9\u5148\u5343\u5360\u5BA3\u5C02\u5C16\u5DDD\u6226\u6247\u64B0\u6813\u6834\u6CC9\u6D45\u6D17\u67D3\u6F5C\u714E\u717D\u65CB\u7A7F\u7BAD\u7DDA"],["9140","\u7E4A\u7FA8\u817A\u821B\u8239\u85A6\u8A6E\u8CCE\u8DF5\u9078\u9077\u92AD\u9291\u9583\u9BAE\u524D\u5584\u6F38\u7136\u5168\u7985\u7E55\u81B3\u7CCE\u564C\u5851\u5CA8\u63AA\u66FE\u66FD\u695A\u72D9\u758F\u758E\u790E\u7956\u79DF\u7C97\u7D20\u7D44\u8607\u8A34\u963B\u9061\u9F20\u50E7\u5275\u53CC\u53E2\u5009\u55AA\u58EE\u594F\u723D\u5B8B\u5C64\u531D\u60E3\u60F3\u635C\u6383\u633F\u63BB"],["9180","\u64CD\u65E9\u66F9\u5DE3\u69CD\u69FD\u6F15\u71E5\u4E89\u75E9\u76F8\u7A93\u7CDF\u7DCF\u7D9C\u8061\u8349\u8358\u846C\u84BC\u85FB\u88C5\u8D70\u9001\u906D\u9397\u971C\u9A12\u50CF\u5897\u618E\u81D3\u8535\u8D08\u9020\u4FC3\u5074\u5247\u5373\u606F\u6349\u675F\u6E2C\u8DB3\u901F\u4FD7\u5C5E\u8CCA\u65CF\u7D9A\u5352\u8896\u5176\u63C3\u5B58\u5B6B\u5C0A\u640D\u6751\u905C\u4ED6\u591A\u592A\u6C70\u8A51\u553E\u5815\u59A5\u60F0\u6253\u67C1\u8235\u6955\u9640\u99C4\u9A28\u4F53\u5806\u5BFE\u8010\u5CB1\u5E2F\u5F85\u6020\u614B\u6234\u66FF\u6CF0\u6EDE\u80CE\u817F\u82D4\u888B\u8CB8\u9000\u902E\u968A\u9EDB\u9BDB\u4EE3\u53F0\u5927\u7B2C\u918D\u984C\u9DF9\u6EDD\u7027\u5353\u5544\u5B85\u6258\u629E\u62D3\u6CA2\u6FEF\u7422\u8A17\u9438\u6FC1\u8AFE\u8338\u51E7\u86F8\u53EA"],["9240","\u53E9\u4F46\u9054\u8FB0\u596A\u8131\u5DFD\u7AEA\u8FBF\u68DA\u8C37\u72F8\u9C48\u6A3D\u8AB0\u4E39\u5358\u5606\u5766\u62C5\u63A2\u65E6\u6B4E\u6DE1\u6E5B\u70AD\u77ED\u7AEF\u7BAA\u7DBB\u803D\u80C6\u86CB\u8A95\u935B\u56E3\u58C7\u5F3E\u65AD\u6696\u6A80\u6BB5\u7537\u8AC7\u5024\u77E5\u5730\u5F1B\u6065\u667A\u6C60\u75F4\u7A1A\u7F6E\u81F4\u8718\u9045\u99B3\u7BC9\u755C\u7AF9\u7B51\u84C4"],["9280","\u9010\u79E9\u7A92\u8336\u5AE1\u7740\u4E2D\u4EF2\u5B99\u5FE0\u62BD\u663C\u67F1\u6CE8\u866B\u8877\u8A3B\u914E\u92F3\u99D0\u6A17\u7026\u732A\u82E7\u8457\u8CAF\u4E01\u5146\u51CB\u558B\u5BF5\u5E16\u5E33\u5E81\u5F14\u5F35\u5F6B\u5FB4\u61F2\u6311\u66A2\u671D\u6F6E\u7252\u753A\u773A\u8074\u8139\u8178\u8776\u8ABF\u8ADC\u8D85\u8DF3\u929A\u9577\u9802\u9CE5\u52C5\u6357\u76F4\u6715\u6C88\u73CD\u8CC3\u93AE\u9673\u6D25\u589C\u690E\u69CC\u8FFD\u939A\u75DB\u901A\u585A\u6802\u63B4\u69FB\u4F43\u6F2C\u67D8\u8FBB\u8526\u7DB4\u9354\u693F\u6F70\u576A\u58F7\u5B2C\u7D2C\u722A\u540A\u91E3\u9DB4\u4EAD\u4F4E\u505C\u5075\u5243\u8C9E\u5448\u5824\u5B9A\u5E1D\u5E95\u5EAD\u5EF7\u5F1F\u608C\u62B5\u633A\u63D0\u68AF\u6C40\u7887\u798E\u7A0B\u7DE0\u8247\u8A02\u8AE6\u8E44\u9013"],["9340","\u90B8\u912D\u91D8\u9F0E\u6CE5\u6458\u64E2\u6575\u6EF4\u7684\u7B1B\u9069\u93D1\u6EBA\u54F2\u5FB9\u64A4\u8F4D\u8FED\u9244\u5178\u586B\u5929\u5C55\u5E97\u6DFB\u7E8F\u751C\u8CBC\u8EE2\u985B\u70B9\u4F1D\u6BBF\u6FB1\u7530\u96FB\u514E\u5410\u5835\u5857\u59AC\u5C60\u5F92\u6597\u675C\u6E21\u767B\u83DF\u8CED\u9014\u90FD\u934D\u7825\u783A\u52AA\u5EA6\u571F\u5974\u6012\u5012\u515A\u51AC"],["9380","\u51CD\u5200\u5510\u5854\u5858\u5957\u5B95\u5CF6\u5D8B\u60BC\u6295\u642D\u6771\u6843\u68BC\u68DF\u76D7\u6DD8\u6E6F\u6D9B\u706F\u71C8\u5F53\u75D8\u7977\u7B49\u7B54\u7B52\u7CD6\u7D71\u5230\u8463\u8569\u85E4\u8A0E\u8B04\u8C46\u8E0F\u9003\u900F\u9419\u9676\u982D\u9A30\u95D8\u50CD\u52D5\u540C\u5802\u5C0E\u61A7\u649E\u6D1E\u77B3\u7AE5\u80F4\u8404\u9053\u9285\u5CE0\u9D07\u533F\u5F97\u5FB3\u6D9C\u7279\u7763\u79BF\u7BE4\u6BD2\u72EC\u8AAD\u6803\u6A61\u51F8\u7A81\u6934\u5C4A\u9CF6\u82EB\u5BC5\u9149\u701E\u5678\u5C6F\u60C7\u6566\u6C8C\u8C5A\u9041\u9813\u5451\u66C7\u920D\u5948\u90A3\u5185\u4E4D\u51EA\u8599\u8B0E\u7058\u637A\u934B\u6962\u99B4\u7E04\u7577\u5357\u6960\u8EDF\u96E3\u6C5D\u4E8C\u5C3C\u5F10\u8FE9\u5302\u8CD1\u8089\u8679\u5EFF\u65E5\u4E73\u5165"],["9440","\u5982\u5C3F\u97EE\u4EFB\u598A\u5FCD\u8A8D\u6FE1\u79B0\u7962\u5BE7\u8471\u732B\u71B1\u5E74\u5FF5\u637B\u649A\u71C3\u7C98\u4E43\u5EFC\u4E4B\u57DC\u56A2\u60A9\u6FC3\u7D0D\u80FD\u8133\u81BF\u8FB2\u8997\u86A4\u5DF4\u628A\u64AD\u8987\u6777\u6CE2\u6D3E\u7436\u7834\u5A46\u7F75\u82AD\u99AC\u4FF3\u5EC3\u62DD\u6392\u6557\u676F\u76C3\u724C\u80CC\u80BA\u8F29\u914D\u500D\u57F9\u5A92\u6885"],["9480","\u6973\u7164\u72FD\u8CB7\u58F2\u8CE0\u966A\u9019\u877F\u79E4\u77E7\u8429\u4F2F\u5265\u535A\u62CD\u67CF\u6CCA\u767D\u7B94\u7C95\u8236\u8584\u8FEB\u66DD\u6F20\u7206\u7E1B\u83AB\u99C1\u9EA6\u51FD\u7BB1\u7872\u7BB8\u8087\u7B48\u6AE8\u5E61\u808C\u7551\u7560\u516B\u9262\u6E8C\u767A\u9197\u9AEA\u4F10\u7F70\u629C\u7B4F\u95A5\u9CE9\u567A\u5859\u86E4\u96BC\u4F34\u5224\u534A\u53CD\u53DB\u5E06\u642C\u6591\u677F\u6C3E\u6C4E\u7248\u72AF\u73ED\u7554\u7E41\u822C\u85E9\u8CA9\u7BC4\u91C6\u7169\u9812\u98EF\u633D\u6669\u756A\u76E4\u78D0\u8543\u86EE\u532A\u5351\u5426\u5983\u5E87\u5F7C\u60B2\u6249\u6279\u62AB\u6590\u6BD4\u6CCC\u75B2\u76AE\u7891\u79D8\u7DCB\u7F77\u80A5\u88AB\u8AB9\u8CBB\u907F\u975E\u98DB\u6A0B\u7C38\u5099\u5C3E\u5FAE\u6787\u6BD8\u7435\u7709\u7F8E"],["9540","\u9F3B\u67CA\u7A17\u5339\u758B\u9AED\u5F66\u819D\u83F1\u8098\u5F3C\u5FC5\u7562\u7B46\u903C\u6867\u59EB\u5A9B\u7D10\u767E\u8B2C\u4FF5\u5F6A\u6A19\u6C37\u6F02\u74E2\u7968\u8868\u8A55\u8C79\u5EDF\u63CF\u75C5\u79D2\u82D7\u9328\u92F2\u849C\u86ED\u9C2D\u54C1\u5F6C\u658C\u6D5C\u7015\u8CA7\u8CD3\u983B\u654F\u74F6\u4E0D\u4ED8\u57E0\u592B\u5A66\u5BCC\u51A8\u5E03\u5E9C\u6016\u6276\u6577"],["9580","\u65A7\u666E\u6D6E\u7236\u7B26\u8150\u819A\u8299\u8B5C\u8CA0\u8CE6\u8D74\u961C\u9644\u4FAE\u64AB\u6B66\u821E\u8461\u856A\u90E8\u5C01\u6953\u98A8\u847A\u8557\u4F0F\u526F\u5FA9\u5E45\u670D\u798F\u8179\u8907\u8986\u6DF5\u5F17\u6255\u6CB8\u4ECF\u7269\u9B92\u5206\u543B\u5674\u58B3\u61A4\u626E\u711A\u596E\u7C89\u7CDE\u7D1B\u96F0\u6587\u805E\u4E19\u4F75\u5175\u5840\u5E63\u5E73\u5F0A\u67C4\u4E26\u853D\u9589\u965B\u7C73\u9801\u50FB\u58C1\u7656\u78A7\u5225\u77A5\u8511\u7B86\u504F\u5909\u7247\u7BC7\u7DE8\u8FBA\u8FD4\u904D\u4FBF\u52C9\u5A29\u5F01\u97AD\u4FDD\u8217\u92EA\u5703\u6355\u6B69\u752B\u88DC\u8F14\u7A42\u52DF\u5893\u6155\u620A\u66AE\u6BCD\u7C3F\u83E9\u5023\u4FF8\u5305\u5446\u5831\u5949\u5B9D\u5CF0\u5CEF\u5D29\u5E96\u62B1\u6367\u653E\u65B9\u670B"],["9640","\u6CD5\u6CE1\u70F9\u7832\u7E2B\u80DE\u82B3\u840C\u84EC\u8702\u8912\u8A2A\u8C4A\u90A6\u92D2\u98FD\u9CF3\u9D6C\u4E4F\u4EA1\u508D\u5256\u574A\u59A8\u5E3D\u5FD8\u5FD9\u623F\u66B4\u671B\u67D0\u68D2\u5192\u7D21\u80AA\u81A8\u8B00\u8C8C\u8CBF\u927E\u9632\u5420\u982C\u5317\u50D5\u535C\u58A8\u64B2\u6734\u7267\u7766\u7A46\u91E6\u52C3\u6CA1\u6B86\u5800\u5E4C\u5954\u672C\u7FFB\u51E1\u76C6"],["9680","\u6469\u78E8\u9B54\u9EBB\u57CB\u59B9\u6627\u679A\u6BCE\u54E9\u69D9\u5E55\u819C\u6795\u9BAA\u67FE\u9C52\u685D\u4EA6\u4FE3\u53C8\u62B9\u672B\u6CAB\u8FC4\u4FAD\u7E6D\u9EBF\u4E07\u6162\u6E80\u6F2B\u8513\u5473\u672A\u9B45\u5DF3\u7B95\u5CAC\u5BC6\u871C\u6E4A\u84D1\u7A14\u8108\u5999\u7C8D\u6C11\u7720\u52D9\u5922\u7121\u725F\u77DB\u9727\u9D61\u690B\u5A7F\u5A18\u51A5\u540D\u547D\u660E\u76DF\u8FF7\u9298\u9CF4\u59EA\u725D\u6EC5\u514D\u68C9\u7DBF\u7DEC\u9762\u9EBA\u6478\u6A21\u8302\u5984\u5B5F\u6BDB\u731B\u76F2\u7DB2\u8017\u8499\u5132\u6728\u9ED9\u76EE\u6762\u52FF\u9905\u5C24\u623B\u7C7E\u8CB0\u554F\u60B6\u7D0B\u9580\u5301\u4E5F\u51B6\u591C\u723A\u8036\u91CE\u5F25\u77E2\u5384\u5F79\u7D04\u85AC\u8A33\u8E8D\u9756\u67F3\u85AE\u9453\u6109\u6108\u6CB9\u7652"],["9740","\u8AED\u8F38\u552F\u4F51\u512A\u52C7\u53CB\u5BA5\u5E7D\u60A0\u6182\u63D6\u6709\u67DA\u6E67\u6D8C\u7336\u7337\u7531\u7950\u88D5\u8A98\u904A\u9091\u90F5\u96C4\u878D\u5915\u4E88\u4F59\u4E0E\u8A89\u8F3F\u9810\u50AD\u5E7C\u5996\u5BB9\u5EB8\u63DA\u63FA\u64C1\u66DC\u694A\u69D8\u6D0B\u6EB6\u7194\u7528\u7AAF\u7F8A\u8000\u8449\u84C9\u8981\u8B21\u8E0A\u9065\u967D\u990A\u617E\u6291\u6B32"],["9780","\u6C83\u6D74\u7FCC\u7FFC\u6DC0\u7F85\u87BA\u88F8\u6765\u83B1\u983C\u96F7\u6D1B\u7D61\u843D\u916A\u4E71\u5375\u5D50\u6B04\u6FEB\u85CD\u862D\u89A7\u5229\u540F\u5C65\u674E\u68A8\u7406\u7483\u75E2\u88CF\u88E1\u91CC\u96E2\u9678\u5F8B\u7387\u7ACB\u844E\u63A0\u7565\u5289\u6D41\u6E9C\u7409\u7559\u786B\u7C92\u9686\u7ADC\u9F8D\u4FB6\u616E\u65C5\u865C\u4E86\u4EAE\u50DA\u4E21\u51CC\u5BEE\u6599\u6881\u6DBC\u731F\u7642\u77AD\u7A1C\u7CE7\u826F\u8AD2\u907C\u91CF\u9675\u9818\u529B\u7DD1\u502B\u5398\u6797\u6DCB\u71D0\u7433\u81E8\u8F2A\u96A3\u9C57\u9E9F\u7460\u5841\u6D99\u7D2F\u985E\u4EE4\u4F36\u4F8B\u51B7\u52B1\u5DBA\u601C\u73B2\u793C\u82D3\u9234\u96B7\u96F6\u970A\u9E97\u9F62\u66A6\u6B74\u5217\u52A3\u70C8\u88C2\u5EC9\u604B\u6190\u6F23\u7149\u7C3E\u7DF4\u806F"],["9840","\u84EE\u9023\u932C\u5442\u9B6F\u6AD3\u7089\u8CC2\u8DEF\u9732\u52B4\u5A41\u5ECA\u5F04\u6717\u697C\u6994\u6D6A\u6F0F\u7262\u72FC\u7BED\u8001\u807E\u874B\u90CE\u516D\u9E93\u7984\u808B\u9332\u8AD6\u502D\u548C\u8A71\u6B6A\u8CC4\u8107\u60D1\u67A0\u9DF2\u4E99\u4E98\u9C10\u8A6B\u85C1\u8568\u6900\u6E7E\u7897\u8155"],["989f","\u5F0C\u4E10\u4E15\u4E2A\u4E31\u4E36\u4E3C\u4E3F\u4E42\u4E56\u4E58\u4E82\u4E85\u8C6B\u4E8A\u8212\u5F0D\u4E8E\u4E9E\u4E9F\u4EA0\u4EA2\u4EB0\u4EB3\u4EB6\u4ECE\u4ECD\u4EC4\u4EC6\u4EC2\u4ED7\u4EDE\u4EED\u4EDF\u4EF7\u4F09\u4F5A\u4F30\u4F5B\u4F5D\u4F57\u4F47\u4F76\u4F88\u4F8F\u4F98\u4F7B\u4F69\u4F70\u4F91\u4F6F\u4F86\u4F96\u5118\u4FD4\u4FDF\u4FCE\u4FD8\u4FDB\u4FD1\u4FDA\u4FD0\u4FE4\u4FE5\u501A\u5028\u5014\u502A\u5025\u5005\u4F1C\u4FF6\u5021\u5029\u502C\u4FFE\u4FEF\u5011\u5006\u5043\u5047\u6703\u5055\u5050\u5048\u505A\u5056\u506C\u5078\u5080\u509A\u5085\u50B4\u50B2"],["9940","\u50C9\u50CA\u50B3\u50C2\u50D6\u50DE\u50E5\u50ED\u50E3\u50EE\u50F9\u50F5\u5109\u5101\u5102\u5116\u5115\u5114\u511A\u5121\u513A\u5137\u513C\u513B\u513F\u5140\u5152\u514C\u5154\u5162\u7AF8\u5169\u516A\u516E\u5180\u5182\u56D8\u518C\u5189\u518F\u5191\u5193\u5195\u5196\u51A4\u51A6\u51A2\u51A9\u51AA\u51AB\u51B3\u51B1\u51B2\u51B0\u51B5\u51BD\u51C5\u51C9\u51DB\u51E0\u8655\u51E9\u51ED"],["9980","\u51F0\u51F5\u51FE\u5204\u520B\u5214\u520E\u5227\u522A\u522E\u5233\u5239\u524F\u5244\u524B\u524C\u525E\u5254\u526A\u5274\u5269\u5273\u527F\u527D\u528D\u5294\u5292\u5271\u5288\u5291\u8FA8\u8FA7\u52AC\u52AD\u52BC\u52B5\u52C1\u52CD\u52D7\u52DE\u52E3\u52E6\u98ED\u52E0\u52F3\u52F5\u52F8\u52F9\u5306\u5308\u7538\u530D\u5310\u530F\u5315\u531A\u5323\u532F\u5331\u5333\u5338\u5340\u5346\u5345\u4E17\u5349\u534D\u51D6\u535E\u5369\u536E\u5918\u537B\u5377\u5382\u5396\u53A0\u53A6\u53A5\u53AE\u53B0\u53B6\u53C3\u7C12\u96D9\u53DF\u66FC\u71EE\u53EE\u53E8\u53ED\u53FA\u5401\u543D\u5440\u542C\u542D\u543C\u542E\u5436\u5429\u541D\u544E\u548F\u5475\u548E\u545F\u5471\u5477\u5470\u5492\u547B\u5480\u5476\u5484\u5490\u5486\u54C7\u54A2\u54B8\u54A5\u54AC\u54C4\u54C8\u54A8"],["9a40","\u54AB\u54C2\u54A4\u54BE\u54BC\u54D8\u54E5\u54E6\u550F\u5514\u54FD\u54EE\u54ED\u54FA\u54E2\u5539\u5540\u5563\u554C\u552E\u555C\u5545\u5556\u5557\u5538\u5533\u555D\u5599\u5580\u54AF\u558A\u559F\u557B\u557E\u5598\u559E\u55AE\u557C\u5583\u55A9\u5587\u55A8\u55DA\u55C5\u55DF\u55C4\u55DC\u55E4\u55D4\u5614\u55F7\u5616\u55FE\u55FD\u561B\u55F9\u564E\u5650\u71DF\u5634\u5636\u5632\u5638"],["9a80","\u566B\u5664\u562F\u566C\u566A\u5686\u5680\u568A\u56A0\u5694\u568F\u56A5\u56AE\u56B6\u56B4\u56C2\u56BC\u56C1\u56C3\u56C0\u56C8\u56CE\u56D1\u56D3\u56D7\u56EE\u56F9\u5700\u56FF\u5704\u5709\u5708\u570B\u570D\u5713\u5718\u5716\u55C7\u571C\u5726\u5737\u5738\u574E\u573B\u5740\u574F\u5769\u57C0\u5788\u5761\u577F\u5789\u5793\u57A0\u57B3\u57A4\u57AA\u57B0\u57C3\u57C6\u57D4\u57D2\u57D3\u580A\u57D6\u57E3\u580B\u5819\u581D\u5872\u5821\u5862\u584B\u5870\u6BC0\u5852\u583D\u5879\u5885\u58B9\u589F\u58AB\u58BA\u58DE\u58BB\u58B8\u58AE\u58C5\u58D3\u58D1\u58D7\u58D9\u58D8\u58E5\u58DC\u58E4\u58DF\u58EF\u58FA\u58F9\u58FB\u58FC\u58FD\u5902\u590A\u5910\u591B\u68A6\u5925\u592C\u592D\u5932\u5938\u593E\u7AD2\u5955\u5950\u594E\u595A\u5958\u5962\u5960\u5967\u596C\u5969"],["9b40","\u5978\u5981\u599D\u4F5E\u4FAB\u59A3\u59B2\u59C6\u59E8\u59DC\u598D\u59D9\u59DA\u5A25\u5A1F\u5A11\u5A1C\u5A09\u5A1A\u5A40\u5A6C\u5A49\u5A35\u5A36\u5A62\u5A6A\u5A9A\u5ABC\u5ABE\u5ACB\u5AC2\u5ABD\u5AE3\u5AD7\u5AE6\u5AE9\u5AD6\u5AFA\u5AFB\u5B0C\u5B0B\u5B16\u5B32\u5AD0\u5B2A\u5B36\u5B3E\u5B43\u5B45\u5B40\u5B51\u5B55\u5B5A\u5B5B\u5B65\u5B69\u5B70\u5B73\u5B75\u5B78\u6588\u5B7A\u5B80"],["9b80","\u5B83\u5BA6\u5BB8\u5BC3\u5BC7\u5BC9\u5BD4\u5BD0\u5BE4\u5BE6\u5BE2\u5BDE\u5BE5\u5BEB\u5BF0\u5BF6\u5BF3\u5C05\u5C07\u5C08\u5C0D\u5C13\u5C20\u5C22\u5C28\u5C38\u5C39\u5C41\u5C46\u5C4E\u5C53\u5C50\u5C4F\u5B71\u5C6C\u5C6E\u4E62\u5C76\u5C79\u5C8C\u5C91\u5C94\u599B\u5CAB\u5CBB\u5CB6\u5CBC\u5CB7\u5CC5\u5CBE\u5CC7\u5CD9\u5CE9\u5CFD\u5CFA\u5CED\u5D8C\u5CEA\u5D0B\u5D15\u5D17\u5D5C\u5D1F\u5D1B\u5D11\u5D14\u5D22\u5D1A\u5D19\u5D18\u5D4C\u5D52\u5D4E\u5D4B\u5D6C\u5D73\u5D76\u5D87\u5D84\u5D82\u5DA2\u5D9D\u5DAC\u5DAE\u5DBD\u5D90\u5DB7\u5DBC\u5DC9\u5DCD\u5DD3\u5DD2\u5DD6\u5DDB\u5DEB\u5DF2\u5DF5\u5E0B\u5E1A\u5E19\u5E11\u5E1B\u5E36\u5E37\u5E44\u5E43\u5E40\u5E4E\u5E57\u5E54\u5E5F\u5E62\u5E64\u5E47\u5E75\u5E76\u5E7A\u9EBC\u5E7F\u5EA0\u5EC1\u5EC2\u5EC8\u5ED0\u5ECF"],["9c40","\u5ED6\u5EE3\u5EDD\u5EDA\u5EDB\u5EE2\u5EE1\u5EE8\u5EE9\u5EEC\u5EF1\u5EF3\u5EF0\u5EF4\u5EF8\u5EFE\u5F03\u5F09\u5F5D\u5F5C\u5F0B\u5F11\u5F16\u5F29\u5F2D\u5F38\u5F41\u5F48\u5F4C\u5F4E\u5F2F\u5F51\u5F56\u5F57\u5F59\u5F61\u5F6D\u5F73\u5F77\u5F83\u5F82\u5F7F\u5F8A\u5F88\u5F91\u5F87\u5F9E\u5F99\u5F98\u5FA0\u5FA8\u5FAD\u5FBC\u5FD6\u5FFB\u5FE4\u5FF8\u5FF1\u5FDD\u60B3\u5FFF\u6021\u6060"],["9c80","\u6019\u6010\u6029\u600E\u6031\u601B\u6015\u602B\u6026\u600F\u603A\u605A\u6041\u606A\u6077\u605F\u604A\u6046\u604D\u6063\u6043\u6064\u6042\u606C\u606B\u6059\u6081\u608D\u60E7\u6083\u609A\u6084\u609B\u6096\u6097\u6092\u60A7\u608B\u60E1\u60B8\u60E0\u60D3\u60B4\u5FF0\u60BD\u60C6\u60B5\u60D8\u614D\u6115\u6106\u60F6\u60F7\u6100\u60F4\u60FA\u6103\u6121\u60FB\u60F1\u610D\u610E\u6147\u613E\u6128\u6127\u614A\u613F\u613C\u612C\u6134\u613D\u6142\u6144\u6173\u6177\u6158\u6159\u615A\u616B\u6174\u616F\u6165\u6171\u615F\u615D\u6153\u6175\u6199\u6196\u6187\u61AC\u6194\u619A\u618A\u6191\u61AB\u61AE\u61CC\u61CA\u61C9\u61F7\u61C8\u61C3\u61C6\u61BA\u61CB\u7F79\u61CD\u61E6\u61E3\u61F6\u61FA\u61F4\u61FF\u61FD\u61FC\u61FE\u6200\u6208\u6209\u620D\u620C\u6214\u621B"],["9d40","\u621E\u6221\u622A\u622E\u6230\u6232\u6233\u6241\u624E\u625E\u6263\u625B\u6260\u6268\u627C\u6282\u6289\u627E\u6292\u6293\u6296\u62D4\u6283\u6294\u62D7\u62D1\u62BB\u62CF\u62FF\u62C6\u64D4\u62C8\u62DC\u62CC\u62CA\u62C2\u62C7\u629B\u62C9\u630C\u62EE\u62F1\u6327\u6302\u6308\u62EF\u62F5\u6350\u633E\u634D\u641C\u634F\u6396\u638E\u6380\u63AB\u6376\u63A3\u638F\u6389\u639F\u63B5\u636B"],["9d80","\u6369\u63BE\u63E9\u63C0\u63C6\u63E3\u63C9\u63D2\u63F6\u63C4\u6416\u6434\u6406\u6413\u6426\u6436\u651D\u6417\u6428\u640F\u6467\u646F\u6476\u644E\u652A\u6495\u6493\u64A5\u64A9\u6488\u64BC\u64DA\u64D2\u64C5\u64C7\u64BB\u64D8\u64C2\u64F1\u64E7\u8209\u64E0\u64E1\u62AC\u64E3\u64EF\u652C\u64F6\u64F4\u64F2\u64FA\u6500\u64FD\u6518\u651C\u6505\u6524\u6523\u652B\u6534\u6535\u6537\u6536\u6538\u754B\u6548\u6556\u6555\u654D\u6558\u655E\u655D\u6572\u6578\u6582\u6583\u8B8A\u659B\u659F\u65AB\u65B7\u65C3\u65C6\u65C1\u65C4\u65CC\u65D2\u65DB\u65D9\u65E0\u65E1\u65F1\u6772\u660A\u6603\u65FB\u6773\u6635\u6636\u6634\u661C\u664F\u6644\u6649\u6641\u665E\u665D\u6664\u6667\u6668\u665F\u6662\u6670\u6683\u6688\u668E\u6689\u6684\u6698\u669D\u66C1\u66B9\u66C9\u66BE\u66BC"],["9e40","\u66C4\u66B8\u66D6\u66DA\u66E0\u663F\u66E6\u66E9\u66F0\u66F5\u66F7\u670F\u6716\u671E\u6726\u6727\u9738\u672E\u673F\u6736\u6741\u6738\u6737\u6746\u675E\u6760\u6759\u6763\u6764\u6789\u6770\u67A9\u677C\u676A\u678C\u678B\u67A6\u67A1\u6785\u67B7\u67EF\u67B4\u67EC\u67B3\u67E9\u67B8\u67E4\u67DE\u67DD\u67E2\u67EE\u67B9\u67CE\u67C6\u67E7\u6A9C\u681E\u6846\u6829\u6840\u684D\u6832\u684E"],["9e80","\u68B3\u682B\u6859\u6863\u6877\u687F\u689F\u688F\u68AD\u6894\u689D\u689B\u6883\u6AAE\u68B9\u6874\u68B5\u68A0\u68BA\u690F\u688D\u687E\u6901\u68CA\u6908\u68D8\u6922\u6926\u68E1\u690C\u68CD\u68D4\u68E7\u68D5\u6936\u6912\u6904\u68D7\u68E3\u6925\u68F9\u68E0\u68EF\u6928\u692A\u691A\u6923\u6921\u68C6\u6979\u6977\u695C\u6978\u696B\u6954\u697E\u696E\u6939\u6974\u693D\u6959\u6930\u6961\u695E\u695D\u6981\u696A\u69B2\u69AE\u69D0\u69BF\u69C1\u69D3\u69BE\u69CE\u5BE8\u69CA\u69DD\u69BB\u69C3\u69A7\u6A2E\u6991\u69A0\u699C\u6995\u69B4\u69DE\u69E8\u6A02\u6A1B\u69FF\u6B0A\u69F9\u69F2\u69E7\u6A05\u69B1\u6A1E\u69ED\u6A14\u69EB\u6A0A\u6A12\u6AC1\u6A23\u6A13\u6A44\u6A0C\u6A72\u6A36\u6A78\u6A47\u6A62\u6A59\u6A66\u6A48\u6A38\u6A22\u6A90\u6A8D\u6AA0\u6A84\u6AA2\u6AA3"],["9f40","\u6A97\u8617\u6ABB\u6AC3\u6AC2\u6AB8\u6AB3\u6AAC\u6ADE\u6AD1\u6ADF\u6AAA\u6ADA\u6AEA\u6AFB\u6B05\u8616\u6AFA\u6B12\u6B16\u9B31\u6B1F\u6B38\u6B37\u76DC\u6B39\u98EE\u6B47\u6B43\u6B49\u6B50\u6B59\u6B54\u6B5B\u6B5F\u6B61\u6B78\u6B79\u6B7F\u6B80\u6B84\u6B83\u6B8D\u6B98\u6B95\u6B9E\u6BA4\u6BAA\u6BAB\u6BAF\u6BB2\u6BB1\u6BB3\u6BB7\u6BBC\u6BC6\u6BCB\u6BD3\u6BDF\u6BEC\u6BEB\u6BF3\u6BEF"],["9f80","\u9EBE\u6C08\u6C13\u6C14\u6C1B\u6C24\u6C23\u6C5E\u6C55\u6C62\u6C6A\u6C82\u6C8D\u6C9A\u6C81\u6C9B\u6C7E\u6C68\u6C73\u6C92\u6C90\u6CC4\u6CF1\u6CD3\u6CBD\u6CD7\u6CC5\u6CDD\u6CAE\u6CB1\u6CBE\u6CBA\u6CDB\u6CEF\u6CD9\u6CEA\u6D1F\u884D\u6D36\u6D2B\u6D3D\u6D38\u6D19\u6D35\u6D33\u6D12\u6D0C\u6D63\u6D93\u6D64\u6D5A\u6D79\u6D59\u6D8E\u6D95\u6FE4\u6D85\u6DF9\u6E15\u6E0A\u6DB5\u6DC7\u6DE6\u6DB8\u6DC6\u6DEC\u6DDE\u6DCC\u6DE8\u6DD2\u6DC5\u6DFA\u6DD9\u6DE4\u6DD5\u6DEA\u6DEE\u6E2D\u6E6E\u6E2E\u6E19\u6E72\u6E5F\u6E3E\u6E23\u6E6B\u6E2B\u6E76\u6E4D\u6E1F\u6E43\u6E3A\u6E4E\u6E24\u6EFF\u6E1D\u6E38\u6E82\u6EAA\u6E98\u6EC9\u6EB7\u6ED3\u6EBD\u6EAF\u6EC4\u6EB2\u6ED4\u6ED5\u6E8F\u6EA5\u6EC2\u6E9F\u6F41\u6F11\u704C\u6EEC\u6EF8\u6EFE\u6F3F\u6EF2\u6F31\u6EEF\u6F32\u6ECC"],["e040","\u6F3E\u6F13\u6EF7\u6F86\u6F7A\u6F78\u6F81\u6F80\u6F6F\u6F5B\u6FF3\u6F6D\u6F82\u6F7C\u6F58\u6F8E\u6F91\u6FC2\u6F66\u6FB3\u6FA3\u6FA1\u6FA4\u6FB9\u6FC6\u6FAA\u6FDF\u6FD5\u6FEC\u6FD4\u6FD8\u6FF1\u6FEE\u6FDB\u7009\u700B\u6FFA\u7011\u7001\u700F\u6FFE\u701B\u701A\u6F74\u701D\u7018\u701F\u7030\u703E\u7032\u7051\u7063\u7099\u7092\u70AF\u70F1\u70AC\u70B8\u70B3\u70AE\u70DF\u70CB\u70DD"],["e080","\u70D9\u7109\u70FD\u711C\u7119\u7165\u7155\u7188\u7166\u7162\u714C\u7156\u716C\u718F\u71FB\u7184\u7195\u71A8\u71AC\u71D7\u71B9\u71BE\u71D2\u71C9\u71D4\u71CE\u71E0\u71EC\u71E7\u71F5\u71FC\u71F9\u71FF\u720D\u7210\u721B\u7228\u722D\u722C\u7230\u7232\u723B\u723C\u723F\u7240\u7246\u724B\u7258\u7274\u727E\u7282\u7281\u7287\u7292\u7296\u72A2\u72A7\u72B9\u72B2\u72C3\u72C6\u72C4\u72CE\u72D2\u72E2\u72E0\u72E1\u72F9\u72F7\u500F\u7317\u730A\u731C\u7316\u731D\u7334\u732F\u7329\u7325\u733E\u734E\u734F\u9ED8\u7357\u736A\u7368\u7370\u7378\u7375\u737B\u737A\u73C8\u73B3\u73CE\u73BB\u73C0\u73E5\u73EE\u73DE\u74A2\u7405\u746F\u7425\u73F8\u7432\u743A\u7455\u743F\u745F\u7459\u7441\u745C\u7469\u7470\u7463\u746A\u7476\u747E\u748B\u749E\u74A7\u74CA\u74CF\u74D4\u73F1"],["e140","\u74E0\u74E3\u74E7\u74E9\u74EE\u74F2\u74F0\u74F1\u74F8\u74F7\u7504\u7503\u7505\u750C\u750E\u750D\u7515\u7513\u751E\u7526\u752C\u753C\u7544\u754D\u754A\u7549\u755B\u7546\u755A\u7569\u7564\u7567\u756B\u756D\u7578\u7576\u7586\u7587\u7574\u758A\u7589\u7582\u7594\u759A\u759D\u75A5\u75A3\u75C2\u75B3\u75C3\u75B5\u75BD\u75B8\u75BC\u75B1\u75CD\u75CA\u75D2\u75D9\u75E3\u75DE\u75FE\u75FF"],["e180","\u75FC\u7601\u75F0\u75FA\u75F2\u75F3\u760B\u760D\u7609\u761F\u7627\u7620\u7621\u7622\u7624\u7634\u7630\u763B\u7647\u7648\u7646\u765C\u7658\u7661\u7662\u7668\u7669\u766A\u7667\u766C\u7670\u7672\u7676\u7678\u767C\u7680\u7683\u7688\u768B\u768E\u7696\u7693\u7699\u769A\u76B0\u76B4\u76B8\u76B9\u76BA\u76C2\u76CD\u76D6\u76D2\u76DE\u76E1\u76E5\u76E7\u76EA\u862F\u76FB\u7708\u7707\u7704\u7729\u7724\u771E\u7725\u7726\u771B\u7737\u7738\u7747\u775A\u7768\u776B\u775B\u7765\u777F\u777E\u7779\u778E\u778B\u7791\u77A0\u779E\u77B0\u77B6\u77B9\u77BF\u77BC\u77BD\u77BB\u77C7\u77CD\u77D7\u77DA\u77DC\u77E3\u77EE\u77FC\u780C\u7812\u7926\u7820\u792A\u7845\u788E\u7874\u7886\u787C\u789A\u788C\u78A3\u78B5\u78AA\u78AF\u78D1\u78C6\u78CB\u78D4\u78BE\u78BC\u78C5\u78CA\u78EC"],["e240","\u78E7\u78DA\u78FD\u78F4\u7907\u7912\u7911\u7919\u792C\u792B\u7940\u7960\u7957\u795F\u795A\u7955\u7953\u797A\u797F\u798A\u799D\u79A7\u9F4B\u79AA\u79AE\u79B3\u79B9\u79BA\u79C9\u79D5\u79E7\u79EC\u79E1\u79E3\u7A08\u7A0D\u7A18\u7A19\u7A20\u7A1F\u7980\u7A31\u7A3B\u7A3E\u7A37\u7A43\u7A57\u7A49\u7A61\u7A62\u7A69\u9F9D\u7A70\u7A79\u7A7D\u7A88\u7A97\u7A95\u7A98\u7A96\u7AA9\u7AC8\u7AB0"],["e280","\u7AB6\u7AC5\u7AC4\u7ABF\u9083\u7AC7\u7ACA\u7ACD\u7ACF\u7AD5\u7AD3\u7AD9\u7ADA\u7ADD\u7AE1\u7AE2\u7AE6\u7AED\u7AF0\u7B02\u7B0F\u7B0A\u7B06\u7B33\u7B18\u7B19\u7B1E\u7B35\u7B28\u7B36\u7B50\u7B7A\u7B04\u7B4D\u7B0B\u7B4C\u7B45\u7B75\u7B65\u7B74\u7B67\u7B70\u7B71\u7B6C\u7B6E\u7B9D\u7B98\u7B9F\u7B8D\u7B9C\u7B9A\u7B8B\u7B92\u7B8F\u7B5D\u7B99\u7BCB\u7BC1\u7BCC\u7BCF\u7BB4\u7BC6\u7BDD\u7BE9\u7C11\u7C14\u7BE6\u7BE5\u7C60\u7C00\u7C07\u7C13\u7BF3\u7BF7\u7C17\u7C0D\u7BF6\u7C23\u7C27\u7C2A\u7C1F\u7C37\u7C2B\u7C3D\u7C4C\u7C43\u7C54\u7C4F\u7C40\u7C50\u7C58\u7C5F\u7C64\u7C56\u7C65\u7C6C\u7C75\u7C83\u7C90\u7CA4\u7CAD\u7CA2\u7CAB\u7CA1\u7CA8\u7CB3\u7CB2\u7CB1\u7CAE\u7CB9\u7CBD\u7CC0\u7CC5\u7CC2\u7CD8\u7CD2\u7CDC\u7CE2\u9B3B\u7CEF\u7CF2\u7CF4\u7CF6\u7CFA\u7D06"],["e340","\u7D02\u7D1C\u7D15\u7D0A\u7D45\u7D4B\u7D2E\u7D32\u7D3F\u7D35\u7D46\u7D73\u7D56\u7D4E\u7D72\u7D68\u7D6E\u7D4F\u7D63\u7D93\u7D89\u7D5B\u7D8F\u7D7D\u7D9B\u7DBA\u7DAE\u7DA3\u7DB5\u7DC7\u7DBD\u7DAB\u7E3D\u7DA2\u7DAF\u7DDC\u7DB8\u7D9F\u7DB0\u7DD8\u7DDD\u7DE4\u7DDE\u7DFB\u7DF2\u7DE1\u7E05\u7E0A\u7E23\u7E21\u7E12\u7E31\u7E1F\u7E09\u7E0B\u7E22\u7E46\u7E66\u7E3B\u7E35\u7E39\u7E43\u7E37"],["e380","\u7E32\u7E3A\u7E67\u7E5D\u7E56\u7E5E\u7E59\u7E5A\u7E79\u7E6A\u7E69\u7E7C\u7E7B\u7E83\u7DD5\u7E7D\u8FAE\u7E7F\u7E88\u7E89\u7E8C\u7E92\u7E90\u7E93\u7E94\u7E96\u7E8E\u7E9B\u7E9C\u7F38\u7F3A\u7F45\u7F4C\u7F4D\u7F4E\u7F50\u7F51\u7F55\u7F54\u7F58\u7F5F\u7F60\u7F68\u7F69\u7F67\u7F78\u7F82\u7F86\u7F83\u7F88\u7F87\u7F8C\u7F94\u7F9E\u7F9D\u7F9A\u7FA3\u7FAF\u7FB2\u7FB9\u7FAE\u7FB6\u7FB8\u8B71\u7FC5\u7FC6\u7FCA\u7FD5\u7FD4\u7FE1\u7FE6\u7FE9\u7FF3\u7FF9\u98DC\u8006\u8004\u800B\u8012\u8018\u8019\u801C\u8021\u8028\u803F\u803B\u804A\u8046\u8052\u8058\u805A\u805F\u8062\u8068\u8073\u8072\u8070\u8076\u8079\u807D\u807F\u8084\u8086\u8085\u809B\u8093\u809A\u80AD\u5190\u80AC\u80DB\u80E5\u80D9\u80DD\u80C4\u80DA\u80D6\u8109\u80EF\u80F1\u811B\u8129\u8123\u812F\u814B"],["e440","\u968B\u8146\u813E\u8153\u8151\u80FC\u8171\u816E\u8165\u8166\u8174\u8183\u8188\u818A\u8180\u8182\u81A0\u8195\u81A4\u81A3\u815F\u8193\u81A9\u81B0\u81B5\u81BE\u81B8\u81BD\u81C0\u81C2\u81BA\u81C9\u81CD\u81D1\u81D9\u81D8\u81C8\u81DA\u81DF\u81E0\u81E7\u81FA\u81FB\u81FE\u8201\u8202\u8205\u8207\u820A\u820D\u8210\u8216\u8229\u822B\u8238\u8233\u8240\u8259\u8258\u825D\u825A\u825F\u8264"],["e480","\u8262\u8268\u826A\u826B\u822E\u8271\u8277\u8278\u827E\u828D\u8292\u82AB\u829F\u82BB\u82AC\u82E1\u82E3\u82DF\u82D2\u82F4\u82F3\u82FA\u8393\u8303\u82FB\u82F9\u82DE\u8306\u82DC\u8309\u82D9\u8335\u8334\u8316\u8332\u8331\u8340\u8339\u8350\u8345\u832F\u832B\u8317\u8318\u8385\u839A\u83AA\u839F\u83A2\u8396\u8323\u838E\u8387\u838A\u837C\u83B5\u8373\u8375\u83A0\u8389\u83A8\u83F4\u8413\u83EB\u83CE\u83FD\u8403\u83D8\u840B\u83C1\u83F7\u8407\u83E0\u83F2\u840D\u8422\u8420\u83BD\u8438\u8506\u83FB\u846D\u842A\u843C\u855A\u8484\u8477\u846B\u84AD\u846E\u8482\u8469\u8446\u842C\u846F\u8479\u8435\u84CA\u8462\u84B9\u84BF\u849F\u84D9\u84CD\u84BB\u84DA\u84D0\u84C1\u84C6\u84D6\u84A1\u8521\u84FF\u84F4\u8517\u8518\u852C\u851F\u8515\u8514\u84FC\u8540\u8563\u8558\u8548"],["e540","\u8541\u8602\u854B\u8555\u8580\u85A4\u8588\u8591\u858A\u85A8\u856D\u8594\u859B\u85EA\u8587\u859C\u8577\u857E\u8590\u85C9\u85BA\u85CF\u85B9\u85D0\u85D5\u85DD\u85E5\u85DC\u85F9\u860A\u8613\u860B\u85FE\u85FA\u8606\u8622\u861A\u8630\u863F\u864D\u4E55\u8654\u865F\u8667\u8671\u8693\u86A3\u86A9\u86AA\u868B\u868C\u86B6\u86AF\u86C4\u86C6\u86B0\u86C9\u8823\u86AB\u86D4\u86DE\u86E9\u86EC"],["e580","\u86DF\u86DB\u86EF\u8712\u8706\u8708\u8700\u8703\u86FB\u8711\u8709\u870D\u86F9\u870A\u8734\u873F\u8737\u873B\u8725\u8729\u871A\u8760\u875F\u8778\u874C\u874E\u8774\u8757\u8768\u876E\u8759\u8753\u8763\u876A\u8805\u87A2\u879F\u8782\u87AF\u87CB\u87BD\u87C0\u87D0\u96D6\u87AB\u87C4\u87B3\u87C7\u87C6\u87BB\u87EF\u87F2\u87E0\u880F\u880D\u87FE\u87F6\u87F7\u880E\u87D2\u8811\u8816\u8815\u8822\u8821\u8831\u8836\u8839\u8827\u883B\u8844\u8842\u8852\u8859\u885E\u8862\u886B\u8881\u887E\u889E\u8875\u887D\u88B5\u8872\u8882\u8897\u8892\u88AE\u8899\u88A2\u888D\u88A4\u88B0\u88BF\u88B1\u88C3\u88C4\u88D4\u88D8\u88D9\u88DD\u88F9\u8902\u88FC\u88F4\u88E8\u88F2\u8904\u890C\u890A\u8913\u8943\u891E\u8925\u892A\u892B\u8941\u8944\u893B\u8936\u8938\u894C\u891D\u8960\u895E"],["e640","\u8966\u8964\u896D\u896A\u896F\u8974\u8977\u897E\u8983\u8988\u898A\u8993\u8998\u89A1\u89A9\u89A6\u89AC\u89AF\u89B2\u89BA\u89BD\u89BF\u89C0\u89DA\u89DC\u89DD\u89E7\u89F4\u89F8\u8A03\u8A16\u8A10\u8A0C\u8A1B\u8A1D\u8A25\u8A36\u8A41\u8A5B\u8A52\u8A46\u8A48\u8A7C\u8A6D\u8A6C\u8A62\u8A85\u8A82\u8A84\u8AA8\u8AA1\u8A91\u8AA5\u8AA6\u8A9A\u8AA3\u8AC4\u8ACD\u8AC2\u8ADA\u8AEB\u8AF3\u8AE7"],["e680","\u8AE4\u8AF1\u8B14\u8AE0\u8AE2\u8AF7\u8ADE\u8ADB\u8B0C\u8B07\u8B1A\u8AE1\u8B16\u8B10\u8B17\u8B20\u8B33\u97AB\u8B26\u8B2B\u8B3E\u8B28\u8B41\u8B4C\u8B4F\u8B4E\u8B49\u8B56\u8B5B\u8B5A\u8B6B\u8B5F\u8B6C\u8B6F\u8B74\u8B7D\u8B80\u8B8C\u8B8E\u8B92\u8B93\u8B96\u8B99\u8B9A\u8C3A\u8C41\u8C3F\u8C48\u8C4C\u8C4E\u8C50\u8C55\u8C62\u8C6C\u8C78\u8C7A\u8C82\u8C89\u8C85\u8C8A\u8C8D\u8C8E\u8C94\u8C7C\u8C98\u621D\u8CAD\u8CAA\u8CBD\u8CB2\u8CB3\u8CAE\u8CB6\u8CC8\u8CC1\u8CE4\u8CE3\u8CDA\u8CFD\u8CFA\u8CFB\u8D04\u8D05\u8D0A\u8D07\u8D0F\u8D0D\u8D10\u9F4E\u8D13\u8CCD\u8D14\u8D16\u8D67\u8D6D\u8D71\u8D73\u8D81\u8D99\u8DC2\u8DBE\u8DBA\u8DCF\u8DDA\u8DD6\u8DCC\u8DDB\u8DCB\u8DEA\u8DEB\u8DDF\u8DE3\u8DFC\u8E08\u8E09\u8DFF\u8E1D\u8E1E\u8E10\u8E1F\u8E42\u8E35\u8E30\u8E34\u8E4A"],["e740","\u8E47\u8E49\u8E4C\u8E50\u8E48\u8E59\u8E64\u8E60\u8E2A\u8E63\u8E55\u8E76\u8E72\u8E7C\u8E81\u8E87\u8E85\u8E84\u8E8B\u8E8A\u8E93\u8E91\u8E94\u8E99\u8EAA\u8EA1\u8EAC\u8EB0\u8EC6\u8EB1\u8EBE\u8EC5\u8EC8\u8ECB\u8EDB\u8EE3\u8EFC\u8EFB\u8EEB\u8EFE\u8F0A\u8F05\u8F15\u8F12\u8F19\u8F13\u8F1C\u8F1F\u8F1B\u8F0C\u8F26\u8F33\u8F3B\u8F39\u8F45\u8F42\u8F3E\u8F4C\u8F49\u8F46\u8F4E\u8F57\u8F5C"],["e780","\u8F62\u8F63\u8F64\u8F9C\u8F9F\u8FA3\u8FAD\u8FAF\u8FB7\u8FDA\u8FE5\u8FE2\u8FEA\u8FEF\u9087\u8FF4\u9005\u8FF9\u8FFA\u9011\u9015\u9021\u900D\u901E\u9016\u900B\u9027\u9036\u9035\u9039\u8FF8\u904F\u9050\u9051\u9052\u900E\u9049\u903E\u9056\u9058\u905E\u9068\u906F\u9076\u96A8\u9072\u9082\u907D\u9081\u9080\u908A\u9089\u908F\u90A8\u90AF\u90B1\u90B5\u90E2\u90E4\u6248\u90DB\u9102\u9112\u9119\u9132\u9130\u914A\u9156\u9158\u9163\u9165\u9169\u9173\u9172\u918B\u9189\u9182\u91A2\u91AB\u91AF\u91AA\u91B5\u91B4\u91BA\u91C0\u91C1\u91C9\u91CB\u91D0\u91D6\u91DF\u91E1\u91DB\u91FC\u91F5\u91F6\u921E\u91FF\u9214\u922C\u9215\u9211\u925E\u9257\u9245\u9249\u9264\u9248\u9295\u923F\u924B\u9250\u929C\u9296\u9293\u929B\u925A\u92CF\u92B9\u92B7\u92E9\u930F\u92FA\u9344\u932E"],["e840","\u9319\u9322\u931A\u9323\u933A\u9335\u933B\u935C\u9360\u937C\u936E\u9356\u93B0\u93AC\u93AD\u9394\u93B9\u93D6\u93D7\u93E8\u93E5\u93D8\u93C3\u93DD\u93D0\u93C8\u93E4\u941A\u9414\u9413\u9403\u9407\u9410\u9436\u942B\u9435\u9421\u943A\u9441\u9452\u9444\u945B\u9460\u9462\u945E\u946A\u9229\u9470\u9475\u9477\u947D\u945A\u947C\u947E\u9481\u947F\u9582\u9587\u958A\u9594\u9596\u9598\u9599"],["e880","\u95A0\u95A8\u95A7\u95AD\u95BC\u95BB\u95B9\u95BE\u95CA\u6FF6\u95C3\u95CD\u95CC\u95D5\u95D4\u95D6\u95DC\u95E1\u95E5\u95E2\u9621\u9628\u962E\u962F\u9642\u964C\u964F\u964B\u9677\u965C\u965E\u965D\u965F\u9666\u9672\u966C\u968D\u9698\u9695\u9697\u96AA\u96A7\u96B1\u96B2\u96B0\u96B4\u96B6\u96B8\u96B9\u96CE\u96CB\u96C9\u96CD\u894D\u96DC\u970D\u96D5\u96F9\u9704\u9706\u9708\u9713\u970E\u9711\u970F\u9716\u9719\u9724\u972A\u9730\u9739\u973D\u973E\u9744\u9746\u9748\u9742\u9749\u975C\u9760\u9764\u9766\u9768\u52D2\u976B\u9771\u9779\u9785\u977C\u9781\u977A\u9786\u978B\u978F\u9790\u979C\u97A8\u97A6\u97A3\u97B3\u97B4\u97C3\u97C6\u97C8\u97CB\u97DC\u97ED\u9F4F\u97F2\u7ADF\u97F6\u97F5\u980F\u980C\u9838\u9824\u9821\u9837\u983D\u9846\u984F\u984B\u986B\u986F\u9870"],["e940","\u9871\u9874\u9873\u98AA\u98AF\u98B1\u98B6\u98C4\u98C3\u98C6\u98E9\u98EB\u9903\u9909\u9912\u9914\u9918\u9921\u991D\u991E\u9924\u9920\u992C\u992E\u993D\u993E\u9942\u9949\u9945\u9950\u994B\u9951\u9952\u994C\u9955\u9997\u9998\u99A5\u99AD\u99AE\u99BC\u99DF\u99DB\u99DD\u99D8\u99D1\u99ED\u99EE\u99F1\u99F2\u99FB\u99F8\u9A01\u9A0F\u9A05\u99E2\u9A19\u9A2B\u9A37\u9A45\u9A42\u9A40\u9A43"],["e980","\u9A3E\u9A55\u9A4D\u9A5B\u9A57\u9A5F\u9A62\u9A65\u9A64\u9A69\u9A6B\u9A6A\u9AAD\u9AB0\u9ABC\u9AC0\u9ACF\u9AD1\u9AD3\u9AD4\u9ADE\u9ADF\u9AE2\u9AE3\u9AE6\u9AEF\u9AEB\u9AEE\u9AF4\u9AF1\u9AF7\u9AFB\u9B06\u9B18\u9B1A\u9B1F\u9B22\u9B23\u9B25\u9B27\u9B28\u9B29\u9B2A\u9B2E\u9B2F\u9B32\u9B44\u9B43\u9B4F\u9B4D\u9B4E\u9B51\u9B58\u9B74\u9B93\u9B83\u9B91\u9B96\u9B97\u9B9F\u9BA0\u9BA8\u9BB4\u9BC0\u9BCA\u9BB9\u9BC6\u9BCF\u9BD1\u9BD2\u9BE3\u9BE2\u9BE4\u9BD4\u9BE1\u9C3A\u9BF2\u9BF1\u9BF0\u9C15\u9C14\u9C09\u9C13\u9C0C\u9C06\u9C08\u9C12\u9C0A\u9C04\u9C2E\u9C1B\u9C25\u9C24\u9C21\u9C30\u9C47\u9C32\u9C46\u9C3E\u9C5A\u9C60\u9C67\u9C76\u9C78\u9CE7\u9CEC\u9CF0\u9D09\u9D08\u9CEB\u9D03\u9D06\u9D2A\u9D26\u9DAF\u9D23\u9D1F\u9D44\u9D15\u9D12\u9D41\u9D3F\u9D3E\u9D46\u9D48"],["ea40","\u9D5D\u9D5E\u9D64\u9D51\u9D50\u9D59\u9D72\u9D89\u9D87\u9DAB\u9D6F\u9D7A\u9D9A\u9DA4\u9DA9\u9DB2\u9DC4\u9DC1\u9DBB\u9DB8\u9DBA\u9DC6\u9DCF\u9DC2\u9DD9\u9DD3\u9DF8\u9DE6\u9DED\u9DEF\u9DFD\u9E1A\u9E1B\u9E1E\u9E75\u9E79\u9E7D\u9E81\u9E88\u9E8B\u9E8C\u9E92\u9E95\u9E91\u9E9D\u9EA5\u9EA9\u9EB8\u9EAA\u9EAD\u9761\u9ECC\u9ECE\u9ECF\u9ED0\u9ED4\u9EDC\u9EDE\u9EDD\u9EE0\u9EE5\u9EE8\u9EEF"],["ea80","\u9EF4\u9EF6\u9EF7\u9EF9\u9EFB\u9EFC\u9EFD\u9F07\u9F08\u76B7\u9F15\u9F21\u9F2C\u9F3E\u9F4A\u9F52\u9F54\u9F63\u9F5F\u9F60\u9F61\u9F66\u9F67\u9F6C\u9F6A\u9F77\u9F72\u9F76\u9F95\u9F9C\u9FA0\u582F\u69C7\u9059\u7464\u51DC\u7199"],["ed40","\u7E8A\u891C\u9348\u9288\u84DC\u4FC9\u70BB\u6631\u68C8\u92F9\u66FB\u5F45\u4E28\u4EE1\u4EFC\u4F00\u4F03\u4F39\u4F56\u4F92\u4F8A\u4F9A\u4F94\u4FCD\u5040\u5022\u4FFF\u501E\u5046\u5070\u5042\u5094\u50F4\u50D8\u514A\u5164\u519D\u51BE\u51EC\u5215\u529C\u52A6\u52C0\u52DB\u5300\u5307\u5324\u5372\u5393\u53B2\u53DD\uFA0E\u549C\u548A\u54A9\u54FF\u5586\u5759\u5765\u57AC\u57C8\u57C7\uFA0F"],["ed80","\uFA10\u589E\u58B2\u590B\u5953\u595B\u595D\u5963\u59A4\u59BA\u5B56\u5BC0\u752F\u5BD8\u5BEC\u5C1E\u5CA6\u5CBA\u5CF5\u5D27\u5D53\uFA11\u5D42\u5D6D\u5DB8\u5DB9\u5DD0\u5F21\u5F34\u5F67\u5FB7\u5FDE\u605D\u6085\u608A\u60DE\u60D5\u6120\u60F2\u6111\u6137\u6130\u6198\u6213\u62A6\u63F5\u6460\u649D\u64CE\u654E\u6600\u6615\u663B\u6609\u662E\u661E\u6624\u6665\u6657\u6659\uFA12\u6673\u6699\u66A0\u66B2\u66BF\u66FA\u670E\uF929\u6766\u67BB\u6852\u67C0\u6801\u6844\u68CF\uFA13\u6968\uFA14\u6998\u69E2\u6A30\u6A6B\u6A46\u6A73\u6A7E\u6AE2\u6AE4\u6BD6\u6C3F\u6C5C\u6C86\u6C6F\u6CDA\u6D04\u6D87\u6D6F\u6D96\u6DAC\u6DCF\u6DF8\u6DF2\u6DFC\u6E39\u6E5C\u6E27\u6E3C\u6EBF\u6F88\u6FB5\u6FF5\u7005\u7007\u7028\u7085\u70AB\u710F\u7104\u715C\u7146\u7147\uFA15\u71C1\u71FE\u72B1"],["ee40","\u72BE\u7324\uFA16\u7377\u73BD\u73C9\u73D6\u73E3\u73D2\u7407\u73F5\u7426\u742A\u7429\u742E\u7462\u7489\u749F\u7501\u756F\u7682\u769C\u769E\u769B\u76A6\uFA17\u7746\u52AF\u7821\u784E\u7864\u787A\u7930\uFA18\uFA19\uFA1A\u7994\uFA1B\u799B\u7AD1\u7AE7\uFA1C\u7AEB\u7B9E\uFA1D\u7D48\u7D5C\u7DB7\u7DA0\u7DD6\u7E52\u7F47\u7FA1\uFA1E\u8301\u8362\u837F\u83C7\u83F6\u8448\u84B4\u8553\u8559"],["ee80","\u856B\uFA1F\u85B0\uFA20\uFA21\u8807\u88F5\u8A12\u8A37\u8A79\u8AA7\u8ABE\u8ADF\uFA22\u8AF6\u8B53\u8B7F\u8CF0\u8CF4\u8D12\u8D76\uFA23\u8ECF\uFA24\uFA25\u9067\u90DE\uFA26\u9115\u9127\u91DA\u91D7\u91DE\u91ED\u91EE\u91E4\u91E5\u9206\u9210\u920A\u923A\u9240\u923C\u924E\u9259\u9251\u9239\u9267\u92A7\u9277\u9278\u92E7\u92D7\u92D9\u92D0\uFA27\u92D5\u92E0\u92D3\u9325\u9321\u92FB\uFA28\u931E\u92FF\u931D\u9302\u9370\u9357\u93A4\u93C6\u93DE\u93F8\u9431\u9445\u9448\u9592\uF9DC\uFA29\u969D\u96AF\u9733\u973B\u9743\u974D\u974F\u9751\u9755\u9857\u9865\uFA2A\uFA2B\u9927\uFA2C\u999E\u9A4E\u9AD9\u9ADC\u9B75\u9B72\u9B8F\u9BB1\u9BBB\u9C00\u9D70\u9D6B\uFA2D\u9E19\u9ED1"],["eeef","\u2170",9,"\uFFE2\uFFE4\uFF07\uFF02"],["f040","\uE000",62],["f080","\uE03F",124],["f140","\uE0BC",62],["f180","\uE0FB",124],["f240","\uE178",62],["f280","\uE1B7",124],["f340","\uE234",62],["f380","\uE273",124],["f440","\uE2F0",62],["f480","\uE32F",124],["f540","\uE3AC",62],["f580","\uE3EB",124],["f640","\uE468",62],["f680","\uE4A7",124],["f740","\uE524",62],["f780","\uE563",124],["f840","\uE5E0",62],["f880","\uE61F",124],["f940","\uE69C"],["fa40","\u2170",9,"\u2160",9,"\uFFE2\uFFE4\uFF07\uFF02\u3231\u2116\u2121\u2235\u7E8A\u891C\u9348\u9288\u84DC\u4FC9\u70BB\u6631\u68C8\u92F9\u66FB\u5F45\u4E28\u4EE1\u4EFC\u4F00\u4F03\u4F39\u4F56\u4F92\u4F8A\u4F9A\u4F94\u4FCD\u5040\u5022\u4FFF\u501E\u5046\u5070\u5042\u5094\u50F4\u50D8\u514A"],["fa80","\u5164\u519D\u51BE\u51EC\u5215\u529C\u52A6\u52C0\u52DB\u5300\u5307\u5324\u5372\u5393\u53B2\u53DD\uFA0E\u549C\u548A\u54A9\u54FF\u5586\u5759\u5765\u57AC\u57C8\u57C7\uFA0F\uFA10\u589E\u58B2\u590B\u5953\u595B\u595D\u5963\u59A4\u59BA\u5B56\u5BC0\u752F\u5BD8\u5BEC\u5C1E\u5CA6\u5CBA\u5CF5\u5D27\u5D53\uFA11\u5D42\u5D6D\u5DB8\u5DB9\u5DD0\u5F21\u5F34\u5F67\u5FB7\u5FDE\u605D\u6085\u608A\u60DE\u60D5\u6120\u60F2\u6111\u6137\u6130\u6198\u6213\u62A6\u63F5\u6460\u649D\u64CE\u654E\u6600\u6615\u663B\u6609\u662E\u661E\u6624\u6665\u6657\u6659\uFA12\u6673\u6699\u66A0\u66B2\u66BF\u66FA\u670E\uF929\u6766\u67BB\u6852\u67C0\u6801\u6844\u68CF\uFA13\u6968\uFA14\u6998\u69E2\u6A30\u6A6B\u6A46\u6A73\u6A7E\u6AE2\u6AE4\u6BD6\u6C3F\u6C5C\u6C86\u6C6F\u6CDA\u6D04\u6D87\u6D6F"],["fb40","\u6D96\u6DAC\u6DCF\u6DF8\u6DF2\u6DFC\u6E39\u6E5C\u6E27\u6E3C\u6EBF\u6F88\u6FB5\u6FF5\u7005\u7007\u7028\u7085\u70AB\u710F\u7104\u715C\u7146\u7147\uFA15\u71C1\u71FE\u72B1\u72BE\u7324\uFA16\u7377\u73BD\u73C9\u73D6\u73E3\u73D2\u7407\u73F5\u7426\u742A\u7429\u742E\u7462\u7489\u749F\u7501\u756F\u7682\u769C\u769E\u769B\u76A6\uFA17\u7746\u52AF\u7821\u784E\u7864\u787A\u7930\uFA18\uFA19"],["fb80","\uFA1A\u7994\uFA1B\u799B\u7AD1\u7AE7\uFA1C\u7AEB\u7B9E\uFA1D\u7D48\u7D5C\u7DB7\u7DA0\u7DD6\u7E52\u7F47\u7FA1\uFA1E\u8301\u8362\u837F\u83C7\u83F6\u8448\u84B4\u8553\u8559\u856B\uFA1F\u85B0\uFA20\uFA21\u8807\u88F5\u8A12\u8A37\u8A79\u8AA7\u8ABE\u8ADF\uFA22\u8AF6\u8B53\u8B7F\u8CF0\u8CF4\u8D12\u8D76\uFA23\u8ECF\uFA24\uFA25\u9067\u90DE\uFA26\u9115\u9127\u91DA\u91D7\u91DE\u91ED\u91EE\u91E4\u91E5\u9206\u9210\u920A\u923A\u9240\u923C\u924E\u9259\u9251\u9239\u9267\u92A7\u9277\u9278\u92E7\u92D7\u92D9\u92D0\uFA27\u92D5\u92E0\u92D3\u9325\u9321\u92FB\uFA28\u931E\u92FF\u931D\u9302\u9370\u9357\u93A4\u93C6\u93DE\u93F8\u9431\u9445\u9448\u9592\uF9DC\uFA29\u969D\u96AF\u9733\u973B\u9743\u974D\u974F\u9751\u9755\u9857\u9865\uFA2A\uFA2B\u9927\uFA2C\u999E\u9A4E\u9AD9"],["fc40","\u9ADC\u9B75\u9B72\u9B8F\u9BB1\u9BBB\u9C00\u9D70\u9D6B\uFA2D\u9E19\u9ED1"]],require$$1=[["0","\0",127],["8ea1","\uFF61",62],["a1a1","\u3000\u3001\u3002\uFF0C\uFF0E\u30FB\uFF1A\uFF1B\uFF1F\uFF01\u309B\u309C\xB4\uFF40\xA8\uFF3E\uFFE3\uFF3F\u30FD\u30FE\u309D\u309E\u3003\u4EDD\u3005\u3006\u3007\u30FC\u2015\u2010\uFF0F\uFF3C\uFF5E\u2225\uFF5C\u2026\u2025\u2018\u2019\u201C\u201D\uFF08\uFF09\u3014\u3015\uFF3B\uFF3D\uFF5B\uFF5D\u3008",9,"\uFF0B\uFF0D\xB1\xD7\xF7\uFF1D\u2260\uFF1C\uFF1E\u2266\u2267\u221E\u2234\u2642\u2640\xB0\u2032\u2033\u2103\uFFE5\uFF04\uFFE0\uFFE1\uFF05\uFF03\uFF06\uFF0A\uFF20\xA7\u2606\u2605\u25CB\u25CF\u25CE\u25C7"],["a2a1","\u25C6\u25A1\u25A0\u25B3\u25B2\u25BD\u25BC\u203B\u3012\u2192\u2190\u2191\u2193\u3013"],["a2ba","\u2208\u220B\u2286\u2287\u2282\u2283\u222A\u2229"],["a2ca","\u2227\u2228\uFFE2\u21D2\u21D4\u2200\u2203"],["a2dc","\u2220\u22A5\u2312\u2202\u2207\u2261\u2252\u226A\u226B\u221A\u223D\u221D\u2235\u222B\u222C"],["a2f2","\u212B\u2030\u266F\u266D\u266A\u2020\u2021\xB6"],["a2fe","\u25EF"],["a3b0","\uFF10",9],["a3c1","\uFF21",25],["a3e1","\uFF41",25],["a4a1","\u3041",82],["a5a1","\u30A1",85],["a6a1","\u0391",16,"\u03A3",6],["a6c1","\u03B1",16,"\u03C3",6],["a7a1","\u0410",5,"\u0401\u0416",25],["a7d1","\u0430",5,"\u0451\u0436",25],["a8a1","\u2500\u2502\u250C\u2510\u2518\u2514\u251C\u252C\u2524\u2534\u253C\u2501\u2503\u250F\u2513\u251B\u2517\u2523\u2533\u252B\u253B\u254B\u2520\u252F\u2528\u2537\u253F\u251D\u2530\u2525\u2538\u2542"],["ada1","\u2460",19,"\u2160",9],["adc0","\u3349\u3314\u3322\u334D\u3318\u3327\u3303\u3336\u3351\u3357\u330D\u3326\u3323\u332B\u334A\u333B\u339C\u339D\u339E\u338E\u338F\u33C4\u33A1"],["addf","\u337B\u301D\u301F\u2116\u33CD\u2121\u32A4",4,"\u3231\u3232\u3239\u337E\u337D\u337C\u2252\u2261\u222B\u222E\u2211\u221A\u22A5\u2220\u221F\u22BF\u2235\u2229\u222A"],["b0a1","\u4E9C\u5516\u5A03\u963F\u54C0\u611B\u6328\u59F6\u9022\u8475\u831C\u7A50\u60AA\u63E1\u6E25\u65ED\u8466\u82A6\u9BF5\u6893\u5727\u65A1\u6271\u5B9B\u59D0\u867B\u98F4\u7D62\u7DBE\u9B8E\u6216\u7C9F\u88B7\u5B89\u5EB5\u6309\u6697\u6848\u95C7\u978D\u674F\u4EE5\u4F0A\u4F4D\u4F9D\u5049\u56F2\u5937\u59D4\u5A01\u5C09\u60DF\u610F\u6170\u6613\u6905\u70BA\u754F\u7570\u79FB\u7DAD\u7DEF\u80C3\u840E\u8863\u8B02\u9055\u907A\u533B\u4E95\u4EA5\u57DF\u80B2\u90C1\u78EF\u4E00\u58F1\u6EA2\u9038\u7A32\u8328\u828B\u9C2F\u5141\u5370\u54BD\u54E1\u56E0\u59FB\u5F15\u98F2\u6DEB\u80E4\u852D"],["b1a1","\u9662\u9670\u96A0\u97FB\u540B\u53F3\u5B87\u70CF\u7FBD\u8FC2\u96E8\u536F\u9D5C\u7ABA\u4E11\u7893\u81FC\u6E26\u5618\u5504\u6B1D\u851A\u9C3B\u59E5\u53A9\u6D66\u74DC\u958F\u5642\u4E91\u904B\u96F2\u834F\u990C\u53E1\u55B6\u5B30\u5F71\u6620\u66F3\u6804\u6C38\u6CF3\u6D29\u745B\u76C8\u7A4E\u9834\u82F1\u885B\u8A60\u92ED\u6DB2\u75AB\u76CA\u99C5\u60A6\u8B01\u8D8A\u95B2\u698E\u53AD\u5186\u5712\u5830\u5944\u5BB4\u5EF6\u6028\u63A9\u63F4\u6CBF\u6F14\u708E\u7114\u7159\u71D5\u733F\u7E01\u8276\u82D1\u8597\u9060\u925B\u9D1B\u5869\u65BC\u6C5A\u7525\u51F9\u592E\u5965\u5F80\u5FDC"],["b2a1","\u62BC\u65FA\u6A2A\u6B27\u6BB4\u738B\u7FC1\u8956\u9D2C\u9D0E\u9EC4\u5CA1\u6C96\u837B\u5104\u5C4B\u61B6\u81C6\u6876\u7261\u4E59\u4FFA\u5378\u6069\u6E29\u7A4F\u97F3\u4E0B\u5316\u4EEE\u4F55\u4F3D\u4FA1\u4F73\u52A0\u53EF\u5609\u590F\u5AC1\u5BB6\u5BE1\u79D1\u6687\u679C\u67B6\u6B4C\u6CB3\u706B\u73C2\u798D\u79BE\u7A3C\u7B87\u82B1\u82DB\u8304\u8377\u83EF\u83D3\u8766\u8AB2\u5629\u8CA8\u8FE6\u904E\u971E\u868A\u4FC4\u5CE8\u6211\u7259\u753B\u81E5\u82BD\u86FE\u8CC0\u96C5\u9913\u99D5\u4ECB\u4F1A\u89E3\u56DE\u584A\u58CA\u5EFB\u5FEB\u602A\u6094\u6062\u61D0\u6212\u62D0\u6539"],["b3a1","\u9B41\u6666\u68B0\u6D77\u7070\u754C\u7686\u7D75\u82A5\u87F9\u958B\u968E\u8C9D\u51F1\u52BE\u5916\u54B3\u5BB3\u5D16\u6168\u6982\u6DAF\u788D\u84CB\u8857\u8A72\u93A7\u9AB8\u6D6C\u99A8\u86D9\u57A3\u67FF\u86CE\u920E\u5283\u5687\u5404\u5ED3\u62E1\u64B9\u683C\u6838\u6BBB\u7372\u78BA\u7A6B\u899A\u89D2\u8D6B\u8F03\u90ED\u95A3\u9694\u9769\u5B66\u5CB3\u697D\u984D\u984E\u639B\u7B20\u6A2B\u6A7F\u68B6\u9C0D\u6F5F\u5272\u559D\u6070\u62EC\u6D3B\u6E07\u6ED1\u845B\u8910\u8F44\u4E14\u9C39\u53F6\u691B\u6A3A\u9784\u682A\u515C\u7AC3\u84B2\u91DC\u938C\u565B\u9D28\u6822\u8305\u8431"],["b4a1","\u7CA5\u5208\u82C5\u74E6\u4E7E\u4F83\u51A0\u5BD2\u520A\u52D8\u52E7\u5DFB\u559A\u582A\u59E6\u5B8C\u5B98\u5BDB\u5E72\u5E79\u60A3\u611F\u6163\u61BE\u63DB\u6562\u67D1\u6853\u68FA\u6B3E\u6B53\u6C57\u6F22\u6F97\u6F45\u74B0\u7518\u76E3\u770B\u7AFF\u7BA1\u7C21\u7DE9\u7F36\u7FF0\u809D\u8266\u839E\u89B3\u8ACC\u8CAB\u9084\u9451\u9593\u9591\u95A2\u9665\u97D3\u9928\u8218\u4E38\u542B\u5CB8\u5DCC\u73A9\u764C\u773C\u5CA9\u7FEB\u8D0B\u96C1\u9811\u9854\u9858\u4F01\u4F0E\u5371\u559C\u5668\u57FA\u5947\u5B09\u5BC4\u5C90\u5E0C\u5E7E\u5FCC\u63EE\u673A\u65D7\u65E2\u671F\u68CB\u68C4"],["b5a1","\u6A5F\u5E30\u6BC5\u6C17\u6C7D\u757F\u7948\u5B63\u7A00\u7D00\u5FBD\u898F\u8A18\u8CB4\u8D77\u8ECC\u8F1D\u98E2\u9A0E\u9B3C\u4E80\u507D\u5100\u5993\u5B9C\u622F\u6280\u64EC\u6B3A\u72A0\u7591\u7947\u7FA9\u87FB\u8ABC\u8B70\u63AC\u83CA\u97A0\u5409\u5403\u55AB\u6854\u6A58\u8A70\u7827\u6775\u9ECD\u5374\u5BA2\u811A\u8650\u9006\u4E18\u4E45\u4EC7\u4F11\u53CA\u5438\u5BAE\u5F13\u6025\u6551\u673D\u6C42\u6C72\u6CE3\u7078\u7403\u7A76\u7AAE\u7B08\u7D1A\u7CFE\u7D66\u65E7\u725B\u53BB\u5C45\u5DE8\u62D2\u62E0\u6319\u6E20\u865A\u8A31\u8DDD\u92F8\u6F01\u79A6\u9B5A\u4EA8\u4EAB\u4EAC"],["b6a1","\u4F9B\u4FA0\u50D1\u5147\u7AF6\u5171\u51F6\u5354\u5321\u537F\u53EB\u55AC\u5883\u5CE1\u5F37\u5F4A\u602F\u6050\u606D\u631F\u6559\u6A4B\u6CC1\u72C2\u72ED\u77EF\u80F8\u8105\u8208\u854E\u90F7\u93E1\u97FF\u9957\u9A5A\u4EF0\u51DD\u5C2D\u6681\u696D\u5C40\u66F2\u6975\u7389\u6850\u7C81\u50C5\u52E4\u5747\u5DFE\u9326\u65A4\u6B23\u6B3D\u7434\u7981\u79BD\u7B4B\u7DCA\u82B9\u83CC\u887F\u895F\u8B39\u8FD1\u91D1\u541F\u9280\u4E5D\u5036\u53E5\u533A\u72D7\u7396\u77E9\u82E6\u8EAF\u99C6\u99C8\u99D2\u5177\u611A\u865E\u55B0\u7A7A\u5076\u5BD3\u9047\u9685\u4E32\u6ADB\u91E7\u5C51\u5C48"],["b7a1","\u6398\u7A9F\u6C93\u9774\u8F61\u7AAA\u718A\u9688\u7C82\u6817\u7E70\u6851\u936C\u52F2\u541B\u85AB\u8A13\u7FA4\u8ECD\u90E1\u5366\u8888\u7941\u4FC2\u50BE\u5211\u5144\u5553\u572D\u73EA\u578B\u5951\u5F62\u5F84\u6075\u6176\u6167\u61A9\u63B2\u643A\u656C\u666F\u6842\u6E13\u7566\u7A3D\u7CFB\u7D4C\u7D99\u7E4B\u7F6B\u830E\u834A\u86CD\u8A08\u8A63\u8B66\u8EFD\u981A\u9D8F\u82B8\u8FCE\u9BE8\u5287\u621F\u6483\u6FC0\u9699\u6841\u5091\u6B20\u6C7A\u6F54\u7A74\u7D50\u8840\u8A23\u6708\u4EF6\u5039\u5026\u5065\u517C\u5238\u5263\u55A7\u570F\u5805\u5ACC\u5EFA\u61B2\u61F8\u62F3\u6372"],["b8a1","\u691C\u6A29\u727D\u72AC\u732E\u7814\u786F\u7D79\u770C\u80A9\u898B\u8B19\u8CE2\u8ED2\u9063\u9375\u967A\u9855\u9A13\u9E78\u5143\u539F\u53B3\u5E7B\u5F26\u6E1B\u6E90\u7384\u73FE\u7D43\u8237\u8A00\u8AFA\u9650\u4E4E\u500B\u53E4\u547C\u56FA\u59D1\u5B64\u5DF1\u5EAB\u5F27\u6238\u6545\u67AF\u6E56\u72D0\u7CCA\u88B4\u80A1\u80E1\u83F0\u864E\u8A87\u8DE8\u9237\u96C7\u9867\u9F13\u4E94\u4E92\u4F0D\u5348\u5449\u543E\u5A2F\u5F8C\u5FA1\u609F\u68A7\u6A8E\u745A\u7881\u8A9E\u8AA4\u8B77\u9190\u4E5E\u9BC9\u4EA4\u4F7C\u4FAF\u5019\u5016\u5149\u516C\u529F\u52B9\u52FE\u539A\u53E3\u5411"],["b9a1","\u540E\u5589\u5751\u57A2\u597D\u5B54\u5B5D\u5B8F\u5DE5\u5DE7\u5DF7\u5E78\u5E83\u5E9A\u5EB7\u5F18\u6052\u614C\u6297\u62D8\u63A7\u653B\u6602\u6643\u66F4\u676D\u6821\u6897\u69CB\u6C5F\u6D2A\u6D69\u6E2F\u6E9D\u7532\u7687\u786C\u7A3F\u7CE0\u7D05\u7D18\u7D5E\u7DB1\u8015\u8003\u80AF\u80B1\u8154\u818F\u822A\u8352\u884C\u8861\u8B1B\u8CA2\u8CFC\u90CA\u9175\u9271\u783F\u92FC\u95A4\u964D\u9805\u9999\u9AD8\u9D3B\u525B\u52AB\u53F7\u5408\u58D5\u62F7\u6FE0\u8C6A\u8F5F\u9EB9\u514B\u523B\u544A\u56FD\u7A40\u9177\u9D60\u9ED2\u7344\u6F09\u8170\u7511\u5FFD\u60DA\u9AA8\u72DB\u8FBC"],["baa1","\u6B64\u9803\u4ECA\u56F0\u5764\u58BE\u5A5A\u6068\u61C7\u660F\u6606\u6839\u68B1\u6DF7\u75D5\u7D3A\u826E\u9B42\u4E9B\u4F50\u53C9\u5506\u5D6F\u5DE6\u5DEE\u67FB\u6C99\u7473\u7802\u8A50\u9396\u88DF\u5750\u5EA7\u632B\u50B5\u50AC\u518D\u6700\u54C9\u585E\u59BB\u5BB0\u5F69\u624D\u63A1\u683D\u6B73\u6E08\u707D\u91C7\u7280\u7815\u7826\u796D\u658E\u7D30\u83DC\u88C1\u8F09\u969B\u5264\u5728\u6750\u7F6A\u8CA1\u51B4\u5742\u962A\u583A\u698A\u80B4\u54B2\u5D0E\u57FC\u7895\u9DFA\u4F5C\u524A\u548B\u643E\u6628\u6714\u67F5\u7A84\u7B56\u7D22\u932F\u685C\u9BAD\u7B39\u5319\u518A\u5237"],["bba1","\u5BDF\u62F6\u64AE\u64E6\u672D\u6BBA\u85A9\u96D1\u7690\u9BD6\u634C\u9306\u9BAB\u76BF\u6652\u4E09\u5098\u53C2\u5C71\u60E8\u6492\u6563\u685F\u71E6\u73CA\u7523\u7B97\u7E82\u8695\u8B83\u8CDB\u9178\u9910\u65AC\u66AB\u6B8B\u4ED5\u4ED4\u4F3A\u4F7F\u523A\u53F8\u53F2\u55E3\u56DB\u58EB\u59CB\u59C9\u59FF\u5B50\u5C4D\u5E02\u5E2B\u5FD7\u601D\u6307\u652F\u5B5C\u65AF\u65BD\u65E8\u679D\u6B62\u6B7B\u6C0F\u7345\u7949\u79C1\u7CF8\u7D19\u7D2B\u80A2\u8102\u81F3\u8996\u8A5E\u8A69\u8A66\u8A8C\u8AEE\u8CC7\u8CDC\u96CC\u98FC\u6B6F\u4E8B\u4F3C\u4F8D\u5150\u5B57\u5BFA\u6148\u6301\u6642"],["bca1","\u6B21\u6ECB\u6CBB\u723E\u74BD\u75D4\u78C1\u793A\u800C\u8033\u81EA\u8494\u8F9E\u6C50\u9E7F\u5F0F\u8B58\u9D2B\u7AFA\u8EF8\u5B8D\u96EB\u4E03\u53F1\u57F7\u5931\u5AC9\u5BA4\u6089\u6E7F\u6F06\u75BE\u8CEA\u5B9F\u8500\u7BE0\u5072\u67F4\u829D\u5C61\u854A\u7E1E\u820E\u5199\u5C04\u6368\u8D66\u659C\u716E\u793E\u7D17\u8005\u8B1D\u8ECA\u906E\u86C7\u90AA\u501F\u52FA\u5C3A\u6753\u707C\u7235\u914C\u91C8\u932B\u82E5\u5BC2\u5F31\u60F9\u4E3B\u53D6\u5B88\u624B\u6731\u6B8A\u72E9\u73E0\u7A2E\u816B\u8DA3\u9152\u9996\u5112\u53D7\u546A\u5BFF\u6388\u6A39\u7DAC\u9700\u56DA\u53CE\u5468"],["bda1","\u5B97\u5C31\u5DDE\u4FEE\u6101\u62FE\u6D32\u79C0\u79CB\u7D42\u7E4D\u7FD2\u81ED\u821F\u8490\u8846\u8972\u8B90\u8E74\u8F2F\u9031\u914B\u916C\u96C6\u919C\u4EC0\u4F4F\u5145\u5341\u5F93\u620E\u67D4\u6C41\u6E0B\u7363\u7E26\u91CD\u9283\u53D4\u5919\u5BBF\u6DD1\u795D\u7E2E\u7C9B\u587E\u719F\u51FA\u8853\u8FF0\u4FCA\u5CFB\u6625\u77AC\u7AE3\u821C\u99FF\u51C6\u5FAA\u65EC\u696F\u6B89\u6DF3\u6E96\u6F64\u76FE\u7D14\u5DE1\u9075\u9187\u9806\u51E6\u521D\u6240\u6691\u66D9\u6E1A\u5EB6\u7DD2\u7F72\u66F8\u85AF\u85F7\u8AF8\u52A9\u53D9\u5973\u5E8F\u5F90\u6055\u92E4\u9664\u50B7\u511F"],["bea1","\u52DD\u5320\u5347\u53EC\u54E8\u5546\u5531\u5617\u5968\u59BE\u5A3C\u5BB5\u5C06\u5C0F\u5C11\u5C1A\u5E84\u5E8A\u5EE0\u5F70\u627F\u6284\u62DB\u638C\u6377\u6607\u660C\u662D\u6676\u677E\u68A2\u6A1F\u6A35\u6CBC\u6D88\u6E09\u6E58\u713C\u7126\u7167\u75C7\u7701\u785D\u7901\u7965\u79F0\u7AE0\u7B11\u7CA7\u7D39\u8096\u83D6\u848B\u8549\u885D\u88F3\u8A1F\u8A3C\u8A54\u8A73\u8C61\u8CDE\u91A4\u9266\u937E\u9418\u969C\u9798\u4E0A\u4E08\u4E1E\u4E57\u5197\u5270\u57CE\u5834\u58CC\u5B22\u5E38\u60C5\u64FE\u6761\u6756\u6D44\u72B6\u7573\u7A63\u84B8\u8B72\u91B8\u9320\u5631\u57F4\u98FE"],["bfa1","\u62ED\u690D\u6B96\u71ED\u7E54\u8077\u8272\u89E6\u98DF\u8755\u8FB1\u5C3B\u4F38\u4FE1\u4FB5\u5507\u5A20\u5BDD\u5BE9\u5FC3\u614E\u632F\u65B0\u664B\u68EE\u699B\u6D78\u6DF1\u7533\u75B9\u771F\u795E\u79E6\u7D33\u81E3\u82AF\u85AA\u89AA\u8A3A\u8EAB\u8F9B\u9032\u91DD\u9707\u4EBA\u4EC1\u5203\u5875\u58EC\u5C0B\u751A\u5C3D\u814E\u8A0A\u8FC5\u9663\u976D\u7B25\u8ACF\u9808\u9162\u56F3\u53A8\u9017\u5439\u5782\u5E25\u63A8\u6C34\u708A\u7761\u7C8B\u7FE0\u8870\u9042\u9154\u9310\u9318\u968F\u745E\u9AC4\u5D07\u5D69\u6570\u67A2\u8DA8\u96DB\u636E\u6749\u6919\u83C5\u9817\u96C0\u88FE"],["c0a1","\u6F84\u647A\u5BF8\u4E16\u702C\u755D\u662F\u51C4\u5236\u52E2\u59D3\u5F81\u6027\u6210\u653F\u6574\u661F\u6674\u68F2\u6816\u6B63\u6E05\u7272\u751F\u76DB\u7CBE\u8056\u58F0\u88FD\u897F\u8AA0\u8A93\u8ACB\u901D\u9192\u9752\u9759\u6589\u7A0E\u8106\u96BB\u5E2D\u60DC\u621A\u65A5\u6614\u6790\u77F3\u7A4D\u7C4D\u7E3E\u810A\u8CAC\u8D64\u8DE1\u8E5F\u78A9\u5207\u62D9\u63A5\u6442\u6298\u8A2D\u7A83\u7BC0\u8AAC\u96EA\u7D76\u820C\u8749\u4ED9\u5148\u5343\u5360\u5BA3\u5C02\u5C16\u5DDD\u6226\u6247\u64B0\u6813\u6834\u6CC9\u6D45\u6D17\u67D3\u6F5C\u714E\u717D\u65CB\u7A7F\u7BAD\u7DDA"],["c1a1","\u7E4A\u7FA8\u817A\u821B\u8239\u85A6\u8A6E\u8CCE\u8DF5\u9078\u9077\u92AD\u9291\u9583\u9BAE\u524D\u5584\u6F38\u7136\u5168\u7985\u7E55\u81B3\u7CCE\u564C\u5851\u5CA8\u63AA\u66FE\u66FD\u695A\u72D9\u758F\u758E\u790E\u7956\u79DF\u7C97\u7D20\u7D44\u8607\u8A34\u963B\u9061\u9F20\u50E7\u5275\u53CC\u53E2\u5009\u55AA\u58EE\u594F\u723D\u5B8B\u5C64\u531D\u60E3\u60F3\u635C\u6383\u633F\u63BB\u64CD\u65E9\u66F9\u5DE3\u69CD\u69FD\u6F15\u71E5\u4E89\u75E9\u76F8\u7A93\u7CDF\u7DCF\u7D9C\u8061\u8349\u8358\u846C\u84BC\u85FB\u88C5\u8D70\u9001\u906D\u9397\u971C\u9A12\u50CF\u5897\u618E"],["c2a1","\u81D3\u8535\u8D08\u9020\u4FC3\u5074\u5247\u5373\u606F\u6349\u675F\u6E2C\u8DB3\u901F\u4FD7\u5C5E\u8CCA\u65CF\u7D9A\u5352\u8896\u5176\u63C3\u5B58\u5B6B\u5C0A\u640D\u6751\u905C\u4ED6\u591A\u592A\u6C70\u8A51\u553E\u5815\u59A5\u60F0\u6253\u67C1\u8235\u6955\u9640\u99C4\u9A28\u4F53\u5806\u5BFE\u8010\u5CB1\u5E2F\u5F85\u6020\u614B\u6234\u66FF\u6CF0\u6EDE\u80CE\u817F\u82D4\u888B\u8CB8\u9000\u902E\u968A\u9EDB\u9BDB\u4EE3\u53F0\u5927\u7B2C\u918D\u984C\u9DF9\u6EDD\u7027\u5353\u5544\u5B85\u6258\u629E\u62D3\u6CA2\u6FEF\u7422\u8A17\u9438\u6FC1\u8AFE\u8338\u51E7\u86F8\u53EA"],["c3a1","\u53E9\u4F46\u9054\u8FB0\u596A\u8131\u5DFD\u7AEA\u8FBF\u68DA\u8C37\u72F8\u9C48\u6A3D\u8AB0\u4E39\u5358\u5606\u5766\u62C5\u63A2\u65E6\u6B4E\u6DE1\u6E5B\u70AD\u77ED\u7AEF\u7BAA\u7DBB\u803D\u80C6\u86CB\u8A95\u935B\u56E3\u58C7\u5F3E\u65AD\u6696\u6A80\u6BB5\u7537\u8AC7\u5024\u77E5\u5730\u5F1B\u6065\u667A\u6C60\u75F4\u7A1A\u7F6E\u81F4\u8718\u9045\u99B3\u7BC9\u755C\u7AF9\u7B51\u84C4\u9010\u79E9\u7A92\u8336\u5AE1\u7740\u4E2D\u4EF2\u5B99\u5FE0\u62BD\u663C\u67F1\u6CE8\u866B\u8877\u8A3B\u914E\u92F3\u99D0\u6A17\u7026\u732A\u82E7\u8457\u8CAF\u4E01\u5146\u51CB\u558B\u5BF5"],["c4a1","\u5E16\u5E33\u5E81\u5F14\u5F35\u5F6B\u5FB4\u61F2\u6311\u66A2\u671D\u6F6E\u7252\u753A\u773A\u8074\u8139\u8178\u8776\u8ABF\u8ADC\u8D85\u8DF3\u929A\u9577\u9802\u9CE5\u52C5\u6357\u76F4\u6715\u6C88\u73CD\u8CC3\u93AE\u9673\u6D25\u589C\u690E\u69CC\u8FFD\u939A\u75DB\u901A\u585A\u6802\u63B4\u69FB\u4F43\u6F2C\u67D8\u8FBB\u8526\u7DB4\u9354\u693F\u6F70\u576A\u58F7\u5B2C\u7D2C\u722A\u540A\u91E3\u9DB4\u4EAD\u4F4E\u505C\u5075\u5243\u8C9E\u5448\u5824\u5B9A\u5E1D\u5E95\u5EAD\u5EF7\u5F1F\u608C\u62B5\u633A\u63D0\u68AF\u6C40\u7887\u798E\u7A0B\u7DE0\u8247\u8A02\u8AE6\u8E44\u9013"],["c5a1","\u90B8\u912D\u91D8\u9F0E\u6CE5\u6458\u64E2\u6575\u6EF4\u7684\u7B1B\u9069\u93D1\u6EBA\u54F2\u5FB9\u64A4\u8F4D\u8FED\u9244\u5178\u586B\u5929\u5C55\u5E97\u6DFB\u7E8F\u751C\u8CBC\u8EE2\u985B\u70B9\u4F1D\u6BBF\u6FB1\u7530\u96FB\u514E\u5410\u5835\u5857\u59AC\u5C60\u5F92\u6597\u675C\u6E21\u767B\u83DF\u8CED\u9014\u90FD\u934D\u7825\u783A\u52AA\u5EA6\u571F\u5974\u6012\u5012\u515A\u51AC\u51CD\u5200\u5510\u5854\u5858\u5957\u5B95\u5CF6\u5D8B\u60BC\u6295\u642D\u6771\u6843\u68BC\u68DF\u76D7\u6DD8\u6E6F\u6D9B\u706F\u71C8\u5F53\u75D8\u7977\u7B49\u7B54\u7B52\u7CD6\u7D71\u5230"],["c6a1","\u8463\u8569\u85E4\u8A0E\u8B04\u8C46\u8E0F\u9003\u900F\u9419\u9676\u982D\u9A30\u95D8\u50CD\u52D5\u540C\u5802\u5C0E\u61A7\u649E\u6D1E\u77B3\u7AE5\u80F4\u8404\u9053\u9285\u5CE0\u9D07\u533F\u5F97\u5FB3\u6D9C\u7279\u7763\u79BF\u7BE4\u6BD2\u72EC\u8AAD\u6803\u6A61\u51F8\u7A81\u6934\u5C4A\u9CF6\u82EB\u5BC5\u9149\u701E\u5678\u5C6F\u60C7\u6566\u6C8C\u8C5A\u9041\u9813\u5451\u66C7\u920D\u5948\u90A3\u5185\u4E4D\u51EA\u8599\u8B0E\u7058\u637A\u934B\u6962\u99B4\u7E04\u7577\u5357\u6960\u8EDF\u96E3\u6C5D\u4E8C\u5C3C\u5F10\u8FE9\u5302\u8CD1\u8089\u8679\u5EFF\u65E5\u4E73\u5165"],["c7a1","\u5982\u5C3F\u97EE\u4EFB\u598A\u5FCD\u8A8D\u6FE1\u79B0\u7962\u5BE7\u8471\u732B\u71B1\u5E74\u5FF5\u637B\u649A\u71C3\u7C98\u4E43\u5EFC\u4E4B\u57DC\u56A2\u60A9\u6FC3\u7D0D\u80FD\u8133\u81BF\u8FB2\u8997\u86A4\u5DF4\u628A\u64AD\u8987\u6777\u6CE2\u6D3E\u7436\u7834\u5A46\u7F75\u82AD\u99AC\u4FF3\u5EC3\u62DD\u6392\u6557\u676F\u76C3\u724C\u80CC\u80BA\u8F29\u914D\u500D\u57F9\u5A92\u6885\u6973\u7164\u72FD\u8CB7\u58F2\u8CE0\u966A\u9019\u877F\u79E4\u77E7\u8429\u4F2F\u5265\u535A\u62CD\u67CF\u6CCA\u767D\u7B94\u7C95\u8236\u8584\u8FEB\u66DD\u6F20\u7206\u7E1B\u83AB\u99C1\u9EA6"],["c8a1","\u51FD\u7BB1\u7872\u7BB8\u8087\u7B48\u6AE8\u5E61\u808C\u7551\u7560\u516B\u9262\u6E8C\u767A\u9197\u9AEA\u4F10\u7F70\u629C\u7B4F\u95A5\u9CE9\u567A\u5859\u86E4\u96BC\u4F34\u5224\u534A\u53CD\u53DB\u5E06\u642C\u6591\u677F\u6C3E\u6C4E\u7248\u72AF\u73ED\u7554\u7E41\u822C\u85E9\u8CA9\u7BC4\u91C6\u7169\u9812\u98EF\u633D\u6669\u756A\u76E4\u78D0\u8543\u86EE\u532A\u5351\u5426\u5983\u5E87\u5F7C\u60B2\u6249\u6279\u62AB\u6590\u6BD4\u6CCC\u75B2\u76AE\u7891\u79D8\u7DCB\u7F77\u80A5\u88AB\u8AB9\u8CBB\u907F\u975E\u98DB\u6A0B\u7C38\u5099\u5C3E\u5FAE\u6787\u6BD8\u7435\u7709\u7F8E"],["c9a1","\u9F3B\u67CA\u7A17\u5339\u758B\u9AED\u5F66\u819D\u83F1\u8098\u5F3C\u5FC5\u7562\u7B46\u903C\u6867\u59EB\u5A9B\u7D10\u767E\u8B2C\u4FF5\u5F6A\u6A19\u6C37\u6F02\u74E2\u7968\u8868\u8A55\u8C79\u5EDF\u63CF\u75C5\u79D2\u82D7\u9328\u92F2\u849C\u86ED\u9C2D\u54C1\u5F6C\u658C\u6D5C\u7015\u8CA7\u8CD3\u983B\u654F\u74F6\u4E0D\u4ED8\u57E0\u592B\u5A66\u5BCC\u51A8\u5E03\u5E9C\u6016\u6276\u6577\u65A7\u666E\u6D6E\u7236\u7B26\u8150\u819A\u8299\u8B5C\u8CA0\u8CE6\u8D74\u961C\u9644\u4FAE\u64AB\u6B66\u821E\u8461\u856A\u90E8\u5C01\u6953\u98A8\u847A\u8557\u4F0F\u526F\u5FA9\u5E45\u670D"],["caa1","\u798F\u8179\u8907\u8986\u6DF5\u5F17\u6255\u6CB8\u4ECF\u7269\u9B92\u5206\u543B\u5674\u58B3\u61A4\u626E\u711A\u596E\u7C89\u7CDE\u7D1B\u96F0\u6587\u805E\u4E19\u4F75\u5175\u5840\u5E63\u5E73\u5F0A\u67C4\u4E26\u853D\u9589\u965B\u7C73\u9801\u50FB\u58C1\u7656\u78A7\u5225\u77A5\u8511\u7B86\u504F\u5909\u7247\u7BC7\u7DE8\u8FBA\u8FD4\u904D\u4FBF\u52C9\u5A29\u5F01\u97AD\u4FDD\u8217\u92EA\u5703\u6355\u6B69\u752B\u88DC\u8F14\u7A42\u52DF\u5893\u6155\u620A\u66AE\u6BCD\u7C3F\u83E9\u5023\u4FF8\u5305\u5446\u5831\u5949\u5B9D\u5CF0\u5CEF\u5D29\u5E96\u62B1\u6367\u653E\u65B9\u670B"],["cba1","\u6CD5\u6CE1\u70F9\u7832\u7E2B\u80DE\u82B3\u840C\u84EC\u8702\u8912\u8A2A\u8C4A\u90A6\u92D2\u98FD\u9CF3\u9D6C\u4E4F\u4EA1\u508D\u5256\u574A\u59A8\u5E3D\u5FD8\u5FD9\u623F\u66B4\u671B\u67D0\u68D2\u5192\u7D21\u80AA\u81A8\u8B00\u8C8C\u8CBF\u927E\u9632\u5420\u982C\u5317\u50D5\u535C\u58A8\u64B2\u6734\u7267\u7766\u7A46\u91E6\u52C3\u6CA1\u6B86\u5800\u5E4C\u5954\u672C\u7FFB\u51E1\u76C6\u6469\u78E8\u9B54\u9EBB\u57CB\u59B9\u6627\u679A\u6BCE\u54E9\u69D9\u5E55\u819C\u6795\u9BAA\u67FE\u9C52\u685D\u4EA6\u4FE3\u53C8\u62B9\u672B\u6CAB\u8FC4\u4FAD\u7E6D\u9EBF\u4E07\u6162\u6E80"],["cca1","\u6F2B\u8513\u5473\u672A\u9B45\u5DF3\u7B95\u5CAC\u5BC6\u871C\u6E4A\u84D1\u7A14\u8108\u5999\u7C8D\u6C11\u7720\u52D9\u5922\u7121\u725F\u77DB\u9727\u9D61\u690B\u5A7F\u5A18\u51A5\u540D\u547D\u660E\u76DF\u8FF7\u9298\u9CF4\u59EA\u725D\u6EC5\u514D\u68C9\u7DBF\u7DEC\u9762\u9EBA\u6478\u6A21\u8302\u5984\u5B5F\u6BDB\u731B\u76F2\u7DB2\u8017\u8499\u5132\u6728\u9ED9\u76EE\u6762\u52FF\u9905\u5C24\u623B\u7C7E\u8CB0\u554F\u60B6\u7D0B\u9580\u5301\u4E5F\u51B6\u591C\u723A\u8036\u91CE\u5F25\u77E2\u5384\u5F79\u7D04\u85AC\u8A33\u8E8D\u9756\u67F3\u85AE\u9453\u6109\u6108\u6CB9\u7652"],["cda1","\u8AED\u8F38\u552F\u4F51\u512A\u52C7\u53CB\u5BA5\u5E7D\u60A0\u6182\u63D6\u6709\u67DA\u6E67\u6D8C\u7336\u7337\u7531\u7950\u88D5\u8A98\u904A\u9091\u90F5\u96C4\u878D\u5915\u4E88\u4F59\u4E0E\u8A89\u8F3F\u9810\u50AD\u5E7C\u5996\u5BB9\u5EB8\u63DA\u63FA\u64C1\u66DC\u694A\u69D8\u6D0B\u6EB6\u7194\u7528\u7AAF\u7F8A\u8000\u8449\u84C9\u8981\u8B21\u8E0A\u9065\u967D\u990A\u617E\u6291\u6B32\u6C83\u6D74\u7FCC\u7FFC\u6DC0\u7F85\u87BA\u88F8\u6765\u83B1\u983C\u96F7\u6D1B\u7D61\u843D\u916A\u4E71\u5375\u5D50\u6B04\u6FEB\u85CD\u862D\u89A7\u5229\u540F\u5C65\u674E\u68A8\u7406\u7483"],["cea1","\u75E2\u88CF\u88E1\u91CC\u96E2\u9678\u5F8B\u7387\u7ACB\u844E\u63A0\u7565\u5289\u6D41\u6E9C\u7409\u7559\u786B\u7C92\u9686\u7ADC\u9F8D\u4FB6\u616E\u65C5\u865C\u4E86\u4EAE\u50DA\u4E21\u51CC\u5BEE\u6599\u6881\u6DBC\u731F\u7642\u77AD\u7A1C\u7CE7\u826F\u8AD2\u907C\u91CF\u9675\u9818\u529B\u7DD1\u502B\u5398\u6797\u6DCB\u71D0\u7433\u81E8\u8F2A\u96A3\u9C57\u9E9F\u7460\u5841\u6D99\u7D2F\u985E\u4EE4\u4F36\u4F8B\u51B7\u52B1\u5DBA\u601C\u73B2\u793C\u82D3\u9234\u96B7\u96F6\u970A\u9E97\u9F62\u66A6\u6B74\u5217\u52A3\u70C8\u88C2\u5EC9\u604B\u6190\u6F23\u7149\u7C3E\u7DF4\u806F"],["cfa1","\u84EE\u9023\u932C\u5442\u9B6F\u6AD3\u7089\u8CC2\u8DEF\u9732\u52B4\u5A41\u5ECA\u5F04\u6717\u697C\u6994\u6D6A\u6F0F\u7262\u72FC\u7BED\u8001\u807E\u874B\u90CE\u516D\u9E93\u7984\u808B\u9332\u8AD6\u502D\u548C\u8A71\u6B6A\u8CC4\u8107\u60D1\u67A0\u9DF2\u4E99\u4E98\u9C10\u8A6B\u85C1\u8568\u6900\u6E7E\u7897\u8155"],["d0a1","\u5F0C\u4E10\u4E15\u4E2A\u4E31\u4E36\u4E3C\u4E3F\u4E42\u4E56\u4E58\u4E82\u4E85\u8C6B\u4E8A\u8212\u5F0D\u4E8E\u4E9E\u4E9F\u4EA0\u4EA2\u4EB0\u4EB3\u4EB6\u4ECE\u4ECD\u4EC4\u4EC6\u4EC2\u4ED7\u4EDE\u4EED\u4EDF\u4EF7\u4F09\u4F5A\u4F30\u4F5B\u4F5D\u4F57\u4F47\u4F76\u4F88\u4F8F\u4F98\u4F7B\u4F69\u4F70\u4F91\u4F6F\u4F86\u4F96\u5118\u4FD4\u4FDF\u4FCE\u4FD8\u4FDB\u4FD1\u4FDA\u4FD0\u4FE4\u4FE5\u501A\u5028\u5014\u502A\u5025\u5005\u4F1C\u4FF6\u5021\u5029\u502C\u4FFE\u4FEF\u5011\u5006\u5043\u5047\u6703\u5055\u5050\u5048\u505A\u5056\u506C\u5078\u5080\u509A\u5085\u50B4\u50B2"],["d1a1","\u50C9\u50CA\u50B3\u50C2\u50D6\u50DE\u50E5\u50ED\u50E3\u50EE\u50F9\u50F5\u5109\u5101\u5102\u5116\u5115\u5114\u511A\u5121\u513A\u5137\u513C\u513B\u513F\u5140\u5152\u514C\u5154\u5162\u7AF8\u5169\u516A\u516E\u5180\u5182\u56D8\u518C\u5189\u518F\u5191\u5193\u5195\u5196\u51A4\u51A6\u51A2\u51A9\u51AA\u51AB\u51B3\u51B1\u51B2\u51B0\u51B5\u51BD\u51C5\u51C9\u51DB\u51E0\u8655\u51E9\u51ED\u51F0\u51F5\u51FE\u5204\u520B\u5214\u520E\u5227\u522A\u522E\u5233\u5239\u524F\u5244\u524B\u524C\u525E\u5254\u526A\u5274\u5269\u5273\u527F\u527D\u528D\u5294\u5292\u5271\u5288\u5291\u8FA8"],["d2a1","\u8FA7\u52AC\u52AD\u52BC\u52B5\u52C1\u52CD\u52D7\u52DE\u52E3\u52E6\u98ED\u52E0\u52F3\u52F5\u52F8\u52F9\u5306\u5308\u7538\u530D\u5310\u530F\u5315\u531A\u5323\u532F\u5331\u5333\u5338\u5340\u5346\u5345\u4E17\u5349\u534D\u51D6\u535E\u5369\u536E\u5918\u537B\u5377\u5382\u5396\u53A0\u53A6\u53A5\u53AE\u53B0\u53B6\u53C3\u7C12\u96D9\u53DF\u66FC\u71EE\u53EE\u53E8\u53ED\u53FA\u5401\u543D\u5440\u542C\u542D\u543C\u542E\u5436\u5429\u541D\u544E\u548F\u5475\u548E\u545F\u5471\u5477\u5470\u5492\u547B\u5480\u5476\u5484\u5490\u5486\u54C7\u54A2\u54B8\u54A5\u54AC\u54C4\u54C8\u54A8"],["d3a1","\u54AB\u54C2\u54A4\u54BE\u54BC\u54D8\u54E5\u54E6\u550F\u5514\u54FD\u54EE\u54ED\u54FA\u54E2\u5539\u5540\u5563\u554C\u552E\u555C\u5545\u5556\u5557\u5538\u5533\u555D\u5599\u5580\u54AF\u558A\u559F\u557B\u557E\u5598\u559E\u55AE\u557C\u5583\u55A9\u5587\u55A8\u55DA\u55C5\u55DF\u55C4\u55DC\u55E4\u55D4\u5614\u55F7\u5616\u55FE\u55FD\u561B\u55F9\u564E\u5650\u71DF\u5634\u5636\u5632\u5638\u566B\u5664\u562F\u566C\u566A\u5686\u5680\u568A\u56A0\u5694\u568F\u56A5\u56AE\u56B6\u56B4\u56C2\u56BC\u56C1\u56C3\u56C0\u56C8\u56CE\u56D1\u56D3\u56D7\u56EE\u56F9\u5700\u56FF\u5704\u5709"],["d4a1","\u5708\u570B\u570D\u5713\u5718\u5716\u55C7\u571C\u5726\u5737\u5738\u574E\u573B\u5740\u574F\u5769\u57C0\u5788\u5761\u577F\u5789\u5793\u57A0\u57B3\u57A4\u57AA\u57B0\u57C3\u57C6\u57D4\u57D2\u57D3\u580A\u57D6\u57E3\u580B\u5819\u581D\u5872\u5821\u5862\u584B\u5870\u6BC0\u5852\u583D\u5879\u5885\u58B9\u589F\u58AB\u58BA\u58DE\u58BB\u58B8\u58AE\u58C5\u58D3\u58D1\u58D7\u58D9\u58D8\u58E5\u58DC\u58E4\u58DF\u58EF\u58FA\u58F9\u58FB\u58FC\u58FD\u5902\u590A\u5910\u591B\u68A6\u5925\u592C\u592D\u5932\u5938\u593E\u7AD2\u5955\u5950\u594E\u595A\u5958\u5962\u5960\u5967\u596C\u5969"],["d5a1","\u5978\u5981\u599D\u4F5E\u4FAB\u59A3\u59B2\u59C6\u59E8\u59DC\u598D\u59D9\u59DA\u5A25\u5A1F\u5A11\u5A1C\u5A09\u5A1A\u5A40\u5A6C\u5A49\u5A35\u5A36\u5A62\u5A6A\u5A9A\u5ABC\u5ABE\u5ACB\u5AC2\u5ABD\u5AE3\u5AD7\u5AE6\u5AE9\u5AD6\u5AFA\u5AFB\u5B0C\u5B0B\u5B16\u5B32\u5AD0\u5B2A\u5B36\u5B3E\u5B43\u5B45\u5B40\u5B51\u5B55\u5B5A\u5B5B\u5B65\u5B69\u5B70\u5B73\u5B75\u5B78\u6588\u5B7A\u5B80\u5B83\u5BA6\u5BB8\u5BC3\u5BC7\u5BC9\u5BD4\u5BD0\u5BE4\u5BE6\u5BE2\u5BDE\u5BE5\u5BEB\u5BF0\u5BF6\u5BF3\u5C05\u5C07\u5C08\u5C0D\u5C13\u5C20\u5C22\u5C28\u5C38\u5C39\u5C41\u5C46\u5C4E\u5C53"],["d6a1","\u5C50\u5C4F\u5B71\u5C6C\u5C6E\u4E62\u5C76\u5C79\u5C8C\u5C91\u5C94\u599B\u5CAB\u5CBB\u5CB6\u5CBC\u5CB7\u5CC5\u5CBE\u5CC7\u5CD9\u5CE9\u5CFD\u5CFA\u5CED\u5D8C\u5CEA\u5D0B\u5D15\u5D17\u5D5C\u5D1F\u5D1B\u5D11\u5D14\u5D22\u5D1A\u5D19\u5D18\u5D4C\u5D52\u5D4E\u5D4B\u5D6C\u5D73\u5D76\u5D87\u5D84\u5D82\u5DA2\u5D9D\u5DAC\u5DAE\u5DBD\u5D90\u5DB7\u5DBC\u5DC9\u5DCD\u5DD3\u5DD2\u5DD6\u5DDB\u5DEB\u5DF2\u5DF5\u5E0B\u5E1A\u5E19\u5E11\u5E1B\u5E36\u5E37\u5E44\u5E43\u5E40\u5E4E\u5E57\u5E54\u5E5F\u5E62\u5E64\u5E47\u5E75\u5E76\u5E7A\u9EBC\u5E7F\u5EA0\u5EC1\u5EC2\u5EC8\u5ED0\u5ECF"],["d7a1","\u5ED6\u5EE3\u5EDD\u5EDA\u5EDB\u5EE2\u5EE1\u5EE8\u5EE9\u5EEC\u5EF1\u5EF3\u5EF0\u5EF4\u5EF8\u5EFE\u5F03\u5F09\u5F5D\u5F5C\u5F0B\u5F11\u5F16\u5F29\u5F2D\u5F38\u5F41\u5F48\u5F4C\u5F4E\u5F2F\u5F51\u5F56\u5F57\u5F59\u5F61\u5F6D\u5F73\u5F77\u5F83\u5F82\u5F7F\u5F8A\u5F88\u5F91\u5F87\u5F9E\u5F99\u5F98\u5FA0\u5FA8\u5FAD\u5FBC\u5FD6\u5FFB\u5FE4\u5FF8\u5FF1\u5FDD\u60B3\u5FFF\u6021\u6060\u6019\u6010\u6029\u600E\u6031\u601B\u6015\u602B\u6026\u600F\u603A\u605A\u6041\u606A\u6077\u605F\u604A\u6046\u604D\u6063\u6043\u6064\u6042\u606C\u606B\u6059\u6081\u608D\u60E7\u6083\u609A"],["d8a1","\u6084\u609B\u6096\u6097\u6092\u60A7\u608B\u60E1\u60B8\u60E0\u60D3\u60B4\u5FF0\u60BD\u60C6\u60B5\u60D8\u614D\u6115\u6106\u60F6\u60F7\u6100\u60F4\u60FA\u6103\u6121\u60FB\u60F1\u610D\u610E\u6147\u613E\u6128\u6127\u614A\u613F\u613C\u612C\u6134\u613D\u6142\u6144\u6173\u6177\u6158\u6159\u615A\u616B\u6174\u616F\u6165\u6171\u615F\u615D\u6153\u6175\u6199\u6196\u6187\u61AC\u6194\u619A\u618A\u6191\u61AB\u61AE\u61CC\u61CA\u61C9\u61F7\u61C8\u61C3\u61C6\u61BA\u61CB\u7F79\u61CD\u61E6\u61E3\u61F6\u61FA\u61F4\u61FF\u61FD\u61FC\u61FE\u6200\u6208\u6209\u620D\u620C\u6214\u621B"],["d9a1","\u621E\u6221\u622A\u622E\u6230\u6232\u6233\u6241\u624E\u625E\u6263\u625B\u6260\u6268\u627C\u6282\u6289\u627E\u6292\u6293\u6296\u62D4\u6283\u6294\u62D7\u62D1\u62BB\u62CF\u62FF\u62C6\u64D4\u62C8\u62DC\u62CC\u62CA\u62C2\u62C7\u629B\u62C9\u630C\u62EE\u62F1\u6327\u6302\u6308\u62EF\u62F5\u6350\u633E\u634D\u641C\u634F\u6396\u638E\u6380\u63AB\u6376\u63A3\u638F\u6389\u639F\u63B5\u636B\u6369\u63BE\u63E9\u63C0\u63C6\u63E3\u63C9\u63D2\u63F6\u63C4\u6416\u6434\u6406\u6413\u6426\u6436\u651D\u6417\u6428\u640F\u6467\u646F\u6476\u644E\u652A\u6495\u6493\u64A5\u64A9\u6488\u64BC"],["daa1","\u64DA\u64D2\u64C5\u64C7\u64BB\u64D8\u64C2\u64F1\u64E7\u8209\u64E0\u64E1\u62AC\u64E3\u64EF\u652C\u64F6\u64F4\u64F2\u64FA\u6500\u64FD\u6518\u651C\u6505\u6524\u6523\u652B\u6534\u6535\u6537\u6536\u6538\u754B\u6548\u6556\u6555\u654D\u6558\u655E\u655D\u6572\u6578\u6582\u6583\u8B8A\u659B\u659F\u65AB\u65B7\u65C3\u65C6\u65C1\u65C4\u65CC\u65D2\u65DB\u65D9\u65E0\u65E1\u65F1\u6772\u660A\u6603\u65FB\u6773\u6635\u6636\u6634\u661C\u664F\u6644\u6649\u6641\u665E\u665D\u6664\u6667\u6668\u665F\u6662\u6670\u6683\u6688\u668E\u6689\u6684\u6698\u669D\u66C1\u66B9\u66C9\u66BE\u66BC"],["dba1","\u66C4\u66B8\u66D6\u66DA\u66E0\u663F\u66E6\u66E9\u66F0\u66F5\u66F7\u670F\u6716\u671E\u6726\u6727\u9738\u672E\u673F\u6736\u6741\u6738\u6737\u6746\u675E\u6760\u6759\u6763\u6764\u6789\u6770\u67A9\u677C\u676A\u678C\u678B\u67A6\u67A1\u6785\u67B7\u67EF\u67B4\u67EC\u67B3\u67E9\u67B8\u67E4\u67DE\u67DD\u67E2\u67EE\u67B9\u67CE\u67C6\u67E7\u6A9C\u681E\u6846\u6829\u6840\u684D\u6832\u684E\u68B3\u682B\u6859\u6863\u6877\u687F\u689F\u688F\u68AD\u6894\u689D\u689B\u6883\u6AAE\u68B9\u6874\u68B5\u68A0\u68BA\u690F\u688D\u687E\u6901\u68CA\u6908\u68D8\u6922\u6926\u68E1\u690C\u68CD"],["dca1","\u68D4\u68E7\u68D5\u6936\u6912\u6904\u68D7\u68E3\u6925\u68F9\u68E0\u68EF\u6928\u692A\u691A\u6923\u6921\u68C6\u6979\u6977\u695C\u6978\u696B\u6954\u697E\u696E\u6939\u6974\u693D\u6959\u6930\u6961\u695E\u695D\u6981\u696A\u69B2\u69AE\u69D0\u69BF\u69C1\u69D3\u69BE\u69CE\u5BE8\u69CA\u69DD\u69BB\u69C3\u69A7\u6A2E\u6991\u69A0\u699C\u6995\u69B4\u69DE\u69E8\u6A02\u6A1B\u69FF\u6B0A\u69F9\u69F2\u69E7\u6A05\u69B1\u6A1E\u69ED\u6A14\u69EB\u6A0A\u6A12\u6AC1\u6A23\u6A13\u6A44\u6A0C\u6A72\u6A36\u6A78\u6A47\u6A62\u6A59\u6A66\u6A48\u6A38\u6A22\u6A90\u6A8D\u6AA0\u6A84\u6AA2\u6AA3"],["dda1","\u6A97\u8617\u6ABB\u6AC3\u6AC2\u6AB8\u6AB3\u6AAC\u6ADE\u6AD1\u6ADF\u6AAA\u6ADA\u6AEA\u6AFB\u6B05\u8616\u6AFA\u6B12\u6B16\u9B31\u6B1F\u6B38\u6B37\u76DC\u6B39\u98EE\u6B47\u6B43\u6B49\u6B50\u6B59\u6B54\u6B5B\u6B5F\u6B61\u6B78\u6B79\u6B7F\u6B80\u6B84\u6B83\u6B8D\u6B98\u6B95\u6B9E\u6BA4\u6BAA\u6BAB\u6BAF\u6BB2\u6BB1\u6BB3\u6BB7\u6BBC\u6BC6\u6BCB\u6BD3\u6BDF\u6BEC\u6BEB\u6BF3\u6BEF\u9EBE\u6C08\u6C13\u6C14\u6C1B\u6C24\u6C23\u6C5E\u6C55\u6C62\u6C6A\u6C82\u6C8D\u6C9A\u6C81\u6C9B\u6C7E\u6C68\u6C73\u6C92\u6C90\u6CC4\u6CF1\u6CD3\u6CBD\u6CD7\u6CC5\u6CDD\u6CAE\u6CB1\u6CBE"],["dea1","\u6CBA\u6CDB\u6CEF\u6CD9\u6CEA\u6D1F\u884D\u6D36\u6D2B\u6D3D\u6D38\u6D19\u6D35\u6D33\u6D12\u6D0C\u6D63\u6D93\u6D64\u6D5A\u6D79\u6D59\u6D8E\u6D95\u6FE4\u6D85\u6DF9\u6E15\u6E0A\u6DB5\u6DC7\u6DE6\u6DB8\u6DC6\u6DEC\u6DDE\u6DCC\u6DE8\u6DD2\u6DC5\u6DFA\u6DD9\u6DE4\u6DD5\u6DEA\u6DEE\u6E2D\u6E6E\u6E2E\u6E19\u6E72\u6E5F\u6E3E\u6E23\u6E6B\u6E2B\u6E76\u6E4D\u6E1F\u6E43\u6E3A\u6E4E\u6E24\u6EFF\u6E1D\u6E38\u6E82\u6EAA\u6E98\u6EC9\u6EB7\u6ED3\u6EBD\u6EAF\u6EC4\u6EB2\u6ED4\u6ED5\u6E8F\u6EA5\u6EC2\u6E9F\u6F41\u6F11\u704C\u6EEC\u6EF8\u6EFE\u6F3F\u6EF2\u6F31\u6EEF\u6F32\u6ECC"],["dfa1","\u6F3E\u6F13\u6EF7\u6F86\u6F7A\u6F78\u6F81\u6F80\u6F6F\u6F5B\u6FF3\u6F6D\u6F82\u6F7C\u6F58\u6F8E\u6F91\u6FC2\u6F66\u6FB3\u6FA3\u6FA1\u6FA4\u6FB9\u6FC6\u6FAA\u6FDF\u6FD5\u6FEC\u6FD4\u6FD8\u6FF1\u6FEE\u6FDB\u7009\u700B\u6FFA\u7011\u7001\u700F\u6FFE\u701B\u701A\u6F74\u701D\u7018\u701F\u7030\u703E\u7032\u7051\u7063\u7099\u7092\u70AF\u70F1\u70AC\u70B8\u70B3\u70AE\u70DF\u70CB\u70DD\u70D9\u7109\u70FD\u711C\u7119\u7165\u7155\u7188\u7166\u7162\u714C\u7156\u716C\u718F\u71FB\u7184\u7195\u71A8\u71AC\u71D7\u71B9\u71BE\u71D2\u71C9\u71D4\u71CE\u71E0\u71EC\u71E7\u71F5\u71FC"],["e0a1","\u71F9\u71FF\u720D\u7210\u721B\u7228\u722D\u722C\u7230\u7232\u723B\u723C\u723F\u7240\u7246\u724B\u7258\u7274\u727E\u7282\u7281\u7287\u7292\u7296\u72A2\u72A7\u72B9\u72B2\u72C3\u72C6\u72C4\u72CE\u72D2\u72E2\u72E0\u72E1\u72F9\u72F7\u500F\u7317\u730A\u731C\u7316\u731D\u7334\u732F\u7329\u7325\u733E\u734E\u734F\u9ED8\u7357\u736A\u7368\u7370\u7378\u7375\u737B\u737A\u73C8\u73B3\u73CE\u73BB\u73C0\u73E5\u73EE\u73DE\u74A2\u7405\u746F\u7425\u73F8\u7432\u743A\u7455\u743F\u745F\u7459\u7441\u745C\u7469\u7470\u7463\u746A\u7476\u747E\u748B\u749E\u74A7\u74CA\u74CF\u74D4\u73F1"],["e1a1","\u74E0\u74E3\u74E7\u74E9\u74EE\u74F2\u74F0\u74F1\u74F8\u74F7\u7504\u7503\u7505\u750C\u750E\u750D\u7515\u7513\u751E\u7526\u752C\u753C\u7544\u754D\u754A\u7549\u755B\u7546\u755A\u7569\u7564\u7567\u756B\u756D\u7578\u7576\u7586\u7587\u7574\u758A\u7589\u7582\u7594\u759A\u759D\u75A5\u75A3\u75C2\u75B3\u75C3\u75B5\u75BD\u75B8\u75BC\u75B1\u75CD\u75CA\u75D2\u75D9\u75E3\u75DE\u75FE\u75FF\u75FC\u7601\u75F0\u75FA\u75F2\u75F3\u760B\u760D\u7609\u761F\u7627\u7620\u7621\u7622\u7624\u7634\u7630\u763B\u7647\u7648\u7646\u765C\u7658\u7661\u7662\u7668\u7669\u766A\u7667\u766C\u7670"],["e2a1","\u7672\u7676\u7678\u767C\u7680\u7683\u7688\u768B\u768E\u7696\u7693\u7699\u769A\u76B0\u76B4\u76B8\u76B9\u76BA\u76C2\u76CD\u76D6\u76D2\u76DE\u76E1\u76E5\u76E7\u76EA\u862F\u76FB\u7708\u7707\u7704\u7729\u7724\u771E\u7725\u7726\u771B\u7737\u7738\u7747\u775A\u7768\u776B\u775B\u7765\u777F\u777E\u7779\u778E\u778B\u7791\u77A0\u779E\u77B0\u77B6\u77B9\u77BF\u77BC\u77BD\u77BB\u77C7\u77CD\u77D7\u77DA\u77DC\u77E3\u77EE\u77FC\u780C\u7812\u7926\u7820\u792A\u7845\u788E\u7874\u7886\u787C\u789A\u788C\u78A3\u78B5\u78AA\u78AF\u78D1\u78C6\u78CB\u78D4\u78BE\u78BC\u78C5\u78CA\u78EC"],["e3a1","\u78E7\u78DA\u78FD\u78F4\u7907\u7912\u7911\u7919\u792C\u792B\u7940\u7960\u7957\u795F\u795A\u7955\u7953\u797A\u797F\u798A\u799D\u79A7\u9F4B\u79AA\u79AE\u79B3\u79B9\u79BA\u79C9\u79D5\u79E7\u79EC\u79E1\u79E3\u7A08\u7A0D\u7A18\u7A19\u7A20\u7A1F\u7980\u7A31\u7A3B\u7A3E\u7A37\u7A43\u7A57\u7A49\u7A61\u7A62\u7A69\u9F9D\u7A70\u7A79\u7A7D\u7A88\u7A97\u7A95\u7A98\u7A96\u7AA9\u7AC8\u7AB0\u7AB6\u7AC5\u7AC4\u7ABF\u9083\u7AC7\u7ACA\u7ACD\u7ACF\u7AD5\u7AD3\u7AD9\u7ADA\u7ADD\u7AE1\u7AE2\u7AE6\u7AED\u7AF0\u7B02\u7B0F\u7B0A\u7B06\u7B33\u7B18\u7B19\u7B1E\u7B35\u7B28\u7B36\u7B50"],["e4a1","\u7B7A\u7B04\u7B4D\u7B0B\u7B4C\u7B45\u7B75\u7B65\u7B74\u7B67\u7B70\u7B71\u7B6C\u7B6E\u7B9D\u7B98\u7B9F\u7B8D\u7B9C\u7B9A\u7B8B\u7B92\u7B8F\u7B5D\u7B99\u7BCB\u7BC1\u7BCC\u7BCF\u7BB4\u7BC6\u7BDD\u7BE9\u7C11\u7C14\u7BE6\u7BE5\u7C60\u7C00\u7C07\u7C13\u7BF3\u7BF7\u7C17\u7C0D\u7BF6\u7C23\u7C27\u7C2A\u7C1F\u7C37\u7C2B\u7C3D\u7C4C\u7C43\u7C54\u7C4F\u7C40\u7C50\u7C58\u7C5F\u7C64\u7C56\u7C65\u7C6C\u7C75\u7C83\u7C90\u7CA4\u7CAD\u7CA2\u7CAB\u7CA1\u7CA8\u7CB3\u7CB2\u7CB1\u7CAE\u7CB9\u7CBD\u7CC0\u7CC5\u7CC2\u7CD8\u7CD2\u7CDC\u7CE2\u9B3B\u7CEF\u7CF2\u7CF4\u7CF6\u7CFA\u7D06"],["e5a1","\u7D02\u7D1C\u7D15\u7D0A\u7D45\u7D4B\u7D2E\u7D32\u7D3F\u7D35\u7D46\u7D73\u7D56\u7D4E\u7D72\u7D68\u7D6E\u7D4F\u7D63\u7D93\u7D89\u7D5B\u7D8F\u7D7D\u7D9B\u7DBA\u7DAE\u7DA3\u7DB5\u7DC7\u7DBD\u7DAB\u7E3D\u7DA2\u7DAF\u7DDC\u7DB8\u7D9F\u7DB0\u7DD8\u7DDD\u7DE4\u7DDE\u7DFB\u7DF2\u7DE1\u7E05\u7E0A\u7E23\u7E21\u7E12\u7E31\u7E1F\u7E09\u7E0B\u7E22\u7E46\u7E66\u7E3B\u7E35\u7E39\u7E43\u7E37\u7E32\u7E3A\u7E67\u7E5D\u7E56\u7E5E\u7E59\u7E5A\u7E79\u7E6A\u7E69\u7E7C\u7E7B\u7E83\u7DD5\u7E7D\u8FAE\u7E7F\u7E88\u7E89\u7E8C\u7E92\u7E90\u7E93\u7E94\u7E96\u7E8E\u7E9B\u7E9C\u7F38\u7F3A"],["e6a1","\u7F45\u7F4C\u7F4D\u7F4E\u7F50\u7F51\u7F55\u7F54\u7F58\u7F5F\u7F60\u7F68\u7F69\u7F67\u7F78\u7F82\u7F86\u7F83\u7F88\u7F87\u7F8C\u7F94\u7F9E\u7F9D\u7F9A\u7FA3\u7FAF\u7FB2\u7FB9\u7FAE\u7FB6\u7FB8\u8B71\u7FC5\u7FC6\u7FCA\u7FD5\u7FD4\u7FE1\u7FE6\u7FE9\u7FF3\u7FF9\u98DC\u8006\u8004\u800B\u8012\u8018\u8019\u801C\u8021\u8028\u803F\u803B\u804A\u8046\u8052\u8058\u805A\u805F\u8062\u8068\u8073\u8072\u8070\u8076\u8079\u807D\u807F\u8084\u8086\u8085\u809B\u8093\u809A\u80AD\u5190\u80AC\u80DB\u80E5\u80D9\u80DD\u80C4\u80DA\u80D6\u8109\u80EF\u80F1\u811B\u8129\u8123\u812F\u814B"],["e7a1","\u968B\u8146\u813E\u8153\u8151\u80FC\u8171\u816E\u8165\u8166\u8174\u8183\u8188\u818A\u8180\u8182\u81A0\u8195\u81A4\u81A3\u815F\u8193\u81A9\u81B0\u81B5\u81BE\u81B8\u81BD\u81C0\u81C2\u81BA\u81C9\u81CD\u81D1\u81D9\u81D8\u81C8\u81DA\u81DF\u81E0\u81E7\u81FA\u81FB\u81FE\u8201\u8202\u8205\u8207\u820A\u820D\u8210\u8216\u8229\u822B\u8238\u8233\u8240\u8259\u8258\u825D\u825A\u825F\u8264\u8262\u8268\u826A\u826B\u822E\u8271\u8277\u8278\u827E\u828D\u8292\u82AB\u829F\u82BB\u82AC\u82E1\u82E3\u82DF\u82D2\u82F4\u82F3\u82FA\u8393\u8303\u82FB\u82F9\u82DE\u8306\u82DC\u8309\u82D9"],["e8a1","\u8335\u8334\u8316\u8332\u8331\u8340\u8339\u8350\u8345\u832F\u832B\u8317\u8318\u8385\u839A\u83AA\u839F\u83A2\u8396\u8323\u838E\u8387\u838A\u837C\u83B5\u8373\u8375\u83A0\u8389\u83A8\u83F4\u8413\u83EB\u83CE\u83FD\u8403\u83D8\u840B\u83C1\u83F7\u8407\u83E0\u83F2\u840D\u8422\u8420\u83BD\u8438\u8506\u83FB\u846D\u842A\u843C\u855A\u8484\u8477\u846B\u84AD\u846E\u8482\u8469\u8446\u842C\u846F\u8479\u8435\u84CA\u8462\u84B9\u84BF\u849F\u84D9\u84CD\u84BB\u84DA\u84D0\u84C1\u84C6\u84D6\u84A1\u8521\u84FF\u84F4\u8517\u8518\u852C\u851F\u8515\u8514\u84FC\u8540\u8563\u8558\u8548"],["e9a1","\u8541\u8602\u854B\u8555\u8580\u85A4\u8588\u8591\u858A\u85A8\u856D\u8594\u859B\u85EA\u8587\u859C\u8577\u857E\u8590\u85C9\u85BA\u85CF\u85B9\u85D0\u85D5\u85DD\u85E5\u85DC\u85F9\u860A\u8613\u860B\u85FE\u85FA\u8606\u8622\u861A\u8630\u863F\u864D\u4E55\u8654\u865F\u8667\u8671\u8693\u86A3\u86A9\u86AA\u868B\u868C\u86B6\u86AF\u86C4\u86C6\u86B0\u86C9\u8823\u86AB\u86D4\u86DE\u86E9\u86EC\u86DF\u86DB\u86EF\u8712\u8706\u8708\u8700\u8703\u86FB\u8711\u8709\u870D\u86F9\u870A\u8734\u873F\u8737\u873B\u8725\u8729\u871A\u8760\u875F\u8778\u874C\u874E\u8774\u8757\u8768\u876E\u8759"],["eaa1","\u8753\u8763\u876A\u8805\u87A2\u879F\u8782\u87AF\u87CB\u87BD\u87C0\u87D0\u96D6\u87AB\u87C4\u87B3\u87C7\u87C6\u87BB\u87EF\u87F2\u87E0\u880F\u880D\u87FE\u87F6\u87F7\u880E\u87D2\u8811\u8816\u8815\u8822\u8821\u8831\u8836\u8839\u8827\u883B\u8844\u8842\u8852\u8859\u885E\u8862\u886B\u8881\u887E\u889E\u8875\u887D\u88B5\u8872\u8882\u8897\u8892\u88AE\u8899\u88A2\u888D\u88A4\u88B0\u88BF\u88B1\u88C3\u88C4\u88D4\u88D8\u88D9\u88DD\u88F9\u8902\u88FC\u88F4\u88E8\u88F2\u8904\u890C\u890A\u8913\u8943\u891E\u8925\u892A\u892B\u8941\u8944\u893B\u8936\u8938\u894C\u891D\u8960\u895E"],["eba1","\u8966\u8964\u896D\u896A\u896F\u8974\u8977\u897E\u8983\u8988\u898A\u8993\u8998\u89A1\u89A9\u89A6\u89AC\u89AF\u89B2\u89BA\u89BD\u89BF\u89C0\u89DA\u89DC\u89DD\u89E7\u89F4\u89F8\u8A03\u8A16\u8A10\u8A0C\u8A1B\u8A1D\u8A25\u8A36\u8A41\u8A5B\u8A52\u8A46\u8A48\u8A7C\u8A6D\u8A6C\u8A62\u8A85\u8A82\u8A84\u8AA8\u8AA1\u8A91\u8AA5\u8AA6\u8A9A\u8AA3\u8AC4\u8ACD\u8AC2\u8ADA\u8AEB\u8AF3\u8AE7\u8AE4\u8AF1\u8B14\u8AE0\u8AE2\u8AF7\u8ADE\u8ADB\u8B0C\u8B07\u8B1A\u8AE1\u8B16\u8B10\u8B17\u8B20\u8B33\u97AB\u8B26\u8B2B\u8B3E\u8B28\u8B41\u8B4C\u8B4F\u8B4E\u8B49\u8B56\u8B5B\u8B5A\u8B6B"],["eca1","\u8B5F\u8B6C\u8B6F\u8B74\u8B7D\u8B80\u8B8C\u8B8E\u8B92\u8B93\u8B96\u8B99\u8B9A\u8C3A\u8C41\u8C3F\u8C48\u8C4C\u8C4E\u8C50\u8C55\u8C62\u8C6C\u8C78\u8C7A\u8C82\u8C89\u8C85\u8C8A\u8C8D\u8C8E\u8C94\u8C7C\u8C98\u621D\u8CAD\u8CAA\u8CBD\u8CB2\u8CB3\u8CAE\u8CB6\u8CC8\u8CC1\u8CE4\u8CE3\u8CDA\u8CFD\u8CFA\u8CFB\u8D04\u8D05\u8D0A\u8D07\u8D0F\u8D0D\u8D10\u9F4E\u8D13\u8CCD\u8D14\u8D16\u8D67\u8D6D\u8D71\u8D73\u8D81\u8D99\u8DC2\u8DBE\u8DBA\u8DCF\u8DDA\u8DD6\u8DCC\u8DDB\u8DCB\u8DEA\u8DEB\u8DDF\u8DE3\u8DFC\u8E08\u8E09\u8DFF\u8E1D\u8E1E\u8E10\u8E1F\u8E42\u8E35\u8E30\u8E34\u8E4A"],["eda1","\u8E47\u8E49\u8E4C\u8E50\u8E48\u8E59\u8E64\u8E60\u8E2A\u8E63\u8E55\u8E76\u8E72\u8E7C\u8E81\u8E87\u8E85\u8E84\u8E8B\u8E8A\u8E93\u8E91\u8E94\u8E99\u8EAA\u8EA1\u8EAC\u8EB0\u8EC6\u8EB1\u8EBE\u8EC5\u8EC8\u8ECB\u8EDB\u8EE3\u8EFC\u8EFB\u8EEB\u8EFE\u8F0A\u8F05\u8F15\u8F12\u8F19\u8F13\u8F1C\u8F1F\u8F1B\u8F0C\u8F26\u8F33\u8F3B\u8F39\u8F45\u8F42\u8F3E\u8F4C\u8F49\u8F46\u8F4E\u8F57\u8F5C\u8F62\u8F63\u8F64\u8F9C\u8F9F\u8FA3\u8FAD\u8FAF\u8FB7\u8FDA\u8FE5\u8FE2\u8FEA\u8FEF\u9087\u8FF4\u9005\u8FF9\u8FFA\u9011\u9015\u9021\u900D\u901E\u9016\u900B\u9027\u9036\u9035\u9039\u8FF8"],["eea1","\u904F\u9050\u9051\u9052\u900E\u9049\u903E\u9056\u9058\u905E\u9068\u906F\u9076\u96A8\u9072\u9082\u907D\u9081\u9080\u908A\u9089\u908F\u90A8\u90AF\u90B1\u90B5\u90E2\u90E4\u6248\u90DB\u9102\u9112\u9119\u9132\u9130\u914A\u9156\u9158\u9163\u9165\u9169\u9173\u9172\u918B\u9189\u9182\u91A2\u91AB\u91AF\u91AA\u91B5\u91B4\u91BA\u91C0\u91C1\u91C9\u91CB\u91D0\u91D6\u91DF\u91E1\u91DB\u91FC\u91F5\u91F6\u921E\u91FF\u9214\u922C\u9215\u9211\u925E\u9257\u9245\u9249\u9264\u9248\u9295\u923F\u924B\u9250\u929C\u9296\u9293\u929B\u925A\u92CF\u92B9\u92B7\u92E9\u930F\u92FA\u9344\u932E"],["efa1","\u9319\u9322\u931A\u9323\u933A\u9335\u933B\u935C\u9360\u937C\u936E\u9356\u93B0\u93AC\u93AD\u9394\u93B9\u93D6\u93D7\u93E8\u93E5\u93D8\u93C3\u93DD\u93D0\u93C8\u93E4\u941A\u9414\u9413\u9403\u9407\u9410\u9436\u942B\u9435\u9421\u943A\u9441\u9452\u9444\u945B\u9460\u9462\u945E\u946A\u9229\u9470\u9475\u9477\u947D\u945A\u947C\u947E\u9481\u947F\u9582\u9587\u958A\u9594\u9596\u9598\u9599\u95A0\u95A8\u95A7\u95AD\u95BC\u95BB\u95B9\u95BE\u95CA\u6FF6\u95C3\u95CD\u95CC\u95D5\u95D4\u95D6\u95DC\u95E1\u95E5\u95E2\u9621\u9628\u962E\u962F\u9642\u964C\u964F\u964B\u9677\u965C\u965E"],["f0a1","\u965D\u965F\u9666\u9672\u966C\u968D\u9698\u9695\u9697\u96AA\u96A7\u96B1\u96B2\u96B0\u96B4\u96B6\u96B8\u96B9\u96CE\u96CB\u96C9\u96CD\u894D\u96DC\u970D\u96D5\u96F9\u9704\u9706\u9708\u9713\u970E\u9711\u970F\u9716\u9719\u9724\u972A\u9730\u9739\u973D\u973E\u9744\u9746\u9748\u9742\u9749\u975C\u9760\u9764\u9766\u9768\u52D2\u976B\u9771\u9779\u9785\u977C\u9781\u977A\u9786\u978B\u978F\u9790\u979C\u97A8\u97A6\u97A3\u97B3\u97B4\u97C3\u97C6\u97C8\u97CB\u97DC\u97ED\u9F4F\u97F2\u7ADF\u97F6\u97F5\u980F\u980C\u9838\u9824\u9821\u9837\u983D\u9846\u984F\u984B\u986B\u986F\u9870"],["f1a1","\u9871\u9874\u9873\u98AA\u98AF\u98B1\u98B6\u98C4\u98C3\u98C6\u98E9\u98EB\u9903\u9909\u9912\u9914\u9918\u9921\u991D\u991E\u9924\u9920\u992C\u992E\u993D\u993E\u9942\u9949\u9945\u9950\u994B\u9951\u9952\u994C\u9955\u9997\u9998\u99A5\u99AD\u99AE\u99BC\u99DF\u99DB\u99DD\u99D8\u99D1\u99ED\u99EE\u99F1\u99F2\u99FB\u99F8\u9A01\u9A0F\u9A05\u99E2\u9A19\u9A2B\u9A37\u9A45\u9A42\u9A40\u9A43\u9A3E\u9A55\u9A4D\u9A5B\u9A57\u9A5F\u9A62\u9A65\u9A64\u9A69\u9A6B\u9A6A\u9AAD\u9AB0\u9ABC\u9AC0\u9ACF\u9AD1\u9AD3\u9AD4\u9ADE\u9ADF\u9AE2\u9AE3\u9AE6\u9AEF\u9AEB\u9AEE\u9AF4\u9AF1\u9AF7"],["f2a1","\u9AFB\u9B06\u9B18\u9B1A\u9B1F\u9B22\u9B23\u9B25\u9B27\u9B28\u9B29\u9B2A\u9B2E\u9B2F\u9B32\u9B44\u9B43\u9B4F\u9B4D\u9B4E\u9B51\u9B58\u9B74\u9B93\u9B83\u9B91\u9B96\u9B97\u9B9F\u9BA0\u9BA8\u9BB4\u9BC0\u9BCA\u9BB9\u9BC6\u9BCF\u9BD1\u9BD2\u9BE3\u9BE2\u9BE4\u9BD4\u9BE1\u9C3A\u9BF2\u9BF1\u9BF0\u9C15\u9C14\u9C09\u9C13\u9C0C\u9C06\u9C08\u9C12\u9C0A\u9C04\u9C2E\u9C1B\u9C25\u9C24\u9C21\u9C30\u9C47\u9C32\u9C46\u9C3E\u9C5A\u9C60\u9C67\u9C76\u9C78\u9CE7\u9CEC\u9CF0\u9D09\u9D08\u9CEB\u9D03\u9D06\u9D2A\u9D26\u9DAF\u9D23\u9D1F\u9D44\u9D15\u9D12\u9D41\u9D3F\u9D3E\u9D46\u9D48"],["f3a1","\u9D5D\u9D5E\u9D64\u9D51\u9D50\u9D59\u9D72\u9D89\u9D87\u9DAB\u9D6F\u9D7A\u9D9A\u9DA4\u9DA9\u9DB2\u9DC4\u9DC1\u9DBB\u9DB8\u9DBA\u9DC6\u9DCF\u9DC2\u9DD9\u9DD3\u9DF8\u9DE6\u9DED\u9DEF\u9DFD\u9E1A\u9E1B\u9E1E\u9E75\u9E79\u9E7D\u9E81\u9E88\u9E8B\u9E8C\u9E92\u9E95\u9E91\u9E9D\u9EA5\u9EA9\u9EB8\u9EAA\u9EAD\u9761\u9ECC\u9ECE\u9ECF\u9ED0\u9ED4\u9EDC\u9EDE\u9EDD\u9EE0\u9EE5\u9EE8\u9EEF\u9EF4\u9EF6\u9EF7\u9EF9\u9EFB\u9EFC\u9EFD\u9F07\u9F08\u76B7\u9F15\u9F21\u9F2C\u9F3E\u9F4A\u9F52\u9F54\u9F63\u9F5F\u9F60\u9F61\u9F66\u9F67\u9F6C\u9F6A\u9F77\u9F72\u9F76\u9F95\u9F9C\u9FA0"],["f4a1","\u582F\u69C7\u9059\u7464\u51DC\u7199"],["f9a1","\u7E8A\u891C\u9348\u9288\u84DC\u4FC9\u70BB\u6631\u68C8\u92F9\u66FB\u5F45\u4E28\u4EE1\u4EFC\u4F00\u4F03\u4F39\u4F56\u4F92\u4F8A\u4F9A\u4F94\u4FCD\u5040\u5022\u4FFF\u501E\u5046\u5070\u5042\u5094\u50F4\u50D8\u514A\u5164\u519D\u51BE\u51EC\u5215\u529C\u52A6\u52C0\u52DB\u5300\u5307\u5324\u5372\u5393\u53B2\u53DD\uFA0E\u549C\u548A\u54A9\u54FF\u5586\u5759\u5765\u57AC\u57C8\u57C7\uFA0F\uFA10\u589E\u58B2\u590B\u5953\u595B\u595D\u5963\u59A4\u59BA\u5B56\u5BC0\u752F\u5BD8\u5BEC\u5C1E\u5CA6\u5CBA\u5CF5\u5D27\u5D53\uFA11\u5D42\u5D6D\u5DB8\u5DB9\u5DD0\u5F21\u5F34\u5F67\u5FB7"],["faa1","\u5FDE\u605D\u6085\u608A\u60DE\u60D5\u6120\u60F2\u6111\u6137\u6130\u6198\u6213\u62A6\u63F5\u6460\u649D\u64CE\u654E\u6600\u6615\u663B\u6609\u662E\u661E\u6624\u6665\u6657\u6659\uFA12\u6673\u6699\u66A0\u66B2\u66BF\u66FA\u670E\uF929\u6766\u67BB\u6852\u67C0\u6801\u6844\u68CF\uFA13\u6968\uFA14\u6998\u69E2\u6A30\u6A6B\u6A46\u6A73\u6A7E\u6AE2\u6AE4\u6BD6\u6C3F\u6C5C\u6C86\u6C6F\u6CDA\u6D04\u6D87\u6D6F\u6D96\u6DAC\u6DCF\u6DF8\u6DF2\u6DFC\u6E39\u6E5C\u6E27\u6E3C\u6EBF\u6F88\u6FB5\u6FF5\u7005\u7007\u7028\u7085\u70AB\u710F\u7104\u715C\u7146\u7147\uFA15\u71C1\u71FE\u72B1"],["fba1","\u72BE\u7324\uFA16\u7377\u73BD\u73C9\u73D6\u73E3\u73D2\u7407\u73F5\u7426\u742A\u7429\u742E\u7462\u7489\u749F\u7501\u756F\u7682\u769C\u769E\u769B\u76A6\uFA17\u7746\u52AF\u7821\u784E\u7864\u787A\u7930\uFA18\uFA19\uFA1A\u7994\uFA1B\u799B\u7AD1\u7AE7\uFA1C\u7AEB\u7B9E\uFA1D\u7D48\u7D5C\u7DB7\u7DA0\u7DD6\u7E52\u7F47\u7FA1\uFA1E\u8301\u8362\u837F\u83C7\u83F6\u8448\u84B4\u8553\u8559\u856B\uFA1F\u85B0\uFA20\uFA21\u8807\u88F5\u8A12\u8A37\u8A79\u8AA7\u8ABE\u8ADF\uFA22\u8AF6\u8B53\u8B7F\u8CF0\u8CF4\u8D12\u8D76\uFA23\u8ECF\uFA24\uFA25\u9067\u90DE\uFA26\u9115\u9127\u91DA"],["fca1","\u91D7\u91DE\u91ED\u91EE\u91E4\u91E5\u9206\u9210\u920A\u923A\u9240\u923C\u924E\u9259\u9251\u9239\u9267\u92A7\u9277\u9278\u92E7\u92D7\u92D9\u92D0\uFA27\u92D5\u92E0\u92D3\u9325\u9321\u92FB\uFA28\u931E\u92FF\u931D\u9302\u9370\u9357\u93A4\u93C6\u93DE\u93F8\u9431\u9445\u9448\u9592\uF9DC\uFA29\u969D\u96AF\u9733\u973B\u9743\u974D\u974F\u9751\u9755\u9857\u9865\uFA2A\uFA2B\u9927\uFA2C\u999E\u9A4E\u9AD9\u9ADC\u9B75\u9B72\u9B8F\u9BB1\u9BBB\u9C00\u9D70\u9D6B\uFA2D\u9E19\u9ED1"],["fcf1","\u2170",9,"\uFFE2\uFFE4\uFF07\uFF02"],["8fa2af","\u02D8\u02C7\xB8\u02D9\u02DD\xAF\u02DB\u02DA\uFF5E\u0384\u0385"],["8fa2c2","\xA1\xA6\xBF"],["8fa2eb","\xBA\xAA\xA9\xAE\u2122\xA4\u2116"],["8fa6e1","\u0386\u0388\u0389\u038A\u03AA"],["8fa6e7","\u038C"],["8fa6e9","\u038E\u03AB"],["8fa6ec","\u038F"],["8fa6f1","\u03AC\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03C2\u03CD\u03CB\u03B0\u03CE"],["8fa7c2","\u0402",10,"\u040E\u040F"],["8fa7f2","\u0452",10,"\u045E\u045F"],["8fa9a1","\xC6\u0110"],["8fa9a4","\u0126"],["8fa9a6","\u0132"],["8fa9a8","\u0141\u013F"],["8fa9ab","\u014A\xD8\u0152"],["8fa9af","\u0166\xDE"],["8fa9c1","\xE6\u0111\xF0\u0127\u0131\u0133\u0138\u0142\u0140\u0149\u014B\xF8\u0153\xDF\u0167\xFE"],["8faaa1","\xC1\xC0\xC4\xC2\u0102\u01CD\u0100\u0104\xC5\xC3\u0106\u0108\u010C\xC7\u010A\u010E\xC9\xC8\xCB\xCA\u011A\u0116\u0112\u0118"],["8faaba","\u011C\u011E\u0122\u0120\u0124\xCD\xCC\xCF\xCE\u01CF\u0130\u012A\u012E\u0128\u0134\u0136\u0139\u013D\u013B\u0143\u0147\u0145\xD1\xD3\xD2\xD6\xD4\u01D1\u0150\u014C\xD5\u0154\u0158\u0156\u015A\u015C\u0160\u015E\u0164\u0162\xDA\xD9\xDC\xDB\u016C\u01D3\u0170\u016A\u0172\u016E\u0168\u01D7\u01DB\u01D9\u01D5\u0174\xDD\u0178\u0176\u0179\u017D\u017B"],["8faba1","\xE1\xE0\xE4\xE2\u0103\u01CE\u0101\u0105\xE5\xE3\u0107\u0109\u010D\xE7\u010B\u010F\xE9\xE8\xEB\xEA\u011B\u0117\u0113\u0119\u01F5\u011D\u011F"],["8fabbd","\u0121\u0125\xED\xEC\xEF\xEE\u01D0"],["8fabc5","\u012B\u012F\u0129\u0135\u0137\u013A\u013E\u013C\u0144\u0148\u0146\xF1\xF3\xF2\xF6\xF4\u01D2\u0151\u014D\xF5\u0155\u0159\u0157\u015B\u015D\u0161\u015F\u0165\u0163\xFA\xF9\xFC\xFB\u016D\u01D4\u0171\u016B\u0173\u016F\u0169\u01D8\u01DC\u01DA\u01D6\u0175\xFD\xFF\u0177\u017A\u017E\u017C"],["8fb0a1","\u4E02\u4E04\u4E05\u4E0C\u4E12\u4E1F\u4E23\u4E24\u4E28\u4E2B\u4E2E\u4E2F\u4E30\u4E35\u4E40\u4E41\u4E44\u4E47\u4E51\u4E5A\u4E5C\u4E63\u4E68\u4E69\u4E74\u4E75\u4E79\u4E7F\u4E8D\u4E96\u4E97\u4E9D\u4EAF\u4EB9\u4EC3\u4ED0\u4EDA\u4EDB\u4EE0\u4EE1\u4EE2\u4EE8\u4EEF\u4EF1\u4EF3\u4EF5\u4EFD\u4EFE\u4EFF\u4F00\u4F02\u4F03\u4F08\u4F0B\u4F0C\u4F12\u4F15\u4F16\u4F17\u4F19\u4F2E\u4F31\u4F60\u4F33\u4F35\u4F37\u4F39\u4F3B\u4F3E\u4F40\u4F42\u4F48\u4F49\u4F4B\u4F4C\u4F52\u4F54\u4F56\u4F58\u4F5F\u4F63\u4F6A\u4F6C\u4F6E\u4F71\u4F77\u4F78\u4F79\u4F7A\u4F7D\u4F7E\u4F81\u4F82\u4F84"],["8fb1a1","\u4F85\u4F89\u4F8A\u4F8C\u4F8E\u4F90\u4F92\u4F93\u4F94\u4F97\u4F99\u4F9A\u4F9E\u4F9F\u4FB2\u4FB7\u4FB9\u4FBB\u4FBC\u4FBD\u4FBE\u4FC0\u4FC1\u4FC5\u4FC6\u4FC8\u4FC9\u4FCB\u4FCC\u4FCD\u4FCF\u4FD2\u4FDC\u4FE0\u4FE2\u4FF0\u4FF2\u4FFC\u4FFD\u4FFF\u5000\u5001\u5004\u5007\u500A\u500C\u500E\u5010\u5013\u5017\u5018\u501B\u501C\u501D\u501E\u5022\u5027\u502E\u5030\u5032\u5033\u5035\u5040\u5041\u5042\u5045\u5046\u504A\u504C\u504E\u5051\u5052\u5053\u5057\u5059\u505F\u5060\u5062\u5063\u5066\u5067\u506A\u506D\u5070\u5071\u503B\u5081\u5083\u5084\u5086\u508A\u508E\u508F\u5090"],["8fb2a1","\u5092\u5093\u5094\u5096\u509B\u509C\u509E",4,"\u50AA\u50AF\u50B0\u50B9\u50BA\u50BD\u50C0\u50C3\u50C4\u50C7\u50CC\u50CE\u50D0\u50D3\u50D4\u50D8\u50DC\u50DD\u50DF\u50E2\u50E4\u50E6\u50E8\u50E9\u50EF\u50F1\u50F6\u50FA\u50FE\u5103\u5106\u5107\u5108\u510B\u510C\u510D\u510E\u50F2\u5110\u5117\u5119\u511B\u511C\u511D\u511E\u5123\u5127\u5128\u512C\u512D\u512F\u5131\u5133\u5134\u5135\u5138\u5139\u5142\u514A\u514F\u5153\u5155\u5157\u5158\u515F\u5164\u5166\u517E\u5183\u5184\u518B\u518E\u5198\u519D\u51A1\u51A3\u51AD\u51B8\u51BA\u51BC\u51BE\u51BF\u51C2"],["8fb3a1","\u51C8\u51CF\u51D1\u51D2\u51D3\u51D5\u51D8\u51DE\u51E2\u51E5\u51EE\u51F2\u51F3\u51F4\u51F7\u5201\u5202\u5205\u5212\u5213\u5215\u5216\u5218\u5222\u5228\u5231\u5232\u5235\u523C\u5245\u5249\u5255\u5257\u5258\u525A\u525C\u525F\u5260\u5261\u5266\u526E\u5277\u5278\u5279\u5280\u5282\u5285\u528A\u528C\u5293\u5295\u5296\u5297\u5298\u529A\u529C\u52A4\u52A5\u52A6\u52A7\u52AF\u52B0\u52B6\u52B7\u52B8\u52BA\u52BB\u52BD\u52C0\u52C4\u52C6\u52C8\u52CC\u52CF\u52D1\u52D4\u52D6\u52DB\u52DC\u52E1\u52E5\u52E8\u52E9\u52EA\u52EC\u52F0\u52F1\u52F4\u52F6\u52F7\u5300\u5303\u530A\u530B"],["8fb4a1","\u530C\u5311\u5313\u5318\u531B\u531C\u531E\u531F\u5325\u5327\u5328\u5329\u532B\u532C\u532D\u5330\u5332\u5335\u533C\u533D\u533E\u5342\u534C\u534B\u5359\u535B\u5361\u5363\u5365\u536C\u536D\u5372\u5379\u537E\u5383\u5387\u5388\u538E\u5393\u5394\u5399\u539D\u53A1\u53A4\u53AA\u53AB\u53AF\u53B2\u53B4\u53B5\u53B7\u53B8\u53BA\u53BD\u53C0\u53C5\u53CF\u53D2\u53D3\u53D5\u53DA\u53DD\u53DE\u53E0\u53E6\u53E7\u53F5\u5402\u5413\u541A\u5421\u5427\u5428\u542A\u542F\u5431\u5434\u5435\u5443\u5444\u5447\u544D\u544F\u545E\u5462\u5464\u5466\u5467\u5469\u546B\u546D\u546E\u5474\u547F"],["8fb5a1","\u5481\u5483\u5485\u5488\u5489\u548D\u5491\u5495\u5496\u549C\u549F\u54A1\u54A6\u54A7\u54A9\u54AA\u54AD\u54AE\u54B1\u54B7\u54B9\u54BA\u54BB\u54BF\u54C6\u54CA\u54CD\u54CE\u54E0\u54EA\u54EC\u54EF\u54F6\u54FC\u54FE\u54FF\u5500\u5501\u5505\u5508\u5509\u550C\u550D\u550E\u5515\u552A\u552B\u5532\u5535\u5536\u553B\u553C\u553D\u5541\u5547\u5549\u554A\u554D\u5550\u5551\u5558\u555A\u555B\u555E\u5560\u5561\u5564\u5566\u557F\u5581\u5582\u5586\u5588\u558E\u558F\u5591\u5592\u5593\u5594\u5597\u55A3\u55A4\u55AD\u55B2\u55BF\u55C1\u55C3\u55C6\u55C9\u55CB\u55CC\u55CE\u55D1\u55D2"],["8fb6a1","\u55D3\u55D7\u55D8\u55DB\u55DE\u55E2\u55E9\u55F6\u55FF\u5605\u5608\u560A\u560D",5,"\u5619\u562C\u5630\u5633\u5635\u5637\u5639\u563B\u563C\u563D\u563F\u5640\u5641\u5643\u5644\u5646\u5649\u564B\u564D\u564F\u5654\u565E\u5660\u5661\u5662\u5663\u5666\u5669\u566D\u566F\u5671\u5672\u5675\u5684\u5685\u5688\u568B\u568C\u5695\u5699\u569A\u569D\u569E\u569F\u56A6\u56A7\u56A8\u56A9\u56AB\u56AC\u56AD\u56B1\u56B3\u56B7\u56BE\u56C5\u56C9\u56CA\u56CB\u56CF\u56D0\u56CC\u56CD\u56D9\u56DC\u56DD\u56DF\u56E1\u56E4",4,"\u56F1\u56EB\u56ED"],["8fb7a1","\u56F6\u56F7\u5701\u5702\u5707\u570A\u570C\u5711\u5715\u571A\u571B\u571D\u5720\u5722\u5723\u5724\u5725\u5729\u572A\u572C\u572E\u572F\u5733\u5734\u573D\u573E\u573F\u5745\u5746\u574C\u574D\u5752\u5762\u5765\u5767\u5768\u576B\u576D",4,"\u5773\u5774\u5775\u5777\u5779\u577A\u577B\u577C\u577E\u5781\u5783\u578C\u5794\u5797\u5799\u579A\u579C\u579D\u579E\u579F\u57A1\u5795\u57A7\u57A8\u57A9\u57AC\u57B8\u57BD\u57C7\u57C8\u57CC\u57CF\u57D5\u57DD\u57DE\u57E4\u57E6\u57E7\u57E9\u57ED\u57F0\u57F5\u57F6\u57F8\u57FD\u57FE\u57FF\u5803\u5804\u5808\u5809\u57E1"],["8fb8a1","\u580C\u580D\u581B\u581E\u581F\u5820\u5826\u5827\u582D\u5832\u5839\u583F\u5849\u584C\u584D\u584F\u5850\u5855\u585F\u5861\u5864\u5867\u5868\u5878\u587C\u587F\u5880\u5881\u5887\u5888\u5889\u588A\u588C\u588D\u588F\u5890\u5894\u5896\u589D\u58A0\u58A1\u58A2\u58A6\u58A9\u58B1\u58B2\u58C4\u58BC\u58C2\u58C8\u58CD\u58CE\u58D0\u58D2\u58D4\u58D6\u58DA\u58DD\u58E1\u58E2\u58E9\u58F3\u5905\u5906\u590B\u590C\u5912\u5913\u5914\u8641\u591D\u5921\u5923\u5924\u5928\u592F\u5930\u5933\u5935\u5936\u593F\u5943\u5946\u5952\u5953\u5959\u595B\u595D\u595E\u595F\u5961\u5963\u596B\u596D"],["8fb9a1","\u596F\u5972\u5975\u5976\u5979\u597B\u597C\u598B\u598C\u598E\u5992\u5995\u5997\u599F\u59A4\u59A7\u59AD\u59AE\u59AF\u59B0\u59B3\u59B7\u59BA\u59BC\u59C1\u59C3\u59C4\u59C8\u59CA\u59CD\u59D2\u59DD\u59DE\u59DF\u59E3\u59E4\u59E7\u59EE\u59EF\u59F1\u59F2\u59F4\u59F7\u5A00\u5A04\u5A0C\u5A0D\u5A0E\u5A12\u5A13\u5A1E\u5A23\u5A24\u5A27\u5A28\u5A2A\u5A2D\u5A30\u5A44\u5A45\u5A47\u5A48\u5A4C\u5A50\u5A55\u5A5E\u5A63\u5A65\u5A67\u5A6D\u5A77\u5A7A\u5A7B\u5A7E\u5A8B\u5A90\u5A93\u5A96\u5A99\u5A9C\u5A9E\u5A9F\u5AA0\u5AA2\u5AA7\u5AAC\u5AB1\u5AB2\u5AB3\u5AB5\u5AB8\u5ABA\u5ABB\u5ABF"],["8fbaa1","\u5AC4\u5AC6\u5AC8\u5ACF\u5ADA\u5ADC\u5AE0\u5AE5\u5AEA\u5AEE\u5AF5\u5AF6\u5AFD\u5B00\u5B01\u5B08\u5B17\u5B34\u5B19\u5B1B\u5B1D\u5B21\u5B25\u5B2D\u5B38\u5B41\u5B4B\u5B4C\u5B52\u5B56\u5B5E\u5B68\u5B6E\u5B6F\u5B7C\u5B7D\u5B7E\u5B7F\u5B81\u5B84\u5B86\u5B8A\u5B8E\u5B90\u5B91\u5B93\u5B94\u5B96\u5BA8\u5BA9\u5BAC\u5BAD\u5BAF\u5BB1\u5BB2\u5BB7\u5BBA\u5BBC\u5BC0\u5BC1\u5BCD\u5BCF\u5BD6",4,"\u5BE0\u5BEF\u5BF1\u5BF4\u5BFD\u5C0C\u5C17\u5C1E\u5C1F\u5C23\u5C26\u5C29\u5C2B\u5C2C\u5C2E\u5C30\u5C32\u5C35\u5C36\u5C59\u5C5A\u5C5C\u5C62\u5C63\u5C67\u5C68\u5C69"],["8fbba1","\u5C6D\u5C70\u5C74\u5C75\u5C7A\u5C7B\u5C7C\u5C7D\u5C87\u5C88\u5C8A\u5C8F\u5C92\u5C9D\u5C9F\u5CA0\u5CA2\u5CA3\u5CA6\u5CAA\u5CB2\u5CB4\u5CB5\u5CBA\u5CC9\u5CCB\u5CD2\u5CDD\u5CD7\u5CEE\u5CF1\u5CF2\u5CF4\u5D01\u5D06\u5D0D\u5D12\u5D2B\u5D23\u5D24\u5D26\u5D27\u5D31\u5D34\u5D39\u5D3D\u5D3F\u5D42\u5D43\u5D46\u5D48\u5D55\u5D51\u5D59\u5D4A\u5D5F\u5D60\u5D61\u5D62\u5D64\u5D6A\u5D6D\u5D70\u5D79\u5D7A\u5D7E\u5D7F\u5D81\u5D83\u5D88\u5D8A\u5D92\u5D93\u5D94\u5D95\u5D99\u5D9B\u5D9F\u5DA0\u5DA7\u5DAB\u5DB0\u5DB4\u5DB8\u5DB9\u5DC3\u5DC7\u5DCB\u5DD0\u5DCE\u5DD8\u5DD9\u5DE0\u5DE4"],["8fbca1","\u5DE9\u5DF8\u5DF9\u5E00\u5E07\u5E0D\u5E12\u5E14\u5E15\u5E18\u5E1F\u5E20\u5E2E\u5E28\u5E32\u5E35\u5E3E\u5E4B\u5E50\u5E49\u5E51\u5E56\u5E58\u5E5B\u5E5C\u5E5E\u5E68\u5E6A",4,"\u5E70\u5E80\u5E8B\u5E8E\u5EA2\u5EA4\u5EA5\u5EA8\u5EAA\u5EAC\u5EB1\u5EB3\u5EBD\u5EBE\u5EBF\u5EC6\u5ECC\u5ECB\u5ECE\u5ED1\u5ED2\u5ED4\u5ED5\u5EDC\u5EDE\u5EE5\u5EEB\u5F02\u5F06\u5F07\u5F08\u5F0E\u5F19\u5F1C\u5F1D\u5F21\u5F22\u5F23\u5F24\u5F28\u5F2B\u5F2C\u5F2E\u5F30\u5F34\u5F36\u5F3B\u5F3D\u5F3F\u5F40\u5F44\u5F45\u5F47\u5F4D\u5F50\u5F54\u5F58\u5F5B\u5F60\u5F63\u5F64\u5F67"],["8fbda1","\u5F6F\u5F72\u5F74\u5F75\u5F78\u5F7A\u5F7D\u5F7E\u5F89\u5F8D\u5F8F\u5F96\u5F9C\u5F9D\u5FA2\u5FA7\u5FAB\u5FA4\u5FAC\u5FAF\u5FB0\u5FB1\u5FB8\u5FC4\u5FC7\u5FC8\u5FC9\u5FCB\u5FD0",4,"\u5FDE\u5FE1\u5FE2\u5FE8\u5FE9\u5FEA\u5FEC\u5FED\u5FEE\u5FEF\u5FF2\u5FF3\u5FF6\u5FFA\u5FFC\u6007\u600A\u600D\u6013\u6014\u6017\u6018\u601A\u601F\u6024\u602D\u6033\u6035\u6040\u6047\u6048\u6049\u604C\u6051\u6054\u6056\u6057\u605D\u6061\u6067\u6071\u607E\u607F\u6082\u6086\u6088\u608A\u608E\u6091\u6093\u6095\u6098\u609D\u609E\u60A2\u60A4\u60A5\u60A8\u60B0\u60B1\u60B7"],["8fbea1","\u60BB\u60BE\u60C2\u60C4\u60C8\u60C9\u60CA\u60CB\u60CE\u60CF\u60D4\u60D5\u60D9\u60DB\u60DD\u60DE\u60E2\u60E5\u60F2\u60F5\u60F8\u60FC\u60FD\u6102\u6107\u610A\u610C\u6110",4,"\u6116\u6117\u6119\u611C\u611E\u6122\u612A\u612B\u6130\u6131\u6135\u6136\u6137\u6139\u6141\u6145\u6146\u6149\u615E\u6160\u616C\u6172\u6178\u617B\u617C\u617F\u6180\u6181\u6183\u6184\u618B\u618D\u6192\u6193\u6197\u6198\u619C\u619D\u619F\u61A0\u61A5\u61A8\u61AA\u61AD\u61B8\u61B9\u61BC\u61C0\u61C1\u61C2\u61CE\u61CF\u61D5\u61DC\u61DD\u61DE\u61DF\u61E1\u61E2\u61E7\u61E9\u61E5"],["8fbfa1","\u61EC\u61ED\u61EF\u6201\u6203\u6204\u6207\u6213\u6215\u621C\u6220\u6222\u6223\u6227\u6229\u622B\u6239\u623D\u6242\u6243\u6244\u6246\u624C\u6250\u6251\u6252\u6254\u6256\u625A\u625C\u6264\u626D\u626F\u6273\u627A\u627D\u628D\u628E\u628F\u6290\u62A6\u62A8\u62B3\u62B6\u62B7\u62BA\u62BE\u62BF\u62C4\u62CE\u62D5\u62D6\u62DA\u62EA\u62F2\u62F4\u62FC\u62FD\u6303\u6304\u630A\u630B\u630D\u6310\u6313\u6316\u6318\u6329\u632A\u632D\u6335\u6336\u6339\u633C\u6341\u6342\u6343\u6344\u6346\u634A\u634B\u634E\u6352\u6353\u6354\u6358\u635B\u6365\u6366\u636C\u636D\u6371\u6374\u6375"],["8fc0a1","\u6378\u637C\u637D\u637F\u6382\u6384\u6387\u638A\u6390\u6394\u6395\u6399\u639A\u639E\u63A4\u63A6\u63AD\u63AE\u63AF\u63BD\u63C1\u63C5\u63C8\u63CE\u63D1\u63D3\u63D4\u63D5\u63DC\u63E0\u63E5\u63EA\u63EC\u63F2\u63F3\u63F5\u63F8\u63F9\u6409\u640A\u6410\u6412\u6414\u6418\u641E\u6420\u6422\u6424\u6425\u6429\u642A\u642F\u6430\u6435\u643D\u643F\u644B\u644F\u6451\u6452\u6453\u6454\u645A\u645B\u645C\u645D\u645F\u6460\u6461\u6463\u646D\u6473\u6474\u647B\u647D\u6485\u6487\u648F\u6490\u6491\u6498\u6499\u649B\u649D\u649F\u64A1\u64A3\u64A6\u64A8\u64AC\u64B3\u64BD\u64BE\u64BF"],["8fc1a1","\u64C4\u64C9\u64CA\u64CB\u64CC\u64CE\u64D0\u64D1\u64D5\u64D7\u64E4\u64E5\u64E9\u64EA\u64ED\u64F0\u64F5\u64F7\u64FB\u64FF\u6501\u6504\u6508\u6509\u650A\u650F\u6513\u6514\u6516\u6519\u651B\u651E\u651F\u6522\u6526\u6529\u652E\u6531\u653A\u653C\u653D\u6543\u6547\u6549\u6550\u6552\u6554\u655F\u6560\u6567\u656B\u657A\u657D\u6581\u6585\u658A\u6592\u6595\u6598\u659D\u65A0\u65A3\u65A6\u65AE\u65B2\u65B3\u65B4\u65BF\u65C2\u65C8\u65C9\u65CE\u65D0\u65D4\u65D6\u65D8\u65DF\u65F0\u65F2\u65F4\u65F5\u65F9\u65FE\u65FF\u6600\u6604\u6608\u6609\u660D\u6611\u6612\u6615\u6616\u661D"],["8fc2a1","\u661E\u6621\u6622\u6623\u6624\u6626\u6629\u662A\u662B\u662C\u662E\u6630\u6631\u6633\u6639\u6637\u6640\u6645\u6646\u664A\u664C\u6651\u664E\u6657\u6658\u6659\u665B\u665C\u6660\u6661\u66FB\u666A\u666B\u666C\u667E\u6673\u6675\u667F\u6677\u6678\u6679\u667B\u6680\u667C\u668B\u668C\u668D\u6690\u6692\u6699\u669A\u669B\u669C\u669F\u66A0\u66A4\u66AD\u66B1\u66B2\u66B5\u66BB\u66BF\u66C0\u66C2\u66C3\u66C8\u66CC\u66CE\u66CF\u66D4\u66DB\u66DF\u66E8\u66EB\u66EC\u66EE\u66FA\u6705\u6707\u670E\u6713\u6719\u671C\u6720\u6722\u6733\u673E\u6745\u6747\u6748\u674C\u6754\u6755\u675D"],["8fc3a1","\u6766\u676C\u676E\u6774\u6776\u677B\u6781\u6784\u678E\u678F\u6791\u6793\u6796\u6798\u6799\u679B\u67B0\u67B1\u67B2\u67B5\u67BB\u67BC\u67BD\u67F9\u67C0\u67C2\u67C3\u67C5\u67C8\u67C9\u67D2\u67D7\u67D9\u67DC\u67E1\u67E6\u67F0\u67F2\u67F6\u67F7\u6852\u6814\u6819\u681D\u681F\u6828\u6827\u682C\u682D\u682F\u6830\u6831\u6833\u683B\u683F\u6844\u6845\u684A\u684C\u6855\u6857\u6858\u685B\u686B\u686E",4,"\u6875\u6879\u687A\u687B\u687C\u6882\u6884\u6886\u6888\u6896\u6898\u689A\u689C\u68A1\u68A3\u68A5\u68A9\u68AA\u68AE\u68B2\u68BB\u68C5\u68C8\u68CC\u68CF"],["8fc4a1","\u68D0\u68D1\u68D3\u68D6\u68D9\u68DC\u68DD\u68E5\u68E8\u68EA\u68EB\u68EC\u68ED\u68F0\u68F1\u68F5\u68F6\u68FB\u68FC\u68FD\u6906\u6909\u690A\u6910\u6911\u6913\u6916\u6917\u6931\u6933\u6935\u6938\u693B\u6942\u6945\u6949\u694E\u6957\u695B\u6963\u6964\u6965\u6966\u6968\u6969\u696C\u6970\u6971\u6972\u697A\u697B\u697F\u6980\u698D\u6992\u6996\u6998\u69A1\u69A5\u69A6\u69A8\u69AB\u69AD\u69AF\u69B7\u69B8\u69BA\u69BC\u69C5\u69C8\u69D1\u69D6\u69D7\u69E2\u69E5\u69EE\u69EF\u69F1\u69F3\u69F5\u69FE\u6A00\u6A01\u6A03\u6A0F\u6A11\u6A15\u6A1A\u6A1D\u6A20\u6A24\u6A28\u6A30\u6A32"],["8fc5a1","\u6A34\u6A37\u6A3B\u6A3E\u6A3F\u6A45\u6A46\u6A49\u6A4A\u6A4E\u6A50\u6A51\u6A52\u6A55\u6A56\u6A5B\u6A64\u6A67\u6A6A\u6A71\u6A73\u6A7E\u6A81\u6A83\u6A86\u6A87\u6A89\u6A8B\u6A91\u6A9B\u6A9D\u6A9E\u6A9F\u6AA5\u6AAB\u6AAF\u6AB0\u6AB1\u6AB4\u6ABD\u6ABE\u6ABF\u6AC6\u6AC9\u6AC8\u6ACC\u6AD0\u6AD4\u6AD5\u6AD6\u6ADC\u6ADD\u6AE4\u6AE7\u6AEC\u6AF0\u6AF1\u6AF2\u6AFC\u6AFD\u6B02\u6B03\u6B06\u6B07\u6B09\u6B0F\u6B10\u6B11\u6B17\u6B1B\u6B1E\u6B24\u6B28\u6B2B\u6B2C\u6B2F\u6B35\u6B36\u6B3B\u6B3F\u6B46\u6B4A\u6B4D\u6B52\u6B56\u6B58\u6B5D\u6B60\u6B67\u6B6B\u6B6E\u6B70\u6B75\u6B7D"],["8fc6a1","\u6B7E\u6B82\u6B85\u6B97\u6B9B\u6B9F\u6BA0\u6BA2\u6BA3\u6BA8\u6BA9\u6BAC\u6BAD\u6BAE\u6BB0\u6BB8\u6BB9\u6BBD\u6BBE\u6BC3\u6BC4\u6BC9\u6BCC\u6BD6\u6BDA\u6BE1\u6BE3\u6BE6\u6BE7\u6BEE\u6BF1\u6BF7\u6BF9\u6BFF\u6C02\u6C04\u6C05\u6C09\u6C0D\u6C0E\u6C10\u6C12\u6C19\u6C1F\u6C26\u6C27\u6C28\u6C2C\u6C2E\u6C33\u6C35\u6C36\u6C3A\u6C3B\u6C3F\u6C4A\u6C4B\u6C4D\u6C4F\u6C52\u6C54\u6C59\u6C5B\u6C5C\u6C6B\u6C6D\u6C6F\u6C74\u6C76\u6C78\u6C79\u6C7B\u6C85\u6C86\u6C87\u6C89\u6C94\u6C95\u6C97\u6C98\u6C9C\u6C9F\u6CB0\u6CB2\u6CB4\u6CC2\u6CC6\u6CCD\u6CCF\u6CD0\u6CD1\u6CD2\u6CD4\u6CD6"],["8fc7a1","\u6CDA\u6CDC\u6CE0\u6CE7\u6CE9\u6CEB\u6CEC\u6CEE\u6CF2\u6CF4\u6D04\u6D07\u6D0A\u6D0E\u6D0F\u6D11\u6D13\u6D1A\u6D26\u6D27\u6D28\u6C67\u6D2E\u6D2F\u6D31\u6D39\u6D3C\u6D3F\u6D57\u6D5E\u6D5F\u6D61\u6D65\u6D67\u6D6F\u6D70\u6D7C\u6D82\u6D87\u6D91\u6D92\u6D94\u6D96\u6D97\u6D98\u6DAA\u6DAC\u6DB4\u6DB7\u6DB9\u6DBD\u6DBF\u6DC4\u6DC8\u6DCA\u6DCE\u6DCF\u6DD6\u6DDB\u6DDD\u6DDF\u6DE0\u6DE2\u6DE5\u6DE9\u6DEF\u6DF0\u6DF4\u6DF6\u6DFC\u6E00\u6E04\u6E1E\u6E22\u6E27\u6E32\u6E36\u6E39\u6E3B\u6E3C\u6E44\u6E45\u6E48\u6E49\u6E4B\u6E4F\u6E51\u6E52\u6E53\u6E54\u6E57\u6E5C\u6E5D\u6E5E"],["8fc8a1","\u6E62\u6E63\u6E68\u6E73\u6E7B\u6E7D\u6E8D\u6E93\u6E99\u6EA0\u6EA7\u6EAD\u6EAE\u6EB1\u6EB3\u6EBB\u6EBF\u6EC0\u6EC1\u6EC3\u6EC7\u6EC8\u6ECA\u6ECD\u6ECE\u6ECF\u6EEB\u6EED\u6EEE\u6EF9\u6EFB\u6EFD\u6F04\u6F08\u6F0A\u6F0C\u6F0D\u6F16\u6F18\u6F1A\u6F1B\u6F26\u6F29\u6F2A\u6F2F\u6F30\u6F33\u6F36\u6F3B\u6F3C\u6F2D\u6F4F\u6F51\u6F52\u6F53\u6F57\u6F59\u6F5A\u6F5D\u6F5E\u6F61\u6F62\u6F68\u6F6C\u6F7D\u6F7E\u6F83\u6F87\u6F88\u6F8B\u6F8C\u6F8D\u6F90\u6F92\u6F93\u6F94\u6F96\u6F9A\u6F9F\u6FA0\u6FA5\u6FA6\u6FA7\u6FA8\u6FAE\u6FAF\u6FB0\u6FB5\u6FB6\u6FBC\u6FC5\u6FC7\u6FC8\u6FCA"],["8fc9a1","\u6FDA\u6FDE\u6FE8\u6FE9\u6FF0\u6FF5\u6FF9\u6FFC\u6FFD\u7000\u7005\u7006\u7007\u700D\u7017\u7020\u7023\u702F\u7034\u7037\u7039\u703C\u7043\u7044\u7048\u7049\u704A\u704B\u7054\u7055\u705D\u705E\u704E\u7064\u7065\u706C\u706E\u7075\u7076\u707E\u7081\u7085\u7086\u7094",4,"\u709B\u70A4\u70AB\u70B0\u70B1\u70B4\u70B7\u70CA\u70D1\u70D3\u70D4\u70D5\u70D6\u70D8\u70DC\u70E4\u70FA\u7103",4,"\u710B\u710C\u710F\u711E\u7120\u712B\u712D\u712F\u7130\u7131\u7138\u7141\u7145\u7146\u7147\u714A\u714B\u7150\u7152\u7157\u715A\u715C\u715E\u7160"],["8fcaa1","\u7168\u7179\u7180\u7185\u7187\u718C\u7192\u719A\u719B\u71A0\u71A2\u71AF\u71B0\u71B2\u71B3\u71BA\u71BF\u71C0\u71C1\u71C4\u71CB\u71CC\u71D3\u71D6\u71D9\u71DA\u71DC\u71F8\u71FE\u7200\u7207\u7208\u7209\u7213\u7217\u721A\u721D\u721F\u7224\u722B\u722F\u7234\u7238\u7239\u7241\u7242\u7243\u7245\u724E\u724F\u7250\u7253\u7255\u7256\u725A\u725C\u725E\u7260\u7263\u7268\u726B\u726E\u726F\u7271\u7277\u7278\u727B\u727C\u727F\u7284\u7289\u728D\u728E\u7293\u729B\u72A8\u72AD\u72AE\u72B1\u72B4\u72BE\u72C1\u72C7\u72C9\u72CC\u72D5\u72D6\u72D8\u72DF\u72E5\u72F3\u72F4\u72FA\u72FB"],["8fcba1","\u72FE\u7302\u7304\u7305\u7307\u730B\u730D\u7312\u7313\u7318\u7319\u731E\u7322\u7324\u7327\u7328\u732C\u7331\u7332\u7335\u733A\u733B\u733D\u7343\u734D\u7350\u7352\u7356\u7358\u735D\u735E\u735F\u7360\u7366\u7367\u7369\u736B\u736C\u736E\u736F\u7371\u7377\u7379\u737C\u7380\u7381\u7383\u7385\u7386\u738E\u7390\u7393\u7395\u7397\u7398\u739C\u739E\u739F\u73A0\u73A2\u73A5\u73A6\u73AA\u73AB\u73AD\u73B5\u73B7\u73B9\u73BC\u73BD\u73BF\u73C5\u73C6\u73C9\u73CB\u73CC\u73CF\u73D2\u73D3\u73D6\u73D9\u73DD\u73E1\u73E3\u73E6\u73E7\u73E9\u73F4\u73F5\u73F7\u73F9\u73FA\u73FB\u73FD"],["8fcca1","\u73FF\u7400\u7401\u7404\u7407\u740A\u7411\u741A\u741B\u7424\u7426\u7428",9,"\u7439\u7440\u7443\u7444\u7446\u7447\u744B\u744D\u7451\u7452\u7457\u745D\u7462\u7466\u7467\u7468\u746B\u746D\u746E\u7471\u7472\u7480\u7481\u7485\u7486\u7487\u7489\u748F\u7490\u7491\u7492\u7498\u7499\u749A\u749C\u749F\u74A0\u74A1\u74A3\u74A6\u74A8\u74A9\u74AA\u74AB\u74AE\u74AF\u74B1\u74B2\u74B5\u74B9\u74BB\u74BF\u74C8\u74C9\u74CC\u74D0\u74D3\u74D8\u74DA\u74DB\u74DE\u74DF\u74E4\u74E8\u74EA\u74EB\u74EF\u74F4\u74FA\u74FB\u74FC\u74FF\u7506"],["8fcda1","\u7512\u7516\u7517\u7520\u7521\u7524\u7527\u7529\u752A\u752F\u7536\u7539\u753D\u753E\u753F\u7540\u7543\u7547\u7548\u754E\u7550\u7552\u7557\u755E\u755F\u7561\u756F\u7571\u7579",5,"\u7581\u7585\u7590\u7592\u7593\u7595\u7599\u759C\u75A2\u75A4\u75B4\u75BA\u75BF\u75C0\u75C1\u75C4\u75C6\u75CC\u75CE\u75CF\u75D7\u75DC\u75DF\u75E0\u75E1\u75E4\u75E7\u75EC\u75EE\u75EF\u75F1\u75F9\u7600\u7602\u7603\u7604\u7607\u7608\u760A\u760C\u760F\u7612\u7613\u7615\u7616\u7619\u761B\u761C\u761D\u761E\u7623\u7625\u7626\u7629\u762D\u7632\u7633\u7635\u7638\u7639"],["8fcea1","\u763A\u763C\u764A\u7640\u7641\u7643\u7644\u7645\u7649\u764B\u7655\u7659\u765F\u7664\u7665\u766D\u766E\u766F\u7671\u7674\u7681\u7685\u768C\u768D\u7695\u769B\u769C\u769D\u769F\u76A0\u76A2",6,"\u76AA\u76AD\u76BD\u76C1\u76C5\u76C9\u76CB\u76CC\u76CE\u76D4\u76D9\u76E0\u76E6\u76E8\u76EC\u76F0\u76F1\u76F6\u76F9\u76FC\u7700\u7706\u770A\u770E\u7712\u7714\u7715\u7717\u7719\u771A\u771C\u7722\u7728\u772D\u772E\u772F\u7734\u7735\u7736\u7739\u773D\u773E\u7742\u7745\u7746\u774A\u774D\u774E\u774F\u7752\u7756\u7757\u775C\u775E\u775F\u7760\u7762"],["8fcfa1","\u7764\u7767\u776A\u776C\u7770\u7772\u7773\u7774\u777A\u777D\u7780\u7784\u778C\u778D\u7794\u7795\u7796\u779A\u779F\u77A2\u77A7\u77AA\u77AE\u77AF\u77B1\u77B5\u77BE\u77C3\u77C9\u77D1\u77D2\u77D5\u77D9\u77DE\u77DF\u77E0\u77E4\u77E6\u77EA\u77EC\u77F0\u77F1\u77F4\u77F8\u77FB\u7805\u7806\u7809\u780D\u780E\u7811\u781D\u7821\u7822\u7823\u782D\u782E\u7830\u7835\u7837\u7843\u7844\u7847\u7848\u784C\u784E\u7852\u785C\u785E\u7860\u7861\u7863\u7864\u7868\u786A\u786E\u787A\u787E\u788A\u788F\u7894\u7898\u78A1\u789D\u789E\u789F\u78A4\u78A8\u78AC\u78AD\u78B0\u78B1\u78B2\u78B3"],["8fd0a1","\u78BB\u78BD\u78BF\u78C7\u78C8\u78C9\u78CC\u78CE\u78D2\u78D3\u78D5\u78D6\u78E4\u78DB\u78DF\u78E0\u78E1\u78E6\u78EA\u78F2\u78F3\u7900\u78F6\u78F7\u78FA\u78FB\u78FF\u7906\u790C\u7910\u791A\u791C\u791E\u791F\u7920\u7925\u7927\u7929\u792D\u7931\u7934\u7935\u793B\u793D\u793F\u7944\u7945\u7946\u794A\u794B\u794F\u7951\u7954\u7958\u795B\u795C\u7967\u7969\u796B\u7972\u7979\u797B\u797C\u797E\u798B\u798C\u7991\u7993\u7994\u7995\u7996\u7998\u799B\u799C\u79A1\u79A8\u79A9\u79AB\u79AF\u79B1\u79B4\u79B8\u79BB\u79C2\u79C4\u79C7\u79C8\u79CA\u79CF\u79D4\u79D6\u79DA\u79DD\u79DE"],["8fd1a1","\u79E0\u79E2\u79E5\u79EA\u79EB\u79ED\u79F1\u79F8\u79FC\u7A02\u7A03\u7A07\u7A09\u7A0A\u7A0C\u7A11\u7A15\u7A1B\u7A1E\u7A21\u7A27\u7A2B\u7A2D\u7A2F\u7A30\u7A34\u7A35\u7A38\u7A39\u7A3A\u7A44\u7A45\u7A47\u7A48\u7A4C\u7A55\u7A56\u7A59\u7A5C\u7A5D\u7A5F\u7A60\u7A65\u7A67\u7A6A\u7A6D\u7A75\u7A78\u7A7E\u7A80\u7A82\u7A85\u7A86\u7A8A\u7A8B\u7A90\u7A91\u7A94\u7A9E\u7AA0\u7AA3\u7AAC\u7AB3\u7AB5\u7AB9\u7ABB\u7ABC\u7AC6\u7AC9\u7ACC\u7ACE\u7AD1\u7ADB\u7AE8\u7AE9\u7AEB\u7AEC\u7AF1\u7AF4\u7AFB\u7AFD\u7AFE\u7B07\u7B14\u7B1F\u7B23\u7B27\u7B29\u7B2A\u7B2B\u7B2D\u7B2E\u7B2F\u7B30"],["8fd2a1","\u7B31\u7B34\u7B3D\u7B3F\u7B40\u7B41\u7B47\u7B4E\u7B55\u7B60\u7B64\u7B66\u7B69\u7B6A\u7B6D\u7B6F\u7B72\u7B73\u7B77\u7B84\u7B89\u7B8E\u7B90\u7B91\u7B96\u7B9B\u7B9E\u7BA0\u7BA5\u7BAC\u7BAF\u7BB0\u7BB2\u7BB5\u7BB6\u7BBA\u7BBB\u7BBC\u7BBD\u7BC2\u7BC5\u7BC8\u7BCA\u7BD4\u7BD6\u7BD7\u7BD9\u7BDA\u7BDB\u7BE8\u7BEA\u7BF2\u7BF4\u7BF5\u7BF8\u7BF9\u7BFA\u7BFC\u7BFE\u7C01\u7C02\u7C03\u7C04\u7C06\u7C09\u7C0B\u7C0C\u7C0E\u7C0F\u7C19\u7C1B\u7C20\u7C25\u7C26\u7C28\u7C2C\u7C31\u7C33\u7C34\u7C36\u7C39\u7C3A\u7C46\u7C4A\u7C55\u7C51\u7C52\u7C53\u7C59",5],["8fd3a1","\u7C61\u7C63\u7C67\u7C69\u7C6D\u7C6E\u7C70\u7C72\u7C79\u7C7C\u7C7D\u7C86\u7C87\u7C8F\u7C94\u7C9E\u7CA0\u7CA6\u7CB0\u7CB6\u7CB7\u7CBA\u7CBB\u7CBC\u7CBF\u7CC4\u7CC7\u7CC8\u7CC9\u7CCD\u7CCF\u7CD3\u7CD4\u7CD5\u7CD7\u7CD9\u7CDA\u7CDD\u7CE6\u7CE9\u7CEB\u7CF5\u7D03\u7D07\u7D08\u7D09\u7D0F\u7D11\u7D12\u7D13\u7D16\u7D1D\u7D1E\u7D23\u7D26\u7D2A\u7D2D\u7D31\u7D3C\u7D3D\u7D3E\u7D40\u7D41\u7D47\u7D48\u7D4D\u7D51\u7D53\u7D57\u7D59\u7D5A\u7D5C\u7D5D\u7D65\u7D67\u7D6A\u7D70\u7D78\u7D7A\u7D7B\u7D7F\u7D81\u7D82\u7D83\u7D85\u7D86\u7D88\u7D8B\u7D8C\u7D8D\u7D91\u7D96\u7D97\u7D9D"],["8fd4a1","\u7D9E\u7DA6\u7DA7\u7DAA\u7DB3\u7DB6\u7DB7\u7DB9\u7DC2",4,"\u7DCC\u7DCD\u7DCE\u7DD7\u7DD9\u7E00\u7DE2\u7DE5\u7DE6\u7DEA\u7DEB\u7DED\u7DF1\u7DF5\u7DF6\u7DF9\u7DFA\u7E08\u7E10\u7E11\u7E15\u7E17\u7E1C\u7E1D\u7E20\u7E27\u7E28\u7E2C\u7E2D\u7E2F\u7E33\u7E36\u7E3F\u7E44\u7E45\u7E47\u7E4E\u7E50\u7E52\u7E58\u7E5F\u7E61\u7E62\u7E65\u7E6B\u7E6E\u7E6F\u7E73\u7E78\u7E7E\u7E81\u7E86\u7E87\u7E8A\u7E8D\u7E91\u7E95\u7E98\u7E9A\u7E9D\u7E9E\u7F3C\u7F3B\u7F3D\u7F3E\u7F3F\u7F43\u7F44\u7F47\u7F4F\u7F52\u7F53\u7F5B\u7F5C\u7F5D\u7F61\u7F63\u7F64\u7F65\u7F66\u7F6D"],["8fd5a1","\u7F71\u7F7D\u7F7E\u7F7F\u7F80\u7F8B\u7F8D\u7F8F\u7F90\u7F91\u7F96\u7F97\u7F9C\u7FA1\u7FA2\u7FA6\u7FAA\u7FAD\u7FB4\u7FBC\u7FBF\u7FC0\u7FC3\u7FC8\u7FCE\u7FCF\u7FDB\u7FDF\u7FE3\u7FE5\u7FE8\u7FEC\u7FEE\u7FEF\u7FF2\u7FFA\u7FFD\u7FFE\u7FFF\u8007\u8008\u800A\u800D\u800E\u800F\u8011\u8013\u8014\u8016\u801D\u801E\u801F\u8020\u8024\u8026\u802C\u802E\u8030\u8034\u8035\u8037\u8039\u803A\u803C\u803E\u8040\u8044\u8060\u8064\u8066\u806D\u8071\u8075\u8081\u8088\u808E\u809C\u809E\u80A6\u80A7\u80AB\u80B8\u80B9\u80C8\u80CD\u80CF\u80D2\u80D4\u80D5\u80D7\u80D8\u80E0\u80ED\u80EE"],["8fd6a1","\u80F0\u80F2\u80F3\u80F6\u80F9\u80FA\u80FE\u8103\u810B\u8116\u8117\u8118\u811C\u811E\u8120\u8124\u8127\u812C\u8130\u8135\u813A\u813C\u8145\u8147\u814A\u814C\u8152\u8157\u8160\u8161\u8167\u8168\u8169\u816D\u816F\u8177\u8181\u8190\u8184\u8185\u8186\u818B\u818E\u8196\u8198\u819B\u819E\u81A2\u81AE\u81B2\u81B4\u81BB\u81CB\u81C3\u81C5\u81CA\u81CE\u81CF\u81D5\u81D7\u81DB\u81DD\u81DE\u81E1\u81E4\u81EB\u81EC\u81F0\u81F1\u81F2\u81F5\u81F6\u81F8\u81F9\u81FD\u81FF\u8200\u8203\u820F\u8213\u8214\u8219\u821A\u821D\u8221\u8222\u8228\u8232\u8234\u823A\u8243\u8244\u8245\u8246"],["8fd7a1","\u824B\u824E\u824F\u8251\u8256\u825C\u8260\u8263\u8267\u826D\u8274\u827B\u827D\u827F\u8280\u8281\u8283\u8284\u8287\u8289\u828A\u828E\u8291\u8294\u8296\u8298\u829A\u829B\u82A0\u82A1\u82A3\u82A4\u82A7\u82A8\u82A9\u82AA\u82AE\u82B0\u82B2\u82B4\u82B7\u82BA\u82BC\u82BE\u82BF\u82C6\u82D0\u82D5\u82DA\u82E0\u82E2\u82E4\u82E8\u82EA\u82ED\u82EF\u82F6\u82F7\u82FD\u82FE\u8300\u8301\u8307\u8308\u830A\u830B\u8354\u831B\u831D\u831E\u831F\u8321\u8322\u832C\u832D\u832E\u8330\u8333\u8337\u833A\u833C\u833D\u8342\u8343\u8344\u8347\u834D\u834E\u8351\u8355\u8356\u8357\u8370\u8378"],["8fd8a1","\u837D\u837F\u8380\u8382\u8384\u8386\u838D\u8392\u8394\u8395\u8398\u8399\u839B\u839C\u839D\u83A6\u83A7\u83A9\u83AC\u83BE\u83BF\u83C0\u83C7\u83C9\u83CF\u83D0\u83D1\u83D4\u83DD\u8353\u83E8\u83EA\u83F6\u83F8\u83F9\u83FC\u8401\u8406\u840A\u840F\u8411\u8415\u8419\u83AD\u842F\u8439\u8445\u8447\u8448\u844A\u844D\u844F\u8451\u8452\u8456\u8458\u8459\u845A\u845C\u8460\u8464\u8465\u8467\u846A\u8470\u8473\u8474\u8476\u8478\u847C\u847D\u8481\u8485\u8492\u8493\u8495\u849E\u84A6\u84A8\u84A9\u84AA\u84AF\u84B1\u84B4\u84BA\u84BD\u84BE\u84C0\u84C2\u84C7\u84C8\u84CC\u84CF\u84D3"],["8fd9a1","\u84DC\u84E7\u84EA\u84EF\u84F0\u84F1\u84F2\u84F7\u8532\u84FA\u84FB\u84FD\u8502\u8503\u8507\u850C\u850E\u8510\u851C\u851E\u8522\u8523\u8524\u8525\u8527\u852A\u852B\u852F\u8533\u8534\u8536\u853F\u8546\u854F",4,"\u8556\u8559\u855C",6,"\u8564\u856B\u856F\u8579\u857A\u857B\u857D\u857F\u8581\u8585\u8586\u8589\u858B\u858C\u858F\u8593\u8598\u859D\u859F\u85A0\u85A2\u85A5\u85A7\u85B4\u85B6\u85B7\u85B8\u85BC\u85BD\u85BE\u85BF\u85C2\u85C7\u85CA\u85CB\u85CE\u85AD\u85D8\u85DA\u85DF\u85E0\u85E6\u85E8\u85ED\u85F3\u85F6\u85FC"],["8fdaa1","\u85FF\u8600\u8604\u8605\u860D\u860E\u8610\u8611\u8612\u8618\u8619\u861B\u861E\u8621\u8627\u8629\u8636\u8638\u863A\u863C\u863D\u8640\u8642\u8646\u8652\u8653\u8656\u8657\u8658\u8659\u865D\u8660",4,"\u8669\u866C\u866F\u8675\u8676\u8677\u867A\u868D\u8691\u8696\u8698\u869A\u869C\u86A1\u86A6\u86A7\u86A8\u86AD\u86B1\u86B3\u86B4\u86B5\u86B7\u86B8\u86B9\u86BF\u86C0\u86C1\u86C3\u86C5\u86D1\u86D2\u86D5\u86D7\u86DA\u86DC\u86E0\u86E3\u86E5\u86E7\u8688\u86FA\u86FC\u86FD\u8704\u8705\u8707\u870B\u870E\u870F\u8710\u8713\u8714\u8719\u871E\u871F\u8721\u8723"],["8fdba1","\u8728\u872E\u872F\u8731\u8732\u8739\u873A\u873C\u873D\u873E\u8740\u8743\u8745\u874D\u8758\u875D\u8761\u8764\u8765\u876F\u8771\u8772\u877B\u8783",6,"\u878B\u878C\u8790\u8793\u8795\u8797\u8798\u8799\u879E\u87A0\u87A3\u87A7\u87AC\u87AD\u87AE\u87B1\u87B5\u87BE\u87BF\u87C1\u87C8\u87C9\u87CA\u87CE\u87D5\u87D6\u87D9\u87DA\u87DC\u87DF\u87E2\u87E3\u87E4\u87EA\u87EB\u87ED\u87F1\u87F3\u87F8\u87FA\u87FF\u8801\u8803\u8806\u8809\u880A\u880B\u8810\u8819\u8812\u8813\u8814\u8818\u881A\u881B\u881C\u881E\u881F\u8828\u882D\u882E\u8830\u8832\u8835"],["8fdca1","\u883A\u883C\u8841\u8843\u8845\u8848\u8849\u884A\u884B\u884E\u8851\u8855\u8856\u8858\u885A\u885C\u885F\u8860\u8864\u8869\u8871\u8879\u887B\u8880\u8898\u889A\u889B\u889C\u889F\u88A0\u88A8\u88AA\u88BA\u88BD\u88BE\u88C0\u88CA",4,"\u88D1\u88D2\u88D3\u88DB\u88DE\u88E7\u88EF\u88F0\u88F1\u88F5\u88F7\u8901\u8906\u890D\u890E\u890F\u8915\u8916\u8918\u8919\u891A\u891C\u8920\u8926\u8927\u8928\u8930\u8931\u8932\u8935\u8939\u893A\u893E\u8940\u8942\u8945\u8946\u8949\u894F\u8952\u8957\u895A\u895B\u895C\u8961\u8962\u8963\u896B\u896E\u8970\u8973\u8975\u897A"],["8fdda1","\u897B\u897C\u897D\u8989\u898D\u8990\u8994\u8995\u899B\u899C\u899F\u89A0\u89A5\u89B0\u89B4\u89B5\u89B6\u89B7\u89BC\u89D4",4,"\u89E5\u89E9\u89EB\u89ED\u89F1\u89F3\u89F6\u89F9\u89FD\u89FF\u8A04\u8A05\u8A07\u8A0F\u8A11\u8A12\u8A14\u8A15\u8A1E\u8A20\u8A22\u8A24\u8A26\u8A2B\u8A2C\u8A2F\u8A35\u8A37\u8A3D\u8A3E\u8A40\u8A43\u8A45\u8A47\u8A49\u8A4D\u8A4E\u8A53\u8A56\u8A57\u8A58\u8A5C\u8A5D\u8A61\u8A65\u8A67\u8A75\u8A76\u8A77\u8A79\u8A7A\u8A7B\u8A7E\u8A7F\u8A80\u8A83\u8A86\u8A8B\u8A8F\u8A90\u8A92\u8A96\u8A97\u8A99\u8A9F\u8AA7\u8AA9\u8AAE\u8AAF\u8AB3"],["8fdea1","\u8AB6\u8AB7\u8ABB\u8ABE\u8AC3\u8AC6\u8AC8\u8AC9\u8ACA\u8AD1\u8AD3\u8AD4\u8AD5\u8AD7\u8ADD\u8ADF\u8AEC\u8AF0\u8AF4\u8AF5\u8AF6\u8AFC\u8AFF\u8B05\u8B06\u8B0B\u8B11\u8B1C\u8B1E\u8B1F\u8B0A\u8B2D\u8B30\u8B37\u8B3C\u8B42",4,"\u8B48\u8B52\u8B53\u8B54\u8B59\u8B4D\u8B5E\u8B63\u8B6D\u8B76\u8B78\u8B79\u8B7C\u8B7E\u8B81\u8B84\u8B85\u8B8B\u8B8D\u8B8F\u8B94\u8B95\u8B9C\u8B9E\u8B9F\u8C38\u8C39\u8C3D\u8C3E\u8C45\u8C47\u8C49\u8C4B\u8C4F\u8C51\u8C53\u8C54\u8C57\u8C58\u8C5B\u8C5D\u8C59\u8C63\u8C64\u8C66\u8C68\u8C69\u8C6D\u8C73\u8C75\u8C76\u8C7B\u8C7E\u8C86"],["8fdfa1","\u8C87\u8C8B\u8C90\u8C92\u8C93\u8C99\u8C9B\u8C9C\u8CA4\u8CB9\u8CBA\u8CC5\u8CC6\u8CC9\u8CCB\u8CCF\u8CD6\u8CD5\u8CD9\u8CDD\u8CE1\u8CE8\u8CEC\u8CEF\u8CF0\u8CF2\u8CF5\u8CF7\u8CF8\u8CFE\u8CFF\u8D01\u8D03\u8D09\u8D12\u8D17\u8D1B\u8D65\u8D69\u8D6C\u8D6E\u8D7F\u8D82\u8D84\u8D88\u8D8D\u8D90\u8D91\u8D95\u8D9E\u8D9F\u8DA0\u8DA6\u8DAB\u8DAC\u8DAF\u8DB2\u8DB5\u8DB7\u8DB9\u8DBB\u8DC0\u8DC5\u8DC6\u8DC7\u8DC8\u8DCA\u8DCE\u8DD1\u8DD4\u8DD5\u8DD7\u8DD9\u8DE4\u8DE5\u8DE7\u8DEC\u8DF0\u8DBC\u8DF1\u8DF2\u8DF4\u8DFD\u8E01\u8E04\u8E05\u8E06\u8E0B\u8E11\u8E14\u8E16\u8E20\u8E21\u8E22"],["8fe0a1","\u8E23\u8E26\u8E27\u8E31\u8E33\u8E36\u8E37\u8E38\u8E39\u8E3D\u8E40\u8E41\u8E4B\u8E4D\u8E4E\u8E4F\u8E54\u8E5B\u8E5C\u8E5D\u8E5E\u8E61\u8E62\u8E69\u8E6C\u8E6D\u8E6F\u8E70\u8E71\u8E79\u8E7A\u8E7B\u8E82\u8E83\u8E89\u8E90\u8E92\u8E95\u8E9A\u8E9B\u8E9D\u8E9E\u8EA2\u8EA7\u8EA9\u8EAD\u8EAE\u8EB3\u8EB5\u8EBA\u8EBB\u8EC0\u8EC1\u8EC3\u8EC4\u8EC7\u8ECF\u8ED1\u8ED4\u8EDC\u8EE8\u8EEE\u8EF0\u8EF1\u8EF7\u8EF9\u8EFA\u8EED\u8F00\u8F02\u8F07\u8F08\u8F0F\u8F10\u8F16\u8F17\u8F18\u8F1E\u8F20\u8F21\u8F23\u8F25\u8F27\u8F28\u8F2C\u8F2D\u8F2E\u8F34\u8F35\u8F36\u8F37\u8F3A\u8F40\u8F41"],["8fe1a1","\u8F43\u8F47\u8F4F\u8F51",4,"\u8F58\u8F5D\u8F5E\u8F65\u8F9D\u8FA0\u8FA1\u8FA4\u8FA5\u8FA6\u8FB5\u8FB6\u8FB8\u8FBE\u8FC0\u8FC1\u8FC6\u8FCA\u8FCB\u8FCD\u8FD0\u8FD2\u8FD3\u8FD5\u8FE0\u8FE3\u8FE4\u8FE8\u8FEE\u8FF1\u8FF5\u8FF6\u8FFB\u8FFE\u9002\u9004\u9008\u900C\u9018\u901B\u9028\u9029\u902F\u902A\u902C\u902D\u9033\u9034\u9037\u903F\u9043\u9044\u904C\u905B\u905D\u9062\u9066\u9067\u906C\u9070\u9074\u9079\u9085\u9088\u908B\u908C\u908E\u9090\u9095\u9097\u9098\u9099\u909B\u90A0\u90A1\u90A2\u90A5\u90B0\u90B2\u90B3\u90B4\u90B6\u90BD\u90CC\u90BE\u90C3"],["8fe2a1","\u90C4\u90C5\u90C7\u90C8\u90D5\u90D7\u90D8\u90D9\u90DC\u90DD\u90DF\u90E5\u90D2\u90F6\u90EB\u90EF\u90F0\u90F4\u90FE\u90FF\u9100\u9104\u9105\u9106\u9108\u910D\u9110\u9114\u9116\u9117\u9118\u911A\u911C\u911E\u9120\u9125\u9122\u9123\u9127\u9129\u912E\u912F\u9131\u9134\u9136\u9137\u9139\u913A\u913C\u913D\u9143\u9147\u9148\u914F\u9153\u9157\u9159\u915A\u915B\u9161\u9164\u9167\u916D\u9174\u9179\u917A\u917B\u9181\u9183\u9185\u9186\u918A\u918E\u9191\u9193\u9194\u9195\u9198\u919E\u91A1\u91A6\u91A8\u91AC\u91AD\u91AE\u91B0\u91B1\u91B2\u91B3\u91B6\u91BB\u91BC\u91BD\u91BF"],["8fe3a1","\u91C2\u91C3\u91C5\u91D3\u91D4\u91D7\u91D9\u91DA\u91DE\u91E4\u91E5\u91E9\u91EA\u91EC",5,"\u91F7\u91F9\u91FB\u91FD\u9200\u9201\u9204\u9205\u9206\u9207\u9209\u920A\u920C\u9210\u9212\u9213\u9216\u9218\u921C\u921D\u9223\u9224\u9225\u9226\u9228\u922E\u922F\u9230\u9233\u9235\u9236\u9238\u9239\u923A\u923C\u923E\u9240\u9242\u9243\u9246\u9247\u924A\u924D\u924E\u924F\u9251\u9258\u9259\u925C\u925D\u9260\u9261\u9265\u9267\u9268\u9269\u926E\u926F\u9270\u9275",4,"\u927B\u927C\u927D\u927F\u9288\u9289\u928A\u928D\u928E\u9292\u9297"],["8fe4a1","\u9299\u929F\u92A0\u92A4\u92A5\u92A7\u92A8\u92AB\u92AF\u92B2\u92B6\u92B8\u92BA\u92BB\u92BC\u92BD\u92BF",4,"\u92C5\u92C6\u92C7\u92C8\u92CB\u92CC\u92CD\u92CE\u92D0\u92D3\u92D5\u92D7\u92D8\u92D9\u92DC\u92DD\u92DF\u92E0\u92E1\u92E3\u92E5\u92E7\u92E8\u92EC\u92EE\u92F0\u92F9\u92FB\u92FF\u9300\u9302\u9308\u930D\u9311\u9314\u9315\u931C\u931D\u931E\u931F\u9321\u9324\u9325\u9327\u9329\u932A\u9333\u9334\u9336\u9337\u9347\u9348\u9349\u9350\u9351\u9352\u9355\u9357\u9358\u935A\u935E\u9364\u9365\u9367\u9369\u936A\u936D\u936F\u9370\u9371\u9373\u9374\u9376"],["8fe5a1","\u937A\u937D\u937F\u9380\u9381\u9382\u9388\u938A\u938B\u938D\u938F\u9392\u9395\u9398\u939B\u939E\u93A1\u93A3\u93A4\u93A6\u93A8\u93AB\u93B4\u93B5\u93B6\u93BA\u93A9\u93C1\u93C4\u93C5\u93C6\u93C7\u93C9",4,"\u93D3\u93D9\u93DC\u93DE\u93DF\u93E2\u93E6\u93E7\u93F9\u93F7\u93F8\u93FA\u93FB\u93FD\u9401\u9402\u9404\u9408\u9409\u940D\u940E\u940F\u9415\u9416\u9417\u941F\u942E\u942F\u9431\u9432\u9433\u9434\u943B\u943F\u943D\u9443\u9445\u9448\u944A\u944C\u9455\u9459\u945C\u945F\u9461\u9463\u9468\u946B\u946D\u946E\u946F\u9471\u9472\u9484\u9483\u9578\u9579"],["8fe6a1","\u957E\u9584\u9588\u958C\u958D\u958E\u959D\u959E\u959F\u95A1\u95A6\u95A9\u95AB\u95AC\u95B4\u95B6\u95BA\u95BD\u95BF\u95C6\u95C8\u95C9\u95CB\u95D0\u95D1\u95D2\u95D3\u95D9\u95DA\u95DD\u95DE\u95DF\u95E0\u95E4\u95E6\u961D\u961E\u9622\u9624\u9625\u9626\u962C\u9631\u9633\u9637\u9638\u9639\u963A\u963C\u963D\u9641\u9652\u9654\u9656\u9657\u9658\u9661\u966E\u9674\u967B\u967C\u967E\u967F\u9681\u9682\u9683\u9684\u9689\u9691\u9696\u969A\u969D\u969F\u96A4\u96A5\u96A6\u96A9\u96AE\u96AF\u96B3\u96BA\u96CA\u96D2\u5DB2\u96D8\u96DA\u96DD\u96DE\u96DF\u96E9\u96EF\u96F1\u96FA\u9702"],["8fe7a1","\u9703\u9705\u9709\u971A\u971B\u971D\u9721\u9722\u9723\u9728\u9731\u9733\u9741\u9743\u974A\u974E\u974F\u9755\u9757\u9758\u975A\u975B\u9763\u9767\u976A\u976E\u9773\u9776\u9777\u9778\u977B\u977D\u977F\u9780\u9789\u9795\u9796\u9797\u9799\u979A\u979E\u979F\u97A2\u97AC\u97AE\u97B1\u97B2\u97B5\u97B6\u97B8\u97B9\u97BA\u97BC\u97BE\u97BF\u97C1\u97C4\u97C5\u97C7\u97C9\u97CA\u97CC\u97CD\u97CE\u97D0\u97D1\u97D4\u97D7\u97D8\u97D9\u97DD\u97DE\u97E0\u97DB\u97E1\u97E4\u97EF\u97F1\u97F4\u97F7\u97F8\u97FA\u9807\u980A\u9819\u980D\u980E\u9814\u9816\u981C\u981E\u9820\u9823\u9826"],["8fe8a1","\u982B\u982E\u982F\u9830\u9832\u9833\u9835\u9825\u983E\u9844\u9847\u984A\u9851\u9852\u9853\u9856\u9857\u9859\u985A\u9862\u9863\u9865\u9866\u986A\u986C\u98AB\u98AD\u98AE\u98B0\u98B4\u98B7\u98B8\u98BA\u98BB\u98BF\u98C2\u98C5\u98C8\u98CC\u98E1\u98E3\u98E5\u98E6\u98E7\u98EA\u98F3\u98F6\u9902\u9907\u9908\u9911\u9915\u9916\u9917\u991A\u991B\u991C\u991F\u9922\u9926\u9927\u992B\u9931",4,"\u9939\u993A\u993B\u993C\u9940\u9941\u9946\u9947\u9948\u994D\u994E\u9954\u9958\u9959\u995B\u995C\u995E\u995F\u9960\u999B\u999D\u999F\u99A6\u99B0\u99B1\u99B2\u99B5"],["8fe9a1","\u99B9\u99BA\u99BD\u99BF\u99C3\u99C9\u99D3\u99D4\u99D9\u99DA\u99DC\u99DE\u99E7\u99EA\u99EB\u99EC\u99F0\u99F4\u99F5\u99F9\u99FD\u99FE\u9A02\u9A03\u9A04\u9A0B\u9A0C\u9A10\u9A11\u9A16\u9A1E\u9A20\u9A22\u9A23\u9A24\u9A27\u9A2D\u9A2E\u9A33\u9A35\u9A36\u9A38\u9A47\u9A41\u9A44\u9A4A\u9A4B\u9A4C\u9A4E\u9A51\u9A54\u9A56\u9A5D\u9AAA\u9AAC\u9AAE\u9AAF\u9AB2\u9AB4\u9AB5\u9AB6\u9AB9\u9ABB\u9ABE\u9ABF\u9AC1\u9AC3\u9AC6\u9AC8\u9ACE\u9AD0\u9AD2\u9AD5\u9AD6\u9AD7\u9ADB\u9ADC\u9AE0\u9AE4\u9AE5\u9AE7\u9AE9\u9AEC\u9AF2\u9AF3\u9AF5\u9AF9\u9AFA\u9AFD\u9AFF",4],["8feaa1","\u9B04\u9B05\u9B08\u9B09\u9B0B\u9B0C\u9B0D\u9B0E\u9B10\u9B12\u9B16\u9B19\u9B1B\u9B1C\u9B20\u9B26\u9B2B\u9B2D\u9B33\u9B34\u9B35\u9B37\u9B39\u9B3A\u9B3D\u9B48\u9B4B\u9B4C\u9B55\u9B56\u9B57\u9B5B\u9B5E\u9B61\u9B63\u9B65\u9B66\u9B68\u9B6A",4,"\u9B73\u9B75\u9B77\u9B78\u9B79\u9B7F\u9B80\u9B84\u9B85\u9B86\u9B87\u9B89\u9B8A\u9B8B\u9B8D\u9B8F\u9B90\u9B94\u9B9A\u9B9D\u9B9E\u9BA6\u9BA7\u9BA9\u9BAC\u9BB0\u9BB1\u9BB2\u9BB7\u9BB8\u9BBB\u9BBC\u9BBE\u9BBF\u9BC1\u9BC7\u9BC8\u9BCE\u9BD0\u9BD7\u9BD8\u9BDD\u9BDF\u9BE5\u9BE7\u9BEA\u9BEB\u9BEF\u9BF3\u9BF7\u9BF8"],["8feba1","\u9BF9\u9BFA\u9BFD\u9BFF\u9C00\u9C02\u9C0B\u9C0F\u9C11\u9C16\u9C18\u9C19\u9C1A\u9C1C\u9C1E\u9C22\u9C23\u9C26",4,"\u9C31\u9C35\u9C36\u9C37\u9C3D\u9C41\u9C43\u9C44\u9C45\u9C49\u9C4A\u9C4E\u9C4F\u9C50\u9C53\u9C54\u9C56\u9C58\u9C5B\u9C5D\u9C5E\u9C5F\u9C63\u9C69\u9C6A\u9C5C\u9C6B\u9C68\u9C6E\u9C70\u9C72\u9C75\u9C77\u9C7B\u9CE6\u9CF2\u9CF7\u9CF9\u9D0B\u9D02\u9D11\u9D17\u9D18\u9D1C\u9D1D\u9D1E\u9D2F\u9D30\u9D32\u9D33\u9D34\u9D3A\u9D3C\u9D45\u9D3D\u9D42\u9D43\u9D47\u9D4A\u9D53\u9D54\u9D5F\u9D63\u9D62\u9D65\u9D69\u9D6A\u9D6B\u9D70\u9D76\u9D77\u9D7B"],["8feca1","\u9D7C\u9D7E\u9D83\u9D84\u9D86\u9D8A\u9D8D\u9D8E\u9D92\u9D93\u9D95\u9D96\u9D97\u9D98\u9DA1\u9DAA\u9DAC\u9DAE\u9DB1\u9DB5\u9DB9\u9DBC\u9DBF\u9DC3\u9DC7\u9DC9\u9DCA\u9DD4\u9DD5\u9DD6\u9DD7\u9DDA\u9DDE\u9DDF\u9DE0\u9DE5\u9DE7\u9DE9\u9DEB\u9DEE\u9DF0\u9DF3\u9DF4\u9DFE\u9E0A\u9E02\u9E07\u9E0E\u9E10\u9E11\u9E12\u9E15\u9E16\u9E19\u9E1C\u9E1D\u9E7A\u9E7B\u9E7C\u9E80\u9E82\u9E83\u9E84\u9E85\u9E87\u9E8E\u9E8F\u9E96\u9E98\u9E9B\u9E9E\u9EA4\u9EA8\u9EAC\u9EAE\u9EAF\u9EB0\u9EB3\u9EB4\u9EB5\u9EC6\u9EC8\u9ECB\u9ED5\u9EDF\u9EE4\u9EE7\u9EEC\u9EED\u9EEE\u9EF0\u9EF1\u9EF2\u9EF5"],["8feda1","\u9EF8\u9EFF\u9F02\u9F03\u9F09\u9F0F\u9F10\u9F11\u9F12\u9F14\u9F16\u9F17\u9F19\u9F1A\u9F1B\u9F1F\u9F22\u9F26\u9F2A\u9F2B\u9F2F\u9F31\u9F32\u9F34\u9F37\u9F39\u9F3A\u9F3C\u9F3D\u9F3F\u9F41\u9F43",4,"\u9F53\u9F55\u9F56\u9F57\u9F58\u9F5A\u9F5D\u9F5E\u9F68\u9F69\u9F6D",4,"\u9F73\u9F75\u9F7A\u9F7D\u9F8F\u9F90\u9F91\u9F92\u9F94\u9F96\u9F97\u9F9E\u9FA1\u9FA2\u9FA3\u9FA5"]],require$$2=[["0","\0",127,"\u20AC"],["8140","\u4E02\u4E04\u4E05\u4E06\u4E0F\u4E12\u4E17\u4E1F\u4E20\u4E21\u4E23\u4E26\u4E29\u4E2E\u4E2F\u4E31\u4E33\u4E35\u4E37\u4E3C\u4E40\u4E41\u4E42\u4E44\u4E46\u4E4A\u4E51\u4E55\u4E57\u4E5A\u4E5B\u4E62\u4E63\u4E64\u4E65\u4E67\u4E68\u4E6A",5,"\u4E72\u4E74",9,"\u4E7F",6,"\u4E87\u4E8A"],["8180","\u4E90\u4E96\u4E97\u4E99\u4E9C\u4E9D\u4E9E\u4EA3\u4EAA\u4EAF\u4EB0\u4EB1\u4EB4\u4EB6\u4EB7\u4EB8\u4EB9\u4EBC\u4EBD\u4EBE\u4EC8\u4ECC\u4ECF\u4ED0\u4ED2\u4EDA\u4EDB\u4EDC\u4EE0\u4EE2\u4EE6\u4EE7\u4EE9\u4EED\u4EEE\u4EEF\u4EF1\u4EF4\u4EF8\u4EF9\u4EFA\u4EFC\u4EFE\u4F00\u4F02",6,"\u4F0B\u4F0C\u4F12",4,"\u4F1C\u4F1D\u4F21\u4F23\u4F28\u4F29\u4F2C\u4F2D\u4F2E\u4F31\u4F33\u4F35\u4F37\u4F39\u4F3B\u4F3E",4,"\u4F44\u4F45\u4F47",5,"\u4F52\u4F54\u4F56\u4F61\u4F62\u4F66\u4F68\u4F6A\u4F6B\u4F6D\u4F6E\u4F71\u4F72\u4F75\u4F77\u4F78\u4F79\u4F7A\u4F7D\u4F80\u4F81\u4F82\u4F85\u4F86\u4F87\u4F8A\u4F8C\u4F8E\u4F90\u4F92\u4F93\u4F95\u4F96\u4F98\u4F99\u4F9A\u4F9C\u4F9E\u4F9F\u4FA1\u4FA2"],["8240","\u4FA4\u4FAB\u4FAD\u4FB0",4,"\u4FB6",8,"\u4FC0\u4FC1\u4FC2\u4FC6\u4FC7\u4FC8\u4FC9\u4FCB\u4FCC\u4FCD\u4FD2",4,"\u4FD9\u4FDB\u4FE0\u4FE2\u4FE4\u4FE5\u4FE7\u4FEB\u4FEC\u4FF0\u4FF2\u4FF4\u4FF5\u4FF6\u4FF7\u4FF9\u4FFB\u4FFC\u4FFD\u4FFF",11],["8280","\u500B\u500E\u5010\u5011\u5013\u5015\u5016\u5017\u501B\u501D\u501E\u5020\u5022\u5023\u5024\u5027\u502B\u502F",10,"\u503B\u503D\u503F\u5040\u5041\u5042\u5044\u5045\u5046\u5049\u504A\u504B\u504D\u5050",4,"\u5056\u5057\u5058\u5059\u505B\u505D",7,"\u5066",5,"\u506D",8,"\u5078\u5079\u507A\u507C\u507D\u5081\u5082\u5083\u5084\u5086\u5087\u5089\u508A\u508B\u508C\u508E",20,"\u50A4\u50A6\u50AA\u50AB\u50AD",4,"\u50B3",6,"\u50BC"],["8340","\u50BD",17,"\u50D0",5,"\u50D7\u50D8\u50D9\u50DB",10,"\u50E8\u50E9\u50EA\u50EB\u50EF\u50F0\u50F1\u50F2\u50F4\u50F6",4,"\u50FC",9,"\u5108"],["8380","\u5109\u510A\u510C",5,"\u5113",13,"\u5122",28,"\u5142\u5147\u514A\u514C\u514E\u514F\u5150\u5152\u5153\u5157\u5158\u5159\u515B\u515D",4,"\u5163\u5164\u5166\u5167\u5169\u516A\u516F\u5172\u517A\u517E\u517F\u5183\u5184\u5186\u5187\u518A\u518B\u518E\u518F\u5190\u5191\u5193\u5194\u5198\u519A\u519D\u519E\u519F\u51A1\u51A3\u51A6",4,"\u51AD\u51AE\u51B4\u51B8\u51B9\u51BA\u51BE\u51BF\u51C1\u51C2\u51C3\u51C5\u51C8\u51CA\u51CD\u51CE\u51D0\u51D2",5],["8440","\u51D8\u51D9\u51DA\u51DC\u51DE\u51DF\u51E2\u51E3\u51E5",5,"\u51EC\u51EE\u51F1\u51F2\u51F4\u51F7\u51FE\u5204\u5205\u5209\u520B\u520C\u520F\u5210\u5213\u5214\u5215\u521C\u521E\u521F\u5221\u5222\u5223\u5225\u5226\u5227\u522A\u522C\u522F\u5231\u5232\u5234\u5235\u523C\u523E\u5244",5,"\u524B\u524E\u524F\u5252\u5253\u5255\u5257\u5258"],["8480","\u5259\u525A\u525B\u525D\u525F\u5260\u5262\u5263\u5264\u5266\u5268\u526B\u526C\u526D\u526E\u5270\u5271\u5273",9,"\u527E\u5280\u5283",4,"\u5289",6,"\u5291\u5292\u5294",6,"\u529C\u52A4\u52A5\u52A6\u52A7\u52AE\u52AF\u52B0\u52B4",9,"\u52C0\u52C1\u52C2\u52C4\u52C5\u52C6\u52C8\u52CA\u52CC\u52CD\u52CE\u52CF\u52D1\u52D3\u52D4\u52D5\u52D7\u52D9",5,"\u52E0\u52E1\u52E2\u52E3\u52E5",10,"\u52F1",7,"\u52FB\u52FC\u52FD\u5301\u5302\u5303\u5304\u5307\u5309\u530A\u530B\u530C\u530E"],["8540","\u5311\u5312\u5313\u5314\u5318\u531B\u531C\u531E\u531F\u5322\u5324\u5325\u5327\u5328\u5329\u532B\u532C\u532D\u532F",9,"\u533C\u533D\u5340\u5342\u5344\u5346\u534B\u534C\u534D\u5350\u5354\u5358\u5359\u535B\u535D\u5365\u5368\u536A\u536C\u536D\u5372\u5376\u5379\u537B\u537C\u537D\u537E\u5380\u5381\u5383\u5387\u5388\u538A\u538E\u538F"],["8580","\u5390",4,"\u5396\u5397\u5399\u539B\u539C\u539E\u53A0\u53A1\u53A4\u53A7\u53AA\u53AB\u53AC\u53AD\u53AF",6,"\u53B7\u53B8\u53B9\u53BA\u53BC\u53BD\u53BE\u53C0\u53C3",4,"\u53CE\u53CF\u53D0\u53D2\u53D3\u53D5\u53DA\u53DC\u53DD\u53DE\u53E1\u53E2\u53E7\u53F4\u53FA\u53FE\u53FF\u5400\u5402\u5405\u5407\u540B\u5414\u5418\u5419\u541A\u541C\u5422\u5424\u5425\u542A\u5430\u5433\u5436\u5437\u543A\u543D\u543F\u5441\u5442\u5444\u5445\u5447\u5449\u544C\u544D\u544E\u544F\u5451\u545A\u545D",4,"\u5463\u5465\u5467\u5469",7,"\u5474\u5479\u547A\u547E\u547F\u5481\u5483\u5485\u5487\u5488\u5489\u548A\u548D\u5491\u5493\u5497\u5498\u549C\u549E\u549F\u54A0\u54A1"],["8640","\u54A2\u54A5\u54AE\u54B0\u54B2\u54B5\u54B6\u54B7\u54B9\u54BA\u54BC\u54BE\u54C3\u54C5\u54CA\u54CB\u54D6\u54D8\u54DB\u54E0",4,"\u54EB\u54EC\u54EF\u54F0\u54F1\u54F4",5,"\u54FB\u54FE\u5500\u5502\u5503\u5504\u5505\u5508\u550A",4,"\u5512\u5513\u5515",5,"\u551C\u551D\u551E\u551F\u5521\u5525\u5526"],["8680","\u5528\u5529\u552B\u552D\u5532\u5534\u5535\u5536\u5538\u5539\u553A\u553B\u553D\u5540\u5542\u5545\u5547\u5548\u554B",4,"\u5551\u5552\u5553\u5554\u5557",4,"\u555D\u555E\u555F\u5560\u5562\u5563\u5568\u5569\u556B\u556F",5,"\u5579\u557A\u557D\u557F\u5585\u5586\u558C\u558D\u558E\u5590\u5592\u5593\u5595\u5596\u5597\u559A\u559B\u559E\u55A0",6,"\u55A8",8,"\u55B2\u55B4\u55B6\u55B8\u55BA\u55BC\u55BF",4,"\u55C6\u55C7\u55C8\u55CA\u55CB\u55CE\u55CF\u55D0\u55D5\u55D7",4,"\u55DE\u55E0\u55E2\u55E7\u55E9\u55ED\u55EE\u55F0\u55F1\u55F4\u55F6\u55F8",4,"\u55FF\u5602\u5603\u5604\u5605"],["8740","\u5606\u5607\u560A\u560B\u560D\u5610",7,"\u5619\u561A\u561C\u561D\u5620\u5621\u5622\u5625\u5626\u5628\u5629\u562A\u562B\u562E\u562F\u5630\u5633\u5635\u5637\u5638\u563A\u563C\u563D\u563E\u5640",11,"\u564F",4,"\u5655\u5656\u565A\u565B\u565D",4],["8780","\u5663\u5665\u5666\u5667\u566D\u566E\u566F\u5670\u5672\u5673\u5674\u5675\u5677\u5678\u5679\u567A\u567D",7,"\u5687",6,"\u5690\u5691\u5692\u5694",14,"\u56A4",10,"\u56B0",6,"\u56B8\u56B9\u56BA\u56BB\u56BD",12,"\u56CB",8,"\u56D5\u56D6\u56D8\u56D9\u56DC\u56E3\u56E5",5,"\u56EC\u56EE\u56EF\u56F2\u56F3\u56F6\u56F7\u56F8\u56FB\u56FC\u5700\u5701\u5702\u5705\u5707\u570B",6],["8840","\u5712",9,"\u571D\u571E\u5720\u5721\u5722\u5724\u5725\u5726\u5727\u572B\u5731\u5732\u5734",4,"\u573C\u573D\u573F\u5741\u5743\u5744\u5745\u5746\u5748\u5749\u574B\u5752",4,"\u5758\u5759\u5762\u5763\u5765\u5767\u576C\u576E\u5770\u5771\u5772\u5774\u5775\u5778\u5779\u577A\u577D\u577E\u577F\u5780"],["8880","\u5781\u5787\u5788\u5789\u578A\u578D",4,"\u5794",6,"\u579C\u579D\u579E\u579F\u57A5\u57A8\u57AA\u57AC\u57AF\u57B0\u57B1\u57B3\u57B5\u57B6\u57B7\u57B9",8,"\u57C4",6,"\u57CC\u57CD\u57D0\u57D1\u57D3\u57D6\u57D7\u57DB\u57DC\u57DE\u57E1\u57E2\u57E3\u57E5",7,"\u57EE\u57F0\u57F1\u57F2\u57F3\u57F5\u57F6\u57F7\u57FB\u57FC\u57FE\u57FF\u5801\u5803\u5804\u5805\u5808\u5809\u580A\u580C\u580E\u580F\u5810\u5812\u5813\u5814\u5816\u5817\u5818\u581A\u581B\u581C\u581D\u581F\u5822\u5823\u5825",4,"\u582B",4,"\u5831\u5832\u5833\u5834\u5836",7],["8940","\u583E",5,"\u5845",6,"\u584E\u584F\u5850\u5852\u5853\u5855\u5856\u5857\u5859",4,"\u585F",5,"\u5866",4,"\u586D",16,"\u587F\u5882\u5884\u5886\u5887\u5888\u588A\u588B\u588C"],["8980","\u588D",4,"\u5894",4,"\u589B\u589C\u589D\u58A0",7,"\u58AA",17,"\u58BD\u58BE\u58BF\u58C0\u58C2\u58C3\u58C4\u58C6",10,"\u58D2\u58D3\u58D4\u58D6",13,"\u58E5",5,"\u58ED\u58EF\u58F1\u58F2\u58F4\u58F5\u58F7\u58F8\u58FA",7,"\u5903\u5905\u5906\u5908",4,"\u590E\u5910\u5911\u5912\u5913\u5917\u5918\u591B\u591D\u591E\u5920\u5921\u5922\u5923\u5926\u5928\u592C\u5930\u5932\u5933\u5935\u5936\u593B"],["8a40","\u593D\u593E\u593F\u5940\u5943\u5945\u5946\u594A\u594C\u594D\u5950\u5952\u5953\u5959\u595B",4,"\u5961\u5963\u5964\u5966",12,"\u5975\u5977\u597A\u597B\u597C\u597E\u597F\u5980\u5985\u5989\u598B\u598C\u598E\u598F\u5990\u5991\u5994\u5995\u5998\u599A\u599B\u599C\u599D\u599F\u59A0\u59A1\u59A2\u59A6"],["8a80","\u59A7\u59AC\u59AD\u59B0\u59B1\u59B3",5,"\u59BA\u59BC\u59BD\u59BF",6,"\u59C7\u59C8\u59C9\u59CC\u59CD\u59CE\u59CF\u59D5\u59D6\u59D9\u59DB\u59DE",4,"\u59E4\u59E6\u59E7\u59E9\u59EA\u59EB\u59ED",11,"\u59FA\u59FC\u59FD\u59FE\u5A00\u5A02\u5A0A\u5A0B\u5A0D\u5A0E\u5A0F\u5A10\u5A12\u5A14\u5A15\u5A16\u5A17\u5A19\u5A1A\u5A1B\u5A1D\u5A1E\u5A21\u5A22\u5A24\u5A26\u5A27\u5A28\u5A2A",6,"\u5A33\u5A35\u5A37",4,"\u5A3D\u5A3E\u5A3F\u5A41",4,"\u5A47\u5A48\u5A4B",9,"\u5A56\u5A57\u5A58\u5A59\u5A5B",5],["8b40","\u5A61\u5A63\u5A64\u5A65\u5A66\u5A68\u5A69\u5A6B",8,"\u5A78\u5A79\u5A7B\u5A7C\u5A7D\u5A7E\u5A80",17,"\u5A93",6,"\u5A9C",13,"\u5AAB\u5AAC"],["8b80","\u5AAD",4,"\u5AB4\u5AB6\u5AB7\u5AB9",4,"\u5ABF\u5AC0\u5AC3",5,"\u5ACA\u5ACB\u5ACD",4,"\u5AD3\u5AD5\u5AD7\u5AD9\u5ADA\u5ADB\u5ADD\u5ADE\u5ADF\u5AE2\u5AE4\u5AE5\u5AE7\u5AE8\u5AEA\u5AEC",4,"\u5AF2",22,"\u5B0A",11,"\u5B18",25,"\u5B33\u5B35\u5B36\u5B38",7,"\u5B41",6],["8c40","\u5B48",7,"\u5B52\u5B56\u5B5E\u5B60\u5B61\u5B67\u5B68\u5B6B\u5B6D\u5B6E\u5B6F\u5B72\u5B74\u5B76\u5B77\u5B78\u5B79\u5B7B\u5B7C\u5B7E\u5B7F\u5B82\u5B86\u5B8A\u5B8D\u5B8E\u5B90\u5B91\u5B92\u5B94\u5B96\u5B9F\u5BA7\u5BA8\u5BA9\u5BAC\u5BAD\u5BAE\u5BAF\u5BB1\u5BB2\u5BB7\u5BBA\u5BBB\u5BBC\u5BC0\u5BC1\u5BC3\u5BC8\u5BC9\u5BCA\u5BCB\u5BCD\u5BCE\u5BCF"],["8c80","\u5BD1\u5BD4",8,"\u5BE0\u5BE2\u5BE3\u5BE6\u5BE7\u5BE9",4,"\u5BEF\u5BF1",6,"\u5BFD\u5BFE\u5C00\u5C02\u5C03\u5C05\u5C07\u5C08\u5C0B\u5C0C\u5C0D\u5C0E\u5C10\u5C12\u5C13\u5C17\u5C19\u5C1B\u5C1E\u5C1F\u5C20\u5C21\u5C23\u5C26\u5C28\u5C29\u5C2A\u5C2B\u5C2D\u5C2E\u5C2F\u5C30\u5C32\u5C33\u5C35\u5C36\u5C37\u5C43\u5C44\u5C46\u5C47\u5C4C\u5C4D\u5C52\u5C53\u5C54\u5C56\u5C57\u5C58\u5C5A\u5C5B\u5C5C\u5C5D\u5C5F\u5C62\u5C64\u5C67",6,"\u5C70\u5C72",6,"\u5C7B\u5C7C\u5C7D\u5C7E\u5C80\u5C83",4,"\u5C89\u5C8A\u5C8B\u5C8E\u5C8F\u5C92\u5C93\u5C95\u5C9D",4,"\u5CA4",4],["8d40","\u5CAA\u5CAE\u5CAF\u5CB0\u5CB2\u5CB4\u5CB6\u5CB9\u5CBA\u5CBB\u5CBC\u5CBE\u5CC0\u5CC2\u5CC3\u5CC5",5,"\u5CCC",5,"\u5CD3",5,"\u5CDA",6,"\u5CE2\u5CE3\u5CE7\u5CE9\u5CEB\u5CEC\u5CEE\u5CEF\u5CF1",9,"\u5CFC",4],["8d80","\u5D01\u5D04\u5D05\u5D08",5,"\u5D0F",4,"\u5D15\u5D17\u5D18\u5D19\u5D1A\u5D1C\u5D1D\u5D1F",4,"\u5D25\u5D28\u5D2A\u5D2B\u5D2C\u5D2F",4,"\u5D35",7,"\u5D3F",7,"\u5D48\u5D49\u5D4D",10,"\u5D59\u5D5A\u5D5C\u5D5E",10,"\u5D6A\u5D6D\u5D6E\u5D70\u5D71\u5D72\u5D73\u5D75",12,"\u5D83",21,"\u5D9A\u5D9B\u5D9C\u5D9E\u5D9F\u5DA0"],["8e40","\u5DA1",21,"\u5DB8",12,"\u5DC6",6,"\u5DCE",12,"\u5DDC\u5DDF\u5DE0\u5DE3\u5DE4\u5DEA\u5DEC\u5DED"],["8e80","\u5DF0\u5DF5\u5DF6\u5DF8",4,"\u5DFF\u5E00\u5E04\u5E07\u5E09\u5E0A\u5E0B\u5E0D\u5E0E\u5E12\u5E13\u5E17\u5E1E",7,"\u5E28",4,"\u5E2F\u5E30\u5E32",4,"\u5E39\u5E3A\u5E3E\u5E3F\u5E40\u5E41\u5E43\u5E46",5,"\u5E4D",6,"\u5E56",4,"\u5E5C\u5E5D\u5E5F\u5E60\u5E63",14,"\u5E75\u5E77\u5E79\u5E7E\u5E81\u5E82\u5E83\u5E85\u5E88\u5E89\u5E8C\u5E8D\u5E8E\u5E92\u5E98\u5E9B\u5E9D\u5EA1\u5EA2\u5EA3\u5EA4\u5EA8",4,"\u5EAE",4,"\u5EB4\u5EBA\u5EBB\u5EBC\u5EBD\u5EBF",6],["8f40","\u5EC6\u5EC7\u5EC8\u5ECB",5,"\u5ED4\u5ED5\u5ED7\u5ED8\u5ED9\u5EDA\u5EDC",11,"\u5EE9\u5EEB",8,"\u5EF5\u5EF8\u5EF9\u5EFB\u5EFC\u5EFD\u5F05\u5F06\u5F07\u5F09\u5F0C\u5F0D\u5F0E\u5F10\u5F12\u5F14\u5F16\u5F19\u5F1A\u5F1C\u5F1D\u5F1E\u5F21\u5F22\u5F23\u5F24"],["8f80","\u5F28\u5F2B\u5F2C\u5F2E\u5F30\u5F32",6,"\u5F3B\u5F3D\u5F3E\u5F3F\u5F41",14,"\u5F51\u5F54\u5F59\u5F5A\u5F5B\u5F5C\u5F5E\u5F5F\u5F60\u5F63\u5F65\u5F67\u5F68\u5F6B\u5F6E\u5F6F\u5F72\u5F74\u5F75\u5F76\u5F78\u5F7A\u5F7D\u5F7E\u5F7F\u5F83\u5F86\u5F8D\u5F8E\u5F8F\u5F91\u5F93\u5F94\u5F96\u5F9A\u5F9B\u5F9D\u5F9E\u5F9F\u5FA0\u5FA2",5,"\u5FA9\u5FAB\u5FAC\u5FAF",5,"\u5FB6\u5FB8\u5FB9\u5FBA\u5FBB\u5FBE",4,"\u5FC7\u5FC8\u5FCA\u5FCB\u5FCE\u5FD3\u5FD4\u5FD5\u5FDA\u5FDB\u5FDC\u5FDE\u5FDF\u5FE2\u5FE3\u5FE5\u5FE6\u5FE8\u5FE9\u5FEC\u5FEF\u5FF0\u5FF2\u5FF3\u5FF4\u5FF6\u5FF7\u5FF9\u5FFA\u5FFC\u6007"],["9040","\u6008\u6009\u600B\u600C\u6010\u6011\u6013\u6017\u6018\u601A\u601E\u601F\u6022\u6023\u6024\u602C\u602D\u602E\u6030",4,"\u6036",4,"\u603D\u603E\u6040\u6044",6,"\u604C\u604E\u604F\u6051\u6053\u6054\u6056\u6057\u6058\u605B\u605C\u605E\u605F\u6060\u6061\u6065\u6066\u606E\u6071\u6072\u6074\u6075\u6077\u607E\u6080"],["9080","\u6081\u6082\u6085\u6086\u6087\u6088\u608A\u608B\u608E\u608F\u6090\u6091\u6093\u6095\u6097\u6098\u6099\u609C\u609E\u60A1\u60A2\u60A4\u60A5\u60A7\u60A9\u60AA\u60AE\u60B0\u60B3\u60B5\u60B6\u60B7\u60B9\u60BA\u60BD",7,"\u60C7\u60C8\u60C9\u60CC",4,"\u60D2\u60D3\u60D4\u60D6\u60D7\u60D9\u60DB\u60DE\u60E1",4,"\u60EA\u60F1\u60F2\u60F5\u60F7\u60F8\u60FB",4,"\u6102\u6103\u6104\u6105\u6107\u610A\u610B\u610C\u6110",4,"\u6116\u6117\u6118\u6119\u611B\u611C\u611D\u611E\u6121\u6122\u6125\u6128\u6129\u612A\u612C",18,"\u6140",6],["9140","\u6147\u6149\u614B\u614D\u614F\u6150\u6152\u6153\u6154\u6156",6,"\u615E\u615F\u6160\u6161\u6163\u6164\u6165\u6166\u6169",6,"\u6171\u6172\u6173\u6174\u6176\u6178",18,"\u618C\u618D\u618F",4,"\u6195"],["9180","\u6196",6,"\u619E",8,"\u61AA\u61AB\u61AD",9,"\u61B8",5,"\u61BF\u61C0\u61C1\u61C3",4,"\u61C9\u61CC",4,"\u61D3\u61D5",16,"\u61E7",13,"\u61F6",8,"\u6200",5,"\u6207\u6209\u6213\u6214\u6219\u621C\u621D\u621E\u6220\u6223\u6226\u6227\u6228\u6229\u622B\u622D\u622F\u6230\u6231\u6232\u6235\u6236\u6238",4,"\u6242\u6244\u6245\u6246\u624A"],["9240","\u624F\u6250\u6255\u6256\u6257\u6259\u625A\u625C",6,"\u6264\u6265\u6268\u6271\u6272\u6274\u6275\u6277\u6278\u627A\u627B\u627D\u6281\u6282\u6283\u6285\u6286\u6287\u6288\u628B",5,"\u6294\u6299\u629C\u629D\u629E\u62A3\u62A6\u62A7\u62A9\u62AA\u62AD\u62AE\u62AF\u62B0\u62B2\u62B3\u62B4\u62B6\u62B7\u62B8\u62BA\u62BE\u62C0\u62C1"],["9280","\u62C3\u62CB\u62CF\u62D1\u62D5\u62DD\u62DE\u62E0\u62E1\u62E4\u62EA\u62EB\u62F0\u62F2\u62F5\u62F8\u62F9\u62FA\u62FB\u6300\u6303\u6304\u6305\u6306\u630A\u630B\u630C\u630D\u630F\u6310\u6312\u6313\u6314\u6315\u6317\u6318\u6319\u631C\u6326\u6327\u6329\u632C\u632D\u632E\u6330\u6331\u6333",5,"\u633B\u633C\u633E\u633F\u6340\u6341\u6344\u6347\u6348\u634A\u6351\u6352\u6353\u6354\u6356",7,"\u6360\u6364\u6365\u6366\u6368\u636A\u636B\u636C\u636F\u6370\u6372\u6373\u6374\u6375\u6378\u6379\u637C\u637D\u637E\u637F\u6381\u6383\u6384\u6385\u6386\u638B\u638D\u6391\u6393\u6394\u6395\u6397\u6399",6,"\u63A1\u63A4\u63A6\u63AB\u63AF\u63B1\u63B2\u63B5\u63B6\u63B9\u63BB\u63BD\u63BF\u63C0"],["9340","\u63C1\u63C2\u63C3\u63C5\u63C7\u63C8\u63CA\u63CB\u63CC\u63D1\u63D3\u63D4\u63D5\u63D7",6,"\u63DF\u63E2\u63E4",4,"\u63EB\u63EC\u63EE\u63EF\u63F0\u63F1\u63F3\u63F5\u63F7\u63F9\u63FA\u63FB\u63FC\u63FE\u6403\u6404\u6406",4,"\u640D\u640E\u6411\u6412\u6415",5,"\u641D\u641F\u6422\u6423\u6424"],["9380","\u6425\u6427\u6428\u6429\u642B\u642E",5,"\u6435",4,"\u643B\u643C\u643E\u6440\u6442\u6443\u6449\u644B",6,"\u6453\u6455\u6456\u6457\u6459",4,"\u645F",7,"\u6468\u646A\u646B\u646C\u646E",9,"\u647B",6,"\u6483\u6486\u6488",8,"\u6493\u6494\u6497\u6498\u649A\u649B\u649C\u649D\u649F",4,"\u64A5\u64A6\u64A7\u64A8\u64AA\u64AB\u64AF\u64B1\u64B2\u64B3\u64B4\u64B6\u64B9\u64BB\u64BD\u64BE\u64BF\u64C1\u64C3\u64C4\u64C6",6,"\u64CF\u64D1\u64D3\u64D4\u64D5\u64D6\u64D9\u64DA"],["9440","\u64DB\u64DC\u64DD\u64DF\u64E0\u64E1\u64E3\u64E5\u64E7",24,"\u6501",7,"\u650A",7,"\u6513",4,"\u6519",8],["9480","\u6522\u6523\u6524\u6526",4,"\u652C\u652D\u6530\u6531\u6532\u6533\u6537\u653A\u653C\u653D\u6540",4,"\u6546\u6547\u654A\u654B\u654D\u654E\u6550\u6552\u6553\u6554\u6557\u6558\u655A\u655C\u655F\u6560\u6561\u6564\u6565\u6567\u6568\u6569\u656A\u656D\u656E\u656F\u6571\u6573\u6575\u6576\u6578",14,"\u6588\u6589\u658A\u658D\u658E\u658F\u6592\u6594\u6595\u6596\u6598\u659A\u659D\u659E\u65A0\u65A2\u65A3\u65A6\u65A8\u65AA\u65AC\u65AE\u65B1",7,"\u65BA\u65BB\u65BE\u65BF\u65C0\u65C2\u65C7\u65C8\u65C9\u65CA\u65CD\u65D0\u65D1\u65D3\u65D4\u65D5\u65D8",7,"\u65E1\u65E3\u65E4\u65EA\u65EB"],["9540","\u65F2\u65F3\u65F4\u65F5\u65F8\u65F9\u65FB",4,"\u6601\u6604\u6605\u6607\u6608\u6609\u660B\u660D\u6610\u6611\u6612\u6616\u6617\u6618\u661A\u661B\u661C\u661E\u6621\u6622\u6623\u6624\u6626\u6629\u662A\u662B\u662C\u662E\u6630\u6632\u6633\u6637",4,"\u663D\u663F\u6640\u6642\u6644",6,"\u664D\u664E\u6650\u6651\u6658"],["9580","\u6659\u665B\u665C\u665D\u665E\u6660\u6662\u6663\u6665\u6667\u6669",4,"\u6671\u6672\u6673\u6675\u6678\u6679\u667B\u667C\u667D\u667F\u6680\u6681\u6683\u6685\u6686\u6688\u6689\u668A\u668B\u668D\u668E\u668F\u6690\u6692\u6693\u6694\u6695\u6698",4,"\u669E",8,"\u66A9",4,"\u66AF",4,"\u66B5\u66B6\u66B7\u66B8\u66BA\u66BB\u66BC\u66BD\u66BF",25,"\u66DA\u66DE",7,"\u66E7\u66E8\u66EA",5,"\u66F1\u66F5\u66F6\u66F8\u66FA\u66FB\u66FD\u6701\u6702\u6703"],["9640","\u6704\u6705\u6706\u6707\u670C\u670E\u670F\u6711\u6712\u6713\u6716\u6718\u6719\u671A\u671C\u671E\u6720",5,"\u6727\u6729\u672E\u6730\u6732\u6733\u6736\u6737\u6738\u6739\u673B\u673C\u673E\u673F\u6741\u6744\u6745\u6747\u674A\u674B\u674D\u6752\u6754\u6755\u6757",4,"\u675D\u6762\u6763\u6764\u6766\u6767\u676B\u676C\u676E\u6771\u6774\u6776"],["9680","\u6778\u6779\u677A\u677B\u677D\u6780\u6782\u6783\u6785\u6786\u6788\u678A\u678C\u678D\u678E\u678F\u6791\u6792\u6793\u6794\u6796\u6799\u679B\u679F\u67A0\u67A1\u67A4\u67A6\u67A9\u67AC\u67AE\u67B1\u67B2\u67B4\u67B9",7,"\u67C2\u67C5",9,"\u67D5\u67D6\u67D7\u67DB\u67DF\u67E1\u67E3\u67E4\u67E6\u67E7\u67E8\u67EA\u67EB\u67ED\u67EE\u67F2\u67F5",7,"\u67FE\u6801\u6802\u6803\u6804\u6806\u680D\u6810\u6812\u6814\u6815\u6818",4,"\u681E\u681F\u6820\u6822",6,"\u682B",6,"\u6834\u6835\u6836\u683A\u683B\u683F\u6847\u684B\u684D\u684F\u6852\u6856",5],["9740","\u685C\u685D\u685E\u685F\u686A\u686C",7,"\u6875\u6878",8,"\u6882\u6884\u6887",7,"\u6890\u6891\u6892\u6894\u6895\u6896\u6898",9,"\u68A3\u68A4\u68A5\u68A9\u68AA\u68AB\u68AC\u68AE\u68B1\u68B2\u68B4\u68B6\u68B7\u68B8"],["9780","\u68B9",6,"\u68C1\u68C3",5,"\u68CA\u68CC\u68CE\u68CF\u68D0\u68D1\u68D3\u68D4\u68D6\u68D7\u68D9\u68DB",4,"\u68E1\u68E2\u68E4",9,"\u68EF\u68F2\u68F3\u68F4\u68F6\u68F7\u68F8\u68FB\u68FD\u68FE\u68FF\u6900\u6902\u6903\u6904\u6906",4,"\u690C\u690F\u6911\u6913",11,"\u6921\u6922\u6923\u6925",7,"\u692E\u692F\u6931\u6932\u6933\u6935\u6936\u6937\u6938\u693A\u693B\u693C\u693E\u6940\u6941\u6943",16,"\u6955\u6956\u6958\u6959\u695B\u695C\u695F"],["9840","\u6961\u6962\u6964\u6965\u6967\u6968\u6969\u696A\u696C\u696D\u696F\u6970\u6972",4,"\u697A\u697B\u697D\u697E\u697F\u6981\u6983\u6985\u698A\u698B\u698C\u698E",5,"\u6996\u6997\u6999\u699A\u699D",9,"\u69A9\u69AA\u69AC\u69AE\u69AF\u69B0\u69B2\u69B3\u69B5\u69B6\u69B8\u69B9\u69BA\u69BC\u69BD"],["9880","\u69BE\u69BF\u69C0\u69C2",7,"\u69CB\u69CD\u69CF\u69D1\u69D2\u69D3\u69D5",5,"\u69DC\u69DD\u69DE\u69E1",11,"\u69EE\u69EF\u69F0\u69F1\u69F3",9,"\u69FE\u6A00",9,"\u6A0B",11,"\u6A19",5,"\u6A20\u6A22",5,"\u6A29\u6A2B\u6A2C\u6A2D\u6A2E\u6A30\u6A32\u6A33\u6A34\u6A36",6,"\u6A3F",4,"\u6A45\u6A46\u6A48",7,"\u6A51",6,"\u6A5A"],["9940","\u6A5C",4,"\u6A62\u6A63\u6A64\u6A66",10,"\u6A72",6,"\u6A7A\u6A7B\u6A7D\u6A7E\u6A7F\u6A81\u6A82\u6A83\u6A85",8,"\u6A8F\u6A92",4,"\u6A98",7,"\u6AA1",5],["9980","\u6AA7\u6AA8\u6AAA\u6AAD",114,"\u6B25\u6B26\u6B28",6],["9a40","\u6B2F\u6B30\u6B31\u6B33\u6B34\u6B35\u6B36\u6B38\u6B3B\u6B3C\u6B3D\u6B3F\u6B40\u6B41\u6B42\u6B44\u6B45\u6B48\u6B4A\u6B4B\u6B4D",11,"\u6B5A",7,"\u6B68\u6B69\u6B6B",13,"\u6B7A\u6B7D\u6B7E\u6B7F\u6B80\u6B85\u6B88"],["9a80","\u6B8C\u6B8E\u6B8F\u6B90\u6B91\u6B94\u6B95\u6B97\u6B98\u6B99\u6B9C",4,"\u6BA2",7,"\u6BAB",7,"\u6BB6\u6BB8",6,"\u6BC0\u6BC3\u6BC4\u6BC6",4,"\u6BCC\u6BCE\u6BD0\u6BD1\u6BD8\u6BDA\u6BDC",4,"\u6BE2",7,"\u6BEC\u6BED\u6BEE\u6BF0\u6BF1\u6BF2\u6BF4\u6BF6\u6BF7\u6BF8\u6BFA\u6BFB\u6BFC\u6BFE",6,"\u6C08",4,"\u6C0E\u6C12\u6C17\u6C1C\u6C1D\u6C1E\u6C20\u6C23\u6C25\u6C2B\u6C2C\u6C2D\u6C31\u6C33\u6C36\u6C37\u6C39\u6C3A\u6C3B\u6C3C\u6C3E\u6C3F\u6C43\u6C44\u6C45\u6C48\u6C4B",4,"\u6C51\u6C52\u6C53\u6C56\u6C58"],["9b40","\u6C59\u6C5A\u6C62\u6C63\u6C65\u6C66\u6C67\u6C6B",4,"\u6C71\u6C73\u6C75\u6C77\u6C78\u6C7A\u6C7B\u6C7C\u6C7F\u6C80\u6C84\u6C87\u6C8A\u6C8B\u6C8D\u6C8E\u6C91\u6C92\u6C95\u6C96\u6C97\u6C98\u6C9A\u6C9C\u6C9D\u6C9E\u6CA0\u6CA2\u6CA8\u6CAC\u6CAF\u6CB0\u6CB4\u6CB5\u6CB6\u6CB7\u6CBA\u6CC0\u6CC1\u6CC2\u6CC3\u6CC6\u6CC7\u6CC8\u6CCB\u6CCD\u6CCE\u6CCF\u6CD1\u6CD2\u6CD8"],["9b80","\u6CD9\u6CDA\u6CDC\u6CDD\u6CDF\u6CE4\u6CE6\u6CE7\u6CE9\u6CEC\u6CED\u6CF2\u6CF4\u6CF9\u6CFF\u6D00\u6D02\u6D03\u6D05\u6D06\u6D08\u6D09\u6D0A\u6D0D\u6D0F\u6D10\u6D11\u6D13\u6D14\u6D15\u6D16\u6D18\u6D1C\u6D1D\u6D1F",5,"\u6D26\u6D28\u6D29\u6D2C\u6D2D\u6D2F\u6D30\u6D34\u6D36\u6D37\u6D38\u6D3A\u6D3F\u6D40\u6D42\u6D44\u6D49\u6D4C\u6D50\u6D55\u6D56\u6D57\u6D58\u6D5B\u6D5D\u6D5F\u6D61\u6D62\u6D64\u6D65\u6D67\u6D68\u6D6B\u6D6C\u6D6D\u6D70\u6D71\u6D72\u6D73\u6D75\u6D76\u6D79\u6D7A\u6D7B\u6D7D",4,"\u6D83\u6D84\u6D86\u6D87\u6D8A\u6D8B\u6D8D\u6D8F\u6D90\u6D92\u6D96",4,"\u6D9C\u6DA2\u6DA5\u6DAC\u6DAD\u6DB0\u6DB1\u6DB3\u6DB4\u6DB6\u6DB7\u6DB9",5,"\u6DC1\u6DC2\u6DC3\u6DC8\u6DC9\u6DCA"],["9c40","\u6DCD\u6DCE\u6DCF\u6DD0\u6DD2\u6DD3\u6DD4\u6DD5\u6DD7\u6DDA\u6DDB\u6DDC\u6DDF\u6DE2\u6DE3\u6DE5\u6DE7\u6DE8\u6DE9\u6DEA\u6DED\u6DEF\u6DF0\u6DF2\u6DF4\u6DF5\u6DF6\u6DF8\u6DFA\u6DFD",7,"\u6E06\u6E07\u6E08\u6E09\u6E0B\u6E0F\u6E12\u6E13\u6E15\u6E18\u6E19\u6E1B\u6E1C\u6E1E\u6E1F\u6E22\u6E26\u6E27\u6E28\u6E2A\u6E2C\u6E2E\u6E30\u6E31\u6E33\u6E35"],["9c80","\u6E36\u6E37\u6E39\u6E3B",7,"\u6E45",7,"\u6E4F\u6E50\u6E51\u6E52\u6E55\u6E57\u6E59\u6E5A\u6E5C\u6E5D\u6E5E\u6E60",10,"\u6E6C\u6E6D\u6E6F",14,"\u6E80\u6E81\u6E82\u6E84\u6E87\u6E88\u6E8A",4,"\u6E91",6,"\u6E99\u6E9A\u6E9B\u6E9D\u6E9E\u6EA0\u6EA1\u6EA3\u6EA4\u6EA6\u6EA8\u6EA9\u6EAB\u6EAC\u6EAD\u6EAE\u6EB0\u6EB3\u6EB5\u6EB8\u6EB9\u6EBC\u6EBE\u6EBF\u6EC0\u6EC3\u6EC4\u6EC5\u6EC6\u6EC8\u6EC9\u6ECA\u6ECC\u6ECD\u6ECE\u6ED0\u6ED2\u6ED6\u6ED8\u6ED9\u6EDB\u6EDC\u6EDD\u6EE3\u6EE7\u6EEA",5],["9d40","\u6EF0\u6EF1\u6EF2\u6EF3\u6EF5\u6EF6\u6EF7\u6EF8\u6EFA",7,"\u6F03\u6F04\u6F05\u6F07\u6F08\u6F0A",4,"\u6F10\u6F11\u6F12\u6F16",9,"\u6F21\u6F22\u6F23\u6F25\u6F26\u6F27\u6F28\u6F2C\u6F2E\u6F30\u6F32\u6F34\u6F35\u6F37",6,"\u6F3F\u6F40\u6F41\u6F42"],["9d80","\u6F43\u6F44\u6F45\u6F48\u6F49\u6F4A\u6F4C\u6F4E",9,"\u6F59\u6F5A\u6F5B\u6F5D\u6F5F\u6F60\u6F61\u6F63\u6F64\u6F65\u6F67",5,"\u6F6F\u6F70\u6F71\u6F73\u6F75\u6F76\u6F77\u6F79\u6F7B\u6F7D",6,"\u6F85\u6F86\u6F87\u6F8A\u6F8B\u6F8F",12,"\u6F9D\u6F9E\u6F9F\u6FA0\u6FA2",4,"\u6FA8",10,"\u6FB4\u6FB5\u6FB7\u6FB8\u6FBA",5,"\u6FC1\u6FC3",5,"\u6FCA",6,"\u6FD3",10,"\u6FDF\u6FE2\u6FE3\u6FE4\u6FE5"],["9e40","\u6FE6",7,"\u6FF0",32,"\u7012",7,"\u701C",6,"\u7024",6],["9e80","\u702B",9,"\u7036\u7037\u7038\u703A",17,"\u704D\u704E\u7050",13,"\u705F",11,"\u706E\u7071\u7072\u7073\u7074\u7077\u7079\u707A\u707B\u707D\u7081\u7082\u7083\u7084\u7086\u7087\u7088\u708B\u708C\u708D\u708F\u7090\u7091\u7093\u7097\u7098\u709A\u709B\u709E",12,"\u70B0\u70B2\u70B4\u70B5\u70B6\u70BA\u70BE\u70BF\u70C4\u70C5\u70C6\u70C7\u70C9\u70CB",12,"\u70DA"],["9f40","\u70DC\u70DD\u70DE\u70E0\u70E1\u70E2\u70E3\u70E5\u70EA\u70EE\u70F0",6,"\u70F8\u70FA\u70FB\u70FC\u70FE",10,"\u710B",4,"\u7111\u7112\u7114\u7117\u711B",10,"\u7127",7,"\u7132\u7133\u7134"],["9f80","\u7135\u7137",13,"\u7146\u7147\u7148\u7149\u714B\u714D\u714F",12,"\u715D\u715F",4,"\u7165\u7169",4,"\u716F\u7170\u7171\u7174\u7175\u7176\u7177\u7179\u717B\u717C\u717E",5,"\u7185",4,"\u718B\u718C\u718D\u718E\u7190\u7191\u7192\u7193\u7195\u7196\u7197\u719A",4,"\u71A1",6,"\u71A9\u71AA\u71AB\u71AD",5,"\u71B4\u71B6\u71B7\u71B8\u71BA",8,"\u71C4",9,"\u71CF",4],["a040","\u71D6",9,"\u71E1\u71E2\u71E3\u71E4\u71E6\u71E8",5,"\u71EF",9,"\u71FA",11,"\u7207",19],["a080","\u721B\u721C\u721E",9,"\u7229\u722B\u722D\u722E\u722F\u7232\u7233\u7234\u723A\u723C\u723E\u7240",6,"\u7249\u724A\u724B\u724E\u724F\u7250\u7251\u7253\u7254\u7255\u7257\u7258\u725A\u725C\u725E\u7260\u7263\u7264\u7265\u7268\u726A\u726B\u726C\u726D\u7270\u7271\u7273\u7274\u7276\u7277\u7278\u727B\u727C\u727D\u7282\u7283\u7285",4,"\u728C\u728E\u7290\u7291\u7293",11,"\u72A0",11,"\u72AE\u72B1\u72B2\u72B3\u72B5\u72BA",6,"\u72C5\u72C6\u72C7\u72C9\u72CA\u72CB\u72CC\u72CF\u72D1\u72D3\u72D4\u72D5\u72D6\u72D8\u72DA\u72DB"],["a1a1","\u3000\u3001\u3002\xB7\u02C9\u02C7\xA8\u3003\u3005\u2014\uFF5E\u2016\u2026\u2018\u2019\u201C\u201D\u3014\u3015\u3008",7,"\u3016\u3017\u3010\u3011\xB1\xD7\xF7\u2236\u2227\u2228\u2211\u220F\u222A\u2229\u2208\u2237\u221A\u22A5\u2225\u2220\u2312\u2299\u222B\u222E\u2261\u224C\u2248\u223D\u221D\u2260\u226E\u226F\u2264\u2265\u221E\u2235\u2234\u2642\u2640\xB0\u2032\u2033\u2103\uFF04\xA4\uFFE0\uFFE1\u2030\xA7\u2116\u2606\u2605\u25CB\u25CF\u25CE\u25C7\u25C6\u25A1\u25A0\u25B3\u25B2\u203B\u2192\u2190\u2191\u2193\u3013"],["a2a1","\u2170",9],["a2b1","\u2488",19,"\u2474",19,"\u2460",9],["a2e5","\u3220",9],["a2f1","\u2160",11],["a3a1","\uFF01\uFF02\uFF03\uFFE5\uFF05",88,"\uFFE3"],["a4a1","\u3041",82],["a5a1","\u30A1",85],["a6a1","\u0391",16,"\u03A3",6],["a6c1","\u03B1",16,"\u03C3",6],["a6e0","\uFE35\uFE36\uFE39\uFE3A\uFE3F\uFE40\uFE3D\uFE3E\uFE41\uFE42\uFE43\uFE44"],["a6ee","\uFE3B\uFE3C\uFE37\uFE38\uFE31"],["a6f4","\uFE33\uFE34"],["a7a1","\u0410",5,"\u0401\u0416",25],["a7d1","\u0430",5,"\u0451\u0436",25],["a840","\u02CA\u02CB\u02D9\u2013\u2015\u2025\u2035\u2105\u2109\u2196\u2197\u2198\u2199\u2215\u221F\u2223\u2252\u2266\u2267\u22BF\u2550",35,"\u2581",6],["a880","\u2588",7,"\u2593\u2594\u2595\u25BC\u25BD\u25E2\u25E3\u25E4\u25E5\u2609\u2295\u3012\u301D\u301E"],["a8a1","\u0101\xE1\u01CE\xE0\u0113\xE9\u011B\xE8\u012B\xED\u01D0\xEC\u014D\xF3\u01D2\xF2\u016B\xFA\u01D4\xF9\u01D6\u01D8\u01DA\u01DC\xFC\xEA\u0251"],["a8bd","\u0144\u0148"],["a8c0","\u0261"],["a8c5","\u3105",36],["a940","\u3021",8,"\u32A3\u338E\u338F\u339C\u339D\u339E\u33A1\u33C4\u33CE\u33D1\u33D2\u33D5\uFE30\uFFE2\uFFE4"],["a959","\u2121\u3231"],["a95c","\u2010"],["a960","\u30FC\u309B\u309C\u30FD\u30FE\u3006\u309D\u309E\uFE49",9,"\uFE54\uFE55\uFE56\uFE57\uFE59",8],["a980","\uFE62",4,"\uFE68\uFE69\uFE6A\uFE6B"],["a996","\u3007"],["a9a4","\u2500",75],["aa40","\u72DC\u72DD\u72DF\u72E2",5,"\u72EA\u72EB\u72F5\u72F6\u72F9\u72FD\u72FE\u72FF\u7300\u7302\u7304",5,"\u730B\u730C\u730D\u730F\u7310\u7311\u7312\u7314\u7318\u7319\u731A\u731F\u7320\u7323\u7324\u7326\u7327\u7328\u732D\u732F\u7330\u7332\u7333\u7335\u7336\u733A\u733B\u733C\u733D\u7340",8],["aa80","\u7349\u734A\u734B\u734C\u734E\u734F\u7351\u7353\u7354\u7355\u7356\u7358",7,"\u7361",10,"\u736E\u7370\u7371"],["ab40","\u7372",11,"\u737F",4,"\u7385\u7386\u7388\u738A\u738C\u738D\u738F\u7390\u7392\u7393\u7394\u7395\u7397\u7398\u7399\u739A\u739C\u739D\u739E\u73A0\u73A1\u73A3",5,"\u73AA\u73AC\u73AD\u73B1\u73B4\u73B5\u73B6\u73B8\u73B9\u73BC\u73BD\u73BE\u73BF\u73C1\u73C3",4],["ab80","\u73CB\u73CC\u73CE\u73D2",6,"\u73DA\u73DB\u73DC\u73DD\u73DF\u73E1\u73E2\u73E3\u73E4\u73E6\u73E8\u73EA\u73EB\u73EC\u73EE\u73EF\u73F0\u73F1\u73F3",4],["ac40","\u73F8",10,"\u7404\u7407\u7408\u740B\u740C\u740D\u740E\u7411",8,"\u741C",5,"\u7423\u7424\u7427\u7429\u742B\u742D\u742F\u7431\u7432\u7437",4,"\u743D\u743E\u743F\u7440\u7442",11],["ac80","\u744E",6,"\u7456\u7458\u745D\u7460",12,"\u746E\u746F\u7471",4,"\u7478\u7479\u747A"],["ad40","\u747B\u747C\u747D\u747F\u7482\u7484\u7485\u7486\u7488\u7489\u748A\u748C\u748D\u748F\u7491",10,"\u749D\u749F",7,"\u74AA",15,"\u74BB",12],["ad80","\u74C8",9,"\u74D3",8,"\u74DD\u74DF\u74E1\u74E5\u74E7",6,"\u74F0\u74F1\u74F2"],["ae40","\u74F3\u74F5\u74F8",6,"\u7500\u7501\u7502\u7503\u7505",7,"\u750E\u7510\u7512\u7514\u7515\u7516\u7517\u751B\u751D\u751E\u7520",4,"\u7526\u7527\u752A\u752E\u7534\u7536\u7539\u753C\u753D\u753F\u7541\u7542\u7543\u7544\u7546\u7547\u7549\u754A\u754D\u7550\u7551\u7552\u7553\u7555\u7556\u7557\u7558"],["ae80","\u755D",7,"\u7567\u7568\u7569\u756B",6,"\u7573\u7575\u7576\u7577\u757A",4,"\u7580\u7581\u7582\u7584\u7585\u7587"],["af40","\u7588\u7589\u758A\u758C\u758D\u758E\u7590\u7593\u7595\u7598\u759B\u759C\u759E\u75A2\u75A6",4,"\u75AD\u75B6\u75B7\u75BA\u75BB\u75BF\u75C0\u75C1\u75C6\u75CB\u75CC\u75CE\u75CF\u75D0\u75D1\u75D3\u75D7\u75D9\u75DA\u75DC\u75DD\u75DF\u75E0\u75E1\u75E5\u75E9\u75EC\u75ED\u75EE\u75EF\u75F2\u75F3\u75F5\u75F6\u75F7\u75F8\u75FA\u75FB\u75FD\u75FE\u7602\u7604\u7606\u7607"],["af80","\u7608\u7609\u760B\u760D\u760E\u760F\u7611\u7612\u7613\u7614\u7616\u761A\u761C\u761D\u761E\u7621\u7623\u7627\u7628\u762C\u762E\u762F\u7631\u7632\u7636\u7637\u7639\u763A\u763B\u763D\u7641\u7642\u7644"],["b040","\u7645",6,"\u764E",5,"\u7655\u7657",4,"\u765D\u765F\u7660\u7661\u7662\u7664",6,"\u766C\u766D\u766E\u7670",7,"\u7679\u767A\u767C\u767F\u7680\u7681\u7683\u7685\u7689\u768A\u768C\u768D\u768F\u7690\u7692\u7694\u7695\u7697\u7698\u769A\u769B"],["b080","\u769C",7,"\u76A5",8,"\u76AF\u76B0\u76B3\u76B5",9,"\u76C0\u76C1\u76C3\u554A\u963F\u57C3\u6328\u54CE\u5509\u54C0\u7691\u764C\u853C\u77EE\u827E\u788D\u7231\u9698\u978D\u6C28\u5B89\u4FFA\u6309\u6697\u5CB8\u80FA\u6848\u80AE\u6602\u76CE\u51F9\u6556\u71AC\u7FF1\u8884\u50B2\u5965\u61CA\u6FB3\u82AD\u634C\u6252\u53ED\u5427\u7B06\u516B\u75A4\u5DF4\u62D4\u8DCB\u9776\u628A\u8019\u575D\u9738\u7F62\u7238\u767D\u67CF\u767E\u6446\u4F70\u8D25\u62DC\u7A17\u6591\u73ED\u642C\u6273\u822C\u9881\u677F\u7248\u626E\u62CC\u4F34\u74E3\u534A\u529E\u7ECA\u90A6\u5E2E\u6886\u699C\u8180\u7ED1\u68D2\u78C5\u868C\u9551\u508D\u8C24\u82DE\u80DE\u5305\u8912\u5265"],["b140","\u76C4\u76C7\u76C9\u76CB\u76CC\u76D3\u76D5\u76D9\u76DA\u76DC\u76DD\u76DE\u76E0",4,"\u76E6",7,"\u76F0\u76F3\u76F5\u76F6\u76F7\u76FA\u76FB\u76FD\u76FF\u7700\u7702\u7703\u7705\u7706\u770A\u770C\u770E",10,"\u771B\u771C\u771D\u771E\u7721\u7723\u7724\u7725\u7727\u772A\u772B"],["b180","\u772C\u772E\u7730",4,"\u7739\u773B\u773D\u773E\u773F\u7742\u7744\u7745\u7746\u7748",7,"\u7752",7,"\u775C\u8584\u96F9\u4FDD\u5821\u9971\u5B9D\u62B1\u62A5\u66B4\u8C79\u9C8D\u7206\u676F\u7891\u60B2\u5351\u5317\u8F88\u80CC\u8D1D\u94A1\u500D\u72C8\u5907\u60EB\u7119\u88AB\u5954\u82EF\u672C\u7B28\u5D29\u7EF7\u752D\u6CF5\u8E66\u8FF8\u903C\u9F3B\u6BD4\u9119\u7B14\u5F7C\u78A7\u84D6\u853D\u6BD5\u6BD9\u6BD6\u5E01\u5E87\u75F9\u95ED\u655D\u5F0A\u5FC5\u8F9F\u58C1\u81C2\u907F\u965B\u97AD\u8FB9\u7F16\u8D2C\u6241\u4FBF\u53D8\u535E\u8FA8\u8FA9\u8FAB\u904D\u6807\u5F6A\u8198\u8868\u9CD6\u618B\u522B\u762A\u5F6C\u658C\u6FD2\u6EE8\u5BBE\u6448\u5175\u51B0\u67C4\u4E19\u79C9\u997C\u70B3"],["b240","\u775D\u775E\u775F\u7760\u7764\u7767\u7769\u776A\u776D",11,"\u777A\u777B\u777C\u7781\u7782\u7783\u7786",5,"\u778F\u7790\u7793",11,"\u77A1\u77A3\u77A4\u77A6\u77A8\u77AB\u77AD\u77AE\u77AF\u77B1\u77B2\u77B4\u77B6",4],["b280","\u77BC\u77BE\u77C0",12,"\u77CE",8,"\u77D8\u77D9\u77DA\u77DD",4,"\u77E4\u75C5\u5E76\u73BB\u83E0\u64AD\u62E8\u94B5\u6CE2\u535A\u52C3\u640F\u94C2\u7B94\u4F2F\u5E1B\u8236\u8116\u818A\u6E24\u6CCA\u9A73\u6355\u535C\u54FA\u8865\u57E0\u4E0D\u5E03\u6B65\u7C3F\u90E8\u6016\u64E6\u731C\u88C1\u6750\u624D\u8D22\u776C\u8E29\u91C7\u5F69\u83DC\u8521\u9910\u53C2\u8695\u6B8B\u60ED\u60E8\u707F\u82CD\u8231\u4ED3\u6CA7\u85CF\u64CD\u7CD9\u69FD\u66F9\u8349\u5395\u7B56\u4FA7\u518C\u6D4B\u5C42\u8E6D\u63D2\u53C9\u832C\u8336\u67E5\u78B4\u643D\u5BDF\u5C94\u5DEE\u8BE7\u62C6\u67F4\u8C7A\u6400\u63BA\u8749\u998B\u8C17\u7F20\u94F2\u4EA7\u9610\u98A4\u660C\u7316"],["b340","\u77E6\u77E8\u77EA\u77EF\u77F0\u77F1\u77F2\u77F4\u77F5\u77F7\u77F9\u77FA\u77FB\u77FC\u7803",5,"\u780A\u780B\u780E\u780F\u7810\u7813\u7815\u7819\u781B\u781E\u7820\u7821\u7822\u7824\u7828\u782A\u782B\u782E\u782F\u7831\u7832\u7833\u7835\u7836\u783D\u783F\u7841\u7842\u7843\u7844\u7846\u7848\u7849\u784A\u784B\u784D\u784F\u7851\u7853\u7854\u7858\u7859\u785A"],["b380","\u785B\u785C\u785E",11,"\u786F",7,"\u7878\u7879\u787A\u787B\u787D",6,"\u573A\u5C1D\u5E38\u957F\u507F\u80A0\u5382\u655E\u7545\u5531\u5021\u8D85\u6284\u949E\u671D\u5632\u6F6E\u5DE2\u5435\u7092\u8F66\u626F\u64A4\u63A3\u5F7B\u6F88\u90F4\u81E3\u8FB0\u5C18\u6668\u5FF1\u6C89\u9648\u8D81\u886C\u6491\u79F0\u57CE\u6A59\u6210\u5448\u4E58\u7A0B\u60E9\u6F84\u8BDA\u627F\u901E\u9A8B\u79E4\u5403\u75F4\u6301\u5319\u6C60\u8FDF\u5F1B\u9A70\u803B\u9F7F\u4F88\u5C3A\u8D64\u7FC5\u65A5\u70BD\u5145\u51B2\u866B\u5D07\u5BA0\u62BD\u916C\u7574\u8E0C\u7A20\u6101\u7B79\u4EC7\u7EF8\u7785\u4E11\u81ED\u521D\u51FA\u6A71\u53A8\u8E87\u9504\u96CF\u6EC1\u9664\u695A"],["b440","\u7884\u7885\u7886\u7888\u788A\u788B\u788F\u7890\u7892\u7894\u7895\u7896\u7899\u789D\u789E\u78A0\u78A2\u78A4\u78A6\u78A8",7,"\u78B5\u78B6\u78B7\u78B8\u78BA\u78BB\u78BC\u78BD\u78BF\u78C0\u78C2\u78C3\u78C4\u78C6\u78C7\u78C8\u78CC\u78CD\u78CE\u78CF\u78D1\u78D2\u78D3\u78D6\u78D7\u78D8\u78DA",9],["b480","\u78E4\u78E5\u78E6\u78E7\u78E9\u78EA\u78EB\u78ED",4,"\u78F3\u78F5\u78F6\u78F8\u78F9\u78FB",5,"\u7902\u7903\u7904\u7906",6,"\u7840\u50A8\u77D7\u6410\u89E6\u5904\u63E3\u5DDD\u7A7F\u693D\u4F20\u8239\u5598\u4E32\u75AE\u7A97\u5E62\u5E8A\u95EF\u521B\u5439\u708A\u6376\u9524\u5782\u6625\u693F\u9187\u5507\u6DF3\u7EAF\u8822\u6233\u7EF0\u75B5\u8328\u78C1\u96CC\u8F9E\u6148\u74F7\u8BCD\u6B64\u523A\u8D50\u6B21\u806A\u8471\u56F1\u5306\u4ECE\u4E1B\u51D1\u7C97\u918B\u7C07\u4FC3\u8E7F\u7BE1\u7A9C\u6467\u5D14\u50AC\u8106\u7601\u7CB9\u6DEC\u7FE0\u6751\u5B58\u5BF8\u78CB\u64AE\u6413\u63AA\u632B\u9519\u642D\u8FBE\u7B54\u7629\u6253\u5927\u5446\u6B79\u50A3\u6234\u5E26\u6B86\u4EE3\u8D37\u888B\u5F85\u902E"],["b540","\u790D",5,"\u7914",9,"\u791F",4,"\u7925",14,"\u7935",4,"\u793D\u793F\u7942\u7943\u7944\u7945\u7947\u794A",8,"\u7954\u7955\u7958\u7959\u7961\u7963"],["b580","\u7964\u7966\u7969\u796A\u796B\u796C\u796E\u7970",6,"\u7979\u797B",4,"\u7982\u7983\u7986\u7987\u7988\u7989\u798B\u798C\u798D\u798E\u7990\u7991\u7992\u6020\u803D\u62C5\u4E39\u5355\u90F8\u63B8\u80C6\u65E6\u6C2E\u4F46\u60EE\u6DE1\u8BDE\u5F39\u86CB\u5F53\u6321\u515A\u8361\u6863\u5200\u6363\u8E48\u5012\u5C9B\u7977\u5BFC\u5230\u7A3B\u60BC\u9053\u76D7\u5FB7\u5F97\u7684\u8E6C\u706F\u767B\u7B49\u77AA\u51F3\u9093\u5824\u4F4E\u6EF4\u8FEA\u654C\u7B1B\u72C4\u6DA4\u7FDF\u5AE1\u62B5\u5E95\u5730\u8482\u7B2C\u5E1D\u5F1F\u9012\u7F14\u98A0\u6382\u6EC7\u7898\u70B9\u5178\u975B\u57AB\u7535\u4F43\u7538\u5E97\u60E6\u5960\u6DC0\u6BBF\u7889\u53FC\u96D5\u51CB\u5201\u6389\u540A\u9493\u8C03\u8DCC\u7239\u789F\u8776\u8FED\u8C0D\u53E0"],["b640","\u7993",6,"\u799B",11,"\u79A8",10,"\u79B4",4,"\u79BC\u79BF\u79C2\u79C4\u79C5\u79C7\u79C8\u79CA\u79CC\u79CE\u79CF\u79D0\u79D3\u79D4\u79D6\u79D7\u79D9",5,"\u79E0\u79E1\u79E2\u79E5\u79E8\u79EA"],["b680","\u79EC\u79EE\u79F1",6,"\u79F9\u79FA\u79FC\u79FE\u79FF\u7A01\u7A04\u7A05\u7A07\u7A08\u7A09\u7A0A\u7A0C\u7A0F",4,"\u7A15\u7A16\u7A18\u7A19\u7A1B\u7A1C\u4E01\u76EF\u53EE\u9489\u9876\u9F0E\u952D\u5B9A\u8BA2\u4E22\u4E1C\u51AC\u8463\u61C2\u52A8\u680B\u4F97\u606B\u51BB\u6D1E\u515C\u6296\u6597\u9661\u8C46\u9017\u75D8\u90FD\u7763\u6BD2\u728A\u72EC\u8BFB\u5835\u7779\u8D4C\u675C\u9540\u809A\u5EA6\u6E21\u5992\u7AEF\u77ED\u953B\u6BB5\u65AD\u7F0E\u5806\u5151\u961F\u5BF9\u58A9\u5428\u8E72\u6566\u987F\u56E4\u949D\u76FE\u9041\u6387\u54C6\u591A\u593A\u579B\u8EB2\u6735\u8DFA\u8235\u5241\u60F0\u5815\u86FE\u5CE8\u9E45\u4FC4\u989D\u8BB9\u5A25\u6076\u5384\u627C\u904F\u9102\u997F\u6069\u800C\u513F\u8033\u5C14\u9975\u6D31\u4E8C"],["b740","\u7A1D\u7A1F\u7A21\u7A22\u7A24",14,"\u7A34\u7A35\u7A36\u7A38\u7A3A\u7A3E\u7A40",5,"\u7A47",9,"\u7A52",4,"\u7A58",16],["b780","\u7A69",6,"\u7A71\u7A72\u7A73\u7A75\u7A7B\u7A7C\u7A7D\u7A7E\u7A82\u7A85\u7A87\u7A89\u7A8A\u7A8B\u7A8C\u7A8E\u7A8F\u7A90\u7A93\u7A94\u7A99\u7A9A\u7A9B\u7A9E\u7AA1\u7AA2\u8D30\u53D1\u7F5A\u7B4F\u4F10\u4E4F\u9600\u6CD5\u73D0\u85E9\u5E06\u756A\u7FFB\u6A0A\u77FE\u9492\u7E41\u51E1\u70E6\u53CD\u8FD4\u8303\u8D29\u72AF\u996D\u6CDB\u574A\u82B3\u65B9\u80AA\u623F\u9632\u59A8\u4EFF\u8BBF\u7EBA\u653E\u83F2\u975E\u5561\u98DE\u80A5\u532A\u8BFD\u5420\u80BA\u5E9F\u6CB8\u8D39\u82AC\u915A\u5429\u6C1B\u5206\u7EB7\u575F\u711A\u6C7E\u7C89\u594B\u4EFD\u5FFF\u6124\u7CAA\u4E30\u5C01\u67AB\u8702\u5CF0\u950B\u98CE\u75AF\u70FD\u9022\u51AF\u7F1D\u8BBD\u5949\u51E4\u4F5B\u5426\u592B\u6577\u80A4\u5B75\u6276\u62C2\u8F90\u5E45\u6C1F\u7B26\u4F0F\u4FD8\u670D"],["b840","\u7AA3\u7AA4\u7AA7\u7AA9\u7AAA\u7AAB\u7AAE",4,"\u7AB4",10,"\u7AC0",10,"\u7ACC",9,"\u7AD7\u7AD8\u7ADA\u7ADB\u7ADC\u7ADD\u7AE1\u7AE2\u7AE4\u7AE7",5,"\u7AEE\u7AF0\u7AF1\u7AF2\u7AF3"],["b880","\u7AF4",4,"\u7AFB\u7AFC\u7AFE\u7B00\u7B01\u7B02\u7B05\u7B07\u7B09\u7B0C\u7B0D\u7B0E\u7B10\u7B12\u7B13\u7B16\u7B17\u7B18\u7B1A\u7B1C\u7B1D\u7B1F\u7B21\u7B22\u7B23\u7B27\u7B29\u7B2D\u6D6E\u6DAA\u798F\u88B1\u5F17\u752B\u629A\u8F85\u4FEF\u91DC\u65A7\u812F\u8151\u5E9C\u8150\u8D74\u526F\u8986\u8D4B\u590D\u5085\u4ED8\u961C\u7236\u8179\u8D1F\u5BCC\u8BA3\u9644\u5987\u7F1A\u5490\u5676\u560E\u8BE5\u6539\u6982\u9499\u76D6\u6E89\u5E72\u7518\u6746\u67D1\u7AFF\u809D\u8D76\u611F\u79C6\u6562\u8D63\u5188\u521A\u94A2\u7F38\u809B\u7EB2\u5C97\u6E2F\u6760\u7BD9\u768B\u9AD8\u818F\u7F94\u7CD5\u641E\u9550\u7A3F\u544A\u54E5\u6B4C\u6401\u6208\u9E3D\u80F3\u7599\u5272\u9769\u845B\u683C\u86E4\u9601\u9694\u94EC\u4E2A\u5404\u7ED9\u6839\u8DDF\u8015\u66F4\u5E9A\u7FB9"],["b940","\u7B2F\u7B30\u7B32\u7B34\u7B35\u7B36\u7B37\u7B39\u7B3B\u7B3D\u7B3F",5,"\u7B46\u7B48\u7B4A\u7B4D\u7B4E\u7B53\u7B55\u7B57\u7B59\u7B5C\u7B5E\u7B5F\u7B61\u7B63",10,"\u7B6F\u7B70\u7B73\u7B74\u7B76\u7B78\u7B7A\u7B7C\u7B7D\u7B7F\u7B81\u7B82\u7B83\u7B84\u7B86",6,"\u7B8E\u7B8F"],["b980","\u7B91\u7B92\u7B93\u7B96\u7B98\u7B99\u7B9A\u7B9B\u7B9E\u7B9F\u7BA0\u7BA3\u7BA4\u7BA5\u7BAE\u7BAF\u7BB0\u7BB2\u7BB3\u7BB5\u7BB6\u7BB7\u7BB9",7,"\u7BC2\u7BC3\u7BC4\u57C2\u803F\u6897\u5DE5\u653B\u529F\u606D\u9F9A\u4F9B\u8EAC\u516C\u5BAB\u5F13\u5DE9\u6C5E\u62F1\u8D21\u5171\u94A9\u52FE\u6C9F\u82DF\u72D7\u57A2\u6784\u8D2D\u591F\u8F9C\u83C7\u5495\u7B8D\u4F30\u6CBD\u5B64\u59D1\u9F13\u53E4\u86CA\u9AA8\u8C37\u80A1\u6545\u987E\u56FA\u96C7\u522E\u74DC\u5250\u5BE1\u6302\u8902\u4E56\u62D0\u602A\u68FA\u5173\u5B98\u51A0\u89C2\u7BA1\u9986\u7F50\u60EF\u704C\u8D2F\u5149\u5E7F\u901B\u7470\u89C4\u572D\u7845\u5F52\u9F9F\u95FA\u8F68\u9B3C\u8BE1\u7678\u6842\u67DC\u8DEA\u8D35\u523D\u8F8A\u6EDA\u68CD\u9505\u90ED\u56FD\u679C\u88F9\u8FC7\u54C8"],["ba40","\u7BC5\u7BC8\u7BC9\u7BCA\u7BCB\u7BCD\u7BCE\u7BCF\u7BD0\u7BD2\u7BD4",4,"\u7BDB\u7BDC\u7BDE\u7BDF\u7BE0\u7BE2\u7BE3\u7BE4\u7BE7\u7BE8\u7BE9\u7BEB\u7BEC\u7BED\u7BEF\u7BF0\u7BF2",4,"\u7BF8\u7BF9\u7BFA\u7BFB\u7BFD\u7BFF",7,"\u7C08\u7C09\u7C0A\u7C0D\u7C0E\u7C10",5,"\u7C17\u7C18\u7C19"],["ba80","\u7C1A",4,"\u7C20",5,"\u7C28\u7C29\u7C2B",12,"\u7C39",5,"\u7C42\u9AB8\u5B69\u6D77\u6C26\u4EA5\u5BB3\u9A87\u9163\u61A8\u90AF\u97E9\u542B\u6DB5\u5BD2\u51FD\u558A\u7F55\u7FF0\u64BC\u634D\u65F1\u61BE\u608D\u710A\u6C57\u6C49\u592F\u676D\u822A\u58D5\u568E\u8C6A\u6BEB\u90DD\u597D\u8017\u53F7\u6D69\u5475\u559D\u8377\u83CF\u6838\u79BE\u548C\u4F55\u5408\u76D2\u8C89\u9602\u6CB3\u6DB8\u8D6B\u8910\u9E64\u8D3A\u563F\u9ED1\u75D5\u5F88\u72E0\u6068\u54FC\u4EA8\u6A2A\u8861\u6052\u8F70\u54C4\u70D8\u8679\u9E3F\u6D2A\u5B8F\u5F18\u7EA2\u5589\u4FAF\u7334\u543C\u539A\u5019\u540E\u547C\u4E4E\u5FFD\u745A\u58F6\u846B\u80E1\u8774\u72D0\u7CCA\u6E56"],["bb40","\u7C43",9,"\u7C4E",36,"\u7C75",5,"\u7C7E",9],["bb80","\u7C88\u7C8A",6,"\u7C93\u7C94\u7C96\u7C99\u7C9A\u7C9B\u7CA0\u7CA1\u7CA3\u7CA6\u7CA7\u7CA8\u7CA9\u7CAB\u7CAC\u7CAD\u7CAF\u7CB0\u7CB4",4,"\u7CBA\u7CBB\u5F27\u864E\u552C\u62A4\u4E92\u6CAA\u6237\u82B1\u54D7\u534E\u733E\u6ED1\u753B\u5212\u5316\u8BDD\u69D0\u5F8A\u6000\u6DEE\u574F\u6B22\u73AF\u6853\u8FD8\u7F13\u6362\u60A3\u5524\u75EA\u8C62\u7115\u6DA3\u5BA6\u5E7B\u8352\u614C\u9EC4\u78FA\u8757\u7C27\u7687\u51F0\u60F6\u714C\u6643\u5E4C\u604D\u8C0E\u7070\u6325\u8F89\u5FBD\u6062\u86D4\u56DE\u6BC1\u6094\u6167\u5349\u60E0\u6666\u8D3F\u79FD\u4F1A\u70E9\u6C47\u8BB3\u8BF2\u7ED8\u8364\u660F\u5A5A\u9B42\u6D51\u6DF7\u8C41\u6D3B\u4F19\u706B\u83B7\u6216\u60D1\u970D\u8D27\u7978\u51FB\u573E\u57FA\u673A\u7578\u7A3D\u79EF\u7B95"],["bc40","\u7CBF\u7CC0\u7CC2\u7CC3\u7CC4\u7CC6\u7CC9\u7CCB\u7CCE",6,"\u7CD8\u7CDA\u7CDB\u7CDD\u7CDE\u7CE1",6,"\u7CE9",5,"\u7CF0",7,"\u7CF9\u7CFA\u7CFC",13,"\u7D0B",5],["bc80","\u7D11",14,"\u7D21\u7D23\u7D24\u7D25\u7D26\u7D28\u7D29\u7D2A\u7D2C\u7D2D\u7D2E\u7D30",6,"\u808C\u9965\u8FF9\u6FC0\u8BA5\u9E21\u59EC\u7EE9\u7F09\u5409\u6781\u68D8\u8F91\u7C4D\u96C6\u53CA\u6025\u75BE\u6C72\u5373\u5AC9\u7EA7\u6324\u51E0\u810A\u5DF1\u84DF\u6280\u5180\u5B63\u4F0E\u796D\u5242\u60B8\u6D4E\u5BC4\u5BC2\u8BA1\u8BB0\u65E2\u5FCC\u9645\u5993\u7EE7\u7EAA\u5609\u67B7\u5939\u4F73\u5BB6\u52A0\u835A\u988A\u8D3E\u7532\u94BE\u5047\u7A3C\u4EF7\u67B6\u9A7E\u5AC1\u6B7C\u76D1\u575A\u5C16\u7B3A\u95F4\u714E\u517C\u80A9\u8270\u5978\u7F04\u8327\u68C0\u67EC\u78B1\u7877\u62E3\u6361\u7B80\u4FED\u526A\u51CF\u8350\u69DB\u9274\u8DF5\u8D31\u89C1\u952E\u7BAD\u4EF6"],["bd40","\u7D37",54,"\u7D6F",7],["bd80","\u7D78",32,"\u5065\u8230\u5251\u996F\u6E10\u6E85\u6DA7\u5EFA\u50F5\u59DC\u5C06\u6D46\u6C5F\u7586\u848B\u6868\u5956\u8BB2\u5320\u9171\u964D\u8549\u6912\u7901\u7126\u80F6\u4EA4\u90CA\u6D47\u9A84\u5A07\u56BC\u6405\u94F0\u77EB\u4FA5\u811A\u72E1\u89D2\u997A\u7F34\u7EDE\u527F\u6559\u9175\u8F7F\u8F83\u53EB\u7A96\u63ED\u63A5\u7686\u79F8\u8857\u9636\u622A\u52AB\u8282\u6854\u6770\u6377\u776B\u7AED\u6D01\u7ED3\u89E3\u59D0\u6212\u85C9\u82A5\u754C\u501F\u4ECB\u75A5\u8BEB\u5C4A\u5DFE\u7B4B\u65A4\u91D1\u4ECA\u6D25\u895F\u7D27\u9526\u4EC5\u8C28\u8FDB\u9773\u664B\u7981\u8FD1\u70EC\u6D78"],["be40","\u7D99",12,"\u7DA7",6,"\u7DAF",42],["be80","\u7DDA",32,"\u5C3D\u52B2\u8346\u5162\u830E\u775B\u6676\u9CB8\u4EAC\u60CA\u7CBE\u7CB3\u7ECF\u4E95\u8B66\u666F\u9888\u9759\u5883\u656C\u955C\u5F84\u75C9\u9756\u7ADF\u7ADE\u51C0\u70AF\u7A98\u63EA\u7A76\u7EA0\u7396\u97ED\u4E45\u7078\u4E5D\u9152\u53A9\u6551\u65E7\u81FC\u8205\u548E\u5C31\u759A\u97A0\u62D8\u72D9\u75BD\u5C45\u9A79\u83CA\u5C40\u5480\u77E9\u4E3E\u6CAE\u805A\u62D2\u636E\u5DE8\u5177\u8DDD\u8E1E\u952F\u4FF1\u53E5\u60E7\u70AC\u5267\u6350\u9E43\u5A1F\u5026\u7737\u5377\u7EE2\u6485\u652B\u6289\u6398\u5014\u7235\u89C9\u51B3\u8BC0\u7EDD\u5747\u83CC\u94A7\u519B\u541B\u5CFB"],["bf40","\u7DFB",62],["bf80","\u7E3A\u7E3C",4,"\u7E42",4,"\u7E48",21,"\u4FCA\u7AE3\u6D5A\u90E1\u9A8F\u5580\u5496\u5361\u54AF\u5F00\u63E9\u6977\u51EF\u6168\u520A\u582A\u52D8\u574E\u780D\u770B\u5EB7\u6177\u7CE0\u625B\u6297\u4EA2\u7095\u8003\u62F7\u70E4\u9760\u5777\u82DB\u67EF\u68F5\u78D5\u9897\u79D1\u58F3\u54B3\u53EF\u6E34\u514B\u523B\u5BA2\u8BFE\u80AF\u5543\u57A6\u6073\u5751\u542D\u7A7A\u6050\u5B54\u63A7\u62A0\u53E3\u6263\u5BC7\u67AF\u54ED\u7A9F\u82E6\u9177\u5E93\u88E4\u5938\u57AE\u630E\u8DE8\u80EF\u5757\u7B77\u4FA9\u5FEB\u5BBD\u6B3E\u5321\u7B50\u72C2\u6846\u77FF\u7736\u65F7\u51B5\u4E8F\u76D4\u5CBF\u7AA5\u8475\u594E\u9B41\u5080"],["c040","\u7E5E",35,"\u7E83",23,"\u7E9C\u7E9D\u7E9E"],["c080","\u7EAE\u7EB4\u7EBB\u7EBC\u7ED6\u7EE4\u7EEC\u7EF9\u7F0A\u7F10\u7F1E\u7F37\u7F39\u7F3B",6,"\u7F43\u7F46",9,"\u7F52\u7F53\u9988\u6127\u6E83\u5764\u6606\u6346\u56F0\u62EC\u6269\u5ED3\u9614\u5783\u62C9\u5587\u8721\u814A\u8FA3\u5566\u83B1\u6765\u8D56\u84DD\u5A6A\u680F\u62E6\u7BEE\u9611\u5170\u6F9C\u8C30\u63FD\u89C8\u61D2\u7F06\u70C2\u6EE5\u7405\u6994\u72FC\u5ECA\u90CE\u6717\u6D6A\u635E\u52B3\u7262\u8001\u4F6C\u59E5\u916A\u70D9\u6D9D\u52D2\u4E50\u96F7\u956D\u857E\u78CA\u7D2F\u5121\u5792\u64C2\u808B\u7C7B\u6CEA\u68F1\u695E\u51B7\u5398\u68A8\u7281\u9ECE\u7BF1\u72F8\u79BB\u6F13\u7406\u674E\u91CC\u9CA4\u793C\u8389\u8354\u540F\u6817\u4E3D\u5389\u52B1\u783E\u5386\u5229\u5088\u4F8B\u4FD0"],["c140","\u7F56\u7F59\u7F5B\u7F5C\u7F5D\u7F5E\u7F60\u7F63",4,"\u7F6B\u7F6C\u7F6D\u7F6F\u7F70\u7F73\u7F75\u7F76\u7F77\u7F78\u7F7A\u7F7B\u7F7C\u7F7D\u7F7F\u7F80\u7F82",7,"\u7F8B\u7F8D\u7F8F",4,"\u7F95",4,"\u7F9B\u7F9C\u7FA0\u7FA2\u7FA3\u7FA5\u7FA6\u7FA8",6,"\u7FB1"],["c180","\u7FB3",4,"\u7FBA\u7FBB\u7FBE\u7FC0\u7FC2\u7FC3\u7FC4\u7FC6\u7FC7\u7FC8\u7FC9\u7FCB\u7FCD\u7FCF",4,"\u7FD6\u7FD7\u7FD9",5,"\u7FE2\u7FE3\u75E2\u7ACB\u7C92\u6CA5\u96B6\u529B\u7483\u54E9\u4FE9\u8054\u83B2\u8FDE\u9570\u5EC9\u601C\u6D9F\u5E18\u655B\u8138\u94FE\u604B\u70BC\u7EC3\u7CAE\u51C9\u6881\u7CB1\u826F\u4E24\u8F86\u91CF\u667E\u4EAE\u8C05\u64A9\u804A\u50DA\u7597\u71CE\u5BE5\u8FBD\u6F66\u4E86\u6482\u9563\u5ED6\u6599\u5217\u88C2\u70C8\u52A3\u730E\u7433\u6797\u78F7\u9716\u4E34\u90BB\u9CDE\u6DCB\u51DB\u8D41\u541D\u62CE\u73B2\u83F1\u96F6\u9F84\u94C3\u4F36\u7F9A\u51CC\u7075\u9675\u5CAD\u9886\u53E6\u4EE4\u6E9C\u7409\u69B4\u786B\u998F\u7559\u5218\u7624\u6D41\u67F3\u516D\u9F99\u804B\u5499\u7B3C\u7ABF"],["c240","\u7FE4\u7FE7\u7FE8\u7FEA\u7FEB\u7FEC\u7FED\u7FEF\u7FF2\u7FF4",6,"\u7FFD\u7FFE\u7FFF\u8002\u8007\u8008\u8009\u800A\u800E\u800F\u8011\u8013\u801A\u801B\u801D\u801E\u801F\u8021\u8023\u8024\u802B",5,"\u8032\u8034\u8039\u803A\u803C\u803E\u8040\u8041\u8044\u8045\u8047\u8048\u8049\u804E\u804F\u8050\u8051\u8053\u8055\u8056\u8057"],["c280","\u8059\u805B",13,"\u806B",5,"\u8072",11,"\u9686\u5784\u62E2\u9647\u697C\u5A04\u6402\u7BD3\u6F0F\u964B\u82A6\u5362\u9885\u5E90\u7089\u63B3\u5364\u864F\u9C81\u9E93\u788C\u9732\u8DEF\u8D42\u9E7F\u6F5E\u7984\u5F55\u9646\u622E\u9A74\u5415\u94DD\u4FA3\u65C5\u5C65\u5C61\u7F15\u8651\u6C2F\u5F8B\u7387\u6EE4\u7EFF\u5CE6\u631B\u5B6A\u6EE6\u5375\u4E71\u63A0\u7565\u62A1\u8F6E\u4F26\u4ED1\u6CA6\u7EB6\u8BBA\u841D\u87BA\u7F57\u903B\u9523\u7BA9\u9AA1\u88F8\u843D\u6D1B\u9A86\u7EDC\u5988\u9EBB\u739B\u7801\u8682\u9A6C\u9A82\u561B\u5417\u57CB\u4E70\u9EA6\u5356\u8FC8\u8109\u7792\u9992\u86EE\u6EE1\u8513\u66FC\u6162\u6F2B"],["c340","\u807E\u8081\u8082\u8085\u8088\u808A\u808D",5,"\u8094\u8095\u8097\u8099\u809E\u80A3\u80A6\u80A7\u80A8\u80AC\u80B0\u80B3\u80B5\u80B6\u80B8\u80B9\u80BB\u80C5\u80C7",4,"\u80CF",6,"\u80D8\u80DF\u80E0\u80E2\u80E3\u80E6\u80EE\u80F5\u80F7\u80F9\u80FB\u80FE\u80FF\u8100\u8101\u8103\u8104\u8105\u8107\u8108\u810B"],["c380","\u810C\u8115\u8117\u8119\u811B\u811C\u811D\u811F",12,"\u812D\u812E\u8130\u8133\u8134\u8135\u8137\u8139",4,"\u813F\u8C29\u8292\u832B\u76F2\u6C13\u5FD9\u83BD\u732B\u8305\u951A\u6BDB\u77DB\u94C6\u536F\u8302\u5192\u5E3D\u8C8C\u8D38\u4E48\u73AB\u679A\u6885\u9176\u9709\u7164\u6CA1\u7709\u5A92\u9541\u6BCF\u7F8E\u6627\u5BD0\u59B9\u5A9A\u95E8\u95F7\u4EEC\u840C\u8499\u6AAC\u76DF\u9530\u731B\u68A6\u5B5F\u772F\u919A\u9761\u7CDC\u8FF7\u8C1C\u5F25\u7C73\u79D8\u89C5\u6CCC\u871C\u5BC6\u5E42\u68C9\u7720\u7EF5\u5195\u514D\u52C9\u5A29\u7F05\u9762\u82D7\u63CF\u7784\u85D0\u79D2\u6E3A\u5E99\u5999\u8511\u706D\u6C11\u62BF\u76BF\u654F\u60AF\u95FD\u660E\u879F\u9E23\u94ED\u540D\u547D\u8C2C\u6478"],["c440","\u8140",5,"\u8147\u8149\u814D\u814E\u814F\u8152\u8156\u8157\u8158\u815B",4,"\u8161\u8162\u8163\u8164\u8166\u8168\u816A\u816B\u816C\u816F\u8172\u8173\u8175\u8176\u8177\u8178\u8181\u8183",4,"\u8189\u818B\u818C\u818D\u818E\u8190\u8192",5,"\u8199\u819A\u819E",4,"\u81A4\u81A5"],["c480","\u81A7\u81A9\u81AB",7,"\u81B4",5,"\u81BC\u81BD\u81BE\u81BF\u81C4\u81C5\u81C7\u81C8\u81C9\u81CB\u81CD",6,"\u6479\u8611\u6A21\u819C\u78E8\u6469\u9B54\u62B9\u672B\u83AB\u58A8\u9ED8\u6CAB\u6F20\u5BDE\u964C\u8C0B\u725F\u67D0\u62C7\u7261\u4EA9\u59C6\u6BCD\u5893\u66AE\u5E55\u52DF\u6155\u6728\u76EE\u7766\u7267\u7A46\u62FF\u54EA\u5450\u94A0\u90A3\u5A1C\u7EB3\u6C16\u4E43\u5976\u8010\u5948\u5357\u7537\u96BE\u56CA\u6320\u8111\u607C\u95F9\u6DD6\u5462\u9981\u5185\u5AE9\u80FD\u59AE\u9713\u502A\u6CE5\u5C3C\u62DF\u4F60\u533F\u817B\u9006\u6EBA\u852B\u62C8\u5E74\u78BE\u64B5\u637B\u5FF5\u5A18\u917F\u9E1F\u5C3F\u634F\u8042\u5B7D\u556E\u954A\u954D\u6D85\u60A8\u67E0\u72DE\u51DD\u5B81"],["c540","\u81D4",14,"\u81E4\u81E5\u81E6\u81E8\u81E9\u81EB\u81EE",4,"\u81F5",5,"\u81FD\u81FF\u8203\u8207",4,"\u820E\u820F\u8211\u8213\u8215",5,"\u821D\u8220\u8224\u8225\u8226\u8227\u8229\u822E\u8232\u823A\u823C\u823D\u823F"],["c580","\u8240\u8241\u8242\u8243\u8245\u8246\u8248\u824A\u824C\u824D\u824E\u8250",7,"\u8259\u825B\u825C\u825D\u825E\u8260",7,"\u8269\u62E7\u6CDE\u725B\u626D\u94AE\u7EBD\u8113\u6D53\u519C\u5F04\u5974\u52AA\u6012\u5973\u6696\u8650\u759F\u632A\u61E6\u7CEF\u8BFA\u54E6\u6B27\u9E25\u6BB4\u85D5\u5455\u5076\u6CA4\u556A\u8DB4\u722C\u5E15\u6015\u7436\u62CD\u6392\u724C\u5F98\u6E43\u6D3E\u6500\u6F58\u76D8\u78D0\u76FC\u7554\u5224\u53DB\u4E53\u5E9E\u65C1\u802A\u80D6\u629B\u5486\u5228\u70AE\u888D\u8DD1\u6CE1\u5478\u80DA\u57F9\u88F4\u8D54\u966A\u914D\u4F69\u6C9B\u55B7\u76C6\u7830\u62A8\u70F9\u6F8E\u5F6D\u84EC\u68DA\u787C\u7BF7\u81A8\u670B\u9E4F\u6367\u78B0\u576F\u7812\u9739\u6279\u62AB\u5288\u7435\u6BD7"],["c640","\u826A\u826B\u826C\u826D\u8271\u8275\u8276\u8277\u8278\u827B\u827C\u8280\u8281\u8283\u8285\u8286\u8287\u8289\u828C\u8290\u8293\u8294\u8295\u8296\u829A\u829B\u829E\u82A0\u82A2\u82A3\u82A7\u82B2\u82B5\u82B6\u82BA\u82BB\u82BC\u82BF\u82C0\u82C2\u82C3\u82C5\u82C6\u82C9\u82D0\u82D6\u82D9\u82DA\u82DD\u82E2\u82E7\u82E8\u82E9\u82EA\u82EC\u82ED\u82EE\u82F0\u82F2\u82F3\u82F5\u82F6\u82F8"],["c680","\u82FA\u82FC",4,"\u830A\u830B\u830D\u8310\u8312\u8313\u8316\u8318\u8319\u831D",9,"\u8329\u832A\u832E\u8330\u8332\u8337\u833B\u833D\u5564\u813E\u75B2\u76AE\u5339\u75DE\u50FB\u5C41\u8B6C\u7BC7\u504F\u7247\u9A97\u98D8\u6F02\u74E2\u7968\u6487\u77A5\u62FC\u9891\u8D2B\u54C1\u8058\u4E52\u576A\u82F9\u840D\u5E73\u51ED\u74F6\u8BC4\u5C4F\u5761\u6CFC\u9887\u5A46\u7834\u9B44\u8FEB\u7C95\u5256\u6251\u94FA\u4EC6\u8386\u8461\u83E9\u84B2\u57D4\u6734\u5703\u666E\u6D66\u8C31\u66DD\u7011\u671F\u6B3A\u6816\u621A\u59BB\u4E03\u51C4\u6F06\u67D2\u6C8F\u5176\u68CB\u5947\u6B67\u7566\u5D0E\u8110\u9F50\u65D7\u7948\u7941\u9A91\u8D77\u5C82\u4E5E\u4F01\u542F\u5951\u780C\u5668\u6C14\u8FC4\u5F03\u6C7D\u6CE3\u8BAB\u6390"],["c740","\u833E\u833F\u8341\u8342\u8344\u8345\u8348\u834A",4,"\u8353\u8355",4,"\u835D\u8362\u8370",6,"\u8379\u837A\u837E",6,"\u8387\u8388\u838A\u838B\u838C\u838D\u838F\u8390\u8391\u8394\u8395\u8396\u8397\u8399\u839A\u839D\u839F\u83A1",6,"\u83AC\u83AD\u83AE"],["c780","\u83AF\u83B5\u83BB\u83BE\u83BF\u83C2\u83C3\u83C4\u83C6\u83C8\u83C9\u83CB\u83CD\u83CE\u83D0\u83D1\u83D2\u83D3\u83D5\u83D7\u83D9\u83DA\u83DB\u83DE\u83E2\u83E3\u83E4\u83E6\u83E7\u83E8\u83EB\u83EC\u83ED\u6070\u6D3D\u7275\u6266\u948E\u94C5\u5343\u8FC1\u7B7E\u4EDF\u8C26\u4E7E\u9ED4\u94B1\u94B3\u524D\u6F5C\u9063\u6D45\u8C34\u5811\u5D4C\u6B20\u6B49\u67AA\u545B\u8154\u7F8C\u5899\u8537\u5F3A\u62A2\u6A47\u9539\u6572\u6084\u6865\u77A7\u4E54\u4FA8\u5DE7\u9798\u64AC\u7FD8\u5CED\u4FCF\u7A8D\u5207\u8304\u4E14\u602F\u7A83\u94A6\u4FB5\u4EB2\u79E6\u7434\u52E4\u82B9\u64D2\u79BD\u5BDD\u6C81\u9752\u8F7B\u6C22\u503E\u537F\u6E05\u64CE\u6674\u6C30\u60C5\u9877\u8BF7\u5E86\u743C\u7A77\u79CB\u4E18\u90B1\u7403\u6C42\u56DA\u914B\u6CC5\u8D8B\u533A\u86C6\u66F2\u8EAF\u5C48\u9A71\u6E20"],["c840","\u83EE\u83EF\u83F3",4,"\u83FA\u83FB\u83FC\u83FE\u83FF\u8400\u8402\u8405\u8407\u8408\u8409\u840A\u8410\u8412",5,"\u8419\u841A\u841B\u841E",5,"\u8429",7,"\u8432",5,"\u8439\u843A\u843B\u843E",7,"\u8447\u8448\u8449"],["c880","\u844A",6,"\u8452",4,"\u8458\u845D\u845E\u845F\u8460\u8462\u8464",4,"\u846A\u846E\u846F\u8470\u8472\u8474\u8477\u8479\u847B\u847C\u53D6\u5A36\u9F8B\u8DA3\u53BB\u5708\u98A7\u6743\u919B\u6CC9\u5168\u75CA\u62F3\u72AC\u5238\u529D\u7F3A\u7094\u7638\u5374\u9E4A\u69B7\u786E\u96C0\u88D9\u7FA4\u7136\u71C3\u5189\u67D3\u74E4\u58E4\u6518\u56B7\u8BA9\u9976\u6270\u7ED5\u60F9\u70ED\u58EC\u4EC1\u4EBA\u5FCD\u97E7\u4EFB\u8BA4\u5203\u598A\u7EAB\u6254\u4ECD\u65E5\u620E\u8338\u84C9\u8363\u878D\u7194\u6EB6\u5BB9\u7ED2\u5197\u63C9\u67D4\u8089\u8339\u8815\u5112\u5B7A\u5982\u8FB1\u4E73\u6C5D\u5165\u8925\u8F6F\u962E\u854A\u745E\u9510\u95F0\u6DA6\u82E5\u5F31\u6492\u6D12\u8428\u816E\u9CC3\u585E\u8D5B\u4E09\u53C1"],["c940","\u847D",4,"\u8483\u8484\u8485\u8486\u848A\u848D\u848F",7,"\u8498\u849A\u849B\u849D\u849E\u849F\u84A0\u84A2",12,"\u84B0\u84B1\u84B3\u84B5\u84B6\u84B7\u84BB\u84BC\u84BE\u84C0\u84C2\u84C3\u84C5\u84C6\u84C7\u84C8\u84CB\u84CC\u84CE\u84CF\u84D2\u84D4\u84D5\u84D7"],["c980","\u84D8",4,"\u84DE\u84E1\u84E2\u84E4\u84E7",4,"\u84ED\u84EE\u84EF\u84F1",10,"\u84FD\u84FE\u8500\u8501\u8502\u4F1E\u6563\u6851\u55D3\u4E27\u6414\u9A9A\u626B\u5AC2\u745F\u8272\u6DA9\u68EE\u50E7\u838E\u7802\u6740\u5239\u6C99\u7EB1\u50BB\u5565\u715E\u7B5B\u6652\u73CA\u82EB\u6749\u5C71\u5220\u717D\u886B\u95EA\u9655\u64C5\u8D61\u81B3\u5584\u6C55\u6247\u7F2E\u5892\u4F24\u5546\u8D4F\u664C\u4E0A\u5C1A\u88F3\u68A2\u634E\u7A0D\u70E7\u828D\u52FA\u97F6\u5C11\u54E8\u90B5\u7ECD\u5962\u8D4A\u86C7\u820C\u820D\u8D66\u6444\u5C04\u6151\u6D89\u793E\u8BBE\u7837\u7533\u547B\u4F38\u8EAB\u6DF1\u5A20\u7EC5\u795E\u6C88\u5BA1\u5A76\u751A\u80BE\u614E\u6E17\u58F0\u751F\u7525\u7272\u5347\u7EF3"],["ca40","\u8503",8,"\u850D\u850E\u850F\u8510\u8512\u8514\u8515\u8516\u8518\u8519\u851B\u851C\u851D\u851E\u8520\u8522",8,"\u852D",9,"\u853E",4,"\u8544\u8545\u8546\u8547\u854B",10],["ca80","\u8557\u8558\u855A\u855B\u855C\u855D\u855F",4,"\u8565\u8566\u8567\u8569",8,"\u8573\u8575\u8576\u8577\u8578\u857C\u857D\u857F\u8580\u8581\u7701\u76DB\u5269\u80DC\u5723\u5E08\u5931\u72EE\u65BD\u6E7F\u8BD7\u5C38\u8671\u5341\u77F3\u62FE\u65F6\u4EC0\u98DF\u8680\u5B9E\u8BC6\u53F2\u77E2\u4F7F\u5C4E\u9A76\u59CB\u5F0F\u793A\u58EB\u4E16\u67FF\u4E8B\u62ED\u8A93\u901D\u52BF\u662F\u55DC\u566C\u9002\u4ED5\u4F8D\u91CA\u9970\u6C0F\u5E02\u6043\u5BA4\u89C6\u8BD5\u6536\u624B\u9996\u5B88\u5BFF\u6388\u552E\u53D7\u7626\u517D\u852C\u67A2\u68B3\u6B8A\u6292\u8F93\u53D4\u8212\u6DD1\u758F\u4E66\u8D4E\u5B70\u719F\u85AF\u6691\u66D9\u7F72\u8700\u9ECD\u9F20\u5C5E\u672F\u8FF0\u6811\u675F\u620D\u7AD6\u5885\u5EB6\u6570\u6F31"],["cb40","\u8582\u8583\u8586\u8588",6,"\u8590",10,"\u859D",6,"\u85A5\u85A6\u85A7\u85A9\u85AB\u85AC\u85AD\u85B1",5,"\u85B8\u85BA",6,"\u85C2",6,"\u85CA",4,"\u85D1\u85D2"],["cb80","\u85D4\u85D6",5,"\u85DD",6,"\u85E5\u85E6\u85E7\u85E8\u85EA",14,"\u6055\u5237\u800D\u6454\u8870\u7529\u5E05\u6813\u62F4\u971C\u53CC\u723D\u8C01\u6C34\u7761\u7A0E\u542E\u77AC\u987A\u821C\u8BF4\u7855\u6714\u70C1\u65AF\u6495\u5636\u601D\u79C1\u53F8\u4E1D\u6B7B\u8086\u5BFA\u55E3\u56DB\u4F3A\u4F3C\u9972\u5DF3\u677E\u8038\u6002\u9882\u9001\u5B8B\u8BBC\u8BF5\u641C\u8258\u64DE\u55FD\u82CF\u9165\u4FD7\u7D20\u901F\u7C9F\u50F3\u5851\u6EAF\u5BBF\u8BC9\u8083\u9178\u849C\u7B97\u867D\u968B\u968F\u7EE5\u9AD3\u788E\u5C81\u7A57\u9042\u96A7\u795F\u5B59\u635F\u7B0B\u84D1\u68AD\u5506\u7F29\u7410\u7D22\u9501\u6240\u584C\u4ED6\u5B83\u5979\u5854"],["cc40","\u85F9\u85FA\u85FC\u85FD\u85FE\u8600",4,"\u8606",10,"\u8612\u8613\u8614\u8615\u8617",15,"\u8628\u862A",13,"\u8639\u863A\u863B\u863D\u863E\u863F\u8640"],["cc80","\u8641",11,"\u8652\u8653\u8655",4,"\u865B\u865C\u865D\u865F\u8660\u8661\u8663",7,"\u736D\u631E\u8E4B\u8E0F\u80CE\u82D4\u62AC\u53F0\u6CF0\u915E\u592A\u6001\u6C70\u574D\u644A\u8D2A\u762B\u6EE9\u575B\u6A80\u75F0\u6F6D\u8C2D\u8C08\u5766\u6BEF\u8892\u78B3\u63A2\u53F9\u70AD\u6C64\u5858\u642A\u5802\u68E0\u819B\u5510\u7CD6\u5018\u8EBA\u6DCC\u8D9F\u70EB\u638F\u6D9B\u6ED4\u7EE6\u8404\u6843\u9003\u6DD8\u9676\u8BA8\u5957\u7279\u85E4\u817E\u75BC\u8A8A\u68AF\u5254\u8E22\u9511\u63D0\u9898\u8E44\u557C\u4F53\u66FF\u568F\u60D5\u6D95\u5243\u5C49\u5929\u6DFB\u586B\u7530\u751C\u606C\u8214\u8146\u6311\u6761\u8FE2\u773A\u8DF3\u8D34\u94C1\u5E16\u5385\u542C\u70C3"],["cd40","\u866D\u866F\u8670\u8672",6,"\u8683",6,"\u868E",4,"\u8694\u8696",5,"\u869E",4,"\u86A5\u86A6\u86AB\u86AD\u86AE\u86B2\u86B3\u86B7\u86B8\u86B9\u86BB",4,"\u86C1\u86C2\u86C3\u86C5\u86C8\u86CC\u86CD\u86D2\u86D3\u86D5\u86D6\u86D7\u86DA\u86DC"],["cd80","\u86DD\u86E0\u86E1\u86E2\u86E3\u86E5\u86E6\u86E7\u86E8\u86EA\u86EB\u86EC\u86EF\u86F5\u86F6\u86F7\u86FA\u86FB\u86FC\u86FD\u86FF\u8701\u8704\u8705\u8706\u870B\u870C\u870E\u870F\u8710\u8711\u8714\u8716\u6C40\u5EF7\u505C\u4EAD\u5EAD\u633A\u8247\u901A\u6850\u916E\u77B3\u540C\u94DC\u5F64\u7AE5\u6876\u6345\u7B52\u7EDF\u75DB\u5077\u6295\u5934\u900F\u51F8\u79C3\u7A81\u56FE\u5F92\u9014\u6D82\u5C60\u571F\u5410\u5154\u6E4D\u56E2\u63A8\u9893\u817F\u8715\u892A\u9000\u541E\u5C6F\u81C0\u62D6\u6258\u8131\u9E35\u9640\u9A6E\u9A7C\u692D\u59A5\u62D3\u553E\u6316\u54C7\u86D9\u6D3C\u5A03\u74E6\u889C\u6B6A\u5916\u8C4C\u5F2F\u6E7E\u73A9\u987D\u4E38\u70F7\u5B8C\u7897\u633D\u665A\u7696\u60CB\u5B9B\u5A49\u4E07\u8155\u6C6A\u738B\u4EA1\u6789\u7F51\u5F80\u65FA\u671B\u5FD8\u5984\u5A01"],["ce40","\u8719\u871B\u871D\u871F\u8720\u8724\u8726\u8727\u8728\u872A\u872B\u872C\u872D\u872F\u8730\u8732\u8733\u8735\u8736\u8738\u8739\u873A\u873C\u873D\u8740",6,"\u874A\u874B\u874D\u874F\u8750\u8751\u8752\u8754\u8755\u8756\u8758\u875A",5,"\u8761\u8762\u8766",7,"\u876F\u8771\u8772\u8773\u8775"],["ce80","\u8777\u8778\u8779\u877A\u877F\u8780\u8781\u8784\u8786\u8787\u8789\u878A\u878C\u878E",4,"\u8794\u8795\u8796\u8798",6,"\u87A0",4,"\u5DCD\u5FAE\u5371\u97E6\u8FDD\u6845\u56F4\u552F\u60DF\u4E3A\u6F4D\u7EF4\u82C7\u840E\u59D4\u4F1F\u4F2A\u5C3E\u7EAC\u672A\u851A\u5473\u754F\u80C3\u5582\u9B4F\u4F4D\u6E2D\u8C13\u5C09\u6170\u536B\u761F\u6E29\u868A\u6587\u95FB\u7EB9\u543B\u7A33\u7D0A\u95EE\u55E1\u7FC1\u74EE\u631D\u8717\u6DA1\u7A9D\u6211\u65A1\u5367\u63E1\u6C83\u5DEB\u545C\u94A8\u4E4C\u6C61\u8BEC\u5C4B\u65E0\u829C\u68A7\u543E\u5434\u6BCB\u6B66\u4E94\u6342\u5348\u821E\u4F0D\u4FAE\u575E\u620A\u96FE\u6664\u7269\u52FF\u52A1\u609F\u8BEF\u6614\u7199\u6790\u897F\u7852\u77FD\u6670\u563B\u5438\u9521\u727A"],["cf40","\u87A5\u87A6\u87A7\u87A9\u87AA\u87AE\u87B0\u87B1\u87B2\u87B4\u87B6\u87B7\u87B8\u87B9\u87BB\u87BC\u87BE\u87BF\u87C1",4,"\u87C7\u87C8\u87C9\u87CC",4,"\u87D4",6,"\u87DC\u87DD\u87DE\u87DF\u87E1\u87E2\u87E3\u87E4\u87E6\u87E7\u87E8\u87E9\u87EB\u87EC\u87ED\u87EF",9],["cf80","\u87FA\u87FB\u87FC\u87FD\u87FF\u8800\u8801\u8802\u8804",5,"\u880B",7,"\u8814\u8817\u8818\u8819\u881A\u881C",4,"\u8823\u7A00\u606F\u5E0C\u6089\u819D\u5915\u60DC\u7184\u70EF\u6EAA\u6C50\u7280\u6A84\u88AD\u5E2D\u4E60\u5AB3\u559C\u94E3\u6D17\u7CFB\u9699\u620F\u7EC6\u778E\u867E\u5323\u971E\u8F96\u6687\u5CE1\u4FA0\u72ED\u4E0B\u53A6\u590F\u5413\u6380\u9528\u5148\u4ED9\u9C9C\u7EA4\u54B8\u8D24\u8854\u8237\u95F2\u6D8E\u5F26\u5ACC\u663E\u9669\u73B0\u732E\u53BF\u817A\u9985\u7FA1\u5BAA\u9677\u9650\u7EBF\u76F8\u53A2\u9576\u9999\u7BB1\u8944\u6E58\u4E61\u7FD4\u7965\u8BE6\u60F3\u54CD\u4EAB\u9879\u5DF7\u6A61\u50CF\u5411\u8C61\u8427\u785D\u9704\u524A\u54EE\u56A3\u9500\u6D88\u5BB5\u6DC6\u6653"],["d040","\u8824",13,"\u8833",5,"\u883A\u883B\u883D\u883E\u883F\u8841\u8842\u8843\u8846",5,"\u884E",5,"\u8855\u8856\u8858\u885A",6,"\u8866\u8867\u886A\u886D\u886F\u8871\u8873\u8874\u8875\u8876\u8878\u8879\u887A"],["d080","\u887B\u887C\u8880\u8883\u8886\u8887\u8889\u888A\u888C\u888E\u888F\u8890\u8891\u8893\u8894\u8895\u8897",4,"\u889D",4,"\u88A3\u88A5",5,"\u5C0F\u5B5D\u6821\u8096\u5578\u7B11\u6548\u6954\u4E9B\u6B47\u874E\u978B\u534F\u631F\u643A\u90AA\u659C\u80C1\u8C10\u5199\u68B0\u5378\u87F9\u61C8\u6CC4\u6CFB\u8C22\u5C51\u85AA\u82AF\u950C\u6B23\u8F9B\u65B0\u5FFB\u5FC3\u4FE1\u8845\u661F\u8165\u7329\u60FA\u5174\u5211\u578B\u5F62\u90A2\u884C\u9192\u5E78\u674F\u6027\u59D3\u5144\u51F6\u80F8\u5308\u6C79\u96C4\u718A\u4F11\u4FEE\u7F9E\u673D\u55C5\u9508\u79C0\u8896\u7EE3\u589F\u620C\u9700\u865A\u5618\u987B\u5F90\u8BB8\u84C4\u9157\u53D9\u65ED\u5E8F\u755C\u6064\u7D6E\u5A7F\u7EEA\u7EED\u8F69\u55A7\u5BA3\u60AC\u65CB\u7384"],["d140","\u88AC\u88AE\u88AF\u88B0\u88B2",4,"\u88B8\u88B9\u88BA\u88BB\u88BD\u88BE\u88BF\u88C0\u88C3\u88C4\u88C7\u88C8\u88CA\u88CB\u88CC\u88CD\u88CF\u88D0\u88D1\u88D3\u88D6\u88D7\u88DA",4,"\u88E0\u88E1\u88E6\u88E7\u88E9",6,"\u88F2\u88F5\u88F6\u88F7\u88FA\u88FB\u88FD\u88FF\u8900\u8901\u8903",5],["d180","\u8909\u890B",4,"\u8911\u8914",4,"\u891C",4,"\u8922\u8923\u8924\u8926\u8927\u8928\u8929\u892C\u892D\u892E\u892F\u8931\u8932\u8933\u8935\u8937\u9009\u7663\u7729\u7EDA\u9774\u859B\u5B66\u7A74\u96EA\u8840\u52CB\u718F\u5FAA\u65EC\u8BE2\u5BFB\u9A6F\u5DE1\u6B89\u6C5B\u8BAD\u8BAF\u900A\u8FC5\u538B\u62BC\u9E26\u9E2D\u5440\u4E2B\u82BD\u7259\u869C\u5D16\u8859\u6DAF\u96C5\u54D1\u4E9A\u8BB6\u7109\u54BD\u9609\u70DF\u6DF9\u76D0\u4E25\u7814\u8712\u5CA9\u5EF6\u8A00\u989C\u960E\u708E\u6CBF\u5944\u63A9\u773C\u884D\u6F14\u8273\u5830\u71D5\u538C\u781A\u96C1\u5501\u5F66\u7130\u5BB4\u8C1A\u9A8C\u6B83\u592E\u9E2F\u79E7\u6768\u626C\u4F6F\u75A1\u7F8A\u6D0B\u9633\u6C27\u4EF0\u75D2\u517B\u6837\u6F3E\u9080\u8170\u5996\u7476"],["d240","\u8938",8,"\u8942\u8943\u8945",24,"\u8960",5,"\u8967",19,"\u897C"],["d280","\u897D\u897E\u8980\u8982\u8984\u8985\u8987",26,"\u6447\u5C27\u9065\u7A91\u8C23\u59DA\u54AC\u8200\u836F\u8981\u8000\u6930\u564E\u8036\u7237\u91CE\u51B6\u4E5F\u9875\u6396\u4E1A\u53F6\u66F3\u814B\u591C\u6DB2\u4E00\u58F9\u533B\u63D6\u94F1\u4F9D\u4F0A\u8863\u9890\u5937\u9057\u79FB\u4EEA\u80F0\u7591\u6C82\u5B9C\u59E8\u5F5D\u6905\u8681\u501A\u5DF2\u4E59\u77E3\u4EE5\u827A\u6291\u6613\u9091\u5C79\u4EBF\u5F79\u81C6\u9038\u8084\u75AB\u4EA6\u88D4\u610F\u6BC5\u5FC6\u4E49\u76CA\u6EA2\u8BE3\u8BAE\u8C0A\u8BD1\u5F02\u7FFC\u7FCC\u7ECE\u8335\u836B\u56E0\u6BB7\u97F3\u9634\u59FB\u541F\u94F6\u6DEB\u5BC5\u996E\u5C39\u5F15\u9690"],["d340","\u89A2",30,"\u89C3\u89CD\u89D3\u89D4\u89D5\u89D7\u89D8\u89D9\u89DB\u89DD\u89DF\u89E0\u89E1\u89E2\u89E4\u89E7\u89E8\u89E9\u89EA\u89EC\u89ED\u89EE\u89F0\u89F1\u89F2\u89F4",6],["d380","\u89FB",4,"\u8A01",5,"\u8A08",21,"\u5370\u82F1\u6A31\u5A74\u9E70\u5E94\u7F28\u83B9\u8424\u8425\u8367\u8747\u8FCE\u8D62\u76C8\u5F71\u9896\u786C\u6620\u54DF\u62E5\u4F63\u81C3\u75C8\u5EB8\u96CD\u8E0A\u86F9\u548F\u6CF3\u6D8C\u6C38\u607F\u52C7\u7528\u5E7D\u4F18\u60A0\u5FE7\u5C24\u7531\u90AE\u94C0\u72B9\u6CB9\u6E38\u9149\u6709\u53CB\u53F3\u4F51\u91C9\u8BF1\u53C8\u5E7C\u8FC2\u6DE4\u4E8E\u76C2\u6986\u865E\u611A\u8206\u4F59\u4FDE\u903E\u9C7C\u6109\u6E1D\u6E14\u9685\u4E88\u5A31\u96E8\u4E0E\u5C7F\u79B9\u5B87\u8BED\u7FBD\u7389\u57DF\u828B\u90C1\u5401\u9047\u55BB\u5CEA\u5FA1\u6108\u6B32\u72F1\u80B2\u8A89"],["d440","\u8A1E",31,"\u8A3F",8,"\u8A49",21],["d480","\u8A5F",25,"\u8A7A",6,"\u6D74\u5BD3\u88D5\u9884\u8C6B\u9A6D\u9E33\u6E0A\u51A4\u5143\u57A3\u8881\u539F\u63F4\u8F95\u56ED\u5458\u5706\u733F\u6E90\u7F18\u8FDC\u82D1\u613F\u6028\u9662\u66F0\u7EA6\u8D8A\u8DC3\u94A5\u5CB3\u7CA4\u6708\u60A6\u9605\u8018\u4E91\u90E7\u5300\u9668\u5141\u8FD0\u8574\u915D\u6655\u97F5\u5B55\u531D\u7838\u6742\u683D\u54C9\u707E\u5BB0\u8F7D\u518D\u5728\u54B1\u6512\u6682\u8D5E\u8D43\u810F\u846C\u906D\u7CDF\u51FF\u85FB\u67A3\u65E9\u6FA1\u86A4\u8E81\u566A\u9020\u7682\u7076\u71E5\u8D23\u62E9\u5219\u6CFD\u8D3C\u600E\u589E\u618E\u66FE\u8D60\u624E\u55B3\u6E23\u672D\u8F67"],["d540","\u8A81",7,"\u8A8B",7,"\u8A94",46],["d580","\u8AC3",32,"\u94E1\u95F8\u7728\u6805\u69A8\u548B\u4E4D\u70B8\u8BC8\u6458\u658B\u5B85\u7A84\u503A\u5BE8\u77BB\u6BE1\u8A79\u7C98\u6CBE\u76CF\u65A9\u8F97\u5D2D\u5C55\u8638\u6808\u5360\u6218\u7AD9\u6E5B\u7EFD\u6A1F\u7AE0\u5F70\u6F33\u5F20\u638C\u6DA8\u6756\u4E08\u5E10\u8D26\u4ED7\u80C0\u7634\u969C\u62DB\u662D\u627E\u6CBC\u8D75\u7167\u7F69\u5146\u8087\u53EC\u906E\u6298\u54F2\u86F0\u8F99\u8005\u9517\u8517\u8FD9\u6D59\u73CD\u659F\u771F\u7504\u7827\u81FB\u8D1E\u9488\u4FA6\u6795\u75B9\u8BCA\u9707\u632F\u9547\u9635\u84B8\u6323\u7741\u5F81\u72F0\u4E89\u6014\u6574\u62EF\u6B63\u653F"],["d640","\u8AE4",34,"\u8B08",27],["d680","\u8B24\u8B25\u8B27",30,"\u5E27\u75C7\u90D1\u8BC1\u829D\u679D\u652F\u5431\u8718\u77E5\u80A2\u8102\u6C41\u4E4B\u7EC7\u804C\u76F4\u690D\u6B96\u6267\u503C\u4F84\u5740\u6307\u6B62\u8DBE\u53EA\u65E8\u7EB8\u5FD7\u631A\u63B7\u81F3\u81F4\u7F6E\u5E1C\u5CD9\u5236\u667A\u79E9\u7A1A\u8D28\u7099\u75D4\u6EDE\u6CBB\u7A92\u4E2D\u76C5\u5FE0\u949F\u8877\u7EC8\u79CD\u80BF\u91CD\u4EF2\u4F17\u821F\u5468\u5DDE\u6D32\u8BCC\u7CA5\u8F74\u8098\u5E1A\u5492\u76B1\u5B99\u663C\u9AA4\u73E0\u682A\u86DB\u6731\u732A\u8BF8\u8BDB\u9010\u7AF9\u70DB\u716E\u62C4\u77A9\u5631\u4E3B\u8457\u67F1\u52A9\u86C0\u8D2E\u94F8\u7B51"],["d740","\u8B46",31,"\u8B67",4,"\u8B6D",25],["d780","\u8B87",24,"\u8BAC\u8BB1\u8BBB\u8BC7\u8BD0\u8BEA\u8C09\u8C1E\u4F4F\u6CE8\u795D\u9A7B\u6293\u722A\u62FD\u4E13\u7816\u8F6C\u64B0\u8D5A\u7BC6\u6869\u5E84\u88C5\u5986\u649E\u58EE\u72B6\u690E\u9525\u8FFD\u8D58\u5760\u7F00\u8C06\u51C6\u6349\u62D9\u5353\u684C\u7422\u8301\u914C\u5544\u7740\u707C\u6D4A\u5179\u54A8\u8D44\u59FF\u6ECB\u6DC4\u5B5C\u7D2B\u4ED4\u7C7D\u6ED3\u5B50\u81EA\u6E0D\u5B57\u9B03\u68D5\u8E2A\u5B97\u7EFC\u603B\u7EB5\u90B9\u8D70\u594F\u63CD\u79DF\u8DB3\u5352\u65CF\u7956\u8BC5\u963B\u7EC4\u94BB\u7E82\u5634\u9189\u6700\u7F6A\u5C0A\u9075\u6628\u5DE6\u4F50\u67DE\u505A\u4F5C\u5750\u5EA7"],["d840","\u8C38",8,"\u8C42\u8C43\u8C44\u8C45\u8C48\u8C4A\u8C4B\u8C4D",7,"\u8C56\u8C57\u8C58\u8C59\u8C5B",5,"\u8C63",6,"\u8C6C",6,"\u8C74\u8C75\u8C76\u8C77\u8C7B",6,"\u8C83\u8C84\u8C86\u8C87"],["d880","\u8C88\u8C8B\u8C8D",6,"\u8C95\u8C96\u8C97\u8C99",20,"\u4E8D\u4E0C\u5140\u4E10\u5EFF\u5345\u4E15\u4E98\u4E1E\u9B32\u5B6C\u5669\u4E28\u79BA\u4E3F\u5315\u4E47\u592D\u723B\u536E\u6C10\u56DF\u80E4\u9997\u6BD3\u777E\u9F17\u4E36\u4E9F\u9F10\u4E5C\u4E69\u4E93\u8288\u5B5B\u556C\u560F\u4EC4\u538D\u539D\u53A3\u53A5\u53AE\u9765\u8D5D\u531A\u53F5\u5326\u532E\u533E\u8D5C\u5366\u5363\u5202\u5208\u520E\u522D\u5233\u523F\u5240\u524C\u525E\u5261\u525C\u84AF\u527D\u5282\u5281\u5290\u5293\u5182\u7F54\u4EBB\u4EC3\u4EC9\u4EC2\u4EE8\u4EE1\u4EEB\u4EDE\u4F1B\u4EF3\u4F22\u4F64\u4EF5\u4F25\u4F27\u4F09\u4F2B\u4F5E\u4F67\u6538\u4F5A\u4F5D"],["d940","\u8CAE",62],["d980","\u8CED",32,"\u4F5F\u4F57\u4F32\u4F3D\u4F76\u4F74\u4F91\u4F89\u4F83\u4F8F\u4F7E\u4F7B\u4FAA\u4F7C\u4FAC\u4F94\u4FE6\u4FE8\u4FEA\u4FC5\u4FDA\u4FE3\u4FDC\u4FD1\u4FDF\u4FF8\u5029\u504C\u4FF3\u502C\u500F\u502E\u502D\u4FFE\u501C\u500C\u5025\u5028\u507E\u5043\u5055\u5048\u504E\u506C\u507B\u50A5\u50A7\u50A9\u50BA\u50D6\u5106\u50ED\u50EC\u50E6\u50EE\u5107\u510B\u4EDD\u6C3D\u4F58\u4F65\u4FCE\u9FA0\u6C46\u7C74\u516E\u5DFD\u9EC9\u9998\u5181\u5914\u52F9\u530D\u8A07\u5310\u51EB\u5919\u5155\u4EA0\u5156\u4EB3\u886E\u88A4\u4EB5\u8114\u88D2\u7980\u5B34\u8803\u7FB8\u51AB\u51B1\u51BD\u51BC"],["da40","\u8D0E",14,"\u8D20\u8D51\u8D52\u8D57\u8D5F\u8D65\u8D68\u8D69\u8D6A\u8D6C\u8D6E\u8D6F\u8D71\u8D72\u8D78",8,"\u8D82\u8D83\u8D86\u8D87\u8D88\u8D89\u8D8C",4,"\u8D92\u8D93\u8D95",9,"\u8DA0\u8DA1"],["da80","\u8DA2\u8DA4",12,"\u8DB2\u8DB6\u8DB7\u8DB9\u8DBB\u8DBD\u8DC0\u8DC1\u8DC2\u8DC5\u8DC7\u8DC8\u8DC9\u8DCA\u8DCD\u8DD0\u8DD2\u8DD3\u8DD4\u51C7\u5196\u51A2\u51A5\u8BA0\u8BA6\u8BA7\u8BAA\u8BB4\u8BB5\u8BB7\u8BC2\u8BC3\u8BCB\u8BCF\u8BCE\u8BD2\u8BD3\u8BD4\u8BD6\u8BD8\u8BD9\u8BDC\u8BDF\u8BE0\u8BE4\u8BE8\u8BE9\u8BEE\u8BF0\u8BF3\u8BF6\u8BF9\u8BFC\u8BFF\u8C00\u8C02\u8C04\u8C07\u8C0C\u8C0F\u8C11\u8C12\u8C14\u8C15\u8C16\u8C19\u8C1B\u8C18\u8C1D\u8C1F\u8C20\u8C21\u8C25\u8C27\u8C2A\u8C2B\u8C2E\u8C2F\u8C32\u8C33\u8C35\u8C36\u5369\u537A\u961D\u9622\u9621\u9631\u962A\u963D\u963C\u9642\u9649\u9654\u965F\u9667\u966C\u9672\u9674\u9688\u968D\u9697\u96B0\u9097\u909B\u909D\u9099\u90AC\u90A1\u90B4\u90B3\u90B6\u90BA"],["db40","\u8DD5\u8DD8\u8DD9\u8DDC\u8DE0\u8DE1\u8DE2\u8DE5\u8DE6\u8DE7\u8DE9\u8DED\u8DEE\u8DF0\u8DF1\u8DF2\u8DF4\u8DF6\u8DFC\u8DFE",6,"\u8E06\u8E07\u8E08\u8E0B\u8E0D\u8E0E\u8E10\u8E11\u8E12\u8E13\u8E15",7,"\u8E20\u8E21\u8E24",4,"\u8E2B\u8E2D\u8E30\u8E32\u8E33\u8E34\u8E36\u8E37\u8E38\u8E3B\u8E3C\u8E3E"],["db80","\u8E3F\u8E43\u8E45\u8E46\u8E4C",4,"\u8E53",5,"\u8E5A",11,"\u8E67\u8E68\u8E6A\u8E6B\u8E6E\u8E71\u90B8\u90B0\u90CF\u90C5\u90BE\u90D0\u90C4\u90C7\u90D3\u90E6\u90E2\u90DC\u90D7\u90DB\u90EB\u90EF\u90FE\u9104\u9122\u911E\u9123\u9131\u912F\u9139\u9143\u9146\u520D\u5942\u52A2\u52AC\u52AD\u52BE\u54FF\u52D0\u52D6\u52F0\u53DF\u71EE\u77CD\u5EF4\u51F5\u51FC\u9B2F\u53B6\u5F01\u755A\u5DEF\u574C\u57A9\u57A1\u587E\u58BC\u58C5\u58D1\u5729\u572C\u572A\u5733\u5739\u572E\u572F\u575C\u573B\u5742\u5769\u5785\u576B\u5786\u577C\u577B\u5768\u576D\u5776\u5773\u57AD\u57A4\u578C\u57B2\u57CF\u57A7\u57B4\u5793\u57A0\u57D5\u57D8\u57DA\u57D9\u57D2\u57B8\u57F4\u57EF\u57F8\u57E4\u57DD"],["dc40","\u8E73\u8E75\u8E77",4,"\u8E7D\u8E7E\u8E80\u8E82\u8E83\u8E84\u8E86\u8E88",6,"\u8E91\u8E92\u8E93\u8E95",6,"\u8E9D\u8E9F",11,"\u8EAD\u8EAE\u8EB0\u8EB1\u8EB3",6,"\u8EBB",7],["dc80","\u8EC3",10,"\u8ECF",21,"\u580B\u580D\u57FD\u57ED\u5800\u581E\u5819\u5844\u5820\u5865\u586C\u5881\u5889\u589A\u5880\u99A8\u9F19\u61FF\u8279\u827D\u827F\u828F\u828A\u82A8\u8284\u828E\u8291\u8297\u8299\u82AB\u82B8\u82BE\u82B0\u82C8\u82CA\u82E3\u8298\u82B7\u82AE\u82CB\u82CC\u82C1\u82A9\u82B4\u82A1\u82AA\u829F\u82C4\u82CE\u82A4\u82E1\u8309\u82F7\u82E4\u830F\u8307\u82DC\u82F4\u82D2\u82D8\u830C\u82FB\u82D3\u8311\u831A\u8306\u8314\u8315\u82E0\u82D5\u831C\u8351\u835B\u835C\u8308\u8392\u833C\u8334\u8331\u839B\u835E\u832F\u834F\u8347\u8343\u835F\u8340\u8317\u8360\u832D\u833A\u8333\u8366\u8365"],["dd40","\u8EE5",62],["dd80","\u8F24",32,"\u8368\u831B\u8369\u836C\u836A\u836D\u836E\u83B0\u8378\u83B3\u83B4\u83A0\u83AA\u8393\u839C\u8385\u837C\u83B6\u83A9\u837D\u83B8\u837B\u8398\u839E\u83A8\u83BA\u83BC\u83C1\u8401\u83E5\u83D8\u5807\u8418\u840B\u83DD\u83FD\u83D6\u841C\u8438\u8411\u8406\u83D4\u83DF\u840F\u8403\u83F8\u83F9\u83EA\u83C5\u83C0\u8426\u83F0\u83E1\u845C\u8451\u845A\u8459\u8473\u8487\u8488\u847A\u8489\u8478\u843C\u8446\u8469\u8476\u848C\u848E\u8431\u846D\u84C1\u84CD\u84D0\u84E6\u84BD\u84D3\u84CA\u84BF\u84BA\u84E0\u84A1\u84B9\u84B4\u8497\u84E5\u84E3\u850C\u750D\u8538\u84F0\u8539\u851F\u853A"],["de40","\u8F45",32,"\u8F6A\u8F80\u8F8C\u8F92\u8F9D\u8FA0\u8FA1\u8FA2\u8FA4\u8FA5\u8FA6\u8FA7\u8FAA\u8FAC\u8FAD\u8FAE\u8FAF\u8FB2\u8FB3\u8FB4\u8FB5\u8FB7\u8FB8\u8FBA\u8FBB\u8FBC\u8FBF\u8FC0\u8FC3\u8FC6"],["de80","\u8FC9",4,"\u8FCF\u8FD2\u8FD6\u8FD7\u8FDA\u8FE0\u8FE1\u8FE3\u8FE7\u8FEC\u8FEF\u8FF1\u8FF2\u8FF4\u8FF5\u8FF6\u8FFA\u8FFB\u8FFC\u8FFE\u8FFF\u9007\u9008\u900C\u900E\u9013\u9015\u9018\u8556\u853B\u84FF\u84FC\u8559\u8548\u8568\u8564\u855E\u857A\u77A2\u8543\u8572\u857B\u85A4\u85A8\u8587\u858F\u8579\u85AE\u859C\u8585\u85B9\u85B7\u85B0\u85D3\u85C1\u85DC\u85FF\u8627\u8605\u8629\u8616\u863C\u5EFE\u5F08\u593C\u5941\u8037\u5955\u595A\u5958\u530F\u5C22\u5C25\u5C2C\u5C34\u624C\u626A\u629F\u62BB\u62CA\u62DA\u62D7\u62EE\u6322\u62F6\u6339\u634B\u6343\u63AD\u63F6\u6371\u637A\u638E\u63B4\u636D\u63AC\u638A\u6369\u63AE\u63BC\u63F2\u63F8\u63E0\u63FF\u63C4\u63DE\u63CE\u6452\u63C6\u63BE\u6445\u6441\u640B\u641B\u6420\u640C\u6426\u6421\u645E\u6484\u646D\u6496"],["df40","\u9019\u901C\u9023\u9024\u9025\u9027",5,"\u9030",4,"\u9037\u9039\u903A\u903D\u903F\u9040\u9043\u9045\u9046\u9048",4,"\u904E\u9054\u9055\u9056\u9059\u905A\u905C",5,"\u9064\u9066\u9067\u9069\u906A\u906B\u906C\u906F",4,"\u9076",6,"\u907E\u9081"],["df80","\u9084\u9085\u9086\u9087\u9089\u908A\u908C",4,"\u9092\u9094\u9096\u9098\u909A\u909C\u909E\u909F\u90A0\u90A4\u90A5\u90A7\u90A8\u90A9\u90AB\u90AD\u90B2\u90B7\u90BC\u90BD\u90BF\u90C0\u647A\u64B7\u64B8\u6499\u64BA\u64C0\u64D0\u64D7\u64E4\u64E2\u6509\u6525\u652E\u5F0B\u5FD2\u7519\u5F11\u535F\u53F1\u53FD\u53E9\u53E8\u53FB\u5412\u5416\u5406\u544B\u5452\u5453\u5454\u5456\u5443\u5421\u5457\u5459\u5423\u5432\u5482\u5494\u5477\u5471\u5464\u549A\u549B\u5484\u5476\u5466\u549D\u54D0\u54AD\u54C2\u54B4\u54D2\u54A7\u54A6\u54D3\u54D4\u5472\u54A3\u54D5\u54BB\u54BF\u54CC\u54D9\u54DA\u54DC\u54A9\u54AA\u54A4\u54DD\u54CF\u54DE\u551B\u54E7\u5520\u54FD\u5514\u54F3\u5522\u5523\u550F\u5511\u5527\u552A\u5567\u558F\u55B5\u5549\u556D\u5541\u5555\u553F\u5550\u553C"],["e040","\u90C2\u90C3\u90C6\u90C8\u90C9\u90CB\u90CC\u90CD\u90D2\u90D4\u90D5\u90D6\u90D8\u90D9\u90DA\u90DE\u90DF\u90E0\u90E3\u90E4\u90E5\u90E9\u90EA\u90EC\u90EE\u90F0\u90F1\u90F2\u90F3\u90F5\u90F6\u90F7\u90F9\u90FA\u90FB\u90FC\u90FF\u9100\u9101\u9103\u9105",19,"\u911A\u911B\u911C"],["e080","\u911D\u911F\u9120\u9121\u9124",10,"\u9130\u9132",6,"\u913A",8,"\u9144\u5537\u5556\u5575\u5576\u5577\u5533\u5530\u555C\u558B\u55D2\u5583\u55B1\u55B9\u5588\u5581\u559F\u557E\u55D6\u5591\u557B\u55DF\u55BD\u55BE\u5594\u5599\u55EA\u55F7\u55C9\u561F\u55D1\u55EB\u55EC\u55D4\u55E6\u55DD\u55C4\u55EF\u55E5\u55F2\u55F3\u55CC\u55CD\u55E8\u55F5\u55E4\u8F94\u561E\u5608\u560C\u5601\u5624\u5623\u55FE\u5600\u5627\u562D\u5658\u5639\u5657\u562C\u564D\u5662\u5659\u565C\u564C\u5654\u5686\u5664\u5671\u566B\u567B\u567C\u5685\u5693\u56AF\u56D4\u56D7\u56DD\u56E1\u56F5\u56EB\u56F9\u56FF\u5704\u570A\u5709\u571C\u5E0F\u5E19\u5E14\u5E11\u5E31\u5E3B\u5E3C"],["e140","\u9145\u9147\u9148\u9151\u9153\u9154\u9155\u9156\u9158\u9159\u915B\u915C\u915F\u9160\u9166\u9167\u9168\u916B\u916D\u9173\u917A\u917B\u917C\u9180",4,"\u9186\u9188\u918A\u918E\u918F\u9193",6,"\u919C",5,"\u91A4",5,"\u91AB\u91AC\u91B0\u91B1\u91B2\u91B3\u91B6\u91B7\u91B8\u91B9\u91BB"],["e180","\u91BC",10,"\u91C8\u91CB\u91D0\u91D2",9,"\u91DD",8,"\u5E37\u5E44\u5E54\u5E5B\u5E5E\u5E61\u5C8C\u5C7A\u5C8D\u5C90\u5C96\u5C88\u5C98\u5C99\u5C91\u5C9A\u5C9C\u5CB5\u5CA2\u5CBD\u5CAC\u5CAB\u5CB1\u5CA3\u5CC1\u5CB7\u5CC4\u5CD2\u5CE4\u5CCB\u5CE5\u5D02\u5D03\u5D27\u5D26\u5D2E\u5D24\u5D1E\u5D06\u5D1B\u5D58\u5D3E\u5D34\u5D3D\u5D6C\u5D5B\u5D6F\u5D5D\u5D6B\u5D4B\u5D4A\u5D69\u5D74\u5D82\u5D99\u5D9D\u8C73\u5DB7\u5DC5\u5F73\u5F77\u5F82\u5F87\u5F89\u5F8C\u5F95\u5F99\u5F9C\u5FA8\u5FAD\u5FB5\u5FBC\u8862\u5F61\u72AD\u72B0\u72B4\u72B7\u72B8\u72C3\u72C1\u72CE\u72CD\u72D2\u72E8\u72EF\u72E9\u72F2\u72F4\u72F7\u7301\u72F3\u7303\u72FA"],["e240","\u91E6",62],["e280","\u9225",32,"\u72FB\u7317\u7313\u7321\u730A\u731E\u731D\u7315\u7322\u7339\u7325\u732C\u7338\u7331\u7350\u734D\u7357\u7360\u736C\u736F\u737E\u821B\u5925\u98E7\u5924\u5902\u9963\u9967",5,"\u9974\u9977\u997D\u9980\u9984\u9987\u998A\u998D\u9990\u9991\u9993\u9994\u9995\u5E80\u5E91\u5E8B\u5E96\u5EA5\u5EA0\u5EB9\u5EB5\u5EBE\u5EB3\u8D53\u5ED2\u5ED1\u5EDB\u5EE8\u5EEA\u81BA\u5FC4\u5FC9\u5FD6\u5FCF\u6003\u5FEE\u6004\u5FE1\u5FE4\u5FFE\u6005\u6006\u5FEA\u5FED\u5FF8\u6019\u6035\u6026\u601B\u600F\u600D\u6029\u602B\u600A\u603F\u6021\u6078\u6079\u607B\u607A\u6042"],["e340","\u9246",45,"\u9275",16],["e380","\u9286",7,"\u928F",24,"\u606A\u607D\u6096\u609A\u60AD\u609D\u6083\u6092\u608C\u609B\u60EC\u60BB\u60B1\u60DD\u60D8\u60C6\u60DA\u60B4\u6120\u6126\u6115\u6123\u60F4\u6100\u610E\u612B\u614A\u6175\u61AC\u6194\u61A7\u61B7\u61D4\u61F5\u5FDD\u96B3\u95E9\u95EB\u95F1\u95F3\u95F5\u95F6\u95FC\u95FE\u9603\u9604\u9606\u9608\u960A\u960B\u960C\u960D\u960F\u9612\u9615\u9616\u9617\u9619\u961A\u4E2C\u723F\u6215\u6C35\u6C54\u6C5C\u6C4A\u6CA3\u6C85\u6C90\u6C94\u6C8C\u6C68\u6C69\u6C74\u6C76\u6C86\u6CA9\u6CD0\u6CD4\u6CAD\u6CF7\u6CF8\u6CF1\u6CD7\u6CB2\u6CE0\u6CD6\u6CFA\u6CEB\u6CEE\u6CB1\u6CD3\u6CEF\u6CFE"],["e440","\u92A8",5,"\u92AF",24,"\u92C9",31],["e480","\u92E9",32,"\u6D39\u6D27\u6D0C\u6D43\u6D48\u6D07\u6D04\u6D19\u6D0E\u6D2B\u6D4D\u6D2E\u6D35\u6D1A\u6D4F\u6D52\u6D54\u6D33\u6D91\u6D6F\u6D9E\u6DA0\u6D5E\u6D93\u6D94\u6D5C\u6D60\u6D7C\u6D63\u6E1A\u6DC7\u6DC5\u6DDE\u6E0E\u6DBF\u6DE0\u6E11\u6DE6\u6DDD\u6DD9\u6E16\u6DAB\u6E0C\u6DAE\u6E2B\u6E6E\u6E4E\u6E6B\u6EB2\u6E5F\u6E86\u6E53\u6E54\u6E32\u6E25\u6E44\u6EDF\u6EB1\u6E98\u6EE0\u6F2D\u6EE2\u6EA5\u6EA7\u6EBD\u6EBB\u6EB7\u6ED7\u6EB4\u6ECF\u6E8F\u6EC2\u6E9F\u6F62\u6F46\u6F47\u6F24\u6F15\u6EF9\u6F2F\u6F36\u6F4B\u6F74\u6F2A\u6F09\u6F29\u6F89\u6F8D\u6F8C\u6F78\u6F72\u6F7C\u6F7A\u6FD1"],["e540","\u930A",51,"\u933F",10],["e580","\u934A",31,"\u936B\u6FC9\u6FA7\u6FB9\u6FB6\u6FC2\u6FE1\u6FEE\u6FDE\u6FE0\u6FEF\u701A\u7023\u701B\u7039\u7035\u704F\u705E\u5B80\u5B84\u5B95\u5B93\u5BA5\u5BB8\u752F\u9A9E\u6434\u5BE4\u5BEE\u8930\u5BF0\u8E47\u8B07\u8FB6\u8FD3\u8FD5\u8FE5\u8FEE\u8FE4\u8FE9\u8FE6\u8FF3\u8FE8\u9005\u9004\u900B\u9026\u9011\u900D\u9016\u9021\u9035\u9036\u902D\u902F\u9044\u9051\u9052\u9050\u9068\u9058\u9062\u905B\u66B9\u9074\u907D\u9082\u9088\u9083\u908B\u5F50\u5F57\u5F56\u5F58\u5C3B\u54AB\u5C50\u5C59\u5B71\u5C63\u5C66\u7FBC\u5F2A\u5F29\u5F2D\u8274\u5F3C\u9B3B\u5C6E\u5981\u5983\u598D\u59A9\u59AA\u59A3"],["e640","\u936C",34,"\u9390",27],["e680","\u93AC",29,"\u93CB\u93CC\u93CD\u5997\u59CA\u59AB\u599E\u59A4\u59D2\u59B2\u59AF\u59D7\u59BE\u5A05\u5A06\u59DD\u5A08\u59E3\u59D8\u59F9\u5A0C\u5A09\u5A32\u5A34\u5A11\u5A23\u5A13\u5A40\u5A67\u5A4A\u5A55\u5A3C\u5A62\u5A75\u80EC\u5AAA\u5A9B\u5A77\u5A7A\u5ABE\u5AEB\u5AB2\u5AD2\u5AD4\u5AB8\u5AE0\u5AE3\u5AF1\u5AD6\u5AE6\u5AD8\u5ADC\u5B09\u5B17\u5B16\u5B32\u5B37\u5B40\u5C15\u5C1C\u5B5A\u5B65\u5B73\u5B51\u5B53\u5B62\u9A75\u9A77\u9A78\u9A7A\u9A7F\u9A7D\u9A80\u9A81\u9A85\u9A88\u9A8A\u9A90\u9A92\u9A93\u9A96\u9A98\u9A9B\u9A9C\u9A9D\u9A9F\u9AA0\u9AA2\u9AA3\u9AA5\u9AA7\u7E9F\u7EA1\u7EA3\u7EA5\u7EA8\u7EA9"],["e740","\u93CE",7,"\u93D7",54],["e780","\u940E",32,"\u7EAD\u7EB0\u7EBE\u7EC0\u7EC1\u7EC2\u7EC9\u7ECB\u7ECC\u7ED0\u7ED4\u7ED7\u7EDB\u7EE0\u7EE1\u7EE8\u7EEB\u7EEE\u7EEF\u7EF1\u7EF2\u7F0D\u7EF6\u7EFA\u7EFB\u7EFE\u7F01\u7F02\u7F03\u7F07\u7F08\u7F0B\u7F0C\u7F0F\u7F11\u7F12\u7F17\u7F19\u7F1C\u7F1B\u7F1F\u7F21",6,"\u7F2A\u7F2B\u7F2C\u7F2D\u7F2F",4,"\u7F35\u5E7A\u757F\u5DDB\u753E\u9095\u738E\u7391\u73AE\u73A2\u739F\u73CF\u73C2\u73D1\u73B7\u73B3\u73C0\u73C9\u73C8\u73E5\u73D9\u987C\u740A\u73E9\u73E7\u73DE\u73BA\u73F2\u740F\u742A\u745B\u7426\u7425\u7428\u7430\u742E\u742C"],["e840","\u942F",14,"\u943F",43,"\u946C\u946D\u946E\u946F"],["e880","\u9470",20,"\u9491\u9496\u9498\u94C7\u94CF\u94D3\u94D4\u94DA\u94E6\u94FB\u951C\u9520\u741B\u741A\u7441\u745C\u7457\u7455\u7459\u7477\u746D\u747E\u749C\u748E\u7480\u7481\u7487\u748B\u749E\u74A8\u74A9\u7490\u74A7\u74D2\u74BA\u97EA\u97EB\u97EC\u674C\u6753\u675E\u6748\u6769\u67A5\u6787\u676A\u6773\u6798\u67A7\u6775\u67A8\u679E\u67AD\u678B\u6777\u677C\u67F0\u6809\u67D8\u680A\u67E9\u67B0\u680C\u67D9\u67B5\u67DA\u67B3\u67DD\u6800\u67C3\u67B8\u67E2\u680E\u67C1\u67FD\u6832\u6833\u6860\u6861\u684E\u6862\u6844\u6864\u6883\u681D\u6855\u6866\u6841\u6867\u6840\u683E\u684A\u6849\u6829\u68B5\u688F\u6874\u6877\u6893\u686B\u68C2\u696E\u68FC\u691F\u6920\u68F9"],["e940","\u9527\u9533\u953D\u9543\u9548\u954B\u9555\u955A\u9560\u956E\u9574\u9575\u9577",7,"\u9580",42],["e980","\u95AB",32,"\u6924\u68F0\u690B\u6901\u6957\u68E3\u6910\u6971\u6939\u6960\u6942\u695D\u6984\u696B\u6980\u6998\u6978\u6934\u69CC\u6987\u6988\u69CE\u6989\u6966\u6963\u6979\u699B\u69A7\u69BB\u69AB\u69AD\u69D4\u69B1\u69C1\u69CA\u69DF\u6995\u69E0\u698D\u69FF\u6A2F\u69ED\u6A17\u6A18\u6A65\u69F2\u6A44\u6A3E\u6AA0\u6A50\u6A5B\u6A35\u6A8E\u6A79\u6A3D\u6A28\u6A58\u6A7C\u6A91\u6A90\u6AA9\u6A97\u6AAB\u7337\u7352\u6B81\u6B82\u6B87\u6B84\u6B92\u6B93\u6B8D\u6B9A\u6B9B\u6BA1\u6BAA\u8F6B\u8F6D\u8F71\u8F72\u8F73\u8F75\u8F76\u8F78\u8F77\u8F79\u8F7A\u8F7C\u8F7E\u8F81\u8F82\u8F84\u8F87\u8F8B"],["ea40","\u95CC",27,"\u95EC\u95FF\u9607\u9613\u9618\u961B\u961E\u9620\u9623",6,"\u962B\u962C\u962D\u962F\u9630\u9637\u9638\u9639\u963A\u963E\u9641\u9643\u964A\u964E\u964F\u9651\u9652\u9653\u9656\u9657"],["ea80","\u9658\u9659\u965A\u965C\u965D\u965E\u9660\u9663\u9665\u9666\u966B\u966D",4,"\u9673\u9678",12,"\u9687\u9689\u968A\u8F8D\u8F8E\u8F8F\u8F98\u8F9A\u8ECE\u620B\u6217\u621B\u621F\u6222\u6221\u6225\u6224\u622C\u81E7\u74EF\u74F4\u74FF\u750F\u7511\u7513\u6534\u65EE\u65EF\u65F0\u660A\u6619\u6772\u6603\u6615\u6600\u7085\u66F7\u661D\u6634\u6631\u6636\u6635\u8006\u665F\u6654\u6641\u664F\u6656\u6661\u6657\u6677\u6684\u668C\u66A7\u669D\u66BE\u66DB\u66DC\u66E6\u66E9\u8D32\u8D33\u8D36\u8D3B\u8D3D\u8D40\u8D45\u8D46\u8D48\u8D49\u8D47\u8D4D\u8D55\u8D59\u89C7\u89CA\u89CB\u89CC\u89CE\u89CF\u89D0\u89D1\u726E\u729F\u725D\u7266\u726F\u727E\u727F\u7284\u728B\u728D\u728F\u7292\u6308\u6332\u63B0"],["eb40","\u968C\u968E\u9691\u9692\u9693\u9695\u9696\u969A\u969B\u969D",9,"\u96A8",7,"\u96B1\u96B2\u96B4\u96B5\u96B7\u96B8\u96BA\u96BB\u96BF\u96C2\u96C3\u96C8\u96CA\u96CB\u96D0\u96D1\u96D3\u96D4\u96D6",9,"\u96E1",6,"\u96EB"],["eb80","\u96EC\u96ED\u96EE\u96F0\u96F1\u96F2\u96F4\u96F5\u96F8\u96FA\u96FB\u96FC\u96FD\u96FF\u9702\u9703\u9705\u970A\u970B\u970C\u9710\u9711\u9712\u9714\u9715\u9717",4,"\u971D\u971F\u9720\u643F\u64D8\u8004\u6BEA\u6BF3\u6BFD\u6BF5\u6BF9\u6C05\u6C07\u6C06\u6C0D\u6C15\u6C18\u6C19\u6C1A\u6C21\u6C29\u6C24\u6C2A\u6C32\u6535\u6555\u656B\u724D\u7252\u7256\u7230\u8662\u5216\u809F\u809C\u8093\u80BC\u670A\u80BD\u80B1\u80AB\u80AD\u80B4\u80B7\u80E7\u80E8\u80E9\u80EA\u80DB\u80C2\u80C4\u80D9\u80CD\u80D7\u6710\u80DD\u80EB\u80F1\u80F4\u80ED\u810D\u810E\u80F2\u80FC\u6715\u8112\u8C5A\u8136\u811E\u812C\u8118\u8132\u8148\u814C\u8153\u8174\u8159\u815A\u8171\u8160\u8169\u817C\u817D\u816D\u8167\u584D\u5AB5\u8188\u8182\u8191\u6ED5\u81A3\u81AA\u81CC\u6726\u81CA\u81BB"],["ec40","\u9721",8,"\u972B\u972C\u972E\u972F\u9731\u9733",4,"\u973A\u973B\u973C\u973D\u973F",18,"\u9754\u9755\u9757\u9758\u975A\u975C\u975D\u975F\u9763\u9764\u9766\u9767\u9768\u976A",7],["ec80","\u9772\u9775\u9777",4,"\u977D",7,"\u9786",4,"\u978C\u978E\u978F\u9790\u9793\u9795\u9796\u9797\u9799",4,"\u81C1\u81A6\u6B24\u6B37\u6B39\u6B43\u6B46\u6B59\u98D1\u98D2\u98D3\u98D5\u98D9\u98DA\u6BB3\u5F40\u6BC2\u89F3\u6590\u9F51\u6593\u65BC\u65C6\u65C4\u65C3\u65CC\u65CE\u65D2\u65D6\u7080\u709C\u7096\u709D\u70BB\u70C0\u70B7\u70AB\u70B1\u70E8\u70CA\u7110\u7113\u7116\u712F\u7131\u7173\u715C\u7168\u7145\u7172\u714A\u7178\u717A\u7198\u71B3\u71B5\u71A8\u71A0\u71E0\u71D4\u71E7\u71F9\u721D\u7228\u706C\u7118\u7166\u71B9\u623E\u623D\u6243\u6248\u6249\u793B\u7940\u7946\u7949\u795B\u795C\u7953\u795A\u7962\u7957\u7960\u796F\u7967\u797A\u7985\u798A\u799A\u79A7\u79B3\u5FD1\u5FD0"],["ed40","\u979E\u979F\u97A1\u97A2\u97A4",6,"\u97AC\u97AE\u97B0\u97B1\u97B3\u97B5",46],["ed80","\u97E4\u97E5\u97E8\u97EE",4,"\u97F4\u97F7",23,"\u603C\u605D\u605A\u6067\u6041\u6059\u6063\u60AB\u6106\u610D\u615D\u61A9\u619D\u61CB\u61D1\u6206\u8080\u807F\u6C93\u6CF6\u6DFC\u77F6\u77F8\u7800\u7809\u7817\u7818\u7811\u65AB\u782D\u781C\u781D\u7839\u783A\u783B\u781F\u783C\u7825\u782C\u7823\u7829\u784E\u786D\u7856\u7857\u7826\u7850\u7847\u784C\u786A\u789B\u7893\u789A\u7887\u789C\u78A1\u78A3\u78B2\u78B9\u78A5\u78D4\u78D9\u78C9\u78EC\u78F2\u7905\u78F4\u7913\u7924\u791E\u7934\u9F9B\u9EF9\u9EFB\u9EFC\u76F1\u7704\u770D\u76F9\u7707\u7708\u771A\u7722\u7719\u772D\u7726\u7735\u7738\u7750\u7751\u7747\u7743\u775A\u7768"],["ee40","\u980F",62],["ee80","\u984E",32,"\u7762\u7765\u777F\u778D\u777D\u7780\u778C\u7791\u779F\u77A0\u77B0\u77B5\u77BD\u753A\u7540\u754E\u754B\u7548\u755B\u7572\u7579\u7583\u7F58\u7F61\u7F5F\u8A48\u7F68\u7F74\u7F71\u7F79\u7F81\u7F7E\u76CD\u76E5\u8832\u9485\u9486\u9487\u948B\u948A\u948C\u948D\u948F\u9490\u9494\u9497\u9495\u949A\u949B\u949C\u94A3\u94A4\u94AB\u94AA\u94AD\u94AC\u94AF\u94B0\u94B2\u94B4\u94B6",4,"\u94BC\u94BD\u94BF\u94C4\u94C8",6,"\u94D0\u94D1\u94D2\u94D5\u94D6\u94D7\u94D9\u94D8\u94DB\u94DE\u94DF\u94E0\u94E2\u94E4\u94E5\u94E7\u94E8\u94EA"],["ef40","\u986F",5,"\u988B\u988E\u9892\u9895\u9899\u98A3\u98A8",37,"\u98CF\u98D0\u98D4\u98D6\u98D7\u98DB\u98DC\u98DD\u98E0",4],["ef80","\u98E5\u98E6\u98E9",30,"\u94E9\u94EB\u94EE\u94EF\u94F3\u94F4\u94F5\u94F7\u94F9\u94FC\u94FD\u94FF\u9503\u9502\u9506\u9507\u9509\u950A\u950D\u950E\u950F\u9512",4,"\u9518\u951B\u951D\u951E\u951F\u9522\u952A\u952B\u9529\u952C\u9531\u9532\u9534\u9536\u9537\u9538\u953C\u953E\u953F\u9542\u9535\u9544\u9545\u9546\u9549\u954C\u954E\u954F\u9552\u9553\u9554\u9556\u9557\u9558\u9559\u955B\u955E\u955F\u955D\u9561\u9562\u9564",8,"\u956F\u9571\u9572\u9573\u953A\u77E7\u77EC\u96C9\u79D5\u79ED\u79E3\u79EB\u7A06\u5D47\u7A03\u7A02\u7A1E\u7A14"],["f040","\u9908",4,"\u990E\u990F\u9911",28,"\u992F",26],["f080","\u994A",9,"\u9956",12,"\u9964\u9966\u9973\u9978\u9979\u997B\u997E\u9982\u9983\u9989\u7A39\u7A37\u7A51\u9ECF\u99A5\u7A70\u7688\u768E\u7693\u7699\u76A4\u74DE\u74E0\u752C\u9E20\u9E22\u9E28",4,"\u9E32\u9E31\u9E36\u9E38\u9E37\u9E39\u9E3A\u9E3E\u9E41\u9E42\u9E44\u9E46\u9E47\u9E48\u9E49\u9E4B\u9E4C\u9E4E\u9E51\u9E55\u9E57\u9E5A\u9E5B\u9E5C\u9E5E\u9E63\u9E66",6,"\u9E71\u9E6D\u9E73\u7592\u7594\u7596\u75A0\u759D\u75AC\u75A3\u75B3\u75B4\u75B8\u75C4\u75B1\u75B0\u75C3\u75C2\u75D6\u75CD\u75E3\u75E8\u75E6\u75E4\u75EB\u75E7\u7603\u75F1\u75FC\u75FF\u7610\u7600\u7605\u760C\u7617\u760A\u7625\u7618\u7615\u7619"],["f140","\u998C\u998E\u999A",10,"\u99A6\u99A7\u99A9",47],["f180","\u99D9",32,"\u761B\u763C\u7622\u7620\u7640\u762D\u7630\u763F\u7635\u7643\u763E\u7633\u764D\u765E\u7654\u765C\u7656\u766B\u766F\u7FCA\u7AE6\u7A78\u7A79\u7A80\u7A86\u7A88\u7A95\u7AA6\u7AA0\u7AAC\u7AA8\u7AAD\u7AB3\u8864\u8869\u8872\u887D\u887F\u8882\u88A2\u88C6\u88B7\u88BC\u88C9\u88E2\u88CE\u88E3\u88E5\u88F1\u891A\u88FC\u88E8\u88FE\u88F0\u8921\u8919\u8913\u891B\u890A\u8934\u892B\u8936\u8941\u8966\u897B\u758B\u80E5\u76B2\u76B4\u77DC\u8012\u8014\u8016\u801C\u8020\u8022\u8025\u8026\u8027\u8029\u8028\u8031\u800B\u8035\u8043\u8046\u804D\u8052\u8069\u8071\u8983\u9878\u9880\u9883"],["f240","\u99FA",62],["f280","\u9A39",32,"\u9889\u988C\u988D\u988F\u9894\u989A\u989B\u989E\u989F\u98A1\u98A2\u98A5\u98A6\u864D\u8654\u866C\u866E\u867F\u867A\u867C\u867B\u86A8\u868D\u868B\u86AC\u869D\u86A7\u86A3\u86AA\u8693\u86A9\u86B6\u86C4\u86B5\u86CE\u86B0\u86BA\u86B1\u86AF\u86C9\u86CF\u86B4\u86E9\u86F1\u86F2\u86ED\u86F3\u86D0\u8713\u86DE\u86F4\u86DF\u86D8\u86D1\u8703\u8707\u86F8\u8708\u870A\u870D\u8709\u8723\u873B\u871E\u8725\u872E\u871A\u873E\u8748\u8734\u8731\u8729\u8737\u873F\u8782\u8722\u877D\u877E\u877B\u8760\u8770\u874C\u876E\u878B\u8753\u8763\u877C\u8764\u8759\u8765\u8793\u87AF\u87A8\u87D2"],["f340","\u9A5A",17,"\u9A72\u9A83\u9A89\u9A8D\u9A8E\u9A94\u9A95\u9A99\u9AA6\u9AA9",6,"\u9AB2\u9AB3\u9AB4\u9AB5\u9AB9\u9ABB\u9ABD\u9ABE\u9ABF\u9AC3\u9AC4\u9AC6",4,"\u9ACD\u9ACE\u9ACF\u9AD0\u9AD2\u9AD4\u9AD5\u9AD6\u9AD7\u9AD9\u9ADA\u9ADB\u9ADC"],["f380","\u9ADD\u9ADE\u9AE0\u9AE2\u9AE3\u9AE4\u9AE5\u9AE7\u9AE8\u9AE9\u9AEA\u9AEC\u9AEE\u9AF0",8,"\u9AFA\u9AFC",6,"\u9B04\u9B05\u9B06\u87C6\u8788\u8785\u87AD\u8797\u8783\u87AB\u87E5\u87AC\u87B5\u87B3\u87CB\u87D3\u87BD\u87D1\u87C0\u87CA\u87DB\u87EA\u87E0\u87EE\u8816\u8813\u87FE\u880A\u881B\u8821\u8839\u883C\u7F36\u7F42\u7F44\u7F45\u8210\u7AFA\u7AFD\u7B08\u7B03\u7B04\u7B15\u7B0A\u7B2B\u7B0F\u7B47\u7B38\u7B2A\u7B19\u7B2E\u7B31\u7B20\u7B25\u7B24\u7B33\u7B3E\u7B1E\u7B58\u7B5A\u7B45\u7B75\u7B4C\u7B5D\u7B60\u7B6E\u7B7B\u7B62\u7B72\u7B71\u7B90\u7BA6\u7BA7\u7BB8\u7BAC\u7B9D\u7BA8\u7B85\u7BAA\u7B9C\u7BA2\u7BAB\u7BB4\u7BD1\u7BC1\u7BCC\u7BDD\u7BDA\u7BE5\u7BE6\u7BEA\u7C0C\u7BFE\u7BFC\u7C0F\u7C16\u7C0B"],["f440","\u9B07\u9B09",5,"\u9B10\u9B11\u9B12\u9B14",10,"\u9B20\u9B21\u9B22\u9B24",10,"\u9B30\u9B31\u9B33",7,"\u9B3D\u9B3E\u9B3F\u9B40\u9B46\u9B4A\u9B4B\u9B4C\u9B4E\u9B50\u9B52\u9B53\u9B55",5],["f480","\u9B5B",32,"\u7C1F\u7C2A\u7C26\u7C38\u7C41\u7C40\u81FE\u8201\u8202\u8204\u81EC\u8844\u8221\u8222\u8223\u822D\u822F\u8228\u822B\u8238\u823B\u8233\u8234\u823E\u8244\u8249\u824B\u824F\u825A\u825F\u8268\u887E\u8885\u8888\u88D8\u88DF\u895E\u7F9D\u7F9F\u7FA7\u7FAF\u7FB0\u7FB2\u7C7C\u6549\u7C91\u7C9D\u7C9C\u7C9E\u7CA2\u7CB2\u7CBC\u7CBD\u7CC1\u7CC7\u7CCC\u7CCD\u7CC8\u7CC5\u7CD7\u7CE8\u826E\u66A8\u7FBF\u7FCE\u7FD5\u7FE5\u7FE1\u7FE6\u7FE9\u7FEE\u7FF3\u7CF8\u7D77\u7DA6\u7DAE\u7E47\u7E9B\u9EB8\u9EB4\u8D73\u8D84\u8D94\u8D91\u8DB1\u8D67\u8D6D\u8C47\u8C49\u914A\u9150\u914E\u914F\u9164"],["f540","\u9B7C",62],["f580","\u9BBB",32,"\u9162\u9161\u9170\u9169\u916F\u917D\u917E\u9172\u9174\u9179\u918C\u9185\u9190\u918D\u9191\u91A2\u91A3\u91AA\u91AD\u91AE\u91AF\u91B5\u91B4\u91BA\u8C55\u9E7E\u8DB8\u8DEB\u8E05\u8E59\u8E69\u8DB5\u8DBF\u8DBC\u8DBA\u8DC4\u8DD6\u8DD7\u8DDA\u8DDE\u8DCE\u8DCF\u8DDB\u8DC6\u8DEC\u8DF7\u8DF8\u8DE3\u8DF9\u8DFB\u8DE4\u8E09\u8DFD\u8E14\u8E1D\u8E1F\u8E2C\u8E2E\u8E23\u8E2F\u8E3A\u8E40\u8E39\u8E35\u8E3D\u8E31\u8E49\u8E41\u8E42\u8E51\u8E52\u8E4A\u8E70\u8E76\u8E7C\u8E6F\u8E74\u8E85\u8E8F\u8E94\u8E90\u8E9C\u8E9E\u8C78\u8C82\u8C8A\u8C85\u8C98\u8C94\u659B\u89D6\u89DE\u89DA\u89DC"],["f640","\u9BDC",62],["f680","\u9C1B",32,"\u89E5\u89EB\u89EF\u8A3E\u8B26\u9753\u96E9\u96F3\u96EF\u9706\u9701\u9708\u970F\u970E\u972A\u972D\u9730\u973E\u9F80\u9F83\u9F85",5,"\u9F8C\u9EFE\u9F0B\u9F0D\u96B9\u96BC\u96BD\u96CE\u96D2\u77BF\u96E0\u928E\u92AE\u92C8\u933E\u936A\u93CA\u938F\u943E\u946B\u9C7F\u9C82\u9C85\u9C86\u9C87\u9C88\u7A23\u9C8B\u9C8E\u9C90\u9C91\u9C92\u9C94\u9C95\u9C9A\u9C9B\u9C9E",5,"\u9CA5",4,"\u9CAB\u9CAD\u9CAE\u9CB0",7,"\u9CBA\u9CBB\u9CBC\u9CBD\u9CC4\u9CC5\u9CC6\u9CC7\u9CCA\u9CCB"],["f740","\u9C3C",62],["f780","\u9C7B\u9C7D\u9C7E\u9C80\u9C83\u9C84\u9C89\u9C8A\u9C8C\u9C8F\u9C93\u9C96\u9C97\u9C98\u9C99\u9C9D\u9CAA\u9CAC\u9CAF\u9CB9\u9CBE",4,"\u9CC8\u9CC9\u9CD1\u9CD2\u9CDA\u9CDB\u9CE0\u9CE1\u9CCC",4,"\u9CD3\u9CD4\u9CD5\u9CD7\u9CD8\u9CD9\u9CDC\u9CDD\u9CDF\u9CE2\u977C\u9785\u9791\u9792\u9794\u97AF\u97AB\u97A3\u97B2\u97B4\u9AB1\u9AB0\u9AB7\u9E58\u9AB6\u9ABA\u9ABC\u9AC1\u9AC0\u9AC5\u9AC2\u9ACB\u9ACC\u9AD1\u9B45\u9B43\u9B47\u9B49\u9B48\u9B4D\u9B51\u98E8\u990D\u992E\u9955\u9954\u9ADF\u9AE1\u9AE6\u9AEF\u9AEB\u9AFB\u9AED\u9AF9\u9B08\u9B0F\u9B13\u9B1F\u9B23\u9EBD\u9EBE\u7E3B\u9E82\u9E87\u9E88\u9E8B\u9E92\u93D6\u9E9D\u9E9F\u9EDB\u9EDC\u9EDD\u9EE0\u9EDF\u9EE2\u9EE9\u9EE7\u9EE5\u9EEA\u9EEF\u9F22\u9F2C\u9F2F\u9F39\u9F37\u9F3D\u9F3E\u9F44"],["f840","\u9CE3",62],["f880","\u9D22",32],["f940","\u9D43",62],["f980","\u9D82",32],["fa40","\u9DA3",62],["fa80","\u9DE2",32],["fb40","\u9E03",27,"\u9E24\u9E27\u9E2E\u9E30\u9E34\u9E3B\u9E3C\u9E40\u9E4D\u9E50\u9E52\u9E53\u9E54\u9E56\u9E59\u9E5D\u9E5F\u9E60\u9E61\u9E62\u9E65\u9E6E\u9E6F\u9E72\u9E74",9,"\u9E80"],["fb80","\u9E81\u9E83\u9E84\u9E85\u9E86\u9E89\u9E8A\u9E8C",5,"\u9E94",8,"\u9E9E\u9EA0",5,"\u9EA7\u9EA8\u9EA9\u9EAA"],["fc40","\u9EAB",8,"\u9EB5\u9EB6\u9EB7\u9EB9\u9EBA\u9EBC\u9EBF",4,"\u9EC5\u9EC6\u9EC7\u9EC8\u9ECA\u9ECB\u9ECC\u9ED0\u9ED2\u9ED3\u9ED5\u9ED6\u9ED7\u9ED9\u9EDA\u9EDE\u9EE1\u9EE3\u9EE4\u9EE6\u9EE8\u9EEB\u9EEC\u9EED\u9EEE\u9EF0",8,"\u9EFA\u9EFD\u9EFF",6],["fc80","\u9F06",4,"\u9F0C\u9F0F\u9F11\u9F12\u9F14\u9F15\u9F16\u9F18\u9F1A",5,"\u9F21\u9F23",8,"\u9F2D\u9F2E\u9F30\u9F31"],["fd40","\u9F32",4,"\u9F38\u9F3A\u9F3C\u9F3F",4,"\u9F45",10,"\u9F52",38],["fd80","\u9F79",5,"\u9F81\u9F82\u9F8D",11,"\u9F9C\u9F9D\u9F9E\u9FA1",4,"\uF92C\uF979\uF995\uF9E7\uF9F1"],["fe40","\uFA0C\uFA0D\uFA0E\uFA0F\uFA11\uFA13\uFA14\uFA18\uFA1F\uFA20\uFA21\uFA23\uFA24\uFA27\uFA28\uFA29"]],require$$3=[["a140","\uE4C6",62],["a180","\uE505",32],["a240","\uE526",62],["a280","\uE565",32],["a2ab","\uE766",5],["a2e3","\u20AC\uE76D"],["a2ef","\uE76E\uE76F"],["a2fd","\uE770\uE771"],["a340","\uE586",62],["a380","\uE5C5",31,"\u3000"],["a440","\uE5E6",62],["a480","\uE625",32],["a4f4","\uE772",10],["a540","\uE646",62],["a580","\uE685",32],["a5f7","\uE77D",7],["a640","\uE6A6",62],["a680","\uE6E5",32],["a6b9","\uE785",7],["a6d9","\uE78D",6],["a6ec","\uE794\uE795"],["a6f3","\uE796"],["a6f6","\uE797",8],["a740","\uE706",62],["a780","\uE745",32],["a7c2","\uE7A0",14],["a7f2","\uE7AF",12],["a896","\uE7BC",10],["a8bc","\u1E3F"],["a8bf","\u01F9"],["a8c1","\uE7C9\uE7CA\uE7CB\uE7CC"],["a8ea","\uE7CD",20],["a958","\uE7E2"],["a95b","\uE7E3"],["a95d","\uE7E4\uE7E5\uE7E6"],["a989","\u303E\u2FF0",11],["a997","\uE7F4",12],["a9f0","\uE801",14],["aaa1","\uE000",93],["aba1","\uE05E",93],["aca1","\uE0BC",93],["ada1","\uE11A",93],["aea1","\uE178",93],["afa1","\uE1D6",93],["d7fa","\uE810",4],["f8a1","\uE234",93],["f9a1","\uE292",93],["faa1","\uE2F0",93],["fba1","\uE34E",93],["fca1","\uE3AC",93],["fda1","\uE40A",93],["fe50","\u2E81\uE816\uE817\uE818\u2E84\u3473\u3447\u2E88\u2E8B\uE81E\u359E\u361A\u360E\u2E8C\u2E97\u396E\u3918\uE826\u39CF\u39DF\u3A73\u39D0\uE82B\uE82C\u3B4E\u3C6E\u3CE0\u2EA7\uE831\uE832\u2EAA\u4056\u415F\u2EAE\u4337\u2EB3\u2EB6\u2EB7\uE83B\u43B1\u43AC\u2EBB\u43DD\u44D6\u4661\u464C\uE843"],["fe80","\u4723\u4729\u477C\u478D\u2ECA\u4947\u497A\u497D\u4982\u4983\u4985\u4986\u499F\u499B\u49B7\u49B6\uE854\uE855\u4CA3\u4C9F\u4CA0\u4CA1\u4C77\u4CA2\u4D13",6,"\u4DAE\uE864\uE468",93],["8135f437","\uE7C7"]],uChars=[128,165,169,178,184,216,226,235,238,244,248,251,253,258,276,284,300,325,329,334,364,463,465,467,469,471,473,475,477,506,594,610,712,716,730,930,938,962,970,1026,1104,1106,8209,8215,8218,8222,8231,8241,8244,8246,8252,8365,8452,8454,8458,8471,8482,8556,8570,8596,8602,8713,8720,8722,8726,8731,8737,8740,8742,8748,8751,8760,8766,8777,8781,8787,8802,8808,8816,8854,8858,8870,8896,8979,9322,9372,9548,9588,9616,9622,9634,9652,9662,9672,9676,9680,9702,9735,9738,9793,9795,11906,11909,11913,11917,11928,11944,11947,11951,11956,11960,11964,11979,12284,12292,12312,12319,12330,12351,12436,12447,12535,12543,12586,12842,12850,12964,13200,13215,13218,13253,13263,13267,13270,13384,13428,13727,13839,13851,14617,14703,14801,14816,14964,15183,15471,15585,16471,16736,17208,17325,17330,17374,17623,17997,18018,18212,18218,18301,18318,18760,18811,18814,18820,18823,18844,18848,18872,19576,19620,19738,19887,40870,59244,59336,59367,59413,59417,59423,59431,59437,59443,59452,59460,59478,59493,63789,63866,63894,63976,63986,64016,64018,64021,64025,64034,64037,64042,65074,65093,65107,65112,65127,65132,65375,65510,65536],gbChars=[0,36,38,45,50,81,89,95,96,100,103,104,105,109,126,133,148,172,175,179,208,306,307,308,309,310,311,312,313,341,428,443,544,545,558,741,742,749,750,805,819,820,7922,7924,7925,7927,7934,7943,7944,7945,7950,8062,8148,8149,8152,8164,8174,8236,8240,8262,8264,8374,8380,8381,8384,8388,8390,8392,8393,8394,8396,8401,8406,8416,8419,8424,8437,8439,8445,8482,8485,8496,8521,8603,8936,8946,9046,9050,9063,9066,9076,9092,9100,9108,9111,9113,9131,9162,9164,9218,9219,11329,11331,11334,11336,11346,11361,11363,11366,11370,11372,11375,11389,11682,11686,11687,11692,11694,11714,11716,11723,11725,11730,11736,11982,11989,12102,12336,12348,12350,12384,12393,12395,12397,12510,12553,12851,12962,12973,13738,13823,13919,13933,14080,14298,14585,14698,15583,15847,16318,16434,16438,16481,16729,17102,17122,17315,17320,17402,17418,17859,17909,17911,17915,17916,17936,17939,17961,18664,18703,18814,18962,19043,33469,33470,33471,33484,33485,33490,33497,33501,33505,33513,33520,33536,33550,37845,37921,37948,38029,38038,38064,38065,38066,38069,38075,38076,38078,39108,39109,39113,39114,39115,39116,39265,39394,189e3],require$$4$1={uChars,gbChars},require$$5=[["0","\0",127],["8141","\uAC02\uAC03\uAC05\uAC06\uAC0B",4,"\uAC18\uAC1E\uAC1F\uAC21\uAC22\uAC23\uAC25",6,"\uAC2E\uAC32\uAC33\uAC34"],["8161","\uAC35\uAC36\uAC37\uAC3A\uAC3B\uAC3D\uAC3E\uAC3F\uAC41",9,"\uAC4C\uAC4E",5,"\uAC55"],["8181","\uAC56\uAC57\uAC59\uAC5A\uAC5B\uAC5D",18,"\uAC72\uAC73\uAC75\uAC76\uAC79\uAC7B",4,"\uAC82\uAC87\uAC88\uAC8D\uAC8E\uAC8F\uAC91\uAC92\uAC93\uAC95",6,"\uAC9E\uACA2",5,"\uACAB\uACAD\uACAE\uACB1",6,"\uACBA\uACBE\uACBF\uACC0\uACC2\uACC3\uACC5\uACC6\uACC7\uACC9\uACCA\uACCB\uACCD",7,"\uACD6\uACD8",7,"\uACE2\uACE3\uACE5\uACE6\uACE9\uACEB\uACED\uACEE\uACF2\uACF4\uACF7",4,"\uACFE\uACFF\uAD01\uAD02\uAD03\uAD05\uAD07",4,"\uAD0E\uAD10\uAD12\uAD13"],["8241","\uAD14\uAD15\uAD16\uAD17\uAD19\uAD1A\uAD1B\uAD1D\uAD1E\uAD1F\uAD21",7,"\uAD2A\uAD2B\uAD2E",5],["8261","\uAD36\uAD37\uAD39\uAD3A\uAD3B\uAD3D",6,"\uAD46\uAD48\uAD4A",5,"\uAD51\uAD52\uAD53\uAD55\uAD56\uAD57"],["8281","\uAD59",7,"\uAD62\uAD64",7,"\uAD6E\uAD6F\uAD71\uAD72\uAD77\uAD78\uAD79\uAD7A\uAD7E\uAD80\uAD83",4,"\uAD8A\uAD8B\uAD8D\uAD8E\uAD8F\uAD91",10,"\uAD9E",5,"\uADA5",17,"\uADB8",7,"\uADC2\uADC3\uADC5\uADC6\uADC7\uADC9",6,"\uADD2\uADD4",7,"\uADDD\uADDE\uADDF\uADE1\uADE2\uADE3\uADE5",18],["8341","\uADFA\uADFB\uADFD\uADFE\uAE02",5,"\uAE0A\uAE0C\uAE0E",5,"\uAE15",7],["8361","\uAE1D",18,"\uAE32\uAE33\uAE35\uAE36\uAE39\uAE3B\uAE3C"],["8381","\uAE3D\uAE3E\uAE3F\uAE42\uAE44\uAE47\uAE48\uAE49\uAE4B\uAE4F\uAE51\uAE52\uAE53\uAE55\uAE57",4,"\uAE5E\uAE62\uAE63\uAE64\uAE66\uAE67\uAE6A\uAE6B\uAE6D\uAE6E\uAE6F\uAE71",6,"\uAE7A\uAE7E",5,"\uAE86",5,"\uAE8D",46,"\uAEBF\uAEC1\uAEC2\uAEC3\uAEC5",6,"\uAECE\uAED2",5,"\uAEDA\uAEDB\uAEDD",8],["8441","\uAEE6\uAEE7\uAEE9\uAEEA\uAEEC\uAEEE",5,"\uAEF5\uAEF6\uAEF7\uAEF9\uAEFA\uAEFB\uAEFD",8],["8461","\uAF06\uAF09\uAF0A\uAF0B\uAF0C\uAF0E\uAF0F\uAF11",18],["8481","\uAF24",7,"\uAF2E\uAF2F\uAF31\uAF33\uAF35",6,"\uAF3E\uAF40\uAF44\uAF45\uAF46\uAF47\uAF4A",5,"\uAF51",10,"\uAF5E",5,"\uAF66",18,"\uAF7A",5,"\uAF81\uAF82\uAF83\uAF85\uAF86\uAF87\uAF89",6,"\uAF92\uAF93\uAF94\uAF96",5,"\uAF9D",26,"\uAFBA\uAFBB\uAFBD\uAFBE"],["8541","\uAFBF\uAFC1",5,"\uAFCA\uAFCC\uAFCF",4,"\uAFD5",6,"\uAFDD",4],["8561","\uAFE2",5,"\uAFEA",5,"\uAFF2\uAFF3\uAFF5\uAFF6\uAFF7\uAFF9",6,"\uB002\uB003"],["8581","\uB005",6,"\uB00D\uB00E\uB00F\uB011\uB012\uB013\uB015",6,"\uB01E",9,"\uB029",26,"\uB046\uB047\uB049\uB04B\uB04D\uB04F\uB050\uB051\uB052\uB056\uB058\uB05A\uB05B\uB05C\uB05E",29,"\uB07E\uB07F\uB081\uB082\uB083\uB085",6,"\uB08E\uB090\uB092",5,"\uB09B\uB09D\uB09E\uB0A3\uB0A4"],["8641","\uB0A5\uB0A6\uB0A7\uB0AA\uB0B0\uB0B2\uB0B6\uB0B7\uB0B9\uB0BA\uB0BB\uB0BD",6,"\uB0C6\uB0CA",5,"\uB0D2"],["8661","\uB0D3\uB0D5\uB0D6\uB0D7\uB0D9",6,"\uB0E1\uB0E2\uB0E3\uB0E4\uB0E6",10],["8681","\uB0F1",22,"\uB10A\uB10D\uB10E\uB10F\uB111\uB114\uB115\uB116\uB117\uB11A\uB11E",4,"\uB126\uB127\uB129\uB12A\uB12B\uB12D",6,"\uB136\uB13A",5,"\uB142\uB143\uB145\uB146\uB147\uB149",6,"\uB152\uB153\uB156\uB157\uB159\uB15A\uB15B\uB15D\uB15E\uB15F\uB161",22,"\uB17A\uB17B\uB17D\uB17E\uB17F\uB181\uB183",4,"\uB18A\uB18C\uB18E\uB18F\uB190\uB191\uB195\uB196\uB197\uB199\uB19A\uB19B\uB19D"],["8741","\uB19E",9,"\uB1A9",15],["8761","\uB1B9",18,"\uB1CD\uB1CE\uB1CF\uB1D1\uB1D2\uB1D3\uB1D5"],["8781","\uB1D6",5,"\uB1DE\uB1E0",7,"\uB1EA\uB1EB\uB1ED\uB1EE\uB1EF\uB1F1",7,"\uB1FA\uB1FC\uB1FE",5,"\uB206\uB207\uB209\uB20A\uB20D",6,"\uB216\uB218\uB21A",5,"\uB221",18,"\uB235",6,"\uB23D",26,"\uB259\uB25A\uB25B\uB25D\uB25E\uB25F\uB261",6,"\uB26A",4],["8841","\uB26F",4,"\uB276",5,"\uB27D",6,"\uB286\uB287\uB288\uB28A",4],["8861","\uB28F\uB292\uB293\uB295\uB296\uB297\uB29B",4,"\uB2A2\uB2A4\uB2A7\uB2A8\uB2A9\uB2AB\uB2AD\uB2AE\uB2AF\uB2B1\uB2B2\uB2B3\uB2B5\uB2B6\uB2B7"],["8881","\uB2B8",15,"\uB2CA\uB2CB\uB2CD\uB2CE\uB2CF\uB2D1\uB2D3",4,"\uB2DA\uB2DC\uB2DE\uB2DF\uB2E0\uB2E1\uB2E3\uB2E7\uB2E9\uB2EA\uB2F0\uB2F1\uB2F2\uB2F6\uB2FC\uB2FD\uB2FE\uB302\uB303\uB305\uB306\uB307\uB309",6,"\uB312\uB316",5,"\uB31D",54,"\uB357\uB359\uB35A\uB35D\uB360\uB361\uB362\uB363"],["8941","\uB366\uB368\uB36A\uB36C\uB36D\uB36F\uB372\uB373\uB375\uB376\uB377\uB379",6,"\uB382\uB386",5,"\uB38D"],["8961","\uB38E\uB38F\uB391\uB392\uB393\uB395",10,"\uB3A2",5,"\uB3A9\uB3AA\uB3AB\uB3AD"],["8981","\uB3AE",21,"\uB3C6\uB3C7\uB3C9\uB3CA\uB3CD\uB3CF\uB3D1\uB3D2\uB3D3\uB3D6\uB3D8\uB3DA\uB3DC\uB3DE\uB3DF\uB3E1\uB3E2\uB3E3\uB3E5\uB3E6\uB3E7\uB3E9",18,"\uB3FD",18,"\uB411",6,"\uB419\uB41A\uB41B\uB41D\uB41E\uB41F\uB421",6,"\uB42A\uB42C",7,"\uB435",15],["8a41","\uB445",10,"\uB452\uB453\uB455\uB456\uB457\uB459",6,"\uB462\uB464\uB466"],["8a61","\uB467",4,"\uB46D",18,"\uB481\uB482"],["8a81","\uB483",4,"\uB489",19,"\uB49E",5,"\uB4A5\uB4A6\uB4A7\uB4A9\uB4AA\uB4AB\uB4AD",7,"\uB4B6\uB4B8\uB4BA",5,"\uB4C1\uB4C2\uB4C3\uB4C5\uB4C6\uB4C7\uB4C9",6,"\uB4D1\uB4D2\uB4D3\uB4D4\uB4D6",5,"\uB4DE\uB4DF\uB4E1\uB4E2\uB4E5\uB4E7",4,"\uB4EE\uB4F0\uB4F2",5,"\uB4F9",26,"\uB516\uB517\uB519\uB51A\uB51D"],["8b41","\uB51E",5,"\uB526\uB52B",4,"\uB532\uB533\uB535\uB536\uB537\uB539",6,"\uB542\uB546"],["8b61","\uB547\uB548\uB549\uB54A\uB54E\uB54F\uB551\uB552\uB553\uB555",6,"\uB55E\uB562",8],["8b81","\uB56B",52,"\uB5A2\uB5A3\uB5A5\uB5A6\uB5A7\uB5A9\uB5AC\uB5AD\uB5AE\uB5AF\uB5B2\uB5B6",4,"\uB5BE\uB5BF\uB5C1\uB5C2\uB5C3\uB5C5",6,"\uB5CE\uB5D2",5,"\uB5D9",18,"\uB5ED",18],["8c41","\uB600",15,"\uB612\uB613\uB615\uB616\uB617\uB619",4],["8c61","\uB61E",6,"\uB626",5,"\uB62D",6,"\uB635",5],["8c81","\uB63B",12,"\uB649",26,"\uB665\uB666\uB667\uB669",50,"\uB69E\uB69F\uB6A1\uB6A2\uB6A3\uB6A5",5,"\uB6AD\uB6AE\uB6AF\uB6B0\uB6B2",16],["8d41","\uB6C3",16,"\uB6D5",8],["8d61","\uB6DE",17,"\uB6F1\uB6F2\uB6F3\uB6F5\uB6F6\uB6F7\uB6F9\uB6FA"],["8d81","\uB6FB",4,"\uB702\uB703\uB704\uB706",33,"\uB72A\uB72B\uB72D\uB72E\uB731",6,"\uB73A\uB73C",7,"\uB745\uB746\uB747\uB749\uB74A\uB74B\uB74D",6,"\uB756",9,"\uB761\uB762\uB763\uB765\uB766\uB767\uB769",6,"\uB772\uB774\uB776",5,"\uB77E\uB77F\uB781\uB782\uB783\uB785",6,"\uB78E\uB793\uB794\uB795\uB79A\uB79B\uB79D\uB79E"],["8e41","\uB79F\uB7A1",6,"\uB7AA\uB7AE",5,"\uB7B6\uB7B7\uB7B9",8],["8e61","\uB7C2",4,"\uB7C8\uB7CA",19],["8e81","\uB7DE",13,"\uB7EE\uB7EF\uB7F1\uB7F2\uB7F3\uB7F5",6,"\uB7FE\uB802",4,"\uB80A\uB80B\uB80D\uB80E\uB80F\uB811",6,"\uB81A\uB81C\uB81E",5,"\uB826\uB827\uB829\uB82A\uB82B\uB82D",6,"\uB836\uB83A",5,"\uB841\uB842\uB843\uB845",11,"\uB852\uB854",7,"\uB85E\uB85F\uB861\uB862\uB863\uB865",6,"\uB86E\uB870\uB872",5,"\uB879\uB87A\uB87B\uB87D",7],["8f41","\uB885",7,"\uB88E",17],["8f61","\uB8A0",7,"\uB8A9",6,"\uB8B1\uB8B2\uB8B3\uB8B5\uB8B6\uB8B7\uB8B9",4],["8f81","\uB8BE\uB8BF\uB8C2\uB8C4\uB8C6",5,"\uB8CD\uB8CE\uB8CF\uB8D1\uB8D2\uB8D3\uB8D5",7,"\uB8DE\uB8E0\uB8E2",5,"\uB8EA\uB8EB\uB8ED\uB8EE\uB8EF\uB8F1",6,"\uB8FA\uB8FC\uB8FE",5,"\uB905",18,"\uB919",6,"\uB921",26,"\uB93E\uB93F\uB941\uB942\uB943\uB945",6,"\uB94D\uB94E\uB950\uB952",5],["9041","\uB95A\uB95B\uB95D\uB95E\uB95F\uB961",6,"\uB96A\uB96C\uB96E",5,"\uB976\uB977\uB979\uB97A\uB97B\uB97D"],["9061","\uB97E",5,"\uB986\uB988\uB98B\uB98C\uB98F",15],["9081","\uB99F",12,"\uB9AE\uB9AF\uB9B1\uB9B2\uB9B3\uB9B5",6,"\uB9BE\uB9C0\uB9C2",5,"\uB9CA\uB9CB\uB9CD\uB9D3",4,"\uB9DA\uB9DC\uB9DF\uB9E0\uB9E2\uB9E6\uB9E7\uB9E9\uB9EA\uB9EB\uB9ED",6,"\uB9F6\uB9FB",4,"\uBA02",5,"\uBA09",11,"\uBA16",33,"\uBA3A\uBA3B\uBA3D\uBA3E\uBA3F\uBA41\uBA43\uBA44\uBA45\uBA46"],["9141","\uBA47\uBA4A\uBA4C\uBA4F\uBA50\uBA51\uBA52\uBA56\uBA57\uBA59\uBA5A\uBA5B\uBA5D",6,"\uBA66\uBA6A",5],["9161","\uBA72\uBA73\uBA75\uBA76\uBA77\uBA79",9,"\uBA86\uBA88\uBA89\uBA8A\uBA8B\uBA8D",5],["9181","\uBA93",20,"\uBAAA\uBAAD\uBAAE\uBAAF\uBAB1\uBAB3",4,"\uBABA\uBABC\uBABE",5,"\uBAC5\uBAC6\uBAC7\uBAC9",14,"\uBADA",33,"\uBAFD\uBAFE\uBAFF\uBB01\uBB02\uBB03\uBB05",7,"\uBB0E\uBB10\uBB12",5,"\uBB19\uBB1A\uBB1B\uBB1D\uBB1E\uBB1F\uBB21",6],["9241","\uBB28\uBB2A\uBB2C",7,"\uBB37\uBB39\uBB3A\uBB3F",4,"\uBB46\uBB48\uBB4A\uBB4B\uBB4C\uBB4E\uBB51\uBB52"],["9261","\uBB53\uBB55\uBB56\uBB57\uBB59",7,"\uBB62\uBB64",7,"\uBB6D",4],["9281","\uBB72",21,"\uBB89\uBB8A\uBB8B\uBB8D\uBB8E\uBB8F\uBB91",18,"\uBBA5\uBBA6\uBBA7\uBBA9\uBBAA\uBBAB\uBBAD",6,"\uBBB5\uBBB6\uBBB8",7,"\uBBC1\uBBC2\uBBC3\uBBC5\uBBC6\uBBC7\uBBC9",6,"\uBBD1\uBBD2\uBBD4",35,"\uBBFA\uBBFB\uBBFD\uBBFE\uBC01"],["9341","\uBC03",4,"\uBC0A\uBC0E\uBC10\uBC12\uBC13\uBC19\uBC1A\uBC20\uBC21\uBC22\uBC23\uBC26\uBC28\uBC2A\uBC2B\uBC2C\uBC2E\uBC2F\uBC32\uBC33\uBC35"],["9361","\uBC36\uBC37\uBC39",6,"\uBC42\uBC46\uBC47\uBC48\uBC4A\uBC4B\uBC4E\uBC4F\uBC51",8],["9381","\uBC5A\uBC5B\uBC5C\uBC5E",37,"\uBC86\uBC87\uBC89\uBC8A\uBC8D\uBC8F",4,"\uBC96\uBC98\uBC9B",4,"\uBCA2\uBCA3\uBCA5\uBCA6\uBCA9",6,"\uBCB2\uBCB6",5,"\uBCBE\uBCBF\uBCC1\uBCC2\uBCC3\uBCC5",7,"\uBCCE\uBCD2\uBCD3\uBCD4\uBCD6\uBCD7\uBCD9\uBCDA\uBCDB\uBCDD",22,"\uBCF7\uBCF9\uBCFA\uBCFB\uBCFD"],["9441","\uBCFE",5,"\uBD06\uBD08\uBD0A",5,"\uBD11\uBD12\uBD13\uBD15",8],["9461","\uBD1E",5,"\uBD25",6,"\uBD2D",12],["9481","\uBD3A",5,"\uBD41",6,"\uBD4A\uBD4B\uBD4D\uBD4E\uBD4F\uBD51",6,"\uBD5A",9,"\uBD65\uBD66\uBD67\uBD69",22,"\uBD82\uBD83\uBD85\uBD86\uBD8B",4,"\uBD92\uBD94\uBD96\uBD97\uBD98\uBD9B\uBD9D",6,"\uBDA5",10,"\uBDB1",6,"\uBDB9",24],["9541","\uBDD2\uBDD3\uBDD6\uBDD7\uBDD9\uBDDA\uBDDB\uBDDD",11,"\uBDEA",5,"\uBDF1"],["9561","\uBDF2\uBDF3\uBDF5\uBDF6\uBDF7\uBDF9",6,"\uBE01\uBE02\uBE04\uBE06",5,"\uBE0E\uBE0F\uBE11\uBE12\uBE13"],["9581","\uBE15",6,"\uBE1E\uBE20",35,"\uBE46\uBE47\uBE49\uBE4A\uBE4B\uBE4D\uBE4F",4,"\uBE56\uBE58\uBE5C\uBE5D\uBE5E\uBE5F\uBE62\uBE63\uBE65\uBE66\uBE67\uBE69\uBE6B",4,"\uBE72\uBE76",4,"\uBE7E\uBE7F\uBE81\uBE82\uBE83\uBE85",6,"\uBE8E\uBE92",5,"\uBE9A",13,"\uBEA9",14],["9641","\uBEB8",23,"\uBED2\uBED3"],["9661","\uBED5\uBED6\uBED9",6,"\uBEE1\uBEE2\uBEE6",5,"\uBEED",8],["9681","\uBEF6",10,"\uBF02",5,"\uBF0A",13,"\uBF1A\uBF1E",33,"\uBF42\uBF43\uBF45\uBF46\uBF47\uBF49",6,"\uBF52\uBF53\uBF54\uBF56",44],["9741","\uBF83",16,"\uBF95",8],["9761","\uBF9E",17,"\uBFB1",7],["9781","\uBFB9",11,"\uBFC6",5,"\uBFCE\uBFCF\uBFD1\uBFD2\uBFD3\uBFD5",6,"\uBFDD\uBFDE\uBFE0\uBFE2",89,"\uC03D\uC03E\uC03F"],["9841","\uC040",16,"\uC052",5,"\uC059\uC05A\uC05B"],["9861","\uC05D\uC05E\uC05F\uC061",6,"\uC06A",15],["9881","\uC07A",21,"\uC092\uC093\uC095\uC096\uC097\uC099",6,"\uC0A2\uC0A4\uC0A6",5,"\uC0AE\uC0B1\uC0B2\uC0B7",4,"\uC0BE\uC0C2\uC0C3\uC0C4\uC0C6\uC0C7\uC0CA\uC0CB\uC0CD\uC0CE\uC0CF\uC0D1",6,"\uC0DA\uC0DE",5,"\uC0E6\uC0E7\uC0E9\uC0EA\uC0EB\uC0ED",6,"\uC0F6\uC0F8\uC0FA",5,"\uC101\uC102\uC103\uC105\uC106\uC107\uC109",6,"\uC111\uC112\uC113\uC114\uC116",5,"\uC121\uC122\uC125\uC128\uC129\uC12A\uC12B\uC12E"],["9941","\uC132\uC133\uC134\uC135\uC137\uC13A\uC13B\uC13D\uC13E\uC13F\uC141",6,"\uC14A\uC14E",5,"\uC156\uC157"],["9961","\uC159\uC15A\uC15B\uC15D",6,"\uC166\uC16A",5,"\uC171\uC172\uC173\uC175\uC176\uC177\uC179\uC17A\uC17B"],["9981","\uC17C",8,"\uC186",5,"\uC18F\uC191\uC192\uC193\uC195\uC197",4,"\uC19E\uC1A0\uC1A2\uC1A3\uC1A4\uC1A6\uC1A7\uC1AA\uC1AB\uC1AD\uC1AE\uC1AF\uC1B1",11,"\uC1BE",5,"\uC1C5\uC1C6\uC1C7\uC1C9\uC1CA\uC1CB\uC1CD",6,"\uC1D5\uC1D6\uC1D9",6,"\uC1E1\uC1E2\uC1E3\uC1E5\uC1E6\uC1E7\uC1E9",6,"\uC1F2\uC1F4",7,"\uC1FE\uC1FF\uC201\uC202\uC203\uC205",6,"\uC20E\uC210\uC212",5,"\uC21A\uC21B\uC21D\uC21E\uC221\uC222\uC223"],["9a41","\uC224\uC225\uC226\uC227\uC22A\uC22C\uC22E\uC230\uC233\uC235",16],["9a61","\uC246\uC247\uC249",6,"\uC252\uC253\uC255\uC256\uC257\uC259",6,"\uC261\uC262\uC263\uC264\uC266"],["9a81","\uC267",4,"\uC26E\uC26F\uC271\uC272\uC273\uC275",6,"\uC27E\uC280\uC282",5,"\uC28A",5,"\uC291",6,"\uC299\uC29A\uC29C\uC29E",5,"\uC2A6\uC2A7\uC2A9\uC2AA\uC2AB\uC2AE",5,"\uC2B6\uC2B8\uC2BA",33,"\uC2DE\uC2DF\uC2E1\uC2E2\uC2E5",5,"\uC2EE\uC2F0\uC2F2\uC2F3\uC2F4\uC2F5\uC2F7\uC2FA\uC2FD\uC2FE\uC2FF\uC301",6,"\uC30A\uC30B\uC30E\uC30F"],["9b41","\uC310\uC311\uC312\uC316\uC317\uC319\uC31A\uC31B\uC31D",6,"\uC326\uC327\uC32A",8],["9b61","\uC333",17,"\uC346",7],["9b81","\uC34E",25,"\uC36A\uC36B\uC36D\uC36E\uC36F\uC371\uC373",4,"\uC37A\uC37B\uC37E",5,"\uC385\uC386\uC387\uC389\uC38A\uC38B\uC38D",50,"\uC3C1",22,"\uC3DA"],["9c41","\uC3DB\uC3DD\uC3DE\uC3E1\uC3E3",4,"\uC3EA\uC3EB\uC3EC\uC3EE",5,"\uC3F6\uC3F7\uC3F9",5],["9c61","\uC3FF",8,"\uC409",6,"\uC411",9],["9c81","\uC41B",8,"\uC425",6,"\uC42D\uC42E\uC42F\uC431\uC432\uC433\uC435",6,"\uC43E",9,"\uC449",26,"\uC466\uC467\uC469\uC46A\uC46B\uC46D",6,"\uC476\uC477\uC478\uC47A",5,"\uC481",18,"\uC495",6,"\uC49D",12],["9d41","\uC4AA",13,"\uC4B9\uC4BA\uC4BB\uC4BD",8],["9d61","\uC4C6",25],["9d81","\uC4E0",8,"\uC4EA",5,"\uC4F2\uC4F3\uC4F5\uC4F6\uC4F7\uC4F9\uC4FB\uC4FC\uC4FD\uC4FE\uC502",9,"\uC50D\uC50E\uC50F\uC511\uC512\uC513\uC515",6,"\uC51D",10,"\uC52A\uC52B\uC52D\uC52E\uC52F\uC531",6,"\uC53A\uC53C\uC53E",5,"\uC546\uC547\uC54B\uC54F\uC550\uC551\uC552\uC556\uC55A\uC55B\uC55C\uC55F\uC562\uC563\uC565\uC566\uC567\uC569",6,"\uC572\uC576",5,"\uC57E\uC57F\uC581\uC582\uC583\uC585\uC586\uC588\uC589\uC58A\uC58B\uC58E\uC590\uC592\uC593\uC594"],["9e41","\uC596\uC599\uC59A\uC59B\uC59D\uC59E\uC59F\uC5A1",7,"\uC5AA",9,"\uC5B6"],["9e61","\uC5B7\uC5BA\uC5BF",4,"\uC5CB\uC5CD\uC5CF\uC5D2\uC5D3\uC5D5\uC5D6\uC5D7\uC5D9",6,"\uC5E2\uC5E4\uC5E6\uC5E7"],["9e81","\uC5E8\uC5E9\uC5EA\uC5EB\uC5EF\uC5F1\uC5F2\uC5F3\uC5F5\uC5F8\uC5F9\uC5FA\uC5FB\uC602\uC603\uC604\uC609\uC60A\uC60B\uC60D\uC60E\uC60F\uC611",6,"\uC61A\uC61D",6,"\uC626\uC627\uC629\uC62A\uC62B\uC62F\uC631\uC632\uC636\uC638\uC63A\uC63C\uC63D\uC63E\uC63F\uC642\uC643\uC645\uC646\uC647\uC649",6,"\uC652\uC656",5,"\uC65E\uC65F\uC661",10,"\uC66D\uC66E\uC670\uC672",5,"\uC67A\uC67B\uC67D\uC67E\uC67F\uC681",6,"\uC68A\uC68C\uC68E",5,"\uC696\uC697\uC699\uC69A\uC69B\uC69D",6,"\uC6A6"],["9f41","\uC6A8\uC6AA",5,"\uC6B2\uC6B3\uC6B5\uC6B6\uC6B7\uC6BB",4,"\uC6C2\uC6C4\uC6C6",5,"\uC6CE"],["9f61","\uC6CF\uC6D1\uC6D2\uC6D3\uC6D5",6,"\uC6DE\uC6DF\uC6E2",5,"\uC6EA\uC6EB\uC6ED\uC6EE\uC6EF\uC6F1\uC6F2"],["9f81","\uC6F3",4,"\uC6FA\uC6FB\uC6FC\uC6FE",5,"\uC706\uC707\uC709\uC70A\uC70B\uC70D",6,"\uC716\uC718\uC71A",5,"\uC722\uC723\uC725\uC726\uC727\uC729",6,"\uC732\uC734\uC736\uC738\uC739\uC73A\uC73B\uC73E\uC73F\uC741\uC742\uC743\uC745",4,"\uC74B\uC74E\uC750\uC759\uC75A\uC75B\uC75D\uC75E\uC75F\uC761",6,"\uC769\uC76A\uC76C",7,"\uC776\uC777\uC779\uC77A\uC77B\uC77F\uC780\uC781\uC782\uC786\uC78B\uC78C\uC78D\uC78F\uC792\uC793\uC795\uC799\uC79B",4,"\uC7A2\uC7A7",4,"\uC7AE\uC7AF\uC7B1\uC7B2\uC7B3\uC7B5\uC7B6\uC7B7"],["a041","\uC7B8\uC7B9\uC7BA\uC7BB\uC7BE\uC7C2",5,"\uC7CA\uC7CB\uC7CD\uC7CF\uC7D1",6,"\uC7D9\uC7DA\uC7DB\uC7DC"],["a061","\uC7DE",5,"\uC7E5\uC7E6\uC7E7\uC7E9\uC7EA\uC7EB\uC7ED",13],["a081","\uC7FB",4,"\uC802\uC803\uC805\uC806\uC807\uC809\uC80B",4,"\uC812\uC814\uC817",4,"\uC81E\uC81F\uC821\uC822\uC823\uC825",6,"\uC82E\uC830\uC832",5,"\uC839\uC83A\uC83B\uC83D\uC83E\uC83F\uC841",6,"\uC84A\uC84B\uC84E",5,"\uC855",26,"\uC872\uC873\uC875\uC876\uC877\uC879\uC87B",4,"\uC882\uC884\uC888\uC889\uC88A\uC88E",5,"\uC895",7,"\uC89E\uC8A0\uC8A2\uC8A3\uC8A4"],["a141","\uC8A5\uC8A6\uC8A7\uC8A9",18,"\uC8BE\uC8BF\uC8C0\uC8C1"],["a161","\uC8C2\uC8C3\uC8C5\uC8C6\uC8C7\uC8C9\uC8CA\uC8CB\uC8CD",6,"\uC8D6\uC8D8\uC8DA",5,"\uC8E2\uC8E3\uC8E5"],["a181","\uC8E6",14,"\uC8F6",5,"\uC8FE\uC8FF\uC901\uC902\uC903\uC907",4,"\uC90E\u3000\u3001\u3002\xB7\u2025\u2026\xA8\u3003\xAD\u2015\u2225\uFF3C\u223C\u2018\u2019\u201C\u201D\u3014\u3015\u3008",9,"\xB1\xD7\xF7\u2260\u2264\u2265\u221E\u2234\xB0\u2032\u2033\u2103\u212B\uFFE0\uFFE1\uFFE5\u2642\u2640\u2220\u22A5\u2312\u2202\u2207\u2261\u2252\xA7\u203B\u2606\u2605\u25CB\u25CF\u25CE\u25C7\u25C6\u25A1\u25A0\u25B3\u25B2\u25BD\u25BC\u2192\u2190\u2191\u2193\u2194\u3013\u226A\u226B\u221A\u223D\u221D\u2235\u222B\u222C\u2208\u220B\u2286\u2287\u2282\u2283\u222A\u2229\u2227\u2228\uFFE2"],["a241","\uC910\uC912",5,"\uC919",18],["a261","\uC92D",6,"\uC935",18],["a281","\uC948",7,"\uC952\uC953\uC955\uC956\uC957\uC959",6,"\uC962\uC964",7,"\uC96D\uC96E\uC96F\u21D2\u21D4\u2200\u2203\xB4\uFF5E\u02C7\u02D8\u02DD\u02DA\u02D9\xB8\u02DB\xA1\xBF\u02D0\u222E\u2211\u220F\xA4\u2109\u2030\u25C1\u25C0\u25B7\u25B6\u2664\u2660\u2661\u2665\u2667\u2663\u2299\u25C8\u25A3\u25D0\u25D1\u2592\u25A4\u25A5\u25A8\u25A7\u25A6\u25A9\u2668\u260F\u260E\u261C\u261E\xB6\u2020\u2021\u2195\u2197\u2199\u2196\u2198\u266D\u2669\u266A\u266C\u327F\u321C\u2116\u33C7\u2122\u33C2\u33D8\u2121\u20AC\xAE"],["a341","\uC971\uC972\uC973\uC975",6,"\uC97D",10,"\uC98A\uC98B\uC98D\uC98E\uC98F"],["a361","\uC991",6,"\uC99A\uC99C\uC99E",16],["a381","\uC9AF",16,"\uC9C2\uC9C3\uC9C5\uC9C6\uC9C9\uC9CB",4,"\uC9D2\uC9D4\uC9D7\uC9D8\uC9DB\uFF01",58,"\uFFE6\uFF3D",32,"\uFFE3"],["a441","\uC9DE\uC9DF\uC9E1\uC9E3\uC9E5\uC9E6\uC9E8\uC9E9\uC9EA\uC9EB\uC9EE\uC9F2",5,"\uC9FA\uC9FB\uC9FD\uC9FE\uC9FF\uCA01\uCA02\uCA03\uCA04"],["a461","\uCA05\uCA06\uCA07\uCA0A\uCA0E",5,"\uCA15\uCA16\uCA17\uCA19",12],["a481","\uCA26\uCA27\uCA28\uCA2A",28,"\u3131",93],["a541","\uCA47",4,"\uCA4E\uCA4F\uCA51\uCA52\uCA53\uCA55",6,"\uCA5E\uCA62",5,"\uCA69\uCA6A"],["a561","\uCA6B",17,"\uCA7E",5,"\uCA85\uCA86"],["a581","\uCA87",16,"\uCA99",14,"\u2170",9],["a5b0","\u2160",9],["a5c1","\u0391",16,"\u03A3",6],["a5e1","\u03B1",16,"\u03C3",6],["a641","\uCAA8",19,"\uCABE\uCABF\uCAC1\uCAC2\uCAC3\uCAC5"],["a661","\uCAC6",5,"\uCACE\uCAD0\uCAD2\uCAD4\uCAD5\uCAD6\uCAD7\uCADA",5,"\uCAE1",6],["a681","\uCAE8\uCAE9\uCAEA\uCAEB\uCAED",6,"\uCAF5",18,"\uCB09\uCB0A\u2500\u2502\u250C\u2510\u2518\u2514\u251C\u252C\u2524\u2534\u253C\u2501\u2503\u250F\u2513\u251B\u2517\u2523\u2533\u252B\u253B\u254B\u2520\u252F\u2528\u2537\u253F\u251D\u2530\u2525\u2538\u2542\u2512\u2511\u251A\u2519\u2516\u2515\u250E\u250D\u251E\u251F\u2521\u2522\u2526\u2527\u2529\u252A\u252D\u252E\u2531\u2532\u2535\u2536\u2539\u253A\u253D\u253E\u2540\u2541\u2543",7],["a741","\uCB0B",4,"\uCB11\uCB12\uCB13\uCB15\uCB16\uCB17\uCB19",6,"\uCB22",7],["a761","\uCB2A",22,"\uCB42\uCB43\uCB44"],["a781","\uCB45\uCB46\uCB47\uCB4A\uCB4B\uCB4D\uCB4E\uCB4F\uCB51",6,"\uCB5A\uCB5B\uCB5C\uCB5E",5,"\uCB65",7,"\u3395\u3396\u3397\u2113\u3398\u33C4\u33A3\u33A4\u33A5\u33A6\u3399",9,"\u33CA\u338D\u338E\u338F\u33CF\u3388\u3389\u33C8\u33A7\u33A8\u33B0",9,"\u3380",4,"\u33BA",5,"\u3390",4,"\u2126\u33C0\u33C1\u338A\u338B\u338C\u33D6\u33C5\u33AD\u33AE\u33AF\u33DB\u33A9\u33AA\u33AB\u33AC\u33DD\u33D0\u33D3\u33C3\u33C9\u33DC\u33C6"],["a841","\uCB6D",10,"\uCB7A",14],["a861","\uCB89",18,"\uCB9D",6],["a881","\uCBA4",19,"\uCBB9",11,"\xC6\xD0\xAA\u0126"],["a8a6","\u0132"],["a8a8","\u013F\u0141\xD8\u0152\xBA\xDE\u0166\u014A"],["a8b1","\u3260",27,"\u24D0",25,"\u2460",14,"\xBD\u2153\u2154\xBC\xBE\u215B\u215C\u215D\u215E"],["a941","\uCBC5",14,"\uCBD5",10],["a961","\uCBE0\uCBE1\uCBE2\uCBE3\uCBE5\uCBE6\uCBE8\uCBEA",18],["a981","\uCBFD",14,"\uCC0E\uCC0F\uCC11\uCC12\uCC13\uCC15",6,"\uCC1E\uCC1F\uCC20\uCC23\uCC24\xE6\u0111\xF0\u0127\u0131\u0133\u0138\u0140\u0142\xF8\u0153\xDF\xFE\u0167\u014B\u0149\u3200",27,"\u249C",25,"\u2474",14,"\xB9\xB2\xB3\u2074\u207F\u2081\u2082\u2083\u2084"],["aa41","\uCC25\uCC26\uCC2A\uCC2B\uCC2D\uCC2F\uCC31",6,"\uCC3A\uCC3F",4,"\uCC46\uCC47\uCC49\uCC4A\uCC4B\uCC4D\uCC4E"],["aa61","\uCC4F",4,"\uCC56\uCC5A",5,"\uCC61\uCC62\uCC63\uCC65\uCC67\uCC69",6,"\uCC71\uCC72"],["aa81","\uCC73\uCC74\uCC76",29,"\u3041",82],["ab41","\uCC94\uCC95\uCC96\uCC97\uCC9A\uCC9B\uCC9D\uCC9E\uCC9F\uCCA1",6,"\uCCAA\uCCAE",5,"\uCCB6\uCCB7\uCCB9"],["ab61","\uCCBA\uCCBB\uCCBD",6,"\uCCC6\uCCC8\uCCCA",5,"\uCCD1\uCCD2\uCCD3\uCCD5",5],["ab81","\uCCDB",8,"\uCCE5",6,"\uCCED\uCCEE\uCCEF\uCCF1",12,"\u30A1",85],["ac41","\uCCFE\uCCFF\uCD00\uCD02",5,"\uCD0A\uCD0B\uCD0D\uCD0E\uCD0F\uCD11",6,"\uCD1A\uCD1C\uCD1E\uCD1F\uCD20"],["ac61","\uCD21\uCD22\uCD23\uCD25\uCD26\uCD27\uCD29\uCD2A\uCD2B\uCD2D",11,"\uCD3A",4],["ac81","\uCD3F",28,"\uCD5D\uCD5E\uCD5F\u0410",5,"\u0401\u0416",25],["acd1","\u0430",5,"\u0451\u0436",25],["ad41","\uCD61\uCD62\uCD63\uCD65",6,"\uCD6E\uCD70\uCD72",5,"\uCD79",7],["ad61","\uCD81",6,"\uCD89",10,"\uCD96\uCD97\uCD99\uCD9A\uCD9B\uCD9D\uCD9E\uCD9F"],["ad81","\uCDA0\uCDA1\uCDA2\uCDA3\uCDA6\uCDA8\uCDAA",5,"\uCDB1",18,"\uCDC5"],["ae41","\uCDC6",5,"\uCDCD\uCDCE\uCDCF\uCDD1",16],["ae61","\uCDE2",5,"\uCDE9\uCDEA\uCDEB\uCDED\uCDEE\uCDEF\uCDF1",6,"\uCDFA\uCDFC\uCDFE",4],["ae81","\uCE03\uCE05\uCE06\uCE07\uCE09\uCE0A\uCE0B\uCE0D",6,"\uCE15\uCE16\uCE17\uCE18\uCE1A",5,"\uCE22\uCE23\uCE25\uCE26\uCE27\uCE29\uCE2A\uCE2B"],["af41","\uCE2C\uCE2D\uCE2E\uCE2F\uCE32\uCE34\uCE36",19],["af61","\uCE4A",13,"\uCE5A\uCE5B\uCE5D\uCE5E\uCE62",5,"\uCE6A\uCE6C"],["af81","\uCE6E",5,"\uCE76\uCE77\uCE79\uCE7A\uCE7B\uCE7D",6,"\uCE86\uCE88\uCE8A",5,"\uCE92\uCE93\uCE95\uCE96\uCE97\uCE99"],["b041","\uCE9A",5,"\uCEA2\uCEA6",5,"\uCEAE",12],["b061","\uCEBB",5,"\uCEC2",19],["b081","\uCED6",13,"\uCEE6\uCEE7\uCEE9\uCEEA\uCEED",6,"\uCEF6\uCEFA",5,"\uAC00\uAC01\uAC04\uAC07\uAC08\uAC09\uAC0A\uAC10",7,"\uAC19",4,"\uAC20\uAC24\uAC2C\uAC2D\uAC2F\uAC30\uAC31\uAC38\uAC39\uAC3C\uAC40\uAC4B\uAC4D\uAC54\uAC58\uAC5C\uAC70\uAC71\uAC74\uAC77\uAC78\uAC7A\uAC80\uAC81\uAC83\uAC84\uAC85\uAC86\uAC89\uAC8A\uAC8B\uAC8C\uAC90\uAC94\uAC9C\uAC9D\uAC9F\uACA0\uACA1\uACA8\uACA9\uACAA\uACAC\uACAF\uACB0\uACB8\uACB9\uACBB\uACBC\uACBD\uACC1\uACC4\uACC8\uACCC\uACD5\uACD7\uACE0\uACE1\uACE4\uACE7\uACE8\uACEA\uACEC\uACEF\uACF0\uACF1\uACF3\uACF5\uACF6\uACFC\uACFD\uAD00\uAD04\uAD06"],["b141","\uCF02\uCF03\uCF05\uCF06\uCF07\uCF09",6,"\uCF12\uCF14\uCF16",5,"\uCF1D\uCF1E\uCF1F\uCF21\uCF22\uCF23"],["b161","\uCF25",6,"\uCF2E\uCF32",5,"\uCF39",11],["b181","\uCF45",14,"\uCF56\uCF57\uCF59\uCF5A\uCF5B\uCF5D",6,"\uCF66\uCF68\uCF6A\uCF6B\uCF6C\uAD0C\uAD0D\uAD0F\uAD11\uAD18\uAD1C\uAD20\uAD29\uAD2C\uAD2D\uAD34\uAD35\uAD38\uAD3C\uAD44\uAD45\uAD47\uAD49\uAD50\uAD54\uAD58\uAD61\uAD63\uAD6C\uAD6D\uAD70\uAD73\uAD74\uAD75\uAD76\uAD7B\uAD7C\uAD7D\uAD7F\uAD81\uAD82\uAD88\uAD89\uAD8C\uAD90\uAD9C\uAD9D\uADA4\uADB7\uADC0\uADC1\uADC4\uADC8\uADD0\uADD1\uADD3\uADDC\uADE0\uADE4\uADF8\uADF9\uADFC\uADFF\uAE00\uAE01\uAE08\uAE09\uAE0B\uAE0D\uAE14\uAE30\uAE31\uAE34\uAE37\uAE38\uAE3A\uAE40\uAE41\uAE43\uAE45\uAE46\uAE4A\uAE4C\uAE4D\uAE4E\uAE50\uAE54\uAE56\uAE5C\uAE5D\uAE5F\uAE60\uAE61\uAE65\uAE68\uAE69\uAE6C\uAE70\uAE78"],["b241","\uCF6D\uCF6E\uCF6F\uCF72\uCF73\uCF75\uCF76\uCF77\uCF79",6,"\uCF81\uCF82\uCF83\uCF84\uCF86",5,"\uCF8D"],["b261","\uCF8E",18,"\uCFA2",5,"\uCFA9"],["b281","\uCFAA",5,"\uCFB1",18,"\uCFC5",6,"\uAE79\uAE7B\uAE7C\uAE7D\uAE84\uAE85\uAE8C\uAEBC\uAEBD\uAEBE\uAEC0\uAEC4\uAECC\uAECD\uAECF\uAED0\uAED1\uAED8\uAED9\uAEDC\uAEE8\uAEEB\uAEED\uAEF4\uAEF8\uAEFC\uAF07\uAF08\uAF0D\uAF10\uAF2C\uAF2D\uAF30\uAF32\uAF34\uAF3C\uAF3D\uAF3F\uAF41\uAF42\uAF43\uAF48\uAF49\uAF50\uAF5C\uAF5D\uAF64\uAF65\uAF79\uAF80\uAF84\uAF88\uAF90\uAF91\uAF95\uAF9C\uAFB8\uAFB9\uAFBC\uAFC0\uAFC7\uAFC8\uAFC9\uAFCB\uAFCD\uAFCE\uAFD4\uAFDC\uAFE8\uAFE9\uAFF0\uAFF1\uAFF4\uAFF8\uB000\uB001\uB004\uB00C\uB010\uB014\uB01C\uB01D\uB028\uB044\uB045\uB048\uB04A\uB04C\uB04E\uB053\uB054\uB055\uB057\uB059"],["b341","\uCFCC",19,"\uCFE2\uCFE3\uCFE5\uCFE6\uCFE7\uCFE9"],["b361","\uCFEA",5,"\uCFF2\uCFF4\uCFF6",5,"\uCFFD\uCFFE\uCFFF\uD001\uD002\uD003\uD005",5],["b381","\uD00B",5,"\uD012",5,"\uD019",19,"\uB05D\uB07C\uB07D\uB080\uB084\uB08C\uB08D\uB08F\uB091\uB098\uB099\uB09A\uB09C\uB09F\uB0A0\uB0A1\uB0A2\uB0A8\uB0A9\uB0AB",4,"\uB0B1\uB0B3\uB0B4\uB0B5\uB0B8\uB0BC\uB0C4\uB0C5\uB0C7\uB0C8\uB0C9\uB0D0\uB0D1\uB0D4\uB0D8\uB0E0\uB0E5\uB108\uB109\uB10B\uB10C\uB110\uB112\uB113\uB118\uB119\uB11B\uB11C\uB11D\uB123\uB124\uB125\uB128\uB12C\uB134\uB135\uB137\uB138\uB139\uB140\uB141\uB144\uB148\uB150\uB151\uB154\uB155\uB158\uB15C\uB160\uB178\uB179\uB17C\uB180\uB182\uB188\uB189\uB18B\uB18D\uB192\uB193\uB194\uB198\uB19C\uB1A8\uB1CC\uB1D0\uB1D4\uB1DC\uB1DD"],["b441","\uD02E",5,"\uD036\uD037\uD039\uD03A\uD03B\uD03D",6,"\uD046\uD048\uD04A",5],["b461","\uD051\uD052\uD053\uD055\uD056\uD057\uD059",6,"\uD061",10,"\uD06E\uD06F"],["b481","\uD071\uD072\uD073\uD075",6,"\uD07E\uD07F\uD080\uD082",18,"\uB1DF\uB1E8\uB1E9\uB1EC\uB1F0\uB1F9\uB1FB\uB1FD\uB204\uB205\uB208\uB20B\uB20C\uB214\uB215\uB217\uB219\uB220\uB234\uB23C\uB258\uB25C\uB260\uB268\uB269\uB274\uB275\uB27C\uB284\uB285\uB289\uB290\uB291\uB294\uB298\uB299\uB29A\uB2A0\uB2A1\uB2A3\uB2A5\uB2A6\uB2AA\uB2AC\uB2B0\uB2B4\uB2C8\uB2C9\uB2CC\uB2D0\uB2D2\uB2D8\uB2D9\uB2DB\uB2DD\uB2E2\uB2E4\uB2E5\uB2E6\uB2E8\uB2EB",4,"\uB2F3\uB2F4\uB2F5\uB2F7",4,"\uB2FF\uB300\uB301\uB304\uB308\uB310\uB311\uB313\uB314\uB315\uB31C\uB354\uB355\uB356\uB358\uB35B\uB35C\uB35E\uB35F\uB364\uB365"],["b541","\uD095",14,"\uD0A6\uD0A7\uD0A9\uD0AA\uD0AB\uD0AD",5],["b561","\uD0B3\uD0B6\uD0B8\uD0BA",5,"\uD0C2\uD0C3\uD0C5\uD0C6\uD0C7\uD0CA",5,"\uD0D2\uD0D6",4],["b581","\uD0DB\uD0DE\uD0DF\uD0E1\uD0E2\uD0E3\uD0E5",6,"\uD0EE\uD0F2",5,"\uD0F9",11,"\uB367\uB369\uB36B\uB36E\uB370\uB371\uB374\uB378\uB380\uB381\uB383\uB384\uB385\uB38C\uB390\uB394\uB3A0\uB3A1\uB3A8\uB3AC\uB3C4\uB3C5\uB3C8\uB3CB\uB3CC\uB3CE\uB3D0\uB3D4\uB3D5\uB3D7\uB3D9\uB3DB\uB3DD\uB3E0\uB3E4\uB3E8\uB3FC\uB410\uB418\uB41C\uB420\uB428\uB429\uB42B\uB434\uB450\uB451\uB454\uB458\uB460\uB461\uB463\uB465\uB46C\uB480\uB488\uB49D\uB4A4\uB4A8\uB4AC\uB4B5\uB4B7\uB4B9\uB4C0\uB4C4\uB4C8\uB4D0\uB4D5\uB4DC\uB4DD\uB4E0\uB4E3\uB4E4\uB4E6\uB4EC\uB4ED\uB4EF\uB4F1\uB4F8\uB514\uB515\uB518\uB51B\uB51C\uB524\uB525\uB527\uB528\uB529\uB52A\uB530\uB531\uB534\uB538"],["b641","\uD105",7,"\uD10E",17],["b661","\uD120",15,"\uD132\uD133\uD135\uD136\uD137\uD139\uD13B\uD13C\uD13D\uD13E"],["b681","\uD13F\uD142\uD146",5,"\uD14E\uD14F\uD151\uD152\uD153\uD155",6,"\uD15E\uD160\uD162",5,"\uD169\uD16A\uD16B\uD16D\uB540\uB541\uB543\uB544\uB545\uB54B\uB54C\uB54D\uB550\uB554\uB55C\uB55D\uB55F\uB560\uB561\uB5A0\uB5A1\uB5A4\uB5A8\uB5AA\uB5AB\uB5B0\uB5B1\uB5B3\uB5B4\uB5B5\uB5BB\uB5BC\uB5BD\uB5C0\uB5C4\uB5CC\uB5CD\uB5CF\uB5D0\uB5D1\uB5D8\uB5EC\uB610\uB611\uB614\uB618\uB625\uB62C\uB634\uB648\uB664\uB668\uB69C\uB69D\uB6A0\uB6A4\uB6AB\uB6AC\uB6B1\uB6D4\uB6F0\uB6F4\uB6F8\uB700\uB701\uB705\uB728\uB729\uB72C\uB72F\uB730\uB738\uB739\uB73B\uB744\uB748\uB74C\uB754\uB755\uB760\uB764\uB768\uB770\uB771\uB773\uB775\uB77C\uB77D\uB780\uB784\uB78C\uB78D\uB78F\uB790\uB791\uB792\uB796\uB797"],["b741","\uD16E",13,"\uD17D",6,"\uD185\uD186\uD187\uD189\uD18A"],["b761","\uD18B",20,"\uD1A2\uD1A3\uD1A5\uD1A6\uD1A7"],["b781","\uD1A9",6,"\uD1B2\uD1B4\uD1B6\uD1B7\uD1B8\uD1B9\uD1BB\uD1BD\uD1BE\uD1BF\uD1C1",14,"\uB798\uB799\uB79C\uB7A0\uB7A8\uB7A9\uB7AB\uB7AC\uB7AD\uB7B4\uB7B5\uB7B8\uB7C7\uB7C9\uB7EC\uB7ED\uB7F0\uB7F4\uB7FC\uB7FD\uB7FF\uB800\uB801\uB807\uB808\uB809\uB80C\uB810\uB818\uB819\uB81B\uB81D\uB824\uB825\uB828\uB82C\uB834\uB835\uB837\uB838\uB839\uB840\uB844\uB851\uB853\uB85C\uB85D\uB860\uB864\uB86C\uB86D\uB86F\uB871\uB878\uB87C\uB88D\uB8A8\uB8B0\uB8B4\uB8B8\uB8C0\uB8C1\uB8C3\uB8C5\uB8CC\uB8D0\uB8D4\uB8DD\uB8DF\uB8E1\uB8E8\uB8E9\uB8EC\uB8F0\uB8F8\uB8F9\uB8FB\uB8FD\uB904\uB918\uB920\uB93C\uB93D\uB940\uB944\uB94C\uB94F\uB951\uB958\uB959\uB95C\uB960\uB968\uB969"],["b841","\uD1D0",7,"\uD1D9",17],["b861","\uD1EB",8,"\uD1F5\uD1F6\uD1F7\uD1F9",13],["b881","\uD208\uD20A",5,"\uD211",24,"\uB96B\uB96D\uB974\uB975\uB978\uB97C\uB984\uB985\uB987\uB989\uB98A\uB98D\uB98E\uB9AC\uB9AD\uB9B0\uB9B4\uB9BC\uB9BD\uB9BF\uB9C1\uB9C8\uB9C9\uB9CC\uB9CE",4,"\uB9D8\uB9D9\uB9DB\uB9DD\uB9DE\uB9E1\uB9E3\uB9E4\uB9E5\uB9E8\uB9EC\uB9F4\uB9F5\uB9F7\uB9F8\uB9F9\uB9FA\uBA00\uBA01\uBA08\uBA15\uBA38\uBA39\uBA3C\uBA40\uBA42\uBA48\uBA49\uBA4B\uBA4D\uBA4E\uBA53\uBA54\uBA55\uBA58\uBA5C\uBA64\uBA65\uBA67\uBA68\uBA69\uBA70\uBA71\uBA74\uBA78\uBA83\uBA84\uBA85\uBA87\uBA8C\uBAA8\uBAA9\uBAAB\uBAAC\uBAB0\uBAB2\uBAB8\uBAB9\uBABB\uBABD\uBAC4\uBAC8\uBAD8\uBAD9\uBAFC"],["b941","\uD22A\uD22B\uD22E\uD22F\uD231\uD232\uD233\uD235",6,"\uD23E\uD240\uD242",5,"\uD249\uD24A\uD24B\uD24C"],["b961","\uD24D",14,"\uD25D",6,"\uD265\uD266\uD267\uD268"],["b981","\uD269",22,"\uD282\uD283\uD285\uD286\uD287\uD289\uD28A\uD28B\uD28C\uBB00\uBB04\uBB0D\uBB0F\uBB11\uBB18\uBB1C\uBB20\uBB29\uBB2B\uBB34\uBB35\uBB36\uBB38\uBB3B\uBB3C\uBB3D\uBB3E\uBB44\uBB45\uBB47\uBB49\uBB4D\uBB4F\uBB50\uBB54\uBB58\uBB61\uBB63\uBB6C\uBB88\uBB8C\uBB90\uBBA4\uBBA8\uBBAC\uBBB4\uBBB7\uBBC0\uBBC4\uBBC8\uBBD0\uBBD3\uBBF8\uBBF9\uBBFC\uBBFF\uBC00\uBC02\uBC08\uBC09\uBC0B\uBC0C\uBC0D\uBC0F\uBC11\uBC14",4,"\uBC1B",4,"\uBC24\uBC25\uBC27\uBC29\uBC2D\uBC30\uBC31\uBC34\uBC38\uBC40\uBC41\uBC43\uBC44\uBC45\uBC49\uBC4C\uBC4D\uBC50\uBC5D\uBC84\uBC85\uBC88\uBC8B\uBC8C\uBC8E\uBC94\uBC95\uBC97"],["ba41","\uD28D\uD28E\uD28F\uD292\uD293\uD294\uD296",5,"\uD29D\uD29E\uD29F\uD2A1\uD2A2\uD2A3\uD2A5",6,"\uD2AD"],["ba61","\uD2AE\uD2AF\uD2B0\uD2B2",5,"\uD2BA\uD2BB\uD2BD\uD2BE\uD2C1\uD2C3",4,"\uD2CA\uD2CC",5],["ba81","\uD2D2\uD2D3\uD2D5\uD2D6\uD2D7\uD2D9\uD2DA\uD2DB\uD2DD",6,"\uD2E6",9,"\uD2F2\uD2F3\uD2F5\uD2F6\uD2F7\uD2F9\uD2FA\uBC99\uBC9A\uBCA0\uBCA1\uBCA4\uBCA7\uBCA8\uBCB0\uBCB1\uBCB3\uBCB4\uBCB5\uBCBC\uBCBD\uBCC0\uBCC4\uBCCD\uBCCF\uBCD0\uBCD1\uBCD5\uBCD8\uBCDC\uBCF4\uBCF5\uBCF6\uBCF8\uBCFC\uBD04\uBD05\uBD07\uBD09\uBD10\uBD14\uBD24\uBD2C\uBD40\uBD48\uBD49\uBD4C\uBD50\uBD58\uBD59\uBD64\uBD68\uBD80\uBD81\uBD84\uBD87\uBD88\uBD89\uBD8A\uBD90\uBD91\uBD93\uBD95\uBD99\uBD9A\uBD9C\uBDA4\uBDB0\uBDB8\uBDD4\uBDD5\uBDD8\uBDDC\uBDE9\uBDF0\uBDF4\uBDF8\uBE00\uBE03\uBE05\uBE0C\uBE0D\uBE10\uBE14\uBE1C\uBE1D\uBE1F\uBE44\uBE45\uBE48\uBE4C\uBE4E\uBE54\uBE55\uBE57\uBE59\uBE5A\uBE5B\uBE60\uBE61\uBE64"],["bb41","\uD2FB",4,"\uD302\uD304\uD306",5,"\uD30F\uD311\uD312\uD313\uD315\uD317",4,"\uD31E\uD322\uD323"],["bb61","\uD324\uD326\uD327\uD32A\uD32B\uD32D\uD32E\uD32F\uD331",6,"\uD33A\uD33E",5,"\uD346\uD347\uD348\uD349"],["bb81","\uD34A",31,"\uBE68\uBE6A\uBE70\uBE71\uBE73\uBE74\uBE75\uBE7B\uBE7C\uBE7D\uBE80\uBE84\uBE8C\uBE8D\uBE8F\uBE90\uBE91\uBE98\uBE99\uBEA8\uBED0\uBED1\uBED4\uBED7\uBED8\uBEE0\uBEE3\uBEE4\uBEE5\uBEEC\uBF01\uBF08\uBF09\uBF18\uBF19\uBF1B\uBF1C\uBF1D\uBF40\uBF41\uBF44\uBF48\uBF50\uBF51\uBF55\uBF94\uBFB0\uBFC5\uBFCC\uBFCD\uBFD0\uBFD4\uBFDC\uBFDF\uBFE1\uC03C\uC051\uC058\uC05C\uC060\uC068\uC069\uC090\uC091\uC094\uC098\uC0A0\uC0A1\uC0A3\uC0A5\uC0AC\uC0AD\uC0AF\uC0B0\uC0B3\uC0B4\uC0B5\uC0B6\uC0BC\uC0BD\uC0BF\uC0C0\uC0C1\uC0C5\uC0C8\uC0C9\uC0CC\uC0D0\uC0D8\uC0D9\uC0DB\uC0DC\uC0DD\uC0E4"],["bc41","\uD36A",17,"\uD37E\uD37F\uD381\uD382\uD383\uD385\uD386\uD387"],["bc61","\uD388\uD389\uD38A\uD38B\uD38E\uD392",5,"\uD39A\uD39B\uD39D\uD39E\uD39F\uD3A1",6,"\uD3AA\uD3AC\uD3AE"],["bc81","\uD3AF",4,"\uD3B5\uD3B6\uD3B7\uD3B9\uD3BA\uD3BB\uD3BD",6,"\uD3C6\uD3C7\uD3CA",5,"\uD3D1",5,"\uC0E5\uC0E8\uC0EC\uC0F4\uC0F5\uC0F7\uC0F9\uC100\uC104\uC108\uC110\uC115\uC11C",4,"\uC123\uC124\uC126\uC127\uC12C\uC12D\uC12F\uC130\uC131\uC136\uC138\uC139\uC13C\uC140\uC148\uC149\uC14B\uC14C\uC14D\uC154\uC155\uC158\uC15C\uC164\uC165\uC167\uC168\uC169\uC170\uC174\uC178\uC185\uC18C\uC18D\uC18E\uC190\uC194\uC196\uC19C\uC19D\uC19F\uC1A1\uC1A5\uC1A8\uC1A9\uC1AC\uC1B0\uC1BD\uC1C4\uC1C8\uC1CC\uC1D4\uC1D7\uC1D8\uC1E0\uC1E4\uC1E8\uC1F0\uC1F1\uC1F3\uC1FC\uC1FD\uC200\uC204\uC20C\uC20D\uC20F\uC211\uC218\uC219\uC21C\uC21F\uC220\uC228\uC229\uC22B\uC22D"],["bd41","\uD3D7\uD3D9",7,"\uD3E2\uD3E4",7,"\uD3EE\uD3EF\uD3F1\uD3F2\uD3F3\uD3F5\uD3F6\uD3F7"],["bd61","\uD3F8\uD3F9\uD3FA\uD3FB\uD3FE\uD400\uD402",5,"\uD409",13],["bd81","\uD417",5,"\uD41E",25,"\uC22F\uC231\uC232\uC234\uC248\uC250\uC251\uC254\uC258\uC260\uC265\uC26C\uC26D\uC270\uC274\uC27C\uC27D\uC27F\uC281\uC288\uC289\uC290\uC298\uC29B\uC29D\uC2A4\uC2A5\uC2A8\uC2AC\uC2AD\uC2B4\uC2B5\uC2B7\uC2B9\uC2DC\uC2DD\uC2E0\uC2E3\uC2E4\uC2EB\uC2EC\uC2ED\uC2EF\uC2F1\uC2F6\uC2F8\uC2F9\uC2FB\uC2FC\uC300\uC308\uC309\uC30C\uC30D\uC313\uC314\uC315\uC318\uC31C\uC324\uC325\uC328\uC329\uC345\uC368\uC369\uC36C\uC370\uC372\uC378\uC379\uC37C\uC37D\uC384\uC388\uC38C\uC3C0\uC3D8\uC3D9\uC3DC\uC3DF\uC3E0\uC3E2\uC3E8\uC3E9\uC3ED\uC3F4\uC3F5\uC3F8\uC408\uC410\uC424\uC42C\uC430"],["be41","\uD438",7,"\uD441\uD442\uD443\uD445",14],["be61","\uD454",7,"\uD45D\uD45E\uD45F\uD461\uD462\uD463\uD465",7,"\uD46E\uD470\uD471\uD472"],["be81","\uD473",4,"\uD47A\uD47B\uD47D\uD47E\uD481\uD483",4,"\uD48A\uD48C\uD48E",5,"\uD495",8,"\uC434\uC43C\uC43D\uC448\uC464\uC465\uC468\uC46C\uC474\uC475\uC479\uC480\uC494\uC49C\uC4B8\uC4BC\uC4E9\uC4F0\uC4F1\uC4F4\uC4F8\uC4FA\uC4FF\uC500\uC501\uC50C\uC510\uC514\uC51C\uC528\uC529\uC52C\uC530\uC538\uC539\uC53B\uC53D\uC544\uC545\uC548\uC549\uC54A\uC54C\uC54D\uC54E\uC553\uC554\uC555\uC557\uC558\uC559\uC55D\uC55E\uC560\uC561\uC564\uC568\uC570\uC571\uC573\uC574\uC575\uC57C\uC57D\uC580\uC584\uC587\uC58C\uC58D\uC58F\uC591\uC595\uC597\uC598\uC59C\uC5A0\uC5A9\uC5B4\uC5B5\uC5B8\uC5B9\uC5BB\uC5BC\uC5BD\uC5BE\uC5C4",6,"\uC5CC\uC5CE"],["bf41","\uD49E",10,"\uD4AA",14],["bf61","\uD4B9",18,"\uD4CD\uD4CE\uD4CF\uD4D1\uD4D2\uD4D3\uD4D5"],["bf81","\uD4D6",5,"\uD4DD\uD4DE\uD4E0",7,"\uD4E9\uD4EA\uD4EB\uD4ED\uD4EE\uD4EF\uD4F1",6,"\uD4F9\uD4FA\uD4FC\uC5D0\uC5D1\uC5D4\uC5D8\uC5E0\uC5E1\uC5E3\uC5E5\uC5EC\uC5ED\uC5EE\uC5F0\uC5F4\uC5F6\uC5F7\uC5FC",5,"\uC605\uC606\uC607\uC608\uC60C\uC610\uC618\uC619\uC61B\uC61C\uC624\uC625\uC628\uC62C\uC62D\uC62E\uC630\uC633\uC634\uC635\uC637\uC639\uC63B\uC640\uC641\uC644\uC648\uC650\uC651\uC653\uC654\uC655\uC65C\uC65D\uC660\uC66C\uC66F\uC671\uC678\uC679\uC67C\uC680\uC688\uC689\uC68B\uC68D\uC694\uC695\uC698\uC69C\uC6A4\uC6A5\uC6A7\uC6A9\uC6B0\uC6B1\uC6B4\uC6B8\uC6B9\uC6BA\uC6C0\uC6C1\uC6C3\uC6C5\uC6CC\uC6CD\uC6D0\uC6D4\uC6DC\uC6DD\uC6E0\uC6E1\uC6E8"],["c041","\uD4FE",5,"\uD505\uD506\uD507\uD509\uD50A\uD50B\uD50D",6,"\uD516\uD518",5],["c061","\uD51E",25],["c081","\uD538\uD539\uD53A\uD53B\uD53E\uD53F\uD541\uD542\uD543\uD545",6,"\uD54E\uD550\uD552",5,"\uD55A\uD55B\uD55D\uD55E\uD55F\uD561\uD562\uD563\uC6E9\uC6EC\uC6F0\uC6F8\uC6F9\uC6FD\uC704\uC705\uC708\uC70C\uC714\uC715\uC717\uC719\uC720\uC721\uC724\uC728\uC730\uC731\uC733\uC735\uC737\uC73C\uC73D\uC740\uC744\uC74A\uC74C\uC74D\uC74F\uC751",7,"\uC75C\uC760\uC768\uC76B\uC774\uC775\uC778\uC77C\uC77D\uC77E\uC783\uC784\uC785\uC787\uC788\uC789\uC78A\uC78E\uC790\uC791\uC794\uC796\uC797\uC798\uC79A\uC7A0\uC7A1\uC7A3\uC7A4\uC7A5\uC7A6\uC7AC\uC7AD\uC7B0\uC7B4\uC7BC\uC7BD\uC7BF\uC7C0\uC7C1\uC7C8\uC7C9\uC7CC\uC7CE\uC7D0\uC7D8\uC7DD\uC7E4\uC7E8\uC7EC\uC800\uC801\uC804\uC808\uC80A"],["c141","\uD564\uD566\uD567\uD56A\uD56C\uD56E",5,"\uD576\uD577\uD579\uD57A\uD57B\uD57D",6,"\uD586\uD58A\uD58B"],["c161","\uD58C\uD58D\uD58E\uD58F\uD591",19,"\uD5A6\uD5A7"],["c181","\uD5A8",31,"\uC810\uC811\uC813\uC815\uC816\uC81C\uC81D\uC820\uC824\uC82C\uC82D\uC82F\uC831\uC838\uC83C\uC840\uC848\uC849\uC84C\uC84D\uC854\uC870\uC871\uC874\uC878\uC87A\uC880\uC881\uC883\uC885\uC886\uC887\uC88B\uC88C\uC88D\uC894\uC89D\uC89F\uC8A1\uC8A8\uC8BC\uC8BD\uC8C4\uC8C8\uC8CC\uC8D4\uC8D5\uC8D7\uC8D9\uC8E0\uC8E1\uC8E4\uC8F5\uC8FC\uC8FD\uC900\uC904\uC905\uC906\uC90C\uC90D\uC90F\uC911\uC918\uC92C\uC934\uC950\uC951\uC954\uC958\uC960\uC961\uC963\uC96C\uC970\uC974\uC97C\uC988\uC989\uC98C\uC990\uC998\uC999\uC99B\uC99D\uC9C0\uC9C1\uC9C4\uC9C7\uC9C8\uC9CA\uC9D0\uC9D1\uC9D3"],["c241","\uD5CA\uD5CB\uD5CD\uD5CE\uD5CF\uD5D1\uD5D3",4,"\uD5DA\uD5DC\uD5DE",5,"\uD5E6\uD5E7\uD5E9\uD5EA\uD5EB\uD5ED\uD5EE"],["c261","\uD5EF",4,"\uD5F6\uD5F8\uD5FA",5,"\uD602\uD603\uD605\uD606\uD607\uD609",6,"\uD612"],["c281","\uD616",5,"\uD61D\uD61E\uD61F\uD621\uD622\uD623\uD625",7,"\uD62E",9,"\uD63A\uD63B\uC9D5\uC9D6\uC9D9\uC9DA\uC9DC\uC9DD\uC9E0\uC9E2\uC9E4\uC9E7\uC9EC\uC9ED\uC9EF\uC9F0\uC9F1\uC9F8\uC9F9\uC9FC\uCA00\uCA08\uCA09\uCA0B\uCA0C\uCA0D\uCA14\uCA18\uCA29\uCA4C\uCA4D\uCA50\uCA54\uCA5C\uCA5D\uCA5F\uCA60\uCA61\uCA68\uCA7D\uCA84\uCA98\uCABC\uCABD\uCAC0\uCAC4\uCACC\uCACD\uCACF\uCAD1\uCAD3\uCAD8\uCAD9\uCAE0\uCAEC\uCAF4\uCB08\uCB10\uCB14\uCB18\uCB20\uCB21\uCB41\uCB48\uCB49\uCB4C\uCB50\uCB58\uCB59\uCB5D\uCB64\uCB78\uCB79\uCB9C\uCBB8\uCBD4\uCBE4\uCBE7\uCBE9\uCC0C\uCC0D\uCC10\uCC14\uCC1C\uCC1D\uCC21\uCC22\uCC27\uCC28\uCC29\uCC2C\uCC2E\uCC30\uCC38\uCC39\uCC3B"],["c341","\uD63D\uD63E\uD63F\uD641\uD642\uD643\uD644\uD646\uD647\uD64A\uD64C\uD64E\uD64F\uD650\uD652\uD653\uD656\uD657\uD659\uD65A\uD65B\uD65D",4],["c361","\uD662",4,"\uD668\uD66A",5,"\uD672\uD673\uD675",11],["c381","\uD681\uD682\uD684\uD686",5,"\uD68E\uD68F\uD691\uD692\uD693\uD695",7,"\uD69E\uD6A0\uD6A2",5,"\uD6A9\uD6AA\uCC3C\uCC3D\uCC3E\uCC44\uCC45\uCC48\uCC4C\uCC54\uCC55\uCC57\uCC58\uCC59\uCC60\uCC64\uCC66\uCC68\uCC70\uCC75\uCC98\uCC99\uCC9C\uCCA0\uCCA8\uCCA9\uCCAB\uCCAC\uCCAD\uCCB4\uCCB5\uCCB8\uCCBC\uCCC4\uCCC5\uCCC7\uCCC9\uCCD0\uCCD4\uCCE4\uCCEC\uCCF0\uCD01\uCD08\uCD09\uCD0C\uCD10\uCD18\uCD19\uCD1B\uCD1D\uCD24\uCD28\uCD2C\uCD39\uCD5C\uCD60\uCD64\uCD6C\uCD6D\uCD6F\uCD71\uCD78\uCD88\uCD94\uCD95\uCD98\uCD9C\uCDA4\uCDA5\uCDA7\uCDA9\uCDB0\uCDC4\uCDCC\uCDD0\uCDE8\uCDEC\uCDF0\uCDF8\uCDF9\uCDFB\uCDFD\uCE04\uCE08\uCE0C\uCE14\uCE19\uCE20\uCE21\uCE24\uCE28\uCE30\uCE31\uCE33\uCE35"],["c441","\uD6AB\uD6AD\uD6AE\uD6AF\uD6B1",7,"\uD6BA\uD6BC",7,"\uD6C6\uD6C7\uD6C9\uD6CA\uD6CB"],["c461","\uD6CD\uD6CE\uD6CF\uD6D0\uD6D2\uD6D3\uD6D5\uD6D6\uD6D8\uD6DA",5,"\uD6E1\uD6E2\uD6E3\uD6E5\uD6E6\uD6E7\uD6E9",4],["c481","\uD6EE\uD6EF\uD6F1\uD6F2\uD6F3\uD6F4\uD6F6",5,"\uD6FE\uD6FF\uD701\uD702\uD703\uD705",11,"\uD712\uD713\uD714\uCE58\uCE59\uCE5C\uCE5F\uCE60\uCE61\uCE68\uCE69\uCE6B\uCE6D\uCE74\uCE75\uCE78\uCE7C\uCE84\uCE85\uCE87\uCE89\uCE90\uCE91\uCE94\uCE98\uCEA0\uCEA1\uCEA3\uCEA4\uCEA5\uCEAC\uCEAD\uCEC1\uCEE4\uCEE5\uCEE8\uCEEB\uCEEC\uCEF4\uCEF5\uCEF7\uCEF8\uCEF9\uCF00\uCF01\uCF04\uCF08\uCF10\uCF11\uCF13\uCF15\uCF1C\uCF20\uCF24\uCF2C\uCF2D\uCF2F\uCF30\uCF31\uCF38\uCF54\uCF55\uCF58\uCF5C\uCF64\uCF65\uCF67\uCF69\uCF70\uCF71\uCF74\uCF78\uCF80\uCF85\uCF8C\uCFA1\uCFA8\uCFB0\uCFC4\uCFE0\uCFE1\uCFE4\uCFE8\uCFF0\uCFF1\uCFF3\uCFF5\uCFFC\uD000\uD004\uD011\uD018\uD02D\uD034\uD035\uD038\uD03C"],["c541","\uD715\uD716\uD717\uD71A\uD71B\uD71D\uD71E\uD71F\uD721",6,"\uD72A\uD72C\uD72E",5,"\uD736\uD737\uD739"],["c561","\uD73A\uD73B\uD73D",6,"\uD745\uD746\uD748\uD74A",5,"\uD752\uD753\uD755\uD75A",4],["c581","\uD75F\uD762\uD764\uD766\uD767\uD768\uD76A\uD76B\uD76D\uD76E\uD76F\uD771\uD772\uD773\uD775",6,"\uD77E\uD77F\uD780\uD782",5,"\uD78A\uD78B\uD044\uD045\uD047\uD049\uD050\uD054\uD058\uD060\uD06C\uD06D\uD070\uD074\uD07C\uD07D\uD081\uD0A4\uD0A5\uD0A8\uD0AC\uD0B4\uD0B5\uD0B7\uD0B9\uD0C0\uD0C1\uD0C4\uD0C8\uD0C9\uD0D0\uD0D1\uD0D3\uD0D4\uD0D5\uD0DC\uD0DD\uD0E0\uD0E4\uD0EC\uD0ED\uD0EF\uD0F0\uD0F1\uD0F8\uD10D\uD130\uD131\uD134\uD138\uD13A\uD140\uD141\uD143\uD144\uD145\uD14C\uD14D\uD150\uD154\uD15C\uD15D\uD15F\uD161\uD168\uD16C\uD17C\uD184\uD188\uD1A0\uD1A1\uD1A4\uD1A8\uD1B0\uD1B1\uD1B3\uD1B5\uD1BA\uD1BC\uD1C0\uD1D8\uD1F4\uD1F8\uD207\uD209\uD210\uD22C\uD22D\uD230\uD234\uD23C\uD23D\uD23F\uD241\uD248\uD25C"],["c641","\uD78D\uD78E\uD78F\uD791",6,"\uD79A\uD79C\uD79E",5],["c6a1","\uD264\uD280\uD281\uD284\uD288\uD290\uD291\uD295\uD29C\uD2A0\uD2A4\uD2AC\uD2B1\uD2B8\uD2B9\uD2BC\uD2BF\uD2C0\uD2C2\uD2C8\uD2C9\uD2CB\uD2D4\uD2D8\uD2DC\uD2E4\uD2E5\uD2F0\uD2F1\uD2F4\uD2F8\uD300\uD301\uD303\uD305\uD30C\uD30D\uD30E\uD310\uD314\uD316\uD31C\uD31D\uD31F\uD320\uD321\uD325\uD328\uD329\uD32C\uD330\uD338\uD339\uD33B\uD33C\uD33D\uD344\uD345\uD37C\uD37D\uD380\uD384\uD38C\uD38D\uD38F\uD390\uD391\uD398\uD399\uD39C\uD3A0\uD3A8\uD3A9\uD3AB\uD3AD\uD3B4\uD3B8\uD3BC\uD3C4\uD3C5\uD3C8\uD3C9\uD3D0\uD3D8\uD3E1\uD3E3\uD3EC\uD3ED\uD3F0\uD3F4\uD3FC\uD3FD\uD3FF\uD401"],["c7a1","\uD408\uD41D\uD440\uD444\uD45C\uD460\uD464\uD46D\uD46F\uD478\uD479\uD47C\uD47F\uD480\uD482\uD488\uD489\uD48B\uD48D\uD494\uD4A9\uD4CC\uD4D0\uD4D4\uD4DC\uD4DF\uD4E8\uD4EC\uD4F0\uD4F8\uD4FB\uD4FD\uD504\uD508\uD50C\uD514\uD515\uD517\uD53C\uD53D\uD540\uD544\uD54C\uD54D\uD54F\uD551\uD558\uD559\uD55C\uD560\uD565\uD568\uD569\uD56B\uD56D\uD574\uD575\uD578\uD57C\uD584\uD585\uD587\uD588\uD589\uD590\uD5A5\uD5C8\uD5C9\uD5CC\uD5D0\uD5D2\uD5D8\uD5D9\uD5DB\uD5DD\uD5E4\uD5E5\uD5E8\uD5EC\uD5F4\uD5F5\uD5F7\uD5F9\uD600\uD601\uD604\uD608\uD610\uD611\uD613\uD614\uD615\uD61C\uD620"],["c8a1","\uD624\uD62D\uD638\uD639\uD63C\uD640\uD645\uD648\uD649\uD64B\uD64D\uD651\uD654\uD655\uD658\uD65C\uD667\uD669\uD670\uD671\uD674\uD683\uD685\uD68C\uD68D\uD690\uD694\uD69D\uD69F\uD6A1\uD6A8\uD6AC\uD6B0\uD6B9\uD6BB\uD6C4\uD6C5\uD6C8\uD6CC\uD6D1\uD6D4\uD6D7\uD6D9\uD6E0\uD6E4\uD6E8\uD6F0\uD6F5\uD6FC\uD6FD\uD700\uD704\uD711\uD718\uD719\uD71C\uD720\uD728\uD729\uD72B\uD72D\uD734\uD735\uD738\uD73C\uD744\uD747\uD749\uD750\uD751\uD754\uD756\uD757\uD758\uD759\uD760\uD761\uD763\uD765\uD769\uD76C\uD770\uD774\uD77C\uD77D\uD781\uD788\uD789\uD78C\uD790\uD798\uD799\uD79B\uD79D"],["caa1","\u4F3D\u4F73\u5047\u50F9\u52A0\u53EF\u5475\u54E5\u5609\u5AC1\u5BB6\u6687\u67B6\u67B7\u67EF\u6B4C\u73C2\u75C2\u7A3C\u82DB\u8304\u8857\u8888\u8A36\u8CC8\u8DCF\u8EFB\u8FE6\u99D5\u523B\u5374\u5404\u606A\u6164\u6BBC\u73CF\u811A\u89BA\u89D2\u95A3\u4F83\u520A\u58BE\u5978\u59E6\u5E72\u5E79\u61C7\u63C0\u6746\u67EC\u687F\u6F97\u764E\u770B\u78F5\u7A08\u7AFF\u7C21\u809D\u826E\u8271\u8AEB\u9593\u4E6B\u559D\u66F7\u6E34\u78A3\u7AED\u845B\u8910\u874E\u97A8\u52D8\u574E\u582A\u5D4C\u611F\u61BE\u6221\u6562\u67D1\u6A44\u6E1B\u7518\u75B3\u76E3\u77B0\u7D3A\u90AF\u9451\u9452\u9F95"],["cba1","\u5323\u5CAC\u7532\u80DB\u9240\u9598\u525B\u5808\u59DC\u5CA1\u5D17\u5EB7\u5F3A\u5F4A\u6177\u6C5F\u757A\u7586\u7CE0\u7D73\u7DB1\u7F8C\u8154\u8221\u8591\u8941\u8B1B\u92FC\u964D\u9C47\u4ECB\u4EF7\u500B\u51F1\u584F\u6137\u613E\u6168\u6539\u69EA\u6F11\u75A5\u7686\u76D6\u7B87\u82A5\u84CB\uF900\u93A7\u958B\u5580\u5BA2\u5751\uF901\u7CB3\u7FB9\u91B5\u5028\u53BB\u5C45\u5DE8\u62D2\u636E\u64DA\u64E7\u6E20\u70AC\u795B\u8DDD\u8E1E\uF902\u907D\u9245\u92F8\u4E7E\u4EF6\u5065\u5DFE\u5EFA\u6106\u6957\u8171\u8654\u8E47\u9375\u9A2B\u4E5E\u5091\u6770\u6840\u5109\u528D\u5292\u6AA2"],["cca1","\u77BC\u9210\u9ED4\u52AB\u602F\u8FF2\u5048\u61A9\u63ED\u64CA\u683C\u6A84\u6FC0\u8188\u89A1\u9694\u5805\u727D\u72AC\u7504\u7D79\u7E6D\u80A9\u898B\u8B74\u9063\u9D51\u6289\u6C7A\u6F54\u7D50\u7F3A\u8A23\u517C\u614A\u7B9D\u8B19\u9257\u938C\u4EAC\u4FD3\u501E\u50BE\u5106\u52C1\u52CD\u537F\u5770\u5883\u5E9A\u5F91\u6176\u61AC\u64CE\u656C\u666F\u66BB\u66F4\u6897\u6D87\u7085\u70F1\u749F\u74A5\u74CA\u75D9\u786C\u78EC\u7ADF\u7AF6\u7D45\u7D93\u8015\u803F\u811B\u8396\u8B66\u8F15\u9015\u93E1\u9803\u9838\u9A5A\u9BE8\u4FC2\u5553\u583A\u5951\u5B63\u5C46\u60B8\u6212\u6842\u68B0"],["cda1","\u68E8\u6EAA\u754C\u7678\u78CE\u7A3D\u7CFB\u7E6B\u7E7C\u8A08\u8AA1\u8C3F\u968E\u9DC4\u53E4\u53E9\u544A\u5471\u56FA\u59D1\u5B64\u5C3B\u5EAB\u62F7\u6537\u6545\u6572\u66A0\u67AF\u69C1\u6CBD\u75FC\u7690\u777E\u7A3F\u7F94\u8003\u80A1\u818F\u82E6\u82FD\u83F0\u85C1\u8831\u88B4\u8AA5\uF903\u8F9C\u932E\u96C7\u9867\u9AD8\u9F13\u54ED\u659B\u66F2\u688F\u7A40\u8C37\u9D60\u56F0\u5764\u5D11\u6606\u68B1\u68CD\u6EFE\u7428\u889E\u9BE4\u6C68\uF904\u9AA8\u4F9B\u516C\u5171\u529F\u5B54\u5DE5\u6050\u606D\u62F1\u63A7\u653B\u73D9\u7A7A\u86A3\u8CA2\u978F\u4E32\u5BE1\u6208\u679C\u74DC"],["cea1","\u79D1\u83D3\u8A87\u8AB2\u8DE8\u904E\u934B\u9846\u5ED3\u69E8\u85FF\u90ED\uF905\u51A0\u5B98\u5BEC\u6163\u68FA\u6B3E\u704C\u742F\u74D8\u7BA1\u7F50\u83C5\u89C0\u8CAB\u95DC\u9928\u522E\u605D\u62EC\u9002\u4F8A\u5149\u5321\u58D9\u5EE3\u66E0\u6D38\u709A\u72C2\u73D6\u7B50\u80F1\u945B\u5366\u639B\u7F6B\u4E56\u5080\u584A\u58DE\u602A\u6127\u62D0\u69D0\u9B41\u5B8F\u7D18\u80B1\u8F5F\u4EA4\u50D1\u54AC\u55AC\u5B0C\u5DA0\u5DE7\u652A\u654E\u6821\u6A4B\u72E1\u768E\u77EF\u7D5E\u7FF9\u81A0\u854E\u86DF\u8F03\u8F4E\u90CA\u9903\u9A55\u9BAB\u4E18\u4E45\u4E5D\u4EC7\u4FF1\u5177\u52FE"],["cfa1","\u5340\u53E3\u53E5\u548E\u5614\u5775\u57A2\u5BC7\u5D87\u5ED0\u61FC\u62D8\u6551\u67B8\u67E9\u69CB\u6B50\u6BC6\u6BEC\u6C42\u6E9D\u7078\u72D7\u7396\u7403\u77BF\u77E9\u7A76\u7D7F\u8009\u81FC\u8205\u820A\u82DF\u8862\u8B33\u8CFC\u8EC0\u9011\u90B1\u9264\u92B6\u99D2\u9A45\u9CE9\u9DD7\u9F9C\u570B\u5C40\u83CA\u97A0\u97AB\u9EB4\u541B\u7A98\u7FA4\u88D9\u8ECD\u90E1\u5800\u5C48\u6398\u7A9F\u5BAE\u5F13\u7A79\u7AAE\u828E\u8EAC\u5026\u5238\u52F8\u5377\u5708\u62F3\u6372\u6B0A\u6DC3\u7737\u53A5\u7357\u8568\u8E76\u95D5\u673A\u6AC3\u6F70\u8A6D\u8ECC\u994B\uF906\u6677\u6B78\u8CB4"],["d0a1","\u9B3C\uF907\u53EB\u572D\u594E\u63C6\u69FB\u73EA\u7845\u7ABA\u7AC5\u7CFE\u8475\u898F\u8D73\u9035\u95A8\u52FB\u5747\u7547\u7B60\u83CC\u921E\uF908\u6A58\u514B\u524B\u5287\u621F\u68D8\u6975\u9699\u50C5\u52A4\u52E4\u61C3\u65A4\u6839\u69FF\u747E\u7B4B\u82B9\u83EB\u89B2\u8B39\u8FD1\u9949\uF909\u4ECA\u5997\u64D2\u6611\u6A8E\u7434\u7981\u79BD\u82A9\u887E\u887F\u895F\uF90A\u9326\u4F0B\u53CA\u6025\u6271\u6C72\u7D1A\u7D66\u4E98\u5162\u77DC\u80AF\u4F01\u4F0E\u5176\u5180\u55DC\u5668\u573B\u57FA\u57FC\u5914\u5947\u5993\u5BC4\u5C90\u5D0E\u5DF1\u5E7E\u5FCC\u6280\u65D7\u65E3"],["d1a1","\u671E\u671F\u675E\u68CB\u68C4\u6A5F\u6B3A\u6C23\u6C7D\u6C82\u6DC7\u7398\u7426\u742A\u7482\u74A3\u7578\u757F\u7881\u78EF\u7941\u7947\u7948\u797A\u7B95\u7D00\u7DBA\u7F88\u8006\u802D\u808C\u8A18\u8B4F\u8C48\u8D77\u9321\u9324\u98E2\u9951\u9A0E\u9A0F\u9A65\u9E92\u7DCA\u4F76\u5409\u62EE\u6854\u91D1\u55AB\u513A\uF90B\uF90C\u5A1C\u61E6\uF90D\u62CF\u62FF\uF90E",5,"\u90A3\uF914",4,"\u8AFE\uF919\uF91A\uF91B\uF91C\u6696\uF91D\u7156\uF91E\uF91F\u96E3\uF920\u634F\u637A\u5357\uF921\u678F\u6960\u6E73\uF922\u7537\uF923\uF924\uF925"],["d2a1","\u7D0D\uF926\uF927\u8872\u56CA\u5A18\uF928",4,"\u4E43\uF92D\u5167\u5948\u67F0\u8010\uF92E\u5973\u5E74\u649A\u79CA\u5FF5\u606C\u62C8\u637B\u5BE7\u5BD7\u52AA\uF92F\u5974\u5F29\u6012\uF930\uF931\uF932\u7459\uF933",5,"\u99D1\uF939",10,"\u6FC3\uF944\uF945\u81BF\u8FB2\u60F1\uF946\uF947\u8166\uF948\uF949\u5C3F\uF94A",7,"\u5AE9\u8A25\u677B\u7D10\uF952",5,"\u80FD\uF958\uF959\u5C3C\u6CE5\u533F\u6EBA\u591A\u8336"],["d3a1","\u4E39\u4EB6\u4F46\u55AE\u5718\u58C7\u5F56\u65B7\u65E6\u6A80\u6BB5\u6E4D\u77ED\u7AEF\u7C1E\u7DDE\u86CB\u8892\u9132\u935B\u64BB\u6FBE\u737A\u75B8\u9054\u5556\u574D\u61BA\u64D4\u66C7\u6DE1\u6E5B\u6F6D\u6FB9\u75F0\u8043\u81BD\u8541\u8983\u8AC7\u8B5A\u931F\u6C93\u7553\u7B54\u8E0F\u905D\u5510\u5802\u5858\u5E62\u6207\u649E\u68E0\u7576\u7CD6\u87B3\u9EE8\u4EE3\u5788\u576E\u5927\u5C0D\u5CB1\u5E36\u5F85\u6234\u64E1\u73B3\u81FA\u888B\u8CB8\u968A\u9EDB\u5B85\u5FB7\u60B3\u5012\u5200\u5230\u5716\u5835\u5857\u5C0E\u5C60\u5CF6\u5D8B\u5EA6\u5F92\u60BC\u6311\u6389\u6417\u6843"],["d4a1","\u68F9\u6AC2\u6DD8\u6E21\u6ED4\u6FE4\u71FE\u76DC\u7779\u79B1\u7A3B\u8404\u89A9\u8CED\u8DF3\u8E48\u9003\u9014\u9053\u90FD\u934D\u9676\u97DC\u6BD2\u7006\u7258\u72A2\u7368\u7763\u79BF\u7BE4\u7E9B\u8B80\u58A9\u60C7\u6566\u65FD\u66BE\u6C8C\u711E\u71C9\u8C5A\u9813\u4E6D\u7A81\u4EDD\u51AC\u51CD\u52D5\u540C\u61A7\u6771\u6850\u68DF\u6D1E\u6F7C\u75BC\u77B3\u7AE5\u80F4\u8463\u9285\u515C\u6597\u675C\u6793\u75D8\u7AC7\u8373\uF95A\u8C46\u9017\u982D\u5C6F\u81C0\u829A\u9041\u906F\u920D\u5F97\u5D9D\u6A59\u71C8\u767B\u7B49\u85E4\u8B04\u9127\u9A30\u5587\u61F6\uF95B\u7669\u7F85"],["d5a1","\u863F\u87BA\u88F8\u908F\uF95C\u6D1B\u70D9\u73DE\u7D61\u843D\uF95D\u916A\u99F1\uF95E\u4E82\u5375\u6B04\u6B12\u703E\u721B\u862D\u9E1E\u524C\u8FA3\u5D50\u64E5\u652C\u6B16\u6FEB\u7C43\u7E9C\u85CD\u8964\u89BD\u62C9\u81D8\u881F\u5ECA\u6717\u6D6A\u72FC\u7405\u746F\u8782\u90DE\u4F86\u5D0D\u5FA0\u840A\u51B7\u63A0\u7565\u4EAE\u5006\u5169\u51C9\u6881\u6A11\u7CAE\u7CB1\u7CE7\u826F\u8AD2\u8F1B\u91CF\u4FB6\u5137\u52F5\u5442\u5EEC\u616E\u623E\u65C5\u6ADA\u6FFE\u792A\u85DC\u8823\u95AD\u9A62\u9A6A\u9E97\u9ECE\u529B\u66C6\u6B77\u701D\u792B\u8F62\u9742\u6190\u6200\u6523\u6F23"],["d6a1","\u7149\u7489\u7DF4\u806F\u84EE\u8F26\u9023\u934A\u51BD\u5217\u52A3\u6D0C\u70C8\u88C2\u5EC9\u6582\u6BAE\u6FC2\u7C3E\u7375\u4EE4\u4F36\u56F9\uF95F\u5CBA\u5DBA\u601C\u73B2\u7B2D\u7F9A\u7FCE\u8046\u901E\u9234\u96F6\u9748\u9818\u9F61\u4F8B\u6FA7\u79AE\u91B4\u96B7\u52DE\uF960\u6488\u64C4\u6AD3\u6F5E\u7018\u7210\u76E7\u8001\u8606\u865C\u8DEF\u8F05\u9732\u9B6F\u9DFA\u9E75\u788C\u797F\u7DA0\u83C9\u9304\u9E7F\u9E93\u8AD6\u58DF\u5F04\u6727\u7027\u74CF\u7C60\u807E\u5121\u7028\u7262\u78CA\u8CC2\u8CDA\u8CF4\u96F7\u4E86\u50DA\u5BEE\u5ED6\u6599\u71CE\u7642\u77AD\u804A\u84FC"],["d7a1","\u907C\u9B27\u9F8D\u58D8\u5A41\u5C62\u6A13\u6DDA\u6F0F\u763B\u7D2F\u7E37\u851E\u8938\u93E4\u964B\u5289\u65D2\u67F3\u69B4\u6D41\u6E9C\u700F\u7409\u7460\u7559\u7624\u786B\u8B2C\u985E\u516D\u622E\u9678\u4F96\u502B\u5D19\u6DEA\u7DB8\u8F2A\u5F8B\u6144\u6817\uF961\u9686\u52D2\u808B\u51DC\u51CC\u695E\u7A1C\u7DBE\u83F1\u9675\u4FDA\u5229\u5398\u540F\u550E\u5C65\u60A7\u674E\u68A8\u6D6C\u7281\u72F8\u7406\u7483\uF962\u75E2\u7C6C\u7F79\u7FB8\u8389\u88CF\u88E1\u91CC\u91D0\u96E2\u9BC9\u541D\u6F7E\u71D0\u7498\u85FA\u8EAA\u96A3\u9C57\u9E9F\u6797\u6DCB\u7433\u81E8\u9716\u782C"],["d8a1","\u7ACB\u7B20\u7C92\u6469\u746A\u75F2\u78BC\u78E8\u99AC\u9B54\u9EBB\u5BDE\u5E55\u6F20\u819C\u83AB\u9088\u4E07\u534D\u5A29\u5DD2\u5F4E\u6162\u633D\u6669\u66FC\u6EFF\u6F2B\u7063\u779E\u842C\u8513\u883B\u8F13\u9945\u9C3B\u551C\u62B9\u672B\u6CAB\u8309\u896A\u977A\u4EA1\u5984\u5FD8\u5FD9\u671B\u7DB2\u7F54\u8292\u832B\u83BD\u8F1E\u9099\u57CB\u59B9\u5A92\u5BD0\u6627\u679A\u6885\u6BCF\u7164\u7F75\u8CB7\u8CE3\u9081\u9B45\u8108\u8C8A\u964C\u9A40\u9EA5\u5B5F\u6C13\u731B\u76F2\u76DF\u840C\u51AA\u8993\u514D\u5195\u52C9\u68C9\u6C94\u7704\u7720\u7DBF\u7DEC\u9762\u9EB5\u6EC5"],["d9a1","\u8511\u51A5\u540D\u547D\u660E\u669D\u6927\u6E9F\u76BF\u7791\u8317\u84C2\u879F\u9169\u9298\u9CF4\u8882\u4FAE\u5192\u52DF\u59C6\u5E3D\u6155\u6478\u6479\u66AE\u67D0\u6A21\u6BCD\u6BDB\u725F\u7261\u7441\u7738\u77DB\u8017\u82BC\u8305\u8B00\u8B28\u8C8C\u6728\u6C90\u7267\u76EE\u7766\u7A46\u9DA9\u6B7F\u6C92\u5922\u6726\u8499\u536F\u5893\u5999\u5EDF\u63CF\u6634\u6773\u6E3A\u732B\u7AD7\u82D7\u9328\u52D9\u5DEB\u61AE\u61CB\u620A\u62C7\u64AB\u65E0\u6959\u6B66\u6BCB\u7121\u73F7\u755D\u7E46\u821E\u8302\u856A\u8AA3\u8CBF\u9727\u9D61\u58A8\u9ED8\u5011\u520E\u543B\u554F\u6587"],["daa1","\u6C76\u7D0A\u7D0B\u805E\u868A\u9580\u96EF\u52FF\u6C95\u7269\u5473\u5A9A\u5C3E\u5D4B\u5F4C\u5FAE\u672A\u68B6\u6963\u6E3C\u6E44\u7709\u7C73\u7F8E\u8587\u8B0E\u8FF7\u9761\u9EF4\u5CB7\u60B6\u610D\u61AB\u654F\u65FB\u65FC\u6C11\u6CEF\u739F\u73C9\u7DE1\u9594\u5BC6\u871C\u8B10\u525D\u535A\u62CD\u640F\u64B2\u6734\u6A38\u6CCA\u73C0\u749E\u7B94\u7C95\u7E1B\u818A\u8236\u8584\u8FEB\u96F9\u99C1\u4F34\u534A\u53CD\u53DB\u62CC\u642C\u6500\u6591\u69C3\u6CEE\u6F58\u73ED\u7554\u7622\u76E4\u76FC\u78D0\u78FB\u792C\u7D46\u822C\u87E0\u8FD4\u9812\u98EF\u52C3\u62D4\u64A5\u6E24\u6F51"],["dba1","\u767C\u8DCB\u91B1\u9262\u9AEE\u9B43\u5023\u508D\u574A\u59A8\u5C28\u5E47\u5F77\u623F\u653E\u65B9\u65C1\u6609\u678B\u699C\u6EC2\u78C5\u7D21\u80AA\u8180\u822B\u82B3\u84A1\u868C\u8A2A\u8B17\u90A6\u9632\u9F90\u500D\u4FF3\uF963\u57F9\u5F98\u62DC\u6392\u676F\u6E43\u7119\u76C3\u80CC\u80DA\u88F4\u88F5\u8919\u8CE0\u8F29\u914D\u966A\u4F2F\u4F70\u5E1B\u67CF\u6822\u767D\u767E\u9B44\u5E61\u6A0A\u7169\u71D4\u756A\uF964\u7E41\u8543\u85E9\u98DC\u4F10\u7B4F\u7F70\u95A5\u51E1\u5E06\u68B5\u6C3E\u6C4E\u6CDB\u72AF\u7BC4\u8303\u6CD5\u743A\u50FB\u5288\u58C1\u64D8\u6A97\u74A7\u7656"],["dca1","\u78A7\u8617\u95E2\u9739\uF965\u535E\u5F01\u8B8A\u8FA8\u8FAF\u908A\u5225\u77A5\u9C49\u9F08\u4E19\u5002\u5175\u5C5B\u5E77\u661E\u663A\u67C4\u68C5\u70B3\u7501\u75C5\u79C9\u7ADD\u8F27\u9920\u9A08\u4FDD\u5821\u5831\u5BF6\u666E\u6B65\u6D11\u6E7A\u6F7D\u73E4\u752B\u83E9\u88DC\u8913\u8B5C\u8F14\u4F0F\u50D5\u5310\u535C\u5B93\u5FA9\u670D\u798F\u8179\u832F\u8514\u8907\u8986\u8F39\u8F3B\u99A5\u9C12\u672C\u4E76\u4FF8\u5949\u5C01\u5CEF\u5CF0\u6367\u68D2\u70FD\u71A2\u742B\u7E2B\u84EC\u8702\u9022\u92D2\u9CF3\u4E0D\u4ED8\u4FEF\u5085\u5256\u526F\u5426\u5490\u57E0\u592B\u5A66"],["dda1","\u5B5A\u5B75\u5BCC\u5E9C\uF966\u6276\u6577\u65A7\u6D6E\u6EA5\u7236\u7B26\u7C3F\u7F36\u8150\u8151\u819A\u8240\u8299\u83A9\u8A03\u8CA0\u8CE6\u8CFB\u8D74\u8DBA\u90E8\u91DC\u961C\u9644\u99D9\u9CE7\u5317\u5206\u5429\u5674\u58B3\u5954\u596E\u5FFF\u61A4\u626E\u6610\u6C7E\u711A\u76C6\u7C89\u7CDE\u7D1B\u82AC\u8CC1\u96F0\uF967\u4F5B\u5F17\u5F7F\u62C2\u5D29\u670B\u68DA\u787C\u7E43\u9D6C\u4E15\u5099\u5315\u532A\u5351\u5983\u5A62\u5E87\u60B2\u618A\u6249\u6279\u6590\u6787\u69A7\u6BD4\u6BD6\u6BD7\u6BD8\u6CB8\uF968\u7435\u75FA\u7812\u7891\u79D5\u79D8\u7C83\u7DCB\u7FE1\u80A5"],["dea1","\u813E\u81C2\u83F2\u871A\u88E8\u8AB9\u8B6C\u8CBB\u9119\u975E\u98DB\u9F3B\u56AC\u5B2A\u5F6C\u658C\u6AB3\u6BAF\u6D5C\u6FF1\u7015\u725D\u73AD\u8CA7\u8CD3\u983B\u6191\u6C37\u8058\u9A01\u4E4D\u4E8B\u4E9B\u4ED5\u4F3A\u4F3C\u4F7F\u4FDF\u50FF\u53F2\u53F8\u5506\u55E3\u56DB\u58EB\u5962\u5A11\u5BEB\u5BFA\u5C04\u5DF3\u5E2B\u5F99\u601D\u6368\u659C\u65AF\u67F6\u67FB\u68AD\u6B7B\u6C99\u6CD7\u6E23\u7009\u7345\u7802\u793E\u7940\u7960\u79C1\u7BE9\u7D17\u7D72\u8086\u820D\u838E\u84D1\u86C7\u88DF\u8A50\u8A5E\u8B1D\u8CDC\u8D66\u8FAD\u90AA\u98FC\u99DF\u9E9D\u524A\uF969\u6714\uF96A"],["dfa1","\u5098\u522A\u5C71\u6563\u6C55\u73CA\u7523\u759D\u7B97\u849C\u9178\u9730\u4E77\u6492\u6BBA\u715E\u85A9\u4E09\uF96B\u6749\u68EE\u6E17\u829F\u8518\u886B\u63F7\u6F81\u9212\u98AF\u4E0A\u50B7\u50CF\u511F\u5546\u55AA\u5617\u5B40\u5C19\u5CE0\u5E38\u5E8A\u5EA0\u5EC2\u60F3\u6851\u6A61\u6E58\u723D\u7240\u72C0\u76F8\u7965\u7BB1\u7FD4\u88F3\u89F4\u8A73\u8C61\u8CDE\u971C\u585E\u74BD\u8CFD\u55C7\uF96C\u7A61\u7D22\u8272\u7272\u751F\u7525\uF96D\u7B19\u5885\u58FB\u5DBC\u5E8F\u5EB6\u5F90\u6055\u6292\u637F\u654D\u6691\u66D9\u66F8\u6816\u68F2\u7280\u745E\u7B6E\u7D6E\u7DD6\u7F72"],["e0a1","\u80E5\u8212\u85AF\u897F\u8A93\u901D\u92E4\u9ECD\u9F20\u5915\u596D\u5E2D\u60DC\u6614\u6673\u6790\u6C50\u6DC5\u6F5F\u77F3\u78A9\u84C6\u91CB\u932B\u4ED9\u50CA\u5148\u5584\u5B0B\u5BA3\u6247\u657E\u65CB\u6E32\u717D\u7401\u7444\u7487\u74BF\u766C\u79AA\u7DDA\u7E55\u7FA8\u817A\u81B3\u8239\u861A\u87EC\u8A75\u8DE3\u9078\u9291\u9425\u994D\u9BAE\u5368\u5C51\u6954\u6CC4\u6D29\u6E2B\u820C\u859B\u893B\u8A2D\u8AAA\u96EA\u9F67\u5261\u66B9\u6BB2\u7E96\u87FE\u8D0D\u9583\u965D\u651D\u6D89\u71EE\uF96E\u57CE\u59D3\u5BAC\u6027\u60FA\u6210\u661F\u665F\u7329\u73F9\u76DB\u7701\u7B6C"],["e1a1","\u8056\u8072\u8165\u8AA0\u9192\u4E16\u52E2\u6B72\u6D17\u7A05\u7B39\u7D30\uF96F\u8CB0\u53EC\u562F\u5851\u5BB5\u5C0F\u5C11\u5DE2\u6240\u6383\u6414\u662D\u68B3\u6CBC\u6D88\u6EAF\u701F\u70A4\u71D2\u7526\u758F\u758E\u7619\u7B11\u7BE0\u7C2B\u7D20\u7D39\u852C\u856D\u8607\u8A34\u900D\u9061\u90B5\u92B7\u97F6\u9A37\u4FD7\u5C6C\u675F\u6D91\u7C9F\u7E8C\u8B16\u8D16\u901F\u5B6B\u5DFD\u640D\u84C0\u905C\u98E1\u7387\u5B8B\u609A\u677E\u6DDE\u8A1F\u8AA6\u9001\u980C\u5237\uF970\u7051\u788E\u9396\u8870\u91D7\u4FEE\u53D7\u55FD\u56DA\u5782\u58FD\u5AC2\u5B88\u5CAB\u5CC0\u5E25\u6101"],["e2a1","\u620D\u624B\u6388\u641C\u6536\u6578\u6A39\u6B8A\u6C34\u6D19\u6F31\u71E7\u72E9\u7378\u7407\u74B2\u7626\u7761\u79C0\u7A57\u7AEA\u7CB9\u7D8F\u7DAC\u7E61\u7F9E\u8129\u8331\u8490\u84DA\u85EA\u8896\u8AB0\u8B90\u8F38\u9042\u9083\u916C\u9296\u92B9\u968B\u96A7\u96A8\u96D6\u9700\u9808\u9996\u9AD3\u9B1A\u53D4\u587E\u5919\u5B70\u5BBF\u6DD1\u6F5A\u719F\u7421\u74B9\u8085\u83FD\u5DE1\u5F87\u5FAA\u6042\u65EC\u6812\u696F\u6A53\u6B89\u6D35\u6DF3\u73E3\u76FE\u77AC\u7B4D\u7D14\u8123\u821C\u8340\u84F4\u8563\u8A62\u8AC4\u9187\u931E\u9806\u99B4\u620C\u8853\u8FF0\u9265\u5D07\u5D27"],["e3a1","\u5D69\u745F\u819D\u8768\u6FD5\u62FE\u7FD2\u8936\u8972\u4E1E\u4E58\u50E7\u52DD\u5347\u627F\u6607\u7E69\u8805\u965E\u4F8D\u5319\u5636\u59CB\u5AA4\u5C38\u5C4E\u5C4D\u5E02\u5F11\u6043\u65BD\u662F\u6642\u67BE\u67F4\u731C\u77E2\u793A\u7FC5\u8494\u84CD\u8996\u8A66\u8A69\u8AE1\u8C55\u8C7A\u57F4\u5BD4\u5F0F\u606F\u62ED\u690D\u6B96\u6E5C\u7184\u7BD2\u8755\u8B58\u8EFE\u98DF\u98FE\u4F38\u4F81\u4FE1\u547B\u5A20\u5BB8\u613C\u65B0\u6668\u71FC\u7533\u795E\u7D33\u814E\u81E3\u8398\u85AA\u85CE\u8703\u8A0A\u8EAB\u8F9B\uF971\u8FC5\u5931\u5BA4\u5BE6\u6089\u5BE9\u5C0B\u5FC3\u6C81"],["e4a1","\uF972\u6DF1\u700B\u751A\u82AF\u8AF6\u4EC0\u5341\uF973\u96D9\u6C0F\u4E9E\u4FC4\u5152\u555E\u5A25\u5CE8\u6211\u7259\u82BD\u83AA\u86FE\u8859\u8A1D\u963F\u96C5\u9913\u9D09\u9D5D\u580A\u5CB3\u5DBD\u5E44\u60E1\u6115\u63E1\u6A02\u6E25\u9102\u9354\u984E\u9C10\u9F77\u5B89\u5CB8\u6309\u664F\u6848\u773C\u96C1\u978D\u9854\u9B9F\u65A1\u8B01\u8ECB\u95BC\u5535\u5CA9\u5DD6\u5EB5\u6697\u764C\u83F4\u95C7\u58D3\u62BC\u72CE\u9D28\u4EF0\u592E\u600F\u663B\u6B83\u79E7\u9D26\u5393\u54C0\u57C3\u5D16\u611B\u66D6\u6DAF\u788D\u827E\u9698\u9744\u5384\u627C\u6396\u6DB2\u7E0A\u814B\u984D"],["e5a1","\u6AFB\u7F4C\u9DAF\u9E1A\u4E5F\u503B\u51B6\u591C\u60F9\u63F6\u6930\u723A\u8036\uF974\u91CE\u5F31\uF975\uF976\u7D04\u82E5\u846F\u84BB\u85E5\u8E8D\uF977\u4F6F\uF978\uF979\u58E4\u5B43\u6059\u63DA\u6518\u656D\u6698\uF97A\u694A\u6A23\u6D0B\u7001\u716C\u75D2\u760D\u79B3\u7A70\uF97B\u7F8A\uF97C\u8944\uF97D\u8B93\u91C0\u967D\uF97E\u990A\u5704\u5FA1\u65BC\u6F01\u7600\u79A6\u8A9E\u99AD\u9B5A\u9F6C\u5104\u61B6\u6291\u6A8D\u81C6\u5043\u5830\u5F66\u7109\u8A00\u8AFA\u5B7C\u8616\u4FFA\u513C\u56B4\u5944\u63A9\u6DF9\u5DAA\u696D\u5186\u4E88\u4F59\uF97F\uF980\uF981\u5982\uF982"],["e6a1","\uF983\u6B5F\u6C5D\uF984\u74B5\u7916\uF985\u8207\u8245\u8339\u8F3F\u8F5D\uF986\u9918\uF987\uF988\uF989\u4EA6\uF98A\u57DF\u5F79\u6613\uF98B\uF98C\u75AB\u7E79\u8B6F\uF98D\u9006\u9A5B\u56A5\u5827\u59F8\u5A1F\u5BB4\uF98E\u5EF6\uF98F\uF990\u6350\u633B\uF991\u693D\u6C87\u6CBF\u6D8E\u6D93\u6DF5\u6F14\uF992\u70DF\u7136\u7159\uF993\u71C3\u71D5\uF994\u784F\u786F\uF995\u7B75\u7DE3\uF996\u7E2F\uF997\u884D\u8EDF\uF998\uF999\uF99A\u925B\uF99B\u9CF6\uF99C\uF99D\uF99E\u6085\u6D85\uF99F\u71B1\uF9A0\uF9A1\u95B1\u53AD\uF9A2\uF9A3\uF9A4\u67D3\uF9A5\u708E\u7130\u7430\u8276\u82D2"],["e7a1","\uF9A6\u95BB\u9AE5\u9E7D\u66C4\uF9A7\u71C1\u8449\uF9A8\uF9A9\u584B\uF9AA\uF9AB\u5DB8\u5F71\uF9AC\u6620\u668E\u6979\u69AE\u6C38\u6CF3\u6E36\u6F41\u6FDA\u701B\u702F\u7150\u71DF\u7370\uF9AD\u745B\uF9AE\u74D4\u76C8\u7A4E\u7E93\uF9AF\uF9B0\u82F1\u8A60\u8FCE\uF9B1\u9348\uF9B2\u9719\uF9B3\uF9B4\u4E42\u502A\uF9B5\u5208\u53E1\u66F3\u6C6D\u6FCA\u730A\u777F\u7A62\u82AE\u85DD\u8602\uF9B6\u88D4\u8A63\u8B7D\u8C6B\uF9B7\u92B3\uF9B8\u9713\u9810\u4E94\u4F0D\u4FC9\u50B2\u5348\u543E\u5433\u55DA\u5862\u58BA\u5967\u5A1B\u5BE4\u609F\uF9B9\u61CA\u6556\u65FF\u6664\u68A7\u6C5A\u6FB3"],["e8a1","\u70CF\u71AC\u7352\u7B7D\u8708\u8AA4\u9C32\u9F07\u5C4B\u6C83\u7344\u7389\u923A\u6EAB\u7465\u761F\u7A69\u7E15\u860A\u5140\u58C5\u64C1\u74EE\u7515\u7670\u7FC1\u9095\u96CD\u9954\u6E26\u74E6\u7AA9\u7AAA\u81E5\u86D9\u8778\u8A1B\u5A49\u5B8C\u5B9B\u68A1\u6900\u6D63\u73A9\u7413\u742C\u7897\u7DE9\u7FEB\u8118\u8155\u839E\u8C4C\u962E\u9811\u66F0\u5F80\u65FA\u6789\u6C6A\u738B\u502D\u5A03\u6B6A\u77EE\u5916\u5D6C\u5DCD\u7325\u754F\uF9BA\uF9BB\u50E5\u51F9\u582F\u592D\u5996\u59DA\u5BE5\uF9BC\uF9BD\u5DA2\u62D7\u6416\u6493\u64FE\uF9BE\u66DC\uF9BF\u6A48\uF9C0\u71FF\u7464\uF9C1"],["e9a1","\u7A88\u7AAF\u7E47\u7E5E\u8000\u8170\uF9C2\u87EF\u8981\u8B20\u9059\uF9C3\u9080\u9952\u617E\u6B32\u6D74\u7E1F\u8925\u8FB1\u4FD1\u50AD\u5197\u52C7\u57C7\u5889\u5BB9\u5EB8\u6142\u6995\u6D8C\u6E67\u6EB6\u7194\u7462\u7528\u752C\u8073\u8338\u84C9\u8E0A\u9394\u93DE\uF9C4\u4E8E\u4F51\u5076\u512A\u53C8\u53CB\u53F3\u5B87\u5BD3\u5C24\u611A\u6182\u65F4\u725B\u7397\u7440\u76C2\u7950\u7991\u79B9\u7D06\u7FBD\u828B\u85D5\u865E\u8FC2\u9047\u90F5\u91EA\u9685\u96E8\u96E9\u52D6\u5F67\u65ED\u6631\u682F\u715C\u7A36\u90C1\u980A\u4E91\uF9C5\u6A52\u6B9E\u6F90\u7189\u8018\u82B8\u8553"],["eaa1","\u904B\u9695\u96F2\u97FB\u851A\u9B31\u4E90\u718A\u96C4\u5143\u539F\u54E1\u5713\u5712\u57A3\u5A9B\u5AC4\u5BC3\u6028\u613F\u63F4\u6C85\u6D39\u6E72\u6E90\u7230\u733F\u7457\u82D1\u8881\u8F45\u9060\uF9C6\u9662\u9858\u9D1B\u6708\u8D8A\u925E\u4F4D\u5049\u50DE\u5371\u570D\u59D4\u5A01\u5C09\u6170\u6690\u6E2D\u7232\u744B\u7DEF\u80C3\u840E\u8466\u853F\u875F\u885B\u8918\u8B02\u9055\u97CB\u9B4F\u4E73\u4F91\u5112\u516A\uF9C7\u552F\u55A9\u5B7A\u5BA5\u5E7C\u5E7D\u5EBE\u60A0\u60DF\u6108\u6109\u63C4\u6538\u6709\uF9C8\u67D4\u67DA\uF9C9\u6961\u6962\u6CB9\u6D27\uF9CA\u6E38\uF9CB"],["eba1","\u6FE1\u7336\u7337\uF9CC\u745C\u7531\uF9CD\u7652\uF9CE\uF9CF\u7DAD\u81FE\u8438\u88D5\u8A98\u8ADB\u8AED\u8E30\u8E42\u904A\u903E\u907A\u9149\u91C9\u936E\uF9D0\uF9D1\u5809\uF9D2\u6BD3\u8089\u80B2\uF9D3\uF9D4\u5141\u596B\u5C39\uF9D5\uF9D6\u6F64\u73A7\u80E4\u8D07\uF9D7\u9217\u958F\uF9D8\uF9D9\uF9DA\uF9DB\u807F\u620E\u701C\u7D68\u878D\uF9DC\u57A0\u6069\u6147\u6BB7\u8ABE\u9280\u96B1\u4E59\u541F\u6DEB\u852D\u9670\u97F3\u98EE\u63D6\u6CE3\u9091\u51DD\u61C9\u81BA\u9DF9\u4F9D\u501A\u5100\u5B9C\u610F\u61FF\u64EC\u6905\u6BC5\u7591\u77E3\u7FA9\u8264\u858F\u87FB\u8863\u8ABC"],["eca1","\u8B70\u91AB\u4E8C\u4EE5\u4F0A\uF9DD\uF9DE\u5937\u59E8\uF9DF\u5DF2\u5F1B\u5F5B\u6021\uF9E0\uF9E1\uF9E2\uF9E3\u723E\u73E5\uF9E4\u7570\u75CD\uF9E5\u79FB\uF9E6\u800C\u8033\u8084\u82E1\u8351\uF9E7\uF9E8\u8CBD\u8CB3\u9087\uF9E9\uF9EA\u98F4\u990C\uF9EB\uF9EC\u7037\u76CA\u7FCA\u7FCC\u7FFC\u8B1A\u4EBA\u4EC1\u5203\u5370\uF9ED\u54BD\u56E0\u59FB\u5BC5\u5F15\u5FCD\u6E6E\uF9EE\uF9EF\u7D6A\u8335\uF9F0\u8693\u8A8D\uF9F1\u976D\u9777\uF9F2\uF9F3\u4E00\u4F5A\u4F7E\u58F9\u65E5\u6EA2\u9038\u93B0\u99B9\u4EFB\u58EC\u598A\u59D9\u6041\uF9F4\uF9F5\u7A14\uF9F6\u834F\u8CC3\u5165\u5344"],["eda1","\uF9F7\uF9F8\uF9F9\u4ECD\u5269\u5B55\u82BF\u4ED4\u523A\u54A8\u59C9\u59FF\u5B50\u5B57\u5B5C\u6063\u6148\u6ECB\u7099\u716E\u7386\u74F7\u75B5\u78C1\u7D2B\u8005\u81EA\u8328\u8517\u85C9\u8AEE\u8CC7\u96CC\u4F5C\u52FA\u56BC\u65AB\u6628\u707C\u70B8\u7235\u7DBD\u828D\u914C\u96C0\u9D72\u5B71\u68E7\u6B98\u6F7A\u76DE\u5C91\u66AB\u6F5B\u7BB4\u7C2A\u8836\u96DC\u4E08\u4ED7\u5320\u5834\u58BB\u58EF\u596C\u5C07\u5E33\u5E84\u5F35\u638C\u66B2\u6756\u6A1F\u6AA3\u6B0C\u6F3F\u7246\uF9FA\u7350\u748B\u7AE0\u7CA7\u8178\u81DF\u81E7\u838A\u846C\u8523\u8594\u85CF\u88DD\u8D13\u91AC\u9577"],["eea1","\u969C\u518D\u54C9\u5728\u5BB0\u624D\u6750\u683D\u6893\u6E3D\u6ED3\u707D\u7E21\u88C1\u8CA1\u8F09\u9F4B\u9F4E\u722D\u7B8F\u8ACD\u931A\u4F47\u4F4E\u5132\u5480\u59D0\u5E95\u62B5\u6775\u696E\u6A17\u6CAE\u6E1A\u72D9\u732A\u75BD\u7BB8\u7D35\u82E7\u83F9\u8457\u85F7\u8A5B\u8CAF\u8E87\u9019\u90B8\u96CE\u9F5F\u52E3\u540A\u5AE1\u5BC2\u6458\u6575\u6EF4\u72C4\uF9FB\u7684\u7A4D\u7B1B\u7C4D\u7E3E\u7FDF\u837B\u8B2B\u8CCA\u8D64\u8DE1\u8E5F\u8FEA\u8FF9\u9069\u93D1\u4F43\u4F7A\u50B3\u5168\u5178\u524D\u526A\u5861\u587C\u5960\u5C08\u5C55\u5EDB\u609B\u6230\u6813\u6BBF\u6C08\u6FB1"],["efa1","\u714E\u7420\u7530\u7538\u7551\u7672\u7B4C\u7B8B\u7BAD\u7BC6\u7E8F\u8A6E\u8F3E\u8F49\u923F\u9293\u9322\u942B\u96FB\u985A\u986B\u991E\u5207\u622A\u6298\u6D59\u7664\u7ACA\u7BC0\u7D76\u5360\u5CBE\u5E97\u6F38\u70B9\u7C98\u9711\u9B8E\u9EDE\u63A5\u647A\u8776\u4E01\u4E95\u4EAD\u505C\u5075\u5448\u59C3\u5B9A\u5E40\u5EAD\u5EF7\u5F81\u60C5\u633A\u653F\u6574\u65CC\u6676\u6678\u67FE\u6968\u6A89\u6B63\u6C40\u6DC0\u6DE8\u6E1F\u6E5E\u701E\u70A1\u738E\u73FD\u753A\u775B\u7887\u798E\u7A0B\u7A7D\u7CBE\u7D8E\u8247\u8A02\u8AEA\u8C9E\u912D\u914A\u91D8\u9266\u92CC\u9320\u9706\u9756"],["f0a1","\u975C\u9802\u9F0E\u5236\u5291\u557C\u5824\u5E1D\u5F1F\u608C\u63D0\u68AF\u6FDF\u796D\u7B2C\u81CD\u85BA\u88FD\u8AF8\u8E44\u918D\u9664\u969B\u973D\u984C\u9F4A\u4FCE\u5146\u51CB\u52A9\u5632\u5F14\u5F6B\u63AA\u64CD\u65E9\u6641\u66FA\u66F9\u671D\u689D\u68D7\u69FD\u6F15\u6F6E\u7167\u71E5\u722A\u74AA\u773A\u7956\u795A\u79DF\u7A20\u7A95\u7C97\u7CDF\u7D44\u7E70\u8087\u85FB\u86A4\u8A54\u8ABF\u8D99\u8E81\u9020\u906D\u91E3\u963B\u96D5\u9CE5\u65CF\u7C07\u8DB3\u93C3\u5B58\u5C0A\u5352\u62D9\u731D\u5027\u5B97\u5F9E\u60B0\u616B\u68D5\u6DD9\u742E\u7A2E\u7D42\u7D9C\u7E31\u816B"],["f1a1","\u8E2A\u8E35\u937E\u9418\u4F50\u5750\u5DE6\u5EA7\u632B\u7F6A\u4E3B\u4F4F\u4F8F\u505A\u59DD\u80C4\u546A\u5468\u55FE\u594F\u5B99\u5DDE\u5EDA\u665D\u6731\u67F1\u682A\u6CE8\u6D32\u6E4A\u6F8D\u70B7\u73E0\u7587\u7C4C\u7D02\u7D2C\u7DA2\u821F\u86DB\u8A3B\u8A85\u8D70\u8E8A\u8F33\u9031\u914E\u9152\u9444\u99D0\u7AF9\u7CA5\u4FCA\u5101\u51C6\u57C8\u5BEF\u5CFB\u6659\u6A3D\u6D5A\u6E96\u6FEC\u710C\u756F\u7AE3\u8822\u9021\u9075\u96CB\u99FF\u8301\u4E2D\u4EF2\u8846\u91CD\u537D\u6ADB\u696B\u6C41\u847A\u589E\u618E\u66FE\u62EF\u70DD\u7511\u75C7\u7E52\u84B8\u8B49\u8D08\u4E4B\u53EA"],["f2a1","\u54AB\u5730\u5740\u5FD7\u6301\u6307\u646F\u652F\u65E8\u667A\u679D\u67B3\u6B62\u6C60\u6C9A\u6F2C\u77E5\u7825\u7949\u7957\u7D19\u80A2\u8102\u81F3\u829D\u82B7\u8718\u8A8C\uF9FC\u8D04\u8DBE\u9072\u76F4\u7A19\u7A37\u7E54\u8077\u5507\u55D4\u5875\u632F\u6422\u6649\u664B\u686D\u699B\u6B84\u6D25\u6EB1\u73CD\u7468\u74A1\u755B\u75B9\u76E1\u771E\u778B\u79E6\u7E09\u7E1D\u81FB\u852F\u8897\u8A3A\u8CD1\u8EEB\u8FB0\u9032\u93AD\u9663\u9673\u9707\u4F84\u53F1\u59EA\u5AC9\u5E19\u684E\u74C6\u75BE\u79E9\u7A92\u81A3\u86ED\u8CEA\u8DCC\u8FED\u659F\u6715\uF9FD\u57F7\u6F57\u7DDD\u8F2F"],["f3a1","\u93F6\u96C6\u5FB5\u61F2\u6F84\u4E14\u4F98\u501F\u53C9\u55DF\u5D6F\u5DEE\u6B21\u6B64\u78CB\u7B9A\uF9FE\u8E49\u8ECA\u906E\u6349\u643E\u7740\u7A84\u932F\u947F\u9F6A\u64B0\u6FAF\u71E6\u74A8\u74DA\u7AC4\u7C12\u7E82\u7CB2\u7E98\u8B9A\u8D0A\u947D\u9910\u994C\u5239\u5BDF\u64E6\u672D\u7D2E\u50ED\u53C3\u5879\u6158\u6159\u61FA\u65AC\u7AD9\u8B92\u8B96\u5009\u5021\u5275\u5531\u5A3C\u5EE0\u5F70\u6134\u655E\u660C\u6636\u66A2\u69CD\u6EC4\u6F32\u7316\u7621\u7A93\u8139\u8259\u83D6\u84BC\u50B5\u57F0\u5BC0\u5BE8\u5F69\u63A1\u7826\u7DB5\u83DC\u8521\u91C7\u91F5\u518A\u67F5\u7B56"],["f4a1","\u8CAC\u51C4\u59BB\u60BD\u8655\u501C\uF9FF\u5254\u5C3A\u617D\u621A\u62D3\u64F2\u65A5\u6ECC\u7620\u810A\u8E60\u965F\u96BB\u4EDF\u5343\u5598\u5929\u5DDD\u64C5\u6CC9\u6DFA\u7394\u7A7F\u821B\u85A6\u8CE4\u8E10\u9077\u91E7\u95E1\u9621\u97C6\u51F8\u54F2\u5586\u5FB9\u64A4\u6F88\u7DB4\u8F1F\u8F4D\u9435\u50C9\u5C16\u6CBE\u6DFB\u751B\u77BB\u7C3D\u7C64\u8A79\u8AC2\u581E\u59BE\u5E16\u6377\u7252\u758A\u776B\u8ADC\u8CBC\u8F12\u5EF3\u6674\u6DF8\u807D\u83C1\u8ACB\u9751\u9BD6\uFA00\u5243\u66FF\u6D95\u6EEF\u7DE0\u8AE6\u902E\u905E\u9AD4\u521D\u527F\u54E8\u6194\u6284\u62DB\u68A2"],["f5a1","\u6912\u695A\u6A35\u7092\u7126\u785D\u7901\u790E\u79D2\u7A0D\u8096\u8278\u82D5\u8349\u8549\u8C82\u8D85\u9162\u918B\u91AE\u4FC3\u56D1\u71ED\u77D7\u8700\u89F8\u5BF8\u5FD6\u6751\u90A8\u53E2\u585A\u5BF5\u60A4\u6181\u6460\u7E3D\u8070\u8525\u9283\u64AE\u50AC\u5D14\u6700\u589C\u62BD\u63A8\u690E\u6978\u6A1E\u6E6B\u76BA\u79CB\u82BB\u8429\u8ACF\u8DA8\u8FFD\u9112\u914B\u919C\u9310\u9318\u939A\u96DB\u9A36\u9C0D\u4E11\u755C\u795D\u7AFA\u7B51\u7BC9\u7E2E\u84C4\u8E59\u8E74\u8EF8\u9010\u6625\u693F\u7443\u51FA\u672E\u9EDC\u5145\u5FE0\u6C96\u87F2\u885D\u8877\u60B4\u81B5\u8403"],["f6a1","\u8D05\u53D6\u5439\u5634\u5A36\u5C31\u708A\u7FE0\u805A\u8106\u81ED\u8DA3\u9189\u9A5F\u9DF2\u5074\u4EC4\u53A0\u60FB\u6E2C\u5C64\u4F88\u5024\u55E4\u5CD9\u5E5F\u6065\u6894\u6CBB\u6DC4\u71BE\u75D4\u75F4\u7661\u7A1A\u7A49\u7DC7\u7DFB\u7F6E\u81F4\u86A9\u8F1C\u96C9\u99B3\u9F52\u5247\u52C5\u98ED\u89AA\u4E03\u67D2\u6F06\u4FB5\u5BE2\u6795\u6C88\u6D78\u741B\u7827\u91DD\u937C\u87C4\u79E4\u7A31\u5FEB\u4ED6\u54A4\u553E\u58AE\u59A5\u60F0\u6253\u62D6\u6736\u6955\u8235\u9640\u99B1\u99DD\u502C\u5353\u5544\u577C\uFA01\u6258\uFA02\u64E2\u666B\u67DD\u6FC1\u6FEF\u7422\u7438\u8A17"],["f7a1","\u9438\u5451\u5606\u5766\u5F48\u619A\u6B4E\u7058\u70AD\u7DBB\u8A95\u596A\u812B\u63A2\u7708\u803D\u8CAA\u5854\u642D\u69BB\u5B95\u5E11\u6E6F\uFA03\u8569\u514C\u53F0\u592A\u6020\u614B\u6B86\u6C70\u6CF0\u7B1E\u80CE\u82D4\u8DC6\u90B0\u98B1\uFA04\u64C7\u6FA4\u6491\u6504\u514E\u5410\u571F\u8A0E\u615F\u6876\uFA05\u75DB\u7B52\u7D71\u901A\u5806\u69CC\u817F\u892A\u9000\u9839\u5078\u5957\u59AC\u6295\u900F\u9B2A\u615D\u7279\u95D6\u5761\u5A46\u5DF4\u628A\u64AD\u64FA\u6777\u6CE2\u6D3E\u722C\u7436\u7834\u7F77\u82AD\u8DDB\u9817\u5224\u5742\u677F\u7248\u74E3\u8CA9\u8FA6\u9211"],["f8a1","\u962A\u516B\u53ED\u634C\u4F69\u5504\u6096\u6557\u6C9B\u6D7F\u724C\u72FD\u7A17\u8987\u8C9D\u5F6D\u6F8E\u70F9\u81A8\u610E\u4FBF\u504F\u6241\u7247\u7BC7\u7DE8\u7FE9\u904D\u97AD\u9A19\u8CB6\u576A\u5E73\u67B0\u840D\u8A55\u5420\u5B16\u5E63\u5EE2\u5F0A\u6583\u80BA\u853D\u9589\u965B\u4F48\u5305\u530D\u530F\u5486\u54FA\u5703\u5E03\u6016\u629B\u62B1\u6355\uFA06\u6CE1\u6D66\u75B1\u7832\u80DE\u812F\u82DE\u8461\u84B2\u888D\u8912\u900B\u92EA\u98FD\u9B91\u5E45\u66B4\u66DD\u7011\u7206\uFA07\u4FF5\u527D\u5F6A\u6153\u6753\u6A19\u6F02\u74E2\u7968\u8868\u8C79\u98C7\u98C4\u9A43"],["f9a1","\u54C1\u7A1F\u6953\u8AF7\u8C4A\u98A8\u99AE\u5F7C\u62AB\u75B2\u76AE\u88AB\u907F\u9642\u5339\u5F3C\u5FC5\u6CCC\u73CC\u7562\u758B\u7B46\u82FE\u999D\u4E4F\u903C\u4E0B\u4F55\u53A6\u590F\u5EC8\u6630\u6CB3\u7455\u8377\u8766\u8CC0\u9050\u971E\u9C15\u58D1\u5B78\u8650\u8B14\u9DB4\u5BD2\u6068\u608D\u65F1\u6C57\u6F22\u6FA3\u701A\u7F55\u7FF0\u9591\u9592\u9650\u97D3\u5272\u8F44\u51FD\u542B\u54B8\u5563\u558A\u6ABB\u6DB5\u7DD8\u8266\u929C\u9677\u9E79\u5408\u54C8\u76D2\u86E4\u95A4\u95D4\u965C\u4EA2\u4F09\u59EE\u5AE6\u5DF7\u6052\u6297\u676D\u6841\u6C86\u6E2F\u7F38\u809B\u822A"],["faa1","\uFA08\uFA09\u9805\u4EA5\u5055\u54B3\u5793\u595A\u5B69\u5BB3\u61C8\u6977\u6D77\u7023\u87F9\u89E3\u8A72\u8AE7\u9082\u99ED\u9AB8\u52BE\u6838\u5016\u5E78\u674F\u8347\u884C\u4EAB\u5411\u56AE\u73E6\u9115\u97FF\u9909\u9957\u9999\u5653\u589F\u865B\u8A31\u61B2\u6AF6\u737B\u8ED2\u6B47\u96AA\u9A57\u5955\u7200\u8D6B\u9769\u4FD4\u5CF4\u5F26\u61F8\u665B\u6CEB\u70AB\u7384\u73B9\u73FE\u7729\u774D\u7D43\u7D62\u7E23\u8237\u8852\uFA0A\u8CE2\u9249\u986F\u5B51\u7A74\u8840\u9801\u5ACC\u4FE0\u5354\u593E\u5CFD\u633E\u6D79\u72F9\u8105\u8107\u83A2\u92CF\u9830\u4EA8\u5144\u5211\u578B"],["fba1","\u5F62\u6CC2\u6ECE\u7005\u7050\u70AF\u7192\u73E9\u7469\u834A\u87A2\u8861\u9008\u90A2\u93A3\u99A8\u516E\u5F57\u60E0\u6167\u66B3\u8559\u8E4A\u91AF\u978B\u4E4E\u4E92\u547C\u58D5\u58FA\u597D\u5CB5\u5F27\u6236\u6248\u660A\u6667\u6BEB\u6D69\u6DCF\u6E56\u6EF8\u6F94\u6FE0\u6FE9\u705D\u72D0\u7425\u745A\u74E0\u7693\u795C\u7CCA\u7E1E\u80E1\u82A6\u846B\u84BF\u864E\u865F\u8774\u8B77\u8C6A\u93AC\u9800\u9865\u60D1\u6216\u9177\u5A5A\u660F\u6DF7\u6E3E\u743F\u9B42\u5FFD\u60DA\u7B0F\u54C4\u5F18\u6C5E\u6CD3\u6D2A\u70D8\u7D05\u8679\u8A0C\u9D3B\u5316\u548C\u5B05\u6A3A\u706B\u7575"],["fca1","\u798D\u79BE\u82B1\u83EF\u8A71\u8B41\u8CA8\u9774\uFA0B\u64F4\u652B\u78BA\u78BB\u7A6B\u4E38\u559A\u5950\u5BA6\u5E7B\u60A3\u63DB\u6B61\u6665\u6853\u6E19\u7165\u74B0\u7D08\u9084\u9A69\u9C25\u6D3B\u6ED1\u733E\u8C41\u95CA\u51F0\u5E4C\u5FA8\u604D\u60F6\u6130\u614C\u6643\u6644\u69A5\u6CC1\u6E5F\u6EC9\u6F62\u714C\u749C\u7687\u7BC1\u7C27\u8352\u8757\u9051\u968D\u9EC3\u532F\u56DE\u5EFB\u5F8A\u6062\u6094\u61F7\u6666\u6703\u6A9C\u6DEE\u6FAE\u7070\u736A\u7E6A\u81BE\u8334\u86D4\u8AA8\u8CC4\u5283\u7372\u5B96\u6A6B\u9404\u54EE\u5686\u5B5D\u6548\u6585\u66C9\u689F\u6D8D\u6DC6"],["fda1","\u723B\u80B4\u9175\u9A4D\u4FAF\u5019\u539A\u540E\u543C\u5589\u55C5\u5E3F\u5F8C\u673D\u7166\u73DD\u9005\u52DB\u52F3\u5864\u58CE\u7104\u718F\u71FB\u85B0\u8A13\u6688\u85A8\u55A7\u6684\u714A\u8431\u5349\u5599\u6BC1\u5F59\u5FBD\u63EE\u6689\u7147\u8AF1\u8F1D\u9EBE\u4F11\u643A\u70CB\u7566\u8667\u6064\u8B4E\u9DF8\u5147\u51F6\u5308\u6D36\u80F8\u9ED1\u6615\u6B23\u7098\u75D5\u5403\u5C79\u7D07\u8A16\u6B20\u6B3D\u6B46\u5438\u6070\u6D3D\u7FD5\u8208\u50D6\u51DE\u559C\u566B\u56CD\u59EC\u5B09\u5E0C\u6199\u6198\u6231\u665E\u66E6\u7199\u71B9\u71BA\u72A7\u79A7\u7A00\u7FB2\u8A70"]],require$$6=[["0","\0",127],["a140","\u3000\uFF0C\u3001\u3002\uFF0E\u2027\uFF1B\uFF1A\uFF1F\uFF01\uFE30\u2026\u2025\uFE50\uFE51\uFE52\xB7\uFE54\uFE55\uFE56\uFE57\uFF5C\u2013\uFE31\u2014\uFE33\u2574\uFE34\uFE4F\uFF08\uFF09\uFE35\uFE36\uFF5B\uFF5D\uFE37\uFE38\u3014\u3015\uFE39\uFE3A\u3010\u3011\uFE3B\uFE3C\u300A\u300B\uFE3D\uFE3E\u3008\u3009\uFE3F\uFE40\u300C\u300D\uFE41\uFE42\u300E\u300F\uFE43\uFE44\uFE59\uFE5A"],["a1a1","\uFE5B\uFE5C\uFE5D\uFE5E\u2018\u2019\u201C\u201D\u301D\u301E\u2035\u2032\uFF03\uFF06\uFF0A\u203B\xA7\u3003\u25CB\u25CF\u25B3\u25B2\u25CE\u2606\u2605\u25C7\u25C6\u25A1\u25A0\u25BD\u25BC\u32A3\u2105\xAF\uFFE3\uFF3F\u02CD\uFE49\uFE4A\uFE4D\uFE4E\uFE4B\uFE4C\uFE5F\uFE60\uFE61\uFF0B\uFF0D\xD7\xF7\xB1\u221A\uFF1C\uFF1E\uFF1D\u2266\u2267\u2260\u221E\u2252\u2261\uFE62",4,"\uFF5E\u2229\u222A\u22A5\u2220\u221F\u22BF\u33D2\u33D1\u222B\u222E\u2235\u2234\u2640\u2642\u2295\u2299\u2191\u2193\u2190\u2192\u2196\u2197\u2199\u2198\u2225\u2223\uFF0F"],["a240","\uFF3C\u2215\uFE68\uFF04\uFFE5\u3012\uFFE0\uFFE1\uFF05\uFF20\u2103\u2109\uFE69\uFE6A\uFE6B\u33D5\u339C\u339D\u339E\u33CE\u33A1\u338E\u338F\u33C4\xB0\u5159\u515B\u515E\u515D\u5161\u5163\u55E7\u74E9\u7CCE\u2581",7,"\u258F\u258E\u258D\u258C\u258B\u258A\u2589\u253C\u2534\u252C\u2524\u251C\u2594\u2500\u2502\u2595\u250C\u2510\u2514\u2518\u256D"],["a2a1","\u256E\u2570\u256F\u2550\u255E\u256A\u2561\u25E2\u25E3\u25E5\u25E4\u2571\u2572\u2573\uFF10",9,"\u2160",9,"\u3021",8,"\u5341\u5344\u5345\uFF21",25,"\uFF41",21],["a340","\uFF57\uFF58\uFF59\uFF5A\u0391",16,"\u03A3",6,"\u03B1",16,"\u03C3",6,"\u3105",10],["a3a1","\u3110",25,"\u02D9\u02C9\u02CA\u02C7\u02CB"],["a3e1","\u20AC"],["a440","\u4E00\u4E59\u4E01\u4E03\u4E43\u4E5D\u4E86\u4E8C\u4EBA\u513F\u5165\u516B\u51E0\u5200\u5201\u529B\u5315\u5341\u535C\u53C8\u4E09\u4E0B\u4E08\u4E0A\u4E2B\u4E38\u51E1\u4E45\u4E48\u4E5F\u4E5E\u4E8E\u4EA1\u5140\u5203\u52FA\u5343\u53C9\u53E3\u571F\u58EB\u5915\u5927\u5973\u5B50\u5B51\u5B53\u5BF8\u5C0F\u5C22\u5C38\u5C71\u5DDD\u5DE5\u5DF1\u5DF2\u5DF3\u5DFE\u5E72\u5EFE\u5F0B\u5F13\u624D"],["a4a1","\u4E11\u4E10\u4E0D\u4E2D\u4E30\u4E39\u4E4B\u5C39\u4E88\u4E91\u4E95\u4E92\u4E94\u4EA2\u4EC1\u4EC0\u4EC3\u4EC6\u4EC7\u4ECD\u4ECA\u4ECB\u4EC4\u5143\u5141\u5167\u516D\u516E\u516C\u5197\u51F6\u5206\u5207\u5208\u52FB\u52FE\u52FF\u5316\u5339\u5348\u5347\u5345\u535E\u5384\u53CB\u53CA\u53CD\u58EC\u5929\u592B\u592A\u592D\u5B54\u5C11\u5C24\u5C3A\u5C6F\u5DF4\u5E7B\u5EFF\u5F14\u5F15\u5FC3\u6208\u6236\u624B\u624E\u652F\u6587\u6597\u65A4\u65B9\u65E5\u66F0\u6708\u6728\u6B20\u6B62\u6B79\u6BCB\u6BD4\u6BDB\u6C0F\u6C34\u706B\u722A\u7236\u723B\u7247\u7259\u725B\u72AC\u738B\u4E19"],["a540","\u4E16\u4E15\u4E14\u4E18\u4E3B\u4E4D\u4E4F\u4E4E\u4EE5\u4ED8\u4ED4\u4ED5\u4ED6\u4ED7\u4EE3\u4EE4\u4ED9\u4EDE\u5145\u5144\u5189\u518A\u51AC\u51F9\u51FA\u51F8\u520A\u52A0\u529F\u5305\u5306\u5317\u531D\u4EDF\u534A\u5349\u5361\u5360\u536F\u536E\u53BB\u53EF\u53E4\u53F3\u53EC\u53EE\u53E9\u53E8\u53FC\u53F8\u53F5\u53EB\u53E6\u53EA\u53F2\u53F1\u53F0\u53E5\u53ED\u53FB\u56DB\u56DA\u5916"],["a5a1","\u592E\u5931\u5974\u5976\u5B55\u5B83\u5C3C\u5DE8\u5DE7\u5DE6\u5E02\u5E03\u5E73\u5E7C\u5F01\u5F18\u5F17\u5FC5\u620A\u6253\u6254\u6252\u6251\u65A5\u65E6\u672E\u672C\u672A\u672B\u672D\u6B63\u6BCD\u6C11\u6C10\u6C38\u6C41\u6C40\u6C3E\u72AF\u7384\u7389\u74DC\u74E6\u7518\u751F\u7528\u7529\u7530\u7531\u7532\u7533\u758B\u767D\u76AE\u76BF\u76EE\u77DB\u77E2\u77F3\u793A\u79BE\u7A74\u7ACB\u4E1E\u4E1F\u4E52\u4E53\u4E69\u4E99\u4EA4\u4EA6\u4EA5\u4EFF\u4F09\u4F19\u4F0A\u4F15\u4F0D\u4F10\u4F11\u4F0F\u4EF2\u4EF6\u4EFB\u4EF0\u4EF3\u4EFD\u4F01\u4F0B\u5149\u5147\u5146\u5148\u5168"],["a640","\u5171\u518D\u51B0\u5217\u5211\u5212\u520E\u5216\u52A3\u5308\u5321\u5320\u5370\u5371\u5409\u540F\u540C\u540A\u5410\u5401\u540B\u5404\u5411\u540D\u5408\u5403\u540E\u5406\u5412\u56E0\u56DE\u56DD\u5733\u5730\u5728\u572D\u572C\u572F\u5729\u5919\u591A\u5937\u5938\u5984\u5978\u5983\u597D\u5979\u5982\u5981\u5B57\u5B58\u5B87\u5B88\u5B85\u5B89\u5BFA\u5C16\u5C79\u5DDE\u5E06\u5E76\u5E74"],["a6a1","\u5F0F\u5F1B\u5FD9\u5FD6\u620E\u620C\u620D\u6210\u6263\u625B\u6258\u6536\u65E9\u65E8\u65EC\u65ED\u66F2\u66F3\u6709\u673D\u6734\u6731\u6735\u6B21\u6B64\u6B7B\u6C16\u6C5D\u6C57\u6C59\u6C5F\u6C60\u6C50\u6C55\u6C61\u6C5B\u6C4D\u6C4E\u7070\u725F\u725D\u767E\u7AF9\u7C73\u7CF8\u7F36\u7F8A\u7FBD\u8001\u8003\u800C\u8012\u8033\u807F\u8089\u808B\u808C\u81E3\u81EA\u81F3\u81FC\u820C\u821B\u821F\u826E\u8272\u827E\u866B\u8840\u884C\u8863\u897F\u9621\u4E32\u4EA8\u4F4D\u4F4F\u4F47\u4F57\u4F5E\u4F34\u4F5B\u4F55\u4F30\u4F50\u4F51\u4F3D\u4F3A\u4F38\u4F43\u4F54\u4F3C\u4F46\u4F63"],["a740","\u4F5C\u4F60\u4F2F\u4F4E\u4F36\u4F59\u4F5D\u4F48\u4F5A\u514C\u514B\u514D\u5175\u51B6\u51B7\u5225\u5224\u5229\u522A\u5228\u52AB\u52A9\u52AA\u52AC\u5323\u5373\u5375\u541D\u542D\u541E\u543E\u5426\u544E\u5427\u5446\u5443\u5433\u5448\u5442\u541B\u5429\u544A\u5439\u543B\u5438\u542E\u5435\u5436\u5420\u543C\u5440\u5431\u542B\u541F\u542C\u56EA\u56F0\u56E4\u56EB\u574A\u5751\u5740\u574D"],["a7a1","\u5747\u574E\u573E\u5750\u574F\u573B\u58EF\u593E\u599D\u5992\u59A8\u599E\u59A3\u5999\u5996\u598D\u59A4\u5993\u598A\u59A5\u5B5D\u5B5C\u5B5A\u5B5B\u5B8C\u5B8B\u5B8F\u5C2C\u5C40\u5C41\u5C3F\u5C3E\u5C90\u5C91\u5C94\u5C8C\u5DEB\u5E0C\u5E8F\u5E87\u5E8A\u5EF7\u5F04\u5F1F\u5F64\u5F62\u5F77\u5F79\u5FD8\u5FCC\u5FD7\u5FCD\u5FF1\u5FEB\u5FF8\u5FEA\u6212\u6211\u6284\u6297\u6296\u6280\u6276\u6289\u626D\u628A\u627C\u627E\u6279\u6273\u6292\u626F\u6298\u626E\u6295\u6293\u6291\u6286\u6539\u653B\u6538\u65F1\u66F4\u675F\u674E\u674F\u6750\u6751\u675C\u6756\u675E\u6749\u6746\u6760"],["a840","\u6753\u6757\u6B65\u6BCF\u6C42\u6C5E\u6C99\u6C81\u6C88\u6C89\u6C85\u6C9B\u6C6A\u6C7A\u6C90\u6C70\u6C8C\u6C68\u6C96\u6C92\u6C7D\u6C83\u6C72\u6C7E\u6C74\u6C86\u6C76\u6C8D\u6C94\u6C98\u6C82\u7076\u707C\u707D\u7078\u7262\u7261\u7260\u72C4\u72C2\u7396\u752C\u752B\u7537\u7538\u7682\u76EF\u77E3\u79C1\u79C0\u79BF\u7A76\u7CFB\u7F55\u8096\u8093\u809D\u8098\u809B\u809A\u80B2\u826F\u8292"],["a8a1","\u828B\u828D\u898B\u89D2\u8A00\u8C37\u8C46\u8C55\u8C9D\u8D64\u8D70\u8DB3\u8EAB\u8ECA\u8F9B\u8FB0\u8FC2\u8FC6\u8FC5\u8FC4\u5DE1\u9091\u90A2\u90AA\u90A6\u90A3\u9149\u91C6\u91CC\u9632\u962E\u9631\u962A\u962C\u4E26\u4E56\u4E73\u4E8B\u4E9B\u4E9E\u4EAB\u4EAC\u4F6F\u4F9D\u4F8D\u4F73\u4F7F\u4F6C\u4F9B\u4F8B\u4F86\u4F83\u4F70\u4F75\u4F88\u4F69\u4F7B\u4F96\u4F7E\u4F8F\u4F91\u4F7A\u5154\u5152\u5155\u5169\u5177\u5176\u5178\u51BD\u51FD\u523B\u5238\u5237\u523A\u5230\u522E\u5236\u5241\u52BE\u52BB\u5352\u5354\u5353\u5351\u5366\u5377\u5378\u5379\u53D6\u53D4\u53D7\u5473\u5475"],["a940","\u5496\u5478\u5495\u5480\u547B\u5477\u5484\u5492\u5486\u547C\u5490\u5471\u5476\u548C\u549A\u5462\u5468\u548B\u547D\u548E\u56FA\u5783\u5777\u576A\u5769\u5761\u5766\u5764\u577C\u591C\u5949\u5947\u5948\u5944\u5954\u59BE\u59BB\u59D4\u59B9\u59AE\u59D1\u59C6\u59D0\u59CD\u59CB\u59D3\u59CA\u59AF\u59B3\u59D2\u59C5\u5B5F\u5B64\u5B63\u5B97\u5B9A\u5B98\u5B9C\u5B99\u5B9B\u5C1A\u5C48\u5C45"],["a9a1","\u5C46\u5CB7\u5CA1\u5CB8\u5CA9\u5CAB\u5CB1\u5CB3\u5E18\u5E1A\u5E16\u5E15\u5E1B\u5E11\u5E78\u5E9A\u5E97\u5E9C\u5E95\u5E96\u5EF6\u5F26\u5F27\u5F29\u5F80\u5F81\u5F7F\u5F7C\u5FDD\u5FE0\u5FFD\u5FF5\u5FFF\u600F\u6014\u602F\u6035\u6016\u602A\u6015\u6021\u6027\u6029\u602B\u601B\u6216\u6215\u623F\u623E\u6240\u627F\u62C9\u62CC\u62C4\u62BF\u62C2\u62B9\u62D2\u62DB\u62AB\u62D3\u62D4\u62CB\u62C8\u62A8\u62BD\u62BC\u62D0\u62D9\u62C7\u62CD\u62B5\u62DA\u62B1\u62D8\u62D6\u62D7\u62C6\u62AC\u62CE\u653E\u65A7\u65BC\u65FA\u6614\u6613\u660C\u6606\u6602\u660E\u6600\u660F\u6615\u660A"],["aa40","\u6607\u670D\u670B\u676D\u678B\u6795\u6771\u679C\u6773\u6777\u6787\u679D\u6797\u676F\u6770\u677F\u6789\u677E\u6790\u6775\u679A\u6793\u677C\u676A\u6772\u6B23\u6B66\u6B67\u6B7F\u6C13\u6C1B\u6CE3\u6CE8\u6CF3\u6CB1\u6CCC\u6CE5\u6CB3\u6CBD\u6CBE\u6CBC\u6CE2\u6CAB\u6CD5\u6CD3\u6CB8\u6CC4\u6CB9\u6CC1\u6CAE\u6CD7\u6CC5\u6CF1\u6CBF\u6CBB\u6CE1\u6CDB\u6CCA\u6CAC\u6CEF\u6CDC\u6CD6\u6CE0"],["aaa1","\u7095\u708E\u7092\u708A\u7099\u722C\u722D\u7238\u7248\u7267\u7269\u72C0\u72CE\u72D9\u72D7\u72D0\u73A9\u73A8\u739F\u73AB\u73A5\u753D\u759D\u7599\u759A\u7684\u76C2\u76F2\u76F4\u77E5\u77FD\u793E\u7940\u7941\u79C9\u79C8\u7A7A\u7A79\u7AFA\u7CFE\u7F54\u7F8C\u7F8B\u8005\u80BA\u80A5\u80A2\u80B1\u80A1\u80AB\u80A9\u80B4\u80AA\u80AF\u81E5\u81FE\u820D\u82B3\u829D\u8299\u82AD\u82BD\u829F\u82B9\u82B1\u82AC\u82A5\u82AF\u82B8\u82A3\u82B0\u82BE\u82B7\u864E\u8671\u521D\u8868\u8ECB\u8FCE\u8FD4\u8FD1\u90B5\u90B8\u90B1\u90B6\u91C7\u91D1\u9577\u9580\u961C\u9640\u963F\u963B\u9644"],["ab40","\u9642\u96B9\u96E8\u9752\u975E\u4E9F\u4EAD\u4EAE\u4FE1\u4FB5\u4FAF\u4FBF\u4FE0\u4FD1\u4FCF\u4FDD\u4FC3\u4FB6\u4FD8\u4FDF\u4FCA\u4FD7\u4FAE\u4FD0\u4FC4\u4FC2\u4FDA\u4FCE\u4FDE\u4FB7\u5157\u5192\u5191\u51A0\u524E\u5243\u524A\u524D\u524C\u524B\u5247\u52C7\u52C9\u52C3\u52C1\u530D\u5357\u537B\u539A\u53DB\u54AC\u54C0\u54A8\u54CE\u54C9\u54B8\u54A6\u54B3\u54C7\u54C2\u54BD\u54AA\u54C1"],["aba1","\u54C4\u54C8\u54AF\u54AB\u54B1\u54BB\u54A9\u54A7\u54BF\u56FF\u5782\u578B\u57A0\u57A3\u57A2\u57CE\u57AE\u5793\u5955\u5951\u594F\u594E\u5950\u59DC\u59D8\u59FF\u59E3\u59E8\u5A03\u59E5\u59EA\u59DA\u59E6\u5A01\u59FB\u5B69\u5BA3\u5BA6\u5BA4\u5BA2\u5BA5\u5C01\u5C4E\u5C4F\u5C4D\u5C4B\u5CD9\u5CD2\u5DF7\u5E1D\u5E25\u5E1F\u5E7D\u5EA0\u5EA6\u5EFA\u5F08\u5F2D\u5F65\u5F88\u5F85\u5F8A\u5F8B\u5F87\u5F8C\u5F89\u6012\u601D\u6020\u6025\u600E\u6028\u604D\u6070\u6068\u6062\u6046\u6043\u606C\u606B\u606A\u6064\u6241\u62DC\u6316\u6309\u62FC\u62ED\u6301\u62EE\u62FD\u6307\u62F1\u62F7"],["ac40","\u62EF\u62EC\u62FE\u62F4\u6311\u6302\u653F\u6545\u65AB\u65BD\u65E2\u6625\u662D\u6620\u6627\u662F\u661F\u6628\u6631\u6624\u66F7\u67FF\u67D3\u67F1\u67D4\u67D0\u67EC\u67B6\u67AF\u67F5\u67E9\u67EF\u67C4\u67D1\u67B4\u67DA\u67E5\u67B8\u67CF\u67DE\u67F3\u67B0\u67D9\u67E2\u67DD\u67D2\u6B6A\u6B83\u6B86\u6BB5\u6BD2\u6BD7\u6C1F\u6CC9\u6D0B\u6D32\u6D2A\u6D41\u6D25\u6D0C\u6D31\u6D1E\u6D17"],["aca1","\u6D3B\u6D3D\u6D3E\u6D36\u6D1B\u6CF5\u6D39\u6D27\u6D38\u6D29\u6D2E\u6D35\u6D0E\u6D2B\u70AB\u70BA\u70B3\u70AC\u70AF\u70AD\u70B8\u70AE\u70A4\u7230\u7272\u726F\u7274\u72E9\u72E0\u72E1\u73B7\u73CA\u73BB\u73B2\u73CD\u73C0\u73B3\u751A\u752D\u754F\u754C\u754E\u754B\u75AB\u75A4\u75A5\u75A2\u75A3\u7678\u7686\u7687\u7688\u76C8\u76C6\u76C3\u76C5\u7701\u76F9\u76F8\u7709\u770B\u76FE\u76FC\u7707\u77DC\u7802\u7814\u780C\u780D\u7946\u7949\u7948\u7947\u79B9\u79BA\u79D1\u79D2\u79CB\u7A7F\u7A81\u7AFF\u7AFD\u7C7D\u7D02\u7D05\u7D00\u7D09\u7D07\u7D04\u7D06\u7F38\u7F8E\u7FBF\u8004"],["ad40","\u8010\u800D\u8011\u8036\u80D6\u80E5\u80DA\u80C3\u80C4\u80CC\u80E1\u80DB\u80CE\u80DE\u80E4\u80DD\u81F4\u8222\u82E7\u8303\u8305\u82E3\u82DB\u82E6\u8304\u82E5\u8302\u8309\u82D2\u82D7\u82F1\u8301\u82DC\u82D4\u82D1\u82DE\u82D3\u82DF\u82EF\u8306\u8650\u8679\u867B\u867A\u884D\u886B\u8981\u89D4\u8A08\u8A02\u8A03\u8C9E\u8CA0\u8D74\u8D73\u8DB4\u8ECD\u8ECC\u8FF0\u8FE6\u8FE2\u8FEA\u8FE5"],["ada1","\u8FED\u8FEB\u8FE4\u8FE8\u90CA\u90CE\u90C1\u90C3\u914B\u914A\u91CD\u9582\u9650\u964B\u964C\u964D\u9762\u9769\u97CB\u97ED\u97F3\u9801\u98A8\u98DB\u98DF\u9996\u9999\u4E58\u4EB3\u500C\u500D\u5023\u4FEF\u5026\u5025\u4FF8\u5029\u5016\u5006\u503C\u501F\u501A\u5012\u5011\u4FFA\u5000\u5014\u5028\u4FF1\u5021\u500B\u5019\u5018\u4FF3\u4FEE\u502D\u502A\u4FFE\u502B\u5009\u517C\u51A4\u51A5\u51A2\u51CD\u51CC\u51C6\u51CB\u5256\u525C\u5254\u525B\u525D\u532A\u537F\u539F\u539D\u53DF\u54E8\u5510\u5501\u5537\u54FC\u54E5\u54F2\u5506\u54FA\u5514\u54E9\u54ED\u54E1\u5509\u54EE\u54EA"],["ae40","\u54E6\u5527\u5507\u54FD\u550F\u5703\u5704\u57C2\u57D4\u57CB\u57C3\u5809\u590F\u5957\u5958\u595A\u5A11\u5A18\u5A1C\u5A1F\u5A1B\u5A13\u59EC\u5A20\u5A23\u5A29\u5A25\u5A0C\u5A09\u5B6B\u5C58\u5BB0\u5BB3\u5BB6\u5BB4\u5BAE\u5BB5\u5BB9\u5BB8\u5C04\u5C51\u5C55\u5C50\u5CED\u5CFD\u5CFB\u5CEA\u5CE8\u5CF0\u5CF6\u5D01\u5CF4\u5DEE\u5E2D\u5E2B\u5EAB\u5EAD\u5EA7\u5F31\u5F92\u5F91\u5F90\u6059"],["aea1","\u6063\u6065\u6050\u6055\u606D\u6069\u606F\u6084\u609F\u609A\u608D\u6094\u608C\u6085\u6096\u6247\u62F3\u6308\u62FF\u634E\u633E\u632F\u6355\u6342\u6346\u634F\u6349\u633A\u6350\u633D\u632A\u632B\u6328\u634D\u634C\u6548\u6549\u6599\u65C1\u65C5\u6642\u6649\u664F\u6643\u6652\u664C\u6645\u6641\u66F8\u6714\u6715\u6717\u6821\u6838\u6848\u6846\u6853\u6839\u6842\u6854\u6829\u68B3\u6817\u684C\u6851\u683D\u67F4\u6850\u6840\u683C\u6843\u682A\u6845\u6813\u6818\u6841\u6B8A\u6B89\u6BB7\u6C23\u6C27\u6C28\u6C26\u6C24\u6CF0\u6D6A\u6D95\u6D88\u6D87\u6D66\u6D78\u6D77\u6D59\u6D93"],["af40","\u6D6C\u6D89\u6D6E\u6D5A\u6D74\u6D69\u6D8C\u6D8A\u6D79\u6D85\u6D65\u6D94\u70CA\u70D8\u70E4\u70D9\u70C8\u70CF\u7239\u7279\u72FC\u72F9\u72FD\u72F8\u72F7\u7386\u73ED\u7409\u73EE\u73E0\u73EA\u73DE\u7554\u755D\u755C\u755A\u7559\u75BE\u75C5\u75C7\u75B2\u75B3\u75BD\u75BC\u75B9\u75C2\u75B8\u768B\u76B0\u76CA\u76CD\u76CE\u7729\u771F\u7720\u7728\u77E9\u7830\u7827\u7838\u781D\u7834\u7837"],["afa1","\u7825\u782D\u7820\u781F\u7832\u7955\u7950\u7960\u795F\u7956\u795E\u795D\u7957\u795A\u79E4\u79E3\u79E7\u79DF\u79E6\u79E9\u79D8\u7A84\u7A88\u7AD9\u7B06\u7B11\u7C89\u7D21\u7D17\u7D0B\u7D0A\u7D20\u7D22\u7D14\u7D10\u7D15\u7D1A\u7D1C\u7D0D\u7D19\u7D1B\u7F3A\u7F5F\u7F94\u7FC5\u7FC1\u8006\u8018\u8015\u8019\u8017\u803D\u803F\u80F1\u8102\u80F0\u8105\u80ED\u80F4\u8106\u80F8\u80F3\u8108\u80FD\u810A\u80FC\u80EF\u81ED\u81EC\u8200\u8210\u822A\u822B\u8228\u822C\u82BB\u832B\u8352\u8354\u834A\u8338\u8350\u8349\u8335\u8334\u834F\u8332\u8339\u8336\u8317\u8340\u8331\u8328\u8343"],["b040","\u8654\u868A\u86AA\u8693\u86A4\u86A9\u868C\u86A3\u869C\u8870\u8877\u8881\u8882\u887D\u8879\u8A18\u8A10\u8A0E\u8A0C\u8A15\u8A0A\u8A17\u8A13\u8A16\u8A0F\u8A11\u8C48\u8C7A\u8C79\u8CA1\u8CA2\u8D77\u8EAC\u8ED2\u8ED4\u8ECF\u8FB1\u9001\u9006\u8FF7\u9000\u8FFA\u8FF4\u9003\u8FFD\u9005\u8FF8\u9095\u90E1\u90DD\u90E2\u9152\u914D\u914C\u91D8\u91DD\u91D7\u91DC\u91D9\u9583\u9662\u9663\u9661"],["b0a1","\u965B\u965D\u9664\u9658\u965E\u96BB\u98E2\u99AC\u9AA8\u9AD8\u9B25\u9B32\u9B3C\u4E7E\u507A\u507D\u505C\u5047\u5043\u504C\u505A\u5049\u5065\u5076\u504E\u5055\u5075\u5074\u5077\u504F\u500F\u506F\u506D\u515C\u5195\u51F0\u526A\u526F\u52D2\u52D9\u52D8\u52D5\u5310\u530F\u5319\u533F\u5340\u533E\u53C3\u66FC\u5546\u556A\u5566\u5544\u555E\u5561\u5543\u554A\u5531\u5556\u554F\u5555\u552F\u5564\u5538\u552E\u555C\u552C\u5563\u5533\u5541\u5557\u5708\u570B\u5709\u57DF\u5805\u580A\u5806\u57E0\u57E4\u57FA\u5802\u5835\u57F7\u57F9\u5920\u5962\u5A36\u5A41\u5A49\u5A66\u5A6A\u5A40"],["b140","\u5A3C\u5A62\u5A5A\u5A46\u5A4A\u5B70\u5BC7\u5BC5\u5BC4\u5BC2\u5BBF\u5BC6\u5C09\u5C08\u5C07\u5C60\u5C5C\u5C5D\u5D07\u5D06\u5D0E\u5D1B\u5D16\u5D22\u5D11\u5D29\u5D14\u5D19\u5D24\u5D27\u5D17\u5DE2\u5E38\u5E36\u5E33\u5E37\u5EB7\u5EB8\u5EB6\u5EB5\u5EBE\u5F35\u5F37\u5F57\u5F6C\u5F69\u5F6B\u5F97\u5F99\u5F9E\u5F98\u5FA1\u5FA0\u5F9C\u607F\u60A3\u6089\u60A0\u60A8\u60CB\u60B4\u60E6\u60BD"],["b1a1","\u60C5\u60BB\u60B5\u60DC\u60BC\u60D8\u60D5\u60C6\u60DF\u60B8\u60DA\u60C7\u621A\u621B\u6248\u63A0\u63A7\u6372\u6396\u63A2\u63A5\u6377\u6367\u6398\u63AA\u6371\u63A9\u6389\u6383\u639B\u636B\u63A8\u6384\u6388\u6399\u63A1\u63AC\u6392\u638F\u6380\u637B\u6369\u6368\u637A\u655D\u6556\u6551\u6559\u6557\u555F\u654F\u6558\u6555\u6554\u659C\u659B\u65AC\u65CF\u65CB\u65CC\u65CE\u665D\u665A\u6664\u6668\u6666\u665E\u66F9\u52D7\u671B\u6881\u68AF\u68A2\u6893\u68B5\u687F\u6876\u68B1\u68A7\u6897\u68B0\u6883\u68C4\u68AD\u6886\u6885\u6894\u689D\u68A8\u689F\u68A1\u6882\u6B32\u6BBA"],["b240","\u6BEB\u6BEC\u6C2B\u6D8E\u6DBC\u6DF3\u6DD9\u6DB2\u6DE1\u6DCC\u6DE4\u6DFB\u6DFA\u6E05\u6DC7\u6DCB\u6DAF\u6DD1\u6DAE\u6DDE\u6DF9\u6DB8\u6DF7\u6DF5\u6DC5\u6DD2\u6E1A\u6DB5\u6DDA\u6DEB\u6DD8\u6DEA\u6DF1\u6DEE\u6DE8\u6DC6\u6DC4\u6DAA\u6DEC\u6DBF\u6DE6\u70F9\u7109\u710A\u70FD\u70EF\u723D\u727D\u7281\u731C\u731B\u7316\u7313\u7319\u7387\u7405\u740A\u7403\u7406\u73FE\u740D\u74E0\u74F6"],["b2a1","\u74F7\u751C\u7522\u7565\u7566\u7562\u7570\u758F\u75D4\u75D5\u75B5\u75CA\u75CD\u768E\u76D4\u76D2\u76DB\u7737\u773E\u773C\u7736\u7738\u773A\u786B\u7843\u784E\u7965\u7968\u796D\u79FB\u7A92\u7A95\u7B20\u7B28\u7B1B\u7B2C\u7B26\u7B19\u7B1E\u7B2E\u7C92\u7C97\u7C95\u7D46\u7D43\u7D71\u7D2E\u7D39\u7D3C\u7D40\u7D30\u7D33\u7D44\u7D2F\u7D42\u7D32\u7D31\u7F3D\u7F9E\u7F9A\u7FCC\u7FCE\u7FD2\u801C\u804A\u8046\u812F\u8116\u8123\u812B\u8129\u8130\u8124\u8202\u8235\u8237\u8236\u8239\u838E\u839E\u8398\u8378\u83A2\u8396\u83BD\u83AB\u8392\u838A\u8393\u8389\u83A0\u8377\u837B\u837C"],["b340","\u8386\u83A7\u8655\u5F6A\u86C7\u86C0\u86B6\u86C4\u86B5\u86C6\u86CB\u86B1\u86AF\u86C9\u8853\u889E\u8888\u88AB\u8892\u8896\u888D\u888B\u8993\u898F\u8A2A\u8A1D\u8A23\u8A25\u8A31\u8A2D\u8A1F\u8A1B\u8A22\u8C49\u8C5A\u8CA9\u8CAC\u8CAB\u8CA8\u8CAA\u8CA7\u8D67\u8D66\u8DBE\u8DBA\u8EDB\u8EDF\u9019\u900D\u901A\u9017\u9023\u901F\u901D\u9010\u9015\u901E\u9020\u900F\u9022\u9016\u901B\u9014"],["b3a1","\u90E8\u90ED\u90FD\u9157\u91CE\u91F5\u91E6\u91E3\u91E7\u91ED\u91E9\u9589\u966A\u9675\u9673\u9678\u9670\u9674\u9676\u9677\u966C\u96C0\u96EA\u96E9\u7AE0\u7ADF\u9802\u9803\u9B5A\u9CE5\u9E75\u9E7F\u9EA5\u9EBB\u50A2\u508D\u5085\u5099\u5091\u5080\u5096\u5098\u509A\u6700\u51F1\u5272\u5274\u5275\u5269\u52DE\u52DD\u52DB\u535A\u53A5\u557B\u5580\u55A7\u557C\u558A\u559D\u5598\u5582\u559C\u55AA\u5594\u5587\u558B\u5583\u55B3\u55AE\u559F\u553E\u55B2\u559A\u55BB\u55AC\u55B1\u557E\u5589\u55AB\u5599\u570D\u582F\u582A\u5834\u5824\u5830\u5831\u5821\u581D\u5820\u58F9\u58FA\u5960"],["b440","\u5A77\u5A9A\u5A7F\u5A92\u5A9B\u5AA7\u5B73\u5B71\u5BD2\u5BCC\u5BD3\u5BD0\u5C0A\u5C0B\u5C31\u5D4C\u5D50\u5D34\u5D47\u5DFD\u5E45\u5E3D\u5E40\u5E43\u5E7E\u5ECA\u5EC1\u5EC2\u5EC4\u5F3C\u5F6D\u5FA9\u5FAA\u5FA8\u60D1\u60E1\u60B2\u60B6\u60E0\u611C\u6123\u60FA\u6115\u60F0\u60FB\u60F4\u6168\u60F1\u610E\u60F6\u6109\u6100\u6112\u621F\u6249\u63A3\u638C\u63CF\u63C0\u63E9\u63C9\u63C6\u63CD"],["b4a1","\u63D2\u63E3\u63D0\u63E1\u63D6\u63ED\u63EE\u6376\u63F4\u63EA\u63DB\u6452\u63DA\u63F9\u655E\u6566\u6562\u6563\u6591\u6590\u65AF\u666E\u6670\u6674\u6676\u666F\u6691\u667A\u667E\u6677\u66FE\u66FF\u671F\u671D\u68FA\u68D5\u68E0\u68D8\u68D7\u6905\u68DF\u68F5\u68EE\u68E7\u68F9\u68D2\u68F2\u68E3\u68CB\u68CD\u690D\u6912\u690E\u68C9\u68DA\u696E\u68FB\u6B3E\u6B3A\u6B3D\u6B98\u6B96\u6BBC\u6BEF\u6C2E\u6C2F\u6C2C\u6E2F\u6E38\u6E54\u6E21\u6E32\u6E67\u6E4A\u6E20\u6E25\u6E23\u6E1B\u6E5B\u6E58\u6E24\u6E56\u6E6E\u6E2D\u6E26\u6E6F\u6E34\u6E4D\u6E3A\u6E2C\u6E43\u6E1D\u6E3E\u6ECB"],["b540","\u6E89\u6E19\u6E4E\u6E63\u6E44\u6E72\u6E69\u6E5F\u7119\u711A\u7126\u7130\u7121\u7136\u716E\u711C\u724C\u7284\u7280\u7336\u7325\u7334\u7329\u743A\u742A\u7433\u7422\u7425\u7435\u7436\u7434\u742F\u741B\u7426\u7428\u7525\u7526\u756B\u756A\u75E2\u75DB\u75E3\u75D9\u75D8\u75DE\u75E0\u767B\u767C\u7696\u7693\u76B4\u76DC\u774F\u77ED\u785D\u786C\u786F\u7A0D\u7A08\u7A0B\u7A05\u7A00\u7A98"],["b5a1","\u7A97\u7A96\u7AE5\u7AE3\u7B49\u7B56\u7B46\u7B50\u7B52\u7B54\u7B4D\u7B4B\u7B4F\u7B51\u7C9F\u7CA5\u7D5E\u7D50\u7D68\u7D55\u7D2B\u7D6E\u7D72\u7D61\u7D66\u7D62\u7D70\u7D73\u5584\u7FD4\u7FD5\u800B\u8052\u8085\u8155\u8154\u814B\u8151\u814E\u8139\u8146\u813E\u814C\u8153\u8174\u8212\u821C\u83E9\u8403\u83F8\u840D\u83E0\u83C5\u840B\u83C1\u83EF\u83F1\u83F4\u8457\u840A\u83F0\u840C\u83CC\u83FD\u83F2\u83CA\u8438\u840E\u8404\u83DC\u8407\u83D4\u83DF\u865B\u86DF\u86D9\u86ED\u86D4\u86DB\u86E4\u86D0\u86DE\u8857\u88C1\u88C2\u88B1\u8983\u8996\u8A3B\u8A60\u8A55\u8A5E\u8A3C\u8A41"],["b640","\u8A54\u8A5B\u8A50\u8A46\u8A34\u8A3A\u8A36\u8A56\u8C61\u8C82\u8CAF\u8CBC\u8CB3\u8CBD\u8CC1\u8CBB\u8CC0\u8CB4\u8CB7\u8CB6\u8CBF\u8CB8\u8D8A\u8D85\u8D81\u8DCE\u8DDD\u8DCB\u8DDA\u8DD1\u8DCC\u8DDB\u8DC6\u8EFB\u8EF8\u8EFC\u8F9C\u902E\u9035\u9031\u9038\u9032\u9036\u9102\u90F5\u9109\u90FE\u9163\u9165\u91CF\u9214\u9215\u9223\u9209\u921E\u920D\u9210\u9207\u9211\u9594\u958F\u958B\u9591"],["b6a1","\u9593\u9592\u958E\u968A\u968E\u968B\u967D\u9685\u9686\u968D\u9672\u9684\u96C1\u96C5\u96C4\u96C6\u96C7\u96EF\u96F2\u97CC\u9805\u9806\u9808\u98E7\u98EA\u98EF\u98E9\u98F2\u98ED\u99AE\u99AD\u9EC3\u9ECD\u9ED1\u4E82\u50AD\u50B5\u50B2\u50B3\u50C5\u50BE\u50AC\u50B7\u50BB\u50AF\u50C7\u527F\u5277\u527D\u52DF\u52E6\u52E4\u52E2\u52E3\u532F\u55DF\u55E8\u55D3\u55E6\u55CE\u55DC\u55C7\u55D1\u55E3\u55E4\u55EF\u55DA\u55E1\u55C5\u55C6\u55E5\u55C9\u5712\u5713\u585E\u5851\u5858\u5857\u585A\u5854\u586B\u584C\u586D\u584A\u5862\u5852\u584B\u5967\u5AC1\u5AC9\u5ACC\u5ABE\u5ABD\u5ABC"],["b740","\u5AB3\u5AC2\u5AB2\u5D69\u5D6F\u5E4C\u5E79\u5EC9\u5EC8\u5F12\u5F59\u5FAC\u5FAE\u611A\u610F\u6148\u611F\u60F3\u611B\u60F9\u6101\u6108\u614E\u614C\u6144\u614D\u613E\u6134\u6127\u610D\u6106\u6137\u6221\u6222\u6413\u643E\u641E\u642A\u642D\u643D\u642C\u640F\u641C\u6414\u640D\u6436\u6416\u6417\u6406\u656C\u659F\u65B0\u6697\u6689\u6687\u6688\u6696\u6684\u6698\u668D\u6703\u6994\u696D"],["b7a1","\u695A\u6977\u6960\u6954\u6975\u6930\u6982\u694A\u6968\u696B\u695E\u6953\u6979\u6986\u695D\u6963\u695B\u6B47\u6B72\u6BC0\u6BBF\u6BD3\u6BFD\u6EA2\u6EAF\u6ED3\u6EB6\u6EC2\u6E90\u6E9D\u6EC7\u6EC5\u6EA5\u6E98\u6EBC\u6EBA\u6EAB\u6ED1\u6E96\u6E9C\u6EC4\u6ED4\u6EAA\u6EA7\u6EB4\u714E\u7159\u7169\u7164\u7149\u7167\u715C\u716C\u7166\u714C\u7165\u715E\u7146\u7168\u7156\u723A\u7252\u7337\u7345\u733F\u733E\u746F\u745A\u7455\u745F\u745E\u7441\u743F\u7459\u745B\u745C\u7576\u7578\u7600\u75F0\u7601\u75F2\u75F1\u75FA\u75FF\u75F4\u75F3\u76DE\u76DF\u775B\u776B\u7766\u775E\u7763"],["b840","\u7779\u776A\u776C\u775C\u7765\u7768\u7762\u77EE\u788E\u78B0\u7897\u7898\u788C\u7889\u787C\u7891\u7893\u787F\u797A\u797F\u7981\u842C\u79BD\u7A1C\u7A1A\u7A20\u7A14\u7A1F\u7A1E\u7A9F\u7AA0\u7B77\u7BC0\u7B60\u7B6E\u7B67\u7CB1\u7CB3\u7CB5\u7D93\u7D79\u7D91\u7D81\u7D8F\u7D5B\u7F6E\u7F69\u7F6A\u7F72\u7FA9\u7FA8\u7FA4\u8056\u8058\u8086\u8084\u8171\u8170\u8178\u8165\u816E\u8173\u816B"],["b8a1","\u8179\u817A\u8166\u8205\u8247\u8482\u8477\u843D\u8431\u8475\u8466\u846B\u8449\u846C\u845B\u843C\u8435\u8461\u8463\u8469\u846D\u8446\u865E\u865C\u865F\u86F9\u8713\u8708\u8707\u8700\u86FE\u86FB\u8702\u8703\u8706\u870A\u8859\u88DF\u88D4\u88D9\u88DC\u88D8\u88DD\u88E1\u88CA\u88D5\u88D2\u899C\u89E3\u8A6B\u8A72\u8A73\u8A66\u8A69\u8A70\u8A87\u8A7C\u8A63\u8AA0\u8A71\u8A85\u8A6D\u8A62\u8A6E\u8A6C\u8A79\u8A7B\u8A3E\u8A68\u8C62\u8C8A\u8C89\u8CCA\u8CC7\u8CC8\u8CC4\u8CB2\u8CC3\u8CC2\u8CC5\u8DE1\u8DDF\u8DE8\u8DEF\u8DF3\u8DFA\u8DEA\u8DE4\u8DE6\u8EB2\u8F03\u8F09\u8EFE\u8F0A"],["b940","\u8F9F\u8FB2\u904B\u904A\u9053\u9042\u9054\u903C\u9055\u9050\u9047\u904F\u904E\u904D\u9051\u903E\u9041\u9112\u9117\u916C\u916A\u9169\u91C9\u9237\u9257\u9238\u923D\u9240\u923E\u925B\u924B\u9264\u9251\u9234\u9249\u924D\u9245\u9239\u923F\u925A\u9598\u9698\u9694\u9695\u96CD\u96CB\u96C9\u96CA\u96F7\u96FB\u96F9\u96F6\u9756\u9774\u9776\u9810\u9811\u9813\u980A\u9812\u980C\u98FC\u98F4"],["b9a1","\u98FD\u98FE\u99B3\u99B1\u99B4\u9AE1\u9CE9\u9E82\u9F0E\u9F13\u9F20\u50E7\u50EE\u50E5\u50D6\u50ED\u50DA\u50D5\u50CF\u50D1\u50F1\u50CE\u50E9\u5162\u51F3\u5283\u5282\u5331\u53AD\u55FE\u5600\u561B\u5617\u55FD\u5614\u5606\u5609\u560D\u560E\u55F7\u5616\u561F\u5608\u5610\u55F6\u5718\u5716\u5875\u587E\u5883\u5893\u588A\u5879\u5885\u587D\u58FD\u5925\u5922\u5924\u596A\u5969\u5AE1\u5AE6\u5AE9\u5AD7\u5AD6\u5AD8\u5AE3\u5B75\u5BDE\u5BE7\u5BE1\u5BE5\u5BE6\u5BE8\u5BE2\u5BE4\u5BDF\u5C0D\u5C62\u5D84\u5D87\u5E5B\u5E63\u5E55\u5E57\u5E54\u5ED3\u5ED6\u5F0A\u5F46\u5F70\u5FB9\u6147"],["ba40","\u613F\u614B\u6177\u6162\u6163\u615F\u615A\u6158\u6175\u622A\u6487\u6458\u6454\u64A4\u6478\u645F\u647A\u6451\u6467\u6434\u646D\u647B\u6572\u65A1\u65D7\u65D6\u66A2\u66A8\u669D\u699C\u69A8\u6995\u69C1\u69AE\u69D3\u69CB\u699B\u69B7\u69BB\u69AB\u69B4\u69D0\u69CD\u69AD\u69CC\u69A6\u69C3\u69A3\u6B49\u6B4C\u6C33\u6F33\u6F14\u6EFE\u6F13\u6EF4\u6F29\u6F3E\u6F20\u6F2C\u6F0F\u6F02\u6F22"],["baa1","\u6EFF\u6EEF\u6F06\u6F31\u6F38\u6F32\u6F23\u6F15\u6F2B\u6F2F\u6F88\u6F2A\u6EEC\u6F01\u6EF2\u6ECC\u6EF7\u7194\u7199\u717D\u718A\u7184\u7192\u723E\u7292\u7296\u7344\u7350\u7464\u7463\u746A\u7470\u746D\u7504\u7591\u7627\u760D\u760B\u7609\u7613\u76E1\u76E3\u7784\u777D\u777F\u7761\u78C1\u789F\u78A7\u78B3\u78A9\u78A3\u798E\u798F\u798D\u7A2E\u7A31\u7AAA\u7AA9\u7AED\u7AEF\u7BA1\u7B95\u7B8B\u7B75\u7B97\u7B9D\u7B94\u7B8F\u7BB8\u7B87\u7B84\u7CB9\u7CBD\u7CBE\u7DBB\u7DB0\u7D9C\u7DBD\u7DBE\u7DA0\u7DCA\u7DB4\u7DB2\u7DB1\u7DBA\u7DA2\u7DBF\u7DB5\u7DB8\u7DAD\u7DD2\u7DC7\u7DAC"],["bb40","\u7F70\u7FE0\u7FE1\u7FDF\u805E\u805A\u8087\u8150\u8180\u818F\u8188\u818A\u817F\u8182\u81E7\u81FA\u8207\u8214\u821E\u824B\u84C9\u84BF\u84C6\u84C4\u8499\u849E\u84B2\u849C\u84CB\u84B8\u84C0\u84D3\u8490\u84BC\u84D1\u84CA\u873F\u871C\u873B\u8722\u8725\u8734\u8718\u8755\u8737\u8729\u88F3\u8902\u88F4\u88F9\u88F8\u88FD\u88E8\u891A\u88EF\u8AA6\u8A8C\u8A9E\u8AA3\u8A8D\u8AA1\u8A93\u8AA4"],["bba1","\u8AAA\u8AA5\u8AA8\u8A98\u8A91\u8A9A\u8AA7\u8C6A\u8C8D\u8C8C\u8CD3\u8CD1\u8CD2\u8D6B\u8D99\u8D95\u8DFC\u8F14\u8F12\u8F15\u8F13\u8FA3\u9060\u9058\u905C\u9063\u9059\u905E\u9062\u905D\u905B\u9119\u9118\u911E\u9175\u9178\u9177\u9174\u9278\u9280\u9285\u9298\u9296\u927B\u9293\u929C\u92A8\u927C\u9291\u95A1\u95A8\u95A9\u95A3\u95A5\u95A4\u9699\u969C\u969B\u96CC\u96D2\u9700\u977C\u9785\u97F6\u9817\u9818\u98AF\u98B1\u9903\u9905\u990C\u9909\u99C1\u9AAF\u9AB0\u9AE6\u9B41\u9B42\u9CF4\u9CF6\u9CF3\u9EBC\u9F3B\u9F4A\u5104\u5100\u50FB\u50F5\u50F9\u5102\u5108\u5109\u5105\u51DC"],["bc40","\u5287\u5288\u5289\u528D\u528A\u52F0\u53B2\u562E\u563B\u5639\u5632\u563F\u5634\u5629\u5653\u564E\u5657\u5674\u5636\u562F\u5630\u5880\u589F\u589E\u58B3\u589C\u58AE\u58A9\u58A6\u596D\u5B09\u5AFB\u5B0B\u5AF5\u5B0C\u5B08\u5BEE\u5BEC\u5BE9\u5BEB\u5C64\u5C65\u5D9D\u5D94\u5E62\u5E5F\u5E61\u5EE2\u5EDA\u5EDF\u5EDD\u5EE3\u5EE0\u5F48\u5F71\u5FB7\u5FB5\u6176\u6167\u616E\u615D\u6155\u6182"],["bca1","\u617C\u6170\u616B\u617E\u61A7\u6190\u61AB\u618E\u61AC\u619A\u61A4\u6194\u61AE\u622E\u6469\u646F\u6479\u649E\u64B2\u6488\u6490\u64B0\u64A5\u6493\u6495\u64A9\u6492\u64AE\u64AD\u64AB\u649A\u64AC\u6499\u64A2\u64B3\u6575\u6577\u6578\u66AE\u66AB\u66B4\u66B1\u6A23\u6A1F\u69E8\u6A01\u6A1E\u6A19\u69FD\u6A21\u6A13\u6A0A\u69F3\u6A02\u6A05\u69ED\u6A11\u6B50\u6B4E\u6BA4\u6BC5\u6BC6\u6F3F\u6F7C\u6F84\u6F51\u6F66\u6F54\u6F86\u6F6D\u6F5B\u6F78\u6F6E\u6F8E\u6F7A\u6F70\u6F64\u6F97\u6F58\u6ED5\u6F6F\u6F60\u6F5F\u719F\u71AC\u71B1\u71A8\u7256\u729B\u734E\u7357\u7469\u748B\u7483"],["bd40","\u747E\u7480\u757F\u7620\u7629\u761F\u7624\u7626\u7621\u7622\u769A\u76BA\u76E4\u778E\u7787\u778C\u7791\u778B\u78CB\u78C5\u78BA\u78CA\u78BE\u78D5\u78BC\u78D0\u7A3F\u7A3C\u7A40\u7A3D\u7A37\u7A3B\u7AAF\u7AAE\u7BAD\u7BB1\u7BC4\u7BB4\u7BC6\u7BC7\u7BC1\u7BA0\u7BCC\u7CCA\u7DE0\u7DF4\u7DEF\u7DFB\u7DD8\u7DEC\u7DDD\u7DE8\u7DE3\u7DDA\u7DDE\u7DE9\u7D9E\u7DD9\u7DF2\u7DF9\u7F75\u7F77\u7FAF"],["bda1","\u7FE9\u8026\u819B\u819C\u819D\u81A0\u819A\u8198\u8517\u853D\u851A\u84EE\u852C\u852D\u8513\u8511\u8523\u8521\u8514\u84EC\u8525\u84FF\u8506\u8782\u8774\u8776\u8760\u8766\u8778\u8768\u8759\u8757\u874C\u8753\u885B\u885D\u8910\u8907\u8912\u8913\u8915\u890A\u8ABC\u8AD2\u8AC7\u8AC4\u8A95\u8ACB\u8AF8\u8AB2\u8AC9\u8AC2\u8ABF\u8AB0\u8AD6\u8ACD\u8AB6\u8AB9\u8ADB\u8C4C\u8C4E\u8C6C\u8CE0\u8CDE\u8CE6\u8CE4\u8CEC\u8CED\u8CE2\u8CE3\u8CDC\u8CEA\u8CE1\u8D6D\u8D9F\u8DA3\u8E2B\u8E10\u8E1D\u8E22\u8E0F\u8E29\u8E1F\u8E21\u8E1E\u8EBA\u8F1D\u8F1B\u8F1F\u8F29\u8F26\u8F2A\u8F1C\u8F1E"],["be40","\u8F25\u9069\u906E\u9068\u906D\u9077\u9130\u912D\u9127\u9131\u9187\u9189\u918B\u9183\u92C5\u92BB\u92B7\u92EA\u92AC\u92E4\u92C1\u92B3\u92BC\u92D2\u92C7\u92F0\u92B2\u95AD\u95B1\u9704\u9706\u9707\u9709\u9760\u978D\u978B\u978F\u9821\u982B\u981C\u98B3\u990A\u9913\u9912\u9918\u99DD\u99D0\u99DF\u99DB\u99D1\u99D5\u99D2\u99D9\u9AB7\u9AEE\u9AEF\u9B27\u9B45\u9B44\u9B77\u9B6F\u9D06\u9D09"],["bea1","\u9D03\u9EA9\u9EBE\u9ECE\u58A8\u9F52\u5112\u5118\u5114\u5110\u5115\u5180\u51AA\u51DD\u5291\u5293\u52F3\u5659\u566B\u5679\u5669\u5664\u5678\u566A\u5668\u5665\u5671\u566F\u566C\u5662\u5676\u58C1\u58BE\u58C7\u58C5\u596E\u5B1D\u5B34\u5B78\u5BF0\u5C0E\u5F4A\u61B2\u6191\u61A9\u618A\u61CD\u61B6\u61BE\u61CA\u61C8\u6230\u64C5\u64C1\u64CB\u64BB\u64BC\u64DA\u64C4\u64C7\u64C2\u64CD\u64BF\u64D2\u64D4\u64BE\u6574\u66C6\u66C9\u66B9\u66C4\u66C7\u66B8\u6A3D\u6A38\u6A3A\u6A59\u6A6B\u6A58\u6A39\u6A44\u6A62\u6A61\u6A4B\u6A47\u6A35\u6A5F\u6A48\u6B59\u6B77\u6C05\u6FC2\u6FB1\u6FA1"],["bf40","\u6FC3\u6FA4\u6FC1\u6FA7\u6FB3\u6FC0\u6FB9\u6FB6\u6FA6\u6FA0\u6FB4\u71BE\u71C9\u71D0\u71D2\u71C8\u71D5\u71B9\u71CE\u71D9\u71DC\u71C3\u71C4\u7368\u749C\u74A3\u7498\u749F\u749E\u74E2\u750C\u750D\u7634\u7638\u763A\u76E7\u76E5\u77A0\u779E\u779F\u77A5\u78E8\u78DA\u78EC\u78E7\u79A6\u7A4D\u7A4E\u7A46\u7A4C\u7A4B\u7ABA\u7BD9\u7C11\u7BC9\u7BE4\u7BDB\u7BE1\u7BE9\u7BE6\u7CD5\u7CD6\u7E0A"],["bfa1","\u7E11\u7E08\u7E1B\u7E23\u7E1E\u7E1D\u7E09\u7E10\u7F79\u7FB2\u7FF0\u7FF1\u7FEE\u8028\u81B3\u81A9\u81A8\u81FB\u8208\u8258\u8259\u854A\u8559\u8548\u8568\u8569\u8543\u8549\u856D\u856A\u855E\u8783\u879F\u879E\u87A2\u878D\u8861\u892A\u8932\u8925\u892B\u8921\u89AA\u89A6\u8AE6\u8AFA\u8AEB\u8AF1\u8B00\u8ADC\u8AE7\u8AEE\u8AFE\u8B01\u8B02\u8AF7\u8AED\u8AF3\u8AF6\u8AFC\u8C6B\u8C6D\u8C93\u8CF4\u8E44\u8E31\u8E34\u8E42\u8E39\u8E35\u8F3B\u8F2F\u8F38\u8F33\u8FA8\u8FA6\u9075\u9074\u9078\u9072\u907C\u907A\u9134\u9192\u9320\u9336\u92F8\u9333\u932F\u9322\u92FC\u932B\u9304\u931A"],["c040","\u9310\u9326\u9321\u9315\u932E\u9319\u95BB\u96A7\u96A8\u96AA\u96D5\u970E\u9711\u9716\u970D\u9713\u970F\u975B\u975C\u9766\u9798\u9830\u9838\u983B\u9837\u982D\u9839\u9824\u9910\u9928\u991E\u991B\u9921\u991A\u99ED\u99E2\u99F1\u9AB8\u9ABC\u9AFB\u9AED\u9B28\u9B91\u9D15\u9D23\u9D26\u9D28\u9D12\u9D1B\u9ED8\u9ED4\u9F8D\u9F9C\u512A\u511F\u5121\u5132\u52F5\u568E\u5680\u5690\u5685\u5687"],["c0a1","\u568F\u58D5\u58D3\u58D1\u58CE\u5B30\u5B2A\u5B24\u5B7A\u5C37\u5C68\u5DBC\u5DBA\u5DBD\u5DB8\u5E6B\u5F4C\u5FBD\u61C9\u61C2\u61C7\u61E6\u61CB\u6232\u6234\u64CE\u64CA\u64D8\u64E0\u64F0\u64E6\u64EC\u64F1\u64E2\u64ED\u6582\u6583\u66D9\u66D6\u6A80\u6A94\u6A84\u6AA2\u6A9C\u6ADB\u6AA3\u6A7E\u6A97\u6A90\u6AA0\u6B5C\u6BAE\u6BDA\u6C08\u6FD8\u6FF1\u6FDF\u6FE0\u6FDB\u6FE4\u6FEB\u6FEF\u6F80\u6FEC\u6FE1\u6FE9\u6FD5\u6FEE\u6FF0\u71E7\u71DF\u71EE\u71E6\u71E5\u71ED\u71EC\u71F4\u71E0\u7235\u7246\u7370\u7372\u74A9\u74B0\u74A6\u74A8\u7646\u7642\u764C\u76EA\u77B3\u77AA\u77B0\u77AC"],["c140","\u77A7\u77AD\u77EF\u78F7\u78FA\u78F4\u78EF\u7901\u79A7\u79AA\u7A57\u7ABF\u7C07\u7C0D\u7BFE\u7BF7\u7C0C\u7BE0\u7CE0\u7CDC\u7CDE\u7CE2\u7CDF\u7CD9\u7CDD\u7E2E\u7E3E\u7E46\u7E37\u7E32\u7E43\u7E2B\u7E3D\u7E31\u7E45\u7E41\u7E34\u7E39\u7E48\u7E35\u7E3F\u7E2F\u7F44\u7FF3\u7FFC\u8071\u8072\u8070\u806F\u8073\u81C6\u81C3\u81BA\u81C2\u81C0\u81BF\u81BD\u81C9\u81BE\u81E8\u8209\u8271\u85AA"],["c1a1","\u8584\u857E\u859C\u8591\u8594\u85AF\u859B\u8587\u85A8\u858A\u8667\u87C0\u87D1\u87B3\u87D2\u87C6\u87AB\u87BB\u87BA\u87C8\u87CB\u893B\u8936\u8944\u8938\u893D\u89AC\u8B0E\u8B17\u8B19\u8B1B\u8B0A\u8B20\u8B1D\u8B04\u8B10\u8C41\u8C3F\u8C73\u8CFA\u8CFD\u8CFC\u8CF8\u8CFB\u8DA8\u8E49\u8E4B\u8E48\u8E4A\u8F44\u8F3E\u8F42\u8F45\u8F3F\u907F\u907D\u9084\u9081\u9082\u9080\u9139\u91A3\u919E\u919C\u934D\u9382\u9328\u9375\u934A\u9365\u934B\u9318\u937E\u936C\u935B\u9370\u935A\u9354\u95CA\u95CB\u95CC\u95C8\u95C6\u96B1\u96B8\u96D6\u971C\u971E\u97A0\u97D3\u9846\u98B6\u9935\u9A01"],["c240","\u99FF\u9BAE\u9BAB\u9BAA\u9BAD\u9D3B\u9D3F\u9E8B\u9ECF\u9EDE\u9EDC\u9EDD\u9EDB\u9F3E\u9F4B\u53E2\u5695\u56AE\u58D9\u58D8\u5B38\u5F5D\u61E3\u6233\u64F4\u64F2\u64FE\u6506\u64FA\u64FB\u64F7\u65B7\u66DC\u6726\u6AB3\u6AAC\u6AC3\u6ABB\u6AB8\u6AC2\u6AAE\u6AAF\u6B5F\u6B78\u6BAF\u7009\u700B\u6FFE\u7006\u6FFA\u7011\u700F\u71FB\u71FC\u71FE\u71F8\u7377\u7375\u74A7\u74BF\u7515\u7656\u7658"],["c2a1","\u7652\u77BD\u77BF\u77BB\u77BC\u790E\u79AE\u7A61\u7A62\u7A60\u7AC4\u7AC5\u7C2B\u7C27\u7C2A\u7C1E\u7C23\u7C21\u7CE7\u7E54\u7E55\u7E5E\u7E5A\u7E61\u7E52\u7E59\u7F48\u7FF9\u7FFB\u8077\u8076\u81CD\u81CF\u820A\u85CF\u85A9\u85CD\u85D0\u85C9\u85B0\u85BA\u85B9\u85A6\u87EF\u87EC\u87F2\u87E0\u8986\u89B2\u89F4\u8B28\u8B39\u8B2C\u8B2B\u8C50\u8D05\u8E59\u8E63\u8E66\u8E64\u8E5F\u8E55\u8EC0\u8F49\u8F4D\u9087\u9083\u9088\u91AB\u91AC\u91D0\u9394\u938A\u9396\u93A2\u93B3\u93AE\u93AC\u93B0\u9398\u939A\u9397\u95D4\u95D6\u95D0\u95D5\u96E2\u96DC\u96D9\u96DB\u96DE\u9724\u97A3\u97A6"],["c340","\u97AD\u97F9\u984D\u984F\u984C\u984E\u9853\u98BA\u993E\u993F\u993D\u992E\u99A5\u9A0E\u9AC1\u9B03\u9B06\u9B4F\u9B4E\u9B4D\u9BCA\u9BC9\u9BFD\u9BC8\u9BC0\u9D51\u9D5D\u9D60\u9EE0\u9F15\u9F2C\u5133\u56A5\u58DE\u58DF\u58E2\u5BF5\u9F90\u5EEC\u61F2\u61F7\u61F6\u61F5\u6500\u650F\u66E0\u66DD\u6AE5\u6ADD\u6ADA\u6AD3\u701B\u701F\u7028\u701A\u701D\u7015\u7018\u7206\u720D\u7258\u72A2\u7378"],["c3a1","\u737A\u74BD\u74CA\u74E3\u7587\u7586\u765F\u7661\u77C7\u7919\u79B1\u7A6B\u7A69\u7C3E\u7C3F\u7C38\u7C3D\u7C37\u7C40\u7E6B\u7E6D\u7E79\u7E69\u7E6A\u7F85\u7E73\u7FB6\u7FB9\u7FB8\u81D8\u85E9\u85DD\u85EA\u85D5\u85E4\u85E5\u85F7\u87FB\u8805\u880D\u87F9\u87FE\u8960\u895F\u8956\u895E\u8B41\u8B5C\u8B58\u8B49\u8B5A\u8B4E\u8B4F\u8B46\u8B59\u8D08\u8D0A\u8E7C\u8E72\u8E87\u8E76\u8E6C\u8E7A\u8E74\u8F54\u8F4E\u8FAD\u908A\u908B\u91B1\u91AE\u93E1\u93D1\u93DF\u93C3\u93C8\u93DC\u93DD\u93D6\u93E2\u93CD\u93D8\u93E4\u93D7\u93E8\u95DC\u96B4\u96E3\u972A\u9727\u9761\u97DC\u97FB\u985E"],["c440","\u9858\u985B\u98BC\u9945\u9949\u9A16\u9A19\u9B0D\u9BE8\u9BE7\u9BD6\u9BDB\u9D89\u9D61\u9D72\u9D6A\u9D6C\u9E92\u9E97\u9E93\u9EB4\u52F8\u56A8\u56B7\u56B6\u56B4\u56BC\u58E4\u5B40\u5B43\u5B7D\u5BF6\u5DC9\u61F8\u61FA\u6518\u6514\u6519\u66E6\u6727\u6AEC\u703E\u7030\u7032\u7210\u737B\u74CF\u7662\u7665\u7926\u792A\u792C\u792B\u7AC7\u7AF6\u7C4C\u7C43\u7C4D\u7CEF\u7CF0\u8FAE\u7E7D\u7E7C"],["c4a1","\u7E82\u7F4C\u8000\u81DA\u8266\u85FB\u85F9\u8611\u85FA\u8606\u860B\u8607\u860A\u8814\u8815\u8964\u89BA\u89F8\u8B70\u8B6C\u8B66\u8B6F\u8B5F\u8B6B\u8D0F\u8D0D\u8E89\u8E81\u8E85\u8E82\u91B4\u91CB\u9418\u9403\u93FD\u95E1\u9730\u98C4\u9952\u9951\u99A8\u9A2B\u9A30\u9A37\u9A35\u9C13\u9C0D\u9E79\u9EB5\u9EE8\u9F2F\u9F5F\u9F63\u9F61\u5137\u5138\u56C1\u56C0\u56C2\u5914\u5C6C\u5DCD\u61FC\u61FE\u651D\u651C\u6595\u66E9\u6AFB\u6B04\u6AFA\u6BB2\u704C\u721B\u72A7\u74D6\u74D4\u7669\u77D3\u7C50\u7E8F\u7E8C\u7FBC\u8617\u862D\u861A\u8823\u8822\u8821\u881F\u896A\u896C\u89BD\u8B74"],["c540","\u8B77\u8B7D\u8D13\u8E8A\u8E8D\u8E8B\u8F5F\u8FAF\u91BA\u942E\u9433\u9435\u943A\u9438\u9432\u942B\u95E2\u9738\u9739\u9732\u97FF\u9867\u9865\u9957\u9A45\u9A43\u9A40\u9A3E\u9ACF\u9B54\u9B51\u9C2D\u9C25\u9DAF\u9DB4\u9DC2\u9DB8\u9E9D\u9EEF\u9F19\u9F5C\u9F66\u9F67\u513C\u513B\u56C8\u56CA\u56C9\u5B7F\u5DD4\u5DD2\u5F4E\u61FF\u6524\u6B0A\u6B61\u7051\u7058\u7380\u74E4\u758A\u766E\u766C"],["c5a1","\u79B3\u7C60\u7C5F\u807E\u807D\u81DF\u8972\u896F\u89FC\u8B80\u8D16\u8D17\u8E91\u8E93\u8F61\u9148\u9444\u9451\u9452\u973D\u973E\u97C3\u97C1\u986B\u9955\u9A55\u9A4D\u9AD2\u9B1A\u9C49\u9C31\u9C3E\u9C3B\u9DD3\u9DD7\u9F34\u9F6C\u9F6A\u9F94\u56CC\u5DD6\u6200\u6523\u652B\u652A\u66EC\u6B10\u74DA\u7ACA\u7C64\u7C63\u7C65\u7E93\u7E96\u7E94\u81E2\u8638\u863F\u8831\u8B8A\u9090\u908F\u9463\u9460\u9464\u9768\u986F\u995C\u9A5A\u9A5B\u9A57\u9AD3\u9AD4\u9AD1\u9C54\u9C57\u9C56\u9DE5\u9E9F\u9EF4\u56D1\u58E9\u652C\u705E\u7671\u7672\u77D7\u7F50\u7F88\u8836\u8839\u8862\u8B93\u8B92"],["c640","\u8B96\u8277\u8D1B\u91C0\u946A\u9742\u9748\u9744\u97C6\u9870\u9A5F\u9B22\u9B58\u9C5F\u9DF9\u9DFA\u9E7C\u9E7D\u9F07\u9F77\u9F72\u5EF3\u6B16\u7063\u7C6C\u7C6E\u883B\u89C0\u8EA1\u91C1\u9472\u9470\u9871\u995E\u9AD6\u9B23\u9ECC\u7064\u77DA\u8B9A\u9477\u97C9\u9A62\u9A65\u7E9C\u8B9C\u8EAA\u91C5\u947D\u947E\u947C\u9C77\u9C78\u9EF7\u8C54\u947F\u9E1A\u7228\u9A6A\u9B31\u9E1B\u9E1E\u7C72"],["c940","\u4E42\u4E5C\u51F5\u531A\u5382\u4E07\u4E0C\u4E47\u4E8D\u56D7\uFA0C\u5C6E\u5F73\u4E0F\u5187\u4E0E\u4E2E\u4E93\u4EC2\u4EC9\u4EC8\u5198\u52FC\u536C\u53B9\u5720\u5903\u592C\u5C10\u5DFF\u65E1\u6BB3\u6BCC\u6C14\u723F\u4E31\u4E3C\u4EE8\u4EDC\u4EE9\u4EE1\u4EDD\u4EDA\u520C\u531C\u534C\u5722\u5723\u5917\u592F\u5B81\u5B84\u5C12\u5C3B\u5C74\u5C73\u5E04\u5E80\u5E82\u5FC9\u6209\u6250\u6C15"],["c9a1","\u6C36\u6C43\u6C3F\u6C3B\u72AE\u72B0\u738A\u79B8\u808A\u961E\u4F0E\u4F18\u4F2C\u4EF5\u4F14\u4EF1\u4F00\u4EF7\u4F08\u4F1D\u4F02\u4F05\u4F22\u4F13\u4F04\u4EF4\u4F12\u51B1\u5213\u5209\u5210\u52A6\u5322\u531F\u534D\u538A\u5407\u56E1\u56DF\u572E\u572A\u5734\u593C\u5980\u597C\u5985\u597B\u597E\u5977\u597F\u5B56\u5C15\u5C25\u5C7C\u5C7A\u5C7B\u5C7E\u5DDF\u5E75\u5E84\u5F02\u5F1A\u5F74\u5FD5\u5FD4\u5FCF\u625C\u625E\u6264\u6261\u6266\u6262\u6259\u6260\u625A\u6265\u65EF\u65EE\u673E\u6739\u6738\u673B\u673A\u673F\u673C\u6733\u6C18\u6C46\u6C52\u6C5C\u6C4F\u6C4A\u6C54\u6C4B"],["ca40","\u6C4C\u7071\u725E\u72B4\u72B5\u738E\u752A\u767F\u7A75\u7F51\u8278\u827C\u8280\u827D\u827F\u864D\u897E\u9099\u9097\u9098\u909B\u9094\u9622\u9624\u9620\u9623\u4F56\u4F3B\u4F62\u4F49\u4F53\u4F64\u4F3E\u4F67\u4F52\u4F5F\u4F41\u4F58\u4F2D\u4F33\u4F3F\u4F61\u518F\u51B9\u521C\u521E\u5221\u52AD\u52AE\u5309\u5363\u5372\u538E\u538F\u5430\u5437\u542A\u5454\u5445\u5419\u541C\u5425\u5418"],["caa1","\u543D\u544F\u5441\u5428\u5424\u5447\u56EE\u56E7\u56E5\u5741\u5745\u574C\u5749\u574B\u5752\u5906\u5940\u59A6\u5998\u59A0\u5997\u598E\u59A2\u5990\u598F\u59A7\u59A1\u5B8E\u5B92\u5C28\u5C2A\u5C8D\u5C8F\u5C88\u5C8B\u5C89\u5C92\u5C8A\u5C86\u5C93\u5C95\u5DE0\u5E0A\u5E0E\u5E8B\u5E89\u5E8C\u5E88\u5E8D\u5F05\u5F1D\u5F78\u5F76\u5FD2\u5FD1\u5FD0\u5FED\u5FE8\u5FEE\u5FF3\u5FE1\u5FE4\u5FE3\u5FFA\u5FEF\u5FF7\u5FFB\u6000\u5FF4\u623A\u6283\u628C\u628E\u628F\u6294\u6287\u6271\u627B\u627A\u6270\u6281\u6288\u6277\u627D\u6272\u6274\u6537\u65F0\u65F4\u65F3\u65F2\u65F5\u6745\u6747"],["cb40","\u6759\u6755\u674C\u6748\u675D\u674D\u675A\u674B\u6BD0\u6C19\u6C1A\u6C78\u6C67\u6C6B\u6C84\u6C8B\u6C8F\u6C71\u6C6F\u6C69\u6C9A\u6C6D\u6C87\u6C95\u6C9C\u6C66\u6C73\u6C65\u6C7B\u6C8E\u7074\u707A\u7263\u72BF\u72BD\u72C3\u72C6\u72C1\u72BA\u72C5\u7395\u7397\u7393\u7394\u7392\u753A\u7539\u7594\u7595\u7681\u793D\u8034\u8095\u8099\u8090\u8092\u809C\u8290\u828F\u8285\u828E\u8291\u8293"],["cba1","\u828A\u8283\u8284\u8C78\u8FC9\u8FBF\u909F\u90A1\u90A5\u909E\u90A7\u90A0\u9630\u9628\u962F\u962D\u4E33\u4F98\u4F7C\u4F85\u4F7D\u4F80\u4F87\u4F76\u4F74\u4F89\u4F84\u4F77\u4F4C\u4F97\u4F6A\u4F9A\u4F79\u4F81\u4F78\u4F90\u4F9C\u4F94\u4F9E\u4F92\u4F82\u4F95\u4F6B\u4F6E\u519E\u51BC\u51BE\u5235\u5232\u5233\u5246\u5231\u52BC\u530A\u530B\u533C\u5392\u5394\u5487\u547F\u5481\u5491\u5482\u5488\u546B\u547A\u547E\u5465\u546C\u5474\u5466\u548D\u546F\u5461\u5460\u5498\u5463\u5467\u5464\u56F7\u56F9\u576F\u5772\u576D\u576B\u5771\u5770\u5776\u5780\u5775\u577B\u5773\u5774\u5762"],["cc40","\u5768\u577D\u590C\u5945\u59B5\u59BA\u59CF\u59CE\u59B2\u59CC\u59C1\u59B6\u59BC\u59C3\u59D6\u59B1\u59BD\u59C0\u59C8\u59B4\u59C7\u5B62\u5B65\u5B93\u5B95\u5C44\u5C47\u5CAE\u5CA4\u5CA0\u5CB5\u5CAF\u5CA8\u5CAC\u5C9F\u5CA3\u5CAD\u5CA2\u5CAA\u5CA7\u5C9D\u5CA5\u5CB6\u5CB0\u5CA6\u5E17\u5E14\u5E19\u5F28\u5F22\u5F23\u5F24\u5F54\u5F82\u5F7E\u5F7D\u5FDE\u5FE5\u602D\u6026\u6019\u6032\u600B"],["cca1","\u6034\u600A\u6017\u6033\u601A\u601E\u602C\u6022\u600D\u6010\u602E\u6013\u6011\u600C\u6009\u601C\u6214\u623D\u62AD\u62B4\u62D1\u62BE\u62AA\u62B6\u62CA\u62AE\u62B3\u62AF\u62BB\u62A9\u62B0\u62B8\u653D\u65A8\u65BB\u6609\u65FC\u6604\u6612\u6608\u65FB\u6603\u660B\u660D\u6605\u65FD\u6611\u6610\u66F6\u670A\u6785\u676C\u678E\u6792\u6776\u677B\u6798\u6786\u6784\u6774\u678D\u678C\u677A\u679F\u6791\u6799\u6783\u677D\u6781\u6778\u6779\u6794\u6B25\u6B80\u6B7E\u6BDE\u6C1D\u6C93\u6CEC\u6CEB\u6CEE\u6CD9\u6CB6\u6CD4\u6CAD\u6CE7\u6CB7\u6CD0\u6CC2\u6CBA\u6CC3\u6CC6\u6CED\u6CF2"],["cd40","\u6CD2\u6CDD\u6CB4\u6C8A\u6C9D\u6C80\u6CDE\u6CC0\u6D30\u6CCD\u6CC7\u6CB0\u6CF9\u6CCF\u6CE9\u6CD1\u7094\u7098\u7085\u7093\u7086\u7084\u7091\u7096\u7082\u709A\u7083\u726A\u72D6\u72CB\u72D8\u72C9\u72DC\u72D2\u72D4\u72DA\u72CC\u72D1\u73A4\u73A1\u73AD\u73A6\u73A2\u73A0\u73AC\u739D\u74DD\u74E8\u753F\u7540\u753E\u758C\u7598\u76AF\u76F3\u76F1\u76F0\u76F5\u77F8\u77FC\u77F9\u77FB\u77FA"],["cda1","\u77F7\u7942\u793F\u79C5\u7A78\u7A7B\u7AFB\u7C75\u7CFD\u8035\u808F\u80AE\u80A3\u80B8\u80B5\u80AD\u8220\u82A0\u82C0\u82AB\u829A\u8298\u829B\u82B5\u82A7\u82AE\u82BC\u829E\u82BA\u82B4\u82A8\u82A1\u82A9\u82C2\u82A4\u82C3\u82B6\u82A2\u8670\u866F\u866D\u866E\u8C56\u8FD2\u8FCB\u8FD3\u8FCD\u8FD6\u8FD5\u8FD7\u90B2\u90B4\u90AF\u90B3\u90B0\u9639\u963D\u963C\u963A\u9643\u4FCD\u4FC5\u4FD3\u4FB2\u4FC9\u4FCB\u4FC1\u4FD4\u4FDC\u4FD9\u4FBB\u4FB3\u4FDB\u4FC7\u4FD6\u4FBA\u4FC0\u4FB9\u4FEC\u5244\u5249\u52C0\u52C2\u533D\u537C\u5397\u5396\u5399\u5398\u54BA\u54A1\u54AD\u54A5\u54CF"],["ce40","\u54C3\u830D\u54B7\u54AE\u54D6\u54B6\u54C5\u54C6\u54A0\u5470\u54BC\u54A2\u54BE\u5472\u54DE\u54B0\u57B5\u579E\u579F\u57A4\u578C\u5797\u579D\u579B\u5794\u5798\u578F\u5799\u57A5\u579A\u5795\u58F4\u590D\u5953\u59E1\u59DE\u59EE\u5A00\u59F1\u59DD\u59FA\u59FD\u59FC\u59F6\u59E4\u59F2\u59F7\u59DB\u59E9\u59F3\u59F5\u59E0\u59FE\u59F4\u59ED\u5BA8\u5C4C\u5CD0\u5CD8\u5CCC\u5CD7\u5CCB\u5CDB"],["cea1","\u5CDE\u5CDA\u5CC9\u5CC7\u5CCA\u5CD6\u5CD3\u5CD4\u5CCF\u5CC8\u5CC6\u5CCE\u5CDF\u5CF8\u5DF9\u5E21\u5E22\u5E23\u5E20\u5E24\u5EB0\u5EA4\u5EA2\u5E9B\u5EA3\u5EA5\u5F07\u5F2E\u5F56\u5F86\u6037\u6039\u6054\u6072\u605E\u6045\u6053\u6047\u6049\u605B\u604C\u6040\u6042\u605F\u6024\u6044\u6058\u6066\u606E\u6242\u6243\u62CF\u630D\u630B\u62F5\u630E\u6303\u62EB\u62F9\u630F\u630C\u62F8\u62F6\u6300\u6313\u6314\u62FA\u6315\u62FB\u62F0\u6541\u6543\u65AA\u65BF\u6636\u6621\u6632\u6635\u661C\u6626\u6622\u6633\u662B\u663A\u661D\u6634\u6639\u662E\u670F\u6710\u67C1\u67F2\u67C8\u67BA"],["cf40","\u67DC\u67BB\u67F8\u67D8\u67C0\u67B7\u67C5\u67EB\u67E4\u67DF\u67B5\u67CD\u67B3\u67F7\u67F6\u67EE\u67E3\u67C2\u67B9\u67CE\u67E7\u67F0\u67B2\u67FC\u67C6\u67ED\u67CC\u67AE\u67E6\u67DB\u67FA\u67C9\u67CA\u67C3\u67EA\u67CB\u6B28\u6B82\u6B84\u6BB6\u6BD6\u6BD8\u6BE0\u6C20\u6C21\u6D28\u6D34\u6D2D\u6D1F\u6D3C\u6D3F\u6D12\u6D0A\u6CDA\u6D33\u6D04\u6D19\u6D3A\u6D1A\u6D11\u6D00\u6D1D\u6D42"],["cfa1","\u6D01\u6D18\u6D37\u6D03\u6D0F\u6D40\u6D07\u6D20\u6D2C\u6D08\u6D22\u6D09\u6D10\u70B7\u709F\u70BE\u70B1\u70B0\u70A1\u70B4\u70B5\u70A9\u7241\u7249\u724A\u726C\u7270\u7273\u726E\u72CA\u72E4\u72E8\u72EB\u72DF\u72EA\u72E6\u72E3\u7385\u73CC\u73C2\u73C8\u73C5\u73B9\u73B6\u73B5\u73B4\u73EB\u73BF\u73C7\u73BE\u73C3\u73C6\u73B8\u73CB\u74EC\u74EE\u752E\u7547\u7548\u75A7\u75AA\u7679\u76C4\u7708\u7703\u7704\u7705\u770A\u76F7\u76FB\u76FA\u77E7\u77E8\u7806\u7811\u7812\u7805\u7810\u780F\u780E\u7809\u7803\u7813\u794A\u794C\u794B\u7945\u7944\u79D5\u79CD\u79CF\u79D6\u79CE\u7A80"],["d040","\u7A7E\u7AD1\u7B00\u7B01\u7C7A\u7C78\u7C79\u7C7F\u7C80\u7C81\u7D03\u7D08\u7D01\u7F58\u7F91\u7F8D\u7FBE\u8007\u800E\u800F\u8014\u8037\u80D8\u80C7\u80E0\u80D1\u80C8\u80C2\u80D0\u80C5\u80E3\u80D9\u80DC\u80CA\u80D5\u80C9\u80CF\u80D7\u80E6\u80CD\u81FF\u8221\u8294\u82D9\u82FE\u82F9\u8307\u82E8\u8300\u82D5\u833A\u82EB\u82D6\u82F4\u82EC\u82E1\u82F2\u82F5\u830C\u82FB\u82F6\u82F0\u82EA"],["d0a1","\u82E4\u82E0\u82FA\u82F3\u82ED\u8677\u8674\u867C\u8673\u8841\u884E\u8867\u886A\u8869\u89D3\u8A04\u8A07\u8D72\u8FE3\u8FE1\u8FEE\u8FE0\u90F1\u90BD\u90BF\u90D5\u90C5\u90BE\u90C7\u90CB\u90C8\u91D4\u91D3\u9654\u964F\u9651\u9653\u964A\u964E\u501E\u5005\u5007\u5013\u5022\u5030\u501B\u4FF5\u4FF4\u5033\u5037\u502C\u4FF6\u4FF7\u5017\u501C\u5020\u5027\u5035\u502F\u5031\u500E\u515A\u5194\u5193\u51CA\u51C4\u51C5\u51C8\u51CE\u5261\u525A\u5252\u525E\u525F\u5255\u5262\u52CD\u530E\u539E\u5526\u54E2\u5517\u5512\u54E7\u54F3\u54E4\u551A\u54FF\u5504\u5508\u54EB\u5511\u5505\u54F1"],["d140","\u550A\u54FB\u54F7\u54F8\u54E0\u550E\u5503\u550B\u5701\u5702\u57CC\u5832\u57D5\u57D2\u57BA\u57C6\u57BD\u57BC\u57B8\u57B6\u57BF\u57C7\u57D0\u57B9\u57C1\u590E\u594A\u5A19\u5A16\u5A2D\u5A2E\u5A15\u5A0F\u5A17\u5A0A\u5A1E\u5A33\u5B6C\u5BA7\u5BAD\u5BAC\u5C03\u5C56\u5C54\u5CEC\u5CFF\u5CEE\u5CF1\u5CF7\u5D00\u5CF9\u5E29\u5E28\u5EA8\u5EAE\u5EAA\u5EAC\u5F33\u5F30\u5F67\u605D\u605A\u6067"],["d1a1","\u6041\u60A2\u6088\u6080\u6092\u6081\u609D\u6083\u6095\u609B\u6097\u6087\u609C\u608E\u6219\u6246\u62F2\u6310\u6356\u632C\u6344\u6345\u6336\u6343\u63E4\u6339\u634B\u634A\u633C\u6329\u6341\u6334\u6358\u6354\u6359\u632D\u6347\u6333\u635A\u6351\u6338\u6357\u6340\u6348\u654A\u6546\u65C6\u65C3\u65C4\u65C2\u664A\u665F\u6647\u6651\u6712\u6713\u681F\u681A\u6849\u6832\u6833\u683B\u684B\u684F\u6816\u6831\u681C\u6835\u682B\u682D\u682F\u684E\u6844\u6834\u681D\u6812\u6814\u6826\u6828\u682E\u684D\u683A\u6825\u6820\u6B2C\u6B2F\u6B2D\u6B31\u6B34\u6B6D\u8082\u6B88\u6BE6\u6BE4"],["d240","\u6BE8\u6BE3\u6BE2\u6BE7\u6C25\u6D7A\u6D63\u6D64\u6D76\u6D0D\u6D61\u6D92\u6D58\u6D62\u6D6D\u6D6F\u6D91\u6D8D\u6DEF\u6D7F\u6D86\u6D5E\u6D67\u6D60\u6D97\u6D70\u6D7C\u6D5F\u6D82\u6D98\u6D2F\u6D68\u6D8B\u6D7E\u6D80\u6D84\u6D16\u6D83\u6D7B\u6D7D\u6D75\u6D90\u70DC\u70D3\u70D1\u70DD\u70CB\u7F39\u70E2\u70D7\u70D2\u70DE\u70E0\u70D4\u70CD\u70C5\u70C6\u70C7\u70DA\u70CE\u70E1\u7242\u7278"],["d2a1","\u7277\u7276\u7300\u72FA\u72F4\u72FE\u72F6\u72F3\u72FB\u7301\u73D3\u73D9\u73E5\u73D6\u73BC\u73E7\u73E3\u73E9\u73DC\u73D2\u73DB\u73D4\u73DD\u73DA\u73D7\u73D8\u73E8\u74DE\u74DF\u74F4\u74F5\u7521\u755B\u755F\u75B0\u75C1\u75BB\u75C4\u75C0\u75BF\u75B6\u75BA\u768A\u76C9\u771D\u771B\u7710\u7713\u7712\u7723\u7711\u7715\u7719\u771A\u7722\u7727\u7823\u782C\u7822\u7835\u782F\u7828\u782E\u782B\u7821\u7829\u7833\u782A\u7831\u7954\u795B\u794F\u795C\u7953\u7952\u7951\u79EB\u79EC\u79E0\u79EE\u79ED\u79EA\u79DC\u79DE\u79DD\u7A86\u7A89\u7A85\u7A8B\u7A8C\u7A8A\u7A87\u7AD8\u7B10"],["d340","\u7B04\u7B13\u7B05\u7B0F\u7B08\u7B0A\u7B0E\u7B09\u7B12\u7C84\u7C91\u7C8A\u7C8C\u7C88\u7C8D\u7C85\u7D1E\u7D1D\u7D11\u7D0E\u7D18\u7D16\u7D13\u7D1F\u7D12\u7D0F\u7D0C\u7F5C\u7F61\u7F5E\u7F60\u7F5D\u7F5B\u7F96\u7F92\u7FC3\u7FC2\u7FC0\u8016\u803E\u8039\u80FA\u80F2\u80F9\u80F5\u8101\u80FB\u8100\u8201\u822F\u8225\u8333\u832D\u8344\u8319\u8351\u8325\u8356\u833F\u8341\u8326\u831C\u8322"],["d3a1","\u8342\u834E\u831B\u832A\u8308\u833C\u834D\u8316\u8324\u8320\u8337\u832F\u8329\u8347\u8345\u834C\u8353\u831E\u832C\u834B\u8327\u8348\u8653\u8652\u86A2\u86A8\u8696\u868D\u8691\u869E\u8687\u8697\u8686\u868B\u869A\u8685\u86A5\u8699\u86A1\u86A7\u8695\u8698\u868E\u869D\u8690\u8694\u8843\u8844\u886D\u8875\u8876\u8872\u8880\u8871\u887F\u886F\u8883\u887E\u8874\u887C\u8A12\u8C47\u8C57\u8C7B\u8CA4\u8CA3\u8D76\u8D78\u8DB5\u8DB7\u8DB6\u8ED1\u8ED3\u8FFE\u8FF5\u9002\u8FFF\u8FFB\u9004\u8FFC\u8FF6\u90D6\u90E0\u90D9\u90DA\u90E3\u90DF\u90E5\u90D8\u90DB\u90D7\u90DC\u90E4\u9150"],["d440","\u914E\u914F\u91D5\u91E2\u91DA\u965C\u965F\u96BC\u98E3\u9ADF\u9B2F\u4E7F\u5070\u506A\u5061\u505E\u5060\u5053\u504B\u505D\u5072\u5048\u504D\u5041\u505B\u504A\u5062\u5015\u5045\u505F\u5069\u506B\u5063\u5064\u5046\u5040\u506E\u5073\u5057\u5051\u51D0\u526B\u526D\u526C\u526E\u52D6\u52D3\u532D\u539C\u5575\u5576\u553C\u554D\u5550\u5534\u552A\u5551\u5562\u5536\u5535\u5530\u5552\u5545"],["d4a1","\u550C\u5532\u5565\u554E\u5539\u5548\u552D\u553B\u5540\u554B\u570A\u5707\u57FB\u5814\u57E2\u57F6\u57DC\u57F4\u5800\u57ED\u57FD\u5808\u57F8\u580B\u57F3\u57CF\u5807\u57EE\u57E3\u57F2\u57E5\u57EC\u57E1\u580E\u57FC\u5810\u57E7\u5801\u580C\u57F1\u57E9\u57F0\u580D\u5804\u595C\u5A60\u5A58\u5A55\u5A67\u5A5E\u5A38\u5A35\u5A6D\u5A50\u5A5F\u5A65\u5A6C\u5A53\u5A64\u5A57\u5A43\u5A5D\u5A52\u5A44\u5A5B\u5A48\u5A8E\u5A3E\u5A4D\u5A39\u5A4C\u5A70\u5A69\u5A47\u5A51\u5A56\u5A42\u5A5C\u5B72\u5B6E\u5BC1\u5BC0\u5C59\u5D1E\u5D0B\u5D1D\u5D1A\u5D20\u5D0C\u5D28\u5D0D\u5D26\u5D25\u5D0F"],["d540","\u5D30\u5D12\u5D23\u5D1F\u5D2E\u5E3E\u5E34\u5EB1\u5EB4\u5EB9\u5EB2\u5EB3\u5F36\u5F38\u5F9B\u5F96\u5F9F\u608A\u6090\u6086\u60BE\u60B0\u60BA\u60D3\u60D4\u60CF\u60E4\u60D9\u60DD\u60C8\u60B1\u60DB\u60B7\u60CA\u60BF\u60C3\u60CD\u60C0\u6332\u6365\u638A\u6382\u637D\u63BD\u639E\u63AD\u639D\u6397\u63AB\u638E\u636F\u6387\u6390\u636E\u63AF\u6375\u639C\u636D\u63AE\u637C\u63A4\u633B\u639F"],["d5a1","\u6378\u6385\u6381\u6391\u638D\u6370\u6553\u65CD\u6665\u6661\u665B\u6659\u665C\u6662\u6718\u6879\u6887\u6890\u689C\u686D\u686E\u68AE\u68AB\u6956\u686F\u68A3\u68AC\u68A9\u6875\u6874\u68B2\u688F\u6877\u6892\u687C\u686B\u6872\u68AA\u6880\u6871\u687E\u689B\u6896\u688B\u68A0\u6889\u68A4\u6878\u687B\u6891\u688C\u688A\u687D\u6B36\u6B33\u6B37\u6B38\u6B91\u6B8F\u6B8D\u6B8E\u6B8C\u6C2A\u6DC0\u6DAB\u6DB4\u6DB3\u6E74\u6DAC\u6DE9\u6DE2\u6DB7\u6DF6\u6DD4\u6E00\u6DC8\u6DE0\u6DDF\u6DD6\u6DBE\u6DE5\u6DDC\u6DDD\u6DDB\u6DF4\u6DCA\u6DBD\u6DED\u6DF0\u6DBA\u6DD5\u6DC2\u6DCF\u6DC9"],["d640","\u6DD0\u6DF2\u6DD3\u6DFD\u6DD7\u6DCD\u6DE3\u6DBB\u70FA\u710D\u70F7\u7117\u70F4\u710C\u70F0\u7104\u70F3\u7110\u70FC\u70FF\u7106\u7113\u7100\u70F8\u70F6\u710B\u7102\u710E\u727E\u727B\u727C\u727F\u731D\u7317\u7307\u7311\u7318\u730A\u7308\u72FF\u730F\u731E\u7388\u73F6\u73F8\u73F5\u7404\u7401\u73FD\u7407\u7400\u73FA\u73FC\u73FF\u740C\u740B\u73F4\u7408\u7564\u7563\u75CE\u75D2\u75CF"],["d6a1","\u75CB\u75CC\u75D1\u75D0\u768F\u7689\u76D3\u7739\u772F\u772D\u7731\u7732\u7734\u7733\u773D\u7725\u773B\u7735\u7848\u7852\u7849\u784D\u784A\u784C\u7826\u7845\u7850\u7964\u7967\u7969\u796A\u7963\u796B\u7961\u79BB\u79FA\u79F8\u79F6\u79F7\u7A8F\u7A94\u7A90\u7B35\u7B47\u7B34\u7B25\u7B30\u7B22\u7B24\u7B33\u7B18\u7B2A\u7B1D\u7B31\u7B2B\u7B2D\u7B2F\u7B32\u7B38\u7B1A\u7B23\u7C94\u7C98\u7C96\u7CA3\u7D35\u7D3D\u7D38\u7D36\u7D3A\u7D45\u7D2C\u7D29\u7D41\u7D47\u7D3E\u7D3F\u7D4A\u7D3B\u7D28\u7F63\u7F95\u7F9C\u7F9D\u7F9B\u7FCA\u7FCB\u7FCD\u7FD0\u7FD1\u7FC7\u7FCF\u7FC9\u801F"],["d740","\u801E\u801B\u8047\u8043\u8048\u8118\u8125\u8119\u811B\u812D\u811F\u812C\u811E\u8121\u8115\u8127\u811D\u8122\u8211\u8238\u8233\u823A\u8234\u8232\u8274\u8390\u83A3\u83A8\u838D\u837A\u8373\u83A4\u8374\u838F\u8381\u8395\u8399\u8375\u8394\u83A9\u837D\u8383\u838C\u839D\u839B\u83AA\u838B\u837E\u83A5\u83AF\u8388\u8397\u83B0\u837F\u83A6\u8387\u83AE\u8376\u839A\u8659\u8656\u86BF\u86B7"],["d7a1","\u86C2\u86C1\u86C5\u86BA\u86B0\u86C8\u86B9\u86B3\u86B8\u86CC\u86B4\u86BB\u86BC\u86C3\u86BD\u86BE\u8852\u8889\u8895\u88A8\u88A2\u88AA\u889A\u8891\u88A1\u889F\u8898\u88A7\u8899\u889B\u8897\u88A4\u88AC\u888C\u8893\u888E\u8982\u89D6\u89D9\u89D5\u8A30\u8A27\u8A2C\u8A1E\u8C39\u8C3B\u8C5C\u8C5D\u8C7D\u8CA5\u8D7D\u8D7B\u8D79\u8DBC\u8DC2\u8DB9\u8DBF\u8DC1\u8ED8\u8EDE\u8EDD\u8EDC\u8ED7\u8EE0\u8EE1\u9024\u900B\u9011\u901C\u900C\u9021\u90EF\u90EA\u90F0\u90F4\u90F2\u90F3\u90D4\u90EB\u90EC\u90E9\u9156\u9158\u915A\u9153\u9155\u91EC\u91F4\u91F1\u91F3\u91F8\u91E4\u91F9\u91EA"],["d840","\u91EB\u91F7\u91E8\u91EE\u957A\u9586\u9588\u967C\u966D\u966B\u9671\u966F\u96BF\u976A\u9804\u98E5\u9997\u509B\u5095\u5094\u509E\u508B\u50A3\u5083\u508C\u508E\u509D\u5068\u509C\u5092\u5082\u5087\u515F\u51D4\u5312\u5311\u53A4\u53A7\u5591\u55A8\u55A5\u55AD\u5577\u5645\u55A2\u5593\u5588\u558F\u55B5\u5581\u55A3\u5592\u55A4\u557D\u558C\u55A6\u557F\u5595\u55A1\u558E\u570C\u5829\u5837"],["d8a1","\u5819\u581E\u5827\u5823\u5828\u57F5\u5848\u5825\u581C\u581B\u5833\u583F\u5836\u582E\u5839\u5838\u582D\u582C\u583B\u5961\u5AAF\u5A94\u5A9F\u5A7A\u5AA2\u5A9E\u5A78\u5AA6\u5A7C\u5AA5\u5AAC\u5A95\u5AAE\u5A37\u5A84\u5A8A\u5A97\u5A83\u5A8B\u5AA9\u5A7B\u5A7D\u5A8C\u5A9C\u5A8F\u5A93\u5A9D\u5BEA\u5BCD\u5BCB\u5BD4\u5BD1\u5BCA\u5BCE\u5C0C\u5C30\u5D37\u5D43\u5D6B\u5D41\u5D4B\u5D3F\u5D35\u5D51\u5D4E\u5D55\u5D33\u5D3A\u5D52\u5D3D\u5D31\u5D59\u5D42\u5D39\u5D49\u5D38\u5D3C\u5D32\u5D36\u5D40\u5D45\u5E44\u5E41\u5F58\u5FA6\u5FA5\u5FAB\u60C9\u60B9\u60CC\u60E2\u60CE\u60C4\u6114"],["d940","\u60F2\u610A\u6116\u6105\u60F5\u6113\u60F8\u60FC\u60FE\u60C1\u6103\u6118\u611D\u6110\u60FF\u6104\u610B\u624A\u6394\u63B1\u63B0\u63CE\u63E5\u63E8\u63EF\u63C3\u649D\u63F3\u63CA\u63E0\u63F6\u63D5\u63F2\u63F5\u6461\u63DF\u63BE\u63DD\u63DC\u63C4\u63D8\u63D3\u63C2\u63C7\u63CC\u63CB\u63C8\u63F0\u63D7\u63D9\u6532\u6567\u656A\u6564\u655C\u6568\u6565\u658C\u659D\u659E\u65AE\u65D0\u65D2"],["d9a1","\u667C\u666C\u667B\u6680\u6671\u6679\u666A\u6672\u6701\u690C\u68D3\u6904\u68DC\u692A\u68EC\u68EA\u68F1\u690F\u68D6\u68F7\u68EB\u68E4\u68F6\u6913\u6910\u68F3\u68E1\u6907\u68CC\u6908\u6970\u68B4\u6911\u68EF\u68C6\u6914\u68F8\u68D0\u68FD\u68FC\u68E8\u690B\u690A\u6917\u68CE\u68C8\u68DD\u68DE\u68E6\u68F4\u68D1\u6906\u68D4\u68E9\u6915\u6925\u68C7\u6B39\u6B3B\u6B3F\u6B3C\u6B94\u6B97\u6B99\u6B95\u6BBD\u6BF0\u6BF2\u6BF3\u6C30\u6DFC\u6E46\u6E47\u6E1F\u6E49\u6E88\u6E3C\u6E3D\u6E45\u6E62\u6E2B\u6E3F\u6E41\u6E5D\u6E73\u6E1C\u6E33\u6E4B\u6E40\u6E51\u6E3B\u6E03\u6E2E\u6E5E"],["da40","\u6E68\u6E5C\u6E61\u6E31\u6E28\u6E60\u6E71\u6E6B\u6E39\u6E22\u6E30\u6E53\u6E65\u6E27\u6E78\u6E64\u6E77\u6E55\u6E79\u6E52\u6E66\u6E35\u6E36\u6E5A\u7120\u711E\u712F\u70FB\u712E\u7131\u7123\u7125\u7122\u7132\u711F\u7128\u713A\u711B\u724B\u725A\u7288\u7289\u7286\u7285\u728B\u7312\u730B\u7330\u7322\u7331\u7333\u7327\u7332\u732D\u7326\u7323\u7335\u730C\u742E\u742C\u7430\u742B\u7416"],["daa1","\u741A\u7421\u742D\u7431\u7424\u7423\u741D\u7429\u7420\u7432\u74FB\u752F\u756F\u756C\u75E7\u75DA\u75E1\u75E6\u75DD\u75DF\u75E4\u75D7\u7695\u7692\u76DA\u7746\u7747\u7744\u774D\u7745\u774A\u774E\u774B\u774C\u77DE\u77EC\u7860\u7864\u7865\u785C\u786D\u7871\u786A\u786E\u7870\u7869\u7868\u785E\u7862\u7974\u7973\u7972\u7970\u7A02\u7A0A\u7A03\u7A0C\u7A04\u7A99\u7AE6\u7AE4\u7B4A\u7B3B\u7B44\u7B48\u7B4C\u7B4E\u7B40\u7B58\u7B45\u7CA2\u7C9E\u7CA8\u7CA1\u7D58\u7D6F\u7D63\u7D53\u7D56\u7D67\u7D6A\u7D4F\u7D6D\u7D5C\u7D6B\u7D52\u7D54\u7D69\u7D51\u7D5F\u7D4E\u7F3E\u7F3F\u7F65"],["db40","\u7F66\u7FA2\u7FA0\u7FA1\u7FD7\u8051\u804F\u8050\u80FE\u80D4\u8143\u814A\u8152\u814F\u8147\u813D\u814D\u813A\u81E6\u81EE\u81F7\u81F8\u81F9\u8204\u823C\u823D\u823F\u8275\u833B\u83CF\u83F9\u8423\u83C0\u83E8\u8412\u83E7\u83E4\u83FC\u83F6\u8410\u83C6\u83C8\u83EB\u83E3\u83BF\u8401\u83DD\u83E5\u83D8\u83FF\u83E1\u83CB\u83CE\u83D6\u83F5\u83C9\u8409\u840F\u83DE\u8411\u8406\u83C2\u83F3"],["dba1","\u83D5\u83FA\u83C7\u83D1\u83EA\u8413\u83C3\u83EC\u83EE\u83C4\u83FB\u83D7\u83E2\u841B\u83DB\u83FE\u86D8\u86E2\u86E6\u86D3\u86E3\u86DA\u86EA\u86DD\u86EB\u86DC\u86EC\u86E9\u86D7\u86E8\u86D1\u8848\u8856\u8855\u88BA\u88D7\u88B9\u88B8\u88C0\u88BE\u88B6\u88BC\u88B7\u88BD\u88B2\u8901\u88C9\u8995\u8998\u8997\u89DD\u89DA\u89DB\u8A4E\u8A4D\u8A39\u8A59\u8A40\u8A57\u8A58\u8A44\u8A45\u8A52\u8A48\u8A51\u8A4A\u8A4C\u8A4F\u8C5F\u8C81\u8C80\u8CBA\u8CBE\u8CB0\u8CB9\u8CB5\u8D84\u8D80\u8D89\u8DD8\u8DD3\u8DCD\u8DC7\u8DD6\u8DDC\u8DCF\u8DD5\u8DD9\u8DC8\u8DD7\u8DC5\u8EEF\u8EF7\u8EFA"],["dc40","\u8EF9\u8EE6\u8EEE\u8EE5\u8EF5\u8EE7\u8EE8\u8EF6\u8EEB\u8EF1\u8EEC\u8EF4\u8EE9\u902D\u9034\u902F\u9106\u912C\u9104\u90FF\u90FC\u9108\u90F9\u90FB\u9101\u9100\u9107\u9105\u9103\u9161\u9164\u915F\u9162\u9160\u9201\u920A\u9225\u9203\u921A\u9226\u920F\u920C\u9200\u9212\u91FF\u91FD\u9206\u9204\u9227\u9202\u921C\u9224\u9219\u9217\u9205\u9216\u957B\u958D\u958C\u9590\u9687\u967E\u9688"],["dca1","\u9689\u9683\u9680\u96C2\u96C8\u96C3\u96F1\u96F0\u976C\u9770\u976E\u9807\u98A9\u98EB\u9CE6\u9EF9\u4E83\u4E84\u4EB6\u50BD\u50BF\u50C6\u50AE\u50C4\u50CA\u50B4\u50C8\u50C2\u50B0\u50C1\u50BA\u50B1\u50CB\u50C9\u50B6\u50B8\u51D7\u527A\u5278\u527B\u527C\u55C3\u55DB\u55CC\u55D0\u55CB\u55CA\u55DD\u55C0\u55D4\u55C4\u55E9\u55BF\u55D2\u558D\u55CF\u55D5\u55E2\u55D6\u55C8\u55F2\u55CD\u55D9\u55C2\u5714\u5853\u5868\u5864\u584F\u584D\u5849\u586F\u5855\u584E\u585D\u5859\u5865\u585B\u583D\u5863\u5871\u58FC\u5AC7\u5AC4\u5ACB\u5ABA\u5AB8\u5AB1\u5AB5\u5AB0\u5ABF\u5AC8\u5ABB\u5AC6"],["dd40","\u5AB7\u5AC0\u5ACA\u5AB4\u5AB6\u5ACD\u5AB9\u5A90\u5BD6\u5BD8\u5BD9\u5C1F\u5C33\u5D71\u5D63\u5D4A\u5D65\u5D72\u5D6C\u5D5E\u5D68\u5D67\u5D62\u5DF0\u5E4F\u5E4E\u5E4A\u5E4D\u5E4B\u5EC5\u5ECC\u5EC6\u5ECB\u5EC7\u5F40\u5FAF\u5FAD\u60F7\u6149\u614A\u612B\u6145\u6136\u6132\u612E\u6146\u612F\u614F\u6129\u6140\u6220\u9168\u6223\u6225\u6224\u63C5\u63F1\u63EB\u6410\u6412\u6409\u6420\u6424"],["dda1","\u6433\u6443\u641F\u6415\u6418\u6439\u6437\u6422\u6423\u640C\u6426\u6430\u6428\u6441\u6435\u642F\u640A\u641A\u6440\u6425\u6427\u640B\u63E7\u641B\u642E\u6421\u640E\u656F\u6592\u65D3\u6686\u668C\u6695\u6690\u668B\u668A\u6699\u6694\u6678\u6720\u6966\u695F\u6938\u694E\u6962\u6971\u693F\u6945\u696A\u6939\u6942\u6957\u6959\u697A\u6948\u6949\u6935\u696C\u6933\u693D\u6965\u68F0\u6978\u6934\u6969\u6940\u696F\u6944\u6976\u6958\u6941\u6974\u694C\u693B\u694B\u6937\u695C\u694F\u6951\u6932\u6952\u692F\u697B\u693C\u6B46\u6B45\u6B43\u6B42\u6B48\u6B41\u6B9B\uFA0D\u6BFB\u6BFC"],["de40","\u6BF9\u6BF7\u6BF8\u6E9B\u6ED6\u6EC8\u6E8F\u6EC0\u6E9F\u6E93\u6E94\u6EA0\u6EB1\u6EB9\u6EC6\u6ED2\u6EBD\u6EC1\u6E9E\u6EC9\u6EB7\u6EB0\u6ECD\u6EA6\u6ECF\u6EB2\u6EBE\u6EC3\u6EDC\u6ED8\u6E99\u6E92\u6E8E\u6E8D\u6EA4\u6EA1\u6EBF\u6EB3\u6ED0\u6ECA\u6E97\u6EAE\u6EA3\u7147\u7154\u7152\u7163\u7160\u7141\u715D\u7162\u7172\u7178\u716A\u7161\u7142\u7158\u7143\u714B\u7170\u715F\u7150\u7153"],["dea1","\u7144\u714D\u715A\u724F\u728D\u728C\u7291\u7290\u728E\u733C\u7342\u733B\u733A\u7340\u734A\u7349\u7444\u744A\u744B\u7452\u7451\u7457\u7440\u744F\u7450\u744E\u7442\u7446\u744D\u7454\u74E1\u74FF\u74FE\u74FD\u751D\u7579\u7577\u6983\u75EF\u760F\u7603\u75F7\u75FE\u75FC\u75F9\u75F8\u7610\u75FB\u75F6\u75ED\u75F5\u75FD\u7699\u76B5\u76DD\u7755\u775F\u7760\u7752\u7756\u775A\u7769\u7767\u7754\u7759\u776D\u77E0\u7887\u789A\u7894\u788F\u7884\u7895\u7885\u7886\u78A1\u7883\u7879\u7899\u7880\u7896\u787B\u797C\u7982\u797D\u7979\u7A11\u7A18\u7A19\u7A12\u7A17\u7A15\u7A22\u7A13"],["df40","\u7A1B\u7A10\u7AA3\u7AA2\u7A9E\u7AEB\u7B66\u7B64\u7B6D\u7B74\u7B69\u7B72\u7B65\u7B73\u7B71\u7B70\u7B61\u7B78\u7B76\u7B63\u7CB2\u7CB4\u7CAF\u7D88\u7D86\u7D80\u7D8D\u7D7F\u7D85\u7D7A\u7D8E\u7D7B\u7D83\u7D7C\u7D8C\u7D94\u7D84\u7D7D\u7D92\u7F6D\u7F6B\u7F67\u7F68\u7F6C\u7FA6\u7FA5\u7FA7\u7FDB\u7FDC\u8021\u8164\u8160\u8177\u815C\u8169\u815B\u8162\u8172\u6721\u815E\u8176\u8167\u816F"],["dfa1","\u8144\u8161\u821D\u8249\u8244\u8240\u8242\u8245\u84F1\u843F\u8456\u8476\u8479\u848F\u848D\u8465\u8451\u8440\u8486\u8467\u8430\u844D\u847D\u845A\u8459\u8474\u8473\u845D\u8507\u845E\u8437\u843A\u8434\u847A\u8443\u8478\u8432\u8445\u8429\u83D9\u844B\u842F\u8442\u842D\u845F\u8470\u8439\u844E\u844C\u8452\u846F\u84C5\u848E\u843B\u8447\u8436\u8433\u8468\u847E\u8444\u842B\u8460\u8454\u846E\u8450\u870B\u8704\u86F7\u870C\u86FA\u86D6\u86F5\u874D\u86F8\u870E\u8709\u8701\u86F6\u870D\u8705\u88D6\u88CB\u88CD\u88CE\u88DE\u88DB\u88DA\u88CC\u88D0\u8985\u899B\u89DF\u89E5\u89E4"],["e040","\u89E1\u89E0\u89E2\u89DC\u89E6\u8A76\u8A86\u8A7F\u8A61\u8A3F\u8A77\u8A82\u8A84\u8A75\u8A83\u8A81\u8A74\u8A7A\u8C3C\u8C4B\u8C4A\u8C65\u8C64\u8C66\u8C86\u8C84\u8C85\u8CCC\u8D68\u8D69\u8D91\u8D8C\u8D8E\u8D8F\u8D8D\u8D93\u8D94\u8D90\u8D92\u8DF0\u8DE0\u8DEC\u8DF1\u8DEE\u8DD0\u8DE9\u8DE3\u8DE2\u8DE7\u8DF2\u8DEB\u8DF4\u8F06\u8EFF\u8F01\u8F00\u8F05\u8F07\u8F08\u8F02\u8F0B\u9052\u903F"],["e0a1","\u9044\u9049\u903D\u9110\u910D\u910F\u9111\u9116\u9114\u910B\u910E\u916E\u916F\u9248\u9252\u9230\u923A\u9266\u9233\u9265\u925E\u9283\u922E\u924A\u9246\u926D\u926C\u924F\u9260\u9267\u926F\u9236\u9261\u9270\u9231\u9254\u9263\u9250\u9272\u924E\u9253\u924C\u9256\u9232\u959F\u959C\u959E\u959B\u9692\u9693\u9691\u9697\u96CE\u96FA\u96FD\u96F8\u96F5\u9773\u9777\u9778\u9772\u980F\u980D\u980E\u98AC\u98F6\u98F9\u99AF\u99B2\u99B0\u99B5\u9AAD\u9AAB\u9B5B\u9CEA\u9CED\u9CE7\u9E80\u9EFD\u50E6\u50D4\u50D7\u50E8\u50F3\u50DB\u50EA\u50DD\u50E4\u50D3\u50EC\u50F0\u50EF\u50E3\u50E0"],["e140","\u51D8\u5280\u5281\u52E9\u52EB\u5330\u53AC\u5627\u5615\u560C\u5612\u55FC\u560F\u561C\u5601\u5613\u5602\u55FA\u561D\u5604\u55FF\u55F9\u5889\u587C\u5890\u5898\u5886\u5881\u587F\u5874\u588B\u587A\u5887\u5891\u588E\u5876\u5882\u5888\u587B\u5894\u588F\u58FE\u596B\u5ADC\u5AEE\u5AE5\u5AD5\u5AEA\u5ADA\u5AED\u5AEB\u5AF3\u5AE2\u5AE0\u5ADB\u5AEC\u5ADE\u5ADD\u5AD9\u5AE8\u5ADF\u5B77\u5BE0"],["e1a1","\u5BE3\u5C63\u5D82\u5D80\u5D7D\u5D86\u5D7A\u5D81\u5D77\u5D8A\u5D89\u5D88\u5D7E\u5D7C\u5D8D\u5D79\u5D7F\u5E58\u5E59\u5E53\u5ED8\u5ED1\u5ED7\u5ECE\u5EDC\u5ED5\u5ED9\u5ED2\u5ED4\u5F44\u5F43\u5F6F\u5FB6\u612C\u6128\u6141\u615E\u6171\u6173\u6152\u6153\u6172\u616C\u6180\u6174\u6154\u617A\u615B\u6165\u613B\u616A\u6161\u6156\u6229\u6227\u622B\u642B\u644D\u645B\u645D\u6474\u6476\u6472\u6473\u647D\u6475\u6466\u64A6\u644E\u6482\u645E\u645C\u644B\u6453\u6460\u6450\u647F\u643F\u646C\u646B\u6459\u6465\u6477\u6573\u65A0\u66A1\u66A0\u669F\u6705\u6704\u6722\u69B1\u69B6\u69C9"],["e240","\u69A0\u69CE\u6996\u69B0\u69AC\u69BC\u6991\u6999\u698E\u69A7\u698D\u69A9\u69BE\u69AF\u69BF\u69C4\u69BD\u69A4\u69D4\u69B9\u69CA\u699A\u69CF\u69B3\u6993\u69AA\u69A1\u699E\u69D9\u6997\u6990\u69C2\u69B5\u69A5\u69C6\u6B4A\u6B4D\u6B4B\u6B9E\u6B9F\u6BA0\u6BC3\u6BC4\u6BFE\u6ECE\u6EF5\u6EF1\u6F03\u6F25\u6EF8\u6F37\u6EFB\u6F2E\u6F09\u6F4E\u6F19\u6F1A\u6F27\u6F18\u6F3B\u6F12\u6EED\u6F0A"],["e2a1","\u6F36\u6F73\u6EF9\u6EEE\u6F2D\u6F40\u6F30\u6F3C\u6F35\u6EEB\u6F07\u6F0E\u6F43\u6F05\u6EFD\u6EF6\u6F39\u6F1C\u6EFC\u6F3A\u6F1F\u6F0D\u6F1E\u6F08\u6F21\u7187\u7190\u7189\u7180\u7185\u7182\u718F\u717B\u7186\u7181\u7197\u7244\u7253\u7297\u7295\u7293\u7343\u734D\u7351\u734C\u7462\u7473\u7471\u7475\u7472\u7467\u746E\u7500\u7502\u7503\u757D\u7590\u7616\u7608\u760C\u7615\u7611\u760A\u7614\u76B8\u7781\u777C\u7785\u7782\u776E\u7780\u776F\u777E\u7783\u78B2\u78AA\u78B4\u78AD\u78A8\u787E\u78AB\u789E\u78A5\u78A0\u78AC\u78A2\u78A4\u7998\u798A\u798B\u7996\u7995\u7994\u7993"],["e340","\u7997\u7988\u7992\u7990\u7A2B\u7A4A\u7A30\u7A2F\u7A28\u7A26\u7AA8\u7AAB\u7AAC\u7AEE\u7B88\u7B9C\u7B8A\u7B91\u7B90\u7B96\u7B8D\u7B8C\u7B9B\u7B8E\u7B85\u7B98\u5284\u7B99\u7BA4\u7B82\u7CBB\u7CBF\u7CBC\u7CBA\u7DA7\u7DB7\u7DC2\u7DA3\u7DAA\u7DC1\u7DC0\u7DC5\u7D9D\u7DCE\u7DC4\u7DC6\u7DCB\u7DCC\u7DAF\u7DB9\u7D96\u7DBC\u7D9F\u7DA6\u7DAE\u7DA9\u7DA1\u7DC9\u7F73\u7FE2\u7FE3\u7FE5\u7FDE"],["e3a1","\u8024\u805D\u805C\u8189\u8186\u8183\u8187\u818D\u818C\u818B\u8215\u8497\u84A4\u84A1\u849F\u84BA\u84CE\u84C2\u84AC\u84AE\u84AB\u84B9\u84B4\u84C1\u84CD\u84AA\u849A\u84B1\u84D0\u849D\u84A7\u84BB\u84A2\u8494\u84C7\u84CC\u849B\u84A9\u84AF\u84A8\u84D6\u8498\u84B6\u84CF\u84A0\u84D7\u84D4\u84D2\u84DB\u84B0\u8491\u8661\u8733\u8723\u8728\u876B\u8740\u872E\u871E\u8721\u8719\u871B\u8743\u872C\u8741\u873E\u8746\u8720\u8732\u872A\u872D\u873C\u8712\u873A\u8731\u8735\u8742\u8726\u8727\u8738\u8724\u871A\u8730\u8711\u88F7\u88E7\u88F1\u88F2\u88FA\u88FE\u88EE\u88FC\u88F6\u88FB"],["e440","\u88F0\u88EC\u88EB\u899D\u89A1\u899F\u899E\u89E9\u89EB\u89E8\u8AAB\u8A99\u8A8B\u8A92\u8A8F\u8A96\u8C3D\u8C68\u8C69\u8CD5\u8CCF\u8CD7\u8D96\u8E09\u8E02\u8DFF\u8E0D\u8DFD\u8E0A\u8E03\u8E07\u8E06\u8E05\u8DFE\u8E00\u8E04\u8F10\u8F11\u8F0E\u8F0D\u9123\u911C\u9120\u9122\u911F\u911D\u911A\u9124\u9121\u911B\u917A\u9172\u9179\u9173\u92A5\u92A4\u9276\u929B\u927A\u92A0\u9294\u92AA\u928D"],["e4a1","\u92A6\u929A\u92AB\u9279\u9297\u927F\u92A3\u92EE\u928E\u9282\u9295\u92A2\u927D\u9288\u92A1\u928A\u9286\u928C\u9299\u92A7\u927E\u9287\u92A9\u929D\u928B\u922D\u969E\u96A1\u96FF\u9758\u977D\u977A\u977E\u9783\u9780\u9782\u977B\u9784\u9781\u977F\u97CE\u97CD\u9816\u98AD\u98AE\u9902\u9900\u9907\u999D\u999C\u99C3\u99B9\u99BB\u99BA\u99C2\u99BD\u99C7\u9AB1\u9AE3\u9AE7\u9B3E\u9B3F\u9B60\u9B61\u9B5F\u9CF1\u9CF2\u9CF5\u9EA7\u50FF\u5103\u5130\u50F8\u5106\u5107\u50F6\u50FE\u510B\u510C\u50FD\u510A\u528B\u528C\u52F1\u52EF\u5648\u5642\u564C\u5635\u5641\u564A\u5649\u5646\u5658"],["e540","\u565A\u5640\u5633\u563D\u562C\u563E\u5638\u562A\u563A\u571A\u58AB\u589D\u58B1\u58A0\u58A3\u58AF\u58AC\u58A5\u58A1\u58FF\u5AFF\u5AF4\u5AFD\u5AF7\u5AF6\u5B03\u5AF8\u5B02\u5AF9\u5B01\u5B07\u5B05\u5B0F\u5C67\u5D99\u5D97\u5D9F\u5D92\u5DA2\u5D93\u5D95\u5DA0\u5D9C\u5DA1\u5D9A\u5D9E\u5E69\u5E5D\u5E60\u5E5C\u7DF3\u5EDB\u5EDE\u5EE1\u5F49\u5FB2\u618B\u6183\u6179\u61B1\u61B0\u61A2\u6189"],["e5a1","\u619B\u6193\u61AF\u61AD\u619F\u6192\u61AA\u61A1\u618D\u6166\u61B3\u622D\u646E\u6470\u6496\u64A0\u6485\u6497\u649C\u648F\u648B\u648A\u648C\u64A3\u649F\u6468\u64B1\u6498\u6576\u657A\u6579\u657B\u65B2\u65B3\u66B5\u66B0\u66A9\u66B2\u66B7\u66AA\u66AF\u6A00\u6A06\u6A17\u69E5\u69F8\u6A15\u69F1\u69E4\u6A20\u69FF\u69EC\u69E2\u6A1B\u6A1D\u69FE\u6A27\u69F2\u69EE\u6A14\u69F7\u69E7\u6A40\u6A08\u69E6\u69FB\u6A0D\u69FC\u69EB\u6A09\u6A04\u6A18\u6A25\u6A0F\u69F6\u6A26\u6A07\u69F4\u6A16\u6B51\u6BA5\u6BA3\u6BA2\u6BA6\u6C01\u6C00\u6BFF\u6C02\u6F41\u6F26\u6F7E\u6F87\u6FC6\u6F92"],["e640","\u6F8D\u6F89\u6F8C\u6F62\u6F4F\u6F85\u6F5A\u6F96\u6F76\u6F6C\u6F82\u6F55\u6F72\u6F52\u6F50\u6F57\u6F94\u6F93\u6F5D\u6F00\u6F61\u6F6B\u6F7D\u6F67\u6F90\u6F53\u6F8B\u6F69\u6F7F\u6F95\u6F63\u6F77\u6F6A\u6F7B\u71B2\u71AF\u719B\u71B0\u71A0\u719A\u71A9\u71B5\u719D\u71A5\u719E\u71A4\u71A1\u71AA\u719C\u71A7\u71B3\u7298\u729A\u7358\u7352\u735E\u735F\u7360\u735D\u735B\u7361\u735A\u7359"],["e6a1","\u7362\u7487\u7489\u748A\u7486\u7481\u747D\u7485\u7488\u747C\u7479\u7508\u7507\u757E\u7625\u761E\u7619\u761D\u761C\u7623\u761A\u7628\u761B\u769C\u769D\u769E\u769B\u778D\u778F\u7789\u7788\u78CD\u78BB\u78CF\u78CC\u78D1\u78CE\u78D4\u78C8\u78C3\u78C4\u78C9\u799A\u79A1\u79A0\u799C\u79A2\u799B\u6B76\u7A39\u7AB2\u7AB4\u7AB3\u7BB7\u7BCB\u7BBE\u7BAC\u7BCE\u7BAF\u7BB9\u7BCA\u7BB5\u7CC5\u7CC8\u7CCC\u7CCB\u7DF7\u7DDB\u7DEA\u7DE7\u7DD7\u7DE1\u7E03\u7DFA\u7DE6\u7DF6\u7DF1\u7DF0\u7DEE\u7DDF\u7F76\u7FAC\u7FB0\u7FAD\u7FED\u7FEB\u7FEA\u7FEC\u7FE6\u7FE8\u8064\u8067\u81A3\u819F"],["e740","\u819E\u8195\u81A2\u8199\u8197\u8216\u824F\u8253\u8252\u8250\u824E\u8251\u8524\u853B\u850F\u8500\u8529\u850E\u8509\u850D\u851F\u850A\u8527\u851C\u84FB\u852B\u84FA\u8508\u850C\u84F4\u852A\u84F2\u8515\u84F7\u84EB\u84F3\u84FC\u8512\u84EA\u84E9\u8516\u84FE\u8528\u851D\u852E\u8502\u84FD\u851E\u84F6\u8531\u8526\u84E7\u84E8\u84F0\u84EF\u84F9\u8518\u8520\u8530\u850B\u8519\u852F\u8662"],["e7a1","\u8756\u8763\u8764\u8777\u87E1\u8773\u8758\u8754\u875B\u8752\u8761\u875A\u8751\u875E\u876D\u876A\u8750\u874E\u875F\u875D\u876F\u876C\u877A\u876E\u875C\u8765\u874F\u877B\u8775\u8762\u8767\u8769\u885A\u8905\u890C\u8914\u890B\u8917\u8918\u8919\u8906\u8916\u8911\u890E\u8909\u89A2\u89A4\u89A3\u89ED\u89F0\u89EC\u8ACF\u8AC6\u8AB8\u8AD3\u8AD1\u8AD4\u8AD5\u8ABB\u8AD7\u8ABE\u8AC0\u8AC5\u8AD8\u8AC3\u8ABA\u8ABD\u8AD9\u8C3E\u8C4D\u8C8F\u8CE5\u8CDF\u8CD9\u8CE8\u8CDA\u8CDD\u8CE7\u8DA0\u8D9C\u8DA1\u8D9B\u8E20\u8E23\u8E25\u8E24\u8E2E\u8E15\u8E1B\u8E16\u8E11\u8E19\u8E26\u8E27"],["e840","\u8E14\u8E12\u8E18\u8E13\u8E1C\u8E17\u8E1A\u8F2C\u8F24\u8F18\u8F1A\u8F20\u8F23\u8F16\u8F17\u9073\u9070\u906F\u9067\u906B\u912F\u912B\u9129\u912A\u9132\u9126\u912E\u9185\u9186\u918A\u9181\u9182\u9184\u9180\u92D0\u92C3\u92C4\u92C0\u92D9\u92B6\u92CF\u92F1\u92DF\u92D8\u92E9\u92D7\u92DD\u92CC\u92EF\u92C2\u92E8\u92CA\u92C8\u92CE\u92E6\u92CD\u92D5\u92C9\u92E0\u92DE\u92E7\u92D1\u92D3"],["e8a1","\u92B5\u92E1\u92C6\u92B4\u957C\u95AC\u95AB\u95AE\u95B0\u96A4\u96A2\u96D3\u9705\u9708\u9702\u975A\u978A\u978E\u9788\u97D0\u97CF\u981E\u981D\u9826\u9829\u9828\u9820\u981B\u9827\u98B2\u9908\u98FA\u9911\u9914\u9916\u9917\u9915\u99DC\u99CD\u99CF\u99D3\u99D4\u99CE\u99C9\u99D6\u99D8\u99CB\u99D7\u99CC\u9AB3\u9AEC\u9AEB\u9AF3\u9AF2\u9AF1\u9B46\u9B43\u9B67\u9B74\u9B71\u9B66\u9B76\u9B75\u9B70\u9B68\u9B64\u9B6C\u9CFC\u9CFA\u9CFD\u9CFF\u9CF7\u9D07\u9D00\u9CF9\u9CFB\u9D08\u9D05\u9D04\u9E83\u9ED3\u9F0F\u9F10\u511C\u5113\u5117\u511A\u5111\u51DE\u5334\u53E1\u5670\u5660\u566E"],["e940","\u5673\u5666\u5663\u566D\u5672\u565E\u5677\u571C\u571B\u58C8\u58BD\u58C9\u58BF\u58BA\u58C2\u58BC\u58C6\u5B17\u5B19\u5B1B\u5B21\u5B14\u5B13\u5B10\u5B16\u5B28\u5B1A\u5B20\u5B1E\u5BEF\u5DAC\u5DB1\u5DA9\u5DA7\u5DB5\u5DB0\u5DAE\u5DAA\u5DA8\u5DB2\u5DAD\u5DAF\u5DB4\u5E67\u5E68\u5E66\u5E6F\u5EE9\u5EE7\u5EE6\u5EE8\u5EE5\u5F4B\u5FBC\u619D\u61A8\u6196\u61C5\u61B4\u61C6\u61C1\u61CC\u61BA"],["e9a1","\u61BF\u61B8\u618C\u64D7\u64D6\u64D0\u64CF\u64C9\u64BD\u6489\u64C3\u64DB\u64F3\u64D9\u6533\u657F\u657C\u65A2\u66C8\u66BE\u66C0\u66CA\u66CB\u66CF\u66BD\u66BB\u66BA\u66CC\u6723\u6A34\u6A66\u6A49\u6A67\u6A32\u6A68\u6A3E\u6A5D\u6A6D\u6A76\u6A5B\u6A51\u6A28\u6A5A\u6A3B\u6A3F\u6A41\u6A6A\u6A64\u6A50\u6A4F\u6A54\u6A6F\u6A69\u6A60\u6A3C\u6A5E\u6A56\u6A55\u6A4D\u6A4E\u6A46\u6B55\u6B54\u6B56\u6BA7\u6BAA\u6BAB\u6BC8\u6BC7\u6C04\u6C03\u6C06\u6FAD\u6FCB\u6FA3\u6FC7\u6FBC\u6FCE\u6FC8\u6F5E\u6FC4\u6FBD\u6F9E\u6FCA\u6FA8\u7004\u6FA5\u6FAE\u6FBA\u6FAC\u6FAA\u6FCF\u6FBF\u6FB8"],["ea40","\u6FA2\u6FC9\u6FAB\u6FCD\u6FAF\u6FB2\u6FB0\u71C5\u71C2\u71BF\u71B8\u71D6\u71C0\u71C1\u71CB\u71D4\u71CA\u71C7\u71CF\u71BD\u71D8\u71BC\u71C6\u71DA\u71DB\u729D\u729E\u7369\u7366\u7367\u736C\u7365\u736B\u736A\u747F\u749A\u74A0\u7494\u7492\u7495\u74A1\u750B\u7580\u762F\u762D\u7631\u763D\u7633\u763C\u7635\u7632\u7630\u76BB\u76E6\u779A\u779D\u77A1\u779C\u779B\u77A2\u77A3\u7795\u7799"],["eaa1","\u7797\u78DD\u78E9\u78E5\u78EA\u78DE\u78E3\u78DB\u78E1\u78E2\u78ED\u78DF\u78E0\u79A4\u7A44\u7A48\u7A47\u7AB6\u7AB8\u7AB5\u7AB1\u7AB7\u7BDE\u7BE3\u7BE7\u7BDD\u7BD5\u7BE5\u7BDA\u7BE8\u7BF9\u7BD4\u7BEA\u7BE2\u7BDC\u7BEB\u7BD8\u7BDF\u7CD2\u7CD4\u7CD7\u7CD0\u7CD1\u7E12\u7E21\u7E17\u7E0C\u7E1F\u7E20\u7E13\u7E0E\u7E1C\u7E15\u7E1A\u7E22\u7E0B\u7E0F\u7E16\u7E0D\u7E14\u7E25\u7E24\u7F43\u7F7B\u7F7C\u7F7A\u7FB1\u7FEF\u802A\u8029\u806C\u81B1\u81A6\u81AE\u81B9\u81B5\u81AB\u81B0\u81AC\u81B4\u81B2\u81B7\u81A7\u81F2\u8255\u8256\u8257\u8556\u8545\u856B\u854D\u8553\u8561\u8558"],["eb40","\u8540\u8546\u8564\u8541\u8562\u8544\u8551\u8547\u8563\u853E\u855B\u8571\u854E\u856E\u8575\u8555\u8567\u8560\u858C\u8566\u855D\u8554\u8565\u856C\u8663\u8665\u8664\u879B\u878F\u8797\u8793\u8792\u8788\u8781\u8796\u8798\u8779\u8787\u87A3\u8785\u8790\u8791\u879D\u8784\u8794\u879C\u879A\u8789\u891E\u8926\u8930\u892D\u892E\u8927\u8931\u8922\u8929\u8923\u892F\u892C\u891F\u89F1\u8AE0"],["eba1","\u8AE2\u8AF2\u8AF4\u8AF5\u8ADD\u8B14\u8AE4\u8ADF\u8AF0\u8AC8\u8ADE\u8AE1\u8AE8\u8AFF\u8AEF\u8AFB\u8C91\u8C92\u8C90\u8CF5\u8CEE\u8CF1\u8CF0\u8CF3\u8D6C\u8D6E\u8DA5\u8DA7\u8E33\u8E3E\u8E38\u8E40\u8E45\u8E36\u8E3C\u8E3D\u8E41\u8E30\u8E3F\u8EBD\u8F36\u8F2E\u8F35\u8F32\u8F39\u8F37\u8F34\u9076\u9079\u907B\u9086\u90FA\u9133\u9135\u9136\u9193\u9190\u9191\u918D\u918F\u9327\u931E\u9308\u931F\u9306\u930F\u937A\u9338\u933C\u931B\u9323\u9312\u9301\u9346\u932D\u930E\u930D\u92CB\u931D\u92FA\u9325\u9313\u92F9\u92F7\u9334\u9302\u9324\u92FF\u9329\u9339\u9335\u932A\u9314\u930C"],["ec40","\u930B\u92FE\u9309\u9300\u92FB\u9316\u95BC\u95CD\u95BE\u95B9\u95BA\u95B6\u95BF\u95B5\u95BD\u96A9\u96D4\u970B\u9712\u9710\u9799\u9797\u9794\u97F0\u97F8\u9835\u982F\u9832\u9924\u991F\u9927\u9929\u999E\u99EE\u99EC\u99E5\u99E4\u99F0\u99E3\u99EA\u99E9\u99E7\u9AB9\u9ABF\u9AB4\u9ABB\u9AF6\u9AFA\u9AF9\u9AF7\u9B33\u9B80\u9B85\u9B87\u9B7C\u9B7E\u9B7B\u9B82\u9B93\u9B92\u9B90\u9B7A\u9B95"],["eca1","\u9B7D\u9B88\u9D25\u9D17\u9D20\u9D1E\u9D14\u9D29\u9D1D\u9D18\u9D22\u9D10\u9D19\u9D1F\u9E88\u9E86\u9E87\u9EAE\u9EAD\u9ED5\u9ED6\u9EFA\u9F12\u9F3D\u5126\u5125\u5122\u5124\u5120\u5129\u52F4\u5693\u568C\u568D\u5686\u5684\u5683\u567E\u5682\u567F\u5681\u58D6\u58D4\u58CF\u58D2\u5B2D\u5B25\u5B32\u5B23\u5B2C\u5B27\u5B26\u5B2F\u5B2E\u5B7B\u5BF1\u5BF2\u5DB7\u5E6C\u5E6A\u5FBE\u5FBB\u61C3\u61B5\u61BC\u61E7\u61E0\u61E5\u61E4\u61E8\u61DE\u64EF\u64E9\u64E3\u64EB\u64E4\u64E8\u6581\u6580\u65B6\u65DA\u66D2\u6A8D\u6A96\u6A81\u6AA5\u6A89\u6A9F\u6A9B\u6AA1\u6A9E\u6A87\u6A93\u6A8E"],["ed40","\u6A95\u6A83\u6AA8\u6AA4\u6A91\u6A7F\u6AA6\u6A9A\u6A85\u6A8C\u6A92\u6B5B\u6BAD\u6C09\u6FCC\u6FA9\u6FF4\u6FD4\u6FE3\u6FDC\u6FED\u6FE7\u6FE6\u6FDE\u6FF2\u6FDD\u6FE2\u6FE8\u71E1\u71F1\u71E8\u71F2\u71E4\u71F0\u71E2\u7373\u736E\u736F\u7497\u74B2\u74AB\u7490\u74AA\u74AD\u74B1\u74A5\u74AF\u7510\u7511\u7512\u750F\u7584\u7643\u7648\u7649\u7647\u76A4\u76E9\u77B5\u77AB\u77B2\u77B7\u77B6"],["eda1","\u77B4\u77B1\u77A8\u77F0\u78F3\u78FD\u7902\u78FB\u78FC\u78F2\u7905\u78F9\u78FE\u7904\u79AB\u79A8\u7A5C\u7A5B\u7A56\u7A58\u7A54\u7A5A\u7ABE\u7AC0\u7AC1\u7C05\u7C0F\u7BF2\u7C00\u7BFF\u7BFB\u7C0E\u7BF4\u7C0B\u7BF3\u7C02\u7C09\u7C03\u7C01\u7BF8\u7BFD\u7C06\u7BF0\u7BF1\u7C10\u7C0A\u7CE8\u7E2D\u7E3C\u7E42\u7E33\u9848\u7E38\u7E2A\u7E49\u7E40\u7E47\u7E29\u7E4C\u7E30\u7E3B\u7E36\u7E44\u7E3A\u7F45\u7F7F\u7F7E\u7F7D\u7FF4\u7FF2\u802C\u81BB\u81C4\u81CC\u81CA\u81C5\u81C7\u81BC\u81E9\u825B\u825A\u825C\u8583\u8580\u858F\u85A7\u8595\u85A0\u858B\u85A3\u857B\u85A4\u859A\u859E"],["ee40","\u8577\u857C\u8589\u85A1\u857A\u8578\u8557\u858E\u8596\u8586\u858D\u8599\u859D\u8581\u85A2\u8582\u8588\u8585\u8579\u8576\u8598\u8590\u859F\u8668\u87BE\u87AA\u87AD\u87C5\u87B0\u87AC\u87B9\u87B5\u87BC\u87AE\u87C9\u87C3\u87C2\u87CC\u87B7\u87AF\u87C4\u87CA\u87B4\u87B6\u87BF\u87B8\u87BD\u87DE\u87B2\u8935\u8933\u893C\u893E\u8941\u8952\u8937\u8942\u89AD\u89AF\u89AE\u89F2\u89F3\u8B1E"],["eea1","\u8B18\u8B16\u8B11\u8B05\u8B0B\u8B22\u8B0F\u8B12\u8B15\u8B07\u8B0D\u8B08\u8B06\u8B1C\u8B13\u8B1A\u8C4F\u8C70\u8C72\u8C71\u8C6F\u8C95\u8C94\u8CF9\u8D6F\u8E4E\u8E4D\u8E53\u8E50\u8E4C\u8E47\u8F43\u8F40\u9085\u907E\u9138\u919A\u91A2\u919B\u9199\u919F\u91A1\u919D\u91A0\u93A1\u9383\u93AF\u9364\u9356\u9347\u937C\u9358\u935C\u9376\u9349\u9350\u9351\u9360\u936D\u938F\u934C\u936A\u9379\u9357\u9355\u9352\u934F\u9371\u9377\u937B\u9361\u935E\u9363\u9367\u9380\u934E\u9359\u95C7\u95C0\u95C9\u95C3\u95C5\u95B7\u96AE\u96B0\u96AC\u9720\u971F\u9718\u971D\u9719\u979A\u97A1\u979C"],["ef40","\u979E\u979D\u97D5\u97D4\u97F1\u9841\u9844\u984A\u9849\u9845\u9843\u9925\u992B\u992C\u992A\u9933\u9932\u992F\u992D\u9931\u9930\u9998\u99A3\u99A1\u9A02\u99FA\u99F4\u99F7\u99F9\u99F8\u99F6\u99FB\u99FD\u99FE\u99FC\u9A03\u9ABE\u9AFE\u9AFD\u9B01\u9AFC\u9B48\u9B9A\u9BA8\u9B9E\u9B9B\u9BA6\u9BA1\u9BA5\u9BA4\u9B86\u9BA2\u9BA0\u9BAF\u9D33\u9D41\u9D67\u9D36\u9D2E\u9D2F\u9D31\u9D38\u9D30"],["efa1","\u9D45\u9D42\u9D43\u9D3E\u9D37\u9D40\u9D3D\u7FF5\u9D2D\u9E8A\u9E89\u9E8D\u9EB0\u9EC8\u9EDA\u9EFB\u9EFF\u9F24\u9F23\u9F22\u9F54\u9FA0\u5131\u512D\u512E\u5698\u569C\u5697\u569A\u569D\u5699\u5970\u5B3C\u5C69\u5C6A\u5DC0\u5E6D\u5E6E\u61D8\u61DF\u61ED\u61EE\u61F1\u61EA\u61F0\u61EB\u61D6\u61E9\u64FF\u6504\u64FD\u64F8\u6501\u6503\u64FC\u6594\u65DB\u66DA\u66DB\u66D8\u6AC5\u6AB9\u6ABD\u6AE1\u6AC6\u6ABA\u6AB6\u6AB7\u6AC7\u6AB4\u6AAD\u6B5E\u6BC9\u6C0B\u7007\u700C\u700D\u7001\u7005\u7014\u700E\u6FFF\u7000\u6FFB\u7026\u6FFC\u6FF7\u700A\u7201\u71FF\u71F9\u7203\u71FD\u7376"],["f040","\u74B8\u74C0\u74B5\u74C1\u74BE\u74B6\u74BB\u74C2\u7514\u7513\u765C\u7664\u7659\u7650\u7653\u7657\u765A\u76A6\u76BD\u76EC\u77C2\u77BA\u78FF\u790C\u7913\u7914\u7909\u7910\u7912\u7911\u79AD\u79AC\u7A5F\u7C1C\u7C29\u7C19\u7C20\u7C1F\u7C2D\u7C1D\u7C26\u7C28\u7C22\u7C25\u7C30\u7E5C\u7E50\u7E56\u7E63\u7E58\u7E62\u7E5F\u7E51\u7E60\u7E57\u7E53\u7FB5\u7FB3\u7FF7\u7FF8\u8075\u81D1\u81D2"],["f0a1","\u81D0\u825F\u825E\u85B4\u85C6\u85C0\u85C3\u85C2\u85B3\u85B5\u85BD\u85C7\u85C4\u85BF\u85CB\u85CE\u85C8\u85C5\u85B1\u85B6\u85D2\u8624\u85B8\u85B7\u85BE\u8669\u87E7\u87E6\u87E2\u87DB\u87EB\u87EA\u87E5\u87DF\u87F3\u87E4\u87D4\u87DC\u87D3\u87ED\u87D8\u87E3\u87A4\u87D7\u87D9\u8801\u87F4\u87E8\u87DD\u8953\u894B\u894F\u894C\u8946\u8950\u8951\u8949\u8B2A\u8B27\u8B23\u8B33\u8B30\u8B35\u8B47\u8B2F\u8B3C\u8B3E\u8B31\u8B25\u8B37\u8B26\u8B36\u8B2E\u8B24\u8B3B\u8B3D\u8B3A\u8C42\u8C75\u8C99\u8C98\u8C97\u8CFE\u8D04\u8D02\u8D00\u8E5C\u8E62\u8E60\u8E57\u8E56\u8E5E\u8E65\u8E67"],["f140","\u8E5B\u8E5A\u8E61\u8E5D\u8E69\u8E54\u8F46\u8F47\u8F48\u8F4B\u9128\u913A\u913B\u913E\u91A8\u91A5\u91A7\u91AF\u91AA\u93B5\u938C\u9392\u93B7\u939B\u939D\u9389\u93A7\u938E\u93AA\u939E\u93A6\u9395\u9388\u9399\u939F\u938D\u93B1\u9391\u93B2\u93A4\u93A8\u93B4\u93A3\u93A5\u95D2\u95D3\u95D1\u96B3\u96D7\u96DA\u5DC2\u96DF\u96D8\u96DD\u9723\u9722\u9725\u97AC\u97AE\u97A8\u97AB\u97A4\u97AA"],["f1a1","\u97A2\u97A5\u97D7\u97D9\u97D6\u97D8\u97FA\u9850\u9851\u9852\u98B8\u9941\u993C\u993A\u9A0F\u9A0B\u9A09\u9A0D\u9A04\u9A11\u9A0A\u9A05\u9A07\u9A06\u9AC0\u9ADC\u9B08\u9B04\u9B05\u9B29\u9B35\u9B4A\u9B4C\u9B4B\u9BC7\u9BC6\u9BC3\u9BBF\u9BC1\u9BB5\u9BB8\u9BD3\u9BB6\u9BC4\u9BB9\u9BBD\u9D5C\u9D53\u9D4F\u9D4A\u9D5B\u9D4B\u9D59\u9D56\u9D4C\u9D57\u9D52\u9D54\u9D5F\u9D58\u9D5A\u9E8E\u9E8C\u9EDF\u9F01\u9F00\u9F16\u9F25\u9F2B\u9F2A\u9F29\u9F28\u9F4C\u9F55\u5134\u5135\u5296\u52F7\u53B4\u56AB\u56AD\u56A6\u56A7\u56AA\u56AC\u58DA\u58DD\u58DB\u5912\u5B3D\u5B3E\u5B3F\u5DC3\u5E70"],["f240","\u5FBF\u61FB\u6507\u6510\u650D\u6509\u650C\u650E\u6584\u65DE\u65DD\u66DE\u6AE7\u6AE0\u6ACC\u6AD1\u6AD9\u6ACB\u6ADF\u6ADC\u6AD0\u6AEB\u6ACF\u6ACD\u6ADE\u6B60\u6BB0\u6C0C\u7019\u7027\u7020\u7016\u702B\u7021\u7022\u7023\u7029\u7017\u7024\u701C\u702A\u720C\u720A\u7207\u7202\u7205\u72A5\u72A6\u72A4\u72A3\u72A1\u74CB\u74C5\u74B7\u74C3\u7516\u7660\u77C9\u77CA\u77C4\u77F1\u791D\u791B"],["f2a1","\u7921\u791C\u7917\u791E\u79B0\u7A67\u7A68\u7C33\u7C3C\u7C39\u7C2C\u7C3B\u7CEC\u7CEA\u7E76\u7E75\u7E78\u7E70\u7E77\u7E6F\u7E7A\u7E72\u7E74\u7E68\u7F4B\u7F4A\u7F83\u7F86\u7FB7\u7FFD\u7FFE\u8078\u81D7\u81D5\u8264\u8261\u8263\u85EB\u85F1\u85ED\u85D9\u85E1\u85E8\u85DA\u85D7\u85EC\u85F2\u85F8\u85D8\u85DF\u85E3\u85DC\u85D1\u85F0\u85E6\u85EF\u85DE\u85E2\u8800\u87FA\u8803\u87F6\u87F7\u8809\u880C\u880B\u8806\u87FC\u8808\u87FF\u880A\u8802\u8962\u895A\u895B\u8957\u8961\u895C\u8958\u895D\u8959\u8988\u89B7\u89B6\u89F6\u8B50\u8B48\u8B4A\u8B40\u8B53\u8B56\u8B54\u8B4B\u8B55"],["f340","\u8B51\u8B42\u8B52\u8B57\u8C43\u8C77\u8C76\u8C9A\u8D06\u8D07\u8D09\u8DAC\u8DAA\u8DAD\u8DAB\u8E6D\u8E78\u8E73\u8E6A\u8E6F\u8E7B\u8EC2\u8F52\u8F51\u8F4F\u8F50\u8F53\u8FB4\u9140\u913F\u91B0\u91AD\u93DE\u93C7\u93CF\u93C2\u93DA\u93D0\u93F9\u93EC\u93CC\u93D9\u93A9\u93E6\u93CA\u93D4\u93EE\u93E3\u93D5\u93C4\u93CE\u93C0\u93D2\u93E7\u957D\u95DA\u95DB\u96E1\u9729\u972B\u972C\u9728\u9726"],["f3a1","\u97B3\u97B7\u97B6\u97DD\u97DE\u97DF\u985C\u9859\u985D\u9857\u98BF\u98BD\u98BB\u98BE\u9948\u9947\u9943\u99A6\u99A7\u9A1A\u9A15\u9A25\u9A1D\u9A24\u9A1B\u9A22\u9A20\u9A27\u9A23\u9A1E\u9A1C\u9A14\u9AC2\u9B0B\u9B0A\u9B0E\u9B0C\u9B37\u9BEA\u9BEB\u9BE0\u9BDE\u9BE4\u9BE6\u9BE2\u9BF0\u9BD4\u9BD7\u9BEC\u9BDC\u9BD9\u9BE5\u9BD5\u9BE1\u9BDA\u9D77\u9D81\u9D8A\u9D84\u9D88\u9D71\u9D80\u9D78\u9D86\u9D8B\u9D8C\u9D7D\u9D6B\u9D74\u9D75\u9D70\u9D69\u9D85\u9D73\u9D7B\u9D82\u9D6F\u9D79\u9D7F\u9D87\u9D68\u9E94\u9E91\u9EC0\u9EFC\u9F2D\u9F40\u9F41\u9F4D\u9F56\u9F57\u9F58\u5337\u56B2"],["f440","\u56B5\u56B3\u58E3\u5B45\u5DC6\u5DC7\u5EEE\u5EEF\u5FC0\u5FC1\u61F9\u6517\u6516\u6515\u6513\u65DF\u66E8\u66E3\u66E4\u6AF3\u6AF0\u6AEA\u6AE8\u6AF9\u6AF1\u6AEE\u6AEF\u703C\u7035\u702F\u7037\u7034\u7031\u7042\u7038\u703F\u703A\u7039\u7040\u703B\u7033\u7041\u7213\u7214\u72A8\u737D\u737C\u74BA\u76AB\u76AA\u76BE\u76ED\u77CC\u77CE\u77CF\u77CD\u77F2\u7925\u7923\u7927\u7928\u7924\u7929"],["f4a1","\u79B2\u7A6E\u7A6C\u7A6D\u7AF7\u7C49\u7C48\u7C4A\u7C47\u7C45\u7CEE\u7E7B\u7E7E\u7E81\u7E80\u7FBA\u7FFF\u8079\u81DB\u81D9\u820B\u8268\u8269\u8622\u85FF\u8601\u85FE\u861B\u8600\u85F6\u8604\u8609\u8605\u860C\u85FD\u8819\u8810\u8811\u8817\u8813\u8816\u8963\u8966\u89B9\u89F7\u8B60\u8B6A\u8B5D\u8B68\u8B63\u8B65\u8B67\u8B6D\u8DAE\u8E86\u8E88\u8E84\u8F59\u8F56\u8F57\u8F55\u8F58\u8F5A\u908D\u9143\u9141\u91B7\u91B5\u91B2\u91B3\u940B\u9413\u93FB\u9420\u940F\u9414\u93FE\u9415\u9410\u9428\u9419\u940D\u93F5\u9400\u93F7\u9407\u940E\u9416\u9412\u93FA\u9409\u93F8\u940A\u93FF"],["f540","\u93FC\u940C\u93F6\u9411\u9406\u95DE\u95E0\u95DF\u972E\u972F\u97B9\u97BB\u97FD\u97FE\u9860\u9862\u9863\u985F\u98C1\u98C2\u9950\u994E\u9959\u994C\u994B\u9953\u9A32\u9A34\u9A31\u9A2C\u9A2A\u9A36\u9A29\u9A2E\u9A38\u9A2D\u9AC7\u9ACA\u9AC6\u9B10\u9B12\u9B11\u9C0B\u9C08\u9BF7\u9C05\u9C12\u9BF8\u9C40\u9C07\u9C0E\u9C06\u9C17\u9C14\u9C09\u9D9F\u9D99\u9DA4\u9D9D\u9D92\u9D98\u9D90\u9D9B"],["f5a1","\u9DA0\u9D94\u9D9C\u9DAA\u9D97\u9DA1\u9D9A\u9DA2\u9DA8\u9D9E\u9DA3\u9DBF\u9DA9\u9D96\u9DA6\u9DA7\u9E99\u9E9B\u9E9A\u9EE5\u9EE4\u9EE7\u9EE6\u9F30\u9F2E\u9F5B\u9F60\u9F5E\u9F5D\u9F59\u9F91\u513A\u5139\u5298\u5297\u56C3\u56BD\u56BE\u5B48\u5B47\u5DCB\u5DCF\u5EF1\u61FD\u651B\u6B02\u6AFC\u6B03\u6AF8\u6B00\u7043\u7044\u704A\u7048\u7049\u7045\u7046\u721D\u721A\u7219\u737E\u7517\u766A\u77D0\u792D\u7931\u792F\u7C54\u7C53\u7CF2\u7E8A\u7E87\u7E88\u7E8B\u7E86\u7E8D\u7F4D\u7FBB\u8030\u81DD\u8618\u862A\u8626\u861F\u8623\u861C\u8619\u8627\u862E\u8621\u8620\u8629\u861E\u8625"],["f640","\u8829\u881D\u881B\u8820\u8824\u881C\u882B\u884A\u896D\u8969\u896E\u896B\u89FA\u8B79\u8B78\u8B45\u8B7A\u8B7B\u8D10\u8D14\u8DAF\u8E8E\u8E8C\u8F5E\u8F5B\u8F5D\u9146\u9144\u9145\u91B9\u943F\u943B\u9436\u9429\u943D\u943C\u9430\u9439\u942A\u9437\u942C\u9440\u9431\u95E5\u95E4\u95E3\u9735\u973A\u97BF\u97E1\u9864\u98C9\u98C6\u98C0\u9958\u9956\u9A39\u9A3D\u9A46\u9A44\u9A42\u9A41\u9A3A"],["f6a1","\u9A3F\u9ACD\u9B15\u9B17\u9B18\u9B16\u9B3A\u9B52\u9C2B\u9C1D\u9C1C\u9C2C\u9C23\u9C28\u9C29\u9C24\u9C21\u9DB7\u9DB6\u9DBC\u9DC1\u9DC7\u9DCA\u9DCF\u9DBE\u9DC5\u9DC3\u9DBB\u9DB5\u9DCE\u9DB9\u9DBA\u9DAC\u9DC8\u9DB1\u9DAD\u9DCC\u9DB3\u9DCD\u9DB2\u9E7A\u9E9C\u9EEB\u9EEE\u9EED\u9F1B\u9F18\u9F1A\u9F31\u9F4E\u9F65\u9F64\u9F92\u4EB9\u56C6\u56C5\u56CB\u5971\u5B4B\u5B4C\u5DD5\u5DD1\u5EF2\u6521\u6520\u6526\u6522\u6B0B\u6B08\u6B09\u6C0D\u7055\u7056\u7057\u7052\u721E\u721F\u72A9\u737F\u74D8\u74D5\u74D9\u74D7\u766D\u76AD\u7935\u79B4\u7A70\u7A71\u7C57\u7C5C\u7C59\u7C5B\u7C5A"],["f740","\u7CF4\u7CF1\u7E91\u7F4F\u7F87\u81DE\u826B\u8634\u8635\u8633\u862C\u8632\u8636\u882C\u8828\u8826\u882A\u8825\u8971\u89BF\u89BE\u89FB\u8B7E\u8B84\u8B82\u8B86\u8B85\u8B7F\u8D15\u8E95\u8E94\u8E9A\u8E92\u8E90\u8E96\u8E97\u8F60\u8F62\u9147\u944C\u9450\u944A\u944B\u944F\u9447\u9445\u9448\u9449\u9446\u973F\u97E3\u986A\u9869\u98CB\u9954\u995B\u9A4E\u9A53\u9A54\u9A4C\u9A4F\u9A48\u9A4A"],["f7a1","\u9A49\u9A52\u9A50\u9AD0\u9B19\u9B2B\u9B3B\u9B56\u9B55\u9C46\u9C48\u9C3F\u9C44\u9C39\u9C33\u9C41\u9C3C\u9C37\u9C34\u9C32\u9C3D\u9C36\u9DDB\u9DD2\u9DDE\u9DDA\u9DCB\u9DD0\u9DDC\u9DD1\u9DDF\u9DE9\u9DD9\u9DD8\u9DD6\u9DF5\u9DD5\u9DDD\u9EB6\u9EF0\u9F35\u9F33\u9F32\u9F42\u9F6B\u9F95\u9FA2\u513D\u5299\u58E8\u58E7\u5972\u5B4D\u5DD8\u882F\u5F4F\u6201\u6203\u6204\u6529\u6525\u6596\u66EB\u6B11\u6B12\u6B0F\u6BCA\u705B\u705A\u7222\u7382\u7381\u7383\u7670\u77D4\u7C67\u7C66\u7E95\u826C\u863A\u8640\u8639\u863C\u8631\u863B\u863E\u8830\u8832\u882E\u8833\u8976\u8974\u8973\u89FE"],["f840","\u8B8C\u8B8E\u8B8B\u8B88\u8C45\u8D19\u8E98\u8F64\u8F63\u91BC\u9462\u9455\u945D\u9457\u945E\u97C4\u97C5\u9800\u9A56\u9A59\u9B1E\u9B1F\u9B20\u9C52\u9C58\u9C50\u9C4A\u9C4D\u9C4B\u9C55\u9C59\u9C4C\u9C4E\u9DFB\u9DF7\u9DEF\u9DE3\u9DEB\u9DF8\u9DE4\u9DF6\u9DE1\u9DEE\u9DE6\u9DF2\u9DF0\u9DE2\u9DEC\u9DF4\u9DF3\u9DE8\u9DED\u9EC2\u9ED0\u9EF2\u9EF3\u9F06\u9F1C\u9F38\u9F37\u9F36\u9F43\u9F4F"],["f8a1","\u9F71\u9F70\u9F6E\u9F6F\u56D3\u56CD\u5B4E\u5C6D\u652D\u66ED\u66EE\u6B13\u705F\u7061\u705D\u7060\u7223\u74DB\u74E5\u77D5\u7938\u79B7\u79B6\u7C6A\u7E97\u7F89\u826D\u8643\u8838\u8837\u8835\u884B\u8B94\u8B95\u8E9E\u8E9F\u8EA0\u8E9D\u91BE\u91BD\u91C2\u946B\u9468\u9469\u96E5\u9746\u9743\u9747\u97C7\u97E5\u9A5E\u9AD5\u9B59\u9C63\u9C67\u9C66\u9C62\u9C5E\u9C60\u9E02\u9DFE\u9E07\u9E03\u9E06\u9E05\u9E00\u9E01\u9E09\u9DFF\u9DFD\u9E04\u9EA0\u9F1E\u9F46\u9F74\u9F75\u9F76\u56D4\u652E\u65B8\u6B18\u6B19\u6B17\u6B1A\u7062\u7226\u72AA\u77D8\u77D9\u7939\u7C69\u7C6B\u7CF6\u7E9A"],["f940","\u7E98\u7E9B\u7E99\u81E0\u81E1\u8646\u8647\u8648\u8979\u897A\u897C\u897B\u89FF\u8B98\u8B99\u8EA5\u8EA4\u8EA3\u946E\u946D\u946F\u9471\u9473\u9749\u9872\u995F\u9C68\u9C6E\u9C6D\u9E0B\u9E0D\u9E10\u9E0F\u9E12\u9E11\u9EA1\u9EF5\u9F09\u9F47\u9F78\u9F7B\u9F7A\u9F79\u571E\u7066\u7C6F\u883C\u8DB2\u8EA6\u91C3\u9474\u9478\u9476\u9475\u9A60\u9C74\u9C73\u9C71\u9C75\u9E14\u9E13\u9EF6\u9F0A"],["f9a1","\u9FA4\u7068\u7065\u7CF7\u866A\u883E\u883D\u883F\u8B9E\u8C9C\u8EA9\u8EC9\u974B\u9873\u9874\u98CC\u9961\u99AB\u9A64\u9A66\u9A67\u9B24\u9E15\u9E17\u9F48\u6207\u6B1E\u7227\u864C\u8EA8\u9482\u9480\u9481\u9A69\u9A68\u9B2E\u9E19\u7229\u864B\u8B9F\u9483\u9C79\u9EB7\u7675\u9A6B\u9C7A\u9E1D\u7069\u706A\u9EA4\u9F7E\u9F49\u9F98\u7881\u92B9\u88CF\u58BB\u6052\u7CA7\u5AFA\u2554\u2566\u2557\u2560\u256C\u2563\u255A\u2569\u255D\u2552\u2564\u2555\u255E\u256A\u2561\u2558\u2567\u255B\u2553\u2565\u2556\u255F\u256B\u2562\u2559\u2568\u255C\u2551\u2550\u256D\u256E\u2570\u256F\u2593"]],require$$7=[["8740","\u43F0\u4C32\u4603\u45A6\u4578\u{27267}\u4D77\u45B3\u{27CB1}\u4CE2\u{27CC5}\u3B95\u4736\u4744\u4C47\u4C40\u{242BF}\u{23617}\u{27352}\u{26E8B}\u{270D2}\u4C57\u{2A351}\u474F\u45DA\u4C85\u{27C6C}\u4D07\u4AA4\u46A1\u{26B23}\u7225\u{25A54}\u{21A63}\u{23E06}\u{23F61}\u664D\u56FB"],["8767","\u7D95\u591D\u{28BB9}\u3DF4\u9734\u{27BEF}\u5BDB\u{21D5E}\u5AA4\u3625\u{29EB0}\u5AD1\u5BB7\u5CFC\u676E\u8593\u{29945}\u7461\u749D\u3875\u{21D53}\u{2369E}\u{26021}\u3EEC"],["87a1","\u{258DE}\u3AF5\u7AFC\u9F97\u{24161}\u{2890D}\u{231EA}\u{20A8A}\u{2325E}\u430A\u8484\u9F96\u942F\u4930\u8613\u5896\u974A\u9218\u79D0\u7A32\u6660\u6A29\u889D\u744C\u7BC5\u6782\u7A2C\u524F\u9046\u34E6\u73C4\u{25DB9}\u74C6\u9FC7\u57B3\u492F\u544C\u4131\u{2368E}\u5818\u7A72\u{27B65}\u8B8F\u46AE\u{26E88}\u4181\u{25D99}\u7BAE\u{224BC}\u9FC8\u{224C1}\u{224C9}\u{224CC}\u9FC9\u8504\u{235BB}\u40B4\u9FCA\u44E1\u{2ADFF}\u62C1\u706E\u9FCB"],["8840","\u31C0",4,"\u{2010C}\u31C5\u{200D1}\u{200CD}\u31C6\u31C7\u{200CB}\u{21FE8}\u31C8\u{200CA}\u31C9\u31CA\u31CB\u31CC\u{2010E}\u31CD\u31CE\u0100\xC1\u01CD\xC0\u0112\xC9\u011A\xC8\u014C\xD3\u01D1\xD2\u0FFF\xCA\u0304\u1EBE\u0FFF\xCA\u030C\u1EC0\xCA\u0101\xE1\u01CE\xE0\u0251\u0113\xE9\u011B\xE8\u012B\xED\u01D0\xEC\u014D\xF3\u01D2\xF2\u016B\xFA\u01D4\xF9\u01D6\u01D8\u01DA"],["88a1","\u01DC\xFC\u0FFF\xEA\u0304\u1EBF\u0FFF\xEA\u030C\u1EC1\xEA\u0261\u23DA\u23DB"],["8940","\u{2A3A9}\u{21145}"],["8943","\u650A"],["8946","\u4E3D\u6EDD\u9D4E\u91DF"],["894c","\u{27735}\u6491\u4F1A\u4F28\u4FA8\u5156\u5174\u519C\u51E4\u52A1\u52A8\u533B\u534E\u53D1\u53D8\u56E2\u58F0\u5904\u5907\u5932\u5934\u5B66\u5B9E\u5B9F\u5C9A\u5E86\u603B\u6589\u67FE\u6804\u6865\u6D4E\u70BC\u7535\u7EA4\u7EAC\u7EBA\u7EC7\u7ECF\u7EDF\u7F06\u7F37\u827A\u82CF\u836F\u89C6\u8BBE\u8BE2\u8F66\u8F67\u8F6E"],["89a1","\u7411\u7CFC\u7DCD\u6946\u7AC9\u5227"],["89ab","\u918C\u78B8\u915E\u80BC"],["89b0","\u8D0B\u80F6\u{209E7}"],["89b5","\u809F\u9EC7\u4CCD\u9DC9\u9E0C\u4C3E\u{29DF6}\u{2700E}\u9E0A\u{2A133}\u35C1"],["89c1","\u6E9A\u823E\u7519"],["89c5","\u4911\u9A6C\u9A8F\u9F99\u7987\u{2846C}\u{21DCA}\u{205D0}\u{22AE6}\u4E24\u4E81\u4E80\u4E87\u4EBF\u4EEB\u4F37\u344C\u4FBD\u3E48\u5003\u5088\u347D\u3493\u34A5\u5186\u5905\u51DB\u51FC\u5205\u4E89\u5279\u5290\u5327\u35C7\u53A9\u3551\u53B0\u3553\u53C2\u5423\u356D\u3572\u3681\u5493\u54A3\u54B4\u54B9\u54D0\u54EF\u5518\u5523\u5528\u3598\u553F\u35A5\u35BF\u55D7\u35C5"],["8a40","\u{27D84}\u5525"],["8a43","\u{20C42}\u{20D15}\u{2512B}\u5590\u{22CC6}\u39EC\u{20341}\u8E46\u{24DB8}\u{294E5}\u4053\u{280BE}\u777A\u{22C38}\u3A34\u47D5\u{2815D}\u{269F2}\u{24DEA}\u64DD\u{20D7C}\u{20FB4}\u{20CD5}\u{210F4}\u648D\u8E7E\u{20E96}\u{20C0B}\u{20F64}\u{22CA9}\u{28256}\u{244D3}"],["8a64","\u{20D46}\u{29A4D}\u{280E9}\u47F4\u{24EA7}\u{22CC2}\u9AB2\u3A67\u{295F4}\u3FED\u3506\u{252C7}\u{297D4}\u{278C8}\u{22D44}\u9D6E\u9815"],["8a76","\u43D9\u{260A5}\u64B4\u54E3\u{22D4C}\u{22BCA}\u{21077}\u39FB\u{2106F}"],["8aa1","\u{266DA}\u{26716}\u{279A0}\u64EA\u{25052}\u{20C43}\u8E68\u{221A1}\u{28B4C}\u{20731}"],["8aac","\u480B\u{201A9}\u3FFA\u5873\u{22D8D}"],["8ab2","\u{245C8}\u{204FC}\u{26097}\u{20F4C}\u{20D96}\u5579\u40BB\u43BA"],["8abb","\u4AB4\u{22A66}\u{2109D}\u81AA\u98F5\u{20D9C}\u6379\u39FE\u{22775}\u8DC0\u56A1\u647C\u3E43"],["8ac9","\u{2A601}\u{20E09}\u{22ACF}\u{22CC9}"],["8ace","\u{210C8}\u{239C2}\u3992\u3A06\u{2829B}\u3578\u{25E49}\u{220C7}\u5652\u{20F31}\u{22CB2}\u{29720}\u34BC\u6C3D\u{24E3B}"],["8adf","\u{27574}\u{22E8B}\u{22208}\u{2A65B}\u{28CCD}\u{20E7A}\u{20C34}\u{2681C}\u7F93\u{210CF}\u{22803}\u{22939}\u35FB\u{251E3}\u{20E8C}\u{20F8D}\u{20EAA}\u3F93\u{20F30}\u{20D47}\u{2114F}\u{20E4C}"],["8af6","\u{20EAB}\u{20BA9}\u{20D48}\u{210C0}\u{2113D}\u3FF9\u{22696}\u6432\u{20FAD}"],["8b40","\u{233F4}\u{27639}\u{22BCE}\u{20D7E}\u{20D7F}\u{22C51}\u{22C55}\u3A18\u{20E98}\u{210C7}\u{20F2E}\u{2A632}\u{26B50}\u{28CD2}\u{28D99}\u{28CCA}\u95AA\u54CC\u82C4\u55B9"],["8b55","\u{29EC3}\u9C26\u9AB6\u{2775E}\u{22DEE}\u7140\u816D\u80EC\u5C1C\u{26572}\u8134\u3797\u535F\u{280BD}\u91B6\u{20EFA}\u{20E0F}\u{20E77}\u{20EFB}\u35DD\u{24DEB}\u3609\u{20CD6}\u56AF\u{227B5}\u{210C9}\u{20E10}\u{20E78}\u{21078}\u{21148}\u{28207}\u{21455}\u{20E79}\u{24E50}\u{22DA4}\u5A54\u{2101D}\u{2101E}\u{210F5}\u{210F6}\u579C\u{20E11}"],["8ba1","\u{27694}\u{282CD}\u{20FB5}\u{20E7B}\u{2517E}\u3703\u{20FB6}\u{21180}\u{252D8}\u{2A2BD}\u{249DA}\u{2183A}\u{24177}\u{2827C}\u5899\u5268\u361A\u{2573D}\u7BB2\u5B68\u4800\u4B2C\u9F27\u49E7\u9C1F\u9B8D\u{25B74}\u{2313D}\u55FB\u35F2\u5689\u4E28\u5902\u{21BC1}\u{2F878}\u9751\u{20086}\u4E5B\u4EBB\u353E\u5C23\u5F51\u5FC4\u38FA\u624C\u6535\u6B7A\u6C35\u6C3A\u706C\u722B\u4E2C\u72AD\u{248E9}\u7F52\u793B\u7CF9\u7F53\u{2626A}\u34C1"],["8bde","\u{2634B}\u8002\u8080\u{26612}\u{26951}\u535D\u8864\u89C1\u{278B2}\u8BA0\u8D1D\u9485\u9578\u957F\u95E8\u{28E0F}\u97E6\u9875\u98CE\u98DE\u9963\u{29810}\u9C7C\u9E1F\u9EC4\u6B6F\uF907\u4E37\u{20087}\u961D\u6237\u94A2"],["8c40","\u503B\u6DFE\u{29C73}\u9FA6\u3DC9\u888F\u{2414E}\u7077\u5CF5\u4B20\u{251CD}\u3559\u{25D30}\u6122\u{28A32}\u8FA7\u91F6\u7191\u6719\u73BA\u{23281}\u{2A107}\u3C8B\u{21980}\u4B10\u78E4\u7402\u51AE\u{2870F}\u4009\u6A63\u{2A2BA}\u4223\u860F\u{20A6F}\u7A2A\u{29947}\u{28AEA}\u9755\u704D\u5324\u{2207E}\u93F4\u76D9\u{289E3}\u9FA7\u77DD\u4EA3\u4FF0\u50BC\u4E2F\u4F17\u9FA8\u5434\u7D8B\u5892\u58D0\u{21DB6}\u5E92\u5E99\u5FC2\u{22712}\u658B"],["8ca1","\u{233F9}\u6919\u6A43\u{23C63}\u6CFF"],["8ca7","\u7200\u{24505}\u738C\u3EDB\u{24A13}\u5B15\u74B9\u8B83\u{25CA4}\u{25695}\u7A93\u7BEC\u7CC3\u7E6C\u82F8\u8597\u9FA9\u8890\u9FAA\u8EB9\u9FAB\u8FCF\u855F\u99E0\u9221\u9FAC\u{28DB9}\u{2143F}\u4071\u42A2\u5A1A"],["8cc9","\u9868\u676B\u4276\u573D"],["8cce","\u85D6\u{2497B}\u82BF\u{2710D}\u4C81\u{26D74}\u5D7B\u{26B15}\u{26FBE}\u9FAD\u9FAE\u5B96\u9FAF\u66E7\u7E5B\u6E57\u79CA\u3D88\u44C3\u{23256}\u{22796}\u439A\u4536"],["8ce6","\u5CD5\u{23B1A}\u8AF9\u5C78\u3D12\u{23551}\u5D78\u9FB2\u7157\u4558\u{240EC}\u{21E23}\u4C77\u3978\u344A\u{201A4}\u{26C41}\u8ACC\u4FB4\u{20239}\u59BF\u816C\u9856\u{298FA}\u5F3B"],["8d40","\u{20B9F}"],["8d42","\u{221C1}\u{2896D}\u4102\u46BB\u{29079}\u3F07\u9FB3\u{2A1B5}\u40F8\u37D6\u46F7\u{26C46}\u417C\u{286B2}\u{273FF}\u456D\u38D4\u{2549A}\u4561\u451B\u4D89\u4C7B\u4D76\u45EA\u3FC8\u{24B0F}\u3661\u44DE\u44BD\u41ED\u5D3E\u5D48\u5D56\u3DFC\u380F\u5DA4\u5DB9\u3820\u3838\u5E42\u5EBD\u5F25\u5F83\u3908\u3914\u393F\u394D\u60D7\u613D\u5CE5\u3989\u61B7\u61B9\u61CF\u39B8\u622C\u6290\u62E5\u6318\u39F8\u56B1"],["8da1","\u3A03\u63E2\u63FB\u6407\u645A\u3A4B\u64C0\u5D15\u5621\u9F9F\u3A97\u6586\u3ABD\u65FF\u6653\u3AF2\u6692\u3B22\u6716\u3B42\u67A4\u6800\u3B58\u684A\u6884\u3B72\u3B71\u3B7B\u6909\u6943\u725C\u6964\u699F\u6985\u3BBC\u69D6\u3BDD\u6A65\u6A74\u6A71\u6A82\u3BEC\u6A99\u3BF2\u6AAB\u6AB5\u6AD4\u6AF6\u6B81\u6BC1\u6BEA\u6C75\u6CAA\u3CCB\u6D02\u6D06\u6D26\u6D81\u3CEF\u6DA4\u6DB1\u6E15\u6E18\u6E29\u6E86\u{289C0}\u6EBB\u6EE2\u6EDA\u9F7F\u6EE8\u6EE9\u6F24\u6F34\u3D46\u{23F41}\u6F81\u6FBE\u3D6A\u3D75\u71B7\u5C99\u3D8A\u702C\u3D91\u7050\u7054\u706F\u707F\u7089\u{20325}\u43C1\u35F1\u{20ED8}"],["8e40","\u{23ED7}\u57BE\u{26ED3}\u713E\u{257E0}\u364E\u69A2\u{28BE9}\u5B74\u7A49\u{258E1}\u{294D9}\u7A65\u7A7D\u{259AC}\u7ABB\u7AB0\u7AC2\u7AC3\u71D1\u{2648D}\u41CA\u7ADA\u7ADD\u7AEA\u41EF\u54B2\u{25C01}\u7B0B\u7B55\u7B29\u{2530E}\u{25CFE}\u7BA2\u7B6F\u839C\u{25BB4}\u{26C7F}\u7BD0\u8421\u7B92\u7BB8\u{25D20}\u3DAD\u{25C65}\u8492\u7BFA\u7C06\u7C35\u{25CC1}\u7C44\u7C83\u{24882}\u7CA6\u667D\u{24578}\u7CC9\u7CC7\u7CE6\u7C74\u7CF3\u7CF5\u7CCE"],["8ea1","\u7E67\u451D\u{26E44}\u7D5D\u{26ED6}\u748D\u7D89\u7DAB\u7135\u7DB3\u7DD2\u{24057}\u{26029}\u7DE4\u3D13\u7DF5\u{217F9}\u7DE5\u{2836D}\u7E1D\u{26121}\u{2615A}\u7E6E\u7E92\u432B\u946C\u7E27\u7F40\u7F41\u7F47\u7936\u{262D0}\u99E1\u7F97\u{26351}\u7FA3\u{21661}\u{20068}\u455C\u{23766}\u4503\u{2833A}\u7FFA\u{26489}\u8005\u8008\u801D\u8028\u802F\u{2A087}\u{26CC3}\u803B\u803C\u8061\u{22714}\u4989\u{26626}\u{23DE3}\u{266E8}\u6725\u80A7\u{28A48}\u8107\u811A\u58B0\u{226F6}\u6C7F\u{26498}\u{24FB8}\u64E7\u{2148A}\u8218\u{2185E}\u6A53\u{24A65}\u{24A95}\u447A\u8229\u{20B0D}\u{26A52}\u{23D7E}\u4FF9\u{214FD}\u84E2\u8362\u{26B0A}\u{249A7}\u{23530}\u{21773}\u{23DF8}\u82AA\u691B\u{2F994}\u41DB"],["8f40","\u854B\u82D0\u831A\u{20E16}\u{217B4}\u36C1\u{2317D}\u{2355A}\u827B\u82E2\u8318\u{23E8B}\u{26DA3}\u{26B05}\u{26B97}\u{235CE}\u3DBF\u831D\u55EC\u8385\u450B\u{26DA5}\u83AC\u83C1\u83D3\u347E\u{26ED4}\u6A57\u855A\u3496\u{26E42}\u{22EEF}\u8458\u{25BE4}\u8471\u3DD3\u44E4\u6AA7\u844A\u{23CB5}\u7958\u84A8\u{26B96}\u{26E77}\u{26E43}\u84DE\u840F\u8391\u44A0\u8493\u84E4\u{25C91}\u4240\u{25CC0}\u4543\u8534\u5AF2\u{26E99}\u4527\u8573\u4516\u67BF\u8616"],["8fa1","\u{28625}\u{2863B}\u85C1\u{27088}\u8602\u{21582}\u{270CD}\u{2F9B2}\u456A\u8628\u3648\u{218A2}\u53F7\u{2739A}\u867E\u8771\u{2A0F8}\u87EE\u{22C27}\u87B1\u87DA\u880F\u5661\u866C\u6856\u460F\u8845\u8846\u{275E0}\u{23DB9}\u{275E4}\u885E\u889C\u465B\u88B4\u88B5\u63C1\u88C5\u7777\u{2770F}\u8987\u898A\u89A6\u89A9\u89A7\u89BC\u{28A25}\u89E7\u{27924}\u{27ABD}\u8A9C\u7793\u91FE\u8A90\u{27A59}\u7AE9\u{27B3A}\u{23F8F}\u4713\u{27B38}\u717C\u8B0C\u8B1F\u{25430}\u{25565}\u8B3F\u8B4C\u8B4D\u8AA9\u{24A7A}\u8B90\u8B9B\u8AAF\u{216DF}\u4615\u884F\u8C9B\u{27D54}\u{27D8F}\u{2F9D4}\u3725\u{27D53}\u8CD6\u{27D98}\u{27DBD}\u8D12\u8D03\u{21910}\u8CDB\u705C\u8D11\u{24CC9}\u3ED0\u8D77"],["9040","\u8DA9\u{28002}\u{21014}\u{2498A}\u3B7C\u{281BC}\u{2710C}\u7AE7\u8EAD\u8EB6\u8EC3\u92D4\u8F19\u8F2D\u{28365}\u{28412}\u8FA5\u9303\u{2A29F}\u{20A50}\u8FB3\u492A\u{289DE}\u{2853D}\u{23DBB}\u5EF8\u{23262}\u8FF9\u{2A014}\u{286BC}\u{28501}\u{22325}\u3980\u{26ED7}\u9037\u{2853C}\u{27ABE}\u9061\u{2856C}\u{2860B}\u90A8\u{28713}\u90C4\u{286E6}\u90AE\u90FD\u9167\u3AF0\u91A9\u91C4\u7CAC\u{28933}\u{21E89}\u920E\u6C9F\u9241\u9262\u{255B9}\u92B9\u{28AC6}\u{23C9B}\u{28B0C}\u{255DB}"],["90a1","\u{20D31}\u932C\u936B\u{28AE1}\u{28BEB}\u708F\u5AC3\u{28AE2}\u{28AE5}\u4965\u9244\u{28BEC}\u{28C39}\u{28BFF}\u9373\u945B\u8EBC\u9585\u95A6\u9426\u95A0\u6FF6\u42B9\u{2267A}\u{286D8}\u{2127C}\u{23E2E}\u49DF\u6C1C\u967B\u9696\u416C\u96A3\u{26ED5}\u61DA\u96B6\u78F5\u{28AE0}\u96BD\u53CC\u49A1\u{26CB8}\u{20274}\u{26410}\u{290AF}\u{290E5}\u{24AD1}\u{21915}\u{2330A}\u9731\u8642\u9736\u4A0F\u453D\u4585\u{24AE9}\u7075\u5B41\u971B\u975C\u{291D5}\u9757\u5B4A\u{291EB}\u975F\u9425\u50D0\u{230B7}\u{230BC}\u9789\u979F\u97B1\u97BE\u97C0\u97D2\u97E0\u{2546C}\u97EE\u741C\u{29433}\u97FF\u97F5\u{2941D}\u{2797A}\u4AD1\u9834\u9833\u984B\u9866\u3B0E\u{27175}\u3D51\u{20630}\u{2415C}"],["9140","\u{25706}\u98CA\u98B7\u98C8\u98C7\u4AFF\u{26D27}\u{216D3}\u55B0\u98E1\u98E6\u98EC\u9378\u9939\u{24A29}\u4B72\u{29857}\u{29905}\u99F5\u9A0C\u9A3B\u9A10\u9A58\u{25725}\u36C4\u{290B1}\u{29BD5}\u9AE0\u9AE2\u{29B05}\u9AF4\u4C0E\u9B14\u9B2D\u{28600}\u5034\u9B34\u{269A8}\u38C3\u{2307D}\u9B50\u9B40\u{29D3E}\u5A45\u{21863}\u9B8E\u{2424B}\u9C02\u9BFF\u9C0C\u{29E68}\u9DD4\u{29FB7}\u{2A192}\u{2A1AB}\u{2A0E1}\u{2A123}\u{2A1DF}\u9D7E\u9D83\u{2A134}\u9E0E\u6888"],["91a1","\u9DC4\u{2215B}\u{2A193}\u{2A220}\u{2193B}\u{2A233}\u9D39\u{2A0B9}\u{2A2B4}\u9E90\u9E95\u9E9E\u9EA2\u4D34\u9EAA\u9EAF\u{24364}\u9EC1\u3B60\u39E5\u3D1D\u4F32\u37BE\u{28C2B}\u9F02\u9F08\u4B96\u9424\u{26DA2}\u9F17\u9F16\u9F39\u569F\u568A\u9F45\u99B8\u{2908B}\u97F2\u847F\u9F62\u9F69\u7ADC\u9F8E\u7216\u4BBE\u{24975}\u{249BB}\u7177\u{249F8}\u{24348}\u{24A51}\u739E\u{28BDA}\u{218FA}\u799F\u{2897E}\u{28E36}\u9369\u93F3\u{28A44}\u92EC\u9381\u93CB\u{2896C}\u{244B9}\u7217\u3EEB\u7772\u7A43\u70D0\u{24473}\u{243F8}\u717E\u{217EF}\u70A3\u{218BE}\u{23599}\u3EC7\u{21885}\u{2542F}\u{217F8}\u3722\u{216FB}\u{21839}\u36E1\u{21774}\u{218D1}\u{25F4B}\u3723\u{216C0}\u575B\u{24A25}\u{213FE}\u{212A8}"],["9240","\u{213C6}\u{214B6}\u8503\u{236A6}\u8503\u8455\u{24994}\u{27165}\u{23E31}\u{2555C}\u{23EFB}\u{27052}\u44F4\u{236EE}\u{2999D}\u{26F26}\u67F9\u3733\u3C15\u3DE7\u586C\u{21922}\u6810\u4057\u{2373F}\u{240E1}\u{2408B}\u{2410F}\u{26C21}\u54CB\u569E\u{266B1}\u5692\u{20FDF}\u{20BA8}\u{20E0D}\u93C6\u{28B13}\u939C\u4EF8\u512B\u3819\u{24436}\u4EBC\u{20465}\u{2037F}\u4F4B\u4F8A\u{25651}\u5A68\u{201AB}\u{203CB}\u3999\u{2030A}\u{20414}\u3435\u4F29\u{202C0}\u{28EB3}\u{20275}\u8ADA\u{2020C}\u4E98"],["92a1","\u50CD\u510D\u4FA2\u4F03\u{24A0E}\u{23E8A}\u4F42\u502E\u506C\u5081\u4FCC\u4FE5\u5058\u50FC\u5159\u515B\u515D\u515E\u6E76\u{23595}\u{23E39}\u{23EBF}\u6D72\u{21884}\u{23E89}\u51A8\u51C3\u{205E0}\u44DD\u{204A3}\u{20492}\u{20491}\u8D7A\u{28A9C}\u{2070E}\u5259\u52A4\u{20873}\u52E1\u936E\u467A\u718C\u{2438C}\u{20C20}\u{249AC}\u{210E4}\u69D1\u{20E1D}\u7479\u3EDE\u7499\u7414\u7456\u7398\u4B8E\u{24ABC}\u{2408D}\u53D0\u3584\u720F\u{240C9}\u55B4\u{20345}\u54CD\u{20BC6}\u571D\u925D\u96F4\u9366\u57DD\u578D\u577F\u363E\u58CB\u5A99\u{28A46}\u{216FA}\u{2176F}\u{21710}\u5A2C\u59B8\u928F\u5A7E\u5ACF\u5A12\u{25946}\u{219F3}\u{21861}\u{24295}\u36F5\u6D05\u7443\u5A21\u{25E83}"],["9340","\u5A81\u{28BD7}\u{20413}\u93E0\u748C\u{21303}\u7105\u4972\u9408\u{289FB}\u93BD\u37A0\u5C1E\u5C9E\u5E5E\u5E48\u{21996}\u{2197C}\u{23AEE}\u5ECD\u5B4F\u{21903}\u{21904}\u3701\u{218A0}\u36DD\u{216FE}\u36D3\u812A\u{28A47}\u{21DBA}\u{23472}\u{289A8}\u5F0C\u5F0E\u{21927}\u{217AB}\u5A6B\u{2173B}\u5B44\u8614\u{275FD}\u8860\u607E\u{22860}\u{2262B}\u5FDB\u3EB8\u{225AF}\u{225BE}\u{29088}\u{26F73}\u61C0\u{2003E}\u{20046}\u{2261B}\u6199\u6198\u6075\u{22C9B}\u{22D07}\u{246D4}\u{2914D}"],["93a1","\u6471\u{24665}\u{22B6A}\u3A29\u{22B22}\u{23450}\u{298EA}\u{22E78}\u6337\u{2A45B}\u64B6\u6331\u63D1\u{249E3}\u{22D67}\u62A4\u{22CA1}\u643B\u656B\u6972\u3BF4\u{2308E}\u{232AD}\u{24989}\u{232AB}\u550D\u{232E0}\u{218D9}\u{2943F}\u66CE\u{23289}\u{231B3}\u3AE0\u4190\u{25584}\u{28B22}\u{2558F}\u{216FC}\u{2555B}\u{25425}\u78EE\u{23103}\u{2182A}\u{23234}\u3464\u{2320F}\u{23182}\u{242C9}\u668E\u{26D24}\u666B\u4B93\u6630\u{27870}\u{21DEB}\u6663\u{232D2}\u{232E1}\u661E\u{25872}\u38D1\u{2383A}\u{237BC}\u3B99\u{237A2}\u{233FE}\u74D0\u3B96\u678F\u{2462A}\u68B6\u681E\u3BC4\u6ABE\u3863\u{237D5}\u{24487}\u6A33\u6A52\u6AC9\u6B05\u{21912}\u6511\u6898\u6A4C\u3BD7\u6A7A\u6B57\u{23FC0}\u{23C9A}\u93A0\u92F2\u{28BEA}\u{28ACB}"],["9440","\u9289\u{2801E}\u{289DC}\u9467\u6DA5\u6F0B\u{249EC}\u6D67\u{23F7F}\u3D8F\u6E04\u{2403C}\u5A3D\u6E0A\u5847\u6D24\u7842\u713B\u{2431A}\u{24276}\u70F1\u7250\u7287\u7294\u{2478F}\u{24725}\u5179\u{24AA4}\u{205EB}\u747A\u{23EF8}\u{2365F}\u{24A4A}\u{24917}\u{25FE1}\u3F06\u3EB1\u{24ADF}\u{28C23}\u{23F35}\u60A7\u3EF3\u74CC\u743C\u9387\u7437\u449F\u{26DEA}\u4551\u7583\u3F63\u{24CD9}\u{24D06}\u3F58\u7555\u7673\u{2A5C6}\u3B19\u7468\u{28ACC}\u{249AB}\u{2498E}\u3AFB"],["94a1","\u3DCD\u{24A4E}\u3EFF\u{249C5}\u{248F3}\u91FA\u5732\u9342\u{28AE3}\u{21864}\u50DF\u{25221}\u{251E7}\u7778\u{23232}\u770E\u770F\u777B\u{24697}\u{23781}\u3A5E\u{248F0}\u7438\u749B\u3EBF\u{24ABA}\u{24AC7}\u40C8\u{24A96}\u{261AE}\u9307\u{25581}\u781E\u788D\u7888\u78D2\u73D0\u7959\u{27741}\u{256E3}\u410E\u799B\u8496\u79A5\u6A2D\u{23EFA}\u7A3A\u79F4\u416E\u{216E6}\u4132\u9235\u79F1\u{20D4C}\u{2498C}\u{20299}\u{23DBA}\u{2176E}\u3597\u556B\u3570\u36AA\u{201D4}\u{20C0D}\u7AE2\u5A59\u{226F5}\u{25AAF}\u{25A9C}\u5A0D\u{2025B}\u78F0\u5A2A\u{25BC6}\u7AFE\u41F9\u7C5D\u7C6D\u4211\u{25BB3}\u{25EBC}\u{25EA6}\u7CCD\u{249F9}\u{217B0}\u7C8E\u7C7C\u7CAE\u6AB2\u7DDC\u7E07\u7DD3\u7F4E\u{26261}"],["9540","\u{2615C}\u{27B48}\u7D97\u{25E82}\u426A\u{26B75}\u{20916}\u67D6\u{2004E}\u{235CF}\u57C4\u{26412}\u{263F8}\u{24962}\u7FDD\u7B27\u{2082C}\u{25AE9}\u{25D43}\u7B0C\u{25E0E}\u99E6\u8645\u9A63\u6A1C\u{2343F}\u39E2\u{249F7}\u{265AD}\u9A1F\u{265A0}\u8480\u{27127}\u{26CD1}\u44EA\u8137\u4402\u80C6\u8109\u8142\u{267B4}\u98C3\u{26A42}\u8262\u8265\u{26A51}\u8453\u{26DA7}\u8610\u{2721B}\u5A86\u417F\u{21840}\u5B2B\u{218A1}\u5AE4\u{218D8}\u86A0\u{2F9BC}\u{23D8F}\u882D\u{27422}\u5A02"],["95a1","\u886E\u4F45\u8887\u88BF\u88E6\u8965\u894D\u{25683}\u8954\u{27785}\u{27784}\u{28BF5}\u{28BD9}\u{28B9C}\u{289F9}\u3EAD\u84A3\u46F5\u46CF\u37F2\u8A3D\u8A1C\u{29448}\u5F4D\u922B\u{24284}\u65D4\u7129\u70C4\u{21845}\u9D6D\u8C9F\u8CE9\u{27DDC}\u599A\u77C3\u59F0\u436E\u36D4\u8E2A\u8EA7\u{24C09}\u8F30\u8F4A\u42F4\u6C58\u6FBB\u{22321}\u489B\u6F79\u6E8B\u{217DA}\u9BE9\u36B5\u{2492F}\u90BB\u9097\u5571\u4906\u91BB\u9404\u{28A4B}\u4062\u{28AFC}\u9427\u{28C1D}\u{28C3B}\u84E5\u8A2B\u9599\u95A7\u9597\u9596\u{28D34}\u7445\u3EC2\u{248FF}\u{24A42}\u{243EA}\u3EE7\u{23225}\u968F\u{28EE7}\u{28E66}\u{28E65}\u3ECC\u{249ED}\u{24A78}\u{23FEE}\u7412\u746B\u3EFC\u9741\u{290B0}"],["9640","\u6847\u4A1D\u{29093}\u{257DF}\u975D\u9368\u{28989}\u{28C26}\u{28B2F}\u{263BE}\u92BA\u5B11\u8B69\u493C\u73F9\u{2421B}\u979B\u9771\u9938\u{20F26}\u5DC1\u{28BC5}\u{24AB2}\u981F\u{294DA}\u92F6\u{295D7}\u91E5\u44C0\u{28B50}\u{24A67}\u{28B64}\u98DC\u{28A45}\u3F00\u922A\u4925\u8414\u993B\u994D\u{27B06}\u3DFD\u999B\u4B6F\u99AA\u9A5C\u{28B65}\u{258C8}\u6A8F\u9A21\u5AFE\u9A2F\u{298F1}\u4B90\u{29948}\u99BC\u4BBD\u4B97\u937D\u5872\u{21302}\u5822\u{249B8}"],["96a1","\u{214E8}\u7844\u{2271F}\u{23DB8}\u68C5\u3D7D\u9458\u3927\u6150\u{22781}\u{2296B}\u6107\u9C4F\u9C53\u9C7B\u9C35\u9C10\u9B7F\u9BCF\u{29E2D}\u9B9F\u{2A1F5}\u{2A0FE}\u9D21\u4CAE\u{24104}\u9E18\u4CB0\u9D0C\u{2A1B4}\u{2A0ED}\u{2A0F3}\u{2992F}\u9DA5\u84BD\u{26E12}\u{26FDF}\u{26B82}\u85FC\u4533\u{26DA4}\u{26E84}\u{26DF0}\u8420\u85EE\u{26E00}\u{237D7}\u{26064}\u79E2\u{2359C}\u{23640}\u492D\u{249DE}\u3D62\u93DB\u92BE\u9348\u{202BF}\u78B9\u9277\u944D\u4FE4\u3440\u9064\u{2555D}\u783D\u7854\u78B6\u784B\u{21757}\u{231C9}\u{24941}\u369A\u4F72\u6FDA\u6FD9\u701E\u701E\u5414\u{241B5}\u57BB\u58F3\u578A\u9D16\u57D7\u7134\u34AF\u{241AC}\u71EB\u{26C40}\u{24F97}\u5B28\u{217B5}\u{28A49}"],["9740","\u610C\u5ACE\u5A0B\u42BC\u{24488}\u372C\u4B7B\u{289FC}\u93BB\u93B8\u{218D6}\u{20F1D}\u8472\u{26CC0}\u{21413}\u{242FA}\u{22C26}\u{243C1}\u5994\u{23DB7}\u{26741}\u7DA8\u{2615B}\u{260A4}\u{249B9}\u{2498B}\u{289FA}\u92E5\u73E2\u3EE9\u74B4\u{28B63}\u{2189F}\u3EE1\u{24AB3}\u6AD8\u73F3\u73FB\u3ED6\u{24A3E}\u{24A94}\u{217D9}\u{24A66}\u{203A7}\u{21424}\u{249E5}\u7448\u{24916}\u70A5\u{24976}\u9284\u73E6\u935F\u{204FE}\u9331\u{28ACE}\u{28A16}\u9386\u{28BE7}\u{255D5}\u4935\u{28A82}\u716B"],["97a1","\u{24943}\u{20CFF}\u56A4\u{2061A}\u{20BEB}\u{20CB8}\u5502\u79C4\u{217FA}\u7DFE\u{216C2}\u{24A50}\u{21852}\u452E\u9401\u370A\u{28AC0}\u{249AD}\u59B0\u{218BF}\u{21883}\u{27484}\u5AA1\u36E2\u{23D5B}\u36B0\u925F\u5A79\u{28A81}\u{21862}\u9374\u3CCD\u{20AB4}\u4A96\u398A\u50F4\u3D69\u3D4C\u{2139C}\u7175\u42FB\u{28218}\u6E0F\u{290E4}\u44EB\u6D57\u{27E4F}\u7067\u6CAF\u3CD6\u{23FED}\u{23E2D}\u6E02\u6F0C\u3D6F\u{203F5}\u7551\u36BC\u34C8\u4680\u3EDA\u4871\u59C4\u926E\u493E\u8F41\u{28C1C}\u{26BC0}\u5812\u57C8\u36D6\u{21452}\u70FE\u{24362}\u{24A71}\u{22FE3}\u{212B0}\u{223BD}\u68B9\u6967\u{21398}\u{234E5}\u{27BF4}\u{236DF}\u{28A83}\u{237D6}\u{233FA}\u{24C9F}\u6A1A\u{236AD}\u{26CB7}\u843E\u44DF\u44CE"],["9840","\u{26D26}\u{26D51}\u{26C82}\u{26FDE}\u6F17\u{27109}\u833D\u{2173A}\u83ED\u{26C80}\u{27053}\u{217DB}\u5989\u5A82\u{217B3}\u5A61\u5A71\u{21905}\u{241FC}\u372D\u59EF\u{2173C}\u36C7\u718E\u9390\u669A\u{242A5}\u5A6E\u5A2B\u{24293}\u6A2B\u{23EF9}\u{27736}\u{2445B}\u{242CA}\u711D\u{24259}\u{289E1}\u4FB0\u{26D28}\u5CC2\u{244CE}\u{27E4D}\u{243BD}\u6A0C\u{24256}\u{21304}\u70A6\u7133\u{243E9}\u3DA5\u6CDF\u{2F825}\u{24A4F}\u7E65\u59EB\u5D2F\u3DF3\u5F5C\u{24A5D}\u{217DF}\u7DA4\u8426"],["98a1","\u5485\u{23AFA}\u{23300}\u{20214}\u577E\u{208D5}\u{20619}\u3FE5\u{21F9E}\u{2A2B6}\u7003\u{2915B}\u5D70\u738F\u7CD3\u{28A59}\u{29420}\u4FC8\u7FE7\u72CD\u7310\u{27AF4}\u7338\u7339\u{256F6}\u7341\u7348\u3EA9\u{27B18}\u906C\u71F5\u{248F2}\u73E1\u81F6\u3ECA\u770C\u3ED1\u6CA2\u56FD\u7419\u741E\u741F\u3EE2\u3EF0\u3EF4\u3EFA\u74D3\u3F0E\u3F53\u7542\u756D\u7572\u758D\u3F7C\u75C8\u75DC\u3FC0\u764D\u3FD7\u7674\u3FDC\u767A\u{24F5C}\u7188\u5623\u8980\u5869\u401D\u7743\u4039\u6761\u4045\u35DB\u7798\u406A\u406F\u5C5E\u77BE\u77CB\u58F2\u7818\u70B9\u781C\u40A8\u7839\u7847\u7851\u7866\u8448\u{25535}\u7933\u6803\u7932\u4103"],["9940","\u4109\u7991\u7999\u8FBB\u7A06\u8FBC\u4167\u7A91\u41B2\u7ABC\u8279\u41C4\u7ACF\u7ADB\u41CF\u4E21\u7B62\u7B6C\u7B7B\u7C12\u7C1B\u4260\u427A\u7C7B\u7C9C\u428C\u7CB8\u4294\u7CED\u8F93\u70C0\u{20CCF}\u7DCF\u7DD4\u7DD0\u7DFD\u7FAE\u7FB4\u729F\u4397\u8020\u8025\u7B39\u802E\u8031\u8054\u3DCC\u57B4\u70A0\u80B7\u80E9\u43ED\u810C\u732A\u810E\u8112\u7560\u8114\u4401\u3B39\u8156\u8159\u815A"],["99a1","\u4413\u583A\u817C\u8184\u4425\u8193\u442D\u81A5\u57EF\u81C1\u81E4\u8254\u448F\u82A6\u8276\u82CA\u82D8\u82FF\u44B0\u8357\u9669\u698A\u8405\u70F5\u8464\u60E3\u8488\u4504\u84BE\u84E1\u84F8\u8510\u8538\u8552\u453B\u856F\u8570\u85E0\u4577\u8672\u8692\u86B2\u86EF\u9645\u878B\u4606\u4617\u88AE\u88FF\u8924\u8947\u8991\u{27967}\u8A29\u8A38\u8A94\u8AB4\u8C51\u8CD4\u8CF2\u8D1C\u4798\u585F\u8DC3\u47ED\u4EEE\u8E3A\u55D8\u5754\u8E71\u55F5\u8EB0\u4837\u8ECE\u8EE2\u8EE4\u8EED\u8EF2\u8FB7\u8FC1\u8FCA\u8FCC\u9033\u99C4\u48AD\u98E0\u9213\u491E\u9228\u9258\u926B\u92B1\u92AE\u92BF"],["9a40","\u92E3\u92EB\u92F3\u92F4\u92FD\u9343\u9384\u93AD\u4945\u4951\u9EBF\u9417\u5301\u941D\u942D\u943E\u496A\u9454\u9479\u952D\u95A2\u49A7\u95F4\u9633\u49E5\u67A0\u4A24\u9740\u4A35\u97B2\u97C2\u5654\u4AE4\u60E8\u98B9\u4B19\u98F1\u5844\u990E\u9919\u51B4\u991C\u9937\u9942\u995D\u9962\u4B70\u99C5\u4B9D\u9A3C\u9B0F\u7A83\u9B69\u9B81\u9BDD\u9BF1\u9BF4\u4C6D\u9C20\u376F\u{21BC2}\u9D49\u9C3A"],["9aa1","\u9EFE\u5650\u9D93\u9DBD\u9DC0\u9DFC\u94F6\u8FB6\u9E7B\u9EAC\u9EB1\u9EBD\u9EC6\u94DC\u9EE2\u9EF1\u9EF8\u7AC8\u9F44\u{20094}\u{202B7}\u{203A0}\u691A\u94C3\u59AC\u{204D7}\u5840\u94C1\u37B9\u{205D5}\u{20615}\u{20676}\u{216BA}\u5757\u7173\u{20AC2}\u{20ACD}\u{20BBF}\u546A\u{2F83B}\u{20BCB}\u549E\u{20BFB}\u{20C3B}\u{20C53}\u{20C65}\u{20C7C}\u60E7\u{20C8D}\u567A\u{20CB5}\u{20CDD}\u{20CED}\u{20D6F}\u{20DB2}\u{20DC8}\u6955\u9C2F\u87A5\u{20E04}\u{20E0E}\u{20ED7}\u{20F90}\u{20F2D}\u{20E73}\u5C20\u{20FBC}\u5E0B\u{2105C}\u{2104F}\u{21076}\u671E\u{2107B}\u{21088}\u{21096}\u3647\u{210BF}\u{210D3}\u{2112F}\u{2113B}\u5364\u84AD\u{212E3}\u{21375}\u{21336}\u8B81\u{21577}\u{21619}\u{217C3}\u{217C7}\u4E78\u70BB\u{2182D}\u{2196A}"],["9b40","\u{21A2D}\u{21A45}\u{21C2A}\u{21C70}\u{21CAC}\u{21EC8}\u62C3\u{21ED5}\u{21F15}\u7198\u6855\u{22045}\u69E9\u36C8\u{2227C}\u{223D7}\u{223FA}\u{2272A}\u{22871}\u{2294F}\u82FD\u{22967}\u{22993}\u{22AD5}\u89A5\u{22AE8}\u8FA0\u{22B0E}\u97B8\u{22B3F}\u9847\u9ABD\u{22C4C}"],["9b62","\u{22C88}\u{22CB7}\u{25BE8}\u{22D08}\u{22D12}\u{22DB7}\u{22D95}\u{22E42}\u{22F74}\u{22FCC}\u{23033}\u{23066}\u{2331F}\u{233DE}\u5FB1\u6648\u66BF\u{27A79}\u{23567}\u{235F3}\u7201\u{249BA}\u77D7\u{2361A}\u{23716}\u7E87\u{20346}\u58B5\u670E"],["9ba1","\u6918\u{23AA7}\u{27657}\u{25FE2}\u{23E11}\u{23EB9}\u{275FE}\u{2209A}\u48D0\u4AB8\u{24119}\u{28A9A}\u{242EE}\u{2430D}\u{2403B}\u{24334}\u{24396}\u{24A45}\u{205CA}\u51D2\u{20611}\u599F\u{21EA8}\u3BBE\u{23CFF}\u{24404}\u{244D6}\u5788\u{24674}\u399B\u{2472F}\u{285E8}\u{299C9}\u3762\u{221C3}\u8B5E\u{28B4E}\u99D6\u{24812}\u{248FB}\u{24A15}\u7209\u{24AC0}\u{20C78}\u5965\u{24EA5}\u{24F86}\u{20779}\u8EDA\u{2502C}\u528F\u573F\u7171\u{25299}\u{25419}\u{23F4A}\u{24AA7}\u55BC\u{25446}\u{2546E}\u{26B52}\u91D4\u3473\u{2553F}\u{27632}\u{2555E}\u4718\u{25562}\u{25566}\u{257C7}\u{2493F}\u{2585D}\u5066\u34FB\u{233CC}\u60DE\u{25903}\u477C\u{28948}\u{25AAE}\u{25B89}\u{25C06}\u{21D90}\u57A1\u7151\u6FB6\u{26102}\u{27C12}\u9056\u{261B2}\u{24F9A}\u8B62\u{26402}\u{2644A}"],["9c40","\u5D5B\u{26BF7}\u8F36\u{26484}\u{2191C}\u8AEA\u{249F6}\u{26488}\u{23FEF}\u{26512}\u4BC0\u{265BF}\u{266B5}\u{2271B}\u9465\u{257E1}\u6195\u5A27\u{2F8CD}\u4FBB\u56B9\u{24521}\u{266FC}\u4E6A\u{24934}\u9656\u6D8F\u{26CBD}\u3618\u8977\u{26799}\u{2686E}\u{26411}\u{2685E}\u71DF\u{268C7}\u7B42\u{290C0}\u{20A11}\u{26926}\u9104\u{26939}\u7A45\u9DF0\u{269FA}\u9A26\u{26A2D}\u365F\u{26469}\u{20021}\u7983\u{26A34}\u{26B5B}\u5D2C\u{23519}\u83CF\u{26B9D}\u46D0\u{26CA4}\u753B\u8865\u{26DAE}\u58B6"],["9ca1","\u371C\u{2258D}\u{2704B}\u{271CD}\u3C54\u{27280}\u{27285}\u9281\u{2217A}\u{2728B}\u9330\u{272E6}\u{249D0}\u6C39\u949F\u{27450}\u{20EF8}\u8827\u88F5\u{22926}\u{28473}\u{217B1}\u6EB8\u{24A2A}\u{21820}\u39A4\u36B9\u5C10\u79E3\u453F\u66B6\u{29CAD}\u{298A4}\u8943\u{277CC}\u{27858}\u56D6\u40DF\u{2160A}\u39A1\u{2372F}\u{280E8}\u{213C5}\u71AD\u8366\u{279DD}\u{291A8}\u5A67\u4CB7\u{270AF}\u{289AB}\u{279FD}\u{27A0A}\u{27B0B}\u{27D66}\u{2417A}\u7B43\u797E\u{28009}\u6FB5\u{2A2DF}\u6A03\u{28318}\u53A2\u{26E07}\u93BF\u6836\u975D\u{2816F}\u{28023}\u{269B5}\u{213ED}\u{2322F}\u{28048}\u5D85\u{28C30}\u{28083}\u5715\u9823\u{28949}\u5DAB\u{24988}\u65BE\u69D5\u53D2\u{24AA5}\u{23F81}\u3C11\u6736\u{28090}\u{280F4}\u{2812E}\u{21FA1}\u{2814F}"],["9d40","\u{28189}\u{281AF}\u{2821A}\u{28306}\u{2832F}\u{2838A}\u35CA\u{28468}\u{286AA}\u48FA\u63E6\u{28956}\u7808\u9255\u{289B8}\u43F2\u{289E7}\u43DF\u{289E8}\u{28B46}\u{28BD4}\u59F8\u{28C09}\u8F0B\u{28FC5}\u{290EC}\u7B51\u{29110}\u{2913C}\u3DF7\u{2915E}\u{24ACA}\u8FD0\u728F\u568B\u{294E7}\u{295E9}\u{295B0}\u{295B8}\u{29732}\u{298D1}\u{29949}\u{2996A}\u{299C3}\u{29A28}\u{29B0E}\u{29D5A}\u{29D9B}\u7E9F\u{29EF8}\u{29F23}\u4CA4\u9547\u{2A293}\u71A2\u{2A2FF}\u4D91\u9012\u{2A5CB}\u4D9C\u{20C9C}\u8FBE\u55C1"],["9da1","\u8FBA\u{224B0}\u8FB9\u{24A93}\u4509\u7E7F\u6F56\u6AB1\u4EEA\u34E4\u{28B2C}\u{2789D}\u373A\u8E80\u{217F5}\u{28024}\u{28B6C}\u{28B99}\u{27A3E}\u{266AF}\u3DEB\u{27655}\u{23CB7}\u{25635}\u{25956}\u4E9A\u{25E81}\u{26258}\u56BF\u{20E6D}\u8E0E\u5B6D\u{23E88}\u{24C9E}\u63DE\u62D0\u{217F6}\u{2187B}\u6530\u562D\u{25C4A}\u541A\u{25311}\u3DC6\u{29D98}\u4C7D\u5622\u561E\u7F49\u{25ED8}\u5975\u{23D40}\u8770\u4E1C\u{20FEA}\u{20D49}\u{236BA}\u8117\u9D5E\u8D18\u763B\u9C45\u764E\u77B9\u9345\u5432\u8148\u82F7\u5625\u8132\u8418\u80BD\u55EA\u7962\u5643\u5416\u{20E9D}\u35CE\u5605\u55F1\u66F1\u{282E2}\u362D\u7534\u55F0\u55BA\u5497\u5572\u{20C41}\u{20C96}\u5ED0\u{25148}\u{20E76}\u{22C62}"],["9e40","\u{20EA2}\u9EAB\u7D5A\u55DE\u{21075}\u629D\u976D\u5494\u8CCD\u71F6\u9176\u63FC\u63B9\u63FE\u5569\u{22B43}\u9C72\u{22EB3}\u519A\u34DF\u{20DA7}\u51A7\u544D\u551E\u5513\u7666\u8E2D\u{2688A}\u75B1\u80B6\u8804\u8786\u88C7\u81B6\u841C\u{210C1}\u44EC\u7304\u{24706}\u5B90\u830B\u{26893}\u567B\u{226F4}\u{27D2F}\u{241A3}\u{27D73}\u{26ED0}\u{272B6}\u9170\u{211D9}\u9208\u{23CFC}\u{2A6A9}\u{20EAC}\u{20EF9}\u7266\u{21CA2}\u474E\u{24FC2}\u{27FF9}\u{20FEB}\u40FA"],["9ea1","\u9C5D\u651F\u{22DA0}\u48F3\u{247E0}\u{29D7C}\u{20FEC}\u{20E0A}\u6062\u{275A3}\u{20FED}"],["9ead","\u{26048}\u{21187}\u71A3\u7E8E\u9D50\u4E1A\u4E04\u3577\u5B0D\u6CB2\u5367\u36AC\u39DC\u537D\u36A5\u{24618}\u589A\u{24B6E}\u822D\u544B\u57AA\u{25A95}\u{20979}"],["9ec5","\u3A52\u{22465}\u7374\u{29EAC}\u4D09\u9BED\u{23CFE}\u{29F30}\u4C5B\u{24FA9}\u{2959E}\u{29FDE}\u845C\u{23DB6}\u{272B2}\u{267B3}\u{23720}\u632E\u7D25\u{23EF7}\u{23E2C}\u3A2A\u9008\u52CC\u3E74\u367A\u45E9\u{2048E}\u7640\u5AF0\u{20EB6}\u787A\u{27F2E}\u58A7\u40BF\u567C\u9B8B\u5D74\u7654\u{2A434}\u9E85\u4CE1\u75F9\u37FB\u6119\u{230DA}\u{243F2}"],["9ef5","\u565D\u{212A9}\u57A7\u{24963}\u{29E06}\u5234\u{270AE}\u35AD\u6C4A\u9D7C"],["9f40","\u7C56\u9B39\u57DE\u{2176C}\u5C53\u64D3\u{294D0}\u{26335}\u{27164}\u86AD\u{20D28}\u{26D22}\u{24AE2}\u{20D71}"],["9f4f","\u51FE\u{21F0F}\u5D8E\u9703\u{21DD1}\u9E81\u904C\u7B1F\u9B02\u5CD1\u7BA3\u6268\u6335\u9AFF\u7BCF\u9B2A\u7C7E\u9B2E\u7C42\u7C86\u9C15\u7BFC\u9B09\u9F17\u9C1B\u{2493E}\u9F5A\u5573\u5BC3\u4FFD\u9E98\u4FF2\u5260\u3E06\u52D1\u5767\u5056\u59B7\u5E12\u97C8\u9DAB\u8F5C\u5469\u97B4\u9940\u97BA\u532C\u6130"],["9fa1","\u692C\u53DA\u9C0A\u9D02\u4C3B\u9641\u6980\u50A6\u7546\u{2176D}\u99DA\u5273"],["9fae","\u9159\u9681\u915C"],["9fb2","\u9151\u{28E97}\u637F\u{26D23}\u6ACA\u5611\u918E\u757A\u6285\u{203FC}\u734F\u7C70\u{25C21}\u{23CFD}"],["9fc1","\u{24919}\u76D6\u9B9D\u4E2A\u{20CD4}\u83BE\u8842"],["9fc9","\u5C4A\u69C0\u50ED\u577A\u521F\u5DF5\u4ECE\u6C31\u{201F2}\u4F39\u549C\u54DA\u529A\u8D82\u35FE\u5F0C\u35F3"],["9fdb","\u6B52\u917C\u9FA5\u9B97\u982E\u98B4\u9ABA\u9EA8\u9E84\u717A\u7B14"],["9fe7","\u6BFA\u8818\u7F78"],["9feb","\u5620\u{2A64A}\u8E77\u9F53"],["9ff0","\u8DD4\u8E4F\u9E1C\u8E01\u6282\u{2837D}\u8E28\u8E75\u7AD3\u{24A77}\u7A3E\u78D8\u6CEA\u8A67\u7607"],["a040","\u{28A5A}\u9F26\u6CCE\u87D6\u75C3\u{2A2B2}\u7853\u{2F840}\u8D0C\u72E2\u7371\u8B2D\u7302\u74F1\u8CEB\u{24ABB}\u862F\u5FBA\u88A0\u44B7"],["a055","\u{2183B}\u{26E05}"],["a058","\u8A7E\u{2251B}"],["a05b","\u60FD\u7667\u9AD7\u9D44\u936E\u9B8F\u87F5"],["a063","\u880F\u8CF7\u732C\u9721\u9BB0\u35D6\u72B2\u4C07\u7C51\u994A\u{26159}\u6159\u4C04\u9E96\u617D"],["a073","\u575F\u616F\u62A6\u6239\u62CE\u3A5C\u61E2\u53AA\u{233F5}\u6364\u6802\u35D2"],["a0a1","\u5D57\u{28BC2}\u8FDA\u{28E39}"],["a0a6","\u50D9\u{21D46}\u7906\u5332\u9638\u{20F3B}\u4065"],["a0ae","\u77FE"],["a0b0","\u7CC2\u{25F1A}\u7CDA\u7A2D\u8066\u8063\u7D4D\u7505\u74F2\u8994\u821A\u670C\u8062\u{27486}\u805B\u74F0\u8103\u7724\u8989\u{267CC}\u7553\u{26ED1}\u87A9\u87CE\u81C8\u878C\u8A49\u8CAD\u8B43\u772B\u74F8\u84DA\u3635\u69B2\u8DA6"],["a0d4","\u89A9\u7468\u6DB9\u87C1\u{24011}\u74E7\u3DDB\u7176\u60A4\u619C\u3CD1\u7162\u6077"],["a0e2","\u7F71\u{28B2D}\u7250\u60E9\u4B7E\u5220\u3C18\u{23CC7}\u{25ED7}\u{27656}\u{25531}\u{21944}\u{212FE}\u{29903}\u{26DDC}\u{270AD}\u5CC1\u{261AD}\u{28A0F}\u{23677}\u{200EE}\u{26846}\u{24F0E}\u4562\u5B1F\u{2634C}\u9F50\u9EA6\u{2626B}"],["a3c0","\u2400",31,"\u2421"],["c6a1","\u2460",9,"\u2474",9,"\u2170",9,"\u4E36\u4E3F\u4E85\u4EA0\u5182\u5196\u51AB\u52F9\u5338\u5369\u53B6\u590A\u5B80\u5DDB\u2F33\u5E7F\u5EF4\u5F50\u5F61\u6534\u65E0\u7592\u7676\u8FB5\u96B6\xA8\u02C6\u30FD\u30FE\u309D\u309E\u3003\u4EDD\u3005\u3006\u3007\u30FC\uFF3B\uFF3D\u273D\u3041",23],["c740","\u3059",58,"\u30A1\u30A2\u30A3\u30A4"],["c7a1","\u30A5",81,"\u0410",5,"\u0401\u0416",4],["c840","\u041B",26,"\u0451\u0436",25,"\u21E7\u21B8\u21B9\u31CF\u{200CC}\u4E5A\u{2008A}\u5202\u4491"],["c8a1","\u9FB0\u5188\u9FB1\u{27607}"],["c8cd","\uFFE2\uFFE4\uFF07\uFF02\u3231\u2116\u2121\u309B\u309C\u2E80\u2E84\u2E86\u2E87\u2E88\u2E8A\u2E8C\u2E8D\u2E95\u2E9C\u2E9D\u2EA5\u2EA7\u2EAA\u2EAC\u2EAE\u2EB6\u2EBC\u2EBE\u2EC6\u2ECA\u2ECC\u2ECD\u2ECF\u2ED6\u2ED7\u2EDE\u2EE3"],["c8f5","\u0283\u0250\u025B\u0254\u0275\u0153\xF8\u014B\u028A\u026A"],["f9fe","\uFFED"],["fa40","\u{20547}\u92DB\u{205DF}\u{23FC5}\u854C\u42B5\u73EF\u51B5\u3649\u{24942}\u{289E4}\u9344\u{219DB}\u82EE\u{23CC8}\u783C\u6744\u62DF\u{24933}\u{289AA}\u{202A0}\u{26BB3}\u{21305}\u4FAB\u{224ED}\u5008\u{26D29}\u{27A84}\u{23600}\u{24AB1}\u{22513}\u5029\u{2037E}\u5FA4\u{20380}\u{20347}\u6EDB\u{2041F}\u507D\u5101\u347A\u510E\u986C\u3743\u8416\u{249A4}\u{20487}\u5160\u{233B4}\u516A\u{20BFF}\u{220FC}\u{202E5}\u{22530}\u{2058E}\u{23233}\u{21983}\u5B82\u877D\u{205B3}\u{23C99}\u51B2\u51B8"],["faa1","\u9D34\u51C9\u51CF\u51D1\u3CDC\u51D3\u{24AA6}\u51B3\u51E2\u5342\u51ED\u83CD\u693E\u{2372D}\u5F7B\u520B\u5226\u523C\u52B5\u5257\u5294\u52B9\u52C5\u7C15\u8542\u52E0\u860D\u{26B13}\u5305\u{28ADE}\u5549\u6ED9\u{23F80}\u{20954}\u{23FEC}\u5333\u5344\u{20BE2}\u6CCB\u{21726}\u681B\u73D5\u604A\u3EAA\u38CC\u{216E8}\u71DD\u44A2\u536D\u5374\u{286AB}\u537E\u537F\u{21596}\u{21613}\u77E6\u5393\u{28A9B}\u53A0\u53AB\u53AE\u73A7\u{25772}\u3F59\u739C\u53C1\u53C5\u6C49\u4E49\u57FE\u53D9\u3AAB\u{20B8F}\u53E0\u{23FEB}\u{22DA3}\u53F6\u{20C77}\u5413\u7079\u552B\u6657\u6D5B\u546D\u{26B53}\u{20D74}\u555D\u548F\u54A4\u47A6\u{2170D}\u{20EDD}\u3DB4\u{20D4D}"],["fb40","\u{289BC}\u{22698}\u5547\u4CED\u542F\u7417\u5586\u55A9\u5605\u{218D7}\u{2403A}\u4552\u{24435}\u66B3\u{210B4}\u5637\u66CD\u{2328A}\u66A4\u66AD\u564D\u564F\u78F1\u56F1\u9787\u53FE\u5700\u56EF\u56ED\u{28B66}\u3623\u{2124F}\u5746\u{241A5}\u6C6E\u708B\u5742\u36B1\u{26C7E}\u57E6\u{21416}\u5803\u{21454}\u{24363}\u5826\u{24BF5}\u585C\u58AA\u3561\u58E0\u58DC\u{2123C}\u58FB\u5BFF\u5743\u{2A150}\u{24278}\u93D3\u35A1\u591F\u68A6\u36C3\u6E59"],["fba1","\u{2163E}\u5A24\u5553\u{21692}\u8505\u59C9\u{20D4E}\u{26C81}\u{26D2A}\u{217DC}\u59D9\u{217FB}\u{217B2}\u{26DA6}\u6D71\u{21828}\u{216D5}\u59F9\u{26E45}\u5AAB\u5A63\u36E6\u{249A9}\u5A77\u3708\u5A96\u7465\u5AD3\u{26FA1}\u{22554}\u3D85\u{21911}\u3732\u{216B8}\u5E83\u52D0\u5B76\u6588\u5B7C\u{27A0E}\u4004\u485D\u{20204}\u5BD5\u6160\u{21A34}\u{259CC}\u{205A5}\u5BF3\u5B9D\u4D10\u5C05\u{21B44}\u5C13\u73CE\u5C14\u{21CA5}\u{26B28}\u5C49\u48DD\u5C85\u5CE9\u5CEF\u5D8B\u{21DF9}\u{21E37}\u5D10\u5D18\u5D46\u{21EA4}\u5CBA\u5DD7\u82FC\u382D\u{24901}\u{22049}\u{22173}\u8287\u3836\u3BC2\u5E2E\u6A8A\u5E75\u5E7A\u{244BC}\u{20CD3}\u53A6\u4EB7\u5ED0\u53A8\u{21771}\u5E09\u5EF4\u{28482}"],["fc40","\u5EF9\u5EFB\u38A0\u5EFC\u683E\u941B\u5F0D\u{201C1}\u{2F894}\u3ADE\u48AE\u{2133A}\u5F3A\u{26888}\u{223D0}\u5F58\u{22471}\u5F63\u97BD\u{26E6E}\u5F72\u9340\u{28A36}\u5FA7\u5DB6\u3D5F\u{25250}\u{21F6A}\u{270F8}\u{22668}\u91D6\u{2029E}\u{28A29}\u6031\u6685\u{21877}\u3963\u3DC7\u3639\u5790\u{227B4}\u7971\u3E40\u609E\u60A4\u60B3\u{24982}\u{2498F}\u{27A53}\u74A4\u50E1\u5AA0\u6164\u8424\u6142\u{2F8A6}\u{26ED2}\u6181\u51F4\u{20656}\u6187\u5BAA\u{23FB7}"],["fca1","\u{2285F}\u61D3\u{28B9D}\u{2995D}\u61D0\u3932\u{22980}\u{228C1}\u6023\u615C\u651E\u638B\u{20118}\u62C5\u{21770}\u62D5\u{22E0D}\u636C\u{249DF}\u3A17\u6438\u63F8\u{2138E}\u{217FC}\u6490\u6F8A\u{22E36}\u9814\u{2408C}\u{2571D}\u64E1\u64E5\u947B\u3A66\u643A\u3A57\u654D\u6F16\u{24A28}\u{24A23}\u6585\u656D\u655F\u{2307E}\u65B5\u{24940}\u4B37\u65D1\u40D8\u{21829}\u65E0\u65E3\u5FDF\u{23400}\u6618\u{231F7}\u{231F8}\u6644\u{231A4}\u{231A5}\u664B\u{20E75}\u6667\u{251E6}\u6673\u6674\u{21E3D}\u{23231}\u{285F4}\u{231C8}\u{25313}\u77C5\u{228F7}\u99A4\u6702\u{2439C}\u{24A21}\u3B2B\u69FA\u{237C2}\u675E\u6767\u6762\u{241CD}\u{290ED}\u67D7\u44E9\u6822\u6E50\u923C\u6801\u{233E6}\u{26DA0}\u685D"],["fd40","\u{2346F}\u69E1\u6A0B\u{28ADF}\u6973\u68C3\u{235CD}\u6901\u6900\u3D32\u3A01\u{2363C}\u3B80\u67AC\u6961\u{28A4A}\u42FC\u6936\u6998\u3BA1\u{203C9}\u8363\u5090\u69F9\u{23659}\u{2212A}\u6A45\u{23703}\u6A9D\u3BF3\u67B1\u6AC8\u{2919C}\u3C0D\u6B1D\u{20923}\u60DE\u6B35\u6B74\u{227CD}\u6EB5\u{23ADB}\u{203B5}\u{21958}\u3740\u5421\u{23B5A}\u6BE1\u{23EFC}\u6BDC\u6C37\u{2248B}\u{248F1}\u{26B51}\u6C5A\u8226\u6C79\u{23DBC}\u44C5\u{23DBD}\u{241A4}\u{2490C}\u{24900}"],["fda1","\u{23CC9}\u36E5\u3CEB\u{20D32}\u9B83\u{231F9}\u{22491}\u7F8F\u6837\u{26D25}\u{26DA1}\u{26DEB}\u6D96\u6D5C\u6E7C\u6F04\u{2497F}\u{24085}\u{26E72}\u8533\u{26F74}\u51C7\u6C9C\u6E1D\u842E\u{28B21}\u6E2F\u{23E2F}\u7453\u{23F82}\u79CC\u6E4F\u5A91\u{2304B}\u6FF8\u370D\u6F9D\u{23E30}\u6EFA\u{21497}\u{2403D}\u4555\u93F0\u6F44\u6F5C\u3D4E\u6F74\u{29170}\u3D3B\u6F9F\u{24144}\u6FD3\u{24091}\u{24155}\u{24039}\u{23FF0}\u{23FB4}\u{2413F}\u51DF\u{24156}\u{24157}\u{24140}\u{261DD}\u704B\u707E\u70A7\u7081\u70CC\u70D5\u70D6\u70DF\u4104\u3DE8\u71B4\u7196\u{24277}\u712B\u7145\u5A88\u714A\u716E\u5C9C\u{24365}\u714F\u9362\u{242C1}\u712C\u{2445A}\u{24A27}\u{24A22}\u71BA\u{28BE8}\u70BD\u720E"],["fe40","\u9442\u7215\u5911\u9443\u7224\u9341\u{25605}\u722E\u7240\u{24974}\u68BD\u7255\u7257\u3E55\u{23044}\u680D\u6F3D\u7282\u732A\u732B\u{24823}\u{2882B}\u48ED\u{28804}\u7328\u732E\u73CF\u73AA\u{20C3A}\u{26A2E}\u73C9\u7449\u{241E2}\u{216E7}\u{24A24}\u6623\u36C5\u{249B7}\u{2498D}\u{249FB}\u73F7\u7415\u6903\u{24A26}\u7439\u{205C3}\u3ED7\u745C\u{228AD}\u7460\u{28EB2}\u7447\u73E4\u7476\u83B9\u746C\u3730\u7474\u93F1\u6A2C\u7482\u4953\u{24A8C}"],["fea1","\u{2415F}\u{24A79}\u{28B8F}\u5B46\u{28C03}\u{2189E}\u74C8\u{21988}\u750E\u74E9\u751E\u{28ED9}\u{21A4B}\u5BD7\u{28EAC}\u9385\u754D\u754A\u7567\u756E\u{24F82}\u3F04\u{24D13}\u758E\u745D\u759E\u75B4\u7602\u762C\u7651\u764F\u766F\u7676\u{263F5}\u7690\u81EF\u37F8\u{26911}\u{2690E}\u76A1\u76A5\u76B7\u76CC\u{26F9F}\u8462\u{2509D}\u{2517D}\u{21E1C}\u771E\u7726\u7740\u64AF\u{25220}\u7758\u{232AC}\u77AF\u{28964}\u{28968}\u{216C1}\u77F4\u7809\u{21376}\u{24A12}\u68CA\u78AF\u78C7\u78D3\u96A5\u792E\u{255E0}\u78D7\u7934\u78B1\u{2760C}\u8FB8\u8884\u{28B2B}\u{26083}\u{2261C}\u7986\u8900\u6902\u7980\u{25857}\u799D\u{27B39}\u793C\u79A9\u6E2A\u{27126}\u3EA8\u79C6\u{2910D}\u79D4"]];var dbcsData,hasRequiredDbcsData;function requireDbcsData(){return hasRequiredDbcsData||(hasRequiredDbcsData=1,dbcsData={shiftjis:{type:"_dbcs",table:function(){return require$$0},encodeAdd:{"\xA5":92,"\u203E":126},encodeSkipVals:[{from:60736,to:63808}]},csshiftjis:"shiftjis",mskanji:"shiftjis",sjis:"shiftjis",windows31j:"shiftjis",ms31j:"shiftjis",xsjis:"shiftjis",windows932:"shiftjis",ms932:"shiftjis",932:"shiftjis",cp932:"shiftjis",eucjp:{type:"_dbcs",table:function(){return require$$1},encodeAdd:{"\xA5":92,"\u203E":126}},gb2312:"cp936",gb231280:"cp936",gb23121980:"cp936",csgb2312:"cp936",csiso58gb231280:"cp936",euccn:"cp936",windows936:"cp936",ms936:"cp936",936:"cp936",cp936:{type:"_dbcs",table:function(){return require$$2}},gbk:{type:"_dbcs",table:function(){return require$$2.concat(require$$3)}},xgbk:"gbk",isoir58:"gbk",gb18030:{type:"_dbcs",table:function(){return require$$2.concat(require$$3)},gb18030:function(){return require$$4$1},encodeSkipVals:[128],encodeAdd:{"\u20AC":41699}},chinese:"gb18030",windows949:"cp949",ms949:"cp949",949:"cp949",cp949:{type:"_dbcs",table:function(){return require$$5}},cseuckr:"cp949",csksc56011987:"cp949",euckr:"cp949",isoir149:"cp949",korean:"cp949",ksc56011987:"cp949",ksc56011989:"cp949",ksc5601:"cp949",windows950:"cp950",ms950:"cp950",950:"cp950",cp950:{type:"_dbcs",table:function(){return require$$6}},big5:"big5hkscs",big5hkscs:{type:"_dbcs",table:function(){return require$$6.concat(require$$7)},encodeSkipVals:[36457,36463,36478,36523,36532,36557,36560,36695,36713,36718,36811,36862,36973,36986,37060,37084,37105,37311,37551,37552,37553,37554,37585,37959,38090,38361,38652,39285,39798,39800,39803,39878,39902,39916,39926,40002,40019,40034,40040,40043,40055,40124,40125,40144,40279,40282,40388,40431,40443,40617,40687,40701,40800,40907,41079,41180,41183,36812,37576,38468,38637,41636,41637,41639,41638,41676,41678]},cnbig5:"big5hkscs",csbig5:"big5hkscs",xxbig5:"big5hkscs"}),dbcsData}var hasRequiredEncodings;function requireEncodings(){return hasRequiredEncodings||(hasRequiredEncodings=1,function(t){for(var e=[requireInternal(),requireUtf32(),requireUtf16(),requireUtf7(),requireSbcsCodec(),requireSbcsData(),requireSbcsDataGenerated(),requireDbcsCodec(),requireDbcsData()],r=0;r<e.length;r++){var n=e[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}}(encodings)),encodings}var streams,hasRequiredStreams;function requireStreams(){if(hasRequiredStreams)return streams;hasRequiredStreams=1;var t=safer_1.Buffer;return streams=function(r){var n=r.Transform;function o(c,l){this.conv=c,l=l||{},l.decodeStrings=!1,n.call(this,l)}o.prototype=Object.create(n.prototype,{constructor:{value:o}}),o.prototype._transform=function(c,l,v){if(typeof c!="string")return v(new Error("Iconv encoding stream needs strings as its input."));try{var x=this.conv.write(c);x&&x.length&&this.push(x),v()}catch(w){v(w)}},o.prototype._flush=function(c){try{var l=this.conv.end();l&&l.length&&this.push(l),c()}catch(v){c(v)}},o.prototype.collect=function(c){var l=[];return this.on("error",c),this.on("data",function(v){l.push(v)}),this.on("end",function(){c(null,t.concat(l))}),this};function s(c,l){this.conv=c,l=l||{},l.encoding=this.encoding="utf8",n.call(this,l)}return s.prototype=Object.create(n.prototype,{constructor:{value:s}}),s.prototype._transform=function(c,l,v){if(!t.isBuffer(c)&&!(c instanceof Uint8Array))return v(new Error("Iconv decoding stream needs buffers as its input."));try{var x=this.conv.write(c);x&&x.length&&this.push(x,this.encoding),v()}catch(w){v(w)}},s.prototype._flush=function(c){try{var l=this.conv.end();l&&l.length&&this.push(l,this.encoding),c()}catch(v){c(v)}},s.prototype.collect=function(c){var l="";return this.on("error",c),this.on("data",function(v){l+=v}),this.on("end",function(){c(null,l)}),this},{IconvLiteEncoderStream:o,IconvLiteDecoderStream:s}},streams}const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$4=getAugmentedNamespace(__viteBrowserExternal$1);(function(t){var e=safer_1.Buffer,r=bomHandling,n=t.exports;n.encodings=null,n.defaultCharUnicode="\uFFFD",n.defaultCharSingleByte="?",n.encode=function(c,l,v){c=""+(c||"");var x=n.getEncoder(l,v),w=x.write(c),_=x.end();return _&&_.length>0?e.concat([w,_]):w},n.decode=function(c,l,v){typeof c=="string"&&(n.skipDecodeWarning||(console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding"),n.skipDecodeWarning=!0),c=e.from(""+(c||""),"binary"));var x=n.getDecoder(l,v),w=x.write(c),_=x.end();return _?w+_:w},n.encodingExists=function(c){try{return n.getCodec(c),!0}catch(l){return!1}},n.toEncoding=n.encode,n.fromEncoding=n.decode,n._codecDataCache={},n.getCodec=function(c){n.encodings||(n.encodings=requireEncodings());for(var l=n._canonicalizeEncoding(c),v={};;){var x=n._codecDataCache[l];if(x)return x;var w=n.encodings[l];switch(_typeof$2(w)){case"string":l=w;break;case"object":for(var _ in w)v[_]=w[_];v.encodingName||(v.encodingName=l),l=w.type;break;case"function":return v.encodingName||(v.encodingName=l),x=new w(v,n),n._codecDataCache[v.encodingName]=x,x;default:throw new Error("Encoding not recognized: '"+c+"' (searched as: '"+l+"')")}}},n._canonicalizeEncoding=function(s){return(""+s).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g,"")},n.getEncoder=function(c,l){var v=n.getCodec(c),x=new v.encoder(l,v);return v.bomAware&&l&&l.addBOM&&(x=new r.PrependBOM(x,l)),x},n.getDecoder=function(c,l){var v=n.getCodec(c),x=new v.decoder(l,v);return v.bomAware&&!(l&&l.stripBOM===!1)&&(x=new r.StripBOM(x,l)),x},n.enableStreamingAPI=function(c){if(!n.supportsStreams){var l=requireStreams()(c);n.IconvLiteEncoderStream=l.IconvLiteEncoderStream,n.IconvLiteDecoderStream=l.IconvLiteDecoderStream,n.encodeStream=function(x,w){return new n.IconvLiteEncoderStream(n.getEncoder(x,w),w)},n.decodeStream=function(x,w){return new n.IconvLiteDecoderStream(n.getDecoder(x,w),w)},n.supportsStreams=!0}};var o;try{o=require$$4}catch(s){}o&&o.Transform?n.enableStreamingAPI(o):n.encodeStream=n.decodeStream=function(){throw new Error("iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.")}})(lib);var safeBuffer={exports:{}};(function(t,e){var r=buffer$1,n=r.Buffer;function o(c,l){for(var v in c)l[v]=c[v]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=s);function s(c,l,v){return n(c,l,v)}o(n,s),s.from=function(c,l,v){if(typeof c=="number")throw new TypeError("Argument must not be a number");return n(c,l,v)},s.alloc=function(c,l,v){if(typeof c!="number")throw new TypeError("Argument must be a number");var x=n(c);return l!==void 0?typeof v=="string"?x.fill(l,v):x.fill(l):x.fill(0),x},s.allocUnsafe=function(c){if(typeof c!="number")throw new TypeError("Argument must be a number");return n(c)},s.allocUnsafeSlow=function(c){if(typeof c!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(c)}})(safeBuffer,safeBuffer.exports);var MxG2312=function(){function t(){_classCallCheck$1(this,t)}return _createClass$1(t,[{key:"encodeToGb2312",value:function(r){var n=lib.exports.encode(r,"gb2312"),o="";return n.forEach(function(s){o+="%"+s.toString(16)}),o}},{key:"decodeFromGb2312",value:function(r){for(var n=[],o=r.length,s=0;s<o;){var c=r.charAt(s);if(c=="%"){s+=1;var l=parseInt(r.slice(s,s+2),16);n.push(l),s+=2}else{console.log("decode hexstr error");break}}return lib.exports.decode(safeBuffer.exports.Buffer.from(n),"gb2312")}}]),t}(),MxG2312Obj=new MxG2312,win=window;win.McDrawObjectEvent_utf8ToAscii=function(t){return MxG2312Obj.encodeToGb2312(t)};win.McDrawObjectEvent_asciiToUTF8=function(t){return MxG2312Obj.decodeFromGb2312(t)};const version$1$1="1.0.196";var isSharedArrayBuffer="SharedArrayBuffer"in window,isCdn=document.currentScript&&/unpkg\.com\/mxcad/.test(document.currentScript.src),get2DFileURL=function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:self.location.href;return isCdn?"https://unpkg.com/mxcad@".concat(version$1$1,"/dist/wasm/2d-st/").concat(e):r+e},get2DSTFileURL=function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:self.location.href;return isCdn?"https://unpkg.com/mxcad@".concat(version$1$1,"/dist/wasm/2d/").concat(e):r+e},get3DFileURL=function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:self.location.href;return isCdn?"https://unpkg.com/mxcad@".concat(version$1$1,"/dist/wasm/3d/").concat(e):r+e},loadScript=function t(e){return new Promise(function(r,n){var o=document.createElement("script");o.src=e,o.type="text/javascript",o.crossOrigin="anonymous",document.body.appendChild(o),o.onload=function(){r()},o.onerror=function(s){n(s)}})},loadWams$1=function(){var t=_asyncToGenerator(regenerator.mark(function e(r,n,o){var s,c;return regenerator.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return s=o.locateFile,c=s(r+".js"),v.prev=2,v.next=5,loadScript(c);case 5:return v.next=7,globalThis[n](o);case 7:return v.abrupt("return",v.sent);case 10:v.prev=10,v.t0=v.catch(2),console.error(`\u52A0\u8F7Dwasm\u6587\u4EF6\u5931\u8D25, \u8BF7\u68C0\u67E5locateFile\u8FD4\u56DE\u7684\u8DEF\u5F84\u662F\u5426\u53EF\u4EE5\u6B63\u5E38\u8BBF\u95EE:
  3362. createMxCad({
  3363. locateFile: (fileName)=> {
  3364. // \u8BE5\u7F51\u7EDC\u8DEF\u5F84\u65E0\u6CD5\u8BBF\u95EE\u5BF9\u5E94fileName\u7684\u6587\u4EF6
  3365. retrun "`.concat(c,`"
  3366. }
  3367. })
  3368. `)),console.error(v.t0);case 14:case"end":return v.stop()}},e,null,[[2,10]])}));return function(r,n,o){return t.apply(this,arguments)}}(),_mxFinalizationRegistry$1=new FinalizationRegistry(function(t){MxCpp.App.destroyObject(t)}),_mxFinalizationRegistry_token$1={},McRxObject=function(){function t(e){_classCallCheck$1(this,t),_defineProperty(this,"imp",0),this.imp=e,this.imp&&(this.imp.isNull()&&console.log("Mx:error null constructor object "),_mxFinalizationRegistry$1.register(this,e,_mxFinalizationRegistry_token$1))}return _createClass$1(t,[{key:"constructor_MxCADResbuf",value:function(r){this.imp=r,this.imp&&_mxFinalizationRegistry$1.register(this,r,_mxFinalizationRegistry_token$1)}},{key:"getImp",value:function(){return this.imp}},{key:"initTempObject",value:function(r){this.imp=r}},{key:"objectName",get:function(){return this.imp.getObjectName()}},{key:"dxf0",get:function(){return this.imp.getDxf0()}},{key:"getJson",value:function(){var r=this.imp.getJson();return MxG2312Obj.decodeFromGb2312(r)}},{key:"setJson",value:function(r){var n=MxG2312Obj.encodeToGb2312(r);return this.imp.setJson(n)}},{key:"isKindOf",value:function(r){return this.imp.isKindOf(r)}},{key:"isNull",value:function(){return this.imp.isNull()}}]),t}();function _createSuper$6(t){var e=_isNativeReflectConstruct$6();return function(){var n=_getPrototypeOf$1(t),o;if(e){var s=_getPrototypeOf$1(this).constructor;o=Reflect.construct(n,arguments,s)}else o=n.apply(this,arguments);return _possibleConstructorReturn$1(this,o)}}function _isNativeReflectConstruct$6(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var McObjectIdType=function(t){return t[t.kMxCAD=0]="kMxCAD",t[t.kMxDraw=1]="kMxDraw",t[t.kInvalid=2]="kInvalid",t}(McObjectIdType||{}),McObjectId=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;_classCallCheck$1(this,t),_defineProperty(this,"id",void 0),_defineProperty(this,"type",void 0),this.id=e,e?r==2?this.type=0:this.type=r:this.type=2}return _createClass$1(t,[{key:"isValid",value:function(){return this.type!=2&&this.id!=0}},{key:"isNull",value:function(){return this.type==2||this.id==0}},{key:"isErase",value:function(){return this.isValid()&&this.type==0&&this.id!=0?MxCpp.App.getImp().isObjectEraseSataus(this.id):!1}},{key:"erase",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;!this.isValid()||(this.type==1?MxFun.getCurrentDraw().eraseMxEntity(this.id):this.type==0&&MxCADUtility.eraseObject(this.id,r))}},{key:"getMcDbObject",value:function(){return this.isValid()&&this.type==0?MxCpp.App.objectIdToObject(this.id):null}},{key:"isKindOf",value:function(r){return this.isValid()&&this.type==0?MxCpp.App.objectIdIsKindOf(this.id,r):!1}},{key:"getMcDbEntity",value:function(){return this.isValid()&&this.type==0&&MxCpp.App.objectIdIsKindOf(this.id,"McDbEntity")?MxCpp.App.objectIdToObject(this.id):null}},{key:"getMcDbCurve",value:function(){return this.isValid()&&this.type==0&&MxCpp.App.objectIdIsKindOf(this.id,"McDbCurve")?MxCpp.App.objectIdToObject(this.id):null}},{key:"getMcDbBlockTableRecord",value:function(){return this.isValid()&&this.type==0&&MxCpp.App.objectIdIsKindOf(this.id,"McDbBlockTableRecord")?MxCpp.App.objectIdToObject(this.id):null}},{key:"getMcDbLayerTableRecord",value:function(){return this.isValid()&&this.type==0&&MxCpp.App.objectIdIsKindOf(this.id,"McDbLayerTableRecord")?MxCpp.App.objectIdToObject(this.id):null}},{key:"getMcDbLinetypeTableRecord",value:function(){return this.isValid()&&this.type==0&&MxCpp.App.objectIdIsKindOf(this.id,"McDbLinetypeTableRecord")?MxCpp.App.objectIdToObject(this.id):null}},{key:"getMcDbTextStyleTableRecord",value:function(){return this.isValid()&&this.type==0&&MxCpp.App.objectIdIsKindOf(this.id,"McDbTextStyleTableRecord")?MxCpp.App.objectIdToObject(this.id):null}},{key:"getMcDbDimension",value:function(){return this.isValid()&&this.type==0&&MxCpp.App.objectIdIsKindOf(this.id,"McDbDimension")?MxCpp.App.objectIdToObject(this.id):null}},{key:"syncMcDbCustomEntity",value:function(){!this.isValid()||this.type==0&&MxCpp.App.objectIdIsKindOf(this.id,"McDbCustomEntity")&&MxCpp.App.objectIdToObject(this.id)}},{key:"getMcDbCustomEntity",value:function(){return this.isValid()&&this.type==0&&MxCpp.App.objectIdIsKindOf(this.id,"McDbCustomEntity")?MxCpp.App.objectIdToObject(this.id):null}},{key:"clone",value:function(){if(!this.isValid())return null;if(this.type==0){var r=MxCpp.App.getImp();if(r.ObjectIdIsKindOf(this.id,"McDbCustomEntity")){var n=this.getMcDbCustomEntity();return n?n.clone():null}else{var o=r.ObjectIdToMdObject(this.id);if(!o)return null;var s=o.Clone();return MxCpp.App.destroyObject(o),MxCpp.App.createCloneObject(s)}}return null}},{key:"getObjectName",value:function(){if(this.type==0)return MxCpp.App.getImp().ObjectIdToObjectName(this.id);if(this.type==1){var r=MxFun.getCurrentDraw().getMxEntity(this.id);if(r)return r.getTypeName()}return""}},{key:"getMxDbEntity",value:function(){return this.isValid()&&this.type==1?MxFun.getCurrentDraw().getMxEntity(this.id):null}},{key:"getMcDbRasterImageDef",value:function(){return this.isValid()&&this.type==0&&MxCpp.App.objectIdIsKindOf(this.id,"McDbRasterImageDef")?MxCpp.App.objectIdToObject(this.id):null}},{key:"getMcDbDictionary",value:function(){return this.isValid()&&this.type==0&&MxCpp.App.objectIdIsKindOf(this.id,"McDbDictionary")?MxCpp.App.objectIdToObject(this.id):null}},{key:"getMcDbXrecord",value:function(){return this.isValid()&&this.type==0&&MxCpp.App.objectIdIsKindOf(this.id,"McDbXrecord")?MxCpp.App.objectIdToObject(this.id):null}}]),t}(),McDbObject=function(t){_inherits$1(r,t);var e=_createSuper$6(r);function r(n){return _classCallCheck$1(this,r),e.call(this,n)}return _createClass$1(r,[{key:"getObjectID",value:function(){return new McObjectId(this.imp.GetObjectID(),0)}},{key:"erase",value:function(){return this.imp.Erase()}},{key:"isErased",value:function(){return this.imp.isErased()}},{key:"unErase",value:function(){return this.imp.unErase()}},{key:"clone",value:function(){var o=this.imp.Clone();return MxCpp.App.createCloneObject(o)}},{key:"getHandle",value:function(){return this.imp.GetHandle()}},{key:"getDatabase",value:function(){return new McDbDatabase(this.imp.GetDatabase())}},{key:"getOwnerID",value:function(){return this.imp.GetOwnerID()}},{key:"getExtensionDictionary",value:function(){return new McDbDictionary(this.imp.GetExtensionDictionary())}},{key:"isHaveExtensionDictionary",value:function(){return this.imp.IsHaveExtensionDictionary()}},{key:"createExtensionDictionary",value:function(){return this.imp.createExtensionDictionary()}},{key:"getDatabaseIndexId",value:function(){return this.imp.GetDatabaseIndexId()}},{key:"moveGripPointsAt",value:function(o,s,c,l){return this.imp.moveGripPointsAt(o,s,c,l)}},{key:"getGripPoints",value:function(){return new McGePoint3dArray(this.imp.getGripPoints())}},{key:"tempRelationObject",value:function(){return 0}},{key:"freeTempRelationObject",value:function(){}}]),r}(McRxObject),McDbObjectArray=function(){function t(e){if(_classCallCheck$1(this,t),_defineProperty(this,"aryVal",[]),e){for(var r=0,n=e.length();r<n;r++){var o=e.release(r),s=MxCpp.App.createCloneObject(o);s!=null&&this.aryVal.push(s)}MxCpp.App.destroyObject(e)}}return _createClass$1(t,[{key:"forEach",value:function(r){for(var n=this.aryVal.length,o=0;o<n;o++)r(this.aryVal[o],o)}},{key:"length",value:function(){return this.aryVal.length}},{key:"empty",value:function(){return this.aryVal.length==0}}]),t}();function _createSuper$5(t){var e=_isNativeReflectConstruct$5();return function(){var n=_getPrototypeOf$1(t),o;if(e){var s=_getPrototypeOf$1(this).constructor;o=Reflect.construct(n,arguments,s)}else o=n.apply(this,arguments);return _possibleConstructorReturn$1(this,o)}}function _isNativeReflectConstruct$5(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var MxCoordConvertType=function(){function t(){_classCallCheck$1(this,t)}return _createClass$1(t,[{key:"doc2cad",value:function(r){return r}},{key:"cad2doc",value:function(r){return r}},{key:"doc2cad1",value:function(r){return new McGePoint3d(r.x,r.y,r.z)}},{key:"doc2cad2",value:function(r,n,o){return new McGePoint3d(r,n,o)}},{key:"cad2doc1",value:function(r){return new THREE.Vector3(r.x,r.y,r.z)}},{key:"cad2doc2",value:function(r,n,o){return new THREE.Vector3(r,n,o)}}]),t}(),MxCoordConvert;MxCoordConvert=new MxCoordConvertType;function getFilterImp(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,e;return t?e=t.getImp():e=new MxCpp.mxcadassemblyimp.McDrawResbuf,e}var MxCADResbufDataType=function(t){return t[t.kLong=1071]="kLong",t[t.kDouble=1040]="kDouble",t[t.kString=1e3]="kString",t[t.kPoint=1010]="kPoint",t[t.kEntityType=5020]="kEntityType",t[t.kEntityId=-8e3]="kEntityId",t[t.kEntity=-8500]="kEntity",t[t.kExDataName=1001]="kExDataName",t}(MxCADResbufDataType||{}),MxCADResbuf=function(t){_inherits$1(r,t);var e=_createSuper$5(r);function r(n){var o;return _classCallCheck$1(this,r),n?n instanceof Array?(o=e.call(this),o.initTempObject(new MxCpp.mxcadassemblyimp.McDrawResbuf),o.setJson(JSON.stringify(n))):(o=e.call(this),o.constructor_MxCADResbuf(n)):(o=e.call(this),o.initTempObject(new MxCpp.mxcadassemblyimp.McDrawResbuf)),_possibleConstructorReturn$1(o)}return _createClass$1(r,[{key:"Clear",value:function(){this.imp.Clear()}},{key:"forEach",value:function(o){for(var s=this.GetCount(),c=0;c<s;c++){var l=this.ItemDataType(c),v=this.ItemDataDxf(c);l==5005?o(this.AtString(c,!0).val,l,v):l==5009?o(this.AtPoint(c).val,l,v):l==5001?o(this.AtDouble(c).val,l,v):l==5003||l==5010?o(this.AtLong(c).val,5010,v):v==-8500?o(this.AtObject(c).val,-8500,-8500):l==-8e3||l==-8001||l==-8002||l==-8003||l==-8004?o(this.AtObjectId(c).val,-8e3,-8e3):o(void 0,l,v)}}},{key:"GetCount",value:function(){return this.imp.GetCount()}},{key:"AtDouble",value:function(o){return{val:this.imp.AtDouble(o),ret:MxCpp.getCallResult()==0}}},{key:"AtLong",value:function(o){return{val:this.imp.Atlong(o),ret:MxCpp.getCallResult()==0}}},{key:"AtObject",value:function(o){if(o>=this.imp.GetCount())return{val:void 0,ret:!1};var s=this.imp.AtObject(o),c=MxCpp.App.createCloneObject(s);return c===null?{val:void 0,ret:!1}:{val:c,ret:!0}}},{key:"AddObject",value:function(o){this.imp.AddObject(o.getImp())}},{key:"AtObjectId",value:function(o){return{val:new McObjectId(this.imp.AtObjectId(o),McObjectIdType.kMxCAD),ret:MxCpp.getCallResult()==0}}},{key:"AtString",value:function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(s){var c=MxG2312Obj.decodeFromGb2312(this.imp.AtString(o));return{val:c,ret:MxCpp.getCallResult()==0}}else return{val:this.imp.AtString(o),ret:MxCpp.getCallResult()==0}}},{key:"AtPoint",value:function(o){return{val:new McGePoint3d(this.imp.AtPoint(o)),ret:MxCpp.getCallResult()==0}}},{key:"ItemDataType",value:function(o){return this.imp.ItemDataType(o)}},{key:"ItemDataDxf",value:function(o){return this.imp.ItemDataDxf(o)}},{key:"AddDouble",value:function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-10;return this.imp.AddDouble(o,s)}},{key:"AddLong",value:function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-10;return this.imp.Addlong(o,s)}},{key:"AddObjectId",value:function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-10;return this.imp.AddObjectId(o,s)}},{key:"AddString",value:function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-10,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return c?this.imp.AddString(MxG2312Obj.encodeToGb2312(o),s):this.imp.AddString(o,s)}},{key:"AddMcDbEntityTypes",value:function(o){return this.imp.AddString(o,5020)}},{key:"AddPoint",value:function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-10;return this.imp.AddPoint(o.imp,s)}},{key:"RemoveAll",value:function(){this.imp.RemoveAll()}},{key:"Remove",value:function(o){this.imp.Remove(o)}},{key:"PrintData",value:function(){this.imp.PrintData()}}]),r}(McRxObject),MxCADUtilityClass=function(){function t(){_classCallCheck$1(this,t),_defineProperty(this,"imp",void 0)}return _createClass$1(t,[{key:"eraseObject",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return this.init(),this.imp.eraseObject(r,n)}},{key:"highlightEntity",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return this.init(),this.imp.highlightEntity(r,n)}},{key:"findEntAtPoint",value:function(r,n,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null;this.init();var l=this.imp.findEntAtPoint(r,n,o,s,getFilterImp(c));return new McObjectId(l,McObjectIdType.kMxCAD)}},{key:"selectEnt",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,c=arguments.length>3?arguments[3]:void 0,l=arguments.length>4?arguments[4]:void 0;return this.init(),new Promise(function(){var v=_asyncToGenerator(regenerator.mark(function x(w){var _,b,E,I,O;return regenerator.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return _=new MrxDbgUiPrPoint,typeof c=="function"&&c(_),r&&_.setMessage(r),_.setCursorType(MxCursorType.kRect),_.disableAllTrace(),_.setDynamicInputType(DynamicInputType.kDynTip),A.next=8,_.go();case 8:if(b=A.sent,b){A.next=12;break}return w([]),A.abrupt("return");case 12:typeof l=="function"&&l(new McGePoint3d().setFromVector3(b)),_.clearLastInputPoint(),s?MrxDbgUtils.findEntAtPoint(b).then(function(z){var G=[];z.forEach(function(W){G.push(new McObjectId(W,McObjectIdType.kMxDraw))});var V=MxCoordConvert.doc2cad1(b),ne=n.findEntAtPoint(V.x,V.y,V.z,-1,o);ne.isValid()&&G.push(ne),w(G)}):(E=[],I=MxCoordConvert.doc2cad1(b),O=n.findEntAtPoint(I.x,I.y,I.z,-1,o),O.isValid()&&E.push(O),w(E));case 15:case"end":return A.stop()}},x)}));return function(x){return v.apply(this,arguments)}}())}},{key:"getCurrentSelect",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,n=[],o=MxFun.getCurrentDraw().getMxCurrentSelect();o.forEach(function(_){n.push(new McObjectId(_,McObjectIdType.kMxDraw))});var s=MxFun.getCurrentDraw().getMxCADCurrentSelect();if(s.length<=0)return n;if(r){var c=new McGeLongArray;s.forEach(function(_){c.append(_)});var l=new MxCpp.mxcadassemblyimp.McDrawSelSet,v=l.getFilterEntity(c.imp,getFilterImp(r));MxCpp.App.destroyObject(l),s=[];for(var x=v.length(),w=0;w<x;w++)s.push(v.at(w))}return s.forEach(function(_){n.push(new McObjectId(_,McObjectIdType.kMxCAD))}),n}},{key:"userSelect",value:function(){var e=_asyncToGenerator(regenerator.mark(function n(o){var s,c,l,v,x=arguments;return regenerator.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(s=x.length>1&&x[1]!==void 0?x[1]:null,c=x.length>2?x[2]:void 0,l=this.getCurrentSelect(s),l.length!=0){_.next=9;break}return v=new MxCADSelectionSet,_.next=7,v.userSelect(o,s,function(b){c&&c(v,b)});case 7:if(!_.sent){_.next=9;break}v.forEach(function(b){l.push(b)});case 9:return _.abrupt("return",new Promise(function(b){b(l)}));case 10:case"end":return _.stop()}},n,this)}));function r(n){return e.apply(this,arguments)}return r}()},{key:"init",value:function(){this.imp||(this.imp=new MxCpp.mxcadassemblyimp.McDrawUtility)}},{key:"getCorner",value:function(){var e=_asyncToGenerator(regenerator.mark(function n(o,s,c){var l,v,x,w,_,b,E,I,O=arguments;return regenerator.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:l=O.length>3&&O[3]!==void 0?O[3]:!1,v=O.length>4&&O[4]!==void 0?O[4]:!1,x=O.length>5?O[5]:void 0,w=0,_=void 0;case 5:if(s){A.next=15;break}return b=new MxCADUiPrPoint,o&&b.setMessage(o),x&&x(b),b.setDynamicInputType(DynamicInputType.kDynTip),A.next=13,b.go();case 13:s=A.sent,w=b.getDetailedResult();case 15:if(s){A.next=17;break}return A.abrupt("break",25);case 17:return E=MxCoordConvert.cad2doc1(s),A.next=20,MrxDbgUtils.getCorner(E,o,l,function(z){w=z.detailedResult},v);case 20:return I=A.sent,I&&(_=MxCoordConvert.doc2cad1(I)),A.abrupt("break",25);case 25:return c&&c(w),A.abrupt("return",new Promise(function(z){w==DetailedResult.kEcsIn||w==DetailedResult.kNewCommadIn||w==DetailedResult.kUnknown?z(null):z(s&&_?{pt1:s,pt2:_}:null)}));case 27:case"end":return A.stop()}},n)}));function r(n,o,s){return e.apply(this,arguments)}return r}()},{key:"getMcDbEntitysBoundingBox",value:function(r){var n=void 0,o=void 0;if(r.forEach(function(s){var c=s.getMcDbEntity();if(c!=null){var l=c.getBoundingBox();!l.ret||(!n||!o?(n=new THREE.Vector3(l.minPt.x,l.minPt.y,0),o=new THREE.Vector3(l.maxPt.x,l.maxPt.y,0)):(n.x>l.minPt.x&&(n.x=l.minPt.x),n.y>l.minPt.y&&(n.y=l.minPt.y),o.x<l.maxPt.x&&(o.x=l.maxPt.x),o.y<l.maxPt.y&&(o.y=l.maxPt.y)))}}),n&&o)return{minPt:new McGePoint3d(n),maxPt:new McGePoint3d(o)}}},{key:"calcBulge",value:function(r,n,o){var s=this.imp.calcBulge(r.imp,n.imp,o.imp);return{val:s,ret:MxCpp.getCallResult()==0}}},{key:"builderHatchFromPoint",value:function(r){var n=this.imp.builderHatchFromPoint(r.x,r.y);return n.isNull()?(MxCpp.App.destroyObject(n),null):new McDbHatch(n)}}]),t}(),MxCADUtility=new MxCADUtilityClass,MxCADSelectionSetStatus=function(t){return t[t.kSelected=0]="kSelected",t[t.kNone=1]="kNone",t[t.kCanceled=2]="kCanceled",t[t.kRejected=3]="kRejected",t[t.kKeyword=4]="kKeyword",t}(MxCADSelectionSetStatus||{}),MxCADSelectionSet=function(t){_inherits$1(r,t);var e=_createSuper$5(r);function r(){var n;return _classCallCheck$1(this,r),n=e.call(this),_defineProperty(_assertThisInitialized$1(n),"isWhileSelect",!0),_defineProperty(_assertThisInitialized$1(n),"isSelectHighlight",!0),_defineProperty(_assertThisInitialized$1(n),"selectPt1",new McGePoint3d),_defineProperty(_assertThisInitialized$1(n),"selectPt2",new McGePoint3d),n.initTempObject(new MxCpp.mxcadassemblyimp.McDrawSelSet),n}return _createClass$1(r,[{key:"getSelectPoint",value:function(){return{pt1:this.selectPt1,pt2:this.selectPt2}}},{key:"allSelect",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return this.imp.allSelect(getFilterImp(o))}},{key:"pointSelect",value:function(o,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1;return this.imp.pointSelect(o,s,getFilterImp(c),l)}},{key:"crossingSelect",value:function(o,s,c,l){var v=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null;return this.imp.crossingSelect(o,s,c,l,getFilterImp(v))}},{key:"count",value:function(){return this.imp.count()}},{key:"isNull",value:function(){return this.imp.count()==0}},{key:"item",value:function(o){return new McObjectId(this.imp.item(o),McObjectIdType.kMxCAD)}},{key:"forEach",value:function(o){for(var s=this.imp.count(),c=0;c<s;c++)o(this.item(c))}},{key:"getIds",value:function(){for(var o=[],s=this.imp.count(),c=0;c<s;c++)o.push(this.item(c));return o}},{key:"userSelect",value:function(){var n=_asyncToGenerator(regenerator.mark(function s(c){var l,v,x,w,_,b,E,I,O,N=arguments;return regenerator.wrap(function(z){for(;;)switch(z.prev=z.next){case 0:l=N.length>1&&N[1]!==void 0?N[1]:null,v=N.length>2?N[2]:void 0,this.selectPt1=new McGePoint3d,this.selectPt2=new McGePoint3d,x=new MrxDbgUiPrPoint,c&&x.setMessage(c),x.setCursorType(MxCursorType.kRect),x.setDynamicInputType(DynamicInputType.kDynTip),x.disableAllTrace(),w=0,v&&v(x),_=getFilterImp(l);case 12:return x.setDynamicInputType(DynamicInputType.kDynTip),z.next=16,x.go();case 16:if(b=z.sent,x.clearLastInputPoint(),w=x.getDetailedResult(),b){z.next=21;break}return z.abrupt("break",43);case 21:if(E=MxCoordConvert.doc2cad1(b),this.imp.userPointSelect(E.x,E.y,_,this.isSelectHighlight)!=0){z.next=30;break}if(this.selectPt1.copy(E),this.selectPt2.copy(E),!this.isWhileSelect){z.next=29;break}return z.abrupt("continue",12);case 29:return z.abrupt("break",43);case 30:return z.next=32,MrxDbgUtils.getCorner(b,c,!0,function(G){w=G.detailedResult});case 32:if(I=z.sent,I){z.next=35;break}return z.abrupt("break",43);case 35:if(O=MxCoordConvert.doc2cad1(I),this.imp.userSelect(E.x,E.y,O.x,O.y,_,this.isSelectHighlight),this.selectPt1.copy(E),this.selectPt2.copy(O),this.isWhileSelect){z.next=41;break}return z.abrupt("break",43);case 41:z.next=12;break;case 43:if(this.isSelectHighlight&&this.imp.highlightEntity(!1),!(w==DetailedResult.kEcsIn||w==DetailedResult.kNewCommadIn||w==DetailedResult.kUnknown)){z.next=48;break}return z.abrupt("return",new Promise(function(G){G(!1)}));case 48:return z.abrupt("return",new Promise(function(G){G(!0)}));case 49:case"end":return z.stop()}},s,this)}));function o(s){return n.apply(this,arguments)}return o}()}]),r}(McRxObject),MxCADUiPrBase=function(){function t(e){_classCallCheck$1(this,t),_defineProperty(this,"imp",void 0),_defineProperty(this,"mxobj",void 0),this.imp=e,this.mxobj=MxFun.getCurrentDraw()}return _createClass$1(t,[{key:"doc2cad1",value:function(r){return new McGePoint3d(r.x,r.y,r.z)}},{key:"doc2cad2",value:function(r,n,o){return new McGePoint3d(r,n,o)}},{key:"cad2doc1",value:function(r){return new THREE.Vector3(r.x,r.y,r.z)}},{key:"cad2doc2",value:function(r,n,o){return new THREE.Vector3(r,n,o)}},{key:"keyWords",value:function(){return this.imp.keyWords()}},{key:"setKeyWords",value:function(r){this.imp.setKeyWords(r)}},{key:"clearLastInputPoint",value:function(){this.imp.clearLastInputPoint()}},{key:"setLastInputPoint",value:function(r){this.imp.setLastInputPoint(this.cad2doc1(r))}},{key:"message",value:function(){return this.imp.message()}},{key:"setMessage",value:function(r){this.imp.setMessage(r)}},{key:"keyWordPicked",value:function(){return this.imp.keyWordPicked()}},{key:"isKeyWordPicked",value:function(r){return this.imp.isKeyWordPicked(r)}},{key:"setUserDraw",value:function(r){var n=this;this.imp.setUserDraw(function(o,s){r(n.doc2cad1(o),s)})}},{key:"getDetailedResult",value:function(){return this.imp.getDetailedResult()}},{key:"getStatus",value:function(){return this.imp.getStatus()}},{key:"drawReserve",value:function(r){this.imp.drawReserve(r)}},{key:"setInputToucheType",value:function(r){this.imp.setInputToucheType(r)}},{key:"getInputToucheType",value:function(){return this.imp.getInputToucheType()}},{key:"setCursorType",value:function(r){this.imp.setCursorType(r)}},{key:"getCursorType",value:function(){return this.imp.getCursorType()}},{key:"setDynamicInputType",value:function(r){this.imp.setDynamicInputType(r)}},{key:"getDynamicInputType",value:function(){return this.imp.getDynamicInputType()}},{key:"isDisableDynInput",value:function(){return this.imp.isDisableDynInput()}},{key:"setDisableDynInput",value:function(r){this.imp.setDisableDynInput(r)}},{key:"setDisableOsnap",value:function(r){this.imp.setDisableOsnap(r)}},{key:"isDisableOsnap",value:function(){return this.imp.isDisableOsnap()}},{key:"setDisableDynamicTrace",value:function(r){this.imp.setDisableDynamicTrace(r)}},{key:"isDisableDynamicTrace",value:function(){return this.imp.isDisableDynamicTrace()}},{key:"setDisablePolarAxisTrace",value:function(r){this.imp.setDisablePolarAxisTrace(r)}},{key:"isDisablePolarAxisTrace",value:function(){return this.imp.isDisablePolarAxisTrace()}},{key:"setDisableGridTrace",value:function(r){this.imp.setDisableGridTrace(r)}},{key:"isDisableGridTrace",value:function(){return this.imp.isDisableGridTrace()}},{key:"setDisableOrthoTrace",value:function(r){this.imp.setDisableOrthoTrace(r)}},{key:"isDisableOrthoTrace",value:function(){return this.imp.isDisableOrtho()}},{key:"disableAllTrace",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.imp.disableAllTrace(r)}},{key:"userInputControls",value:function(){return this.imp.userInputControls()}},{key:"setUserInputControls",value:function(r){this.imp.setUserInputControls(r)}},{key:"abort",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:DetailedResult.kCodeAbort;this.imp.abort(r)}}]),t}(),MxCADUiPrPoint=function(t){_inherits$1(r,t);var e=_createSuper$5(r);function r(){return _classCallCheck$1(this,r),e.call(this,new MrxDbgUiPrPoint)}return _createClass$1(r,[{key:"go",value:function(){var o=this;return new Promise(function(s){o.imp.go(function(c){c!=0?s(null):s(o.doc2cad1(o.imp.value()))})})}},{key:"value",value:function(){return this.doc2cad1(this.imp.value())}},{key:"getDocValue",value:function(){return new McGePoint3d(this.imp.value())}},{key:"basePt",value:function(){return this.doc2cad1(this.imp.basePt())}},{key:"setBasePt",value:function(o){this.imp.setBasePt(this.cad2doc1(o)),this.imp.setUseBasePt(!0)}},{key:"setUseBasePt",value:function(o){this.imp.setUseBasePt(o)}}]),r}(MxCADUiPrBase),MxCADUiPrDist=function(t){_inherits$1(r,t);var e=_createSuper$5(r);function r(){return _classCallCheck$1(this,r),e.call(this,new MrxDbgUiPrDist)}return _createClass$1(r,[{key:"value",value:function(){return this.imp.value()}},{key:"basePt",value:function(){return this.doc2cad1(this.imp.basePt())}},{key:"setBasePt",value:function(o){this.imp.setBasePt(this.cad2doc1(o)),this.imp.setUseBasePt(!0)}},{key:"setUseBasePt",value:function(o){return this.imp.setUseBasePt(o)}},{key:"go",value:function(){return this.imp.go()}}]),r}(MxCADUiPrBase),MxCADUiPrAngle=function(t){_inherits$1(r,t);var e=_createSuper$5(r);function r(){return _classCallCheck$1(this,r),e.call(this,new MrxDbgUiPrAngle)}return _createClass$1(r,[{key:"value",value:function(){return this.imp.value()}},{key:"basePt",value:function(){return this.doc2cad1(this.imp.basePt())}},{key:"setBasePt",value:function(o){this.imp.setBasePt(this.cad2doc1(o)),this.imp.setUseBasePt(!0)}},{key:"setUseBasePt",value:function(o){return this.imp.setUseBasePt(o)}},{key:"go",value:function(){return this.imp.go()}}]),r}(MxCADUiPrBase),MxCADUiPrInt=function(t){_inherits$1(r,t);var e=_createSuper$5(r);function r(){return _classCallCheck$1(this,r),e.call(this,new MrxDbgUiPrInt)}return _createClass$1(r,[{key:"value",value:function(){return this.imp.value()}},{key:"go",value:function(){return this.imp.go()}}]),r}(MxCADUiPrBase),MxCADUiPrKeyWord=function(t){_inherits$1(r,t);var e=_createSuper$5(r);function r(){return _classCallCheck$1(this,r),e.call(this,new MrxDbgUiPrKeyWord)}return _createClass$1(r,[{key:"go",value:function(){return this.imp.go()}}]),r}(MxCADUiPrBase),MxCADUiPrString=function(t){_inherits$1(r,t);var e=_createSuper$5(r);function r(){var n;return _classCallCheck$1(this,r),n=e.call(this,new MrxDbgUiPrString),n.setDynamicInputType(DynamicInputType.kNoInput),n.disableAllTrace(),n}return _createClass$1(r,[{key:"value",value:function(){return this.imp.value()}},{key:"go",value:function(){return this.imp.go()}}]),r}(MxCADUiPrBase),MxCADUiPrEntity=function(t){_inherits$1(r,t);var e=_createSuper$5(r);function r(){var n;return _classCallCheck$1(this,r),n=e.call(this,new MrxDbgUiPrPoint),_defineProperty(_assertThisInitialized$1(n),"filter",void 0),_defineProperty(_assertThisInitialized$1(n),"id",new McObjectId),n.setCursorType(MxCursorType.kRect),n.setDynamicInputType(DynamicInputType.kDynTip),n.disableAllTrace(),n}return _createClass$1(r,[{key:"setFilter",value:function(o){this.filter=o}},{key:"getFilter",value:function(){return this.filter}},{key:"go",value:function(){var o=this;return new Promise(function(s){var c=o;o.imp.go(function(l){if(c.clearLastInputPoint(),l!=0)s(new McObjectId);else{var v=c.imp.value(),x=c.doc2cad1(v);c.id=MxCADUtility.findEntAtPoint(x.x,x.y,x.z,-1,c.filter),s(c.id)}})})}},{key:"pickPoint",value:function(){return this.doc2cad1(this.imp.value())}},{key:"value",value:function(){return this.id}},{key:"getDocPickPoint",value:function(){return new McGePoint3d(this.imp.value())}}]),r}(MxCADUiPrBase);function _createSuper$4(t){var e=_isNativeReflectConstruct$4();return function(){var n=_getPrototypeOf$1(t),o;if(e){var s=_getPrototypeOf$1(this).constructor;o=Reflect.construct(n,arguments,s)}else o=n.apply(this,arguments);return _possibleConstructorReturn$1(this,o)}}function _isNativeReflectConstruct$4(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var McDb;(function(t){(function(e){e[e.kTextLeft=0]="kTextLeft",e[e.kTextCenter=1]="kTextCenter",e[e.kTextRight=2]="kTextRight",e[e.kTextAlign=3]="kTextAlign",e[e.kTextMid=4]="kTextMid",e[e.kTextFit=5]="kTextFit"})(t.TextHorzMode||(t.TextHorzMode={})),function(e){e[e.kOnBothOperands=0]="kOnBothOperands",e[e.kExtendThis=1]="kExtendThis",e[e.kExtendArg=2]="kExtendArg",e[e.kExtendBoth=3]="kExtendBoth"}(t.Intersect||(t.Intersect={})),function(e){e[e.kTextBase=0]="kTextBase",e[e.kTextBottom=1]="kTextBottom",e[e.kTextVertMid=2]="kTextVertMid",e[e.kTextTop=3]="kTextTop"}(t.TextVertMode||(t.TextVertMode={})),function(e){e[e.kTopLeft=1]="kTopLeft",e[e.kTopCenter=2]="kTopCenter",e[e.kTopRight=3]="kTopRight",e[e.kMiddleLeft=4]="kMiddleLeft",e[e.kMiddleCenter=5]="kMiddleCenter",e[e.kMiddleRight=6]="kMiddleRight",e[e.kBottomLeft=7]="kBottomLeft",e[e.kBottomCenter=8]="kBottomCenter",e[e.kBottomRight=9]="kBottomRight",e[e.kBaseLeft=10]="kBaseLeft",e[e.kBaseCenter=11]="kBaseCenter",e[e.kBaseRight=12]="kBaseRight",e[e.kBaseAlign=13]="kBaseAlign",e[e.kBottomAlign=14]="kBottomAlign",e[e.kMiddleAlign=15]="kMiddleAlign",e[e.kTopAlign=16]="kTopAlign",e[e.kBaseFit=17]="kBaseFit",e[e.kBottomFit=18]="kBottomFit",e[e.kMiddleFit=19]="kMiddleFit",e[e.kTopFit=20]="kTopFit",e[e.kBaseMid=21]="kBaseMid",e[e.kBottomMid=22]="kBottomMid",e[e.kMiddleMid=23]="kMiddleMid",e[e.kTopMid=24]="kTopMid"}(t.AttachmentPoint||(t.AttachmentPoint={})),function(e){e[e.kLnWt000=0]="kLnWt000",e[e.kLnWt005=5]="kLnWt005",e[e.kLnWt009=9]="kLnWt009",e[e.kLnWt013=13]="kLnWt013",e[e.kLnWt015=15]="kLnWt015",e[e.kLnWt018=18]="kLnWt018",e[e.kLnWt020=20]="kLnWt020",e[e.kLnWt025=25]="kLnWt025",e[e.kLnWt030=30]="kLnWt030",e[e.kLnWt035=35]="kLnWt035",e[e.kLnWt040=40]="kLnWt040",e[e.kLnWt050=50]="kLnWt050",e[e.kLnWt053=53]="kLnWt053",e[e.kLnWt060=60]="kLnWt060",e[e.kLnWt070=70]="kLnWt070",e[e.kLnWt080=80]="kLnWt080",e[e.kLnWt090=90]="kLnWt090",e[e.kLnWt100=100]="kLnWt100",e[e.kLnWt106=106]="kLnWt106",e[e.kLnWt120=120]="kLnWt120",e[e.kLnWt140=140]="kLnWt140",e[e.kLnWt158=158]="kLnWt158",e[e.kLnWt200=200]="kLnWt200",e[e.kLnWt211=211]="kLnWt211",e[e.kLnWtByLayer=-1]="kLnWtByLayer",e[e.kLnWtByBlock=-2]="kLnWtByBlock",e[e.kLnWtByLwDefault=-3]="kLnWtByLwDefault"}(t.LineWeight||(t.LineWeight={})),function(e){e[e.kDefault=0]="kDefault",e[e.kExternal=1]="kExternal",e[e.kPolyline=2]="kPolyline",e[e.kDerived=4]="kDerived",e[e.kTextbox=8]="kTextbox",e[e.kOutermost=16]="kOutermost",e[e.kNotClosed=32]="kNotClosed",e[e.kSelfIntersecting=64]="kSelfIntersecting",e[e.kTextIsland=128]="kTextIsland"}(t.HatchLoopType||(t.HatchLoopType={})),function(e){e[e.kLine=1]="kLine",e[e.kCirArc=2]="kCirArc",e[e.kEllArc=3]="kEllArc",e[e.kSpline=4]="kSpline"}(t.HatchEdgeType||(t.HatchEdgeType={})),function(e){e[e.kUserDefined=0]="kUserDefined",e[e.kPreDefined=1]="kPreDefined",e[e.kCustomDefined=2]="kCustomDefined"}(t.HatchPatternType||(t.HatchPatternType={})),function(e){e[e.kNormal=0]="kNormal",e[e.kOuter=1]="kOuter",e[e.kIgnore=2]="kIgnore"}(t.HatchStyle||(t.HatchStyle={})),function(e){e[e.kInvalid=0]="kInvalid",e[e.kRect=1]="kRect",e[e.kPoly=2]="kPoly"}(t.ClipBoundaryType||(t.ClipBoundaryType={}))})(McDb||(McDb={}));var McCmColor=function(){function t(e,r,n){_classCallCheck$1(this,t),_defineProperty(this,"imp",void 0),this.imp=new MxCpp.mxcadassemblyimp.MdCmColor,e instanceof Object?(this.imp.red=e.red,this.imp.green=e.green,this.imp.blue=e.blue,this.imp.method=e.method,this.imp.n=e.n,this.imp.colorIndex=e.colorIndex):typeof e=="number"&&typeof r=="number"&&typeof n=="number"&&this.imp.setRGB(e,r,n)}return _createClass$1(t,[{key:"getImp",value:function(){return this.imp}},{key:"copy",value:function(r){return this.imp.red=r.imp.red,this.imp.green=r.imp.green,this.imp.blue=r.imp.blue,this.imp.method=r.imp.method,this.imp.n=r.imp.n,this.imp.colorIndex=r.imp.colorIndex,this}},{key:"clone",value:function(){return new t(this.imp)}},{key:"setColorIndex",value:function(r){this.imp.setColorIndex(r)}},{key:"setRGB",value:function(r,n,o){this.imp.setRGB(r,n,o)}},{key:"red",get:function(){return this.imp.red},set:function(r){this.imp.red=r}},{key:"green",get:function(){return this.imp.green},set:function(r){this.imp.green=r}},{key:"blue",get:function(){return this.imp.blue},set:function(r){this.imp.blue=r}},{key:"n",get:function(){return this.imp.n},set:function(r){this.imp.n=r}},{key:"method",get:function(){return this.imp.method},set:function(r){this.imp.method=r}},{key:"colorIndex",get:function(){return this.imp.colorIndex},set:function(r){this.imp.colorIndex=r}},{key:"getColorString",value:function(){return MxG2312Obj.decodeFromGb2312(this.imp.getColorString())}},{key:"getColorValue",value:function(r,n){var o=0;(r==null?void 0:r.type)==McObjectIdType.kMxCAD&&(o=r.id);var s=0;return(n==null?void 0:n.type)==McObjectIdType.kMxCAD&&(s=n.id),this.imp.getColorValue(o,s)}},{key:"getStyle",value:function(){var r=this.red,n=this.green,o=this.blue,s=this.colorIndex,c=getColorUtils(r/255,n/255,o/255),l=s===ColorIndexType.kWhite;if(l){var v={h:0,s:0,l:0};c.getHSL(v),v.h=(v.h+.5)%1,c.setHSL(v.h,v.s,v.l)}return c.getStyle()}}]),t}(),McDbLinetypeTableRecord=function(t){_inherits$1(r,t);var e=_createSuper$4(r);function r(n){var o;return _classCallCheck$1(this,r),o=e.call(this,n),n||o.initTempObject(new MxCpp.mxcadassemblyimp.MdDbLinetypeTableRecord),o}return _createClass$1(r,[{key:"name",get:function(){return MxG2312Obj.decodeFromGb2312(this.imp.getName())},set:function(o){this.imp.setName(MxG2312Obj.encodeToGb2312(o))}},{key:"numDashes",get:function(){return this.imp.numDashes()},set:function(o){this.imp.setNumDashes(o)}},{key:"dashLengthAt",value:function(o){return this.imp.dashLengthAt(o)}},{key:"setDashLengthAt",value:function(o,s){return this.imp.setDashLengthAt(o,s)}},{key:"comments",get:function(){return MxG2312Obj.decodeFromGb2312(this.imp.comments())},set:function(o){this.imp.setComments(MxG2312Obj.encodeToGb2312(o))}},{key:"shapeStyleAt",value:function(o){return this.imp.shapeStyleAt(o)}},{key:"setShapeStyleAt",value:function(o,s){return this.imp.setShapeStyleAt(o,s)}},{key:"shapeNumberAt",value:function(o){return this.imp.shapeNumberAt(o)}},{key:"setShapeNumberAt",value:function(o,s){return this.imp.setShapeNumberAt(o,s)}},{key:"shapeOffsetAt",value:function(o){return new McGeVector3d(this.imp.shapeOffsetAt(o))}},{key:"setShapeOffsetAt",value:function(o,s){return this.imp.setShapeOffsetAt(o,s.imp)}},{key:"shapeScaleAt",value:function(o){return this.imp.shapeScaleAt(o)}},{key:"setShapeScaleAt",value:function(o,s){return this.imp.setShapeScaleAt(o,s)}},{key:"isScaledToFit",get:function(){return this.imp.isScaledToFit()},set:function(o){this.imp.setIsScaledToFit(o)}},{key:"shapeIsUcsOrientedAt",value:function(o){return this.imp.shapeIsUcsOrientedAt(o)}},{key:"setShapeIsUcsOrientedAt",value:function(o,s){return this.imp.setShapeScaleAt(o,s)}},{key:"shapeRotationAt",value:function(o){return this.imp.shapeRotationAt(o)}},{key:"setShapeRotationAt",value:function(o,s){return this.imp.setShapeRotationAt(o,s)}},{key:"textAt",value:function(o){return MxG2312Obj.decodeFromGb2312(this.imp.textAt(o))}},{key:"setTextAt",value:function(o,s){return this.imp.setTextAt(o,MxG2312Obj.encodeToGb2312(s))}}]),r}(McDbObject),McDbTextStyleTableRecord=function(t){_inherits$1(r,t);var e=_createSuper$4(r);function r(n){var o;return _classCallCheck$1(this,r),o=e.call(this,n),n||o.initTempObject(new MxCpp.mxcadassemblyimp.MdDbTextStyleTableRecord),o}return _createClass$1(r,[{key:"name",get:function(){return MxG2312Obj.decodeFromGb2312(this.imp.getName())},set:function(o){this.imp.setName(MxG2312Obj.encodeToGb2312(o))}},{key:"isShapeFile",get:function(){return this.imp.isShapeFile()},set:function(o){this.imp.setIsShapeFile(o)}},{key:"isVertical",get:function(){return this.imp.isVertical()},set:function(o){this.imp.setIsVertical(o)}},{key:"textSize",get:function(){return this.imp.textSize()},set:function(o){this.imp.setTextSize(o)}},{key:"xScale",get:function(){return this.imp.xScale()},set:function(o){this.imp.setXScale(o)}},{key:"obliquingAngle",get:function(){return this.imp.obliquingAngle()},set:function(o){this.imp.setObliquingAngle(o)}},{key:"flagBits",get:function(){return this.imp.flagBits()},set:function(o){this.imp.setFlagBits(o)}},{key:"fileName",get:function(){return MxG2312Obj.decodeFromGb2312(this.imp.fileName())},set:function(o){this.imp.setFileName(MxG2312Obj.encodeToGb2312(o))}},{key:"bigFontFileName",get:function(){return MxG2312Obj.decodeFromGb2312(this.imp.bigFontFileName())},set:function(o){this.imp.setBigFontFileName(MxG2312Obj.encodeToGb2312(o))}},{key:"setFont",value:function(o,s,c,l,v){return this.imp.setFont(MxG2312Obj.encodeToGb2312(o),s,c,l,v)}},{key:"font",value:function(){var o=this.imp.font();if(!o)return{sTypeface:"",bold:!1,italic:!1,charset:0,pitchAndFamily:0};var s=MxG2312Obj.decodeFromGb2312(o.AtString(0)),c=o.Atlong(1)!=0,l=o.Atlong(2)!=0,v=o.Atlong(3),x=o.Atlong(4);return{sTypeface:s,bold:c,italic:l,charset:v,pitchAndFamily:x}}}]),r}(McDbObject),McDbLayerTableRecord=function(t){_inherits$1(r,t);var e=_createSuper$4(r);function r(n){var o;return _classCallCheck$1(this,r),o=e.call(this,n),n||o.initTempObject(new MxCpp.mxcadassemblyimp.MdDbLayerTableRecord),o}return _createClass$1(r,[{key:"name",get:function(){return MxG2312Obj.decodeFromGb2312(this.imp.getName())},set:function(o){this.imp.setName(MxG2312Obj.encodeToGb2312(o))}},{key:"isFrozen",get:function(){return this.imp.isFrozen()},set:function(o){this.imp.setIsFrozen(o)}},{key:"isOff",get:function(){return this.imp.isOff()},set:function(o){this.imp.setIsOff(o)}},{key:"isLocked",get:function(){return this.imp.isLocked()},set:function(o){this.imp.setIsLocked(o)}},{key:"color",get:function(){return new McCmColor(this.imp.color())},set:function(o){this.imp.setColor(o.getImp())}},{key:"linetypeObjectId",get:function(){return new McObjectId(this.imp.linetypeObjectId(),McObjectIdType.kMxCAD)},set:function(o){this.imp.setLinetypeObjectId(o.id)}},{key:"lineWeight",get:function(){return this.imp.lineWeight()},set:function(o){this.imp.setLineWeight(o)}}]),r}(McDbObject),McDbLayerTable=function(t){_inherits$1(r,t);var e=_createSuper$4(r);function r(n){return _classCallCheck$1(this,r),e.call(this,n)}return _createClass$1(r,[{key:"getAllRecordId",value:function(){for(var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,s=[],c=this.imp.getAllRecordId(o),l=c.length(),v=0;v<l;v++)s.push(new McObjectId(c.at(v),McObjectIdType.kMxCAD));return MxCpp.App.getImp().DestroyMdGeLongArray(c),s}},{key:"add",value:function(o){return new McObjectId(this.imp.add(o.getImp()),McObjectIdType.kMxCAD)}},{key:"get",value:function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,c=MxG2312Obj.encodeToGb2312(o);return new McObjectId(this.imp.get(c,s))}},{key:"has",value:function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,c=MxG2312Obj.encodeToGb2312(o);return this.imp.get(c,s)!=0}}]),r}(McDbObject),McDbLinetypeTable=function(t){_inherits$1(r,t);var e=_createSuper$4(r);function r(n){return _classCallCheck$1(this,r),e.call(this,n)}return _createClass$1(r,[{key:"getAllRecordId",value:function(){for(var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,s=[],c=this.imp.getAllRecordId(o),l=c.length(),v=0;v<l;v++)s.push(new McObjectId(c.at(v),McObjectIdType.kMxCAD));return MxCpp.App.getImp().DestroyMdGeLongArray(c),s}},{key:"add",value:function(o){return new McObjectId(this.imp.add(o.getImp()),McObjectIdType.kMxCAD)}},{key:"get",value:function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,c=MxG2312Obj.encodeToGb2312(o);return new McObjectId(this.imp.get(c,s))}},{key:"has",value:function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,c=MxG2312Obj.encodeToGb2312(o);return this.imp.get(c,s)!=0}}]),r}(McDbObject),McDbTextStyleTable=function(t){_inherits$1(r,t);var e=_createSuper$4(r);function r(n){return _classCallCheck$1(this,r),e.call(this,n)}return _createClass$1(r,[{key:"getAllRecordId",value:function(){for(var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,s=[],c=this.imp.getAllRecordId(o),l=c.length(),v=0;v<l;v++)s.push(new McObjectId(c.at(v),McObjectIdType.kMxCAD));return MxCpp.App.getImp().DestroyMdGeLongArray(c),s}},{key:"add",value:function(o){return new McObjectId(this.imp.add(o.getImp()),McObjectIdType.kMxCAD)}},{key:"get",value:function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,c=MxG2312Obj.encodeToGb2312(o);return new McObjectId(this.imp.get(c,s))}},{key:"has",value:function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,c=MxG2312Obj.encodeToGb2312(o);return this.imp.get(c,s)!=0}}]),r}(McDbObject),McDbDatabase=function(t){_inherits$1(r,t);var e=_createSuper$4(r);function r(n){return _classCallCheck$1(this,r),e.call(this,n)}return _createClass$1(r,[{key:"getLayerTable",value:function(){return new McDbLayerTable(this.imp.GetLayerTable())}},{key:"layerTable",get:function(){return new McDbLayerTable(this.imp.GetLayerTable())}},{key:"getLinetypeTable",value:function(){return new McDbLinetypeTable(this.imp.GetLinetypeTable())}},{key:"linetypeTable",get:function(){return new McDbLinetypeTable(this.imp.GetLinetypeTable())}},{key:"getTextStyleTable",value:function(){return new McDbTextStyleTable(this.imp.GetTextStyleTable())}},{key:"textStyleTable",get:function(){return new McDbTextStyleTable(this.imp.GetTextStyleTable())}},{key:"getBlockTable",value:function(){return new McDbBlockTable(this.imp.GetBlockTable())}},{key:"getNamedObjectsDictionary",value:function(){return new McDbDictionary(this.imp.GetNamedObjectsDictionary())}},{key:"blockTable",get:function(){return new McDbBlockTable(this.imp.GetBlockTable())}},{key:"currentSpace",get:function(){return new McDbBlockTableRecord(this.imp.CurrentSpace())}},{key:"getCurrentlyLineTypeScale",value:function(){return this.imp.GetCurrentlyLineTypeScale()}},{key:"setCurrentlyLineTypeScale",value:function(o){return this.imp.SetCurrentlyLineTypeScale(o)}},{key:"getCurrentlyLineTypeName",value:function(){var o=this.imp.GetCurrentlyLineTypeName();return MxG2312Obj.decodeFromGb2312(o)}},{key:"setCurrentlyLineTypeName",value:function(o){var s=MxG2312Obj.encodeToGb2312(o);this.imp.SetCurrentlyLineTypeName(s)}},{key:"getCurrentlyLayerName",value:function(){var o=this.imp.GetCurrentlyLayerName();return MxG2312Obj.decodeFromGb2312(o)}},{key:"setCurrentlyLayerName",value:function(o){var s=MxG2312Obj.encodeToGb2312(o);this.imp.SetCurrentlyLayerName(s)}},{key:"getCurrentlyTrueColor",value:function(){return new McCmColor(this.imp.GetCurrentlyTrueColor())}},{key:"getCurrentlyDrawColor",value:function(){var o=this.imp.GetCurrentlyDrawColor(),s=new THREE.Color;return s.setRGB(o.at(0)/255,o.at(1)/255,o.at(2)/255),s}},{key:"setCurrentlyTrueColor",value:function(o){return this.imp.SetCurrentlyTrueColor(o.getImp())}},{key:"getCurrentlyColorIndex",value:function(){return this.imp.GetCurrentlyColorIndex()}},{key:"setCurrentlyColorIndex",value:function(o){return this.imp.SetCurrentlyColorIndex(o)}},{key:"getCurrentlyTextStyleName",value:function(){var o=this.imp.GetCurrentlyTextStyleName();return MxG2312Obj.decodeFromGb2312(o)}},{key:"setCurrentlyTextStyle",value:function(o){var s=MxG2312Obj.encodeToGb2312(o);this.imp.SetCurrentlyTextStyle(s)}},{key:"handleToIdIndex",value:function(o){var s=this.imp.HandleToIdIndex(o);return new McObjectId(s,McObjectIdType.kMxCAD)}},{key:"isModifyed",value:function(){return this.imp.IsModifyed()}},{key:"resetModificationStatus",value:function(){return this.imp.SetModifyed(!1)}}]),r}(McRxObject),McDbBlockTableRecord=function(t){_inherits$1(r,t);var e=_createSuper$4(r);function r(n){var o;return _classCallCheck$1(this,r),o=e.call(this,n),n||o.initTempObject(new MxCpp.mxcadassemblyimp.MdDbBlockTableRecord),o}return _createClass$1(r,[{key:"appendAcDbEntity",value:function(o){var s=o.syncData(!0),c=new McObjectId(this.imp.appendAcDbEntity(o.getImp()),McObjectIdType.kMxCAD);return s&&c.syncMcDbCustomEntity(),c}},{key:"getAllEntityId",value:function(){for(var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,s=[],c=this.imp.getAllEntityId(o),l=c.length(),v=0;v<l;v++)s.push(new McObjectId(c.at(v),McObjectIdType.kMxCAD));return MxCpp.App.getImp().DestroyMdGeLongArray(c),s}},{key:"getMinMaxDrawOrder",value:function(){var o=this.imp.getMinMaxDrawOrder();return{minDrawOrder:o.x,maxDrawOrder:o.y}}},{key:"origin",get:function(){return new McGePoint3d(this.imp.origin())},set:function(o){this.imp.setOrigin(o.imp)}},{key:"getBoundingBox",value:function(){var o=this.imp.getBoundingBox();if(o.length()<2)return{minPt:new McGePoint3d,maxPt:new McGePoint3d,ret:!1};var s={minPt:new McGePoint3d(o.at(0)),maxPt:new McGePoint3d(o.at(1)),ret:!0};return s}},{key:"invalidBoundingBoxBuffer",value:function(){this.imp.invalidBoundingBoxBuffer()}},{key:"name",get:function(){return MxG2312Obj.decodeFromGb2312(this.imp.getName())},set:function(o){this.imp.setName(MxG2312Obj.encodeToGb2312(o))}}]),r}(McDbObject),McDbBlockTable=function(t){_inherits$1(r,t);var e=_createSuper$4(r);function r(n){var o;return _classCallCheck$1(this,r),o=e.call(this,n),n||o.initTempObject(new MxCpp.mxcadassemblyimp.MdDbBlockTable),o}return _createClass$1(r,[{key:"getAllRecordId",value:function(){for(var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,s=[],c=this.imp.getAllRecordId(o),l=c.length(),v=0;v<l;v++)s.push(new McObjectId(c.at(v),McObjectIdType.kMxCAD));return MxCpp.App.getImp().DestroyMdGeLongArray(c),s}},{key:"add",value:function(o){if(typeof o=="string"){if(o.length>0){var s=this.get(o,!1);if(s.isValid()){var c=s.getMcDbBlockTableRecord();return c&&c.isErased()&&c.unErase(),s}}var l=new McDbBlockTableRecord;return l.name=o,new McObjectId(this.imp.add(l.getImp()),McObjectIdType.kMxCAD)}else return new McObjectId(this.imp.add(o.getImp()),McObjectIdType.kMxCAD)}},{key:"get",value:function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,c=MxG2312Obj.encodeToGb2312(o);return new McObjectId(this.imp.get(c,s))}},{key:"has",value:function(o){var s=MxG2312Obj.encodeToGb2312(o);return this.imp.get(s,!0)!=0}}]),r}(McDbObject),McDbRasterImageDef=function(t){_inherits$1(r,t);var e=_createSuper$4(r);function r(n){var o;return _classCallCheck$1(this,r),o=e.call(this,n),n||o.initTempObject(new MxCpp.mxcadassemblyimp.MdDbRasterImageDef),o}return _createClass$1(r,[{key:"sourceFileName",get:function(){return MxG2312Obj.decodeFromGb2312(this.imp.sourceFileName())},set:function(o){this.imp.setSourceFileName(MxG2312Obj.encodeToGb2312(o))}}]),r}(McDbObject),McDbDictionary=function(t){_inherits$1(r,t);var e=_createSuper$4(r);function r(n){var o;return _classCallCheck$1(this,r),o=e.call(this,n),n||o.initTempObject(new MxCpp.mxcadassemblyimp.MdDbDictionary),o}return _createClass$1(r,[{key:"getAllObject",value:function(){for(var o=[],s=this.imp.getAllObject(),c=s.length(),l=0;l<c;l++)o.push(new McObjectId(s.at(l),McObjectIdType.kMxCAD));return MxCpp.App.getImp().DestroyMdGeLongArray(s),o}},{key:"getAllObjectName",value:function(){var o=this.imp.getAllObjectName(),s=new McGeStringArray(o);return MxCpp.App.getImp().DestroyMdGeStringArray(o),s}},{key:"remove",value:function(o){var s=MxG2312Obj.encodeToGb2312(o);return this.imp.remove(s)}},{key:"addObject",value:function(o,s){var c=MxG2312Obj.encodeToGb2312(o);return new McObjectId(this.imp.addObject(c,s.getImp()),McObjectIdType.kMxCAD)}},{key:"getAt",value:function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=MxG2312Obj.encodeToGb2312(o);return new McObjectId(this.imp.getAt(c,s),McObjectIdType.kMxCAD)}}]),r}(McDbObject),McDbXrecord=function(t){_inherits$1(r,t);var e=_createSuper$4(r);function r(n){var o;return _classCallCheck$1(this,r),o=e.call(this,n),n||o.initTempObject(new MxCpp.mxcadassemblyimp.MdDbXrecord),o}return _createClass$1(r,[{key:"setData",value:function(o){return this.imp.setData(o.getImp())}},{key:"getData",value:function(){return new MxCADResbuf(this.imp.getData())}}]),r}(McDbObject);function _createSuper$3(t){var e=_isNativeReflectConstruct$3();return function(){var n=_getPrototypeOf$1(t),o;if(e){var s=_getPrototypeOf$1(this).constructor;o=Reflect.construct(n,arguments,s)}else o=n.apply(this,arguments);return _possibleConstructorReturn$1(this,o)}}function _isNativeReflectConstruct$3(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var McDbEntity=function(t){_inherits$1(r,t);var e=_createSuper$3(r);function r(n){return _classCallCheck$1(this,r),e.call(this,n)}return _createClass$1(r,[{key:"explode",value:function(){var o=this.imp.explode();return new MxCADResbuf(o)}},{key:"trueColor",get:function(){return new McCmColor(this.imp.TrueColor())},set:function(o){this.imp.SetTrueColor(o.getImp())}},{key:"colorIndex",get:function(){return this.imp.ColorIndex()},set:function(o){this.imp.SetColorIndex(o)}},{key:"layer",get:function(){return MxG2312Obj.decodeFromGb2312(this.imp.Layer())},set:function(o){this.imp.SetLayer(MxG2312Obj.encodeToGb2312(o))}},{key:"linetype",get:function(){return MxG2312Obj.decodeFromGb2312(this.imp.Linetype())},set:function(o){this.imp.SetLinetype(MxG2312Obj.encodeToGb2312(o))}},{key:"linetypeScale",get:function(){return this.imp.LinetypeScale()},set:function(o){this.imp.SetLinetypeScale(o)}},{key:"visible",get:function(){return this.imp.Visible()},set:function(o){this.imp.SetVisible(o)}},{key:"lineweight",get:function(){return this.imp.Lineweight()},set:function(o){this.imp.SetLineweight(o)}},{key:"textStyle",get:function(){return MxG2312Obj.decodeFromGb2312(this.imp.TextStyle())},set:function(o){this.imp.SetTextStyle(MxG2312Obj.encodeToGb2312(o))}},{key:"highlight",value:function(o){this.imp.Highlight(o)}},{key:"move",value:function(o,s){return this.imp.Move(o.imp,s.imp)}},{key:"rotate",value:function(o,s){return this.imp.Rotate(o.imp,s)}},{key:"mirror",value:function(o,s){return this.imp.Mirror(o.imp,s.imp)}},{key:"scaleEntity",value:function(o,s){return this.imp.ScaleEntity(o.imp,s)}},{key:"transformBy",value:function(o){return this.imp.TransformBy(o.imp)}},{key:"getBoundingBox",value:function(){var o=this.imp.GetBoundingBox();if(o){var s={minPt:new McGePoint3d(o.AtPoint(0)),maxPt:new McGePoint3d(o.AtPoint(1)),ret:!0};return MxCpp.App.destroyObject(o),s}else return{minPt:new McGePoint3d,maxPt:new McGePoint3d,ret:!1}}},{key:"getxData",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return new MxCADResbuf(this.imp.GetXData(MxG2312Obj.encodeToGb2312(o)))}},{key:"setxData",value:function(o){return this.imp.SetXData(o.getImp())}},{key:"getxDataString",value:function(o){var s=this.imp.GetxDataString(MxG2312Obj.encodeToGb2312(o),0);return{val:MxG2312Obj.decodeFromGb2312(s),ret:MxCpp.getCallResult()==0}}},{key:"setxDataString",value:function(o,s){return this.imp.SetxDataString(MxG2312Obj.encodeToGb2312(o),0,MxG2312Obj.encodeToGb2312(s))}},{key:"getxDataDouble",value:function(o){return{val:this.imp.GetxDataDouble(MxG2312Obj.encodeToGb2312(o),0),ret:MxCpp.getCallResult()==0}}},{key:"setxDataDouble",value:function(o,s){return this.imp.SetxDataDouble(MxG2312Obj.encodeToGb2312(o),0,s)}},{key:"getxDataLong",value:function(o){return{val:this.imp.GetxDataLong(MxG2312Obj.encodeToGb2312(o),0),ret:MxCpp.getCallResult()==0}}},{key:"setxDataLong",value:function(o,s){return this.imp.SetxDataLong(MxG2312Obj.encodeToGb2312(o),0,s)}},{key:"getxDataPoint",value:function(o){var s=this.imp.GetxDataPoint(MxG2312Obj.encodeToGb2312(o),0),c=new McGePoint3d;if(MxCpp.getCallResult()==0){var l=!1;return s&&(c.x=s.x,c.y=s.y,c.z=s.z,MxCpp.App.getImp().DestroyMdGePoint3d(s),l=!0),{val:c,ret:l}}else return{val:c,ret:!1}}},{key:"setxDataPoint",value:function(o,s){return this.imp.SetxDataPoint(MxG2312Obj.encodeToGb2312(o),0,s.imp)}},{key:"deleteXData",value:function(o){return this.imp.DeleteXData(MxG2312Obj.encodeToGb2312(o))}},{key:"getAllAppName",value:function(){return new McGeStringArray(this.imp.GetAllAppName())}},{key:"layerId",get:function(){return new McObjectId(this.imp.LayerId(),McObjectIdType.kMxCAD)},set:function(o){o.type==McObjectIdType.kMxCAD&&this.imp.SetLayerId(o.id)}},{key:"linetypeId",get:function(){return new McObjectId(this.imp.LinetypeId(),McObjectIdType.kMxCAD)},set:function(o){o.type==McObjectIdType.kMxCAD&&this.imp.SetLinetypeId(o.id)}},{key:"textStyleId",get:function(){return new McObjectId(this.imp.TextStyleId(),McObjectIdType.kMxCAD)},set:function(o){o.type==McObjectIdType.kMxCAD&&this.imp.SetTextStyleId(o.id)}},{key:"IntersectWith",value:function(o,s){return new McGePoint3dArray(this.imp.IntersectWith(o.imp,s))}},{key:"getArea",value:function(){var o=this.imp.getArea();return{val:o,ret:MxCpp.getCallResult()==0}}},{key:"disableDisplay",value:function(o){this.imp.disableUpdateDisplay(o)}},{key:"updateDisplay",value:function(){this.imp.updateDisplay()}},{key:"syncData",value:function(){return!1}},{key:"drawOrder",get:function(){return this.imp.DrawOrder()},set:function(o){this.imp.SetDrawOrder(o)}}]),r}(McDbObject),McDbCurve=function(t){_inherits$1(r,t);var e=_createSuper$3(r);function r(n){return _classCallCheck$1(this,r),e.call(this,n)}return _createClass$1(r,[{key:"getStartParam",value:function(){var o=this.imp.getStartParam();return{val:o,ret:MxCpp.getCallResult()==0}}},{key:"getEndParam",value:function(){return{val:this.imp.getEndParam(),ret:MxCpp.getCallResult()==0}}},{key:"getDistAtParam",value:function(o){return{val:this.imp.getDistAtParam(o),ret:MxCpp.getCallResult()==0}}},{key:"getParamAtDist",value:function(o){return{val:this.imp.getParamAtDist(o),ret:MxCpp.getCallResult()==0}}},{key:"getDistAtPoint",value:function(o){return{val:this.imp.getDistAtPoint(o.imp),ret:MxCpp.getCallResult()==0}}},{key:"getPointAtDist",value:function(o){return{val:new McGePoint3d(this.imp.getPointAtDist(o)),ret:MxCpp.getCallResult()==0}}},{key:"getStartPoint",value:function(){return{val:new McGePoint3d(this.imp.getStartPoint()),ret:MxCpp.getCallResult()==0}}},{key:"getEndPoint",value:function(){return{val:new McGePoint3d(this.imp.getStartPoint()),ret:MxCpp.getCallResult()==0}}},{key:"getPointAtParam",value:function(o){return{val:new McGePoint3d(this.imp.getPointAtParam(o)),ret:MxCpp.getCallResult()==0}}},{key:"getParamAtPoint",value:function(o){return{val:this.imp.getParamAtPoint(o.imp),ret:MxCpp.getCallResult()==0}}},{key:"getFirstDerivFromParam",value:function(o){return{val:new McGeVector3d(this.imp.getFirstDeriv(o)),ret:MxCpp.getCallResult()==0}}},{key:"getFirstDeriv",value:function(o){return{val:new McGeVector3d(this.imp.getFirstDerivEx(o.imp)),ret:MxCpp.getCallResult()==0}}},{key:"getClosestPointTo",value:function(o,s){return{val:new McGePoint3d(this.imp.getClosestPointTo(o.imp,s)),ret:MxCpp.getCallResult()==0}}},{key:"offsetCurves",value:function(o,s){var c=this.imp.offsetCurves(o,s.imp);return new McDbObjectArray(c)}},{key:"splitCurves",value:function(o){var s=new MxCADResbuf;o.forEach(function(l){s.AddPoint(l)});var c=this.imp.splitCurves(s.getImp());return new McDbObjectArray(c)}},{key:"splitCurvesFromParam",value:function(o){var s=new MxCADResbuf;o.forEach(function(l){s.AddDouble(l)});var c=this.imp.splitCurves(s.getImp());return new McDbObjectArray(c)}},{key:"getSamplePoints",value:function(o){var s=this.imp.getSamplePoints(o);return new MxCADResbuf(s)}},{key:"getLength",value:function(){var o=this.imp.getLength();return{val:o,ret:MxCpp.getCallResult()==0}}}]),r}(McDbEntity),McDbLine=function(t){_inherits$1(r,t);var e=_createSuper$3(r);function r(n,o,s,c,l,v){var x;return _classCallCheck$1(this,r),n instanceof Object?n instanceof McGePoint3d?(x=e.call(this),x.initTempObject(new MxCpp.mxcadassemblyimp.MdDbLine),o instanceof McGePoint3d&&(x.startPoint=n,x.endPoint=o)):x=e.call(this,n):(x=e.call(this),x.initTempObject(new MxCpp.mxcadassemblyimp.MdDbLine),x.startPoint=new McGePoint3d(n,o,s),x.endPoint=new McGePoint3d(c,l,v)),_possibleConstructorReturn$1(x)}return _createClass$1(r,[{key:"startPoint",get:function(){return new McGePoint3d(this.imp.startPoint())},set:function(o){this.imp.setStartPoint(o.imp)}},{key:"endPoint",get:function(){return new McGePoint3d(this.imp.endPoint())},set:function(o){this.imp.setEndPoint(o.imp)}}]),r}(McDbCurve),McDbText=function(t){_inherits$1(r,t);var e=_createSuper$3(r);function r(n){var o;return _classCallCheck$1(this,r),o=e.call(this,n),n||o.initTempObject(new MxCpp.mxcadassemblyimp.MdDbText),o}return _createClass$1(r,[{key:"position",get:function(){return new McGePoint3d(this.imp.position())},set:function(o){this.imp.setPosition(o.imp)}},{key:"alignmentPoint",get:function(){return new McGePoint3d(this.imp.position())},set:function(o){this.imp.setAlignmentPoint(o.imp)}},{key:"oblique",get:function(){return this.imp.oblique()},set:function(o){this.imp.setOblique(o)}},{key:"rotation",get:function(){return this.imp.rotation()},set:function(o){this.imp.setRotation(o)}},{key:"height",get:function(){return this.imp.height()},set:function(o){this.imp.setHeight(o)}},{key:"widthFactor",get:function(){return this.imp.widthFactor()},set:function(o){this.imp.setWidthFactor(o)}},{key:"textString",get:function(){return MxG2312Obj.decodeFromGb2312(this.imp.textString())},set:function(o){this.imp.setTextString(MxG2312Obj.encodeToGb2312(o))}},{key:"horizontalMode",get:function(){return this.imp.horizontalMode()},set:function(o){this.imp.setHorizontalMode(o)}},{key:"verticalMode",get:function(){return this.imp.verticalMode()},set:function(o){this.imp.setVerticalMode(o)}}]),r}(McDbEntity),McDbAttribute=function(t){_inherits$1(r,t);var e=_createSuper$3(r);function r(n){var o;return _classCallCheck$1(this,r),o=e.call(this,n),n||o.initTempObject(new MxCpp.mxcadassemblyimp.MdDbAttribute),o}return _createClass$1(r,[{key:"tag",get:function(){return MxG2312Obj.decodeFromGb2312(this.imp.tag())},set:function(o){this.imp.setTag(MxG2312Obj.encodeToGb2312(o))}},{key:"isInvisible",get:function(){return this.imp.isInvisible()},set:function(o){this.imp.setInvisible(o)}}]),r}(McDbText),McDbAttributeDefinition=function(t){_inherits$1(r,t);var e=_createSuper$3(r);function r(n){var o;return _classCallCheck$1(this,r),o=e.call(this,n),n||o.initTempObject(new MxCpp.mxcadassemblyimp.MdDbAttributeDefinition),o}return _createClass$1(r,[{key:"tag",get:function(){return MxG2312Obj.decodeFromGb2312(this.imp.tag())},set:function(o){this.imp.setTag(MxG2312Obj.encodeToGb2312(o))}},{key:"isInvisible",get:function(){return this.imp.isInvisible()},set:function(o){this.imp.setInvisible(o)}},{key:"prompt",get:function(){return MxG2312Obj.decodeFromGb2312(this.imp.prompt())},set:function(o){this.imp.setPrompt(MxG2312Obj.encodeToGb2312(o))}},{key:"isConstant",get:function(){return this.imp.isConstant()},set:function(o){this.imp.setConstant(o)}},{key:"isVerifiable",get:function(){return this.imp.isVerifiable()},set:function(o){this.imp.setVerifiable(o)}},{key:"isPreset",get:function(){return this.imp.isPreset()},set:function(o){this.imp.setPreset(o)}}]),r}(McDbText),McDbMText=function(t){_inherits$1(r,t);var e=_createSuper$3(r);function r(n){var o;return _classCallCheck$1(this,r),o=e.call(this,n),n||o.initTempObject(new MxCpp.mxcadassemblyimp.MdDbMText),o}return _createClass$1(r,[{key:"location",get:function(){return new McGePoint3d(this.imp.location())},set:function(o){this.imp.setLocation(o.imp)}},{key:"rotation",get:function(){return this.imp.rotation()},set:function(o){this.imp.setRotation(o)}},{key:"width",get:function(){return this.imp.width()},set:function(o){this.imp.setWidth(o)}},{key:"textHeight",get:function(){return this.imp.textHeight()},set:function(o){this.imp.setTextHeight(o)}},{key:"attachment",get:function(){return this.imp.attachment()},set:function(o){this.imp.setAttachment(o)}},{key:"contents",get:function(){return MxG2312Obj.decodeFromGb2312(this.imp.contents())},set:function(o){this.imp.setContents(MxG2312Obj.encodeToGb2312(o))}}]),r}(McDbEntity),McDbCircle=function(t){_inherits$1(r,t);var e=_createSuper$3(r);function r(n,o,s,c){var l;return _classCallCheck$1(this,r),n instanceof Object?l=e.call(this,n):(l=e.call(this),l.initTempObject(new MxCpp.mxcadassemblyimp.MdDbCircle),typeof n=="number"&&(l.imp.setCenter(new McGePoint3d(n,o,s).imp),l.imp.setRadius(c))),_possibleConstructorReturn$1(l)}return _createClass$1(r,[{key:"setCenter",value:function(o,s,c){this.imp.setCenter(new McGePoint3d(o,s,c).imp)}},{key:"center",get:function(){return new McGePoint3d(this.imp.center())},set:function(o){this.imp.setCenter(o.imp)}},{key:"radius",get:function(){return this.imp.radius()},set:function(o){this.imp.setRadius(o)}}]),r}(McDbCurve),McDbPolyline=function(t){_inherits$1(r,t);var e=_createSuper$3(r);function r(n){var o;return _classCallCheck$1(this,r),o=e.call(this,n),n||o.initTempObject(new MxCpp.mxcadassemblyimp.MdDbPolyline),o}return _createClass$1(r,[{key:"isClosed",get:function(){return this.imp.isClosed()},set:function(o){this.imp.setClosed(o)}},{key:"constantWidth",get:function(){return this.imp.getConstantWidth()},set:function(o){this.imp.setConstantWidth(o)}},{key:"addVertexAt",value:function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,v=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(o instanceof THREE.Vector3){var x=new MxCpp.mxcadassemblyimp.MdGePoint3d;return x.x=o.x,x.y=o.y,x.z=o.z,this.imp.addVertexAt(v,x,s,c,l)}else return this.imp.addVertexAt(v,o.imp,s,c,l)}},{key:"removeVertexAt",value:function(o){return this.imp.removeVertexAt(o)}},{key:"numVerts",value:function(){return this.imp.numVerts()}},{key:"getPointAt",value:function(o){return{val:new McGePoint3d(this.imp.getPointAt(o)),ret:MxCpp.getCallResult()}}},{key:"getBulgeAt",value:function(o){return this.imp.getBulgeAt(o)}},{key:"getWidthsAt",value:function(o){return{val1:this.imp.getStartWidthsAt(o),val2:this.imp.getEndWidthsAt(o),ret:MxCpp.getCallResult()==0}}},{key:"setPointAt",value:function(o,s){return this.imp.setPointAt(o,s.imp)}},{key:"setBulgeAt",value:function(o,s){return this.imp.setBulgeAt(o,s)}},{key:"setWidthsAt",value:function(o,s,c){return this.imp.setWidthsAt(o,s,c)}}]),r}(McDbCurve),McDbBlockReference=function(t){_inherits$1(r,t);var e=_createSuper$3(r);function r(n){var o;return _classCallCheck$1(this,r),o=e.call(this,n),n||o.initTempObject(new MxCpp.mxcadassemblyimp.MdDbBlockReference),o}return _createClass$1(r,[{key:"blockTableRecordId",get:function(){return new McObjectId(this.imp.blockTableRecordId(),McObjectIdType.kMxCAD)},set:function(o){this.imp.setBlockTableRecordId(o.id)}},{key:"position",get:function(){return new McGePoint3d(this.imp.position())},set:function(o){this.imp.setPosition(o.imp)}},{key:"scaleFactors",get:function(){return new McGePoint3d(this.imp.scaleFactors())},set:function(o){this.imp.setScaleFactors(o.imp)}},{key:"setScale",value:function(o){this.imp.setScaleFactors(new McGePoint3d(o,o,o).imp)}},{key:"getScale",value:function(){return this.imp.scaleFactors().x}},{key:"rotation",get:function(){return this.imp.rotation()},set:function(o){this.imp.setRotation(o)}},{key:"blockTransform",get:function(){return new McGeMatrix3d(this.imp.blockTransform())},set:function(o){this.imp.setBlockTransform(o.imp)}},{key:"blockName",get:function(){return MxG2312Obj.decodeFromGb2312(this.imp.getBlockName())}},{key:"appendAttribute",value:function(o){return new McObjectId(this.imp.appendAttribute(o.getImp()),McObjectIdType.kMxCAD)}},{key:"getAllAttribute",value:function(){for(var o=[],s=this.imp.getAllAttribute(),c=s.length(),l=0;l<c;l++)o.push(new McObjectId(s.at(l),McObjectIdType.kMxCAD));return MxCpp.App.getImp().DestroyMdGeLongArray(s),o}},{key:"createAttribute",value:function(){return this.imp.createAttribute()}}]),r}(McDbEntity),McDbDimension=function(t){_inherits$1(r,t);var e=_createSuper$3(r);function r(n){return _classCallCheck$1(this,r),e.call(this,n)}return _createClass$1(r,[{key:"textPosition",get:function(){return new McGePoint3d(this.imp.textPosition())},set:function(o){this.imp.setTextPosition(o.imp)}},{key:"isUsingDefaultTextPosition",value:function(){return this.imp.isUsingDefaultTextPosition()}},{key:"useSetTextPosition",value:function(){return this.imp.useSetTextPosition()}},{key:"useDefaultTextPosition",value:function(){return this.imp.useDefaultTextPosition()}},{key:"elevation",get:function(){return this.imp.elevation()},set:function(o){this.imp.setElevation(o)}},{key:"dimensionText",get:function(){return MxG2312Obj.decodeFromGb2312(this.imp.dimensionText())},set:function(o){this.imp.setDimensionText(MxG2312Obj.encodeToGb2312(o))}},{key:"textRotation",get:function(){return this.imp.textRotation()},set:function(o){this.imp.setTextRotation(o)}},{key:"dimensionStyle",get:function(){return new McObjectId(this.imp.dimensionStyle(),McObjectIdType.kMxCAD)},set:function(o){this.imp.setDimensionStyle(o.id)}},{key:"textAttachment",get:function(){return this.imp.textAttachment()},set:function(o){this.imp.setTextAttachment(o)}},{key:"horizontalRotation",get:function(){return this.imp.horizontalRotation()},set:function(o){this.imp.setHorizontalRotation(o)}},{key:"recomputeDimBlock",value:function(){this.imp.recomputeDimBlock(!0)}},{key:"getDimVarInt",value:function(o){return this.imp.GetDimVarInt(o)}},{key:"setDimVarInt",value:function(o,s){this.imp.SetDimVarInt(o,s)}},{key:"getDimVarDouble",value:function(o){return this.imp.GetDimVarDouble(o)}},{key:"setDimVarDouble",value:function(o,s){this.imp.SetDimVarDouble(o,s)}},{key:"getDimVarString",value:function(o){return this.imp.GetDimVarString(o)}},{key:"setDimVarString",value:function(o,s){this.imp.SetDimVarString(o,s)}},{key:"getDimVarObjectId",value:function(o){return new McObjectId(this.imp.GetDimVarObjectId(o),McObjectIdType.kMxCAD)}},{key:"setDimVarObjectId",value:function(o,s){this.imp.SetDimVarObjectId(o,s.id)}},{key:"GetAllText",value:function(){return new McGeStringArray(this.imp.GetAllText())}}]),r}(McDbEntity),McDbAlignedDimension=function(t){_inherits$1(r,t);var e=_createSuper$3(r);function r(n){var o;return _classCallCheck$1(this,r),o=e.call(this,n),n||o.initTempObject(new MxCpp.mxcadassemblyimp.MdDbAlignedDimension),o}return _createClass$1(r,[{key:"xLine1Point",get:function(){return new McGePoint3d(this.imp.xLine1Point())},set:function(o){this.imp.setXLine1Point(o.imp)}},{key:"xLine2Point",get:function(){return new McGePoint3d(this.imp.xLine2Point())},set:function(o){this.imp.setXLine2Point(o.imp)}},{key:"dimLinePoint",get:function(){return new McGePoint3d(this.imp.dimLinePoint())},set:function(o){this.imp.setDimLinePoint(o.imp)}},{key:"oblique",get:function(){return this.imp.oblique()},set:function(o){this.imp.setOblique(o)}}]),r}(McDbDimension),McDbRotatedDimension=function(t){_inherits$1(r,t);var e=_createSuper$3(r);function r(n){var o;return _classCallCheck$1(this,r),o=e.call(this,n),n||o.initTempObject(new MxCpp.mxcadassemblyimp.MdDbRotatedDimension),o}return _createClass$1(r,[{key:"xLine1Point",get:function(){return new McGePoint3d(this.imp.xLine1Point())},set:function(o){this.imp.setXLine1Point(o.imp)}},{key:"xLine2Point",get:function(){return new McGePoint3d(this.imp.xLine2Point())},set:function(o){this.imp.setXLine2Point(o.imp)}},{key:"dimLinePoint",get:function(){return new McGePoint3d(this.imp.dimLinePoint())},set:function(o){this.imp.setDimLinePoint(o.imp)}},{key:"oblique",get:function(){return this.imp.oblique()},set:function(o){this.imp.setOblique(o)}},{key:"rotation",get:function(){return this.imp.rotation()},set:function(o){this.imp.setRotation(o)}}]),r}(McDbDimension),McDbArc=function(t){_inherits$1(r,t);var e=_createSuper$3(r);function r(n){var o;return _classCallCheck$1(this,r),o=e.call(this,n),n||o.initTempObject(new MxCpp.mxcadassemblyimp.MdDbArc),o}return _createClass$1(r,[{key:"setCenter",value:function(o,s,c){this.imp.setCenter(new McGePoint3d(o,s,c).imp)}},{key:"center",get:function(){return new McGePoint3d(this.imp.center())},set:function(o){this.imp.setCenter(o.imp)}},{key:"radius",get:function(){return this.imp.radius()},set:function(o){this.imp.setRadius(o)}},{key:"startAngle",get:function(){return this.imp.startAngle()},set:function(o){this.imp.setStartAngle(o)}},{key:"endAngle",get:function(){return this.imp.endAngle()},set:function(o){this.imp.setEndAngle(o)}},{key:"computeArc",value:function(o,s,c,l,v,x){return this.imp.computeArc(o,s,c,l,v,x)}}]),r}(McDbCurve),McDbEllipse=function(t){_inherits$1(r,t);var e=_createSuper$3(r);function r(n,o,s,c,l,v,x,w,_){var b;return _classCallCheck$1(this,r),n instanceof Object?b=e.call(this,n):(b=e.call(this),b.initTempObject(new MxCpp.mxcadassemblyimp.MdDbEllipse),typeof n=="number"&&(x||(x=1),typeof w!="number"&&(w=0),typeof _!="number"&&(_=6.283185307179586),b.imp.InitData(new McGePoint3d(n,o,s).imp,new McGeVector3d(c,l,v).imp,x,w,_))),_possibleConstructorReturn$1(b)}return _createClass$1(r,[{key:"setCenter",value:function(o,s,c){this.imp.setCenter(new McGePoint3d(o,s,c).imp)}},{key:"center",get:function(){return new McGePoint3d(this.imp.center())},set:function(o){this.imp.setCenter(o.imp)}},{key:"setMajorAxis",value:function(o,s,c){this.imp.setMajorAxis(new McGeVector3d(o,s,c).imp)}},{key:"majorAxis",get:function(){return new McGeVector3d(this.imp.majorAxis())},set:function(o){this.imp.setMajorAxis(o.imp)}},{key:"setMinorAxis",value:function(o,s,c){this.imp.setMinorAxis(new McGeVector3d(o,s,c).imp)}},{key:"minorAxis",get:function(){return new McGeVector3d(this.imp.minorAxis())},set:function(o){this.imp.setMinorAxis(o.imp)}},{key:"radiusRatio",get:function(){return this.imp.radiusRatio()},set:function(o){this.imp.setRadiusRatio(o)}},{key:"startAngle",get:function(){return this.imp.startAngle()},set:function(o){this.imp.setStartAngle(o)}},{key:"endAngle",get:function(){return this.imp.endAngle()},set:function(o){this.imp.setEndAngle(o)}}]),r}(McDbCurve),McDbPoint=function(t){_inherits$1(r,t);var e=_createSuper$3(r);function r(n,o,s){var c;return _classCallCheck$1(this,r),n instanceof Object?n instanceof McGePoint3d?(c=e.call(this),c.initTempObject(new MxCpp.mxcadassemblyimp.MdDbPoint),c.imp.setPosition(n.imp)):c=e.call(this,n):(c=e.call(this),c.initTempObject(new MxCpp.mxcadassemblyimp.MdDbPoint),typeof n=="number"&&c.imp.setPosition(new McGePoint3d(n,o,s).imp)),_possibleConstructorReturn$1(c)}return _createClass$1(r,[{key:"setPosition",value:function(o,s,c){this.imp.setPosition(new McGePoint3d(o,s,c).imp)}},{key:"position",get:function(){return new McGePoint3d(this.imp.position())},set:function(o){this.imp.setPosition(o.imp)}}]),r}(McDbEntity),McDbHatch=function(t){_inherits$1(r,t);var e=_createSuper$3(r);function r(n){var o;return _classCallCheck$1(this,r),n instanceof Object?o=e.call(this,n):(o=e.call(this),o.initTempObject(new MxCpp.mxcadassemblyimp.MdDbHatch)),_possibleConstructorReturn$1(o)}return _createClass$1(r,[{key:"numLoops",get:function(){return this.imp.numLoops()}},{key:"loopTypeAt",value:function(o){return this.imp.loopTypeAt(o)}},{key:"getLoopAt",value:function(o){var s=this.imp.getLoopAt(o);if(!s)return{ret:!1,lootype:0,vertices:[],bulges:[]};var c=s.GetCount();if(c<=0)return MxCpp.App.destroyObject(s),{ret:!1,lootype:0,vertices:[],bulges:[]};var l=0;l=s.Atlong(0);for(var v=[],x=[],w=1;w+1<c;w+=2)v.push(new McGePoint3d(s.AtPoint(w))),x.push(s.AtDouble(w+1));return MxCpp.App.destroyObject(s),{ret:!0,lootype:l,vertices:v,bulges:x}}},{key:"patternType",value:function(){return this.imp.patternType()}},{key:"patternName",value:function(){return MxG2312Obj.decodeFromGb2312(this.imp.patternName())}},{key:"setPattern",value:function(o,s){this.imp.setPattern(o,MxG2312Obj.encodeToGb2312(s))}},{key:"patternAngle",get:function(){return this.imp.patternAngle()},set:function(o){this.imp.setPatternAngle(o)}},{key:"patternScale",get:function(){return this.imp.patternScale()},set:function(o){this.imp.setPatternScale(o)}},{key:"patternSpace",get:function(){return this.imp.patternSpace()},set:function(o){this.imp.setPatternSpace(o)}},{key:"patternDouble",get:function(){return this.imp.patternDouble()},set:function(o){this.imp.setPatternDouble(o)}},{key:"numPatternDefinitions",get:function(){return this.imp.numPatternDefinitions()}},{key:"getPatternDefinitionAt",value:function(o){var s=this.imp.getPatternDefinitionAt(o);if(!s)return{ret:!1,angle:0,baseX:0,baseY:0,offsetX:0,offsetY:0,aryDashes:[]};var c=s.length();if(c<5)return MxCpp.App.getImp().DestroyMdGeDoubleArray(s),{ret:!1,angle:0,baseX:0,baseY:0,offsetX:0,offsetY:0,aryDashes:[]};for(var l=s.at(0),v=s.at(1),x=s.at(2),w=s.at(3),_=s.at(4),b=[],E=5;E<c;E++)b.push(s.at(E));return MxCpp.App.getImp().DestroyMdGeDoubleArray(s),{ret:!1,angle:l,baseX:v,baseY:x,offsetX:w,offsetY:_,aryDashes:b}}},{key:"addPatternDefinition",value:function(o,s,c,l,v,x){var w=new MdGeDoubleArray;return x.forEach(function(_){w.append(_)}),this.imp.addPatternDefinition(o,s,c,l,v,w.imp)}},{key:"clearPatternDefinition",value:function(){return this.imp.clearPatternDefinition()}},{key:"hatchStyle",value:function(){return this.imp.hatchStyle()}},{key:"setHatchStyle",value:function(o){return this.imp.setHatchStyle(o)}},{key:"evaluateHatch",value:function(){return this.imp.evaluateHatch(!1)}},{key:"appendLoop",value:function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:McDb.HatchLoopType.kPolyline,l=new MdGeDoubleArray;return s.forEach(function(v){l.append(v)}),this.imp.appendLoop(c,o.imp,l.imp)}},{key:"appendCircleLoop",value:function(o,s,c){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,v=arguments.length>4&&arguments[4]!==void 0?arguments[4]:McDb.HatchLoopType.kPolyline;return this.imp.appendCircleLoop(v,o,s,0,c,l)}},{key:"removeLoopAt",value:function(o){return this.imp.removeLoopAt(o)}},{key:"removeAllLoop",value:function(){return this.imp.removeAllLoop()}},{key:"setLoopAt",value:function(o,s,c){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:McDb.HatchLoopType.kPolyline,v=new MdGeDoubleArray;return c.forEach(function(x){v.append(x)}),this.imp.setLoopAt(o,l,s.imp,v.imp)}},{key:"isSolid",value:function(){return this.imp.isSolid()}}]),r}(McDbEntity),McDbProxyEntity=function(t){_inherits$1(r,t);var e=_createSuper$3(r);function r(n){var o;return _classCallCheck$1(this,r),n instanceof Object?o=e.call(this,n):(o=e.call(this),o.initTempObject(new MxCpp.mxcadassemblyimp.MdDbProxyEntity)),_possibleConstructorReturn$1(o)}return _createClass$1(r,[{key:"getAllTextContent",value:function(){return new McGeStringArray(this.imp.getAllTextContent())}},{key:"getAllEntityIds",value:function(){for(var o=[],s=this.imp.getAllEntityIds(),c=s.length(),l=0;l<c;l++)o.push(new McObjectId(s.at(l),McObjectIdType.kMxCAD));return MxCpp.App.getImp().DestroyMdGeLongArray(s),o}},{key:"getOriginalClassName",value:function(){return this.imp.getOriginalClassName()}}]),r}(McDbEntity),McDbRasterImage=function(t){_inherits$1(r,t);var e=_createSuper$3(r);function r(n){var o;return _classCallCheck$1(this,r),n instanceof Object?o=e.call(this,n):(o=e.call(this),o.initTempObject(new MxCpp.mxcadassemblyimp.MdDbRasterImage)),_possibleConstructorReturn$1(o)}return _createClass$1(r,[{key:"setOrientation",value:function(o,s,c){return this.imp.setOrientation(o.imp,s.imp,c.imp)}},{key:"getOrientation",value:function(){var o=this.imp.getOrientation();if(o.length()<3)return{origin:new McGePoint3d,uCorner:McGeVector3d.kXAxis.clone(),vOnPlane:McGeVector3d.kYAxis.clone()};var s=new McGePoint3d(o.at(0)),c=new McGeVector3d(o.at(1)),l=new McGeVector3d(o.at(2));return{origin:s,uCorner:c,vOnPlane:l}}},{key:"setImageDefId",value:function(o){o.type==McObjectIdType.kMxCAD&&this.imp.setImageDefId(o.id)}},{key:"imageDefId",value:function(){return new McObjectId(this.imp.imageDefId(),McObjectIdType.kMxCAD)}},{key:"setClipBoundary",value:function(o,s){return this.imp.setClipBoundary(o,s.imp)}},{key:"clipBoundary",value:function(){return new McGePoint3dArray(this.imp.clipBoundary())}},{key:"clipBoundaryType",value:function(){return this.imp.clipBoundaryType()}}]),r}(McDbEntity);function angleTo(t,e,r,n){var o=t-r,s=e-n,c=0;return o==0?c=Math.PI/2:c=Math.atan(Math.abs(s/o)),o<0&&s>=0?c=Math.PI-c:o<0&&s<0?c=Math.PI+c:o>=0&&s<0&&(c=Math.PI*2-c),c}function findArcCenter(t,e,r){var n={x:(t.x+e.x)/2,y:(t.y+e.y)/2},o=Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2))/Math.sin(r/2),s={x:e.x-t.x,y:e.y-t.y},c={x:s.x/Math.sqrt(Math.pow(s.x,2)+Math.pow(s.y,2)),y:s.y/Math.sqrt(Math.pow(s.x,2)+Math.pow(s.y,2))},l={x:-c.y,y:c.x},v=n.x+o*l.x,x=n.y+o*l.y;return new McGePoint3d(v,x)}function getHostUrl$2(){var t=window.location.hostname;return t.substring(0,4)!="http"&&(t=document.location.protocol+"//"+t),t}var MxAI=function(){function t(){_classCallCheck$1(this,t),_defineProperty(this,"serverUrl",""),_defineProperty(this,"mapFun",{})}return _createClass$1(t,[{key:"init",value:function(r){r.substring(0,16)=="http://localhost"&&(r=getHostUrl$2()+r.substring(16)),this.serverUrl=r}},{key:"addFunction",value:function(r,n){this.mapFun[r]=n}},{key:"registTool",value:function(r){if(this.serverUrl.length!=0){var n=new XMLHttpRequest,o=this.serverUrl+"/add_toolfun";n.open("POST",o),n.setRequestHeader("Content-Type","application/json"),n.send(JSON.stringify(r)),n.onreadystatechange=function(){n.readyState===4&&n.status===200&&console.log(n.responseText)}}}},{key:"reloadTools",value:function(r){if(this.serverUrl.length!=0){var n=new XMLHttpRequest,o=this.serverUrl+"/reload_toolfun";n.open("POST",o),n.setRequestHeader("Content-Type","application/json"),n.send(JSON.stringify(r)),n.onreadystatechange=function(){n.readyState===4&&n.status===200&&console.log(n.responseText)}}}},{key:"chat_tool",value:function(r){if(this.serverUrl.length!=0){var n=this,o={text:r},s=new XMLHttpRequest,c=this.serverUrl+"/post";s.open("POST",c),s.setRequestHeader("Content-Type","application/json"),s.send(JSON.stringify(o)),s.onreadystatechange=function(){if(s.readyState===4&&s.status===200)try{var l=JSON.parse(s.responseText),v=l.results;v&&v.name&&n.mapFun[v.name]&&n.mapFun[v.name](v.parameters)}catch(x){console.log(x)}}}}}]),t}();function _createSuper$2(t){var e=_isNativeReflectConstruct$2();return function(){var n=_getPrototypeOf$1(t),o;if(e){var s=_getPrototypeOf$1(this).constructor;o=Reflect.construct(n,arguments,s)}else o=n.apply(this,arguments);return _possibleConstructorReturn$1(this,o)}}function _isNativeReflectConstruct$2(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var MxCADCloneType=function(t){return t[t.kClone=1]="kClone",t[t.kDragClone=2]="kDragClone",t[t.kCPPClone=3]="kCPPClone",t}(MxCADCloneType||{}),IMcDbDwgFiler=function(){function t(e){_classCallCheck$1(this,t),_defineProperty(this,"type",1),this.type=e}return _createClass$1(t,[{key:"getType",value:function(){return this.type}},{key:"writePoints",value:function(r,n){var o=this;this.writeLong(r+"_n",n.length),n.forEach(function(s,c){o.writePoint(r+"_"+c,s)})}},{key:"readPoints",value:function(r){var n=[],o=this.readLong(r+"_n");if(o.ret)for(var s=0;s<o.val;s++){var c=this.readPoint(r+"_"+s);c.ret&&n.push(c.val)}return{val:n,ret:!0}}}]),t}(),McDbDwgFiler=function(t){_inherits$1(r,t);var e=_createSuper$2(r);function r(){var n,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;return _classCallCheck$1(this,r),n=e.call(this,o),_defineProperty(_assertThisInitialized$1(n),"data",{}),n}return _createClass$1(r,[{key:"writePoint",value:function(o,s){this.data[o]=s.clone()}},{key:"readPoint",value:function(o){return this.data[o]&&this.data[o]instanceof McGePoint3d?{val:this.data[o],ret:!0}:{val:new McGePoint3d(0,0,0),ret:!1}}},{key:"writeLong",value:function(o,s){this.data[o]=s}},{key:"readLong",value:function(o){return this.data[o]&&typeof this.data[o]=="number"?{val:this.data[o],ret:!0}:{val:0,ret:!1}}},{key:"writeDouble",value:function(o,s){this.data[o]=s}},{key:"readDouble",value:function(o){return this.data[o]&&typeof this.data[o]=="number"?{val:this.data[o],ret:!0}:{val:0,ret:!1}}},{key:"writeString",value:function(o,s){this.data[o]=s}},{key:"readString",value:function(o){return this.data[o]&&typeof this.data[o]=="string"?{val:this.data[o],ret:!0}:{val:"",ret:!1}}}]),r}(IMcDbDwgFiler),MxCADWorldDraw=function(){function t(e){_classCallCheck$1(this,t),_defineProperty(this,"imp",void 0),this.imp=new MxCpp.mxcadassemblyimp.MdGiWorldDraw(e)}return _createClass$1(t,[{key:"drawEntity",value:function(r){this.imp.drawEntity(r.imp)}}]),t}(),McDbCustomEntity=function(t){_inherits$1(r,t);var e=_createSuper$2(r);function r(n){var o;return _classCallCheck$1(this,r),n instanceof Object?o=e.call(this,n):(o=e.call(this),o.initTempObject(new MxCpp.mxcadassemblyimp.MdDbCustomEntity(o.getTypeName()))),_possibleConstructorReturn$1(o)}return _createClass$1(r,[{key:"rxInit",value:function(){MxCustomEntityManager.rxInit(this)}},{key:"clone",value:function(){var o=1,s=this.create(),c=new McDbDwgFiler(o);return this.dwgOutFields(c),s.dwgInFields(c),s}},{key:"syncData",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(o){var s=this.imp.getFilter(!0),c=new McDbDwgFilerCpp(s);this.dwgOutFields(c),MxCpp.App.getImp().DestroyMdDbCustomEntityDwgFiler(s)}else{var l=this.imp.getFilter(!1),v=new McDbDwgFilerCpp(l);this.dwgInFields(v),MxCpp.App.getImp().DestroyMdDbCustomEntityDwgFiler(l)}return!0}},{key:"tempRelationObject",value:function(){return MxCustomEntityManager.tmpRelationObject(this)}},{key:"freeTempRelationObject",value:function(){MxCustomEntityManager.freeTmpObject(this)}},{key:"assertWrite",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.imp.assertWrite(o,!0,!0,!0,!1)}},{key:"moveGripPointsAt",value:function(o,s,c,l){}},{key:"getGripPoints",value:function(){return new McGePoint3dArray}}]),r}(McDbEntity);function _createSuper$1(t){var e=_isNativeReflectConstruct$1();return function(){var n=_getPrototypeOf$1(t),o;if(e){var s=_getPrototypeOf$1(this).constructor;o=Reflect.construct(n,arguments,s)}else o=n.apply(this,arguments);return _possibleConstructorReturn$1(this,o)}}function _isNativeReflectConstruct$1(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var MxCustomEntityManagerImp=function(){function t(){_classCallCheck$1(this,t),_defineProperty(this,"mapType2Create",new Map),_defineProperty(this,"mapId2DatabaseMap",{}),_defineProperty(this,"alloc_id",1),_defineProperty(this,"alloc_tempid",1),_defineProperty(this,"mapTempId2Entity",new Map)}return _createClass$1(t,[{key:"rxInit",value:function(r){var n=r.getTypeName();this.mapType2Create.get(n)&&console.error("MxCADError:already has this class name "+n),this.mapType2Create.set(n,r)}},{key:"tmpRelationObject",value:function(r){return this.alloc_tempid>9007199254740900&&(this.alloc_tempid=1),this.alloc_tempid+=1,r.imp.setCustomEntityTempid(this.alloc_tempid),this.mapTempId2Entity.set(this.alloc_tempid,r),this.alloc_tempid}},{key:"freeTmpObject",value:function(r){if(typeof r=="number")this.mapTempId2Entity.delete(r);else{var n=r.imp.getCustomEntityTempid();r.imp.setCustomEntityTempid(0),this.mapTempId2Entity.delete(n)}}},{key:"getTmpObject",value:function(r){return this.mapTempId2Entity.get(r)}},{key:"allocId",value:function(){return this.alloc_id>9007199254740900&&(this.alloc_id=1),this.alloc_id+=1,this.alloc_id}},{key:"isHaveType",value:function(r){return this.mapType2Create.has(r)}},{key:"createMxEntity",value:function(r,n){if(r.length==0)return console.log("MxTip:assert(0) typeName is empty "),null;var o=this.mapType2Create.get(r);if(!o)return console.error("mx: error crate,no type name:"+r),null;var s=o.create(n);return s.getTypeName()!=r&&console.error("mx: error crate Type:"+r+","+s.getTypeName()),s}},{key:"relationObject",value:function(r,n){if(n==0)return 0;var o=this.allocId(),s=this.mapId2DatabaseMap[n];return s||(s=new Map,this.mapId2DatabaseMap[n]=s),s.set(o,{idIndex:r,init:!1,customEntity:null}),o}},{key:"freeObject",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(n!=0){var o=this.mapId2DatabaseMap[n];if(!o)return;o.delete(r);return}else for(var s in this.mapId2DatabaseMap){var c=this.mapId2DatabaseMap[s];c.delete(r)}}},{key:"freeDatabase",value:function(r){this.mapId2DatabaseMap.hasOwnProperty(r)&&delete this.mapId2DatabaseMap[r]}},{key:"getObject",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(r==0)return null;var o=void 0;if(n!=0){var s=this.mapId2DatabaseMap[n];if(!s)return null;o=s.get(r)}else for(var c in this.mapId2DatabaseMap){var l=this.mapId2DatabaseMap[c];if(o=l.get(r),o){n=parseInt(c);break}}if(!o)return null;if(o.customEntity)return o.customEntity;if(o.init)return null;o.init=!0;var v=MxCpp.App.getImp().ObjectIdToMdDbCustomEntity(o.idIndex);if(!v)return null;var x=MxCustomEntityManager.createMxEntity(v.getCustomEntityTypeName(),v);return x==null?null:(x.syncData(!1),o.customEntity=x,x)}},{key:"init",value:function(){var r=window;r.MxCustomEntityManager_freeObject=function(n,o){MxCustomEntityManager.freeObject(n,o)},r.MxCustomEntityManager_relationObject=function(n,o){return MxCustomEntityManager.relationObject(n,o)},r.MxCustomEntityManager_freeDatabase=function(n){MxCustomEntityManager.freeDatabase(n)},r.MxCustomEntityManager_worldDraw=function(n,o,s,c){var l;c!=0?l=MxCustomEntityManager.getTmpObject(c):l=MxCustomEntityManager.getObject(n,o),l&&l.worldDraw(new MxCADWorldDraw(s))},r.MxCustomEntityManager_syncData=function(n,o,s){var c=MxCustomEntityManager.getObject(n,o);!c||c.syncData(s!=0)}}}]),t}(),McDbDwgFilerCpp=function(t){_inherits$1(r,t);var e=_createSuper$1(r);function r(n){var o;return _classCallCheck$1(this,r),o=e.call(this,MxCADCloneType.kCPPClone),_defineProperty(_assertThisInitialized$1(o),"imp",void 0),n||(n=new MxCpp.mxcadassemblyimp.MdDbCustomEntityDwgFiler),o.imp=n,o}return _createClass$1(r,[{key:"writePoint",value:function(o,s){this.imp.writePoint(o,s.imp.x,s.imp.y,s.imp.z)}},{key:"readPoint",value:function(o){var s=this.imp.readPoint(o),c={};return MxCpp.getCallResult()==0?c={val:new McGePoint3d(s),ret:!0}:c={val:new McGePoint3d,ret:!1},MxCpp.App.getImp().DestroyMdGePoint3d(s),c}},{key:"writeLong",value:function(o,s){this.imp.writeLong(o,s)}},{key:"readLong",value:function(o){var s=this.imp.readLong(o),c={};return MxCpp.getCallResult()==0?c={val:s,ret:!0}:c={val:0,ret:!1},c}},{key:"writeDouble",value:function(o,s){this.imp.writeDouble(o,s)}},{key:"readDouble",value:function(o){var s=this.imp.readDouble(o),c={};return MxCpp.getCallResult()==0?c={val:s,ret:!0}:c={val:0,ret:!1},c}},{key:"writeString",value:function(o,s){this.imp.writeDouble(o,MxG2312Obj.encodeToGb2312(s))}},{key:"readString",value:function(o){var s=this.imp.readString(o),c={};return MxCpp.getCallResult()==0?c={val:MxG2312Obj.decodeFromGb2312(s),ret:!0}:c={val:"",ret:!1},c}}]),r}(IMcDbDwgFiler),MxCustomEntityManager;MxCustomEntityManager=new MxCustomEntityManagerImp;var FetchAttributes=function(t){return t[t.EMSCRIPTEN_FETCH_LOAD_TO_MEMORY=1]="EMSCRIPTEN_FETCH_LOAD_TO_MEMORY",t[t.EMSCRIPTEN_FETCH_PERSIST_FILE=4]="EMSCRIPTEN_FETCH_PERSIST_FILE",t[t.EMSCRIPTEN_FETCH_APPEND=8]="EMSCRIPTEN_FETCH_APPEND",t[t.EMSCRIPTEN_FETCH_REPLACE=16]="EMSCRIPTEN_FETCH_REPLACE",t}(FetchAttributes||{}),McObject=function(){function t(e){_classCallCheck$1(this,t),_defineProperty(this,"imp",void 0),_defineProperty(this,"event",{}),_defineProperty(this,"currentFileName",""),_defineProperty(this,"firstTimeOpenFile",!0),this.imp=e}return _createClass$1(t,[{key:"getMxDrawObject",value:function(){return this.imp.mxdrawObject}},{key:"mxdraw",get:function(){return this.imp.mxdrawObject}},{key:"getImp",value:function(){return this.imp}},{key:"init",value:function(r){this.imp=r}},{key:"create",value:function(r){createMxCad(r,this)}},{key:"on",value:function(r,n){if(this.event[r])if(this.event[r]instanceof Array)this.event[r].includes(n)||this.event[r].push(n);else{var o=this.event[r];if(o==n)return;this.event[r]=[],this.event[r].push(o),this.event[r].push(n)}else this.event[r]=n}},{key:"off",value:function(r,n){if(!!this.event[r])if(!n)this.event[r]=[];else if(this.event[r]instanceof Array){var o=this.event[r].indexOf(n);if(o<0)return;this.event[r].splice(o,1)}else this.event[r]===n&&(this.event[r]=[])}},{key:"callEvent",value:function(r,n){try{var o=this.event[r];if(!o)return!1;if(o instanceof Array){var s=!1;return o.forEach(function(c){s=c(n)}),s}else return o(n)}catch(c){throw console.log(c),c}}},{key:"initMxObject",value:function(r){var n=this;r.tmp||(r.tmp=new MxDrawObject(r)),this.imp.mxdrawObject=r.tmp,r.addEvent("selectChange",function(x){var w=[];x.forEach(function(b){w.push(new McObjectId(b,McObjectIdType.kMxCAD))});var _=r.getMxAllSelect();_.forEach(function(b){w.push(new McObjectId(b,McObjectIdType.kMxDraw))}),n.callEvent("selectChange",w)}),r.addEvent("mxdrawSelectChange",function(x){var w=[];x.forEach(function(b){w.push(new McObjectId(b,McObjectIdType.kMxDraw))});var _=r.getMxCADAllSelect();_.forEach(function(b){w.push(new McObjectId(b,McObjectIdType.kMxCAD))}),n.callEvent("selectChange",w)});var o=this;r.addEvent("openFileComplete",function(){n.callEvent("openFileComplete",o)});var s={selectChange:!0,openFileComplete:!0,init:!0,init_mxdraw:!0,init_mxcad:!0,init_before_mxdraw:!0},c={};for(var l in this.event){var v=this.event[l];if(s[l]){c[l]=v;continue}v instanceof Array?v.forEach(function(x){r.addEvent(l,x)}):r.addEvent(l,v)}this.event=c}},{key:"regen",value:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;n<=0?this.imp.regen():setTimeout(function(){r.imp.regen(),r.updateDisplay(!1)},n)}},{key:"zoomAll",value:function(){var r=this.database.currentSpace.getBoundingBox();if(!r.ret)return!1;var n=this.getMxDrawObject();return n.zoomW(r.minPt.toVector3(),r.maxPt.toVector3()),!0}},{key:"zoomScale",value:function(r){this.getMxDrawObject().zoomScale(r)}},{key:"addCurrentSelect",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(r instanceof Array){var s=!1,c=!1;r.forEach(function(l){l.type==McObjectIdType.kMxDraw?n.getMxDrawObject().addMxCurrentSelect(l.id,!1,o)&&(s=!0):l.type==McObjectIdType.kMxCAD&&n.getMxDrawObject().addMxCADCurrentSelect(l.id,!1,o)&&(c=!0)}),s&&this.getMxDrawObject().fireSelectChange(!1),c&&this.getMxDrawObject().fireSelectChange(!0)}else r.type==McObjectIdType.kMxDraw?this.getMxDrawObject().addMxCurrentSelect(r.id,!0,o):r.type==McObjectIdType.kMxCAD&&this.getMxDrawObject().addMxCADCurrentSelect(r.id,!0,o)}},{key:"zoomW",value:function(r,n){var o=this.getMxDrawObject();o.zoomW(r.toVector3(),n.toVector3())}},{key:"zoomCenter",value:function(r,n){var o=this.getMxDrawObject();o.zoomCenter(r,n)}},{key:"zoomAngle",value:function(r){var n=this.getMxDrawObject();n.setViewAngle(r),this.updateDisplay(!1,100)}},{key:"openWebFile",value:function(r,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=arguments.length>3?arguments[3]:void 0,c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,v=this.imp.mxdrawObject,x=Math.round(Math.random()*1e7);if(n){var w=function b(E,I){x==I&&(v.removeEventFuction("openFileComplete",b),n(E))};v.addEvent("openFileComplete",w)}this.currentFileName=r.split("/").pop();var _="";return s&&(_=JSON.stringify(s)),this.firstTimeOpenFile||this.getMxDrawObject().clearAllObject(),this.firstTimeOpenFile=!1,this.imp.openWebFile(r,o,x,_,c,l)}},{key:"newFile",value:function(){return this.currentFileName="",this.getMxDrawObject().clearAllObject(),this.imp.newFile()}},{key:"insertBlock",value:function(r,n){var o=this,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,l=this.imp.mxdrawObject,v=Math.round(Math.random()*1e7);return new Promise(function(x){var w=function b(E){(!E||E.length==0)&&x(new McObjectId);var I=JSON.parse(E);I.callid==v&&(l.removeEventFuction("insertBlockComplete",b),I.result!=0&&console.log("insertBlock result:"+I.result),x(new McObjectId(I.blkrecid,McObjectIdType.kMxCAD)))};l.addEvent("insertBlockComplete",w);var _="";o.imp.insertBlock(r,MxG2312Obj.encodeToGb2312(n),s,v,_,c)})}},{key:"getCurrentFileName",value:function(){return this.currentFileName}},{key:"saveFileToUrl",value:function(r,n,o,s){var c=this.imp.saveFileToMemory();if(c.getSize()==0)return n(-1,"save failed"),!1;var l=c.getData(),v=c.getSize(),x=MxCpp.mxcadassemblyimp.HEAPU8,w=x.subarray(l,l+v),_=new ArrayBuffer(c.getSize()),b=new Uint8Array(_);return b.set(w),c.clear(),MxTools.postMemoryFile(b,r,o||"temp.mxweb",n,s),!0}},{key:"saveFile",value:function(r,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,c=arguments.length>4?arguments[4]:void 0;r||(r=this.getCurrentFileName()),r.indexOf(".")==-1&&(r+=".mxweb");var l=window;l.mx_saveFile_call=function(x){if(n&&n(x),!!x){if(o){var w,_=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);_?w=new Blob([x.buffer],{type:"application/octet-stream"}):w=new Blob([x.buffer],{type:"application/octet-binary"}),s?MxTools.saveAsFileDialog({blob:w,filename:r,types:[{description:"mxweb File",accept:{"application/octet-stream":[".mxweb"]}}]}):MxTools.downloadFile(w,r)}l.mx_saveFile_call=null}};var v="";return c&&(v=JSON.stringify(c)),this.imp.saveFile(r,v)}},{key:"getDatabase",value:function(){return this.imp.McDbDatabase||(this.imp.McDbDatabase=new McDbDatabase(this.imp.GetDatabase())),this.imp.McDbDatabase}},{key:"database",get:function(){return this.getDatabase()}},{key:"setBrowse",value:function(r){this.imp.setBrowse(r),r&&MxFun.setIniset({ForbiddenDynInput:!0})}},{key:"getSysVarString",value:function(r){return this.imp.GetSysVarString(r)}},{key:"setSysVarString",value:function(r,n){return this.imp.SetSysVarString(r,n)}},{key:"getSysVarDouble",value:function(r){return this.imp.GetSysVarDouble(r)}},{key:"getSysVarPoint",value:function(r){return new McGePoint3d(this.imp.GetSysVarPoint(r))}},{key:"setSysVarPoint",value:function(r,n){return this.imp.SetSysVarPoint(r,n.imp,!1)}},{key:"setSysVarPoint2d",value:function(r,n){return this.imp.SetSysVarPoint(r,n.imp,!0)}},{key:"setSysVarDouble",value:function(r,n){return this.imp.SetSysVarDouble(r,n)}},{key:"getSysVarLong",value:function(r){return this.imp.GetSysVarLong(r)}},{key:"setSysVarLong",value:function(r,n){return this.imp.SetSysVarLong(r,n)}},{key:"drawColor",get:function(){return new McCmColor(this.imp.GetDrawColor())},set:function(r){this.imp.SetDrawColor(r.getImp())}},{key:"drawColorIndex",get:function(){return this.imp.GetDrawColor().colorIndex},set:function(r){var n=new McCmColor;n.setColorIndex(r),this.imp.SetDrawColor(n.getImp())}},{key:"drawLineWeight",get:function(){return this.imp.GetDrawLineWeight()},set:function(r){this.imp.SetDrawLineWeight(r)}},{key:"drawLineTypeScale",get:function(){return this.imp.GetDrawLineTypeScale()},set:function(r){this.imp.SetDrawLineTypeScale(r)}},{key:"drawLinetype",get:function(){return MxG2312Obj.decodeFromGb2312(this.imp.GetDrawLinetype())},set:function(r){this.imp.SetDrawLinetype(MxG2312Obj.encodeToGb2312(r))}},{key:"drawTextStyle",get:function(){return MxG2312Obj.decodeFromGb2312(this.imp.GetDrawTextStyle())},set:function(r){this.imp.SetDrawTextStyle(MxG2312Obj.encodeToGb2312(r))}},{key:"drawLayer",get:function(){return MxG2312Obj.decodeFromGb2312(this.imp.GetDrawLayer())},set:function(r){this.imp.SetDrawLayer(MxG2312Obj.encodeToGb2312(r))}},{key:"addLayer",value:function(r){return new McObjectId(this.imp.AddLayer(MxG2312Obj.encodeToGb2312(r)))}},{key:"addTextStyle",value:function(r,n,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;return new McObjectId(this.imp.AddTextStyle(MxG2312Obj.encodeToGb2312(r),MxG2312Obj.encodeToGb2312(n),MxG2312Obj.encodeToGb2312(o),s))}},{key:"AddTureTypeTextStyle",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return new McObjectId(this.imp.AddTureTypeTextStyle(MxG2312Obj.encodeToGb2312(r),MxG2312Obj.encodeToGb2312(n),o))}},{key:"addLinetype",value:function(r,n){return new McObjectId(this.imp.AddLinetype(MxG2312Obj.encodeToGb2312(r),MxG2312Obj.encodeToGb2312(n)))}},{key:"addLinetypeEx",value:function(r,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return new McObjectId(this.imp.AddLinetypeEx(MxG2312Obj.encodeToGb2312(r),MxG2312Obj.encodeToGb2312(n),MxG2312Obj.encodeToGb2312(o)))}},{key:"drawLine",value:function(r,n,o,s){return new McObjectId(this.imp.DrawLine(r,n,0,o,s,0))}},{key:"drawLine3d",value:function(r,n,o,s,c,l){return new McObjectId(this.imp.DrawLine(r,n,o,s,c,l))}},{key:"addDimStyle",value:function(r,n,o,s,c){return new McObjectId(this.imp.AddDimStyle(r,n,o,s,c))}},{key:"drawDimStyle",get:function(){return MxG2312Obj.decodeFromGb2312(this.imp.GetDrawDimStyle())},set:function(r){this.imp.SetDrawDimStyle(MxG2312Obj.encodeToGb2312(r))}},{key:"pathMakeExclude",value:function(r){this.imp.PathMakeExclude(r)}},{key:"addPatternDefinition",value:function(r,n){this.imp.AddPatternDefinition(MxG2312Obj.encodeToGb2312(r),MxG2312Obj.encodeToGb2312(n))}},{key:"drawPatternDefinition",get:function(){return MxG2312Obj.decodeFromGb2312(this.imp.GetPatternDefinition())},set:function(r){this.imp.SetPatternDefinition(MxG2312Obj.encodeToGb2312(r))}},{key:"drawLineWidth",get:function(){return this.imp.GetDrawLineWidth()},set:function(r){this.imp.SetDrawLineWidth(r)}},{key:"drawArc",value:function(r,n,o,s,c){return new McObjectId(this.imp.DrawArc(r,n,o,s,c))}},{key:"drawArc2",value:function(r,n,o,s,c,l){return new McObjectId(this.imp.DrawArc2(r,n,o,s,c,l))}},{key:"drawArc3",value:function(r,n,o,s,c){return new McObjectId(this.imp.DrawArc3(r,n,o,s,c))}},{key:"drawCircle",value:function(r,n,o){return new McObjectId(this.imp.DrawCircle(r,n,o))}},{key:"loadImage",value:function(r,n){this.imp.mxdrawObject.getMxObjectImplement().loadMxCADImage(r,n)}},{key:"drawImage",value:function(r,n,o,s,c,l){return new McObjectId(this.imp.DrawImage(r,n,o,s,c,MxG2312Obj.encodeToGb2312(l)))}},{key:"addImageDefine",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return new McObjectId(this.imp.addImageDefine(MxG2312Obj.encodeToGb2312(r),MxG2312Obj.encodeToGb2312(n)))}},{key:"drawEllipse",value:function(r,n,o,s,c){return new McObjectId(this.imp.DrawEllipse(r,n,o,s,c))}},{key:"drawEllipseArc",value:function(r,n,o,s,c,l,v){return new McObjectId(this.imp.DrawEllipseArc(r,n,o,s,c,l,v))}},{key:"drawPoint",value:function(r,n){return new McObjectId(this.imp.DrawPoint(r,n))}},{key:"drawSolid",value:function(r,n,o,s,c,l,v,x){return new McObjectId(this.imp.DrawSolid(r,n,o,s,c,l,v,x))}},{key:"drawMText",value:function(r,n,o,s,c,l,v){return new McObjectId(this.imp.DrawMText(r,n,MxG2312Obj.encodeToGb2312(o),s,c,l,v))}},{key:"drawText",value:function(r,n,o,s,c,l,v){return new McObjectId(this.imp.DrawText(r,n,MxG2312Obj.encodeToGb2312(o),s,c,l,v))}},{key:"drawBlockReference",value:function(r,n,o,s,c){return new McObjectId(this.imp.DrawBlockReference(r,n,MxG2312Obj.encodeToGb2312(o),s,c))}},{key:"drawDimAligned",value:function(r,n,o,s,c,l){return new McObjectId(this.imp.DrawDimAligned(r,n,o,s,c,l))}},{key:"drawDimAngular",value:function(r,n,o,s,c,l,v,x){return new McObjectId(this.imp.DrawDimAngular(r,n,o,s,c,l,v,x))}},{key:"drawDimDiametric",value:function(r,n,o,s,c){return new McObjectId(this.imp.DrawDimDiametric(r,n,o,s,c))}},{key:"drawDimRotated",value:function(r,n,o,s,c,l,v){return new McObjectId(this.imp.DrawDimRotated(r,n,o,s,c,l,v))}},{key:"drawDimOrdinate",value:function(r,n,o,s,c){return new McObjectId(this.imp.DrawDimOrdinate(r,n,o,s,c))}},{key:"drawDimRadial",value:function(r,n,o,s,c){return new McObjectId(this.imp.DrawDimRadial(r,n,o,s,c))}},{key:"pathMoveTo",value:function(r,n){this.imp.PathMoveTo(r,n)}},{key:"pathMoveToEx",value:function(r,n,o,s,c){this.imp.PathMoveToEx(r,n,o,s,c)}},{key:"pathLineTo",value:function(r,n){this.imp.PathLineTo(r,n)}},{key:"pathLineToEx",value:function(r,n,o,s,c){this.imp.PathLineToEx(r,n,o,s,c)}},{key:"pathCircle",value:function(r,n,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;return this.imp.PathCircle(r,n,o,s,c)}},{key:"drawPathToPolyline",value:function(){return new McObjectId(this.imp.DrawPathToPolyline())}},{key:"drawPathToSpline",value:function(){return new McObjectId(this.imp.DrawPathToSpline())}},{key:"pathMakeClosed",value:function(){this.imp.PathMakeClosed()}},{key:"drawPathToHatch",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;return new McObjectId(this.imp.DrawPathToHatch(r))}},{key:"drawEntity",value:function(r){var n=r.syncData(!0),o=new McObjectId(this.imp.DrawEntity(r.getImp()));return n&&o.syncMcDbCustomEntity(),o}},{key:"drawHatch",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return new McObjectId(this.imp.DrawHatch(r.getImp(),n))}},{key:"objectIdToObject",value:function(r){return MxCpp.App.objectIdToObject(r)}},{key:"destroyObject",value:function(r){!r||MxCpp.App.getImp().DestroyObject(r)}},{key:"getAllLayoutName",value:function(){return new McGeStringArray(this.imp.GetAllLayoutName())}},{key:"setCurrentLayout",value:function(r){this.imp.SetCurrentLayout(MxG2312Obj.encodeToGb2312(r))}},{key:"getMxCpp",value:function(){return MxCpp}},{key:"getViewCADCoord",value:function(){var r=this.getMxDrawObject().getViewDocCoord();return{pt1:new McGePoint3d(r.pt1),pt2:new McGePoint3d(r.pt2),pt3:new McGePoint3d(r.pt3),pt4:new McGePoint3d(r.pt4)}}},{key:"updateDisplay",value:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;o<=0?this.imp.mxdrawObject.updateDisplay(n):setTimeout(function(){r.imp.mxdrawObject.updateDisplay(n)},o)}},{key:"updateLayerDisplayStatus",value:function(){this.imp.UpdateLayerDisplayStatus()}},{key:"initRegist",value:function(r){this.imp.initRegist(r)}},{key:"isTryVersion",value:function(){return this.imp.isTryVersion()}},{key:"setViewBackgroundColor",value:function(r,n,o){var s=this.getMxDrawObject();return s&&s.setViewColor(r<<16|n<<8|o),this.imp.setViewBackgroundColor(r,n,o)}},{key:"getCurrentDatabaseDrawColor",value:function(){var r=this.getDatabase().getImp().GetCurrentlyDrawColor(),n=this.getMxDrawObject().getViewColor(),o=r.at(0),s=r.at(1),c=r.at(2);n==16777215?o==255&&s==255&&c==255&&(o=0,s=0,c=0):n==0&&o==0&&s==0&&c==0&&(o=255,s=255,c=255);var l=new THREE.Color;return l.setRGB(o/255,s/255,c/255),l}},{key:"undo",value:function(){this.imp.undo(),this.updateDisplay(!1)}},{key:"redo",value:function(){this.imp.redo(),this.updateDisplay()}},{key:"undoMark",value:function(){this.imp.undoMark()}}]),t}(),McAppType=function(){function t(){_classCallCheck$1(this,t),_defineProperty(this,"imp",void 0),_defineProperty(this,"MxCADAssist",void 0),_defineProperty(this,"objectIdToObjectCalls",{}),_defineProperty(this,"classNameToCreateCalls",{})}return _createClass$1(t,[{key:"init",value:function(r){this.imp=r,McGeVector3d.kZAxis=new McGeVector3d(0,0,1),McGeVector3d.kNegateZAxis=new McGeVector3d(0,0,-1),McGeVector3d.kXAxis=new McGeVector3d(1,0,0),McGeVector3d.kYAxis=new McGeVector3d(0,1,0),McGePoint3d.kOrigin=new McGePoint3d(0,0,0),McGeMatrix3d.kIdentity=new McGeMatrix3d,this.MxCADAssist=new MxCpp.mxcadassemblyimp.MxDrawAssist,this.initCalls()}},{key:"getImp",value:function(){return this.imp}},{key:"getLastCallResult",value:function(){return this.imp.getLastCallResult()}},{key:"destroyObject",value:function(r){this.imp.DestroyObject(r)}},{key:"getCurrentMxCAD",value:function(){var r=this.imp.GetCurrentMxDraw();return r.McObject||(r.McObject=new McObject(this.imp.GetCurrentMxDraw())),r.McObject}},{key:"mcedRGB2Index",value:function(r,n,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return this.imp.mcedRGB2Index(r,n,o,s)}},{key:"setDefaultViewBackgroundColor",value:function(r,n,o){return this.imp.setDefaultViewBackgroundColor(r,n,o)}},{key:"objectIdIsKindOf",value:function(r,n){return this.imp.ObjectIdIsKindOf(r,n)}},{key:"initCalls",value:function(){var r=this;this.objectIdToObjectCalls.McDbCurve=function(n){return new McDbCurve(r.imp.ObjectIdToMdDbCurve(n))},this.objectIdToObjectCalls.McDbEntity=function(n){return new McDbEntity(r.imp.ObjectIdToMdDbEntity(n))},this.objectIdToObjectCalls.McDbDimension=function(n){return new McDbDimension(r.imp.ObjectIdToMdDbDimension(n))},this.classNameToCreateCalls.McDbDimension=function(){return new McDbDimension},this.objectIdToObjectCalls.McDbLine=function(n){return new McDbLine(r.imp.ObjectIdToMdDbLine(n))},this.classNameToCreateCalls.McDbLine=function(){return new McDbLine},this.objectIdToObjectCalls.McDbText=function(n){return new McDbText(r.imp.ObjectIdToMdDbText(n))},this.classNameToCreateCalls.McDbText=function(){return new McDbText},this.objectIdToObjectCalls.McDbAttribute=function(n){return new McDbAttribute(r.imp.ObjectIdToMdDbAttribute(n))},this.classNameToCreateCalls.McDbAttribute=function(){return new McDbAttribute},this.objectIdToObjectCalls.McDbAttributeDefinition=function(n){return new McDbAttributeDefinition(r.imp.ObjectIdToMdDbAttributeDefinition(n))},this.classNameToCreateCalls.McDbAttributeDefinition=function(){return new McDbAttributeDefinition},this.objectIdToObjectCalls.McDbPolyline=function(n){return new McDbPolyline(r.imp.ObjectIdToMdDbPolyline(n))},this.classNameToCreateCalls.McDbPolyline=function(){return new McDbPolyline},this.objectIdToObjectCalls.McDbCircle=function(n){return new McDbCircle(r.imp.ObjectIdToMdDbCircle(n))},this.classNameToCreateCalls.McDbCircle=function(){return new McDbCircle},this.objectIdToObjectCalls.McDbArc=function(n){return new McDbArc(r.imp.ObjectIdToMdDbArc(n))},this.classNameToCreateCalls.McDbArc=function(){return new McDbArc},this.objectIdToObjectCalls.McDbBlockReference=function(n){return new McDbBlockReference(r.imp.ObjectIdToMdDbBlockReference(n))},this.classNameToCreateCalls.McDbBlockReference=function(){return new McDbBlockReference},this.objectIdToObjectCalls.McDbAlignedDimension=function(n){return new McDbAlignedDimension(r.imp.ObjectIdToMdDbAlignedDimension(n))},this.classNameToCreateCalls.McDbAlignedDimension=function(){return new McDbAlignedDimension},this.objectIdToObjectCalls.McDbRotatedDimension=function(n){return new McDbRotatedDimension(r.imp.ObjectIdToMdDbRotatedDimension(n))},this.classNameToCreateCalls.McDbRotatedDimension=function(){return new McDbRotatedDimension},this.objectIdToObjectCalls.McDbMText=function(n){return new McDbMText(r.imp.ObjectIdToMdDbMText(n))},this.classNameToCreateCalls.McDbMText=function(){return new McDbMText},this.objectIdToObjectCalls.McDbEllipse=function(n){return new McDbEllipse(r.imp.ObjectIdToMdDbEllipse(n))},this.classNameToCreateCalls.McDbEllipse=function(){return new McDbEllipse},this.objectIdToObjectCalls.McDbPoint=function(n){return new McDbPoint(r.imp.ObjectIdToMdDbPoint(n))},this.classNameToCreateCalls.McDbPoint=function(){return new McDbPoint},this.objectIdToObjectCalls.McDbBlockTableRecord=function(n){return new McDbBlockTableRecord(r.imp.ObjectIdToMdDbBlockTableRecord(n))},this.classNameToCreateCalls.McDbBlockTableRecord=function(){return new McDbBlockTableRecord},this.objectIdToObjectCalls.McDbLayerTableRecord=function(n){return new McDbLayerTableRecord(r.imp.ObjectIdToMdDbLayerTableRecord(n))},this.classNameToCreateCalls.McDbLayerTableRecord=function(){return new McDbLayerTableRecord},this.objectIdToObjectCalls.McDbLinetypeTableRecord=function(n){return new McDbLinetypeTableRecord(r.imp.ObjectIdToMdDbLinetypeTableRecord(n))},this.classNameToCreateCalls.McDbLinetypeTableRecord=function(){return new McDbLinetypeTableRecord},this.objectIdToObjectCalls.McDbTextStyleTableRecord=function(n){return new McDbTextStyleTableRecord(r.imp.ObjectIdToMdDbTextStyleTableRecord(n))},this.classNameToCreateCalls.McDbTextStyleTableRecord=function(){return new McDbTextStyleTableRecord},this.objectIdToObjectCalls.McDbHatch=function(n){return new McDbHatch(r.imp.ObjectIdToMdDbHatch(n))},this.classNameToCreateCalls.McDbHatch=function(){return new McDbHatch},this.objectIdToObjectCalls.McDbProxyEntity=function(n){return new McDbProxyEntity(r.imp.ObjectIdToMdDbProxyEntity(n))},this.classNameToCreateCalls.McDbProxyEntity=function(){return new McDbProxyEntity},this.objectIdToObjectCalls.McDbRasterImage=function(n){return new McDbRasterImage(r.imp.ObjectIdToMdDbRasterImage(n))},this.classNameToCreateCalls.McDbRasterImage=function(){return new McDbRasterImage},this.objectIdToObjectCalls.McDbRasterImageDef=function(n){return new McDbRasterImageDef(r.imp.ObjectIdToMdDbRasterImageDef(n))},this.classNameToCreateCalls.McDbRasterImageDef=function(){return new McDbRasterImageDef},this.objectIdToObjectCalls.McDbDictionary=function(n){return new McDbDictionary(r.imp.ObjectIdToMdDbDictionary(n))},this.classNameToCreateCalls.McDbDictionary=function(){return new McDbDictionary},this.objectIdToObjectCalls.McDbXrecord=function(n){return new McDbXrecord(r.imp.ObjectIdToMdDbXrecord(n))},this.classNameToCreateCalls.McDbXrecord=function(){return new McDbXrecord}}},{key:"objectIdToObject",value:function(r){if(!r)return null;var n=this.imp.ObjectIdToObjectName(r);if(this.objectIdToObjectCalls[n])return this.objectIdToObjectCalls[n](r);if(n=="McDbCustomEntity"){var o=this.imp.ObjectIdToMdDbCustomEntity(r);if(!o)return null;var s=o.getCustomEntityid(),c=o.GetDatabaseIndexId();return MxCpp.App.destroyObject(o),s==0||c==0?null:MxCustomEntityManager.getObject(s,c)}if(this.imp.ObjectIdIsKindOf(r,"McDbCurve"))return this.objectIdToObjectCalls.McDbCurve(r);if(this.imp.ObjectIdIsKindOf(r,"McDbDimension"))return this.objectIdToObjectCalls.McDbDimension(r);if(this.imp.ObjectIdIsKindOf(r,"McDbEntity"))return this.objectIdToObjectCalls.McDbEntity(r);var l=this.imp.ObjectIdToMdObject(r);return new McDbObject(l)}},{key:"createCloneObject",value:function(r){if(!r)return null;var n=r.getObjectName();if(n=="McDbCustomEntity"){var o=r.getCustomEntityid(),s=r.GetDatabaseIndexId(),c=null;return o==0||s==0?(c=MxCustomEntityManager.createMxEntity(r.getCustomEntityTypeName()),c&&(c.getImp().ConnectionTempObject(r),c.syncData(!1))):c=MxCustomEntityManager.getObject(o,s),MxCpp.App.destroyObject(r),c}else{var l=null;return this.classNameToCreateCalls[n]?l=this.classNameToCreateCalls[n]():r.isKindOf("McDbCurve")?(l=new McDbCurve,l.initTempObject(new MxCpp.mxcadassemblyimp.MdDbCurve)):r.isKindOf("McDbEntity")&&(l=new McDbEntity,l.initTempObject(new MxCpp.mxcadassemblyimp.MdDbEntity)),l?(l.getImp().ConnectionTempObject(r),MxCpp.App.destroyObject(r),l):new McDbObject(r)}}},{key:"setFontFilePath",value:function(r){this.imp.setFontFilePath(r)}},{key:"setDefaultTrueTypeFontFile",value:function(r){this.imp.setDefaultTrueTypeFontFile(r)}},{key:"addNetworkLoadingFont",value:function(r){var n=this;typeof r=="string"?this.imp.addNetworkLoadingFont(r):r.forEach(function(o){n.imp.addNetworkLoadingFont(o)})}},{key:"getVersionString",value:function(){return this.imp.GetVersionString()}}]),t}(),MxCppType=function(){function t(){_classCallCheck$1(this,t),_defineProperty(this,"mxcadassemblyimp",void 0),_defineProperty(this,"App",new McAppType),_defineProperty(this,"PropertiesWindow",new MxPropertiesWindowCustom),_defineProperty(this,"Ai",new MxAI)}return _createClass$1(t,[{key:"getCallResult",value:function(){return this.App.getLastCallResult()}},{key:"newMcGePoint3d",value:function(r){var n=new McGePoint3d;return r&&typeof r.x=="number"&&typeof r.y=="number"&&(n.x=r.x,n.y=r.y,typeof r.z=="number"&&(n.z=r.z)),n}},{key:"newMcGeVector3d",value:function(r){var n=new McGeVector3d;return r&&typeof r.x=="number"&&typeof r.y=="number"&&(n.x=r.x,n.y=r.y,typeof r.z=="number"&&(n.z=r.z)),n}},{key:"getCurrentMxCAD",value:function(){return this.App.getCurrentMxCAD()}},{key:"getCurrentDatabase",value:function(){return this.App.getCurrentMxCAD().getDatabase()}},{key:"decodeFromGb2312",value:function(r){return MxG2312Obj.decodeFromGb2312(r)}},{key:"encodeToGb2312",value:function(r){return MxG2312Obj.encodeToGb2312(r)}}]),t}(),MxCADPluginMapDefaultData=_createClass$1(function t(){_classCallCheck$1(this,t),_defineProperty(this,"mapOrigin",[]),_defineProperty(this,"cadOrigin",[]),_defineProperty(this,"meterInCADUnits",1),_defineProperty(this,"mapbox_accessToken",""),_defineProperty(this,"openFile",void 0),_defineProperty(this,"rasterTileLayerList",[]),_defineProperty(this,"rasterTileKey",void 0),_defineProperty(this,"viewColor",void 0)}),MxCADPluginBase=_createClass$1(function t(){_classCallCheck$1(this,t),_defineProperty(this,"sRegistData",""),_defineProperty(this,"mxcadui",void 0),_defineProperty(this,"openFile",void 0),_defineProperty(this,"map_default_data",void 0)}),MxPropertiesWindowCustomValueType=function(t){return t[t.kInt=1]="kInt",t[t.kDouble=2]="kDouble",t[t.kString=3]="kString",t}(MxPropertiesWindowCustomValueType||{}),MxPropertiesWindowCustomValue=_createClass$1(function t(){_classCallCheck$1(this,t),_defineProperty(this,"sVarName",""),_defineProperty(this,"iVarType",1),_defineProperty(this,"val",void 0),_defineProperty(this,"isOnlyRead",!1)}),MxPropertiesWindowCustom=function(){function t(){_classCallCheck$1(this,t),_defineProperty(this,"getPropertiesCall",null),_defineProperty(this,"setPropertiesCall",null)}return _createClass$1(t,[{key:"onEvent_getProperties",value:function(r){this.getPropertiesCall=r}},{key:"onEvent_setProperties",value:function(r){this.setPropertiesCall=r}},{key:"setEntitySupportCustom",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,o=r.getMcDbEntity();o&&o.getImp().setPropertiesWindowCustom(n)}},{key:"getEntityProperties",value:function(r){var n=r.getMcDbEntity();return n?n.getImp().isPropertiesWindowCustom()?this.getPropertiesCall==null?[]:this.getPropertiesCall(r):[]:[]}},{key:"setEntityProperties",value:function(r,n){var o=r.getMcDbEntity();if(!!o&&!!o.getImp().isPropertiesWindowCustom()&&this.setPropertiesCall!=null)return this.setPropertiesCall(r,n)}}]),t}(),MxCpp;function loadMxCADassembly(t){return _loadMxCADassembly.apply(this,arguments)}function _loadMxCADassembly(){return _loadMxCADassembly=_asyncToGenerator(regenerator.mark(function t(e){var r,n,o,s,c=arguments;return regenerator.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return r=c.length>1&&c[1]!==void 0?c[1]:isSharedArrayBuffer||!isCdn?get2DFileURL:get2DSTFileURL,n=c.length>2?c[2]:void 0,o=c.length>3?c[3]:void 0,s=c.length>4?c[4]:void 0,v.abrupt("return",new Promise(function(){var x=_asyncToGenerator(regenerator.mark(function w(_,b){var E,I,O;return regenerator.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:if(A.prev=0,MxCpp||(MxCpp=new MxCppType),!MxCpp.mxcadassemblyimp){A.next=5;break}return e&&e(MxCpp),A.abrupt("return",_(MxCpp));case 5:return E="mxdrawassembly_min",A.next=8,loadWams$1(E,"mxdrawassembly",{locateFile:r,wasmBinary:n});case 8:I=A.sent,MxCpp.mxcadassemblyimp=I,O=new I.McApp,o?O.setFontFilePath(o):O.setFontFilePath("fonts"),O.Init(),MxCustomEntityManager.init(),MxCpp.App.init(O),s?MxCpp.App.addNetworkLoadingFont(s):MxCpp.App.addNetworkLoadingFont(["txt.shx","hztxt.shx"]),e&&e(MxCpp),_(MxCpp),A.next=23;break;case 20:A.prev=20,A.t0=A.catch(0),b(A.t0);case 23:case"end":return A.stop()}},w,null,[[0,20]])}));return function(w,_){return x.apply(this,arguments)}}()));case 5:case"end":return v.stop()}},t)})),_loadMxCADassembly.apply(this,arguments)}function MxCheckTheBrowser(){var t={},e=navigator.userAgent.toLowerCase(),r;if((r=e.match(/edg\/([\d.]+)/))?t.edge=r[1]:(r=e.match(/rv:([\d.]+)\) like gecko/))||(r=e.match(/msie ([\d.]+)/))?t.ie=r[1]:(r=e.match(/firefox\/([\d.]+)/))?t.firefox=r[1]:(r=e.match(/chrome\/([\d.]+)/))?t.chrome=r[1]:(r=e.match(/opera.([\d.]+)/))?t.opera=r[1]:(r=e.match(/version\/([\d.]+).*safari/))&&(t.safari=r[1]),t.ie)return{ok:!1,error:"\u4E0D\u652F\u6301ie\u6D4F\u89C8\u5668\uFF0C\u4F7F\u7528\u6700\u65B0\u7684chrome\u6216edge\u6D4F\u89C8\u5668",var:t};if(t.edge){var n=new RegExp("edg/([0-9]{1,}[.0-9]{0,})");if(n.exec(e)!=null){var o=parseFloat(RegExp.$1);if(o<107)return{ok:!1,error:"edge\u6D4F\u89C8\u5668\u7248\u672C\u592A\u65E7\uFF0C\u4F7F\u7528\u6700\u65B0\u7684edge\u6D4F\u89C8\u5668",var:t}}}else if(t.chrome){var n=new RegExp("chrome/([0-9]{1,}[.0-9]{0,})");if(n.exec(e)!=null){var s=parseFloat(RegExp.$1);if(s<107)return{ok:!1,error:"\u6D4F\u89C8\u5668\u7248\u672C\u592A\u65E7\uFF0C\u4F7F\u7528\u6700\u65B0\u7684chrome\u6D4F\u89C8\u5668",var:t}}}else if(t.firefox){var n=new RegExp("firefox/([0-9]{1,}[.0-9]{0,})");if(n.exec(e)!=null){var c=parseFloat(RegExp.$1);if(c<101)return{ok:!1,error:"firefox\u6D4F\u89C8\u5668\u7248\u672C\u592A\u65E7\uFF0C\u4F7F\u7528\u6700\u65B0\u7684firefox\u6D4F\u89C8\u5668",var:t}}}else if(!t.safari)return t.opera?{ok:!1,error:"\u4E0D\u652F\u6301opera\u6D4F\u89C8\u5668\uFF0C\u4F7F\u7528\u6700\u65B0\u7684chrome\u6216edge\u6D4F\u89C8\u5668",var:t}:{ok:!1,error:"\u4E0D\u652F\u6301\u8BE5\u6D4F\u89C8\u5668\uFF0C\u4F7F\u7528\u6700\u65B0\u7684chrome\u6216edge\u6D4F\u89C8\u5668",var:t};return{ok:!0,error:"",var:t}}var McGePoint3d=function(){function t(e,r,n){_classCallCheck$1(this,t),_defineProperty(this,"imp",void 0),this.imp=new MxCpp.mxcadassemblyimp.MdGePoint3d,e instanceof Object?(this.imp.x=e.x,this.imp.y=e.y,this.imp.z=e.z):(this.imp.x=e||0,this.imp.y=r||0,this.imp.z=n||0)}return _createClass$1(t,[{key:"toVector3",value:function(){return new THREE.Vector3(this.imp.x,this.imp.y,this.imp.z)}},{key:"setFromVector3",value:function(r){return this.imp.x=r.x,this.imp.y=r.y,this.imp.z=r.z,this}},{key:"copy",value:function(r){return this.imp.x=r.x,this.imp.y=r.y,this.imp.z=r.z,this}},{key:"transformBy",value:function(r){return this.imp.transformBy(r.imp),this}},{key:"addvec",value:function(r){return this.imp.addvec(r.imp),this}},{key:"av",value:function(r){return this.imp.addvec(r.imp),this}},{key:"subvec",value:function(r){return this.imp.subvec(r.imp),this}},{key:"sv",value:function(r){return this.imp.subvec(r.imp),this}},{key:"sub",value:function(r){return new McGeVector3d(this.imp.sub(r.imp))}},{key:"distanceTo",value:function(r){return this.imp.distanceTo(r.imp)}},{key:"isEqualTo",value:function(r){return this.imp.isEqualTo(r.imp)}},{key:"clone",value:function(){return new t(this.imp)}},{key:"c",value:function(){return new t(this.imp)}},{key:"x",get:function(){return this.imp.x},set:function(r){this.imp.x=r}},{key:"y",get:function(){return this.imp.y},set:function(r){this.imp.y=r}},{key:"z",get:function(){return this.imp.z},set:function(r){this.imp.z=r}}]),t}();_defineProperty(McGePoint3d,"kOrigin",void 0);var McGeVector3d=function(){function t(e,r,n){_classCallCheck$1(this,t),_defineProperty(this,"imp",void 0),this.imp=new MxCpp.mxcadassemblyimp.MdGeVector3d,e instanceof Object?(this.imp.x=e.x,this.imp.y=e.y,this.imp.z=e.z):(this.imp.x=e||0,this.imp.y=r||0,this.imp.z=n||0)}return _createClass$1(t,[{key:"toVector3",value:function(){return new THREE.Vector3(this.imp.x,this.imp.y,this.imp.z)}},{key:"copy",value:function(r){return this.imp.x=r.imp.x,this.imp.y=r.imp.y,this.imp.z=r.imp.z,this}},{key:"clone",value:function(){return new t(this.imp)}},{key:"c",value:function(){return new t(this.imp)}},{key:"rotateBy",value:function(r,n){return n||(n=t.kZAxis),this.imp.rotateBy(r,n.imp),this}},{key:"negate",value:function(){return this.imp.negate(),this}},{key:"perpVector",value:function(){return this.imp.perpVector(),this}},{key:"angleTo1",value:function(r){return this.imp.angleTo(r.imp)}},{key:"angleTo2",value:function(r,n){return n||(n=t.kNegateZAxis),this.imp.angleTo(r.imp,n.imp)}},{key:"normalize",value:function(){return this.imp.normalize(),this}},{key:"length",value:function(){return this.imp.length()}},{key:"isUnitLength",value:function(){return this.imp.isUnitLength()}},{key:"isZeroLength",value:function(){return this.imp.isZeroLength()}},{key:"dotProduct",value:function(r){return this.imp.dotProduct(r.imp)}},{key:"crossProduct",value:function(r){var n=new t;return n.imp=this.imp.crossProduct(r.imp),n}},{key:"isEqualTo",value:function(r){return this.imp.isEqualTo(r.imp)}},{key:"mult",value:function(r){return this.imp.mult(r),this}},{key:"x",get:function(){return this.imp.x},set:function(r){this.imp.x=r}},{key:"y",get:function(){return this.imp.y},set:function(r){this.imp.y=r}},{key:"z",get:function(){return this.imp.z},set:function(r){this.imp.z=r}}]),t}();_defineProperty(McGeVector3d,"kXAxis",void 0);_defineProperty(McGeVector3d,"kYAxis",void 0);_defineProperty(McGeVector3d,"kZAxis",void 0);_defineProperty(McGeVector3d,"kNegateZAxis",void 0);var McGeMatrix3d=function(){function t(e){_classCallCheck$1(this,t),_defineProperty(this,"imp",void 0),this.imp=new MxCpp.mxcadassemblyimp.MdGeMatrix3d,e instanceof Object&&this.imp.copy(e)}return _createClass$1(t,[{key:"copy",value:function(r){return this.imp.copy(r.imp),this}},{key:"clone",value:function(){return new t(this.imp)}},{key:"setToIdentity",value:function(){return this.imp.setToIdentity(),this}},{key:"preMultBy",value:function(r){return this.imp.preMultBy(r.imp),this}},{key:"postMultBy",value:function(r){return this.imp.postMultBy(r.imp),this}},{key:"setToProduct",value:function(r,n){return this.imp.setToProduct(r.imp,n.imp),this}},{key:"invert",value:function(){return this.imp.invert(),this}},{key:"isSingular",value:function(){return this.imp.isSingular()}},{key:"transposeIt",value:function(){return this.imp.transposeIt(),this}},{key:"isEqualTo",value:function(r){return this.imp.isEqualTo(r.imp)}},{key:"det",value:function(){return this.imp.det()}},{key:"setCoordSystem",value:function(r,n,o,s){return this.imp.setCoordSystem(r.imp,n.imp,o.imp,s.imp),this}},{key:"setToTranslation",value:function(r){return this.imp.setToTranslation(r.imp),this}},{key:"setToRotation",value:function(r,n,o){return this.imp.setToRotation(r,n.imp,o.imp),this}},{key:"setToScaling",value:function(r,n){return this.imp.setToScaling(r,n.imp),this}},{key:"setMirror",value:function(r,n){return this.imp.setMirror(r.imp,n.imp),this}},{key:"scale",value:function(){return this.imp.scale()}},{key:"getData",value:function(r,n){return this.imp.getData(r,n)}}]),t}();_defineProperty(McGeMatrix3d,"kIdentity",void 0);var McGeLongArray=function(){function t(e){_classCallCheck$1(this,t),_defineProperty(this,"imp",void 0),this.imp=new MxCpp.mxcadassemblyimp.MdGeLongArray,e instanceof Object&&this.imp.copy(e)}return _createClass$1(t,[{key:"copy",value:function(r){return this.imp.clear(),this.imp.copy(r.imp),this}},{key:"copyFormAryId",value:function(r){var n=this;return this.imp.clear(),r.forEach(function(o){n.imp.append(o.id)}),this}},{key:"append",value:function(r){this.imp.append(r)}},{key:"length",value:function(){return this.imp.length()}},{key:"at",value:function(r){return this.imp.at(r)}},{key:"setAt",value:function(r,n){this.imp.setAt(r,n)}},{key:"clear",value:function(){this.imp.clear()}},{key:"forEach",value:function(r){for(var n=this.imp.length(),o=0;o<n;o++)r(this.imp.at(o),o)}}]),t}(),McGeStringArray=function(){function t(e){_classCallCheck$1(this,t),_defineProperty(this,"imp",void 0),this.imp=new MxCpp.mxcadassemblyimp.MdGeStringArray,e instanceof Object&&this.imp.copy(e)}return _createClass$1(t,[{key:"copy",value:function(r){return this.imp.copy(r.imp),this}},{key:"append",value:function(r){this.imp.append(r)}},{key:"length",value:function(){return this.imp.length()}},{key:"at",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n?MxG2312Obj.decodeFromGb2312(this.imp.at(r)):this.imp.at(r)}},{key:"setAt",value:function(r,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;o?this.imp.setAt(r,MxG2312Obj.encodeToGb2312(n)):this.imp.setAt(r,n)}},{key:"forEach",value:function(r){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,o=this.imp.length(),s=0;s<o;s++)r(n?MxG2312Obj.decodeFromGb2312(this.imp.at(s)):this.imp.at(s),s)}},{key:"clear",value:function(){this.imp.clear()}}]),t}(),McGePoint3dArray=function(){function t(e){var r=this;_classCallCheck$1(this,t),_defineProperty(this,"imp",void 0),this.imp=new MxCpp.mxcadassemblyimp.MdGePoint3dArray,e instanceof Array?e.forEach(function(n){r.imp.append(n.imp)}):e instanceof Object&&this.imp.copy(e)}return _createClass$1(t,[{key:"copy",value:function(r){var n=this;return r instanceof Array?r.forEach(function(o){n.imp.append(o.imp)}):this.imp.copy(r.imp),this}},{key:"append",value:function(r){this.imp.append(r.imp)}},{key:"length",value:function(){return this.imp.length()}},{key:"isEmpty",value:function(){return this.imp.length()==0}},{key:"at",value:function(r){return new McGePoint3d(this.imp.at(r))}},{key:"setAt",value:function(r,n){this.imp.setAt(r,n.imp)}},{key:"clear",value:function(){this.imp.clear()}},{key:"forEach",value:function(r){for(var n=this.imp.length(),o=0;o<n;o++)r(new McGePoint3d(this.imp.at(o)),o)}}]),t}(),MdGeDoubleArray=function(){function t(e){_classCallCheck$1(this,t),_defineProperty(this,"imp",void 0),this.imp=new MxCpp.mxcadassemblyimp.MdGeDoubleArray,e instanceof Object&&this.imp.copy(e)}return _createClass$1(t,[{key:"copy",value:function(r){return this.imp.clear(),this.imp.copy(r.imp),this}},{key:"append",value:function(r){this.imp.append(r)}},{key:"length",value:function(){return this.imp.length()}},{key:"at",value:function(r){return this.imp.at(r)}},{key:"setAt",value:function(r,n){this.imp.setAt(r,n)}},{key:"clear",value:function(){this.imp.clear()}},{key:"forEach",value:function(r){for(var n=this.imp.length(),o=0;o<n;o++)r(this.imp.at(o),o)}}]),t}(),_assign=function t(){return _assign=Object.assign||function(r){for(var n,o=1,s=arguments.length;o<s;o++){n=arguments[o];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(r[c]=n[c])}return r},_assign.apply(this,arguments)};function __awaiter$1(t,e,r,n){function o(s){return s instanceof r?s:new r(function(c){c(s)})}return new(r||(r=Promise))(function(s,c){function l(w){try{x(n.next(w))}catch(_){c(_)}}function v(w){try{x(n.throw(w))}catch(_){c(_)}}function x(w){w.done?s(w.value):o(w.value).then(l,v)}x((n=n.apply(t,e||[])).next())})}function __generator$1(t,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,o,s,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(x){return function(w){return v([x,w])}}function v(x){if(n)throw new TypeError("Generator is already executing.");for(;c&&(c=0,x[0]&&(r=0)),r;)try{if(n=1,o&&(s=x[0]&2?o.return:x[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,x[1])).done)return s;switch(o=0,s&&(x=[x[0]&2,s.value]),x[0]){case 0:case 1:s=x;break;case 4:return r.label++,{value:x[1],done:!1};case 5:r.label++,o=x[1],x=[0];continue;case 7:x=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(x[0]===6||x[0]===2)){r=0;continue}if(x[0]===3&&(!s||x[1]>s[0]&&x[1]<s[3])){r.label=x[1];break}if(x[0]===6&&r.label<s[1]){r.label=s[1],s=x;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(x);break}s[2]&&r.ops.pop(),r.trys.pop();continue}x=e.call(t,r)}catch(w){x=[6,w],o=0}finally{n=s=0}if(x[0]&5)throw x[1];return{value:x[0]?x[1]:void 0,done:!0}}}function __spreadArray$1(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,s;n<o;n++)(s||!(n in e))&&(s||(s=Array.prototype.slice.call(e,0,n)),s[n]=e[n]);return t.concat(s||Array.prototype.slice.call(e))}typeof SuppressedError=="function"&&SuppressedError;var version$3="4.1.0";function wait$1(t,e){return new Promise(function(r){return setTimeout(r,t,e)})}function releaseEventLoop(){return wait$1(0)}function requestIdleCallbackIfAvailable$1(t,e){e===void 0&&(e=1/0);var r=window.requestIdleCallback;return r?new Promise(function(n){return r.call(window,function(){return n()},{timeout:e})}):wait$1(Math.min(t,e))}function isPromise$1(t){return!!t&&typeof t.then=="function"}function awaitIfAsync$1(t,e){try{var r=t();isPromise$1(r)?r.then(function(n){return e(!0,n)},function(n){return e(!1,n)}):e(!0,r)}catch(n){e(!1,n)}}function mapWithBreaks$1(t,e,r){return r===void 0&&(r=16),__awaiter$1(this,void 0,void 0,function(){var n,o,s,c;return __generator$1(this,function(l){switch(l.label){case 0:n=Array(t.length),o=Date.now(),s=0,l.label=1;case 1:return s<t.length?(n[s]=e(t[s],s),c=Date.now(),c>=o+r?(o=c,[4,wait$1(0)]):[3,3]):[3,4];case 2:l.sent(),l.label=3;case 3:return++s,[3,1];case 4:return[2,n]}})})}function suppressUnhandledRejectionWarning$1(t){t.then(void 0,function(){})}function includes$2(t,e){for(var r=0,n=t.length;r<n;++r)if(t[r]===e)return!0;return!1}function excludes$1(t,e){return!includes$2(t,e)}function toInt$1(t){return parseInt(t)}function toFloat$1(t){return parseFloat(t)}function replaceNaN$1(t,e){return typeof t=="number"&&isNaN(t)?e:t}function countTruthy$1(t){return t.reduce(function(e,r){return e+(r?1:0)},0)}function round$1(t,e){if(e===void 0&&(e=1),Math.abs(e)>=1)return Math.round(t/e)*e;var r=1/e;return Math.round(t*r)/r}function parseSimpleCssSelector$1(t){for(var e,r,n="Unexpected syntax '".concat(t,"'"),o=/^\s*([a-z-]*)(.*)$/i.exec(t),s=o[1]||void 0,c={},l=/([.:#][\w-]+|\[.+?\])/gi,v=function(E,I){c[E]=c[E]||[],c[E].push(I)};;){var x=l.exec(o[2]);if(!x)break;var w=x[0];switch(w[0]){case".":v("class",w.slice(1));break;case"#":v("id",w.slice(1));break;case"[":{var _=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(w);if(_)v(_[1],(r=(e=_[4])!==null&&e!==void 0?e:_[5])!==null&&r!==void 0?r:"");else throw new Error(n);break}default:throw new Error(n)}}return[s,c]}function getUTF8Bytes(t){for(var e=new Uint8Array(t.length),r=0;r<t.length;r++){var n=t.charCodeAt(r);if(n<0||n>127)return new TextEncoder().encode(t);e[r]=n}return e}function x64Add$1(t,e){var r=t[0]>>>16,n=t[0]&65535,o=t[1]>>>16,s=t[1]&65535,c=e[0]>>>16,l=e[0]&65535,v=e[1]>>>16,x=e[1]&65535,w=0,_=0,b=0,E=0;E+=s+x,b+=E>>>16,E&=65535,b+=o+v,_+=b>>>16,b&=65535,_+=n+l,w+=_>>>16,_&=65535,w+=r+c,w&=65535,t[0]=w<<16|_,t[1]=b<<16|E}function x64Multiply$1(t,e){var r=t[0]>>>16,n=t[0]&65535,o=t[1]>>>16,s=t[1]&65535,c=e[0]>>>16,l=e[0]&65535,v=e[1]>>>16,x=e[1]&65535,w=0,_=0,b=0,E=0;E+=s*x,b+=E>>>16,E&=65535,b+=o*x,_+=b>>>16,b&=65535,b+=s*v,_+=b>>>16,b&=65535,_+=n*x,w+=_>>>16,_&=65535,_+=o*v,w+=_>>>16,_&=65535,_+=s*l,w+=_>>>16,_&=65535,w+=r*x+n*v+o*l+s*c,w&=65535,t[0]=w<<16|_,t[1]=b<<16|E}function x64Rotl$1(t,e){var r=t[0];e%=64,e===32?(t[0]=t[1],t[1]=r):e<32?(t[0]=r<<e|t[1]>>>32-e,t[1]=t[1]<<e|r>>>32-e):(e-=32,t[0]=t[1]<<e|r>>>32-e,t[1]=r<<e|t[1]>>>32-e)}function x64LeftShift$1(t,e){e%=64,e!==0&&(e<32?(t[0]=t[1]>>>32-e,t[1]=t[1]<<e):(t[0]=t[1]<<e-32,t[1]=0))}function x64Xor$1(t,e){t[0]^=e[0],t[1]^=e[1]}var F1=[4283543511,3981806797],F2=[3301882366,444984403];function x64Fmix$1(t){var e=[0,t[0]>>>1];x64Xor$1(t,e),x64Multiply$1(t,F1),e[1]=t[0]>>>1,x64Xor$1(t,e),x64Multiply$1(t,F2),e[1]=t[0]>>>1,x64Xor$1(t,e)}var C1=[2277735313,289559509],C2=[1291169091,658871167],M$1=[0,5],N1=[0,1390208809],N2=[0,944331445];function x64hash128$1(t,e){var r=getUTF8Bytes(t);e=e||0;var n=[0,r.length],o=n[1]%16,s=n[1]-o,c=[0,e],l=[0,e],v=[0,0],x=[0,0],w;for(w=0;w<s;w=w+16)v[0]=r[w+4]|r[w+5]<<8|r[w+6]<<16|r[w+7]<<24,v[1]=r[w]|r[w+1]<<8|r[w+2]<<16|r[w+3]<<24,x[0]=r[w+12]|r[w+13]<<8|r[w+14]<<16|r[w+15]<<24,x[1]=r[w+8]|r[w+9]<<8|r[w+10]<<16|r[w+11]<<24,x64Multiply$1(v,C1),x64Rotl$1(v,31),x64Multiply$1(v,C2),x64Xor$1(c,v),x64Rotl$1(c,27),x64Add$1(c,l),x64Multiply$1(c,M$1),x64Add$1(c,N1),x64Multiply$1(x,C2),x64Rotl$1(x,33),x64Multiply$1(x,C1),x64Xor$1(l,x),x64Rotl$1(l,31),x64Add$1(l,c),x64Multiply$1(l,M$1),x64Add$1(l,N2);v[0]=0,v[1]=0,x[0]=0,x[1]=0;var _=[0,0];switch(o){case 15:_[1]=r[w+14],x64LeftShift$1(_,48),x64Xor$1(x,_);case 14:_[1]=r[w+13],x64LeftShift$1(_,40),x64Xor$1(x,_);case 13:_[1]=r[w+12],x64LeftShift$1(_,32),x64Xor$1(x,_);case 12:_[1]=r[w+11],x64LeftShift$1(_,24),x64Xor$1(x,_);case 11:_[1]=r[w+10],x64LeftShift$1(_,16),x64Xor$1(x,_);case 10:_[1]=r[w+9],x64LeftShift$1(_,8),x64Xor$1(x,_);case 9:_[1]=r[w+8],x64Xor$1(x,_),x64Multiply$1(x,C2),x64Rotl$1(x,33),x64Multiply$1(x,C1),x64Xor$1(l,x);case 8:_[1]=r[w+7],x64LeftShift$1(_,56),x64Xor$1(v,_);case 7:_[1]=r[w+6],x64LeftShift$1(_,48),x64Xor$1(v,_);case 6:_[1]=r[w+5],x64LeftShift$1(_,40),x64Xor$1(v,_);case 5:_[1]=r[w+4],x64LeftShift$1(_,32),x64Xor$1(v,_);case 4:_[1]=r[w+3],x64LeftShift$1(_,24),x64Xor$1(v,_);case 3:_[1]=r[w+2],x64LeftShift$1(_,16),x64Xor$1(v,_);case 2:_[1]=r[w+1],x64LeftShift$1(_,8),x64Xor$1(v,_);case 1:_[1]=r[w],x64Xor$1(v,_),x64Multiply$1(v,C1),x64Rotl$1(v,31),x64Multiply$1(v,C2),x64Xor$1(c,v)}return x64Xor$1(c,n),x64Xor$1(l,n),x64Add$1(c,l),x64Add$1(l,c),x64Fmix$1(c),x64Fmix$1(l),x64Add$1(c,l),x64Add$1(l,c),("00000000"+(c[0]>>>0).toString(16)).slice(-8)+("00000000"+(c[1]>>>0).toString(16)).slice(-8)+("00000000"+(l[0]>>>0).toString(16)).slice(-8)+("00000000"+(l[1]>>>0).toString(16)).slice(-8)}function errorToObject$1(t){var e;return _assign({name:t.name,message:t.message,stack:(e=t.stack)===null||e===void 0?void 0:e.split(`
  3369. `)},t)}function isFunctionNative(t){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(t))}function isFinalResultLoaded$1(t){return typeof t!="function"}function loadSource$1(t,e){var r=new Promise(function(n){var o=Date.now();awaitIfAsync$1(t.bind(null,e),function(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];var l=Date.now()-o;if(!s[0])return n(function(){return{error:s[1],duration:l}});var v=s[1];if(isFinalResultLoaded$1(v))return n(function(){return{value:v,duration:l}});n(function(){return new Promise(function(x){var w=Date.now();awaitIfAsync$1(v,function(){for(var _=[],b=0;b<arguments.length;b++)_[b]=arguments[b];var E=l+Date.now()-w;if(!_[0])return x({error:_[1],duration:E});x({value:_[1],duration:E})})})})})});return suppressUnhandledRejectionWarning$1(r),function(){return r.then(function(o){return o()})}}function loadSources$1(t,e,r){var n=Object.keys(t).filter(function(s){return excludes$1(r,s)}),o=mapWithBreaks$1(n,function(s){return loadSource$1(t[s],e)});return suppressUnhandledRejectionWarning$1(o),function(){return __awaiter$1(this,void 0,void 0,function(){var c,l,v,x,w;return __generator$1(this,function(_){switch(_.label){case 0:return[4,o];case 1:return c=_.sent(),[4,mapWithBreaks$1(c,function(b){var E=b();return suppressUnhandledRejectionWarning$1(E),E})];case 2:return l=_.sent(),[4,Promise.all(l)];case 3:for(v=_.sent(),x={},w=0;w<n.length;++w)x[n[w]]=v[w];return[2,x]}})})}}function isTrident$1(){var t=window,e=navigator;return countTruthy$1(["MSCSSMatrix"in t,"msSetImmediate"in t,"msIndexedDB"in t,"msMaxTouchPoints"in e,"msPointerEnabled"in e])>=4}function isEdgeHTML$1(){var t=window,e=navigator;return countTruthy$1(["msWriteProfilerMark"in t,"MSStream"in t,"msLaunchUri"in e,"msSaveBlob"in e])>=3&&!isTrident$1()}function isChromium$1(){var t=window,e=navigator;return countTruthy$1(["webkitPersistentStorage"in e,"webkitTemporaryStorage"in e,e.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in t,"BatteryManager"in t,"webkitMediaStream"in t,"webkitSpeechGrammar"in t])>=5}function isWebKit$1(){var t=window,e=navigator;return countTruthy$1(["ApplePayError"in t,"CSSPrimitiveValue"in t,"Counter"in t,e.vendor.indexOf("Apple")===0,"getStorageUpdates"in e,"WebKitMediaKeys"in t])>=4}function isDesktopWebKit(){var t=window,e=t.HTMLElement,r=t.Document;return countTruthy$1(["safari"in t,!("ongestureend"in t),!("TouchEvent"in t),!("orientation"in t),e&&!("autocapitalize"in e.prototype),r&&"pointerLockElement"in r.prototype])>=4}function isSafariWebKit(){var t=window;return isFunctionNative(t.print)?countTruthy$1([String(t.browser)==="[object WebPageNamespace]","MicrodataExtractor"in t])>=1:!1}function isGecko$1(){var t,e,r=window;return countTruthy$1(["buildID"in navigator,"MozAppearance"in((e=(t=document.documentElement)===null||t===void 0?void 0:t.style)!==null&&e!==void 0?e:{}),"onmozfullscreenchange"in r,"mozInnerScreenX"in r,"CSSMozDocumentRule"in r,"CanvasCaptureMediaStream"in r])>=4}function isChromium86OrNewer$1(){var t=window;return countTruthy$1([!("MediaSettingsRange"in t),"RTCEncodedAudioFrame"in t,""+t.Intl=="[object Intl]",""+t.Reflect=="[object Reflect]"])>=3}function isWebKit606OrNewer$1(){var t=window;return countTruthy$1(["DOMRectList"in t,"RTCPeerConnectionIceEvent"in t,"SVGGeometryElement"in t,"ontransitioncancel"in t])>=3}function isWebKit616OrNewer(){var t=window,e=navigator,r=t.CSS,n=t.HTMLButtonElement;return countTruthy$1([!("getStorageUpdates"in e),n&&"popover"in n.prototype,"CSSCounterStyleRule"in t,r.supports("font-size-adjust: ex-height 0.5"),r.supports("text-transform: full-width")])>=4}function isIPad$1(){if(navigator.platform==="iPad")return!0;var t=screen,e=t.width/t.height;return countTruthy$1(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,e>.65&&e<1.53])>=2}function getFullscreenElement$1(){var t=document;return t.fullscreenElement||t.msFullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||null}function exitFullscreen$1(){var t=document;return(t.exitFullscreen||t.msExitFullscreen||t.mozCancelFullScreen||t.webkitExitFullscreen).call(t)}function isAndroid$1(){var t=isChromium$1(),e=isGecko$1();if(!t&&!e)return!1;var r=window;return countTruthy$1(["onorientationchange"in r,"orientation"in r,t&&!("SharedWorker"in r),e&&/android/i.test(navigator.appVersion)])>=2}function getAudioFingerprint$1(){return doesBrowserPerformAntifingerprinting$1()?-4:getRawAudioFingerprint()}function getRawAudioFingerprint(){var t=window,e=t.OfflineAudioContext||t.webkitOfflineAudioContext;if(!e)return-2;if(doesBrowserSuspendAudioContext())return-1;var r=4500,n=5e3,o=new e(1,n,44100),s=o.createOscillator();s.type="triangle",s.frequency.value=1e4;var c=o.createDynamicsCompressor();c.threshold.value=-50,c.knee.value=40,c.ratio.value=12,c.attack.value=0,c.release.value=.25,s.connect(c),c.connect(o.destination),s.start(0);var l=startRenderingAudio$1(o),v=l[0],x=l[1],w=v.then(function(_){return getHash$1(_.getChannelData(0).subarray(r))},function(_){if(_.name==="timeout"||_.name==="suspended")return-3;throw _});return suppressUnhandledRejectionWarning$1(w),function(){return x(),w}}function doesBrowserSuspendAudioContext(){return isWebKit$1()&&!isDesktopWebKit()&&!isWebKit606OrNewer$1()}function doesBrowserPerformAntifingerprinting$1(){return isWebKit$1()&&isWebKit616OrNewer()&&isSafariWebKit()}function startRenderingAudio$1(t){var e=3,r=500,n=500,o=5e3,s=function(){},c=new Promise(function(l,v){var x=!1,w=0,_=0;t.oncomplete=function(I){return l(I.renderedBuffer)};var b=function(){setTimeout(function(){return v(makeInnerError$1("timeout"))},Math.min(n,_+o-Date.now()))},E=function I(){try{var O=t.startRendering();switch(isPromise$1(O)&&suppressUnhandledRejectionWarning$1(O),t.state){case"running":_=Date.now(),x&&b();break;case"suspended":document.hidden||w++,x&&w>=e?v(makeInnerError$1("suspended")):setTimeout(I,r);break}}catch(N){v(N)}};E(),s=function(){x||(x=!0,_>0&&b())}});return[c,s]}function getHash$1(t){for(var e=0,r=0;r<t.length;++r)e+=Math.abs(t[r]);return e}function makeInnerError$1(t){var e=new Error(t);return e.name=t,e}function withIframe$1(t,e,r){var n,o,s;return r===void 0&&(r=50),__awaiter$1(this,void 0,void 0,function(){var c,l;return __generator$1(this,function(v){switch(v.label){case 0:c=document,v.label=1;case 1:return c.body?[3,3]:[4,wait$1(r)];case 2:return v.sent(),[3,1];case 3:l=c.createElement("iframe"),v.label=4;case 4:return v.trys.push([4,,10,11]),[4,new Promise(function(x,w){var _=!1,b=function(){_=!0,x()},E=function(A){_=!0,w(A)};l.onload=b,l.onerror=E;var I=l.style;I.setProperty("display","block","important"),I.position="absolute",I.top="0",I.left="0",I.visibility="hidden",e&&"srcdoc"in l?l.srcdoc=e:l.src="about:blank",c.body.appendChild(l);var O=function N(){var A,z;_||(((z=(A=l.contentWindow)===null||A===void 0?void 0:A.document)===null||z===void 0?void 0:z.readyState)==="complete"?b():setTimeout(N,10))};O()})];case 5:v.sent(),v.label=6;case 6:return!((o=(n=l.contentWindow)===null||n===void 0?void 0:n.document)===null||o===void 0)&&o.body?[3,8]:[4,wait$1(r)];case 7:return v.sent(),[3,6];case 8:return[4,t(l,l.contentWindow)];case 9:return[2,v.sent()];case 10:return(s=l.parentNode)===null||s===void 0||s.removeChild(l),[7];case 11:return[2]}})})}function selectorToElement$1(t){for(var e=parseSimpleCssSelector$1(t),r=e[0],n=e[1],o=document.createElement(r!=null?r:"div"),s=0,c=Object.keys(n);s<c.length;s++){var l=c[s],v=n[l].join(" ");l==="style"?addStyleString$1(o.style,v):o.setAttribute(l,v)}return o}function addStyleString$1(t,e){for(var r=0,n=e.split(";");r<n.length;r++){var o=n[r],s=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(o);if(s){var c=s[1],l=s[2],v=s[4];t.setProperty(c,l,v||"")}}}var testString$1="mmMwWLliI0O&1",textSize$1="48px",baseFonts$1=["monospace","sans-serif","serif"],fontList$1=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function getFonts$1(){var t=this;return withIframe$1(function(e,r){var n=r.document;return __awaiter$1(t,void 0,void 0,function(){var o,s,c,l,v,x,w,_,b,E,I,O;return __generator$1(this,function(N){switch(N.label){case 0:return o=n.body,o.style.fontSize=textSize$1,s=n.createElement("div"),s.style.setProperty("visibility","hidden","important"),c={},l={},v=function(z){var G=n.createElement("span"),V=G.style;return V.position="absolute",V.top="0",V.left="0",V.fontFamily=z,G.textContent=testString$1,s.appendChild(G),G},x=function(z,G){return v("'".concat(z,"',").concat(G))},w=function(){return baseFonts$1.map(v)},_=function(){for(var z={},G=function(q){z[q]=baseFonts$1.map(function(D){return x(q,D)})},V=0,ne=fontList$1;V<ne.length;V++){var W=ne[V];G(W)}return z},b=function(z){return baseFonts$1.some(function(G,V){return z[V].offsetWidth!==c[G]||z[V].offsetHeight!==l[G]})},E=w(),I=_(),o.appendChild(s),[4,releaseEventLoop()];case 1:for(N.sent(),O=0;O<baseFonts$1.length;O++)c[baseFonts$1[O]]=E[O].offsetWidth,l[baseFonts$1[O]]=E[O].offsetHeight;return[2,fontList$1.filter(function(A){return b(I[A])})]}})})})}function getPlugins$1(){var t=navigator.plugins;if(!!t){for(var e=[],r=0;r<t.length;++r){var n=t[r];if(!!n){for(var o=[],s=0;s<n.length;++s){var c=n[s];o.push({type:c.type,suffixes:c.suffixes})}e.push({name:n.name,description:n.description,mimeTypes:o})}}return e}}function getCanvasFingerprint$1(){return getRawCanvasFingerprint(doesBrowserPerformAntifingerprinting())}function getRawCanvasFingerprint(t){return __awaiter$1(this,void 0,void 0,function(){var e,r,n,o,s,c,l;return __generator$1(this,function(v){switch(v.label){case 0:return e=!1,o=makeCanvasContext$1(),s=o[0],c=o[1],isSupported$1(s,c)?[3,1]:(r=n="unsupported",[3,4]);case 1:return e=doesSupportWinding$1(c),t?(r=n="skipped",[3,4]):[3,2];case 2:return[4,renderImages(s,c)];case 3:l=v.sent(),r=l[0],n=l[1],v.label=4;case 4:return[2,{winding:e,geometry:r,text:n}]}})})}function makeCanvasContext$1(){var t=document.createElement("canvas");return t.width=1,t.height=1,[t,t.getContext("2d")]}function isSupported$1(t,e){return!!(e&&t.toDataURL)}function doesSupportWinding$1(t){return t.rect(0,0,10,10),t.rect(2,2,6,6),!t.isPointInPath(5,5,"evenodd")}function renderImages(t,e){return __awaiter$1(this,void 0,void 0,function(){var r,n,o;return __generator$1(this,function(s){switch(s.label){case 0:return renderTextImage$1(t,e),[4,releaseEventLoop()];case 1:return s.sent(),r=canvasToString$1(t),n=canvasToString$1(t),r!==n?[2,["unstable","unstable"]]:(renderGeometryImage$1(t,e),[4,releaseEventLoop()]);case 2:return s.sent(),o=canvasToString$1(t),[2,[r,o]]}})})}function renderTextImage$1(t,e){t.width=240,t.height=60,e.textBaseline="alphabetic",e.fillStyle="#f60",e.fillRect(100,1,62,20),e.fillStyle="#069",e.font='11pt "Times New Roman"';var r="Cwm fjordbank gly ".concat(String.fromCharCode(55357,56835));e.fillText(r,2,15),e.fillStyle="rgba(102, 204, 0, 0.2)",e.font="18pt Arial",e.fillText(r,4,45)}function renderGeometryImage$1(t,e){t.width=122,t.height=110,e.globalCompositeOperation="multiply";for(var r=0,n=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];r<n.length;r++){var o=n[r],s=o[0],c=o[1],l=o[2];e.fillStyle=s,e.beginPath(),e.arc(c,l,40,0,Math.PI*2,!0),e.closePath(),e.fill()}e.fillStyle="#f9c",e.arc(60,60,60,0,Math.PI*2,!0),e.arc(60,60,20,0,Math.PI*2,!0),e.fill("evenodd")}function canvasToString$1(t){return t.toDataURL()}function doesBrowserPerformAntifingerprinting(){return isWebKit$1()&&isWebKit616OrNewer()&&isSafariWebKit()}function getTouchSupport$1(){var t=navigator,e=0,r;t.maxTouchPoints!==void 0?e=toInt$1(t.maxTouchPoints):t.msMaxTouchPoints!==void 0&&(e=t.msMaxTouchPoints);try{document.createEvent("TouchEvent"),r=!0}catch(o){r=!1}var n="ontouchstart"in window;return{maxTouchPoints:e,touchEvent:r,touchStart:n}}function getOsCpu$1(){return navigator.oscpu}function getLanguages$1(){var t=navigator,e=[],r=t.language||t.userLanguage||t.browserLanguage||t.systemLanguage;if(r!==void 0&&e.push([r]),Array.isArray(t.languages))isChromium$1()&&isChromium86OrNewer$1()||e.push(t.languages);else if(typeof t.languages=="string"){var n=t.languages;n&&e.push(n.split(","))}return e}function getColorDepth$1(){return window.screen.colorDepth}function getDeviceMemory$1(){return replaceNaN$1(toFloat$1(navigator.deviceMemory),void 0)}function getScreenResolution$1(){if(!(isWebKit$1()&&isWebKit616OrNewer()&&isSafariWebKit()))return getRawScreenResolution()}function getRawScreenResolution(){var t=screen,e=function(o){return replaceNaN$1(toInt$1(o),null)},r=[e(t.width),e(t.height)];return r.sort().reverse(),r}var screenFrameCheckInterval$1=2500,roundingPrecision$1=10,screenFrameBackup$1,screenFrameSizeTimeoutId$1;function watchScreenFrame$1(){if(screenFrameSizeTimeoutId$1===void 0){var t=function e(){var r=getCurrentScreenFrame$1();isFrameSizeNull$1(r)?screenFrameSizeTimeoutId$1=setTimeout(e,screenFrameCheckInterval$1):(screenFrameBackup$1=r,screenFrameSizeTimeoutId$1=void 0)};t()}}function getRawScreenFrame(){var t=this;return watchScreenFrame$1(),function(){return __awaiter$1(t,void 0,void 0,function(){var e;return __generator$1(this,function(r){switch(r.label){case 0:return e=getCurrentScreenFrame$1(),isFrameSizeNull$1(e)?screenFrameBackup$1?[2,__spreadArray$1([],screenFrameBackup$1,!0)]:getFullscreenElement$1()?[4,exitFullscreen$1()]:[3,2]:[3,2];case 1:r.sent(),e=getCurrentScreenFrame$1(),r.label=2;case 2:return isFrameSizeNull$1(e)||(screenFrameBackup$1=e),[2,e]}})})}}function getScreenFrame$1(){var t=this;if(isWebKit$1()&&isWebKit616OrNewer()&&isSafariWebKit())return function(){return Promise.resolve(void 0)};var e=getRawScreenFrame();return function(){return __awaiter$1(t,void 0,void 0,function(){var r,n;return __generator$1(this,function(o){switch(o.label){case 0:return[4,e()];case 1:return r=o.sent(),n=function(c){return c===null?null:round$1(c,roundingPrecision$1)},[2,[n(r[0]),n(r[1]),n(r[2]),n(r[3])]]}})})}}function getCurrentScreenFrame$1(){var t=screen;return[replaceNaN$1(toFloat$1(t.availTop),null),replaceNaN$1(toFloat$1(t.width)-toFloat$1(t.availWidth)-replaceNaN$1(toFloat$1(t.availLeft),0),null),replaceNaN$1(toFloat$1(t.height)-toFloat$1(t.availHeight)-replaceNaN$1(toFloat$1(t.availTop),0),null),replaceNaN$1(toFloat$1(t.availLeft),null)]}function isFrameSizeNull$1(t){for(var e=0;e<4;++e)if(t[e])return!1;return!0}function getHardwareConcurrency$1(){return replaceNaN$1(toInt$1(navigator.hardwareConcurrency),void 0)}function getTimezone$1(){var t,e=(t=window.Intl)===null||t===void 0?void 0:t.DateTimeFormat;if(e){var r=new e().resolvedOptions().timeZone;if(r)return r}var n=-getTimezoneOffset$1();return"UTC".concat(n>=0?"+":"").concat(Math.abs(n))}function getTimezoneOffset$1(){var t=new Date().getFullYear();return Math.max(toFloat$1(new Date(t,0,1).getTimezoneOffset()),toFloat$1(new Date(t,6,1).getTimezoneOffset()))}function getSessionStorage$1(){try{return!!window.sessionStorage}catch(t){return!0}}function getLocalStorage$1(){try{return!!window.localStorage}catch(t){return!0}}function getIndexedDB$1(){if(!(isTrident$1()||isEdgeHTML$1()))try{return!!window.indexedDB}catch(t){return!0}}function getOpenDatabase$1(){return!!window.openDatabase}function getCpuClass$1(){return navigator.cpuClass}function getPlatform$2(){var t=navigator.platform;return t==="MacIntel"&&isWebKit$1()&&!isDesktopWebKit()?isIPad$1()?"iPad":"iPhone":t}function getVendor$1(){return navigator.vendor||""}function getVendorFlavors$1(){for(var t=[],e=0,r=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];e<r.length;e++){var n=r[e],o=window[n];o&&_typeof$2(o)==="object"&&t.push(n)}return t.sort()}function areCookiesEnabled$1(){var t=document;try{t.cookie="cookietest=1; SameSite=Strict;";var e=t.cookie.indexOf("cookietest=")!==-1;return t.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",e}catch(r){return!1}}function getFilters$1(){var t=atob;return{abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',t("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",t("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",t("LnNwb25zb3JpdA=="),".ylamainos",t("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),t("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",t("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",t("LmhlYWRlci1ibG9ja2VkLWFk"),t("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",t("I2FkXzMwMFgyNTA="),t("I2Jhbm5lcmZsb2F0MjI="),t("I2NhbXBhaWduLWJhbm5lcg=="),t("I0FkLUNvbnRlbnQ=")],adGuardChinese:[t("LlppX2FkX2FfSA=="),t("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",t("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),t("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",t("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",t("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",t("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),t("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),t("LmFkZ29vZ2xl"),t("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[t("YW1wLWF1dG8tYWRz"),t("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",t("I2FkX2ludmlld19hcmVh")],adGuardRussian:[t("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),t("LnJlY2xhbWE="),'div[id^="smi2adblock"]',t("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[t("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),t("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",t("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),t("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),t("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",t("I3Jla2xhbWk="),t("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),t("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),t("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[t("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",t("LndpZGdldF9wb19hZHNfd2lkZ2V0"),t("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",t("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[t("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),t("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",t("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",t("I3Jla2xhbW5pLWJveA=="),t("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",t("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[t("I2FkdmVydGVudGll"),t("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",t("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",t("LnNwb25zb3JsaW5rZ3J1ZW4="),t("I3dlcmJ1bmdza3k="),t("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),t("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[t("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",t("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),t("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),t("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[t("LnJla2xhbW9zX3RhcnBhcw=="),t("LnJla2xhbW9zX251b3JvZG9z"),t("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),t("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),t("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[t("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[t("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),t("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",t("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[t("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),t("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),t("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",t("LmFkX19tYWlu"),t("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[t("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[t("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),t("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[t("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),t("I2xpdmVyZUFkV3JhcHBlcg=="),t("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),t("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[t("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",t("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),t("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),t("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[t("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),t("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),t("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",t("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),t("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),t("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),t("ZGl2I3NrYXBpZWNfYWQ=")],ro:[t("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),t("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),t("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),t("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[t("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),t("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),t("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",t("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),t("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",t("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}}function getDomBlockers$1(t){var e=t===void 0?{}:t,r=e.debug;return __awaiter$1(this,void 0,void 0,function(){var n,o,s,c,l,v;return __generator$1(this,function(x){switch(x.label){case 0:return isApplicable$1()?(n=getFilters$1(),o=Object.keys(n),s=(v=[]).concat.apply(v,o.map(function(w){return n[w]})),[4,getBlockedSelectors$1(s)]):[2,void 0];case 1:return c=x.sent(),r&&printDebug$1(n,c),l=o.filter(function(w){var _=n[w],b=countTruthy$1(_.map(function(E){return c[E]}));return b>_.length*.6}),l.sort(),[2,l]}})})}function isApplicable$1(){return isWebKit$1()||isAndroid$1()}function getBlockedSelectors$1(t){var e;return __awaiter$1(this,void 0,void 0,function(){var r,n,o,s,v,c,l,v;return __generator$1(this,function(x){switch(x.label){case 0:for(r=document,n=r.createElement("div"),o=new Array(t.length),s={},forceShow$1(n),v=0;v<t.length;++v)c=selectorToElement$1(t[v]),c.tagName==="DIALOG"&&c.show(),l=r.createElement("div"),forceShow$1(l),l.appendChild(c),n.appendChild(l),o[v]=c;x.label=1;case 1:return r.body?[3,3]:[4,wait$1(50)];case 2:return x.sent(),[3,1];case 3:return r.body.appendChild(n),[4,releaseEventLoop()];case 4:x.sent();try{for(v=0;v<t.length;++v)o[v].offsetParent||(s[t[v]]=!0)}finally{(e=n.parentNode)===null||e===void 0||e.removeChild(n)}return[2,s]}})})}function forceShow$1(t){t.style.setProperty("visibility","hidden","important"),t.style.setProperty("display","block","important")}function printDebug$1(t,e){for(var r="DOM blockers debug:\n```",n=0,o=Object.keys(t);n<o.length;n++){var s=o[n];r+=`
  3370. `.concat(s,":");for(var c=0,l=t[s];c<l.length;c++){var v=l[c];r+=`
  3371. `.concat(e[v]?"\u{1F6AB}":"\u27A1\uFE0F"," ").concat(v)}}console.log("".concat(r,"\n```"))}function getColorGamut$1(){for(var t=0,e=["rec2020","p3","srgb"];t<e.length;t++){var r=e[t];if(matchMedia("(color-gamut: ".concat(r,")")).matches)return r}}function areColorsInverted$1(){if(doesMatch$4$1("inverted"))return!0;if(doesMatch$4$1("none"))return!1}function doesMatch$4$1(t){return matchMedia("(inverted-colors: ".concat(t,")")).matches}function areColorsForced$1(){if(doesMatch$3$1("active"))return!0;if(doesMatch$3$1("none"))return!1}function doesMatch$3$1(t){return matchMedia("(forced-colors: ".concat(t,")")).matches}var maxValueToCheck$1=100;function getMonochromeDepth$1(){if(!!matchMedia("(min-monochrome: 0)").matches){for(var t=0;t<=maxValueToCheck$1;++t)if(matchMedia("(max-monochrome: ".concat(t,")")).matches)return t;throw new Error("Too high value")}}function getContrastPreference$1(){if(doesMatch$2$1("no-preference"))return 0;if(doesMatch$2$1("high")||doesMatch$2$1("more"))return 1;if(doesMatch$2$1("low")||doesMatch$2$1("less"))return-1;if(doesMatch$2$1("forced"))return 10}function doesMatch$2$1(t){return matchMedia("(prefers-contrast: ".concat(t,")")).matches}function isMotionReduced$1(){if(doesMatch$1$1("reduce"))return!0;if(doesMatch$1$1("no-preference"))return!1}function doesMatch$1$1(t){return matchMedia("(prefers-reduced-motion: ".concat(t,")")).matches}function isHDR$1(){if(doesMatch$5("high"))return!0;if(doesMatch$5("standard"))return!1}function doesMatch$5(t){return matchMedia("(dynamic-range: ".concat(t,")")).matches}var M$2=Math,fallbackFn$1=function t(){return 0};function getMathFingerprint$1(){var t=M$2.acos||fallbackFn$1,e=M$2.acosh||fallbackFn$1,r=M$2.asin||fallbackFn$1,n=M$2.asinh||fallbackFn$1,o=M$2.atanh||fallbackFn$1,s=M$2.atan||fallbackFn$1,c=M$2.sin||fallbackFn$1,l=M$2.sinh||fallbackFn$1,v=M$2.cos||fallbackFn$1,x=M$2.cosh||fallbackFn$1,w=M$2.tan||fallbackFn$1,_=M$2.tanh||fallbackFn$1,b=M$2.exp||fallbackFn$1,E=M$2.expm1||fallbackFn$1,I=M$2.log1p||fallbackFn$1,O=function(D){return M$2.pow(M$2.PI,D)},N=function(D){return M$2.log(D+M$2.sqrt(D*D-1))},A=function(D){return M$2.log(D+M$2.sqrt(D*D+1))},z=function(D){return M$2.log((1+D)/(1-D))/2},G=function(D){return M$2.exp(D)-1/M$2.exp(D)/2},V=function(D){return(M$2.exp(D)+1/M$2.exp(D))/2},ne=function(D){return M$2.exp(D)-1},W=function(D){return(M$2.exp(2*D)-1)/(M$2.exp(2*D)+1)},B=function(D){return M$2.log(1+D)};return{acos:t(.12312423423423424),acosh:e(1e308),acoshPf:N(1e154),asin:r(.12312423423423424),asinh:n(1),asinhPf:A(1),atanh:o(.5),atanhPf:z(.5),atan:s(.5),sin:c(-1e300),sinh:l(1),sinhPf:G(1),cos:v(10.000000000123),cosh:x(1),coshPf:V(1),tan:w(-1e300),tanh:_(1),tanhPf:W(1),exp:b(1),expm1:E(1),expm1Pf:ne(1),log1p:I(10),log1pPf:B(10),powPI:O(-100)}}var defaultText$1="mmMwWLliI0fiflO&1",presets$1={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};function getFontPreferences$1(){return withNaturalFonts$1(function(t,e){for(var r={},n={},o=0,s=Object.keys(presets$1);o<s.length;o++){var c=s[o],l=presets$1[c],v=l[0],x=v===void 0?{}:v,w=l[1],_=w===void 0?defaultText$1:w,b=t.createElement("span");b.textContent=_,b.style.whiteSpace="nowrap";for(var E=0,I=Object.keys(x);E<I.length;E++){var O=I[E],N=x[O];N!==void 0&&(b.style[O]=N)}r[c]=b,e.appendChild(t.createElement("br")),e.appendChild(b)}for(var A=0,z=Object.keys(presets$1);A<z.length;A++){var c=z[A];n[c]=r[c].getBoundingClientRect().width}return n})}function withNaturalFonts$1(t,e){return e===void 0&&(e=4e3),withIframe$1(function(r,n){var o=n.document,s=o.body,c=s.style;c.width="".concat(e,"px"),c.webkitTextSizeAdjust=c.textSizeAdjust="none",isChromium$1()?s.style.zoom="".concat(1/n.devicePixelRatio):isWebKit$1()&&(s.style.zoom="reset");var l=o.createElement("div");return l.textContent=__spreadArray$1([],Array(e/20<<0),!0).map(function(){return"word"}).join(" "),s.appendChild(l),t(o,s)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}function isPdfViewerEnabled$1(){return navigator.pdfViewerEnabled}function getArchitecture$1(){var t=new Float32Array(1),e=new Uint8Array(t.buffer);return t[0]=1/0,t[0]=t[0]-t[0],e[3]}function getApplePayState(){var t=window.ApplePaySession;if(typeof(t==null?void 0:t.canMakePayments)!="function")return-1;try{return t.canMakePayments()?1:0}catch(e){return getStateFromError(e)}}function getStateFromError(t){if(t instanceof Error){if(t.name==="InvalidAccessError"){if(/\bfrom\b.*\binsecure\b/i.test(t.message))return-2;if(/\bdifferent\b.*\borigin\b.*top.level\b.*\bframe\b/i.test(t.message))return-3}if(t.name==="SecurityError"&&/\bthird.party iframes?.*\bnot.allowed\b/i.test(t.message))return-3}throw t}function getPrivateClickMeasurement(){var t,e=document.createElement("a"),r=(t=e.attributionSourceId)!==null&&t!==void 0?t:e.attributionsourceid;return r===void 0?void 0:String(r)}var STATUS_NO_GL_CONTEXT=-1,STATUS_GET_PARAMETER_NOT_A_FUNCTION=-2,validContextParameters=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),validExtensionParams=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),shaderTypes=["FRAGMENT_SHADER","VERTEX_SHADER"],precisionTypes=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],rendererInfoExtensionName="WEBGL_debug_renderer_info";function getWebGlBasics(t){var e,r,n,o,s,c,l=t.cache,v=getWebGLContext(l);if(!v)return STATUS_NO_GL_CONTEXT;if(!isValidParameterGetter(v))return STATUS_GET_PARAMETER_NOT_A_FUNCTION;var x=shouldAvoidDebugRendererInfo()?null:v.getExtension(rendererInfoExtensionName);return{version:((e=v.getParameter(v.VERSION))===null||e===void 0?void 0:e.toString())||"",vendor:((r=v.getParameter(v.VENDOR))===null||r===void 0?void 0:r.toString())||"",vendorUnmasked:x?(n=v.getParameter(x.UNMASKED_VENDOR_WEBGL))===null||n===void 0?void 0:n.toString():"",renderer:((o=v.getParameter(v.RENDERER))===null||o===void 0?void 0:o.toString())||"",rendererUnmasked:x?(s=v.getParameter(x.UNMASKED_RENDERER_WEBGL))===null||s===void 0?void 0:s.toString():"",shadingLanguageVersion:((c=v.getParameter(v.SHADING_LANGUAGE_VERSION))===null||c===void 0?void 0:c.toString())||""}}function getWebGlExtensions(t){var e=t.cache,r=getWebGLContext(e);if(!r)return STATUS_NO_GL_CONTEXT;if(!isValidParameterGetter(r))return STATUS_GET_PARAMETER_NOT_A_FUNCTION;var n=r.getSupportedExtensions(),o=r.getContextAttributes(),s=[],c=[],l=[],v=[];if(o)for(var x=0,w=Object.keys(o);x<w.length;x++){var _=w[x];s.push("".concat(_,"=").concat(o[_]))}for(var b=getConstantsFromPrototype(r),E=0,I=b;E<I.length;E++){var O=I[E],N=r[O];c.push("".concat(O,"=").concat(N).concat(validContextParameters.has(N)?"=".concat(r.getParameter(N)):""))}if(n)for(var A=0,z=n;A<z.length;A++){var G=z[A];if(!(G===rendererInfoExtensionName&&shouldAvoidDebugRendererInfo())){var V=r.getExtension(G);if(!!V)for(var ne=0,W=getConstantsFromPrototype(V);ne<W.length;ne++){var O=W[ne],N=V[O];l.push("".concat(O,"=").concat(N).concat(validExtensionParams.has(N)?"=".concat(r.getParameter(N)):""))}}}for(var B=0,q=shaderTypes;B<q.length;B++)for(var D=q[B],F=0,re=precisionTypes;F<re.length;F++){var le=re[F],fe=getShaderPrecision(r,D,le);v.push("".concat(D,".").concat(le,"=").concat(fe.join(",")))}return l.sort(),c.sort(),{contextAttributes:s,parameters:c,shaderPrecisions:v,extensions:n,extensionParameters:l}}function getWebGLContext(t){if(t.webgl)return t.webgl.context;var e=document.createElement("canvas"),r;e.addEventListener("webglCreateContextError",function(){return r=void 0});for(var n=0,o=["webgl","experimental-webgl"];n<o.length;n++){var s=o[n];try{r=e.getContext(s)}catch(c){}if(r)break}return t.webgl={context:r},r}function getShaderPrecision(t,e,r){var n=t.getShaderPrecisionFormat(t[e],t[r]);return n?[n.rangeMin,n.rangeMax,n.precision]:[]}function getConstantsFromPrototype(t){var e=Object.keys(t.__proto__);return e.filter(isConstantLike)}function isConstantLike(t){return typeof t=="string"&&!t.match(/[^A-Z0-9_x]/)}function shouldAvoidDebugRendererInfo(){return isGecko$1()}function isValidParameterGetter(t){return typeof t.getParameter=="function"}var sources$1={fonts:getFonts$1,domBlockers:getDomBlockers$1,fontPreferences:getFontPreferences$1,audio:getAudioFingerprint$1,screenFrame:getScreenFrame$1,canvas:getCanvasFingerprint$1,osCpu:getOsCpu$1,languages:getLanguages$1,colorDepth:getColorDepth$1,deviceMemory:getDeviceMemory$1,screenResolution:getScreenResolution$1,hardwareConcurrency:getHardwareConcurrency$1,timezone:getTimezone$1,sessionStorage:getSessionStorage$1,localStorage:getLocalStorage$1,indexedDB:getIndexedDB$1,openDatabase:getOpenDatabase$1,cpuClass:getCpuClass$1,platform:getPlatform$2,plugins:getPlugins$1,touchSupport:getTouchSupport$1,vendor:getVendor$1,vendorFlavors:getVendorFlavors$1,cookiesEnabled:areCookiesEnabled$1,colorGamut:getColorGamut$1,invertedColors:areColorsInverted$1,forcedColors:areColorsForced$1,monochrome:getMonochromeDepth$1,contrast:getContrastPreference$1,reducedMotion:isMotionReduced$1,hdr:isHDR$1,math:getMathFingerprint$1,pdfViewerEnabled:isPdfViewerEnabled$1,architecture:getArchitecture$1,applePay:getApplePayState,privateClickMeasurement:getPrivateClickMeasurement,webGlBasics:getWebGlBasics,webGlExtensions:getWebGlExtensions};function loadBuiltinSources$1(t){return loadSources$1(sources$1,t,[])}var commentTemplate$1="$ if upgrade to Pro: https://fpjs.dev/pro";function getConfidence$1(t){var e=getOpenConfidenceScore$1(t),r=deriveProConfidenceScore$1(e);return{score:e,comment:commentTemplate$1.replace(/\$/g,"".concat(r))}}function getOpenConfidenceScore$1(t){if(isAndroid$1())return .4;if(isWebKit$1())return isDesktopWebKit()&&!(isWebKit616OrNewer()&&isSafariWebKit())?.5:.3;var e="value"in t.platform?t.platform.value:"";return/^Win/.test(e)?.6:/^Mac/.test(e)?.5:.7}function deriveProConfidenceScore$1(t){return round$1(.99+.01*t,1e-4)}function componentsToCanonicalString$1(t){for(var e="",r=0,n=Object.keys(t).sort();r<n.length;r++){var o=n[r],s=t[o],c="error"in s?"error":JSON.stringify(s.value);e+="".concat(e?"|":"").concat(o.replace(/([:|\\])/g,"\\$1"),":").concat(c)}return e}function componentsToDebugString$1(t){return JSON.stringify(t,function(e,r){return r instanceof Error?errorToObject$1(r):r},2)}function hashComponents$1(t){return x64hash128$1(componentsToCanonicalString$1(t))}function makeLazyGetResult$1(t){var e,r=getConfidence$1(t);return{get visitorId(){return e===void 0&&(e=hashComponents$1(this.components)),e},set visitorId(n){e=n},confidence:r,components:t,version:version$3}}function prepareForSources$1(t){return t===void 0&&(t=50),requestIdleCallbackIfAvailable$1(t,t*2)}function makeAgent$1(t,e){var r=Date.now();return{get:function(o){return __awaiter$1(this,void 0,void 0,function(){var s,c,l;return __generator$1(this,function(v){switch(v.label){case 0:return s=Date.now(),[4,t()];case 1:return c=v.sent(),l=makeLazyGetResult$1(c),(e||(o==null?void 0:o.debug))&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(l.version,`
  3372. userAgent: `).concat(navigator.userAgent,`
  3373. timeBetweenLoadAndGet: `).concat(s-r,`
  3374. visitorId: `).concat(l.visitorId,`
  3375. components: `).concat(componentsToDebugString$1(c),"\n```")),[2,l]}})})}}}function monitor$1(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var t=new XMLHttpRequest;t.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(version$3,"/npm-monitoring"),!0),t.send()}catch(e){console.error(e)}}function load$1(t){var e;return t===void 0&&(t={}),__awaiter$1(this,void 0,void 0,function(){var r,n,o;return __generator$1(this,function(s){switch(s.label){case 0:return(!((e=t.monitoring)!==null&&e!==void 0)||e)&&monitor$1(),r=t.delayFallback,n=t.debug,[4,prepareForSources$1(r)];case 1:return s.sent(),o=loadBuiltinSources$1({cache:{},debug:n}),[2,makeAgent$1(o,n)]}})})}var getCanvasId=function t(e){var r=null;if(typeof e=="string"&&e.length>0){if(r=document.querySelector(e),!r)return e}else e instanceof HTMLCanvasElement&&(r=e);if(!!r)return r.id||(r.id=Math.random().toString(16).slice(2)),r.id},createMxDraw=function t(e,r,n,o){return new Promise(function(s,c){try{MxFun.createMxObject({canvasId:getCanvasId(e),isCPPMxCAD:!0,mapBox:n,callback:function(v){v.initRendererParam({webgl2:!0}),v.setViewMovementMethod(r===void 0?!0:r),o&&o.callEvent("init_before_mxdraw",v),v.addEvent("initObject",function(){v.isWebgl2()?console.log("MxTip: use webgl2"):console.log("MxTip: use webgl1"),s(v)})}})}catch(l){c(l)}})},createMxCadCppObject=function t(e,r,n,o,s,c,l,v){var x=e.CreateMxDraw(r,n,o,s,c,l);return v?v.init(x):v=new McObject(x),x.McObject=v,x.McObject};function getMxreleaseidId$1(){return _getMxreleaseidId.apply(this,arguments)}function _getMxreleaseidId(){return _getMxreleaseidId=_asyncToGenerator(regenerator.mark(function t(){var e;return regenerator.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,load$1();case 2:return e=n.sent,n.next=5,e.get();case 5:return n.abrupt("return",n.sent.visitorId);case 6:case"end":return n.stop()}},t)})),_getMxreleaseidId.apply(this,arguments)}var createMxCad=function(){var t=_asyncToGenerator(regenerator.mark(function e(r,n){var o,s,c,l,v,x,w,_,b,E,I,O,N,A,z,G,V,ne,W,B,q,D,F;return regenerator.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:if(store.state.MxFun){le.next=3;break}return le.next=3,loadCoreCode();case 3:return o=r||{},s=o.openParameter,c=o.networkFonts,l=o.fontspath,v=o.locateFile,x=o.wasmBinary,w=o.canvas,_=o.onOpenFileComplete,b=o.fileUrl,E=o.onInit,I=o.middlePan,O=o.registdata,N=o.registfile,A=o.viewBackgroundColor,z=o.map,G=o.multipleSelect,le.next=6,loadMxCADassembly(function(){},v,x,l,c);case 6:return MxFun.initMxCpp(MxCpp),MxCADUtility.init(),MxFun.setIniset({EnableIntelliSelect:!0,IntelliSelectType:1}),A&&MxCpp.App.setDefaultViewBackgroundColor(A.red,A.green,A.blue),E&&E(),n&&n.callEvent("init"),le.next=14,createMxDraw(w,I,z,n);case 14:if(V=le.sent,G!==void 0&&V.setMultipleSelect(G),A&&V.setViewColor(A.red<<16|A.green<<8|A.blue),n&&n.callEvent("init_mxdraw",V),ne=MxFun.getMxFunTHREE(),W=new ne.Vector2,V.getRenderer().getSize(W),B=createMxCadCppObject(MxCpp.App.getImp(),W.width,W.height,V.getCanvas().id,V.isWebgl2(),V.getId(),!!z,n),B.isTryVersion()){le.next=33;break}if(!(O&&O.length>0)){le.next=27;break}B.initRegist(O),le.next=33;break;case 27:return q=N,N&&N.length>0||(q="mxkey.json.frontpage.json"),le.next=31,getJsonFromUrl(q);case 31:D=le.sent,D&&D.registdata?B.initRegist(D.registdata):console.log("MxTip:empty regist data");case 33:return getMxreleaseidId$1().then(function(fe){B.getImp().SetAppId(fe)}),V.initMxCpp(B),n&&n.callEvent("init_mxcad",B),V.addEvent("openFileComplete",function(){_&&_(B)}),F=0,s&&s&&(F=s),b&&B.openWebFile(b,void 0,!0,s,F),le.abrupt("return",B);case 41:case"end":return le.stop()}},e)}));return function(r,n){return t.apply(this,arguments)}}(),ColorMethod$1=function(t){return t[t.kByLayer=1]="kByLayer",t[t.kByBlock=2]="kByBlock",t[t.kByColor=3]="kByColor",t[t.kByACI=4]="kByACI",t[t.kByPen=5]="kByPen",t[t.kForeground=6]="kForeground",t[t.kLayerOff=7]="kLayerOff",t[t.kLayerFrozen=8]="kLayerFrozen",t[t.kNone=9]="kNone",t}(ColorMethod$1||{}),ColorIndexType=function(t){return t[t.kByblock=0]="kByblock",t[t.kRed=1]="kRed",t[t.kYellow=2]="kYellow",t[t.kGreen=3]="kGreen",t[t.KCyan=4]="KCyan",t[t.kBlue=5]="kBlue",t[t.kMagenta=6]="kMagenta",t[t.kWhite=7]="kWhite",t[t.kBylayer=256]="kBylayer",t}(ColorIndexType||{}),_colorUtils,getColorUtils=function t(){if(!_colorUtils){var e=MxFun.getMxFunTHREE();_colorUtils=new e.Color}for(var r=function(I){return _typeof$2(I[0])==="object"&&I[0].isColor},n=function(I){return typeof I[0]=="number"&&I.length===1},o=function(I){return typeof I[0]=="string"&&I.length===1},s=function(I){return I.length===3},c=arguments.length,l=new Array(c),v=0;v<c;v++)l[v]=arguments[v];if(s(l)){var x;(x=_colorUtils).setRGB.apply(x,l)}else if(r(l)){var w;(w=_colorUtils).set.apply(w,l)}else if(n(l)){var _;(_=_colorUtils).set.apply(_,l)}else if(o(l)){var b;(b=_colorUtils).set.apply(b,l)}return _colorUtils},setColorIndex=function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:MxCpp.App.mcedRGB2Index(e.red,e.green,e.blue,!1);r===-1?e.method=3:e.setColorIndex(r),r===7?e.method=4:r===0?e.method=2:r===256?e.method=1:r!==-1&&(e.method=4),e.colorIndex=r},createMcCmColor=function t(){for(var e=new McCmColor,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return setMcCmColor.apply(void 0,[e].concat(n)),e},setMcCmColor=function t(e){for(var r=function(b){return b.length>1||_typeof$2(b[0])==="object"&&b[0].isColor||typeof b[0]=="string"||typeof b[0]=="number"},n=function(b){return _typeof$2(b[0])==="object"&&!(b[0]&&b[0].isColor)},o=arguments.length,s=new Array(o>1?o-1:0),c=1;c<o;c++)s[c-1]=arguments[c];if(r(s)){var l=getColorUtils.apply(void 0,s),v=l.r,x=l.g,w=l.b;e.red=v*255,e.green=x*255,e.blue=w*255}n(s)&&(e=Object.assign(e,s[0])),setColorIndex(e)};function drawText(){return _drawText.apply(this,arguments)}function _drawText(){return _drawText=_asyncToGenerator(regenerator.mark(function t(){var e,r,n,o,s,c,l,v,x,w,_,b,E,I,O,N;return regenerator.wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return s=function(){var V=new McDbText;return V.height=e||100,V.textString=r||"",V.position=n||new McGePoint3d,V.trueColor=new McCmColor(MxCpp.getCurrentMxCAD().getCurrentDatabaseDrawColor()),V.rotation=o||0,V},c=new MxCADUiPrString,c.setMessage("\u8F93\u5165\u6587\u5B57\u5185\u5BB9"),z.next=5,c.go();case 5:if(l=z.sent,l){z.next=8;break}return z.abrupt("return");case 8:return r=l,v=new MxCADUiPrPoint,v.clearLastInputPoint(),v.setMessage("\u6307\u5B9A\u6587\u5B57\u4F4D\u7F6E"),v.setUserDraw(function(G,V){n=G,V.drawMcDbEntity(s())}),z.next=15,v.go();case 15:if(x=z.sent,x){z.next=18;break}return z.abrupt("return");case 18:return n=x,w=new MxCADUiPrDist,w.setBasePt(n),w.setMessage(_ML_String("Mx_Text_Height","\u6307\u5B9A\u6587\u5B57\u9AD8\u5EA6")),w.setUserDraw(function(G,V){n&&(e=G.distanceTo(n)),V.drawMcDbEntity(s())}),z.next=25,w.go();case 25:if(_=z.sent,_){z.next=28;break}return z.abrupt("return");case 28:return e=_,b=new MxCADUiPrAngle,b.setBasePt(n),b.clearLastInputPoint(),b.setMessage(_ML_String("Mx_Text_Angle","\u6307\u5B9A\u6587\u5B57\u89D2\u5EA6")),b.setUserDraw(function(G,V){n&&(o=angleTo(G.x,G.y,n.x,n.y)),V.drawMcDbEntity(s())}),z.next=36,b.go();case 36:return E=z.sent,E!==null&&b.getDetailedResult()===8&&(o=E),I=s(),O=MxCpp.getCurrentMxCAD(),N=O.drawEntity(I),O.updateDisplay(),z.abrupt("return",N);case 43:case"end":return z.stop()}},t)})),_drawText.apply(this,arguments)}function _arrayWithHoles$1(t){if(Array.isArray(t))return t}function _iterableToArrayLimit$1(t,e){var r=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,o,s,c,l=[],v=!0,x=!1;try{if(s=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;v=!1}else for(;!(v=(n=s.call(r)).done)&&(l.push(n.value),l.length!==e);v=!0);}catch(w){x=!0,o=w}finally{try{if(!v&&r.return!=null&&(c=r.return(),Object(c)!==c))return}finally{if(x)throw o}}return l}}function _arrayLikeToArray$1(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _unsupportedIterableToArray$1(t,e){if(!!t){if(typeof t=="string")return _arrayLikeToArray$1(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray$1(t,e)}}function _nonIterableRest$1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  3376. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _slicedToArray$1(t,e){return _arrayWithHoles$1(t)||_iterableToArrayLimit$1(t,e)||_unsupportedIterableToArray$1(t,e)||_nonIterableRest$1()}var threePointsToDetermineTheCenterOfTheCircle=function t(e){var r=_slicedToArray$1(e,3),n=r[0],o=r[1],s=r[2],c=n.x,l=n.y,v=n.z,x=o.x,w=o.y,_=o.z,b=s.x,E=s.y,I=s.z,O=l*_-w*v-l*I+E*v+w*I-E*_,N=-(c*_-x*v-c*I+b*v+x*I-b*_),A=c*w-x*l-c*E+b*l+x*E-b*w,z=-(c*w*I-c*E*_-x*l*I+x*E*v+b*l*_-b*w*v),G=2*(x-c),V=2*(w-l),ne=2*(_-v),W=c*c+l*l+v*v-x*x-w*w-_*_,B=2*(b-c),q=2*(E-l),D=2*(I-v),F=c*c+l*l+v*v-b*b-E*E-I*I,re=-(N*ne*F-N*D*W-V*A*F+V*D*z+q*A*W-q*ne*z)/(O*V*D-O*q*ne-G*N*D+G*q*A+B*N*ne-B*V*A),le=(O*ne*F-O*D*W-G*A*F+G*D*z+B*A*W-B*ne*z)/(O*V*D-O*q*ne-G*N*D+G*q*A+B*N*ne-B*V*A),fe=-(O*V*F-O*q*W-G*N*F+G*q*z+B*N*W-B*V*z)/(O*V*D-O*q*ne-G*N*D+G*q*A+B*N*ne-B*V*A);return new McGePoint3d(re,le,fe)};function drawCircle(){return _drawCircle.apply(this,arguments)}function _drawCircle(){return _drawCircle=_asyncToGenerator(regenerator.mark(function t(){var e,r,n,o,s,c,l,v,x,w,_,b,E,I,O,N,A,z;return regenerator.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:e=new MxCADUiPrPoint,r=new McDbCircle,n=MxCpp.getCurrentMxCAD().getCurrentDatabaseDrawColor(),r.trueColor=new McCmColor(n);case 4:if(typeof o=="undefined"&&(e.setKeyWords("[\u4E09\u70B9(3P)/\u4E24\u70B9(2P)]"),o="default"),o!=="default"){V.next=49;break}if(c){V.next=21;break}return e.setMessage(`
  3377. \u6307\u5B9A\u5706\u7684\u5706\u5FC3`),V.next=11,e.go();case 11:if(E=V.sent,!e.isKeyWordPicked("3P")){V.next=15;break}return o="3P",V.abrupt("continue",4);case 15:if(!e.isKeyWordPicked("2P")){V.next=18;break}return o="2P",V.abrupt("continue",4);case 18:if(E){V.next=20;break}return V.abrupt("return");case 20:c=E;case 21:if(l){V.next=46;break}return I=new MxCADUiPrDist,I.setBasePt(c),typeof s=="undefined"&&(I.setKeyWords("[\u76F4\u5F84(D)]"),s=!0),I.setMessage(_ML_String("McDbCircle_Radius","\u6307\u5B9A\u5706\u7684"+(s?"\u534A\u5F84":"\u76F4\u5F84"))),I.setUserDraw(function(ne,W){if(!!c){var B=new McDbCircle(c.x,c.y,c.z,s?c.distanceTo(ne):c.distanceTo(ne)/2);W.drawMcDbEntity(B),W.drawLine(B.center.toVector3(),ne.toVector3())}}),V.next=29,I.go();case 29:if(O=V.sent,!I.isKeyWordPicked("D")){V.next=42;break}return s=!1,I.clearLastInputPoint(),I.setBasePt(c),I.setMessage(_ML_String("McDbCircle_Diameter","\u6307\u5B9A\u5706\u7684\u76F4\u5F84")),I.setKeyWords(""),V.next=38,I.go();case 38:if(N=V.sent,N){V.next=41;break}return V.abrupt("return");case 41:l=N/2;case 42:if(l){V.next=46;break}if(O){V.next=45;break}return V.abrupt("return");case 45:l=O;case 46:return r.center=c,r.radius=l,V.abrupt("return",MxCpp.getCurrentMxCAD().drawEntity(r));case 49:if(o!=="3P"){V.next=79;break}if(v){V.next=58;break}return e.setMessage("\u6307\u5B9A\u5706\u4E0A\u7684\u7B2C\u4E00\u4E2A\u70B9"),e.setKeyWords(""),V.next=55,e.go();case 55:if(v=V.sent,v){V.next=58;break}return V.abrupt("return");case 58:if(x){V.next=67;break}return e.setMessage("\u6307\u5B9A\u5706\u4E0A\u7684\u7B2C\u4E8C\u4E2A\u70B9"),e.setKeyWords(""),e.setUserDraw(function(ne,W){!v||W.drawLine(v.toVector3(),ne.toVector3())}),V.next=64,e.go();case 64:if(x=V.sent,x){V.next=67;break}return V.abrupt("return");case 67:if(w){V.next=76;break}return e.setMessage("\u6307\u5B9A\u5706\u4E0A\u7684\u7B2C\u4E09\u4E2A\u70B9"),e.setKeyWords(""),e.setUserDraw(function(ne,W){if(!!v&&!!x){var B=threePointsToDetermineTheCenterOfTheCircle([v,x,ne]);if(B){var q=new McDbCircle(B.x,B.y,B.z,B.distanceTo(v));W.drawMcDbEntity(q)}}}),V.next=73,e.go();case 73:if(w=V.sent,w){V.next=76;break}return V.abrupt("return");case 76:return A=threePointsToDetermineTheCenterOfTheCircle([v,x,w]),z=new McDbCircle(A.x,A.y,A.z,A.distanceTo(v)),V.abrupt("return",MxCpp.getCurrentMxCAD().drawEntity(z));case 79:if(o!=="2P"){V.next=100;break}if(_){V.next=88;break}return e.setMessage("\u6307\u5B9A\u5706\u76F4\u5F84\u7684\u7B2C\u4E00\u4E2A\u7AEF\u70B9"),e.setKeyWords(""),V.next=85,e.go();case 85:if(_=V.sent,_){V.next=88;break}return V.abrupt("return");case 88:if(b){V.next=97;break}return e.setMessage("\u6307\u5B9A\u5706\u76F4\u5F84\u7684\u7B2C\u4E8C\u4E2A\u7AEF\u70B9"),e.setKeyWords(""),e.setUserDraw(function(ne,W){!_||(c=new McGePoint3d((ne.x+_.x)/2,(ne.y+_.y)/2,(ne.z+_.z)/2),l=c.distanceTo(_),W.drawMcDbEntity(new McDbCircle(c.x,c.y,c.z,l)))}),V.next=94,e.go();case 94:if(b=V.sent,b){V.next=97;break}return V.abrupt("return");case 97:return c=new McGePoint3d((b.x+_.x)/2,(b.y+_.y)/2,(b.z+_.z)/2),l=c.distanceTo(_),V.abrupt("return",MxCpp.getCurrentMxCAD().drawEntity(new McDbCircle(c.x,c.y,c.z,l)));case 100:V.next=4;break;case 103:case"end":return V.stop()}},t)})),_drawCircle.apply(this,arguments)}MxFun.on("init",function(){MxFun.addCommand("Mx_Circle",drawCircle)});function drawLine(){return _drawLine.apply(this,arguments)}function _drawLine(){return _drawLine=_asyncToGenerator(regenerator.mark(function t(){var e,r,n,o,s,c,l,v,x,w;return regenerator.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return e=new MxCADUiPrPoint,e.setMessage(`
  3378. \u6307\u5B9A\u7B2C\u4E00\u70B9:`),b.next=4,e.go();case 4:if(r=b.sent,n=r,r){b.next=8;break}return b.abrupt("return");case 8:e.setMessage(`
  3379. \u6307\u5B9A\u4E0B\u4E00\u4E2A\u70B9:`),o=0,s=[];case 11:return o>=2?e.setKeyWords("[\u9000\u51FA(E)/\u95ED\u5408(C)/\u653E\u5F03(U)]"):o>0?e.setKeyWords("[\u9000\u51FA(E)/\u653E\u5F03(U)]"):e.setKeyWords(""),e.setBasePt(r),b.next=16,e.go();case 16:if(c=b.sent,!e.isKeyWordPicked("C")){b.next=23;break}return l=new McDbLine(n,r),MxCpp.getCurrentMxCAD().drawEntity(l),b.abrupt("return");case 23:if(!e.isKeyWordPicked("E")){b.next=27;break}return b.abrupt("return");case 27:if(!e.isKeyWordPicked("U")){b.next=36;break}if(s.length!=0){b.next=30;break}return b.abrupt("continue",11);case 30:return v=s[s.length-1],s.pop(),o--,r=v.prvPoint,v.id.erase(),b.abrupt("continue",11);case 36:if(c){b.next=38;break}return b.abrupt("return");case 38:x=new McDbLine(r,c),o++,w=MxCpp.getCurrentMxCAD().drawEntity(x),s.push({id:w,prvPoint:r}),r=c,b.next=11;break;case 45:case"end":return b.stop()}},t)})),_drawLine.apply(this,arguments)}function Mx_Point(){return _Mx_Point.apply(this,arguments)}function _Mx_Point(){return _Mx_Point=_asyncToGenerator(regenerator.mark(function t(){var e,r;return regenerator.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:e=new MxCADUiPrPoint,e.setMessage("\u6307\u5B9A\u70B9");case 2:return e.clearLastInputPoint(),o.next=6,e.go();case 6:if(r=o.sent,r!=null){o.next=9;break}return o.abrupt("break",12);case 9:MxCpp.getCurrentMxCAD().drawEntity(new McDbPoint(r)),o.next=2;break;case 12:case"end":return o.stop()}},t)})),_Mx_Point.apply(this,arguments)}MxFun.on("init",function(){MxFun.addCommand("Mx_Line",drawLine),MxFun.addCommand("Mx_Point",Mx_Point)});function drawMText(){return _drawMText.apply(this,arguments)}function _drawMText(){return _drawMText=_asyncToGenerator(regenerator.mark(function t(){var e,r,n,o,s,c,l,v,x,w,_,b,E,I,O,N;return regenerator.wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return s=function(){var V=new McDbMText;return V.textHeight=e||100,V.contents=r||"",V.location=n||new McGePoint3d,V.trueColor=new McCmColor(MxCpp.getCurrentMxCAD().getCurrentDatabaseDrawColor()),V.rotation=o||0,V},c=new MxCADUiPrString,c.setMessage("\u8F93\u5165\u6587\u5B57\u5185\u5BB9"),z.next=5,c.go();case 5:if(l=z.sent,l){z.next=8;break}return z.abrupt("return");case 8:return r=l,v=new MxCADUiPrPoint,v.clearLastInputPoint(),v.setMessage("\u6307\u5B9A\u6587\u5B57\u4F4D\u7F6E"),v.setUserDraw(function(G,V){n=G,V.drawMcDbEntity(s())}),z.next=15,v.go();case 15:if(x=z.sent,x){z.next=18;break}return z.abrupt("return");case 18:return n=x,w=new MxCADUiPrDist,w.setBasePt(n),w.setMessage(_ML_String("Mx_Text_Height","\u6307\u5B9A\u6587\u5B57\u9AD8\u5EA6")),w.setUserDraw(function(G,V){n&&(e=G.distanceTo(n)),V.drawMcDbEntity(s())}),z.next=25,w.go();case 25:if(_=z.sent,_){z.next=28;break}return z.abrupt("return");case 28:return e=_,b=new MxCADUiPrAngle,b.setBasePt(n),b.clearLastInputPoint(),b.setMessage(_ML_String("Mx_MText_Angle","\u6307\u5B9A\u6587\u5B57\u89D2\u5EA6")),b.setUserDraw(function(G,V){n&&(o=angleTo(G.x,G.y,n.x,n.y)),V.drawMcDbEntity(s())}),z.next=36,b.go();case 36:return E=z.sent,E!==null&&b.getDetailedResult()===8&&(o=E),I=s(),O=MxCpp.getCurrentMxCAD(),N=O.drawEntity(I),O.updateDisplay(),z.abrupt("return",N);case 43:case"end":return z.stop()}},t)})),_drawMText.apply(this,arguments)}function CMxDrawPolylineDragArcDraw_CalcArcBulge(t,e,r){if(t.isEqualTo(e))return 0;var n=t.c().addvec(e.c().sub(t).mult(.5)),o=e.c().sub(t);o.rotateBy(Math.PI/2,McGeVector3d.kZAxis);var s=new McDbLine(n,n.c().addvec(o)),c=r.c();c.rotateBy(Math.PI/2,McGeVector3d.kZAxis);var l=new McDbLine(t,t.c().addvec(c)),v=s.IntersectWith(l,McDb.Intersect.kExtendBoth);if(v.isEmpty())return 0;var x=v.at(0),w=x.distanceTo(t);o.normalize(),o.mult(w);var _=x.c().addvec(o),b=x.c().subvec(o),E=_.c().sub(t),I=b.c().sub(t),O=_;return E.angleTo1(r)>I.angleTo1(r)&&(O=b),MxCADUtility.calcBulge(t,O,e).val}function drawPolyLine(){return _drawPolyLine.apply(this,arguments)}function _drawPolyLine(){return _drawPolyLine=_asyncToGenerator(regenerator.mark(function t(){var e,r,n,o,s,c,l,v,x,w,_,b,E,I,O,N,A,z,G,V;return regenerator.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return e=new MxCADUiPrPoint,e.setMessage(`
  3380. \u6307\u5B9A\u8D77\u70B9:`),W.next=4,e.go();case 4:if(r=W.sent,r!==null){W.next=7;break}return W.abrupt("return");case 7:n=[],o=0,s={},s.dStartWidth=o,s.dEndWidth=o,s.pt=r,s.dBulge=0,n.push(s),c=!1,l=!0,v=!1,x=o,w=o,_=[],b=MxCpp.getCurrentMxCAD(),MxFun.acutPrintf(`
  3381. \u5F53\u524D\u7EBF\u5BBD\u4E3A {0}`,o+""),E=!1,I=function(q){q.key==="Control"&&(E=!0)},O=function(){return E=!1},window.addEventListener("keydown",I),window.addEventListener("keyup",O),N=regenerator.mark(function B(){var q,D,F,re,le,fe,me,ye,Te,ke,Le,et,it,Ue,ht,De,Be,Ve,He,gt,dn,Ze,at,Lt,Ne,ze,Ke,vt,Ft,Ot,_t,Tn,on,$n,Zt,Et,rn,wt,Yn,pt,Fe,Ie,ct,Ht,sn,yn,Dr,Kr,ii,_n,xn,jn,ln,ar,zr,Jr,bi,hi,wi,Ca,jt,dt,xt,Nt,Qt,mn,Un,we,En,Kn,er,Hr,Ir,Ri,Ti,mi,Li,tr,ha,ti,ua,Va,ns,Xo,qr,ca,va,Ms,rs,Ai,Na,sl,eo,ja,no,yo,Ra,Ye,$t,ft,Gt,bn,sr,Br,Pr,Mi,vi,Sa,La,Cs,ko,Co,gs,No,wl,Ua,Vs,jo,ys,Ol,is,Ta,Lr,Vo,ll,xu,vo,_o,Rs,Fl,Zo,ql,Al,Kt;return regenerator.wrap(function(rr){for(;;)switch(rr.prev=rr.next){case 0:if(!l){rr.next=107;break}return q=_ML_String("ID_ARX_PL2","\u6307\u5B9A\u4E0B\u4E00\u4E2A\u70B9:"),D="[\u5706\u5F27(A)/\u5BBD\u5EA6(W)/\u957F\u5EA6(L)/\u534A\u5BBD(H)]",n.length>=3?v?D="[\u56DE\u9000(U)/\u5706\u5F27(A)/\u5BBD\u5EA6(W)/\u957F\u5EA6(L)/\u534A\u5BBD(H)]":D="[\u56DE\u9000(U)/\u5706\u5F27(A)/\u5BBD\u5EA6(W)/\u957F\u5EA6(L)/\u534A\u5BBD(H)/\u95ED\u5408(C)]":n.length>=2&&(D="[\u56DE\u9000(U)/\u5706\u5F27(A)/\u5BBD\u5EA6(W)/\u534A\u5BBD(H)/\u957F\u5EA6(L)]"),F=new MxCADUiPrPoint,F.setMessage(q),F.setKeyWords(D),re=n[n.length-1],F.setUserDraw(function(to,ho){var xa=new McDbPolyline;xa.addVertexAt(re.pt,re.dBulge,re.dStartWidth,re.dEndWidth),xa.addVertexAt(to),ho.drawMcDbEntity(xa)}),rr.next=11,F.go();case 11:if(le=rr.sent,le===null){rr.next=22;break}fe={},fe.dStartWidth=x,fe.dEndWidth=w,fe.pt=le,fe.dBulge=0,n.push(fe),n.length>=2&&(me=new McDbPolyline,me.addVertexAt(n[n.length-2].pt,0,n[n.length-2].dStartWidth,n[n.length-2].dEndWidth),me.addVertexAt(n[n.length-1].pt),_.push(b.drawEntity(me))),rr.next=105;break;case 22:if(F.getStatus()!=MrxDbgUiPrBaseReturn$1.kKeyWord){rr.next=104;break}if(!F.isKeyWordPicked("A")){rr.next=27;break}l=!1,rr.next=102;break;case 27:if(!F.isKeyWordPicked("W")){rr.next=49;break}return ye=new MxCADUiPrDist,ye.setMessage(_ML_String("ID_ARX_PLGETSTARTWIDTH","\u6307\u5B9A\u8D77\u70B9\u5BBD\u5EA6")),rr.next=32,ye.go();case 32:if(Te=rr.sent,Te!==null){rr.next=35;break}return rr.abrupt("return",0);case 35:return x=ye.value(),ye.setMessage(_ML_String("ID_ARX_PLGETVERITXWIDTH","\u6307\u5B9A\u7AEF\u70B9\u5BBD\u5EA6")),rr.next=39,ye.go();case 39:if(Te=rr.sent,Te!==null){rr.next=42;break}return rr.abrupt("return",0);case 42:w=ye.value(),o=w,n[n.length-1].dStartWidth=x,n[n.length-1].dEndWidth=w,x=w,rr.next=102;break;case 49:if(!F.isKeyWordPicked("H")){rr.next=71;break}return ke=new MxCADUiPrDist,ke.setMessage(_ML_String("ID_ARX_PLGETSTARTWIDTH","\u6307\u5B9A\u8D77\u70B9\u534A\u5BBD")),rr.next=54,ke.go();case 54:if(Le=rr.sent,Le!==null){rr.next=57;break}return rr.abrupt("return",0);case 57:return x=ke.value()*2,ke.setMessage(_ML_String("ID_ARX_PLGETVERITXWIDTH","\u6307\u5B9A\u7AEF\u70B9\u534A\u5BBD")),rr.next=61,ke.go();case 61:if(Le=rr.sent,Le!==null){rr.next=64;break}return rr.abrupt("return",0);case 64:w=ke.value()*2,o=w,n[n.length-1].dStartWidth=x,n[n.length-1].dEndWidth=w,x=w,rr.next=102;break;case 71:if(!F.isKeyWordPicked("C")){rr.next=76;break}return c=!0,rr.abrupt("return",0);case 76:if(!F.isKeyWordPicked("U")){rr.next=80;break}n.length>1&&(n.pop(),_[_.length-1].erase(),_.pop(),n.length>0&&F.setLastInputPoint(n[n.length-1].pt)),rr.next=102;break;case 80:if(!F.isKeyWordPicked("L")){rr.next=102;break}return it=McGeVector3d.kXAxis,F.setMessage("\u6307\u5B9A\u76F4\u7EBF\u957F\u5EA6"),F.setKeyWords(""),rr.next=86,F.go();case 86:if(ht=rr.sent,ht){rr.next=89;break}return rr.abrupt("return",{v:void 0});case 89:De=n[n.length-1].pt,Be=ht.distanceTo(De),Ve=(et=n[n.length-2])===null||et===void 0?void 0:et.pt,Ve&&(it=Ve.sub(De)),Ue=De.clone().addvec(it.normalize().mult(-Be)),He={},He.dStartWidth=x,He.dEndWidth=w,He.pt=Ue,He.dBulge=0,n.push(He),F.setLastInputPoint(Ue),n.length>=2&&(gt=new McDbPolyline,gt.addVertexAt(n[n.length-2].pt,0,n[n.length-2].dStartWidth,n[n.length-2].dEndWidth),gt.addVertexAt(n[n.length-1].pt),_.push(b.drawEntity(gt)));case 102:rr.next=105;break;case 104:return rr.abrupt("return",0);case 105:rr.next=493;break;case 107:return dn=_ML_String("NO1_ID_ARX_PL5","\u6307\u5B9A\u5706\u5F27\u7684\u7AEF\u70B9(\u6309\u4F4F Ctrl \u952E\u4EE5\u5207\u6362\u65B9\u5411)"),Ze="[\u89D2\u5EA6(A)/\u7B2C\u4E8C\u4E2A\u70B9(S)/\u5706\u5FC3(CE)/\u65B9\u5411(D)/\u76F4\u7EBF(L)/\u534A\u5F84(R)/\u5BBD\u5EA6(W)/\u534A\u5BBD(H)]",n.length>=3?v?Ze="[\u89D2\u5EA6(A)/\u7B2C\u4E8C\u4E2A\u70B9(S)/\u5706\u5FC3(CE)/\u65B9\u5411(D)/\u56DE\u9000(U)/\u76F4\u7EBF(L)/\u534A\u5F84(R)/\u5BBD\u5EA6(W)/\u534A\u5BBD(H)]":Ze="[\u89D2\u5EA6(A)/\u7B2C\u4E8C\u4E2A\u70B9(S)/\u5706\u5FC3(CE)/\u65B9\u5411(D)/\u56DE\u9000(U)/\u76F4\u7EBF(L)/\u534A\u5F84(R)/\u5BBD\u5EA6(W)/\u534A\u5BBD(H)/\u95ED\u5408(C)]":n.length>=2&&(Ze="[\u89D2\u5EA6(A)/\u7B2C\u4E8C\u4E2A\u70B9(S)/\u5706\u5FC3(CE)/\u65B9\u5411(D)/\u56DE\u9000(U)/\u76F4\u7EBF(L)/\u534A\u5F84(R)/\u5BBD\u5EA6(W)/\u534A\u5BBD(H)]"),at=new MxCADUiPrPoint,at.setMessage(dn),at.setKeyWords(Ze),Lt=new McGeVector3d,n.length<2?Lt.copy(McGeVector3d.kXAxis):(Ne=n.length,ze=n[Ne-2].pt,Ke=n[Ne-2].dBulge,vt=n[Ne-1].pt,IsZero(Ke)?Lt=new McGePoint3d(vt.x,vt.y,0).sub(new McGePoint3d(ze.x,ze.y,0)):(Ft=new McDbPolyline,Ft.addVertexAt(ze,Ke),Ft.addVertexAt(vt),Ot=Ft.getFirstDeriv(new McGePoint3d(vt.x,vt.y,0)),Ot.ret?Lt=Ot.val:Lt.copy(McGeVector3d.kXAxis))),_t=n[n.length-1],at.setUserDraw(function(to,ho){var xa=CMxDrawPolylineDragArcDraw_CalcArcBulge(_t.pt,to,E?Lt.clone().negate():Lt),Ea=new McDbPolyline;Ea.addVertexAt(_t.pt,xa,_t.dStartWidth,_t.dEndWidth),Ea.addVertexAt(to),ho.drawMcDbEntity(Ea)}),rr.next=119,at.go();case 119:if(Tn=rr.sent,Tn===null){rr.next=132;break}on={},on.dStartWidth=x,on.dEndWidth=w,on.dBulge=0,on.pt=Tn,n[n.length-1].dBulge=CMxDrawPolylineDragArcDraw_CalcArcBulge(_t.pt,on.pt,E?Lt.clone().negate():Lt),n.push(on),$n=n.length,$n>=2&&(Zt=new McDbPolyline,Zt.addVertexAt(n[$n-2].pt,n[$n-2].dBulge,n[$n-2].dStartWidth,n[$n-2].dEndWidth),Zt.addVertexAt(n[$n-1].pt),_.push(b.drawEntity(Zt))),rr.next=493;break;case 132:if(at.getStatus()!=MrxDbgUiPrBaseReturn$1.kKeyWord){rr.next=492;break}if(!at.isKeyWordPicked("A")){rr.next=215;break}return Et=new MxCADUiPrAngle,Et.setBasePt(_t.pt),Et.setMessage(_ML_String("ID_ARX_PLGET_I_ANGLE","\u6307\u5B9A\u5939\u89D2")),rr.next=139,Et.go();case 139:if(rn=rr.sent,rn!==null){rr.next=142;break}return rr.abrupt("return",0);case 142:return at.setMessage("\u6307\u5B9A\u5706\u5F27\u7684\u7AEF\u70B9(\u6309\u4F4F Ctrl \u952E\u4EE5\u5207\u6362\u65B9\u5411)"),at.setKeyWords("[\u5706\u5FC3(CE)/\u534A\u5F84(R)]"),at.setLastInputPoint(_t.pt),wt=n[n.length-1].pt,Yn=function(ho){var xa=Math.PI/2-rn/2,Ea=new McGePoint3d((ho.x+wt.x)/2,(ho.y+wt.y)/2),ao=Ea.distanceTo(wt),Ki=ao/Math.sin(xa),$o=ao/Math.tan(xa),Ho=Ea.sub(wt).rotateBy(Math.PI/2).normalize().mult(E?-Ki-$o:Ki-$o),de=Ea.addvec(Ho);return MxCADUtility.calcBulge(wt,de,ho).val},at.setUserDraw(function(to,ho){var xa=Yn(to),Ea=new McDbPolyline;Ea.addVertexAt(_t.pt,xa,_t.dStartWidth,_t.dEndWidth),Ea.addVertexAt(to),ho.drawMcDbEntity(Ea)}),rr.next=150,at.go();case 150:if(pt=rr.sent,!at.isKeyWordPicked("CE")){rr.next=174;break}return at.setMessage("\u6307\u5B9A\u5706\u5F27\u7684\u5706\u5FC3"),at.setKeyWords(""),at.setBasePt(wt),at.setUserDraw(function(to,ho){var xa=to.distanceTo(wt),Ea=to.addvec(to.sub(wt).rotateBy(rn).normalize().mult(xa)),ao=Yn(Ea),Ki=new McDbPolyline;Ki.addVertexAt(_t.pt,ao,_t.dStartWidth,_t.dEndWidth),Ki.addVertexAt(Ea),ho.drawMcDbEntity(Ki)}),rr.next=158,at.go();case 158:if(Fe=rr.sent,Fe){rr.next=161;break}return rr.abrupt("return",0);case 161:return Ie=Fe.distanceTo(wt),ct=Fe.addvec(Fe.sub(wt).rotateBy(rn).normalize().mult(Ie)),Ht={},Ht.dStartWidth=x,Ht.dEndWidth=w,Ht.dBulge=0,Ht.pt=ct,n[n.length-1].dBulge=Yn(ct),n.push(Ht),sn=n.length,sn>=2&&(yn=new McDbPolyline,yn.addVertexAt(n[sn-2].pt,n[sn-2].dBulge,n[sn-2].dStartWidth,n[sn-2].dEndWidth),yn.addVertexAt(n[sn-1].pt),_.push(b.drawEntity(yn))),at.setLastInputPoint(ct),rr.abrupt("return",1);case 174:if(!at.isKeyWordPicked("R")){rr.next=204;break}return Dr=new MxCADUiPrDist,Dr.setMessage("\u6307\u5B9A\u5706\u5F27\u534A\u5F84"),Dr.setKeyWords(""),rr.next=180,Dr.go();case 180:if(Kr=rr.sent,typeof Kr=="number"){rr.next=183;break}return rr.abrupt("return",0);case 183:return ii=Kr*Math.sin(rn/2),at.setBasePt(wt),at.setMessage("\u6307\u5B9A\u5706\u5F27\u7684\u5F26\u65B9\u5411(\u6309\u4F4FCtrl\u952E\u5207\u6362\u65B9\u5411)"),at.setKeyWords(""),at.setUserDraw(function(to,ho){var xa=wt.clone().addvec(to.sub(wt).normalize().mult(ii*2)),Ea=Yn(xa),ao=new McDbPolyline;ao.addVertexAt(_t.pt,Ea,_t.dStartWidth,_t.dEndWidth),ao.addVertexAt(xa),ho.drawMcDbEntity(ao)}),rr.next=190,at.go();case 190:if(_n=rr.sent,_n){rr.next=193;break}return rr.abrupt("return",0);case 193:return xn=wt.clone().addvec(_n.sub(wt).normalize().mult(ii*2)),jn={},jn.dStartWidth=x,jn.dEndWidth=w,jn.dBulge=0,jn.pt=xn,n[n.length-1].dBulge=Yn(xn),n.push(jn),ln=n.length,ln>=2&&(ar=new McDbPolyline,ar.addVertexAt(n[ln-2].pt,n[ln-2].dBulge,n[ln-2].dStartWidth,n[ln-2].dEndWidth),ar.addVertexAt(n[ln-1].pt),_.push(b.drawEntity(ar))),rr.abrupt("return",1);case 204:if(pt){rr.next=206;break}return rr.abrupt("return",0);case 206:zr={},zr.dStartWidth=x,zr.dEndWidth=w,zr.dBulge=0,zr.pt=pt,n[n.length-1].dBulge=Yn(pt),n.push(zr),Jr=n.length,Jr>=2&&(bi=new McDbPolyline,bi.addVertexAt(n[Jr-2].pt,n[Jr-2].dBulge,n[Jr-2].dStartWidth,n[Jr-2].dEndWidth),bi.addVertexAt(n[Jr-1].pt),_.push(b.drawEntity(bi)));case 215:if(!at.isKeyWordPicked("CE")){rr.next=311;break}return at.setMessage("\u6307\u5B9A\u5706\u5F27\u7684\u5706\u5FC3"),at.setKeyWords(""),at.setUserDraw(function(){}),rr.next=221,at.go();case 221:if(hi=rr.sent,hi){rr.next=224;break}return rr.abrupt("return",{v:void 0});case 224:return wi=_t.pt,Ca=hi.distanceTo(wi),at.setLastInputPoint(wi),at.setMessage("\u6307\u5B9A\u5706\u5F27\u7684\u7AEF\u70B9(\u6309\u4F4F Ctrl \u952E\u4EE5\u5207\u6362\u65B9\u5411)"),at.setKeyWords("[\u89D2\u5EA6(A)/\u957F\u5EA6(L)]"),at.clearLastInputPoint(),at.setUserDraw(function(to,ho){ho.drawLine(to.toVector3(),hi.toVector3());var xa=hi.clone().addvec(to.sub(hi).normalize().mult(Ca)),Ea=hi.sub(wi).angleTo2(hi.sub(xa),McGeVector3d.kZAxis),ao=new McGePoint3d((wi.x+xa.x)/2,(wi.y+xa.y)/2),Ki=hi.sub(ao).normalize().mult(-Ca),$o=hi.clone().addvec((E?Ea<Math.PI:Ea>Math.PI)?Ki.negate():Ki),Ho=MxCADUtility.calcBulge(wi,$o,xa).val,de=new McDbPolyline;de.addVertexAt(_t.pt,Ho,_t.dStartWidth,_t.dEndWidth),de.addVertexAt(xa),ho.drawMcDbEntity(de)}),rr.next=233,at.go();case 233:if(jt=rr.sent,!at.isKeyWordPicked("A")){rr.next=261;break}return dt=new MxCADUiPrAngle,dt.setBasePt(hi),dt.setMessage(_ML_String("ID_ARX_PLGET_I_ANGLE","\u6307\u5B9A\u5939\u89D2(\u6309\u4F4F Ctrl \u952E\u4EE5\u5207\u6362\u65B9\u5411")),dt.setKeyWords(""),dt.setUserDraw(function(to,ho){var xa=McGeVector3d.kXAxis.clone().angleTo2(to.sub(hi),McGeVector3d.kZAxis),Ea=E?Math.PI*2-xa/2:xa/2,ao=wi.sub(hi).rotateBy(Ea).normalize().mult(Ca),Ki=wi.sub(hi).rotateBy(xa).normalize().mult(Ca),$o=hi.clone().addvec(ao),Ho=hi.clone().addvec(Ki),de=MxCADUtility.calcBulge(wi,$o,Ho).val,Me=new McDbPolyline;Me.addVertexAt(_t.pt,de,_t.dStartWidth,_t.dEndWidth),Me.addVertexAt(Ho),ho.drawMcDbEntity(Me)}),rr.next=242,dt.go();case 242:if(xt=rr.sent,xt!==null){rr.next=245;break}return rr.abrupt("return",0);case 245:return Nt=E?Math.PI*2-xt/2:xt/2,Qt=wi.sub(hi).rotateBy(Nt).normalize().mult(Ca),mn=wi.sub(hi).rotateBy(xt).normalize().mult(Ca),Un=hi.clone().addvec(Qt),we=hi.clone().addvec(mn),En=MxCADUtility.calcBulge(wi,Un,we).val,Kn={},Kn.dStartWidth=x,Kn.dEndWidth=w,Kn.dBulge=0,Kn.pt=we,n[n.length-1].dBulge=En,n.push(Kn),er=n.length,er>=2&&(Hr=new McDbPolyline,Hr.addVertexAt(n[er-2].pt,n[er-2].dBulge,n[er-2].dStartWidth,n[er-2].dEndWidth),Hr.addVertexAt(n[er-1].pt),_.push(b.drawEntity(Hr))),rr.abrupt("return",1);case 261:if(!at.isKeyWordPicked("L")){rr.next=292;break}return Ir=new MxCADUiPrDist,Ir.setMessage("\u6307\u5B9A\u5F26\u957F(\u6309\u4F4F Ctrl \u952E\u4EE5\u5207\u6362\u65B9\u5411)"),Ir.setKeyWords(""),Ir.setBasePt(wi),Ir.setUserDraw(function(to,ho){var xa=to.distanceTo(wi);if(!(xa>Ca*2)){var Ea=Math.asin(xa/2/Ca)*2,ao=wi.sub(hi).normalize().mult(Ca),Ki=hi.clone().addvec(ao.clone().rotateBy(E?Math.PI-Ea/2:Ea/2)),$o=hi.clone().addvec(ao.clone().rotateBy(Ea)),Ho=MxCADUtility.calcBulge(wi,Ki,$o).val,de=new McDbPolyline;de.addVertexAt(_t.pt,Ho,_t.dStartWidth,_t.dEndWidth),de.addVertexAt($o),ho.drawMcDbEntity(de)}}),rr.next=269,Ir.go();case 269:if(Ri=rr.sent,typeof Ri=="number"){rr.next=272;break}return rr.abrupt("return",0);case 272:if(!(Ri>Ca*2)){rr.next=276;break}return MxFun.acutPrintf("*\u5F26\u957F\u4E0D\u80FD\u5927\u4E8E\u76F4\u5F84 \u65E0\u6548*"),at.setLastInputPoint(wi),rr.abrupt("return",1);case 276:return Ti=Math.asin(Ri/2/Ca)*2,mi=wi.sub(hi).normalize().mult(Ca),Li=hi.clone().addvec(mi.clone().rotateBy(E?Math.PI-Ti/2:Ti/2)),tr=hi.clone().addvec(mi.clone().rotateBy(Ti)),ha=MxCADUtility.calcBulge(wi,Li,tr).val,ti={},ti.dStartWidth=x,ti.dEndWidth=w,ti.dBulge=0,ti.pt=tr,n[n.length-1].dBulge=ha,n.push(ti),ua=n.length,ua>=2&&(Va=new McDbPolyline,Va.addVertexAt(n[ua-2].pt,n[ua-2].dBulge,n[ua-2].dStartWidth,n[ua-2].dEndWidth),Va.addVertexAt(n[ua-1].pt),_.push(b.drawEntity(Va))),at.setLastInputPoint(tr),rr.abrupt("return",1);case 292:if(jt){rr.next=294;break}return rr.abrupt("return",{v:void 0});case 294:return ns=hi.clone().addvec(jt.sub(hi).normalize().mult(Ca)),Xo=hi.sub(wi).angleTo2(hi.sub(ns),McGeVector3d.kZAxis),qr=new McGePoint3d((wi.x+ns.x)/2,(wi.y+ns.y)/2),ca=hi.sub(qr).normalize().mult(-Ca),va=hi.clone().addvec((E?Xo<Math.PI:Xo>Math.PI)?ca.negate():ca),Ms=MxCADUtility.calcBulge(wi,va,ns).val,rs={},rs.dStartWidth=x,rs.dEndWidth=w,rs.dBulge=0,rs.pt=ns,n[n.length-1].dBulge=Ms,n.push(rs),Ai=n.length,Ai>=2&&(Na=new McDbPolyline,Na.addVertexAt(n[Ai-2].pt,n[Ai-2].dBulge,n[Ai-2].dStartWidth,n[Ai-2].dEndWidth),Na.addVertexAt(n[Ai-1].pt),_.push(b.drawEntity(Na))),at.setLastInputPoint(ns),rr.abrupt("return",1);case 311:if(!at.isKeyWordPicked("R")){rr.next=383;break}return sl=new MxCADUiPrDist,sl.setMessage(_ML_String("ID_ARX_PLGETSTARTRADIUS","\u6307\u5B9A\u5706\u5F27\u7684\u534A\u5F84")),sl.setKeyWords(""),rr.next=317,sl.go();case 317:if(eo=rr.sent,eo!==null){rr.next=320;break}return rr.abrupt("return",0);case 320:return ja=_t.pt,at.setLastInputPoint(ja),at.setMessage("\u6307\u5B9A\u5706\u5F27\u7684\u7AEF\u70B9(\u6309\u4F4F Ctrl \u952E\u4EE5\u5207\u6362\u65B9\u5411)"),at.setKeyWords("[\u89D2\u5EA6(A)]"),at.setUserDraw(function(to,ho){if(!!eo){var xa=to.distanceTo(ja);if(!(xa>eo*2)){var Ea=Math.acos(xa/2/eo),ao=ja.clone().addvec(to.sub(ja).rotateBy(Ea).normalize().mult(eo)),Ki=ao.clone().addvec(new McGePoint3d((ja.x+to.x)/2,(ja.y+to.y)/2).sub(ao).normalize().mult(E?-eo:eo)),$o=MxCADUtility.calcBulge(ja,Ki,to).val,Ho=new McDbPolyline;Ho.addVertexAt(_t.pt,$o,_t.dStartWidth,_t.dEndWidth),Ho.addVertexAt(to),ho.drawMcDbEntity(Ho)}}}),rr.next=327,at.go();case 327:if(no=rr.sent,!at.isKeyWordPicked("A")){rr.next=363;break}return yo=new MxCADUiPrAngle,yo.setMessage(_ML_String("ID_ARX_PLGET_I_ANGLE","\u6307\u5B9A\u5939\u89D2")),yo.setKeyWords(""),yo.setBasePt(ja),rr.next=335,yo.go();case 335:if(Ra=rr.sent,typeof Ra=="number"){rr.next=338;break}return rr.abrupt("return",0);case 338:return Ye=Math.sin(Ra/2)*eo*2,at.setMessage("\u6307\u5B9A\u5706\u5F27\u7684\u5F26\u65B9\u5411(\u6309\u4F4F Ctrl \u952E\u4EE5\u5207\u6362\u65B9\u5411)"),at.setKeyWords(""),at.setBasePt(ja),at.setUserDraw(function(to,ho){if(!!eo){var xa=to.sub(ja).normalize(),Ea=ja.clone().addvec(xa.clone().mult(Ye)),ao=Ea.clone().addvec(xa.clone().negate().rotateBy(-(Math.PI/2-Ra/2)).mult(eo)),Ki=ao.clone().addvec(ao.sub(new McGePoint3d((ja.x+Ea.x)/2,(ja.y+Ea.y)/2)).normalize().mult(E?eo:-eo)),$o=MxCADUtility.calcBulge(ja,Ki,Ea).val,Ho=new McDbPolyline;Ho.addVertexAt(_t.pt,$o,_t.dStartWidth,_t.dEndWidth),Ho.addVertexAt(Ea),ho.drawMcDbEntity(Ho)}}),rr.next=345,at.go();case 345:if($t=rr.sent,$t){rr.next=348;break}return rr.abrupt("return",0);case 348:return ft=$t.sub(ja).normalize(),Gt=ja.clone().addvec(ft.clone().mult(Ye)),bn=Gt.clone().addvec(ft.clone().negate().rotateBy(-(Math.PI/2-Ra/2)).mult(eo)),sr=bn.clone().addvec(bn.sub(new McGePoint3d((ja.x+Gt.x)/2,(ja.y+Gt.y)/2)).normalize().mult(E?eo:-eo)),Br=MxCADUtility.calcBulge(ja,sr,Gt).val,Pr={},Pr.dStartWidth=x,Pr.dEndWidth=w,Pr.dBulge=0,Pr.pt=Gt,n[n.length-1].dBulge=Br,n.push(Pr),Mi=n.length,Mi>=2&&(vi=new McDbPolyline,vi.addVertexAt(n[Mi-2].pt,n[Mi-2].dBulge,n[Mi-2].dStartWidth,n[Mi-2].dEndWidth),vi.addVertexAt(n[Mi-1].pt),_.push(b.drawEntity(vi))),rr.abrupt("return",1);case 363:if(no){rr.next=365;break}return rr.abrupt("return",0);case 365:if(Sa=no.distanceTo(ja),!(Sa>eo*2)){rr.next=369;break}return MxFun.acutPrintf("\u6307\u5B9A\u5706\u5F27\u7684\u7AEF\u70B9 *\u65E0\u6548*"),rr.abrupt("return",1);case 369:return La=Math.acos(Sa/2/eo),Cs=ja.clone().addvec(no.sub(ja).rotateBy(La).normalize().mult(eo)),ko=Cs.clone().addvec(new McGePoint3d((ja.x+no.x)/2,(ja.y+no.y)/2).sub(Cs).normalize().mult(E?-eo:eo)),Co=MxCADUtility.calcBulge(ja,ko,no).val,gs={},gs.dStartWidth=x,gs.dEndWidth=w,gs.dBulge=0,gs.pt=no,n[n.length-1].dBulge=Co,n.push(gs),No=n.length,No>=2&&(wl=new McDbPolyline,wl.addVertexAt(n[No-2].pt,n[No-2].dBulge,n[No-2].dStartWidth,n[No-2].dEndWidth),wl.addVertexAt(n[No-1].pt),_.push(b.drawEntity(wl))),rr.abrupt("return",1);case 383:if(!at.isKeyWordPicked("H")){rr.next=404;break}return Ua=new MxCADUiPrDist,Ua.setMessage(_ML_String("ID_ARX_PLGETSTARTWIDTH","\u6307\u5B9A\u8D77\u70B9\u534A\u5BBD")),rr.next=388,Ua.go();case 388:if(Vs=rr.sent,Vs!==null){rr.next=391;break}return rr.abrupt("return",0);case 391:return x=Ua.value()*2,Ua.setMessage(_ML_String("ID_ARX_PLGETVERITXWIDTH","\u6307\u5B9A\u7AEF\u70B9\u534A\u5BBD")),rr.next=395,Ua.go();case 395:if(Vs=rr.sent,Vs!==null){rr.next=398;break}return rr.abrupt("return",0);case 398:return w=Ua.value()*2,o=w,n[n.length-1].dStartWidth=x,n[n.length-1].dEndWidth=w,x=w,rr.abrupt("return",1);case 404:if(!at.isKeyWordPicked("D")){rr.next=433;break}return at.setMessage("\u6307\u5B9A\u5706\u5F27\u8D77\u70B9\u5207\u5411"),at.setKeyWords(""),at.setLastInputPoint(_t.pt),at.setUserDraw(function(to,ho){ho.drawLine(to.toVector3(),_t.pt.toVector3())}),rr.next=411,at.go();case 411:if(jo=rr.sent,jo){rr.next=414;break}return rr.abrupt("return",0);case 414:return ys=jo.sub(_t.pt),at.setLastInputPoint(_t.pt),at.setBasePt(_t.pt),at.setMessage("\u6307\u5B9A\u5706\u5F27\u7684\u7AEF\u70B9(\u6309\u4F4F Ctrl \u952E\u4EE5\u5207\u6362\u65B9\u5411)"),at.setKeyWords(""),at.setUserDraw(function(to,ho){var xa=CMxDrawPolylineDragArcDraw_CalcArcBulge(_t.pt,to,E?ys.clone().negate():ys),Ea=new McDbPolyline;Ea.addVertexAt(_t.pt,xa,_t.dStartWidth,_t.dEndWidth),Ea.addVertexAt(to),ho.drawMcDbEntity(Ea)}),rr.next=422,at.go();case 422:return Ol=rr.sent,is={},is.dStartWidth=x,is.dEndWidth=w,is.dBulge=0,is.pt=Ol,n[n.length-1].dBulge=CMxDrawPolylineDragArcDraw_CalcArcBulge(_t.pt,is.pt,E?ys.clone().negate():ys),n.push(is),Ta=n.length,Ta>=2&&(Lr=new McDbPolyline,Lr.addVertexAt(n[Ta-2].pt,n[Ta-2].dBulge,n[Ta-2].dStartWidth,n[Ta-2].dEndWidth),Lr.addVertexAt(n[Ta-1].pt),_.push(b.drawEntity(Lr))),rr.abrupt("return",1);case 433:if(!at.isKeyWordPicked("L")){rr.next=437;break}l=!0,rr.next=490;break;case 437:if(!at.isKeyWordPicked("S")){rr.next=461;break}return Vo=new McGePoint3d(n[n.length-1].pt.x,n[n.length-1].pt.y,0),ll=new MxCADUiPrPoint,ll.setMessage(_ML_String("NO1_ID_SPECIFY_ARC2","\u6307\u5B9A\u5706\u5F27\u7684\u7B2C\u4E8C\u4E2A\u70B9")),ll.setBasePt(Vo),rr.next=444,ll.go();case 444:if(xu=rr.sent,xu!==null){rr.next=447;break}return rr.abrupt("return",0);case 447:return vo=new MxCADUiPrPoint,vo.setMessage(_ML_String("ID_CIRCULAR_ENDPOINT","\u6307\u5B9A\u5706\u5F27\u7684\u7AEF\u70B9(\u6309\u4F4F Ctrl \u952E\u4EE5\u5207\u6362\u65B9\u5411)")),vo.setUserDraw(function(to,ho){var xa=new McDbArc;xa.computeArc(Vo.x,Vo.y,xu.x,xu.y,to.x,to.y),ho.drawMcDbEntity(xa)}),rr.next=452,vo.go();case 452:if(_o=rr.sent,_o===null){rr.next=458;break}Rs=MxCADUtility.calcBulge(Vo,xu,_o),Rs.ret?(Fl={},Fl.dStartWidth=x,Fl.dEndWidth=w,Fl.pt=_o,Fl.dBluge=0,n[n.length-1].dBulge=Rs.val,n.push(Fl),Zo=n.length,Zo>=2&&(ql=new McDbPolyline,ql.addVertexAt(n[Zo-2].pt,n[Zo-2].dBulge,n[Zo-2].dStartWidth,n[Zo-2].dEndWidth),ql.addVertexAt(n[Zo-1].pt),_.push(b.drawEntity(ql)))):MxFun.acutPrintf(_ML_String("ID_ENDPOINT_INVALID1",`
  3382. \u7AEF\u70B9 *\u65E0\u6548*`)),rr.next=459;break;case 458:return rr.abrupt("return",0);case 459:rr.next=490;break;case 461:if(!at.isKeyWordPicked("W")){rr.next=483;break}return Al=new MxCADUiPrDist,Al.setMessage(_ML_String("ID_ARX_PLGETSTARTWIDTH","\u6307\u5B9A\u8D77\u70B9\u5BBD\u5EA6")),rr.next=466,Al.go();case 466:if(Kt=rr.sent,Kt!==null){rr.next=469;break}return rr.abrupt("return",0);case 469:return x=Al.value(),Al.setMessage(_ML_String("ID_ARX_PLGETVERITXWIDTH","\u6307\u5B9A\u7AEF\u70B9\u5BBD\u5EA6")),rr.next=473,Al.go();case 473:if(Kt=rr.sent,Kt!==null){rr.next=476;break}return rr.abrupt("return",0);case 476:w=Al.value(),o=w,n[n.length-1].dStartWidth=x,n[n.length-1].dEndWidth=w,x=w,rr.next=490;break;case 483:if(!at.isKeyWordPicked("C")){rr.next=489;break}return n[n.length-1].dBulge=CMxDrawPolylineDragArcDraw_CalcArcBulge(_t.pt,r,E?Lt.clone().negate():Lt),c=!0,rr.abrupt("return",0);case 489:at.isKeyWordPicked("U")&&n.length>1&&(n.pop(),_[_.length-1].erase(),_.pop(),n.length>0&&at.setLastInputPoint(n[n.length-1].pt));case 490:rr.next=493;break;case 492:return rr.abrupt("return",0);case 493:case"end":return rr.stop()}},B)});case 29:return W.delegateYield(N(),"t0",31);case 31:if(A=W.t0,A!==0){W.next=34;break}return W.abrupt("break",40);case 34:if(A!==1){W.next=36;break}return W.abrupt("continue",29);case 36:if(!A){W.next=38;break}return W.abrupt("return",A.v);case 38:W.next=29;break;case 40:for(v&&(c=!0),z=0;z<_.length;z++)_[z].erase();if(n.length>1){for(G=new McDbPolyline,V=0;V<n.length;V++)G.addVertexAt(n[V].pt,n[V].dBulge,n[V].dStartWidth,n[V].dEndWidth);G.isClosed=c,b.drawEntity(G)}window.removeEventListener("keydown",I),window.removeEventListener("keyup",O);case 45:case"end":return W.stop()}},t)})),_drawPolyLine.apply(this,arguments)}MxFun.on("init",function(){MxFun.addCommand("Mx_Pline",drawPolyLine)});function computeRegularPolygonVertices$1(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new McGePoint3d,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new McGePoint3d,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3,n=[];r=Math.max(3,r),n.push(e);for(var o=Math.PI*2/r,s=1;s<r;s++){var c=Math.cos(o*s),l=Math.sin(o*s),v=t.clone(),x=e.clone(),w=x.x-v.x,_=x.y-v.y,b=w*c-_*l+v.x,E=w*l+_*c+v.y,I=new McGePoint3d(b,E);n.push(I)}return n}function computePolygonVerticesFromMidpoint(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new McGePoint3d,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new McGePoint3d,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3,n=e.x,o=e.y,s=t.x,c=t.y,l=Math.max(3,r),v=Math.sqrt(Math.pow(n-s,2)+Math.pow(o-c,2)),x=v/Math.cos(Math.PI/l),w=Math.atan2(o-c,n-s)-Math.PI/l,_=[],b=0;b<l;b++){var E=w+b*2*Math.PI/l,I=s+x*Math.cos(E),O=c+x*Math.sin(E);_.push(new McGePoint3d(I,O))}return _}function computePolygonVerticesFromEdge(t,e,r){for(var n=e.x-t.x,o=e.y-t.y,s=Math.sqrt(n*n+o*o),c=Math.atan2(o,n),l=2*Math.PI/Math.max(3,r),v=[t,e],x=0;x<r;x++){var w=t.x+s*Math.cos(c+x*l),_=t.y+s*Math.sin(c+x*l);t=new McGePoint3d(w,_),v.push(t)}return v}function drawPolygon(){return _drawPolygon.apply(this,arguments)}function _drawPolygon(){return _drawPolygon=_asyncToGenerator(regenerator.mark(function t(){var e,r,n,o,s,c,l,v,x,w,_,b,E,I;return regenerator.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:if(l=new MxCADUiPrPoint,e){N.next=11;break}return v=new MxCADUiPrInt,v.setMessage(`
  3383. \u8F93\u5165\u4FA7\u9762\u6570 <5>`),N.next=6,v.go();case 6:if(N.t0=N.sent,N.t0){N.next=9;break}N.t0=5;case 9:e=N.t0,v.clearLastInputPoint();case 11:x=function(){var A=_asyncToGenerator(regenerator.mark(function z(){var G;return regenerator.wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:if(G=function(B){var q=new McDbPolyline,D=computePolygonVerticesFromEdge(o,B,e||5);return D.forEach(function(F){q.addVertexAt(F)}),q.isClosed=!0,q},o){ne.next=10;break}return l.setMessage(`
  3384. \u6307\u5B9A\u8FB9\u7684\u7B2C\u4E00\u4E2A\u7AEF\u70B9`),l.setKeyWords(""),ne.next=6,l.go();case 6:if(o=ne.sent,o){ne.next=9;break}return ne.abrupt("return");case 9:l.setUserDraw(function(W,B){B.drawMcDbEntity(G(W))});case 10:if(s){ne.next=15;break}return l.setMessage(`
  3385. \u6307\u5B9A\u8FB9\u7684\u7B2C\u4E8C\u4E2A\u7AEF\u70B9`),ne.next=14,l.go();case 14:s=ne.sent;case 15:if(s){ne.next=17;break}return ne.abrupt("return");case 17:MxCpp.getCurrentMxCAD().drawEntity(G(s));case 18:case"end":return ne.stop()}},z)}));return function(){return A.apply(this,arguments)}}();{N.next=16;break}case 15:return N.abrupt("return",N.sent);case 16:if(l.setMessage(`
  3386. \u6307\u5B9A\u6B63\u591A\u53D8\u5F62\u7684\u4E2D\u5FC3\u70B9`),l.setKeyWords("[\u8FB9(E)]"),l.setCursorType(MxCursorType.kCross),r){N.next=23;break}return N.next=22,l.go();case 22:r=N.sent;case 23:if(r){N.next=28;break}if(!l.isKeyWordPicked("e")){N.next=27;break}return N.next=27,x();case 27:return N.abrupt("return");case 28:if(typeof n=="boolean"){N.next=36;break}return l.setMessage(`
  3387. \u8F93\u5165\u9009\u9879`),l.setKeyWords("[\u5185\u63A5\u4E8E\u5706(I)/\u5916\u5207\u4E8E\u5706(C)]"),l.clearLastInputPoint(),N.next=34,l.go();case 34:l.isKeyWordPicked("i")&&(n=!1),l.isKeyWordPicked("c")&&(n=!0);case 36:if(w=function(z){var G=MxCpp.getCurrentMxCAD().getCurrentDatabaseDrawColor(),V=new McDbPolyline;V.trueColor=new McCmColor(G);var ne=n?computePolygonVerticesFromMidpoint(r,z,e):computeRegularPolygonVertices$1(r,z,e);return ne.forEach(function(W){V.addVertexAt(W)}),V.isClosed=!0,V},b=new McGeVector3d,c){N.next=50;break}return E=new MxCADUiPrDist,E.setBasePt(r),E.setUserDraw(function(A,z){z.drawMcDbEntity(w(A)),r&&(b=A.sub(r))}),E.setMessage(_ML_String("McDbPolyline_Radius",`
  3388. \u6307\u5B9A\u5706\u7684\u534A\u5F84`)),E.setKeyWords(""),N.next=46,E.go();case 46:if(I=N.sent,I){N.next=49;break}return N.abrupt("return");case 49:c=I;case 50:b=b.normalize().mult(c),_=r.clone().addvec(b),MxCpp.getCurrentMxCAD().drawEntity(w(_));case 53:case"end":return N.stop()}},t)})),_drawPolygon.apply(this,arguments)}MxFun.addCommand("Mx_Polygon",drawPolygon);function calculateEndPoint(t,e,r,n,o,s){var c=r-t,l=n-e,v=o/s,x=c*Math.cos(v)-l*Math.sin(v),w=c*Math.sin(v)+l*Math.cos(v);return x+=t,w+=e,new McGePoint3d(x,w)}function findArcCenterWithRadius(t,e,r){var n=Math.sqrt(Math.pow(r,2)-(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))/4),o={x:(t.x+e.x)/2,y:(t.y+e.y)/2};return new McGePoint3d(o.x-n*(e.y-t.y)/Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)),o.y-n*(t.x-e.x)/Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)))}function findEndAngle(t,e,r,n){var o={x:e.x-t.x,y:e.y-t.y},s={x:r.x-t.x,y:r.y-t.y},c=Math.atan2(o.y,o.x),l=Math.atan2(s.y,s.x),v=l-c;v<0&&(v+=2*Math.PI);var x=n+v;return x}function findEndPoint(t,e,r,n){var o=e+r;return new McGePoint3d(t.x+n*Math.cos(o),t.y+n*Math.sin(o))}function calculateChordLength(t,e,r){var n=Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)),o={x:e.x-t.x,y:e.y-t.y},s={x:r.x-t.x,y:r.y-t.y},c=o.x*s.x+o.y*s.y,l=o.x*s.y-o.y*s.x,v=Math.atan2(l,c),x=2*n*Math.sin(v/2);return x}function drawArc(){return _drawArc.apply(this,arguments)}function _drawArc(){return _drawArc=_asyncToGenerator(regenerator.mark(function t(){var e,r,n,o,s,c,l,v,x,w,_,b,E,I,O,N,A,z,G,V,ne,W,B,q,D,F;return regenerator.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:e=MxCpp.getCurrentMxCAD().getCurrentDatabaseDrawColor(),r=MxCpp.getCurrentMxCAD(),n=new MxCADUiPrPoint,o=new McDbArc,o.trueColor=new McCmColor(e),b=function(){},E=`
  3389. \u6307\u5B9A\u5706\u5F27\u7684\u8D77\u70B9:`,I="[\u5706\u5FC3(C)]",O=!1,N=function(me){me.ctrlKey&&(O=!0)},A=function(){O=!1},z=function(){window.removeEventListener("keydown",N),window.removeEventListener("keyup",A),window.addEventListener("keydown",N),window.addEventListener("keyup",A)},G=new McDbLine,V=new McCmColor,V.setRGB(255,211,13),G.trueColor=V,G.linetype="ACAD_ISO02W100",ne=!1,B=function(me,ye){O?(o.startAngle=w,o.endAngle=x):(o.startAngle=x,o.endAngle=w),o.radius=_,o.center=v,G.endPoint=me,ye.drawMcDbEntity(o),ye.drawMcDbEntity(G)},q=function(me){o.computeArc(s.x,s.y,c.x,c.y,l.x,l.y),me.drawMcDbEntity(o)},D=regenerator.mark(function fe(){var me,ye,Te,ke,Le,et,it,Ue,ht;return regenerator.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return n.setUserDraw(b),n.setMessage(E),n.setKeyWords(I),Be.next=5,n.go();case 5:if(me=Be.sent,!n.isKeyWordPicked("C")){Be.next=30;break}if(W="C",ne=!0,!s){Be.next=27;break}return n.setMessage(`
  3390. \u6307\u5B9A\u5706\u5F27\u7684\u5706\u5FC3`),n.setKeyWords(""),Be.next=14,n.go();case 14:if(ye=Be.sent,ye){Be.next=17;break}return Be.abrupt("return",{v:void 0});case 17:v=ye,E=`
  3391. \u6307\u5B9A\u5706\u5F27\u7684\u7AEF\u70B9(\u6309\u4F4F ctrl \u952E\u53D6\u76F8\u53CD\u65B9\u5411)`,I="[\u89D2\u5EA6(A)/\u5F26\u957F(L)/\u4FEE\u6539\u534A\u5F84(R)]",n.setLastInputPoint(v),G.startPoint=v,_=v.distanceTo(s),b=function(He,gt){x=angleTo(v.x,v.y,s.x,s.y)-Math.PI,w=angleTo(v.x,v.y,He.x,He.y)-Math.PI,G.endPoint=He,B(He,gt)},z(),Be.next=29;break;case 27:E=`
  3392. \u6307\u5B9A\u5706\u5F27\u7684\u5706\u5FC3`,I="";case 29:return Be.abrupt("return",0);case 30:if(!ne){Be.next=124;break}if(!n.isKeyWordPicked("R")){Be.next=55;break}if(W!=="E"){Be.next=41;break}return Te=0,ke=function(){var Ve=_asyncToGenerator(regenerator.mark(function He(){var gt;return regenerator.wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:return n.setLastInputPoint(s),n.setMessage(`
  3393. \u6307\u5B9A\u5706\u5F27\u7684\u534A\u5F84(\u6309\u4F4F ctrl \u952E\u53D6\u76F8\u53CD\u65B9\u5411)`),n.setKeyWords(""),n.setLastInputPoint(s),G.startPoint=s,z(),n.setUserDraw(function(at,Lt){Te<0?(G.endPoint=at,Lt.drawMcDbEntity(G),Te=0):(_=at.distanceTo(s),v=findArcCenterWithRadius(s,l,_),x=angleTo(v.x,v.y,s.x,s.y)-Math.PI,w=angleTo(v.x,v.y,l.x,l.y)-Math.PI,B(at,Lt),Te=calculateChordLength(v,s,l))}),Ze.next=9,n.go();case 9:if(gt=Ze.sent,gt){Ze.next=12;break}return Ze.abrupt("return",!0);case 12:if(Te=calculateChordLength(v,s,l),!(Te<0)){Ze.next=19;break}return MxFun.acutPrintf(`
  3394. \u534A\u5F84\u4E0D\u80FD\u5C0F\u4E8E\u5F26\u957F\u7684\u4E00\u534A\uFF0C\u5F26\u957F\u4E3A`+Te),Te=0,Ze.next=18,ke();case 18:return Ze.abrupt("return",Ze.sent);case 19:r.drawEntity(o);case 20:case"end":return Ze.stop()}},He)}));return function(){return Ve.apply(this,arguments)}}(),Be.next=37,ke();case 37:return Be.t0=Be.sent,Be.abrupt("return",{v:Be.t0});case 41:return n.setLastInputPoint(v),n.setMessage(_ML_String("draw_arc_id","\u6307\u5B9A\u5706\u5F27\u7684\u534A\u5F84<"+o.radius+">")),n.setKeyWords(""),n.setUserDraw(function(Ve,He){G.startPoint=v,G.endPoint=Ve,He.drawMcDbEntity(G)}),Be.next=47,n.go();case 47:if(Le=Be.sent,Le){Be.next=50;break}return Be.abrupt("return",{v:void 0});case 50:_=Le.distanceTo(v),E=`
  3395. \u6307\u5B9A\u5706\u5F27\u7684\u7AEF\u70B9(\u6309\u4F4F ctrl \u952E\u53D6\u76F8\u53CD\u65B9\u5411)`,I="[\u89D2\u5EA6(A)/\u5F26\u957F(L)/\u4FEE\u6539\u534A\u5F84(R)]",z();case 54:return Be.abrupt("return",0);case 55:if(!n.isKeyWordPicked("A")){Be.next=74;break}if(!(W==="C"||W==="L")){Be.next=66;break}return E="\u6307\u5B9A\u5706\u5F27\u5939\u89D2(\u6309\u4F4F ctrl \u952E\u53D6\u76F8\u53CD\u65B9\u5411)",I="[\u4FEE\u6539\u534A\u5F84(R)]",x=Math.PI+angleTo(v.x,v.y,s.x,s.y),n.setLastInputPoint(v),G.startPoint=v,_||(_=v.distanceTo(s)),b=function(He,gt){var dn=angleTo(v.x,v.y,He.x,He.y)-Math.PI;l=findEndPoint(v,x,dn,_),w=findEndAngle(v,s,l,x),B(He,gt)},z(),Be.abrupt("return",0);case 66:if(W!=="E"){Be.next=74;break}return E="\u6307\u5B9A\u5706\u5F27\u5939\u89D2(\u6309\u4F4F ctrl \u952E\u53D6\u76F8\u53CD\u65B9\u5411)",I="",n.setLastInputPoint(s),G.startPoint=s,b=function(He,gt){var dn=angleTo(s.x,s.y,He.x,He.y)-Math.PI;v=findArcCenter(s,l,dn),_=v.distanceTo(s),x=angleTo(v.x,v.y,s.x,s.y)-Math.PI,w=angleTo(v.x,v.y,l.x,l.y)-Math.PI,B(He,gt)},z(),Be.abrupt("return",0);case 74:if(!n.isKeyWordPicked("L")){Be.next=83;break}return W="L",E=`
  3396. \u6307\u5B9A\u5F26\u957F(\u6309\u4F4F ctrl \u952E\u53D6\u76F8\u53CD\u65B9\u5411)`,I="[\u4FEE\u6539\u534A\u5F84(R)]",n.setLastInputPoint(s),G.startPoint=s,b=function(He,gt){var dn=He.distanceTo(s);if(dn>_*2){G.endPoint=He,gt.drawMcDbEntity(G);return}l=calculateEndPoint(v.x,v.y,s.x,s.y,dn,o.radius),w=angleTo(v.x,v.y,l.x,l.y)-Math.PI,B(He,gt)},z(),Be.abrupt("return",0);case 83:if(!n.isKeyWordPicked("D")){Be.next=98;break}return n.setMessage(`
  3397. \u6307\u5B9A\u5706\u5F27\u8D77\u70B9\u7684\u5207\u5411(\u6309\u4F4F ctrl \u952E\u53D6\u76F8\u53CD\u65B9\u5411`),n.setKeyWords(""),n.setLastInputPoint(s),G.startPoint=s,et=new McDbPolyline,z(),n.setUserDraw(function(Ve,He){s=s,l=l;var gt=Ve.sub(s),dn=CMxDrawPolylineDragArcDraw_CalcArcBulge(O?s:l,O?l:s,gt);et=new McDbPolyline,et.addVertexAt(s,dn),et.addVertexAt(l),G.endPoint=Ve,He.drawMcDbEntity(et),He.drawMcDbEntity(G)}),Be.next=93,n.go();case 93:if(it=Be.sent,it){Be.next=96;break}return Be.abrupt("return",{v:void 0});case 96:return r.drawEntity(et),Be.abrupt("return",{v:void 0});case 98:if(me){Be.next=100;break}return Be.abrupt("return",{v:void 0});case 100:if(W!=="L"){Be.next=106;break}if(Ue=me.distanceTo(s),!(Ue>_*2)){Be.next=106;break}return n.clearLastInputPoint(),MxFun.acutPrintf(`
  3398. \u5F26\u957F\u4E0D\u80FD\u8D85\u51FA\u534A\u5F84\u7684\u4E24\u500D\uFF0C\u534A\u5F84\u4E3A`+_),Be.abrupt("return",0);case 106:if(v){Be.next=111;break}return v=me,E=`
  3399. \u6307\u5B9A\u5706\u5F27\u7684\u8D77\u70B9`,b=function(He,gt){gt.drawLine(He.toVector3(),v.toVector3())},Be.abrupt("return",0);case 111:if(s){Be.next=122;break}return s=me,x=angleTo(v.x,v.y,s.x,s.y)-Math.PI,_=s.distanceTo(v),E=`
  3400. \u6307\u5B9A\u5706\u5F27\u7684\u7AEF\u70B9(\u6309\u4F4F ctrl \u952E\u53D6\u76F8\u53CD\u65B9\u5411)`,I="[\u89D2\u5EA6(A)/\u5F26\u957F(L)/\u4FEE\u6539\u534A\u5F84(R)]",n.setLastInputPoint(v),G.startPoint=v,b=function(He,gt){w=angleTo(v.x,v.y,He.x,He.y)-Math.PI,B(He,gt)},z(),Be.abrupt("return",0);case 122:return r.drawEntity(o),Be.abrupt("return",{v:void 0});case 124:if(!n.isKeyWordPicked("E")){Be.next=146;break}return W="E",n.clearLastInputPoint(),n.setMessage(`
  3401. \u6307\u5B9A\u5706\u5F27\u7684\u7AEF\u70B9`),n.setKeyWords(""),G.startPoint=s,s=s,n.setUserDraw(function(Ve,He){G.endPoint=Ve,He.drawMcDbEntity(G)}),Be.next=134,n.go();case 134:if(ht=Be.sent,ht){Be.next=137;break}return Be.abrupt("return",{v:void 0});case 137:return l=ht,ne=!0,E=`
  3402. \u6307\u5B9A\u5706\u5F27\u7684\u5706\u5FC3(\u6309\u4F4F ctrl \u952E\u53D6\u76F8\u53CD\u65B9\u5411)`,I="[\u89D2\u5EA6(A)/\u65B9\u5411(D)/\u534A\u5F84(R)]",n.setLastInputPoint(l),G.startPoint=l,b=function(He,gt){v=He,_=v.distanceTo(s),x=angleTo(v.x,v.y,s.x,s.y)-Math.PI,w=angleTo(v.x,v.y,l.x,l.y)-Math.PI,B(He,gt)},z(),Be.abrupt("return",0);case 146:if(me){Be.next=148;break}return Be.abrupt("return",{v:void 0});case 148:if(s){Be.next=155;break}return s=me,E=`
  3403. \u6307\u5B9A\u5706\u5F27\u7B2C\u4E8C\u4E2A\u70B9`,I="[\u5706\u5FC3(C)/\u7AEF\u70B9(E)]",b=function(He,gt){gt.drawLine(s.toVector3(),He.toVector3())},n.clearLastInputPoint(),Be.abrupt("return",0);case 155:if(c){Be.next=161;break}return c=me,E=`
  3404. \u6307\u5B9A\u5706\u5F27\u7684\u7AEF\u70B9`,I="",b=function(He,gt){l=He,q(gt)},Be.abrupt("return",0);case 161:return n.drawReserve(),Be.abrupt("return",{v:void 0});case 163:case"end":return Be.stop()}},fe)});case 21:return le.delegateYield(D(),"t0",23);case 23:if(F=le.t0,F!==0){le.next=26;break}return le.abrupt("continue",21);case 26:if(!F){le.next=28;break}return le.abrupt("return",F.v);case 28:le.next=21;break;case 30:case"end":return le.stop()}},t)})),_drawArc.apply(this,arguments)}MxFun.on("init",function(){MxFun.addCommand("Mx_Arc",drawArc)});function drawEllipticalArc(){return _drawEllipticalArc.apply(this,arguments)}function _drawEllipticalArc(){return _drawEllipticalArc=_asyncToGenerator(regenerator.mark(function t(){var e,r,n,o,s,c,l,v,x,w;return regenerator.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:o=1,s=0,c=Math.PI*2,l=0,v=function(){var I=new McDbEllipse;return I.center=e,I.majorAxis=r,I.minorAxis=n,I.radiusRatio=o,I.startAngle=s,I.endAngle=c,I.rotate(e,l),I},x=regenerator.mark(function E(){var I,O,N,A,z,G,V,ne,W,B,q,D,F;return regenerator.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return I=new MxCADUiPrPoint,I.setMessage("\u6307\u5B9A\u692D\u5706\u5F27\u7684\u8F74\u7AEF\u70B9"),I.setKeyWords("[\u4E2D\u5FC3\u70B9(C)]"),le.next=5,I.go();case 5:if(O=le.sent,N=0,A=null,!I.isKeyWordPicked("C")){le.next=29;break}return I.setMessage("\u6307\u5B9A\u692D\u5706\u5F27\u7684\u4E2D\u5FC3\u70B9"),I.setKeyWords(""),I.clearLastInputPoint(),le.next=14,I.go();case 14:if(z=le.sent,z){le.next=17;break}return le.abrupt("return",{v:void 0});case 17:return e=z,I.setMessage("\u6307\u5B9A\u692D\u5706\u5F27\u8F74\u7684\u7AEF\u70B9"),I.setBasePt(e),le.next=22,I.go();case 22:if(A=le.sent,A){le.next=25;break}return le.abrupt("return",{v:void 0});case 25:r=n=e.sub(A),N=e.distanceTo(A),le.next=42;break;case 29:if(O){le.next=31;break}return le.abrupt("return",{v:void 0});case 31:return I.setBasePt(O),I.setMessage("\u6307\u5B9A\u692D\u5706\u5F27\u8F74\u7684\u53E6\u4E00\u4E2A\u7AEF\u70B9"),I.setKeyWords(""),le.next=36,I.go();case 36:if(A=le.sent,A){le.next=39;break}return le.abrupt("return",{v:void 0});case 39:e=new McGePoint3d((O.x+A.x)/2,(O.y+A.y)/2),r=n=O.sub(A),N=O.distanceTo(A)/2;case 42:return G=new MxCADUiPrDist,G.setMessage(_ML_String("McDbEllipse_lengh","\u6307\u5B9A\u53E6\u4E00\u6761\u534A\u8F74\u957F\u5EA6")),G.setKeyWords("[\u65CB\u8F6C(R)]"),G.setBasePt(e),G.setUserDraw(function(fe,me){var ye=e.distanceTo(fe)/2;o=ye/N;var Te=v();me.drawMcDbEntity(Te)}),le.next=49,G.go();case 49:if(V=le.sent,!G.isKeyWordPicked("R")){le.next=63;break}return G.setMessage(_ML_String("McDbEllipse_Rotation","\u6307\u5B9A\u7ED5\u4E3B\u8F74\u65CB\u8F6C\u7684\u89D2\u5EA6")),G.setKeyWords(""),G.setBasePt(e),G.setUserDraw(function(fe,me){r=n=r.rotateBy(angleTo(e.x,e.y,fe.x,fe.y));var ye=v();me.drawMcDbEntity(ye)}),le.next=57,G.go();case 57:if(ne=le.sent,ne){le.next=60;break}return le.abrupt("return",{v:void 0});case 60:G.getDetailedResult()===8&&(l=ne),le.next=67;break;case 63:if(V){le.next=65;break}return le.abrupt("return",{v:void 0});case 65:W=V/2,o=W/N;case 67:if(A){le.next=69;break}return le.abrupt("return",{v:void 0});case 69:return B=angleTo(A.x,A.y,e.x,e.y),G.setMessage(_ML_String("McDbEllipse_startAngle","\u6307\u5B9A\u8D77\u70B9\u89D2\u5EA6")),G.setKeyWords(""),G.setBasePt(e),G.setUserDraw(function(fe,me){s=angleTo(e.x,e.y,fe.x,fe.y)-B;var ye=v();me.drawMcDbEntity(ye)}),le.next=76,G.go();case 76:if(q=le.sent,q){le.next=79;break}return le.abrupt("return",{v:void 0});case 79:return G.getDetailedResult()===8&&(s=q),G.clearLastInputPoint(),G.setBasePt(e),G.setMessage(_ML_String("McDbEllipse_endAngle","\u6307\u5B9A\u7AEF\u70B9\u89D2\u5EA6")),G.setKeyWords("[\u5939\u89D2(I)]"),G.setUserDraw(function(fe,me){c=angleTo(e.x,e.y,fe.x,fe.y)-B;var ye=v();me.drawMcDbEntity(ye)}),le.next=87,G.go();case 87:if(D=le.sent,!G.isKeyWordPicked("I")){le.next=99;break}return G.setMessage(_ML_String("McDbEllipse_IncludedAngle","\u6307\u5B9A\u692D\u5706\u5F27\u7684\u5939\u89D2")),G.setKeyWords(""),G.setUserDraw(function(fe,me){c=angleTo(e.x,e.y,fe.x,fe.y);var ye=v();me.drawMcDbEntity(ye)}),le.next=94,G.go();case 94:if(F=le.sent,F){le.next=97;break}return le.abrupt("return",{v:void 0});case 97:return G.getDetailedResult()===8&&(c=F),le.abrupt("return",{v:MxCpp.getCurrentMxCAD().drawEntity(v())});case 99:if(D){le.next=101;break}return le.abrupt("return",{v:void 0});case 101:return G.getDetailedResult()===8&&(c=D),le.abrupt("return",{v:MxCpp.getCurrentMxCAD().drawEntity(v())});case 103:case"end":return le.stop()}},E)});case 6:return b.delegateYield(x(),"t0",8);case 8:if(w=b.t0,!w){b.next=11;break}return b.abrupt("return",w.v);case 11:b.next=6;break;case 13:case"end":return b.stop()}},t)})),_drawEllipticalArc.apply(this,arguments)}function drawMxDbEllipse(){return _drawMxDbEllipse.apply(this,arguments)}function _drawMxDbEllipse(){return _drawMxDbEllipse=_asyncToGenerator(regenerator.mark(function t(){var e,r,n,o,s,c,l,v,x,w;return regenerator.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:e=new MxCADUiPrPoint,s=1,c=0,l=Math.PI*2,e.setMessage(`
  3405. \u6307\u5B9A\u692D\u5706\u7684\u8F74\u7AEF\u70B9`),e.setKeyWords("[\u5706\u5F27(A)/\u4E2D\u5FC3\u70B9(C)]"),v=function(){var I=new McDbEllipse;return I.center=r,I.majorAxis=n,I.minorAxis=o,I.radiusRatio=s,I.startAngle=c,I.endAngle=l,I},x=regenerator.mark(function E(){var I,O,N,A,z,G,V,ne,W,B,q,D,F,re,le,fe,me,ye;return regenerator.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return I=!1,O=!1,N=!1,ke.next=5,e.go();case 5:if(A=ke.sent,!e.isKeyWordPicked("A")){ke.next=17;break}return e.setMessage(`
  3406. \u6307\u5B9A\u692D\u5706\u5F27\u7684\u8F74\u7AEF\u70B9`),e.setKeyWords("[\u4E2D\u5FC3\u70B9(C)]"),ke.next=11,e.go();case 11:if(z=ke.sent,e.isKeyWordPicked("C")&&(N=!0),!(!z&&!N)){ke.next=15;break}return ke.abrupt("return",{v:void 0});case 15:z&&(A=z),I=!0;case 17:if(!(e.isKeyWordPicked("C")||N)){ke.next=27;break}return e.setMessage(`
  3407. \u6307\u5B9A\u692D\u5706\u4E2D\u5FC3\u70B9`),e.setKeyWords(""),ke.next=22,e.go();case 22:if(G=ke.sent,G){ke.next=25;break}return ke.abrupt("return",{v:void 0});case 25:r=A=G,O=!0;case 27:if(!(!A&&!I&&!O)){ke.next=29;break}return ke.abrupt("return",{v:void 0});case 29:return e.setUserDraw(function(Le,et){et.drawMcDbLine(A.x,A.y,A.z,Le.x,Le.y,Le.z)}),e.setMessage(O?`
  3408. \u6307\u5B9A\u692D\u5706\u8F74\u7684\u7AEF\u70B9`:`
  3409. \u6307\u5B9A\u692D\u5706\u8F74\u7684\u53E6\u4E00\u4E2A\u7AEF\u70B9`),e.setKeyWords(""),ke.next=34,e.go();case 34:if(V=ke.sent,V){ke.next=37;break}return ke.abrupt("return",{v:void 0});case 37:return r=O?A:new McGePoint3d((A.x+V.x)/2,(A.y+V.y)/2),ne=new MxCADUiPrDist,ne.setBasePt(r),W=A.distanceTo(V)/2,o=n=A.sub(V),B=function(et,it){var Ue=v(),ht=new McDbLine(r,et);ht.trueColor=new McCmColor,ht.trueColor.setRGB(255,255,0),it.drawMcDbEntity(ht),it.drawMcDbEntity(Ue)},ne.setUserDraw(function(Le,et){var it=r.distanceTo(Le)/2;s=it/W,B(Le,et)}),ne.setMessage(_ML_String("EllipticalArc_length","\u6307\u5B9A\u53E6\u4E00\u6761\u534A\u8F74\u957F\u5EA6")),ne.setKeyWords(""),ke.next=48,ne.go();case 48:if(q=ke.sent,q){ke.next=51;break}return ke.abrupt("return",{v:void 0});case 51:if(ne.getDetailedResult()===DetailedResult.kCoordIn&&(D=q/2,s=D/W),ne.setLastInputPoint(r),!I){ke.next=86;break}return ne.setMessage(_ML_String("EllipticalArc_startAngle","\u6307\u5B9A\u8D77\u70B9\u89D2\u5EA6")),ne.setKeyWords(""),F=angleTo(r.x,r.y,V.x,V.y),ne.setUserDraw(function(Le,et){c=angleTo(r.x,r.y,Le.x,Le.y)-F-Math.PI,B(Le,et)}),ke.next=60,ne.go();case 60:if(re=ke.sent,re){ke.next=63;break}return ke.abrupt("return",{v:void 0});case 63:return ne.getDetailedResult()==DetailedResult.kCoordIn&&(c=re),ne.setLastInputPoint(r),ne.setMessage(_ML_String("EllipticalArc_endAngle","\u6307\u5B9A\u7AEF\u70B9\u89D2\u5EA6")),ne.setKeyWords("[\u5939\u89D2(I)]"),ne.setUserDraw(function(Le,et){l=angleTo(r.x,r.y,Le.x,Le.y)-F-Math.PI,B(Le,et)}),ke.next=70,ne.go();case 70:if(le=ke.sent,!ne.isKeyWordPicked("I")){ke.next=83;break}return ne.setMessage(`
  3410. \u6307\u5B9A\u692D\u5706\u5F27\u7684\u5939\u89D2`),ne.setKeyWords(""),ne.setUserDraw(function(Le,et){l=angleTo(r.x,r.y,Le.x,Le.y)-Math.PI,B(Le,et)}),ke.next=77,ne.go();case 77:if(fe=ke.sent,fe){ke.next=80;break}return ke.abrupt("return",{v:void 0});case 80:return ne.getDetailedResult()===DetailedResult.kCoordIn&&(l=fe),me=v(),ke.abrupt("return",{v:MxCpp.getCurrentMxCAD().drawEntity(me)});case 83:if(le){ke.next=85;break}return ke.abrupt("return",{v:void 0});case 85:ne.getDetailedResult()===DetailedResult.kCoordIn&&(l=le);case 86:return ye=v(),ke.abrupt("return",{v:MxCpp.getCurrentMxCAD().drawEntity(ye)});case 88:case"end":return ke.stop()}},E)});case 8:return b.delegateYield(x(),"t0",10);case 10:if(w=b.t0,!w){b.next=13;break}return b.abrupt("return",w.v);case 13:b.next=8;break;case 15:case"end":return b.stop()}},t)})),_drawMxDbEllipse.apply(this,arguments)}MxFun.on("init",function(){MxFun.addCommand("Mx_EllipseArc",drawEllipticalArc),MxFun.addCommand("Mx_Ellipse",drawMxDbEllipse)});function Mx_Erase(){return _Mx_Erase.apply(this,arguments)}function _Mx_Erase(){return _Mx_Erase=_asyncToGenerator(regenerator.mark(function t(){var e,r;return regenerator.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(e=MxCADUtility.getCurrentSelect(),!(e.length>0)){o.next=4;break}return e.forEach(function(s){s.erase()}),o.abrupt("return");case 4:return r=new MxCADSelectionSet,o.next=7,r.userSelect(`
  3411. \u9009\u62E9\u5220\u9664\u5BF9\u8C61`);case 7:if(o.sent){o.next=9;break}return o.abrupt("return");case 9:r.forEach(function(s){s.erase()});case 10:case"end":return o.stop()}},t)})),_Mx_Erase.apply(this,arguments)}function MxGetMcDbEntityBoundingBox(t){var e=void 0,r=void 0;if(t.forEach(function(n){var o=n.getMcDbEntity();if(o!=null){var s=o.getBoundingBox();!s.ret||(!e||!r?(e=new THREE.Vector3(s.minPt.x,s.minPt.y,0),r=new THREE.Vector3(s.maxPt.x,s.maxPt.y,0)):(e.x>s.minPt.x&&(e.x=s.minPt.x),e.y>s.minPt.y&&(e.y=s.minPt.y),r.x<s.maxPt.x&&(r.x=s.maxPt.x),r.y<s.maxPt.y&&(r.y=s.maxPt.y)))}}),e&&r)return{minPt:e,maxPt:r}}function Mx_Copy(){return _Mx_Copy.apply(this,arguments)}function _Mx_Copy(){return _Mx_Copy=_asyncToGenerator(regenerator.mark(function t(){var e,r,n,o,s,c,l,v,x,w;return regenerator.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(e=MxCADUtility.getCurrentSelect(),!(e.length>0)){b.next=4;break}return b.abrupt("break",15);case 4:return r=new MxCADSelectionSet,b.next=7,r.userSelect(`
  3412. \u9009\u62E9\u590D\u5236\u5BF9\u8C61`);case 7:if(b.sent){b.next=9;break}return b.abrupt("return");case 9:if(e=r.getIds(),e.length!=0){b.next=12;break}return b.abrupt("return");case 12:return b.abrupt("break",15);case 15:return e.length>=10&&(s=MxGetMcDbEntityBoundingBox(e),s&&(n=s.minPt,o=s.maxPt)),c=new MxCADUiPrPoint,c.setMessage("\u6307\u5B9A\u57FA\u70B9"),b.next=20,c.go();case 20:if(l=b.sent,l){b.next=23;break}return b.abrupt("return");case 23:c.setDynamicInputType(DynamicInputType.kXYCoordInput),c.setMessage("\u6307\u5B9A\u79FB\u52A8\u5230\u70B9"),c.setBasePt(l),c.setUseBasePt(!0),c.setUserDraw(function(E,I){if(n&&o){var O=E.x-l.x,N=E.y-l.y,A=new THREE.Vector3(n.x+O,o.y+N,0),z=new THREE.Vector3(o.x+O,n.y+N,0),G=new THREE.Vector3(A.x,z.y,0),V=new THREE.Vector3(z.x,A.y,0);A=MxCoordConvert.cad2doc2(A.x,A.y,A.z),z=MxCoordConvert.cad2doc2(z.x,z.y,z.z),G=MxCoordConvert.cad2doc2(G.x,G.y,G.z),V=MxCoordConvert.cad2doc2(V.x,V.y,V.z),I.drawLine(V,A),I.drawLine(A,G),I.drawLine(G,z),I.drawLine(z,V)}for(var ne=0;ne<e.length&&ne<10;ne++){var W=e[ne].clone();!W||(W.move(l,E),I.drawMcDbEntity(W))}});case 28:return b.next=31,c.go();case 31:if(v=b.sent,v){b.next=34;break}return b.abrupt("return");case 34:x=0;case 35:if(!(x<e.length)){b.next=44;break}if(w=e[x].clone(),w){b.next=39;break}return b.abrupt("continue",41);case 39:w.move(l,v),MxCpp.getCurrentMxCAD().drawEntity(w);case 41:x++,b.next=35;break;case 44:b.next=28;break;case 46:case"end":return b.stop()}},t)})),_Mx_Copy.apply(this,arguments)}function Mx_Move(){return _Mx_Move.apply(this,arguments)}function _Mx_Move(){return _Mx_Move=_asyncToGenerator(regenerator.mark(function t(){var e,r,n,o,s,c,l,v,x,w;return regenerator.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(e=MxCADUtility.getCurrentSelect(),!(e.length>0)){b.next=4;break}return b.abrupt("break",15);case 4:return r=new MxCADSelectionSet,b.next=7,r.userSelect(`
  3413. \u9009\u62E9\u79FB\u52A8\u5BF9\u8C61`);case 7:if(b.sent){b.next=9;break}return b.abrupt("return");case 9:if(e=r.getIds(),e.length!=0){b.next=12;break}return b.abrupt("return");case 12:return b.abrupt("break",15);case 15:return e.length>=10&&(s=MxGetMcDbEntityBoundingBox(e),s&&(n=s.minPt,o=s.maxPt)),c=new MxCADUiPrPoint,c.setMessage("\u6307\u5B9A\u57FA\u70B9"),c.clearLastInputPoint(),b.next=21,c.go();case 21:if(l=b.sent,l){b.next=24;break}return b.abrupt("return");case 24:return c.setMessage("\u6307\u5B9A\u79FB\u52A8\u5230\u70B9"),c.setBasePt(l),c.setUseBasePt(!0),c.setDynamicInputType(DynamicInputType.kXYCoordInput),c.setUserDraw(function(E,I){if(n&&o){var O=E.x-l.x,N=E.y-l.y,A=new THREE.Vector3(n.x+O,o.y+N,0),z=new THREE.Vector3(o.x+O,n.y+N,0),G=new THREE.Vector3(A.x,z.y,0),V=new THREE.Vector3(z.x,A.y,0);A=MxCoordConvert.cad2doc2(A.x,A.y,A.z),z=MxCoordConvert.cad2doc2(z.x,z.y,z.z),G=MxCoordConvert.cad2doc2(G.x,G.y,G.z),V=MxCoordConvert.cad2doc2(V.x,V.y,V.z),I.drawLine(V,A),I.drawLine(A,G),I.drawLine(G,z),I.drawLine(z,V)}for(var ne=0;ne<e.length&&ne<10;ne++){var W=e[ne].clone();!W||(W.move(l,E),I.drawMcDbEntity(W))}}),b.next=31,c.go();case 31:if(v=b.sent,v){b.next=34;break}return b.abrupt("return");case 34:x=0;case 35:if(!(x<e.length)){b.next=43;break}if(w=e[x].getMcDbObject(),w){b.next=39;break}return b.abrupt("continue",40);case 39:w.move(l,v);case 40:x++,b.next=35;break;case 43:case"end":return b.stop()}},t)})),_Mx_Move.apply(this,arguments)}function Mx_Rotate(){return _Mx_Rotate.apply(this,arguments)}function _Mx_Rotate(){return _Mx_Rotate=_asyncToGenerator(regenerator.mark(function t(){var e,r,n,o,s,c,l,v,x,w,_,b;return regenerator.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(e=MxCADUtility.getCurrentSelect(),!(e.length>0)){I.next=4;break}return I.abrupt("break",15);case 4:return r=new MxCADSelectionSet,I.next=7,r.userSelect(`
  3414. \u9009\u62E9\u65CB\u8F6C\u5BF9\u8C61`);case 7:if(I.sent){I.next=9;break}return I.abrupt("return");case 9:if(e=r.getIds(),e.length!=0){I.next=12;break}return I.abrupt("return");case 12:return I.abrupt("break",15);case 15:return s=MxGetMcDbEntityBoundingBox(e),s&&(n=s.minPt,o=s.maxPt),c=new MxCADUiPrPoint,c.setMessage("\u6307\u5B9A\u57FA\u70B9"),I.next=21,c.go();case 21:if(l=I.sent,l!=null){I.next=24;break}return I.abrupt("return");case 24:v=!1,x=0,w=new MxCADUiPrDist,w.setMessage(_ML_String("Entity_Rotate_Angle","\u6307\u5B9A\u65CB\u8F6C\u89D2\u5EA6")),w.setKeyWords("[\u590D\u5236(C)/\u53C2\u7167(R)]"),w.setBasePt(l),w.setUseBasePt(!0),w.setDynamicInputType(DynamicInputType.kXYCoordInput),_=regenerator.mark(function O(){var N,A,z,G,V,ne,W,B,q,D,F,re,le;return regenerator.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return N=0,w.setUserDraw(function(ye,Te){var ke=ye,Le=l,et=ke.sub(Le);N=et.angleTo2(McGeVector3d.kXAxis,McGeVector3d.kNegateZAxis)-x;var it=new McGeMatrix3d;if(it.setToRotation(N,McGeVector3d.kZAxis,Le),n&&o){var Ue=new McGePoint3d(n.x,o.y,0),ht=new McGePoint3d(o.x,n.y,0),De=new McGePoint3d(Ue.x,ht.y,0),Be=new McGePoint3d(ht.x,Ue.y,0);Ue.transformBy(it),ht.transformBy(it),De.transformBy(it),Be.transformBy(it),Ue=MxCoordConvert.cad2doc(Ue),ht=MxCoordConvert.cad2doc(ht),De=MxCoordConvert.cad2doc(De),Be=MxCoordConvert.cad2doc(Be),Te.drawLine(Be.toVector3(),Ue.toVector3()),Te.drawLine(Ue.toVector3(),De.toVector3()),Te.drawLine(De.toVector3(),ht.toVector3()),Te.drawLine(ht.toVector3(),Be.toVector3())}it.setToRotation(N,McGeVector3d.kZAxis,Le);for(var Ve=0;Ve<e.length&&Ve<10;Ve++){var He=e[Ve].clone();!He||(He.transformBy(it),Te.drawMcDbEntity(He))}}),me.next=4,w.go();case 4:if(A=me.sent,!w.isKeyWordPicked("C")){me.next=8;break}return v=!0,me.abrupt("return",0);case 8:if(!w.isKeyWordPicked("R")){me.next=23;break}return z=new MxCADUiPrDist,z.setMessage(_ML_String("Entity_Rotate_Ref_Angle","\u6307\u5B9A\u53C2\u7167\u89D2:<"+(x/(Math.PI/180)).toFixed(3)+">")),z.setKeyWords(""),z.setBasePt(l),z.setUseBasePt(!0),G=0,z.setUserDraw(function(ye){if(!!l){var Te=ye.sub(l);G=Te.angleTo2(McGeVector3d.kXAxis,McGeVector3d.kNegateZAxis)}}),me.next=18,z.go();case 18:if(V=me.sent,typeof V=="number"){me.next=21;break}return me.abrupt("return",{v:void 0});case 21:return z.getDetailedResult()===DetailedResult.kCoordIn?x=V*Math.PI/180:G!==0&&(x=G),me.abrupt("return",0);case 23:if(A){me.next=25;break}return me.abrupt("return",{v:void 0});case 25:if(w.getDetailedResult()===DetailedResult.kCoordIn&&(N=A*Math.PI/180),ne=l,W=new McGeMatrix3d,W.setToRotation(N,McGeVector3d.kZAxis,ne),B=function(Te){return Te instanceof McDbEntity},!v){me.next=44;break}q=[],D=0;case 33:if(!(D<e.length)){me.next=41;break}if(F=e[D].clone(),F){me.next=37;break}return me.abrupt("continue",38);case 37:B(F)&&(F.transformBy(W),q.push(MxCpp.getCurrentMxCAD().drawEntity(F)));case 38:D++,me.next=33;break;case 41:return me.abrupt("return",{v:q});case 44:re=0;case 45:if(!(re<e.length)){me.next=53;break}if(le=e[re].getMcDbObject(),le){me.next=49;break}return me.abrupt("continue",50);case 49:le.transformBy(W);case 50:re++,me.next=45;break;case 53:return me.abrupt("return",{v:e});case 54:case"end":return me.stop()}},O)});case 33:return I.delegateYield(_(),"t0",35);case 35:if(b=I.t0,b!==0){I.next=38;break}return I.abrupt("continue",33);case 38:if(!b){I.next=40;break}return I.abrupt("return",b.v);case 40:I.next=33;break;case 42:case"end":return I.stop()}},t)})),_Mx_Rotate.apply(this,arguments)}function Mx_Scale(){return _Mx_Scale.apply(this,arguments)}function _Mx_Scale(){return _Mx_Scale=_asyncToGenerator(regenerator.mark(function t(){var e,r,n,o,s,c,l,v,x,w,_,b,E,I,O,N,A,z,G,V,ne;return regenerator.wrap(function(B){for(;;)switch(B.prev=B.next){case 0:if(e=MxCADUtility.getCurrentSelect(),!(e.length>0)){B.next=4;break}return B.abrupt("break",15);case 4:return r=new MxCADSelectionSet,B.next=7,r.userSelect(`
  3415. \u9009\u62E9\u7F29\u653E\u5BF9\u8C61`);case 7:if(B.sent){B.next=9;break}return B.abrupt("return");case 9:if(e=r.getIds(),e.length!=0){B.next=12;break}return B.abrupt("return");case 12:return B.abrupt("break",15);case 15:if(s=MxGetMcDbEntityBoundingBox(e),s){B.next=18;break}return B.abrupt("return");case 18:return n=s.minPt,o=s.maxPt,c=o.x-n.x,l=o.y-n.y,v=(c+l)/3,v<1e-5&&(v=1),x=new MxCADUiPrPoint,x.setMessage("\u6307\u5B9A\u57FA\u70B9"),B.next=28,x.go();case 28:if(w=B.sent,w){B.next=31;break}return B.abrupt("return");case 31:_=0,b=!1;case 33:return E=new MxCADUiPrDist,E.setMessage("\u6307\u5B9A\u6BD4\u4F8B\u56E0\u5B50"),E.setKeyWords("[\u590D\u5236(C)]"),E.setBasePt(w),E.setUseBasePt(!0),E.setDynamicInputType(DynamicInputType.kXYCoordInput),E.setUserDraw(function(q,D){if(!!w){var F=new McGePoint3d(q),re=new McGePoint3d(w),le=F.distanceTo(re);if(!(le<1e-5)){_=le/v,_>1e5&&(_=1e5);var fe=new McGeMatrix3d;if(fe.setToScaling(_,re),n&&o){var me=new McGePoint3d(n.x,o.y,0),ye=new McGePoint3d(o.x,n.y,0),Te=new McGePoint3d(me.x,ye.y,0),ke=new McGePoint3d(ye.x,me.y,0);me.transformBy(fe),ye.transformBy(fe),Te.transformBy(fe),ke.transformBy(fe),me=MxCoordConvert.cad2doc(me),ye=MxCoordConvert.cad2doc(ye),Te=MxCoordConvert.cad2doc(Te),ke=MxCoordConvert.cad2doc(ke),D.drawLine(ke.toVector3(),me.toVector3()),D.drawLine(me.toVector3(),Te.toVector3()),D.drawLine(Te.toVector3(),ye.toVector3()),D.drawLine(ye.toVector3(),ke.toVector3())}fe.setToScaling(_,re);for(var Le=0;Le<e.length&&Le<10;Le++){var et=e[Le].clone();!et||(et.transformBy(fe),D.drawMcDbEntity(et))}}}}),B.next=43,E.go();case 43:if(I=B.sent,!E.isKeyWordPicked("C")){B.next=47;break}return b=!0,B.abrupt("continue",33);case 47:if(I){B.next=49;break}return B.abrupt("return");case 49:if(E.getDetailedResult()===DetailedResult.kCoordIn&&(_=I),_>1e5&&(_=1e5),O=new McGeMatrix3d,O.setToScaling(_,w),!b){B.next=68;break}N=[],A=function(D){return D instanceof McDbEntity},z=0;case 57:if(!(z<e.length)){B.next=65;break}if(G=e[z].clone(),G){B.next=61;break}return B.abrupt("continue",62);case 61:A(G)&&(G.transformBy(O),N.push(MxCpp.getCurrentMxCAD().drawEntity(G)));case 62:z++,B.next=57;break;case 65:return B.abrupt("return",N);case 68:V=0;case 69:if(!(V<e.length)){B.next=77;break}if(ne=e[V].getMcDbObject(),ne){B.next=73;break}return B.abrupt("continue",74);case 73:ne.transformBy(O);case 74:V++,B.next=69;break;case 77:return B.abrupt("return",e);case 78:B.next=33;break;case 80:case"end":return B.stop()}},t)})),_Mx_Scale.apply(this,arguments)}function Mx_WindowZoom(){return _Mx_WindowZoom.apply(this,arguments)}function _Mx_WindowZoom(){return _Mx_WindowZoom=_asyncToGenerator(regenerator.mark(function t(){var e,r,n,o;return regenerator.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return e=new MxCADUiPrPoint,e.disableAllTrace(),e.setMessage("\u70B9\u53D6\u7F29\u653E\u533A\u57DF"),e.setDynamicInputType(DynamicInputType.kDynTip),c.next=6,e.go();case 6:if(r=c.sent,r!=null){c.next=9;break}return c.abrupt("return");case 9:return n=MxCpp.getCurrentMxCAD(),e.setUserDraw(function(l,v){v.drawRect(MxCoordConvert.cad2doc1(r),MxCoordConvert.cad2doc1(l))}),c.next=13,e.go();case 13:if(o=c.sent,o!=null){c.next=16;break}return c.abrupt("return");case 16:n.zoomW(r,o);case 17:case"end":return c.stop()}},t)})),_Mx_WindowZoom.apply(this,arguments)}function Mx_ZoomE(){return _Mx_ZoomE.apply(this,arguments)}function _Mx_ZoomE(){return _Mx_ZoomE=_asyncToGenerator(regenerator.mark(function t(){return regenerator.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:MxCpp.getCurrentMxCAD().zoomAll();case 1:case"end":return r.stop()}},t)})),_Mx_ZoomE.apply(this,arguments)}function Mx_Plan90CW(){return _Mx_Plan90CW.apply(this,arguments)}function _Mx_Plan90CW(){return _Mx_Plan90CW=_asyncToGenerator(regenerator.mark(function t(){var e,r;return regenerator.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:e=MxFun.getCurrentDraw().getViewAngle(),e+=Math.PI*.5,r=MxCpp.getCurrentMxCAD(),r.zoomAngle(e);case 4:case"end":return o.stop()}},t)})),_Mx_Plan90CW.apply(this,arguments)}var dist,isDel=!1,isSourceLayer=!0;function Mx_Offset(){return _Mx_Offset.apply(this,arguments)}function _Mx_Offset(){return _Mx_Offset=_asyncToGenerator(regenerator.mark(function t(){var e,r,n,o,s,c,l,v,x,w;return regenerator.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:e=new MxCADResbuf,e.AddMcDbEntityTypes("LINE,CIRCLE,LWPOLYLINE,ARC"),r=new MxCADUiPrPoint,n=!1,o=function(){var E=_asyncToGenerator(regenerator.mark(function I(){var O,N,A,z=arguments;return regenerator.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:O=z.length>0&&z[0]!==void 0?z[0]:!1,N=regenerator.mark(function ne(){var W,B,q,D,F,re;return regenerator.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:if(D=MxCADUtility.getCurrentSelect(),!(D.length>0&&O)){fe.next=5;break}q=D,fe.next=8;break;case 5:return fe.next=7,MxCADUtility.selectEnt(`
  3416. \u9009\u62E9\u504F\u79FB\u5BF9\u8C61`,e,!1,function(me){me.setKeyWords("[\u9000\u51FA(E)/\u653E\u5F03(U)]"),W=me},function(me){B=me});case 7:q=fe.sent;case 8:if(!W){fe.next=15;break}if(!W.isKeyWordPicked("E")){fe.next=11;break}return fe.abrupt("return",{v:void 0});case 11:if(!W.isKeyWordPicked("U")){fe.next=13;break}return fe.abrupt("return",0);case 13:if(W.getStatus()!==MrxDbgUiPrBaseReturn$1.kCancel){fe.next=15;break}return fe.abrupt("return",{v:void 0});case 15:if(q.length!=0){fe.next=17;break}return fe.abrupt("return",0);case 17:F=regenerator.mark(function me(){var ye,Te,ke,Le;return regenerator.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:return r.setDynamicInputType(DynamicInputType.kXYCoordInput),O?r.setMessage(`
  3417. \u6307\u5B9A\u901A\u8FC7\u70B9`+(n?" <\u4E0B\u4E00\u4E2A\u5BF9\u8C61>":"")):r.setMessage(`
  3418. \u6307\u5B9A\u8981\u504F\u79FB\u90A3\u4E00\u4FA7\u4E0A\u7684\u70B9`),r.setKeyWords(n?"[\u9000\u51FA(E)/\u653E\u5F03(U)]":"[\u9000\u51FA(E)/\u591A\u4E2A(M)/\u653E\u5F03(U)]"),r.disableAllTrace(),r.setUserDraw(function(Ue,ht){var De=q.map(function(dn){return dn.clone()}),Be=De[0];if(!!Be){var Ve=dist;if(O){var He=Be.getClosestPointTo(Ue,!0);if(!He.ret)return;B=He.val,Ve=Ue.distanceTo(B)}if(!!Ve){var gt=Be.offsetCurves(Ve,Ue);gt.empty()||gt.forEach(function(dn){dn instanceof McDbEntity&&ht.drawMcDbEntity(dn)})}}}),it.next=7,r.go();case 7:if(ye=it.sent,!r.isKeyWordPicked("E")){it.next=10;break}return it.abrupt("return",{v:{v:void 0}});case 10:if(!r.isKeyWordPicked("M")){it.next=13;break}return n=!0,it.abrupt("return",0);case 13:if(!r.isKeyWordPicked("U")){it.next=15;break}return it.abrupt("return",{v:1});case 15:if(ye){it.next=17;break}return it.abrupt("return",{v:{v:void 0}});case 17:if(Te=q[0].getMcDbCurve(),Te){it.next=20;break}return it.abrupt("return",{v:{v:void 0}});case 20:if(!O){it.next=25;break}if(ke=Te.getClosestPointTo(ye,!0),ke.ret){it.next=24;break}return it.abrupt("return",{v:{v:void 0}});case 24:dist=ye.distanceTo(ke.val);case 25:if(dist){it.next=27;break}return it.abrupt("return",{v:{v:void 0}});case 27:if(Le=Te.offsetCurves(dist,ye),!Le.empty()){it.next=30;break}return it.abrupt("return",{v:{v:void 0}});case 30:if(Le.forEach(function(Ue){Ue instanceof McDbEntity&&(isSourceLayer&&Te!==null&&Te!==void 0&&Te.layer&&(Ue.layer=Te.layer),isSourceLayer||(Ue.layer=MxCpp.getCurrentMxCAD().getDatabase().getCurrentlyLayerName()),MxCpp.getCurrentMxCAD().drawEntity(Ue))}),n){it.next=34;break}return isDel&&q[0].erase(!0),it.abrupt("return",1);case 34:case"end":return it.stop()}},me)});case 19:return fe.delegateYield(F(),"t0",21);case 21:if(re=fe.t0,re!==0){fe.next=24;break}return fe.abrupt("continue",19);case 24:if(re!==1){fe.next=26;break}return fe.abrupt("break",30);case 26:if(!re){fe.next=28;break}return fe.abrupt("return",re.v);case 28:fe.next=19;break;case 30:case"end":return fe.stop()}},ne)});case 2:return V.delegateYield(N(),"t0",4);case 4:if(A=V.t0,A!==0){V.next=7;break}return V.abrupt("continue",2);case 7:if(A!==1){V.next=9;break}return V.abrupt("continue",2);case 9:if(!A){V.next=11;break}return V.abrupt("return",A.v);case 11:V.next=2;break;case 13:case"end":return V.stop()}},I)}));return function(){return E.apply(this,arguments)}}();case 5:return s=new MxCADUiPrDist,s.setMessage(`
  3419. \u6307\u5B9A\u504F\u79FB\u8DDD\u79BB<`.concat((dist||0).toFixed(3),">")),s.setKeyWords("[\u901A\u8FC7\u70B9(T)/\u5220\u9664(E)/\u56FE\u5C42(L))]"),b.next=11,s.go();case 11:if(c=b.sent,!(s.isKeyWordPicked("T")||s.getStatus()===MrxDbgUiPrBaseReturn$1.kNone)){b.next=16;break}return b.next=15,o(!0);case 15:return b.abrupt("return");case 16:if(!s.isKeyWordPicked("E")){b.next=33;break}return l=new MxCADUiPrKeyWord,l.setMessage("\u8981\u5728\u504F\u79FB\u540E\u5220\u9664\u6E90\u5BF9\u8C61\u5417?<".concat(isDel?"\u662F":"\u5426",">")),l.setKeyWords("[\u662F(Y)/\u5426(N)]"),b.next=22,l.go();case 22:if(v=b.sent,l.getStatus()!==MrxDbgUiPrBaseReturn$1.kCancel){b.next=25;break}return b.abrupt("return");case 25:if(l.getStatus()!==MrxDbgUiPrBaseReturn$1.kNone){b.next=27;break}return b.abrupt("continue",5);case 27:if((v==null?void 0:v.toLocaleLowerCase())!=="y"){b.next=30;break}return isDel=!0,b.abrupt("continue",5);case 30:if((v==null?void 0:v.toLocaleLowerCase())!=="n"){b.next=33;break}return isDel=!1,b.abrupt("continue",5);case 33:if(!s.isKeyWordPicked("L")){b.next=51;break}return x=new MxCADUiPrKeyWord,x.setMessage("\u8F93\u5165\u504F\u79FB\u5BF9\u8C61\u7684\u56FE\u5C42\u9009\u9879<".concat(isSourceLayer?"\u6E90":"\u5F53\u524D",">")),x.setKeyWords("[\u5F53\u524D(C)/\u6E90(S)]"),b.next=39,x.go();case 39:if(w=b.sent,x.getStatus()!==MrxDbgUiPrBaseReturn$1.kCancel){b.next=42;break}return b.abrupt("return");case 42:if(x.getStatus()!==MrxDbgUiPrBaseReturn$1.kNone){b.next=45;break}return isSourceLayer=!0,b.abrupt("continue",5);case 45:if((w==null?void 0:w.toLocaleLowerCase())!=="c"){b.next=48;break}return isSourceLayer=!1,b.abrupt("continue",5);case 48:if((w==null?void 0:w.toLocaleUpperCase())!=="s"){b.next=51;break}return isSourceLayer=!0,b.abrupt("continue",5);case 51:if(c&&(dist=c),dist){b.next=54;break}return b.abrupt("return");case 54:return b.next=56,o();case 56:return b.abrupt("break",59);case 59:case"end":return b.stop()}},t)})),_Mx_Offset.apply(this,arguments)}function Mx_Regen(){MxCpp.getCurrentMxCAD().regen()}function Mx_Mirror(){return _Mx_Mirror.apply(this,arguments)}function _Mx_Mirror(){return _Mx_Mirror=_asyncToGenerator(regenerator.mark(function t(){var e,r,n,o,s,c,l,v,x,w,_,b;return regenerator.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,MxCADUtility.userSelect("\u9009\u62E9\u955C\u50CF\u5BF9\u8C61");case 2:if(e=I.sent,e.length!=0){I.next=6;break}return MxFun.acutPrintf(`
  3420. \u6CA1\u6709\u80FD\u955C\u50CF\u7684\u5BF9\u8C61`),I.abrupt("return");case 6:return o=MxGetMcDbEntityBoundingBox(e),o&&(r=o.minPt,n=o.maxPt),s=new MxCADUiPrPoint,s.setMessage("\u6307\u5B9A\u57FA\u70B9"),I.next=12,s.go();case 12:if(c=I.sent,c!=null){I.next=15;break}return I.abrupt("return");case 15:return s.setMessage("\u6307\u5B9A\u955C\u5411\u70B9"),s.setBasePt(c),s.setUseBasePt(!0),s.setUserDraw(function(O,N){if(r&&n){var A=new McGeMatrix3d;A.setMirror(c,O);var z=new McGePoint3d(r.x,n.y,0),G=new McGePoint3d(n.x,r.y,0),V=new McGePoint3d(z.x,G.y,0),ne=new McGePoint3d(G.x,z.y,0);z.transformBy(A),G.transformBy(A),V.transformBy(A),ne.transformBy(A),z=MxCoordConvert.cad2doc(z),G=MxCoordConvert.cad2doc(G),V=MxCoordConvert.cad2doc(V),ne=MxCoordConvert.cad2doc(ne),N.drawLine(ne.toVector3(),z.toVector3()),N.drawLine(z.toVector3(),V.toVector3()),N.drawLine(V.toVector3(),G.toVector3()),N.drawLine(G.toVector3(),ne.toVector3())}for(var W=0;W<e.length&&W<10;W++){var B=e[W].clone();!B||(B.mirror(c,O),N.drawMcDbEntity(B))}}),s.setDynamicInputType(DynamicInputType.kXYCoordInput),I.next=22,s.go();case 22:if(l=I.sent,l){I.next=25;break}return I.abrupt("return");case 25:return v=new MxCADUiPrKeyWord,v.clearLastInputPoint(),v.setMessage("\u8981\u5220\u9664\u6E90\u5BF9\u8C61\u5417\uFF1F<N>"),v.setKeyWords("[\u662F(Y)/\u5426(N)]"),I.next=31,v.go();case 31:if(x=I.sent,v.getStatus()!==MrxDbgUiPrBaseReturn$1.kCancel){I.next=34;break}return I.abrupt("return");case 34:w=0;case 35:if(!(w<e.length)){I.next=44;break}if(_=e[w].clone(),_){I.next=39;break}return I.abrupt("continue",41);case 39:_.mirror(c,l),MxCpp.getCurrentMxCAD().drawEntity(_);case 41:w++,I.next=35;break;case 44:if((x==null?void 0:x.toLocaleLowerCase())==="y")for(b=0;b<e.length;b++)e[b].erase();case 45:case"end":return I.stop()}},t)})),_Mx_Mirror.apply(this,arguments)}var copyAttribute=function t(e,r){e.layer=r.layer,e.trueColor=r.trueColor,e.colorIndex=r.colorIndex,e.linetype=r.linetype,e.visible=r.visible,e.textStyle=r.textStyle,e.lineweight=r.lineweight,e.drawOrder=r.drawOrder,e.linetypeScale=r.linetypeScale};function Mx_Chamfer(){return _Mx_Chamfer.apply(this,arguments)}function _Mx_Chamfer(){return _Mx_Chamfer=_asyncToGenerator(regenerator.mark(function t(){var e,r,n,o,s,c,l,v,x,w,_,b,E,I,O;return regenerator.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:x=function(G,V){var ne=v(G.startPoint,G.endPoint),W=v(V.startPoint,V.endPoint);return isNaN(ne)&&isNaN(W)?G.startPoint.x===V.startPoint.x:ne===W},v=function(G,V){return(V.y-G.y)/(V.x-G.x)},e=0,r=0,n=0,o=0,s=!1,c=!1,l=!1,MxFun.acutPrintf(`
  3421. (`.concat(c?"\u4FEE\u526A":"\u4E0D\u4FEE\u526A","\u6A21\u5F0F) \u5F53\u524D").concat(s?"\u5012\u89D2\u957F\u5EA6 = "+e.toFixed(4)+", \u89D2\u5EA6 = "+Math.trunc(o/(Math.PI/180)):"\u5012\u89D2\u8DDD\u79BB1 = "+e.toFixed(4)+", \u8DDD\u79BB2 = "+r.toFixed(4),`
  3422. `)),w=function(G,V){var ne=G.IntersectWith(V,McDb.Intersect.kExtendBoth);if(ne.isEmpty())return!1;var W=ne.at(0);return V.startPoint.distanceTo(W)<V.endPoint.distanceTo(W)?V.startPoint=W:V.endPoint=W,G.startPoint.distanceTo(W)<G.endPoint.distanceTo(W)?G.startPoint=W:G.endPoint=W,!0},_=function(){var z=_asyncToGenerator(regenerator.mark(function G(){var V,ne,W;return regenerator.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return V=new MxCADUiPrDist,V.setMessage("\u6307\u5B9A\u7B2C\u4E00\u4E2A\u5012\u89D2\u8DDD\u79BB<".concat(e.toFixed(4),">")),V.setKeyWords(""),q.next=5,V.go();case 5:if(ne=q.sent,typeof ne=="number"){q.next=8;break}return q.abrupt("return");case 8:return e=ne,V.setMessage("\u6307\u5B9A\u7B2C\u4E8C\u4E2A\u5012\u89D2\u8DDD\u79BB<".concat(r.toFixed(4),">")),V.setKeyWords(""),q.next=13,V.go();case 13:if(W=q.sent,typeof W=="number"){q.next=16;break}return q.abrupt("return");case 16:return r=W,s=!1,q.abrupt("return",[e,r]);case 19:case"end":return q.stop()}},G)}));return function(){return z.apply(this,arguments)}}(),b=function(){var z=_asyncToGenerator(regenerator.mark(function G(){var V,ne,W,B;return regenerator.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return V=new MxCADUiPrDist,V.setMessage("\u6307\u5B9A\u7B2C\u4E00\u6761\u76F4\u7EBF\u7684\u5012\u89D2\u957F\u5EA6<".concat(n.toFixed(4),">")),V.setKeyWords(""),V.clearLastInputPoint(),D.next=6,V.go();case 6:if(ne=D.sent,typeof ne=="number"){D.next=9;break}return D.abrupt("return");case 9:return n=ne,W=new MxCADUiPrAngle,W.setMessage("\u6307\u5B9A\u7B2C\u4E00\u6761\u76F4\u7EBF\u7684\u5012\u89D2\u89D2\u5EA6<".concat(Math.trunc(o/(Math.PI/180)),">")),W.setKeyWords(""),V.clearLastInputPoint(),D.next=16,W.go();case 16:if(B=D.sent,typeof B=="number"){D.next=19;break}return D.abrupt("return");case 19:return W.getDetailedResult()===DetailedResult.kCoordIn?o=B*(Math.PI/180):o=B,s=!0,D.abrupt("return",[n,o]);case 22:case"end":return D.stop()}},G)}));return function(){return z.apply(this,arguments)}}(),E=function(G,V,ne,W){var B=G.startPoint.clone(),q=V.startPoint.clone(),D=V.endPoint.clone(),F=q.clone().addvec(q.sub(B).normalize().mult(-ne)),re=F.sub(q).rotateBy(-W).mult(-ne),le=F.clone().addvec(re),fe=new McDbLine(F,le),me=new McDbLine(q,D.clone().addvec(q.sub(D).normalize().mult(-ne))),ye=fe.IntersectWith(me,McDb.Intersect.kExtendBoth);if(!ye.isEmpty()){var Te=ye.at(0);return Te.distanceTo(q)}},I=regenerator.mark(function z(){var G,V,ne,W,B,q,D,F,re,le,fe,me,ye,Te,ke,Le,et,it,Ue,ht,De,Be,Ve,He,gt,dn,Ze,at;return regenerator.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return G=new MxCADUiPrEntity,V=new MxCADResbuf,V.AddMcDbEntityTypes("LINE,LWPOLYLINE"),G.setFilter(V),G.setMessage("\u9009\u62E9\u4E00\u6761\u76F4\u7EBF"),G.setKeyWords("[\u653E\u5F03(U)/\u591A\u6BB5\u7EBF(P)/\u8DDD\u79BB(D)/\u89D2\u5EA6(A)/\u4FEE\u526A(T)/\u65B9\u5F0F(E)/\u591A\u4E2A(M)]"),Ne.next=8,G.go();case 8:if(ne=Ne.sent,!G.isKeyWordPicked("U")){Ne.next=11;break}return Ne.abrupt("return",0);case 11:if(!G.isKeyWordPicked("P")){Ne.next=65;break}case 12:return W=new MxCADUiPrEntity,B=new MxCADResbuf,B.AddMcDbEntityTypes("LWPOLYLINE"),W.setMessage("\u9009\u62E9\u4E8C\u7EF4\u591A\u6BB5\u7EBF"),W.setKeyWords("[\u8DDD\u79BB(D)/\u89D2\u5EA6(A)/\u65B9\u6CD5(M)]"),q=function(Ke){var vt=Ke.getMcDbEntity();if(vt instanceof McDbPolyline){var Ft=vt.numVerts();if(Ft<3)return MxFun.acutPrintf(`\u6CA1\u6709\u7EBF\u53EF\u4EE5\u5F62\u6210\u5012\u89D2
  3423. `);var Ot=e,_t=r;if(s){var Tn=vt.getPointAt(0).val,on=vt.getPointAt(1).val,$n=vt.getPointAt(2).val;Ot=n;var Zt=E(new McDbLine(Tn,on),new McDbLine(on,$n),n,o);if(typeof Zt!="number")return MxFun.acutPrintf(`
  3424. \u5012\u89D2\u89D2\u5EA6\u65E0\u6548\u3002`);_t=Zt}var Et=new McDbPolyline;Et.isClosed=vt.isClosed;for(var rn=[],wt=function(_n,xn){var jn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ln=_n.sub(xn).normalize().mult(jn?-_t:-Ot),ar=_n.clone().addvec(ln),zr=xn.sub(_n).normalize().mult(jn?-Ot:-_t),Jr=xn.clone().addvec(zr);return[ar,Jr]},Yn=function(_n,xn){var jn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ln=wt(_n,xn,jn),ar=_slicedToArray$1(ln,2),zr=ar[0],Jr=ar[1];c?(Et.addVertexAt(zr),Et.addVertexAt(Jr)):rn.push(zr,Jr)},pt=0;pt<Ft;pt++){var Fe=vt.getPointAt(pt).val,Ie=vt.getPointAt(pt+1).val;if(vt.isClosed)pt!==Ft-1&&Yn(Fe,Ie);else if(pt===0){Et.addVertexAt(Fe);var ct=Ie.sub(Fe).normalize().mult(-Ot),Ht=Ie.clone().addvec(ct);Et.addVertexAt(Ie.clone().addvec(ct)),rn.unshift(Ht)}else if(pt===Ft-2){var sn=Fe.sub(Ie).normalize().mult(-_t),yn=Fe.clone().addvec(sn);Et.addVertexAt(yn),Et.addVertexAt(Ie),rn.push(yn)}else pt!==Ft-1&&Yn(Fe,Ie,!0)}if(vt.isClosed&&Yn(vt.getPointAt(Ft-1).val,vt.getPointAt(0).val),c)return copyAttribute(Et,vt),Et;var Dr=[],Kr=[];return vt.isClosed&&rn.unshift(rn[rn.length-1]),rn.forEach(function(ii){if(Dr.push(ii),Dr.length===2){var _n=new McDbLine(Dr[0],Dr[1]);copyAttribute(_n,vt),Kr.push(_n),Dr=[]}}),Kr}},Ne.next=21,W.go();case 21:if(D=Ne.sent,!W.isKeyWordPicked("D")){Ne.next=28;break}return Ne.next=25,_();case 25:if(Ne.sent){Ne.next=27;break}return Ne.abrupt("return",{v:void 0});case 27:return Ne.abrupt("continue",12);case 28:if(!W.isKeyWordPicked("A")){Ne.next=34;break}return Ne.next=31,b();case 31:if(Ne.sent){Ne.next=33;break}return Ne.abrupt("return",{v:void 0});case 33:return Ne.abrupt("continue",12);case 34:if(!W.isKeyWordPicked("M")){Ne.next=37;break}return l=!0,Ne.abrupt("continue",12);case 37:if(W.getStatus()!==MrxDbgUiPrBaseReturn$1.kCancel){Ne.next=39;break}return Ne.abrupt("return",{v:void 0});case 39:if(D){Ne.next=41;break}return Ne.abrupt("continue",12);case 41:if(D.isValid()){Ne.next=43;break}return Ne.abrupt("continue",12);case 43:if(F=q(D),F){Ne.next=50;break}if(!l){Ne.next=49;break}return Ne.abrupt("continue",12);case 49:return Ne.abrupt("return",{v:void 0});case 50:if(re=D.getMcDbEntity(),re){Ne.next=57;break}if(!l){Ne.next=56;break}return Ne.abrupt("continue",12);case 56:return Ne.abrupt("return",{v:void 0});case 57:if(F instanceof McDbPolyline?(MxCpp.getCurrentMxCAD().drawEntity(F),D.erase()):(F.forEach(function(ze){MxCpp.getCurrentMxCAD().drawEntity(ze)}),re.visible=!0),!l){Ne.next=62;break}return Ne.abrupt("continue",12);case 62:return Ne.abrupt("return",{v:void 0});case 63:Ne.next=12;break;case 65:if(!G.isKeyWordPicked("D")){Ne.next=71;break}return Ne.next=68,_();case 68:if(Ne.sent){Ne.next=70;break}return Ne.abrupt("return",{v:void 0});case 70:return Ne.abrupt("return",0);case 71:if(!G.isKeyWordPicked("A")){Ne.next=77;break}return Ne.next=74,b();case 74:if(Ne.sent){Ne.next=76;break}return Ne.abrupt("return",{v:void 0});case 76:return Ne.abrupt("return",0);case 77:if(!G.isKeyWordPicked("T")){Ne.next=96;break}return le=new MxCADUiPrKeyWord,le.setMessage("\u8F93\u5165\u4FEE\u526A\u6A21\u5F0F\u9009\u9879<".concat(c?"\u4FEE\u526A":"\u4E0D\u4FEE\u526A",">")),le.setKeyWords("[\u4FEE\u526A(T)/\u4E0D\u4FEE\u526A(N)]"),Ne.next=83,le.go();case 83:if(fe=Ne.sent,le.getStatus()!==MrxDbgUiPrBaseReturn$1.kCancel){Ne.next=86;break}return Ne.abrupt("return",{v:void 0});case 86:if(le.getStatus()!==MrxDbgUiPrBaseReturn$1.kNone){Ne.next=88;break}return Ne.abrupt("return",0);case 88:if(fe){Ne.next=90;break}return Ne.abrupt("return",{v:void 0});case 90:if(fe.toLocaleLowerCase()!=="t"){Ne.next=93;break}return c=!0,Ne.abrupt("return",0);case 93:if(fe.toLocaleLowerCase()!=="n"){Ne.next=96;break}return c=!1,Ne.abrupt("return",0);case 96:if(!G.isKeyWordPicked("E")){Ne.next=115;break}return me=new MxCADUiPrKeyWord,me.setMessage("\u8F93\u5165\u526A\u5207\u65B9\u6CD5<".concat(s?"\u89D2\u5EA6":"\u8DDD\u79BB",">")),me.setKeyWords("[\u8DDD\u79BB(D)/\u89D2\u5EA6(A)]"),Ne.next=102,me.go();case 102:if(ye=Ne.sent,me.getStatus()!==MrxDbgUiPrBaseReturn$1.kCancel){Ne.next=105;break}return Ne.abrupt("return",{v:void 0});case 105:if(me.getStatus()!==MrxDbgUiPrBaseReturn$1.kNone){Ne.next=107;break}return Ne.abrupt("return",0);case 107:if(typeof ye=="string"){Ne.next=109;break}return Ne.abrupt("return",{v:void 0});case 109:if(ye.toLocaleLowerCase()!=="d"){Ne.next=112;break}return s=!1,Ne.abrupt("return",0);case 112:if(ye.toLocaleLowerCase()!=="a"){Ne.next=115;break}return s=!0,Ne.abrupt("return",0);case 115:if(!G.isKeyWordPicked("M")){Ne.next=118;break}return l=!0,Ne.abrupt("return",0);case 118:if(G.getStatus()!==MrxDbgUiPrBaseReturn$1.kCancel){Ne.next=120;break}return Ne.abrupt("return",{v:void 0});case 120:if(ne){Ne.next=122;break}return Ne.abrupt("return",0);case 122:if(ne.isValid()){Ne.next=124;break}return Ne.abrupt("return",0);case 124:if(Te=G.pickPoint(),ke=ne.getMcDbEntity(),ke){Ne.next=128;break}return Ne.abrupt("return",0);case 128:Le=new MxCADResbuf,Le.AddMcDbEntityTypes("LINE,LWPOLYLINE"),ke.highlight(!0),et=!1,G.setUserDraw(function(ze,Ke){var vt=ke.clone(),Ft=MxCADUtility.findEntAtPoint(ze.x,ze.y,ze.z,-1,Le);if(!!Ft&&!!Ft.isValid()){var Ot=Ft.getMcDbEntity();if(!!Ot){var _t=Ot==null?void 0:Ot.clone();if(!!_t&&_t instanceof McDbLine&&vt instanceof McDbLine){if(_t.startPoint.isEqualTo(vt.startPoint)&&_t.endPoint.isEqualTo(vt.endPoint))return;var Tn=_t.IntersectWith(vt,McDb.Intersect.kOnBothOperands);if(Tn.isEmpty())if(e===0&&r===0&&c){if(!w(vt,_t))return;copyAttribute(vt,ke),copyAttribute(_t,ke),Ke.drawMcDbEntity(vt),Ke.drawMcDbEntity(_t),et=!0}else{et=!1;return}else et=!1}}}});case 133:if(G.setMessage("\u9009\u62E9\u7B2C\u4E8C\u6761\u76F4\u7EBF\uFF0C\u6216\u6309\u4F4Fshift\u952E\u9009\u62E9\u76F4\u7EBF\u4EE5\u5E94\u7528\u89D2\u70B9"),G.setKeyWords("[\u8DDD\u79BB(D)/\u89D2\u5EA6(A)/\u65B9\u6CD5(M)]"),!G.isKeyWordPicked("D")){Ne.next=142;break}return Ne.next=139,_();case 139:if(Ne.sent){Ne.next=141;break}return Ne.abrupt("return",{v:void 0});case 141:return Ne.abrupt("continue",133);case 142:if(!G.isKeyWordPicked("A")){Ne.next=148;break}return Ne.next=145,b();case 145:if(Ne.sent){Ne.next=147;break}return Ne.abrupt("return",{v:void 0});case 147:return Ne.abrupt("continue",133);case 148:if(!G.isKeyWordPicked("M")){Ne.next=151;break}return l=!0,Ne.abrupt("continue",133);case 151:return Ne.next=153,G.go();case 153:if(it=Ne.sent,G.getStatus()!==MrxDbgUiPrBaseReturn$1.kCancel){Ne.next=156;break}return Ne.abrupt("return",{v:void 0});case 156:if(ke.highlight(!1),it){Ne.next=159;break}return Ne.abrupt("return",{v:void 0});case 159:if(it.isValid()){Ne.next=161;break}return Ne.abrupt("return",{v:void 0});case 161:if(Ue=it.getMcDbEntity(),Ue){Ne.next=164;break}return Ne.abrupt("return",{v:void 0});case 164:if(ht=ke,it.id!==ne.id){Ne.next=172;break}if(MxFun.acutPrintf("\u56FE\u5143\u65E0\u6CD5\u7528\u81EA\u8EAB\u5012\u89D2\u3002"),!l){Ne.next=171;break}return Ne.abrupt("continue",133);case 171:return Ne.abrupt("return",{v:void 0});case 172:if(Ue instanceof McDbLine&&ht instanceof McDbLine){Ne.next=179;break}if(MxFun.acutPrintf(`
  3425. \u76EE\u524D\u53EA\u652F\u6301\u76F4\u7EBF\u76F8\u4E92\u5012\u89D2\u548C\u591A\u4E49\u7EBF\u5012\u89D2`),!l){Ne.next=178;break}return Ne.abrupt("continue",133);case 178:return Ne.abrupt("break",231);case 179:if(!x(Ue,ht)){Ne.next=181;break}return Ne.abrupt("return",{v:MxFun.acutPrintf("\u5171\u7EBF\u76F4\u7EBF\u4E0D\u80FD\u4E3A \u5012\u89D2\u3002")});case 181:if(!et){Ne.next=187;break}G.drawReserve(),ne.erase(),it.erase(),Ne.next=224;break;case 187:if(De=G.pickPoint(),Be=ht.clone(),Be){Ne.next=195;break}if(!l){Ne.next=194;break}return Ne.abrupt("continue",133);case 194:return Ne.abrupt("return",{v:void 0});case 195:if(Ve=ht.clone(),Ve){Ne.next=202;break}if(!l){Ne.next=201;break}return Ne.abrupt("continue",133);case 201:return Ne.abrupt("return",{v:void 0});case 202:if(He=Be.IntersectWith(Ve,McDb.Intersect.kOnBothOperands),!He.isEmpty()){Ne.next=209;break}if(!l){Ne.next=208;break}return Ne.abrupt("continue",133);case 208:return Ne.abrupt("return",{v:void 0});case 209:if(gt=e,dn=r,!s){Ne.next=223;break}if(Ze=He.at(0),at=E(new McDbLine(Te,Ze),new McDbLine(Ze,De),n,o),typeof at=="number"){Ne.next=221;break}if(MxFun.acutPrintf(`
  3426. \u5012\u89D2\u89D2\u5EA6\u65E0\u6548\u3002`),!l){Ne.next=220;break}return Ne.abrupt("continue",133);case 220:return Ne.abrupt("return",{v:void 0});case 221:gt=n,dn=at;case 223:MxCpp.App.MxCADAssist.MxChamfer(ne.id,it.id,Te.x,Te.y,De.x,De.y,gt,dn,c);case 224:if(!l){Ne.next=228;break}return Ne.abrupt("continue",133);case 228:return Ne.abrupt("break",231);case 229:Ne.next=133;break;case 231:case"end":return Ne.stop()}},z)});case 15:return A.delegateYield(I(),"t0",17);case 17:if(O=A.t0,O!==0){A.next=20;break}return A.abrupt("continue",15);case 20:if(!O){A.next=22;break}return A.abrupt("return",O.v);case 22:A.next=15;break;case 24:case"end":return A.stop()}},t)})),_Mx_Chamfer.apply(this,arguments)}function Mx_Fillet(){return _Mx_Fillet.apply(this,arguments)}function _Mx_Fillet(){return _Mx_Fillet=_asyncToGenerator(regenerator.mark(function t(){var e,r,n,o,s,c,l,v,x,w,_,b,E,I,O,N,A,z,G,V;return regenerator.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:e=0,r=!0,n=!1,MxFun.acutPrintf("\u5F53\u524D\u8BBE\u7F6E: \u6A21\u5F0F = ".concat(r?"\u4FEE\u526A":"\u4E0D\u4FEE\u526A",", \u534A\u5F84 = ").concat(e.toFixed(4))),o=function(){var B=_asyncToGenerator(regenerator.mark(function q(){var D,F;return regenerator.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return D=new MxCADUiPrDist,D.setKeyWords("\u6307\u5B9A\u5706\u89D2\u534A\u5F84<".concat(e.toFixed(4),">")),le.next=4,D.go();case 4:if(F=le.sent,D.getStatus()!==MrxDbgUiPrBaseReturn$1.kCancel){le.next=7;break}return le.abrupt("return");case 7:if(D.getStatus()!==MrxDbgUiPrBaseReturn$1.kNone){le.next=9;break}return le.abrupt("return",e);case 9:if(typeof F=="number"){le.next=11;break}return le.abrupt("return");case 11:return e=F,le.abrupt("return",e);case 13:case"end":return le.stop()}},q)}));return function(){return B.apply(this,arguments)}}(),s=new MxCADUiPrEntity,c=new MxCADResbuf,c.AddMcDbEntityTypes("LINE,LWPOLYLINE");case 8:return s.setFilter(c),s.setMessage("\u9009\u62E9\u7B2C\u4E00\u4E2A\u5BF9\u8C61"),s.setKeyWords("[\u653E\u5F03(U)/\u591A\u6BB5\u7EBF(P)/\u534A\u5F84(R)/\u4FEE\u526A(T)/\u591A\u4E2A(M)]"),W.next=14,s.go();case 14:if(x=W.sent,s.getStatus()!==MrxDbgUiPrBaseReturn$1.kCancel){W.next=17;break}return W.abrupt("return");case 17:if(!s.isKeyWordPicked("U")){W.next=19;break}return W.abrupt("continue",8);case 19:if(!s.isKeyWordPicked("P")){W.next=32;break}w=regenerator.mark(function B(){var q,D,F,re,le,fe,me,ye,Te,ke,Le,et,it,Ue,ht,De,Be,Ve,He,gt,dn,Ze,at,Lt,Ne,ze,Ke,vt,Ft,Ot,_t;return regenerator.wrap(function(on){for(;;)switch(on.prev=on.next){case 0:return s.setMessage("\u9009\u62E9\u4E8C\u7EF4\u591A\u6BB5\u7EBF"),s.setKeyWords("[\u534A\u5F84(R)]"),q=new MxCADResbuf,q.AddMcDbEntityTypes("LWPOLYLINE"),s.setFilter(q),on.next=7,s.go();case 7:if(D=on.sent,s.getStatus()!==MrxDbgUiPrBaseReturn$1.kCancel){on.next=10;break}return on.abrupt("return",{v:void 0});case 10:if(!s.isKeyWordPicked("R")){on.next=17;break}return on.next=13,o();case 13:if(on.t0=_typeof$2(on.sent),on.t0==="number"){on.next=16;break}return on.abrupt("return",{v:void 0});case 16:return on.abrupt("return",0);case 17:if(D){on.next=19;break}return on.abrupt("return",{v:void 0});case 19:if(D.isValid()){on.next=21;break}return on.abrupt("return",{v:void 0});case 21:if(F=D.getMcDbEntity(),F instanceof McDbPolyline){on.next=24;break}return on.abrupt("return",{v:void 0});case 24:re=F.numVerts(),le=0,fe=0,me=[],F.isClosed||re--;case 29:if(!(le<re)){on.next=86;break}if(le++,fe>re-1&&(fe=0),ye=F.getPointAt(fe),Te=ye.val,Te){on.next=39;break}if(!n){on.next=38;break}return on.abrupt("return",1);case 38:return on.abrupt("return",{v:void 0});case 39:if(fe++,fe>re-1&&(fe=0),ke=F.getPointAt(fe),Le=ke.val,Le){on.next=48;break}if(!n){on.next=47;break}return on.abrupt("return",1);case 47:return on.abrupt("return",{v:void 0});case 48:if(fe++,fe>re-1&&(fe=0),et=F.getPointAt(fe),it=et.val,it){on.next=57;break}if(!n){on.next=56;break}return on.abrupt("return",1);case 56:return on.abrupt("return",{v:void 0});case 57:if(fe=le,Ue=Te.sub(Le).angleTo1(Le.sub(it))/2,ht=Math.PI/2-Ue,De=e/Math.cos(Ue)*Math.sin(ht),Be=Le.clone().addvec(Le.sub(Te).normalize().mult(-De)),Ve=Le.clone().addvec(Le.sub(it).normalize().mult(-De)),He=Be.clone().addvec(Te.sub(Le).rotateBy(Math.PI/2).normalize().mult(e)),gt=He.clone().addvec(it.sub(He).normalize().mult(e)),!r){on.next=80;break}if(dn=MxCADUtility.calcBulge(Be,gt,Ve).val,Ze=F.getWidthsAt(le),at=Ze.ret,Lt=Ze.val1,Ne=Ze.val2,at){on.next=76;break}if(!F.isClosed){on.next=75;break}if(ze=F.getWidthsAt(0),Ke=ze.ret,vt=ze.val1,Ft=ze.val2,Ke){on.next=73;break}return on.abrupt("continue",29);case 73:me.push({width:vt,width1:Ft,bulge:dn,point:Be}),me.unshift({width:vt,width1:Ft,bulge:F.getBulgeAt(0),point:Ve});case 75:return on.abrupt("continue",29);case 76:me.push({width:Lt,width1:Ne,bulge:dn,point:Be}),me.push({width:Lt,width1:Ne,bulge:F.getBulgeAt(le),point:Ve}),on.next=84;break;case 80:Ot=new McDbArc,Ot.computeArc(Be.x,Be.y,gt.x,gt.y,Ve.x,Ve.y),copyAttribute(Ot,F),MxCpp.getCurrentMxCAD().drawEntity(Ot);case 84:on.next=29;break;case 86:if(r&&(_t=new McDbPolyline,_t.constantWidth=F.constantWidth,_t.isClosed=F.isClosed,me.forEach(function($n){var Zt=$n.point,Et=$n.bulge,rn=$n.width,wt=$n.width1;_t.addVertexAt(Zt,Et,rn,wt)}),copyAttribute(_t,F),MxCpp.getCurrentMxCAD().drawEntity(_t),D.erase()),!n){on.next=91;break}return on.abrupt("return",0);case 91:return on.abrupt("return",{v:void 0});case 92:case"end":return on.stop()}},B)});case 21:return W.delegateYield(w(),"t0",23);case 23:if(_=W.t0,_!==0){W.next=26;break}return W.abrupt("continue",21);case 26:if(_!==1){W.next=28;break}return W.abrupt("continue",21);case 28:if(!_){W.next=30;break}return W.abrupt("return",_.v);case 30:W.next=21;break;case 32:if(!s.isKeyWordPicked("R")){W.next=39;break}return W.next=35,o();case 35:if(W.t1=_typeof$2(W.sent),W.t1==="number"){W.next=38;break}return W.abrupt("return");case 38:return W.abrupt("continue",8);case 39:if(!s.isKeyWordPicked("T")){W.next=58;break}return b=new MxCADUiPrKeyWord,b.setMessage("\u8F93\u5165\u526A\u5207\u6A21\u5F0F\u9009\u9879<".concat(r?"\u4FEE\u526A":"\u4E0D\u4FEE\u526A",">")),b.setKeyWords("[\u4FEE\u526A(T)/\u4E0D\u4FEE\u526A(N)]"),W.next=45,b.go();case 45:if(E=W.sent,b.getStatus()!==MrxDbgUiPrBaseReturn$1.kCancel){W.next=48;break}return W.abrupt("return");case 48:if(b.getStatus()!==MrxDbgUiPrBaseReturn$1.kNone){W.next=50;break}return W.abrupt("continue",8);case 50:if(typeof E=="string"){W.next=52;break}return W.abrupt("return");case 52:if(E.toLocaleLowerCase()!=="t"){W.next=55;break}return r=!0,W.abrupt("continue",8);case 55:if(E.toLocaleLowerCase()!=="n"){W.next=58;break}return r=!1,W.abrupt("continue",8);case 58:if(!s.isKeyWordPicked("M")){W.next=61;break}return n=!0,W.abrupt("continue",8);case 61:if(x){W.next=67;break}if(!n){W.next=66;break}return W.abrupt("continue",8);case 66:return W.abrupt("return");case 67:if(x.isValid()){W.next=73;break}if(!n){W.next=72;break}return W.abrupt("continue",8);case 72:return W.abrupt("return");case 73:return I=s.pickPoint(),O=new MxCADResbuf,O.AddMcDbEntityTypes("LINE,LWPOLYLINE"),N=new MxCADUiPrEntity,N.setFilter(O),(l=x.getMcDbEntity())===null||l===void 0||l.highlight(!0),A=new MxCADUiPrEntity,A.setFilter(O),A.setMessage("\u9009\u62E9\u7B2C\u4E8C\u6761\u76F4\u7EBF"),W.next=84,A.go();case 84:if(z=W.sent,G=A.pickPoint(),z.isValid()){W.next=93;break}if(!n){W.next=91;break}return W.abrupt("continue",8);case 91:return(V=x.getMcDbEntity())===null||V===void 0||V.highlight(!1),W.abrupt("return");case 93:if((v=x.getMcDbEntity())===null||v===void 0||v.highlight(!1),z.id!==x.id){W.next=102;break}if(MxFun.acutPrintf(`
  3427. \u56FE\u5143\u65E0\u6CD5\u7528\u81EA\u8EAB\u5706\u89D2`),!n){W.next=101;break}return W.abrupt("continue",8);case 101:return W.abrupt("return");case 102:if(MxCpp.App.MxCADAssist.MxFillet(x.id,z.id,I.x,I.y,G.x,G.y,e,r),!n){W.next=107;break}return W.abrupt("continue",8);case 107:return W.abrupt("return");case 108:W.next=8;break;case 110:case"end":return W.stop()}},t)})),_Mx_Fillet.apply(this,arguments)}var getHurdleSelectionPoints=function(){var t=_asyncToGenerator(regenerator.mark(function e(){var r,n,o,s;return regenerator.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:r=[];case 1:return n=new MxCADUiPrPoint,n.setMessage(r.length===0?"\u6307\u5B9A\u7B2C\u4E00\u4E2A\u680F\u9009\u70B9":"\u6307\u5B9A\u4E0B\u4E00\u4E2A\u680F\u9009\u70B9"),n.setKeyWords(r.length===0?"":"[\u653E\u5F03(U)]"),n.setUserDraw(function(v,x){var w=new McDbPolyline;r.forEach(function(_){w.addVertexAt(_)}),w.addVertexAt(v),x.drawMcDbEntity(w)}),l.next=8,n.go();case 8:if(o=l.sent,!n.isKeyWordPicked("U")){l.next=13;break}return s=r.pop(),s&&n.setLastInputPoint(s),l.abrupt("continue",1);case 13:if(n.getStatus()!==MrxDbgUiPrBaseReturn$1.kCancel){l.next=15;break}return l.abrupt("return",!1);case 15:if(n.getStatus()!==MrxDbgUiPrBaseReturn$1.kNone){l.next=17;break}return l.abrupt("break",22);case 17:if(o){l.next=19;break}return l.abrupt("return",r);case 19:r.push(o),l.next=1;break;case 22:return l.abrupt("return",r);case 23:case"end":return l.stop()}},e)}));return function(){return t.apply(this,arguments)}}();function Mx_Trim(){return _Mx_Trim.apply(this,arguments)}function _Mx_Trim(){return _Mx_Trim=_asyncToGenerator(regenerator.mark(function t(){var e,r,n,o,s,c,l,v,x,w,_,b,E,I,O;return regenerator.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:if(e=!1,r=!1,n=[],o=new MxCADResbuf,o.AddMcDbEntityTypes("LINE,LWPOLYLINE,ELLIPSE,ARC,CIRCLE,SPLINE,XLINE"),l=MxCADUtility.getCurrentSelect(o),l.length!==0){A.next=16;break}return A.next=10,MxCADUtility.userSelect("\u9009\u62E9\u5BF9\u8C61\u6216<\u5168\u90E8\u9009\u62E9>",o,function(z,G){s=G,c=z});case 10:if(l=A.sent,s.getStatus()!==MrxDbgUiPrBaseReturn$1.kCancel){A.next=13;break}return A.abrupt("return");case 13:if(s.getStatus()===MrxDbgUiPrBaseReturn$1.kNone&&l.length===0&&(c.allSelect(o),c.forEach(function(z){l.push(z)})),l.length!==0){A.next=16;break}return A.abrupt("return");case 16:if(v=new McGeLongArray,v.copyFormAryId(l),x=new MxCpp.mxcadassemblyimp.MxDrawTrimAssist,x.Init(v.imp)){A.next=21;break}return A.abrupt("return");case 21:if(w=new MxCpp.mxcadassemblyimp.MxDrawExtendAssist,w.Init(v.imp)){A.next=24;break}return A.abrupt("return");case 24:_=!1,b=function(G){_=G.key==="Shift"},window.addEventListener("keydown",b),E=function(){return _=!1},window.addEventListener("keyup",E),I=regenerator.mark(function z(){var G,V,ne,W,B,q,D,F,re,le,fe,me,ye,Te,ke,Le,et;return regenerator.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return G=new MxCADSelectionSet,G.isWhileSelect=!1,G.isSelectHighlight=!1,Ue.next=5,G.userSelect("\u9009\u62E9\u8981\u4FEE\u526A\u7684\u5BF9\u8C61\u6216\u6309\u4F4F Shift \u952E\u9009\u62E9\u8981\u5EF6\u4F38\u7684\u5BF9\u8C61",o,function(ht){V=ht,V.setKeyWords("[\u680F\u9009(F)/\u7A97\u4EA4(C)/\u8FB9(E)/\u5220\u9664(R)".concat(n.length>0?"/\u653E\u5F03(U)":"","]"))});case 5:if(Ue.sent){Ue.next=7;break}return Ue.abrupt("return",0);case 7:if(!V.isKeyWordPicked("F")){Ue.next=18;break}return Ue.next=10,getHurdleSelectionPoints();case 10:if(ne=Ue.sent,ne){Ue.next=13;break}return Ue.abrupt("return",0);case 13:return W=new McDbPolyline,ne.forEach(function(ht){W.addVertexAt(ht)}),n.push([l,l.map(function(ht){return ht.clone()})]),l.forEach(function(ht){var De=ht.getMcDbEntity();if(De instanceof McDbCurve){var Be=De.IntersectWith(W,McDb.Intersect.kOnBothOperands);Be.isEmpty()||Be.forEach(function(Ve){v.copyFormAryId([ht]),_?w.DoExtend(v.imp,Ve.x,Ve.y,Ve.x,Ve.y):x.DoTrim(v.imp,Ve.x,Ve.y,Ve.x,Ve.y)})}}),Ue.abrupt("return",1);case 18:if(!V.isKeyWordPicked("C")){Ue.next=21;break}return e=!0,Ue.abrupt("return",1);case 21:if(!V.isKeyWordPicked("E")){Ue.next=39;break}return B=new MxCADUiPrKeyWord,B.setMessage("\u6307\u5B9A\u9690\u542B\u8FB9\u5EF6\u4F38\u6A21\u5F0F<".concat(r?"\u5EF6\u4F38":"\u4E0D\u5EF6\u4F38",">")),B.setKeyWords("[\u5EF6\u4F38(E)/\u4E0D\u5EF6\u4F38(N)]"),Ue.next=27,B.go();case 27:if(q=B.keyWordPicked(),B.getStatus()!==MrxDbgUiPrBaseReturn$1.kCancel){Ue.next=30;break}return Ue.abrupt("return",{v:void 0});case 30:if(B.getStatus()!==MrxDbgUiPrBaseReturn$1.kNone){Ue.next=32;break}return Ue.abrupt("return",1);case 32:if(B.getStatus()!==MrxDbgUiPrBaseReturn$1.kKeyWord){Ue.next=39;break}if(q!=="E"){Ue.next=36;break}return r=!0,Ue.abrupt("return",1);case 36:if(q!=="N"){Ue.next=39;break}return r=!1,Ue.abrupt("return",1);case 39:if(!V.isKeyWordPicked("R")){Ue.next=46;break}return Ue.next=42,MxCADUtility.userSelect("\u9009\u62E9\u8981\u5220\u9664\u7684\u5BF9\u8C61",o);case 42:return D=Ue.sent,n.push([D,D.map(function(ht){return ht.clone()})]),D.forEach(function(ht){ht.erase()}),Ue.abrupt("return",1);case 46:if(!V.isKeyWordPicked("U")){Ue.next=52;break}return F=n.pop()||[],re=_slicedToArray$1(F,2),le=re[0],fe=re[1],le==null||le.forEach(function(ht){ht.erase()}),me=MxCpp.getCurrentMxCAD(),fe==null||fe.forEach(function(ht){ht instanceof McDbEntity&&me.drawEntity(ht)}),Ue.abrupt("return",1);case 52:if(ye=G.getIds(),ye.length!=0){Ue.next=55;break}return Ue.abrupt("return",1);case 55:if(Te=G.getSelectPoint(),!e){Ue.next=67;break}return ke=Te.pt1,Le=Te.pt2,et=new McDbPolyline,et.addVertexAt(ke),et.addVertexAt(new McGePoint3d(ke.x,Le.y)),et.addVertexAt(Le),et.addVertexAt(new McGePoint3d(Le.x,ke.y)),et.isClosed=!0,n.push([l,l.map(function(ht){return ht.clone()})]),l.forEach(function(ht){var De=ht.getMcDbEntity();if(De instanceof McDbCurve){var Be=De.IntersectWith(et,McDb.Intersect.kOnBothOperands);Be.isEmpty()||Be.forEach(function(Ve){v.copyFormAryId([ht]),_?w.DoExtend(v.imp,Ve.x,Ve.y,Ve.x,Ve.y):x.DoTrim(v.imp,Ve.x,Ve.y,Ve.x,Ve.y)})}}),Ue.abrupt("return",1);case 67:n.push([ye,l.map(function(ht){return ht.clone()})]),v.copyFormAryId(ye),_?w.DoExtend(v.imp,Te.pt1.x,Te.pt1.y,Te.pt2.x,Te.pt2.y):x.DoTrim(v.imp,Te.pt1.x,Te.pt1.y,Te.pt2.x,Te.pt2.y);case 70:case"end":return Ue.stop()}},z)});case 30:return A.delegateYield(I(),"t0",32);case 32:if(O=A.t0,O!==0){A.next=35;break}return A.abrupt("break",41);case 35:if(O!==1){A.next=37;break}return A.abrupt("continue",30);case 37:if(!O){A.next=39;break}return A.abrupt("return",O.v);case 39:A.next=30;break;case 41:window.removeEventListener("keydown",b),window.removeEventListener("keyup",E),x.UnInit(),w.UnInit();case 45:case"end":return A.stop()}},t)})),_Mx_Trim.apply(this,arguments)}function Mx_Extend(){return _Mx_Extend.apply(this,arguments)}function _Mx_Extend(){return _Mx_Extend=_asyncToGenerator(regenerator.mark(function t(){var e,r,n,o,s,c,l,v,x,w,_,b,E,I,O;return regenerator.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:if(e=new MxCADResbuf,r=!1,s=!1,e.AddMcDbEntityTypes("LINE,LWPOLYLINE,ARC"),c=MxCADUtility.getCurrentSelect(e),c.length!==0){A.next=15;break}return A.next=9,MxCADUtility.userSelect("\u9009\u62E9\u5BF9\u8C61\u6216<\u5168\u90E8\u9009\u62E9>",e,function(z,G){n=G,o=z});case 9:if(c=A.sent,n.getStatus()!==MrxDbgUiPrBaseReturn$1.kCancel){A.next=12;break}return A.abrupt("return");case 12:if(n.getStatus()===MrxDbgUiPrBaseReturn$1.kNone&&c.length===0&&(o.allSelect(e),o.forEach(function(z){c.push(z)})),c.length!==0){A.next=15;break}return A.abrupt("return");case 15:if(l=new McGeLongArray,l.copyFormAryId(c),v=new MxCpp.mxcadassemblyimp.MxDrawExtendAssist,v.Init(l.imp)){A.next=20;break}return A.abrupt("return");case 20:if(x=new MxCpp.mxcadassemblyimp.MxDrawTrimAssist,x.Init(l.imp)){A.next=23;break}return A.abrupt("return");case 23:w=[],_=!1,b=function(G){_=G.key==="Shift"},window.addEventListener("keydown",b),E=function(){return _=!1},window.addEventListener("keyup",E),I=regenerator.mark(function z(){var G,V,ne,W,B,q,D,F,re,le,fe,me,ye,Te,ke,Le;return regenerator.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:return G=new MxCADSelectionSet,G.isWhileSelect=!1,G.isSelectHighlight=!1,it.next=5,G.userSelect("\u9009\u62E9\u8981\u5EF6\u4F38\u7684\u5BF9\u8C61\u6216\u6309\u4F4F Shift \u952E\u9009\u62E9\u8981\u4FEE\u526A\u7684\u5BF9\u8C61",e,function(Ue){V=Ue,V.setKeyWords("[\u680F\u9009(F)/\u7A97\u4EA4(C)/\u8FB9(E)".concat(w.length>0?"/\u653E\u5F03(U)":"","]"))});case 5:if(it.sent){it.next=7;break}return it.abrupt("return",0);case 7:if(!V.isKeyWordPicked("F")){it.next=18;break}return it.next=10,getHurdleSelectionPoints();case 10:if(ne=it.sent,ne){it.next=13;break}return it.abrupt("return",0);case 13:return W=new McDbPolyline,ne.forEach(function(Ue){W.addVertexAt(Ue)}),w.push([c,c.map(function(Ue){return Ue.clone()})]),c.forEach(function(Ue){var ht=Ue.getMcDbEntity();if(ht instanceof McDbCurve){var De=ht.IntersectWith(W,McDb.Intersect.kOnBothOperands);De.isEmpty()||De.forEach(function(Be){l.copyFormAryId([Ue]),_?x.DoTrim(l.imp,Be.x,Be.y,Be.x,Be.y):v.DoExtend(l.imp,Be.x,Be.y,Be.x,Be.y)})}}),it.abrupt("return",1);case 18:if(!V.isKeyWordPicked("C")){it.next=21;break}return r=!0,it.abrupt("return",1);case 21:if(!V.isKeyWordPicked("E")){it.next=39;break}return B=new MxCADUiPrKeyWord,B.setMessage("\u6307\u5B9A\u9690\u542B\u8FB9\u5EF6\u4F38\u6A21\u5F0F<".concat(s?"\u5EF6\u4F38":"\u4E0D\u5EF6\u4F38",">")),B.setKeyWords("[\u5EF6\u4F38(E)/\u4E0D\u5EF6\u4F38(N)]"),it.next=27,B.go();case 27:if(q=B.keyWordPicked(),B.getStatus()!==MrxDbgUiPrBaseReturn$1.kCancel){it.next=30;break}return it.abrupt("return",{v:void 0});case 30:if(B.getStatus()!==MrxDbgUiPrBaseReturn$1.kNone){it.next=32;break}return it.abrupt("return",1);case 32:if(B.getStatus()!==MrxDbgUiPrBaseReturn$1.kKeyWord){it.next=39;break}if(q!=="E"){it.next=36;break}return s=!0,it.abrupt("return",1);case 36:if(q!=="N"){it.next=39;break}return s=!1,it.abrupt("return",1);case 39:if(!V.isKeyWordPicked("U")){it.next=46;break}return D=w.pop()||[],F=_slicedToArray$1(D,2),re=F[0],le=F[1],console.log(re),re==null||re.forEach(function(Ue){Ue.erase()}),fe=MxCpp.getCurrentMxCAD(),le==null||le.forEach(function(Ue){Ue instanceof McDbEntity&&fe.drawEntity(Ue)}),it.abrupt("return",1);case 46:if(me=G.getIds(),me.length!=0){it.next=49;break}return it.abrupt("return",1);case 49:if(ye=G.getSelectPoint(),!r){it.next=61;break}return Te=ye.pt1,ke=ye.pt2,Le=new McDbPolyline,Le.addVertexAt(Te),Le.addVertexAt(new McGePoint3d(Te.x,ke.y)),Le.addVertexAt(ke),Le.addVertexAt(new McGePoint3d(ke.x,Te.y)),Le.isClosed=!0,w.push([c,c.map(function(Ue){return Ue.clone()})]),c.forEach(function(Ue){var ht=Ue.getMcDbEntity();if(ht instanceof McDbCurve){var De=ht.IntersectWith(Le,McDb.Intersect.kOnBothOperands);De.isEmpty()||De.forEach(function(Be){l.copyFormAryId([Ue]),_?x.DoTrim(l.imp,Be.x,Be.y,Be.x,Be.y):v.DoExtend(l.imp,Be.x,Be.y,Be.x,Be.y)})}}),it.abrupt("return",1);case 61:w.push([me,c.map(function(Ue){return Ue.clone()})]),l.copyFormAryId(me),_?x.DoTrim(l.imp,ye.pt1.x,ye.pt1.y,ye.pt2.x,ye.pt2.y):v.DoExtend(l.imp,ye.pt1.x,ye.pt1.y,ye.pt2.x,ye.pt2.y);case 64:case"end":return it.stop()}},z)});case 30:return A.delegateYield(I(),"t0",32);case 32:if(O=A.t0,O!==0){A.next=35;break}return A.abrupt("break",41);case 35:if(O!==1){A.next=37;break}return A.abrupt("continue",30);case 37:if(!O){A.next=39;break}return A.abrupt("return",O.v);case 39:A.next=30;break;case 41:window.removeEventListener("keydown",b),window.removeEventListener("keyup",E),x.UnInit(),v.UnInit();case 45:case"end":return A.stop()}},t)})),_Mx_Extend.apply(this,arguments)}function Mx_Explode(){return _Mx_Explode.apply(this,arguments)}function _Mx_Explode(){return _Mx_Explode=_asyncToGenerator(regenerator.mark(function t(){var e,r,n;return regenerator.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return e=new MxCADResbuf,e.AddMcDbEntityTypes("INSERT,MTEXT,ROTATEDDIMENSION,ALIGNEDDIMENSION,DIMENSION,LWPOLYLINE"),s.next=4,MxCADUtility.userSelect("\u9009\u62E9\u5206\u89E3\u5BF9\u8C61",e);case 4:if(r=s.sent,r.length!=0){s.next=7;break}return s.abrupt("return");case 7:n=new McGeLongArray,n.copyFormAryId(r),MxCpp.App.MxCADAssist.MxExplode(n.imp);case 10:case"end":return s.stop()}},t)})),_Mx_Explode.apply(this,arguments)}function Mx_Join(){return _Mx_Join.apply(this,arguments)}function _Mx_Join(){return _Mx_Join=_asyncToGenerator(regenerator.mark(function t(){var e,r,n;return regenerator.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return e=new MxCADResbuf,e.AddMcDbEntityTypes("LWPOLYLINE,ARC,LINE"),s.next=4,MxCADUtility.userSelect("\u9009\u62E9\u8981\u5408\u5E76\u7684\u5BF9\u8C61",e);case 4:if(r=s.sent,r.length!=0){s.next=7;break}return s.abrupt("return");case 7:n=new McGeLongArray,n.copyFormAryId(r),MxCpp.App.MxCADAssist.MxJoin(n.imp);case 10:case"end":return s.stop()}},t)})),_Mx_Join.apply(this,arguments)}function Mx_Break(){return _Mx_Break.apply(this,arguments)}function _Mx_Break(){return _Mx_Break=_asyncToGenerator(regenerator.mark(function t(){var e,r,n,o,s,c,l;return regenerator.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return e=new MxCADResbuf,e.AddMcDbEntityTypes("LWPOLYLINE,ARC,LINE,CIRCLE"),r=new MxCADUiPrEntity,r.setFilter(e),r.setMessage("\u9009\u62E9\u8981\u6253\u65AD\u7684\u5BF9\u8C61"),x.next=7,r.go();case 7:if(n=x.sent,n.isValid()){x.next=10;break}return x.abrupt("return");case 10:if(o=n.getMcDbCurve(),o){x.next=13;break}return x.abrupt("return");case 13:s=r.pickPoint(),o.highlight(!0),c=regenerator.mark(function w(){var _,b,E,I,O,N,A,z,G,V,ne,W,B,q,D,F,re,le;return regenerator.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return _=new MxCADUiPrPoint,_.setMessage(`
  3428. \u6307\u5B9A\u7B2C\u4E8C\u4E2A\u6253\u65AD\u70B9`),_.setKeyWords("[\u7B2C\u4E00\u70B9(F)/\u6253\u65AD\u957F\u5EA6(D)/\u4E2D\u70B9\u6253\u65AD(M)/\u4EA4\u70B9\u6253\u65AD(I)]"),_.setUserDraw(function(ye,Te){var ke=o==null?void 0:o.clone();if(!!ke&&ke instanceof McDbCurve){var Le=[];Le.push(s),Le.push(ye);var et=ke.splitCurves(Le);et.empty()||et.forEach(function(it,Ue){Ue%2==0&&Te.drawMcDbEntity(it)})}}),me.next=6,_.go();case 6:if(b=me.sent,!_.isKeyWordPicked("F")){me.next=17;break}return _.setMessage("\u6307\u5B9A\u7B2C\u4E00\u4E2A\u6253\u65AD\u70B9"),_.setKeyWords(""),me.next=12,_.go();case 12:if(E=me.sent,E){me.next=15;break}return me.abrupt("return",{v:void 0});case 15:return s=E,me.abrupt("return",0);case 17:if(I=!1,!_.isKeyWordPicked("D")){me.next=33;break}return O=new MxCADUiPrDist,O.setMessage("\u8F93\u5165\u6253\u65AD\u957F\u5EA6"),O.setKeyWords(""),me.next=24,O.go();case 24:if(N=me.sent,typeof N=="number"){me.next=27;break}return me.abrupt("return",{v:void 0});case 27:if(s=o.getStartPoint().val,A=o.getPointAtDist(N),z=A.val,G=A.ret,G){me.next=31;break}return me.abrupt("return",{v:MxFun.acutPrintf(`
  3429. \u6253\u65AD\u957F\u5EA6\u4E0D\u6B63\u786E`)});case 31:b=z,I=!0;case 33:if(!_.isKeyWordPicked("M")){me.next=40;break}if(s=o.getStartPoint().val,V=o.getPointAtDist(o.getLength().val/2),ne=V.val,W=V.ret,W){me.next=38;break}return me.abrupt("return",{v:void 0});case 38:b=ne,I=!0;case 40:if(!_.isKeyWordPicked("I")){me.next=56;break}return me.next=43,MxCADUtility.userSelect("\u9009\u62E9\u76F8\u4EA4\u66F2\u7EBF");case 43:if(B=me.sent,q=o.clone(),D=[],B.forEach(function(ye){if(q instanceof McDbCurve){var Te=ye.clone();if(Te instanceof McDbCurve){var ke=q.IntersectWith(Te,McDb.Intersect.kOnBothOperands);ke.isEmpty()||ke.forEach(function(Le){return D.push(Le)})}}}),D.length!==0){me.next=49;break}return me.abrupt("return",{v:MxFun.acutPrintf(`
  3430. \u4EA4\u70B9\u4E3A\u7A7A`)});case 49:if(F=o.splitCurves(D),!F.empty()){me.next=53;break}return o.highlight(!1),me.abrupt("return",{v:void 0});case 53:return F.forEach(function(ye){ye instanceof McDbEntity&&(o&&copyAttribute(ye,o),MxCpp.getCurrentMxCAD().drawEntity(ye))}),o.erase(),me.abrupt("return",1);case 56:if(b){me.next=59;break}return o.highlight(!1),me.abrupt("return",{v:void 0});case 59:if(re=[],re.push(s),re.push(b),le=o.splitCurves(re),!le.empty()){me.next=66;break}return o.highlight(!1),me.abrupt("return",{v:void 0});case 66:return le.forEach(function(ye,Te){ye instanceof McDbEntity&&(o&&copyAttribute(ye,o),(Te%2==0||I)&&MxCpp.getCurrentMxCAD().drawEntity(ye))}),o.erase(),me.abrupt("return",1);case 69:case"end":return me.stop()}},w)});case 16:return x.delegateYield(c(),"t0",18);case 18:if(l=x.t0,l!==0){x.next=21;break}return x.abrupt("continue",16);case 21:if(l!==1){x.next=23;break}return x.abrupt("break",27);case 23:if(!l){x.next=25;break}return x.abrupt("return",l.v);case 25:x.next=16;break;case 27:case"end":return x.stop()}},t)})),_Mx_Break.apply(this,arguments)}function Mx_DrawOrderTopmost(){return _Mx_DrawOrderTopmost.apply(this,arguments)}function _Mx_DrawOrderTopmost(){return _Mx_DrawOrderTopmost=_asyncToGenerator(regenerator.mark(function t(){var e,r,n;return regenerator.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return e=new MxCADSelectionSet,s.next=3,e.userSelect(`
  3431. \u9009\u62E9\u5BF9\u8C61`);case 3:if(s.sent){s.next=5;break}return s.abrupt("return");case 5:r=MxCpp.getCurrentDatabase().currentSpace.getMinMaxDrawOrder(),n=r.maxDrawOrder+1,e.forEach(function(c){var l=c.getMcDbEntity();l&&(l.drawOrder=n)});case 8:case"end":return s.stop()}},t)})),_Mx_DrawOrderTopmost.apply(this,arguments)}function Mx_DrawOrderButtomost(){return _Mx_DrawOrderButtomost.apply(this,arguments)}function _Mx_DrawOrderButtomost(){return _Mx_DrawOrderButtomost=_asyncToGenerator(regenerator.mark(function t(){var e,r,n;return regenerator.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return e=new MxCADSelectionSet,s.next=3,e.userSelect(`
  3432. \u9009\u62E9\u5BF9\u8C61`);case 3:if(s.sent){s.next=5;break}return s.abrupt("return");case 5:r=MxCpp.getCurrentDatabase().currentSpace.getMinMaxDrawOrder(),n=r.minDrawOrder-1,e.forEach(function(c){var l=c.getMcDbEntity();l&&(l.drawOrder=n)});case 8:case"end":return s.stop()}},t)})),_Mx_DrawOrderButtomost.apply(this,arguments)}function Mx_DrawOrderTop(){return _Mx_DrawOrderTop.apply(this,arguments)}function _Mx_DrawOrderTop(){return _Mx_DrawOrderTop=_asyncToGenerator(regenerator.mark(function t(){var e,r,n,o,s;return regenerator.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return e=new MxCADSelectionSet,l.next=3,e.userSelect(`
  3433. \u9009\u62E9\u5BF9\u8C61`);case 3:if(l.sent){l.next=5;break}return l.abrupt("return");case 5:if(!e.isNull()){l.next=7;break}return l.abrupt("return");case 7:return r=new MxCADUiPrEntity,r.setMessage("\u9009\u62E9\u53C2\u7167\u5BF9\u8C61"),l.next=11,r.go();case 11:if(n=l.sent,!n.isNull()){l.next=14;break}return l.abrupt("return");case 14:if(o=n.getMcDbEntity(),o){l.next=17;break}return l.abrupt("return");case 17:s=o.drawOrder+1,e.forEach(function(v){var x=v.getMcDbEntity();x&&(x.drawOrder=s)});case 19:case"end":return l.stop()}},t)})),_Mx_DrawOrderTop.apply(this,arguments)}function Mx_DrawOrderButtom(){return _Mx_DrawOrderButtom.apply(this,arguments)}function _Mx_DrawOrderButtom(){return _Mx_DrawOrderButtom=_asyncToGenerator(regenerator.mark(function t(){var e,r,n,o,s;return regenerator.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return e=new MxCADSelectionSet,l.next=3,e.userSelect(`
  3434. \u9009\u62E9\u5BF9\u8C61`);case 3:if(l.sent){l.next=5;break}return l.abrupt("return");case 5:if(!e.isNull()){l.next=7;break}return l.abrupt("return");case 7:return r=new MxCADUiPrEntity,r.setMessage("\u9009\u62E9\u53C2\u7167\u5BF9\u8C61"),l.next=11,r.go();case 11:if(n=l.sent,!n.isNull()){l.next=14;break}return l.abrupt("return");case 14:if(o=n.getMcDbEntity(),o){l.next=17;break}return l.abrupt("return");case 17:s=o.drawOrder-1,e.forEach(function(v){var x=v.getMcDbEntity();x&&(x.drawOrder=s)});case 19:case"end":return l.stop()}},t)})),_Mx_DrawOrderButtom.apply(this,arguments)}MxFun.on("init",function(){MxFun.addCommand("Mx_Erase",Mx_Erase),MxFun.addCommand("Mx_Copy",Mx_Copy),MxFun.addCommand("Mx_Move",Mx_Move),MxFun.addCommand("Mx_Rotate",Mx_Rotate),MxFun.addCommand("Mx_Scale",Mx_Scale),MxFun.addCommand("Mx_WindowZoom",Mx_WindowZoom),MxFun.addCommand("Mx_ZoomE",Mx_ZoomE),MxFun.addCommand("Mx_Plan90CW",Mx_Plan90CW),MxFun.addCommand("Mx_Offset",Mx_Offset),MxFun.addCommand("Mx_Regen",Mx_Regen),MxFun.addCommand("Mx_Mirror",Mx_Mirror),MxFun.addCommand("Mx_Chamfer",Mx_Chamfer),MxFun.addCommand("Mx_Fillet",Mx_Fillet),MxFun.addCommand("Mx_Trim",Mx_Trim),MxFun.addCommand("Mx_Extend",Mx_Extend),MxFun.addCommand("Mx_Explode",Mx_Explode),MxFun.addCommand("Mx_Join",Mx_Join),MxFun.addCommand("Mx_Break",Mx_Break),MxFun.addCommand("Mx_DrawOrderTopmost",Mx_DrawOrderTopmost),MxFun.addCommand("Mx_DrawOrderButtomost",Mx_DrawOrderButtomost),MxFun.addCommand("Mx_DrawOrderTop",Mx_DrawOrderTop),MxFun.addCommand("Mx_DrawOrderButtom",Mx_DrawOrderButtom)});var getQuadrant=function t(e,r){return[r.x>=e.x&&r.y>=e.y,r.x<e.x&&r.y>=e.y,r.x<e.x&&r.y<e.y,r.x>=e.x&&r.y<e.y]};function calculateRoundedRectangleVertices(t,e,r){if(e===0&&r===0)return t;var n=_slicedToArray$1(t,4),o=n[0],s=n[1],c=n[2],l=n[3],v=o.distanceTo(l),x=o.distanceTo(s),w=getQuadrant(o,c),_=_slicedToArray$1(w,4);_[0];var b=_[1],E=_[2],I=_[3],O=b||E?-e:e,N=E||I?-r:r;if(v-Math.abs(O)*2<=0||x-Math.abs(N)*2<=0)return t;var A=new McGePoint3d(o.x+O,o.y,o.z),z=new McGePoint3d(o.x,o.y+N,o.z),G=new McGePoint3d(s.x,s.y-N,s.z),V=new McGePoint3d(s.x+O,s.y,s.z),ne=new McGePoint3d(c.x-O,c.y,c.z),W=new McGePoint3d(c.x,s.y-N,c.z),B=new McGePoint3d(l.x,l.y+N,l.z),q=new McGePoint3d(l.x-O,l.y,l.z),D=[A,z,G,V,ne,W,B,q];return D}var rotatePoint=function t(e,r,n){var o=Math.cos(n),s=Math.sin(n),c=r.x-e.x,l=r.y-e.y,v=c*o-l*s+e.x,x=c*s+l*o+e.y,w=r.z;return new McGePoint3d(v,x,w)},getRectPoints$1=function t(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=new McGePoint3d((e.x+r.x)/2,(e.y+r.y)/2,(e.z+r.z)/2),s=new McGePoint3d(e.x,r.y,e.z),c=new McGePoint3d(r.x,e.y,r.z),l=rotatePoint(o,s,n),v=rotatePoint(o,c,n);return[e,l,r,v]},drawRectang=function(){var t=_asyncToGenerator(regenerator.mark(function e(){var r,n,o,s,c,l,v,x,w,_,b,E,I,O;return regenerator.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:r=new MxCADUiPrPoint,n=0,o=0,s=0,c=0,l=0,v=0,x=200,w=0,_=0,b=0,E="default",I=regenerator.mark(function z(){var G,V,ne,W,B,q,D,F;return regenerator.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return G=function(){var fe=_asyncToGenerator(regenerator.mark(function me(ye,Te){var ke,Le;return regenerator.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:return ke=new MxCADUiPrDist,ke.setMessage(_ML_String(ye,Te)),it.next=4,ke.go();case 4:if(Le=it.sent,Le){it.next=7;break}throw"error getLength";case 7:return it.abrupt("return",ke.value());case 8:case"end":return it.stop()}},me)}));return function(ye,Te){return fe.apply(this,arguments)}}(),r.setUserDraw(function(){}),r.clearLastInputPoint(),r.setMessage(`
  3435. \u6307\u5B9A\u7B2C\u4E00\u4E2A\u89D2\u70B9`),r.setKeyWords("[\u5012\u89D2(C)/\u6807\u9AD8(E)/\u5706\u89D2(F)/\u539A\u5EA6(T)/\u5BBD\u5EA6(W)]"),le.next=7,r.go();case 7:if(V=le.sent,W=new McDbPolyline,le.prev=9,!r.isKeyWordPicked("C")){le.next=19;break}return le.next=13,G("ID_ARX_RECTANG_CHAMFEr1LENGTH",`
  3436. \u6307\u5B9A\u7B2C\u4E00\u4E2A\u5012\u89D2\u8DDD\u79BB:`);case 13:return n=le.sent,le.next=16,G("ID_ARX_RECTANG_CHAMFEr2LENGTH",`
  3437. \u6307\u5B9A\u7B2C\u4E8C\u4E2A\u5012\u89D2\u8DDD\u79BB`);case 16:return o=le.sent,E="chamfer",le.abrupt("return",0);case 19:if(!r.isKeyWordPicked("E")){le.next=24;break}return le.next=22,G("ID_ARX_RECTANG_ELEVATION",`
  3438. \u6307\u5B9A\u77E9\u5F62\u7684\u6807\u9AD8`);case 22:return s=le.sent,le.abrupt("return",0);case 24:if(!r.isKeyWordPicked("F")){le.next=30;break}return le.next=27,G("ID_ARX_RECTANG_RADIUS",`
  3439. \u6307\u5B9A\u77E9\u5F62\u7684\u5706\u89D2\u534A\u5F84`);case 27:return c=le.sent,E="angleRounded",le.abrupt("return",0);case 30:if(!r.isKeyWordPicked("T")){le.next=35;break}return le.next=33,G("ID_ARX_RECTANG_THICKNESS",`
  3440. \u6307\u5B9A\u77E9\u5F62\u7684\u539A\u5EA6`);case 33:return l=le.sent,le.abrupt("return",0);case 35:if(!r.isKeyWordPicked("W")){le.next=40;break}return le.next=38,G("ID_ARX_RECTANG_WIDTH",`
  3441. \u6307\u5B9A\u77E9\u5F62\u7684\u7EBF\u5BBD`);case 38:return v=le.sent,le.abrupt("return",0);case 40:le.next=45;break;case 42:return le.prev=42,le.t0=le.catch(9),le.abrupt("return",1);case 45:if(V){le.next=47;break}return le.abrupt("return",{v:void 0});case 47:return B=function(me,ye){var Te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;W=new McDbPolyline,me.z=ye.z=l;var ke=getRectPoints$1(me,ye,Te),Le=new McGePoint3d((me.x+ye.x)/2,(me.y+ye.y)/2,(me.z+ye.z)/2),et=ke;if(E==="chamfer"&&(et=calculateRoundedRectangleVertices(getRectPoints$1(me,ye),n,o)),E==="angleRounded"&&c!==0){et=calculateRoundedRectangleVertices(getRectPoints$1(me,ye),c,c);var it=getQuadrant(me,ye),Ue=_slicedToArray$1(it,4);Ue[0];var ht=Ue[1],De=Ue[2],Be=Ue[3];if(et.length===8){var Ve=function(Lt,Ne,ze){var Ke=new McGeVector3d(ze),vt=CMxDrawPolylineDragArcDraw_CalcArcBulge(Lt,Ne,Ke);W.addVertexAt(Lt,vt),W.addVertexAt(Ne,0)},He=new McGeVector3d(-1,0),gt=new McGeVector3d(0,1),dn=new McGeVector3d(1,0),Ze=new McGeVector3d(0,-1);Be&&(gt.y=-1,dn.x=1,Ze.y=1),ht&&(He.x=1,gt.y=1,dn.x=-1,Ze.y=-1),De&&(He.x=1,gt.y=-1,dn.x=-1,Ze.y=1),Ve(et[0],et[1],He),Ve(et[2],et[3],gt),Ve(et[4],et[5],dn),Ve(et[6],et[7],Ze)}else et.forEach(function(at){W.addVertexAt(at,0)})}else et.forEach(function(at){W.addVertexAt(at,0,v,v)});return(E==="chamfer"||E==="angleRounded")&&W.rotate(Le,Te),W.isClosed=!0,W.constantWidth=v,ne=ye,W},q=function(me,ye){if(!!V){var Te=V,ke=me;W=B(Te,ke,b),ye.drawMcDbEntity(W)}},r.setUserDraw(q),D=function(){var fe=_asyncToGenerator(regenerator.mark(function me(){var ye,Te,ke,Le,et,it,Ue,ht,De,Be,Ve;return regenerator.wrap(function(gt){for(;;)switch(gt.prev=gt.next){case 0:return r.setMessage(`
  3442. \u6307\u5B9A\u53E6\u4E00\u4E2A\u89D2\u70B9`),r.setKeyWords("[\u9762\u79EF(A)/\u5C3A\u5BF8(D)/\u65CB\u8F6C(R)]"),gt.next=4,r.go();case 4:if(ye=gt.sent,Te=function(Ze,at){var Lt=getQuadrant(V,Ze),Ne=_slicedToArray$1(Lt,4),ze=Ne[0],Ke=Ne[1],vt=Ne[2],Ft=Ne[3];ze&&(ye=new McGePoint3d(V.x+w,V.y+_,l)),Ke&&(ye=new McGePoint3d(V.x-w,V.y+_,l)),vt&&(ye=new McGePoint3d(V.x-w,V.y-_,l)),Ft&&(ye=new McGePoint3d(V.x+w,V.y-_,l)),ye&&(W=B(V,ye,b),at.drawMcDbEntity(W))},!r.isKeyWordPicked("A")){gt.next=40;break}return r.setUserDraw(function(){}),ke=new MxCADUiPrInt,ke.setMessage("\u8F93\u5165\u5F53\u524D\u5355\u4F4D\u8BA1\u7B97\u7684\u77E9\u5F62\u9762\u79EF<"+x+">"),gt.next=12,ke.go();case 12:if(Le=gt.sent,Le){gt.next=15;break}return gt.abrupt("return");case 15:return x=Le,et=new MxCADUiPrKeyWord,et.setMessage("\u8BA1\u7B97\u77E9\u5F62\u6807\u6CE8\u65F6\u7684\u4F9D\u636E"),et.setKeyWords("[\u957F\u5EA6(L)/\u5BBD\u5EA6(W)]"),gt.next=21,et.go();case 21:if(it=gt.sent,it!==null){gt.next=24;break}return gt.abrupt("return");case 24:if(it!=="w"){gt.next=31;break}return gt.next=27,G("ID_ARX_RECTANG_AREA_WIDTH","\u8F93\u5165\u77E9\u5F62\u5BBD\u5EA6");case 27:w=gt.sent,_=x/w,gt.next=35;break;case 31:return gt.next=33,G("ID_ARX_RECTANG_AREA_LENGTH","\u8F93\u5165\u77E9\u5F62\u957F\u5EA6");case 33:_=gt.sent,w=x/_;case 35:ye=new McGePoint3d(V.x+w,V.y+_,l),W=B(V,ye,b),MxCpp.getCurrentMxCAD().drawEntity(W),gt.next=98;break;case 40:if(!r.isKeyWordPicked("D")){gt.next=62;break}return gt.prev=41,gt.next=44,G("ID_ARX_RECTANG_AREA_WIDTH","\u6307\u5B9A\u77E9\u5F62\u5BBD\u5EA6");case 44:return w=gt.sent,gt.next=47,G("ID_ARX_RECTANG_AREA_LENGTH","\u6307\u5B9A\u77E9\u5F62\u5BBD\u5EA6");case 47:_=gt.sent,gt.next=53;break;case 50:return gt.prev=50,gt.t0=gt.catch(41),gt.abrupt("return");case 53:return r.clearLastInputPoint(),r.setUserDraw(Te),gt.next=57,D();case 57:if(Ue=gt.sent,typeof Ue!="undefined"){gt.next=60;break}return gt.abrupt("return");case 60:gt.next=98;break;case 62:if(!r.isKeyWordPicked("R")){gt.next=97;break}return r.setMessage(`
  3443. \u6307\u5B9A\u65CB\u8F6C\u89D2\u5EA6`),r.setKeyWords("[\u62FE\u53D6\u70B9(P)]"),r.setUserDraw(function(dn,Ze){b=angleTo(dn.x,dn.y,V.x,V.y),W=B(V,ne),W.rotate(V,b),Ze.drawMcDbEntity(W)}),gt.next=68,r.go();case 68:if(ht=gt.sent,!r.isKeyWordPicked("P")){gt.next=87;break}return r.clearLastInputPoint(),r.setUserDraw(function(){}),r.setMessage(`
  3444. \u6307\u5B9A\u7B2C\u4E00\u4E2A\u70B9`),gt.next=75,r.go();case 75:if(De=gt.sent,De){gt.next=78;break}return gt.abrupt("return");case 78:return r.setUserDraw(function(dn,Ze){Ze.drawLine(dn.toVector3(),De.toVector3())}),gt.next=81,r.go();case 81:if(Be=gt.sent,Be){gt.next=84;break}return gt.abrupt("return");case 84:b=angleTo(De.x,De.y,Be.x,Be.y),gt.next=89;break;case 87:if(ht){gt.next=89;break}return gt.abrupt("return");case 89:return r.setUserDraw(q),gt.next=92,D();case 92:if(Ve=gt.sent,typeof Ve!="undefined"){gt.next=95;break}return gt.abrupt("return");case 95:gt.next=98;break;case 97:ye&&MxCpp.getCurrentMxCAD().drawEntity(W);case 98:W.setxDataDouble("BG",s);case 99:case"end":return gt.stop()}},me,null,[[41,50]])}));return function(){return fe.apply(this,arguments)}}(),le.next=53,D();case 53:if(F=le.sent,typeof F!="undefined"){le.next=56;break}return le.abrupt("return",1);case 56:case"end":return le.stop()}},z,null,[[9,42]])});case 13:return A.delegateYield(I(),"t0",15);case 15:if(O=A.t0,O!==0){A.next=18;break}return A.abrupt("continue",13);case 18:if(O!==1){A.next=20;break}return A.abrupt("break",24);case 20:if(!O){A.next=22;break}return A.abrupt("return",O.v);case 22:A.next=13;break;case 24:case"end":return A.stop()}},e)}));return function(){return t.apply(this,arguments)}}();MxFun.on("init",function(){MxFun.addCommand("Mx_Rectang",drawRectang)});function _objectWithoutPropertiesLoose(t,e){if(t==null)return{};var r={},n=Object.keys(t),o,s;for(s=0;s<n.length;s++)o=n[s],!(e.indexOf(o)>=0)&&(r[o]=t[o]);return r}function _objectWithoutProperties(t,e){if(t==null)return{};var r=_objectWithoutPropertiesLoose(t,e),n,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(o=0;o<s.length;o++)n=s[o],!(e.indexOf(n)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,n)||(r[n]=t[n]))}return r}var loadWams=function(){var t=_asyncToGenerator(regenerator.mark(function e(r,n,o){var s,c;return regenerator.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return s=o.locateFile,c=s(r+".js"),v.next=4,loadScript(c);case 4:return v.next=6,globalThis[n](o);case 6:return v.abrupt("return",v.sent);case 7:case"end":return v.stop()}},e)}));return function(r,n,o){return t.apply(this,arguments)}}();function createResizeObserver$1(t){if(typeof ResizeObserver=="function"){var e=new ResizeObserver(t);return e}return null}function addResizeListener$1(t,e){var r=function(){return requestAnimationFrame(e)},n=createResizeObserver$1(r);if(n){n.observe(t);return}if(MutationObserver){var o=new MutationObserver(r);o.observe(t,{attributes:!0});return}}function throttle(t,e){var r=null;return function(){for(var n=this,o=arguments.length,s=new Array(o),c=0;c<o;c++)s[c]=arguments[c];r||(r=setTimeout(function(){t.apply(n,s),r=null},e))}}var PubSub=function(){function t(){_classCallCheck$1(this,t),_defineProperty(this,"events",void 0),this.events={}}return _createClass$1(t,[{key:"on",value:function(r,n){var o=this;o.events.hasOwnProperty(r)||(o.events[r]=[]),o.events[r].push(n)}},{key:"emit",value:function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];var c=this;!c.events.hasOwnProperty(r)||c.events[r].map(function(l){return l.apply(void 0,o)})}},{key:"off",value:function(r,n){if(this.events[r])if(typeof n=="undefined")this.events[r]=[];else{var o=this.events[r].indexOf(n);this.events[r].splice(o,1)}}}]),t}(),_excluded=["canvas","minWidth","minHeight","updateCanvasSize"];function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var n=_getPrototypeOf$1(t),o;if(e){var s=_getPrototypeOf$1(this).constructor;o=Reflect.construct(n,arguments,s)}else o=n.apply(this,arguments);return _possibleConstructorReturn$1(this,o)}}function _isNativeReflectConstruct(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var mxDraw3d,MxDraw3d=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;_classCallCheck$1(this,r),o=e.call(this),_defineProperty(_assertThisInitialized$1(o),"canvas",void 0);var s=function(){var V=o.canvas.parentElement?o.canvas.parentElement.clientWidth:window.innerWidth,ne=o.canvas.parentElement?o.canvas.parentElement.clientHeight:window.innerHeight,W=Math.min(V,window.screen.availWidth),B=Math.min(ne,window.screen.availHeight);W=Math.max(x,W),B=Math.max(_,B),o.canvas.style.width=W+1+"px",o.canvas.style.height=B+"px";var q=window.devicePixelRatio||1;o.canvas.width=W*q,o.canvas.height=B*q,window.dispatchEvent(new Event("resize"))},c=throttle(s,50),l=n.canvas,v=n.minWidth,x=v===void 0?300:v,w=n.minHeight,_=w===void 0?300:w,b=n.updateCanvasSize,E=b===void 0?c:b,I=_objectWithoutProperties(n,_excluded),O=typeof l=="string"?document.querySelectorAll(l)[0]:l,N=O.getContext("webgl2",{alpha:!1,depth:!0,antialias:!1,preserveDrawingBuffer:!0});N==null&&(N=O.getContext("webgl",{alpha:!1,depth:!0,antialias:!1,preserveDrawingBuffer:!0})),o.canvas=O,o.ctx=N,I.canvas=o.canvas;for(var A in I)o[A]=I[A];if(o.canvas instanceof HTMLCanvasElement){var z=o.canvas.parentElement||document.body;addResizeListener$1(z,E)}else console.error("createMxDraw3d canvas \u53C2\u6570\u4E0D\u6B63\u786E \u65E0\u6CD5\u83B7\u53D6\u5230canvas\u5143\u7D20");return s(),o.on=o.on.bind(_assertThisInitialized$1(o)),o.emit=o.emit.bind(_assertThisInitialized$1(o)),o.off=o.off.bind(_assertThisInitialized$1(o)),loadWams("mxdraw3d_min","mxdraw3d",Object.assign({},_assertThisInitialized$1(o))).then(function(G){mxDraw3d=G,o.updateCanvasSize=E,o.open3DFile=function(V){var ne=new FileReader;ne.onload=function(){if(!!ne.result&&ne.result instanceof ArrayBuffer){var W=new Uint8Array(ne.result),B=o._malloc(W.length);o.HEAPU8.set(W,B),o.openFromMemory(V.name,B,W.length,!0),o.displayGround(!0),o.canvas.focus()}},ne.readAsArrayBuffer(V)},G.mdGeTopo=new MdGeTopo,G.mdGeBRep=new MdGeBRep,G.mdGeHGeomPlane=new MdGeHGeomPlane,G.mdGeApplication=new MdGeApplication,G.mdGeDocument=G.mdGeApplication.GetDocument(1),G.mdGeLabelTree=new MdGeLabelTree,G.mdGeAisContext=new MdGeAisContext,Object.assign(_assertThisInitialized$1(o),G,{Mx3dBaseObject,MdGeShape,MdGeVertex,MdGeEdge,MdGeWire,MdGeFace,MdGeShell,MdGeSolid,MdGeCompSolid,MdGeCompound,MdGeMat,MdGeXYZ,MdGeTrsf,MdGeDir,MdGeAxis,MdGeCSYSR,MdGePoint,MdGeVec,MdGeAngleDim,MdGeArray1OfInteger,MdGeArray1OfPnt,MdGeArray1OfReal,MdGeArray2OfPnt,MdGeArray2OfReal,MdGeBezierCurve,MdGeBezierSurface,MdGeChamfer,MdGeCircle,MdGeCSYS,MdGeCone,MdGeCylinder,MdGePlane,MdGeDiameterDim,MdGeEllipse,MdGeExplorer,MdGeFillet,MdGeHypr,MdGeBox,MdGeBSplineCurve,MdGeBSplineSurface,MdGeInterpolateBSpl,MdGeLengthDim,MdGeLine,MdGeListIteratorOfListOfShape,MdGeListOfShape,MdGeLoft,MdGeMakeThickSolid,MdGeParab,MdGePipe,MdGePointsToBSpl,MdGePointsToBSplSurface,MdGePrism,MdGeRadiusDim,MdGeRect,MdGeRevol,MdGeSphere,MdGeText,MdGeTextLabel,MdGeTopo,MdGeTorus,MdGeTransform,MdGeWedge,MdGeHGeomSurface,MdGeHGeomPlane,MdGeBRep,MdGeColor,MdGeMaterialAspect,MdGeSequenceOfShape,MdGeSequenceIteratorOfSequenceOfShape,MdGeMakeWires,MdGeMakeFace,MdGeMakeArcOfCircle,MdGeLight,MdGeArrowAspect,MdGeDimAspect,MdGeLineAspect,MdGeTextAspect,MdGeApplication,MdGeDocument,MdGeDocShapeTool,MdGeDocColorTool,MdGeLabel,MdGeLabelSequence,MdGeLocation,MdGeLabelTree,MdGeDocReader,MdGeDocWriter,MdGeAisContext,MdGeAisObject,MdGeAisShape,MdGeBndBox,MdGeAisTexturedShape,MdGeSpliter,Mx3dGeBndBox,Mx3dGeColor,Mx3dDbDocument,Mx3dDbLabel,Mx3dLabelSequence,Mx3dLabelSequenceIterator,Mx3dGeLocation,Mx3dGePoint,Mx3dShapeObject,Mx3dGeObject,Mx3dDbObject}),r.onloadWasmMxDraw3dModel&&r.onloadWasmMxDraw3dModel(_assertThisInitialized$1(o))}),o}return _createClass$1(r)}(PubSub);_defineProperty(MxDraw3d,"onloadWasmMxDraw3dModel",void 0);var Mx3dBaseObject=function(){function t(e){_classCallCheck$1(this,t),_defineProperty(this,"imp",0),this.imp=e,this.imp&&_mxFinalizationRegistry.register(this,e,_mxFinalizationRegistry_token)}return _createClass$1(t,[{key:"getImp",value:function(){return this.imp}},{key:"initTempObject",value:function(r){this.imp=r}}]),t}(),Mx3dShapeObject=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),n?o=e.call(this,n):(o=e.call(this),o.initTempObject(new mxDraw3d.Mx3dShapeObject)),_possibleConstructorReturn$1(o)}return _createClass$1(r,[{key:"getBndBox",value:function(){return new Mx3dGeBndBox(this.imp.getBndBox())}},{key:"Draw",value:function(){this.imp.Draw()}}]),r}(Mx3dBaseObject),Mx3dGeObject=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){return _classCallCheck$1(this,r),e.call(this,n)}return _createClass$1(r)}(Mx3dBaseObject),Mx3dDbObject=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){return _classCallCheck$1(this,r),e.call(this,n)}return _createClass$1(r)}(Mx3dBaseObject),MdGeShape=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),arguments.length==0?(o=e.call(this),o.initTempObject(new mxDraw3d.MdGeShape)):o=e.call(this,n),_possibleConstructorReturn$1(o)}return _createClass$1(r,[{key:"Fuse",value:function(o){return new r(this.imp.Fuse(o.imp))}},{key:"Cut",value:function(o){return new r(this.imp.Cut(o.imp))}},{key:"Common",value:function(o){return new r(this.imp.Common(o.imp))}},{key:"Section",value:function(o){return new r(this.imp.Section(o.imp))}},{key:"ShapeType",value:function(){return this.imp.ShapeType()}},{key:"Quantities",value:function(){return new MdGeArray1OfReal(this.imp.Quantities())}},{key:"MirrorByPoint",value:function(o){this.imp.MirrorByPoint(o.getImp())}},{key:"MirroredByPoint",value:function(o){return new r(this.imp.MirroredByPoint(o.getImp()))}},{key:"MirrorByAxis",value:function(o){this.imp.MirrorByAxis(o.getImp())}},{key:"MirroredByAxis",value:function(o){return new r(this.imp.MirroredByAxis(o.getImp()))}},{key:"MirrorByCSYSR",value:function(o){this.imp.MirrorByCSYSR(o.getImp())}},{key:"MirroredByCSYSR",value:function(o){return new r(this.imp.MirroredByCSYSR(o.getImp()))}},{key:"Rotate",value:function(o,s){this.imp.Rotate(o.getImp(),s)}},{key:"Rotated",value:function(o,s){return new r(this.imp.Rotated(o.getImp(),s))}},{key:"Scale",value:function(o,s){this.imp.Scale(o.getImp(),s)}},{key:"Scaled",value:function(o,s){return new r(this.imp.Scaled(o.getImp(),s))}},{key:"Transform",value:function(o){this.imp.Transform(o.getImp())}},{key:"Transformed",value:function(o){return new r(this.imp.Transformed(o.getImp()))}},{key:"TranslateByVec",value:function(o){this.imp.TranslateByVec(o.getImp())}},{key:"TranslatedByVec",value:function(o){return new r(this.imp.TranslatedByVec(o.getImp()))}},{key:"TranslateBy2Points",value:function(o,s){this.imp.TranslateBy2Points(o.getImp(),s.getImp())}},{key:"TranslatedBy2Points",value:function(o,s){return new r(this.imp.TranslatedBy2Points(o.getImp(),s.getImp()))}},{key:"SetTextureFileName",value:function(o){this.imp.SetTextureFileName(o)}},{key:"SetMaterialAspect",value:function(o){this.imp.SetMaterialAspect(o.getImp())}},{key:"SetColor",value:function(o){this.imp.SetColor(o.getImp())}},{key:"TextureRepeat",value:function(){return this.imp.TextureRepeat()}},{key:"URepeat",value:function(){return this.imp.URepeat()}},{key:"VRepeat",value:function(){return this.imp.VRepeat()}},{key:"SetTextureRepeat",value:function(o,s,c){this.imp.SetTextureRepeat(o,s,c)}},{key:"TextureScale",value:function(){return this.imp.TextureScale()}},{key:"TextureScaleU",value:function(){return this.imp.TextureScaleU()}},{key:"TextureScaleV",value:function(){return this.imp.TextureScaleV()}},{key:"SetTextureScale",value:function(o,s,c){this.imp.SetTextureScale(o,s,c)}},{key:"TextureOrigin",value:function(){return this.imp.TextureOrigin()}},{key:"TextureUOrigin",value:function(){return this.imp.TextureUOrigin()}},{key:"TextureVOrigin",value:function(){return this.imp.TextureVOrigin()}},{key:"SetTextureOrigin",value:function(o,s,c){this.imp.SetTextureOrigin(o,s,c)}},{key:"IsNull",value:function(){return this.imp.IsNull()}},{key:"SetShapeName",value:function(o){this.imp.SetShapeName(o)}},{key:"GetShapeName",value:function(){return this.imp.GetShapeName()}},{key:"GetBndBox",value:function(){return new MdGeBndBox(this.imp.GetBndBox())}},{key:"Draw",value:function(){return this.imp.Draw()}}]),r}(Mx3dBaseObject),MdGeVertex=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o,s){var c;return _classCallCheck$1(this,r),arguments.length==0?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeVertex)):typeof n=="number"&&o&&s?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeVertex(n,o,s))):n instanceof MdGePoint&&arguments.length==1?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeVertex(n.getImp()))):n instanceof Object&&arguments.length==1&&(c=e.call(this,n)),_possibleConstructorReturn$1(c)}return _createClass$1(r)}(MdGeShape),MdGeEdge=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o){var s;return _classCallCheck$1(this,r),arguments.length==0?(s=e.call(this),s.initTempObject(new mxDraw3d.MdGeEdge)):n instanceof MdGePoint&&o instanceof MdGePoint?(s=e.call(this),s.initTempObject(new mxDraw3d.MdGeEdge(n.getImp(),o.getImp()))):n instanceof Object&&arguments.length==1&&(s=e.call(this,n)),_possibleConstructorReturn$1(s)}return _createClass$1(r,[{key:"Wire",value:function(){return new MdGeWire(this.imp.Wire())}},{key:"AddedEdge",value:function(o){return new MdGeWire(this.imp.AddedEdge(o.imp))}},{key:"AddedWire",value:function(o){return new MdGeWire(this.imp.AddedWire(o.getImp()))}}]),r}(MdGeShape),MdGeWire=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),arguments.length==0?(o=e.call(this),o.initTempObject(new mxDraw3d.MdGeWire)):o=e.call(this,n),_possibleConstructorReturn$1(o)}return _createClass$1(r,[{key:"AddedEdge",value:function(o){return new r(this.imp.AddedEdge(o.getImp()))}},{key:"AddedWire",value:function(o){return new r(this.imp.AddedEdge(o.imp))}}]),r}(MdGeShape),MdGeFace=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),arguments.length==0?(o=e.call(this),o.initTempObject(new mxDraw3d.MdGeFace)):o=e.call(this,n),_possibleConstructorReturn$1(o)}return _createClass$1(r)}(MdGeShape),MdGeShell=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),arguments.length==0?(o=e.call(this),o.initTempObject(new mxDraw3d.MdGeShell)):o=e.call(this,n),_possibleConstructorReturn$1(o)}return _createClass$1(r)}(MdGeShape),MdGeSolid=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),arguments.length==0?(o=e.call(this),o.initTempObject(new mxDraw3d.MdGeSolid)):o=e.call(this,n),_possibleConstructorReturn$1(o)}return _createClass$1(r)}(MdGeShape),MdGeCompSolid=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),arguments.length==0?(o=e.call(this),o.initTempObject(new mxDraw3d.MdGeCompSolid)):o=e.call(this,n),_possibleConstructorReturn$1(o)}return _createClass$1(r)}(MdGeShape),MdGeCompound=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),arguments.length==0?(o=e.call(this),o.initTempObject(new mxDraw3d.MdGeCompound)):o=e.call(this,n),_possibleConstructorReturn$1(o)}return _createClass$1(r)}(MdGeShape),MdGeMat=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o,s,c,l,v,x,w,_){var b;return _classCallCheck$1(this,r),arguments.length==0?(b=e.call(this),b.initTempObject(new mxDraw3d.MdGeMat)):n instanceof MdGeXYZ&&o instanceof MdGeXYZ&&s instanceof MdGeXYZ&&arguments.length==3?(b=e.call(this),b.initTempObject(new mxDraw3d.MdGeMat(n.getImp(),o.getImp(),s.getImp()))):typeof n=="number"&&typeof o=="number"&&typeof s=="number"&&arguments.length==9?(b=e.call(this),b.initTempObject(new mxDraw3d.MdGeMat(n,o,s,c,l,v,x,w,_))):n instanceof Object&&arguments.length==1&&(b=e.call(this,n)),_possibleConstructorReturn$1(b)}return _createClass$1(r,[{key:"SetCol",value:function(o,s){this.imp.SetCol(o,s.getImp())}},{key:"SetCols",value:function(o,s,c){this.imp.SetCols(o.getImp(),s.getImp(),c.getImp())}},{key:"SetCross",value:function(o){this.imp.SetCross(o.getImp())}},{key:"SetDiagonal",value:function(o,s,c){this.imp.SetDiagonal(o,s,c)}},{key:"SetDot",value:function(o){this.imp.SetDot(o.getImp())}},{key:"SetIdentity",value:function(){this.imp.SetIdentity()}},{key:"SetRotation",value:function(o,s){this.imp.SetRotation(o.getImp(),s)}},{key:"SetRow",value:function(o,s){this.imp.SetRow(o,s.getImp())}},{key:"SetRows",value:function(o,s,c){this.imp.SetRows(o.getImp(),s.getImp(),c.getImp())}},{key:"SetScale",value:function(o){this.imp.SetScale(o)}},{key:"SetValue",value:function(o,s,c){this.imp.SetValue(o,s,c)}},{key:"Column",value:function(o){return new MdGeXYZ(this.imp.Column(o))}},{key:"Determinant",value:function(){return this.imp.Determinant()}},{key:"Diagonal",value:function(){return new MdGeXYZ(this.imp.Diagonal())}},{key:"Row",value:function(o){return new MdGeXYZ(this.imp.Row(o))}},{key:"Value",value:function(o,s){return this.imp.Value(o,s)}},{key:"ChangeValue",value:function(o,s,c){this.imp.Value(o,s,c)}},{key:"IsSingular",value:function(){return this.imp.IsSingular()}},{key:"Add",value:function(o){this.imp.Add(o.imp)}},{key:"Added",value:function(o){return new r(this.imp.Added(o.imp))}},{key:"Divide",value:function(o){this.imp.Divide(o)}},{key:"Divided",value:function(o){return new r(this.imp.Divided(o))}},{key:"Invert",value:function(){this.imp.Invert()}},{key:"Inverted",value:function(){return new r(this.imp.Inverted())}},{key:"MultipliedByMat",value:function(o){return new r(this.imp.MultipliedByMat(o.imp))}},{key:"MultiplyByMat",value:function(o){this.imp.MultiplyByMat(o.imp)}},{key:"PreMultiplyByMat",value:function(o){this.imp.PreMultiplyByMat(o.imp)}},{key:"MultipliedByS",value:function(o){return new r(this.imp.MultipliedByS(o))}},{key:"MultiplyByS",value:function(o){this.imp.MultiplyByS(o)}},{key:"Power",value:function(o){this.imp.Power(o)}},{key:"Powered",value:function(o){return new r(this.imp.Powered(o))}},{key:"Subtract",value:function(o){this.imp.Subtract(o.imp)}},{key:"Subtracted",value:function(o){return new r(this.imp.Subtracted(o.imp))}},{key:"Transpose",value:function(){this.imp.Transpose()}},{key:"Transposed",value:function(){return new r(this.imp.Transposed())}}]),r}(Mx3dBaseObject),MdGeXYZ=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o,s){var c;return _classCallCheck$1(this,r),arguments.length==0?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeXYZ)):typeof n=="number"&&arguments.length==3?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeXYZ(n,o,s))):n instanceof Object&&arguments.length==1&&(c=e.call(this,n)),_possibleConstructorReturn$1(c)}return _createClass$1(r,[{key:"SetCoord",value:function(o,s,c){arguments.length==2?this.imp.SetCoord(o,s):this.imp.SetCoord(o,s,c)}},{key:"SetX",value:function(o){this.imp.SetX(o)}},{key:"SetY",value:function(o){this.imp.SetY(o)}},{key:"SetZ",value:function(o){this.imp.SetZ(o)}},{key:"Coord",value:function(o){return this.imp.Coord(o)}},{key:"ChangeCoord",value:function(o,s){this.imp.ChangeCoord(o,s)}},{key:"X",value:function(){return this.imp.X()}},{key:"Y",value:function(){return this.imp.Y()}},{key:"Z",value:function(){return this.imp.Z()}},{key:"Modulus",value:function(){return this.imp.Modulus()}},{key:"SquareModulus",value:function(){return this.imp.SquareModulus()}},{key:"IsEqual",value:function(o,s){return this.imp.IsEqual(o.imp,s)}},{key:"Add",value:function(o){this.imp.Add(o.imp)}},{key:"Added",value:function(o){return new r(this.imp.Added(o.imp))}},{key:"Cross",value:function(o){this.imp.Cross(o.imp)}},{key:"Crossed",value:function(o){return new r(this.imp.Crossed(o.imp))}},{key:"CrossMagnitude",value:function(o){return this.imp.CrossMagnitude(o.imp)}},{key:"CrossSquareMagnitude",value:function(o){return this.imp.CrossSquareMagnitude(o.imp)}},{key:"CrossCross",value:function(o,s){this.imp.CrossCross(o.imp,s.imp)}},{key:"CrossCrossed",value:function(o,s){return new r(this.imp.CrossCrossed(o.imp,s.imp))}},{key:"Divide",value:function(o){this.imp.Divide(o)}},{key:"Divided",value:function(o){return new r(this.imp.Divided(o))}},{key:"Dot",value:function(o){return this.imp.Dot(o.imp)}},{key:"DotCross",value:function(o,s){return this.imp.DotCross(o.imp,s.imp)}},{key:"MultiplyByS",value:function(o){this.imp.MultiplyByS(o)}},{key:"MultiplyByXYZ",value:function(o){this.imp.MultiplyByXYZ(o.imp)}},{key:"MultiplyByMat",value:function(o){this.imp.MultiplyByMat(o.getImp())}},{key:"MultipliedByS",value:function(o){return new r(this.imp.MultipliedByS(o))}},{key:"MultipliedByXYZ",value:function(o){return new r(this.imp.MultipliedByXYZ(o.imp))}},{key:"MultipliedByMat",value:function(o){return new r(this.imp.MultipliedByMat(o.getImp()))}},{key:"Normalize",value:function(){this.imp.Normalize()}},{key:"Normalized",value:function(){return new r(this.imp.Normalized())}},{key:"Reverse",value:function(){this.imp.Reverse()}},{key:"Reversed",value:function(){return new r(this.imp.Reversed())}},{key:"Subtract",value:function(o){this.imp.Subtract(o.imp)}},{key:"Subtracted",value:function(o){return new r(this.imp.Subtracted(o.imp))}}]),r}(Mx3dBaseObject),MdGeTrsf=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),arguments.length==0?(o=e.call(this),o.initTempObject(new mxDraw3d.MdGeTrsf)):o=e.call(this,n),_possibleConstructorReturn$1(o)}return _createClass$1(r,[{key:"SetMirrorByPoint",value:function(o){this.imp.SetMirrorByPoint(o.getImp())}},{key:"SetMirrorByAxis",value:function(o){this.imp.SetMirrorByAxis(o.getImp())}},{key:"SetMirrorByCSYSR",value:function(o){this.imp.SetMirrorByCSYSR(o.getImp())}},{key:"SetRotation",value:function(o,s){this.imp.SetRotation(o.getImp(),s)}},{key:"SetScale",value:function(o,s){this.imp.SetScale(o.getImp(),s)}},{key:"SetTranslationByVec",value:function(o){this.imp.SetTranslationByVec(o.getImp())}},{key:"SetTranslationBy2Points",value:function(o,s){this.imp.SetTranslationBy2Points(o.getImp(),s.getImp())}},{key:"SetTranslationPart",value:function(o){this.imp.SetTranslationPart(o.getImp())}},{key:"SetScaleFactor",value:function(o){this.imp.SetScaleFactor(o)}},{key:"SetValues",value:function(o,s,c,l,v,x,w,_,b,E,I,O){this.imp.SetValues(o,s,c,l,v,x,w,_,b,E,I,O)}},{key:"IsNegative",value:function(){return this.imp.IsNegative()}},{key:"ScaleFactor",value:function(){return this.imp.ScaleFactor()}},{key:"Value",value:function(o,s){return this.imp.Value(o,s)}},{key:"Invert",value:function(){this.imp.Invert()}},{key:"Inverted",value:function(){return new r(this.imp.Inverted())}},{key:"Multiplied",value:function(o){return new r(this.imp.Multiplied(o.imp))}},{key:"Multiply",value:function(o){this.imp.Multiply(o.imp)}},{key:"PreMultiply",value:function(o){this.imp.PreMultiply(o.imp)}},{key:"Power",value:function(o){this.imp.Power(o)}},{key:"Powered",value:function(o){return new r(this.imp.Powered(o))}},{key:"Transforms",value:function(o,s,c){this.imp.Transforms(o,s,c)}}]),r}(Mx3dBaseObject),MdGeDir=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o,s){var c;return _classCallCheck$1(this,r),arguments.length==0?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeDir)):n instanceof MdGeVec&&arguments.length==1?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeDir(n.getImp()))):typeof n=="number"&&arguments.length==3?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeDir(n,o,s))):n instanceof Object&&arguments.length==1&&(c=e.call(this,n)),_possibleConstructorReturn$1(c)}return _createClass$1(r,[{key:"SetCoord",value:function(o,s,c){arguments.length==2?this.imp.SetCoord(o,s):this.imp.SetCoord(o,s,c)}},{key:"SetX",value:function(o){this.imp.SetX(o)}},{key:"SetY",value:function(o){this.imp.SetY(o)}},{key:"SetZ",value:function(o){this.imp.SetZ(o)}},{key:"SetXYZ",value:function(o){this.imp.SetXYZ(o.getImp())}},{key:"Coord",value:function(o){return this.imp.Coord(o)}},{key:"X",value:function(){return this.imp.X()}},{key:"Y",value:function(){return this.imp.Y()}},{key:"Z",value:function(){return this.imp.Z()}},{key:"XYZ",value:function(){return this.imp.XYZ()}},{key:"IsEqual",value:function(o,s){return this.imp.IsEqual(o.imp,s)}},{key:"IsNormal",value:function(o,s){return this.imp.IsNormal(o.imp,s)}},{key:"IsOpposite",value:function(o,s){return this.imp.IsOpposite(o.imp,s)}},{key:"IsParallel",value:function(o,s){return this.imp.IsParallel(o.imp,s)}},{key:"Angle",value:function(o){return this.imp.Angle(o.imp)}},{key:"AngleWithRef",value:function(o,s){return this.imp.AngleWithRef(o.imp,s.imp)}},{key:"Cross",value:function(o){this.imp.Cross(o.imp)}},{key:"Crossed",value:function(o){return new r(this.imp.Crossed(o.imp))}},{key:"CrossCross",value:function(o,s){this.imp.CrossCross(o.imp,s.imp)}},{key:"CrossCrossed",value:function(o,s){return new r(this.imp.CrossCrossed(o.imp,s.imp))}},{key:"Dot",value:function(o){return this.imp.Dot(o.imp)}},{key:"DotCross",value:function(o,s){return this.imp.DotCross(o.imp,s.imp)}},{key:"Reverse",value:function(){this.imp.Reverse()}},{key:"Reversed",value:function(){return new r(this.imp.Reversed())}},{key:"MirrorByVec",value:function(o){this.imp.MirrorByVec(o.imp)}},{key:"MirroredByVec",value:function(o){return new r(this.imp.MirroredByVec(o.imp))}},{key:"MirrorByAxis",value:function(o){this.imp.MirrorByAxis(o.getImp())}},{key:"MirroredByAxis",value:function(o){return new r(this.imp.MirroredByAxis(o.getImp()))}},{key:"MirrorByCSYSR",value:function(o){this.imp.MirrorByCSYSR(o.getImp())}},{key:"MirroredByCSYSR",value:function(o){return new r(this.imp.MirroredByCSYSR(o.getImp()))}},{key:"Rotate",value:function(o,s){this.imp.Rotate(o.getImp(),s)}},{key:"Rotated",value:function(o,s){return new r(this.imp.Rotated(o.getImp(),s))}},{key:"Transform",value:function(o){this.imp.Transform(o.getImp())}},{key:"Transformed",value:function(o){return new r(this.imp.Transformed(o.getImp()))}}]),r}(Mx3dBaseObject),MdGeAxis=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o){var s;return _classCallCheck$1(this,r),arguments.length==0?(s=e.call(this),s.initTempObject(new mxDraw3d.MdGeAxis)):n instanceof MdGePoint&&arguments.length==2?(s=e.call(this),s.initTempObject(new mxDraw3d.MdGeAxis(n.getImp(),o==null?void 0:o.getImp()))):n instanceof Object&&arguments.length==1&&(s=e.call(this,n)),_possibleConstructorReturn$1(s)}return _createClass$1(r,[{key:"Direction",value:function(){return new MdGeDir(this.imp.Direction())}},{key:"Location",value:function(){return new MdGePoint(this.imp.Location())}},{key:"SetDirection",value:function(o){this.imp.SetDirection(o.getImp())}},{key:"SetLocation",value:function(o){this.imp.SetLocation(o.getImp())}}]),r}(Mx3dBaseObject),MdGeCSYSR=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o,s){var c;return _classCallCheck$1(this,r),arguments.length==0?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeCSYSR)):n instanceof MdGePoint&&arguments.length==3?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeCSYSR(n.getImp(),o==null?void 0:o.getImp(),s==null?void 0:s.getImp()))):n instanceof Object&&arguments.length==1&&(c=e.call(this,n)),_possibleConstructorReturn$1(c)}return _createClass$1(r,[{key:"Origin",value:function(){return new MdGePoint(this.imp.Origin())}},{key:"XDirection",value:function(){return new MdGeDir(this.imp.XDirection())}},{key:"YDirection",value:function(){return new MdGeDir(this.imp.YDirection())}},{key:"ZDirection",value:function(){return new MdGeDir(this.imp.ZDirection())}},{key:"SetOrigin",value:function(o,s,c){o instanceof MdGePoint&&arguments.length==1?this.imp.SetOrigin(o.getImp()):typeof o=="number"&&arguments.length==3&&this.imp.SetOrigin(o,s,c)}},{key:"SetXDirection",value:function(o){this.imp.SetXDirection(o.getImp())}},{key:"SetYDirection",value:function(o){this.imp.SetYDirection(o.getImp())}},{key:"SetZDirection",value:function(o){this.imp.SetZDirection(o.getImp())}},{key:"Angle",value:function(o){return this.imp.Angle(o.imp)}},{key:"Axis",value:function(){return new MdGeAxis(this.imp.Axis())}},{key:"IsCoplanarWithCSYSR",value:function(o,s,c){return this.imp.IsCoplanarWithCSYSR(o.imp,s,c)}},{key:"IsCoplanarWithAxis",value:function(o,s,c){return this.imp.IsCoplanarWithAxis(o.getImp(),s,c)}},{key:"MirrorByPoint",value:function(o){this.imp.MirrorByPoint(o.getImp())}},{key:"MirroredByPoint",value:function(o){return new r(this.imp.MirroredByPoint(o.getImp()))}},{key:"MirrorByAxis",value:function(o){this.imp.MirrorByAxis(o.getImp())}},{key:"MirroredByAxis",value:function(o){return new r(this.imp.MirroredByAxis(o.getImp()))}},{key:"MirrorByCSYSR",value:function(o){this.imp.MirrorByCSYSR(o.imp)}},{key:"MirroredByCSYSR",value:function(o){return new r(this.imp.MirroredByCSYSR(o.imp))}},{key:"Rotate",value:function(o,s){this.imp.Rotate(o.getImp(),s)}},{key:"Rotated",value:function(o,s){return new r(this.imp.Rotated(o.getImp(),s))}},{key:"Scale",value:function(o,s){this.imp.Scale(o.getImp(),s)}},{key:"Scaled",value:function(o,s){return new r(this.imp.Scaled(o.getImp(),s))}},{key:"Transform",value:function(o){this.imp.Transform(o.getImp())}},{key:"Transformed",value:function(o){return new r(this.imp.Transformed(o.getImp()))}},{key:"TranslateByVec",value:function(o){this.imp.TranslateByVec(o.getImp())}},{key:"TranslatedByVec",value:function(o){return new r(this.imp.TranslatedByVec(o.getImp()))}},{key:"TranslateBy2Points",value:function(o,s){this.imp.TranslateBy2Points(o.getImp(),s.getImp())}},{key:"TranslatedBy2Points",value:function(o,s){return new r(this.imp.TranslatedBy2Points(o.getImp(),s.getImp()))}}]),r}(Mx3dBaseObject),MdGePoint=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o,s){var c;return _classCallCheck$1(this,r),arguments.length==0?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGePoint)):typeof n=="number"&&arguments.length==3?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGePoint(n,o,s))):n instanceof Object&&arguments.length==1&&(c=e.call(this,n)),_possibleConstructorReturn$1(c)}return _createClass$1(r,[{key:"X",value:function(){return this.imp.X()}},{key:"Y",value:function(){return this.imp.Y()}},{key:"Z",value:function(){return this.imp.Z()}},{key:"SetX",value:function(o){this.imp.SetX(o)}},{key:"SetY",value:function(o){this.imp.SetY(o)}},{key:"SetZ",value:function(o){this.imp.SetZ(o)}},{key:"SetXYZ",value:function(o,s,c){this.imp.SetXYZ(o,s,c)}},{key:"BaryCenter",value:function(o,s,c){this.imp.BaryCenter(o,s.imp,c)}},{key:"IsEqual",value:function(o,s){return this.imp.IsEqual(o.imp,s)}},{key:"Distance",value:function(o){return this.imp.Distance(o.imp)}},{key:"SquareDistance",value:function(o){return this.imp.SquareDistance(o.imp)}},{key:"MirrorByPoint",value:function(o){this.imp.MirrorByPoint(o.imp)}},{key:"MirroredByPoint",value:function(o){return new r(this.imp.MirroredByPoint(o.imp))}},{key:"MirrorByAxis",value:function(o){this.imp.MirrorByAxis(o.getImp())}},{key:"MirroredByAxis",value:function(o){return new r(this.imp.MirroredByAxis(o.getImp()))}},{key:"MirrorByCSYSR",value:function(o){this.imp.MirrorByCSYSR(o.getImp())}},{key:"MirroredByCSYSR",value:function(o){return new r(this.imp.MirroredByCSYSR(o.getImp()))}},{key:"Rotate",value:function(o,s){this.imp.Rotate(o.getImp(),s)}},{key:"Rotated",value:function(o,s){return new r(this.imp.Rotated(o.getImp(),s))}},{key:"Scale",value:function(o,s){this.imp.Scale(o.imp,s)}},{key:"Scaled",value:function(o,s){return new r(this.imp.Scaled(o.imp,s))}},{key:"Transform",value:function(o){this.imp.Transform(o.getImp())}},{key:"Transformed",value:function(o){return new r(this.imp.Transformed(o.getImp()))}},{key:"TranslateByVec",value:function(o){this.imp.TranslateByVec(o.getImp())}},{key:"TranslatedByVec",value:function(o){return new r(this.imp.TranslatedByVec(o.getImp()))}},{key:"TranslateBy2Points",value:function(o,s){this.imp.TranslateBy2Points(o.imp,s.imp)}},{key:"TranslatedBy2Points",value:function(o,s){return new r(this.imp.TranslatedBy2Points(o.imp,s.imp))}},{key:"Shape",value:function(){return new MdGeShape(this.imp.Shape())}},{key:"Vertex",value:function(){return new MdGeVertex(this.imp.Vertex())}}]),r}(Mx3dBaseObject),MdGeVec=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o,s){var c;return _classCallCheck$1(this,r),arguments.length==0?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeVec)):n instanceof MdGePoint&&o instanceof MdGePoint&&arguments.length==2?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeVec(n.getImp(),o.getImp()))):typeof n=="number"&&typeof o=="number"&&arguments.length==3?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeVec(n,o,s))):n instanceof Object&&arguments.length==1&&(c=e.call(this,n)),_possibleConstructorReturn$1(c)}return _createClass$1(r,[{key:"SetCoord",value:function(o,s,c){arguments.length==2?this.imp.SetCoord(o,s):this.imp.SetCoord(o,s,c)}},{key:"X",value:function(){return this.imp.X()}},{key:"Y",value:function(){return this.imp.Y()}},{key:"Z",value:function(){return this.imp.Z()}},{key:"SetX",value:function(o){this.imp.SetX(o)}},{key:"SetY",value:function(o){this.imp.SetY(o)}},{key:"SetZ",value:function(o){this.imp.SetZ(o)}},{key:"SetXYZ",value:function(o,s,c){this.imp.SetXYZ(o,s,c)}},{key:"Coord",value:function(o){return this.imp.Coord(o)}},{key:"IsEqual",value:function(o,s,c){return this.imp.IsEqual(o.imp,s,c)}},{key:"IsNormal",value:function(o,s){return this.imp.IsNormal(o.imp,s)}},{key:"IsOpposite",value:function(o,s){return this.imp.IsOpposite(o.imp,s)}},{key:"IsParallel",value:function(o,s){return this.imp.IsParallel(o.imp,s)}},{key:"Angle",value:function(o){return this.imp.Angle(o.imp)}},{key:"AngleWithRef",value:function(o,s){return this.imp.AngleWithRef(o.imp,s.imp)}},{key:"Magnitude",value:function(){return this.imp.Magnitude()}},{key:"SquareMagnitude",value:function(){return this.imp.SquareMagnitude()}},{key:"Add",value:function(o){this.imp.Add(o.imp)}},{key:"Added",value:function(o){return new r(this.imp.Added(o.imp))}},{key:"Subtract",value:function(o){this.imp.Subtract(o.imp)}},{key:"Subtracted",value:function(o){return new r(this.imp.Subtracted(o.imp))}},{key:"Multiply",value:function(o){this.imp.Multiply(o)}},{key:"Multiplied",value:function(o){return new r(this.imp.Multiplied(o))}},{key:"Divide",value:function(o){this.imp.Divide(o)}},{key:"Divided",value:function(o){return new r(this.imp.Divided(o))}},{key:"Cross",value:function(o){this.imp.Cross(o.imp)}},{key:"Crossed",value:function(o){return new r(this.imp.Crossed(o.imp))}},{key:"CrossMagnitude",value:function(o){return this.imp.CrossMagnitude(o.imp)}},{key:"CrossSquareMagnitude",value:function(o){return this.imp.CrossSquareMagnitude(o.imp)}},{key:"CrossCross",value:function(o,s){this.imp.CrossCross(o.imp,s.imp)}},{key:"CrossCrossed",value:function(o,s){return new r(this.imp.CrossCrossed(o.imp,s.imp))}},{key:"Dot",value:function(o){return this.imp.Dot(o.imp)}},{key:"DotCross",value:function(o,s){return this.imp.DotCross(o.imp,s.imp)}},{key:"Normalize",value:function(){this.imp.Normalize()}},{key:"Normalized",value:function(){return new r(this.imp.Normalized())}},{key:"Reverse",value:function(){this.imp.Reverse()}},{key:"Reversed",value:function(){return new r(this.imp.Reversed())}},{key:"SetLinearForm",value:function(o,s,c,l,v,x,w){o instanceof r&&s instanceof r&&arguments.length==2?this.imp.SetLinearForm(o.imp,s.imp):typeof o=="number"&&s instanceof r&&c instanceof r&&arguments.length==3?this.imp.SetLinearForm(o,s.imp,c.imp):typeof o=="number"&&s instanceof r&&typeof c=="number"&&l instanceof r&&arguments.length==4?this.imp.SetLinearForm(o,s.imp,c,l.imp):typeof o=="number"&&s instanceof r&&typeof c=="number"&&l instanceof r&&v instanceof r&&arguments.length==5?this.imp.SetLinearForm(o,s.imp,c,l.imp,v.imp):typeof o=="number"&&s instanceof r&&typeof c=="number"&&l instanceof r&&typeof v=="number"&&x instanceof r&&arguments.length==6?this.imp.SetLinearForm(o,s.imp,c,l.imp,v,x.imp):typeof o=="number"&&s instanceof r&&typeof c=="number"&&l instanceof r&&typeof v=="number"&&x instanceof r&&w instanceof r&&this.imp.SetLinearForm(o,s.imp,c,l.imp,v,x.imp,w.imp)}},{key:"MirrorByVec",value:function(o){this.imp.MirrorByVec(o.imp)}},{key:"MirroredByVec",value:function(o){return new r(this.imp.MirroredByVec(o.imp))}},{key:"MirrorByAxis",value:function(o){this.imp.MirrorByAxis(o.getImp())}},{key:"MirroredByAxis",value:function(o){return new r(this.imp.MirroredByAxis(o.getImp()))}},{key:"MirrorByCSYSR",value:function(o){this.imp.MirrorByCSYSR(o.getImp())}},{key:"MirroredByCSYSR",value:function(o){return new r(this.imp.MirroredByCSYSR(o.getImp()))}},{key:"Rotate",value:function(o,s){this.imp.Rotate(o.getImp(),s)}},{key:"Rotated",value:function(o,s){return new r(this.imp.Rotated(o.getImp(),s))}},{key:"Scale",value:function(o){this.imp.Scale(o)}},{key:"Scaled",value:function(o){return new r(this.imp.Scaled(o))}},{key:"Transform",value:function(o){this.imp.Transform(o.getImp())}},{key:"Transformed",value:function(o){return new r(this.imp.Transformed(o.getImp()))}}]),r}(Mx3dBaseObject),MdGeAngleDim=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o,s){var c;return _classCallCheck$1(this,r),arguments.length==0?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeAngleDim)):n instanceof MdGeEdge&&o instanceof MdGeEdge&&arguments.length==2?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeAngleDim(n.getImp(),o.getImp()))):n instanceof MdGePoint&&o instanceof MdGePoint&&arguments.length==3?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeAngleDim(n.getImp(),o.getImp(),s==null?void 0:s.getImp()))):n instanceof Object&&arguments.length==1&&(c=e.call(this,n)),_possibleConstructorReturn$1(c)}return _createClass$1(r,[{key:"FirstPoint",value:function(){return new MdGePoint(this.imp.FirstPoint())}},{key:"SecondPoint",value:function(){return new MdGePoint(this.imp.SecondPoint())}},{key:"CenterPoint",value:function(){return new MdGePoint(this.imp.CenterPoint())}},{key:"FirstShape",value:function(){return new MdGeShape(this.imp.FirstShape())}},{key:"SecondShape",value:function(){return new MdGeShape(this.imp.SecondShape())}},{key:"ThirdShape",value:function(){return new MdGeShape(this.imp.ThirdShape())}},{key:"SetMeasuredGeometry",value:function(o,s,c){o instanceof MdGeFace&&arguments.length==1?this.imp.SetMeasuredGeometry(o.getImp()):o instanceof MdGeEdge&&s instanceof MdGeEdge&&arguments.length==2?this.imp.SetMeasuredGeometry(o.getImp(),s.getImp()):o instanceof MdGePoint&&s instanceof MdGePoint&&arguments.length==3&&this.imp.SetMeasuredGeometry(o.getImp(),s.getImp(),c==null?void 0:c.getImp())}},{key:"SetTextPosition",value:function(o){this.imp.SetTextPosition(o.getImp())}},{key:"GetTextPosition",value:function(){return new MdGePoint(this.imp.GetTextPosition())}},{key:"GetDisplayUnits",value:function(){return this.imp.GetDisplayUnits()}},{key:"GetModelUnits",value:function(){return this.imp.GetModelUnits()}},{key:"SetDisplayUnits",value:function(o){this.imp.SetDisplayUnits(o)}},{key:"SetModelUnits",value:function(o){this.imp.SetModelUnits(o)}},{key:"SetType",value:function(o){this.imp.SetType(o)}},{key:"GetType",value:function(){return this.imp.GetType()}},{key:"SetArrowsVisibility",value:function(o){this.imp.SetArrowsVisibility(o)}},{key:"GetArrowsVisibility",value:function(){return this.imp.GetArrowsVisibility()}},{key:"GetValue",value:function(){return this.imp.GetValue()}},{key:"SetComputedValue",value:function(){this.imp.SetComputedValue()}},{key:"SetCustomValue",value:function(o){this.imp.SetCustomValue(o)}},{key:"GetPlane",value:function(){return new MdGePlane(this.imp.GetPlane())}},{key:"GetGeometryType",value:function(){return this.imp.GetGeometryType()}},{key:"SetCustomPlane",value:function(o){this.imp.SetCustomPlane(o.getImp())}},{key:"UnsetCustomPlane",value:function(){this.imp.UnsetCustomPlane()}},{key:"IsTextPositionCustom",value:function(){return this.imp.IsTextPositionCustom()}},{key:"DimensionAspect",value:function(){return new MdGeDimAspect(this.imp.DimensionAspect())}},{key:"SetDimensionAspect",value:function(o){this.imp.SetDimensionAspect(o.getImp())}},{key:"KindOfDimension",value:function(){return this.imp.KindOfDimension()}},{key:"AcceptDisplayMode",value:function(o){return this.imp.AcceptDisplayMode(o)}},{key:"UnsetFixedTextPosition",value:function(){this.imp.UnsetFixedTextPosition()}},{key:"SelToleranceForText2d",value:function(){return this.imp.SelToleranceForText2d()}},{key:"SetSelToleranceForText2d",value:function(o){this.imp.SetSelToleranceForText2d(o)}},{key:"GetFlyout",value:function(){return this.imp.GetFlyout()}},{key:"SetFlyout",value:function(o){this.imp.SetFlyout(o)}},{key:"IsValid",value:function(){return this.imp.IsValid()}},{key:"Display",value:function(){this.imp.Display()}}]),r}(Mx3dBaseObject),MdGeArray1OfInteger=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o){var s;return _classCallCheck$1(this,r),arguments.length==0?(s=e.call(this),s.initTempObject(new mxDraw3d.MdGeArray1OfInteger)):typeof n=="number"&&arguments.length==2?(s=e.call(this),s.initTempObject(new mxDraw3d.MdGeArray1OfInteger(n,o))):n instanceof Object&&arguments.length==1&&(s=e.call(this,n)),_possibleConstructorReturn$1(s)}return _createClass$1(r,[{key:"Init",value:function(o){this.imp.Init(o)}},{key:"Size",value:function(){return this.imp.Size()}},{key:"Length",value:function(){return this.imp.Length()}},{key:"IsEmpty",value:function(){return this.imp.IsEmpty()}},{key:"Lower",value:function(){return this.imp.Lower()}},{key:"Upper",value:function(){return this.imp.Upper()}},{key:"IsDeletable",value:function(){return this.imp.IsDeletable()}},{key:"IsAllocated",value:function(){return this.imp.IsAllocated()}},{key:"First",value:function(){return this.imp.First()}},{key:"Last",value:function(){return this.imp.Last()}},{key:"Value",value:function(o){return this.imp.Value(o)}},{key:"SetValue",value:function(o,s){this.imp.SetValue(o,s)}},{key:"Resize",value:function(o,s,c){this.imp.Resize(o,s,c)}}]),r}(Mx3dBaseObject),MdGeArray1OfPnt=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o){var s;return _classCallCheck$1(this,r),arguments.length==0?(s=e.call(this),s.initTempObject(new mxDraw3d.MdGeArray1OfPnt)):typeof n=="number"&&arguments.length==2?(s=e.call(this),s.initTempObject(new mxDraw3d.MdGeArray1OfPnt(n,o))):n instanceof Object&&arguments.length==1&&(s=e.call(this,n)),_possibleConstructorReturn$1(s)}return _createClass$1(r,[{key:"Init",value:function(o){this.imp.Init(o.getImp())}},{key:"Size",value:function(){return this.imp.Size()}},{key:"Length",value:function(){return this.imp.Length()}},{key:"IsEmpty",value:function(){return this.imp.IsEmpty()}},{key:"Lower",value:function(){return this.imp.Lower()}},{key:"Upper",value:function(){return this.imp.Upper()}},{key:"IsDeletable",value:function(){return this.imp.IsDeletable()}},{key:"IsAllocated",value:function(){return this.imp.IsAllocated()}},{key:"First",value:function(){return new MdGePoint(this.imp.First())}},{key:"Last",value:function(){return new MdGePoint(this.imp.Last())}},{key:"Value",value:function(o){return new MdGePoint(this.imp.Value(o))}},{key:"SetValue",value:function(o,s){this.imp.SetValue(o,s.getImp())}},{key:"Resize",value:function(o,s,c){this.imp.Resize(o,s,c)}}]),r}(Mx3dBaseObject),MdGeArray1OfReal=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o){var s;return _classCallCheck$1(this,r),arguments.length==0?(s=e.call(this),s.initTempObject(new mxDraw3d.MdGeArray1OfReal)):typeof n=="number"&&arguments.length==2?(s=e.call(this),s.initTempObject(new mxDraw3d.MdGeArray1OfReal(n,o))):n instanceof Object&&arguments.length==1&&(s=e.call(this,n)),_possibleConstructorReturn$1(s)}return _createClass$1(r,[{key:"Init",value:function(o){this.imp.Init(o)}},{key:"Size",value:function(){return this.imp.Size()}},{key:"Length",value:function(){return this.imp.Length()}},{key:"IsEmpty",value:function(){return this.imp.IsEmpty()}},{key:"Lower",value:function(){return this.imp.Lower()}},{key:"Upper",value:function(){return this.imp.Upper()}},{key:"IsDeletable",value:function(){return this.imp.IsDeletable()}},{key:"IsAllocated",value:function(){return this.imp.IsAllocated()}},{key:"First",value:function(){return this.imp.First()}},{key:"Last",value:function(){return this.imp.Last()}},{key:"Value",value:function(o){return this.imp.Value(o)}},{key:"SetValue",value:function(o,s){this.imp.SetValue(o,s)}},{key:"Resize",value:function(o,s,c){this.imp.Resize(o,s,c)}}]),r}(Mx3dBaseObject),MdGeArray2OfPnt=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o,s,c,l){var v;return _classCallCheck$1(this,r),arguments.length==0?(v=e.call(this),v.initTempObject(new mxDraw3d.MdGeArray2OfPnt)):typeof n=="number"&&arguments.length==4?(v=e.call(this),v.initTempObject(new mxDraw3d.MdGeArray2OfPnt(n,o,s,c))):n instanceof MdGePoint&&arguments.length==5?(v=e.call(this),v.initTempObject(new mxDraw3d.MdGeArray2OfPnt(n.getImp(),o,s,c,l))):n instanceof Object&&arguments.length==1&&(v=e.call(this,n)),_possibleConstructorReturn$1(v)}return _createClass$1(r,[{key:"Init",value:function(o){this.imp.Init(o.getImp())}},{key:"Size",value:function(){return this.imp.Size()}},{key:"Length",value:function(){return this.imp.Length()}},{key:"NbRows",value:function(){return this.imp.NbRows()}},{key:"NbColumns",value:function(){return this.imp.NbColumns()}},{key:"RowLength",value:function(){return this.imp.RowLength()}},{key:"ColLength",value:function(){return this.imp.ColLength()}},{key:"LowerRow",value:function(){return this.imp.LowerRow()}},{key:"UpperRow",value:function(){return this.imp.UpperRow()}},{key:"LowerCol",value:function(){return this.imp.LowerCol()}},{key:"UpperCol",value:function(){return this.imp.UpperCol()}},{key:"IsDeletable",value:function(){return this.imp.IsDeletable()}},{key:"Value",value:function(o,s){return new MdGePoint(this.imp.Value(o,s))}},{key:"SetValue",value:function(o,s,c){this.imp.SetValue(o,s,c.getImp())}},{key:"Resize",value:function(o,s,c,l,v){this.imp.Resize(o,s,c,l,v)}}]),r}(Mx3dBaseObject),MdGeArray2OfReal=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o,s,c,l){var v;return _classCallCheck$1(this,r),arguments.length==0?(v=e.call(this),v.initTempObject(new mxDraw3d.MdGeArray2OfReal)):typeof n=="number"&&arguments.length==4?(v=e.call(this),v.initTempObject(new mxDraw3d.MdGeArray2OfReal(n,o,s,c))):typeof n=="number"&&arguments.length==5?(v=e.call(this),v.initTempObject(new mxDraw3d.MdGeArray2OfReal(n,o,s,c,l))):n instanceof Object&&arguments.length==1&&(v=e.call(this,n)),_possibleConstructorReturn$1(v)}return _createClass$1(r,[{key:"Init",value:function(o){this.imp.Init(o)}},{key:"Size",value:function(){return this.imp.Size()}},{key:"Length",value:function(){return this.imp.Length()}},{key:"NbRows",value:function(){return this.imp.NbRows()}},{key:"NbColumns",value:function(){return this.imp.NbColumns()}},{key:"RowLength",value:function(){return this.imp.RowLength()}},{key:"ColLength",value:function(){return this.imp.ColLength()}},{key:"LowerRow",value:function(){return this.imp.LowerRow()}},{key:"UpperRow",value:function(){return this.imp.UpperRow()}},{key:"LowerCol",value:function(){return this.imp.LowerCol()}},{key:"UpperCol",value:function(){return this.imp.UpperCol()}},{key:"IsDeletable",value:function(){return this.imp.IsDeletable()}},{key:"Value",value:function(o,s){return this.imp.Value(o,s)}},{key:"SetValue",value:function(o,s,c){this.imp.SetValue(o,s,c)}},{key:"Resize",value:function(o,s,c,l,v){this.imp.Resize(o,s,c,l,v)}}]),r}(Mx3dBaseObject),MdGeBezierCurve=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o){var s;return _classCallCheck$1(this,r),arguments.length==0?(s=e.call(this),s.initTempObject(new mxDraw3d.MdGeBezierCurve)):n instanceof MdGeArray1OfPnt&&arguments.length==1?(s=e.call(this),s.initTempObject(new mxDraw3d.MdGeBezierCurve(n.getImp()))):n instanceof MdGeArray1OfPnt&&arguments.length==2?(s=e.call(this),s.initTempObject(new mxDraw3d.MdGeBezierCurve(n.getImp(),o==null?void 0:o.getImp()))):n instanceof Object&&arguments.length==1&&(s=e.call(this,n)),_possibleConstructorReturn$1(s)}return _createClass$1(r,[{key:"Increase",value:function(o){this.imp.Increase(o)}},{key:"InsertPoleAfter",value:function(o,s,c){arguments.length==2?this.imp.InsertPoleAfter(o,s.getImp()):this.imp.InsertPoleAfter(o,s.getImp(),c)}},{key:"InsertPoleBefore",value:function(o,s,c){arguments.length==2?this.imp.InsertPoleBefore(o,s.getImp()):this.imp.InsertPoleBefore(o,s.getImp(),c)}},{key:"RemovePole",value:function(o){this.imp.RemovePole(o)}},{key:"Reverse",value:function(){this.imp.Reverse()}},{key:"ReversedParameter",value:function(o){return this.imp.ReversedParameter(o)}},{key:"Segment",value:function(o,s){this.imp.Segment(o,s)}},{key:"SetPole",value:function(o,s,c){arguments.length==2?this.imp.SetPole(o,s.getImp()):this.imp.SetPole(o,s.getImp(),c)}},{key:"SetWeight",value:function(o,s){this.imp.SetWeight(o,s)}},{key:"IsClosed",value:function(){return this.imp.IsClosed()}},{key:"IsCN",value:function(o){return this.imp.IsCN(o)}},{key:"IsPeriodic",value:function(){return this.imp.IsPeriodic()}},{key:"IsRational",value:function(){return this.imp.IsRational()}},{key:"Continuity",value:function(){return this.imp.Continuity()}},{key:"Degree",value:function(){return this.imp.Degree()}},{key:"DN",value:function(o,s){return new MdGeVec(this.imp.DN(o,s))}},{key:"StartPoint",value:function(){return new MdGePoint(this.imp.StartPoint())}},{key:"EndPoint",value:function(){return new MdGePoint(this.imp.EndPoint())}},{key:"FirstParameter",value:function(){return this.imp.FirstParameter()}},{key:"LastParameter",value:function(){return this.imp.LastParameter()}},{key:"NbPoles",value:function(){return this.imp.NbPoles()}},{key:"Pole",value:function(o){return new MdGePoint(this.imp.Pole(o))}},{key:"Poles",value:function(){return new MdGeArray1OfPnt(this.imp.Poles())}},{key:"Weight",value:function(o){return this.imp.Weight(o)}},{key:"Weights",value:function(){return new MdGeArray1OfReal(this.imp.Weights())}},{key:"Transform",value:function(o){this.imp.Transform(o.getImp())}},{key:"Shape",value:function(){return new MdGeShape(this.imp.Shape())}},{key:"Edge",value:function(){return new MdGeEdge(this.imp.Edge())}},{key:"Wire",value:function(){return new MdGeWire(this.imp.Wire())}}],[{key:"MaxDegree",value:function(){return mxDraw3d.MdGeBezierCurve.MaxDegree()}}]),r}(Mx3dBaseObject),MdGeBezierSurface=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o){var s;return _classCallCheck$1(this,r),arguments.length==0?(s=e.call(this),s.initTempObject(new mxDraw3d.MdGeBezierSurface)):n instanceof MdGeArray2OfPnt&&arguments.length==1?(s=e.call(this),s.initTempObject(new mxDraw3d.MdGeBezierSurface(n.getImp()))):n instanceof MdGeArray2OfPnt&&arguments.length==2?(s=e.call(this),s.initTempObject(new mxDraw3d.MdGeBezierSurface(n.getImp(),o==null?void 0:o.getImp()))):n instanceof Object&&arguments.length==1&&(s=e.call(this,n)),_possibleConstructorReturn$1(s)}return _createClass$1(r,[{key:"ExchangeUV",value:function(){this.imp.ExchangeUV()}},{key:"Increase",value:function(o,s){this.imp.Increase(o,s)}},{key:"InsertPoleColAfter",value:function(o,s,c){arguments.length==2?this.imp.InsertPoleColAfter(o,s.getImp()):this.imp.InsertPoleColAfter(o,s.getImp(),c==null?void 0:c.getImp())}},{key:"InsertPoleColBefore",value:function(o,s,c){arguments.length==2?this.imp.InsertPoleColBefore(o,s.getImp()):this.imp.InsertPoleColBefore(o,s.getImp(),c==null?void 0:c.getImp())}},{key:"InsertPoleRowAfter",value:function(o,s,c){arguments.length==2?this.imp.InsertPoleRowAfter(o,s.getImp()):this.imp.InsertPoleRowAfter(o,s.getImp(),c==null?void 0:c.getImp())}},{key:"InsertPoleRowBefore",value:function(o,s,c){arguments.length==2?this.imp.InsertPoleRowBefore(o,s.getImp()):this.imp.InsertPoleRowBefore(o,s.getImp(),c==null?void 0:c.getImp())}},{key:"RemovePoleCol",value:function(o){this.imp.RemovePoleCol(o)}},{key:"RemovePoleRow",value:function(o){this.imp.RemovePoleRow(o)}},{key:"Segment",value:function(o,s,c,l){this.imp.Segment(o,s,c,l)}},{key:"SetPole",value:function(o,s,c,l){arguments.length==3?this.imp.SetPole(o,s,c.getImp()):this.imp.SetPole(o,s,c.getImp(),l)}},{key:"SetPoleCol",value:function(o,s,c){arguments.length==2?this.imp.SetPoleCol(o,s.getImp()):this.imp.SetPoleCol(o,s.getImp(),c==null?void 0:c.getImp())}},{key:"SetPoleRow",value:function(o,s,c){arguments.length==2?this.imp.SetPoleRow(o,s.getImp()):this.imp.SetPoleRow(o,s.getImp(),c==null?void 0:c.getImp())}},{key:"SetWeight",value:function(o,s,c){this.imp.SetWeight(o,s,c)}},{key:"SetWeightCol",value:function(o,s){this.imp.SetWeightCol(o,s.getImp())}},{key:"SetWeightRow",value:function(o,s){this.imp.SetWeightRow(o,s.getImp())}},{key:"UReverse",value:function(){this.imp.UReverse()}},{key:"UReversedParameter",value:function(o){return this.imp.UReversedParameter(o)}},{key:"VReverse",value:function(){this.imp.VReverse()}},{key:"VReversedParameter",value:function(o){return this.imp.VReversedParameter(o)}},{key:"Continuity",value:function(){return this.imp.Continuity()}},{key:"DN",value:function(o,s,c,l){return new MdGeVec(this.imp.DN(o,s,c,l))}},{key:"NbUPoles",value:function(){return this.imp.NbUPoles()}},{key:"NbVPoles",value:function(){return this.imp.NbVPoles()}},{key:"Pole",value:function(o,s){return new MdGePoint(this.imp.Pole(o,s))}},{key:"Poles",value:function(){return new MdGeArray2OfPnt(this.imp.Poles())}},{key:"UDegree",value:function(){return this.imp.UDegree()}},{key:"VDegree",value:function(){return this.imp.VDegree()}},{key:"Weight",value:function(o,s){return this.imp.Weight(o,s)}},{key:"Weights",value:function(){return new MdGeArray2OfReal(this.imp.Weights())}},{key:"IsUClosed",value:function(){return this.imp.IsUClosed()}},{key:"IsVClosed",value:function(){return this.imp.IsVClosed()}},{key:"IsCNu",value:function(o){return this.imp.IsCNu(o)}},{key:"IsCNv",value:function(o){return this.imp.IsCNv(o)}},{key:"IsUPeriodic",value:function(){return this.imp.IsUPeriodic()}},{key:"IsVPeriodic",value:function(){return this.imp.IsVPeriodic()}},{key:"IsURational",value:function(){return this.imp.IsURational()}},{key:"IsVRational",value:function(){return this.imp.IsVRational()}},{key:"Transform",value:function(o){this.imp.Transform(o.getImp())}},{key:"Shape",value:function(){return new MdGeShape(this.imp.Shape())}},{key:"Face",value:function(){return new MdGeFace(this.imp.Face())}}],[{key:"MaxDegree",value:function(){return mxDraw3d.MdGeBezierSurface.MaxDegree()}}]),r}(Mx3dBaseObject),MdGeChamfer=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),arguments.length==0?(o=e.call(this),o.initTempObject(new mxDraw3d.MdGeChamfer)):n instanceof MdGeShape?(o=e.call(this),o.initTempObject(new mxDraw3d.MdGeChamfer(n.getImp()))):n instanceof Object&&(o=e.call(this,n)),_possibleConstructorReturn$1(o)}return _createClass$1(r,[{key:"Add",value:function(o,s,c,l){if(o instanceof MdGeEdge&&arguments.length==1)return this.imp.Add(o.getImp());if(typeof o=="number"&&s instanceof MdGeEdge&&arguments.length==2)return this.imp.Add(o,s.getImp());if(typeof o=="number"&&typeof s=="number"&&arguments.length==4)return this.imp.Add(o,s,c==null?void 0:c.getImp(),l==null?void 0:l.getImp())}},{key:"SetDist",value:function(o,s,c){this.imp.SetDist(o,s,c.getImp())}},{key:"GetDist",value:function(o,s){this.imp.GetDist(o,s)}},{key:"SetDists",value:function(o,s,c,l){this.imp.SetDists(o,s,c,l.getImp())}},{key:"Dists",value:function(o,s,c){this.imp.Dists(o,s,c)}},{key:"AddDA",value:function(o,s,c,l){this.imp.AddDa(o,s,c.getImp(),l.getImp())}},{key:"SetDistAngle",value:function(o,s,c,l){this.imp.SetDistAngle(o,s,c,l.getImp())}},{key:"GetDistAngle",value:function(o,s,c){this.imp.GetDistAngle(o,s,c)}},{key:"SetMode",value:function(o){this.imp.SetMode(o)}},{key:"IsSymetric",value:function(o){return this.imp.IsSymetric(o)}},{key:"IsTwoDistances",value:function(o){return this.imp.IsTwoDistances(o)}},{key:"IsDistanceAngle",value:function(o){return this.imp.IsDistanceAngle(o)}},{key:"ResetContour",value:function(o){this.imp.ResetContour(o)}},{key:"NbContours",value:function(){return this.imp.NbContours()}},{key:"Contour",value:function(o){return this.imp.Contour(o.getImp())}},{key:"NbEdges",value:function(o){return this.imp.NbEdges(o)}},{key:"Edge",value:function(o,s){return new MdGeEdge(this.imp.Edge(o,s))}},{key:"Remove",value:function(o){this.imp.Remove(o.getImp())}},{key:"Length",value:function(o){return this.imp.Length(o)}},{key:"FirstVertex",value:function(o){return new MdGeVertex(this.imp.FirstVertex(o))}},{key:"LastVertex",value:function(o){return new MdGeVertex(this.imp.LastVertex(o))}},{key:"Abscissa",value:function(o,s){return this.imp.Abscissa(o,s)}},{key:"RelativeAbscissa",value:function(o,s){return this.imp.RelativeAbscissa(o,s.getImp())}},{key:"ClosedAndTangent",value:function(o){return this.imp.ClosedAndTangent(o)}},{key:"Closed",value:function(o){return this.imp.Closed(o)}},{key:"Reset",value:function(){this.imp.Reset()}},{key:"Simulate",value:function(o){this.imp.Simulate(o)}},{key:"NbSurf",value:function(o){return this.imp.NbSurf(o)}},{key:"Shape",value:function(){return new MdGeShape(this.imp.Shape())}}]),r}(Mx3dBaseObject),MdGeCircle=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o){var s;return _classCallCheck$1(this,r),arguments.length==0?(s=e.call(this),s.initTempObject(new mxDraw3d.MdGeCircle)):n instanceof MdGeCSYSR&&arguments.length==2?(s=e.call(this),s.initTempObject(new mxDraw3d.MdGeCircle(n.getImp(),o))):n instanceof Object&&arguments.length==1&&(s=e.call(this,n)),_possibleConstructorReturn$1(s)}return _createClass$1(r,[{key:"SetAxis",value:function(o){this.imp.SetAxis(o.getImp())}},{key:"SetLocation",value:function(o){this.imp.SetLocation(o.getImp())}},{key:"SetPosition",value:function(o){this.imp.SetPosition(o.getImp())}},{key:"SetRadius",value:function(o){this.imp.SetRadius(o)}},{key:"Area",value:function(){return this.imp.Area()}},{key:"Axis",value:function(){return new MdGeAxis(this.imp.Axis())}},{key:"Length",value:function(){return this.imp.Length()}},{key:"Location",value:function(){return new MdGePoint(this.imp.Location())}},{key:"Position",value:function(){return new MdGeCSYSR(this.imp.Position())}},{key:"Radius",value:function(){return this.imp.Radius()}},{key:"XAxis",value:function(){return new MdGeAxis(this.imp.XAxis())}},{key:"YAxis",value:function(){return new MdGeAxis(this.imp.YAxis())}},{key:"Distance",value:function(o){return this.imp.Distance(o.getImp())}},{key:"SquareDistance",value:function(o){return this.imp.SquareDistance(o.getImp())}},{key:"Contains",value:function(o,s){return this.imp.Contains(o.getImp(),s)}},{key:"MirrorByPoint",value:function(o){this.imp.MirrorByPoint(o.getImp())}},{key:"MirroredByPoint",value:function(o){return new r(this.imp.MirroredByPoint(o.getImp()))}},{key:"MirrorByAxis",value:function(o){this.imp.MirrorByAxis(o.getImp())}},{key:"MirroredByAxis",value:function(o){return new r(this.imp.MirroredByAxis(o.getImp()))}},{key:"MirrorByCSYSR",value:function(o){this.imp.MirrorByCSYSR(o.getImp())}},{key:"MirroredByCSYSR",value:function(o){return new r(o.getImp())}},{key:"Rotate",value:function(o,s){this.imp.Rotate(o.getImp(),s)}},{key:"Rotated",value:function(o,s){return new r(this.imp.Rotated(o.getImp(),s))}},{key:"Scale",value:function(o,s){this.imp.Scale(o.getImp(),s)}},{key:"Scaled",value:function(o,s){return new r(this.imp.Scaled(o.getImp(),s))}},{key:"Transform",value:function(o){this.imp.Transform(o.getImp())}},{key:"Transformed",value:function(o){return new r(this.imp.Transformed(o.getImp()))}},{key:"TranslateByVec",value:function(o){this.imp.TranslateByVec(o.getImp())}},{key:"TranslatedByVec",value:function(o){return new r(this.imp.TranslatedByVec(o.getImp()))}},{key:"TranslateBy2Points",value:function(o,s){this.imp.TranslateBy2Points(o.getImp(),s.getImp())}},{key:"TranslatedBy2Points",value:function(o,s){return new r(this.imp.TranslatedBy2Points(o.getImp(),s.getImp()))}},{key:"Shape",value:function(){return new MdGeShape(this.imp.Shape())}},{key:"Edge",value:function(o,s){return arguments.length==2?new MdGeEdge(this.imp.Edge(o,s)):new MdGeEdge(this.imp.Edge())}},{key:"Wire",value:function(){return new MdGeWire(this.imp.Wire())}}]),r}(Mx3dBaseObject),MdGeCSYS=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o,s){var c;return _classCallCheck$1(this,r),arguments.length==0?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeCSYS)):n instanceof MdGePoint&&arguments.length==2?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeCSYS(n.getImp(),o==null?void 0:o.getImp()))):n instanceof MdGePoint&&arguments.length==3?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeCSYS(n.getImp(),o==null?void 0:o.getImp(),s==null?void 0:s.getImp()))):n instanceof Object&&arguments.length==1&&(c=e.call(this,n)),_possibleConstructorReturn$1(c)}return _createClass$1(r,[{key:"XReverse",value:function(){this.imp.XReverse()}},{key:"YReverse",value:function(){this.imp.YReverse()}},{key:"ZReverse",value:function(){this.imp.ZReverse()}},{key:"SetZAxis",value:function(o){this.imp.SetZAxis(o.getImp())}},{key:"SetZDirection",value:function(o){this.imp.SetZDirection(o.getImp())}},{key:"SetOrigin",value:function(o,s,c){o instanceof MdGePoint&&arguments.length==1?this.imp.SetOrigin(o.getImp()):typeof o=="number"&&arguments.length==3&&this.imp.SetOrigin(o,s,c)}},{key:"SetXDirection",value:function(o){this.imp.SetXDirection(o.getImp())}},{key:"SetYDirection",value:function(o){this.imp.SetYDirection(o.getImp())}},{key:"Angle",value:function(o){return this.imp.Angle(o.imp)}},{key:"ZAxis",value:function(){return new MdGeAxis(this.imp.ZAxis())}},{key:"CSYSR",value:function(){return new MdGeCSYSR(this.imp.CSYSR())}},{key:"ZDirection",value:function(){return new MdGeDir(this.imp.ZDirection())}},{key:"Origin",value:function(){return new MdGePoint(this.imp.Origin())}},{key:"XDirection",value:function(){return new MdGeDir(this.imp.XDirection())}},{key:"YDirection",value:function(){return new MdGeDir(this.imp.YDirection())}},{key:"Direct",value:function(){return this.imp.Direct()}},{key:"IsCoplanarWithCSYS",value:function(o,s,c){return this.imp.IsCoplanarWithCSYS(o.imp,s,c)}},{key:"IsCoplanarWithAxis",value:function(o,s,c){return this.imp.IsCoplanarWithAxis(o.getImp(),s,c)}},{key:"MirrorByPoint",value:function(o){this.imp.MirrorByPoint(o.getImp())}},{key:"MirroredByPoint",value:function(o){return new r(this.imp.MirroredByPoint(o.getImp()))}},{key:"MirrorByAxis",value:function(o){this.imp.MirrorByAxis(o.getImp())}},{key:"MirroredByAxis",value:function(o){return new r(this.imp.MirroredByAxis(o.getImp()))}},{key:"MirrorByCSYSR",value:function(o){this.imp.MirrorByCSYSR(o.getImp())}},{key:"MirroredByCSYSR",value:function(o){return new r(o.getImp())}},{key:"Rotate",value:function(o,s){this.imp.Rotate(o.getImp(),s)}},{key:"Rotated",value:function(o,s){return new r(this.imp.Rotated(o.getImp(),s))}},{key:"Scale",value:function(o,s){this.imp.Scale(o.getImp(),s)}},{key:"Scaled",value:function(o,s){return new r(this.imp.Scaled(o.getImp(),s))}},{key:"Transform",value:function(o){this.imp.Transform(o.getImp())}},{key:"Transformed",value:function(o){return new r(this.imp.Transformed(o.getImp()))}},{key:"TranslateByVec",value:function(o){this.imp.TranslateByVec(o.getImp())}},{key:"TranslatedByVec",value:function(o){return new r(this.imp.TranslatedByVec(o.getImp()))}},{key:"TranslateBy2Points",value:function(o,s){this.imp.TranslateBy2Points(o.getImp(),s.getImp())}},{key:"TranslatedBy2Points",value:function(o,s){return new r(this.imp.TranslatedBy2Points(o.getImp(),s.getImp()))}}]),r}(Mx3dBaseObject),MdGeCone=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o,s){var c;return _classCallCheck$1(this,r),arguments.length==0?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeCone)):n instanceof MdGeCSYS&&arguments.length==3?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeCone(n.getImp(),o,s))):n instanceof Object&&arguments.length==1&&(c=e.call(this,n)),_possibleConstructorReturn$1(c)}return _createClass$1(r,[{key:"SetAxis",value:function(o){this.imp.SetAxis(o.getImp())}},{key:"SetLocation",value:function(o){this.imp.SetLocation(o.getImp())}},{key:"SetPosition",value:function(o){this.imp.SetPosition(o.getImp())}},{key:"SetRadius",value:function(o){this.imp.SetRadius(o)}},{key:"SetSemiAngle",value:function(o){this.imp.SetSemiAngle(o)}},{key:"Apex",value:function(){return new MdGePoint(this.imp.Apex())}},{key:"UReverse",value:function(){this.imp.UReverse()}},{key:"VReverse",value:function(){this.imp.VReverse()}},{key:"Direct",value:function(){return this.imp.Direct()}},{key:"Axis",value:function(){return new MdGeAxis(this.imp.Axis())}},{key:"Location",value:function(){return new MdGePoint(this.imp.Location())}},{key:"Position",value:function(){return new MdGeCSYS(this.imp.Position())}},{key:"RefRadius",value:function(){return this.imp.RefRadius()}},{key:"SemiAngle",value:function(){return this.imp.SemiAngle()}},{key:"XAxis",value:function(){return new MdGeAxis(this.imp.XAxis())}},{key:"YAxis",value:function(){return new MdGeAxis(this.imp.YAxis())}},{key:"MirrorByPoint",value:function(o){this.imp.MirrorByPoint(o.getImp())}},{key:"MirroredByPoint",value:function(o){return new r(this.imp.MirroredByPoint(o.getImp()))}},{key:"MirrorByAxis",value:function(o){this.imp.MirrorByAxis(o.getImp())}},{key:"MirroredByAxis",value:function(o){return new r(this.imp.MirroredByAxis(o.getImp()))}},{key:"MirrorByCSYSR",value:function(o){this.imp.MirrorByCSYSR(o.getImp())}},{key:"MirroredByCSYSR",value:function(o){return new r(this.imp.MirroredByCSYSR(o.getImp()))}},{key:"Rotate",value:function(o,s){this.imp.Rotate(o.getImp(),s)}},{key:"Rotated",value:function(o,s){return new r(this.imp.Rotated(o.getImp(),s))}},{key:"Scale",value:function(o,s){this.imp.Scale(o.getImp(),s)}},{key:"Scaled",value:function(o,s){return new r(this.imp.Scaled(o.getImp(),s))}},{key:"Transform",value:function(o){this.imp.Transform(o.getImp())}},{key:"Transformed",value:function(o){return new r(this.imp.Transformed(o.getImp()))}},{key:"TranslateByVec",value:function(o){this.imp.TranslateByVec(o.getImp())}},{key:"TranslatedByVec",value:function(o){return new r(this.imp.TranslatedByVec(o.getImp()))}},{key:"TranslateBy2Points",value:function(o,s){this.imp.TranslateBy2Points(o.getImp(),s.getImp())}},{key:"TranslatedBy2Points",value:function(o,s){return new r(this.imp.TranslatedBy2Points(o.getImp(),s.getImp()))}},{key:"Shape",value:function(o,s){return arguments.length==1?new MdGeShape(this.imp.Shape(o)):new MdGeShape(this.imp.Shape(o,s))}},{key:"Face",value:function(o,s,c,l){return o instanceof MdGeWire&&arguments.length==1?new MdGeFace(this.imp.Face(o.getImp())):o instanceof MdGeWire&&typeof s=="boolean"&&arguments.length==2?new MdGeFace(this.imp.Face(o.getImp(),s)):typeof o=="number"&&typeof s=="number"&&arguments.length==4?new MdGeFace(this.imp.Face(o,s,c,l)):new MdGeFace(this.imp.Face())}}]),r}(Mx3dBaseObject),MdGeCylinder=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o){var s;return _classCallCheck$1(this,r),arguments.length==0?(s=e.call(this),s.initTempObject(new mxDraw3d.MdGeCylinder)):n instanceof MdGeCSYS&&arguments.length==2?(s=e.call(this),s.initTempObject(new mxDraw3d.MdGeCylinder(n.getImp(),o))):n instanceof Object&&arguments.length==1&&(s=e.call(this,n)),_possibleConstructorReturn$1(s)}return _createClass$1(r,[{key:"SetAxis",value:function(o){this.imp.SetAxis(o.getImp())}},{key:"SetLocation",value:function(o){this.imp.SetLocation(o.getImp())}},{key:"SetPosition",value:function(o){this.imp.SetPosition(o.getImp())}},{key:"SetRadius",value:function(o){this.imp.SetRadius(o)}},{key:"UReverse",value:function(){this.imp.UReverse()}},{key:"VReverse",value:function(){this.imp.VReverse()}},{key:"Direct",value:function(){return this.imp.Direct()}},{key:"Axis",value:function(){return new MdGeAxis(this.imp.Axis())}},{key:"Location",value:function(){return new MdGePoint(this.imp.Location())}},{key:"Position",value:function(){return new MdGeCSYS(this.imp.Position())}},{key:"Radius",value:function(){return this.imp.Radius()}},{key:"XAxis",value:function(){return new MdGeAxis(this.imp.XAxis())}},{key:"YAxis",value:function(){return new MdGeAxis(this.imp.YAxis())}},{key:"MirrorByPoint",value:function(o){this.imp.MirrorByPoint(o.getImp())}},{key:"MirroredByPoint",value:function(o){return new r(this.imp.MirroredByPoint(o.getImp()))}},{key:"MirrorByAxis",value:function(o){this.imp.MirrorByAxis(o.getImp())}},{key:"MirroredByAxis",value:function(o){return new r(this.imp.MirroredByAxis(o.getImp()))}},{key:"MirrorByCSYSR",value:function(o){this.imp.MirrorByCSYSR(o.getImp())}},{key:"MirroredByCSYSR",value:function(o){return new r(this.imp.MirroredByCSYSR(o.getImp()))}},{key:"Rotate",value:function(o,s){this.imp.Rotate(o.getImp(),s)}},{key:"Rotated",value:function(o,s){return new r(this.imp.Rotated(o.getImp(),s))}},{key:"Scale",value:function(o,s){this.imp.Scale(o.getImp(),s)}},{key:"Scaled",value:function(o,s){return new r(this.imp.Scaled(o.getImp(),s))}},{key:"Transform",value:function(o){this.imp.Transform(o.getImp())}},{key:"Transformed",value:function(o){return new r(this.imp.Transformed(o.getImp()))}},{key:"TranslateByVec",value:function(o){this.imp.TranslateByVec(o.getImp())}},{key:"TranslatedByVec",value:function(o){return new r(this.imp.TranslatedByVec(o.getImp()))}},{key:"TranslateBy2Points",value:function(o,s){this.imp.TranslateBy2Points(o.getImp(),s.getImp())}},{key:"TranslatedBy2Points",value:function(o,s){return new r(this.imp.TranslatedBy2Points(o.getImp(),s.getImp()))}},{key:"Shape",value:function(o,s){return arguments.length==1?new MdGeShape(this.imp.Shape(o)):new MdGeShape(this.imp.Shape(o,s))}},{key:"Face",value:function(o,s,c,l){return o instanceof MdGeWire&&arguments.length==1?new MdGeFace(this.imp.Face(o.getImp())):o instanceof MdGeWire&&typeof s=="boolean"&&arguments.length==2?new MdGeFace(this.imp.Face(o.getImp(),s)):typeof o=="number"&&typeof s=="number"&&arguments.length==4?new MdGeFace(this.imp.Face(o,s,c,l)):new MdGeFace(this.imp.Face())}},{key:"Shape3d",value:function(o,s){return arguments.length==1?new Mx3dShapeObject(this.imp.Shape3d(o)):new Mx3dShapeObject(this.imp.Shape3d(o,s))}}]),r}(Mx3dBaseObject),MdGePlane=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o,s,c){var l;return _classCallCheck$1(this,r),arguments.length==0?(l=e.call(this),l.initTempObject(new mxDraw3d.MdGePlane)):n instanceof MdGeCSYS&&arguments.length==1?(l=e.call(this),l.initTempObject(new mxDraw3d.MdGePlane(n.getImp()))):n instanceof MdGePoint&&o instanceof MdGeDir&&arguments.length==2?(l=e.call(this),l.initTempObject(new mxDraw3d.MdGePlane(n.getImp(),o.getImp()))):typeof n=="number"&&typeof o=="number"&&arguments.length==4?(l=e.call(this),l.initTempObject(new mxDraw3d.MdGePlane(n,o,s,c))):n instanceof Object&&arguments.length==1&&(l=e.call(this,n)),_possibleConstructorReturn$1(l)}return _createClass$1(r,[{key:"SetAxis",value:function(o){this.imp.SetAxis(o.getImp())}},{key:"SetLocation",value:function(o){this.imp.SetLocation(o.getImp())}},{key:"SetPosition",value:function(o){this.imp.SetPosition(o.getImp())}},{key:"UReverse",value:function(){this.imp.UReverse()}},{key:"VReverse",value:function(){this.imp.VReverse()}},{key:"Direct",value:function(){return this.imp.Direct()}},{key:"Axis",value:function(){return new MdGeAxis(this.imp.Axis())}},{key:"Location",value:function(){return new MdGePoint(this.imp.Location())}},{key:"Position",value:function(){return new MdGeCSYS(this.imp.Position())}},{key:"DistanceToPoint",value:function(o){return this.imp.DistanceToPoint(o.getImp())}},{key:"DistanceToPlane",value:function(o){return this.imp.DistanceToPlane(o.imp)}},{key:"SquareDistanceToPoint",value:function(o){return this.imp.SquareDistanceToPoint(o.getImp())}},{key:"SquareDistanceToPlane",value:function(o){return this.imp.SquareDistanceToPlane(o.imp)}},{key:"XAxis",value:function(){return new MdGeAxis(this.imp.XAxis())}},{key:"YAxis",value:function(){return new MdGeAxis(this.imp.YAxis())}},{key:"Contains",value:function(o,s){return this.imp.Contains(o.getImp(),s)}},{key:"MirrorByPoint",value:function(o){this.imp.MirrorByPoint(o.getImp())}},{key:"MirroredByPoint",value:function(o){return new r(this.imp.MirroredByPoint(o.getImp()))}},{key:"MirrorByAxis",value:function(o){this.imp.MirrorByAxis(o.getImp())}},{key:"MirroredByAxis",value:function(o){return new r(this.imp.MirroredByAxis(o.getImp()))}},{key:"MirrorByCSYSR",value:function(o){this.imp.MirrorByCSYSR(o.getImp())}},{key:"MirroredByCSYSR",value:function(o){return new r(this.imp.MirroredByCSYSR(o.getImp()))}},{key:"Rotate",value:function(o,s){this.imp.Rotate(o.getImp(),s)}},{key:"Rotated",value:function(o,s){return new r(this.imp.Rotated(o.getImp(),s))}},{key:"Scale",value:function(o,s){this.imp.Scale(o.getImp(),s)}},{key:"Scaled",value:function(o,s){return new r(this.imp.Scaled(o.getImp(),s))}},{key:"Transform",value:function(o){this.imp.Transform(o.getImp())}},{key:"Transformed",value:function(o){return new r(this.imp.Transformed(o.getImp()))}},{key:"TranslateByVec",value:function(o){this.imp.TranslateByVec(o.getImp())}},{key:"TranslatedByVec",value:function(o){return new r(this.imp.TranslatedByVec(o.getImp()))}},{key:"TranslateBy2Points",value:function(o,s){this.imp.TranslateBy2Points(o.getImp(),s.getImp())}},{key:"TranslatedBy2Points",value:function(o,s){return new r(this.imp.TranslatedBy2Points(o.getImp(),s.getImp()))}},{key:"Face",value:function(o,s,c,l){return o instanceof MdGeWire&&arguments.length==1?new MdGeFace(this.imp.Face(o.getImp())):o instanceof MdGeWire&&typeof s=="boolean"&&arguments.length==2?new MdGeFace(this.imp.Face(o.getImp(),s)):typeof o=="number"&&typeof s=="number"&&arguments.length==4?new MdGeFace(this.imp.Face(o,s,c,l)):new MdGeFace(this.imp.Face())}}]),r}(Mx3dBaseObject),MdGeDiameterDim=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o){var s;return _classCallCheck$1(this,r),arguments.length==0?(s=e.call(this),s.initTempObject(new mxDraw3d.MdGeDiameterDim)):n instanceof MdGeCircle&&arguments.length==1?(s=e.call(this),s.initTempObject(new mxDraw3d.MdGeDiameterDim(n.getImp()))):n instanceof MdGeCircle&&arguments.length==2?(s=e.call(this),s.initTempObject(new mxDraw3d.MdGeDiameterDim(n.getImp(),o==null?void 0:o.getImp()))):n instanceof Object&&arguments.length==1&&(s=e.call(this,n)),_possibleConstructorReturn$1(s)}return _createClass$1(r,[{key:"Circle",value:function(){return new MdGeCircle(this.imp.Circle())}},{key:"AnchorPoint",value:function(){return new MdGePoint(this.imp.AnchorPoint())}},{key:"Shape",value:function(){return new MdGeShape(this.imp.Shape())}},{key:"SetMeasuredGeometry",value:function(o){this.imp.SetMeasuredGeometry(o.getImp())}},{key:"SetTextPosition",value:function(o){this.imp.SetTextPosition(o.getImp())}},{key:"GetTextPosition",value:function(){return new MdGePoint(this.imp.GetTextPosition())}},{key:"SetDisplayUnits",value:function(o){this.imp.SetDisplayUnits(o)}},{key:"SetModelUnits",value:function(o){this.imp.SetModelUnits(o)}},{key:"GetValue",value:function(){return this.imp.GetValue()}},{key:"SetComputedValue",value:function(){this.imp.SetComputedValue()}},{key:"SetCustomValue",value:function(o){this.imp.SetCustomValue(o)}},{key:"GetPlane",value:function(){return new MdGePlane(this.imp.GetPlane())}},{key:"GetGeometryType",value:function(){return this.imp.GetGeometryType()}},{key:"SetCustomPlane",value:function(o){this.imp.SetCustomPlane(o.getImp())}},{key:"UnsetCustomPlane",value:function(){this.imp.UnsetCustomPlane()}},{key:"IsTextPositionCustom",value:function(){return this.imp.IsTextPositionCustom()}},{key:"DimensionAspect",value:function(){return new MdGeDimAspect(this.imp.DimensionAspect())}},{key:"SetDimensionAspect",value:function(o){this.imp.SetDimensionAspect(o.getImp())}},{key:"KindOfDimension",value:function(){return this.imp.KindOfDimension()}},{key:"AcceptDisplayMode",value:function(o){return this.imp.AcceptDisplayMode(o)}},{key:"UnsetFixedTextPosition",value:function(){this.imp.UnsetFixedTextPosition()}},{key:"SelToleranceForText2d",value:function(){return this.imp.SelToleranceForText2d()}},{key:"SetSelToleranceForText2d",value:function(o){this.imp.SetSelToleranceForText2d(o)}},{key:"GetFlyout",value:function(){return this.imp.GetFlyout()}},{key:"SetFlyout",value:function(o){this.imp.SetFlyout(o)}},{key:"IsValid",value:function(){return this.imp.IsValid()}},{key:"Display",value:function(){this.imp.Display()}}]),r}(Mx3dBaseObject),MdGeEllipse=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o,s){var c;return _classCallCheck$1(this,r),arguments.length==0?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeEllipse)):n instanceof MdGeCSYSR&&arguments.length==3?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeEllipse(n.getImp(),o,s))):n instanceof Object&&arguments.length==1&&(c=e.call(this,n)),_possibleConstructorReturn$1(c)}return _createClass$1(r,[{key:"SetAxis",value:function(o){this.imp.SetAxis(o.getImp())}},{key:"SetLocation",value:function(o){this.imp.SetLocation(o.getImp())}},{key:"SetMajorRadius",value:function(o){this.imp.SetMajorRadius(o)}},{key:"SetMinorRadius",value:function(o){this.imp.SetMinorRadius(o)}},{key:"SetPosition",value:function(o){this.imp.SetPosition(o.getImp())}},{key:"Area",value:function(){return this.imp.Area()}},{key:"Axis",value:function(){return new MdGeAxis(this.imp.Axis())}},{key:"Directrix1",value:function(){return new MdGeAxis(this.imp.Directrix1())}},{key:"Directrix2",value:function(){return new MdGeAxis(this.imp.Directrix2())}},{key:"Eccentricity",value:function(){return this.imp.Eccentricity()}},{key:"Focal",value:function(){return this.imp.Focal()}},{key:"Focus1",value:function(){return new MdGePoint(this.imp.Focus1())}},{key:"Focus2",value:function(){return new MdGePoint(this.imp.Focus2())}},{key:"Location",value:function(){return new MdGePoint(this.imp.Location())}},{key:"MajorRadius",value:function(){return this.imp.MajorRadius()}},{key:"MinorRadius",value:function(){return this.imp.MinorRadius()}},{key:"Parameter",value:function(){return this.imp.Parameter()}},{key:"Position",value:function(){return new MdGeCSYSR(this.imp.Position())}},{key:"XAxis",value:function(){return new MdGeAxis(this.imp.XAxis())}},{key:"YAxis",value:function(){return new MdGeAxis(this.imp.YAxis())}},{key:"MirrorByPoint",value:function(o){this.imp.MirrorByPoint(o.getImp())}},{key:"MirroredByPoint",value:function(o){return new r(this.imp.MirroredByPoint(o.getImp()))}},{key:"MirrorByAxis",value:function(o){this.imp.MirrorByAxis(o.getImp())}},{key:"MirroredByAxis",value:function(o){return new r(this.imp.MirroredByAxis(o.getImp()))}},{key:"MirrorByCSYSR",value:function(o){this.imp.MirrorByCSYSR(o.getImp())}},{key:"MirroredByCSYSR",value:function(o){return new r(this.imp.MirroredByCSYSR(o.getImp()))}},{key:"Rotate",value:function(o,s){this.imp.Rotate(o.getImp(),s)}},{key:"Rotated",value:function(o,s){return new r(this.imp.Rotated(o.getImp(),s))}},{key:"Scale",value:function(o,s){this.imp.Scale(o.getImp(),s)}},{key:"Scaled",value:function(o,s){return new r(o.getImp(),s)}},{key:"Transform",value:function(o){this.imp.Transform(o.getImp())}},{key:"Transformed",value:function(o){return new r(this.Transformed(o.getImp()))}},{key:"Shape",value:function(){return new MdGeShape(this.imp.Shape())}},{key:"Wire",value:function(){return new MdGeWire(this.imp.Wire())}},{key:"Edge",value:function(o,s){return arguments.length==2?new MdGeEdge(this.imp.Edge(o,s)):new MdGeEdge(this.imp.Edge())}}]),r}(Mx3dBaseObject),MdGe;(function(t){(function(e){e[e.Enum_COMPOUND=0]="Enum_COMPOUND",e[e.Enum_COMPSOLID=1]="Enum_COMPSOLID",e[e.Enum_SOLID=2]="Enum_SOLID",e[e.Enum_SHELL=3]="Enum_SHELL",e[e.Enum_FACE=4]="Enum_FACE",e[e.Enum_WIRE=5]="Enum_WIRE",e[e.Enum_EDGE=6]="Enum_EDGE",e[e.Enum_VERTEX=7]="Enum_VERTEX",e[e.Enum_SHAPE=8]="Enum_SHAPE"})(t.MxShapeEnum||(t.MxShapeEnum={})),function(e){e[e.HTA_LEFT=0]="HTA_LEFT",e[e.HTA_CENTER=1]="HTA_CENTER",e[e.HTA_RIGHT=2]="HTA_RIGHT"}(t.MxHorizontalTextAlignment||(t.MxHorizontalTextAlignment={})),function(e){e[e.CVTA_BOTTOM=0]="CVTA_BOTTOM",e[e.CVTA_CENTER=1]="CVTA_CENTER",e[e.CVTA_TOP=2]="CVTA_TOP",e[e.CVTA_TOPFIRSTLINE=3]="CVTA_TOPFIRSTLINE"}(t.MxVerticalTextAlignment||(t.MxVerticalTextAlignment={})),function(e){e[e.FA_UNDEFINED=-1]="FA_UNDEFINED",e[e.FA_Regular=0]="FA_Regular",e[e.FA_Bold=1]="FA_Bold",e[e.FA_Italic=2]="FA_Italic",e[e.FA_BoldItalic=3]="FA_BoldItalic"}(t.MxFontAspect||(t.MxFontAspect={})),function(e){e[e.TODT_NORMAL=0]="TODT_NORMAL",e[e.TODT_SUBTITLE=1]="TODT_SUBTITLE",e[e.TODT_DEKALE=2]="TODT_DEKALE",e[e.TODT_BLEND=3]="TODT_BLEND",e[e.TODT_DIMENSION=4]="TODT_DIMENSION",e[e.TODT_SHADOW=5]="TODT_SHADOW"}(t.MxTypeOfDisplayText||(t.MxTypeOfDisplayText={})),function(e){e[e.Enum_Rational=0]="Enum_Rational",e[e.Enum_QuasiAngular=1]="Enum_QuasiAngular",e[e.Enum_Polynomial=2]="Enum_Polynomial"}(t.MxCF3dFilletShapeEnum||(t.MxCF3dFilletShapeEnum={})),function(e){e[e.Enum_ClassicChamfer=0]="Enum_ClassicChamfer",e[e.Enum_ConstThroatChamfer=1]="Enum_ConstThroatChamfer",e[e.Enum_ConstThroatWithPenetrationChamfer=2]="Enum_ConstThroatWithPenetrationChamfer"}(t.MxCFDSChamfMode||(t.MxCFDSChamfMode={})),function(e){e[e.GF_IsCorrectedFrenet=0]="GF_IsCorrectedFrenet",e[e.GF_IsFixed=1]="GF_IsFixed",e[e.GF_IsFrenet=2]="GF_IsFrenet",e[e.GF_IsConstantNormal=3]="GF_IsConstantNormal",e[e.GF_IsDarboux=4]="GF_IsDarboux",e[e.GF_IsGuideAC=5]="GF_IsGuideAC",e[e.GF_IsGuidePlan=6]="GF_IsGuidePlan",e[e.GF_IsGuideACWithContact=7]="GF_IsGuideACWithContact",e[e.GF_IsGuidePlanWithContact=8]="GF_IsGuidePlanWithContact",e[e.GF_IsDiscreteTrihedron=9]="GF_IsDiscreteTrihedron"}(t.MxGFTrihedron||(t.MxGFTrihedron={})),function(e){e[e.GA_C0=0]="GA_C0",e[e.GA_G1=1]="GA_G1",e[e.GA_C1=2]="GA_C1",e[e.GA_G2=3]="GA_G2",e[e.GA_C2=4]="GA_C2",e[e.GA_C3=5]="GA_C3",e[e.GA_CN=6]="GA_CN"}(t.MxGAShapeEnum||(t.MxGAShapeEnum={})),function(e){e[e.Offset_Skin=0]="Offset_Skin",e[e.Offset_Pipe=1]="Offset_Pipe",e[e.Offset_RectoVerso=2]="Offset_RectoVerso"}(t.MxOffsetModeEnum||(t.MxOffsetModeEnum={})),function(e){e[e.GA_Arc=0]="GA_Arc",e[e.GA_Tangent=1]="GA_Tangent",e[e.GA_Intersection=2]="GA_Intersection"}(t.MxGAJoinTypeEnum||(t.MxGAJoinTypeEnum={})),function(e){e[e.Material_NOM_Brass=0]="Material_NOM_Brass",e[e.Material_NOM_Bronze=1]="Material_NOM_Bronze",e[e.Material_NOM_Copper=2]="Material_NOM_Copper",e[e.Material_NOM_Gold=3]="Material_NOM_Gold",e[e.Material_NOM_Pewter=4]="Material_NOM_Pewter",e[e.Material_NOM_Plastered=5]="Material_NOM_Plastered",e[e.Material_NOM_Plastified=6]="Material_NOM_Plastified",e[e.Material_NOM_Silver=7]="Material_NOM_Silver",e[e.Material_NOM_Steel=8]="Material_NOM_Steel",e[e.Material_NOM_Stone=9]="Material_NOM_Stone",e[e.Material_NOM_ShinyPlastified=10]="Material_NOM_ShinyPlastified",e[e.Material_NOM_Satin=11]="Material_NOM_Satin",e[e.Material_NOM_Metalized=12]="Material_NOM_Metalized",e[e.Material_NOM_Ionized=13]="Material_NOM_Ionized",e[e.Material_NOM_Chrome=14]="Material_NOM_Chrome",e[e.Material_NOM_Aluminum=15]="Material_NOM_Aluminum",e[e.Material_NOM_Obsidian=16]="Material_NOM_Obsidian",e[e.Material_NOM_Neon=17]="Material_NOM_Neon",e[e.Material_NOM_Jade=18]="Material_NOM_Jade",e[e.Material_NOM_Charcoal=19]="Material_NOM_Charcoal",e[e.Material_NOM_Water=20]="Material_NOM_Water",e[e.Material_NOM_Glass=21]="Material_NOM_Glass",e[e.Material_NOM_Diamond=22]="Material_NOM_Diamond",e[e.Material_NOM_Transparent=23]="Material_NOM_Transparent",e[e.Material_NOM_DEFAULT=24]="Material_NOM_DEFAULT",e[e.Material_NOM_UserDefined=25]="Material_NOM_UserDefined"}(t.MxNameOfMaterial||(t.MxNameOfMaterial={})),function(e){e[e.Material_TOM_ASPECT=0]="Material_TOM_ASPECT",e[e.Material_TOM_PHYSIC=1]="Material_TOM_PHYSIC"}(t.MxTypeOfMaterial||(t.MxTypeOfMaterial={})),function(e){e[e.Reflection_TOR_AMBIENT=0]="Reflection_TOR_AMBIENT",e[e.Reflection_TOR_DIFFUSE=1]="Reflection_TOR_DIFFUSE",e[e.Reflection_TOR_SPECULAR=2]="Reflection_TOR_SPECULAR",e[e.Reflection_TOR_EMISSION=3]="Reflection_TOR_EMISSION"}(t.MxTypeOfReflection||(t.MxTypeOfReflection={})),function(e){e[e.Color_NOC_BLACK=0]="Color_NOC_BLACK",e[e.Color_NOC_MATRABLUE=1]="Color_NOC_MATRABLUE",e[e.Color_NOC_MATRAGRAY=2]="Color_NOC_MATRAGRAY",e[e.Color_NOC_ALICEBLUE=3]="Color_NOC_ALICEBLUE",e[e.Color_NOC_ANTIQUEWHITE=4]="Color_NOC_ANTIQUEWHITE",e[e.Color_NOC_ANTIQUEWHITE1=5]="Color_NOC_ANTIQUEWHITE1",e[e.Color_NOC_ANTIQUEWHITE2=6]="Color_NOC_ANTIQUEWHITE2",e[e.Color_NOC_ANTIQUEWHITE3=7]="Color_NOC_ANTIQUEWHITE3",e[e.Color_NOC_ANTIQUEWHITE4=8]="Color_NOC_ANTIQUEWHITE4",e[e.Color_NOC_AQUAMARINE1=9]="Color_NOC_AQUAMARINE1",e[e.Color_NOC_AQUAMARINE2=10]="Color_NOC_AQUAMARINE2",e[e.Color_NOC_AQUAMARINE4=11]="Color_NOC_AQUAMARINE4",e[e.Color_NOC_AZURE=12]="Color_NOC_AZURE",e[e.Color_NOC_AZURE2=13]="Color_NOC_AZURE2",e[e.Color_NOC_AZURE3=14]="Color_NOC_AZURE3",e[e.Color_NOC_AZURE4=15]="Color_NOC_AZURE4",e[e.Color_NOC_BEIGE=16]="Color_NOC_BEIGE",e[e.Color_NOC_BISQUE=17]="Color_NOC_BISQUE",e[e.Color_NOC_BISQUE2=18]="Color_NOC_BISQUE2",e[e.Color_NOC_BISQUE3=19]="Color_NOC_BISQUE3",e[e.Color_NOC_BISQUE4=20]="Color_NOC_BISQUE4",e[e.Color_NOC_BLANCHEDALMOND=21]="Color_NOC_BLANCHEDALMOND",e[e.Color_NOC_BLUE=22]="Color_NOC_BLUE",e[e.Color_NOC_BLUE1=22]="Color_NOC_BLUE1",e[e.Color_NOC_BLUE2=23]="Color_NOC_BLUE2",e[e.Color_NOC_BLUE3=24]="Color_NOC_BLUE3",e[e.Color_NOC_BLUE4=25]="Color_NOC_BLUE4",e[e.Color_NOC_BLUEVIOLET=26]="Color_NOC_BLUEVIOLET",e[e.Color_NOC_BROWN=27]="Color_NOC_BROWN",e[e.Color_NOC_BROWN1=28]="Color_NOC_BROWN1",e[e.Color_NOC_BROWN2=29]="Color_NOC_BROWN2",e[e.Color_NOC_BROWN3=30]="Color_NOC_BROWN3",e[e.Color_NOC_BROWN4=31]="Color_NOC_BROWN4",e[e.Color_NOC_BURLYWOOD=32]="Color_NOC_BURLYWOOD",e[e.Color_NOC_BURLYWOOD1=33]="Color_NOC_BURLYWOOD1",e[e.Color_NOC_BURLYWOOD2=34]="Color_NOC_BURLYWOOD2",e[e.Color_NOC_BURLYWOOD3=35]="Color_NOC_BURLYWOOD3",e[e.Color_NOC_BURLYWOOD4=36]="Color_NOC_BURLYWOOD4",e[e.Color_NOC_CADETBLUE=37]="Color_NOC_CADETBLUE",e[e.Color_NOC_CADETBLUE1=38]="Color_NOC_CADETBLUE1",e[e.Color_NOC_CADETBLUE2=39]="Color_NOC_CADETBLUE2",e[e.Color_NOC_CADETBLUE3=40]="Color_NOC_CADETBLUE3",e[e.Color_NOC_CADETBLUE4=41]="Color_NOC_CADETBLUE4",e[e.Color_NOC_CHARTREUSE=42]="Color_NOC_CHARTREUSE",e[e.Color_NOC_CHARTREUSE1=42]="Color_NOC_CHARTREUSE1",e[e.Color_NOC_CHARTREUSE2=43]="Color_NOC_CHARTREUSE2",e[e.Color_NOC_CHARTREUSE3=44]="Color_NOC_CHARTREUSE3",e[e.Color_NOC_CHARTREUSE4=45]="Color_NOC_CHARTREUSE4",e[e.Color_NOC_CHOCOLATE=46]="Color_NOC_CHOCOLATE",e[e.Color_NOC_CHOCOLATE1=47]="Color_NOC_CHOCOLATE1",e[e.Color_NOC_CHOCOLATE2=48]="Color_NOC_CHOCOLATE2",e[e.Color_NOC_CHOCOLATE3=49]="Color_NOC_CHOCOLATE3",e[e.Color_NOC_CHOCOLATE4=50]="Color_NOC_CHOCOLATE4",e[e.Color_NOC_CORAL=51]="Color_NOC_CORAL",e[e.Color_NOC_CORAL1=52]="Color_NOC_CORAL1",e[e.Color_NOC_CORAL2=53]="Color_NOC_CORAL2",e[e.Color_NOC_CORAL3=54]="Color_NOC_CORAL3",e[e.Color_NOC_CORAL4=55]="Color_NOC_CORAL4",e[e.Color_NOC_CORNFLOWERBLUE=56]="Color_NOC_CORNFLOWERBLUE",e[e.Color_NOC_CORNSILK1=57]="Color_NOC_CORNSILK1",e[e.Color_NOC_CORNSILK2=58]="Color_NOC_CORNSILK2",e[e.Color_NOC_CORNSILK3=59]="Color_NOC_CORNSILK3",e[e.Color_NOC_CORNSILK4=60]="Color_NOC_CORNSILK4",e[e.Color_NOC_CYAN=61]="Color_NOC_CYAN",e[e.Color_NOC_CYAN1=61]="Color_NOC_CYAN1",e[e.Color_NOC_CYAN2=62]="Color_NOC_CYAN2",e[e.Color_NOC_CYAN3=63]="Color_NOC_CYAN3",e[e.Color_NOC_CYAN4=64]="Color_NOC_CYAN4",e[e.Color_NOC_DARKGOLDENROD=65]="Color_NOC_DARKGOLDENROD",e[e.Color_NOC_DARKGOLDENROD1=66]="Color_NOC_DARKGOLDENROD1",e[e.Color_NOC_DARKGOLDENROD2=67]="Color_NOC_DARKGOLDENROD2",e[e.Color_NOC_DARKGOLDENROD3=68]="Color_NOC_DARKGOLDENROD3",e[e.Color_NOC_DARKGOLDENROD4=69]="Color_NOC_DARKGOLDENROD4",e[e.Color_NOC_DARKGREEN=70]="Color_NOC_DARKGREEN",e[e.Color_NOC_DARKKHAKI=71]="Color_NOC_DARKKHAKI",e[e.Color_NOC_DARKOLIVEGREEN=72]="Color_NOC_DARKOLIVEGREEN",e[e.Color_NOC_DARKOLIVEGREEN1=73]="Color_NOC_DARKOLIVEGREEN1",e[e.Color_NOC_DARKOLIVEGREEN2=74]="Color_NOC_DARKOLIVEGREEN2",e[e.Color_NOC_DARKOLIVEGREEN3=75]="Color_NOC_DARKOLIVEGREEN3",e[e.Color_NOC_DARKOLIVEGREEN4=76]="Color_NOC_DARKOLIVEGREEN4",e[e.Color_NOC_DARKORANGE=77]="Color_NOC_DARKORANGE",e[e.Color_NOC_DARKORANGE1=78]="Color_NOC_DARKORANGE1",e[e.Color_NOC_DARKORANGE2=79]="Color_NOC_DARKORANGE2",e[e.Color_NOC_DARKORANGE3=80]="Color_NOC_DARKORANGE3",e[e.Color_NOC_DARKORANGE4=81]="Color_NOC_DARKORANGE4",e[e.Color_NOC_DARKORCHID=82]="Color_NOC_DARKORCHID",e[e.Color_NOC_DARKORCHID1=83]="Color_NOC_DARKORCHID1",e[e.Color_NOC_DARKORCHID2=84]="Color_NOC_DARKORCHID2",e[e.Color_NOC_DARKORCHID3=85]="Color_NOC_DARKORCHID3",e[e.Color_NOC_DARKORCHID4=86]="Color_NOC_DARKORCHID4",e[e.Color_NOC_DARKSALMON=87]="Color_NOC_DARKSALMON",e[e.Color_NOC_DARKSEAGREEN=88]="Color_NOC_DARKSEAGREEN",e[e.Color_NOC_DARKSEAGREEN1=89]="Color_NOC_DARKSEAGREEN1",e[e.Color_NOC_DARKSEAGREEN2=90]="Color_NOC_DARKSEAGREEN2",e[e.Color_NOC_DARKSEAGREEN3=91]="Color_NOC_DARKSEAGREEN3",e[e.Color_NOC_DARKSEAGREEN4=92]="Color_NOC_DARKSEAGREEN4",e[e.Color_NOC_DARKSLATEBLUE=93]="Color_NOC_DARKSLATEBLUE",e[e.Color_NOC_DARKSLATEGRAY1=94]="Color_NOC_DARKSLATEGRAY1",e[e.Color_NOC_DARKSLATEGRAY2=95]="Color_NOC_DARKSLATEGRAY2",e[e.Color_NOC_DARKSLATEGRAY3=96]="Color_NOC_DARKSLATEGRAY3",e[e.Color_NOC_DARKSLATEGRAY4=97]="Color_NOC_DARKSLATEGRAY4",e[e.Color_NOC_DARKSLATEGRAY=98]="Color_NOC_DARKSLATEGRAY",e[e.Color_NOC_DARKTURQUOISE=99]="Color_NOC_DARKTURQUOISE",e[e.Color_NOC_DARKVIOLET=100]="Color_NOC_DARKVIOLET",e[e.Color_NOC_DEEPPINK=101]="Color_NOC_DEEPPINK",e[e.Color_NOC_DEEPPINK2=102]="Color_NOC_DEEPPINK2",e[e.Color_NOC_DEEPPINK3=103]="Color_NOC_DEEPPINK3",e[e.Color_NOC_DEEPPINK4=104]="Color_NOC_DEEPPINK4",e[e.Color_NOC_DEEPSKYBLUE1=105]="Color_NOC_DEEPSKYBLUE1",e[e.Color_NOC_DEEPSKYBLUE2=106]="Color_NOC_DEEPSKYBLUE2",e[e.Color_NOC_DEEPSKYBLUE3=107]="Color_NOC_DEEPSKYBLUE3",e[e.Color_NOC_DEEPSKYBLUE4=108]="Color_NOC_DEEPSKYBLUE4",e[e.Color_NOC_DODGERBLUE1=109]="Color_NOC_DODGERBLUE1",e[e.Color_NOC_DODGERBLUE2=110]="Color_NOC_DODGERBLUE2",e[e.Color_NOC_DODGERBLUE3=111]="Color_NOC_DODGERBLUE3",e[e.Color_NOC_DODGERBLUE4=112]="Color_NOC_DODGERBLUE4",e[e.Color_NOC_FIREBRICK=113]="Color_NOC_FIREBRICK",e[e.Color_NOC_FIREBRICK1=114]="Color_NOC_FIREBRICK1",e[e.Color_NOC_FIREBRICK2=115]="Color_NOC_FIREBRICK2",e[e.Color_NOC_FIREBRICK3=116]="Color_NOC_FIREBRICK3",e[e.Color_NOC_FIREBRICK4=117]="Color_NOC_FIREBRICK4",e[e.Color_NOC_FLORALWHITE=118]="Color_NOC_FLORALWHITE",e[e.Color_NOC_FORESTGREEN=119]="Color_NOC_FORESTGREEN",e[e.Color_NOC_GAINSBORO=120]="Color_NOC_GAINSBORO",e[e.Color_NOC_GHOSTWHITE=121]="Color_NOC_GHOSTWHITE",e[e.Color_NOC_GOLD=122]="Color_NOC_GOLD",e[e.Color_NOC_GOLD1=122]="Color_NOC_GOLD1",e[e.Color_NOC_GOLD2=123]="Color_NOC_GOLD2",e[e.Color_NOC_GOLD3=124]="Color_NOC_GOLD3",e[e.Color_NOC_GOLD4=125]="Color_NOC_GOLD4",e[e.Color_NOC_GOLDENROD=126]="Color_NOC_GOLDENROD",e[e.Color_NOC_GOLDENROD1=127]="Color_NOC_GOLDENROD1",e[e.Color_NOC_GOLDENROD2=128]="Color_NOC_GOLDENROD2",e[e.Color_NOC_GOLDENROD3=129]="Color_NOC_GOLDENROD3",e[e.Color_NOC_GOLDENROD4=130]="Color_NOC_GOLDENROD4",e[e.Color_NOC_GRAY=131]="Color_NOC_GRAY",e[e.Color_NOC_GRAY0=132]="Color_NOC_GRAY0",e[e.Color_NOC_GRAY1=133]="Color_NOC_GRAY1",e[e.Color_NOC_GRAY2=134]="Color_NOC_GRAY2",e[e.Color_NOC_GRAY3=135]="Color_NOC_GRAY3",e[e.Color_NOC_GRAY4=136]="Color_NOC_GRAY4",e[e.Color_NOC_GRAY5=137]="Color_NOC_GRAY5",e[e.Color_NOC_GRAY6=138]="Color_NOC_GRAY6",e[e.Color_NOC_GRAY7=139]="Color_NOC_GRAY7",e[e.Color_NOC_GRAY8=140]="Color_NOC_GRAY8",e[e.Color_NOC_GRAY9=141]="Color_NOC_GRAY9",e[e.Color_NOC_GRAY10=142]="Color_NOC_GRAY10",e[e.Color_NOC_GRAY11=143]="Color_NOC_GRAY11",e[e.Color_NOC_GRAY12=144]="Color_NOC_GRAY12",e[e.Color_NOC_GRAY13=145]="Color_NOC_GRAY13",e[e.Color_NOC_GRAY14=146]="Color_NOC_GRAY14",e[e.Color_NOC_GRAY15=147]="Color_NOC_GRAY15",e[e.Color_NOC_GRAY16=148]="Color_NOC_GRAY16",e[e.Color_NOC_GRAY17=149]="Color_NOC_GRAY17",e[e.Color_NOC_GRAY18=150]="Color_NOC_GRAY18",e[e.Color_NOC_GRAY19=151]="Color_NOC_GRAY19",e[e.Color_NOC_GRAY20=152]="Color_NOC_GRAY20",e[e.Color_NOC_GRAY21=153]="Color_NOC_GRAY21",e[e.Color_NOC_GRAY22=154]="Color_NOC_GRAY22",e[e.Color_NOC_GRAY23=155]="Color_NOC_GRAY23",e[e.Color_NOC_GRAY24=156]="Color_NOC_GRAY24",e[e.Color_NOC_GRAY25=157]="Color_NOC_GRAY25",e[e.Color_NOC_GRAY26=158]="Color_NOC_GRAY26",e[e.Color_NOC_GRAY27=159]="Color_NOC_GRAY27",e[e.Color_NOC_GRAY28=160]="Color_NOC_GRAY28",e[e.Color_NOC_GRAY29=161]="Color_NOC_GRAY29",e[e.Color_NOC_GRAY30=162]="Color_NOC_GRAY30",e[e.Color_NOC_GRAY31=163]="Color_NOC_GRAY31",e[e.Color_NOC_GRAY32=164]="Color_NOC_GRAY32",e[e.Color_NOC_GRAY33=165]="Color_NOC_GRAY33",e[e.Color_NOC_GRAY34=166]="Color_NOC_GRAY34",e[e.Color_NOC_GRAY35=167]="Color_NOC_GRAY35",e[e.Color_NOC_GRAY36=168]="Color_NOC_GRAY36",e[e.Color_NOC_GRAY37=169]="Color_NOC_GRAY37",e[e.Color_NOC_GRAY38=170]="Color_NOC_GRAY38",e[e.Color_NOC_GRAY39=171]="Color_NOC_GRAY39",e[e.Color_NOC_GRAY40=172]="Color_NOC_GRAY40",e[e.Color_NOC_GRAY41=173]="Color_NOC_GRAY41",e[e.Color_NOC_GRAY42=174]="Color_NOC_GRAY42",e[e.Color_NOC_GRAY43=175]="Color_NOC_GRAY43",e[e.Color_NOC_GRAY44=176]="Color_NOC_GRAY44",e[e.Color_NOC_GRAY45=177]="Color_NOC_GRAY45",e[e.Color_NOC_GRAY46=178]="Color_NOC_GRAY46",e[e.Color_NOC_GRAY47=179]="Color_NOC_GRAY47",e[e.Color_NOC_GRAY48=180]="Color_NOC_GRAY48",e[e.Color_NOC_GRAY49=181]="Color_NOC_GRAY49",e[e.Color_NOC_GRAY50=182]="Color_NOC_GRAY50",e[e.Color_NOC_GRAY51=183]="Color_NOC_GRAY51",e[e.Color_NOC_GRAY52=184]="Color_NOC_GRAY52",e[e.Color_NOC_GRAY53=185]="Color_NOC_GRAY53",e[e.Color_NOC_GRAY54=186]="Color_NOC_GRAY54",e[e.Color_NOC_GRAY55=187]="Color_NOC_GRAY55",e[e.Color_NOC_GRAY56=188]="Color_NOC_GRAY56",e[e.Color_NOC_GRAY57=189]="Color_NOC_GRAY57",e[e.Color_NOC_GRAY58=190]="Color_NOC_GRAY58",e[e.Color_NOC_GRAY59=191]="Color_NOC_GRAY59",e[e.Color_NOC_GRAY60=192]="Color_NOC_GRAY60",e[e.Color_NOC_GRAY61=193]="Color_NOC_GRAY61",e[e.Color_NOC_GRAY62=194]="Color_NOC_GRAY62",e[e.Color_NOC_GRAY63=195]="Color_NOC_GRAY63",e[e.Color_NOC_GRAY64=196]="Color_NOC_GRAY64",e[e.Color_NOC_GRAY65=197]="Color_NOC_GRAY65",e[e.Color_NOC_GRAY66=198]="Color_NOC_GRAY66",e[e.Color_NOC_GRAY67=199]="Color_NOC_GRAY67",e[e.Color_NOC_GRAY68=200]="Color_NOC_GRAY68",e[e.Color_NOC_GRAY69=201]="Color_NOC_GRAY69",e[e.Color_NOC_GRAY70=202]="Color_NOC_GRAY70",e[e.Color_NOC_GRAY71=203]="Color_NOC_GRAY71",e[e.Color_NOC_GRAY72=204]="Color_NOC_GRAY72",e[e.Color_NOC_GRAY73=205]="Color_NOC_GRAY73",e[e.Color_NOC_GRAY74=206]="Color_NOC_GRAY74",e[e.Color_NOC_GRAY75=207]="Color_NOC_GRAY75",e[e.Color_NOC_GRAY76=208]="Color_NOC_GRAY76",e[e.Color_NOC_GRAY77=209]="Color_NOC_GRAY77",e[e.Color_NOC_GRAY78=210]="Color_NOC_GRAY78",e[e.Color_NOC_GRAY79=211]="Color_NOC_GRAY79",e[e.Color_NOC_GRAY80=212]="Color_NOC_GRAY80",e[e.Color_NOC_GRAY81=213]="Color_NOC_GRAY81",e[e.Color_NOC_GRAY82=214]="Color_NOC_GRAY82",e[e.Color_NOC_GRAY83=215]="Color_NOC_GRAY83",e[e.Color_NOC_GRAY85=216]="Color_NOC_GRAY85",e[e.Color_NOC_GRAY86=217]="Color_NOC_GRAY86",e[e.Color_NOC_GRAY87=218]="Color_NOC_GRAY87",e[e.Color_NOC_GRAY88=219]="Color_NOC_GRAY88",e[e.Color_NOC_GRAY89=220]="Color_NOC_GRAY89",e[e.Color_NOC_GRAY90=221]="Color_NOC_GRAY90",e[e.Color_NOC_GRAY91=222]="Color_NOC_GRAY91",e[e.Color_NOC_GRAY92=223]="Color_NOC_GRAY92",e[e.Color_NOC_GRAY93=224]="Color_NOC_GRAY93",e[e.Color_NOC_GRAY94=225]="Color_NOC_GRAY94",e[e.Color_NOC_GRAY95=226]="Color_NOC_GRAY95",e[e.Color_NOC_GRAY97=227]="Color_NOC_GRAY97",e[e.Color_NOC_GRAY98=228]="Color_NOC_GRAY98",e[e.Color_NOC_GRAY99=229]="Color_NOC_GRAY99",e[e.Color_NOC_GREEN=230]="Color_NOC_GREEN",e[e.Color_NOC_GREEN1=230]="Color_NOC_GREEN1",e[e.Color_NOC_GREEN2=231]="Color_NOC_GREEN2",e[e.Color_NOC_GREEN3=232]="Color_NOC_GREEN3",e[e.Color_NOC_GREEN4=233]="Color_NOC_GREEN4",e[e.Color_NOC_GREENYELLOW=234]="Color_NOC_GREENYELLOW",e[e.Color_NOC_HONEYDEW=235]="Color_NOC_HONEYDEW",e[e.Color_NOC_HONEYDEW2=236]="Color_NOC_HONEYDEW2",e[e.Color_NOC_HONEYDEW3=237]="Color_NOC_HONEYDEW3",e[e.Color_NOC_HONEYDEW4=238]="Color_NOC_HONEYDEW4",e[e.Color_NOC_HOTPINK=239]="Color_NOC_HOTPINK",e[e.Color_NOC_HOTPINK1=240]="Color_NOC_HOTPINK1",e[e.Color_NOC_HOTPINK2=241]="Color_NOC_HOTPINK2",e[e.Color_NOC_HOTPINK3=242]="Color_NOC_HOTPINK3",e[e.Color_NOC_HOTPINK4=243]="Color_NOC_HOTPINK4",e[e.Color_NOC_INDIANRED=244]="Color_NOC_INDIANRED",e[e.Color_NOC_INDIANRED1=245]="Color_NOC_INDIANRED1",e[e.Color_NOC_INDIANRED2=246]="Color_NOC_INDIANRED2",e[e.Color_NOC_INDIANRED3=247]="Color_NOC_INDIANRED3",e[e.Color_NOC_INDIANRED4=248]="Color_NOC_INDIANRED4",e[e.Color_NOC_IVORY=249]="Color_NOC_IVORY",e[e.Color_NOC_IVORY2=250]="Color_NOC_IVORY2",e[e.Color_NOC_IVORY3=251]="Color_NOC_IVORY3",e[e.Color_NOC_IVORY4=252]="Color_NOC_IVORY4",e[e.Color_NOC_KHAKI=253]="Color_NOC_KHAKI",e[e.Color_NOC_KHAKI1=254]="Color_NOC_KHAKI1",e[e.Color_NOC_KHAKI2=255]="Color_NOC_KHAKI2",e[e.Color_NOC_KHAKI3=256]="Color_NOC_KHAKI3",e[e.Color_NOC_KHAKI4=257]="Color_NOC_KHAKI4",e[e.Color_NOC_LAVENDER=258]="Color_NOC_LAVENDER",e[e.Color_NOC_LAVENDERBLUSH1=259]="Color_NOC_LAVENDERBLUSH1",e[e.Color_NOC_LAVENDERBLUSH2=260]="Color_NOC_LAVENDERBLUSH2",e[e.Color_NOC_LAVENDERBLUSH3=261]="Color_NOC_LAVENDERBLUSH3",e[e.Color_NOC_LAVENDERBLUSH4=262]="Color_NOC_LAVENDERBLUSH4",e[e.Color_NOC_LAWNGREEN=263]="Color_NOC_LAWNGREEN",e[e.Color_NOC_LEMONCHIFFON1=264]="Color_NOC_LEMONCHIFFON1",e[e.Color_NOC_LEMONCHIFFON2=265]="Color_NOC_LEMONCHIFFON2",e[e.Color_NOC_LEMONCHIFFON3=266]="Color_NOC_LEMONCHIFFON3",e[e.Color_NOC_LEMONCHIFFON4=267]="Color_NOC_LEMONCHIFFON4",e[e.Color_NOC_LIGHTBLUE=268]="Color_NOC_LIGHTBLUE",e[e.Color_NOC_LIGHTBLUE1=269]="Color_NOC_LIGHTBLUE1",e[e.Color_NOC_LIGHTBLUE2=270]="Color_NOC_LIGHTBLUE2",e[e.Color_NOC_LIGHTBLUE3=271]="Color_NOC_LIGHTBLUE3",e[e.Color_NOC_LIGHTBLUE4=272]="Color_NOC_LIGHTBLUE4",e[e.Color_NOC_LIGHTCORAL=273]="Color_NOC_LIGHTCORAL",e[e.Color_NOC_LIGHTCYAN=274]="Color_NOC_LIGHTCYAN",e[e.Color_NOC_LIGHTCYAN1=274]="Color_NOC_LIGHTCYAN1",e[e.Color_NOC_LIGHTCYAN2=275]="Color_NOC_LIGHTCYAN2",e[e.Color_NOC_LIGHTCYAN3=276]="Color_NOC_LIGHTCYAN3",e[e.Color_NOC_LIGHTCYAN4=277]="Color_NOC_LIGHTCYAN4",e[e.Color_NOC_LIGHTGOLDENROD=278]="Color_NOC_LIGHTGOLDENROD",e[e.Color_NOC_LIGHTGOLDENROD1=279]="Color_NOC_LIGHTGOLDENROD1",e[e.Color_NOC_LIGHTGOLDENROD2=280]="Color_NOC_LIGHTGOLDENROD2",e[e.Color_NOC_LIGHTGOLDENROD3=281]="Color_NOC_LIGHTGOLDENROD3",e[e.Color_NOC_LIGHTGOLDENROD4=282]="Color_NOC_LIGHTGOLDENROD4",e[e.Color_NOC_LIGHTGOLDENRODYELLOW=283]="Color_NOC_LIGHTGOLDENRODYELLOW",e[e.Color_NOC_LIGHTGRAY=284]="Color_NOC_LIGHTGRAY",e[e.Color_NOC_LIGHTPINK=285]="Color_NOC_LIGHTPINK",e[e.Color_NOC_LIGHTPINK1=286]="Color_NOC_LIGHTPINK1",e[e.Color_NOC_LIGHTPINK2=287]="Color_NOC_LIGHTPINK2",e[e.Color_NOC_LIGHTPINK3=288]="Color_NOC_LIGHTPINK3",e[e.Color_NOC_LIGHTPINK4=289]="Color_NOC_LIGHTPINK4",e[e.Color_NOC_LIGHTSALMON1=290]="Color_NOC_LIGHTSALMON1",e[e.Color_NOC_LIGHTSALMON2=291]="Color_NOC_LIGHTSALMON2",e[e.Color_NOC_LIGHTSALMON3=292]="Color_NOC_LIGHTSALMON3",e[e.Color_NOC_LIGHTSALMON4=293]="Color_NOC_LIGHTSALMON4",e[e.Color_NOC_LIGHTSEAGREEN=294]="Color_NOC_LIGHTSEAGREEN",e[e.Color_NOC_LIGHTSKYBLUE=295]="Color_NOC_LIGHTSKYBLUE",e[e.Color_NOC_LIGHTSKYBLUE1=296]="Color_NOC_LIGHTSKYBLUE1",e[e.Color_NOC_LIGHTSKYBLUE2=297]="Color_NOC_LIGHTSKYBLUE2",e[e.Color_NOC_LIGHTSKYBLUE3=298]="Color_NOC_LIGHTSKYBLUE3",e[e.Color_NOC_LIGHTSKYBLUE4=299]="Color_NOC_LIGHTSKYBLUE4",e[e.Color_NOC_LIGHTSLATEBLUE=300]="Color_NOC_LIGHTSLATEBLUE",e[e.Color_NOC_LIGHTSLATEGRAY=301]="Color_NOC_LIGHTSLATEGRAY",e[e.Color_NOC_LIGHTSTEELBLUE=302]="Color_NOC_LIGHTSTEELBLUE",e[e.Color_NOC_LIGHTSTEELBLUE1=303]="Color_NOC_LIGHTSTEELBLUE1",e[e.Color_NOC_LIGHTSTEELBLUE2=304]="Color_NOC_LIGHTSTEELBLUE2",e[e.Color_NOC_LIGHTSTEELBLUE3=305]="Color_NOC_LIGHTSTEELBLUE3",e[e.Color_NOC_LIGHTSTEELBLUE4=306]="Color_NOC_LIGHTSTEELBLUE4",e[e.Color_NOC_LIGHTYELLOW=307]="Color_NOC_LIGHTYELLOW",e[e.Color_NOC_LIGHTYELLOW2=308]="Color_NOC_LIGHTYELLOW2",e[e.Color_NOC_LIGHTYELLOW3=309]="Color_NOC_LIGHTYELLOW3",e[e.Color_NOC_LIGHTYELLOW4=310]="Color_NOC_LIGHTYELLOW4",e[e.Color_NOC_LIMEGREEN=311]="Color_NOC_LIMEGREEN",e[e.Color_NOC_LINEN=312]="Color_NOC_LINEN",e[e.Color_NOC_MAGENTA=313]="Color_NOC_MAGENTA",e[e.Color_NOC_MAGENTA1=313]="Color_NOC_MAGENTA1",e[e.Color_NOC_MAGENTA2=314]="Color_NOC_MAGENTA2",e[e.Color_NOC_MAGENTA3=315]="Color_NOC_MAGENTA3",e[e.Color_NOC_MAGENTA4=316]="Color_NOC_MAGENTA4",e[e.Color_NOC_MAROON=317]="Color_NOC_MAROON",e[e.Color_NOC_MAROON1=318]="Color_NOC_MAROON1",e[e.Color_NOC_MAROON2=319]="Color_NOC_MAROON2",e[e.Color_NOC_MAROON3=320]="Color_NOC_MAROON3",e[e.Color_NOC_MAROON4=321]="Color_NOC_MAROON4",e[e.Color_NOC_MEDIUMAQUAMARINE=322]="Color_NOC_MEDIUMAQUAMARINE",e[e.Color_NOC_MEDIUMORCHID=323]="Color_NOC_MEDIUMORCHID",e[e.Color_NOC_MEDIUMORCHID1=324]="Color_NOC_MEDIUMORCHID1",e[e.Color_NOC_MEDIUMORCHID2=325]="Color_NOC_MEDIUMORCHID2",e[e.Color_NOC_MEDIUMORCHID3=326]="Color_NOC_MEDIUMORCHID3",e[e.Color_NOC_MEDIUMORCHID4=327]="Color_NOC_MEDIUMORCHID4",e[e.Color_NOC_MEDIUMPURPLE=328]="Color_NOC_MEDIUMPURPLE",e[e.Color_NOC_MEDIUMPURPLE1=329]="Color_NOC_MEDIUMPURPLE1",e[e.Color_NOC_MEDIUMPURPLE2=330]="Color_NOC_MEDIUMPURPLE2",e[e.Color_NOC_MEDIUMPURPLE3=331]="Color_NOC_MEDIUMPURPLE3",e[e.Color_NOC_MEDIUMPURPLE4=332]="Color_NOC_MEDIUMPURPLE4",e[e.Color_NOC_MEDIUMSEAGREEN=333]="Color_NOC_MEDIUMSEAGREEN",e[e.Color_NOC_MEDIUMSLATEBLUE=334]="Color_NOC_MEDIUMSLATEBLUE",e[e.Color_NOC_MEDIUMSPRINGGREEN=335]="Color_NOC_MEDIUMSPRINGGREEN",e[e.Color_NOC_MEDIUMTURQUOISE=336]="Color_NOC_MEDIUMTURQUOISE",e[e.Color_NOC_MEDIUMVIOLETRED=337]="Color_NOC_MEDIUMVIOLETRED",e[e.Color_NOC_MIDNIGHTBLUE=338]="Color_NOC_MIDNIGHTBLUE",e[e.Color_NOC_MINTCREAM=339]="Color_NOC_MINTCREAM",e[e.Color_NOC_MISTYROSE=340]="Color_NOC_MISTYROSE",e[e.Color_NOC_MISTYROSE2=341]="Color_NOC_MISTYROSE2",e[e.Color_NOC_MISTYROSE3=342]="Color_NOC_MISTYROSE3",e[e.Color_NOC_MISTYROSE4=343]="Color_NOC_MISTYROSE4",e[e.Color_NOC_MOCCASIN=344]="Color_NOC_MOCCASIN",e[e.Color_NOC_NAVAJOWHITE1=345]="Color_NOC_NAVAJOWHITE1",e[e.Color_NOC_NAVAJOWHITE2=346]="Color_NOC_NAVAJOWHITE2",e[e.Color_NOC_NAVAJOWHITE3=347]="Color_NOC_NAVAJOWHITE3",e[e.Color_NOC_NAVAJOWHITE4=348]="Color_NOC_NAVAJOWHITE4",e[e.Color_NOC_NAVYBLUE=349]="Color_NOC_NAVYBLUE",e[e.Color_NOC_OLDLACE=350]="Color_NOC_OLDLACE",e[e.Color_NOC_OLIVEDRAB=351]="Color_NOC_OLIVEDRAB",e[e.Color_NOC_OLIVEDRAB1=352]="Color_NOC_OLIVEDRAB1",e[e.Color_NOC_OLIVEDRAB2=353]="Color_NOC_OLIVEDRAB2",e[e.Color_NOC_OLIVEDRAB3=354]="Color_NOC_OLIVEDRAB3",e[e.Color_NOC_OLIVEDRAB4=355]="Color_NOC_OLIVEDRAB4",e[e.Color_NOC_ORANGE=356]="Color_NOC_ORANGE",e[e.Color_NOC_ORANGE1=356]="Color_NOC_ORANGE1",e[e.Color_NOC_ORANGE2=357]="Color_NOC_ORANGE2",e[e.Color_NOC_ORANGE3=358]="Color_NOC_ORANGE3",e[e.Color_NOC_ORANGE4=359]="Color_NOC_ORANGE4",e[e.Color_NOC_ORANGERED=360]="Color_NOC_ORANGERED",e[e.Color_NOC_ORANGERED1=360]="Color_NOC_ORANGERED1",e[e.Color_NOC_ORANGERED2=361]="Color_NOC_ORANGERED2",e[e.Color_NOC_ORANGERED3=362]="Color_NOC_ORANGERED3",e[e.Color_NOC_ORANGERED4=363]="Color_NOC_ORANGERED4",e[e.Color_NOC_ORCHID=364]="Color_NOC_ORCHID",e[e.Color_NOC_ORCHID1=365]="Color_NOC_ORCHID1",e[e.Color_NOC_ORCHID2=366]="Color_NOC_ORCHID2",e[e.Color_NOC_ORCHID3=367]="Color_NOC_ORCHID3",e[e.Color_NOC_ORCHID4=368]="Color_NOC_ORCHID4",e[e.Color_NOC_PALEGOLDENROD=369]="Color_NOC_PALEGOLDENROD",e[e.Color_NOC_PALEGREEN=370]="Color_NOC_PALEGREEN",e[e.Color_NOC_PALEGREEN1=371]="Color_NOC_PALEGREEN1",e[e.Color_NOC_PALEGREEN2=372]="Color_NOC_PALEGREEN2",e[e.Color_NOC_PALEGREEN3=373]="Color_NOC_PALEGREEN3",e[e.Color_NOC_PALEGREEN4=374]="Color_NOC_PALEGREEN4",e[e.Color_NOC_PALETURQUOISE=375]="Color_NOC_PALETURQUOISE",e[e.Color_NOC_PALETURQUOISE1=376]="Color_NOC_PALETURQUOISE1",e[e.Color_NOC_PALETURQUOISE2=377]="Color_NOC_PALETURQUOISE2",e[e.Color_NOC_PALETURQUOISE3=378]="Color_NOC_PALETURQUOISE3",e[e.Color_NOC_PALETURQUOISE4=379]="Color_NOC_PALETURQUOISE4",e[e.Color_NOC_PALEVIOLETRED=380]="Color_NOC_PALEVIOLETRED",e[e.Color_NOC_PALEVIOLETRED1=381]="Color_NOC_PALEVIOLETRED1",e[e.Color_NOC_PALEVIOLETRED2=382]="Color_NOC_PALEVIOLETRED2",e[e.Color_NOC_PALEVIOLETRED3=383]="Color_NOC_PALEVIOLETRED3",e[e.Color_NOC_PALEVIOLETRED4=384]="Color_NOC_PALEVIOLETRED4",e[e.Color_NOC_PAPAYAWHIP=385]="Color_NOC_PAPAYAWHIP",e[e.Color_NOC_PEACHPUFF=386]="Color_NOC_PEACHPUFF",e[e.Color_NOC_PEACHPUFF2=387]="Color_NOC_PEACHPUFF2",e[e.Color_NOC_PEACHPUFF3=388]="Color_NOC_PEACHPUFF3",e[e.Color_NOC_PEACHPUFF4=389]="Color_NOC_PEACHPUFF4",e[e.Color_NOC_PERU=390]="Color_NOC_PERU",e[e.Color_NOC_PINK=391]="Color_NOC_PINK",e[e.Color_NOC_PINK1=392]="Color_NOC_PINK1",e[e.Color_NOC_PINK2=393]="Color_NOC_PINK2",e[e.Color_NOC_PINK3=394]="Color_NOC_PINK3",e[e.Color_NOC_PINK4=395]="Color_NOC_PINK4",e[e.Color_NOC_PLUM=396]="Color_NOC_PLUM",e[e.Color_NOC_PLUM1=397]="Color_NOC_PLUM1",e[e.Color_NOC_PLUM2=398]="Color_NOC_PLUM2",e[e.Color_NOC_PLUM3=399]="Color_NOC_PLUM3",e[e.Color_NOC_PLUM4=400]="Color_NOC_PLUM4",e[e.Color_NOC_POWDERBLUE=401]="Color_NOC_POWDERBLUE",e[e.Color_NOC_PURPLE=402]="Color_NOC_PURPLE",e[e.Color_NOC_PURPLE1=403]="Color_NOC_PURPLE1",e[e.Color_NOC_PURPLE2=404]="Color_NOC_PURPLE2",e[e.Color_NOC_PURPLE3=405]="Color_NOC_PURPLE3",e[e.Color_NOC_PURPLE4=406]="Color_NOC_PURPLE4",e[e.Color_NOC_RED=407]="Color_NOC_RED",e[e.Color_NOC_RED1=407]="Color_NOC_RED1",e[e.Color_NOC_RED2=408]="Color_NOC_RED2",e[e.Color_NOC_RED3=409]="Color_NOC_RED3",e[e.Color_NOC_RED4=410]="Color_NOC_RED4",e[e.Color_NOC_ROSYBROWN=411]="Color_NOC_ROSYBROWN",e[e.Color_NOC_ROSYBROWN1=412]="Color_NOC_ROSYBROWN1",e[e.Color_NOC_ROSYBROWN2=413]="Color_NOC_ROSYBROWN2",e[e.Color_NOC_ROSYBROWN3=414]="Color_NOC_ROSYBROWN3",e[e.Color_NOC_ROSYBROWN4=415]="Color_NOC_ROSYBROWN4",e[e.Color_NOC_ROYALBLUE=416]="Color_NOC_ROYALBLUE",e[e.Color_NOC_ROYALBLUE1=417]="Color_NOC_ROYALBLUE1",e[e.Color_NOC_ROYALBLUE2=418]="Color_NOC_ROYALBLUE2",e[e.Color_NOC_ROYALBLUE3=419]="Color_NOC_ROYALBLUE3",e[e.Color_NOC_ROYALBLUE4=420]="Color_NOC_ROYALBLUE4",e[e.Color_NOC_SADDLEBROWN=421]="Color_NOC_SADDLEBROWN",e[e.Color_NOC_SALMON=422]="Color_NOC_SALMON",e[e.Color_NOC_SALMON1=423]="Color_NOC_SALMON1",e[e.Color_NOC_SALMON2=424]="Color_NOC_SALMON2",e[e.Color_NOC_SALMON3=425]="Color_NOC_SALMON3",e[e.Color_NOC_SALMON4=426]="Color_NOC_SALMON4",e[e.Color_NOC_SANDYBROWN=427]="Color_NOC_SANDYBROWN",e[e.Color_NOC_SEAGREEN=428]="Color_NOC_SEAGREEN",e[e.Color_NOC_SEAGREEN1=429]="Color_NOC_SEAGREEN1",e[e.Color_NOC_SEAGREEN2=430]="Color_NOC_SEAGREEN2",e[e.Color_NOC_SEAGREEN3=431]="Color_NOC_SEAGREEN3",e[e.Color_NOC_SEAGREEN4=432]="Color_NOC_SEAGREEN4",e[e.Color_NOC_SEASHELL=433]="Color_NOC_SEASHELL",e[e.Color_NOC_SEASHELL2=434]="Color_NOC_SEASHELL2",e[e.Color_NOC_SEASHELL3=435]="Color_NOC_SEASHELL3",e[e.Color_NOC_SEASHELL4=436]="Color_NOC_SEASHELL4",e[e.Color_NOC_BEET=437]="Color_NOC_BEET",e[e.Color_NOC_TEAL=438]="Color_NOC_TEAL",e[e.Color_NOC_SIENNA=439]="Color_NOC_SIENNA",e[e.Color_NOC_SIENNA1=440]="Color_NOC_SIENNA1",e[e.Color_NOC_SIENNA2=441]="Color_NOC_SIENNA2",e[e.Color_NOC_SIENNA3=442]="Color_NOC_SIENNA3",e[e.Color_NOC_SIENNA4=443]="Color_NOC_SIENNA4",e[e.Color_NOC_SKYBLUE=444]="Color_NOC_SKYBLUE",e[e.Color_NOC_SKYBLUE1=445]="Color_NOC_SKYBLUE1",e[e.Color_NOC_SKYBLUE2=446]="Color_NOC_SKYBLUE2",e[e.Color_NOC_SKYBLUE3=447]="Color_NOC_SKYBLUE3",e[e.Color_NOC_SKYBLUE4=448]="Color_NOC_SKYBLUE4",e[e.Color_NOC_SLATEBLUE=449]="Color_NOC_SLATEBLUE",e[e.Color_NOC_SLATEBLUE1=450]="Color_NOC_SLATEBLUE1",e[e.Color_NOC_SLATEBLUE2=451]="Color_NOC_SLATEBLUE2",e[e.Color_NOC_SLATEBLUE3=452]="Color_NOC_SLATEBLUE3",e[e.Color_NOC_SLATEBLUE4=453]="Color_NOC_SLATEBLUE4",e[e.Color_NOC_SLATEGRAY1=454]="Color_NOC_SLATEGRAY1",e[e.Color_NOC_SLATEGRAY2=455]="Color_NOC_SLATEGRAY2",e[e.Color_NOC_SLATEGRAY3=456]="Color_NOC_SLATEGRAY3",e[e.Color_NOC_SLATEGRAY4=457]="Color_NOC_SLATEGRAY4",e[e.Color_NOC_SLATEGRAY=458]="Color_NOC_SLATEGRAY",e[e.Color_NOC_SNOW=459]="Color_NOC_SNOW",e[e.Color_NOC_SNOW2=460]="Color_NOC_SNOW2",e[e.Color_NOC_SNOW3=461]="Color_NOC_SNOW3",e[e.Color_NOC_SNOW4=462]="Color_NOC_SNOW4",e[e.Color_NOC_SPRINGGREEN=463]="Color_NOC_SPRINGGREEN",e[e.Color_NOC_SPRINGGREEN2=464]="Color_NOC_SPRINGGREEN2",e[e.Color_NOC_SPRINGGREEN3=465]="Color_NOC_SPRINGGREEN3",e[e.Color_NOC_SPRINGGREEN4=466]="Color_NOC_SPRINGGREEN4",e[e.Color_NOC_STEELBLUE=467]="Color_NOC_STEELBLUE",e[e.Color_NOC_STEELBLUE1=468]="Color_NOC_STEELBLUE1",e[e.Color_NOC_STEELBLUE2=469]="Color_NOC_STEELBLUE2",e[e.Color_NOC_STEELBLUE3=470]="Color_NOC_STEELBLUE3",e[e.Color_NOC_STEELBLUE4=471]="Color_NOC_STEELBLUE4",e[e.Color_NOC_TAN=472]="Color_NOC_TAN",e[e.Color_NOC_TAN1=473]="Color_NOC_TAN1",e[e.Color_NOC_TAN2=474]="Color_NOC_TAN2",e[e.Color_NOC_TAN3=475]="Color_NOC_TAN3",e[e.Color_NOC_TAN4=476]="Color_NOC_TAN4",e[e.Color_NOC_THISTLE=477]="Color_NOC_THISTLE",e[e.Color_NOC_THISTLE1=478]="Color_NOC_THISTLE1",e[e.Color_NOC_THISTLE2=479]="Color_NOC_THISTLE2",e[e.Color_NOC_THISTLE3=480]="Color_NOC_THISTLE3",e[e.Color_NOC_THISTLE4=481]="Color_NOC_THISTLE4",e[e.Color_NOC_TOMATO=482]="Color_NOC_TOMATO",e[e.Color_NOC_TOMATO1=482]="Color_NOC_TOMATO1",e[e.Color_NOC_TOMATO2=483]="Color_NOC_TOMATO2",e[e.Color_NOC_TOMATO3=484]="Color_NOC_TOMATO3",e[e.Color_NOC_TOMATO4=485]="Color_NOC_TOMATO4",e[e.Color_NOC_TURQUOISE=486]="Color_NOC_TURQUOISE",e[e.Color_NOC_TURQUOISE1=487]="Color_NOC_TURQUOISE1",e[e.Color_NOC_TURQUOISE2=488]="Color_NOC_TURQUOISE2",e[e.Color_NOC_TURQUOISE3=489]="Color_NOC_TURQUOISE3",e[e.Color_NOC_TURQUOISE4=490]="Color_NOC_TURQUOISE4",e[e.Color_NOC_VIOLET=491]="Color_NOC_VIOLET",e[e.Color_NOC_VIOLETRED=492]="Color_NOC_VIOLETRED",e[e.Color_NOC_VIOLETRED1=493]="Color_NOC_VIOLETRED1",e[e.Color_NOC_VIOLETRED2=494]="Color_NOC_VIOLETRED2",e[e.Color_NOC_VIOLETRED3=495]="Color_NOC_VIOLETRED3",e[e.Color_NOC_VIOLETRED4=496]="Color_NOC_VIOLETRED4",e[e.Color_NOC_WHEAT=497]="Color_NOC_WHEAT",e[e.Color_NOC_WHEAT1=498]="Color_NOC_WHEAT1",e[e.Color_NOC_WHEAT2=499]="Color_NOC_WHEAT2",e[e.Color_NOC_WHEAT3=500]="Color_NOC_WHEAT3",e[e.Color_NOC_WHEAT4=501]="Color_NOC_WHEAT4",e[e.Color_NOC_WHITESMOKE=502]="Color_NOC_WHITESMOKE",e[e.Color_NOC_YELLOW=503]="Color_NOC_YELLOW",e[e.Color_NOC_YELLOW1=503]="Color_NOC_YELLOW1",e[e.Color_NOC_YELLOW2=504]="Color_NOC_YELLOW2",e[e.Color_NOC_YELLOW3=505]="Color_NOC_YELLOW3",e[e.Color_NOC_YELLOW4=506]="Color_NOC_YELLOW4",e[e.Color_NOC_YELLOWGREEN=507]="Color_NOC_YELLOWGREEN",e[e.Color_NOC_WHITE=508]="Color_NOC_WHITE"}(t.MxNameOfColor||(t.MxNameOfColor={})),function(e){e[e.Color_TOC_RGB=0]="Color_TOC_RGB",e[e.Color_TOC_sRGB=1]="Color_TOC_sRGB",e[e.Color_TOC_HLS=2]="Color_TOC_HLS",e[e.Color_TOC_CIELab=3]="Color_TOC_CIELab",e[e.Color_TOC_CIELch=4]="Color_TOC_CIELch"}(t.MxTypeOfColor||(t.MxTypeOfColor={})),function(e){e[e.DM_WireFrame=0]="DM_WireFrame",e[e.DM_Shaded=1]="DM_Shaded"}(t.MxDisplayMode||(t.MxDisplayMode={})),function(e){e[e.LightSource_TOLS_AMBIENT=0]="LightSource_TOLS_AMBIENT",e[e.LightSource_TOLS_DIRECTIONAL=1]="LightSource_TOLS_DIRECTIONAL",e[e.LightSource_TOLS_POSITIONAL=2]="LightSource_TOLS_POSITIONAL",e[e.LightSource_TOLS_SPOT=3]="LightSource_TOLS_SPOT"}(t.MxTypeOfLightSource||(t.MxTypeOfLightSource={})),function(e){e[e.CProjection_Orthographic=0]="CProjection_Orthographic",e[e.CProjection_Perspective=1]="CProjection_Perspective",e[e.CProjection_Stereo=2]="CProjection_Stereo",e[e.CProjection_MonoLeftEye=3]="CProjection_MonoLeftEye",e[e.CProjection_MonoRightEye=4]="CProjection_MonoRightEye"}(t.MxCameraProjection||(t.MxCameraProjection={})),function(e){e[e.Orientation_Xpos=0]="Orientation_Xpos",e[e.Orientation_Ypos=1]="Orientation_Ypos",e[e.Orientation_Zpos=2]="Orientation_Zpos",e[e.Orientation_Xneg=3]="Orientation_Xneg",e[e.Orientation_Yneg=4]="Orientation_Yneg",e[e.Orientation_Zneg=5]="Orientation_Zneg",e[e.Orientation_XposYpos=6]="Orientation_XposYpos",e[e.Orientation_XposZpos=7]="Orientation_XposZpos",e[e.Orientation_YposZpos=8]="Orientation_YposZpos",e[e.Orientation_XnegYneg=9]="Orientation_XnegYneg",e[e.Orientation_XnegYpos=10]="Orientation_XnegYpos",e[e.Orientation_XnegZneg=11]="Orientation_XnegZneg",e[e.Orientation_XnegZpos=12]="Orientation_XnegZpos",e[e.Orientation_YnegZneg=13]="Orientation_YnegZneg",e[e.Orientation_YnegZpos=14]="Orientation_YnegZpos",e[e.Orientation_XposYneg=15]="Orientation_XposYneg",e[e.Orientation_XposZneg=16]="Orientation_XposZneg",e[e.Orientation_YposZneg=17]="Orientation_YposZneg",e[e.Orientation_XposYposZpos=18]="Orientation_XposYposZpos",e[e.Orientation_XposYnegZpos=19]="Orientation_XposYnegZpos",e[e.Orientation_XposYposZneg=20]="Orientation_XposYposZneg",e[e.Orientation_XnegYposZpos=21]="Orientation_XnegYposZpos",e[e.Orientation_XposYnegZneg=22]="Orientation_XposYnegZneg",e[e.Orientation_XnegYposZneg=23]="Orientation_XnegYposZneg",e[e.Orientation_XnegYnegZpos=24]="Orientation_XnegYnegZpos",e[e.Orientation_XnegYnegZneg=25]="Orientation_XnegYnegZneg",e[e.Orientation_TypeOfOrientation_Zup_AxoLeft=24]="Orientation_TypeOfOrientation_Zup_AxoLeft",e[e.Orientation_TypeOfOrientation_Zup_AxoRight=19]="Orientation_TypeOfOrientation_Zup_AxoRight",e[e.Orientation_TypeOfOrientation_Zup_Front=4]="Orientation_TypeOfOrientation_Zup_Front",e[e.Orientation_TypeOfOrientation_Zup_Back=1]="Orientation_TypeOfOrientation_Zup_Back",e[e.Orientation_TypeOfOrientation_Zup_Top=2]="Orientation_TypeOfOrientation_Zup_Top",e[e.Orientation_TypeOfOrientation_Zup_Bottom=5]="Orientation_TypeOfOrientation_Zup_Bottom",e[e.Orientation_TypeOfOrientation_Zup_Left=3]="Orientation_TypeOfOrientation_Zup_Left",e[e.Orientation_TypeOfOrientation_Zup_Right=0]="Orientation_TypeOfOrientation_Zup_Right",e[e.Orientation_TypeOfOrientation_Yup_AxoLeft=21]="Orientation_TypeOfOrientation_Yup_AxoLeft",e[e.Orientation_TypeOfOrientation_Yup_AxoRight=18]="Orientation_TypeOfOrientation_Yup_AxoRight",e[e.Orientation_TypeOfOrientation_Yup_Front=2]="Orientation_TypeOfOrientation_Yup_Front",e[e.Orientation_TypeOfOrientation_Yup_Back=5]="Orientation_TypeOfOrientation_Yup_Back",e[e.Orientation_TypeOfOrientation_Yup_Top=1]="Orientation_TypeOfOrientation_Yup_Top",e[e.Orientation_TypeOfOrientation_Yup_Bottom=4]="Orientation_TypeOfOrientation_Yup_Bottom",e[e.Orientation_TypeOfOrientation_Yup_Left=0]="Orientation_TypeOfOrientation_Yup_Left",e[e.Orientation_TypeOfOrientation_Yup_Right=3]="Orientation_TypeOfOrientation_Yup_Right"}(t.MxV3dTypeOfOrientation||(t.MxV3dTypeOfOrientation={})),function(e){e[e.Angle_TypeOfAngle_Interior=0]="Angle_TypeOfAngle_Interior",e[e.Angle_TypeOfAngle_Exterior=1]="Angle_TypeOfAngle_Exterior"}(t.MxTypeOfAngle||(t.MxTypeOfAngle={})),function(e){e[e.Visibility_TOAAV_Both=0]="Visibility_TOAAV_Both",e[e.Visibility_TOAAV_First=1]="Visibility_TOAAV_First",e[e.Visibility_TOAAV_Second=2]="Visibility_TOAAV_Second",e[e.Visibility_TOAAV_None=3]="Visibility_TOAAV_None"}(t.MxTypeOfAngleArrowVisibility||(t.MxTypeOfAngleArrowVisibility={})),function(e){e[e.Line_TOL_EMPTY=-1]="Line_TOL_EMPTY",e[e.Line_TOL_SOLID=0]="Line_TOL_SOLID",e[e.Line_TOL_DASH=1]="Line_TOL_DASH",e[e.Line_TOL_DOT=2]="Line_TOL_DOT",e[e.Line_TOL_DOTDASH=3]="Line_TOL_DOTDASH",e[e.Line_TOL_USERDEFINED=4]="Line_TOL_USERDEFINED"}(t.MxTypeOfLine||(t.MxTypeOfLine={})),function(e){e[e.TextPath_TP_UP=0]="TextPath_TP_UP",e[e.TextPath_TP_DOWN=1]="TextPath_TP_DOWN",e[e.TextPath_TP_LEFT=2]="TextPath_TP_LEFT",e[e.TextPath_TP_RIGHT=3]="TextPath_TP_RIGHT"}(t.MxTextPath||(t.MxTextPath={})),function(e){e[e.DimensionArrowOrientation_DAO_Internal=0]="DimensionArrowOrientation_DAO_Internal",e[e.DimensionArrowOrientation_DAO_External=1]="DimensionArrowOrientation_DAO_External",e[e.DimensionArrowOrientation_DAO_Fit=2]="DimensionArrowOrientation_DAO_Fit"}(t.MxDimensionArrowOrientation||(t.MxDimensionArrowOrientation={})),function(e){e[e.DimensionTextVerticalPosition_DTVP_Above=0]="DimensionTextVerticalPosition_DTVP_Above",e[e.DimensionTextVerticalPosition_DTVP_Below=1]="DimensionTextVerticalPosition_DTVP_Below",e[e.DimensionTextVerticalPosition_DTVP_Center=2]="DimensionTextVerticalPosition_DTVP_Center"}(t.MxDimensionTextVerticalPosition||(t.MxDimensionTextVerticalPosition={})),function(e){e[e.DimensionTextHorizontalPosition_DTHP_Left=0]="DimensionTextHorizontalPosition_DTHP_Left",e[e.DimensionTextHorizontalPosition_DTHP_Right=1]="DimensionTextHorizontalPosition_DTHP_Right",e[e.DimensionTextHorizontalPosition_DTHP_Center=2]="DimensionTextHorizontalPosition_DTHP_Center",e[e.DimensionTextHorizontalPosition_DTHP_Fit=3]="DimensionTextHorizontalPosition_DTHP_Fit"}(t.MxDimensionTextHorizontalPosition||(t.MxDimensionTextHorizontalPosition={})),function(e){e[e.KindOfDimension_KOD_NONE=0]="KindOfDimension_KOD_NONE",e[e.KindOfDimension_KOD_LENGTH=1]="KindOfDimension_KOD_LENGTH",e[e.KindOfDimension_KOD_PLANEANGLE=2]="KindOfDimension_KOD_PLANEANGLE",e[e.KindOfDimension_KOD_SOLIDANGLE=3]="KindOfDimension_KOD_SOLIDANGLE",e[e.KindOfDimension_KOD_AREA=4]="KindOfDimension_KOD_AREA",e[e.KindOfDimension_KOD_VOLUME=5]="KindOfDimension_KOD_VOLUME",e[e.KindOfDimension_KOD_MASS=6]="KindOfDimension_KOD_MASS",e[e.KindOfDimension_KOD_TIME=7]="KindOfDimension_KOD_TIME",e[e.KindOfDimension_KOD_RADIUS=8]="KindOfDimension_KOD_RADIUS",e[e.KindOfDimension_KOD_DIAMETER=9]="KindOfDimension_KOD_DIAMETER",e[e.KindOfDimension_KOD_CHAMF2D=10]="KindOfDimension_KOD_CHAMF2D",e[e.KindOfDimension_KOD_CHAMF3D=11]="KindOfDimension_KOD_CHAMF3D",e[e.KindOfDimension_KOD_OFFSET=12]="KindOfDimension_KOD_OFFSET",e[e.KindOfDimension_KOD_ELLIPSERADIUS=13]="KindOfDimension_KOD_ELLIPSERADIUS"}(t.MxKindOfDimension||(t.MxKindOfDimension={})),function(e){e[e.DocColor_ColorGen=0]="DocColor_ColorGen",e[e.DocColor_ColorSurf=1]="DocColor_ColorSurf",e[e.DocColor_ColorCurv=2]="DocColor_ColorCurv"}(t.MxDocColorType||(t.MxDocColorType={})),function(e){e[e.KindOfInteractive_None=0]="KindOfInteractive_None",e[e.KindOfInteractive_Datum=1]="KindOfInteractive_Datum",e[e.KindOfInteractive_Shape=2]="KindOfInteractive_Shape",e[e.KindOfInteractive_Object=3]="KindOfInteractive_Object",e[e.KindOfInteractive_Relation=4]="KindOfInteractive_Relation",e[e.KindOfInteractive_Dimension=5]="KindOfInteractive_Dimension",e[e.KindOfInteractive_LightSource=6]="KindOfInteractive_LightSource",e[e.KOI_None=0]="KOI_None",e[e.KOI_Datum=1]="KOI_Datum",e[e.KOI_Shape=2]="KOI_Shape",e[e.KOI_Object=3]="KOI_Object",e[e.KOI_Relation=4]="KOI_Relation",e[e.KOI_Dimension=5]="KOI_Dimension"}(t.MxKindOfInteractive||(t.MxKindOfInteractive={})),function(e){e[e.TOH_NotSet=0]="TOH_NotSet",e[e.TOH_PolyAlgo=1]="TOH_PolyAlgo",e[e.TOH_Algo=2]="TOH_Algo"}(t.MxPrs3dTypeOfHLR||(t.MxPrs3dTypeOfHLR={})),function(e){e[e.DisplayStatus_Displayed=0]="DisplayStatus_Displayed",e[e.DisplayStatus_Erased=1]="DisplayStatus_Erased",e[e.DisplayStatus_None=2]="DisplayStatus_None",e[e.DS_Displayed=0]="DS_Displayed",e[e.DS_Erased=1]="DS_Erased",e[e.DS_None=2]="DS_None"}(t.MxDisplayStatus||(t.MxDisplayStatus={})),function(e){e[e.DisplayMode_Wireframe=0]="DisplayMode_Wireframe",e[e.DisplayMode_HiddenLineRemoval=1]="DisplayMode_HiddenLineRemoval",e[e.DisplayMode_Shaded=2]="DisplayMode_Shaded",e[e.DisplayMode_ShadedWithFaceBoundary=3]="DisplayMode_ShadedWithFaceBoundary",e[e.DisplayMode_Transparency=4]="DisplayMode_Transparency"}(t.MxGlobalDisplayMode||(t.MxGlobalDisplayMode={})),function(e){e[e.GradientFillMethod_None=0]="GradientFillMethod_None",e[e.GradientFillMethod_Horizontal=1]="GradientFillMethod_Horizontal",e[e.GradientFillMethod_Vertical=2]="GradientFillMethod_Vertical",e[e.GradientFillMethod_Diagonal1=3]="GradientFillMethod_Diagonal1",e[e.GradientFillMethod_Diagonal2=4]="GradientFillMethod_Diagonal2",e[e.GradientFillMethod_Corner1=5]="GradientFillMethod_Corner1",e[e.GradientFillMethod_Corner2=6]="GradientFillMethod_Corner2",e[e.GradientFillMethod_Corner3=7]="GradientFillMethod_Corner3",e[e.GradientFillMethod_Corner4=8]="GradientFillMethod_Corner4",e[e.GradientFillMethod_Elliptical=9]="GradientFillMethod_Elliptical",e[e.GFM_NONE=0]="GFM_NONE",e[e.GFM_HOR=1]="GFM_HOR",e[e.GFM_VER=2]="GFM_VER",e[e.GFM_DIAG1=3]="GFM_DIAG1",e[e.GFM_DIAG2=4]="GFM_DIAG2",e[e.GFM_CORNER1=5]="GFM_CORNER1",e[e.GFM_CORNER2=6]="GFM_CORNER2",e[e.GFM_CORNER3=7]="GFM_CORNER3",e[e.GFM_CORNER4=8]="GFM_CORNER4"}(t.MxGradientFillMethod||(t.MxGradientFillMethod={})),function(e){e[e.Format_Unknown=0]="Format_Unknown",e[e.Format_Image=1]="Format_Image",e[e.Format_3DS=2]="Format_3DS",e[e.Format_3MF=3]="Format_3MF",e[e.Format_AMF=4]="Format_AMF",e[e.Format_COLLADA=5]="Format_COLLADA",e[e.Format_DXF=6]="Format_DXF",e[e.Format_FBX=7]="Format_FBX",e[e.Format_GLTF=8]="Format_GLTF",e[e.Format_IGES=9]="Format_IGES",e[e.Format_OBJ=10]="Format_OBJ",e[e.Format_OCCBREP=11]="Format_OCCBREP",e[e.Format_OFF=12]="Format_OFF",e[e.Format_PLY=13]="Format_PLY",e[e.Format_STEP=14]="Format_STEP",e[e.Format_STL=15]="Format_STL",e[e.Format_VRML=16]="Format_VRML",e[e.Format_X3D=17]="Format_X3D",e[e.Format_Blender=18]="Format_Blender"}(t.MxFormat||(t.MxFormat={}))})(MdGe||(MdGe={}));var MdGeExplorer=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o,s){var c;return _classCallCheck$1(this,r),arguments.length==0?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeExplorer)):n instanceof MdGeShape&&arguments.length==2?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeExplorer(n.getImp(),o))):n instanceof MdGeShape&&arguments.length==3&&(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeExplorer(n.getImp(),o,s))),_possibleConstructorReturn$1(c)}return _createClass$1(r,[{key:"Init",value:function(o,s,c){this.imp.Init(o.getImp(),s,c)}},{key:"More",value:function(){return this.imp.More()}},{key:"Next",value:function(){this.imp.Next()}},{key:"Value",value:function(){return new MdGeShape(this.imp.Value())}},{key:"Current",value:function(){return new MdGeShape(this.imp.Current())}},{key:"ReInit",value:function(){this.imp.ReInit()}},{key:"ExploredShape",value:function(){return new MdGeShape(this.imp.ExploredShape())}},{key:"Depth",value:function(){return this.imp.Depth()}},{key:"Clear",value:function(){this.imp.Clear()}}]),r}(Mx3dBaseObject),MdGeFillet=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o){var s;return _classCallCheck$1(this,r),arguments.length==0?(s=e.call(this),s.initTempObject(new mxDraw3d.MdGeFillet)):n instanceof MdGeShape&&arguments.length==2?(s=e.call(this),s.initTempObject(new mxDraw3d.MdGeFillet(n.getImp(),o))):n instanceof Object&&arguments.length==1&&(s=e.call(this,n)),_possibleConstructorReturn$1(s)}return _createClass$1(r,[{key:"SetParams",value:function(o,s,c,l,v,x){this.imp.SetParams(o,s,c,l,v,x)}},{key:"Add",value:function(o,s,c){o instanceof MdGeEdge&&arguments.length==1?this.imp.Add(o.getImp()):typeof o=="number"&&s instanceof MdGeEdge&&arguments.length==2?this.imp.Add(o,s.getImp()):typeof o=="number"&&typeof s=="number"&&arguments.length==3&&this.imp.Add(o,s,c==null?void 0:c.getImp())}},{key:"SetRadius",value:function(o,s,c,l){arguments.length==3?this.imp.SetRadius(o,s,c):this.imp.SetRadius(o,s,c,l)}},{key:"ResetContour",value:function(o){this.imp.ResetContour(o)}},{key:"IsConstant",value:function(o,s){return arguments.length==1?this.imp.IsConstant(o):this.imp.IsConstant(o,s==null?void 0:s.getImp())}},{key:"Radius",value:function(o,s){return arguments.length==1?this.imp.Radius(o):this.imp.Radius(o,s==null?void 0:s.getImp())}},{key:"SetRadiusForEdge",value:function(o,s,c){this.imp.SetRadiusForEdge(o,s,c.getImp())}},{key:"SetRadiusForVertex",value:function(o,s,c){this.imp.SetRadiusForVertex(o,s,c.getImp())}},{key:"SetFilletShape",value:function(o){this.imp.SetFilletShape(o)}},{key:"GetFilletShape",value:function(){return this.imp.GetFilletShape()}},{key:"NbContours",value:function(){return this.imp.NbContours()}},{key:"Contour",value:function(o){return this.imp.Contour(o.getImp())}},{key:"NbEdges",value:function(o){return this.imp.NbEdges(o)}},{key:"Edge",value:function(o,s){return new MdGeEdge(this.imp.Edge(o,s))}},{key:"Remove",value:function(o){this.imp.Remove(o.getImp())}},{key:"Length",value:function(o){return this.imp.Length(o)}},{key:"FirstVertex",value:function(o){return new MdGeVertex(this.imp.FirstVertex(o))}},{key:"LastVertex",value:function(o){return new MdGeVertex(this.imp.LastVertex(o))}},{key:"Abscissa",value:function(o,s){return this.imp.Abscissa(o,s.getImp())}},{key:"RelativeAbscissa",value:function(o,s){return this.imp.RelativeAbscissa(o,s.getImp())}},{key:"ClosedAndTangent",value:function(o){return this.imp.ClosedAndTangent(o)}},{key:"Closed",value:function(o){return this.imp.Closed(o)}},{key:"Reset",value:function(){this.imp.Reset()}},{key:"NbSurfaces",value:function(){return this.imp.NbSurfaces()}},{key:"Simulate",value:function(o){this.imp.Simulate(o)}},{key:"NbSurf",value:function(o){return this.imp.NbSurf(o)}},{key:"NbFaultyContours",value:function(){return this.imp.NbFaultyContours()}},{key:"FaultyContour",value:function(o){return this.imp.FaultyContour(o)}},{key:"NbComputedSurfaces",value:function(o){return this.imp.NbComputedSurfaces(o)}},{key:"NbFaultyVertices",value:function(){return this.imp.NbFaultyVertices()}},{key:"FaultyVertex",value:function(o){return new MdGeVertex(this.imp.FaultyVertex(o))}},{key:"HasResult",value:function(){return this.imp.HasResult()}},{key:"BadShape",value:function(){return new MdGeShape(this.imp.BadShape())}},{key:"Shape",value:function(){return new MdGeShape(this.imp.Shape())}}]),r}(Mx3dBaseObject),MdGeHypr=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o,s){var c;return _classCallCheck$1(this,r),arguments.length==0?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeHypr)):n instanceof MdGeCSYSR&&arguments.length==3?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeHypr(n.getImp(),o,s))):n instanceof Object&&arguments.length==1&&(c=e.call(this,n)),_possibleConstructorReturn$1(c)}return _createClass$1(r,[{key:"SetAxis",value:function(o){this.imp.SetAxis(o.getImp())}},{key:"SetLocation",value:function(o){this.imp.SetLocation(o.getImp())}},{key:"SetMajorRadius",value:function(o){this.imp.SetMajorRadius(o)}},{key:"SetMinorRadius",value:function(o){this.imp.SetMinorRadius(o)}},{key:"SetPosition",value:function(o){this.imp.SetPosition(o.getImp())}},{key:"Asymptote1",value:function(){return new MdGeAxis(this.imp.Asymptote1())}},{key:"Asymptote2",value:function(){return new MdGeAxis(this.imp.Asymptote2())}},{key:"Axis",value:function(){return new MdGeAxis(this.imp.Axis())}},{key:"ConjugateBranch1",value:function(){return new r(this.imp.ConjugateBranch1())}},{key:"ConjugateBranch2",value:function(){return new r(this.imp.ConjugateBranch2())}},{key:"Directrix1",value:function(){return new MdGeAxis(this.imp.Directrix1())}},{key:"Directrix2",value:function(){return new MdGeAxis(this.imp.Directrix2())}},{key:"Eccentricity",value:function(){return this.imp.Eccentricity()}},{key:"Focal",value:function(){return this.imp.Focal()}},{key:"Focus1",value:function(){return new MdGePoint(this.imp.Focus1())}},{key:"Focus2",value:function(){return new MdGePoint(this.imp.Focus2())}},{key:"Location",value:function(){return new MdGePoint(this.imp.Location())}},{key:"MajorRadius",value:function(){return this.imp.MajorRadius()}},{key:"MinorRadius",value:function(){return this.imp.MinorRadius()}},{key:"OtherBranch",value:function(){return new r(this.imp.OtherBranch())}},{key:"Parameter",value:function(){return this.imp.Parameter()}},{key:"Position",value:function(){return new MdGeCSYSR(this.imp.Position())}},{key:"XAxis",value:function(){return new MdGeAxis(this.imp.XAxis())}},{key:"YAxis",value:function(){return new MdGeAxis(this.imp.YAxis())}},{key:"MirrorByPoint",value:function(o){this.imp.MirrorByPoint(o.getImp())}},{key:"MirroredByPoint",value:function(o){return new r(this.imp.MirroredByPoint(o.getImp()))}},{key:"MirrorByAxis",value:function(o){this.imp.MirrorByAxis(o.getImp())}},{key:"MirroredByAxis",value:function(o){return new r(this.imp.MirroredByAxis(o.getImp()))}},{key:"MirrorByCSYSR",value:function(o){this.imp.MirrorByCSYSR(o.getImp())}},{key:"MirroredByCSYSR",value:function(o){return new r(this.imp.MirroredByCSYSR(o.getImp()))}},{key:"Rotate",value:function(o,s){this.imp.Rotate(o.getImp(),s)}},{key:"Rotated",value:function(o,s){return new r(this.imp.Rotated(o.getImp(),s))}},{key:"Scale",value:function(o,s){this.imp.Scale(o.getImp(),s)}},{key:"Scaled",value:function(o,s){return new r(this.imp.Scaled(o.getImp(),s))}},{key:"Transform",value:function(o){this.imp.Transform(o.getImp())}},{key:"Transformed",value:function(o){return new r(this.imp.Transformed(o.getImp()))}},{key:"TranslateByVec",value:function(o){this.imp.TranslateByVec(o.getImp())}},{key:"TranslatedByVec",value:function(o){return new r(this.imp.TranslatedByVec(o.getImp()))}},{key:"TranslateBy2Points",value:function(o,s){this.imp.TranslateBy2Points(o.getImp(),s.getImp())}},{key:"TranslatedBy2Points",value:function(o,s){return new r(this.imp.TranslatedBy2Points(o.getImp(),s.getImp()))}},{key:"Shape",value:function(){return new MdGeShape(this.imp.Shape())}},{key:"Wire",value:function(){return new MdGeWire(this.imp.Wire())}},{key:"Edge",value:function(o,s){return arguments.length==2?new MdGeEdge(this.imp.Edge(o,s)):new MdGeEdge(this.imp.Edge())}}]),r}(Mx3dBaseObject),MdGeBox=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o,s,c){var l;return _classCallCheck$1(this,r),arguments.length==0?(l=e.call(this),l.initTempObject(new mxDraw3d.MdGeBox)):n instanceof MdGePoint&&o instanceof MdGePoint&&arguments.length==2?(l=e.call(this),l.initTempObject(new mxDraw3d.MdGeBox(n.getImp(),o.getImp()))):typeof n=="number"&&typeof o=="number"&&arguments.length==3?(l=e.call(this),l.initTempObject(new mxDraw3d.MdGeBox(n,o,s))):n instanceof MdGeCSYSR&&typeof o=="number"&&arguments.length==4?(l=e.call(this),l.initTempObject(new mxDraw3d.MdGeBox(n.getImp(),o,s,c))):n instanceof Object&&arguments.length==1&&(l=e.call(this,n)),_possibleConstructorReturn$1(l)}return _createClass$1(r,[{key:"Init",value:function(o,s,c,l){o instanceof MdGePoint&&s instanceof MdGePoint&&arguments.length==2?this.imp.Init(o.getImp(),s.getImp()):typeof o=="number"&&typeof s=="number"&&arguments.length==3?this.imp.Init(o,s,c):o instanceof MdGeCSYSR&&typeof s=="number"&&arguments.length==4&&this.imp.Init(o.getImp(),s,c,l)}},{key:"Shape",value:function(){return new MdGeShape(this.imp.Shape())}},{key:"Shell",value:function(){return new MdGeShell(this.imp.Shell())}},{key:"Solid",value:function(){return new MdGeSolid(this.imp.Solid())}},{key:"BottomFace",value:function(){return new MdGeFace(this.imp.BottomFace())}},{key:"BackFace",value:function(){return new MdGeFace(this.imp.BackFace())}},{key:"FrontFace",value:function(){return new MdGeFace(this.imp.FrontFace())}},{key:"LeftFace",value:function(){return new MdGeFace(this.imp.LeftFace())}},{key:"RightFace",value:function(){return new MdGeFace(this.imp.RightFace())}},{key:"TopFace",value:function(){return new MdGeFace(this.imp.TopFace())}}]),r}(Mx3dBaseObject),MdGeBSplineCurve=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o,s,c,l){var v;return _classCallCheck$1(this,r),arguments.length==0?(v=e.call(this),v.initTempObject(new mxDraw3d.MdGeBSplineCurve)):n instanceof MdGeArray1OfPnt&&arguments.length==4?(v=e.call(this),v.initTempObject(new mxDraw3d.MdGeBSplineCurve(n.getImp(),o==null?void 0:o.getImp(),s==null?void 0:s.getImp(),c))):n instanceof MdGeArray1OfPnt&&arguments.length==5?(v=e.call(this),v.initTempObject(new mxDraw3d.MdGeBSplineCurve(n.getImp(),o==null?void 0:o.getImp(),s==null?void 0:s.getImp(),c,l))):n instanceof Object&&arguments.length==1&&(v=e.call(this,n)),_possibleConstructorReturn$1(v)}return _createClass$1(r,[{key:"IncreaseDegree",value:function(o){this.imp.IncreaseDegree(o)}},{key:"IncreaseMultiplicity",value:function(o,s,c){arguments.length==2?this.imp.IncreaseMultiplicity(o,s):this.imp.IncreaseMultiplicity(o,s,c)}},{key:"IncrementMultiplicity",value:function(o,s,c){this.imp.IncrementMultiplicity(o,s,c)}},{key:"InsertKnot",value:function(o,s,c,l){arguments.length==1?this.imp.InsertKnot(o):arguments.length==2?this.imp.InsertKnot(o,s):arguments.length==3?this.imp.InsertKnot(o,s,c):arguments.length==4&&this.imp.InsertKnot(o,s,c,l)}},{key:"InsertKnots",value:function(o,s,c,l){arguments.length==2?this.imp.InsertKnots(o.getImp(),s.getImp()):arguments.length==3?this.imp.InsertKnots(o.getImp(),s.getImp(),c):arguments.length==4&&this.imp.InsertKnots(o.getImp(),s.getImp(),c,l)}},{key:"RemoveKnot",value:function(o,s,c){return this.imp.RemoveKnot(o,s,c)}},{key:"Reverse",value:function(){this.imp.Reverse()}},{key:"ReversedParameter",value:function(o){return this.imp.ReversedParameter(o)}},{key:"SetKnot",value:function(o,s,c){arguments.length==2?this.imp.SetKnot(o,s):this.imp.SetKnot(o,s,c)}},{key:"SetKnots",value:function(o){this.imp.SetKnots(o.getImp())}},{key:"SetPeriodic",value:function(){this.imp.SetPeriodic()}},{key:"SetOrigin",value:function(o,s){arguments.length==1?this.imp.SetOrigin(o):this.imp.SetOrigin(o,s)}},{key:"SetNotPeriodic",value:function(){this.imp.SetNotPeriodic()}},{key:"SetPole",value:function(o,s,c){arguments.length==2?this.imp.SetPole(o,s.getImp()):this.imp.SetPole(o,s.getImp(),c)}},{key:"SetWeight",value:function(o,s){this.imp.SetWeight(o,s)}},{key:"IsCN",value:function(o){return this.imp.IsCN(o)}},{key:"IsG1",value:function(o,s,c){return this.imp.IsG1(o,s,c)}},{key:"IsClosed",value:function(){return this.imp.IsClosed()}},{key:"IsPeriodic",value:function(){return this.imp.IsPeriodic()}},{key:"IsRational",value:function(){return this.imp.IsRational()}},{key:"Continuity",value:function(){return this.imp.Continuity()}},{key:"Degree",value:function(){return this.imp.Degree()}},{key:"DN",value:function(o,s){return new MdGeVec(this.imp.DN(o,s))}},{key:"LocalValue",value:function(o,s,c){return new MdGePoint(this.imp.LocalValue(o,s,c))}},{key:"LocalDN",value:function(o,s,c,l){return new MdGeVec(this.imp.LocalDN(o,s,c,l))}},{key:"EndPoint",value:function(){return new MdGePoint(this.imp.EndPoint())}},{key:"FirstUKnotIndex",value:function(){return this.imp.FirstUKnotIndex()}},{key:"FirstParameter",value:function(){return this.imp.FirstParameter()}},{key:"Knot",value:function(o){return this.imp.Knot(o)}},{key:"Knots",value:function(){return new MdGeArray1OfReal(this.imp.Knots())}},{key:"KnotSequence",value:function(){return new MdGeArray1OfReal(this.imp.KnotSequence())}},{key:"LastUKnotIndex",value:function(){return this.imp.LastUKnotIndex()}},{key:"LastParameter",value:function(){return this.imp.LastParameter()}},{key:"Multiplicity",value:function(o){return this.imp.Multiplicity(o)}},{key:"Multiplicities",value:function(){return new MdGeArray1OfInteger(this.imp.Multiplicities())}},{key:"NbKnots",value:function(){return this.imp.NbKnots()}},{key:"NbPoles",value:function(){return this.imp.NbPoles()}},{key:"Pole",value:function(o){return new MdGePoint(this.imp.Pole(o))}},{key:"Poles",value:function(){return new MdGeArray1OfPnt(this.imp.Poles())}},{key:"StartPoint",value:function(){return new MdGePoint(this.imp.StartPoint())}},{key:"Weight",value:function(o){return this.imp.Weight(o)}},{key:"Weights",value:function(){return new MdGeArray1OfReal(this.imp.Weights())}},{key:"Transform",value:function(o){this.imp.Transform(o.getImp())}},{key:"Shape",value:function(){return new MdGeShape(this.imp.Shape())}},{key:"Edge",value:function(){return new MdGeEdge(this.imp.Edge())}},{key:"Wire",value:function(){return new MdGeWire(this.imp.Wire())}}]),r}(Mx3dBaseObject),MdGeBSplineSurface=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o,s,c,l,v,x,w,_){var b;return _classCallCheck$1(this,r),arguments.length==0?(b=e.call(this),b.initTempObject(new mxDraw3d.MdGeBSplineSurface)):n instanceof MdGeArray2OfPnt&&arguments.length==7?(b=e.call(this),b.initTempObject(new mxDraw3d.MdGeBSplineSurface(n.getImp(),o==null?void 0:o.getImp(),s==null?void 0:s.getImp(),c==null?void 0:c.getImp(),l==null?void 0:l.getImp(),v,x))):n instanceof MdGeArray2OfPnt&&arguments.length==8?(b=e.call(this),b.initTempObject(new mxDraw3d.MdGeBSplineSurface(n.getImp(),o==null?void 0:o.getImp(),s==null?void 0:s.getImp(),c==null?void 0:c.getImp(),l==null?void 0:l.getImp(),v,x,w))):n instanceof MdGeArray2OfPnt&&arguments.length==9?(b=e.call(this),b.initTempObject(new mxDraw3d.MdGeBSplineSurface(n.getImp(),o==null?void 0:o.getImp(),s==null?void 0:s.getImp(),c==null?void 0:c.getImp(),l==null?void 0:l.getImp(),v,x,w,_))):!(n instanceof MdGeArray2OfPnt)&&arguments.length==1&&(b=e.call(this,n)),_possibleConstructorReturn$1(b)}return _createClass$1(r,[{key:"ExchangeUV",value:function(){this.imp.ExchangeUV()}},{key:"SetUPeriodic",value:function(){this.imp.SetUPeriodic()}},{key:"SetVPeriodic",value:function(){this.imp.SetVPeriodic()}},{key:"SetUOrigin",value:function(o){this.imp.SetUOrigin(o)}},{key:"SetVOrigin",value:function(o){this.imp.SetVOrigin(o)}},{key:"SetVNotPeriodic",value:function(){this.imp.SetVNotPeriodic()}},{key:"UReverse",value:function(){this.imp.UReverse()}},{key:"VReverse",value:function(){this.imp.VReverse()}},{key:"UReversedParameter",value:function(o){return this.imp.UReversedParameter(o)}},{key:"VReversedParameter",value:function(o){return this.imp.VReversedParameter(o)}},{key:"IncreaseDegree",value:function(o,s){this.imp.IncreaseDegree(o,s)}},{key:"InsertUKnots",value:function(o,s,c,l){arguments.length==2?this.imp.InsertUKnots(o.getImp(),s.getImp()):arguments.length==3?this.imp.InsertUKnots(o.getImp(),s.getImp(),c):arguments.length==3&&this.imp.InsertUKnots(o.getImp(),s.getImp(),c,l)}},{key:"InsertVKnots",value:function(o,s,c,l){arguments.length==2?this.imp.InsertVKnots(o.getImp(),s.getImp()):arguments.length==3?this.imp.InsertVKnots(o.getImp(),s.getImp(),c):arguments.length==3&&this.imp.InsertVKnots(o.getImp(),s.getImp(),c,l)}},{key:"RemoveUKnot",value:function(o,s,c){return this.imp.RemoveUKnot(o,s,c)}},{key:"RemoveVKnot",value:function(o,s,c){return this.imp.RemoveVKnot(o,s,c)}},{key:"IncreaseUMultiplicity",value:function(o,s,c){arguments.length==2?this.imp.IncreaseUMultiplicity(o,s):this.imp.IncreaseUMultiplicity(o,s,c)}},{key:"IncreaseVMultiplicity",value:function(o,s,c){arguments.length==2?this.imp.IncreaseVMultiplicity(o,s):this.imp.IncreaseVMultiplicity(o,s,c)}},{key:"IncrementUMultiplicity",value:function(o,s,c){this.imp.IncrementUMultiplicity(o,s,c)}},{key:"IncrementVMultiplicity",value:function(o,s,c){this.imp.IncrementVMultiplicity(o,s,c)}},{key:"InsertUKnot",value:function(o,s,c,l){arguments.length==3?this.imp.InsertUKnot(o,s,c):this.imp.InsertUKnot(o,s,c,l)}},{key:"InsertVKnot",value:function(o,s,c,l){arguments.length==3?this.imp.InsertVKnot(o,s,c):this.imp.InsertVKnot(o,s,c,l)}},{key:"SetUKnot",value:function(o,s,c){arguments.length==2?this.imp.SetUKnot(o,s):this.imp.SetUKnot(o,s,c)}},{key:"SetVKnot",value:function(o,s,c){arguments.length==2?this.imp.SetVKnot(o,s):this.imp.SetVKnot(o,s,c)}},{key:"SetUKnots",value:function(o){this.imp.SetUKnots(o.getImp())}},{key:"SetVKnots",value:function(o){this.imp.SetVKnots(o.getImp())}},{key:"SetPole",value:function(o,s,c,l){arguments.length==3?this.imp.SetPole(o,s,c.getImp()):this.imp.SetPole(o,s,c.getImp(),l)}},{key:"SetPoleCol",value:function(o,s,c){arguments.length==2?this.imp.SetPoleCol(o,s.getImp()):this.imp.SetPoleCol(o,s.getImp(),c==null?void 0:c.getImp())}},{key:"SetPoleRow",value:function(o,s,c){arguments.length==2?this.imp.SetPoleRow(o,s.getImp()):this.imp.SetPoleRow(o,s.getImp(),c==null?void 0:c.getImp())}},{key:"SetWeight",value:function(o,s,c){this.imp.SetWeight(o,s,c)}},{key:"SetWeightCol",value:function(o,s){this.imp.SetWeightCol(o,s.getImp())}},{key:"SetWeightRow",value:function(o,s){this.imp.SetWeightRow(o,s.getImp())}},{key:"IsUClosed",value:function(){return this.imp.IsUClosed()}},{key:"IsVClosed",value:function(){return this.imp.IsVClosed()}},{key:"IsCNu",value:function(o){return this.imp.IsCNu(o)}},{key:"IsCNv",value:function(o){return this.imp.IsCNv(o)}},{key:"IsUPeriodic",value:function(){return this.imp.IsUPeriodic()}},{key:"IsURational",value:function(){return this.imp.IsURational()}},{key:"IsVPeriodic",value:function(){return this.imp.IsVPeriodic()}},{key:"IsVRational",value:function(){return this.imp.IsVRational()}},{key:"Continuity",value:function(){return this.imp.Continuity()}},{key:"FirstUKnotIndex",value:function(){return this.imp.FirstUKnotIndex()}},{key:"FirstVKnotIndex",value:function(){return this.imp.FirstVKnotIndex()}},{key:"LastUKnotIndex",value:function(){return this.imp.LastUKnotIndex()}},{key:"LastVKnotIndex",value:function(){return this.imp.LastVKnotIndex()}},{key:"NbUKnots",value:function(){return this.imp.NbUKnots()}},{key:"NbUPoles",value:function(){return this.imp.NbVKnots()}},{key:"NbVKnots",value:function(){return this.imp.NbVKnots()}},{key:"NbVPoles",value:function(){return this.imp.NbVPoles()}},{key:"Pole",value:function(o,s){return new MdGePoint(this.imp.Pole(o,s))}},{key:"Poles",value:function(){return new MdGeArray2OfPnt(this.Poles())}},{key:"UDegree",value:function(){return this.imp.UDegree()}},{key:"UKnot",value:function(o){return this.imp.UKnot(o)}},{key:"UKnots",value:function(){return new MdGeArray1OfReal(this.imp.UKnots())}},{key:"UKnotSequence",value:function(){return new MdGeArray1OfReal(this.imp.UKnotSequence())}},{key:"UMultiplicity",value:function(o){return this.imp.UMultiplicity(o)}},{key:"UMultiplicities",value:function(){return new MdGeArray1OfInteger(this.imp.UMultiplicities())}},{key:"VDegree",value:function(){return this.imp.VDegree()}},{key:"VKnot",value:function(o){return this.imp.VKnot(o)}},{key:"VKnots",value:function(){return new MdGeArray1OfReal(this.imp.VKnots())}},{key:"VKnotSequence",value:function(){return new MdGeArray1OfReal(this.imp.VKnotSequence())}},{key:"VMultiplicity",value:function(o){return this.imp.VMultiplicity(o)}},{key:"VMultiplicities",value:function(){return new MdGeArray1OfInteger(this.imp.VMultiplicities())}},{key:"Weight",value:function(o,s){return this.imp.Weight(o,s)}},{key:"Weights",value:function(){return new MdGeArray2OfReal(this.imp.Weights())}},{key:"DN",value:function(o,s,c,l){return new MdGeVec(this.imp.DN(o,s,c,l))}},{key:"LocalDN",value:function(o,s,c,l,v,x,w,_){return new MdGeVec(this.imp.LocalDN(o,s,c,l,v,x,w,_))}},{key:"LocalValue",value:function(o,s,c,l,v,x){return new MdGePoint(this.imp.LocalValue(o,s,c,l,v,x))}},{key:"Transform",value:function(o){this.imp.Transform(o.getImp())}},{key:"Shape",value:function(){return new MdGeShape(this.imp.Shape())}},{key:"Face",value:function(){return new MdGeFace(this.imp.Face())}}],[{key:"MaxDegree",value:function(){return mxDraw3d.MdGeBSplineSurface.MaxDegree()}}]),r}(Mx3dBaseObject),MdGeInterpolateBSpl=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o,s,c){var l;return _classCallCheck$1(this,r),arguments.length==0?(l=e.call(this),l.initTempObject(new mxDraw3d.MdGeInterpolateBSpl)):n instanceof MdGeArray1OfPnt&&typeof o=="boolean"&&typeof s=="number"&&arguments.length==3?(l=e.call(this),l.initTempObject(new mxDraw3d.MdGeInterpolateBSpl(n.getImp(),o,s))):n instanceof MdGeArray1OfPnt&&o instanceof MdGeArray1OfReal&&typeof s=="boolean"&&typeof c=="number"?(l=e.call(this),l.initTempObject(new mxDraw3d.MdGeInterpolateBSpl(n.getImp(),o.getImp(),s,c))):n instanceof Object&&arguments.length==1&&(l=e.call(this,n)),_possibleConstructorReturn$1(l)}return _createClass$1(r,[{key:"Load",value:function(o,s,c){arguments.length==2?this.imp.Load(o.getImp(),s.getImp()):this.imp.Load(o.getImp(),s.getImp(),c)}},{key:"Perform",value:function(){this.imp.Perform()}},{key:"Curve",value:function(){return new MdGeBSplineCurve(this.imp.Curve())}},{key:"IsDone",value:function(){return this.imp.IsDone()}}]),r}(Mx3dBaseObject),MdGeLengthDim=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o,s){var c;return _classCallCheck$1(this,r),arguments.length==0?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeLengthDim)):n instanceof MdGeEdge&&o instanceof MdGePlane&&arguments.length==2?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeLengthDim(n.getImp(),o.getImp()))):n instanceof MdGePoint&&o instanceof MdGePoint&&s instanceof MdGePlane?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeLengthDim(n.getImp(),o.getImp(),s.getImp()))):n instanceof Object&&arguments.length==1&&(c=e.call(this,n)),_possibleConstructorReturn$1(c)}return _createClass$1(r,[{key:"FirstPoint",value:function(){return new MdGePoint(this.imp.FirstPoint())}},{key:"SecondPoint",value:function(){return new MdGePoint(this.imp.SecondPoint())}},{key:"FirstShape",value:function(){return new MdGeShape(this.imp.FirstShape())}},{key:"SecondShape",value:function(){return new MdGeShape(this.imp.SecondShape())}},{key:"SetMeasuredGeometry",value:function(o,s,c){this.imp.SetMeasuredGeometry(o.getImp(),s.getImp(),c.getImp())}},{key:"SetMeasuredShapes",value:function(o,s){this.imp.SetMeasuredShapes(o.getImp(),s.getImp())}},{key:"SetTextPosition",value:function(o){this.imp.SetTextPosition(o.getImp())}},{key:"GetTextPosition",value:function(){return new MdGePoint(this.imp.GetTextPosition())}},{key:"SetDirection",value:function(o,s){this.imp.SetDirection(o.getImp(),s)}},{key:"GetValue",value:function(){return this.imp.GetValue()}},{key:"SetComputedValue",value:function(){this.imp.SetComputedValue()}},{key:"SetCustomValue",value:function(o){this.imp.SetCustomValue(o)}},{key:"GetPlane",value:function(){return new MdGePlane(this.imp.GetPlane())}},{key:"GetGeometryType",value:function(){return this.imp.GetGeometryType()}},{key:"SetCustomPlane",value:function(o){this.imp.SetCustomPlane(o.getImp())}},{key:"UnsetCustomPlane",value:function(){this.imp.UnsetCustomPlane()}},{key:"IsTextPositionCustom",value:function(){return this.imp.IsTextPositionCustom()}},{key:"DimensionAspect",value:function(){return new MdGeDimAspect(this.imp.DimensionAspect())}},{key:"SetDimensionAspect",value:function(o){this.imp.SetDimensionAspect(o.getImp())}},{key:"KindOfDimension",value:function(){return this.imp.KindOfDimension()}},{key:"AcceptDisplayMode",value:function(o){return this.imp.AcceptDisplayMode(o)}},{key:"UnsetFixedTextPosition",value:function(){this.imp.UnsetFixedTextPosition()}},{key:"SelToleranceForText2d",value:function(){return this.imp.SelToleranceForText2d()}},{key:"SetSelToleranceForText2d",value:function(o){this.imp.SetSelToleranceForText2d(o)}},{key:"GetFlyout",value:function(){return this.imp.GetFlyout()}},{key:"SetFlyout",value:function(o){this.imp.SetFlyout(o)}},{key:"IsValid",value:function(){return this.imp.IsValid()}},{key:"Display",value:function(){this.imp.Display()}}]),r}(Mx3dBaseObject),MdGeLine=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o){var s;return _classCallCheck$1(this,r),arguments.length==0?(s=e.call(this),s.initTempObject(new mxDraw3d.MdGeLine)):n instanceof MdGePoint&&o instanceof MdGeDir?(s=e.call(this),s.initTempObject(new mxDraw3d.MdGeLine(n.getImp(),o.getImp()))):n instanceof Object&&arguments.length==1&&(s=e.call(this,n)),_possibleConstructorReturn$1(s)}return _createClass$1(r,[{key:"Reverse",value:function(){this.imp.Reverse()}},{key:"Reversed",value:function(){return new r(this.imp.Reversed())}},{key:"SetDirection",value:function(o){this.imp.SetDirection(o.getImp())}},{key:"SetLocation",value:function(o){this.imp.SetLocation(o.getImp())}},{key:"SetPosition",value:function(o){this.imp.SetPosition(o.getImp())}},{key:"Direction",value:function(){return new MdGeDir(this.imp.Direction())}},{key:"Location",value:function(){return new MdGePoint(this.imp.Location())}},{key:"Position",value:function(){return new MdGeAxis(this.imp.Position())}},{key:"Angle",value:function(o){return this.imp.Angle(o.imp)}},{key:"Contains",value:function(o,s){return this.imp.Contains(o.getImp(),s)}},{key:"DistanceToPoint",value:function(o){return this.imp.DistanceToPoint(o.getImp())}},{key:"DistanceToLine",value:function(o){return this.imp.DistanceToLine(o.imp)}},{key:"SquareDistanceToPoint",value:function(o){return this.imp.SquareDistanceToPoint(o.getImp())}},{key:"SquareDistanceToLine",value:function(o){return this.imp.SquareDistanceToLine(o.imp)}},{key:"Normal",value:function(o){return new r(this.imp.Normal(o.getImp()))}},{key:"MirrorByPoint",value:function(o){this.imp.MirrorByPoint(o.getImp())}},{key:"MirroredByPoint",value:function(o){return new r(this.imp.MirroredByPoint(o.getImp()))}},{key:"MirrorByAxis",value:function(o){this.imp.MirrorByAxis(o.getImp())}},{key:"MirroredByAxis",value:function(o){return new r(this.imp.MirroredByAxis(o.getImp()))}},{key:"MirrorByCSYSR",value:function(o){this.imp.MirrorByCSYSR(o.getImp())}},{key:"MirroredByCSYSR",value:function(o){return new r(this.imp.MirroredByCSYSR(o.getImp()))}},{key:"Rotate",value:function(o,s){this.imp.Rotate(o.getImp(),s)}},{key:"Rotated",value:function(o,s){return new r(this.imp.Rotated(o.getImp(),s))}},{key:"Scale",value:function(o,s){this.imp.Scale(o.getImp(),s)}},{key:"Scaled",value:function(o,s){return new r(this.imp.Scaled(o.getImp(),s))}},{key:"Transform",value:function(o){this.imp.Transform(o.getImp())}},{key:"Transformed",value:function(o){return new r(this.imp.Transformed(o.getImp()))}},{key:"TranslateByVec",value:function(o){this.imp.TranslateByVec(o.getImp())}},{key:"TranslatedByVec",value:function(o){return new r(this.imp.TranslatedByVec(o.getImp()))}},{key:"TranslateBy2Points",value:function(o,s){this.imp.TranslateBy2Points(o.getImp(),s.getImp())}},{key:"TranslatedBy2Points",value:function(o,s){return new r(this.imp.TranslatedBy2Points(o.getImp(),s.getImp()))}},{key:"Shape",value:function(){return new MdGeShape(this.imp.Shape())}},{key:"Wire",value:function(){return new MdGeWire(this.imp.Wire())}},{key:"Edge",value:function(o,s){return arguments.length==2?new MdGeEdge(this.imp.Edge(o,s)):new MdGeEdge(this.imp.Edge())}}]),r}(Mx3dBaseObject),MdGeListIteratorOfListOfShape=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),arguments.length==0?(o=e.call(this),o.initTempObject(new mxDraw3d.MdGeListIteratorOfListOfShape)):o=e.call(this,n),_possibleConstructorReturn$1(o)}return _createClass$1(r,[{key:"More",value:function(){return this.imp.More()}},{key:"Next",value:function(){this.imp.Next()}},{key:"Value",value:function(){return new MdGeShape(this.imp.Value())}},{key:"ChangeValue",value:function(o){this.imp.ChangeValue(o.getImp())}}]),r}(Mx3dBaseObject),MdGeListOfShape=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),arguments.length==0?(o=e.call(this),o.initTempObject(new mxDraw3d.MdGeListOfShape)):o=e.call(this,n),_possibleConstructorReturn$1(o)}return _createClass$1(r,[{key:"begin",value:function(){return new MdGeListIteratorOfListOfShape(this.imp.begin())}},{key:"end",value:function(){return new MdGeListIteratorOfListOfShape(this.imp.end())}},{key:"Size",value:function(){return this.imp.Size()}},{key:"First",value:function(){return new MdGeShape(this.imp.First())}},{key:"Last",value:function(){return new MdGeShape(this.imp.Last())}},{key:"AppendShape",value:function(o,s){arguments.length==1?this.imp.AppendShape(o.getImp()):this.imp.AppendShape(o.getImp(),s==null?void 0:s.getImp())}},{key:"AppendList",value:function(o){this.imp.AppendList(o.getImp())}},{key:"PrependShape",value:function(o){this.imp.PrependShape(o.getImp())}},{key:"PrependList",value:function(o){this.imp.PrependList(o.getImp())}},{key:"RemoveFirst",value:function(){this.imp.RemoveFirst()}},{key:"InsertBeforeShape",value:function(o,s){this.imp.InsertBeforeShape(o.getImp(),s.getImp())}},{key:"InsertBeforeList",value:function(o,s){this.imp.InsertBeforeList(o.getImp(),s.getImp())}},{key:"InsertAfterShape",value:function(o,s){this.imp.InsertAfterShape(o.getImp(),s.getImp())}},{key:"InsertAfterList",value:function(o,s){this.imp.InsertAfterList(o.getImp(),s.getImp())}},{key:"Reverse",value:function(){this.imp.Reverse()}}]),r}(Mx3dBaseObject),MdGeLoft=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o,s){var c;return _classCallCheck$1(this,r),arguments.length==0?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeLoft)):typeof n=="boolean"&&arguments.length==1?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeLoft(n))):typeof n=="boolean"&&arguments.length==2?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeLoft(n,o))):typeof n=="boolean"&&arguments.length==3?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeLoft(n,o,s))):n instanceof Object&&arguments.length==1&&(c=e.call(this,n)),_possibleConstructorReturn$1(c)}return _createClass$1(r,[{key:"Init",value:function(o,s,c){arguments.length==0?this.imp.Init():arguments.length==1?this.imp.Init(o):arguments.length==2?this.imp.Init(o,s):arguments.length==3&&this.imp.Init(o,s,c)}},{key:"AddWire",value:function(o){this.imp.AddWire(o.getImp())}},{key:"AddVertex",value:function(o){this.imp.AddVertex(o.getImp())}},{key:"CheckCompatibility",value:function(o){arguments.length==0?this.imp.CheckCompatibility():this.imp.CheckCompatibility(o)}},{key:"SetSmoothing",value:function(o){this.imp.SetSmoothing(o)}},{key:"SetContinuity",value:function(o){this.imp.SetContinuity(o)}},{key:"SetMaxDegree",value:function(o){this.imp.SetMaxDegree(o)}},{key:"Continuity",value:function(){return this.imp.Continuity()}},{key:"MaxDegree",value:function(){return this.imp.MaxDegree()}},{key:"UseSmoothing",value:function(){return this.imp.UseSmoothing()}},{key:"FirstShape",value:function(){return new MdGeShape(this.imp.FirstShape())}},{key:"LastShape",value:function(){return new MdGeShape(this.imp.LastShape())}},{key:"GeneratedFace",value:function(o){return new MdGeShape(this.imp.GeneratedFace(o.getImp()))}},{key:"SetMutableInput",value:function(o){this.imp.SetMutableInput(o)}},{key:"IsMutableInput",value:function(){return this.imp.IsMutableInput()}},{key:"Shape",value:function(){return new MdGeShape(this.imp.Shape())}}]),r}(Mx3dBaseObject),MdGeMakeThickSolid=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),arguments.length==0?(o=e.call(this),o.initTempObject(new mxDraw3d.MdGeMakeThickSolid)):o=e.call(this,n),_possibleConstructorReturn$1(o)}return _createClass$1(r,[{key:"MakeThickSolidBySimple",value:function(o,s){this.imp.MakeThickSolidBySimple(o.getImp(),s)}},{key:"MakeThickSolidByJoin",value:function(o,s,c,l,v,x,w,_,b){arguments.length==4?this.imp.MakeThickSolidByJoin(o.getImp(),s.getImp(),c,l):arguments.length==5?this.imp.MakeThickSolidByJoin(o.getImp(),s.getImp(),c,l,v):arguments.length==6?this.imp.MakeThickSolidByJoin(o.getImp(),s.getImp(),c,l,v,x):arguments.length==7?this.imp.MakeThickSolidByJoin(o.getImp(),s.getImp(),c,l,v,x,w):arguments.length==8?this.imp.MakeThickSolidByJoin(o.getImp(),s.getImp(),c,l,v,x,w,_):arguments.length==9&&this.imp.MakeThickSolidByJoin(o.getImp(),s.getImp(),c,l,v,x,w,_,b)}},{key:"Shape",value:function(){return new MdGeShape(this.imp.Shape())}}]),r}(Mx3dBaseObject),MdGeParab=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o){var s;return _classCallCheck$1(this,r),arguments.length==0?(s=e.call(this),s.initTempObject(new mxDraw3d.MdGeParab)):n instanceof MdGeCSYSR&&typeof o=="number"?(s=e.call(this),s.initTempObject(new mxDraw3d.MdGeParab(n.getImp(),o))):n instanceof Object&&arguments.length==1&&(s=e.call(this,n)),_possibleConstructorReturn$1(s)}return _createClass$1(r,[{key:"SetAxis",value:function(o){this.imp.SetAxis(o.getImp())}},{key:"SetFocal",value:function(o){this.imp.SetFocal(o)}},{key:"SetLocation",value:function(o){this.imp.SetLocation(o.getImp())}},{key:"SetPosition",value:function(o){this.imp.SetPosition(o.getImp())}},{key:"Axis",value:function(){return new MdGeAxis(this.imp.Axis())}},{key:"Directrix",value:function(){return new MdGeAxis(this.imp.Directrix())}},{key:"Focal",value:function(){return this.imp.Focal()}},{key:"Focus",value:function(){return new MdGePoint(this.imp.Focus())}},{key:"Location",value:function(){return new MdGePoint(this.imp.Location())}},{key:"Parameter",value:function(){return this.imp.Parameter()}},{key:"Position",value:function(){return new MdGeCSYSR(this.imp.Position())}},{key:"XAxis",value:function(){return new MdGeAxis(this.imp.XAxis())}},{key:"YAxis",value:function(){return new MdGeAxis(this.imp.YAxis())}},{key:"MirrorByPoint",value:function(o){this.imp.MirrorByPoint(o.getImp())}},{key:"MirroredByPoint",value:function(o){return new r(this.imp.MirroredByPoint(o.getImp()))}},{key:"MirrorByAxis",value:function(o){this.imp.MirrorByAxis(o.getImp())}},{key:"MirroredByAxis",value:function(o){return new r(this.imp.MirroredByAxis(o.getImp()))}},{key:"MirrorByCSYSR",value:function(o){this.imp.MirrorByCSYSR(o.getImp())}},{key:"MirroredByCSYSR",value:function(o){return new r(this.imp.MirroredByCSYSR(o.getImp()))}},{key:"Rotate",value:function(o,s){this.imp.Rotate(o.getImp(),s)}},{key:"Rotated",value:function(o,s){return new r(this.imp.Rotated(o.getImp(),s))}},{key:"Scale",value:function(o,s){this.imp.Scale(o.getImp(),s)}},{key:"Scaled",value:function(o,s){return new r(this.imp.Scaled(o.getImp(),s))}},{key:"Transform",value:function(o){this.imp.Transform(o.getImp())}},{key:"Transformed",value:function(o){return new r(this.imp.Transformed(o.getImp()))}},{key:"TranslateByVec",value:function(o){this.imp.TranslateByVec(o.getImp())}},{key:"TranslatedByVec",value:function(o){return new r(this.imp.TranslatedByVec(o.getImp()))}},{key:"TranslateBy2Points",value:function(o,s){this.imp.TranslateBy2Points(o.getImp(),s.getImp())}},{key:"TranslatedBy2Points",value:function(o,s){return new r(this.imp.TranslatedBy2Points(o.getImp(),s.getImp()))}},{key:"Shape",value:function(){return new MdGeShape(this.imp.Shape())}},{key:"Wire",value:function(){return new MdGeWire(this.imp.Wire())}},{key:"Edge",value:function(o,s){return typeof o=="number"&&typeof s=="number"?new MdGeEdge(this.imp.Edge(o,s)):new MdGeEdge(this.imp.Edge())}}]),r}(Mx3dBaseObject),MdGePipe=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o,s,c){var l;return _classCallCheck$1(this,r),arguments.length==0?(l=e.call(this),l.initTempObject(new mxDraw3d.MdGePipe)):n instanceof MdGeWire&&o instanceof MdGeShape&&arguments.length==2?(l=e.call(this),l.initTempObject(new mxDraw3d.MdGePipe(n.getImp(),o.getImp()))):n instanceof MdGeWire&&o instanceof MdGeShape&&typeof s=="number"&&arguments.length==3?(l=e.call(this),l.initTempObject(new mxDraw3d.MdGePipe(n.getImp(),o.getImp(),s))):n instanceof MdGeWire&&o instanceof MdGeShape&&typeof s=="number"&&typeof c=="boolean"?(l=e.call(this),l.initTempObject(new mxDraw3d.MdGePipe(n.getImp(),o.getImp(),s,c))):n instanceof Object&&arguments.length==1&&(l=e.call(this,n)),_possibleConstructorReturn$1(l)}return _createClass$1(r,[{key:"FirstShape",value:function(){return new MdGeShape(this.imp.FirstShape())}},{key:"LastShape",value:function(){return new MdGeShape(this.imp.LastShape())}},{key:"Generated",value:function(o,s){return new MdGeShape(this.imp.Generated(o.getImp(),s.getImp()))}},{key:"ErrorOnSurface",value:function(){return this.imp.ErrorOnSurface()}},{key:"Shape",value:function(){return new MdGeShape(this.imp.Shape())}}]),r}(Mx3dBaseObject),MdGePointsToBSpl=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o,s,c,l){var v;return _classCallCheck$1(this,r),arguments.length==0?(v=e.call(this),v.initTempObject(new mxDraw3d.MdGePointsToBSpl)):n instanceof MdGeArray1OfPnt&&arguments.length==1?(v=e.call(this),v.initTempObject(new mxDraw3d.MdGePointsToBSpl(n.getImp()))):n instanceof MdGeArray1OfPnt&&typeof o=="number"&&arguments.length==2?(v=e.call(this),v.initTempObject(new mxDraw3d.MdGePointsToBSpl(n.getImp(),o))):n instanceof MdGeArray1OfPnt&&typeof o=="number"&&typeof s=="number"&&arguments.length==3?(v=e.call(this),v.initTempObject(new mxDraw3d.MdGePointsToBSpl(n.getImp(),o,s))):n instanceof MdGeArray1OfPnt&&typeof o=="number"&&typeof s=="number"&&typeof c=="number"&&arguments.length==4?(v=e.call(this),v.initTempObject(new mxDraw3d.MdGePointsToBSpl(n.getImp(),o,s,c))):n instanceof MdGeArray1OfPnt&&typeof o=="number"&&typeof s=="number"&&typeof c=="number"&&typeof l=="number"?(v=e.call(this),v.initTempObject(new mxDraw3d.MdGePointsToBSpl(n.getImp(),o,s,c,l))):n instanceof Object&&arguments.length==1&&(v=e.call(this,n)),_possibleConstructorReturn$1(v)}return _createClass$1(r,[{key:"Init",value:function(o,s,c,l,v,x){arguments.length==2?this.imp.Init(o.getImp(),s.getImp()):arguments.length==3?this.imp.Init(o.getImp(),s.getImp(),c):arguments.length==4?this.imp.Init(o.getImp(),s.getImp(),c,l):arguments.length==5?this.imp.Init(o.getImp(),s.getImp(),c,l,v):arguments.length==6&&this.imp.Init(o.getImp(),s.getImp(),c,l,v,x)}},{key:"Curve",value:function(){return new MdGeBSplineCurve(this.imp.Curve())}},{key:"IsDone",value:function(){return this.imp.IsDone()}}]),r}(Mx3dBaseObject),MdGePointsToBSplSurface=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o,s,c,l){var v;return _classCallCheck$1(this,r),arguments.length==0?(v=e.call(this),v.initTempObject(new mxDraw3d.MdGePointsToBSplSurface)):n instanceof MdGeArray2OfPnt&&arguments.length==1?(v=e.call(this),v.initTempObject(new mxDraw3d.MdGePointsToBSplSurface(n.getImp()))):n instanceof MdGeArray2OfPnt&&arguments.length==2?(v=e.call(this),v.initTempObject(new mxDraw3d.MdGePointsToBSplSurface(n.getImp(),o))):n instanceof MdGeArray2OfPnt&&arguments.length==3?(v=e.call(this),v.initTempObject(new mxDraw3d.MdGePointsToBSplSurface(n.getImp(),o,s))):n instanceof MdGeArray2OfPnt&&arguments.length==4?(v=e.call(this),v.initTempObject(new mxDraw3d.MdGePointsToBSplSurface(n.getImp(),o,s,c))):n instanceof MdGeArray2OfPnt&&arguments.length==5&&(v=e.call(this),v.initTempObject(new mxDraw3d.MdGePointsToBSplSurface(n.getImp(),o,s,c,l))),_possibleConstructorReturn$1(v)}return _createClass$1(r,[{key:"Init",value:function(o,s,c,l,v){arguments.length==1?this.imp.Init(o.getImp()):arguments.length==2?this.imp.Init(o.getImp(),s):arguments.length==3?this.imp.Init(o.getImp(),s,c):arguments.length==4?this.imp.Init(o.getImp(),s,c,l):arguments.length==5&&this.imp.Init(o.getImp(),s,c,l,v)}},{key:"Interpolate",value:function(o,s,c,l,v){o instanceof MdGeArray2OfPnt&&arguments.length==1?this.imp.Interpolate(o.getImp()):o instanceof MdGeArray2OfPnt&&typeof s=="boolean"&&arguments.length==2?this.imp.Interpolate(o.getImp(),s):o instanceof MdGeArray2OfReal&&typeof s=="number"&&typeof c=="number"&&typeof l=="number"&&typeof v=="number"&&this.imp.Interpolate(o.getImp(),s)}},{key:"IsDone",value:function(){return this.imp.IsDone()}},{key:"Surface",value:function(){return new MdGeBSplineSurface(this.imp.Surface())}}]),r}(Mx3dBaseObject),MdGePrism=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o,s,c){var l;return _classCallCheck$1(this,r),arguments.length==0?(l=e.call(this),l.initTempObject(new mxDraw3d.MdGePrism)):n instanceof MdGeShape&&o instanceof MdGeVec&&arguments.length==2?(l=e.call(this),l.initTempObject(new mxDraw3d.MdGePrism(n.getImp(),o.getImp()))):n instanceof MdGeShape&&o instanceof MdGeVec&&arguments.length==3?(l=e.call(this),l.initTempObject(new mxDraw3d.MdGePrism(n.getImp(),o.getImp(),s))):n instanceof MdGeShape&&o instanceof MdGeVec&&arguments.length==4?(l=e.call(this),l.initTempObject(new mxDraw3d.MdGePrism(n.getImp(),o.getImp(),s,c))):n instanceof Object&&arguments.length==1&&(l=e.call(this,n)),_possibleConstructorReturn$1(l)}return _createClass$1(r,[{key:"FirstShape",value:function(o){return arguments.length==0?new MdGeShape(this.imp.FirstShape()):new MdGeShape(this.imp.FirstShape(o==null?void 0:o.getImp()))}},{key:"LastShape",value:function(o){return arguments.length==0?new MdGeShape(this.imp.LastShape()):new MdGeShape(this.imp.LastShape(o==null?void 0:o.getImp()))}},{key:"IsDeleted",value:function(o){return this.imp.IsDeleted(o.getImp())}},{key:"Shape",value:function(){return new MdGeShape(this.imp.Shape())}}]),r}(Mx3dBaseObject),MdGeRadiusDim=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o){var s;return _classCallCheck$1(this,r),arguments.length==0?(s=e.call(this),s.initTempObject(new mxDraw3d.MdGeRadiusDim)):n instanceof MdGeCircle&&arguments.length==1?(s=e.call(this),s.initTempObject(new mxDraw3d.MdGeRadiusDim(n.getImp()))):n instanceof MdGeCircle&&o instanceof MdGePoint?(s=e.call(this),s.initTempObject(new mxDraw3d.MdGeRadiusDim(n.getImp(),o.getImp()))):n instanceof Object&&arguments.length==1&&(s=e.call(this,n)),_possibleConstructorReturn$1(s)}return _createClass$1(r,[{key:"Circle",value:function(){return new MdGeCircle(this.imp.Circle())}},{key:"AnchorPoint",value:function(){return new MdGePoint(this.imp.AnchorPoint())}},{key:"Shape",value:function(){return new MdGeShape(this.imp.Shape())}},{key:"SetMeasuredGeometry",value:function(o,s,c){arguments.length==1?this.imp.SetMeasuredGeometry(o.getImp()):arguments.length==2?this.imp.SetMeasuredGeometry(o.getImp(),s==null?void 0:s.getImp()):arguments.length==3&&this.imp.SetMeasuredGeometry(o.getImp(),s==null?void 0:s.getImp(),c)}},{key:"SetTextPosition",value:function(o){this.imp.SetTextPosition(o.getImp())}},{key:"GetTextPosition",value:function(){return new MdGePoint(this.imp.GetTextPosition())}},{key:"GetValue",value:function(){return this.imp.GetValue()}},{key:"SetComputedValue",value:function(){this.imp.SetComputedValue()}},{key:"SetCustomValue",value:function(o){this.imp.SetCustomValue(o)}},{key:"GetPlane",value:function(){return new MdGePlane(this.imp.GetPlane())}},{key:"GetGeometryType",value:function(){return this.imp.GetGeometryType()}},{key:"SetCustomPlane",value:function(o){this.imp.SetCustomPlane(o.getImp())}},{key:"UnsetCustomPlane",value:function(){this.imp.UnsetCustomPlane()}},{key:"IsTextPositionCustom",value:function(){return this.imp.IsTextPositionCustom()}},{key:"DimensionAspect",value:function(){return new MdGeDimAspect(this.imp.DimensionAspect())}},{key:"SetDimensionAspect",value:function(o){this.imp.SetDimensionAspect(o.getImp())}},{key:"KindOfDimension",value:function(){return this.imp.KindOfDimension()}},{key:"AcceptDisplayMode",value:function(o){return this.imp.AcceptDisplayMode(o)}},{key:"UnsetFixedTextPosition",value:function(){this.imp.UnsetFixedTextPosition()}},{key:"SelToleranceForText2d",value:function(){return this.imp.SelToleranceForText2d()}},{key:"SetSelToleranceForText2d",value:function(o){this.imp.SetSelToleranceForText2d(o)}},{key:"GetFlyout",value:function(){return this.imp.GetFlyout()}},{key:"SetFlyout",value:function(o){this.imp.SetFlyout(o)}},{key:"IsValid",value:function(){return this.imp.IsValid()}},{key:"Display",value:function(){this.imp.Display()}}]),r}(Mx3dBaseObject),MdGeRect=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o,s){var c;return _classCallCheck$1(this,r),arguments.length==0?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeRect)):n instanceof MdGeCSYSR&&arguments.length==3?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeRect(n.getImp(),o,s))):n instanceof Object&&arguments.length==1&&(c=e.call(this,n)),_possibleConstructorReturn$1(c)}return _createClass$1(r,[{key:"Position",value:function(){return new MdGeCSYSR(this.imp.Position())}},{key:"SetPosition",value:function(o){this.imp.SetPosition(o.getImp())}},{key:"X",value:function(){return this.imp.X()}},{key:"Y",value:function(){return this.imp.Y()}},{key:"SetX",value:function(o){this.imp.SetX(o)}},{key:"SetY",value:function(o){this.imp.SetY(o)}},{key:"Shape",value:function(){return new MdGeShape(this.imp.Shape())}},{key:"Face",value:function(){return new MdGeFace(this.imp.Face())}},{key:"Wire",value:function(){return new MdGeWire(this.imp.Wire())}},{key:"LeftEdge",value:function(){return new MdGeEdge(this.imp.LeftEdge())}},{key:"RightEdge",value:function(){return new MdGeEdge(this.imp.RightEdge())}},{key:"TopEdge",value:function(){return new MdGeEdge(this.imp.TopEdge())}},{key:"BottomEdge",value:function(){return new MdGeEdge(this.imp.BottomEdge())}},{key:"Area",value:function(){return this.imp.Area()}}]),r}(Mx3dBaseObject),MdGeRevol=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o,s,c){var l;return _classCallCheck$1(this,r),arguments.length==0?(l=e.call(this),l.initTempObject(new mxDraw3d.MdGeRevol)):n instanceof MdGeShape&&arguments.length==2?(l=e.call(this),l.initTempObject(new mxDraw3d.MdGeRevol(n.getImp(),o==null?void 0:o.getImp()))):n instanceof MdGeShape&&arguments.length==3?(l=e.call(this),l.initTempObject(new mxDraw3d.MdGeRevol(n.getImp(),o==null?void 0:o.getImp(),s))):n instanceof MdGeShape&&arguments.length==4?(l=e.call(this),l.initTempObject(new mxDraw3d.MdGeRevol(n.getImp(),o==null?void 0:o.getImp(),s,c))):n instanceof Object&&arguments.length==1&&(l=e.call(this,n)),_possibleConstructorReturn$1(l)}return _createClass$1(r,[{key:"FirstShape",value:function(o){return arguments.length==0?new MdGeShape(this.imp.FirstShape()):new MdGeShape(this.imp.FirstShape(o==null?void 0:o.getImp()))}},{key:"LastShape",value:function(o){return arguments.length==0?new MdGeShape(this.imp.LastShape()):new MdGeShape(this.imp.LastShape(o==null?void 0:o.getImp()))}},{key:"IsDeleted",value:function(o){return this.imp.IsDeleted(o.getImp())}},{key:"HasDegenerated",value:function(){return this.imp.HasDegenerated()}},{key:"Shape",value:function(){return new MdGeShape(this.imp.Shape())}}]),r}(Mx3dBaseObject),MdGeSphere=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o,s,c){var l;return _classCallCheck$1(this,r),arguments.length==0?(l=e.call(this),l.initTempObject(new mxDraw3d.MdGeSphere)):n instanceof MdGeCSYS&&arguments.length==2?(l=e.call(this),l.initTempObject(new mxDraw3d.MdGeSphere(n.getImp(),o))):typeof n=="number"&&arguments.length==4?(l=e.call(this),l.initTempObject(new mxDraw3d.MdGeSphere(n,o,s,c))):n instanceof Object&&arguments.length==1&&(l=e.call(this,n)),_possibleConstructorReturn$1(l)}return _createClass$1(r,[{key:"SetLocation",value:function(o){this.imp.SetLocation(o.getImp())}},{key:"SetPosition",value:function(o){this.imp.SetPosition(o.getImp())}},{key:"SetRadius",value:function(o){this.imp.SetRadius(o)}},{key:"Area",value:function(){return this.imp.Area()}},{key:"UReverse",value:function(){this.imp.UReverse()}},{key:"VReverse",value:function(){this.imp.VReverse()}},{key:"Direct",value:function(){return this.imp.Direct()}},{key:"Location",value:function(){return new MdGePoint(this.imp.Location())}},{key:"Position",value:function(){return new MdGeCSYS(this.imp.Position())}},{key:"Radius",value:function(){return this.imp.Radius()}},{key:"Volume",value:function(){return this.imp.Volume()}},{key:"XAxis",value:function(){return new MdGeAxis(this.imp.XAxis())}},{key:"YAxis",value:function(){return new MdGeAxis(this.imp.YAxis())}},{key:"MirrorByPoint",value:function(o){this.imp.MirrorByPoint(o.getImp())}},{key:"MirroredByPoint",value:function(o){return new r(this.imp.MirroredByPoint(o.getImp()))}},{key:"MirrorByAxis",value:function(o){this.imp.MirrorByAxis(o.getImp())}},{key:"MirroredByAxis",value:function(o){return new r(this.imp.MirroredByAxis(o.getImp()))}},{key:"MirrorByCSYSR",value:function(o){this.imp.MirrorByCSYSR(o.getImp())}},{key:"MirroredByCSYSR",value:function(o){return new r(this.imp.MirroredByCSYSR(o.getImp()))}},{key:"Rotate",value:function(o,s){this.imp.Rotate(o.getImp(),s)}},{key:"Rotated",value:function(o,s){return new r(this.imp.Rotated(o.getImp(),s))}},{key:"Scale",value:function(o,s){this.imp.Scale(o.getImp(),s)}},{key:"Scaled",value:function(o,s){return new r(this.imp.Scaled(o.getImp(),s))}},{key:"Transform",value:function(o){this.imp.Transform(o.getImp())}},{key:"Transformed",value:function(o){return new r(this.imp.Transformed(o.getImp()))}},{key:"TranslateByVec",value:function(o){this.imp.TranslateByVec(o.getImp())}},{key:"TranslatedByVec",value:function(o){return new r(this.imp.TranslatedByVec(o.getImp()))}},{key:"TranslateBy2Points",value:function(o,s){this.imp.TranslateBy2Points(o.getImp(),s.getImp())}},{key:"TranslatedBy2Points",value:function(o,s){return new r(this.imp.TranslatedBy2Points(o.getImp(),s.getImp()))}},{key:"Face",value:function(o,s,c,l){return o instanceof MdGeWire&&typeof s=="boolean"&&arguments.length==2?new MdGeFace(this.imp.Face(o.getImp(),s)):typeof o=="number"&&typeof s=="number"&&arguments.length==4?new MdGeFace(this.imp.Face(o,s,c,l)):new MdGeFace(this.imp.Face())}},{key:"Shape",value:function(o,s,c){return arguments.length==1?new MdGeShape(this.imp.Shape(o)):arguments.length==2?new MdGeShape(this.imp.Shape(o,s)):arguments.length==3?new MdGeShape(this.imp.Shape(o,s,c)):new MdGeShape(this.imp.Shape())}}]),r}(Mx3dBaseObject),MdGeText=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o,s){var c;return _classCallCheck$1(this,r),arguments.length==0?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeText)):typeof n=="string"&&arguments.length==3?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeText(n,o,s==null?void 0:s.getImp()))):n instanceof Object&&arguments.length==1&&(c=e.call(this,n)),_possibleConstructorReturn$1(c)}return _createClass$1(r,[{key:"SetText",value:function(o){this.imp.SetText(o)}},{key:"Position",value:function(){return new MdGePoint(this.imp.Position())}},{key:"SetPosition",value:function(o){this.imp.SetPosition(o.getImp())}},{key:"Orientation",value:function(){return new MdGeCSYSR(this.imp.Orientation())}},{key:"HasPlane",value:function(){return this.imp.HasPlane()}},{key:"SetOrientation",value:function(o){this.imp.SetOrientation(o.getImp())}},{key:"ResetOrientation",value:function(){this.imp.ResetOrientation()}},{key:"HasOwnAnchorPoint",value:function(){return this.imp.HasOwnAnchorPoint()}},{key:"SetOwnAnchorPoint",value:function(o){this.imp.SetOwnAnchorPoint(o)}},{key:"Height",value:function(){return this.imp.Height()}},{key:"SetHeight",value:function(o){this.imp.SetHeight(o)}},{key:"HorizontalAlignment",value:function(){return this.imp.HorizontalAlignment()}},{key:"SetHorizontalAlignment",value:function(o){this.imp.SetHorizontalAlignment(o)}},{key:"VerticalAlignment",value:function(){return this.imp.VerticalAlignment()}},{key:"SetVerticalAlignment",value:function(o){this.imp.SetVerticalAlignment(o)}},{key:"Shape",value:function(){return new MdGeShape(this.imp.Shape())}}]),r}(Mx3dBaseObject),MdGeTextLabel=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o,s){var c;return _classCallCheck$1(this,r),arguments.length==0?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeTextLabel)):typeof n=="string"&&arguments.length==3?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeTextLabel(n,o,s==null?void 0:s.getImp()))):n instanceof Object&&arguments.length==1&&(c=e.call(this,n)),_possibleConstructorReturn$1(c)}return _createClass$1(r,[{key:"SetColor",value:function(o,s,c){o instanceof MdGeColor?this.imp.SetColor(o.getImp()):this.imp.SetColor(o,s,c)}},{key:"SetText",value:function(o){this.imp.SetText(o)}},{key:"SetPositon",value:function(o){this.imp.SetPosition(o.getImp())}},{key:"SetHJustification",value:function(o){this.imp.SetHJustification(o)}},{key:"SetVJustification",value:function(o){this.imp.SetVJustification(o)}},{key:"SetAngle",value:function(o){this.imp.SetAngle(o)}},{key:"SetZoomable",value:function(o){this.imp.SetZoomable(o)}},{key:"SetHeight",value:function(o){this.imp.SetHeight(o)}},{key:"SetFontAspect",value:function(o){this.imp.SetFontAspect(o)}},{key:"SetFont",value:function(o){this.imp.SetFont(o)}},{key:"SetOrientation3D",value:function(o){this.imp.SetOrientation3D(o.getImp())}},{key:"UnsetOrientation3D",value:function(){this.imp.UnsetOrientation3D()}},{key:"Position",value:function(){return new MdGePoint(this.imp.Position())}},{key:"FontAspect",value:function(){return this.imp.FontAspect()}},{key:"Orientation3D",value:function(){return new MdGeCSYSR(this.imp.Orientation3D())}},{key:"HasOrientation3D",value:function(){return this.imp.HasOrientation3D()}},{key:"SetFlipping",value:function(o){this.imp.SetFlipping(o)}},{key:"HasFlipping",value:function(){return this.imp.HasFlipping()}},{key:"HasOwnAnchorPoint",value:function(){return this.imp.HasOwnAnchorPoint()}},{key:"SetOwnAnchorPoint",value:function(o){this.imp.SetOwnAnchorPoint(o)}},{key:"SetDisplayType",value:function(o){this.imp.SetDisplayType(o)}},{key:"SetColorSubTitle",value:function(o,s,c){this.imp.SetColorSubTitle(o,s,c)}},{key:"Display",value:function(){this.imp.Display()}}]),r}(Mx3dBaseObject),MdGeTopo=function(){function t(){_classCallCheck$1(this,t),_defineProperty(this,"imp",0),this.imp=new mxDraw3d.MdGeTopo}return _createClass$1(t,[{key:"Vertex",value:function(r){return new MdGeVertex(this.imp.Vertex(r.getImp()))}},{key:"Edge",value:function(r){return new MdGeEdge(this.imp.Edge(r.getImp()))}},{key:"Wire",value:function(r){return new MdGeWire(this.imp.Wire(r.getImp()))}},{key:"Face",value:function(r){return new MdGeFace(this.imp.Face(r.getImp()))}},{key:"Shell",value:function(r){return new MdGeShell(this.imp.Shell(r.getImp()))}},{key:"Solid",value:function(r){return new MdGeSolid(this.imp.Solid(r.getImp()))}},{key:"CompSolid",value:function(r){return new MdGeCompSolid(this.imp.CompSolid(r.getImp()))}},{key:"Compound",value:function(r){return new MdGeCompound(this.imp.Compound(r.getImp()))}},{key:"DestroyObject",value:function(r){this.imp.DestroyObject(r)}},{key:"SetRegisterFuncPtr",value:function(r){this.imp.SetRegisterFuncPtr(r)}}]),t}(),MdGeTorus=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o,s){var c;return _classCallCheck$1(this,r),arguments.length==0?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeTorus)):n instanceof MdGeCSYS&&arguments.length==3?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeTorus(n.getImp(),o,s))):n instanceof Object&&arguments.length==1&&(c=e.call(this,n)),_possibleConstructorReturn$1(c)}return _createClass$1(r,[{key:"SetAxis",value:function(o){this.imp.SetAxis(o.getImp())}},{key:"SetLocation",value:function(o){this.imp.SetLocation(o.getImp())}},{key:"SetMajorRadius",value:function(o){this.imp.SetMajorRadius(o)}},{key:"SetMinorRadius",value:function(o){this.imp.SetMinorRadius(o)}},{key:"SetPosition",value:function(o){this.imp.SetPosition(o.getImp())}},{key:"Area",value:function(){return this.imp.Area()}},{key:"UReverse",value:function(){this.imp.UReverse()}},{key:"VReverse",value:function(){this.imp.VReverse()}},{key:"Direct",value:function(){return this.imp.Direct()}},{key:"Axis",value:function(){return new MdGeAxis(this.imp.Axis())}},{key:"Location",value:function(){return new MdGePoint(this.imp.Location())}},{key:"Position",value:function(){return new MdGeCSYS(this.imp.Position())}},{key:"MajorRadius",value:function(){return this.imp.MajorRadius()}},{key:"MinorRadius",value:function(){return this.imp.MinorRadius()}},{key:"Volume",value:function(){return this.imp.Volume()}},{key:"XAxis",value:function(){return new MdGeAxis(this.imp.XAxis())}},{key:"YAxis",value:function(){return new MdGeAxis(this.imp.YAxis())}},{key:"MirrorByPoint",value:function(o){this.imp.MirrorByPoint(o.getImp())}},{key:"MirroredByPoint",value:function(o){return new r(this.imp.MirroredByPoint(o.getImp()))}},{key:"MirrorByAxis",value:function(o){this.imp.MirrorByAxis(o.getImp())}},{key:"MirroredByAxis",value:function(o){return new r(this.imp.MirroredByAxis(o.getImp()))}},{key:"MirrorByCSYSR",value:function(o){this.imp.MirrorByCSYSR(o.getImp())}},{key:"MirroredByCSYSR",value:function(o){return new r(this.imp.MirroredByCSYSR(o.getImp()))}},{key:"Rotate",value:function(o,s){this.imp.Rotate(o.getImp(),s)}},{key:"Rotated",value:function(o,s){return new r(this.imp.Rotated(o.getImp(),s))}},{key:"Scale",value:function(o,s){this.imp.Scale(o.getImp(),s)}},{key:"Scaled",value:function(o,s){return new r(this.imp.Scaled(o.getImp(),s))}},{key:"Transform",value:function(o){this.imp.Transform(o.getImp())}},{key:"Transformed",value:function(o){return new r(this.imp.Transformed(o.getImp()))}},{key:"TranslateByVec",value:function(o){this.imp.TranslateByVec(o.getImp())}},{key:"TranslatedByVec",value:function(o){return new r(this.imp.TranslatedByVec(o.getImp()))}},{key:"TranslateBy2Points",value:function(o,s){this.imp.TranslateBy2Points(o.getImp(),s.getImp())}},{key:"TranslatedBy2Points",value:function(o,s){return new r(this.imp.TranslatedBy2Points(o.getImp(),s.getImp()))}},{key:"Face",value:function(o,s,c,l){return o instanceof MdGeWire&&typeof s=="boolean"&&arguments.length==2?new MdGeFace(this.imp.Face(o.getImp(),s)):typeof o=="number"&&typeof s=="number"&&arguments.length==4?new MdGeFace(this.imp.Face(o,s,c,l)):new MdGeFace(this.imp.Face())}},{key:"Shape",value:function(o,s,c){return arguments.length==1?new MdGeShape(this.imp.Shape(o)):arguments.length==2?new MdGeShape(this.imp.Shape(o,s)):arguments.length==3?new MdGeShape(this.imp.Shape(o,s,c)):new MdGeShape(this.imp.Shape())}}]),r}(Mx3dBaseObject),MdGeTransform=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o,s,c){var l;return _classCallCheck$1(this,r),arguments.length==0?(l=e.call(this),l.initTempObject(new mxDraw3d.MdGeTransform)):n instanceof MdGeTrsf&&arguments.length==1?(l=e.call(this),l.initTempObject(new mxDraw3d.MdGeTransform(n.getImp()))):n instanceof MdGeShape&&arguments.length==2?(l=e.call(this),l.initTempObject(new mxDraw3d.MdGeTransform(n.getImp(),o==null?void 0:o.getImp()))):n instanceof MdGeShape&&arguments.length==3?(l=e.call(this),l.initTempObject(new mxDraw3d.MdGeTransform(n.getImp(),o==null?void 0:o.getImp(),s))):n instanceof MdGeShape&&arguments.length==4?(l=e.call(this),l.initTempObject(new mxDraw3d.MdGeTransform(n.getImp(),o==null?void 0:o.getImp(),s,c))):n instanceof Object&&arguments.length==1&&(l=e.call(this,n)),_possibleConstructorReturn$1(l)}return _createClass$1(r,[{key:"Perform",value:function(o,s,c){arguments.length==1?this.imp.Perform(o.getImp()):arguments.length==2?this.imp.Perform(o.getImp(),s):arguments.length==3&&this.imp.Perform(o.getImp(),s,c)}},{key:"ModifiedShape",value:function(o){return new MdGeShape(this.imp.ModifiedShape(o.getImp()))}},{key:"Shape",value:function(){return new MdGeShape(this.imp.Shape())}}]),r}(Mx3dBaseObject),MdGeWedge=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o,s,c,l,v,x,w){var _;return _classCallCheck$1(this,r),arguments.length==0?(_=e.call(this),_.initTempObject(new mxDraw3d.MdGeWedge)):typeof n=="number"&&arguments.length==4?(_=e.call(this),_.initTempObject(new mxDraw3d.MdGeWedge(n,o,s,c))):n instanceof MdGeCSYSR&&arguments.length==5?(_=e.call(this),_.initTempObject(new mxDraw3d.MdGeWedge(n.getImp(),o,s,c,l))):typeof n=="number"&&arguments.length==7?(_=e.call(this),_.initTempObject(new mxDraw3d.MdGeWedge(n,o,s,c,l,v,x))):n instanceof MdGeCSYSR&&arguments.length==8?(_=e.call(this),_.initTempObject(new mxDraw3d.MdGeWedge(n.getImp(),o,s,c,l,v,x,w))):n instanceof Object&&arguments.length==1&&(_=e.call(this,n)),_possibleConstructorReturn$1(_)}return _createClass$1(r,[{key:"Shell",value:function(){return new MdGeShell(this.imp.Shell())}},{key:"Solid",value:function(){return new MdGeSolid(this.imp.Solid())}},{key:"Shape",value:function(){return new MdGeShape(this.imp.Shape())}}]),r}(Mx3dBaseObject),MdGeHGeomSurface=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),arguments.length==0?(o=e.call(this),o.initTempObject(new mxDraw3d.MdGeHGeomSurface)):o=e.call(this,n),_possibleConstructorReturn$1(o)}return _createClass$1(r,[{key:"DynamicType",value:function(){return this.imp.DynamicType()}}]),r}(Mx3dBaseObject),MdGeHGeomPlane=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),arguments.length==0?(o=e.call(this),o.initTempObject(new mxDraw3d.MdGeHGeomPlane)):o=e.call(this,n),_possibleConstructorReturn$1(o)}return _createClass$1(r,[{key:"DownCast",value:function(o){return new r(this.imp.DownCast(o.getImp()))}},{key:"Axis",value:function(){return new MdGeAxis(this.imp.Axis())}},{key:"Location",value:function(){return new MdGePoint(this.imp.Location())}},{key:"Position",value:function(){return new MdGeCSYS(this.imp.Position())}}]),r}(Mx3dBaseObject),MdGeBRep=function(){function t(){_classCallCheck$1(this,t),_defineProperty(this,"imp",0),this.imp=new mxDraw3d.MdGeBRep}return _createClass$1(t,[{key:"IsClosed",value:function(r,n){if(r instanceof MdGeShape&&arguments.length==1)return this.imp.IsClosed(r.getImp());if(r instanceof MdGeEdge&&arguments.length==2)return this.imp.IsClosed(r.getImp(),n==null?void 0:n.getImp())}},{key:"Surface",value:function(r){return new MdGeHGeomSurface(this.imp.Surface(r.getImp()))}},{key:"Tolerance",value:function(r){return this.imp.Tolerance(r.getImp())}},{key:"NaturalRestriction",value:function(r){return this.imp.NaturalRestriction(r.getImp())}},{key:"IsGeometric",value:function(r){return this.imp.IsGeometric(r.getImp())}},{key:"SameParameter",value:function(r){return this.imp.SameParameter(r.getImp())}},{key:"SameRange",value:function(r){return this.imp.SameRange(r.getImp())}},{key:"Degenerated",value:function(r){return this.imp.Degenerated(r.getImp())}},{key:"HasContinuity",value:function(r,n,o){if(arguments.length==1)return this.imp.HasContinuity(r.getImp());if(arguments.length==3)return this.imp.HasContinuity(r.getImp(),n==null?void 0:n.getImp(),o==null?void 0:o.getImp())}},{key:"Continuity",value:function(r,n,o){return this.imp.Continuity(r.getImp(),n.getImp(),o.getImp())}},{key:"MaxContinuity",value:function(r){return this.imp.MaxContinuity(r.getImp())}},{key:"Pnt",value:function(r){return new MdGePoint(this.imp.Pnt(r.getImp()))}},{key:"Parameter",value:function(r,n,o){return arguments.length==2?this.imp.Parameter(r.getImp(),n.getImp()):this.imp.Parameter(r.getImp(),n.getImp(),o==null?void 0:o.getImp())}},{key:"MaxTolerance",value:function(r,n){return this.imp.MaxTolerance(r.getImp(),n)}},{key:"openBrepFromUrl",value:function(r){return new MdGeShape(this.imp.openBrepFromUrl(r))}},{key:"openStepFromUrl",value:function(r){return new MdGeShape(this.imp.openStepFromUrl(r))}},{key:"openStlFromUrl",value:function(r){return new MdGeShape(this.imp.openStlFromUrl(r))}},{key:"openIgesFromUrl",value:function(r){return new MdGeShape(this.imp.openIgesFromUrl(r))}},{key:"openObjFromUrl",value:function(r){return new MdGeShape(this.imp.openObjFromUrl(r))}},{key:"openGltfFromUrl",value:function(r){return new MdGeShape(this.imp.openGltfFromUrl(r))}},{key:"openVrmlFromUrl",value:function(r){return new MdGeShape(this.imp.openVrmlFromUrl(r))}},{key:"openStepFromUrlByOCAF",value:function(r){return this.imp.openStepFromUrlByOCAF(r)}},{key:"openIgesFromUrlByOCAF",value:function(r){return this.imp.openIgesFromUrlByOCAF(r)}},{key:"openObjFromUrlByOCAF",value:function(r){return this.imp.openObjFromUrlByOCAF(r)}},{key:"openStlFromUrlByOCAF",value:function(r){return this.imp.openStlFromUrlByOCAF(r)}},{key:"openGltfFromUrlByOCAF",value:function(r){return this.imp.openGltfFromUrlByOCAF(r)}},{key:"openVrmlFromUrlByOCAF",value:function(r){return this.imp.openVrmlFromUrlByOCAF(r)}},{key:"getLabelAttributes",value:function(r){return this.imp.getLabelAttributes(r)}},{key:"refreshDocTree",value:function(){return this.imp.refreshDocTree()}},{key:"saveStepFile",value:function(r,n){this.imp.saveStepFile(r,n.getImp())}},{key:"ptCanvasToView",value:function(r,n){return new MdGePoint(this.imp.ptCanvasToView(r,n))}},{key:"RemoveAllLights",value:function(){this.imp.RemoveAllLights()}},{key:"AddLight",value:function(r){this.imp.AddLight(r.getImp())}},{key:"EnableAllLights",value:function(){this.imp.EnableAllLights()}},{key:"DisableAllLights",value:function(){this.imp.DisableAllLights()}},{key:"EnableLight",value:function(r){return this.imp.EnableLight(r)}},{key:"DisableLight",value:function(r){return this.imp.DisableLight(r)}},{key:"DeleteAllLights",value:function(){this.imp.DeleteAllLights()}},{key:"OutputDefinedLights",value:function(){this.imp.OutputDefinedLights()}},{key:"OutputActiveLights",value:function(){this.imp.OutputActiveLights()}},{key:"SetAllLightsOn",value:function(){this.imp.SetAllLightsOn()}},{key:"SetAllLightsOff",value:function(){this.imp.SetAllLightsOff()}},{key:"SetLightOn",value:function(r){return this.imp.SetLightOn(r)}},{key:"SetLightOff",value:function(r){return this.imp.SetLightOff(r)}},{key:"SetProjectionType",value:function(r){this.imp.SetProjectionType(r)}},{key:"SetProj",value:function(r,n){this.imp.SetProj(r,n)}},{key:"ChangeSelectedColor",value:function(r){this.imp.ChangeSelectedColor(r.getImp())}},{key:"SetColorByEntry",value:function(r,n){this.imp.SetColorByEntry(r,n.getImp())}},{key:"AddModelTexture",value:function(r){this.imp.AddModelTexture(r)}},{key:"RemoveModelTexture",value:function(){this.imp.RemoveModelTexture()}},{key:"ChangeSelectedMaterial",value:function(r){this.imp.ChangeSelectedMaterial(r.getImp())}},{key:"AddClipPlane",value:function(r){this.imp.AddClipPlane(r.getImp())}},{key:"GetSelectedShapes",value:function(){return new MdGeListOfShape(this.imp.GetSelectedShapes())}},{key:"setObjectColor",value:function(r,n){this.imp.setObjectColor(r,n.getImp())}},{key:"moveObjectByTrsf",value:function(r,n){this.imp.moveObjectByTrsf(r,n.getImp())}},{key:"printSelObjInfo",value:function(){this.imp.printSelObjInfo()}},{key:"drawAisObjChildren",value:function(){this.imp.drawAisObjChildren()}},{key:"setGradientBgColor",value:function(r,n,o){this.imp.setGradientBgColor(r.getImp(),n.getImp(),o)}},{key:"getVertexPosition",value:function(r){return new MdGePoint(this.imp.getVertexPosition(r.getImp()))}},{key:"getCircleCenter",value:function(r){return new MdGePoint(this.imp.getCircleCenter(r.getImp()))}},{key:"getCircleDiameter",value:function(r){return this.imp.getCircleDiameter(r.getImp())}},{key:"getMinDistance",value:function(r,n){return this.imp.getMinDistance(r.getImp(),n.getImp())}},{key:"getAngle",value:function(r,n){return this.imp.getAngle(r.getImp(),n.getImp())}},{key:"getLength",value:function(r){return this.imp.getLength(r.getImp())}},{key:"getArea",value:function(r){return this.imp.getArea(r.getImp())}},{key:"someTests",value:function(){this.imp.someTests()}},{key:"selPoint",value:function(){var r=document.querySelector("canvas");return new Promise(function(n,o){r==null||r.addEventListener("click",function(){for(var s=mxDraw3d.mdGeBRep.GetSelectedShapes(),c=s.begin();c.More();c.Next()){var l=c.Value();if(l.ShapeType()===7){var v=mxDraw3d.mdGeTopo.Vertex(l),x=mxDraw3d.mdGeBRep.Pnt(v);n(x)}else o()}})})}},{key:"selFace",value:function(){var r=document.querySelector("canvas");return new Promise(function(n){r==null||r.addEventListener("click",function(){for(var o=mxDraw3d.mdGeBRep.GetSelectedShapes(),s=o.begin();s.More();s.Next()){var c=s.Value();if(c.ShapeType()===4){var l=mxDraw3d.mdGeTopo.Face(c),v=l.GetBndBox(),x=v.CornerMin(),w=v.CornerMax(),_=(x.X()+w.X())/2,b=(x.Y()+w.Y())/2,E=(x.Z()+w.Z())/2,I=new MdGePoint(_,b,E);n([l,I])}}})})}}]),t}(),MdGeColor=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o,s,c){var l;return _classCallCheck$1(this,r),arguments.length==0?(l=e.call(this),l.initTempObject(new mxDraw3d.MdGeColor)):n instanceof Object&&arguments.length==1?l=e.call(this,n):typeof n=="number"&&arguments.length==4?(l=e.call(this),l.initTempObject(new mxDraw3d.MdGeColor(n,o,s,c))):arguments.length==1&&(l=e.call(this),l.initTempObject(new mxDraw3d.MdGeColor(n))),_possibleConstructorReturn$1(l)}return _createClass$1(r,[{key:"Name",value:function(){return this.imp.Name()}},{key:"SetValues",value:function(o,s,c,l){arguments.length==1?this.imp.SetValues(o):arguments.length==4&&this.imp.SetValues(o,s,c,l)}},{key:"Red",value:function(){return this.imp.Red()}},{key:"Green",value:function(){return this.imp.Green()}},{key:"Blue",value:function(){return this.imp.Blue()}},{key:"Hue",value:function(){return this.imp.Hue()}},{key:"Light",value:function(){return this.imp.Light()}},{key:"ChangeIntensity",value:function(o){this.imp.ChangeIntensity(o)}},{key:"Saturation",value:function(){return this.imp.Saturation()}},{key:"ChangeContrast",value:function(o){this.imp.ChangeContrast(o)}},{key:"IsDifferent",value:function(o){return this.imp.IsDifferent(o)}},{key:"IsEqual",value:function(o){return this.imp.IsEqual(o.getImp())}},{key:"Distance",value:function(o){return this.imp.Distance(o.getImp())}},{key:"SquareDistance",value:function(o){return this.imp.SquareDistance(o.getImp())}},{key:"DeltaE2000",value:function(o){return this.imp.DeltaE2000(o.getImp())}},{key:"StringName",value:function(o){return this.imp.StringName(o)}}]),r}(Mx3dBaseObject),MdGeMaterialAspect=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),arguments.length==0?(o=e.call(this),o.initTempObject(new mxDraw3d.MdGeMaterialAspect)):n instanceof Object?o=e.call(this,n):arguments.length==1&&(o=e.call(this),o.initTempObject(new mxDraw3d.MdGeMaterialAspect(n))),_possibleConstructorReturn$1(o)}return _createClass$1(r,[{key:"NumberOfMaterials",value:function(){return this.imp.NumberOfMaterials()}},{key:"MaterialFromName",value:function(o){return this.imp.MaterialFromName(o)}},{key:"Name",value:function(){return this.imp.Name()}},{key:"RequestedName",value:function(){return this.imp.RequestedName()}},{key:"MaterialName",value:function(){return this.imp.MaterialName()}},{key:"SetMaterialName",value:function(o){this.imp.SetMaterialName(o)}},{key:"Reset",value:function(){this.imp.Reset()}},{key:"Color",value:function(){return new MdGeColor(this.imp.Color())}},{key:"SetColor",value:function(o){this.imp.SetColor(o.getImp())}},{key:"Transparency",value:function(){return this.imp.Transparency()}},{key:"Alpha",value:function(){return this.imp.Alpha()}},{key:"SetTransparency",value:function(o){this.imp.SetTransparency(o)}},{key:"SetAlpha",value:function(o){this.imp.SetAlpha(o)}},{key:"AmbientColor",value:function(){return new MdGeColor(this.imp.AmbientColor())}},{key:"SetAmbientColor",value:function(o){this.imp.SetAmbientColor(o.getImp())}},{key:"DiffuseColor",value:function(){return new MdGeColor(this.imp.DiffuseColor())}},{key:"SetDiffuseColor",value:function(o){this.imp.SetDiffuseColor(o.getImp())}},{key:"SpecularColor",value:function(){return new MdGeColor(this.imp.SpecularColor())}},{key:"SetSpecularColor",value:function(o){this.imp.SetSpecularColor(o.getImp())}},{key:"EmissiveColor",value:function(){return new MdGeColor(this.imp.EmissiveColor())}},{key:"SetEmissiveColor",value:function(o){this.imp.SetEmissiveColor(o.getImp())}},{key:"Shininess",value:function(){return this.imp.Shininess()}},{key:"SetShininess",value:function(o){this.imp.SetShininess(o)}},{key:"IncreaseShine",value:function(o){this.imp.IncreaseShine(o)}},{key:"RefractionIndex",value:function(){return this.imp.RefractionIndex()}},{key:"SetRefractionIndex",value:function(o){this.imp.SetRefractionIndex(o)}},{key:"ReflectionMode",value:function(o){return this.imp.ReflectionMode(o)}},{key:"MaterialType",value:function(){return this.imp.MaterialType()}},{key:"SetMaterialType",value:function(o){this.imp.SetMaterialType(o)}},{key:"IsDifferent",value:function(o){return this.imp.IsDifferent(o.getImp())}},{key:"IsEqual",value:function(o){return this.imp.IsEqual(o.getImp())}}]),r}(Mx3dBaseObject),MdGeSequenceOfShape=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),arguments.length==0?(o=e.call(this),o.initTempObject(new mxDraw3d.MdGeSequenceOfShape)):o=e.call(this,n),_possibleConstructorReturn$1(o)}return _createClass$1(r,[{key:"begin",value:function(){return new MdGeSequenceIteratorOfSequenceOfShape(this.imp.begin())}},{key:"end",value:function(){return new MdGeSequenceIteratorOfSequenceOfShape(this.imp.end())}},{key:"Size",value:function(){return this.imp.Size()}},{key:"Length",value:function(){return this.imp.Length()}},{key:"Lower",value:function(){return this.imp.Lower()}},{key:"Upper",value:function(){return this.imp.Upper()}},{key:"IsEmpty",value:function(){return this.imp.IsEmpty()}},{key:"Reverse",value:function(){this.imp.Reverse()}},{key:"Exchange",value:function(o,s){this.imp.Exchange(o,s)}},{key:"Remove",value:function(o,s){arguments.length==1?this.imp.Remove(o):this.imp.Remove(o,s)}},{key:"Append",value:function(o){this.imp.Append(o.getImp())}},{key:"Prepend",value:function(o){this.imp.Prepend(o.getImp())}},{key:"InsertBefore",value:function(o,s){this.imp.InsertBefore(o,s.getImp())}},{key:"InsertAfter",value:function(o,s){this.imp.InsertAfter(o,s.getImp())}},{key:"First",value:function(){return new MdGeShape(this.imp.First())}},{key:"Last",value:function(){return new MdGeShape(this.imp.Last())}},{key:"Value",value:function(o){return new MdGeShape(this.imp.Value(o))}},{key:"SetValue",value:function(o,s){this.imp.SetValue(o,s.getImp())}}]),r}(Mx3dBaseObject),MdGeSequenceIteratorOfSequenceOfShape=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),arguments.length==0?(o=e.call(this),o.initTempObject(new mxDraw3d.MdGeSequenceIteratorOfSequenceOfShape)):o=e.call(this,n),_possibleConstructorReturn$1(o)}return _createClass$1(r,[{key:"More",value:function(){return this.imp.More()}},{key:"Next",value:function(){this.imp.Next()}},{key:"Value",value:function(){return new MdGeShape(this.imp.Value())}},{key:"IsEqual",value:function(o){return this.imp.IsEqual(o.getImp())}}]),r}(Mx3dBaseObject),MdGeMakeWires=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),arguments.length==0?(o=e.call(this),o.initTempObject(new mxDraw3d.MdGeMakeWires)):o=e.call(this,n),_possibleConstructorReturn$1(o)}return _createClass$1(r,[{key:"ConnectEdgesToWires",value:function(o,s,c){return new MdGeSequenceOfShape(this.imp.ConnectEdgesToWires(o.getImp(),s,c))}},{key:"ConnectWiresToWires",value:function(o,s,c){return new MdGeSequenceOfShape(this.imp.ConnectWiresToWires(o.getImp(),s,c))}}]),r}(Mx3dBaseObject),MdGeMakeFace=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),arguments.length==0?(o=e.call(this),o.initTempObject(new mxDraw3d.MdGeMakeFace)):n instanceof MdGeWire?(o=e.call(this),o.initTempObject(new mxDraw3d.MdGeMakeFace(n.getImp()))):o=e.call(this,n),_possibleConstructorReturn$1(o)}return _createClass$1(r,[{key:"Add",value:function(o){this.imp.Add(o.getImp())}},{key:"Face",value:function(){return new MdGeFace(this.imp.Face())}}]),r}(Mx3dBaseObject),MdGeMakeArcOfCircle=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o,s){var c;return _classCallCheck$1(this,r),n instanceof MdGePoint?arguments.length==3&&(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeMakeArcOfCircle(n.getImp(),o==null?void 0:o.getImp(),s==null?void 0:s.getImp()))):n instanceof Object&&arguments.length==1&&(c=e.call(this,n)),_possibleConstructorReturn$1(c)}return _createClass$1(r,[{key:"Edge",value:function(){return new MdGeEdge(this.imp.Edge())}}]),r}(Mx3dBaseObject),MdGeLight=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),typeof n=="number"?(o=e.call(this),o.initTempObject(new mxDraw3d.MdGeLight(n))):o=e.call(this,n),_possibleConstructorReturn$1(o)}return _createClass$1(r,[{key:"CopyFrom",value:function(o){this.imp.CopyFrom(o.imp)}},{key:"Type",value:function(){return this.imp.Type()}},{key:"Name",value:function(){return this.imp.Name()}},{key:"SetName",value:function(o){this.imp.SetName(o)}},{key:"Color",value:function(){return new MdGeColor(this.imp.Color())}},{key:"SetColor",value:function(o){this.imp.SetColor(o.getImp())}},{key:"IsEnabled",value:function(){return this.imp.IsEnabled()}},{key:"SetEnabled",value:function(o){this.imp.SetEnabled(o)}},{key:"ToCastShadows",value:function(){return this.imp.ToCastShadows()}},{key:"SetCastShadows",value:function(o){this.imp.SetCastShadows(o)}},{key:"IsHeadlight",value:function(){return this.imp.IsHeadlight()}},{key:"Headlight",value:function(){return this.imp.Headlight()}},{key:"SetHeadlight",value:function(o){this.imp.SetHeadlight(o)}},{key:"Position",value:function(){return new MdGePoint(this.imp.Position())}},{key:"SetPosition",value:function(o,s,c){o instanceof MdGePoint&&arguments.length==1?this.imp.SetPosition(o.getImp()):typeof o=="number"&&arguments.length==3&&this.imp.SetPosition(o,s,c)}},{key:"ConstAttenuation",value:function(){return this.imp.ConstAttenuation()}},{key:"LinearAttenuation",value:function(){return this.imp.LinearAttenuation()}},{key:"SetAttenuation",value:function(o,s){this.imp.SetAttenuation(o,s)}},{key:"Direction",value:function(){return new MdGeDir(this.imp.Direction())}},{key:"SetDirection",value:function(o,s,c){o instanceof MdGeDir&&arguments.length==1?this.imp.SetDirection(o.getImp()):typeof o=="number"&&arguments.length==3&&this.imp.SetDirection(o,s,c)}},{key:"DisplayPosition",value:function(){return new MdGePoint(this.imp.DisplayPosition())}},{key:"SetDisplayPosition",value:function(o){this.imp.SetDisplayPosition(o.getImp())}},{key:"Angle",value:function(){return this.imp.Angle()}},{key:"SetAngle",value:function(o){this.imp.SetAngle(o)}},{key:"Concentration",value:function(){return this.imp.Concentration()}},{key:"SetConcentration",value:function(o){this.imp.SetConcentration(o)}},{key:"Intensity",value:function(){return this.imp.Intensity()}},{key:"SetIntensity",value:function(o){this.imp.SetIntensity(o)}},{key:"Smoothness",value:function(){return this.imp.Smoothness()}},{key:"SetSmoothRadius",value:function(o){this.imp.SetSmoothRadius(o)}},{key:"SetSmoothAngle",value:function(o){this.imp.SetSmoothAngle(o)}},{key:"HasRange",value:function(){return this.imp.HasRange()}},{key:"Range",value:function(){return this.imp.Range()}},{key:"SetRange",value:function(o){this.imp.SetRange(o)}}]),r}(Mx3dBaseObject),MdGeArrowAspect=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o){var s;return _classCallCheck$1(this,r),arguments.length==0?(s=e.call(this),s.initTempObject(new mxDraw3d.MdGeArrowAspect)):typeof n=="number"&&arguments.length==2?(s=e.call(this),s.initTempObject(new mxDraw3d.MdGeArrowAspect(n,o))):n instanceof Object&&arguments.length==1&&(s=e.call(this,n)),_possibleConstructorReturn$1(s)}return _createClass$1(r,[{key:"SetAngle",value:function(o){this.imp.SetAngle(o)}},{key:"Angle",value:function(){return this.imp.Angle()}},{key:"SetLength",value:function(o){this.imp.SetLength(o)}},{key:"Length",value:function(){return this.imp.length()}},{key:"SetZoomable",value:function(o){this.imp.SetZoomable(o)}},{key:"IsZoomable",value:function(){return this.imp.IsZoomable()}},{key:"SetColor",value:function(o){this.imp.SetColor(o.getImp())}}]),r}(Mx3dBaseObject),MdGeDimAspect=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),arguments.length==0?(o=e.call(this),o.initTempObject(new mxDraw3d.MdGeDimAspect)):o=e.call(this,n),_possibleConstructorReturn$1(o)}return _createClass$1(r,[{key:"LineAspect",value:function(){return new MdGeLineAspect(this.imp.LineAspect())}},{key:"SetLineAspect",value:function(o){this.imp.SetLineAspect(o.getImp())}},{key:"TextAspect",value:function(){return new MdGeTextAspect(this.imp.TextAspect())}},{key:"SetTextAspect",value:function(o){this.imp.SetTextAspect(o.getImp())}},{key:"IsText3d",value:function(){return this.imp.isText3d()}},{key:"MakeText3d",value:function(o){this.imp.MakeText3d(o)}},{key:"IsTextShaded",value:function(){return this.imp.IsTextShaded()}},{key:"MakeTextShaded",value:function(o){this.imp.MakeTextShaded(o)}},{key:"IsArrows3d",value:function(){return this.imp.IsArrows3d()}},{key:"MakeArrows3d",value:function(o){this.imp.MakeArrows3d(o)}},{key:"IsUnitsDisplayed",value:function(){return this.imp.IsUnitsDisplayed()}},{key:"MakeUnitsDisplayed",value:function(o){return this.imp.MakeUnitsDisplayed(o)}},{key:"SetArrowOrientation",value:function(o){this.imp.SetArrowOrientation(o)}},{key:"ArrowOrientation",value:function(){return this.imp.ArrowOrientation()}},{key:"SetTextVerticalPosition",value:function(o){this.imp.SetTextVerticalPosition(o)}},{key:"TextVerticalPosition",value:function(){return this.imp.TextVerticalPosition()}},{key:"SetTextHorizontalPosition",value:function(o){this.imp.SetTextHorizontalPosition(o)}},{key:"TextHorizontalPosition",value:function(){return this.imp.TextHorizontalPosition()}},{key:"ArrowAspect",value:function(){return new MdGeArrowAspect(this.imp.ArrowAspect())}},{key:"SetArrowAspect",value:function(o){this.imp.SetArrowAspect(o.getImp())}},{key:"SetCommonColor",value:function(o){this.imp.SetCommonColor(o.getImp())}},{key:"SetExtensionSize",value:function(o){this.imp.SetExtensionSize(o)}},{key:"ExtensionSize",value:function(){return this.imp.ExtensionSize()}},{key:"SetArrowTailSize",value:function(o){this.imp.SetArrowTailSize(o)}},{key:"ArrowTailSize",value:function(){return this.imp.ArrowTailSize()}},{key:"SetValueStringFormat",value:function(o){this.imp.SetValueStringFormat(o)}},{key:"ValueStringFormat",value:function(){return this.imp.ValueStringFormat()}}]),r}(Mx3dBaseObject),MdGeLineAspect=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o,s){var c;return _classCallCheck$1(this,r),n instanceof MdGeColor&&arguments.length==3?(c=e.call(this),c.initTempObject(new mxDraw3d.MdGeLineAspect(n.getImp(),o,s))):n instanceof Object&&arguments.length==1&&(c=e.call(this,n)),_possibleConstructorReturn$1(c)}return _createClass$1(r,[{key:"SetColor",value:function(o){this.imp.SetColor(o.getImp())}},{key:"SetTypeOfLine",value:function(o){this.imp.SetTypeOfLine(o)}},{key:"SetWidth",value:function(o){this.imp.SetWidth(o)}}]),r}(Mx3dBaseObject),MdGeTextAspect=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),arguments.length==0?(o=e.call(this),o.initTempObject(new mxDraw3d.MdGeTextAspect)):o=e.call(this,n),_possibleConstructorReturn$1(o)}return _createClass$1(r,[{key:"SetColor",value:function(o){this.imp.SetColor(o.getImp())}},{key:"SetFont",value:function(o){this.imp.SetFont(o)}},{key:"SetHeight",value:function(o){this.imp.SetHeight(o)}},{key:"SetAngle",value:function(o){this.imp.SetAngle(o)}},{key:"Height",value:function(){return this.imp.Height()}},{key:"Angle",value:function(){return this.imp.Angle()}},{key:"SetHorizontalJustification",value:function(o){this.imp.SetHorizontalJustification(o)}},{key:"SetVerticalJustification",value:function(o){this.imp.SetVerticalJustification(o)}},{key:"SetOrientation",value:function(o){this.imp.SetOrientation(o)}},{key:"HorizontalJustification",value:function(){return this.imp.HorizontalJustification()}},{key:"VerticalJustification",value:function(){return this.imp.VerticalJustification()}},{key:"MxTextPath",value:function(){return this.imp.MxTextPath()}}]),r}(Mx3dBaseObject),MdGeApplication=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),arguments.length==0?(o=e.call(this),o.initTempObject(new mxDraw3d.MdGeApplication)):o=e.call(this,n),_possibleConstructorReturn$1(o)}return _createClass$1(r,[{key:"NbDocuments",value:function(){return this.imp.NbDocuments()}},{key:"GetDocument",value:function(o){return new MdGeDocument(this.imp.GetDocument(o))}},{key:"NewDocument",value:function(o){return new MdGeDocument(this.imp.NewDocument(o))}},{key:"InitDocument",value:function(o){this.imp.InitDocument(o.getImp())}},{key:"Close",value:function(o){this.imp.Close(o.getImp())}}]),r}(Mx3dBaseObject),MdGeDocument=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){return _classCallCheck$1(this,r),e.call(this,n)}return _createClass$1(r,[{key:"IsSaved",value:function(){return this.imp.IsSaved()}},{key:"IsChanged",value:function(){return this.imp.IsChanged()}},{key:"SetSaved",value:function(){this.imp.SetSaved()}},{key:"SetSavedTime",value:function(o){this.imp.SetSavedTime(o)}},{key:"GetSavedTime",value:function(){return this.imp.GetSavedTime()}},{key:"GetName",value:function(){return this.imp.GetName()}},{key:"GetPath",value:function(){return this.imp.GetPath()}},{key:"Main",value:function(){return new MdGeLabel(this.imp.Main())}},{key:"IsEmpty",value:function(){return this.imp.IsEmpty()}},{key:"IsValid",value:function(){return this.imp.IsValid()}},{key:"SetModified",value:function(o){this.imp.SetModified(o.getImp())}},{key:"PurgeModified",value:function(){this.imp.PurgeModified()}},{key:"NewCommand",value:function(){this.imp.NewCommand()}},{key:"HasOpenCommand",value:function(){return this.imp.HasOpenCommand()}},{key:"OpenCommand",value:function(){this.imp.OpenCommand()}},{key:"CommitCommand",value:function(){return this.imp.CommitCommand()}},{key:"AbortCommand",value:function(){this.imp.AbortCommand()}},{key:"GetUndoLimit",value:function(){return this.imp.GetUndoLimit()}},{key:"SetUndoLimit",value:function(o){this.imp.SetUndoLimit(o)}},{key:"ClearUndos",value:function(){this.imp.ClearUndos()}},{key:"ClearRedos",value:function(){this.imp.ClearRedos()}},{key:"GetAvailableUndos",value:function(){return this.imp.GetAvailableUndos()}},{key:"Undo",value:function(){return this.imp.Undo()}},{key:"GetAvailableRedos",value:function(){return this.imp.GetAvailableRedos()}},{key:"Redo",value:function(){return this.imp.Redo()}},{key:"RemoveFirstUndo",value:function(){this.imp.RemoveFirstUndo()}},{key:"InitDeltaCompaction",value:function(){return this.imp.InitDeltaCompaction()}},{key:"PerformDeltaCompaction",value:function(){return this.imp.PerformDeltaCompaction()}},{key:"UpdateReferences",value:function(o){this.imp.UpdateReferences(o)}},{key:"Recompute",value:function(){this.imp.Recompute()}},{key:"StorageFormat",value:function(){return this.imp.StorageFormat()}},{key:"ChangeStorageFormat",value:function(o){this.imp.ChangeStorageFormat(o)}},{key:"SetEmptyLabelsSavingMode",value:function(o){this.imp.SetEmptyLabelsSavingMode(o)}},{key:"EmptyLabelsSavingMode",value:function(){return this.imp.EmptyLabelsSavingMode()}},{key:"SetNestedTransactionMode",value:function(o){this.imp.SetNestedTransactionMode(o)}},{key:"IsNestedTransactionMode",value:function(){return this.imp.IsNestedTransactionMode()}},{key:"SetModificationMode",value:function(o){this.imp.SetModificationMode(o)}},{key:"ModificationMode",value:function(){return this.imp.ModificationMode()}},{key:"BeforeClose",value:function(){this.imp.BeforeClose()}}]),r}(Mx3dBaseObject),MdGeDocShapeTool=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),n instanceof MdGeLabel?(o=e.call(this),o.initTempObject(new mxDraw3d.MdGeDocShapeTool(n.getImp()))):o=e.call(this,n),_possibleConstructorReturn$1(o)}return _createClass$1(r,[{key:"IsTopLevel",value:function(o){return this.imp.IsTopLevel(o.getImp())}},{key:"IsFree",value:function(o){return this.imp.IsFree(o.getImp())}},{key:"IsShape",value:function(o){return this.imp.IsShape(o.getImp())}},{key:"IsSimpleShape",value:function(o){return this.imp.IsSimpleShape(o.getImp())}},{key:"IsReference",value:function(o){return this.imp.IsReference(o.getImp())}},{key:"IsAssembly",value:function(o){return this.imp.IsAssembly(o.getImp())}},{key:"IsComponent",value:function(o){return this.imp.IsComponent(o.getImp())}},{key:"IsCompound",value:function(o){return this.imp.IsCompound(o.getImp())}},{key:"IsSubShape",value:function(o,s){return arguments.length===1?this.imp.IsSubShape(o.getImp()):this.imp.IsSubShape(o.getImp(),s==null?void 0:s.getImp())}},{key:"Search",value:function(o,s,c,l){return new MdGeLabel(this.imp.Search(o.getImp(),s,c,l))}},{key:"FindShape",value:function(o,s){return new MdGeLabel(this.imp.FindShape(o.getImp(),s))}},{key:"GetShape",value:function(o){return new MdGeShape(this.imp.GetShape(o.getImp()))}},{key:"NewShape",value:function(){return new MdGeLabel(this.imp.NewShape())}},{key:"SetShape",value:function(o,s){this.imp.SetShape(o.getImp(),s.getImp())}},{key:"AddShape",value:function(o,s,c){return new MdGeLabel(this.imp.AddShape(o.getImp(),s,c))}},{key:"RemoveShape",value:function(o,s){return this.imp.RemoveShape(o.getImp(),s)}},{key:"Init",value:function(){this.imp.Init()}},{key:"SetAutoNaming",value:function(o){this.imp.SetAutoNaming(o)}},{key:"AutoNaming",value:function(){return this.imp.AutoNaming()}},{key:"ComputeShapes",value:function(o){this.imp.ComputeShapes(o.getImp())}},{key:"ComputeSimpleShapes",value:function(){this.imp.ComputeSimpleShapes()}},{key:"GetShapes",value:function(){return new MdGeLabelSequence(this.imp.GetShapes())}},{key:"GetFreeShapes",value:function(){return new MdGeLabelSequence(this.imp.GetFreeShapes())}},{key:"GetLocation",value:function(o){return new MdGeLocation(this.imp.GetLocation(o.getImp()))}},{key:"GetReferredShape",value:function(o){return new MdGeLabel(this.imp.GetReferredShape(o.getImp()))}},{key:"NbComponents",value:function(o,s){return this.imp.NbComponents(o.getImp(),s)}},{key:"GetComponents",value:function(o,s){return new MdGeLabelSequence(this.imp.GetComponents(o.getImp(),s))}},{key:"AddComponent",value:function(o,s,c){return new MdGeLabel(this.imp.AddComponent(o.getImp(),s.getImp(),c.getImp()))}},{key:"RemoveComponent",value:function(o){this.imp.RemoveComponent(o.getImp())}},{key:"UpdateAssemblies",value:function(){this.imp.UpdateAssemblies()}},{key:"FindSubShape",value:function(o,s){return new MdGeLabel(this.imp.FindSubShape(o.getImp(),s.getImp()))}},{key:"AddSubShape",value:function(o,s){return new MdGeLabel(this.imp.AddSubShape(o.getImp(),s.getImp()))}},{key:"FindMainShapeUsingMap",value:function(o){return new MdGeLabel(this.imp.FindMainShapeUsingMap(o.getImp()))}},{key:"FindMainShape",value:function(o){return new MdGeLabel(this.imp.FindMainShape(o.getImp()))}},{key:"GetSubShapes",value:function(o){return new MdGeLabelSequence(this.imp.GetSubShapes(o.getImp()))}},{key:"BaseLabel",value:function(){return new MdGeLabel(this.imp.BaseLabel())}},{key:"FindComponent",value:function(o){return new MdGeLabelSequence(this.imp.FindComponent(o.getImp()))}},{key:"SetLocation",value:function(o,s){return new MdGeLabel(this.imp.SetLocation(o.getImp(),s.getImp()))}},{key:"Expand",value:function(o){return this.imp.Expand(o.getImp())}}]),r}(Mx3dBaseObject),MdGeDocColorTool=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),n instanceof MdGeLabel?(o=e.call(this),o.initTempObject(new mxDraw3d.MdGeDocColorTool(n.getImp()))):o=e.call(this,n),_possibleConstructorReturn$1(o)}return _createClass$1(r,[{key:"AutoNaming",value:function(){return this.imp.AutoNaming()}},{key:"SetAutoNaming",value:function(o){this.imp.SetAutoNaming(o)}},{key:"BaseLabel",value:function(){return new MdGeLabel(this.imp.BaseLabel())}},{key:"IsColor",value:function(o){return this.imp.IsColor(o.getImp())}},{key:"GetColor",value:function(o){return new MdGeColor(this.imp.GetColor(o.getImp()))}},{key:"GetColorLabel",value:function(o,s){return new MdGeLabel(this.imp.GetColorLabel(o.getImp(),s))}},{key:"FindColor",value:function(o){return new MdGeLabel(this.imp.FindColor(o.getImp()))}},{key:"AddColor",value:function(o){return new MdGeLabel(this.imp.AddColor(o.getImp()))}},{key:"RemoveColor",value:function(o){this.imp.RemoveColor(o.getImp())}},{key:"GetColors",value:function(){return new MdGeLabelSequence(this.imp.GetColors())}},{key:"SetColor",value:function(o,s,c){this.imp.SetColor(o.getImp(),s.getImp(),c)}},{key:"UnSetColor",value:function(o,s){this.imp.UnSetColor(o.getImp(),s)}},{key:"IsSet",value:function(o,s){return this.imp.IsSet(o.getImp(),s)}},{key:"IsVisible",value:function(o){return this.imp.IsVisible(o.getImp())}},{key:"SetVisibility",value:function(o,s){this.imp.SetVisibility(o.getImp(),s)}},{key:"IsColorByLayer",value:function(o){return this.imp.IsColorByLayer(o.getImp())}},{key:"SetColorByLayer",value:function(o,s){this.imp.SetColorByLayer(o.getImp(),s)}},{key:"ReverseChainsOfTreeNodes",value:function(){return this.imp.ReverseChainsOfTreeNodes()}}]),r}(Mx3dBaseObject),MdGeLabel=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),arguments.length===0?(o=e.call(this),o.initTempObject(new mxDraw3d.MdGeLabel)):o=e.call(this,n),_possibleConstructorReturn$1(o)}return _createClass$1(r,[{key:"Nullify",value:function(){this.imp.Nullify()}},{key:"Tag",value:function(){return this.imp.Tag()}},{key:"Father",value:function(){return new r(this.imp.Father())}},{key:"IsNull",value:function(){return this.imp.IsNull()}},{key:"Imported",value:function(o){this.imp.Imported(o)}},{key:"IsImported",value:function(){return this.imp.IsImported()}},{key:"IsEqual",value:function(o){return this.imp.IsEqual(o.getImp())}},{key:"IsDifferent",value:function(o){return this.imp.IsDifferent(o.getImp())}},{key:"IsRoot",value:function(){return this.imp.IsRoot()}},{key:"MayBeModified",value:function(){return this.imp.MayBeModified()}},{key:"AttributesModified",value:function(){return this.imp.AttributesModified()}},{key:"HasAttribute",value:function(){return this.imp.HasAttribute()}},{key:"NbAttributes",value:function(){return this.imp.NbAttributes()}},{key:"Depth",value:function(){return this.imp.Depth()}},{key:"IsDescendant",value:function(o){return this.imp.IsDescendant(o.getImp())}},{key:"Root",value:function(){return new r(this.imp.Root())}},{key:"HasChild",value:function(){return this.imp.HasChild()}},{key:"NbChildren",value:function(){return this.imp.NbChildren()}},{key:"FindChild",value:function(o,s){return new r(this.imp.FindChild(o,s))}},{key:"NewChild",value:function(){return new r(this.imp.NewChild())}},{key:"Transaction",value:function(){return this.imp.Transaction()}},{key:"HasLowerNode",value:function(o){return this.imp.HasLowerNode(o.getImp())}},{key:"HasGreaterNode",value:function(o){return this.imp.HasGreaterNode(o.getImp())}}]),r}(Mx3dBaseObject),MdGeLabelSequence=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),arguments.length===0?(o=e.call(this),o.initTempObject(new mxDraw3d.MdGeLabelSequence)):o=e.call(this,n),_possibleConstructorReturn$1(o)}return _createClass$1(r,[{key:"Size",value:function(){return this.imp.Size()}},{key:"Length",value:function(){return this.imp.Length()}},{key:"Lower",value:function(){return this.imp.Lower()}},{key:"Upper",value:function(){return this.imp.Upper()}},{key:"IsEmpty",value:function(){return this.imp.IsEmpty()}},{key:"Reverse",value:function(){this.imp.Reverse()}},{key:"Exchange",value:function(o,s){this.imp.Exchange(o,s)}},{key:"Remove",value:function(o,s){this.imp.Remove(o,s)}},{key:"Append",value:function(o){this.imp.Append(o.getImp())}},{key:"Prepend",value:function(o){this.imp.Prepend(o.getImp())}},{key:"InsertBefore",value:function(o,s){this.imp.InsertBefore(o,s.getImp())}},{key:"InsertAfter",value:function(o,s){return this.imp.InsertAfter(o,s.getImp())}},{key:"First",value:function(){return new MdGeLabel(this.imp.First())}},{key:"Last",value:function(){return new MdGeLabel(this.imp.Last())}},{key:"Value",value:function(o){return new MdGeLabel(this.imp.Value(o))}},{key:"SetValue",value:function(o,s){this.imp.SetValue(o,s.getImp())}}]),r}(Mx3dBaseObject),MdGeLocation=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),arguments.length===0?(o=e.call(this),o.initTempObject(new mxDraw3d.MdGeLocation)):n instanceof MdGeTrsf?(o=e.call(this),o.initTempObject(new mxDraw3d.MdGeLocation(n.getImp()))):o=e.call(this,n),_possibleConstructorReturn$1(o)}return _createClass$1(r,[{key:"IsIdentity",value:function(){return this.imp.IsIdentity()}},{key:"Identity",value:function(){this.imp.Identity()}},{key:"FirstPower",value:function(){return this.imp.FirstPower()}},{key:"NextLocation",value:function(){return new r(this.imp.NextLocation())}},{key:"Transformation",value:function(){return new MdGeTrsf(this.imp.Transformation())}},{key:"Inverted",value:function(){return new r(this.imp.Inverted())}},{key:"Multiplied",value:function(o){return new r(this.imp.Multiplied(o.getImp()))}},{key:"Divided",value:function(o){return new r(this.imp.Divided(o.getImp()))}},{key:"Predivided",value:function(o){return new r(this.imp.Predivided(o.getImp()))}},{key:"Powered",value:function(o){return new r(this.imp.Powered(o))}},{key:"IsEqual",value:function(o){return this.imp.IsEqual(o.getImp())}},{key:"IsDifferent",value:function(o){return this.imp.IsDifferent(o.getImp())}},{key:"Clear",value:function(){this.imp.Clear()}},{key:"ScalePrec",value:function(){return this.imp.ScalePrec()}}]),r}(Mx3dBaseObject),MdGeLabelTree=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),arguments.length===0?(o=e.call(this),o.initTempObject(new mxDraw3d.MdGeLabelTree)):o=e.call(this,n),_possibleConstructorReturn$1(o)}return _createClass$1(r,[{key:"nodeSiblingPrevious",value:function(o){return this.imp.nodeSiblingPrevious(o)}},{key:"nodeSiblingNext",value:function(o){return this.imp.nodeSiblingNext(o)}},{key:"nodeChildFirst",value:function(o){return this.imp.nodeChildFirst(o)}},{key:"nodeChildLast",value:function(o){return this.imp.nodeChildLast(o)}},{key:"nodeParent",value:function(o){return this.imp.nodeParent(o)}},{key:"nodeRoot",value:function(o){return this.imp.nodeRoot(o)}},{key:"nodeData",value:function(o){return new MdGeLabel(this.imp.nodeData(o))}},{key:"nodeIsRoot",value:function(o){return this.imp.nodeIsRoot(o)}},{key:"nodeIsLeaf",value:function(o){return this.imp.nodeIsLeaf(o)}},{key:"roots",value:function(){return new MdGeArray1OfInteger(this.imp.roots())}},{key:"clear",value:function(){this.imp.clear()}},{key:"appendChild",value:function(o,s){return this.imp.appendChild(o,s.getImp())}}]),r}(Mx3dBaseObject),MdGeDocReader=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),typeof n=="string"?(o=e.call(this),o.initTempObject(new mxDraw3d.MdGeDocReader(n))):o=e.call(this,n),_possibleConstructorReturn$1(o)}return _createClass$1(r,[{key:"ReadFile",value:function(o){return this.imp.ReadFile(o)}},{key:"ReadFile2",value:function(o){return this.imp.ReadFile2(o)}}]),r}(Mx3dBaseObject),MdGeDocWriter=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),typeof n=="string"?(o=e.call(this),o.initTempObject(new mxDraw3d.MdGeDocWriter(n))):o=e.call(this,n),_possibleConstructorReturn$1(o)}return _createClass$1(r,[{key:"WriteFile",value:function(o,s){return this.imp.WriteFile(o.getImp(),s)}}]),r}(Mx3dBaseObject),MdGeAisContext=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),n?o=e.call(this,n):(o=e.call(this),o.initTempObject(new mxDraw3d.MdGeAisContext)),_possibleConstructorReturn$1(o)}return _createClass$1(r,[{key:"DisplayStatus",value:function(o){return this.imp.DisplayStatus(o.getImp())}},{key:"IsDisplayed",value:function(o,s){return s?this.imp.IsDisplayed(o.getImp(),s):this.imp.IsDisplayed(o.getImp())}},{key:"SetAutoActivateSelection",value:function(o){this.imp.SetAutoActivateSelection(o)}},{key:"GetAutoActivateSelection",value:function(){return this.imp.GetAutoActivateSelection()}},{key:"Display",value:function(o,s,c,l,v){typeof s=="boolean"?this.imp.Display(o.getImp(),s):this.imp.Display(o.getImp(),s,c,l,v)}},{key:"Load",value:function(o,s){this.imp.Load(o.getImp(),s)}},{key:"Erase",value:function(o,s){this.imp.Erase(o.getImp(),s)}},{key:"EraseAll",value:function(o){this.imp.EraseAll(o)}},{key:"DisplayAll",value:function(o){this.imp.DisplayAll(o)}},{key:"EraseSelected",value:function(o){this.imp.EraseSelected(o)}},{key:"DisplaySelected",value:function(o){this.imp.DisplaySelected(o)}},{key:"ClearPrs",value:function(o,s,c){this.imp.ClearPrs(o.getImp(),s,c)}},{key:"Remove",value:function(o,s){this.imp.Remove(o.getImp(),s)}},{key:"RemoveAll",value:function(o){this.imp.RemoveAll(o)}},{key:"Redisplay",value:function(o,s,c){this.imp.Redisplay(o.getImp(),s,c)}},{key:"RedisplayType",value:function(o,s,c){this.imp.RedisplayType(o,s,c)}},{key:"RecomputePrsOnly",value:function(o,s,c){this.imp.RecomputePrsOnly(o.getImp(),s,c)}},{key:"RecomputeSelectionOnly",value:function(o){this.imp.RecomputeSelectionOnly(o.getImp())}},{key:"Update",value:function(o,s){this.imp.Update(o.getImp(),s)}}]),r}(Mx3dBaseObject),MdGeAisObject=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),n?o=e.call(this,n):(o=e.call(this),o.initTempObject(new mxDraw3d.MdGeAisObject)),_possibleConstructorReturn$1(o)}return _createClass$1(r)}(Mx3dBaseObject),MdGeAisShape=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),n instanceof MdGeShape?(o=e.call(this),o.initTempObject(new mxDraw3d.MdGeAisShape(n.getImp()))):o=e.call(this,n),_possibleConstructorReturn$1(o)}return _createClass$1(r,[{key:"Signature",value:function(){return this.imp.Signature()}},{key:"Type",value:function(){return this.imp.Type()}},{key:"Shape",value:function(){return new MdGeShape(this.imp.Shape())}},{key:"SetShape",value:function(o){this.imp.SetShape(o.getImp())}},{key:"SetTypeOfHLR",value:function(o){this.imp.SetTypeOfHLR(o)}},{key:"TypeOfHLR",value:function(){return this.imp.TypeOfHLR()}},{key:"SetColor",value:function(o){this.imp.SetColor(o.getImp())}},{key:"UnsetColor",value:function(){this.imp.UnsetColor()}},{key:"SetWidth",value:function(o){this.imp.SetWidth(o)}},{key:"UnsetWidth",value:function(){return this.imp.UnsetWidth()}},{key:"SetMaterial",value:function(o){this.imp.SetMaterial(o.getImp())}},{key:"UnsetMaterial",value:function(){this.imp.UnsetMaterial()}},{key:"SetTransparency",value:function(o){this.imp.SetTransparency(o)}},{key:"UnsetTransparency",value:function(){this.imp.UnsetTransparency()}},{key:"BoundingBox",value:function(){return new MdGeBndBox(this.imp.BoundingBox())}},{key:"GetColor",value:function(){return new MdGeColor(this.imp.GetColor())}},{key:"Material",value:function(){return this.imp.Material()}},{key:"Transparency",value:function(){return this.imp.Transparency()}}]),r}(MdGeAisObject),MdGeBndBox=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o){var s;return _classCallCheck$1(this,r),n?n instanceof MdGePoint&&o instanceof MdGePoint?(s=e.call(this),s.initTempObject(new mxDraw3d.MdGeBndBox(n.getImp(),o.getImp()))):s=e.call(this,n):(s=e.call(this),s.initTempObject(new mxDraw3d.MdGeBndBox)),_possibleConstructorReturn$1(s)}return _createClass$1(r,[{key:"SetWhole",value:function(){this.imp.SetWhole()}},{key:"SetVoid",value:function(){this.imp.SetVoid()}},{key:"Set",value:function(o,s){this.imp.Set(o.getImp(),s.getImp())}},{key:"Update",value:function(o,s,c,l,v,x){this.imp.Update(o,s,c,l,v,x)}},{key:"GetGap",value:function(){return this.imp.GetGap()}},{key:"SetGap",value:function(o){this.imp.SetGap(o)}},{key:"Enlarge",value:function(o){this.imp.Enlarge(o)}},{key:"CornerMin",value:function(){return new MdGePoint(this.imp.CornerMin())}},{key:"CornerMax",value:function(){return new MdGePoint(this.imp.CornerMax())}},{key:"OpenXmin",value:function(){this.imp.OpenXmin()}},{key:"OpenXmax",value:function(){this.imp.OpenXmax()}},{key:"OpenYmin",value:function(){this.imp.OpenYmin()}},{key:"OpenYmax",value:function(){this.imp.OpenYmax()}},{key:"OpenZmin",value:function(){this.imp.OpenZmin()}},{key:"OpenZmax",value:function(){this.imp.OpenZmax()}},{key:"IsOpen",value:function(){return this.imp.IsOpen()}},{key:"IsOpenXmin",value:function(){return this.imp.IsOpenXmin()}},{key:"IsOpenXmax",value:function(){return this.imp.IsOpenXmax()}},{key:"IsOpenYmin",value:function(){return this.imp.IsOpenYmin()}},{key:"IsOpenYmax",value:function(){return this.imp.IsOpenYmax()}},{key:"IsOpenZmin",value:function(){return this.imp.IsOpenZmin()}},{key:"IsOpenZmax",value:function(){return this.imp.IsOpenZmax()}},{key:"IsWhole",value:function(){return this.imp.IsWhole()}},{key:"IsVoid",value:function(){return this.imp.IsVoid()}},{key:"IsXThin",value:function(o){return this.imp.IsXThin(o)}},{key:"IsYThin",value:function(o){return this.imp.IsYThin(o)}},{key:"IsZThin",value:function(o){return this.imp.IsZThin(o)}},{key:"IsThin",value:function(o){return this.imp.IsThin(o)}},{key:"Transformed",value:function(o){return new r(this.imp.Transformed(o.getImp()))}},{key:"AddBndBox",value:function(o){this.imp.AddBndBox(o.getImp())}},{key:"AddPoint",value:function(o){this.imp.AddPoint(o.getImp())}},{key:"AddPointDir",value:function(o,s){this.imp.AddPointDir(o.getImp(),s.getImp())}},{key:"AddDir",value:function(o){this.imp.AddDir(o.getImp())}},{key:"IsOutPoint",value:function(o){return this.imp.IsOutPoint(o.getImp())}},{key:"IsOutLine",value:function(o){return this.imp.IsOutLine(o.getImp())}},{key:"IsOutPlane",value:function(o){return this.imp.IsOutPlane(o.getImp())}},{key:"IsOutBndBox",value:function(o,s){return s?this.imp.IsOutBndBox(o.getImp(),s.getImp()):this.imp.IsOutBndBox(o.getImp())}},{key:"IsOutTBT",value:function(o,s,c){return this.imp.IsOutTBT(o.getImp(),s.getImp(),c.getImp())}},{key:"IsOutPPD",value:function(o,s,c){return this.imp.IsOutPPD(o.getImp(),s.getImp(),c.getImp())}},{key:"Distance",value:function(o){return this.imp.Distance(o.getImp())}},{key:"SquareExtent",value:function(){return this.imp.SquareExtent()}},{key:"FinitePart",value:function(){return new r(this.imp.FinitePart())}},{key:"HasFinitePart",value:function(){return this.imp.HasFinitePart()}}]),r}(Mx3dBaseObject),MdGeAisTexturedShape=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),n instanceof MdGeShape?(o=e.call(this),o.initTempObject(new mxDraw3d.MdGeAisTexturedShape(n.getImp()))):o=e.call(this,n),_possibleConstructorReturn$1(o)}return _createClass$1(r,[{key:"SetTextureFileName",value:function(o){this.imp.SetTextureFileName(o)}},{key:"TextureMapState",value:function(){return this.imp.TextureMapState()}},{key:"SetTextureMapOn",value:function(){this.imp.SetTextureMapOn()}},{key:"SetTextureMapOff",value:function(){this.imp.SetTextureMapOff()}},{key:"TextureFile",value:function(){return this.imp.TextureFile()}},{key:"UpdateAttributes",value:function(){this.imp.UpdateAttributes()}},{key:"SetColor",value:function(o){this.imp.SetColor(o.getImp())}},{key:"UnsetColor",value:function(){this.imp.UnsetColor()}},{key:"SetMaterial",value:function(o){this.imp.SetMaterial(o.getImp())}},{key:"UnsetMaterial",value:function(){this.imp.UnsetMaterial()}},{key:"EnableTextureModulate",value:function(){this.imp.EnableTextureModulate()}},{key:"DisableTextureModulate",value:function(){this.imp.DisableTextureModulate()}},{key:"TextureRepeat",value:function(){return this.imp.TextureRepeat()}},{key:"URepeat",value:function(){return this.imp.URepeat()}},{key:"VRepeat",value:function(){return this.imp.VRepeat()}},{key:"SetTextureRepeat",value:function(o,s,c){this.imp.SetTextureRepeat(o,s,c)}},{key:"TextureOrigin",value:function(){return this.imp.TextureOrigin()}},{key:"TextureUOrigin",value:function(){return this.imp.TextureUOrigin()}},{key:"TextureVOrigin",value:function(){return this.imp.TextureVOrigin()}},{key:"SetTextureOrigin",value:function(o,s,c){this.imp.SetTextureOrigin(o,s,c)}},{key:"TextureScale",value:function(){return this.imp.TextureScale()}},{key:"TextureScaleU",value:function(){return this.imp.TextureScaleU()}},{key:"TextureScaleV",value:function(){return this.imp.TextureScaleV()}},{key:"SetTextureScale",value:function(o,s,c){this.imp.SetTextureScale(o,s,c)}},{key:"IsShowTriangles",value:function(){return this.imp.IsShowTriangles()}},{key:"SetShowTriangles",value:function(o){this.imp.SetShowTriangles(o)}},{key:"TextureModulate",value:function(){return this.imp.TextureModulate()}}]),r}(MdGeAisObject),MdGeSpliter=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),n?o=e.call(this,n):(o=e.call(this),o.initTempObject(new mxDraw3d.MdGeSpliter)),_possibleConstructorReturn$1(o)}return _createClass$1(r,[{key:"SetTools",value:function(o){var s=new MdGeListOfShape;o.forEach(function(c){s.AppendShape(c)}),this.imp.SetTools(s.getImp())}},{key:"SetArguments",value:function(o){var s=new MdGeListOfShape;o.forEach(function(c){s.AppendShape(c)}),this.imp.SetArguments(s.getImp())}},{key:"Build",value:function(){this.imp.Build()}},{key:"IsDone",value:function(){return this.imp.IsDone()}},{key:"HasWarnings",value:function(){return this.imp.HasWarnings()}},{key:"Shapes",value:function(){for(var o=new MdGeListOfShape(this.imp.Shapes()),s=new Array,c=o.begin();c.More();c.Next())s.push(c.Value());return s}}]),r}(Mx3dBaseObject),Mx3dGeBndBox=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o){var s;return _classCallCheck$1(this,r),n?n instanceof Mx3dGePoint&&o instanceof Mx3dGePoint?(s=e.call(this),s.initTempObject(new mxDraw3d.Mx3dGeBndBox(n.getImp(),o.getImp()))):n instanceof Object&&arguments.length===1&&(s=e.call(this,n)):(s=e.call(this),s.initTempObject(new mxDraw3d.Mx3dGeBndBox)),_possibleConstructorReturn$1(s)}return _createClass$1(r)}(Mx3dGeObject),Mx3dGeColor=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o,s){var c;return _classCallCheck$1(this,r),arguments.length===0?(c=e.call(this),c.initTempObject(new mxDraw3d.Mx3dGeColor)):typeof n=="number"&&arguments.length===1?(c=e.call(this),c.initTempObject(new mxDraw3d.Mx3dGeColor(n))):n instanceof Object&&arguments.length===1?c=e.call(this,n):typeof n=="number"&&typeof o=="number"&&typeof s=="number"&&(c=e.call(this),c.initTempObject(new mxDraw3d.Mx3dGeColor(n,o,s))),_possibleConstructorReturn$1(c)}return _createClass$1(r)}(Mx3dBaseObject),Mx3dDbDocument=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),n?o=e.call(this,n):(o=e.call(this),o.initTempObject(new mxDraw3d.Mx3dDbDocument)),_possibleConstructorReturn$1(o)}return _createClass$1(r,[{key:"read",value:function(o,s){return this.imp.read(o,s)}},{key:"getAccessLabel",value:function(){return new Mx3dDbLabel(this.imp.getAccessLabel())}},{key:"getShapesLabel",value:function(){return new Mx3dDbLabel(this.imp.getShapesLabel())}},{key:"getColorsLabel",value:function(){return new Mx3dDbLabel(this.imp.getColorsLabel())}},{key:"getLayersLabel",value:function(){return new Mx3dDbLabel(this.imp.getLayersLabel())}},{key:"getDocName",value:function(){for(var o=new MdGeArray1OfInteger(this.imp.getDocName()),s=[],c=1;c<=o.Length();c++)s.push(o.Value(c));return s.map(function(l){return String.fromCharCode(l)}).join("")}}]),r}(Mx3dDbObject),Mx3dDbLabel=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),n?o=e.call(this,n):(o=e.call(this),o.initTempObject(new mxDraw3d.Mx3dDbLabel)),_possibleConstructorReturn$1(o)}return _createClass$1(r,[{key:"setShape",value:function(o){return this.imp.setShape(o.getImp())}},{key:"getShape",value:function(){return new Mx3dShapeObject(this.imp.getShape())}},{key:"hasChildLabel",value:function(){return this.imp.hasChildLabel()}},{key:"getChildLabels",value:function(){return new Mx3dLabelSequence(this.imp.getChildLabels())}},{key:"hasParentLabel",value:function(){return this.imp.hasParentLabel()}},{key:"getParentLabel",value:function(){return new r(this.imp.getParentLabel())}},{key:"addChildLabel",value:function(){return new r(this.imp.addChildLabel())}},{key:"addChildShape",value:function(o){return new r(this.imp.addChildShape(o.getImp()))}},{key:"isReference",value:function(){return this.imp.isReference()}},{key:"isAssembly",value:function(){return this.imp.isAssembly()}},{key:"isSimpleShape",value:function(){return this.imp.isSimpleShape()}},{key:"isTopLevel",value:function(){return this.imp.isTopLevel()}},{key:"isFree",value:function(){return this.imp.isFree()}},{key:"isShape",value:function(){return this.imp.isShape()}},{key:"isComponent",value:function(){return this.imp.isComponent()}},{key:"isCompound",value:function(){return this.imp.isCompound()}},{key:"isSubShape",value:function(){return this.imp.isSubShape()}},{key:"getReferredLabel",value:function(){return new r(this.imp.getReferredLabel())}},{key:"addAssemblyLabel",value:function(o){return new r(this.imp.addAssemblyLabel(o.getImp()))}},{key:"getLocation",value:function(){return new Mx3dGeLocation(this.imp.getLocation())}},{key:"isSetColor",value:function(){return this.imp.isSetColor()}},{key:"setColor",value:function(o){this.imp.setColor(o.getImp())}},{key:"getColor",value:function(){return new Mx3dGeColor(this.imp.getColor())}},{key:"getName",value:function(){for(var o=new MdGeArray1OfInteger(this.imp.getName()),s=[],c=1;c<=o.Length();c++)s.push(o.Value(c));return s.map(function(l){return String.fromCharCode(l)}).join("")}},{key:"getEntry",value:function(){return this.imp.getEntry()}},{key:"getAttributeStr",value:function(){return this.imp.getAttributeStr()}}]),r}(Mx3dDbObject),Mx3dLabelSequence=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),n?o=e.call(this,n):(o=e.call(this),o.initTempObject(new mxDraw3d.Mx3dLabelSequence)),_possibleConstructorReturn$1(o)}return _createClass$1(r)}(Mx3dBaseObject),Mx3dLabelSequenceIterator=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),n instanceof Mx3dLabelSequence?(o=e.call(this),o.initTempObject(new mxDraw3d.Mx3dLabelSequenceIterator(n.getImp()))):o=e.call(this,n),_possibleConstructorReturn$1(o)}return _createClass$1(r,[{key:"More",value:function(){return this.imp.More()}},{key:"Next",value:function(){this.imp.Next()}},{key:"Value",value:function(){return new Mx3dDbLabel(this.imp.Value())}}]),r}(Mx3dBaseObject),Mx3dGeLocation=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n){var o;return _classCallCheck$1(this,r),n?o=e.call(this,n):(o=e.call(this),o.initTempObject(new mxDraw3d.Mx3dGeLocation)),_possibleConstructorReturn$1(o)}return _createClass$1(r,[{key:"Multiplied",value:function(o){return new r(this.imp.Multiplied(o.getImp()))}}]),r}(Mx3dGeObject),Mx3dGePoint=function(t){_inherits$1(r,t);var e=_createSuper(r);function r(n,o,s){var c;return _classCallCheck$1(this,r),arguments.length===0?(c=e.call(this),c.initTempObject(new mxDraw3d.Mx3dGePoint)):typeof n=="number"&&typeof o=="number"&&typeof s=="number"?(c=e.call(this),c.initTempObject(new mxDraw3d.Mx3dGePoint(n,o,s))):n instanceof Object&&arguments.length===1&&(c=e.call(this,n)),_possibleConstructorReturn$1(c)}return _createClass$1(r,[{key:"X",value:function(){return this.imp.X()}},{key:"Y",value:function(){return this.imp.Y()}},{key:"Z",value:function(){return this.imp.Z()}},{key:"setX",value:function(o){this.imp.setX(o)}},{key:"setY",value:function(o){this.imp.setY(o)}},{key:"setZ",value:function(o){this.imp.setZ(o)}}]),r}(Mx3dGeObject),_mxFinalizationRegistry=new FinalizationRegistry(function(t){mxDraw3d.mdGeTopo.DestroyObject(t)}),_mxFinalizationRegistry_token={};function loadMxCADassembly3d(t,e){return new Promise(function(){var r=_asyncToGenerator(regenerator.mark(function n(o,s){var c;return regenerator.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:try{t.locateFile||(t.locateFile=get3DFileURL),c=new MxDraw3d(t),MxDraw3d.onloadWasmMxDraw3dModel=function(){o(c),e&&e(c)}}catch(x){s(x)}case 1:case"end":return v.stop()}},n)}));return function(n,o){return r.apply(this,arguments)}}())}function _objectDestructuringEmpty(t){if(t==null)throw new TypeError("Cannot destructure "+t)}var MxMap=function(){function t(){_classCallCheck$1(this,t),_defineProperty(this,"imp",{}),_defineProperty(this,"map",void 0),_defineProperty(this,"originLngLatLike",[0,0]),_defineProperty(this,"originCAD",[0,0]),_defineProperty(this,"meterInCADUnits",1),_defineProperty(this,"modelAltitude",0),_defineProperty(this,"loadOldEditionMethod",!1),_defineProperty(this,"mxcad",new McObject)}return _createClass$1(t,[{key:"setLoadOldEditionMethod",value:function(){this.loadOldEditionMethod=!0}},{key:"getMxDrawObject",value:function(){return this.mxcad.getMxDrawObject()}},{key:"initMapbox",value:function(r){this.map=r}},{key:"getMapbox",value:function(){return this.map}},{key:"mercatorCoord2CAD",value:function(r,n){var o=new THREE.Vector3(r,n,0);return o.applyMatrix4(this.imp.matMapToCad),o}},{key:"mercatorCoordToCAD",value:function(r,n){var o=new THREE.Vector3(r,n,0);return o.applyMatrix4(this.imp.matMapToCad),o}},{key:"cadToMercatorCoord",value:function(r){return r.applyMatrix4(this.imp.matCadToMap),r}},{key:"lnglatToCAD",value:function(r,n){var o=this.lnglat_to_mercator(r,n);return this.mercatorCoord2CAD(o.x,o.y)}},{key:"cadTolnglat",value:function(r){var n=this.cadToMercatorCoord(r);return this.mercator_to_lnglat(n.x,n.y,0)}},{key:"map_meters_to_lnglat",value:function(r,n){return r=r/200375083427892e-7*180,n=n/200375083427892e-7*180,n=180/Math.PI*(2*Math.atan(Math.exp(n*Math.PI/180))-Math.PI/2),[r,n]}},{key:"map_lnglat_to_meters",value:function(r,n){var o=r*200375083427892e-7/180,s=Math.log(Math.tan((90+n)*Math.PI/360))/(Math.PI/180);return s=s*200375083427892e-7/180,[o,s]}},{key:"lnglat_to_mercator",value:function(r,n){var o=this.map.lnglat_to_mercator(r,n);return new THREE.Vector3(o.x,o.y,0)}},{key:"mercator_to_lnglat",value:function(r,n,o){var s=this.map.mercator_to_lnglat(r,n,o);return[s.lng,s.lat]}},{key:"outOfChina",value:function(r,n){return!(r>73.66&&r<135.05&&n>3.86&&n<53.55)}},{key:"cadLongToMercatorCoord",value:function(r){var n=new THREE.Vector3(0,0,0),o=new THREE.Vector3(r,0,0);return n.applyMatrix4(this.imp.matCadToMap),o.applyMatrix4(this.imp.matCadToMap),n.distanceTo(o)}},{key:"setCoordinatePointAlignment",value:function(r,n,o){this.originCAD=n,this.originLngLatLike=r,this.meterInCADUnits=o}},{key:"create",value:function(){var e=_asyncToGenerator(regenerator.mark(function n(o,s){var c,l,v,x,w;return regenerator.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:this.map=o,s.middlePan!==void 0&&this.map.dragPan.useMouseMiddle(s.middlePan),s.viewBackgroundColor===void 0&&(s.viewBackgroundColor={red:255,green:255,blue:255}),c=this,l=o.mercatorCoordinate_from_LngLat(c.originLngLatLike,c.modelAltitude),v=l.meterInMercatorCoordinateUnits(),x=c.imp,x.map=o,x.elevation=this.modelAltitude,x.mapOrigin=new THREE.Vector3(l.x,l.y,l.z),x.cadOrigin=new THREE.Vector3(this.originCAD[0],this.originCAD[1],0),x.mapLenInCADUnits=c.meterInCADUnits*v,w={id:"3d-model",type:"custom",renderingMode:"3d",onAdd:function(I,O){return _asyncToGenerator(regenerator.mark(function N(){var A,z;return regenerator.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:try{x.canvas=I.getCanvas(),x.gl=O,x.canvasContainer=I.getCanvasContainer(),c.loadOldEditionMethod?(z=s,z.mapBox=x,z.isAutoResize=!0,z.callback=function(ne,W){_objectDestructuringEmpty(W),ne.addEvent("loadComplete",function(){c.map.triggerRepaint()})},MxFun.createMxObject(z)):(s.map=x,A=s.onOpenFileComplete,s.onOpenFileComplete=function(ne){A&&A(ne),c.map.triggerRepaint()},s.onInit=function(){MxFun.setIniset({MapBox:!0})},createMxCad(s,c.mxcad))}catch(ne){console.log(ne)}case 1:case"end":return V.stop()}},N)}))()},render:function(I,O){x.map.repaint=!1,x.render&&x.render(I,O)}},o.addLayer(w),o.on("resize",function(){x.onResize&&x.onResize()});case 15:case"end":return b.stop()}},n,this)}));function r(n,o){return e.apply(this,arguments)}return r}()}]),t}();function _createForOfIteratorHelper(t,e){var r=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=_unsupportedIterableToArray2(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(x){throw x},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
  3445. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,c=!1,l;return{s:function(){r=r.call(t)},n:function(){var x=r.next();return s=x.done,x},e:function(x){c=!0,l=x},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(c)throw l}}}}function _unsupportedIterableToArray2(t,e){if(!!t){if(typeof t=="string")return _arrayLikeToArray2(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray2(t,e)}}function _arrayLikeToArray2(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}Object.freeze=function(t){return t};var create$3=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}();function setOptions(t,e){t.hasOwnProperty("options")||(t.options=t.options?create$3(t.options):{});for(var r in e)t.options[r]=e[r]||t.options[r];return t.options}var templateRe=/\{ *([\w_-]+) *\}/g;function template(t,e){return t.replace(templateRe,function(r,n){var o=e[n];if(o===void 0)throw new Error("No value provided for variable "+r);return typeof o=="function"&&(o=o(e)),o})}var isArray$2=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"},pi$1=3.141592653589793,a$1=6378245,ee$1=.006693421622965943,x_pi=pi$1*3e3/180;function lonLatToTileNumbers(t,e,r){var n=pi$1/180*e,o=Math.pow(2,r),s=parseInt((t+180)/360*o),c=parseInt((1-Math.asinh(Math.tan(n))/pi$1)/2*o);return[s,c]}function tileNumbersToLonLat(t,e,r){var n=Math.pow(2,r),o=t/n*360-180,s=Math.atan(Math.sinh(pi$1*(1-2*e/n))),c=s*180/pi$1;return[o,c]}function bd09_To_gps84(t,e){if(isArray$2(t)){var r=t[0];e=t[1],t=r}if(t instanceof Object){var r=t.lng;e=t.lat,t=r}var n=bd09_To_gcj02(t,e),o=gcj02_To_gps84(n.lng,n.lat);return o}function gps84_To_bd09(t,e){if(isArray$2(t)){var r=t[0];e=t[1],t=r}if(t instanceof Object){var r=t.lng;e=t.lat,t=r}var n=gps84_To_gcj02(t,e),o=gcj02_To_bd09(n.lng,n.lat);return o}function gps84_To_gcj02(t,e){if(isArray$2(t)){var r=t[0];e=t[1],t=r}if(t instanceof Object){var r=t.lng;e=t.lat,t=r}var n=transformLat$1(t-105,e-35),o=transformLng$1(t-105,e-35),s=e/180*pi$1,c=Math.sin(s);c=1-ee$1*c*c;var l=Math.sqrt(c);n=n*180/(a$1*(1-ee$1)/(c*l)*pi$1),o=o*180/(a$1/l*Math.cos(s)*pi$1);var v=e+n,x=t+o,w={lng:x,lat:v};return w}function gcj02_To_gps84(t,e){if(isArray$2(t)){var r=t[0];e=t[1],t=r}if(t instanceof Object){var r=t.lng;e=t.lat,t=r}var n=transform$1$1(t,e),o=t*2-n.lng,s=e*2-n.lat,c={lng:o,lat:s};return c}function gcj02_To_bd09(t,e){var r=Math.sqrt(t*t+e*e)+2e-5*Math.sin(e*x_pi),n=Math.atan2(e,t)+3e-6*Math.cos(t*x_pi),o=r*Math.cos(n)+.0065,s=r*Math.sin(n)+.006,c={lng:o,lat:s};return c}function bd09_To_gcj02(t,e){var r=t-.0065,n=e-.006,o=Math.sqrt(r*r+n*n)-2e-5*Math.sin(n*x_pi),s=Math.atan2(n,r)-3e-6*Math.cos(r*x_pi),c=o*Math.cos(s),l=o*Math.sin(s),v={lng:c,lat:l};return v}function transform$1$1(t,e){var r=transformLat$1(t-105,e-35),n=transformLng$1(t-105,e-35),o=e/180*pi$1,s=Math.sin(o);s=1-ee$1*s*s;var c=Math.sqrt(s);r=r*180/(a$1*(1-ee$1)/(s*c)*pi$1),n=n*180/(a$1/c*Math.cos(o)*pi$1);var l=e+r,v=t+n,x={lng:v,lat:l};return x}function transformLat$1(t,e){var r=-100+2*t+3*e+.2*e*e+.1*t*e+.2*Math.sqrt(Math.abs(t));return r+=(20*Math.sin(6*t*pi$1)+20*Math.sin(2*t*pi$1))*2/3,r+=(20*Math.sin(e*pi$1)+40*Math.sin(e/3*pi$1))*2/3,r+=(160*Math.sin(e/12*pi$1)+320*Math.sin(e*pi$1/30))*2/3,r}function transformLng$1(t,e){var r=300+t+2*e+.1*t*t+.1*t*e+.1*Math.sqrt(Math.abs(t));return r+=(20*Math.sin(6*t*pi$1)+20*Math.sin(2*t*pi$1))*2/3,r+=(20*Math.sin(t*pi$1)+40*Math.sin(t/3*pi$1))*2/3,r+=(150*Math.sin(t/12*pi$1)+300*Math.sin(t/30*pi$1))*2/3,r}function Extend(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}function S(t,e){for(var r in e)t[r]=e[r]}function Xa(t){return typeof t=="string"}var j=void 0,p=null;function H(t,e){isNaN(t)&&(t=Ib(t),t=isNaN(t)?0:t),Xa(t)&&(t=parseFloat(t)),isNaN(e)&&(e=Ib(e),e=isNaN(e)?0:e),Xa(e)&&(e=parseFloat(e)),this.lng=t,this.lat=e}H.TL=function(t){return t&&180>=t.lng&&-180<=t.lng&&74>=t.lat&&-74<=t.lat};H.prototype.lb=function(t){return t&&this.lat==t.lat&&this.lng==t.lng};function Q(t,e){this.x=t||0,this.y=e||0,this.x=this.x,this.y=this.y}Q.prototype.lb=function(t){return t&&t.x==this.x&&t.y==this.y};function fc(){}fc.prototype.nh=function(){aa("lngLatToPoint\u65B9\u6CD5\u672A\u5B9E\u73B0")};fc.prototype.wi=function(){aa("pointToLngLat\u65B9\u6CD5\u672A\u5B9E\u73B0")};function R(){}R.prototype=new fc;Extend(R,{$O:637099681e-2,lG:[1289059486e-2,836237787e-2,5591021,348198983e-2,167804312e-2,0],Au:[75,60,45,30,15,0],fP:[[1410526172116255e-23,898305509648872e-20,-1.9939833816331,200.9824383106796,-187.2403703815547,91.6087516669843,-23.38765649603339,2.57121317296198,-.03801003308653,173379812e-1],[-7435856389565537e-24,8983055097726239e-21,-.78625201886289,96.32687599759846,-1.85204757529826,-59.36935905485877,47.40033549296737,-16.50741931063887,2.28786674699375,1026014486e-2],[-3030883460898826e-23,898305509983578e-20,.30071316287616,59.74293618442277,7.357984074871,-25.38371002664745,13.45380521110908,-3.29883767235584,.32710905363475,685681737e-2],[-1981981304930552e-23,8983055099779535e-21,.03278182852591,40.31678527705744,.65659298677277,-4.44255534477492,.85341911805263,.12923347998204,-.04625736007561,448277706e-2],[309191371068437e-23,8983055096812155e-21,6995724062e-14,23.10934304144901,-.00023663490511,-.6321817810242,-.00663494467273,.03430082397953,-.00466043876332,25551644e-1],[2890871144776878e-24,8983055095805407e-21,-3068298e-14,7.47137025468032,-353937994e-14,-.02145144861037,-1234426596e-14,.00010322952773,-323890364e-14,826088.5]],iG:[[-.0015702102444,111320.7020616939,0x60e374c3105a3,-0x24bb4115e2e164,0x5cc55543bb0ae8,-0x7ce070193f3784,0x5e7ca61ddf8150,-0x261a578d8b24d0,0x665d60f3742ca,82.5],[.0008277824516172526,111320.7020463578,6477955746671607e-7,-4082003173641316e-6,1077490566351142e-5,-1517187553151559e-5,1205306533862167e-5,-5124939663577472e-6,9133119359512032e-7,67.5],[.00337398766765,111320.7020202162,4481351045890365e-9,-2339375119931662e-8,7968221547186455e-8,-1159649932797253e-7,9723671115602145e-8,-4366194633752821e-8,8477230501135234e-9,52.5],[.00220636496208,111320.7020209128,51751.86112841131,3796837749470245e-9,992013.7397791013,-122195221711287e-8,1340652697009075e-9,-620943.6990984312,144416.9293806241,37.5],[-.0003441963504368392,111320.7020576856,278.2353980772752,2485758690035394e-9,6070.750963243378,54821.18345352118,9540.606633304236,-2710.55326746645,1405.483844121726,22.5],[-.0003218135878613132,111320.7020701615,.00369383431289,823725.6402795718,.46104986909093,2351.343141331292,1.58060784298199,8.77738589078284,.37238884252424,7.45]],Z1:function t(s,r){if(!s||!r)return 0;var n,o,s=this.Fb(s);return s?(n=this.Tk(s.lng),o=this.Tk(s.lat),r=this.Fb(r),r?this.Pe(n,this.Tk(r.lng),o,this.Tk(r.lat)):0):0},Vo:function t(e,r){return!e||!r?0:(e.lng=this.JD(e.lng,-180,180),e.lat=this.ND(e.lat,-74,74),r.lng=this.JD(r.lng,-180,180),r.lat=this.ND(r.lat,-74,74),this.Pe(this.Tk(e.lng),this.Tk(r.lng),this.Tk(e.lat),this.Tk(r.lat)))},Fb:function t(e){if(e===p||e===j)return new H(0,0);var r,n;r=new H(Math.abs(e.lng),Math.abs(e.lat));for(var o=0;o<this.lG.length;o++)if(r.lat>=this.lG[o]){n=this.fP[o];break}return e=this.gK(e,n),e=new H(e.lng.toFixed(6),e.lat.toFixed(6))},Eb:function t(e){if(e===p||e===j||180<e.lng||-180>e.lng||90<e.lat||-90>e.lat)return new H(0,0);var r,n;e.lng=this.JD(e.lng,-180,180),e.lat=this.ND(e.lat,-74,74),r=new H(e.lng,e.lat);for(var o=0;o<this.Au.length;o++)if(r.lat>=this.Au[o]){n=this.iG[o];break}if(!n){for(o=0;o<this.Au.length;o++)if(r.lat<=-this.Au[o]){n=this.iG[o];break}}return e=this.gK(e,n),e=new H(e.lng.toFixed(2),e.lat.toFixed(2))},gK:function t(e,r){if(e&&r){var n=r[0]+r[1]*Math.abs(e.lng),o=Math.abs(e.lat)/r[9],o=r[2]+r[3]*o+r[4]*o*o+r[5]*o*o*o+r[6]*o*o*o*o+r[7]*o*o*o*o*o+r[8]*o*o*o*o*o*o,n=n*(0>e.lng?-1:1),o=o*(0>e.lat?-1:1);return new H(n,o)}},Pe:function t(e,r,n,o){return this.$O*Math.acos(Math.sin(n)*Math.sin(o)+Math.cos(n)*Math.cos(o)*Math.cos(r-e))},Tk:function t(e){return Math.PI*e/180},Z3:function t(e){return 180*e/Math.PI},ND:function t(e,r,n){return r!=p&&(e=Math.max(e,r)),n!=p&&(e=Math.min(e,n)),e},JD:function t(e,r,n){for(;e>n;)e-=n-r;for(;e<r;)e+=n-r;return e}});Extend(R.prototype,{Jm:function t(e){return R.Eb(e)},nh:function t(e){return e=R.Eb(e),new Q(e.lng,e.lat)},qh:function t(e){return R.Fb(e)},wi:function t(e){return e=new H(e.x,e.y),R.Fb(e)},fc:function t(e,r,n,o,s){if(e)return e=this.Jm(e,s),r=this.Lc(r),new Q(Math.round((e.lng-n.lng)/r+o.width/2),Math.round((n.lat-e.lat)/r+o.height/2))},zb:function t(e,r,n,o,s){if(e)return r=this.Lc(r),this.qh(new H(n.lng+r*(e.x-o.width/2),n.lat-r*(e.y-o.height/2)),s)},Lc:function t(e){return Math.pow(2,18-e)}});var Je=R.prototype;S(Je,{lngLatToPoint:Je.nh,pointToLngLat:Je.wi});var BMap={Point:H,Pixel:Q,MercatorProjection:R},TransformClassBaidu=function(){function t(e,r){_classCallCheck$1(this,t),this.levelMax=e,this.levelMin=r,this.projection=new BMap.MercatorProjection}return _createClass$1(t,[{key:"_getRetain",value:function(r){return Math.pow(2,r-18)}},{key:"getResolution",value:function(r,n){return Math.pow(2,18-n)*Math.cos(r)}},{key:"lnglatToPoint",value:function(r,n){var o=new BMap.Point(r,n),s=this.projection.lngLatToPoint(o);return{pointX:s.x,pointY:s.y}}},{key:"pointToLnglat",value:function(r,n){var o=new BMap.Pixel(r,n),s=this.projection.pointToLngLat(o);return{lng:s.lng,lat:s.lat}}},{key:"_lngToTileX",value:function(r,n){var o=this.lnglatToPoint(r,0),s=Math.floor(o.pointX*this._getRetain(n)/256);return s}},{key:"_latToTileY",value:function(r,n){var o=this.lnglatToPoint(0,r),s=Math.floor(o.pointY*this._getRetain(n)/256);return s}},{key:"lnglatToTile",value:function(r,n,o){var s=this._lngToTileX(r,o),c=this._latToTileY(n,o);return[s,c]}},{key:"_lngToPixelX",value:function(r,n){var o=this._lngToTileX(r,n),s=this.lnglatToPoint(r,0),c=Math.floor(s.pointX*this._getRetain(n)-o*256);return c}},{key:"_latToPixelY",value:function(r,n){var o=this._latToTileY(r,n),s=this.lnglatToPoint(0,r),c=Math.floor(s.pointY*this._getRetain(n)-o*256);return c}},{key:"lnglatToPixel",value:function(r,n,o){var s=this._lngToPixelX(r,o),c=this._latToPixelY(n,o);return{pixelX:s,pixelY:c}}},{key:"_pixelXToLng",value:function(r,n,o){var s=(n*256+r)/this._getRetain(o),c=this.pointToLnglat(s,0);return c.lng}},{key:"_pixelYToLat",value:function(r,n,o){var s=(n*256+r)/this._getRetain(o),c=this.pointToLnglat(0,s);return c.lat}},{key:"pixelToLnglat",value:function(r,n,o,s,c){var l=(o*256+r)/this._getRetain(c),v=(s*256+n)/this._getRetain(c),x=this.pointToLnglat(l,v);return[x.lng,x.lat]}}]),t}();function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function _createClass(t,e,r){return e&&_defineProperties(t.prototype,e),r&&_defineProperties(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function _typeof(t){return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(t)}function _assertThisInitialized(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _possibleConstructorReturn(t,e){if(e&&(_typeof(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},_getPrototypeOf(t)}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},_setPrototypeOf(t,e)}function _inherits(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e)}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _iterableToArrayLimit(t,e){var r=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],o=!0,s=!1,c,l;try{for(r=r.call(t);!(o=(c=r.next()).done)&&(n.push(c.value),!(e&&n.length===e));o=!0);}catch(v){s=!0,l=v}finally{try{!o&&r.return!=null&&r.return()}finally{if(s)throw l}}return n}}function _arrayLikeToArray(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _unsupportedIterableToArray(t,e){if(!!t){if(typeof t=="string")return _arrayLikeToArray(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray(t,e)}}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  3446. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}var EPSILON=1e-6,ARRAY_TYPE$1=typeof Float32Array!="undefined"?Float32Array:Array;Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});function create$2(){var t=new ARRAY_TYPE$1(4);return ARRAY_TYPE$1!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function scale$1(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t}function transformMat4$1(t,e,r){var n=e[0],o=e[1],s=e[2],c=e[3];return t[0]=r[0]*n+r[4]*o+r[8]*s+r[12]*c,t[1]=r[1]*n+r[5]*o+r[9]*s+r[13]*c,t[2]=r[2]*n+r[6]*o+r[10]*s+r[14]*c,t[3]=r[3]*n+r[7]*o+r[11]*s+r[15]*c,t}(function(){var t=create$2();return function(e,r,n,o,s,c){var l,v;for(r||(r=4),n||(n=0),o?v=Math.min(o*r+n,e.length):v=e.length,l=n;l<v;l+=r)t[0]=e[l],t[1]=e[l+1],t[2]=e[l+2],t[3]=e[l+3],s(t,t,c),e[l]=t[0],e[l+1]=t[1],e[l+2]=t[2],e[l+3]=t[3];return e}})();function createMat4(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function transformVector(t,e){var r=transformMat4$1([],e,t);return scale$1(r,r,1/r[3]),r}function invert(t,e){var r=e[0],n=e[1],o=e[2],s=e[3],c=e[4],l=e[5],v=e[6],x=e[7],w=e[8],_=e[9],b=e[10],E=e[11],I=e[12],O=e[13],N=e[14],A=e[15],z=r*l-n*c,G=r*v-o*c,V=r*x-s*c,ne=n*v-o*l,W=n*x-s*l,B=o*x-s*v,q=w*O-_*I,D=w*N-b*I,F=w*A-E*I,re=_*N-b*O,le=_*A-E*O,fe=b*A-E*N,me=z*fe-G*le+V*re+ne*F-W*D+B*q;return me?(me=1/me,t[0]=(l*fe-v*le+x*re)*me,t[1]=(o*le-n*fe-s*re)*me,t[2]=(O*B-N*W+A*ne)*me,t[3]=(b*W-_*B-E*ne)*me,t[4]=(v*F-c*fe-x*D)*me,t[5]=(r*fe-o*F+s*D)*me,t[6]=(N*V-I*B-A*G)*me,t[7]=(w*B-b*V+E*G)*me,t[8]=(c*le-l*F+x*q)*me,t[9]=(n*F-r*le-s*q)*me,t[10]=(I*W-O*V+A*z)*me,t[11]=(_*V-w*W-E*z)*me,t[12]=(l*D-c*re-v*q)*me,t[13]=(r*re-n*D+o*q)*me,t[14]=(O*G-I*ne-N*z)*me,t[15]=(w*ne-_*G+b*z)*me,t):null}function multiply(t,e,r){var n=e[0],o=e[1],s=e[2],c=e[3],l=e[4],v=e[5],x=e[6],w=e[7],_=e[8],b=e[9],E=e[10],I=e[11],O=e[12],N=e[13],A=e[14],z=e[15],G=r[0],V=r[1],ne=r[2],W=r[3];return t[0]=G*n+V*l+ne*_+W*O,t[1]=G*o+V*v+ne*b+W*N,t[2]=G*s+V*x+ne*E+W*A,t[3]=G*c+V*w+ne*I+W*z,G=r[4],V=r[5],ne=r[6],W=r[7],t[4]=G*n+V*l+ne*_+W*O,t[5]=G*o+V*v+ne*b+W*N,t[6]=G*s+V*x+ne*E+W*A,t[7]=G*c+V*w+ne*I+W*z,G=r[8],V=r[9],ne=r[10],W=r[11],t[8]=G*n+V*l+ne*_+W*O,t[9]=G*o+V*v+ne*b+W*N,t[10]=G*s+V*x+ne*E+W*A,t[11]=G*c+V*w+ne*I+W*z,G=r[12],V=r[13],ne=r[14],W=r[15],t[12]=G*n+V*l+ne*_+W*O,t[13]=G*o+V*v+ne*b+W*N,t[14]=G*s+V*x+ne*E+W*A,t[15]=G*c+V*w+ne*I+W*z,t}function translate$1(t,e,r){var n=r[0],o=r[1],s=r[2],c,l,v,x,w,_,b,E,I,O,N,A;return e===t?(t[12]=e[0]*n+e[4]*o+e[8]*s+e[12],t[13]=e[1]*n+e[5]*o+e[9]*s+e[13],t[14]=e[2]*n+e[6]*o+e[10]*s+e[14],t[15]=e[3]*n+e[7]*o+e[11]*s+e[15]):(c=e[0],l=e[1],v=e[2],x=e[3],w=e[4],_=e[5],b=e[6],E=e[7],I=e[8],O=e[9],N=e[10],A=e[11],t[0]=c,t[1]=l,t[2]=v,t[3]=x,t[4]=w,t[5]=_,t[6]=b,t[7]=E,t[8]=I,t[9]=O,t[10]=N,t[11]=A,t[12]=c*n+w*o+I*s+e[12],t[13]=l*n+_*o+O*s+e[13],t[14]=v*n+b*o+N*s+e[14],t[15]=x*n+E*o+A*s+e[15]),t}function scale(t,e,r){var n=r[0],o=r[1],s=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*o,t[5]=e[5]*o,t[6]=e[6]*o,t[7]=e[7]*o,t[8]=e[8]*s,t[9]=e[9]*s,t[10]=e[10]*s,t[11]=e[11]*s,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function rotateX(t,e,r){var n=Math.sin(r),o=Math.cos(r),s=e[4],c=e[5],l=e[6],v=e[7],x=e[8],w=e[9],_=e[10],b=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=s*o+x*n,t[5]=c*o+w*n,t[6]=l*o+_*n,t[7]=v*o+b*n,t[8]=x*o-s*n,t[9]=w*o-c*n,t[10]=_*o-l*n,t[11]=b*o-v*n,t}function rotateZ(t,e,r){var n=Math.sin(r),o=Math.cos(r),s=e[0],c=e[1],l=e[2],v=e[3],x=e[4],w=e[5],_=e[6],b=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=s*o+x*n,t[1]=c*o+w*n,t[2]=l*o+_*n,t[3]=v*o+b*n,t[4]=x*o-s*n,t[5]=w*o-c*n,t[6]=_*o-l*n,t[7]=b*o-v*n,t}function perspectiveNO(t,e,r,n,o){var s=1/Math.tan(e/2),c;return t[0]=s/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,o!=null&&o!==1/0?(c=1/(n-o),t[10]=(o+n)*c,t[14]=2*o*n*c):(t[10]=-1,t[14]=-2*n),t}var perspective=perspectiveNO;function equals(t,e){var r=t[0],n=t[1],o=t[2],s=t[3],c=t[4],l=t[5],v=t[6],x=t[7],w=t[8],_=t[9],b=t[10],E=t[11],I=t[12],O=t[13],N=t[14],A=t[15],z=e[0],G=e[1],V=e[2],ne=e[3],W=e[4],B=e[5],q=e[6],D=e[7],F=e[8],re=e[9],le=e[10],fe=e[11],me=e[12],ye=e[13],Te=e[14],ke=e[15];return Math.abs(r-z)<=EPSILON*Math.max(1,Math.abs(r),Math.abs(z))&&Math.abs(n-G)<=EPSILON*Math.max(1,Math.abs(n),Math.abs(G))&&Math.abs(o-V)<=EPSILON*Math.max(1,Math.abs(o),Math.abs(V))&&Math.abs(s-ne)<=EPSILON*Math.max(1,Math.abs(s),Math.abs(ne))&&Math.abs(c-W)<=EPSILON*Math.max(1,Math.abs(c),Math.abs(W))&&Math.abs(l-B)<=EPSILON*Math.max(1,Math.abs(l),Math.abs(B))&&Math.abs(v-q)<=EPSILON*Math.max(1,Math.abs(v),Math.abs(q))&&Math.abs(x-D)<=EPSILON*Math.max(1,Math.abs(x),Math.abs(D))&&Math.abs(w-F)<=EPSILON*Math.max(1,Math.abs(w),Math.abs(F))&&Math.abs(_-re)<=EPSILON*Math.max(1,Math.abs(_),Math.abs(re))&&Math.abs(b-le)<=EPSILON*Math.max(1,Math.abs(b),Math.abs(le))&&Math.abs(E-fe)<=EPSILON*Math.max(1,Math.abs(E),Math.abs(fe))&&Math.abs(I-me)<=EPSILON*Math.max(1,Math.abs(I),Math.abs(me))&&Math.abs(O-ye)<=EPSILON*Math.max(1,Math.abs(O),Math.abs(ye))&&Math.abs(N-Te)<=EPSILON*Math.max(1,Math.abs(N),Math.abs(Te))&&Math.abs(A-ke)<=EPSILON*Math.max(1,Math.abs(A),Math.abs(ke))}function create$1(){var t=new ARRAY_TYPE$1(2);return ARRAY_TYPE$1!=Float32Array&&(t[0]=0,t[1]=0),t}function add(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function negate$1(t,e){return t[0]=-e[0],t[1]=-e[1],t}function lerp(t,e,r,n){var o=e[0],s=e[1];return t[0]=o+n*(r[0]-o),t[1]=s+n*(r[1]-s),t}(function(){var t=create$1();return function(e,r,n,o,s,c){var l,v;for(r||(r=2),n||(n=0),o?v=Math.min(o*r+n,e.length):v=e.length,l=n;l<v;l+=r)t[0]=e[l],t[1]=e[l+1],s(t,t,c),e[l]=t[0],e[l+1]=t[1];return e}})();function create$4(){var t=new ARRAY_TYPE$1(3);return ARRAY_TYPE$1!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function negate(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}(function(){var t=create$4();return function(e,r,n,o,s,c){var l,v;for(r||(r=3),n||(n=0),o?v=Math.min(o*r+n,e.length):v=e.length,l=n;l<v;l+=r)t[0]=e[l],t[1]=e[l+1],t[2]=e[l+2],s(t,t,c),e[l]=t[0],e[l+1]=t[1],e[l+2]=t[2];return e}})();function assert(t,e){if(!t)throw new Error(e||"viewport-mercator-project: assertion failed.")}var PI$1=Math.PI,PI_4=PI$1/4,DEGREES_TO_RADIANS$1=PI$1/180,RADIANS_TO_DEGREES=180/PI$1,TILE_SIZE$1=512,EARTH_CIRCUMFERENCE$1=4003e4,DEFAULT_ALTITUDE=1.5;function zoomToScale$1(t){return Math.pow(2,t)}function lngLatToWorld(t,e){var r=_slicedToArray(t,2),n=r[0],o=r[1];assert(Number.isFinite(n)&&Number.isFinite(e)),assert(Number.isFinite(o)&&o>=-90&&o<=90,"invalid latitude"),e*=TILE_SIZE$1;var s=n*DEGREES_TO_RADIANS$1,c=o*DEGREES_TO_RADIANS$1,l=e*(s+PI$1)/(2*PI$1),v=e*(PI$1-Math.log(Math.tan(PI_4+c*.5)))/(2*PI$1);return[l,v]}function worldToLngLat(t,e){var r=_slicedToArray(t,2),n=r[0],o=r[1];e*=TILE_SIZE$1;var s=n/e*(2*PI$1)-PI$1,c=2*(Math.atan(Math.exp(PI$1-o/e*(2*PI$1)))-PI_4);return[s*RADIANS_TO_DEGREES,c*RADIANS_TO_DEGREES]}function getDistanceScales$1(t){var e=t.latitude,r=t.longitude,n=t.zoom,o=t.scale,s=t.highPrecision,c=s===void 0?!1:s;o=o!==void 0?o:zoomToScale$1(n),assert(Number.isFinite(e)&&Number.isFinite(r)&&Number.isFinite(o));var l={},v=TILE_SIZE$1*o,x=Math.cos(e*DEGREES_TO_RADIANS$1),w=v/360,_=w/x,b=v/EARTH_CIRCUMFERENCE$1/x;if(l.pixelsPerMeter=[b,-b,b],l.metersPerPixel=[1/b,-1/b,1/b],l.pixelsPerDegree=[w,-_,b],l.degreesPerPixel=[1/w,-1/_,1/b],c){var E=DEGREES_TO_RADIANS$1*Math.tan(e*DEGREES_TO_RADIANS$1)/x,I=w*E/2,O=v/EARTH_CIRCUMFERENCE$1*E,N=O/_*b;l.pixelsPerDegree2=[0,-I,O],l.pixelsPerMeter2=[N,0,N]}return l}function getViewMatrix(t){var e=t.height,r=t.pitch,n=t.bearing,o=t.altitude,s=t.center,c=s===void 0?null:s,l=t.flipY,v=l===void 0?!1:l,x=createMat4();return translate$1(x,x,[0,0,-o]),scale(x,x,[1,1,1/e]),rotateX(x,x,-r*DEGREES_TO_RADIANS$1),rotateZ(x,x,n*DEGREES_TO_RADIANS$1),v&&scale(x,x,[1,-1,1]),c&&translate$1(x,x,negate([],c)),x}function getProjectionParameters(t){var e=t.width,r=t.height,n=t.altitude,o=n===void 0?DEFAULT_ALTITUDE:n,s=t.pitch,c=s===void 0?0:s,l=t.nearZMultiplier,v=l===void 0?1:l,x=t.farZMultiplier,w=x===void 0?1:x,_=c*DEGREES_TO_RADIANS$1,b=Math.atan(.5/o),E=Math.sin(b)*o/Math.sin(Math.PI/2-_-b),I=Math.cos(Math.PI/2-_)*E+o;return{fov:2*Math.atan(r/2/o),aspect:e/r,focalDistance:o,near:v,far:I*w}}function getProjectionMatrix(t){var e=t.width,r=t.height,n=t.pitch,o=t.altitude,s=t.nearZMultiplier,c=t.farZMultiplier,l=getProjectionParameters({width:e,height:r,altitude:o,pitch:n,nearZMultiplier:s,farZMultiplier:c}),v=l.fov,x=l.aspect,w=l.near,_=l.far,b=perspective([],v,x,w,_);return b}function worldToPixels(t,e){var r=_slicedToArray(t,3),n=r[0],o=r[1],s=r[2],c=s===void 0?0:s;return assert(Number.isFinite(n)&&Number.isFinite(o)&&Number.isFinite(c)),transformVector(e,[n,o,c,1])}function pixelsToWorld(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=_slicedToArray(t,3),o=n[0],s=n[1],c=n[2];if(assert(Number.isFinite(o)&&Number.isFinite(s),"invalid pixel coordinate"),Number.isFinite(c)){var l=transformVector(e,[o,s,c,1]);return l}var v=transformVector(e,[o,s,0,1]),x=transformVector(e,[o,s,1,1]),w=v[2],_=x[2],b=w===_?0:((r||0)-w)/(_-w);return lerp([],v,x,b)}var IDENTITY=createMat4(),Viewport=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=e.width,n=e.height,o=e.viewMatrix,s=o===void 0?IDENTITY:o,c=e.projectionMatrix,l=c===void 0?IDENTITY:c;_classCallCheck(this,t),this.width=r||1,this.height=n||1,this.scale=1,this.pixelsPerMeter=1,this.viewMatrix=s,this.projectionMatrix=l;var v=createMat4();multiply(v,v,this.projectionMatrix),multiply(v,v,this.viewMatrix),this.viewProjectionMatrix=v;var x=createMat4();scale(x,x,[this.width/2,-this.height/2,1]),translate$1(x,x,[1,-1,0]),multiply(x,x,this.viewProjectionMatrix);var w=invert(createMat4(),x);if(!w)throw new Error("Pixel project matrix not invertible");this.pixelProjectionMatrix=x,this.pixelUnprojectionMatrix=w,this.equals=this.equals.bind(this),this.project=this.project.bind(this),this.unproject=this.unproject.bind(this),this.projectPosition=this.projectPosition.bind(this),this.unprojectPosition=this.unprojectPosition.bind(this),this.projectFlat=this.projectFlat.bind(this),this.unprojectFlat=this.unprojectFlat.bind(this)}return _createClass(t,[{key:"equals",value:function(r){return r instanceof t?r.width===this.width&&r.height===this.height&&equals(r.projectionMatrix,this.projectionMatrix)&&equals(r.viewMatrix,this.viewMatrix):!1}},{key:"project",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.topLeft,s=o===void 0?!0:o,c=this.projectPosition(r),l=worldToPixels(c,this.pixelProjectionMatrix),v=_slicedToArray(l,2),x=v[0],w=v[1],_=s?w:this.height-w;return r.length===2?[x,_]:[x,_,l[2]]}},{key:"unproject",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.topLeft,s=o===void 0?!0:o,c=n.targetZ,l=_slicedToArray(r,3),v=l[0],x=l[1],w=l[2],_=s?x:this.height-x,b=c&&c*this.pixelsPerMeter,E=pixelsToWorld([v,_,w],this.pixelUnprojectionMatrix,b),I=this.unprojectPosition(E),O=_slicedToArray(I,3),N=O[0],A=O[1],z=O[2];return Number.isFinite(w)?[N,A,z]:Number.isFinite(c)?[N,A,c]:[N,A]}},{key:"projectPosition",value:function(r){var n=this.projectFlat(r),o=_slicedToArray(n,2),s=o[0],c=o[1],l=(r[2]||0)*this.pixelsPerMeter;return[s,c,l]}},{key:"unprojectPosition",value:function(r){var n=this.unprojectFlat(r),o=_slicedToArray(n,2),s=o[0],c=o[1],l=(r[2]||0)/this.pixelsPerMeter;return[s,c,l]}},{key:"projectFlat",value:function(r){return arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale,r}},{key:"unprojectFlat",value:function(r){return arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale,r}}]),t}();function fitBounds(t){var e=t.width,r=t.height,n=t.bounds,o=t.minExtent,s=o===void 0?0:o,c=t.maxZoom,l=c===void 0?24:c,v=t.padding,x=v===void 0?0:v,w=t.offset,_=w===void 0?[0,0]:w,b=_slicedToArray(n,2),E=_slicedToArray(b[0],2),I=E[0],O=E[1],N=_slicedToArray(b[1],2),A=N[0],z=N[1];if(Number.isFinite(x)){var G=x;x={top:G,bottom:G,left:G,right:G}}else assert(Number.isFinite(x.top)&&Number.isFinite(x.bottom)&&Number.isFinite(x.left)&&Number.isFinite(x.right));var V=new WebMercatorViewport({width:e,height:r,longitude:0,latitude:0,zoom:0}),ne=V.project([I,z]),W=V.project([A,O]),B=[Math.max(Math.abs(W[0]-ne[0]),s),Math.max(Math.abs(W[1]-ne[1]),s)],q=[e-x.left-x.right-Math.abs(_[0])*2,r-x.top-x.bottom-Math.abs(_[1])*2];assert(q[0]>0&&q[1]>0);var D=q[0]/B[0],F=q[1]/B[1],re=(x.right-x.left)/2/D,le=(x.bottom-x.top)/2/F,fe=[(W[0]+ne[0])/2+re,(W[1]+ne[1])/2+le],me=V.unproject(fe),ye=V.zoom+Math.log2(Math.abs(Math.min(D,F)));return{longitude:me[0],latitude:me[1],zoom:Math.min(ye,l)}}var WebMercatorViewport=function(t){_inherits(e,t);function e(){var r,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=n.width,s=n.height,c=n.latitude,l=c===void 0?0:c,v=n.longitude,x=v===void 0?0:v,w=n.zoom,_=w===void 0?0:w,b=n.pitch,E=b===void 0?0:b,I=n.bearing,O=I===void 0?0:I,N=n.altitude,A=N===void 0?1.5:N,z=n.nearZMultiplier,G=n.farZMultiplier;_classCallCheck(this,e),o=o||1,s=s||1;var V=zoomToScale$1(_);A=Math.max(.75,A);var ne=lngLatToWorld([x,l],V);ne[2]=0;var W=getProjectionMatrix({width:o,height:s,pitch:E,bearing:O,altitude:A,nearZMultiplier:z||1/s,farZMultiplier:G||1.01}),B=getViewMatrix({height:s,center:ne,pitch:E,bearing:O,altitude:A,flipY:!0});return r=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,{width:o,height:s,viewMatrix:B,projectionMatrix:W})),r.latitude=l,r.longitude=x,r.zoom=_,r.pitch=E,r.bearing=O,r.altitude=A,r.scale=V,r.center=ne,r.pixelsPerMeter=getDistanceScales$1(_assertThisInitialized(_assertThisInitialized(r))).pixelsPerMeter[2],Object.freeze(_assertThisInitialized(_assertThisInitialized(r))),r}return _createClass(e,[{key:"projectFlat",value:function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return lngLatToWorld(n,o)}},{key:"unprojectFlat",value:function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return worldToLngLat(n,o)}},{key:"getMapCenterByLngLatPosition",value:function(n){var o=n.lngLat,s=n.pos,c=pixelsToWorld(s,this.pixelUnprojectionMatrix),l=lngLatToWorld(o,this.scale),v=add([],l,negate$1([],c)),x=add([],this.center,v);return worldToLngLat(x,this.scale)}},{key:"getLocationAtPoint",value:function(n){var o=n.lngLat,s=n.pos;return this.getMapCenterByLngLatPosition({lngLat:o,pos:s})}},{key:"fitBounds",value:function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=this.width,c=this.height,l=fitBounds(Object.assign({width:s,height:c,bounds:n},o)),v=l.longitude,x=l.latitude,w=l.zoom;return new e({width:s,height:c,longitude:v,latitude:x,zoom:w})}}]),e}(Viewport),PI=Math.PI,DEGREES_TO_RADIANS=PI/180,TILE_SIZE=512,EARTH_CIRCUMFERENCE=4003e4;function zoomToScale(t){return Math.pow(2,t)}function getDistanceScales(t){var e=t.latitude,r=e===void 0?0:e,n=t.zoom,o=n===void 0?1:n,s=t.scale,c=t.highPrecision,l=c===void 0?!1:c;s=s!==void 0?s:zoomToScale(o);var v={},x=TILE_SIZE*s*window.devicePixelRatio,w=Math.cos(r*DEGREES_TO_RADIANS),_=x/360,b=_/w,E=x/EARTH_CIRCUMFERENCE/w;if(v.pixelsPerMeter=[E,-E,E],v.metersPerPixel=[1/E,-1/E,1/E],v.pixelsPerDegree=[_,-b,E],v.degreesPerPixel=[1/_,-1/b,1/E],l){var I=DEGREES_TO_RADIANS*Math.tan(r*DEGREES_TO_RADIANS)/w,O=_*I/2,N=x/EARTH_CIRCUMFERENCE*I,A=N/b*E;v.pixelsPerDegree2=[0,-O,N],v.pixelsPerMeter2=[A,0,A]}return v}var customTileLayer=function(){function t(e,r,n){_classCallCheck$1(this,t),this.id=e,this.type="custom",this.renderingMode="2d",this.url=r,this.options={subdomains:null,minZoom:0,maxZoom:24,tileType:"xyz"},setOptions(this,n),this.program,this.showTiles=[],this.tileCache={},this.gridCache={},this.matrix,this.map,this.isLayerShow,this.transformBaidu=new TransformClassBaidu}return _createClass$1(t,[{key:"onAdd",value:function(r,n){var o=this;this.map=r;var s="uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_TextCoord;varying vec2 v_TextCoord;const float TILE_SIZE = 512.0;const float PI = 3.1415926536;const float WORLD_SCALE = TILE_SIZE / (PI * 2.0);uniform float u_project_scale;uniform bool u_is_offset;uniform vec3 u_pixels_per_degree;uniform vec3 u_pixels_per_degree2;uniform vec3 u_pixels_per_meter;uniform vec2 u_viewport_center;uniform vec4 u_viewport_center_projection;uniform vec2 u_viewport_size;float project_scale(float meters) { return meters * u_pixels_per_meter.z;}vec3 project_scale(vec3 position) { return position * u_pixels_per_meter;}vec2 project_mercator(vec2 lnglat) { float x = lnglat.x; return vec2( radians(x) + PI, PI - log(tan(PI * 0.25 + radians(lnglat.y) * 0.5)) );}vec4 project_offset(vec4 offset) { float dy = offset.y; dy = clamp(dy, -1., 1.); vec3 pixels_per_unit = u_pixels_per_degree + u_pixels_per_degree2 * dy; return vec4(offset.xyz * pixels_per_unit, offset.w);}vec4 project_position(vec4 position) { if (u_is_offset) { float X = position.x - u_viewport_center.x; float Y = position.y - u_viewport_center.y; return project_offset(vec4(X, Y, position.z, position.w)); } else { return vec4( project_mercator(position.xy) * WORLD_SCALE * u_project_scale, project_scale(position.z), position.w ); }}vec4 project_to_clipping_space(vec3 position) { vec4 project_pos = project_position(vec4(position, 1.0)); return u_matrix * project_pos + u_viewport_center_projection;}void main() { vec4 project_pos = project_position(vec4(a_pos, 0.0, 1.0)); gl_Position = u_matrix * project_pos + u_viewport_center_projection; v_TextCoord = a_TextCoord;}",c="precision mediump float;uniform sampler2D u_Sampler; varying vec2 v_TextCoord; void main() { gl_FragColor = texture2D(u_Sampler, v_TextCoord);}",l=n.createShader(n.VERTEX_SHADER);n.shaderSource(l,s),n.compileShader(l);var v=n.createShader(n.FRAGMENT_SHADER);n.shaderSource(v,c),n.compileShader(v),this.program=n.createProgram(),n.attachShader(this.program,l),n.attachShader(this.program,v),n.linkProgram(this.program),this.a_Pos=n.getAttribLocation(this.program,"a_pos"),this.a_TextCoord=n.getAttribLocation(this.program,"a_TextCoord"),this.isLayerShow=!0,r.on("move",function(){o.isLayerShow&&o.update(n,r)}),this.update(n,r)}},{key:"update",value:function(r,n){var o=this,s=n.getCenter(),c,l=n.getBounds(),v,x;if(this.options.tileType==="xyz"){c=parseInt(n.getZoom()+1.4);var w=gps84_To_gcj02(l.getNorthWest()),_=gps84_To_gcj02(l.getSouthEast());v=lonLatToTileNumbers(w.lng,w.lat,c),x=lonLatToTileNumbers(_.lng,_.lat,c)}else if(this.options.tileType==="bd09"){c=parseInt(n.getZoom()+1.8);var b=gps84_To_bd09(l.getSouthWest()),E=gps84_To_bd09(l.getNorthEast());v=this.transformBaidu.lnglatToTile(b.lng,b.lat,c),x=this.transformBaidu.lnglatToTile(E.lng,E.lat,c)}for(var I=[],O=v[0];O<=x[0];O++)for(var N=v[1];N<=x[1];N++){var A={x:O,y:N,z:c};I.push(A),this.addGridCache(A,0,0),O===x[0]&&this.addGridCache(A,1,0),N===x[1]&&this.addGridCache(A,0,1),O===x[0]&&N===x[1]&&this.addGridCache(A,1,1)}if(this.options.tileType==="xyz")var z=lonLatToTileNumbers(s.lng,s.lat,c);else this.options.tileType==="bd09"&&(z=this.transformBaidu.lnglatToTile(s.lng,s.lat,c));I.sort(function(W,B){return o.tileDistance(W,z)-o.tileDistance(B,z)}),this.showTiles=[];for(var G=0,V=I;G<V.length;G++){var A=V[G];if(this.tileCache[this.createTileKey(A)])this.showTiles.push(this.tileCache[this.createTileKey(A)]);else{var ne=this.createTile(r,A);this.showTiles.push(ne),this.tileCache[this.createTileKey(A)]=ne}}}},{key:"addGridCache",value:function(r,n,o){var s=this.createTileKey(r.x+n,r.y+o,r.z);this.gridCache[s]||(this.options.tileType==="xyz"?this.gridCache[s]=gcj02_To_gps84(tileNumbersToLonLat(r.x+n,r.y+o,r.z)):this.options.tileType==="bd09"&&(this.gridCache[s]=bd09_To_gps84(this.transformBaidu.pixelToLnglat(0,0,r.x+n,r.y+o,r.z))))}},{key:"tileDistance",value:function(r,n){return Math.sqrt(Math.pow(r.x-n[0],2)+Math.pow(r.y-n[1],2))}},{key:"createTileKey",value:function(r,n,o){if(r instanceof Object)return r.z+"/"+r.x+"/"+r.y;var s=r;return o+"/"+s+"/"+n}},{key:"createTile",value:function(r,n){var o=this,s=template(this.url,{s:this.options.subdomains[Math.abs(n.x+n.y)%this.options.subdomains.length],x:n.x,y:n.y,z:n.z}),c={xyz:n},l,v,x,w;this.options.tileType==="xyz"?(l=this.gridCache[this.createTileKey(n)],v=this.gridCache[this.createTileKey(n.x+1,n.y,n.z)],x=this.gridCache[this.createTileKey(n.x,n.y+1,n.z)],w=this.gridCache[this.createTileKey(n.x+1,n.y+1,n.z)]):this.options.tileType==="bd09"&&(l=this.gridCache[this.createTileKey(n.x,n.y+1,n.z)],v=this.gridCache[this.createTileKey(n.x+1,n.y+1,n.z)],x=this.gridCache[this.createTileKey(n)],w=this.gridCache[this.createTileKey(n.x+1,n.y,n.z)]);var _=new Float32Array([l.lng,l.lat,0,1,x.lng,x.lat,0,0,v.lng,v.lat,1,1,w.lng,w.lat,1,0]),b=_.BYTES_PER_ELEMENT,E=r.createBuffer();r.bindBuffer(r.ARRAY_BUFFER,E),r.bufferData(r.ARRAY_BUFFER,_,r.STATIC_DRAW),c.buffer=E,c.PosParam={size:2,stride:b*4,offset:0},c.TextCoordParam={size:2,stride:b*4,offset:b*2};var I=new Image;return I.onload=function(){c.texture=r.createTexture(),r.bindTexture(r.TEXTURE_2D,c.texture),r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,1),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,I),c.isLoad=!0,o.map.triggerRepaint()},I.crossOrigin=!0,I.src=s,c}},{key:"render",value:function(r,n){if(!(this.map.getZoom()<this.options.minZoom||this.map.getZoom()>this.options.maxZoom)){this.matrix=n,r.useProgram(this.program);var o=_createForOfIteratorHelper(this.showTiles),s;try{for(o.s();!(s=o.n()).done;){var c=s.value;if(!!c.isLoad){r.bindTexture(r.TEXTURE_2D,c.texture),r.activeTexture(r.TEXTURE0),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.MIRRORED_REPEAT);var l=r.getUniformLocation(this.program,"u_Sampler");r.uniform1i(l,0),r.bindBuffer(r.ARRAY_BUFFER,c.buffer),r.vertexAttribPointer(this.a_Pos,c.PosParam.size,r.FLOAT,!1,c.PosParam.stride,c.PosParam.offset),r.vertexAttribPointer(this.a_TextCoord,c.TextCoordParam.size,r.FLOAT,!1,c.TextCoordParam.stride,c.TextCoordParam.offset),r.enableVertexAttribArray(this.a_Pos),r.enableVertexAttribArray(this.a_TextCoord),this.setVertex(r),r.enable(r.BLEND),r.blendFunc(r.SRC_ALPHA,r.ONE_MINUS_SRC_ALPHA),r.drawArrays(r.TRIANGLE_STRIP,0,4)}}}catch(v){o.e(v)}finally{o.f()}}}},{key:"setVertex",value:function(r){var n=this.map.getZoom(),o=this.map.getBearing(),s=this.map.getPitch(),c=this.map.getCenter(),l=new WebMercatorViewport({width:r.drawingBufferWidth,height:r.drawingBufferHeight,longitude:c.lng,latitude:c.lat,zoom:n,pitch:s,bearing:o}),v=l.viewProjectionMatrix,x=l.projectionMatrix,w=l.viewMatrix,_=l.viewMatrixUncentered,b={u_matrix:v,u_point_size:this.pointSize,u_is_offset:!1,u_pixels_per_degree:[0,0,0],u_pixels_per_degree2:[0,0,0],u_viewport_center:[0,0],u_pixels_per_meter:[0,0,0],u_project_scale:zoomToScale(n),u_viewport_center_projection:[0,0,0,0]};if(n>0){var E=getDistanceScales({longitude:c.lng,latitude:c.lat,zoom:n,highPrecision:!0}),I=E.pixelsPerDegree,O=E.pixelsPerDegree2,N=l.projectFlat([Math.fround(c.lng),Math.fround(c.lat)],Math.pow(2,n)),A=transformMat4$1([],[N[0],N[1],0,1],v),z=_||w,G=multiply([],x,z),V=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0];G=multiply([],G,V),b.u_matrix=G,b.u_is_offset=!0,b.u_viewport_center=[Math.fround(c.lng),Math.fround(c.lat)],b.u_viewport_center_projection=A,b.u_pixels_per_degree=I&&I.map(function(ne){return Math.fround(ne)}),b.u_pixels_per_degree2=O&&O.map(function(ne){return Math.fround(ne)})}r.uniformMatrix4fv(r.getUniformLocation(this.program,"u_matrix"),!1,b.u_matrix),r.uniform1f(r.getUniformLocation(this.program,"u_project_scale"),b.u_project_scale),r.uniform1i(r.getUniformLocation(this.program,"u_is_offset"),b.u_is_offset?1:0),r.uniform3fv(r.getUniformLocation(this.program,"u_pixels_per_degree"),b.u_pixels_per_degree),r.uniform3fv(r.getUniformLocation(this.program,"u_pixels_per_degree2"),b.u_pixels_per_degree2),r.uniform3fv(r.getUniformLocation(this.program,"u_pixels_per_meter"),b.u_pixels_per_meter),r.uniform2fv(r.getUniformLocation(this.program,"u_viewport_center"),b.u_viewport_center),r.uniform4fv(r.getUniformLocation(this.program,"u_viewport_center_projection"),b.u_viewport_center_projection)}},{key:"onRemove",value:function(r,n){this.isLayerShow=!1}}]),t}();function RasterTileLayer(t,e,r){var n=r||{},o={TianDiTu:{Normal:{Map:"http://t{s}.tianditu.com/DataServer?T=vec_w&X={x}&Y={y}&L={z}&tk={key}",Annotion:"http://t{s}.tianditu.com/DataServer?T=cva_w&X={x}&Y={y}&L={z}&tk={key}",minzoom:0,maxzoom:18},Satellite:{Map:"http://t{s}.tianditu.com/DataServer?T=img_w&X={x}&Y={y}&L={z}&tk={key}",Annotion:"http://t{s}.tianditu.com/DataServer?T=cia_w&X={x}&Y={y}&L={z}&tk={key}",minzoom:0,maxzoom:18},Terrain:{Map:"http://t{s}.tianditu.com/DataServer?T=ter_w&X={x}&Y={y}&L={z}&tk={key}",Annotion:"http://t{s}.tianditu.com/DataServer?T=cta_w&X={x}&Y={y}&L={z}&tk={key}",minzoom:0,maxzoom:14},Subdomains:["0","1","2","3","4","5","6","7"],key:""},GaoDe:{Normal:{Map:"http://webrd0{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}",minzoom:0,maxzoom:18},Normal_NoTag:{Map:"https://wprd0{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&style=7&scl=1&ltype=11&x={x}&y={y}&z={z}",minzoom:3,maxzoom:18},Satellite:{Map:"http://webst0{s}.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}",Annotion:"http://webst0{s}.is.autonavi.com/appmaptile?style=8&x={x}&y={y}&z={z}",minzoom:3,maxzoom:18},Subdomains:["1","2","3","4"]},Baidu:{Normal:{Map:"http://online{s}.map.bdimg.com/onlinelabel/?qt=tile&x={x}&y={y}&z={z}&styles=pl&scaler=1&p=1"},Satellite:{Map:"http://shangetu{s}.map.bdimg.com/it/u=x={x};y={y};z={z};v=009;type=sate&fm=46",Annotion:"http://online{s}.map.bdimg.com/tile/?qt=tile&x={x}&y={y}&z={z}&styles=sl&v=020"},Subdomains:"0123456789",tileType:"bd09"},Geoq:{Normal:{Map:"http://map.geoq.cn/ArcGIS/rest/services/ChinaOnlineCommunity/MapServer/tile/{z}/{y}/{x}",PurplishBlue:"http://map.geoq.cn/ArcGIS/rest/services/ChinaOnlineStreetPurplishBlue/MapServer/tile/{z}/{y}/{x}",Gray:"http://map.geoq.cn/ArcGIS/rest/services/ChinaOnlineStreetGray/MapServer/tile/{z}/{y}/{x}",Warm:"http://map.geoq.cn/ArcGIS/rest/services/ChinaOnlineStreetWarm/MapServer/tile/{z}/{y}/{x}",minzoom:3,maxzoom:16},Subdomains:[]},OSM:{Normal:{Map:"http://{s}.tile.osm.org/{z}/{x}/{y}.png",minzoom:0,maxzoom:18},Subdomains:["a","b","c"]}},s=e.split("."),c=s[0],l=s[1],v=s[2],x=o[c][l][v],w=o[c].Subdomains,_=o[c][l].minzoom,b=o[c][l].maxzoom,E=o[c].tileType,I;if(c==="TianDiTu"||c==="OSM"){var O=n.key||o[c].key,N=[],A=_createForOfIteratorHelper(w),z;try{for(A.s();!(z=A.n()).done;){var G=z.value;N.push(x.replace("{s}",G).replace("{key}",O))}}catch(V){A.e(V)}finally{A.f()}I={id:t,type:"raster",source:{type:"raster",tiles:N,tileSize:256,minzoom:_,maxzoom:b}}}else I=new customTileLayer(t,x,{subdomains:w,minZoom:_,maxZoom:b,tileType:E});return I}var loadLayer=[];function MxMapAddRasterTileLayer(t,e,r){loadLayer.forEach(function(n){t.getLayer(n)&&t.removeLayer(n),t.getSource(n)&&t.removeSource(n)}),loadLayer=[],e.forEach(function(n){loadLayer.push(n[0]);var o=r?{key:r}:null,s=RasterTileLayer(n[0],n[1],o);t.addLayer(s,"mx.layer.fill")})}function MxMapAddGoogleCnLayer(t,e){e.forEach(function(r){r=="Image"?t.addLayer({id:"GoogleImageLayer",type:"raster",source:{type:"raster",tiles:["https://gac-geo.googlecnapps.cn/maps/vt?lyrs=s&x={x}&y={y}&z={z}"],tileSize:256}}):r=="Lable"&&t.addLayer({id:"GoogleImageLableLayer",type:"raster",source:{type:"raster",tiles:["https://gac-geo.googlecnapps.cn/maps/vt?lyrs=s,m&gl=CN&x={x}&y={y}&z={z}"],tileSize:256}})})}var pi=3.141592653589793,a=6378245,ee=.006693421622965943;function transformLat(t,e){var r=-100+2*t+3*e+.2*e*e+.1*t*e+.2*Math.sqrt(Math.abs(t));return r+=(20*Math.sin(6*t*pi)+20*Math.sin(2*t*pi))*2/3,r+=(20*Math.sin(e*pi)+40*Math.sin(e/3*pi))*2/3,r+=(160*Math.sin(e/12*pi)+320*Math.sin(e*pi/30))*2/3,r}function transformLng(t,e){var r=300+t+2*e+.1*t*t+.1*t*e+.1*Math.sqrt(Math.abs(t));return r+=(20*Math.sin(6*t*pi)+20*Math.sin(2*t*pi))*2/3,r+=(20*Math.sin(t*pi)+40*Math.sin(t/3*pi))*2/3,r+=(150*Math.sin(t/12*pi)+300*Math.sin(t/30*pi))*2/3,r}function transform$2(t,e){var r=transformLat(t-105,e-35),n=transformLng(t-105,e-35),o=e/180*pi,s=Math.sin(o);s=1-ee*s*s;var c=Math.sqrt(s);r=r*180/(a*(1-ee)/(s*c)*pi),n=n*180/(a/c*Math.cos(o)*pi);var l=e+r,v=t+n,x={lng:v,lat:l};return x}function mx_gps84_To_gcj02(t,e){if(t instanceof Object){var r=t.lng;e=t.lat,t=r}var n=transformLat(t-105,e-35),o=transformLng(t-105,e-35),s=e/180*pi,c=Math.sin(s);c=1-ee*c*c;var l=Math.sqrt(c);n=n*180/(a*(1-ee)/(c*l)*pi),o=o*180/(a/l*Math.cos(s)*pi);var v=e+n,x=t+o,w={lng:x,lat:v};return w}function mx_gcj02_To_gps84(t,e){if(t instanceof Object){var r=t.lng;e=t.lat,t=r}var n=transform$2(t,e),o=t*2-n.lng,s=e*2-n.lat,c={lng:o,lat:s};return c}const mxcad=Object.freeze(Object.defineProperty({__proto__:null,b64Encode,b64Decode,saveAsFileDialog,downloadFile,downloadFileFromUrl,getJsonFromUrl,getFileFromUrl,_ML_String,IsZero,postMemoryFile,postEmscriptenIndexedDBFile,MxTools,McGePoint3d,McGeVector3d,McGeMatrix3d,McGeLongArray,McGeStringArray,McGePoint3dArray,MdGeDoubleArray,get MxCoordConvert(){return MxCoordConvert},getFilterImp,MxCADResbufDataType,MxCADResbuf,MxCADUtilityClass,MxCADUtility,MxCADSelectionSetStatus,MxCADSelectionSet,MxCADUiPrBase,MxCADUiPrPoint,MxCADUiPrDist,MxCADUiPrAngle,MxCADUiPrInt,MxCADUiPrKeyWord,MxCADUiPrString,MxCADUiPrEntity,McRxObject,McObjectIdType,McObjectId,McDbObject,McDbObjectArray,get McDb(){return McDb},McCmColor,McDbLinetypeTableRecord,McDbTextStyleTableRecord,McDbLayerTableRecord,McDbLayerTable,McDbLinetypeTable,McDbTextStyleTable,McDbDatabase,McDbBlockTableRecord,McDbBlockTable,McDbRasterImageDef,McDbDictionary,McDbXrecord,McDbEntity,McDbCurve,McDbLine,McDbText,McDbAttribute,McDbAttributeDefinition,McDbMText,McDbCircle,McDbPolyline,McDbBlockReference,McDbDimension,McDbAlignedDimension,McDbRotatedDimension,McDbArc,McDbEllipse,McDbPoint,McDbHatch,McDbProxyEntity,McDbRasterImage,FetchAttributes,McObject,McAppType,MxCppType,MxCADPluginMapDefaultData,MxCADPluginBase,MxPropertiesWindowCustomValueType,MxPropertiesWindowCustomValue,MxPropertiesWindowCustom,MxCADCloneType,IMcDbDwgFiler,MxCADWorldDraw,McDbCustomEntity,get MxCpp(){return MxCpp},loadMxCADassembly,MxCheckTheBrowser,createMxCad,ColorMethod:ColorMethod$1,ColorIndexType,getColorUtils,createMcCmColor,setMcCmColor,drawText,drawCircle,drawLine,drawMText,drawPolyLine,drawPolygon,drawArc,drawEllipticalArc,Mx_Erase,drawRectang,MxDraw3d,Mx3dBaseObject,Mx3dShapeObject,Mx3dGeObject,Mx3dDbObject,MdGeShape,MdGeVertex,MdGeEdge,MdGeWire,MdGeFace,MdGeShell,MdGeSolid,MdGeCompSolid,MdGeCompound,MdGeMat,MdGeXYZ,MdGeTrsf,MdGeDir,MdGeAxis,MdGeCSYSR,MdGePoint,MdGeVec,MdGeAngleDim,MdGeArray1OfInteger,MdGeArray1OfPnt,MdGeArray1OfReal,MdGeArray2OfPnt,MdGeArray2OfReal,MdGeBezierCurve,MdGeBezierSurface,MdGeChamfer,MdGeCircle,MdGeCSYS,MdGeCone,MdGeCylinder,MdGePlane,MdGeDiameterDim,MdGeEllipse,get MdGe(){return MdGe},MdGeExplorer,MdGeFillet,MdGeHypr,MdGeBox,MdGeBSplineCurve,MdGeBSplineSurface,MdGeInterpolateBSpl,MdGeLengthDim,MdGeLine,MdGeListIteratorOfListOfShape,MdGeListOfShape,MdGeLoft,MdGeMakeThickSolid,MdGeParab,MdGePipe,MdGePointsToBSpl,MdGePointsToBSplSurface,MdGePrism,MdGeRadiusDim,MdGeRect,MdGeRevol,MdGeSphere,MdGeText,MdGeTextLabel,MdGeTopo,MdGeTorus,MdGeTransform,MdGeWedge,MdGeHGeomSurface,MdGeHGeomPlane,MdGeBRep,MdGeColor,MdGeMaterialAspect,MdGeSequenceOfShape,MdGeSequenceIteratorOfSequenceOfShape,MdGeMakeWires,MdGeMakeFace,MdGeMakeArcOfCircle,MdGeLight,MdGeArrowAspect,MdGeDimAspect,MdGeLineAspect,MdGeTextAspect,MdGeApplication,MdGeDocument,MdGeDocShapeTool,MdGeDocColorTool,MdGeLabel,MdGeLabelSequence,MdGeLocation,MdGeLabelTree,MdGeDocReader,MdGeDocWriter,MdGeAisContext,MdGeAisObject,MdGeAisShape,MdGeBndBox,MdGeAisTexturedShape,MdGeSpliter,Mx3dGeBndBox,Mx3dGeColor,Mx3dDbDocument,Mx3dDbLabel,Mx3dLabelSequence,Mx3dLabelSequenceIterator,Mx3dGeLocation,Mx3dGePoint,loadMxCADassembly3d,MxMap,MxMapAddRasterTileLayer,MxMapAddGoogleCnLayer,mx_gps84_To_gcj02,mx_gcj02_To_gps84},Symbol.toStringTag,{value:"Module"})),mxcad$1=Object.freeze(Object.defineProperty({__proto__:null,ColorIndexType,ColorMethod:ColorMethod$1,FetchAttributes,IMcDbDwgFiler,IsZero,McAppType,McCmColor,get McDb(){return McDb},McDbAlignedDimension,McDbArc,McDbAttribute,McDbAttributeDefinition,McDbBlockReference,McDbBlockTable,McDbBlockTableRecord,McDbCircle,McDbCurve,McDbCustomEntity,McDbDatabase,McDbDictionary,McDbDimension,McDbEllipse,McDbEntity,McDbHatch,McDbLayerTable,McDbLayerTableRecord,McDbLine,McDbLinetypeTable,McDbLinetypeTableRecord,McDbMText,McDbObject,McDbObjectArray,McDbPoint,McDbPolyline,McDbProxyEntity,McDbRasterImage,McDbRasterImageDef,McDbRotatedDimension,McDbText,McDbTextStyleTable,McDbTextStyleTableRecord,McDbXrecord,McGeLongArray,McGeMatrix3d,McGePoint3d,McGePoint3dArray,McGeStringArray,McGeVector3d,McObject,McObjectId,McObjectIdType,McRxObject,get MdGe(){return MdGe},MdGeAisContext,MdGeAisObject,MdGeAisShape,MdGeAisTexturedShape,MdGeAngleDim,MdGeApplication,MdGeArray1OfInteger,MdGeArray1OfPnt,MdGeArray1OfReal,MdGeArray2OfPnt,MdGeArray2OfReal,MdGeArrowAspect,MdGeAxis,MdGeBRep,MdGeBSplineCurve,MdGeBSplineSurface,MdGeBezierCurve,MdGeBezierSurface,MdGeBndBox,MdGeBox,MdGeCSYS,MdGeCSYSR,MdGeChamfer,MdGeCircle,MdGeColor,MdGeCompSolid,MdGeCompound,MdGeCone,MdGeCylinder,MdGeDiameterDim,MdGeDimAspect,MdGeDir,MdGeDocColorTool,MdGeDocReader,MdGeDocShapeTool,MdGeDocWriter,MdGeDocument,MdGeDoubleArray,MdGeEdge,MdGeEllipse,MdGeExplorer,MdGeFace,MdGeFillet,MdGeHGeomPlane,MdGeHGeomSurface,MdGeHypr,MdGeInterpolateBSpl,MdGeLabel,MdGeLabelSequence,MdGeLabelTree,MdGeLengthDim,MdGeLight,MdGeLine,MdGeLineAspect,MdGeListIteratorOfListOfShape,MdGeListOfShape,MdGeLocation,MdGeLoft,MdGeMakeArcOfCircle,MdGeMakeFace,MdGeMakeThickSolid,MdGeMakeWires,MdGeMat,MdGeMaterialAspect,MdGeParab,MdGePipe,MdGePlane,MdGePoint,MdGePointsToBSpl,MdGePointsToBSplSurface,MdGePrism,MdGeRadiusDim,MdGeRect,MdGeRevol,MdGeSequenceIteratorOfSequenceOfShape,MdGeSequenceOfShape,MdGeShape,MdGeShell,MdGeSolid,MdGeSphere,MdGeSpliter,MdGeText,MdGeTextAspect,MdGeTextLabel,MdGeTopo,MdGeTorus,MdGeTransform,MdGeTrsf,MdGeVec,MdGeVertex,MdGeWedge,MdGeWire,MdGeXYZ,Mx3dBaseObject,Mx3dDbDocument,Mx3dDbLabel,Mx3dDbObject,Mx3dGeBndBox,Mx3dGeColor,Mx3dGeLocation,Mx3dGeObject,Mx3dGePoint,Mx3dLabelSequence,Mx3dLabelSequenceIterator,Mx3dShapeObject,MxCADCloneType,MxCADPluginBase,MxCADPluginMapDefaultData,MxCADResbuf,MxCADResbufDataType,MxCADSelectionSet,MxCADSelectionSetStatus,MxCADUiPrAngle,MxCADUiPrBase,MxCADUiPrDist,MxCADUiPrEntity,MxCADUiPrInt,MxCADUiPrKeyWord,MxCADUiPrPoint,MxCADUiPrString,MxCADUtility,MxCADUtilityClass,MxCADWorldDraw,MxCheckTheBrowser,get MxCoordConvert(){return MxCoordConvert},get MxCpp(){return MxCpp},MxCppType,MxDraw3d,MxMap,MxMapAddGoogleCnLayer,MxMapAddRasterTileLayer,MxPropertiesWindowCustom,MxPropertiesWindowCustomValue,MxPropertiesWindowCustomValueType,MxTools,Mx_Erase,_ML_String,b64Decode,b64Encode,createMcCmColor,createMxCad,default:mxcad,downloadFile,downloadFileFromUrl,drawArc,drawCircle,drawEllipticalArc,drawLine,drawMText,drawPolyLine,drawPolygon,drawRectang,drawText,getColorUtils,getFileFromUrl,getFilterImp,getJsonFromUrl,loadMxCADassembly,loadMxCADassembly3d,mx_gcj02_To_gps84,mx_gps84_To_gcj02,postEmscriptenIndexedDBFile,postMemoryFile,saveAsFileDialog,setMcCmColor},Symbol.toStringTag,{value:"Module"})),isElectron=()=>!1,configMap=new Map,getConfig=t=>Gr(void 0,null,function*(){if(configMap.has(t))return configMap.get(t);try{const e=yield(yield fetch(t)).json();return configMap.set(t,e),e}catch(e){console.error("error Config:"+t,e)}});let serverConfig;const fetchServerConfig=()=>Gr(void 0,null,function*(){serverConfig||(serverConfig=yield getConfig(new URL(""+new URL("../mxServerConfig.json",import.meta.url).href,self.location).href))}),getUploadFileConfig=()=>serverConfig==null?void 0:serverConfig.uploadFileConfig,getWasmConfig=()=>serverConfig==null?void 0:serverConfig.wasmConfig,getAiConfig=()=>serverConfig==null?void 0:serverConfig.aiConfig;function getHostUrl$1(){let t=window.location.hostname;return t.substring(0,4)!="http"&&(t=document.location.protocol+"//"+t),t}function getBaseUrl(){let{baseUrl:t=""}=getUploadFileConfig()||{};return t.substring(0,16)=="http://localhost"&&(t=getHostUrl$1()+t.substring(16)),t}function getUrlConfig(){let{baseUrl:t="",saveDwgUrl:e="",mxfilepath:r="",saveUrl:n="",printPdfUrl:o=""}=getUploadFileConfig()||{};return t.substring(0,16)=="http://localhost"&&(t=getHostUrl$1()+t.substring(16)),e.substring(0,16)=="http://localhost"&&(e=getHostUrl$1()+e.substring(16)),n.substring(0,16)=="http://localhost"&&(n=getHostUrl$1()+n.substring(16)),o.substring(0,16)=="http://localhost"&&(o=getHostUrl$1()+o.substring(16)),{baseUrl:t,saveDwgUrl:e,mxfilepath:r,saveUrl:n,printPdfUrl:o}}const getDatabase=()=>MxCpp.getCurrentMxCAD().getDatabase();var colorString$1={exports:{}},colorName={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},simpleSwizzle={exports:{}},isArrayish$1=function t(e){return!e||typeof e=="string"?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String")},isArrayish=isArrayish$1,concat=Array.prototype.concat,slice=Array.prototype.slice,swizzle$1=simpleSwizzle.exports=function t(e){for(var r=[],n=0,o=e.length;n<o;n++){var s=e[n];isArrayish(s)?r=concat.call(r,slice.call(s)):r.push(s)}return r};swizzle$1.wrap=function(t){return function(){return t(swizzle$1(arguments))}};var colorNames=colorName,swizzle=simpleSwizzle.exports,hasOwnProperty$2=Object.hasOwnProperty,reverseNames=Object.create(null);for(var name$1 in colorNames)hasOwnProperty$2.call(colorNames,name$1)&&(reverseNames[colorNames[name$1]]=name$1);var cs=colorString$1.exports={to:{},get:{}};cs.get=function(t){var e=t.substring(0,3).toLowerCase(),r,n;switch(e){case"hsl":r=cs.get.hsl(t),n="hsl";break;case"hwb":r=cs.get.hwb(t),n="hwb";break;default:r=cs.get.rgb(t),n="rgb";break}return r?{model:n,value:r}:null};cs.get.rgb=function(t){if(!t)return null;var e=/^#([a-f0-9]{3,4})$/i,r=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,n=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,o=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,s=/^(\w+)$/,c=[0,0,0,1],l,v,x;if(l=t.match(r)){for(x=l[2],l=l[1],v=0;v<3;v++){var w=v*2;c[v]=parseInt(l.slice(w,w+2),16)}x&&(c[3]=parseInt(x,16)/255)}else if(l=t.match(e)){for(l=l[1],x=l[3],v=0;v<3;v++)c[v]=parseInt(l[v]+l[v],16);x&&(c[3]=parseInt(x+x,16)/255)}else if(l=t.match(n)){for(v=0;v<3;v++)c[v]=parseInt(l[v+1],0);l[4]&&(l[5]?c[3]=parseFloat(l[4])*.01:c[3]=parseFloat(l[4]))}else if(l=t.match(o)){for(v=0;v<3;v++)c[v]=Math.round(parseFloat(l[v+1])*2.55);l[4]&&(l[5]?c[3]=parseFloat(l[4])*.01:c[3]=parseFloat(l[4]))}else return(l=t.match(s))?l[1]==="transparent"?[0,0,0,0]:hasOwnProperty$2.call(colorNames,l[1])?(c=colorNames[l[1]],c[3]=1,c):null:null;for(v=0;v<3;v++)c[v]=clamp$1(c[v],0,255);return c[3]=clamp$1(c[3],0,1),c};cs.get.hsl=function(t){if(!t)return null;var e=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=t.match(e);if(r){var n=parseFloat(r[4]),o=(parseFloat(r[1])%360+360)%360,s=clamp$1(parseFloat(r[2]),0,100),c=clamp$1(parseFloat(r[3]),0,100),l=clamp$1(isNaN(n)?1:n,0,1);return[o,s,c,l]}return null};cs.get.hwb=function(t){if(!t)return null;var e=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,r=t.match(e);if(r){var n=parseFloat(r[4]),o=(parseFloat(r[1])%360+360)%360,s=clamp$1(parseFloat(r[2]),0,100),c=clamp$1(parseFloat(r[3]),0,100),l=clamp$1(isNaN(n)?1:n,0,1);return[o,s,c,l]}return null};cs.to.hex=function(){var t=swizzle(arguments);return"#"+hexDouble(t[0])+hexDouble(t[1])+hexDouble(t[2])+(t[3]<1?hexDouble(Math.round(t[3]*255)):"")};cs.to.rgb=function(){var t=swizzle(arguments);return t.length<4||t[3]===1?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"};cs.to.rgb.percent=function(){var t=swizzle(arguments),e=Math.round(t[0]/255*100),r=Math.round(t[1]/255*100),n=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+e+"%, "+r+"%, "+n+"%)":"rgba("+e+"%, "+r+"%, "+n+"%, "+t[3]+")"};cs.to.hsl=function(){var t=swizzle(arguments);return t.length<4||t[3]===1?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"};cs.to.hwb=function(){var t=swizzle(arguments),e="";return t.length>=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};cs.to.keyword=function(t){return reverseNames[t.slice(0,3)]};function clamp$1(t,e,r){return Math.min(Math.max(e,t),r)}function hexDouble(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}const cssKeywords=colorName,reverseKeywords={};for(const t of Object.keys(cssKeywords))reverseKeywords[cssKeywords[t]]=t;const convert$2={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var conversions$2=convert$2;for(const t of Object.keys(convert$2)){if(!("channels"in convert$2[t]))throw new Error("missing channels property: "+t);if(!("labels"in convert$2[t]))throw new Error("missing channel labels property: "+t);if(convert$2[t].labels.length!==convert$2[t].channels)throw new Error("channel and label counts mismatch: "+t);const{channels:e,labels:r}=convert$2[t];delete convert$2[t].channels,delete convert$2[t].labels,Object.defineProperty(convert$2[t],"channels",{value:e}),Object.defineProperty(convert$2[t],"labels",{value:r})}convert$2.rgb.hsl=function(t){const e=t[0]/255,r=t[1]/255,n=t[2]/255,o=Math.min(e,r,n),s=Math.max(e,r,n),c=s-o;let l,v;s===o?l=0:e===s?l=(r-n)/c:r===s?l=2+(n-e)/c:n===s&&(l=4+(e-r)/c),l=Math.min(l*60,360),l<0&&(l+=360);const x=(o+s)/2;return s===o?v=0:x<=.5?v=c/(s+o):v=c/(2-s-o),[l,v*100,x*100]};convert$2.rgb.hsv=function(t){let e,r,n,o,s;const c=t[0]/255,l=t[1]/255,v=t[2]/255,x=Math.max(c,l,v),w=x-Math.min(c,l,v),_=function(b){return(x-b)/6/w+1/2};return w===0?(o=0,s=0):(s=w/x,e=_(c),r=_(l),n=_(v),c===x?o=n-r:l===x?o=1/3+e-n:v===x&&(o=2/3+r-e),o<0?o+=1:o>1&&(o-=1)),[o*360,s*100,x*100]};convert$2.rgb.hwb=function(t){const e=t[0],r=t[1];let n=t[2];const o=convert$2.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[o,s*100,n*100]};convert$2.rgb.cmyk=function(t){const e=t[0]/255,r=t[1]/255,n=t[2]/255,o=Math.min(1-e,1-r,1-n),s=(1-e-o)/(1-o)||0,c=(1-r-o)/(1-o)||0,l=(1-n-o)/(1-o)||0;return[s*100,c*100,l*100,o*100]};function comparativeDistance(t,e){return Ka(t[0]-e[0],2)+Ka(t[1]-e[1],2)+Ka(t[2]-e[2],2)}convert$2.rgb.keyword=function(t){const e=reverseKeywords[t];if(e)return e;let r=1/0,n;for(const o of Object.keys(cssKeywords)){const s=cssKeywords[o],c=comparativeDistance(t,s);c<r&&(r=c,n=o)}return n};convert$2.keyword.rgb=function(t){return cssKeywords[t]};convert$2.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?Ka((e+.055)/1.055,2.4):e/12.92,r=r>.04045?Ka((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Ka((n+.055)/1.055,2.4):n/12.92;const o=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,c=e*.0193+r*.1192+n*.9505;return[o*100,s*100,c*100]};convert$2.rgb.lab=function(t){const e=convert$2.rgb.xyz(t);let r=e[0],n=e[1],o=e[2];r/=95.047,n/=100,o/=108.883,r=r>.008856?Ka(r,1/3):7.787*r+16/116,n=n>.008856?Ka(n,1/3):7.787*n+16/116,o=o>.008856?Ka(o,1/3):7.787*o+16/116;const s=116*n-16,c=500*(r-n),l=200*(n-o);return[s,c,l]};convert$2.hsl.rgb=function(t){const e=t[0]/360,r=t[1]/100,n=t[2]/100;let o,s,c;if(r===0)return c=n*255,[c,c,c];n<.5?o=n*(1+r):o=n+r-n*r;const l=2*n-o,v=[0,0,0];for(let x=0;x<3;x++)s=e+1/3*-(x-1),s<0&&s++,s>1&&s--,6*s<1?c=l+(o-l)*6*s:2*s<1?c=o:3*s<2?c=l+(o-l)*(2/3-s)*6:c=l,v[x]=c*255;return v};convert$2.hsl.hsv=function(t){const e=t[0];let r=t[1]/100,n=t[2]/100,o=r;const s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,o*=s<=1?s:2-s;const c=(n+r)/2,l=n===0?2*o/(s+o):2*r/(n+r);return[e,l*100,c*100]};convert$2.hsv.rgb=function(t){const e=t[0]/60,r=t[1]/100;let n=t[2]/100;const o=Math.floor(e)%6,s=e-Math.floor(e),c=255*n*(1-r),l=255*n*(1-r*s),v=255*n*(1-r*(1-s));switch(n*=255,o){case 0:return[n,v,c];case 1:return[l,n,c];case 2:return[c,n,v];case 3:return[c,l,n];case 4:return[v,c,n];case 5:return[n,c,l]}};convert$2.hsv.hsl=function(t){const e=t[0],r=t[1]/100,n=t[2]/100,o=Math.max(n,.01);let s,c;c=(2-r)*n;const l=(2-r)*o;return s=r*o,s/=l<=1?l:2-l,s=s||0,c/=2,[e,s*100,c*100]};convert$2.hwb.rgb=function(t){const e=t[0]/360;let r=t[1]/100,n=t[2]/100;const o=r+n;let s;o>1&&(r/=o,n/=o);const c=Math.floor(6*e),l=1-n;s=6*e-c,(c&1)!==0&&(s=1-s);const v=r+s*(l-r);let x,w,_;switch(c){default:case 6:case 0:x=l,w=v,_=r;break;case 1:x=v,w=l,_=r;break;case 2:x=r,w=l,_=v;break;case 3:x=r,w=v,_=l;break;case 4:x=v,w=r,_=l;break;case 5:x=l,w=r,_=v;break}return[x*255,w*255,_*255]};convert$2.cmyk.rgb=function(t){const e=t[0]/100,r=t[1]/100,n=t[2]/100,o=t[3]/100,s=1-Math.min(1,e*(1-o)+o),c=1-Math.min(1,r*(1-o)+o),l=1-Math.min(1,n*(1-o)+o);return[s*255,c*255,l*255]};convert$2.xyz.rgb=function(t){const e=t[0]/100,r=t[1]/100,n=t[2]/100;let o,s,c;return o=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,c=e*.0557+r*-.204+n*1.057,o=o>.0031308?1.055*Ka(o,1/2.4)-.055:o*12.92,s=s>.0031308?1.055*Ka(s,1/2.4)-.055:s*12.92,c=c>.0031308?1.055*Ka(c,1/2.4)-.055:c*12.92,o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),c=Math.min(Math.max(0,c),1),[o*255,s*255,c*255]};convert$2.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>.008856?Ka(e,1/3):7.787*e+16/116,r=r>.008856?Ka(r,1/3):7.787*r+16/116,n=n>.008856?Ka(n,1/3):7.787*n+16/116;const o=116*r-16,s=500*(e-r),c=200*(r-n);return[o,s,c]};convert$2.lab.xyz=function(t){const e=t[0],r=t[1],n=t[2];let o,s,c;s=(e+16)/116,o=r/500+s,c=s-n/200;const l=Ka(s,3),v=Ka(o,3),x=Ka(c,3);return s=l>.008856?l:(s-16/116)/7.787,o=v>.008856?v:(o-16/116)/7.787,c=x>.008856?x:(c-16/116)/7.787,o*=95.047,s*=100,c*=108.883,[o,s,c]};convert$2.lab.lch=function(t){const e=t[0],r=t[1],n=t[2];let o;o=Math.atan2(n,r)*360/2/Math.PI,o<0&&(o+=360);const c=Math.sqrt(r*r+n*n);return[e,c,o]};convert$2.lch.lab=function(t){const e=t[0],r=t[1],o=t[2]/360*2*Math.PI,s=r*Math.cos(o),c=r*Math.sin(o);return[e,s,c]};convert$2.rgb.ansi16=function(t,e=null){const[r,n,o]=t;let s=e===null?convert$2.rgb.hsv(t)[2]:e;if(s=Math.round(s/50),s===0)return 30;let c=30+(Math.round(o/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(c+=60),c};convert$2.hsv.ansi16=function(t){return convert$2.rgb.ansi16(convert$2.hsv.rgb(t),t[2])};convert$2.rgb.ansi256=function(t){const e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};convert$2.ansi16.rgb=function(t){let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];const r=(~~(t>50)+1)*.5,n=(e&1)*r*255,o=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,o,s]};convert$2.ansi256.rgb=function(t){if(t>=232){const s=(t-232)*10+8;return[s,s,s]}t-=16;let e;const r=Math.floor(t/36)/5*255,n=Math.floor((e=t%36)/6)/5*255,o=e%6/5*255;return[r,n,o]};convert$2.rgb.hex=function(t){const r=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};convert$2.hex.rgb=function(t){const e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let r=e[0];e[0].length===3&&(r=r.split("").map(l=>l+l).join(""));const n=parseInt(r,16),o=n>>16&255,s=n>>8&255,c=n&255;return[o,s,c]};convert$2.rgb.hcg=function(t){const e=t[0]/255,r=t[1]/255,n=t[2]/255,o=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),c=o-s;let l,v;return c<1?l=s/(1-c):l=0,c<=0?v=0:o===e?v=(r-n)/c%6:o===r?v=2+(n-e)/c:v=4+(e-r)/c,v/=6,v%=1,[v*360,c*100,l*100]};convert$2.hsl.hcg=function(t){const e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r);let o=0;return n<1&&(o=(r-.5*n)/(1-n)),[t[0],n*100,o*100]};convert$2.hsv.hcg=function(t){const e=t[1]/100,r=t[2]/100,n=e*r;let o=0;return n<1&&(o=(r-n)/(1-n)),[t[0],n*100,o*100]};convert$2.hcg.rgb=function(t){const e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];const o=[0,0,0],s=e%1*6,c=s%1,l=1-c;let v=0;switch(Math.floor(s)){case 0:o[0]=1,o[1]=c,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=c;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=c,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return v=(1-r)*n,[(r*o[0]+v)*255,(r*o[1]+v)*255,(r*o[2]+v)*255]};convert$2.hcg.hsv=function(t){const e=t[1]/100,r=t[2]/100,n=e+r*(1-e);let o=0;return n>0&&(o=e/n),[t[0],o*100,n*100]};convert$2.hcg.hsl=function(t){const e=t[1]/100,n=t[2]/100*(1-e)+.5*e;let o=0;return n>0&&n<.5?o=e/(2*n):n>=.5&&n<1&&(o=e/(2*(1-n))),[t[0],o*100,n*100]};convert$2.hcg.hwb=function(t){const e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};convert$2.hwb.hcg=function(t){const e=t[1]/100,n=1-t[2]/100,o=n-e;let s=0;return o<1&&(s=(n-o)/(1-o)),[t[0],o*100,s*100]};convert$2.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};convert$2.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};convert$2.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};convert$2.gray.hsl=function(t){return[0,0,t[0]]};convert$2.gray.hsv=convert$2.gray.hsl;convert$2.gray.hwb=function(t){return[0,100,t[0]]};convert$2.gray.cmyk=function(t){return[0,0,0,t[0]]};convert$2.gray.lab=function(t){return[t[0],0,0]};convert$2.gray.hex=function(t){const e=Math.round(t[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n};convert$2.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]};const conversions$1=conversions$2;function buildGraph(){const t={},e=Object.keys(conversions$1);for(let r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function deriveBFS(t){const e=buildGraph(),r=[t];for(e[t].distance=0;r.length;){const n=r.pop(),o=Object.keys(conversions$1[n]);for(let s=o.length,c=0;c<s;c++){const l=o[c],v=e[l];v.distance===-1&&(v.distance=e[n].distance+1,v.parent=n,r.unshift(l))}}return e}function link(t,e){return function(r){return e(t(r))}}function wrapConversion(t,e){const r=[e[t].parent,t];let n=conversions$1[e[t].parent][t],o=e[t].parent;for(;e[o].parent;)r.unshift(e[o].parent),n=link(conversions$1[e[o].parent][o],n),o=e[o].parent;return n.conversion=r,n}var route$1=function(t){const e=deriveBFS(t),r={},n=Object.keys(e);for(let o=n.length,s=0;s<o;s++){const c=n[s];e[c].parent!==null&&(r[c]=wrapConversion(c,e))}return r};const conversions=conversions$2,route=route$1,convert$1={},models=Object.keys(conversions);function wrapRaw(t){const e=function(...r){const n=r[0];return n==null?n:(n.length>1&&(r=n),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function wrapRounded(t){const e=function(...r){const n=r[0];if(n==null)return n;n.length>1&&(r=n);const o=t(r);if(typeof o=="object")for(let s=o.length,c=0;c<s;c++)o[c]=Math.round(o[c]);return o};return"conversion"in t&&(e.conversion=t.conversion),e}models.forEach(t=>{convert$1[t]={},Object.defineProperty(convert$1[t],"channels",{value:conversions[t].channels}),Object.defineProperty(convert$1[t],"labels",{value:conversions[t].labels});const e=route(t);Object.keys(e).forEach(n=>{const o=e[n];convert$1[t][n]=wrapRounded(o),convert$1[t][n].raw=wrapRaw(o)})});var colorConvert=convert$1;const colorString=colorString$1.exports,convert=colorConvert,skippedModels=["keyword","gray","hex"],hashedModelKeys={};for(const t of Object.keys(convert))hashedModelKeys[[...convert[t].labels].sort().join("")]=t;const limiters={};function Color(t,e){if(!(this instanceof Color))return new Color(t,e);if(e&&e in skippedModels&&(e=null),e&&!(e in convert))throw new Error("Unknown model: "+e);let r,n;if(t==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof Color)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if(typeof t=="string"){const o=colorString.get(t);if(o===null)throw new Error("Unable to parse color from string: "+t);this.model=o.model,n=convert[this.model].channels,this.color=o.value.slice(0,n),this.valpha=typeof o.value[n]=="number"?o.value[n]:1}else if(t.length>0){this.model=e||"rgb",n=convert[this.model].channels;const o=Array.prototype.slice.call(t,0,n);this.color=zeroArray(o,n),this.valpha=typeof t[n]=="number"?t[n]:1}else if(typeof t=="number")this.model="rgb",this.color=[t>>16&255,t>>8&255,t&255],this.valpha=1;else{this.valpha=1;const o=Object.keys(t);"alpha"in t&&(o.splice(o.indexOf("alpha"),1),this.valpha=typeof t.alpha=="number"?t.alpha:0);const s=o.sort().join("");if(!(s in hashedModelKeys))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=hashedModelKeys[s];const{labels:c}=convert[this.model],l=[];for(r=0;r<c.length;r++)l.push(t[c[r]]);this.color=zeroArray(l)}if(limiters[this.model])for(n=convert[this.model].channels,r=0;r<n;r++){const o=limiters[this.model][r];o&&(this.color[r]=o(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}Color.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(t){let e=this.model in colorString.to?this:this.rgb();e=e.round(typeof t=="number"?t:1);const r=e.valpha===1?e.color:[...e.color,this.valpha];return colorString.to[e.model](r)},percentString(t){const e=this.rgb().round(typeof t=="number"?t:1),r=e.valpha===1?e.color:[...e.color,this.valpha];return colorString.to.rgb.percent(r)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const t={},{channels:e}=convert[this.model],{labels:r}=convert[this.model];for(let n=0;n<e;n++)t[r[n]]=this.color[n];return this.valpha!==1&&(t.alpha=this.valpha),t},unitArray(){const t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,this.valpha!==1&&t.push(this.valpha),t},unitObject(){const t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,this.valpha!==1&&(t.alpha=this.valpha),t},round(t){return t=Math.max(t||0,0),new Color([...this.color.map(roundToPlace(t)),this.valpha],this.model)},alpha(t){return t!==void 0?new Color([...this.color,Math.max(0,Math.min(1,t))],this.model):this.valpha},red:getset("rgb",0,maxfn(255)),green:getset("rgb",1,maxfn(255)),blue:getset("rgb",2,maxfn(255)),hue:getset(["hsl","hsv","hsl","hwb","hcg"],0,t=>(t%360+360)%360),saturationl:getset("hsl",1,maxfn(100)),lightness:getset("hsl",2,maxfn(100)),saturationv:getset("hsv",1,maxfn(100)),value:getset("hsv",2,maxfn(100)),chroma:getset("hcg",1,maxfn(100)),gray:getset("hcg",2,maxfn(100)),white:getset("hwb",1,maxfn(100)),wblack:getset("hwb",2,maxfn(100)),cyan:getset("cmyk",0,maxfn(100)),magenta:getset("cmyk",1,maxfn(100)),yellow:getset("cmyk",2,maxfn(100)),black:getset("cmyk",3,maxfn(100)),x:getset("xyz",0,maxfn(95.047)),y:getset("xyz",1,maxfn(100)),z:getset("xyz",2,maxfn(108.833)),l:getset("lab",0,maxfn(100)),a:getset("lab",1),b:getset("lab",2),keyword(t){return t!==void 0?new Color(t):convert[this.model].keyword(this.color)},hex(t){return t!==void 0?new Color(t):colorString.to.hex(this.rgb().round().color)},hexa(t){if(t!==void 0)return new Color(t);const e=this.rgb().round().color;let r=Math.round(this.valpha*255).toString(16).toUpperCase();return r.length===1&&(r="0"+r),colorString.to.hex(e)+r},rgbNumber(){const t=this.rgb().color;return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255},luminosity(){const t=this.rgb().color,e=[];for(const[r,n]of t.entries()){const o=n/255;e[r]=o<=.04045?o/12.92:Ka((o+.055)/1.055,2.4)}return .2126*e[0]+.7152*e[1]+.0722*e[2]},contrast(t){const e=this.luminosity(),r=t.luminosity();return e>r?(e+.05)/(r+.05):(r+.05)/(e+.05)},level(t){const e=this.contrast(t);return e>=7?"AAA":e>=4.5?"AA":""},isDark(){const t=this.rgb().color;return(t[0]*2126+t[1]*7152+t[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const t=this.rgb();for(let e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten(t){const e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken(t){const e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate(t){const e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate(t){const e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten(t){const e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken(t){const e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale(){const t=this.rgb().color,e=t[0]*.3+t[1]*.59+t[2]*.11;return Color.rgb(e,e,e)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){const e=this.hsl();let r=e.color[0];return r=(r+t)%360,r=r<0?360+r:r,e.color[0]=r,e},mix(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);const r=t.rgb(),n=this.rgb(),o=e===void 0?.5:e,s=2*o-1,c=r.alpha()-n.alpha(),l=((s*c===-1?s:(s+c)/(1+s*c))+1)/2,v=1-l;return Color.rgb(l*r.red()+v*n.red(),l*r.green()+v*n.green(),l*r.blue()+v*n.blue(),r.alpha()*o+n.alpha()*(1-o))}};for(const t of Object.keys(convert)){if(skippedModels.includes(t))continue;const{channels:e}=convert[t];Color.prototype[t]=function(...r){return this.model===t?new Color(this):r.length>0?new Color(r,t):new Color([...assertArray(convert[this.model][t].raw(this.color)),this.valpha],t)},Color[t]=function(...r){let n=r[0];return typeof n=="number"&&(n=zeroArray(r,e)),new Color(n,t)}}function roundTo(t,e){return Number(t.toFixed(e))}function roundToPlace(t){return function(e){return roundTo(e,t)}}function getset(t,e,r){t=Array.isArray(t)?t:[t];for(const n of t)(limiters[n]||(limiters[n]=[]))[e]=r;return t=t[0],function(n){let o;return n!==void 0?(r&&(n=r(n)),o=this[t](),o.color[e]=n,o):(o=this[t]().color[e],r&&(o=r(o)),o)}}function maxfn(t){return function(e){return Math.max(0,Math.min(t,e))}}function assertArray(t){return Array.isArray(t)?t:[t]}function zeroArray(t,e){for(let r=0;r<e;r++)typeof t[r]!="number"&&(t[r]=0);return t}var color$1=Color;const Color$1=color$1;new Color$1;var ColorMethod=(t=>(t[t.kByLayer=1]="kByLayer",t[t.kByBlock=2]="kByBlock",t[t.kByColor=3]="kByColor",t[t.kByACI=4]="kByACI",t[t.kByPen=5]="kByPen",t[t.kForeground=6]="kForeground",t[t.kLayerOff=7]="kLayerOff",t[t.kLayerFrozen=8]="kLayerFrozen",t[t.kNone=9]="kNone",t))(ColorMethod||{}),ColorNameType=(t=>(t[t.\u968F\u5757=0]="\u968F\u5757",t[t.\u7EA2\u8272=1]="\u7EA2\u8272",t[t.\u9EC4\u8272=2]="\u9EC4\u8272",t[t.\u7EFF\u8272=3]="\u7EFF\u8272",t[t.\u9752\u8272=4]="\u9752\u8272",t[t.\u84DD\u8272=5]="\u84DD\u8272",t[t.\u6D0B\u7EA2\u8272=6]="\u6D0B\u7EA2\u8272",t[t.\u767D\u8272=7]="\u767D\u8272",t[t.\u968F\u5C42=256]="\u968F\u5C42",t))(ColorNameType||{});const getColorName=t=>{if(t===-1)return;const e=ColorNameType[t];return e||t.toString()},createMxColor=t=>{const e=new McCmColor;if(t){const{red:r,green:n,blue:o,method:s}=t;e.setRGB(r,n,o),e.method=s;let c=indexOfMxColor(r,n,o,!1);c!=-1&&(e.colorIndex=c,e.method=4)}return e},toRGB=t=>Math.abs(t),reverseRGB=t=>t===0?255:t,toRGBCss=(t,e=!1)=>{let{red:r,green:n,blue:o,method:s,colorIndex:c}=t;return`rgb(${toRGB(r)}, ${toRGB(n)}, ${toRGB(o)})`},indexOfMxColor=(...t)=>{const[e,r,n,o=!1]=t;return MxCpp.App.mcedRGB2Index(e,r,n,o)},countColorInfo=(t,e)=>{const r=Color$1(t),n=r.red(),o=r.green(),s=r.blue(),c=indexOfMxColor(n,o,s);return c===7&&(t=`rgb(${reverseRGB(n)}, ${reverseRGB(o)}, ${reverseRGB(s)})`),{name:e===4?getColorName(c)||t:`rgb(${n},${o},${s})`,index:c,color:t,method:e}},getLayerTable=()=>{var t;return(t=getDatabase())==null?void 0:t.getLayerTable()},getLayerJson=()=>{let t=getLayerTable();return t==null?void 0:t.getJson()},setLayerJson=t=>{let r=getLayerTable().setJson(t);return MxCpp.getCurrentMxCAD().updateLayerDisplayStatus(),MxCpp.getCurrentMxCAD().updateDisplay(),r};let commands=[];const items=new Set([]);let _comboboxItems=[];const comboboxItems=ref([]),registerCmdRecord=()=>{_comboboxItems=comboboxItems.value=Array.from(items)},addCmdRecord=(t,e=!1)=>{items.add(t),e&&registerCmdRecord()},registerCommand=()=>{for(;commands.length!==0;){const t=commands.pop();if(t){const{cmd:e,fun:r}=t;MxFun.addCommand(e,r),addCmdRecord(e)}}registerCmdRecord()},addCommand=(t,e)=>{store.state.MxFun!==null?(MxFun.addCommand(t,e),addCmdRecord(t,!0)):commands.push({cmd:t,fun:e})},callCommand=(t,e)=>MxFun.sendStringToExecute(t,e),version$2="1.0.0",getVersion=()=>version$2,getLargeVersion=()=>{let t=getVersion();const e=t.lastIndexOf(".");return t=t.substring(0,e),t};let uiConfig;const fetchUiConfig=()=>Gr(void 0,null,function*(){uiConfig=yield getConfig(new URL(""+new URL("../mxUiConfig.json",import.meta.url).href,self.location).href),uiConfig.title&&(document.title=uiConfig.title);const t=/<version>/g;return uiConfig.headerTitle&&(uiConfig.headerTitle=uiConfig.headerTitle.replace(t,getLargeVersion())),uiConfig}),fetchQuickCommand=()=>getConfig(new URL(""+new URL("../mxQuickCommand.json",import.meta.url).href,self.location).href);var __assign=function(){return __assign=Object.assign||function(e){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},__assign.apply(this,arguments)};function __awaiter(t,e,r,n){function o(s){return s instanceof r?s:new r(function(c){c(s)})}return new(r||(r=Promise))(function(s,c){function l(w){try{x(n.next(w))}catch(_){c(_)}}function v(w){try{x(n.throw(w))}catch(_){c(_)}}function x(w){w.done?s(w.value):o(w.value).then(l,v)}x((n=n.apply(t,e||[])).next())})}function __generator(t,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,o,s,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(x){return function(w){return v([x,w])}}function v(x){if(n)throw new TypeError("Generator is already executing.");for(;c&&(c=0,x[0]&&(r=0)),r;)try{if(n=1,o&&(s=x[0]&2?o.return:x[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,x[1])).done)return s;switch(o=0,s&&(x=[x[0]&2,s.value]),x[0]){case 0:case 1:s=x;break;case 4:return r.label++,{value:x[1],done:!1};case 5:r.label++,o=x[1],x=[0];continue;case 7:x=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(x[0]===6||x[0]===2)){r=0;continue}if(x[0]===3&&(!s||x[1]>s[0]&&x[1]<s[3])){r.label=x[1];break}if(x[0]===6&&r.label<s[1]){r.label=s[1],s=x;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(x);break}s[2]&&r.ops.pop(),r.trys.pop();continue}x=e.call(t,r)}catch(w){x=[6,w],o=0}finally{n=s=0}if(x[0]&5)throw x[1];return{value:x[0]?x[1]:void 0,done:!0}}}function __spreadArray(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,s;n<o;n++)(s||!(n in e))&&(s||(s=Array.prototype.slice.call(e,0,n)),s[n]=e[n]);return t.concat(s||Array.prototype.slice.call(e))}typeof SuppressedError=="function"&&SuppressedError;var version$1="3.4.2";function wait(t,e){return new Promise(function(r){return setTimeout(r,t,e)})}function requestIdleCallbackIfAvailable(t,e){e===void 0&&(e=1/0);var r=window.requestIdleCallback;return r?new Promise(function(n){return r.call(window,function(){return n()},{timeout:e})}):wait(Math.min(t,e))}function isPromise(t){return!!t&&typeof t.then=="function"}function awaitIfAsync(t,e){try{var r=t();isPromise(r)?r.then(function(n){return e(!0,n)},function(n){return e(!1,n)}):e(!0,r)}catch(n){e(!1,n)}}function mapWithBreaks(t,e,r){return r===void 0&&(r=16),__awaiter(this,void 0,void 0,function(){var n,o,s,c;return __generator(this,function(l){switch(l.label){case 0:n=Array(t.length),o=Date.now(),s=0,l.label=1;case 1:return s<t.length?(n[s]=e(t[s],s),c=Date.now(),c>=o+r?(o=c,[4,wait(0)]):[3,3]):[3,4];case 2:l.sent(),l.label=3;case 3:return++s,[3,1];case 4:return[2,n]}})})}function suppressUnhandledRejectionWarning(t){t.then(void 0,function(){})}function x64Add(t,e){t=[t[0]>>>16,t[0]&65535,t[1]>>>16,t[1]&65535],e=[e[0]>>>16,e[0]&65535,e[1]>>>16,e[1]&65535];var r=[0,0,0,0];return r[3]+=t[3]+e[3],r[2]+=r[3]>>>16,r[3]&=65535,r[2]+=t[2]+e[2],r[1]+=r[2]>>>16,r[2]&=65535,r[1]+=t[1]+e[1],r[0]+=r[1]>>>16,r[1]&=65535,r[0]+=t[0]+e[0],r[0]&=65535,[r[0]<<16|r[1],r[2]<<16|r[3]]}function x64Multiply(t,e){t=[t[0]>>>16,t[0]&65535,t[1]>>>16,t[1]&65535],e=[e[0]>>>16,e[0]&65535,e[1]>>>16,e[1]&65535];var r=[0,0,0,0];return r[3]+=t[3]*e[3],r[2]+=r[3]>>>16,r[3]&=65535,r[2]+=t[2]*e[3],r[1]+=r[2]>>>16,r[2]&=65535,r[2]+=t[3]*e[2],r[1]+=r[2]>>>16,r[2]&=65535,r[1]+=t[1]*e[3],r[0]+=r[1]>>>16,r[1]&=65535,r[1]+=t[2]*e[2],r[0]+=r[1]>>>16,r[1]&=65535,r[1]+=t[3]*e[1],r[0]+=r[1]>>>16,r[1]&=65535,r[0]+=t[0]*e[3]+t[1]*e[2]+t[2]*e[1]+t[3]*e[0],r[0]&=65535,[r[0]<<16|r[1],r[2]<<16|r[3]]}function x64Rotl(t,e){return e%=64,e===32?[t[1],t[0]]:e<32?[t[0]<<e|t[1]>>>32-e,t[1]<<e|t[0]>>>32-e]:(e-=32,[t[1]<<e|t[0]>>>32-e,t[0]<<e|t[1]>>>32-e])}function x64LeftShift(t,e){return e%=64,e===0?t:e<32?[t[0]<<e|t[1]>>>32-e,t[1]<<e]:[t[1]<<e-32,0]}function x64Xor(t,e){return[t[0]^e[0],t[1]^e[1]]}function x64Fmix(t){return t=x64Xor(t,[0,t[0]>>>1]),t=x64Multiply(t,[4283543511,3981806797]),t=x64Xor(t,[0,t[0]>>>1]),t=x64Multiply(t,[3301882366,444984403]),t=x64Xor(t,[0,t[0]>>>1]),t}function x64hash128(t,e){t=t||"",e=e||0;var r=t.length%16,n=t.length-r,o=[0,e],s=[0,e],c=[0,0],l=[0,0],v=[2277735313,289559509],x=[1291169091,658871167],w;for(w=0;w<n;w=w+16)c=[t.charCodeAt(w+4)&255|(t.charCodeAt(w+5)&255)<<8|(t.charCodeAt(w+6)&255)<<16|(t.charCodeAt(w+7)&255)<<24,t.charCodeAt(w)&255|(t.charCodeAt(w+1)&255)<<8|(t.charCodeAt(w+2)&255)<<16|(t.charCodeAt(w+3)&255)<<24],l=[t.charCodeAt(w+12)&255|(t.charCodeAt(w+13)&255)<<8|(t.charCodeAt(w+14)&255)<<16|(t.charCodeAt(w+15)&255)<<24,t.charCodeAt(w+8)&255|(t.charCodeAt(w+9)&255)<<8|(t.charCodeAt(w+10)&255)<<16|(t.charCodeAt(w+11)&255)<<24],c=x64Multiply(c,v),c=x64Rotl(c,31),c=x64Multiply(c,x),o=x64Xor(o,c),o=x64Rotl(o,27),o=x64Add(o,s),o=x64Add(x64Multiply(o,[0,5]),[0,1390208809]),l=x64Multiply(l,x),l=x64Rotl(l,33),l=x64Multiply(l,v),s=x64Xor(s,l),s=x64Rotl(s,31),s=x64Add(s,o),s=x64Add(x64Multiply(s,[0,5]),[0,944331445]);switch(c=[0,0],l=[0,0],r){case 15:l=x64Xor(l,x64LeftShift([0,t.charCodeAt(w+14)],48));case 14:l=x64Xor(l,x64LeftShift([0,t.charCodeAt(w+13)],40));case 13:l=x64Xor(l,x64LeftShift([0,t.charCodeAt(w+12)],32));case 12:l=x64Xor(l,x64LeftShift([0,t.charCodeAt(w+11)],24));case 11:l=x64Xor(l,x64LeftShift([0,t.charCodeAt(w+10)],16));case 10:l=x64Xor(l,x64LeftShift([0,t.charCodeAt(w+9)],8));case 9:l=x64Xor(l,[0,t.charCodeAt(w+8)]),l=x64Multiply(l,x),l=x64Rotl(l,33),l=x64Multiply(l,v),s=x64Xor(s,l);case 8:c=x64Xor(c,x64LeftShift([0,t.charCodeAt(w+7)],56));case 7:c=x64Xor(c,x64LeftShift([0,t.charCodeAt(w+6)],48));case 6:c=x64Xor(c,x64LeftShift([0,t.charCodeAt(w+5)],40));case 5:c=x64Xor(c,x64LeftShift([0,t.charCodeAt(w+4)],32));case 4:c=x64Xor(c,x64LeftShift([0,t.charCodeAt(w+3)],24));case 3:c=x64Xor(c,x64LeftShift([0,t.charCodeAt(w+2)],16));case 2:c=x64Xor(c,x64LeftShift([0,t.charCodeAt(w+1)],8));case 1:c=x64Xor(c,[0,t.charCodeAt(w)]),c=x64Multiply(c,v),c=x64Rotl(c,31),c=x64Multiply(c,x),o=x64Xor(o,c)}return o=x64Xor(o,[0,t.length]),s=x64Xor(s,[0,t.length]),o=x64Add(o,s),s=x64Add(s,o),o=x64Fmix(o),s=x64Fmix(s),o=x64Add(o,s),s=x64Add(s,o),("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function errorToObject(t){var e;return __assign({name:t.name,message:t.message,stack:(e=t.stack)===null||e===void 0?void 0:e.split(`
  3447. `)},t)}function includes$1(t,e){for(var r=0,n=t.length;r<n;++r)if(t[r]===e)return!0;return!1}function excludes(t,e){return!includes$1(t,e)}function toInt(t){return parseInt(t)}function toFloat(t){return parseFloat(t)}function replaceNaN(t,e){return typeof t=="number"&&isNaN(t)?e:t}function countTruthy(t){return t.reduce(function(e,r){return e+(r?1:0)},0)}function round(t,e){if(e===void 0&&(e=1),Math.abs(e)>=1)return Math.round(t/e)*e;var r=1/e;return Math.round(t*r)/r}function parseSimpleCssSelector(t){for(var e,r,n="Unexpected syntax '".concat(t,"'"),o=/^\s*([a-z-]*)(.*)$/i.exec(t),s=o[1]||void 0,c={},l=/([.:#][\w-]+|\[.+?\])/gi,v=function(b,E){c[b]=c[b]||[],c[b].push(E)};;){var x=l.exec(o[2]);if(!x)break;var w=x[0];switch(w[0]){case".":v("class",w.slice(1));break;case"#":v("id",w.slice(1));break;case"[":{var _=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(w);if(_)v(_[1],(r=(e=_[4])!==null&&e!==void 0?e:_[5])!==null&&r!==void 0?r:"");else throw new Error(n);break}default:throw new Error(n)}}return[s,c]}function ensureErrorWithMessage(t){return t&&typeof t=="object"&&"message"in t?t:{message:t}}function isFinalResultLoaded(t){return typeof t!="function"}function loadSource(t,e){var r=new Promise(function(n){var o=Date.now();awaitIfAsync(t.bind(null,e),function(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];var l=Date.now()-o;if(!s[0])return n(function(){return{error:ensureErrorWithMessage(s[1]),duration:l}});var v=s[1];if(isFinalResultLoaded(v))return n(function(){return{value:v,duration:l}});n(function(){return new Promise(function(x){var w=Date.now();awaitIfAsync(v,function(){for(var _=[],b=0;b<arguments.length;b++)_[b]=arguments[b];var E=l+Date.now()-w;if(!_[0])return x({error:ensureErrorWithMessage(_[1]),duration:E});x({value:_[1],duration:E})})})})})});return suppressUnhandledRejectionWarning(r),function(){return r.then(function(o){return o()})}}function loadSources(t,e,r){var n=Object.keys(t).filter(function(s){return excludes(r,s)}),o=mapWithBreaks(n,function(s){return loadSource(t[s],e)});return suppressUnhandledRejectionWarning(o),function(){return __awaiter(this,void 0,void 0,function(){var c,l,v,x,w;return __generator(this,function(_){switch(_.label){case 0:return[4,o];case 1:return c=_.sent(),[4,mapWithBreaks(c,function(b){var E=b();return suppressUnhandledRejectionWarning(E),E})];case 2:return l=_.sent(),[4,Promise.all(l)];case 3:for(v=_.sent(),x={},w=0;w<n.length;++w)x[n[w]]=v[w];return[2,x]}})})}}function isTrident(){var t=window,e=navigator;return countTruthy(["MSCSSMatrix"in t,"msSetImmediate"in t,"msIndexedDB"in t,"msMaxTouchPoints"in e,"msPointerEnabled"in e])>=4}function isEdgeHTML(){var t=window,e=navigator;return countTruthy(["msWriteProfilerMark"in t,"MSStream"in t,"msLaunchUri"in e,"msSaveBlob"in e])>=3&&!isTrident()}function isChromium(){var t=window,e=navigator;return countTruthy(["webkitPersistentStorage"in e,"webkitTemporaryStorage"in e,e.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in t,"BatteryManager"in t,"webkitMediaStream"in t,"webkitSpeechGrammar"in t])>=5}function isWebKit(){var t=window,e=navigator;return countTruthy(["ApplePayError"in t,"CSSPrimitiveValue"in t,"Counter"in t,e.vendor.indexOf("Apple")===0,"getStorageUpdates"in e,"WebKitMediaKeys"in t])>=4}function isDesktopSafari(){var t=window;return countTruthy(["safari"in t,!("DeviceMotionEvent"in t),!("ongestureend"in t),!("standalone"in navigator)])>=3}function isGecko(){var t,e,r=window;return countTruthy(["buildID"in navigator,"MozAppearance"in((e=(t=document.documentElement)===null||t===void 0?void 0:t.style)!==null&&e!==void 0?e:{}),"onmozfullscreenchange"in r,"mozInnerScreenX"in r,"CSSMozDocumentRule"in r,"CanvasCaptureMediaStream"in r])>=4}function isChromium86OrNewer(){var t=window;return countTruthy([!("MediaSettingsRange"in t),"RTCEncodedAudioFrame"in t,""+t.Intl=="[object Intl]",""+t.Reflect=="[object Reflect]"])>=3}function isWebKit606OrNewer(){var t=window;return countTruthy(["DOMRectList"in t,"RTCPeerConnectionIceEvent"in t,"SVGGeometryElement"in t,"ontransitioncancel"in t])>=3}function isIPad(){if(navigator.platform==="iPad")return!0;var t=screen,e=t.width/t.height;return countTruthy(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,e>.65&&e<1.53])>=2}function getFullscreenElement(){var t=document;return t.fullscreenElement||t.msFullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||null}function exitFullscreen(){var t=document;return(t.exitFullscreen||t.msExitFullscreen||t.mozCancelFullScreen||t.webkitExitFullscreen).call(t)}function isAndroid(){var t=isChromium(),e=isGecko();if(!t&&!e)return!1;var r=window;return countTruthy(["onorientationchange"in r,"orientation"in r,t&&!("SharedWorker"in r),e&&/android/i.test(navigator.appVersion)])>=2}function getAudioFingerprint(){var t=window,e=t.OfflineAudioContext||t.webkitOfflineAudioContext;if(!e)return-2;if(doesCurrentBrowserSuspendAudioContext())return-1;var r=4500,n=5e3,o=new e(1,n,44100),s=o.createOscillator();s.type="triangle",s.frequency.value=1e4;var c=o.createDynamicsCompressor();c.threshold.value=-50,c.knee.value=40,c.ratio.value=12,c.attack.value=0,c.release.value=.25,s.connect(c),c.connect(o.destination),s.start(0);var l=startRenderingAudio(o),v=l[0],x=l[1],w=v.then(function(_){return getHash(_.getChannelData(0).subarray(r))},function(_){if(_.name==="timeout"||_.name==="suspended")return-3;throw _});return suppressUnhandledRejectionWarning(w),function(){return x(),w}}function doesCurrentBrowserSuspendAudioContext(){return isWebKit()&&!isDesktopSafari()&&!isWebKit606OrNewer()}function startRenderingAudio(t){var e=3,r=500,n=500,o=5e3,s=function(){},c=new Promise(function(l,v){var x=!1,w=0,_=0;t.oncomplete=function(I){return l(I.renderedBuffer)};var b=function(){setTimeout(function(){return v(makeInnerError("timeout"))},Math.min(n,_+o-Date.now()))},E=function(){try{var I=t.startRendering();switch(isPromise(I)&&suppressUnhandledRejectionWarning(I),t.state){case"running":_=Date.now(),x&&b();break;case"suspended":document.hidden||w++,x&&w>=e?v(makeInnerError("suspended")):setTimeout(E,r);break}}catch(O){v(O)}};E(),s=function(){x||(x=!0,_>0&&b())}});return[c,s]}function getHash(t){for(var e=0,r=0;r<t.length;++r)e+=Math.abs(t[r]);return e}function makeInnerError(t){var e=new Error(t);return e.name=t,e}function withIframe(t,e,r){var n,o,s;return r===void 0&&(r=50),__awaiter(this,void 0,void 0,function(){var c,l;return __generator(this,function(v){switch(v.label){case 0:c=document,v.label=1;case 1:return c.body?[3,3]:[4,wait(r)];case 2:return v.sent(),[3,1];case 3:l=c.createElement("iframe"),v.label=4;case 4:return v.trys.push([4,,10,11]),[4,new Promise(function(x,w){var _=!1,b=function(){_=!0,x()},E=function(N){_=!0,w(N)};l.onload=b,l.onerror=E;var I=l.style;I.setProperty("display","block","important"),I.position="absolute",I.top="0",I.left="0",I.visibility="hidden",e&&"srcdoc"in l?l.srcdoc=e:l.src="about:blank",c.body.appendChild(l);var O=function(){var N,A;_||(((A=(N=l.contentWindow)===null||N===void 0?void 0:N.document)===null||A===void 0?void 0:A.readyState)==="complete"?b():setTimeout(O,10))};O()})];case 5:v.sent(),v.label=6;case 6:return!((o=(n=l.contentWindow)===null||n===void 0?void 0:n.document)===null||o===void 0)&&o.body?[3,8]:[4,wait(r)];case 7:return v.sent(),[3,6];case 8:return[4,t(l,l.contentWindow)];case 9:return[2,v.sent()];case 10:return(s=l.parentNode)===null||s===void 0||s.removeChild(l),[7];case 11:return[2]}})})}function selectorToElement(t){for(var e=parseSimpleCssSelector(t),r=e[0],n=e[1],o=document.createElement(r!=null?r:"div"),s=0,c=Object.keys(n);s<c.length;s++){var l=c[s],v=n[l].join(" ");l==="style"?addStyleString(o.style,v):o.setAttribute(l,v)}return o}function addStyleString(t,e){for(var r=0,n=e.split(";");r<n.length;r++){var o=n[r],s=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(o);if(s){var c=s[1],l=s[2],v=s[4];t.setProperty(c,l,v||"")}}}var testString="mmMwWLliI0O&1",textSize="48px",baseFonts=["monospace","sans-serif","serif"],fontList=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function getFonts(){return withIframe(function(t,e){var r=e.document,n=r.body;n.style.fontSize=textSize;var o=r.createElement("div"),s={},c={},l=function(O){var N=r.createElement("span"),A=N.style;return A.position="absolute",A.top="0",A.left="0",A.fontFamily=O,N.textContent=testString,o.appendChild(N),N},v=function(O,N){return l("'".concat(O,"',").concat(N))},x=function(){return baseFonts.map(l)},w=function(){for(var O={},N=function(V){O[V]=baseFonts.map(function(ne){return v(V,ne)})},A=0,z=fontList;A<z.length;A++){var G=z[A];N(G)}return O},_=function(O){return baseFonts.some(function(N,A){return O[A].offsetWidth!==s[N]||O[A].offsetHeight!==c[N]})},b=x(),E=w();n.appendChild(o);for(var I=0;I<baseFonts.length;I++)s[baseFonts[I]]=b[I].offsetWidth,c[baseFonts[I]]=b[I].offsetHeight;return fontList.filter(function(O){return _(E[O])})})}function getPlugins(){var t=navigator.plugins;if(!!t){for(var e=[],r=0;r<t.length;++r){var n=t[r];if(!!n){for(var o=[],s=0;s<n.length;++s){var c=n[s];o.push({type:c.type,suffixes:c.suffixes})}e.push({name:n.name,description:n.description,mimeTypes:o})}}return e}}function getCanvasFingerprint(){var t=!1,e,r,n=makeCanvasContext(),o=n[0],s=n[1];if(!isSupported(o,s))e=r="";else{t=doesSupportWinding(s),renderTextImage(o,s);var c=canvasToString(o),l=canvasToString(o);c!==l?e=r="unstable":(r=c,renderGeometryImage(o,s),e=canvasToString(o))}return{winding:t,geometry:e,text:r}}function makeCanvasContext(){var t=document.createElement("canvas");return t.width=1,t.height=1,[t,t.getContext("2d")]}function isSupported(t,e){return!!(e&&t.toDataURL)}function doesSupportWinding(t){return t.rect(0,0,10,10),t.rect(2,2,6,6),!t.isPointInPath(5,5,"evenodd")}function renderTextImage(t,e){t.width=240,t.height=60,e.textBaseline="alphabetic",e.fillStyle="#f60",e.fillRect(100,1,62,20),e.fillStyle="#069",e.font='11pt "Times New Roman"';var r="Cwm fjordbank gly ".concat(String.fromCharCode(55357,56835));e.fillText(r,2,15),e.fillStyle="rgba(102, 204, 0, 0.2)",e.font="18pt Arial",e.fillText(r,4,45)}function renderGeometryImage(t,e){t.width=122,t.height=110,e.globalCompositeOperation="multiply";for(var r=0,n=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];r<n.length;r++){var o=n[r],s=o[0],c=o[1],l=o[2];e.fillStyle=s,e.beginPath(),e.arc(c,l,40,0,Math.PI*2,!0),e.closePath(),e.fill()}e.fillStyle="#f9c",e.arc(60,60,60,0,Math.PI*2,!0),e.arc(60,60,20,0,Math.PI*2,!0),e.fill("evenodd")}function canvasToString(t){return t.toDataURL()}function getTouchSupport(){var t=navigator,e=0,r;t.maxTouchPoints!==void 0?e=toInt(t.maxTouchPoints):t.msMaxTouchPoints!==void 0&&(e=t.msMaxTouchPoints);try{document.createEvent("TouchEvent"),r=!0}catch(o){r=!1}var n="ontouchstart"in window;return{maxTouchPoints:e,touchEvent:r,touchStart:n}}function getOsCpu(){return navigator.oscpu}function getLanguages(){var t=navigator,e=[],r=t.language||t.userLanguage||t.browserLanguage||t.systemLanguage;if(r!==void 0&&e.push([r]),Array.isArray(t.languages))isChromium()&&isChromium86OrNewer()||e.push(t.languages);else if(typeof t.languages=="string"){var n=t.languages;n&&e.push(n.split(","))}return e}function getColorDepth(){return window.screen.colorDepth}function getDeviceMemory(){return replaceNaN(toFloat(navigator.deviceMemory),void 0)}function getScreenResolution(){var t=screen,e=function(n){return replaceNaN(toInt(n),null)},r=[e(t.width),e(t.height)];return r.sort().reverse(),r}var screenFrameCheckInterval=2500,roundingPrecision=10,screenFrameBackup,screenFrameSizeTimeoutId;function watchScreenFrame(){if(screenFrameSizeTimeoutId===void 0){var t=function(){var e=getCurrentScreenFrame();isFrameSizeNull(e)?screenFrameSizeTimeoutId=setTimeout(t,screenFrameCheckInterval):(screenFrameBackup=e,screenFrameSizeTimeoutId=void 0)};t()}}function getScreenFrame(){var t=this;return watchScreenFrame(),function(){return __awaiter(t,void 0,void 0,function(){var e;return __generator(this,function(r){switch(r.label){case 0:return e=getCurrentScreenFrame(),isFrameSizeNull(e)?screenFrameBackup?[2,__spreadArray([],screenFrameBackup,!0)]:getFullscreenElement()?[4,exitFullscreen()]:[3,2]:[3,2];case 1:r.sent(),e=getCurrentScreenFrame(),r.label=2;case 2:return isFrameSizeNull(e)||(screenFrameBackup=e),[2,e]}})})}}function getRoundedScreenFrame(){var t=this,e=getScreenFrame();return function(){return __awaiter(t,void 0,void 0,function(){var r,n;return __generator(this,function(o){switch(o.label){case 0:return[4,e()];case 1:return r=o.sent(),n=function(s){return s===null?null:round(s,roundingPrecision)},[2,[n(r[0]),n(r[1]),n(r[2]),n(r[3])]]}})})}}function getCurrentScreenFrame(){var t=screen;return[replaceNaN(toFloat(t.availTop),null),replaceNaN(toFloat(t.width)-toFloat(t.availWidth)-replaceNaN(toFloat(t.availLeft),0),null),replaceNaN(toFloat(t.height)-toFloat(t.availHeight)-replaceNaN(toFloat(t.availTop),0),null),replaceNaN(toFloat(t.availLeft),null)]}function isFrameSizeNull(t){for(var e=0;e<4;++e)if(t[e])return!1;return!0}function getHardwareConcurrency(){return replaceNaN(toInt(navigator.hardwareConcurrency),void 0)}function getTimezone(){var t,e=(t=window.Intl)===null||t===void 0?void 0:t.DateTimeFormat;if(e){var r=new e().resolvedOptions().timeZone;if(r)return r}var n=-getTimezoneOffset();return"UTC".concat(n>=0?"+":"").concat(Math.abs(n))}function getTimezoneOffset(){var t=new Date().getFullYear();return Math.max(toFloat(new Date(t,0,1).getTimezoneOffset()),toFloat(new Date(t,6,1).getTimezoneOffset()))}function getSessionStorage(){try{return!!window.sessionStorage}catch(t){return!0}}function getLocalStorage(){try{return!!window.localStorage}catch(t){return!0}}function getIndexedDB(){if(!(isTrident()||isEdgeHTML()))try{return!!window.indexedDB}catch(t){return!0}}function getOpenDatabase(){return!!window.openDatabase}function getCpuClass(){return navigator.cpuClass}function getPlatform$1(){var t=navigator.platform;return t==="MacIntel"&&isWebKit()&&!isDesktopSafari()?isIPad()?"iPad":"iPhone":t}function getVendor(){return navigator.vendor||""}function getVendorFlavors(){for(var t=[],e=0,r=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];e<r.length;e++){var n=r[e],o=window[n];o&&typeof o=="object"&&t.push(n)}return t.sort()}function areCookiesEnabled(){var t=document;try{t.cookie="cookietest=1; SameSite=Strict;";var e=t.cookie.indexOf("cookietest=")!==-1;return t.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",e}catch(r){return!1}}function getFilters(){var t=atob;return{abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',t("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",t("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",t("LnNwb25zb3JpdA=="),".ylamainos",t("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),t("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",t("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",t("LmhlYWRlci1ibG9ja2VkLWFk"),t("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",t("I2FkXzMwMFgyNTA="),t("I2Jhbm5lcmZsb2F0MjI="),t("I2NhbXBhaWduLWJhbm5lcg=="),t("I0FkLUNvbnRlbnQ=")],adGuardChinese:[t("LlppX2FkX2FfSA=="),t("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",t("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),t("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",t("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",t("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",t("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),t("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),t("LmFkZ29vZ2xl"),t("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[t("YW1wLWF1dG8tYWRz"),t("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",t("I2FkX2ludmlld19hcmVh")],adGuardRussian:[t("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),t("LnJlY2xhbWE="),'div[id^="smi2adblock"]',t("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[t("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),t("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",t("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),t("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),t("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",t("I3Jla2xhbWk="),t("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),t("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),t("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[t("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",t("LndpZGdldF9wb19hZHNfd2lkZ2V0"),t("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",t("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[t("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),t("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",t("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",t("I3Jla2xhbW5pLWJveA=="),t("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",t("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[t("I2FkdmVydGVudGll"),t("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",t("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",t("LnNwb25zb3JsaW5rZ3J1ZW4="),t("I3dlcmJ1bmdza3k="),t("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),t("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[t("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",t("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),t("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),t("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[t("LnJla2xhbW9zX3RhcnBhcw=="),t("LnJla2xhbW9zX251b3JvZG9z"),t("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),t("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),t("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[t("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[t("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),t("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",t("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[t("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),t("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),t("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",t("LmFkX19tYWlu"),t("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[t("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[t("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),t("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[t("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),t("I2xpdmVyZUFkV3JhcHBlcg=="),t("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),t("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[t("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",t("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),t("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),t("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[t("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),t("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),t("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",t("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),t("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),t("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),t("ZGl2I3NrYXBpZWNfYWQ=")],ro:[t("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),t("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),t("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),t("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[t("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),t("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),t("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",t("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),t("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",t("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}}function getDomBlockers(t){var e=t===void 0?{}:t,r=e.debug;return __awaiter(this,void 0,void 0,function(){var n,o,s,c,l,v;return __generator(this,function(x){switch(x.label){case 0:return isApplicable()?(n=getFilters(),o=Object.keys(n),s=(v=[]).concat.apply(v,o.map(function(w){return n[w]})),[4,getBlockedSelectors(s)]):[2,void 0];case 1:return c=x.sent(),r&&printDebug(n,c),l=o.filter(function(w){var _=n[w],b=countTruthy(_.map(function(E){return c[E]}));return b>_.length*.6}),l.sort(),[2,l]}})})}function isApplicable(){return isWebKit()||isAndroid()}function getBlockedSelectors(t){var e;return __awaiter(this,void 0,void 0,function(){var r,n,o,s,v,c,l,v;return __generator(this,function(x){switch(x.label){case 0:for(r=document,n=r.createElement("div"),o=new Array(t.length),s={},forceShow(n),v=0;v<t.length;++v)c=selectorToElement(t[v]),c.tagName==="DIALOG"&&c.show(),l=r.createElement("div"),forceShow(l),l.appendChild(c),n.appendChild(l),o[v]=c;x.label=1;case 1:return r.body?[3,3]:[4,wait(50)];case 2:return x.sent(),[3,1];case 3:r.body.appendChild(n);try{for(v=0;v<t.length;++v)o[v].offsetParent||(s[t[v]]=!0)}finally{(e=n.parentNode)===null||e===void 0||e.removeChild(n)}return[2,s]}})})}function forceShow(t){t.style.setProperty("display","block","important")}function printDebug(t,e){for(var r="DOM blockers debug:\n```",n=0,o=Object.keys(t);n<o.length;n++){var s=o[n];r+=`
  3448. `.concat(s,":");for(var c=0,l=t[s];c<l.length;c++){var v=l[c];r+=`
  3449. `.concat(e[v]?"\u{1F6AB}":"\u27A1\uFE0F"," ").concat(v)}}console.log("".concat(r,"\n```"))}function getColorGamut(){for(var t=0,e=["rec2020","p3","srgb"];t<e.length;t++){var r=e[t];if(matchMedia("(color-gamut: ".concat(r,")")).matches)return r}}function areColorsInverted(){if(doesMatch$4("inverted"))return!0;if(doesMatch$4("none"))return!1}function doesMatch$4(t){return matchMedia("(inverted-colors: ".concat(t,")")).matches}function areColorsForced(){if(doesMatch$3("active"))return!0;if(doesMatch$3("none"))return!1}function doesMatch$3(t){return matchMedia("(forced-colors: ".concat(t,")")).matches}var maxValueToCheck=100;function getMonochromeDepth(){if(!!matchMedia("(min-monochrome: 0)").matches){for(var t=0;t<=maxValueToCheck;++t)if(matchMedia("(max-monochrome: ".concat(t,")")).matches)return t;throw new Error("Too high value")}}function getContrastPreference(){if(doesMatch$2("no-preference"))return 0;if(doesMatch$2("high")||doesMatch$2("more"))return 1;if(doesMatch$2("low")||doesMatch$2("less"))return-1;if(doesMatch$2("forced"))return 10}function doesMatch$2(t){return matchMedia("(prefers-contrast: ".concat(t,")")).matches}function isMotionReduced(){if(doesMatch$1("reduce"))return!0;if(doesMatch$1("no-preference"))return!1}function doesMatch$1(t){return matchMedia("(prefers-reduced-motion: ".concat(t,")")).matches}function isHDR(){if(doesMatch("high"))return!0;if(doesMatch("standard"))return!1}function doesMatch(t){return matchMedia("(dynamic-range: ".concat(t,")")).matches}var M=Math,fallbackFn=function(){return 0};function getMathFingerprint(){var t=M.acos||fallbackFn,e=M.acosh||fallbackFn,r=M.asin||fallbackFn,n=M.asinh||fallbackFn,o=M.atanh||fallbackFn,s=M.atan||fallbackFn,c=M.sin||fallbackFn,l=M.sinh||fallbackFn,v=M.cos||fallbackFn,x=M.cosh||fallbackFn,w=M.tan||fallbackFn,_=M.tanh||fallbackFn,b=M.exp||fallbackFn,E=M.expm1||fallbackFn,I=M.log1p||fallbackFn,O=function(q){return M.pow(M.PI,q)},N=function(q){return M.log(q+M.sqrt(q*q-1))},A=function(q){return M.log(q+M.sqrt(q*q+1))},z=function(q){return M.log((1+q)/(1-q))/2},G=function(q){return M.exp(q)-1/M.exp(q)/2},V=function(q){return(M.exp(q)+1/M.exp(q))/2},ne=function(q){return M.exp(q)-1},W=function(q){return(M.exp(2*q)-1)/(M.exp(2*q)+1)},B=function(q){return M.log(1+q)};return{acos:t(.12312423423423424),acosh:e(1e308),acoshPf:N(1e154),asin:r(.12312423423423424),asinh:n(1),asinhPf:A(1),atanh:o(.5),atanhPf:z(.5),atan:s(.5),sin:c(-1e300),sinh:l(1),sinhPf:G(1),cos:v(10.000000000123),cosh:x(1),coshPf:V(1),tan:w(-1e300),tanh:_(1),tanhPf:W(1),exp:b(1),expm1:E(1),expm1Pf:ne(1),log1p:I(10),log1pPf:B(10),powPI:O(-100)}}var defaultText="mmMwWLliI0fiflO&1",presets={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};function getFontPreferences(){return withNaturalFonts(function(t,e){for(var r={},n={},o=0,s=Object.keys(presets);o<s.length;o++){var c=s[o],l=presets[c],v=l[0],x=v===void 0?{}:v,w=l[1],_=w===void 0?defaultText:w,b=t.createElement("span");b.textContent=_,b.style.whiteSpace="nowrap";for(var E=0,I=Object.keys(x);E<I.length;E++){var O=I[E],N=x[O];N!==void 0&&(b.style[O]=N)}r[c]=b,e.appendChild(t.createElement("br")),e.appendChild(b)}for(var A=0,z=Object.keys(presets);A<z.length;A++){var c=z[A];n[c]=r[c].getBoundingClientRect().width}return n})}function withNaturalFonts(t,e){return e===void 0&&(e=4e3),withIframe(function(r,n){var o=n.document,s=o.body,c=s.style;c.width="".concat(e,"px"),c.webkitTextSizeAdjust=c.textSizeAdjust="none",isChromium()?s.style.zoom="".concat(1/n.devicePixelRatio):isWebKit()&&(s.style.zoom="reset");var l=o.createElement("div");return l.textContent=__spreadArray([],Array(e/20<<0),!0).map(function(){return"word"}).join(" "),s.appendChild(l),t(o,s)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}function getVideoCard(){var t,e=document.createElement("canvas"),r=(t=e.getContext("webgl"))!==null&&t!==void 0?t:e.getContext("experimental-webgl");if(r&&"getExtension"in r){var n=r.getExtension("WEBGL_debug_renderer_info");if(n)return{vendor:(r.getParameter(n.UNMASKED_VENDOR_WEBGL)||"").toString(),renderer:(r.getParameter(n.UNMASKED_RENDERER_WEBGL)||"").toString()}}}function isPdfViewerEnabled(){return navigator.pdfViewerEnabled}function getArchitecture(){var t=new Float32Array(1),e=new Uint8Array(t.buffer);return t[0]=1/0,t[0]=t[0]-t[0],e[3]}var sources={fonts:getFonts,domBlockers:getDomBlockers,fontPreferences:getFontPreferences,audio:getAudioFingerprint,screenFrame:getRoundedScreenFrame,osCpu:getOsCpu,languages:getLanguages,colorDepth:getColorDepth,deviceMemory:getDeviceMemory,screenResolution:getScreenResolution,hardwareConcurrency:getHardwareConcurrency,timezone:getTimezone,sessionStorage:getSessionStorage,localStorage:getLocalStorage,indexedDB:getIndexedDB,openDatabase:getOpenDatabase,cpuClass:getCpuClass,platform:getPlatform$1,plugins:getPlugins,canvas:getCanvasFingerprint,touchSupport:getTouchSupport,vendor:getVendor,vendorFlavors:getVendorFlavors,cookiesEnabled:areCookiesEnabled,colorGamut:getColorGamut,invertedColors:areColorsInverted,forcedColors:areColorsForced,monochrome:getMonochromeDepth,contrast:getContrastPreference,reducedMotion:isMotionReduced,hdr:isHDR,math:getMathFingerprint,videoCard:getVideoCard,pdfViewerEnabled:isPdfViewerEnabled,architecture:getArchitecture};function loadBuiltinSources(t){return loadSources(sources,t,[])}var commentTemplate="$ if upgrade to Pro: https://fpjs.dev/pro";function getConfidence(t){var e=getOpenConfidenceScore(t),r=deriveProConfidenceScore(e);return{score:e,comment:commentTemplate.replace(/\$/g,"".concat(r))}}function getOpenConfidenceScore(t){if(isAndroid())return .4;if(isWebKit())return isDesktopSafari()?.5:.3;var e=t.platform.value||"";return/^Win/.test(e)?.6:/^Mac/.test(e)?.5:.7}function deriveProConfidenceScore(t){return round(.99+.01*t,1e-4)}function componentsToCanonicalString(t){for(var e="",r=0,n=Object.keys(t).sort();r<n.length;r++){var o=n[r],s=t[o],c=s.error?"error":JSON.stringify(s.value);e+="".concat(e?"|":"").concat(o.replace(/([:|\\])/g,"\\$1"),":").concat(c)}return e}function componentsToDebugString(t){return JSON.stringify(t,function(e,r){return r instanceof Error?errorToObject(r):r},2)}function hashComponents(t){return x64hash128(componentsToCanonicalString(t))}function makeLazyGetResult(t){var e,r=getConfidence(t);return{get visitorId(){return e===void 0&&(e=hashComponents(this.components)),e},set visitorId(n){e=n},confidence:r,components:t,version:version$1}}function prepareForSources(t){return t===void 0&&(t=50),requestIdleCallbackIfAvailable(t,t*2)}function makeAgent(t,e){var r=Date.now();return{get:function(n){return __awaiter(this,void 0,void 0,function(){var o,s,c;return __generator(this,function(l){switch(l.label){case 0:return o=Date.now(),[4,t()];case 1:return s=l.sent(),c=makeLazyGetResult(s),(e||(n==null?void 0:n.debug))&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(c.version,`
  3450. userAgent: `).concat(navigator.userAgent,`
  3451. timeBetweenLoadAndGet: `).concat(o-r,`
  3452. visitorId: `).concat(c.visitorId,`
  3453. components: `).concat(componentsToDebugString(s),"\n```")),[2,c]}})})}}}function monitor(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var t=new XMLHttpRequest;t.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(version$1,"/npm-monitoring"),!0),t.send()}catch(e){console.error(e)}}function load(t){var e=t===void 0?{}:t,r=e.delayFallback,n=e.debug,o=e.monitoring,s=o===void 0?!0:o;return __awaiter(this,void 0,void 0,function(){var c;return __generator(this,function(l){switch(l.label){case 0:return s&&monitor(),[4,prepareForSources(r)];case 1:return l.sent(),c=loadBuiltinSources({debug:n}),[2,makeAgent(c,n)]}})})}const scriptRel="modulepreload",assetsURL=function(t,e){return new URL(t,e).href},seen={},__vitePreload=function t(e,r,n){if(!r||r.length===0)return e();const o=document.getElementsByTagName("link");return Promise.all(r.map(s=>{if(s=assetsURL(s,n),s in seen)return;seen[s]=!0;const c=s.endsWith(".css"),l=c?'[rel="stylesheet"]':"";if(!!n)for(let w=o.length-1;w>=0;w--){const _=o[w];if(_.href===s&&(!c||_.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${l}`))return;const x=document.createElement("link");if(x.rel=c?"stylesheet":scriptRel,c||(x.as="script",x.crossOrigin=""),x.href=s,document.head.appendChild(x),c)return new Promise((w,_)=>{x.addEventListener("load",w),x.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>e())};let pluginsConfig;const fetchPluginsConfig=()=>Gr(void 0,null,function*(){return pluginsConfig=yield getConfig(new URL(""+new URL("../plugins/config.json",import.meta.url).href,self.location).href),pluginsConfig}),registerPlugins$1=()=>Gr(void 0,null,function*(){yield Promise.allSettled(pluginsConfig.plugins.map(t=>Gr(void 0,null,function*(){try{yield __vitePreload(()=>import("../plugins/"+t+".js"),[],import.meta.url)}catch(e){console.warn(`\u63D2\u4EF6${t}\u6267\u884C\u51FA\u73B0\u9519\u8BEF\uFF01`,e)}})))});var mapboxGl$1={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(commonjsGlobal$1,function(){var r,n,o;function s(l,v){if(!r)r=v;else if(!n)n=v;else{var x="self.onerror = function() { console.error('An error occurred while parsing the WebWorker bundle. This is most likely due to improper transpilation by Babel; please see https://docs.mapbox.com/mapbox-gl-js/guides/install/#transpiling'); }; var sharedChunk = {}; ("+r+")(sharedChunk); ("+n+")(sharedChunk); self.onerror = null;",w={};r(w),o=v(w),typeof window!="undefined"&&window&&window.URL&&window.URL.createObjectURL&&(o.workerUrl=window.URL.createObjectURL(new Blob([x],{type:"text/javascript"})))}}s(["exports"],function(l){var v="2.8.2",x=w;function w(m,d,y,T){this.cx=3*m,this.bx=3*(y-m)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*d,this.by=3*(T-d)-this.cy,this.ay=1-this.cy-this.by,this.p1x=m,this.p1y=T,this.p2x=y,this.p2y=T}w.prototype.sampleCurveX=function(m){return((this.ax*m+this.bx)*m+this.cx)*m},w.prototype.sampleCurveY=function(m){return((this.ay*m+this.by)*m+this.cy)*m},w.prototype.sampleCurveDerivativeX=function(m){return(3*this.ax*m+2*this.bx)*m+this.cx},w.prototype.solveCurveX=function(m,d){var y,T,P,Y,te;for(d===void 0&&(d=1e-6),P=m,te=0;te<8;te++){if(Y=this.sampleCurveX(P)-m,Math.abs(Y)<d)return P;var se=this.sampleCurveDerivativeX(P);if(Math.abs(se)<1e-6)break;P-=Y/se}if((P=m)<(y=0))return y;if(P>(T=1))return T;for(;y<T;){if(Y=this.sampleCurveX(P),Math.abs(Y-m)<d)return P;m>Y?y=P:T=P,P=.5*(T-y)+y}return P},w.prototype.solve=function(m,d){return this.sampleCurveY(this.solveCurveX(m,d))};var _=b;function b(m,d){this.x=m,this.y=d}b.prototype={clone:function(){return new b(this.x,this.y)},add:function(m){return this.clone()._add(m)},sub:function(m){return this.clone()._sub(m)},multByPoint:function(m){return this.clone()._multByPoint(m)},divByPoint:function(m){return this.clone()._divByPoint(m)},mult:function(m){return this.clone()._mult(m)},div:function(m){return this.clone()._div(m)},rotate:function(m){return this.clone()._rotate(m)},rotateAround:function(m,d){return this.clone()._rotateAround(m,d)},matMult:function(m){return this.clone()._matMult(m)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(m){return this.x===m.x&&this.y===m.y},dist:function(m){return Math.sqrt(this.distSqr(m))},distSqr:function(m){var d=m.x-this.x,y=m.y-this.y;return d*d+y*y},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(m){return Math.atan2(this.y-m.y,this.x-m.x)},angleWith:function(m){return this.angleWithSep(m.x,m.y)},angleWithSep:function(m,d){return Math.atan2(this.x*d-this.y*m,this.x*m+this.y*d)},_matMult:function(m){var d=m[2]*this.x+m[3]*this.y;return this.x=m[0]*this.x+m[1]*this.y,this.y=d,this},_add:function(m){return this.x+=m.x,this.y+=m.y,this},_sub:function(m){return this.x-=m.x,this.y-=m.y,this},_mult:function(m){return this.x*=m,this.y*=m,this},_div:function(m){return this.x/=m,this.y/=m,this},_multByPoint:function(m){return this.x*=m.x,this.y*=m.y,this},_divByPoint:function(m){return this.x/=m.x,this.y/=m.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var m=this.y;return this.y=this.x,this.x=-m,this},_rotate:function(m){var d=Math.cos(m),y=Math.sin(m),T=y*this.x+d*this.y;return this.x=d*this.x-y*this.y,this.y=T,this},_rotateAround:function(m,d){var y=Math.cos(m),T=Math.sin(m),P=d.y+T*(this.x-d.x)+y*(this.y-d.y);return this.x=d.x+y*(this.x-d.x)-T*(this.y-d.y),this.y=P,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},b.convert=function(m){return m instanceof b?m:Array.isArray(m)?new b(m[0],m[1]):m};var E=typeof self!="undefined"?self:{};const I=Math.PI/180,O=180/Math.PI;function N(m){return m*I}function A(m){return m*O}const z=[[0,0],[1,0],[1,1],[0,1]];function G(m){if(m<=0)return 0;if(m>=1)return 1;const d=m*m,y=d*m;return 4*(m<.5?y:3*(m-d)+y-.75)}function V(m,d,y,T){const P=new x(m,d,y,T);return function(Y){return P.solve(Y)}}const ne=V(.25,.1,.25,1);function W(m,d,y){return Math.min(y,Math.max(d,m))}function B(m,d,y){return(y=W((y-m)/(d-m),0,1))*y*(3-2*y)}function q(m,d,y){const T=y-d,P=((m-d)%T+T)%T+d;return P===d?y:P}function D(m,d,y){if(!m.length)return y(null,[]);let T=m.length;const P=new Array(m.length);let Y=null;m.forEach((te,se)=>{d(te,(pe,xe)=>{pe&&(Y=pe),P[se]=xe,--T==0&&y(Y,P)})})}function F(m){const d=[];for(const y in m)d.push(m[y]);return d}function re(m,...d){for(const y of d)for(const T in y)m[T]=y[T];return m}let le=1;function fe(){return le++}function me(){return function m(d){return d?(d^Math.random()*(16>>d/4)).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,m)}()}function ye(m){return m<=1?1:Math.pow(2,Math.ceil(Math.log(m)/Math.LN2))}function Te(m){return!!m&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(m)}function ke(m,d){m.forEach(y=>{d[y]&&(d[y]=d[y].bind(d))})}function Le(m,d){return m.indexOf(d,m.length-d.length)!==-1}function et(m,d,y){const T={};for(const P in m)T[P]=d.call(y||this,m[P],P,m);return T}function it(m,d,y){const T={};for(const P in m)d.call(y||this,m[P],P,m)&&(T[P]=m[P]);return T}function Ue(m){return Array.isArray(m)?m.map(Ue):typeof m=="object"&&m?et(m,Ue):m}const ht={};function De(m){ht[m]||(typeof console!="undefined"&&console.warn(m),ht[m]=!0)}function Be(m,d,y){return(y.y-m.y)*(d.x-m.x)>(d.y-m.y)*(y.x-m.x)}function Ve(m){let d=0;for(let y,T,P=0,Y=m.length,te=Y-1;P<Y;te=P++)y=m[P],T=m[te],d+=(T.x-y.x)*(y.y+T.y);return d}function He(){return typeof WorkerGlobalScope!="undefined"&&typeof self!="undefined"&&self instanceof WorkerGlobalScope}function gt(m){const d={};if(m.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(y,T,P,Y)=>{const te=P||Y;return d[T]=!te||te.toLowerCase(),""}),d["max-age"]){const y=parseInt(d["max-age"],10);isNaN(y)?delete d["max-age"]:d["max-age"]=y}return d}let dn,Ze,at,Lt,Ne=null;function ze(m){if(Ne==null){const d=m.navigator?m.navigator.userAgent:null;Ne=!!m.safari||!(!d||!(/\b(iPad|iPhone|iPod)\b/.test(d)||d.match("Safari")&&!d.match("Chrome")))}return Ne}function Ke(m){try{const d=E[m];return d.setItem("_mapbox_test_",1),d.removeItem("_mapbox_test_"),!0}catch(d){return!1}}const vt={now:()=>at!==void 0?at:E.performance.now(),setNow(m){at=m},restoreNow(){at=void 0},frame(m){const d=E.requestAnimationFrame(m);return{cancel:()=>E.cancelAnimationFrame(d)}},getImageData(m,d=0){const{width:y,height:T}=m;Lt||(Lt=E.document.createElement("canvas"));const P=Lt.getContext("2d");if(!P)throw new Error("failed to create canvas 2d context");return(y>Lt.width||T>Lt.height)&&(Lt.width=y,Lt.height=T),P.clearRect(-d,-d,y+2*d,T+2*d),P.drawImage(m,0,0,y,T),P.getImageData(-d,-d,y+2*d,T+2*d)},resolveURL:m=>(dn||(dn=E.document.createElement("a")),dn.href=m,dn.href),get devicePixelRatio(){return E.devicePixelRatio},get prefersReducedMotion(){return!!E.matchMedia&&(Ze==null&&(Ze=E.matchMedia("(prefers-reduced-motion: reduce)")),Ze.matches)}};let Ft;const Ot={API_URL:"https://api.mapbox.com",get API_URL_REGEX(){if(Ft==null){const m=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;try{Ft={}.API_URL_REGEX!=null?new RegExp({}.API_URL_REGEX):m}catch(d){Ft=m}}return Ft},get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},SESSION_PATH:"/map-sessions/v1",FEEDBACK_URL:"https://apps.mapbox.com/feedback",TILE_URL_VERSION:"v4",RASTER_URL_PREFIX:"raster/v1",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},_t={supported:!1,testSupport:function(m){!$n&&on&&(Zt?Et(m):Tn=m)}};let Tn,on,$n=!1,Zt=!1;function Et(m){const d=m.createTexture();m.bindTexture(m.TEXTURE_2D,d);try{if(m.texImage2D(m.TEXTURE_2D,0,m.RGBA,m.RGBA,m.UNSIGNED_BYTE,on),m.isContextLost())return;_t.supported=!0}catch(y){}m.deleteTexture(d),$n=!0}E.document&&(on=E.document.createElement("img"),on.onload=function(){Tn&&Et(Tn),Tn=null,Zt=!0},on.onerror=function(){$n=!0,Tn=null},on.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const rn="01",wt="NO_ACCESS_TOKEN";function Yn(m){return m.indexOf("mapbox:")===0}function pt(m){return Ot.API_URL_REGEX.test(m)}const Fe=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function Ie(m){const d=m.match(Fe);if(!d)throw new Error("Unable to parse URL object");return{protocol:d[1],authority:d[2],path:d[3]||"/",params:d[4]?d[4].split("&"):[]}}function ct(m){const d=m.params.length?`?${m.params.join("&")}`:"";return`${m.protocol}://${m.authority}${m.path}${d}`}function Ht(m){if(!m)return null;const d=m.split(".");if(!d||d.length!==3)return null;try{return JSON.parse(decodeURIComponent(E.atob(d[1]).split("").map(y=>"%"+("00"+y.charCodeAt(0).toString(16)).slice(-2)).join("")))}catch(y){return null}}class sn{constructor(d){this.type=d,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null}getStorageKey(d){const y=Ht(Ot.ACCESS_TOKEN);let T="";return T=y&&y.u?E.btoa(encodeURIComponent(y.u).replace(/%([0-9A-F]{2})/g,(P,Y)=>String.fromCharCode(Number("0x"+Y)))):Ot.ACCESS_TOKEN||"",d?`mapbox.eventData.${d}:${T}`:`mapbox.eventData:${T}`}fetchEventData(){const d=Ke("localStorage"),y=this.getStorageKey(),T=this.getStorageKey("uuid");if(d)try{const P=E.localStorage.getItem(y);P&&(this.eventData=JSON.parse(P));const Y=E.localStorage.getItem(T);Y&&(this.anonId=Y)}catch(P){De("Unable to read from LocalStorage")}}saveEventData(){const d=Ke("localStorage"),y=this.getStorageKey(),T=this.getStorageKey("uuid");if(d)try{E.localStorage.setItem(T,this.anonId),Object.keys(this.eventData).length>=1&&E.localStorage.setItem(y,JSON.stringify(this.eventData))}catch(P){De("Unable to write to LocalStorage")}}processRequests(d){}postEvent(d,y,T,P){if(!Ot.EVENTS_URL)return;const Y=Ie(Ot.EVENTS_URL);Y.params.push(`access_token=${P||Ot.ACCESS_TOKEN||""}`);const te={event:this.type,created:new Date(d).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:v,skuId:rn,userId:this.anonId},se=y?re(te,y):te,pe={url:ct(Y),headers:{"Content-Type":"text/plain"},body:JSON.stringify([se])};this.pendingRequest=mn(pe,xe=>{this.pendingRequest=null,T(xe),this.saveEventData(),this.processRequests(P)})}queueRequest(d,y){this.queue.push(d),this.processRequests(y)}}const yn=new class extends sn{constructor(m){super("appUserTurnstile"),this._customAccessToken=m}postTurnstileEvent(m,d){Ot.EVENTS_URL&&Ot.ACCESS_TOKEN&&Array.isArray(m)&&m.some(y=>Yn(y)||pt(y))&&this.queueRequest(Date.now(),d)}processRequests(m){if(this.pendingRequest||this.queue.length===0)return;this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();const d=Ht(Ot.ACCESS_TOKEN),y=d?d.u:Ot.ACCESS_TOKEN;let T=y!==this.eventData.tokenU;Te(this.anonId)||(this.anonId=me(),T=!0);const P=this.queue.shift();if(this.eventData.lastSuccess){const Y=new Date(this.eventData.lastSuccess),te=new Date(P),se=(P-this.eventData.lastSuccess)/864e5;T=T||se>=1||se<-1||Y.getDate()!==te.getDate()}else T=!0;T?this.postEvent(P,{"enabled.telemetry":!1},Y=>{Y||(this.eventData.lastSuccess=P,this.eventData.tokenU=y)},m):this.processRequests()}},Dr=yn.postTurnstileEvent.bind(yn),Kr=new class extends sn{constructor(){super("map.load"),this.success={},this.skuToken=""}postMapLoadEvent(m,d,y,T){this.skuToken=d,this.errorCb=T,Ot.EVENTS_URL&&(y||Ot.ACCESS_TOKEN?this.queueRequest({id:m,timestamp:Date.now()},y):this.errorCb(new Error(wt)))}processRequests(m){if(this.pendingRequest||this.queue.length===0)return;const{id:d,timestamp:y}=this.queue.shift();d&&this.success[d]||(this.anonId||this.fetchEventData(),Te(this.anonId)||(this.anonId=me()),this.postEvent(y,{skuToken:this.skuToken},T=>{T?this.errorCb(T):d&&(this.success[d]=!0)},m))}},ii=Kr.postMapLoadEvent.bind(Kr),_n=new class extends sn{constructor(){super("map.auth"),this.success={},this.skuToken=""}getSession(m,d,y,T){if(!Ot.API_URL||!Ot.SESSION_PATH)return;const P=Ie(Ot.API_URL+Ot.SESSION_PATH);P.params.push(`sku=${d||""}`),P.params.push(`access_token=${T||Ot.ACCESS_TOKEN||""}`);const Y={url:ct(P),headers:{"Content-Type":"text/plain"}};this.pendingRequest=Un(Y,te=>{this.pendingRequest=null,y(te),this.saveEventData(),this.processRequests(T)})}getSessionAPI(m,d,y,T){this.skuToken=d,this.errorCb=T,Ot.SESSION_PATH&&Ot.API_URL&&(y||Ot.ACCESS_TOKEN?this.queueRequest({id:m,timestamp:Date.now()},y):this.errorCb(new Error(wt)))}processRequests(m){if(this.pendingRequest||this.queue.length===0)return;const{id:d,timestamp:y}=this.queue.shift();d&&this.success[d]||this.getSession(y,this.skuToken,T=>{T?this.errorCb(T):d&&(this.success[d]=!0)},m)}},xn=_n.getSessionAPI.bind(_n),jn=new Set,ln="mapbox-tiles";let ar,zr,Jr=500,bi=50;function hi(){E.caches&&!ar&&(ar=E.caches.open(ln))}function wi(m){const d=m.indexOf("?");return d<0?m:m.slice(0,d)}let Ca=1/0;const jt={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};typeof Object.freeze=="function"&&Object.freeze(jt);class dt extends Error{constructor(d,y,T){y===401&&pt(T)&&(d+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),super(d),this.status=y,this.url=T}toString(){return`${this.name}: ${this.message} (${this.status}): ${this.url}`}}const xt=He()?()=>self.worker&&self.worker.referrer:()=>(E.location.protocol==="blob:"?E.parent:E).location.href,Nt=function(m,d){if(!(/^file:/.test(y=m.url)||/^file:/.test(xt())&&!/^\w+:/.test(y))){if(E.fetch&&E.Request&&E.AbortController&&E.Request.prototype.hasOwnProperty("signal"))return function(T,P){const Y=new E.AbortController,te=new E.Request(T.url,{method:T.method||"GET",body:T.body,credentials:T.credentials,headers:T.headers,referrer:xt(),signal:Y.signal});let se=!1,pe=!1;const xe=(Pe=te.url).indexOf("sku=")>0&&pt(Pe);var Pe;T.type==="json"&&te.headers.set("Accept","application/json");const je=(ut,bt,kt)=>{if(pe)return;if(ut&&ut.message!=="SecurityError"&&De(ut),bt&&kt)return $e(bt);const zt=Date.now();E.fetch(te).then(Xt=>{if(Xt.ok){const wn=xe?Xt.clone():null;return $e(Xt,wn,zt)}return P(new dt(Xt.statusText,Xt.status,T.url))}).catch(Xt=>{Xt.code!==20&&P(new Error(Xt.message))})},$e=(ut,bt,kt)=>{(T.type==="arrayBuffer"?ut.arrayBuffer():T.type==="json"?ut.json():ut.text()).then(zt=>{pe||(bt&&kt&&function(Xt,wn,Ln){if(hi(),!ar)return;const hn={status:wn.status,statusText:wn.statusText,headers:new E.Headers};wn.headers.forEach((fr,wr)=>hn.headers.set(wr,fr));const Jt=gt(wn.headers.get("Cache-Control")||"");if(Jt["no-store"])return;Jt["max-age"]&&hn.headers.set("Expires",new Date(Ln+1e3*Jt["max-age"]).toUTCString());const Nn=hn.headers.get("Expires");Nn&&(new Date(Nn).getTime()-Ln<42e4||function(fr,wr){if(zr===void 0)try{new Response(new ReadableStream),zr=!0}catch(Rr){zr=!1}zr?wr(fr.body):fr.blob().then(wr)}(wn,fr=>{const wr=new E.Response(fr,hn);hi(),ar&&ar.then(Rr=>Rr.put(wi(Xt.url),wr)).catch(Rr=>De(Rr.message))}))}(te,bt,kt),se=!0,P(null,zt,ut.headers.get("Cache-Control"),ut.headers.get("Expires")))}).catch(zt=>{pe||P(new Error(zt.message))})};return xe?function(ut,bt){if(hi(),!ar)return bt(null);const kt=wi(ut.url);ar.then(zt=>{zt.match(kt).then(Xt=>{const wn=function(Ln){if(!Ln)return!1;const hn=new Date(Ln.headers.get("Expires")||0),Jt=gt(Ln.headers.get("Cache-Control")||"");return hn>Date.now()&&!Jt["no-cache"]}(Xt);zt.delete(kt),wn&&zt.put(kt,Xt.clone()),bt(null,Xt,wn)}).catch(bt)}).catch(bt)}(te,je):je(null,null),{cancel:()=>{pe=!0,se||Y.abort()}}}(m,d);if(He()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",m,d,void 0,!0)}var y;return function(T,P){const Y=new E.XMLHttpRequest;Y.open(T.method||"GET",T.url,!0),T.type==="arrayBuffer"&&(Y.responseType="arraybuffer");for(const te in T.headers)Y.setRequestHeader(te,T.headers[te]);return T.type==="json"&&(Y.responseType="text",Y.setRequestHeader("Accept","application/json")),Y.withCredentials=T.credentials==="include",Y.onerror=()=>{P(new Error(Y.statusText))},Y.onload=()=>{if((Y.status>=200&&Y.status<300||Y.status===0)&&Y.response!==null){let te=Y.response;if(T.type==="json")try{te=JSON.parse(Y.response)}catch(se){return P(se)}P(null,te,Y.getResponseHeader("Cache-Control"),Y.getResponseHeader("Expires"))}else P(new dt(Y.statusText,Y.status,T.url))},Y.send(T.body),{cancel:()=>Y.abort()}}(m,d)},Qt=function(m,d){return Nt(re(m,{type:"arrayBuffer"}),d)},mn=function(m,d){return Nt(re(m,{method:"POST"}),d)},Un=function(m,d){return Nt(re(m,{method:"GET"}),d)};function we(m){const d=E.document.createElement("a");return d.href=m,d.protocol===E.document.location.protocol&&d.host===E.document.location.host}const En="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";let Kn,er;Kn=[],er=0;const Hr=function(m,d){if(_t.supported&&(m.headers||(m.headers={}),m.headers.accept="image/webp,*/*"),er>=Ot.MAX_PARALLEL_IMAGE_REQUESTS){const Y={requestParameters:m,callback:d,cancelled:!1,cancel(){this.cancelled=!0}};return Kn.push(Y),Y}er++;let y=!1;const T=()=>{if(!y)for(y=!0,er--;Kn.length&&er<Ot.MAX_PARALLEL_IMAGE_REQUESTS;){const Y=Kn.shift(),{requestParameters:te,callback:se,cancelled:pe}=Y;pe||(Y.cancel=Hr(te,se).cancel)}},P=Qt(m,(Y,te,se,pe)=>{T(),Y?d(Y):te&&(E.createImageBitmap?function(xe,Pe){const je=new E.Blob([new Uint8Array(xe)],{type:"image/png"});E.createImageBitmap(je).then($e=>{Pe(null,$e)}).catch($e=>{Pe(new Error(`Could not load image because of ${$e.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})}(te,(xe,Pe)=>d(xe,Pe,se,pe)):function(xe,Pe){const je=new E.Image,$e=E.URL;je.onload=()=>{Pe(null,je),$e.revokeObjectURL(je.src),je.onload=null,E.requestAnimationFrame(()=>{je.src=En})},je.onerror=()=>Pe(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));const ut=new E.Blob([new Uint8Array(xe)],{type:"image/png"});je.src=xe.byteLength?$e.createObjectURL(ut):En}(te,(xe,Pe)=>d(xe,Pe,se,pe)))});return{cancel:()=>{P.cancel(),T()}}};function Ir(m,d,y){y[m]&&y[m].indexOf(d)!==-1||(y[m]=y[m]||[],y[m].push(d))}function Ri(m,d,y){if(y&&y[m]){const T=y[m].indexOf(d);T!==-1&&y[m].splice(T,1)}}class Ti{constructor(d,y={}){re(this,y),this.type=d}}class mi extends Ti{constructor(d,y={}){super("error",re({error:d},y))}}class Li{on(d,y){return this._listeners=this._listeners||{},Ir(d,y,this._listeners),this}off(d,y){return Ri(d,y,this._listeners),Ri(d,y,this._oneTimeListeners),this}once(d,y){return y?(this._oneTimeListeners=this._oneTimeListeners||{},Ir(d,y,this._oneTimeListeners),this):new Promise(T=>this.once(d,T))}fire(d,y){typeof d=="string"&&(d=new Ti(d,y||{}));const T=d.type;if(this.listens(T)){d.target=this;const P=this._listeners&&this._listeners[T]?this._listeners[T].slice():[];for(const se of P)se.call(this,d);const Y=this._oneTimeListeners&&this._oneTimeListeners[T]?this._oneTimeListeners[T].slice():[];for(const se of Y)Ri(T,se,this._oneTimeListeners),se.call(this,d);const te=this._eventedParent;te&&(re(d,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),te.fire(d))}else d instanceof mi&&console.error(d.error);return this}listens(d){return!!(this._listeners&&this._listeners[d]&&this._listeners[d].length>0||this._oneTimeListeners&&this._oneTimeListeners[d]&&this._oneTimeListeners[d].length>0||this._eventedParent&&this._eventedParent.listens(d))}setEventedParent(d,y){return this._eventedParent=d,this._eventedParentData=y,this}}var tr=JSON.parse('{"$version":8,"$root":{"version":{"required":true,"type":"enum","values":[8]},"name":{"type":"string"},"metadata":{"type":"*"},"center":{"type":"array","value":"number"},"zoom":{"type":"number"},"bearing":{"type":"number","default":0,"period":360,"units":"degrees"},"pitch":{"type":"number","default":0,"units":"degrees"},"light":{"type":"light"},"terrain":{"type":"terrain"},"fog":{"type":"fog"},"sources":{"required":true,"type":"sources"},"sprite":{"type":"string"},"glyphs":{"type":"string"},"transition":{"type":"transition"},"projection":{"type":"projection"},"layers":{"required":true,"type":"array","value":"layer"}},"sources":{"*":{"type":"source"}},"source":["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],"source_vector":{"type":{"required":true,"type":"enum","values":{"vector":{}}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"scheme":{"type":"enum","values":{"xyz":{},"tms":{}},"default":"xyz"},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"attribution":{"type":"string"},"promoteId":{"type":"promoteId"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster":{"type":{"required":true,"type":"enum","values":{"raster":{}}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512,"units":"pixels"},"scheme":{"type":"enum","values":{"xyz":{},"tms":{}},"default":"xyz"},"attribution":{"type":"string"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_dem":{"type":{"required":true,"type":"enum","values":{"raster-dem":{}}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512,"units":"pixels"},"attribution":{"type":"string"},"encoding":{"type":"enum","values":{"terrarium":{},"mapbox":{}},"default":"mapbox"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_geojson":{"type":{"required":true,"type":"enum","values":{"geojson":{}}},"data":{"type":"*"},"maxzoom":{"type":"number","default":18},"attribution":{"type":"string"},"buffer":{"type":"number","default":128,"maximum":512,"minimum":0},"filter":{"type":"*"},"tolerance":{"type":"number","default":0.375},"cluster":{"type":"boolean","default":false},"clusterRadius":{"type":"number","default":50,"minimum":0},"clusterMaxZoom":{"type":"number"},"clusterMinPoints":{"type":"number"},"clusterProperties":{"type":"*"},"lineMetrics":{"type":"boolean","default":false},"generateId":{"type":"boolean","default":false},"promoteId":{"type":"promoteId"}},"source_video":{"type":{"required":true,"type":"enum","values":{"video":{}}},"urls":{"required":true,"type":"array","value":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_image":{"type":{"required":true,"type":"enum","values":{"image":{}}},"url":{"required":true,"type":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"layer":{"id":{"type":"string","required":true},"type":{"type":"enum","values":{"fill":{},"line":{},"symbol":{},"circle":{},"heatmap":{},"fill-extrusion":{},"raster":{},"hillshade":{},"background":{},"sky":{}},"required":true},"metadata":{"type":"*"},"source":{"type":"string"},"source-layer":{"type":"string"},"minzoom":{"type":"number","minimum":0,"maximum":24},"maxzoom":{"type":"number","minimum":0,"maximum":24},"filter":{"type":"filter"},"layout":{"type":"layout"},"paint":{"type":"paint"}},"layout":["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background","layout_sky"],"layout_background":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_sky":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_fill":{"fill-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_circle":{"circle-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_heatmap":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_fill-extrusion":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_line":{"line-cap":{"type":"enum","values":{"butt":{},"round":{},"square":{}},"default":"butt","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-join":{"type":"enum","values":{"bevel":{},"round":{},"miter":{}},"default":"miter","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{"type":"number","default":2,"requires":[{"line-join":"miter"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-round-limit":{"type":"number","default":1.05,"requires":[{"line-join":"round"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_symbol":{"symbol-placement":{"type":"enum","values":{"point":{},"line":{},"line-center":{}},"default":"point","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-spacing":{"type":"number","default":250,"minimum":1,"units":"pixels","requires":[{"symbol-placement":"line"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{"type":"boolean","default":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{"type":"enum","values":{"auto":{},"viewport-y":{},"source":{}},"default":"auto","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{"type":"boolean","default":false,"requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{"type":"boolean","default":false,"requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-optional":{"type":"boolean","default":false,"requires":["icon-image","text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-size":{"type":"number","default":1,"minimum":0,"units":"factor of the original icon size","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{"type":"enum","values":{"none":{},"width":{},"height":{},"both":{}},"default":"none","requires":["icon-image","text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{"type":"array","value":"number","length":4,"default":[0,0,0,0],"units":"pixels","requires":["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-image":{"type":"resolvedImage","tokens":true,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{"type":"number","default":0,"period":360,"units":"degrees","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{"type":"number","default":2,"minimum":0,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{"type":"boolean","default":false,"requires":["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-offset":{"type":"array","value":"number","length":2,"default":[0,0],"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{"type":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"default":"center","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-field":{"type":"formatted","default":"","tokens":true,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-font":{"type":"array","value":"string","default":["Open Sans Regular","Arial Unicode MS Regular"],"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size":{"type":"number","default":16,"minimum":0,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{"type":"number","default":10,"minimum":0,"units":"ems","requires":["text-field",{"symbol-placement":["point"]}],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{"type":"number","default":1.2,"units":"ems","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{"type":"number","default":0,"units":"ems","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-justify":{"type":"enum","values":{"auto":{},"left":{},"center":{},"right":{}},"default":"center","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{"type":"number","units":"ems","default":0,"requires":["text-field"],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["zoom","feature"]}},"text-variable-anchor":{"type":"array","value":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"requires":["text-field",{"symbol-placement":["point"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-anchor":{"type":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"default":"center","requires":["text-field",{"!":"text-variable-anchor"}],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{"type":"number","default":45,"units":"degrees","requires":["text-field",{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-writing-mode":{"type":"array","value":"enum","values":{"horizontal":{},"vertical":{}},"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-rotate":{"type":"number","default":0,"period":360,"units":"degrees","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-padding":{"type":"number","default":2,"minimum":0,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-keep-upright":{"type":"boolean","default":true,"requires":["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-transform":{"type":"enum","values":{"none":{},"uppercase":{},"lowercase":{}},"default":"none","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-offset":{"type":"array","value":"number","units":"ems","length":2,"default":[0,0],"requires":["text-field",{"!":"text-radial-offset"}],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{"type":"boolean","default":false,"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{"type":"boolean","default":false,"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-optional":{"type":"boolean","default":false,"requires":["text-field","icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_raster":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_hillshade":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"filter":{"type":"array","value":"*"},"filter_symbol":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature","pitch","distance-from-center"]}},"filter_fill":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_line":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_circle":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_fill-extrusion":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_heatmap":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_operator":{"type":"enum","values":{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},"in":{},"!in":{},"all":{},"any":{},"none":{},"has":{},"!has":{},"within":{}}},"geometry_type":{"type":"enum","values":{"Point":{},"LineString":{},"Polygon":{}}},"function":{"expression":{"type":"expression"},"stops":{"type":"array","value":"function_stop"},"base":{"type":"number","default":1,"minimum":0},"property":{"type":"string","default":"$zoom"},"type":{"type":"enum","values":{"identity":{},"exponential":{},"interval":{},"categorical":{}},"default":"exponential"},"colorSpace":{"type":"enum","values":{"rgb":{},"lab":{},"hcl":{}},"default":"rgb"},"default":{"type":"*","required":false}},"function_stop":{"type":"array","minimum":0,"maximum":24,"value":["number","color"],"length":2},"expression":{"type":"array","value":"*","minimum":1},"fog":{"range":{"type":"array","default":[0.5,10],"minimum":-20,"maximum":20,"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"horizon-blend":{"type":"number","property-type":"data-constant","default":0.1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":{},"viewport":{}},"property-type":"data-constant","transition":false,"expression":{"interpolated":false,"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"projection":{"name":{"type":"enum","values":{"albers":{},"equalEarth":{},"equirectangular":{},"lambertConformalConic":{},"mercator":{},"naturalEarth":{},"winkelTripel":{}},"default":"mercator","required":true},"center":{"type":"array","length":2,"value":"number","property-type":"data-constant","transition":false,"requires":[{"name":["albers","lambertConformalConic"]}]},"parallels":{"type":"array","length":2,"value":"number","property-type":"data-constant","transition":false,"requires":[{"name":["albers","lambertConformalConic"]}]}},"terrain":{"source":{"type":"string","required":true},"exaggeration":{"type":"number","property-type":"data-constant","default":1,"minimum":0,"maximum":1000,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"paint":["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky"],"paint_fill":{"fill-antialias":{"type":"boolean","default":true,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"fill-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{"type":"color","transition":true,"requires":[{"!":"fill-pattern"},{"fill-antialias":true}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["fill-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-pattern":{"type":"resolvedImage","transition":true,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"fill-extrusion-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["fill-extrusion-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{"type":"resolvedImage","transition":true,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{"type":"number","default":0,"minimum":0,"units":"meters","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{"type":"number","default":0,"minimum":0,"units":"meters","transition":true,"requires":["fill-extrusion-height"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{"type":"boolean","default":true,"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_line":{"line-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"line-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["line-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"line-width":{"type":"number","default":1,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{"type":"number","default":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{"type":"array","value":"number","minimum":0,"transition":true,"units":"line widths","requires":[{"!":"line-pattern"}],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-pattern":{"type":"resolvedImage","transition":true,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{"type":"color","transition":false,"requires":[{"!":"line-pattern"},{"source":"geojson","has":{"lineMetrics":true}}],"expression":{"interpolated":true,"parameters":["line-progress"]},"property-type":"color-ramp"}},"paint_circle":{"circle-radius":{"type":"number","default":5,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["circle-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{}},"default":"viewport","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"}},"paint_heatmap":{"heatmap-radius":{"type":"number","default":30,"minimum":1,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{"type":"number","default":1,"minimum":0,"transition":false,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"heatmap-color":{"type":"color","default":["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",0.1,"royalblue",0.3,"cyan",0.5,"lime",0.7,"yellow",1,"red"],"transition":false,"expression":{"interpolated":true,"parameters":["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_symbol":{"icon-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{"type":"color","default":"#000000","transition":true,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["icon-image","icon-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{"type":"color","default":"#000000","transition":true,"overridable":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["text-field","text-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_raster":{"raster-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{"type":"number","default":0,"period":360,"transition":true,"units":"degrees","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-resampling":{"type":"enum","values":{"linear":{},"nearest":{}},"default":"linear","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"transition":false,"units":"milliseconds","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"transition":false,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"viewport","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{"type":"number","default":0.5,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_background":{"background-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"background-pattern"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"background-pattern":{"type":"resolvedImage","transition":true,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"cross-faded"},"background-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_sky":{"sky-type":{"type":"enum","values":{"gradient":{},"atmosphere":{}},"default":"atmosphere","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{"type":"array","value":"number","length":2,"units":"degrees","minimum":[0,0],"maximum":[360,180],"transition":false,"requires":[{"sky-type":"atmosphere"}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{"type":"number","requires":[{"sky-type":"atmosphere"}],"default":10,"minimum":0,"maximum":100,"transition":false,"property-type":"data-constant"},"sky-gradient-center":{"type":"array","requires":[{"sky-type":"gradient"}],"value":"number","default":[0,0],"length":2,"units":"degrees","minimum":[0,0],"maximum":[360,180],"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{"type":"number","requires":[{"sky-type":"gradient"}],"default":90,"minimum":0,"maximum":180,"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient":{"type":"color","default":["interpolate",["linear"],["sky-radial-progress"],0.8,"#87ceeb",1,"white"],"transition":false,"requires":[{"sky-type":"gradient"}],"expression":{"interpolated":true,"parameters":["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{"type":"color","default":"white","transition":false,"requires":[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-atmosphere-color":{"type":"color","default":"white","transition":false,"requires":[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"transition":{"duration":{"type":"number","default":300,"minimum":0,"units":"milliseconds"},"delay":{"type":"number","default":0,"minimum":0,"units":"milliseconds"}},"property-type":{"data-driven":{"type":"property-type"},"cross-faded":{"type":"property-type"},"cross-faded-data-driven":{"type":"property-type"},"color-ramp":{"type":"property-type"},"data-constant":{"type":"property-type"},"constant":{"type":"property-type"}},"promoteId":{"*":{"type":"string"}}}');function ha(m,...d){for(const y of d)for(const T in y)m[T]=y[T];return m}function ti(m){return m instanceof Number||m instanceof String||m instanceof Boolean?m.valueOf():m}function ua(m){if(Array.isArray(m))return m.map(ua);if(m instanceof Object&&!(m instanceof Number||m instanceof String||m instanceof Boolean)){const d={};for(const y in m)d[y]=ua(m[y]);return d}return ti(m)}class Va extends Error{constructor(d,y){super(y),this.message=y,this.key=d}}class ns{constructor(d,y=[]){this.parent=d,this.bindings={};for(const[T,P]of y)this.bindings[T]=P}concat(d){return new ns(this,d)}get(d){if(this.bindings[d])return this.bindings[d];if(this.parent)return this.parent.get(d);throw new Error(`${d} not found in scope.`)}has(d){return!!this.bindings[d]||!!this.parent&&this.parent.has(d)}}const Xo={kind:"null"},qr={kind:"number"},ca={kind:"string"},va={kind:"boolean"},Ms={kind:"color"},rs={kind:"object"},Ai={kind:"value"},Na={kind:"collator"},sl={kind:"formatted"},eo={kind:"resolvedImage"};function ja(m,d){return{kind:"array",itemType:m,N:d}}function no(m){if(m.kind==="array"){const d=no(m.itemType);return typeof m.N=="number"?`array<${d}, ${m.N}>`:m.itemType.kind==="value"?"array":`array<${d}>`}return m.kind}const yo=[Xo,qr,ca,va,Ms,sl,rs,ja(Ai),eo];function Ra(m,d){if(d.kind==="error")return null;if(m.kind==="array"){if(d.kind==="array"&&(d.N===0&&d.itemType.kind==="value"||!Ra(m.itemType,d.itemType))&&(typeof m.N!="number"||m.N===d.N))return null}else{if(m.kind===d.kind)return null;if(m.kind==="value"){for(const y of yo)if(!Ra(y,d))return null}}return`Expected ${no(m)} but found ${no(d)} instead.`}function Ye(m,d){return d.some(y=>y.kind===m.kind)}function $t(m,d){return d.some(y=>y==="null"?m===null:y==="array"?Array.isArray(m):y==="object"?m&&!Array.isArray(m)&&typeof m=="object":y===typeof m)}function ft(m){var d={exports:{}};return m(d,d.exports),d.exports}var Gt=ft(function(m,d){var y={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,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,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],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,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,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],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,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,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],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,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,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,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],silver:[192,192,192,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],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function T(se){return(se=Math.round(se))<0?0:se>255?255:se}function P(se){return T(se[se.length-1]==="%"?parseFloat(se)/100*255:parseInt(se))}function Y(se){return(pe=se[se.length-1]==="%"?parseFloat(se)/100:parseFloat(se))<0?0:pe>1?1:pe;var pe}function te(se,pe,xe){return xe<0?xe+=1:xe>1&&(xe-=1),6*xe<1?se+(pe-se)*xe*6:2*xe<1?pe:3*xe<2?se+(pe-se)*(2/3-xe)*6:se}try{d.parseCSSColor=function(se){var pe,xe=se.replace(/ /g,"").toLowerCase();if(xe in y)return y[xe].slice();if(xe[0]==="#")return xe.length===4?(pe=parseInt(xe.substr(1),16))>=0&&pe<=4095?[(3840&pe)>>4|(3840&pe)>>8,240&pe|(240&pe)>>4,15&pe|(15&pe)<<4,1]:null:xe.length===7&&(pe=parseInt(xe.substr(1),16))>=0&&pe<=16777215?[(16711680&pe)>>16,(65280&pe)>>8,255&pe,1]:null;var Pe=xe.indexOf("("),je=xe.indexOf(")");if(Pe!==-1&&je+1===xe.length){var $e=xe.substr(0,Pe),ut=xe.substr(Pe+1,je-(Pe+1)).split(","),bt=1;switch($e){case"rgba":if(ut.length!==4)return null;bt=Y(ut.pop());case"rgb":return ut.length!==3?null:[P(ut[0]),P(ut[1]),P(ut[2]),bt];case"hsla":if(ut.length!==4)return null;bt=Y(ut.pop());case"hsl":if(ut.length!==3)return null;var kt=(parseFloat(ut[0])%360+360)%360/360,zt=Y(ut[1]),Xt=Y(ut[2]),wn=Xt<=.5?Xt*(zt+1):Xt+zt-Xt*zt,Ln=2*Xt-wn;return[T(255*te(Ln,wn,kt+1/3)),T(255*te(Ln,wn,kt)),T(255*te(Ln,wn,kt-1/3)),bt];default:return null}}return null}}catch(se){}});class bn{constructor(d,y,T,P=1){this.r=d,this.g=y,this.b=T,this.a=P}static parse(d){if(!d)return;if(d instanceof bn)return d;if(typeof d!="string")return;const y=Gt.parseCSSColor(d);return y?new bn(y[0]/255*y[3],y[1]/255*y[3],y[2]/255*y[3],y[3]):void 0}toString(){const[d,y,T,P]=this.toArray();return`rgba(${Math.round(d)},${Math.round(y)},${Math.round(T)},${P})`}toArray(){const{r:d,g:y,b:T,a:P}=this;return P===0?[0,0,0,0]:[255*d/P,255*y/P,255*T/P,P]}}bn.black=new bn(0,0,0,1),bn.white=new bn(1,1,1,1),bn.transparent=new bn(0,0,0,0),bn.red=new bn(1,0,0,1),bn.blue=new bn(0,0,1,1);class sr{constructor(d,y,T){this.sensitivity=d?y?"variant":"case":y?"accent":"base",this.locale=T,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(d,y){return this.collator.compare(d,y)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Br{constructor(d,y,T,P,Y){this.text=d.normalize?d.normalize():d,this.image=y,this.scale=T,this.fontStack=P,this.textColor=Y}}class Pr{constructor(d){this.sections=d}static fromString(d){return new Pr([new Br(d,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(d=>d.text.length!==0||d.image&&d.image.name.length!==0)}static factory(d){return d instanceof Pr?d:Pr.fromString(d)}toString(){return this.sections.length===0?"":this.sections.map(d=>d.text).join("")}serialize(){const d=["format"];for(const y of this.sections){if(y.image){d.push(["image",y.image.name]);continue}d.push(y.text);const T={};y.fontStack&&(T["text-font"]=["literal",y.fontStack.split(",")]),y.scale&&(T["font-scale"]=y.scale),y.textColor&&(T["text-color"]=["rgba"].concat(y.textColor.toArray())),d.push(T)}return d}}class Mi{constructor(d){this.name=d.name,this.available=d.available}toString(){return this.name}static fromString(d){return d?new Mi({name:d,available:!1}):null}serialize(){return["image",this.name]}}function vi(m,d,y,T){return typeof m=="number"&&m>=0&&m<=255&&typeof d=="number"&&d>=0&&d<=255&&typeof y=="number"&&y>=0&&y<=255?T===void 0||typeof T=="number"&&T>=0&&T<=1?null:`Invalid rgba value [${[m,d,y,T].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof T=="number"?[m,d,y,T]:[m,d,y]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function Sa(m){if(m===null||typeof m=="string"||typeof m=="boolean"||typeof m=="number"||m instanceof bn||m instanceof sr||m instanceof Pr||m instanceof Mi)return!0;if(Array.isArray(m)){for(const d of m)if(!Sa(d))return!1;return!0}if(typeof m=="object"){for(const d in m)if(!Sa(m[d]))return!1;return!0}return!1}function La(m){if(m===null)return Xo;if(typeof m=="string")return ca;if(typeof m=="boolean")return va;if(typeof m=="number")return qr;if(m instanceof bn)return Ms;if(m instanceof sr)return Na;if(m instanceof Pr)return sl;if(m instanceof Mi)return eo;if(Array.isArray(m)){const d=m.length;let y;for(const T of m){const P=La(T);if(y){if(y===P)continue;y=Ai;break}y=P}return ja(y||Ai,d)}return rs}function Cs(m){const d=typeof m;return m===null?"":d==="string"||d==="number"||d==="boolean"?String(m):m instanceof bn||m instanceof Pr||m instanceof Mi?m.toString():JSON.stringify(m)}class ko{constructor(d,y){this.type=d,this.value=y}static parse(d,y){if(d.length!==2)return y.error(`'literal' expression requires exactly one argument, but found ${d.length-1} instead.`);if(!Sa(d[1]))return y.error("invalid value");const T=d[1];let P=La(T);const Y=y.expectedType;return P.kind!=="array"||P.N!==0||!Y||Y.kind!=="array"||typeof Y.N=="number"&&Y.N!==0||(P=Y),new ko(P,T)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return this.type.kind==="array"||this.type.kind==="object"?["literal",this.value]:this.value instanceof bn?["rgba"].concat(this.value.toArray()):this.value instanceof Pr?this.value.serialize():this.value}}class Co{constructor(d){this.name="ExpressionEvaluationError",this.message=d}toJSON(){return this.message}}const gs={string:ca,number:qr,boolean:va,object:rs};class No{constructor(d,y){this.type=d,this.args=y}static parse(d,y){if(d.length<2)return y.error("Expected at least one argument.");let T,P=1;const Y=d[0];if(Y==="array"){let se,pe;if(d.length>2){const xe=d[1];if(typeof xe!="string"||!(xe in gs)||xe==="object")return y.error('The item type argument of "array" must be one of string, number, boolean',1);se=gs[xe],P++}else se=Ai;if(d.length>3){if(d[2]!==null&&(typeof d[2]!="number"||d[2]<0||d[2]!==Math.floor(d[2])))return y.error('The length argument to "array" must be a positive integer literal',2);pe=d[2],P++}T=ja(se,pe)}else T=gs[Y];const te=[];for(;P<d.length;P++){const se=y.parse(d[P],P,Ai);if(!se)return null;te.push(se)}return new No(T,te)}evaluate(d){for(let y=0;y<this.args.length;y++){const T=this.args[y].evaluate(d);if(!Ra(this.type,La(T)))return T;if(y===this.args.length-1)throw new Co(`Expected value to be of type ${no(this.type)}, but found ${no(La(T))} instead.`)}return null}eachChild(d){this.args.forEach(d)}outputDefined(){return this.args.every(d=>d.outputDefined())}serialize(){const d=this.type,y=[d.kind];if(d.kind==="array"){const T=d.itemType;if(T.kind==="string"||T.kind==="number"||T.kind==="boolean"){y.push(T.kind);const P=d.N;(typeof P=="number"||this.args.length>1)&&y.push(P)}}return y.concat(this.args.map(T=>T.serialize()))}}class wl{constructor(d){this.type=sl,this.sections=d}static parse(d,y){if(d.length<2)return y.error("Expected at least one argument.");const T=d[1];if(!Array.isArray(T)&&typeof T=="object")return y.error("First argument must be an image or text section.");const P=[];let Y=!1;for(let te=1;te<=d.length-1;++te){const se=d[te];if(Y&&typeof se=="object"&&!Array.isArray(se)){Y=!1;let pe=null;if(se["font-scale"]&&(pe=y.parse(se["font-scale"],1,qr),!pe))return null;let xe=null;if(se["text-font"]&&(xe=y.parse(se["text-font"],1,ja(ca)),!xe))return null;let Pe=null;if(se["text-color"]&&(Pe=y.parse(se["text-color"],1,Ms),!Pe))return null;const je=P[P.length-1];je.scale=pe,je.font=xe,je.textColor=Pe}else{const pe=y.parse(d[te],1,Ai);if(!pe)return null;const xe=pe.type.kind;if(xe!=="string"&&xe!=="value"&&xe!=="null"&&xe!=="resolvedImage")return y.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");Y=!0,P.push({content:pe,scale:null,font:null,textColor:null})}}return new wl(P)}evaluate(d){return new Pr(this.sections.map(y=>{const T=y.content.evaluate(d);return La(T)===eo?new Br("",T,null,null,null):new Br(Cs(T),null,y.scale?y.scale.evaluate(d):null,y.font?y.font.evaluate(d).join(","):null,y.textColor?y.textColor.evaluate(d):null)}))}eachChild(d){for(const y of this.sections)d(y.content),y.scale&&d(y.scale),y.font&&d(y.font),y.textColor&&d(y.textColor)}outputDefined(){return!1}serialize(){const d=["format"];for(const y of this.sections){d.push(y.content.serialize());const T={};y.scale&&(T["font-scale"]=y.scale.serialize()),y.font&&(T["text-font"]=y.font.serialize()),y.textColor&&(T["text-color"]=y.textColor.serialize()),d.push(T)}return d}}class Ua{constructor(d){this.type=eo,this.input=d}static parse(d,y){if(d.length!==2)return y.error("Expected two arguments.");const T=y.parse(d[1],1,ca);return T?new Ua(T):y.error("No image name provided.")}evaluate(d){const y=this.input.evaluate(d),T=Mi.fromString(y);return T&&d.availableImages&&(T.available=d.availableImages.indexOf(y)>-1),T}eachChild(d){d(this.input)}outputDefined(){return!1}serialize(){return["image",this.input.serialize()]}}const Vs={"to-boolean":va,"to-color":Ms,"to-number":qr,"to-string":ca};class jo{constructor(d,y){this.type=d,this.args=y}static parse(d,y){if(d.length<2)return y.error("Expected at least one argument.");const T=d[0];if((T==="to-boolean"||T==="to-string")&&d.length!==2)return y.error("Expected one argument.");const P=Vs[T],Y=[];for(let te=1;te<d.length;te++){const se=y.parse(d[te],te,Ai);if(!se)return null;Y.push(se)}return new jo(P,Y)}evaluate(d){if(this.type.kind==="boolean")return Boolean(this.args[0].evaluate(d));if(this.type.kind==="color"){let y,T;for(const P of this.args){if(y=P.evaluate(d),T=null,y instanceof bn)return y;if(typeof y=="string"){const Y=d.parseColor(y);if(Y)return Y}else if(Array.isArray(y)&&(T=y.length<3||y.length>4?`Invalid rbga value ${JSON.stringify(y)}: expected an array containing either three or four numeric values.`:vi(y[0],y[1],y[2],y[3]),!T))return new bn(y[0]/255,y[1]/255,y[2]/255,y[3])}throw new Co(T||`Could not parse color from value '${typeof y=="string"?y:String(JSON.stringify(y))}'`)}if(this.type.kind==="number"){let y=null;for(const T of this.args){if(y=T.evaluate(d),y===null)return 0;const P=Number(y);if(!isNaN(P))return P}throw new Co(`Could not convert ${JSON.stringify(y)} to number.`)}return this.type.kind==="formatted"?Pr.fromString(Cs(this.args[0].evaluate(d))):this.type.kind==="resolvedImage"?Mi.fromString(Cs(this.args[0].evaluate(d))):Cs(this.args[0].evaluate(d))}eachChild(d){this.args.forEach(d)}outputDefined(){return this.args.every(d=>d.outputDefined())}serialize(){if(this.type.kind==="formatted")return new wl([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(this.type.kind==="resolvedImage")return new Ua(this.args[0]).serialize();const d=[`to-${this.type.kind}`];return this.eachChild(y=>{d.push(y.serialize())}),d}}const ys=["Unknown","Point","LineString","Polygon"];class Ol{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null}id(){return this.feature&&"id"in this.feature&&this.feature.id?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?ys[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const d=this.featureDistanceData.center,y=this.featureDistanceData.scale,{x:T,y:P}=this.featureTileCoord;return this.featureDistanceData.bearing[0]*(T*y-d[0])+this.featureDistanceData.bearing[1]*(P*y-d[1])}return 0}parseColor(d){let y=this._parseColorCache[d];return y||(y=this._parseColorCache[d]=bn.parse(d)),y}}class is{constructor(d,y,T,P){this.name=d,this.type=y,this._evaluate=T,this.args=P}evaluate(d){return this._evaluate(d,this.args)}eachChild(d){this.args.forEach(d)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map(d=>d.serialize()))}static parse(d,y){const T=d[0],P=is.definitions[T];if(!P)return y.error(`Unknown expression "${T}". If you wanted a literal array, use ["literal", [...]].`,0);const Y=Array.isArray(P)?P[0]:P.type,te=Array.isArray(P)?[[P[1],P[2]]]:P.overloads,se=te.filter(([xe])=>!Array.isArray(xe)||xe.length===d.length-1);let pe=null;for(const[xe,Pe]of se){pe=new Ho(y.registry,y.path,null,y.scope);const je=[];let $e=!1;for(let ut=1;ut<d.length;ut++){const bt=d[ut],kt=Array.isArray(xe)?xe[ut-1]:xe.type,zt=pe.parse(bt,1+je.length,kt);if(!zt){$e=!0;break}je.push(zt)}if(!$e)if(Array.isArray(xe)&&xe.length!==je.length)pe.error(`Expected ${xe.length} arguments, but found ${je.length} instead.`);else{for(let ut=0;ut<je.length;ut++){const bt=Array.isArray(xe)?xe[ut]:xe.type,kt=je[ut];pe.concat(ut+1).checkSubtype(bt,kt.type)}if(pe.errors.length===0)return new is(T,Y,Pe,je)}}if(se.length===1)y.errors.push(...pe.errors);else{const xe=(se.length?se:te).map(([je])=>{return $e=je,Array.isArray($e)?`(${$e.map(no).join(", ")})`:`(${no($e.type)}...)`;var $e}).join(" | "),Pe=[];for(let je=1;je<d.length;je++){const $e=y.parse(d[je],1+Pe.length);if(!$e)return null;Pe.push(no($e.type))}y.error(`Expected arguments of type ${xe}, but found (${Pe.join(", ")}) instead.`)}return null}static register(d,y){is.definitions=y;for(const T in y)d[T]=is}}class Ta{constructor(d,y,T){this.type=Na,this.locale=T,this.caseSensitive=d,this.diacriticSensitive=y}static parse(d,y){if(d.length!==2)return y.error("Expected one argument.");const T=d[1];if(typeof T!="object"||Array.isArray(T))return y.error("Collator options argument must be an object.");const P=y.parse(T["case-sensitive"]!==void 0&&T["case-sensitive"],1,va);if(!P)return null;const Y=y.parse(T["diacritic-sensitive"]!==void 0&&T["diacritic-sensitive"],1,va);if(!Y)return null;let te=null;return T.locale&&(te=y.parse(T.locale,1,ca),!te)?null:new Ta(P,Y,te)}evaluate(d){return new sr(this.caseSensitive.evaluate(d),this.diacriticSensitive.evaluate(d),this.locale?this.locale.evaluate(d):null)}eachChild(d){d(this.caseSensitive),d(this.diacriticSensitive),this.locale&&d(this.locale)}outputDefined(){return!1}serialize(){const d={};return d["case-sensitive"]=this.caseSensitive.serialize(),d["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(d.locale=this.locale.serialize()),["collator",d]}}const Lr=8192;function Vo(m,d){m[0]=Math.min(m[0],d[0]),m[1]=Math.min(m[1],d[1]),m[2]=Math.max(m[2],d[0]),m[3]=Math.max(m[3],d[1])}function ll(m,d){return!(m[0]<=d[0]||m[2]>=d[2]||m[1]<=d[1]||m[3]>=d[3])}function xu(m,d){const y=(180+m[0])/360,T=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+m[1]*Math.PI/360)))/360,P=Math.pow(2,d.z);return[Math.round(y*P*Lr),Math.round(T*P*Lr)]}function vo(m,d,y){const T=m[0]-d[0],P=m[1]-d[1],Y=m[0]-y[0],te=m[1]-y[1];return T*te-Y*P==0&&T*Y<=0&&P*te<=0}function _o(m,d){let y=!1;for(let te=0,se=d.length;te<se;te++){const pe=d[te];for(let xe=0,Pe=pe.length;xe<Pe-1;xe++){if(vo(m,pe[xe],pe[xe+1]))return!1;(P=pe[xe])[1]>(T=m)[1]!=(Y=pe[xe+1])[1]>T[1]&&T[0]<(Y[0]-P[0])*(T[1]-P[1])/(Y[1]-P[1])+P[0]&&(y=!y)}}var T,P,Y;return y}function Rs(m,d){for(let y=0;y<d.length;y++)if(_o(m,d[y]))return!0;return!1}function Fl(m,d,y,T){const P=T[0]-y[0],Y=T[1]-y[1],te=(m[0]-y[0])*Y-P*(m[1]-y[1]),se=(d[0]-y[0])*Y-P*(d[1]-y[1]);return te>0&&se<0||te<0&&se>0}function Zo(m,d,y){for(const xe of y)for(let Pe=0;Pe<xe.length-1;++Pe)if((se=[(te=xe[Pe+1])[0]-(Y=xe[Pe])[0],te[1]-Y[1]])[0]*(pe=[(P=d)[0]-(T=m)[0],P[1]-T[1]])[1]-se[1]*pe[0]!=0&&Fl(T,P,Y,te)&&Fl(Y,te,T,P))return!0;var T,P,Y,te,se,pe;return!1}function ql(m,d){for(let y=0;y<m.length;++y)if(!_o(m[y],d))return!1;for(let y=0;y<m.length-1;++y)if(Zo(m[y],m[y+1],d))return!1;return!0}function Al(m,d){for(let y=0;y<d.length;y++)if(ql(m,d[y]))return!0;return!1}function Kt(m,d,y){const T=[];for(let P=0;P<m.length;P++){const Y=[];for(let te=0;te<m[P].length;te++){const se=xu(m[P][te],y);Vo(d,se),Y.push(se)}T.push(Y)}return T}function Ml(m,d,y){const T=[];for(let P=0;P<m.length;P++){const Y=Kt(m[P],d,y);T.push(Y)}return T}function rr(m,d,y,T){if(m[0]<y[0]||m[0]>y[2]){const P=.5*T;let Y=m[0]-y[0]>P?-T:y[0]-m[0]>P?T:0;Y===0&&(Y=m[0]-y[2]>P?-T:y[2]-m[0]>P?T:0),m[0]+=Y}Vo(d,m)}function to(m,d,y,T){const P=Math.pow(2,T.z)*Lr,Y=[T.x*Lr,T.y*Lr],te=[];if(!m)return te;for(const se of m)for(const pe of se){const xe=[pe.x+Y[0],pe.y+Y[1]];rr(xe,d,y,P),te.push(xe)}return te}function ho(m,d,y,T){const P=Math.pow(2,T.z)*Lr,Y=[T.x*Lr,T.y*Lr],te=[];if(!m)return te;for(const pe of m){const xe=[];for(const Pe of pe){const je=[Pe.x+Y[0],Pe.y+Y[1]];Vo(d,je),xe.push(je)}te.push(xe)}if(d[2]-d[0]<=P/2){(se=d)[0]=se[1]=1/0,se[2]=se[3]=-1/0;for(const pe of te)for(const xe of pe)rr(xe,d,y,P)}var se;return te}class xa{constructor(d,y){this.type=va,this.geojson=d,this.geometries=y}static parse(d,y){if(d.length!==2)return y.error(`'within' expression requires exactly one argument, but found ${d.length-1} instead.`);if(Sa(d[1])){const T=d[1];if(T.type==="FeatureCollection")for(let P=0;P<T.features.length;++P){const Y=T.features[P].geometry.type;if(Y==="Polygon"||Y==="MultiPolygon")return new xa(T,T.features[P].geometry)}else if(T.type==="Feature"){const P=T.geometry.type;if(P==="Polygon"||P==="MultiPolygon")return new xa(T,T.geometry)}else if(T.type==="Polygon"||T.type==="MultiPolygon")return new xa(T,T)}return y.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(d){if(d.geometry()!=null&&d.canonicalID()!=null){if(d.geometryType()==="Point")return function(y,T){const P=[1/0,1/0,-1/0,-1/0],Y=[1/0,1/0,-1/0,-1/0],te=y.canonicalID();if(!te)return!1;if(T.type==="Polygon"){const se=Kt(T.coordinates,Y,te),pe=to(y.geometry(),P,Y,te);if(!ll(P,Y))return!1;for(const xe of pe)if(!_o(xe,se))return!1}if(T.type==="MultiPolygon"){const se=Ml(T.coordinates,Y,te),pe=to(y.geometry(),P,Y,te);if(!ll(P,Y))return!1;for(const xe of pe)if(!Rs(xe,se))return!1}return!0}(d,this.geometries);if(d.geometryType()==="LineString")return function(y,T){const P=[1/0,1/0,-1/0,-1/0],Y=[1/0,1/0,-1/0,-1/0],te=y.canonicalID();if(!te)return!1;if(T.type==="Polygon"){const se=Kt(T.coordinates,Y,te),pe=ho(y.geometry(),P,Y,te);if(!ll(P,Y))return!1;for(const xe of pe)if(!ql(xe,se))return!1}if(T.type==="MultiPolygon"){const se=Ml(T.coordinates,Y,te),pe=ho(y.geometry(),P,Y,te);if(!ll(P,Y))return!1;for(const xe of pe)if(!Al(xe,se))return!1}return!0}(d,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}serialize(){return["within",this.geojson]}}function Ea(m){if(m instanceof is&&(m.name==="get"&&m.args.length===1||m.name==="feature-state"||m.name==="has"&&m.args.length===1||m.name==="properties"||m.name==="geometry-type"||m.name==="id"||/^filter-/.test(m.name))||m instanceof xa)return!1;let d=!0;return m.eachChild(y=>{d&&!Ea(y)&&(d=!1)}),d}function ao(m){if(m instanceof is&&m.name==="feature-state")return!1;let d=!0;return m.eachChild(y=>{d&&!ao(y)&&(d=!1)}),d}function Ki(m,d){if(m instanceof is&&d.indexOf(m.name)>=0)return!1;let y=!0;return m.eachChild(T=>{y&&!Ki(T,d)&&(y=!1)}),y}class $o{constructor(d,y){this.type=y.type,this.name=d,this.boundExpression=y}static parse(d,y){if(d.length!==2||typeof d[1]!="string")return y.error("'var' expression requires exactly one string literal argument.");const T=d[1];return y.scope.has(T)?new $o(T,y.scope.get(T)):y.error(`Unknown variable "${T}". Make sure "${T}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(d){return this.boundExpression.evaluate(d)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}class Ho{constructor(d,y=[],T,P=new ns,Y=[]){this.registry=d,this.path=y,this.key=y.map(te=>`[${te}]`).join(""),this.scope=P,this.errors=Y,this.expectedType=T}parse(d,y,T,P,Y={}){return y?this.concat(y,T,P)._parse(d,Y):this._parse(d,Y)}_parse(d,y){function T(P,Y,te){return te==="assert"?new No(Y,[P]):te==="coerce"?new jo(Y,[P]):P}if(d!==null&&typeof d!="string"&&typeof d!="boolean"&&typeof d!="number"||(d=["literal",d]),Array.isArray(d)){if(d.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const P=d[0];if(typeof P!="string")return this.error(`Expression name must be a string, but found ${typeof P} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;const Y=this.registry[P];if(Y){let te=Y.parse(d,this);if(!te)return null;if(this.expectedType){const se=this.expectedType,pe=te.type;if(se.kind!=="string"&&se.kind!=="number"&&se.kind!=="boolean"&&se.kind!=="object"&&se.kind!=="array"||pe.kind!=="value")if(se.kind!=="color"&&se.kind!=="formatted"&&se.kind!=="resolvedImage"||pe.kind!=="value"&&pe.kind!=="string"){if(this.checkSubtype(se,pe))return null}else te=T(te,se,y.typeAnnotation||"coerce");else te=T(te,se,y.typeAnnotation||"assert")}if(!(te instanceof ko)&&te.type.kind!=="resolvedImage"&&de(te)){const se=new Ol;try{te=new ko(te.type,te.evaluate(se))}catch(pe){return this.error(pe.message),null}}return te}return this.error(`Unknown expression "${P}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(d===void 0?"'undefined' value invalid. Use null instead.":typeof d=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof d} instead.`)}concat(d,y,T){const P=typeof d=="number"?this.path.concat(d):this.path,Y=T?this.scope.concat(T):this.scope;return new Ho(this.registry,P,y||null,Y,this.errors)}error(d,...y){const T=`${this.key}${y.map(P=>`[${P}]`).join("")}`;this.errors.push(new Va(T,d))}checkSubtype(d,y){const T=Ra(d,y);return T&&this.error(T),T}}function de(m){if(m instanceof $o)return de(m.boundExpression);if(m instanceof is&&m.name==="error"||m instanceof Ta||m instanceof xa)return!1;const d=m instanceof jo||m instanceof No;let y=!0;return m.eachChild(T=>{y=d?y&&de(T):y&&T instanceof ko}),!!y&&Ea(m)&&Ki(m,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center"])}function Me(m,d){const y=m.length-1;let T,P,Y=0,te=y,se=0;for(;Y<=te;)if(se=Math.floor((Y+te)/2),T=m[se],P=m[se+1],T<=d){if(se===y||d<P)return se;Y=se+1}else{if(!(T>d))throw new Co("Input is not a number.");te=se-1}return 0}class qe{constructor(d,y,T){this.type=d,this.input=y,this.labels=[],this.outputs=[];for(const[P,Y]of T)this.labels.push(P),this.outputs.push(Y)}static parse(d,y){if(d.length-1<4)return y.error(`Expected at least 4 arguments, but found only ${d.length-1}.`);if((d.length-1)%2!=0)return y.error("Expected an even number of arguments.");const T=y.parse(d[1],1,qr);if(!T)return null;const P=[];let Y=null;y.expectedType&&y.expectedType.kind!=="value"&&(Y=y.expectedType);for(let te=1;te<d.length;te+=2){const se=te===1?-1/0:d[te],pe=d[te+1],xe=te,Pe=te+1;if(typeof se!="number")return y.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',xe);if(P.length&&P[P.length-1][0]>=se)return y.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',xe);const je=y.parse(pe,Pe,Y);if(!je)return null;Y=Y||je.type,P.push([se,je])}return new qe(Y,T,P)}evaluate(d){const y=this.labels,T=this.outputs;if(y.length===1)return T[0].evaluate(d);const P=this.input.evaluate(d);if(P<=y[0])return T[0].evaluate(d);const Y=y.length;return P>=y[Y-1]?T[Y-1].evaluate(d):T[Me(y,P)].evaluate(d)}eachChild(d){d(this.input);for(const y of this.outputs)d(y)}outputDefined(){return this.outputs.every(d=>d.outputDefined())}serialize(){const d=["step",this.input.serialize()];for(let y=0;y<this.labels.length;y++)y>0&&d.push(this.labels[y]),d.push(this.outputs[y].serialize());return d}}function Qe(m,d,y){return m*(1-y)+d*y}var J=Object.freeze({__proto__:null,number:Qe,color:function(m,d,y){return new bn(Qe(m.r,d.r,y),Qe(m.g,d.g,y),Qe(m.b,d.b,y),Qe(m.a,d.a,y))},array:function(m,d,y){return m.map((T,P)=>Qe(T,d[P],y))}});const ae=.95047,ve=1.08883,be=4/29,Re=6/29,Ge=3*Re*Re,rt=Math.PI/180,Dt=180/Math.PI;function Mt(m){return m>.008856451679035631?Math.pow(m,1/3):m/Ge+be}function Yt(m){return m>Re?m*m*m:Ge*(m-be)}function Xn(m){return 255*(m<=.0031308?12.92*m:1.055*Math.pow(m,1/2.4)-.055)}function Sn(m){return(m/=255)<=.04045?m/12.92:Math.pow((m+.055)/1.055,2.4)}function Gn(m){const d=Sn(m.r),y=Sn(m.g),T=Sn(m.b),P=Mt((.4124564*d+.3575761*y+.1804375*T)/ae),Y=Mt((.2126729*d+.7151522*y+.072175*T)/1);return{l:116*Y-16,a:500*(P-Y),b:200*(Y-Mt((.0193339*d+.119192*y+.9503041*T)/ve)),alpha:m.a}}function Or(m){let d=(m.l+16)/116,y=isNaN(m.a)?d:d+m.a/500,T=isNaN(m.b)?d:d-m.b/200;return d=1*Yt(d),y=ae*Yt(y),T=ve*Yt(T),new bn(Xn(3.2404542*y-1.5371385*d-.4985314*T),Xn(-.969266*y+1.8760108*d+.041556*T),Xn(.0556434*y-.2040259*d+1.0572252*T),m.alpha)}function ki(m,d,y){const T=d-m;return m+y*(T>180||T<-180?T-360*Math.round(T/360):T)}const Ia={forward:Gn,reverse:Or,interpolate:function(m,d,y){return{l:Qe(m.l,d.l,y),a:Qe(m.a,d.a,y),b:Qe(m.b,d.b,y),alpha:Qe(m.alpha,d.alpha,y)}}},ma={forward:function(m){const{l:d,a:y,b:T}=Gn(m),P=Math.atan2(T,y)*Dt;return{h:P<0?P+360:P,c:Math.sqrt(y*y+T*T),l:d,alpha:m.a}},reverse:function(m){const d=m.h*rt,y=m.c;return Or({l:m.l,a:Math.cos(d)*y,b:Math.sin(d)*y,alpha:m.alpha})},interpolate:function(m,d,y){return{h:ki(m.h,d.h,y),c:Qe(m.c,d.c,y),l:Qe(m.l,d.l,y),alpha:Qe(m.alpha,d.alpha,y)}}};var na=Object.freeze({__proto__:null,lab:Ia,hcl:ma});class Ya{constructor(d,y,T,P,Y){this.type=d,this.operator=y,this.interpolation=T,this.input=P,this.labels=[],this.outputs=[];for(const[te,se]of Y)this.labels.push(te),this.outputs.push(se)}static interpolationFactor(d,y,T,P){let Y=0;if(d.name==="exponential")Y=Da(y,d.base,T,P);else if(d.name==="linear")Y=Da(y,1,T,P);else if(d.name==="cubic-bezier"){const te=d.controlPoints;Y=new x(te[0],te[1],te[2],te[3]).solve(Da(y,1,T,P))}return Y}static parse(d,y){let[T,P,Y,...te]=d;if(!Array.isArray(P)||P.length===0)return y.error("Expected an interpolation type expression.",1);if(P[0]==="linear")P={name:"linear"};else if(P[0]==="exponential"){const xe=P[1];if(typeof xe!="number")return y.error("Exponential interpolation requires a numeric base.",1,1);P={name:"exponential",base:xe}}else{if(P[0]!=="cubic-bezier")return y.error(`Unknown interpolation type ${String(P[0])}`,1,0);{const xe=P.slice(1);if(xe.length!==4||xe.some(Pe=>typeof Pe!="number"||Pe<0||Pe>1))return y.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);P={name:"cubic-bezier",controlPoints:xe}}}if(d.length-1<4)return y.error(`Expected at least 4 arguments, but found only ${d.length-1}.`);if((d.length-1)%2!=0)return y.error("Expected an even number of arguments.");if(Y=y.parse(Y,2,qr),!Y)return null;const se=[];let pe=null;T==="interpolate-hcl"||T==="interpolate-lab"?pe=Ms:y.expectedType&&y.expectedType.kind!=="value"&&(pe=y.expectedType);for(let xe=0;xe<te.length;xe+=2){const Pe=te[xe],je=te[xe+1],$e=xe+3,ut=xe+4;if(typeof Pe!="number")return y.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',$e);if(se.length&&se[se.length-1][0]>=Pe)return y.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',$e);const bt=y.parse(je,ut,pe);if(!bt)return null;pe=pe||bt.type,se.push([Pe,bt])}return pe.kind==="number"||pe.kind==="color"||pe.kind==="array"&&pe.itemType.kind==="number"&&typeof pe.N=="number"?new Ya(pe,T,P,Y,se):y.error(`Type ${no(pe)} is not interpolatable.`)}evaluate(d){const y=this.labels,T=this.outputs;if(y.length===1)return T[0].evaluate(d);const P=this.input.evaluate(d);if(P<=y[0])return T[0].evaluate(d);const Y=y.length;if(P>=y[Y-1])return T[Y-1].evaluate(d);const te=Me(y,P),se=Ya.interpolationFactor(this.interpolation,P,y[te],y[te+1]),pe=T[te].evaluate(d),xe=T[te+1].evaluate(d);return this.operator==="interpolate"?J[this.type.kind.toLowerCase()](pe,xe,se):this.operator==="interpolate-hcl"?ma.reverse(ma.interpolate(ma.forward(pe),ma.forward(xe),se)):Ia.reverse(Ia.interpolate(Ia.forward(pe),Ia.forward(xe),se))}eachChild(d){d(this.input);for(const y of this.outputs)d(y)}outputDefined(){return this.outputs.every(d=>d.outputDefined())}serialize(){let d;d=this.interpolation.name==="linear"?["linear"]:this.interpolation.name==="exponential"?this.interpolation.base===1?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);const y=[this.operator,d,this.input.serialize()];for(let T=0;T<this.labels.length;T++)y.push(this.labels[T],this.outputs[T].serialize());return y}}function Da(m,d,y,T){const P=T-y,Y=m-y;return P===0?0:d===1?Y/P:(Math.pow(d,Y)-1)/(Math.pow(d,P)-1)}class Yi{constructor(d,y){this.type=d,this.args=y}static parse(d,y){if(d.length<2)return y.error("Expectected at least one argument.");let T=null;const P=y.expectedType;P&&P.kind!=="value"&&(T=P);const Y=[];for(const se of d.slice(1)){const pe=y.parse(se,1+Y.length,T,void 0,{typeAnnotation:"omit"});if(!pe)return null;T=T||pe.type,Y.push(pe)}const te=P&&Y.some(se=>Ra(P,se.type));return new Yi(te?Ai:T,Y)}evaluate(d){let y,T=null,P=0;for(const Y of this.args){if(P++,T=Y.evaluate(d),T&&T instanceof Mi&&!T.available&&(y||(y=T),T=null,P===this.args.length))return y;if(T!==null)break}return T}eachChild(d){this.args.forEach(d)}outputDefined(){return this.args.every(d=>d.outputDefined())}serialize(){const d=["coalesce"];return this.eachChild(y=>{d.push(y.serialize())}),d}}class Ba{constructor(d,y){this.type=y.type,this.bindings=[].concat(d),this.result=y}evaluate(d){return this.result.evaluate(d)}eachChild(d){for(const y of this.bindings)d(y[1]);d(this.result)}static parse(d,y){if(d.length<4)return y.error(`Expected at least 3 arguments, but found ${d.length-1} instead.`);const T=[];for(let Y=1;Y<d.length-1;Y+=2){const te=d[Y];if(typeof te!="string")return y.error(`Expected string, but found ${typeof te} instead.`,Y);if(/[^a-zA-Z0-9_]/.test(te))return y.error("Variable names must contain only alphanumeric characters or '_'.",Y);const se=y.parse(d[Y+1],Y+1);if(!se)return null;T.push([te,se])}const P=y.parse(d[d.length-1],d.length-1,y.expectedType,T);return P?new Ba(T,P):null}outputDefined(){return this.result.outputDefined()}serialize(){const d=["let"];for(const[y,T]of this.bindings)d.push(y,T.serialize());return d.push(this.result.serialize()),d}}class gl{constructor(d,y,T){this.type=d,this.index=y,this.input=T}static parse(d,y){if(d.length!==3)return y.error(`Expected 2 arguments, but found ${d.length-1} instead.`);const T=y.parse(d[1],1,qr),P=y.parse(d[2],2,ja(y.expectedType||Ai));return T&&P?new gl(P.type.itemType,T,P):null}evaluate(d){const y=this.index.evaluate(d),T=this.input.evaluate(d);if(y<0)throw new Co(`Array index out of bounds: ${y} < 0.`);if(y>=T.length)throw new Co(`Array index out of bounds: ${y} > ${T.length-1}.`);if(y!==Math.floor(y))throw new Co(`Array index must be an integer, but found ${y} instead.`);return T[y]}eachChild(d){d(this.index),d(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}class Oa{constructor(d,y){this.type=va,this.needle=d,this.haystack=y}static parse(d,y){if(d.length!==3)return y.error(`Expected 2 arguments, but found ${d.length-1} instead.`);const T=y.parse(d[1],1,Ai),P=y.parse(d[2],2,Ai);return T&&P?Ye(T.type,[va,ca,qr,Xo,Ai])?new Oa(T,P):y.error(`Expected first argument to be of type boolean, string, number or null, but found ${no(T.type)} instead`):null}evaluate(d){const y=this.needle.evaluate(d),T=this.haystack.evaluate(d);if(T==null)return!1;if(!$t(y,["boolean","string","number","null"]))throw new Co(`Expected first argument to be of type boolean, string, number or null, but found ${no(La(y))} instead.`);if(!$t(T,["string","array"]))throw new Co(`Expected second argument to be of type array or string, but found ${no(La(T))} instead.`);return T.indexOf(y)>=0}eachChild(d){d(this.needle),d(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}class Oo{constructor(d,y,T){this.type=qr,this.needle=d,this.haystack=y,this.fromIndex=T}static parse(d,y){if(d.length<=2||d.length>=5)return y.error(`Expected 3 or 4 arguments, but found ${d.length-1} instead.`);const T=y.parse(d[1],1,Ai),P=y.parse(d[2],2,Ai);if(!T||!P)return null;if(!Ye(T.type,[va,ca,qr,Xo,Ai]))return y.error(`Expected first argument to be of type boolean, string, number or null, but found ${no(T.type)} instead`);if(d.length===4){const Y=y.parse(d[3],3,qr);return Y?new Oo(T,P,Y):null}return new Oo(T,P)}evaluate(d){const y=this.needle.evaluate(d),T=this.haystack.evaluate(d);if(!$t(y,["boolean","string","number","null"]))throw new Co(`Expected first argument to be of type boolean, string, number or null, but found ${no(La(y))} instead.`);if(!$t(T,["string","array"]))throw new Co(`Expected second argument to be of type array or string, but found ${no(La(T))} instead.`);if(this.fromIndex){const P=this.fromIndex.evaluate(d);return T.indexOf(y,P)}return T.indexOf(y)}eachChild(d){d(this.needle),d(this.haystack),this.fromIndex&&d(this.fromIndex)}outputDefined(){return!1}serialize(){if(this.fromIndex!=null&&this.fromIndex!==void 0){const d=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),d]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}class Ls{constructor(d,y,T,P,Y,te){this.inputType=d,this.type=y,this.input=T,this.cases=P,this.outputs=Y,this.otherwise=te}static parse(d,y){if(d.length<5)return y.error(`Expected at least 4 arguments, but found only ${d.length-1}.`);if(d.length%2!=1)return y.error("Expected an even number of arguments.");let T,P;y.expectedType&&y.expectedType.kind!=="value"&&(P=y.expectedType);const Y={},te=[];for(let xe=2;xe<d.length-1;xe+=2){let Pe=d[xe];const je=d[xe+1];Array.isArray(Pe)||(Pe=[Pe]);const $e=y.concat(xe);if(Pe.length===0)return $e.error("Expected at least one branch label.");for(const bt of Pe){if(typeof bt!="number"&&typeof bt!="string")return $e.error("Branch labels must be numbers or strings.");if(typeof bt=="number"&&Math.abs(bt)>Number.MAX_SAFE_INTEGER)return $e.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof bt=="number"&&Math.floor(bt)!==bt)return $e.error("Numeric branch labels must be integer values.");if(T){if($e.checkSubtype(T,La(bt)))return null}else T=La(bt);if(Y[String(bt)]!==void 0)return $e.error("Branch labels must be unique.");Y[String(bt)]=te.length}const ut=y.parse(je,xe,P);if(!ut)return null;P=P||ut.type,te.push(ut)}const se=y.parse(d[1],1,Ai);if(!se)return null;const pe=y.parse(d[d.length-1],d.length-1,P);return pe?se.type.kind!=="value"&&y.concat(1).checkSubtype(T,se.type)?null:new Ls(T,P,se,Y,te,pe):null}evaluate(d){const y=this.input.evaluate(d);return(La(y)===this.inputType&&this.outputs[this.cases[y]]||this.otherwise).evaluate(d)}eachChild(d){d(this.input),this.outputs.forEach(d),d(this.otherwise)}outputDefined(){return this.outputs.every(d=>d.outputDefined())&&this.otherwise.outputDefined()}serialize(){const d=["match",this.input.serialize()],y=Object.keys(this.cases).sort(),T=[],P={};for(const te of y){const se=P[this.cases[te]];se===void 0?(P[this.cases[te]]=T.length,T.push([this.cases[te],[te]])):T[se][1].push(te)}const Y=te=>this.inputType.kind==="number"?Number(te):te;for(const[te,se]of T)d.push(se.length===1?Y(se[0]):se.map(Y)),d.push(this.outputs[te].serialize());return d.push(this.otherwise.serialize()),d}}class Ss{constructor(d,y,T){this.type=d,this.branches=y,this.otherwise=T}static parse(d,y){if(d.length<4)return y.error(`Expected at least 3 arguments, but found only ${d.length-1}.`);if(d.length%2!=0)return y.error("Expected an odd number of arguments.");let T;y.expectedType&&y.expectedType.kind!=="value"&&(T=y.expectedType);const P=[];for(let te=1;te<d.length-1;te+=2){const se=y.parse(d[te],te,va);if(!se)return null;const pe=y.parse(d[te+1],te+1,T);if(!pe)return null;P.push([se,pe]),T=T||pe.type}const Y=y.parse(d[d.length-1],d.length-1,T);return Y?new Ss(T,P,Y):null}evaluate(d){for(const[y,T]of this.branches)if(y.evaluate(d))return T.evaluate(d);return this.otherwise.evaluate(d)}eachChild(d){for(const[y,T]of this.branches)d(y),d(T);d(this.otherwise)}outputDefined(){return this.branches.every(([d,y])=>y.outputDefined())&&this.otherwise.outputDefined()}serialize(){const d=["case"];return this.eachChild(y=>{d.push(y.serialize())}),d}}class Es{constructor(d,y,T,P){this.type=d,this.input=y,this.beginIndex=T,this.endIndex=P}static parse(d,y){if(d.length<=2||d.length>=5)return y.error(`Expected 3 or 4 arguments, but found ${d.length-1} instead.`);const T=y.parse(d[1],1,Ai),P=y.parse(d[2],2,qr);if(!T||!P)return null;if(!Ye(T.type,[ja(Ai),ca,Ai]))return y.error(`Expected first argument to be of type array or string, but found ${no(T.type)} instead`);if(d.length===4){const Y=y.parse(d[3],3,qr);return Y?new Es(T.type,T,P,Y):null}return new Es(T.type,T,P)}evaluate(d){const y=this.input.evaluate(d),T=this.beginIndex.evaluate(d);if(!$t(y,["string","array"]))throw new Co(`Expected first argument to be of type array or string, but found ${no(La(y))} instead.`);if(this.endIndex){const P=this.endIndex.evaluate(d);return y.slice(T,P)}return y.slice(T)}eachChild(d){d(this.input),d(this.beginIndex),this.endIndex&&d(this.endIndex)}outputDefined(){return!1}serialize(){if(this.endIndex!=null&&this.endIndex!==void 0){const d=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),d]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}function vs(m,d){return m==="=="||m==="!="?d.kind==="boolean"||d.kind==="string"||d.kind==="number"||d.kind==="null"||d.kind==="value":d.kind==="string"||d.kind==="number"||d.kind==="value"}function po(m,d,y,T){return T.compare(d,y)===0}function oo(m,d,y){const T=m!=="=="&&m!=="!=";return class wg{constructor(Y,te,se){this.type=va,this.lhs=Y,this.rhs=te,this.collator=se,this.hasUntypedArgument=Y.type.kind==="value"||te.type.kind==="value"}static parse(Y,te){if(Y.length!==3&&Y.length!==4)return te.error("Expected two or three arguments.");const se=Y[0];let pe=te.parse(Y[1],1,Ai);if(!pe)return null;if(!vs(se,pe.type))return te.concat(1).error(`"${se}" comparisons are not supported for type '${no(pe.type)}'.`);let xe=te.parse(Y[2],2,Ai);if(!xe)return null;if(!vs(se,xe.type))return te.concat(2).error(`"${se}" comparisons are not supported for type '${no(xe.type)}'.`);if(pe.type.kind!==xe.type.kind&&pe.type.kind!=="value"&&xe.type.kind!=="value")return te.error(`Cannot compare types '${no(pe.type)}' and '${no(xe.type)}'.`);T&&(pe.type.kind==="value"&&xe.type.kind!=="value"?pe=new No(xe.type,[pe]):pe.type.kind!=="value"&&xe.type.kind==="value"&&(xe=new No(pe.type,[xe])));let Pe=null;if(Y.length===4){if(pe.type.kind!=="string"&&xe.type.kind!=="string"&&pe.type.kind!=="value"&&xe.type.kind!=="value")return te.error("Cannot use collator to compare non-string types.");if(Pe=te.parse(Y[3],3,Na),!Pe)return null}return new wg(pe,xe,Pe)}evaluate(Y){const te=this.lhs.evaluate(Y),se=this.rhs.evaluate(Y);if(T&&this.hasUntypedArgument){const pe=La(te),xe=La(se);if(pe.kind!==xe.kind||pe.kind!=="string"&&pe.kind!=="number")throw new Co(`Expected arguments for "${m}" to be (string, string) or (number, number), but found (${pe.kind}, ${xe.kind}) instead.`)}if(this.collator&&!T&&this.hasUntypedArgument){const pe=La(te),xe=La(se);if(pe.kind!=="string"||xe.kind!=="string")return d(Y,te,se)}return this.collator?y(Y,te,se,this.collator.evaluate(Y)):d(Y,te,se)}eachChild(Y){Y(this.lhs),Y(this.rhs),this.collator&&Y(this.collator)}outputDefined(){return!0}serialize(){const Y=[m];return this.eachChild(te=>{Y.push(te.serialize())}),Y}}}const Ko=oo("==",function(m,d,y){return d===y},po),Ts=oo("!=",function(m,d,y){return d!==y},function(m,d,y,T){return!po(0,d,y,T)}),as=oo("<",function(m,d,y){return d<y},function(m,d,y,T){return T.compare(d,y)<0}),Qi=oo(">",function(m,d,y){return d>y},function(m,d,y,T){return T.compare(d,y)>0}),Io=oo("<=",function(m,d,y){return d<=y},function(m,d,y,T){return T.compare(d,y)<=0}),Jo=oo(">=",function(m,d,y){return d>=y},function(m,d,y,T){return T.compare(d,y)>=0});class fo{constructor(d,y,T,P,Y){this.type=ca,this.number=d,this.locale=y,this.currency=T,this.minFractionDigits=P,this.maxFractionDigits=Y}static parse(d,y){if(d.length!==3)return y.error("Expected two arguments.");const T=y.parse(d[1],1,qr);if(!T)return null;const P=d[2];if(typeof P!="object"||Array.isArray(P))return y.error("NumberFormat options argument must be an object.");let Y=null;if(P.locale&&(Y=y.parse(P.locale,1,ca),!Y))return null;let te=null;if(P.currency&&(te=y.parse(P.currency,1,ca),!te))return null;let se=null;if(P["min-fraction-digits"]&&(se=y.parse(P["min-fraction-digits"],1,qr),!se))return null;let pe=null;return P["max-fraction-digits"]&&(pe=y.parse(P["max-fraction-digits"],1,qr),!pe)?null:new fo(T,Y,te,se,pe)}evaluate(d){return new Intl.NumberFormat(this.locale?this.locale.evaluate(d):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(d):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(d):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(d):void 0}).format(this.number.evaluate(d))}eachChild(d){d(this.number),this.locale&&d(this.locale),this.currency&&d(this.currency),this.minFractionDigits&&d(this.minFractionDigits),this.maxFractionDigits&&d(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const d={};return this.locale&&(d.locale=this.locale.serialize()),this.currency&&(d.currency=this.currency.serialize()),this.minFractionDigits&&(d["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(d["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),d]}}class ul{constructor(d){this.type=qr,this.input=d}static parse(d,y){if(d.length!==2)return y.error(`Expected 1 argument, but found ${d.length-1} instead.`);const T=y.parse(d[1],1);return T?T.type.kind!=="array"&&T.type.kind!=="string"&&T.type.kind!=="value"?y.error(`Expected argument of type string or array, but found ${no(T.type)} instead.`):new ul(T):null}evaluate(d){const y=this.input.evaluate(d);if(typeof y=="string"||Array.isArray(y))return y.length;throw new Co(`Expected value to be of type string or array, but found ${no(La(y))} instead.`)}eachChild(d){d(this.input)}outputDefined(){return!1}serialize(){const d=["length"];return this.eachChild(y=>{d.push(y.serialize())}),d}}const lo={"==":Ko,"!=":Ts,">":Qi,"<":as,">=":Jo,"<=":Io,array:No,at:gl,boolean:No,case:Ss,coalesce:Yi,collator:Ta,format:wl,image:Ua,in:Oa,"index-of":Oo,interpolate:Ya,"interpolate-hcl":Ya,"interpolate-lab":Ya,length:ul,let:Ba,literal:ko,match:Ls,number:No,"number-format":fo,object:No,slice:Es,step:qe,string:No,"to-boolean":jo,"to-color":jo,"to-number":jo,"to-string":jo,var:$o,within:xa};function bu(m,[d,y,T,P]){d=d.evaluate(m),y=y.evaluate(m),T=T.evaluate(m);const Y=P?P.evaluate(m):1,te=vi(d,y,T,Y);if(te)throw new Co(te);return new bn(d/255*Y,y/255*Y,T/255*Y,Y)}function Wo(m,d){return m in d}function Ds(m,d){const y=d[m];return y===void 0?null:y}function os(m){return{type:m}}function Ou(m){return{result:"success",value:m}}function il(m){return{result:"error",value:m}}function zs(m){return m["property-type"]==="data-driven"||m["property-type"]==="cross-faded-data-driven"}function Xl(m){return!!m.expression&&m.expression.parameters.indexOf("zoom")>-1}function Bl(m){return!!m.expression&&m.expression.interpolated}function ga(m){return m instanceof Number?"number":m instanceof String?"string":m instanceof Boolean?"boolean":Array.isArray(m)?"array":m===null?"null":typeof m}function zo(m){return typeof m=="object"&&m!==null&&!Array.isArray(m)}function wu(m){return m}function ds(m,d){const y=d.type==="color",T=m.stops&&typeof m.stops[0][0]=="object",P=T||!(T||m.property!==void 0),Y=m.type||(Bl(d)?"exponential":"interval");if(y&&((m=ha({},m)).stops&&(m.stops=m.stops.map(xe=>[xe[0],bn.parse(xe[1])])),m.default=bn.parse(m.default?m.default:d.default)),m.colorSpace&&m.colorSpace!=="rgb"&&!na[m.colorSpace])throw new Error(`Unknown color space: ${m.colorSpace}`);let te,se,pe;if(Y==="exponential")te=Fn;else if(Y==="interval")te=Zn;else if(Y==="categorical"){te=gn,se=Object.create(null);for(const xe of m.stops)se[xe[0]]=xe[1];pe=typeof m.stops[0][0]}else{if(Y!=="identity")throw new Error(`Unknown function type "${Y}"`);te=Mr}if(T){const xe={},Pe=[];for(let ut=0;ut<m.stops.length;ut++){const bt=m.stops[ut],kt=bt[0].zoom;xe[kt]===void 0&&(xe[kt]={zoom:kt,type:m.type,property:m.property,default:m.default,stops:[]},Pe.push(kt)),xe[kt].stops.push([bt[0].value,bt[1]])}const je=[];for(const ut of Pe)je.push([xe[ut].zoom,ds(xe[ut],d)]);const $e={name:"linear"};return{kind:"composite",interpolationType:$e,interpolationFactor:Ya.interpolationFactor.bind(void 0,$e),zoomStops:je.map(ut=>ut[0]),evaluate:({zoom:ut},bt)=>Fn({stops:je,base:m.base},d,ut).evaluate(ut,bt)}}if(P){const xe=Y==="exponential"?{name:"exponential",base:m.base!==void 0?m.base:1}:null;return{kind:"camera",interpolationType:xe,interpolationFactor:Ya.interpolationFactor.bind(void 0,xe),zoomStops:m.stops.map(Pe=>Pe[0]),evaluate:({zoom:Pe})=>te(m,d,Pe,se,pe)}}return{kind:"source",evaluate(xe,Pe){const je=Pe&&Pe.properties?Pe.properties[m.property]:void 0;return je===void 0?pu(m.default,d.default):te(m,d,je,se,pe)}}}function pu(m,d,y){return m!==void 0?m:d!==void 0?d:y!==void 0?y:void 0}function gn(m,d,y,T,P){return pu(typeof y===P?T[y]:void 0,m.default,d.default)}function Zn(m,d,y){if(ga(y)!=="number")return pu(m.default,d.default);const T=m.stops.length;if(T===1||y<=m.stops[0][0])return m.stops[0][1];if(y>=m.stops[T-1][0])return m.stops[T-1][1];const P=Me(m.stops.map(Y=>Y[0]),y);return m.stops[P][1]}function Fn(m,d,y){const T=m.base!==void 0?m.base:1;if(ga(y)!=="number")return pu(m.default,d.default);const P=m.stops.length;if(P===1||y<=m.stops[0][0])return m.stops[0][1];if(y>=m.stops[P-1][0])return m.stops[P-1][1];const Y=Me(m.stops.map(Pe=>Pe[0]),y),te=function(Pe,je,$e,ut){const bt=ut-$e,kt=Pe-$e;return bt===0?0:je===1?kt/bt:(Math.pow(je,kt)-1)/(Math.pow(je,bt)-1)}(y,T,m.stops[Y][0],m.stops[Y+1][0]),se=m.stops[Y][1],pe=m.stops[Y+1][1];let xe=J[d.type]||wu;if(m.colorSpace&&m.colorSpace!=="rgb"){const Pe=na[m.colorSpace];xe=(je,$e)=>Pe.reverse(Pe.interpolate(Pe.forward(je),Pe.forward($e),te))}return typeof se.evaluate=="function"?{evaluate(...Pe){const je=se.evaluate.apply(void 0,Pe),$e=pe.evaluate.apply(void 0,Pe);if(je!==void 0&&$e!==void 0)return xe(je,$e,te)}}:xe(se,pe,te)}function Mr(m,d,y){return d.type==="color"?y=bn.parse(y):d.type==="formatted"?y=Pr.fromString(y.toString()):d.type==="resolvedImage"?y=Mi.fromString(y.toString()):ga(y)===d.type||d.type==="enum"&&d.values[y]||(y=void 0),pu(y,m.default,d.default)}is.register(lo,{error:[{kind:"error"},[ca],(m,[d])=>{throw new Co(d.evaluate(m))}],typeof:[ca,[Ai],(m,[d])=>no(La(d.evaluate(m)))],"to-rgba":[ja(qr,4),[Ms],(m,[d])=>d.evaluate(m).toArray()],rgb:[Ms,[qr,qr,qr],bu],rgba:[Ms,[qr,qr,qr,qr],bu],has:{type:va,overloads:[[[ca],(m,[d])=>Wo(d.evaluate(m),m.properties())],[[ca,rs],(m,[d,y])=>Wo(d.evaluate(m),y.evaluate(m))]]},get:{type:Ai,overloads:[[[ca],(m,[d])=>Ds(d.evaluate(m),m.properties())],[[ca,rs],(m,[d,y])=>Ds(d.evaluate(m),y.evaluate(m))]]},"feature-state":[Ai,[ca],(m,[d])=>Ds(d.evaluate(m),m.featureState||{})],properties:[rs,[],m=>m.properties()],"geometry-type":[ca,[],m=>m.geometryType()],id:[Ai,[],m=>m.id()],zoom:[qr,[],m=>m.globals.zoom],pitch:[qr,[],m=>m.globals.pitch||0],"distance-from-center":[qr,[],m=>m.distanceFromCenter()],"heatmap-density":[qr,[],m=>m.globals.heatmapDensity||0],"line-progress":[qr,[],m=>m.globals.lineProgress||0],"sky-radial-progress":[qr,[],m=>m.globals.skyRadialProgress||0],accumulated:[Ai,[],m=>m.globals.accumulated===void 0?null:m.globals.accumulated],"+":[qr,os(qr),(m,d)=>{let y=0;for(const T of d)y+=T.evaluate(m);return y}],"*":[qr,os(qr),(m,d)=>{let y=1;for(const T of d)y*=T.evaluate(m);return y}],"-":{type:qr,overloads:[[[qr,qr],(m,[d,y])=>d.evaluate(m)-y.evaluate(m)],[[qr],(m,[d])=>-d.evaluate(m)]]},"/":[qr,[qr,qr],(m,[d,y])=>d.evaluate(m)/y.evaluate(m)],"%":[qr,[qr,qr],(m,[d,y])=>d.evaluate(m)%y.evaluate(m)],ln2:[qr,[],()=>Math.LN2],pi:[qr,[],()=>Math.PI],e:[qr,[],()=>Math.E],"^":[qr,[qr,qr],(m,[d,y])=>Math.pow(d.evaluate(m),y.evaluate(m))],sqrt:[qr,[qr],(m,[d])=>Math.sqrt(d.evaluate(m))],log10:[qr,[qr],(m,[d])=>Math.log(d.evaluate(m))/Math.LN10],ln:[qr,[qr],(m,[d])=>Math.log(d.evaluate(m))],log2:[qr,[qr],(m,[d])=>Math.log(d.evaluate(m))/Math.LN2],sin:[qr,[qr],(m,[d])=>Math.sin(d.evaluate(m))],cos:[qr,[qr],(m,[d])=>Math.cos(d.evaluate(m))],tan:[qr,[qr],(m,[d])=>Math.tan(d.evaluate(m))],asin:[qr,[qr],(m,[d])=>Math.asin(d.evaluate(m))],acos:[qr,[qr],(m,[d])=>Math.acos(d.evaluate(m))],atan:[qr,[qr],(m,[d])=>Math.atan(d.evaluate(m))],min:[qr,os(qr),(m,d)=>Math.min(...d.map(y=>y.evaluate(m)))],max:[qr,os(qr),(m,d)=>Math.max(...d.map(y=>y.evaluate(m)))],abs:[qr,[qr],(m,[d])=>Math.abs(d.evaluate(m))],round:[qr,[qr],(m,[d])=>{const y=d.evaluate(m);return y<0?-Math.round(-y):Math.round(y)}],floor:[qr,[qr],(m,[d])=>Math.floor(d.evaluate(m))],ceil:[qr,[qr],(m,[d])=>Math.ceil(d.evaluate(m))],"filter-==":[va,[ca,Ai],(m,[d,y])=>m.properties()[d.value]===y.value],"filter-id-==":[va,[Ai],(m,[d])=>m.id()===d.value],"filter-type-==":[va,[ca],(m,[d])=>m.geometryType()===d.value],"filter-<":[va,[ca,Ai],(m,[d,y])=>{const T=m.properties()[d.value],P=y.value;return typeof T==typeof P&&T<P}],"filter-id-<":[va,[Ai],(m,[d])=>{const y=m.id(),T=d.value;return typeof y==typeof T&&y<T}],"filter->":[va,[ca,Ai],(m,[d,y])=>{const T=m.properties()[d.value],P=y.value;return typeof T==typeof P&&T>P}],"filter-id->":[va,[Ai],(m,[d])=>{const y=m.id(),T=d.value;return typeof y==typeof T&&y>T}],"filter-<=":[va,[ca,Ai],(m,[d,y])=>{const T=m.properties()[d.value],P=y.value;return typeof T==typeof P&&T<=P}],"filter-id-<=":[va,[Ai],(m,[d])=>{const y=m.id(),T=d.value;return typeof y==typeof T&&y<=T}],"filter->=":[va,[ca,Ai],(m,[d,y])=>{const T=m.properties()[d.value],P=y.value;return typeof T==typeof P&&T>=P}],"filter-id->=":[va,[Ai],(m,[d])=>{const y=m.id(),T=d.value;return typeof y==typeof T&&y>=T}],"filter-has":[va,[Ai],(m,[d])=>d.value in m.properties()],"filter-has-id":[va,[],m=>m.id()!==null&&m.id()!==void 0],"filter-type-in":[va,[ja(ca)],(m,[d])=>d.value.indexOf(m.geometryType())>=0],"filter-id-in":[va,[ja(Ai)],(m,[d])=>d.value.indexOf(m.id())>=0],"filter-in-small":[va,[ca,ja(Ai)],(m,[d,y])=>y.value.indexOf(m.properties()[d.value])>=0],"filter-in-large":[va,[ca,ja(Ai)],(m,[d,y])=>function(T,P,Y,te){for(;Y<=te;){const se=Y+te>>1;if(P[se]===T)return!0;P[se]>T?te=se-1:Y=se+1}return!1}(m.properties()[d.value],y.value,0,y.value.length-1)],all:{type:va,overloads:[[[va,va],(m,[d,y])=>d.evaluate(m)&&y.evaluate(m)],[os(va),(m,d)=>{for(const y of d)if(!y.evaluate(m))return!1;return!0}]]},any:{type:va,overloads:[[[va,va],(m,[d,y])=>d.evaluate(m)||y.evaluate(m)],[os(va),(m,d)=>{for(const y of d)if(y.evaluate(m))return!0;return!1}]]},"!":[va,[va],(m,[d])=>!d.evaluate(m)],"is-supported-script":[va,[ca],(m,[d])=>{const y=m.globals&&m.globals.isSupportedScript;return!y||y(d.evaluate(m))}],upcase:[ca,[ca],(m,[d])=>d.evaluate(m).toUpperCase()],downcase:[ca,[ca],(m,[d])=>d.evaluate(m).toLowerCase()],concat:[ca,os(Ai),(m,d)=>d.map(y=>Cs(y.evaluate(m))).join("")],"resolved-locale":[ca,[Na],(m,[d])=>d.evaluate(m).resolvedLocale()]});class Nr{constructor(d,y){this.expression=d,this._warningHistory={},this._evaluator=new Ol,this._defaultValue=y?function(T){return T.type==="color"&&zo(T.default)?new bn(0,0,0,0):T.type==="color"?bn.parse(T.default)||null:T.default===void 0?null:T.default}(y):null,this._enumValues=y&&y.type==="enum"?y.values:null}evaluateWithoutErrorHandling(d,y,T,P,Y,te,se,pe){return this._evaluator.globals=d,this._evaluator.feature=y,this._evaluator.featureState=T,this._evaluator.canonical=P||null,this._evaluator.availableImages=Y||null,this._evaluator.formattedSection=te,this._evaluator.featureTileCoord=se||null,this._evaluator.featureDistanceData=pe||null,this.expression.evaluate(this._evaluator)}evaluate(d,y,T,P,Y,te,se,pe){this._evaluator.globals=d,this._evaluator.feature=y||null,this._evaluator.featureState=T||null,this._evaluator.canonical=P||null,this._evaluator.availableImages=Y||null,this._evaluator.formattedSection=te||null,this._evaluator.featureTileCoord=se||null,this._evaluator.featureDistanceData=pe||null;try{const xe=this.expression.evaluate(this._evaluator);if(xe==null||typeof xe=="number"&&xe!=xe)return this._defaultValue;if(this._enumValues&&!(xe in this._enumValues))throw new Co(`Expected value to be one of ${Object.keys(this._enumValues).map(Pe=>JSON.stringify(Pe)).join(", ")}, but found ${JSON.stringify(xe)} instead.`);return xe}catch(xe){return this._warningHistory[xe.message]||(this._warningHistory[xe.message]=!0,typeof console!="undefined"&&console.warn(xe.message)),this._defaultValue}}}function _i(m){return Array.isArray(m)&&m.length>0&&typeof m[0]=="string"&&m[0]in lo}function Ci(m,d){const y=new Ho(lo,[],d?function(P){const Y={color:Ms,string:ca,number:qr,enum:ca,boolean:va,formatted:sl,resolvedImage:eo};return P.type==="array"?ja(Y[P.value]||Ai,P.length):Y[P.type]}(d):void 0),T=y.parse(m,void 0,void 0,void 0,d&&d.type==="string"?{typeAnnotation:"coerce"}:void 0);return T?Ou(new Nr(T,d)):il(y.errors)}class Vt{constructor(d,y){this.kind=d,this._styleExpression=y,this.isStateDependent=d!=="constant"&&!ao(y.expression)}evaluateWithoutErrorHandling(d,y,T,P,Y,te){return this._styleExpression.evaluateWithoutErrorHandling(d,y,T,P,Y,te)}evaluate(d,y,T,P,Y,te){return this._styleExpression.evaluate(d,y,T,P,Y,te)}}class Wt{constructor(d,y,T,P){this.kind=d,this.zoomStops=T,this._styleExpression=y,this.isStateDependent=d!=="camera"&&!ao(y.expression),this.interpolationType=P}evaluateWithoutErrorHandling(d,y,T,P,Y,te){return this._styleExpression.evaluateWithoutErrorHandling(d,y,T,P,Y,te)}evaluate(d,y,T,P,Y,te){return this._styleExpression.evaluate(d,y,T,P,Y,te)}interpolationFactor(d,y,T){return this.interpolationType?Ya.interpolationFactor(this.interpolationType,d,y,T):0}}function Jn(m,d){if((m=Ci(m,d)).result==="error")return m;const y=m.value.expression,T=Ea(y);if(!T&&!zs(d))return il([new Va("","data expressions not supported")]);const P=Ki(y,["zoom","pitch","distance-from-center"]);if(!P&&!Xl(d))return il([new Va("","zoom expressions not supported")]);const Y=Bn(y);return Y||P?Y instanceof Va?il([Y]):Y instanceof Ya&&!Bl(d)?il([new Va("",'"interpolate" expressions cannot be used with this property')]):Ou(Y?new Wt(T?"camera":"composite",m.value,Y.labels,Y instanceof Ya?Y.interpolation:void 0):new Vt(T?"constant":"source",m.value)):il([new Va("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class Vn{constructor(d,y){this._parameters=d,this._specification=y,ha(this,ds(this._parameters,this._specification))}static deserialize(d){return new Vn(d._parameters,d._specification)}static serialize(d){return{_parameters:d._parameters,_specification:d._specification}}}function Bn(m){let d=null;if(m instanceof Ba)d=Bn(m.result);else if(m instanceof Yi){for(const y of m.args)if(d=Bn(y),d)break}else(m instanceof qe||m instanceof Ya)&&m.input instanceof is&&m.input.name==="zoom"&&(d=m);return d instanceof Va||m.eachChild(y=>{const T=Bn(y);T instanceof Va?d=T:!d&&T?d=new Va("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):d&&T&&d!==T&&(d=new Va("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),d}class Hn{constructor(d,y,T,P){this.message=(d?`${d}: `:"")+T,P&&(this.identifier=P),y!=null&&y.__line__&&(this.line=y.__line__)}}function kr(m){const d=m.key,y=m.value,T=m.valueSpec||{},P=m.objectElementValidators||{},Y=m.style,te=m.styleSpec;let se=[];const pe=ga(y);if(pe!=="object")return[new Hn(d,y,`object expected, ${pe} found`)];for(const xe in y){const Pe=xe.split(".")[0],je=T[Pe]||T["*"];let $e;P[Pe]?$e=P[Pe]:T[Pe]?$e=So:P["*"]?$e=P["*"]:T["*"]&&($e=So),$e?se=se.concat($e({key:(d&&`${d}.`)+xe,value:y[xe],valueSpec:je,style:Y,styleSpec:te,object:y,objectKey:xe},y)):se.push(new Hn(d,y[xe],`unknown property "${xe}"`))}for(const xe in T)P[xe]||T[xe].required&&T[xe].default===void 0&&y[xe]===void 0&&se.push(new Hn(d,y,`missing required property "${xe}"`));return se}function fi(m){const d=m.value,y=m.valueSpec,T=m.style,P=m.styleSpec,Y=m.key,te=m.arrayElementValidator||So;if(ga(d)!=="array")return[new Hn(Y,d,`array expected, ${ga(d)} found`)];if(y.length&&d.length!==y.length)return[new Hn(Y,d,`array length ${y.length} expected, length ${d.length} found`)];if(y["min-length"]&&d.length<y["min-length"])return[new Hn(Y,d,`array length at least ${y["min-length"]} expected, length ${d.length} found`)];let se={type:y.value,values:y.values,minimum:y.minimum,maximum:y.maximum,function:void 0};P.$version<7&&(se.function=y.function),ga(y.value)==="object"&&(se=y.value);let pe=[];for(let xe=0;xe<d.length;xe++)pe=pe.concat(te({array:d,arrayIndex:xe,value:d[xe],valueSpec:se,style:T,styleSpec:P,key:`${Y}[${xe}]`}));return pe}function oi(m){const d=m.key,y=m.value,T=m.valueSpec;let P=ga(y);if(P==="number"&&y!=y&&(P="NaN"),P!=="number")return[new Hn(d,y,`number expected, ${P} found`)];if("minimum"in T){let Y=T.minimum;if(ga(T.minimum)==="array"&&(Y=T.minimum[m.arrayIndex]),y<Y)return[new Hn(d,y,`${y} is less than the minimum value ${Y}`)]}if("maximum"in T){let Y=T.maximum;if(ga(T.maximum)==="array"&&(Y=T.maximum[m.arrayIndex]),y>Y)return[new Hn(d,y,`${y} is greater than the maximum value ${Y}`)]}return[]}function da(m){const d=m.valueSpec,y=ti(m.value.type);let T,P,Y,te={};const se=y!=="categorical"&&m.value.property===void 0,pe=!se,xe=ga(m.value.stops)==="array"&&ga(m.value.stops[0])==="array"&&ga(m.value.stops[0][0])==="object",Pe=kr({key:m.key,value:m.value,valueSpec:m.styleSpec.function,style:m.style,styleSpec:m.styleSpec,objectElementValidators:{stops:function(ut){if(y==="identity")return[new Hn(ut.key,ut.value,'identity function may not have a "stops" property')];let bt=[];const kt=ut.value;return bt=bt.concat(fi({key:ut.key,value:kt,valueSpec:ut.valueSpec,style:ut.style,styleSpec:ut.styleSpec,arrayElementValidator:je})),ga(kt)==="array"&&kt.length===0&&bt.push(new Hn(ut.key,kt,"array must have at least one stop")),bt},default:function(ut){return So({key:ut.key,value:ut.value,valueSpec:d,style:ut.style,styleSpec:ut.styleSpec})}}});return y==="identity"&&se&&Pe.push(new Hn(m.key,m.value,'missing required property "property"')),y==="identity"||m.value.stops||Pe.push(new Hn(m.key,m.value,'missing required property "stops"')),y==="exponential"&&m.valueSpec.expression&&!Bl(m.valueSpec)&&Pe.push(new Hn(m.key,m.value,"exponential functions not supported")),m.styleSpec.$version>=8&&(pe&&!zs(m.valueSpec)?Pe.push(new Hn(m.key,m.value,"property functions not supported")):se&&!Xl(m.valueSpec)&&Pe.push(new Hn(m.key,m.value,"zoom functions not supported"))),y!=="categorical"&&!xe||m.value.property!==void 0||Pe.push(new Hn(m.key,m.value,'"property" property is required')),Pe;function je(ut){let bt=[];const kt=ut.value,zt=ut.key;if(ga(kt)!=="array")return[new Hn(zt,kt,`array expected, ${ga(kt)} found`)];if(kt.length!==2)return[new Hn(zt,kt,`array length 2 expected, length ${kt.length} found`)];if(xe){if(ga(kt[0])!=="object")return[new Hn(zt,kt,`object expected, ${ga(kt[0])} found`)];if(kt[0].zoom===void 0)return[new Hn(zt,kt,"object stop key must have zoom")];if(kt[0].value===void 0)return[new Hn(zt,kt,"object stop key must have value")];const Xt=ti(kt[0].zoom);if(typeof Xt!="number")return[new Hn(zt,kt[0].zoom,"stop zoom values must be numbers")];if(Y&&Y>Xt)return[new Hn(zt,kt[0].zoom,"stop zoom values must appear in ascending order")];Xt!==Y&&(Y=Xt,P=void 0,te={}),bt=bt.concat(kr({key:`${zt}[0]`,value:kt[0],valueSpec:{zoom:{}},style:ut.style,styleSpec:ut.styleSpec,objectElementValidators:{zoom:oi,value:$e}}))}else bt=bt.concat($e({key:`${zt}[0]`,value:kt[0],valueSpec:{},style:ut.style,styleSpec:ut.styleSpec},kt));return _i(ua(kt[1]))?bt.concat([new Hn(`${zt}[1]`,kt[1],"expressions are not allowed in function stops.")]):bt.concat(So({key:`${zt}[1]`,value:kt[1],valueSpec:d,style:ut.style,styleSpec:ut.styleSpec}))}function $e(ut,bt){const kt=ga(ut.value),zt=ti(ut.value),Xt=ut.value!==null?ut.value:bt;if(T){if(kt!==T)return[new Hn(ut.key,Xt,`${kt} stop domain type must match previous stop domain type ${T}`)]}else T=kt;if(kt!=="number"&&kt!=="string"&&kt!=="boolean"&&typeof zt!="number"&&typeof zt!="string"&&typeof zt!="boolean")return[new Hn(ut.key,Xt,"stop domain value must be a number, string, or boolean")];if(kt!=="number"&&y!=="categorical"){let wn=`number expected, ${kt} found`;return zs(d)&&y===void 0&&(wn+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Hn(ut.key,Xt,wn)]}return y!=="categorical"||kt!=="number"||typeof zt=="number"&&isFinite(zt)&&Math.floor(zt)===zt?y!=="categorical"&&kt==="number"&&typeof zt=="number"&&typeof P=="number"&&P!==void 0&&zt<P?[new Hn(ut.key,Xt,"stop domain values must appear in ascending order")]:(P=zt,y==="categorical"&&zt in te?[new Hn(ut.key,Xt,"stop domain values must be unique")]:(te[zt]=!0,[])):[new Hn(ut.key,Xt,`integer expected, found ${String(zt)}`)]}}function St(m){const d=(m.expressionContext==="property"?Jn:Ci)(ua(m.value),m.valueSpec);if(d.result==="error")return d.value.map(T=>new Hn(`${m.key}${T.key}`,m.value,T.message));const y=d.value.expression||d.value._styleExpression.expression;if(m.expressionContext==="property"&&m.propertyKey==="text-font"&&!y.outputDefined())return[new Hn(m.key,m.value,`Invalid data expression for "${m.propertyKey}". Output values must be contained as literals within the expression.`)];if(m.expressionContext==="property"&&m.propertyType==="layout"&&!ao(y))return[new Hn(m.key,m.value,'"feature-state" data expressions are not supported with layout properties.')];if(m.expressionContext==="filter")return zi(y,m);if(m.expressionContext&&m.expressionContext.indexOf("cluster")===0){if(!Ki(y,["zoom","feature-state"]))return[new Hn(m.key,m.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(m.expressionContext==="cluster-initial"&&!Ea(y))return[new Hn(m.key,m.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function zi(m,d){const y=new Set(["zoom","feature-state","pitch","distance-from-center"]);if(d.valueSpec&&d.valueSpec.expression)for(const P of d.valueSpec.expression.parameters)y.delete(P);if(y.size===0)return[];const T=[];return m instanceof is&&y.has(m.name)?[new Hn(d.key,d.value,`["${m.name}"] expression is not supported in a filter for a ${d.object.type} layer with id: ${d.object.id}`)]:(m.eachChild(P=>{T.push(...zi(P,d))}),T)}function Fr(m){const d=m.key,y=m.value,T=m.valueSpec,P=[];return Array.isArray(T.values)?T.values.indexOf(ti(y))===-1&&P.push(new Hn(d,y,`expected one of [${T.values.join(", ")}], ${JSON.stringify(y)} found`)):Object.keys(T.values).indexOf(ti(y))===-1&&P.push(new Hn(d,y,`expected one of [${Object.keys(T.values).join(", ")}], ${JSON.stringify(y)} found`)),P}function ni(m){if(m===!0||m===!1)return!0;if(!Array.isArray(m)||m.length===0)return!1;switch(m[0]){case"has":return m.length>=2&&m[1]!=="$id"&&m[1]!=="$type";case"in":return m.length>=3&&(typeof m[1]!="string"||Array.isArray(m[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return m.length!==3||Array.isArray(m[1])||Array.isArray(m[2]);case"any":case"all":for(const d of m.slice(1))if(!ni(d)&&typeof d!="boolean")return!1;return!0;default:return!0}}function Gi(m,d="fill"){if(m==null)return{filter:()=>!0,needGeometry:!1,needFeature:!1};ni(m)||(m=cc(m));const y=m;let T=!0;try{T=function(xe){if(!xo(xe))return xe;let Pe=ua(xe);return Yo(Pe),Pe=Po(Pe),Pe}(y)}catch(xe){console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.
  3454. This is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md
  3455. and paste the contents of this message in the report.
  3456. Thank you!
  3457. Filter Expression:
  3458. ${JSON.stringify(y,null,2)}
  3459. `)}const P=tr[`filter_${d}`],Y=Ci(T,P);let te=null;if(Y.result==="error")throw new Error(Y.value.map(xe=>`${xe.key}: ${xe.message}`).join(", "));te=(xe,Pe,je)=>Y.value.evaluate(xe,Pe,{},je);let se=null,pe=null;if(T!==y){const xe=Ci(y,P);if(xe.result==="error")throw new Error(xe.value.map(Pe=>`${Pe.key}: ${Pe.message}`).join(", "));se=(Pe,je,$e,ut,bt)=>xe.value.evaluate(Pe,je,{},$e,void 0,void 0,ut,bt),pe=!Ea(xe.value.expression)}return te=te,{filter:te,dynamicFilter:se||void 0,needGeometry:Uo(T),needFeature:!!pe}}function Po(m){if(!Array.isArray(m))return m;const d=function(y){if(Zs.has(y[0])){for(let T=1;T<y.length;T++)if(xo(y[T]))return!0}return y}(m);return d===!0?d:d.map(y=>Po(y))}function Yo(m){let d=!1;const y=[];if(m[0]==="case"){for(let T=1;T<m.length-1;T+=2)d=d||xo(m[T]),y.push(m[T+1]);y.push(m[m.length-1])}else if(m[0]==="match"){d=d||xo(m[1]);for(let T=2;T<m.length-1;T+=2)y.push(m[T+1]);y.push(m[m.length-1])}else if(m[0]==="step"){d=d||xo(m[1]);for(let T=1;T<m.length-1;T+=2)y.push(m[T+1])}d&&(m.length=0,m.push("any",...y));for(let T=1;T<m.length;T++)Yo(m[T])}function xo(m){if(!Array.isArray(m))return!1;if((d=m[0])==="pitch"||d==="distance-from-center")return!0;var d;for(let y=1;y<m.length;y++)if(xo(m[y]))return!0;return!1}const Zs=new Set(["in","==","!=",">",">=","<","<=","to-boolean"]);function As(m,d){return m<d?-1:m>d?1:0}function Uo(m){if(!Array.isArray(m))return!1;if(m[0]==="within")return!0;for(let d=1;d<m.length;d++)if(Uo(m[d]))return!0;return!1}function cc(m){if(!m)return!0;const d=m[0];return m.length<=1?d!=="any":d==="=="?Os(m[1],m[2],"=="):d==="!="?Xu(Os(m[1],m[2],"==")):d==="<"||d===">"||d==="<="||d===">="?Os(m[1],m[2],d):d==="any"?(y=m.slice(1),["any"].concat(y.map(cc))):d==="all"?["all"].concat(m.slice(1).map(cc)):d==="none"?["all"].concat(m.slice(1).map(cc).map(Xu)):d==="in"?qi(m[1],m.slice(2)):d==="!in"?Xu(qi(m[1],m.slice(2))):d==="has"?md(m[1]):d==="!has"?Xu(md(m[1])):d!=="within"||m;var y}function Os(m,d,y){switch(m){case"$type":return[`filter-type-${y}`,d];case"$id":return[`filter-id-${y}`,d];default:return[`filter-${y}`,m,d]}}function qi(m,d){if(d.length===0)return!1;switch(m){case"$type":return["filter-type-in",["literal",d]];case"$id":return["filter-id-in",["literal",d]];default:return d.length>200&&!d.some(y=>typeof y!=typeof d[0])?["filter-in-large",m,["literal",d.sort(As)]]:["filter-in-small",m,["literal",d]]}}function md(m){switch(m){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",m]}}function Xu(m){return["!",m]}function Zu(m){return ni(ua(m.value))?St(ha({},m,{expressionContext:"filter",valueSpec:m.styleSpec[`filter_${m.layerType||"fill"}`]})):Nl(m)}function Nl(m){const d=m.value,y=m.key;if(ga(d)!=="array")return[new Hn(y,d,`array expected, ${ga(d)} found`)];const T=m.styleSpec;let P,Y=[];if(d.length<1)return[new Hn(y,d,"filter array must have at least 1 element")];switch(Y=Y.concat(Fr({key:`${y}[0]`,value:d[0],valueSpec:T.filter_operator,style:m.style,styleSpec:m.styleSpec})),ti(d[0])){case"<":case"<=":case">":case">=":d.length>=2&&ti(d[1])==="$type"&&Y.push(new Hn(y,d,`"$type" cannot be use with operator "${d[0]}"`));case"==":case"!=":d.length!==3&&Y.push(new Hn(y,d,`filter array for operator "${d[0]}" must have 3 elements`));case"in":case"!in":d.length>=2&&(P=ga(d[1]),P!=="string"&&Y.push(new Hn(`${y}[1]`,d[1],`string expected, ${P} found`)));for(let te=2;te<d.length;te++)P=ga(d[te]),ti(d[1])==="$type"?Y=Y.concat(Fr({key:`${y}[${te}]`,value:d[te],valueSpec:T.geometry_type,style:m.style,styleSpec:m.styleSpec})):P!=="string"&&P!=="number"&&P!=="boolean"&&Y.push(new Hn(`${y}[${te}]`,d[te],`string, number, or boolean expected, ${P} found`));break;case"any":case"all":case"none":for(let te=1;te<d.length;te++)Y=Y.concat(Nl({key:`${y}[${te}]`,value:d[te],style:m.style,styleSpec:m.styleSpec}));break;case"has":case"!has":P=ga(d[1]),d.length!==2?Y.push(new Hn(y,d,`filter array for "${d[0]}" operator must have 2 elements`)):P!=="string"&&Y.push(new Hn(`${y}[1]`,d[1],`string expected, ${P} found`));break;case"within":P=ga(d[1]),d.length!==2?Y.push(new Hn(y,d,`filter array for "${d[0]}" operator must have 2 elements`)):P!=="object"&&Y.push(new Hn(`${y}[1]`,d[1],`object expected, ${P} found`))}return Y}function Ku(m,d){const y=m.key,T=m.style,P=m.styleSpec,Y=m.value,te=m.objectKey,se=P[`${d}_${m.layerType}`];if(!se)return[];const pe=te.match(/^(.*)-transition$/);if(d==="paint"&&pe&&se[pe[1]]&&se[pe[1]].transition)return So({key:y,value:Y,valueSpec:P.transition,style:T,styleSpec:P});const xe=m.valueSpec||se[te];if(!xe)return[new Hn(y,Y,`unknown property "${te}"`)];let Pe;if(ga(Y)==="string"&&zs(xe)&&!xe.tokens&&(Pe=/^{([^}]+)}$/.exec(Y)))return[new Hn(y,Y,`"${te}" does not support interpolation syntax
  3460. Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(Pe[1])} }\`.`)];const je=[];return m.layerType==="symbol"&&(te==="text-field"&&T&&!T.glyphs&&je.push(new Hn(y,Y,'use of "text-field" requires a style "glyphs" property')),te==="text-font"&&zo(ua(Y))&&ti(Y.type)==="identity"&&je.push(new Hn(y,Y,'"text-font" does not support identity functions'))),je.concat(So({key:m.key,value:Y,valueSpec:xe,style:T,styleSpec:P,expressionContext:"property",propertyType:d,propertyKey:te}))}function Zl(m){return Ku(m,"paint")}function Kl(m){return Ku(m,"layout")}function rh(m){let d=[];const y=m.value,T=m.key,P=m.style,Y=m.styleSpec;y.type||y.ref||d.push(new Hn(T,y,'either "type" or "ref" is required'));let te=ti(y.type);const se=ti(y.ref);if(y.id){const pe=ti(y.id);for(let xe=0;xe<m.arrayIndex;xe++){const Pe=P.layers[xe];ti(Pe.id)===pe&&d.push(new Hn(T,y.id,`duplicate layer id "${y.id}", previously used at line ${Pe.id.__line__}`))}}if("ref"in y){let pe;["type","source","source-layer","filter","layout"].forEach(xe=>{xe in y&&d.push(new Hn(T,y[xe],`"${xe}" is prohibited for ref layers`))}),P.layers.forEach(xe=>{ti(xe.id)===se&&(pe=xe)}),pe?pe.ref?d.push(new Hn(T,y.ref,"ref cannot reference another ref layer")):te=ti(pe.type):typeof se=="string"&&d.push(new Hn(T,y.ref,`ref layer "${se}" not found`))}else if(te!=="background"&&te!=="sky")if(y.source){const pe=P.sources&&P.sources[y.source],xe=pe&&ti(pe.type);pe?xe==="vector"&&te==="raster"?d.push(new Hn(T,y.source,`layer "${y.id}" requires a raster source`)):xe==="raster"&&te!=="raster"?d.push(new Hn(T,y.source,`layer "${y.id}" requires a vector source`)):xe!=="vector"||y["source-layer"]?xe==="raster-dem"&&te!=="hillshade"?d.push(new Hn(T,y.source,"raster-dem source can only be used with layer type 'hillshade'.")):te!=="line"||!y.paint||!y.paint["line-gradient"]||xe==="geojson"&&pe.lineMetrics||d.push(new Hn(T,y,`layer "${y.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):d.push(new Hn(T,y,`layer "${y.id}" must specify a "source-layer"`)):d.push(new Hn(T,y.source,`source "${y.source}" not found`))}else d.push(new Hn(T,y,'missing required property "source"'));return d=d.concat(kr({key:T,value:y,valueSpec:Y.layer,style:m.style,styleSpec:m.styleSpec,objectElementValidators:{"*":()=>[],type:()=>So({key:`${T}.type`,value:y.type,valueSpec:Y.layer.type,style:m.style,styleSpec:m.styleSpec,object:y,objectKey:"type"}),filter:pe=>Zu(ha({layerType:te},pe)),layout:pe=>kr({layer:y,key:pe.key,value:pe.value,valueSpec:{},style:pe.style,styleSpec:pe.styleSpec,objectElementValidators:{"*":xe=>Kl(ha({layerType:te},xe))}}),paint:pe=>kr({layer:y,key:pe.key,value:pe.value,valueSpec:{},style:pe.style,styleSpec:pe.styleSpec,objectElementValidators:{"*":xe=>Zl(ha({layerType:te},xe))}})}})),d}function Fu(m){const d=m.value,y=m.key,T=ga(d);return T!=="string"?[new Hn(y,d,`string expected, ${T} found`)]:[]}const Cc={promoteId:function({key:m,value:d}){if(ga(d)==="string")return Fu({key:m,value:d});{const y=[];for(const T in d)y.push(...Fu({key:`${m}.${T}`,value:d[T]}));return y}}};function Bu(m){const d=m.value,y=m.key,T=m.styleSpec,P=m.style;if(!d.type)return[new Hn(y,d,'"type" is required')];const Y=ti(d.type);let te;switch(Y){case"vector":case"raster":case"raster-dem":return te=kr({key:y,value:d,valueSpec:T[`source_${Y.replace("-","_")}`],style:m.style,styleSpec:T,objectElementValidators:Cc}),te;case"geojson":if(te=kr({key:y,value:d,valueSpec:T.source_geojson,style:P,styleSpec:T,objectElementValidators:Cc}),d.cluster)for(const se in d.clusterProperties){const[pe,xe]=d.clusterProperties[se],Pe=typeof pe=="string"?[pe,["accumulated"],["get",se]]:pe;te.push(...St({key:`${y}.${se}.map`,value:xe,expressionContext:"cluster-map"})),te.push(...St({key:`${y}.${se}.reduce`,value:Pe,expressionContext:"cluster-reduce"}))}return te;case"video":return kr({key:y,value:d,valueSpec:T.source_video,style:P,styleSpec:T});case"image":return kr({key:y,value:d,valueSpec:T.source_image,style:P,styleSpec:T});case"canvas":return[new Hn(y,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return Fr({key:`${y}.type`,value:d.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:P,styleSpec:T})}}function Bd(m){const d=m.value,y=m.styleSpec,T=y.light,P=m.style;let Y=[];const te=ga(d);if(d===void 0)return Y;if(te!=="object")return Y=Y.concat([new Hn("light",d,`object expected, ${te} found`)]),Y;for(const se in d){const pe=se.match(/^(.*)-transition$/);Y=Y.concat(pe&&T[pe[1]]&&T[pe[1]].transition?So({key:se,value:d[se],valueSpec:y.transition,style:P,styleSpec:y}):T[se]?So({key:se,value:d[se],valueSpec:T[se],style:P,styleSpec:y}):[new Hn(se,d[se],`unknown property "${se}"`)])}return Y}function gd(m){const d=m.value,y=m.key,T=m.style,P=m.styleSpec,Y=P.terrain;let te=[];const se=ga(d);if(d===void 0)return te;if(se!=="object")return te=te.concat([new Hn("terrain",d,`object expected, ${se} found`)]),te;for(const pe in d){const xe=pe.match(/^(.*)-transition$/);te=te.concat(xe&&Y[xe[1]]&&Y[xe[1]].transition?So({key:pe,value:d[pe],valueSpec:P.transition,style:T,styleSpec:P}):Y[pe]?So({key:pe,value:d[pe],valueSpec:Y[pe],style:T,styleSpec:P}):[new Hn(pe,d[pe],`unknown property "${pe}"`)])}if(d.source){const pe=T.sources&&T.sources[d.source],xe=pe&&ti(pe.type);pe?xe!=="raster-dem"&&te.push(new Hn(y,d.source,`terrain cannot be used with a source of type ${String(xe)}, it only be used with a "raster-dem" source type`)):te.push(new Hn(y,d.source,`source "${d.source}" not found`))}else te.push(new Hn(y,d,'terrain is missing required property "source"'));return te}function dc(m){const d=m.value,y=m.style,T=m.styleSpec,P=T.fog;let Y=[];const te=ga(d);if(d===void 0)return Y;if(te!=="object")return Y=Y.concat([new Hn("fog",d,`object expected, ${te} found`)]),Y;for(const se in d){const pe=se.match(/^(.*)-transition$/);Y=Y.concat(pe&&P[pe[1]]&&P[pe[1]].transition?So({key:se,value:d[se],valueSpec:T.transition,style:y,styleSpec:T}):P[se]?So({key:se,value:d[se],valueSpec:P[se],style:y,styleSpec:T}):[new Hn(se,d[se],`unknown property "${se}"`)])}return Y}const Ju={"*":()=>[],array:fi,boolean:function(m){const d=m.value,y=m.key,T=ga(d);return T!=="boolean"?[new Hn(y,d,`boolean expected, ${T} found`)]:[]},number:oi,color:function(m){const d=m.key,y=m.value,T=ga(y);return T!=="string"?[new Hn(d,y,`color expected, ${T} found`)]:Gt.parseCSSColor(y)===null?[new Hn(d,y,`color expected, "${y}" found`)]:[]},enum:Fr,filter:Zu,function:da,layer:rh,object:kr,source:Bu,light:Bd,terrain:gd,fog:dc,string:Fu,formatted:function(m){return Fu(m).length===0?[]:St(m)},resolvedImage:function(m){return Fu(m).length===0?[]:St(m)},projection:function(m){const d=m.value,y=m.styleSpec,T=y.projection,P=m.style;let Y=[];const te=ga(d);if(te==="object")for(const se in d)Y=Y.concat(So({key:se,value:d[se],valueSpec:T[se],style:P,styleSpec:y}));else te!=="string"&&(Y=Y.concat([new Hn("projection",d,`object or string expected, ${te} found`)]));return Y}};function So(m){const d=m.value,y=m.valueSpec,T=m.styleSpec;return y.expression&&zo(ti(d))?da(m):y.expression&&_i(ua(d))?St(m):y.type&&Ju[y.type]?Ju[y.type](m):kr(ha({},m,{valueSpec:y.type?T[y.type]:y}))}function kl(m){const d=m.value,y=m.key,T=Fu(m);return T.length||(d.indexOf("{fontstack}")===-1&&T.push(new Hn(y,d,'"glyphs" url must include a "{fontstack}" token')),d.indexOf("{range}")===-1&&T.push(new Hn(y,d,'"glyphs" url must include a "{range}" token'))),T}function hs(m,d=tr){return Nu(So({key:"",value:m,valueSpec:d.$root,styleSpec:d,style:m,objectElementValidators:{glyphs:kl,"*":()=>[]}}))}const Qu=m=>Nu(Zl(m)),Nd=m=>Nu(Kl(m));function Nu(m){return m.slice().sort((d,y)=>d.line&&y.line?d.line-y.line:0)}function Vl(m,d){let y=!1;if(d&&d.length)for(const T of d)m.fire(new mi(new Error(T.message))),y=!0;return y}var ec=ks;function ks(m,d,y){var T=this.cells=[];if(m instanceof ArrayBuffer){this.arrayBuffer=m;var P=new Int32Array(this.arrayBuffer);m=P[0],this.d=(d=P[1])+2*(y=P[2]);for(var Y=0;Y<this.d*this.d;Y++){var te=P[3+Y],se=P[3+Y+1];T.push(te===se?null:P.subarray(te,se))}var pe=P[3+T.length+1];this.keys=P.subarray(P[3+T.length],pe),this.bboxes=P.subarray(pe),this.insert=this._insertReadonly}else{this.d=d+2*y;for(var xe=0;xe<this.d*this.d;xe++)T.push([]);this.keys=[],this.bboxes=[]}this.n=d,this.extent=m,this.padding=y,this.scale=d/m,this.uid=0;var Pe=y/d*m;this.min=-Pe,this.max=m+Pe}ks.prototype.insert=function(m,d,y,T,P){this._forEachCell(d,y,T,P,this._insertCell,this.uid++),this.keys.push(m),this.bboxes.push(d),this.bboxes.push(y),this.bboxes.push(T),this.bboxes.push(P)},ks.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},ks.prototype._insertCell=function(m,d,y,T,P,Y){this.cells[P].push(Y)},ks.prototype.query=function(m,d,y,T,P){var Y=this.min,te=this.max;if(m<=Y&&d<=Y&&te<=y&&te<=T&&!P)return Array.prototype.slice.call(this.keys);var se=[];return this._forEachCell(m,d,y,T,this._queryCell,se,{},P),se},ks.prototype._queryCell=function(m,d,y,T,P,Y,te,se){var pe=this.cells[P];if(pe!==null)for(var xe=this.keys,Pe=this.bboxes,je=0;je<pe.length;je++){var $e=pe[je];if(te[$e]===void 0){var ut=4*$e;(se?se(Pe[ut+0],Pe[ut+1],Pe[ut+2],Pe[ut+3]):m<=Pe[ut+2]&&d<=Pe[ut+3]&&y>=Pe[ut+0]&&T>=Pe[ut+1])?(te[$e]=!0,Y.push(xe[$e])):te[$e]=!1}}},ks.prototype._forEachCell=function(m,d,y,T,P,Y,te,se){for(var pe=this._convertToCellCoord(m),xe=this._convertToCellCoord(d),Pe=this._convertToCellCoord(y),je=this._convertToCellCoord(T),$e=pe;$e<=Pe;$e++)for(var ut=xe;ut<=je;ut++){var bt=this.d*ut+$e;if((!se||se(this._convertFromCellCoord($e),this._convertFromCellCoord(ut),this._convertFromCellCoord($e+1),this._convertFromCellCoord(ut+1)))&&P.call(this,m,d,y,T,bt,Y,te,se))return}},ks.prototype._convertFromCellCoord=function(m){return(m-this.padding)/this.scale},ks.prototype._convertToCellCoord=function(m){return Math.max(0,Math.min(this.d-1,Math.floor(m*this.scale)+this.padding))},ks.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var m=this.cells,d=3+this.cells.length+1+1,y=0,T=0;T<this.cells.length;T++)y+=this.cells[T].length;var P=new Int32Array(d+y+this.keys.length+this.bboxes.length);P[0]=this.extent,P[1]=this.n,P[2]=this.padding;for(var Y=d,te=0;te<m.length;te++){var se=m[te];P[3+te]=Y,P.set(se,Y),Y+=se.length}return P[3+m.length]=Y,P.set(this.keys,Y),P[3+m.length+1]=Y+=this.keys.length,P.set(this.bboxes,Y),Y+=this.bboxes.length,P.buffer};const Fa={};function Si(m,d,y={}){Object.defineProperty(m,"_classRegistryKey",{value:d,writeable:!1}),Fa[d]={klass:m,omit:y.omit||[]}}Si(Object,"Object"),ec.serialize=function(m,d){const y=m.toArrayBuffer();return d&&d.push(y),{buffer:y}},ec.deserialize=function(m){return new ec(m.buffer)},Object.defineProperty(ec,"name",{value:"Grid"}),Si(ec,"Grid"),Si(bn,"Color"),Si(Error,"Error"),Si(dt,"AJAXError"),Si(Mi,"ResolvedImage"),Si(Vn,"StylePropertyFunction"),Si(Nr,"StyleExpression",{omit:["_evaluator"]}),Si(Wt,"ZoomDependentExpression"),Si(Vt,"ZoomConstantExpression"),Si(is,"CompoundExpression",{omit:["_evaluate"]});for(const m in lo)Fa[lo[m]._classRegistryKey]||Si(lo[m],`Expression${m}`);function Vd(m){return m&&typeof ArrayBuffer!="undefined"&&(m instanceof ArrayBuffer||m.constructor&&m.constructor.name==="ArrayBuffer")}function tc(m){return E.ImageBitmap&&m instanceof E.ImageBitmap}function Ks(m,d){if(m==null||typeof m=="boolean"||typeof m=="number"||typeof m=="string"||m instanceof Boolean||m instanceof Number||m instanceof String||m instanceof Date||m instanceof RegExp)return m;if(Vd(m)||tc(m))return d&&d.push(m),m;if(ArrayBuffer.isView(m)){const y=m;return d&&d.push(y.buffer),y}if(m instanceof E.ImageData)return d&&d.push(m.data.buffer),m;if(Array.isArray(m)){const y=[];for(const T of m)y.push(Ks(T,d));return y}if(typeof m=="object"){const y=m.constructor,T=y._classRegistryKey;if(!T)throw new Error(`can't serialize object of unregistered class ${T}`);const P=y.serialize?y.serialize(m,d):{};if(!y.serialize){for(const Y in m)m.hasOwnProperty(Y)&&(Fa[T].omit.indexOf(Y)>=0||(P[Y]=Ks(m[Y],d)));m instanceof Error&&(P.message=m.message)}if(P.$name)throw new Error("$name property is reserved for worker serialization logic.");return T!=="Object"&&(P.$name=T),P}throw new Error("can't serialize object of type "+typeof m)}function Hc(m){if(m==null||typeof m=="boolean"||typeof m=="number"||typeof m=="string"||m instanceof Boolean||m instanceof Number||m instanceof String||m instanceof Date||m instanceof RegExp||Vd(m)||tc(m)||ArrayBuffer.isView(m)||m instanceof E.ImageData)return m;if(Array.isArray(m))return m.map(Hc);if(typeof m=="object"){const d=m.$name||"Object",{klass:y}=Fa[d];if(!y)throw new Error(`can't deserialize unregistered class ${d}`);if(y.deserialize)return y.deserialize(m);const T=Object.create(y.prototype);for(const P of Object.keys(m))P!=="$name"&&(T[P]=Hc(m[P]));return T}throw new Error("can't deserialize object of type "+typeof m)}class yd{constructor(){this.first=!0}update(d,y){const T=Math.floor(d);return this.first?(this.first=!1,this.lastIntegerZoom=T,this.lastIntegerZoomTime=0,this.lastZoom=d,this.lastFloorZoom=T,!0):(this.lastFloorZoom>T?(this.lastIntegerZoom=T+1,this.lastIntegerZoomTime=y):this.lastFloorZoom<T&&(this.lastIntegerZoom=T,this.lastIntegerZoomTime=y),d!==this.lastZoom&&(this.lastZoom=d,this.lastFloorZoom=T,!0))}}const Th=m=>m>=1536&&m<=1791,zl=m=>m>=1872&&m<=1919,lu=m=>m>=2208&&m<=2303,Js=m=>m>=11904&&m<=12031,Wc=m=>m>=12032&&m<=12255,Sc=m=>m>=12272&&m<=12287,Ec=m=>m>=12288&&m<=12351,nc=m=>m>=12352&&m<=12447,hc=m=>m>=12448&&m<=12543,Yc=m=>m>=12544&&m<=12591,Wi=m=>m>=12704&&m<=12735,Dh=m=>m>=12736&&m<=12783,qc=m=>m>=12784&&m<=12799,Xc=m=>m>=12800&&m<=13055,bo=m=>m>=13056&&m<=13311,Mu=m=>m>=13312&&m<=19903,wo=m=>m>=19968&&m<=40959,zd=m=>m>=40960&&m<=42127,Tc=m=>m>=42128&&m<=42191,ih=m=>m>=44032&&m<=55215,Cl=m=>m>=63744&&m<=64255,Ah=m=>m>=64336&&m<=65023,ah=m=>m>=65040&&m<=65055,Zc=m=>m>=65072&&m<=65103,kh=m=>m>=65104&&m<=65135,Gd=m=>m>=65136&&m<=65279,Jl=m=>m>=65280&&m<=65519;function Vu(m){for(const d of m)if(zu(d.charCodeAt(0)))return!0;return!1}function Ih(m){for(const d of m)if(!Ph(d.charCodeAt(0)))return!1;return!0}function Ph(m){return!(Th(m)||zl(m)||lu(m)||Ah(m)||Gd(m))}function zu(m){return!(m!==746&&m!==747&&(m<4352||!(Wi(m)||Yc(m)||Zc(m)&&!(m>=65097&&m<=65103)||Cl(m)||bo(m)||Js(m)||Dh(m)||!(!Ec(m)||m>=12296&&m<=12305||m>=12308&&m<=12319||m===12336)||Mu(m)||wo(m)||Xc(m)||(d=>d>=12592&&d<=12687)(m)||(d=>d>=43360&&d<=43391)(m)||(d=>d>=55216&&d<=55295)(m)||(d=>d>=4352&&d<=4607)(m)||ih(m)||nc(m)||Sc(m)||(d=>d>=12688&&d<=12703)(m)||Wc(m)||qc(m)||hc(m)&&m!==12540||!(!Jl(m)||m===65288||m===65289||m===65293||m>=65306&&m<=65310||m===65339||m===65341||m===65343||m>=65371&&m<=65503||m===65507||m>=65512&&m<=65519)||!(!kh(m)||m>=65112&&m<=65118||m>=65123&&m<=65126)||(d=>d>=5120&&d<=5759)(m)||(d=>d>=6320&&d<=6399)(m)||ah(m)||(d=>d>=19904&&d<=19967)(m)||zd(m)||Tc(m))))}function Ql(m){return!(zu(m)||function(d){return!!((y=>y>=128&&y<=255)(d)&&(d===167||d===169||d===174||d===177||d===188||d===189||d===190||d===215||d===247)||(y=>y>=8192&&y<=8303)(d)&&(d===8214||d===8224||d===8225||d===8240||d===8241||d===8251||d===8252||d===8258||d===8263||d===8264||d===8265||d===8273)||(y=>y>=8448&&y<=8527)(d)||(y=>y>=8528&&y<=8591)(d)||(y=>y>=8960&&y<=9215)(d)&&(d>=8960&&d<=8967||d>=8972&&d<=8991||d>=8996&&d<=9e3||d===9003||d>=9085&&d<=9114||d>=9150&&d<=9165||d===9167||d>=9169&&d<=9179||d>=9186&&d<=9215)||(y=>y>=9216&&y<=9279)(d)&&d!==9251||(y=>y>=9280&&y<=9311)(d)||(y=>y>=9312&&y<=9471)(d)||(y=>y>=9632&&y<=9727)(d)||(y=>y>=9728&&y<=9983)(d)&&!(d>=9754&&d<=9759)||(y=>y>=11008&&y<=11263)(d)&&(d>=11026&&d<=11055||d>=11088&&d<=11097||d>=11192&&d<=11243)||Ec(d)||hc(d)||(y=>y>=57344&&y<=63743)(d)||Zc(d)||kh(d)||Jl(d)||d===8734||d===8756||d===8757||d>=9984&&d<=10087||d>=10102&&d<=10131||d===65532||d===65533)}(m))}function Il(m){return m>=1424&&m<=2303||Ah(m)||Gd(m)}function np(m,d){return!(!d&&Il(m)||m>=2304&&m<=3583||m>=3840&&m<=4255||(y=>y>=6016&&y<=6143)(m))}function rp(m){for(const d of m)if(Il(d.charCodeAt(0)))return!0;return!1}const oh="deferred",Gu="loading",ip="loaded";let pc=null,uu="unavailable",fu=null;const vd=function(m){m&&typeof m=="string"&&m.indexOf("NetworkError")>-1&&(uu="error"),pc&&pc(m)};function Kc(){Rh.fire(new Ti("pluginStateChange",{pluginStatus:uu,pluginURL:fu}))}const Rh=new Li,sh=function(){return uu},_d=function(){if(uu!==oh||!fu)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");uu=Gu,Kc(),fu&&Qt({url:fu},m=>{m?vd(m):(uu=ip,Kc())})},Gs={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>uu===ip||Gs.applyArabicShaping!=null,isLoading:()=>uu===Gu,setState(m){uu=m.pluginStatus,fu=m.pluginURL},isParsed:()=>Gs.applyArabicShaping!=null&&Gs.processBidirectionalText!=null&&Gs.processStyledBidirectionalText!=null,getPluginURL:()=>fu};class Ro{constructor(d,y){this.zoom=d,y?(this.now=y.now,this.fadeDuration=y.fadeDuration,this.zoomHistory=y.zoomHistory,this.transition=y.transition,this.pitch=y.pitch):(this.now=0,this.fadeDuration=0,this.zoomHistory=new yd,this.transition={},this.pitch=0)}isSupportedScript(d){return function(y,T){for(const P of y)if(!np(P.charCodeAt(0),T))return!1;return!0}(d,Gs.isLoaded())}crossFadingFactor(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){const d=this.zoom,y=d-Math.floor(d),T=this.crossFadingFactor();return d>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:y+(1-y)*T}:{fromScale:.5,toScale:1,t:1-(1-T)*y}}}class Jc{constructor(d,y){this.property=d,this.value=y,this.expression=function(T,P){if(zo(T))return new Vn(T,P);if(_i(T)){const Y=Jn(T,P);if(Y.result==="error")throw new Error(Y.value.map(te=>`${te.key}: ${te.message}`).join(", "));return Y.value}{let Y=T;return typeof T=="string"&&P.type==="color"&&(Y=bn.parse(T)),{kind:"constant",evaluate:()=>Y}}}(y===void 0?d.specification.default:y,d.specification)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(d,y,T){return this.property.possiblyEvaluate(this,d,y,T)}}class rc{constructor(d){this.property=d,this.value=new Jc(d,void 0)}transitioned(d,y){return new f(this.property,this.value,y,re({},d.transition,this.transition),d.now)}untransitioned(){return new f(this.property,this.value,null,{},0)}}class U{constructor(d){this._properties=d,this._values=Object.create(d.defaultTransitionablePropertyValues)}getValue(d){return Ue(this._values[d].value.value)}setValue(d,y){this._values.hasOwnProperty(d)||(this._values[d]=new rc(this._values[d].property)),this._values[d].value=new Jc(this._values[d].property,y===null?void 0:Ue(y))}getTransition(d){return Ue(this._values[d].transition)}setTransition(d,y){this._values.hasOwnProperty(d)||(this._values[d]=new rc(this._values[d].property)),this._values[d].transition=Ue(y)||void 0}serialize(){const d={};for(const y of Object.keys(this._values)){const T=this.getValue(y);T!==void 0&&(d[y]=T);const P=this.getTransition(y);P!==void 0&&(d[`${y}-transition`]=P)}return d}transitioned(d,y){const T=new k(this._properties);for(const P of Object.keys(this._values))T._values[P]=this._values[P].transitioned(d,y._values[P]);return T}untransitioned(){const d=new k(this._properties);for(const y of Object.keys(this._values))d._values[y]=this._values[y].untransitioned();return d}}class f{constructor(d,y,T,P,Y){const te=P.delay||0,se=P.duration||0;Y=Y||0,this.property=d,this.value=y,this.begin=Y+te,this.end=this.begin+se,d.specification.transition&&(P.delay||P.duration)&&(this.prior=T)}possiblyEvaluate(d,y,T){const P=d.now||0,Y=this.value.possiblyEvaluate(d,y,T),te=this.prior;if(te){if(P>this.end)return this.prior=null,Y;if(this.value.isDataDriven())return this.prior=null,Y;if(P<this.begin)return te.possiblyEvaluate(d,y,T);{const se=(P-this.begin)/(this.end-this.begin);return this.property.interpolate(te.possiblyEvaluate(d,y,T),Y,G(se))}}return Y}}class k{constructor(d){this._properties=d,this._values=Object.create(d.defaultTransitioningPropertyValues)}possiblyEvaluate(d,y,T){const P=new he(this._properties);for(const Y of Object.keys(this._values))P._values[Y]=this._values[Y].possiblyEvaluate(d,y,T);return P}hasTransition(){for(const d of Object.keys(this._values))if(this._values[d].prior)return!0;return!1}}class Z{constructor(d){this._properties=d,this._values=Object.create(d.defaultPropertyValues)}getValue(d){return Ue(this._values[d].value)}setValue(d,y){this._values[d]=new Jc(this._values[d].property,y===null?void 0:Ue(y))}serialize(){const d={};for(const y of Object.keys(this._values)){const T=this.getValue(y);T!==void 0&&(d[y]=T)}return d}possiblyEvaluate(d,y,T){const P=new he(this._properties);for(const Y of Object.keys(this._values))P._values[Y]=this._values[Y].possiblyEvaluate(d,y,T);return P}}class ue{constructor(d,y,T){this.property=d,this.value=y,this.parameters=T}isConstant(){return this.value.kind==="constant"}constantOr(d){return this.value.kind==="constant"?this.value.value:d}evaluate(d,y,T,P){return this.property.evaluate(this.value,this.parameters,d,y,T,P)}}class he{constructor(d){this._properties=d,this._values=Object.create(d.defaultPossiblyEvaluatedValues)}get(d){return this._values[d]}}class _e{constructor(d){this.specification=d}possiblyEvaluate(d,y){return d.expression.evaluate(y)}interpolate(d,y,T){const P=J[this.specification.type];return P?P(d,y,T):d}}class Ce{constructor(d,y){this.specification=d,this.overrides=y}possiblyEvaluate(d,y,T,P){return new ue(this,d.expression.kind==="constant"||d.expression.kind==="camera"?{kind:"constant",value:d.expression.evaluate(y,null,{},T,P)}:d.expression,y)}interpolate(d,y,T){if(d.value.kind!=="constant"||y.value.kind!=="constant")return d;if(d.value.value===void 0||y.value.value===void 0)return new ue(this,{kind:"constant",value:void 0},d.parameters);const P=J[this.specification.type];return P?new ue(this,{kind:"constant",value:P(d.value.value,y.value.value,T)},d.parameters):d}evaluate(d,y,T,P,Y,te){return d.kind==="constant"?d.value:d.evaluate(y,T,P,Y,te)}}class Xe extends Ce{possiblyEvaluate(d,y,T,P){if(d.value===void 0)return new ue(this,{kind:"constant",value:void 0},y);if(d.expression.kind==="constant"){const Y=d.expression.evaluate(y,null,{},T,P),te=d.property.specification.type==="resolvedImage"&&typeof Y!="string"?Y.name:Y,se=this._calculate(te,te,te,y);return new ue(this,{kind:"constant",value:se},y)}if(d.expression.kind==="camera"){const Y=this._calculate(d.expression.evaluate({zoom:y.zoom-1}),d.expression.evaluate({zoom:y.zoom}),d.expression.evaluate({zoom:y.zoom+1}),y);return new ue(this,{kind:"constant",value:Y},y)}return new ue(this,d.expression,y)}evaluate(d,y,T,P,Y,te){if(d.kind==="source"){const se=d.evaluate(y,T,P,Y,te);return this._calculate(se,se,se,y)}return d.kind==="composite"?this._calculate(d.evaluate({zoom:Math.floor(y.zoom)-1},T,P),d.evaluate({zoom:Math.floor(y.zoom)},T,P),d.evaluate({zoom:Math.floor(y.zoom)+1},T,P),y):d.value}_calculate(d,y,T,P){return P.zoom>P.zoomHistory.lastIntegerZoom?{from:d,to:y,other:T}:{from:T,to:y,other:d}}interpolate(d){return d}}class nt{constructor(d){this.specification=d}possiblyEvaluate(d,y,T,P){if(d.value!==void 0){if(d.expression.kind==="constant"){const Y=d.expression.evaluate(y,null,{},T,P);return this._calculate(Y,Y,Y,y)}return this._calculate(d.expression.evaluate(new Ro(Math.floor(y.zoom-1),y)),d.expression.evaluate(new Ro(Math.floor(y.zoom),y)),d.expression.evaluate(new Ro(Math.floor(y.zoom+1),y)),y)}}_calculate(d,y,T,P){return P.zoom>P.zoomHistory.lastIntegerZoom?{from:d,to:y}:{from:T,to:y}}interpolate(d){return d}}class lt{constructor(d){this.specification=d}possiblyEvaluate(d,y,T,P){return!!d.expression.evaluate(y,null,{},T,P)}interpolate(){return!1}}class yt{constructor(d){this.properties=d,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(const y in d){const T=d[y];T.specification.overridable&&this.overridableProperties.push(y);const P=this.defaultPropertyValues[y]=new Jc(T,void 0),Y=this.defaultTransitionablePropertyValues[y]=new rc(T);this.defaultTransitioningPropertyValues[y]=Y.untransitioned(),this.defaultPossiblyEvaluatedValues[y]=P.possiblyEvaluate({})}}}function Rt(m,d){return 256*(m=W(Math.floor(m),0,255))+W(Math.floor(d),0,255)}Si(Ce,"DataDrivenProperty"),Si(_e,"DataConstantProperty"),Si(Xe,"CrossFadedDataDrivenProperty"),Si(nt,"CrossFadedProperty"),Si(lt,"ColorRampProperty");const Ut={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class Bt{constructor(d,y){this._structArray=d,this._pos1=y*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class It{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(d,y){return d._trim(),y&&(d.isTransferred=!0,y.push(d.arrayBuffer)),{length:d.length,arrayBuffer:d.arrayBuffer}}static deserialize(d){const y=Object.create(this.prototype);return y.arrayBuffer=d.arrayBuffer,y.length=d.length,y.capacity=d.arrayBuffer.byteLength/y.bytesPerElement,y._refreshViews(),y}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(d){this.reserve(d),this.length=d}reserve(d){if(d>this.capacity){this.capacity=Math.max(d,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);const y=this.uint8;this._refreshViews(),y&&this.uint8.set(y)}}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}destroy(){this.int8=this.uint8=this.int16=this.uint16=this.int32=this.uint32=this.float32=null,this.arrayBuffer=null}}function vn(m,d=1){let y=0,T=0;return{members:m.map(P=>{const Y=Ut[P.type].BYTES_PER_ELEMENT,te=y=tn(y,Math.max(d,Y)),se=P.components||1;return T=Math.max(T,Y),y+=Y*se,{name:P.name,type:P.type,components:se,offset:te}}),size:tn(y,Math.max(T,d)),alignment:d}}function tn(m,d){return Math.ceil(m/d)*d}class cn extends It{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(d,y){const T=this.length;return this.resize(T+1),this.emplace(T,d,y)}emplace(d,y,T){const P=2*d;return this.int16[P+0]=y,this.int16[P+1]=T,d}}cn.prototype.bytesPerElement=4,Si(cn,"StructArrayLayout2i4");class pn extends It{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(d,y,T){const P=this.length;return this.resize(P+1),this.emplace(P,d,y,T)}emplace(d,y,T,P){const Y=3*d;return this.int16[Y+0]=y,this.int16[Y+1]=T,this.int16[Y+2]=P,d}}pn.prototype.bytesPerElement=6,Si(pn,"StructArrayLayout3i6");class Cn extends It{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(d,y,T,P){const Y=this.length;return this.resize(Y+1),this.emplace(Y,d,y,T,P)}emplace(d,y,T,P,Y){const te=4*d;return this.int16[te+0]=y,this.int16[te+1]=T,this.int16[te+2]=P,this.int16[te+3]=Y,d}}Cn.prototype.bytesPerElement=8,Si(Cn,"StructArrayLayout4i8");class un extends It{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(d,y,T,P,Y,te,se){const pe=this.length;return this.resize(pe+1),this.emplace(pe,d,y,T,P,Y,te,se)}emplace(d,y,T,P,Y,te,se,pe){const xe=6*d,Pe=12*d,je=3*d;return this.int16[xe+0]=y,this.int16[xe+1]=T,this.uint8[Pe+4]=P,this.uint8[Pe+5]=Y,this.uint8[Pe+6]=te,this.uint8[Pe+7]=se,this.float32[je+2]=pe,d}}un.prototype.bytesPerElement=12,Si(un,"StructArrayLayout2i4ub1f12");class kn extends It{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(d,y,T,P){const Y=this.length;return this.resize(Y+1),this.emplace(Y,d,y,T,P)}emplace(d,y,T,P,Y){const te=4*d;return this.float32[te+0]=y,this.float32[te+1]=T,this.float32[te+2]=P,this.float32[te+3]=Y,d}}kn.prototype.bytesPerElement=16,Si(kn,"StructArrayLayout4f16");class nr extends It{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(d,y,T,P,Y,te,se,pe,xe,Pe){const je=this.length;return this.resize(je+1),this.emplace(je,d,y,T,P,Y,te,se,pe,xe,Pe)}emplace(d,y,T,P,Y,te,se,pe,xe,Pe,je){const $e=10*d;return this.uint16[$e+0]=y,this.uint16[$e+1]=T,this.uint16[$e+2]=P,this.uint16[$e+3]=Y,this.uint16[$e+4]=te,this.uint16[$e+5]=se,this.uint16[$e+6]=pe,this.uint16[$e+7]=xe,this.uint16[$e+8]=Pe,this.uint16[$e+9]=je,d}}nr.prototype.bytesPerElement=20,Si(nr,"StructArrayLayout10ui20");class dr extends It{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(d,y,T,P,Y,te,se,pe){const xe=this.length;return this.resize(xe+1),this.emplace(xe,d,y,T,P,Y,te,se,pe)}emplace(d,y,T,P,Y,te,se,pe,xe){const Pe=8*d;return this.uint16[Pe+0]=y,this.uint16[Pe+1]=T,this.uint16[Pe+2]=P,this.uint16[Pe+3]=Y,this.uint16[Pe+4]=te,this.uint16[Pe+5]=se,this.uint16[Pe+6]=pe,this.uint16[Pe+7]=xe,d}}dr.prototype.bytesPerElement=16,Si(dr,"StructArrayLayout8ui16");class xr extends It{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(d,y,T,P,Y,te){const se=this.length;return this.resize(se+1),this.emplace(se,d,y,T,P,Y,te)}emplace(d,y,T,P,Y,te,se){const pe=6*d;return this.int16[pe+0]=y,this.int16[pe+1]=T,this.int16[pe+2]=P,this.int16[pe+3]=Y,this.int16[pe+4]=te,this.int16[pe+5]=se,d}}xr.prototype.bytesPerElement=12,Si(xr,"StructArrayLayout6i12");class yr extends It{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(d,y,T,P,Y,te,se,pe,xe,Pe,je,$e,ut,bt,kt,zt){const Xt=this.length;return this.resize(Xt+1),this.emplace(Xt,d,y,T,P,Y,te,se,pe,xe,Pe,je,$e,ut,bt,kt,zt)}emplace(d,y,T,P,Y,te,se,pe,xe,Pe,je,$e,ut,bt,kt,zt,Xt){const wn=16*d;return this.int16[wn+0]=y,this.int16[wn+1]=T,this.int16[wn+2]=P,this.int16[wn+3]=Y,this.uint16[wn+4]=te,this.uint16[wn+5]=se,this.uint16[wn+6]=pe,this.uint16[wn+7]=xe,this.int16[wn+8]=Pe,this.int16[wn+9]=je,this.int16[wn+10]=$e,this.int16[wn+11]=ut,this.int16[wn+12]=bt,this.int16[wn+13]=kt,this.int16[wn+14]=zt,this.int16[wn+15]=Xt,d}}yr.prototype.bytesPerElement=32,Si(yr,"StructArrayLayout4i4ui4i4i32");class Qr extends It{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(d,y,T){const P=this.length;return this.resize(P+1),this.emplace(P,d,y,T)}emplace(d,y,T,P){const Y=3*d;return this.float32[Y+0]=y,this.float32[Y+1]=T,this.float32[Y+2]=P,d}}Qr.prototype.bytesPerElement=12,Si(Qr,"StructArrayLayout3f12");class ir extends It{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(d){const y=this.length;return this.resize(y+1),this.emplace(y,d)}emplace(d,y){return this.uint32[1*d+0]=y,d}}ir.prototype.bytesPerElement=4,Si(ir,"StructArrayLayout1ul4");class gr extends It{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(d,y,T,P,Y,te,se,pe,xe,Pe,je,$e,ut){const bt=this.length;return this.resize(bt+1),this.emplace(bt,d,y,T,P,Y,te,se,pe,xe,Pe,je,$e,ut)}emplace(d,y,T,P,Y,te,se,pe,xe,Pe,je,$e,ut,bt){const kt=20*d,zt=10*d;return this.int16[kt+0]=y,this.int16[kt+1]=T,this.int16[kt+2]=P,this.int16[kt+3]=Y,this.int16[kt+4]=te,this.float32[zt+3]=se,this.float32[zt+4]=pe,this.float32[zt+5]=xe,this.float32[zt+6]=Pe,this.int16[kt+14]=je,this.uint32[zt+8]=$e,this.uint16[kt+18]=ut,this.uint16[kt+19]=bt,d}}gr.prototype.bytesPerElement=40,Si(gr,"StructArrayLayout5i4f1i1ul2ui40");class Yr extends It{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(d,y,T,P,Y,te,se){const pe=this.length;return this.resize(pe+1),this.emplace(pe,d,y,T,P,Y,te,se)}emplace(d,y,T,P,Y,te,se,pe){const xe=8*d;return this.int16[xe+0]=y,this.int16[xe+1]=T,this.int16[xe+2]=P,this.int16[xe+4]=Y,this.int16[xe+5]=te,this.int16[xe+6]=se,this.int16[xe+7]=pe,d}}Yr.prototype.bytesPerElement=16,Si(Yr,"StructArrayLayout3i2i2i16");class Oi extends It{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(d,y,T,P,Y){const te=this.length;return this.resize(te+1),this.emplace(te,d,y,T,P,Y)}emplace(d,y,T,P,Y,te){const se=4*d,pe=8*d;return this.float32[se+0]=y,this.float32[se+1]=T,this.float32[se+2]=P,this.int16[pe+6]=Y,this.int16[pe+7]=te,d}}Oi.prototype.bytesPerElement=16,Si(Oi,"StructArrayLayout2f1f2i16");class br extends It{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(d,y,T,P){const Y=this.length;return this.resize(Y+1),this.emplace(Y,d,y,T,P)}emplace(d,y,T,P,Y){const te=12*d,se=3*d;return this.uint8[te+0]=y,this.uint8[te+1]=T,this.float32[se+1]=P,this.float32[se+2]=Y,d}}br.prototype.bytesPerElement=12,Si(br,"StructArrayLayout2ub2f12");class Ii extends It{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(d,y,T){const P=this.length;return this.resize(P+1),this.emplace(P,d,y,T)}emplace(d,y,T,P){const Y=3*d;return this.uint16[Y+0]=y,this.uint16[Y+1]=T,this.uint16[Y+2]=P,d}}Ii.prototype.bytesPerElement=6,Si(Ii,"StructArrayLayout3ui6");class ea extends It{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(d,y,T,P,Y,te,se,pe,xe,Pe,je,$e,ut,bt,kt,zt,Xt,wn,Ln,hn,Jt){const Nn=this.length;return this.resize(Nn+1),this.emplace(Nn,d,y,T,P,Y,te,se,pe,xe,Pe,je,$e,ut,bt,kt,zt,Xt,wn,Ln,hn,Jt)}emplace(d,y,T,P,Y,te,se,pe,xe,Pe,je,$e,ut,bt,kt,zt,Xt,wn,Ln,hn,Jt,Nn){const fr=30*d,wr=15*d,Rr=60*d;return this.int16[fr+0]=y,this.int16[fr+1]=T,this.int16[fr+2]=P,this.float32[wr+2]=Y,this.float32[wr+3]=te,this.uint16[fr+8]=se,this.uint16[fr+9]=pe,this.uint32[wr+5]=xe,this.uint32[wr+6]=Pe,this.uint32[wr+7]=je,this.uint16[fr+16]=$e,this.uint16[fr+17]=ut,this.uint16[fr+18]=bt,this.float32[wr+10]=kt,this.float32[wr+11]=zt,this.uint8[Rr+48]=Xt,this.uint8[Rr+49]=wn,this.uint8[Rr+50]=Ln,this.uint32[wr+13]=hn,this.int16[fr+28]=Jt,this.uint8[Rr+58]=Nn,d}}ea.prototype.bytesPerElement=60,Si(ea,"StructArrayLayout3i2f2ui3ul3ui2f3ub1ul1i1ub60");class ui extends It{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(d,y,T,P,Y,te,se,pe,xe,Pe,je,$e,ut,bt,kt,zt,Xt,wn,Ln,hn,Jt,Nn,fr,wr,Rr,$r,mr,Sr,Wr,di){const ri=this.length;return this.resize(ri+1),this.emplace(ri,d,y,T,P,Y,te,se,pe,xe,Pe,je,$e,ut,bt,kt,zt,Xt,wn,Ln,hn,Jt,Nn,fr,wr,Rr,$r,mr,Sr,Wr,di)}emplace(d,y,T,P,Y,te,se,pe,xe,Pe,je,$e,ut,bt,kt,zt,Xt,wn,Ln,hn,Jt,Nn,fr,wr,Rr,$r,mr,Sr,Wr,di,ri){const li=38*d,Wa=19*d;return this.int16[li+0]=y,this.int16[li+1]=T,this.int16[li+2]=P,this.float32[Wa+2]=Y,this.float32[Wa+3]=te,this.int16[li+8]=se,this.int16[li+9]=pe,this.int16[li+10]=xe,this.int16[li+11]=Pe,this.int16[li+12]=je,this.int16[li+13]=$e,this.uint16[li+14]=ut,this.uint16[li+15]=bt,this.uint16[li+16]=kt,this.uint16[li+17]=zt,this.uint16[li+18]=Xt,this.uint16[li+19]=wn,this.uint16[li+20]=Ln,this.uint16[li+21]=hn,this.uint16[li+22]=Jt,this.uint16[li+23]=Nn,this.uint16[li+24]=fr,this.uint16[li+25]=wr,this.uint16[li+26]=Rr,this.uint16[li+27]=$r,this.uint16[li+28]=mr,this.uint32[Wa+15]=Sr,this.float32[Wa+16]=Wr,this.float32[Wa+17]=di,this.float32[Wa+18]=ri,d}}ui.prototype.bytesPerElement=76,Si(ui,"StructArrayLayout3i2f6i15ui1ul3f76");class Fi extends It{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(d){const y=this.length;return this.resize(y+1),this.emplace(y,d)}emplace(d,y){return this.float32[1*d+0]=y,d}}Fi.prototype.bytesPerElement=4,Si(Fi,"StructArrayLayout1f4");class pa extends It{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(d,y,T,P,Y,te,se){const pe=this.length;return this.resize(pe+1),this.emplace(pe,d,y,T,P,Y,te,se)}emplace(d,y,T,P,Y,te,se,pe){const xe=7*d;return this.float32[xe+0]=y,this.float32[xe+1]=T,this.float32[xe+2]=P,this.float32[xe+3]=Y,this.float32[xe+4]=te,this.float32[xe+5]=se,this.float32[xe+6]=pe,d}}pa.prototype.bytesPerElement=28,Si(pa,"StructArrayLayout7f28");class Ja extends It{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(d,y,T,P,Y){const te=this.length;return this.resize(te+1),this.emplace(te,d,y,T,P,Y)}emplace(d,y,T,P,Y,te){const se=5*d;return this.float32[se+0]=y,this.float32[se+1]=T,this.float32[se+2]=P,this.float32[se+3]=Y,this.float32[se+4]=te,d}}Ja.prototype.bytesPerElement=20,Si(Ja,"StructArrayLayout5f20");class ji extends It{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(d,y,T,P){const Y=this.length;return this.resize(Y+1),this.emplace(Y,d,y,T,P)}emplace(d,y,T,P,Y){const te=6*d;return this.uint32[3*d+0]=y,this.uint16[te+2]=T,this.uint16[te+3]=P,this.uint16[te+4]=Y,d}}ji.prototype.bytesPerElement=12,Si(ji,"StructArrayLayout1ul3ui12");class Xi extends It{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(d,y){const T=this.length;return this.resize(T+1),this.emplace(T,d,y)}emplace(d,y,T){const P=2*d;return this.uint16[P+0]=y,this.uint16[P+1]=T,d}}Xi.prototype.bytesPerElement=4,Si(Xi,"StructArrayLayout2ui4");class Mo extends It{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(d){const y=this.length;return this.resize(y+1),this.emplace(y,d)}emplace(d,y){return this.uint16[1*d+0]=y,d}}Mo.prototype.bytesPerElement=2,Si(Mo,"StructArrayLayout1ui2");class Is extends It{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(d,y){const T=this.length;return this.resize(T+1),this.emplace(T,d,y)}emplace(d,y,T){const P=2*d;return this.float32[P+0]=y,this.float32[P+1]=T,d}}Is.prototype.bytesPerElement=8,Si(Is,"StructArrayLayout2f8");class Gl extends It{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(d,y,T,P,Y,te,se){const pe=this.length;return this.resize(pe+1),this.emplace(pe,d,y,T,P,Y,te,se)}emplace(d,y,T,P,Y,te,se,pe){const xe=8*d,Pe=4*d;return this.int16[xe+0]=y,this.int16[xe+1]=T,this.int16[xe+2]=P,this.int16[xe+3]=Y,this.int16[xe+4]=te,this.int16[xe+5]=se,this.float32[Pe+3]=pe,d}}Gl.prototype.bytesPerElement=16,Si(Gl,"StructArrayLayout6i1f16");class js extends Bt{get a_pos_30(){return this._structArray.int16[this._pos2+0]}get a_pos_31(){return this._structArray.int16[this._pos2+1]}get a_pos_32(){return this._structArray.int16[this._pos2+2]}get a_pos_normal_30(){return this._structArray.int16[this._pos2+3]}get a_pos_normal_31(){return this._structArray.int16[this._pos2+4]}get a_pos_normal_32(){return this._structArray.int16[this._pos2+5]}}js.prototype.size=12;class Sl extends xr{get(d){return new js(this,d)}}Si(Sl,"FillExtrusionExtArray");class ju extends Bt{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.int16[this._pos2+3]}get tileAnchorY(){return this._structArray.int16[this._pos2+4]}get x1(){return this._structArray.float32[this._pos4+3]}get y1(){return this._structArray.float32[this._pos4+4]}get x2(){return this._structArray.float32[this._pos4+5]}get y2(){return this._structArray.float32[this._pos4+6]}get padding(){return this._structArray.int16[this._pos2+14]}get featureIndex(){return this._structArray.uint32[this._pos4+8]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+18]}get bucketIndex(){return this._structArray.uint16[this._pos2+19]}}ju.prototype.size=40;class mc extends gr{get(d){return new ju(this,d)}}Si(mc,"CollisionBoxArray");class gc extends Bt{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.float32[this._pos4+2]}get tileAnchorY(){return this._structArray.float32[this._pos4+3]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+8]}get numGlyphs(){return this._structArray.uint16[this._pos2+9]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+5]}get lineStartIndex(){return this._structArray.uint32[this._pos4+6]}get lineLength(){return this._structArray.uint32[this._pos4+7]}get segment(){return this._structArray.uint16[this._pos2+16]}get lowerSize(){return this._structArray.uint16[this._pos2+17]}get upperSize(){return this._structArray.uint16[this._pos2+18]}get lineOffsetX(){return this._structArray.float32[this._pos4+10]}get lineOffsetY(){return this._structArray.float32[this._pos4+11]}get writingMode(){return this._structArray.uint8[this._pos1+48]}get placedOrientation(){return this._structArray.uint8[this._pos1+49]}set placedOrientation(d){this._structArray.uint8[this._pos1+49]=d}get hidden(){return this._structArray.uint8[this._pos1+50]}set hidden(d){this._structArray.uint8[this._pos1+50]=d}get crossTileID(){return this._structArray.uint32[this._pos4+13]}set crossTileID(d){this._structArray.uint32[this._pos4+13]=d}get associatedIconIndex(){return this._structArray.int16[this._pos2+28]}get flipState(){return this._structArray.uint8[this._pos1+58]}set flipState(d){this._structArray.uint8[this._pos1+58]=d}}gc.prototype.size=60;class ic extends ea{get(d){return new gc(this,d)}}Si(ic,"PlacedSymbolArray");class Us extends Bt{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.float32[this._pos4+2]}get tileAnchorY(){return this._structArray.float32[this._pos4+3]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+8]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+9]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+10]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+11]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+12]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+13]}get key(){return this._structArray.uint16[this._pos2+14]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+17]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+18]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+19]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+20]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+21]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+22]}get featureIndex(){return this._structArray.uint16[this._pos2+23]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+24]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+25]}get numIconVertices(){return this._structArray.uint16[this._pos2+26]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+27]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+28]}get crossTileID(){return this._structArray.uint32[this._pos4+15]}set crossTileID(d){this._structArray.uint32[this._pos4+15]=d}get textOffset0(){return this._structArray.float32[this._pos4+16]}get textOffset1(){return this._structArray.float32[this._pos4+17]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+18]}}Us.prototype.size=76;class _s extends ui{get(d){return new Us(this,d)}}Si(_s,"SymbolInstanceArray");class Eo extends Fi{getoffsetX(d){return this.float32[1*d+0]}}Si(Eo,"GlyphOffsetArray");class $s extends pn{getx(d){return this.int16[3*d+0]}gety(d){return this.int16[3*d+1]}gettileUnitDistanceFromAnchor(d){return this.int16[3*d+2]}}Si($s,"SymbolLineVertexArray");class El extends Bt{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}get layoutVertexArrayOffset(){return this._structArray.uint16[this._pos2+4]}}El.prototype.size=12;class ps extends ji{get(d){return new El(this,d)}}Si(ps,"FeatureIndexArray");class cu extends Bt{get a_centroid_pos0(){return this._structArray.uint16[this._pos2+0]}get a_centroid_pos1(){return this._structArray.uint16[this._pos2+1]}}cu.prototype.size=4;class jl extends Xi{get(d){return new cu(this,d)}}Si(jl,"FillExtrusionCentroidArray");class cl extends Bt{get a_pos_30(){return this._structArray.int16[this._pos2+0]}get a_pos_31(){return this._structArray.int16[this._pos2+1]}get a_pos_32(){return this._structArray.int16[this._pos2+2]}get a_pos_normal_30(){return this._structArray.int16[this._pos2+3]}get a_pos_normal_31(){return this._structArray.int16[this._pos2+4]}get a_pos_normal_32(){return this._structArray.int16[this._pos2+5]}get a_scale(){return this._structArray.float32[this._pos4+3]}}cl.prototype.size=16;class eu extends Gl{get(d){return new cl(this,d)}}Si(eu,"CircleGlobeExtArray");const xd=vn([{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"}]),Dc=vn([{name:"a_dash_to",components:4,type:"Uint16"},{name:"a_dash_from",components:4,type:"Uint16"}]);var yc=ft(function(m){m.exports=function(d,y){var T,P,Y,te,se,pe,xe,Pe;for(P=d.length-(T=3&d.length),Y=y,se=3432918353,pe=461845907,Pe=0;Pe<P;)xe=255&d.charCodeAt(Pe)|(255&d.charCodeAt(++Pe))<<8|(255&d.charCodeAt(++Pe))<<16|(255&d.charCodeAt(++Pe))<<24,++Pe,Y=27492+(65535&(te=5*(65535&(Y=(Y^=xe=(65535&(xe=(xe=(65535&xe)*se+(((xe>>>16)*se&65535)<<16)&4294967295)<<15|xe>>>17))*pe+(((xe>>>16)*pe&65535)<<16)&4294967295)<<13|Y>>>19))+((5*(Y>>>16)&65535)<<16)&4294967295))+((58964+(te>>>16)&65535)<<16);switch(xe=0,T){case 3:xe^=(255&d.charCodeAt(Pe+2))<<16;case 2:xe^=(255&d.charCodeAt(Pe+1))<<8;case 1:Y^=xe=(65535&(xe=(xe=(65535&(xe^=255&d.charCodeAt(Pe)))*se+(((xe>>>16)*se&65535)<<16)&4294967295)<<15|xe>>>17))*pe+(((xe>>>16)*pe&65535)<<16)&4294967295}return Y^=d.length,Y=2246822507*(65535&(Y^=Y>>>16))+((2246822507*(Y>>>16)&65535)<<16)&4294967295,Y=3266489909*(65535&(Y^=Y>>>13))+((3266489909*(Y>>>16)&65535)<<16)&4294967295,(Y^=Y>>>16)>>>0}}),bd=ft(function(m){m.exports=function(d,y){for(var T,P=d.length,Y=y^P,te=0;P>=4;)T=1540483477*(65535&(T=255&d.charCodeAt(te)|(255&d.charCodeAt(++te))<<8|(255&d.charCodeAt(++te))<<16|(255&d.charCodeAt(++te))<<24))+((1540483477*(T>>>16)&65535)<<16),Y=1540483477*(65535&Y)+((1540483477*(Y>>>16)&65535)<<16)^(T=1540483477*(65535&(T^=T>>>24))+((1540483477*(T>>>16)&65535)<<16)),P-=4,++te;switch(P){case 3:Y^=(255&d.charCodeAt(te+2))<<16;case 2:Y^=(255&d.charCodeAt(te+1))<<8;case 1:Y=1540483477*(65535&(Y^=255&d.charCodeAt(te)))+((1540483477*(Y>>>16)&65535)<<16)}return Y=1540483477*(65535&(Y^=Y>>>13))+((1540483477*(Y>>>16)&65535)<<16),(Y^=Y>>>15)>>>0}}),Cu=yc,Ac=bd;Cu.murmur3=yc,Cu.murmur2=Ac;class Qc{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(d,y,T,P){this.ids.push(lh(d)),this.positions.push(y,T,P)}getPositions(d){const y=lh(d);let T=0,P=this.ids.length-1;for(;T<P;){const te=T+P>>1;this.ids[te]>=y?P=te:T=te+1}const Y=[];for(;this.ids[T]===y;)Y.push({index:this.positions[3*T],start:this.positions[3*T+1],end:this.positions[3*T+2]}),T++;return Y}static serialize(d,y){const T=new Float64Array(d.ids),P=new Uint32Array(d.positions);return uh(T,P,0,T.length-1),y&&y.push(T.buffer,P.buffer),{ids:T,positions:P}}static deserialize(d){const y=new Qc;return y.ids=d.ids,y.positions=d.positions,y.indexed=!0,y}}function lh(m){const d=+m;return!isNaN(d)&&Number.MIN_SAFE_INTEGER<=d&&d<=Number.MAX_SAFE_INTEGER?d:Cu(String(m))}function uh(m,d,y,T){for(;y<T;){const P=m[y+T>>1];let Y=y-1,te=T+1;for(;;){do Y++;while(m[Y]<P);do te--;while(m[te]>P);if(Y>=te)break;ap(m,Y,te),ap(d,3*Y,3*te),ap(d,3*Y+1,3*te+1),ap(d,3*Y+2,3*te+2)}te-y<T-te?(uh(m,d,y,te),y=te+1):(uh(m,d,te+1,T),T=te)}}function ap(m,d,y){const T=m[d];m[d]=m[y],m[y]=T}Si(Qc,"FeaturePositionMap");class fl{constructor(d,y){this.gl=d.gl,this.location=y}}class jd extends fl{constructor(d,y){super(d,y),this.current=0}set(d){this.current!==d&&(this.current=d,this.gl.uniform1f(this.location,d))}}class Lh extends fl{constructor(d,y){super(d,y),this.current=[0,0,0,0]}set(d){d[0]===this.current[0]&&d[1]===this.current[1]&&d[2]===this.current[2]&&d[3]===this.current[3]||(this.current=d,this.gl.uniform4f(this.location,d[0],d[1],d[2],d[3]))}}class Jp extends fl{constructor(d,y){super(d,y),this.current=bn.transparent}set(d){d.r===this.current.r&&d.g===this.current.g&&d.b===this.current.b&&d.a===this.current.a||(this.current=d,this.gl.uniform4f(this.location,d.r,d.g,d.b,d.a))}}const op=new Float32Array(16),If=new Float32Array(9),sp=new Float32Array(4);function Oh(m){return[Rt(255*m.r,255*m.g),Rt(255*m.b,255*m.a)]}class ed{constructor(d,y,T){this.value=d,this.uniformNames=y.map(P=>`u_${P}`),this.type=T}setUniform(d,y,T){d.set(T.constantOr(this.value))}getBinding(d,y,T){return this.type==="color"?new Jp(d,y):new jd(d,y)}}class Ud{constructor(d,y){this.uniformNames=y.map(T=>`u_${T}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(d,y){this.pixelRatioFrom=y.pixelRatio||1,this.pixelRatioTo=d.pixelRatio||1,this.patternFrom=y.tl.concat(y.br),this.patternTo=d.tl.concat(d.br)}setUniform(d,y,T,P){const Y=P==="u_pattern_to"||P==="u_dash_to"?this.patternTo:P==="u_pattern_from"||P==="u_dash_from"?this.patternFrom:P==="u_pixel_ratio_to"?this.pixelRatioTo:P==="u_pixel_ratio_from"?this.pixelRatioFrom:null;Y&&d.set(Y)}getBinding(d,y,T){return T==="u_pattern_from"||T==="u_pattern_to"||T==="u_dash_from"||T==="u_dash_to"?new Lh(d,y):new jd(d,y)}}class ac{constructor(d,y,T,P){this.expression=d,this.type=T,this.maxValue=0,this.paintVertexAttributes=y.map(Y=>({name:`a_${Y}`,type:"Float32",components:T==="color"?2:1,offset:0})),this.paintVertexArray=new P}populatePaintArray(d,y,T,P,Y,te){const se=this.paintVertexArray.length,pe=this.expression.evaluate(new Ro(0),y,{},Y,P,te);this.paintVertexArray.resize(d),this._setPaintValue(se,d,pe)}updatePaintArray(d,y,T,P,Y){const te=this.expression.evaluate({zoom:0},T,P,void 0,Y);this._setPaintValue(d,y,te)}_setPaintValue(d,y,T){if(this.type==="color"){const P=Oh(T);for(let Y=d;Y<y;Y++)this.paintVertexArray.emplace(Y,P[0],P[1])}else{for(let P=d;P<y;P++)this.paintVertexArray.emplace(P,T);this.maxValue=Math.max(this.maxValue,Math.abs(T))}}upload(d){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=d.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}}class Su{constructor(d,y,T,P,Y,te){this.expression=d,this.uniformNames=y.map(se=>`u_${se}_t`),this.type=T,this.useIntegerZoom=P,this.zoom=Y,this.maxValue=0,this.paintVertexAttributes=y.map(se=>({name:`a_${se}`,type:"Float32",components:T==="color"?4:2,offset:0})),this.paintVertexArray=new te}populatePaintArray(d,y,T,P,Y,te){const se=this.expression.evaluate(new Ro(this.zoom),y,{},Y,P,te),pe=this.expression.evaluate(new Ro(this.zoom+1),y,{},Y,P,te),xe=this.paintVertexArray.length;this.paintVertexArray.resize(d),this._setPaintValue(xe,d,se,pe)}updatePaintArray(d,y,T,P,Y){const te=this.expression.evaluate({zoom:this.zoom},T,P,void 0,Y),se=this.expression.evaluate({zoom:this.zoom+1},T,P,void 0,Y);this._setPaintValue(d,y,te,se)}_setPaintValue(d,y,T,P){if(this.type==="color"){const Y=Oh(T),te=Oh(P);for(let se=d;se<y;se++)this.paintVertexArray.emplace(se,Y[0],Y[1],te[0],te[1])}else{for(let Y=d;Y<y;Y++)this.paintVertexArray.emplace(Y,T,P);this.maxValue=Math.max(this.maxValue,Math.abs(T),Math.abs(P))}}upload(d){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=d.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}setUniform(d,y){const T=this.useIntegerZoom?Math.floor(y.zoom):y.zoom,P=W(this.expression.interpolationFactor(T,this.zoom,this.zoom+1),0,1);d.set(P)}getBinding(d,y,T){return new jd(d,y)}}class wd{constructor(d,y,T,P,Y,te,se){this.expression=d,this.type=T,this.useIntegerZoom=P,this.zoom=Y,this.layerId=se,this.paintVertexAttributes=(T==="array"?Dc:xd).members;for(let pe=0;pe<y.length;++pe);this.zoomInPaintVertexArray=new te,this.zoomOutPaintVertexArray=new te}populatePaintArray(d,y,T){const P=this.zoomInPaintVertexArray.length;this.zoomInPaintVertexArray.resize(d),this.zoomOutPaintVertexArray.resize(d),this._setPaintValues(P,d,y.patterns&&y.patterns[this.layerId],T)}updatePaintArray(d,y,T,P,Y,te){this._setPaintValues(d,y,T.patterns&&T.patterns[this.layerId],te)}_setPaintValues(d,y,T,P){if(!P||!T)return;const{min:Y,mid:te,max:se}=T,pe=P[Y],xe=P[te],Pe=P[se];if(pe&&xe&&Pe)for(let je=d;je<y;je++)this._setPaintValue(this.zoomInPaintVertexArray,je,xe,pe),this._setPaintValue(this.zoomOutPaintVertexArray,je,xe,Pe)}_setPaintValue(d,y,T,P){d.emplace(y,T.tl[0],T.tl[1],T.br[0],T.br[1],P.tl[0],P.tl[1],P.br[0],P.br[1],T.pixelRatio,P.pixelRatio)}upload(d){this.zoomInPaintVertexArray&&this.zoomInPaintVertexArray.arrayBuffer&&this.zoomOutPaintVertexArray&&this.zoomOutPaintVertexArray.arrayBuffer&&(this.zoomInPaintVertexBuffer=d.createVertexBuffer(this.zoomInPaintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=d.createVertexBuffer(this.zoomOutPaintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.zoomOutPaintVertexBuffer&&this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&&this.zoomInPaintVertexBuffer.destroy()}}class $d{constructor(d,y,T=()=>!0){this.binders={},this._buffers=[];const P=[];for(const Y in d.paint._values){if(!T(Y))continue;const te=d.paint.get(Y);if(!(te instanceof ue&&zs(te.property.specification)))continue;const se=ef(Y,d.type),pe=te.value,xe=te.property.specification.type,Pe=te.property.useIntegerZoom,je=te.property.specification["property-type"],$e=je==="cross-faded"||je==="cross-faded-data-driven",ut=String(Y)==="line-dasharray"&&d.layout.get("line-cap").value.kind!=="constant";if(pe.kind!=="constant"||ut)if(pe.kind==="source"||ut||$e){const bt=Bh(Y,xe,"source");this.binders[Y]=$e?new wd(pe,se,xe,Pe,y,bt,d.id):new ac(pe,se,xe,bt),P.push(`/a_${Y}`)}else{const bt=Bh(Y,xe,"composite");this.binders[Y]=new Su(pe,se,xe,Pe,y,bt),P.push(`/z_${Y}`)}else this.binders[Y]=$e?new Ud(pe.value,se):new ed(pe.value,se,xe),P.push(`/u_${Y}`)}this.cacheKey=P.sort().join("")}getMaxValue(d){const y=this.binders[d];return y instanceof ac||y instanceof Su?y.maxValue:0}populatePaintArrays(d,y,T,P,Y,te){for(const se in this.binders){const pe=this.binders[se];(pe instanceof ac||pe instanceof Su||pe instanceof wd)&&pe.populatePaintArray(d,y,T,P,Y,te)}}setConstantPatternPositions(d,y){for(const T in this.binders){const P=this.binders[T];P instanceof Ud&&P.setConstantPatternPositions(d,y)}}updatePaintArrays(d,y,T,P,Y,te){let se=!1;for(const pe in d){const xe=y.getPositions(pe);for(const Pe of xe){const je=T.feature(Pe.index);for(const $e in this.binders){const ut=this.binders[$e];if((ut instanceof ac||ut instanceof Su||ut instanceof wd)&&ut.expression.isStateDependent===!0){const bt=P.paint.get($e);ut.expression=bt.value,ut.updatePaintArray(Pe.start,Pe.end,je,d[pe],Y,te),se=!0}}}}return se}defines(){const d=[];for(const y in this.binders){const T=this.binders[y];(T instanceof ed||T instanceof Ud)&&d.push(...T.uniformNames.map(P=>`#define HAS_UNIFORM_${P}`))}return d}getBinderAttributes(){const d=[];for(const y in this.binders){const T=this.binders[y];if(T instanceof ac||T instanceof Su||T instanceof wd)for(let P=0;P<T.paintVertexAttributes.length;P++)d.push(T.paintVertexAttributes[P].name)}return d}getBinderUniforms(){const d=[];for(const y in this.binders){const T=this.binders[y];if(T instanceof ed||T instanceof Ud||T instanceof Su)for(const P of T.uniformNames)d.push(P)}return d}getPaintVertexBuffers(){return this._buffers}getUniforms(d,y){const T=[];for(const P in this.binders){const Y=this.binders[P];if(Y instanceof ed||Y instanceof Ud||Y instanceof Su){for(const te of Y.uniformNames)if(y[te]){const se=Y.getBinding(d,y[te],te);T.push({name:te,property:P,binding:se})}}}return T}setUniforms(d,y,T,P){for(const{name:Y,property:te,binding:se}of y)this.binders[te].setUniform(se,P,T.get(te),Y)}updatePaintBuffers(d){this._buffers=[];for(const y in this.binders){const T=this.binders[y];if(d&&T instanceof wd){const P=d.fromScale===2?T.zoomInPaintVertexBuffer:T.zoomOutPaintVertexBuffer;P&&this._buffers.push(P)}else(T instanceof ac||T instanceof Su)&&T.paintVertexBuffer&&this._buffers.push(T.paintVertexBuffer)}}upload(d){for(const y in this.binders){const T=this.binders[y];(T instanceof ac||T instanceof Su||T instanceof wd)&&T.upload(d)}this.updatePaintBuffers()}destroy(){for(const d in this.binders){const y=this.binders[d];(y instanceof ac||y instanceof Su||y instanceof wd)&&y.destroy()}}}class td{constructor(d,y,T=()=>!0){this.programConfigurations={};for(const P of d)this.programConfigurations[P.id]=new $d(P,y,T);this.needsUpload=!1,this._featureMap=new Qc,this._bufferOffset=0}populatePaintArrays(d,y,T,P,Y,te,se){for(const pe in this.programConfigurations)this.programConfigurations[pe].populatePaintArrays(d,y,P,Y,te,se);y.id!==void 0&&this._featureMap.add(y.id,T,this._bufferOffset,d),this._bufferOffset=d,this.needsUpload=!0}updatePaintArrays(d,y,T,P,Y){for(const te of T)this.needsUpload=this.programConfigurations[te.id].updatePaintArrays(d,this._featureMap,y,te,P,Y)||this.needsUpload}get(d){return this.programConfigurations[d]}upload(d){if(this.needsUpload){for(const y in this.programConfigurations)this.programConfigurations[y].upload(d);this.needsUpload=!1}}destroy(){for(const d in this.programConfigurations)this.programConfigurations[d].destroy()}}const Qp={"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"line-dasharray":["dash_to","dash_from"]};function ef(m,d){return Qp[m]||[m.replace(`${d}-`,"").replace(/-/g,"_")]}const lp={"line-pattern":{source:nr,composite:nr},"fill-pattern":{source:nr,composite:nr},"fill-extrusion-pattern":{source:nr,composite:nr},"line-dasharray":{source:dr,composite:dr}},Fh={color:{source:Is,composite:kn},number:{source:Fi,composite:Is}};function Bh(m,d,y){const T=lp[m];return T&&T[y]||Fh[d][y]}Si(ed,"ConstantBinder"),Si(Ud,"CrossFadedConstantBinder"),Si(ac,"SourceExpressionBinder"),Si(wd,"CrossFadedCompositeBinder"),Si(Su,"CompositeExpressionBinder"),Si($d,"ProgramConfiguration",{omit:["_buffers"]}),Si(td,"ProgramConfigurationSet");const ch="-transition";class ss extends Li{constructor(d,y){if(super(),this.id=d.id,this.type=d.type,this._featureFilter={filter:()=>!0,needGeometry:!1,needFeature:!1},this._filterCompiled=!1,d.type!=="custom"&&(this.metadata=(d=d).metadata,this.minzoom=d.minzoom,this.maxzoom=d.maxzoom,d.type!=="background"&&d.type!=="sky"&&(this.source=d.source,this.sourceLayer=d["source-layer"],this.filter=d.filter),y.layout&&(this._unevaluatedLayout=new Z(y.layout)),y.paint)){this._transitionablePaint=new U(y.paint);for(const T in d.paint)this.setPaintProperty(T,d.paint[T],{validate:!1});for(const T in d.layout)this.setLayoutProperty(T,d.layout[T],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new he(y.paint)}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(d){return d==="visibility"?this.visibility:this._unevaluatedLayout.getValue(d)}setLayoutProperty(d,y,T={}){y!=null&&this._validate(Nd,`layers.${this.id}.layout.${d}`,d,y,T)||(d!=="visibility"?this._unevaluatedLayout.setValue(d,y):this.visibility=y)}getPaintProperty(d){return Le(d,ch)?this._transitionablePaint.getTransition(d.slice(0,-ch.length)):this._transitionablePaint.getValue(d)}setPaintProperty(d,y,T={}){if(y!=null&&this._validate(Qu,`layers.${this.id}.paint.${d}`,d,y,T))return!1;if(Le(d,ch))return this._transitionablePaint.setTransition(d.slice(0,-ch.length),y||void 0),!1;{const P=this._transitionablePaint._values[d],Y=P.property.specification["property-type"]==="cross-faded-data-driven",te=P.value.isDataDriven(),se=P.value;this._transitionablePaint.setValue(d,y),this._handleSpecialPaintPropertyUpdate(d);const pe=this._transitionablePaint._values[d].value;return pe.isDataDriven()||te||Y||this._handleOverridablePaintPropertyUpdate(d,se,pe)}}_handleSpecialPaintPropertyUpdate(d){}getProgramIds(){return null}getProgramConfiguration(d){return null}_handleOverridablePaintPropertyUpdate(d,y,T){return!1}isHidden(d){return!!(this.minzoom&&d<this.minzoom)||!!(this.maxzoom&&d>=this.maxzoom)||this.visibility==="none"}updateTransitions(d){this._transitioningPaint=this._transitionablePaint.transitioned(d,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(d,y){d.getCrossfadeParameters&&(this._crossfadeParameters=d.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(d,void 0,y)),this.paint=this._transitioningPaint.possiblyEvaluate(d,void 0,y)}serialize(){const d={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(d.layout=d.layout||{},d.layout.visibility=this.visibility),it(d,(y,T)=>!(y===void 0||T==="layout"&&!Object.keys(y).length||T==="paint"&&!Object.keys(y).length))}_validate(d,y,T,P,Y={}){return(!Y||Y.validate!==!1)&&Vl(this,d.call(hs,{key:y,layerType:this.type,objectKey:T,value:P,styleSpec:tr,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isSky(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(const d in this.paint._values){const y=this.paint.get(d);if(y instanceof ue&&zs(y.property.specification)&&(y.value.kind==="source"||y.value.kind==="composite")&&y.value.isStateDependent)return!0}return!1}compileFilter(){this._filterCompiled||(this._featureFilter=Gi(this.filter),this._filterCompiled=!0)}invalidateCompiledFilter(){this._filterCompiled=!1}dynamicFilter(){return this._featureFilter.dynamicFilter}dynamicFilterNeedsFeature(){return this._featureFilter.needFeature}}const tf=vn([{name:"a_pos",components:2,type:"Int16"}],4),nf=vn([{name:"a_pos_3",components:3,type:"Int16"},{name:"a_pos_normal_3",components:3,type:"Int16"},{name:"a_scale",components:1,type:"Float32"}]);class Qs{constructor(d=[]){this.segments=d}prepareSegment(d,y,T,P){let Y=this.segments[this.segments.length-1];return d>Qs.MAX_VERTEX_ARRAY_LENGTH&&De(`Max vertices per segment is ${Qs.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${d}`),(!Y||Y.vertexLength+d>Qs.MAX_VERTEX_ARRAY_LENGTH||Y.sortKey!==P)&&(Y={vertexOffset:y.length,primitiveOffset:T.length,vertexLength:0,primitiveLength:0},P!==void 0&&(Y.sortKey=P),this.segments.push(Y)),Y}get(){return this.segments}destroy(){for(const d of this.segments)for(const y in d.vaos)d.vaos[y].destroy()}static simpleSegment(d,y,T,P){return new Qs([{vertexOffset:d,primitiveOffset:y,vertexLength:T,primitiveLength:P,vaos:{},sortKey:0}])}}Qs.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Si(Qs,"SegmentVector");var za=8192;class kc{constructor(d,y){d&&(y?this.setSouthWest(d).setNorthEast(y):d.length===4?this.setSouthWest([d[0],d[1]]).setNorthEast([d[2],d[3]]):this.setSouthWest(d[0]).setNorthEast(d[1]))}setNorthEast(d){return this._ne=d instanceof Go?new Go(d.lng,d.lat):Go.convert(d),this}setSouthWest(d){return this._sw=d instanceof Go?new Go(d.lng,d.lat):Go.convert(d),this}extend(d){const y=this._sw,T=this._ne;let P,Y;if(d instanceof Go)P=d,Y=d;else{if(!(d instanceof kc))return Array.isArray(d)?d.length===4||d.every(Array.isArray)?this.extend(kc.convert(d)):this.extend(Go.convert(d)):this;if(P=d._sw,Y=d._ne,!P||!Y)return this}return y||T?(y.lng=Math.min(P.lng,y.lng),y.lat=Math.min(P.lat,y.lat),T.lng=Math.max(Y.lng,T.lng),T.lat=Math.max(Y.lat,T.lat)):(this._sw=new Go(P.lng,P.lat),this._ne=new Go(Y.lng,Y.lat)),this}getCenter(){return new Go((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new Go(this.getWest(),this.getNorth())}getSouthEast(){return new Go(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(d){const{lng:y,lat:T}=Go.convert(d);let P=this._sw.lng<=y&&y<=this._ne.lng;return this._sw.lng>this._ne.lng&&(P=this._sw.lng>=y&&y>=this._ne.lng),this._sw.lat<=T&&T<=this._ne.lat&&P}static convert(d){return!d||d instanceof kc?d:new kc(d)}}const tu=63710088e-1;class Go{constructor(d,y){if(isNaN(d)||isNaN(y))throw new Error(`Invalid LngLat object: (${d}, ${y})`);if(this.lng=+d,this.lat=+y,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new Go(q(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(d){const y=Math.PI/180,T=this.lat*y,P=d.lat*y,Y=Math.sin(T)*Math.sin(P)+Math.cos(T)*Math.cos(P)*Math.cos((d.lng-this.lng)*y);return tu*Math.acos(Math.min(Y,1))}toBounds(d=0){const y=360*d/40075017,T=y/Math.cos(Math.PI/180*this.lat);return new kc(new Go(this.lng-T,this.lat-y),new Go(this.lng+T,this.lat+y))}static convert(d){if(d instanceof Go)return d;if(Array.isArray(d)&&(d.length===2||d.length===3))return new Go(Number(d[0]),Number(d[1]));if(!Array.isArray(d)&&typeof d=="object"&&d!==null)return new Go(Number("lng"in d?d.lng:d.lon),Number(d.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]")}}const up=2*Math.PI*tu;function Fs(m){return up*Math.cos(m*Math.PI/180)}function Md(m){return(180+m)/360}function Eu(m){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+m*Math.PI/360)))/360}function Cd(m,d){return m/Fs(d)}function Tu(m){return 360*m-180}function yl(m){return 360/Math.PI*Math.atan(Math.exp((180-360*m)*Math.PI/180))-90}function cp(m,d){return m*Fs(yl(d))}const Du=85.051129;class Sd{constructor(d,y,T=0){this.x=+d,this.y=+y,this.z=+T}static fromLngLat(d,y=0){const T=Go.convert(d);return new Sd(Md(T.lng),Eu(T.lat),Cd(y,T.lat))}toLngLat(){return new Go(Tu(this.x),yl(this.y))}toAltitude(){return cp(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/up*(d=yl(this.y),1/Math.cos(d*Math.PI/180));var d}}function Hd(m,d,y,T,P,Y,te,se,pe){const xe=(d+T)/2,Pe=(y+P)/2,je=new _(xe,Pe);se(je),function($e,ut,bt,kt,zt,Xt){const wn=bt-zt,Ln=kt-Xt;return Math.abs((kt-ut)*wn-(bt-$e)*Ln)/Math.hypot(wn,Ln)}(je.x,je.y,Y.x,Y.y,te.x,te.y)>=pe?(Hd(m,d,y,xe,Pe,Y,je,se,pe),Hd(m,xe,Pe,T,P,je,te,se,pe)):m.push(te)}function kp(m,d,y){let T=m[0],P=T.x,Y=T.y;d(T);const te=[T];for(let se=1;se<m.length;se++){const pe=m[se],{x:xe,y:Pe}=pe;d(pe),Hd(te,P,Y,xe,Pe,T,pe,d,y),P=xe,Y=Pe,T=pe}return te}const dh=Math.pow(2,14)-1,dp=-dh-1;function hp(m,d){const y=Math.round(m.x*d),T=Math.round(m.y*d);return m.x=W(y,dp,dh),m.y=W(T,dp,dh),(y<m.x||y>m.x+1||T<m.y||T>m.y+1)&&De("Geometry exceeds allowed extent, reduce your vector tile buffer size"),m}function vl(m,d,y){const T=m.loadGeometry(),P=m.extent,Y=za/P;if(d&&y&&y.projection.isReprojectedInTileSpace){const te=1<<d.z,{scale:se,x:pe,y:xe,projection:Pe}=y,je=$e=>{const ut=Tu((d.x+$e.x/P)/te),bt=yl((d.y+$e.y/P)/te),kt=Pe.project(ut,bt);$e.x=(kt.x*se-pe)*P,$e.y=(kt.y*se-xe)*P};for(let $e=0;$e<T.length;$e++)if(m.type!==1)T[$e]=kp(T[$e],je,1);else{const ut=[];for(const bt of T[$e])bt.x<0||bt.x>=P||bt.y<0||bt.y>=P||(je(bt),ut.push(bt));T[$e]=ut}}for(const te of T)for(const se of te)hp(se,Y);return T}function Ic(m,d){return{type:m.type,id:m.id,properties:m.properties,geometry:d?vl(m):[]}}function hh(m,d,y,T,P){m.emplaceBack(2*d+(T+1)/2,2*y+(P+1)/2)}function _l(m,d,y,T){m.emplaceBack(d.x,d.y,d.z,y[0]*16384,y[1]*16384,y[2]*16384,T)}class ro{constructor(d){this.zoom=d.zoom,this.overscaling=d.overscaling,this.layers=d.layers,this.layerIds=this.layers.map(y=>y.id),this.index=d.index,this.hasPattern=!1,this.projection=d.projection,this.layoutVertexArray=new cn,this.indexArray=new Ii,this.segments=new Qs,this.programConfigurations=new td(d.layers,d.zoom),this.stateDependentLayerIds=this.layers.filter(y=>y.isStateDependent()).map(y=>y.id)}populate(d,y,T,P){const Y=this.layers[0],te=[];let se=null;Y.type==="circle"&&(se=Y.layout.get("circle-sort-key"));for(const{feature:xe,id:Pe,index:je,sourceLayerIndex:$e}of d){const ut=this.layers[0]._featureFilter.needGeometry,bt=Ic(xe,ut);if(!this.layers[0]._featureFilter.filter(new Ro(this.zoom),bt,T))continue;const kt=se?se.evaluate(bt,{},T):void 0,zt={id:Pe,properties:xe.properties,type:xe.type,sourceLayerIndex:$e,index:je,geometry:ut?bt.geometry:vl(xe,T,P),patterns:{},sortKey:kt};te.push(zt)}se&&te.sort((xe,Pe)=>xe.sortKey-Pe.sortKey);let pe=null;P.projection.name==="globe"&&(this.globeExtVertexArray=new eu,pe=P.projection);for(const xe of te){const{geometry:Pe,index:je,sourceLayerIndex:$e}=xe,ut=d[je].feature;this.addFeature(xe,Pe,je,y.availableImages,T,pe),y.featureIndex.insert(ut,Pe,je,$e,this.index)}}update(d,y,T,P){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(d,y,this.stateDependentLayers,T,P)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(d){this.uploaded||(this.layoutVertexBuffer=d.createVertexBuffer(this.layoutVertexArray,tf.members),this.indexBuffer=d.createIndexBuffer(this.indexArray),this.globeExtVertexArray&&(this.globeExtVertexBuffer=d.createVertexBuffer(this.globeExtVertexArray,nf.members))),this.programConfigurations.upload(d),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.globeExtVertexBuffer&&this.globeExtVertexBuffer.destroy())}addFeature(d,y,T,P,Y,te){for(const se of y)for(const pe of se){const xe=pe.x,Pe=pe.y;if(xe<0||xe>=za||Pe<0||Pe>=za)continue;if(te){const ut=te.projectTilePoint(xe,Pe,Y),bt=te.upVector(Y,xe,Pe),kt=yl((Pe/za+Y.y)/(1<<Y.z)),zt=te.pixelsPerMeter(kt,1)/Cd(1,kt),Xt=this.globeExtVertexArray;_l(Xt,ut,bt,zt),_l(Xt,ut,bt,zt),_l(Xt,ut,bt,zt),_l(Xt,ut,bt,zt)}const je=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,d.sortKey),$e=je.vertexLength;hh(this.layoutVertexArray,xe,Pe,-1,-1),hh(this.layoutVertexArray,xe,Pe,1,-1),hh(this.layoutVertexArray,xe,Pe,1,1),hh(this.layoutVertexArray,xe,Pe,-1,1),this.indexArray.emplaceBack($e,$e+1,$e+2),this.indexArray.emplaceBack($e,$e+3,$e+2),je.vertexLength+=4,je.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,d,T,{},P,Y)}}function Nh(m,d){for(let y=0;y<m.length;y++)if(fs(d,m[y]))return!0;for(let y=0;y<d.length;y++)if(fs(m,d[y]))return!0;return!!ph(m,d)}function du(m,d,y){return!!fs(m,d)||!!Au(d,m,y)}function Hs(m,d){if(m.length===1)return Ed(d,m[0]);for(let y=0;y<d.length;y++){const T=d[y];for(let P=0;P<T.length;P++)if(fs(m,T[P]))return!0}for(let y=0;y<m.length;y++)if(Ed(d,m[y]))return!0;for(let y=0;y<d.length;y++)if(ph(m,d[y]))return!0;return!1}function Pc(m,d,y){if(m.length>1){if(ph(m,d))return!0;for(let T=0;T<d.length;T++)if(Au(d[T],m,y))return!0}for(let T=0;T<m.length;T++)if(Au(m[T],d,y))return!0;return!1}function ph(m,d){if(m.length===0||d.length===0)return!1;for(let y=0;y<m.length-1;y++){const T=m[y],P=m[y+1];for(let Y=0;Y<d.length-1;Y++)if(Vh(T,P,d[Y],d[Y+1]))return!0}return!1}function Vh(m,d,y,T){return Be(m,y,T)!==Be(d,y,T)&&Be(m,d,y)!==Be(m,d,T)}function Au(m,d,y){const T=y*y;if(d.length===1)return m.distSqr(d[0])<T;for(let P=1;P<d.length;P++)if(zh(m,d[P-1],d[P])<T)return!0;return!1}function zh(m,d,y){const T=d.distSqr(y);if(T===0)return m.distSqr(d);const P=((m.x-d.x)*(y.x-d.x)+(m.y-d.y)*(y.y-d.y))/T;return m.distSqr(P<0?d:P>1?y:y.sub(d)._mult(P)._add(d))}function Ed(m,d){let y,T,P,Y=!1;for(let te=0;te<m.length;te++){y=m[te];for(let se=0,pe=y.length-1;se<y.length;pe=se++)T=y[se],P=y[pe],T.y>d.y!=P.y>d.y&&d.x<(P.x-T.x)*(d.y-T.y)/(P.y-T.y)+T.x&&(Y=!Y)}return Y}function fs(m,d){let y=!1;for(let T=0,P=m.length-1;T<m.length;P=T++){const Y=m[T],te=m[P];Y.y>d.y!=te.y>d.y&&d.x<(te.x-Y.x)*(d.y-Y.y)/(te.y-Y.y)+Y.x&&(y=!y)}return y}function Ws(m,d,y,T,P){for(const te of m)if(d<=te.x&&y<=te.y&&T>=te.x&&P>=te.y)return!0;const Y=[new _(d,y),new _(d,P),new _(T,P),new _(T,y)];if(m.length>2){for(const te of Y)if(fs(m,te))return!0}for(let te=0;te<m.length-1;te++)if(pp(m[te],m[te+1],Y))return!0;return!1}function pp(m,d,y){const T=y[0],P=y[2];if(m.x<T.x&&d.x<T.x||m.x>P.x&&d.x>P.x||m.y<T.y&&d.y<T.y||m.y>P.y&&d.y>P.y)return!1;const Y=Be(m,d,y[0]);return Y!==Be(m,d,y[1])||Y!==Be(m,d,y[2])||Y!==Be(m,d,y[3])}function Rc(m,d,y){const T=d.paint.get(m).value;return T.kind==="constant"?T.value:y.programConfigurations.get(d.id).getMaxValue(m)}function Td(m){return Math.sqrt(m[0]*m[0]+m[1]*m[1])}function Wd(m,d,y,T,P){if(!d[0]&&!d[1])return m;const Y=_.convert(d)._mult(P);y==="viewport"&&Y._rotate(-T);const te=[];for(let se=0;se<m.length;se++)te.push(m[se].sub(Y));return te}function fh(m,d,y,T){const P=_.convert(m)._mult(T);return d==="viewport"&&P._rotate(-y),P}Si(ro,"CircleBucket",{omit:["layers"]});const Ip=new yt({"circle-sort-key":new Ce(tr.layout_circle["circle-sort-key"])});var oc={paint:new yt({"circle-radius":new Ce(tr.paint_circle["circle-radius"]),"circle-color":new Ce(tr.paint_circle["circle-color"]),"circle-blur":new Ce(tr.paint_circle["circle-blur"]),"circle-opacity":new Ce(tr.paint_circle["circle-opacity"]),"circle-translate":new _e(tr.paint_circle["circle-translate"]),"circle-translate-anchor":new _e(tr.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new _e(tr.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new _e(tr.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new Ce(tr.paint_circle["circle-stroke-width"]),"circle-stroke-color":new Ce(tr.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new Ce(tr.paint_circle["circle-stroke-opacity"])}),layout:Ip},Yd=1e-6,Uu=typeof Float32Array!="undefined"?Float32Array:Array;function Pf(){var m=new Uu(9);return Uu!=Float32Array&&(m[1]=0,m[2]=0,m[3]=0,m[5]=0,m[6]=0,m[7]=0),m[0]=1,m[4]=1,m[8]=1,m}function Lc(m){return m[0]=1,m[1]=0,m[2]=0,m[3]=0,m[4]=0,m[5]=1,m[6]=0,m[7]=0,m[8]=0,m[9]=0,m[10]=1,m[11]=0,m[12]=0,m[13]=0,m[14]=0,m[15]=1,m}function sc(m,d,y){var T=d[0],P=d[1],Y=d[2],te=d[3],se=d[4],pe=d[5],xe=d[6],Pe=d[7],je=d[8],$e=d[9],ut=d[10],bt=d[11],kt=d[12],zt=d[13],Xt=d[14],wn=d[15],Ln=y[0],hn=y[1],Jt=y[2],Nn=y[3];return m[0]=Ln*T+hn*se+Jt*je+Nn*kt,m[1]=Ln*P+hn*pe+Jt*$e+Nn*zt,m[2]=Ln*Y+hn*xe+Jt*ut+Nn*Xt,m[3]=Ln*te+hn*Pe+Jt*bt+Nn*wn,m[4]=(Ln=y[4])*T+(hn=y[5])*se+(Jt=y[6])*je+(Nn=y[7])*kt,m[5]=Ln*P+hn*pe+Jt*$e+Nn*zt,m[6]=Ln*Y+hn*xe+Jt*ut+Nn*Xt,m[7]=Ln*te+hn*Pe+Jt*bt+Nn*wn,m[8]=(Ln=y[8])*T+(hn=y[9])*se+(Jt=y[10])*je+(Nn=y[11])*kt,m[9]=Ln*P+hn*pe+Jt*$e+Nn*zt,m[10]=Ln*Y+hn*xe+Jt*ut+Nn*Xt,m[11]=Ln*te+hn*Pe+Jt*bt+Nn*wn,m[12]=(Ln=y[12])*T+(hn=y[13])*se+(Jt=y[14])*je+(Nn=y[15])*kt,m[13]=Ln*P+hn*pe+Jt*$e+Nn*zt,m[14]=Ln*Y+hn*xe+Jt*ut+Nn*Xt,m[15]=Ln*te+hn*Pe+Jt*bt+Nn*wn,m}function so(m,d,y){var T,P,Y,te,se,pe,xe,Pe,je,$e,ut,bt,kt=y[0],zt=y[1],Xt=y[2];return d===m?(m[12]=d[0]*kt+d[4]*zt+d[8]*Xt+d[12],m[13]=d[1]*kt+d[5]*zt+d[9]*Xt+d[13],m[14]=d[2]*kt+d[6]*zt+d[10]*Xt+d[14],m[15]=d[3]*kt+d[7]*zt+d[11]*Xt+d[15]):(P=d[1],Y=d[2],te=d[3],se=d[4],pe=d[5],xe=d[6],Pe=d[7],je=d[8],$e=d[9],ut=d[10],bt=d[11],m[0]=T=d[0],m[1]=P,m[2]=Y,m[3]=te,m[4]=se,m[5]=pe,m[6]=xe,m[7]=Pe,m[8]=je,m[9]=$e,m[10]=ut,m[11]=bt,m[12]=T*kt+se*zt+je*Xt+d[12],m[13]=P*kt+pe*zt+$e*Xt+d[13],m[14]=Y*kt+xe*zt+ut*Xt+d[14],m[15]=te*kt+Pe*zt+bt*Xt+d[15]),m}function $u(m,d,y){var T=y[0],P=y[1],Y=y[2];return m[0]=d[0]*T,m[1]=d[1]*T,m[2]=d[2]*T,m[3]=d[3]*T,m[4]=d[4]*P,m[5]=d[5]*P,m[6]=d[6]*P,m[7]=d[7]*P,m[8]=d[8]*Y,m[9]=d[9]*Y,m[10]=d[10]*Y,m[11]=d[11]*Y,m[12]=d[12],m[13]=d[13],m[14]=d[14],m[15]=d[15],m}function xs(m,d,y){var T=Math.sin(y),P=Math.cos(y),Y=d[4],te=d[5],se=d[6],pe=d[7],xe=d[8],Pe=d[9],je=d[10],$e=d[11];return d!==m&&(m[0]=d[0],m[1]=d[1],m[2]=d[2],m[3]=d[3],m[12]=d[12],m[13]=d[13],m[14]=d[14],m[15]=d[15]),m[4]=Y*P+xe*T,m[5]=te*P+Pe*T,m[6]=se*P+je*T,m[7]=pe*P+$e*T,m[8]=xe*P-Y*T,m[9]=Pe*P-te*T,m[10]=je*P-se*T,m[11]=$e*P-pe*T,m}function nd(m,d,y){var T=Math.sin(y),P=Math.cos(y),Y=d[0],te=d[1],se=d[2],pe=d[3],xe=d[8],Pe=d[9],je=d[10],$e=d[11];return d!==m&&(m[4]=d[4],m[5]=d[5],m[6]=d[6],m[7]=d[7],m[12]=d[12],m[13]=d[13],m[14]=d[14],m[15]=d[15]),m[0]=Y*P-xe*T,m[1]=te*P-Pe*T,m[2]=se*P-je*T,m[3]=pe*P-$e*T,m[8]=Y*T+xe*P,m[9]=te*T+Pe*P,m[10]=se*T+je*P,m[11]=pe*T+$e*P,m}Math.hypot||(Math.hypot=function(){for(var m=0,d=arguments.length;d--;)m+=arguments[d]*arguments[d];return Math.sqrt(m)});var ms=sc;function mh(){var m=new Uu(3);return Uu!=Float32Array&&(m[0]=0,m[1]=0,m[2]=0),m}function Pp(m){var d=new Uu(3);return d[0]=m[0],d[1]=m[1],d[2]=m[2],d}function Gh(m){return Math.hypot(m[0],m[1],m[2])}function Dd(m,d,y){var T=new Uu(3);return T[0]=m,T[1]=d,T[2]=y,T}function Rp(m,d,y){return m[0]=d[0]+y[0],m[1]=d[1]+y[1],m[2]=d[2]+y[2],m}function rd(m,d,y){return m[0]=d[0]-y[0],m[1]=d[1]-y[1],m[2]=d[2]-y[2],m}function rf(m,d,y){return m[0]=d[0]*y[0],m[1]=d[1]*y[1],m[2]=d[2]*y[2],m}function jh(m,d,y){return m[0]=Math.min(d[0],y[0]),m[1]=Math.min(d[1],y[1]),m[2]=Math.min(d[2],y[2]),m}function Ad(m,d,y){return m[0]=Math.max(d[0],y[0]),m[1]=Math.max(d[1],y[1]),m[2]=Math.max(d[2],y[2]),m}function vc(m,d,y){return m[0]=d[0]*y,m[1]=d[1]*y,m[2]=d[2]*y,m}function af(m,d,y,T){return m[0]=d[0]+y[0]*T,m[1]=d[1]+y[1]*T,m[2]=d[2]+y[2]*T,m}function Uh(m,d){var y=d[0],T=d[1],P=d[2],Y=y*y+T*T+P*P;return Y>0&&(Y=1/Math.sqrt(Y)),m[0]=d[0]*Y,m[1]=d[1]*Y,m[2]=d[2]*Y,m}function al(m,d){return m[0]*d[0]+m[1]*d[1]+m[2]*d[2]}function Ul(m,d,y){var T=d[0],P=d[1],Y=d[2],te=y[0],se=y[1],pe=y[2];return m[0]=P*pe-Y*se,m[1]=Y*te-T*pe,m[2]=T*se-P*te,m}function id(m,d,y){var T=d[0],P=d[1],Y=d[2],te=y[3]*T+y[7]*P+y[11]*Y+y[15];return m[0]=(y[0]*T+y[4]*P+y[8]*Y+y[12])/(te=te||1),m[1]=(y[1]*T+y[5]*P+y[9]*Y+y[13])/te,m[2]=(y[2]*T+y[6]*P+y[10]*Y+y[14])/te,m}function qd(m,d,y){var T=y[0],P=y[1],Y=y[2],te=d[0],se=d[1],pe=d[2],xe=P*pe-Y*se,Pe=Y*te-T*pe,je=T*se-P*te,$e=P*je-Y*Pe,ut=Y*xe-T*je,bt=T*Pe-P*xe,kt=2*y[3];return Pe*=kt,je*=kt,ut*=2,bt*=2,m[0]=te+(xe*=kt)+($e*=2),m[1]=se+Pe+ut,m[2]=pe+je+bt,m}var Xd,ad=rd,fp=rf,$h=Gh;function Oc(m,d,y){var T=d[0],P=d[1],Y=d[2],te=d[3];return m[0]=y[0]*T+y[4]*P+y[8]*Y+y[12]*te,m[1]=y[1]*T+y[5]*P+y[9]*Y+y[13]*te,m[2]=y[2]*T+y[6]*P+y[10]*Y+y[14]*te,m[3]=y[3]*T+y[7]*P+y[11]*Y+y[15]*te,m}function Fc(){var m=new Uu(4);return Uu!=Float32Array&&(m[0]=0,m[1]=0,m[2]=0),m[3]=1,m}function of(m){return m[0]=0,m[1]=0,m[2]=0,m[3]=1,m}function gh(m,d,y){y*=.5;var T=d[0],P=d[1],Y=d[2],te=d[3],se=Math.sin(y),pe=Math.cos(y);return m[0]=T*pe+te*se,m[1]=P*pe+Y*se,m[2]=Y*pe-P*se,m[3]=te*pe-T*se,m}mh(),Xd=new Uu(4),Uu!=Float32Array&&(Xd[0]=0,Xd[1]=0,Xd[2]=0,Xd[3]=0),mh(),Dd(1,0,0),Dd(0,1,0),Fc(),Fc(),Pf();class kd{constructor(d,y){this.points=d,this.planes=y}static fromInvProjectionMatrix(d,y,T,P){const Y=Math.pow(2,T),te=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(pe=>{const xe=Oc([],pe,d),Pe=1/xe[3]/y*Y;return function(je,$e,ut){return je[0]=$e[0]*ut[0],je[1]=$e[1]*ut[1],je[2]=$e[2]*ut[2],je[3]=$e[3]*ut[3],je}(xe,xe,[Pe,Pe,P?1/xe[3]:Pe,Pe])}),se=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(pe=>{const xe=Uh([],Ul([],ad([],te[pe[0]],te[pe[1]]),ad([],te[pe[2]],te[pe[1]]))),Pe=-al(xe,te[pe[1]]);return xe.concat(Pe)});return new kd(te,se)}}class Pl{constructor(d,y){this.min=d,this.max=y,this.center=vc([],Rp([],this.min,this.max),.5)}quadrant(d){const y=[d%2==0,d<2],T=Pp(this.min),P=Pp(this.max);for(let Y=0;Y<y.length;Y++)T[Y]=y[Y]?this.min[Y]:this.center[Y],P[Y]=y[Y]?this.center[Y]:this.max[Y];return P[2]=this.max[2],new Pl(T,P)}distanceX(d){return Math.max(Math.min(this.max[0],d[0]),this.min[0])-d[0]}distanceY(d){return Math.max(Math.min(this.max[1],d[1]),this.min[1])-d[1]}distanceZ(d){return Math.max(Math.min(this.max[2],d[2]),this.min[2])-d[2]}getCorners(){const d=this.min,y=this.max;return[[d[0],d[1],d[2]],[y[0],d[1],d[2]],[y[0],y[1],d[2]],[d[0],y[1],d[2]],[d[0],d[1],y[2]],[y[0],d[1],y[2]],[y[0],y[1],y[2]],[d[0],y[1],y[2]]]}intersects(d){const y=this.getCorners();let T=!0;for(let P=0;P<d.planes.length;P++){const Y=d.planes[P];let te=0;for(let se=0;se<y.length;se++)te+=al(Y,y[se])+Y[3]>=0;if(te===0)return 0;te!==y.length&&(T=!1)}if(T)return 2;for(let P=0;P<3;P++){let Y=Number.MAX_VALUE,te=-Number.MAX_VALUE;for(let se=0;se<d.points.length;se++){const pe=d.points[se][P]-this.min[P];Y=Math.min(Y,pe),te=Math.max(te,pe)}if(te<0||Y>this.max[P]-this.min[P])return 0}return 1}}function mp(m,d,y,T,P,Y,te,se,pe){if(Y&&m.queryGeometry.isAboveHorizon)return!1;Y&&(pe*=m.pixelToTileUnitsFactor);for(const xe of d)for(const Pe of xe){const je=Pe.add(se),$e=P&&y.elevation?y.elevation.exaggeration()*P.getElevationAt(je.x,je.y,!0):0,ut=Y?je:Lp(je,$e,T),bt=Y?m.tilespaceRays.map(zt=>ku(zt,$e)):m.queryGeometry.screenGeometry,kt=Oc([],[Pe.x,Pe.y,$e,1],T);if(!te&&Y?pe*=kt[3]/y.cameraToCenterDistance:te&&!Y&&(pe*=y.cameraToCenterDistance/kt[3]),du(bt,ut,pe))return!0}return!1}function Lp(m,d,y){const T=Oc([],[m.x,m.y,d,1],y);return new _(T[0]/T[3],T[1]/T[3])}const gp=Dd(0,0,0),yp=Dd(0,0,1);function ku(m,d){const y=mh();return gp[2]=d,m.intersectsPlane(gp,yp,y),new _(y[0],y[1])}class Zd extends ro{}function Id(m,{width:d,height:y},T,P){if(P){if(P instanceof Uint8ClampedArray)P=new Uint8Array(P.buffer);else if(P.length!==d*y*T)throw new RangeError("mismatched image size")}else P=new Uint8Array(d*y*T);return m.width=d,m.height=y,m.data=P,m}function od(m,d,y){const{width:T,height:P}=d;T===m.width&&P===m.height||(yh(m,d,{x:0,y:0},{x:0,y:0},{width:Math.min(m.width,T),height:Math.min(m.height,P)},y),m.width=T,m.height=P,m.data=d.data)}function yh(m,d,y,T,P,Y){if(P.width===0||P.height===0)return d;if(P.width>m.width||P.height>m.height||y.x>m.width-P.width||y.y>m.height-P.height)throw new RangeError("out of range source coordinates for image copy");if(P.width>d.width||P.height>d.height||T.x>d.width-P.width||T.y>d.height-P.height)throw new RangeError("out of range destination coordinates for image copy");const te=m.data,se=d.data;for(let pe=0;pe<P.height;pe++){const xe=((y.y+pe)*m.width+y.x)*Y,Pe=((T.y+pe)*d.width+T.x)*Y;for(let je=0;je<P.width*Y;je++)se[Pe+je]=te[xe+je]}return d}Si(Zd,"HeatmapBucket",{omit:["layers"]});class mu{constructor(d,y){Id(this,d,1,y)}resize(d){od(this,new mu(d),1)}clone(){return new mu({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(d,y,T,P,Y){yh(d,y,T,P,Y,1)}}class nu{constructor(d,y){Id(this,d,4,y)}resize(d){od(this,new nu(d),4)}replace(d,y){y?this.data.set(d):this.data=d instanceof Uint8ClampedArray?new Uint8Array(d.buffer):d}clone(){return new nu({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(d,y,T,P,Y){yh(d,y,T,P,Y,4)}}Si(mu,"AlphaImage"),Si(nu,"RGBAImage");var vp={paint:new yt({"heatmap-radius":new Ce(tr.paint_heatmap["heatmap-radius"]),"heatmap-weight":new Ce(tr.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new _e(tr.paint_heatmap["heatmap-intensity"]),"heatmap-color":new lt(tr.paint_heatmap["heatmap-color"]),"heatmap-opacity":new _e(tr.paint_heatmap["heatmap-opacity"])})};function Rl(m){const d={},y=m.resolution||256,T=m.clips?m.clips.length:1,P=m.image||new nu({width:y,height:T}),Y=(te,se,pe)=>{d[m.evaluationKey]=pe;const xe=m.expression.evaluate(d);P.data[te+se+0]=Math.floor(255*xe.r/xe.a),P.data[te+se+1]=Math.floor(255*xe.g/xe.a),P.data[te+se+2]=Math.floor(255*xe.b/xe.a),P.data[te+se+3]=Math.floor(255*xe.a)};if(m.clips)for(let te=0,se=0;te<T;++te,se+=4*y)for(let pe=0,xe=0;pe<y;pe++,xe+=4){const Pe=pe/(y-1),{start:je,end:$e}=m.clips[te];Y(se,xe,je*(1-Pe)+$e*Pe)}else for(let te=0,se=0;te<y;te++,se+=4)Y(0,se,te/(y-1));return P}var vh={paint:new yt({"hillshade-illumination-direction":new _e(tr.paint_hillshade["hillshade-illumination-direction"]),"hillshade-illumination-anchor":new _e(tr.paint_hillshade["hillshade-illumination-anchor"]),"hillshade-exaggeration":new _e(tr.paint_hillshade["hillshade-exaggeration"]),"hillshade-shadow-color":new _e(tr.paint_hillshade["hillshade-shadow-color"]),"hillshade-highlight-color":new _e(tr.paint_hillshade["hillshade-highlight-color"]),"hillshade-accent-color":new _e(tr.paint_hillshade["hillshade-accent-color"])})};const _p=vn([{name:"a_pos",components:2,type:"Int16"}],4),{members:om}=_p;var Ys=_h,Iu=_h;function _h(m,d,y){y=y||2;var T,P,Y,te,se,pe,xe,Pe=d&&d.length,je=Pe?d[0]*y:m.length,$e=Hh(m,0,je,y,!0),ut=[];if(!$e||$e.next===$e.prev)return ut;if(Pe&&($e=function(kt,zt,Xt,wn){var Ln,hn,Jt,Nn=[];for(Ln=0,hn=zt.length;Ln<hn;Ln++)(Jt=Hh(kt,zt[Ln]*wn,Ln<hn-1?zt[Ln+1]*wn:kt.length,wn,!1))===Jt.next&&(Jt.steiner=!0),Nn.push(sm(Jt));for(Nn.sort(xh),Ln=0;Ln<Nn.length;Ln++)Xt=Bc(Xt=Bp(Nn[Ln],Xt),Xt.next);return Xt}(m,d,$e,y)),m.length>80*y){T=Y=m[0],P=te=m[1];for(var bt=y;bt<je;bt+=y)(se=m[bt])<T&&(T=se),(pe=m[bt+1])<P&&(P=pe),se>Y&&(Y=se),pe>te&&(te=pe);xe=(xe=Math.max(Y-T,te-P))!==0?1/xe:0}return xl($e,ut,y,T,P,xe),ut}function Hh(m,d,y,T,P){var Y,te;if(P===ur(m,d,y,T)>0)for(Y=d;Y<y;Y+=T)te=Rn(Y,m[Y],m[Y+1],te);else for(Y=y-T;Y>=d;Y-=T)te=Rn(Y,m[Y],m[Y+1],te);return te&&X(te,te.next)&&(qn(te),te=te.next),te}function Bc(m,d){if(!m)return m;d||(d=m);var y,T=m;do if(y=!1,T.steiner||!X(T,T.next)&&dl(T.prev,T,T.next)!==0)T=T.next;else{if(qn(T),(T=d=T.prev)===T.next)break;y=!0}while(y||T!==d);return d}function xl(m,d,y,T,P,Y,te){if(m){!te&&Y&&function(Pe,je,$e,ut){var bt=Pe;do bt.z===null&&(bt.z=Hu(bt.x,bt.y,je,$e,ut)),bt.prevZ=bt.prev,bt.nextZ=bt.next,bt=bt.next;while(bt!==Pe);bt.prevZ.nextZ=null,bt.prevZ=null,function(kt){var zt,Xt,wn,Ln,hn,Jt,Nn,fr,wr=1;do{for(Xt=kt,kt=null,hn=null,Jt=0;Xt;){for(Jt++,wn=Xt,Nn=0,zt=0;zt<wr&&(Nn++,wn=wn.nextZ);zt++);for(fr=wr;Nn>0||fr>0&&wn;)Nn!==0&&(fr===0||!wn||Xt.z<=wn.z)?(Ln=Xt,Xt=Xt.nextZ,Nn--):(Ln=wn,wn=wn.nextZ,fr--),hn?hn.nextZ=Ln:kt=Ln,Ln.prevZ=hn,hn=Ln;Xt=wn}hn.nextZ=null,wr*=2}while(Jt>1)}(bt)}(m,T,P,Y);for(var se,pe,xe=m;m.prev!==m.next;)if(se=m.prev,pe=m.next,Y?Fp(m,T,P,Y):Op(m))d.push(se.i/y),d.push(m.i/y),d.push(pe.i/y),qn(m),m=pe.next,xe=pe.next;else if((m=pe)===xe){te?te===1?xl(m=Kd(Bc(m),d,y),d,y,T,P,Y,2):te===2&&Wh(m,d,y,T,P,Y):xl(Bc(m),d,y,T,P,Y,1);break}}}function Op(m){var d=m.prev,y=m,T=m.next;if(dl(d,y,T)>=0)return!1;for(var P=m.next.next;P!==m.prev;){if(_c(d.x,d.y,y.x,y.y,T.x,T.y,P.x,P.y)&&dl(P.prev,P,P.next)>=0)return!1;P=P.next}return!0}function Fp(m,d,y,T){var P=m.prev,Y=m,te=m.next;if(dl(P,Y,te)>=0)return!1;for(var se=P.x>Y.x?P.x>te.x?P.x:te.x:Y.x>te.x?Y.x:te.x,pe=P.y>Y.y?P.y>te.y?P.y:te.y:Y.y>te.y?Y.y:te.y,xe=Hu(P.x<Y.x?P.x<te.x?P.x:te.x:Y.x<te.x?Y.x:te.x,P.y<Y.y?P.y<te.y?P.y:te.y:Y.y<te.y?Y.y:te.y,d,y,T),Pe=Hu(se,pe,d,y,T),je=m.prevZ,$e=m.nextZ;je&&je.z>=xe&&$e&&$e.z<=Pe;){if(je!==m.prev&&je!==m.next&&_c(P.x,P.y,Y.x,Y.y,te.x,te.y,je.x,je.y)&&dl(je.prev,je,je.next)>=0||(je=je.prevZ,$e!==m.prev&&$e!==m.next&&_c(P.x,P.y,Y.x,Y.y,te.x,te.y,$e.x,$e.y)&&dl($e.prev,$e,$e.next)>=0))return!1;$e=$e.nextZ}for(;je&&je.z>=xe;){if(je!==m.prev&&je!==m.next&&_c(P.x,P.y,Y.x,Y.y,te.x,te.y,je.x,je.y)&&dl(je.prev,je,je.next)>=0)return!1;je=je.prevZ}for(;$e&&$e.z<=Pe;){if($e!==m.prev&&$e!==m.next&&_c(P.x,P.y,Y.x,Y.y,te.x,te.y,$e.x,$e.y)&&dl($e.prev,$e,$e.next)>=0)return!1;$e=$e.nextZ}return!0}function Kd(m,d,y){var T=m;do{var P=T.prev,Y=T.next.next;!X(P,Y)&&oe(P,T,T.next,Y)&&Ct(P,Y)&&Ct(Y,P)&&(d.push(P.i/y),d.push(T.i/y),d.push(Y.i/y),qn(T),qn(T.next),T=m=Y),T=T.next}while(T!==m);return Bc(T)}function Wh(m,d,y,T,P,Y){var te=m;do{for(var se=te.next.next;se!==te.prev;){if(te.i!==se.i&&sf(te,se)){var pe=an(te,se);return te=Bc(te,te.next),pe=Bc(pe,pe.next),xl(te,d,y,T,P,Y),void xl(pe,d,y,T,P,Y)}se=se.next}te=te.next}while(te!==m)}function xh(m,d){return m.x-d.x}function Bp(m,d){var y=function(Y,te){var se,pe=te,xe=Y.x,Pe=Y.y,je=-1/0;do{if(Pe<=pe.y&&Pe>=pe.next.y&&pe.next.y!==pe.y){var $e=pe.x+(Pe-pe.y)*(pe.next.x-pe.x)/(pe.next.y-pe.y);if($e<=xe&&$e>je){if(je=$e,$e===xe){if(Pe===pe.y)return pe;if(Pe===pe.next.y)return pe.next}se=pe.x<pe.next.x?pe:pe.next}}pe=pe.next}while(pe!==te);if(!se)return null;if(xe===je)return se;var ut,bt=se,kt=se.x,zt=se.y,Xt=1/0;pe=se;do xe>=pe.x&&pe.x>=kt&&xe!==pe.x&&_c(Pe<zt?xe:je,Pe,kt,zt,Pe<zt?je:xe,Pe,pe.x,pe.y)&&(ut=Math.abs(Pe-pe.y)/(xe-pe.x),Ct(pe,Y)&&(ut<Xt||ut===Xt&&(pe.x>se.x||pe.x===se.x&&Yh(se,pe)))&&(se=pe,Xt=ut)),pe=pe.next;while(pe!==bt);return se}(m,d);if(!y)return d;var T=an(y,m),P=Bc(y,y.next);return Bc(T,T.next),d===y?P:d}function Yh(m,d){return dl(m.prev,m,d.prev)<0&&dl(d.next,m,m.next)<0}function Hu(m,d,y,T,P){return(m=1431655765&((m=858993459&((m=252645135&((m=16711935&((m=32767*(m-y)*P)|m<<8))|m<<4))|m<<2))|m<<1))|(d=1431655765&((d=858993459&((d=252645135&((d=16711935&((d=32767*(d-T)*P)|d<<8))|d<<4))|d<<2))|d<<1))<<1}function sm(m){var d=m,y=m;do(d.x<y.x||d.x===y.x&&d.y<y.y)&&(y=d),d=d.next;while(d!==m);return y}function _c(m,d,y,T,P,Y,te,se){return(P-te)*(d-se)-(m-te)*(Y-se)>=0&&(m-te)*(T-se)-(y-te)*(d-se)>=0&&(y-te)*(Y-se)-(P-te)*(T-se)>=0}function sf(m,d){return m.next.i!==d.i&&m.prev.i!==d.i&&!function(y,T){var P=y;do{if(P.i!==y.i&&P.next.i!==y.i&&P.i!==T.i&&P.next.i!==T.i&&oe(P,P.next,y,T))return!0;P=P.next}while(P!==y);return!1}(m,d)&&(Ct(m,d)&&Ct(d,m)&&function(y,T){var P=y,Y=!1,te=(y.x+T.x)/2,se=(y.y+T.y)/2;do P.y>se!=P.next.y>se&&P.next.y!==P.y&&te<(P.next.x-P.x)*(se-P.y)/(P.next.y-P.y)+P.x&&(Y=!Y),P=P.next;while(P!==y);return Y}(m,d)&&(dl(m.prev,m,d.prev)||dl(m,d.prev,d))||X(m,d)&&dl(m.prev,m,m.next)>0&&dl(d.prev,d,d.next)>0)}function dl(m,d,y){return(d.y-m.y)*(y.x-d.x)-(d.x-m.x)*(y.y-d.y)}function X(m,d){return m.x===d.x&&m.y===d.y}function oe(m,d,y,T){var P=st(dl(m,d,y)),Y=st(dl(m,d,T)),te=st(dl(y,T,m)),se=st(dl(y,T,d));return P!==Y&&te!==se||!(P!==0||!Se(m,y,d))||!(Y!==0||!Se(m,T,d))||!(te!==0||!Se(y,m,T))||!(se!==0||!Se(y,d,T))}function Se(m,d,y){return d.x<=Math.max(m.x,y.x)&&d.x>=Math.min(m.x,y.x)&&d.y<=Math.max(m.y,y.y)&&d.y>=Math.min(m.y,y.y)}function st(m){return m>0?1:m<0?-1:0}function Ct(m,d){return dl(m.prev,m,m.next)<0?dl(m,d,m.next)>=0&&dl(m,m.prev,d)>=0:dl(m,d,m.prev)<0||dl(m,m.next,d)<0}function an(m,d){var y=new hr(m.i,m.x,m.y),T=new hr(d.i,d.x,d.y),P=m.next,Y=d.prev;return m.next=d,d.prev=m,y.next=P,P.prev=y,T.next=y,y.prev=T,Y.next=T,T.prev=Y,T}function Rn(m,d,y,T){var P=new hr(m,d,y);return T?(P.next=T.next,P.prev=T,T.next.prev=P,T.next=P):(P.prev=P,P.next=P),P}function qn(m){m.next.prev=m.prev,m.prev.next=m.next,m.prevZ&&(m.prevZ.nextZ=m.nextZ),m.nextZ&&(m.nextZ.prevZ=m.prevZ)}function hr(m,d,y){this.i=m,this.x=d,this.y=y,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function ur(m,d,y,T){for(var P=0,Y=d,te=y-T;Y<y;Y+=T)P+=(m[te]-m[Y])*(m[Y+1]+m[te+1]),te=Y;return P}function jr(m,d,y,T,P){ci(m,d,y||0,T||m.length-1,P||ba)}function ci(m,d,y,T,P){for(;T>y;){if(T-y>600){var Y=T-y+1,te=d-y+1,se=Math.log(Y),pe=.5*Math.exp(2*se/3),xe=.5*Math.sqrt(se*pe*(Y-pe)/Y)*(te-Y/2<0?-1:1);ci(m,d,Math.max(y,Math.floor(d-te*pe/Y+xe)),Math.min(T,Math.floor(d+(Y-te)*pe/Y+xe)),P)}var Pe=m[d],je=y,$e=T;for(ra(m,y,d),P(m[T],Pe)>0&&ra(m,y,T);je<$e;){for(ra(m,je,$e),je++,$e--;P(m[je],Pe)<0;)je++;for(;P(m[$e],Pe)>0;)$e--}P(m[y],Pe)===0?ra(m,y,$e):ra(m,++$e,T),$e<=d&&(y=$e+1),d<=$e&&(T=$e-1)}}function ra(m,d,y){var T=m[d];m[d]=m[y],m[y]=T}function ba(m,d){return m<d?-1:m>d?1:0}function Pa(m,d){const y=m.length;if(y<=1)return[m];const T=[];let P,Y;for(let te=0;te<y;te++){const se=Ve(m[te]);se!==0&&(m[te].area=Math.abs(se),Y===void 0&&(Y=se<0),Y===se<0?(P&&T.push(P),P=[m[te]]):P.push(m[te]))}if(P&&T.push(P),d>1)for(let te=0;te<T.length;te++)T[te].length<=d||(jr(T[te],d,1,T[te].length-1,Xr),T[te]=T[te].slice(0,d));return T}function Xr(m,d){return d.area-m.area}function xi(m,d,y){const T=y.patternDependencies;let P=!1;for(const Y of d){const te=Y.paint.get(`${m}-pattern`);te.isConstant()||(P=!0);const se=te.constantOr(null);se&&(P=!0,T[se.to]=!0,T[se.from]=!0)}return P}function fa(m,d,y,T,P){const Y=P.patternDependencies;for(const te of d){const se=te.paint.get(`${m}-pattern`).value;if(se.kind!=="constant"){let pe=se.evaluate({zoom:T-1},y,{},P.availableImages),xe=se.evaluate({zoom:T},y,{},P.availableImages),Pe=se.evaluate({zoom:T+1},y,{},P.availableImages);pe=pe&&pe.name?pe.name:pe,xe=xe&&xe.name?xe.name:xe,Pe=Pe&&Pe.name?Pe.name:Pe,Y[pe]=!0,Y[xe]=!0,Y[Pe]=!0,y.patterns[te.id]={min:pe,mid:xe,max:Pe}}}return y}_h.deviation=function(m,d,y,T){var P=d&&d.length,Y=Math.abs(ur(m,0,P?d[0]*y:m.length,y));if(P)for(var te=0,se=d.length;te<se;te++)Y-=Math.abs(ur(m,d[te]*y,te<se-1?d[te+1]*y:m.length,y));var pe=0;for(te=0;te<T.length;te+=3){var xe=T[te]*y,Pe=T[te+1]*y,je=T[te+2]*y;pe+=Math.abs((m[xe]-m[je])*(m[Pe+1]-m[xe+1])-(m[xe]-m[Pe])*(m[je+1]-m[xe+1]))}return Y===0&&pe===0?0:Math.abs((pe-Y)/Y)},_h.flatten=function(m){for(var d=m[0][0].length,y={vertices:[],holes:[],dimensions:d},T=0,P=0;P<m.length;P++){for(var Y=0;Y<m[P].length;Y++)for(var te=0;te<d;te++)y.vertices.push(m[P][Y][te]);P>0&&y.holes.push(T+=m[P-1].length)}return y},Ys.default=Iu;class Ui{constructor(d){this.zoom=d.zoom,this.overscaling=d.overscaling,this.layers=d.layers,this.layerIds=this.layers.map(y=>y.id),this.index=d.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new cn,this.indexArray=new Ii,this.indexArray2=new Xi,this.programConfigurations=new td(d.layers,d.zoom),this.segments=new Qs,this.segments2=new Qs,this.stateDependentLayerIds=this.layers.filter(y=>y.isStateDependent()).map(y=>y.id),this.projection=d.projection}populate(d,y,T,P){this.hasPattern=xi("fill",this.layers,y);const Y=this.layers[0].layout.get("fill-sort-key"),te=[];for(const{feature:se,id:pe,index:xe,sourceLayerIndex:Pe}of d){const je=this.layers[0]._featureFilter.needGeometry,$e=Ic(se,je);if(!this.layers[0]._featureFilter.filter(new Ro(this.zoom),$e,T))continue;const ut=Y?Y.evaluate($e,{},T,y.availableImages):void 0,bt={id:pe,properties:se.properties,type:se.type,sourceLayerIndex:Pe,index:xe,geometry:je?$e.geometry:vl(se,T,P),patterns:{},sortKey:ut};te.push(bt)}Y&&te.sort((se,pe)=>se.sortKey-pe.sortKey);for(const se of te){const{geometry:pe,index:xe,sourceLayerIndex:Pe}=se;if(this.hasPattern){const je=fa("fill",this.layers,se,this.zoom,y);this.patternFeatures.push(je)}else this.addFeature(se,pe,xe,T,{},y.availableImages);y.featureIndex.insert(d[xe].feature,pe,xe,Pe,this.index)}}update(d,y,T,P){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(d,y,this.stateDependentLayers,T,P)}addFeatures(d,y,T,P,Y){for(const te of this.patternFeatures)this.addFeature(te,te.geometry,te.index,y,T,P)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(d){this.uploaded||(this.layoutVertexBuffer=d.createVertexBuffer(this.layoutVertexArray,om),this.indexBuffer=d.createIndexBuffer(this.indexArray),this.indexBuffer2=d.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(d),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(d,y,T,P,Y,te=[]){for(const se of Pa(y,500)){let pe=0;for(const bt of se)pe+=bt.length;const xe=this.segments.prepareSegment(pe,this.layoutVertexArray,this.indexArray),Pe=xe.vertexLength,je=[],$e=[];for(const bt of se){if(bt.length===0)continue;bt!==se[0]&&$e.push(je.length/2);const kt=this.segments2.prepareSegment(bt.length,this.layoutVertexArray,this.indexArray2),zt=kt.vertexLength;this.layoutVertexArray.emplaceBack(bt[0].x,bt[0].y),this.indexArray2.emplaceBack(zt+bt.length-1,zt),je.push(bt[0].x),je.push(bt[0].y);for(let Xt=1;Xt<bt.length;Xt++)this.layoutVertexArray.emplaceBack(bt[Xt].x,bt[Xt].y),this.indexArray2.emplaceBack(zt+Xt-1,zt+Xt),je.push(bt[Xt].x),je.push(bt[Xt].y);kt.vertexLength+=bt.length,kt.primitiveLength+=bt.length}const ut=Ys(je,$e);for(let bt=0;bt<ut.length;bt+=3)this.indexArray.emplaceBack(Pe+ut[bt],Pe+ut[bt+1],Pe+ut[bt+2]);xe.vertexLength+=pe,xe.primitiveLength+=ut.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,d,T,Y,te,P)}}Si(Ui,"FillBucket",{omit:["layers","patternFeatures"]});const io=new yt({"fill-sort-key":new Ce(tr.layout_fill["fill-sort-key"])});var Qa={paint:new yt({"fill-antialias":new _e(tr.paint_fill["fill-antialias"]),"fill-opacity":new Ce(tr.paint_fill["fill-opacity"]),"fill-color":new Ce(tr.paint_fill["fill-color"]),"fill-outline-color":new Ce(tr.paint_fill["fill-outline-color"]),"fill-translate":new _e(tr.paint_fill["fill-translate"]),"fill-translate-anchor":new _e(tr.paint_fill["fill-translate-anchor"]),"fill-pattern":new Xe(tr.paint_fill["fill-pattern"])}),layout:io};const Ao=vn([{name:"a_pos_normal_ed",components:4,type:"Int16"}]),wa=vn([{name:"a_centroid_pos",components:2,type:"Uint16"}]),Aa=vn([{name:"a_pos_3",components:3,type:"Int16"},{name:"a_pos_normal_3",components:3,type:"Int16"}]),{members:qs}=Ao;var bs=Xs;function Xs(m,d,y,T,P){this.properties={},this.extent=y,this.type=0,this._pbf=m,this._geometry=-1,this._keys=T,this._values=P,m.readFields(Qo,this,d)}function Qo(m,d,y){m==1?d.id=y.readVarint():m==2?function(T,P){for(var Y=T.readVarint()+T.pos;T.pos<Y;){var te=P._keys[T.readVarint()],se=P._values[T.readVarint()];P.properties[te]=se}}(y,d):m==3?d.type=y.readVarint():m==4&&(d._geometry=y.pos)}function ru(m){for(var d,y,T=0,P=0,Y=m.length,te=Y-1;P<Y;te=P++)T+=((y=m[te]).x-(d=m[P]).x)*(d.y+y.y);return T}Xs.types=["Unknown","Point","LineString","Polygon"],Xs.prototype.loadGeometry=function(){var m=this._pbf;m.pos=this._geometry;for(var d,y=m.readVarint()+m.pos,T=1,P=0,Y=0,te=0,se=[];m.pos<y;){if(P<=0){var pe=m.readVarint();T=7&pe,P=pe>>3}if(P--,T===1||T===2)Y+=m.readSVarint(),te+=m.readSVarint(),T===1&&(d&&se.push(d),d=[]),d.push(new _(Y,te));else{if(T!==7)throw new Error("unknown command "+T);d&&d.push(d[0].clone())}}return d&&se.push(d),se},Xs.prototype.bbox=function(){var m=this._pbf;m.pos=this._geometry;for(var d=m.readVarint()+m.pos,y=1,T=0,P=0,Y=0,te=1/0,se=-1/0,pe=1/0,xe=-1/0;m.pos<d;){if(T<=0){var Pe=m.readVarint();y=7&Pe,T=Pe>>3}if(T--,y===1||y===2)(P+=m.readSVarint())<te&&(te=P),P>se&&(se=P),(Y+=m.readSVarint())<pe&&(pe=Y),Y>xe&&(xe=Y);else if(y!==7)throw new Error("unknown command "+y)}return[te,pe,se,xe]},Xs.prototype.toGeoJSON=function(m,d,y){var T,P,Y=this.extent*Math.pow(2,y),te=this.extent*m,se=this.extent*d,pe=this.loadGeometry(),xe=Xs.types[this.type];function Pe(ut){for(var bt=0;bt<ut.length;bt++){var kt=ut[bt];ut[bt]=[360*(kt.x+te)/Y-180,360/Math.PI*Math.atan(Math.exp((180-360*(kt.y+se)/Y)*Math.PI/180))-90]}}switch(this.type){case 1:var je=[];for(T=0;T<pe.length;T++)je[T]=pe[T][0];Pe(pe=je);break;case 2:for(T=0;T<pe.length;T++)Pe(pe[T]);break;case 3:for(pe=function(ut){var bt=ut.length;if(bt<=1)return[ut];for(var kt,zt,Xt=[],wn=0;wn<bt;wn++){var Ln=ru(ut[wn]);Ln!==0&&(zt===void 0&&(zt=Ln<0),zt===Ln<0?(kt&&Xt.push(kt),kt=[ut[wn]]):kt.push(ut[wn]))}return kt&&Xt.push(kt),Xt}(pe),T=0;T<pe.length;T++)for(P=0;P<pe[T].length;P++)Pe(pe[T][P])}pe.length===1?pe=pe[0]:xe="Multi"+xe;var $e={type:"Feature",geometry:{type:xe,coordinates:pe},properties:this.properties};return"id"in this&&($e.id=this.id),$e};var $l=Hl;function Hl(m,d){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=m,this._keys=[],this._values=[],this._features=[],m.readFields(Wu,this,d),this.length=this._features.length}function Wu(m,d,y){m===15?d.version=y.readVarint():m===1?d.name=y.readString():m===5?d.extent=y.readVarint():m===2?d._features.push(y.pos):m===3?d._keys.push(y.readString()):m===4&&d._values.push(function(T){for(var P=null,Y=T.readVarint()+T.pos;T.pos<Y;){var te=T.readVarint()>>3;P=te===1?T.readString():te===2?T.readFloat():te===3?T.readDouble():te===4?T.readVarint64():te===5?T.readVarint():te===6?T.readSVarint():te===7?T.readBoolean():null}return P}(y))}function qo(m,d,y){if(m===3){var T=new $l(y,y.readVarint()+y.pos);T.length&&(d[T.name]=T)}}Hl.prototype.feature=function(m){if(m<0||m>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[m];var d=this._pbf.readVarint()+this._pbf.pos;return new bs(this._pbf,d,this.extent,this._keys,this._values)};var Nc={VectorTile:function(m,d){this.layers=m.readFields(qo,{},d)},VectorTileFeature:bs,VectorTileLayer:$l};function Yu(m,d,y,T){const P=[],Y=T===0?(te,se,pe,xe,Pe,je)=>{te.push(new _(je,pe+(je-se)/(xe-se)*(Pe-pe)))}:(te,se,pe,xe,Pe,je)=>{te.push(new _(se+(je-pe)/(Pe-pe)*(xe-se),je))};for(const te of m){const se=[];for(const pe of te){if(pe.length<=2)continue;const xe=[];for(let $e=0;$e<pe.length-1;$e++){const ut=pe[$e].x,bt=pe[$e].y,kt=pe[$e+1].x,zt=pe[$e+1].y,Xt=T===0?ut:bt,wn=T===0?kt:zt;Xt<d?wn>d&&Y(xe,ut,bt,kt,zt,d):Xt>y?wn<y&&Y(xe,ut,bt,kt,zt,y):xe.push(pe[$e]),wn<d&&Xt>=d&&Y(xe,ut,bt,kt,zt,d),wn>y&&Xt<=y&&Y(xe,ut,bt,kt,zt,y)}let Pe=pe[pe.length-1];const je=T===0?Pe.x:Pe.y;je>=d&&je<=y&&xe.push(Pe),xe.length&&(Pe=xe[xe.length-1],xe[0].x===Pe.x&&xe[0].y===Pe.y||xe.push(xe[0]),se.push(xe))}se.length&&P.push(se)}return P}const bh=Nc.VectorTileFeature.types,qh=Math.pow(2,13);function sd(m,d,y,T,P,Y,te,se){m.emplaceBack((d<<1)+te,(y<<1)+Y,(Math.floor(T*qh)<<1)+P,Math.round(se))}function Vc(m,d,y){m.emplaceBack(d.x,d.y,d.z,y[0]*16384,y[1]*16384,y[2]*16384)}class Jd{constructor(){this.acc=new _(0,0),this.polyCount=[]}startRing(d){this.currentPolyCount={edges:0,top:0},this.polyCount.push(this.currentPolyCount),this.min||(this.min=new _(d.x,d.y),this.max=new _(d.x,d.y))}append(d,y){this.currentPolyCount.edges++,this.acc._add(d);const T=this.min,P=this.max;d.x<T.x?T.x=d.x:d.x>P.x&&(P.x=d.x),d.y<T.y?T.y=d.y:d.y>P.y&&(P.y=d.y),((d.x===0||d.x===za)&&d.x===y.x)!=((d.y===0||d.y===za)&&d.y===y.y)&&this.processBorderOverlap(d,y),y.x<0!=d.x<0&&this.addBorderIntersection(0,Qe(y.y,d.y,(0-y.x)/(d.x-y.x))),y.x>za!=d.x>za&&this.addBorderIntersection(1,Qe(y.y,d.y,(za-y.x)/(d.x-y.x))),y.y<0!=d.y<0&&this.addBorderIntersection(2,Qe(y.x,d.x,(0-y.y)/(d.y-y.y))),y.y>za!=d.y>za&&this.addBorderIntersection(3,Qe(y.x,d.x,(za-y.y)/(d.y-y.y)))}addBorderIntersection(d,y){this.borders||(this.borders=[[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE]]);const T=this.borders[d];y<T[0]&&(T[0]=y),y>T[1]&&(T[1]=y)}processBorderOverlap(d,y){if(d.x===y.x){if(d.y===y.y)return;const T=d.x===0?0:1;this.addBorderIntersection(T,y.y),this.addBorderIntersection(T,d.y)}else{const T=d.y===0?2:3;this.addBorderIntersection(T,y.x),this.addBorderIntersection(T,d.x)}}centroid(){const d=this.polyCount.reduce((y,T)=>y+T.edges,0);return d!==0?this.acc.div(d)._round():new _(0,0)}span(){return new _(this.max.x-this.min.x,this.max.y-this.min.y)}intersectsCount(){return this.borders.reduce((d,y)=>d+ +(y[0]!==Number.MAX_VALUE),0)}}class zc{constructor(d){this.zoom=d.zoom,this.canonical=d.canonical,this.overscaling=d.overscaling,this.layers=d.layers,this.layerIds=this.layers.map(y=>y.id),this.index=d.index,this.hasPattern=!1,this.projection=d.projection,this.layoutVertexArray=new Cn,this.centroidVertexArray=new jl,this.indexArray=new Ii,this.programConfigurations=new td(d.layers,d.zoom),this.segments=new Qs,this.stateDependentLayerIds=this.layers.filter(y=>y.isStateDependent()).map(y=>y.id),this.enableTerrain=d.enableTerrain}populate(d,y,T,P){this.features=[],this.hasPattern=xi("fill-extrusion",this.layers,y),this.featuresOnBorder=[],this.borders=[[],[],[],[]],this.borderDoneWithNeighborZ=[-1,-1,-1,-1],this.tileToMeter=function(Y){const te=Math.exp(Math.PI*(1-Y.y/(1<<Y.z)*2));return 80150034*te/(te*te+1)/za/(1<<Y.z)}(T);for(const{feature:Y,id:te,index:se,sourceLayerIndex:pe}of d){const xe=this.layers[0]._featureFilter.needGeometry,Pe=Ic(Y,xe);if(!this.layers[0]._featureFilter.filter(new Ro(this.zoom),Pe,T))continue;const je={id:te,sourceLayerIndex:pe,index:se,geometry:xe?Pe.geometry:vl(Y,T,P),properties:Y.properties,type:Y.type,patterns:{}},$e=this.layoutVertexArray.length;this.hasPattern?this.features.push(fa("fill-extrusion",this.layers,je,this.zoom,y)):this.addFeature(je,je.geometry,se,T,{},y.availableImages,P),y.featureIndex.insert(Y,je.geometry,se,pe,this.index,$e)}this.sortBorders()}addFeatures(d,y,T,P,Y){for(const te of this.features){const{geometry:se}=te;this.addFeature(te,se,te.index,y,T,P,Y)}this.sortBorders()}update(d,y,T,P){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(d,y,this.stateDependentLayers,T,P)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(d){this.uploaded||(this.layoutVertexBuffer=d.createVertexBuffer(this.layoutVertexArray,qs),this.indexBuffer=d.createIndexBuffer(this.indexArray),this.layoutVertexExtArray&&(this.layoutVertexExtBuffer=d.createVertexBuffer(this.layoutVertexExtArray,Aa.members,!0))),this.programConfigurations.upload(d),this.uploaded=!0}uploadCentroid(d){this.centroidVertexArray.length!==0&&(this.centroidVertexBuffer?this.needsCentroidUpdate&&this.centroidVertexBuffer.updateData(this.centroidVertexArray):this.centroidVertexBuffer=d.createVertexBuffer(this.centroidVertexArray,wa.members,!0),this.needsCentroidUpdate=!1)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.centroidVertexBuffer&&this.centroidVertexBuffer.destroy(),this.layoutVertexExtBuffer&&this.layoutVertexExtBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(d,y,T,P,Y,te,se){const pe=[new _(0,0),new _(za,za)],xe=se.projection,Pe=xe.name==="globe",je=this.enableTerrain&&!Pe?new Jd:null;Pe&&!this.layoutVertexExtArray&&(this.layoutVertexExtArray=new Sl);const $e=Pa(y,500);for(let kt=$e.length-1;kt>=0;kt--){const zt=$e[kt];(zt.length===0||(ut=zt[0]).every(Xt=>Xt.x<=0)||ut.every(Xt=>Xt.x>=za)||ut.every(Xt=>Xt.y<=0)||ut.every(Xt=>Xt.y>=za))&&$e.splice(kt,1)}var ut;let bt;if(Pe){const zt=1<<P.z,Xt=Tu(P.x/zt),wn=Tu((P.x+1)/zt),Ln=yl(P.y/zt),hn=yl((P.y+1)/zt);bt=function(Jt,Nn,fr,wr,Rr=0,$r){const mr=[];if(!Jt.length||!fr||!wr)return mr;const Sr=(Za,co)=>{for(const Ji of Za)mr.push({polygon:Ji,bounds:co})},Wr=Math.ceil(Math.log2(fr)),di=Math.ceil(Math.log2(wr)),ri=Wr-di,li=[];for(let Za=0;Za<Math.abs(ri);Za++)li.push(ri>0?0:1);for(let Za=0;Za<Math.min(Wr,di);Za++)li.push(0),li.push(1);let Wa=Jt;if(Wa=Yu(Wa,Nn[0].y-Rr,Nn[1].y+Rr,1),Wa=Yu(Wa,Nn[0].x-Rr,Nn[1].x+Rr,0),!Wa.length)return mr;const Do=[];for(li.length?Do.push({polygons:Wa,bounds:Nn,depth:0}):Sr(Wa,Nn);Do.length;){const Za=Do.pop(),co=Za.depth,Ji=li[co],Vi=Za.bounds[0],Lo=Za.bounds[1],es=Ji===0?Vi.x:Vi.y,au=Ji===0?Lo.x:Lo.y,nl=$r?$r(Ji,es,au):.5*(es+au),ou=Yu(Za.polygons,es-Rr,nl+Rr,Ji),ts=Yu(Za.polygons,nl-Rr,au+Rr,Ji);if(ou.length){const Bo=[Vi,new _(Ji===0?nl:Lo.x,Ji===1?nl:Lo.y)];li.length>co+1?Do.push({polygons:ou,bounds:Bo,depth:co+1}):Sr(ou,Bo)}if(ts.length){const Bo=[new _(Ji===0?nl:Vi.x,Ji===1?nl:Vi.y),Lo];li.length>co+1?Do.push({polygons:ts,bounds:Bo,depth:co+1}):Sr(ts,Bo)}}return mr}($e,pe,Math.ceil((wn-Xt)/11.25),Math.ceil((Ln-hn)/11.25),1,(Jt,Nn,fr)=>{if(Jt===0)return .5*(Nn+fr);{const wr=yl((P.y+Nn/za)/zt);return(Eu(.5*(yl((P.y+fr/za)/zt)+wr))*zt-P.y)*za}})}else{bt=[];for(const kt of $e)bt.push({polygon:kt,bounds:pe})}for(const kt of bt){const zt=kt.polygon;let Xt=0,wn=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray);for(let fr=0;fr<zt.length;fr++){const wr=zt[fr];if(wr.length===0)continue;Xt+=wr.length;let Rr=0;je&&je.startRing(wr[0]);for(let $r=0;$r<wr.length;$r++){const mr=wr[$r];if($r>=1){const Sr=wr[$r-1];if(!wh(mr,Sr,kt.bounds)){je&&je.append(mr,Sr),wn.vertexLength+4>Qs.MAX_VERTEX_ARRAY_LENGTH&&(wn=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));const Wr=mr.sub(Sr)._perp(),di=Wr.x/(Math.abs(Wr.x)+Math.abs(Wr.y)),ri=Wr.y>0?1:0,li=Sr.dist(mr);Rr+li>32768&&(Rr=0),sd(this.layoutVertexArray,mr.x,mr.y,di,ri,0,0,Rr),sd(this.layoutVertexArray,mr.x,mr.y,di,ri,0,1,Rr),Rr+=li,sd(this.layoutVertexArray,Sr.x,Sr.y,di,ri,0,0,Rr),sd(this.layoutVertexArray,Sr.x,Sr.y,di,ri,0,1,Rr);const Wa=wn.vertexLength;if(this.indexArray.emplaceBack(Wa,Wa+2,Wa+1),this.indexArray.emplaceBack(Wa+1,Wa+2,Wa+3),wn.vertexLength+=4,wn.primitiveLength+=2,Pe){const Do=this.layoutVertexExtArray,Za=xe.projectTilePoint(mr.x,mr.y,P),co=xe.projectTilePoint(Sr.x,Sr.y,P),Ji=xe.upVector(P,mr.x,mr.y),Vi=xe.upVector(P,Sr.x,Sr.y);Vc(Do,Za,Ji),Vc(Do,Za,Ji),Vc(Do,co,Vi),Vc(Do,co,Vi)}}}}}if(wn.vertexLength+Xt>Qs.MAX_VERTEX_ARRAY_LENGTH&&(wn=this.segments.prepareSegment(Xt,this.layoutVertexArray,this.indexArray)),bh[d.type]!=="Polygon")continue;const Ln=[],hn=[],Jt=wn.vertexLength;for(let fr=0;fr<zt.length;fr++){const wr=zt[fr];if(wr.length!==0){wr!==zt[0]&&hn.push(Ln.length/2);for(let Rr=0;Rr<wr.length;Rr++){const $r=wr[Rr];sd(this.layoutVertexArray,$r.x,$r.y,0,0,1,1,0),Ln.push($r.x),Ln.push($r.y),je&&je.currentPolyCount.top++,Pe&&Vc(this.layoutVertexExtArray,xe.projectTilePoint($r.x,$r.y,P),xe.upVector(P,$r.x,$r.y))}}}const Nn=Ys(Ln,hn);for(let fr=0;fr<Nn.length;fr+=3)this.indexArray.emplaceBack(Jt+Nn[fr],Jt+Nn[fr+2],Jt+Nn[fr+1]);wn.primitiveLength+=Nn.length/3,wn.vertexLength+=Xt}if(je&&je.polyCount.length>0){if(je.borders){je.vertexArrayOffset=this.centroidVertexArray.length;const kt=je.borders,zt=this.featuresOnBorder.push(je)-1;for(let Xt=0;Xt<4;Xt++)kt[Xt][0]!==Number.MAX_VALUE&&this.borders[Xt].push(zt)}this.encodeCentroid(je.borders?void 0:je.centroid(),je)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,d,T,Y,te,P)}sortBorders(){for(let d=0;d<4;d++)this.borders[d].sort((y,T)=>this.featuresOnBorder[y].borders[d][0]-this.featuresOnBorder[T].borders[d][0])}encodeCentroid(d,y,T=!0){let P,Y;if(d)if(d.y!==0){const se=y.span()._mult(this.tileToMeter);P=(Math.max(d.x,1)<<3)+Math.min(7,Math.round(se.x/10)),Y=(Math.max(d.y,1)<<3)+Math.min(7,Math.round(se.y/10))}else P=Math.ceil(7*(d.x+450)),Y=0;else P=0,Y=+T;let te=T?this.centroidVertexArray.length:y.vertexArrayOffset;for(const se of y.polyCount){T&&this.centroidVertexArray.resize(this.centroidVertexArray.length+4*se.edges+se.top);for(let pe=0;pe<2*se.edges;pe++)this.centroidVertexArray.emplace(te++,0,Y),this.centroidVertexArray.emplace(te++,P,Y);for(let pe=0;pe<se.top;pe++)this.centroidVertexArray.emplace(te++,P,Y)}}}function wh(m,d,y){return m.x===d.x&&(m.x<y[0].x||m.x>y[1].x)||m.y===d.y&&(m.y<y[0].y||m.y>y[1].y)}Si(zc,"FillExtrusionBucket",{omit:["layers","features"]}),Si(Jd,"PartMetadata");var Rf={paint:new yt({"fill-extrusion-opacity":new _e(tr["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Ce(tr["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new _e(tr["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new _e(tr["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Xe(tr["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Ce(tr["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Ce(tr["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new _e(tr["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})};function Xh(m,d){return m.x*d.x+m.y*d.y}function lf(m,d){if(m.length===1){let y=0;const T=d[y++];let P;for(;!P||T.equals(P);)if(P=d[y++],!P)return 1/0;for(;y<d.length;y++){const Y=d[y],te=m[0],se=P.sub(T),pe=Y.sub(T),xe=te.sub(T),Pe=Xh(se,se),je=Xh(se,pe),$e=Xh(pe,pe),ut=Xh(xe,se),bt=Xh(xe,pe),kt=Pe*$e-je*je,zt=($e*ut-je*bt)/kt,Xt=(Pe*bt-je*ut)/kt,wn=T.z*(1-zt-Xt)+P.z*zt+Y.z*Xt;if(isFinite(wn))return wn}return 1/0}{let y=1/0;for(const T of d)y=Math.min(y,T.z);return y}}function Lf(m){const d=new _(m[0],m[1]);return d.z=m[2],d}function Of(m,d,y,T,P,Y,te,se){const pe=te*P.getElevationAt(m,d,!0,!0),xe=Y[0]!==0,Pe=xe?Y[1]===0?te*(Y[0]/7-450):te*function(je,$e,ut){const bt=Math.floor($e[0]/8),kt=Math.floor($e[1]/8),zt=10*($e[0]-8*bt),Xt=10*($e[1]-8*kt),wn=je.getElevationAt(bt,kt,!0,!0),Ln=je.getMeterToDEM(ut),hn=Math.floor(.5*(zt*Ln-1)),Jt=Math.floor(.5*(Xt*Ln-1)),Nn=je.tileCoordToPixel(bt,kt),fr=2*hn+1,wr=2*Jt+1,Rr=function(ri,li,Wa,Do,Za){return[ri.getElevationAtPixel(li,Wa,!0),ri.getElevationAtPixel(li+Za,Wa,!0),ri.getElevationAtPixel(li,Wa+Za,!0),ri.getElevationAtPixel(li+Do,Wa+Za,!0)]}(je,Nn.x-hn,Nn.y-Jt,fr,wr),$r=Math.abs(Rr[0]-Rr[1]),mr=Math.abs(Rr[2]-Rr[3]),Sr=Math.abs(Rr[0]-Rr[2])+Math.abs(Rr[1]-Rr[3]),Wr=Math.min(.25,.5*Ln*($r+mr)/fr),di=Math.min(.25,.5*Ln*Sr/wr);return wn+Math.max(Wr*zt,di*Xt)}(P,Y,se):pe;return{base:pe+(y===0)?-1:y,top:xe?Math.max(Pe+T,pe+y+2):pe+T}}const Ff=vn([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"},{name:"a_linesofar",components:1,type:"Float32"}],4),{members:Bf}=Ff,lm=vn([{name:"a_packed",components:3,type:"Float32"}]),{members:Nf}=lm,Vf=Nc.VectorTileFeature.types,Ym=Math.cos(Math.PI/180*37.5);class uf{constructor(d){this.zoom=d.zoom,this.overscaling=d.overscaling,this.layers=d.layers,this.layerIds=this.layers.map(y=>y.id),this.index=d.index,this.projection=d.projection,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach(y=>{this.gradients[y.id]={}}),this.layoutVertexArray=new un,this.layoutVertexArray2=new Qr,this.indexArray=new Ii,this.programConfigurations=new td(d.layers,d.zoom),this.segments=new Qs,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(y=>y.isStateDependent()).map(y=>y.id)}populate(d,y,T,P){this.hasPattern=xi("line",this.layers,y);const Y=this.layers[0].layout.get("line-sort-key"),te=[];for(const{feature:Pe,id:je,index:$e,sourceLayerIndex:ut}of d){const bt=this.layers[0]._featureFilter.needGeometry,kt=Ic(Pe,bt);if(!this.layers[0]._featureFilter.filter(new Ro(this.zoom),kt,T))continue;const zt=Y?Y.evaluate(kt,{},T):void 0,Xt={id:je,properties:Pe.properties,type:Pe.type,sourceLayerIndex:ut,index:$e,geometry:bt?kt.geometry:vl(Pe,T,P),patterns:{},sortKey:zt};te.push(Xt)}Y&&te.sort((Pe,je)=>Pe.sortKey-je.sortKey);const{lineAtlas:se,featureIndex:pe}=y,xe=this.addConstantDashes(se);for(const Pe of te){const{geometry:je,index:$e,sourceLayerIndex:ut}=Pe;if(xe&&this.addFeatureDashes(Pe,se),this.hasPattern){const bt=fa("line",this.layers,Pe,this.zoom,y);this.patternFeatures.push(bt)}else this.addFeature(Pe,je,$e,T,se.positions,y.availableImages);pe.insert(d[$e].feature,je,$e,ut,this.index)}}addConstantDashes(d){let y=!1;for(const T of this.layers){const P=T.paint.get("line-dasharray").value,Y=T.layout.get("line-cap").value;if(P.kind!=="constant"||Y.kind!=="constant")y=!0;else{const te=Y.value,se=P.value;if(!se)continue;d.addDash(se.from,te),d.addDash(se.to,te),se.other&&d.addDash(se.other,te)}}return y}addFeatureDashes(d,y){const T=this.zoom;for(const P of this.layers){const Y=P.paint.get("line-dasharray").value,te=P.layout.get("line-cap").value;if(Y.kind==="constant"&&te.kind==="constant")continue;let se,pe,xe,Pe,je,$e;if(Y.kind==="constant"){const zt=Y.value;if(!zt)continue;se=zt.other||zt.to,pe=zt.to,xe=zt.from}else se=Y.evaluate({zoom:T-1},d),pe=Y.evaluate({zoom:T},d),xe=Y.evaluate({zoom:T+1},d);te.kind==="constant"?Pe=je=$e=te.value:(Pe=te.evaluate({zoom:T-1},d),je=te.evaluate({zoom:T},d),$e=te.evaluate({zoom:T+1},d)),y.addDash(se,Pe),y.addDash(pe,je),y.addDash(xe,$e);const ut=y.getKey(se,Pe),bt=y.getKey(pe,je),kt=y.getKey(xe,$e);d.patterns[P.id]={min:ut,mid:bt,max:kt}}}update(d,y,T,P){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(d,y,this.stateDependentLayers,T,P)}addFeatures(d,y,T,P,Y){for(const te of this.patternFeatures)this.addFeature(te,te.geometry,te.index,y,T,P)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(d){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=d.createVertexBuffer(this.layoutVertexArray2,Nf)),this.layoutVertexBuffer=d.createVertexBuffer(this.layoutVertexArray,Bf),this.indexBuffer=d.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(d),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(d){if(d.properties&&d.properties.hasOwnProperty("mapbox_clip_start")&&d.properties.hasOwnProperty("mapbox_clip_end"))return{start:+d.properties.mapbox_clip_start,end:+d.properties.mapbox_clip_end}}addFeature(d,y,T,P,Y,te){const se=this.layers[0].layout,pe=se.get("line-join").evaluate(d,{}),xe=se.get("line-cap").evaluate(d,{}),Pe=se.get("line-miter-limit"),je=se.get("line-round-limit");this.lineClips=this.lineFeatureClips(d);for(const $e of y)this.addLine($e,d,pe,xe,Pe,je);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,d,T,Y,te,P)}addLine(d,y,T,P,Y,te){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineSoFar=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let Xt=0;Xt<d.length-1;Xt++)this.totalDistance+=d[Xt].dist(d[Xt+1]);this.updateScaledDistance(),this.maxLineLength=Math.max(this.maxLineLength,this.totalDistance)}const se=Vf[y.type]==="Polygon";let pe=d.length;for(;pe>=2&&d[pe-1].equals(d[pe-2]);)pe--;let xe=0;for(;xe<pe-1&&d[xe].equals(d[xe+1]);)xe++;if(pe<(se?3:2))return;T==="bevel"&&(Y=1.05);const Pe=this.overscaling<=16?122880/(512*this.overscaling):0,je=this.segments.prepareSegment(10*pe,this.layoutVertexArray,this.indexArray);let $e,ut,bt,kt,zt;this.e1=this.e2=-1,se&&($e=d[pe-2],zt=d[xe].sub($e)._unit()._perp());for(let Xt=xe;Xt<pe;Xt++){if(bt=Xt===pe-1?se?d[xe+1]:void 0:d[Xt+1],bt&&d[Xt].equals(bt))continue;zt&&(kt=zt),$e&&(ut=$e),$e=d[Xt],zt=bt?bt.sub($e)._unit()._perp():kt,kt=kt||zt;let wn=kt.add(zt);wn.x===0&&wn.y===0||wn._unit();const Ln=kt.x*zt.x+kt.y*zt.y,hn=wn.x*zt.x+wn.y*zt.y,Jt=hn!==0?1/hn:1/0,Nn=2*Math.sqrt(2-2*hn),fr=hn<Ym&&ut&&bt,wr=kt.x*zt.y-kt.y*zt.x>0;if(fr&&Xt>xe){const mr=$e.dist(ut);if(mr>2*Pe){const Sr=$e.sub($e.sub(ut)._mult(Pe/mr)._round());this.updateDistance(ut,Sr),this.addCurrentVertex(Sr,kt,0,0,je),ut=Sr}}const Rr=ut&&bt;let $r=Rr?T:se?"butt":P;if(Rr&&$r==="round"&&(Jt<te?$r="miter":Jt<=2&&($r="fakeround")),$r==="miter"&&Jt>Y&&($r="bevel"),$r==="bevel"&&(Jt>2&&($r="flipbevel"),Jt<Y&&($r="miter")),ut&&this.updateDistance(ut,$e),$r==="miter")wn._mult(Jt),this.addCurrentVertex($e,wn,0,0,je);else if($r==="flipbevel"){if(Jt>100)wn=zt.mult(-1);else{const mr=Jt*kt.add(zt).mag()/kt.sub(zt).mag();wn._perp()._mult(mr*(wr?-1:1))}this.addCurrentVertex($e,wn,0,0,je),this.addCurrentVertex($e,wn.mult(-1),0,0,je)}else if($r==="bevel"||$r==="fakeround"){const mr=-Math.sqrt(Jt*Jt-1),Sr=wr?mr:0,Wr=wr?0:mr;if(ut&&this.addCurrentVertex($e,kt,Sr,Wr,je),$r==="fakeround"){const di=Math.round(180*Nn/Math.PI/20);for(let ri=1;ri<di;ri++){let li=ri/di;if(li!==.5){const Do=li-.5;li+=li*Do*(li-1)*((1.0904+Ln*(Ln*(3.55645-1.43519*Ln)-3.2452))*Do*Do+(.848013+Ln*(.215638*Ln-1.06021)))}const Wa=zt.sub(kt)._mult(li)._add(kt)._unit()._mult(wr?-1:1);this.addHalfVertex($e,Wa.x,Wa.y,!1,wr,0,je)}}bt&&this.addCurrentVertex($e,zt,-Sr,-Wr,je)}else if($r==="butt")this.addCurrentVertex($e,wn,0,0,je);else if($r==="square"){const mr=ut?1:-1;ut||this.addCurrentVertex($e,wn,mr,mr,je),this.addCurrentVertex($e,wn,0,0,je),ut&&this.addCurrentVertex($e,wn,mr,mr,je)}else $r==="round"&&(ut&&(this.addCurrentVertex($e,kt,0,0,je),this.addCurrentVertex($e,kt,1,1,je,!0)),bt&&(this.addCurrentVertex($e,zt,-1,-1,je,!0),this.addCurrentVertex($e,zt,0,0,je)));if(fr&&Xt<pe-1){const mr=$e.dist(bt);if(mr>2*Pe){const Sr=$e.add(bt.sub($e)._mult(Pe/mr)._round());this.updateDistance($e,Sr),this.addCurrentVertex(Sr,zt,0,0,je),$e=Sr}}}}addCurrentVertex(d,y,T,P,Y,te=!1){const se=y.y*P-y.x,pe=-y.y-y.x*P;this.addHalfVertex(d,y.x+y.y*T,y.y-y.x*T,te,!1,T,Y),this.addHalfVertex(d,se,pe,te,!0,-P,Y)}addHalfVertex({x:d,y},T,P,Y,te,se,pe){this.layoutVertexArray.emplaceBack((d<<1)+(Y?1:0),(y<<1)+(te?1:0),Math.round(63*T)+128,Math.round(63*P)+128,1+(se===0?0:se<0?-1:1),0,this.lineSoFar),this.lineClips&&this.layoutVertexArray2.emplaceBack(this.scaledDistance,this.lineClipsArray.length,this.lineSoFar);const xe=pe.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,xe),pe.primitiveLength++),te?this.e2=xe:this.e1=xe}updateScaledDistance(){if(this.lineClips){const d=this.totalDistance/(this.lineClips.end-this.lineClips.start);this.scaledDistance=this.distance/this.totalDistance,this.lineSoFar=d*this.lineClips.start+this.distance}else this.lineSoFar=this.distance}updateDistance(d,y){this.distance+=d.dist(y),this.updateScaledDistance()}}Si(uf,"LineBucket",{omit:["layers","patternFeatures"]});const Im=new yt({"line-cap":new Ce(tr.layout_line["line-cap"]),"line-join":new Ce(tr.layout_line["line-join"]),"line-miter-limit":new _e(tr.layout_line["line-miter-limit"]),"line-round-limit":new _e(tr.layout_line["line-round-limit"]),"line-sort-key":new Ce(tr.layout_line["line-sort-key"])});var zf={paint:new yt({"line-opacity":new Ce(tr.paint_line["line-opacity"]),"line-color":new Ce(tr.paint_line["line-color"]),"line-translate":new _e(tr.paint_line["line-translate"]),"line-translate-anchor":new _e(tr.paint_line["line-translate-anchor"]),"line-width":new Ce(tr.paint_line["line-width"]),"line-gap-width":new Ce(tr.paint_line["line-gap-width"]),"line-offset":new Ce(tr.paint_line["line-offset"]),"line-blur":new Ce(tr.paint_line["line-blur"]),"line-dasharray":new Xe(tr.paint_line["line-dasharray"]),"line-pattern":new Xe(tr.paint_line["line-pattern"]),"line-gradient":new lt(tr.paint_line["line-gradient"])}),layout:Im};const Gf=new class extends Ce{possiblyEvaluate(m,d){return d=new Ro(Math.floor(d.zoom),{now:d.now,fadeDuration:d.fadeDuration,zoomHistory:d.zoomHistory,transition:d.transition}),super.possiblyEvaluate(m,d)}evaluate(m,d,y,T){return d=re({},d,{zoom:Math.floor(d.zoom)}),super.evaluate(m,d,y,T)}}(zf.paint.properties["line-width"].specification);function jf(m,d){return d>0?d+2*m:m}Gf.useIntegerZoom=!0;const qm=vn([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_tex_size",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"},{name:"a_z_tile_anchor",components:4,type:"Int16"}],4),um=vn([{name:"a_projected_pos",components:3,type:"Float32"}],4);vn([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);const cm=vn([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}]),Uf=vn([{name:"a_size_scale",components:1,type:"Float32"},{name:"a_padding",components:2,type:"Float32"}]);vn([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Int16",name:"tileAnchorX"},{type:"Int16",name:"tileAnchorY"},{type:"Float32",name:"x1"},{type:"Float32",name:"y1"},{type:"Float32",name:"x2"},{type:"Float32",name:"y2"},{type:"Int16",name:"padding"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);const cf=vn([{name:"a_pos",components:3,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),Pd=vn([{name:"a_pos_2f",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);vn([{name:"triangle",components:3,type:"Uint16"}]),vn([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Float32",name:"tileAnchorX"},{type:"Float32",name:"tileAnchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"},{type:"Uint8",name:"flipState"}]),vn([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Float32",name:"tileAnchorX"},{type:"Float32",name:"tileAnchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),vn([{type:"Float32",name:"offsetX"}]),vn([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var iu=24;const ld=128;function $f(m,d){const{expression:y}=d;if(y.kind==="constant")return{kind:"constant",layoutSize:y.evaluate(new Ro(m+1))};if(y.kind==="source")return{kind:"source"};{const{zoomStops:T,interpolationType:P}=y;let Y=0;for(;Y<T.length&&T[Y]<=m;)Y++;Y=Math.max(0,Y-1);let te=Y;for(;te<T.length&&T[te]<m+1;)te++;te=Math.min(T.length-1,te);const se=T[Y],pe=T[te];return y.kind==="composite"?{kind:"composite",minZoom:se,maxZoom:pe,interpolationType:P}:{kind:"camera",minZoom:se,maxZoom:pe,minSize:y.evaluate(new Ro(se)),maxSize:y.evaluate(new Ro(pe)),interpolationType:P}}}function df(m,{uSize:d,uSizeT:y},{lowerSize:T,upperSize:P}){return m.kind==="source"?T/ld:m.kind==="composite"?Qe(T/ld,P/ld,y):d}function xp(m,d){let y=0,T=0;if(m.kind==="constant")T=m.layoutSize;else if(m.kind!=="source"){const{interpolationType:P,minZoom:Y,maxZoom:te}=m,se=P?W(Ya.interpolationFactor(P,d,Y,te),0,1):0;m.kind==="camera"?T=Qe(m.minSize,m.maxSize,se):y=se}return{uSizeT:y,uSize:T}}var dm=Object.freeze({__proto__:null,getSizeData:$f,evaluateSizeForFeature:df,evaluateSizeForZoom:xp,SIZE_PACK_FACTOR:ld});function bp(m,d,y){return m.sections.forEach(T=>{T.text=function(P,Y,te){const se=Y.layout.get("text-transform").evaluate(te,{});return se==="uppercase"?P=P.toLocaleUpperCase():se==="lowercase"&&(P=P.toLocaleLowerCase()),Gs.applyArabicShaping&&(P=Gs.applyArabicShaping(P)),P}(T.text,d,y)}),m}const Np={"!":"\uFE15","#":"\uFF03",$:"\uFF04","%":"\uFF05","&":"\uFF06","(":"\uFE35",")":"\uFE36","*":"\uFF0A","+":"\uFF0B",",":"\uFE10","-":"\uFE32",".":"\u30FB","/":"\uFF0F",":":"\uFE13",";":"\uFE14","<":"\uFE3F","=":"\uFF1D",">":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};function Xm(m){return m==="\uFE36"||m==="\uFE48"||m==="\uFE38"||m==="\uFE44"||m==="\uFE42"||m==="\uFE3E"||m==="\uFE3C"||m==="\uFE3A"||m==="\uFE18"||m==="\uFE40"||m==="\uFE10"||m==="\uFE13"||m==="\uFE14"||m==="\uFF40"||m==="\uFFE3"||m==="\uFE11"||m==="\uFE12"}function wp(m){return m==="\uFE35"||m==="\uFE47"||m==="\uFE37"||m==="\uFE43"||m==="\uFE41"||m==="\uFE3D"||m==="\uFE3B"||m==="\uFE39"||m==="\uFE17"||m==="\uFE3F"}var Hf=function(m,d,y,T,P){var Y,te,se=8*P-T-1,pe=(1<<se)-1,xe=pe>>1,Pe=-7,je=y?P-1:0,$e=y?-1:1,ut=m[d+je];for(je+=$e,Y=ut&(1<<-Pe)-1,ut>>=-Pe,Pe+=se;Pe>0;Y=256*Y+m[d+je],je+=$e,Pe-=8);for(te=Y&(1<<-Pe)-1,Y>>=-Pe,Pe+=T;Pe>0;te=256*te+m[d+je],je+=$e,Pe-=8);if(Y===0)Y=1-xe;else{if(Y===pe)return te?NaN:1/0*(ut?-1:1);te+=Math.pow(2,T),Y-=xe}return(ut?-1:1)*te*Math.pow(2,Y-T)},Mp=function(m,d,y,T,P,Y){var te,se,pe,xe=8*Y-P-1,Pe=(1<<xe)-1,je=Pe>>1,$e=P===23?Math.pow(2,-24)-Math.pow(2,-77):0,ut=T?0:Y-1,bt=T?1:-1,kt=d<0||d===0&&1/d<0?1:0;for(d=Math.abs(d),isNaN(d)||d===1/0?(se=isNaN(d)?1:0,te=Pe):(te=Math.floor(Math.log(d)/Math.LN2),d*(pe=Math.pow(2,-te))<1&&(te--,pe*=2),(d+=te+je>=1?$e/pe:$e*Math.pow(2,1-je))*pe>=2&&(te++,pe/=2),te+je>=Pe?(se=0,te=Pe):te+je>=1?(se=(d*pe-1)*Math.pow(2,P),te+=je):(se=d*Math.pow(2,je-1)*Math.pow(2,P),te=0));P>=8;m[y+ut]=255&se,ut+=bt,se/=256,P-=8);for(te=te<<P|se,xe+=P;xe>0;m[y+ut]=255&te,ut+=bt,te/=256,xe-=8);m[y+ut-bt]|=128*kt},Rd=ws;function ws(m){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(m)?m:new Uint8Array(m||0),this.pos=0,this.type=0,this.length=this.buf.length}ws.Varint=0,ws.Fixed64=1,ws.Bytes=2,ws.Fixed32=5;var hm=4294967296,Zh=1/hm,Wf=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");function Ld(m){return m.type===ws.Bytes?m.readVarint()+m.pos:m.pos+1}function Kh(m,d,y){return y?4294967296*d+(m>>>0):4294967296*(d>>>0)+(m>>>0)}function Yf(m,d,y){var T=d<=16383?1:d<=2097151?2:d<=268435455?3:Math.floor(Math.log(d)/(7*Math.LN2));y.realloc(T);for(var P=y.pos-1;P>=m;P--)y.buf[P+T]=y.buf[P]}function Zm(m,d){for(var y=0;y<m.length;y++)d.writeVarint(m[y])}function pm(m,d){for(var y=0;y<m.length;y++)d.writeSVarint(m[y])}function Km(m,d){for(var y=0;y<m.length;y++)d.writeFloat(m[y])}function Jm(m,d){for(var y=0;y<m.length;y++)d.writeDouble(m[y])}function Qm(m,d){for(var y=0;y<m.length;y++)d.writeBoolean(m[y])}function eg(m,d){for(var y=0;y<m.length;y++)d.writeFixed32(m[y])}function tg(m,d){for(var y=0;y<m.length;y++)d.writeSFixed32(m[y])}function ng(m,d){for(var y=0;y<m.length;y++)d.writeFixed64(m[y])}function rg(m,d){for(var y=0;y<m.length;y++)d.writeSFixed64(m[y])}function hf(m,d){return(m[d]|m[d+1]<<8|m[d+2]<<16)+16777216*m[d+3]}function Wl(m,d,y){m[y]=d,m[y+1]=d>>>8,m[y+2]=d>>>16,m[y+3]=d>>>24}function fm(m,d){return(m[d]|m[d+1]<<8|m[d+2]<<16)+(m[d+3]<<24)}function Pm(m,d,y){d.glyphs=[],m===1&&y.readMessage(mm,d)}function mm(m,d,y){if(m===3){const{id:T,bitmap:P,width:Y,height:te,left:se,top:pe,advance:xe}=y.readMessage(qf,{});d.glyphs.push({id:T,bitmap:new mu({width:Y+6,height:te+6},P),metrics:{width:Y,height:te,left:se,top:pe,advance:xe}})}else m===4?d.ascender=y.readSVarint():m===5&&(d.descender=y.readSVarint())}function qf(m,d,y){m===1?d.id=y.readVarint():m===2?d.bitmap=y.readBytes():m===3?d.width=y.readVarint():m===4?d.height=y.readVarint():m===5?d.left=y.readSVarint():m===6?d.top=y.readSVarint():m===7&&(d.advance=y.readVarint())}function pf(m){let d=0,y=0;for(const te of m)d+=te.w*te.h,y=Math.max(y,te.w);m.sort((te,se)=>se.h-te.h);const T=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(d/.95)),y),h:1/0}];let P=0,Y=0;for(const te of m)for(let se=T.length-1;se>=0;se--){const pe=T[se];if(!(te.w>pe.w||te.h>pe.h)){if(te.x=pe.x,te.y=pe.y,Y=Math.max(Y,te.y+te.h),P=Math.max(P,te.x+te.w),te.w===pe.w&&te.h===pe.h){const xe=T.pop();se<T.length&&(T[se]=xe)}else te.h===pe.h?(pe.x+=te.w,pe.w-=te.w):te.w===pe.w?(pe.y+=te.h,pe.h-=te.h):(T.push({x:pe.x+te.w,y:pe.y,w:pe.w-te.w,h:te.h}),pe.y+=te.h,pe.h-=te.h);break}}return{w:P,h:Y,fill:d/(P*Y)||0}}ws.prototype={destroy:function(){this.buf=null},readFields:function(m,d,y){for(y=y||this.length;this.pos<y;){var T=this.readVarint(),P=T>>3,Y=this.pos;this.type=7&T,m(P,d,this),this.pos===Y&&this.skip(T)}return d},readMessage:function(m,d){return this.readFields(m,d,this.readVarint()+this.pos)},readFixed32:function(){var m=hf(this.buf,this.pos);return this.pos+=4,m},readSFixed32:function(){var m=fm(this.buf,this.pos);return this.pos+=4,m},readFixed64:function(){var m=hf(this.buf,this.pos)+hf(this.buf,this.pos+4)*hm;return this.pos+=8,m},readSFixed64:function(){var m=hf(this.buf,this.pos)+fm(this.buf,this.pos+4)*hm;return this.pos+=8,m},readFloat:function(){var m=Hf(this.buf,this.pos,!0,23,4);return this.pos+=4,m},readDouble:function(){var m=Hf(this.buf,this.pos,!0,52,8);return this.pos+=8,m},readVarint:function(m){var d,y,T=this.buf;return d=127&(y=T[this.pos++]),y<128?d:(d|=(127&(y=T[this.pos++]))<<7,y<128?d:(d|=(127&(y=T[this.pos++]))<<14,y<128?d:(d|=(127&(y=T[this.pos++]))<<21,y<128?d:function(P,Y,te){var se,pe,xe=te.buf;if(se=(112&(pe=xe[te.pos++]))>>4,pe<128||(se|=(127&(pe=xe[te.pos++]))<<3,pe<128)||(se|=(127&(pe=xe[te.pos++]))<<10,pe<128)||(se|=(127&(pe=xe[te.pos++]))<<17,pe<128)||(se|=(127&(pe=xe[te.pos++]))<<24,pe<128)||(se|=(1&(pe=xe[te.pos++]))<<31,pe<128))return Kh(P,se,Y);throw new Error("Expected varint not more than 10 bytes")}(d|=(15&(y=T[this.pos]))<<28,m,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var m=this.readVarint();return m%2==1?(m+1)/-2:m/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var m=this.readVarint()+this.pos,d=this.pos;return this.pos=m,m-d>=12&&Wf?function(y,T,P){return Wf.decode(y.subarray(T,P))}(this.buf,d,m):function(y,T,P){for(var Y="",te=T;te<P;){var se,pe,xe,Pe=y[te],je=null,$e=Pe>239?4:Pe>223?3:Pe>191?2:1;if(te+$e>P)break;$e===1?Pe<128&&(je=Pe):$e===2?(192&(se=y[te+1]))==128&&(je=(31&Pe)<<6|63&se)<=127&&(je=null):$e===3?(pe=y[te+2],(192&(se=y[te+1]))==128&&(192&pe)==128&&((je=(15&Pe)<<12|(63&se)<<6|63&pe)<=2047||je>=55296&&je<=57343)&&(je=null)):$e===4&&(pe=y[te+2],xe=y[te+3],(192&(se=y[te+1]))==128&&(192&pe)==128&&(192&xe)==128&&((je=(15&Pe)<<18|(63&se)<<12|(63&pe)<<6|63&xe)<=65535||je>=1114112)&&(je=null)),je===null?(je=65533,$e=1):je>65535&&(je-=65536,Y+=String.fromCharCode(je>>>10&1023|55296),je=56320|1023&je),Y+=String.fromCharCode(je),te+=$e}return Y}(this.buf,d,m)},readBytes:function(){var m=this.readVarint()+this.pos,d=this.buf.subarray(this.pos,m);return this.pos=m,d},readPackedVarint:function(m,d){if(this.type!==ws.Bytes)return m.push(this.readVarint(d));var y=Ld(this);for(m=m||[];this.pos<y;)m.push(this.readVarint(d));return m},readPackedSVarint:function(m){if(this.type!==ws.Bytes)return m.push(this.readSVarint());var d=Ld(this);for(m=m||[];this.pos<d;)m.push(this.readSVarint());return m},readPackedBoolean:function(m){if(this.type!==ws.Bytes)return m.push(this.readBoolean());var d=Ld(this);for(m=m||[];this.pos<d;)m.push(this.readBoolean());return m},readPackedFloat:function(m){if(this.type!==ws.Bytes)return m.push(this.readFloat());var d=Ld(this);for(m=m||[];this.pos<d;)m.push(this.readFloat());return m},readPackedDouble:function(m){if(this.type!==ws.Bytes)return m.push(this.readDouble());var d=Ld(this);for(m=m||[];this.pos<d;)m.push(this.readDouble());return m},readPackedFixed32:function(m){if(this.type!==ws.Bytes)return m.push(this.readFixed32());var d=Ld(this);for(m=m||[];this.pos<d;)m.push(this.readFixed32());return m},readPackedSFixed32:function(m){if(this.type!==ws.Bytes)return m.push(this.readSFixed32());var d=Ld(this);for(m=m||[];this.pos<d;)m.push(this.readSFixed32());return m},readPackedFixed64:function(m){if(this.type!==ws.Bytes)return m.push(this.readFixed64());var d=Ld(this);for(m=m||[];this.pos<d;)m.push(this.readFixed64());return m},readPackedSFixed64:function(m){if(this.type!==ws.Bytes)return m.push(this.readSFixed64());var d=Ld(this);for(m=m||[];this.pos<d;)m.push(this.readSFixed64());return m},skip:function(m){var d=7&m;if(d===ws.Varint)for(;this.buf[this.pos++]>127;);else if(d===ws.Bytes)this.pos=this.readVarint()+this.pos;else if(d===ws.Fixed32)this.pos+=4;else{if(d!==ws.Fixed64)throw new Error("Unimplemented type: "+d);this.pos+=8}},writeTag:function(m,d){this.writeVarint(m<<3|d)},realloc:function(m){for(var d=this.length||16;d<this.pos+m;)d*=2;if(d!==this.length){var y=new Uint8Array(d);y.set(this.buf),this.buf=y,this.length=d}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(m){this.realloc(4),Wl(this.buf,m,this.pos),this.pos+=4},writeSFixed32:function(m){this.realloc(4),Wl(this.buf,m,this.pos),this.pos+=4},writeFixed64:function(m){this.realloc(8),Wl(this.buf,-1&m,this.pos),Wl(this.buf,Math.floor(m*Zh),this.pos+4),this.pos+=8},writeSFixed64:function(m){this.realloc(8),Wl(this.buf,-1&m,this.pos),Wl(this.buf,Math.floor(m*Zh),this.pos+4),this.pos+=8},writeVarint:function(m){(m=+m||0)>268435455||m<0?function(d,y){var T,P;if(d>=0?(T=d%4294967296|0,P=d/4294967296|0):(P=~(-d/4294967296),4294967295^(T=~(-d%4294967296))?T=T+1|0:(T=0,P=P+1|0)),d>=18446744073709552e3||d<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");y.realloc(10),function(Y,te,se){se.buf[se.pos++]=127&Y|128,Y>>>=7,se.buf[se.pos++]=127&Y|128,Y>>>=7,se.buf[se.pos++]=127&Y|128,Y>>>=7,se.buf[se.pos++]=127&Y|128,se.buf[se.pos]=127&(Y>>>=7)}(T,0,y),function(Y,te){var se=(7&Y)<<4;te.buf[te.pos++]|=se|((Y>>>=3)?128:0),Y&&(te.buf[te.pos++]=127&Y|((Y>>>=7)?128:0),Y&&(te.buf[te.pos++]=127&Y|((Y>>>=7)?128:0),Y&&(te.buf[te.pos++]=127&Y|((Y>>>=7)?128:0),Y&&(te.buf[te.pos++]=127&Y|((Y>>>=7)?128:0),Y&&(te.buf[te.pos++]=127&Y)))))}(P,y)}(m,this):(this.realloc(4),this.buf[this.pos++]=127&m|(m>127?128:0),m<=127||(this.buf[this.pos++]=127&(m>>>=7)|(m>127?128:0),m<=127||(this.buf[this.pos++]=127&(m>>>=7)|(m>127?128:0),m<=127||(this.buf[this.pos++]=m>>>7&127))))},writeSVarint:function(m){this.writeVarint(m<0?2*-m-1:2*m)},writeBoolean:function(m){this.writeVarint(Boolean(m))},writeString:function(m){m=String(m),this.realloc(4*m.length),this.pos++;var d=this.pos;this.pos=function(T,P,Y){for(var te,se,pe=0;pe<P.length;pe++){if((te=P.charCodeAt(pe))>55295&&te<57344){if(!se){te>56319||pe+1===P.length?(T[Y++]=239,T[Y++]=191,T[Y++]=189):se=te;continue}if(te<56320){T[Y++]=239,T[Y++]=191,T[Y++]=189,se=te;continue}te=se-55296<<10|te-56320|65536,se=null}else se&&(T[Y++]=239,T[Y++]=191,T[Y++]=189,se=null);te<128?T[Y++]=te:(te<2048?T[Y++]=te>>6|192:(te<65536?T[Y++]=te>>12|224:(T[Y++]=te>>18|240,T[Y++]=te>>12&63|128),T[Y++]=te>>6&63|128),T[Y++]=63&te|128)}return Y}(this.buf,m,this.pos);var y=this.pos-d;y>=128&&Yf(d,y,this),this.pos=d-1,this.writeVarint(y),this.pos+=y},writeFloat:function(m){this.realloc(4),Mp(this.buf,m,this.pos,!0,23,4),this.pos+=4},writeDouble:function(m){this.realloc(8),Mp(this.buf,m,this.pos,!0,52,8),this.pos+=8},writeBytes:function(m){var d=m.length;this.writeVarint(d),this.realloc(d);for(var y=0;y<d;y++)this.buf[this.pos++]=m[y]},writeRawMessage:function(m,d){this.pos++;var y=this.pos;m(d,this);var T=this.pos-y;T>=128&&Yf(y,T,this),this.pos=y-1,this.writeVarint(T),this.pos+=T},writeMessage:function(m,d,y){this.writeTag(m,ws.Bytes),this.writeRawMessage(d,y)},writePackedVarint:function(m,d){d.length&&this.writeMessage(m,Zm,d)},writePackedSVarint:function(m,d){d.length&&this.writeMessage(m,pm,d)},writePackedBoolean:function(m,d){d.length&&this.writeMessage(m,Qm,d)},writePackedFloat:function(m,d){d.length&&this.writeMessage(m,Km,d)},writePackedDouble:function(m,d){d.length&&this.writeMessage(m,Jm,d)},writePackedFixed32:function(m,d){d.length&&this.writeMessage(m,eg,d)},writePackedSFixed32:function(m,d){d.length&&this.writeMessage(m,tg,d)},writePackedFixed64:function(m,d){d.length&&this.writeMessage(m,ng,d)},writePackedSFixed64:function(m,d){d.length&&this.writeMessage(m,rg,d)},writeBytesField:function(m,d){this.writeTag(m,ws.Bytes),this.writeBytes(d)},writeFixed32Field:function(m,d){this.writeTag(m,ws.Fixed32),this.writeFixed32(d)},writeSFixed32Field:function(m,d){this.writeTag(m,ws.Fixed32),this.writeSFixed32(d)},writeFixed64Field:function(m,d){this.writeTag(m,ws.Fixed64),this.writeFixed64(d)},writeSFixed64Field:function(m,d){this.writeTag(m,ws.Fixed64),this.writeSFixed64(d)},writeVarintField:function(m,d){this.writeTag(m,ws.Varint),this.writeVarint(d)},writeSVarintField:function(m,d){this.writeTag(m,ws.Varint),this.writeSVarint(d)},writeStringField:function(m,d){this.writeTag(m,ws.Bytes),this.writeString(d)},writeFloatField:function(m,d){this.writeTag(m,ws.Fixed32),this.writeFloat(d)},writeDoubleField:function(m,d){this.writeTag(m,ws.Fixed64),this.writeDouble(d)},writeBooleanField:function(m,d){this.writeVarintField(m,Boolean(d))}};class Xf{constructor(d,{pixelRatio:y,version:T,stretchX:P,stretchY:Y,content:te}){this.paddedRect=d,this.pixelRatio=y,this.stretchX=P,this.stretchY=Y,this.content=te,this.version=T}get tl(){return[this.paddedRect.x+1,this.paddedRect.y+1]}get br(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]}get displaySize(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]}}class gm{constructor(d,y){const T={},P={};this.haveRenderCallbacks=[];const Y=[];this.addImages(d,T,Y),this.addImages(y,P,Y);const{w:te,h:se}=pf(Y),pe=new nu({width:te||1,height:se||1});for(const xe in d){const Pe=d[xe],je=T[xe].paddedRect;nu.copy(Pe.data,pe,{x:0,y:0},{x:je.x+1,y:je.y+1},Pe.data)}for(const xe in y){const Pe=y[xe],je=P[xe].paddedRect,$e=je.x+1,ut=je.y+1,bt=Pe.data.width,kt=Pe.data.height;nu.copy(Pe.data,pe,{x:0,y:0},{x:$e,y:ut},Pe.data),nu.copy(Pe.data,pe,{x:0,y:kt-1},{x:$e,y:ut-1},{width:bt,height:1}),nu.copy(Pe.data,pe,{x:0,y:0},{x:$e,y:ut+kt},{width:bt,height:1}),nu.copy(Pe.data,pe,{x:bt-1,y:0},{x:$e-1,y:ut},{width:1,height:kt}),nu.copy(Pe.data,pe,{x:0,y:0},{x:$e+bt,y:ut},{width:1,height:kt})}this.image=pe,this.iconPositions=T,this.patternPositions=P}addImages(d,y,T){for(const P in d){const Y=d[P],te={x:0,y:0,w:Y.data.width+2,h:Y.data.height+2};T.push(te),y[P]=new Xf(te,Y),Y.hasRenderCallback&&this.haveRenderCallbacks.push(P)}}patchUpdatedImages(d,y){this.haveRenderCallbacks=this.haveRenderCallbacks.filter(T=>d.hasImage(T)),d.dispatchRenderCallbacks(this.haveRenderCallbacks);for(const T in d.updatedImages)this.patchUpdatedImage(this.iconPositions[T],d.getImage(T),y),this.patchUpdatedImage(this.patternPositions[T],d.getImage(T),y)}patchUpdatedImage(d,y,T){if(!d||!y||d.version===y.version)return;d.version=y.version;const[P,Y]=d.tl;T.update(y.data,void 0,{x:P,y:Y})}}Si(Xf,"ImagePosition"),Si(gm,"ImageAtlas");const lc={horizontal:1,vertical:2,horizontalOnly:3};class Vp{constructor(){this.scale=1,this.fontStack="",this.imageName=null}static forText(d,y){const T=new Vp;return T.scale=d||1,T.fontStack=y,T}static forImage(d){const y=new Vp;return y.imageName=d,y}}class Cp{constructor(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null}static fromFeature(d,y){const T=new Cp;for(let P=0;P<d.sections.length;P++){const Y=d.sections[P];Y.image?T.addImageSection(Y):T.addTextSection(Y,y)}return T}length(){return this.text.length}getSection(d){return this.sections[this.sectionIndex[d]]}getSections(){return this.sections}getSectionIndex(d){return this.sectionIndex[d]}getCharCode(d){return this.text.charCodeAt(d)}verticalizePunctuation(d){this.text=function(y,T){let P="";for(let Y=0;Y<y.length;Y++){const te=y.charCodeAt(Y+1)||null,se=y.charCodeAt(Y-1)||null;P+=!T&&(te&&Ql(te)&&!Np[y[Y+1]]||se&&Ql(se)&&!Np[y[Y-1]])||!Np[y[Y]]?y[Y]:Np[y[Y]]}return P}(this.text,d)}trim(){let d=0;for(let T=0;T<this.text.length&&zp[this.text.charCodeAt(T)];T++)d++;let y=this.text.length;for(let T=this.text.length-1;T>=0&&T>=d&&zp[this.text.charCodeAt(T)];T--)y--;this.text=this.text.substring(d,y),this.sectionIndex=this.sectionIndex.slice(d,y)}substring(d,y){const T=new Cp;return T.text=this.text.substring(d,y),T.sectionIndex=this.sectionIndex.slice(d,y),T.sections=this.sections,T}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((d,y)=>Math.max(d,this.sections[y].scale),0)}addTextSection(d,y){this.text+=d.text,this.sections.push(Vp.forText(d.scale,d.fontStack||y));const T=this.sections.length-1;for(let P=0;P<d.text.length;++P)this.sectionIndex.push(T)}addImageSection(d){const y=d.image?d.image.name:"";if(y.length===0)return void De("Can't add FormattedSection with an empty image.");const T=this.getNextImageSectionCharCode();T?(this.text+=String.fromCharCode(T),this.sections.push(Vp.forImage(y)),this.sectionIndex.push(this.sections.length-1)):De("Reached maximum number of images 6401")}getNextImageSectionCharCode(){return this.imageSectionID?this.imageSectionID>=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function Zf(m,d,y,T,P,Y,te,se,pe,xe,Pe,je,$e,ut,bt,kt){const zt=Cp.fromFeature(m,P);let Xt;je===lc.vertical&&zt.verticalizePunctuation($e);const{processBidirectionalText:wn,processStyledBidirectionalText:Ln}=Gs;if(wn&&zt.sections.length===1){Xt=[];const Nn=wn(zt.toString(),Qd(zt,xe,Y,d,T,ut,bt));for(const fr of Nn){const wr=new Cp;wr.text=fr,wr.sections=zt.sections;for(let Rr=0;Rr<fr.length;Rr++)wr.sectionIndex.push(0);Xt.push(wr)}}else if(Ln){Xt=[];const Nn=Ln(zt.text,zt.sectionIndex,Qd(zt,xe,Y,d,T,ut,bt));for(const fr of Nn){const wr=new Cp;wr.text=fr[0],wr.sectionIndex=fr[1],wr.sections=zt.sections,Xt.push(wr)}}else Xt=function(Nn,fr){const wr=[],Rr=Nn.text;let $r=0;for(const mr of fr)wr.push(Nn.substring($r,mr)),$r=mr;return $r<Rr.length&&wr.push(Nn.substring($r,Rr.length)),wr}(zt,Qd(zt,xe,Y,d,T,ut,bt));const hn=[],Jt={positionedLines:hn,text:zt.toString(),top:Pe[1],bottom:Pe[1],left:Pe[0],right:Pe[0],writingMode:je,iconsInText:!1,verticalizable:!1,hasBaseline:!1};return function(Nn,fr,wr,Rr,$r,mr,Sr,Wr,di,ri,li,Wa){let Do=0,Za=0,co=0;const Ji=Wr==="right"?1:Wr==="left"?0:.5;let Vi=!1;for(const ts of $r){const Bo=ts.getSections();for(const Ps of Bo){if(Ps.imageName)continue;const bl=fr[Ps.fontStack];if(bl&&(Vi=bl.ascender!==void 0&&bl.descender!==void 0,!Vi))break}if(!Vi)break}let Lo=0;for(const ts of $r){ts.trim();const Bo=ts.getMaxScale(),Ps=(Bo-1)*iu,bl={positionedGlyphs:[],lineOffset:0};Nn.positionedLines[Lo]=bl;const Dl=bl.positionedGlyphs;let su=0;if(!ts.length()){Za+=mr,++Lo;continue}let yu=0,cd=0;for(let Ns=0;Ns<ts.length();Ns++){const bc=ts.getSection(Ns),dd=ts.getSectionIndex(Ns),Lu=ts.getCharCode(Ns);let vu=bc.scale,pl=null,rl=null,$c=null,wc=iu,Yl=0;const Mc=!(di===lc.horizontal||!li&&!zu(Lu)||li&&(zp[Lu]||(es=Lu,Th(es)||zl(es)||lu(es)||Ah(es)||Gd(es))));if(bc.imageName){const uc=Rr[bc.imageName];if(!uc)continue;$c=bc.imageName,Nn.iconsInText=Nn.iconsInText||!0,rl=uc.paddedRect;const _u=uc.displaySize;vu=vu*iu/Wa,pl={width:_u[0],height:_u[1],left:1,top:-3,advance:Mc?_u[1]:_u[0],localGlyph:!1},Yl=Vi?-pl.height*vu:Bo*iu-17-_u[1]*vu,wc=pl.advance;const nh=(Mc?_u[0]:_u[1])*vu-iu*Bo;nh>0&&nh>su&&(su=nh)}else{const uc=wr[bc.fontStack];if(!uc)continue;uc[Lu]&&(rl=uc[Lu]);const _u=fr[bc.fontStack];if(!_u)continue;const nh=_u.glyphs[Lu];if(!nh)continue;if(pl=nh.metrics,wc=Lu!==8203?iu:0,Vi){const Zp=_u.ascender!==void 0?Math.abs(_u.ascender):0,Dm=_u.descender!==void 0?Math.abs(_u.descender):0,Am=(Zp+Dm)*vu;yu<Am&&(yu=Am,cd=(Zp-Dm)/2*vu),Yl=-Zp*vu}else Yl=(Bo-vu)*iu-17}Mc?(Nn.verticalizable=!0,Dl.push({glyph:Lu,imageName:$c,x:Do,y:Za+Yl,vertical:Mc,scale:vu,localGlyph:pl.localGlyph,fontStack:bc.fontStack,sectionIndex:dd,metrics:pl,rect:rl}),Do+=wc*vu+ri):(Dl.push({glyph:Lu,imageName:$c,x:Do,y:Za+Yl,vertical:Mc,scale:vu,localGlyph:pl.localGlyph,fontStack:bc.fontStack,sectionIndex:dd,metrics:pl,rect:rl}),Do+=pl.advance*vu+ri)}Dl.length!==0&&(co=Math.max(Do-ri,co),Vi?Jf(Dl,Ji,su,cd,mr*Bo/2):Jf(Dl,Ji,su,0,mr/2)),Do=0;const Uc=mr*Bo+su;bl.lineOffset=Math.max(su,Ps),Za+=Uc,++Lo}var es;const au=Za,{horizontalAlign:nl,verticalAlign:ou}=Gp(Sr);(function(ts,Bo,Ps,bl,Dl,su){const yu=(Bo-Ps)*Dl,cd=-su*bl;for(const Uc of ts)for(const Ns of Uc.positionedGlyphs)Ns.x+=yu,Ns.y+=cd})(Nn.positionedLines,Ji,nl,ou,co,au),Nn.top+=-ou*au,Nn.bottom=Nn.top+au,Nn.left+=-nl*co,Nn.right=Nn.left+co,Nn.hasBaseline=Vi}(Jt,d,y,T,Xt,te,se,pe,je,xe,$e,kt),!function(Nn){for(const fr of Nn)if(fr.positionedGlyphs.length!==0)return!1;return!0}(hn)&&Jt}const zp={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Rm={10:!0,32:!0,38:!0,40:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0};function ff(m,d,y,T,P,Y){if(d.imageName){const te=T[d.imageName];return te?te.displaySize[0]*d.scale*iu/Y+P:0}{const te=y[d.fontStack],se=te&&te.glyphs[m];return se?se.metrics.advance*d.scale+P:0}}function Kf(m,d,y,T){const P=Math.pow(m-d,2);return T?m<d?P/2:2*P:P+Math.abs(y)*y}function ym(m,d,y){let T=0;return m===10&&(T-=1e4),y&&(T+=150),m!==40&&m!==65288||(T+=50),d!==41&&d!==65289||(T+=50),T}function vm(m,d,y,T,P,Y){let te=null,se=Kf(d,y,P,Y);for(const pe of T){const xe=Kf(d-pe.x,y,P,Y)+pe.badness;xe<=se&&(te=pe,se=xe)}return{index:m,x:d,priorBreak:te,badness:se}}function mf(m){return m?mf(m.priorBreak).concat(m.index):[]}function Qd(m,d,y,T,P,Y,te){if(Y!=="point")return[];if(!m)return[];const se=[],pe=function($e,ut,bt,kt,zt,Xt){let wn=0;for(let Ln=0;Ln<$e.length();Ln++){const hn=$e.getSection(Ln);wn+=ff($e.getCharCode(Ln),hn,kt,zt,ut,Xt)}return wn/Math.max(1,Math.ceil(wn/bt))}(m,d,y,T,P,te),xe=m.text.indexOf("\u200B")>=0;let Pe=0;for(let $e=0;$e<m.length();$e++){const ut=m.getSection($e),bt=m.getCharCode($e);if(zp[bt]||(Pe+=ff(bt,ut,T,P,d,te)),$e<m.length()-1){const kt=!((je=bt)<11904||!(Wi(je)||Yc(je)||Zc(je)||Cl(je)||bo(je)||Js(je)||Dh(je)||Ec(je)||Mu(je)||wo(je)||Xc(je)||Jl(je)||nc(je)||Sc(je)||Wc(je)||qc(je)||hc(je)||ah(je)||Tc(je)||zd(je)));(Rm[bt]||kt||ut.imageName)&&se.push(vm($e+1,Pe,pe,se,ym(bt,m.getCharCode($e+1),kt&&xe),!1))}}var je;return mf(vm(m.length(),Pe,pe,se,0,!0))}function Gp(m){let d=.5,y=.5;switch(m){case"right":case"top-right":case"bottom-right":d=1;break;case"left":case"top-left":case"bottom-left":d=0}switch(m){case"bottom":case"bottom-right":case"bottom-left":y=1;break;case"top":case"top-right":case"top-left":y=0}return{horizontalAlign:d,verticalAlign:y}}function Jf(m,d,y,T,P){if(!(d||y||T||P))return;const Y=m.length-1,te=m[Y],se=(te.x+te.metrics.advance*te.scale)*d;for(let pe=0;pe<=Y;pe++)m[pe].x-=se,m[pe].y+=y+T+P}function Qf(m,d,y){const{horizontalAlign:T,verticalAlign:P}=Gp(y),Y=d[0]-m.displaySize[0]*T,te=d[1]-m.displaySize[1]*P;return{image:m,top:te,bottom:te+m.displaySize[1],left:Y,right:Y+m.displaySize[0]}}function gf(m,d,y,T,P,Y){const te=m.image;let se;if(te.content){const zt=te.content,Xt=te.pixelRatio||1;se=[zt[0]/Xt,zt[1]/Xt,te.displaySize[0]-zt[2]/Xt,te.displaySize[1]-zt[3]/Xt]}const pe=d.left*Y,xe=d.right*Y;let Pe,je,$e,ut;y==="width"||y==="both"?(ut=P[0]+pe-T[3],je=P[0]+xe+T[1]):(ut=P[0]+(pe+xe-te.displaySize[0])/2,je=ut+te.displaySize[0]);const bt=d.top*Y,kt=d.bottom*Y;return y==="height"||y==="both"?(Pe=P[1]+bt-T[0],$e=P[1]+kt+T[2]):(Pe=P[1]+(bt+kt-te.displaySize[1])/2,$e=Pe+te.displaySize[1]),{image:te,top:Pe,right:je,bottom:$e,left:ut,collisionPadding:se}}class Mh extends _{constructor(d,y,T,P,Y){super(d,y),this.angle=P,this.z=T,Y!==void 0&&(this.segment=Y)}clone(){return new Mh(this.x,this.y,this.z,this.angle,this.segment)}}function _m(m,d,y,T,P){if(d.segment===void 0)return!0;let Y=d,te=d.segment+1,se=0;for(;se>-y/2;){if(te--,te<0)return!1;se-=m[te].dist(Y),Y=m[te]}se+=m[te].dist(m[te+1]),te++;const pe=[];let xe=0;for(;se<y/2;){const Pe=m[te],je=m[te+1];if(!je)return!1;let $e=m[te-1].angleTo(Pe)-Pe.angleTo(je);for($e=Math.abs(($e+3*Math.PI)%(2*Math.PI)-Math.PI),pe.push({distance:se,angleDelta:$e}),xe+=$e;se-pe[0].distance>T;)xe-=pe.shift().angleDelta;if(xe>P)return!1;te++,se+=Pe.dist(je)}return!0}function xm(m){let d=0;for(let y=0;y<m.length-1;y++)d+=m[y].dist(m[y+1]);return d}function yf(m,d,y){return m?.6*d*y:0}function vf(m,d){return Math.max(m?m.right-m.left:0,d?d.right-d.left:0)}function bm(m,d,y,T,P,Y){const te=yf(y,P,Y),se=vf(y,T)*Y;let pe=0;const xe=xm(m)/2;for(let Pe=0;Pe<m.length-1;Pe++){const je=m[Pe],$e=m[Pe+1],ut=je.dist($e);if(pe+ut>xe){const bt=(xe-pe)/ut,kt=Qe(je.x,$e.x,bt),zt=Qe(je.y,$e.y,bt),Xt=new Mh(kt,zt,0,$e.angleTo(je),Pe);return!te||_m(m,Xt,se,te,d)?Xt:void 0}pe+=ut}}function Lm(m,d,y,T,P,Y,te,se,pe){const xe=yf(T,Y,te),Pe=vf(T,P),je=Pe*te,$e=m[0].x===0||m[0].x===pe||m[0].y===0||m[0].y===pe;return d-je<d/4&&(d=je+d/4),_f(m,$e?d/2*se%d:(Pe/2+2*Y)*te*se%d,d,xe,y,je,$e,!1,pe)}function _f(m,d,y,T,P,Y,te,se,pe){const xe=Y/2,Pe=xm(m);let je=0,$e=d-y,ut=[];for(let bt=0;bt<m.length-1;bt++){const kt=m[bt],zt=m[bt+1],Xt=kt.dist(zt),wn=zt.angleTo(kt);for(;$e+y<je+Xt;){$e+=y;const Ln=($e-je)/Xt,hn=Qe(kt.x,zt.x,Ln),Jt=Qe(kt.y,zt.y,Ln);if(hn>=0&&hn<pe&&Jt>=0&&Jt<pe&&$e-xe>=0&&$e+xe<=Pe){const Nn=new Mh(hn,Jt,0,wn,bt);Nn._round(),T&&!_m(m,Nn,Y,T,P)||ut.push(Nn)}}je+=Xt}return se||ut.length||te||(ut=_f(m,je/2,y,T,P,Y,te,!0,pe)),ut}function wm(m,d,y,T,P){const Y=[];for(let te=0;te<m.length;te++){const se=m[te];let pe;for(let xe=0;xe<se.length-1;xe++){let Pe=se[xe],je=se[xe+1];Pe.x<d&&je.x<d||(Pe.x<d?Pe=new _(d,Pe.y+(d-Pe.x)/(je.x-Pe.x)*(je.y-Pe.y))._round():je.x<d&&(je=new _(d,Pe.y+(d-Pe.x)/(je.x-Pe.x)*(je.y-Pe.y))._round()),Pe.y<y&&je.y<y||(Pe.y<y?Pe=new _(Pe.x+(y-Pe.y)/(je.y-Pe.y)*(je.x-Pe.x),y)._round():je.y<y&&(je=new _(Pe.x+(y-Pe.y)/(je.y-Pe.y)*(je.x-Pe.x),y)._round()),Pe.x>=T&&je.x>=T||(Pe.x>=T?Pe=new _(T,Pe.y+(T-Pe.x)/(je.x-Pe.x)*(je.y-Pe.y))._round():je.x>=T&&(je=new _(T,Pe.y+(T-Pe.x)/(je.x-Pe.x)*(je.y-Pe.y))._round()),Pe.y>=P&&je.y>=P||(Pe.y>=P?Pe=new _(Pe.x+(P-Pe.y)/(je.y-Pe.y)*(je.x-Pe.x),P)._round():je.y>=P&&(je=new _(Pe.x+(P-Pe.y)/(je.y-Pe.y)*(je.x-Pe.x),P)._round()),pe&&Pe.equals(pe[pe.length-1])||(pe=[Pe],Y.push(pe)),pe.push(je)))))}}return Y}Si(Mh,"Anchor");const Jh=1e20;function xf(m,d,y,T,P,Y,te,se,pe){for(let xe=d;xe<d+T;xe++)Tl(m,y*Y+xe,Y,P,te,se,pe);for(let xe=y;xe<y+P;xe++)Tl(m,xe*Y+d,1,T,te,se,pe)}function Tl(m,d,y,T,P,Y,te){Y[0]=0,te[0]=-Jh,te[1]=Jh,P[0]=m[d];for(let se=1,pe=0,xe=0;se<T;se++){P[se]=m[d+se*y];const Pe=se*se;do{const je=Y[pe];xe=(P[se]-P[je]+Pe-je*je)/(se-je)/2}while(xe<=te[pe]&&--pe>-1);pe++,Y[pe]=se,te[pe]=xe,te[pe+1]=Jh}for(let se=0,pe=0;se<T;se++){for(;te[pe+1]<se;)pe++;const xe=Y[pe],Pe=se-xe;m[d+se*y]=P[xe]+Pe*Pe}}const bf={none:0,ideographs:1,all:2};class hl{constructor(d,y,T){this.requestManager=d,this.localGlyphMode=y,this.localFontFamily=T,this.entries={},this.localGlyphs={200:{},400:{},500:{},900:{}}}setURL(d){this.url=d}getGlyphs(d,y){const T=[];for(const P in d)for(const Y of d[P])T.push({stack:P,id:Y});D(T,({stack:P,id:Y},te)=>{let se=this.entries[P];se||(se=this.entries[P]={glyphs:{},requests:{},ranges:{},ascender:void 0,descender:void 0});let pe=se.glyphs[Y];if(pe!==void 0)return void te(null,{stack:P,id:Y,glyph:pe});if(pe=this._tinySDF(se,P,Y),pe)return se.glyphs[Y]=pe,void te(null,{stack:P,id:Y,glyph:pe});const xe=Math.floor(Y/256);if(256*xe>65535)return void te(new Error("glyphs > 65535 not supported"));if(se.ranges[xe])return void te(null,{stack:P,id:Y,glyph:pe});let Pe=se.requests[xe];Pe||(Pe=se.requests[xe]=[],hl.loadGlyphRange(P,xe,this.url,this.requestManager,(je,$e)=>{if($e){se.ascender=$e.ascender,se.descender=$e.descender;for(const ut in $e.glyphs)this._doesCharSupportLocalGlyph(+ut)||(se.glyphs[+ut]=$e.glyphs[+ut]);se.ranges[xe]=!0}for(const ut of Pe)ut(je,$e);delete se.requests[xe]})),Pe.push((je,$e)=>{je?te(je):$e&&te(null,{stack:P,id:Y,glyph:$e.glyphs[Y]||null})})},(P,Y)=>{if(P)y(P);else if(Y){const te={};for(const{stack:se,id:pe,glyph:xe}of Y)te[se]===void 0&&(te[se]={}),te[se].glyphs===void 0&&(te[se].glyphs={}),te[se].glyphs[pe]=xe&&{id:xe.id,bitmap:xe.bitmap.clone(),metrics:xe.metrics},te[se].ascender=this.entries[se].ascender,te[se].descender=this.entries[se].descender;y(null,te)}})}_doesCharSupportLocalGlyph(d){return this.localGlyphMode!==bf.none&&(this.localGlyphMode===bf.all?!!this.localFontFamily:!!this.localFontFamily&&(wo(d)||ih(d)||nc(d)||hc(d)||Ec(d)))}_tinySDF(d,y,T){const P=this.localFontFamily;if(!P||!this._doesCharSupportLocalGlyph(T))return;let Y=d.tinySDF;if(!Y){let kt="400";/bold/i.test(y)?kt="900":/medium/i.test(y)?kt="500":/light/i.test(y)&&(kt="200"),Y=d.tinySDF=new hl.TinySDF({fontFamily:P,fontWeight:kt,fontSize:48,buffer:6,radius:16}),Y.fontWeight=kt}if(this.localGlyphs[Y.fontWeight][T])return this.localGlyphs[Y.fontWeight][T];const te=String.fromCharCode(T),{data:se,width:pe,height:xe,glyphWidth:Pe,glyphHeight:je,glyphLeft:$e,glyphTop:ut,glyphAdvance:bt}=Y.draw(te);return this.localGlyphs[Y.fontWeight][T]={id:T,bitmap:new mu({width:pe,height:xe},se),metrics:{width:Pe/2,height:je/2,left:$e/2,top:ut/2-27,advance:bt/2,localGlyph:!0}}}}function wf(m,d,y,T){const P=[],Y=m.image,te=Y.pixelRatio,se=Y.paddedRect.w-2,pe=Y.paddedRect.h-2,xe=m.right-m.left,Pe=m.bottom-m.top,je=Y.stretchX||[[0,se]],$e=Y.stretchY||[[0,pe]],ut=(mr,Sr)=>mr+Sr[1]-Sr[0],bt=je.reduce(ut,0),kt=$e.reduce(ut,0),zt=se-bt,Xt=pe-kt;let wn=0,Ln=bt,hn=0,Jt=kt,Nn=0,fr=zt,wr=0,Rr=Xt;if(Y.content&&T){const mr=Y.content;wn=eh(je,0,mr[0]),hn=eh($e,0,mr[1]),Ln=eh(je,mr[0],mr[2]),Jt=eh($e,mr[1],mr[3]),Nn=mr[0]-wn,wr=mr[1]-hn,fr=mr[2]-mr[0]-Ln,Rr=mr[3]-mr[1]-Jt}const $r=(mr,Sr,Wr,di)=>{const ri=jp(mr.stretch-wn,Ln,xe,m.left),li=Up(mr.fixed-Nn,fr,mr.stretch,bt),Wa=jp(Sr.stretch-hn,Jt,Pe,m.top),Do=Up(Sr.fixed-wr,Rr,Sr.stretch,kt),Za=jp(Wr.stretch-wn,Ln,xe,m.left),co=Up(Wr.fixed-Nn,fr,Wr.stretch,bt),Ji=jp(di.stretch-hn,Jt,Pe,m.top),Vi=Up(di.fixed-wr,Rr,di.stretch,kt),Lo=new _(ri,Wa),es=new _(Za,Wa),au=new _(Za,Ji),nl=new _(ri,Ji),ou=new _(li/te,Do/te),ts=new _(co/te,Vi/te),Bo=d*Math.PI/180;if(Bo){const Dl=Math.sin(Bo),su=Math.cos(Bo),yu=[su,-Dl,Dl,su];Lo._matMult(yu),es._matMult(yu),nl._matMult(yu),au._matMult(yu)}const Ps=mr.stretch+mr.fixed,bl=Sr.stretch+Sr.fixed;return{tl:Lo,tr:es,bl:nl,br:au,tex:{x:Y.paddedRect.x+1+Ps,y:Y.paddedRect.y+1+bl,w:Wr.stretch+Wr.fixed-Ps,h:di.stretch+di.fixed-bl},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:ou,pixelOffsetBR:ts,minFontScaleX:fr/te/xe,minFontScaleY:Rr/te/Pe,isSDF:y}};if(T&&(Y.stretchX||Y.stretchY)){const mr=em(je,zt,bt),Sr=em($e,Xt,kt);for(let Wr=0;Wr<mr.length-1;Wr++){const di=mr[Wr],ri=mr[Wr+1];for(let li=0;li<Sr.length-1;li++)P.push($r(di,Sr[li],ri,Sr[li+1]))}}else P.push($r({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:se+1},{fixed:0,stretch:pe+1}));return P}function eh(m,d,y){let T=0;for(const P of m)T+=Math.max(d,Math.min(y,P[1]))-Math.max(d,Math.min(y,P[0]));return T}function em(m,d,y){const T=[{fixed:-1,stretch:0}];for(const[P,Y]of m){const te=T[T.length-1];T.push({fixed:P-te.stretch,stretch:te.stretch}),T.push({fixed:P-te.stretch,stretch:te.stretch+(Y-P)})}return T.push({fixed:d+1,stretch:y}),T}function jp(m,d,y,T){return m/d*y+T}function Up(m,d,y,T){return m-d*y/T}function Om(m,d,y,T){const P=d+m.positionedLines[T].lineOffset;return T===0?y+P/2:y+(P+(d+m.positionedLines[T-1].lineOffset))/2}hl.loadGlyphRange=function(m,d,y,T,P){const Y=256*d,te=Y+255,se=T.transformRequest(T.normalizeGlyphsURL(y).replace("{fontstack}",m).replace("{range}",`${Y}-${te}`),jt.Glyphs);Qt(se,(pe,xe)=>{if(pe)P(pe);else if(xe){const Pe={},je=function($e){return new Rd($e).readFields(Pm,{})}(xe);for(const $e of je.glyphs)Pe[$e.id]=$e;P(null,{glyphs:Pe,ascender:je.ascender,descender:je.descender})}})},hl.TinySDF=class{constructor({fontSize:m=24,buffer:d=3,radius:y=8,cutoff:T=.25,fontFamily:P="sans-serif",fontWeight:Y="normal",fontStyle:te="normal"}){this.buffer=d,this.cutoff=T,this.radius=y;const se=this.size=m+4*d,pe=this._createCanvas(se),xe=this.ctx=pe.getContext("2d",{willReadFrequently:!0});xe.font=`${te} ${Y} ${m}px ${P}`,xe.textBaseline="alphabetic",xe.textAlign="left",xe.fillStyle="black",this.gridOuter=new Float64Array(se*se),this.gridInner=new Float64Array(se*se),this.f=new Float64Array(se),this.z=new Float64Array(se+1),this.v=new Uint16Array(se)}_createCanvas(m){const d=document.createElement("canvas");return d.width=d.height=m,d}draw(m){const{width:d,actualBoundingBoxAscent:y,actualBoundingBoxDescent:T,actualBoundingBoxLeft:P,actualBoundingBoxRight:Y}=this.ctx.measureText(m),te=Math.floor(y),se=Math.min(this.size-this.buffer,Math.ceil(Y-P)),pe=Math.min(this.size-this.buffer,Math.ceil(y)+Math.ceil(T)),xe=se+2*this.buffer,Pe=pe+2*this.buffer,je=xe*Pe,$e=new Uint8ClampedArray(je),ut={data:$e,width:xe,height:Pe,glyphWidth:se,glyphHeight:pe,glyphTop:te,glyphLeft:0,glyphAdvance:d};if(se===0||pe===0)return ut;const{ctx:bt,buffer:kt,gridInner:zt,gridOuter:Xt}=this;bt.clearRect(kt,kt,se,pe),bt.fillText(m,kt,kt+te+1);const wn=bt.getImageData(kt,kt,se,pe);Xt.fill(Jh,0,je),zt.fill(0,0,je);for(let Ln=0;Ln<pe;Ln++)for(let hn=0;hn<se;hn++){const Jt=wn.data[4*(Ln*se+hn)+3]/255;if(Jt===0)continue;const Nn=(Ln+kt)*xe+hn+kt;if(Jt===1)Xt[Nn]=0,zt[Nn]=Jh;else{const fr=.5-Jt;Xt[Nn]=fr>0?fr*fr:0,zt[Nn]=fr<0?fr*fr:0}}xf(Xt,0,0,xe,Pe,xe,this.f,this.v,this.z),xf(zt,kt,kt,se,pe,xe,this.f,this.v,this.z);for(let Ln=0;Ln<je;Ln++){const hn=Math.sqrt(Xt[Ln])-Math.sqrt(zt[Ln]);$e[Ln]=Math.round(255-255*(hn/this.radius+this.cutoff))}return ut}};class Fm{constructor(d=[],y=Sp){if(this.data=d,this.length=this.data.length,this.compare=y,this.length>0)for(let T=(this.length>>1)-1;T>=0;T--)this._down(T)}push(d){this.data.push(d),this.length++,this._up(this.length-1)}pop(){if(this.length===0)return;const d=this.data[0],y=this.data.pop();return this.length--,this.length>0&&(this.data[0]=y,this._down(0)),d}peek(){return this.data[0]}_up(d){const{data:y,compare:T}=this,P=y[d];for(;d>0;){const Y=d-1>>1,te=y[Y];if(T(P,te)>=0)break;y[d]=te,d=Y}y[d]=P}_down(d){const{data:y,compare:T}=this,P=this.length>>1,Y=y[d];for(;d<P;){let te=1+(d<<1),se=y[te];const pe=te+1;if(pe<this.length&&T(y[pe],se)<0&&(te=pe,se=y[pe]),T(se,Y)>=0)break;y[d]=se,d=te}y[d]=Y}}function Sp(m,d){return m<d?-1:m>d?1:0}function tm(m,d=1,y=!1){let T=1/0,P=1/0,Y=-1/0,te=-1/0;const se=m[0];for(let ut=0;ut<se.length;ut++){const bt=se[ut];(!ut||bt.x<T)&&(T=bt.x),(!ut||bt.y<P)&&(P=bt.y),(!ut||bt.x>Y)&&(Y=bt.x),(!ut||bt.y>te)&&(te=bt.y)}const pe=Math.min(Y-T,te-P);let xe=pe/2;const Pe=new Fm([],$p);if(pe===0)return new _(T,P);for(let ut=T;ut<Y;ut+=pe)for(let bt=P;bt<te;bt+=pe)Pe.push(new Gc(ut+xe,bt+xe,xe,m));let je=function(ut){let bt=0,kt=0,zt=0;const Xt=ut[0];for(let wn=0,Ln=Xt.length,hn=Ln-1;wn<Ln;hn=wn++){const Jt=Xt[wn],Nn=Xt[hn],fr=Jt.x*Nn.y-Nn.x*Jt.y;kt+=(Jt.x+Nn.x)*fr,zt+=(Jt.y+Nn.y)*fr,bt+=3*fr}return new Gc(kt/bt,zt/bt,0,ut)}(m),$e=Pe.length;for(;Pe.length;){const ut=Pe.pop();(ut.d>je.d||!je.d)&&(je=ut,y&&console.log("found best %d after %d probes",Math.round(1e4*ut.d)/1e4,$e)),ut.max-je.d<=d||(xe=ut.h/2,Pe.push(new Gc(ut.p.x-xe,ut.p.y-xe,xe,m)),Pe.push(new Gc(ut.p.x+xe,ut.p.y-xe,xe,m)),Pe.push(new Gc(ut.p.x-xe,ut.p.y+xe,xe,m)),Pe.push(new Gc(ut.p.x+xe,ut.p.y+xe,xe,m)),$e+=4)}return y&&(console.log(`num probes: ${$e}`),console.log(`best distance: ${je.d}`)),je.p}function $p(m,d){return d.max-m.max}function Gc(m,d,y,T){this.p=new _(m,d),this.h=y,this.d=function(P,Y){let te=!1,se=1/0;for(let pe=0;pe<Y.length;pe++){const xe=Y[pe];for(let Pe=0,je=xe.length,$e=je-1;Pe<je;$e=Pe++){const ut=xe[Pe],bt=xe[$e];ut.y>P.y!=bt.y>P.y&&P.x<(bt.x-ut.x)*(P.y-ut.y)/(bt.y-ut.y)+ut.x&&(te=!te),se=Math.min(se,zh(P,ut,bt))}}return(te?1:-1)*Math.sqrt(se)}(this.p,T),this.max=this.d+this.h*Math.SQRT2}const ud=Number.POSITIVE_INFINITY,Bm=Math.sqrt(2);function Mm(m,d){return d[1]!==ud?function(y,T,P){let Y=0,te=0;switch(T=Math.abs(T),P=Math.abs(P),y){case"top-right":case"top-left":case"top":te=P-7;break;case"bottom-right":case"bottom-left":case"bottom":te=7-P}switch(y){case"top-right":case"bottom-right":case"right":Y=-T;break;case"top-left":case"bottom-left":case"left":Y=T}return[Y,te]}(m,d[0],d[1]):function(y,T){let P=0,Y=0;T<0&&(T=0);const te=T/Bm;switch(y){case"top-right":case"top-left":Y=te-7;break;case"bottom-right":case"bottom-left":Y=7-te;break;case"bottom":Y=7-T;break;case"top":Y=T-7}switch(y){case"top-right":case"bottom-right":P=-te;break;case"top-left":case"bottom-left":P=te;break;case"left":P=T;break;case"right":P=-T}return[P,Y]}(m,d[0])}function Hp(m,d,y,T,P,Y,te,se,pe,xe){m.createArrays(),m.tilePixelRatio=za/(512*m.overscaling),m.compareText={},m.iconsNeedLinear=!1;const Pe=m.layers[0].layout,je=m.layers[0]._unevaluatedLayout._values,$e={};if(m.textSizeData.kind==="composite"){const{minZoom:kt,maxZoom:zt}=m.textSizeData;$e.compositeTextSizes=[je["text-size"].possiblyEvaluate(new Ro(kt),se),je["text-size"].possiblyEvaluate(new Ro(zt),se)]}if(m.iconSizeData.kind==="composite"){const{minZoom:kt,maxZoom:zt}=m.iconSizeData;$e.compositeIconSizes=[je["icon-size"].possiblyEvaluate(new Ro(kt),se),je["icon-size"].possiblyEvaluate(new Ro(zt),se)]}$e.layoutTextSize=je["text-size"].possiblyEvaluate(new Ro(pe+1),se),$e.layoutIconSize=je["icon-size"].possiblyEvaluate(new Ro(pe+1),se),$e.textMaxSize=je["text-size"].possiblyEvaluate(new Ro(18),se);const ut=Pe.get("text-rotation-alignment")==="map"&&Pe.get("symbol-placement")!=="point",bt=Pe.get("text-size");for(const kt of m.features){const zt=Pe.get("text-font").evaluate(kt,{},se).join(","),Xt=bt.evaluate(kt,{},se),wn=$e.layoutTextSize.evaluate(kt,{},se),Ln=($e.layoutIconSize.evaluate(kt,{},se),{horizontal:{},vertical:void 0}),hn=kt.text;let Jt,Nn=[0,0];if(hn){const Rr=hn.toString(),$r=Pe.get("text-letter-spacing").evaluate(kt,{},se)*iu,mr=Pe.get("text-line-height").evaluate(kt,{},se)*iu,Sr=Ih(Rr)?$r:0,Wr=Pe.get("text-anchor").evaluate(kt,{},se),di=Pe.get("text-variable-anchor");if(!di){const co=Pe.get("text-radial-offset").evaluate(kt,{},se);Nn=co?Mm(Wr,[co*iu,ud]):Pe.get("text-offset").evaluate(kt,{},se).map(Ji=>Ji*iu)}let ri=ut?"center":Pe.get("text-justify").evaluate(kt,{},se);const li=Pe.get("symbol-placement"),Wa=li==="point",Do=li==="point"?Pe.get("text-max-width").evaluate(kt,{},se)*iu:0,Za=co=>{m.allowVerticalPlacement&&Vu(Rr)&&(Ln.vertical=Zf(hn,d,y,P,zt,Do,mr,Wr,co,Sr,Nn,lc.vertical,!0,li,wn,Xt))};if(!ut&&di){const co=ri==="auto"?di.map(Vi=>hu(Vi)):[ri];let Ji=!1;for(let Vi=0;Vi<co.length;Vi++){const Lo=co[Vi];if(!Ln.horizontal[Lo])if(Ji)Ln.horizontal[Lo]=Ln.horizontal[0];else{const es=Zf(hn,d,y,P,zt,Do,mr,"center",Lo,Sr,Nn,lc.horizontal,!1,li,wn,Xt);es&&(Ln.horizontal[Lo]=es,Ji=es.positionedLines.length===1)}}Za("left")}else{if(ri==="auto"&&(ri=hu(Wr)),Wa||Pe.get("text-writing-mode").indexOf("horizontal")>=0||!Vu(Rr)){const co=Zf(hn,d,y,P,zt,Do,mr,Wr,ri,Sr,Nn,lc.horizontal,!1,li,wn,Xt);co&&(Ln.horizontal[ri]=co)}Za(li==="point"?"left":ri)}}let fr=!1;if(kt.icon&&kt.icon.name){const Rr=T[kt.icon.name];Rr&&(Jt=Qf(P[kt.icon.name],Pe.get("icon-offset").evaluate(kt,{},se),Pe.get("icon-anchor").evaluate(kt,{},se)),fr=Rr.sdf,m.sdfIcons===void 0?m.sdfIcons=Rr.sdf:m.sdfIcons!==Rr.sdf&&De("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),(Rr.pixelRatio!==m.pixelRatio||Pe.get("icon-rotate").constantOr(1)!==0)&&(m.iconsNeedLinear=!0))}const wr=Mf(Ln.horizontal)||Ln.vertical;m.iconsInText||(m.iconsInText=!!wr&&wr.iconsInText),(wr||Jt)&&Nm(m,kt,Ln,Jt,T,$e,wn,0,Nn,fr,te,se,xe)}Y&&m.generateCollisionDebugBuffers(pe,m.collisionBoxArray)}function hu(m){switch(m){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function Nm(m,d,y,T,P,Y,te,se,pe,xe,Pe,je,$e){let ut=Y.textMaxSize.evaluate(d,{},je);ut===void 0&&(ut=te);const bt=m.layers[0].layout,kt=bt.get("icon-offset").evaluate(d,{},je),zt=Mf(y.horizontal)||y.vertical,Xt=te/24,wn=m.tilePixelRatio*ut/24,Ln=(mr=m.overscaling,m.zoom>18&&mr>2&&(mr>>=1),Math.max(za/(512*mr),1)*bt.get("symbol-spacing")),hn=bt.get("text-padding")*m.tilePixelRatio,Jt=bt.get("icon-padding")*m.tilePixelRatio,Nn=N(bt.get("text-max-angle")),fr=bt.get("text-rotation-alignment")==="map"&&bt.get("symbol-placement")!=="point",wr=bt.get("icon-rotation-alignment")==="map"&&bt.get("symbol-placement")!=="point",Rr=bt.get("symbol-placement"),$r=Ln/2;var mr;const Sr=bt.get("icon-text-fit");let Wr;T&&Sr!=="none"&&(m.allowVerticalPlacement&&y.vertical&&(Wr=gf(T,y.vertical,Sr,bt.get("icon-text-fit-padding"),kt,Xt)),zt&&(T=gf(T,zt,Sr,bt.get("icon-text-fit-padding"),kt,Xt)));const di=(ri,li,Wa)=>{if(li.x<0||li.x>=za||li.y<0||li.y>=za)return;const{x:Do,y:Za,z:co}=$e.projectTilePoint(li.x,li.y,Wa),Ji=new Mh(Do,Za,co,0,void 0);(function(Vi,Lo,es,au,nl,ou,ts,Bo,Ps,bl,Dl,su,yu,cd,Uc,Ns,bc,dd,Lu,vu,pl,rl,$c,wc,Yl){const Mc=Vi.addToLineVertexArray(Lo,au);let uc,_u,nh,Zp,Dm,Am,pg,fg=0,mg=0,gg=0,yg=0,og=-1,sg=-1;const ep={};let vg=Cu(""),lg=0,ug=0;if(Ps._unevaluatedLayout.getValue("text-radial-offset")===void 0?[lg,ug]=Ps.layout.get("text-offset").evaluate(pl,{},Yl).map(hd=>hd*iu):(lg=Ps.layout.get("text-radial-offset").evaluate(pl,{},Yl)*iu,ug=ud),Vi.allowVerticalPlacement&&nl.vertical){const hd=nl.vertical;if(Uc)Am=Sh(hd),Bo&&(pg=Sh(Bo));else{const pd=Ps.layout.get("text-rotate").evaluate(pl,{},Yl)+90;nh=th(bl,es,Lo,Dl,su,yu,hd,cd,pd,Ns),Bo&&(Zp=th(bl,es,Lo,Dl,su,yu,Bo,dd,pd))}}if(ou){const hd=Ps.layout.get("icon-rotate").evaluate(pl,{},Yl),pd=Ps.layout.get("icon-text-fit")!=="none",km=wf(ou,hd,$c,pd),dg=Bo?wf(Bo,hd,$c,pd):void 0;_u=th(bl,es,Lo,Dl,su,yu,ou,dd,hd),fg=4*km.length;const _g=Vi.iconSizeData;let kf=null;_g.kind==="source"?(kf=[ld*Ps.layout.get("icon-size").evaluate(pl,{},Yl)],kf[0]>Ch&&De(`${Vi.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)):_g.kind==="composite"&&(kf=[ld*rl.compositeIconSizes[0].evaluate(pl,{},Yl),ld*rl.compositeIconSizes[1].evaluate(pl,{},Yl)],(kf[0]>Ch||kf[1]>Ch)&&De(`${Vi.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)),Vi.addSymbols(Vi.icon,km,kf,vu,Lu,pl,!1,es,Lo,Mc.lineStartIndex,Mc.lineLength,-1,wc,Yl),og=Vi.icon.placedSymbolArray.length-1,dg&&(mg=4*dg.length,Vi.addSymbols(Vi.icon,dg,kf,vu,Lu,pl,lc.vertical,es,Lo,Mc.lineStartIndex,Mc.lineLength,-1,wc,Yl),sg=Vi.icon.placedSymbolArray.length-1)}for(const hd in nl.horizontal){const pd=nl.horizontal[hd];uc||(vg=Cu(pd.text),Uc?Dm=Sh(pd):uc=th(bl,es,Lo,Dl,su,yu,pd,cd,Ps.layout.get("text-rotate").evaluate(pl,{},Yl),Ns));const km=pd.positionedLines.length===1;if(gg+=nm(Vi,es,Lo,pd,ts,Ps,Uc,pl,Ns,Mc,nl.vertical?lc.horizontal:lc.horizontalOnly,km?Object.keys(nl.horizontal):[hd],ep,og,rl,wc,Yl),km)break}nl.vertical&&(yg+=nm(Vi,es,Lo,nl.vertical,ts,Ps,Uc,pl,Ns,Mc,lc.vertical,["vertical"],ep,sg,rl,wc,Yl));let Kp=-1;const cg=(hd,pd)=>hd?Math.max(hd,pd):pd;Kp=cg(Dm,Kp),Kp=cg(Am,Kp),Kp=cg(pg,Kp);const Mg=Kp>-1?1:0;Vi.glyphOffsetArray.length>=jc.MAX_GLYPHS&&De("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),pl.sortKey!==void 0&&Vi.addToSortKeyRanges(Vi.symbolInstances.length,pl.sortKey),Vi.symbolInstances.emplaceBack(es.x,es.y,es.z,Lo.x,Lo.y,ep.right>=0?ep.right:-1,ep.center>=0?ep.center:-1,ep.left>=0?ep.left:-1,ep.vertical>=0?ep.vertical:-1,og,sg,vg,uc!==void 0?uc:Vi.collisionBoxArray.length,uc!==void 0?uc+1:Vi.collisionBoxArray.length,nh!==void 0?nh:Vi.collisionBoxArray.length,nh!==void 0?nh+1:Vi.collisionBoxArray.length,_u!==void 0?_u:Vi.collisionBoxArray.length,_u!==void 0?_u+1:Vi.collisionBoxArray.length,Zp||Vi.collisionBoxArray.length,Zp?Zp+1:Vi.collisionBoxArray.length,Dl,gg,yg,fg,mg,Mg,0,lg,ug,Kp)})(m,li,Ji,ri,y,T,P,Wr,m.layers[0],m.collisionBoxArray,d.index,d.sourceLayerIndex,m.index,hn,fr,pe,0,Jt,wr,kt,d,Y,xe,Pe,je)};if(Rr==="line")for(const ri of wm(d.geometry,0,0,za,za)){const li=Lm(ri,Ln,Nn,y.vertical||zt,T,24,wn,m.overscaling,za);for(const Wa of li){const Do=zt;Do&&Cm(m,Do.text,$r,Wa)||di(ri,Wa,je)}}else if(Rr==="line-center"){for(const ri of d.geometry)if(ri.length>1){const li=bm(ri,Nn,y.vertical||zt,T,24,wn);li&&di(ri,li,je)}}else if(d.type==="Polygon")for(const ri of Pa(d.geometry,0)){const li=tm(ri,16);di(ri[0],new Mh(li.x,li.y,0,0,void 0),je)}else if(d.type==="LineString")for(const ri of d.geometry)di(ri,new Mh(ri[0].x,ri[0].y,0,0,void 0),je);else if(d.type==="Point")for(const ri of d.geometry)for(const li of ri)di([li],new Mh(li.x,li.y,0,0,void 0),je)}const Ch=32640;function nm(m,d,y,T,P,Y,te,se,pe,xe,Pe,je,$e,ut,bt,kt,zt){const Xt=function(hn,Jt,Nn,fr,wr,Rr,$r,mr){const Sr=[];if(Jt.positionedLines.length===0)return Sr;const Wr=fr.layout.get("text-rotate").evaluate(Rr,{})*Math.PI/180,di=function(Za){const co=Za[0],Ji=Za[1],Vi=co*Ji;return Vi>0?[co,-Ji]:Vi<0?[-co,Ji]:co===0?[Ji,co]:[Ji,-co]}(Nn);let ri=Math.abs(Jt.top-Jt.bottom);for(const Za of Jt.positionedLines)ri-=Za.lineOffset;const li=Jt.positionedLines.length,Wa=ri/li;let Do=Jt.top-Nn[1];for(let Za=0;Za<li;++Za){const co=Jt.positionedLines[Za];Do=Om(Jt,Wa,Do,Za);for(const Ji of co.positionedGlyphs){if(!Ji.rect)continue;const Vi=Ji.rect||{};let Lo=4,es=!0,au=1,nl=0;if(Ji.imageName){const rl=$r[Ji.imageName];if(!rl)continue;if(rl.sdf){De("SDF images are not supported in formatted text and will be ignored.");continue}es=!1,au=rl.pixelRatio,Lo=1/au}const ou=(wr||mr)&&Ji.vertical,ts=Ji.metrics.advance*Ji.scale/2,Bo=Ji.metrics,Ps=Ji.rect;if(Ps===null)continue;mr&&Jt.verticalizable&&(nl=Ji.imageName?ts-Ji.metrics.width*Ji.scale/2:0);const bl=wr?[Ji.x+ts,Ji.y]:[0,0];let Dl=[0,0],su=[0,0],yu=!1;wr||(ou?(su=[Ji.x+ts+di[0],Ji.y+di[1]-nl],yu=!0):Dl=[Ji.x+ts+Nn[0],Ji.y+Nn[1]-nl]);const cd=Ps.w*Ji.scale/(au*(Ji.localGlyph?2:1)),Uc=Ps.h*Ji.scale/(au*(Ji.localGlyph?2:1));let Ns,bc,dd,Lu;if(ou){const rl=Ji.y-Do,$c=new _(-ts,ts-rl),wc=-Math.PI/2,Yl=new _(...su);Ns=new _(-ts+Dl[0],Dl[1]),Ns._rotateAround(wc,$c)._add(Yl),Ns.x+=-rl+ts,Ns.y-=(Bo.left-Lo)*Ji.scale;const Mc=Ji.imageName?Bo.advance*Ji.scale:iu*Ji.scale,uc=String.fromCharCode(Ji.glyph);Xm(uc)?Ns.x+=(1-Lo)*Ji.scale:wp(uc)?Ns.x+=Mc-Bo.height*Ji.scale+(-Lo-1)*Ji.scale:Ns.x+=Ji.imageName||Bo.width+2*Lo===Ps.w&&Bo.height+2*Lo===Ps.h?(Mc-Uc)/2:(Mc-(Bo.height+2*Lo)*Ji.scale)/2,bc=new _(Ns.x,Ns.y-cd),dd=new _(Ns.x+Uc,Ns.y),Lu=new _(Ns.x+Uc,Ns.y-cd)}else{const rl=(Bo.left-Lo)*Ji.scale-ts+Dl[0],$c=(-Bo.top-Lo)*Ji.scale+Dl[1],wc=rl+cd,Yl=$c+Uc;Ns=new _(rl,$c),bc=new _(wc,$c),dd=new _(rl,Yl),Lu=new _(wc,Yl)}if(Wr){let rl;rl=wr?new _(0,0):yu?new _(di[0],di[1]):new _(Nn[0],Nn[1]),Ns._rotateAround(Wr,rl),bc._rotateAround(Wr,rl),dd._rotateAround(Wr,rl),Lu._rotateAround(Wr,rl)}const vu=new _(0,0),pl=new _(0,0);Sr.push({tl:Ns,tr:bc,bl:dd,br:Lu,tex:Vi,writingMode:Jt.writingMode,glyphOffset:bl,sectionIndex:Ji.sectionIndex,isSDF:es,pixelOffsetTL:vu,pixelOffsetBR:pl,minFontScaleX:0,minFontScaleY:0})}}return Sr}(0,T,pe,Y,te,se,P,m.allowVerticalPlacement),wn=m.textSizeData;let Ln=null;wn.kind==="source"?(Ln=[ld*Y.layout.get("text-size").evaluate(se,{},zt)],Ln[0]>Ch&&De(`${m.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)):wn.kind==="composite"&&(Ln=[ld*bt.compositeTextSizes[0].evaluate(se,{},zt),ld*bt.compositeTextSizes[1].evaluate(se,{},zt)],(Ln[0]>Ch||Ln[1]>Ch)&&De(`${m.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)),m.addSymbols(m.text,Xt,Ln,pe,te,se,Pe,d,y,xe.lineStartIndex,xe.lineLength,ut,kt,zt);for(const hn of je)$e[hn]=m.text.placedSymbolArray.length-1;return 4*Xt.length}function Mf(m){for(const d in m)return m[d];return null}function th(m,d,y,T,P,Y,te,se,pe,xe){let Pe=te.top,je=te.bottom,$e=te.left,ut=te.right;const bt=te.collisionPadding;if(bt&&($e-=bt[0],Pe-=bt[1],ut+=bt[2],je+=bt[3]),pe){const kt=new _($e,Pe),zt=new _(ut,Pe),Xt=new _($e,je),wn=new _(ut,je),Ln=N(pe);let hn=new _(0,0);xe&&(hn=new _(xe[0],xe[1])),kt._rotateAround(Ln,hn),zt._rotateAround(Ln,hn),Xt._rotateAround(Ln,hn),wn._rotateAround(Ln,hn),$e=Math.min(kt.x,zt.x,Xt.x,wn.x),ut=Math.max(kt.x,zt.x,Xt.x,wn.x),Pe=Math.min(kt.y,zt.y,Xt.y,wn.y),je=Math.max(kt.y,zt.y,Xt.y,wn.y)}return m.emplaceBack(d.x,d.y,d.z,y.x,y.y,$e,Pe,ut,je,se,T,P,Y),m.length-1}function Sh(m){m.collisionPadding&&(m.top-=m.collisionPadding[1],m.bottom+=m.collisionPadding[3]);const d=m.bottom-m.top;return d>0?Math.max(10,d):null}function Cm(m,d,y,T){const P=m.compareText;if(d in P){const Y=P[d];for(let te=Y.length-1;te>=0;te--)if(T.dist(Y[te])<y)return!0}else P[d]=[];return P[d].push(T),!1}const Cf=Nc.VectorTileFeature.types,Vm=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function Ep(m,d,y,T,P,Y,te,se,pe,xe,Pe,je,$e,ut,bt,kt){const zt=Pe?Math.min(Ch,Math.round(Pe[0])):0,Xt=Pe?Math.min(Ch,Math.round(Pe[1])):0;m.emplaceBack(d,y,Math.round(32*te),Math.round(32*se),pe,xe,(zt<<1)+(je?1:0),Xt,16*$e,16*ut,256*bt,256*kt,T,P,Y,0)}function Wp(m,d,y){m.emplaceBack(d.x,d.y,y),m.emplaceBack(d.x,d.y,y),m.emplaceBack(d.x,d.y,y),m.emplaceBack(d.x,d.y,y)}function ol(m){for(const d of m.sections)if(rp(d.text))return!0;return!1}class Sf{constructor(d){this.layoutVertexArray=new yr,this.indexArray=new Ii,this.programConfigurations=d,this.segments=new Qs,this.dynamicLayoutVertexArray=new Qr,this.opacityVertexArray=new ir,this.placedSymbolArray=new ic}isEmpty(){return this.layoutVertexArray.length===0&&this.indexArray.length===0&&this.dynamicLayoutVertexArray.length===0&&this.opacityVertexArray.length===0}upload(d,y,T,P){this.isEmpty()||(T&&(this.layoutVertexBuffer=d.createVertexBuffer(this.layoutVertexArray,qm.members),this.indexBuffer=d.createIndexBuffer(this.indexArray,y),this.dynamicLayoutVertexBuffer=d.createVertexBuffer(this.dynamicLayoutVertexArray,um.members,!0),this.opacityVertexBuffer=d.createVertexBuffer(this.opacityVertexArray,Vm,!0),this.opacityVertexBuffer.itemSize=1),(T||P)&&this.programConfigurations.upload(d))}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())}}Si(Sf,"SymbolBuffers");class Eh{constructor(d,y,T){this.layoutVertexArray=new d,this.layoutAttributes=y,this.indexArray=new T,this.segments=new Qs,this.collisionVertexArray=new br,this.collisionVertexArrayExt=new Qr}upload(d){this.layoutVertexBuffer=d.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=d.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=d.createVertexBuffer(this.collisionVertexArray,cm.members,!0),this.collisionVertexBufferExt=d.createVertexBuffer(this.collisionVertexArrayExt,Uf.members,!0)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy(),this.collisionVertexBufferExt.destroy())}}Si(Eh,"CollisionBuffers");class jc{constructor(d){this.collisionBoxArray=d.collisionBoxArray,this.zoom=d.zoom,this.overscaling=d.overscaling,this.layers=d.layers,this.layerIds=this.layers.map(te=>te.id),this.index=d.index,this.pixelRatio=d.pixelRatio,this.sourceLayerIndex=d.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.fullyClipped=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=Lc([]),this.placementViewportMatrix=Lc([]);const y=this.layers[0]._unevaluatedLayout._values;this.textSizeData=$f(this.zoom,y["text-size"]),this.iconSizeData=$f(this.zoom,y["icon-size"]);const T=this.layers[0].layout,P=T.get("symbol-sort-key"),Y=T.get("symbol-z-order");this.canOverlap=T.get("text-allow-overlap")||T.get("icon-allow-overlap")||T.get("text-ignore-placement")||T.get("icon-ignore-placement"),this.sortFeaturesByKey=Y!=="viewport-y"&&P.constantOr(1)!==void 0,this.sortFeaturesByY=(Y==="viewport-y"||Y==="auto"&&!this.sortFeaturesByKey)&&this.canOverlap,this.writingModes=T.get("text-writing-mode").map(te=>lc[te]),this.stateDependentLayerIds=this.layers.filter(te=>te.isStateDependent()).map(te=>te.id),this.sourceID=d.sourceID,this.projection=d.projection}createArrays(){this.text=new Sf(new td(this.layers,this.zoom,d=>/^text/.test(d))),this.icon=new Sf(new td(this.layers,this.zoom,d=>/^icon/.test(d))),this.glyphOffsetArray=new Eo,this.lineVertexArray=new $s,this.symbolInstances=new _s}calculateGlyphDependencies(d,y,T,P,Y){for(let te=0;te<d.length;te++)if(y[d.charCodeAt(te)]=!0,P&&Y){const se=Np[d.charAt(te)];se&&(y[se.charCodeAt(0)]=!0)}}populate(d,y,T,P){const Y=this.layers[0],te=Y.layout,se=te.get("text-font"),pe=te.get("text-field"),xe=te.get("icon-image"),Pe=(pe.value.kind!=="constant"||pe.value.value instanceof Pr&&!pe.value.value.isEmpty()||pe.value.value.toString().length>0)&&(se.value.kind!=="constant"||se.value.value.length>0),je=xe.value.kind!=="constant"||!!xe.value.value||Object.keys(xe.parameters).length>0,$e=te.get("symbol-sort-key");if(this.features=[],!Pe&&!je)return;const ut=y.iconDependencies,bt=y.glyphDependencies,kt=y.availableImages,zt=new Ro(this.zoom);for(const{feature:Xt,id:wn,index:Ln,sourceLayerIndex:hn}of d){const Jt=Y._featureFilter.needGeometry,Nn=Ic(Xt,Jt);if(!Y._featureFilter.filter(zt,Nn,T))continue;let fr,wr;if(Jt||(Nn.geometry=vl(Xt,T,P)),Pe){const $r=Y.getValueAndResolveTokens("text-field",Nn,T,kt),mr=Pr.factory($r);ol(mr)&&(this.hasRTLText=!0),(!this.hasRTLText||sh()==="unavailable"||this.hasRTLText&&Gs.isParsed())&&(fr=bp(mr,Y,Nn))}if(je){const $r=Y.getValueAndResolveTokens("icon-image",Nn,T,kt);wr=$r instanceof Mi?$r:Mi.fromString($r)}if(!fr&&!wr)continue;const Rr=this.sortFeaturesByKey?$e.evaluate(Nn,{},T):void 0;if(this.features.push({id:wn,text:fr,icon:wr,index:Ln,sourceLayerIndex:hn,geometry:Nn.geometry,properties:Xt.properties,type:Cf[Xt.type],sortKey:Rr}),wr&&(ut[wr.name]=!0),fr){const $r=se.evaluate(Nn,{},T).join(","),mr=te.get("text-rotation-alignment")==="map"&&te.get("symbol-placement")!=="point";this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(lc.vertical)>=0;for(const Sr of fr.sections)if(Sr.image)ut[Sr.image.name]=!0;else{const Wr=Vu(fr.toString()),di=Sr.fontStack||$r,ri=bt[di]=bt[di]||{};this.calculateGlyphDependencies(Sr.text,ri,mr,this.allowVerticalPlacement,Wr)}}}te.get("symbol-placement")==="line"&&(this.features=function(Xt){const wn={},Ln={},hn=[];let Jt=0;function Nn($r){hn.push(Xt[$r]),Jt++}function fr($r,mr,Sr){const Wr=Ln[$r];return delete Ln[$r],Ln[mr]=Wr,hn[Wr].geometry[0].pop(),hn[Wr].geometry[0]=hn[Wr].geometry[0].concat(Sr[0]),Wr}function wr($r,mr,Sr){const Wr=wn[mr];return delete wn[mr],wn[$r]=Wr,hn[Wr].geometry[0].shift(),hn[Wr].geometry[0]=Sr[0].concat(hn[Wr].geometry[0]),Wr}function Rr($r,mr,Sr){const Wr=Sr?mr[0][mr[0].length-1]:mr[0][0];return`${$r}:${Wr.x}:${Wr.y}`}for(let $r=0;$r<Xt.length;$r++){const mr=Xt[$r],Sr=mr.geometry,Wr=mr.text?mr.text.toString():null;if(!Wr){Nn($r);continue}const di=Rr(Wr,Sr),ri=Rr(Wr,Sr,!0);if(di in Ln&&ri in wn&&Ln[di]!==wn[ri]){const li=wr(di,ri,Sr),Wa=fr(di,ri,hn[li].geometry);delete wn[di],delete Ln[ri],Ln[Rr(Wr,hn[Wa].geometry,!0)]=Wa,hn[li].geometry=null}else di in Ln?fr(di,ri,Sr):ri in wn?wr(di,ri,Sr):(Nn($r),wn[di]=Jt-1,Ln[ri]=Jt-1)}return hn.filter($r=>$r.geometry)}(this.features)),this.sortFeaturesByKey&&this.features.sort((Xt,wn)=>Xt.sortKey-wn.sortKey)}update(d,y,T,P){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(d,y,this.layers,T,P),this.icon.programConfigurations.updatePaintArrays(d,y,this.layers,T,P))}isEmpty(){return this.symbolInstances.length===0&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(d){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(d),this.iconCollisionBox.upload(d)),this.text.upload(d,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(d,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(d,y){const T=this.lineVertexArray.length,P=d.segment;if(P!==void 0){let Y=d.dist(y[P+1]),te=d.dist(y[P]);const se={};for(let pe=P+1;pe<y.length;pe++)se[pe]={x:y[pe].x,y:y[pe].y,tileUnitDistanceFromAnchor:Y},pe<y.length-1&&(Y+=y[pe+1].dist(y[pe]));for(let pe=P||0;pe>=0;pe--)se[pe]={x:y[pe].x,y:y[pe].y,tileUnitDistanceFromAnchor:te},pe>0&&(te+=y[pe-1].dist(y[pe]));for(let pe=0;pe<y.length;pe++){const xe=se[pe];this.lineVertexArray.emplaceBack(xe.x,xe.y,xe.tileUnitDistanceFromAnchor)}}return{lineStartIndex:T,lineLength:this.lineVertexArray.length-T}}addSymbols(d,y,T,P,Y,te,se,pe,xe,Pe,je,$e,ut,bt){const kt=d.indexArray,zt=d.layoutVertexArray,Xt=d.segments.prepareSegment(4*y.length,zt,kt,this.canOverlap?te.sortKey:void 0),wn=this.glyphOffsetArray.length,Ln=Xt.vertexLength,hn=this.allowVerticalPlacement&&se===lc.vertical?Math.PI/2:0,Jt=te.text&&te.text.sections;for(let Nn=0;Nn<y.length;Nn++){const{tl:fr,tr:wr,bl:Rr,br:$r,tex:mr,pixelOffsetTL:Sr,pixelOffsetBR:Wr,minFontScaleX:di,minFontScaleY:ri,glyphOffset:li,isSDF:Wa,sectionIndex:Do}=y[Nn],Za=Xt.vertexLength,co=li[1];Ep(zt,pe.x,pe.y,pe.z,xe.x,xe.y,fr.x,co+fr.y,mr.x,mr.y,T,Wa,Sr.x,Sr.y,di,ri),Ep(zt,pe.x,pe.y,pe.z,xe.x,xe.y,wr.x,co+wr.y,mr.x+mr.w,mr.y,T,Wa,Wr.x,Sr.y,di,ri),Ep(zt,pe.x,pe.y,pe.z,xe.x,xe.y,Rr.x,co+Rr.y,mr.x,mr.y+mr.h,T,Wa,Sr.x,Wr.y,di,ri),Ep(zt,pe.x,pe.y,pe.z,xe.x,xe.y,$r.x,co+$r.y,mr.x+mr.w,mr.y+mr.h,T,Wa,Wr.x,Wr.y,di,ri),Wp(d.dynamicLayoutVertexArray,pe,hn),kt.emplaceBack(Za,Za+1,Za+2),kt.emplaceBack(Za+1,Za+2,Za+3),Xt.vertexLength+=4,Xt.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(li[0]),Nn!==y.length-1&&Do===y[Nn+1].sectionIndex||d.programConfigurations.populatePaintArrays(zt.length,te,te.index,{},ut,bt,Jt&&Jt[Do])}d.placedSymbolArray.emplaceBack(pe.x,pe.y,pe.z,xe.x,xe.y,wn,this.glyphOffsetArray.length-wn,Ln,Pe,je,xe.segment,T?T[0]:0,T?T[1]:0,P[0],P[1],se,0,!1,0,$e,0)}_commitLayoutVertex(d,y,T,P,Y,te,se){d.emplaceBack(y,T,P,Y,te,Math.round(se.x),Math.round(se.y))}_addCollisionDebugVertices(d,y,T,P,Y,te,se){const pe=T.segments.prepareSegment(4,T.layoutVertexArray,T.indexArray),xe=pe.vertexLength,Pe=se.tileAnchorX,je=se.tileAnchorY;for(let ut=0;ut<4;ut++)T.collisionVertexArray.emplaceBack(0,0,0,0);T.collisionVertexArrayExt.emplaceBack(y,-d.padding,-d.padding),T.collisionVertexArrayExt.emplaceBack(y,d.padding,-d.padding),T.collisionVertexArrayExt.emplaceBack(y,d.padding,d.padding),T.collisionVertexArrayExt.emplaceBack(y,-d.padding,d.padding),this._commitLayoutVertex(T.layoutVertexArray,P,Y,te,Pe,je,new _(d.x1,d.y1)),this._commitLayoutVertex(T.layoutVertexArray,P,Y,te,Pe,je,new _(d.x2,d.y1)),this._commitLayoutVertex(T.layoutVertexArray,P,Y,te,Pe,je,new _(d.x2,d.y2)),this._commitLayoutVertex(T.layoutVertexArray,P,Y,te,Pe,je,new _(d.x1,d.y2)),pe.vertexLength+=4;const $e=T.indexArray;$e.emplaceBack(xe,xe+1),$e.emplaceBack(xe+1,xe+2),$e.emplaceBack(xe+2,xe+3),$e.emplaceBack(xe+3,xe),pe.primitiveLength+=4}_addTextDebugCollisionBoxes(d,y,T,P,Y,te){for(let se=P;se<Y;se++){const pe=T.get(se),xe=this.getSymbolInstanceTextSize(d,te,y,se);this._addCollisionDebugVertices(pe,xe,this.textCollisionBox,pe.projectedAnchorX,pe.projectedAnchorY,pe.projectedAnchorZ,te)}}_addIconDebugCollisionBoxes(d,y,T,P,Y,te){for(let se=P;se<Y;se++){const pe=T.get(se),xe=this.getSymbolInstanceIconSize(d,y,se);this._addCollisionDebugVertices(pe,xe,this.iconCollisionBox,pe.projectedAnchorX,pe.projectedAnchorY,pe.projectedAnchorZ,te)}}generateCollisionDebugBuffers(d,y){this.hasDebugData()&&this.destroyDebugData(),this.textCollisionBox=new Eh(Yr,cf.members,Xi),this.iconCollisionBox=new Eh(Yr,cf.members,Xi);const T=xp(this.iconSizeData,d),P=xp(this.textSizeData,d);for(let Y=0;Y<this.symbolInstances.length;Y++){const te=this.symbolInstances.get(Y);this._addTextDebugCollisionBoxes(P,d,y,te.textBoxStartIndex,te.textBoxEndIndex,te),this._addTextDebugCollisionBoxes(P,d,y,te.verticalTextBoxStartIndex,te.verticalTextBoxEndIndex,te),this._addIconDebugCollisionBoxes(T,d,y,te.iconBoxStartIndex,te.iconBoxEndIndex,te),this._addIconDebugCollisionBoxes(T,d,y,te.verticalIconBoxStartIndex,te.verticalIconBoxEndIndex,te)}}getSymbolInstanceTextSize(d,y,T,P){const Y=this.text.placedSymbolArray.get(y.rightJustifiedTextSymbolIndex>=0?y.rightJustifiedTextSymbolIndex:y.centerJustifiedTextSymbolIndex>=0?y.centerJustifiedTextSymbolIndex:y.leftJustifiedTextSymbolIndex>=0?y.leftJustifiedTextSymbolIndex:y.verticalPlacedTextSymbolIndex>=0?y.verticalPlacedTextSymbolIndex:P),te=df(this.textSizeData,d,Y)/iu;return this.tilePixelRatio*te}getSymbolInstanceIconSize(d,y,T){const P=this.icon.placedSymbolArray.get(T),Y=df(this.iconSizeData,d,P);return this.tilePixelRatio*Y}_commitDebugCollisionVertexUpdate(d,y,T){d.emplaceBack(y,-T,-T),d.emplaceBack(y,T,-T),d.emplaceBack(y,T,T),d.emplaceBack(y,-T,T)}_updateTextDebugCollisionBoxes(d,y,T,P,Y,te){for(let se=P;se<Y;se++){const pe=T.get(se),xe=this.getSymbolInstanceTextSize(d,te,y,se);this._commitDebugCollisionVertexUpdate(this.textCollisionBox.collisionVertexArrayExt,xe,pe.padding)}}_updateIconDebugCollisionBoxes(d,y,T,P,Y){for(let te=P;te<Y;te++){const se=T.get(te),pe=this.getSymbolInstanceIconSize(d,y,te);this._commitDebugCollisionVertexUpdate(this.iconCollisionBox.collisionVertexArrayExt,pe,se.padding)}}updateCollisionDebugBuffers(d,y){if(!this.hasDebugData())return;this.hasTextCollisionBoxData()&&this.textCollisionBox.collisionVertexArrayExt.clear(),this.hasIconCollisionBoxData()&&this.iconCollisionBox.collisionVertexArrayExt.clear();const T=xp(this.iconSizeData,d),P=xp(this.textSizeData,d);for(let Y=0;Y<this.symbolInstances.length;Y++){const te=this.symbolInstances.get(Y);this._updateTextDebugCollisionBoxes(P,d,y,te.textBoxStartIndex,te.textBoxEndIndex,te),this._updateTextDebugCollisionBoxes(P,d,y,te.verticalTextBoxStartIndex,te.verticalTextBoxEndIndex,te),this._updateIconDebugCollisionBoxes(T,d,y,te.iconBoxStartIndex,te.iconBoxEndIndex),this._updateIconDebugCollisionBoxes(T,d,y,te.verticalIconBoxStartIndex,te.verticalIconBoxEndIndex)}this.hasTextCollisionBoxData()&&this.textCollisionBox.collisionVertexBufferExt&&this.textCollisionBox.collisionVertexBufferExt.updateData(this.textCollisionBox.collisionVertexArrayExt),this.hasIconCollisionBoxData()&&this.iconCollisionBox.collisionVertexBufferExt&&this.iconCollisionBox.collisionVertexBufferExt.updateData(this.iconCollisionBox.collisionVertexArrayExt)}_deserializeCollisionBoxesForSymbol(d,y,T,P,Y,te,se,pe,xe){const Pe={};for(let je=y;je<T;je++){const $e=d.get(je);Pe.textBox={x1:$e.x1,y1:$e.y1,x2:$e.x2,y2:$e.y2,padding:$e.padding,projectedAnchorX:$e.projectedAnchorX,projectedAnchorY:$e.projectedAnchorY,projectedAnchorZ:$e.projectedAnchorZ,tileAnchorX:$e.tileAnchorX,tileAnchorY:$e.tileAnchorY},Pe.textFeatureIndex=$e.featureIndex;break}for(let je=P;je<Y;je++){const $e=d.get(je);Pe.verticalTextBox={x1:$e.x1,y1:$e.y1,x2:$e.x2,y2:$e.y2,padding:$e.padding,projectedAnchorX:$e.projectedAnchorX,projectedAnchorY:$e.projectedAnchorY,projectedAnchorZ:$e.projectedAnchorZ,tileAnchorX:$e.tileAnchorX,tileAnchorY:$e.tileAnchorY},Pe.verticalTextFeatureIndex=$e.featureIndex;break}for(let je=te;je<se;je++){const $e=d.get(je);Pe.iconBox={x1:$e.x1,y1:$e.y1,x2:$e.x2,y2:$e.y2,padding:$e.padding,projectedAnchorX:$e.projectedAnchorX,projectedAnchorY:$e.projectedAnchorY,projectedAnchorZ:$e.projectedAnchorZ,tileAnchorX:$e.tileAnchorX,tileAnchorY:$e.tileAnchorY},Pe.iconFeatureIndex=$e.featureIndex;break}for(let je=pe;je<xe;je++){const $e=d.get(je);Pe.verticalIconBox={x1:$e.x1,y1:$e.y1,x2:$e.x2,y2:$e.y2,padding:$e.padding,projectedAnchorX:$e.projectedAnchorX,projectedAnchorY:$e.projectedAnchorY,projectedAnchorZ:$e.projectedAnchorZ,tileAnchorX:$e.tileAnchorX,tileAnchorY:$e.tileAnchorY},Pe.verticalIconFeatureIndex=$e.featureIndex;break}return Pe}deserializeCollisionBoxes(d){this.collisionArrays=[];for(let y=0;y<this.symbolInstances.length;y++){const T=this.symbolInstances.get(y);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(d,T.textBoxStartIndex,T.textBoxEndIndex,T.verticalTextBoxStartIndex,T.verticalTextBoxEndIndex,T.iconBoxStartIndex,T.iconBoxEndIndex,T.verticalIconBoxStartIndex,T.verticalIconBoxEndIndex))}}hasTextData(){return this.text.segments.get().length>0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(d,y){const T=d.placedSymbolArray.get(y),P=T.vertexStartIndex+4*T.numGlyphs;for(let Y=T.vertexStartIndex;Y<P;Y+=4)d.indexArray.emplaceBack(Y,Y+1,Y+2),d.indexArray.emplaceBack(Y+1,Y+2,Y+3)}getSortedSymbolIndexes(d){if(this.sortedAngle===d&&this.symbolInstanceIndexes!==void 0)return this.symbolInstanceIndexes;const y=Math.sin(d),T=Math.cos(d),P=[],Y=[],te=[];for(let se=0;se<this.symbolInstances.length;++se){te.push(se);const pe=this.symbolInstances.get(se);P.push(0|Math.round(y*pe.tileAnchorX+T*pe.tileAnchorY)),Y.push(pe.featureIndex)}return te.sort((se,pe)=>P[se]-P[pe]||Y[pe]-Y[se]),te}addToSortKeyRanges(d,y){const T=this.sortKeyRanges[this.sortKeyRanges.length-1];T&&T.sortKey===y?T.symbolInstanceEnd=d+1:this.sortKeyRanges.push({sortKey:y,symbolInstanceStart:d,symbolInstanceEnd:d+1})}sortFeatures(d){if(this.sortFeaturesByY&&this.sortedAngle!==d&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(d),this.sortedAngle=d,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(const y of this.symbolInstanceIndexes){const T=this.symbolInstances.get(y);this.featureSortOrder.push(T.featureIndex),[T.rightJustifiedTextSymbolIndex,T.centerJustifiedTextSymbolIndex,T.leftJustifiedTextSymbolIndex].forEach((P,Y,te)=>{P>=0&&te.indexOf(P)===Y&&this.addIndicesForPlacedSymbol(this.text,P)}),T.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,T.verticalPlacedTextSymbolIndex),T.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,T.placedIconSymbolIndex),T.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,T.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}Si(jc,"SymbolBucket",{omit:["layers","collisionBoxArray","features","compareText"]}),jc.MAX_GLYPHS=65535,jc.addDynamicAttributes=Wp;const zm=new yt({"symbol-placement":new _e(tr.layout_symbol["symbol-placement"]),"symbol-spacing":new _e(tr.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new _e(tr.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Ce(tr.layout_symbol["symbol-sort-key"]),"symbol-z-order":new _e(tr.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new _e(tr.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new _e(tr.layout_symbol["icon-ignore-placement"]),"icon-optional":new _e(tr.layout_symbol["icon-optional"]),"icon-rotation-alignment":new _e(tr.layout_symbol["icon-rotation-alignment"]),"icon-size":new Ce(tr.layout_symbol["icon-size"]),"icon-text-fit":new _e(tr.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new _e(tr.layout_symbol["icon-text-fit-padding"]),"icon-image":new Ce(tr.layout_symbol["icon-image"]),"icon-rotate":new Ce(tr.layout_symbol["icon-rotate"]),"icon-padding":new _e(tr.layout_symbol["icon-padding"]),"icon-keep-upright":new _e(tr.layout_symbol["icon-keep-upright"]),"icon-offset":new Ce(tr.layout_symbol["icon-offset"]),"icon-anchor":new Ce(tr.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new _e(tr.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new _e(tr.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new _e(tr.layout_symbol["text-rotation-alignment"]),"text-field":new Ce(tr.layout_symbol["text-field"]),"text-font":new Ce(tr.layout_symbol["text-font"]),"text-size":new Ce(tr.layout_symbol["text-size"]),"text-max-width":new Ce(tr.layout_symbol["text-max-width"]),"text-line-height":new Ce(tr.layout_symbol["text-line-height"]),"text-letter-spacing":new Ce(tr.layout_symbol["text-letter-spacing"]),"text-justify":new Ce(tr.layout_symbol["text-justify"]),"text-radial-offset":new Ce(tr.layout_symbol["text-radial-offset"]),"text-variable-anchor":new _e(tr.layout_symbol["text-variable-anchor"]),"text-anchor":new Ce(tr.layout_symbol["text-anchor"]),"text-max-angle":new _e(tr.layout_symbol["text-max-angle"]),"text-writing-mode":new _e(tr.layout_symbol["text-writing-mode"]),"text-rotate":new Ce(tr.layout_symbol["text-rotate"]),"text-padding":new _e(tr.layout_symbol["text-padding"]),"text-keep-upright":new _e(tr.layout_symbol["text-keep-upright"]),"text-transform":new Ce(tr.layout_symbol["text-transform"]),"text-offset":new Ce(tr.layout_symbol["text-offset"]),"text-allow-overlap":new _e(tr.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new _e(tr.layout_symbol["text-ignore-placement"]),"text-optional":new _e(tr.layout_symbol["text-optional"])});var Ef={paint:new yt({"icon-opacity":new Ce(tr.paint_symbol["icon-opacity"]),"icon-color":new Ce(tr.paint_symbol["icon-color"]),"icon-halo-color":new Ce(tr.paint_symbol["icon-halo-color"]),"icon-halo-width":new Ce(tr.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Ce(tr.paint_symbol["icon-halo-blur"]),"icon-translate":new _e(tr.paint_symbol["icon-translate"]),"icon-translate-anchor":new _e(tr.paint_symbol["icon-translate-anchor"]),"text-opacity":new Ce(tr.paint_symbol["text-opacity"]),"text-color":new Ce(tr.paint_symbol["text-color"],{runtimeType:Ms,getOverride:m=>m.textColor,hasOverride:m=>!!m.textColor}),"text-halo-color":new Ce(tr.paint_symbol["text-halo-color"]),"text-halo-width":new Ce(tr.paint_symbol["text-halo-width"]),"text-halo-blur":new Ce(tr.paint_symbol["text-halo-blur"]),"text-translate":new _e(tr.paint_symbol["text-translate"]),"text-translate-anchor":new _e(tr.paint_symbol["text-translate-anchor"])}),layout:zm};class Sm{constructor(d){this.type=d.property.overrides?d.property.overrides.runtimeType:Xo,this.defaultValue=d}evaluate(d){if(d.formattedSection){const y=this.defaultValue.property.overrides;if(y&&y.hasOverride(d.formattedSection))return y.getOverride(d.formattedSection)}return d.feature&&d.featureState?this.defaultValue.evaluate(d.feature,d.featureState):this.defaultValue.property.specification.default}eachChild(d){this.defaultValue.isConstant()||d(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}Si(Sm,"FormatSectionOverride",{omit:["defaultValue"]});class Tf extends ss{constructor(d){super(d,Ef)}recalculate(d,y){super.recalculate(d,y),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout._values["icon-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout._values["text-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment"));const T=this.layout.get("text-writing-mode");if(T){const P=[];for(const Y of T)P.indexOf(Y)<0&&P.push(Y);this.layout._values["text-writing-mode"]=P}else this.layout._values["text-writing-mode"]=this.layout.get("symbol-placement")==="point"?["horizontal"]:["horizontal","vertical"];this._setPaintOverrides()}getValueAndResolveTokens(d,y,T,P){const Y=this.layout.get(d).evaluate(y,{},T,P),te=this._unevaluatedLayout._values[d];return te.isDataDriven()||_i(te.value)||!Y?Y:function(se,pe){return pe.replace(/{([^{}]+)}/g,(xe,Pe)=>Pe in se?String(se[Pe]):"")}(y.properties,Y)}createBucket(d){return new jc(d)}queryRadius(){return 0}queryIntersectsFeature(){return!1}_setPaintOverrides(){for(const d of Ef.paint.overridableProperties){if(!Tf.hasPaintOverride(this.layout,d))continue;const y=this.paint.get(d),T=new Sm(y),P=new Nr(T,y.property.specification);let Y=null;Y=y.value.kind==="constant"||y.value.kind==="source"?new Vt("source",P):new Wt("composite",P,y.value.zoomStops,y.value._interpolationType),this.paint._values[d]=new ue(y.property,Y,y.parameters)}}_handleOverridablePaintPropertyUpdate(d,y,T){return!(!this.layout||y.isDataDriven()||T.isDataDriven())&&Tf.hasPaintOverride(this.layout,d)}static hasPaintOverride(d,y){const T=d.get("text-field"),P=Ef.paint.properties[y];let Y=!1;const te=se=>{for(const pe of se)if(P.overrides&&P.overrides.hasOverride(pe))return void(Y=!0)};if(T.value.kind==="constant"&&T.value.value instanceof Pr)te(T.value.value.sections);else if(T.value.kind==="source"){const se=xe=>{Y||(xe instanceof ko&&La(xe.value)===sl?te(xe.value.sections):xe instanceof wl?te(xe.sections):xe.eachChild(se))},pe=T.value;pe._styleExpression&&se(pe._styleExpression.expression)}return Y}getProgramConfiguration(d){return new $d(this,d)}}var Em={paint:new yt({"background-color":new _e(tr.paint_background["background-color"]),"background-pattern":new nt(tr.paint_background["background-pattern"]),"background-opacity":new _e(tr.paint_background["background-opacity"])})},Gm={paint:new yt({"raster-opacity":new _e(tr.paint_raster["raster-opacity"]),"raster-hue-rotate":new _e(tr.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new _e(tr.paint_raster["raster-brightness-min"]),"raster-brightness-max":new _e(tr.paint_raster["raster-brightness-max"]),"raster-saturation":new _e(tr.paint_raster["raster-saturation"]),"raster-contrast":new _e(tr.paint_raster["raster-contrast"]),"raster-resampling":new _e(tr.paint_raster["raster-resampling"]),"raster-fade-duration":new _e(tr.paint_raster["raster-fade-duration"])})};class Tm extends ss{constructor(d){super(d,{}),this.implementation=d}is3D(){return this.implementation.renderingMode==="3d"}hasOffscreenPass(){return this.implementation.prerender!==void 0}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){}onAdd(d){this.implementation.onAdd&&this.implementation.onAdd(d,d.painter.context.gl)}onRemove(d){this.implementation.onRemove&&this.implementation.onRemove(d,d.painter.context.gl)}}var jm={paint:new yt({"sky-type":new _e(tr.paint_sky["sky-type"]),"sky-atmosphere-sun":new _e(tr.paint_sky["sky-atmosphere-sun"]),"sky-atmosphere-sun-intensity":new _e(tr.paint_sky["sky-atmosphere-sun-intensity"]),"sky-gradient-center":new _e(tr.paint_sky["sky-gradient-center"]),"sky-gradient-radius":new _e(tr.paint_sky["sky-gradient-radius"]),"sky-gradient":new lt(tr.paint_sky["sky-gradient"]),"sky-atmosphere-halo-color":new _e(tr.paint_sky["sky-atmosphere-halo-color"]),"sky-atmosphere-color":new _e(tr.paint_sky["sky-atmosphere-color"]),"sky-opacity":new _e(tr.paint_sky["sky-opacity"])})};function rm(m,d,y){const T=[0,0,1],P=of([]);return function(Y,te,se){se*=.5;var pe=te[0],xe=te[1],Pe=te[2],je=te[3],$e=Math.sin(se),ut=Math.cos(se);Y[0]=pe*ut-Pe*$e,Y[1]=xe*ut+je*$e,Y[2]=Pe*ut+pe*$e,Y[3]=je*ut-xe*$e}(P,P,y?-N(m)+Math.PI:N(m)),gh(P,P,-N(d)),qd(T,T,P),Uh(T,T)}const Um={circle:class extends ss{constructor(m){super(m,oc)}createBucket(m){return new ro(m)}queryRadius(m){const d=m;return Rc("circle-radius",this,d)+Rc("circle-stroke-width",this,d)+Td(this.paint.get("circle-translate"))}queryIntersectsFeature(m,d,y,T,P,Y,te,se){const pe=fh(this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),Y.angle,m.pixelToTileUnitsFactor),xe=this.paint.get("circle-radius").evaluate(d,y)+this.paint.get("circle-stroke-width").evaluate(d,y);return mp(m,T,Y,te,se,this.paint.get("circle-pitch-alignment")==="map",this.paint.get("circle-pitch-scale")==="map",pe,xe)}getProgramIds(){return["circle"]}getProgramConfiguration(m){return new $d(this,m)}},heatmap:class extends ss{createBucket(m){return new Zd(m)}constructor(m){super(m,vp),this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(m){m==="heatmap-color"&&this._updateColorRamp()}_updateColorRamp(){this.colorRamp=Rl({expression:this._transitionablePaint._values["heatmap-color"].value.expression,evaluationKey:"heatmapDensity",image:this.colorRamp}),this.colorRampTexture=null}resize(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null)}queryRadius(m){return Rc("heatmap-radius",this,m)}queryIntersectsFeature(m,d,y,T,P,Y,te,se){const pe=this.paint.get("heatmap-radius").evaluate(d,y);return mp(m,T,Y,te,se,!0,!0,new _(0,0),pe)}hasOffscreenPass(){return this.paint.get("heatmap-opacity")!==0&&this.visibility!=="none"}getProgramIds(){return["heatmap","heatmapTexture"]}getProgramConfiguration(m){return new $d(this,m)}},hillshade:class extends ss{constructor(m){super(m,vh)}hasOffscreenPass(){return this.paint.get("hillshade-exaggeration")!==0&&this.visibility!=="none"}getProgramIds(){return["hillshade","hillshadePrepare"]}},fill:class extends ss{constructor(m){super(m,Qa)}getProgramIds(){const m=this.paint.get("fill-pattern"),d=m&&m.constantOr(1),y=[d?"fillPattern":"fill"];return this.paint.get("fill-antialias")&&y.push(d&&!this.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline"),y}getProgramConfiguration(m){return new $d(this,m)}recalculate(m,d){super.recalculate(m,d);const y=this.paint._values["fill-outline-color"];y.value.kind==="constant"&&y.value.value===void 0&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(m){return new Ui(m)}queryRadius(){return Td(this.paint.get("fill-translate"))}queryIntersectsFeature(m,d,y,T,P,Y){return!m.queryGeometry.isAboveHorizon&&Hs(Wd(m.tilespaceGeometry,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),Y.angle,m.pixelToTileUnitsFactor),T)}isTileClipped(){return!0}},"fill-extrusion":class extends ss{constructor(m){super(m,Rf)}createBucket(m){return new zc(m)}queryRadius(){return Td(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}getProgramIds(){return[this.paint.get("fill-extrusion-pattern").constantOr(1)?"fillExtrusionPattern":"fillExtrusion"]}getProgramConfiguration(m){return new $d(this,m)}queryIntersectsFeature(m,d,y,T,P,Y,te,se,pe){const xe=fh(this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),Y.angle,m.pixelToTileUnitsFactor),Pe=this.paint.get("fill-extrusion-height").evaluate(d,y),je=this.paint.get("fill-extrusion-base").evaluate(d,y),$e=[0,0],ut=se&&Y.elevation,bt=Y.elevation?Y.elevation.exaggeration():1,kt=m.tile.getBucket(this);if(ut&&kt instanceof zc){const wn=kt.centroidVertexArray,Ln=pe+1;if(Ln<wn.length){const hn=wn.get(Ln);$e[0]=hn.a_centroid_pos0,$e[1]=hn.a_centroid_pos1}}if($e[0]===0&&$e[1]===1)return!1;const zt=function(wn,Ln,hn,Jt,Nn,fr,wr,Rr,$r){return fr?function(mr,Sr,Wr,di,ri,li,Wa,Do,Za){const co=[],Ji=[],Vi=[0,0,0,1];for(const Lo of mr){const es=[],au=[];for(const nl of Lo){const ou=nl.x+di.x,ts=nl.y+di.y,Bo=Of(ou,ts,Sr,Wr,li,Wa,Do,Za);Vi[0]=ou,Vi[1]=ts,Vi[2]=Bo.base,Vi[3]=1,Oc(Vi,Vi,ri),Vi[3]=Math.max(Vi[3],1e-5);const Ps=Lf([Vi[0]/Vi[3],Vi[1]/Vi[3],Vi[2]/Vi[3]]);Vi[0]=ou,Vi[1]=ts,Vi[2]=Bo.top,Vi[3]=1,Oc(Vi,Vi,ri),Vi[3]=Math.max(Vi[3],1e-5);const bl=Lf([Vi[0]/Vi[3],Vi[1]/Vi[3],Vi[2]/Vi[3]]);es.push(Ps),au.push(bl)}co.push(es),Ji.push(au)}return[co,Ji]}(wn,Ln,hn,Jt,Nn,fr,wr,Rr,$r):function(mr,Sr,Wr,di,ri){const li=[],Wa=[],Do=ri[8]*Sr,Za=ri[9]*Sr,co=ri[10]*Sr,Ji=ri[11]*Sr,Vi=ri[8]*Wr,Lo=ri[9]*Wr,es=ri[10]*Wr,au=ri[11]*Wr;for(const nl of mr){const ou=[],ts=[];for(const Bo of nl){const Ps=Bo.x+di.x,bl=Bo.y+di.y,Dl=ri[0]*Ps+ri[4]*bl+ri[12],su=ri[1]*Ps+ri[5]*bl+ri[13],yu=ri[2]*Ps+ri[6]*bl+ri[14],cd=ri[3]*Ps+ri[7]*bl+ri[15],Uc=Dl+Do,Ns=su+Za,bc=yu+co,dd=Math.max(cd+Ji,1e-5),Lu=Dl+Vi,vu=su+Lo,pl=yu+es,rl=Math.max(cd+au,1e-5),$c=new _(Uc/dd,Ns/dd);$c.z=bc/dd,ou.push($c);const wc=new _(Lu/rl,vu/rl);wc.z=pl/rl,ts.push(wc)}li.push(ou),Wa.push(ts)}return[li,Wa]}(wn,Ln,hn,Jt,Nn)}(T,je,Pe,xe,te,ut?se:null,$e,bt,Y.center.lat),Xt=m.queryGeometry;return function(wn,Ln,hn){let Jt=1/0;Hs(hn,Ln)&&(Jt=lf(hn,Ln[0]));for(let Nn=0;Nn<Ln.length;Nn++){const fr=Ln[Nn],wr=wn[Nn];for(let Rr=0;Rr<fr.length-1;Rr++){const $r=fr[Rr],mr=[$r,fr[Rr+1],wr[Rr+1],wr[Rr],$r];Nh(hn,mr)&&(Jt=Math.min(Jt,lf(hn,mr)))}}return Jt!==1/0&&Jt}(zt[0],zt[1],Xt.isPointQuery()?Xt.screenBounds:Xt.screenGeometry)}},line:class extends ss{constructor(m){super(m,zf),this.gradientVersion=0}_handleSpecialPaintPropertyUpdate(m){if(m==="line-gradient"){const d=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=d._styleExpression&&d._styleExpression.expression instanceof qe,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(m,d){super.recalculate(m,d),this.paint._values["line-floorwidth"]=Gf.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,m)}createBucket(m){return new uf(m)}getProgramIds(){return[this.paint.get("line-pattern").constantOr(1)?"linePattern":"line"]}getProgramConfiguration(m){return new $d(this,m)}queryRadius(m){const d=m,y=jf(Rc("line-width",this,d),Rc("line-gap-width",this,d)),T=Rc("line-offset",this,d);return y/2+Math.abs(T)+Td(this.paint.get("line-translate"))}queryIntersectsFeature(m,d,y,T,P,Y){if(m.queryGeometry.isAboveHorizon)return!1;const te=Wd(m.tilespaceGeometry,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),Y.angle,m.pixelToTileUnitsFactor),se=m.pixelToTileUnitsFactor/2*jf(this.paint.get("line-width").evaluate(d,y),this.paint.get("line-gap-width").evaluate(d,y)),pe=this.paint.get("line-offset").evaluate(d,y);return pe&&(T=function(xe,Pe){const je=[],$e=new _(0,0);for(let ut=0;ut<xe.length;ut++){const bt=xe[ut],kt=[];for(let zt=0;zt<bt.length;zt++){const Xt=bt[zt-1],wn=bt[zt],Ln=bt[zt+1],hn=zt===0?$e:wn.sub(Xt)._unit()._perp(),Jt=zt===bt.length-1?$e:Ln.sub(wn)._unit()._perp(),Nn=hn._add(Jt)._unit();Nn._mult(1/(Nn.x*Jt.x+Nn.y*Jt.y)),kt.push(Nn._mult(Pe)._add(wn))}je.push(kt)}return je}(T,pe*m.pixelToTileUnitsFactor)),function(xe,Pe,je){for(let $e=0;$e<Pe.length;$e++){const ut=Pe[$e];if(xe.length>=3){for(let bt=0;bt<ut.length;bt++)if(fs(xe,ut[bt]))return!0}if(Pc(xe,ut,je))return!0}return!1}(te,T,se)}isTileClipped(){return!0}},symbol:Tf,background:class extends ss{constructor(m){super(m,Em)}getProgramIds(){return[this.paint.get("background-pattern")?"backgroundPattern":"background"]}},raster:class extends ss{constructor(m){super(m,Gm)}getProgramIds(){return["raster"]}},sky:class extends ss{constructor(m){super(m,jm),this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(m){m==="sky-gradient"?this._updateColorRamp():m!=="sky-atmosphere-sun"&&m!=="sky-atmosphere-halo-color"&&m!=="sky-atmosphere-color"&&m!=="sky-atmosphere-sun-intensity"||(this._skyboxInvalidated=!0)}_updateColorRamp(){this.colorRamp=Rl({expression:this._transitionablePaint._values["sky-gradient"].value.expression,evaluationKey:"skyRadialProgress"}),this.colorRampTexture&&(this.colorRampTexture.destroy(),this.colorRampTexture=null)}needsSkyboxCapture(m){if(this._skyboxInvalidated||!this.skyboxTexture||!this.skyboxGeometry)return!0;if(!this.paint.get("sky-atmosphere-sun")){const d=m.style.light.properties.get("position");return this._lightPosition.azimuthal!==d.azimuthal||this._lightPosition.polar!==d.polar}return!1}getCenter(m,d){if(this.paint.get("sky-type")==="atmosphere"){const T=this.paint.get("sky-atmosphere-sun"),P=!T,Y=m.style.light,te=Y.properties.get("position");return P&&Y.properties.get("anchor")==="viewport"&&De("The sun direction is attached to a light with viewport anchor, lighting may behave unexpectedly."),P?rm(te.azimuthal,90-te.polar,d):rm(T[0],90-T[1],d)}const y=this.paint.get("sky-gradient-center");return rm(y[0],90-y[1],d)}is3D(){return!1}isSky(){return!0}markSkyboxValid(m){this._skyboxInvalidated=!1,this._lightPosition=m.style.light.properties.get("position")}hasOffscreenPass(){return!0}getProgramIds(){const m=this.paint.get("sky-type");return m==="atmosphere"?["skyboxCapture","skybox"]:m==="gradient"?["skyboxGradient"]:null}}};class Yp{constructor(d,y,T,P){this.context=d,this.format=T,this.texture=d.gl.createTexture(),this.update(y,P)}update(d,y,T){const{width:P,height:Y}=d,{context:te}=this,{gl:se}=te,{HTMLImageElement:pe,HTMLCanvasElement:xe,HTMLVideoElement:Pe,ImageData:je,ImageBitmap:$e}=E;if(se.bindTexture(se.TEXTURE_2D,this.texture),te.pixelStoreUnpackFlipY.set(!1),te.pixelStoreUnpack.set(1),te.pixelStoreUnpackPremultiplyAlpha.set(this.format===se.RGBA&&(!y||y.premultiply!==!1)),T||this.size&&this.size[0]===P&&this.size[1]===Y){const{x:ut,y:bt}=T||{x:0,y:0};d instanceof pe||d instanceof xe||d instanceof Pe||d instanceof je||$e&&d instanceof $e?se.texSubImage2D(se.TEXTURE_2D,0,ut,bt,se.RGBA,se.UNSIGNED_BYTE,d):se.texSubImage2D(se.TEXTURE_2D,0,ut,bt,P,Y,se.RGBA,se.UNSIGNED_BYTE,d.data)}else this.size=[P,Y],d instanceof pe||d instanceof xe||d instanceof Pe||d instanceof je||$e&&d instanceof $e?se.texImage2D(se.TEXTURE_2D,0,this.format,this.format,se.UNSIGNED_BYTE,d):se.texImage2D(se.TEXTURE_2D,0,this.format,P,Y,0,this.format,se.UNSIGNED_BYTE,d.data);this.useMipmap=Boolean(y&&y.useMipmap&&this.isSizePowerOfTwo()),this.useMipmap&&se.generateMipmap(se.TEXTURE_2D)}bind(d,y){const{context:T}=this,{gl:P}=T;P.bindTexture(P.TEXTURE_2D,this.texture),d!==this.filter&&(P.texParameteri(P.TEXTURE_2D,P.TEXTURE_MAG_FILTER,d),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_MIN_FILTER,this.useMipmap?d===P.NEAREST?P.NEAREST_MIPMAP_NEAREST:P.LINEAR_MIPMAP_NEAREST:d),this.filter=d),y!==this.wrap&&(P.texParameteri(P.TEXTURE_2D,P.TEXTURE_WRAP_S,y),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_WRAP_T,y),this.wrap=y)}isSizePowerOfTwo(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0}destroy(){const{gl:d}=this.context;d.deleteTexture(this.texture),this.texture=null}}class im{constructor(d,y){this.width=d,this.height=y,this.nextRow=0,this.image=new mu({width:d,height:y}),this.positions={},this.uploaded=!1}getDash(d,y){const T=this.getKey(d,y);return this.positions[T]}trim(){const d=this.width,y=this.height=ye(this.nextRow);this.image.resize({width:d,height:y})}getKey(d,y){return d.join(",")+y}getDashRanges(d,y,T){const P=[];let Y=d.length%2==1?-d[d.length-1]*T:0,te=d[0]*T,se=!0;P.push({left:Y,right:te,isDash:se,zeroLength:d[0]===0});let pe=d[0];for(let xe=1;xe<d.length;xe++){se=!se;const Pe=d[xe];Y=pe*T,pe+=Pe,te=pe*T,P.push({left:Y,right:te,isDash:se,zeroLength:Pe===0})}return P}addRoundDash(d,y,T){const P=y/2;for(let Y=-T;Y<=T;Y++){const te=this.width*(this.nextRow+T+Y);let se=0,pe=d[se];for(let xe=0;xe<this.width;xe++){xe/pe.right>1&&(pe=d[++se]);const Pe=Math.abs(xe-pe.left),je=Math.abs(xe-pe.right),$e=Math.min(Pe,je);let ut;const bt=Y/T*(P+1);if(pe.isDash){const kt=P-Math.abs(bt);ut=Math.sqrt($e*$e+kt*kt)}else ut=P-Math.sqrt($e*$e+bt*bt);this.image.data[te+xe]=Math.max(0,Math.min(255,ut+128))}}}addRegularDash(d,y){for(let pe=d.length-1;pe>=0;--pe){const xe=d[pe],Pe=d[pe+1];xe.zeroLength?d.splice(pe,1):Pe&&Pe.isDash===xe.isDash&&(Pe.left=xe.left,d.splice(pe,1))}const T=d[0],P=d[d.length-1];T.isDash===P.isDash&&(T.left=P.left-this.width,P.right=T.right+this.width);const Y=this.width*this.nextRow;let te=0,se=d[te];for(let pe=0;pe<this.width;pe++){pe/se.right>1&&(se=d[++te]);const xe=Math.abs(pe-se.left),Pe=Math.abs(pe-se.right),je=Math.min(xe,Pe);this.image.data[Y+pe]=Math.max(0,Math.min(255,(se.isDash?je:-je)+y+128))}}addDash(d,y){const T=this.getKey(d,y);if(this.positions[T])return this.positions[T];const P=y==="round",Y=P?7:0,te=2*Y+1;if(this.nextRow+te>this.height)return De("LineAtlas out of space"),null;d.length===0&&d.push(1);let se=0;for(let Pe=0;Pe<d.length;Pe++)d[Pe]<0&&(De("Negative value is found in line dasharray, replacing values with 0"),d[Pe]=0),se+=d[Pe];if(se!==0){const Pe=this.width/se,je=this.getDashRanges(d,this.width,Pe);P?this.addRoundDash(je,Pe,Y):this.addRegularDash(je,y==="square"?.5*Pe:0)}const pe=this.nextRow+Y;this.nextRow+=te;const xe={tl:[pe,Y],br:[se,0]};return this.positions[T]=xe,xe}}Si(im,"LineAtlas");class $m{constructor(d){this._callback=d,this._triggered=!1,typeof MessageChannel!="undefined"&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._callback()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(()=>{this._triggered=!1,this._callback()},0))}remove(){this._channel=void 0,this._callback=()=>{}}}const Hm=E.performance;function am(m){const d=m?m.url.toString():void 0;return Hm.getEntriesByName(d)}class ig{constructor(){this.tasks={},this.taskQueue=[],ke(["process"],this),this.invoker=new $m(this.process),this.nextId=0}add(d,y){const T=this.nextId++,P=function({type:Y,isSymbolTile:te,zoom:se}){return se=se||0,Y==="message"?0:Y!=="maybePrepare"||te?Y!=="parseTile"||te?Y==="parseTile"&&te?300-se:Y==="maybePrepare"&&te?400-se:500:200-se:100-se}(y);if(P===0){He();try{d()}finally{}return{cancel:()=>{}}}return this.tasks[T]={fn:d,metadata:y,priority:P,id:T},this.taskQueue.push(T),this.invoker.trigger(),{cancel:()=>{delete this.tasks[T]}}}process(){He();try{if(this.taskQueue=this.taskQueue.filter(T=>!!this.tasks[T]),!this.taskQueue.length)return;const d=this.pick();if(d===null)return;const y=this.tasks[d];if(delete this.tasks[d],this.taskQueue.length&&this.invoker.trigger(),!y)return;y.fn()}finally{}}pick(){let d=null,y=1/0;for(let P=0;P<this.taskQueue.length;P++){const Y=this.tasks[this.taskQueue[P]];Y.priority<y&&(y=Y.priority,d=P)}if(d===null)return null;const T=this.taskQueue[d];return this.taskQueue.splice(d,1),T}remove(){this.invoker.remove()}}const ag=vn([{type:"Float32",name:"a_globe_pos",components:3},{type:"Float32",name:"a_merc_pos",components:2},{type:"Float32",name:"a_uv",components:2}]),u=vn([{type:"Float32",name:"a_pos",components:3},{type:"Float32",name:"a_uv",components:2}]),{members:g}=ag,C=vn([{name:"a_pos_3",components:3,type:"Int16"}]);var L=vn([{name:"a_pos",type:"Int16",components:2}]);const K=za/Math.PI/2,ie=-K,ce=K,ge=[new Pl([ie,ie,ie],[ce,ce,ce]),new Pl([ie,ie,ie],[0,0,ce]),new Pl([0,ie,ie],[ce,0,ce]),new Pl([ie,0,ie],[0,ce,ce]),new Pl([0,0,ie],[ce,ce,ce])];class Ee{constructor(d,y,T){this.a=ad([],d,T),this.b=ad([],y,T),this.center=T;const P=Uh([],this.a),Y=Uh([],this.b);this.angle=Math.acos(al(P,Y))}}function Ae(m,d){if(m.angle===0)return null;let y;return y=m.a[d]===0?1/m.angle*.5*Math.PI:1/m.angle*Math.atan(m.b[d]/m.a[d]/Math.sin(m.angle)-1/Math.tan(m.angle)),y<0||y>1?null:function(T,P,Y,te){const se=Math.sin(Y);return T*(Math.sin((1-te)*Y)/se)+P*(Math.sin(te*Y)/se)}(m.a[d],m.b[d],m.angle,W(y,0,1))+m.center[d]}function We(m){if(m.z<=1)return ge[m.z+2*m.y+m.x];const[d,y]=ot(m),T=[mt(d[0],d[1]),mt(d[0],y[1]),mt(y[0],d[1]),mt(y[0],y[1])],P=[ce,ce,ce],Y=[ie,ie,ie];for(const te of T)P[0]=Math.min(P[0],te[0]),P[1]=Math.min(P[1],te[1]),P[2]=Math.min(P[2],te[2]),Y[0]=Math.max(Y[0],te[0]),Y[1]=Math.max(Y[1],te[1]),Y[2]=Math.max(Y[2],te[2]);return new Pl(P,Y)}function tt(m,d,y){const T=d/m.worldSize,P=(Sr,Wr)=>{vc(Sr,Sr,T),vc(Wr,Wr,T)},Y=Number.MAX_VALUE,te=[-Y,-Y,-Y],se=[Y,Y,Y],pe=An(m);if(y.z<=1){const Sr=We(y).getCorners();for(let Wr=0;Wr<Sr.length;Wr++)id(Sr[Wr],Sr[Wr],pe),jh(se,se,Sr[Wr]),Ad(te,te,Sr[Wr]);return P(se,te),new Pl(se,te)}const[xe,Pe]=ot(y),je=new kc;je.setSouthWest([xe[1],Pe[0]]),je.setNorthEast([Pe[1],xe[0]]);const $e=[mt(je.getSouth(),je.getWest()),mt(je.getSouth(),je.getEast()),mt(je.getNorth(),je.getEast()),mt(je.getNorth(),je.getWest())];for(let Sr=0;Sr<$e.length;Sr++)id($e[Sr],$e[Sr],pe),jh(se,se,$e[Sr]),Ad(te,te,$e[Sr]);if(je.contains(m.center))return te[2]=0,P(se,te),new Pl(se,te);const ut=[pe[12],pe[13],pe[14]],bt=m.center.lng,kt=W(m.center.lat,-85.051129,Du),zt=[Md(bt),Eu(kt)],Xt=je.getCenter().lng,wn=W(je.getCenter().lat,-85.051129,Du),Ln=[Md(Xt),Eu(wn)];let hn=new Array(3),Jt=0;const Nn=zt[0]-Ln[0],fr=zt[1]-Ln[1];if(Math.abs(Nn)>Math.abs(fr))Jt=Nn>=0?1:3,hn=ut;else{Jt=fr>=0?0:2;const Sr=[pe[4],pe[5],pe[6]];let Wr;Wr=fr>=0?-Math.sin(N(je.getSouth()))*K:-Math.sin(N(je.getNorth()))*K,hn=af(hn,ut,Sr,Wr)}const wr=$e[Jt],Rr=$e[(Jt+1)%4],$r=new Ee(wr,Rr,hn),mr=[Ae($r,0)||wr[0],Ae($r,1)||wr[1],Ae($r,2)||wr[2]];return se[2]=Math.min(wr[2],Rr[2]),jh(se,se,mr),Ad(te,te,mr),P(se,te),new Pl(se,te)}function ot(m){const d=1<<m.z,y=m.x/d,T=(m.x+1)/d,P=(m.y+1)/d;return[[yl(m.y/d),Tu(y)],[yl(P),Tu(T)]]}function Oe(m,d,y,T=K){return y=N(y),[m*Math.sin(y)*T,-d*T,m*Math.cos(y)*T]}function mt(m,d,y){return Oe(Math.cos(N(m)),Math.sin(N(m)),d,y)}function Tt(m,d,y){const T=Math.pow(2,y.z),P=(m/za+y.x)/T;return mt(yl((d/za+y.y)/T),Tu(P))}function At(m){return 16383/Math.max(...ad([],m.max,m.min))}function nn(m){const d=Lc(new Float64Array(16)),y=At(m);var T,P;return $u(d,d,[y,y,y]),so(d,d,((T=[])[0]=-(P=m.min)[0],T[1]=-P[1],T[2]=-P[2],T)),d}function fn(m,d,y,T,P){const Y=function(pe){const xe=za/(2*Math.PI);return pe/(2*Math.PI)/xe}(y),te=[m,d,-y/(2*Math.PI)],se=Lc(new Float64Array(16));return so(se,se,te),$u(se,se,[Y,Y,Y]),xs(se,se,N(-P)),nd(se,se,N(-T)),se}function An(m){const{x:d,y}=m.point,{lng:T,lat:P}=m._center;return fn(d,y,m.worldSize,T,P)}const zn=N(85),Dn=Math.cos(zn),Qn=Math.sin(zn);function Pn(m,d,y){var T=2*Math.PI*6378137/256/Math.pow(2,y);return[m*T-2*Math.PI*6378137/2,d*T-2*Math.PI*6378137/2]}class cr{constructor(d,y,T){this.z=d,this.x=y,this.y=T,this.key=Er(0,d,d,y,T)}equals(d){return this.z===d.z&&this.x===d.x&&this.y===d.y}url(d,y){const T=function(Y,te,se){var pe=Pn(256*Y,256*(te=Math.pow(2,se)-te-1),se),xe=Pn(256*(Y+1),256*(te+1),se);return pe[0]+","+pe[1]+","+xe[0]+","+xe[1]}(this.x,this.y,this.z),P=function(Y,te,se){let pe,xe="";for(let Pe=Y;Pe>0;Pe--)pe=1<<Pe-1,xe+=(te&pe?1:0)+(se&pe?2:0);return xe}(this.z,this.x,this.y);return d[(this.x+this.y)%d.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String(y==="tms"?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",P).replace("{bbox-epsg-3857}",T)}toString(){return`${this.z}/${this.x}/${this.y}`}}class Cr{constructor(d,y){this.wrap=d,this.canonical=y,this.key=Er(d,y.z,y.z,y.x,y.y)}}class _r{constructor(d,y,T,P,Y){this.overscaledZ=d,this.wrap=y,this.canonical=new cr(T,+P,+Y),this.key=y===0&&d===T?this.canonical.key:Er(y,d,T,P,Y)}equals(d){return this.overscaledZ===d.overscaledZ&&this.wrap===d.wrap&&this.canonical.equals(d.canonical)}scaledTo(d){const y=this.canonical.z-d;return d>this.canonical.z?new _r(d,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new _r(d,this.wrap,d,this.canonical.x>>y,this.canonical.y>>y)}calculateScaledKey(d,y=!0){if(this.overscaledZ===d&&y)return this.key;if(d>this.canonical.z)return Er(this.wrap*+y,d,this.canonical.z,this.canonical.x,this.canonical.y);{const T=this.canonical.z-d;return Er(this.wrap*+y,d,d,this.canonical.x>>T,this.canonical.y>>T)}}isChildOf(d){if(d.wrap!==this.wrap)return!1;const y=this.canonical.z-d.canonical.z;return d.overscaledZ===0||d.overscaledZ<this.overscaledZ&&d.canonical.x===this.canonical.x>>y&&d.canonical.y===this.canonical.y>>y}children(d){if(this.overscaledZ>=d)return[new _r(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];const y=this.canonical.z+1,T=2*this.canonical.x,P=2*this.canonical.y;return[new _r(y,this.wrap,y,T,P),new _r(y,this.wrap,y,T+1,P),new _r(y,this.wrap,y,T,P+1),new _r(y,this.wrap,y,T+1,P+1)]}isLessThan(d){return this.wrap<d.wrap||!(this.wrap>d.wrap)&&(this.overscaledZ<d.overscaledZ||!(this.overscaledZ>d.overscaledZ)&&(this.canonical.x<d.canonical.x||!(this.canonical.x>d.canonical.x)&&this.canonical.y<d.canonical.y))}wrapped(){return new _r(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)}unwrapTo(d){return new _r(this.overscaledZ,d,this.canonical.z,this.canonical.x,this.canonical.y)}overscaleFactor(){return Math.pow(2,this.overscaledZ-this.canonical.z)}toUnwrapped(){return new Cr(this.wrap,this.canonical)}toString(){return`${this.overscaledZ}/${this.canonical.x}/${this.canonical.y}`}}function Er(m,d,y,T,P){const Y=1<<Math.min(y,22);let te=Y*(P%Y)+T%Y;return m&&y<22&&(te+=Y*Y*((m<0?-2*m-1:2*m)%(1<<2*(22-y)))),16*(32*te+y)+(d-y)}function Vr(m,d){if(!d.isReprojectedInTileSpace)return{scale:1<<m.z,x:m.x,y:m.y,x2:m.x+1,y2:m.y+1,projection:d};const y=Math.pow(2,-m.z),T=m.x*y,P=(m.x+1)*y,Y=m.y*y,te=(m.y+1)*y,se=Tu(T),pe=Tu(P),xe=yl(Y),Pe=yl(te),je=d.project(se,xe),$e=d.project(pe,xe),ut=d.project(pe,Pe),bt=d.project(se,Pe);let kt=Math.min(je.x,$e.x,ut.x,bt.x),zt=Math.min(je.y,$e.y,ut.y,bt.y),Xt=Math.max(je.x,$e.x,ut.x,bt.x),wn=Math.max(je.y,$e.y,ut.y,bt.y);const Ln=y/16;function hn(Nn,fr,wr,Rr,$r,mr){const Sr=(wr+$r)/2,Wr=(Rr+mr)/2,di=d.project(Tu(Sr),yl(Wr)),ri=Math.max(0,kt-di.x,zt-di.y,di.x-Xt,di.y-wn);kt=Math.min(kt,di.x),Xt=Math.max(Xt,di.x),zt=Math.min(zt,di.y),wn=Math.max(wn,di.y),ri>Ln&&(hn(Nn,di,wr,Rr,Sr,Wr),hn(di,fr,Sr,Wr,$r,mr))}hn(je,$e,T,Y,P,Y),hn($e,ut,P,Y,P,te),hn(ut,bt,P,te,T,te),hn(bt,je,T,te,T,Y),kt-=Ln,zt-=Ln,Xt+=Ln,wn+=Ln;const Jt=1/Math.max(Xt-kt,wn-zt);return{scale:Jt,x:kt*Jt,y:zt*Jt,x2:Xt*Jt,y2:wn*Jt,projection:d}}Si(cr,"CanonicalTileID"),Si(_r,"OverscaledTileID",{omit:["projMatrix"]});class si{constructor(d){this._stringToNumber={},this._numberToString=[];for(let y=0;y<d.length;y++){const T=d[y];this._stringToNumber[T]=y,this._numberToString[y]=T}}encode(d){return this._stringToNumber[d]}decode(d){return this._numberToString[d]}}const Ar=["tile","layer","source","sourceLayer","state"];class vr{constructor(d,y,T,P,Y){this.type="Feature",this._vectorTileFeature=d,this._z=y,this._x=T,this._y=P,this.properties=d.properties,this.id=Y}get geometry(){return this._geometry===void 0&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._x,this._y,this._z).geometry),this._geometry}set geometry(d){this._geometry=d}toJSON(){const d={type:"Feature",geometry:this.geometry,properties:this.properties};this.id!==void 0&&(d.id=this.id);for(const y of Ar)this[y]!==void 0&&(d[y]=this[y]);return d}}const yi=32,Bi=33,ya=new Uint16Array(8184);for(let m=0;m<2046;m++){let d=m+2,y=0,T=0,P=0,Y=0,te=0,se=0;for(1&d?P=Y=te=yi:y=T=se=yi;(d>>=1)>1;){const xe=y+P>>1,Pe=T+Y>>1;1&d?(P=y,Y=T,y=te,T=se):(y=P,T=Y,P=te,Y=se),te=xe,se=Pe}const pe=4*m;ya[pe+0]=y,ya[pe+1]=T,ya[pe+2]=P,ya[pe+3]=Y}const sa=new Uint16Array(2178),oa=new Uint8Array(1089),$a=new Uint16Array(1089);function ta(m){return m===0?-.03125:m===32?.03125:0}var Mn=vn([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);const Wn={type:2,extent:za,loadGeometry:()=>[[new _(0,0),new _(8193,0),new _(8193,8193),new _(0,8193),new _(0,0)]]};class ai{constructor(d,y,T,P,Y){this.tileID=d,this.uid=fe(),this.uses=0,this.tileSize=y,this.tileZoom=T,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.isRaster=Y,this.expiredRequestCount=0,this.state="loading",P&&P.transform&&(this.projection=P.transform.projection)}registerFadeDuration(d){const y=d+this.timeAdded;y<vt.now()||this.fadeEndTime&&y<this.fadeEndTime||(this.fadeEndTime=y)}wasRequested(){return this.state==="errored"||this.state==="loaded"||this.state==="reloading"}get tileTransform(){return this._tileTransform||(this._tileTransform=Vr(this.tileID.canonical,this.projection)),this._tileTransform}loadVectorData(d,y,T){if(this.unloadVectorData(),this.state="loaded",d){d.featureIndex&&(this.latestFeatureIndex=d.featureIndex,d.rawTileData?(this.latestRawTileData=d.rawTileData,this.latestFeatureIndex.rawTileData=d.rawTileData):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData)),this.collisionBoxArray=d.collisionBoxArray,this.buckets=function(P,Y){const te={};if(!Y)return te;for(const se of P){const pe=se.layerIds.map(xe=>Y.getLayer(xe)).filter(Boolean);if(pe.length!==0){se.layers=pe,se.stateDependentLayerIds&&(se.stateDependentLayers=se.stateDependentLayerIds.map(xe=>pe.filter(Pe=>Pe.id===xe)[0]));for(const xe of pe)te[xe.id]=se}}return te}(d.buckets,y.style),this.hasSymbolBuckets=!1;for(const P in this.buckets){const Y=this.buckets[P];if(Y instanceof jc){if(this.hasSymbolBuckets=!0,!T)break;Y.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(const P in this.buckets){const Y=this.buckets[P];if(Y instanceof jc&&Y.hasRTLText){this.hasRTLText=!0,Gs.isLoading()||Gs.isLoaded()||sh()!=="deferred"||_d();break}}this.queryPadding=0;for(const P in this.buckets){const Y=this.buckets[P];this.queryPadding=Math.max(this.queryPadding,y.style.getLayer(P).queryRadius(Y))}d.imageAtlas&&(this.imageAtlas=d.imageAtlas),d.glyphAtlasImage&&(this.glyphAtlasImage=d.glyphAtlasImage),d.lineAtlas&&(this.lineAtlas=d.lineAtlas)}else this.collisionBoxArray=new mc}unloadVectorData(){if(this.hasData()){for(const d in this.buckets)this.buckets[d].destroy();this.buckets={},this.imageAtlas&&(this.imageAtlas=null),this.lineAtlas&&(this.lineAtlas=null),this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.lineAtlasTexture&&this.lineAtlasTexture.destroy(),this._tileBoundsBuffer&&(this._tileBoundsBuffer.destroy(),this._tileBoundsIndexBuffer.destroy(),this._tileBoundsSegments.destroy(),this._tileBoundsBuffer=null),this._tileDebugBuffer&&(this._tileDebugBuffer.destroy(),this._tileDebugIndexBuffer.destroy(),this._tileDebugSegments.destroy(),this._tileDebugBuffer=null),this._globeTileDebugBorderBuffer&&(this._globeTileDebugBorderBuffer.destroy(),this._globeTileDebugBorderBuffer=null),this._tileDebugTextBuffer&&(this._tileDebugTextBuffer.destroy(),this._tileDebugTextSegments.destroy(),this._tileDebugTextIndexBuffer.destroy(),this._tileDebugTextBuffer=null),this._globeTileDebugTextBuffer&&(this._globeTileDebugTextBuffer.destroy(),this._globeTileDebugTextBuffer=null),this.latestFeatureIndex=null,this.state="unloaded"}}getBucket(d){return this.buckets[d.id]}upload(d){for(const T in this.buckets){const P=this.buckets[T];P.uploadPending()&&P.upload(d)}const y=d.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new Yp(d,this.imageAtlas.image,y.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new Yp(d,this.glyphAtlasImage,y.ALPHA),this.glyphAtlasImage=null),this.lineAtlas&&!this.lineAtlas.uploaded&&(this.lineAtlasTexture=new Yp(d,this.lineAtlas.image,y.ALPHA),this.lineAtlas.uploaded=!0)}prepare(d){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(d,this.imageAtlasTexture)}queryRenderedFeatures(d,y,T,P,Y,te,se,pe){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({tileResult:P,pixelPosMatrix:se,transform:te,params:Y,tileTransform:this.tileTransform},d,y,T):{}}querySourceFeatures(d,y){const T=this.latestFeatureIndex;if(!T||!T.rawTileData)return;const P=T.loadVTLayers(),Y=y?y.sourceLayer:"",te=P._geojsonTileLayer||P[Y];if(!te)return;const se=Gi(y&&y.filter),{z:pe,x:xe,y:Pe}=this.tileID.canonical,je={z:pe,x:xe,y:Pe};for(let $e=0;$e<te.length;$e++){const ut=te.feature($e);if(se.needGeometry){const zt=Ic(ut,!0);if(!se.filter(new Ro(this.tileID.overscaledZ),zt,this.tileID.canonical))continue}else if(!se.filter(new Ro(this.tileID.overscaledZ),ut))continue;const bt=T.getId(ut,Y),kt=new vr(ut,pe,xe,Pe,bt);kt.tile=je,d.push(kt)}}hasData(){return this.state==="loaded"||this.state==="reloading"||this.state==="expired"}patternsLoaded(){return!!this.imageAtlas&&!!Object.keys(this.imageAtlas.patternPositions).length}setExpiryData(d){const y=this.expirationTime;if(d.cacheControl){const T=gt(d.cacheControl);T["max-age"]&&(this.expirationTime=Date.now()+1e3*T["max-age"])}else d.expires&&(this.expirationTime=new Date(d.expires).getTime());if(this.expirationTime){const T=Date.now();let P=!1;if(this.expirationTime>T)P=!1;else if(y)if(this.expirationTime<y)P=!0;else{const Y=this.expirationTime-y;Y?this.expirationTime=T+Math.max(Y,3e4):P=!0}else P=!0;P?(this.expiredRequestCount++,this.state="expired"):this.expiredRequestCount=0}}getExpiryTimeout(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1<<Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-new Date().getTime(),Math.pow(2,31)-1)}setFeatureState(d,y){if(!this.latestFeatureIndex||!this.latestFeatureIndex.rawTileData||Object.keys(d).length===0||!y)return;const T=this.latestFeatureIndex.loadVTLayers(),P=y.style.listImages();for(const Y in this.buckets){if(!y.style.hasLayer(Y))continue;const te=this.buckets[Y],se=te.layers[0].sourceLayer||"_geojsonTileLayer",pe=T[se],xe=d[se];if(!pe||!xe||Object.keys(xe).length===0)continue;if(te.update(xe,pe,P,this.imageAtlas&&this.imageAtlas.patternPositions||{}),te instanceof uf||te instanceof Ui){const je=y.style._getSourceCache(te.layers[0].source);y._terrain&&y._terrain.enabled&&je&&te.programConfigurations.needsUpload&&y._terrain._clearRenderCacheForTile(je.id,this.tileID)}const Pe=y&&y.style&&y.style.getLayer(Y);Pe&&(this.queryPadding=Math.max(this.queryPadding,Pe.queryRadius(te)))}}holdingForFade(){return this.symbolFadeHoldUntil!==void 0}symbolFadeFinished(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil<vt.now()}clearFadeHold(){this.symbolFadeHoldUntil=void 0}setHoldDuration(d){this.symbolFadeHoldUntil=vt.now()+d}setTexture(d,y){const T=y.context,P=T.gl;this.texture=y.getTileTexture(d.width),this.texture?this.texture.update(d,{useMipmap:!0}):(this.texture=new Yp(T,d,P.RGBA,{useMipmap:!0}),this.texture.bind(P.LINEAR,P.CLAMP_TO_EDGE),T.extTextureFilterAnisotropic&&P.texParameterf(P.TEXTURE_2D,T.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,T.extTextureFilterAnisotropicMax))}setDependencies(d,y){const T={};for(const P of y)T[P]=!0;this.dependencies[d]=T}hasDependency(d,y){for(const T of d){const P=this.dependencies[T];if(P){for(const Y of y)if(P[Y])return!0}}return!1}clearQueryDebugViz(){}_makeDebugTileBoundsBuffers(d,y){if(!y||y.name==="mercator"||this._tileDebugBuffer)return;const T=vl(Wn,this.tileID.canonical,this.tileTransform)[0],P=new cn,Y=new Mo;for(let te=0;te<T.length;te++){const{x:se,y:pe}=T[te];P.emplaceBack(se,pe),Y.emplaceBack(te)}Y.emplaceBack(0),this._tileDebugIndexBuffer=d.createIndexBuffer(Y),this._tileDebugBuffer=d.createVertexBuffer(P,L.members),this._tileDebugSegments=Qs.simpleSegment(0,0,P.length,Y.length)}_makeTileBoundsBuffers(d,y){if(this._tileBoundsBuffer||!y||y.name==="mercator")return;const T=vl(Wn,this.tileID.canonical,this.tileTransform)[0];let P,Y;if(this.isRaster){const te=function(se,pe){const xe=Vr(se,pe),Pe=Math.pow(2,se.z);for(let zt=0;zt<Bi;zt++)for(let Xt=0;Xt<Bi;Xt++){const wn=Tu((se.x+(Xt+ta(Xt))/yi)/Pe),Ln=yl((se.y+(zt+ta(zt))/yi)/Pe),hn=pe.project(wn,Ln),Jt=zt*Bi+Xt;sa[2*Jt+0]=Math.round((hn.x*xe.scale-xe.x)*za),sa[2*Jt+1]=Math.round((hn.y*xe.scale-xe.y)*za)}oa.fill(0),$a.fill(0);for(let zt=2045;zt>=0;zt--){const Xt=4*zt,wn=ya[Xt+0],Ln=ya[Xt+1],hn=ya[Xt+2],Jt=ya[Xt+3],Nn=wn+hn>>1,fr=Ln+Jt>>1,wr=Nn+fr-Ln,Rr=fr+wn-Nn,$r=Ln*Bi+wn,mr=Jt*Bi+hn,Sr=fr*Bi+Nn,Wr=Math.hypot((sa[2*$r+0]+sa[2*mr+0])/2-sa[2*Sr+0],(sa[2*$r+1]+sa[2*mr+1])/2-sa[2*Sr+1])>=16;if(oa[Sr]=oa[Sr]||(Wr?1:0),zt<1022){const di=(Ln+Rr>>1)*Bi+(wn+wr>>1),ri=(Jt+Rr>>1)*Bi+(hn+wr>>1);oa[Sr]=oa[Sr]||oa[di]||oa[ri]}}const je=new Cn,$e=new Ii;let ut=0;function bt(zt,Xt){const wn=Xt*Bi+zt;return $a[wn]===0&&(je.emplaceBack(sa[2*wn+0],sa[2*wn+1],zt*za/yi,Xt*za/yi),$a[wn]=++ut),$a[wn]-1}function kt(zt,Xt,wn,Ln,hn,Jt){const Nn=zt+wn>>1,fr=Xt+Ln>>1;if(Math.abs(zt-hn)+Math.abs(Xt-Jt)>1&&oa[fr*Bi+Nn])kt(hn,Jt,zt,Xt,Nn,fr),kt(wn,Ln,hn,Jt,Nn,fr);else{const wr=bt(zt,Xt),Rr=bt(wn,Ln),$r=bt(hn,Jt);$e.emplaceBack(wr,Rr,$r)}}return kt(0,0,yi,yi,yi,0),kt(yi,yi,0,0,0,yi),{vertices:je,indices:$e}}(this.tileID.canonical,y);P=te.vertices,Y=te.indices}else{P=new Cn,Y=new Ii;for(const{x:se,y:pe}of T)P.emplaceBack(se,pe,0,0);const te=Ys(P.int16,void 0,4);for(let se=0;se<te.length;se+=3)Y.emplaceBack(te[se],te[se+1],te[se+2])}this._tileBoundsBuffer=d.createVertexBuffer(P,Mn.members),this._tileBoundsIndexBuffer=d.createIndexBuffer(Y),this._tileBoundsSegments=Qs.simpleSegment(0,0,P.length,Y.length)}_makeGlobeTileDebugBuffers(d,y){if(this._globeTileDebugBorderBuffer||this._globeTileDebugTextBuffer||!y||y.name!=="globe")return;const T=this.tileID.canonical,P=nn(We(T));this._makeGlobeTileDebugBorderBuffer(d,T,P),this._makeGlobeTileDebugTextBuffer(d,T,P)}_makeGlobeTileDebugBorderBuffer(d,y,T){const P=new cn,Y=new Mo,te=new pn,se=(xe,Pe,je,$e,ut)=>{const bt=(je-xe)/(ut-1),kt=($e-Pe)/(ut-1),zt=P.length;for(let Xt=0;Xt<ut;Xt++){const wn=xe+Xt*bt,Ln=Pe+Xt*kt;P.emplaceBack(wn,Ln);const hn=Tt(wn,Ln,y),Jt=id(hn,hn,T);te.emplaceBack(Jt[0],Jt[1],Jt[2]),Y.emplaceBack(zt+Xt)}},pe=za;se(0,0,pe,0,16),se(pe,0,pe,pe,16),se(pe,pe,0,pe,16),se(0,pe,0,0,16),this._tileDebugIndexBuffer=d.createIndexBuffer(Y),this._tileDebugBuffer=d.createVertexBuffer(P,L.members),this._globeTileDebugBorderBuffer=d.createVertexBuffer(te,C.members),this._tileDebugSegments=Qs.simpleSegment(0,0,P.length,Y.length)}_makeGlobeTileDebugTextBuffer(d,y,T){const P=new cn,Y=new Ii,te=new pn,se=25;Y.reserve(32),P.reserve(se),te.reserve(se);const pe=(xe,Pe)=>se*xe+Pe;for(let xe=0;xe<se;xe++){const Pe=2048*xe;for(let je=0;je<se;je++){const $e=2048*je;P.emplaceBack($e,Pe);const ut=Tt($e,Pe,y),bt=id(ut,ut,T);te.emplaceBack(bt[0],bt[1],bt[2])}}for(let xe=0;xe<4;xe++)for(let Pe=0;Pe<4;Pe++){const je=pe(xe,Pe),$e=pe(xe,Pe+1),ut=pe(xe+1,Pe),bt=pe(xe+1,Pe+1);Y.emplaceBack(je,$e,ut),Y.emplaceBack(ut,$e,bt)}this._tileDebugTextIndexBuffer=d.createIndexBuffer(Y),this._tileDebugTextBuffer=d.createVertexBuffer(P,L.members),this._globeTileDebugTextBuffer=d.createVertexBuffer(te,C.members),this._tileDebugTextSegments=Qs.simpleSegment(0,0,se,32)}}class Zr{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(d,y,T){const P=String(y);if(this.stateChanges[d]=this.stateChanges[d]||{},this.stateChanges[d][P]=this.stateChanges[d][P]||{},re(this.stateChanges[d][P],T),this.deletedStates[d]===null){this.deletedStates[d]={};for(const Y in this.state[d])Y!==P&&(this.deletedStates[d][Y]=null)}else if(this.deletedStates[d]&&this.deletedStates[d][P]===null){this.deletedStates[d][P]={};for(const Y in this.state[d][P])T[Y]||(this.deletedStates[d][P][Y]=null)}else for(const Y in T)this.deletedStates[d]&&this.deletedStates[d][P]&&this.deletedStates[d][P][Y]===null&&delete this.deletedStates[d][P][Y]}removeFeatureState(d,y,T){if(this.deletedStates[d]===null)return;const P=String(y);if(this.deletedStates[d]=this.deletedStates[d]||{},T&&y!==void 0)this.deletedStates[d][P]!==null&&(this.deletedStates[d][P]=this.deletedStates[d][P]||{},this.deletedStates[d][P][T]=null);else if(y!==void 0)if(this.stateChanges[d]&&this.stateChanges[d][P])for(T in this.deletedStates[d][P]={},this.stateChanges[d][P])this.deletedStates[d][P][T]=null;else this.deletedStates[d][P]=null;else this.deletedStates[d]=null}getState(d,y){const T=String(y),P=re({},(this.state[d]||{})[T],(this.stateChanges[d]||{})[T]);if(this.deletedStates[d]===null)return{};if(this.deletedStates[d]){const Y=this.deletedStates[d][y];if(Y===null)return{};for(const te in Y)delete P[te]}return P}initializeTileState(d,y){d.setFeatureState(this.state,y)}coalesceChanges(d,y){const T={};for(const P in this.stateChanges){this.state[P]=this.state[P]||{};const Y={};for(const te in this.stateChanges[P])this.state[P][te]||(this.state[P][te]={}),re(this.state[P][te],this.stateChanges[P][te]),Y[te]=this.state[P][te];T[P]=Y}for(const P in this.deletedStates){this.state[P]=this.state[P]||{};const Y={};if(this.deletedStates[P]===null)for(const te in this.state[P])Y[te]={},this.state[P][te]={};else for(const te in this.deletedStates[P]){if(this.deletedStates[P][te]===null)this.state[P][te]={};else for(const se of Object.keys(this.deletedStates[P][te]))delete this.state[P][te][se];Y[te]=this.state[P][te]}T[P]=T[P]||{},re(T[P],Y)}if(this.stateChanges={},this.deletedStates={},Object.keys(T).length!==0)for(const P in d)d[P].setFeatureState(T,y)}}class Ga{constructor(d){this.size=d,this.minimums=[],this.maximums=[],this.leaves=[]}getElevation(d,y){const T=this.toIdx(d,y);return{min:this.minimums[T],max:this.maximums[T]}}isLeaf(d,y){return this.leaves[this.toIdx(d,y)]}toIdx(d,y){return y*this.size+d}}function ia(m,d,y,T){let P=0,Y=Number.MAX_VALUE;for(let te=0;te<3;te++)if(Math.abs(T[te])<1e-15){if(y[te]<m[te]||y[te]>d[te])return null}else{const se=1/T[te];let pe=(m[te]-y[te])*se,xe=(d[te]-y[te])*se;if(pe>xe){const Pe=pe;pe=xe,xe=Pe}if(pe>P&&(P=pe),xe<Y&&(Y=xe),P>Y)return null}return P}function Tr(m,d,y,T,P,Y,te,se,pe,xe,Pe){const je=T-m,$e=P-d,ut=Y-y,bt=te-m,kt=se-d,zt=pe-y,Xt=Pe[1]*zt-Pe[2]*kt,wn=Pe[2]*bt-Pe[0]*zt,Ln=Pe[0]*kt-Pe[1]*bt,hn=je*Xt+$e*wn+ut*Ln;if(Math.abs(hn)<1e-15)return null;const Jt=1/hn,Nn=xe[0]-m,fr=xe[1]-d,wr=xe[2]-y,Rr=(Nn*Xt+fr*wn+wr*Ln)*Jt;if(Rr<0||Rr>1)return null;const $r=fr*ut-wr*$e,mr=wr*je-Nn*ut,Sr=Nn*$e-fr*je,Wr=(Pe[0]*$r+Pe[1]*mr+Pe[2]*Sr)*Jt;return Wr<0||Rr+Wr>1?null:(bt*$r+kt*mr+zt*Sr)*Jt}function la(m,d,y){return(m-d)/(y-d)}function qa(m,d,y,T,P,Y,te,se,pe){const xe=1<<y,Pe=Y-T,je=te-P,$e=(m+1)/xe*Pe+T,ut=(d+0)/xe*je+P,bt=(d+1)/xe*je+P;se[0]=(m+0)/xe*Pe+T,se[1]=ut,pe[0]=$e,pe[1]=bt}class lr{constructor(d){if(this.maximums=[],this.minimums=[],this.leaves=[],this.childOffsets=[],this.nodeCount=0,this.dem=d,this._siblingOffset=[[0,0],[1,0],[0,1],[1,1]],!this.dem)return;const y=function(Y){const te=Math.ceil(Math.log2(Y.dim/8)),se=[];let pe=Math.ceil(Math.pow(2,te));const xe=1/pe,Pe=(ut,bt,kt,zt,Xt)=>{const wn=zt?1:0,Ln=(ut+1)*kt-wn,hn=bt*kt,Jt=(bt+1)*kt-wn;Xt[0]=ut*kt,Xt[1]=hn,Xt[2]=Ln,Xt[3]=Jt};let je=new Ga(pe);const $e=[];for(let ut=0;ut<pe*pe;ut++){Pe(ut%pe,Math.floor(ut/pe),xe,!1,$e);const bt=$i($e[0],$e[1],Y),kt=$i($e[2],$e[1],Y),zt=$i($e[2],$e[3],Y),Xt=$i($e[0],$e[3],Y);je.minimums.push(Math.min(bt,kt,zt,Xt)),je.maximums.push(Math.max(bt,kt,zt,Xt)),je.leaves.push(1)}for(se.push(je),pe/=2;pe>=1;pe/=2){const ut=se[se.length-1];je=new Ga(pe);for(let bt=0;bt<pe*pe;bt++){Pe(bt%pe,Math.floor(bt/pe),2,!0,$e);const kt=ut.getElevation($e[0],$e[1]),zt=ut.getElevation($e[2],$e[1]),Xt=ut.getElevation($e[2],$e[3]),wn=ut.getElevation($e[0],$e[3]),Ln=ut.isLeaf($e[0],$e[1]),hn=ut.isLeaf($e[2],$e[1]),Jt=ut.isLeaf($e[2],$e[3]),Nn=ut.isLeaf($e[0],$e[3]),fr=Math.min(kt.min,zt.min,Xt.min,wn.min),wr=Math.max(kt.max,zt.max,Xt.max,wn.max),Rr=Ln&&hn&&Jt&&Nn;je.maximums.push(wr),je.minimums.push(fr),je.leaves.push(wr-fr<=5&&Rr?1:0)}se.push(je)}return se}(this.dem),T=y.length-1,P=y[T];this._addNode(P.minimums[0],P.maximums[0],P.leaves[0]),this._construct(y,0,0,T,0)}raycastRoot(d,y,T,P,Y,te,se=1){return ia([d,y,-100],[T,P,this.maximums[0]*se],Y,te)}raycast(d,y,T,P,Y,te,se=1){if(!this.nodeCount)return null;const pe=this.raycastRoot(d,y,T,P,Y,te,se);if(pe==null)return null;const xe=[],Pe=[],je=[],$e=[],ut=[{idx:0,t:pe,nodex:0,nodey:0,depth:0}];for(;ut.length>0;){const{idx:bt,t:kt,nodex:zt,nodey:Xt,depth:wn}=ut.pop();if(this.leaves[bt]){qa(zt,Xt,wn,d,y,T,P,je,$e);const hn=1<<wn,Jt=(zt+0)/hn,Nn=(zt+1)/hn,fr=(Xt+0)/hn,wr=(Xt+1)/hn,Rr=$i(Jt,fr,this.dem)*se,$r=$i(Nn,fr,this.dem)*se,mr=$i(Nn,wr,this.dem)*se,Sr=$i(Jt,wr,this.dem)*se,Wr=Tr(je[0],je[1],Rr,$e[0],je[1],$r,$e[0],$e[1],mr,Y,te),di=Tr($e[0],$e[1],mr,je[0],$e[1],Sr,je[0],je[1],Rr,Y,te),ri=Math.min(Wr!==null?Wr:Number.MAX_VALUE,di!==null?di:Number.MAX_VALUE);if(ri!==Number.MAX_VALUE)return ri;{const li=af([],Y,te,kt);if(Zi(Rr,$r,Sr,mr,la(li[0],je[0],$e[0]),la(li[1],je[1],$e[1]))>=li[2])return kt}continue}let Ln=0;for(let hn=0;hn<this._siblingOffset.length;hn++){qa((zt<<1)+this._siblingOffset[hn][0],(Xt<<1)+this._siblingOffset[hn][1],wn+1,d,y,T,P,je,$e),je[2]=-100,$e[2]=this.maximums[this.childOffsets[bt]+hn]*se;const Jt=ia(je,$e,Y,te);if(Jt!=null){const Nn=Jt;xe[hn]=Nn;let fr=!1;for(let wr=0;wr<Ln&&!fr;wr++)Nn>=xe[Pe[wr]]&&(Pe.splice(wr,0,hn),fr=!0);fr||(Pe[Ln]=hn),Ln++}}for(let hn=0;hn<Ln;hn++){const Jt=Pe[hn];ut.push({idx:this.childOffsets[bt]+Jt,t:xe[Jt],nodex:(zt<<1)+this._siblingOffset[Jt][0],nodey:(Xt<<1)+this._siblingOffset[Jt][1],depth:wn+1})}}return null}_addNode(d,y,T){return this.minimums.push(d),this.maximums.push(y),this.leaves.push(T),this.childOffsets.push(0),this.nodeCount++}_construct(d,y,T,P,Y){if(d[P].isLeaf(y,T)===1)return;this.childOffsets[Y]||(this.childOffsets[Y]=this.nodeCount);const te=P-1,se=d[te];let pe=0,xe=0;for(let Pe=0;Pe<this._siblingOffset.length;Pe++){const je=2*y+this._siblingOffset[Pe][0],$e=2*T+this._siblingOffset[Pe][1],ut=se.getElevation(je,$e),bt=se.isLeaf(je,$e),kt=this._addNode(ut.min,ut.max,bt);bt&&(pe|=1<<Pe),xe||(xe=kt)}for(let Pe=0;Pe<this._siblingOffset.length;Pe++)pe&1<<Pe||this._construct(d,2*y+this._siblingOffset[Pe][0],2*T+this._siblingOffset[Pe][1],te,xe+Pe)}}function Zi(m,d,y,T,P,Y){return Qe(Qe(m,y,Y),Qe(d,T,Y),P)}function $i(m,d,y){const T=y.dim,P=W(m*T-.5,0,T-1),Y=W(d*T-.5,0,T-1),te=Math.floor(P),se=Math.floor(Y),pe=Math.min(te+1,T-1),xe=Math.min(se+1,T-1);return Zi(y.get(te,se),y.get(pe,se),y.get(te,xe),y.get(pe,xe),P-te,Y-se)}const Ha={mapbox:[6553.6,25.6,.1,1e4],terrarium:[256,1,1/256,32768]};class Ei{get tree(){return this._tree||this._buildQuadTree(),this._tree}constructor(d,y,T,P=!1,Y=!1){if(this.uid=d,y.height!==y.width)throw new RangeError("DEM tiles must be square");if(T&&T!=="mapbox"&&T!=="terrarium")return De(`"${T}" is not a valid encoding type. Valid types include "mapbox" and "terrarium".`);this.stride=y.height;const te=this.dim=y.height-2,se=new Uint32Array(y.data.buffer);if(this.pixels=new Uint8Array(y.data.buffer),this.encoding=T||"mapbox",this.borderReady=P,!P){for(let pe=0;pe<te;pe++)se[this._idx(-1,pe)]=se[this._idx(0,pe)],se[this._idx(te,pe)]=se[this._idx(te-1,pe)],se[this._idx(pe,-1)]=se[this._idx(pe,0)],se[this._idx(pe,te)]=se[this._idx(pe,te-1)];se[this._idx(-1,-1)]=se[this._idx(0,0)],se[this._idx(te,-1)]=se[this._idx(te-1,0)],se[this._idx(-1,te)]=se[this._idx(0,te-1)],se[this._idx(te,te)]=se[this._idx(te-1,te-1)],Y&&this._buildQuadTree()}}_buildQuadTree(){this._tree=new lr(this)}get(d,y,T=!1){T&&(d=W(d,-1,this.dim),y=W(y,-1,this.dim));const P=4*this._idx(d,y);return(this.encoding==="terrarium"?this._unpackTerrarium:this._unpackMapbox)(this.pixels[P],this.pixels[P+1],this.pixels[P+2])}static getUnpackVector(d){return Ha[d]}get unpackVector(){return Ha[this.encoding]}_idx(d,y){if(d<-1||d>=this.dim+1||y<-1||y>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(y+1)*this.stride+(d+1)}_unpackMapbox(d,y,T){return(256*d*256+256*y+T)/10-1e4}_unpackTerrarium(d,y,T){return 256*d+y+T/256-32768}static pack(d,y){const T=[0,0,0,0],P=Ei.getUnpackVector(y);let Y=Math.floor((d+P[3])/P[2]);return T[2]=Y%256,Y=Math.floor(Y/256),T[1]=Y%256,Y=Math.floor(Y/256),T[0]=Y,T}getPixels(){return new nu({width:this.stride,height:this.stride},this.pixels)}backfillBorder(d,y,T){if(this.dim!==d.dim)throw new Error("dem dimension mismatch");let P=y*this.dim,Y=y*this.dim+this.dim,te=T*this.dim,se=T*this.dim+this.dim;switch(y){case-1:P=Y-1;break;case 1:Y=P+1}switch(T){case-1:te=se-1;break;case 1:se=te+1}const pe=-y*this.dim,xe=-T*this.dim;for(let Pe=te;Pe<se;Pe++)for(let je=P;je<Y;je++){const $e=4*this._idx(je,Pe),ut=4*this._idx(je+pe,Pe+xe);this.pixels[$e+0]=d.pixels[ut+0],this.pixels[$e+1]=d.pixels[ut+1],this.pixels[$e+2]=d.pixels[ut+2],this.pixels[$e+3]=d.pixels[ut+3]}}onDeserialize(){this._tree&&(this._tree.dem=this)}}Si(Ei,"DEMData"),Si(lr,"DemMinMaxQuadTree",{omit:["dem"]});class mo{constructor(d,y){this.max=d,this.onRemove=y,this.reset()}reset(){for(const d in this.data)for(const y of this.data[d])y.timeout&&clearTimeout(y.timeout),this.onRemove(y.value);return this.data={},this.order=[],this}add(d,y,T){const P=d.wrapped().key;this.data[P]===void 0&&(this.data[P]=[]);const Y={value:y,timeout:void 0};if(T!==void 0&&(Y.timeout=setTimeout(()=>{this.remove(d,Y)},T)),this.data[P].push(Y),this.order.push(P),this.order.length>this.max){const te=this._getAndRemoveByKey(this.order[0]);te&&this.onRemove(te)}return this}has(d){return d.wrapped().key in this.data}getAndRemove(d){return this.has(d)?this._getAndRemoveByKey(d.wrapped().key):null}_getAndRemoveByKey(d){const y=this.data[d].shift();return y.timeout&&clearTimeout(y.timeout),this.data[d].length===0&&delete this.data[d],this.order.splice(this.order.indexOf(d),1),y.value}getByKey(d){const y=this.data[d];return y?y[0].value:null}get(d){return this.has(d)?this.data[d.wrapped().key][0].value:null}remove(d,y){if(!this.has(d))return this;const T=d.wrapped().key,P=y===void 0?0:this.data[T].indexOf(y),Y=this.data[T][P];return this.data[T].splice(P,1),Y.timeout&&clearTimeout(Y.timeout),this.data[T].length===0&&delete this.data[T],this.onRemove(Y.value),this.order.splice(this.order.indexOf(T),1),this}setMaxSize(d){for(this.max=d;this.order.length>this.max;){const y=this._getAndRemoveByKey(this.order[0]);y&&this.onRemove(y)}return this}filter(d){const y=[];for(const T in this.data)for(const P of this.data[T])d(P.value)||y.push(P);for(const T of y)this.remove(T.value.tileID,T)}}class go{constructor(d,y,T){this.func=d,this.mask=y,this.range=T}}go.ReadOnly=!1,go.ReadWrite=!0,go.disabled=new go(519,go.ReadOnly,[0,1]);const Bs=7680;class Pu{constructor(d,y,T,P,Y,te){this.test=d,this.ref=y,this.mask=T,this.fail=P,this.depthFail=Y,this.pass=te}}Pu.disabled=new Pu({func:519,mask:0},0,0,Bs,Bs,Bs);class uo{constructor(d,y,T){this.blendFunction=d,this.blendColor=y,this.mask=T}}uo.Replace=[1,0],uo.disabled=new uo(uo.Replace,bn.transparent,[!1,!1,!1,!1]),uo.unblended=new uo(uo.Replace,bn.transparent,[!0,!0,!0,!0]),uo.alphaBlended=new uo([1,771],bn.transparent,[!0,!0,!0,!0]);const tl=1029,To=2305;class Fo{constructor(d,y,T){this.enable=d,this.mode=y,this.frontFace=T}}Fo.disabled=new Fo(!1,tl,To),Fo.backCCW=new Fo(!0,tl,To),Fo.backCW=new Fo(!0,tl,2304),Fo.frontCW=new Fo(!0,1028,2304),Fo.frontCCW=new Fo(!0,1028,To);class ls extends Li{constructor(d,y,T){super(),this.id=d,this._onlySymbols=T,y.on("data",P=>{P.dataType==="source"&&P.sourceDataType==="metadata"&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&P.dataType==="source"&&P.sourceDataType==="content"&&(this.reload(),this.transform&&this.update(this.transform))}),y.on("error",()=>{this._sourceErrored=!0}),this._source=y,this._tiles={},this._cache=new mo(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._minTileCacheSize=y.minTileCacheSize,this._maxTileCacheSize=y.maxTileCacheSize,this._loadedParentTiles={},this._coveredTiles={},this._state=new Zr,this._isRaster=this._source.type==="raster"||this._source.type==="raster-dem"||this._source.type==="custom"&&this._source._dataType==="raster"}onAdd(d){this.map=d,this._minTileCacheSize=this._minTileCacheSize===void 0&&d?d._minTileCacheSize:this._minTileCacheSize,this._maxTileCacheSize=this._maxTileCacheSize===void 0&&d?d._maxTileCacheSize:this._maxTileCacheSize}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;for(const d in this._tiles){const y=this._tiles[d];if(y.state!=="loaded"&&y.state!=="errored")return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;const d=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,d&&this.reload(),this.transform&&this.update(this.transform)}_loadTile(d,y){return d.isSymbolTile=this._onlySymbols,this._source.loadTile(d,y)}_unloadTile(d){if(this._source.unloadTile)return this._source.unloadTile(d,()=>{})}_abortTile(d){if(this._source.abortTile)return this._source.abortTile(d,()=>{})}serialize(){return this._source.serialize()}prepare(d){if(this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null),this._source.prepareTile)for(const y in this._tiles){const T=this._tiles[y];this._source.prepareTile(T)&&this.map.painter.terrain&&this.map.painter.terrain._clearRenderCacheForTile(this.id,T.tileID),T.upload(d),T.prepare(this.map.style.imageManager)}else for(const y in this._tiles){const T=this._tiles[y];T.upload(d),T.prepare(this.map.style.imageManager)}}getIds(){return F(this._tiles).map(d=>d.tileID).sort(Ll).map(d=>d.key)}getRenderableIds(d){const y=[];for(const T in this._tiles)this._isIdRenderable(+T,d)&&y.push(this._tiles[T]);return d?y.sort((T,P)=>{const Y=T.tileID,te=P.tileID,se=new _(Y.canonical.x,Y.canonical.y)._rotate(this.transform.angle),pe=new _(te.canonical.x,te.canonical.y)._rotate(this.transform.angle);return Y.overscaledZ-te.overscaledZ||pe.y-se.y||pe.x-se.x}).map(T=>T.tileID.key):y.map(T=>T.tileID).sort(Ll).map(T=>T.key)}hasRenderableParent(d){const y=this.findLoadedParent(d,0);return!!y&&this._isIdRenderable(y.tileID.key)}_isIdRenderable(d,y){return this._tiles[d]&&this._tiles[d].hasData()&&!this._coveredTiles[d]&&(y||!this._tiles[d].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(const d in this._tiles)this._tiles[d].state!=="errored"&&this._reloadTile(+d,"reloading")}}_reloadTile(d,y){const T=this._tiles[d];T&&(T.state!=="loading"&&(T.state=y),this._loadTile(T,this._tileLoaded.bind(this,T,d,y)))}_tileLoaded(d,y,T,P){if(P)if(d.state="errored",P.status!==404)this._source.fire(new mi(P,{tile:d}));else if(this._source.type==="raster-dem"&&this.usedForTerrain&&this.map.painter.terrain){const Y=this.map.painter.terrain;this.update(this.transform,Y.getScaledDemTileSize(),!0),Y.resetTileLookupCache(this.id)}else this.update(this.transform);else d.timeAdded=vt.now(),T==="expired"&&(d.refreshedUponExpiration=!0),this._setTileReloadTimer(y,d),this._source.type==="raster-dem"&&d.dem&&this._backfillDEM(d),this._state.initializeTileState(d,this.map?this.map.painter:null),this._source.fire(new Ti("data",{dataType:"source",tile:d,coord:d.tileID,sourceCacheId:this.id}))}_backfillDEM(d){const y=this.getRenderableIds();for(let P=0;P<y.length;P++){const Y=y[P];if(d.neighboringTiles&&d.neighboringTiles[Y]){const te=this.getTileByID(Y);T(d,te),T(te,d)}}function T(P,Y){if(!P.dem||P.dem.borderReady)return;P.needsHillshadePrepare=!0,P.needsDEMTextureUpload=!0;let te=Y.tileID.canonical.x-P.tileID.canonical.x;const se=Y.tileID.canonical.y-P.tileID.canonical.y,pe=Math.pow(2,P.tileID.canonical.z),xe=Y.tileID.key;te===0&&se===0||Math.abs(se)>1||(Math.abs(te)>1&&(Math.abs(te+pe)===1?te+=pe:Math.abs(te-pe)===1&&(te-=pe)),Y.dem&&P.dem&&(P.dem.backfillBorder(Y.dem,te,se),P.neighboringTiles&&P.neighboringTiles[xe]&&(P.neighboringTiles[xe].backfilled=!0)))}}getTile(d){return this.getTileByID(d.key)}getTileByID(d){return this._tiles[d]}_retainLoadedChildren(d,y,T,P){for(const Y in this._tiles){let te=this._tiles[Y];if(P[Y]||!te.hasData()||te.tileID.overscaledZ<=y||te.tileID.overscaledZ>T)continue;let se=te.tileID;for(;te&&te.tileID.overscaledZ>y+1;){const xe=te.tileID.scaledTo(te.tileID.overscaledZ-1);te=this._tiles[xe.key],te&&te.hasData()&&(se=xe)}let pe=se;for(;pe.overscaledZ>y;)if(pe=pe.scaledTo(pe.overscaledZ-1),d[pe.key]){P[se.key]=se;break}}}findLoadedParent(d,y){if(d.key in this._loadedParentTiles){const T=this._loadedParentTiles[d.key];return T&&T.tileID.overscaledZ>=y?T:null}for(let T=d.overscaledZ-1;T>=y;T--){const P=d.scaledTo(T),Y=this._getLoadedTile(P);if(Y)return Y}}_getLoadedTile(d){const y=this._tiles[d.key];return y&&y.hasData()?y:this._cache.getByKey(this._source.reparseOverscaled?d.wrapped().key:d.canonical.key)}updateCacheSize(d,y){y=y||this._source.tileSize;const T=Math.ceil(d.width/y)+1,P=Math.ceil(d.height/y)+1,Y=Math.floor(T*P*5),te=typeof this._minTileCacheSize=="number"?Math.max(this._minTileCacheSize,Y):Y,se=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,te):te;this._cache.setMaxSize(se)}handleWrapJump(d){const y=Math.round((d-(this._prevLng===void 0?d:this._prevLng))/360);if(this._prevLng=d,y){const T={};for(const P in this._tiles){const Y=this._tiles[P];Y.tileID=Y.tileID.unwrapTo(Y.tileID.wrap+y),T[Y.tileID.key]=Y}this._tiles=T;for(const P in this._timers)clearTimeout(this._timers[P]),delete this._timers[P];for(const P in this._tiles)this._setTileReloadTimer(+P,this._tiles[P])}}update(d,y,T){if(this.transform=d,!this._sourceLoaded||this._paused||this.transform.freezeTileCoverage||this.usedForTerrain&&!T)return;let P;this.updateCacheSize(d,y),this.transform.projection.name!=="globe"&&this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?P=d.getVisibleUnwrappedCoordinates(this._source.tileID).map(se=>new _r(se.canonical.z,se.wrap,se.canonical.z,se.canonical.x,se.canonical.y)):(P=d.coveringTiles({tileSize:y||this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom&&!T,reparseOverscaled:this._source.reparseOverscaled,isTerrainDEM:this.usedForTerrain}),this._source.hasTile&&(P=P.filter(se=>this._source.hasTile(se)))):P=[];const Y=this._updateRetainedTiles(P);if(us(this._source.type)&&P.length!==0){const se={},pe={},xe=Object.keys(Y);for(const je of xe){const $e=Y[je],ut=this._tiles[je];if(!ut||ut.fadeEndTime&&ut.fadeEndTime<=vt.now())continue;const bt=this.findLoadedParent($e,Math.max($e.overscaledZ-ls.maxOverzooming,this._source.minzoom));bt&&(this._addTile(bt.tileID),se[bt.tileID.key]=bt.tileID),pe[je]=$e}const Pe=P[P.length-1].overscaledZ;for(const je in this._tiles){const $e=this._tiles[je];if(Y[je]||!$e.hasData())continue;let ut=$e.tileID;for(;ut.overscaledZ>Pe;){ut=ut.scaledTo(ut.overscaledZ-1);const bt=this._tiles[ut.key];if(bt&&bt.hasData()&&pe[ut.key]){Y[je]=$e.tileID;break}}}for(const je in se)Y[je]||(this._coveredTiles[je]=!0,Y[je]=se[je])}for(const se in Y)this._tiles[se].clearFadeHold();const te=function(se,pe){const xe=[];for(const Pe in se)Pe in pe||xe.push(Pe);return xe}(this._tiles,Y);for(const se of te){const pe=this._tiles[se];pe.hasSymbolBuckets&&!pe.holdingForFade()?pe.setHoldDuration(this.map._fadeDuration):pe.hasSymbolBuckets&&!pe.symbolFadeFinished()||this._removeTile(+se)}this._updateLoadedParentTileCache(),this._onlySymbols&&this._source.afterUpdate&&this._source.afterUpdate()}releaseSymbolFadeTiles(){for(const d in this._tiles)this._tiles[d].holdingForFade()&&this._removeTile(+d)}_updateRetainedTiles(d){const y={};if(d.length===0)return y;const T={},P=d.reduce((xe,Pe)=>Math.min(xe,Pe.overscaledZ),1/0),Y=d[0].overscaledZ,te=Math.max(Y-ls.maxOverzooming,this._source.minzoom),se=Math.max(Y+ls.maxUnderzooming,this._source.minzoom),pe={};for(const xe of d){const Pe=this._addTile(xe);y[xe.key]=xe,Pe.hasData()||P<this._source.maxzoom&&(pe[xe.key]=xe)}this._retainLoadedChildren(pe,P,se,y);for(const xe of d){let Pe=this._tiles[xe.key];if(Pe.hasData())continue;if(xe.canonical.z>=this._source.maxzoom){const $e=xe.children(this._source.maxzoom)[0],ut=this.getTile($e);if(ut&&ut.hasData()){y[$e.key]=$e;continue}}else{const $e=xe.children(this._source.maxzoom);if(y[$e[0].key]&&y[$e[1].key]&&y[$e[2].key]&&y[$e[3].key])continue}let je=Pe.wasRequested();for(let $e=xe.overscaledZ-1;$e>=te;--$e){const ut=xe.scaledTo($e);if(T[ut.key]||(T[ut.key]=!0,Pe=this.getTile(ut),!Pe&&je&&(Pe=this._addTile(ut)),Pe&&(y[ut.key]=ut,je=Pe.wasRequested(),Pe.hasData())))break}}return y}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(const d in this._tiles){const y=[];let T,P=this._tiles[d].tileID;for(;P.overscaledZ>0;){if(P.key in this._loadedParentTiles){T=this._loadedParentTiles[P.key];break}y.push(P.key);const Y=P.scaledTo(P.overscaledZ-1);if(T=this._getLoadedTile(Y),T)break;P=Y}for(const Y of y)this._loadedParentTiles[Y]=T}}_addTile(d){let y=this._tiles[d.key];if(y)return this._source.prepareTile&&this._source.prepareTile(y),y;y=this._cache.getAndRemove(d),y&&(this._setTileReloadTimer(d.key,y),y.tileID=d,this._state.initializeTileState(y,this.map?this.map.painter:null),this._cacheTimers[d.key]&&(clearTimeout(this._cacheTimers[d.key]),delete this._cacheTimers[d.key],this._setTileReloadTimer(d.key,y)));const T=Boolean(y);if(!T){const P=this.map?this.map.painter:null;y=new ai(d,this._source.tileSize*d.overscaleFactor(),this.transform.tileZoom,P,this._isRaster),this._source.prepareTile&&this._source.prepareTile(y)||this._loadTile(y,this._tileLoaded.bind(this,y,d.key,y.state))}return y?(y.uses++,this._tiles[d.key]=y,T||this._source.fire(new Ti("dataloading",{tile:y,coord:y.tileID,dataType:"source"})),y):null}_setTileReloadTimer(d,y){d in this._timers&&(clearTimeout(this._timers[d]),delete this._timers[d]);const T=y.getExpiryTimeout();T&&(this._timers[d]=setTimeout(()=>{this._reloadTile(d,"expired"),delete this._timers[d]},T))}_removeTile(d){const y=this._tiles[d];y&&(y.uses--,delete this._tiles[d],this._timers[d]&&(clearTimeout(this._timers[d]),delete this._timers[d]),y.uses>0||(y.hasData()&&y.state!=="reloading"?this._cache.add(y.tileID,y,y.getExpiryTimeout()):(y.aborted=!0,this._abortTile(y),this._unloadTile(y))))}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(const d in this._tiles)this._removeTile(+d);this._source._clear&&this._source._clear(),this._cache.reset(),this.map&&this.usedForTerrain&&this.map.painter.terrain&&this.map.painter.terrain.resetTileLookupCache(this.id)}tilesIn(d,y,T){const P=[],Y=this.transform;if(!Y)return P;for(const te in this._tiles){const se=this._tiles[te];if(T&&se.clearQueryDebugViz(),se.holdingForFade())continue;const pe=d.containsTile(se,Y,y);pe&&P.push(pe)}return P}getVisibleCoordinates(d){const y=this.getRenderableIds(d).map(T=>this._tiles[T].tileID);for(const T of y)T.projMatrix=this.transform.calculateProjMatrix(T.toUnwrapped());return y}hasTransition(){if(this._source.hasTransition())return!0;if(us(this._source.type))for(const d in this._tiles){const y=this._tiles[d];if(y.fadeEndTime!==void 0&&y.fadeEndTime>=vt.now())return!0}return!1}setFeatureState(d,y,T){this._state.updateState(d=d||"_geojsonTileLayer",y,T)}removeFeatureState(d,y,T){this._state.removeFeatureState(d=d||"_geojsonTileLayer",y,T)}getFeatureState(d,y){return this._state.getState(d=d||"_geojsonTileLayer",y)}setDependencies(d,y,T){const P=this._tiles[d];P&&P.setDependencies(y,T)}reloadTilesForDependencies(d,y){for(const T in this._tiles)this._tiles[T].hasDependency(d,y)&&this._reloadTile(+T,"reloading");this._cache.filter(T=>!T.hasDependency(d,y))}_preloadTiles(d,y){const T=new Map,P=Array.isArray(d)?d:[d],Y=this.map.painter.terrain,te=this.usedForTerrain&&Y?Y.getScaledDemTileSize():this._source.tileSize;for(const se of P){const pe=se.coveringTiles({tileSize:te,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom&&!this.usedForTerrain,reparseOverscaled:this._source.reparseOverscaled,isTerrainDEM:this.usedForTerrain});for(const xe of pe)T.set(xe.key,xe);this.usedForTerrain&&se.updateElevation(!1)}D(Array.from(T.values()),(se,pe)=>{const xe=new ai(se,this._source.tileSize*se.overscaleFactor(),this.transform.tileZoom,this.map.painter,this._isRaster);this._loadTile(xe,Pe=>{this._source.type==="raster-dem"&&xe.dem&&this._backfillDEM(xe),pe(Pe,xe)})},y)}}function Ll(m,d){const y=Math.abs(2*m.wrap)-+(m.wrap<0),T=Math.abs(2*d.wrap)-+(d.wrap<0);return m.overscaledZ-d.overscaledZ||T-y||d.canonical.y-m.canonical.y||d.canonical.x-m.canonical.x}function us(m){return m==="raster"||m==="image"||m==="video"}ls.maxOverzooming=10,ls.maxUnderzooming=3;class ml{constructor(d,y,T){this._demTile=d,this._dem=this._demTile.dem,this._scale=y,this._offset=T}static create(d,y,T){const P=T||d.findDEMTileFor(y);if(!P||!P.dem)return;const Y=P.dem,te=P.tileID,se=1<<y.canonical.z-te.canonical.z;return new ml(P,P.tileSize/za/se,[(y.canonical.x/se-te.canonical.x)*Y.dim,(y.canonical.y/se-te.canonical.y)*Y.dim])}tileCoordToPixel(d,y){const T=y*this._scale+this._offset[1],P=Math.floor(d*this._scale+this._offset[0]),Y=Math.floor(T);return new _(P,Y)}getElevationAt(d,y,T,P){const Y=d*this._scale+this._offset[0],te=y*this._scale+this._offset[1],se=Math.floor(Y),pe=Math.floor(te),xe=this._dem;return P=!!P,T?Qe(Qe(xe.get(se,pe,P),xe.get(se,pe+1,P),te-pe),Qe(xe.get(se+1,pe,P),xe.get(se+1,pe+1,P),te-pe),Y-se):xe.get(se,pe,P)}getElevationAtPixel(d,y,T){return this._dem.get(d,y,!!T)}getMeterToDEM(d){return(1<<this._demTile.tileID.canonical.z)*Cd(1,d)*this._dem.stride}}class Ru{constructor(d,y){this.tileID=d,this.x=d.canonical.x,this.y=d.canonical.y,this.z=d.canonical.z,this.grid=new ec(za,16,0),this.featureIndexArray=new ps,this.promoteId=y}insert(d,y,T,P,Y,te=0){const se=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(T,P,Y,te);const pe=this.grid;for(let xe=0;xe<y.length;xe++){const Pe=y[xe],je=[1/0,1/0,-1/0,-1/0];for(let $e=0;$e<Pe.length;$e++){const ut=Pe[$e];je[0]=Math.min(je[0],ut.x),je[1]=Math.min(je[1],ut.y),je[2]=Math.max(je[2],ut.x),je[3]=Math.max(je[3],ut.y)}je[0]<za&&je[1]<za&&je[2]>=0&&je[3]>=0&&pe.insert(se,je[0],je[1],je[2],je[3])}}loadVTLayers(){if(!this.vtLayers){this.vtLayers=new Nc.VectorTile(new Rd(this.rawTileData)).layers,this.sourceLayerCoder=new si(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"]),this.vtFeatures={};for(const d in this.vtLayers)this.vtFeatures[d]=[]}return this.vtLayers}query(d,y,T,P){this.loadVTLayers();const Y=d.params||{},te=Gi(Y.filter),se=d.tileResult,pe=d.transform,xe=se.bufferedTilespaceBounds,Pe=this.grid.query(xe.min.x,xe.min.y,xe.max.x,xe.max.y,(bt,kt,zt,Xt)=>Ws(se.bufferedTilespaceGeometry,bt,kt,zt,Xt));Pe.sort(Od);let je=null;pe.elevation&&Pe.length>0&&(je=ml.create(pe.elevation,this.tileID));const $e={};let ut;for(let bt=0;bt<Pe.length;bt++){const kt=Pe[bt];if(kt===ut)continue;ut=kt;const zt=this.featureIndexArray.get(kt);let Xt=null;this.loadMatchingFeature($e,zt,te,Y.layers,Y.availableImages,y,T,P,(wn,Ln,hn,Jt=0)=>(Xt||(Xt=vl(wn,this.tileID.canonical,d.tileTransform)),Ln.queryIntersectsFeature(se,wn,hn,Xt,this.z,d.transform,d.pixelPosMatrix,je,Jt)))}return $e}loadMatchingFeature(d,y,T,P,Y,te,se,pe,xe){const{featureIndex:Pe,bucketIndex:je,sourceLayerIndex:$e,layoutVertexArrayOffset:ut}=y,bt=this.bucketLayerIDs[je];if(P&&!function(wn,Ln){for(let hn=0;hn<wn.length;hn++)if(Ln.indexOf(wn[hn])>=0)return!0;return!1}(P,bt))return;const kt=this.sourceLayerCoder.decode($e),zt=this.vtLayers[kt].feature(Pe);if(T.needGeometry){const wn=Ic(zt,!0);if(!T.filter(new Ro(this.tileID.overscaledZ),wn,this.tileID.canonical))return}else if(!T.filter(new Ro(this.tileID.overscaledZ),zt))return;const Xt=this.getId(zt,kt);for(let wn=0;wn<bt.length;wn++){const Ln=bt[wn];if(P&&P.indexOf(Ln)<0)continue;const hn=te[Ln];if(!hn)continue;let Jt={};Xt!==void 0&&pe&&(Jt=pe.getState(hn.sourceLayer||"_geojsonTileLayer",Xt));const Nn=re({},se[Ln]);Nn.paint=qu(Nn.paint,hn.paint,zt,Jt,Y),Nn.layout=qu(Nn.layout,hn.layout,zt,Jt,Y);const fr=!xe||xe(zt,hn,Jt,ut);if(!fr)continue;const wr=new vr(zt,this.z,this.x,this.y,Xt);wr.layer=Nn;let Rr=d[Ln];Rr===void 0&&(Rr=d[Ln]=[]),Rr.push({featureIndex:Pe,feature:wr,intersectionZ:fr})}}lookupSymbolFeatures(d,y,T,P,Y,te,se,pe){const xe={};this.loadVTLayers();const Pe=Gi(Y);for(const je of d)this.loadMatchingFeature(xe,{bucketIndex:T,sourceLayerIndex:P,featureIndex:je,layoutVertexArrayOffset:0},Pe,te,se,pe,y);return xe}loadFeature(d){const{featureIndex:y,sourceLayerIndex:T}=d;this.loadVTLayers();const P=this.sourceLayerCoder.decode(T),Y=this.vtFeatures[P];if(Y[y])return Y[y];const te=this.vtLayers[P].feature(y);return Y[y]=te,te}hasLayer(d){for(const y of this.bucketLayerIDs)for(const T of y)if(d===T)return!0;return!1}getId(d,y){let T=d.id;return this.promoteId&&(T=d.properties[typeof this.promoteId=="string"?this.promoteId:this.promoteId[y]],typeof T=="boolean"&&(T=Number(T))),T}}function qu(m,d,y,T,P){return et(m,(Y,te)=>{const se=d instanceof he?d.get(te):null;return se&&se.evaluate?se.evaluate(y,T,P):se})}function Od(m,d){return d-m}Si(Ru,"FeatureIndex",{omit:["rawTileData","sourceLayerCoder"]});class Fd{constructor(d){const y={},T=[];for(const se in d){const pe=d[se],xe=y[se]={};for(const Pe in pe.glyphs){const je=pe.glyphs[+Pe];if(!je||je.bitmap.width===0||je.bitmap.height===0)continue;const $e=je.metrics.localGlyph?2:1,ut={x:0,y:0,w:je.bitmap.width+2*$e,h:je.bitmap.height+2*$e};T.push(ut),xe[Pe]=ut}}const{w:P,h:Y}=pf(T),te=new mu({width:P||1,height:Y||1});for(const se in d){const pe=d[se];for(const xe in pe.glyphs){const Pe=pe.glyphs[+xe];if(!Pe||Pe.bitmap.width===0||Pe.bitmap.height===0)continue;const je=y[se][xe],$e=Pe.metrics.localGlyph?2:1;mu.copy(Pe.bitmap,te,{x:0,y:0},{x:je.x+$e,y:je.y+$e},Pe.bitmap)}}this.image=te,this.positions=y}}Si(Fd,"GlyphAtlas");class qp{constructor(d){this.tileID=new _r(d.tileID.overscaledZ,d.tileID.wrap,d.tileID.canonical.z,d.tileID.canonical.x,d.tileID.canonical.y),this.tileZoom=d.tileZoom,this.uid=d.uid,this.zoom=d.zoom,this.canonical=d.tileID.canonical,this.pixelRatio=d.pixelRatio,this.tileSize=d.tileSize,this.source=d.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=d.showCollisionBoxes,this.collectResourceTiming=!!d.collectResourceTiming,this.returnDependencies=!!d.returnDependencies,this.promoteId=d.promoteId,this.enableTerrain=!!d.enableTerrain,this.isSymbolTile=d.isSymbolTile,this.tileTransform=Vr(d.tileID.canonical,d.projection),this.projection=d.projection}parse(d,y,T,P,Y){this.status="parsing",this.data=d,this.collisionBoxArray=new mc;const te=new si(Object.keys(d.layers).sort()),se=new Ru(this.tileID,this.promoteId);se.bucketLayerIDs=[];const pe={},xe=new im(256,256),Pe={featureIndex:se,iconDependencies:{},patternDependencies:{},glyphDependencies:{},lineAtlas:xe,availableImages:T},je=y.familiesBySource[this.source];for(const Jt in je){const Nn=d.layers[Jt];if(!Nn)continue;let fr=!1,wr=!1;for(const mr of je[Jt])mr[0].type==="symbol"?fr=!0:wr=!0;if(this.isSymbolTile===!0&&!fr||this.isSymbolTile===!1&&!wr)continue;Nn.version===1&&De(`Vector tile source "${this.source}" layer "${Jt}" does not use vector tile spec v2 and therefore may have some rendering errors.`);const Rr=te.encode(Jt),$r=[];for(let mr=0;mr<Nn.length;mr++){const Sr=Nn.feature(mr),Wr=se.getId(Sr,Jt);$r.push({feature:Sr,id:Wr,index:mr,sourceLayerIndex:Rr})}for(const mr of je[Jt]){const Sr=mr[0];this.isSymbolTile!==void 0&&Sr.type==="symbol"!==this.isSymbolTile||Sr.minzoom&&this.zoom<Math.floor(Sr.minzoom)||Sr.maxzoom&&this.zoom>=Sr.maxzoom||Sr.visibility!=="none"&&(Df(mr,this.zoom,T),(pe[Sr.id]=Sr.createBucket({index:se.bucketLayerIDs.length,layers:mr,zoom:this.zoom,canonical:this.canonical,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Rr,sourceID:this.source,enableTerrain:this.enableTerrain,projection:this.projection.name,availableImages:T})).populate($r,Pe,this.tileID.canonical,this.tileTransform),se.bucketLayerIDs.push(mr.map(Wr=>Wr.id)))}}let $e,ut,bt,kt;xe.trim();const zt={type:"maybePrepare",isSymbolTile:this.isSymbolTile,zoom:this.zoom},Xt=et(Pe.glyphDependencies,Jt=>Object.keys(Jt).map(Number));Object.keys(Xt).length?P.send("getGlyphs",{uid:this.uid,stacks:Xt},(Jt,Nn)=>{$e||($e=Jt,ut=Nn,hn.call(this))},void 0,!1,zt):ut={};const wn=Object.keys(Pe.iconDependencies);wn.length?P.send("getImages",{icons:wn,source:this.source,tileID:this.tileID,type:"icons"},(Jt,Nn)=>{$e||($e=Jt,bt=Nn,hn.call(this))},void 0,!1,zt):bt={};const Ln=Object.keys(Pe.patternDependencies);function hn(){if($e)return Y($e);if(ut&&bt&&kt){const Jt=new Fd(ut),Nn=new gm(bt,kt);for(const fr in pe){const wr=pe[fr];wr instanceof jc?(Df(wr.layers,this.zoom,T),Hp(wr,ut,Jt.positions,bt,Nn.iconPositions,this.showCollisionBoxes,T,this.tileID.canonical,this.tileZoom,this.projection)):wr.hasPattern&&(wr instanceof uf||wr instanceof Ui||wr instanceof zc)&&(Df(wr.layers,this.zoom,T),wr.addFeatures(Pe,this.tileID.canonical,Nn.patternPositions,T,this.tileTransform))}this.status="done",Y(null,{buckets:F(pe).filter(fr=>!fr.isEmpty()),featureIndex:se,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Jt.image,lineAtlas:xe,imageAtlas:Nn,glyphMap:this.returnDependencies?ut:null,iconMap:this.returnDependencies?bt:null,glyphPositions:this.returnDependencies?Jt.positions:null})}}Ln.length?P.send("getImages",{icons:Ln,source:this.source,tileID:this.tileID,type:"patterns"},(Jt,Nn)=>{$e||($e=Jt,kt=Nn,hn.call(this))},void 0,!1,zt):kt={},hn.call(this)}}function Df(m,d,y){const T=new Ro(d);for(const P of m)P.recalculate(T,y)}class Tp{constructor(d){this.entries={},this.scheduler=d}request(d,y,T,P){const Y=this.entries[d]=this.entries[d]||{callbacks:[]};if(Y.result){const[te,se]=Y.result;return this.scheduler?this.scheduler.add(()=>{P(te,se)},y):P(te,se),()=>{}}return Y.callbacks.push(P),Y.cancel||(Y.cancel=T((te,se)=>{Y.result=[te,se];for(const pe of Y.callbacks)this.scheduler?this.scheduler.add(()=>{pe(te,se)},y):pe(te,se);setTimeout(()=>delete this.entries[d],3e3)})),()=>{Y.result||(Y.callbacks=Y.callbacks.filter(te=>te!==P),Y.callbacks.length||(Y.cancel(),delete this.entries[d]))}}}function Qh(m,d,y){const T=JSON.stringify(m.request);return m.data&&(this.deduped.entries[T]={result:[null,m.data]}),this.deduped.request(T,{type:"parseTile",isSymbolTile:m.isSymbolTile,zoom:m.tileZoom},P=>{const Y=Qt(m.request,(te,se,pe,xe)=>{te?P(te):se&&P(null,{vectorTile:y?void 0:new Nc.VectorTile(new Rd(se)),rawData:se,cacheControl:pe,expires:xe})});return()=>{Y.cancel(),P()}},d)}const Dp=Lc(new Float32Array(16));class xc{constructor(d){this.name=d.name,this.wrap=!1,this.requiresDraping=!1,this.supportsWorldCopies=!1,this.supportsTerrain=!1,this.supportsFog=!1,this.supportsFreeCamera=!1,this.zAxisUnit="meters",this.isReprojectedInTileSpace=!0,this.unsupportedLayers=["custom"],this.center=[0,0],this.range=[3.5,7]}project(d,y){return{x:0,y:0,z:0}}unproject(d,y){return new Go(0,0)}projectTilePoint(d,y,T){return{x:d,y,z:0}}locationPoint(d,y){return d._coordinatePoint(d.locationCoordinate(y),!1)}pixelsPerMeter(d,y){return Cd(1,d)*y}farthestPixelDistance(d){return function(y,T){const P=y.fovAboveCenter,Y=y.elevation?y.elevation.getMinElevationBelowMSL()*T:0,te=(y._camera.position[2]*y.worldSize-Y)/Math.cos(y._pitch),se=Math.sin(P)*te/Math.sin(Math.max(Math.PI/2-y._pitch-P,.01)),pe=Math.sin(y._pitch)*se+te;return Math.min(1.01*pe,te*(1/y._horizonShift))}(d,d.pixelsPerMeter)}pointCoordinate(d,y,T,P){const Y=d.horizonLineFromTop(!1),te=new _(y,Math.max(Y,T));return d.rayIntersectionCoordinate(d.pointRayIntersection(te,P))}createInversionMatrix(d,y){return Dp}createTileMatrix(d,y,T){let P,Y,te;const se=T.canonical,pe=Lc(new Float64Array(16));if(this.isReprojectedInTileSpace){const xe=Vr(se,this);P=1,Y=xe.x+T.wrap*xe.scale,te=xe.y,$u(pe,pe,[P/xe.scale,P/xe.scale,d.pixelsPerMeter/y])}else P=y/d.zoomScale(se.z),Y=(se.x+Math.pow(2,se.z)*T.wrap)*P,te=se.y*P;return so(pe,pe,[Y,te,0]),$u(pe,pe,[P/za,P/za,1]),pe}upVector(d,y,T){return[0,0,1]}upVectorScale(d,y,T){return{metersToTile:1,metersToLabelSpace:1}}}class Ap extends xc{constructor(d){super(d),this.wrap=!0,this.supportsWorldCopies=!0,this.supportsTerrain=!0,this.supportsFog=!0,this.supportsFreeCamera=!0,this.isReprojectedInTileSpace=!1,this.unsupportedLayers=[],this.range=null}project(d,y){return{x:Md(d),y:Eu(y),z:0}}unproject(d,y){const T=Tu(d),P=yl(y);return new Go(T,P)}}class Af extends xc{constructor(d){super(d),this.range=[4,7],this.center=d.center||[-96,37.5];const[y,T]=this.parallels=d.parallels||[29.5,45.5],P=Math.sin(N(y));this.n=(P+Math.sin(N(T)))/2,this.c=1+P*(2*this.n-P),this.r0=Math.sqrt(this.c)/this.n}project(d,y){const{n:T,c:P,r0:Y}=this,te=N(d-this.center[0]),se=N(y),pe=Math.sqrt(P-2*T*Math.sin(se))/T;return{x:pe*Math.sin(te*T),y:pe*Math.cos(te*T)-Y,z:0}}unproject(d,y){const{n:T,c:P,r0:Y}=this,te=Y+y;let se=Math.atan2(d,Math.abs(te))*Math.sign(te);te*T<0&&(se-=Math.PI*Math.sign(d)*Math.sign(te));const pe=N(this.center[0])*T;se=q(se,-Math.PI-pe,Math.PI-pe);const xe=A(se/T)+this.center[0],Pe=Math.asin(W((P-(d*d+te*te)*T*T)/(2*T),-1,1)),je=W(A(Pe),-85.051129,Du);return new Go(xe,je)}}const gu=1.340264,Xp=-.081106,qt=893e-6,On=.003796,In=Math.sqrt(3)/2;class or extends xc{project(d,y){y=y/180*Math.PI,d=d/180*Math.PI;const T=Math.asin(In*Math.sin(y)),P=T*T,Y=P*P*P;return{x:.5*(d*Math.cos(T)/(In*(gu+3*Xp*P+Y*(7*qt+9*On*P)))/Math.PI+.5),y:1-.5*(T*(gu+Xp*P+Y*(qt+On*P))/Math.PI+1),z:0}}unproject(d,y){d=(2*d-.5)*Math.PI;let T=y=(2*(1-y)-1)*Math.PI,P=T*T,Y=P*P*P;for(let Pe,je,$e,ut=0;ut<12&&(je=T*(gu+Xp*P+Y*(qt+On*P))-y,$e=gu+3*Xp*P+Y*(7*qt+9*On*P),Pe=je/$e,T=W(T-Pe,-Math.PI/3,Math.PI/3),P=T*T,Y=P*P*P,!(Math.abs(Pe)<1e-12));++ut);const te=In*d*(gu+3*Xp*P+Y*(7*qt+9*On*P))/Math.cos(T),se=Math.asin(Math.sin(T)/In),pe=W(180*te/Math.PI,-180,180),xe=W(180*se/Math.PI,-85.051129,Du);return new Go(pe,xe)}}class pr extends xc{constructor(d){super(d),this.wrap=!0,this.supportsWorldCopies=!0}project(d,y){return{x:.5+d/360,y:.5-y/360,z:0}}unproject(d,y){const T=360*(d-.5),P=W(360*(.5-y),-85.051129,Du);return new Go(T,P)}}const Pi=Math.PI/2;function Ni(m){return Math.tan((Pi+m)/2)}class Di extends xc{constructor(d){super(d),this.center=d.center||[0,30];const[y,T]=this.parallels=d.parallels||[30,30],P=N(y),Y=N(T),te=Math.cos(P);this.n=P===Y?Math.sin(P):Math.log(te/Math.cos(Y))/Math.log(Ni(Y)/Ni(P)),this.f=te*Math.pow(Ni(P),this.n)/this.n}project(d,y){y=N(y),d=N(d-this.center[0]);const T=1e-6,{n:P,f:Y}=this;Y>0?y<-Pi+T&&(y=-Pi+T):y>Pi-T&&(y=Pi-T);const te=Y/Math.pow(Ni(y),P),se=te*Math.sin(P*d),pe=Y-te*Math.cos(P*d);return{x:.5*(se/Math.PI+.5),y:1-.5*(pe/Math.PI+.5),z:0}}unproject(d,y){d=(2*d-.5)*Math.PI,y=(2*(1-y)-.5)*Math.PI;const{n:T,f:P}=this,Y=P-y,te=Math.sign(Y),se=Math.sign(T)*Math.sqrt(d*d+Y*Y);let pe=Math.atan2(d,Math.abs(Y))*te;Y*T<0&&(pe-=Math.PI*Math.sign(d)*te);const xe=W(A(pe/T)+this.center[0],-180,180),Pe=W(A(2*Math.atan(Math.pow(P/se,1/T))-Pi),-85.051129,Du);return new Go(xe,Pe)}}const Hi=N(Du);class Ur extends xc{project(d,y){const T=(y=N(y))*y,P=T*T;return{x:.5*((d=N(d))*(.8707-.131979*T+P*(P*(.003971*T-.001529*P)-.013791))/Math.PI+.5),y:1-.5*(y*(1.007226+T*(.015085+P*(.028874*T-.044475-.005916*P)))/Math.PI+1),z:0}}unproject(d,y){d=(2*d-.5)*Math.PI;let T=y=(2*(1-y)-1)*Math.PI,P=25,Y=0,te=T*T;do{te=T*T;const xe=te*te;Y=(T*(1.007226+te*(.015085+xe*(.028874*te-.044475-.005916*xe)))-y)/(1.007226+te*(.045255+xe*(.259866*te-.311325-.005916*11*xe))),T=W(T-Y,-Hi,Hi)}while(Math.abs(Y)>1e-6&&--P>0);te=T*T;const se=W(A(d/(.8707+te*(te*(te*te*te*(.003971-.001529*te)-.013791)-.131979))),-180,180),pe=A(T);return new Go(se,pe)}}const gi=N(Du);class Ma extends xc{project(d,y){y=N(y),d=N(d);const T=Math.cos(y),P=2/Math.PI,Y=Math.acos(T*Math.cos(d/2)),te=Math.sin(Y)/Y,se=.5*(d*P+2*T*Math.sin(d/2)/te)||0,pe=.5*(y+Math.sin(y)/te)||0;return{x:.5*(se/Math.PI+.5),y:1-.5*(pe/Math.PI+1),z:0}}unproject(d,y){let T=d=(2*d-.5)*Math.PI,P=y=(2*(1-y)-1)*Math.PI,Y=25;const te=1e-6;let se=0,pe=0;do{const xe=Math.cos(P),Pe=Math.sin(P),je=2*Pe*xe,$e=Pe*Pe,ut=xe*xe,bt=Math.cos(T/2),kt=Math.sin(T/2),zt=2*bt*kt,Xt=kt*kt,wn=1-ut*bt*bt,Ln=wn?1/wn:0,hn=wn?Math.acos(xe*bt)*Math.sqrt(1/wn):0,Jt=.5*(2*hn*xe*kt+2*T/Math.PI)-d,Nn=.5*(hn*Pe+P)-y,fr=.5*Ln*(ut*Xt+hn*xe*bt*$e)+1/Math.PI,wr=Ln*(zt*je/4-hn*Pe*kt),Rr=.125*Ln*(je*kt-hn*Pe*ut*zt),$r=.5*Ln*($e*bt+hn*Xt*xe)+.5,mr=wr*Rr-$r*fr;se=(Nn*wr-Jt*$r)/mr,pe=(Jt*Rr-Nn*fr)/mr,T=W(T-se,-Math.PI,Math.PI),P=W(P-pe,-gi,gi)}while((Math.abs(se)>te||Math.abs(pe)>te)&&--Y>0);return new Go(A(T),A(P))}}class ka extends xc{constructor(d){super(d),this.center=d.center||[0,0],this.parallels=d.parallels||[0,0],this.cosPhi=Math.max(.01,Math.cos(N(this.parallels[0]))),this.scale=1/(2*Math.max(Math.PI*this.cosPhi,1/this.cosPhi)),this.wrap=!0,this.supportsWorldCopies=!0}project(d,y){const{scale:T,cosPhi:P}=this;return{x:N(d)*P*T+.5,y:-Math.sin(N(y))/P*T+.5,z:0}}unproject(d,y){const{scale:T,cosPhi:P}=this,Y=-(y-.5)/T,te=W(A((d-.5)/T)/P,-180,180),se=Math.asin(W(Y*P,-1,1)),pe=W(A(se),-85.051129,Du);return new Go(te,pe)}}l.ARRAY_TYPE=Uu,l.AUTH_ERR_MSG=wt,l.Aabb=Pl,l.Actor=class{constructor(m,d,y){this.target=m,this.parent=d,this.mapId=y,this.callbacks={},this.cancelCallbacks={},ke(["receive"],this),this.target.addEventListener("message",this.receive,!1),this.globalScope=He()?m:E,this.scheduler=new ig}send(m,d,y,T,P=!1,Y){const te=Math.round(1e18*Math.random()).toString(36).substring(0,10);y&&(y.metadata=Y,this.callbacks[te]=y);const se=ze(this.globalScope)?void 0:[];return this.target.postMessage({id:te,type:m,hasCallback:!!y,targetMapId:T,mustQueue:P,sourceMapId:this.mapId,data:Ks(d,se)},se),{cancel:()=>{y&&delete this.callbacks[te],this.target.postMessage({id:te,type:"<cancel>",targetMapId:T,sourceMapId:this.mapId})}}}receive(m){const d=m.data,y=d.id;if(y&&(!d.targetMapId||this.mapId===d.targetMapId))if(d.type==="<cancel>"){const T=this.cancelCallbacks[y];delete this.cancelCallbacks[y],T&&T.cancel()}else if(d.mustQueue||He()){const T=this.callbacks[y];this.cancelCallbacks[y]=this.scheduler.add(()=>this.processTask(y,d),T&&T.metadata||{type:"message"})}else this.processTask(y,d)}processTask(m,d){if(d.type==="<response>"){const y=this.callbacks[m];delete this.callbacks[m],y&&(d.error?y(Hc(d.error)):y(null,Hc(d.data)))}else{const y=ze(this.globalScope)?void 0:[],T=d.hasCallback?(Y,te)=>{delete this.cancelCallbacks[m],this.target.postMessage({id:m,type:"<response>",sourceMapId:this.mapId,error:Y?Ks(Y):null,data:Ks(te,y)},y)}:Y=>{},P=Hc(d.data);if(this.parent[d.type])this.parent[d.type](d.sourceMapId,P,T);else if(this.parent.getWorkerSource){const Y=d.type.split(".");this.parent.getWorkerSource(d.sourceMapId,Y[0],P.source)[Y[1]](P,T)}else T(new Error(`Could not find function ${d.type}`))}}remove(){this.scheduler.remove(),this.target.removeEventListener("message",this.receive,!1)}},l.CanonicalTileID=cr,l.Color=bn,l.ColorMode=uo,l.CullFaceMode=Fo,l.DEMData=Ei,l.DataConstantProperty=_e,l.DedupedRequest=Tp,l.DepthMode=go,l.EXTENT=za,l.Elevation=class{isDataAvailableAtPoint(m){const d=this._source();if(!d||m.y<0||m.y>1)return!1;const y=d.getSource().maxzoom,T=1<<y,P=Math.floor(m.x),Y=Math.floor((m.x-P)*T),te=Math.floor(m.y*T),se=this.findDEMTileFor(new _r(y,P,y,Y,te));return!(!se||!se.dem)}getAtPointOrZero(m,d=0){return this.getAtPoint(m,d)||0}getAtPoint(m,d,y=!0){d==null&&(d=null);const T=this._source();if(!T||m.y<0||m.y>1)return d;const P=T.getSource().maxzoom,Y=1<<P,te=Math.floor(m.x),se=m.x-te,pe=new _r(P,te,P,Math.floor(se*Y),Math.floor(m.y*Y)),xe=this.findDEMTileFor(pe);if(!xe||!xe.dem)return d;const Pe=xe.dem,je=1<<xe.tileID.canonical.z,$e=(se*je-xe.tileID.canonical.x)*Pe.dim,ut=(m.y*je-xe.tileID.canonical.y)*Pe.dim,bt=Math.floor($e),kt=Math.floor(ut);return(y?this.exaggeration():1)*Qe(Qe(Pe.get(bt,kt),Pe.get(bt,kt+1),ut-kt),Qe(Pe.get(bt+1,kt),Pe.get(bt+1,kt+1),ut-kt),$e-bt)}getAtTileOffset(m,d,y){const T=1<<m.canonical.z;return this.getAtPointOrZero(new Sd(m.wrap+(m.canonical.x+d/za)/T,(m.canonical.y+y/za)/T))}getAtTileOffsetFunc(m,d,y,T){return P=>{const Y=this.getAtTileOffset(m,P.x,P.y),te=T.upVector(m.canonical,P.x,P.y);return vc(te,te,Y*T.upVectorScale(m.canonical,d,y).metersToTile),te}}getForTilePoints(m,d,y,T){const P=ml.create(this,m,T);return!!P&&(d.forEach(Y=>{Y[2]=this.exaggeration()*P.getElevationAt(Y[0],Y[1],y)}),!0)}getMinMaxForTile(m){const d=this.findDEMTileFor(m);if(!d||!d.dem)return null;const y=d.dem.tree,T=d.tileID,P=1<<m.canonical.z-T.canonical.z;let Y=m.canonical.x/P-T.canonical.x,te=m.canonical.y/P-T.canonical.y,se=0;for(let pe=0;pe<m.canonical.z-T.canonical.z&&!y.leaves[se];pe++){Y*=2,te*=2;const xe=2*Math.floor(te)+Math.floor(Y);se=y.childOffsets[se]+xe,Y%=1,te%=1}return{min:this.exaggeration()*y.minimums[se],max:this.exaggeration()*y.maximums[se]}}getMinElevationBelowMSL(){throw new Error("Pure virtual method called.")}raycast(m,d,y){throw new Error("Pure virtual method called.")}pointCoordinate(m){throw new Error("Pure virtual method called.")}_source(){throw new Error("Pure virtual method called.")}exaggeration(){throw new Error("Pure virtual method called.")}findDEMTileFor(m){throw new Error("Pure virtual method called.")}get visibleDemTiles(){throw new Error("Getter must be implemented in subclass.")}},l.ErrorEvent=mi,l.EvaluationParameters=Ro,l.Event=Ti,l.Evented=Li,l.FillExtrusionBucket=zc,l.Frustum=kd,l.GLOBE_RADIUS=K,l.GlobeSharedBuffers=class{constructor(m){this._createGrid(m),this._createPoles(m),this._createAtmosphere(m)}destroy(){this._poleIndexBuffer.destroy(),this._gridBuffer.destroy(),this._gridIndexBuffer.destroy(),this._poleNorthVertexBuffer.destroy(),this._poleSouthVertexBuffer.destroy();for(const m of this._poleSegments)m.destroy();this._gridSegments.destroy(),this.atmosphereVertexBuffer.destroy(),this.atmosphereIndexBuffer.destroy(),this.atmosphereSegments.destroy(),this._wireframeIndexBuffer&&(this._wireframeIndexBuffer.destroy(),this._wireframeSegments.destroy())}_createGrid(m){const d=new cn,y=new Ii,T=65;for(let P=0;P<T;P++)for(let Y=0;Y<T;Y++)d.emplaceBack(Y,P);for(let P=0;P<64;P++)for(let Y=0;Y<64;Y++){const te=P*T+Y;y.emplaceBack(te+1,te,te+T),y.emplaceBack(te+T,te+T+1,te+1)}this._gridBuffer=m.createVertexBuffer(d,L.members),this._gridIndexBuffer=m.createIndexBuffer(y,!0),this._gridSegments=Qs.simpleSegment(0,0,4225,8192)}_createPoles(m){const d=new Ii;for(let P=0;P<=64;P++)d.emplaceBack(0,P+1,P+2);this._poleIndexBuffer=m.createIndexBuffer(d,!0);const y=new pa,T=new pa;this._poleSegments=[];for(let P=0,Y=0;P<5;P++){const te=1<<P,se=512*te/Math.PI/2,pe=360/te;y.emplaceBack(0,-se,0,0,0,.5,0),T.emplaceBack(0,-se,0,0,0,.5,1);for(let xe=0;xe<=64;xe++){const Pe=xe/64,je=Qe(0,pe,Pe),[$e,ut,bt]=Oe(Dn,Qn,je,se);y.emplaceBack($e,ut,bt,0,0,Pe,0),T.emplaceBack($e,ut,bt,0,0,Pe,1)}this._poleSegments.push(Qs.simpleSegment(Y,0,66,64)),Y+=66}this._poleNorthVertexBuffer=m.createVertexBuffer(y,g,!1),this._poleSouthVertexBuffer=m.createVertexBuffer(T,g,!1)}_createAtmosphere(m){const d=new Ja;d.emplaceBack(-1,1,1,0,0),d.emplaceBack(1,1,1,1,0),d.emplaceBack(1,-1,1,1,1),d.emplaceBack(-1,-1,1,0,1);const y=new Ii;y.emplaceBack(0,1,2),y.emplaceBack(2,3,0),this.atmosphereVertexBuffer=m.createVertexBuffer(d,u.members),this.atmosphereIndexBuffer=m.createIndexBuffer(y),this.atmosphereSegments=Qs.simpleSegment(0,0,4,2)}getGridBuffers(){return[this._gridBuffer,this._gridIndexBuffer,this._gridSegments]}getPoleBuffers(m){return[this._poleNorthVertexBuffer,this._poleSouthVertexBuffer,this._poleIndexBuffer,this._poleSegments[m]]}getWirefameBuffers(m){if(!this._wireframeSegments){const d=new Xi,y=64,T=y+1;for(let P=0;P<y;P++)for(let Y=0;Y<y;Y++){const te=P*T+Y;d.emplaceBack(te,te+1),d.emplaceBack(te,te+T),d.emplaceBack(te,te+T+1)}this._wireframeIndexBuffer=m.createIndexBuffer(d),this._wireframeSegments=Qs.simpleSegment(0,0,y*y,d.length)}return[this._gridBuffer,this._wireframeIndexBuffer,this._wireframeSegments]}},l.GlyphManager=hl,l.ImagePosition=Xf,l.LineAtlas=im,l.LngLat=Go,l.LngLatBounds=kc,l.LocalGlyphMode=bf,l.MAX_MERCATOR_LATITUDE=Du,l.MercatorCoordinate=Sd,l.ONE_EM=iu,l.OverscaledTileID=_r,l.Properties=yt,l.RGBAImage=nu,l.Ray=class{constructor(m,d){this.pos=m,this.dir=d}intersectsPlane(m,d,y){const T=al(d,this.dir);if(Math.abs(T)<1e-6)return!1;const P=((m[0]-this.pos[0])*d[0]+(m[1]-this.pos[1])*d[1]+(m[2]-this.pos[2])*d[2])/T;return y[0]=this.pos[0]+this.dir[0]*P,y[1]=this.pos[1]+this.dir[1]*P,y[2]=this.pos[2]+this.dir[2]*P,!0}closestPointOnSphere(m,d,y){if(function($e,ut){var bt=$e[0],kt=$e[1],zt=$e[2],Xt=ut[0],wn=ut[1],Ln=ut[2];return Math.abs(bt-Xt)<=Yd*Math.max(1,Math.abs(bt),Math.abs(Xt))&&Math.abs(kt-wn)<=Yd*Math.max(1,Math.abs(kt),Math.abs(wn))&&Math.abs(zt-Ln)<=Yd*Math.max(1,Math.abs(zt),Math.abs(Ln))}(this.pos,m)||d===0)return y[0]=y[1]=y[2]=0,!1;const[T,P,Y]=this.dir,te=this.pos[0]-m[0],se=this.pos[1]-m[1],pe=this.pos[2]-m[2],xe=T*T+P*P+Y*Y,Pe=2*(te*T+se*P+pe*Y),je=Pe*Pe-4*xe*(te*te+se*se+pe*pe-d*d);if(je<0){const $e=Math.max(-Pe/2,0),ut=te+T*$e,bt=se+P*$e,kt=pe+Y*$e,zt=Math.hypot(ut,bt,kt);return y[0]=ut*d/zt,y[1]=bt*d/zt,y[2]=kt*d/zt,!1}{const $e=(-Pe-Math.sqrt(je))/(2*xe);if($e<0){const ut=Math.hypot(te,se,pe);return y[0]=te*d/ut,y[1]=se*d/ut,y[2]=pe*d/ut,!1}return y[0]=te+T*$e,y[1]=se+P*$e,y[2]=pe+Y*$e,!0}}},l.RequestManager=class{constructor(m,d,y){this._transformRequestFn=m,this._customAccessToken=d,this._silenceAuthErrors=!!y,this._createSkuToken()}_createSkuToken(){const m=function(){let d="";for(let y=0;y<10;y++)d+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",rn,d].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=m.token,this._skuTokenExpiresAt=m.tokenExpiresAt}_isSkuTokenExpired(){return Date.now()>this._skuTokenExpiresAt}transformRequest(m,d){return this._transformRequestFn&&this._transformRequestFn(m,d)||{url:m}}normalizeStyleURL(m,d){if(!Yn(m))return m;const y=Ie(m);return y.path=`/styles/v1${y.path}`,this._makeAPIURL(y,this._customAccessToken||d)}normalizeGlyphsURL(m,d){if(!Yn(m))return m;const y=Ie(m);return y.path=`/fonts/v1${y.path}`,this._makeAPIURL(y,this._customAccessToken||d)}normalizeSourceURL(m,d){if(!Yn(m))return m;const y=Ie(m);return y.path=`/v4/${y.authority}.json`,y.params.push("secure"),this._makeAPIURL(y,this._customAccessToken||d)}normalizeSpriteURL(m,d,y,T){const P=Ie(m);return Yn(m)?(P.path=`/styles/v1${P.path}/sprite${d}${y}`,this._makeAPIURL(P,this._customAccessToken||T)):(P.path+=`${d}${y}`,ct(P))}normalizeTileURL(m,d,y){if(this._isSkuTokenExpired()&&this._createSkuToken(),m&&!Yn(m))return m;const T=Ie(m);T.path=T.path.replace(/(\.(png|jpg)\d*)(?=$)/,`${d||y&&T.authority!=="raster"&&y===512?"@2x":""}${_t.supported?".webp":"$1"}`),T.authority==="raster"?T.path=`/${Ot.RASTER_URL_PREFIX}${T.path}`:(T.path=T.path.replace(/^.+\/v4\//,"/"),T.path=`/${Ot.TILE_URL_VERSION}${T.path}`);const P=this._customAccessToken||function(Y){for(const te of Y){const se=te.match(/^access_token=(.*)$/);if(se)return se[1]}return null}(T.params)||Ot.ACCESS_TOKEN;return Ot.REQUIRE_ACCESS_TOKEN&&P&&this._skuToken&&T.params.push(`sku=${this._skuToken}`),this._makeAPIURL(T,P)}canonicalizeTileURL(m,d){const y=Ie(m);if(!y.path.match(/^(\/v4\/|\/raster\/v1\/)/)||!y.path.match(/\.[\w]+$/))return m;let T="mapbox://";y.path.match(/^\/raster\/v1\//)?T+=`raster/${y.path.replace(`/${Ot.RASTER_URL_PREFIX}/`,"")}`:T+=`tiles/${y.path.replace(`/${Ot.TILE_URL_VERSION}/`,"")}`;let P=y.params;return d&&(P=P.filter(Y=>!Y.match(/^access_token=/))),P.length&&(T+=`?${P.join("&")}`),T}canonicalizeTileset(m,d){const y=!!d&&Yn(d),T=[];for(const P of m.tiles||[])pt(P)?T.push(this.canonicalizeTileURL(P,y)):T.push(P);return T}_makeAPIURL(m,d){const y="See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes",T=Ie(Ot.API_URL);if(m.protocol=T.protocol,m.authority=T.authority,m.protocol==="http"){const P=m.params.indexOf("secure");P>=0&&m.params.splice(P,1)}if(T.path!=="/"&&(m.path=`${T.path}${m.path}`),!Ot.REQUIRE_ACCESS_TOKEN)return ct(m);if(d=d||Ot.ACCESS_TOKEN,!this._silenceAuthErrors){if(!d)throw new Error(`An API access token is required to use Mapbox GL. ${y}`);if(d[0]==="s")throw new Error(`Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). ${y}`)}return m.params=m.params.filter(P=>P.indexOf("access_token")===-1),m.params.push(`access_token=${d||""}`),ct(m)}},l.ResourceType=jt,l.SegmentVector=Qs,l.SourceCache=ls,l.StencilMode=Pu,l.StructArrayLayout1ui2=Mo,l.StructArrayLayout2f1f2i16=Oi,l.StructArrayLayout2i4=cn,l.StructArrayLayout2ui4=Xi,l.StructArrayLayout3f12=Qr,l.StructArrayLayout3ui6=Ii,l.StructArrayLayout4i8=Cn,l.Texture=Yp,l.Tile=ai,l.Transitionable=U,l.Uniform1f=jd,l.Uniform1i=class extends fl{constructor(m,d){super(m,d),this.current=0}set(m){this.current!==m&&(this.current=m,this.gl.uniform1i(this.location,m))}},l.Uniform2f=class extends fl{constructor(m,d){super(m,d),this.current=[0,0]}set(m){m[0]===this.current[0]&&m[1]===this.current[1]||(this.current=m,this.gl.uniform2f(this.location,m[0],m[1]))}},l.Uniform3f=class extends fl{constructor(m,d){super(m,d),this.current=[0,0,0]}set(m){m[0]===this.current[0]&&m[1]===this.current[1]&&m[2]===this.current[2]||(this.current=m,this.gl.uniform3f(this.location,m[0],m[1],m[2]))}},l.Uniform4f=Lh,l.UniformColor=Jp,l.UniformMatrix2f=class extends fl{constructor(m,d){super(m,d),this.current=sp}set(m){for(let d=0;d<4;d++)if(m[d]!==this.current[d]){this.current=m,this.gl.uniformMatrix2fv(this.location,!1,m);break}}},l.UniformMatrix3f=class extends fl{constructor(m,d){super(m,d),this.current=If}set(m){for(let d=0;d<9;d++)if(m[d]!==this.current[d]){this.current=m,this.gl.uniformMatrix3fv(this.location,!1,m);break}}},l.UniformMatrix4f=class extends fl{constructor(m,d){super(m,d),this.current=op}set(m){if(m[12]!==this.current[12]||m[0]!==this.current[0])return this.current=m,void this.gl.uniformMatrix4fv(this.location,!1,m);for(let d=1;d<16;d++)if(m[d]!==this.current[d]){this.current=m,this.gl.uniformMatrix4fv(this.location,!1,m);break}}},l.UnwrappedTileID=Cr,l.ValidationError=Hn,l.VectorTileWorkerSource=class extends Li{constructor(m,d,y,T,P){super(),this.actor=m,this.layerIndex=d,this.availableImages=y,this.loadVectorData=P||Qh,this.loading={},this.loaded={},this.deduped=new Tp(m.scheduler),this.isSpriteLoaded=T,this.scheduler=m.scheduler}loadTile(m,d){const y=m.uid,T=m&&m.request,P=T&&T.collectResourceTiming,Y=this.loading[y]=new qp(m);Y.abort=this.loadVectorData(m,(te,se)=>{const pe=!this.loading[y];if(delete this.loading[y],pe||te||!se)return Y.status="done",pe||(this.loaded[y]=Y),d(te);const xe=se.rawData,Pe={};se.expires&&(Pe.expires=se.expires),se.cacheControl&&(Pe.cacheControl=se.cacheControl),Y.vectorTile=se.vectorTile||new Nc.VectorTile(new Rd(xe));const je=()=>{Y.parse(Y.vectorTile,this.layerIndex,this.availableImages,this.actor,($e,ut)=>{if($e||!ut)return d($e);const bt={};if(P){const kt=am(T);kt.length>0&&(bt.resourceTiming=JSON.parse(JSON.stringify(kt)))}d(null,re({rawTileData:xe.slice(0)},ut,Pe,bt))})};this.isSpriteLoaded?je():this.once("isSpriteLoaded",()=>{this.scheduler?this.scheduler.add(je,{type:"parseTile",isSymbolTile:m.isSymbolTile,zoom:m.tileZoom}):je()}),this.loaded=this.loaded||{},this.loaded[y]=Y})}reloadTile(m,d){const y=this.loaded,T=m.uid,P=this;if(y&&y[T]){const Y=y[T];Y.showCollisionBoxes=m.showCollisionBoxes,Y.enableTerrain=!!m.enableTerrain,Y.projection=m.projection,Y.tileTransform=Vr(m.tileID.canonical,m.projection);const te=(se,pe)=>{const xe=Y.reloadCallback;xe&&(delete Y.reloadCallback,Y.parse(Y.vectorTile,P.layerIndex,this.availableImages,P.actor,xe)),d(se,pe)};Y.status==="parsing"?Y.reloadCallback=te:Y.status==="done"&&(Y.vectorTile?Y.parse(Y.vectorTile,this.layerIndex,this.availableImages,this.actor,te):te())}}abortTile(m,d){const y=m.uid,T=this.loading[y];T&&(T.abort&&T.abort(),delete this.loading[y]),d()}removeTile(m,d){const y=this.loaded,T=m.uid;y&&y[T]&&delete y[T],d()}},l.WritingMode=lc,l.ZoomHistory=yd,l.add=Rp,l.addDynamicAttributes=Wp,l.adjoint=function(m,d){var y=d[0],T=d[1],P=d[2],Y=d[3],te=d[4],se=d[5],pe=d[6],xe=d[7],Pe=d[8];return m[0]=te*Pe-se*xe,m[1]=P*xe-T*Pe,m[2]=T*se-P*te,m[3]=se*pe-Y*Pe,m[4]=y*Pe-P*pe,m[5]=P*Y-y*se,m[6]=Y*xe-te*pe,m[7]=T*pe-y*xe,m[8]=y*te-T*Y,m},l.asyncAll=D,l.bezier=V,l.bindAll=ke,l.boundsAttributes=Mn,l.bufferConvexPolygon=function(m,d){const y=[];for(let T=0;T<m.length;T++){const P=q(T-1,-1,m.length-1),Y=q(T+1,-1,m.length-1),te=m[T],se=m[Y],pe=m[P].sub(te).unit(),xe=se.sub(te).unit(),Pe=xe.angleWithSep(pe.x,pe.y),je=pe.add(xe).unit().mult(-1*d/Math.sin(Pe/2));y.push(te.add(je))}return y},l.cacheEntryPossiblyAdded=function(m){Ca++,Ca>bi&&(m.getActor().send("enforceCacheSizeLimit",Jr),Ca=0)},l.calculateGlobeLabelMatrix=function(m,d){const{lng:y,lat:T}=m._center,P=fn(0,0,m.worldSize/m._projectionScaler,y,T);return sc(P,P,function(Y){const te=Lc(new Float64Array(16)),se=1/At(Y);return so(te,te,Y.min),$u(te,te,[se,se,se]),te}(We(d)))},l.calculateGlobeMatrix=An,l.calculateGlobeMercatorMatrix=function(m){const d=m.worldSize,y=m.point,T=Cd(1,m.center.lat)*d,P=m.pixelsPerMeter,Y=d/(T/m.pixelsPerMeter),te=Lc(new Float64Array(16));return so(te,te,[y.x,y.y,0]),$u(te,te,[Y,Y,P]),Float32Array.from(te)},l.circumferenceAtLatitude=Fs,l.clamp=W,l.clearTileCache=function(m){const d=E.caches.delete(ln);m&&d.catch(m).then(()=>m())},l.clipLine=wm,l.clone=function(m){var d=new Uu(16);return d[0]=m[0],d[1]=m[1],d[2]=m[2],d[3]=m[3],d[4]=m[4],d[5]=m[5],d[6]=m[6],d[7]=m[7],d[8]=m[8],d[9]=m[9],d[10]=m[10],d[11]=m[11],d[12]=m[12],d[13]=m[13],d[14]=m[14],d[15]=m[15],d},l.clone$1=Ue,l.collisionCircleLayout=Pd,l.config=Ot,l.conjugate=function(m,d){return m[0]=-d[0],m[1]=-d[1],m[2]=-d[2],m[3]=d[3],m},l.create=function(){var m=new Uu(16);return Uu!=Float32Array&&(m[1]=0,m[2]=0,m[3]=0,m[4]=0,m[6]=0,m[7]=0,m[8]=0,m[9]=0,m[11]=0,m[12]=0,m[13]=0,m[14]=0),m[0]=1,m[5]=1,m[10]=1,m[15]=1,m},l.create$1=Pf,l.createExpression=Ci,l.createLayout=vn,l.createStyleLayer=function(m){return m.type==="custom"?new Tm(m):new Um[m.type](m)},l.cross=Ul,l.degToRad=N,l.div=function(m,d,y){return m[0]=d[0]/y[0],m[1]=d[1]/y[1],m[2]=d[2]/y[2],m},l.dot=al,l.earthRadius=tu,l.ease=ne,l.easeCubicInOut=G,l.emitValidationErrors=Vl,l.endsWith=Le,l.enforceCacheSizeLimit=function(m){hi(),ar&&ar.then(d=>{d.keys().then(y=>{for(let T=0;T<y.length-m;T++)d.delete(y[T])})})},l.evaluateSizeForFeature=df,l.evaluateSizeForZoom=xp,l.evaluateVariableOffset=Mm,l.evented=Rh,l.exactEquals=function(m,d){return m[0]===d[0]&&m[1]===d[1]&&m[2]===d[2]&&m[3]===d[3]},l.exactEquals$1=function(m,d){return m[0]===d[0]&&m[1]===d[1]&&m[2]===d[2]},l.exported=vt,l.exported$1=_t,l.extend=re,l.extend$1=ha,l.filterObject=it,l.fromMat4=function(m,d){return m[0]=d[0],m[1]=d[1],m[2]=d[2],m[3]=d[4],m[4]=d[5],m[5]=d[6],m[6]=d[8],m[7]=d[9],m[8]=d[10],m},l.fromQuat=function(m,d){var y=d[0],T=d[1],P=d[2],Y=d[3],te=y+y,se=T+T,pe=P+P,xe=y*te,Pe=T*te,je=T*se,$e=P*te,ut=P*se,bt=P*pe,kt=Y*te,zt=Y*se,Xt=Y*pe;return m[0]=1-je-bt,m[1]=Pe+Xt,m[2]=$e-zt,m[3]=0,m[4]=Pe-Xt,m[5]=1-xe-bt,m[6]=ut+kt,m[7]=0,m[8]=$e+zt,m[9]=ut-kt,m[10]=1-xe-je,m[11]=0,m[12]=0,m[13]=0,m[14]=0,m[15]=1,m},l.fromRotation=function(m,d){var y=Math.sin(d),T=Math.cos(d);return m[0]=T,m[1]=y,m[2]=0,m[3]=-y,m[4]=T,m[5]=0,m[6]=0,m[7]=0,m[8]=1,m},l.fromScaling=function(m,d){return m[0]=d[0],m[1]=0,m[2]=0,m[3]=0,m[4]=0,m[5]=d[1],m[6]=0,m[7]=0,m[8]=0,m[9]=0,m[10]=d[2],m[11]=0,m[12]=0,m[13]=0,m[14]=0,m[15]=1,m},l.furthestTileCorner=function(m){const d=Math.round((m+45+360)%360/90)%4;return z[d]},l.getAABBPointSquareDist=function(m,d,y){let T=0;for(let P=0;P<2;++P){const Y=y?y[P]:0;m[P]>Y&&(T+=(m[P]-Y)*(m[P]-Y)),d[P]<Y&&(T+=(Y-d[P])*(Y-d[P]))}return T},l.getAnchorAlignment=Gp,l.getAnchorJustification=hu,l.getBounds=function(m){let d=1/0,y=1/0,T=-1/0,P=-1/0;for(const Y of m)d=Math.min(d,Y.x),y=Math.min(y,Y.y),T=Math.max(T,Y.x),P=Math.max(P,Y.y);return{min:new _(d,y),max:new _(T,P)}},l.getColumn=function(m,d){return[m[4*d],m[4*d+1],m[4*d+2],m[4*d+3]]},l.getGridMatrix=function(m,d){const[y,T]=d,P=.015625;return[0,(T[1]-y[1])*P,1<<m.z,(T[0]-y[0])*P,0,m.y,y[0],y[1],P]},l.getImage=Hr,l.getJSON=function(m,d){return Nt(re(m,{type:"json"}),d)},l.getMapSessionAPI=xn,l.getPerformanceMeasurement=am,l.getProjection=function(m){const d=m.parallels,y=!!d&&Math.abs(d[0]+d[1])<.01;switch(m.name){case"mercator":return new Ap(m);case"equirectangular":return new pr(m);case"naturalEarth":return new Ur(m);case"equalEarth":return new or(m);case"winkelTripel":return new Ma(m);case"albers":return y?new ka(m):new Af(m);case"lambertConformalConic":return y?new ka(m):new Di(m)}throw new Error(`Invalid projection name: ${m.name}`)},l.getRTLTextPluginStatus=sh,l.getReferrer=xt,l.getTilePoint=function(m,{x:d,y},T=0){return new _(((d-T)*m.scale-m.x)*za,(y*m.scale-m.y)*za)},l.getTileVec3=function(m,d,y=0){return Dd(((d.x-y)*m.scale-m.x)*za,(d.y*m.scale-m.y)*za,cp(d.z,d.y))},l.getVideo=function(m,d){const y=E.document.createElement("video");y.muted=!0,y.onloadstart=function(){d(null,y)};for(let T=0;T<m.length;T++){const P=E.document.createElement("source");we(m[T])||(y.crossOrigin="Anonymous"),P.src=m[T],y.appendChild(P)}return{cancel:()=>{}}},l.globeECEFOrigin=function(m,d){const y=[0,0,0];return id(y,y,nn(We(d.canonical))),id(y,y,m),y},l.globePixelsToTileUnits=function(m,d){return za/(512*Math.pow(2,m))*At(We(d))},l.globePoleMatrixForTile=function(m,d,y){const T=Lc(new Float64Array(16)),P=1<<m,Y=360*(d/P-.5),te=y.point,se=y.worldSize/(y.tileSize*P);return so(T,T,[te.x,te.y,-y.worldSize/Math.PI/2]),$u(T,T,[se,se,se]),xs(T,T,N(-y._center.lat)),nd(T,T,N(-y._center.lng+Y)),Float32Array.from(T)},l.globeTileLatLngCorners=ot,l.globeToMercatorTransition=function(m){return B(5,6,m)},l.identity=Lc,l.identity$1=of,l.invert=function(m,d){var y=d[0],T=d[1],P=d[2],Y=d[3],te=d[4],se=d[5],pe=d[6],xe=d[7],Pe=d[8],je=d[9],$e=d[10],ut=d[11],bt=d[12],kt=d[13],zt=d[14],Xt=d[15],wn=y*se-T*te,Ln=y*pe-P*te,hn=y*xe-Y*te,Jt=T*pe-P*se,Nn=T*xe-Y*se,fr=P*xe-Y*pe,wr=Pe*kt-je*bt,Rr=Pe*zt-$e*bt,$r=Pe*Xt-ut*bt,mr=je*zt-$e*kt,Sr=je*Xt-ut*kt,Wr=$e*Xt-ut*zt,di=wn*Wr-Ln*Sr+hn*mr+Jt*$r-Nn*Rr+fr*wr;return di?(m[0]=(se*Wr-pe*Sr+xe*mr)*(di=1/di),m[1]=(P*Sr-T*Wr-Y*mr)*di,m[2]=(kt*fr-zt*Nn+Xt*Jt)*di,m[3]=($e*Nn-je*fr-ut*Jt)*di,m[4]=(pe*$r-te*Wr-xe*Rr)*di,m[5]=(y*Wr-P*$r+Y*Rr)*di,m[6]=(zt*hn-bt*fr-Xt*Ln)*di,m[7]=(Pe*fr-$e*hn+ut*Ln)*di,m[8]=(te*Sr-se*$r+xe*wr)*di,m[9]=(T*$r-y*Sr-Y*wr)*di,m[10]=(bt*Nn-kt*hn+Xt*wn)*di,m[11]=(je*hn-Pe*Nn-ut*wn)*di,m[12]=(se*Rr-te*mr-pe*wr)*di,m[13]=(y*mr-T*Rr+P*wr)*di,m[14]=(kt*Ln-bt*Jt-zt*wn)*di,m[15]=(Pe*Jt-je*Ln+$e*wn)*di,m):null},l.isMapAuthenticated=function(m){return jn.has(m)},l.isMapboxURL=Yn,l.isSafariWithAntialiasingBug=function(m){const d=m.navigator?m.navigator.userAgent:null;return!!ze(m)&&d&&(d.match("Version/15.4")||d.match("Version/15.5")||d.match(/CPU (OS|iPhone OS) (15_4|15_5) like Mac OS X/))},l.latFromMercatorY=yl,l.len=$h,l.length=Gh,l.length$1=function(m){return Math.hypot(m[0],m[1],m[2],m[3])},l.loadVectorTile=Qh,l.makeRequest=Nt,l.mercatorXfromLng=Md,l.mercatorYfromLat=Eu,l.mercatorZfromAltitude=Cd,l.mul=ms,l.mul$1=fp,l.multiply=function(m,d,y){var T=d[0],P=d[1],Y=d[2],te=d[3],se=d[4],pe=d[5],xe=d[6],Pe=d[7],je=d[8],$e=y[0],ut=y[1],bt=y[2],kt=y[3],zt=y[4],Xt=y[5],wn=y[6],Ln=y[7],hn=y[8];return m[0]=$e*T+ut*te+bt*xe,m[1]=$e*P+ut*se+bt*Pe,m[2]=$e*Y+ut*pe+bt*je,m[3]=kt*T+zt*te+Xt*xe,m[4]=kt*P+zt*se+Xt*Pe,m[5]=kt*Y+zt*pe+Xt*je,m[6]=wn*T+Ln*te+hn*xe,m[7]=wn*P+Ln*se+hn*Pe,m[8]=wn*Y+Ln*pe+hn*je,m},l.multiply$1=sc,l.multiply$2=rf,l.nextPowerOfTwo=ye,l.normalize=Uh,l.normalize$1=function(m,d){var y=d[0],T=d[1],P=d[2],Y=d[3],te=y*y+T*T+P*P+Y*Y;return te>0&&(te=1/Math.sqrt(te)),m[0]=y*te,m[1]=T*te,m[2]=P*te,m[3]=Y*te,m},l.number=Qe,l.ortho=function(m,d,y,T,P,Y,te){var se=1/(d-y),pe=1/(T-P),xe=1/(Y-te);return m[0]=-2*se,m[1]=0,m[2]=0,m[3]=0,m[4]=0,m[5]=-2*pe,m[6]=0,m[7]=0,m[8]=0,m[9]=0,m[10]=2*xe,m[11]=0,m[12]=(d+y)*se,m[13]=(P+T)*pe,m[14]=(te+Y)*xe,m[15]=1,m},l.pbf=Rd,l.perspective=function(m,d,y,T,P){var Y,te=1/Math.tan(d/2);return m[0]=te/y,m[1]=0,m[2]=0,m[3]=0,m[4]=0,m[5]=te,m[6]=0,m[7]=0,m[8]=0,m[9]=0,m[11]=-1,m[12]=0,m[13]=0,m[15]=0,P!=null&&P!==1/0?(m[10]=(P+T)*(Y=1/(T-P)),m[14]=2*P*T*Y):(m[10]=-1,m[14]=-2*T),m},l.pick=function(m,d){const y={};for(let T=0;T<d.length;T++){const P=d[T];P in m&&(y[P]=m[P])}return y},l.plugin=Gs,l.pointGeometry=_,l.polygonIntersectsBox=Ws,l.polygonIntersectsPolygon=Nh,l.polygonizeBounds=function(m,d,y=0,T=!0){const P=new _(y,y),Y=m.sub(P),te=d.add(P),se=[Y,new _(te.x,Y.y),te,new _(Y.x,te.y)];return T&&se.push(Y),se},l.posAttributes=L,l.postMapLoadEvent=ii,l.postTurnstileEvent=Dr,l.potpack=pf,l.prevPowerOfTwo=function(m){return m<=1?1:Math.pow(2,Math.floor(Math.log(m)/Math.LN2))},l.radToDeg=A,l.refProperties=["type","source","source-layer","minzoom","maxzoom","filter","layout"],l.registerForPluginStateChange=function(m){return m({pluginStatus:uu,pluginURL:fu}),Rh.on("pluginStateChange",m),m},l.removeAuthState=function(m){jn.delete(m)},l.renderColorRamp=Rl,l.rotateX=xs,l.rotateX$1=gh,l.rotateY=nd,l.rotateZ=function(m,d,y){var T=Math.sin(y),P=Math.cos(y),Y=d[0],te=d[1],se=d[2],pe=d[3],xe=d[4],Pe=d[5],je=d[6],$e=d[7];return d!==m&&(m[8]=d[8],m[9]=d[9],m[10]=d[10],m[11]=d[11],m[12]=d[12],m[13]=d[13],m[14]=d[14],m[15]=d[15]),m[0]=Y*P+xe*T,m[1]=te*P+Pe*T,m[2]=se*P+je*T,m[3]=pe*P+$e*T,m[4]=xe*P-Y*T,m[5]=Pe*P-te*T,m[6]=je*P-se*T,m[7]=$e*P-pe*T,m},l.rotateZ$1=function(m,d,y){y*=.5;var T=d[0],P=d[1],Y=d[2],te=d[3],se=Math.sin(y),pe=Math.cos(y);return m[0]=T*pe+P*se,m[1]=P*pe-T*se,m[2]=Y*pe+te*se,m[3]=te*pe-Y*se,m},l.scale=$u,l.scale$1=function(m,d,y){return m[0]=d[0]*y,m[1]=d[1]*y,m[2]=d[2]*y,m[3]=d[3]*y,m},l.scale$2=vc,l.scaleAndAdd=af,l.setCacheLimits=function(m,d){Jr=m,bi=d},l.setColumn=function(m,d,y){m[4*d+0]=y[0],m[4*d+1]=y[1],m[4*d+2]=y[2],m[4*d+3]=y[3]},l.setRTLTextPlugin=function(m,d,y=!1){if(uu===oh||uu===Gu||uu===ip)throw new Error("setRTLTextPlugin cannot be called multiple times.");fu=vt.resolveURL(m),uu=oh,pc=d,Kc(),y||_d()},l.smoothstep=B,l.spec=tr,l.storeAuthState=function(m,d){d?jn.add(m):jn.delete(m)},l.sub=ad,l.subtract=rd,l.symbolSize=dm,l.tileAABB=function(m,d,y,T,P,Y,te,se,pe){if(pe.name==="globe")return tt(m,d,new cr(y,T,P));const xe=Vr({z:y,x:T,y:P},pe);return new Pl([(Y+xe.x/xe.scale)*d,d*(xe.y/xe.scale),te],[(Y+xe.x2/xe.scale)*d,d*(xe.y2/xe.scale),se])},l.tileTransform=Vr,l.transformMat3=function(m,d,y){var T=d[0],P=d[1],Y=d[2];return m[0]=T*y[0]+P*y[3]+Y*y[6],m[1]=T*y[1]+P*y[4]+Y*y[7],m[2]=T*y[2]+P*y[5]+Y*y[8],m},l.transformMat4=id,l.transformMat4$1=Oc,l.transformQuat=qd,l.translate=so,l.transpose=function(m,d){if(m===d){var y=d[1],T=d[2],P=d[5];m[1]=d[3],m[2]=d[6],m[3]=y,m[5]=d[7],m[6]=T,m[7]=P}else m[0]=d[0],m[1]=d[3],m[2]=d[6],m[3]=d[1],m[4]=d[4],m[5]=d[7],m[6]=d[2],m[7]=d[5],m[8]=d[8];return m},l.triggerPluginCompletionEvent=vd,l.uniqueId=fe,l.validateCustomStyleLayer=function(m){const d=[],y=m.id;return y===void 0&&d.push({message:`layers.${y}: missing required property "id"`}),m.render===void 0&&d.push({message:`layers.${y}: missing required method "render"`}),m.renderingMode&&m.renderingMode!=="2d"&&m.renderingMode!=="3d"&&d.push({message:`layers.${y}: property "renderingMode" must be either "2d" or "3d"`}),d},l.validateFilter=m=>Nu(Zu(m)),l.validateFog=m=>Nu(dc(m)),l.validateLayer=m=>Nu(rh(m)),l.validateLight=m=>Nu(Bd(m)),l.validateSource=m=>Nu(Bu(m)),l.validateStyle=hs,l.validateTerrain=m=>Nu(gd(m)),l.values=F,l.vectorTile=Nc,l.version=v,l.warnOnce=De,l.window=E,l.wrap=q}),s(["./shared"],function(l){function v(jt){if(typeof jt=="number"||typeof jt=="boolean"||typeof jt=="string"||jt==null)return JSON.stringify(jt);if(Array.isArray(jt)){let xt="[";for(const Nt of jt)xt+=`${v(Nt)},`;return`${xt}]`}let dt="{";for(const xt of Object.keys(jt).sort())dt+=`${xt}:${v(jt[xt])},`;return`${dt}}`}function x(jt){let dt="";for(const xt of l.refProperties)dt+=`/${v(jt[xt])}`;return dt}class w{constructor(dt){this.keyCache={},dt&&this.replace(dt)}replace(dt){this._layerConfigs={},this._layers={},this.update(dt,[])}update(dt,xt){for(const Qt of dt)this._layerConfigs[Qt.id]=Qt,(this._layers[Qt.id]=l.createStyleLayer(Qt)).compileFilter(),this.keyCache[Qt.id]&&delete this.keyCache[Qt.id];for(const Qt of xt)delete this.keyCache[Qt],delete this._layerConfigs[Qt],delete this._layers[Qt];this.familiesBySource={};const Nt=function(Qt,mn){const Un={};for(let En=0;En<Qt.length;En++){const Kn=mn&&mn[Qt[En].id]||x(Qt[En]);mn&&(mn[Qt[En].id]=Kn);let er=Un[Kn];er||(er=Un[Kn]=[]),er.push(Qt[En])}const we=[];for(const En in Un)we.push(Un[En]);return we}(l.values(this._layerConfigs),this.keyCache);for(const Qt of Nt){const mn=Qt.map(Hr=>this._layers[Hr.id]),Un=mn[0];if(Un.visibility==="none")continue;const we=Un.source||"";let En=this.familiesBySource[we];En||(En=this.familiesBySource[we]={});const Kn=Un.sourceLayer||"_geojsonTileLayer";let er=En[Kn];er||(er=En[Kn]=[]),er.push(mn)}}}class _{loadTile(dt,xt){const{uid:Nt,encoding:Qt,rawImageData:mn,padding:Un,buildQuadTree:we}=dt,En=l.window.ImageBitmap&&mn instanceof l.window.ImageBitmap?this.getImageData(mn,Un):mn;xt(null,new l.DEMData(Nt,En,Qt,Un<1,we))}getImageData(dt,xt){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(dt.width,dt.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=dt.width,this.offscreenCanvas.height=dt.height,this.offscreenCanvasContext.drawImage(dt,0,0,dt.width,dt.height);const Nt=this.offscreenCanvasContext.getImageData(-xt,-xt,dt.width+2*xt,dt.height+2*xt);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),Nt}}var b=function jt(dt,xt){var Nt,Qt=dt&&dt.type;if(Qt==="FeatureCollection")for(Nt=0;Nt<dt.features.length;Nt++)jt(dt.features[Nt],xt);else if(Qt==="GeometryCollection")for(Nt=0;Nt<dt.geometries.length;Nt++)jt(dt.geometries[Nt],xt);else if(Qt==="Feature")jt(dt.geometry,xt);else if(Qt==="Polygon")E(dt.coordinates,xt);else if(Qt==="MultiPolygon")for(Nt=0;Nt<dt.coordinates.length;Nt++)E(dt.coordinates[Nt],xt);return dt};function E(jt,dt){if(jt.length!==0){I(jt[0],dt);for(var xt=1;xt<jt.length;xt++)I(jt[xt],!dt)}}function I(jt,dt){for(var xt=0,Nt=0,Qt=0,mn=jt.length,Un=mn-1;Qt<mn;Un=Qt++){var we=(jt[Qt][0]-jt[Un][0])*(jt[Un][1]+jt[Qt][1]),En=xt+we;Nt+=Math.abs(xt)>=Math.abs(we)?xt-En+we:we-En+xt,xt=En}xt+Nt>=0!=!!dt&&jt.reverse()}const O=l.vectorTile.VectorTileFeature.prototype.toGeoJSON;class N{constructor(dt){this._feature=dt,this.extent=l.EXTENT,this.type=dt.type,this.properties=dt.tags,"id"in dt&&!isNaN(dt.id)&&(this.id=parseInt(dt.id,10))}loadGeometry(){if(this._feature.type===1){const dt=[];for(const xt of this._feature.geometry)dt.push([new l.pointGeometry(xt[0],xt[1])]);return dt}{const dt=[];for(const xt of this._feature.geometry){const Nt=[];for(const Qt of xt)Nt.push(new l.pointGeometry(Qt[0],Qt[1]));dt.push(Nt)}return dt}}toGeoJSON(dt,xt,Nt){return O.call(this,dt,xt,Nt)}}class A{constructor(dt){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=l.EXTENT,this.length=dt.length,this._features=dt}feature(dt){return new N(this._features[dt])}}var z=l.vectorTile.VectorTileFeature,G=V;function V(jt,dt){this.options=dt||{},this.features=jt,this.length=jt.length}function ne(jt,dt){this.id=typeof jt.id=="number"?jt.id:void 0,this.type=jt.type,this.rawGeometry=jt.type===1?[jt.geometry]:jt.geometry,this.properties=jt.tags,this.extent=dt||4096}V.prototype.feature=function(jt){return new ne(this.features[jt],this.options.extent)},ne.prototype.loadGeometry=function(){var jt=this.rawGeometry;this.geometry=[];for(var dt=0;dt<jt.length;dt++){for(var xt=jt[dt],Nt=[],Qt=0;Qt<xt.length;Qt++)Nt.push(new l.pointGeometry(xt[Qt][0],xt[Qt][1]));this.geometry.push(Nt)}return this.geometry},ne.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var jt=this.geometry,dt=1/0,xt=-1/0,Nt=1/0,Qt=-1/0,mn=0;mn<jt.length;mn++)for(var Un=jt[mn],we=0;we<Un.length;we++){var En=Un[we];dt=Math.min(dt,En.x),xt=Math.max(xt,En.x),Nt=Math.min(Nt,En.y),Qt=Math.max(Qt,En.y)}return[dt,Nt,xt,Qt]},ne.prototype.toGeoJSON=z.prototype.toGeoJSON;var W=q,B=G;function q(jt){var dt=new l.pbf;return function(xt,Nt){for(var Qt in xt.layers)Nt.writeMessage(3,D,xt.layers[Qt])}(jt,dt),dt.finish()}function D(jt,dt){var xt;dt.writeVarintField(15,jt.version||1),dt.writeStringField(1,jt.name||""),dt.writeVarintField(5,jt.extent||4096);var Nt={keys:[],values:[],keycache:{},valuecache:{}};for(xt=0;xt<jt.length;xt++)Nt.feature=jt.feature(xt),dt.writeMessage(2,F,Nt);var Qt=Nt.keys;for(xt=0;xt<Qt.length;xt++)dt.writeStringField(3,Qt[xt]);var mn=Nt.values;for(xt=0;xt<mn.length;xt++)dt.writeMessage(4,ye,mn[xt])}function F(jt,dt){var xt=jt.feature;xt.id!==void 0&&dt.writeVarintField(1,xt.id),dt.writeMessage(2,re,jt),dt.writeVarintField(3,xt.type),dt.writeMessage(4,me,xt)}function re(jt,dt){var xt=jt.feature,Nt=jt.keys,Qt=jt.values,mn=jt.keycache,Un=jt.valuecache;for(var we in xt.properties){var En=xt.properties[we],Kn=mn[we];if(En!==null){Kn===void 0&&(Nt.push(we),mn[we]=Kn=Nt.length-1),dt.writeVarint(Kn);var er=typeof En;er!=="string"&&er!=="boolean"&&er!=="number"&&(En=JSON.stringify(En));var Hr=er+":"+En,Ir=Un[Hr];Ir===void 0&&(Qt.push(En),Un[Hr]=Ir=Qt.length-1),dt.writeVarint(Ir)}}}function le(jt,dt){return(dt<<3)+(7&jt)}function fe(jt){return jt<<1^jt>>31}function me(jt,dt){for(var xt=jt.loadGeometry(),Nt=jt.type,Qt=0,mn=0,Un=xt.length,we=0;we<Un;we++){var En=xt[we],Kn=1;Nt===1&&(Kn=En.length),dt.writeVarint(le(1,Kn));for(var er=Nt===3?En.length-1:En.length,Hr=0;Hr<er;Hr++){Hr===1&&Nt!==1&&dt.writeVarint(le(2,er-1));var Ir=En[Hr].x-Qt,Ri=En[Hr].y-mn;dt.writeVarint(fe(Ir)),dt.writeVarint(fe(Ri)),Qt+=Ir,mn+=Ri}Nt===3&&dt.writeVarint(le(7,1))}}function ye(jt,dt){var xt=typeof jt;xt==="string"?dt.writeStringField(1,jt):xt==="boolean"?dt.writeBooleanField(7,jt):xt==="number"&&(jt%1!=0?dt.writeDoubleField(3,jt):jt<0?dt.writeSVarintField(6,jt):dt.writeVarintField(5,jt))}function Te(jt,dt,xt,Nt,Qt,mn){if(Qt-Nt<=xt)return;const Un=Nt+Qt>>1;ke(jt,dt,Un,Nt,Qt,mn%2),Te(jt,dt,xt,Nt,Un-1,mn+1),Te(jt,dt,xt,Un+1,Qt,mn+1)}function ke(jt,dt,xt,Nt,Qt,mn){for(;Qt>Nt;){if(Qt-Nt>600){const Kn=Qt-Nt+1,er=xt-Nt+1,Hr=Math.log(Kn),Ir=.5*Math.exp(2*Hr/3),Ri=.5*Math.sqrt(Hr*Ir*(Kn-Ir)/Kn)*(er-Kn/2<0?-1:1);ke(jt,dt,xt,Math.max(Nt,Math.floor(xt-er*Ir/Kn+Ri)),Math.min(Qt,Math.floor(xt+(Kn-er)*Ir/Kn+Ri)),mn)}const Un=dt[2*xt+mn];let we=Nt,En=Qt;for(Le(jt,dt,Nt,xt),dt[2*Qt+mn]>Un&&Le(jt,dt,Nt,Qt);we<En;){for(Le(jt,dt,we,En),we++,En--;dt[2*we+mn]<Un;)we++;for(;dt[2*En+mn]>Un;)En--}dt[2*Nt+mn]===Un?Le(jt,dt,Nt,En):(En++,Le(jt,dt,En,Qt)),En<=xt&&(Nt=En+1),xt<=En&&(Qt=En-1)}}function Le(jt,dt,xt,Nt){et(jt,xt,Nt),et(dt,2*xt,2*Nt),et(dt,2*xt+1,2*Nt+1)}function et(jt,dt,xt){const Nt=jt[dt];jt[dt]=jt[xt],jt[xt]=Nt}function it(jt,dt,xt,Nt){const Qt=jt-xt,mn=dt-Nt;return Qt*Qt+mn*mn}W.fromVectorTileJs=q,W.fromGeojsonVt=function(jt,dt){dt=dt||{};var xt={};for(var Nt in jt)xt[Nt]=new G(jt[Nt].features,dt),xt[Nt].name=Nt,xt[Nt].version=dt.version,xt[Nt].extent=dt.extent;return q({layers:xt})},W.GeoJSONWrapper=B;const Ue=jt=>jt[0],ht=jt=>jt[1];class De{constructor(dt,xt=Ue,Nt=ht,Qt=64,mn=Float64Array){this.nodeSize=Qt,this.points=dt;const Un=dt.length<65536?Uint16Array:Uint32Array,we=this.ids=new Un(dt.length),En=this.coords=new mn(2*dt.length);for(let Kn=0;Kn<dt.length;Kn++)we[Kn]=Kn,En[2*Kn]=xt(dt[Kn]),En[2*Kn+1]=Nt(dt[Kn]);Te(we,En,Qt,0,we.length-1,0)}range(dt,xt,Nt,Qt){return function(mn,Un,we,En,Kn,er,Hr){const Ir=[0,mn.length-1,0],Ri=[];let Ti,mi;for(;Ir.length;){const Li=Ir.pop(),tr=Ir.pop(),ha=Ir.pop();if(tr-ha<=Hr){for(let Va=ha;Va<=tr;Va++)Ti=Un[2*Va],mi=Un[2*Va+1],Ti>=we&&Ti<=Kn&&mi>=En&&mi<=er&&Ri.push(mn[Va]);continue}const ti=Math.floor((ha+tr)/2);Ti=Un[2*ti],mi=Un[2*ti+1],Ti>=we&&Ti<=Kn&&mi>=En&&mi<=er&&Ri.push(mn[ti]);const ua=(Li+1)%2;(Li===0?we<=Ti:En<=mi)&&(Ir.push(ha),Ir.push(ti-1),Ir.push(ua)),(Li===0?Kn>=Ti:er>=mi)&&(Ir.push(ti+1),Ir.push(tr),Ir.push(ua))}return Ri}(this.ids,this.coords,dt,xt,Nt,Qt,this.nodeSize)}within(dt,xt,Nt){return function(Qt,mn,Un,we,En,Kn){const er=[0,Qt.length-1,0],Hr=[],Ir=En*En;for(;er.length;){const Ri=er.pop(),Ti=er.pop(),mi=er.pop();if(Ti-mi<=Kn){for(let ua=mi;ua<=Ti;ua++)it(mn[2*ua],mn[2*ua+1],Un,we)<=Ir&&Hr.push(Qt[ua]);continue}const Li=Math.floor((mi+Ti)/2),tr=mn[2*Li],ha=mn[2*Li+1];it(tr,ha,Un,we)<=Ir&&Hr.push(Qt[Li]);const ti=(Ri+1)%2;(Ri===0?Un-En<=tr:we-En<=ha)&&(er.push(mi),er.push(Li-1),er.push(ti)),(Ri===0?Un+En>=tr:we+En>=ha)&&(er.push(Li+1),er.push(Ti),er.push(ti))}return Hr}(this.ids,this.coords,dt,xt,Nt,this.nodeSize)}}const Be={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:jt=>jt},Ve=Math.fround||(He=new Float32Array(1),jt=>(He[0]=+jt,He[0]));var He;class gt{constructor(dt){this.options=vt(Object.create(Be),dt),this.trees=new Array(this.options.maxZoom+1)}load(dt){const{log:xt,minZoom:Nt,maxZoom:Qt,nodeSize:mn}=this.options;xt&&console.time("total time");const Un=`prepare ${dt.length} points`;xt&&console.time(Un),this.points=dt;let we=[];for(let En=0;En<dt.length;En++)dt[En].geometry&&we.push(Ze(dt[En],En));this.trees[Qt+1]=new De(we,Ft,Ot,mn,Float32Array),xt&&console.timeEnd(Un);for(let En=Qt;En>=Nt;En--){const Kn=+Date.now();we=this._cluster(we,En),this.trees[En]=new De(we,Ft,Ot,mn,Float32Array),xt&&console.log("z%d: %d clusters in %dms",En,we.length,+Date.now()-Kn)}return xt&&console.timeEnd("total time"),this}getClusters(dt,xt){let Nt=((dt[0]+180)%360+360)%360-180;const Qt=Math.max(-90,Math.min(90,dt[1]));let mn=dt[2]===180?180:((dt[2]+180)%360+360)%360-180;const Un=Math.max(-90,Math.min(90,dt[3]));if(dt[2]-dt[0]>=360)Nt=-180,mn=180;else if(Nt>mn){const er=this.getClusters([Nt,Qt,180,Un],xt),Hr=this.getClusters([-180,Qt,mn,Un],xt);return er.concat(Hr)}const we=this.trees[this._limitZoom(xt)],En=we.range(Ne(Nt),ze(Un),Ne(mn),ze(Qt)),Kn=[];for(const er of En){const Hr=we.points[er];Kn.push(Hr.numPoints?at(Hr):this.points[Hr.index])}return Kn}getChildren(dt){const xt=this._getOriginId(dt),Nt=this._getOriginZoom(dt),Qt="No cluster with the specified id.",mn=this.trees[Nt];if(!mn)throw new Error(Qt);const Un=mn.points[xt];if(!Un)throw new Error(Qt);const we=this.options.radius/(this.options.extent*Math.pow(2,Nt-1)),En=mn.within(Un.x,Un.y,we),Kn=[];for(const er of En){const Hr=mn.points[er];Hr.parentId===dt&&Kn.push(Hr.numPoints?at(Hr):this.points[Hr.index])}if(Kn.length===0)throw new Error(Qt);return Kn}getLeaves(dt,xt,Nt){const Qt=[];return this._appendLeaves(Qt,dt,xt=xt||10,Nt=Nt||0,0),Qt}getTile(dt,xt,Nt){const Qt=this.trees[this._limitZoom(dt)],mn=Math.pow(2,dt),{extent:Un,radius:we}=this.options,En=we/Un,Kn=(Nt-En)/mn,er=(Nt+1+En)/mn,Hr={features:[]};return this._addTileFeatures(Qt.range((xt-En)/mn,Kn,(xt+1+En)/mn,er),Qt.points,xt,Nt,mn,Hr),xt===0&&this._addTileFeatures(Qt.range(1-En/mn,Kn,1,er),Qt.points,mn,Nt,mn,Hr),xt===mn-1&&this._addTileFeatures(Qt.range(0,Kn,En/mn,er),Qt.points,-1,Nt,mn,Hr),Hr.features.length?Hr:null}getClusterExpansionZoom(dt){let xt=this._getOriginZoom(dt)-1;for(;xt<=this.options.maxZoom;){const Nt=this.getChildren(dt);if(xt++,Nt.length!==1)break;dt=Nt[0].properties.cluster_id}return xt}_appendLeaves(dt,xt,Nt,Qt,mn){const Un=this.getChildren(xt);for(const we of Un){const En=we.properties;if(En&&En.cluster?mn+En.point_count<=Qt?mn+=En.point_count:mn=this._appendLeaves(dt,En.cluster_id,Nt,Qt,mn):mn<Qt?mn++:dt.push(we),dt.length===Nt)break}return mn}_addTileFeatures(dt,xt,Nt,Qt,mn,Un){for(const we of dt){const En=xt[we],Kn=En.numPoints;let er,Hr,Ir;if(Kn)er=Lt(En),Hr=En.x,Ir=En.y;else{const mi=this.points[En.index];er=mi.properties,Hr=Ne(mi.geometry.coordinates[0]),Ir=ze(mi.geometry.coordinates[1])}const Ri={type:1,geometry:[[Math.round(this.options.extent*(Hr*mn-Nt)),Math.round(this.options.extent*(Ir*mn-Qt))]],tags:er};let Ti;Kn?Ti=En.id:this.options.generateId?Ti=En.index:this.points[En.index].id&&(Ti=this.points[En.index].id),Ti!==void 0&&(Ri.id=Ti),Un.features.push(Ri)}}_limitZoom(dt){return Math.max(this.options.minZoom,Math.min(+dt,this.options.maxZoom+1))}_cluster(dt,xt){const Nt=[],{radius:Qt,extent:mn,reduce:Un,minPoints:we}=this.options,En=Qt/(mn*Math.pow(2,xt));for(let Kn=0;Kn<dt.length;Kn++){const er=dt[Kn];if(er.zoom<=xt)continue;er.zoom=xt;const Hr=this.trees[xt+1],Ir=Hr.within(er.x,er.y,En),Ri=er.numPoints||1;let Ti=Ri;for(const mi of Ir){const Li=Hr.points[mi];Li.zoom>xt&&(Ti+=Li.numPoints||1)}if(Ti>Ri&&Ti>=we){let mi=er.x*Ri,Li=er.y*Ri,tr=Un&&Ri>1?this._map(er,!0):null;const ha=(Kn<<5)+(xt+1)+this.points.length;for(const ti of Ir){const ua=Hr.points[ti];if(ua.zoom<=xt)continue;ua.zoom=xt;const Va=ua.numPoints||1;mi+=ua.x*Va,Li+=ua.y*Va,ua.parentId=ha,Un&&(tr||(tr=this._map(er,!0)),Un(tr,this._map(ua)))}er.parentId=ha,Nt.push(dn(mi/Ti,Li/Ti,ha,Ti,tr))}else if(Nt.push(er),Ti>1)for(const mi of Ir){const Li=Hr.points[mi];Li.zoom<=xt||(Li.zoom=xt,Nt.push(Li))}}return Nt}_getOriginId(dt){return dt-this.points.length>>5}_getOriginZoom(dt){return(dt-this.points.length)%32}_map(dt,xt){if(dt.numPoints)return xt?vt({},dt.properties):dt.properties;const Nt=this.points[dt.index].properties,Qt=this.options.map(Nt);return xt&&Qt===Nt?vt({},Qt):Qt}}function dn(jt,dt,xt,Nt,Qt){return{x:Ve(jt),y:Ve(dt),zoom:1/0,id:xt,parentId:-1,numPoints:Nt,properties:Qt}}function Ze(jt,dt){const[xt,Nt]=jt.geometry.coordinates;return{x:Ve(Ne(xt)),y:Ve(ze(Nt)),zoom:1/0,index:dt,parentId:-1}}function at(jt){return{type:"Feature",id:jt.id,properties:Lt(jt),geometry:{type:"Point",coordinates:[(dt=jt.x,360*(dt-.5)),Ke(jt.y)]}};var dt}function Lt(jt){const dt=jt.numPoints,xt=dt>=1e4?`${Math.round(dt/1e3)}k`:dt>=1e3?Math.round(dt/100)/10+"k":dt;return vt(vt({},jt.properties),{cluster:!0,cluster_id:jt.id,point_count:dt,point_count_abbreviated:xt})}function Ne(jt){return jt/360+.5}function ze(jt){const dt=Math.sin(jt*Math.PI/180),xt=.5-.25*Math.log((1+dt)/(1-dt))/Math.PI;return xt<0?0:xt>1?1:xt}function Ke(jt){const dt=(180-360*jt)*Math.PI/180;return 360*Math.atan(Math.exp(dt))/Math.PI-90}function vt(jt,dt){for(const xt in dt)jt[xt]=dt[xt];return jt}function Ft(jt){return jt.x}function Ot(jt){return jt.y}function _t(jt,dt,xt,Nt){for(var Qt,mn=Nt,Un=xt-dt>>1,we=xt-dt,En=jt[dt],Kn=jt[dt+1],er=jt[xt],Hr=jt[xt+1],Ir=dt+3;Ir<xt;Ir+=3){var Ri=Tn(jt[Ir],jt[Ir+1],En,Kn,er,Hr);if(Ri>mn)Qt=Ir,mn=Ri;else if(Ri===mn){var Ti=Math.abs(Ir-Un);Ti<we&&(Qt=Ir,we=Ti)}}mn>Nt&&(Qt-dt>3&&_t(jt,dt,Qt,Nt),jt[Qt+2]=mn,xt-Qt>3&&_t(jt,Qt,xt,Nt))}function Tn(jt,dt,xt,Nt,Qt,mn){var Un=Qt-xt,we=mn-Nt;if(Un!==0||we!==0){var En=((jt-xt)*Un+(dt-Nt)*we)/(Un*Un+we*we);En>1?(xt=Qt,Nt=mn):En>0&&(xt+=Un*En,Nt+=we*En)}return(Un=jt-xt)*Un+(we=dt-Nt)*we}function on(jt,dt,xt,Nt){var Qt={id:jt===void 0?null:jt,type:dt,geometry:xt,tags:Nt,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(mn){var Un=mn.geometry,we=mn.type;if(we==="Point"||we==="MultiPoint"||we==="LineString")$n(mn,Un);else if(we==="Polygon"||we==="MultiLineString")for(var En=0;En<Un.length;En++)$n(mn,Un[En]);else if(we==="MultiPolygon")for(En=0;En<Un.length;En++)for(var Kn=0;Kn<Un[En].length;Kn++)$n(mn,Un[En][Kn])}(Qt),Qt}function $n(jt,dt){for(var xt=0;xt<dt.length;xt+=3)jt.minX=Math.min(jt.minX,dt[xt]),jt.minY=Math.min(jt.minY,dt[xt+1]),jt.maxX=Math.max(jt.maxX,dt[xt]),jt.maxY=Math.max(jt.maxY,dt[xt+1])}function Zt(jt,dt,xt,Nt){if(dt.geometry){var Qt=dt.geometry.coordinates,mn=dt.geometry.type,Un=Math.pow(xt.tolerance/((1<<xt.maxZoom)*xt.extent),2),we=[],En=dt.id;if(xt.promoteId?En=dt.properties[xt.promoteId]:xt.generateId&&(En=Nt||0),mn==="Point")Et(Qt,we);else if(mn==="MultiPoint")for(var Kn=0;Kn<Qt.length;Kn++)Et(Qt[Kn],we);else if(mn==="LineString")rn(Qt,we,Un,!1);else if(mn==="MultiLineString"){if(xt.lineMetrics){for(Kn=0;Kn<Qt.length;Kn++)rn(Qt[Kn],we=[],Un,!1),jt.push(on(En,"LineString",we,dt.properties));return}wt(Qt,we,Un,!1)}else if(mn==="Polygon")wt(Qt,we,Un,!0);else{if(mn!=="MultiPolygon"){if(mn==="GeometryCollection"){for(Kn=0;Kn<dt.geometry.geometries.length;Kn++)Zt(jt,{id:En,geometry:dt.geometry.geometries[Kn],properties:dt.properties},xt,Nt);return}throw new Error("Input data is not a valid GeoJSON object.")}for(Kn=0;Kn<Qt.length;Kn++){var er=[];wt(Qt[Kn],er,Un,!0),we.push(er)}}jt.push(on(En,mn,we,dt.properties))}}function Et(jt,dt){dt.push(Yn(jt[0])),dt.push(pt(jt[1])),dt.push(0)}function rn(jt,dt,xt,Nt){for(var Qt,mn,Un=0,we=0;we<jt.length;we++){var En=Yn(jt[we][0]),Kn=pt(jt[we][1]);dt.push(En),dt.push(Kn),dt.push(0),we>0&&(Un+=Nt?(Qt*Kn-En*mn)/2:Math.sqrt(Math.pow(En-Qt,2)+Math.pow(Kn-mn,2))),Qt=En,mn=Kn}var er=dt.length-3;dt[2]=1,_t(dt,0,er,xt),dt[er+2]=1,dt.size=Math.abs(Un),dt.start=0,dt.end=dt.size}function wt(jt,dt,xt,Nt){for(var Qt=0;Qt<jt.length;Qt++){var mn=[];rn(jt[Qt],mn,xt,Nt),dt.push(mn)}}function Yn(jt){return jt/360+.5}function pt(jt){var dt=Math.sin(jt*Math.PI/180),xt=.5-.25*Math.log((1+dt)/(1-dt))/Math.PI;return xt<0?0:xt>1?1:xt}function Fe(jt,dt,xt,Nt,Qt,mn,Un,we){if(Nt/=dt,mn>=(xt/=dt)&&Un<Nt)return jt;if(Un<xt||mn>=Nt)return null;for(var En=[],Kn=0;Kn<jt.length;Kn++){var er=jt[Kn],Hr=er.geometry,Ir=er.type,Ri=Qt===0?er.minX:er.minY,Ti=Qt===0?er.maxX:er.maxY;if(Ri>=xt&&Ti<Nt)En.push(er);else if(!(Ti<xt||Ri>=Nt)){var mi=[];if(Ir==="Point"||Ir==="MultiPoint")Ie(Hr,mi,xt,Nt,Qt);else if(Ir==="LineString")ct(Hr,mi,xt,Nt,Qt,!1,we.lineMetrics);else if(Ir==="MultiLineString")sn(Hr,mi,xt,Nt,Qt,!1);else if(Ir==="Polygon")sn(Hr,mi,xt,Nt,Qt,!0);else if(Ir==="MultiPolygon")for(var Li=0;Li<Hr.length;Li++){var tr=[];sn(Hr[Li],tr,xt,Nt,Qt,!0),tr.length&&mi.push(tr)}if(mi.length){if(we.lineMetrics&&Ir==="LineString"){for(Li=0;Li<mi.length;Li++)En.push(on(er.id,Ir,mi[Li],er.tags));continue}Ir!=="LineString"&&Ir!=="MultiLineString"||(mi.length===1?(Ir="LineString",mi=mi[0]):Ir="MultiLineString"),Ir!=="Point"&&Ir!=="MultiPoint"||(Ir=mi.length===3?"Point":"MultiPoint"),En.push(on(er.id,Ir,mi,er.tags))}}}return En.length?En:null}function Ie(jt,dt,xt,Nt,Qt){for(var mn=0;mn<jt.length;mn+=3){var Un=jt[mn+Qt];Un>=xt&&Un<=Nt&&(dt.push(jt[mn]),dt.push(jt[mn+1]),dt.push(jt[mn+2]))}}function ct(jt,dt,xt,Nt,Qt,mn,Un){for(var we,En,Kn=Ht(jt),er=Qt===0?Dr:Kr,Hr=jt.start,Ir=0;Ir<jt.length-3;Ir+=3){var Ri=jt[Ir],Ti=jt[Ir+1],mi=jt[Ir+2],Li=jt[Ir+3],tr=jt[Ir+4],ha=Qt===0?Ri:Ti,ti=Qt===0?Li:tr,ua=!1;Un&&(we=Math.sqrt(Math.pow(Ri-Li,2)+Math.pow(Ti-tr,2))),ha<xt?ti>xt&&(En=er(Kn,Ri,Ti,Li,tr,xt),Un&&(Kn.start=Hr+we*En)):ha>Nt?ti<Nt&&(En=er(Kn,Ri,Ti,Li,tr,Nt),Un&&(Kn.start=Hr+we*En)):yn(Kn,Ri,Ti,mi),ti<xt&&ha>=xt&&(En=er(Kn,Ri,Ti,Li,tr,xt),ua=!0),ti>Nt&&ha<=Nt&&(En=er(Kn,Ri,Ti,Li,tr,Nt),ua=!0),!mn&&ua&&(Un&&(Kn.end=Hr+we*En),dt.push(Kn),Kn=Ht(jt)),Un&&(Hr+=we)}var Va=jt.length-3;Ri=jt[Va],Ti=jt[Va+1],mi=jt[Va+2],(ha=Qt===0?Ri:Ti)>=xt&&ha<=Nt&&yn(Kn,Ri,Ti,mi),Va=Kn.length-3,mn&&Va>=3&&(Kn[Va]!==Kn[0]||Kn[Va+1]!==Kn[1])&&yn(Kn,Kn[0],Kn[1],Kn[2]),Kn.length&&dt.push(Kn)}function Ht(jt){var dt=[];return dt.size=jt.size,dt.start=jt.start,dt.end=jt.end,dt}function sn(jt,dt,xt,Nt,Qt,mn){for(var Un=0;Un<jt.length;Un++)ct(jt[Un],dt,xt,Nt,Qt,mn,!1)}function yn(jt,dt,xt,Nt){jt.push(dt),jt.push(xt),jt.push(Nt)}function Dr(jt,dt,xt,Nt,Qt,mn){var Un=(mn-dt)/(Nt-dt);return jt.push(mn),jt.push(xt+(Qt-xt)*Un),jt.push(1),Un}function Kr(jt,dt,xt,Nt,Qt,mn){var Un=(mn-xt)/(Qt-xt);return jt.push(dt+(Nt-dt)*Un),jt.push(mn),jt.push(1),Un}function ii(jt,dt){for(var xt=[],Nt=0;Nt<jt.length;Nt++){var Qt,mn=jt[Nt],Un=mn.type;if(Un==="Point"||Un==="MultiPoint"||Un==="LineString")Qt=_n(mn.geometry,dt);else if(Un==="MultiLineString"||Un==="Polygon"){Qt=[];for(var we=0;we<mn.geometry.length;we++)Qt.push(_n(mn.geometry[we],dt))}else if(Un==="MultiPolygon")for(Qt=[],we=0;we<mn.geometry.length;we++){for(var En=[],Kn=0;Kn<mn.geometry[we].length;Kn++)En.push(_n(mn.geometry[we][Kn],dt));Qt.push(En)}xt.push(on(mn.id,Un,Qt,mn.tags))}return xt}function _n(jt,dt){var xt=[];xt.size=jt.size,jt.start!==void 0&&(xt.start=jt.start,xt.end=jt.end);for(var Nt=0;Nt<jt.length;Nt+=3)xt.push(jt[Nt]+dt,jt[Nt+1],jt[Nt+2]);return xt}function xn(jt,dt){if(jt.transformed)return jt;var xt,Nt,Qt,mn=1<<jt.z,Un=jt.x,we=jt.y;for(xt=0;xt<jt.features.length;xt++){var En=jt.features[xt],Kn=En.geometry,er=En.type;if(En.geometry=[],er===1)for(Nt=0;Nt<Kn.length;Nt+=2)En.geometry.push(jn(Kn[Nt],Kn[Nt+1],dt,mn,Un,we));else for(Nt=0;Nt<Kn.length;Nt++){var Hr=[];for(Qt=0;Qt<Kn[Nt].length;Qt+=2)Hr.push(jn(Kn[Nt][Qt],Kn[Nt][Qt+1],dt,mn,Un,we));En.geometry.push(Hr)}}return jt.transformed=!0,jt}function jn(jt,dt,xt,Nt,Qt,mn){return[Math.round(xt*(jt*Nt-Qt)),Math.round(xt*(dt*Nt-mn))]}function ln(jt,dt,xt,Nt,Qt){for(var mn=dt===Qt.maxZoom?0:Qt.tolerance/((1<<dt)*Qt.extent),Un={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:xt,y:Nt,z:dt,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},we=0;we<jt.length;we++){Un.numFeatures++,ar(Un,jt[we],mn,Qt);var En=jt[we].minX,Kn=jt[we].minY,er=jt[we].maxX,Hr=jt[we].maxY;En<Un.minX&&(Un.minX=En),Kn<Un.minY&&(Un.minY=Kn),er>Un.maxX&&(Un.maxX=er),Hr>Un.maxY&&(Un.maxY=Hr)}return Un}function ar(jt,dt,xt,Nt){var Qt=dt.geometry,mn=dt.type,Un=[];if(mn==="Point"||mn==="MultiPoint")for(var we=0;we<Qt.length;we+=3)Un.push(Qt[we]),Un.push(Qt[we+1]),jt.numPoints++,jt.numSimplified++;else if(mn==="LineString")zr(Un,Qt,jt,xt,!1,!1);else if(mn==="MultiLineString"||mn==="Polygon")for(we=0;we<Qt.length;we++)zr(Un,Qt[we],jt,xt,mn==="Polygon",we===0);else if(mn==="MultiPolygon")for(var En=0;En<Qt.length;En++){var Kn=Qt[En];for(we=0;we<Kn.length;we++)zr(Un,Kn[we],jt,xt,!0,we===0)}if(Un.length){var er=dt.tags||null;if(mn==="LineString"&&Nt.lineMetrics){for(var Hr in er={},dt.tags)er[Hr]=dt.tags[Hr];er.mapbox_clip_start=Qt.start/Qt.size,er.mapbox_clip_end=Qt.end/Qt.size}var Ir={geometry:Un,type:mn==="Polygon"||mn==="MultiPolygon"?3:mn==="LineString"||mn==="MultiLineString"?2:1,tags:er};dt.id!==null&&(Ir.id=dt.id),jt.features.push(Ir)}}function zr(jt,dt,xt,Nt,Qt,mn){var Un=Nt*Nt;if(Nt>0&&dt.size<(Qt?Un:Nt))xt.numPoints+=dt.length/3;else{for(var we=[],En=0;En<dt.length;En+=3)(Nt===0||dt[En+2]>Un)&&(xt.numSimplified++,we.push(dt[En]),we.push(dt[En+1])),xt.numPoints++;Qt&&function(Kn,er){for(var Hr=0,Ir=0,Ri=Kn.length,Ti=Ri-2;Ir<Ri;Ti=Ir,Ir+=2)Hr+=(Kn[Ir]-Kn[Ti])*(Kn[Ir+1]+Kn[Ti+1]);if(Hr>0===er)for(Ir=0,Ri=Kn.length;Ir<Ri/2;Ir+=2){var mi=Kn[Ir],Li=Kn[Ir+1];Kn[Ir]=Kn[Ri-2-Ir],Kn[Ir+1]=Kn[Ri-1-Ir],Kn[Ri-2-Ir]=mi,Kn[Ri-1-Ir]=Li}}(we,mn),jt.push(we)}}function Jr(jt,dt){var xt=(dt=this.options=function(Qt,mn){for(var Un in mn)Qt[Un]=mn[Un];return Qt}(Object.create(this.options),dt)).debug;if(xt&&console.time("preprocess data"),dt.maxZoom<0||dt.maxZoom>24)throw new Error("maxZoom should be in the 0-24 range");if(dt.promoteId&&dt.generateId)throw new Error("promoteId and generateId cannot be used together.");var Nt=function(Qt,mn){var Un=[];if(Qt.type==="FeatureCollection")for(var we=0;we<Qt.features.length;we++)Zt(Un,Qt.features[we],mn,we);else Zt(Un,Qt.type==="Feature"?Qt:{geometry:Qt},mn);return Un}(jt,dt);this.tiles={},this.tileCoords=[],xt&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",dt.indexMaxZoom,dt.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),(Nt=function(Qt,mn){var Un=mn.buffer/mn.extent,we=Qt,En=Fe(Qt,1,-1-Un,Un,0,-1,2,mn),Kn=Fe(Qt,1,1-Un,2+Un,0,-1,2,mn);return(En||Kn)&&(we=Fe(Qt,1,-Un,1+Un,0,-1,2,mn)||[],En&&(we=ii(En,1).concat(we)),Kn&&(we=we.concat(ii(Kn,-1)))),we}(Nt,dt)).length&&this.splitTile(Nt,0,0,0),xt&&(Nt.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}function bi(jt,dt,xt){return 32*((1<<jt)*xt+dt)+jt}function hi(jt,dt){const xt=jt.tileID.canonical;if(!this._geoJSONIndex)return dt(null,null);const Nt=this._geoJSONIndex.getTile(xt.z,xt.x,xt.y);if(!Nt)return dt(null,null);const Qt=new A(Nt.features);let mn=W(Qt);mn.byteOffset===0&&mn.byteLength===mn.buffer.byteLength||(mn=new Uint8Array(mn)),dt(null,{vectorTile:Qt,rawData:mn.buffer})}Jr.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Jr.prototype.splitTile=function(jt,dt,xt,Nt,Qt,mn,Un){for(var we=[jt,dt,xt,Nt],En=this.options,Kn=En.debug;we.length;){Nt=we.pop(),xt=we.pop(),dt=we.pop(),jt=we.pop();var er=1<<dt,Hr=bi(dt,xt,Nt),Ir=this.tiles[Hr];if(!Ir&&(Kn>1&&console.time("creation"),Ir=this.tiles[Hr]=ln(jt,dt,xt,Nt,En),this.tileCoords.push({z:dt,x:xt,y:Nt}),Kn)){Kn>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",dt,xt,Nt,Ir.numFeatures,Ir.numPoints,Ir.numSimplified),console.timeEnd("creation"));var Ri="z"+dt;this.stats[Ri]=(this.stats[Ri]||0)+1,this.total++}if(Ir.source=jt,Qt){if(dt===En.maxZoom||dt===Qt)continue;var Ti=1<<Qt-dt;if(xt!==Math.floor(mn/Ti)||Nt!==Math.floor(Un/Ti))continue}else if(dt===En.indexMaxZoom||Ir.numPoints<=En.indexMaxPoints)continue;if(Ir.source=null,jt.length!==0){Kn>1&&console.time("clipping");var mi,Li,tr,ha,ti,ua,Va=.5*En.buffer/En.extent,ns=.5-Va,Xo=.5+Va,qr=1+Va;mi=Li=tr=ha=null,ti=Fe(jt,er,xt-Va,xt+Xo,0,Ir.minX,Ir.maxX,En),ua=Fe(jt,er,xt+ns,xt+qr,0,Ir.minX,Ir.maxX,En),jt=null,ti&&(mi=Fe(ti,er,Nt-Va,Nt+Xo,1,Ir.minY,Ir.maxY,En),Li=Fe(ti,er,Nt+ns,Nt+qr,1,Ir.minY,Ir.maxY,En),ti=null),ua&&(tr=Fe(ua,er,Nt-Va,Nt+Xo,1,Ir.minY,Ir.maxY,En),ha=Fe(ua,er,Nt+ns,Nt+qr,1,Ir.minY,Ir.maxY,En),ua=null),Kn>1&&console.timeEnd("clipping"),we.push(mi||[],dt+1,2*xt,2*Nt),we.push(Li||[],dt+1,2*xt,2*Nt+1),we.push(tr||[],dt+1,2*xt+1,2*Nt),we.push(ha||[],dt+1,2*xt+1,2*Nt+1)}}},Jr.prototype.getTile=function(jt,dt,xt){var Nt=this.options,Qt=Nt.extent,mn=Nt.debug;if(jt<0||jt>24)return null;var Un=1<<jt,we=bi(jt,dt=(dt%Un+Un)%Un,xt);if(this.tiles[we])return xn(this.tiles[we],Qt);mn>1&&console.log("drilling down to z%d-%d-%d",jt,dt,xt);for(var En,Kn=jt,er=dt,Hr=xt;!En&&Kn>0;)Kn--,er=Math.floor(er/2),Hr=Math.floor(Hr/2),En=this.tiles[bi(Kn,er,Hr)];return En&&En.source?(mn>1&&console.log("found parent tile z%d-%d-%d",Kn,er,Hr),mn>1&&console.time("drilling down"),this.splitTile(En.source,Kn,er,Hr,jt,dt,xt),mn>1&&console.timeEnd("drilling down"),this.tiles[we]?xn(this.tiles[we],Qt):null):null};class wi extends l.VectorTileWorkerSource{constructor(dt,xt,Nt,Qt,mn){super(dt,xt,Nt,Qt,hi),mn&&(this.loadGeoJSON=mn)}loadData(dt,xt){const Nt=dt&&dt.request,Qt=Nt&&Nt.collectResourceTiming;this.loadGeoJSON(dt,(mn,Un)=>{if(mn||!Un)return xt(mn);if(typeof Un!="object")return xt(new Error(`Input data given to '${dt.source}' is not a valid GeoJSON object.`));{b(Un,!0);try{if(dt.filter){const En=l.createExpression(dt.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(En.result==="error")throw new Error(En.value.map(er=>`${er.key}: ${er.message}`).join(", "));Un={type:"FeatureCollection",features:Un.features.filter(er=>En.value.evaluate({zoom:0},er))}}this._geoJSONIndex=dt.cluster?new gt(function({superclusterOptions:En,clusterProperties:Kn}){if(!Kn||!En)return En;const er={},Hr={},Ir={accumulated:null,zoom:0},Ri={properties:null},Ti=Object.keys(Kn);for(const mi of Ti){const[Li,tr]=Kn[mi],ha=l.createExpression(tr),ti=l.createExpression(typeof Li=="string"?[Li,["accumulated"],["get",mi]]:Li);er[mi]=ha.value,Hr[mi]=ti.value}return En.map=mi=>{Ri.properties=mi;const Li={};for(const tr of Ti)Li[tr]=er[tr].evaluate(Ir,Ri);return Li},En.reduce=(mi,Li)=>{Ri.properties=Li;for(const tr of Ti)Ir.accumulated=mi[tr],mi[tr]=Hr[tr].evaluate(Ir,Ri)},En}(dt)).load(Un.features):function(En,Kn){return new Jr(En,Kn)}(Un,dt.geojsonVtOptions)}catch(En){return xt(En)}this.loaded={};const we={};if(Qt){const En=l.getPerformanceMeasurement(Nt);En&&(we.resourceTiming={},we.resourceTiming[dt.source]=JSON.parse(JSON.stringify(En)))}xt(null,we)}})}reloadTile(dt,xt){const Nt=this.loaded;return Nt&&Nt[dt.uid]?super.reloadTile(dt,xt):this.loadTile(dt,xt)}loadGeoJSON(dt,xt){if(dt.request)l.getJSON(dt.request,xt);else{if(typeof dt.data!="string")return xt(new Error(`Input data given to '${dt.source}' is not a valid GeoJSON object.`));try{return xt(null,JSON.parse(dt.data))}catch(Nt){return xt(new Error(`Input data given to '${dt.source}' is not a valid GeoJSON object.`))}}}getClusterExpansionZoom(dt,xt){try{xt(null,this._geoJSONIndex.getClusterExpansionZoom(dt.clusterId))}catch(Nt){xt(Nt)}}getClusterChildren(dt,xt){try{xt(null,this._geoJSONIndex.getChildren(dt.clusterId))}catch(Nt){xt(Nt)}}getClusterLeaves(dt,xt){try{xt(null,this._geoJSONIndex.getLeaves(dt.clusterId,dt.limit,dt.offset))}catch(Nt){xt(Nt)}}}class Ca{constructor(dt){this.self=dt,this.actor=new l.Actor(dt,this),this.layerIndexes={},this.availableImages={},this.isSpriteLoaded={},this.projections={},this.defaultProjection=l.getProjection({name:"mercator"}),this.workerSourceTypes={vector:l.VectorTileWorkerSource,geojson:wi},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=(xt,Nt)=>{if(this.workerSourceTypes[xt])throw new Error(`Worker source with name "${xt}" already registered.`);this.workerSourceTypes[xt]=Nt},this.self.registerRTLTextPlugin=xt=>{if(l.plugin.isParsed())throw new Error("RTL text plugin already registered.");l.plugin.applyArabicShaping=xt.applyArabicShaping,l.plugin.processBidirectionalText=xt.processBidirectionalText,l.plugin.processStyledBidirectionalText=xt.processStyledBidirectionalText}}clearCaches(dt,xt,Nt){delete this.layerIndexes[dt],delete this.availableImages[dt],delete this.workerSources[dt],delete this.demWorkerSources[dt],Nt()}checkIfReady(dt,xt,Nt){Nt()}setReferrer(dt,xt){this.referrer=xt}spriteLoaded(dt,xt){this.isSpriteLoaded[dt]=xt;for(const Nt in this.workerSources[dt]){const Qt=this.workerSources[dt][Nt];for(const mn in Qt)Qt[mn]instanceof l.VectorTileWorkerSource&&(Qt[mn].isSpriteLoaded=xt,Qt[mn].fire(new l.Event("isSpriteLoaded")))}}setImages(dt,xt,Nt){this.availableImages[dt]=xt;for(const Qt in this.workerSources[dt]){const mn=this.workerSources[dt][Qt];for(const Un in mn)mn[Un].availableImages=xt}Nt()}enableTerrain(dt,xt,Nt){this.terrain=xt,Nt()}setProjection(dt,xt){this.projections[dt]=l.getProjection(xt)}setLayers(dt,xt,Nt){this.getLayerIndex(dt).replace(xt),Nt()}updateLayers(dt,xt,Nt){this.getLayerIndex(dt).update(xt.layers,xt.removedIds),Nt()}loadTile(dt,xt,Nt){const Qt=this.enableTerrain?l.extend({enableTerrain:this.terrain},xt):xt;Qt.projection=this.projections[dt]||this.defaultProjection,this.getWorkerSource(dt,xt.type,xt.source).loadTile(Qt,Nt)}loadDEMTile(dt,xt,Nt){const Qt=this.enableTerrain?l.extend({buildQuadTree:this.terrain},xt):xt;this.getDEMWorkerSource(dt,xt.source).loadTile(Qt,Nt)}reloadTile(dt,xt,Nt){const Qt=this.enableTerrain?l.extend({enableTerrain:this.terrain},xt):xt;Qt.projection=this.projections[dt]||this.defaultProjection,this.getWorkerSource(dt,xt.type,xt.source).reloadTile(Qt,Nt)}abortTile(dt,xt,Nt){this.getWorkerSource(dt,xt.type,xt.source).abortTile(xt,Nt)}removeTile(dt,xt,Nt){this.getWorkerSource(dt,xt.type,xt.source).removeTile(xt,Nt)}removeSource(dt,xt,Nt){if(!this.workerSources[dt]||!this.workerSources[dt][xt.type]||!this.workerSources[dt][xt.type][xt.source])return;const Qt=this.workerSources[dt][xt.type][xt.source];delete this.workerSources[dt][xt.type][xt.source],Qt.removeSource!==void 0?Qt.removeSource(xt,Nt):Nt()}loadWorkerSource(dt,xt,Nt){try{this.self.importScripts(xt.url),Nt()}catch(Qt){Nt(Qt.toString())}}syncRTLPluginState(dt,xt,Nt){try{l.plugin.setState(xt);const Qt=l.plugin.getPluginURL();if(l.plugin.isLoaded()&&!l.plugin.isParsed()&&Qt!=null){this.self.importScripts(Qt);const mn=l.plugin.isParsed();Nt(mn?void 0:new Error(`RTL Text Plugin failed to import scripts from ${Qt}`),mn)}}catch(Qt){Nt(Qt.toString())}}getAvailableImages(dt){let xt=this.availableImages[dt];return xt||(xt=[]),xt}getLayerIndex(dt){let xt=this.layerIndexes[dt];return xt||(xt=this.layerIndexes[dt]=new w),xt}getWorkerSource(dt,xt,Nt){return this.workerSources[dt]||(this.workerSources[dt]={}),this.workerSources[dt][xt]||(this.workerSources[dt][xt]={}),this.workerSources[dt][xt][Nt]||(this.workerSources[dt][xt][Nt]=new this.workerSourceTypes[xt]({send:(Qt,mn,Un,we,En,Kn)=>{this.actor.send(Qt,mn,Un,dt,En,Kn)},scheduler:this.actor.scheduler},this.getLayerIndex(dt),this.getAvailableImages(dt),this.isSpriteLoaded[dt])),this.workerSources[dt][xt][Nt]}getDEMWorkerSource(dt,xt){return this.demWorkerSources[dt]||(this.demWorkerSources[dt]={}),this.demWorkerSources[dt][xt]||(this.demWorkerSources[dt][xt]=new _),this.demWorkerSources[dt][xt]}enforceCacheSizeLimit(dt,xt){l.enforceCacheSizeLimit(xt)}getWorkerPerformanceMetrics(dt,xt,Nt){Nt(void 0,void 0)}}return typeof WorkerGlobalScope!="undefined"&&typeof self!="undefined"&&self instanceof WorkerGlobalScope&&(self.worker=new Ca(self)),Ca}),s(["./shared"],function(l){var v=x;function x(U){return!function(f){return typeof window=="undefined"||typeof document=="undefined"?"not a browser":Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray?Function.prototype&&Function.prototype.bind?Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions?"JSON"in window&&"parse"in JSON&&"stringify"in JSON?function(){if(!("Worker"in window&&"Blob"in window&&"URL"in window))return!1;var Z,ue,he=new Blob([""],{type:"text/javascript"}),_e=URL.createObjectURL(he);try{ue=new Worker(_e),Z=!0}catch(Ce){Z=!1}return ue&&ue.terminate(),URL.revokeObjectURL(_e),Z}()?"Uint8ClampedArray"in window?ArrayBuffer.isView?function(){var Z=document.createElement("canvas");Z.width=Z.height=1;var ue=Z.getContext("2d");if(!ue)return!1;var he=ue.getImageData(0,0,1,1);return he&&he.width===Z.width}()?(w[k=f&&f.failIfMajorPerformanceCaveat]===void 0&&(w[k]=function(Z){var ue,he=function(_e){var Ce=document.createElement("canvas"),Xe=Object.create(x.webGLContextAttributes);return Xe.failIfMajorPerformanceCaveat=_e,Ce.getContext("webgl2",Xe)||Ce.getContext("experimental-webgl",Xe)}(Z);if(!he)return!1;try{ue=he.createShader(he.VERTEX_SHADER)}catch(_e){return!1}return!(!ue||he.isContextLost())&&(he.shaderSource(ue,"void main() {}"),he.compileShader(ue),he.getShaderParameter(ue,he.COMPILE_STATUS)===!0)}(k)),w[k]?document.documentMode?"insufficient ECMAScript 6 support":void 0:"insufficient WebGL support"):"insufficient Canvas/getImageData support":"insufficient ArrayBuffer support":"insufficient Uint8ClampedArray support":"insufficient worker support":"insufficient JSON support":"insufficient Object support":"insufficient Function support":"insufficent Array support";var k}(U)}var w={};function _(U,f){if(Array.isArray(U)){if(!Array.isArray(f)||U.length!==f.length)return!1;for(let k=0;k<U.length;k++)if(!_(U[k],f[k]))return!1;return!0}if(typeof U=="object"&&U!==null&&f!==null){if(typeof f!="object"||Object.keys(U).length!==Object.keys(f).length)return!1;for(const k in U)if(!_(U[k],f[k]))return!1;return!0}return U===f}function b(U,f,k){const Z=l.window.document.createElement(U);return f!==void 0&&(Z.className=f),k&&k.appendChild(Z),Z}function E(U,f,k){const Z=l.window.document.createElementNS("http://www.w3.org/2000/svg",U);for(const ue of Object.keys(f))Z.setAttributeNS(null,ue,f[ue]);return k&&k.appendChild(Z),Z}x.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0};const I=l.window.document&&l.window.document.documentElement.style,O=I&&I.userSelect!==void 0?"userSelect":"WebkitUserSelect";let N;function A(){I&&O&&(N=I[O],I[O]="none")}function z(){I&&O&&(I[O]=N)}function G(U){U.preventDefault(),U.stopPropagation(),l.window.removeEventListener("click",G,!0)}function V(){l.window.addEventListener("click",G,!0),l.window.setTimeout(()=>{l.window.removeEventListener("click",G,!0)},0)}function ne(U,f){const k=U.getBoundingClientRect();return q(U,k,f)}function W(U,f){const k=U.getBoundingClientRect(),Z=[];for(let ue=0;ue<f.length;ue++)Z.push(q(U,k,f[ue]));return Z}function B(U){return l.window.InstallTrigger!==void 0&&U.button===2&&U.ctrlKey&&l.window.navigator.platform.toUpperCase().indexOf("MAC")>=0?0:U.button}function q(U,f,k){const Z=U.offsetWidth===f.width?1:U.offsetWidth/f.width;return new l.pointGeometry((k.clientX-f.left)*Z,(k.clientY-f.top)*Z)}function D(U,f){var k=f[0],Z=f[1],ue=f[2],he=f[3],_e=k*he-ue*Z;return _e?(U[0]=he*(_e=1/_e),U[1]=-Z*_e,U[2]=-ue*_e,U[3]=k*_e,U):null}function F(U){const{userImage:f}=U;return!!(f&&f.render&&f.render())&&(U.data.replace(new Uint8Array(f.data.buffer)),!0)}class re extends l.Evented{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new l.RGBAImage({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(f){if(this.loaded!==f&&(this.loaded=f,f)){for(const{ids:k,callback:Z}of this.requestors)this._notify(k,Z);this.requestors=[]}}hasImage(f){return!!this.getImage(f)}getImage(f){return this.images[f]}addImage(f,k){this._validate(f,k)&&(this.images[f]=k)}_validate(f,k){let Z=!0;return this._validateStretch(k.stretchX,k.data&&k.data.width)||(this.fire(new l.ErrorEvent(new Error(`Image "${f}" has invalid "stretchX" value`))),Z=!1),this._validateStretch(k.stretchY,k.data&&k.data.height)||(this.fire(new l.ErrorEvent(new Error(`Image "${f}" has invalid "stretchY" value`))),Z=!1),this._validateContent(k.content,k)||(this.fire(new l.ErrorEvent(new Error(`Image "${f}" has invalid "content" value`))),Z=!1),Z}_validateStretch(f,k){if(!f)return!0;let Z=0;for(const ue of f){if(ue[0]<Z||ue[1]<ue[0]||k<ue[1])return!1;Z=ue[1]}return!0}_validateContent(f,k){return!(f&&(f.length!==4||f[0]<0||k.data.width<f[0]||f[1]<0||k.data.height<f[1]||f[2]<0||k.data.width<f[2]||f[3]<0||k.data.height<f[3]||f[2]<f[0]||f[3]<f[1]))}updateImage(f,k){k.version=this.images[f].version+1,this.images[f]=k,this.updatedImages[f]=!0}removeImage(f){const k=this.images[f];delete this.images[f],delete this.patterns[f],k.userImage&&k.userImage.onRemove&&k.userImage.onRemove()}listImages(){return Object.keys(this.images)}getImages(f,k){let Z=!0;if(!this.isLoaded())for(const ue of f)this.images[ue]||(Z=!1);this.isLoaded()||Z?this._notify(f,k):this.requestors.push({ids:f,callback:k})}_notify(f,k){const Z={};for(const ue of f){this.images[ue]||this.fire(new l.Event("styleimagemissing",{id:ue}));const he=this.images[ue];he?Z[ue]={data:he.data.clone(),pixelRatio:he.pixelRatio,sdf:he.sdf,version:he.version,stretchX:he.stretchX,stretchY:he.stretchY,content:he.content,hasRenderCallback:Boolean(he.userImage&&he.userImage.render)}:l.warnOnce(`Image "${ue}" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.`)}k(null,Z)}getPixelSize(){const{width:f,height:k}=this.atlasImage;return{width:f,height:k}}getPattern(f){const k=this.patterns[f],Z=this.getImage(f);if(!Z)return null;if(k&&k.position.version===Z.version)return k.position;if(k)k.position.version=Z.version;else{const ue={w:Z.data.width+2,h:Z.data.height+2,x:0,y:0},he=new l.ImagePosition(ue,Z);this.patterns[f]={bin:ue,position:he}}return this._updatePatternAtlas(),this.patterns[f].position}bind(f){const k=f.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new l.Texture(f,this.atlasImage,k.RGBA),this.atlasTexture.bind(k.LINEAR,k.CLAMP_TO_EDGE)}_updatePatternAtlas(){const f=[];for(const he in this.patterns)f.push(this.patterns[he].bin);const{w:k,h:Z}=l.potpack(f),ue=this.atlasImage;ue.resize({width:k||1,height:Z||1});for(const he in this.patterns){const{bin:_e}=this.patterns[he],Ce=_e.x+1,Xe=_e.y+1,nt=this.images[he].data,lt=nt.width,yt=nt.height;l.RGBAImage.copy(nt,ue,{x:0,y:0},{x:Ce,y:Xe},{width:lt,height:yt}),l.RGBAImage.copy(nt,ue,{x:0,y:yt-1},{x:Ce,y:Xe-1},{width:lt,height:1}),l.RGBAImage.copy(nt,ue,{x:0,y:0},{x:Ce,y:Xe+yt},{width:lt,height:1}),l.RGBAImage.copy(nt,ue,{x:lt-1,y:0},{x:Ce-1,y:Xe},{width:1,height:yt}),l.RGBAImage.copy(nt,ue,{x:0,y:0},{x:Ce+lt,y:Xe},{width:1,height:yt})}this.dirty=!0}beginFrame(){this.callbackDispatchedThisFrame={}}dispatchRenderCallbacks(f){for(const k of f){if(this.callbackDispatchedThisFrame[k])continue;this.callbackDispatchedThisFrame[k]=!0;const Z=this.images[k];F(Z)&&this.updateImage(k,Z)}}}const le=new l.Properties({anchor:new l.DataConstantProperty(l.spec.light.anchor),position:new class{constructor(){this.specification=l.spec.light.position}possiblyEvaluate(U,f){return function([k,Z,ue]){const he=l.degToRad(Z+90),_e=l.degToRad(ue);return{x:k*Math.cos(he)*Math.sin(_e),y:k*Math.sin(he)*Math.sin(_e),z:k*Math.cos(_e),azimuthal:Z,polar:ue}}(U.expression.evaluate(f))}interpolate(U,f,k){return{x:l.number(U.x,f.x,k),y:l.number(U.y,f.y,k),z:l.number(U.z,f.z,k),azimuthal:l.number(U.azimuthal,f.azimuthal,k),polar:l.number(U.polar,f.polar,k)}}},color:new l.DataConstantProperty(l.spec.light.color),intensity:new l.DataConstantProperty(l.spec.light.intensity)}),fe="-transition";class me extends l.Evented{constructor(f){super(),this._transitionable=new l.Transitionable(le),this.setLight(f),this._transitioning=this._transitionable.untransitioned()}getLight(){return this._transitionable.serialize()}setLight(f,k={}){if(!this._validate(l.validateLight,f,k))for(const Z in f){const ue=f[Z];l.endsWith(Z,fe)?this._transitionable.setTransition(Z.slice(0,-fe.length),ue):this._transitionable.setValue(Z,ue)}}updateTransitions(f){this._transitioning=this._transitionable.transitioned(f,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(f){this.properties=this._transitioning.possiblyEvaluate(f)}_validate(f,k,Z){return(!Z||Z.validate!==!1)&&l.emitValidationErrors(this,f.call(l.validateStyle,l.extend({value:k,style:{glyphs:!0,sprite:!0},styleSpec:l.spec})))}}const ye=new l.Properties({source:new l.DataConstantProperty(l.spec.terrain.source),exaggeration:new l.DataConstantProperty(l.spec.terrain.exaggeration)}),Te="-transition";class ke extends l.Evented{constructor(f,k){super(),this._transitionable=new l.Transitionable(ye),this.set(f),this._transitioning=this._transitionable.untransitioned(),this.drapeRenderMode=k}get(){return this._transitionable.serialize()}set(f){for(const k in f){const Z=f[k];l.endsWith(k,Te)?this._transitionable.setTransition(k.slice(0,-Te.length),Z):this._transitionable.setValue(k,Z)}}updateTransitions(f){this._transitioning=this._transitionable.transitioned(f,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(f){this.properties=this._transitioning.possiblyEvaluate(f)}}function Le(U,f,k,Z){const ue=l.smoothstep(45,65,k),[he,_e]=et(U,Z),Ce=l.length(f);let Xe=1-Math.min(1,Math.exp((Ce-he)/(_e-he)*-6));return Xe*=Xe*Xe,Xe=Math.min(1,1.00747*Xe),Xe*ue*U.alpha}function et(U,f){const k=.5/Math.tan(.5*f);return[U.range[0]+k,U.range[1]+k]}const it=new l.Properties({range:new l.DataConstantProperty(l.spec.fog.range),color:new l.DataConstantProperty(l.spec.fog.color),"horizon-blend":new l.DataConstantProperty(l.spec.fog["horizon-blend"])}),Ue="-transition";class ht extends l.Evented{constructor(f,k){super(),this._transitionable=new l.Transitionable(it),this.set(f),this._transitioning=this._transitionable.untransitioned(),this._transform=k}get state(){return{range:this.properties.get("range"),horizonBlend:this.properties.get("horizon-blend"),alpha:this.properties.get("color").a}}get(){return this._transitionable.serialize()}set(f,k={}){if(!this._validate(l.validateFog,f,k))for(const Z in f){const ue=f[Z];l.endsWith(Z,Ue)?this._transitionable.setTransition(Z.slice(0,-Ue.length),ue):this._transitionable.setValue(Z,ue)}}getOpacity(f){if(!this._transform.projection.supportsFog)return 0;const k=this.properties&&this.properties.get("color")||1;return l.smoothstep(45,65,f)*k.a}getOpacityAtLatLng(f,k){return this._transform.projection.supportsFog?function(Z,ue,he){const _e=l.MercatorCoordinate.fromLngLat(ue),Ce=he.elevation?he.elevation.getAtPointOrZero(_e):0,Xe=[_e.x,_e.y,Ce];return l.transformMat4(Xe,Xe,he.mercatorFogMatrix),Le(Z,Xe,he.pitch,he._fov)}(this.state,f,k):0}getFovAdjustedRange(f){return this._transform.projection.supportsFog?et(this.state,f):[0,1]}updateTransitions(f){this._transitioning=this._transitionable.transitioned(f,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(f){this.properties=this._transitioning.possiblyEvaluate(f)}_validate(f,k,Z){return(!Z||Z.validate!==!1)&&l.emitValidationErrors(this,f.call(l.validateStyle,l.extend({value:k,style:{glyphs:!0,sprite:!0},styleSpec:l.spec})))}}class De{constructor(f,k){this.workerPool=f,this.actors=[],this.currentActor=0,this.id=l.uniqueId();const Z=this.workerPool.acquire(this.id);for(let ue=0;ue<Z.length;ue++){const he=new De.Actor(Z[ue],k,this.id);he.name=`Worker ${ue}`,this.actors.push(he)}this.ready=!1,this.broadcast("checkIfReady",null,()=>{this.ready=!0})}broadcast(f,k,Z){l.asyncAll(this.actors,(ue,he)=>{ue.send(f,k,he)},Z=Z||function(){})}getActor(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]}remove(){this.actors.forEach(f=>{f.remove()}),this.actors=[],this.workerPool.release(this.id)}}function Be(U,f,k){return f*(l.EXTENT/(U.tileSize*Math.pow(2,k-U.tileID.overscaledZ)))}De.Actor=l.Actor;class Ve{constructor(f,k,Z,ue){this.screenBounds=f,this.cameraPoint=k,this._screenRaycastCache={},this._cameraRaycastCache={},this.isAboveHorizon=Z,this.screenGeometry=this.bufferedScreenGeometry(0),this.screenGeometryMercator=this.screenGeometry.map(he=>ue.pointCoordinate3D(he)),this.cameraGeometry=this.bufferedCameraGeometry(0)}static createFromScreenPoints(f,k){let Z,ue;if(f instanceof l.pointGeometry||typeof f[0]=="number"){const he=l.pointGeometry.convert(f);Z=[l.pointGeometry.convert(f)],ue=k.isPointAboveHorizon(he)}else{const he=l.pointGeometry.convert(f[0]),_e=l.pointGeometry.convert(f[1]);Z=[he,_e],ue=l.polygonizeBounds(he,_e).every(Ce=>k.isPointAboveHorizon(Ce))}return new Ve(Z,k.getCameraPoint(),ue,k)}isPointQuery(){return this.screenBounds.length===1}bufferedScreenGeometry(f){return l.polygonizeBounds(this.screenBounds[0],this.screenBounds.length===1?this.screenBounds[0]:this.screenBounds[1],f)}bufferedCameraGeometry(f){const k=this.screenBounds[0],Z=this.screenBounds.length===1?this.screenBounds[0].add(new l.pointGeometry(1,1)):this.screenBounds[1],ue=l.polygonizeBounds(k,Z,0,!1);return this.cameraPoint.y>Z.y&&(this.cameraPoint.x>k.x&&this.cameraPoint.x<Z.x?ue.splice(3,0,this.cameraPoint):this.cameraPoint.x>=Z.x?ue[2]=this.cameraPoint:this.cameraPoint.x<=k.x&&(ue[3]=this.cameraPoint)),l.bufferConvexPolygon(ue,f)}containsTile(f,k,Z){const ue=f.queryPadding+1,he=f.tileID.wrap,_e=Z?this._bufferedCameraMercator(ue,k).map(Bt=>l.getTilePoint(f.tileTransform,Bt,he)):this._bufferedScreenMercator(ue,k).map(Bt=>l.getTilePoint(f.tileTransform,Bt,he)),Ce=this.screenGeometryMercator.map(Bt=>l.getTileVec3(f.tileTransform,Bt,he)),Xe=Ce.map(Bt=>new l.pointGeometry(Bt[0],Bt[1])),nt=k.getFreeCameraOptions().position||new l.MercatorCoordinate(0,0,0),lt=l.getTileVec3(f.tileTransform,nt,he),yt=Ce.map(Bt=>{const It=l.sub(Bt,Bt,lt);return l.normalize(It,It),new l.Ray(lt,It)}),Rt=Be(f,1,k.zoom);if(l.polygonIntersectsBox(_e,0,0,l.EXTENT,l.EXTENT))return{queryGeometry:this,tilespaceGeometry:Xe,tilespaceRays:yt,bufferedTilespaceGeometry:_e,bufferedTilespaceBounds:(Ut=l.getBounds(_e),Ut.min.x=l.clamp(Ut.min.x,0,l.EXTENT),Ut.min.y=l.clamp(Ut.min.y,0,l.EXTENT),Ut.max.x=l.clamp(Ut.max.x,0,l.EXTENT),Ut.max.y=l.clamp(Ut.max.y,0,l.EXTENT),Ut),tile:f,tileID:f.tileID,pixelToTileUnitsFactor:Rt};var Ut}_bufferedScreenMercator(f,k){const Z=He(f);if(this._screenRaycastCache[Z])return this._screenRaycastCache[Z];{const ue=this.bufferedScreenGeometry(f).map(he=>k.pointCoordinate3D(he));return this._screenRaycastCache[Z]=ue,ue}}_bufferedCameraMercator(f,k){const Z=He(f);if(this._cameraRaycastCache[Z])return this._cameraRaycastCache[Z];{const ue=this.bufferedCameraGeometry(f).map(he=>k.pointCoordinate3D(he));return this._cameraRaycastCache[Z]=ue,ue}}}function He(U){return 100*U|0}function gt(U,f,k){const Z=function(ue,he){if(ue)return k(ue);if(he){const _e=l.pick(l.extend(he,U),["tiles","minzoom","maxzoom","attribution","mapbox_logo","bounds","scheme","tileSize","encoding"]);he.vector_layers&&(_e.vectorLayers=he.vector_layers,_e.vectorLayerIds=_e.vectorLayers.map(Ce=>Ce.id)),_e.tiles=f.canonicalizeTileset(_e,U.url),k(null,_e)}};return U.url?l.getJSON(f.transformRequest(f.normalizeSourceURL(U.url),l.ResourceType.Source),Z):l.exported.frame(()=>Z(null,U))}class dn{constructor(f,k,Z){this.bounds=l.LngLatBounds.convert(this.validateBounds(f)),this.minzoom=k||0,this.maxzoom=Z||24}validateBounds(f){return Array.isArray(f)&&f.length===4?[Math.max(-180,f[0]),Math.max(-90,f[1]),Math.min(180,f[2]),Math.min(90,f[3])]:[-180,-90,180,90]}contains(f){const k=Math.pow(2,f.z),Z=Math.floor(l.mercatorXfromLng(this.bounds.getWest())*k),ue=Math.floor(l.mercatorYfromLat(this.bounds.getNorth())*k),he=Math.ceil(l.mercatorXfromLng(this.bounds.getEast())*k),_e=Math.ceil(l.mercatorYfromLat(this.bounds.getSouth())*k);return f.x>=Z&&f.x<he&&f.y>=ue&&f.y<_e}}class Ze{constructor(f,k,Z){this.context=f;const ue=f.gl;this.buffer=ue.createBuffer(),this.dynamicDraw=Boolean(Z),this.context.unbindVAO(),f.bindElementBuffer.set(this.buffer),ue.bufferData(ue.ELEMENT_ARRAY_BUFFER,k.arrayBuffer,this.dynamicDraw?ue.DYNAMIC_DRAW:ue.STATIC_DRAW),this.dynamicDraw||k.destroy()}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(f){const k=this.context.gl;this.context.unbindVAO(),this.bind(),k.bufferSubData(k.ELEMENT_ARRAY_BUFFER,0,f.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}const at={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class Lt{constructor(f,k,Z,ue){this.length=k.length,this.attributes=Z,this.itemSize=k.bytesPerElement,this.dynamicDraw=ue,this.context=f;const he=f.gl;this.buffer=he.createBuffer(),f.bindVertexBuffer.set(this.buffer),he.bufferData(he.ARRAY_BUFFER,k.arrayBuffer,this.dynamicDraw?he.DYNAMIC_DRAW:he.STATIC_DRAW),this.dynamicDraw||k.destroy()}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(f){const k=this.context.gl;this.bind(),k.bufferSubData(k.ARRAY_BUFFER,0,f.arrayBuffer)}enableAttributes(f,k){for(let Z=0;Z<this.attributes.length;Z++){const ue=k.attributes[this.attributes[Z].name];ue!==void 0&&f.enableVertexAttribArray(ue)}}setVertexAttribPointers(f,k,Z){for(let ue=0;ue<this.attributes.length;ue++){const he=this.attributes[ue],_e=k.attributes[he.name];_e!==void 0&&f.vertexAttribPointer(_e,he.components,f[at[he.type]],!1,this.itemSize,he.offset+this.itemSize*(Z||0))}}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}class Ne{constructor(f){this.gl=f.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1}get(){return this.current}set(f){}getDefault(){return this.default}setDefault(){this.set(this.default)}}class ze extends Ne{getDefault(){return l.Color.transparent}set(f){const k=this.current;(f.r!==k.r||f.g!==k.g||f.b!==k.b||f.a!==k.a||this.dirty)&&(this.gl.clearColor(f.r,f.g,f.b,f.a),this.current=f,this.dirty=!1)}}class Ke extends Ne{getDefault(){return 1}set(f){(f!==this.current||this.dirty)&&(this.gl.clearDepth(f),this.current=f,this.dirty=!1)}}class vt extends Ne{getDefault(){return 0}set(f){(f!==this.current||this.dirty)&&(this.gl.clearStencil(f),this.current=f,this.dirty=!1)}}class Ft extends Ne{getDefault(){return[!0,!0,!0,!0]}set(f){const k=this.current;(f[0]!==k[0]||f[1]!==k[1]||f[2]!==k[2]||f[3]!==k[3]||this.dirty)&&(this.gl.colorMask(f[0],f[1],f[2],f[3]),this.current=f,this.dirty=!1)}}class Ot extends Ne{getDefault(){return!0}set(f){(f!==this.current||this.dirty)&&(this.gl.depthMask(f),this.current=f,this.dirty=!1)}}class _t extends Ne{getDefault(){return 255}set(f){(f!==this.current||this.dirty)&&(this.gl.stencilMask(f),this.current=f,this.dirty=!1)}}class Tn extends Ne{getDefault(){return{func:this.gl.ALWAYS,ref:0,mask:255}}set(f){const k=this.current;(f.func!==k.func||f.ref!==k.ref||f.mask!==k.mask||this.dirty)&&(this.gl.stencilFunc(f.func,f.ref,f.mask),this.current=f,this.dirty=!1)}}class on extends Ne{getDefault(){const f=this.gl;return[f.KEEP,f.KEEP,f.KEEP]}set(f){const k=this.current;(f[0]!==k[0]||f[1]!==k[1]||f[2]!==k[2]||this.dirty)&&(this.gl.stencilOp(f[0],f[1],f[2]),this.current=f,this.dirty=!1)}}class $n extends Ne{getDefault(){return!1}set(f){if(f===this.current&&!this.dirty)return;const k=this.gl;f?k.enable(k.STENCIL_TEST):k.disable(k.STENCIL_TEST),this.current=f,this.dirty=!1}}class Zt extends Ne{getDefault(){return[0,1]}set(f){const k=this.current;(f[0]!==k[0]||f[1]!==k[1]||this.dirty)&&(this.gl.depthRange(f[0],f[1]),this.current=f,this.dirty=!1)}}class Et extends Ne{getDefault(){return!1}set(f){if(f===this.current&&!this.dirty)return;const k=this.gl;f?k.enable(k.DEPTH_TEST):k.disable(k.DEPTH_TEST),this.current=f,this.dirty=!1}}class rn extends Ne{getDefault(){return this.gl.LESS}set(f){(f!==this.current||this.dirty)&&(this.gl.depthFunc(f),this.current=f,this.dirty=!1)}}class wt extends Ne{getDefault(){return!1}set(f){if(f===this.current&&!this.dirty)return;const k=this.gl;f?k.enable(k.BLEND):k.disable(k.BLEND),this.current=f,this.dirty=!1}}class Yn extends Ne{getDefault(){const f=this.gl;return[f.ONE,f.ZERO]}set(f){const k=this.current;(f[0]!==k[0]||f[1]!==k[1]||this.dirty)&&(this.gl.blendFunc(f[0],f[1]),this.current=f,this.dirty=!1)}}class pt extends Ne{getDefault(){return l.Color.transparent}set(f){const k=this.current;(f.r!==k.r||f.g!==k.g||f.b!==k.b||f.a!==k.a||this.dirty)&&(this.gl.blendColor(f.r,f.g,f.b,f.a),this.current=f,this.dirty=!1)}}class Fe extends Ne{getDefault(){return this.gl.FUNC_ADD}set(f){(f!==this.current||this.dirty)&&(this.gl.blendEquation(f),this.current=f,this.dirty=!1)}}class Ie extends Ne{getDefault(){return!1}set(f){if(f===this.current&&!this.dirty)return;const k=this.gl;f?k.enable(k.CULL_FACE):k.disable(k.CULL_FACE),this.current=f,this.dirty=!1}}class ct extends Ne{getDefault(){return this.gl.BACK}set(f){(f!==this.current||this.dirty)&&(this.gl.cullFace(f),this.current=f,this.dirty=!1)}}class Ht extends Ne{getDefault(){return this.gl.CCW}set(f){(f!==this.current||this.dirty)&&(this.gl.frontFace(f),this.current=f,this.dirty=!1)}}class sn extends Ne{getDefault(){return null}set(f){(f!==this.current||this.dirty)&&(this.gl.useProgram(f),this.current=f,this.dirty=!1)}}class yn extends Ne{getDefault(){return this.gl.TEXTURE0}set(f){(f!==this.current||this.dirty)&&(this.gl.activeTexture(f),this.current=f,this.dirty=!1)}}class Dr extends Ne{getDefault(){const f=this.gl;return[0,0,f.drawingBufferWidth,f.drawingBufferHeight]}set(f){const k=this.current;(f[0]!==k[0]||f[1]!==k[1]||f[2]!==k[2]||f[3]!==k[3]||this.dirty)&&(this.gl.viewport(f[0],f[1],f[2],f[3]),this.current=f,this.dirty=!1)}}class Kr extends Ne{getDefault(){return null}set(f){if(f===this.current&&!this.dirty)return;const k=this.gl;k.bindFramebuffer(k.FRAMEBUFFER,f),this.current=f,this.dirty=!1}}class ii extends Ne{getDefault(){return null}set(f){if(f===this.current&&!this.dirty)return;const k=this.gl;k.bindRenderbuffer(k.RENDERBUFFER,f),this.current=f,this.dirty=!1}}class _n extends Ne{getDefault(){return null}set(f){if(f===this.current&&!this.dirty)return;const k=this.gl;k.bindTexture(k.TEXTURE_2D,f),this.current=f,this.dirty=!1}}class xn extends Ne{getDefault(){return null}set(f){if(f===this.current&&!this.dirty)return;const k=this.gl;k.bindBuffer(k.ARRAY_BUFFER,f),this.current=f,this.dirty=!1}}class jn extends Ne{getDefault(){return null}set(f){const k=this.gl;k.bindBuffer(k.ELEMENT_ARRAY_BUFFER,f),this.current=f,this.dirty=!1}}class ln extends Ne{constructor(f){super(f),this.vao=f.extVertexArrayObject}getDefault(){return null}set(f){this.vao&&(f!==this.current||this.dirty)&&(this.vao.bindVertexArrayOES(f),this.current=f,this.dirty=!1)}}class ar extends Ne{getDefault(){return 4}set(f){if(f===this.current&&!this.dirty)return;const k=this.gl;k.pixelStorei(k.UNPACK_ALIGNMENT,f),this.current=f,this.dirty=!1}}class zr extends Ne{getDefault(){return!1}set(f){if(f===this.current&&!this.dirty)return;const k=this.gl;k.pixelStorei(k.UNPACK_PREMULTIPLY_ALPHA_WEBGL,f),this.current=f,this.dirty=!1}}class Jr extends Ne{getDefault(){return!1}set(f){if(f===this.current&&!this.dirty)return;const k=this.gl;k.pixelStorei(k.UNPACK_FLIP_Y_WEBGL,f),this.current=f,this.dirty=!1}}class bi extends Ne{constructor(f,k){super(f),this.context=f,this.parent=k}getDefault(){return null}}class hi extends bi{setDirty(){this.dirty=!0}set(f){if(f===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);const k=this.gl;k.framebufferTexture2D(k.FRAMEBUFFER,k.COLOR_ATTACHMENT0,k.TEXTURE_2D,f,0),this.current=f,this.dirty=!1}}class wi extends bi{attachment(){return this.gl.DEPTH_ATTACHMENT}set(f){if(f===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);const k=this.gl;k.framebufferRenderbuffer(k.FRAMEBUFFER,this.attachment(),k.RENDERBUFFER,f),this.current=f,this.dirty=!1}}class Ca extends wi{attachment(){return this.gl.DEPTH_STENCIL_ATTACHMENT}}class jt{constructor(f,k,Z,ue){this.context=f,this.width=k,this.height=Z;const he=this.framebuffer=f.gl.createFramebuffer();this.colorAttachment=new hi(f,he),ue&&(this.depthAttachment=new wi(f,he))}destroy(){const f=this.context.gl,k=this.colorAttachment.get();if(k&&f.deleteTexture(k),this.depthAttachment){const Z=this.depthAttachment.get();Z&&f.deleteRenderbuffer(Z)}f.deleteFramebuffer(this.framebuffer)}}class dt{constructor(f){this.gl=f,this.extVertexArrayObject=this.gl.getExtension("OES_vertex_array_object"),this.clearColor=new ze(this),this.clearDepth=new Ke(this),this.clearStencil=new vt(this),this.colorMask=new Ft(this),this.depthMask=new Ot(this),this.stencilMask=new _t(this),this.stencilFunc=new Tn(this),this.stencilOp=new on(this),this.stencilTest=new $n(this),this.depthRange=new Zt(this),this.depthTest=new Et(this),this.depthFunc=new rn(this),this.blend=new wt(this),this.blendFunc=new Yn(this),this.blendColor=new pt(this),this.blendEquation=new Fe(this),this.cullFace=new Ie(this),this.cullFaceSide=new ct(this),this.frontFace=new Ht(this),this.program=new sn(this),this.activeTexture=new yn(this),this.viewport=new Dr(this),this.bindFramebuffer=new Kr(this),this.bindRenderbuffer=new ii(this),this.bindTexture=new _n(this),this.bindVertexBuffer=new xn(this),this.bindElementBuffer=new jn(this),this.bindVertexArrayOES=this.extVertexArrayObject&&new ln(this),this.pixelStoreUnpack=new ar(this),this.pixelStoreUnpackPremultiplyAlpha=new zr(this),this.pixelStoreUnpackFlipY=new Jr(this),this.extTextureFilterAnisotropic=f.getExtension("EXT_texture_filter_anisotropic")||f.getExtension("MOZ_EXT_texture_filter_anisotropic")||f.getExtension("WEBKIT_EXT_texture_filter_anisotropic"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=f.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.extTextureFilterAnisotropicForceOff=!1,this.extTextureHalfFloat=f.getExtension("OES_texture_half_float"),this.extTextureHalfFloat&&(f.getExtension("OES_texture_half_float_linear"),this.extRenderToTextureHalfFloat=f.getExtension("EXT_color_buffer_half_float")),this.extTimerQuery=f.getExtension("EXT_disjoint_timer_query"),this.maxTextureSize=f.getParameter(f.MAX_TEXTURE_SIZE)}setDefault(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()}setDirty(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.extVertexArrayObject&&(this.bindVertexArrayOES.dirty=!0),this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0}createIndexBuffer(f,k){return new Ze(this,f,k)}createVertexBuffer(f,k,Z){return new Lt(this,f,k,Z)}createRenderbuffer(f,k,Z){const ue=this.gl,he=ue.createRenderbuffer();return this.bindRenderbuffer.set(he),ue.renderbufferStorage(ue.RENDERBUFFER,f,k,Z),this.bindRenderbuffer.set(null),he}createFramebuffer(f,k,Z){return new jt(this,f,k,Z)}clear({color:f,depth:k,stencil:Z}){const ue=this.gl;let he=0;f&&(he|=ue.COLOR_BUFFER_BIT,this.clearColor.set(f),this.colorMask.set([!0,!0,!0,!0])),k!==void 0&&(he|=ue.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(k),this.depthMask.set(!0)),Z!==void 0&&(he|=ue.STENCIL_BUFFER_BIT,this.clearStencil.set(Z),this.stencilMask.set(255)),ue.clear(he)}setCullFace(f){f.enable===!1?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(f.mode),this.frontFace.set(f.frontFace))}setDepthMode(f){f.func!==this.gl.ALWAYS||f.mask?(this.depthTest.set(!0),this.depthFunc.set(f.func),this.depthMask.set(f.mask),this.depthRange.set(f.range)):this.depthTest.set(!1)}setStencilMode(f){f.test.func!==this.gl.ALWAYS||f.mask?(this.stencilTest.set(!0),this.stencilMask.set(f.mask),this.stencilOp.set([f.fail,f.depthFail,f.pass]),this.stencilFunc.set({func:f.test.func,ref:f.ref,mask:f.test.mask})):this.stencilTest.set(!1)}setColorMode(f){_(f.blendFunction,l.ColorMode.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(f.blendFunction),this.blendColor.set(f.blendColor)),this.colorMask.set(f.mask)}unbindVAO(){this.extVertexArrayObject&&this.bindVertexArrayOES.set(null)}}class xt extends l.Evented{constructor(f,k,Z,ue){super(),this.id=f,this.dispatcher=Z,this.setEventedParent(ue),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=l.extend({type:"raster"},k),l.extend(this,l.pick(k,["url","scheme","tileSize"]))}load(){this._loaded=!1,this.fire(new l.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=gt(this._options,this.map._requestManager,(f,k)=>{this._tileJSONRequest=null,this._loaded=!0,f?this.fire(new l.ErrorEvent(f)):k&&(l.extend(this,k),k.bounds&&(this.tileBounds=new dn(k.bounds,this.minzoom,this.maxzoom)),l.postTurnstileEvent(k.tiles),this.fire(new l.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new l.Event("data",{dataType:"source",sourceDataType:"content"})))})}loaded(){return this._loaded}onAdd(f){this.map=f,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}serialize(){return l.extend({},this._options)}hasTile(f){return!this.tileBounds||this.tileBounds.contains(f.canonical)}loadTile(f,k){const Z=l.exported.devicePixelRatio>=2,ue=this.map._requestManager.normalizeTileURL(f.tileID.canonical.url(this.tiles,this.scheme),Z,this.tileSize);f.request=l.getImage(this.map._requestManager.transformRequest(ue,l.ResourceType.Tile),(he,_e,Ce,Xe)=>(delete f.request,f.aborted?(f.state="unloaded",k(null)):he?(f.state="errored",k(he)):_e?(this.map._refreshExpiredTiles&&f.setExpiryData({cacheControl:Ce,expires:Xe}),f.setTexture(_e,this.map.painter),f.state="loaded",l.cacheEntryPossiblyAdded(this.dispatcher),void k(null)):k(null)))}static loadTileData(f,k,Z){f.setTexture(k,Z)}static unloadTileData(f,k){f.texture&&k.saveTileTexture(f.texture)}abortTile(f,k){f.request&&(f.request.cancel(),delete f.request),k()}unloadTile(f,k){f.texture&&this.map.painter.saveTileTexture(f.texture),k()}hasTransition(){return!1}}let Nt;function Qt(U,f,k,Z,ue,he,_e,Ce){const Xe=[U,k,ue,f,Z,he,1,1,1],nt=[_e,Ce,1],lt=l.adjoint([],Xe),[yt,Rt,Ut]=l.transformMat3(nt,nt,l.transpose(lt,lt));return l.multiply(Xe,[yt,0,0,0,Rt,0,0,0,Ut],Xe)}class mn extends l.Evented{constructor(f,k,Z,ue){super(),this.id=f,this.dispatcher=Z,this.coordinates=k.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(ue),this.options=k}load(f){this._loaded=!1,this.fire(new l.Event("dataloading",{dataType:"source"})),this.url=this.options.url,l.getImage(this.map._requestManager.transformRequest(this.url,l.ResourceType.Image),(k,Z)=>{if(this._loaded=!0,k)this.fire(new l.ErrorEvent(k));else if(Z){const{HTMLImageElement:ue}=l.window;this.image=Z instanceof ue?l.exported.getImageData(Z):Z,this.width=this.image.width,this.height=this.image.height,f&&(this.coordinates=f),this._finishLoading()}})}loaded(){return this._loaded}updateImage(f){return this.image&&f.url?(this.options.url=f.url,this.load(f.coordinates),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new l.Event("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(f){this.map=f,this.load()}onRemove(){this.texture&&this.texture.destroy()}setCoordinates(f){this.coordinates=f,this._boundsArray=void 0;const k=f.map(l.MercatorCoordinate.fromLngLat);return this.tileID=function(Z){let ue=1/0,he=1/0,_e=-1/0,Ce=-1/0;for(const yt of Z)ue=Math.min(ue,yt.x),he=Math.min(he,yt.y),_e=Math.max(_e,yt.x),Ce=Math.max(Ce,yt.y);const Xe=Math.max(_e-ue,Ce-he),nt=Math.max(0,Math.floor(-Math.log(Xe)/Math.LN2)),lt=Math.pow(2,nt);return new l.CanonicalTileID(nt,Math.floor((ue+_e)/2*lt),Math.floor((he+Ce)/2*lt))}(k),this.minzoom=this.maxzoom=this.tileID.z,this.fire(new l.Event("data",{dataType:"source",sourceDataType:"content"})),this}_clear(){this._boundsArray=void 0}_prepareData(f){for(const Xe in this.tiles){const nt=this.tiles[Xe];nt.state!=="loaded"&&(nt.state="loaded",nt.texture=this.texture)}if(this._boundsArray)return;const k=l.tileTransform(this.tileID,this.map.transform.projection),[Z,ue,he,_e]=this.coordinates.map(Xe=>{const nt=k.projection.project(Xe[0],Xe[1]);return l.getTilePoint(k,nt)._round()});this.perspectiveTransform=function(Xe,nt,lt,yt,Rt,Ut,Bt,It,vn,tn){const cn=Qt(0,0,Xe,0,0,nt,Xe,nt),pn=Qt(lt,yt,Rt,Ut,Bt,It,vn,tn);return l.multiply(pn,l.adjoint(cn,cn),pn),[pn[6]/pn[8]*Xe/l.EXTENT,pn[7]/pn[8]*nt/l.EXTENT]}(this.width,this.height,Z.x,Z.y,ue.x,ue.y,_e.x,_e.y,he.x,he.y);const Ce=this._boundsArray=new l.StructArrayLayout4i8;Ce.emplaceBack(Z.x,Z.y,0,0),Ce.emplaceBack(ue.x,ue.y,l.EXTENT,0),Ce.emplaceBack(_e.x,_e.y,0,l.EXTENT),Ce.emplaceBack(he.x,he.y,l.EXTENT,l.EXTENT),this.boundsBuffer&&this.boundsBuffer.destroy(),this.boundsBuffer=f.createVertexBuffer(Ce,l.boundsAttributes.members),this.boundsSegments=l.SegmentVector.simpleSegment(0,0,4,2)}prepare(){if(Object.keys(this.tiles).length===0||!this.image)return;const f=this.map.painter.context,k=f.gl;this.texture?this.texture.update(this.image):(this.texture=new l.Texture(f,this.image,k.RGBA),this.texture.bind(k.LINEAR,k.CLAMP_TO_EDGE)),this._prepareData(f)}loadTile(f,k){this.tileID&&this.tileID.equals(f.tileID.canonical)?(this.tiles[String(f.tileID.wrap)]=f,f.buckets={},k(null)):(f.state="errored",k(null))}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}}const Un={vector:class extends l.Evented{constructor(U,f,k,Z){if(super(),this.id=U,this.dispatcher=k,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,l.extend(this,l.pick(f,["url","scheme","tileSize","promoteId"])),this._options=l.extend({type:"vector"},f),this._collectResourceTiming=f.collectResourceTiming,this.tileSize!==512)throw new Error("vector tile sources must have a tileSize of 512");this.setEventedParent(Z),this._tileWorkers={},this._deduped=new l.DedupedRequest}load(){this._loaded=!1,this.fire(new l.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=gt(this._options,this.map._requestManager,(U,f)=>{this._tileJSONRequest=null,this._loaded=!0,U?this.fire(new l.ErrorEvent(U)):f&&(l.extend(this,f),f.bounds&&(this.tileBounds=new dn(f.bounds,this.minzoom,this.maxzoom)),l.postTurnstileEvent(f.tiles,this.map._requestManager._customAccessToken),this.fire(new l.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new l.Event("data",{dataType:"source",sourceDataType:"content"})))})}loaded(){return this._loaded}hasTile(U){return!this.tileBounds||this.tileBounds.contains(U.canonical)}onAdd(U){this.map=U,this.load()}setSourceProperty(U){this._tileJSONRequest&&this._tileJSONRequest.cancel(),U();const f=this.map.style._getSourceCaches(this.id);for(const k of f)k.clearTiles();this.load()}setTiles(U){return this.setSourceProperty(()=>{this._options.tiles=U}),this}setUrl(U){return this.setSourceProperty(()=>{this.url=U,this._options.url=U}),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}serialize(){return l.extend({},this._options)}loadTile(U,f){const k=this.map._requestManager.normalizeTileURL(U.tileID.canonical.url(this.tiles,this.scheme)),Z={request:this.map._requestManager.transformRequest(k,l.ResourceType.Tile),data:void 0,uid:U.uid,tileID:U.tileID,tileZoom:U.tileZoom,zoom:U.tileID.overscaledZ,tileSize:this.tileSize*U.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:l.exported.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,isSymbolTile:U.isSymbolTile};if(Z.request.collectResourceTiming=this._collectResourceTiming,U.actor&&U.state!=="expired")U.state==="loading"?U.reloadCallback=f:U.request=U.actor.send("reloadTile",Z,ue.bind(this));else if(U.actor=this._tileWorkers[k]=this._tileWorkers[k]||this.dispatcher.getActor(),this.dispatcher.ready)U.request=U.actor.send("loadTile",Z,ue.bind(this),void 0,!0);else{const he=l.loadVectorTile.call({deduped:this._deduped},Z,(_e,Ce)=>{_e||!Ce?ue.call(this,_e):(Z.data={cacheControl:Ce.cacheControl,expires:Ce.expires,rawData:Ce.rawData.slice(0)},U.actor&&U.actor.send("loadTile",Z,ue.bind(this),void 0,!0))},!0);U.request={cancel:he}}function ue(he,_e){return delete U.request,U.aborted?f(null):he&&he.status!==404?f(he):(_e&&_e.resourceTiming&&(U.resourceTiming=_e.resourceTiming),this.map._refreshExpiredTiles&&_e&&U.setExpiryData(_e),U.loadVectorData(_e,this.map.painter),l.cacheEntryPossiblyAdded(this.dispatcher),f(null),void(U.reloadCallback&&(this.loadTile(U,U.reloadCallback),U.reloadCallback=null)))}}abortTile(U){U.request&&(U.request.cancel(),delete U.request),U.actor&&U.actor.send("abortTile",{uid:U.uid,type:this.type,source:this.id})}unloadTile(U){U.unloadVectorData(),U.actor&&U.actor.send("removeTile",{uid:U.uid,type:this.type,source:this.id})}hasTransition(){return!1}afterUpdate(){this._tileWorkers={}}},raster:xt,"raster-dem":class extends xt{constructor(U,f,k,Z){super(U,f,k,Z),this.type="raster-dem",this.maxzoom=22,this._options=l.extend({type:"raster-dem"},f),this.encoding=f.encoding||"mapbox"}loadTile(U,f){const k=this.map._requestManager.normalizeTileURL(U.tileID.canonical.url(this.tiles,this.scheme),!1,this.tileSize);function Z(ue,he){ue&&(U.state="errored",f(ue)),he&&(U.dem=he,U.dem.onDeserialize(),U.needsHillshadePrepare=!0,U.needsDEMTextureUpload=!0,U.state="loaded",f(null))}U.request=l.getImage(this.map._requestManager.transformRequest(k,l.ResourceType.Tile),function(ue,he,_e,Ce){if(delete U.request,U.aborted)U.state="unloaded",f(null);else if(ue)U.state="errored",f(ue);else if(he){this.map._refreshExpiredTiles&&U.setExpiryData({cacheControl:_e,expires:Ce});const Xe=l.window.ImageBitmap&&he instanceof l.window.ImageBitmap&&(Nt==null&&(Nt=l.window.OffscreenCanvas&&new l.window.OffscreenCanvas(1,1).getContext("2d")&&typeof l.window.createImageBitmap=="function"),Nt),nt=1-(he.width-l.prevPowerOfTwo(he.width))/2;nt<1||U.neighboringTiles||(U.neighboringTiles=this._getNeighboringTiles(U.tileID));const lt=Xe?he:l.exported.getImageData(he,nt),yt={uid:U.uid,coord:U.tileID,source:this.id,rawImageData:lt,encoding:this.encoding,padding:nt};U.actor&&U.state!=="expired"||(U.actor=this.dispatcher.getActor(),U.actor.send("loadDEMTile",yt,Z.bind(this),void 0,!0))}}.bind(this))}_getNeighboringTiles(U){const f=U.canonical,k=Math.pow(2,f.z),Z=(f.x-1+k)%k,ue=f.x===0?U.wrap-1:U.wrap,he=(f.x+1+k)%k,_e=f.x+1===k?U.wrap+1:U.wrap,Ce={};return Ce[new l.OverscaledTileID(U.overscaledZ,ue,f.z,Z,f.y).key]={backfilled:!1},Ce[new l.OverscaledTileID(U.overscaledZ,_e,f.z,he,f.y).key]={backfilled:!1},f.y>0&&(Ce[new l.OverscaledTileID(U.overscaledZ,ue,f.z,Z,f.y-1).key]={backfilled:!1},Ce[new l.OverscaledTileID(U.overscaledZ,U.wrap,f.z,f.x,f.y-1).key]={backfilled:!1},Ce[new l.OverscaledTileID(U.overscaledZ,_e,f.z,he,f.y-1).key]={backfilled:!1}),f.y+1<k&&(Ce[new l.OverscaledTileID(U.overscaledZ,ue,f.z,Z,f.y+1).key]={backfilled:!1},Ce[new l.OverscaledTileID(U.overscaledZ,U.wrap,f.z,f.x,f.y+1).key]={backfilled:!1},Ce[new l.OverscaledTileID(U.overscaledZ,_e,f.z,he,f.y+1).key]={backfilled:!1}),Ce}unloadTile(U){U.demTexture&&this.map.painter.saveTileTexture(U.demTexture),U.fbo&&(U.fbo.destroy(),delete U.fbo),U.dem&&delete U.dem,delete U.neighboringTiles,U.state="unloaded"}},geojson:class extends l.Evented{constructor(U,f,k,Z){super(),this.id=U,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._loaded=!1,this.actor=k.getActor(),this.setEventedParent(Z),this._data=f.data,this._options=l.extend({},f),this._collectResourceTiming=f.collectResourceTiming,f.maxzoom!==void 0&&(this.maxzoom=f.maxzoom),f.type&&(this.type=f.type),f.attribution&&(this.attribution=f.attribution),this.promoteId=f.promoteId;const ue=l.EXTENT/this.tileSize;this.workerOptions=l.extend({source:this.id,cluster:f.cluster||!1,geojsonVtOptions:{buffer:(f.buffer!==void 0?f.buffer:128)*ue,tolerance:(f.tolerance!==void 0?f.tolerance:.375)*ue,extent:l.EXTENT,maxZoom:this.maxzoom,lineMetrics:f.lineMetrics||!1,generateId:f.generateId||!1},superclusterOptions:{maxZoom:f.clusterMaxZoom!==void 0?f.clusterMaxZoom:this.maxzoom-1,minPoints:Math.max(2,f.clusterMinPoints||2),extent:l.EXTENT,radius:(f.clusterRadius!==void 0?f.clusterRadius:50)*ue,log:!1,generateId:f.generateId||!1},clusterProperties:f.clusterProperties,filter:f.filter},f.workerOptions)}onAdd(U){this.map=U,this.setData(this._data)}setData(U){return this._data=U,this._updateWorkerData(),this}getClusterExpansionZoom(U,f){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:U,source:this.id},f),this}getClusterChildren(U,f){return this.actor.send("geojson.getClusterChildren",{clusterId:U,source:this.id},f),this}getClusterLeaves(U,f,k,Z){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:U,limit:f,offset:k},Z),this}_updateWorkerData(){if(this._pendingLoad)return void(this._coalesce=!0);this.fire(new l.Event("dataloading",{dataType:"source"})),this._loaded=!1;const U=l.extend({},this.workerOptions),f=this._data;typeof f=="string"?(U.request=this.map._requestManager.transformRequest(l.exported.resolveURL(f),l.ResourceType.Source),U.request.collectResourceTiming=this._collectResourceTiming):U.data=JSON.stringify(f),this._pendingLoad=this.actor.send(`${this.type}.loadData`,U,(k,Z)=>{if(this._loaded=!0,this._pendingLoad=null,k)this.fire(new l.ErrorEvent(k));else{const ue={dataType:"source",sourceDataType:this._metadataFired?"content":"metadata"};this._collectResourceTiming&&Z&&Z.resourceTiming&&Z.resourceTiming[this.id]&&(ue.resourceTiming=Z.resourceTiming[this.id]),this.fire(new l.Event("data",ue)),this._metadataFired=!0}this._coalesce&&(this._updateWorkerData(),this._coalesce=!1)})}loaded(){return this._loaded}loadTile(U,f){const k=U.actor?"reloadTile":"loadTile";U.actor=this.actor,U.request=this.actor.send(k,{type:this.type,uid:U.uid,tileID:U.tileID,tileZoom:U.tileZoom,zoom:U.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:l.exported.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},(Z,ue)=>(delete U.request,U.unloadVectorData(),U.aborted?f(null):Z?f(Z):(U.loadVectorData(ue,this.map.painter,k==="reloadTile"),f(null))),void 0,k==="loadTile")}abortTile(U){U.request&&(U.request.cancel(),delete U.request),U.aborted=!0}unloadTile(U){U.unloadVectorData(),this.actor.send("removeTile",{uid:U.uid,type:this.type,source:this.id})}onRemove(){this._pendingLoad&&this._pendingLoad.cancel()}serialize(){return l.extend({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}},video:class extends mn{constructor(U,f,k,Z){super(U,f,k,Z),this.roundZoom=!0,this.type="video",this.options=f}load(){this._loaded=!1;const U=this.options;this.urls=[];for(const f of U.urls)this.urls.push(this.map._requestManager.transformRequest(f,l.ResourceType.Source).url);l.getVideo(this.urls,(f,k)=>{this._loaded=!0,f?this.fire(new l.ErrorEvent(f)):k&&(this.video=k,this.video.loop=!0,this.video.setAttribute("playsinline",""),this.video.addEventListener("playing",()=>{this.map.triggerRepaint()}),this.map&&this.video.play(),this._finishLoading())})}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(U){if(this.video){const f=this.video.seekable;U<f.start(0)||U>f.end(0)?this.fire(new l.ErrorEvent(new l.ValidationError(`sources.${this.id}`,null,`Playback for this video can be set only between the ${f.start(0)} and ${f.end(0)}-second mark.`))):this.video.currentTime=U}}getVideo(){return this.video}onAdd(U){this.map||(this.map=U,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(Object.keys(this.tiles).length===0||this.video.readyState<2)return;const U=this.map.painter.context,f=U.gl;this.texture?this.video.paused||(this.texture.bind(f.LINEAR,f.CLAMP_TO_EDGE),f.texSubImage2D(f.TEXTURE_2D,0,0,0,f.RGBA,f.UNSIGNED_BYTE,this.video)):(this.texture=new l.Texture(U,this.video,f.RGBA),this.texture.bind(f.LINEAR,f.CLAMP_TO_EDGE),this.width=this.video.videoWidth,this.height=this.video.videoHeight),this._prepareData(U)}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}},image:mn,canvas:class extends mn{constructor(U,f,k,Z){super(U,f,k,Z),f.coordinates?Array.isArray(f.coordinates)&&f.coordinates.length===4&&!f.coordinates.some(ue=>!Array.isArray(ue)||ue.length!==2||ue.some(he=>typeof he!="number"))||this.fire(new l.ErrorEvent(new l.ValidationError(`sources.${U}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new l.ErrorEvent(new l.ValidationError(`sources.${U}`,null,'missing required property "coordinates"'))),f.animate&&typeof f.animate!="boolean"&&this.fire(new l.ErrorEvent(new l.ValidationError(`sources.${U}`,null,'optional "animate" property must be a boolean value'))),f.canvas?typeof f.canvas=="string"||f.canvas instanceof l.window.HTMLCanvasElement||this.fire(new l.ErrorEvent(new l.ValidationError(`sources.${U}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new l.ErrorEvent(new l.ValidationError(`sources.${U}`,null,'missing required property "canvas"'))),this.options=f,this.animate=f.animate===void 0||f.animate}load(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof l.window.HTMLCanvasElement?this.options.canvas:l.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new l.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())}getCanvas(){return this.canvas}onAdd(U){this.map=U,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let U=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,U=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,U=!0),this._hasInvalidDimensions()||Object.keys(this.tiles).length===0)return;const f=this.map.painter.context;this.texture?(U||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new l.Texture(f,this.canvas,f.gl.RGBA,{premultiply:!0}),this._prepareData(f)}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(const U of[this.canvas.width,this.canvas.height])if(isNaN(U)||U<=0)return!0;return!1}},custom:class extends l.Evented{constructor(U,f,k,Z){super(),this.id=U,this.type="custom",this._dataType="raster",this._dispatcher=k,this._implementation=f,this.setEventedParent(Z),this.scheme="xyz",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this._loaded=!1,this.roundZoom=!0,this._implementation||this.fire(new l.ErrorEvent(new Error(`Missing implementation for ${this.id} custom source`))),this._implementation.loadTile||this.fire(new l.ErrorEvent(new Error(`Missing loadTile implementation for ${this.id} custom source`))),this._implementation.bounds&&(this.tileBounds=new dn(this._implementation.bounds,this.minzoom,this.maxzoom)),f.update=this._update.bind(this),f.coveringTiles=this._coveringTiles.bind(this),l.extend(this,l.pick(f,["dataType","scheme","minzoom","maxzoom","tileSize","attribution","minTileCacheSize","maxTileCacheSize"]))}serialize(){return l.pick(this,["type","scheme","minzoom","maxzoom","tileSize","attribution"])}load(){this._loaded=!0,this.fire(new l.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new l.Event("data",{dataType:"source",sourceDataType:"content"}))}loaded(){return this._loaded}onAdd(U){this._map=U,this._loaded=!1,this.fire(new l.Event("dataloading",{dataType:"source"})),this._implementation.onAdd&&this._implementation.onAdd(U),this.load()}onRemove(U){this._implementation.onRemove&&this._implementation.onRemove(U)}hasTile(U){if(this._implementation.hasTile){const{x:f,y:k,z:Z}=U.canonical;return this._implementation.hasTile({x:f,y:k,z:Z})}return!this.tileBounds||this.tileBounds.contains(U.canonical)}loadTile(U,f){const{x:k,y:Z,z:ue}=U.tileID.canonical,he=new l.window.AbortController,_e=this._implementation.loadTile({x:k,y:Z,z:ue},{signal:he.signal});if(!_e)return this.loadTileData(U,{width:this.tileSize,height:this.tileSize,data:null}),U.state="loaded",f(null);_e.cancel=()=>he.abort(),U.request=_e.then(function(Ce){return delete U.request,U.aborted?(U.state="unloaded",f(null)):Ce?function(Xe){return Xe instanceof l.window.ImageData||Xe instanceof l.window.ImageBitmap||Xe instanceof l.window.HTMLCanvasElement}(Ce)?(this.loadTileData(U,Ce),U.state="loaded",void f(null)):(U.state="errored",f(new Error(`Can't infer data type for ${this.id}, only raster data supported at the moment`))):(this.loadTileData(U,{width:this.tileSize,height:this.tileSize,data:null}),U.state="loaded",f(null))}.bind(this)).catch(Ce=>{Ce.code!==20&&(U.state="errored",f(Ce))})}loadTileData(U,f){xt.loadTileData(U,f,this._map.painter)}unloadTileData(U){xt.unloadTileData(U,this._map.painter)}prepareTile(U){if(!this._implementation.prepareTile)return null;const{x:f,y:k,z:Z}=U.tileID.canonical,ue=this._implementation.prepareTile({x:f,y:k,z:Z});return ue?(this.loadTileData(U,ue),U.state="loaded",ue):null}unloadTile(U,f){if(this.unloadTileData(U),this._implementation.unloadTile){const{x:k,y:Z,z:ue}=U.tileID.canonical;this._implementation.unloadTile({x:k,y:Z,z:ue})}f()}abortTile(U,f){U.request&&U.request.cancel&&(U.request.cancel(),delete U.request),f()}hasTransition(){return!1}_coveringTiles(){return this._map.transform.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,roundZoom:this.roundZoom}).map(U=>({x:U.canonical.x,y:U.canonical.y,z:U.canonical.z}))}_update(){this.fire(new l.Event("data",{dataType:"source",sourceDataType:"content"}))}}},we=function(U,f,k,Z){const ue=new Un[f.type](U,f,k,Z);if(ue.id!==U)throw new Error(`Expected Source id to be ${U} instead of ${ue.id}`);return l.bindAll(["load","abort","unload","serialize","prepare"],ue),ue};function En(U,f){const k=l.identity([]);return l.scale(k,k,[.5*U.width,.5*-U.height,1]),l.translate(k,k,[1,-1,0]),l.multiply$1(k,k,U.calculateProjMatrix(f.toUnwrapped())),Float32Array.from(k)}function Kn(U,f,k,Z,ue,he,_e,Ce=!1){const Xe=U.tilesIn(Z,_e,Ce);Xe.sort(Hr);const nt=[];for(const yt of Xe)nt.push({wrappedTileID:yt.tile.tileID.wrapped().key,queryResults:yt.tile.queryRenderedFeatures(f,k,U._state,yt,ue,he,En(U.transform,yt.tile.tileID),Ce)});const lt=function(yt){const Rt={},Ut={};for(const Bt of yt){const It=Bt.queryResults,vn=Bt.wrappedTileID,tn=Ut[vn]=Ut[vn]||{};for(const cn in It){const pn=It[cn],Cn=tn[cn]=tn[cn]||{},un=Rt[cn]=Rt[cn]||[];for(const kn of pn)Cn[kn.featureIndex]||(Cn[kn.featureIndex]=!0,un.push(kn))}}return Rt}(nt);for(const yt in lt)lt[yt].forEach(Rt=>{const Ut=Rt.feature,Bt=Ut.layer;Bt&&Bt.type!=="background"&&Bt.type!=="sky"&&(Ut.source=Bt.source,Bt["source-layer"]&&(Ut.sourceLayer=Bt["source-layer"]),Ut.state=Ut.id!==void 0?U.getFeatureState(Bt["source-layer"],Ut.id):{})});return lt}function er(U,f){const k=U.getRenderableIds().map(he=>U.getTileByID(he)),Z=[],ue={};for(let he=0;he<k.length;he++){const _e=k[he],Ce=_e.tileID.canonical.key;ue[Ce]||(ue[Ce]=!0,_e.querySourceFeatures(Z,f))}return Z}function Hr(U,f){const k=U.tileID,Z=f.tileID;return k.overscaledZ-Z.overscaledZ||k.canonical.y-Z.canonical.y||k.wrap-Z.wrap||k.canonical.x-Z.canonical.x}function Ir(){return rc.workerClass!=null?new rc.workerClass:new l.window.Worker(rc.workerUrl)}const Ri="mapboxgl_preloaded_worker_pool";class Ti{constructor(){this.active={}}acquire(f){if(!this.workers)for(this.workers=[];this.workers.length<Ti.workerCount;)this.workers.push(new Ir);return this.active[f]=!0,this.workers.slice()}release(f){delete this.active[f],this.numActive()===0&&(this.workers.forEach(k=>{k.terminate()}),this.workers=null)}isPreloaded(){return!!this.active[Ri]}numActive(){return Object.keys(this.active).length}}let mi;function Li(){return mi||(mi=new Ti),mi}function tr(U,f){const k={};for(const Z in U)Z!=="ref"&&(k[Z]=U[Z]);return l.refProperties.forEach(Z=>{Z in f&&(k[Z]=f[Z])}),k}function ha(U){U=U.slice();const f=Object.create(null);for(let k=0;k<U.length;k++)f[U[k].id]=U[k];for(let k=0;k<U.length;k++)"ref"in U[k]&&(U[k]=tr(U[k],f[U[k].ref]));return U}Ti.workerCount=2;const ti={setStyle:"setStyle",addLayer:"addLayer",removeLayer:"removeLayer",setPaintProperty:"setPaintProperty",setLayoutProperty:"setLayoutProperty",setFilter:"setFilter",addSource:"addSource",removeSource:"removeSource",setGeoJSONSourceData:"setGeoJSONSourceData",setLayerZoomRange:"setLayerZoomRange",setLayerProperty:"setLayerProperty",setCenter:"setCenter",setZoom:"setZoom",setBearing:"setBearing",setPitch:"setPitch",setSprite:"setSprite",setGlyphs:"setGlyphs",setTransition:"setTransition",setLight:"setLight",setTerrain:"setTerrain",setFog:"setFog",setProjection:"setProjection"};function ua(U,f,k){k.push({command:ti.addSource,args:[U,f[U]]})}function Va(U,f,k){f.push({command:ti.removeSource,args:[U]}),k[U]=!0}function ns(U,f,k,Z){Va(U,k,Z),ua(U,f,k)}function Xo(U,f,k){let Z;for(Z in U[k])if(U[k].hasOwnProperty(Z)&&Z!=="data"&&!_(U[k][Z],f[k][Z]))return!1;for(Z in f[k])if(f[k].hasOwnProperty(Z)&&Z!=="data"&&!_(U[k][Z],f[k][Z]))return!1;return!0}function qr(U,f,k,Z,ue,he){let _e;for(_e in f=f||{},U=U||{})U.hasOwnProperty(_e)&&(_(U[_e],f[_e])||k.push({command:he,args:[Z,_e,f[_e],ue]}));for(_e in f)f.hasOwnProperty(_e)&&!U.hasOwnProperty(_e)&&(_(U[_e],f[_e])||k.push({command:he,args:[Z,_e,f[_e],ue]}))}function ca(U){return U.id}function va(U,f){return U[f.id]=f,U}class Ms{constructor(f,k){this.reset(f,k)}reset(f,k){this.points=f||[],this._distances=[0];for(let Z=1;Z<this.points.length;Z++)this._distances[Z]=this._distances[Z-1]+this.points[Z].dist(this.points[Z-1]);this.length=this._distances[this._distances.length-1],this.padding=Math.min(k||0,.5*this.length),this.paddedLength=this.length-2*this.padding}lerp(f){if(this.points.length===1)return this.points[0];f=l.clamp(f,0,1);let k=1,Z=this._distances[k];const ue=f*this.paddedLength+this.padding;for(;Z<ue&&k<this._distances.length;)Z=this._distances[++k];const he=k-1,_e=this._distances[he],Ce=Z-_e,Xe=Ce>0?(ue-_e)/Ce:0;return this.points[he].mult(1-Xe).add(this.points[k].mult(Xe))}}class rs{constructor(f,k,Z){const ue=this.boxCells=[],he=this.circleCells=[];this.xCellCount=Math.ceil(f/Z),this.yCellCount=Math.ceil(k/Z);for(let _e=0;_e<this.xCellCount*this.yCellCount;_e++)ue.push([]),he.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=f,this.height=k,this.xScale=this.xCellCount/f,this.yScale=this.yCellCount/k,this.boxUid=0,this.circleUid=0}keysLength(){return this.boxKeys.length+this.circleKeys.length}insert(f,k,Z,ue,he){this._forEachCell(k,Z,ue,he,this._insertBoxCell,this.boxUid++),this.boxKeys.push(f),this.bboxes.push(k),this.bboxes.push(Z),this.bboxes.push(ue),this.bboxes.push(he)}insertCircle(f,k,Z,ue){this._forEachCell(k-ue,Z-ue,k+ue,Z+ue,this._insertCircleCell,this.circleUid++),this.circleKeys.push(f),this.circles.push(k),this.circles.push(Z),this.circles.push(ue)}_insertBoxCell(f,k,Z,ue,he,_e){this.boxCells[he].push(_e)}_insertCircleCell(f,k,Z,ue,he,_e){this.circleCells[he].push(_e)}_query(f,k,Z,ue,he,_e){if(Z<0||f>this.width||ue<0||k>this.height)return!he&&[];const Ce=[];if(f<=0&&k<=0&&this.width<=Z&&this.height<=ue){if(he)return!0;for(let Xe=0;Xe<this.boxKeys.length;Xe++)Ce.push({key:this.boxKeys[Xe],x1:this.bboxes[4*Xe],y1:this.bboxes[4*Xe+1],x2:this.bboxes[4*Xe+2],y2:this.bboxes[4*Xe+3]});for(let Xe=0;Xe<this.circleKeys.length;Xe++){const nt=this.circles[3*Xe],lt=this.circles[3*Xe+1],yt=this.circles[3*Xe+2];Ce.push({key:this.circleKeys[Xe],x1:nt-yt,y1:lt-yt,x2:nt+yt,y2:lt+yt})}return _e?Ce.filter(_e):Ce}return this._forEachCell(f,k,Z,ue,this._queryCell,Ce,{hitTest:he,seenUids:{box:{},circle:{}}},_e),he?Ce.length>0:Ce}_queryCircle(f,k,Z,ue,he){const _e=f-Z,Ce=f+Z,Xe=k-Z,nt=k+Z;if(Ce<0||_e>this.width||nt<0||Xe>this.height)return!ue&&[];const lt=[];return this._forEachCell(_e,Xe,Ce,nt,this._queryCellCircle,lt,{hitTest:ue,circle:{x:f,y:k,radius:Z},seenUids:{box:{},circle:{}}},he),ue?lt.length>0:lt}query(f,k,Z,ue,he){return this._query(f,k,Z,ue,!1,he)}hitTest(f,k,Z,ue,he){return this._query(f,k,Z,ue,!0,he)}hitTestCircle(f,k,Z,ue){return this._queryCircle(f,k,Z,!0,ue)}_queryCell(f,k,Z,ue,he,_e,Ce,Xe){const nt=Ce.seenUids,lt=this.boxCells[he];if(lt!==null){const Rt=this.bboxes;for(const Ut of lt)if(!nt.box[Ut]){nt.box[Ut]=!0;const Bt=4*Ut;if(f<=Rt[Bt+2]&&k<=Rt[Bt+3]&&Z>=Rt[Bt+0]&&ue>=Rt[Bt+1]&&(!Xe||Xe(this.boxKeys[Ut]))){if(Ce.hitTest)return _e.push(!0),!0;_e.push({key:this.boxKeys[Ut],x1:Rt[Bt],y1:Rt[Bt+1],x2:Rt[Bt+2],y2:Rt[Bt+3]})}}}const yt=this.circleCells[he];if(yt!==null){const Rt=this.circles;for(const Ut of yt)if(!nt.circle[Ut]){nt.circle[Ut]=!0;const Bt=3*Ut;if(this._circleAndRectCollide(Rt[Bt],Rt[Bt+1],Rt[Bt+2],f,k,Z,ue)&&(!Xe||Xe(this.circleKeys[Ut]))){if(Ce.hitTest)return _e.push(!0),!0;{const It=Rt[Bt],vn=Rt[Bt+1],tn=Rt[Bt+2];_e.push({key:this.circleKeys[Ut],x1:It-tn,y1:vn-tn,x2:It+tn,y2:vn+tn})}}}}}_queryCellCircle(f,k,Z,ue,he,_e,Ce,Xe){const nt=Ce.circle,lt=Ce.seenUids,yt=this.boxCells[he];if(yt!==null){const Ut=this.bboxes;for(const Bt of yt)if(!lt.box[Bt]){lt.box[Bt]=!0;const It=4*Bt;if(this._circleAndRectCollide(nt.x,nt.y,nt.radius,Ut[It+0],Ut[It+1],Ut[It+2],Ut[It+3])&&(!Xe||Xe(this.boxKeys[Bt])))return _e.push(!0),!0}}const Rt=this.circleCells[he];if(Rt!==null){const Ut=this.circles;for(const Bt of Rt)if(!lt.circle[Bt]){lt.circle[Bt]=!0;const It=3*Bt;if(this._circlesCollide(Ut[It],Ut[It+1],Ut[It+2],nt.x,nt.y,nt.radius)&&(!Xe||Xe(this.circleKeys[Bt])))return _e.push(!0),!0}}}_forEachCell(f,k,Z,ue,he,_e,Ce,Xe){const nt=this._convertToXCellCoord(f),lt=this._convertToYCellCoord(k),yt=this._convertToXCellCoord(Z),Rt=this._convertToYCellCoord(ue);for(let Ut=nt;Ut<=yt;Ut++)for(let Bt=lt;Bt<=Rt;Bt++)if(he.call(this,f,k,Z,ue,this.xCellCount*Bt+Ut,_e,Ce,Xe))return}_convertToXCellCoord(f){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(f*this.xScale)))}_convertToYCellCoord(f){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(f*this.yScale)))}_circlesCollide(f,k,Z,ue,he,_e){const Ce=ue-f,Xe=he-k,nt=Z+_e;return nt*nt>Ce*Ce+Xe*Xe}_circleAndRectCollide(f,k,Z,ue,he,_e,Ce){const Xe=(_e-ue)/2,nt=Math.abs(f-(ue+Xe));if(nt>Xe+Z)return!1;const lt=(Ce-he)/2,yt=Math.abs(k-(he+lt));if(yt>lt+Z)return!1;if(nt<=Xe||yt<=lt)return!0;const Rt=nt-Xe,Ut=yt-lt;return Rt*Rt+Ut*Ut<=Z*Z}}const Ai=Math.tan(85*Math.PI/180);function Na(U,f,k,Z,ue,he){const _e=l.create();if(k){if(ue.projection.name==="globe")l.multiply$1(_e,_e,l.calculateGlobeLabelMatrix(ue,f));else{const Ce=D([],he);_e[0]=Ce[0],_e[1]=Ce[1],_e[4]=Ce[2],_e[5]=Ce[3]}Z||l.rotateZ(_e,_e,ue.angle)}else l.multiply$1(_e,ue.labelPlaneMatrix,U);return _e}function sl(U,f,k,Z,ue,he){if(k){if(ue.projection.name==="globe"){const _e=Na(U,f,k,Z,ue,he);return l.invert(_e,_e),l.multiply$1(_e,U,_e),_e}{const _e=l.clone(U),Ce=l.identity([]);return Ce[0]=he[0],Ce[1]=he[1],Ce[4]=he[2],Ce[5]=he[3],l.multiply$1(_e,_e,Ce),Z||l.rotateZ(_e,_e,-ue.angle),_e}}return ue.glCoordMatrix}function eo(U,f,k=0){const Z=[U.x,U.y,k,1];k?l.transformMat4$1(Z,Z,f):Mi(Z,Z,f);const ue=Z[3];return{point:new l.pointGeometry(Z[0]/ue,Z[1]/ue),signedDistanceFromCamera:ue}}function ja(U,f){const k=[U[0],U[1],U[2],1];l.transformMat4$1(k,k,f);const Z=k[3];return{point:new l.pointGeometry(k[0]/Z,k[1]/Z),signedDistanceFromCamera:Z}}function no(U,f){return Math.min(.5+U/f*.5,1.5)}function yo(U,f){const k=U[0]/U[3],Z=U[1]/U[3];return k>=-f[0]&&k<=f[0]&&Z>=-f[1]&&Z<=f[1]}function Ra(U,f,k,Z,ue,he,_e,Ce,Xe,nt){const lt=k.transform,yt=Z?U.textSizeData:U.iconSizeData,Rt=l.evaluateSizeForZoom(yt,k.transform.zoom),Ut=[256/k.width*2+1,256/k.height*2+1],Bt=Z?U.text.dynamicLayoutVertexArray:U.icon.dynamicLayoutVertexArray;Bt.clear();const It=U.lineVertexArray,vn=Z?U.text.placedSymbolArray:U.icon.placedSymbolArray,tn=k.transform.width/k.transform.height;let cn=!1;for(let pn=0;pn<vn.length;pn++){const Cn=vn.get(pn);if(Cn.writingMode!==l.WritingMode.vertical||cn||pn!==0&&vn.get(pn-1).writingMode===l.WritingMode.horizontal||(cn=!0),(Cn.hidden||Cn.writingMode===l.WritingMode.vertical)&&!cn){Pr(Cn.numGlyphs,Bt);continue}cn=!1;const un=new l.pointGeometry(Cn.tileAnchorX,Cn.tileAnchorY),kn=Xe?Xe(un):[0,0,0],nr=lt.projection.projectTilePoint(un.x,un.y,nt.canonical),dr=[nr.x+kn[0],nr.y+kn[1],nr.z+kn[2]],xr=[...dr,1];if(l.transformMat4$1(xr,xr,f),!yo(xr,Ut)){Pr(Cn.numGlyphs,Bt);continue}const yr=no(k.transform.cameraToCenterDistance,xr[3]),Qr=l.evaluateSizeForFeature(yt,Rt,Cn),ir=_e?Qr/yr:Qr*yr,gr=eo(new l.pointGeometry(dr[0],dr[1]),ue,dr[2]);if(gr.signedDistanceFromCamera<=0){Pr(Cn.numGlyphs,Bt);continue}let Yr={};const Oi=_e?null:Xe,br=ft(Cn,ir,!1,Ce,f,ue,he,U.glyphOffsetArray,It,Bt,gr.point,un,Yr,tn,Oi,lt.projection,nt);cn=br.useVertical,Oi&&br.needsFlipping&&(Yr={}),(br.notEnoughRoom||cn||br.needsFlipping&&ft(Cn,ir,!0,Ce,f,ue,he,U.glyphOffsetArray,It,Bt,gr.point,un,Yr,tn,Oi,lt.projection,nt).notEnoughRoom)&&Pr(Cn.numGlyphs,Bt)}Z?U.text.dynamicLayoutVertexBuffer.updateData(Bt):U.icon.dynamicLayoutVertexBuffer.updateData(Bt)}function Ye(U,f,k,Z,ue,he,_e,Ce,Xe,nt,lt,yt,Rt,Ut,Bt){const It=Ce.glyphStartIndex+Ce.numGlyphs,vn=Ce.lineStartIndex,tn=Ce.lineStartIndex+Ce.lineLength,cn=f.getoffsetX(Ce.glyphStartIndex),pn=f.getoffsetX(It-1),Cn=sr(U*cn,k,Z,ue,he,_e,Ce.segment,vn,tn,Xe,nt,lt,yt,Rt,!0,Ut,Bt);if(!Cn)return null;const un=sr(U*pn,k,Z,ue,he,_e,Ce.segment,vn,tn,Xe,nt,lt,yt,Rt,!0,Ut,Bt);return un?{first:Cn,last:un}:null}function $t(U,f,k,Z){return U.writingMode===l.WritingMode.horizontal&&Math.abs(k.y-f.y)>Math.abs(k.x-f.x)*Z?{useVertical:!0}:U.writingMode===l.WritingMode.vertical?f.y<k.y?{needsFlipping:!0}:null:U.flipState!==0&&function(ue,he,_e){const Ce=(he.x-ue.x)*_e;return Ce===0||Math.abs((he.y-ue.y)/Ce)>Ai}(f,k,Z)?U.flipState===1?{needsFlipping:!0}:null:f.x>k.x?{needsFlipping:!0}:null}function ft(U,f,k,Z,ue,he,_e,Ce,Xe,nt,lt,yt,Rt,Ut,Bt,It,vn){const tn=f/24,cn=U.lineOffsetX*tn,pn=U.lineOffsetY*tn;let Cn;if(U.numGlyphs>1){const un=U.glyphStartIndex+U.numGlyphs,kn=U.lineStartIndex,nr=U.lineStartIndex+U.lineLength,dr=Ye(tn,Ce,cn,pn,k,lt,yt,U,Xe,he,Rt,Bt,!1,It,vn);if(!dr)return{notEnoughRoom:!0};const xr=eo(dr.first.point,_e).point,yr=eo(dr.last.point,_e).point;if(Z&&!k){const Qr=$t(U,xr,yr,Ut);if(U.flipState=Qr&&Qr.needsFlipping?1:2,Qr)return Qr}Cn=[dr.first];for(let Qr=U.glyphStartIndex+1;Qr<un-1;Qr++)Cn.push(sr(tn*Ce.getoffsetX(Qr),cn,pn,k,lt,yt,U.segment,kn,nr,Xe,he,Rt,Bt,!1,!1,It,vn));Cn.push(dr.last)}else{if(Z&&!k){const kn=eo(yt,ue).point,nr=U.lineStartIndex+U.segment+1,dr=new l.pointGeometry(Xe.getx(nr),Xe.gety(nr)),xr=eo(dr,ue),yr=$t(U,kn,xr.signedDistanceFromCamera>0?xr.point:bn(yt,dr,kn,1,ue,void 0,It,vn.canonical),Ut);if(U.flipState=yr&&yr.needsFlipping?1:2,yr)return yr}const un=sr(tn*Ce.getoffsetX(U.glyphStartIndex),cn,pn,k,lt,yt,U.segment,U.lineStartIndex,U.lineStartIndex+U.lineLength,Xe,he,Rt,Bt,!1,!1,It,vn);if(!un)return{notEnoughRoom:!0};Cn=[un]}for(const un of Cn)l.addDynamicAttributes(nt,un.point,un.angle);return{}}function Gt(U,f,k,Z,ue){const he=Z.projectTilePoint(U.x,U.y,f);if(!ue)return eo(he,k,he.z);const _e=ue(U);return eo(new l.pointGeometry(he.x+_e[0],he.y+_e[1]),k,he.z+_e[2])}function bn(U,f,k,Z,ue,he,_e,Ce){const Xe=Gt(U.add(U.sub(f)._unit()),Ce,ue,_e,he).point,nt=k.sub(Xe);return k.add(nt._mult(Z/nt.mag()))}function sr(U,f,k,Z,ue,he,_e,Ce,Xe,nt,lt,yt,Rt,Ut,Bt,It,vn){const tn=Z?U-f:U+f;let cn=tn>0?1:-1,pn=0;Z&&(cn*=-1,pn=Math.PI),cn<0&&(pn+=Math.PI);let Cn=cn>0?Ce+_e:Ce+_e+1,un=ue,kn=ue,nr=0,dr=0;const xr=Math.abs(tn),yr=[],Qr=[];let ir=he;const gr=()=>{const ui=Cn-cn;return nr===0?he:new l.pointGeometry(nt.getx(ui),nt.gety(ui))},Yr=()=>bn(gr(),ir,kn,xr-nr+1,lt,Rt,It,vn.canonical);for(;nr+dr<=xr;){if(Cn+=cn,Cn<Ce||Cn>=Xe)return null;if(kn=un,yr.push(un),Ut&&Qr.push(ir||gr()),un=yt[Cn],un===void 0){ir=new l.pointGeometry(nt.getx(Cn),nt.gety(Cn));const ui=Gt(ir,vn.canonical,lt,It,Rt);un=ui.signedDistanceFromCamera>0?yt[Cn]=ui.point:Yr()}else ir=null;nr+=dr,dr=kn.dist(un)}Bt&&Rt&&(ir=ir||new l.pointGeometry(nt.getx(Cn),nt.gety(Cn)),yt[Cn]=un=yt[Cn]===void 0?un:Yr(),dr=kn.dist(un));const Oi=(xr-nr)/dr,br=un.sub(kn),Ii=br.mult(Oi)._add(kn);k&&Ii._add(br._unit()._perp()._mult(k*cn));const ea=pn+Math.atan2(un.y-kn.y,un.x-kn.x);return yr.push(Ii),Ut&&(ir=ir||new l.pointGeometry(nt.getx(Cn),nt.gety(Cn)),Qr.push(function(ui,Fi,pa){const Ja=1-pa;return new l.pointGeometry(ui.x*Ja+Fi.x*pa,ui.y*Ja+Fi.y*pa)}(Qr.length>0?Qr[Qr.length-1]:ir,ir,Oi))),{point:Ii,angle:ea,path:yr,tilePath:Qr}}const Br=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Pr(U,f){for(let k=0;k<U;k++){const Z=f.length;f.resize(Z+4),f.float32.set(Br,3*Z)}}function Mi(U,f,k){const Z=f[0],ue=f[1];return U[0]=k[0]*Z+k[4]*ue+k[12],U[1]=k[1]*Z+k[5]*ue+k[13],U[3]=k[3]*Z+k[7]*ue+k[15],U}const vi=100;class Sa{constructor(f,k,Z=new rs(f.width+200,f.height+200,25),ue=new rs(f.width+200,f.height+200,25)){this.transform=f,this.grid=Z,this.ignoredGrid=ue,this.pitchfactor=Math.cos(f._pitch)*f.cameraToCenterDistance,this.screenRightBoundary=f.width+vi,this.screenBottomBoundary=f.height+vi,this.gridRightBoundary=f.width+200,this.gridBottomBoundary=f.height+200,this.fogState=k}placeCollisionBox(f,k,Z,ue,he,_e,Ce){let Xe=k.projectedAnchorX,nt=k.projectedAnchorY,lt=k.projectedAnchorZ;const yt=k.elevation,Rt=k.tileID;if(yt&&Rt){const Cn=this.transform.projection.upVector(Rt.canonical,k.tileAnchorX,k.tileAnchorY),un=this.transform.projection.upVectorScale(Rt.canonical,this.transform.center.lat,this.transform.worldSize).metersToTile;Xe+=Cn[0]*yt*un,nt+=Cn[1]*yt*un,lt+=Cn[2]*yt*un}const Ut=this.projectAndGetPerspectiveRatio(_e,[Xe,nt,lt],k.tileID,this.transform.projection.name==="globe"||!!yt||this.transform.pitch>0),Bt=he*Ut.perspectiveRatio,It=(k.x1*f+Z.x-k.padding)*Bt+Ut.point.x,vn=(k.y1*f+Z.y-k.padding)*Bt+Ut.point.y,tn=(k.x2*f+Z.x+k.padding)*Bt+Ut.point.x,cn=(k.y2*f+Z.y+k.padding)*Bt+Ut.point.y,pn=Ut.perspectiveRatio<=.55||Ut.occluded;return!this.isInsideGrid(It,vn,tn,cn)||!ue&&this.grid.hitTest(It,vn,tn,cn,Ce)||pn?{box:[],offscreen:!1,occluded:Ut.occluded}:{box:[It,vn,tn,cn],offscreen:this.isOffscreen(It,vn,tn,cn),occluded:!1}}placeCollisionCircles(f,k,Z,ue,he,_e,Ce,Xe,nt,lt,yt,Rt,Ut,Bt){const It=[],vn=this.transform.elevation,tn=vn?vn.getAtTileOffsetFunc(Bt,this.transform.center.lat,this.transform.worldSize,this.transform.projection):Yr=>[0,0,0],cn=new l.pointGeometry(k.tileAnchorX,k.tileAnchorY),pn=this.transform.projection.projectTilePoint(k.tileAnchorX,k.tileAnchorY,Bt.canonical),Cn=tn(cn),un=[pn.x+Cn[0],pn.y+Cn[1],pn.z+Cn[2]],kn=this.projectAndGetPerspectiveRatio(_e,[un[0],un[1],un[2]],Bt,this.transform.projection.name==="globe"||!!vn||this.transform.pitch>0),{perspectiveRatio:nr}=kn,dr=(lt?he/nr:he*nr)/l.ONE_EM,xr=eo(new l.pointGeometry(un[0],un[1]),Ce,un[2]).point,yr=kn.signedDistanceFromCamera>0?Ye(dr,ue,k.lineOffsetX*dr,k.lineOffsetY*dr,!1,xr,cn,k,Z,Ce,{},vn&&!lt?tn:null,lt&&!!vn,this.transform.projection,Bt):null;let Qr=!1,ir=!1,gr=!0;if(yr&&!kn.occluded){const Yr=.5*Rt*nr+Ut,Oi=new l.pointGeometry(-100,-100),br=new l.pointGeometry(this.screenRightBoundary,this.screenBottomBoundary),Ii=new Ms,ea=yr.first,ui=yr.last;let Fi=[];for(let ji=ea.path.length-1;ji>=1;ji--)Fi.push(ea.path[ji]);for(let ji=1;ji<ui.path.length;ji++)Fi.push(ui.path[ji]);const pa=2.5*Yr;if(Xe){const ji=Fi.map(vn?(Xi,Mo)=>{const Is=tn(Mo<ea.path.length-1?ea.tilePath[ea.path.length-1-Mo]:ui.tilePath[Mo-ea.path.length+2]);return eo(Xi,Xe,Is[2])}:Xi=>eo(Xi,Xe));Fi=ji.some(Xi=>Xi.signedDistanceFromCamera<=0)?[]:ji.map(Xi=>Xi.point)}let Ja=[];if(Fi.length>0){const ji=Fi[0].clone(),Xi=Fi[0].clone();for(let Mo=1;Mo<Fi.length;Mo++)ji.x=Math.min(ji.x,Fi[Mo].x),ji.y=Math.min(ji.y,Fi[Mo].y),Xi.x=Math.max(Xi.x,Fi[Mo].x),Xi.y=Math.max(Xi.y,Fi[Mo].y);Ja=ji.x>=Oi.x&&Xi.x<=br.x&&ji.y>=Oi.y&&Xi.y<=br.y?[Fi]:Xi.x<Oi.x||ji.x>br.x||Xi.y<Oi.y||ji.y>br.y?[]:l.clipLine([Fi],Oi.x,Oi.y,br.x,br.y)}for(const ji of Ja){Ii.reset(ji,.25*Yr);let Xi=0;Xi=Ii.length<=.5*Yr?1:Math.ceil(Ii.paddedLength/pa)+1;for(let Mo=0;Mo<Xi;Mo++){const Is=Mo/Math.max(Xi-1,1),Gl=Ii.lerp(Is),js=Gl.x+vi,Sl=Gl.y+vi;It.push(js,Sl,Yr,0);const ju=js-Yr,mc=Sl-Yr,gc=js+Yr,ic=Sl+Yr;if(gr=gr&&this.isOffscreen(ju,mc,gc,ic),ir=ir||this.isInsideGrid(ju,mc,gc,ic),!f&&this.grid.hitTestCircle(js,Sl,Yr,yt)&&(Qr=!0,!nt))return{circles:[],offscreen:!1,collisionDetected:Qr,occluded:!1}}}}return{circles:!nt&&Qr||!ir?[]:It,offscreen:gr,collisionDetected:Qr,occluded:kn.occluded}}queryRenderedSymbols(f){if(f.length===0||this.grid.keysLength()===0&&this.ignoredGrid.keysLength()===0)return{};const k=[];let Z=1/0,ue=1/0,he=-1/0,_e=-1/0;for(const lt of f){const yt=new l.pointGeometry(lt.x+vi,lt.y+vi);Z=Math.min(Z,yt.x),ue=Math.min(ue,yt.y),he=Math.max(he,yt.x),_e=Math.max(_e,yt.y),k.push(yt)}const Ce=this.grid.query(Z,ue,he,_e).concat(this.ignoredGrid.query(Z,ue,he,_e)),Xe={},nt={};for(const lt of Ce){const yt=lt.key;if(Xe[yt.bucketInstanceId]===void 0&&(Xe[yt.bucketInstanceId]={}),Xe[yt.bucketInstanceId][yt.featureIndex])continue;const Rt=[new l.pointGeometry(lt.x1,lt.y1),new l.pointGeometry(lt.x2,lt.y1),new l.pointGeometry(lt.x2,lt.y2),new l.pointGeometry(lt.x1,lt.y2)];l.polygonIntersectsPolygon(k,Rt)&&(Xe[yt.bucketInstanceId][yt.featureIndex]=!0,nt[yt.bucketInstanceId]===void 0&&(nt[yt.bucketInstanceId]=[]),nt[yt.bucketInstanceId].push(yt.featureIndex))}return nt}insertCollisionBox(f,k,Z,ue,he){(k?this.ignoredGrid:this.grid).insert({bucketInstanceId:Z,featureIndex:ue,collisionGroupID:he},f[0],f[1],f[2],f[3])}insertCollisionCircles(f,k,Z,ue,he){const _e=k?this.ignoredGrid:this.grid,Ce={bucketInstanceId:Z,featureIndex:ue,collisionGroupID:he};for(let Xe=0;Xe<f.length;Xe+=4)_e.insertCircle(Ce,f[Xe],f[Xe+1],f[Xe+2])}projectAndGetPerspectiveRatio(f,k,Z,ue){const he=[k[0],k[1],k[2],1];let _e=!1;return k[2]||this.transform.pitch>0?(l.transformMat4$1(he,he,f),this.fogState&&Z&&(_e=function(Ce,Xe,nt,lt,yt,Rt){const Ut=Rt.calculateFogTileMatrix(yt),Bt=[Xe,nt,lt];return l.transformMat4(Bt,Bt,Ut),Le(Ce,Bt,Rt.pitch,Rt._fov)}(this.fogState,k[0],k[1],k[2],Z.toUnwrapped(),this.transform)>.9)):Mi(he,he,f),{point:new l.pointGeometry((he[0]/he[3]+1)/2*this.transform.width+vi,(-he[1]/he[3]+1)/2*this.transform.height+vi),perspectiveRatio:Math.min(.5+this.transform.cameraToCenterDistance/he[3]*.5,1.5),signedDistanceFromCamera:he[3],occluded:ue&&he[2]>he[3]||_e}}isOffscreen(f,k,Z,ue){return Z<vi||f>=this.screenRightBoundary||ue<vi||k>this.screenBottomBoundary}isInsideGrid(f,k,Z,ue){return Z>=0&&f<this.gridRightBoundary&&ue>=0&&k<this.gridBottomBoundary}getViewportMatrix(){const f=l.identity([]);return l.translate(f,f,[-100,-100,0]),f}}class La{constructor(f,k,Z,ue){this.opacity=f?Math.max(0,Math.min(1,f.opacity+(f.placed?k:-k))):ue&&Z?1:0,this.placed=Z}isHidden(){return this.opacity===0&&!this.placed}}class Cs{constructor(f,k,Z,ue,he,_e=!1){this.text=new La(f?f.text:null,k,Z,he),this.icon=new La(f?f.icon:null,k,ue,he),this.clipped=_e}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class ko{constructor(f,k,Z,ue=!1){this.text=f,this.icon=k,this.skipFade=Z,this.clipped=ue}}class Co{constructor(){this.invProjMatrix=l.create(),this.viewportMatrix=l.create(),this.circles=[]}}class gs{constructor(f,k,Z,ue,he){this.bucketInstanceId=f,this.featureIndex=k,this.sourceLayerIndex=Z,this.bucketIndex=ue,this.tileID=he}}class No{constructor(f){this.crossSourceCollisions=f,this.maxGroupID=0,this.collisionGroups={}}get(f){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[f]){const k=++this.maxGroupID;this.collisionGroups[f]={ID:k,predicate:Z=>Z.collisionGroupID===k}}return this.collisionGroups[f]}}function wl(U,f,k,Z,ue){const{horizontalAlign:he,verticalAlign:_e}=l.getAnchorAlignment(U),Ce=-(he-.5)*f,Xe=-(_e-.5)*k,nt=l.evaluateVariableOffset(U,Z);return new l.pointGeometry(Ce+nt[0]*ue,Xe+nt[1]*ue)}function Ua(U,f,k,Z,ue){const he=new l.pointGeometry(U,f);return k&&he._rotate(Z?ue:-ue),he}class Vs{constructor(f,k,Z,ue,he){this.transform=f.clone(),this.collisionIndex=new Sa(this.transform,he),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=k,this.retainedQueryData={},this.collisionGroups=new No(Z),this.collisionCircleArrays={},this.prevPlacement=ue,ue&&(ue.prevPlacement=void 0),this.placedOrientations={}}getBucketParts(f,k,Z,ue){const he=Z.getBucket(k),_e=Z.latestFeatureIndex;if(!he||!_e||k.id!==he.layerIds[0])return;const Ce=he.layers[0].layout,Xe=Z.collisionBoxArray,nt=Math.pow(2,this.transform.zoom-Z.tileID.overscaledZ),lt=Z.tileSize/l.EXTENT,yt=Z.tileID.toUnwrapped(),Rt=this.transform.calculateProjMatrix(yt),Ut=Ce.get("text-pitch-alignment")==="map",Bt=Ce.get("text-rotation-alignment")==="map";k.compileFilter();const It=k.dynamicFilter(),vn=k.dynamicFilterNeedsFeature(),tn=this.transform.calculatePixelsToTileUnitsMatrix(Z),cn=Na(Rt,Z.tileID.canonical,Ut,Bt,this.transform,tn);let pn=null;if(Ut){const kn=sl(Rt,Z.tileID.canonical,Ut,Bt,this.transform,tn);pn=l.multiply$1([],this.transform.labelPlaneMatrix,kn)}let Cn=null;It&&Z.latestFeatureIndex&&(Cn={unwrappedTileID:yt,dynamicFilter:It,dynamicFilterNeedsFeature:vn,featureIndex:Z.latestFeatureIndex}),this.retainedQueryData[he.bucketInstanceId]=new gs(he.bucketInstanceId,_e,he.sourceLayerIndex,he.index,Z.tileID);const un={bucket:he,layout:Ce,posMatrix:Rt,textLabelPlaneMatrix:cn,labelToScreenMatrix:pn,clippingData:Cn,scale:nt,textPixelRatio:lt,holdingForFade:Z.holdingForFade(),collisionBoxArray:Xe,partiallyEvaluatedTextSize:l.evaluateSizeForZoom(he.textSizeData,this.transform.zoom),partiallyEvaluatedIconSize:l.evaluateSizeForZoom(he.iconSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(he.sourceID)};if(ue)for(const kn of he.sortKeyRanges){const{sortKey:nr,symbolInstanceStart:dr,symbolInstanceEnd:xr}=kn;f.push({sortKey:nr,symbolInstanceStart:dr,symbolInstanceEnd:xr,parameters:un})}else f.push({symbolInstanceStart:0,symbolInstanceEnd:he.symbolInstances.length,parameters:un})}attemptAnchorPlacement(f,k,Z,ue,he,_e,Ce,Xe,nt,lt,yt,Rt,Ut,Bt,It,vn,tn,cn){const pn=[Rt.textOffset0,Rt.textOffset1],Cn=wl(f,Z,ue,pn,he),un=this.collisionIndex.placeCollisionBox(he,k,Ua(Cn.x,Cn.y,_e,Ce,this.transform.angle),yt,Xe,nt,lt.predicate);if((!vn||this.collisionIndex.placeCollisionBox(Bt.getSymbolInstanceIconSize(cn,this.transform.zoom,Ut),vn,Ua(Cn.x,Cn.y,_e,Ce,this.transform.angle),yt,Xe,nt,lt.predicate).box.length!==0)&&un.box.length>0){let kn;return this.prevPlacement&&this.prevPlacement.variableOffsets[Rt.crossTileID]&&this.prevPlacement.placements[Rt.crossTileID]&&this.prevPlacement.placements[Rt.crossTileID].text&&(kn=this.prevPlacement.variableOffsets[Rt.crossTileID].anchor),this.variableOffsets[Rt.crossTileID]={textOffset:pn,width:Z,height:ue,anchor:f,textScale:he,prevAnchor:kn},this.markUsedJustification(Bt,f,Rt,It),Bt.allowVerticalPlacement&&(this.markUsedOrientation(Bt,It,Rt),this.placedOrientations[Rt.crossTileID]=It),{shift:Cn,placedGlyphBoxes:un}}}placeLayerBucketPart(f,k,Z,ue){const{bucket:he,layout:_e,posMatrix:Ce,textLabelPlaneMatrix:Xe,labelToScreenMatrix:nt,clippingData:lt,textPixelRatio:yt,holdingForFade:Rt,collisionBoxArray:Ut,partiallyEvaluatedTextSize:Bt,partiallyEvaluatedIconSize:It,collisionGroup:vn}=f.parameters,tn=_e.get("text-optional"),cn=_e.get("icon-optional"),pn=_e.get("text-allow-overlap"),Cn=_e.get("icon-allow-overlap"),un=_e.get("text-rotation-alignment")==="map",kn=_e.get("text-pitch-alignment")==="map",nr=_e.get("icon-text-fit")!=="none",dr=_e.get("symbol-z-order")==="viewport-y";let xr=pn&&(Cn||!he.hasIconData()||cn),yr=Cn&&(pn||!he.hasTextData()||tn);!he.collisionArrays&&Ut&&he.deserializeCollisionBoxes(Ut),Z&&ue&&he.updateCollisionDebugBuffers(this.transform.zoom,Ut);const Qr=(ir,gr,Yr)=>{if(lt){const Us={zoom:this.transform.zoom,pitch:this.transform.pitch};let _s=null;if(lt.dynamicFilterNeedsFeature){const Eo=this.retainedQueryData[he.bucketInstanceId];_s=lt.featureIndex.loadFeature({featureIndex:ir.featureIndex,bucketIndex:Eo.bucketIndex,sourceLayerIndex:Eo.sourceLayerIndex,layoutVertexArrayOffset:0})}if(!(0,lt.dynamicFilter)(Us,_s,this.retainedQueryData[he.bucketInstanceId].tileID.canonical,new l.pointGeometry(ir.tileAnchorX,ir.tileAnchorY),this.transform.calculateDistanceTileData(lt.unwrappedTileID)))return this.placements[ir.crossTileID]=new ko(!1,!1,!1,!0),void(k[ir.crossTileID]=!0)}if(k[ir.crossTileID])return;if(Rt)return void(this.placements[ir.crossTileID]=new ko(!1,!1,!1));let Oi=!1,br=!1,Ii=!0,ea=!1,ui=!1,Fi=null,pa={box:null,offscreen:null,occluded:null},Ja={box:null,offscreen:null,occluded:null},ji=null,Xi=null,Mo=null,Is=0,Gl=0,js=0;Yr.textFeatureIndex?Is=Yr.textFeatureIndex:ir.useRuntimeCollisionCircles&&(Is=ir.featureIndex),Yr.verticalTextFeatureIndex&&(Gl=Yr.verticalTextFeatureIndex);const Sl=Us=>{Us.tileID=this.retainedQueryData[he.bucketInstanceId].tileID,(this.transform.elevation||Us.elevation)&&(Us.elevation=this.transform.elevation?this.transform.elevation.getAtTileOffset(this.retainedQueryData[he.bucketInstanceId].tileID,Us.tileAnchorX,Us.tileAnchorY):0)},ju=Yr.textBox;if(ju){Sl(ju);const Us=Eo=>{let $s=l.WritingMode.horizontal;if(he.allowVerticalPlacement&&!Eo&&this.prevPlacement){const El=this.prevPlacement.placedOrientations[ir.crossTileID];El&&(this.placedOrientations[ir.crossTileID]=El,$s=El,this.markUsedOrientation(he,$s,ir))}return $s},_s=(Eo,$s)=>{if(he.allowVerticalPlacement&&ir.numVerticalGlyphVertices>0&&Yr.verticalTextBox){for(const El of he.writingModes)if(El===l.WritingMode.vertical?(pa=$s(),Ja=pa):pa=Eo(),pa&&pa.box&&pa.box.length)break}else pa=Eo()};if(_e.get("text-variable-anchor")){let Eo=_e.get("text-variable-anchor");if(this.prevPlacement&&this.prevPlacement.variableOffsets[ir.crossTileID]){const ps=this.prevPlacement.variableOffsets[ir.crossTileID];Eo.indexOf(ps.anchor)>0&&(Eo=Eo.filter(cu=>cu!==ps.anchor),Eo.unshift(ps.anchor))}const $s=(ps,cu,jl)=>{const cl=he.getSymbolInstanceTextSize(Bt,ir,this.transform.zoom,gr),eu=(ps.x2-ps.x1)*cl+2*ps.padding,xd=(ps.y2-ps.y1)*cl+2*ps.padding,Dc=nr&&!Cn?cu:null;Dc&&Sl(Dc);let yc={box:[],offscreen:!1,occluded:!1};const bd=pn?2*Eo.length:Eo.length;for(let Cu=0;Cu<bd;++Cu){const Ac=this.attemptAnchorPlacement(Eo[Cu%Eo.length],ps,eu,xd,cl,un,kn,yt,Ce,vn,Cu>=Eo.length,ir,gr,he,jl,Dc,Bt,It);if(Ac&&(yc=Ac.placedGlyphBoxes,yc&&yc.box&&yc.box.length)){Oi=!0,Fi=Ac.shift;break}}return yc};_s(()=>$s(ju,Yr.iconBox,l.WritingMode.horizontal),()=>{const ps=Yr.verticalTextBox;return ps&&Sl(ps),he.allowVerticalPlacement&&!(pa&&pa.box&&pa.box.length)&&ir.numVerticalGlyphVertices>0&&ps?$s(ps,Yr.verticalIconBox,l.WritingMode.vertical):{box:null,offscreen:null,occluded:null}}),pa&&(Oi=pa.box,Ii=pa.offscreen,ea=pa.occluded);const El=Us(pa&&pa.box);if(!Oi&&this.prevPlacement){const ps=this.prevPlacement.variableOffsets[ir.crossTileID];ps&&(this.variableOffsets[ir.crossTileID]=ps,this.markUsedJustification(he,ps.anchor,ir,El))}}else{const Eo=($s,El)=>{const ps=he.getSymbolInstanceTextSize(Bt,ir,this.transform.zoom,gr),cu=this.collisionIndex.placeCollisionBox(ps,$s,new l.pointGeometry(0,0),pn,yt,Ce,vn.predicate);return cu&&cu.box&&cu.box.length&&(this.markUsedOrientation(he,El,ir),this.placedOrientations[ir.crossTileID]=El),cu};_s(()=>Eo(ju,l.WritingMode.horizontal),()=>{const $s=Yr.verticalTextBox;return he.allowVerticalPlacement&&ir.numVerticalGlyphVertices>0&&$s?(Sl($s),Eo($s,l.WritingMode.vertical)):{box:null,offscreen:null,occluded:null}}),Us(pa&&pa.box&&pa.box.length)}}if(ji=pa,Oi=ji&&ji.box&&ji.box.length>0,Ii=ji&&ji.offscreen,ea=ji&&ji.occluded,ir.useRuntimeCollisionCircles){const Us=he.text.placedSymbolArray.get(ir.centerJustifiedTextSymbolIndex>=0?ir.centerJustifiedTextSymbolIndex:ir.verticalPlacedTextSymbolIndex),_s=l.evaluateSizeForFeature(he.textSizeData,Bt,Us),Eo=_e.get("text-padding");Xi=this.collisionIndex.placeCollisionCircles(pn,Us,he.lineVertexArray,he.glyphOffsetArray,_s,Ce,Xe,nt,Z,kn,vn.predicate,ir.collisionCircleDiameter*_s/l.ONE_EM,Eo,this.retainedQueryData[he.bucketInstanceId].tileID),Oi=pn||Xi.circles.length>0&&!Xi.collisionDetected,Ii=Ii&&Xi.offscreen,ea=Xi.occluded}if(Yr.iconFeatureIndex&&(js=Yr.iconFeatureIndex),Yr.iconBox){const Us=_s=>{Sl(_s);const Eo=nr&&Fi?Ua(Fi.x,Fi.y,un,kn,this.transform.angle):new l.pointGeometry(0,0),$s=he.getSymbolInstanceIconSize(It,this.transform.zoom,gr);return this.collisionIndex.placeCollisionBox($s,_s,Eo,Cn,yt,Ce,vn.predicate)};Ja&&Ja.box&&Ja.box.length&&Yr.verticalIconBox?(Mo=Us(Yr.verticalIconBox),br=Mo.box.length>0):(Mo=Us(Yr.iconBox),br=Mo.box.length>0),Ii=Ii&&Mo.offscreen,ui=Mo.occluded}const mc=tn||ir.numHorizontalGlyphVertices===0&&ir.numVerticalGlyphVertices===0,gc=cn||ir.numIconVertices===0;if(mc||gc?gc?mc||(br=br&&Oi):Oi=br&&Oi:br=Oi=br&&Oi,Oi&&ji&&ji.box&&this.collisionIndex.insertCollisionBox(ji.box,_e.get("text-ignore-placement"),he.bucketInstanceId,Ja&&Ja.box&&Gl?Gl:Is,vn.ID),br&&Mo&&this.collisionIndex.insertCollisionBox(Mo.box,_e.get("icon-ignore-placement"),he.bucketInstanceId,js,vn.ID),Xi&&(Oi&&this.collisionIndex.insertCollisionCircles(Xi.circles,_e.get("text-ignore-placement"),he.bucketInstanceId,Is,vn.ID),Z)){const Us=he.bucketInstanceId;let _s=this.collisionCircleArrays[Us];_s===void 0&&(_s=this.collisionCircleArrays[Us]=new Co);for(let Eo=0;Eo<Xi.circles.length;Eo+=4)_s.circles.push(Xi.circles[Eo+0]),_s.circles.push(Xi.circles[Eo+1]),_s.circles.push(Xi.circles[Eo+2]),_s.circles.push(Xi.collisionDetected?1:0)}const ic=this.transform.projection.name!=="globe";xr=xr&&(ic||!ea),yr=yr&&(ic||!ui),this.placements[ir.crossTileID]=new ko(Oi||xr,br||yr,Ii||he.justReloaded),k[ir.crossTileID]=!0};if(dr){const ir=he.getSortedSymbolIndexes(this.transform.angle);for(let gr=ir.length-1;gr>=0;--gr){const Yr=ir[gr];Qr(he.symbolInstances.get(Yr),Yr,he.collisionArrays[Yr])}}else for(let ir=f.symbolInstanceStart;ir<f.symbolInstanceEnd;ir++)Qr(he.symbolInstances.get(ir),ir,he.collisionArrays[ir]);if(Z&&he.bucketInstanceId in this.collisionCircleArrays){const ir=this.collisionCircleArrays[he.bucketInstanceId];l.invert(ir.invProjMatrix,Ce),ir.viewportMatrix=this.collisionIndex.getViewportMatrix()}he.justReloaded=!1}markUsedJustification(f,k,Z,ue){let he;he=ue===l.WritingMode.vertical?Z.verticalPlacedTextSymbolIndex:{left:Z.leftJustifiedTextSymbolIndex,center:Z.centerJustifiedTextSymbolIndex,right:Z.rightJustifiedTextSymbolIndex}[l.getAnchorJustification(k)];const _e=[Z.leftJustifiedTextSymbolIndex,Z.centerJustifiedTextSymbolIndex,Z.rightJustifiedTextSymbolIndex,Z.verticalPlacedTextSymbolIndex];for(const Ce of _e)Ce>=0&&(f.text.placedSymbolArray.get(Ce).crossTileID=he>=0&&Ce!==he?0:Z.crossTileID)}markUsedOrientation(f,k,Z){const ue=k===l.WritingMode.horizontal||k===l.WritingMode.horizontalOnly?k:0,he=k===l.WritingMode.vertical?k:0,_e=[Z.leftJustifiedTextSymbolIndex,Z.centerJustifiedTextSymbolIndex,Z.rightJustifiedTextSymbolIndex];for(const Ce of _e)f.text.placedSymbolArray.get(Ce).placedOrientation=ue;Z.verticalPlacedTextSymbolIndex&&(f.text.placedSymbolArray.get(Z.verticalPlacedTextSymbolIndex).placedOrientation=he)}commit(f){this.commitTime=f,this.zoomAtLastRecencyCheck=this.transform.zoom;const k=this.prevPlacement;let Z=!1;this.prevZoomAdjustment=k?k.zoomAdjustment(this.transform.zoom):0;const ue=k?k.symbolFadeChange(f):1,he=k?k.opacities:{},_e=k?k.variableOffsets:{},Ce=k?k.placedOrientations:{};for(const Xe in this.placements){const nt=this.placements[Xe],lt=he[Xe];lt?(this.opacities[Xe]=new Cs(lt,ue,nt.text,nt.icon,null,nt.clipped),Z=Z||nt.text!==lt.text.placed||nt.icon!==lt.icon.placed):(this.opacities[Xe]=new Cs(null,ue,nt.text,nt.icon,nt.skipFade,nt.clipped),Z=Z||nt.text||nt.icon)}for(const Xe in he){const nt=he[Xe];if(!this.opacities[Xe]){const lt=new Cs(nt,ue,!1,!1);lt.isHidden()||(this.opacities[Xe]=lt,Z=Z||nt.text.placed||nt.icon.placed)}}for(const Xe in _e)this.variableOffsets[Xe]||!this.opacities[Xe]||this.opacities[Xe].isHidden()||(this.variableOffsets[Xe]=_e[Xe]);for(const Xe in Ce)this.placedOrientations[Xe]||!this.opacities[Xe]||this.opacities[Xe].isHidden()||(this.placedOrientations[Xe]=Ce[Xe]);Z?this.lastPlacementChangeTime=f:typeof this.lastPlacementChangeTime!="number"&&(this.lastPlacementChangeTime=k?k.lastPlacementChangeTime:f)}updateLayerOpacities(f,k){const Z={};for(const ue of k){const he=ue.getBucket(f);he&&ue.latestFeatureIndex&&f.id===he.layerIds[0]&&this.updateBucketOpacities(he,Z,ue.collisionBoxArray)}}updateBucketOpacities(f,k,Z){f.hasTextData()&&f.text.opacityVertexArray.clear(),f.hasIconData()&&f.icon.opacityVertexArray.clear(),f.hasIconCollisionBoxData()&&f.iconCollisionBox.collisionVertexArray.clear(),f.hasTextCollisionBoxData()&&f.textCollisionBox.collisionVertexArray.clear();const ue=f.layers[0].layout,he=!!f.layers[0].dynamicFilter(),_e=new Cs(null,0,!1,!1,!0),Ce=ue.get("text-allow-overlap"),Xe=ue.get("icon-allow-overlap"),nt=ue.get("text-variable-anchor"),lt=ue.get("text-rotation-alignment")==="map",yt=ue.get("text-pitch-alignment")==="map",Rt=ue.get("icon-text-fit")!=="none",Ut=new Cs(null,0,Ce&&(Xe||!f.hasIconData()||ue.get("icon-optional")),Xe&&(Ce||!f.hasTextData()||ue.get("text-optional")),!0);!f.collisionArrays&&Z&&(f.hasIconCollisionBoxData()||f.hasTextCollisionBoxData())&&f.deserializeCollisionBoxes(Z);const Bt=(vn,tn,cn)=>{for(let pn=0;pn<tn/4;pn++)vn.opacityVertexArray.emplaceBack(cn)};let It=0;for(let vn=0;vn<f.symbolInstances.length;vn++){const tn=f.symbolInstances.get(vn),{numHorizontalGlyphVertices:cn,numVerticalGlyphVertices:pn,crossTileID:Cn}=tn;let un=this.opacities[Cn];k[Cn]?un=_e:un||(un=Ut,this.opacities[Cn]=un),k[Cn]=!0;const kn=cn>0||pn>0,nr=tn.numIconVertices>0,dr=this.placedOrientations[tn.crossTileID],xr=dr===l.WritingMode.vertical,yr=dr===l.WritingMode.horizontal||dr===l.WritingMode.horizontalOnly;if(!kn&&!nr||un.isHidden()||It++,kn){const Qr=xu(un.text);Bt(f.text,cn,xr?vo:Qr),Bt(f.text,pn,yr?vo:Qr);const ir=un.text.isHidden();[tn.rightJustifiedTextSymbolIndex,tn.centerJustifiedTextSymbolIndex,tn.leftJustifiedTextSymbolIndex].forEach(Oi=>{Oi>=0&&(f.text.placedSymbolArray.get(Oi).hidden=ir||xr?1:0)}),tn.verticalPlacedTextSymbolIndex>=0&&(f.text.placedSymbolArray.get(tn.verticalPlacedTextSymbolIndex).hidden=ir||yr?1:0);const gr=this.variableOffsets[tn.crossTileID];gr&&this.markUsedJustification(f,gr.anchor,tn,dr);const Yr=this.placedOrientations[tn.crossTileID];Yr&&(this.markUsedJustification(f,"left",tn,Yr),this.markUsedOrientation(f,Yr,tn))}if(nr){const Qr=xu(un.icon);tn.placedIconSymbolIndex>=0&&(Bt(f.icon,tn.numIconVertices,xr?vo:Qr),f.icon.placedSymbolArray.get(tn.placedIconSymbolIndex).hidden=un.icon.isHidden()),tn.verticalPlacedIconSymbolIndex>=0&&(Bt(f.icon,tn.numVerticalIconVertices,yr?vo:Qr),f.icon.placedSymbolArray.get(tn.verticalPlacedIconSymbolIndex).hidden=un.icon.isHidden())}if(f.hasIconCollisionBoxData()||f.hasTextCollisionBoxData()){const Qr=f.collisionArrays[vn];if(Qr){let ir=new l.pointGeometry(0,0),gr=!0;if(Qr.textBox||Qr.verticalTextBox){if(nt){const Oi=this.variableOffsets[Cn];Oi?(ir=wl(Oi.anchor,Oi.width,Oi.height,Oi.textOffset,Oi.textScale),lt&&ir._rotate(yt?this.transform.angle:-this.transform.angle)):gr=!1}he&&(gr=!un.clipped),Qr.textBox&&jo(f.textCollisionBox.collisionVertexArray,un.text.placed,!gr||xr,ir.x,ir.y),Qr.verticalTextBox&&jo(f.textCollisionBox.collisionVertexArray,un.text.placed,!gr||yr,ir.x,ir.y)}const Yr=gr&&Boolean(!yr&&Qr.verticalIconBox);Qr.iconBox&&jo(f.iconCollisionBox.collisionVertexArray,un.icon.placed,Yr,Rt?ir.x:0,Rt?ir.y:0),Qr.verticalIconBox&&jo(f.iconCollisionBox.collisionVertexArray,un.icon.placed,!Yr,Rt?ir.x:0,Rt?ir.y:0)}}}if(f.fullyClipped=It===0,f.sortFeatures(this.transform.angle),this.retainedQueryData[f.bucketInstanceId]&&(this.retainedQueryData[f.bucketInstanceId].featureSortOrder=f.featureSortOrder),f.hasTextData()&&f.text.opacityVertexBuffer&&f.text.opacityVertexBuffer.updateData(f.text.opacityVertexArray),f.hasIconData()&&f.icon.opacityVertexBuffer&&f.icon.opacityVertexBuffer.updateData(f.icon.opacityVertexArray),f.hasIconCollisionBoxData()&&f.iconCollisionBox.collisionVertexBuffer&&f.iconCollisionBox.collisionVertexBuffer.updateData(f.iconCollisionBox.collisionVertexArray),f.hasTextCollisionBoxData()&&f.textCollisionBox.collisionVertexBuffer&&f.textCollisionBox.collisionVertexBuffer.updateData(f.textCollisionBox.collisionVertexArray),f.bucketInstanceId in this.collisionCircleArrays){const vn=this.collisionCircleArrays[f.bucketInstanceId];f.placementInvProjMatrix=vn.invProjMatrix,f.placementViewportMatrix=vn.viewportMatrix,f.collisionCircleArray=vn.circles,delete this.collisionCircleArrays[f.bucketInstanceId]}}symbolFadeChange(f){return this.fadeDuration===0?1:(f-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(f){return Math.max(0,(this.transform.zoom-f)/1.5)}hasTransitions(f){return this.stale||f-this.lastPlacementChangeTime<this.fadeDuration}stillRecent(f,k){const Z=this.zoomAtLastRecencyCheck===k?1-this.zoomAdjustment(k):1;return this.zoomAtLastRecencyCheck=k,this.commitTime+this.fadeDuration*Z>f}setStale(){this.stale=!0}}function jo(U,f,k,Z,ue){U.emplaceBack(f?1:0,k?1:0,Z||0,ue||0),U.emplaceBack(f?1:0,k?1:0,Z||0,ue||0),U.emplaceBack(f?1:0,k?1:0,Z||0,ue||0),U.emplaceBack(f?1:0,k?1:0,Z||0,ue||0)}const ys=Math.pow(2,25),Ol=Math.pow(2,24),is=Math.pow(2,17),Ta=Math.pow(2,16),Lr=Math.pow(2,9),Vo=Math.pow(2,8),ll=Math.pow(2,1);function xu(U){if(U.opacity===0&&!U.placed)return 0;if(U.opacity===1&&U.placed)return 4294967295;const f=U.placed?1:0,k=Math.floor(127*U.opacity);return k*ys+f*Ol+k*is+f*Ta+k*Lr+f*Vo+k*ll+f}const vo=0;class _o{constructor(f){this._sortAcrossTiles=f.layout.get("symbol-z-order")!=="viewport-y"&&f.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(f,k,Z,ue,he){const _e=this._bucketParts;for(;this._currentTileIndex<f.length;)if(k.getBucketParts(_e,ue,f[this._currentTileIndex],this._sortAcrossTiles),this._currentTileIndex++,he())return!0;for(this._sortAcrossTiles&&(this._sortAcrossTiles=!1,_e.sort((Ce,Xe)=>Ce.sortKey-Xe.sortKey));this._currentPartIndex<_e.length;){const Ce=_e[this._currentPartIndex];if(k.placeLayerBucketPart(Ce,this._seenCrossTileIDs,Z,Ce.symbolInstanceStart===0),this._currentPartIndex++,he())return!0}return!1}}class Rs{constructor(f,k,Z,ue,he,_e,Ce,Xe){this.placement=new Vs(f,he,_e,Ce,Xe),this._currentPlacementIndex=k.length-1,this._forceFullPlacement=Z,this._showCollisionBoxes=ue,this._done=!1}isDone(){return this._done}continuePlacement(f,k,Z){const ue=l.exported.now(),he=()=>{const _e=l.exported.now()-ue;return!this._forceFullPlacement&&_e>2};for(;this._currentPlacementIndex>=0;){const _e=k[f[this._currentPlacementIndex]],Ce=this.placement.collisionIndex.transform.zoom;if(_e.type==="symbol"&&(!_e.minzoom||_e.minzoom<=Ce)&&(!_e.maxzoom||_e.maxzoom>Ce)){if(this._inProgressLayer||(this._inProgressLayer=new _o(_e)),this._inProgressLayer.continuePlacement(Z[_e.source],this.placement,this._showCollisionBoxes,_e,he))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(f){return this.placement.commit(f),this.placement}}const Fl=512/l.EXTENT/2;class Zo{constructor(f,k,Z){this.tileID=f,this.indexedSymbolInstances={},this.bucketInstanceId=Z;for(let ue=0;ue<k.length;ue++){const he=k.get(ue),_e=he.key;this.indexedSymbolInstances[_e]||(this.indexedSymbolInstances[_e]=[]),this.indexedSymbolInstances[_e].push({crossTileID:he.crossTileID,coord:this.getScaledCoordinates(he,f)})}}getScaledCoordinates(f,k){const Z=Fl/Math.pow(2,k.canonical.z-this.tileID.canonical.z);return{x:Math.floor((k.canonical.x*l.EXTENT+f.tileAnchorX)*Z),y:Math.floor((k.canonical.y*l.EXTENT+f.tileAnchorY)*Z)}}findMatches(f,k,Z){const ue=this.tileID.canonical.z<k.canonical.z?1:Math.pow(2,this.tileID.canonical.z-k.canonical.z);for(let he=0;he<f.length;he++){const _e=f.get(he);if(_e.crossTileID)continue;const Ce=this.indexedSymbolInstances[_e.key];if(!Ce)continue;const Xe=this.getScaledCoordinates(_e,k);for(const nt of Ce)if(Math.abs(nt.coord.x-Xe.x)<=ue&&Math.abs(nt.coord.y-Xe.y)<=ue&&!Z[nt.crossTileID]){Z[nt.crossTileID]=!0,_e.crossTileID=nt.crossTileID;break}}}}class ql{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class Al{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(f){const k=Math.round((f-this.lng)/360);if(k!==0)for(const Z in this.indexes){const ue=this.indexes[Z],he={};for(const _e in ue){const Ce=ue[_e];Ce.tileID=Ce.tileID.unwrapTo(Ce.tileID.wrap+k),he[Ce.tileID.key]=Ce}this.indexes[Z]=he}this.lng=f}addBucket(f,k,Z){if(this.indexes[f.overscaledZ]&&this.indexes[f.overscaledZ][f.key]){if(this.indexes[f.overscaledZ][f.key].bucketInstanceId===k.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(f.overscaledZ,this.indexes[f.overscaledZ][f.key])}for(let he=0;he<k.symbolInstances.length;he++)k.symbolInstances.get(he).crossTileID=0;this.usedCrossTileIDs[f.overscaledZ]||(this.usedCrossTileIDs[f.overscaledZ]={});const ue=this.usedCrossTileIDs[f.overscaledZ];for(const he in this.indexes){const _e=this.indexes[he];if(Number(he)>f.overscaledZ)for(const Ce in _e){const Xe=_e[Ce];Xe.tileID.isChildOf(f)&&Xe.findMatches(k.symbolInstances,f,ue)}else{const Ce=_e[f.scaledTo(Number(he)).key];Ce&&Ce.findMatches(k.symbolInstances,f,ue)}}for(let he=0;he<k.symbolInstances.length;he++){const _e=k.symbolInstances.get(he);_e.crossTileID||(_e.crossTileID=Z.generate(),ue[_e.crossTileID]=!0)}return this.indexes[f.overscaledZ]===void 0&&(this.indexes[f.overscaledZ]={}),this.indexes[f.overscaledZ][f.key]=new Zo(f,k.symbolInstances,k.bucketInstanceId),!0}removeBucketCrossTileIDs(f,k){for(const Z in k.indexedSymbolInstances)for(const ue of k.indexedSymbolInstances[Z])delete this.usedCrossTileIDs[f][ue.crossTileID]}removeStaleBuckets(f){let k=!1;for(const Z in this.indexes){const ue=this.indexes[Z];for(const he in ue)f[ue[he].bucketInstanceId]||(this.removeBucketCrossTileIDs(Z,ue[he]),delete ue[he],k=!0)}return k}}class Kt{constructor(){this.layerIndexes={},this.crossTileIDs=new ql,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}}addLayer(f,k,Z,ue){let he=this.layerIndexes[f.id];he===void 0&&(he=this.layerIndexes[f.id]=new Al);let _e=!1;const Ce={};ue.name!=="globe"&&he.handleWrapJump(Z);for(const Xe of k){const nt=Xe.getBucket(f);nt&&f.id===nt.layerIds[0]&&(nt.bucketInstanceId||(nt.bucketInstanceId=++this.maxBucketInstanceId),he.addBucket(Xe.tileID,nt,this.crossTileIDs)&&(_e=!0),Ce[nt.bucketInstanceId]=!0)}return he.removeStaleBuckets(Ce)&&(_e=!0),_e}pruneUnusedLayers(f){const k={};f.forEach(Z=>{k[Z]=!0});for(const Z in this.layerIndexes)k[Z]||delete this.layerIndexes[Z]}}const Ml=(U,f)=>l.emitValidationErrors(U,f&&f.filter(k=>k.identifier!=="source.canvas")),rr=l.pick(ti,["addLayer","removeLayer","setPaintProperty","setLayoutProperty","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData","setTerrain","setFog","setProjection"]),to=l.pick(ti,["setCenter","setZoom","setBearing","setPitch"]),ho={version:8,layers:[],sources:{}},xa={fill:!0,line:!0,background:!0,hillshade:!0,raster:!0};class Ea extends l.Evented{constructor(f,k={}){super(),this.map=f,this.dispatcher=new De(Li(),this),this.imageManager=new re,this.imageManager.setEventedParent(this),this.glyphManager=new l.GlyphManager(f._requestManager,k.localFontFamily?l.LocalGlyphMode.all:k.localIdeographFontFamily?l.LocalGlyphMode.ideographs:l.LocalGlyphMode.none,k.localFontFamily||k.localIdeographFontFamily),this.lineAtlas=new l.LineAtlas(256,512),this.crossTileSymbolIndex=new Kt,this._layers={},this._num3DLayers=0,this._numSymbolLayers=0,this._numCircleLayers=0,this._serializedLayers={},this._sourceCaches={},this._otherSourceCaches={},this._symbolSourceCaches={},this.zoomHistory=new l.ZoomHistory,this._loaded=!1,this._availableImages=[],this._order=[],this._drapedFirstOrder=[],this._markersNeedUpdate=!1,this._resetUpdates(),this.dispatcher.broadcast("setReferrer",l.getReferrer());const Z=this;this._rtlTextPluginCallback=Ea.registerForPluginStateChange(ue=>{Z.dispatcher.broadcast("syncRTLPluginState",{pluginStatus:ue.pluginStatus,pluginURL:ue.pluginURL},(he,_e)=>{if(l.triggerPluginCompletionEvent(he),_e&&_e.every(Ce=>Ce))for(const Ce in Z._sourceCaches){const Xe=Z._sourceCaches[Ce],nt=Xe.getSource().type;nt!=="vector"&&nt!=="geojson"||Xe.reload()}})}),this.on("data",ue=>{if(ue.dataType!=="source"||ue.sourceDataType!=="metadata")return;const he=this.getSource(ue.sourceId);if(he&&he.vectorLayerIds)for(const _e in this._layers){const Ce=this._layers[_e];Ce.source===he.id&&this._validateLayer(Ce)}})}loadURL(f,k={}){this.fire(new l.Event("dataloading",{dataType:"style"}));const Z=typeof k.validate=="boolean"?k.validate:!l.isMapboxURL(f);f=this.map._requestManager.normalizeStyleURL(f,k.accessToken);const ue=this.map._requestManager.transformRequest(f,l.ResourceType.Style);this._request=l.getJSON(ue,(he,_e)=>{this._request=null,he?this.fire(new l.ErrorEvent(he)):_e&&this._load(_e,Z)})}loadJSON(f,k={}){this.fire(new l.Event("dataloading",{dataType:"style"})),this._request=l.exported.frame(()=>{this._request=null,this._load(f,k.validate!==!1)})}loadEmpty(){this.fire(new l.Event("dataloading",{dataType:"style"})),this._load(ho,!1)}_updateLayerCount(f,k){const Z=k?1:-1;f.is3D()&&(this._num3DLayers+=Z),f.type==="circle"&&(this._numCircleLayers+=Z),f.type==="symbol"&&(this._numSymbolLayers+=Z)}_load(f,k){if(k&&Ml(this,l.validateStyle(f)))return;this._loaded=!0,this.stylesheet=f,this._updateMapProjection();for(const ue in f.sources)this.addSource(ue,f.sources[ue],{validate:!1});this._changed=!1,f.sprite?this._loadSprite(f.sprite):(this.imageManager.setLoaded(!0),this.dispatcher.broadcast("spriteLoaded",!0)),this.glyphManager.setURL(f.glyphs);const Z=ha(this.stylesheet.layers);this._order=Z.map(ue=>ue.id),this._layers={},this._serializedLayers={};for(let ue of Z)ue=l.createStyleLayer(ue),ue.setEventedParent(this,{layer:{id:ue.id}}),this._layers[ue.id]=ue,this._serializedLayers[ue.id]=ue.serialize(),this._updateLayerCount(ue,!0);this.dispatcher.broadcast("setLayers",this._serializeLayers(this._order)),this.light=new me(this.stylesheet.light),this.stylesheet.terrain&&!this.terrainSetForDrapingOnly()&&this._createTerrain(this.stylesheet.terrain,1),this.stylesheet.fog&&this._createFog(this.stylesheet.fog),this._updateDrapeFirstLayers(),this.fire(new l.Event("data",{dataType:"style"})),this.fire(new l.Event("style.load"))}terrainSetForDrapingOnly(){return!!this.terrain&&this.terrain.drapeRenderMode===0}setProjection(f){f?this.stylesheet.projection=f:delete this.stylesheet.projection,this.map._explicitProjection||this.map._updateProjection()}_updateMapProjection(){this.map._explicitProjection?this.applyProjectionUpdate():this.map._updateProjection()}applyProjectionUpdate(){this._loaded&&(this.dispatcher.broadcast("setProjection",this.map.transform.projectionOptions),this.map.transform.projection.requiresDraping?this.getTerrain()||this.stylesheet.terrain||this.setTerrainForDraping():this.terrainSetForDrapingOnly()&&this.setTerrain(null))}_loadSprite(f){this._spriteRequest=function(k,Z,ue){let he,_e,Ce;const Xe=l.exported.devicePixelRatio>1?"@2x":"";let nt=l.getJSON(Z.transformRequest(Z.normalizeSpriteURL(k,Xe,".json"),l.ResourceType.SpriteJSON),(Rt,Ut)=>{nt=null,Ce||(Ce=Rt,he=Ut,yt())}),lt=l.getImage(Z.transformRequest(Z.normalizeSpriteURL(k,Xe,".png"),l.ResourceType.SpriteImage),(Rt,Ut)=>{lt=null,Ce||(Ce=Rt,_e=Ut,yt())});function yt(){if(Ce)ue(Ce);else if(he&&_e){const Rt=l.exported.getImageData(_e),Ut={};for(const Bt in he){const{width:It,height:vn,x:tn,y:cn,sdf:pn,pixelRatio:Cn,stretchX:un,stretchY:kn,content:nr}=he[Bt],dr=new l.RGBAImage({width:It,height:vn});l.RGBAImage.copy(Rt,dr,{x:tn,y:cn},{x:0,y:0},{width:It,height:vn}),Ut[Bt]={data:dr,pixelRatio:Cn,sdf:pn,stretchX:un,stretchY:kn,content:nr}}ue(null,Ut)}}return{cancel(){nt&&(nt.cancel(),nt=null),lt&&(lt.cancel(),lt=null)}}}(f,this.map._requestManager,(k,Z)=>{if(this._spriteRequest=null,k)this.fire(new l.ErrorEvent(k));else if(Z)for(const ue in Z)this.imageManager.addImage(ue,Z[ue]);this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),this.dispatcher.broadcast("setImages",this._availableImages),this.dispatcher.broadcast("spriteLoaded",!0),this.fire(new l.Event("data",{dataType:"style"}))})}_validateLayer(f){const k=this.getSource(f.source);if(!k)return;const Z=f.sourceLayer;Z&&(k.type==="geojson"||k.vectorLayerIds&&k.vectorLayerIds.indexOf(Z)===-1)&&this.fire(new l.ErrorEvent(new Error(`Source layer "${Z}" does not exist on source "${k.id}" as specified by style layer "${f.id}"`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(const f in this._sourceCaches)if(!this._sourceCaches[f].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeLayers(f){const k=[];for(const Z of f){const ue=this._layers[Z];ue.type!=="custom"&&k.push(ue.serialize())}return k}hasTransitions(){if(this.light&&this.light.hasTransition()||this.fog&&this.fog.hasTransition())return!0;for(const f in this._sourceCaches)if(this._sourceCaches[f].hasTransition())return!0;for(const f in this._layers)if(this._layers[f].hasTransition())return!0;return!1}get order(){return this.map._optimizeForTerrain&&this.terrain?this._drapedFirstOrder:this._order}isLayerDraped(f){return!!this.terrain&&xa[f.type]}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading")}update(f){if(!this._loaded)return;const k=this._changed;if(this._changed){const ue=Object.keys(this._updatedLayers),he=Object.keys(this._removedLayers);(ue.length||he.length)&&this._updateWorkerLayers(ue,he);for(const _e in this._updatedSources){const Ce=this._updatedSources[_e];Ce==="reload"?this._reloadSource(_e):Ce==="clear"&&this._clearSource(_e)}this._updateTilesForChangedImages();for(const _e in this._updatedPaintProps)this._layers[_e].updateTransitions(f);this.light.updateTransitions(f),this.fog&&this.fog.updateTransitions(f),this._resetUpdates()}const Z={};for(const ue in this._sourceCaches){const he=this._sourceCaches[ue];Z[ue]=he.used,he.used=!1}for(const ue of this._order){const he=this._layers[ue];if(he.recalculate(f,this._availableImages),!he.isHidden(f.zoom)){const Ce=this._getLayerSourceCache(he);Ce&&(Ce.used=!0)}const _e=this.map.painter;if(_e){const Ce=he.getProgramIds();if(!Ce)continue;const Xe=he.getProgramConfiguration(f.zoom);for(const nt of Ce)_e.useProgram(nt,Xe)}}for(const ue in Z){const he=this._sourceCaches[ue];Z[ue]!==he.used&&he.getSource().fire(new l.Event("data",{sourceDataType:"visibility",dataType:"source",sourceId:he.getSource().id}))}this.light.recalculate(f),this.terrain&&this.terrain.recalculate(f),this.fog&&this.fog.recalculate(f),this.z=f.zoom,this._markersNeedUpdate&&(this._updateMarkersOpacity(),this._markersNeedUpdate=!1),k&&this.fire(new l.Event("data",{dataType:"style"}))}_updateTilesForChangedImages(){const f=Object.keys(this._changedImages);if(f.length){for(const k in this._sourceCaches)this._sourceCaches[k].reloadTilesForDependencies(["icons","patterns"],f);this._changedImages={}}}_updateWorkerLayers(f,k){this.dispatcher.broadcast("updateLayers",{layers:this._serializeLayers(f),removedIds:k})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={}}setState(f){if(this._checkLoaded(),Ml(this,l.validateStyle(f)))return!1;(f=l.clone$1(f)).layers=ha(f.layers);const k=function(ue,he){if(!ue)return[{command:ti.setStyle,args:[he]}];let _e=[];try{if(!_(ue.version,he.version))return[{command:ti.setStyle,args:[he]}];_(ue.center,he.center)||_e.push({command:ti.setCenter,args:[he.center]}),_(ue.zoom,he.zoom)||_e.push({command:ti.setZoom,args:[he.zoom]}),_(ue.bearing,he.bearing)||_e.push({command:ti.setBearing,args:[he.bearing]}),_(ue.pitch,he.pitch)||_e.push({command:ti.setPitch,args:[he.pitch]}),_(ue.sprite,he.sprite)||_e.push({command:ti.setSprite,args:[he.sprite]}),_(ue.glyphs,he.glyphs)||_e.push({command:ti.setGlyphs,args:[he.glyphs]}),_(ue.transition,he.transition)||_e.push({command:ti.setTransition,args:[he.transition]}),_(ue.light,he.light)||_e.push({command:ti.setLight,args:[he.light]}),_(ue.fog,he.fog)||_e.push({command:ti.setFog,args:[he.fog]}),_(ue.projection,he.projection)||_e.push({command:ti.setProjection,args:[he.projection]});const Ce={},Xe=[];(function(yt,Rt,Ut,Bt){let It;for(It in Rt=Rt||{},yt=yt||{})yt.hasOwnProperty(It)&&(Rt.hasOwnProperty(It)||Va(It,Ut,Bt));for(It in Rt)Rt.hasOwnProperty(It)&&(yt.hasOwnProperty(It)?_(yt[It],Rt[It])||(yt[It].type==="geojson"&&Rt[It].type==="geojson"&&Xo(yt,Rt,It)?Ut.push({command:ti.setGeoJSONSourceData,args:[It,Rt[It].data]}):ns(It,Rt,Ut,Bt)):ua(It,Rt,Ut))})(ue.sources,he.sources,Xe,Ce);const nt=[];ue.layers&&ue.layers.forEach(yt=>{yt.source&&Ce[yt.source]?_e.push({command:ti.removeLayer,args:[yt.id]}):nt.push(yt)});let lt=ue.terrain;lt&&Ce[lt.source]&&(_e.push({command:ti.setTerrain,args:[void 0]}),lt=void 0),_e=_e.concat(Xe),_(lt,he.terrain)||_e.push({command:ti.setTerrain,args:[he.terrain]}),function(yt,Rt,Ut){Rt=Rt||[];const Bt=(yt=yt||[]).map(ca),It=Rt.map(ca),vn=yt.reduce(va,{}),tn=Rt.reduce(va,{}),cn=Bt.slice(),pn=Object.create(null);let Cn,un,kn,nr,dr,xr,yr;for(Cn=0,un=0;Cn<Bt.length;Cn++)kn=Bt[Cn],tn.hasOwnProperty(kn)?un++:(Ut.push({command:ti.removeLayer,args:[kn]}),cn.splice(cn.indexOf(kn,un),1));for(Cn=0,un=0;Cn<It.length;Cn++)kn=It[It.length-1-Cn],cn[cn.length-1-Cn]!==kn&&(vn.hasOwnProperty(kn)?(Ut.push({command:ti.removeLayer,args:[kn]}),cn.splice(cn.lastIndexOf(kn,cn.length-un),1)):un++,xr=cn[cn.length-Cn],Ut.push({command:ti.addLayer,args:[tn[kn],xr]}),cn.splice(cn.length-Cn,0,kn),pn[kn]=!0);for(Cn=0;Cn<It.length;Cn++)if(kn=It[Cn],nr=vn[kn],dr=tn[kn],!pn[kn]&&!_(nr,dr))if(_(nr.source,dr.source)&&_(nr["source-layer"],dr["source-layer"])&&_(nr.type,dr.type)){for(yr in qr(nr.layout,dr.layout,Ut,kn,null,ti.setLayoutProperty),qr(nr.paint,dr.paint,Ut,kn,null,ti.setPaintProperty),_(nr.filter,dr.filter)||Ut.push({command:ti.setFilter,args:[kn,dr.filter]}),_(nr.minzoom,dr.minzoom)&&_(nr.maxzoom,dr.maxzoom)||Ut.push({command:ti.setLayerZoomRange,args:[kn,dr.minzoom,dr.maxzoom]}),nr)nr.hasOwnProperty(yr)&&yr!=="layout"&&yr!=="paint"&&yr!=="filter"&&yr!=="metadata"&&yr!=="minzoom"&&yr!=="maxzoom"&&(yr.indexOf("paint.")===0?qr(nr[yr],dr[yr],Ut,kn,yr.slice(6),ti.setPaintProperty):_(nr[yr],dr[yr])||Ut.push({command:ti.setLayerProperty,args:[kn,yr,dr[yr]]}));for(yr in dr)dr.hasOwnProperty(yr)&&!nr.hasOwnProperty(yr)&&yr!=="layout"&&yr!=="paint"&&yr!=="filter"&&yr!=="metadata"&&yr!=="minzoom"&&yr!=="maxzoom"&&(yr.indexOf("paint.")===0?qr(nr[yr],dr[yr],Ut,kn,yr.slice(6),ti.setPaintProperty):_(nr[yr],dr[yr])||Ut.push({command:ti.setLayerProperty,args:[kn,yr,dr[yr]]}))}else Ut.push({command:ti.removeLayer,args:[kn]}),xr=cn[cn.lastIndexOf(kn)+1],Ut.push({command:ti.addLayer,args:[dr,xr]})}(nt,he.layers,_e)}catch(Ce){console.warn("Unable to compute style diff:",Ce),_e=[{command:ti.setStyle,args:[he]}]}return _e}(this.serialize(),f).filter(ue=>!(ue.command in to));if(k.length===0)return!1;const Z=k.filter(ue=>!(ue.command in rr));if(Z.length>0)throw new Error(`Unimplemented: ${Z.map(ue=>ue.command).join(", ")}.`);return k.forEach(ue=>{ue.command!=="setTransition"&&this[ue.command].apply(this,ue.args)}),this.stylesheet=f,this._updateMapProjection(),!0}addImage(f,k){return this.getImage(f)?this.fire(new l.ErrorEvent(new Error("An image with this name already exists."))):(this.imageManager.addImage(f,k),this._afterImageUpdated(f),this)}updateImage(f,k){this.imageManager.updateImage(f,k)}getImage(f){return this.imageManager.getImage(f)}removeImage(f){return this.getImage(f)?(this.imageManager.removeImage(f),this._afterImageUpdated(f),this):this.fire(new l.ErrorEvent(new Error("No image with this name exists.")))}_afterImageUpdated(f){this._availableImages=this.imageManager.listImages(),this._changedImages[f]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new l.Event("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this._availableImages.slice()}addSource(f,k,Z={}){if(this._checkLoaded(),this.getSource(f)!==void 0)throw new Error("There is already a source with this ID");if(!k.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(k).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(k.type)>=0&&this._validate(l.validateSource,`sources.${f}`,k,null,Z))return;this.map&&this.map._collectResourceTiming&&(k.collectResourceTiming=!0);const ue=we(f,k,this.dispatcher,this);ue.setEventedParent(this,()=>({isSourceLoaded:this._isSourceCacheLoaded(f),source:ue.serialize(),sourceId:f}));const he=_e=>{const Ce=(_e?"symbol:":"other:")+f,Xe=this._sourceCaches[Ce]=new l.SourceCache(Ce,ue,_e);(_e?this._symbolSourceCaches:this._otherSourceCaches)[f]=Xe,Xe.style=this,Xe.onAdd(this.map)};he(!1),k.type!=="vector"&&k.type!=="geojson"||he(!0),ue.onAdd&&ue.onAdd(this.map),this._changed=!0}removeSource(f){this._checkLoaded();const k=this.getSource(f);if(!k)throw new Error("There is no source with this ID");for(const ue in this._layers)if(this._layers[ue].source===f)return this.fire(new l.ErrorEvent(new Error(`Source "${f}" cannot be removed while layer "${ue}" is using it.`)));if(this.terrain&&this.terrain.get().source===f)return this.fire(new l.ErrorEvent(new Error(`Source "${f}" cannot be removed while terrain is using it.`)));const Z=this._getSourceCaches(f);for(const ue of Z)delete this._sourceCaches[ue.id],delete this._updatedSources[ue.id],ue.fire(new l.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:ue.getSource().id})),ue.setEventedParent(null),ue.clearTiles();return delete this._otherSourceCaches[f],delete this._symbolSourceCaches[f],k.setEventedParent(null),k.onRemove&&k.onRemove(this.map),this._changed=!0,this}setGeoJSONSourceData(f,k){this._checkLoaded(),this.getSource(f).setData(k),this._changed=!0}getSource(f){const k=this._getSourceCache(f);return k&&k.getSource()}addLayer(f,k,Z={}){this._checkLoaded();const ue=f.id;if(this.getLayer(ue))return void this.fire(new l.ErrorEvent(new Error(`Layer with id "${ue}" already exists on this map`)));let he;if(f.type==="custom"){if(Ml(this,l.validateCustomStyleLayer(f)))return;he=l.createStyleLayer(f)}else{if(typeof f.source=="object"&&(this.addSource(ue,f.source),f=l.clone$1(f),f=l.extend(f,{source:ue})),this._validate(l.validateLayer,`layers.${ue}`,f,{arrayIndex:-1},Z))return;he=l.createStyleLayer(f),this._validateLayer(he),he.setEventedParent(this,{layer:{id:ue}}),this._serializedLayers[he.id]=he.serialize(),this._updateLayerCount(he,!0)}const _e=k?this._order.indexOf(k):this._order.length;if(k&&_e===-1)return void this.fire(new l.ErrorEvent(new Error(`Layer with id "${k}" does not exist on this map.`)));this._order.splice(_e,0,ue),this._layerOrderChanged=!0,this._layers[ue]=he;const Ce=this._getLayerSourceCache(he);if(this._removedLayers[ue]&&he.source&&Ce&&he.type!=="custom"){const Xe=this._removedLayers[ue];delete this._removedLayers[ue],Xe.type!==he.type?this._updatedSources[he.source]="clear":(this._updatedSources[he.source]="reload",Ce.pause())}this._updateLayer(he),he.onAdd&&he.onAdd(this.map),this._updateDrapeFirstLayers()}moveLayer(f,k){if(this._checkLoaded(),this._changed=!0,!this._layers[f])return void this.fire(new l.ErrorEvent(new Error(`The layer '${f}' does not exist in the map's style and cannot be moved.`)));if(f===k)return;const Z=this._order.indexOf(f);this._order.splice(Z,1);const ue=k?this._order.indexOf(k):this._order.length;k&&ue===-1?this.fire(new l.ErrorEvent(new Error(`Layer with id "${k}" does not exist on this map.`))):(this._order.splice(ue,0,f),this._layerOrderChanged=!0,this._updateDrapeFirstLayers())}removeLayer(f){this._checkLoaded();const k=this._layers[f];if(!k)return void this.fire(new l.ErrorEvent(new Error(`The layer '${f}' does not exist in the map's style and cannot be removed.`)));k.setEventedParent(null),this._updateLayerCount(k,!1);const Z=this._order.indexOf(f);this._order.splice(Z,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[f]=k,delete this._layers[f],delete this._serializedLayers[f],delete this._updatedLayers[f],delete this._updatedPaintProps[f],k.onRemove&&k.onRemove(this.map),this._updateDrapeFirstLayers()}getLayer(f){return this._layers[f]}hasLayer(f){return f in this._layers}hasLayerType(f){for(const k in this._layers)if(this._layers[k].type===f)return!0;return!1}setLayerZoomRange(f,k,Z){this._checkLoaded();const ue=this.getLayer(f);ue?ue.minzoom===k&&ue.maxzoom===Z||(k!=null&&(ue.minzoom=k),Z!=null&&(ue.maxzoom=Z),this._updateLayer(ue)):this.fire(new l.ErrorEvent(new Error(`The layer '${f}' does not exist in the map's style and cannot have zoom extent.`)))}setFilter(f,k,Z={}){this._checkLoaded();const ue=this.getLayer(f);if(ue){if(!_(ue.filter,k))return k==null?(ue.filter=void 0,void this._updateLayer(ue)):void(this._validate(l.validateFilter,`layers.${ue.id}.filter`,k,{layerType:ue.type},Z)||(ue.filter=l.clone$1(k),this._updateLayer(ue)))}else this.fire(new l.ErrorEvent(new Error(`The layer '${f}' does not exist in the map's style and cannot be filtered.`)))}getFilter(f){const k=this.getLayer(f);return k&&l.clone$1(k.filter)}setLayoutProperty(f,k,Z,ue={}){this._checkLoaded();const he=this.getLayer(f);he?_(he.getLayoutProperty(k),Z)||(he.setLayoutProperty(k,Z,ue),this._updateLayer(he)):this.fire(new l.ErrorEvent(new Error(`The layer '${f}' does not exist in the map's style and cannot be styled.`)))}getLayoutProperty(f,k){const Z=this.getLayer(f);if(Z)return Z.getLayoutProperty(k);this.fire(new l.ErrorEvent(new Error(`The layer '${f}' does not exist in the map's style.`)))}setPaintProperty(f,k,Z,ue={}){this._checkLoaded();const he=this.getLayer(f);he?_(he.getPaintProperty(k),Z)||(he.setPaintProperty(k,Z,ue)&&this._updateLayer(he),this._changed=!0,this._updatedPaintProps[f]=!0):this.fire(new l.ErrorEvent(new Error(`The layer '${f}' does not exist in the map's style and cannot be styled.`)))}getPaintProperty(f,k){const Z=this.getLayer(f);return Z&&Z.getPaintProperty(k)}setFeatureState(f,k){this._checkLoaded();const Z=f.source,ue=f.sourceLayer,he=this.getSource(Z);if(!he)return void this.fire(new l.ErrorEvent(new Error(`The source '${Z}' does not exist in the map's style.`)));const _e=he.type;if(_e==="geojson"&&ue)return void this.fire(new l.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));if(_e==="vector"&&!ue)return void this.fire(new l.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));f.id===void 0&&this.fire(new l.ErrorEvent(new Error("The feature id parameter must be provided.")));const Ce=this._getSourceCaches(Z);for(const Xe of Ce)Xe.setFeatureState(ue,f.id,k)}removeFeatureState(f,k){this._checkLoaded();const Z=f.source,ue=this.getSource(Z);if(!ue)return void this.fire(new l.ErrorEvent(new Error(`The source '${Z}' does not exist in the map's style.`)));const he=ue.type,_e=he==="vector"?f.sourceLayer:void 0;if(he==="vector"&&!_e)return void this.fire(new l.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));if(k&&typeof f.id!="string"&&typeof f.id!="number")return void this.fire(new l.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));const Ce=this._getSourceCaches(Z);for(const Xe of Ce)Xe.removeFeatureState(_e,f.id,k)}getFeatureState(f){this._checkLoaded();const k=f.source,Z=f.sourceLayer,ue=this.getSource(k);if(ue){if(ue.type!=="vector"||Z)return f.id===void 0&&this.fire(new l.ErrorEvent(new Error("The feature id parameter must be provided."))),this._getSourceCaches(k)[0].getFeatureState(Z,f.id);this.fire(new l.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new l.ErrorEvent(new Error(`The source '${k}' does not exist in the map's style.`)))}getTransition(){return l.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){const f={};for(const k in this._sourceCaches){const Z=this._sourceCaches[k].getSource();f[Z.id]||(f[Z.id]=Z.serialize())}return l.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,terrain:this.stylesheet.terrain,fog:this.stylesheet.fog,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,projection:this.stylesheet.projection,sources:f,layers:this._serializeLayers(this._order)},k=>k!==void 0)}_updateLayer(f){this._updatedLayers[f.id]=!0;const k=this._getLayerSourceCache(f);f.source&&!this._updatedSources[f.source]&&k&&k.getSource().type!=="raster"&&(this._updatedSources[f.source]="reload",k.pause()),this._changed=!0,f.invalidateCompiledFilter()}_flattenAndSortRenderedFeatures(f){const k=_e=>this._layers[_e].type==="fill-extrusion",Z={},ue=[];for(let _e=this._order.length-1;_e>=0;_e--){const Ce=this._order[_e];if(k(Ce)){Z[Ce]=_e;for(const Xe of f){const nt=Xe[Ce];if(nt)for(const lt of nt)ue.push(lt)}}}ue.sort((_e,Ce)=>Ce.intersectionZ-_e.intersectionZ);const he=[];for(let _e=this._order.length-1;_e>=0;_e--){const Ce=this._order[_e];if(k(Ce))for(let Xe=ue.length-1;Xe>=0;Xe--){const nt=ue[Xe].feature;if(Z[nt.layer.id]<_e)break;he.push(nt),ue.pop()}else for(const Xe of f){const nt=Xe[Ce];if(nt)for(const lt of nt)he.push(lt.feature)}}return he}queryRenderedFeatures(f,k,Z){k&&k.filter&&this._validate(l.validateFilter,"queryRenderedFeatures.filter",k.filter,null,k);const ue={};if(k&&k.layers){if(!Array.isArray(k.layers))return this.fire(new l.ErrorEvent(new Error("parameters.layers must be an Array."))),[];for(const Xe of k.layers){const nt=this._layers[Xe];if(!nt)return this.fire(new l.ErrorEvent(new Error(`The layer '${Xe}' does not exist in the map's style and cannot be queried for features.`))),[];ue[nt.source]=!0}}const he=[];k.availableImages=this._availableImages;const _e=k&&k.layers?k.layers.some(Xe=>{const nt=this.getLayer(Xe);return nt&&nt.is3D()}):this.has3DLayers(),Ce=Ve.createFromScreenPoints(f,Z);for(const Xe in this._sourceCaches){const nt=this._sourceCaches[Xe].getSource().id;k.layers&&!ue[nt]||he.push(Kn(this._sourceCaches[Xe],this._layers,this._serializedLayers,Ce,k,Z,_e,!!this.map._showQueryGeometry))}return this.placement&&he.push(function(Xe,nt,lt,yt,Rt,Ut,Bt){const It={},vn=Ut.queryRenderedSymbols(yt),tn=[];for(const cn of Object.keys(vn).map(Number))tn.push(Bt[cn]);tn.sort(Hr);for(const cn of tn){const pn=cn.featureIndex.lookupSymbolFeatures(vn[cn.bucketInstanceId],nt,cn.bucketIndex,cn.sourceLayerIndex,Rt.filter,Rt.layers,Rt.availableImages,Xe);for(const Cn in pn){const un=It[Cn]=It[Cn]||[],kn=pn[Cn];kn.sort((nr,dr)=>{const xr=cn.featureSortOrder;if(xr){const yr=xr.indexOf(nr.featureIndex);return xr.indexOf(dr.featureIndex)-yr}return dr.featureIndex-nr.featureIndex});for(const nr of kn)un.push(nr)}}for(const cn in It)It[cn].forEach(pn=>{const Cn=pn.feature,un=lt(Xe[cn]).getFeatureState(Cn.layer["source-layer"],Cn.id);Cn.source=Cn.layer.source,Cn.layer["source-layer"]&&(Cn.sourceLayer=Cn.layer["source-layer"]),Cn.state=un});return It}(this._layers,this._serializedLayers,this._getLayerSourceCache.bind(this),Ce.screenGeometry,k,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(he)}querySourceFeatures(f,k){k&&k.filter&&this._validate(l.validateFilter,"querySourceFeatures.filter",k.filter,null,k);const Z=this._getSourceCaches(f);let ue=[];for(const he of Z)ue=ue.concat(er(he,k));return ue}addSourceType(f,k,Z){return Ea.getSourceType(f)?Z(new Error(`A source type called "${f}" already exists.`)):(Ea.setSourceType(f,k),k.workerSourceURL?void this.dispatcher.broadcast("loadWorkerSource",{name:f,url:k.workerSourceURL},Z):Z(null,null))}getLight(){return this.light.getLight()}setLight(f,k={}){this._checkLoaded();const Z=this.light.getLight();let ue=!1;for(const _e in f)if(!_(f[_e],Z[_e])){ue=!0;break}if(!ue)return;const he={now:l.exported.now(),transition:l.extend({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(f,k),this.light.updateTransitions(he)}getTerrain(){return this.terrain&&this.terrain.drapeRenderMode===1?this.terrain.get():null}setTerrainForDraping(){this.setTerrain({source:"",exaggeration:0},0)}setTerrain(f,k=1){if(this._checkLoaded(),!f)return delete this.terrain,delete this.stylesheet.terrain,this.dispatcher.broadcast("enableTerrain",!1),this._force3DLayerUpdate(),void(this._markersNeedUpdate=!0);if(k===1){if(typeof f.source=="object"){const Z="terrain-dem-src";this.addSource(Z,f.source),f=l.clone$1(f),f=l.extend(f,{source:Z})}if(this._validate(l.validateTerrain,"terrain",f))return}if(!this.terrain||this.terrain&&k!==this.terrain.drapeRenderMode)this._createTerrain(f,k);else{const Z=this.terrain,ue=Z.get();for(const he in f)if(!_(f[he],ue[he])){Z.set(f),this.stylesheet.terrain=f;const _e={now:l.exported.now(),transition:l.extend({duration:0},this.stylesheet.transition)};Z.updateTransitions(_e);break}}this._updateDrapeFirstLayers(),this._markersNeedUpdate=!0}_createFog(f){const k=this.fog=new ht(f,this.map.transform);this.stylesheet.fog=f;const Z={now:l.exported.now(),transition:l.extend({duration:0},this.stylesheet.transition)};k.updateTransitions(Z)}_updateMarkersOpacity(){this.map._markers.length!==0&&this.map._requestDomTask(()=>{for(const f of this.map._markers)f._evaluateOpacity()})}getFog(){return this.fog?this.fog.get():null}setFog(f){if(this._checkLoaded(),!f)return delete this.fog,delete this.stylesheet.fog,void(this._markersNeedUpdate=!0);if(this.fog){const k=this.fog,Z=k.get();for(const ue in f)if(!_(f[ue],Z[ue])){k.set(f),this.stylesheet.fog=f;const he={now:l.exported.now(),transition:l.extend({duration:0},this.stylesheet.transition)};k.updateTransitions(he);break}}else this._createFog(f);this._markersNeedUpdate=!0}_updateDrapeFirstLayers(){if(!this.map._optimizeForTerrain||!this.terrain)return;const f=this._order.filter(Z=>this.isLayerDraped(this._layers[Z])),k=this._order.filter(Z=>!this.isLayerDraped(this._layers[Z]));this._drapedFirstOrder=[],this._drapedFirstOrder.push(...f),this._drapedFirstOrder.push(...k)}_createTerrain(f,k){const Z=this.terrain=new ke(f,k);this.stylesheet.terrain=f,this.dispatcher.broadcast("enableTerrain",!this.terrainSetForDrapingOnly()),this._force3DLayerUpdate();const ue={now:l.exported.now(),transition:l.extend({duration:0},this.stylesheet.transition)};Z.updateTransitions(ue)}_force3DLayerUpdate(){for(const f in this._layers){const k=this._layers[f];k.type==="fill-extrusion"&&this._updateLayer(k)}}_forceSymbolLayerUpdate(){for(const f in this._layers){const k=this._layers[f];k.type==="symbol"&&this._updateLayer(k)}}_validate(f,k,Z,ue,he={}){return(!he||he.validate!==!1)&&Ml(this,f.call(l.validateStyle,l.extend({key:k,style:this.serialize(),value:Z,styleSpec:l.spec},ue)))}_remove(){this._request&&(this._request.cancel(),this._request=null),this._spriteRequest&&(this._spriteRequest.cancel(),this._spriteRequest=null),l.evented.off("pluginStateChange",this._rtlTextPluginCallback);for(const f in this._layers)this._layers[f].setEventedParent(null);for(const f in this._sourceCaches)this._sourceCaches[f].clearTiles(),this._sourceCaches[f].setEventedParent(null);this.imageManager.setEventedParent(null),this.setEventedParent(null),this.dispatcher.remove()}_clearSource(f){const k=this._getSourceCaches(f);for(const Z of k)Z.clearTiles()}_reloadSource(f){const k=this._getSourceCaches(f);for(const Z of k)Z.resume(),Z.reload()}_updateSources(f){for(const k in this._sourceCaches)this._sourceCaches[k].update(f)}_generateCollisionBoxes(){for(const f in this._sourceCaches){const k=this._sourceCaches[f];k.resume(),k.reload()}}_updatePlacement(f,k,Z,ue,he=!1){let _e=!1,Ce=!1;const Xe={};for(const nt of this._order){const lt=this._layers[nt];if(lt.type!=="symbol")continue;if(!Xe[lt.source]){const Rt=this._getLayerSourceCache(lt);if(!Rt)continue;Xe[lt.source]=Rt.getRenderableIds(!0).map(Ut=>Rt.getTileByID(Ut)).sort((Ut,Bt)=>Bt.tileID.overscaledZ-Ut.tileID.overscaledZ||(Ut.tileID.isLessThan(Bt.tileID)?-1:1))}const yt=this.crossTileSymbolIndex.addLayer(lt,Xe[lt.source],f.center.lng,f.projection);_e=_e||yt}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),he=he||this._layerOrderChanged||Z===0,this._layerOrderChanged&&this.fire(new l.Event("neworder")),(he||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(l.exported.now(),f.zoom))&&(this.pauseablePlacement=new Rs(f,this._order,he,k,Z,ue,this.placement,this.fog&&f.projection.supportsFog?this.fog.state:null),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,Xe),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(l.exported.now()),Ce=!0),_e&&this.pauseablePlacement.placement.setStale()),Ce||_e)for(const nt of this._order){const lt=this._layers[nt];lt.type==="symbol"&&this.placement.updateLayerOpacities(lt,Xe[lt.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(l.exported.now())}_releaseSymbolFadeTiles(){for(const f in this._sourceCaches)this._sourceCaches[f].releaseSymbolFadeTiles()}getImages(f,k,Z){this.imageManager.getImages(k.icons,Z),this._updateTilesForChangedImages();const ue=he=>{he&&he.setDependencies(k.tileID.key,k.type,k.icons)};ue(this._otherSourceCaches[k.source]),ue(this._symbolSourceCaches[k.source])}getGlyphs(f,k,Z){this.glyphManager.getGlyphs(k.stacks,Z)}getResource(f,k,Z){return l.makeRequest(k,Z)}_getSourceCache(f){return this._otherSourceCaches[f]}_getLayerSourceCache(f){return f.type==="symbol"?this._symbolSourceCaches[f.source]:this._otherSourceCaches[f.source]}_getSourceCaches(f){const k=[];return this._otherSourceCaches[f]&&k.push(this._otherSourceCaches[f]),this._symbolSourceCaches[f]&&k.push(this._symbolSourceCaches[f]),k}_isSourceCacheLoaded(f){const k=this._getSourceCaches(f);return k.length===0?(this.fire(new l.ErrorEvent(new Error(`There is no source with ID '${f}'`))),!1):k.every(Z=>Z.loaded())}has3DLayers(){return this._num3DLayers>0}hasSymbolLayers(){return this._numSymbolLayers>0}hasCircleLayers(){return this._numCircleLayers>0}_clearWorkerCaches(){this.dispatcher.broadcast("clearCaches")}destroy(){this._clearWorkerCaches(),this.terrainSetForDrapingOnly()&&(delete this.terrain,delete this.stylesheet.terrain)}}Ea.getSourceType=function(U){return Un[U]},Ea.setSourceType=function(U,f){Un[U]=f},Ea.registerForPluginStateChange=l.registerForPluginStateChange;var ao=`
  3461. #define EPSILON 0.0000001
  3462. #define PI 3.141592653589793
  3463. #define EXTENT 8192.0
  3464. #define HALF_PI PI/2.0
  3465. #define QUARTER_PI PI/4.0
  3466. #define RAD_TO_DEG 180.0/PI
  3467. #define DEG_TO_RAD PI/180.0
  3468. #define GLOBE_RADIUS EXTENT/PI/2.0
  3469. #ifdef FOG
  3470. uniform mediump vec4 u_fog_color;uniform mediump vec2 u_fog_range;uniform mediump float u_fog_horizon_blend;varying vec3 v_fog_pos;float fog_range(float depth) {return (depth-u_fog_range[0])/(u_fog_range[1]-u_fog_range[0]);}float fog_horizon_blending(vec3 camera_dir) {float t=max(0.0,camera_dir.z/u_fog_horizon_blend);return u_fog_color.a*exp(-3.0*t*t);}float fog_opacity(float t) {const float decay=6.0;float falloff=1.0-min(1.0,exp(-decay*t));falloff*=falloff*falloff;return u_fog_color.a*min(1.0,1.00747*falloff);}
  3471. #endif`,Ki="attribute highp vec3 a_pos_3f;uniform lowp mat4 u_matrix;varying highp vec3 v_uv;void main() {const mat3 half_neg_pi_around_x=mat3(1.0,0.0, 0.0,0.0,0.0,-1.0,0.0,1.0, 0.0);v_uv=half_neg_pi_around_x*a_pos_3f;vec4 pos=u_matrix*vec4(a_pos_3f,1.0);gl_Position=pos.xyww;}";let $o={},Ho={};$o=Qe("",`
  3472. #define ELEVATION_SCALE 7.0
  3473. #define ELEVATION_OFFSET 450.0
  3474. #ifdef PROJECTION_GLOBE_VIEW
  3475. uniform vec3 u_tile_tl_up;uniform vec3 u_tile_tr_up;uniform vec3 u_tile_br_up;uniform vec3 u_tile_bl_up;uniform float u_tile_up_scale;vec3 elevationVector(vec2 pos) {vec2 uv=pos/EXTENT;vec3 up=normalize(mix(
  3476. mix(u_tile_tl_up,u_tile_tr_up,uv.xxx),mix(u_tile_bl_up,u_tile_br_up,uv.xxx),uv.yyy));return up*u_tile_up_scale;}
  3477. #else
  3478. vec3 elevationVector(vec2 pos) { return vec3(0,0,1); }
  3479. #endif
  3480. #ifdef TERRAIN
  3481. #ifdef TERRAIN_DEM_FLOAT_FORMAT
  3482. uniform highp sampler2D u_dem;uniform highp sampler2D u_dem_prev;
  3483. #else
  3484. uniform sampler2D u_dem;uniform sampler2D u_dem_prev;
  3485. #endif
  3486. uniform vec4 u_dem_unpack;uniform vec2 u_dem_tl;uniform vec2 u_dem_tl_prev;uniform float u_dem_scale;uniform float u_dem_scale_prev;uniform float u_dem_size;uniform float u_dem_lerp;uniform float u_exaggeration;uniform float u_meter_to_dem;uniform mat4 u_label_plane_matrix_inv;uniform sampler2D u_depth;uniform vec2 u_depth_size_inv;vec4 tileUvToDemSample(vec2 uv,float dem_size,float dem_scale,vec2 dem_tl) {vec2 pos=dem_size*(uv*dem_scale+dem_tl)+1.0;vec2 f=fract(pos);return vec4((pos-f+0.5)/(dem_size+2.0),f);}float decodeElevation(vec4 v) {return dot(vec4(v.xyz*255.0,-1.0),u_dem_unpack);}float currentElevation(vec2 apos) {
  3487. #ifdef TERRAIN_DEM_FLOAT_FORMAT
  3488. vec2 pos=(u_dem_size*(apos/8192.0*u_dem_scale+u_dem_tl)+1.5)/(u_dem_size+2.0);return u_exaggeration*texture2D(u_dem,pos).a;
  3489. #else
  3490. float dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale,u_dem_tl);vec2 pos=r.xy;vec2 f=r.zw;float tl=decodeElevation(texture2D(u_dem,pos));
  3491. #ifdef TERRAIN_DEM_NEAREST_FILTER
  3492. return u_exaggeration*tl;
  3493. #endif
  3494. float tr=decodeElevation(texture2D(u_dem,pos+vec2(dd,0.0)));float bl=decodeElevation(texture2D(u_dem,pos+vec2(0.0,dd)));float br=decodeElevation(texture2D(u_dem,pos+vec2(dd,dd)));return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);
  3495. #endif
  3496. }float prevElevation(vec2 apos) {
  3497. #ifdef TERRAIN_DEM_FLOAT_FORMAT
  3498. vec2 pos=(u_dem_size*(apos/8192.0*u_dem_scale_prev+u_dem_tl_prev)+1.5)/(u_dem_size+2.0);return u_exaggeration*texture2D(u_dem_prev,pos).a;
  3499. #else
  3500. float dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale_prev,u_dem_tl_prev);vec2 pos=r.xy;vec2 f=r.zw;float tl=decodeElevation(texture2D(u_dem_prev,pos));float tr=decodeElevation(texture2D(u_dem_prev,pos+vec2(dd,0.0)));float bl=decodeElevation(texture2D(u_dem_prev,pos+vec2(0.0,dd)));float br=decodeElevation(texture2D(u_dem_prev,pos+vec2(dd,dd)));return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);
  3501. #endif
  3502. }
  3503. #ifdef TERRAIN_VERTEX_MORPHING
  3504. float elevation(vec2 apos) {float nextElevation=currentElevation(apos);float prevElevation=prevElevation(apos);return mix(prevElevation,nextElevation,u_dem_lerp);}
  3505. #else
  3506. float elevation(vec2 apos) {return currentElevation(apos);}
  3507. #endif
  3508. float unpack_depth(vec4 rgba_depth)
  3509. {const vec4 bit_shift=vec4(1.0/(256.0*256.0*256.0),1.0/(256.0*256.0),1.0/256.0,1.0);return dot(rgba_depth,bit_shift)*2.0-1.0;}bool isOccluded(vec4 frag) {vec3 coord=frag.xyz/frag.w;float depth=unpack_depth(texture2D(u_depth,(coord.xy+1.0)*0.5));return coord.z > depth+0.0005;}float occlusionFade(vec4 frag) {vec3 coord=frag.xyz/frag.w;vec3 df=vec3(5.0*u_depth_size_inv,0.0);vec2 uv=0.5*coord.xy+0.5;vec4 depth=vec4(
  3510. unpack_depth(texture2D(u_depth,uv-df.xz)),unpack_depth(texture2D(u_depth,uv+df.xz)),unpack_depth(texture2D(u_depth,uv-df.zy)),unpack_depth(texture2D(u_depth,uv+df.zy))
  3511. );return dot(vec4(0.25),vec4(1.0)-clamp(300.0*(vec4(coord.z-0.001)-depth),0.0,1.0));}vec4 fourSample(vec2 pos,vec2 off) {
  3512. #ifdef TERRAIN_DEM_FLOAT_FORMAT
  3513. float tl=texture2D(u_dem,pos).a;float tr=texture2D(u_dem,pos+vec2(off.x,0.0)).a;float bl=texture2D(u_dem,pos+vec2(0.0,off.y)).a;float br=texture2D(u_dem,pos+off).a;
  3514. #else
  3515. vec4 demtl=vec4(texture2D(u_dem,pos).xyz*255.0,-1.0);float tl=dot(demtl,u_dem_unpack);vec4 demtr=vec4(texture2D(u_dem,pos+vec2(off.x,0.0)).xyz*255.0,-1.0);float tr=dot(demtr,u_dem_unpack);vec4 dembl=vec4(texture2D(u_dem,pos+vec2(0.0,off.y)).xyz*255.0,-1.0);float bl=dot(dembl,u_dem_unpack);vec4 dembr=vec4(texture2D(u_dem,pos+off).xyz*255.0,-1.0);float br=dot(dembr,u_dem_unpack);
  3516. #endif
  3517. return vec4(tl,tr,bl,br);}float flatElevation(vec2 pack) {vec2 apos=floor(pack/8.0);vec2 span=10.0*(pack-apos*8.0);vec2 uvTex=(apos-vec2(1.0,1.0))/8190.0;float size=u_dem_size+2.0;float dd=1.0/size;vec2 pos=u_dem_size*(uvTex*u_dem_scale+u_dem_tl)+1.0;vec2 f=fract(pos);pos=(pos-f+0.5)*dd;vec4 h=fourSample(pos,vec2(dd));float z=mix(mix(h.x,h.y,f.x),mix(h.z,h.w,f.x),f.y);vec2 w=floor(0.5*(span*u_meter_to_dem-1.0));vec2 d=dd*w;vec4 bounds=vec4(d,vec2(1.0)-d);h=fourSample(pos-d,2.0*d+vec2(dd));vec4 diff=abs(h.xzxy-h.ywzw);vec2 slope=min(vec2(0.25),u_meter_to_dem*0.5*(diff.xz+diff.yw)/(2.0*w+vec2(1.0)));vec2 fix=slope*span;float base=z+max(fix.x,fix.y);return u_exaggeration*base;}float elevationFromUint16(float word) {return u_exaggeration*(word/ELEVATION_SCALE-ELEVATION_OFFSET);}
  3518. #else
  3519. float elevation(vec2 pos) { return 0.0; }bool isOccluded(vec4 frag) { return false; }float occlusionFade(vec4 frag) { return 1.0; }
  3520. #endif`,!0),Ho=Qe(`#ifdef FOG
  3521. uniform float u_fog_temporal_offset;float fog_opacity(vec3 pos) {float depth=length(pos);return fog_opacity(fog_range(depth));}vec3 fog_apply(vec3 color,vec3 pos) {float depth=length(pos);float opacity=fog_opacity(fog_range(depth));opacity*=fog_horizon_blending(pos/depth);return mix(color,u_fog_color.rgb,opacity);}vec4 fog_apply_from_vert(vec4 color,float fog_opac) {float alpha=EPSILON+color.a;color.rgb=mix(color.rgb/alpha,u_fog_color.rgb,fog_opac)*alpha;return color;}vec3 fog_apply_sky_gradient(vec3 camera_ray,vec3 sky_color) {float horizon_blend=fog_horizon_blending(normalize(camera_ray));return mix(sky_color,u_fog_color.rgb,horizon_blend);}vec4 fog_apply_premultiplied(vec4 color,vec3 pos) {float alpha=EPSILON+color.a;color.rgb=fog_apply(color.rgb/alpha,pos)*alpha;return color;}vec3 fog_dither(vec3 color) {vec2 dither_seed=gl_FragCoord.xy+u_fog_temporal_offset;return dither(color,dither_seed);}vec4 fog_dither(vec4 color) {return vec4(fog_dither(color.rgb),color.a);}
  3522. #endif`,`#ifdef FOG
  3523. uniform mat4 u_fog_matrix;vec3 fog_position(vec3 pos) {return (u_fog_matrix*vec4(pos,1.0)).xyz;}vec3 fog_position(vec2 pos) {return fog_position(vec3(pos,0.0));}float fog(vec3 pos) {float depth=length(pos);float opacity=fog_opacity(fog_range(depth));return opacity*fog_horizon_blending(pos/depth);}
  3524. #endif`,!0);const de=Qe(`
  3525. highp vec3 hash(highp vec2 p) {highp vec3 p3=fract(p.xyx*vec3(443.8975,397.2973,491.1871));p3+=dot(p3,p3.yxz+19.19);return fract((p3.xxy+p3.yzz)*p3.zyx);}vec3 dither(vec3 color,highp vec2 seed) {vec3 rnd=hash(seed)+hash(seed+0.59374)-0.5;return color+rnd/255.0;}
  3526. #ifdef TERRAIN
  3527. highp vec4 pack_depth(highp float ndc_z) {highp float depth=ndc_z*0.5+0.5;const highp vec4 bit_shift=vec4(256.0*256.0*256.0,256.0*256.0,256.0,1.0);const highp vec4 bit_mask =vec4(0.0,1.0/256.0,1.0/256.0,1.0/256.0);highp vec4 res=fract(depth*bit_shift);res-=res.xxyz*bit_mask;return res;}
  3528. #endif`,`
  3529. float wrap(float n,float min,float max) {float d=max-min;float w=mod(mod(n-min,d)+d,d)+min;return (w==min) ? max : w;}
  3530. #ifdef PROJECTION_GLOBE_VIEW
  3531. vec3 mercator_tile_position(mat4 matrix,vec2 tile_anchor,vec3 tile_id,vec2 mercator_center) {
  3532. #ifndef PROJECTED_POS_ON_VIEWPORT
  3533. float tiles=tile_id.z;vec2 mercator=(tile_anchor/EXTENT+tile_id.xy)/tiles;mercator-=mercator_center;mercator.x=wrap(mercator.x,-0.5,0.5);vec4 mercator_tile=vec4(mercator.xy*EXTENT,EXTENT/(2.0*PI),1.0);mercator_tile=matrix*mercator_tile;return mercator_tile.xyz;
  3534. #else
  3535. return vec3(0.0);
  3536. #endif
  3537. }vec3 mix_globe_mercator(vec3 globe,vec3 mercator,float t) {return mix(globe,mercator,t);}mat3 globe_mercator_surface_vectors(vec3 pos_normal,vec3 up_dir,float zoom_transition) {vec3 normal=zoom_transition==0.0 ? pos_normal : normalize(mix(pos_normal,up_dir,zoom_transition));vec3 xAxis=normalize(vec3(normal.z,0.0,-normal.x));vec3 yAxis=normalize(cross(normal,xAxis));return mat3(xAxis,yAxis,normal);}
  3538. #endif
  3539. vec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(
  3540. unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0
  3541. );}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}const vec4 AWAY=vec4(-1000.0,-1000.0,-1000.0,1);//Normalized device coordinate that is not rendered.`),Me=ao;var qe={background:Qe(`uniform vec4 u_color;uniform float u_opacity;void main() {vec4 out_color=u_color;
  3542. #ifdef FOG
  3543. out_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));
  3544. #endif
  3545. gl_FragColor=out_color*u_opacity;
  3546. #ifdef OVERDRAW_INSPECTOR
  3547. gl_FragColor=vec4(1.0);
  3548. #endif
  3549. }`,`attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);
  3550. #ifdef FOG
  3551. v_fog_pos=fog_position(a_pos);
  3552. #endif
  3553. }`),backgroundPattern:Qe(`uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 out_color=mix(color1,color2,u_mix);
  3554. #ifdef FOG
  3555. out_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));
  3556. #endif
  3557. gl_FragColor=out_color*u_opacity;
  3558. #ifdef OVERDRAW_INSPECTOR
  3559. gl_FragColor=vec4(1.0);
  3560. #endif
  3561. }`,`uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);
  3562. #ifdef FOG
  3563. v_fog_pos=fog_position(a_pos);
  3564. #endif
  3565. }`),circle:Qe(`varying vec3 v_data;varying float v_visibility;
  3566. #pragma mapbox: define highp vec4 color
  3567. #pragma mapbox: define mediump float radius
  3568. #pragma mapbox: define lowp float blur
  3569. #pragma mapbox: define lowp float opacity
  3570. #pragma mapbox: define highp vec4 stroke_color
  3571. #pragma mapbox: define mediump float stroke_width
  3572. #pragma mapbox: define lowp float stroke_opacity
  3573. void main() {
  3574. #pragma mapbox: initialize highp vec4 color
  3575. #pragma mapbox: initialize mediump float radius
  3576. #pragma mapbox: initialize lowp float blur
  3577. #pragma mapbox: initialize lowp float opacity
  3578. #pragma mapbox: initialize highp vec4 stroke_color
  3579. #pragma mapbox: initialize mediump float stroke_width
  3580. #pragma mapbox: initialize lowp float stroke_opacity
  3581. vec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(
  3582. antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width)
  3583. );vec4 out_color=mix(color*opacity,stroke_color*stroke_opacity,color_t);
  3584. #ifdef FOG
  3585. out_color=fog_apply_premultiplied(out_color,v_fog_pos);
  3586. #endif
  3587. gl_FragColor=out_color*(v_visibility*opacity_t);
  3588. #ifdef OVERDRAW_INSPECTOR
  3589. gl_FragColor=vec4(1.0);
  3590. #endif
  3591. }`,`#define NUM_VISIBILITY_RINGS 2
  3592. #define INV_SQRT2 0.70710678
  3593. #define ELEVATION_BIAS 0.0001
  3594. #define NUM_SAMPLES_PER_RING 16
  3595. uniform mat4 u_matrix;uniform mat2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;
  3596. #ifdef PROJECTION_GLOBE_VIEW
  3597. attribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;attribute float a_scale;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;
  3598. #endif
  3599. varying vec3 v_data;varying float v_visibility;
  3600. #pragma mapbox: define highp vec4 color
  3601. #pragma mapbox: define mediump float radius
  3602. #pragma mapbox: define lowp float blur
  3603. #pragma mapbox: define lowp float opacity
  3604. #pragma mapbox: define highp vec4 stroke_color
  3605. #pragma mapbox: define mediump float stroke_width
  3606. #pragma mapbox: define lowp float stroke_opacity
  3607. vec2 calc_offset(vec2 extrusion,float radius,float stroke_width, float view_scale) {return extrusion*(radius+stroke_width)*u_extrude_scale*view_scale;}float cantilevered_elevation(vec2 pos,float radius,float stroke_width,float view_scale) {vec2 c1=pos+calc_offset(vec2(-1,-1),radius,stroke_width,view_scale);vec2 c2=pos+calc_offset(vec2(1,-1),radius,stroke_width,view_scale);vec2 c3=pos+calc_offset(vec2(1,1),radius,stroke_width,view_scale);vec2 c4=pos+calc_offset(vec2(-1,1),radius,stroke_width,view_scale);float h1=elevation(c1)+ELEVATION_BIAS;float h2=elevation(c2)+ELEVATION_BIAS;float h3=elevation(c3)+ELEVATION_BIAS;float h4=elevation(c4)+ELEVATION_BIAS;return max(h4,max(h3,max(h1,h2)));}float circle_elevation(vec2 pos) {
  3608. #if defined(TERRAIN)
  3609. return elevation(pos)+ELEVATION_BIAS;
  3610. #else
  3611. return 0.0;
  3612. #endif
  3613. }vec4 project_vertex(vec2 extrusion,vec4 world_center,vec4 projected_center,float radius,float stroke_width, float view_scale,mat3 surface_vectors) {vec2 sample_offset=calc_offset(extrusion,radius,stroke_width,view_scale);
  3614. #ifdef PITCH_WITH_MAP
  3615. #ifdef PROJECTION_GLOBE_VIEW
  3616. return u_matrix*( world_center+vec4(sample_offset.x*surface_vectors[0]+sample_offset.y*surface_vectors[1],0) );
  3617. #else
  3618. return u_matrix*( world_center+vec4(sample_offset,0,0) );
  3619. #endif
  3620. #else
  3621. return projected_center+vec4(sample_offset,0,0);
  3622. #endif
  3623. }float get_sample_step() {
  3624. #ifdef PITCH_WITH_MAP
  3625. return 2.0*PI/float(NUM_SAMPLES_PER_RING);
  3626. #else
  3627. return PI/float(NUM_SAMPLES_PER_RING);
  3628. #endif
  3629. }void main(void) {
  3630. #pragma mapbox: initialize highp vec4 color
  3631. #pragma mapbox: initialize mediump float radius
  3632. #pragma mapbox: initialize lowp float blur
  3633. #pragma mapbox: initialize lowp float opacity
  3634. #pragma mapbox: initialize highp vec4 stroke_color
  3635. #pragma mapbox: initialize mediump float stroke_width
  3636. #pragma mapbox: initialize lowp float stroke_opacity
  3637. vec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);
  3638. #ifdef PROJECTION_GLOBE_VIEW
  3639. vec2 scaled_extrude=extrude*a_scale;vec3 pos_normal_3=a_pos_normal_3/16384.0;mat3 surface_vectors=globe_mercator_surface_vectors(pos_normal_3,u_up_dir,u_zoom_transition);vec3 surface_extrusion=scaled_extrude.x*surface_vectors[0]+scaled_extrude.y*surface_vectors[1];vec3 globe_elevation=elevationVector(circle_center)*circle_elevation(circle_center);vec3 globe_pos=a_pos_3+surface_extrusion+globe_elevation;vec3 mercator_elevation=u_up_dir*u_tile_up_scale*circle_elevation(circle_center);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,circle_center,u_tile_id,u_merc_center)+surface_extrusion+mercator_elevation;vec3 pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);vec4 world_center=vec4(pos,1);
  3640. #else
  3641. mat3 surface_vectors=mat3(1.0);float height=circle_elevation(circle_center);vec4 world_center=vec4(circle_center,height,1);
  3642. #endif
  3643. vec4 projected_center=u_matrix*world_center;float view_scale=0.0;
  3644. #ifdef PITCH_WITH_MAP
  3645. #ifdef SCALE_WITH_MAP
  3646. view_scale=1.0;
  3647. #else
  3648. view_scale=projected_center.w/u_camera_to_center_distance;
  3649. #endif
  3650. #else
  3651. #ifdef SCALE_WITH_MAP
  3652. view_scale=u_camera_to_center_distance;
  3653. #else
  3654. view_scale=projected_center.w;
  3655. #endif
  3656. #endif
  3657. #if defined(SCALE_WITH_MAP) && defined(PROJECTION_GLOBE_VIEW)
  3658. view_scale*=a_scale;
  3659. #endif
  3660. gl_Position=project_vertex(extrude,world_center,projected_center,radius,stroke_width,view_scale,surface_vectors);float visibility=0.0;
  3661. #ifdef TERRAIN
  3662. float step=get_sample_step();
  3663. #ifdef PITCH_WITH_MAP
  3664. float cantilevered_height=cantilevered_elevation(circle_center,radius,stroke_width,view_scale);vec4 occlusion_world_center=vec4(circle_center,cantilevered_height,1);vec4 occlusion_projected_center=u_matrix*occlusion_world_center;
  3665. #else
  3666. vec4 occlusion_world_center=world_center;vec4 occlusion_projected_center=projected_center;
  3667. #endif
  3668. for(int ring=0; ring < NUM_VISIBILITY_RINGS; ring++) {float scale=(float(ring)+1.0)/float(NUM_VISIBILITY_RINGS);for(int i=0; i < NUM_SAMPLES_PER_RING; i++) {vec2 extrusion=vec2(cos(step*float(i)),-sin(step*float(i)))*scale;vec4 frag_pos=project_vertex(extrusion,occlusion_world_center,occlusion_projected_center,radius,stroke_width,view_scale,surface_vectors);visibility+=float(!isOccluded(frag_pos));}}visibility/=float(NUM_VISIBILITY_RINGS)*float(NUM_SAMPLES_PER_RING);
  3669. #else
  3670. visibility=1.0;
  3671. #endif
  3672. #ifdef PROJECTION_GLOBE_VIEW
  3673. visibility=1.0;
  3674. #endif
  3675. v_visibility=visibility;lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);
  3676. #ifdef FOG
  3677. v_fog_pos=fog_position(world_center.xyz);
  3678. #endif
  3679. }`),clippingMask:Qe("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),heatmap:Qe(`uniform highp float u_intensity;varying vec2 v_extrude;
  3680. #pragma mapbox: define highp float weight
  3681. #define GAUSS_COEF 0.3989422804014327
  3682. void main() {
  3683. #pragma mapbox: initialize highp float weight
  3684. float d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);
  3685. #ifdef FOG
  3686. gl_FragColor.r*=pow(1.0-fog_opacity(v_fog_pos),2.0);
  3687. #endif
  3688. #ifdef OVERDRAW_INSPECTOR
  3689. gl_FragColor=vec4(1.0);
  3690. #endif
  3691. }`,`uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;
  3692. #ifdef PROJECTION_GLOBE_VIEW
  3693. attribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;attribute float a_scale;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;
  3694. #endif
  3695. varying vec2 v_extrude;
  3696. #pragma mapbox: define highp float weight
  3697. #pragma mapbox: define mediump float radius
  3698. const highp float ZERO=1.0/255.0/16.0;
  3699. #define GAUSS_COEF 0.3989422804014327
  3700. void main(void) {
  3701. #pragma mapbox: initialize highp float weight
  3702. #pragma mapbox: initialize mediump float radius
  3703. vec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec2 tilePos=floor(a_pos*0.5);
  3704. #ifdef PROJECTION_GLOBE_VIEW
  3705. extrude*=a_scale;vec3 pos_normal_3=a_pos_normal_3/16384.0;mat3 surface_vectors=globe_mercator_surface_vectors(pos_normal_3,u_up_dir,u_zoom_transition);vec3 surface_extrusion=extrude.x*surface_vectors[0]+extrude.y*surface_vectors[1];vec3 globe_elevation=elevationVector(tilePos)*elevation(tilePos);vec3 globe_pos=a_pos_3+surface_extrusion+globe_elevation;vec3 mercator_elevation=u_up_dir*u_tile_up_scale*elevation(tilePos);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,tilePos,u_tile_id,u_merc_center)+surface_extrusion+mercator_elevation;vec3 pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);
  3706. #else
  3707. vec3 pos=vec3(tilePos+extrude,elevation(tilePos));
  3708. #endif
  3709. gl_Position=u_matrix*vec4(pos,1);
  3710. #ifdef FOG
  3711. v_fog_pos=fog_position(pos);
  3712. #endif
  3713. }`),heatmapTexture:Qe(`uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;
  3714. #ifdef OVERDRAW_INSPECTOR
  3715. gl_FragColor=vec4(0.0);
  3716. #endif
  3717. }`,"attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=vec4(a_pos,0,1);v_pos=a_pos*0.5+0.5;}"),collisionBox:Qe("varying float v_placed;varying float v_notUsed;void main() {vec4 red =vec4(1.0,0.0,0.0,1.0);vec4 blue=vec4(0.0,0.0,1.0,0.5);gl_FragColor =mix(red,blue,step(0.5,v_placed))*0.5;gl_FragColor*=mix(1.0,0.1,step(0.5,v_notUsed));}",`attribute vec3 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;attribute float a_size_scale;attribute vec2 a_padding;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_pos+elevationVector(a_anchor_pos)*elevation(a_anchor_pos),1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(
  3718. 0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,1.5);gl_Position=projectedPoint;gl_Position.xy+=(a_extrude*a_size_scale+a_shift+a_padding)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}`),collisionCircle:Qe("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}",`attribute vec2 a_pos_2f;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos_2f;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(
  3719. mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(
  3720. 0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}`),debug:Qe("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}",`attribute vec2 a_pos;
  3721. #ifdef PROJECTION_GLOBE_VIEW
  3722. attribute vec3 a_pos_3;
  3723. #endif
  3724. varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {float h=elevation(a_pos);v_uv=a_pos/8192.0;
  3725. #ifdef PROJECTION_GLOBE_VIEW
  3726. gl_Position=u_matrix*vec4(a_pos_3+elevationVector(a_pos)*h,1);
  3727. #else
  3728. gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,h,1);
  3729. #endif
  3730. }`),fill:Qe(`#pragma mapbox: define highp vec4 color
  3731. #pragma mapbox: define lowp float opacity
  3732. void main() {
  3733. #pragma mapbox: initialize highp vec4 color
  3734. #pragma mapbox: initialize lowp float opacity
  3735. vec4 out_color=color;
  3736. #ifdef FOG
  3737. out_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));
  3738. #endif
  3739. gl_FragColor=out_color*opacity;
  3740. #ifdef OVERDRAW_INSPECTOR
  3741. gl_FragColor=vec4(1.0);
  3742. #endif
  3743. }`,`attribute vec2 a_pos;uniform mat4 u_matrix;
  3744. #pragma mapbox: define highp vec4 color
  3745. #pragma mapbox: define lowp float opacity
  3746. void main() {
  3747. #pragma mapbox: initialize highp vec4 color
  3748. #pragma mapbox: initialize lowp float opacity
  3749. gl_Position=u_matrix*vec4(a_pos,0,1);
  3750. #ifdef FOG
  3751. v_fog_pos=fog_position(a_pos);
  3752. #endif
  3753. }`),fillOutline:Qe(`varying vec2 v_pos;
  3754. #pragma mapbox: define highp vec4 outline_color
  3755. #pragma mapbox: define lowp float opacity
  3756. void main() {
  3757. #pragma mapbox: initialize highp vec4 outline_color
  3758. #pragma mapbox: initialize lowp float opacity
  3759. float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);vec4 out_color=outline_color;
  3760. #ifdef FOG
  3761. out_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));
  3762. #endif
  3763. gl_FragColor=out_color*(alpha*opacity);
  3764. #ifdef OVERDRAW_INSPECTOR
  3765. gl_FragColor=vec4(1.0);
  3766. #endif
  3767. }`,`attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;
  3768. #pragma mapbox: define highp vec4 outline_color
  3769. #pragma mapbox: define lowp float opacity
  3770. void main() {
  3771. #pragma mapbox: initialize highp vec4 outline_color
  3772. #pragma mapbox: initialize lowp float opacity
  3773. gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;
  3774. #ifdef FOG
  3775. v_fog_pos=fog_position(a_pos);
  3776. #endif
  3777. }`),fillOutlinePattern:Qe(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;
  3778. #pragma mapbox: define lowp float opacity
  3779. #pragma mapbox: define lowp vec4 pattern_from
  3780. #pragma mapbox: define lowp vec4 pattern_to
  3781. void main() {
  3782. #pragma mapbox: initialize lowp float opacity
  3783. #pragma mapbox: initialize mediump vec4 pattern_from
  3784. #pragma mapbox: initialize mediump vec4 pattern_to
  3785. vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);vec4 out_color=mix(color1,color2,u_fade);
  3786. #ifdef FOG
  3787. out_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));
  3788. #endif
  3789. gl_FragColor=out_color*(alpha*opacity);
  3790. #ifdef OVERDRAW_INSPECTOR
  3791. gl_FragColor=vec4(1.0);
  3792. #endif
  3793. }`,`uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;
  3794. #pragma mapbox: define lowp float opacity
  3795. #pragma mapbox: define lowp vec4 pattern_from
  3796. #pragma mapbox: define lowp vec4 pattern_to
  3797. #pragma mapbox: define lowp float pixel_ratio_from
  3798. #pragma mapbox: define lowp float pixel_ratio_to
  3799. void main() {
  3800. #pragma mapbox: initialize lowp float opacity
  3801. #pragma mapbox: initialize mediump vec4 pattern_from
  3802. #pragma mapbox: initialize mediump vec4 pattern_to
  3803. #pragma mapbox: initialize lowp float pixel_ratio_from
  3804. #pragma mapbox: initialize lowp float pixel_ratio_to
  3805. vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;
  3806. #ifdef FOG
  3807. v_fog_pos=fog_position(a_pos);
  3808. #endif
  3809. }`),fillPattern:Qe(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;
  3810. #pragma mapbox: define lowp float opacity
  3811. #pragma mapbox: define lowp vec4 pattern_from
  3812. #pragma mapbox: define lowp vec4 pattern_to
  3813. void main() {
  3814. #pragma mapbox: initialize lowp float opacity
  3815. #pragma mapbox: initialize mediump vec4 pattern_from
  3816. #pragma mapbox: initialize mediump vec4 pattern_to
  3817. vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 out_color=mix(color1,color2,u_fade);
  3818. #ifdef FOG
  3819. out_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));
  3820. #endif
  3821. gl_FragColor=out_color*opacity;
  3822. #ifdef OVERDRAW_INSPECTOR
  3823. gl_FragColor=vec4(1.0);
  3824. #endif
  3825. }`,`uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;
  3826. #pragma mapbox: define lowp float opacity
  3827. #pragma mapbox: define lowp vec4 pattern_from
  3828. #pragma mapbox: define lowp vec4 pattern_to
  3829. #pragma mapbox: define lowp float pixel_ratio_from
  3830. #pragma mapbox: define lowp float pixel_ratio_to
  3831. void main() {
  3832. #pragma mapbox: initialize lowp float opacity
  3833. #pragma mapbox: initialize mediump vec4 pattern_from
  3834. #pragma mapbox: initialize mediump vec4 pattern_to
  3835. #pragma mapbox: initialize lowp float pixel_ratio_from
  3836. #pragma mapbox: initialize lowp float pixel_ratio_to
  3837. vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);
  3838. #ifdef FOG
  3839. v_fog_pos=fog_position(a_pos);
  3840. #endif
  3841. }`),fillExtrusion:Qe(`varying vec4 v_color;void main() {vec4 color=v_color;
  3842. #ifdef FOG
  3843. color=fog_dither(fog_apply_premultiplied(color,v_fog_pos));
  3844. #endif
  3845. gl_FragColor=color;
  3846. #ifdef OVERDRAW_INSPECTOR
  3847. gl_FragColor=vec4(1.0);
  3848. #endif
  3849. }`,`uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec4 a_pos_normal_ed;attribute vec2 a_centroid_pos;
  3850. #ifdef PROJECTION_GLOBE_VIEW
  3851. attribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;uniform float u_height_lift;
  3852. #endif
  3853. varying vec4 v_color;
  3854. #pragma mapbox: define highp float base
  3855. #pragma mapbox: define highp float height
  3856. #pragma mapbox: define highp vec4 color
  3857. void main() {
  3858. #pragma mapbox: initialize highp float base
  3859. #pragma mapbox: initialize highp float height
  3860. #pragma mapbox: initialize highp vec4 color
  3861. vec3 pos_nx=floor(a_pos_normal_ed.xyz*0.5);mediump vec3 top_up_ny=a_pos_normal_ed.xyz-2.0*pos_nx;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));base=max(0.0,base);height=max(0.0,height);float t=top_up_ny.x;vec2 centroid_pos=vec2(0.0);
  3862. #if defined(HAS_CENTROID) || defined(TERRAIN)
  3863. centroid_pos=a_centroid_pos;
  3864. #endif
  3865. #ifdef TERRAIN
  3866. bool flat_roof=centroid_pos.x !=0.0 && t > 0.0;float ele=elevation(pos_nx.xy);float c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;float h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base==0.0 ?-5.0 : base);vec3 pos=vec3(pos_nx.xy,h);
  3867. #else
  3868. vec3 pos=vec3(pos_nx.xy,t > 0.0 ? height : base);
  3869. #endif
  3870. #ifdef PROJECTION_GLOBE_VIEW
  3871. float lift=float((t+base) > 0.0)*u_height_lift;vec3 globe_normal=normalize(mix(a_pos_normal_3/16384.0,u_up_dir,u_zoom_transition));vec3 globe_pos=a_pos_3+globe_normal*(u_tile_up_scale*(pos.z+lift));vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,pos.xy,u_tile_id,u_merc_center)+u_up_dir*u_tile_up_scale*pos.z;pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);
  3872. #endif
  3873. float hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);gl_Position=mix(u_matrix*vec4(pos,1),AWAY,hidden);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=(
  3874. (1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.rgb+=clamp(color.rgb*directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_color*=u_opacity;
  3875. #ifdef FOG
  3876. v_fog_pos=fog_position(pos);
  3877. #endif
  3878. }`),fillExtrusionPattern:Qe(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;
  3879. #pragma mapbox: define lowp float base
  3880. #pragma mapbox: define lowp float height
  3881. #pragma mapbox: define lowp vec4 pattern_from
  3882. #pragma mapbox: define lowp vec4 pattern_to
  3883. #pragma mapbox: define lowp float pixel_ratio_from
  3884. #pragma mapbox: define lowp float pixel_ratio_to
  3885. void main() {
  3886. #pragma mapbox: initialize lowp float base
  3887. #pragma mapbox: initialize lowp float height
  3888. #pragma mapbox: initialize mediump vec4 pattern_from
  3889. #pragma mapbox: initialize mediump vec4 pattern_to
  3890. #pragma mapbox: initialize lowp float pixel_ratio_from
  3891. #pragma mapbox: initialize lowp float pixel_ratio_to
  3892. vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 out_color=mix(color1,color2,u_fade);out_color=out_color*v_lighting;
  3893. #ifdef FOG
  3894. out_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));
  3895. #endif
  3896. gl_FragColor=out_color;
  3897. #ifdef OVERDRAW_INSPECTOR
  3898. gl_FragColor=vec4(1.0);
  3899. #endif
  3900. }`,`uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec4 a_pos_normal_ed;attribute vec2 a_centroid_pos;
  3901. #ifdef PROJECTION_GLOBE_VIEW
  3902. attribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;uniform float u_height_lift;
  3903. #endif
  3904. varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;
  3905. #pragma mapbox: define lowp float base
  3906. #pragma mapbox: define lowp float height
  3907. #pragma mapbox: define lowp vec4 pattern_from
  3908. #pragma mapbox: define lowp vec4 pattern_to
  3909. #pragma mapbox: define lowp float pixel_ratio_from
  3910. #pragma mapbox: define lowp float pixel_ratio_to
  3911. void main() {
  3912. #pragma mapbox: initialize lowp float base
  3913. #pragma mapbox: initialize lowp float height
  3914. #pragma mapbox: initialize mediump vec4 pattern_from
  3915. #pragma mapbox: initialize mediump vec4 pattern_to
  3916. #pragma mapbox: initialize lowp float pixel_ratio_from
  3917. #pragma mapbox: initialize lowp float pixel_ratio_to
  3918. vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 pos_nx=floor(a_pos_normal_ed.xyz*0.5);mediump vec3 top_up_ny=a_pos_normal_ed.xyz-2.0*pos_nx;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));float edgedistance=a_pos_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=top_up_ny.x;float z=t > 0.0 ? height : base;vec2 centroid_pos=vec2(0.0);
  3919. #if defined(HAS_CENTROID) || defined(TERRAIN)
  3920. centroid_pos=a_centroid_pos;
  3921. #endif
  3922. #ifdef TERRAIN
  3923. bool flat_roof=centroid_pos.x !=0.0 && t > 0.0;float ele=elevation(pos_nx.xy);float c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;float h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base==0.0 ?-5.0 : base);vec3 p=vec3(pos_nx.xy,h);
  3924. #else
  3925. vec3 p=vec3(pos_nx.xy,z);
  3926. #endif
  3927. #ifdef PROJECTION_GLOBE_VIEW
  3928. float lift=float((t+base) > 0.0)*u_height_lift;vec3 globe_normal=normalize(mix(a_pos_normal_3/16384.0,u_up_dir,u_zoom_transition));vec3 globe_pos=a_pos_3+globe_normal*(u_tile_up_scale*(p.z+lift));vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,p.xy,u_tile_id,u_merc_center)+u_up_dir*u_tile_up_scale*p.z;p=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);
  3929. #endif
  3930. float hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);gl_Position=mix(u_matrix*vec4(p,1),AWAY,hidden);vec2 pos=normal.z==1.0
  3931. ? pos_nx.xy
  3932. : vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=(
  3933. (1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;
  3934. #ifdef FOG
  3935. v_fog_pos=fog_position(p);
  3936. #endif
  3937. }`),hillshadePrepare:Qe(`#ifdef GL_ES
  3938. precision highp float;
  3939. #endif
  3940. uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord) {
  3941. #ifdef TERRAIN_DEM_FLOAT_FORMAT
  3942. return texture2D(u_image,coord).a/4.0;
  3943. #else
  3944. vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;
  3945. #endif
  3946. }void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y));float b=getElevation(v_pos+vec2(0,-epsilon.y));float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y));float d=getElevation(v_pos+vec2(-epsilon.x,0));float e=getElevation(v_pos);float f=getElevation(v_pos+vec2(epsilon.x,0));float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y));float h=getElevation(v_pos+vec2(0,epsilon.y));float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y));float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2(
  3947. (c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c)
  3948. )/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(
  3949. deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);
  3950. #ifdef OVERDRAW_INSPECTOR
  3951. gl_FragColor=vec4(1.0);
  3952. #endif
  3953. }`,"uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:Qe(`uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;
  3954. #ifdef FOG
  3955. gl_FragColor=fog_dither(fog_apply_premultiplied(gl_FragColor,v_fog_pos));
  3956. #endif
  3957. #ifdef OVERDRAW_INSPECTOR
  3958. gl_FragColor=vec4(1.0);
  3959. #endif
  3960. }`,`uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;
  3961. #ifdef FOG
  3962. v_fog_pos=fog_position(a_pos);
  3963. #endif
  3964. }`),line:Qe(`uniform lowp float u_device_pixel_ratio;uniform float u_alpha_discard_threshold;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;
  3965. #ifdef RENDER_LINE_DASH
  3966. uniform sampler2D u_dash_image;uniform float u_mix;uniform vec3 u_scale;varying vec2 v_tex_a;varying vec2 v_tex_b;
  3967. #endif
  3968. #ifdef RENDER_LINE_GRADIENT
  3969. uniform sampler2D u_gradient_image;varying highp vec2 v_uv;
  3970. #endif
  3971. #pragma mapbox: define highp vec4 color
  3972. #pragma mapbox: define lowp float floorwidth
  3973. #pragma mapbox: define lowp vec4 dash_from
  3974. #pragma mapbox: define lowp vec4 dash_to
  3975. #pragma mapbox: define lowp float blur
  3976. #pragma mapbox: define lowp float opacity
  3977. void main() {
  3978. #pragma mapbox: initialize highp vec4 color
  3979. #pragma mapbox: initialize lowp float floorwidth
  3980. #pragma mapbox: initialize lowp vec4 dash_from
  3981. #pragma mapbox: initialize lowp vec4 dash_to
  3982. #pragma mapbox: initialize lowp float blur
  3983. #pragma mapbox: initialize lowp float opacity
  3984. float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);
  3985. #ifdef RENDER_LINE_DASH
  3986. float sdfdist_a=texture2D(u_dash_image,v_tex_a).a;float sdfdist_b=texture2D(u_dash_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);float sdfwidth=min(dash_from.z*u_scale.y,dash_to.z*u_scale.z);float sdfgamma=1.0/(2.0*u_device_pixel_ratio)/sdfwidth;alpha*=smoothstep(0.5-sdfgamma/floorwidth,0.5+sdfgamma/floorwidth,sdfdist);
  3987. #endif
  3988. #ifdef RENDER_LINE_GRADIENT
  3989. vec4 out_color=texture2D(u_gradient_image,v_uv);
  3990. #else
  3991. vec4 out_color=color;
  3992. #endif
  3993. #ifdef FOG
  3994. out_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));
  3995. #endif
  3996. #ifdef RENDER_LINE_ALPHA_DISCARD
  3997. if (alpha < u_alpha_discard_threshold) {discard;}
  3998. #endif
  3999. gl_FragColor=out_color*(alpha*opacity);
  4000. #ifdef OVERDRAW_INSPECTOR
  4001. gl_FragColor=vec4(1.0);
  4002. #endif
  4003. }`,`
  4004. #define EXTRUDE_SCALE 0.015873016
  4005. attribute vec2 a_pos_normal;attribute vec4 a_data;
  4006. #ifdef RENDER_LINE_GRADIENT
  4007. attribute vec3 a_packed;
  4008. #else
  4009. attribute float a_linesofar;
  4010. #endif
  4011. uniform mat4 u_matrix;uniform mat2 u_pixels_to_tile_units;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;
  4012. #ifdef RENDER_LINE_DASH
  4013. uniform vec2 u_texsize;uniform mediump vec3 u_scale;varying vec2 v_tex_a;varying vec2 v_tex_b;
  4014. #endif
  4015. #ifdef RENDER_LINE_GRADIENT
  4016. uniform float u_image_height;varying highp vec2 v_uv;
  4017. #endif
  4018. #pragma mapbox: define highp vec4 color
  4019. #pragma mapbox: define lowp float floorwidth
  4020. #pragma mapbox: define lowp vec4 dash_from
  4021. #pragma mapbox: define lowp vec4 dash_to
  4022. #pragma mapbox: define lowp float blur
  4023. #pragma mapbox: define lowp float opacity
  4024. #pragma mapbox: define mediump float gapwidth
  4025. #pragma mapbox: define lowp float offset
  4026. #pragma mapbox: define mediump float width
  4027. void main() {
  4028. #pragma mapbox: initialize highp vec4 color
  4029. #pragma mapbox: initialize lowp float floorwidth
  4030. #pragma mapbox: initialize lowp vec4 dash_from
  4031. #pragma mapbox: initialize lowp vec4 dash_to
  4032. #pragma mapbox: initialize lowp float blur
  4033. #pragma mapbox: initialize lowp float opacity
  4034. #pragma mapbox: initialize mediump float gapwidth
  4035. #pragma mapbox: initialize lowp float offset
  4036. #pragma mapbox: initialize mediump float width
  4037. float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*EXTRUDE_SCALE;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*EXTRUDE_SCALE*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist*u_pixels_to_tile_units,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,0.0,1.0)+projected_extrude;
  4038. #ifndef RENDER_TO_TEXTURE
  4039. float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
  4040. #else
  4041. v_gamma_scale=1.0;
  4042. #endif
  4043. #ifdef RENDER_LINE_GRADIENT
  4044. float a_uv_x=a_packed[0];float a_split_index=a_packed[1];float a_linesofar=a_packed[2];highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);
  4045. #endif
  4046. #ifdef RENDER_LINE_DASH
  4047. float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;float scaleA=dash_from.z==0.0 ? 0.0 : tileZoomRatio/(dash_from.z*fromScale);float scaleB=dash_to.z==0.0 ? 0.0 : tileZoomRatio/(dash_to.z*toScale);float heightA=dash_from.y;float heightB=dash_to.y;v_tex_a=vec2(a_linesofar*scaleA/floorwidth,(-normal.y*heightA+dash_from.x+0.5)/u_texsize.y);v_tex_b=vec2(a_linesofar*scaleB/floorwidth,(-normal.y*heightB+dash_to.x+0.5)/u_texsize.y);
  4048. #endif
  4049. v_width2=vec2(outset,inset);
  4050. #ifdef FOG
  4051. v_fog_pos=fog_position(pos);
  4052. #endif
  4053. }`),linePattern:Qe(`uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;
  4054. #pragma mapbox: define lowp vec4 pattern_from
  4055. #pragma mapbox: define lowp vec4 pattern_to
  4056. #pragma mapbox: define lowp float pixel_ratio_from
  4057. #pragma mapbox: define lowp float pixel_ratio_to
  4058. #pragma mapbox: define lowp float blur
  4059. #pragma mapbox: define lowp float opacity
  4060. void main() {
  4061. #pragma mapbox: initialize mediump vec4 pattern_from
  4062. #pragma mapbox: initialize mediump vec4 pattern_to
  4063. #pragma mapbox: initialize lowp float pixel_ratio_from
  4064. #pragma mapbox: initialize lowp float pixel_ratio_to
  4065. #pragma mapbox: initialize lowp float blur
  4066. #pragma mapbox: initialize lowp float opacity
  4067. vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);
  4068. #ifdef FOG
  4069. color=fog_dither(fog_apply_premultiplied(color,v_fog_pos));
  4070. #endif
  4071. gl_FragColor=color*(alpha*opacity);
  4072. #ifdef OVERDRAW_INSPECTOR
  4073. gl_FragColor=vec4(1.0);
  4074. #endif
  4075. }`,`
  4076. #define scale 0.015873016
  4077. attribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_linesofar;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mat2 u_pixels_to_tile_units;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;
  4078. #pragma mapbox: define lowp float blur
  4079. #pragma mapbox: define lowp float opacity
  4080. #pragma mapbox: define lowp float offset
  4081. #pragma mapbox: define mediump float gapwidth
  4082. #pragma mapbox: define mediump float width
  4083. #pragma mapbox: define lowp float floorwidth
  4084. #pragma mapbox: define lowp vec4 pattern_from
  4085. #pragma mapbox: define lowp vec4 pattern_to
  4086. #pragma mapbox: define lowp float pixel_ratio_from
  4087. #pragma mapbox: define lowp float pixel_ratio_to
  4088. void main() {
  4089. #pragma mapbox: initialize lowp float blur
  4090. #pragma mapbox: initialize lowp float opacity
  4091. #pragma mapbox: initialize lowp float offset
  4092. #pragma mapbox: initialize mediump float gapwidth
  4093. #pragma mapbox: initialize mediump float width
  4094. #pragma mapbox: initialize lowp float floorwidth
  4095. #pragma mapbox: initialize mediump vec4 pattern_from
  4096. #pragma mapbox: initialize mediump vec4 pattern_to
  4097. #pragma mapbox: initialize lowp float pixel_ratio_from
  4098. #pragma mapbox: initialize lowp float pixel_ratio_to
  4099. float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist*u_pixels_to_tile_units,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,0.0,1.0)+projected_extrude;
  4100. #ifndef RENDER_TO_TEXTURE
  4101. float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
  4102. #else
  4103. v_gamma_scale=1.0;
  4104. #endif
  4105. v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;
  4106. #ifdef FOG
  4107. v_fog_pos=fog_position(pos);
  4108. #endif
  4109. }`),raster:Qe(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(
  4110. dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);vec3 out_color=mix(u_high_vec,u_low_vec,rgb);
  4111. #ifdef FOG
  4112. out_color=fog_dither(fog_apply(out_color,v_fog_pos));
  4113. #endif
  4114. gl_FragColor=vec4(out_color*color.a,color.a);
  4115. #ifdef OVERDRAW_INSPECTOR
  4116. gl_FragColor=vec4(1.0);
  4117. #endif
  4118. }`,`uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform vec2 u_perspective_transform;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {float w=1.0+dot(a_texture_pos,u_perspective_transform);gl_Position=u_matrix*vec4(a_pos*w,0,w);v_pos0=a_texture_pos/8192.0;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;
  4119. #ifdef FOG
  4120. v_fog_pos=fog_position(a_pos);
  4121. #endif
  4122. }`),symbolIcon:Qe(`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;
  4123. #pragma mapbox: define lowp float opacity
  4124. void main() {
  4125. #pragma mapbox: initialize lowp float opacity
  4126. lowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;
  4127. #ifdef OVERDRAW_INSPECTOR
  4128. gl_FragColor=vec4(1.0);
  4129. #endif
  4130. }`,`attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_pixeloffset;attribute vec4 a_z_tile_anchor;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;
  4131. #ifdef PROJECTION_GLOBE_VIEW
  4132. uniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;
  4133. #endif
  4134. varying vec2 v_tex;varying float v_fade_opacity;
  4135. #pragma mapbox: define lowp float opacity
  4136. void main() {
  4137. #pragma mapbox: initialize lowp float opacity
  4138. vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_min_font_scale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}float anchor_z=a_z_tile_anchor.x;vec2 tile_anchor=a_z_tile_anchor.yz;vec3 h=elevationVector(tile_anchor)*elevation(tile_anchor);
  4139. #ifdef PROJECTION_GLOBE_VIEW
  4140. vec3 mercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);vec3 world_pos=mix_globe_mercator(vec3(a_pos,anchor_z)+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;float globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;
  4141. #else
  4142. vec3 world_pos=vec3(a_pos,anchor_z)+h;float globe_occlusion_fade=1.0;
  4143. #endif
  4144. vec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?
  4145. camera_to_anchor_distance/u_camera_to_center_distance :
  4146. u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(
  4147. 0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float font_scale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjected_point=u_matrix*vec4(a_pos+vec2(1,0),anchor_z,1);vec2 a=projected_point.xy/projected_point.w;vec2 b=offsetProjected_point.xy/offsetProjected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}
  4148. #ifdef PROJECTION_GLOBE_VIEW
  4149. vec3 proj_pos=mix_globe_mercator(vec3(a_projected_pos.xy,anchor_z),mercator_pos,u_zoom_transition);
  4150. #else
  4151. vec3 proj_pos=vec3(a_projected_pos.xy,anchor_z);
  4152. #endif
  4153. #ifdef PROJECTED_POS_ON_VIEWPORT
  4154. vec4 projected_pos=u_label_plane_matrix*vec4(proj_pos.xy,0.0,1.0);
  4155. #else
  4156. vec4 projected_pos=u_label_plane_matrix*vec4(proj_pos.xyz+h,1.0);
  4157. #endif
  4158. highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*max(a_min_font_scale,font_scale)+a_pxoffset/16.0);
  4159. #ifdef PITCH_WITH_MAP_TERRAIN
  4160. vec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);
  4161. #endif
  4162. float occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;gl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));float projection_transition_fade=1.0;
  4163. #if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)
  4164. projection_transition_fade=1.0-step(EPSILON,u_zoom_transition);
  4165. #endif
  4166. v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change))*projection_transition_fade;}`),symbolSDF:Qe(`#define SDF_PX 8.0
  4167. uniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;
  4168. #pragma mapbox: define highp vec4 fill_color
  4169. #pragma mapbox: define highp vec4 halo_color
  4170. #pragma mapbox: define lowp float opacity
  4171. #pragma mapbox: define lowp float halo_width
  4172. #pragma mapbox: define lowp float halo_blur
  4173. void main() {
  4174. #pragma mapbox: initialize highp vec4 fill_color
  4175. #pragma mapbox: initialize highp vec4 halo_color
  4176. #pragma mapbox: initialize lowp float opacity
  4177. #pragma mapbox: initialize lowp float halo_width
  4178. #pragma mapbox: initialize lowp float halo_blur
  4179. float EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);
  4180. #ifdef OVERDRAW_INSPECTOR
  4181. gl_FragColor=vec4(1.0);
  4182. #endif
  4183. }`,`attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_pixeloffset;attribute vec4 a_z_tile_anchor;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;
  4184. #ifdef PROJECTION_GLOBE_VIEW
  4185. uniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;
  4186. #endif
  4187. varying vec2 v_data0;varying vec3 v_data1;
  4188. #pragma mapbox: define highp vec4 fill_color
  4189. #pragma mapbox: define highp vec4 halo_color
  4190. #pragma mapbox: define lowp float opacity
  4191. #pragma mapbox: define lowp float halo_width
  4192. #pragma mapbox: define lowp float halo_blur
  4193. void main() {
  4194. #pragma mapbox: initialize highp vec4 fill_color
  4195. #pragma mapbox: initialize highp vec4 halo_color
  4196. #pragma mapbox: initialize lowp float opacity
  4197. #pragma mapbox: initialize lowp float halo_width
  4198. #pragma mapbox: initialize lowp float halo_blur
  4199. vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}float anchor_z=a_z_tile_anchor.x;vec2 tile_anchor=a_z_tile_anchor.yz;vec3 h=elevationVector(tile_anchor)*elevation(tile_anchor);
  4200. #ifdef PROJECTION_GLOBE_VIEW
  4201. vec3 mercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);vec3 world_pos=mix_globe_mercator(vec3(a_pos,anchor_z)+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;float globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;
  4202. #else
  4203. vec3 world_pos=vec3(a_pos,anchor_z)+h;float globe_occlusion_fade=1.0;
  4204. #endif
  4205. vec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?
  4206. camera_to_anchor_distance/u_camera_to_center_distance :
  4207. u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(
  4208. 0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetprojected_point=u_matrix*vec4(a_pos+vec2(1,0),anchor_z,1);vec2 a=projected_point.xy/projected_point.w;vec2 b=offsetprojected_point.xy/offsetprojected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}
  4209. #ifdef PROJECTION_GLOBE_VIEW
  4210. vec3 proj_pos=mix_globe_mercator(vec3(a_projected_pos.xy,anchor_z),mercator_pos,u_zoom_transition);
  4211. #else
  4212. vec3 proj_pos=vec3(a_projected_pos.xy,anchor_z);
  4213. #endif
  4214. #ifdef PROJECTED_POS_ON_VIEWPORT
  4215. vec4 projected_pos=u_label_plane_matrix*vec4(proj_pos.xy,0.0,1.0);
  4216. #else
  4217. vec4 projected_pos=u_label_plane_matrix*vec4(proj_pos.xyz+h,1.0);
  4218. #endif
  4219. highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset);
  4220. #ifdef PITCH_WITH_MAP_TERRAIN
  4221. vec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);
  4222. #endif
  4223. float occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;gl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));float gamma_scale=gl_Position.w;float projection_transition_fade=1.0;
  4224. #if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)
  4225. projection_transition_fade=1.0-step(EPSILON,u_zoom_transition);
  4226. #endif
  4227. vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity*projection_transition_fade);}`),symbolTextAndIcon:Qe(`#define SDF_PX 8.0
  4228. #define SDF 1.0
  4229. #define ICON 0.0
  4230. uniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;
  4231. #pragma mapbox: define highp vec4 fill_color
  4232. #pragma mapbox: define highp vec4 halo_color
  4233. #pragma mapbox: define lowp float opacity
  4234. #pragma mapbox: define lowp float halo_width
  4235. #pragma mapbox: define lowp float halo_blur
  4236. void main() {
  4237. #pragma mapbox: initialize highp vec4 fill_color
  4238. #pragma mapbox: initialize highp vec4 halo_color
  4239. #pragma mapbox: initialize lowp float opacity
  4240. #pragma mapbox: initialize lowp float halo_width
  4241. #pragma mapbox: initialize lowp float halo_blur
  4242. float fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;
  4243. #ifdef OVERDRAW_INSPECTOR
  4244. gl_FragColor=vec4(1.0);
  4245. #endif
  4246. return;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);
  4247. #ifdef OVERDRAW_INSPECTOR
  4248. gl_FragColor=vec4(1.0);
  4249. #endif
  4250. }`,`attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_z_tile_anchor;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;
  4251. #ifdef PROJECTION_GLOBE_VIEW
  4252. uniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;
  4253. #endif
  4254. varying vec4 v_data0;varying vec4 v_data1;
  4255. #pragma mapbox: define highp vec4 fill_color
  4256. #pragma mapbox: define highp vec4 halo_color
  4257. #pragma mapbox: define lowp float opacity
  4258. #pragma mapbox: define lowp float halo_width
  4259. #pragma mapbox: define lowp float halo_blur
  4260. void main() {
  4261. #pragma mapbox: initialize highp vec4 fill_color
  4262. #pragma mapbox: initialize highp vec4 halo_color
  4263. #pragma mapbox: initialize lowp float opacity
  4264. #pragma mapbox: initialize lowp float halo_width
  4265. #pragma mapbox: initialize lowp float halo_blur
  4266. vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}float anchor_z=a_z_tile_anchor.x;vec2 tile_anchor=a_z_tile_anchor.yz;vec3 h=elevationVector(tile_anchor)*elevation(tile_anchor);
  4267. #ifdef PROJECTION_GLOBE_VIEW
  4268. vec3 mercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);vec3 world_pos=mix_globe_mercator(vec3(a_pos,anchor_z)+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;float globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;
  4269. #else
  4270. vec3 world_pos=vec3(a_pos,anchor_z)+h;float globe_occlusion_fade=1.0;
  4271. #endif
  4272. vec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?
  4273. camera_to_anchor_distance/u_camera_to_center_distance :
  4274. u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(
  4275. 0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float font_scale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offset_projected_point=u_matrix*vec4(a_pos+vec2(1,0),anchor_z,1);vec2 a=projected_point.xy/projected_point.w;vec2 b=offset_projected_point.xy/offset_projected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}
  4276. #ifdef PROJECTION_GLOBE_VIEW
  4277. vec3 proj_pos=mix_globe_mercator(vec3(a_projected_pos.xy,anchor_z),mercator_pos,u_zoom_transition);
  4278. #else
  4279. vec3 proj_pos=vec3(a_projected_pos.xy,anchor_z);
  4280. #endif
  4281. #ifdef PROJECTED_POS_ON_VIEWPORT
  4282. vec4 projected_pos=u_label_plane_matrix*vec4(proj_pos.xy,0.0,1.0);
  4283. #else
  4284. vec4 projected_pos=u_label_plane_matrix*vec4(proj_pos.xyz+h,1.0);
  4285. #endif
  4286. highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*font_scale);
  4287. #ifdef PITCH_WITH_MAP_TERRAIN
  4288. vec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);
  4289. #endif
  4290. float occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;gl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));float projection_transition_fade=1.0;
  4291. #if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)
  4292. projection_transition_fade=1.0-step(EPSILON,u_zoom_transition);
  4293. #endif
  4294. v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity*projection_transition_fade,is_sdf);}`),terrainRaster:Qe(`uniform sampler2D u_image0;varying vec2 v_pos0;
  4295. #ifdef FOG
  4296. varying float v_fog_opacity;
  4297. #endif
  4298. void main() {vec4 color=texture2D(u_image0,v_pos0);
  4299. #ifdef FOG
  4300. color=fog_dither(fog_apply_from_vert(color,v_fog_opacity));
  4301. #endif
  4302. gl_FragColor=color;
  4303. #ifdef TERRAIN_WIREFRAME
  4304. gl_FragColor=vec4(1.0,0.0,0.0,0.8);
  4305. #endif
  4306. #ifdef OVERDRAW_INSPECTOR
  4307. gl_FragColor=vec4(1.0);
  4308. #endif
  4309. }`,`uniform mat4 u_matrix;uniform float u_skirt_height;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;
  4310. #ifdef FOG
  4311. varying float v_fog_opacity;
  4312. #endif
  4313. const float skirtOffset=24575.0;const float wireframeOffset=0.00015;void main() {v_pos0=a_texture_pos/8192.0;float skirt=float(a_pos.x >=skirtOffset);float elevation=elevation(a_texture_pos)-skirt*u_skirt_height;
  4314. #ifdef TERRAIN_WIREFRAME
  4315. elevation+=u_skirt_height*u_skirt_height*wireframeOffset;
  4316. #endif
  4317. vec2 decodedPos=a_pos-vec2(skirt*skirtOffset,0.0);gl_Position=u_matrix*vec4(decodedPos,elevation,1.0);
  4318. #ifdef FOG
  4319. v_fog_opacity=fog(fog_position(vec3(decodedPos,elevation)));
  4320. #endif
  4321. }`),terrainDepth:Qe(`#ifdef GL_ES
  4322. precision highp float;
  4323. #endif
  4324. varying float v_depth;void main() {gl_FragColor=pack_depth(v_depth);}`,"uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying float v_depth;void main() {float elevation=elevation(a_texture_pos);gl_Position=u_matrix*vec4(a_pos,elevation,1.0);v_depth=gl_Position.z/gl_Position.w;}"),skybox:Qe(`
  4325. varying lowp vec3 v_uv;uniform lowp samplerCube u_cubemap;uniform lowp float u_opacity;uniform highp float u_temporal_offset;uniform highp vec3 u_sun_direction;float sun_disk(highp vec3 ray_direction,highp vec3 sun_direction) {highp float cos_angle=dot(normalize(ray_direction),sun_direction);const highp float cos_sun_angular_diameter=0.99996192306;const highp float smoothstep_delta=1e-5;return smoothstep(
  4326. cos_sun_angular_diameter-smoothstep_delta,cos_sun_angular_diameter+smoothstep_delta,cos_angle);}float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(end-start)+new_start;}void main() {vec3 uv=v_uv;const float y_bias=0.015;uv.y+=y_bias;uv.y=pow(abs(uv.y),1.0/5.0);uv.y=map(uv.y,0.0,1.0,-1.0,1.0);vec3 sky_color=textureCube(u_cubemap,uv).rgb;
  4327. #ifdef FOG
  4328. sky_color=fog_apply_sky_gradient(v_uv.xzy,sky_color);
  4329. #endif
  4330. sky_color.rgb=dither(sky_color.rgb,gl_FragCoord.xy+u_temporal_offset);sky_color+=0.1*sun_disk(v_uv,u_sun_direction);gl_FragColor=vec4(sky_color*u_opacity,u_opacity);
  4331. #ifdef OVERDRAW_INSPECTOR
  4332. gl_FragColor=vec4(1.0);
  4333. #endif
  4334. }`,Ki),skyboxGradient:Qe(`varying highp vec3 v_uv;uniform lowp sampler2D u_color_ramp;uniform highp vec3 u_center_direction;uniform lowp float u_radius;uniform lowp float u_opacity;uniform highp float u_temporal_offset;void main() {float progress=acos(dot(normalize(v_uv),u_center_direction))/u_radius;vec4 color=texture2D(u_color_ramp,vec2(progress,0.5));
  4335. #ifdef FOG
  4336. color.rgb=fog_apply_sky_gradient(v_uv.xzy,color.rgb/color.a)*color.a;
  4337. #endif
  4338. color*=u_opacity;color.rgb=dither(color.rgb,gl_FragCoord.xy+u_temporal_offset);gl_FragColor=color;
  4339. #ifdef OVERDRAW_INSPECTOR
  4340. gl_FragColor=vec4(1.0);
  4341. #endif
  4342. }`,Ki),skyboxCapture:Qe(`
  4343. varying highp vec3 v_position;uniform highp float u_sun_intensity;uniform highp float u_luminance;uniform lowp vec3 u_sun_direction;uniform highp vec4 u_color_tint_r;uniform highp vec4 u_color_tint_m;
  4344. #ifdef GL_ES
  4345. precision highp float;
  4346. #endif
  4347. #define BETA_R vec3(5.5e-6,13.0e-6,22.4e-6)
  4348. #define BETA_M vec3(21e-6,21e-6,21e-6)
  4349. #define MIE_G 0.76
  4350. #define DENSITY_HEIGHT_SCALE_R 8000.0
  4351. #define DENSITY_HEIGHT_SCALE_M 1200.0
  4352. #define PLANET_RADIUS 6360e3
  4353. #define ATMOSPHERE_RADIUS 6420e3
  4354. #define SAMPLE_STEPS 10
  4355. #define DENSITY_STEPS 4
  4356. float ray_sphere_exit(vec3 orig,vec3 dir,float radius) {float a=dot(dir,dir);float b=2.0*dot(dir,orig);float c=dot(orig,orig)-radius*radius;float d=sqrt(b*b-4.0*a*c);return (-b+d)/(2.0*a);}vec3 extinction(vec2 density) {return exp(-vec3(BETA_R*u_color_tint_r.a*density.x+BETA_M*u_color_tint_m.a*density.y));}vec2 local_density(vec3 point) {float height=max(length(point)-PLANET_RADIUS,0.0);float exp_r=exp(-height/DENSITY_HEIGHT_SCALE_R);float exp_m=exp(-height/DENSITY_HEIGHT_SCALE_M);return vec2(exp_r,exp_m);}float phase_ray(float cos_angle) {return (3.0/(16.0*PI))*(1.0+cos_angle*cos_angle);}float phase_mie(float cos_angle) {return (3.0/(8.0*PI))*((1.0-MIE_G*MIE_G)*(1.0+cos_angle*cos_angle))/((2.0+MIE_G*MIE_G)*pow(1.0+MIE_G*MIE_G-2.0*MIE_G*cos_angle,1.5));}vec2 density_to_atmosphere(vec3 point,vec3 light_dir) {float ray_len=ray_sphere_exit(point,light_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(DENSITY_STEPS);vec2 density_point_to_atmosphere=vec2(0.0);for (int i=0; i < DENSITY_STEPS;++i) {vec3 point_on_ray=point+light_dir*((float(i)+0.5)*step_len);density_point_to_atmosphere+=local_density(point_on_ray)*step_len;;}return density_point_to_atmosphere;}vec3 atmosphere(vec3 ray_dir,vec3 sun_direction,float sun_intensity) {vec2 density_orig_to_point=vec2(0.0);vec3 scatter_r=vec3(0.0);vec3 scatter_m=vec3(0.0);vec3 origin=vec3(0.0,PLANET_RADIUS,0.0);float ray_len=ray_sphere_exit(origin,ray_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(SAMPLE_STEPS);for (int i=0; i < SAMPLE_STEPS;++i) {vec3 point_on_ray=origin+ray_dir*((float(i)+0.5)*step_len);vec2 density=local_density(point_on_ray)*step_len;density_orig_to_point+=density;vec2 density_point_to_atmosphere=density_to_atmosphere(point_on_ray,sun_direction);vec2 density_orig_to_atmosphere=density_orig_to_point+density_point_to_atmosphere;vec3 extinction=extinction(density_orig_to_atmosphere);scatter_r+=density.x*extinction;scatter_m+=density.y*extinction;}float cos_angle=dot(ray_dir,sun_direction);float phase_r=phase_ray(cos_angle);float phase_m=phase_mie(cos_angle);vec3 beta_r=BETA_R*u_color_tint_r.rgb*u_color_tint_r.a;vec3 beta_m=BETA_M*u_color_tint_m.rgb*u_color_tint_m.a;return (scatter_r*phase_r*beta_r+scatter_m*phase_m*beta_m)*sun_intensity;}const float A=0.15;const float B=0.50;const float C=0.10;const float D=0.20;const float E=0.02;const float F=0.30;vec3 uncharted2_tonemap(vec3 x) {return ((x*(A*x+C*B)+D*E)/(x*(A*x+B)+D*F))-E/F;}void main() {vec3 ray_direction=v_position;ray_direction.y=pow(ray_direction.y,5.0);const float y_bias=0.015;ray_direction.y+=y_bias;vec3 color=atmosphere(normalize(ray_direction),u_sun_direction,u_sun_intensity);float white_scale=1.0748724675633854;color=uncharted2_tonemap((log2(2.0/pow(u_luminance,4.0)))*color)*white_scale;gl_FragColor=vec4(color,1.0);}`,"attribute highp vec3 a_pos_3f;uniform mat3 u_matrix_3f;varying highp vec3 v_position;float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(end-start)+new_start;}void main() {vec4 pos=vec4(u_matrix_3f*a_pos_3f,1.0);v_position=pos.xyz;v_position.y*=-1.0;v_position.y=map(v_position.y,-1.0,1.0,0.0,1.0);gl_Position=vec4(a_pos_3f.xy,0.0,1.0);}"),globeRaster:Qe(`uniform sampler2D u_image0;varying vec2 v_pos0;void main() {gl_FragColor=texture2D(u_image0,v_pos0);
  4357. #ifdef TERRAIN_WIREFRAME
  4358. gl_FragColor=vec4(1.0,0.0,0.0,0.8);
  4359. #endif
  4360. #ifdef OVERDRAW_INSPECTOR
  4361. gl_FragColor=vec4(1.0);
  4362. #endif
  4363. }`,`uniform mat4 u_proj_matrix;uniform mat4 u_globe_matrix;uniform mat4 u_merc_matrix;uniform float u_zoom_transition;uniform vec2 u_merc_center;uniform mat3 u_grid_matrix;
  4364. #ifdef GLOBE_POLES
  4365. attribute vec3 a_globe_pos;attribute vec2 a_merc_pos;attribute vec2 a_uv;
  4366. #else
  4367. attribute vec2 a_pos;
  4368. #endif
  4369. varying vec2 v_pos0;const float wireframeOffset=1e3;float mercatorXfromLng(float lng) {return (180.0+lng)/360.0;}float mercatorYfromLat(float lat) {return (180.0-(RAD_TO_DEG*log(tan(QUARTER_PI+lat/2.0*DEG_TO_RAD))))/360.0;}vec3 latLngToECEF(vec2 latLng) {latLng=DEG_TO_RAD*latLng;float cosLat=cos(latLng[0]);float sinLat=sin(latLng[0]);float cosLng=cos(latLng[1]);float sinLng=sin(latLng[1]);float sx=cosLat*sinLng*GLOBE_RADIUS;float sy=-sinLat*GLOBE_RADIUS;float sz=cosLat*cosLng*GLOBE_RADIUS;return vec3(sx,sy,sz);}void main() {
  4370. #ifdef GLOBE_POLES
  4371. vec3 globe_pos=a_globe_pos;vec2 merc_pos=a_merc_pos;vec2 uv=a_uv;
  4372. #else
  4373. float tiles=u_grid_matrix[0][2];float idy=u_grid_matrix[1][2];float S=u_grid_matrix[2][2];vec3 latLng=u_grid_matrix*vec3(a_pos,1.0);float mercatorY=mercatorYfromLat(latLng[0]);float uvY=mercatorY*tiles-idy;float mercatorX=mercatorXfromLng(latLng[1]);float uvX=a_pos[0]*S;vec3 globe_pos=latLngToECEF(latLng.xy);vec2 merc_pos=vec2(mercatorX,mercatorY);vec2 uv=vec2(uvX,uvY);
  4374. #endif
  4375. v_pos0=uv;uv=uv*EXTENT;vec4 up_vector=vec4(elevationVector(uv),1.0);float height=elevation(uv);
  4376. #ifdef TERRAIN_WIREFRAME
  4377. height+=wireframeOffset;
  4378. #endif
  4379. vec4 globe=u_globe_matrix*vec4(globe_pos+up_vector.xyz*height,1.0);vec4 mercator=vec4(0.0);if (u_zoom_transition > 0.0) {mercator=vec4(merc_pos,height,1.0);mercator.xy-=u_merc_center;mercator.x=wrap(mercator.x,-0.5,0.5);mercator=u_merc_matrix*mercator;}vec3 position=mix(globe.xyz,mercator.xyz,u_zoom_transition);gl_Position=u_proj_matrix*vec4(position,1.0);}`),globeAtmosphere:Qe(`uniform float u_opacity;uniform highp float u_fadeout_range;uniform vec3 u_start_color;uniform vec3 u_end_color;uniform highp vec3 u_globe_pos;uniform highp float u_globe_radius;varying highp vec3 v_ray_dir;void main() {highp vec3 dir=normalize(v_ray_dir);highp vec3 closest_point=abs(dot(u_globe_pos,dir))*dir;float norm_dist_from_center=length(closest_point-u_globe_pos)/u_globe_radius;if (norm_dist_from_center < 1.0)
  4380. discard;float t=clamp(1.0-sqrt(norm_dist_from_center-1.0)/u_fadeout_range,0.0,1.0);vec3 color=mix(u_start_color,u_end_color,1.0-t);gl_FragColor=vec4(color*t*u_opacity,u_opacity);}`,"attribute vec3 a_pos;attribute vec2 a_uv;uniform vec3 u_frustum_tl;uniform vec3 u_frustum_tr;uniform vec3 u_frustum_br;uniform vec3 u_frustum_bl;varying highp vec3 v_ray_dir;void main() {v_ray_dir=mix(mix(u_frustum_tl,u_frustum_tr,a_uv.x),mix(u_frustum_bl,u_frustum_br,a_uv.x),a_uv.y);gl_Position=vec4(a_pos,1.0);}")};function Qe(U,f,k){const Z=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,ue=/uniform (highp |mediump |lowp )?([\w]+) ([\w]+)([\s]*)([\w]*)/g,he=f.match(/attribute (highp |mediump |lowp )?([\w]+) ([\w]+)/g),_e=U.match(ue),Ce=f.match(ue),Xe=ao.match(ue);let nt=Ce?Ce.concat(_e):_e;k||($o.staticUniforms&&(nt=$o.staticUniforms.concat(nt)),Ho.staticUniforms&&(nt=Ho.staticUniforms.concat(nt))),nt&&(nt=nt.concat(Xe));const lt={};return{fragmentSource:U=U.replace(Z,(yt,Rt,Ut,Bt,It)=>(lt[It]=!0,Rt==="define"?`
  4381. #ifndef HAS_UNIFORM_u_${It}
  4382. varying ${Ut} ${Bt} ${It};
  4383. #else
  4384. uniform ${Ut} ${Bt} u_${It};
  4385. #endif
  4386. `:`
  4387. #ifdef HAS_UNIFORM_u_${It}
  4388. ${Ut} ${Bt} ${It} = u_${It};
  4389. #endif
  4390. `)),vertexSource:f=f.replace(Z,(yt,Rt,Ut,Bt,It)=>{const vn=Bt==="float"?"vec2":"vec4",tn=It.match(/color/)?"color":vn;return lt[It]?Rt==="define"?`
  4391. #ifndef HAS_UNIFORM_u_${It}
  4392. uniform lowp float u_${It}_t;
  4393. attribute ${Ut} ${vn} a_${It};
  4394. varying ${Ut} ${Bt} ${It};
  4395. #else
  4396. uniform ${Ut} ${Bt} u_${It};
  4397. #endif
  4398. `:tn==="vec4"?`
  4399. #ifndef HAS_UNIFORM_u_${It}
  4400. ${It} = a_${It};
  4401. #else
  4402. ${Ut} ${Bt} ${It} = u_${It};
  4403. #endif
  4404. `:`
  4405. #ifndef HAS_UNIFORM_u_${It}
  4406. ${It} = unpack_mix_${tn}(a_${It}, u_${It}_t);
  4407. #else
  4408. ${Ut} ${Bt} ${It} = u_${It};
  4409. #endif
  4410. `:Rt==="define"?`
  4411. #ifndef HAS_UNIFORM_u_${It}
  4412. uniform lowp float u_${It}_t;
  4413. attribute ${Ut} ${vn} a_${It};
  4414. #else
  4415. uniform ${Ut} ${Bt} u_${It};
  4416. #endif
  4417. `:tn==="vec4"?`
  4418. #ifndef HAS_UNIFORM_u_${It}
  4419. ${Ut} ${Bt} ${It} = a_${It};
  4420. #else
  4421. ${Ut} ${Bt} ${It} = u_${It};
  4422. #endif
  4423. `:`
  4424. #ifndef HAS_UNIFORM_u_${It}
  4425. ${Ut} ${Bt} ${It} = unpack_mix_${tn}(a_${It}, u_${It}_t);
  4426. #else
  4427. ${Ut} ${Bt} ${It} = u_${It};
  4428. #endif
  4429. `}),staticAttributes:he,staticUniforms:nt}}class J{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(f,k,Z,ue,he,_e,Ce,Xe){this.context=f;let nt=this.boundPaintVertexBuffers.length!==ue.length;for(let lt=0;!nt&&lt<ue.length;lt++)this.boundPaintVertexBuffers[lt]!==ue[lt]&&(nt=!0);f.extVertexArrayObject&&this.vao&&this.boundProgram===k&&this.boundLayoutVertexBuffer===Z&&!nt&&this.boundIndexBuffer===he&&this.boundVertexOffset===_e&&this.boundDynamicVertexBuffer===Ce&&this.boundDynamicVertexBuffer2===Xe?(f.bindVertexArrayOES.set(this.vao),Ce&&Ce.bind(),he&&he.dynamicDraw&&he.bind(),Xe&&Xe.bind()):this.freshBind(k,Z,ue,he,_e,Ce,Xe)}freshBind(f,k,Z,ue,he,_e,Ce){let Xe;const nt=f.numAttributes,lt=this.context,yt=lt.gl;if(lt.extVertexArrayObject)this.vao&&this.destroy(),this.vao=lt.extVertexArrayObject.createVertexArrayOES(),lt.bindVertexArrayOES.set(this.vao),Xe=0,this.boundProgram=f,this.boundLayoutVertexBuffer=k,this.boundPaintVertexBuffers=Z,this.boundIndexBuffer=ue,this.boundVertexOffset=he,this.boundDynamicVertexBuffer=_e,this.boundDynamicVertexBuffer2=Ce;else{Xe=lt.currentNumAttributes||0;for(let Rt=nt;Rt<Xe;Rt++)yt.disableVertexAttribArray(Rt)}k.enableAttributes(yt,f);for(const Rt of Z)Rt.enableAttributes(yt,f);_e&&_e.enableAttributes(yt,f),Ce&&Ce.enableAttributes(yt,f),k.bind(),k.setVertexAttribPointers(yt,f,he);for(const Rt of Z)Rt.bind(),Rt.setVertexAttribPointers(yt,f,he);_e&&(_e.bind(),_e.setVertexAttribPointers(yt,f,he)),ue&&ue.bind(),Ce&&(Ce.bind(),Ce.setVertexAttribPointers(yt,f,he)),lt.currentNumAttributes=nt}destroy(){this.vao&&(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)}}function ae(U,f){const k=Math.pow(2,f.canonical.z),Z=f.canonical.y;return[new l.MercatorCoordinate(0,Z/k).toLngLat().lat,new l.MercatorCoordinate(0,(Z+1)/k).toLngLat().lat]}function ve(U,f,k,Z,ue,he,_e){const Ce=U.context,Xe=Ce.gl,nt=k.fbo;if(!nt)return;U.prepareDrawTile();const lt=U.useProgram("hillshade");Ce.activeTexture.set(Xe.TEXTURE0),Xe.bindTexture(Xe.TEXTURE_2D,nt.colorAttachment.get());const yt=((It,vn,tn,cn)=>{const pn=tn.paint.get("hillshade-shadow-color"),Cn=tn.paint.get("hillshade-highlight-color"),un=tn.paint.get("hillshade-accent-color");let kn=tn.paint.get("hillshade-illumination-direction")*(Math.PI/180);tn.paint.get("hillshade-illumination-anchor")==="viewport"&&(kn-=It.transform.angle);const nr=!It.options.moving;return{u_matrix:cn||It.transform.calculateProjMatrix(vn.tileID.toUnwrapped(),nr),u_image:0,u_latrange:ae(0,vn.tileID),u_light:[tn.paint.get("hillshade-exaggeration"),kn],u_shadow:pn,u_highlight:Cn,u_accent:un}})(U,k,Z,U.terrain?f.projMatrix:null);U.prepareDrawProgram(Ce,lt,f.toUnwrapped());const{tileBoundsBuffer:Rt,tileBoundsIndexBuffer:Ut,tileBoundsSegments:Bt}=U.getTileBoundsBuffers(k);lt.draw(Ce,Xe.TRIANGLES,ue,he,_e,l.CullFaceMode.disabled,yt,Z.id,Rt,Ut,Bt)}function be(U,f,k){if(!f.needsDEMTextureUpload)return;const Z=U.context,ue=Z.gl;Z.pixelStoreUnpackPremultiplyAlpha.set(!1),f.demTexture=f.demTexture||U.getTileTexture(k.stride);const he=k.getPixels();f.demTexture?f.demTexture.update(he,{premultiply:!1}):f.demTexture=new l.Texture(Z,he,ue.RGBA,{premultiply:!1}),f.needsDEMTextureUpload=!1}function Re(U,f,k,Z,ue,he){const _e=U.context,Ce=_e.gl;if(!f.dem)return;const Xe=f.dem;if(_e.activeTexture.set(Ce.TEXTURE1),be(U,f,Xe),!f.demTexture)return;f.demTexture.bind(Ce.NEAREST,Ce.CLAMP_TO_EDGE);const nt=Xe.dim;_e.activeTexture.set(Ce.TEXTURE0);let lt=f.fbo;if(!lt){const Bt=new l.Texture(_e,{width:nt,height:nt,data:null},Ce.RGBA);Bt.bind(Ce.LINEAR,Ce.CLAMP_TO_EDGE),lt=f.fbo=_e.createFramebuffer(nt,nt,!0),lt.colorAttachment.set(Bt.texture)}_e.bindFramebuffer.set(lt.framebuffer),_e.viewport.set([0,0,nt,nt]);const{tileBoundsBuffer:yt,tileBoundsIndexBuffer:Rt,tileBoundsSegments:Ut}=U.getMercatorTileBoundsBuffers();U.useProgram("hillshadePrepare").draw(_e,Ce.TRIANGLES,Z,ue,he,l.CullFaceMode.disabled,((Bt,It)=>{const vn=It.stride,tn=l.create();return l.ortho(tn,0,l.EXTENT,-l.EXTENT,0,0,1),l.translate(tn,tn,[0,-l.EXTENT,0]),{u_matrix:tn,u_image:1,u_dimension:[vn,vn],u_zoom:Bt.overscaledZ,u_unpack:It.unpackVector}})(f.tileID,Xe),k.id,yt,Rt,Ut),f.needsHillshadePrepare=!1}const Ge=(U,f)=>({u_matrix:new l.UniformMatrix4f(U,f.u_matrix),u_image0:new l.Uniform1i(U,f.u_image0),u_skirt_height:new l.Uniform1f(U,f.u_skirt_height)}),rt=(U,f)=>({u_matrix:U,u_image0:0,u_skirt_height:f}),Dt=(U,f,k,Z,ue,he)=>({u_proj_matrix:Float32Array.from(U),u_globe_matrix:f,u_merc_matrix:k,u_zoom_transition:Z,u_merc_center:ue,u_image0:0,u_grid_matrix:he?Float32Array.from(he):new Float32Array(9)});function Mt(U,f){return U!=null&&f!=null&&!(!U.hasData()||!f.hasData())&&U.demTexture!=null&&f.demTexture!=null&&U.tileID.key!==f.tileID.key}const Yt=new class{constructor(){this.operations={}}newMorphing(U,f,k,Z,ue){if(U in this.operations){const he=this.operations[U];he.to.tileID.key!==k.tileID.key&&(he.queued=k)}else this.operations[U]={startTime:Z,phase:0,duration:ue,from:f,to:k,queued:null}}getMorphValuesForProxy(U){if(!(U in this.operations))return null;const f=this.operations[U];return{from:f.from,to:f.to,phase:f.phase}}update(U){for(const f in this.operations){const k=this.operations[f];for(k.phase=(U-k.startTime)/k.duration;k.phase>=1||!this._validOp(k);)if(!this._nextOp(k,U)){delete this.operations[f];break}}}_nextOp(U,f){return!!U.queued&&(U.from=U.to,U.to=U.queued,U.queued=null,U.phase=0,U.startTime=f,!0)}_validOp(U){return U.from.hasData()&&U.to.hasData()}},Xn={0:null,1:"TERRAIN_VERTEX_MORPHING",2:"TERRAIN_WIREFRAME"};function Sn(U,f){const k=1<<U.z;return!f&&(U.x===0||U.x===k-1)||U.y===0||U.y===k-1}const Gn=U=>({u_matrix:U});function Or(U,f,k,Z,ue){if(ue>0){const he=l.exported.now(),_e=(he-U.timeAdded)/ue,Ce=f?(he-f.timeAdded)/ue:-1,Xe=k.getSource(),nt=Z.coveringZoomLevel({tileSize:Xe.tileSize,roundZoom:Xe.roundZoom}),lt=!f||Math.abs(f.tileID.overscaledZ-nt)>Math.abs(U.tileID.overscaledZ-nt),yt=lt&&U.refreshedUponExpiration?1:l.clamp(lt?_e:1-Ce,0,1);return U.refreshedUponExpiration&&_e>=1&&(U.refreshedUponExpiration=!1),f?{opacity:1,mix:1-yt}:{opacity:yt,mix:0}}return{opacity:1,mix:0}}const ki=2*l.mercatorZfromAltitude(1,0)*l.GLOBE_RADIUS*Math.PI;class Ia extends l.SourceCache{constructor(f){const k={type:"raster-dem",maxzoom:f.transform.maxZoom},Z=new De(Li(),null),ue=we("mock-dem",k,Z,f.style);super("mock-dem",ue,!1),ue.setEventedParent(this),this._sourceLoaded=!0}_loadTile(f,k){f.state="loaded",k(null)}}class ma extends l.SourceCache{constructor(f){const k=we("proxy",{type:"geojson",maxzoom:f.transform.maxZoom},new De(Li(),null),f.style);super("proxy",k,!1),k.setEventedParent(this),this.map=this.getSource().map=f,this.used=this._sourceLoaded=!0,this.renderCache=[],this.renderCachePool=[],this.proxyCachedFBO={}}update(f,k,Z){if(f.freezeTileCoverage)return;this.transform=f;const ue=f.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}).reduce((he,_e)=>{if(he[_e.key]="",!this._tiles[_e.key]){const Ce=new l.Tile(_e,this._source.tileSize*_e.overscaleFactor(),f.tileZoom);Ce.state="loaded",this._tiles[_e.key]=Ce}return he},{});for(const he in this._tiles)he in ue||(this.freeFBO(he),this._tiles[he].unloadVectorData(),delete this._tiles[he])}freeFBO(f){const k=this.proxyCachedFBO[f];if(k!==void 0){const Z=Object.values(k);this.renderCachePool.push(...Z),delete this.proxyCachedFBO[f]}}deallocRenderCache(){this.renderCache.forEach(f=>f.fb.destroy()),this.renderCache=[],this.renderCachePool=[],this.proxyCachedFBO={}}}class na extends l.OverscaledTileID{constructor(f,k,Z){super(f.overscaledZ,f.wrap,f.canonical.z,f.canonical.x,f.canonical.y),this.proxyTileKey=k,this.projMatrix=Z}}class Ya extends l.Elevation{constructor(f,k){super(),this.painter=f,this.terrainTileForTile={},this.prevTerrainTileForTile={};const[Z,ue,he]=function(Xe){const nt=new l.StructArrayLayout4i8,lt=new l.StructArrayLayout3ui6,yt=131;nt.reserve(17161),lt.reserve(33800);const Rt=l.EXTENT/128,Ut=l.EXTENT+Rt/2,Bt=Ut+Rt;for(let vn=-Rt;vn<Bt;vn+=Rt)for(let tn=-Rt;tn<Bt;tn+=Rt){const cn=tn<0||tn>Ut||vn<0||vn>Ut?24575:0,pn=l.clamp(Math.round(tn),0,l.EXTENT),Cn=l.clamp(Math.round(vn),0,l.EXTENT);nt.emplaceBack(pn+cn,Cn,pn,Cn)}const It=(vn,tn)=>{const cn=tn*yt+vn;lt.emplaceBack(cn+1,cn,cn+yt),lt.emplaceBack(cn+yt,cn+yt+1,cn+1)};for(let vn=1;vn<129;vn++)for(let tn=1;tn<129;tn++)It(tn,vn);return[0,129].forEach(vn=>{for(let tn=0;tn<130;tn++)It(tn,vn),It(vn,tn)}),[nt,lt,32768]}(),_e=f.context;this.gridBuffer=_e.createVertexBuffer(Z,l.boundsAttributes.members),this.gridIndexBuffer=_e.createIndexBuffer(ue),this.gridSegments=l.SegmentVector.simpleSegment(0,0,Z.length,ue.length),this.gridNoSkirtSegments=l.SegmentVector.simpleSegment(0,0,Z.length,he),this.proxyCoords=[],this.proxiedCoords={},this._visibleDemTiles=[],this._drapedRenderBatches=[],this._sourceTilesOverlap={},this.proxySourceCache=new ma(k.map),this.orthoMatrix=l.create(),l.ortho(this.orthoMatrix,0,l.EXTENT,0,l.EXTENT,0,1);const Ce=_e.gl;this._overlapStencilMode=new l.StencilMode({func:Ce.GEQUAL,mask:255},0,255,Ce.KEEP,Ce.KEEP,Ce.REPLACE),this._previousZoom=f.transform.zoom,this.pool=[],this._findCoveringTileCache={},this._tilesDirty={},this.style=k,this._useVertexMorphing=!0,this._exaggeration=1,this._mockSourceCache=new Ia(k.map)}set style(f){f.on("data",this._onStyleDataEvent.bind(this)),f.on("neworder",this._checkRenderCacheEfficiency.bind(this)),this._style=f,this._checkRenderCacheEfficiency()}update(f,k,Z){if(f&&f.terrain){this._style!==f&&(this.style=f),this.enabled=!0;const ue=f.terrain.properties;this.sourceCache=f.terrain.drapeRenderMode===0?this._mockSourceCache:f._getSourceCache(ue.get("source")),this._exaggeration=ue.get("exaggeration");const he=()=>{this.sourceCache.used&&l.warnOnce(`Raster DEM source '${this.sourceCache.id}' is used both for terrain and as layer source.
  4430. This leads to lower resolution of hillshade. For full hillshade resolution but higher memory consumption, define another raster DEM source.`);const _e=this.getScaledDemTileSize();this.sourceCache.update(k,_e,!0),this.resetTileLookupCache(this.sourceCache.id)};this.sourceCache.usedForTerrain||(this.resetTileLookupCache(this.sourceCache.id),this.sourceCache.usedForTerrain=!0,he(),this._initializing=!0),he(),k.updateElevation(!Z),this.resetTileLookupCache(this.proxySourceCache.id),this.proxySourceCache.update(k),this._emptyDEMTextureDirty=!0}else this._disable()}resetTileLookupCache(f){this._findCoveringTileCache[f]={}}getScaledDemTileSize(){return this.sourceCache.getSource().tileSize/128*this.proxySourceCache.getSource().tileSize}_checkRenderCacheEfficiency(){const f=this.renderCacheEfficiency(this._style);this._style.map._optimizeForTerrain||f.efficiency!==100&&l.warnOnce(`Terrain render cache efficiency is not optimal (${f.efficiency}%) and performance
  4431. may be affected negatively, consider placing all background, fill and line layers before layer
  4432. with id '${f.firstUndrapedLayer}' or create a map using optimizeForTerrain: true option.`)}_onStyleDataEvent(f){f.coord&&f.dataType==="source"?this._clearRenderCacheForTile(f.sourceCacheId,f.coord):f.dataType==="style"&&(this._invalidateRenderCache=!0)}_disable(){if(this.enabled&&(this.enabled=!1,this._sharedDepthStencil=void 0,this.proxySourceCache.deallocRenderCache(),this._style))for(const f in this._style._sourceCaches)this._style._sourceCaches[f].usedForTerrain=!1}destroy(){this._disable(),this._emptyDEMTexture&&this._emptyDEMTexture.destroy(),this._emptyDepthBufferTexture&&this._emptyDepthBufferTexture.destroy(),this.pool.forEach(f=>f.fb.destroy()),this.pool=[],this._depthFBO&&(this._depthFBO.destroy(),this._depthFBO=void 0,this._depthTexture=void 0)}_source(){return this.enabled?this.sourceCache:null}exaggeration(){return this._exaggeration}get visibleDemTiles(){return this._visibleDemTiles}get drapeBufferSize(){const f=2*this.proxySourceCache.getSource().tileSize;return[f,f]}set useVertexMorphing(f){this._useVertexMorphing=f}updateTileBinding(f){if(!this.enabled)return;this.prevTerrainTileForTile=this.terrainTileForTile;const k=this.proxySourceCache,Z=this.painter.transform;this._initializing&&(this._initializing=Z._centerAltitude===0&&this.getAtPointOrZero(l.MercatorCoordinate.fromLngLat(Z.center),-1)===-1,this._emptyDEMTextureDirty=!this._initializing);const ue=this.proxyCoords=k.getIds().map(Xe=>{const nt=k.getTileByID(Xe).tileID;return nt.projMatrix=Z.calculateProjMatrix(nt.toUnwrapped()),nt});(function(Xe,nt){const lt=nt.transform.pointCoordinate(nt.transform.getCameraPoint()),yt=new l.pointGeometry(lt.x,lt.y);Xe.sort((Rt,Ut)=>{if(Ut.overscaledZ-Rt.overscaledZ)return Ut.overscaledZ-Rt.overscaledZ;const Bt=new l.pointGeometry(Rt.canonical.x+(1<<Rt.canonical.z)*Rt.wrap,Rt.canonical.y),It=new l.pointGeometry(Ut.canonical.x+(1<<Ut.canonical.z)*Ut.wrap,Ut.canonical.y),vn=yt.mult(1<<Rt.canonical.z);return vn.x-=.5,vn.y-=.5,vn.distSqr(Bt)-vn.distSqr(It)})})(ue,this.painter),this._previousZoom=Z.zoom;const he=this.proxyToSource||{};this.proxyToSource={},ue.forEach(Xe=>{this.proxyToSource[Xe.key]={}}),this.terrainTileForTile={};const _e=this._style._sourceCaches;for(const Xe in _e){const nt=_e[Xe];if(!nt.used||(nt!==this.sourceCache&&this.resetTileLookupCache(nt.id),this._setupProxiedCoordsForOrtho(nt,f[Xe],he),nt.usedForTerrain))continue;const lt=f[Xe];nt.getSource().reparseOverscaled&&this._assignTerrainTiles(lt)}this.proxiedCoords[k.id]=ue.map(Xe=>new na(Xe,Xe.key,this.orthoMatrix)),this._assignTerrainTiles(ue),this._prepareDEMTextures(),this._setupDrapedRenderBatches(),this._initFBOPool(),this._setupRenderCache(he),this.renderingToTexture=!1,this._updateTimestamp=l.exported.now();const Ce={};this._visibleDemTiles=[];for(const Xe of this.proxyCoords){const nt=this.terrainTileForTile[Xe.key];if(!nt)continue;const lt=nt.tileID.key;lt in Ce||(this._visibleDemTiles.push(nt),Ce[lt]=lt)}}_assignTerrainTiles(f){this._initializing||f.forEach(k=>{if(this.terrainTileForTile[k.key])return;const Z=this._findTileCoveringTileID(k,this.sourceCache);Z&&(this.terrainTileForTile[k.key]=Z)})}_prepareDEMTextures(){const f=this.painter.context,k=f.gl;for(const Z in this.terrainTileForTile){const ue=this.terrainTileForTile[Z],he=ue.dem;!he||ue.demTexture&&!ue.needsDEMTextureUpload||(f.activeTexture.set(k.TEXTURE1),be(this.painter,ue,he))}}_prepareDemTileUniforms(f,k,Z,ue){if(!k||k.demTexture==null)return!1;const he=f.tileID.canonical,_e=Math.pow(2,k.tileID.canonical.z-he.z),Ce=ue||"";return Z[`u_dem_tl${Ce}`]=[he.x*_e%1,he.y*_e%1],Z[`u_dem_scale${Ce}`]=_e,!0}get emptyDEMTexture(){return!this._emptyDEMTextureDirty&&this._emptyDEMTexture?this._emptyDEMTexture:this._updateEmptyDEMTexture()}get emptyDepthBufferTexture(){const f=this.painter.context,k=f.gl;if(!this._emptyDepthBufferTexture){const Z=new l.RGBAImage({width:1,height:1},Uint8Array.of(255,255,255,255));this._emptyDepthBufferTexture=new l.Texture(f,Z,k.RGBA,{premultiply:!1})}return this._emptyDepthBufferTexture}_getLoadedAreaMinimum(){let f=0;const k=this._visibleDemTiles.reduce((Z,ue)=>{if(!ue.dem)return Z;const he=ue.dem.tree.minimums[0];return he>0&&f++,Z+he},0);return f?k/f:0}_updateEmptyDEMTexture(){const f=this.painter.context,k=f.gl;f.activeTexture.set(k.TEXTURE2);const Z=this._getLoadedAreaMinimum(),ue=new l.RGBAImage({width:1,height:1},new Uint8Array(l.DEMData.pack(Z,this.sourceCache.getSource().encoding)));this._emptyDEMTextureDirty=!1;let he=this._emptyDEMTexture;return he?he.update(ue,{premultiply:!1}):he=this._emptyDEMTexture=new l.Texture(f,ue,k.RGBA,{premultiply:!1}),he}setupElevationDraw(f,k,Z){const ue=this.painter.context,he=ue.gl,_e=(Ce=this.sourceCache.getSource().encoding,{u_dem:2,u_dem_prev:4,u_dem_unpack:l.DEMData.getUnpackVector(Ce),u_dem_tl:[0,0],u_dem_tl_prev:[0,0],u_dem_scale:0,u_dem_scale_prev:0,u_dem_size:0,u_dem_lerp:1,u_depth:3,u_depth_size_inv:[0,0],u_exaggeration:0,u_tile_tl_up:[0,0,1],u_tile_tr_up:[0,0,1],u_tile_br_up:[0,0,1],u_tile_bl_up:[0,0,1],u_tile_up_scale:1});var Ce;_e.u_dem_size=this.sourceCache.getSource().tileSize,_e.u_exaggeration=this.exaggeration();const Xe=this.painter.transform,nt=Xe.projection,lt=f.tileID.canonical;_e.u_tile_tl_up=nt.upVector(lt,0,0),_e.u_tile_tr_up=nt.upVector(lt,l.EXTENT,0),_e.u_tile_br_up=nt.upVector(lt,l.EXTENT,l.EXTENT),_e.u_tile_bl_up=nt.upVector(lt,0,l.EXTENT),_e.u_tile_up_scale=Z&&Z.useDenormalizedUpVectorScale?ki:nt.upVectorScale(lt,Xe.center.lat,Xe.worldSize).metersToTile;let yt=null,Rt=null,Ut=1;if(Z&&Z.morphing&&this._useVertexMorphing){const Bt=Z.morphing.srcDemTile,It=Z.morphing.dstDemTile;Ut=Z.morphing.phase,Bt&&It&&(this._prepareDemTileUniforms(f,Bt,_e,"_prev")&&(Rt=Bt),this._prepareDemTileUniforms(f,It,_e)&&(yt=It))}if(Rt&&yt?(ue.activeTexture.set(he.TEXTURE2),yt.demTexture.bind(he.NEAREST,he.CLAMP_TO_EDGE,he.NEAREST),ue.activeTexture.set(he.TEXTURE4),Rt.demTexture.bind(he.NEAREST,he.CLAMP_TO_EDGE,he.NEAREST),_e.u_dem_lerp=Ut):(yt=this.terrainTileForTile[f.tileID.key],ue.activeTexture.set(he.TEXTURE2),(this._prepareDemTileUniforms(f,yt,_e)?yt.demTexture:this.emptyDEMTexture).bind(he.NEAREST,he.CLAMP_TO_EDGE)),ue.activeTexture.set(he.TEXTURE3),Z&&Z.useDepthForOcclusion?(this._depthTexture&&this._depthTexture.bind(he.NEAREST,he.CLAMP_TO_EDGE),this._depthFBO&&(_e.u_depth_size_inv=[1/this._depthFBO.width,1/this._depthFBO.height])):(this.emptyDepthBufferTexture.bind(he.NEAREST,he.CLAMP_TO_EDGE),_e.u_depth_size_inv=[1,1]),Z&&Z.useMeterToDem&&yt){const Bt=(1<<yt.tileID.canonical.z)*l.mercatorZfromAltitude(1,this.painter.transform.center.lat)*this.sourceCache.getSource().tileSize;_e.u_meter_to_dem=Bt}Z&&Z.labelPlaneMatrixInv&&(_e.u_label_plane_matrix_inv=Z.labelPlaneMatrixInv),k.setTerrainUniformValues(ue,_e)}renderToBackBuffer(f){const k=this.painter,Z=this.painter.context;f.length!==0&&(Z.bindFramebuffer.set(null),Z.viewport.set([0,0,k.width,k.height]),this.renderingToTexture=!1,function(ue,he,_e,Ce,Xe){if(ue.transform.projection.name==="globe")(function(nt,lt,yt,Rt,Ut){const Bt=nt.context,It=Bt.gl;let vn,tn;const cn=nt.options.showTerrainWireframe?2:0,pn=(yr,Qr)=>{if(tn===yr)return;const ir=[Xn[yr],"PROJECTION_GLOBE_VIEW"];Qr&&ir.push(Xn[cn]),vn=nt.useProgram("globeRaster",null,ir),tn=yr},Cn=nt.colorModeForRenderPass(),un=new l.DepthMode(It.LEQUAL,l.DepthMode.ReadWrite,nt.depthRangeFor3D);Yt.update(Ut);const kn=nt.transform,nr=l.calculateGlobeMercatorMatrix(kn),dr=[l.mercatorXfromLng(kn.center.lng),l.mercatorYfromLat(kn.center.lat)],xr=nt.globeSharedBuffers;if((cn?[!1,!0]:[!1]).forEach(yr=>{tn=-1;const Qr=yr?It.LINES:It.TRIANGLES;for(const ir of Rt){const gr=yt.getTile(ir),Yr=l.StencilMode.disabled,Oi=lt.prevTerrainTileForTile[ir.key],br=lt.terrainTileForTile[ir.key];Mt(Oi,br)&&Yt.newMorphing(ir.key,Oi,br,Ut,250),Bt.activeTexture.set(It.TEXTURE0),gr.texture.bind(It.LINEAR,It.CLAMP_TO_EDGE);const Ii=Yt.getMorphValuesForProxy(ir.key),ea=Ii?1:0,ui={useDenormalizedUpVectorScale:!0};Ii&&l.extend$1(ui,{morphing:{srcDemTile:Ii.from,dstDemTile:Ii.to,phase:l.easeCubicInOut(Ii.phase)}});const Fi=Float32Array.from(kn.globeMatrix),pa=l.globeTileLatLngCorners(ir.canonical),Ja=l.getGridMatrix(ir.canonical,pa),ji=Dt(kn.projMatrix,Fi,nr,l.globeToMercatorTransition(kn.zoom),dr,Ja);if(pn(ea,yr),lt.setupElevationDraw(gr,vn,ui),nt.prepareDrawProgram(Bt,vn,ir.toUnwrapped()),xr){const[Xi,Mo,Is]=yr?xr.getWirefameBuffers(nt.context):xr.getGridBuffers();vn.draw(Bt,Qr,un,Yr,Cn,l.CullFaceMode.backCCW,ji,"globe_raster",Xi,Mo,Is)}}}),xr){vn=nt.useProgram("globeRaster",null,["GLOBE_POLES","PROJECTION_GLOBE_VIEW"]);for(const yr of Rt){const{x:Qr,y:ir,z:gr}=yr.canonical,Yr=ir===0,Oi=ir===(1<<gr)-1,[br,Ii,ea,ui]=xr.getPoleBuffers(gr);if(ui&&(Yr||Oi)){const Fi=yt.getTile(yr);Bt.activeTexture.set(It.TEXTURE0),Fi.texture.bind(It.LINEAR,It.CLAMP_TO_EDGE);let pa=l.globePoleMatrixForTile(gr,Qr,kn);const Ja=(ji,Xi)=>ji.draw(Bt,It.TRIANGLES,un,l.StencilMode.disabled,Cn,l.CullFaceMode.disabled,Dt(kn.projMatrix,pa,pa,0,dr),"globe_pole_raster",Xi,ea,ui);lt.setupElevationDraw(Fi,vn,{}),nt.prepareDrawProgram(Bt,vn,yr.toUnwrapped()),Yr&&Ja(vn,br),Oi&&(pa=l.scale(l.create(),pa,[1,-1,1]),Ja(vn,Ii))}}}})(ue,he,_e,Ce,Xe);else{const nt=ue.context,lt=nt.gl;let yt,Rt;const Ut=ue.options.showTerrainWireframe?2:0,Bt=(pn,Cn)=>{if(Rt===pn)return;const un=[Xn[pn]];Cn&&un.push(Xn[Ut]),yt=ue.useProgram("terrainRaster",null,un),Rt=pn},It=ue.colorModeForRenderPass(),vn=new l.DepthMode(lt.LEQUAL,l.DepthMode.ReadWrite,ue.depthRangeFor3D);Yt.update(Xe);const tn=ue.transform,cn=6*Math.pow(1.5,22-tn.zoom)*he.exaggeration();(Ut?[!1,!0]:[!1]).forEach(pn=>{Rt=-1;const Cn=pn?lt.LINES:lt.TRIANGLES,[un,kn]=pn?he.getWirefameBuffer():[he.gridIndexBuffer,he.gridSegments];for(const nr of Ce){const dr=_e.getTile(nr),xr=l.StencilMode.disabled,yr=he.prevTerrainTileForTile[nr.key],Qr=he.terrainTileForTile[nr.key];Mt(yr,Qr)&&Yt.newMorphing(nr.key,yr,Qr,Xe,250),nt.activeTexture.set(lt.TEXTURE0),dr.texture.bind(lt.LINEAR,lt.CLAMP_TO_EDGE,lt.LINEAR_MIPMAP_NEAREST);const ir=Yt.getMorphValuesForProxy(nr.key),gr=ir?1:0;let Yr;ir&&(Yr={morphing:{srcDemTile:ir.from,dstDemTile:ir.to,phase:l.easeCubicInOut(ir.phase)}});const Oi=rt(nr.projMatrix,Sn(nr.canonical,tn.renderWorldCopies)?cn/10:cn);Bt(gr,pn),he.setupElevationDraw(dr,yt,Yr),ue.prepareDrawProgram(nt,yt,nr.toUnwrapped()),yt.draw(nt,Cn,vn,xr,It,l.CullFaceMode.backCCW,Oi,"terrain_raster",he.gridBuffer,un,kn)}})}}(k,this,this.proxySourceCache,f,this._updateTimestamp),this.renderingToTexture=!0,f.splice(0,f.length))}renderBatch(f){if(this._drapedRenderBatches.length===0)return f+1;this.renderingToTexture=!0;const k=this.painter,Z=this.painter.context,ue=this.proxySourceCache,he=this.proxiedCoords[ue.id],_e=this._drapedRenderBatches.shift(),Ce=[],Xe=k.style.order;let nt=0;for(const lt of he){const yt=ue.getTileByID(lt.proxyTileKey),Rt=ue.proxyCachedFBO[lt.key]?ue.proxyCachedFBO[lt.key][f]:void 0,Ut=Rt!==void 0?ue.renderCache[Rt]:this.pool[nt++],Bt=Rt!==void 0;if(yt.texture=Ut.tex,Bt&&!Ut.dirty){Ce.push(yt.tileID);continue}let It;Z.bindFramebuffer.set(Ut.fb.framebuffer),this.renderedToTile=!1,Ut.dirty&&(Z.clear({color:l.Color.transparent,stencil:0}),Ut.dirty=!1);for(let vn=_e.start;vn<=_e.end;++vn){const tn=k.style._layers[Xe[vn]];if(tn.isHidden(k.transform.zoom))continue;const cn=k.style._getLayerSourceCache(tn),pn=cn?this.proxyToSource[lt.key][cn.id]:[lt];if(!pn)continue;const Cn=pn;Z.viewport.set([0,0,Ut.fb.width,Ut.fb.height]),It!==(cn?cn.id:null)&&(this._setupStencil(Ut,pn,tn,cn),It=cn?cn.id:null),k.renderLayer(k,cn,tn,Cn)}this.renderedToTile?(Ut.dirty=!0,Ce.push(yt.tileID)):Bt||--nt,nt===5&&(nt=0,this.renderToBackBuffer(Ce))}return this.renderToBackBuffer(Ce),this.renderingToTexture=!1,Z.bindFramebuffer.set(null),Z.viewport.set([0,0,k.width,k.height]),_e.end+1}postRender(){}renderCacheEfficiency(f){const k=f.order.length;if(k===0)return{efficiency:100};let Z,ue=0,he=0,_e=!1;for(let Ce=0;Ce<k;++Ce){const Xe=f._layers[f.order[Ce]];this._style.isLayerDraped(Xe)?(_e&&++ue,++he):_e||(_e=!0,Z=Xe.id)}return he===0?{efficiency:100}:{efficiency:100*(1-ue/he),firstUndrapedLayer:Z}}getMinElevationBelowMSL(){let f=0;return this._visibleDemTiles.filter(k=>k.dem).forEach(k=>{f=Math.min(f,k.dem.tree.minimums[0])}),f===0?f:(f-30)*this._exaggeration}raycast(f,k,Z){if(!this._visibleDemTiles)return null;const ue=this._visibleDemTiles.filter(he=>he.dem).map(he=>{const _e=he.tileID,Ce=Math.pow(2,_e.overscaledZ),{x:Xe,y:nt}=_e.canonical,lt=Xe/Ce,yt=(Xe+1)/Ce,Rt=nt/Ce,Ut=(nt+1)/Ce;return{minx:lt,miny:Rt,maxx:yt,maxy:Ut,t:he.dem.tree.raycastRoot(lt,Rt,yt,Ut,f,k,Z),tile:he}});ue.sort((he,_e)=>(he.t!==null?he.t:Number.MAX_VALUE)-(_e.t!==null?_e.t:Number.MAX_VALUE));for(const he of ue){if(he.t==null)return null;const _e=he.tile.dem.tree.raycast(he.minx,he.miny,he.maxx,he.maxy,f,k,Z);if(_e!=null)return _e}return null}_createFBO(){const f=this.painter.context,k=f.gl,Z=this.drapeBufferSize;f.activeTexture.set(k.TEXTURE0);const ue=new l.Texture(f,{width:Z[0],height:Z[1],data:null},k.RGBA);ue.bind(k.LINEAR,k.CLAMP_TO_EDGE);const he=f.createFramebuffer(Z[0],Z[1],!1);return he.colorAttachment.set(ue.texture),he.depthAttachment=new Ca(f,he.framebuffer),this._sharedDepthStencil===void 0?(this._sharedDepthStencil=f.createRenderbuffer(f.gl.DEPTH_STENCIL,Z[0],Z[1]),this._stencilRef=0,he.depthAttachment.set(this._sharedDepthStencil),f.clear({stencil:0})):he.depthAttachment.set(this._sharedDepthStencil),f.extTextureFilterAnisotropic&&!f.extTextureFilterAnisotropicForceOff&&k.texParameterf(k.TEXTURE_2D,f.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,f.extTextureFilterAnisotropicMax),{fb:he,tex:ue,dirty:!1}}_initFBOPool(){for(;this.pool.length<Math.min(5,this.proxyCoords.length);)this.pool.push(this._createFBO())}_shouldDisableRenderCache(){if(this._style.light&&this._style.light.hasTransition())return!0;for(const f in this._style._sourceCaches)if(this._style._sourceCaches[f].hasTransition())return!0;return this._style.order.some(f=>{const k=this._style._layers[f],Z=k.isHidden(this.painter.transform.zoom),ue=k.getCrossfadeParameters(),he=!!ue&&ue.t!==1,_e=k.hasTransition();return k.type!=="custom"&&!Z&&(he||_e)})}_clearRasterFadeFromRenderCache(){let f=!1;for(const k in this._style._sourceCaches)if(this._style._sourceCaches[k]._source instanceof xt){f=!0;break}if(f)for(let k=0;k<this._style.order.length;++k){const Z=this._style._layers[this._style.order[k]],ue=Z.isHidden(this.painter.transform.zoom),he=this._style._getLayerSourceCache(Z);if(Z.type!=="raster"||ue||!he)continue;const _e=Z.paint.get("raster-fade-duration");for(const Ce of this.proxyCoords){const Xe=this.proxyToSource[Ce.key][he.id];if(Xe)for(const nt of Xe){const lt=Or(he.getTile(nt),he.findLoadedParent(nt,0),he,this.painter.transform,_e);(lt.opacity!==1||lt.mix!==0)&&this._clearRenderCacheForTile(he.id,nt)}}}}_setupDrapedRenderBatches(){const f=this._style.order,k=f.length;if(k===0)return;const Z=[];let ue,he=0,_e=this._style._layers[f[he]];for(;!this._style.isLayerDraped(_e)&&_e.isHidden(this.painter.transform.zoom)&&++he<k;)_e=this._style._layers[f[he]];for(;he<k;++he){const Ce=this._style._layers[f[he]];Ce.isHidden(this.painter.transform.zoom)||(this._style.isLayerDraped(Ce)?ue===void 0&&(ue=he):ue!==void 0&&(Z.push({start:ue,end:he-1}),ue=void 0))}ue!==void 0&&Z.push({start:ue,end:he-1}),this._drapedRenderBatches=Z}_setupRenderCache(f){const k=this.proxySourceCache;if(this._shouldDisableRenderCache()||this._invalidateRenderCache){if(this._invalidateRenderCache=!1,k.renderCache.length>k.renderCachePool.length){const _e=Object.values(k.proxyCachedFBO);k.proxyCachedFBO={};for(let Ce=0;Ce<_e.length;++Ce){const Xe=Object.values(_e[Ce]);k.renderCachePool.push(...Xe)}}return}this._clearRasterFadeFromRenderCache();const Z=this.proxyCoords,ue=this._tilesDirty;for(let _e=Z.length-1;_e>=0;_e--){const Ce=Z[_e];if(k.getTileByID(Ce.key),k.proxyCachedFBO[Ce.key]!==void 0){const Xe=f[Ce.key],nt=this.proxyToSource[Ce.key];let lt=0;for(const yt in nt){const Rt=nt[yt],Ut=Xe[yt];if(!Ut||Ut.length!==Rt.length||Rt.some((Bt,It)=>Bt!==Ut[It]||ue[yt]&&ue[yt].hasOwnProperty(Bt.key))){lt=-1;break}++lt}for(const yt in k.proxyCachedFBO[Ce.key])k.renderCache[k.proxyCachedFBO[Ce.key][yt]].dirty=lt<0||lt!==Object.values(Xe).length}}const he=[...this._drapedRenderBatches];he.sort((_e,Ce)=>Ce.end-Ce.start-(_e.end-_e.start));for(const _e of he)for(const Ce of Z){if(k.proxyCachedFBO[Ce.key])continue;let Xe=k.renderCachePool.pop();Xe===void 0&&k.renderCache.length<50&&(Xe=k.renderCache.length,k.renderCache.push(this._createFBO())),Xe!==void 0&&(k.proxyCachedFBO[Ce.key]={},k.proxyCachedFBO[Ce.key][_e.start]=Xe,k.renderCache[Xe].dirty=!0)}this._tilesDirty={}}_setupStencil(f,k,Z,ue){if(!ue||!this._sourceTilesOverlap[ue.id])return void(this._overlapStencilType&&(this._overlapStencilType=!1));const he=this.painter.context,_e=he.gl;if(k.length<=1)return void(this._overlapStencilType=!1);let Ce;if(Z.isTileClipped())Ce=k.length,this._overlapStencilMode.test={func:_e.EQUAL,mask:255},this._overlapStencilType="Clip";else{if(!(k[0].overscaledZ>k[k.length-1].overscaledZ))return void(this._overlapStencilType=!1);Ce=1,this._overlapStencilMode.test={func:_e.GREATER,mask:255},this._overlapStencilType="Mask"}this._stencilRef+Ce>255&&(he.clear({stencil:0}),this._stencilRef=0),this._stencilRef+=Ce,this._overlapStencilMode.ref=this._stencilRef,Z.isTileClipped()&&this._renderTileClippingMasks(k,this._overlapStencilMode.ref)}clipOrMaskOverlapStencilType(){return this._overlapStencilType==="Clip"||this._overlapStencilType==="Mask"}stencilModeForRTTOverlap(f){return this.renderingToTexture&&this._overlapStencilType?(this._overlapStencilType==="Clip"&&(this._overlapStencilMode.ref=this.painter._tileClippingMaskIDs.get(f.key)||0),this._overlapStencilMode):l.StencilMode.disabled}_renderTileClippingMasks(f,k){const Z=this.painter,ue=this.painter.context,he=ue.gl;Z._tileClippingMaskIDs.clear(),ue.setColorMode(l.ColorMode.disabled),ue.setDepthMode(l.DepthMode.disabled);const _e=Z.useProgram("clippingMask");for(const Ce of f){const Xe=--k;Z._tileClippingMaskIDs.set(Ce.key,Xe),_e.draw(ue,he.TRIANGLES,l.DepthMode.disabled,new l.StencilMode({func:he.ALWAYS,mask:0},Xe,255,he.KEEP,he.KEEP,he.REPLACE),l.ColorMode.disabled,l.CullFaceMode.disabled,Gn(Ce.projMatrix),"$clipping",Z.tileExtentBuffer,Z.quadTriangleIndexBuffer,Z.tileExtentSegments)}}pointCoordinate(f){const k=this.painter.transform;if(f.x<0||f.x>k.width||f.y<0||f.y>k.height)return null;const Z=[f.x,f.y,1,1];l.transformMat4$1(Z,Z,k.pixelMatrixInverse),l.scale$1(Z,Z,1/Z[3]),Z[0]/=k.worldSize,Z[1]/=k.worldSize;const ue=k._camera.position,he=l.mercatorZfromAltitude(1,k.center.lat),_e=[ue[0],ue[1],ue[2]/he,0],Ce=l.subtract([],Z.slice(0,3),_e);l.normalize(Ce,Ce);const Xe=this.raycast(_e,Ce,this._exaggeration);return Xe!==null&&Xe?(l.scaleAndAdd(_e,_e,Ce,Xe),_e[3]=_e[2],_e[2]*=he,_e):null}drawDepth(){const f=this.painter,k=f.context,Z=this.proxySourceCache,ue=Math.ceil(f.width),he=Math.ceil(f.height);if(!this._depthFBO||this._depthFBO.width===ue&&this._depthFBO.height===he||(this._depthFBO.destroy(),this._depthFBO=void 0,this._depthTexture=void 0),!this._depthFBO){const _e=k.gl,Ce=k.createFramebuffer(ue,he,!0);k.activeTexture.set(_e.TEXTURE0);const Xe=new l.Texture(k,{width:ue,height:he,data:null},_e.RGBA);Xe.bind(_e.NEAREST,_e.CLAMP_TO_EDGE),Ce.colorAttachment.set(Xe.texture);const nt=k.createRenderbuffer(k.gl.DEPTH_COMPONENT16,ue,he);Ce.depthAttachment.set(nt),this._depthFBO=Ce,this._depthTexture=Xe}k.bindFramebuffer.set(this._depthFBO.framebuffer),k.viewport.set([0,0,ue,he]),function(_e,Ce,Xe,nt){if(_e.transform.projection.name==="globe")return;const lt=_e.context,yt=lt.gl;lt.clear({depth:1});const Rt=_e.useProgram("terrainDepth"),Ut=new l.DepthMode(yt.LESS,l.DepthMode.ReadWrite,_e.depthRangeFor3D);for(const Bt of nt){const It=Xe.getTile(Bt),vn=rt(Bt.projMatrix,0);Ce.setupElevationDraw(It,Rt),Rt.draw(lt,yt.TRIANGLES,Ut,l.StencilMode.disabled,l.ColorMode.unblended,l.CullFaceMode.backCCW,vn,"terrain_depth",Ce.gridBuffer,Ce.gridIndexBuffer,Ce.gridNoSkirtSegments)}}(f,this,Z,this.proxyCoords)}_setupProxiedCoordsForOrtho(f,k,Z){if(f.getSource()instanceof mn)return this._setupProxiedCoordsForImageSource(f,k,Z);this._findCoveringTileCache[f.id]=this._findCoveringTileCache[f.id]||{};const ue=this.proxiedCoords[f.id]=[],he=this.proxyCoords;for(let Ce=0;Ce<he.length;Ce++){const Xe=he[Ce],nt=this._findTileCoveringTileID(Xe,f);if(nt){const lt=this._createProxiedId(Xe,nt,Z[Xe.key]&&Z[Xe.key][f.id]);ue.push(lt),this.proxyToSource[Xe.key][f.id]=[lt]}}let _e=!1;for(let Ce=0;Ce<k.length;Ce++){const Xe=f.getTile(k[Ce]);if(!Xe||!Xe.hasData())continue;const nt=this._findTileCoveringTileID(Xe.tileID,this.proxySourceCache);if(nt&&nt.tileID.canonical.z!==Xe.tileID.canonical.z){const lt=this.proxyToSource[nt.tileID.key][f.id],yt=this._createProxiedId(nt.tileID,Xe,Z[nt.tileID.key]&&Z[nt.tileID.key][f.id]);lt?lt.splice(lt.length-1,0,yt):this.proxyToSource[nt.tileID.key][f.id]=[yt],ue.push(yt),_e=!0}}this._sourceTilesOverlap[f.id]=_e}_setupProxiedCoordsForImageSource(f,k,Z){if(!f.getSource().loaded())return;const ue=this.proxiedCoords[f.id]=[],he=this.proxyCoords,_e=f.getSource(),Ce=new l.pointGeometry(_e.tileID.x,_e.tileID.y)._div(1<<_e.tileID.z),Xe=_e.coordinates.map(l.MercatorCoordinate.fromLngLat).reduce((lt,yt)=>(lt.min.x=Math.min(lt.min.x,yt.x-Ce.x),lt.min.y=Math.min(lt.min.y,yt.y-Ce.y),lt.max.x=Math.max(lt.max.x,yt.x-Ce.x),lt.max.y=Math.max(lt.max.y,yt.y-Ce.y),lt),{min:new l.pointGeometry(Number.MAX_VALUE,Number.MAX_VALUE),max:new l.pointGeometry(-Number.MAX_VALUE,-Number.MAX_VALUE)}),nt=(lt,yt)=>{const Rt=lt.wrap+lt.canonical.x/(1<<lt.canonical.z),Ut=lt.canonical.y/(1<<lt.canonical.z),Bt=l.EXTENT/(1<<lt.canonical.z),It=yt.wrap+yt.canonical.x/(1<<yt.canonical.z),vn=yt.canonical.y/(1<<yt.canonical.z);return Rt+Bt<It+Xe.min.x||Rt>It+Xe.max.x||Ut+Bt<vn+Xe.min.y||Ut>vn+Xe.max.y};for(let lt=0;lt<he.length;lt++){const yt=he[lt];for(let Rt=0;Rt<k.length;Rt++){const Ut=f.getTile(k[Rt]);if(!Ut||!Ut.hasData()||nt(yt,Ut.tileID))continue;const Bt=this._createProxiedId(yt,Ut,Z[yt.key]&&Z[yt.key][f.id]),It=this.proxyToSource[yt.key][f.id];It?It.push(Bt):this.proxyToSource[yt.key][f.id]=[Bt],ue.push(Bt)}}}_createProxiedId(f,k,Z){let ue=this.orthoMatrix;if(Z){const he=Z.find(_e=>_e.key===k.tileID.key);if(he)return he}if(k.tileID.key!==f.key){const he=f.canonical.z-k.tileID.canonical.z;let _e,Ce,Xe;ue=l.create();const nt=k.tileID.wrap-f.wrap<<f.overscaledZ;he>0?(_e=l.EXTENT>>he,Ce=_e*((k.tileID.canonical.x<<he)-f.canonical.x+nt),Xe=_e*((k.tileID.canonical.y<<he)-f.canonical.y)):(_e=l.EXTENT<<-he,Ce=l.EXTENT*(k.tileID.canonical.x-(f.canonical.x+nt<<-he)),Xe=l.EXTENT*(k.tileID.canonical.y-(f.canonical.y<<-he))),l.ortho(ue,0,_e,0,_e,0,1),l.translate(ue,ue,[Ce,Xe,0])}return new na(k.tileID,f.key,ue)}_findTileCoveringTileID(f,k){let Z=k.getTile(f);if(Z&&Z.hasData())return Z;const ue=this._findCoveringTileCache[k.id],he=ue[f.key];if(Z=he?k.getTileByID(he):null,Z&&Z.hasData()||he===null)return Z;let _e=Z?Z.tileID:f,Ce=_e.overscaledZ;const Xe=k.getSource().minzoom,nt=[];if(!he){const yt=k.getSource().maxzoom;if(f.canonical.z>=yt){const Rt=f.canonical.z-yt;k.getSource().reparseOverscaled?(Ce=Math.max(f.canonical.z+2,k.transform.tileZoom),_e=new l.OverscaledTileID(Ce,f.wrap,yt,f.canonical.x>>Rt,f.canonical.y>>Rt)):Rt!==0&&(Ce=yt,_e=new l.OverscaledTileID(Ce,f.wrap,yt,f.canonical.x>>Rt,f.canonical.y>>Rt))}_e.key!==f.key&&(nt.push(_e.key),Z=k.getTile(_e))}const lt=yt=>{nt.forEach(Rt=>{ue[Rt]=yt}),nt.length=0};for(Ce-=1;Ce>=Xe&&(!Z||!Z.hasData());Ce--){Z&&lt(Z.tileID.key);const yt=_e.calculateScaledKey(Ce);if(Z=k.getTileByID(yt),Z&&Z.hasData())break;const Rt=ue[yt];if(Rt===null)break;Rt===void 0?nt.push(yt):Z=k.getTileByID(Rt)}return lt(Z?Z.tileID.key:null),Z&&Z.hasData()?Z:null}findDEMTileFor(f){return this.enabled?this._findTileCoveringTileID(f,this.sourceCache):null}prepareDrawTile(){this.renderedToTile=!0}_clearRenderCacheForTile(f,k){let Z=this._tilesDirty[f];Z||(Z=this._tilesDirty[f]={}),Z[k.key]=!0}getWirefameBuffer(){if(!this.wireframeSegments){const f=function(k){let Z=0;const ue=new l.StructArrayLayout2ui4,he=131;for(let _e=1;_e<129;_e++){for(let Ce=1;Ce<129;Ce++)Z=_e*he+Ce,ue.emplaceBack(Z,Z+1),ue.emplaceBack(Z,Z+he),ue.emplaceBack(Z+1,Z+he),_e===128&&ue.emplaceBack(Z+he,Z+he+1);ue.emplaceBack(Z+1,Z+1+he)}return ue}();this.wireframeIndexBuffer=this.painter.context.createIndexBuffer(f),this.wireframeSegments=l.SegmentVector.simpleSegment(0,0,this.gridBuffer.length,f.length)}return[this.wireframeIndexBuffer,this.wireframeSegments]}}function Da(U){const f=[];for(let k=0;k<U.length;k++){if(U[k]===null)continue;const Z=U[k].split(" ");f.push(Z.pop())}return f}class Yi{static cacheKey(f,k,Z){let ue=`${f}${Z?Z.cacheKey:""}`;for(const he of k)ue+=`/${he}`;return ue}constructor(f,k,Z,ue,he,_e){const Ce=f.gl;this.program=Ce.createProgram();const Xe=Da(Z.staticAttributes),nt=ue?ue.getBinderAttributes():[],lt=Xe.concat(nt),yt=Z.staticUniforms?Da(Z.staticUniforms):[],Rt=ue?ue.getBinderUniforms():[],Ut=yt.concat(Rt),Bt=[];for(const un of Ut)Bt.indexOf(un)<0&&Bt.push(un);let It=ue?ue.defines():[];It=It.concat(_e.map(un=>`#define ${un}`));const vn=It.concat(`
  4433. #ifdef GL_ES
  4434. precision mediump float;
  4435. #else
  4436. #if !defined(lowp)
  4437. #define lowp
  4438. #endif
  4439. #if !defined(mediump)
  4440. #define mediump
  4441. #endif
  4442. #if !defined(highp)
  4443. #define highp
  4444. #endif
  4445. #endif`,Me,de.fragmentSource,Ho.fragmentSource,Z.fragmentSource).join(`
  4446. `),tn=It.concat(`
  4447. #ifdef GL_ES
  4448. precision highp float;
  4449. #else
  4450. #if !defined(lowp)
  4451. #define lowp
  4452. #endif
  4453. #if !defined(mediump)
  4454. #define mediump
  4455. #endif
  4456. #if !defined(highp)
  4457. #define highp
  4458. #endif
  4459. #endif`,Me,de.vertexSource,Ho.vertexSource,$o.vertexSource,Z.vertexSource).join(`
  4460. `),cn=Ce.createShader(Ce.FRAGMENT_SHADER);if(Ce.isContextLost())return void(this.failedToCreate=!0);Ce.shaderSource(cn,vn),Ce.compileShader(cn),Ce.attachShader(this.program,cn);const pn=Ce.createShader(Ce.VERTEX_SHADER);if(Ce.isContextLost())return void(this.failedToCreate=!0);Ce.shaderSource(pn,tn),Ce.compileShader(pn),Ce.attachShader(this.program,pn),this.attributes={};const Cn={};this.numAttributes=lt.length;for(let un=0;un<this.numAttributes;un++)lt[un]&&(Ce.bindAttribLocation(this.program,un,lt[un]),this.attributes[lt[un]]=un);Ce.linkProgram(this.program),Ce.deleteShader(pn),Ce.deleteShader(cn);for(let un=0;un<Bt.length;un++){const kn=Bt[un];if(kn&&!Cn[kn]){const nr=Ce.getUniformLocation(this.program,kn);nr&&(Cn[kn]=nr)}}this.fixedUniforms=he(f,Cn),this.binderUniforms=ue?ue.getUniforms(f,Cn):[],_e.indexOf("TERRAIN")!==-1&&(this.terrainUniforms=((un,kn)=>({u_dem:new l.Uniform1i(un,kn.u_dem),u_dem_prev:new l.Uniform1i(un,kn.u_dem_prev),u_dem_unpack:new l.Uniform4f(un,kn.u_dem_unpack),u_dem_tl:new l.Uniform2f(un,kn.u_dem_tl),u_dem_scale:new l.Uniform1f(un,kn.u_dem_scale),u_dem_tl_prev:new l.Uniform2f(un,kn.u_dem_tl_prev),u_dem_scale_prev:new l.Uniform1f(un,kn.u_dem_scale_prev),u_dem_size:new l.Uniform1f(un,kn.u_dem_size),u_dem_lerp:new l.Uniform1f(un,kn.u_dem_lerp),u_exaggeration:new l.Uniform1f(un,kn.u_exaggeration),u_depth:new l.Uniform1i(un,kn.u_depth),u_depth_size_inv:new l.Uniform2f(un,kn.u_depth_size_inv),u_meter_to_dem:new l.Uniform1f(un,kn.u_meter_to_dem),u_label_plane_matrix_inv:new l.UniformMatrix4f(un,kn.u_label_plane_matrix_inv),u_tile_tl_up:new l.Uniform3f(un,kn.u_tile_tl_up),u_tile_tr_up:new l.Uniform3f(un,kn.u_tile_tr_up),u_tile_br_up:new l.Uniform3f(un,kn.u_tile_br_up),u_tile_bl_up:new l.Uniform3f(un,kn.u_tile_bl_up),u_tile_up_scale:new l.Uniform1f(un,kn.u_tile_up_scale)}))(f,Cn)),_e.indexOf("FOG")!==-1&&(this.fogUniforms=((un,kn)=>({u_fog_matrix:new l.UniformMatrix4f(un,kn.u_fog_matrix),u_fog_range:new l.Uniform2f(un,kn.u_fog_range),u_fog_color:new l.Uniform4f(un,kn.u_fog_color),u_fog_horizon_blend:new l.Uniform1f(un,kn.u_fog_horizon_blend),u_fog_temporal_offset:new l.Uniform1f(un,kn.u_fog_temporal_offset)}))(f,Cn))}setTerrainUniformValues(f,k){if(!this.terrainUniforms)return;const Z=this.terrainUniforms;if(!this.failedToCreate){f.program.set(this.program);for(const ue in k)Z[ue].set(k[ue])}}setFogUniformValues(f,k){if(!this.fogUniforms)return;const Z=this.fogUniforms;if(!this.failedToCreate){f.program.set(this.program);for(const ue in k)Z[ue].location&&Z[ue].set(k[ue])}}draw(f,k,Z,ue,he,_e,Ce,Xe,nt,lt,yt,Rt,Ut,Bt,It,vn){const tn=f.gl;if(this.failedToCreate)return;f.program.set(this.program),f.setDepthMode(Z),f.setStencilMode(ue),f.setColorMode(he),f.setCullFace(_e);for(const pn of Object.keys(this.fixedUniforms))this.fixedUniforms[pn].set(Ce[pn]);Bt&&Bt.setUniforms(f,this.binderUniforms,Rt,{zoom:Ut});const cn={[tn.LINES]:2,[tn.TRIANGLES]:3,[tn.LINE_STRIP]:1}[k];for(const pn of yt.get()){const Cn=pn.vaos||(pn.vaos={});(Cn[Xe]||(Cn[Xe]=new J)).bind(f,this,nt,Bt?Bt.getPaintVertexBuffers():[],lt,pn.vertexOffset,It,vn),tn.drawElements(k,pn.primitiveLength*cn,tn.UNSIGNED_SHORT,pn.primitiveOffset*cn*2)}}}function Ba(U,f,k){const Z=1/Be(k,1,f.transform.tileZoom),ue=Math.pow(2,k.tileID.overscaledZ),he=k.tileSize*Math.pow(2,f.transform.tileZoom)/ue,_e=he*(k.tileID.canonical.x+k.tileID.wrap*ue),Ce=he*k.tileID.canonical.y;return{u_image:0,u_texsize:k.imageAtlasTexture.size,u_scale:[Z,U.fromScale,U.toScale],u_fade:U.t,u_pixel_coord_upper:[_e>>16,Ce>>16],u_pixel_coord_lower:[65535&_e,65535&Ce]}}const gl=l.create(),Oa=(U,f,k,Z,ue,he,_e,Ce,Xe)=>{const nt=f.style.light,lt=nt.properties.get("position"),yt=[lt.x,lt.y,lt.z],Rt=l.create$1();nt.properties.get("anchor")==="viewport"&&(l.fromRotation(Rt,-f.transform.angle),l.transformMat3(yt,yt,Rt));const Ut=nt.properties.get("color"),Bt=f.transform,It={u_matrix:U,u_lightpos:yt,u_lightintensity:nt.properties.get("intensity"),u_lightcolor:[Ut.r,Ut.g,Ut.b],u_vertical_gradient:+k,u_opacity:Z,u_tile_id:[0,0,0],u_zoom_transition:0,u_inv_rot_matrix:gl,u_merc_center:[0,0],u_up_dir:[0,0,0],u_height_lift:0};return Bt.projection.name==="globe"&&(It.u_tile_id=[ue.canonical.x,ue.canonical.y,1<<ue.canonical.z],It.u_zoom_transition=_e,It.u_inv_rot_matrix=Xe,It.u_merc_center=Ce,It.u_up_dir=Bt.projection.upVector(new l.CanonicalTileID(0,0,0),Ce[0]*l.EXTENT,Ce[1]*l.EXTENT),It.u_height_lift=he),It},Oo=(U,f,k,Z,ue,he,_e,Ce,Xe,nt,lt)=>{const yt=Oa(U,f,k,Z,ue,Ce,Xe,nt,lt),Rt={u_height_factor:-Math.pow(2,ue.overscaledZ)/_e.tileSize/8};return l.extend(yt,Ba(he,f,_e),Rt)},Ls=U=>({u_matrix:U}),Ss=(U,f,k,Z)=>l.extend(Ls(U),Ba(k,f,Z)),Es=(U,f)=>({u_matrix:U,u_world:f}),vs=(U,f,k,Z,ue)=>l.extend(Ss(U,f,k,Z),{u_world:ue}),po=l.create(),oo=(U,f,k,Z,ue,he)=>{const _e=U.transform,Ce=_e.projection.name==="globe";let Xe;if(he.paint.get("circle-pitch-alignment")==="map")if(Ce){const lt=l.globePixelsToTileUnits(_e.zoom,f.canonical);Xe=Float32Array.from([lt,0,0,lt])}else Xe=_e.calculatePixelsToTileUnitsMatrix(k);else Xe=new Float32Array([_e.pixelsToGLUnits[0],0,0,_e.pixelsToGLUnits[1]]);const nt={u_camera_to_center_distance:_e.cameraToCenterDistance,u_matrix:U.translatePosMatrix(f.projMatrix,k,he.paint.get("circle-translate"),he.paint.get("circle-translate-anchor")),u_device_pixel_ratio:l.exported.devicePixelRatio,u_extrude_scale:Xe,u_inv_rot_matrix:po,u_merc_center:[0,0],u_tile_id:[0,0,0],u_zoom_transition:0,u_up_dir:[0,0,0]};return Ce&&(nt.u_inv_rot_matrix=Z,nt.u_merc_center=ue,nt.u_tile_id=[f.canonical.x,f.canonical.y,1<<f.canonical.z],nt.u_zoom_transition=l.globeToMercatorTransition(_e.zoom),nt.u_up_dir=_e.projection.upVector(f.canonical,ue[0],ue[1])),nt},Ko=U=>{const f=[];return U.paint.get("circle-pitch-alignment")==="map"&&f.push("PITCH_WITH_MAP"),U.paint.get("circle-pitch-scale")==="map"&&f.push("SCALE_WITH_MAP"),f},Ts=(U,f,k)=>{const Z=l.EXTENT/k.tileSize;return{u_matrix:U,u_camera_to_center_distance:f.cameraToCenterDistance,u_extrude_scale:[f.pixelsToGLUnits[0]/Z,f.pixelsToGLUnits[1]/Z]}},as=(U,f,k=1)=>({u_matrix:U,u_color:f,u_overlay:0,u_overlay_scale:k}),Qi=l.create(),Io=(U,f,k,Z,ue,he,_e)=>{const Ce=U.transform,Xe=Ce.projection.name==="globe",nt=Xe?l.globePixelsToTileUnits(Ce.zoom,f.canonical):Be(k,1,he),lt={u_matrix:f.projMatrix,u_extrude_scale:nt,u_intensity:_e,u_inv_rot_matrix:Qi,u_merc_center:[0,0],u_tile_id:[0,0,0],u_zoom_transition:0,u_up_dir:[0,0,0]};return Xe&&(lt.u_inv_rot_matrix=Z,lt.u_merc_center=ue,lt.u_tile_id=[f.canonical.x,f.canonical.y,1<<f.canonical.z],lt.u_zoom_transition=l.globeToMercatorTransition(Ce.zoom),lt.u_up_dir=Ce.projection.upVector(f.canonical,ue[0],ue[1])),lt},Jo=(U,f,k,Z,ue,he,_e)=>{const Ce=U.transform,Xe=Ce.calculatePixelsToTileUnitsMatrix(f),nt={u_matrix:lo(U,f,k,ue),u_pixels_to_tile_units:Xe,u_device_pixel_ratio:_e,u_units_to_pixels:[1/Ce.pixelsToGLUnits[0],1/Ce.pixelsToGLUnits[1]],u_dash_image:0,u_gradient_image:1,u_image_height:he,u_texsize:[0,0],u_scale:[0,0,0],u_mix:0,u_alpha_discard_threshold:0};if(bu(k)){const lt=ul(f,U.transform);nt.u_texsize=f.lineAtlasTexture.size,nt.u_scale=[lt,Z.fromScale,Z.toScale],nt.u_mix=Z.t}return nt},fo=(U,f,k,Z,ue,he)=>{const _e=U.transform,Ce=ul(f,_e);return{u_matrix:lo(U,f,k,ue),u_texsize:f.imageAtlasTexture.size,u_pixels_to_tile_units:_e.calculatePixelsToTileUnitsMatrix(f),u_device_pixel_ratio:he,u_image:0,u_scale:[Ce,Z.fromScale,Z.toScale],u_fade:Z.t,u_units_to_pixels:[1/_e.pixelsToGLUnits[0],1/_e.pixelsToGLUnits[1]],u_alpha_discard_threshold:0}};function ul(U,f){return 1/Be(U,1,f.tileZoom)}function lo(U,f,k,Z){return U.translatePosMatrix(Z||f.tileID.projMatrix,f,k.paint.get("line-translate"),k.paint.get("line-translate-anchor"))}function bu(U){const f=U.paint.get("line-dasharray").value;return f.value||f.kind!=="constant"}const Wo=(U,f,k,Z,ue,he)=>{return{u_matrix:U,u_tl_parent:f,u_scale_parent:k,u_fade_t:Z.mix,u_opacity:Z.opacity*ue.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:ue.paint.get("raster-brightness-min"),u_brightness_high:ue.paint.get("raster-brightness-max"),u_saturation_factor:(Ce=ue.paint.get("raster-saturation"),Ce>0?1-1/(1.001-Ce):-Ce),u_contrast_factor:(_e=ue.paint.get("raster-contrast"),_e>0?1/(1-_e):1+_e),u_spin_weights:Ds(ue.paint.get("raster-hue-rotate")),u_perspective_transform:he};var _e,Ce};function Ds(U){U*=Math.PI/180;const f=Math.sin(U),k=Math.cos(U);return[(2*k+1)/3,(-Math.sqrt(3)*f-k+1)/3,(Math.sqrt(3)*f-k+1)/3]}const os=l.create(),Ou=(U,f,k,Z,ue,he,_e,Ce,Xe,nt,lt,yt,Rt,Ut)=>{const Bt=ue.transform,It={u_is_size_zoom_constant:+(U==="constant"||U==="source"),u_is_size_feature_constant:+(U==="constant"||U==="camera"),u_size_t:f?f.uSizeT:0,u_size:f?f.uSize:0,u_camera_to_center_distance:Bt.cameraToCenterDistance,u_rotate_symbol:+k,u_aspect_ratio:Bt.width/Bt.height,u_fade_change:ue.options.fadeDuration?ue.symbolFadeChange:1,u_matrix:he,u_label_plane_matrix:_e,u_coord_matrix:Ce,u_is_text:+Xe,u_pitch_with_map:+Z,u_texsize:nt,u_texture:0,u_tile_id:[0,0,0],u_zoom_transition:0,u_inv_rot_matrix:os,u_merc_center:[0,0],u_camera_forward:[0,0,0],u_ecef_origin:[0,0,0],u_tile_matrix:os};return Bt.projection.name==="globe"&&(It.u_tile_id=[lt.canonical.x,lt.canonical.y,1<<lt.canonical.z],It.u_zoom_transition=yt,It.u_inv_rot_matrix=Ut,It.u_merc_center=Rt,It.u_camera_forward=Bt._camera.forward(),It.u_ecef_origin=l.globeECEFOrigin(Bt.globeMatrix,lt.toUnwrapped()),It.u_tile_matrix=Float32Array.from(Bt.globeMatrix)),It},il=(U,f,k,Z,ue,he,_e,Ce,Xe,nt,lt,yt,Rt,Ut,Bt)=>{const{cameraToCenterDistance:It,_pitch:vn}=ue.transform;return l.extend(Ou(U,f,k,Z,ue,he,_e,Ce,Xe,nt,yt,Rt,Ut,Bt),{u_gamma_scale:Z?It*Math.cos(ue.terrain?0:vn):1,u_device_pixel_ratio:l.exported.devicePixelRatio,u_is_halo:+lt})},zs=(U,f,k,Z,ue,he,_e,Ce,Xe,nt,lt,yt,Rt,Ut)=>l.extend(il(U,f,k,Z,ue,he,_e,Ce,!0,Xe,!0,lt,yt,Rt,Ut),{u_texsize_icon:nt,u_texture_icon:1}),Xl=(U,f,k)=>({u_matrix:U,u_opacity:f,u_color:k}),Bl=(U,f,k,Z,ue,he)=>l.extend(function(_e,Ce,Xe,nt){const lt=Xe.imageManager.getPattern(_e.from.toString()),yt=Xe.imageManager.getPattern(_e.to.toString()),{width:Rt,height:Ut}=Xe.imageManager.getPixelSize(),Bt=Math.pow(2,nt.tileID.overscaledZ),It=nt.tileSize*Math.pow(2,Xe.transform.tileZoom)/Bt,vn=It*(nt.tileID.canonical.x+nt.tileID.wrap*Bt),tn=It*nt.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:lt.tl,u_pattern_br_a:lt.br,u_pattern_tl_b:yt.tl,u_pattern_br_b:yt.br,u_texsize:[Rt,Ut],u_mix:Ce.t,u_pattern_size_a:lt.displaySize,u_pattern_size_b:yt.displaySize,u_scale_a:Ce.fromScale,u_scale_b:Ce.toScale,u_tile_units_to_pixels:1/Be(nt,1,Xe.transform.tileZoom),u_pixel_coord_upper:[vn>>16,tn>>16],u_pixel_coord_lower:[65535&vn,65535&tn]}}(Z,he,k,ue),{u_matrix:U,u_opacity:f}),ga={fillExtrusion:(U,f)=>({u_matrix:new l.UniformMatrix4f(U,f.u_matrix),u_lightpos:new l.Uniform3f(U,f.u_lightpos),u_lightintensity:new l.Uniform1f(U,f.u_lightintensity),u_lightcolor:new l.Uniform3f(U,f.u_lightcolor),u_vertical_gradient:new l.Uniform1f(U,f.u_vertical_gradient),u_opacity:new l.Uniform1f(U,f.u_opacity),u_tile_id:new l.Uniform3f(U,f.u_tile_id),u_zoom_transition:new l.Uniform1f(U,f.u_zoom_transition),u_inv_rot_matrix:new l.UniformMatrix4f(U,f.u_inv_rot_matrix),u_merc_center:new l.Uniform2f(U,f.u_merc_center),u_up_dir:new l.Uniform3f(U,f.u_up_dir),u_height_lift:new l.Uniform1f(U,f.u_height_lift)}),fillExtrusionPattern:(U,f)=>({u_matrix:new l.UniformMatrix4f(U,f.u_matrix),u_lightpos:new l.Uniform3f(U,f.u_lightpos),u_lightintensity:new l.Uniform1f(U,f.u_lightintensity),u_lightcolor:new l.Uniform3f(U,f.u_lightcolor),u_vertical_gradient:new l.Uniform1f(U,f.u_vertical_gradient),u_height_factor:new l.Uniform1f(U,f.u_height_factor),u_tile_id:new l.Uniform3f(U,f.u_tile_id),u_zoom_transition:new l.Uniform1f(U,f.u_zoom_transition),u_inv_rot_matrix:new l.UniformMatrix4f(U,f.u_inv_rot_matrix),u_merc_center:new l.Uniform2f(U,f.u_merc_center),u_up_dir:new l.Uniform3f(U,f.u_up_dir),u_height_lift:new l.Uniform1f(U,f.u_height_lift),u_image:new l.Uniform1i(U,f.u_image),u_texsize:new l.Uniform2f(U,f.u_texsize),u_pixel_coord_upper:new l.Uniform2f(U,f.u_pixel_coord_upper),u_pixel_coord_lower:new l.Uniform2f(U,f.u_pixel_coord_lower),u_scale:new l.Uniform3f(U,f.u_scale),u_fade:new l.Uniform1f(U,f.u_fade),u_opacity:new l.Uniform1f(U,f.u_opacity)}),fill:(U,f)=>({u_matrix:new l.UniformMatrix4f(U,f.u_matrix)}),fillPattern:(U,f)=>({u_matrix:new l.UniformMatrix4f(U,f.u_matrix),u_image:new l.Uniform1i(U,f.u_image),u_texsize:new l.Uniform2f(U,f.u_texsize),u_pixel_coord_upper:new l.Uniform2f(U,f.u_pixel_coord_upper),u_pixel_coord_lower:new l.Uniform2f(U,f.u_pixel_coord_lower),u_scale:new l.Uniform3f(U,f.u_scale),u_fade:new l.Uniform1f(U,f.u_fade)}),fillOutline:(U,f)=>({u_matrix:new l.UniformMatrix4f(U,f.u_matrix),u_world:new l.Uniform2f(U,f.u_world)}),fillOutlinePattern:(U,f)=>({u_matrix:new l.UniformMatrix4f(U,f.u_matrix),u_world:new l.Uniform2f(U,f.u_world),u_image:new l.Uniform1i(U,f.u_image),u_texsize:new l.Uniform2f(U,f.u_texsize),u_pixel_coord_upper:new l.Uniform2f(U,f.u_pixel_coord_upper),u_pixel_coord_lower:new l.Uniform2f(U,f.u_pixel_coord_lower),u_scale:new l.Uniform3f(U,f.u_scale),u_fade:new l.Uniform1f(U,f.u_fade)}),circle:(U,f)=>({u_camera_to_center_distance:new l.Uniform1f(U,f.u_camera_to_center_distance),u_extrude_scale:new l.UniformMatrix2f(U,f.u_extrude_scale),u_device_pixel_ratio:new l.Uniform1f(U,f.u_device_pixel_ratio),u_matrix:new l.UniformMatrix4f(U,f.u_matrix),u_inv_rot_matrix:new l.UniformMatrix4f(U,f.u_inv_rot_matrix),u_merc_center:new l.Uniform2f(U,f.u_merc_center),u_tile_id:new l.Uniform3f(U,f.u_tile_id),u_zoom_transition:new l.Uniform1f(U,f.u_zoom_transition),u_up_dir:new l.Uniform3f(U,f.u_up_dir)}),collisionBox:(U,f)=>({u_matrix:new l.UniformMatrix4f(U,f.u_matrix),u_camera_to_center_distance:new l.Uniform1f(U,f.u_camera_to_center_distance),u_extrude_scale:new l.Uniform2f(U,f.u_extrude_scale)}),collisionCircle:(U,f)=>({u_matrix:new l.UniformMatrix4f(U,f.u_matrix),u_inv_matrix:new l.UniformMatrix4f(U,f.u_inv_matrix),u_camera_to_center_distance:new l.Uniform1f(U,f.u_camera_to_center_distance),u_viewport_size:new l.Uniform2f(U,f.u_viewport_size)}),debug:(U,f)=>({u_color:new l.UniformColor(U,f.u_color),u_matrix:new l.UniformMatrix4f(U,f.u_matrix),u_overlay:new l.Uniform1i(U,f.u_overlay),u_overlay_scale:new l.Uniform1f(U,f.u_overlay_scale)}),clippingMask:(U,f)=>({u_matrix:new l.UniformMatrix4f(U,f.u_matrix)}),heatmap:(U,f)=>({u_extrude_scale:new l.Uniform1f(U,f.u_extrude_scale),u_intensity:new l.Uniform1f(U,f.u_intensity),u_matrix:new l.UniformMatrix4f(U,f.u_matrix),u_inv_rot_matrix:new l.UniformMatrix4f(U,f.u_inv_rot_matrix),u_merc_center:new l.Uniform2f(U,f.u_merc_center),u_tile_id:new l.Uniform3f(U,f.u_tile_id),u_zoom_transition:new l.Uniform1f(U,f.u_zoom_transition),u_up_dir:new l.Uniform3f(U,f.u_up_dir)}),heatmapTexture:(U,f)=>({u_image:new l.Uniform1i(U,f.u_image),u_color_ramp:new l.Uniform1i(U,f.u_color_ramp),u_opacity:new l.Uniform1f(U,f.u_opacity)}),hillshade:(U,f)=>({u_matrix:new l.UniformMatrix4f(U,f.u_matrix),u_image:new l.Uniform1i(U,f.u_image),u_latrange:new l.Uniform2f(U,f.u_latrange),u_light:new l.Uniform2f(U,f.u_light),u_shadow:new l.UniformColor(U,f.u_shadow),u_highlight:new l.UniformColor(U,f.u_highlight),u_accent:new l.UniformColor(U,f.u_accent)}),hillshadePrepare:(U,f)=>({u_matrix:new l.UniformMatrix4f(U,f.u_matrix),u_image:new l.Uniform1i(U,f.u_image),u_dimension:new l.Uniform2f(U,f.u_dimension),u_zoom:new l.Uniform1f(U,f.u_zoom),u_unpack:new l.Uniform4f(U,f.u_unpack)}),line:(U,f)=>({u_matrix:new l.UniformMatrix4f(U,f.u_matrix),u_pixels_to_tile_units:new l.UniformMatrix2f(U,f.u_pixels_to_tile_units),u_device_pixel_ratio:new l.Uniform1f(U,f.u_device_pixel_ratio),u_units_to_pixels:new l.Uniform2f(U,f.u_units_to_pixels),u_dash_image:new l.Uniform1i(U,f.u_dash_image),u_gradient_image:new l.Uniform1i(U,f.u_gradient_image),u_image_height:new l.Uniform1f(U,f.u_image_height),u_texsize:new l.Uniform2f(U,f.u_texsize),u_scale:new l.Uniform3f(U,f.u_scale),u_mix:new l.Uniform1f(U,f.u_mix),u_alpha_discard_threshold:new l.Uniform1f(U,f.u_alpha_discard_threshold)}),linePattern:(U,f)=>({u_matrix:new l.UniformMatrix4f(U,f.u_matrix),u_texsize:new l.Uniform2f(U,f.u_texsize),u_pixels_to_tile_units:new l.UniformMatrix2f(U,f.u_pixels_to_tile_units),u_device_pixel_ratio:new l.Uniform1f(U,f.u_device_pixel_ratio),u_image:new l.Uniform1i(U,f.u_image),u_units_to_pixels:new l.Uniform2f(U,f.u_units_to_pixels),u_scale:new l.Uniform3f(U,f.u_scale),u_fade:new l.Uniform1f(U,f.u_fade),u_alpha_discard_threshold:new l.Uniform1f(U,f.u_alpha_discard_threshold)}),raster:(U,f)=>({u_matrix:new l.UniformMatrix4f(U,f.u_matrix),u_tl_parent:new l.Uniform2f(U,f.u_tl_parent),u_scale_parent:new l.Uniform1f(U,f.u_scale_parent),u_fade_t:new l.Uniform1f(U,f.u_fade_t),u_opacity:new l.Uniform1f(U,f.u_opacity),u_image0:new l.Uniform1i(U,f.u_image0),u_image1:new l.Uniform1i(U,f.u_image1),u_brightness_low:new l.Uniform1f(U,f.u_brightness_low),u_brightness_high:new l.Uniform1f(U,f.u_brightness_high),u_saturation_factor:new l.Uniform1f(U,f.u_saturation_factor),u_contrast_factor:new l.Uniform1f(U,f.u_contrast_factor),u_spin_weights:new l.Uniform3f(U,f.u_spin_weights),u_perspective_transform:new l.Uniform2f(U,f.u_perspective_transform)}),symbolIcon:(U,f)=>({u_is_size_zoom_constant:new l.Uniform1i(U,f.u_is_size_zoom_constant),u_is_size_feature_constant:new l.Uniform1i(U,f.u_is_size_feature_constant),u_size_t:new l.Uniform1f(U,f.u_size_t),u_size:new l.Uniform1f(U,f.u_size),u_camera_to_center_distance:new l.Uniform1f(U,f.u_camera_to_center_distance),u_rotate_symbol:new l.Uniform1i(U,f.u_rotate_symbol),u_aspect_ratio:new l.Uniform1f(U,f.u_aspect_ratio),u_fade_change:new l.Uniform1f(U,f.u_fade_change),u_matrix:new l.UniformMatrix4f(U,f.u_matrix),u_label_plane_matrix:new l.UniformMatrix4f(U,f.u_label_plane_matrix),u_coord_matrix:new l.UniformMatrix4f(U,f.u_coord_matrix),u_is_text:new l.Uniform1i(U,f.u_is_text),u_pitch_with_map:new l.Uniform1i(U,f.u_pitch_with_map),u_texsize:new l.Uniform2f(U,f.u_texsize),u_tile_id:new l.Uniform3f(U,f.u_tile_id),u_zoom_transition:new l.Uniform1f(U,f.u_zoom_transition),u_inv_rot_matrix:new l.UniformMatrix4f(U,f.u_inv_rot_matrix),u_merc_center:new l.Uniform2f(U,f.u_merc_center),u_camera_forward:new l.Uniform3f(U,f.u_camera_forward),u_tile_matrix:new l.UniformMatrix4f(U,f.u_tile_matrix),u_ecef_origin:new l.Uniform3f(U,f.u_ecef_origin),u_texture:new l.Uniform1i(U,f.u_texture)}),symbolSDF:(U,f)=>({u_is_size_zoom_constant:new l.Uniform1i(U,f.u_is_size_zoom_constant),u_is_size_feature_constant:new l.Uniform1i(U,f.u_is_size_feature_constant),u_size_t:new l.Uniform1f(U,f.u_size_t),u_size:new l.Uniform1f(U,f.u_size),u_camera_to_center_distance:new l.Uniform1f(U,f.u_camera_to_center_distance),u_rotate_symbol:new l.Uniform1i(U,f.u_rotate_symbol),u_aspect_ratio:new l.Uniform1f(U,f.u_aspect_ratio),u_fade_change:new l.Uniform1f(U,f.u_fade_change),u_matrix:new l.UniformMatrix4f(U,f.u_matrix),u_label_plane_matrix:new l.UniformMatrix4f(U,f.u_label_plane_matrix),u_coord_matrix:new l.UniformMatrix4f(U,f.u_coord_matrix),u_is_text:new l.Uniform1i(U,f.u_is_text),u_pitch_with_map:new l.Uniform1i(U,f.u_pitch_with_map),u_texsize:new l.Uniform2f(U,f.u_texsize),u_texture:new l.Uniform1i(U,f.u_texture),u_gamma_scale:new l.Uniform1f(U,f.u_gamma_scale),u_device_pixel_ratio:new l.Uniform1f(U,f.u_device_pixel_ratio),u_tile_id:new l.Uniform3f(U,f.u_tile_id),u_zoom_transition:new l.Uniform1f(U,f.u_zoom_transition),u_inv_rot_matrix:new l.UniformMatrix4f(U,f.u_inv_rot_matrix),u_merc_center:new l.Uniform2f(U,f.u_merc_center),u_camera_forward:new l.Uniform3f(U,f.u_camera_forward),u_tile_matrix:new l.UniformMatrix4f(U,f.u_tile_matrix),u_ecef_origin:new l.Uniform3f(U,f.u_ecef_origin),u_is_halo:new l.Uniform1i(U,f.u_is_halo)}),symbolTextAndIcon:(U,f)=>({u_is_size_zoom_constant:new l.Uniform1i(U,f.u_is_size_zoom_constant),u_is_size_feature_constant:new l.Uniform1i(U,f.u_is_size_feature_constant),u_size_t:new l.Uniform1f(U,f.u_size_t),u_size:new l.Uniform1f(U,f.u_size),u_camera_to_center_distance:new l.Uniform1f(U,f.u_camera_to_center_distance),u_rotate_symbol:new l.Uniform1i(U,f.u_rotate_symbol),u_aspect_ratio:new l.Uniform1f(U,f.u_aspect_ratio),u_fade_change:new l.Uniform1f(U,f.u_fade_change),u_matrix:new l.UniformMatrix4f(U,f.u_matrix),u_label_plane_matrix:new l.UniformMatrix4f(U,f.u_label_plane_matrix),u_coord_matrix:new l.UniformMatrix4f(U,f.u_coord_matrix),u_is_text:new l.Uniform1i(U,f.u_is_text),u_pitch_with_map:new l.Uniform1i(U,f.u_pitch_with_map),u_texsize:new l.Uniform2f(U,f.u_texsize),u_texsize_icon:new l.Uniform2f(U,f.u_texsize_icon),u_texture:new l.Uniform1i(U,f.u_texture),u_texture_icon:new l.Uniform1i(U,f.u_texture_icon),u_gamma_scale:new l.Uniform1f(U,f.u_gamma_scale),u_device_pixel_ratio:new l.Uniform1f(U,f.u_device_pixel_ratio),u_is_halo:new l.Uniform1i(U,f.u_is_halo)}),background:(U,f)=>({u_matrix:new l.UniformMatrix4f(U,f.u_matrix),u_opacity:new l.Uniform1f(U,f.u_opacity),u_color:new l.UniformColor(U,f.u_color)}),backgroundPattern:(U,f)=>({u_matrix:new l.UniformMatrix4f(U,f.u_matrix),u_opacity:new l.Uniform1f(U,f.u_opacity),u_image:new l.Uniform1i(U,f.u_image),u_pattern_tl_a:new l.Uniform2f(U,f.u_pattern_tl_a),u_pattern_br_a:new l.Uniform2f(U,f.u_pattern_br_a),u_pattern_tl_b:new l.Uniform2f(U,f.u_pattern_tl_b),u_pattern_br_b:new l.Uniform2f(U,f.u_pattern_br_b),u_texsize:new l.Uniform2f(U,f.u_texsize),u_mix:new l.Uniform1f(U,f.u_mix),u_pattern_size_a:new l.Uniform2f(U,f.u_pattern_size_a),u_pattern_size_b:new l.Uniform2f(U,f.u_pattern_size_b),u_scale_a:new l.Uniform1f(U,f.u_scale_a),u_scale_b:new l.Uniform1f(U,f.u_scale_b),u_pixel_coord_upper:new l.Uniform2f(U,f.u_pixel_coord_upper),u_pixel_coord_lower:new l.Uniform2f(U,f.u_pixel_coord_lower),u_tile_units_to_pixels:new l.Uniform1f(U,f.u_tile_units_to_pixels)}),terrainRaster:Ge,terrainDepth:Ge,skybox:(U,f)=>({u_matrix:new l.UniformMatrix4f(U,f.u_matrix),u_sun_direction:new l.Uniform3f(U,f.u_sun_direction),u_cubemap:new l.Uniform1i(U,f.u_cubemap),u_opacity:new l.Uniform1f(U,f.u_opacity),u_temporal_offset:new l.Uniform1f(U,f.u_temporal_offset)}),skyboxGradient:(U,f)=>({u_matrix:new l.UniformMatrix4f(U,f.u_matrix),u_color_ramp:new l.Uniform1i(U,f.u_color_ramp),u_center_direction:new l.Uniform3f(U,f.u_center_direction),u_radius:new l.Uniform1f(U,f.u_radius),u_opacity:new l.Uniform1f(U,f.u_opacity),u_temporal_offset:new l.Uniform1f(U,f.u_temporal_offset)}),skyboxCapture:(U,f)=>({u_matrix_3f:new l.UniformMatrix3f(U,f.u_matrix_3f),u_sun_direction:new l.Uniform3f(U,f.u_sun_direction),u_sun_intensity:new l.Uniform1f(U,f.u_sun_intensity),u_color_tint_r:new l.Uniform4f(U,f.u_color_tint_r),u_color_tint_m:new l.Uniform4f(U,f.u_color_tint_m),u_luminance:new l.Uniform1f(U,f.u_luminance)}),globeRaster:(U,f)=>({u_proj_matrix:new l.UniformMatrix4f(U,f.u_proj_matrix),u_globe_matrix:new l.UniformMatrix4f(U,f.u_globe_matrix),u_merc_matrix:new l.UniformMatrix4f(U,f.u_merc_matrix),u_zoom_transition:new l.Uniform1f(U,f.u_zoom_transition),u_merc_center:new l.Uniform2f(U,f.u_merc_center),u_image0:new l.Uniform1i(U,f.u_image0),u_grid_matrix:new l.UniformMatrix3f(U,f.u_grid_matrix)}),globeAtmosphere:(U,f)=>({u_frustum_tl:new l.Uniform3f(U,f.u_frustum_tl),u_frustum_tr:new l.Uniform3f(U,f.u_frustum_tr),u_frustum_br:new l.Uniform3f(U,f.u_frustum_br),u_frustum_bl:new l.Uniform3f(U,f.u_frustum_bl),u_globe_pos:new l.Uniform3f(U,f.u_globe_pos),u_globe_radius:new l.Uniform1f(U,f.u_globe_radius),u_opacity:new l.Uniform1f(U,f.u_opacity),u_fadeout_range:new l.Uniform1f(U,f.u_fadeout_range),u_start_color:new l.Uniform3f(U,f.u_start_color),u_end_color:new l.Uniform3f(U,f.u_end_color)})};let zo;function wu(U,f,k,Z,ue,he,_e){const Ce=U.context,Xe=Ce.gl,nt=U.useProgram("collisionBox"),lt=[];let yt=0,Rt=0;for(let pn=0;pn<Z.length;pn++){const Cn=Z[pn],un=f.getTile(Cn),kn=un.getBucket(k);if(!kn)continue;let nr=Cn.projMatrix;ue[0]===0&&ue[1]===0||(nr=U.translatePosMatrix(Cn.projMatrix,un,ue,he));const dr=_e?kn.textCollisionBox:kn.iconCollisionBox,xr=kn.collisionCircleArray;if(xr.length>0){const yr=l.create(),Qr=nr;l.mul(yr,kn.placementInvProjMatrix,U.transform.glCoordMatrix),l.mul(yr,yr,kn.placementViewportMatrix),lt.push({circleArray:xr,circleOffset:Rt,transform:Qr,invTransform:yr}),yt+=xr.length/4,Rt=yt}dr&&(U.terrain&&U.terrain.setupElevationDraw(un,nt),nt.draw(Ce,Xe.LINES,l.DepthMode.disabled,l.StencilMode.disabled,U.colorModeForRenderPass(),l.CullFaceMode.disabled,Ts(nr,U.transform,un),k.id,dr.layoutVertexBuffer,dr.indexBuffer,dr.segments,null,U.transform.zoom,null,dr.collisionVertexBuffer,dr.collisionVertexBufferExt))}if(!_e||!lt.length)return;const Ut=U.useProgram("collisionCircle"),Bt=new l.StructArrayLayout2f1f2i16;Bt.resize(4*yt),Bt._trim();let It=0;for(const pn of lt)for(let Cn=0;Cn<pn.circleArray.length/4;Cn++){const un=4*Cn,kn=pn.circleArray[un+0],nr=pn.circleArray[un+1],dr=pn.circleArray[un+2],xr=pn.circleArray[un+3];Bt.emplace(It++,kn,nr,dr,xr,0),Bt.emplace(It++,kn,nr,dr,xr,1),Bt.emplace(It++,kn,nr,dr,xr,2),Bt.emplace(It++,kn,nr,dr,xr,3)}(!zo||zo.length<2*yt)&&(zo=function(pn){const Cn=2*pn,un=new l.StructArrayLayout3ui6;un.resize(Cn),un._trim();for(let kn=0;kn<Cn;kn++){const nr=6*kn;un.uint16[nr+0]=4*kn+0,un.uint16[nr+1]=4*kn+1,un.uint16[nr+2]=4*kn+2,un.uint16[nr+3]=4*kn+2,un.uint16[nr+4]=4*kn+3,un.uint16[nr+5]=4*kn+0}return un}(yt));const vn=Ce.createIndexBuffer(zo,!0),tn=Ce.createVertexBuffer(Bt,l.collisionCircleLayout.members,!0);for(const pn of lt){const Cn={u_matrix:pn.transform,u_inv_matrix:pn.invTransform,u_camera_to_center_distance:(cn=U.transform).cameraToCenterDistance,u_viewport_size:[cn.width,cn.height]};Ut.draw(Ce,Xe.TRIANGLES,l.DepthMode.disabled,l.StencilMode.disabled,U.colorModeForRenderPass(),l.CullFaceMode.disabled,Cn,k.id,tn,vn,l.SegmentVector.simpleSegment(0,2*pn.circleOffset,pn.circleArray.length,pn.circleArray.length/2),null,U.transform.zoom,null,null,null)}var cn;tn.destroy(),vn.destroy()}const ds=l.create();function pu(U,f,k,Z,ue,he){const{horizontalAlign:_e,verticalAlign:Ce}=l.getAnchorAlignment(U),Xe=-(_e-.5)*f,nt=-(Ce-.5)*k,lt=l.evaluateVariableOffset(U,Z);return new l.pointGeometry((Xe/ue+lt[0])*he,(nt/ue+lt[1])*he)}function gn(U,f,k,Z,ue,he,_e,Ce,Xe,nt,lt,yt){const Rt=U.text.placedSymbolArray,Ut=U.text.dynamicLayoutVertexArray,Bt=U.icon.dynamicLayoutVertexArray,It={},vn=Ce.projMatrix,tn=he.elevation,cn=yt.upVectorScale(Ce.canonical,he.center.lat,he.worldSize);Ut.clear();for(let pn=0;pn<Rt.length;pn++){const Cn=Rt.get(pn),un=U.allowVerticalPlacement&&!Cn.placedOrientation,kn=Cn.hidden||!Cn.crossTileID||un?null:Z[Cn.crossTileID];if(kn){const nr=new l.pointGeometry(Cn.tileAnchorX,Cn.tileAnchorY),dr=yt.upVector(Ce.canonical,nr.x,nr.y),xr=tn?tn.getAtTileOffset(Ce,nr.x,nr.y):0,yr=ja([Cn.projectedAnchorX+xr*dr[0]*cn.metersToTile,Cn.projectedAnchorY+xr*dr[1]*cn.metersToTile,Cn.projectedAnchorZ+xr*dr[2]*cn.metersToTile],k?vn:_e),Qr=no(he.cameraToCenterDistance,yr.signedDistanceFromCamera);let ir=ue.evaluateSizeForFeature(U.textSizeData,nt,Cn)*Qr/l.ONE_EM;k&&(ir*=U.tilePixelRatio/Xe);const{width:gr,height:Yr,anchor:Oi,textOffset:br,textScale:Ii}=kn,ea=pu(Oi,gr,Yr,br,Ii,ir),ui=k?eo(nr.add(ea),_e,xr*cn.metersToLabelSpace).point:yr.point.add(f?ea.rotate(-he.angle):ea),Fi=U.allowVerticalPlacement&&Cn.placedOrientation===l.WritingMode.vertical?Math.PI/2:0;for(let pa=0;pa<Cn.numGlyphs;pa++)l.addDynamicAttributes(Ut,ui,Fi);lt&&Cn.associatedIconIndex>=0&&(It[Cn.associatedIconIndex]={shiftedAnchor:ui,angle:Fi})}else Pr(Cn.numGlyphs,Ut)}if(lt){Bt.clear();const pn=U.icon.placedSymbolArray;for(let Cn=0;Cn<pn.length;Cn++){const un=pn.get(Cn);if(un.hidden)Pr(un.numGlyphs,Bt);else{const kn=It[Cn];if(kn)for(let nr=0;nr<un.numGlyphs;nr++)l.addDynamicAttributes(Bt,kn.shiftedAnchor,kn.angle);else Pr(un.numGlyphs,Bt)}}U.icon.dynamicLayoutVertexBuffer.updateData(Bt)}U.text.dynamicLayoutVertexBuffer.updateData(Ut)}function Zn(U,f,k){return k.iconsInText&&f?"symbolTextAndIcon":U?"symbolSDF":"symbolIcon"}function Fn(U,f,k,Z,ue,he,_e,Ce,Xe,nt,lt,yt){const Rt=U.context,Ut=Rt.gl,Bt=U.transform,It=Ce==="map",vn=Xe==="map",tn=It&&k.layout.get("symbol-placement")!=="point",cn=It&&!vn&&!tn,pn=k.layout.get("symbol-sort-key").constantOr(1)!==void 0;let Cn=!1;const un=U.depthModeForSublayer(0,l.DepthMode.ReadOnly),kn=[l.mercatorXfromLng(Bt.center.lng),l.mercatorYfromLat(Bt.center.lat)],nr=k.layout.get("text-variable-anchor"),dr=Bt.projection.name==="globe",xr=dr?l.globeToMercatorTransition(Bt.zoom):0,yr=[],Qr=[];U.terrain&&vn&&Qr.push("PITCH_WITH_MAP_TERRAIN"),dr&&Qr.push("PROJECTION_GLOBE_VIEW");for(const ir of Z){const gr=f.getTile(ir),Yr=gr.getBucket(k);if(!Yr||Yr.projection!==Bt.projection.name)continue;const Oi=ue?Yr.text:Yr.icon;if(!Oi||Yr.fullyClipped||!Oi.segments.get().length)continue;const br=Oi.programConfigurations.get(k.id),Ii=ue||Yr.sdfIcons,ea=ue?Yr.textSizeData:Yr.iconSizeData,ui=vn||Bt.pitch!==0,Fi=l.evaluateSizeForZoom(ea,Bt.zoom);let pa,Ja,ji,Xi,Mo=[0,0],Is=null;if(ue){if(Ja=gr.glyphAtlasTexture,ji=Ut.LINEAR,pa=gr.glyphAtlasTexture.size,Yr.iconsInText){Mo=gr.imageAtlasTexture.size,Is=gr.imageAtlasTexture;const cl=ea.kind==="composite"||ea.kind==="camera";Xi=ui||U.options.rotating||U.options.zooming||cl?Ut.LINEAR:Ut.NEAREST}}else{const cl=k.layout.get("icon-size").constantOr(0)!==1||Yr.iconsNeedLinear;Ja=gr.imageAtlasTexture,ji=Ii||U.options.rotating||U.options.zooming||cl||ui?Ut.LINEAR:Ut.NEAREST,pa=gr.imageAtlasTexture.size}const Gl=U.transform.calculatePixelsToTileUnitsMatrix(gr),js=Na(ir.projMatrix,gr.tileID.canonical,vn,It,U.transform,Gl),Sl=U.terrain&&vn&&tn?l.invert(l.create(),js):ds,ju=sl(ir.projMatrix,gr.tileID.canonical,vn,It,U.transform,Gl),mc=nr&&Yr.hasTextData(),gc=k.layout.get("icon-text-fit")!=="none"&&mc&&Yr.hasIconData();if(tn){const cl=Bt.elevation,eu=cl?cl.getAtTileOffsetFunc(ir,Bt.center.lat,Bt.worldSize,Bt.projection):xd=>[0,0,0];Ra(Yr,ir.projMatrix,U,ue,js,ju,vn,nt,eu,ir)}const ic=tn||ue&&nr||gc,Us=U.translatePosMatrix(ir.projMatrix,gr,he,_e),_s=ic?ds:js,Eo=U.translatePosMatrix(ju,gr,he,_e,!0),$s=Bt.projection.createInversionMatrix(Bt,ir.canonical),El=ic?Qr.concat(["PROJECTED_POS_ON_VIEWPORT"]):Qr,ps=Ii&&k.paint.get(ue?"text-halo-width":"icon-halo-width").constantOr(1)!==0;let cu;cu=Ii?Yr.iconsInText?zs(ea.kind,Fi,cn,vn,U,Us,_s,Eo,pa,Mo,ir,xr,kn,$s):il(ea.kind,Fi,cn,vn,U,Us,_s,Eo,ue,pa,!0,ir,xr,kn,$s):Ou(ea.kind,Fi,cn,vn,U,Us,_s,Eo,ue,pa,ir,xr,kn,$s);const jl={program:U.useProgram(Zn(Ii,ue,Yr),br,El),buffers:Oi,uniformValues:cu,atlasTexture:Ja,atlasTextureIcon:Is,atlasInterpolation:ji,atlasInterpolationIcon:Xi,isSDF:Ii,hasHalo:ps,tile:gr,labelPlaneMatrixInv:Sl};if(pn&&Yr.canOverlap){Cn=!0;const cl=Oi.segments.get();for(const eu of cl)yr.push({segments:new l.SegmentVector([eu]),sortKey:eu.sortKey,state:jl})}else yr.push({segments:Oi.segments,sortKey:0,state:jl})}Cn&&yr.sort((ir,gr)=>ir.sortKey-gr.sortKey);for(const ir of yr){const gr=ir.state;if(U.terrain&&U.terrain.setupElevationDraw(gr.tile,gr.program,{useDepthForOcclusion:!dr,labelPlaneMatrixInv:gr.labelPlaneMatrixInv}),Rt.activeTexture.set(Ut.TEXTURE0),gr.atlasTexture.bind(gr.atlasInterpolation,Ut.CLAMP_TO_EDGE),gr.atlasTextureIcon&&(Rt.activeTexture.set(Ut.TEXTURE1),gr.atlasTextureIcon&&gr.atlasTextureIcon.bind(gr.atlasInterpolationIcon,Ut.CLAMP_TO_EDGE)),gr.isSDF){const Yr=gr.uniformValues;gr.hasHalo&&(Yr.u_is_halo=1,Mr(gr.buffers,ir.segments,k,U,gr.program,un,lt,yt,Yr)),Yr.u_is_halo=0}Mr(gr.buffers,ir.segments,k,U,gr.program,un,lt,yt,gr.uniformValues)}}function Mr(U,f,k,Z,ue,he,_e,Ce,Xe){const nt=Z.context;ue.draw(nt,nt.gl.TRIANGLES,he,_e,Ce,l.CullFaceMode.disabled,Xe,k.id,U.layoutVertexBuffer,U.indexBuffer,f,k.paint,Z.transform.zoom,U.programConfigurations.get(k.id),U.dynamicLayoutVertexBuffer,U.opacityVertexBuffer)}function Nr(U,f,k,Z,ue,he,_e){const Ce=U.context.gl,Xe=k.paint.get("fill-pattern"),nt=Xe&&Xe.constantOr(1),lt=k.getCrossfadeParameters();let yt,Rt,Ut,Bt,It;_e?(Rt=nt&&!k.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",yt=Ce.LINES):(Rt=nt?"fillPattern":"fill",yt=Ce.TRIANGLES);for(const vn of Z){const tn=f.getTile(vn);if(nt&&!tn.patternsLoaded())continue;const cn=tn.getBucket(k);if(!cn)continue;U.prepareDrawTile();const pn=cn.programConfigurations.get(k.id),Cn=U.useProgram(Rt,pn);nt&&(U.context.activeTexture.set(Ce.TEXTURE0),tn.imageAtlasTexture.bind(Ce.LINEAR,Ce.CLAMP_TO_EDGE),pn.updatePaintBuffers(lt));const un=Xe.constantOr(null);if(un&&tn.imageAtlas){const nr=tn.imageAtlas,dr=nr.patternPositions[un.to.toString()],xr=nr.patternPositions[un.from.toString()];dr&&xr&&pn.setConstantPatternPositions(dr,xr)}const kn=U.translatePosMatrix(vn.projMatrix,tn,k.paint.get("fill-translate"),k.paint.get("fill-translate-anchor"));if(_e){Bt=cn.indexBuffer2,It=cn.segments2;const nr=U.terrain&&U.terrain.renderingToTexture?U.terrain.drapeBufferSize:[Ce.drawingBufferWidth,Ce.drawingBufferHeight];Ut=Rt==="fillOutlinePattern"&&nt?vs(kn,U,lt,tn,nr):Es(kn,nr)}else Bt=cn.indexBuffer,It=cn.segments,Ut=nt?Ss(kn,U,lt,tn):Ls(kn);U.prepareDrawProgram(U.context,Cn,vn.toUnwrapped()),Cn.draw(U.context,yt,ue,U.stencilModeForClipping(vn),he,l.CullFaceMode.disabled,Ut,k.id,cn.layoutVertexBuffer,Bt,It,k.paint,U.transform.zoom,pn)}}function _i(U,f,k,Z,ue,he,_e){const Ce=U.context,Xe=Ce.gl,nt=U.transform,lt=k.paint.get("fill-extrusion-pattern"),yt=lt.constantOr(1),Rt=k.getCrossfadeParameters(),Ut=k.paint.get("fill-extrusion-opacity"),Bt=function(pn){if(pn.projection.name!=="globe")return 0;const Cn=Math.PI/32,un=Math.tan(Cn),kn=l.earthRadius;return kn*Math.sqrt(1+2*un*un)-kn}(nt),It=nt.projection.name==="globe",vn=It?l.globeToMercatorTransition(nt.zoom):0,tn=[l.mercatorXfromLng(nt.center.lng),l.mercatorYfromLat(nt.center.lat)],cn=[];It&&cn.push("PROJECTION_GLOBE_VIEW");for(const pn of Z){const Cn=f.getTile(pn),un=Cn.getBucket(k);if(!un||un.projection!==nt.projection.name)continue;const kn=un.programConfigurations.get(k.id),nr=U.useProgram(yt?"fillExtrusionPattern":"fillExtrusion",kn,cn);if(U.terrain){const gr=U.terrain;if(U.style.terrainSetForDrapingOnly())gr.setupElevationDraw(Cn,nr,{useMeterToDem:!0});else{if(!un.enableTerrain)continue;if(gr.setupElevationDraw(Cn,nr,{useMeterToDem:!0}),Ci(Ce,f,pn,un,k,gr),!un.centroidVertexBuffer){const Yr=nr.attributes.a_centroid_pos;Yr!==void 0&&Xe.vertexAttrib2f(Yr,0,0)}}}yt&&(U.context.activeTexture.set(Xe.TEXTURE0),Cn.imageAtlasTexture.bind(Xe.LINEAR,Xe.CLAMP_TO_EDGE),kn.updatePaintBuffers(Rt));const dr=lt.constantOr(null);if(dr&&Cn.imageAtlas){const gr=Cn.imageAtlas,Yr=gr.patternPositions[dr.to.toString()],Oi=gr.patternPositions[dr.from.toString()];Yr&&Oi&&kn.setConstantPatternPositions(Yr,Oi)}const xr=U.translatePosMatrix(pn.projMatrix,Cn,k.paint.get("fill-extrusion-translate"),k.paint.get("fill-extrusion-translate-anchor")),yr=nt.projection.createInversionMatrix(nt,pn.canonical),Qr=k.paint.get("fill-extrusion-vertical-gradient"),ir=yt?Oo(xr,U,Qr,Ut,pn,Rt,Cn,Bt,vn,tn,yr):Oa(xr,U,Qr,Ut,pn,Bt,vn,tn,yr);U.prepareDrawProgram(Ce,nr,pn.toUnwrapped()),nr.draw(Ce,Ce.gl.TRIANGLES,ue,he,_e,l.CullFaceMode.backCCW,ir,k.id,un.layoutVertexBuffer,un.indexBuffer,un.segments,k.paint,U.transform.zoom,kn,U.terrain?un.centroidVertexBuffer:null,It?un.layoutVertexExtBuffer:null)}}function Ci(U,f,k,Z,ue,he){const _e=[tn=>{let cn=tn.canonical.x-1,pn=tn.wrap;return cn<0&&(cn=(1<<tn.canonical.z)-1,pn--),new l.OverscaledTileID(tn.overscaledZ,pn,tn.canonical.z,cn,tn.canonical.y)},tn=>{let cn=tn.canonical.x+1,pn=tn.wrap;return cn===1<<tn.canonical.z&&(cn=0,pn++),new l.OverscaledTileID(tn.overscaledZ,pn,tn.canonical.z,cn,tn.canonical.y)},tn=>new l.OverscaledTileID(tn.overscaledZ,tn.wrap,tn.canonical.z,tn.canonical.x,(tn.canonical.y===0?1<<tn.canonical.z:tn.canonical.y)-1),tn=>new l.OverscaledTileID(tn.overscaledZ,tn.wrap,tn.canonical.z,tn.canonical.x,tn.canonical.y===(1<<tn.canonical.z)-1?0:tn.canonical.y+1)],Ce=tn=>{const cn=f.getSource().minzoom,pn=un=>{const kn=f.getTileByID(un);if(kn&&kn.hasData())return kn.getBucket(ue)},Cn=[0,-1,1];for(const un of Cn){if(tn.overscaledZ+un<cn)continue;const kn=pn(tn.calculateScaledKey(tn.overscaledZ+un));if(kn)return kn}},Xe=[0,0,0],nt=(tn,cn)=>(Xe[0]=Math.min(tn.min.y,cn.min.y),Xe[1]=Math.max(tn.max.y,cn.max.y),Xe[2]=l.EXTENT-cn.min.x>tn.max.x?cn.min.x-l.EXTENT:tn.max.x,Xe),lt=(tn,cn)=>(Xe[0]=Math.min(tn.min.x,cn.min.x),Xe[1]=Math.max(tn.max.x,cn.max.x),Xe[2]=l.EXTENT-cn.min.y>tn.max.y?cn.min.y-l.EXTENT:tn.max.y,Xe),yt=[(tn,cn)=>nt(tn,cn),(tn,cn)=>nt(cn,tn),(tn,cn)=>lt(tn,cn),(tn,cn)=>lt(cn,tn)],Rt=new l.pointGeometry(0,0);let Ut,Bt,It;const vn=(tn,cn,pn,Cn,un)=>{const kn=[[Cn?pn:tn,Cn?tn:pn,0],[Cn?pn:cn,Cn?cn:pn,0]],nr=un<0?l.EXTENT+un:un,dr=[Cn?nr:(tn+cn)/2,Cn?(tn+cn)/2:nr,0];return pn===0&&un<0||pn!==0&&un>0?he.getForTilePoints(It,[dr],!0,Bt):kn.push(dr),he.getForTilePoints(k,kn,!0,Ut),Math.max(kn[0][2],kn[1][2],dr[2])/he.exaggeration()};for(let tn=0;tn<4;tn++){const cn=(tn<2?1:5)-tn,pn=Z.borders[tn];if(pn.length===0)continue;const Cn=It=_e[tn](k),un=Ce(Cn);if(!(un&&un instanceof l.FillExtrusionBucket&&un.enableTerrain)||Z.borderDoneWithNeighborZ[tn]===un.canonical.z&&un.borderDoneWithNeighborZ[cn]===Z.canonical.z||(Bt=he.findDEMTileFor(Cn),!Bt||!Bt.dem))continue;if(!Ut){const xr=he.findDEMTileFor(k);if(!xr||!xr.dem)return;Ut=xr}const kn=un.borders[cn];let nr=0;const dr=un.borderDoneWithNeighborZ[cn]!==Z.canonical.z;if(Z.canonical.z===un.canonical.z){for(let xr=0;xr<pn.length;xr++){const yr=Z.featuresOnBorder[pn[xr]],Qr=yr.borders[tn];let ir;for(;nr<kn.length&&(ir=un.featuresOnBorder[kn[nr]],!(ir.borders[cn][1]>Qr[0]+3));)dr&&un.encodeCentroid(void 0,ir,!1),nr++;if(ir&&nr<kn.length){const gr=nr;let Yr=0;for(;!(ir.borders[cn][0]>Qr[1]-3)&&(Yr++,++nr!==kn.length);)ir=un.featuresOnBorder[kn[nr]];if(ir=un.featuresOnBorder[kn[gr]],yr.intersectsCount()>1||ir.intersectsCount()>1||Yr!==1){Yr!==1&&(nr=gr),Z.encodeCentroid(void 0,yr,!1),dr&&un.encodeCentroid(void 0,ir,!1);continue}const Oi=yt[tn](yr,ir),br=tn%2?l.EXTENT-1:0;Rt.x=vn(Oi[0],Math.min(l.EXTENT-1,Oi[1]),br,tn<2,Oi[2]),Rt.y=0,Z.encodeCentroid(Rt,yr,!1),dr&&un.encodeCentroid(Rt,ir,!1)}else Z.encodeCentroid(void 0,yr,!1)}Z.borderDoneWithNeighborZ[tn]=un.canonical.z,Z.needsCentroidUpdate=!0,dr&&(un.borderDoneWithNeighborZ[cn]=Z.canonical.z,un.needsCentroidUpdate=!0)}else{for(const xr of pn)Z.encodeCentroid(void 0,Z.featuresOnBorder[xr],!1);if(dr){for(const xr of kn)un.encodeCentroid(void 0,un.featuresOnBorder[xr],!1);un.borderDoneWithNeighborZ[cn]=Z.canonical.z,un.needsCentroidUpdate=!0}Z.borderDoneWithNeighborZ[tn]=un.canonical.z,Z.needsCentroidUpdate=!0}}(Z.needsCentroidUpdate||!Z.centroidVertexBuffer&&Z.centroidVertexArray.length!==0)&&Z.uploadCentroid(U)}const Vt=new l.Color(1,0,0,1),Wt=new l.Color(0,1,0,1),Jn=new l.Color(0,0,1,1),Vn=new l.Color(1,0,1,1),Bn=new l.Color(0,1,1,1);function Hn(U,f,k,Z){fi(U,0,f+k/2,U.transform.width,k,Z)}function kr(U,f,k,Z){fi(U,f-k/2,0,k,U.transform.height,Z)}function fi(U,f,k,Z,ue,he){const _e=U.context,Ce=_e.gl;Ce.enable(Ce.SCISSOR_TEST),Ce.scissor(f*l.exported.devicePixelRatio,k*l.exported.devicePixelRatio,Z*l.exported.devicePixelRatio,ue*l.exported.devicePixelRatio),_e.clear({color:he}),Ce.disable(Ce.SCISSOR_TEST)}function oi(U,f,k){const Z=U.context,ue=Z.gl,he=U.transform.projection.name==="globe",_e=k.projMatrix,Ce=U.useProgram("debug",null,he?["PROJECTION_GLOBE_VIEW"]:null),Xe=f.getTileByID(k.key);U.terrain&&U.terrain.setupElevationDraw(Xe,Ce);const nt=l.DepthMode.disabled,lt=l.StencilMode.disabled,yt=U.colorModeForRenderPass(),Rt="$debug";Z.activeTexture.set(ue.TEXTURE0),U.emptyTexture.bind(ue.LINEAR,ue.CLAMP_TO_EDGE),he?Xe._makeGlobeTileDebugBuffers(U.context,U.transform.projection):Xe._makeDebugTileBoundsBuffers(U.context,U.transform.projection);const Ut=Xe._tileDebugBuffer||U.debugBuffer,Bt=Xe._tileDebugIndexBuffer||U.debugIndexBuffer,It=Xe._tileDebugSegments||U.debugSegments;Ce.draw(Z,ue.LINE_STRIP,nt,lt,yt,l.CullFaceMode.disabled,as(_e,l.Color.red),Rt,Ut,Bt,It,null,null,null,Xe._globeTileDebugBorderBuffer);const vn=Xe.latestRawTileData,tn=Math.floor((vn&&vn.byteLength||0)/1024),cn=f.getTile(k).tileSize,pn=512/Math.min(cn,512)*(k.overscaledZ/U.transform.zoom)*.5;let Cn=k.canonical.toString();k.overscaledZ!==k.canonical.z&&(Cn+=` => ${k.overscaledZ}`),function(dr,xr){dr.initDebugOverlayCanvas();const yr=dr.debugOverlayCanvas,Qr=dr.context.gl,ir=dr.debugOverlayCanvas.getContext("2d");ir.clearRect(0,0,yr.width,yr.height),ir.shadowColor="white",ir.shadowBlur=2,ir.lineWidth=1.5,ir.strokeStyle="white",ir.textBaseline="top",ir.font="bold 36px Open Sans, sans-serif",ir.fillText(xr,5,5),ir.strokeText(xr,5,5),dr.debugOverlayTexture.update(yr),dr.debugOverlayTexture.bind(Qr.LINEAR,Qr.CLAMP_TO_EDGE)}(U,`${Cn} ${tn}kb`);const un=Xe._tileDebugTextBuffer||U.debugBuffer,kn=Xe._tileDebugTextIndexBuffer||U.quadTriangleIndexBuffer,nr=Xe._tileDebugTextSegments||U.debugSegments;Ce.draw(Z,ue.TRIANGLES,nt,lt,l.ColorMode.alphaBlended,l.CullFaceMode.disabled,as(_e,l.Color.transparent,pn),Rt,un,kn,nr,null,null,null,Xe._globeTileDebugTextBuffer)}const da=l.createLayout([{name:"a_pos_3f",components:3,type:"Float32"}]),{members:St}=da;function zi(U,f,k,Z){U.emplaceBack(f,k,Z)}class Fr{constructor(f){this.vertexArray=new l.StructArrayLayout3f12,this.indices=new l.StructArrayLayout3ui6,zi(this.vertexArray,-1,-1,1),zi(this.vertexArray,1,-1,1),zi(this.vertexArray,-1,1,1),zi(this.vertexArray,1,1,1),zi(this.vertexArray,-1,-1,-1),zi(this.vertexArray,1,-1,-1),zi(this.vertexArray,-1,1,-1),zi(this.vertexArray,1,1,-1),this.indices.emplaceBack(5,1,3),this.indices.emplaceBack(3,7,5),this.indices.emplaceBack(6,2,0),this.indices.emplaceBack(0,4,6),this.indices.emplaceBack(2,6,7),this.indices.emplaceBack(7,3,2),this.indices.emplaceBack(5,4,0),this.indices.emplaceBack(0,1,5),this.indices.emplaceBack(0,2,3),this.indices.emplaceBack(3,1,0),this.indices.emplaceBack(7,6,4),this.indices.emplaceBack(4,5,7),this.vertexBuffer=f.createVertexBuffer(this.vertexArray,St),this.indexBuffer=f.createIndexBuffer(this.indices),this.segment=l.SegmentVector.simpleSegment(0,0,36,12)}}function ni(U,f,k,Z,ue,he){const _e=U.gl,Ce=f.paint.get("sky-atmosphere-color"),Xe=f.paint.get("sky-atmosphere-halo-color"),nt=f.paint.get("sky-atmosphere-sun-intensity"),lt=((yt,Rt,Ut,Bt,It)=>({u_matrix_3f:yt,u_sun_direction:Rt,u_sun_intensity:Ut,u_color_tint_r:[Bt.r,Bt.g,Bt.b,Bt.a],u_color_tint_m:[It.r,It.g,It.b,It.a],u_luminance:5e-5}))(l.fromMat4(l.create$1(),Z),ue,nt,Ce,Xe);_e.framebufferTexture2D(_e.FRAMEBUFFER,_e.COLOR_ATTACHMENT0,_e.TEXTURE_CUBE_MAP_POSITIVE_X+he,f.skyboxTexture,0),k.draw(U,_e.TRIANGLES,l.DepthMode.disabled,l.StencilMode.disabled,l.ColorMode.unblended,l.CullFaceMode.frontCW,lt,"skyboxCapture",f.skyboxGeometry.vertexBuffer,f.skyboxGeometry.indexBuffer,f.skyboxGeometry.segment)}function Gi(U,f){return l.transformMat4(U,U,f)}const Po={symbol:function(U,f,k,Z,ue){if(U.renderPass!=="translucent")return;const he=l.StencilMode.disabled,_e=U.colorModeForRenderPass();k.layout.get("text-variable-anchor")&&function(Ce,Xe,nt,lt,yt,Rt,Ut){const Bt=Xe.transform,It=yt==="map",vn=Rt==="map";for(const tn of Ce){const cn=lt.getTile(tn),pn=cn.getBucket(nt);if(!pn||pn.projection!==Bt.projection.name||!pn.text||!pn.text.segments.get().length)continue;const Cn=l.evaluateSizeForZoom(pn.textSizeData,Bt.zoom),un=Xe.transform.calculatePixelsToTileUnitsMatrix(cn),kn=Na(tn.projMatrix,cn.tileID.canonical,vn,It,Xe.transform,un),nr=nt.layout.get("icon-text-fit")!=="none"&&pn.hasIconData();if(Cn){const dr=Math.pow(2,Bt.zoom-cn.tileID.overscaledZ);gn(pn,It,vn,Ut,l.symbolSize,Bt,kn,tn,dr,Cn,nr,Bt.projection)}}}(Z,U,k,f,k.layout.get("text-rotation-alignment"),k.layout.get("text-pitch-alignment"),ue),k.paint.get("icon-opacity").constantOr(1)!==0&&Fn(U,f,k,Z,!1,k.paint.get("icon-translate"),k.paint.get("icon-translate-anchor"),k.layout.get("icon-rotation-alignment"),k.layout.get("icon-pitch-alignment"),k.layout.get("icon-keep-upright"),he,_e),k.paint.get("text-opacity").constantOr(1)!==0&&Fn(U,f,k,Z,!0,k.paint.get("text-translate"),k.paint.get("text-translate-anchor"),k.layout.get("text-rotation-alignment"),k.layout.get("text-pitch-alignment"),k.layout.get("text-keep-upright"),he,_e),f.map.showCollisionBoxes&&(wu(U,f,k,Z,k.paint.get("text-translate"),k.paint.get("text-translate-anchor"),!0),wu(U,f,k,Z,k.paint.get("icon-translate"),k.paint.get("icon-translate-anchor"),!1))},circle:function(U,f,k,Z){if(U.renderPass!=="translucent")return;const ue=k.paint.get("circle-opacity"),he=k.paint.get("circle-stroke-width"),_e=k.paint.get("circle-stroke-opacity"),Ce=k.layout.get("circle-sort-key").constantOr(1)!==void 0;if(ue.constantOr(1)===0&&(he.constantOr(1)===0||_e.constantOr(1)===0))return;const Xe=U.context,nt=Xe.gl,lt=U.transform,yt=U.depthModeForSublayer(0,l.DepthMode.ReadOnly),Rt=l.StencilMode.disabled,Ut=U.colorModeForRenderPass(),Bt=lt.projection.name==="globe",It=[l.mercatorXfromLng(lt.center.lng),l.mercatorYfromLat(lt.center.lat)],vn=[];for(let cn=0;cn<Z.length;cn++){const pn=Z[cn],Cn=f.getTile(pn),un=Cn.getBucket(k);if(!un)continue;const kn=un.programConfigurations.get(k.id),nr=Ko(k);Bt&&nr.push("PROJECTION_GLOBE_VIEW");const dr=U.useProgram("circle",kn,nr),xr=un.layoutVertexBuffer,yr=un.globeExtVertexBuffer,Qr=un.indexBuffer,ir=lt.projection.createInversionMatrix(lt,pn.canonical),gr={programConfiguration:kn,program:dr,layoutVertexBuffer:xr,globeExtVertexBuffer:yr,indexBuffer:Qr,uniformValues:oo(U,pn,Cn,ir,It,k),tile:Cn};if(Ce){const Yr=un.segments.get();for(const Oi of Yr)vn.push({segments:new l.SegmentVector([Oi]),sortKey:Oi.sortKey,state:gr})}else vn.push({segments:un.segments,sortKey:0,state:gr})}Ce&&vn.sort((cn,pn)=>cn.sortKey-pn.sortKey);const tn={useDepthForOcclusion:!Bt};for(const cn of vn){const{programConfiguration:pn,program:Cn,layoutVertexBuffer:un,globeExtVertexBuffer:kn,indexBuffer:nr,uniformValues:dr,tile:xr}=cn.state,yr=cn.segments;U.terrain&&U.terrain.setupElevationDraw(xr,Cn,tn),U.prepareDrawProgram(Xe,Cn,xr.tileID.toUnwrapped()),Cn.draw(Xe,nt.TRIANGLES,yt,Rt,Ut,l.CullFaceMode.disabled,dr,k.id,un,nr,yr,k.paint,lt.zoom,pn,Bt?kn:null)}},heatmap:function(U,f,k,Z){if(k.paint.get("heatmap-opacity")!==0)if(U.renderPass==="offscreen"){const ue=U.context,he=ue.gl,_e=l.StencilMode.disabled,Ce=new l.ColorMode([he.ONE,he.ONE],l.Color.transparent,[!0,!0,!0,!0]);(function(Rt,Ut,Bt){const It=Rt.gl;Rt.activeTexture.set(It.TEXTURE1),Rt.viewport.set([0,0,Ut.width/4,Ut.height/4]);let vn=Bt.heatmapFbo;if(vn)It.bindTexture(It.TEXTURE_2D,vn.colorAttachment.get()),Rt.bindFramebuffer.set(vn.framebuffer);else{const tn=It.createTexture();It.bindTexture(It.TEXTURE_2D,tn),It.texParameteri(It.TEXTURE_2D,It.TEXTURE_WRAP_S,It.CLAMP_TO_EDGE),It.texParameteri(It.TEXTURE_2D,It.TEXTURE_WRAP_T,It.CLAMP_TO_EDGE),It.texParameteri(It.TEXTURE_2D,It.TEXTURE_MIN_FILTER,It.LINEAR),It.texParameteri(It.TEXTURE_2D,It.TEXTURE_MAG_FILTER,It.LINEAR),vn=Bt.heatmapFbo=Rt.createFramebuffer(Ut.width/4,Ut.height/4,!1),function(cn,pn,Cn,un){const kn=cn.gl;kn.texImage2D(kn.TEXTURE_2D,0,kn.RGBA,pn.width/4,pn.height/4,0,kn.RGBA,cn.extRenderToTextureHalfFloat?cn.extTextureHalfFloat.HALF_FLOAT_OES:kn.UNSIGNED_BYTE,null),un.colorAttachment.set(Cn)}(Rt,Ut,tn,vn)}})(ue,U,k),ue.clear({color:l.Color.transparent});const Xe=U.transform,nt=Xe.projection.name==="globe",lt=nt?["PROJECTION_GLOBE_VIEW"]:null,yt=[l.mercatorXfromLng(Xe.center.lng),l.mercatorYfromLat(Xe.center.lat)];for(let Rt=0;Rt<Z.length;Rt++){const Ut=Z[Rt];if(f.hasRenderableParent(Ut))continue;const Bt=f.getTile(Ut),It=Bt.getBucket(k);if(!It)continue;const vn=It.programConfigurations.get(k.id),tn=U.useProgram("heatmap",vn,lt),{zoom:cn}=U.transform;U.terrain&&U.terrain.setupElevationDraw(Bt,tn),U.prepareDrawProgram(ue,tn,Ut.toUnwrapped());const pn=Xe.projection.createInversionMatrix(Xe,Ut.canonical);tn.draw(ue,he.TRIANGLES,l.DepthMode.disabled,_e,Ce,l.CullFaceMode.disabled,Io(U,Ut,Bt,pn,yt,cn,k.paint.get("heatmap-intensity")),k.id,It.layoutVertexBuffer,It.indexBuffer,It.segments,k.paint,U.transform.zoom,vn,nt?It.globeExtVertexBuffer:null)}ue.viewport.set([0,0,U.width,U.height])}else U.renderPass==="translucent"&&(U.context.setColorMode(U.colorModeForRenderPass()),function(ue,he){const _e=ue.context,Ce=_e.gl,Xe=he.heatmapFbo;if(!Xe)return;_e.activeTexture.set(Ce.TEXTURE0),Ce.bindTexture(Ce.TEXTURE_2D,Xe.colorAttachment.get()),_e.activeTexture.set(Ce.TEXTURE1);let nt=he.colorRampTexture;nt||(nt=he.colorRampTexture=new l.Texture(_e,he.colorRamp,Ce.RGBA)),nt.bind(Ce.LINEAR,Ce.CLAMP_TO_EDGE),ue.useProgram("heatmapTexture").draw(_e,Ce.TRIANGLES,l.DepthMode.disabled,l.StencilMode.disabled,ue.colorModeForRenderPass(),l.CullFaceMode.disabled,((lt,yt,Rt,Ut)=>({u_image:0,u_color_ramp:1,u_opacity:yt.paint.get("heatmap-opacity")}))(0,he),he.id,ue.viewportBuffer,ue.quadTriangleIndexBuffer,ue.viewportSegments,he.paint,ue.transform.zoom)}(U,k))},line:function(U,f,k,Z){if(U.renderPass!=="translucent")return;const ue=k.paint.get("line-opacity"),he=k.paint.get("line-width");if(ue.constantOr(1)===0||he.constantOr(1)===0)return;const _e=U.depthModeForSublayer(0,l.DepthMode.ReadOnly),Ce=U.colorModeForRenderPass(),Xe=U.terrain&&U.terrain.renderingToTexture?1:l.exported.devicePixelRatio,nt=k.paint.get("line-dasharray"),lt=nt.constantOr(1),yt=k.layout.get("line-cap"),Rt=k.paint.get("line-pattern"),Ut=Rt.constantOr(1),Bt=k.paint.get("line-gradient"),It=k.getCrossfadeParameters(),vn=Ut?"linePattern":"line",tn=U.context,cn=tn.gl,pn=(un=>{const kn=[];bu(un)&&kn.push("RENDER_LINE_DASH"),un.paint.get("line-gradient")&&kn.push("RENDER_LINE_GRADIENT");const nr=un.paint.get("line-pattern").constantOr(1),dr=un.paint.get("line-opacity").constantOr(1)!==1;return!nr&&dr&&kn.push("RENDER_LINE_ALPHA_DISCARD"),kn})(k);let Cn=pn.includes("RENDER_LINE_ALPHA_DISCARD");U.terrain&&U.terrain.clipOrMaskOverlapStencilType()&&(Cn=!1);for(const un of Z){const kn=f.getTile(un);if(Ut&&!kn.patternsLoaded())continue;const nr=kn.getBucket(k);if(!nr)continue;U.prepareDrawTile();const dr=nr.programConfigurations.get(k.id),xr=U.useProgram(vn,dr,pn),yr=Rt.constantOr(null);if(yr&&kn.imageAtlas){const br=kn.imageAtlas,Ii=br.patternPositions[yr.to.toString()],ea=br.patternPositions[yr.from.toString()];Ii&&ea&&dr.setConstantPatternPositions(Ii,ea)}const Qr=nt.constantOr(null),ir=yt.constantOr(null);if(!Ut&&Qr&&ir&&kn.lineAtlas){const br=kn.lineAtlas,Ii=br.getDash(Qr.to,ir),ea=br.getDash(Qr.from,ir);Ii&&ea&&dr.setConstantPatternPositions(Ii,ea)}const gr=U.terrain?un.projMatrix:null,Yr=Ut?fo(U,kn,k,It,gr,Xe):Jo(U,kn,k,It,gr,nr.lineClipsArray.length,Xe);if(Bt){const br=nr.gradients[k.id];let Ii=br.texture;if(k.gradientVersion!==br.version){let ea=256;if(k.stepInterpolant){const ui=f.getSource().maxzoom,Fi=un.canonical.z===ui?Math.ceil(1<<U.transform.maxZoom-un.canonical.z):1;ea=l.clamp(l.nextPowerOfTwo(nr.maxLineLength/l.EXTENT*1024*Fi),256,tn.maxTextureSize)}br.gradient=l.renderColorRamp({expression:k.gradientExpression(),evaluationKey:"lineProgress",resolution:ea,image:br.gradient||void 0,clips:nr.lineClipsArray}),br.texture?br.texture.update(br.gradient):br.texture=new l.Texture(tn,br.gradient,cn.RGBA),br.version=k.gradientVersion,Ii=br.texture}tn.activeTexture.set(cn.TEXTURE1),Ii.bind(k.stepInterpolant?cn.NEAREST:cn.LINEAR,cn.CLAMP_TO_EDGE)}lt&&(tn.activeTexture.set(cn.TEXTURE0),kn.lineAtlasTexture.bind(cn.LINEAR,cn.REPEAT),dr.updatePaintBuffers(It)),Ut&&(tn.activeTexture.set(cn.TEXTURE0),kn.imageAtlasTexture.bind(cn.LINEAR,cn.CLAMP_TO_EDGE),dr.updatePaintBuffers(It)),U.prepareDrawProgram(tn,xr,un.toUnwrapped());const Oi=br=>{xr.draw(tn,cn.TRIANGLES,_e,br,Ce,l.CullFaceMode.disabled,Yr,k.id,nr.layoutVertexBuffer,nr.indexBuffer,nr.segments,k.paint,U.transform.zoom,dr,nr.layoutVertexBuffer2)};if(Cn){const br=U.stencilModeForClipping(un).ref;br===0&&U.terrain&&tn.clear({stencil:0});const Ii={func:cn.EQUAL,mask:255};Yr.u_alpha_discard_threshold=.8,Oi(new l.StencilMode(Ii,br,255,cn.KEEP,cn.KEEP,cn.INVERT)),Yr.u_alpha_discard_threshold=0,Oi(new l.StencilMode(Ii,br,255,cn.KEEP,cn.KEEP,cn.KEEP))}else Oi(U.stencilModeForClipping(un))}Cn&&(U.resetStencilClippingMasks(),U.terrain&&tn.clear({stencil:0}))},fill:function(U,f,k,Z){const ue=k.paint.get("fill-color"),he=k.paint.get("fill-opacity");if(he.constantOr(1)===0)return;const _e=U.colorModeForRenderPass(),Ce=k.paint.get("fill-pattern"),Xe=U.opaquePassEnabledForLayer()&&!Ce.constantOr(1)&&ue.constantOr(l.Color.transparent).a===1&&he.constantOr(0)===1?"opaque":"translucent";if(U.renderPass===Xe){const nt=U.depthModeForSublayer(1,U.renderPass==="opaque"?l.DepthMode.ReadWrite:l.DepthMode.ReadOnly);Nr(U,f,k,Z,nt,_e,!1)}if(U.renderPass==="translucent"&&k.paint.get("fill-antialias")){const nt=U.depthModeForSublayer(k.getPaintProperty("fill-outline-color")?2:0,l.DepthMode.ReadOnly);Nr(U,f,k,Z,nt,_e,!0)}},"fill-extrusion":function(U,f,k,Z){const ue=k.paint.get("fill-extrusion-opacity");if(ue!==0&&U.renderPass==="translucent"){const he=new l.DepthMode(U.context.gl.LEQUAL,l.DepthMode.ReadWrite,U.depthRangeFor3D);if(ue!==1||k.paint.get("fill-extrusion-pattern").constantOr(1))_i(U,f,k,Z,he,l.StencilMode.disabled,l.ColorMode.disabled),_i(U,f,k,Z,he,U.stencilModeFor3D(),U.colorModeForRenderPass()),U.resetStencilClippingMasks();else{const _e=U.colorModeForRenderPass();_i(U,f,k,Z,he,l.StencilMode.disabled,_e)}}},hillshade:function(U,f,k,Z){if(U.renderPass!=="offscreen"&&U.renderPass!=="translucent")return;const ue=U.context,he=U.depthModeForSublayer(0,l.DepthMode.ReadOnly),_e=U.colorModeForRenderPass(),Ce=U.terrain&&U.terrain.renderingToTexture,[Xe,nt]=U.renderPass!=="translucent"||Ce?[{},Z]:U.stencilConfigForOverlap(Z);for(const lt of nt){const yt=f.getTile(lt);if(yt.needsHillshadePrepare&&U.renderPass==="offscreen")Re(U,yt,k,he,l.StencilMode.disabled,_e);else if(U.renderPass==="translucent"){const Rt=Ce&&U.terrain?U.terrain.stencilModeForRTTOverlap(lt):Xe[lt.overscaledZ];ve(U,lt,yt,k,he,Rt,_e)}}ue.viewport.set([0,0,U.width,U.height]),U.resetStencilClippingMasks()},raster:function(U,f,k,Z,ue,he){if(U.renderPass!=="translucent"||k.paint.get("raster-opacity")===0||!Z.length)return;const _e=U.context,Ce=_e.gl,Xe=f.getSource(),nt=U.useProgram("raster"),lt=U.colorModeForRenderPass(),yt=U.terrain&&U.terrain.renderingToTexture,[Rt,Ut]=Xe instanceof mn||yt?[{},Z]:U.stencilConfigForOverlap(Z),Bt=Ut[Ut.length-1].overscaledZ,It=!U.options.moving;for(const vn of Ut){const tn=yt?l.DepthMode.disabled:U.depthModeForSublayer(vn.overscaledZ-Bt,k.paint.get("raster-opacity")===1?l.DepthMode.ReadWrite:l.DepthMode.ReadOnly,Ce.LESS),cn=vn.toUnwrapped(),pn=f.getTile(vn);if(yt&&(!pn||!pn.hasData()))continue;const Cn=yt?vn.projMatrix:U.transform.calculateProjMatrix(cn,It),un=U.terrain&&yt?U.terrain.stencilModeForRTTOverlap(vn):Rt[vn.overscaledZ],kn=he?0:k.paint.get("raster-fade-duration");pn.registerFadeDuration(kn);const nr=f.findLoadedParent(vn,0),dr=Or(pn,nr,f,U.transform,kn);let xr,yr;U.terrain&&U.terrain.prepareDrawTile();const Qr=k.paint.get("raster-resampling")==="nearest"?Ce.NEAREST:Ce.LINEAR;_e.activeTexture.set(Ce.TEXTURE0),pn.texture.bind(Qr,Ce.CLAMP_TO_EDGE),_e.activeTexture.set(Ce.TEXTURE1),nr?(nr.texture.bind(Qr,Ce.CLAMP_TO_EDGE),xr=Math.pow(2,nr.tileID.overscaledZ-pn.tileID.overscaledZ),yr=[pn.tileID.canonical.x*xr%1,pn.tileID.canonical.y*xr%1]):pn.texture.bind(Qr,Ce.CLAMP_TO_EDGE);const ir=Wo(Cn,yr||[0,0],xr||1,dr,k,Xe instanceof mn?Xe.perspectiveTransform:[0,0]);if(U.prepareDrawProgram(_e,nt,cn),Xe instanceof mn)Xe.boundsBuffer&&Xe.boundsSegments&&nt.draw(_e,Ce.TRIANGLES,tn,l.StencilMode.disabled,lt,l.CullFaceMode.disabled,ir,k.id,Xe.boundsBuffer,U.quadTriangleIndexBuffer,Xe.boundsSegments);else{const{tileBoundsBuffer:gr,tileBoundsIndexBuffer:Yr,tileBoundsSegments:Oi}=U.getTileBoundsBuffers(pn);nt.draw(_e,Ce.TRIANGLES,tn,un,lt,l.CullFaceMode.disabled,ir,k.id,gr,Yr,Oi)}}U.resetStencilClippingMasks()},background:function(U,f,k,Z){const ue=k.paint.get("background-color"),he=k.paint.get("background-opacity");if(he===0)return;const _e=U.context,Ce=_e.gl,Xe=U.transform,nt=Xe.tileSize,lt=k.paint.get("background-pattern");if(U.isPatternMissing(lt))return;const yt=!lt&&ue.a===1&&he===1&&U.opaquePassEnabledForLayer()?"opaque":"translucent";if(U.renderPass!==yt)return;const Rt=l.StencilMode.disabled,Ut=U.depthModeForSublayer(0,yt==="opaque"?l.DepthMode.ReadWrite:l.DepthMode.ReadOnly),Bt=U.colorModeForRenderPass(),It=U.useProgram(lt?"backgroundPattern":"background");let vn,tn=Z;tn||(vn=U.getBackgroundTiles(),tn=Object.values(vn).map(pn=>pn.tileID)),lt&&(_e.activeTexture.set(Ce.TEXTURE0),U.imageManager.bind(U.context));const cn=k.getCrossfadeParameters();for(const pn of tn){const Cn=pn.toUnwrapped(),un=Z?pn.projMatrix:U.transform.calculateProjMatrix(Cn);U.prepareDrawTile();const kn=f?f.getTile(pn):vn?vn[pn.key]:new l.Tile(pn,nt,Xe.zoom,U),nr=lt?Bl(un,he,U,lt,{tileID:pn,tileSize:nt},cn):Xl(un,he,ue);U.prepareDrawProgram(_e,It,Cn);const{tileBoundsBuffer:dr,tileBoundsIndexBuffer:xr,tileBoundsSegments:yr}=U.getTileBoundsBuffers(kn);It.draw(_e,Ce.TRIANGLES,Ut,Rt,Bt,l.CullFaceMode.disabled,nr,k.id,dr,xr,yr)}},sky:function(U,f,k){const Z=U.transform,ue=Z.projection.name==="mercator"||Z.projection.name==="globe"?1:l.smoothstep(7,8,Z.zoom),he=k.paint.get("sky-opacity")*ue;if(he===0)return;const _e=U.context,Ce=k.paint.get("sky-type"),Xe=new l.DepthMode(_e.gl.LEQUAL,l.DepthMode.ReadOnly,[0,1]),nt=U.frameCounter/1e3%1;Ce==="atmosphere"?U.renderPass==="offscreen"?k.needsSkyboxCapture(U)&&(function(lt,yt,Rt,Ut){const Bt=lt.context,It=Bt.gl;let vn=yt.skyboxFbo;if(!vn){vn=yt.skyboxFbo=Bt.createFramebuffer(32,32,!1),yt.skyboxGeometry=new Fr(Bt),yt.skyboxTexture=Bt.gl.createTexture(),It.bindTexture(It.TEXTURE_CUBE_MAP,yt.skyboxTexture),It.texParameteri(It.TEXTURE_CUBE_MAP,It.TEXTURE_WRAP_S,It.CLAMP_TO_EDGE),It.texParameteri(It.TEXTURE_CUBE_MAP,It.TEXTURE_WRAP_T,It.CLAMP_TO_EDGE),It.texParameteri(It.TEXTURE_CUBE_MAP,It.TEXTURE_MIN_FILTER,It.LINEAR),It.texParameteri(It.TEXTURE_CUBE_MAP,It.TEXTURE_MAG_FILTER,It.LINEAR);for(let Cn=0;Cn<6;++Cn)It.texImage2D(It.TEXTURE_CUBE_MAP_POSITIVE_X+Cn,0,It.RGBA,32,32,0,It.RGBA,It.UNSIGNED_BYTE,null)}Bt.bindFramebuffer.set(vn.framebuffer),Bt.viewport.set([0,0,32,32]);const tn=yt.getCenter(lt,!0),cn=lt.useProgram("skyboxCapture"),pn=new Float64Array(16);l.identity(pn),l.rotateY(pn,pn,.5*-Math.PI),ni(Bt,yt,cn,pn,tn,0),l.identity(pn),l.rotateY(pn,pn,.5*Math.PI),ni(Bt,yt,cn,pn,tn,1),l.identity(pn),l.rotateX(pn,pn,.5*-Math.PI),ni(Bt,yt,cn,pn,tn,2),l.identity(pn),l.rotateX(pn,pn,.5*Math.PI),ni(Bt,yt,cn,pn,tn,3),l.identity(pn),ni(Bt,yt,cn,pn,tn,4),l.identity(pn),l.rotateY(pn,pn,Math.PI),ni(Bt,yt,cn,pn,tn,5),Bt.viewport.set([0,0,lt.width,lt.height])}(U,k),k.markSkyboxValid(U)):U.renderPass==="sky"&&function(lt,yt,Rt,Ut,Bt){const It=lt.context,vn=It.gl,tn=lt.transform,cn=lt.useProgram("skybox");It.activeTexture.set(vn.TEXTURE0),vn.bindTexture(vn.TEXTURE_CUBE_MAP,yt.skyboxTexture);const pn=((Cn,un,kn,nr,dr)=>({u_matrix:Cn,u_sun_direction:un,u_cubemap:0,u_opacity:nr,u_temporal_offset:dr}))(tn.skyboxMatrix,yt.getCenter(lt,!1),0,Ut,Bt);lt.prepareDrawProgram(It,cn),cn.draw(It,vn.TRIANGLES,Rt,l.StencilMode.disabled,lt.colorModeForRenderPass(),l.CullFaceMode.backCW,pn,"skybox",yt.skyboxGeometry.vertexBuffer,yt.skyboxGeometry.indexBuffer,yt.skyboxGeometry.segment)}(U,k,Xe,he,nt):Ce==="gradient"&&U.renderPass==="sky"&&function(lt,yt,Rt,Ut,Bt){const It=lt.context,vn=It.gl,tn=lt.transform,cn=lt.useProgram("skyboxGradient");yt.skyboxGeometry||(yt.skyboxGeometry=new Fr(It)),It.activeTexture.set(vn.TEXTURE0);let pn=yt.colorRampTexture;pn||(pn=yt.colorRampTexture=new l.Texture(It,yt.colorRamp,vn.RGBA)),pn.bind(vn.LINEAR,vn.CLAMP_TO_EDGE);const Cn=((un,kn,nr,dr,xr)=>({u_matrix:un,u_color_ramp:0,u_center_direction:kn,u_radius:l.degToRad(nr),u_opacity:dr,u_temporal_offset:xr}))(tn.skyboxMatrix,yt.getCenter(lt,!1),yt.paint.get("sky-gradient-radius"),Ut,Bt);lt.prepareDrawProgram(It,cn),cn.draw(It,vn.TRIANGLES,Rt,l.StencilMode.disabled,lt.colorModeForRenderPass(),l.CullFaceMode.backCW,Cn,"skyboxGradient",yt.skyboxGeometry.vertexBuffer,yt.skyboxGeometry.indexBuffer,yt.skyboxGeometry.segment)}(U,k,Xe,he,nt)},debug:function(U,f,k){for(let Z=0;Z<k.length;Z++)oi(U,f,k[Z])},custom:function(U,f,k){const Z=U.context,ue=k.implementation;if(U.transform.projection.unsupportedLayers&&U.transform.projection.unsupportedLayers.includes("custom"))l.warnOnce("Custom layers are not yet supported with non-mercator projections. Use mercator to enable custom layers.");else if(U.renderPass==="offscreen"){const he=ue.prerender;he&&(U.setCustomLayerDefaults(),Z.setColorMode(U.colorModeForRenderPass()),he.call(ue,Z.gl,U.transform.customLayerMatrix()),Z.setDirty(),U.setBaseState())}else if(U.renderPass==="translucent"){U.setCustomLayerDefaults(),Z.setColorMode(U.colorModeForRenderPass()),Z.setStencilMode(l.StencilMode.disabled);const he=ue.renderingMode==="3d"?new l.DepthMode(U.context.gl.LEQUAL,l.DepthMode.ReadWrite,U.depthRangeFor3D):U.depthModeForSublayer(0,l.DepthMode.ReadOnly);Z.setDepthMode(he),ue.render(Z.gl,U.transform.customLayerMatrix()),Z.setDirty(),U.setBaseState(),Z.bindFramebuffer.set(null)}}};class Yo{constructor(f,k){this.context=new dt(f),this.transform=k,this._tileTextures={},this.frameCopies=[],this.loadTimeStamps=[],this.setup(),this.numSublayers=l.SourceCache.maxUnderzooming+l.SourceCache.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Kt,this.gpuTimers={},this.frameCounter=0,this._backgroundTiles={},this._tileClippingMaskIDs=new Map,this._skippedStencilTileIDs=new Set}updateTerrain(f,k){const Z=!!f&&!!f.terrain&&this.transform.projection.supportsTerrain;if(!(Z||this._terrain&&this._terrain.enabled))return;this._terrain||(this._terrain=new Ya(this,f));const ue=this._terrain;this.transform.elevation=Z?ue:null,ue.update(f,this.transform,k)}_updateFog(f){const k=f.fog;if(!k||k.getOpacity(this.transform.pitch)<1||k.properties.get("horizon-blend")<.03)return void(this.transform.fogCullDistSq=null);const[Z,ue]=k.getFovAdjustedRange(this.transform._fov);if(Z>ue)return void(this.transform.fogCullDistSq=null);const he=Z+.78*(ue-Z);this.transform.fogCullDistSq=he*he}get terrain(){return this.transform._terrainEnabled()&&this._terrain&&this._terrain.enabled?this._terrain:null}resize(f,k){if(this.width=f*l.exported.devicePixelRatio,this.height=k*l.exported.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(const Z of this.style.order)this.style._layers[Z].resize()}setup(){const f=this.context,k=new l.StructArrayLayout2i4;k.emplaceBack(0,0),k.emplaceBack(l.EXTENT,0),k.emplaceBack(0,l.EXTENT),k.emplaceBack(l.EXTENT,l.EXTENT),this.tileExtentBuffer=f.createVertexBuffer(k,l.posAttributes.members),this.tileExtentSegments=l.SegmentVector.simpleSegment(0,0,4,2);const Z=new l.StructArrayLayout2i4;Z.emplaceBack(0,0),Z.emplaceBack(l.EXTENT,0),Z.emplaceBack(0,l.EXTENT),Z.emplaceBack(l.EXTENT,l.EXTENT),this.debugBuffer=f.createVertexBuffer(Z,l.posAttributes.members),this.debugSegments=l.SegmentVector.simpleSegment(0,0,4,5);const ue=new l.StructArrayLayout2i4;ue.emplaceBack(-1,-1),ue.emplaceBack(1,-1),ue.emplaceBack(-1,1),ue.emplaceBack(1,1),this.viewportBuffer=f.createVertexBuffer(ue,l.posAttributes.members),this.viewportSegments=l.SegmentVector.simpleSegment(0,0,4,2);const he=new l.StructArrayLayout4i8;he.emplaceBack(0,0,0,0),he.emplaceBack(l.EXTENT,0,l.EXTENT,0),he.emplaceBack(0,l.EXTENT,0,l.EXTENT),he.emplaceBack(l.EXTENT,l.EXTENT,l.EXTENT,l.EXTENT),this.mercatorBoundsBuffer=f.createVertexBuffer(he,l.boundsAttributes.members),this.mercatorBoundsSegments=l.SegmentVector.simpleSegment(0,0,4,2);const _e=new l.StructArrayLayout3ui6;_e.emplaceBack(0,1,2),_e.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=f.createIndexBuffer(_e);const Ce=new l.StructArrayLayout1ui2;for(const nt of[0,1,3,2,0])Ce.emplaceBack(nt);this.debugIndexBuffer=f.createIndexBuffer(Ce),this.emptyTexture=new l.Texture(f,new l.RGBAImage({width:1,height:1},Uint8Array.of(0,0,0,0)),f.gl.RGBA),this.identityMat=l.create();const Xe=this.context.gl;this.stencilClearMode=new l.StencilMode({func:Xe.ALWAYS,mask:0},0,255,Xe.ZERO,Xe.ZERO,Xe.ZERO),this.loadTimeStamps.push(l.window.performance.now())}getMercatorTileBoundsBuffers(){return{tileBoundsBuffer:this.mercatorBoundsBuffer,tileBoundsIndexBuffer:this.quadTriangleIndexBuffer,tileBoundsSegments:this.mercatorBoundsSegments}}getTileBoundsBuffers(f){return f._makeTileBoundsBuffers(this.context,this.transform.projection),f._tileBoundsBuffer?{tileBoundsBuffer:f._tileBoundsBuffer,tileBoundsIndexBuffer:f._tileBoundsIndexBuffer,tileBoundsSegments:f._tileBoundsSegments}:this.getMercatorTileBoundsBuffers()}clearStencil(){const f=this.context,k=f.gl;this.nextStencilID=1,this.currentStencilSource=void 0,this._tileClippingMaskIDs.clear(),this._skippedStencilTileIDs.clear(),this.useProgram("clippingMask").draw(f,k.TRIANGLES,l.DepthMode.disabled,this.stencilClearMode,l.ColorMode.disabled,l.CullFaceMode.disabled,Gn(this.identityMat),"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}resetStencilClippingMasks(){this.terrain||(this.currentStencilSource=void 0,this._tileClippingMaskIDs.clear(),this._skippedStencilTileIDs.clear())}_renderTileClippingMasks(f,k,Z){if(!k||this.currentStencilSource===k.id||!f.isTileClipped()||!Z||Z.length===0)return;const ue=[];let he=!1;if(this._tileClippingMaskIDs&&!this.terrain){for(const lt of Z)if(this._tileClippingMaskIDs.has(lt.key)||(he=!0),this._skippedStencilTileIDs.has(lt.key)){if(!k.getTile(lt).getBucket(f))continue;this._skippedStencilTileIDs.delete(lt.key),ue.push(lt)}if(!he&&ue.length===0)return}const _e=this.context,Ce=_e.gl;_e.setColorMode(l.ColorMode.disabled),_e.setDepthMode(l.DepthMode.disabled);const Xe=this.useProgram("clippingMask"),nt=lt=>{const yt=k.getTile(lt),{tileBoundsBuffer:Rt,tileBoundsIndexBuffer:Ut,tileBoundsSegments:Bt}=this.getTileBoundsBuffers(yt);Xe.draw(_e,Ce.TRIANGLES,l.DepthMode.disabled,new l.StencilMode({func:Ce.GREATER,mask:255},this._tileClippingMaskIDs.get(lt.key)||0,255,Ce.KEEP,Ce.KEEP,Ce.REPLACE),l.ColorMode.disabled,l.CullFaceMode.disabled,Gn(lt.projMatrix),"$clipping",Rt,Ut,Bt)};if(!he&&ue.length>0)for(const lt of ue)nt(lt);else{(this._tileClippingMaskIDs.size===0||this.nextStencilID+Z.length>256)&&this.clearStencil(),this._tileClippingMaskIDs.clear(),this._skippedStencilTileIDs.clear();for(const lt of Z)this._tileClippingMaskIDs.set(lt.key,this.nextStencilID++),k.getTile(lt).getBucket(f)?nt(lt):this._skippedStencilTileIDs.add(lt.key)}this._skippedStencilTileIDs.size===0&&(this.currentStencilSource=k.id)}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();const f=this.nextStencilID++,k=this.context.gl;return new l.StencilMode({func:k.NOTEQUAL,mask:255},f,255,k.KEEP,k.KEEP,k.REPLACE)}stencilModeForClipping(f){if(this.terrain)return this.terrain.stencilModeForRTTOverlap(f);const k=this.context.gl;return new l.StencilMode({func:k.EQUAL,mask:255},this._tileClippingMaskIDs.get(f.key)||0,0,k.KEEP,k.KEEP,k.REPLACE)}stencilConfigForOverlap(f){const k=this.context.gl,Z=f.sort((_e,Ce)=>Ce.overscaledZ-_e.overscaledZ),ue=Z[Z.length-1].overscaledZ,he=Z[0].overscaledZ-ue+1;if(he>1){this.currentStencilSource=void 0,this.nextStencilID+he>256&&this.clearStencil();const _e={};for(let Ce=0;Ce<he;Ce++)_e[Ce+ue]=new l.StencilMode({func:k.GEQUAL,mask:255},Ce+this.nextStencilID,255,k.KEEP,k.KEEP,k.REPLACE);return this.nextStencilID+=he,[_e,Z]}return[{[ue]:l.StencilMode.disabled},Z]}colorModeForRenderPass(){const f=this.context.gl;return this._showOverdrawInspector?new l.ColorMode([f.CONSTANT_COLOR,f.ONE],new l.Color(.125,.125,.125,0),[!0,!0,!0,!0]):this.renderPass==="opaque"?l.ColorMode.unblended:l.ColorMode.alphaBlended}depthModeForSublayer(f,k,Z){if(!this.opaquePassEnabledForLayer())return l.DepthMode.disabled;const ue=1-((1+this.currentLayer)*this.numSublayers+f)*this.depthEpsilon;return new l.DepthMode(Z||this.context.gl.LEQUAL,k,[ue,ue])}opaquePassEnabledForLayer(){return this.currentLayer<this.opaquePassCutoff}render(f,k){this.style=f,this.options=k,this.lineAtlas=f.lineAtlas,this.imageManager=f.imageManager,this.glyphManager=f.glyphManager,this.symbolFadeChange=f.placement.symbolFadeChange(l.exported.now()),this.imageManager.beginFrame();const Z=this.style.order,ue=this.style._sourceCaches;for(const nt in ue){const lt=ue[nt];lt.used&&lt.prepare(this.context)}const he={},_e={},Ce={};for(const nt in ue){const lt=ue[nt];he[nt]=lt.getVisibleCoordinates(),_e[nt]=he[nt].slice().reverse(),Ce[nt]=lt.getVisibleCoordinates(!0).reverse()}this.opaquePassCutoff=1/0;for(let nt=0;nt<Z.length;nt++)if(this.style._layers[Z[nt]].is3D()){this.opaquePassCutoff=nt;break}if(this.terrain&&(this.terrain.updateTileBinding(Ce),this.opaquePassCutoff=0),this.transform.projection.name!=="globe"||this.globeSharedBuffers||(this.globeSharedBuffers=new l.GlobeSharedBuffers(this.context)),!l.isMapAuthenticated(this.context.gl))return;this.renderPass="offscreen";for(const nt of Z){const lt=this.style._layers[nt],yt=f._getLayerSourceCache(lt);if(!lt.hasOffscreenPass()||lt.isHidden(this.transform.zoom))continue;const Rt=yt?_e[yt.id]:void 0;(lt.type==="custom"||lt.isSky()||Rt&&Rt.length)&&this.renderLayer(this,yt,lt,Rt)}this.depthRangeFor3D=[0,1-(f.order.length+2)*this.numSublayers*this.depthEpsilon],this.terrain&&(this.style.hasSymbolLayers()||this.style.hasCircleLayers())&&this.terrain.drawDepth(),this.context.bindFramebuffer.set(null),this.context.viewport.set([0,0,this.width,this.height]);let Xe=l.Color.transparent;if(this.style.fog&&this.style.fog.getOpacity(this.transform.pitch)&&(Xe=this.style.fog.properties.get("color")),this.context.clear({color:k.showOverdrawInspector?l.Color.black:Xe,depth:1}),this.clearStencil(),this._showOverdrawInspector=k.showOverdrawInspector,this.renderPass="opaque",!this.terrain)for(this.currentLayer=Z.length-1;this.currentLayer>=0;this.currentLayer--){const nt=this.style._layers[Z[this.currentLayer]],lt=f._getLayerSourceCache(nt);if(nt.isSky())continue;const yt=lt?_e[lt.id]:void 0;this._renderTileClippingMasks(nt,lt,yt),this.renderLayer(this,lt,nt,yt)}if(this.renderPass="sky",(l.globeToMercatorTransition(this.transform.zoom)>0||this.transform.projection.name!=="globe")&&this.transform.isHorizonVisible())for(this.currentLayer=0;this.currentLayer<Z.length;this.currentLayer++){const nt=this.style._layers[Z[this.currentLayer]],lt=f._getLayerSourceCache(nt);nt.isSky()&&this.renderLayer(this,lt,nt,lt?_e[lt.id]:void 0)}for(this.transform.projection.name==="globe"&&function(nt){const lt=nt.context,yt=lt.gl,Rt=nt.transform,Ut=new l.DepthMode(yt.LEQUAL,l.DepthMode.ReadOnly,[0,1]),Bt=nt.useProgram("globeAtmosphere"),It=Rt.centerOffset,vn=Rt._camera.getCameraToClipPerspective(Rt._fov,Rt.width/Rt.height,Rt._nearZ,Rt._farZ);vn[8]=2*-It.x/Rt.width,vn[9]=2*It.y/Rt.height;const tn=l.invert([],vn),cn=l.mul([],tn,Rt.projMatrix),pn={u_frustum_tl:Gi([-1,1,1],tn),u_frustum_tr:Gi([1,1,1],tn),u_frustum_br:Gi([1,-1,1],tn),u_frustum_bl:Gi([-1,-1,1],tn),u_globe_pos:Gi([Rt.globeMatrix[12],Rt.globeMatrix[13],Rt.globeMatrix[14]],cn),u_globe_radius:Rt.worldSize/2/Math.PI-1,u_opacity:1-l.globeToMercatorTransition(Rt.zoom),u_fadeout_range:2,u_start_color:[1,1,1],u_end_color:[.0118,.7451,.9882]};nt.prepareDrawProgram(lt,Bt);const Cn=nt.globeSharedBuffers;Cn&&Bt.draw(lt,yt.TRIANGLES,Ut,l.StencilMode.disabled,l.ColorMode.alphaBlended,l.CullFaceMode.backCW,pn,"skybox",Cn.atmosphereVertexBuffer,Cn.atmosphereIndexBuffer,Cn.atmosphereSegments)}(this),this.renderPass="translucent",this.currentLayer=0;this.currentLayer<Z.length;){const nt=this.style._layers[Z[this.currentLayer]],lt=f._getLayerSourceCache(nt);if(nt.isSky()){++this.currentLayer;continue}if(this.terrain&&this.style.isLayerDraped(nt)){if(nt.isHidden(this.transform.zoom)){++this.currentLayer;continue}this.currentLayer=this.terrain.renderBatch(this.currentLayer);continue}const yt=lt?(nt.type==="symbol"?Ce:_e)[lt.id]:void 0;this._renderTileClippingMasks(nt,lt,lt?he[lt.id]:void 0),this.renderLayer(this,lt,nt,yt),++this.currentLayer}if(this.terrain&&this.terrain.postRender(),this.options.showTileBoundaries||this.options.showQueryGeometry){let nt=null;l.values(this.style._layers).forEach(lt=>{const yt=f._getLayerSourceCache(lt);yt&&!lt.isHidden(this.transform.zoom)&&(!nt||nt.getSource().maxzoom<yt.getSource().maxzoom)&&(nt=yt)}),nt&&this.options.showTileBoundaries&&Po.debug(this,nt,nt.getVisibleCoordinates())}this.options.showPadding&&function(nt){const lt=nt.transform.padding;Hn(nt,nt.transform.height-(lt.top||0),3,Vt),Hn(nt,lt.bottom||0,3,Wt),kr(nt,lt.left||0,3,Jn),kr(nt,nt.transform.width-(lt.right||0),3,Vn);const yt=nt.transform.centerPoint;(function(Rt,Ut,Bt,It){fi(Rt,Ut-1,Bt-10,2,20,It),fi(Rt,Ut-10,Bt-1,20,2,It)})(nt,yt.x,nt.transform.height-yt.y,Bn)}(this),this.context.setDefault(),this.frameCounter=(this.frameCounter+1)%Number.MAX_SAFE_INTEGER,this.tileLoaded&&this.options.speedIndexTiming&&(this.loadTimeStamps.push(l.window.performance.now()),this.saveCanvasCopy())}renderLayer(f,k,Z,ue){Z.isHidden(this.transform.zoom)||(Z.type==="background"||Z.type==="sky"||Z.type==="custom"||ue&&ue.length)&&(this.id=Z.id,this.gpuTimingStart(Z),f.transform.projection.unsupportedLayers&&f.transform.projection.unsupportedLayers.includes(Z.type)||Po[Z.type](f,k,Z,ue,this.style.placement.variableOffsets,this.options.isInitialLoad),this.gpuTimingEnd())}gpuTimingStart(f){if(!this.options.gpuTiming)return;const k=this.context.extTimerQuery;let Z=this.gpuTimers[f.id];Z||(Z=this.gpuTimers[f.id]={calls:0,cpuTime:0,query:k.createQueryEXT()}),Z.calls++,k.beginQueryEXT(k.TIME_ELAPSED_EXT,Z.query)}gpuTimingEnd(){if(!this.options.gpuTiming)return;const f=this.context.extTimerQuery;f.endQueryEXT(f.TIME_ELAPSED_EXT)}collectGpuTimers(){const f=this.gpuTimers;return this.gpuTimers={},f}queryGpuTimers(f){const k={};for(const Z in f){const ue=f[Z],he=this.context.extTimerQuery,_e=he.getQueryObjectEXT(ue.query,he.QUERY_RESULT_EXT)/1e6;he.deleteQueryEXT(ue.query),k[Z]=_e}return k}translatePosMatrix(f,k,Z,ue,he){if(!Z[0]&&!Z[1])return f;const _e=he?ue==="map"?this.transform.angle:0:ue==="viewport"?-this.transform.angle:0;if(_e){const nt=Math.sin(_e),lt=Math.cos(_e);Z=[Z[0]*lt-Z[1]*nt,Z[0]*nt+Z[1]*lt]}const Ce=[he?Z[0]:Be(k,Z[0],this.transform.zoom),he?Z[1]:Be(k,Z[1],this.transform.zoom),0],Xe=new Float32Array(16);return l.translate(Xe,f,Ce),Xe}saveTileTexture(f){const k=this._tileTextures[f.size[0]];k?k.push(f):this._tileTextures[f.size[0]]=[f]}getTileTexture(f){const k=this._tileTextures[f];return k&&k.length>0?k.pop():null}isPatternMissing(f){if(!f)return!1;if(!f.from||!f.to)return!0;const k=this.imageManager.getPattern(f.from.toString()),Z=this.imageManager.getPattern(f.to.toString());return!k||!Z}currentGlobalDefines(){const f=this.terrain&&this.terrain.renderingToTexture,k=this.style&&this.style.fog,Z=[];return this.terrain&&!this.terrain.renderingToTexture&&Z.push("TERRAIN"),k&&!f&&k.getOpacity(this.transform.pitch)!==0&&Z.push("FOG"),f&&Z.push("RENDER_TO_TEXTURE"),this._showOverdrawInspector&&Z.push("OVERDRAW_INSPECTOR"),Z}useProgram(f,k,Z){this.cache=this.cache||{};const ue=Z||[],he=this.currentGlobalDefines().concat(ue),_e=Yi.cacheKey(f,he,k);return this.cache[_e]||(this.cache[_e]=new Yi(this.context,f,qe[f],k,ga[f],he)),this.cache[_e]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.frontFace.setDefault(),this.context.cullFaceSide.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){const f=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(f.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=l.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new l.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this._terrain&&this._terrain.destroy(),this.globeSharedBuffers&&this.globeSharedBuffers.destroy(),this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}prepareDrawTile(){this.terrain&&this.terrain.prepareDrawTile()}prepareDrawProgram(f,k,Z){if(this.terrain&&this.terrain.renderingToTexture)return;const ue=this.style.fog;if(ue){const he=ue.getOpacity(this.transform.pitch);he!==0&&k.setFogUniformValues(f,((_e,Ce,Xe,nt)=>{const lt=Ce.properties.get("color"),yt=_e.frameCounter/1e3%1,Rt=[lt.r/lt.a,lt.g/lt.a,lt.b/lt.a,nt];return{u_fog_matrix:Xe?_e.transform.calculateFogTileMatrix(Xe):_e.identityMat,u_fog_range:Ce.getFovAdjustedRange(_e.transform._fov),u_fog_color:Rt,u_fog_horizon_blend:Ce.properties.get("horizon-blend"),u_fog_temporal_offset:yt}})(this,ue,Z,he))}}setTileLoadedFlag(f){this.tileLoaded=f}saveCanvasCopy(){this.frameCopies.push(this.canvasCopy()),this.tileLoaded=!1}canvasCopy(){const f=this.context.gl,k=f.createTexture();return f.bindTexture(f.TEXTURE_2D,k),f.copyTexImage2D(f.TEXTURE_2D,0,f.RGBA,0,0,f.drawingBufferWidth,f.drawingBufferHeight,0),k}getCanvasCopiesAndTimestamps(){return{canvasCopies:this.frameCopies,timeStamps:this.loadTimeStamps}}averageElevationNeedsEasing(){if(!this.transform._elevation)return!1;const f=this.style&&this.style.fog;return!!f&&f.getOpacity(this.transform.pitch)!==0}getBackgroundTiles(){const f=this._backgroundTiles,k=this._backgroundTiles={},Z=this.transform.coveringTiles({tileSize:512});for(const ue of Z)k[ue.key]=f[ue.key]||new l.Tile(ue,512,this.transform.tileZoom,this);return k}clearBackgroundTiles(){this._backgroundTiles={}}}class xo{constructor(f=0,k=0,Z=0,ue=0){if(isNaN(f)||f<0||isNaN(k)||k<0||isNaN(Z)||Z<0||isNaN(ue)||ue<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=f,this.bottom=k,this.left=Z,this.right=ue}interpolate(f,k,Z){return k.top!=null&&f.top!=null&&(this.top=l.number(f.top,k.top,Z)),k.bottom!=null&&f.bottom!=null&&(this.bottom=l.number(f.bottom,k.bottom,Z)),k.left!=null&&f.left!=null&&(this.left=l.number(f.left,k.left,Z)),k.right!=null&&f.right!=null&&(this.right=l.number(f.right,k.right,Z)),this}getCenter(f,k){const Z=l.clamp((this.left+f-this.right)/2,0,f),ue=l.clamp((this.top+k-this.bottom)/2,0,k);return new l.pointGeometry(Z,ue)}equals(f){return this.top===f.top&&this.bottom===f.bottom&&this.left===f.left&&this.right===f.right}clone(){return new xo(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function Zs(U,f){const k=l.getColumn(U,3);l.fromQuat(U,f),l.setColumn(U,3,k)}function As(U,f){const k=l.identity$1([]);return l.rotateZ$1(k,k,-f),l.rotateX$1(k,k,-U),k}function Uo(U,f){const k=[U[0],U[1],0],Z=[f[0],f[1],0];if(l.length(k)>=1e-15){const _e=l.normalize([],k);l.scale$2(Z,_e,l.dot(Z,_e)),f[0]=Z[0],f[1]=Z[1]}const ue=l.cross([],f,U);if(l.len(ue)<1e-15)return null;const he=Math.atan2(-ue[1],ue[0]);return As(Math.atan2(Math.sqrt(U[0]*U[0]+U[1]*U[1]),-U[2]),he)}class cc{constructor(f,k){this.position=f,this.orientation=k}get position(){return this._position}set position(f){if(f){const k=f instanceof l.MercatorCoordinate?f:new l.MercatorCoordinate(f[0],f[1],f[2]);this._renderWorldCopies&&(k.x=l.wrap(k.x,0,1)),this._position=k}else this._position=null}lookAtPoint(f,k){if(this.orientation=null,!this.position)return;const Z=this._elevation?this._elevation.getAtPointOrZero(l.MercatorCoordinate.fromLngLat(f)):0,ue=this.position,he=l.MercatorCoordinate.fromLngLat(f,Z),_e=[he.x-ue.x,he.y-ue.y,he.z-ue.z];k||(k=[0,0,1]),k[2]=Math.abs(k[2]),this.orientation=Uo(_e,k)}setPitchBearing(f,k){this.orientation=As(l.degToRad(f),l.degToRad(-k))}}class Os{constructor(f,k){this._transform=l.identity([]),this.orientation=k,this.position=f}get mercatorPosition(){const f=this.position;return new l.MercatorCoordinate(f[0],f[1],f[2])}get position(){const f=l.getColumn(this._transform,3);return[f[0],f[1],f[2]]}set position(f){var k;f&&l.setColumn(this._transform,3,[(k=f)[0],k[1],k[2],1])}get orientation(){return this._orientation}set orientation(f){this._orientation=f||l.identity$1([]),f&&Zs(this._transform,this._orientation)}getPitchBearing(){const f=this.forward(),k=this.right();return{bearing:Math.atan2(-k[1],k[0]),pitch:Math.atan2(Math.sqrt(f[0]*f[0]+f[1]*f[1]),-f[2])}}setPitchBearing(f,k){this._orientation=As(f,k),Zs(this._transform,this._orientation)}forward(){const f=l.getColumn(this._transform,2);return[-f[0],-f[1],-f[2]]}up(){const f=l.getColumn(this._transform,1);return[-f[0],-f[1],-f[2]]}right(){const f=l.getColumn(this._transform,0);return[f[0],f[1],f[2]]}getCameraToWorld(f,k){const Z=new Float64Array(16);return l.invert(Z,this.getWorldToCamera(f,k)),Z}getWorldToCameraPosition(f,k,Z){const ue=this.position;l.scale$2(ue,ue,-f);const he=new Float64Array(16);return l.fromScaling(he,[Z,Z,Z]),l.translate(he,he,ue),he[10]*=k,he}getWorldToCamera(f,k){const Z=new Float64Array(16),ue=new Float64Array(4),he=this.position;return l.conjugate(ue,this._orientation),l.scale$2(he,he,-f),l.fromQuat(Z,ue),l.translate(Z,Z,he),Z[1]*=-1,Z[5]*=-1,Z[9]*=-1,Z[13]*=-1,Z[8]*=k,Z[9]*=k,Z[10]*=k,Z[11]*=k,Z}getCameraToClipPerspective(f,k,Z,ue){const he=new Float64Array(16);return l.perspective(he,f,k,Z,ue),he}getDistanceToElevation(f){const k=f===0?0:l.mercatorZfromAltitude(f,this.position[1]),Z=this.forward();return(k-this.position[2])/Z[2]}clone(){return new Os([...this.position],[...this.orientation])}}function qi(U,f){const k=Xu(U),Z=function(he,_e,Ce,Xe,nt){const lt=new l.LngLat(Ce.lng-180*Zu,Ce.lat),yt=new l.LngLat(Ce.lng+180*Zu,Ce.lat),Rt=he.project(lt.lng,lt.lat),Ut=he.project(yt.lng,yt.lat),Bt=-Math.atan2(Ut.y-Rt.y,Ut.x-Rt.x),It=l.MercatorCoordinate.fromLngLat(Ce);It.y=l.clamp(It.y,-.999975,.999975);const vn=It.toLngLat(),tn=he.project(vn.lng,vn.lat),cn=l.MercatorCoordinate.fromLngLat(vn);cn.x+=Zu;const pn=cn.toLngLat(),Cn=he.project(pn.lng,pn.lat),un=Ku(Cn.x-tn.x,Cn.y-tn.y,Bt),kn=l.MercatorCoordinate.fromLngLat(vn);kn.y+=Zu;const nr=kn.toLngLat(),dr=he.project(nr.lng,nr.lat),xr=Ku(dr.x-tn.x,dr.y-tn.y,Bt),yr=Math.abs(un.x)/Math.abs(xr.y),Qr=l.identity([]);l.rotateZ(Qr,Qr,-Bt*(1-(nt?0:Xe)));const ir=l.identity([]);return l.scale(ir,ir,[1,1-(1-yr)*Xe,1]),ir[4]=-xr.x/xr.y*Xe,l.rotateZ(ir,ir,Bt),l.multiply$1(ir,Qr,ir),ir}(U.projection,0,U.center,k,f),ue=md(U);return l.scale(Z,Z,[ue,ue,1]),Z}function md(U){const f=U.projection,k=Xu(U),Z=Nl(f,U.center),ue=Nl(f,l.LngLat.convert(f.center));return Math.pow(2,Z*k+(1-k)*ue)}function Xu(U){const f=U.projection.range;if(!f)return 0;const k=Math.max(U.width,U.height),Z=Math.log(k/1024)/Math.LN2;return l.smoothstep(f[0]+Z,f[1]+Z,U.zoom)}const Zu=1/4e4;function Nl(U,f){const k=l.clamp(f.lat,-l.MAX_MERCATOR_LATITUDE,l.MAX_MERCATOR_LATITUDE),Z=new l.LngLat(f.lng-180*Zu,k),ue=new l.LngLat(f.lng+180*Zu,k),he=U.project(Z.lng,k),_e=U.project(ue.lng,k),Ce=l.MercatorCoordinate.fromLngLat(Z),Xe=l.MercatorCoordinate.fromLngLat(ue),nt=_e.x-he.x,lt=_e.y-he.y,yt=Xe.x-Ce.x,Rt=Xe.y-Ce.y,Ut=Math.sqrt((yt*yt+Rt*Rt)/(nt*nt+lt*lt));return Math.log(Ut)/Math.LN2}function Ku(U,f,k){const Z=Math.cos(k),ue=Math.sin(k);return{x:U*Z-f*ue,y:U*ue+f*Z}}class Zl{constructor(f,k,Z,ue,he,_e,Ce){this.tileSize=512,this._renderWorldCopies=he===void 0||he,this._minZoom=f||0,this._maxZoom=k||22,this._minPitch=Z==null?0:Z,this._maxPitch=ue==null?60:ue,this.setProjection(_e),this.setMaxBounds(Ce),this.width=0,this.height=0,this._center=new l.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._nearZ=0,this._farZ=0,this._unmodified=!0,this._edgeInsets=new xo,this._projMatrixCache={},this._alignedProjMatrixCache={},this._fogTileMatrixCache={},this._distanceTileDataCache={},this._camera=new Os,this._centerAltitude=0,this._centerAltitudeValidForExaggeration=0,this._averageElevation=0,this.cameraElevationReference="ground",this._projectionScaler=1,this._horizonShift=.1}clone(){const f=new Zl(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies,this.getProjection());return f._elevation=this._elevation,f._centerAltitude=this._centerAltitude,f._centerAltitudeValidForExaggeration=this._centerAltitudeValidForExaggeration,f.tileSize=this.tileSize,f.width=this.width,f.height=this.height,f.cameraElevationReference=this.cameraElevationReference,f._center=this._center,f._setZoom(this.zoom),f._seaLevelZoom=this._seaLevelZoom,f.angle=this.angle,f._fov=this._fov,f._pitch=this._pitch,f._nearZ=this._nearZ,f._farZ=this._farZ,f._averageElevation=this._averageElevation,f._unmodified=this._unmodified,f._edgeInsets=this._edgeInsets.clone(),f._camera=this._camera.clone(),f._calcMatrices(),f.freezeTileCoverage=this.freezeTileCoverage,f}get elevation(){return this._elevation}set elevation(f){this._elevation!==f&&(this._elevation=f,this._updateCameraOnTerrain(),this._calcMatrices())}updateElevation(f){const k=this._elevation&&this._elevation.exaggeration()!==this._centerAltitudeValidForExaggeration;(this._seaLevelZoom==null||k)&&this._updateCameraOnTerrain(),(f||k)&&this._constrainCameraAltitude(),this._calcMatrices()}getProjection(){return l.pick(this.projection,["name","center","parallels"])}setProjection(f){f==null&&(f={name:"mercator"}),this.projectionOptions=f;const k=this.projection?this.getProjection():void 0;this.projection=l.getProjection(f);const Z=this.getProjection();return _(k,Z)?null:(this._calcMatrices(),Z)}get minZoom(){return this._minZoom}set minZoom(f){this._minZoom!==f&&(this._minZoom=f,this.zoom=Math.max(this.zoom,f))}get maxZoom(){return this._maxZoom}set maxZoom(f){this._maxZoom!==f&&(this._maxZoom=f,this.zoom=Math.min(this.zoom,f))}get minPitch(){return this._minPitch}set minPitch(f){this._minPitch!==f&&(this._minPitch=f,this.pitch=Math.max(this.pitch,f))}get maxPitch(){return this._maxPitch}set maxPitch(f){this._maxPitch!==f&&(this._maxPitch=f,this.pitch=Math.min(this.pitch,f))}get renderWorldCopies(){return this._renderWorldCopies&&this.projection.supportsWorldCopies===!0}set renderWorldCopies(f){f===void 0?f=!0:f===null&&(f=!1),this._renderWorldCopies=f}get worldSize(){return this.tileSize*this.scale}get cameraWorldSize(){const f=Math.max(this._camera.getDistanceToElevation(this._averageElevation),Number.EPSILON);return this._worldSizeFromZoom(this._zoomFromMercatorZ(f))}get pixelsPerMeter(){return this.projection.pixelsPerMeter(this.center.lat,this.worldSize)}get cameraPixelsPerMeter(){return this.projection.pixelsPerMeter(this.center.lat,this.cameraWorldSize)}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new l.pointGeometry(this.width,this.height)}get bearing(){return l.wrap(this.rotation,-180,180)}set bearing(f){this.rotation=f}get rotation(){return-this.angle/Math.PI*180}set rotation(f){const k=-f*Math.PI/180;var Z;this.angle!==k&&(this._unmodified=!1,this.angle=k,this._calcMatrices(),this.rotationMatrix=(Z=new l.ARRAY_TYPE(4),l.ARRAY_TYPE!=Float32Array&&(Z[1]=0,Z[2]=0),Z[0]=1,Z[3]=1,Z),function(ue,he,_e){var Ce=he[0],Xe=he[1],nt=he[2],lt=he[3],yt=Math.sin(_e),Rt=Math.cos(_e);ue[0]=Ce*Rt+nt*yt,ue[1]=Xe*Rt+lt*yt,ue[2]=Ce*-yt+nt*Rt,ue[3]=Xe*-yt+lt*Rt}(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(f){const k=l.clamp(f,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==k&&(this._unmodified=!1,this._pitch=k,this._calcMatrices())}get fov(){return this._fov/Math.PI*180}set fov(f){f=Math.max(.01,Math.min(60,f)),this._fov!==f&&(this._unmodified=!1,this._fov=f/180*Math.PI,this._calcMatrices())}get averageElevation(){return this._averageElevation}set averageElevation(f){this._averageElevation=f,this._calcFogMatrices(),this._distanceTileDataCache={}}get zoom(){return this._zoom}set zoom(f){const k=Math.min(Math.max(f,this.minZoom),this.maxZoom);this._zoom!==k&&(this._unmodified=!1,this._setZoom(k),this._updateSeaLevelZoom(),this._constrain(),this._calcMatrices())}_setZoom(f){this._zoom=f,this.scale=this.zoomScale(f),this.tileZoom=Math.floor(f),this.zoomFraction=f-this.tileZoom}_updateCameraOnTerrain(){if(!this._elevation||!this._elevation.isDataAvailableAtPoint(this.locationCoordinate(this.center)))return this._centerAltitude=0,this._seaLevelZoom=null,void(this._centerAltitudeValidForExaggeration=0);const f=this._elevation;this._centerAltitude=f.getAtPointOrZero(this.locationCoordinate(this.center)),this._centerAltitudeValidForExaggeration=f.exaggeration(),this._updateSeaLevelZoom()}_updateSeaLevelZoom(){this._centerAltitudeValidForExaggeration!==0&&(this._seaLevelZoom=this._zoomFromMercatorZ((this.pixelsPerMeter*this._centerAltitude+this.cameraToCenterDistance)/this.worldSize))}sampleAverageElevation(){if(!this._elevation)return 0;const f=this._elevation,k=[[.5,.2],[.3,.5],[.5,.5],[.7,.5],[.5,.8]],Z=this.horizonLineFromTop();let ue=0,he=0;for(let _e=0;_e<k.length;_e++){const Ce=new l.pointGeometry(k[_e][0]*this.width,Z+k[_e][1]*(this.height-Z)),Xe=f.pointCoordinate(Ce);if(!Xe)continue;const nt=1/Math.hypot(Xe[0]-this._camera.position[0],Xe[1]-this._camera.position[1]);ue+=Xe[3]*nt,he+=nt}return he===0?NaN:ue/he}get center(){return this._center}set center(f){f.lat===this._center.lat&&f.lng===this._center.lng||(this._unmodified=!1,this._center=f,this._terrainEnabled()&&(this.cameraElevationReference==="ground"?this._updateCameraOnTerrain():this._updateZoomFromElevation()),this._constrain(),this._calcMatrices())}_updateZoomFromElevation(){if(this._seaLevelZoom==null||!this._elevation)return;const f=this._seaLevelZoom,k=this._elevation.getAtPointOrZero(this.locationCoordinate(this.center)),Z=this.pixelsPerMeter/this.worldSize*k,ue=this._mercatorZfromZoom(f),he=this._mercatorZfromZoom(this._maxZoom),_e=Math.max(ue-Z,he);this._setZoom(this._zoomFromMercatorZ(_e))}get padding(){return this._edgeInsets.toJSON()}set padding(f){this._edgeInsets.equals(f)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,f,1),this._calcMatrices())}computeZoomRelativeTo(f){const k=this.rayIntersectionCoordinate(this.pointRayIntersection(this.centerPoint,f.toAltitude()));let Z;Z=f.z<this._camera.position[2]?[k.x,k.y,k.z]:[f.x,f.y,f.z];const ue=l.length(l.sub([],this._camera.position,Z));return l.clamp(this._zoomFromMercatorZ(ue),this._minZoom,this._maxZoom)}setFreeCameraOptions(f){if(!this.height||!f.position&&!f.orientation)return;this._updateCameraState();let k=!1;if(f.orientation&&!l.exactEquals(f.orientation,this._camera.orientation)&&(k=this._setCameraOrientation(f.orientation)),f.position){const Z=[f.position.x,f.position.y,f.position.z];l.exactEquals$1(Z,this._camera.position)||(this._setCameraPosition(Z),k=!0)}k&&(this._updateStateFromCamera(),this.recenterOnTerrain())}getFreeCameraOptions(){this._updateCameraState();const f=this._camera.position,k=new cc;return k.position=new l.MercatorCoordinate(f[0],f[1],f[2]),k.orientation=this._camera.orientation,k._elevation=this.elevation,k._renderWorldCopies=this.renderWorldCopies,k}_setCameraOrientation(f){if(!l.length$1(f))return!1;l.normalize$1(f,f);const k=l.transformQuat([],[0,0,-1],f),Z=l.transformQuat([],[0,-1,0],f);if(Z[2]<0)return!1;const ue=Uo(k,Z);return!!ue&&(this._camera.orientation=ue,!0)}_setCameraPosition(f){const k=this.zoomScale(this.minZoom)*this.tileSize,Z=this.zoomScale(this.maxZoom)*this.tileSize,ue=this.cameraToCenterDistance;f[2]=l.clamp(f[2],ue/Z,ue/k),this._camera.position=f}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}get fovAboveCenter(){return this._fov*(.5+this.centerOffset.y/this.height)}isPaddingEqual(f){return this._edgeInsets.equals(f)}interpolatePadding(f,k,Z){this._unmodified=!1,this._edgeInsets.interpolate(f,k,Z),this._constrain(),this._calcMatrices()}coveringZoomLevel(f){const k=(f.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/f.tileSize));return Math.max(0,k)}getVisibleUnwrappedCoordinates(f){const k=[new l.UnwrappedTileID(0,f)];if(this.renderWorldCopies){const Z=this.pointCoordinate(new l.pointGeometry(0,0)),ue=this.pointCoordinate(new l.pointGeometry(this.width,0)),he=this.pointCoordinate(new l.pointGeometry(this.width,this.height)),_e=this.pointCoordinate(new l.pointGeometry(0,this.height)),Ce=Math.floor(Math.min(Z.x,ue.x,he.x,_e.x)),Xe=Math.floor(Math.max(Z.x,ue.x,he.x,_e.x)),nt=1;for(let lt=Ce-nt;lt<=Xe+nt;lt++)lt!==0&&k.push(new l.UnwrappedTileID(lt,f))}return k}coveringTiles(f){let k=this.coveringZoomLevel(f);const Z=k,ue=this.elevation&&!f.isTerrainDEM,he=this.projection.name==="mercator";if(f.minzoom!==void 0&&k<f.minzoom)return[];f.maxzoom!==void 0&&k>f.maxzoom&&(k=f.maxzoom);const _e=this.locationCoordinate(this.center),Ce=this.center.lat,Xe=1<<k,nt=[Xe*_e.x,Xe*_e.y,0],lt=this.projection.name==="globe",yt=!lt,Rt=l.Frustum.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,k,yt),Ut=lt?this._camera.mercatorPosition:this.pointCoordinate(this.getCameraPoint()),Bt=Xe*l.mercatorZfromAltitude(1,this.center.lat),It=this._camera.position[2]/l.mercatorZfromAltitude(1,this.center.lat),vn=[Xe*Ut.x,Xe*Ut.y,It*(yt?1:Bt)],tn=this.cameraToCenterDistance/f.tileSize*(f.roundZoom?1:.502),cn=this.pitch<=60&&this._edgeInsets.top<=this._edgeInsets.bottom&&!this._elevation&&!this.projection.isReprojectedInTileSpace?k:0,pn=f.isTerrainDEM&&this._elevation?1e4*this._elevation.exaggeration():this._centerAltitude,Cn=f.isTerrainDEM?-pn:this._elevation?this._elevation.getMinElevationBelowMSL():0,un=this.projection.isReprojectedInTileSpace?md(this):1,kn=br=>{const ea=new l.MercatorCoordinate(br.x+25e-6,br.y,br.z),ui=new l.MercatorCoordinate(br.x,br.y+25e-6,br.z),Fi=br.toLngLat(),pa=ea.toLngLat(),Ja=ui.toLngLat(),ji=this.locationCoordinate(Fi),Xi=this.locationCoordinate(pa),Mo=this.locationCoordinate(Ja),Is=Math.hypot(Xi.x-ji.x,Xi.y-ji.y),Gl=Math.hypot(Mo.x-ji.x,Mo.y-ji.y);return Math.sqrt(Is*Gl)*un/25e-6},nr=br=>{const Ii=pn,ea=Cn;return{aabb:l.tileAABB(this,Xe,0,0,0,br,ea,Ii,this.projection),zoom:0,x:0,y:0,minZ:ea,maxZ:Ii,wrap:br,fullyVisible:!1}},dr=[];let xr=[];const yr=k,Qr=f.reparseOverscaled?Z:k,ir=br=>br*br,gr=ir((It-this._centerAltitude)*Bt),Yr=br=>{if(!this._elevation||!br.tileID||!he)return;const Ii=this._elevation.getMinMaxForTile(br.tileID),ea=br.aabb;Ii?(ea.min[2]=Ii.min,ea.max[2]=Ii.max,ea.center[2]=(ea.min[2]+ea.max[2])/2):(br.shouldSplit=Oi(br),br.shouldSplit||(ea.min[2]=ea.max[2]=ea.center[2]=this._centerAltitude))},Oi=br=>{if(br.zoom<cn)return!0;if(br.zoom===yr)return!1;if(br.shouldSplit!=null)return br.shouldSplit;const Ii=br.aabb.distanceX(vn),ea=br.aabb.distanceY(vn);let ui=gr,Fi=1;if(lt){ui=ir(br.aabb.distanceZ(vn));const Ja=Math.pow(2,br.zoom),ji=l.latFromMercatorY((br.y+1)/Ja),Xi=l.latFromMercatorY(br.y/Ja),Mo=Math.min(Math.max(Ce,ji),Xi),Is=l.circumferenceAtLatitude(Mo)/l.circumferenceAtLatitude(Ce);Fi=Math.min(Is,1)}else if(ue&&(ui=ir(br.aabb.distanceZ(vn)*Bt)),this.projection.isReprojectedInTileSpace&&Z<=5){const Ja=Math.pow(2,br.zoom),ji=kn(new l.MercatorCoordinate((br.x+.5)/Ja,(br.y+.5)/Ja));Fi=ji>.85?1:ji}const pa=Ii*Ii+ea*ea+ui;return pa<ir((1<<yr-br.zoom)*tn*Fi*((Ja,ji)=>{if(ji*ir(.707)<Ja)return 1;const Xi=Math.sqrt(ji/Ja);return Xi/(1.4144271570014144+(Math.pow(1.1,Xi-1.4144271570014144+1)-1)/(1.1-1)-1)})(Math.max(ui,gr),pa))};if(this.renderWorldCopies)for(let br=1;br<=3;br++)dr.push(nr(-br)),dr.push(nr(br));for(dr.push(nr(0));dr.length>0;){const br=dr.pop(),Ii=br.x,ea=br.y;let ui=br.fullyVisible;if(!ui){const Fi=br.aabb.intersects(Rt);if(Fi===0)continue;ui=Fi===2}if(br.zoom!==yr&&Oi(br))for(let Fi=0;Fi<4;Fi++){const pa=(Ii<<1)+Fi%2,Ja=(ea<<1)+(Fi>>1),ji={aabb:he?br.aabb.quadrant(Fi):l.tileAABB(this,Xe,br.zoom+1,pa,Ja,br.wrap,br.minZ,br.maxZ,this.projection),zoom:br.zoom+1,x:pa,y:Ja,wrap:br.wrap,fullyVisible:ui,tileID:void 0,shouldSplit:void 0,minZ:br.minZ,maxZ:br.maxZ};ue&&!lt&&(ji.tileID=new l.OverscaledTileID(br.zoom+1===yr?Qr:br.zoom+1,br.wrap,br.zoom+1,pa,Ja),Yr(ji)),dr.push(ji)}else{const Fi=br.zoom===yr?Qr:br.zoom;if(f.minzoom&&f.minzoom>Fi)continue;const pa=nt[0]-(.5+Ii+(br.wrap<<br.zoom))*(1<<k-br.zoom),Ja=nt[1]-.5-ea,ji=br.tileID?br.tileID:new l.OverscaledTileID(Fi,br.wrap,br.zoom,Ii,ea);xr.push({tileID:ji,distanceSq:pa*pa+Ja*Ja})}}if(this.fogCullDistSq){const br=this.fogCullDistSq,Ii=this.horizonLineFromTop();xr=xr.filter(ea=>{const ui=[0,0,0,1],Fi=[l.EXTENT,l.EXTENT,0,1],pa=this.calculateFogTileMatrix(ea.tileID.toUnwrapped());l.transformMat4$1(ui,ui,pa),l.transformMat4$1(Fi,Fi,pa);const Ja=l.getAABBPointSquareDist(ui,Fi);if(Ja===0)return!0;let ji=!1;const Xi=this._elevation;if(Xi&&Ja>br&&Ii!==0){const Mo=this.calculateProjMatrix(ea.tileID.toUnwrapped());let Is;f.isTerrainDEM||(Is=Xi.getMinMaxForTile(ea.tileID)),Is||(Is={min:Cn,max:pn});const Gl=l.furthestTileCorner(this.rotation),js=[Gl[0]*l.EXTENT,Gl[1]*l.EXTENT,Is.max];l.transformMat4(js,js,Mo),ji=(1-js[1])*this.height*.5<Ii}return Ja<br||ji})}return xr.sort((br,Ii)=>br.distanceSq-Ii.distanceSq).map(br=>br.tileID)}resize(f,k){this.width=f,this.height=k,this.pixelsToGLUnits=[2/f,-2/k],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(f){return Math.pow(2,f)}scaleZoom(f){return Math.log(f)/Math.LN2}project(f){const k=l.clamp(f.lat,-l.MAX_MERCATOR_LATITUDE,l.MAX_MERCATOR_LATITUDE),Z=this.projection.project(f.lng,k);return new l.pointGeometry(Z.x*this.worldSize,Z.y*this.worldSize)}unproject(f){return this.projection.unproject(f.x/this.worldSize,f.y/this.worldSize)}get point(){return this.project(this.center)}setLocationAtPoint(f,k){let Z,ue;const he=this.centerPoint;if(this.projection.name==="globe"){const Ce=this.worldSize;Z=(k.x-he.x)/Ce,ue=(k.y-he.y)/Ce}else{const Ce=this.pointCoordinate(k),Xe=this.pointCoordinate(he);Z=Ce.x-Xe.x,ue=Ce.y-Xe.y}const _e=this.locationCoordinate(f);this.setLocation(new l.MercatorCoordinate(_e.x-Z,_e.y-ue))}setLocation(f){this.center=this.coordinateLocation(f),this.projection.wrap&&(this.center=this.center.wrap())}locationPoint(f){return this.projection.locationPoint(this,f)}locationPoint3D(f){return this._coordinatePoint(this.locationCoordinate(f),!0)}pointLocation(f){return this.coordinateLocation(this.pointCoordinate(f))}pointLocation3D(f){return this.coordinateLocation(this.pointCoordinate3D(f))}locationCoordinate(f,k){const Z=k?l.mercatorZfromAltitude(k,f.lat):void 0,ue=this.projection.project(f.lng,f.lat);return new l.MercatorCoordinate(ue.x,ue.y,Z)}coordinateLocation(f){return this.projection.unproject(f.x,f.y)}pointRayIntersection(f,k){const Z=k!=null?k:this._centerAltitude,ue=[f.x,f.y,0,1],he=[f.x,f.y,1,1];l.transformMat4$1(ue,ue,this.pixelMatrixInverse),l.transformMat4$1(he,he,this.pixelMatrixInverse);const _e=he[3];l.scale$1(ue,ue,1/ue[3]),l.scale$1(he,he,1/_e);const Ce=ue[2],Xe=he[2];return{p0:ue,p1:he,t:Ce===Xe?0:(Z-Ce)/(Xe-Ce)}}screenPointToMercatorRay(f){const k=[f.x,f.y,0,1],Z=[f.x,f.y,1,1];return l.transformMat4$1(k,k,this.pixelMatrixInverse),l.transformMat4$1(Z,Z,this.pixelMatrixInverse),l.scale$1(k,k,1/k[3]),l.scale$1(Z,Z,1/Z[3]),k[2]=l.mercatorZfromAltitude(k[2],this._center.lat)*this.worldSize,Z[2]=l.mercatorZfromAltitude(Z[2],this._center.lat)*this.worldSize,l.scale$1(k,k,1/this.worldSize),l.scale$1(Z,Z,1/this.worldSize),new l.Ray([k[0],k[1],k[2]],l.normalize([],l.sub([],Z,k)))}rayIntersectionCoordinate(f){const{p0:k,p1:Z,t:ue}=f,he=l.mercatorZfromAltitude(k[2],this._center.lat),_e=l.mercatorZfromAltitude(Z[2],this._center.lat);return new l.MercatorCoordinate(l.number(k[0],Z[0],ue)/this.worldSize,l.number(k[1],Z[1],ue)/this.worldSize,l.number(he,_e,ue))}pointCoordinate(f,k=this._centerAltitude){return this.projection.pointCoordinate(this,f.x,f.y,k)}pointCoordinate3D(f){if(!this.elevation)return this.pointCoordinate(f);const k=this.elevation;let Z=this.elevation.pointCoordinate(f);if(Z)return new l.MercatorCoordinate(Z[0],Z[1],Z[2]);let ue=0,he=this.horizonLineFromTop();if(f.y>he)return this.pointCoordinate(f);const _e=.02*he,Ce=f.clone();for(let Xe=0;Xe<10&&he-ue>_e;Xe++){Ce.y=l.number(ue,he,.66);const nt=k.pointCoordinate(Ce);nt?(he=Ce.y,Z=nt):ue=Ce.y}return Z?new l.MercatorCoordinate(Z[0],Z[1],Z[2]):this.pointCoordinate(f)}isPointAboveHorizon(f){if(this.elevation)return!this.elevation.pointCoordinate(f);{const k=this.horizonLineFromTop();return f.y<k}}_coordinatePoint(f,k){const Z=k&&this.elevation?this.elevation.getAtPointOrZero(f,this._centerAltitude):this._centerAltitude,ue=[f.x*this.worldSize,f.y*this.worldSize,Z+f.toAltitude(),1];return l.transformMat4$1(ue,ue,this.pixelMatrix),ue[3]>0?new l.pointGeometry(ue[0]/ue[3],ue[1]/ue[3]):new l.pointGeometry(Number.MAX_VALUE,Number.MAX_VALUE)}_getBounds(f,k){const Z=new l.pointGeometry(this._edgeInsets.left,this._edgeInsets.top),ue=new l.pointGeometry(this.width-this._edgeInsets.right,this._edgeInsets.top),he=new l.pointGeometry(this.width-this._edgeInsets.right,this.height-this._edgeInsets.bottom),_e=new l.pointGeometry(this._edgeInsets.left,this.height-this._edgeInsets.bottom);let Ce=this.pointCoordinate(Z,f),Xe=this.pointCoordinate(ue,f);const nt=this.pointCoordinate(he,k),lt=this.pointCoordinate(_e,k),yt=(Rt,Ut)=>(Ut.y-Rt.y)/(Ut.x-Rt.x);return Ce.y>1&&Xe.y>=0?Ce=new l.MercatorCoordinate((1-lt.y)/yt(lt,Ce)+lt.x,1):Ce.y<0&&Xe.y<=1&&(Ce=new l.MercatorCoordinate(-lt.y/yt(lt,Ce)+lt.x,0)),Xe.y>1&&Ce.y>=0?Xe=new l.MercatorCoordinate((1-nt.y)/yt(nt,Xe)+nt.x,1):Xe.y<0&&Ce.y<=1&&(Xe=new l.MercatorCoordinate(-nt.y/yt(nt,Xe)+nt.x,0)),new l.LngLatBounds().extend(this.coordinateLocation(Ce)).extend(this.coordinateLocation(Xe)).extend(this.coordinateLocation(lt)).extend(this.coordinateLocation(nt))}_getBounds3D(){const f=this.elevation;if(!f.visibleDemTiles.length)return this._getBounds(0,0);const k=f.visibleDemTiles.reduce((Z,ue)=>{if(ue.dem){const he=ue.dem.tree;Z.min=Math.min(Z.min,he.minimums[0]),Z.max=Math.max(Z.max,he.maximums[0])}return Z},{min:Number.MAX_VALUE,max:0});return this._getBounds(k.min*f.exaggeration(),k.max*f.exaggeration())}getBounds(){return this._terrainEnabled()?this._getBounds3D():this._getBounds(0,0)}horizonLineFromTop(f=!0){const k=this.height/2/Math.tan(this._fov/2)/Math.tan(Math.max(this._pitch,.1))+this.centerOffset.y,Z=this.height/2-k*(1-this._horizonShift);return f?Math.max(0,Z):Z}getMaxBounds(){return this.maxBounds}setMaxBounds(f){this.maxBounds=f,this.minLat=-l.MAX_MERCATOR_LATITUDE,this.maxLat=l.MAX_MERCATOR_LATITUDE,this.minLng=-180,this.maxLng=180,f&&(this.minLat=f.getSouth(),this.maxLat=f.getNorth(),this.minLng=f.getWest(),this.maxLng=f.getEast(),this.maxLng<this.minLng&&(this.maxLng+=360)),this.worldMinX=l.mercatorXfromLng(this.minLng)*this.tileSize,this.worldMaxX=l.mercatorXfromLng(this.maxLng)*this.tileSize,this.worldMinY=l.mercatorYfromLat(this.maxLat)*this.tileSize,this.worldMaxY=l.mercatorYfromLat(this.minLat)*this.tileSize,this._constrain()}calculatePosMatrix(f,k){return this.projection.createTileMatrix(this,k,f)}calculateDistanceTileData(f){const k=f.key,Z=this._distanceTileDataCache;if(Z[k])return Z[k];const ue=f.canonical,he=1/this.height,_e=this.cameraWorldSize/this.zoomScale(ue.z),Ce=(ue.x+Math.pow(2,ue.z)*f.wrap)*_e,Xe=ue.y*_e,nt=this.point,lt=this.angle,yt=Math.sin(-lt),Rt=-Math.cos(-lt);return Z[k]={bearing:[yt,Rt],center:[(nt.x-Ce)*he,(nt.y-Xe)*he],scale:_e/l.EXTENT*he},Z[k]}calculateFogTileMatrix(f){const k=f.key,Z=this._fogTileMatrixCache;if(Z[k])return Z[k];const ue=this.calculatePosMatrix(f,this.cameraWorldSize);return l.multiply$1(ue,this.worldToFogMatrix,ue),Z[k]=new Float32Array(ue),Z[k]}calculateProjMatrix(f,k=!1){const Z=f.key,ue=k?this._alignedProjMatrixCache:this._projMatrixCache;if(ue[Z])return ue[Z];const he=this.calculatePosMatrix(f,this.worldSize);return l.multiply$1(he,this.projection.isReprojectedInTileSpace?this.mercatorMatrix:k?this.alignedProjMatrix:this.projMatrix,he),ue[Z]=new Float32Array(he),ue[Z]}calculatePixelsToTileUnitsMatrix(f){const k=f.tileID.key,Z=this._pixelsToTileUnitsCache;if(Z[k])return Z[k];const ue=function(he,_e){const{scale:Ce}=he.tileTransform,Xe=Ce*l.EXTENT/(he.tileSize*Math.pow(2,_e.zoom-he.tileID.overscaledZ+he.tileID.canonical.z));return nt=new Float32Array(4),Rt=(lt=_e.inverseAdjustmentMatrix)[1],Ut=lt[2],Bt=lt[3],vn=(yt=[Xe,Xe])[1],nt[0]=lt[0]*(It=yt[0]),nt[1]=Rt*It,nt[2]=Ut*vn,nt[3]=Bt*vn,nt;var nt,lt,yt,Rt,Ut,Bt,It,vn}(f,this);return Z[k]=ue,Z[k]}customLayerMatrix(){return this.mercatorMatrix.slice()}recenterOnTerrain(){if(!this._elevation)return;const f=this._elevation;this._updateCameraState();const k=l.mercatorZfromAltitude(1,this._center.lat)*this.worldSize,Z=this._computeCameraPosition(k),ue=this._camera.forward(),he=l.mercatorZfromAltitude(1,this._center.lat);Z[2]/=he,ue[2]/=he,l.normalize(ue,ue);const _e=f.raycast(Z,ue,f.exaggeration());if(_e){const Ce=l.scaleAndAdd([],Z,ue,_e),Xe=new l.MercatorCoordinate(Ce[0],Ce[1],l.mercatorZfromAltitude(Ce[2],l.latFromMercatorY(Ce[1]))),nt=(Xe.z+l.length([Xe.x-Z[0],Xe.y-Z[1],Xe.z-Z[2]*he]))*this._projectionScaler;this._seaLevelZoom=this._zoomFromMercatorZ(nt),this._centerAltitude=Xe.toAltitude(),this._center=this.coordinateLocation(Xe),this._updateZoomFromElevation(),this._constrain(),this._calcMatrices()}}_constrainCameraAltitude(){if(!this._elevation)return;const f=this._elevation;this._updateCameraState();const k=l.mercatorZfromAltitude(1,this._center.lat)*this.worldSize,Z=this._computeCameraPosition(k),ue=f.getAtPointOrZero(new l.MercatorCoordinate(...Z)),he=this._minimumHeightOverTerrain()*Math.cos(l.degToRad(this._maxPitch)),_e=this._camera.position[2]-this.pixelsPerMeter/this.worldSize*ue;if(_e<he){const Ce=this.locationCoordinate(this._center,this._centerAltitude),Xe=[Ce.x-Z[0],Ce.y-Z[1],Ce.z-Z[2]],nt=l.length(Xe);Xe[2]-=(he-_e)/this._projectionScaler;const lt=l.length(Xe);if(lt===0)return;l.scale$2(Xe,Xe,nt/lt*this._projectionScaler),this._camera.position=[Ce.x-Xe[0],Ce.y-Xe[1],Ce.z*this._projectionScaler-Xe[2]],this._camera.orientation=Uo(Xe,this._camera.up()),this._updateStateFromCamera()}}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;if(this._constraining=!0,this.projection.isReprojectedInTileSpace){const yt=this.center;return yt.lat=l.clamp(yt.lat,this.minLat,this.maxLat),!this.maxBounds&&this.renderWorldCopies||(yt.lng=l.clamp(yt.lng,this.minLng,this.maxLng)),this.center=yt,void(this._constraining=!1)}const f=this._unmodified,{x:k,y:Z}=this.point;let ue=0,he=k,_e=Z;const Ce=this.width/2,Xe=this.height/2,nt=this.worldMinY*this.scale,lt=this.worldMaxY*this.scale;if(Z-Xe<nt&&(_e=nt+Xe),Z+Xe>lt&&(_e=lt-Xe),lt-nt<this.height&&(ue=Math.max(ue,this.height/(lt-nt)),_e=(lt+nt)/2),this.maxBounds||!this._renderWorldCopies||!this.projection.wrap){const yt=this.worldMinX*this.scale,Rt=this.worldMaxX*this.scale,Ut=this.worldSize/2-(yt+Rt)/2;he=(k+Ut+this.worldSize)%this.worldSize-Ut,he-Ce<yt&&(he=yt+Ce),he+Ce>Rt&&(he=Rt-Ce),Rt-yt<this.width&&(ue=Math.max(ue,this.width/(Rt-yt)),he=(Rt+yt)/2)}he===k&&_e===Z||(this.center=this.unproject(new l.pointGeometry(he,_e))),ue&&(this.zoom+=this.scaleZoom(ue)),this._constrainCameraAltitude(),this._unmodified=f,this._constraining=!1}_minZoomForBounds(){let f=Math.max(0,this.scaleZoom(this.height/(this.worldMaxY-this.worldMinY)));return this.maxBounds&&(f=Math.max(f,this.scaleZoom(this.width/(this.worldMaxX-this.worldMinX)))),f}_maxCameraBoundsDistance(){return this._mercatorZfromZoom(this._minZoomForBounds())}_calcMatrices(){if(!this.height)return;const f=this._fov/2,k=this.centerOffset,Z=this.pixelsPerMeter;this._projectionScaler=Z/(l.mercatorZfromAltitude(1,this.center.lat)*this.worldSize),this.cameraToCenterDistance=.5/Math.tan(f)*this.height*this._projectionScaler,this._updateCameraState(),this._farZ=this.projection.farthestPixelDistance(this),this._nearZ=this.height/50;const ue=this._camera.getWorldToCamera(this.worldSize,this.projection.zAxisUnit==="meters"?Z:1),he=this._camera.getCameraToClipPerspective(this._fov,this.width/this.height,this._nearZ,this._farZ);he[8]=2*-k.x/this.width,he[9]=2*k.y/this.height;let _e=l.mul([],he,ue);if(this.projection.isReprojectedInTileSpace){const Cn=this.locationCoordinate(this.center),un=l.identity([]);l.translate(un,un,[Cn.x*this.worldSize,Cn.y*this.worldSize,0]),l.multiply$1(un,un,qi(this)),l.translate(un,un,[-Cn.x*this.worldSize,-Cn.y*this.worldSize,0]),l.multiply$1(_e,_e,un),this.inverseAdjustmentMatrix=function(kn){const nr=qi(kn,!0);return D([],[nr[0],nr[1],nr[4],nr[5]])}(this)}else this.inverseAdjustmentMatrix=[1,0,0,1];this.mercatorMatrix=l.scale([],_e,[this.worldSize,this.worldSize,this.worldSize/Z,1]),this.projMatrix=_e,this.invProjMatrix=l.invert(new Float64Array(16),this.projMatrix);const Ce=new Float32Array(16);l.identity(Ce),l.scale(Ce,Ce,[1,-1,1]),l.rotateX(Ce,Ce,this._pitch),l.rotateZ(Ce,Ce,this.angle);const Xe=l.perspective(new Float32Array(16),this._fov,this.width/this.height,this._nearZ,this._farZ),nt=(Math.PI/2-this._pitch)*(this.height/this._fov)*this._horizonShift;Xe[8]=2*-k.x/this.width,Xe[9]=2*(k.y+nt)/this.height,this.skyboxMatrix=l.multiply$1(Ce,Xe,Ce);const lt=this.point,yt=lt.x,Rt=lt.y,Ut=this.width%2/2,Bt=this.height%2/2,It=Math.cos(this.angle),vn=Math.sin(this.angle),tn=yt-Math.round(yt)+It*Ut+vn*Bt,cn=Rt-Math.round(Rt)+It*Bt+vn*Ut,pn=new Float64Array(_e);if(l.translate(pn,pn,[tn>.5?tn-1:tn,cn>.5?cn-1:cn,0]),this.alignedProjMatrix=pn,_e=l.create(),l.scale(_e,_e,[this.width/2,-this.height/2,1]),l.translate(_e,_e,[1,-1,0]),this.labelPlaneMatrix=_e,_e=l.create(),l.scale(_e,_e,[1,-1,1]),l.translate(_e,_e,[-1,-1,0]),l.scale(_e,_e,[2/this.width,2/this.height,1]),this.glCoordMatrix=_e,this.pixelMatrix=l.multiply$1(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),this._calcFogMatrices(),this._distanceTileDataCache={},_e=l.invert(new Float64Array(16),this.pixelMatrix),!_e)throw new Error("failed to invert matrix");this.pixelMatrixInverse=_e,this.globeMatrix=this.projection.name==="globe"?l.calculateGlobeMatrix(this):_e,this._projMatrixCache={},this._alignedProjMatrixCache={},this._pixelsToTileUnitsCache={}}_calcFogMatrices(){this._fogTileMatrixCache={};const f=this.cameraWorldSize,k=this.cameraPixelsPerMeter,Z=this._camera.position,ue=1/this.height,he=[f,f,k];l.scale$2(he,he,ue),l.scale$2(Z,Z,-1),l.multiply$2(Z,Z,he);const _e=l.create();l.translate(_e,_e,Z),l.scale(_e,_e,he),this.mercatorFogMatrix=_e,this.worldToFogMatrix=this._camera.getWorldToCameraPosition(f,k,ue)}_computeCameraPosition(f){const k=(f=f||this.pixelsPerMeter)/this.pixelsPerMeter,Z=this._camera.forward(),ue=this.point,he=this._mercatorZfromZoom(this._seaLevelZoom?this._seaLevelZoom:this._zoom)*k-f/this.worldSize*this._centerAltitude;return[ue.x/this.worldSize-Z[0]*he,ue.y/this.worldSize-Z[1]*he,f/this.worldSize*this._centerAltitude-Z[2]*he]}_updateCameraState(){this.height&&(this._camera.setPitchBearing(this._pitch,this.angle),this._camera.position=this._computeCameraPosition())}_translateCameraConstrained(f){const k=this._maxCameraBoundsDistance()*Math.cos(this._pitch),Z=f[2];let ue=1;Z>0&&(ue=Math.min((k-this._camera.position[2])/Z,1)),this._camera.position=l.scaleAndAdd([],this._camera.position,f,ue),this._updateStateFromCamera(),this.projection.wrap&&(this.center=this.center.wrap())}_updateStateFromCamera(){const f=this._camera.position,k=this._camera.forward(),{pitch:Z,bearing:ue}=this._camera.getPitchBearing(),he=l.mercatorZfromAltitude(this._centerAltitude,this.center.lat)*this._projectionScaler,_e=this._mercatorZfromZoom(this._maxZoom)*Math.cos(l.degToRad(this._maxPitch)),Ce=Math.max((f[2]-he)/Math.cos(Z),_e),Xe=this._zoomFromMercatorZ(Ce);l.scaleAndAdd(f,f,k,Ce),this._pitch=l.clamp(Z,l.degToRad(this.minPitch),l.degToRad(this.maxPitch)),this.angle=l.wrap(ue,-Math.PI,Math.PI),this._setZoom(l.clamp(Xe,this._minZoom,this._maxZoom)),this._updateSeaLevelZoom(),this._center=this.coordinateLocation(new l.MercatorCoordinate(f[0],f[1],f[2])),this._unmodified=!1,this._constrain(),this._calcMatrices()}_worldSizeFromZoom(f){return Math.pow(2,f)*this.tileSize}_mercatorZfromZoom(f){return this.cameraToCenterDistance/this._worldSizeFromZoom(f)}_minimumHeightOverTerrain(){const f=Math.min((this._seaLevelZoom!=null?this._seaLevelZoom:this._zoom)+2,this._maxZoom);return this._mercatorZfromZoom(f)}_zoomFromMercatorZ(f){return this.scaleZoom(this.cameraToCenterDistance/(f*this.tileSize))}_terrainEnabled(){return!(!this._elevation||!this.projection.supportsTerrain&&(l.warnOnce("Terrain is not yet supported with alternate projections. Use mercator to enable terrain."),1))}anyCornerOffEdge(f,k){const Z=Math.min(f.x,k.x),ue=Math.max(f.x,k.x),he=Math.min(f.y,k.y),_e=Math.max(f.y,k.y);if(he<this.horizonLineFromTop(!1))return!0;if(this.projection.name!=="mercator")return!1;const Ce=[new l.pointGeometry(Z,he),new l.pointGeometry(ue,_e),new l.pointGeometry(Z,_e),new l.pointGeometry(ue,he)],Xe=this.renderWorldCopies?-3:0,nt=this.renderWorldCopies?4:1;for(const lt of Ce){const yt=this.pointRayIntersection(lt);if(yt.t<0)return!0;const Rt=this.rayIntersectionCoordinate(yt);if(Rt.x<Xe||Rt.y<0||Rt.x>nt||Rt.y>1)return!0}return!1}isHorizonVisible(){return this.pitch+l.radToDeg(this.fovAboveCenter)>88||this.anyCornerOffEdge(new l.pointGeometry(0,0),new l.pointGeometry(this.width,this.height))}zoomDeltaToMovement(f,k){const Z=l.length(l.sub([],this._camera.position,f)),ue=this._zoomFromMercatorZ(Z)+k;return Z-this._mercatorZfromZoom(ue)}getCameraPoint(){const f=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new l.pointGeometry(0,f))}}function Kl(U,f){let k=!1,Z=null;const ue=()=>{Z=null,k&&(U(),Z=setTimeout(ue,f),k=!1)};return()=>(k=!0,Z||ue(),Z)}class rh{constructor(f){this._hashName=f&&encodeURIComponent(f),l.bindAll(["_getCurrentHash","_onHashChange","_updateHash"],this),this._updateHash=Kl(this._updateHashUnthrottled.bind(this),300)}addTo(f){return this._map=f,l.window.addEventListener("hashchange",this._onHashChange,!1),f.on("moveend",this._updateHash),this}remove(){return this._map?(this._map.off("moveend",this._updateHash),l.window.removeEventListener("hashchange",this._onHashChange,!1),clearTimeout(this._updateHash()),this._map=void 0,this):this}getHashString(f){const k=this._map;if(!k)return"";const Z=k.getCenter(),ue=Math.round(100*k.getZoom())/100,he=Math.ceil((ue*Math.LN2+Math.log(512/360/.5))/Math.LN10),_e=Math.pow(10,he),Ce=Math.round(Z.lng*_e)/_e,Xe=Math.round(Z.lat*_e)/_e,nt=k.getBearing(),lt=k.getPitch();let yt="";if(yt+=f?`/${Ce}/${Xe}/${ue}`:`${ue}/${Xe}/${Ce}`,(nt||lt)&&(yt+="/"+Math.round(10*nt)/10),lt&&(yt+=`/${Math.round(lt)}`),this._hashName){const Rt=this._hashName;let Ut=!1;const Bt=l.window.location.hash.slice(1).split("&").map(It=>{const vn=It.split("=")[0];return vn===Rt?(Ut=!0,`${vn}=${yt}`):It}).filter(It=>It);return Ut||Bt.push(`${Rt}=${yt}`),`#${Bt.join("&")}`}return`#${yt}`}_getCurrentHash(){const f=l.window.location.hash.replace("#","");if(this._hashName){let k;return f.split("&").map(Z=>Z.split("=")).forEach(Z=>{Z[0]===this._hashName&&(k=Z)}),(k&&k[1]||"").split("/")}return f.split("/")}_onHashChange(){const f=this._map;if(!f)return!1;const k=this._getCurrentHash();if(k.length>=3&&!k.some(Z=>isNaN(Z))){const Z=f.dragRotate.isEnabled()&&f.touchZoomRotate.isEnabled()?+(k[3]||0):f.getBearing();return f.jumpTo({center:[+k[2],+k[1]],zoom:+k[0],bearing:Z,pitch:+(k[4]||0)}),!0}return!1}_updateHashUnthrottled(){const f=l.window.location.href.replace(/(#.+)?$/,this.getHashString());l.window.history.replaceState(l.window.history.state,null,f)}}const Fu={linearity:.3,easing:l.bezier(0,0,.3,1)},Cc=l.extend({deceleration:2500,maxSpeed:1400},Fu),Bu=l.extend({deceleration:20,maxSpeed:1400},Fu),Bd=l.extend({deceleration:1e3,maxSpeed:360},Fu),gd=l.extend({deceleration:1e3,maxSpeed:90},Fu);class dc{constructor(f){this._map=f,this.clear()}clear(){this._inertiaBuffer=[]}record(f){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:l.exported.now(),settings:f})}_drainInertiaBuffer(){const f=this._inertiaBuffer,k=l.exported.now();for(;f.length>0&&k-f[0].time>160;)f.shift()}_onMoveEnd(f){if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;const k={zoom:0,bearing:0,pitch:0,pan:new l.pointGeometry(0,0),pinchAround:void 0,around:void 0};for(const{settings:he}of this._inertiaBuffer)k.zoom+=he.zoomDelta||0,k.bearing+=he.bearingDelta||0,k.pitch+=he.pitchDelta||0,he.panDelta&&k.pan._add(he.panDelta),he.around&&(k.around=he.around),he.pinchAround&&(k.pinchAround=he.pinchAround);const Z=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,ue={};if(k.pan.mag()){const he=So(k.pan.mag(),Z,l.extend({},Cc,f||{}));ue.offset=k.pan.mult(he.amount/k.pan.mag()),ue.center=this._map.transform.center,Ju(ue,he)}if(k.zoom){const he=So(k.zoom,Z,Bu);ue.zoom=this._map.transform.zoom+he.amount,Ju(ue,he)}if(k.bearing){const he=So(k.bearing,Z,Bd);ue.bearing=this._map.transform.bearing+l.clamp(he.amount,-179,179),Ju(ue,he)}if(k.pitch){const he=So(k.pitch,Z,gd);ue.pitch=this._map.transform.pitch+he.amount,Ju(ue,he)}if(ue.zoom||ue.bearing){const he=k.pinchAround===void 0?k.around:k.pinchAround;ue.around=he?this._map.unproject(he):this._map.getCenter()}return this.clear(),ue.noMoveStart=!0,ue}}function Ju(U,f){(!U.duration||U.duration<f.duration)&&(U.duration=f.duration,U.easing=f.easing)}function So(U,f,k){const{maxSpeed:Z,linearity:ue,deceleration:he}=k,_e=l.clamp(U*ue/(f/1e3),-Z,Z),Ce=Math.abs(_e)/(he*ue);return{easing:k.easing,duration:1e3*Ce,amount:_e*(Ce/2)}}class kl extends l.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(f,k,Z,ue={}){const he=ne(k.getCanvasContainer(),Z),_e=k.unproject(he);super(f,l.extend({point:he,lngLat:_e,originalEvent:Z},ue)),this._defaultPrevented=!1,this.target=k}}class hs extends l.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(f,k,Z){const ue=f==="touchend"?Z.changedTouches:Z.touches,he=W(k.getCanvasContainer(),ue),_e=he.map(Xe=>k.unproject(Xe)),Ce=he.reduce((Xe,nt,lt,yt)=>Xe.add(nt.div(yt.length)),new l.pointGeometry(0,0));super(f,{points:he,point:Ce,lngLats:_e,lngLat:k.unproject(Ce),originalEvent:Z}),this._defaultPrevented=!1}}class Qu extends l.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(f,k,Z){super(f,{originalEvent:Z}),this._defaultPrevented=!1}}class Nd{constructor(f,k){this._map=f,this._clickTolerance=k.clickTolerance}reset(){this._mousedownPos=void 0}wheel(f){return this._firePreventable(new Qu(f.type,this._map,f))}mousedown(f,k){return this._mousedownPos=k,this._firePreventable(new kl(f.type,this._map,f))}mouseup(f){this._map.fire(new kl(f.type,this._map,f))}preclick(f){const k=l.extend({},f);k.type="preclick",this._map.fire(new kl(k.type,this._map,k))}click(f,k){this._mousedownPos&&this._mousedownPos.dist(k)>=this._clickTolerance||(this.preclick(f),this._map.fire(new kl(f.type,this._map,f)))}dblclick(f){return this._firePreventable(new kl(f.type,this._map,f))}mouseover(f){this._map.fire(new kl(f.type,this._map,f))}mouseout(f){this._map.fire(new kl(f.type,this._map,f))}touchstart(f){return this._firePreventable(new hs(f.type,this._map,f))}touchmove(f){this._map.fire(new hs(f.type,this._map,f))}touchend(f){this._map.fire(new hs(f.type,this._map,f))}touchcancel(f){this._map.fire(new hs(f.type,this._map,f))}_firePreventable(f){if(this._map.fire(f),f.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class Nu{constructor(f){this._map=f}reset(){this._delayContextMenu=!1,this._contextMenuEvent=void 0}mousemove(f){this._map.fire(new kl(f.type,this._map,f))}mousedown(){this._delayContextMenu=!0}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new kl("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(f){this._delayContextMenu?this._contextMenuEvent=f:this._map.fire(new kl(f.type,this._map,f)),this._map.listens("contextmenu")&&f.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class Vl{constructor(f,k){this._map=f,this._el=f.getCanvasContainer(),this._container=f.getContainer(),this._clickTolerance=k.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(f,k){this.isEnabled()&&f.shiftKey&&f.button===0&&(A(),this._startPos=this._lastPos=k,this._active=!0)}mousemoveWindow(f,k){if(!this._active)return;const Z=k;if(this._lastPos.equals(Z)||!this._box&&Z.dist(this._startPos)<this._clickTolerance)return;const ue=this._startPos;this._lastPos=Z,this._box||(this._box=b("div","mapboxgl-boxzoom",this._container),this._container.classList.add("mapboxgl-crosshair"),this._fireEvent("boxzoomstart",f));const he=Math.min(ue.x,Z.x),_e=Math.max(ue.x,Z.x),Ce=Math.min(ue.y,Z.y),Xe=Math.max(ue.y,Z.y);this._map._requestDomTask(()=>{this._box&&(this._box.style.transform=`translate(${he}px,${Ce}px)`,this._box.style.width=_e-he+"px",this._box.style.height=Xe-Ce+"px")})}mouseupWindow(f,k){if(!this._active||f.button!==0)return;const Z=this._startPos,ue=k;if(this.reset(),V(),Z.x!==ue.x||Z.y!==ue.y)return this._map.fire(new l.Event("boxzoomend",{originalEvent:f})),{cameraAnimation:he=>he.fitScreenCoordinates(Z,ue,this._map.getBearing(),{linear:!1})};this._fireEvent("boxzoomcancel",f)}keydown(f){this._active&&f.keyCode===27&&(this.reset(),this._fireEvent("boxzoomcancel",f))}blur(){this.reset()}reset(){this._active=!1,this._container.classList.remove("mapboxgl-crosshair"),this._box&&(this._box.remove(),this._box=null),z(),delete this._startPos,delete this._lastPos}_fireEvent(f,k){return this._map.fire(new l.Event(f,{originalEvent:k}))}}function ec(U,f){const k={};for(let Z=0;Z<U.length;Z++)k[U[Z].identifier]=f[Z];return k}class ks{constructor(f){this.reset(),this.numTouches=f.numTouches}reset(){this.centroid=void 0,this.startTime=0,this.touches={},this.aborted=!1}touchstart(f,k,Z){(this.centroid||Z.length>this.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===0&&(this.startTime=f.timeStamp),Z.length===this.numTouches&&(this.centroid=function(ue){const he=new l.pointGeometry(0,0);for(const _e of ue)he._add(_e);return he.div(ue.length)}(k),this.touches=ec(Z,k)))}touchmove(f,k,Z){if(this.aborted||!this.centroid)return;const ue=ec(Z,k);for(const he in this.touches){const _e=this.touches[he],Ce=ue[he];(!Ce||Ce.dist(_e)>30)&&(this.aborted=!0)}}touchend(f,k,Z){if((!this.centroid||f.timeStamp-this.startTime>500)&&(this.aborted=!0),Z.length===0){const ue=!this.aborted&&this.centroid;if(this.reset(),ue)return ue}}}class Fa{constructor(f){this.singleTap=new ks(f),this.numTaps=f.numTaps,this.reset()}reset(){this.lastTime=1/0,this.lastTap=void 0,this.count=0,this.singleTap.reset()}touchstart(f,k,Z){this.singleTap.touchstart(f,k,Z)}touchmove(f,k,Z){this.singleTap.touchmove(f,k,Z)}touchend(f,k,Z){const ue=this.singleTap.touchend(f,k,Z);if(ue){const he=f.timeStamp-this.lastTime<500,_e=!this.lastTap||this.lastTap.dist(ue)<30;if(he&&_e||this.reset(),this.count++,this.lastTime=f.timeStamp,this.lastTap=ue,this.count===this.numTaps)return this.reset(),ue}}}class Si{constructor(){this._zoomIn=new Fa({numTouches:1,numTaps:2}),this._zoomOut=new Fa({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(f,k,Z){this._zoomIn.touchstart(f,k,Z),this._zoomOut.touchstart(f,k,Z)}touchmove(f,k,Z){this._zoomIn.touchmove(f,k,Z),this._zoomOut.touchmove(f,k,Z)}touchend(f,k,Z){const ue=this._zoomIn.touchend(f,k,Z),he=this._zoomOut.touchend(f,k,Z);return ue?(this._active=!0,f.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:_e=>_e.easeTo({duration:300,zoom:_e.getZoom()+1,around:_e.unproject(ue)},{originalEvent:f})}):he?(this._active=!0,f.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:_e=>_e.easeTo({duration:300,zoom:_e.getZoom()-1,around:_e.unproject(he)},{originalEvent:f})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}const Vd={0:1,2:2,1:4};class tc{constructor(f){this.reset(),this._clickTolerance=f.clickTolerance||1}blur(){this.reset()}reset(){this._active=!1,this._moved=!1,this._lastPoint=void 0,this._eventButton=void 0}_correctButton(f,k){return!1}_move(f,k){return{}}mousedown(f,k){if(this._lastPoint)return;const Z=B(f);this._correctButton(f,Z)&&(this._lastPoint=k,this._eventButton=Z)}mousemoveWindow(f,k){const Z=this._lastPoint;if(Z){if(f.preventDefault(),this._eventButton!=null&&function(ue,he){const _e=Vd[he];return ue.buttons===void 0||(ue.buttons&_e)!==_e}(f,this._eventButton))this.reset();else if(this._moved||!(k.dist(Z)<this._clickTolerance))return this._moved=!0,this._lastPoint=k,this._move(Z,k)}}mouseupWindow(f){this._lastPoint&&B(f)===this._eventButton&&(this._moved&&V(),this.reset())}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Ks extends tc{useMiddle(f){let k=this._middle;return this._middle=f,k}mousedown(f,k){super.mousedown(f,k),this._lastPoint&&(this._active=!0)}_correctButton(f,k){return this._middle?k===1&&!f.ctrlKey:k===0&&!f.ctrlKey}_move(f,k){return{around:k,panDelta:k.sub(f)}}}class Hc extends tc{_correctButton(f,k){return k===0&&f.ctrlKey||k===2}_move(f,k){const Z=.8*(k.x-f.x);if(Z)return this._active=!0,{bearingDelta:Z}}contextmenu(f){f.preventDefault()}}class yd extends tc{_correctButton(f,k){return k===0&&f.ctrlKey||k===2}_move(f,k){const Z=-.5*(k.y-f.y);if(Z)return this._active=!0,{pitchDelta:Z}}contextmenu(f){f.preventDefault()}}class Th{constructor(f,k){this._map=f,this._el=f.getCanvasContainer(),this._minTouches=1,this._clickTolerance=k.clickTolerance||1,this.reset(),l.bindAll(["_addTouchPanBlocker","_showTouchPanBlockerAlert"],this)}reset(){this._active=!1,this._touches={},this._sum=new l.pointGeometry(0,0)}touchstart(f,k,Z){return this._calculateTransform(f,k,Z)}touchmove(f,k,Z){if(this._active&&!(Z.length<this._minTouches)){if(this._map._cooperativeGestures&&!this._map.isMoving()){if(Z.length===1)return void this._showTouchPanBlockerAlert();this._alertContainer.style.visibility!=="hidden"&&(this._alertContainer.style.visibility="hidden",clearTimeout(this._alertTimer))}return f.preventDefault(),this._calculateTransform(f,k,Z)}}touchend(f,k,Z){this._calculateTransform(f,k,Z),this._active&&Z.length<this._minTouches&&this.reset()}touchcancel(){this.reset()}_calculateTransform(f,k,Z){Z.length>0&&(this._active=!0);const ue=ec(Z,k),he=new l.pointGeometry(0,0),_e=new l.pointGeometry(0,0);let Ce=0;for(const nt in ue){const lt=ue[nt],yt=this._touches[nt];yt&&(he._add(lt),_e._add(lt.sub(yt)),Ce++,ue[nt]=lt)}if(this._touches=ue,Ce<this._minTouches||!_e.mag())return;const Xe=_e.div(Ce);return this._sum._add(Xe),this._sum.mag()<this._clickTolerance?void 0:{around:he.div(Ce),panDelta:Xe}}enable(){this._enabled=!0,this._map._cooperativeGestures&&(this._addTouchPanBlocker(),this._el.classList.add("mapboxgl-touch-pan-blocker-override","mapboxgl-scrollable-page"))}disable(){this._enabled=!1,this._map._cooperativeGestures&&(clearTimeout(this._alertTimer),this._alertContainer.remove(),this._el.classList.remove("mapboxgl-touch-pan-blocker-override","mapboxgl-scrollable-page")),this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}_addTouchPanBlocker(){this._map&&!this._alertContainer&&(this._alertContainer=b("div","mapboxgl-touch-pan-blocker",this._map._container),this._alertContainer.textContent=this._map._getUIString("TouchPanBlocker.Message"),this._alertContainer.style.fontSize=`${Math.max(10,Math.min(24,Math.floor(.05*this._el.clientWidth)))}px`)}_showTouchPanBlockerAlert(){this._alertContainer.style.visibility==="hidden"&&(this._alertContainer.style.visibility="visible"),this._alertContainer.classList.add("mapboxgl-touch-pan-blocker-show"),clearTimeout(this._alertTimer),this._alertTimer=setTimeout(()=>{this._alertContainer.classList.remove("mapboxgl-touch-pan-blocker-show")},500)}}class zl{constructor(){this.reset()}reset(){this._active=!1,this._firstTwoTouches=void 0}_start(f){}_move(f,k,Z){return{}}touchstart(f,k,Z){this._firstTwoTouches||Z.length<2||(this._firstTwoTouches=[Z[0].identifier,Z[1].identifier],this._start([k[0],k[1]]))}touchmove(f,k,Z){const ue=this._firstTwoTouches;if(!ue)return;f.preventDefault();const[he,_e]=ue,Ce=lu(Z,k,he),Xe=lu(Z,k,_e);if(!Ce||!Xe)return;const nt=this._aroundCenter?null:Ce.add(Xe).div(2);return this._move([Ce,Xe],nt,f)}touchend(f,k,Z){if(!this._firstTwoTouches)return;const[ue,he]=this._firstTwoTouches,_e=lu(Z,k,ue),Ce=lu(Z,k,he);_e&&Ce||(this._active&&V(),this.reset())}touchcancel(){this.reset()}enable(f){this._enabled=!0,this._aroundCenter=!!f&&f.around==="center"}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}function lu(U,f,k){for(let Z=0;Z<U.length;Z++)if(U[Z].identifier===k)return f[Z]}function Js(U,f){return Math.log(U/f)/Math.LN2}class Wc extends zl{reset(){super.reset(),this._distance=0,this._startDistance=0}_start(f){this._startDistance=this._distance=f[0].dist(f[1])}_move(f,k){const Z=this._distance;if(this._distance=f[0].dist(f[1]),this._active||!(Math.abs(Js(this._distance,this._startDistance))<.1))return this._active=!0,{zoomDelta:Js(this._distance,Z),pinchAround:k}}}function Sc(U,f){return 180*U.angleWith(f)/Math.PI}class Ec extends zl{reset(){super.reset(),this._minDiameter=0,this._startVector=void 0,this._vector=void 0}_start(f){this._startVector=this._vector=f[0].sub(f[1]),this._minDiameter=f[0].dist(f[1])}_move(f,k){const Z=this._vector;if(this._vector=f[0].sub(f[1]),this._active||!this._isBelowThreshold(this._vector))return this._active=!0,{bearingDelta:Sc(this._vector,Z),pinchAround:k}}_isBelowThreshold(f){this._minDiameter=Math.min(this._minDiameter,f.mag());const k=25/(Math.PI*this._minDiameter)*360,Z=Sc(f,this._startVector);return Math.abs(Z)<k}}function nc(U){return Math.abs(U.y)>Math.abs(U.x)}class hc extends zl{constructor(f){super(),this._map=f}reset(){super.reset(),this._valid=void 0,this._firstMove=void 0,this._lastPoints=void 0}_start(f){this._lastPoints=f,nc(f[0].sub(f[1]))&&(this._valid=!1)}_move(f,k,Z){const ue=this._lastPoints;if(!ue)return;const he=f[0].sub(ue[0]),_e=f[1].sub(ue[1]);return this._map._cooperativeGestures&&Z.touches.length<3||(this._valid=this.gestureBeginsVertically(he,_e,Z.timeStamp),!this._valid)?void 0:(this._lastPoints=f,this._active=!0,{pitchDelta:(he.y+_e.y)/2*-.5})}gestureBeginsVertically(f,k,Z){if(this._valid!==void 0)return this._valid;const ue=f.mag()>=2,he=k.mag()>=2;if(!ue&&!he)return;if(!ue||!he)return this._firstMove==null&&(this._firstMove=Z),Z-this._firstMove<100&&void 0;const _e=f.y>0==k.y>0;return nc(f)&&nc(k)&&_e}}const Yc={panStep:100,bearingStep:15,pitchStep:10};class Wi{constructor(){const f=Yc;this._panStep=f.panStep,this._bearingStep=f.bearingStep,this._pitchStep=f.pitchStep,this._rotationDisabled=!1}blur(){this.reset()}reset(){this._active=!1}keydown(f){if(f.altKey||f.ctrlKey||f.metaKey)return;let k=0,Z=0,ue=0,he=0,_e=0;switch(f.keyCode){case 61:case 107:case 171:case 187:k=1;break;case 189:case 109:case 173:k=-1;break;case 37:f.shiftKey?Z=-1:(f.preventDefault(),he=-1);break;case 39:f.shiftKey?Z=1:(f.preventDefault(),he=1);break;case 38:f.shiftKey?ue=1:(f.preventDefault(),_e=-1);break;case 40:f.shiftKey?ue=-1:(f.preventDefault(),_e=1);break;default:return}return this._rotationDisabled&&(Z=0,ue=0),{cameraAnimation:Ce=>{const Xe=Ce.getZoom();Ce.easeTo({duration:300,easeId:"keyboardHandler",easing:Dh,zoom:k?Math.round(Xe)+k*(f.shiftKey?2:1):Xe,bearing:Ce.getBearing()+Z*this._bearingStep,pitch:Ce.getPitch()+ue*this._pitchStep,offset:[-he*this._panStep,-_e*this._panStep],center:Ce.getCenter()},{originalEvent:f})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function Dh(U){return U*(2-U)}const qc=4.000244140625;class Xc{constructor(f,k){this._map=f,this._el=f.getCanvasContainer(),this._handler=k,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222,l.bindAll(["_onTimeout","_addScrollZoomBlocker","_showBlockerAlert","_isFullscreen"],this)}setZoomRate(f){this._defaultZoomRate=f}setWheelZoomRate(f){this._wheelZoomRate=f}isEnabled(){return!!this._enabled}isActive(){return!!this._active||this._finishTimeout!==void 0}isZooming(){return!!this._zooming}enable(f){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!f&&f.around==="center",this._map._cooperativeGestures&&this._addScrollZoomBlocker())}disable(){this.isEnabled()&&(this._enabled=!1,this._map._cooperativeGestures&&(clearTimeout(this._alertTimer),this._alertContainer.remove()))}wheel(f){if(!this.isEnabled())return;if(this._map._cooperativeGestures){if(!(f.ctrlKey||f.metaKey||this.isZooming()||this._isFullscreen()))return void this._showBlockerAlert();this._alertContainer.style.visibility!=="hidden"&&(this._alertContainer.style.visibility="hidden",clearTimeout(this._alertTimer))}let k=f.deltaMode===l.window.WheelEvent.DOM_DELTA_LINE?40*f.deltaY:f.deltaY;const Z=l.exported.now(),ue=Z-(this._lastWheelEventTime||0);this._lastWheelEventTime=Z,k!==0&&k%qc==0?this._type="wheel":k!==0&&Math.abs(k)<4?this._type="trackpad":ue>400?(this._type=null,this._lastValue=k,this._timeout=setTimeout(this._onTimeout,40,f)):this._type||(this._type=Math.abs(ue*k)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,k+=this._lastValue)),f.shiftKey&&k&&(k/=4),this._type&&(this._lastWheelEvent=f,this._delta-=k,this._active||this._start(f)),f.preventDefault()}_onTimeout(f){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(f)}_start(f){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);const k=ne(this._el,f);this._aroundPoint=this._aroundCenter?this._map.transform.centerPoint:k,this._aroundCoord=this._map.transform.pointCoordinate3D(this._aroundPoint),this._targetZoom=void 0,this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}renderFrame(){if(!this._frameId||(this._frameId=null,!this.isActive()))return;const f=this._map.transform,k=()=>f._terrainEnabled()&&this._aroundCoord?f.computeZoomRelativeTo(this._aroundCoord):f.zoom;if(this._delta!==0){const Xe=this._type==="wheel"&&Math.abs(this._delta)>qc?this._wheelZoomRate:this._defaultZoomRate;let nt=2/(1+Math.exp(-Math.abs(this._delta*Xe)));this._delta<0&&nt!==0&&(nt=1/nt);const lt=k(),yt=Math.pow(2,lt),Rt=typeof this._targetZoom=="number"?f.zoomScale(this._targetZoom):yt;this._targetZoom=Math.min(f.maxZoom,Math.max(f.minZoom,f.scaleZoom(Rt*nt))),this._type==="wheel"&&(this._startZoom=k(),this._easing=this._smoothOutEasing(200)),this._delta=0}const Z=typeof this._targetZoom=="number"?this._targetZoom:k(),ue=this._startZoom,he=this._easing;let _e,Ce=!1;if(this._type==="wheel"&&ue&&he){const Xe=Math.min((l.exported.now()-this._lastWheelEventTime)/200,1),nt=he(Xe);_e=l.number(ue,Z,nt),Xe<1?this._frameId||(this._frameId=!0):Ce=!0}else _e=Z,Ce=!0;return this._active=!0,Ce&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._handler._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Ce,zoomDelta:_e-k(),around:this._aroundPoint,aroundCoord:this._aroundCoord,originalEvent:this._lastWheelEvent}}_smoothOutEasing(f){let k=l.ease;if(this._prevEase){const Z=this._prevEase,ue=(l.exported.now()-Z.start)/Z.duration,he=Z.easing(ue+.01)-Z.easing(ue),_e=.27/Math.sqrt(he*he+1e-4)*.01,Ce=Math.sqrt(.0729-_e*_e);k=l.bezier(_e,Ce,.25,1)}return this._prevEase={start:l.exported.now(),duration:f,easing:k},k}blur(){this.reset()}reset(){this._active=!1}_addScrollZoomBlocker(){this._map&&!this._alertContainer&&(this._alertContainer=b("div","mapboxgl-scroll-zoom-blocker",this._map._container),this._alertContainer.textContent=/(Mac|iPad)/i.test(l.window.navigator.userAgent)?this._map._getUIString("ScrollZoomBlocker.CmdMessage"):this._map._getUIString("ScrollZoomBlocker.CtrlMessage"),this._alertContainer.style.fontSize=`${Math.max(10,Math.min(24,Math.floor(.05*this._el.clientWidth)))}px`)}_isFullscreen(){return!!l.window.document.fullscreenElement||!!l.window.document.webkitFullscreenElement}_showBlockerAlert(){this._alertContainer.style.visibility==="hidden"&&(this._alertContainer.style.visibility="visible"),this._alertContainer.classList.add("mapboxgl-scroll-zoom-blocker-show"),clearTimeout(this._alertTimer),this._alertTimer=setTimeout(()=>{this._alertContainer.classList.remove("mapboxgl-scroll-zoom-blocker-show")},200)}}class bo{constructor(f,k){this._clickZoom=f,this._tapZoom=k}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class Mu{constructor(){this.reset()}reset(){this._active=!1}blur(){this.reset()}dblclick(f,k){return f.preventDefault(),{cameraAnimation:Z=>{Z.easeTo({duration:300,zoom:Z.getZoom()+(f.shiftKey?-1:1),around:Z.unproject(k)},{originalEvent:f})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class wo{constructor(){this._tap=new Fa({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,this._swipePoint=void 0,this._swipeTouch=0,this._tapTime=0,this._tap.reset()}touchstart(f,k,Z){this._swipePoint||(this._tapTime&&f.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?Z.length>0&&(this._swipePoint=k[0],this._swipeTouch=Z[0].identifier):this._tap.touchstart(f,k,Z))}touchmove(f,k,Z){if(this._tapTime){if(this._swipePoint){if(Z[0].identifier!==this._swipeTouch)return;const ue=k[0],he=ue.y-this._swipePoint.y;return this._swipePoint=ue,f.preventDefault(),this._active=!0,{zoomDelta:he/128}}}else this._tap.touchmove(f,k,Z)}touchend(f,k,Z){this._tapTime?this._swipePoint&&Z.length===0&&this.reset():this._tap.touchend(f,k,Z)&&(this._tapTime=f.timeStamp)}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class zd{constructor(f,k,Z){this._el=f,this._mousePan=k,this._touchPan=Z}enable(f){this._inertiaOptions=f||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}useMouseMiddle(f){return this._mousePan.useMiddle(f)}}class Tc{constructor(f,k,Z){this._pitchWithRotate=f.pitchWithRotate,this._mouseRotate=k,this._mousePitch=Z}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class ih{constructor(f,k,Z,ue){this._el=f,this._touchZoom=k,this._touchRotate=Z,this._tapDragZoom=ue,this._rotationDisabled=!1,this._enabled=!0}enable(f){this._touchZoom.enable(f),this._rotationDisabled||this._touchRotate.enable(f),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}const Cl=U=>U.zoom||U.drag||U.pitch||U.rotate;class Ah extends l.Event{}class ah{constructor(){this.constants=[1,1,.01],this.radius=0}setup(f,k){const Z=l.sub([],k,f);this.radius=l.length(Z[2]<0?l.div([],Z,this.constants):[Z[0],Z[1],0])}projectRay(f){l.div(f,f,this.constants),l.normalize(f,f),l.mul$1(f,f,this.constants);const k=l.scale$2([],f,this.radius);if(k[2]>0){const Z=l.scale$2([],[0,0,1],l.dot(k,[0,0,1])),ue=l.scale$2([],l.normalize([],[k[0],k[1],0]),this.radius),he=l.add([],k,l.scale$2([],l.sub([],l.add([],ue,Z),k),2));k[0]=he[0],k[1]=he[1]}return k}}function Zc(U){return U.panDelta&&U.panDelta.mag()||U.zoomDelta||U.bearingDelta||U.pitchDelta}class kh{constructor(f,k){this._map=f,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new dc(f),this._bearingSnap=k.bearingSnap,this._previousActiveHandlers={},this._trackingEllipsoid=new ah,this._dragOrigin=null,this._eventsInProgress={},this._addDefaultHandlers(k),l.bindAll(["handleEvent","handleWindowEvent"],this);const Z=this._el;this._listeners=[[Z,"touchstart",{passive:!0}],[Z,"touchmove",{passive:!1}],[Z,"touchend",void 0],[Z,"touchcancel",void 0],[Z,"mousedown",void 0],[Z,"mousemove",void 0],[Z,"mouseup",void 0],[l.window.document,"mousemove",{capture:!0}],[l.window.document,"mouseup",void 0],[Z,"mouseover",void 0],[Z,"mouseout",void 0],[Z,"dblclick",void 0],[Z,"click",void 0],[Z,"keydown",{capture:!1}],[Z,"keyup",void 0],[Z,"wheel",{passive:!1}],[Z,"contextmenu",void 0],[l.window,"blur",void 0]];for(const[ue,he,_e]of this._listeners)ue.addEventListener(he,ue===l.window.document?this.handleWindowEvent:this.handleEvent,_e)}destroy(){for(const[f,k,Z]of this._listeners)f.removeEventListener(k,f===l.window.document?this.handleWindowEvent:this.handleEvent,Z)}_addDefaultHandlers(f){const k=this._map,Z=k.getCanvasContainer();this._add("mapEvent",new Nd(k,f));const ue=k.boxZoom=new Vl(k,f);this._add("boxZoom",ue);const he=new Si,_e=new Mu;k.doubleClickZoom=new bo(_e,he),this._add("tapZoom",he),this._add("clickZoom",_e);const Ce=new wo;this._add("tapDragZoom",Ce);const Xe=k.touchPitch=new hc(k);this._add("touchPitch",Xe);const nt=new Hc(f),lt=new yd(f);k.dragRotate=new Tc(f,nt,lt),this._add("mouseRotate",nt,["mousePitch"]),this._add("mousePitch",lt,["mouseRotate"]);const yt=new Ks(f),Rt=new Th(k,f);k.dragPan=new zd(Z,yt,Rt),this._add("mousePan",yt),this._add("touchPan",Rt,["touchZoom","touchRotate"]);const Ut=new Ec,Bt=new Wc;k.touchZoomRotate=new ih(Z,Bt,Ut,Ce),this._add("touchRotate",Ut,["touchPan","touchZoom"]),this._add("touchZoom",Bt,["touchPan","touchRotate"]),this._add("blockableMapEvent",new Nu(k));const It=k.scrollZoom=new Xc(k,this);this._add("scrollZoom",It,["mousePan"]);const vn=k.keyboard=new Wi;this._add("keyboard",vn);for(const tn of["boxZoom","doubleClickZoom","tapDragZoom","touchPitch","dragRotate","dragPan","touchZoomRotate","scrollZoom","keyboard"])f.interactive&&f[tn]&&k[tn].enable(f[tn])}_add(f,k,Z){this._handlers.push({handlerName:f,handler:k,allowed:Z}),this._handlersById[f]=k}stop(f){if(!this._updatingCamera){for(const{handler:k}of this._handlers)k.reset();this._inertia.clear(),this._fireEvents({},{},f),this._changes=[]}}isActive(){for(const{handler:f}of this._handlers)if(f.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!Cl(this._eventsInProgress)||this.isZooming()}_blockedByActive(f,k,Z){for(const ue in f)if(ue!==Z&&(!k||k.indexOf(ue)<0))return!0;return!1}handleWindowEvent(f){this.handleEvent(f,`${f.type}Window`)}_getMapTouches(f){const k=[];for(const Z of f)this._el.contains(Z.target)&&k.push(Z);return k}handleEvent(f,k){this._updatingCamera=!0;const Z=f.type==="renderFrame",ue=Z?void 0:f,he={needsRenderFrame:!1},_e={},Ce={},Xe=f.touches?this._getMapTouches(f.touches):void 0,nt=Xe?W(this._el,Xe):Z?void 0:ne(this._el,f);for(const{handlerName:Rt,handler:Ut,allowed:Bt}of this._handlers){if(!Ut.isEnabled())continue;let It;this._blockedByActive(Ce,Bt,Rt)?Ut.reset():Ut[k||f.type]&&(It=Ut[k||f.type](f,nt,Xe),this.mergeHandlerResult(he,_e,It,Rt,ue),It&&It.needsRenderFrame&&this._triggerRenderFrame()),(It||Ut.isActive())&&(Ce[Rt]=Ut)}const lt={};for(const Rt in this._previousActiveHandlers)Ce[Rt]||(lt[Rt]=ue);this._previousActiveHandlers=Ce,(Object.keys(lt).length||Zc(he))&&(this._changes.push([he,_e,lt]),this._triggerRenderFrame()),(Object.keys(Ce).length||Zc(he))&&this._map._stop(!0),this._updatingCamera=!1;const{cameraAnimation:yt}=he;yt&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],yt(this._map))}mergeHandlerResult(f,k,Z,ue,he){if(!Z)return;l.extend(f,Z);const _e={handlerName:ue,originalEvent:Z.originalEvent||he};Z.zoomDelta!==void 0&&(k.zoom=_e),Z.panDelta!==void 0&&(k.drag=_e),Z.pitchDelta!==void 0&&(k.pitch=_e),Z.bearingDelta!==void 0&&(k.rotate=_e)}_applyChanges(){const f={},k={},Z={};for(const[ue,he,_e]of this._changes)ue.panDelta&&(f.panDelta=(f.panDelta||new l.pointGeometry(0,0))._add(ue.panDelta)),ue.zoomDelta&&(f.zoomDelta=(f.zoomDelta||0)+ue.zoomDelta),ue.bearingDelta&&(f.bearingDelta=(f.bearingDelta||0)+ue.bearingDelta),ue.pitchDelta&&(f.pitchDelta=(f.pitchDelta||0)+ue.pitchDelta),ue.around!==void 0&&(f.around=ue.around),ue.aroundCoord!==void 0&&(f.aroundCoord=ue.aroundCoord),ue.pinchAround!==void 0&&(f.pinchAround=ue.pinchAround),ue.noInertia&&(f.noInertia=ue.noInertia),l.extend(k,he),l.extend(Z,_e);this._updateMapTransform(f,k,Z),this._changes=[]}_updateMapTransform(f,k,Z){const ue=this._map,he=ue.transform,_e=cn=>[cn.x,cn.y,cn.z];if((cn=>{const pn=this._eventsInProgress.drag;return pn&&!this._handlersById[pn.handlerName].isActive()})()&&!Zc(f)){const cn=he.zoom;he.cameraElevationReference="sea",he.recenterOnTerrain(),he.cameraElevationReference="ground",cn!==he.zoom&&this._map._update(!0)}if(!Zc(f))return void this._fireEvents(k,Z,!0);let{panDelta:Ce,zoomDelta:Xe,bearingDelta:nt,pitchDelta:lt,around:yt,aroundCoord:Rt,pinchAround:Ut}=f;Ut!==void 0&&(yt=Ut),(cn=>k.drag&&!this._eventsInProgress.drag)()&&yt&&(this._dragOrigin=_e(he.pointCoordinate3D(yt)),this._trackingEllipsoid.setup(he._camera.position,this._dragOrigin)),he.cameraElevationReference="sea",ue._stop(!0),yt=yt||ue.transform.centerPoint,nt&&(he.bearing+=nt),lt&&(he.pitch+=lt),he._updateCameraState();const Bt=[0,0,0];if(Ce){const cn=he.pointCoordinate(yt);if(he.projection.name==="globe"){const pn=l.latFromMercatorY(cn.y),Cn=he.center.lat,un=Math.min(l.mercatorZfromAltitude(1,pn)/l.mercatorZfromAltitude(1,Cn),2);Ce=Ce.rotate(-he.angle),Bt[0]=-Ce.x/he.worldSize*un,Bt[1]=-Ce.y/he.worldSize*un}else{const pn=he.pointCoordinate(yt.sub(Ce));cn&&pn&&(Bt[0]=pn.x-cn.x,Bt[1]=pn.y-cn.y)}}const It=he.zoom,vn=[0,0,0];if(Xe){const cn=_e(Rt||he.pointCoordinate3D(yt)),pn={dir:l.normalize([],l.sub([],cn,he._camera.position))};if(pn.dir[2]<0){const Cn=he.zoomDeltaToMovement(cn,Xe);l.scale$2(vn,pn.dir,Cn)}}const tn=l.add(Bt,Bt,vn);he._translateCameraConstrained(tn),Xe&&Math.abs(he.zoom-It)>1e-4&&he.recenterOnTerrain(),he.cameraElevationReference="ground",this._map._update(),f.noInertia||this._inertia.record(f),this._fireEvents(k,Z,!0)}_fireEvents(f,k,Z){const ue=Cl(this._eventsInProgress),he=Cl(f),_e={};for(const lt in f){const{originalEvent:yt}=f[lt];this._eventsInProgress[lt]||(_e[`${lt}start`]=yt),this._eventsInProgress[lt]=f[lt]}!ue&&he&&this._fireEvent("movestart",he.originalEvent);for(const lt in _e)this._fireEvent(lt,_e[lt]);he&&this._fireEvent("move",he.originalEvent);for(const lt in f){const{originalEvent:yt}=f[lt];this._fireEvent(lt,yt)}const Ce={};let Xe;for(const lt in this._eventsInProgress){const{handlerName:yt,originalEvent:Rt}=this._eventsInProgress[lt];this._handlersById[yt].isActive()||(delete this._eventsInProgress[lt],Xe=k[yt]||Rt,Ce[`${lt}end`]=Xe)}for(const lt in Ce)this._fireEvent(lt,Ce[lt]);const nt=Cl(this._eventsInProgress);if(Z&&(ue||he)&&!nt){this._updatingCamera=!0;const lt=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),yt=Rt=>Rt!==0&&-this._bearingSnap<Rt&&Rt<this._bearingSnap;lt?(yt(lt.bearing||this._map.getBearing())&&(lt.bearing=0),this._map.easeTo(lt,{originalEvent:Xe})):(this._map.fire(new l.Event("moveend",{originalEvent:Xe})),yt(this._map.getBearing())&&this._map.resetNorth()),this._updatingCamera=!1}}_fireEvent(f,k){this._map.fire(new l.Event(f,k?{originalEvent:k}:{}))}_requestFrame(){return this._map.triggerRepaint(),this._map._renderTaskQueue.add(f=>{this._frameId=void 0,this.handleEvent(new Ah("renderFrame",{timeStamp:f})),this._applyChanges()})}_triggerRenderFrame(){this._frameId===void 0&&(this._frameId=this._requestFrame())}}const Gd="map.setFreeCameraOptions(...) and map.getFreeCameraOptions() are not yet supported for non-mercator projections.";class Jl extends l.Evented{constructor(f,k){super(),this._moving=!1,this._zooming=!1,this.transform=f,this._bearingSnap=k.bearingSnap,l.bindAll(["_renderFrameCallback"],this)}getCenter(){return new l.LngLat(this.transform.center.lng,this.transform.center.lat)}setCenter(f,k){return this.jumpTo({center:f},k)}panBy(f,k,Z){return f=l.pointGeometry.convert(f).mult(-1),this.panTo(this.transform.center,l.extend({offset:f},k),Z)}panTo(f,k,Z){return this.easeTo(l.extend({center:f},k),Z)}getZoom(){return this.transform.zoom}setZoom(f,k){return this.jumpTo({zoom:f},k),this}zoomTo(f,k,Z){return this.easeTo(l.extend({zoom:f},k),Z)}zoomIn(f,k){return this.zoomTo(this.getZoom()+1,f,k),this}zoomOut(f,k){return this.zoomTo(this.getZoom()-1,f,k),this}getBearing(){return this.transform.bearing}setBearing(f,k){return this.jumpTo({bearing:f},k),this}getPadding(){return this.transform.padding}setPadding(f,k){return this.jumpTo({padding:f},k),this}rotateTo(f,k,Z){return this.easeTo(l.extend({bearing:f},k),Z)}resetNorth(f,k){return this.rotateTo(0,l.extend({duration:1e3},f),k),this}resetNorthPitch(f,k){return this.easeTo(l.extend({bearing:0,pitch:0,duration:1e3},f),k),this}snapToNorth(f,k){return Math.abs(this.getBearing())<this._bearingSnap?this.resetNorth(f,k):this}getPitch(){return this.transform.pitch}setPitch(f,k){return this.jumpTo({pitch:f},k),this}cameraForBounds(f,k){f=l.LngLatBounds.convert(f);const Z=k&&k.bearing||0;return this._cameraForBoxAndBearing(f.getNorthWest(),f.getSouthEast(),Z,k)}_extendCameraOptions(f){const k={top:0,bottom:0,right:0,left:0};if(typeof(f=l.extend({padding:k,offset:[0,0],maxZoom:this.transform.maxZoom},f)).padding=="number"){const Z=f.padding;f.padding={top:Z,bottom:Z,right:Z,left:Z}}return f.padding=l.extend(k,f.padding),f}_cameraForBoxAndBearing(f,k,Z,ue){const he=this._extendCameraOptions(ue),_e=this.transform,Ce=_e.padding,Xe=_e.project(l.LngLat.convert(f)),nt=_e.project(l.LngLat.convert(k)),lt=new l.pointGeometry(Xe.x,nt.y),yt=new l.pointGeometry(nt.x,Xe.y),Rt=-l.degToRad(Z),Ut=Xe.rotate(Rt),Bt=nt.rotate(Rt),It=lt.rotate(Rt),vn=yt.rotate(Rt),tn=new l.pointGeometry(Math.max(Ut.x,Bt.x,It.x,vn.x),Math.max(Ut.y,Bt.y,It.y,vn.y)),cn=new l.pointGeometry(Math.min(Ut.x,Bt.x,It.x,vn.x),Math.min(Ut.y,Bt.y,It.y,vn.y)),pn=tn.sub(cn),Cn=(_e.width-((Ce.left||0)+(Ce.right||0)+he.padding.left+he.padding.right))/pn.x,un=(_e.height-((Ce.top||0)+(Ce.bottom||0)+he.padding.top+he.padding.bottom))/pn.y;if(un<0||Cn<0)return void l.warnOnce("Map cannot fit within canvas with the given bounds, padding, and/or offset.");const kn=Math.min(_e.scaleZoom(_e.scale*Math.min(Cn,un)),he.maxZoom),nr=typeof he.offset.x=="number"&&typeof he.offset.y=="number"?new l.pointGeometry(he.offset.x,he.offset.y):l.pointGeometry.convert(he.offset),dr=new l.pointGeometry((he.padding.left-he.padding.right)/2,(he.padding.top-he.padding.bottom)/2).rotate(Z*Math.PI/180),xr=nr.add(dr).mult(_e.scale/_e.zoomScale(kn));return{center:_e.unproject(Xe.add(nt).div(2).sub(xr)),zoom:kn,bearing:Z}}_cameraForBox(f,k,Z,ue,he){const _e=this._extendCameraOptions(he);Z=Z||0,ue=ue||0,f=l.LngLat.convert(f),k=l.LngLat.convert(k);const Ce=this.transform.clone();Ce.padding=_e.padding;const Xe=this.getFreeCameraOptions(),nt=new l.LngLat(.5*(f.lng+k.lng),.5*(f.lat+k.lat)),lt=.5*(Z+ue);if(Ce._camera.position[2]<l.mercatorZfromAltitude(lt,nt.lat))return void l.warnOnce("Map cannot fit within canvas with the given bounds, padding, and/or offset.");Xe.lookAtPoint(nt),Ce.setFreeCameraOptions(Xe);const yt=l.MercatorCoordinate.fromLngLat(f),Rt=l.MercatorCoordinate.fromLngLat(k),Ut=Ce.pointRayIntersection(Ce.centerPoint,lt),Bt=[(It=Ce.rayIntersectionCoordinate(Ut)).x,It.y,It.z];var It;const vn=Ce.screenPointToMercatorRay(Ce.centerPoint),tn=Ce.projection.name!=="globe";let cn,pn=0;do{const Cn=Math.floor(Ce.zoom),un=1<<Cn,kn=Math.min(un*yt.x,un*Rt.x),nr=Math.min(un*yt.y,un*Rt.y),dr=Math.max(un*yt.x,un*Rt.x),xr=Math.max(un*yt.y,un*Rt.y),yr=new l.Aabb([kn,nr,Z],[dr,xr,ue]),Qr=l.Frustum.fromInvProjectionMatrix(Ce.invProjMatrix,Ce.worldSize,Cn,tn);if(yr.intersects(Qr)!==2){cn&&(Ce._camera.position=l.scaleAndAdd([],Ce._camera.position,vn.dir,-cn),Ce._updateStateFromCamera());break}const ir=l.sub([],Ce._camera.position,Bt);cn=.5*l.length(ir),Ce._camera.position=l.scaleAndAdd([],Ce._camera.position,vn.dir,cn);try{Ce._updateStateFromCamera()}catch(gr){return void l.warnOnce("Map cannot fit within canvas with the given bounds, padding, and/or offset.")}}while(++pn<10);return{center:Ce.center,zoom:Ce.zoom,bearing:Ce.bearing,pitch:Ce.pitch}}fitBounds(f,k,Z){return this._fitInternal(this.cameraForBounds(f,k),k,Z)}_raycastElevationBox(f,k){const Z=this.transform.elevation;if(!Z)return;const ue=new l.pointGeometry(f.x,k.y),he=new l.pointGeometry(k.x,f.y),_e=Z.pointCoordinate(f);if(!_e)return;const Ce=Z.pointCoordinate(k);if(!Ce)return;const Xe=Z.pointCoordinate(ue);if(!Xe)return;const nt=Z.pointCoordinate(he);if(!nt)return;const lt=new l.MercatorCoordinate(_e[0],_e[1]).toLngLat(),yt=new l.MercatorCoordinate(Ce[0],Ce[1]).toLngLat(),Rt=new l.MercatorCoordinate(Xe[0],Xe[1]).toLngLat(),Ut=new l.MercatorCoordinate(nt[0],nt[1]).toLngLat(),Bt=Math.min(lt.lng,Math.min(yt.lng,Math.min(Rt.lng,Ut.lng))),It=Math.min(lt.lat,Math.min(yt.lat,Math.min(Rt.lat,Ut.lat))),vn=Math.max(lt.lng,Math.max(yt.lng,Math.max(Rt.lng,Ut.lng))),tn=Math.max(lt.lat,Math.max(yt.lat,Math.max(Rt.lat,Ut.lat))),cn=Math.min(_e[3],Math.min(Ce[3],Math.min(Xe[3],nt[3]))),pn=Math.max(_e[3],Math.max(Ce[3],Math.max(Xe[3],nt[3])));return{minLngLat:new l.LngLat(Bt,It),maxLngLat:new l.LngLat(vn,tn),minAltitude:cn,maxAltitude:pn}}fitScreenCoordinates(f,k,Z,ue,he){let _e,Ce,Xe,nt;const lt=l.pointGeometry.convert(f),yt=l.pointGeometry.convert(k),Rt=this._raycastElevationBox(lt,yt);if(Rt)_e=Rt.minLngLat,Ce=Rt.maxLngLat,Xe=Rt.minAltitude,nt=Rt.maxAltitude;else{if(this.transform.anyCornerOffEdge(lt,yt))return this;_e=this.transform.pointLocation(lt),Ce=this.transform.pointLocation(yt)}return this._fitInternal(this.transform.pitch===0?this._cameraForBoxAndBearing(this.transform.pointLocation(l.pointGeometry.convert(f)),this.transform.pointLocation(l.pointGeometry.convert(k)),Z,ue):this._cameraForBox(_e,Ce,Xe,nt,ue),ue,he)}_fitInternal(f,k,Z){return f?(delete(k=l.extend(f,k)).padding,k.linear?this.easeTo(k,Z):this.flyTo(k,Z)):this}jumpTo(f,k){this.stop();const Z=f.preloadOnly?this.transform.clone():this.transform;let ue=!1,he=!1,_e=!1;return"zoom"in f&&Z.zoom!==+f.zoom&&(ue=!0,Z.zoom=+f.zoom),f.center!==void 0&&(Z.center=l.LngLat.convert(f.center)),"bearing"in f&&Z.bearing!==+f.bearing&&(he=!0,Z.bearing=+f.bearing),"pitch"in f&&Z.pitch!==+f.pitch&&(_e=!0,Z.pitch=+f.pitch),f.padding==null||Z.isPaddingEqual(f.padding)||(Z.padding=f.padding),f.preloadOnly?(this._preloadTiles(Z),this):(this.fire(new l.Event("movestart",k)).fire(new l.Event("move",k)),ue&&this.fire(new l.Event("zoomstart",k)).fire(new l.Event("zoom",k)).fire(new l.Event("zoomend",k)),he&&this.fire(new l.Event("rotatestart",k)).fire(new l.Event("rotate",k)).fire(new l.Event("rotateend",k)),_e&&this.fire(new l.Event("pitchstart",k)).fire(new l.Event("pitch",k)).fire(new l.Event("pitchend",k)),this.fire(new l.Event("moveend",k)))}getFreeCameraOptions(){return this.transform.projection.supportsFreeCamera||l.warnOnce(Gd),this.transform.getFreeCameraOptions()}setFreeCameraOptions(f,k){const Z=this.transform;if(!Z.projection.supportsFreeCamera)return l.warnOnce(Gd),this;this.stop();const ue=Z.zoom,he=Z.pitch,_e=Z.bearing;Z.setFreeCameraOptions(f);const Ce=ue!==Z.zoom,Xe=he!==Z.pitch,nt=_e!==Z.bearing;return this.fire(new l.Event("movestart",k)).fire(new l.Event("move",k)),Ce&&this.fire(new l.Event("zoomstart",k)).fire(new l.Event("zoom",k)).fire(new l.Event("zoomend",k)),nt&&this.fire(new l.Event("rotatestart",k)).fire(new l.Event("rotate",k)).fire(new l.Event("rotateend",k)),Xe&&this.fire(new l.Event("pitchstart",k)).fire(new l.Event("pitch",k)).fire(new l.Event("pitchend",k)),this.fire(new l.Event("moveend",k)),this}easeTo(f,k){this._stop(!1,f.easeId),((f=l.extend({offset:[0,0],duration:500,easing:l.ease},f)).animate===!1||!f.essential&&l.exported.prefersReducedMotion)&&(f.duration=0);const Z=this.transform,ue=this.getZoom(),he=this.getBearing(),_e=this.getPitch(),Ce=this.getPadding(),Xe="zoom"in f?+f.zoom:ue,nt="bearing"in f?this._normalizeBearing(f.bearing,he):he,lt="pitch"in f?+f.pitch:_e,yt="padding"in f?f.padding:Z.padding,Rt=l.pointGeometry.convert(f.offset);let Ut,Bt,It;if(Z.projection.name==="globe"){const xr=l.MercatorCoordinate.fromLngLat(Z.center),yr=Rt.rotate(-Z.angle);xr.x+=yr.x/Z.worldSize,xr.y+=yr.y/Z.worldSize;const Qr=xr.toLngLat(),ir=l.LngLat.convert(f.center||Qr);this._normalizeCenter(ir),Ut=Z.centerPoint.add(yr),Bt=new l.pointGeometry(xr.x,xr.y).mult(Z.worldSize),It=new l.pointGeometry(l.mercatorXfromLng(ir.lng),l.mercatorYfromLat(ir.lat)).mult(Z.worldSize).sub(Bt)}else{Ut=Z.centerPoint.add(Rt);const xr=Z.pointLocation(Ut),yr=l.LngLat.convert(f.center||xr);this._normalizeCenter(yr),Bt=Z.project(xr),It=Z.project(yr).sub(Bt)}const vn=Z.zoomScale(Xe-ue);let tn,cn;f.around&&(tn=l.LngLat.convert(f.around),cn=Z.locationPoint(tn));const pn=this._zooming||Xe!==ue,Cn=this._rotating||he!==nt,un=this._pitching||lt!==_e,kn=!Z.isPaddingEqual(yt),nr=xr=>yr=>{if(pn&&(xr.zoom=l.number(ue,Xe,yr)),Cn&&(xr.bearing=l.number(he,nt,yr)),un&&(xr.pitch=l.number(_e,lt,yr)),kn&&(xr.interpolatePadding(Ce,yt,yr),Ut=xr.centerPoint.add(Rt)),tn)xr.setLocationAtPoint(tn,cn);else{const Qr=xr.zoomScale(xr.zoom-ue),ir=Xe>ue?Math.min(2,vn):Math.max(.5,vn),gr=Math.pow(ir,1-yr),Yr=xr.unproject(Bt.add(It.mult(yr*gr)).mult(Qr));xr.setLocationAtPoint(xr.renderWorldCopies?Yr.wrap():Yr,Ut)}return f.preloadOnly||this._fireMoveEvents(k),xr};if(f.preloadOnly){const xr=this._emulate(nr,f.duration,Z);return this._preloadTiles(xr),this}const dr={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=pn,this._rotating=Cn,this._pitching=un,this._padding=kn,this._easeId=f.easeId,this._prepareEase(k,f.noMoveStart,dr),this._ease(nr(Z),xr=>{Z.recenterOnTerrain(),this._afterEase(k,xr)},f),this}_prepareEase(f,k,Z={}){this._moving=!0,this.transform.cameraElevationReference="sea",k||Z.moving||this.fire(new l.Event("movestart",f)),this._zooming&&!Z.zooming&&this.fire(new l.Event("zoomstart",f)),this._rotating&&!Z.rotating&&this.fire(new l.Event("rotatestart",f)),this._pitching&&!Z.pitching&&this.fire(new l.Event("pitchstart",f))}_fireMoveEvents(f){this.fire(new l.Event("move",f)),this._zooming&&this.fire(new l.Event("zoom",f)),this._rotating&&this.fire(new l.Event("rotate",f)),this._pitching&&this.fire(new l.Event("pitch",f))}_afterEase(f,k){if(this._easeId&&k&&this._easeId===k)return;this._easeId=void 0,this.transform.cameraElevationReference="ground";const Z=this._zooming,ue=this._rotating,he=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,Z&&this.fire(new l.Event("zoomend",f)),ue&&this.fire(new l.Event("rotateend",f)),he&&this.fire(new l.Event("pitchend",f)),this.fire(new l.Event("moveend",f))}flyTo(f,k){if(!f.essential&&l.exported.prefersReducedMotion){const ui=l.pick(f,["center","zoom","bearing","pitch","around"]);return this.jumpTo(ui,k)}this.stop(),f=l.extend({offset:[0,0],speed:1.2,curve:1.42,easing:l.ease},f);const Z=this.transform,ue=this.getZoom(),he=this.getBearing(),_e=this.getPitch(),Ce=this.getPadding(),Xe="zoom"in f?l.clamp(+f.zoom,Z.minZoom,Z.maxZoom):ue,nt="bearing"in f?this._normalizeBearing(f.bearing,he):he,lt="pitch"in f?+f.pitch:_e,yt="padding"in f?f.padding:Z.padding,Rt=Z.zoomScale(Xe-ue),Ut=l.pointGeometry.convert(f.offset);let Bt=Z.centerPoint.add(Ut);const It=Z.pointLocation(Bt),vn=l.LngLat.convert(f.center||It);this._normalizeCenter(vn);const tn=Z.project(It),cn=Z.project(vn).sub(tn);let pn=f.curve;const Cn=Math.max(Z.width,Z.height),un=Cn/Rt,kn=cn.mag();if("minZoom"in f){const ui=l.clamp(Math.min(f.minZoom,ue,Xe),Z.minZoom,Z.maxZoom),Fi=Cn/Z.zoomScale(ui-ue);pn=Math.sqrt(Fi/kn*2)}const nr=pn*pn;function dr(ui){const Fi=(un*un-Cn*Cn+(ui?-1:1)*nr*nr*kn*kn)/(2*(ui?un:Cn)*nr*kn);return Math.log(Math.sqrt(Fi*Fi+1)-Fi)}function xr(ui){return(Math.exp(ui)-Math.exp(-ui))/2}function yr(ui){return(Math.exp(ui)+Math.exp(-ui))/2}const Qr=dr(0);let ir=function(ui){return yr(Qr)/yr(Qr+pn*ui)},gr=function(ui){return Cn*((yr(Qr)*(xr(Fi=Qr+pn*ui)/yr(Fi))-xr(Qr))/nr)/kn;var Fi},Yr=(dr(1)-Qr)/pn;if(Math.abs(kn)<1e-6||!isFinite(Yr)){if(Math.abs(Cn-un)<1e-6)return this.easeTo(f,k);const ui=un<Cn?-1:1;Yr=Math.abs(Math.log(un/Cn))/pn,gr=function(){return 0},ir=function(Fi){return Math.exp(ui*pn*Fi)}}f.duration="duration"in f?+f.duration:1e3*Yr/("screenSpeed"in f?+f.screenSpeed/pn:+f.speed),f.maxDuration&&f.duration>f.maxDuration&&(f.duration=0);const Oi=he!==nt,br=lt!==_e,Ii=!Z.isPaddingEqual(yt),ea=ui=>Fi=>{const pa=Fi*Yr,Ja=1/ir(pa);ui.zoom=Fi===1?Xe:ue+ui.scaleZoom(Ja),Oi&&(ui.bearing=l.number(he,nt,Fi)),br&&(ui.pitch=l.number(_e,lt,Fi)),Ii&&(ui.interpolatePadding(Ce,yt,Fi),Bt=ui.centerPoint.add(Ut));const ji=Fi===1?vn:ui.unproject(tn.add(cn.mult(gr(pa))).mult(Ja));return ui.setLocationAtPoint(ui.renderWorldCopies?ji.wrap():ji,Bt),ui._updateCameraOnTerrain(),f.preloadOnly||this._fireMoveEvents(k),ui};if(f.preloadOnly){const ui=this._emulate(ea,f.duration,Z);return this._preloadTiles(ui),this}return this._zooming=!0,this._rotating=Oi,this._pitching=br,this._padding=Ii,this._prepareEase(k,!1),this._ease(ea(Z),()=>this._afterEase(k),f),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(f,k){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),this._easeFrameId=void 0,this._onEaseFrame=void 0),this._onEaseEnd){const Z=this._onEaseEnd;this._onEaseEnd=void 0,Z.call(this,k)}if(!f){const Z=this.handlers;Z&&Z.stop(!1)}return this}_ease(f,k,Z){Z.animate===!1||Z.duration===0?(f(1),k()):(this._easeStart=l.exported.now(),this._easeOptions=Z,this._onEaseFrame=f,this._onEaseEnd=k,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_renderFrameCallback(){const f=Math.min((l.exported.now()-this._easeStart)/this._easeOptions.duration,1),k=this._onEaseFrame;k&&k(this._easeOptions.easing(f)),f<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()}_normalizeBearing(f,k){f=l.wrap(f,-180,180);const Z=Math.abs(f-k);return Math.abs(f-360-k)<Z&&(f-=360),Math.abs(f+360-k)<Z&&(f+=360),f}_normalizeCenter(f){const k=this.transform;if(!k.renderWorldCopies||k.maxBounds)return;const Z=f.lng-k.center.lng;f.lng+=Z>180?-360:Z<-180?360:0}_emulate(f,k,Z){const ue=Math.ceil(15*k/1e3),he=[],_e=f(Z.clone());for(let Ce=0;Ce<=ue;Ce++){const Xe=_e(Ce/ue);he.push(Xe.clone())}return he}}class Vu{constructor(f={}){this.options=f,l.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)}getDefaultPosition(){return"bottom-right"}onAdd(f){const k=this.options&&this.options.compact;return this._map=f,this._container=b("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=b("button","mapboxgl-ctrl-attrib-button",this._container),b("span","mapboxgl-ctrl-icon",this._compactButton).setAttribute("aria-hidden","true"),this._compactButton.type="button",this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=b("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),k&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),k===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container}onRemove(){this._container.remove(),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0}_setElementTitle(f,k){const Z=this._map._getUIString(`AttributionControl.${k}`);f.setAttribute("aria-label",Z),f.removeAttribute("title"),f.firstElementChild&&f.firstElementChild.setAttribute("title",Z)}_toggleAttribution(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-expanded","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-expanded","true"))}_updateEditLink(){let f=this._editLink;f||(f=this._editLink=this._container.querySelector(".mapbox-improve-map"));const k=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||l.config.ACCESS_TOKEN}];if(f){const Z=k.reduce((ue,he,_e)=>(he.value&&(ue+=`${he.key}=${he.value}${_e<k.length-1?"&":""}`),ue),"?");f.href=`${l.config.FEEDBACK_URL}/${Z}${this._map._hash?this._map._hash.getHashString(!0):""}`,f.rel="noopener nofollow",this._setElementTitle(f,"MapFeedback")}}_updateData(f){!f||f.sourceDataType!=="metadata"&&f.sourceDataType!=="visibility"&&f.dataType!=="style"||(this._updateAttributions(),this._updateEditLink())}_updateAttributions(){if(!this._map.style)return;let f=[];if(this._map.style.stylesheet){const ue=this._map.style.stylesheet;this.styleOwner=ue.owner,this.styleId=ue.id}const k=this._map.style._sourceCaches;for(const ue in k){const he=k[ue];if(he.used){const _e=he.getSource();_e.attribution&&f.indexOf(_e.attribution)<0&&f.push(_e.attribution)}}f.sort((ue,he)=>ue.length-he.length),f=f.filter((ue,he)=>{for(let _e=he+1;_e<f.length;_e++)if(f[_e].indexOf(ue)>=0)return!1;return!0}),this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?f=[...this.options.customAttribution,...f]:f.unshift(this.options.customAttribution));const Z=f.join(" | ");Z!==this._attribHTML&&(this._attribHTML=Z,f.length?(this._innerContainer.innerHTML=Z,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}_updateCompact(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")}}class Ih{constructor(){l.bindAll(["_updateLogo","_updateCompact"],this)}onAdd(f){this._map=f,this._container=b("div","mapboxgl-ctrl");const k=b("a","mapboxgl-ctrl-logo");return k.target="_blank",k.rel="noopener nofollow",k.href="https://www.mapbox.com/",k.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),k.setAttribute("rel","noopener nofollow"),this._container.appendChild(k),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){this._container.remove(),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)}getDefaultPosition(){return"bottom-left"}_updateLogo(f){f&&f.sourceDataType!=="metadata"||(this._container.style.display=this._logoRequired()?"block":"none")}_logoRequired(){if(!this._map.style)return!0;const f=this._map.style._sourceCaches;if(Object.entries(f).length===0)return!0;for(const k in f){const Z=f[k].getSource();if(Z.hasOwnProperty("mapbox_logo")&&!Z.mapbox_logo)return!1}return!0}_updateCompact(){const f=this._container.children;if(f.length){const k=f[0];this._map.getCanvasContainer().offsetWidth<250?k.classList.add("mapboxgl-compact"):k.classList.remove("mapboxgl-compact")}}}class Ph{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(f){const k=++this._id;return this._queue.push({callback:f,id:k,cancelled:!1}),k}remove(f){const k=this._currentlyRunning,Z=k?this._queue.concat(k):this._queue;for(const ue of Z)if(ue.id===f)return void(ue.cancelled=!0)}run(f=0){const k=this._currentlyRunning=this._queue;this._queue=[];for(const Z of k)if(!Z.cancelled&&(Z.callback(f),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}function zu(U,f,k){if(U=new l.LngLat(U.lng,U.lat),f){const Z=new l.LngLat(U.lng-360,U.lat),ue=new l.LngLat(U.lng+360,U.lat),he=360*Math.ceil(Math.abs(U.lng-k.center.lng)/360),_e=k.locationPoint(U).distSqr(f),Ce=f.x<0||f.y<0||f.x>k.width||f.y>k.height;k.locationPoint(Z).distSqr(f)<_e&&(Ce||Math.abs(Z.lng-k.center.lng)<he)?U=Z:k.locationPoint(ue).distSqr(f)<_e&&(Ce||Math.abs(ue.lng-k.center.lng)<he)&&(U=ue)}for(;Math.abs(U.lng-k.center.lng)>180;){const Z=k.locationPoint(U);if(Z.x>=0&&Z.y>=0&&Z.x<=k.width&&Z.y<=k.height)break;U.lng>k.center.lng?U.lng-=360:U.lng+=360}return U}const Ql={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};class Il extends l.Evented{constructor(f,k){if(super(),(f instanceof l.window.HTMLElement||k)&&(f=l.extend({element:f},k)),l.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress","_clearFadeTimer"],this),this._anchor=f&&f.anchor||"center",this._color=f&&f.color||"#3FB1CE",this._scale=f&&f.scale||1,this._draggable=f&&f.draggable||!1,this._clickTolerance=f&&f.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=f&&f.rotation||0,this._rotationAlignment=f&&f.rotationAlignment||"auto",this._pitchAlignment=f&&f.pitchAlignment&&f.pitchAlignment!=="auto"?f.pitchAlignment:this._rotationAlignment,this._updateMoving=()=>this._update(!0),f&&f.element)this._element=f.element,this._offset=l.pointGeometry.convert(f&&f.offset||[0,0]);else{this._defaultMarker=!0,this._element=b("div");const ue=41,he=27,_e=E("svg",{display:"block",height:ue*this._scale+"px",width:he*this._scale+"px",viewBox:`0 0 ${he} ${ue}`},this._element),Ce=E("radialGradient",{id:"shadowGradient"},E("defs",{},_e));E("stop",{offset:"10%","stop-opacity":.4},Ce),E("stop",{offset:"100%","stop-opacity":.05},Ce),E("ellipse",{cx:13.5,cy:34.8,rx:10.5,ry:5.25,fill:"url(#shadowGradient)"},_e),E("path",{fill:this._color,d:"M27,13.5C27,19.07 20.25,27 14.75,34.5C14.02,35.5 12.98,35.5 12.25,34.5C6.75,27 0,19.22 0,13.5C0,6.04 6.04,0 13.5,0C20.96,0 27,6.04 27,13.5Z"},_e),E("path",{opacity:.25,d:"M13.5,0C6.04,0 0,6.04 0,13.5C0,19.22 6.75,27 12.25,34.5C13,35.52 14.02,35.5 14.75,34.5C20.25,27 27,19.07 27,13.5C27,6.04 20.96,0 13.5,0ZM13.5,1C20.42,1 26,6.58 26,13.5C26,15.9 24.5,19.18 22.22,22.74C19.95,26.3 16.71,30.14 13.94,33.91C13.74,34.18 13.61,34.32 13.5,34.44C13.39,34.32 13.26,34.18 13.06,33.91C10.28,30.13 7.41,26.31 5.02,22.77C2.62,19.23 1,15.95 1,13.5C1,6.58 6.58,1 13.5,1Z"},_e),E("circle",{fill:"white",cx:13.5,cy:13.5,r:5.5},_e),this._offset=l.pointGeometry.convert(f&&f.offset||[0,-14])}this._element.hasAttribute("aria-label")||this._element.setAttribute("aria-label","Map marker"),this._element.classList.add("mapboxgl-marker"),this._element.addEventListener("dragstart",ue=>{ue.preventDefault()}),this._element.addEventListener("mousedown",ue=>{ue.preventDefault()});const Z=this._element.classList;for(const ue in Ql)Z.remove(`mapboxgl-marker-anchor-${ue}`);Z.add(`mapboxgl-marker-anchor-${this._anchor}`),this._popup=null}addTo(f){return f===this._map||(this.remove(),this._map=f,f.getCanvasContainer().appendChild(this._element),f.on("move",this._updateMoving),f.on("moveend",this._update),f.on("remove",this._clearFadeTimer),f._addMarker(this),this.setDraggable(this._draggable),this._update(),f.on("click",this._onMapClick)),this}remove(){const f=this._map;return f&&(f.off("click",this._onMapClick),f.off("move",this._updateMoving),f.off("moveend",this._update),f.off("mousedown",this._addDragHandler),f.off("touchstart",this._addDragHandler),f.off("mouseup",this._onUp),f.off("touchend",this._onUp),f.off("mousemove",this._onMove),f.off("touchmove",this._onMove),f.off("remove",this._clearFadeTimer),f._removeMarker(this),this._map=void 0),this._clearFadeTimer(),this._element.remove(),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(f){return this._lngLat=l.LngLat.convert(f),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(!0),this}getElement(){return this._element}setPopup(f){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeAttribute("role"),this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),f){if(!("offset"in f.options)){const ue=Math.sqrt(Math.pow(13.5,2)/2);f.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[ue,-1*(38.1-13.5+ue)],"bottom-right":[-ue,-1*(38.1-13.5+ue)],left:[13.5,-1*(38.1-13.5)],right:[-13.5,-1*(38.1-13.5)]}:this._offset}this._popup=f,this._lngLat&&this._popup.setLngLat(this._lngLat),this._element.setAttribute("role","button"),this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress),this._element.setAttribute("aria-expanded","false")}return this}_onKeyPress(f){const k=f.code,Z=f.charCode||f.keyCode;k!=="Space"&&k!=="Enter"&&Z!==32&&Z!==13||this.togglePopup()}_onMapClick(f){const k=f.originalEvent.target,Z=this._element;this._popup&&(k===Z||Z.contains(k))&&this.togglePopup()}getPopup(){return this._popup}togglePopup(){const f=this._popup;return f?(f.isOpen()?(f.remove(),this._element.setAttribute("aria-expanded","false")):this._map&&(f.addTo(this._map),this._element.setAttribute("aria-expanded","true")),this):this}_evaluateOpacity(){const f=this._map;if(!f)return;const k=this._pos;if(!k||k.x<0||k.x>f.transform.width||k.y<0||k.y>f.transform.height)return void this._clearFadeTimer();const Z=f.unproject(k);let ue=!1;if(f.transform._terrainEnabled()&&f.getTerrain()){const _e=f.getFreeCameraOptions();if(_e.position){const Ce=_e.position.toLngLat();ue=Ce.distanceTo(Z)<.9*Ce.distanceTo(this._lngLat)}}const he=(1-f._queryFogOpacity(Z))*(ue?.2:1);this._element.style.opacity=`${he}`,this._popup&&this._popup._setOpacity(`${he}`),this._fadeTimer=null}_clearFadeTimer(){this._fadeTimer&&(clearTimeout(this._fadeTimer),this._fadeTimer=null)}_updateDOM(){const f=this._pos;if(!f)return;const k=this._offset.mult(this._scale),Z=this._calculatePitch(),ue=this._calculateRotation();this._element.style.transform=`
  4461. translate(${f.x}px, ${f.y}px) ${Ql[this._anchor]}
  4462. rotateX(${Z}deg) rotateZ(${ue}deg)
  4463. translate(${k.x}px, ${k.y}px)
  4464. `}_calculatePitch(){return this._pitchAlignment==="viewport"||this._pitchAlignment==="auto"?0:this._map&&this._pitchAlignment==="map"?this._map.getPitch():0}_calculateRotation(){return this._rotationAlignment==="viewport"||this._rotationAlignment==="auto"?this._rotation:this._map&&this._rotationAlignment==="map"?this._rotation-this._map.getBearing():0}_update(f){l.window.cancelAnimationFrame(this._updateFrameId);const k=this._map;k&&(k.transform.renderWorldCopies&&(this._lngLat=zu(this._lngLat,this._pos,k.transform)),this._pos=k.project(this._lngLat),f===!0?this._updateFrameId=l.window.requestAnimationFrame(()=>{this._element&&this._pos&&this._anchor&&(this._pos=this._pos.round(),this._updateDOM())}):this._pos=this._pos.round(),k._requestDomTask(()=>{this._map&&(this._element&&this._pos&&this._anchor&&this._updateDOM(),!k.getTerrain()&&!k.getFog()||this._fadeTimer||(this._fadeTimer=setTimeout(this._evaluateOpacity.bind(this),60)))}))}getOffset(){return this._offset}setOffset(f){return this._offset=l.pointGeometry.convert(f),this._update(),this}_onMove(f){const k=this._map;if(k){if(!this._isDragging){const Z=this._clickTolerance||k._clickTolerance;this._isDragging=f.point.dist(this._pointerdownPos)>=Z}this._isDragging&&(this._pos=f.point.sub(this._positionDelta),this._lngLat=k.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new l.Event("dragstart"))),this.fire(new l.Event("drag")))}}_onUp(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1;const f=this._map;f&&(f.off("mousemove",this._onMove),f.off("touchmove",this._onMove)),this._state==="active"&&this.fire(new l.Event("dragend")),this._state="inactive"}_addDragHandler(f){const k=this._map;k&&this._element.contains(f.originalEvent.target)&&(f.preventDefault(),this._positionDelta=f.point.sub(this._pos),this._pointerdownPos=f.point,this._state="pending",k.on("mousemove",this._onMove),k.on("touchmove",this._onMove),k.once("mouseup",this._onUp),k.once("touchend",this._onUp))}setDraggable(f){this._draggable=!!f;const k=this._map;return k&&(f?(k.on("mousedown",this._addDragHandler),k.on("touchstart",this._addDragHandler)):(k.off("mousedown",this._addDragHandler),k.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(f){return this._rotation=f||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(f){return this._rotationAlignment=f||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(f){return this._pitchAlignment=f&&f!=="auto"?f:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}}class np{constructor(f){this.jumpTo(f)}getValue(f){if(f<=this._startTime)return this._start;if(f>=this._endTime)return this._end;const k=l.easeCubicInOut((f-this._startTime)/(this._endTime-this._startTime));return this._start*(1-k)+this._end*k}isEasing(f){return f>=this._startTime&&f<=this._endTime}jumpTo(f){this._startTime=-1/0,this._endTime=-1/0,this._start=f,this._end=f}easeTo(f,k,Z){this._start=this.getValue(k),this._end=f,this._startTime=k,this._endTime=k+Z}}const rp={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox logo","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScaleControl.Feet":"ft","ScaleControl.Meters":"m","ScaleControl.Kilometers":"km","ScaleControl.Miles":"mi","ScaleControl.NauticalMiles":"nm","ScrollZoomBlocker.CtrlMessage":"Use ctrl + scroll to zoom the map","ScrollZoomBlocker.CmdMessage":"Use \u2318 + scroll to zoom the map","TouchPanBlocker.Message":"Use two fingers to move the map"},oh={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:85,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,cooperativeGestures:!1,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,optimizeForTerrain:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,minTileCacheSize:null,maxTileCacheSize:null,localIdeographFontFamily:"sans-serif",localFontFamily:null,transformRequest:null,accessToken:null,fadeDuration:300,crossSourceCollisions:!0};function Gu(U){U.parentNode&&U.parentNode.removeChild(U)}const ip={showCompass:!0,showZoom:!0,visualizePitch:!1};class pc{constructor(f,k,Z=!1){this._clickTolerance=10,this.element=k,this.mouseRotate=new Hc({clickTolerance:f.dragRotate._mouseRotate._clickTolerance}),this.map=f,Z&&(this.mousePitch=new yd({clickTolerance:f.dragRotate._mousePitch._clickTolerance})),l.bindAll(["mousedown","mousemove","mouseup","touchstart","touchmove","touchend","reset"],this),k.addEventListener("mousedown",this.mousedown),k.addEventListener("touchstart",this.touchstart,{passive:!1}),k.addEventListener("touchmove",this.touchmove),k.addEventListener("touchend",this.touchend),k.addEventListener("touchcancel",this.reset)}down(f,k){this.mouseRotate.mousedown(f,k),this.mousePitch&&this.mousePitch.mousedown(f,k),A()}move(f,k){const Z=this.map,ue=this.mouseRotate.mousemoveWindow(f,k),he=ue&&ue.bearingDelta;if(he&&Z.setBearing(Z.getBearing()+he),this.mousePitch){const _e=this.mousePitch.mousemoveWindow(f,k),Ce=_e&&_e.pitchDelta;Ce&&Z.setPitch(Z.getPitch()+Ce)}}off(){const f=this.element;f.removeEventListener("mousedown",this.mousedown),f.removeEventListener("touchstart",this.touchstart,{passive:!1}),f.removeEventListener("touchmove",this.touchmove),f.removeEventListener("touchend",this.touchend),f.removeEventListener("touchcancel",this.reset),this.offTemp()}offTemp(){z(),l.window.removeEventListener("mousemove",this.mousemove),l.window.removeEventListener("mouseup",this.mouseup)}mousedown(f){this.down(l.extend({},f,{ctrlKey:!0,preventDefault:()=>f.preventDefault()}),ne(this.element,f)),l.window.addEventListener("mousemove",this.mousemove),l.window.addEventListener("mouseup",this.mouseup)}mousemove(f){this.move(f,ne(this.element,f))}mouseup(f){this.mouseRotate.mouseupWindow(f),this.mousePitch&&this.mousePitch.mouseupWindow(f),this.offTemp()}touchstart(f){f.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=W(this.element,f.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:()=>f.preventDefault()},this._startPos))}touchmove(f){f.targetTouches.length!==1?this.reset():(this._lastPos=W(this.element,f.targetTouches)[0],this.move({preventDefault:()=>f.preventDefault()},this._lastPos))}touchend(f){f.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)<this._clickTolerance&&this.element.click(),this.reset()}reset(){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()}}const uu={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0,showUserHeading:!1};let fu,vd=0,Kc=!1;const Rh={maxWidth:100,unit:"metric"};function sh(U,f,k){const Z=k&&k.maxWidth||100,ue=U._containerHeight/2,he=U._containerWidth/2-Z/2,_e=U.unproject([he,ue]),Ce=U.unproject([he+Z,ue]),Xe=_e.distanceTo(Ce);if(k&&k.unit==="imperial"){const nt=3.2808*Xe;nt>5280?_d(f,Z,nt/5280,U._getUIString("ScaleControl.Miles"),U):_d(f,Z,nt,U._getUIString("ScaleControl.Feet"),U)}else k&&k.unit==="nautical"?_d(f,Z,Xe/1852,U._getUIString("ScaleControl.NauticalMiles"),U):Xe>=1e3?_d(f,Z,Xe/1e3,U._getUIString("ScaleControl.Kilometers"),U):_d(f,Z,Xe,U._getUIString("ScaleControl.Meters"),U)}function _d(U,f,k,Z,ue){const he=function(Ce){const Xe=Math.pow(10,`${Math.floor(Ce)}`.length-1);let nt=Ce/Xe;return nt=nt>=10?10:nt>=5?5:nt>=3?3:nt>=2?2:nt>=1?1:function(lt){const yt=Math.pow(10,Math.ceil(-Math.log(lt)/Math.LN10));return Math.round(lt*yt)/yt}(nt),Xe*nt}(k),_e=he/k;ue._requestDomTask(()=>{U.style.width=f*_e+"px",U.innerHTML=`${he}&nbsp;${Z}`})}const Gs={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},Ro=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function Jc(U=new l.pointGeometry(0,0),f="bottom"){if(typeof U=="number"){const k=Math.round(Math.sqrt(.5*Math.pow(U,2)));switch(f){case"top":return new l.pointGeometry(0,U);case"top-left":return new l.pointGeometry(k,k);case"top-right":return new l.pointGeometry(-k,k);case"bottom":return new l.pointGeometry(0,-U);case"bottom-left":return new l.pointGeometry(k,-k);case"bottom-right":return new l.pointGeometry(-k,-k);case"left":return new l.pointGeometry(U,0);case"right":return new l.pointGeometry(-U,0)}return new l.pointGeometry(0,0)}return U instanceof l.pointGeometry||Array.isArray(U)?l.pointGeometry.convert(U):l.pointGeometry.convert(U[f]||[0,0])}const rc={version:l.version,supported:v,setRTLTextPlugin:l.setRTLTextPlugin,getRTLTextPluginStatus:l.getRTLTextPluginStatus,Map:class extends Jl{constructor(U){if((U=l.extend({},oh,U)).minZoom!=null&&U.maxZoom!=null&&U.minZoom>U.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(U.minPitch!=null&&U.maxPitch!=null&&U.minPitch>U.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(U.minPitch!=null&&U.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(U.maxPitch!=null&&U.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(U.antialias&&l.isSafariWithAntialiasingBug(l.window)&&(U.antialias=!1,l.warnOnce("Antialiasing is disabled for this WebGL context to avoid browser bug: https://github.com/mapbox/mapbox-gl-js/issues/11609")),super(new Zl(U.minZoom,U.maxZoom,U.minPitch,U.maxPitch,U.renderWorldCopies),U),this._interactive=U.interactive,this._minTileCacheSize=U.minTileCacheSize,this._maxTileCacheSize=U.maxTileCacheSize,this._failIfMajorPerformanceCaveat=U.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=U.preserveDrawingBuffer,this._antialias=U.antialias,this._trackResize=U.trackResize,this._bearingSnap=U.bearingSnap,this._refreshExpiredTiles=U.refreshExpiredTiles,this._fadeDuration=U.fadeDuration,this._isInitialLoad=!0,this._crossSourceCollisions=U.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=U.collectResourceTiming,this._optimizeForTerrain=U.optimizeForTerrain,this._renderTaskQueue=new Ph,this._domRenderTaskQueue=new Ph,this._controls=[],this._markers=[],this._mapId=l.uniqueId(),this._locale=l.extend({},rp,U.locale),this._clickTolerance=U.clickTolerance,this._cooperativeGestures=U.cooperativeGestures,this._containerWidth=0,this._containerHeight=0,this._averageElevationLastSampledAt=-1/0,this._averageElevationExaggeration=0,this._averageElevation=new np(0),this._explicitProjection=null,this._requestManager=new l.RequestManager(U.transformRequest,U.accessToken,U.testMode),this._silenceAuthErrors=!!U.testMode,typeof U.container=="string"){if(this._container=l.window.document.getElementById(U.container),!this._container)throw new Error(`Container '${U.container}' not found.`)}else{if(!(U.container instanceof l.window.HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=U.container}if(this._container.childNodes.length>0&&l.warnOnce("The map container element should be empty, otherwise the map's interactivity will be negatively impacted. If you want to display a message when WebGL is not supported, use the Mapbox GL Supported plugin instead."),U.maxBounds&&this.setMaxBounds(U.maxBounds),l.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",()=>this._update(!1)),this.on("moveend",()=>this._update(!1)),this.on("zoom",()=>this._update(!0)),l.window!==void 0&&(l.window.addEventListener("online",this._onWindowOnline,!1),l.window.addEventListener("resize",this._onWindowResize,!1),l.window.addEventListener("orientationchange",this._onWindowResize,!1),l.window.addEventListener("webkitfullscreenchange",this._onWindowResize,!1)),this.handlers=new kh(this,U),this._localFontFamily=U.localFontFamily,this._localIdeographFontFamily=U.localIdeographFontFamily,U.style&&this.setStyle(U.style,{localFontFamily:this._localFontFamily,localIdeographFontFamily:this._localIdeographFontFamily}),U.projection&&this.setProjection(U.projection),this._hash=U.hash&&new rh(typeof U.hash=="string"&&U.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:U.center,zoom:U.zoom,bearing:U.bearing,pitch:U.pitch}),U.bounds&&(this.resize(),this.fitBounds(U.bounds,l.extend({},U.fitBoundsOptions,{duration:0})))),this.resize(),U.attributionControl&&this.addControl(new Vu({customAttribution:U.customAttribution})),this._logoControl=new Ih,this.addControl(this._logoControl,U.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)}),this.on("data",f=>{this._update(f.dataType==="style"),this.fire(new l.Event(`${f.dataType}data`,f))}),this.on("dataloading",f=>{this.fire(new l.Event(`${f.dataType}dataloading`,f))})}_getMapId(){return this._mapId}addControl(U,f){if(f===void 0&&(f=U.getDefaultPosition?U.getDefaultPosition():"top-right"),!U||!U.onAdd)return this.fire(new l.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));const k=U.onAdd(this);this._controls.push(U);const Z=this._controlPositions[f];return f.indexOf("bottom")!==-1?Z.insertBefore(k,Z.firstChild):Z.appendChild(k),this}removeControl(U){if(!U||!U.onRemove)return this.fire(new l.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));const f=this._controls.indexOf(U);return f>-1&&this._controls.splice(f,1),U.onRemove(this),this}hasControl(U){return this._controls.indexOf(U)>-1}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}resize(U){if(this._updateContainerDimensions(),this._containerWidth===this.transform.width&&this._containerHeight===this.transform.height)return this;this._resizeCanvas(this._containerWidth,this._containerHeight),this.transform.resize(this._containerWidth,this._containerHeight),this.painter.resize(Math.ceil(this._containerWidth),Math.ceil(this._containerHeight));const f=!this._moving;return f&&this.fire(new l.Event("movestart",U)).fire(new l.Event("move",U)),this.fire(new l.Event("resize",U)),f&&this.fire(new l.Event("moveend",U)),this}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()||null}setMaxBounds(U){return this.transform.setMaxBounds(l.LngLatBounds.convert(U)),this._update()}setMinZoom(U){if((U=U==null?-2:U)>=-2&&U<=this.transform.maxZoom)return this.transform.minZoom=U,this._update(),this.getZoom()<U?this.setZoom(U):this.fire(new l.Event("zoomstart")).fire(new l.Event("zoom")).fire(new l.Event("zoomend")),this;throw new Error("minZoom must be between -2 and the current maxZoom, inclusive")}getMinZoom(){return this.transform.minZoom}setMaxZoom(U){if((U=U==null?22:U)>=this.transform.minZoom)return this.transform.maxZoom=U,this._update(),this.getZoom()>U?this.setZoom(U):this.fire(new l.Event("zoomstart")).fire(new l.Event("zoom")).fire(new l.Event("zoomend")),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(U){if((U=U==null?0:U)<0)throw new Error("minPitch must be greater than or equal to 0");if(U>=0&&U<=this.transform.maxPitch)return this.transform.minPitch=U,this._update(),this.getPitch()<U?this.setPitch(U):this.fire(new l.Event("pitchstart")).fire(new l.Event("pitch")).fire(new l.Event("pitchend")),this;throw new Error("minPitch must be between 0 and the current maxPitch, inclusive")}getMinPitch(){return this.transform.minPitch}setMaxPitch(U){if((U=U==null?85:U)>85)throw new Error("maxPitch must be less than or equal to 85");if(U>=this.transform.minPitch)return this.transform.maxPitch=U,this._update(),this.getPitch()>U?this.setPitch(U):this.fire(new l.Event("pitchstart")).fire(new l.Event("pitch")).fire(new l.Event("pitchend")),this;throw new Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(U){return this.transform.renderWorldCopies=U,this._update()}getProjection(){return this._explicitProjection?this._explicitProjection:this.style&&this.style.stylesheet&&this.style.stylesheet.projection?this.style.stylesheet.projection:{name:"mercator",center:[0,0]}}setProjection(U){return this._lazyInitEmptyStyle(),U?typeof U=="string"&&(U={name:U}):U=null,this._updateProjection(U)}_updateProjection(U){U===null&&(this._explicitProjection=null);const f=U||this.getProjection(),k=this.transform.setProjection(f);if(U&&(this._explicitProjection=this.transform.getProjection()),k){this.painter.clearBackgroundTiles();for(const Z in this.style._sourceCaches)this.style._sourceCaches[Z].clearTiles();this.style.applyProjectionUpdate(),this._update(!0)}return this}project(U){return this.transform.locationPoint3D(l.LngLat.convert(U))}unproject(U){return this.transform.pointLocation3D(l.pointGeometry.convert(U))}isMoving(){return this._moving||this.handlers&&this.handlers.isMoving()||!1}isZooming(){return this._zooming||this.handlers&&this.handlers.isZooming()||!1}isRotating(){return this._rotating||this.handlers&&this.handlers.isRotating()||!1}_createDelegatedListener(U,f,k){if(U==="mouseenter"||U==="mouseover"){let Z=!1;const ue=_e=>{const Ce=f.filter(nt=>this.getLayer(nt)),Xe=Ce.length?this.queryRenderedFeatures(_e.point,{layers:Ce}):[];Xe.length?Z||(Z=!0,k.call(this,new kl(U,this,_e.originalEvent,{features:Xe}))):Z=!1},he=()=>{Z=!1};return{layers:new Set(f),listener:k,delegates:{mousemove:ue,mouseout:he}}}if(U==="mouseleave"||U==="mouseout"){let Z=!1;const ue=_e=>{const Ce=f.filter(Xe=>this.getLayer(Xe));(Ce.length?this.queryRenderedFeatures(_e.point,{layers:Ce}):[]).length?Z=!0:Z&&(Z=!1,k.call(this,new kl(U,this,_e.originalEvent)))},he=_e=>{Z&&(Z=!1,k.call(this,new kl(U,this,_e.originalEvent)))};return{layers:new Set(f),listener:k,delegates:{mousemove:ue,mouseout:he}}}{const Z=ue=>{const he=f.filter(Ce=>this.getLayer(Ce)),_e=he.length?this.queryRenderedFeatures(ue.point,{layers:he}):[];_e.length&&(ue.features=_e,k.call(this,ue),delete ue.features)};return{layers:new Set(f),listener:k,delegates:{[U]:Z}}}}on(U,f,k){if(k===void 0)return super.on(U,f);Array.isArray(f)||(f=[f]);const Z=this._createDelegatedListener(U,f,k);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[U]=this._delegatedListeners[U]||[],this._delegatedListeners[U].push(Z);for(const ue in Z.delegates)this.on(ue,Z.delegates[ue]);return this}once(U,f,k){if(k===void 0)return super.once(U,f);Array.isArray(f)||(f=[f]);const Z=this._createDelegatedListener(U,f,k);for(const ue in Z.delegates)this.once(ue,Z.delegates[ue]);return this}off(U,f,k){if(k===void 0)return super.off(U,f);f=new Set(Array.isArray(f)?f:[f]);const Z=(he,_e)=>{if(he.size!==_e.size)return!1;for(const Ce of he)if(!_e.has(Ce))return!1;return!0},ue=this._delegatedListeners?this._delegatedListeners[U]:void 0;return ue&&(he=>{for(let _e=0;_e<he.length;_e++){const Ce=he[_e];if(Ce.listener===k&&Z(Ce.layers,f)){for(const Xe in Ce.delegates)this.off(Xe,Ce.delegates[Xe]);return he.splice(_e,1),this}}})(ue),this}queryRenderedFeatures(U,f){return this.style?(f!==void 0||U===void 0||U instanceof l.pointGeometry||Array.isArray(U)||(f=U,U=void 0),this.style.queryRenderedFeatures(U=U||[[0,0],[this.transform.width,this.transform.height]],f=f||{},this.transform)):[]}querySourceFeatures(U,f){return this.style.querySourceFeatures(U,f)}queryTerrainElevation(U,f){const k=this.transform.elevation;return k?(f=l.extend({},{exaggerated:!0},f),k.getAtPoint(l.MercatorCoordinate.fromLngLat(U),null,f.exaggerated)):null}setStyle(U,f){return(f=l.extend({},{localIdeographFontFamily:this._localIdeographFontFamily,localFontFamily:this._localFontFamily},f)).diff!==!1&&f.localIdeographFontFamily===this._localIdeographFontFamily&&f.localFontFamily===this._localFontFamily&&this.style&&U?(this._diffStyle(U,f),this):(this._localIdeographFontFamily=f.localIdeographFontFamily,this._localFontFamily=f.localFontFamily,this._updateStyle(U,f))}_getUIString(U){const f=this._locale[U];if(f==null)throw new Error(`Missing UI string '${U}'`);return f}_updateStyle(U,f){return this.style&&(this.style.setEventedParent(null),this.style._remove(),this.style=void 0),U&&(this.style=new Ea(this,f||{}),this.style.setEventedParent(this,{style:this.style}),typeof U=="string"?this.style.loadURL(U):this.style.loadJSON(U)),this._updateTerrain(),this}_lazyInitEmptyStyle(){this.style||(this.style=new Ea(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(U,f){if(typeof U=="string"){const k=this._requestManager.normalizeStyleURL(U),Z=this._requestManager.transformRequest(k,l.ResourceType.Style);l.getJSON(Z,(ue,he)=>{ue?this.fire(new l.ErrorEvent(ue)):he&&this._updateDiff(he,f)})}else typeof U=="object"&&this._updateDiff(U,f)}_updateDiff(U,f){try{this.style.setState(U)&&this._update(!0)}catch(k){l.warnOnce(`Unable to perform style diff: ${k.message||k.error||k}. Rebuilding the style from scratch.`),this._updateStyle(U,f)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():(l.warnOnce("There is no style added to the map."),!1)}addSource(U,f){return this._lazyInitEmptyStyle(),this.style.addSource(U,f),this._update(!0)}isSourceLoaded(U){return!!this.style&&this.style._isSourceCacheLoaded(U)}areTilesLoaded(){const U=this.style&&this.style._sourceCaches;for(const f in U){const k=U[f]._tiles;for(const Z in k){const ue=k[Z];if(ue.state!=="loaded"&&ue.state!=="errored")return!1}}return!0}addSourceType(U,f,k){this._lazyInitEmptyStyle(),this.style.addSourceType(U,f,k)}removeSource(U){return this.style.removeSource(U),this._updateTerrain(),this._update(!0)}getSource(U){return this.style.getSource(U)}addImage(U,f,{pixelRatio:k=1,sdf:Z=!1,stretchX:ue,stretchY:he,content:_e}={}){if(this._lazyInitEmptyStyle(),f instanceof l.window.HTMLImageElement||l.window.ImageBitmap&&f instanceof l.window.ImageBitmap){const{width:Ce,height:Xe,data:nt}=l.exported.getImageData(f);this.style.addImage(U,{data:new l.RGBAImage({width:Ce,height:Xe},nt),pixelRatio:k,stretchX:ue,stretchY:he,content:_e,sdf:Z,version:0})}else if(f.width===void 0||f.height===void 0)this.fire(new l.ErrorEvent(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));else{const{width:Ce,height:Xe}=f,nt=f;this.style.addImage(U,{data:new l.RGBAImage({width:Ce,height:Xe},new Uint8Array(nt.data)),pixelRatio:k,stretchX:ue,stretchY:he,content:_e,sdf:Z,version:0,userImage:nt}),nt.onAdd&&nt.onAdd(this,U)}}updateImage(U,f){const k=this.style.getImage(U);if(!k)return void this.fire(new l.ErrorEvent(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));const Z=f instanceof l.window.HTMLImageElement||l.window.ImageBitmap&&f instanceof l.window.ImageBitmap?l.exported.getImageData(f):f,{width:ue,height:he}=Z;ue!==void 0&&he!==void 0?ue===k.data.width&&he===k.data.height?(k.data.replace(Z.data,!(f instanceof l.window.HTMLImageElement||l.window.ImageBitmap&&f instanceof l.window.ImageBitmap)),this.style.updateImage(U,k)):this.fire(new l.ErrorEvent(new Error("The width and height of the updated image must be that same as the previous version of the image"))):this.fire(new l.ErrorEvent(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")))}hasImage(U){return U?!!this.style.getImage(U):(this.fire(new l.ErrorEvent(new Error("Missing required image id"))),!1)}removeImage(U){this.style.removeImage(U)}loadImage(U,f){l.getImage(this._requestManager.transformRequest(U,l.ResourceType.Image),(k,Z)=>{f(k,Z instanceof l.window.HTMLImageElement?l.exported.getImageData(Z):Z)})}listImages(){return this.style.listImages()}addLayer(U,f){return this._lazyInitEmptyStyle(),this.style.addLayer(U,f),this._update(!0)}moveLayer(U,f){return this.style.moveLayer(U,f),this._update(!0)}removeLayer(U){return this.style.removeLayer(U),this._update(!0)}getLayer(U){return this.style.getLayer(U)}setLayerZoomRange(U,f,k){return this.style.setLayerZoomRange(U,f,k),this._update(!0)}setFilter(U,f,k={}){return this.style.setFilter(U,f,k),this._update(!0)}getFilter(U){return this.style.getFilter(U)}setPaintProperty(U,f,k,Z={}){return this.style.setPaintProperty(U,f,k,Z),this._update(!0)}getPaintProperty(U,f){return this.style.getPaintProperty(U,f)}setLayoutProperty(U,f,k,Z={}){return this.style.setLayoutProperty(U,f,k,Z),this._update(!0)}getLayoutProperty(U,f){return this.style.getLayoutProperty(U,f)}setLight(U,f={}){return this._lazyInitEmptyStyle(),this.style.setLight(U,f),this._update(!0)}getLight(){return this.style.getLight()}setTerrain(U){return this._lazyInitEmptyStyle(),!U&&this.transform.projection.requiresDraping?this.style.setTerrainForDraping():this.style.setTerrain(U),this._averageElevationLastSampledAt=-1/0,this._update(!0)}getTerrain(){return this.style?this.style.getTerrain():null}setFog(U){return this._lazyInitEmptyStyle(),this.style.setFog(U),this._update(!0)}getFog(){return this.style?this.style.getFog():null}_queryFogOpacity(U){return this.style&&this.style.fog?this.style.fog.getOpacityAtLatLng(l.LngLat.convert(U),this.transform):0}setFeatureState(U,f){return this.style.setFeatureState(U,f),this._update()}removeFeatureState(U,f){return this.style.removeFeatureState(U,f),this._update()}getFeatureState(U){return this.style.getFeatureState(U)}_updateContainerDimensions(){if(!this._container)return;const U=this._container.getBoundingClientRect().width||400,f=this._container.getBoundingClientRect().height||300;let k,Z,ue,he=this._container;for(;he&&(!Z||!ue);){const _e=l.window.getComputedStyle(he).transform;_e&&_e!=="none"&&(k=_e.match(/matrix.*\((.+)\)/)[1].split(", "),k[0]&&k[0]!=="0"&&k[0]!=="1"&&(Z=k[0]),k[3]&&k[3]!=="0"&&k[3]!=="1"&&(ue=k[3])),he=he.parentElement}this._containerWidth=Z?Math.abs(U/Z):U,this._containerHeight=ue?Math.abs(f/ue):f}_detectMissingCSS(){l.window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")!=="rgb(250, 128, 114)"&&l.warnOnce("This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.")}_setupContainer(){const U=this._container;U.classList.add("mapboxgl-map"),(this._missingCSSCanary=b("div","mapboxgl-canary",U)).style.visibility="hidden",this._detectMissingCSS();const f=this._canvasContainer=b("div","mapboxgl-canvas-container",U);this._interactive&&f.classList.add("mapboxgl-interactive"),this._canvas=b("canvas","mapboxgl-canvas",f),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex","0"),this._canvas.setAttribute("aria-label","Map"),this._canvas.setAttribute("role","region"),this._canvas.setAttribute("id","mxcanvas"),console.log("mapbox use webgl2"),this._updateContainerDimensions(),this._resizeCanvas(this._containerWidth,this._containerHeight);const k=this._controlContainer=b("div","mapboxgl-control-container",U),Z=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(ue=>{Z[ue]=b("div",`mapboxgl-ctrl-${ue}`,k)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(U,f){const k=l.exported.devicePixelRatio||1;this._canvas.width=k*Math.ceil(U),this._canvas.height=k*Math.ceil(f),this._canvas.style.width=`${U}px`,this._canvas.style.height=`${f}px`}_addMarker(U){this._markers.push(U)}_removeMarker(U){const f=this._markers.indexOf(U);f!==-1&&this._markers.splice(f,1)}_setupPainter(){const U=l.extend({},v.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),f=this._canvas.getContext("webgl2",U)||this._canvas.getContext("experimental-webgl",U);f?(l.storeAuthState(f,!0),this.painter=new Yo(f,this.transform),this.on("data",k=>{k.dataType==="source"&&this.painter.setTileLoadedFlag(!0)}),l.exported$1.testSupport(f)):this.fire(new l.ErrorEvent(new Error("Failed to initialize WebGL")))}_contextLost(U){U.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new l.Event("webglcontextlost",{originalEvent:U}))}_contextRestored(U){this._setupPainter(),this.resize(),this._update(),this.fire(new l.Event("webglcontextrestored",{originalEvent:U}))}_onMapScroll(U){if(U.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(U){return this.style?(this._styleDirty=this._styleDirty||U,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(U){return this._update(),this._renderTaskQueue.add(U)}_cancelRenderFrame(U){this._renderTaskQueue.remove(U)}_requestDomTask(U){!this.loaded()||this.loaded()&&!this.isMoving()?U():this._domRenderTaskQueue.add(U)}_render(U){let f;const k=this.painter.context.extTimerQuery,Z=l.exported.now();if(this.listens("gpu-timing-frame")&&(f=k.createQueryEXT(),k.beginQueryEXT(k.TIME_ELAPSED_EXT,f)),this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(U),this._domRenderTaskQueue.run(U),this._removed)return;let ue=!1;const he=this._isInitialLoad?0:this._fadeDuration;if(this.style&&this._styleDirty){this._styleDirty=!1;const Xe=this.transform.zoom,nt=this.transform.pitch,lt=l.exported.now();this.style.zoomHistory.update(Xe,lt);const yt=new l.EvaluationParameters(Xe,{now:lt,fadeDuration:he,pitch:nt,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),Rt=yt.crossFadingFactor();Rt===1&&Rt===this._crossFadingFactor||(ue=!0,this._crossFadingFactor=Rt),this.style.update(yt)}this.style&&this.style.fog&&this.style.fog.hasTransition()&&(this.style._markersNeedUpdate=!0,this._sourcesDirty=!0);let _e=!1;if(this.style&&this._sourcesDirty?(this._sourcesDirty=!1,this.painter._updateFog(this.style),this._updateTerrain(),_e=this._updateAverageElevation(Z),this.style._updateSources(this.transform),this._forceMarkerUpdate()):_e=this._updateAverageElevation(Z),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,he,this._crossSourceCollisions),this.style&&this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showTerrainWireframe:this.showTerrainWireframe,showOverdrawInspector:this._showOverdrawInspector,showQueryGeometry:!!this._showQueryGeometry,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:he,isInitialLoad:this._isInitialLoad,showPadding:this.showPadding,gpuTiming:!!this.listens("gpu-timing-layer"),speedIndexTiming:this.speedIndexTiming}),this.fire(new l.Event("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new l.Event("load"))),this.style&&(this.style.hasTransitions()||ue)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),this.listens("gpu-timing-frame")){const Xe=l.exported.now()-Z;k.endQueryEXT(k.TIME_ELAPSED_EXT,f),setTimeout(()=>{const nt=k.getQueryObjectEXT(f,k.QUERY_RESULT_EXT)/1e6;k.deleteQueryEXT(f),this.fire(new l.Event("gpu-timing-frame",{cpuTime:Xe,gpuTime:nt}))},50)}if(this.listens("gpu-timing-layer")){const Xe=this.painter.collectGpuTimers();setTimeout(()=>{const nt=this.painter.queryGpuTimers(Xe);this.fire(new l.Event("gpu-timing-layer",{layerTimes:nt}))},50)}const Ce=this._sourcesDirty||this._styleDirty||this._placementDirty||_e;if(Ce||this._repaint)this.triggerRepaint();else{const Xe=!this.isMoving()&&this.loaded();if(Xe&&(_e=this._updateAverageElevation(Z,!0)),_e)this.triggerRepaint();else if(this._triggerFrame(!1),Xe&&(this.fire(new l.Event("idle")),this._isInitialLoad=!1,this.speedIndexTiming)){const nt=this._calculateSpeedIndex();this.fire(new l.Event("speedindexcompleted",{speedIndex:nt})),this.speedIndexTiming=!1}}!this._loaded||this._fullyLoaded||Ce||(this._fullyLoaded=!0,this._authenticate())}_forceMarkerUpdate(){for(const U of this._markers)U._update()}_updateAverageElevation(U,f=!1){const k=Z=>(this.transform.averageElevation=Z,this._update(!1),!0);if(!this.painter.averageElevationNeedsEasing())return this.transform.averageElevation!==0&&k(0);if((f||U-this._averageElevationLastSampledAt>500)&&!this._averageElevation.isEasing(U)){const Z=this.transform.averageElevation;let ue=this.transform.sampleAverageElevation(),he=!1;this.transform.elevation&&(he=this.transform.elevation.exaggeration()!==this._averageElevationExaggeration,this._averageElevationExaggeration=this.transform.elevation.exaggeration()),isNaN(ue)?ue=0:this._averageElevationLastSampledAt=U;const _e=Math.abs(Z-ue);if(_e>1){if(this._isInitialLoad||he)return this._averageElevation.jumpTo(ue),k(ue);this._averageElevation.easeTo(ue,U,300)}else if(_e>1e-4)return this._averageElevation.jumpTo(ue),k(ue)}return!!this._averageElevation.isEasing(U)&&k(this._averageElevation.getValue(U))}_authenticate(){l.getMapSessionAPI(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,U=>{}),l.postMapLoadEvent(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,()=>{})}_updateTerrain(){this.painter.updateTerrain(this.style,this.isMoving()||this.isRotating()||this.isZooming())}_calculateSpeedIndex(){const U=this.painter.canvasCopy(),f=this.painter.getCanvasCopiesAndTimestamps();f.timeStamps.push(performance.now());const k=this.painter.context.gl,Z=k.createFramebuffer();function ue(he){k.framebufferTexture2D(k.FRAMEBUFFER,k.COLOR_ATTACHMENT0,k.TEXTURE_2D,he,0);const _e=new Uint8Array(k.drawingBufferWidth*k.drawingBufferHeight*4);return k.readPixels(0,0,k.drawingBufferWidth,k.drawingBufferHeight,k.RGBA,k.UNSIGNED_BYTE,_e),_e}return k.bindFramebuffer(k.FRAMEBUFFER,Z),this._canvasPixelComparison(ue(U),f.canvasCopies.map(ue),f.timeStamps)}_canvasPixelComparison(U,f,k){let Z=k[1]-k[0];const ue=U.length/4;for(let he=0;he<f.length;he++){const _e=f[he];let Ce=0;for(let Xe=0;Xe<_e.length;Xe+=4)_e[Xe]===U[Xe]&&_e[Xe+1]===U[Xe+1]&&_e[Xe+2]===U[Xe+2]&&_e[Xe+3]===U[Xe+3]&&(Ce+=1);Z+=(k[he+2]-k[he+1])*(1-Ce/ue)}return Z}remove(){this._hash&&this._hash.remove();for(const f of this._controls)f.onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this._domRenderTaskQueue.clear(),this.style&&this.style.destroy(),this.painter.destroy(),this.handlers&&this.handlers.destroy(),this.handlers=void 0,this.setStyle(null),l.window!==void 0&&(l.window.removeEventListener("resize",this._onWindowResize,!1),l.window.removeEventListener("orientationchange",this._onWindowResize,!1),l.window.removeEventListener("webkitfullscreenchange",this._onWindowResize,!1),l.window.removeEventListener("online",this._onWindowOnline,!1));const U=this.painter.context.gl.getExtension("WEBGL_lose_context");U&&U.loseContext(),Gu(this._canvasContainer),Gu(this._controlContainer),Gu(this._missingCSSCanary),this._container.classList.remove("mapboxgl-map"),l.removeAuthState(this.painter.context.gl),this._removed=!0,this.fire(new l.Event("remove"))}triggerRepaint(){this._triggerFrame(!0)}_triggerFrame(U){this._renderNextFrame=this._renderNextFrame||U,this.style&&!this._frame&&(this._frame=l.exported.frame(f=>{const k=!!this._renderNextFrame;this._frame=null,this._renderNextFrame=null,k&&this._render(f)}))}_preloadTiles(U){const f=this.style?Object.values(this.style._sourceCaches):[];return l.asyncAll(f,(k,Z)=>k._preloadTiles(U,Z),()=>{this.triggerRepaint()}),this}_onWindowOnline(){this._update()}_onWindowResize(U){this._trackResize&&this.resize({originalEvent:U})._update()}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(U){this._showTileBoundaries!==U&&(this._showTileBoundaries=U,this._update())}get showTerrainWireframe(){return!!this._showTerrainWireframe}set showTerrainWireframe(U){this._showTerrainWireframe!==U&&(this._showTerrainWireframe=U,this._update())}get speedIndexTiming(){return!!this._speedIndexTiming}set speedIndexTiming(U){this._speedIndexTiming!==U&&(this._speedIndexTiming=U,this._update())}get showPadding(){return!!this._showPadding}set showPadding(U){this._showPadding!==U&&(this._showPadding=U,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(U){this._showCollisionBoxes!==U&&(this._showCollisionBoxes=U,U?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(U){this._showOverdrawInspector!==U&&(this._showOverdrawInspector=U,this._update())}get repaint(){return!!this._repaint}set repaint(U){this._repaint!==U&&(this._repaint=U,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(U){this._vertices=U,this._update()}_setCacheLimits(U,f){l.setCacheLimits(U,f)}get version(){return l.version}},NavigationControl:class{constructor(U){this.options=l.extend({},ip,U),this._container=b("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",f=>f.preventDefault()),this.options.showZoom&&(l.bindAll(["_setButtonTitle","_updateZoomButtons"],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-zoom-in",f=>{this._map&&this._map.zoomIn({},{originalEvent:f})}),b("span","mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("mapboxgl-ctrl-zoom-out",f=>{this._map&&this._map.zoomOut({},{originalEvent:f})}),b("span","mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(l.bindAll(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-compass",f=>{const k=this._map;k&&(this.options.visualizePitch?k.resetNorthPitch({},{originalEvent:f}):k.resetNorth({},{originalEvent:f}))}),this._compassIcon=b("span","mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}_updateZoomButtons(){const U=this._map;if(!U)return;const f=U.getZoom(),k=f===U.getMaxZoom(),Z=f===U.getMinZoom();this._zoomInButton.disabled=k,this._zoomOutButton.disabled=Z,this._zoomInButton.setAttribute("aria-disabled",k.toString()),this._zoomOutButton.setAttribute("aria-disabled",Z.toString())}_rotateCompassArrow(){const U=this._map;if(!U)return;const f=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(U.transform.pitch*(Math.PI/180)),.5)}) rotateX(${U.transform.pitch}deg) rotateZ(${U.transform.angle*(180/Math.PI)}deg)`:`rotate(${U.transform.angle*(180/Math.PI)}deg)`;U._requestDomTask(()=>{this._compassIcon&&(this._compassIcon.style.transform=f)})}onAdd(U){return this._map=U,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),U.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&U.on("pitch",this._rotateCompassArrow),U.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new pc(U,this._compass,this.options.visualizePitch)),this._container}onRemove(){const U=this._map;U&&(this._container.remove(),this.options.showZoom&&U.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&U.off("pitch",this._rotateCompassArrow),U.off("rotate",this._rotateCompassArrow),this._handler&&this._handler.off(),this._handler=void 0),this._map=void 0)}_createButton(U,f){const k=b("button",U,this._container);return k.type="button",k.addEventListener("click",f),k}_setButtonTitle(U,f){if(!this._map)return;const k=this._map._getUIString(`NavigationControl.${f}`);U.setAttribute("aria-label",k),U.firstElementChild&&U.firstElementChild.setAttribute("title",k)}},GeolocateControl:class extends l.Evented{constructor(U){super(),this.options=l.extend({},uu,U),l.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker","_updateMarkerRotation","_onDeviceOrientation"],this),this._updateMarkerRotationThrottled=Kl(this._updateMarkerRotation,20)}onAdd(U){var f;return this._map=U,this._container=b("div","mapboxgl-ctrl mapboxgl-ctrl-group"),f=this._setupUI,fu!==void 0?f(fu):l.window.navigator.permissions!==void 0?l.window.navigator.permissions.query({name:"geolocation"}).then(k=>{fu=k.state!=="denied",f(fu)}):(fu=!!l.window.navigator.geolocation,f(fu)),this._container}onRemove(){this._geolocationWatchID!==void 0&&(l.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),this._container.remove(),this._map.off("zoom",this._onZoom),this._map=void 0,vd=0,Kc=!1}_isOutOfMapMaxBounds(U){const f=this._map.getMaxBounds(),k=U.coords;return!!f&&(k.longitude<f.getWest()||k.longitude>f.getEast()||k.latitude<f.getSouth()||k.latitude>f.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}}_onSuccess(U){if(this._map){if(this._isOutOfMapMaxBounds(U))return this._setErrorState(),this.fire(new l.Event("outofmaxbounds",U)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=U,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(U),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(U),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new l.Event("geolocate",U)),this._finish()}}_updateCamera(U){const f=new l.LngLat(U.coords.longitude,U.coords.latitude),k=U.coords.accuracy,Z=this._map.getBearing(),ue=l.extend({bearing:Z},this.options.fitBoundsOptions);this._map.fitBounds(f.toBounds(k),ue,{geolocateSource:!0})}_updateMarker(U){if(U){const f=new l.LngLat(U.coords.longitude,U.coords.latitude);this._accuracyCircleMarker.setLngLat(f).addTo(this._map),this._userLocationDotMarker.setLngLat(f).addTo(this._map),this._accuracy=U.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()}_updateCircleRadius(){const U=this._map._containerHeight/2,f=this._map.unproject([0,U]),k=this._map.unproject([100,U]),Z=f.distanceTo(k)/100,ue=Math.ceil(2*this._accuracy/Z);this._circleElement.style.width=`${ue}px`,this._circleElement.style.height=`${ue}px`}_onZoom(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}_updateMarkerRotation(){this._userLocationDotMarker&&typeof this._heading=="number"?(this._userLocationDotMarker.setRotation(this._heading),this._dotElement.classList.add("mapboxgl-user-location-show-heading")):(this._dotElement.classList.remove("mapboxgl-user-location-show-heading"),this._userLocationDotMarker.setRotation(0))}_onError(U){if(this._map){if(this.options.trackUserLocation)if(U.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;const f=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.setAttribute("aria-label",f),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",f),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(U.code===3&&Kc)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new l.Event("error",U)),this._finish()}}_finish(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0}_setupUI(U){if(this._container.addEventListener("contextmenu",f=>f.preventDefault()),this._geolocateButton=b("button","mapboxgl-ctrl-geolocate",this._container),b("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",U===!1){l.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");const f=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.setAttribute("aria-label",f),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",f)}else{const f=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.setAttribute("aria-label",f),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",f)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=b("div","mapboxgl-user-location"),this._dotElement.appendChild(b("div","mapboxgl-user-location-dot")),this._dotElement.appendChild(b("div","mapboxgl-user-location-heading")),this._userLocationDotMarker=new Il({element:this._dotElement,rotationAlignment:"map",pitchAlignment:"map"}),this._circleElement=b("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Il({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",f=>{f.geolocateSource||this._watchState!=="ACTIVE_LOCK"||f.originalEvent&&f.originalEvent.type==="resize"||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this.fire(new l.Event("trackuserlocationend")))})}_onDeviceOrientation(U){this._userLocationDotMarker&&(U.webkitCompassHeading?this._heading=U.webkitCompassHeading:U.absolute===!0&&(this._heading=-1*U.alpha),this._updateMarkerRotationThrottled())}trigger(){if(!this._setup)return l.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new l.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":vd--,Kc=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new l.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new l.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){let U;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),vd++,vd>1?(U={maximumAge:6e5,timeout:0},Kc=!0):(U=this.options.positionOptions,Kc=!1),this._geolocationWatchID=l.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,U),this.options.showUserHeading&&this._addDeviceOrientationListener()}}else l.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_addDeviceOrientationListener(){const U=()=>{l.window.addEventListener("ondeviceorientationabsolute"in l.window?"deviceorientationabsolute":"deviceorientation",this._onDeviceOrientation)};l.window.DeviceMotionEvent!==void 0&&typeof l.window.DeviceMotionEvent.requestPermission=="function"?DeviceOrientationEvent.requestPermission().then(f=>{f==="granted"&&U()}).catch(console.error):U()}_clearWatch(){l.window.navigator.geolocation.clearWatch(this._geolocationWatchID),l.window.removeEventListener("deviceorientation",this._onDeviceOrientation),l.window.removeEventListener("deviceorientationabsolute",this._onDeviceOrientation),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},AttributionControl:Vu,ScaleControl:class{constructor(U){this.options=l.extend({},Rh,U),l.bindAll(["_onMove","setUnit"],this)}getDefaultPosition(){return"bottom-left"}_onMove(){sh(this._map,this._container,this.options)}onAdd(U){return this._map=U,this._container=b("div","mapboxgl-ctrl mapboxgl-ctrl-scale",U.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){this._container.remove(),this._map.off("move",this._onMove),this._map=void 0}setUnit(U){this.options.unit=U,sh(this._map,this._container,this.options)}},FullscreenControl:class{constructor(U){this._fullscreen=!1,U&&U.container&&(U.container instanceof l.window.HTMLElement?this._container=U.container:l.warnOnce("Full screen control 'container' must be a DOM element.")),l.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in l.window.document?this._fullscreenchange="fullscreenchange":"onwebkitfullscreenchange"in l.window.document&&(this._fullscreenchange="webkitfullscreenchange")}onAdd(U){return this._map=U,this._container||(this._container=this._map.getContainer()),this._controlContainer=b("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",l.warnOnce("This device does not support fullscreen mode.")),this._controlContainer}onRemove(){this._controlContainer.remove(),this._map=null,l.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)}_checkFullscreenSupport(){return!(!l.window.document.fullscreenEnabled&&!l.window.document.webkitFullscreenEnabled)}_setupUI(){const U=this._fullscreenButton=b("button","mapboxgl-ctrl-fullscreen",this._controlContainer);b("span","mapboxgl-ctrl-icon",U).setAttribute("aria-hidden","true"),U.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),l.window.document.addEventListener(this._fullscreenchange,this._changeIcon)}_updateTitle(){const U=this._getTitle();this._fullscreenButton.setAttribute("aria-label",U),this._fullscreenButton.firstElementChild&&this._fullscreenButton.firstElementChild.setAttribute("title",U)}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_changeIcon(){(l.window.document.fullscreenElement||l.window.document.webkitFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())}_onClickFullscreen(){this._isFullscreen()?l.window.document.exitFullscreen?l.window.document.exitFullscreen():l.window.document.webkitCancelFullScreen&&l.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()}},Popup:class extends l.Evented{constructor(U){super(),this.options=l.extend(Object.create(Gs),U),l.bindAll(["_update","_onClose","remove","_onMouseEvent"],this),this._classList=new Set(U&&U.className?U.className.trim().split(/\s+/):[])}addTo(U){return this._map&&this.remove(),this._map=U,this.options.closeOnClick&&U.on("preclick",this._onClose),this.options.closeOnMove&&U.on("move",this._onClose),U.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(U.on("mousemove",this._onMouseEvent),U.on("mouseup",this._onMouseEvent),U._canvasContainer.classList.add("mapboxgl-track-pointer")):U.on("move",this._update),this.fire(new l.Event("open")),this}isOpen(){return!!this._map}remove(){this._content&&this._content.remove(),this._container&&(this._container.remove(),this._container=void 0);const U=this._map;return U&&(U.off("move",this._update),U.off("move",this._onClose),U.off("preclick",this._onClose),U.off("click",this._onClose),U.off("remove",this.remove),U.off("mousemove",this._onMouseEvent),U.off("mouseup",this._onMouseEvent),U.off("drag",this._onMouseEvent),this._map=void 0),this.fire(new l.Event("close")),this}getLngLat(){return this._lngLat}setLngLat(U){this._lngLat=l.LngLat.convert(U),this._pos=null,this._trackPointer=!1,this._update();const f=this._map;return f&&(f.on("move",this._update),f.off("mousemove",this._onMouseEvent),f._canvasContainer.classList.remove("mapboxgl-track-pointer")),this}trackPointer(){this._trackPointer=!0,this._pos=null,this._update();const U=this._map;return U&&(U.off("move",this._update),U.on("mousemove",this._onMouseEvent),U.on("drag",this._onMouseEvent),U._canvasContainer.classList.add("mapboxgl-track-pointer")),this}getElement(){return this._container}setText(U){return this.setDOMContent(l.window.document.createTextNode(U))}setHTML(U){const f=l.window.document.createDocumentFragment(),k=l.window.document.createElement("body");let Z;for(k.innerHTML=U;Z=k.firstChild,Z;)f.appendChild(Z);return this.setDOMContent(f)}getMaxWidth(){return this._container&&this._container.style.maxWidth}setMaxWidth(U){return this.options.maxWidth=U,this._update(),this}setDOMContent(U){let f=this._content;if(f)for(;f.hasChildNodes();)f.firstChild&&f.removeChild(f.firstChild);else f=this._content=b("div","mapboxgl-popup-content",this._container||void 0);if(f.appendChild(U),this.options.closeButton){const k=this._closeButton=b("button","mapboxgl-popup-close-button",f);k.type="button",k.setAttribute("aria-label","Close popup"),k.setAttribute("aria-hidden","true"),k.innerHTML="&#215;",k.addEventListener("click",this._onClose)}return this._update(),this._focusFirstElement(),this}addClassName(U){return this._classList.add(U),this._updateClassList(),this}removeClassName(U){return this._classList.delete(U),this._updateClassList(),this}setOffset(U){return this.options.offset=U,this._update(),this}toggleClassName(U){let f;return this._classList.delete(U)?f=!1:(this._classList.add(U),f=!0),this._updateClassList(),f}_onMouseEvent(U){this._update(U.point)}_getAnchor(U){if(this.options.anchor)return this.options.anchor;const f=this._map,k=this._container,Z=this._pos;if(!f||!k||!Z)return"bottom";const ue=k.offsetWidth,he=k.offsetHeight,_e=Z.x<ue/2,Ce=Z.x>f.transform.width-ue/2;if(Z.y+U<he)return _e?"top-left":Ce?"top-right":"top";if(Z.y>f.transform.height-he){if(_e)return"bottom-left";if(Ce)return"bottom-right"}return _e?"left":Ce?"right":"bottom"}_updateClassList(){const U=this._container;if(!U)return;const f=[...this._classList];f.push("mapboxgl-popup"),this._anchor&&f.push(`mapboxgl-popup-anchor-${this._anchor}`),this._trackPointer&&f.push("mapboxgl-popup-track-pointer"),U.className=f.join(" ")}_update(U){const f=this._map,k=this._content;if(!f||!this._lngLat&&!this._trackPointer||!k)return;let Z=this._container;if(Z||(Z=this._container=b("div","mapboxgl-popup",f.getContainer()),this._tip=b("div","mapboxgl-popup-tip",Z),Z.appendChild(k)),this.options.maxWidth&&Z.style.maxWidth!==this.options.maxWidth&&(Z.style.maxWidth=this.options.maxWidth),f.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=zu(this._lngLat,this._pos,f.transform)),!this._trackPointer||U){const ue=this._pos=this._trackPointer&&U?U:f.project(this._lngLat),he=Jc(this.options.offset),_e=this._anchor=this._getAnchor(he.y),Ce=Jc(this.options.offset,_e),Xe=ue.add(Ce).round();f._requestDomTask(()=>{this._container&&_e&&(this._container.style.transform=`${Ql[_e]} translate(${Xe.x}px,${Xe.y}px)`)})}this._updateClassList()}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;const U=this._container.querySelector(Ro);U&&U.focus()}_onClose(){this.remove()}_setOpacity(U){this._content&&(this._content.style.opacity=U),this._tip&&(this._tip.style.opacity=U)}},Marker:Il,Style:Ea,LngLat:l.LngLat,LngLatBounds:l.LngLatBounds,Point:l.pointGeometry,MercatorCoordinate:l.MercatorCoordinate,FreeCameraOptions:cc,Evented:l.Evented,config:l.config,prewarm:function(){Li().acquire(Ri)},clearPrewarmedResources:function(){const U=mi;U&&(U.isPreloaded()&&U.numActive()===1?(U.release(Ri),mi=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return l.config.ACCESS_TOKEN},set accessToken(U){l.config.ACCESS_TOKEN=U},get baseApiUrl(){return l.config.API_URL},set baseApiUrl(U){l.config.API_URL=U},get workerCount(){return Ti.workerCount},set workerCount(U){Ti.workerCount=U},get maxParallelImageRequests(){return l.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(U){l.config.MAX_PARALLEL_IMAGE_REQUESTS=U},clearStorage(U){l.clearTileCache(U)},workerUrl:"",workerClass:null,setNow:l.exported.setNow,restoreNow:l.exported.restoreNow};return rc});var c=o;return c})})(mapboxGl$1);const mapboxgl=mapboxGl$1.exports,mapboxGl="";var ARRAY_TYPE=typeof Float32Array!="undefined"?Float32Array:Array;Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});function create(){var t=new ARRAY_TYPE(4);return ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function transformMat4(t,e,r){var n=e[0],o=e[1],s=e[2],c=e[3];return t[0]=r[0]*n+r[4]*o+r[8]*s+r[12]*c,t[1]=r[1]*n+r[5]*o+r[9]*s+r[13]*c,t[2]=r[2]*n+r[6]*o+r[10]*s+r[14]*c,t[3]=r[3]*n+r[7]*o+r[11]*s+r[15]*c,t}(function(){var t=create();return function(e,r,n,o,s,c){var l,v;for(r||(r=4),n||(n=0),o?v=Math.min(o*r+n,e.length):v=e.length,l=n;l<v;l+=r)t[0]=e[l],t[1]=e[l+1],t[2]=e[l+2],t[3]=e[l+3],s(t,t,c),e[l]=t[0],e[l+1]=t[1],e[l+2]=t[2],e[l+3]=t[3];return e}})();const _project=mapboxGl$1.exports.Map.prototype.project;class Map$1 extends mapboxGl$1.exports.Map{dom_mousePos(e){return this.dom_mousePos_imp(this.getCanvasContainer(),e)}lnglat_to_mercator(e,r){return mapboxgl.MercatorCoordinate.fromLngLat([e,r],0)}mercator_to_lnglat(e,r,n){return new mapboxgl.MercatorCoordinate(e,r,n).toLngLat()}addRasterTileLayer(e,r){return MxMapAddRasterTileLayer(this,e,r)}mercatorCoordinate_from_LngLat(e,r){return mapboxgl.MercatorCoordinate.fromLngLat(e,r)}getScaledPoint(e,r,n){const o=e.offsetWidth===r.width?1:e.offsetWidth/r.width;return new mapboxGl$1.exports.Point((n.clientX-r.left)*o,(n.clientY-r.top)*o)}dom_mousePos_imp(e,r){const n=e.getBoundingClientRect();return this.getScaledPoint(e,n,r)}createCavans(e,r){const n=document.createElement("canvas");return n.width=e,n.height=r,n}projectEx(e,r){const n=this,o=n.transform.locationCoordinate(mapboxGl$1.exports.LngLat.convert(e)),s=[o.x*n.transform.worldSize,o.y*n.transform.worldSize,r!=null?r:o.toAltitude(),1];return transformMat4(s,s,n.transform.pixelMatrix),new mapboxGl$1.exports.Point(s[0]/s[3],s[1]/s[3])}project(e){const r=_project.bind(this);return arguments.length>=1&&typeof arguments[0]=="object"&&arguments[0].alt?this.projectEx(arguments[0],arguments[0].alt):r(e)}addLayer(e,r){return e.metadata||(e.metadata={isBaseMap:!1}),super.addLayer(e,r),this}changeBaseMap(e,r){let n=Object.assign(r,{isBaseMap:!0});this._removeBaseStyle(),this.addMapStyle(e,n)}_removeBaseStyle(){let{layers:e}=this.getStyle();for(let r of e)(!r.metadata||r.metadata&&r.metadata.isBaseMap==!0)&&this.removeLayer(r.id)}addMapStyle(e,r){let{styleid:n,isBaseMap:o}=r;if(typeof e!="object")throw new TypeError("addMapStyle\u9700\u8981\u4F20\u5165\u5BF9\u8C61\u7C7B\u578B\u53C2\u6570");let{zoom:s,center:c,pitch:l}=e;Object.keys(e.sources).forEach(x=>{this.getSource(x)||this.addSource(x,e.sources[x])}),e.sprite&&this._addImages(e.sprite);const v={isBaseMap:o||!1,aid:`${n}`};for(const x of e.layers){let w=x.id;if(x.metadata=v,!this.getLayer(w)){let _=this._findFirstSpeLayer();o&&_?this.addLayer(x,_.id):this.addLayer(x)}}s&&this.setZoom(s),l&&this.setPitch(l),c&&this.setCenter(c)}_findFirstSpeLayer(){let{layers:e}=this.getStyle();for(let r of e)if(r.metadata&&r.metadata.isBaseMap==!1)return r;return null}addGroupLayer(){this.addLayer({id:"mx.layer.fill",type:"fill",source:{type:"geojson",data:{type:"Feature",geometry:{type:"Polygon",coordinates:[[]]},properties:{}}}}),this.addLayer({id:"mx.layer.line",type:"line",source:{type:"geojson",data:{type:"Feature",geometry:{type:"LineString",coordinates:[]},properties:{}}}}),this.addLayer({id:"mx.layer.symbol",type:"symbol",source:{type:"geojson",data:{type:"Feature",geometry:{type:"Point",coordinates:[]},properties:{}}}})}createDashArraySeq(e,r=1){let n=[e];for(let o=r,s=e[0]+e[1];o<s;o+=r){const c=[];if(o<=s-e[0])c.push(0,o,e[0],e[1]-o);else{const l=o-(s-e[0]);c.push(l,e[1],e[0]-l,0)}n.push(c)}return n}_addImages(e){let r=this;fetch(`${e}.json`).then(n=>n.json()).then(n=>{const o=new Image;o.onload=function(){Object.keys(n).forEach(s=>{const c=n[s],{x:l,y:v,width:x,height:w}=c,_=r.createCavans(x,w);_.getContext("2d").drawImage(o,l,v,x,w,0,0,x,w);const E=_.toDataURL("image/png");r.loadImage(E,(I,O)=>{if(I){console.error(I);return}r.hasImage(s)&&r.removeImage(s),O&&r.addImage(s,O)})})},o.crossOrigin="anonymous",o.src=`${e}.png`})}}function createResizeObserver(t){return typeof ResizeObserver=="function"?new ResizeObserver(t):null}function addResizeListener(t,e){const r=()=>requestAnimationFrame(e);let n=createResizeObserver(r);if(n){n.observe(t);return}if(MutationObserver){new MutationObserver(r).observe(t,{attributes:!0});return}}const MxElectronAPI=window.MxElectronAPI;MxElectronAPI&&(window.prompt=MxElectronAPI.prompt,MxElectronAPI.onGetSaveMxWebUrl(()=>new Promise(t=>{const e=MxCpp.App.getCurrentMxCAD(),r=e.getCurrentFileName();e.saveFile(r,n=>{let o;/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?o=new Blob([n.buffer],{type:"application/octet-stream"}):o=new Blob([n.buffer],{type:"application/octet-binary"});const c=URL.createObjectURL(o);t(c)},!1,!1)})));function getParamsFromUrl(){let t={};const e=window.location.href,r=e.indexOf("?");if(r!==-1){const n=e.substring(r+1);t=decodeParams(parseParamString(n))}return t}function parseParamString(t){const e={},r=t.split("&");for(let n=0;n<r.length;n++){const o=r[n].split("=");e[decodeURIComponent(o[0])]=decodeURIComponent(o[1]||"")}return e}function decodeParams(t){const e={};for(const r in t)e[decodeURIComponent(r)]=decodeURIComponent(t[r]);return e}const offset=60,iconCache={error:{icon:"class:iconfont error",color:"rgb(203,49,49)"},info:{icon:"class:iconfont info",color:"rgb(47,144,207)"},success:{icon:"class:iconfont success",color:"rgb(139,216,118)"},warning:{icon:"class:iconfont warning",color:"rgb(230,140,34)"}},messages=ref([]),addMessage=t=>{const e=ei(Pt({id:new Date().getTime()},t),{top:offset*messages.value.length});messages.value.push(e);const r=()=>{removeMessage(e)};return setTimeout(r,e.duration||2e3),r},removeMessage=t=>{messages.value.indexOf(t)>=0&&(messages.value.splice(messages.value.indexOf(t),1),messages.value.map(r=>{r.top-=offset}))},success=(t,e)=>addMessage({message:t,type:"success",duration:e}),warning=(t,e)=>addMessage({message:t,type:"warning",duration:e}),info=(t,e)=>addMessage({message:t,type:"info",duration:e}),error=(t,e)=>addMessage({message:t,type:"error",duration:e}),message=info;message.success=success;message.warning=warning;message.info=info;message.error=error;const useMessage=()=>message,useMessageData=()=>({addMessage,removeMessage,messages});MxElectronAPI==null||MxElectronAPI.onShowMessage((t,e="success")=>{useMessage()[e](t)});const isShow=ref(!1),abort=ref(),showLoading$3=t=>{t!=null&&t.abort&&(abort.value=t.abort),isShow.value=!0,document.body.style.pointerEvents="none"},hideLoading$3=()=>{isShow.value=!1,document.body.style.pointerEvents=""},useLoadingData=()=>({isShow,abort,showLoading:showLoading$3,hideLoading:hideLoading$3}),useLoading=()=>({showLoading:showLoading$3,hideLoading:hideLoading$3}),{showLoading:showLoading$2,hideLoading:hideLoading$2}=useLoading();function getMxreleaseidId(){return Gr(this,null,function*(){return(yield(yield load()).get()).visitorId})}class MxCADUIImplement{constructor(e){tp(this,"plugin",new MxCADPluginBase);tp(this,"mxcad");tp(this,"mxmap");this.mxcad=e}getUploadFileConfig(){return getUrlConfig()}init(e){this.plugin=e,this.plugin.mxcadui=this}}let mxcadObj;const getMxCadObj=()=>mxcadObj;let mxcadCallInit=!0;const createMxCAD=(t,e)=>{createMxCAD_New(t,e)},openFile=t=>{const{file:e,viewRange:r}=getParamsFromUrl()||{};requestIdleCallback(()=>{let n="test3.mxweb";t!==void 0&&(n=t,n.length==0&&(n="empty_template.mxweb")),mxcadObj.openWebFile(e||n,s=>{if(hideLoading$2(),s!==0){console.log("openWebFile error",s),useMessage().error("\u6253\u5F00\u9875\u9762\u5931\u8D25\uFF01");return}},!0,r?JSON.parse(r):void 0,0)&&showLoading$2({})})},createMxCAD_New=(t,e)=>Gr(void 0,null,function*(){let r=new McObject,n=new MxCADUIImplement(r);if(mxcadCallInit){store.state.MxFun||(yield loadCoreCode()),mxcadCallInit=!1;let s=yield fetchQuickCommand();MxFun.initQuickCommand(s),registerCommand(),yield registerPlugins$1(),MxFun.callEvent("mxcadApplicationStart",n)}r.on("init",()=>Gr(void 0,null,function*(){{let{aiUrl:s}=getAiConfig()||{};s&&MxCpp.Ai.init(s)}})),r.on("init_before_mxdraw",s=>{MxFun.callEvent("mxcadApplicationStartCreatingMxCADObject",{mxdraw:s}),e(s,!0)}),r.on("init_mxdraw",s=>{}),r.on("init_mxcad",s=>Gr(void 0,null,function*(){if(mxcadObj=s,!mxcadObj.isTryVersion())if(n.plugin.sRegistData.length>0)mxcadObj.initRegist(n.plugin.sRegistData);else{let l=yield getJsonFromUrl("mxkey.json.frontpage.json");l&&l.registdata?mxcadObj.initRegist(l.registdata):console.log("MxTip:empty regist data")}getMxreleaseidId().then(c=>{mxcadObj.getImp().SetAppId(c)}),MxFun.callEvent("mxcadApplicationCreatedMxCADObject",{mxcad:mxcadObj}),openFile(n.plugin.openFile)}));const o="myCanvas";r.create(ei(Pt({canvas:o},t),{locateFile:getFileWasm,multipleSelect:!0}))}),createMxCADMap=t=>Gr(void 0,null,function*(){const e=new MxMap;mxcadObj=e.mxcad;let r=new MxCADUIImplement(e.mxcad);if(r.mxmap=e,mxcadCallInit){store.state.MxFun||(yield loadCoreCode()),mxcadCallInit=!1;let w=yield fetchQuickCommand();MxFun.initQuickCommand(w),registerCommand(),yield registerPlugins$1(),MxFun.callEvent("mxcadApplicationStart",r)}MxFun.callEvent("mxcadApplicationStart",r);let n=new URL(""+new URL("../demo/road.dwg.mxweb",import.meta.url).href,self.location).href;r.plugin.map_default_data&&r.plugin.map_default_data.openFile&&(n=r.plugin.map_default_data.openFile);let o=[114.06825863001939,22.54283198132819],s=[116275.977014,19273.279085],c=1;mapboxgl.accessToken="";let l;r.plugin.map_default_data&&(o=r.plugin.map_default_data.mapOrigin,s=r.plugin.map_default_data.cadOrigin,c=r.plugin.map_default_data.meterInCADUnits,mapboxgl.accessToken=r.plugin.map_default_data.mapbox_accessToken,l=r.plugin.map_default_data.viewColor);const v={version:8,sources:{},glyphs:"mapbox://fonts/mapbox/{fontstack}/{range}.pbf",layers:[]},x=new Map$1({container:"mx_map",minZoom:0,maxZoom:24,center:o,zoom:16,style:v});addResizeListener(x.getContainer(),()=>x.resize()),e.setCoordinatePointAlignment(o,s,c),e.initMapbox(x),yield(()=>Gr(void 0,null,function*(){return new Promise(w=>{x.on("remove",()=>{}),x.on("style.load",function(){return Gr(this,null,function*(){x.addGroupLayer(),r.plugin.map_default_data&&r.plugin.map_default_data.rasterTileLayerList.length>0&&x.addRasterTileLayer(r.plugin.map_default_data.rasterTileLayerList,r.plugin.map_default_data.rasterTileKey?r.plugin.map_default_data.rasterTileKey:void 0),MxFun.callEvent("mxcadApplicationInitMap"),e.mxcad.on("init",()=>Gr(this,null,function*(){{let{aiUrl:_}=getAiConfig()||{};_&&MxCpp.Ai.init(_)}})),e.mxcad.on("init_before_mxdraw",_=>{MxFun.callEvent("mxcadApplicationStartCreatingMxCADObject",{mxdraw:_}),t(_,!0)}),e.mxcad.on("init_mxdraw",_=>{}),e.mxcad.on("init_mxcad",_=>Gr(this,null,function*(){if(mxcadObj=_,!mxcadObj.isTryVersion())if(r.plugin.sRegistData.length>0)mxcadObj.initRegist(r.plugin.sRegistData);else{let E=yield getJsonFromUrl("mxkey.json.frontpage.json");E&&E.registdata?mxcadObj.initRegist(E.registdata):console.log("MxTip:empty regist data")}getMxreleaseidId().then(b=>{mxcadObj.getImp().SetAppId(b)}),MxFun.callEvent("mxcadApplicationCreatedMxCADObject",{mxcad:mxcadObj})})),e.create(x,{locateFile:getFileWasm,fileUrl:n,middlePan:!0,multipleSelect:!0,viewBackgroundColor:l}),w()})})})}))()});function getFileWasm(t){let{url:e,type:r}=getWasmConfig()||{},n=MxFun.getQueryString("wasmtype");if(n=="st"?r="2d-st":n||"SharedArrayBuffer"in window||(r="2d-st"),typeof e!="undefined"&&e!==""){if(/^(https?|http):\/\//.test(e))return e+(e[length-1]==="/"?"":"/")+t;console.warn(`mxServerConfig.json wasmConfig \u914D\u7F6E\u9879url:${e} \u683C\u5F0F\u4E0D\u5339\u914D, \u8BF7\u8F93\u5165\u5305\u542Bmxcad\u76F8\u5173wasm\u76EE\u5F55\u7684\u7F51\u7EDC\u8DEF\u5F84\u5730\u5740\u4F8B\u5982: https://unpkg.com/mxcad/dist/wasm/2d-st/`)}const o=new URL(Object.assign({"/node_modules/mxcad/dist/wasm/2d/mxdrawassembly_min.js":__vite_glob_0_0,"/node_modules/mxcad/dist/wasm/2d/mxdrawassembly_min.wasm":__vite_glob_0_1,"/node_modules/mxcad/dist/wasm/2d/mxdrawassembly_min.worker.js":__vite_glob_0_2})[`/node_modules/mxcad/dist/wasm/2d/${t}`],self.location).href;if(typeof r!="undefined"&&r!==""){if(r==="2d")return o;if(r==="2d-st")return new URL(Object.assign({"/node_modules/mxcad/dist/wasm/2d-st/mxdrawassembly_min.js":__vite_glob_1_0,"/node_modules/mxcad/dist/wasm/2d-st/mxdrawassembly_minst.wasm":__vite_glob_1_1})[`/node_modules/mxcad/dist/wasm/2d-st/${t}`],self.location).href;console.warn(`mxServerConfig.json wasmConfig \u914D\u7F6E\u9879type:${r} \u8F93\u5165\u4E0D\u6B63\u786E, \u76EE\u524D\u652F\u6301\u7684\u8F93\u5165: 2d\u548C2d-st`)}return o}const updateDisplay=()=>{MxFun.updateDisplay()},getBlockNames=()=>{const r=MxCpp.getCurrentMxCAD().getDatabase().getBlockTable().getAllRecordId().map(o=>o.getMcDbBlockTableRecord()),n=[];return r.forEach(o=>{o!=null&&o.name&&n.push(o.name)}),n};var isVue2=!1;/*!
  4465. * pinia v2.1.6
  4466. * (c) 2023 Eduardo San Martin Morote
  4467. * @license MIT
  4468. */let activePinia;const setActivePinia=t=>activePinia=t,piniaSymbol=Symbol();function isPlainObject$2(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var MutationType;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(MutationType||(MutationType={}));function createPinia(){const t=effectScope(!0),e=t.run(()=>ref({}));let r=[],n=[];const o=markRaw({install(s){setActivePinia(o),o._a=s,s.provide(piniaSymbol,o),s.config.globalProperties.$pinia=o,n.forEach(c=>r.push(c)),n=[]},use(s){return!this._a&&!isVue2?n.push(s):r.push(s),this},_p:r,_a:null,_e:t,_s:new Map,state:e});return o}const noop$3=()=>{};function addSubscription(t,e,r,n=noop$3){t.push(e);const o=()=>{const s=t.indexOf(e);s>-1&&(t.splice(s,1),n())};return!r&&getCurrentScope()&&onScopeDispose(o),o}function triggerSubscriptions(t,...e){t.slice().forEach(r=>{r(...e)})}const fallbackRunWithContext=t=>t();function mergeReactiveObjects(t,e){t instanceof Map&&e instanceof Map&&e.forEach((r,n)=>t.set(n,r)),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const r in e){if(!e.hasOwnProperty(r))continue;const n=e[r],o=t[r];isPlainObject$2(o)&&isPlainObject$2(n)&&t.hasOwnProperty(r)&&!isRef(n)&&!isReactive(n)?t[r]=mergeReactiveObjects(o,n):t[r]=n}return t}const skipHydrateSymbol=Symbol();function shouldHydrate(t){return!isPlainObject$2(t)||!t.hasOwnProperty(skipHydrateSymbol)}const{assign:assign$2}=Object;function isComputed(t){return!!(isRef(t)&&t.effect)}function createOptionsStore(t,e,r,n){const{state:o,actions:s,getters:c}=e,l=r.state.value[t];let v;function x(){l||(r.state.value[t]=o?o():{});const w=toRefs(r.state.value[t]);return assign$2(w,s,Object.keys(c||{}).reduce((_,b)=>(_[b]=markRaw(computed(()=>{setActivePinia(r);const E=r._s.get(t);return c[b].call(E,E)})),_),{}))}return v=createSetupStore(t,x,e,r,n,!0),v}function createSetupStore(t,e,r={},n,o,s){let c;const l=assign$2({actions:{}},r),v={deep:!0};let x,w,_=[],b=[],E;const I=n.state.value[t];!s&&!I&&(n.state.value[t]={}),ref({});let O;function N(q){let D;x=w=!1,typeof q=="function"?(q(n.state.value[t]),D={type:MutationType.patchFunction,storeId:t,events:E}):(mergeReactiveObjects(n.state.value[t],q),D={type:MutationType.patchObject,payload:q,storeId:t,events:E});const F=O=Symbol();nextTick().then(()=>{O===F&&(x=!0)}),w=!0,triggerSubscriptions(_,D,n.state.value[t])}const A=s?function(){const{state:D}=r,F=D?D():{};this.$patch(re=>{assign$2(re,F)})}:noop$3;function z(){c.stop(),_=[],b=[],n._s.delete(t)}function G(q,D){return function(){setActivePinia(n);const F=Array.from(arguments),re=[],le=[];function fe(Te){re.push(Te)}function me(Te){le.push(Te)}triggerSubscriptions(b,{args:F,name:q,store:ne,after:fe,onError:me});let ye;try{ye=D.apply(this&&this.$id===t?this:ne,F)}catch(Te){throw triggerSubscriptions(le,Te),Te}return ye instanceof Promise?ye.then(Te=>(triggerSubscriptions(re,Te),Te)).catch(Te=>(triggerSubscriptions(le,Te),Promise.reject(Te))):(triggerSubscriptions(re,ye),ye)}}const V={_p:n,$id:t,$onAction:addSubscription.bind(null,b),$patch:N,$reset:A,$subscribe(q,D={}){const F=addSubscription(_,q,D.detached,()=>re()),re=c.run(()=>watch(()=>n.state.value[t],le=>{(D.flush==="sync"?w:x)&&q({storeId:t,type:MutationType.direct,events:E},le)},assign$2({},v,D)));return F},$dispose:z},ne=reactive(V);n._s.set(t,ne);const W=n._a&&n._a.runWithContext||fallbackRunWithContext,B=n._e.run(()=>(c=effectScope(),W(()=>c.run(e))));for(const q in B){const D=B[q];if(isRef(D)&&!isComputed(D)||isReactive(D))s||(I&&shouldHydrate(D)&&(isRef(D)?D.value=I[q]:mergeReactiveObjects(D,I[q])),n.state.value[t][q]=D);else if(typeof D=="function"){const F=G(q,D);B[q]=F,l.actions[q]=D}}return assign$2(ne,B),assign$2(toRaw(ne),B),Object.defineProperty(ne,"$state",{get:()=>n.state.value[t],set:q=>{N(D=>{assign$2(D,q)})}}),n._p.forEach(q=>{assign$2(ne,c.run(()=>q({store:ne,app:n._a,pinia:n,options:l})))}),I&&s&&r.hydrate&&r.hydrate(ne.$state,I),x=!0,w=!0,ne}function defineStore(t,e,r){let n,o;const s=typeof e=="function";typeof t=="string"?(n=t,o=s?r:e):(o=t,n=t.id);function c(l,v){const x=hasInjectionContext();return l=l||(x?inject$1(piniaSymbol,null):null),l&&setActivePinia(l),l=activePinia,l._s.has(n)||(s?createSetupStore(n,e,o,l):createOptionsStore(n,o,l)),l._s.get(n)}return c.$id=n,c}function storeToRefs(t){{t=toRaw(t);const e={};for(const r in t){const n=t[r];(isRef(n)||isReactive(n))&&(e[r]=toRef(t,r))}return e}}const isWindows=navigator.platform.toLowerCase().includes("win")||navigator.userAgent.includes("Windows");class KeyBindingManager{constructor(){tp(this,"keyBindingMap",new Map);tp(this,"id",0);tp(this,"isBound",!1);tp(this,"handAction",e=>Gr(this,null,function*(){let r=!1;const n={isRunCommand:MxFun.isRunningCommand(),event:e};for(const o of this.keyBindingMap.values())if(isWindows&&o.winKey?this.isKeyMatch(o.winKey,e)&&(!o.when||(yield o.when(n)))&&(r=!0):this.isKeyMatch(o.key,e)&&(!o.when||(yield o.when(n)))&&(r=!0),r){o.isNoPreventDefault||e.preventDefault();try{o.action(e)}catch(s){console.warn(s)}break}}));this.bindEvent()}register(e){const r=this.id;return this.keyBindingMap.set(r,e),this.id++,r}unregister(e){return this.keyBindingMap.delete(e)}registerWithHighPrior(e){const r=this.id,n=new Map;n.set(r,e);for(const[o,s]of this.keyBindingMap)n.set(o,s);return this.keyBindingMap=n,this.id++,r}bindEvent(){this.isBound||(this.isBound=!0,document.addEventListener("keydown",this.handAction))}isKeyMatch(e,r){if(Array.isArray(e))return e.some(l=>this.isKeyMatch(l,r));if(e.keyCode=="*")return!0;const{ctrlKey:n=!1,shiftKey:o=!1,altKey:s=!1,metaKey:c=!1}=e;return n==r.ctrlKey&&o==r.shiftKey&&s==r.altKey&&c==r.metaKey&&e.keyCode==r.code}}const keyBindingManager=new KeyBindingManager,defaultColor={color:"#fff",name:"#fff",index:-1,method:ColorMethod.kByColor,n:0},useColor$1=defineStore("color",()=>{const t=(v={})=>Pt(Pt({},defaultColor),v);let e=[];const r=computed(()=>e),n=ref([]),o=ref();watch(o,v=>{if(!!v){if(v.index!==-1||v.method===ColorMethod.kByACI)getDatabase().setCurrentlyColorIndex(v.index);else if(v.method===ColorMethod.kByColor){const{red:x,green:w,blue:_}=l(v),b=new McCmColor(x,w,_);b.method=ColorMethod.kByColor,getDatabase().setCurrentlyTrueColor(b)}}});const s=()=>{const v=createMxColor();v.method=ColorMethod.kByACI;const x=[];for(let _=1;_<257;_++){v.setColorIndex(_);const b=toRGBCss(v);x.push(t({color:b,index:_,name:getColorName(_)||b}))}e=x,n.value=[...e.slice(0,7),e[e.length-1]];const w=getDatabase().getCurrentlyColorIndex();o.value=n.value.find(({index:_})=>w===_)},c=v=>{const x=createMxColor(v),{colorIndex:w,method:_}=x,b=toRGBCss(x);return t({method:_,color:b,name:getColorName(w)||b})},l=v=>{const{method:x}=v,w=Color$1(v.color),_=w.red(),b=w.green(),E=w.blue();return{red:_,green:b,blue:E,method:x}};return{colorIndexList:r,colorSelectList:n,currentSelectColor:o,initColorIndexList:s,createColor:t,parseJSONColor:c,stringifyJSONColor:l}}),categoryToEntityPropMap=new Map;categoryToEntityPropMap.set("\u57FA\u7840",[]);const defineRightDrawerUIProp=t=>{var I;let E=t,{definePropRef:e,mxPropName:r,mcPropName:n,isShowTypes:o,isShow:s,valRef:c}=E,l=fd(E,["definePropRef","mxPropName","mcPropName","isShowTypes","isShow","valRef"]);const v=s||computed(()=>typeof o=="undefined"?!0:unref(o).some(O=>getIsType(O).value)),x=()=>console.warn("\u5C5E\u6027\u680F\u5206\u680F:"+l.categoryName+"\u4E2D\u540D\u4E3A"+l.label+"\u7684\u5C5E\u6027"+(typeof n=="string"?n:"")+"\u672A\u5B9A\u4E49, \u8BF7\u68C0\u67E5\u4EE3\u7801\uFF01");if(typeof l.order=="undefined"&&(l.order=100),l.vSelectProps||(l.vSelectProps={}),l.onEvents||(l.onEvents={}),unref(l.type)==="select"&&!unref(l.vSelectProps).items&&(unref(l.vSelectProps).items=ref([])),isRef(l.vSelectProps)?l.vSelectProps.value=Object.assign({bgColor:"background"},l.vSelectProps.value):l.vSelectProps=Object.assign({bgColor:"background"},l.vSelectProps),unref(l.categoryName)||(isRef(l.categoryName)?l.categoryName.value="\u57FA\u7840":l.categoryName="\u57FA\u7840"),!c){let{defaultVal:O,MxClass:N,McClass:A,everyMxcadFun:z,everyMxdrawFun:G,multipleCall:V,mxdrawGet:ne,mxcadGet:W,mxcadSet:B,mxdrawSet:q}=e||{};l.type==="select"&&(V||(V=()=>{typeof(isRef(l.vSelectProps.items)?l.vSelectProps.items.value:l.vSelectProps.items)[0]=="object"?c.value={[l.vSelectProps.itemTitle||"title"]:"*\u591A\u79CD*",[l.vSelectProps.itemValue||"value"]:void 0}:c.value="*\u591A\u79CD*"}));let D;if(l.type==="color"){const{colorSelectList:F}=storeToRefs(useColor$1()),{createColor:re}=useColor$1();D=l.vSelectProps.items&&l.vSelectProps.items.length>0?isRef(l.vSelectProps.items)?l.vSelectProps.items:ref(l.vSelectProps.items):ref([...unref(F)]),V||(V=()=>{c.value=re({name:"*\u591A\u79CD*"})}),W||(W=fe=>{const me=D.value.find(({index:ye})=>(fe==null?void 0:fe.colorIndex)===ye);if(me)c.value=me;else{const ye=fe[n||"trueColor"];if(!ye)return x();c.value=re({index:ye.colorIndex,name:ye.getColorString(),color:ye?toRGBCss(ye):void 0})}}),ne||(ne=fe=>{let me=fe[r];const ye=new THREE.Color(me);me=ye.getStyle();const Te=D.value.find(ke=>new THREE.Color(ke.color).equals(ye));Te?c.value=Te:c.value=re({name:me,color:me})}),!B&&n&&(B=(fe,me)=>{me||(me=c.value);const ye=Color$1(me.color),Te=createMxColor();me.method===ColorMethod$1.kByACI?Te.setColorIndex(me.index):Te.setRGB(ye.red(),ye.green(),ye.blue()),fe[n]=Te}),!q&&r&&(q=(fe,me)=>{me||(me=c.value),fe[r]=new THREE.Color(me.color),fe.setNeedUpdateDisplay(!0)})}if(!z&&n&&(z=(F,re)=>{if(n==="trueColor"){const le=F[n],fe=re[n];return le.method!==le.method?!1:le.method===ColorMethod$1.kByACI?le.colorIndex===fe.colorIndex:le.method===ColorMethod$1.kByColor?le.getColorValue()===fe.getColorValue():le.method===le.method}return F[n]===re[n]}),!G&&r&&(G=(F,re)=>r==="color"?F[r]&&F[r].equals&&F[r].equals(F[r]):F[r]===re[r]),ne||(ne=F=>{const re=F[r];c.value=re}),!q&&r&&(q=(F,re)=>{F[r]=re}),W||(W=F=>{const re=F[n];c.value=re}),!B&&n&&(B=(F,re)=>{F[n]=re}),V||(V=()=>{c.value="*\u591A\u79CD*"}),c=defineEntityProp(O||void 0,{MxClass:N,McClass:A,everyMxcadFun:z,everyMxdrawFun:G,multipleCall:V,mxcadFun(F,re){return W?W(F,re):O},mxdrawFun(F,re){return ne?ne(F,re):O}},{mxcadFun(F,re){B&&B(F,re)},mxdrawFun(F,re){q&&q(F,re)}}),l.type==="color"){const{createColor:F}=useColor$1();if(l.vSelectProps||(l.vSelectProps={}),typeof c.value=="string"){const le=new THREE.Color(c.value),fe=new McCmColor(le.r,le.g,le.b);c.value=F(fe)}const re=isRef(l.onColor)?l.onColor.value.bind({}):(I=l.onColor)==null?void 0:I.bind({});l.onColor=()=>{callCommand("Mx_Color",{call:(le,fe)=>{re&&re(le);const me=F(Pt({},countColorInfo(le,fe)));D.value.unshift(me),c.value=me},color:c.value})},l.vSelectProps=Object.assign({items:D,bgColor:"background",menuProps:{maxHeight:"600"},returnObject:!0,itemTitle:"name",itemValue:"color",class:"rounded"},l.vSelectProps)}}const w=Object.assign(l,{ref:c,isShowRef:v}),_=isRef(l.categoryName)?l.categoryName.value:l.categoryName,b=categoryToEntityPropMap.get(_);if(b)b.push(w);else{const O=[w];categoryToEntityPropMap.set(_,O)}return w},useDefineUIProp=()=>{const t=computed(()=>{const e=Array.from(categoryToEntityPropMap.keys()).filter(n=>{const o=categoryToEntityPropMap.get(n);return o?o.some(s=>s.isShowRef.value):!1}),r=e.indexOf("\u81EA\u5B9A\u4E49\u5C5E\u6027");if(r>=0){const n=e.splice(r,1)[0];e.push(n)}return e});return{defineRightDrawerUIProp,categoryNames:t,categoryToEntityPropMap}},defineCustomData=()=>defineRightDrawerUIProp({type:ref("input"),label:ref(""),disabled:ref(!1),valRef:ref(),getPoint:ref(),onColor:ref(),vSelectProps:{},inputProps:{},categoryName:ref("\u81EA\u5B9A\u4E49\u5C5E\u6027"),order:ref(),isShow:ref(!1)});let customDataList=Array.from({length:5},()=>defineCustomData());const setCustomDataListLength=t=>{if(t<0)return;let e=t-customDataList.length;if(e<=0){for(let r=0;r===e;r--)customDataList.pop();return}for(let r=0;r<e;e++)defineCustomData()},getCustomDataList=()=>customDataList;var IVarType=(t=>(t[t.Number=1]="Number",t[t.Doubel=2]="Doubel",t[t.String=3]="String",t))(IVarType||{});const cadNames={McDbLine:"\u76F4\u7EBF",McDbPolyline:"\u591A\u6BB5\u7EBF",McDbText:"\u5355\u884C\u6587\u5B57",McDbMText:"\u591A\u884C\u6587\u5B57",McDbCircle:"\u5706",McDbArc:"\u5706\u5F27",McDbEllipse:"\u692D\u5706",McDbPoint:"\u70B9",McDbHatch:"\u586B\u5145",McDbBlockReference:"\u56FE\u5757",McDbRasterImage:"\u56FE\u7247",McDbAlignedDimension:"\u5BF9\u9F50\u5C3A\u5BF8"},annotationNames={ns:"\u957F\u5EA6\u6D4B\u91CF",MxDbArea:"\u9762\u79EF\u6D4B\u91CF",MxDb2LineAngularDimension:"\u89D2\u5EA6\u6D4B\u91CF",MxDbCoord:"\u5750\u6807\u6D4B\u8BD5",MxDbLeadComment:"\u5F15\u7EBF\u6807\u6CE8",MxDbRectBoxLeadComment:"\u5BA1\u56FE\u6807\u6CE8",MxDbCloudLine:"\u4E91\u7EBF\u6279\u6CE8",MxDbShape:"\u5F62\u72B6\u6279\u6CE8"};let names=Object.assign({},cadNames,annotationNames);const useMcObject=t=>{const{type:e}=t;let r=t.getObjectName();return r=names[r]||r,{name:r,type:e,objId:t}},useSelect=t=>{const e=ref(t),r=ref(t[0]);return{selects:e,selectItem:r}},types=ref(["\u5168\u90E8","CAD\u56FE\u5F62","\u6279\u6CE8\u56FE\u5F62"]),type=ref("\u5168\u90E8"),isShowCADGraphics=computed(()=>type.value==="CAD\u56FE\u5F62"),isShowAnnotation=computed(()=>type.value==="\u6279\u6CE8\u56FE\u5F62"),isShowAll=computed(()=>type.value==="\u5168\u90E8"),{selects:allSelects,selectItem}=useSelect(["\u5168\u90E8"]);let selectsAllData={};const getData=t=>{const e=selectsAllData[allSelects.value[0]];if(!e)return{};const r=Object.keys(selectsAllData),n=r.shift();if(!n)return{};const o=Object.assign({},selectsAllData);delete o[n],r.forEach(c=>{const l=o[c][0].objId.getObjectName();typeof t!="undefined"&&(t?cadNames[l]||delete o[c]:annotationNames[l]||delete o[c])});const s=e.filter(({type:c})=>{if(typeof t=="undefined"||c===McObjectIdType.kMxCAD&&t||c===McObjectIdType.kMxDraw&&!t)return!0;if(c===McObjectIdType.kInvalid)return!1});return s.length>0&&(o["\u5168\u90E8("+s.length+")"]=s),o},selectAnnotationData=computed(()=>getData(!1)),selectCADGraphicsData=computed(()=>getData(!0)),selectsAnnotation=computed(()=>{const t=Object.keys(selectAnnotationData.value),e=t.pop();return e?(t.unshift(e),t):["\u65E0\u9009\u62E9"]}),selectsCADGraphics=computed(()=>{const t=Object.keys(selectCADGraphicsData.value),e=t.pop();return e?(t.unshift(e),t):["\u65E0\u9009\u62E9"]}),selectData=()=>isShowCADGraphics.value?selectCADGraphicsData.value:isShowAnnotation.value?selectAnnotationData.value:selectsAllData,getFirstSelectData=()=>selectData()[selectItem.value][0],isSelected=ref(!1),callNoSelect=()=>{isSelected.value=!1,allSelects.value=["\u65E0\u9009\u62E9"],selectItem.value="\u65E0\u9009\u62E9"};watch(isSelected,t=>{!t&&callNoSelect()});const selects=computed(()=>isShowCADGraphics.value?selectsCADGraphics.value:isShowAnnotation.value?selectsAnnotation.value:allSelects.value),isNotData=computed(()=>selects.value[0]==="\u65E0\u9009\u62E9"),isMultipleChoices=()=>selects.value.includes("\u5168\u90E8")&&selects.value.length>2,callEntityCallback=({type:t,objId:e},r,n,o)=>{const{MxClass:s,McClass:c}=o||{};if(t===McObjectIdType.kMxCAD){const l=e.getMcDbEntity();if(!l||c&&(Array.isArray(c)?c.every(v=>!(l instanceof v)):!(l instanceof c)))return;r.mxcadFun&&r.mxcadFun(l,n)}else{const l=e.getMxDbEntity();if(!l||s&&(Array.isArray(s)?s.every(v=>!(l instanceof v)):!(l instanceof s)))return;r.mxdrawFun&&r.mxdrawFun(l,n),l.setNeedUpdateDisplay()}},selectUpdateFun=(t,e,r)=>{isMultipleChoices()?selectsAllData[selects.value[0]].forEach(n=>{callEntityCallback(n,t,e,r)}):selectsAllData[selectItem.value].forEach(n=>{callEntityCallback(n,t,e,r)})},updateCalls=[];let isNoWatch=!1;const packFunNoWatch=t=>(...e)=>{isNoWatch=!0;const r=t(...e);return setTimeout(()=>{isNoWatch=!1}),r},defineEntityProp=(t,e,r)=>{const n=ref(t),o=e==null?void 0:e.McClass,s=e==null?void 0:e.MxClass;if(watch(n,(c,l)=>{isNoWatch||c!==l&&(r&&selectUpdateFun(r,c,{McClass:o,MxClass:s}),updateDisplay())}),e){let c=e;for(let l in c){const v=c[l];l!=="McClass"&&l!=="MxClass"&&typeof v=="function"&&(c[l]=packFunNoWatch(v))}updateCalls.push(e)}return n},updateCustomData=t=>{const e=[],r=t.map(({objId:c})=>(e.push(c),MxCpp.PropertiesWindow.getEntityProperties(c))),n=(c,l)=>{const v=[];for(let x=0;x<l.length;x++){const w=l[x];if(!w||w.length===0)return v;for(const _ of w){let b=v.find((E,I)=>E.props.iVarType!==_.iVarType||E.props.isOnlyRead!==_.isOnlyRead||E.props.sVarName!==_.sVarName?!1:(E.props.val!==_.val&&E.props.val!=="*\u591A\u79CD*"&&(E.props.val="*\u591A\u79CD*"),!0));b?b.ids.push(c[x]):v.push({props:_,ids:[c[x]]})}}return v.filter(({ids:x})=>x.length===c.length)},o=getCustomDataList(),s=n(e,r);o.forEach((c,l)=>{const v=s[l];if(!v||!v.props){c.isShowRef.value=!1,c.onEvents={};return}!c||((v.props.iVarType===IVarType.String||v.props.iVarType===IVarType.Number||v.props.iVarType===IVarType.Doubel)&&(isRef(c.type)&&(c.type.value="input"),c.onEvents={change(x){const w=x.target.value;v.ids.forEach(_=>{v.props.val=w,MxCpp.PropertiesWindow.setEntityProperties(_,v.props)})}}),isRef(c.label)&&(c.label.value=v.props.sVarName),c.ref.value=v.props.val,c.isShowRef.value=!0,isRef(c.disabled)&&(c.disabled.value=v.props.isOnlyRead))})},update=()=>{const t=selectsAllData[selectItem.value];if(!t)return;const e=t[0];!e||(updateCustomData(t),updateCalls.forEach(({mxcadFun:r,mxdrawFun:n,multipleCall:o,everyMxcadFun:s,everyMxdrawFun:c,McClass:l,MxClass:v})=>{requestIdleCallback(()=>{if(t.every(({type:w,objId:_},b)=>{if(w===McObjectIdType.kMxCAD){const E=_.getMcDbEntity();if(!E||l&&(Array.isArray(l)?l.every(I=>!(E instanceof I)):!(E instanceof l)))return!1;if(e.type===McObjectIdType.kMxCAD){const I=e.objId.getMcDbEntity();return I?s&&s(E,I,b):void 0}else if(e.type===McObjectIdType.kMxDraw)return!1}else if(w===McObjectIdType.kMxDraw){const E=_.getMxDbEntity();if(!E||v&&(Array.isArray(v)?v.every(I=>!(E instanceof I)):!(E instanceof v))||e.type===McObjectIdType.kMxCAD)return!1;if(e.type===McObjectIdType.kMxDraw){const I=e.objId.getMxDbEntity();return I?c&&c(E,I,b):void 0}}})||t.length<2){if(e.type===McObjectIdType.kMxCAD){const w=e.objId.getMcDbEntity();if(!w)return;if(l&&(Array.isArray(l)?l.every(_=>!(w instanceof _)):!(w instanceof l)))return!1;r&&r(w,void 0)}else if(e.type===McObjectIdType.kMxDraw){const w=e.objId.getMxDbEntity();if(!w)return;if(v&&(Array.isArray(v)?v.every(_=>!(w instanceof _)):!(w instanceof v)))return!1;n&&n(w,void 0)}}else o&&o()})}))};watch(type,()=>{selectItem.value=selects.value[0]});const name=computed(()=>{try{return selectItem.value.includes("\u5168\u90E8")?selects.value.length>2?"*\u591A\u79CD*":selects.value[1].replace(/ *\([^)]*\) */g,""):selectItem.value.replace(/ *\([^)]*\) */g,"")}catch(t){return"\u672A\u77E5"}}),getName=t=>t.split("(")[0],isTypeMap=new Map,getIsType=t=>{if(isTypeMap.has(t))return isTypeMap.get(t);{const e=computed(()=>{const r=getName(selectItem.value);try{return r===t||r==="\u5168\u90E8"&&selects.value.length<3&&selects.value[1].split("(")[0]===t}catch(n){return!1}});return isTypeMap.set(t,e),e}},isText=getIsType("\u5355\u884C\u6587\u5B57"),isMText=getIsType("\u591A\u884C\u6587\u5B57"),isLine=getIsType("\u76F4\u7EBF"),isPolyline=getIsType("\u591A\u6BB5\u7EBF"),isCircle=getIsType("\u5706"),isArc=getIsType("\u5706\u5F27"),isEllipse=getIsType("\u692D\u5706"),isBlock=getIsType("\u56FE\u5757"),isMxcad=computed(()=>typeName.value==="CAD"),isMxdraw=computed(()=>typeName.value==="\u6279\u6CE8"),isMxDbArea=getIsType("\u9762\u79EF\u6D4B\u91CF"),isMxDbLeadComment=getIsType("\u5F15\u7EBF\u6807\u6CE8"),typeName=defineEntityProp("",{everyMxcadFun(t,e){return t.getObjectID().type===e.getObjectID().type},multipleCall(){typeName.value="*\u591A\u79CD*"},mxcadFun(){typeName.value="CAD"},mxdrawFun(){typeName.value="\u6279\u6CE8"}}),isShape=defineEntityProp(!1,{everyMxcadFun(){return!1},everyMxdrawFun(t,e){return t instanceof MxDbShape==e instanceof MxDbShape},multipleCall(){isShape.value=!1},mxdrawFun(t){isShape.value=t instanceof MxDbShape}}),isCurve=defineEntityProp(!1,{everyMxdrawFun(){return!1},everyMxcadFun(t,e){return t instanceof McDbCurve==e instanceof McDbCurve},multipleCall(){isShape.value=!1},mxcadFun(t){isCurve.value=t instanceof McDbCurve}}),isShowEntityAttribute=ref(!1),initEntityAttribute=()=>{MxFun.on("mxcadApplicationCreatedMxCADObject",t=>{let e,r;t.mxcad.on("selectChange",o=>{if(!isShowEntityAttribute.value)if(o.length===1&&o[0].isValid()){const c=o[0].getMcDbEntity(),l=o[0].getMxDbEntity();if(e instanceof McDbEntity&&(c==null?void 0:c.getHandle())===e.getHandle()||e instanceof MxDbEntity&&e.guid()===(l==null?void 0:l.guid())){if(e instanceof McDbMText||e instanceof McDbText)return;e=null,clearTimeout(r),isShowEntityAttribute.value=!0}else if(c||l){e=c||l,r&&clearTimeout(r),r=setTimeout(()=>{e=null},300);return}else return}else return;if(o.length===0)return;isSelected.value=!0;const s=o.map(c=>useMcObject(c));allSelects.value=["\u5168\u90E8("+s.length+")"],selectsAllData={[selects.value[0]]:s};for(let c in names){const l=s.filter(v=>v.name===names[c]);if(l.length>0){const v=names[c]+`(${l.length})`;selects.value.push(v),selectsAllData[v]=l}}selectItem.value=selects.value[0],nextTick(()=>{update()})})})},useRightDrawer=()=>({types,type,isShowCADGraphics,isShowAnnotation,isShowAll,typeName,selectsAnnotation,selectsCADGraphics,isSelected,isNotData,isMxDbArea,isMxDbLeadComment,isShape,selects,selectItem,isMultipleChoices,callEntityCallback,selectUpdateFun,defineEntityProp,name,isText,isMText,isLine,isPolyline,isCircle,isArc,isEllipse,isBlock,isCurve,isMxcad,isMxdraw,update,packFunNoWatch,getFirstSelectData,getIsType,isShowEntityAttribute});keyBindingManager.register({key:{keyCode:"Delete"},when(t){var n,o;if(t.isRunCommand)return!1;const e=MxCADUtility.getCurrentSelect();return((n=document.activeElement)==null?void 0:n.tagName)!=="INPUT"&&((o=document.activeElement)==null?void 0:o.tagName)!=="TEXTAREA"&&e&&e.length>0&&e.some(s=>s.isValid())},action(){callCommand("Mx_Erase"),isShowEntityAttribute.value&&isSelected.value&&(isSelected.value=!1)}});const isNoInput=()=>{var t,e,r;return((t=document.activeElement)==null?void 0:t.tagName)!=="INPUT"&&((e=document.activeElement)==null?void 0:e.tagName)!=="TEXTAREA"&&((r=document.activeElement)==null?void 0:r.getAttribute("contenteditable"))!=="true"},getClipboardVal=()=>Gr(void 0,null,function*(){let t,e,r=[];try{const n=yield navigator.clipboard.read();for(const o of n)for(const s of o.types){const c=yield o.getType(s);s==="text/plain"&&(t=yield c.text()),s==="image/png"&&(e=URL.createObjectURL(c)),r.push({type:s,blob:c})}}catch(n){console.log(n)}return{text:t,imgUrl:e,blobs:r,isNoClipboardVal:r.length===0}});keyBindingManager.register({key:{keyCode:"KeyV",ctrlKey:!0},when(t){return Gr(this,null,function*(){return t.isRunCommand?!1:isNoInput()})},action(){callCommand("Mx_PasteClip")}});const onCopy=t=>{var r;const e=t.clipboardData||window.clipboardData;!e||(r=window.getSelection())!=null&&r.toString()||(t.preventDefault(),e.setData("text/plain",""))};document.addEventListener("copy",onCopy);document.addEventListener("cut",onCopy);keyBindingManager.register({key:{keyCode:"KeyC",ctrlKey:!0},when(t){return Gr(this,null,function*(){if(t.isRunCommand)return!1;const e=MxCADUtility.getCurrentSelect(),r=e.length>0&&e.some(o=>o.isValid()),{isNoClipboardVal:n}=yield getClipboardVal();return isNoInput()&&r&&n})},action(){callCommand("Mx_CopyClip")}});keyBindingManager.register({key:{keyCode:"KeyX",ctrlKey:!0},when(t){return Gr(this,null,function*(){if(t.isRunCommand)return!1;const e=MxCADUtility.getCurrentSelect(),r=e.length>0&&e.some(o=>o.isValid()),{isNoClipboardVal:n}=yield getClipboardVal();return isNoInput()&&r&&n})},action(){callCommand("Mx_CutClip")}});let aryId=[];addCommand("Mx_CopyClip",()=>Gr(void 0,null,function*(){let t=[];for(;t=MxCADUtility.getCurrentSelect(),!(t.length>0);){let e=new MxCADSelectionSet;if(!(yield e.userSelect(`
  4469. \u9009\u62E9\u590D\u5236\u5BF9\u8C61`))||(t=e.getIds(),t.length==0))return;break}t.length>0&&(aryId=t)}));addCommand("Mx_CutClip",()=>Gr(void 0,null,function*(){let t=[];for(;t=MxCADUtility.getCurrentSelect(),!(t.length>0);){let e=new MxCADSelectionSet;if(!(yield e.userSelect(`
  4470. \u9009\u62E9\u526A\u5207\u5BF9\u8C61`))||(t=e.getIds(),t.length==0))return;break}t.length>0&&(aryId=t,aryId.forEach(e=>{e.erase()}))}));addCommand("Mx_PasteClip",()=>Gr(void 0,null,function*(){const t=new MxCADUiPrPoint;let{text:e,imgUrl:r}=yield getClipboardVal();if(e){t.setMessage("\u6307\u5B9A\u63D2\u5165\u70B9"),t.clearLastInputPoint();const n=MxFun.viewCoordLong2Cad(16);let o=!1;/\r|\n/.test(e)&&(e=e.replaceAll(/\r|\n/g,"\\P"),o=!0);const s=l=>{if(o){const v=new McDbMText;return v.contents=e||"",v.textHeight=n,v.location=l,v.attachment=McDb.AttachmentPoint.kBottomLeft,v}else{const v=new McDbText;return v.textString=e||"",v.height=n,v.position=l,v.alignmentPoint=l,v}};t.setUserDraw((l,v)=>{v.drawMcDbEntity(s(l))});const c=yield t.go();if(!c)return;MxCpp.getCurrentMxCAD().drawEntity(s(c))}else if(r){const n=MxCpp.getCurrentMxCAD();n.loadImage(r,o=>Gr(void 0,null,function*(){if(!r||!o)return;t.clearLastInputPoint(),t.setMessage("\u6307\u5B9A\u63D2\u5165\u70B9"),t.setUserDraw((v,x)=>{const w=v.toVector3();x.drawRect(w,new THREE.Vector3(w.x+o.width,w.y+o.height))});const s=yield t.go();if(!s)return;let c=1,l=0;n.drawImage(s.x,s.y,o.width*c,o.height*c,l,r)}))}else if(aryId.length>0){t.clearLastInputPoint(),t.setMessage("\u6307\u5B9A\u63D2\u5165\u70B9");const{minPt:n,maxPt:o}=MxCADUtility.getMcDbEntitysBoundingBox(aryId)||{};if(!n||!o)return;t.setUserDraw((l,v)=>{aryId.forEach((x,w)=>{if(w>10)return;const _=x.clone();!_||(_.move(n,l),v.drawMcDbEntity(_))})});const s=yield t.go();if(!s)return;const c=MxCpp.getCurrentMxCAD();aryId.forEach(l=>{const v=l.clone();!v||(v.move(n,s),c.drawEntity(v))})}}));function useToggleScope(t,e){let r;function n(){r=effectScope(),r.run(()=>e.length?e(()=>{r==null||r.stop(),n()}):e())}watch(t,o=>{o&&!r?n():o||(r==null||r.stop(),r=void 0)},{immediate:!0}),onScopeDispose(()=>{r==null||r.stop()})}const IN_BROWSER=typeof window!="undefined",SUPPORTS_INTERSECTION=IN_BROWSER&&"IntersectionObserver"in window,SUPPORTS_TOUCH=IN_BROWSER&&("ontouchstart"in window||window.navigator.maxTouchPoints>0),SUPPORTS_EYE_DROPPER=IN_BROWSER&&"EyeDropper"in window;function _classPrivateFieldInitSpec(t,e,r){_checkPrivateRedeclaration(t,e),e.set(t,r)}function _checkPrivateRedeclaration(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _classPrivateFieldSet(t,e,r){var n=_classExtractFieldDescriptor(t,e,"set");return _classApplyDescriptorSet(t,n,r),r}function _classApplyDescriptorSet(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}function _classPrivateFieldGet(t,e){var r=_classExtractFieldDescriptor(t,e,"get");return _classApplyDescriptorGet(t,r)}function _classExtractFieldDescriptor(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function _classApplyDescriptorGet(t,e){return e.get?e.get.call(t):e.value}function getNestedValue(t,e,r){const n=e.length-1;if(n<0)return t===void 0?r:t;for(let o=0;o<n;o++){if(t==null)return r;t=t[e[o]]}return t==null||t[e[n]]===void 0?r:t[e[n]]}function deepEqual(t,e){if(t===e)return!0;if(t instanceof Date&&e instanceof Date&&t.getTime()!==e.getTime()||t!==Object(t)||e!==Object(e))return!1;const r=Object.keys(t);return r.length!==Object.keys(e).length?!1:r.every(n=>deepEqual(t[n],e[n]))}function getObjectValueByPath(t,e,r){return t==null||!e||typeof e!="string"?r:t[e]!==void 0?t[e]:(e=e.replace(/\[(\w+)\]/g,".$1"),e=e.replace(/^\./,""),getNestedValue(t,e.split("."),r))}function getPropertyFromItem(t,e,r){if(e===!0)return t===void 0?r:t;if(e==null||typeof e=="boolean")return r;if(t!==Object(t)){if(typeof e!="function")return r;const o=e(t,r);return typeof o=="undefined"?r:o}if(typeof e=="string")return getObjectValueByPath(t,e,r);if(Array.isArray(e))return getNestedValue(t,e,r);if(typeof e!="function")return r;const n=e(t,r);return typeof n=="undefined"?r:n}function createRange(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:t},(r,n)=>e+n)}function convertToUnit(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(!(t==null||t===""))return isNaN(+t)?String(t):isFinite(+t)?`${Number(t)}${e}`:void 0}function isObject$3(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function refElement(t){if(t&&"$el"in t){const e=t.$el;return(e==null?void 0:e.nodeType)===Node.TEXT_NODE?e.nextElementSibling:e}return t}const keyCodes=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16}),keyValues=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function keys(t){return Object.keys(t)}function has(t,e){return e.every(r=>t.hasOwnProperty(r))}function pick(t,e){const r={},n=new Set(Object.keys(t));for(const o of e)n.has(o)&&(r[o]=t[o]);return r}function pickWithRest(t,e,r){const n=Object.create(null),o=Object.create(null);for(const s in t)e.some(c=>c instanceof RegExp?c.test(s):c===s)&&!(r!=null&&r.some(c=>c===s))?n[s]=t[s]:o[s]=t[s];return[n,o]}function omit(t,e){const r=Pt({},t);return e.forEach(n=>delete r[n]),r}const onRE=/^on[^a-z]/,isOn=t=>onRE.test(t),bubblingEvents=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"],compositionIgnoreKeys=["ArrowUp","ArrowDown","ArrowRight","ArrowLeft","Enter","Escape","Tab"," "];function isComposingIgnoreKey(t){return t.isComposing&&compositionIgnoreKeys.includes(t.key)}function filterInputAttrs(t){const[e,r]=pickWithRest(t,[onRE]),n=omit(e,bubblingEvents),[o,s]=pickWithRest(r,["class","style","id",/^data-/]);return Object.assign(o,e),Object.assign(s,n),[o,s]}function wrapInArray(t){return t==null?[]:Array.isArray(t)?t:[t]}function debounce(t,e){let r=0;const n=function(){for(var o=arguments.length,s=new Array(o),c=0;c<o;c++)s[c]=arguments[c];clearTimeout(r),r=setTimeout(()=>t(...s),unref(e))};return n.clear=()=>{clearTimeout(r)},n.immediate=t,n}function clamp(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(e,Math.min(r,t))}function getDecimals(t){const e=t.toString().trim();return e.includes(".")?e.length-e.indexOf(".")-1:0}function padEnd(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return t+r.repeat(Math.max(0,e-t.length))}function padStart(t,e){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,e-t.length))+t}function chunk(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const r=[];let n=0;for(;n<t.length;)r.push(t.substr(n,e)),n+=e;return r}function mergeDeep(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;const n={};for(const o in t)n[o]=t[o];for(const o in e){const s=t[o],c=e[o];if(isObject$3(s)&&isObject$3(c)){n[o]=mergeDeep(s,c,r);continue}if(Array.isArray(s)&&Array.isArray(c)&&r){n[o]=r(s,c);continue}n[o]=c}return n}function flattenFragments(t){return t.map(e=>e.type===Fragment?flattenFragments(e.children):e).flat()}function toKebabCase(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(toKebabCase.cache.has(t))return toKebabCase.cache.get(t);const e=t.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return toKebabCase.cache.set(t,e),e}toKebabCase.cache=new Map;function findChildrenWithProvide(t,e){if(!e||typeof e!="object")return[];if(Array.isArray(e))return e.map(r=>findChildrenWithProvide(t,r)).flat(1);if(Array.isArray(e.children))return e.children.map(r=>findChildrenWithProvide(t,r)).flat(1);if(e.component){if(Object.getOwnPropertySymbols(e.component.provides).includes(t))return[e.component];if(e.component.subTree)return findChildrenWithProvide(t,e.component.subTree).flat(1)}return[]}var _arr=new WeakMap,_pointer=new WeakMap;class CircularBuffer{constructor(e){_classPrivateFieldInitSpec(this,_arr,{writable:!0,value:[]}),_classPrivateFieldInitSpec(this,_pointer,{writable:!0,value:0}),this.size=e}push(e){_classPrivateFieldGet(this,_arr)[_classPrivateFieldGet(this,_pointer)]=e,_classPrivateFieldSet(this,_pointer,(_classPrivateFieldGet(this,_pointer)+1)%this.size)}values(){return _classPrivateFieldGet(this,_arr).slice(_classPrivateFieldGet(this,_pointer)).concat(_classPrivateFieldGet(this,_arr).slice(0,_classPrivateFieldGet(this,_pointer)))}}function getEventCoordinates(t){return"touches"in t?{clientX:t.touches[0].clientX,clientY:t.touches[0].clientY}:{clientX:t.clientX,clientY:t.clientY}}function destructComputed(t){const e=reactive({}),r=computed(t);return watchEffect(()=>{for(const n in r.value)e[n]=r.value[n]},{flush:"sync"}),toRefs(e)}function includes(t,e){return t.includes(e)}function eventName(t){return t[2].toLowerCase()+t.slice(3)}const EventProp=()=>[Function,Array];function hasEvent(t,e){return e="on"+capitalize$1(e),!!(t[e]||t[`${e}Once`]||t[`${e}Capture`]||t[`${e}OnceCapture`]||t[`${e}CaptureOnce`])}function callEvent(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(Array.isArray(t))for(const o of t)o(...r);else typeof t=="function"&&t(...r)}function focusableChildren(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const r=["button","[href]",'input:not([type="hidden"])',"select","textarea","[tabindex]"].map(n=>`${n}${e?':not([tabindex="-1"])':""}:not([disabled])`).join(", ");return[...t.querySelectorAll(r)]}function getNextElement(t,e,r){var c;let n,o=t.indexOf(document.activeElement);const s=e==="next"?1:-1;do o+=s,n=t[o];while((!n||n.offsetParent==null||!((c=r==null?void 0:r(n))==null||c))&&o<t.length&&o>=0);return n}function focusChild(t,e){var n,o,s,c;const r=focusableChildren(t);if(!e)(t===document.activeElement||!t.contains(document.activeElement))&&((n=r[0])==null||n.focus());else if(e==="first")(o=r[0])==null||o.focus();else if(e==="last")(s=r.at(-1))==null||s.focus();else if(typeof e=="number")(c=r[e])==null||c.focus();else{const l=getNextElement(r,e);l?l.focus():focusChild(t,e==="next"?"first":"last")}}function noop$2(){}function matchesSelector(t,e){if(!(IN_BROWSER&&typeof CSS!="undefined"&&typeof CSS.supports!="undefined"&&CSS.supports(`selector(${e})`)))return null;try{return!!t&&t.matches(e)}catch(n){return null}}function ensureValidVNode(t){return t.some(e=>isVNode$1(e)?e.type===Comment?!1:e.type!==Fragment||ensureValidVNode(e.children):!0)?t:null}function defer(t,e){if(!IN_BROWSER||t===0)return e(),()=>{};const r=window.setTimeout(e,t);return()=>window.clearTimeout(r)}function isClickInsideElement(t,e){const r=t.clientX,n=t.clientY,o=e.getBoundingClientRect(),s=o.left,c=o.top,l=o.right,v=o.bottom;return r>=s&&r<=l&&n>=c&&n<=v}const block=["top","bottom"],inline=["start","end","left","right"];function parseAnchor(t,e){let[r,n]=t.split(" ");return n||(n=includes(block,r)?"start":includes(inline,r)?"top":"center"),{side:toPhysical(r,e),align:toPhysical(n,e)}}function toPhysical(t,e){return t==="start"?e?"right":"left":t==="end"?e?"left":"right":t}function flipSide(t){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[t.side],align:t.align}}function flipAlign(t){return{side:t.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[t.align]}}function flipCorner(t){return{side:t.align,align:t.side}}function getAxis(t){return includes(block,t.side)?"y":"x"}class Box{constructor(e){let{x:r,y:n,width:o,height:s}=e;this.x=r,this.y=n,this.width=o,this.height=s}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function getOverflow(t,e){return{x:{before:Math.max(0,e.left-t.left),after:Math.max(0,t.right-e.right)},y:{before:Math.max(0,e.top-t.top),after:Math.max(0,t.bottom-e.bottom)}}}function getTargetBox(t){return Array.isArray(t)?new Box({x:t[0],y:t[1],width:0,height:0}):t.getBoundingClientRect()}function nullifyTransforms(t){const e=t.getBoundingClientRect(),r=getComputedStyle(t),n=r.transform;if(n){let o,s,c,l,v;if(n.startsWith("matrix3d("))o=n.slice(9,-1).split(/, /),s=+o[0],c=+o[5],l=+o[12],v=+o[13];else if(n.startsWith("matrix("))o=n.slice(7,-1).split(/, /),s=+o[0],c=+o[3],l=+o[4],v=+o[5];else return new Box(e);const x=r.transformOrigin,w=e.x-l-(1-s)*parseFloat(x),_=e.y-v-(1-c)*parseFloat(x.slice(x.indexOf(" ")+1)),b=s?e.width/s:t.offsetWidth+1,E=c?e.height/c:t.offsetHeight+1;return new Box({x:w,y:_,width:b,height:E})}else return new Box(e)}function animate(t,e,r){if(typeof t.animate=="undefined")return{finished:Promise.resolve()};let n;try{n=t.animate(e,r)}catch(o){return{finished:Promise.resolve()}}return typeof n.finished=="undefined"&&(n.finished=new Promise(o=>{n.onfinish=()=>{o(n)}})),n}const handlers$1=new WeakMap;function bindProps(t,e){Object.keys(e).forEach(r=>{if(isOn(r)){const n=eventName(r),o=handlers$1.get(t);if(e[r]==null)o==null||o.forEach(s=>{const[c,l]=s;c===n&&(t.removeEventListener(n,l),o.delete(s))});else if(!o||![...o].some(s=>s[0]===n&&s[1]===e[r])){t.addEventListener(n,e[r]);const s=o||new Set;s.add([n,e[r]]),handlers$1.has(t)||handlers$1.set(t,s)}}else e[r]==null?t.removeAttribute(r):t.setAttribute(r,e[r])})}function unbindProps(t,e){Object.keys(e).forEach(r=>{if(isOn(r)){const n=eventName(r),o=handlers$1.get(t);o==null||o.forEach(s=>{const[c,l]=s;c===n&&(t.removeEventListener(n,l),o.delete(s))})}else t.removeAttribute(r)})}const mainTRC=2.4,Rco=.2126729,Gco=.7151522,Bco=.072175,normBG=.55,normTXT=.58,revTXT=.57,revBG=.62,blkThrs=.03,blkClmp=1.45,deltaYmin=5e-4,scaleBoW=1.25,scaleWoB=1.25,loConThresh=.078,loConFactor=12.82051282051282,loConOffset=.06,loClip=.001;function APCAcontrast(t,e){const r=Ka(t.r/255,mainTRC),n=Ka(t.g/255,mainTRC),o=Ka(t.b/255,mainTRC),s=Ka(e.r/255,mainTRC),c=Ka(e.g/255,mainTRC),l=Ka(e.b/255,mainTRC);let v=r*Rco+n*Gco+o*Bco,x=s*Rco+c*Gco+l*Bco;if(v<=blkThrs&&(v+=Ka(blkThrs-v,blkClmp)),x<=blkThrs&&(x+=Ka(blkThrs-x,blkClmp)),Math.abs(x-v)<deltaYmin)return 0;let w;if(x>v){const _=(Ka(x,normBG)-Ka(v,normTXT))*scaleBoW;w=_<loClip?0:_<loConThresh?_-_*loConFactor*loConOffset:_-loConOffset}else{const _=(Ka(x,revBG)-Ka(v,revTXT))*scaleWoB;w=_>-loClip?0:_>-loConThresh?_-_*loConFactor*loConOffset:_+loConOffset}return w*100}function consoleWarn(t){}function deprecate(t,e){e=Array.isArray(e)?e.slice(0,-1).map(r=>`'${r}'`).join(", ")+` or '${e.at(-1)}'`:`'${e}'`}const delta=.20689655172413793,cielabForwardTransform=t=>t>Ka(delta,3)?Math.cbrt(t):t/(3*Ka(delta,2))+4/29,cielabReverseTransform=t=>t>delta?Ka(t,3):3*Ka(delta,2)*(t-4/29);function fromXYZ$1(t){const e=cielabForwardTransform,r=e(t[1]);return[116*r-16,500*(e(t[0]/.95047)-r),200*(r-e(t[2]/1.08883))]}function toXYZ$1(t){const e=cielabReverseTransform,r=(t[0]+16)/116;return[e(r+t[1]/500)*.95047,e(r),e(r-t[2]/200)*1.08883]}const srgbForwardMatrix=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],srgbForwardTransform=t=>t<=.0031308?t*12.92:1.055*Ka(t,1/2.4)-.055,srgbReverseMatrix=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],srgbReverseTransform=t=>t<=.04045?t/12.92:Ka((t+.055)/1.055,2.4);function fromXYZ(t){const e=Array(3),r=srgbForwardTransform,n=srgbForwardMatrix;for(let o=0;o<3;++o)e[o]=Math.round(clamp(r(n[o][0]*t[0]+n[o][1]*t[1]+n[o][2]*t[2]))*255);return{r:e[0],g:e[1],b:e[2]}}function toXYZ(t){let{r:e,g:r,b:n}=t;const o=[0,0,0],s=srgbReverseTransform,c=srgbReverseMatrix;e=s(e/255),r=s(r/255),n=s(n/255);for(let l=0;l<3;++l)o[l]=c[l][0]*e+c[l][1]*r+c[l][2]*n;return o}function isCssColor(t){return!!t&&/^(#|var\(--|(rgb|hsl)a?\()/.test(t)}function isParsableColor(t){return isCssColor(t)&&!/^((rgb|hsl)a?\()?var\(--/.test(t)}const cssColorRe=new RegExp("^(?<fn>(?:rgb|hsl)a?)\\((?<values>.+)\\)"),mappers={rgb:(t,e,r,n)=>({r:t,g:e,b:r,a:n}),rgba:(t,e,r,n)=>({r:t,g:e,b:r,a:n}),hsl:(t,e,r,n)=>HSLtoRGB({h:t,s:e,l:r,a:n}),hsla:(t,e,r,n)=>HSLtoRGB({h:t,s:e,l:r,a:n}),hsv:(t,e,r,n)=>HSVtoRGB({h:t,s:e,v:r,a:n}),hsva:(t,e,r,n)=>HSVtoRGB({h:t,s:e,v:r,a:n})};function parseColor(t){if(typeof t=="number")return{r:(t&16711680)>>16,g:(t&65280)>>8,b:t&255};if(typeof t=="string"&&cssColorRe.test(t)){const{groups:e}=t.match(cssColorRe),{fn:r,values:n}=e,o=n.split(/,\s*/).map(s=>s.endsWith("%")&&["hsl","hsla","hsv","hsva"].includes(r)?parseFloat(s)/100:parseFloat(s));return mappers[r](...o)}else if(typeof t=="string"){let e=t.startsWith("#")?t.slice(1):t;return[3,4].includes(e.length)?e=e.split("").map(r=>r+r).join(""):[6,8].includes(e.length),HexToRGB(e)}else if(typeof t=="object"){if(has(t,["r","g","b"]))return t;if(has(t,["h","s","l"]))return HSVtoRGB(HSLtoHSV(t));if(has(t,["h","s","v"]))return HSVtoRGB(t)}throw new TypeError(`Invalid color: ${t==null?t:String(t)||t.constructor.name}
  4471. Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function HSVtoRGB(t){const{h:e,s:r,v:n,a:o}=t,s=l=>{const v=(l+e/60)%6;return n-n*r*Math.max(Math.min(v,4-v,1),0)},c=[s(5),s(3),s(1)].map(l=>Math.round(l*255));return{r:c[0],g:c[1],b:c[2],a:o}}function HSLtoRGB(t){return HSVtoRGB(HSLtoHSV(t))}function RGBtoHSV(t){if(!t)return{h:0,s:1,v:1,a:1};const e=t.r/255,r=t.g/255,n=t.b/255,o=Math.max(e,r,n),s=Math.min(e,r,n);let c=0;o!==s&&(o===e?c=60*(0+(r-n)/(o-s)):o===r?c=60*(2+(n-e)/(o-s)):o===n&&(c=60*(4+(e-r)/(o-s)))),c<0&&(c=c+360);const l=o===0?0:(o-s)/o,v=[c,l,o];return{h:v[0],s:v[1],v:v[2],a:t.a}}function HSVtoHSL(t){const{h:e,s:r,v:n,a:o}=t,s=n-n*r/2,c=s===1||s===0?0:(n-s)/Math.min(s,1-s);return{h:e,s:c,l:s,a:o}}function HSLtoHSV(t){const{h:e,s:r,l:n,a:o}=t,s=n+r*Math.min(n,1-n),c=s===0?0:2-2*n/s;return{h:e,s:c,v:s,a:o}}function RGBtoCSS(t){let{r:e,g:r,b:n,a:o}=t;return o===void 0?`rgb(${e}, ${r}, ${n})`:`rgba(${e}, ${r}, ${n}, ${o})`}function HSVtoCSS(t){return RGBtoCSS(HSVtoRGB(t))}function toHex(t){const e=Math.round(t).toString(16);return("00".substr(0,2-e.length)+e).toUpperCase()}function RGBtoHex(t){let{r:e,g:r,b:n,a:o}=t;return`#${[toHex(e),toHex(r),toHex(n),o!==void 0?toHex(Math.round(o*255)):""].join("")}`}function HexToRGB(t){t=parseHex(t);let[e,r,n,o]=chunk(t,2).map(s=>parseInt(s,16));return o=o===void 0?o:o/255,{r:e,g:r,b:n,a:o}}function HexToHSV(t){const e=HexToRGB(t);return RGBtoHSV(e)}function HSVtoHex(t){return RGBtoHex(HSVtoRGB(t))}function parseHex(t){return t.startsWith("#")&&(t=t.slice(1)),t=t.replace(/([^0-9a-f])/gi,"F"),(t.length===3||t.length===4)&&(t=t.split("").map(e=>e+e).join("")),t.length!==6&&(t=padEnd(padEnd(t,6),8,"F")),t}function lighten(t,e){const r=fromXYZ$1(toXYZ(t));return r[0]=r[0]+e*10,fromXYZ(toXYZ$1(r))}function darken(t,e){const r=fromXYZ$1(toXYZ(t));return r[0]=r[0]-e*10,fromXYZ(toXYZ$1(r))}function getLuma(t){const e=parseColor(t);return toXYZ(e)[1]}function getContrast(t,e){const r=getLuma(t),n=getLuma(e),o=Math.max(r,n),s=Math.min(r,n);return(o+.05)/(s+.05)}function getForeground(t){const e=Math.abs(APCAcontrast(parseColor(0),parseColor(t)));return Math.abs(APCAcontrast(parseColor(16777215),parseColor(t)))>Math.min(e,50)?"#fff":"#000"}function propsFactory$1(t,e){return r=>Object.keys(t).reduce((n,o)=>{const c=typeof t[o]=="object"&&t[o]!=null&&!Array.isArray(t[o])?t[o]:{type:t[o]};return r&&o in r?n[o]=ei(Pt({},c),{default:r[o]}):n[o]=c,e&&!n[o].source&&(n[o].source=e),n},{})}const makeComponentProps=propsFactory$1({class:[String,Array],style:{type:[String,Array,Object],default:null}},"component"),DefaultsSymbol=Symbol.for("vuetify:defaults");function createDefaults(t){return ref(t)}function injectDefaults(){const t=inject$1(DefaultsSymbol);if(!t)throw new Error("[Vuetify] Could not find defaults instance");return t}function provideDefaults(t,e){const r=injectDefaults(),n=ref(t),o=computed(()=>{if(unref(e==null?void 0:e.disabled))return r.value;const c=unref(e==null?void 0:e.scoped),l=unref(e==null?void 0:e.reset),v=unref(e==null?void 0:e.root);if(n.value==null&&!(c||l||v))return r.value;let x=mergeDeep(n.value,{prev:r.value});if(c)return x;if(l||v){const w=Number(l||1/0);for(let _=0;_<=w&&!(!x||!("prev"in x));_++)x=x.prev;return x&&typeof v=="string"&&v in x&&(x=mergeDeep(mergeDeep(x,{prev:x}),x[v])),x}return x.prev?mergeDeep(x.prev,x):x});return provide(DefaultsSymbol,o),o}function propIsDefined(t,e){var r,n;return typeof((r=t.props)==null?void 0:r[e])!="undefined"||typeof((n=t.props)==null?void 0:n[toKebabCase(e)])!="undefined"}function internalUseDefaults(){var v;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:injectDefaults();const n=getCurrentInstance("useDefaults");if(e=(v=e!=null?e:n.type.name)!=null?v:n.type.__name,!e)throw new Error("[Vuetify] Could not determine component name");const o=computed(()=>{var x,w;return(w=r.value)==null?void 0:w[(x=t._as)!=null?x:e]}),s=new Proxy(t,{get(x,w){var b,E,I,O,N,A;const _=Reflect.get(x,w);return w==="class"||w==="style"?[(b=o.value)==null?void 0:b[w],_].filter(z=>z!=null):typeof w=="string"&&!propIsDefined(n.vnode,w)&&(A=(N=(E=o.value)==null?void 0:E[w])!=null?N:(O=(I=r.value)==null?void 0:I.global)==null?void 0:O[w])!=null?A:_}}),c=shallowRef();watchEffect(()=>{if(o.value){const x=Object.entries(o.value).filter(w=>{let[_]=w;return _.startsWith(_[0].toUpperCase())});c.value=x.length?Object.fromEntries(x):void 0}else c.value=void 0});function l(){const x=injectSelf(DefaultsSymbol,n);provide(DefaultsSymbol,computed(()=>{var w;return c.value?mergeDeep((w=x==null?void 0:x.value)!=null?w:{},c.value):x==null?void 0:x.value}))}return{props:s,provideSubDefaults:l}}function defineComponent(t){var e,r;if(t._setup=(e=t._setup)!=null?e:t.setup,!t.name)return t;if(t._setup){t.props=propsFactory$1((r=t.props)!=null?r:{},t.name)();const n=Object.keys(t.props).filter(o=>o!=="class"&&o!=="style");t.filterProps=function(s){return pick(s,n)},t.props._as=String,t.setup=function(s,c){var _;const l=injectDefaults();if(!l.value)return t._setup(s,c);const{props:v,provideSubDefaults:x}=internalUseDefaults(s,(_=s._as)!=null?_:t.name,l),w=t._setup(v,c);return x(),w}}return t}function genericComponent(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return e=>(t?defineComponent:defineComponent$1)(e)}function createSimpleFunctional(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",r=arguments.length>2?arguments[2]:void 0;return genericComponent()({name:r!=null?r:capitalize$1(camelize(t.replace(/__/g,"-"))),props:Pt({tag:{type:String,default:e}},makeComponentProps()),setup(n,o){let{slots:s}=o;return()=>{var c;return h(n.tag,{class:[t,n.class],style:n.style},(c=s.default)==null?void 0:c.call(s))}}})}function attachedRoot(t){if(typeof t.getRootNode!="function"){for(;t.parentNode;)t=t.parentNode;return t!==document?null:document}const e=t.getRootNode();return e!==document&&e.getRootNode({composed:!0})!==document?null:e}const standardEasing="cubic-bezier(0.4, 0, 0.2, 1)",deceleratedEasing="cubic-bezier(0.0, 0, 0.2, 1)",acceleratedEasing="cubic-bezier(0.4, 0, 1, 1)";function getCurrentInstance(t,e){const r=getCurrentInstance$1();if(!r)throw new Error(`[Vuetify] ${t} ${e||"must be called from inside a setup function"}`);return r}function getCurrentInstanceName(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const e=getCurrentInstance(t).type;return toKebabCase((e==null?void 0:e.aliasName)||(e==null?void 0:e.name))}let _uid=0,_map=new WeakMap;function getUid(){const t=getCurrentInstance("getUid");if(_map.has(t))return _map.get(t);{const e=_uid++;return _map.set(t,e),e}}getUid.reset=()=>{_uid=0,_map=new WeakMap};function getScrollParent(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;t;){if(e?isPotentiallyScrollable(t):hasScrollbar(t))return t;t=t.parentElement}return document.scrollingElement}function getScrollParents(t,e){const r=[];if(e&&t&&!e.contains(t))return r;for(;t&&(hasScrollbar(t)&&r.push(t),t!==e);)t=t.parentElement;return r}function hasScrollbar(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;const e=window.getComputedStyle(t);return e.overflowY==="scroll"||e.overflowY==="auto"&&t.scrollHeight>t.clientHeight}function isPotentiallyScrollable(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;const e=window.getComputedStyle(t);return["scroll","auto"].includes(e.overflowY)}function injectSelf(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:getCurrentInstance("injectSelf");const{provides:r}=e;if(r&&t in r)return r[t]}function isFixedPosition(t){for(;t;){if(window.getComputedStyle(t).position==="fixed")return!0;t=t.offsetParent}return!1}function useRender(t){const e=getCurrentInstance("useRender");e.render=t}function useProxiedModel(t,e,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:_=>_,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:_=>_;const s=getCurrentInstance("useProxiedModel"),c=ref(t[e]!==void 0?t[e]:r),l=toKebabCase(e),x=computed(l!==e?()=>{var _,b,E,I;return t[e],!!((((_=s.vnode.props)==null?void 0:_.hasOwnProperty(e))||((b=s.vnode.props)==null?void 0:b.hasOwnProperty(l)))&&(((E=s.vnode.props)==null?void 0:E.hasOwnProperty(`onUpdate:${e}`))||((I=s.vnode.props)==null?void 0:I.hasOwnProperty(`onUpdate:${l}`))))}:()=>{var _,b;return t[e],!!(((_=s.vnode.props)==null?void 0:_.hasOwnProperty(e))&&((b=s.vnode.props)==null?void 0:b.hasOwnProperty(`onUpdate:${e}`)))});useToggleScope(()=>!x.value,()=>{watch(()=>t[e],_=>{c.value=_})});const w=computed({get(){const _=t[e];return n(x.value?_:c.value)},set(_){const b=o(_),E=toRaw(x.value?t[e]:c.value);E===b||n(E)===_||(c.value=b,s==null||s.emit(`update:${e}`,b))}});return Object.defineProperty(w,"externalValue",{get:()=>x.value?t[e]:c.value}),w}const en={badge:"Badge",open:"Open",close:"Close",confirmEdit:{ok:"OK",cancel:"Cancel"},dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},dateRangeInput:{divider:"to"},datePicker:{itemsSelected:"{0} selected",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"}},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more",today:"Today"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},timePicker:{am:"AM",pm:"PM"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"}},LANG_PREFIX="$vuetify.",replace=(t,e)=>t.replace(/\{(\d+)\}/g,(r,n)=>String(e[+n])),createTranslateFunction=(t,e,r)=>function(n){for(var o=arguments.length,s=new Array(o>1?o-1:0),c=1;c<o;c++)s[c-1]=arguments[c];if(!n.startsWith(LANG_PREFIX))return replace(n,s);const l=n.replace(LANG_PREFIX,""),v=t.value&&r.value[t.value],x=e.value&&r.value[e.value];let w=getObjectValueByPath(v,l,null);return w||(`${n}${t.value}`,w=getObjectValueByPath(x,l,null)),w||(w=n),typeof w!="string"&&(w=n),replace(w,s)};function createNumberFunction(t,e){return(r,n)=>new Intl.NumberFormat([t.value,e.value],n).format(r)}function useProvided$1(t,e,r){var o,s;const n=useProxiedModel(t,e,(o=t[e])!=null?o:r.value);return n.value=(s=t[e])!=null?s:r.value,watch(r,c=>{t[e]==null&&(n.value=r.value)}),n}function createProvideFunction$1(t){return e=>{const r=useProvided$1(e,"locale",t.current),n=useProvided$1(e,"fallback",t.fallback),o=useProvided$1(e,"messages",t.messages);return{name:"vuetify",current:r,fallback:n,messages:o,t:createTranslateFunction(r,n,o),n:createNumberFunction(r,n),provide:createProvideFunction$1({current:r,fallback:n,messages:o})}}}function createVuetifyAdapter(t){var o,s;const e=shallowRef((o=t==null?void 0:t.locale)!=null?o:"en"),r=shallowRef((s=t==null?void 0:t.fallback)!=null?s:"en"),n=ref(Pt({en},t==null?void 0:t.messages));return{name:"vuetify",current:e,fallback:r,messages:n,t:createTranslateFunction(e,r,n),n:createNumberFunction(e,r),provide:createProvideFunction$1({current:e,fallback:r,messages:n})}}const LocaleSymbol=Symbol.for("vuetify:locale");function isLocaleInstance(t){return t.name!=null}function createLocale(t){const e=(t==null?void 0:t.adapter)&&isLocaleInstance(t==null?void 0:t.adapter)?t==null?void 0:t.adapter:createVuetifyAdapter(t),r=createRtl(e,t);return Pt(Pt({},e),r)}function useLocale(){const t=inject$1(LocaleSymbol);if(!t)throw new Error("[Vuetify] Could not find injected locale instance");return t}function genDefaults$3(){return{af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,km:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1}}function createRtl(t,e){var o;const r=ref((o=e==null?void 0:e.rtl)!=null?o:genDefaults$3()),n=computed(()=>{var s;return(s=r.value[t.current.value])!=null?s:!1});return{isRtl:n,rtl:r,rtlClasses:computed(()=>`v-locale--is-${n.value?"rtl":"ltr"}`)}}function useRtl(){const t=inject$1(LocaleSymbol);if(!t)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:t.isRtl,rtlClasses:t.rtlClasses}}const firstDay={"001":1,AD:1,AE:6,AF:6,AG:0,AI:1,AL:1,AM:1,AN:1,AR:1,AS:0,AT:1,AU:1,AX:1,AZ:1,BA:1,BD:0,BE:1,BG:1,BH:6,BM:1,BN:1,BR:0,BS:0,BT:0,BW:0,BY:1,BZ:0,CA:0,CH:1,CL:1,CM:1,CN:1,CO:0,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DM:0,DO:0,DZ:6,EC:1,EE:1,EG:6,ES:1,ET:0,FI:1,FJ:1,FO:1,FR:1,GB:1,"GB-alt-variant":0,GE:1,GF:1,GP:1,GR:1,GT:0,GU:0,HK:0,HN:0,HR:1,HU:1,ID:0,IE:1,IL:0,IN:0,IQ:6,IR:6,IS:1,IT:1,JM:0,JO:6,JP:0,KE:0,KG:1,KH:0,KR:0,KW:6,KZ:1,LA:0,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MH:0,MK:1,MM:0,MN:1,MO:0,MQ:1,MT:0,MV:5,MX:0,MY:1,MZ:0,NI:0,NL:1,NO:1,NP:0,NZ:1,OM:6,PA:0,PE:0,PH:0,PK:0,PL:1,PR:0,PT:0,PY:0,QA:6,RE:1,RO:1,RS:1,RU:1,SA:0,SD:6,SE:1,SG:0,SI:1,SK:1,SM:1,SV:0,SY:6,TH:0,TJ:1,TM:1,TR:1,TT:0,TW:0,UA:1,UM:0,US:0,UY:1,UZ:1,VA:1,VE:0,VI:0,VN:1,WS:0,XK:1,YE:0,ZA:0,ZW:0};function getWeekArray(t,e){const r=[];let n=[];const o=startOfMonth(t),s=endOfMonth(t),c=(o.getDay()-firstDay[e.slice(-2).toUpperCase()]+7)%7,l=(s.getDay()-firstDay[e.slice(-2).toUpperCase()]+7)%7;for(let v=0;v<c;v++){const x=new Date(o);x.setDate(x.getDate()-(c-v)),n.push(x)}for(let v=1;v<=s.getDate();v++){const x=new Date(t.getFullYear(),t.getMonth(),v);n.push(x),n.length===7&&(r.push(n),n=[])}for(let v=1;v<7-l;v++){const x=new Date(s);x.setDate(x.getDate()+v),n.push(x)}return n.length>0&&r.push(n),r}function startOfWeek(t){const e=new Date(t);for(;e.getDay()!==0;)e.setDate(e.getDate()-1);return e}function endOfWeek(t){const e=new Date(t);for(;e.getDay()!==6;)e.setDate(e.getDate()+1);return e}function startOfMonth(t){return new Date(t.getFullYear(),t.getMonth(),1)}function endOfMonth(t){return new Date(t.getFullYear(),t.getMonth()+1,0)}function parseLocalDate(t){const e=t.split("-").map(Number);return new Date(e[0],e[1]-1,e[2])}const _YYYMMDD=/^([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))$/;function date(t){if(t==null)return new Date;if(t instanceof Date)return t;if(typeof t=="string"){let e;if(_YYYMMDD.test(t))return parseLocalDate(t);if(e=Date.parse(t),!isNaN(e))return new Date(e)}return null}const sundayJanuarySecond2000=new Date(2e3,0,2);function getWeekdays(t){const e=firstDay[t.slice(-2).toUpperCase()];return createRange(7).map(r=>{const n=new Date(sundayJanuarySecond2000);return n.setDate(sundayJanuarySecond2000.getDate()+e+r),new Intl.DateTimeFormat(t,{weekday:"narrow"}).format(n)})}function format$2(t,e,r,n){var l;const o=(l=date(t))!=null?l:new Date,s=n==null?void 0:n[e];if(typeof s=="function")return s(o,e,r);let c={};switch(e){case"fullDateWithWeekday":c={weekday:"long",day:"numeric",month:"long",year:"numeric"};break;case"hours12h":c={hour:"numeric",hour12:!0};break;case"normalDateWithWeekday":c={weekday:"short",day:"numeric",month:"short"};break;case"keyboardDate":c={day:"2-digit",month:"2-digit",year:"numeric"};break;case"monthAndDate":c={month:"long",day:"numeric"};break;case"monthAndYear":c={month:"long",year:"numeric"};break;case"month":c={month:"long"};break;case"monthShort":c={month:"short"};break;case"dayOfMonth":return new Intl.NumberFormat(r).format(o.getDate());case"shortDate":c={year:"2-digit",month:"numeric",day:"numeric"};break;case"weekdayShort":c={weekday:"short"};break;case"year":c={year:"numeric"};break;default:c=s!=null?s:{timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(r,c).format(o)}function toISO(t,e){const r=t.toJsDate(e),n=r.getFullYear(),o=padStart(String(r.getMonth()+1),2,"0"),s=padStart(String(r.getDate()),2,"0");return`${n}-${o}-${s}`}function parseISO(t){const[e,r,n]=t.split("-").map(Number);return new Date(e,r-1,n)}function addMinutes(t,e){const r=new Date(t);return r.setMinutes(r.getMinutes()+e),r}function addHours(t,e){const r=new Date(t);return r.setHours(r.getHours()+e),r}function addDays(t,e){const r=new Date(t);return r.setDate(r.getDate()+e),r}function addWeeks(t,e){const r=new Date(t);return r.setDate(r.getDate()+e*7),r}function addMonths(t,e){const r=new Date(t);return r.setMonth(r.getMonth()+e),r}function getYear(t){return t.getFullYear()}function getMonth(t){return t.getMonth()}function getNextMonth(t){return new Date(t.getFullYear(),t.getMonth()+1,1)}function getHours(t){return t.getHours()}function getMinutes(t){return t.getMinutes()}function startOfYear(t){return new Date(t.getFullYear(),0,1)}function endOfYear(t){return new Date(t.getFullYear(),11,31)}function isWithinRange(t,e){return isAfter(t,e[0])&&isBefore(t,e[1])}function isValid(t){const e=new Date(t);return e instanceof Date&&!isNaN(e.getTime())}function isAfter(t,e){return t.getTime()>e.getTime()}function isBefore(t,e){return t.getTime()<e.getTime()}function isEqual(t,e){return t.getTime()===e.getTime()}function isSameDay(t,e){return t.getDate()===e.getDate()&&t.getMonth()===e.getMonth()&&t.getFullYear()===e.getFullYear()}function isSameMonth(t,e){return t.getMonth()===e.getMonth()&&t.getFullYear()===e.getFullYear()}function getDiff(t,e,r){const n=new Date(t),o=new Date(e);return r==="month"?n.getMonth()-o.getMonth()+(n.getFullYear()-o.getFullYear())*12:Math.floor((n.getTime()-o.getTime())/(1e3*60*60*24))}function setHours(t,e){const r=new Date(t);return r.setHours(e),r}function setMinutes(t,e){const r=new Date(t);return r.setMinutes(e),r}function setMonth(t,e){const r=new Date(t);return r.setMonth(e),r}function setYear(t,e){const r=new Date(t);return r.setFullYear(e),r}function startOfDay(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())}function endOfDay(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),23,59,59,999)}class VuetifyDateAdapter{constructor(e){this.locale=e.locale,this.formats=e.formats}date(e){return date(e)}toJsDate(e){return e}toISO(e){return toISO(this,e)}parseISO(e){return parseISO(e)}addMinutes(e,r){return addMinutes(e,r)}addHours(e,r){return addHours(e,r)}addDays(e,r){return addDays(e,r)}addWeeks(e,r){return addWeeks(e,r)}addMonths(e,r){return addMonths(e,r)}getWeekArray(e){return getWeekArray(e,this.locale)}startOfWeek(e){return startOfWeek(e)}endOfWeek(e){return endOfWeek(e)}startOfMonth(e){return startOfMonth(e)}endOfMonth(e){return endOfMonth(e)}format(e,r){return format$2(e,r,this.locale,this.formats)}isEqual(e,r){return isEqual(e,r)}isValid(e){return isValid(e)}isWithinRange(e,r){return isWithinRange(e,r)}isAfter(e,r){return isAfter(e,r)}isBefore(e,r){return!isAfter(e,r)&&!isEqual(e,r)}isSameDay(e,r){return isSameDay(e,r)}isSameMonth(e,r){return isSameMonth(e,r)}setMinutes(e,r){return setMinutes(e,r)}setHours(e,r){return setHours(e,r)}setMonth(e,r){return setMonth(e,r)}setYear(e,r){return setYear(e,r)}getDiff(e,r,n){return getDiff(e,r,n)}getWeekdays(){return getWeekdays(this.locale)}getYear(e){return getYear(e)}getMonth(e){return getMonth(e)}getNextMonth(e){return getNextMonth(e)}getHours(e){return getHours(e)}getMinutes(e){return getMinutes(e)}startOfDay(e){return startOfDay(e)}endOfDay(e){return endOfDay(e)}startOfYear(e){return startOfYear(e)}endOfYear(e){return endOfYear(e)}}const DateOptionsSymbol=Symbol.for("vuetify:date-options"),DateAdapterSymbol=Symbol.for("vuetify:date-adapter");function createDate(t,e){const r=mergeDeep({adapter:VuetifyDateAdapter,locale:{af:"af-ZA",bg:"bg-BG",ca:"ca-ES",ckb:"",cs:"cs-CZ",de:"de-DE",el:"el-GR",en:"en-US",et:"et-EE",fa:"fa-IR",fi:"fi-FI",hr:"hr-HR",hu:"hu-HU",he:"he-IL",id:"id-ID",it:"it-IT",ja:"ja-JP",ko:"ko-KR",lv:"lv-LV",lt:"lt-LT",nl:"nl-NL",no:"no-NO",pl:"pl-PL",pt:"pt-PT",ro:"ro-RO",ru:"ru-RU",sk:"sk-SK",sl:"sl-SI",srCyrl:"sr-SP",srLatn:"sr-SP",sv:"sv-SE",th:"th-TH",tr:"tr-TR",az:"az-AZ",uk:"uk-UA",vi:"vi-VN",zhHans:"zh-CN",zhHant:"zh-TW"}},t);return{options:r,instance:createInstance$1(r,e)}}function createInstance$1(t,e){var n;const r=reactive(typeof t.adapter=="function"?new t.adapter({locale:(n=t.locale[e.current.value])!=null?n:e.current.value,formats:t.formats}):t.adapter);return watch(e.current,o=>{var s,c;r.locale=(c=(s=t.locale[o])!=null?s:o)!=null?c:r.locale}),r}const breakpoints=["sm","md","lg","xl","xxl"],DisplaySymbol=Symbol.for("vuetify:display"),defaultDisplayOptions={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},parseDisplayOptions=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:defaultDisplayOptions;return mergeDeep(defaultDisplayOptions,t)};function getClientWidth(t){return IN_BROWSER&&!t?window.innerWidth:typeof t=="object"&&t.clientWidth||0}function getClientHeight(t){return IN_BROWSER&&!t?window.innerHeight:typeof t=="object"&&t.clientHeight||0}function getPlatform(t){const e=IN_BROWSER&&!t?window.navigator.userAgent:"ssr";function r(I){return Boolean(e.match(I))}const n=r(/android/i),o=r(/iphone|ipad|ipod/i),s=r(/cordova/i),c=r(/electron/i),l=r(/chrome/i),v=r(/edge/i),x=r(/firefox/i),w=r(/opera/i),_=r(/win/i),b=r(/mac/i),E=r(/linux/i);return{android:n,ios:o,cordova:s,electron:c,chrome:l,edge:v,firefox:x,opera:w,win:_,mac:b,linux:E,touch:SUPPORTS_TOUCH,ssr:e==="ssr"}}function createDisplay(t,e){const{thresholds:r,mobileBreakpoint:n}=parseDisplayOptions(t),o=shallowRef(getClientHeight(e)),s=shallowRef(getPlatform(e)),c=reactive({}),l=shallowRef(getClientWidth(e));function v(){o.value=getClientHeight(),l.value=getClientWidth()}function x(){v(),s.value=getPlatform()}return watchEffect(()=>{const w=l.value<r.sm,_=l.value<r.md&&!w,b=l.value<r.lg&&!(_||w),E=l.value<r.xl&&!(b||_||w),I=l.value<r.xxl&&!(E||b||_||w),O=l.value>=r.xxl,N=w?"xs":_?"sm":b?"md":E?"lg":I?"xl":"xxl",A=typeof n=="number"?n:r[n],z=l.value<A;c.xs=w,c.sm=_,c.md=b,c.lg=E,c.xl=I,c.xxl=O,c.smAndUp=!w,c.mdAndUp=!(w||_),c.lgAndUp=!(w||_||b),c.xlAndUp=!(w||_||b||E),c.smAndDown=!(b||E||I||O),c.mdAndDown=!(E||I||O),c.lgAndDown=!(I||O),c.xlAndDown=!O,c.name=N,c.height=o.value,c.width=l.value,c.mobile=z,c.mobileBreakpoint=n,c.platform=s.value,c.thresholds=r}),IN_BROWSER&&window.addEventListener("resize",v,{passive:!0}),ei(Pt({},toRefs(c)),{update:x,ssr:!!e})}const makeDisplayProps=propsFactory$1({mobileBreakpoint:[Number,String]},"display");function useDisplay(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:getCurrentInstanceName();const r=inject$1(DisplaySymbol);if(!r)throw new Error("Could not find Vuetify display injection");const n=computed(()=>{if(!t.mobileBreakpoint)return r.mobile.value;const s=typeof t.mobileBreakpoint=="number"?t.mobileBreakpoint:r.thresholds.value[t.mobileBreakpoint];return r.width.value<s}),o=computed(()=>e?{[`${e}--mobile`]:n.value}:{});return ei(Pt({},r),{displayClasses:o,mobile:n})}const GoToSymbol=Symbol.for("vuetify:goto");function genDefaults$2(){return{container:void 0,duration:300,layout:!1,offset:0,easing:"easeInOutCubic",patterns:{linear:t=>t,easeInQuad:t=>Ka(t,2),easeOutQuad:t=>t*(2-t),easeInOutQuad:t=>t<.5?2*Ka(t,2):-1+(4-2*t)*t,easeInCubic:t=>Ka(t,3),easeOutCubic:t=>Ka(--t,3)+1,easeInOutCubic:t=>t<.5?4*Ka(t,3):(t-1)*(2*t-2)*(2*t-2)+1,easeInQuart:t=>Ka(t,4),easeOutQuart:t=>1-Ka(--t,4),easeInOutQuart:t=>t<.5?8*Ka(t,4):1-8*Ka(--t,4),easeInQuint:t=>Ka(t,5),easeOutQuint:t=>1+Ka(--t,5),easeInOutQuint:t=>t<.5?16*Ka(t,5):1+16*Ka(--t,5)}}}function createGoTo(t,e){return{rtl:e.isRtl,options:mergeDeep(genDefaults$2(),t)}}const aliases$2={collapse:"mdi-chevron-up",complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close-circle",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-alert-circle",error:"mdi-close-circle",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sortAsc:"mdi-arrow-up",sortDesc:"mdi-arrow-down",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus",calendar:"mdi-calendar",eyeDropper:"mdi-eyedropper"},mdi$1={component:t=>h(VClassIcon,ei(Pt({},t),{class:"mdi"}))},IconValue$1=[String,Function,Object,Array],IconSymbol=Symbol.for("vuetify:icons"),makeIconProps$1=propsFactory$1({icon:{type:IconValue$1},tag:{type:String,required:!0}},"icon"),VComponentIcon=genericComponent()({name:"VComponentIcon",props:makeIconProps$1(),setup(t,e){let{slots:r}=e;return()=>{const n=t.icon;return createVNode(t.tag,null,{default:()=>{var o;return[t.icon?createVNode(n,null,null):(o=r.default)==null?void 0:o.call(r)]}})}}}),VSvgIcon=defineComponent({name:"VSvgIcon",inheritAttrs:!1,props:makeIconProps$1(),setup(t,e){let{attrs:r}=e;return()=>createVNode(t.tag,mergeProps(r,{style:null}),{default:()=>[createVNode("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(t.icon)?t.icon.map(n=>Array.isArray(n)?createVNode("path",{d:n[0],"fill-opacity":n[1]},null):createVNode("path",{d:n},null)):createVNode("path",{d:t.icon},null)])]})}});defineComponent({name:"VLigatureIcon",props:makeIconProps$1(),setup(t){return()=>createVNode(t.tag,null,{default:()=>[t.icon]})}});const VClassIcon=defineComponent({name:"VClassIcon",props:makeIconProps$1(),setup(t){return()=>createVNode(t.tag,{class:t.icon},null)}});function genDefaults$1(){return{svg:{component:VSvgIcon},class:{component:VClassIcon}}}function createIcons(t){var n;const e=genDefaults$1(),r=(n=t==null?void 0:t.defaultSet)!=null?n:"mdi";return r==="mdi"&&!e.mdi&&(e.mdi=mdi$1),mergeDeep({defaultSet:r,sets:e,aliases:ei(Pt({},aliases$2),{vuetify:["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z",["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z",.6]],"vuetify-outline":"svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z"})},t)}const useIcon=t=>{const e=inject$1(IconSymbol);if(!e)throw new Error("Missing Vuetify Icons provide!");return{iconData:computed(()=>{var v;const n=unref(t);if(!n)return{component:VComponentIcon};let o=n;if(typeof o=="string"&&(o=o.trim(),o.startsWith("$")&&(o=(v=e.aliases)==null?void 0:v[o.slice(1)])),!o)throw new Error(`Could not find aliased icon "${n}"`);if(Array.isArray(o))return{component:VSvgIcon,icon:o};if(typeof o!="string")return{component:VComponentIcon,icon:o};const s=Object.keys(e.sets).find(x=>typeof o=="string"&&o.startsWith(`${x}:`)),c=s?o.slice(s.length+1):o;return{component:e.sets[s!=null?s:e.defaultSet].component,icon:c}})}},ThemeSymbol=Symbol.for("vuetify:theme"),makeThemeProps=propsFactory$1({theme:String},"theme");function genDefaults(){return{defaultTheme:"light",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-light":"#EEEEEE","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#1867C0","primary-darken-1":"#1F5592",secondary:"#48A9A6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-light":"#424242","surface-variant":"#a3a3a3","on-surface-variant":"#424242",primary:"#2196F3","primary-darken-1":"#277CC1",secondary:"#54B6B2","secondary-darken-1":"#48A9A6",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}}}}function parseThemeOptions(){var n,o,s;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:genDefaults();const e=genDefaults();if(!t)return ei(Pt({},e),{isDisabled:!0});const r={};for(const[c,l]of Object.entries((n=t.themes)!=null?n:{})){const v=l.dark||c==="dark"?(o=e.themes)==null?void 0:o.dark:(s=e.themes)==null?void 0:s.light;r[c]=mergeDeep(v,l)}return mergeDeep(e,ei(Pt({},t),{themes:r}))}function createTheme(t){const e=parseThemeOptions(t),r=ref(e.defaultTheme),n=ref(e.themes),o=computed(()=>{const w={};for(const[_,b]of Object.entries(n.value)){const E=w[_]=ei(Pt({},b),{colors:Pt({},b.colors)});if(e.variations)for(const I of e.variations.colors){const O=E.colors[I];if(!!O)for(const N of["lighten","darken"]){const A=N==="lighten"?lighten:darken;for(const z of createRange(e.variations[N],1))E.colors[`${I}-${N}-${z}`]=RGBtoHex(A(parseColor(O),z))}}for(const I of Object.keys(E.colors)){if(/^on-[a-z]/.test(I)||E.colors[`on-${I}`])continue;const O=`on-${I}`,N=parseColor(E.colors[I]);E.colors[O]=getForeground(N)}}return w}),s=computed(()=>o.value[r.value]),c=computed(()=>{const w=[];s.value.dark&&createCssClass(w,":root",["color-scheme: dark"]),createCssClass(w,":root",genCssVariables(s.value));for(const[I,O]of Object.entries(o.value))createCssClass(w,`.v-theme--${I}`,[`color-scheme: ${O.dark?"dark":"normal"}`,...genCssVariables(O)]);const _=[],b=[],E=new Set(Object.values(o.value).flatMap(I=>Object.keys(I.colors)));for(const I of E)/^on-[a-z]/.test(I)?createCssClass(b,`.${I}`,[`color: rgb(var(--v-theme-${I})) !important`]):(createCssClass(_,`.bg-${I}`,[`--v-theme-overlay-multiplier: var(--v-theme-${I}-overlay-multiplier)`,`background-color: rgb(var(--v-theme-${I})) !important`,`color: rgb(var(--v-theme-on-${I})) !important`]),createCssClass(b,`.text-${I}`,[`color: rgb(var(--v-theme-${I})) !important`]),createCssClass(b,`.border-${I}`,[`--v-border-color: var(--v-theme-${I})`]));return w.push(..._,...b),w.map((I,O)=>O===0?I:` ${I}`).join("")});function l(){return{style:[{children:c.value,id:"vuetify-theme-stylesheet",nonce:e.cspNonce||!1}]}}function v(w){if(e.isDisabled)return;const _=w._context.provides.usehead;if(_)if(_.push){const b=_.push(l);IN_BROWSER&&watch(c,()=>{b.patch(l)})}else IN_BROWSER?(_.addHeadObjs(computed(l)),watchEffect(()=>_.updateDOM())):_.addHeadObjs(l());else{let E=function(){if(typeof document!="undefined"&&!b){const I=document.createElement("style");I.type="text/css",I.id="vuetify-theme-stylesheet",e.cspNonce&&I.setAttribute("nonce",e.cspNonce),b=I,document.head.appendChild(b)}b&&(b.innerHTML=c.value)},b=IN_BROWSER?document.getElementById("vuetify-theme-stylesheet"):null;IN_BROWSER?watch(c,E,{immediate:!0}):E()}}const x=computed(()=>e.isDisabled?void 0:`v-theme--${r.value}`);return{install:v,isDisabled:e.isDisabled,name:r,themes:n,current:s,computedThemes:o,themeClasses:x,styles:c,global:{name:r,current:s}}}function provideTheme(t){getCurrentInstance("provideTheme");const e=inject$1(ThemeSymbol,null);if(!e)throw new Error("Could not find Vuetify theme injection");const r=computed(()=>{var c;return(c=t.theme)!=null?c:e.name.value}),n=computed(()=>e.themes.value[r.value]),o=computed(()=>e.isDisabled?void 0:`v-theme--${r.value}`),s=ei(Pt({},e),{name:r,current:n,themeClasses:o});return provide(ThemeSymbol,s),s}function useTheme$1(){getCurrentInstance("useTheme");const t=inject$1(ThemeSymbol,null);if(!t)throw new Error("Could not find Vuetify theme injection");return t}function createCssClass(t,e,r){t.push(`${e} {
  4472. `,...r.map(n=>` ${n};
  4473. `),`}
  4474. `)}function genCssVariables(t){const e=t.dark?2:1,r=t.dark?1:2,n=[];for(const[o,s]of Object.entries(t.colors)){const c=parseColor(s);n.push(`--v-theme-${o}: ${c.r},${c.g},${c.b}`),o.startsWith("on-")||n.push(`--v-theme-${o}-overlay-multiplier: ${getLuma(s)>.18?e:r}`)}for(const[o,s]of Object.entries(t.variables)){const c=typeof s=="string"&&s.startsWith("#")?parseColor(s):void 0,l=c?`${c.r}, ${c.g}, ${c.b}`:void 0;n.push(`--v-${o}: ${l!=null?l:s}`)}return n}function useResizeObserver(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const r=ref(),n=ref();if(IN_BROWSER){const o=new ResizeObserver(s=>{t==null||t(s,o),s.length&&(e==="content"?n.value=s[0].contentRect:n.value=s[0].target.getBoundingClientRect())});onBeforeUnmount(()=>{o.disconnect()}),watch(r,(s,c)=>{c&&(o.unobserve(refElement(c)),n.value=void 0),s&&o.observe(refElement(s))},{flush:"post"})}return{resizeRef:r,contentRect:readonly(n)}}const VuetifyLayoutKey=Symbol.for("vuetify:layout"),VuetifyLayoutItemKey=Symbol.for("vuetify:layout-item"),ROOT_ZINDEX=1e3,makeLayoutProps=propsFactory$1({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),makeLayoutItemProps=propsFactory$1({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function useLayout(){const t=inject$1(VuetifyLayoutKey);if(!t)throw new Error("[Vuetify] Could not find injected layout");return{getLayoutItem:t.getLayoutItem,mainRect:t.mainRect,mainStyles:t.mainStyles}}function useLayoutItem(t){var l;const e=inject$1(VuetifyLayoutKey);if(!e)throw new Error("[Vuetify] Could not find injected layout");const r=(l=t.id)!=null?l:`layout-item-${getUid()}`,n=getCurrentInstance("useLayoutItem");provide(VuetifyLayoutItemKey,{id:r});const o=shallowRef(!1);onDeactivated(()=>o.value=!0),onActivated(()=>o.value=!1);const{layoutItemStyles:s,layoutItemScrimStyles:c}=e.register(n,ei(Pt({},t),{active:computed(()=>o.value?!1:t.active.value),id:r}));return onBeforeUnmount(()=>e.unregister(r)),{layoutItemStyles:s,layoutRect:e.layoutRect,layoutItemScrimStyles:c}}const generateLayers=(t,e,r,n)=>{let o={top:0,left:0,right:0,bottom:0};const s=[{id:"",layer:Pt({},o)}];for(const c of t){const l=e.get(c),v=r.get(c),x=n.get(c);if(!l||!v||!x)continue;const w=ei(Pt({},o),{[l.value]:parseInt(o[l.value],10)+(x.value?parseInt(v.value,10):0)});s.push({id:c,layer:w}),o=w}return s};function createLayout(t){const e=inject$1(VuetifyLayoutKey,null),r=computed(()=>e?e.rootZIndex.value-100:ROOT_ZINDEX),n=ref([]),o=reactive(new Map),s=reactive(new Map),c=reactive(new Map),l=reactive(new Map),v=reactive(new Map),{resizeRef:x,contentRect:w}=useResizeObserver(),_=computed(()=>{var q;const W=new Map,B=(q=t.overlaps)!=null?q:[];for(const D of B.filter(F=>F.includes(":"))){const[F,re]=D.split(":");if(!n.value.includes(F)||!n.value.includes(re))continue;const le=o.get(F),fe=o.get(re),me=s.get(F),ye=s.get(re);!le||!fe||!me||!ye||(W.set(re,{position:le.value,amount:parseInt(me.value,10)}),W.set(F,{position:fe.value,amount:-parseInt(ye.value,10)}))}return W}),b=computed(()=>{const W=[...new Set([...c.values()].map(q=>q.value))].sort((q,D)=>q-D),B=[];for(const q of W){const D=n.value.filter(F=>{var re;return((re=c.get(F))==null?void 0:re.value)===q});B.push(...D)}return generateLayers(B,o,s,l)}),E=computed(()=>!Array.from(v.values()).some(W=>W.value)),I=computed(()=>b.value[b.value.length-1].layer),O=computed(()=>Pt({"--v-layout-left":convertToUnit(I.value.left),"--v-layout-right":convertToUnit(I.value.right),"--v-layout-top":convertToUnit(I.value.top),"--v-layout-bottom":convertToUnit(I.value.bottom)},E.value?void 0:{transition:"none"})),N=computed(()=>b.value.slice(1).map((W,B)=>{let{id:q}=W;const{layer:D}=b.value[B],F=s.get(q),re=o.get(q);return ei(Pt({id:q},D),{size:Number(F.value),position:re.value})})),A=W=>N.value.find(B=>B.id===W),z=getCurrentInstance("createLayout"),G=shallowRef(!1);onMounted(()=>{G.value=!0}),provide(VuetifyLayoutKey,{register:(W,B)=>{let{id:q,order:D,position:F,layoutSize:re,elementSize:le,active:fe,disableTransitions:me,absolute:ye}=B;c.set(q,D),o.set(q,F),s.set(q,re),l.set(q,fe),me&&v.set(q,me);const ke=findChildrenWithProvide(VuetifyLayoutItemKey,z==null?void 0:z.vnode).indexOf(W);ke>-1?n.value.splice(ke,0,q):n.value.push(q);const Le=computed(()=>N.value.findIndex(ht=>ht.id===q)),et=computed(()=>r.value+b.value.length*2-Le.value*2),it=computed(()=>{const ht=F.value==="left"||F.value==="right",De=F.value==="right",Be=F.value==="bottom",Ve=Pt({[F.value]:0,zIndex:et.value,transform:`translate${ht?"X":"Y"}(${(fe.value?0:-110)*(De||Be?-1:1)}%)`,position:ye.value||r.value!==ROOT_ZINDEX?"absolute":"fixed"},E.value?void 0:{transition:"none"});if(!G.value)return Ve;const He=N.value[Le.value];if(!He)throw new Error(`[Vuetify] Could not find layout item "${q}"`);const gt=_.value.get(q);return gt&&(He[gt.position]+=gt.amount),ei(Pt({},Ve),{height:ht?`calc(100% - ${He.top}px - ${He.bottom}px)`:le.value?`${le.value}px`:void 0,left:De?void 0:`${He.left}px`,right:De?`${He.right}px`:void 0,top:F.value!=="bottom"?`${He.top}px`:void 0,bottom:F.value!=="top"?`${He.bottom}px`:void 0,width:ht?le.value?`${le.value}px`:void 0:`calc(100% - ${He.left}px - ${He.right}px)`})}),Ue=computed(()=>({zIndex:et.value-1}));return{layoutItemStyles:it,layoutItemScrimStyles:Ue,zIndex:et}},unregister:W=>{c.delete(W),o.delete(W),s.delete(W),l.delete(W),v.delete(W),n.value=n.value.filter(B=>B!==W)},mainRect:I,mainStyles:O,getLayoutItem:A,items:N,layoutRect:w,rootZIndex:r});const V=computed(()=>["v-layout",{"v-layout--full-height":t.fullHeight}]),ne=computed(()=>({zIndex:e?r.value:void 0,position:e?"relative":void 0,overflow:e?"hidden":void 0}));return{layoutClasses:V,layoutStyles:ne,getLayoutItem:A,items:N,layoutRect:w,layoutRef:x}}function createVuetify(){const O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{blueprint:e}=O,r=fd(O,["blueprint"]),n=mergeDeep(e,r),{aliases:o={},components:s={},directives:c={}}=n,l=createDefaults(n.defaults),v=createDisplay(n.display,n.ssr),x=createTheme(n.theme),w=createIcons(n.icons),_=createLocale(n.locale),b=createDate(n.date,_),E=createGoTo(n.goTo,_);return{install:N=>{for(const A in c)N.directive(A,c[A]);for(const A in s)N.component(A,s[A]);for(const A in o)N.component(A,defineComponent(ei(Pt({},o[A]),{name:A,aliasName:o[A].name})));if(x.install(N),N.provide(DefaultsSymbol,l),N.provide(DisplaySymbol,v),N.provide(ThemeSymbol,x),N.provide(IconSymbol,w),N.provide(LocaleSymbol,_),N.provide(DateOptionsSymbol,b.options),N.provide(DateAdapterSymbol,b.instance),N.provide(GoToSymbol,E),IN_BROWSER&&n.ssr)if(N.$nuxt)N.$nuxt.hook("app:suspense:resolve",()=>{v.update()});else{const{mount:A}=N;N.mount=function(){const z=A(...arguments);return nextTick(()=>v.update()),N.mount=A,z}}getUid.reset(),N.mixin({computed:{$vuetify(){return reactive({defaults:inject.call(this,DefaultsSymbol),display:inject.call(this,DisplaySymbol),theme:inject.call(this,ThemeSymbol),icons:inject.call(this,IconSymbol),locale:inject.call(this,LocaleSymbol),date:inject.call(this,DateAdapterSymbol)})}}})},defaults:l,display:v,theme:x,icons:w,locale:_,date:b,goTo:E}}const version="3.5.7";createVuetify.version=version;function inject(t){var n,o,s;const e=this.$,r=(s=(n=e.parent)==null?void 0:n.provides)!=null?s:(o=e.vnode.appContext)==null?void 0:o.provides;if(r&&t in r)return r[t]}var PointDotStyleStatus=(t=>(t.PDMODE="PDMODE",t.PDSIZE="PDSIZE",t))(PointDotStyleStatus||{});const pointDotStyleStatus=reactive({}),pointDotModeValues=[0,1,2,3,4,32,33,34,35,36,64,65,66,67,68,96,97,98,99,100],preservePointDotStyleStatus=()=>{const{PDMODE:t,PDSIZE:e}=unref(pointDotStyleStatus);typeof t!="undefined"&&setSysVarLog("PDMODE",Number(t)),typeof e!="undefined"&&setSysVarDouble("PDSIZE",Number(e))},initPointDotStyleStatus=()=>{Object.keys(PointDotStyleStatus).forEach(t=>t=="PDSIZE"?pointDotStyleStatus[t]=getSysVarDouble(t):pointDotStyleStatus[t]=getSysVarLong(t))};var Status=(t=>(t[t.Off=0]="Off",t[t.On=1]="On",t))(Status||{}),SysVarLongSketchSettings=(t=>(t.GRIDMODE="\u6805\u683C",t.ORTHOMODE="\u6B63\u4EA4",t.AUTOSNAP="\u6781\u8F74",t.OSMODE="\u5BF9\u8C61\u6355\u6349",t.DYNTRACE="\u5BF9\u8C61\u8FFD\u8E2A",t.DYNINPUT="DYN",t.LWDISPLAY="\u7EBF\u5BBD",t))(SysVarLongSketchSettings||{}),SysVarLongSketchSettingsOsMode=(t=>(t[t.End=1]="End",t[t.Mid=2]="Mid",t[t.Cen=4]="Cen",t[t.Node=8]="Node",t[t.Quad=16]="Quad",t[t.Int=32]="Int",t[t.Ins=64]="Ins",t[t.Perp=128]="Perp",t[t.Tan=256]="Tan",t[t.Near=512]="Near",t[t.App=2048]="App",t[t.Ext=4096]="Ext",t[t.Par=8192]="Par",t[t.Off=16384]="Off",t))(SysVarLongSketchSettingsOsMode||{});const sysVarLongSketchSettingsKeys=Object.keys(SysVarLongSketchSettings),getSysVarLongSketchSettings=t=>{const e=getMxCadObj().getSysVarLong(t);return SysVarLongSketchSettings[t]==="\u5BF9\u8C61\u6355\u6349"?(e&16384)===Status.Off?Status.On:Status.Off:SysVarLongSketchSettings[t]==="\u6781\u8F74"?e===8?Status.On:Status.Off:e},sysVarLongSketchSettings=reactive({}),setSysVarLongSketchSettings=(t,e)=>{let r=!1;if(SysVarLongSketchSettings[t]==="\u5BF9\u8C61\u6355\u6349"){const n=getSysVarLongSketchSettingsOsMode();if(typeof n=="undefined")return;const o=e===Status.Off?n|16384:n&-16385;r=getMxCadObj().setSysVarLong(t,o)}else t=="AUTOSNAP"?e===Status.On?r=getMxCadObj().setSysVarLong(t,8):r=getMxCadObj().setSysVarLong(t,0):r=getMxCadObj().setSysVarLong(t,e);return r&&(sysVarLongSketchSettings[t]=e),t=="GRIDMODE"&&getMxCadObj().updateDisplay(),r},getSysVarLongSketchSettingsOsMode=t=>{try{const e=getMxCadObj().getSysVarLong("OSMODE");return typeof t=="undefined"?e:(e&t)===Status.Off?Status.Off:Status.On}catch(e){return}},setSysVarLongSketchSettingsOsMode=t=>getMxCadObj().setSysVarLong("OSMODE",t),countSysVarLongSketchSettingsOsMode=(t,e,r=getSysVarLongSketchSettingsOsMode())=>{if(typeof r!="undefined")return r=e?r|t:r&~t};function osModeRef(t){return customRef((e,r)=>{let n;return{get(){e();const o=getSysVarLongSketchSettingsOsMode(t);return typeof o===void 0||typeof n=="undefined"&&(n=o!==Status.Off),n},set(o){n=o,r()}}})}const initSysVarLongSketchSettings=()=>{sysVarLongSketchSettingsKeys.forEach(t=>{sysVarLongSketchSettings[t]=getSysVarLongSketchSettings(t)})};Pt(Pt({},SysVarLongSketchSettings),PointDotStyleStatus);const setSysVarLog=(t,e)=>{getMxCadObj().setSysVarLong(t,e)},getSysVarLong=t=>getMxCadObj().getSysVarLong(t),setSysVarDouble=(t,e)=>{getMxCadObj().setSysVarDouble(t,e)},getSysVarDouble=t=>getMxCadObj().getSysVarDouble(t),initSysVarLong=()=>{initSysVarLongSketchSettings(),initPointDotStyleStatus()};ref([]);ref("");ref();ref([]);ref();let onOpenFileCompleteCalls=[],isOpenFileComplete=!1;const onOpenFileComplete=t=>{if(isOpenFileComplete)return t(MxCpp.getCurrentMxCAD());onOpenFileCompleteCalls.push(t)};let isLoadComplete=!1,onLoadCompleteCalls=[];const onLoadComplete=t=>{if(isLoadComplete)return t(MxCpp.getCurrentMxCAD());onLoadCompleteCalls.push(t)},{showLoading:showLoading$1,hideLoading:hideLoading$1}=useLoading();window.onerror=()=>{hideLoading$1()};const useMxCad=(t,e)=>{const{mainRect:r}=useLayout(),{initLayerList:n}=useLayer(),{initColorIndexList:o}=useColor$1(),{initLineTypeList:s}=useLineType();return onMounted(()=>Gr(void 0,null,function*(){let c=MxCheckTheBrowser();c.ok||(console.log(c),alert("CAD\u68A6\u60F3\u5728\u7EBF\u753B\u56FE\u63D0\u793A:"+c.error));const l=(v,x)=>{v.on("loadComplete",()=>{if(isLoadComplete=!0,onLoadCompleteCalls.forEach(b=>{b&&b(MxCpp.getCurrentMxCAD())}),x)return;const{file:w,viewRange:_}=getParamsFromUrl()||{};requestIdleCallback(()=>{let b="test3.mxweb",E=MxFun.callEvent("mxcadApplicationDefaultOpen");E&&E.openFile!==void 0&&(b=E.openFile,b.length==0&&(b="empty_template.mxweb")),mxcadObj.openWebFile(w||b,O=>{if(hideLoading$1(),O!==0){console.log("openWebFile error",O),useMessage().error("\u6253\u5F00\u9875\u9762\u5931\u8D25\uFF01");return}},!0,_?JSON.parse(_):void 0,0)&&showLoading$1({})})}),v.on("databaseModify",()=>{}),v.on("openFileComplete",()=>Gr(void 0,null,function*(){hideLoading$1(),n(),o(),s(),initSysVarLong(),onOpenFileCompleteCalls.forEach(w=>{w&&w(mxcadObj)}),isOpenFileComplete=!0}))};e?createMxCADMap((v,x)=>{l(v,x)}):createMxCAD({canvasId:t,isCPPMxCAD:!0},(v,x)=>{l(v,x)})})),{mainRect:r}};var _a;const isClient=typeof window!="undefined",isBoolean$2=t=>typeof t=="boolean",isFunction$2=t=>typeof t=="function",isString$3=t=>typeof t=="string",noop$1=()=>{};isClient&&((_a=window==null?void 0:window.navigator)==null?void 0:_a.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function resolveUnref(t){return typeof t=="function"?t():unref(t)}function createFilterWrapper(t,e){function r(...n){return new Promise((o,s)=>{Promise.resolve(t(()=>e.apply(this,n),{fn:e,thisArg:this,args:n})).then(o).catch(s)})}return r}const bypassFilter=t=>t();function pausableFilter(t=bypassFilter){const e=ref(!0);function r(){e.value=!1}function n(){e.value=!0}const o=(...s)=>{e.value&&t(...s)};return{isActive:readonly(e),pause:r,resume:n,eventFilter:o}}function identity(t){return t}function tryOnScopeDispose(t){return getCurrentScope()?(onScopeDispose(t),!0):!1}function createEventHook(){const t=[],e=o=>{const s=t.indexOf(o);s!==-1&&t.splice(s,1)};return{on:o=>{t.push(o);const s=()=>e(o);return tryOnScopeDispose(s),{off:s}},off:e,trigger:o=>{t.forEach(s=>s(o))}}}var __getOwnPropSymbols$6=Object.getOwnPropertySymbols,__hasOwnProp$6=Object.prototype.hasOwnProperty,__propIsEnum$6=Object.prototype.propertyIsEnumerable,__objRest$5=(t,e)=>{var r={};for(var n in t)__hasOwnProp$6.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&__getOwnPropSymbols$6)for(var n of __getOwnPropSymbols$6(t))e.indexOf(n)<0&&__propIsEnum$6.call(t,n)&&(r[n]=t[n]);return r};function watchWithFilter(t,e,r={}){const n=r,{eventFilter:o=bypassFilter}=n,s=__objRest$5(n,["eventFilter"]);return watch(t,createFilterWrapper(o,e),s)}var __defProp$2=Object.defineProperty,__defProps$2=Object.defineProperties,__getOwnPropDescs$2=Object.getOwnPropertyDescriptors,__getOwnPropSymbols$2=Object.getOwnPropertySymbols,__hasOwnProp$2=Object.prototype.hasOwnProperty,__propIsEnum$2=Object.prototype.propertyIsEnumerable,__defNormalProp$2=(t,e,r)=>e in t?__defProp$2(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,__spreadValues$2=(t,e)=>{for(var r in e||(e={}))__hasOwnProp$2.call(e,r)&&__defNormalProp$2(t,r,e[r]);if(__getOwnPropSymbols$2)for(var r of __getOwnPropSymbols$2(e))__propIsEnum$2.call(e,r)&&__defNormalProp$2(t,r,e[r]);return t},__spreadProps$2=(t,e)=>__defProps$2(t,__getOwnPropDescs$2(e)),__objRest$1=(t,e)=>{var r={};for(var n in t)__hasOwnProp$2.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&__getOwnPropSymbols$2)for(var n of __getOwnPropSymbols$2(t))e.indexOf(n)<0&&__propIsEnum$2.call(t,n)&&(r[n]=t[n]);return r};function watchPausable(t,e,r={}){const n=r,{eventFilter:o}=n,s=__objRest$1(n,["eventFilter"]),{eventFilter:c,pause:l,resume:v,isActive:x}=pausableFilter(o);return{stop:watchWithFilter(t,e,__spreadProps$2(__spreadValues$2({},s),{eventFilter:c})),pause:l,resume:v,isActive:x}}function unrefElement(t){var e;const r=resolveUnref(t);return(e=r==null?void 0:r.$el)!=null?e:r}const defaultWindow=isClient?window:void 0,defaultDocument=isClient?window.document:void 0;isClient&&window.navigator;isClient&&window.location;function useEventListener(...t){let e,r,n,o;if(isString$3(t[0])||Array.isArray(t[0])?([r,n,o]=t,e=defaultWindow):[e,r,n,o]=t,!e)return noop$1;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const s=[],c=()=>{s.forEach(w=>w()),s.length=0},l=(w,_,b,E)=>(w.addEventListener(_,b,E),()=>w.removeEventListener(_,b,E)),v=watch(()=>[unrefElement(e),resolveUnref(o)],([w,_])=>{c(),w&&s.push(...r.flatMap(b=>n.map(E=>l(w,b,E,_))))},{immediate:!0,flush:"post"}),x=()=>{v(),c()};return tryOnScopeDispose(x),x}const _global$1=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},globalKey="__vueuse_ssr_handlers__";_global$1[globalKey]=_global$1[globalKey]||{};const handlers=_global$1[globalKey];function getSSRHandler(t,e){return handlers[t]||e}function guessSerializerType(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}var __defProp$k=Object.defineProperty,__getOwnPropSymbols$m=Object.getOwnPropertySymbols,__hasOwnProp$m=Object.prototype.hasOwnProperty,__propIsEnum$m=Object.prototype.propertyIsEnumerable,__defNormalProp$k=(t,e,r)=>e in t?__defProp$k(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,__spreadValues$k=(t,e)=>{for(var r in e||(e={}))__hasOwnProp$m.call(e,r)&&__defNormalProp$k(t,r,e[r]);if(__getOwnPropSymbols$m)for(var r of __getOwnPropSymbols$m(e))__propIsEnum$m.call(e,r)&&__defNormalProp$k(t,r,e[r]);return t};const StorageSerializers={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}},customStorageEventName="vueuse-storage";function useStorage(t,e,r,n={}){var o;const{flush:s="pre",deep:c=!0,listenToStorageChanges:l=!0,writeDefaults:v=!0,mergeDefaults:x=!1,shallow:w,window:_=defaultWindow,eventFilter:b,onError:E=q=>{console.error(q)}}=n,I=(w?shallowRef:ref)(e);if(!r)try{r=getSSRHandler("getDefaultStorage",()=>{var q;return(q=defaultWindow)==null?void 0:q.localStorage})()}catch(q){E(q)}if(!r)return I;const O=resolveUnref(e),N=guessSerializerType(O),A=(o=n.serializer)!=null?o:StorageSerializers[N],{pause:z,resume:G}=watchPausable(I,()=>V(I.value),{flush:s,deep:c,eventFilter:b});return _&&l&&(useEventListener(_,"storage",B),useEventListener(_,customStorageEventName,W)),B(),I;function V(q){try{if(q==null)r.removeItem(t);else{const D=A.write(q),F=r.getItem(t);F!==D&&(r.setItem(t,D),_&&_.dispatchEvent(new CustomEvent(customStorageEventName,{detail:{key:t,oldValue:F,newValue:D,storageArea:r}})))}}catch(D){E(D)}}function ne(q){const D=q?q.newValue:r.getItem(t);if(D==null)return v&&O!==null&&r.setItem(t,A.write(O)),O;if(!q&&x){const F=A.read(D);return isFunction$2(x)?x(F,O):N==="object"&&!Array.isArray(F)?__spreadValues$k(__spreadValues$k({},O),F):F}else return typeof D!="string"?D:A.read(D)}function W(q){B(q.detail)}function B(q){if(!(q&&q.storageArea!==r)){if(q&&q.key==null){I.value=O;return}if(!(q&&q.key!==t)){z();try{I.value=ne(q)}catch(D){E(D)}finally{q?nextTick(G):G()}}}}}function useConfirmDialog(t=ref(!1)){const e=createEventHook(),r=createEventHook(),n=createEventHook();let o=noop$1;const s=v=>(n.trigger(v),t.value=!0,new Promise(x=>{o=x})),c=v=>{t.value=!1,e.trigger(v),o({data:v,isCanceled:!1})},l=v=>{t.value=!1,r.trigger(v),o({data:v,isCanceled:!0})};return{isRevealed:computed(()=>t.value),reveal:s,confirm:c,cancel:l,onReveal:n.on,onConfirm:e.on,onCancel:r.on}}const defaultEvents=["mousedown","mouseup","keydown","keyup"];function useKeyModifier(t,e={}){const{events:r=defaultEvents,document:n=defaultDocument,initial:o=null}=e,s=ref(o);return n&&r.forEach(c=>{useEventListener(n,c,l=>{typeof l.getModifierState=="function"&&(s.value=l.getModifierState(t))})}),s}function useLocalStorage(t,e,r={}){const{window:n=defaultWindow}=r;return useStorage(t,e,n==null?void 0:n.localStorage,r)}function useMouse(t={}){const{type:e="page",touch:r=!0,resetOnTouchEnds:n=!1,initialValue:o={x:0,y:0},window:s=defaultWindow,eventFilter:c}=t,l=ref(o.x),v=ref(o.y),x=ref(null),w=O=>{e==="page"?(l.value=O.pageX,v.value=O.pageY):e==="client"?(l.value=O.clientX,v.value=O.clientY):e==="movement"&&(l.value=O.movementX,v.value=O.movementY),x.value="mouse"},_=()=>{l.value=o.x,v.value=o.y},b=O=>{if(O.touches.length>0){const N=O.touches[0];e==="page"?(l.value=N.pageX,v.value=N.pageY):e==="client"&&(l.value=N.clientX,v.value=N.clientY),x.value="touch"}},E=O=>c===void 0?w(O):c(()=>w(O),{}),I=O=>c===void 0?b(O):c(()=>b(O),{});return s&&(useEventListener(s,"mousemove",E,{passive:!0}),useEventListener(s,"dragover",E,{passive:!0}),r&&e!=="movement"&&(useEventListener(s,"touchstart",I,{passive:!0}),useEventListener(s,"touchmove",I,{passive:!0}),n&&useEventListener(s,"touchend",_,{passive:!0}))),{x:l,y:v,sourceType:x}}var SwipeDirection;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(SwipeDirection||(SwipeDirection={}));var __defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(t,e,r)=>e in t?__defProp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,__spreadValues=(t,e)=>{for(var r in e||(e={}))__hasOwnProp.call(e,r)&&__defNormalProp(t,r,e[r]);if(__getOwnPropSymbols)for(var r of __getOwnPropSymbols(e))__propIsEnum.call(e,r)&&__defNormalProp(t,r,e[r]);return t};const _TransitionPresets={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};__spreadValues({linear:identity},_TransitionPresets);let isMouseOutCanvas=!0;onLoadComplete(()=>{setTimeout(()=>{const t=MxCpp.getCurrentMxCAD().mxdraw.getCanvas();useEventListener(t,"mouseleave",()=>{isMouseOutCanvas=!1}),useEventListener(t,"mouseout",()=>{isMouseOutCanvas=!0})},2e3)});keyBindingManager.register({key:{keyCode:"KeyA",ctrlKey:!0},when(t){return Gr(this,null,function*(){return t.isRunCommand?!1:isNoInput()&&isMouseOutCanvas})},action(){callCommand("Mx_select_all")}});addCommand("Mx_select_all",()=>{const t=MxCpp.getCurrentMxCAD(),e=new MxCADSelectionSet;e.allSelect();const r=[];e.forEach(n=>{r.push(n)}),t.addCurrentSelect(r)});keyBindingManager.register({key:{keyCode:"KeyZ",ctrlKey:!0},when(t){return Gr(this,null,function*(){return t.isRunCommand?!1:isNoInput()})},action(){callCommand("Mx_Undo")}});keyBindingManager.register({key:{keyCode:"KeyY",ctrlKey:!0},when(t){return Gr(this,null,function*(){return t.isRunCommand?!1:isNoInput()})},action(){callCommand("Mx_Redo")}});const isFullscreen=()=>!!(document.fullScreen||document.mozFullScreen||document.webkitIsFullScreen||document.fullscreenElement);keyBindingManager.register({key:{keyCode:"KeyO",ctrlKey:!0},when(t){return Gr(this,null,function*(){return t.isRunCommand?!1:isFullscreen()})},action(){callCommand("OpenDwg")}});keyBindingManager.register({key:{keyCode:"KeyN",ctrlKey:!0},when(t){return Gr(this,null,function*(){return t.isRunCommand?!1:isFullscreen()})},action(){callCommand("Mx_NewFile")}});keyBindingManager.register({key:{keyCode:"KeyP",ctrlKey:!0},when(t){return Gr(this,null,function*(){return t.isRunCommand?!1:isFullscreen()})},action(){callCommand("Plot")}});keyBindingManager.register({key:{keyCode:"KeyS",ctrlKey:!0},when(t){return Gr(this,null,function*(){return t.isRunCommand?!1:isFullscreen()})},action(){callCommand("Mx_SaveAs")}});const keyToCode=t=>t.length===1?"Key"+t.toUpperCase():t.slice(0,1).toUpperCase()+t.slice(1),useFocus$1=defineStore("focus",()=>{const t=ref(!0),e=ref(),r=c=>{var l;t.value=c,c&&((l=e.value)==null||l.focus())},n=new Set(["ArrowUp","ArrowDown","ControlLeft","ControlRight"]);return keyBindingManager.register({key:{keyCode:"*"},isNoPreventDefault:!0,when({event:c}){return!n.has(c.code)&&t.value},action(c){var l;document.activeElement!==e.value&&MxFun.setCommandLineInputData("",c.keyCode),(l=e.value)==null||l.focus()}}),{isCommandFocus:t,setCommandFocus:r,setInputEl:c=>{e.value=c},destroyInputAutoFocus:()=>{e.value=void 0},filterKeydownNotFocusCodes:n}}),setProp=(t,e,r)=>(t[e]=r,t[e]),defaultLineType={name:"ByLayer",explain:"",appearance:"",id:-1},useLineType=defineStore("lineType",()=>{const t=(c={})=>Pt(Pt({},defaultLineType),c),e=ref([]),r=ref();watch(r,c=>{c&&getDatabase().setCurrentlyLineTypeName(c.name)});const n=c=>{const{name:l,comments:v,id:x}=c;return t({name:l,explain:v,appearance:v,id:x})};return{initLineTypeList:()=>{const l=getDatabase().getLinetypeTable().getJson(),v=JSON.parse(l),x=getDatabase().getCurrentlyLineTypeName(),w=["ByLayer","ByBlock","Continuous"];e.value=v.sort((_,b)=>{const E=w.indexOf(_.name),I=w.indexOf(b.name);return E!==-1&&I!==-1?E-I:E!==-1?-1:I!==-1?1:0}).map(_=>{const b=n(_);return x===_.name&&(r.value=b),b})},createLineType:t,parseJSONLineType:n,stringifyJSONLineType:c=>{},lineTypeList:e,currentLineType:r}}),useLayer=defineStore("layer",()=>{const{createColor:t,stringifyJSONColor:e,parseJSONColor:r}=useColor$1(),{createLineType:n}=useLineType(),o={id:0,name:"0",visible:!0,freeze:!1,lock:!1,print:!0,status:!1,isSelect:!1,color:t(),lineType:n()};let s=0;const c=q=>Pt(ei(Pt({},o),{name:`\u65B0\u5EFA\u56FE\u5C42${s++}`,id:0}),q),l=ref([]),v=ref(0),x=ref(),w=computed(()=>l.value[0].id),_=q=>new Promise((D,F)=>{setLayerJson(q)?D():F()}),b=(q,D,F=v)=>{const re=unref(F||v),le=unref(D);return(Array.isArray(re)?re.map(me=>l.value[unref(me)]):[l.value[unref(re)]]).map((me,ye)=>setProp(me,q,unref(Array.isArray(le)?le[ye]||le[0]:le)))},E=(q=v)=>{const D=unref(q),F=re=>typeof re=="object"?l.value.indexOf(re):re;return Array.isArray(D)?D.map(re=>F(re)):F(D)},I=q=>{v.value=unref(q),b("isSelect",!1,l.value.map((D,F)=>F)),b("isSelect",!0)},O=q=>{if(l.value[q])return I(q);O(q-1)},N=q=>{const D=q||c();return l.value.push(D),I(l.value.length-1),D},A=(q=v,D="index")=>{const F=unref(q),re=fe=>{l.value=l.value.filter((ye,Te)=>{if(ye.id===w.value||ye.status)return!0;const ke=D==="this"?ye:D==="id"?ye.id:Te;return!fe.includes(ke)});const me=E(fe[fe.length-1]);typeof me=="number"&&O(me)},le=fe=>{if(D==="id")re([fe]);else{let me=E(fe);if(typeof me!="number"||me<0)return;const ye=l.value[me];if(ye.id===w.value||ye.status)return;l.value.splice(me,1)}};if(F)if(Array.isArray(F))re(F);else{le(F);const fe=E(F);if(typeof fe!="number")return;O(fe)}},z=(q,D=v)=>{let F=unref(D);const re=le=>{let fe=unref(le);if(!(q==="freeze"&&l.value[fe].id===w.value))return l.value[fe][q]=!l.value[fe][q],l.value[fe][q]};return Array.isArray(F)?F.map(le=>re(le)):re(F)},G=q=>{const D=q?E(q):v.value;Array.isArray(D)&&(D.length>1||D.length===0)||(b("status",!1,l.value.map((F,re)=>re)),x.value=unref(l.value[Array.isArray(D)?D[0]:D]),x.value.status=!0,getDatabase().setCurrentlyLayerName(x.value.name))},V=()=>{const q=getDatabase().getCurrentlyLayerName();G(l.value.find(({name:D})=>q===D))},ne=q=>{try{const D=JSON.parse(q);if(!Array.isArray(D))return;l.value=D.map(({name:F,color:re,off:le,linetypename:fe,locked:me,plottable:ye,id:Te})=>c({name:F,id:Te,color:r(re),lock:me===Status.On,lineType:n({name:fe}),print:ye===Status.On,visible:le===Status.Off}))}catch(D){console.error(D)}};return{list:l,index:v,currentLayer:x,rootId:w,setIndex:I,getIndex:E,add:N,create:c,remove:A,toggle:z,setValue:b,putCurrent:G,parseJSON:ne,stringifyJSON:()=>JSON.stringify(l.value.map(q=>{const{name:D,color:F,visible:re,id:le,lineType:fe,print:me,lock:ye}=q;return{name:D,id:le,off:re?Status.Off:Status.On,color:e(F),linetypename:fe.name,plottable:me?Status.On:Status.Off,locked:ye?Status.On:Status.Off}})),initLayerList:()=>{ne(getLayerJson()),V()},initCurrentLayer:V,setLayerList:_}}),VIcon$1="";function useColor(t){return destructComputed(()=>{const e=[],r={};if(t.value.background)if(isCssColor(t.value.background)){if(r.backgroundColor=t.value.background,!t.value.text&&isParsableColor(t.value.background)){const n=parseColor(t.value.background);if(n.a==null||n.a===1){const o=getForeground(n);r.color=o,r.caretColor=o}}}else e.push(`bg-${t.value.background}`);return t.value.text&&(isCssColor(t.value.text)?(r.color=t.value.text,r.caretColor=t.value.text):e.push(`text-${t.value.text}`)),{colorClasses:e,colorStyles:r}})}function useTextColor(t,e){const r=computed(()=>({text:isRef(t)?t.value:e?t[e]:null})),{colorClasses:n,colorStyles:o}=useColor(r);return{textColorClasses:n,textColorStyles:o}}function useBackgroundColor(t,e){const r=computed(()=>({background:isRef(t)?t.value:e?t[e]:null})),{colorClasses:n,colorStyles:o}=useColor(r);return{backgroundColorClasses:n,backgroundColorStyles:o}}const predefinedSizes=["x-small","small","default","large","x-large"],makeSizeProps=propsFactory$1({size:{type:[String,Number],default:"default"}},"size");function useSize(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:getCurrentInstanceName();return destructComputed(()=>{let r,n;return includes(predefinedSizes,t.size)?r=`${e}--size-${t.size}`:t.size&&(n={width:convertToUnit(t.size),height:convertToUnit(t.size)}),{sizeClasses:r,sizeStyles:n}})}const makeTagProps=propsFactory$1({tag:{type:String,default:"div"}},"tag"),makeVIconProps=propsFactory$1(Pt(Pt(Pt(Pt({color:String,start:Boolean,end:Boolean,icon:IconValue$1},makeComponentProps()),makeSizeProps()),makeTagProps({tag:"i"})),makeThemeProps()),"VIcon"),VIcon=genericComponent()({name:"VIcon",props:makeVIconProps(),setup(t,e){let{attrs:r,slots:n}=e;const o=ref(),{themeClasses:s}=provideTheme(t),{iconData:c}=useIcon(computed(()=>o.value||t.icon)),{sizeClasses:l}=useSize(t),{textColorClasses:v,textColorStyles:x}=useTextColor(toRef(t,"color"));return useRender(()=>{var _,b;const w=(_=n.default)==null?void 0:_.call(n);return w&&(o.value=(b=flattenFragments(w).filter(E=>E.type===Text&&E.children&&typeof E.children=="string")[0])==null?void 0:b.children),createVNode(c.value.component,{tag:t.tag,icon:c.value.icon,class:["v-icon","notranslate",s.value,l.value,v.value,{"v-icon--clickable":!!r.onClick,"v-icon--start":t.start,"v-icon--end":t.end},t.class],style:[l.value?void 0:{fontSize:convertToUnit(t.size),height:convertToUnit(t.size),width:convertToUnit(t.size)},x.value,t.style],role:r.onClick?"button":void 0,"aria-hidden":!r.onClick},{default:()=>[w]})}),{}}}),VList$1="",makeTransitionProps$1=propsFactory$1({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function createCssTransition(t,e,r){return genericComponent()({name:t,props:makeTransitionProps$1({mode:r,origin:e}),setup(n,o){let{slots:s}=o;const c={onBeforeEnter(l){n.origin&&(l.style.transformOrigin=n.origin)},onLeave(l){if(n.leaveAbsolute){const{offsetTop:v,offsetLeft:x,offsetWidth:w,offsetHeight:_}=l;l._transitionInitialStyles={position:l.style.position,top:l.style.top,left:l.style.left,width:l.style.width,height:l.style.height},l.style.position="absolute",l.style.top=`${v}px`,l.style.left=`${x}px`,l.style.width=`${w}px`,l.style.height=`${_}px`}n.hideOnLeave&&l.style.setProperty("display","none","important")},onAfterLeave(l){if(n.leaveAbsolute&&(l==null?void 0:l._transitionInitialStyles)){const{position:v,top:x,left:w,width:_,height:b}=l._transitionInitialStyles;delete l._transitionInitialStyles,l.style.position=v||"",l.style.top=x||"",l.style.left=w||"",l.style.width=_||"",l.style.height=b||""}}};return()=>{const l=n.group?TransitionGroup:Transition;return h(l,Pt(Pt({name:n.disabled?"":t,css:!n.disabled},n.group?void 0:{mode:n.mode}),n.disabled?{}:c),s.default)}}})}function createJavascriptTransition(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return genericComponent()({name:t,props:{mode:{type:String,default:r},disabled:Boolean},setup(n,o){let{slots:s}=o;return()=>h(Transition,Pt({name:n.disabled?"":t,css:!n.disabled},n.disabled?{}:e),s.default)}})}function ExpandTransitionGenerator(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",n=camelize(`offset-${r}`);return{onBeforeEnter(c){c._parent=c.parentNode,c._initialStyle={transition:c.style.transition,overflow:c.style.overflow,[r]:c.style[r]}},onEnter(c){const l=c._initialStyle;c.style.setProperty("transition","none","important"),c.style.overflow="hidden";const v=`${c[n]}px`;c.style[r]="0",c.offsetHeight,c.style.transition=l.transition,t&&c._parent&&c._parent.classList.add(t),requestAnimationFrame(()=>{c.style[r]=v})},onAfterEnter:s,onEnterCancelled:s,onLeave(c){c._initialStyle={transition:"",overflow:c.style.overflow,[r]:c.style[r]},c.style.overflow="hidden",c.style[r]=`${c[n]}px`,c.offsetHeight,requestAnimationFrame(()=>c.style[r]="0")},onAfterLeave:o,onLeaveCancelled:o};function o(c){t&&c._parent&&c._parent.classList.remove(t),s(c)}function s(c){const l=c._initialStyle[r];c.style.overflow=c._initialStyle.overflow,l!=null&&(c.style[r]=l),delete c._initialStyle}}const makeVDialogTransitionProps=propsFactory$1({target:[Object,Array]},"v-dialog-transition"),VDialogTransition=genericComponent()({name:"VDialogTransition",props:makeVDialogTransitionProps(),setup(t,e){let{slots:r}=e;const n={onBeforeEnter(s){s.style.pointerEvents="none",s.style.visibility="hidden"},onEnter(s,c){return Gr(this,null,function*(){var E;yield new Promise(I=>requestAnimationFrame(I)),yield new Promise(I=>requestAnimationFrame(I)),s.style.visibility="";const{x:l,y:v,sx:x,sy:w,speed:_}=getDimensions(t.target,s),b=animate(s,[{transform:`translate(${l}px, ${v}px) scale(${x}, ${w})`,opacity:0},{}],{duration:225*_,easing:deceleratedEasing});(E=getChildren(s))==null||E.forEach(I=>{animate(I,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*_,easing:standardEasing})}),b.finished.then(()=>c())})},onAfterEnter(s){s.style.removeProperty("pointer-events")},onBeforeLeave(s){s.style.pointerEvents="none"},onLeave(s,c){return Gr(this,null,function*(){var E;yield new Promise(I=>requestAnimationFrame(I));const{x:l,y:v,sx:x,sy:w,speed:_}=getDimensions(t.target,s);animate(s,[{},{transform:`translate(${l}px, ${v}px) scale(${x}, ${w})`,opacity:0}],{duration:125*_,easing:acceleratedEasing}).finished.then(()=>c()),(E=getChildren(s))==null||E.forEach(I=>{animate(I,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*_,easing:standardEasing})})})},onAfterLeave(s){s.style.removeProperty("pointer-events")}};return()=>t.target?createVNode(Transition,mergeProps({name:"dialog-transition"},n,{css:!1}),r):createVNode(Transition,{name:"dialog-transition"},r)}});function getChildren(t){var r;const e=(r=t.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list"))==null?void 0:r.children;return e&&[...e]}function getDimensions(t,e){const r=getTargetBox(t),n=nullifyTransforms(e),[o,s]=getComputedStyle(e).transformOrigin.split(" ").map(A=>parseFloat(A)),[c,l]=getComputedStyle(e).getPropertyValue("--v-overlay-anchor-origin").split(" ");let v=r.left+r.width/2;c==="left"||l==="left"?v-=r.width/2:(c==="right"||l==="right")&&(v+=r.width/2);let x=r.top+r.height/2;c==="top"||l==="top"?x-=r.height/2:(c==="bottom"||l==="bottom")&&(x+=r.height/2);const w=r.width/n.width,_=r.height/n.height,b=Math.max(1,w,_),E=w/b||0,I=_/b||0,O=n.width*n.height/(window.innerWidth*window.innerHeight),N=O>.12?Math.min(1.5,(O-.12)*10+1):1;return{x:v-(o+n.left),y:x-(s+n.top),sx:E,sy:I,speed:N}}createCssTransition("fab-transition","center center","out-in");createCssTransition("dialog-bottom-transition");createCssTransition("dialog-top-transition");const VFadeTransition=createCssTransition("fade-transition"),VScaleTransition=createCssTransition("scale-transition");createCssTransition("scroll-x-transition");createCssTransition("scroll-x-reverse-transition");createCssTransition("scroll-y-transition");createCssTransition("scroll-y-reverse-transition");createCssTransition("slide-x-transition");createCssTransition("slide-x-reverse-transition");const VSlideYTransition=createCssTransition("slide-y-transition");createCssTransition("slide-y-reverse-transition");const VExpandTransition=createJavascriptTransition("expand-transition",ExpandTransitionGenerator()),VExpandXTransition=createJavascriptTransition("expand-x-transition",ExpandTransitionGenerator("",!0)),makeVDefaultsProviderProps=propsFactory$1({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),VDefaultsProvider=genericComponent(!1)({name:"VDefaultsProvider",props:makeVDefaultsProviderProps(),setup(t,e){let{slots:r}=e;const{defaults:n,disabled:o,reset:s,root:c,scoped:l}=toRefs(t);return provideDefaults(n,{reset:s,root:c,scoped:l,disabled:o}),()=>{var v;return(v=r.default)==null?void 0:v.call(r)}}}),ListKey=Symbol.for("vuetify:list");function createList(){const t=inject$1(ListKey,{hasPrepend:shallowRef(!1),updateHasPrepend:()=>null}),e={hasPrepend:shallowRef(!1),updateHasPrepend:r=>{r&&(e.hasPrepend.value=r)}};return provide(ListKey,e),t}function useList(){return inject$1(ListKey,null)}const singleOpenStrategy={open:t=>{let{id:e,value:r,opened:n,parents:o}=t;if(r){const s=new Set;s.add(e);let c=o.get(e);for(;c!=null;)s.add(c),c=o.get(c);return s}else return n.delete(e),n},select:()=>null},multipleOpenStrategy={open:t=>{let{id:e,value:r,opened:n,parents:o}=t;if(r){let s=o.get(e);for(n.add(e);s!=null&&s!==e;)n.add(s),s=o.get(s);return n}else n.delete(e);return n},select:()=>null},listOpenStrategy={open:multipleOpenStrategy.open,select:t=>{let{id:e,value:r,opened:n,parents:o}=t;if(!r)return n;const s=[];let c=o.get(e);for(;c!=null;)s.push(c),c=o.get(c);return new Set(s)}},independentSelectStrategy=t=>{const e={select:r=>{let{id:n,value:o,selected:s}=r;if(n=toRaw(n),t&&!o){const c=Array.from(s.entries()).reduce((l,v)=>{let[x,w]=v;return w==="on"?[...l,x]:l},[]);if(c.length===1&&c[0]===n)return s}return s.set(n,o?"on":"off"),s},in:(r,n,o)=>{let s=new Map;for(const c of r||[])s=e.select({id:c,value:!0,selected:new Map(s),children:n,parents:o});return s},out:r=>{const n=[];for(const[o,s]of r.entries())s==="on"&&n.push(o);return n}};return e},independentSingleSelectStrategy=t=>{const e=independentSelectStrategy(t);return{select:n=>{let v=n,{selected:o,id:s}=v,c=fd(v,["selected","id"]);s=toRaw(s);const l=o.has(s)?new Map([[s,o.get(s)]]):new Map;return e.select(ei(Pt({},c),{id:s,selected:l}))},in:(n,o,s)=>{let c=new Map;return n!=null&&n.length&&(c=e.in(n.slice(0,1),o,s)),c},out:(n,o,s)=>e.out(n,o,s)}},leafSelectStrategy=t=>{const e=independentSelectStrategy(t);return{select:n=>{let v=n,{id:o,selected:s,children:c}=v,l=fd(v,["id","selected","children"]);return o=toRaw(o),c.has(o)?s:e.select(Pt({id:o,selected:s,children:c},l))},in:e.in,out:e.out}},leafSingleSelectStrategy=t=>{const e=independentSingleSelectStrategy(t);return{select:n=>{let v=n,{id:o,selected:s,children:c}=v,l=fd(v,["id","selected","children"]);return o=toRaw(o),c.has(o)?s:e.select(Pt({id:o,selected:s,children:c},l))},in:e.in,out:e.out}},classicSelectStrategy=t=>{const e={select:r=>{let{id:n,value:o,selected:s,children:c,parents:l}=r;n=toRaw(n);const v=new Map(s),x=[n];for(;x.length;){const _=x.shift();s.set(_,o?"on":"off"),c.has(_)&&x.push(...c.get(_))}let w=l.get(n);for(;w;){const _=c.get(w),b=_.every(I=>s.get(I)==="on"),E=_.every(I=>!s.has(I)||s.get(I)==="off");s.set(w,b?"on":E?"off":"indeterminate"),w=l.get(w)}return t&&!o&&Array.from(s.entries()).reduce((b,E)=>{let[I,O]=E;return O==="on"?[...b,I]:b},[]).length===0?v:s},in:(r,n,o)=>{let s=new Map;for(const c of r||[])s=e.select({id:c,value:!0,selected:new Map(s),children:n,parents:o});return s},out:(r,n)=>{const o=[];for(const[s,c]of r.entries())c==="on"&&!n.has(s)&&o.push(s);return o}};return e},VNestedSymbol=Symbol.for("vuetify:nested"),emptyNested={id:shallowRef(),root:{register:()=>null,unregister:()=>null,parents:ref(new Map),children:ref(new Map),open:()=>null,openOnSelect:()=>null,select:()=>null,opened:ref(new Set),selected:ref(new Map),selectedValues:ref([])}},makeNestedProps=propsFactory$1({selectStrategy:[String,Function],openStrategy:[String,Object],opened:Array,selected:Array,mandatory:Boolean},"nested"),useNested=t=>{let e=!1;const r=ref(new Map),n=ref(new Map),o=useProxiedModel(t,"opened",t.opened,_=>new Set(_),_=>[..._.values()]),s=computed(()=>{if(typeof t.selectStrategy=="object")return t.selectStrategy;switch(t.selectStrategy){case"single-leaf":return leafSingleSelectStrategy(t.mandatory);case"leaf":return leafSelectStrategy(t.mandatory);case"independent":return independentSelectStrategy(t.mandatory);case"single-independent":return independentSingleSelectStrategy(t.mandatory);case"classic":default:return classicSelectStrategy(t.mandatory)}}),c=computed(()=>{if(typeof t.openStrategy=="object")return t.openStrategy;switch(t.openStrategy){case"list":return listOpenStrategy;case"single":return singleOpenStrategy;case"multiple":default:return multipleOpenStrategy}}),l=useProxiedModel(t,"selected",t.selected,_=>s.value.in(_,r.value,n.value),_=>s.value.out(_,r.value,n.value));onBeforeUnmount(()=>{e=!0});function v(_){const b=[];let E=_;for(;E!=null;)b.unshift(E),E=n.value.get(E);return b}const x=getCurrentInstance("nested"),w={id:shallowRef(),root:{opened:o,selected:l,selectedValues:computed(()=>{const _=[];for(const[b,E]of l.value.entries())E==="on"&&_.push(b);return _}),register:(_,b,E)=>{b&&_!==b&&n.value.set(_,b),E&&r.value.set(_,[]),b!=null&&r.value.set(b,[...r.value.get(b)||[],_])},unregister:_=>{var E;if(e)return;r.value.delete(_);const b=n.value.get(_);if(b){const I=(E=r.value.get(b))!=null?E:[];r.value.set(b,I.filter(O=>O!==_))}n.value.delete(_),o.value.delete(_)},open:(_,b,E)=>{x.emit("click:open",{id:_,value:b,path:v(_),event:E});const I=c.value.open({id:_,value:b,opened:new Set(o.value),children:r.value,parents:n.value,event:E});I&&(o.value=I)},openOnSelect:(_,b,E)=>{const I=c.value.select({id:_,value:b,selected:new Map(l.value),opened:new Set(o.value),children:r.value,parents:n.value,event:E});I&&(o.value=I)},select:(_,b,E)=>{x.emit("click:select",{id:_,value:b,path:v(_),event:E});const I=s.value.select({id:_,value:b,selected:new Map(l.value),children:r.value,parents:n.value,event:E});I&&(l.value=I),w.root.openOnSelect(_,b,E)},children:r,parents:n}};return provide(VNestedSymbol,w),w.root},useNestedItem=(t,e)=>{const r=inject$1(VNestedSymbol,emptyNested),n=Symbol(getUid()),o=computed(()=>t.value!==void 0?t.value:n),s=ei(Pt({},r),{id:o,open:(c,l)=>r.root.open(o.value,c,l),openOnSelect:(c,l)=>r.root.openOnSelect(o.value,c,l),isOpen:computed(()=>r.root.opened.value.has(o.value)),parent:computed(()=>r.root.parents.value.get(o.value)),select:(c,l)=>r.root.select(o.value,c,l),isSelected:computed(()=>r.root.selected.value.get(toRaw(o.value))==="on"),isIndeterminate:computed(()=>r.root.selected.value.get(o.value)==="indeterminate"),isLeaf:computed(()=>!r.root.children.value.get(o.value)),isGroupActivator:r.isGroupActivator});return!r.isGroupActivator&&r.root.register(o.value,r.id.value,e),onBeforeUnmount(()=>{!r.isGroupActivator&&r.root.unregister(o.value)}),e&&provide(VNestedSymbol,s),s},useNestedGroupActivator=()=>{const t=inject$1(VNestedSymbol,emptyNested);provide(VNestedSymbol,ei(Pt({},t),{isGroupActivator:!0}))};function useSsrBoot(){const t=shallowRef(!1);return onMounted(()=>{window.requestAnimationFrame(()=>{t.value=!0})}),{ssrBootStyles:computed(()=>t.value?void 0:{transition:"none !important"}),isBooted:readonly(t)}}const makeTransitionProps=propsFactory$1({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:t=>t!==!0}},"transition"),MaybeTransition=(t,e)=>{let{slots:r}=e;const v=t,{transition:n,disabled:o}=v,s=fd(v,["transition","disabled"]),x=typeof n=="object"?n:{},{component:c=Transition}=x,l=fd(x,["component"]);return h(c,mergeProps(typeof n=="string"?{name:o?"":n}:l,s,{disabled:o}),r)},VListGroupActivator=defineComponent({name:"VListGroupActivator",setup(t,e){let{slots:r}=e;return useNestedGroupActivator(),()=>{var n;return(n=r.default)==null?void 0:n.call(r)}}}),makeVListGroupProps=propsFactory$1(Pt(Pt({activeColor:String,baseColor:String,color:String,collapseIcon:{type:IconValue$1,default:"$collapse"},expandIcon:{type:IconValue$1,default:"$expand"},prependIcon:IconValue$1,appendIcon:IconValue$1,fluid:Boolean,subgroup:Boolean,title:String,value:null},makeComponentProps()),makeTagProps()),"VListGroup"),VListGroup=genericComponent()({name:"VListGroup",props:makeVListGroupProps(),setup(t,e){let{slots:r}=e;const{isOpen:n,open:o,id:s}=useNestedItem(toRef(t,"value"),!0),c=computed(()=>`v-list-group--id-${String(s.value)}`),l=useList(),{isBooted:v}=useSsrBoot();function x(E){o(!n.value,E)}const w=computed(()=>({onClick:x,class:"v-list-group__header",id:c.value})),_=computed(()=>n.value?t.collapseIcon:t.expandIcon),b=computed(()=>({VListItem:{active:n.value,activeColor:t.activeColor,baseColor:t.baseColor,color:t.color,prependIcon:t.prependIcon||t.subgroup&&_.value,appendIcon:t.appendIcon||!t.subgroup&&_.value,title:t.title,value:t.value}}));return useRender(()=>createVNode(t.tag,{class:["v-list-group",{"v-list-group--prepend":l==null?void 0:l.hasPrepend.value,"v-list-group--fluid":t.fluid,"v-list-group--subgroup":t.subgroup,"v-list-group--open":n.value},t.class],style:t.style},{default:()=>[r.activator&&createVNode(VDefaultsProvider,{defaults:b.value},{default:()=>[createVNode(VListGroupActivator,null,{default:()=>[r.activator({props:w.value,isOpen:n.value})]})]}),createVNode(MaybeTransition,{transition:{component:VExpandTransition},disabled:!v.value},{default:()=>{var E;return[withDirectives(createVNode("div",{class:"v-list-group__items",role:"group","aria-labelledby":c.value},[(E=r.default)==null?void 0:E.call(r)]),[[vShow,n.value]])]}})]})),{}}}),VListItem$1="",VListItemSubtitle=createSimpleFunctional("v-list-item-subtitle"),VListItemTitle=createSimpleFunctional("v-list-item-title"),VAvatar$1="",VImg$1="",VResponsive$1="",makeDimensionProps=propsFactory$1({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function useDimension(t){return{dimensionStyles:computed(()=>({height:convertToUnit(t.height),maxHeight:convertToUnit(t.maxHeight),maxWidth:convertToUnit(t.maxWidth),minHeight:convertToUnit(t.minHeight),minWidth:convertToUnit(t.minWidth),width:convertToUnit(t.width)}))}}function useAspectStyles(t){return{aspectStyles:computed(()=>{const e=Number(t.aspectRatio);return e?{paddingBottom:String(1/e*100)+"%"}:void 0})}}const makeVResponsiveProps=propsFactory$1(Pt(Pt({aspectRatio:[String,Number],contentClass:String,inline:Boolean},makeComponentProps()),makeDimensionProps()),"VResponsive"),VResponsive=genericComponent()({name:"VResponsive",props:makeVResponsiveProps(),setup(t,e){let{slots:r}=e;const{aspectStyles:n}=useAspectStyles(t),{dimensionStyles:o}=useDimension(t);return useRender(()=>{var s;return createVNode("div",{class:["v-responsive",{"v-responsive--inline":t.inline},t.class],style:[o.value,t.style]},[createVNode("div",{class:"v-responsive__sizer",style:n.value},null),(s=r.additional)==null?void 0:s.call(r),r.default&&createVNode("div",{class:["v-responsive__content",t.contentClass]},[r.default()])])}),{}}}),makeRoundedProps=propsFactory$1({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function useRounded(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:getCurrentInstanceName();return{roundedClasses:computed(()=>{const n=isRef(t)?t.value:t.rounded,o=isRef(t)?t.value:t.tile,s=[];if(n===!0||n==="")s.push(`${e}--rounded`);else if(typeof n=="string"||n===0)for(const c of String(n).split(" "))s.push(`rounded-${c}`);else o&&s.push("rounded-0");return s})}}function mounted$5(t,e){if(!SUPPORTS_INTERSECTION)return;const r=e.modifiers||{},n=e.value,{handler:o,options:s}=typeof n=="object"?n:{handler:n,options:{}},c=new IntersectionObserver(function(){var _;let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],v=arguments.length>1?arguments[1]:void 0;const x=(_=t._observe)==null?void 0:_[e.instance.$.uid];if(!x)return;const w=l.some(b=>b.isIntersecting);o&&(!r.quiet||x.init)&&(!r.once||w||x.init)&&o(w,l,v),w&&r.once?unmounted$4(t,e):x.init=!0},s);t._observe=Object(t._observe),t._observe[e.instance.$.uid]={init:!1,observer:c},c.observe(t)}function unmounted$4(t,e){var n;const r=(n=t._observe)==null?void 0:n[e.instance.$.uid];!r||(r.observer.unobserve(t),delete t._observe[e.instance.$.uid])}const Intersect={mounted:mounted$5,unmounted:unmounted$4},Intersect$1=Intersect,makeVImgProps=propsFactory$1(Pt(Pt(Pt(Pt({alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String},makeVResponsiveProps()),makeComponentProps()),makeRoundedProps()),makeTransitionProps()),"VImg"),VImg=genericComponent()({name:"VImg",directives:{intersect:Intersect$1},props:makeVImgProps(),emits:{loadstart:t=>!0,load:t=>!0,error:t=>!0},setup(t,e){let{emit:r,slots:n}=e;const{backgroundColorClasses:o,backgroundColorStyles:s}=useBackgroundColor(toRef(t,"color")),{roundedClasses:c}=useRounded(t),l=getCurrentInstance("VImg"),v=shallowRef(""),x=ref(),w=shallowRef(t.eager?"loading":"idle"),_=shallowRef(),b=shallowRef(),E=computed(()=>t.src&&typeof t.src=="object"?{src:t.src.src,srcset:t.srcset||t.src.srcset,lazySrc:t.lazySrc||t.src.lazySrc,aspect:Number(t.aspectRatio||t.src.aspect||0)}:{src:t.src,srcset:t.srcset,lazySrc:t.lazySrc,aspect:Number(t.aspectRatio||0)}),I=computed(()=>E.value.aspect||_.value/b.value||0);watch(()=>t.src,()=>{O(w.value!=="idle")}),watch(I,(le,fe)=>{!le&&fe&&x.value&&V(x.value)}),onBeforeMount(()=>O());function O(le){if(!(t.eager&&le)&&!(SUPPORTS_INTERSECTION&&!le&&!t.eager)){if(w.value="loading",E.value.lazySrc){const fe=new Image;fe.src=E.value.lazySrc,V(fe,null)}!E.value.src||nextTick(()=>{var fe;r("loadstart",((fe=x.value)==null?void 0:fe.currentSrc)||E.value.src),setTimeout(()=>{var me;if(!l.isUnmounted)if((me=x.value)!=null&&me.complete){if(x.value.naturalWidth||A(),w.value==="error")return;I.value||V(x.value,null),w.value==="loading"&&N()}else I.value||V(x.value),z()})})}}function N(){var le;l.isUnmounted||(z(),V(x.value),w.value="loaded",r("load",((le=x.value)==null?void 0:le.currentSrc)||E.value.src))}function A(){var le;l.isUnmounted||(w.value="error",r("error",((le=x.value)==null?void 0:le.currentSrc)||E.value.src))}function z(){const le=x.value;le&&(v.value=le.currentSrc||le.src)}let G=-1;onBeforeUnmount(()=>{clearTimeout(G)});function V(le){let fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const me=()=>{if(clearTimeout(G),l.isUnmounted)return;const{naturalHeight:ye,naturalWidth:Te}=le;ye||Te?(_.value=Te,b.value=ye):!le.complete&&w.value==="loading"&&fe!=null?G=window.setTimeout(me,fe):(le.currentSrc.endsWith(".svg")||le.currentSrc.startsWith("data:image/svg+xml"))&&(_.value=1,b.value=1)};me()}const ne=computed(()=>({"v-img__img--cover":t.cover,"v-img__img--contain":!t.cover})),W=()=>{var me;if(!E.value.src||w.value==="idle")return null;const le=createVNode("img",{class:["v-img__img",ne.value],style:{objectPosition:t.position},src:E.value.src,srcset:E.value.srcset,alt:t.alt,crossorigin:t.crossorigin,referrerpolicy:t.referrerpolicy,draggable:t.draggable,sizes:t.sizes,ref:x,onLoad:N,onError:A},null),fe=(me=n.sources)==null?void 0:me.call(n);return createVNode(MaybeTransition,{transition:t.transition,appear:!0},{default:()=>[withDirectives(fe?createVNode("picture",{class:"v-img__picture"},[fe,le]):le,[[vShow,w.value==="loaded"]])]})},B=()=>createVNode(MaybeTransition,{transition:t.transition},{default:()=>[E.value.lazySrc&&w.value!=="loaded"&&createVNode("img",{class:["v-img__img","v-img__img--preload",ne.value],style:{objectPosition:t.position},src:E.value.lazySrc,alt:t.alt,crossorigin:t.crossorigin,referrerpolicy:t.referrerpolicy,draggable:t.draggable},null)]}),q=()=>n.placeholder?createVNode(MaybeTransition,{transition:t.transition,appear:!0},{default:()=>[(w.value==="loading"||w.value==="error"&&!n.error)&&createVNode("div",{class:"v-img__placeholder"},[n.placeholder()])]}):null,D=()=>n.error?createVNode(MaybeTransition,{transition:t.transition,appear:!0},{default:()=>[w.value==="error"&&createVNode("div",{class:"v-img__error"},[n.error()])]}):null,F=()=>t.gradient?createVNode("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${t.gradient})`}},null):null,re=shallowRef(!1);{const le=watch(I,fe=>{fe&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{re.value=!0})}),le())})}return useRender(()=>{const le=VResponsive.filterProps(t);return withDirectives(createVNode(VResponsive,mergeProps({class:["v-img",{"v-img--booting":!re.value},o.value,c.value,t.class],style:[{width:convertToUnit(t.width==="auto"?_.value:t.width)},s.value,t.style]},le,{aspectRatio:I.value,"aria-label":t.alt,role:t.alt?"img":void 0}),{additional:()=>createVNode(Fragment,null,[createVNode(W,null,null),createVNode(B,null,null),createVNode(F,null,null),createVNode(q,null,null),createVNode(D,null,null)]),default:n.default}),[[resolveDirective("intersect"),{handler:O,options:t.options},null,{once:!0}]])}),{currentSrc:v,image:x,state:w,naturalWidth:_,naturalHeight:b}}}),allowedDensities$1=[null,"default","comfortable","compact"],makeDensityProps=propsFactory$1({density:{type:String,default:"default",validator:t=>allowedDensities$1.includes(t)}},"density");function useDensity(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:getCurrentInstanceName();return{densityClasses:computed(()=>`${e}--density-${t.density}`)}}const allowedVariants$2=["elevated","flat","tonal","outlined","text","plain"];function genOverlays(t,e){return createVNode(Fragment,null,[t&&createVNode("span",{key:"overlay",class:`${e}__overlay`},null),createVNode("span",{key:"underlay",class:`${e}__underlay`},null)])}const makeVariantProps=propsFactory$1({color:String,variant:{type:String,default:"elevated",validator:t=>allowedVariants$2.includes(t)}},"variant");function useVariant(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:getCurrentInstanceName();const r=computed(()=>{const{variant:s}=unref(t);return`${e}--variant-${s}`}),{colorClasses:n,colorStyles:o}=useColor(computed(()=>{const{variant:s,color:c}=unref(t);return{[["elevated","flat"].includes(s)?"background":"text"]:c}}));return{colorClasses:n,colorStyles:o,variantClasses:r}}const makeVAvatarProps=propsFactory$1(Pt(Pt(Pt(Pt(Pt(Pt(Pt({start:Boolean,end:Boolean,icon:IconValue$1,image:String,text:String},makeComponentProps()),makeDensityProps()),makeRoundedProps()),makeSizeProps()),makeTagProps()),makeThemeProps()),makeVariantProps({variant:"flat"})),"VAvatar"),VAvatar=genericComponent()({name:"VAvatar",props:makeVAvatarProps(),setup(t,e){let{slots:r}=e;const{themeClasses:n}=provideTheme(t),{colorClasses:o,colorStyles:s,variantClasses:c}=useVariant(t),{densityClasses:l}=useDensity(t),{roundedClasses:v}=useRounded(t),{sizeClasses:x,sizeStyles:w}=useSize(t);return useRender(()=>createVNode(t.tag,{class:["v-avatar",{"v-avatar--start":t.start,"v-avatar--end":t.end},n.value,o.value,l.value,v.value,x.value,c.value,t.class],style:[s.value,w.value,t.style]},{default:()=>[r.default?createVNode(VDefaultsProvider,{key:"content-defaults",defaults:{VImg:{cover:!0,image:t.image},VIcon:{icon:t.icon}}},{default:()=>[r.default()]}):t.image?createVNode(VImg,{key:"image",src:t.image,alt:"",cover:!0},null):t.icon?createVNode(VIcon,{key:"icon",icon:t.icon},null):t.text,genOverlays(!1,"v-avatar")]})),{}}}),makeBorderProps=propsFactory$1({border:[Boolean,Number,String]},"border");function useBorder(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:getCurrentInstanceName();return{borderClasses:computed(()=>{const n=isRef(t)?t.value:t.border,o=[];if(n===!0||n==="")o.push(`${e}--border`);else if(typeof n=="string"||n===0)for(const s of String(n).split(" "))o.push(`border-${s}`);return o})}}const makeElevationProps=propsFactory$1({elevation:{type:[Number,String],validator(t){const e=parseInt(t);return!isNaN(e)&&e>=0&&e<=24}}},"elevation");function useElevation(t){return{elevationClasses:computed(()=>{const r=isRef(t)?t.value:t.elevation,n=[];return r==null||n.push(`elevation-${r}`),n})}}function useRoute(){const t=getCurrentInstance("useRoute");return computed(()=>{var e;return(e=t==null?void 0:t.proxy)==null?void 0:e.$route})}function useRouter(){var t,e;return(e=(t=getCurrentInstance("useRouter"))==null?void 0:t.proxy)==null?void 0:e.$router}function useLink(t,e){const r=resolveDynamicComponent("RouterLink"),n=computed(()=>!!(t.href||t.to)),o=computed(()=>(n==null?void 0:n.value)||hasEvent(e,"click")||hasEvent(t,"click"));if(typeof r=="string")return{isLink:n,isClickable:o,href:toRef(t,"href")};const s=t.to?r.useLink(t):void 0,c=useRoute();return{isLink:n,isClickable:o,route:s==null?void 0:s.route,navigate:s==null?void 0:s.navigate,isActive:s&&computed(()=>{var l,v,x;return t.exact?c.value?((x=s.isExactActive)==null?void 0:x.value)&&deepEqual(s.route.value.query,c.value.query):(v=s.isExactActive)==null?void 0:v.value:(l=s.isActive)==null?void 0:l.value}),href:computed(()=>t.to?s==null?void 0:s.route.value.href:t.href)}}const makeRouterProps=propsFactory$1({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let inTransition=!1;function useBackButton(t,e){let r=!1,n,o;IN_BROWSER&&(nextTick(()=>{window.addEventListener("popstate",s),n=t==null?void 0:t.beforeEach((c,l,v)=>{inTransition?r?e(v):v():setTimeout(()=>r?e(v):v()),inTransition=!0}),o=t==null?void 0:t.afterEach(()=>{inTransition=!1})}),onScopeDispose(()=>{window.removeEventListener("popstate",s),n==null||n(),o==null||o()}));function s(c){var l;(l=c.state)!=null&&l.replaced||(r=!0,setTimeout(()=>r=!1))}}const VRipple="",stopSymbol=Symbol("rippleStop"),DELAY_RIPPLE=80;function transform$1(t,e){t.style.transform=e,t.style.webkitTransform=e}function isTouchEvent(t){return t.constructor.name==="TouchEvent"}function isKeyboardEvent(t){return t.constructor.name==="KeyboardEvent"}const calculate=function(t,e){var _;let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=0,o=0;if(!isKeyboardEvent(t)){const b=e.getBoundingClientRect(),E=isTouchEvent(t)?t.touches[t.touches.length-1]:t;n=E.clientX-b.left,o=E.clientY-b.top}let s=0,c=.3;(_=e._ripple)!=null&&_.circle?(c=.15,s=e.clientWidth/2,s=r.center?s:s+Math.sqrt(Ka(n-s,2)+Ka(o-s,2))/4):s=Math.sqrt(Ka(e.clientWidth,2)+Ka(e.clientHeight,2))/2;const l=`${(e.clientWidth-s*2)/2}px`,v=`${(e.clientHeight-s*2)/2}px`,x=r.center?l:`${n-s}px`,w=r.center?v:`${o-s}px`;return{radius:s,scale:c,x,y:w,centerX:l,centerY:v}},ripples={show(t,e){var E;let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((E=e==null?void 0:e._ripple)!=null&&E.enabled))return;const n=document.createElement("span"),o=document.createElement("span");n.appendChild(o),n.className="v-ripple__container",r.class&&(n.className+=` ${r.class}`);const{radius:s,scale:c,x:l,y:v,centerX:x,centerY:w}=calculate(t,e,r),_=`${s*2}px`;o.className="v-ripple__animation",o.style.width=_,o.style.height=_,e.appendChild(n);const b=window.getComputedStyle(e);b&&b.position==="static"&&(e.style.position="relative",e.dataset.previousPosition="static"),o.classList.add("v-ripple__animation--enter"),o.classList.add("v-ripple__animation--visible"),transform$1(o,`translate(${l}, ${v}) scale3d(${c},${c},${c})`),o.dataset.activated=String(performance.now()),setTimeout(()=>{o.classList.remove("v-ripple__animation--enter"),o.classList.add("v-ripple__animation--in"),transform$1(o,`translate(${x}, ${w}) scale3d(1,1,1)`)},0)},hide(t){var s;if(!((s=t==null?void 0:t._ripple)!=null&&s.enabled))return;const e=t.getElementsByClassName("v-ripple__animation");if(e.length===0)return;const r=e[e.length-1];if(r.dataset.isHiding)return;r.dataset.isHiding="true";const n=performance.now()-Number(r.dataset.activated),o=Math.max(250-n,0);setTimeout(()=>{r.classList.remove("v-ripple__animation--in"),r.classList.add("v-ripple__animation--out"),setTimeout(()=>{var l;t.getElementsByClassName("v-ripple__animation").length===1&&t.dataset.previousPosition&&(t.style.position=t.dataset.previousPosition,delete t.dataset.previousPosition),((l=r.parentNode)==null?void 0:l.parentNode)===t&&t.removeChild(r.parentNode)},300)},o)}};function isRippleEnabled(t){return typeof t=="undefined"||!!t}function rippleShow(t){const e={},r=t.currentTarget;if(!(!(r!=null&&r._ripple)||r._ripple.touched||t[stopSymbol])){if(t[stopSymbol]=!0,isTouchEvent(t))r._ripple.touched=!0,r._ripple.isTouch=!0;else if(r._ripple.isTouch)return;if(e.center=r._ripple.centered||isKeyboardEvent(t),r._ripple.class&&(e.class=r._ripple.class),isTouchEvent(t)){if(r._ripple.showTimerCommit)return;r._ripple.showTimerCommit=()=>{ripples.show(t,r,e)},r._ripple.showTimer=window.setTimeout(()=>{var n;(n=r==null?void 0:r._ripple)!=null&&n.showTimerCommit&&(r._ripple.showTimerCommit(),r._ripple.showTimerCommit=null)},DELAY_RIPPLE)}else ripples.show(t,r,e)}}function rippleStop(t){t[stopSymbol]=!0}function rippleHide(t){const e=t.currentTarget;if(!!(e!=null&&e._ripple)){if(window.clearTimeout(e._ripple.showTimer),t.type==="touchend"&&e._ripple.showTimerCommit){e._ripple.showTimerCommit(),e._ripple.showTimerCommit=null,e._ripple.showTimer=window.setTimeout(()=>{rippleHide(t)});return}window.setTimeout(()=>{e._ripple&&(e._ripple.touched=!1)}),ripples.hide(e)}}function rippleCancelShow(t){const e=t.currentTarget;!(e!=null&&e._ripple)||(e._ripple.showTimerCommit&&(e._ripple.showTimerCommit=null),window.clearTimeout(e._ripple.showTimer))}let keyboardRipple=!1;function keyboardRippleShow(t){!keyboardRipple&&(t.keyCode===keyCodes.enter||t.keyCode===keyCodes.space)&&(keyboardRipple=!0,rippleShow(t))}function keyboardRippleHide(t){keyboardRipple=!1,rippleHide(t)}function focusRippleHide(t){keyboardRipple&&(keyboardRipple=!1,rippleHide(t))}function updateRipple(t,e,r){var c;const{value:n,modifiers:o}=e,s=isRippleEnabled(n);if(s||ripples.hide(t),t._ripple=(c=t._ripple)!=null?c:{},t._ripple.enabled=s,t._ripple.centered=o.center,t._ripple.circle=o.circle,isObject$3(n)&&n.class&&(t._ripple.class=n.class),s&&!r){if(o.stop){t.addEventListener("touchstart",rippleStop,{passive:!0}),t.addEventListener("mousedown",rippleStop);return}t.addEventListener("touchstart",rippleShow,{passive:!0}),t.addEventListener("touchend",rippleHide,{passive:!0}),t.addEventListener("touchmove",rippleCancelShow,{passive:!0}),t.addEventListener("touchcancel",rippleHide),t.addEventListener("mousedown",rippleShow),t.addEventListener("mouseup",rippleHide),t.addEventListener("mouseleave",rippleHide),t.addEventListener("keydown",keyboardRippleShow),t.addEventListener("keyup",keyboardRippleHide),t.addEventListener("blur",focusRippleHide),t.addEventListener("dragstart",rippleHide,{passive:!0})}else!s&&r&&removeListeners(t)}function removeListeners(t){t.removeEventListener("mousedown",rippleShow),t.removeEventListener("touchstart",rippleShow),t.removeEventListener("touchend",rippleHide),t.removeEventListener("touchmove",rippleCancelShow),t.removeEventListener("touchcancel",rippleHide),t.removeEventListener("mouseup",rippleHide),t.removeEventListener("mouseleave",rippleHide),t.removeEventListener("keydown",keyboardRippleShow),t.removeEventListener("keyup",keyboardRippleHide),t.removeEventListener("dragstart",rippleHide),t.removeEventListener("blur",focusRippleHide)}function mounted$4(t,e){updateRipple(t,e,!1)}function unmounted$3(t){delete t._ripple,removeListeners(t)}function updated(t,e){if(e.value===e.oldValue)return;const r=isRippleEnabled(e.oldValue);updateRipple(t,e,r)}const Ripple={mounted:mounted$4,unmounted:unmounted$3,updated},makeVListItemProps=propsFactory$1(Pt(Pt(Pt(Pt(Pt(Pt(Pt(Pt(Pt(Pt({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:IconValue$1,baseColor:String,disabled:Boolean,lines:String,link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:IconValue$1,ripple:{type:[Boolean,Object],default:!0},slim:Boolean,subtitle:[String,Number],title:[String,Number],value:null,onClick:EventProp(),onClickOnce:EventProp()},makeBorderProps()),makeComponentProps()),makeDensityProps()),makeDimensionProps()),makeElevationProps()),makeRoundedProps()),makeRouterProps()),makeTagProps()),makeThemeProps()),makeVariantProps({variant:"text"})),"VListItem"),VListItem=genericComponent()({name:"VListItem",directives:{Ripple},props:makeVListItemProps(),emits:{click:t=>!0},setup(t,e){let{attrs:r,slots:n,emit:o}=e;const s=useLink(t,r),c=computed(()=>t.value===void 0?s.href.value:t.value),{select:l,isSelected:v,isIndeterminate:x,isGroupActivator:w,root:_,parent:b,openOnSelect:E}=useNestedItem(c,!1),I=useList(),O=computed(()=>{var Le;return t.active!==!1&&(t.active||((Le=s.isActive)==null?void 0:Le.value)||v.value)}),N=computed(()=>t.link!==!1&&s.isLink.value),A=computed(()=>!t.disabled&&t.link!==!1&&(t.link||s.isClickable.value||t.value!=null&&!!I)),z=computed(()=>t.rounded||t.nav),G=computed(()=>{var Le;return(Le=t.color)!=null?Le:t.activeColor}),V=computed(()=>{var Le;return{color:O.value&&(Le=G.value)!=null?Le:t.baseColor,variant:t.variant}});watch(()=>{var Le;return(Le=s.isActive)==null?void 0:Le.value},Le=>{Le&&b.value!=null&&_.open(b.value,!0),Le&&E(Le)},{immediate:!0});const{themeClasses:ne}=provideTheme(t),{borderClasses:W}=useBorder(t),{colorClasses:B,colorStyles:q,variantClasses:D}=useVariant(V),{densityClasses:F}=useDensity(t),{dimensionStyles:re}=useDimension(t),{elevationClasses:le}=useElevation(t),{roundedClasses:fe}=useRounded(z),me=computed(()=>t.lines?`v-list-item--${t.lines}-line`:void 0),ye=computed(()=>({isActive:O.value,select:l,isSelected:v.value,isIndeterminate:x.value}));function Te(Le){var et;o("click",Le),!(w||!A.value)&&((et=s.navigate)==null||et.call(s,Le),t.value!=null&&l(!v.value,Le))}function ke(Le){(Le.key==="Enter"||Le.key===" ")&&(Le.preventDefault(),Te(Le))}return useRender(()=>{const Le=N.value?"a":t.tag,et=n.title||t.title!=null,it=n.subtitle||t.subtitle!=null,Ue=!!(t.appendAvatar||t.appendIcon),ht=!!(Ue||n.append),De=!!(t.prependAvatar||t.prependIcon),Be=!!(De||n.prepend);return I==null||I.updateHasPrepend(Be),t.activeColor&&deprecate("active-color",["color","base-color"]),withDirectives(createVNode(Le,{class:["v-list-item",{"v-list-item--active":O.value,"v-list-item--disabled":t.disabled,"v-list-item--link":A.value,"v-list-item--nav":t.nav,"v-list-item--prepend":!Be&&(I==null?void 0:I.hasPrepend.value),"v-list-item--slim":t.slim,[`${t.activeClass}`]:t.activeClass&&O.value},ne.value,W.value,B.value,F.value,le.value,me.value,fe.value,D.value,t.class],style:[q.value,re.value,t.style],href:s.href.value,tabindex:A.value?I?-2:0:void 0,onClick:Te,onKeydown:A.value&&!N.value&&ke},{default:()=>{var Ve;return[genOverlays(A.value||O.value,"v-list-item"),Be&&createVNode("div",{key:"prepend",class:"v-list-item__prepend"},[n.prepend?createVNode(VDefaultsProvider,{key:"prepend-defaults",disabled:!De,defaults:{VAvatar:{density:t.density,image:t.prependAvatar},VIcon:{density:t.density,icon:t.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var He;return[(He=n.prepend)==null?void 0:He.call(n,ye.value)]}}):createVNode(Fragment,null,[t.prependAvatar&&createVNode(VAvatar,{key:"prepend-avatar",density:t.density,image:t.prependAvatar},null),t.prependIcon&&createVNode(VIcon,{key:"prepend-icon",density:t.density,icon:t.prependIcon},null)]),createVNode("div",{class:"v-list-item__spacer"},null)]),createVNode("div",{class:"v-list-item__content","data-no-activator":""},[et&&createVNode(VListItemTitle,{key:"title"},{default:()=>{var He,gt;return[(gt=(He=n.title)==null?void 0:He.call(n,{title:t.title}))!=null?gt:t.title]}}),it&&createVNode(VListItemSubtitle,{key:"subtitle"},{default:()=>{var He,gt;return[(gt=(He=n.subtitle)==null?void 0:He.call(n,{subtitle:t.subtitle}))!=null?gt:t.subtitle]}}),(Ve=n.default)==null?void 0:Ve.call(n,ye.value)]),ht&&createVNode("div",{key:"append",class:"v-list-item__append"},[n.append?createVNode(VDefaultsProvider,{key:"append-defaults",disabled:!Ue,defaults:{VAvatar:{density:t.density,image:t.appendAvatar},VIcon:{density:t.density,icon:t.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var He;return[(He=n.append)==null?void 0:He.call(n,ye.value)]}}):createVNode(Fragment,null,[t.appendIcon&&createVNode(VIcon,{key:"append-icon",density:t.density,icon:t.appendIcon},null),t.appendAvatar&&createVNode(VAvatar,{key:"append-avatar",density:t.density,image:t.appendAvatar},null)]),createVNode("div",{class:"v-list-item__spacer"},null)])]}}),[[resolveDirective("ripple"),A.value&&t.ripple]])}),{}}}),makeVListSubheaderProps=propsFactory$1(Pt(Pt({color:String,inset:Boolean,sticky:Boolean,title:String},makeComponentProps()),makeTagProps()),"VListSubheader"),VListSubheader=genericComponent()({name:"VListSubheader",props:makeVListSubheaderProps(),setup(t,e){let{slots:r}=e;const{textColorClasses:n,textColorStyles:o}=useTextColor(toRef(t,"color"));return useRender(()=>{const s=!!(r.default||t.title);return createVNode(t.tag,{class:["v-list-subheader",{"v-list-subheader--inset":t.inset,"v-list-subheader--sticky":t.sticky},n.value,t.class],style:[{textColorStyles:o},t.style]},{default:()=>{var c,l;return[s&&createVNode("div",{class:"v-list-subheader__text"},[(l=(c=r.default)==null?void 0:c.call(r))!=null?l:t.title])]}})}),{}}}),VDivider$1="",makeVDividerProps=propsFactory$1(Pt(Pt({color:String,inset:Boolean,length:[Number,String],thickness:[Number,String],vertical:Boolean},makeComponentProps()),makeThemeProps()),"VDivider"),VDivider=genericComponent()({name:"VDivider",props:makeVDividerProps(),setup(t,e){let{attrs:r}=e;const{themeClasses:n}=provideTheme(t),{textColorClasses:o,textColorStyles:s}=useTextColor(toRef(t,"color")),c=computed(()=>{const l={};return t.length&&(l[t.vertical?"maxHeight":"maxWidth"]=convertToUnit(t.length)),t.thickness&&(l[t.vertical?"borderRightWidth":"borderTopWidth"]=convertToUnit(t.thickness)),l});return useRender(()=>createVNode("hr",{class:[{"v-divider":!0,"v-divider--inset":t.inset,"v-divider--vertical":t.vertical},n.value,o.value,t.class],style:[c.value,s.value,t.style],"aria-orientation":!r.role||r.role==="separator"?t.vertical?"vertical":"horizontal":void 0,role:`${r.role||"separator"}`},null)),{}}}),makeVListChildrenProps=propsFactory$1({items:Array,returnObject:Boolean},"VListChildren"),VListChildren=genericComponent()({name:"VListChildren",props:makeVListChildrenProps(),setup(t,e){let{slots:r}=e;return createList(),()=>{var n,o,s;return(s=(n=r.default)==null?void 0:n.call(r))!=null?s:(o=t.items)==null?void 0:o.map(c=>{var E,I,O,N;let{children:l,props:v,type:x,raw:w}=c;if(x==="divider")return(I=(E=r.divider)==null?void 0:E.call(r,{props:v}))!=null?I:createVNode(VDivider,v,null);if(x==="subheader")return(N=(O=r.subheader)==null?void 0:O.call(r,{props:v}))!=null?N:createVNode(VListSubheader,v,null);const _={subtitle:r.subtitle?A=>{var z;return(z=r.subtitle)==null?void 0:z.call(r,ei(Pt({},A),{item:w}))}:void 0,prepend:r.prepend?A=>{var z;return(z=r.prepend)==null?void 0:z.call(r,ei(Pt({},A),{item:w}))}:void 0,append:r.append?A=>{var z;return(z=r.append)==null?void 0:z.call(r,ei(Pt({},A),{item:w}))}:void 0,title:r.title?A=>{var z;return(z=r.title)==null?void 0:z.call(r,ei(Pt({},A),{item:w}))}:void 0},b=VListGroup.filterProps(v);return l?createVNode(VListGroup,mergeProps({value:v==null?void 0:v.value},b),{activator:A=>{let{props:z}=A;const G=ei(Pt(Pt({},v),z),{value:t.returnObject?w:v.value});return r.header?r.header({props:G}):createVNode(VListItem,G,_)},default:()=>createVNode(VListChildren,{items:l},r)}):r.item?r.item({props:v}):createVNode(VListItem,mergeProps(v,{value:t.returnObject?w:v.value}),_)})}}}),makeItemsProps=propsFactory$1({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},returnObject:Boolean,valueComparator:{type:Function,default:deepEqual}},"list-items");function transformItem$1(t,e){var l;const r=getPropertyFromItem(e,t.itemTitle,e),n=getPropertyFromItem(e,t.itemValue,r),o=getPropertyFromItem(e,t.itemChildren),s=t.itemProps===!0?typeof e=="object"&&e!=null&&!Array.isArray(e)?"children"in e?omit(e,["children"]):e:void 0:getPropertyFromItem(e,t.itemProps),c=Pt({title:r,value:n},s);return{title:String((l=c.title)!=null?l:""),value:c.value,props:c,children:Array.isArray(o)?transformItems$1(t,o):void 0,raw:e}}function transformItems$1(t,e){const r=[];for(const n of e)r.push(transformItem$1(t,n));return r}function useItems(t){const e=computed(()=>transformItems$1(t,t.items)),r=computed(()=>e.value.some(s=>s.value===null));function n(s){return r.value||(s=s.filter(c=>c!==null)),s.map(c=>t.returnObject&&typeof c=="string"?transformItem$1(t,c):e.value.find(l=>t.valueComparator(c,l.value))||transformItem$1(t,c))}function o(s){return t.returnObject?s.map(c=>{let{raw:l}=c;return l}):s.map(c=>{let{value:l}=c;return l})}return{items:e,transformIn:n,transformOut:o}}function isPrimitive(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"}function transformItem(t,e){const r=getPropertyFromItem(e,t.itemType,"item"),n=isPrimitive(e)?e:getPropertyFromItem(e,t.itemTitle),o=getPropertyFromItem(e,t.itemValue,void 0),s=getPropertyFromItem(e,t.itemChildren),c=t.itemProps===!0?omit(e,["children"]):getPropertyFromItem(e,t.itemProps),l=Pt({title:n,value:o},c);return{type:r,title:l.title,value:l.value,props:l,children:r==="item"&&s?transformItems(t,s):void 0,raw:e}}function transformItems(t,e){const r=[];for(const n of e)r.push(transformItem(t,n));return r}function useListItems(t){return{items:computed(()=>transformItems(t,t.items))}}const makeVListProps=propsFactory$1(Pt(Pt(Pt(Pt(Pt(ei(Pt(Pt(Pt(Pt(Pt(Pt({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,expandIcon:String,collapseIcon:String,lines:{type:[Boolean,String],default:"one"},slim:Boolean,nav:Boolean},makeNestedProps({selectStrategy:"single-leaf",openStrategy:"list"})),makeBorderProps()),makeComponentProps()),makeDensityProps()),makeDimensionProps()),makeElevationProps()),{itemType:{type:String,default:"type"}}),makeItemsProps()),makeRoundedProps()),makeTagProps()),makeThemeProps()),makeVariantProps({variant:"text"})),"VList"),VList=genericComponent()({name:"VList",props:makeVListProps(),emits:{"update:selected":t=>!0,"update:opened":t=>!0,"click:open":t=>!0,"click:select":t=>!0},setup(t,e){let{slots:r}=e;const{items:n}=useListItems(t),{themeClasses:o}=provideTheme(t),{backgroundColorClasses:s,backgroundColorStyles:c}=useBackgroundColor(toRef(t,"bgColor")),{borderClasses:l}=useBorder(t),{densityClasses:v}=useDensity(t),{dimensionStyles:x}=useDimension(t),{elevationClasses:w}=useElevation(t),{roundedClasses:_}=useRounded(t),{open:b,select:E}=useNested(t),I=computed(()=>t.lines?`v-list--${t.lines}-line`:void 0),O=toRef(t,"activeColor"),N=toRef(t,"baseColor"),A=toRef(t,"color");createList(),provideDefaults({VListGroup:{activeColor:O,baseColor:N,color:A,expandIcon:toRef(t,"expandIcon"),collapseIcon:toRef(t,"collapseIcon")},VListItem:{activeClass:toRef(t,"activeClass"),activeColor:O,baseColor:N,color:A,density:toRef(t,"density"),disabled:toRef(t,"disabled"),lines:toRef(t,"lines"),nav:toRef(t,"nav"),slim:toRef(t,"slim"),variant:toRef(t,"variant")}});const z=shallowRef(!1),G=ref();function V(F){z.value=!0}function ne(F){z.value=!1}function W(F){var re;!z.value&&!(F.relatedTarget&&((re=G.value)==null?void 0:re.contains(F.relatedTarget)))&&D()}function B(F){if(!!G.value){if(F.key==="ArrowDown")D("next");else if(F.key==="ArrowUp")D("prev");else if(F.key==="Home")D("first");else if(F.key==="End")D("last");else return;F.preventDefault()}}function q(F){z.value=!0}function D(F){if(G.value)return focusChild(G.value,F)}return useRender(()=>createVNode(t.tag,{ref:G,class:["v-list",{"v-list--disabled":t.disabled,"v-list--nav":t.nav,"v-list--slim":t.slim},o.value,s.value,l.value,v.value,w.value,I.value,_.value,t.class],style:[c.value,x.value,t.style],tabindex:t.disabled||z.value?-1:0,role:"listbox","aria-activedescendant":void 0,onFocusin:V,onFocusout:ne,onFocus:W,onKeydown:B,onMousedown:q},{default:()=>[createVNode(VListChildren,{items:n.value,returnObject:t.returnObject},r)]})),{open:b,select:E,focus:D}}}),VSelect$1="",VCheckbox$1="",VSelectionControl$1="",VLabel$1="",makeVLabelProps=propsFactory$1(Pt(Pt({text:String,onClick:EventProp()},makeComponentProps()),makeThemeProps()),"VLabel"),VLabel=genericComponent()({name:"VLabel",props:makeVLabelProps(),setup(t,e){let{slots:r}=e;return useRender(()=>{var n;return createVNode("label",{class:["v-label",{"v-label--clickable":!!t.onClick},t.class],style:t.style,onClick:t.onClick},[t.text,(n=r.default)==null?void 0:n.call(r)])}),{}}}),VSelectionControlGroup$1="",VSelectionControlGroupSymbol=Symbol.for("vuetify:selection-control-group"),makeSelectionControlGroupProps=propsFactory$1(Pt(Pt(Pt({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:IconValue$1,trueIcon:IconValue$1,ripple:{type:Boolean,default:!0},multiple:{type:Boolean,default:null},name:String,readonly:{type:Boolean,default:null},modelValue:null,type:String,valueComparator:{type:Function,default:deepEqual}},makeComponentProps()),makeDensityProps()),makeThemeProps()),"SelectionControlGroup"),makeVSelectionControlGroupProps=propsFactory$1(Pt({},makeSelectionControlGroupProps({defaultsTarget:"VSelectionControl"})),"VSelectionControlGroup"),VSelectionControlGroup=genericComponent()({name:"VSelectionControlGroup",props:makeVSelectionControlGroupProps(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:r}=e;const n=useProxiedModel(t,"modelValue"),o=getUid(),s=computed(()=>t.id||`v-selection-control-group-${o}`),c=computed(()=>t.name||s.value),l=new Set;return provide(VSelectionControlGroupSymbol,{modelValue:n,forceUpdate:()=>{l.forEach(v=>v())},onForceUpdate:v=>{l.add(v),onScopeDispose(()=>{l.delete(v)})}}),provideDefaults({[t.defaultsTarget]:{color:toRef(t,"color"),disabled:toRef(t,"disabled"),density:toRef(t,"density"),error:toRef(t,"error"),inline:toRef(t,"inline"),modelValue:n,multiple:computed(()=>!!t.multiple||t.multiple==null&&Array.isArray(n.value)),name:c,falseIcon:toRef(t,"falseIcon"),trueIcon:toRef(t,"trueIcon"),readonly:toRef(t,"readonly"),ripple:toRef(t,"ripple"),type:toRef(t,"type"),valueComparator:toRef(t,"valueComparator")}}),useRender(()=>{var v;return createVNode("div",{class:["v-selection-control-group",{"v-selection-control-group--inline":t.inline},t.class],style:t.style,role:t.type==="radio"?"radiogroup":void 0},[(v=r.default)==null?void 0:v.call(r)])}),{}}}),makeVSelectionControlProps=propsFactory$1(Pt(Pt({label:String,baseColor:String,trueValue:null,falseValue:null,value:null},makeComponentProps()),makeSelectionControlGroupProps()),"VSelectionControl");function useSelectionControl(t){const e=inject$1(VSelectionControlGroupSymbol,void 0),{densityClasses:r}=useDensity(t),n=useProxiedModel(t,"modelValue"),o=computed(()=>t.trueValue!==void 0?t.trueValue:t.value!==void 0?t.value:!0),s=computed(()=>t.falseValue!==void 0?t.falseValue:!1),c=computed(()=>!!t.multiple||t.multiple==null&&Array.isArray(n.value)),l=computed({get(){const E=e?e.modelValue.value:n.value;return c.value?wrapInArray(E).some(I=>t.valueComparator(I,o.value)):t.valueComparator(E,o.value)},set(E){if(t.readonly)return;const I=E?o.value:s.value;let O=I;c.value&&(O=E?[...wrapInArray(n.value),I]:wrapInArray(n.value).filter(N=>!t.valueComparator(N,o.value))),e?e.modelValue.value=O:n.value=O}}),{textColorClasses:v,textColorStyles:x}=useTextColor(computed(()=>{if(!(t.error||t.disabled))return l.value?t.color:t.baseColor})),{backgroundColorClasses:w,backgroundColorStyles:_}=useBackgroundColor(computed(()=>l.value&&!t.error&&!t.disabled?t.color:void 0)),b=computed(()=>l.value?t.trueIcon:t.falseIcon);return{group:e,densityClasses:r,trueValue:o,falseValue:s,model:l,textColorClasses:v,textColorStyles:x,backgroundColorClasses:w,backgroundColorStyles:_,icon:b}}const VSelectionControl=genericComponent()({name:"VSelectionControl",directives:{Ripple},inheritAttrs:!1,props:makeVSelectionControlProps(),emits:{"update:modelValue":t=>!0},setup(t,e){let{attrs:r,slots:n}=e;const{group:o,densityClasses:s,icon:c,model:l,textColorClasses:v,textColorStyles:x,backgroundColorClasses:w,backgroundColorStyles:_,trueValue:b}=useSelectionControl(t),E=getUid(),I=shallowRef(!1),O=shallowRef(!1),N=ref(),A=computed(()=>t.id||`input-${E}`),z=computed(()=>!t.disabled&&!t.readonly);o==null||o.onForceUpdate(()=>{N.value&&(N.value.checked=l.value)});function G(B){!z.value||(I.value=!0,matchesSelector(B.target,":focus-visible")!==!1&&(O.value=!0))}function V(){I.value=!1,O.value=!1}function ne(B){B.stopPropagation()}function W(B){!z.value||(t.readonly&&o&&nextTick(()=>o.forceUpdate()),l.value=B.target.checked)}return useRender(()=>{var re,le,fe;const B=n.label?n.label({label:t.label,props:{for:A.value}}):t.label,[q,D]=filterInputAttrs(r),F=createVNode("input",mergeProps({ref:N,checked:l.value,disabled:!!t.disabled,id:A.value,onBlur:V,onFocus:G,onInput:W,"aria-disabled":!!t.disabled,type:t.type,value:b.value,name:t.name,"aria-checked":t.type==="checkbox"?l.value:void 0},D),null);return createVNode("div",mergeProps({class:["v-selection-control",{"v-selection-control--dirty":l.value,"v-selection-control--disabled":t.disabled,"v-selection-control--error":t.error,"v-selection-control--focused":I.value,"v-selection-control--focus-visible":O.value,"v-selection-control--inline":t.inline},s.value,t.class]},q,{style:t.style}),[createVNode("div",{class:["v-selection-control__wrapper",v.value],style:x.value},[(re=n.default)==null?void 0:re.call(n,{backgroundColorClasses:w,backgroundColorStyles:_}),withDirectives(createVNode("div",{class:["v-selection-control__input"]},[(fe=(le=n.input)==null?void 0:le.call(n,{model:l,textColorClasses:v,textColorStyles:x,backgroundColorClasses:w,backgroundColorStyles:_,inputNode:F,icon:c.value,props:{onFocus:G,onBlur:V,id:A.value}}))!=null?fe:createVNode(Fragment,null,[c.value&&createVNode(VIcon,{key:"icon",icon:c.value},null),F])]),[[resolveDirective("ripple"),t.ripple&&[!t.disabled&&!t.readonly,null,["center","circle"]]]])]),B&&createVNode(VLabel,{for:A.value,onClick:ne},{default:()=>[B]})])}),{isFocused:I,input:N}}}),makeVCheckboxBtnProps=propsFactory$1(Pt({indeterminate:Boolean,indeterminateIcon:{type:IconValue$1,default:"$checkboxIndeterminate"}},makeVSelectionControlProps({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})),"VCheckboxBtn"),VCheckboxBtn=genericComponent()({name:"VCheckboxBtn",props:makeVCheckboxBtnProps(),emits:{"update:modelValue":t=>!0,"update:indeterminate":t=>!0},setup(t,e){let{slots:r}=e;const n=useProxiedModel(t,"indeterminate"),o=useProxiedModel(t,"modelValue");function s(v){n.value&&(n.value=!1)}const c=computed(()=>n.value?t.indeterminateIcon:t.falseIcon),l=computed(()=>n.value?t.indeterminateIcon:t.trueIcon);return useRender(()=>{const v=omit(VSelectionControl.filterProps(t),["modelValue"]);return createVNode(VSelectionControl,mergeProps(v,{modelValue:o.value,"onUpdate:modelValue":[x=>o.value=x,s],class:["v-checkbox-btn",t.class],style:t.style,type:"checkbox",falseIcon:c.value,trueIcon:l.value,"aria-checked":n.value?"mixed":void 0}),r)}),{}}}),VInput$1="";function useInputIcon(t){const{t:e}=useLocale();function r(n){var v;let{name:o}=n;const s={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[o],c=t[`onClick:${o}`],l=c&&s?e(`$vuetify.input.${s}`,(v=t.label)!=null?v:""):void 0;return createVNode(VIcon,{icon:t[`${o}Icon`],"aria-label":l,onClick:c},null)}return{InputIcon:r}}const VMessages$1="",makeVMessagesProps=propsFactory$1(Pt(Pt({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]}},makeComponentProps()),makeTransitionProps({transition:{component:VSlideYTransition,leaveAbsolute:!0,group:!0}})),"VMessages"),VMessages=genericComponent()({name:"VMessages",props:makeVMessagesProps(),setup(t,e){let{slots:r}=e;const n=computed(()=>wrapInArray(t.messages)),{textColorClasses:o,textColorStyles:s}=useTextColor(computed(()=>t.color));return useRender(()=>createVNode(MaybeTransition,{transition:t.transition,tag:"div",class:["v-messages",o.value,t.class],style:[s.value,t.style],role:"alert","aria-live":"polite"},{default:()=>[t.active&&n.value.map((c,l)=>createVNode("div",{class:"v-messages__message",key:`${l}-${n.value}`},[r.message?r.message({message:c}):c]))]})),{}}}),makeFocusProps=propsFactory$1({focused:Boolean,"onUpdate:focused":EventProp()},"focus");function useFocus(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:getCurrentInstanceName();const r=useProxiedModel(t,"focused"),n=computed(()=>({[`${e}--focused`]:r.value}));function o(){r.value=!0}function s(){r.value=!1}return{focusClasses:n,isFocused:r,focus:o,blur:s}}const FormKey=Symbol.for("vuetify:form");function useForm(){return inject$1(FormKey,null)}const makeValidationProps=propsFactory$1(Pt({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null},makeFocusProps()),"validation");function useValidation(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:getCurrentInstanceName(),r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:getUid();const n=useProxiedModel(t,"modelValue"),o=computed(()=>t.validationValue===void 0?n.value:t.validationValue),s=useForm(),c=ref([]),l=shallowRef(!0),v=computed(()=>!!(wrapInArray(n.value===""?null:n.value).length||wrapInArray(o.value===""?null:o.value).length)),x=computed(()=>{var V;return!!((V=t.disabled)!=null?V:s==null?void 0:s.isDisabled.value)}),w=computed(()=>{var V;return!!((V=t.readonly)!=null?V:s==null?void 0:s.isReadonly.value)}),_=computed(()=>{var V;return(V=t.errorMessages)!=null&&V.length?wrapInArray(t.errorMessages).concat(c.value).slice(0,Math.max(0,+t.maxErrors)):c.value}),b=computed(()=>{var W,B;let V=((W=t.validateOn)!=null?W:s==null?void 0:s.validateOn.value)||"input";V==="lazy"&&(V="input lazy");const ne=new Set((B=V==null?void 0:V.split(" "))!=null?B:[]);return{blur:ne.has("blur")||ne.has("input"),input:ne.has("input"),submit:ne.has("submit"),lazy:ne.has("lazy")}}),E=computed(()=>{var V;return t.error||((V=t.errorMessages)==null?void 0:V.length)?!1:t.rules.length?l.value?c.value.length||b.value.lazy?null:!0:!c.value.length:!0}),I=shallowRef(!1),O=computed(()=>({[`${e}--error`]:E.value===!1,[`${e}--dirty`]:v.value,[`${e}--disabled`]:x.value,[`${e}--readonly`]:w.value})),N=computed(()=>{var V;return(V=t.name)!=null?V:unref(r)});onBeforeMount(()=>{s==null||s.register({id:N.value,validate:G,reset:A,resetValidation:z})}),onBeforeUnmount(()=>{s==null||s.unregister(N.value)}),onMounted(()=>Gr(this,null,function*(){b.value.lazy||(yield G(!0)),s==null||s.update(N.value,E.value,_.value)})),useToggleScope(()=>b.value.input,()=>{watch(o,()=>{if(o.value!=null)G();else if(t.focused){const V=watch(()=>t.focused,ne=>{ne||G(),V()})}})}),useToggleScope(()=>b.value.blur,()=>{watch(()=>t.focused,V=>{V||G()})}),watch([E,_],()=>{s==null||s.update(N.value,E.value,_.value)});function A(){n.value=null,nextTick(z)}function z(){l.value=!0,b.value.lazy?c.value=[]:G(!0)}function G(){return Gr(this,arguments,function*(){var W;let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const ne=[];I.value=!0;for(const B of t.rules){if(ne.length>=+((W=t.maxErrors)!=null?W:1))break;const D=yield(typeof B=="function"?B:()=>B)(o.value);if(D!==!0){if(D!==!1&&typeof D!="string"){console.warn(`${D} is not a valid value. Rule functions must return boolean true or a string.`);continue}ne.push(D||"")}}return c.value=ne,I.value=!1,l.value=V,c.value})}return{errorMessages:_,isDirty:v,isDisabled:x,isReadonly:w,isPristine:l,isValid:E,isValidating:I,reset:A,resetValidation:z,validate:G,validationClasses:O}}const makeVInputProps=propsFactory$1(Pt(Pt(Pt({id:String,appendIcon:IconValue$1,centerAffix:{type:Boolean,default:!0},prependIcon:IconValue$1,hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:t=>["horizontal","vertical"].includes(t)},"onClick:prepend":EventProp(),"onClick:append":EventProp()},makeComponentProps()),makeDensityProps()),makeValidationProps()),"VInput"),VInput=genericComponent()({name:"VInput",props:Pt({},makeVInputProps()),emits:{"update:modelValue":t=>!0},setup(t,e){let{attrs:r,slots:n,emit:o}=e;const{densityClasses:s}=useDensity(t),{rtlClasses:c}=useRtl(),{InputIcon:l}=useInputIcon(t),v=getUid(),x=computed(()=>t.id||`input-${v}`),w=computed(()=>`${x.value}-messages`),{errorMessages:_,isDirty:b,isDisabled:E,isReadonly:I,isPristine:O,isValid:N,isValidating:A,reset:z,resetValidation:G,validate:V,validationClasses:ne}=useValidation(t,"v-input",x),W=computed(()=>({id:x,messagesId:w,isDirty:b,isDisabled:E,isReadonly:I,isPristine:O,isValid:N,isValidating:A,reset:z,resetValidation:G,validate:V})),B=computed(()=>{var q;return((q=t.errorMessages)==null?void 0:q.length)||!O.value&&_.value.length?_.value:t.hint&&(t.persistentHint||t.focused)?t.hint:t.messages});return useRender(()=>{var le,fe,me,ye;const q=!!(n.prepend||t.prependIcon),D=!!(n.append||t.appendIcon),F=B.value.length>0,re=!t.hideDetails||t.hideDetails==="auto"&&(F||!!n.details);return createVNode("div",{class:["v-input",`v-input--${t.direction}`,{"v-input--center-affix":t.centerAffix,"v-input--hide-spin-buttons":t.hideSpinButtons},s.value,c.value,ne.value,t.class],style:t.style},[q&&createVNode("div",{key:"prepend",class:"v-input__prepend"},[(le=n.prepend)==null?void 0:le.call(n,W.value),t.prependIcon&&createVNode(l,{key:"prepend-icon",name:"prepend"},null)]),n.default&&createVNode("div",{class:"v-input__control"},[(fe=n.default)==null?void 0:fe.call(n,W.value)]),D&&createVNode("div",{key:"append",class:"v-input__append"},[t.appendIcon&&createVNode(l,{key:"append-icon",name:"append"},null),(me=n.append)==null?void 0:me.call(n,W.value)]),re&&createVNode("div",{class:"v-input__details"},[createVNode(VMessages,{id:w.value,active:F,messages:B.value},{message:n.message}),(ye=n.details)==null?void 0:ye.call(n,W.value)])])}),{reset:z,resetValidation:G,validate:V,isValid:N,errorMessages:_}}}),makeVCheckboxProps=propsFactory$1(Pt(Pt({},makeVInputProps()),omit(makeVCheckboxBtnProps(),["inline"])),"VCheckbox"),VCheckbox=genericComponent()({name:"VCheckbox",inheritAttrs:!1,props:makeVCheckboxProps(),emits:{"update:modelValue":t=>!0,"update:focused":t=>!0},setup(t,e){let{attrs:r,slots:n}=e;const o=useProxiedModel(t,"modelValue"),{isFocused:s,focus:c,blur:l}=useFocus(t),v=getUid(),x=computed(()=>t.id||`checkbox-${v}`);return useRender(()=>{const[w,_]=filterInputAttrs(r),b=VInput.filterProps(t),E=VCheckboxBtn.filterProps(t);return createVNode(VInput,mergeProps({class:["v-checkbox",t.class]},w,b,{modelValue:o.value,"onUpdate:modelValue":I=>o.value=I,id:x.value,focused:s.value,style:t.style}),ei(Pt({},n),{default:I=>{let{id:O,messagesId:N,isDisabled:A,isReadonly:z,isValid:G}=I;return createVNode(VCheckboxBtn,mergeProps(E,{id:O.value,"aria-describedby":N.value,disabled:A.value,readonly:z.value},_,{error:G.value===!1,modelValue:o.value,"onUpdate:modelValue":V=>o.value=V,onFocus:c,onBlur:l}),n)}}))}),{}}}),VChip$1="",VChipGroup="",VSlideGroup$1="",makeGroupProps=propsFactory$1({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),makeGroupItemProps=propsFactory$1({value:null,disabled:Boolean,selectedClass:String},"group-item");function useGroupItem(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const n=getCurrentInstance("useGroupItem");if(!n)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const o=getUid();provide(Symbol.for(`${e.description}:id`),o);const s=inject$1(e,null);if(!s){if(!r)return s;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${e.description}`)}const c=toRef(t,"value"),l=computed(()=>!!(s.disabled.value||t.disabled));s.register({id:o,value:c,disabled:l},n),onBeforeUnmount(()=>{s.unregister(o)});const v=computed(()=>s.isSelected(o)),x=computed(()=>v.value&&[s.selectedClass.value,t.selectedClass]);return watch(v,w=>{n.emit("group:selected",{value:w})},{flush:"sync"}),{id:o,isSelected:v,toggle:()=>s.select(o,!v.value),select:w=>s.select(o,w),selectedClass:x,value:c,disabled:l,group:s}}function useGroup(t,e){let r=!1;const n=reactive([]),o=useProxiedModel(t,"modelValue",[],b=>b==null?[]:getIds(n,wrapInArray(b)),b=>{const E=getValues(n,b);return t.multiple?E:E[0]}),s=getCurrentInstance("useGroup");function c(b,E){const I=b,O=Symbol.for(`${e.description}:id`),A=findChildrenWithProvide(O,s==null?void 0:s.vnode).indexOf(E);unref(I.value)==null&&(I.value=A),A>-1?n.splice(A,0,I):n.push(I)}function l(b){if(r)return;v();const E=n.findIndex(I=>I.id===b);n.splice(E,1)}function v(){const b=n.find(E=>!E.disabled);b&&t.mandatory==="force"&&!o.value.length&&(o.value=[b.id])}onMounted(()=>{v()}),onBeforeUnmount(()=>{r=!0});function x(b,E){const I=n.find(O=>O.id===b);if(!(E&&(I==null?void 0:I.disabled)))if(t.multiple){const O=o.value.slice(),N=O.findIndex(z=>z===b),A=~N;if(E=E!=null?E:!A,A&&t.mandatory&&O.length<=1||!A&&t.max!=null&&O.length+1>t.max)return;N<0&&E?O.push(b):N>=0&&!E&&O.splice(N,1),o.value=O}else{const O=o.value.includes(b);if(t.mandatory&&O)return;o.value=(E!=null?E:!O)?[b]:[]}}function w(b){if(t.multiple,o.value.length){const E=o.value[0],I=n.findIndex(A=>A.id===E);let O=(I+b)%n.length,N=n[O];for(;N.disabled&&O!==I;)O=(O+b)%n.length,N=n[O];if(N.disabled)return;o.value=[n[O].id]}else{const E=n.find(I=>!I.disabled);E&&(o.value=[E.id])}}const _={register:c,unregister:l,selected:o,select:x,disabled:toRef(t,"disabled"),prev:()=>w(n.length-1),next:()=>w(1),isSelected:b=>o.value.includes(b),selectedClass:computed(()=>t.selectedClass),items:computed(()=>n),getItemIndex:b=>getItemIndex(n,b)};return provide(e,_),_}function getItemIndex(t,e){const r=getIds(t,[e]);return r.length?t.findIndex(n=>n.id===r[0]):-1}function getIds(t,e){const r=[];return e.forEach(n=>{const o=t.find(c=>deepEqual(n,c.value)),s=t[n];(o==null?void 0:o.value)!=null?r.push(o.id):s!=null&&r.push(s.id)}),r}function getValues(t,e){const r=[];return e.forEach(n=>{const o=t.findIndex(s=>s.id===n);if(~o){const s=t[o];r.push(s.value!=null?s.value:o)}}),r}function bias(t){const r=Math.abs(t);return Math.sign(t)*(r/((1/.501-2)*(1-r)+1))}function calculateUpdatedOffset(t){let{selectedElement:e,containerSize:r,contentSize:n,isRtl:o,currentScrollOffset:s,isHorizontal:c}=t;const l=c?e.clientWidth:e.clientHeight,v=c?e.offsetLeft:e.offsetTop,x=o&&c?n-v-l:v,w=r+s,_=l+x,b=l*.4;return x<=s?s=Math.max(x-b,0):w<=_&&(s=Math.min(s-(w-_-b),n-r)),s}function calculateCenteredOffset(t){let{selectedElement:e,containerSize:r,contentSize:n,isRtl:o,isHorizontal:s}=t;const c=s?e.clientWidth:e.clientHeight,l=s?e.offsetLeft:e.offsetTop,v=o&&s?n-l-c/2-r/2:l+c/2-r/2;return Math.min(n-r,Math.max(0,v))}const VSlideGroupSymbol=Symbol.for("vuetify:v-slide-group"),makeVSlideGroupProps=propsFactory$1(Pt(Pt(Pt(Pt({centerActive:Boolean,direction:{type:String,default:"horizontal"},symbol:{type:null,default:VSlideGroupSymbol},nextIcon:{type:IconValue$1,default:"$next"},prevIcon:{type:IconValue$1,default:"$prev"},showArrows:{type:[Boolean,String],validator:t=>typeof t=="boolean"||["always","desktop","mobile"].includes(t)}},makeComponentProps()),makeDisplayProps()),makeTagProps()),makeGroupProps({selectedClass:"v-slide-group-item--active"})),"VSlideGroup"),VSlideGroup=genericComponent()({name:"VSlideGroup",props:makeVSlideGroupProps(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:r}=e;const{isRtl:n}=useRtl(),{displayClasses:o,mobile:s}=useDisplay(t),c=useGroup(t,t.symbol),l=shallowRef(!1),v=shallowRef(0),x=shallowRef(0),w=shallowRef(0),_=computed(()=>t.direction==="horizontal"),{resizeRef:b,contentRect:E}=useResizeObserver(),{resizeRef:I,contentRect:O}=useResizeObserver(),N=computed(()=>c.selected.value.length?c.items.value.findIndex(Ue=>Ue.id===c.selected.value[0]):-1),A=computed(()=>c.selected.value.length?c.items.value.findIndex(Ue=>Ue.id===c.selected.value[c.selected.value.length-1]):-1);if(IN_BROWSER){let Ue=-1;watch(()=>[c.selected.value,E.value,O.value,_.value],()=>{cancelAnimationFrame(Ue),Ue=requestAnimationFrame(()=>{if(E.value&&O.value){const ht=_.value?"width":"height";x.value=E.value[ht],w.value=O.value[ht],l.value=x.value+1<w.value}if(N.value>=0&&I.value){const ht=I.value.children[A.value];N.value===0||!l.value?v.value=0:t.centerActive?v.value=calculateCenteredOffset({selectedElement:ht,containerSize:x.value,contentSize:w.value,isRtl:n.value,isHorizontal:_.value}):l.value&&(v.value=calculateUpdatedOffset({selectedElement:ht,containerSize:x.value,contentSize:w.value,isRtl:n.value,currentScrollOffset:v.value,isHorizontal:_.value}))}})})}const z=shallowRef(!1);let G=0,V=0;function ne(Ue){const ht=_.value?"clientX":"clientY";V=(n.value&&_.value?-1:1)*v.value,G=Ue.touches[0][ht],z.value=!0}function W(Ue){if(!l.value)return;const ht=_.value?"clientX":"clientY",De=n.value&&_.value?-1:1;v.value=De*(V+G-Ue.touches[0][ht])}function B(Ue){const ht=w.value-x.value;v.value<0||!l.value?v.value=0:v.value>=ht&&(v.value=ht),z.value=!1}function q(){!b.value||(b.value[_.value?"scrollLeft":"scrollTop"]=0)}const D=shallowRef(!1);function F(Ue){if(D.value=!0,!(!l.value||!I.value)){for(const ht of Ue.composedPath())for(const De of I.value.children)if(De===ht){v.value=calculateUpdatedOffset({selectedElement:De,containerSize:x.value,contentSize:w.value,isRtl:n.value,currentScrollOffset:v.value,isHorizontal:_.value});return}}}function re(Ue){D.value=!1}function le(Ue){var ht;!D.value&&!(Ue.relatedTarget&&((ht=I.value)==null?void 0:ht.contains(Ue.relatedTarget)))&&me()}function fe(Ue){!I.value||(_.value?Ue.key==="ArrowRight"?me(n.value?"prev":"next"):Ue.key==="ArrowLeft"&&me(n.value?"next":"prev"):Ue.key==="ArrowDown"?me("next"):Ue.key==="ArrowUp"&&me("prev"),Ue.key==="Home"?me("first"):Ue.key==="End"&&me("last"))}function me(Ue){var ht,De,Be,Ve,He;if(!!I.value)if(!Ue)(ht=focusableChildren(I.value)[0])==null||ht.focus();else if(Ue==="next"){const gt=(De=I.value.querySelector(":focus"))==null?void 0:De.nextElementSibling;gt?gt.focus():me("first")}else if(Ue==="prev"){const gt=(Be=I.value.querySelector(":focus"))==null?void 0:Be.previousElementSibling;gt?gt.focus():me("last")}else Ue==="first"?(Ve=I.value.firstElementChild)==null||Ve.focus():Ue==="last"&&((He=I.value.lastElementChild)==null||He.focus())}function ye(Ue){const ht=v.value+(Ue==="prev"?-1:1)*x.value;v.value=clamp(ht,0,w.value-x.value)}const Te=computed(()=>{let Ue=v.value>w.value-x.value?-(w.value-x.value)+bias(w.value-x.value-v.value):-v.value;v.value<=0&&(Ue=bias(-v.value));const ht=n.value&&_.value?-1:1;return{transform:`translate${_.value?"X":"Y"}(${ht*Ue}px)`,transition:z.value?"none":"",willChange:z.value?"transform":""}}),ke=computed(()=>({next:c.next,prev:c.prev,select:c.select,isSelected:c.isSelected})),Le=computed(()=>{switch(t.showArrows){case"always":return!0;case"desktop":return!s.value;case!0:return l.value||Math.abs(v.value)>0;case"mobile":return s.value||l.value||Math.abs(v.value)>0;default:return!s.value&&(l.value||Math.abs(v.value)>0)}}),et=computed(()=>Math.abs(v.value)>0),it=computed(()=>w.value>Math.abs(v.value)+x.value);return useRender(()=>createVNode(t.tag,{class:["v-slide-group",{"v-slide-group--vertical":!_.value,"v-slide-group--has-affixes":Le.value,"v-slide-group--is-overflowing":l.value},o.value,t.class],style:t.style,tabindex:D.value||c.selected.value.length?-1:0,onFocus:le},{default:()=>{var Ue,ht,De,Be,Ve;return[Le.value&&createVNode("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!et.value}],onClick:()=>et.value&&ye("prev")},[(ht=(Ue=r.prev)==null?void 0:Ue.call(r,ke.value))!=null?ht:createVNode(VFadeTransition,null,{default:()=>[createVNode(VIcon,{icon:n.value?t.nextIcon:t.prevIcon},null)]})]),createVNode("div",{key:"container",ref:b,class:"v-slide-group__container",onScroll:q},[createVNode("div",{ref:I,class:"v-slide-group__content",style:Te.value,onTouchstartPassive:ne,onTouchmovePassive:W,onTouchendPassive:B,onFocusin:F,onFocusout:re,onKeydown:fe},[(De=r.default)==null?void 0:De.call(r,ke.value)])]),Le.value&&createVNode("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!it.value}],onClick:()=>it.value&&ye("next")},[(Ve=(Be=r.next)==null?void 0:Be.call(r,ke.value))!=null?Ve:createVNode(VFadeTransition,null,{default:()=>[createVNode(VIcon,{icon:n.value?t.prevIcon:t.nextIcon},null)]})])]}})),{selected:c.selected,scrollTo:ye,scrollOffset:v,focus:me}}}),VChipGroupSymbol=Symbol.for("vuetify:v-chip-group"),makeVChipGroupProps=propsFactory$1(Pt(Pt(Pt(Pt(Pt(Pt({column:Boolean,filter:Boolean,valueComparator:{type:Function,default:deepEqual}},makeVSlideGroupProps()),makeComponentProps()),makeGroupProps({selectedClass:"v-chip--selected"})),makeTagProps()),makeThemeProps()),makeVariantProps({variant:"tonal"})),"VChipGroup");genericComponent()({name:"VChipGroup",props:makeVChipGroupProps(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:r}=e;const{themeClasses:n}=provideTheme(t),{isSelected:o,select:s,next:c,prev:l,selected:v}=useGroup(t,VChipGroupSymbol);return provideDefaults({VChip:{color:toRef(t,"color"),disabled:toRef(t,"disabled"),filter:toRef(t,"filter"),variant:toRef(t,"variant")}}),useRender(()=>{const x=VSlideGroup.filterProps(t);return createVNode(VSlideGroup,mergeProps(x,{class:["v-chip-group",{"v-chip-group--column":t.column},n.value,t.class],style:t.style}),{default:()=>{var w;return[(w=r.default)==null?void 0:w.call(r,{isSelected:o,select:s,next:c,prev:l,selected:v.value})]}})}),{}}});const makeVChipProps=propsFactory$1(Pt(Pt(Pt(Pt(Pt(Pt(Pt(Pt(Pt(Pt(Pt({activeClass:String,appendAvatar:String,appendIcon:IconValue$1,closable:Boolean,closeIcon:{type:IconValue$1,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:IconValue$1,ripple:{type:[Boolean,Object],default:!0},text:String,modelValue:{type:Boolean,default:!0},onClick:EventProp(),onClickOnce:EventProp()},makeBorderProps()),makeComponentProps()),makeDensityProps()),makeElevationProps()),makeGroupItemProps()),makeRoundedProps()),makeRouterProps()),makeSizeProps()),makeTagProps({tag:"span"})),makeThemeProps()),makeVariantProps({variant:"tonal"})),"VChip"),VChip=genericComponent()({name:"VChip",directives:{Ripple},props:makeVChipProps(),emits:{"click:close":t=>!0,"update:modelValue":t=>!0,"group:selected":t=>!0,click:t=>!0},setup(t,e){let{attrs:r,emit:n,slots:o}=e;const{t:s}=useLocale(),{borderClasses:c}=useBorder(t),{colorClasses:l,colorStyles:v,variantClasses:x}=useVariant(t),{densityClasses:w}=useDensity(t),{elevationClasses:_}=useElevation(t),{roundedClasses:b}=useRounded(t),{sizeClasses:E}=useSize(t),{themeClasses:I}=provideTheme(t),O=useProxiedModel(t,"modelValue"),N=useGroupItem(t,VChipGroupSymbol,!1),A=useLink(t,r),z=computed(()=>t.link!==!1&&A.isLink.value),G=computed(()=>!t.disabled&&t.link!==!1&&(!!N||t.link||A.isClickable.value)),V=computed(()=>({"aria-label":s(t.closeLabel),onClick(B){B.stopPropagation(),O.value=!1,n("click:close",B)}}));function ne(B){var q;n("click",B),G.value&&((q=A.navigate)==null||q.call(A,B),N==null||N.toggle())}function W(B){(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),ne(B))}return()=>{const B=A.isLink.value?"a":t.tag,q=!!(t.appendIcon||t.appendAvatar),D=!!(q||o.append),F=!!(o.close||t.closable),re=!!(o.filter||t.filter)&&N,le=!!(t.prependIcon||t.prependAvatar),fe=!!(le||o.prepend),me=!N||N.isSelected.value;return O.value&&withDirectives(createVNode(B,{class:["v-chip",{"v-chip--disabled":t.disabled,"v-chip--label":t.label,"v-chip--link":G.value,"v-chip--filter":re,"v-chip--pill":t.pill},I.value,c.value,me?l.value:void 0,w.value,_.value,b.value,E.value,x.value,N==null?void 0:N.selectedClass.value,t.class],style:[me?v.value:void 0,t.style],disabled:t.disabled||void 0,draggable:t.draggable,href:A.href.value,tabindex:G.value?0:void 0,onClick:ne,onKeydown:G.value&&!z.value&&W},{default:()=>{var ye,Te;return[genOverlays(G.value,"v-chip"),re&&createVNode(VExpandXTransition,{key:"filter"},{default:()=>[withDirectives(createVNode("div",{class:"v-chip__filter"},[o.filter?createVNode(VDefaultsProvider,{key:"filter-defaults",disabled:!t.filterIcon,defaults:{VIcon:{icon:t.filterIcon}}},o.filter):createVNode(VIcon,{key:"filter-icon",icon:t.filterIcon},null)]),[[vShow,N.isSelected.value]])]}),fe&&createVNode("div",{key:"prepend",class:"v-chip__prepend"},[o.prepend?createVNode(VDefaultsProvider,{key:"prepend-defaults",disabled:!le,defaults:{VAvatar:{image:t.prependAvatar,start:!0},VIcon:{icon:t.prependIcon,start:!0}}},o.prepend):createVNode(Fragment,null,[t.prependIcon&&createVNode(VIcon,{key:"prepend-icon",icon:t.prependIcon,start:!0},null),t.prependAvatar&&createVNode(VAvatar,{key:"prepend-avatar",image:t.prependAvatar,start:!0},null)])]),createVNode("div",{class:"v-chip__content","data-no-activator":""},[(Te=(ye=o.default)==null?void 0:ye.call(o,{isSelected:N==null?void 0:N.isSelected.value,selectedClass:N==null?void 0:N.selectedClass.value,select:N==null?void 0:N.select,toggle:N==null?void 0:N.toggle,value:N==null?void 0:N.value.value,disabled:t.disabled}))!=null?Te:t.text]),D&&createVNode("div",{key:"append",class:"v-chip__append"},[o.append?createVNode(VDefaultsProvider,{key:"append-defaults",disabled:!q,defaults:{VAvatar:{end:!0,image:t.appendAvatar},VIcon:{end:!0,icon:t.appendIcon}}},o.append):createVNode(Fragment,null,[t.appendIcon&&createVNode(VIcon,{key:"append-icon",end:!0,icon:t.appendIcon},null),t.appendAvatar&&createVNode(VAvatar,{key:"append-avatar",end:!0,image:t.appendAvatar},null)])]),F&&createVNode("button",mergeProps({key:"close",class:"v-chip__close",type:"button"},V.value),[o.close?createVNode(VDefaultsProvider,{key:"close-defaults",defaults:{VIcon:{icon:t.closeIcon,size:"x-small"}}},o.close):createVNode(VIcon,{key:"close-icon",icon:t.closeIcon,size:"x-small"},null)])]}}),[[resolveDirective("ripple"),G.value&&t.ripple,null]])}}}),VMenu$1="",VOverlay$1="";function elementToViewport(t,e){return{x:t.x+e.x,y:t.y+e.y}}function getOffset(t,e){return{x:t.x-e.x,y:t.y-e.y}}function anchorToPoint(t,e){if(t.side==="top"||t.side==="bottom"){const{side:r,align:n}=t,o=n==="left"?0:n==="center"?e.width/2:n==="right"?e.width:n,s=r==="top"?0:r==="bottom"?e.height:r;return elementToViewport({x:o,y:s},e)}else if(t.side==="left"||t.side==="right"){const{side:r,align:n}=t,o=r==="left"?0:r==="right"?e.width:r,s=n==="top"?0:n==="center"?e.height/2:n==="bottom"?e.height:n;return elementToViewport({x:o,y:s},e)}return elementToViewport({x:e.width/2,y:e.height/2},e)}const locationStrategies={static:staticLocationStrategy,connected:connectedLocationStrategy},makeLocationStrategyProps=propsFactory$1({locationStrategy:{type:[String,Function],default:"static",validator:t=>typeof t=="function"||t in locationStrategies},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array]},"VOverlay-location-strategies");function useLocationStrategies(t,e){const r=ref({}),n=ref();IN_BROWSER&&useToggleScope(()=>!!(e.isActive.value&&t.locationStrategy),s=>{var c,l;watch(()=>t.locationStrategy,s),onScopeDispose(()=>{window.removeEventListener("resize",o),n.value=void 0}),window.addEventListener("resize",o,{passive:!0}),typeof t.locationStrategy=="function"?n.value=(c=t.locationStrategy(e,t,r))==null?void 0:c.updateLocation:n.value=(l=locationStrategies[t.locationStrategy](e,t,r))==null?void 0:l.updateLocation});function o(s){var c;(c=n.value)==null||c.call(n,s)}return{contentStyles:r,updateLocation:n}}function staticLocationStrategy(){}function getIntrinsicSize(t,e){e?t.style.removeProperty("left"):t.style.removeProperty("right");const r=nullifyTransforms(t);return e?r.x+=parseFloat(t.style.right||0):r.x-=parseFloat(t.style.left||0),r.y-=parseFloat(t.style.top||0),r}function connectedLocationStrategy(t,e,r){(Array.isArray(t.target.value)||isFixedPosition(t.target.value))&&Object.assign(r.value,{position:"fixed",top:0,[t.isRtl.value?"right":"left"]:0});const{preferredAnchor:o,preferredOrigin:s}=destructComputed(()=>{const I=parseAnchor(e.location,t.isRtl.value),O=e.origin==="overlap"?I:e.origin==="auto"?flipSide(I):parseAnchor(e.origin,t.isRtl.value);return I.side===O.side&&I.align===flipAlign(O).align?{preferredAnchor:flipCorner(I),preferredOrigin:flipCorner(O)}:{preferredAnchor:I,preferredOrigin:O}}),[c,l,v,x]=["minWidth","minHeight","maxWidth","maxHeight"].map(I=>computed(()=>{const O=parseFloat(e[I]);return isNaN(O)?1/0:O})),w=computed(()=>{if(Array.isArray(e.offset))return e.offset;if(typeof e.offset=="string"){const I=e.offset.split(" ").map(parseFloat);return I.length<2&&I.push(0),I}return typeof e.offset=="number"?[e.offset,0]:[0,0]});let _=!1;const b=new ResizeObserver(()=>{_&&E()});watch([t.target,t.contentEl],(I,O)=>{let[N,A]=I,[z,G]=O;z&&!Array.isArray(z)&&b.unobserve(z),N&&!Array.isArray(N)&&b.observe(N),G&&b.unobserve(G),A&&b.observe(A)},{immediate:!0}),onScopeDispose(()=>{b.disconnect()});function E(){if(_=!1,requestAnimationFrame(()=>_=!0),!t.target.value||!t.contentEl.value)return;const I=getTargetBox(t.target.value),O=getIntrinsicSize(t.contentEl.value,t.isRtl.value),N=getScrollParents(t.contentEl.value),A=12;N.length||(N.push(document.documentElement),t.contentEl.value.style.top&&t.contentEl.value.style.left||(O.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),O.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const z=N.reduce((re,le)=>{const fe=le.getBoundingClientRect(),me=new Box({x:le===document.documentElement?0:fe.x,y:le===document.documentElement?0:fe.y,width:le.clientWidth,height:le.clientHeight});return re?new Box({x:Math.max(re.left,me.left),y:Math.max(re.top,me.top),width:Math.min(re.right,me.right)-Math.max(re.left,me.left),height:Math.min(re.bottom,me.bottom)-Math.max(re.top,me.top)}):me},void 0);z.x+=A,z.y+=A,z.width-=A*2,z.height-=A*2;let G={anchor:o.value,origin:s.value};function V(re){const le=new Box(O),fe=anchorToPoint(re.anchor,I),me=anchorToPoint(re.origin,le);let{x:ye,y:Te}=getOffset(fe,me);switch(re.anchor.side){case"top":Te-=w.value[0];break;case"bottom":Te+=w.value[0];break;case"left":ye-=w.value[0];break;case"right":ye+=w.value[0];break}switch(re.anchor.align){case"top":Te-=w.value[1];break;case"bottom":Te+=w.value[1];break;case"left":ye-=w.value[1];break;case"right":ye+=w.value[1];break}return le.x+=ye,le.y+=Te,le.width=Math.min(le.width,v.value),le.height=Math.min(le.height,x.value),{overflows:getOverflow(le,z),x:ye,y:Te}}let ne=0,W=0;const B={x:0,y:0},q={x:!1,y:!1};let D=-1;for(;!(D++>10);){const{x:re,y:le,overflows:fe}=V(G);ne+=re,W+=le,O.x+=re,O.y+=le;{const me=getAxis(G.anchor),ye=fe.x.before||fe.x.after,Te=fe.y.before||fe.y.after;let ke=!1;if(["x","y"].forEach(Le=>{if(Le==="x"&&ye&&!q.x||Le==="y"&&Te&&!q.y){const et={anchor:Pt({},G.anchor),origin:Pt({},G.origin)},it=Le==="x"?me==="y"?flipAlign:flipSide:me==="y"?flipSide:flipAlign;et.anchor=it(et.anchor),et.origin=it(et.origin);const{overflows:Ue}=V(et);(Ue[Le].before<=fe[Le].before&&Ue[Le].after<=fe[Le].after||Ue[Le].before+Ue[Le].after<(fe[Le].before+fe[Le].after)/2)&&(G=et,ke=q[Le]=!0)}}),ke)continue}fe.x.before&&(ne+=fe.x.before,O.x+=fe.x.before),fe.x.after&&(ne-=fe.x.after,O.x-=fe.x.after),fe.y.before&&(W+=fe.y.before,O.y+=fe.y.before),fe.y.after&&(W-=fe.y.after,O.y-=fe.y.after);{const me=getOverflow(O,z);B.x=z.width-me.x.before-me.x.after,B.y=z.height-me.y.before-me.y.after,ne+=me.x.before,O.x+=me.x.before,W+=me.y.before,O.y+=me.y.before}break}const F=getAxis(G.anchor);return Object.assign(r.value,{"--v-overlay-anchor-origin":`${G.anchor.side} ${G.anchor.align}`,transformOrigin:`${G.origin.side} ${G.origin.align}`,top:convertToUnit(pixelRound(W)),left:t.isRtl.value?void 0:convertToUnit(pixelRound(ne)),right:t.isRtl.value?convertToUnit(pixelRound(-ne)):void 0,minWidth:convertToUnit(F==="y"?Math.min(c.value,I.width):c.value),maxWidth:convertToUnit(pixelCeil(clamp(B.x,c.value===1/0?0:c.value,v.value))),maxHeight:convertToUnit(pixelCeil(clamp(B.y,l.value===1/0?0:l.value,x.value)))}),{available:B,contentBox:O}}return watch(()=>[o.value,s.value,e.offset,e.minWidth,e.minHeight,e.maxWidth,e.maxHeight],()=>E()),nextTick(()=>{const I=E();if(!I)return;const{available:O,contentBox:N}=I;N.height>O.y&&requestAnimationFrame(()=>{E(),requestAnimationFrame(()=>{E()})})}),{updateLocation:E}}function pixelRound(t){return Math.round(t*devicePixelRatio)/devicePixelRatio}function pixelCeil(t){return Math.ceil(t*devicePixelRatio)/devicePixelRatio}let clean=!0;const frames=[];function requestNewFrame(t){!clean||frames.length?(frames.push(t),run()):(clean=!1,t(),run())}let raf=-1;function run(){cancelAnimationFrame(raf),raf=requestAnimationFrame(()=>{const t=frames.shift();t&&t(),frames.length?run():clean=!0})}const scrollStrategies={none:null,close:closeScrollStrategy,block:blockScrollStrategy,reposition:repositionScrollStrategy},makeScrollStrategyProps=propsFactory$1({scrollStrategy:{type:[String,Function],default:"block",validator:t=>typeof t=="function"||t in scrollStrategies}},"VOverlay-scroll-strategies");function useScrollStrategies(t,e){if(!IN_BROWSER)return;let r;watchEffect(()=>Gr(this,null,function*(){r==null||r.stop(),e.isActive.value&&t.scrollStrategy&&(r=effectScope(),yield nextTick(),r.active&&r.run(()=>{var n;typeof t.scrollStrategy=="function"?t.scrollStrategy(e,t,r):(n=scrollStrategies[t.scrollStrategy])==null||n.call(scrollStrategies,e,t,r)}))})),onScopeDispose(()=>{r==null||r.stop()})}function closeScrollStrategy(t){var r;function e(n){t.isActive.value=!1}bindScroll((r=t.targetEl.value)!=null?r:t.contentEl.value,e)}function blockScrollStrategy(t,e){var c;const r=(c=t.root.value)==null?void 0:c.offsetParent,n=[...new Set([...getScrollParents(t.targetEl.value,e.contained?r:void 0),...getScrollParents(t.contentEl.value,e.contained?r:void 0)])].filter(l=>!l.classList.contains("v-overlay-scroll-blocked")),o=window.innerWidth-document.documentElement.offsetWidth,s=(l=>hasScrollbar(l)&&l)(r||document.documentElement);s&&t.root.value.classList.add("v-overlay--scroll-blocked"),n.forEach((l,v)=>{l.style.setProperty("--v-body-scroll-x",convertToUnit(-l.scrollLeft)),l.style.setProperty("--v-body-scroll-y",convertToUnit(-l.scrollTop)),l!==document.documentElement&&l.style.setProperty("--v-scrollbar-offset",convertToUnit(o)),l.classList.add("v-overlay-scroll-blocked")}),onScopeDispose(()=>{n.forEach((l,v)=>{const x=parseFloat(l.style.getPropertyValue("--v-body-scroll-x")),w=parseFloat(l.style.getPropertyValue("--v-body-scroll-y")),_=l.style.scrollBehavior;l.style.scrollBehavior="auto",l.style.removeProperty("--v-body-scroll-x"),l.style.removeProperty("--v-body-scroll-y"),l.style.removeProperty("--v-scrollbar-offset"),l.classList.remove("v-overlay-scroll-blocked"),l.scrollLeft=-x,l.scrollTop=-w,l.style.scrollBehavior=_}),s&&t.root.value.classList.remove("v-overlay--scroll-blocked")})}function repositionScrollStrategy(t,e,r){let n=!1,o=-1,s=-1;function c(l){requestNewFrame(()=>{var w,_;const v=performance.now();(_=(w=t.updateLocation).value)==null||_.call(w,l),n=(performance.now()-v)/(1e3/60)>2})}s=(typeof requestIdleCallback=="undefined"?l=>l():requestIdleCallback)(()=>{r.run(()=>{var l;bindScroll((l=t.targetEl.value)!=null?l:t.contentEl.value,v=>{n?(cancelAnimationFrame(o),o=requestAnimationFrame(()=>{o=requestAnimationFrame(()=>{c(v)})})):c(v)})})}),onScopeDispose(()=>{typeof cancelIdleCallback!="undefined"&&cancelIdleCallback(s),cancelAnimationFrame(o)})}function bindScroll(t,e){const r=[document,...getScrollParents(t)];r.forEach(n=>{n.addEventListener("scroll",e,{passive:!0})}),onScopeDispose(()=>{r.forEach(n=>{n.removeEventListener("scroll",e)})})}const VMenuSymbol=Symbol.for("vuetify:v-menu"),makeDelayProps=propsFactory$1({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function useDelay(t,e){let r=()=>{};function n(c){r==null||r();const l=Number(c?t.openDelay:t.closeDelay);return new Promise(v=>{r=defer(l,()=>{e==null||e(c),v(c)})})}function o(){return n(!0)}function s(){return n(!1)}return{clearDelay:r,runOpenDelay:o,runCloseDelay:s}}const makeActivatorProps=propsFactory$1(Pt({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean},makeDelayProps()),"VOverlay-activator");function useActivator(t,e){let{isActive:r,isTop:n}=e;const o=getCurrentInstance("useActivator"),s=ref();let c=!1,l=!1,v=!0;const x=computed(()=>t.openOnFocus||t.openOnFocus==null&&t.openOnHover),w=computed(()=>t.openOnClick||t.openOnClick==null&&!t.openOnHover&&!x.value),{runOpenDelay:_,runCloseDelay:b}=useDelay(t,B=>{B===(t.openOnHover&&c||x.value&&l)&&!(t.openOnHover&&r.value&&!n.value)&&(r.value!==B&&(v=!0),r.value=B)}),E=ref(),I={onClick:B=>{B.stopPropagation(),s.value=B.currentTarget||B.target,r.value||(E.value=[B.clientX,B.clientY]),r.value=!r.value},onMouseenter:B=>{var q;(q=B.sourceCapabilities)!=null&&q.firesTouchEvents||(c=!0,s.value=B.currentTarget||B.target,_())},onMouseleave:B=>{c=!1,b()},onFocus:B=>{matchesSelector(B.target,":focus-visible")!==!1&&(l=!0,B.stopPropagation(),s.value=B.currentTarget||B.target,_())},onBlur:B=>{l=!1,B.stopPropagation(),b()}},O=computed(()=>{const B={};return w.value&&(B.onClick=I.onClick),t.openOnHover&&(B.onMouseenter=I.onMouseenter,B.onMouseleave=I.onMouseleave),x.value&&(B.onFocus=I.onFocus,B.onBlur=I.onBlur),B}),N=computed(()=>{const B={};if(t.openOnHover&&(B.onMouseenter=()=>{c=!0,_()},B.onMouseleave=()=>{c=!1,b()}),x.value&&(B.onFocusin=()=>{l=!0,_()},B.onFocusout=()=>{l=!1,b()}),t.closeOnContentClick){const q=inject$1(VMenuSymbol,null);B.onClick=()=>{r.value=!1,q==null||q.closeParents()}}return B}),A=computed(()=>{const B={};return t.openOnHover&&(B.onMouseenter=()=>{v&&(c=!0,v=!1,_())},B.onMouseleave=()=>{c=!1,b()}),B});watch(n,B=>{B&&(t.openOnHover&&!c&&(!x.value||!l)||x.value&&!l&&(!t.openOnHover||!c))&&(r.value=!1)}),watch(r,B=>{B||setTimeout(()=>{E.value=void 0})},{flush:"post"});const z=ref();watchEffect(()=>{!z.value||nextTick(()=>{s.value=refElement(z.value)})});const G=ref(),V=computed(()=>t.target==="cursor"&&E.value?E.value:G.value?refElement(G.value):getTarget(t.target,o)||s.value),ne=computed(()=>Array.isArray(V.value)?void 0:V.value);let W;return watch(()=>!!t.activator,B=>{B&&IN_BROWSER?(W=effectScope(),W.run(()=>{_useActivator(t,o,{activatorEl:s,activatorEvents:O})})):W&&W.stop()},{flush:"post",immediate:!0}),onScopeDispose(()=>{W==null||W.stop()}),{activatorEl:s,activatorRef:z,target:V,targetEl:ne,targetRef:G,activatorEvents:O,contentEvents:N,scrimEvents:A}}function _useActivator(t,e,r){let{activatorEl:n,activatorEvents:o}=r;watch(()=>t.activator,(v,x)=>{if(x&&v!==x){const w=l(x);w&&c(w)}v&&nextTick(()=>s())},{immediate:!0}),watch(()=>t.activatorProps,()=>{s()}),onScopeDispose(()=>{c()});function s(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l(),x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.activatorProps;!v||bindProps(v,mergeProps(o.value,x))}function c(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l(),x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.activatorProps;!v||unbindProps(v,mergeProps(o.value,x))}function l(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.activator;const x=getTarget(v,e);return n.value=(x==null?void 0:x.nodeType)===Node.ELEMENT_NODE?x:void 0,n.value}}function getTarget(t,e){var n,o;if(!t)return;let r;if(t==="parent"){let s=(o=(n=e==null?void 0:e.proxy)==null?void 0:n.$el)==null?void 0:o.parentNode;for(;s!=null&&s.hasAttribute("data-no-activator");)s=s.parentNode;r=s}else typeof t=="string"?r=document.querySelector(t):"$el"in t?r=t.$el:r=t;return r}function useHydration(){if(!IN_BROWSER)return shallowRef(!1);const{ssr:t}=useDisplay();if(t){const e=shallowRef(!1);return onMounted(()=>{e.value=!0}),e}else return shallowRef(!0)}const makeLazyProps=propsFactory$1({eager:Boolean},"lazy");function useLazy(t,e){const r=shallowRef(!1),n=computed(()=>r.value||t.eager||e.value);watch(e,()=>r.value=!0);function o(){t.eager||(r.value=!1)}return{isBooted:r,hasContent:n,onAfterLeave:o}}function useScopeId(){const e=getCurrentInstance("useScopeId").vnode.scopeId;return{scopeId:e?{[e]:""}:void 0}}const StackSymbol=Symbol.for("vuetify:stack"),globalStack=reactive([]);function useStack$1(t,e,r){const n=getCurrentInstance("useStack"),o=!r,s=inject$1(StackSymbol,void 0),c=reactive({activeChildren:new Set});provide(StackSymbol,c);const l=shallowRef(+e.value);useToggleScope(t,()=>{var _;const w=(_=globalStack.at(-1))==null?void 0:_[1];l.value=w?w+10:+e.value,o&&globalStack.push([n.uid,l.value]),s==null||s.activeChildren.add(n.uid),onScopeDispose(()=>{if(o){const b=toRaw(globalStack).findIndex(E=>E[0]===n.uid);globalStack.splice(b,1)}s==null||s.activeChildren.delete(n.uid)})});const v=shallowRef(!0);o&&watchEffect(()=>{var _;const w=((_=globalStack.at(-1))==null?void 0:_[0])===n.uid;setTimeout(()=>v.value=w)});const x=computed(()=>!c.activeChildren.size);return{globalTop:readonly(v),localTop:x,stackStyles:computed(()=>({zIndex:l.value}))}}function useTeleport(t){return{teleportTarget:computed(()=>{const r=t.value;if(r===!0||!IN_BROWSER)return;const n=r===!1?document.body:typeof r=="string"?document.querySelector(r):r;if(n==null)return;let o=n.querySelector(":scope > .v-overlay-container");return o||(o=document.createElement("div"),o.className="v-overlay-container",n.appendChild(o)),o})}}function defaultConditional(){return!0}function checkEvent(t,e,r){if(!t||checkIsActive(t,r)===!1)return!1;const n=attachedRoot(e);if(typeof ShadowRoot!="undefined"&&n instanceof ShadowRoot&&n.host===t.target)return!1;const o=(typeof r.value=="object"&&r.value.include||(()=>[]))();return o.push(e),!o.some(s=>s==null?void 0:s.contains(t.target))}function checkIsActive(t,e){return(typeof e.value=="object"&&e.value.closeConditional||defaultConditional)(t)}function directive(t,e,r){const n=typeof r.value=="function"?r.value:r.value.handler;e._clickOutside.lastMousedownWasOutside&&checkEvent(t,e,r)&&setTimeout(()=>{checkIsActive(t,r)&&n&&n(t)},0)}function handleShadow(t,e){const r=attachedRoot(t);e(document),typeof ShadowRoot!="undefined"&&r instanceof ShadowRoot&&e(r)}const ClickOutside={mounted(t,e){const r=o=>directive(o,t,e),n=o=>{t._clickOutside.lastMousedownWasOutside=checkEvent(o,t,e)};handleShadow(t,o=>{o.addEventListener("click",r,!0),o.addEventListener("mousedown",n,!0)}),t._clickOutside||(t._clickOutside={lastMousedownWasOutside:!1}),t._clickOutside[e.instance.$.uid]={onClick:r,onMousedown:n}},unmounted(t,e){!t._clickOutside||(handleShadow(t,r=>{var s;if(!r||!((s=t._clickOutside)!=null&&s[e.instance.$.uid]))return;const{onClick:n,onMousedown:o}=t._clickOutside[e.instance.$.uid];r.removeEventListener("click",n,!0),r.removeEventListener("mousedown",o,!0)}),delete t._clickOutside[e.instance.$.uid])}};function Scrim(t){const o=t,{modelValue:e,color:r}=o,n=fd(o,["modelValue","color"]);return createVNode(Transition,{name:"fade-transition",appear:!0},{default:()=>[t.modelValue&&createVNode("div",mergeProps({class:["v-overlay__scrim",t.color.backgroundColorClasses.value],style:t.color.backgroundColorStyles.value},n),null)]})}const makeVOverlayProps=propsFactory$1(Pt(Pt(Pt(Pt(Pt(Pt(Pt(Pt({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,opacity:[Number,String],noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3}},makeActivatorProps()),makeComponentProps()),makeDimensionProps()),makeLazyProps()),makeLocationStrategyProps()),makeScrollStrategyProps()),makeThemeProps()),makeTransitionProps()),"VOverlay"),VOverlay=genericComponent()({name:"VOverlay",directives:{ClickOutside},inheritAttrs:!1,props:Pt({_disableGlobalStack:Boolean},makeVOverlayProps()),emits:{"click:outside":t=>!0,"update:modelValue":t=>!0,afterLeave:()=>!0},setup(t,e){let{slots:r,attrs:n,emit:o}=e;const s=useProxiedModel(t,"modelValue"),c=computed({get:()=>s.value,set:De=>{De&&t.disabled||(s.value=De)}}),{teleportTarget:l}=useTeleport(computed(()=>t.attach||t.contained)),{themeClasses:v}=provideTheme(t),{rtlClasses:x,isRtl:w}=useRtl(),{hasContent:_,onAfterLeave:b}=useLazy(t,c),E=useBackgroundColor(computed(()=>typeof t.scrim=="string"?t.scrim:null)),{globalTop:I,localTop:O,stackStyles:N}=useStack$1(c,toRef(t,"zIndex"),t._disableGlobalStack),{activatorEl:A,activatorRef:z,target:G,targetEl:V,targetRef:ne,activatorEvents:W,contentEvents:B,scrimEvents:q}=useActivator(t,{isActive:c,isTop:O}),{dimensionStyles:D}=useDimension(t),F=useHydration(),{scopeId:re}=useScopeId();watch(()=>t.disabled,De=>{De&&(c.value=!1)});const le=ref(),fe=ref(),{contentStyles:me,updateLocation:ye}=useLocationStrategies(t,{isRtl:w,contentEl:fe,target:G,isActive:c});useScrollStrategies(t,{root:le,contentEl:fe,targetEl:V,isActive:c,updateLocation:ye});function Te(De){o("click:outside",De),t.persistent?Ue():c.value=!1}function ke(){return c.value&&I.value}IN_BROWSER&&watch(c,De=>{De?window.addEventListener("keydown",Le):window.removeEventListener("keydown",Le)},{immediate:!0}),onBeforeUnmount(()=>{!IN_BROWSER||window.removeEventListener("keydown",Le)});function Le(De){var Be,Ve;De.key==="Escape"&&I.value&&(t.persistent?Ue():(c.value=!1,(Be=fe.value)!=null&&Be.contains(document.activeElement)&&((Ve=A.value)==null||Ve.focus())))}const et=useRouter();useToggleScope(()=>t.closeOnBack,()=>{useBackButton(et,De=>{I.value&&c.value?(De(!1),t.persistent?Ue():c.value=!1):De()})});const it=ref();watch(()=>c.value&&(t.absolute||t.contained)&&l.value==null,De=>{if(De){const Be=getScrollParent(le.value);Be&&Be!==document.scrollingElement&&(it.value=Be.scrollTop)}});function Ue(){t.noClickAnimation||fe.value&&animate(fe.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:standardEasing})}function ht(){b(),o("afterLeave")}return useRender(()=>{var De;return createVNode(Fragment,null,[(De=r.activator)==null?void 0:De.call(r,{isActive:c.value,props:mergeProps({ref:z,targetRef:ne},W.value,t.activatorProps)}),F.value&&_.value&&createVNode(Teleport,{disabled:!l.value,to:l.value},{default:()=>[createVNode("div",mergeProps({class:["v-overlay",{"v-overlay--absolute":t.absolute||t.contained,"v-overlay--active":c.value,"v-overlay--contained":t.contained},v.value,x.value,t.class],style:[N.value,{"--v-overlay-opacity":t.opacity,top:convertToUnit(it.value)},t.style],ref:le},re,n),[createVNode(Scrim,mergeProps({color:E,modelValue:c.value&&!!t.scrim},q.value),null),createVNode(MaybeTransition,{appear:!0,persisted:!0,transition:t.transition,target:G.value,onAfterLeave:ht},{default:()=>{var Be;return[withDirectives(createVNode("div",mergeProps({ref:fe,class:["v-overlay__content",t.contentClass],style:[D.value,me.value]},B.value,t.contentProps),[(Be=r.default)==null?void 0:Be.call(r,{isActive:c})]),[[vShow,c.value],[resolveDirective("click-outside"),{handler:Te,closeConditional:ke,include:()=>[A.value]}]])]}})])]})])}),{activatorEl:A,target:G,animateClick:Ue,contentEl:fe,globalTop:I,localTop:O,updateLocation:ye}}}),Refs=Symbol("Forwarded refs");function getDescriptor(t,e){let r=t;for(;r;){const n=Reflect.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function forwardRefs(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return t[Refs]=r,new Proxy(t,{get(o,s){if(Reflect.has(o,s))return Reflect.get(o,s);if(!(typeof s=="symbol"||s.startsWith("$")||s.startsWith("__"))){for(const c of r)if(c.value&&Reflect.has(c.value,s)){const l=Reflect.get(c.value,s);return typeof l=="function"?l.bind(c.value):l}}},has(o,s){if(Reflect.has(o,s))return!0;if(typeof s=="symbol"||s.startsWith("$")||s.startsWith("__"))return!1;for(const c of r)if(c.value&&Reflect.has(c.value,s))return!0;return!1},set(o,s,c){if(Reflect.has(o,s))return Reflect.set(o,s,c);if(typeof s=="symbol"||s.startsWith("$")||s.startsWith("__"))return!1;for(const l of r)if(l.value&&Reflect.has(l.value,s))return Reflect.set(l.value,s,c);return!1},getOwnPropertyDescriptor(o,s){var l,v;const c=Reflect.getOwnPropertyDescriptor(o,s);if(c)return c;if(!(typeof s=="symbol"||s.startsWith("$")||s.startsWith("__"))){for(const x of r){if(!x.value)continue;const w=(v=getDescriptor(x.value,s))!=null?v:"_"in x.value?getDescriptor((l=x.value._)==null?void 0:l.setupState,s):void 0;if(w)return w}for(const x of r){const w=x.value&&x.value[Refs];if(!w)continue;const _=w.slice();for(;_.length;){const b=_.shift(),E=getDescriptor(b.value,s);if(E)return E;const I=b.value&&b.value[Refs];I&&_.push(...I)}}}}})}const makeVMenuProps=propsFactory$1(Pt({id:String},omit(makeVOverlayProps({closeDelay:250,closeOnContentClick:!0,locationStrategy:"connected",openDelay:300,scrim:!1,scrollStrategy:"reposition",transition:{component:VDialogTransition}}),["absolute"])),"VMenu"),VMenu=genericComponent()({name:"VMenu",props:makeVMenuProps(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:r}=e;const n=useProxiedModel(t,"modelValue"),{scopeId:o}=useScopeId(),s=getUid(),c=computed(()=>t.id||`v-menu-${s}`),l=ref(),v=inject$1(VMenuSymbol,null),x=shallowRef(0);provide(VMenuSymbol,{register(){++x.value},unregister(){--x.value},closeParents(O){setTimeout(()=>{!x.value&&(O==null||O&&!isClickInsideElement(O,l.value.contentEl))&&(n.value=!1,v==null||v.closeParents())},40)}});function w(O){return Gr(this,null,function*(){var z,G,V;const N=O.relatedTarget,A=O.target;yield nextTick(),n.value&&N!==A&&((z=l.value)==null?void 0:z.contentEl)&&((G=l.value)==null?void 0:G.globalTop)&&![document,l.value.contentEl].includes(A)&&!l.value.contentEl.contains(A)&&((V=focusableChildren(l.value.contentEl)[0])==null||V.focus())})}watch(n,O=>{O?(v==null||v.register(),document.addEventListener("focusin",w,{once:!0})):(v==null||v.unregister(),document.removeEventListener("focusin",w))});function _(O){v==null||v.closeParents(O)}function b(O){var N,A,z;t.disabled||O.key==="Tab"&&(getNextElement(focusableChildren((N=l.value)==null?void 0:N.contentEl,!1),O.shiftKey?"prev":"next",V=>V.tabIndex>=0)||(n.value=!1,(z=(A=l.value)==null?void 0:A.activatorEl)==null||z.focus()))}function E(O){var A;if(t.disabled)return;const N=(A=l.value)==null?void 0:A.contentEl;N&&n.value?O.key==="ArrowDown"?(O.preventDefault(),focusChild(N,"next")):O.key==="ArrowUp"&&(O.preventDefault(),focusChild(N,"prev")):["ArrowDown","ArrowUp"].includes(O.key)&&(n.value=!0,O.preventDefault(),setTimeout(()=>setTimeout(()=>E(O))))}const I=computed(()=>mergeProps({"aria-haspopup":"menu","aria-expanded":String(n.value),"aria-owns":c.value,onKeydown:E},t.activatorProps));return useRender(()=>{const O=VOverlay.filterProps(t);return createVNode(VOverlay,mergeProps({ref:l,id:c.value,class:["v-menu",t.class],style:t.style},O,{modelValue:n.value,"onUpdate:modelValue":N=>n.value=N,absolute:!0,activatorProps:I.value,"onClick:outside":_,onKeydown:b},o),{activator:r.activator,default:function(){for(var N=arguments.length,A=new Array(N),z=0;z<N;z++)A[z]=arguments[z];return createVNode(VDefaultsProvider,{root:"VMenu"},{default:()=>{var G;return[(G=r.default)==null?void 0:G.call(r,...A)]}})}})}),forwardRefs({id:c,\u03A8openChildren:x},l)}}),VTextField$1="",VCounter$1="",makeVCounterProps=propsFactory$1(Pt(Pt({active:Boolean,max:[Number,String],value:{type:[Number,String],default:0}},makeComponentProps()),makeTransitionProps({transition:{component:VSlideYTransition}})),"VCounter"),VCounter=genericComponent()({name:"VCounter",functional:!0,props:makeVCounterProps(),setup(t,e){let{slots:r}=e;const n=computed(()=>t.max?`${t.value} / ${t.max}`:String(t.value));return useRender(()=>createVNode(MaybeTransition,{transition:t.transition},{default:()=>[withDirectives(createVNode("div",{class:["v-counter",t.class],style:t.style},[r.default?r.default({counter:n.value,max:t.max,value:t.value}):n.value]),[[vShow,t.active]])]})),{}}}),VField$1="",makeVFieldLabelProps=propsFactory$1(Pt({floating:Boolean},makeComponentProps()),"VFieldLabel"),VFieldLabel=genericComponent()({name:"VFieldLabel",props:makeVFieldLabelProps(),setup(t,e){let{slots:r}=e;return useRender(()=>createVNode(VLabel,{class:["v-field-label",{"v-field-label--floating":t.floating},t.class],style:t.style,"aria-hidden":t.floating||void 0},r)),{}}}),VProgressLinear$1="";function useIntersectionObserver(t,e){const r=ref(),n=shallowRef(!1);if(SUPPORTS_INTERSECTION){const o=new IntersectionObserver(s=>{t==null||t(s,o),n.value=!!s.find(c=>c.isIntersecting)},e);onBeforeUnmount(()=>{o.disconnect()}),watch(r,(s,c)=>{c&&(o.unobserve(c),n.value=!1),s&&o.observe(s)},{flush:"post"})}return{intersectionRef:r,isIntersecting:n}}const oppositeMap={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},makeLocationProps=propsFactory$1({location:String},"location");function useLocation(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2?arguments[2]:void 0;const{isRtl:n}=useRtl();return{locationStyles:computed(()=>{if(!t.location)return{};const{side:s,align:c}=parseAnchor(t.location.split(" ").length>1?t.location:`${t.location} center`,n.value);function l(x){return r?r(x):0}const v={};return s!=="center"&&(e?v[oppositeMap[s]]=`calc(100% - ${l(s)}px)`:v[s]=0),c!=="center"?e?v[oppositeMap[c]]=`calc(100% - ${l(c)}px)`:v[c]=0:(s==="center"?v.top=v.left="50%":v[{top:"left",bottom:"left",left:"top",right:"top"}[s]]="50%",v.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[s]),v})}}const makeVProgressLinearProps=propsFactory$1(Pt(Pt(Pt(Pt(Pt({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean},makeComponentProps()),makeLocationProps({location:"top"})),makeRoundedProps()),makeTagProps()),makeThemeProps()),"VProgressLinear"),VProgressLinear=genericComponent()({name:"VProgressLinear",props:makeVProgressLinearProps(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:r}=e;const n=useProxiedModel(t,"modelValue"),{isRtl:o,rtlClasses:s}=useRtl(),{themeClasses:c}=provideTheme(t),{locationStyles:l}=useLocation(t),{textColorClasses:v,textColorStyles:x}=useTextColor(t,"color"),{backgroundColorClasses:w,backgroundColorStyles:_}=useBackgroundColor(computed(()=>t.bgColor||t.color)),{backgroundColorClasses:b,backgroundColorStyles:E}=useBackgroundColor(t,"color"),{roundedClasses:I}=useRounded(t),{intersectionRef:O,isIntersecting:N}=useIntersectionObserver(),A=computed(()=>parseInt(t.max,10)),z=computed(()=>parseInt(t.height,10)),G=computed(()=>parseFloat(t.bufferValue)/A.value*100),V=computed(()=>parseFloat(n.value)/A.value*100),ne=computed(()=>o.value!==t.reverse),W=computed(()=>t.indeterminate?"fade-transition":"slide-x-transition"),B=computed(()=>t.bgOpacity==null?t.bgOpacity:parseFloat(t.bgOpacity));function q(D){if(!O.value)return;const{left:F,right:re,width:le}=O.value.getBoundingClientRect(),fe=ne.value?le-D.clientX+(re-le):D.clientX-F;n.value=Math.round(fe/le*A.value)}return useRender(()=>createVNode(t.tag,{ref:O,class:["v-progress-linear",{"v-progress-linear--absolute":t.absolute,"v-progress-linear--active":t.active&&N.value,"v-progress-linear--reverse":ne.value,"v-progress-linear--rounded":t.rounded,"v-progress-linear--rounded-bar":t.roundedBar,"v-progress-linear--striped":t.striped},I.value,c.value,s.value,t.class],style:[Pt({bottom:t.location==="bottom"?0:void 0,top:t.location==="top"?0:void 0,height:t.active?convertToUnit(z.value):0,"--v-progress-linear-height":convertToUnit(z.value)},l.value),t.style],role:"progressbar","aria-hidden":t.active?"false":"true","aria-valuemin":"0","aria-valuemax":t.max,"aria-valuenow":t.indeterminate?void 0:V.value,onClick:t.clickable&&q},{default:()=>[t.stream&&createVNode("div",{key:"stream",class:["v-progress-linear__stream",v.value],style:ei(Pt({},x.value),{[ne.value?"left":"right"]:convertToUnit(-z.value),borderTop:`${convertToUnit(z.value/2)} dotted`,opacity:B.value,top:`calc(50% - ${convertToUnit(z.value/4)})`,width:convertToUnit(100-G.value,"%"),"--v-progress-linear-stream-to":convertToUnit(z.value*(ne.value?1:-1))})},null),createVNode("div",{class:["v-progress-linear__background",w.value],style:[_.value,{opacity:B.value,width:convertToUnit(t.stream?G.value:100,"%")}]},null),createVNode(Transition,{name:W.value},{default:()=>[t.indeterminate?createVNode("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(D=>createVNode("div",{key:D,class:["v-progress-linear__indeterminate",D,b.value],style:E.value},null))]):createVNode("div",{class:["v-progress-linear__determinate",b.value],style:[E.value,{width:convertToUnit(V.value,"%")}]},null)]}),r.default&&createVNode("div",{class:"v-progress-linear__content"},[r.default({value:V.value,buffer:G.value})])]})),{}}}),makeLoaderProps=propsFactory$1({loading:[Boolean,String]},"loader");function useLoader(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:getCurrentInstanceName();return{loaderClasses:computed(()=>({[`${e}--loading`]:t.loading}))}}function LoaderSlot(t,e){var n;let{slots:r}=e;return createVNode("div",{class:`${t.name}__loader`},[((n=r.default)==null?void 0:n.call(r,{color:t.color,isActive:t.active}))||createVNode(VProgressLinear,{absolute:t.absolute,active:t.active,color:t.color,height:"2",indeterminate:!0},null)])}const allowedVariants$1=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],makeVFieldProps=propsFactory$1(Pt(Pt(Pt(Pt({appendInnerIcon:IconValue$1,bgColor:String,clearable:Boolean,clearIcon:{type:IconValue$1,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},error:Boolean,flat:Boolean,label:String,persistentClear:Boolean,prependInnerIcon:IconValue$1,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:t=>allowedVariants$1.includes(t)},"onClick:clear":EventProp(),"onClick:appendInner":EventProp(),"onClick:prependInner":EventProp()},makeComponentProps()),makeLoaderProps()),makeRoundedProps()),makeThemeProps()),"VField"),VField=genericComponent()({name:"VField",inheritAttrs:!1,props:Pt(Pt({id:String},makeFocusProps()),makeVFieldProps()),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{attrs:r,emit:n,slots:o}=e;const{themeClasses:s}=provideTheme(t),{loaderClasses:c}=useLoader(t),{focusClasses:l,isFocused:v,focus:x,blur:w}=useFocus(t),{InputIcon:_}=useInputIcon(t),{roundedClasses:b}=useRounded(t),{rtlClasses:E}=useRtl(),I=computed(()=>t.dirty||t.active),O=computed(()=>!t.singleLine&&!!(t.label||o.label)),N=getUid(),A=computed(()=>t.id||`input-${N}`),z=computed(()=>`${A.value}-messages`),G=ref(),V=ref(),ne=ref(),W=computed(()=>["plain","underlined"].includes(t.variant)),{backgroundColorClasses:B,backgroundColorStyles:q}=useBackgroundColor(toRef(t,"bgColor")),{textColorClasses:D,textColorStyles:F}=useTextColor(computed(()=>t.error||t.disabled?void 0:I.value&&v.value?t.color:t.baseColor));watch(I,fe=>{if(O.value){const me=G.value.$el,ye=V.value.$el;requestAnimationFrame(()=>{const Te=nullifyTransforms(me),ke=ye.getBoundingClientRect(),Le=ke.x-Te.x,et=ke.y-Te.y-(Te.height/2-ke.height/2),it=ke.width/.75,Ue=Math.abs(it-Te.width)>1?{maxWidth:convertToUnit(it)}:void 0,ht=getComputedStyle(me),De=getComputedStyle(ye),Be=parseFloat(ht.transitionDuration)*1e3||150,Ve=parseFloat(De.getPropertyValue("--v-field-label-scale")),He=De.getPropertyValue("color");me.style.visibility="visible",ye.style.visibility="hidden",animate(me,Pt({transform:`translate(${Le}px, ${et}px) scale(${Ve})`,color:He},Ue),{duration:Be,easing:standardEasing,direction:fe?"normal":"reverse"}).finished.then(()=>{me.style.removeProperty("visibility"),ye.style.removeProperty("visibility")})})}},{flush:"post"});const re=computed(()=>({isActive:I,isFocused:v,controlRef:ne,blur:w,focus:x}));function le(fe){fe.target!==document.activeElement&&fe.preventDefault()}return useRender(()=>{var Le,et,it,Ue;const fe=t.variant==="outlined",me=o["prepend-inner"]||t.prependInnerIcon,ye=!!(t.clearable||o.clear),Te=!!(o["append-inner"]||t.appendInnerIcon||ye),ke=()=>o.label?o.label(ei(Pt({},re.value),{label:t.label,props:{for:A.value}})):t.label;return createVNode("div",mergeProps({class:["v-field",{"v-field--active":I.value,"v-field--appended":Te,"v-field--center-affix":(Le=t.centerAffix)!=null?Le:!W.value,"v-field--disabled":t.disabled,"v-field--dirty":t.dirty,"v-field--error":t.error,"v-field--flat":t.flat,"v-field--has-background":!!t.bgColor,"v-field--persistent-clear":t.persistentClear,"v-field--prepended":me,"v-field--reverse":t.reverse,"v-field--single-line":t.singleLine,"v-field--no-label":!ke(),[`v-field--variant-${t.variant}`]:!0},s.value,B.value,l.value,c.value,b.value,E.value,t.class],style:[q.value,t.style],onClick:le},r),[createVNode("div",{class:"v-field__overlay"},null),createVNode(LoaderSlot,{name:"v-field",active:!!t.loading,color:t.error?"error":typeof t.loading=="string"?t.loading:t.color},{default:o.loader}),me&&createVNode("div",{key:"prepend",class:"v-field__prepend-inner"},[t.prependInnerIcon&&createVNode(_,{key:"prepend-icon",name:"prependInner"},null),(et=o["prepend-inner"])==null?void 0:et.call(o,re.value)]),createVNode("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(t.variant)&&O.value&&createVNode(VFieldLabel,{key:"floating-label",ref:V,class:[D.value],floating:!0,for:A.value,style:F.value},{default:()=>[ke()]}),createVNode(VFieldLabel,{ref:G,for:A.value},{default:()=>[ke()]}),(it=o.default)==null?void 0:it.call(o,ei(Pt({},re.value),{props:{id:A.value,class:"v-field__input","aria-describedby":z.value},focus:x,blur:w}))]),ye&&createVNode(VExpandXTransition,{key:"clear"},{default:()=>[withDirectives(createVNode("div",{class:"v-field__clearable",onMousedown:ht=>{ht.preventDefault(),ht.stopPropagation()}},[o.clear?o.clear():createVNode(_,{name:"clear"},null)]),[[vShow,t.dirty]])]}),Te&&createVNode("div",{key:"append",class:"v-field__append-inner"},[(Ue=o["append-inner"])==null?void 0:Ue.call(o,re.value),t.appendInnerIcon&&createVNode(_,{key:"append-icon",name:"appendInner"},null)]),createVNode("div",{class:["v-field__outline",D.value],style:F.value},[fe&&createVNode(Fragment,null,[createVNode("div",{class:"v-field__outline__start"},null),O.value&&createVNode("div",{class:"v-field__outline__notch"},[createVNode(VFieldLabel,{ref:V,floating:!0,for:A.value},{default:()=>[ke()]})]),createVNode("div",{class:"v-field__outline__end"},null)]),W.value&&O.value&&createVNode(VFieldLabel,{ref:V,floating:!0,for:A.value},{default:()=>[ke()]})])])}),{controlRef:ne}}});function filterFieldProps(t){const e=Object.keys(VField.props).filter(r=>!isOn(r)&&r!=="class"&&r!=="style");return pick(t,e)}const activeTypes=["color","file","time","date","datetime-local","week","month"],makeVTextFieldProps=propsFactory$1(Pt(Pt({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object},makeVInputProps()),makeVFieldProps()),"VTextField"),VTextField=genericComponent()({name:"VTextField",directives:{Intersect:Intersect$1},inheritAttrs:!1,props:makeVTextFieldProps(),emits:{"click:control":t=>!0,"mousedown:control":t=>!0,"update:focused":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{attrs:r,emit:n,slots:o}=e;const s=useProxiedModel(t,"modelValue"),{isFocused:c,focus:l,blur:v}=useFocus(t),x=computed(()=>{var W;return typeof t.counterValue=="function"?t.counterValue(s.value):typeof t.counterValue=="number"?t.counterValue:((W=s.value)!=null?W:"").toString().length}),w=computed(()=>{if(r.maxlength)return r.maxlength;if(!(!t.counter||typeof t.counter!="number"&&typeof t.counter!="string"))return t.counter}),_=computed(()=>["plain","underlined"].includes(t.variant));function b(W,B){var q,D;!t.autofocus||!W||(D=(q=B[0].target)==null?void 0:q.focus)==null||D.call(q)}const E=ref(),I=ref(),O=ref(),N=computed(()=>activeTypes.includes(t.type)||t.persistentPlaceholder||c.value||t.active);function A(){var W;O.value!==document.activeElement&&((W=O.value)==null||W.focus()),c.value||l()}function z(W){n("mousedown:control",W),W.target!==O.value&&(A(),W.preventDefault())}function G(W){A(),n("click:control",W)}function V(W){W.stopPropagation(),A(),nextTick(()=>{s.value=null,callEvent(t["onClick:clear"],W)})}function ne(W){var q;const B=W.target;if(s.value=B.value,((q=t.modelModifiers)==null?void 0:q.trim)&&["text","search","password","tel","url"].includes(t.type)){const D=[B.selectionStart,B.selectionEnd];nextTick(()=>{B.selectionStart=D[0],B.selectionEnd=D[1]})}}return useRender(()=>{const W=!!(o.counter||t.counter!==!1&&t.counter!=null),B=!!(W||o.details),[q,D]=filterInputAttrs(r),fe=VInput.filterProps(t),{modelValue:F}=fe,re=fd(fe,["modelValue"]),le=filterFieldProps(t);return createVNode(VInput,mergeProps({ref:E,modelValue:s.value,"onUpdate:modelValue":me=>s.value=me,class:["v-text-field",{"v-text-field--prefixed":t.prefix,"v-text-field--suffixed":t.suffix,"v-input--plain-underlined":_.value},t.class],style:t.style},q,re,{centerAffix:!_.value,focused:c.value}),ei(Pt({},o),{default:me=>{let{id:ye,isDisabled:Te,isDirty:ke,isReadonly:Le,isValid:et}=me;return createVNode(VField,mergeProps({ref:I,onMousedown:z,onClick:G,"onClick:clear":V,"onClick:prependInner":t["onClick:prependInner"],"onClick:appendInner":t["onClick:appendInner"],role:t.role},le,{id:ye.value,active:N.value||ke.value,dirty:ke.value||t.dirty,disabled:Te.value,focused:c.value,error:et.value===!1}),ei(Pt({},o),{default:it=>{let{props:Be}=it,Ve=Be,{class:Ue}=Ve,ht=fd(Ve,["class"]);const De=withDirectives(createVNode("input",mergeProps({ref:O,value:s.value,onInput:ne,autofocus:t.autofocus,readonly:Le.value,disabled:Te.value,name:t.name,placeholder:t.placeholder,size:1,type:t.type,onFocus:A,onBlur:v},ht,D),null),[[resolveDirective("intersect"),{handler:b},null,{once:!0}]]);return createVNode(Fragment,null,[t.prefix&&createVNode("span",{class:"v-text-field__prefix"},[createVNode("span",{class:"v-text-field__prefix__text"},[t.prefix])]),o.default?createVNode("div",{class:Ue,"data-no-activator":""},[o.default(),De]):cloneVNode(De,{class:Ue}),t.suffix&&createVNode("span",{class:"v-text-field__suffix"},[createVNode("span",{class:"v-text-field__suffix__text"},[t.suffix])])])}}))},details:B?me=>{var ye;return createVNode(Fragment,null,[(ye=o.details)==null?void 0:ye.call(o,me),W&&createVNode(Fragment,null,[createVNode("span",null,null),createVNode(VCounter,{active:t.persistentCounter||c.value,value:x.value,max:w.value},o.counter)])])}:void 0}))}),forwardRefs({},E,I,O)}}),VVirtualScroll$1="",makeVVirtualScrollItemProps=propsFactory$1(Pt({renderless:Boolean},makeComponentProps()),"VVirtualScrollItem"),VVirtualScrollItem=genericComponent()({name:"VVirtualScrollItem",inheritAttrs:!1,props:makeVVirtualScrollItemProps(),emits:{"update:height":t=>!0},setup(t,e){let{attrs:r,emit:n,slots:o}=e;const{resizeRef:s,contentRect:c}=useResizeObserver(void 0,"border");watch(()=>{var l;return(l=c.value)==null?void 0:l.height},l=>{l!=null&&n("update:height",l)}),useRender(()=>{var l,v;return t.renderless?createVNode(Fragment,null,[(l=o.default)==null?void 0:l.call(o,{itemRef:s})]):createVNode("div",mergeProps({ref:s,class:["v-virtual-scroll__item",t.class],style:t.style},r),[(v=o.default)==null?void 0:v.call(o)])})}}),UP=-1,DOWN=1,BUFFER_PX=100,makeVirtualProps=propsFactory$1({itemHeight:{type:[Number,String],default:null},height:[Number,String]},"virtual");function useVirtual(t,e){const r=useDisplay(),n=shallowRef(0);watchEffect(()=>{n.value=parseFloat(t.itemHeight||0)});const o=shallowRef(0),s=shallowRef(Math.ceil((parseInt(t.height)||r.height.value)/(n.value||16))||1),c=shallowRef(0),l=shallowRef(0),v=ref(),x=ref();let w=0;const{resizeRef:_,contentRect:b}=useResizeObserver();watchEffect(()=>{_.value=v.value});const E=computed(()=>{var et;return v.value===document.documentElement?r.height.value:((et=b.value)==null?void 0:et.height)||parseInt(t.height)||0}),I=computed(()=>!!(v.value&&x.value&&E.value&&n.value));let O=Array.from({length:e.value.length}),N=Array.from({length:e.value.length});const A=shallowRef(0);let z=-1;function G(et){return O[et]||n.value}const V=debounce(()=>{const et=performance.now();N[0]=0;const it=e.value.length;for(let Ue=1;Ue<=it-1;Ue++)N[Ue]=(N[Ue-1]||0)+G(Ue-1);A.value=Math.max(A.value,performance.now()-et)},A),ne=watch(I,et=>{!et||(ne(),w=x.value.offsetTop,V.immediate(),ye(),~z&&nextTick(()=>{IN_BROWSER&&window.requestAnimationFrame(()=>{ke(z),z=-1})}))});onScopeDispose(()=>{V.clear()});function W(et,it){const Ue=O[et],ht=n.value;n.value=ht?Math.min(n.value,it):it,(Ue!==it||ht!==n.value)&&(O[et]=it,V())}function B(et){return et=clamp(et,0,e.value.length-1),N[et]||0}function q(et){return binaryClosest(N,et)}let D=0,F=0,re=0;watch(E,(et,it)=>{it&&(ye(),et<it&&requestAnimationFrame(()=>{F=0,ye()}))});function le(){if(!v.value||!x.value)return;const et=v.value.scrollTop,it=performance.now();it-re>500?(F=Math.sign(et-D),w=x.value.offsetTop):F=et-D,D=et,re=it,ye()}function fe(){!v.value||!x.value||(F=0,re=0,ye())}let me=-1;function ye(){cancelAnimationFrame(me),me=requestAnimationFrame(Te)}function Te(){if(!v.value||!E.value)return;const et=D-w,it=Math.sign(F),Ue=Math.max(0,et-BUFFER_PX),ht=clamp(q(Ue),0,e.value.length),De=et+E.value+BUFFER_PX,Be=clamp(q(De)+1,ht+1,e.value.length);if((it!==UP||ht<o.value)&&(it!==DOWN||Be>s.value)){const Ve=B(o.value)-B(ht),He=B(Be)-B(s.value);Math.max(Ve,He)>BUFFER_PX?(o.value=ht,s.value=Be):(ht<=0&&(o.value=ht),Be>=e.value.length&&(s.value=Be))}c.value=B(o.value),l.value=B(e.value.length)-B(s.value)}function ke(et){const it=B(et);!v.value||et&&!it?z=et:v.value.scrollTop=it}const Le=computed(()=>e.value.slice(o.value,s.value).map((et,it)=>({raw:et,index:it+o.value})));return watch(e,()=>{O=Array.from({length:e.value.length}),N=Array.from({length:e.value.length}),V.immediate(),ye()},{deep:!0}),{containerRef:v,markerRef:x,computedItems:Le,paddingTop:c,paddingBottom:l,scrollToIndex:ke,handleScroll:le,handleScrollend:fe,handleItemResize:W}}function binaryClosest(t,e){let r=t.length-1,n=0,o=0,s=null,c=-1;if(t[r]<e)return r;for(;n<=r;)if(o=n+r>>1,s=t[o],s>e)r=o-1;else if(s<e)c=o,n=o+1;else return s===e?o:n;return c}const makeVVirtualScrollProps=propsFactory$1(Pt(Pt(Pt({items:{type:Array,default:()=>[]},renderless:Boolean},makeVirtualProps()),makeComponentProps()),makeDimensionProps()),"VVirtualScroll"),VVirtualScroll=genericComponent()({name:"VVirtualScroll",props:makeVVirtualScrollProps(),setup(t,e){let{slots:r}=e;const n=getCurrentInstance("VVirtualScroll"),{dimensionStyles:o}=useDimension(t),{containerRef:s,markerRef:c,handleScroll:l,handleScrollend:v,handleItemResize:x,scrollToIndex:w,paddingTop:_,paddingBottom:b,computedItems:E}=useVirtual(t,toRef(t,"items"));return useToggleScope(()=>t.renderless,()=>{function I(){var A,z;const N=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?"addEventListener":"removeEventListener";s.value===document.documentElement?(document[N]("scroll",l,{passive:!0}),document[N]("scrollend",v)):((A=s.value)==null||A[N]("scroll",l,{passive:!0}),(z=s.value)==null||z[N]("scrollend",v))}onMounted(()=>{s.value=getScrollParent(n.vnode.el,!0),I(!0)}),onScopeDispose(I)}),useRender(()=>{const I=E.value.map(O=>createVNode(VVirtualScrollItem,{key:O.index,renderless:t.renderless,"onUpdate:height":N=>x(O.index,N)},{default:N=>{var A;return(A=r.default)==null?void 0:A.call(r,Pt({item:O.raw,index:O.index},N))}}));return t.renderless?createVNode(Fragment,null,[createVNode("div",{ref:c,class:"v-virtual-scroll__spacer",style:{paddingTop:convertToUnit(_.value)}},null),I,createVNode("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:convertToUnit(b.value)}},null)]):createVNode("div",{ref:s,class:["v-virtual-scroll",t.class],onScrollPassive:l,onScrollend:v,style:[o.value,t.style]},[createVNode("div",{ref:c,class:"v-virtual-scroll__container",style:{paddingTop:convertToUnit(_.value),paddingBottom:convertToUnit(b.value)}},[I])])}),{scrollToIndex:w}}});function useScrolling(t,e){const r=shallowRef(!1);let n;function o(l){cancelAnimationFrame(n),r.value=!0,n=requestAnimationFrame(()=>{n=requestAnimationFrame(()=>{r.value=!1})})}function s(){return Gr(this,null,function*(){yield new Promise(l=>requestAnimationFrame(l)),yield new Promise(l=>requestAnimationFrame(l)),yield new Promise(l=>requestAnimationFrame(l)),yield new Promise(l=>{if(r.value){const v=watch(r,()=>{v(),l()})}else l()})})}function c(l){return Gr(this,null,function*(){var w,_;if(l.key==="Tab"&&((w=e.value)==null||w.focus()),!["PageDown","PageUp","Home","End"].includes(l.key))return;const v=(_=t.value)==null?void 0:_.$el;if(!v)return;(l.key==="Home"||l.key==="End")&&v.scrollTo({top:l.key==="Home"?0:v.scrollHeight,behavior:"smooth"}),yield s();const x=v.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if(l.key==="PageDown"||l.key==="Home"){const b=v.getBoundingClientRect().top;for(const E of x)if(E.getBoundingClientRect().top>=b){E.focus();break}}else{const b=v.getBoundingClientRect().bottom;for(const E of[...x].reverse())if(E.getBoundingClientRect().bottom<=b){E.focus();break}}})}return{onListScroll:o,onListKeydown:c}}const makeSelectProps=propsFactory$1(Pt({chips:Boolean,closableChips:Boolean,closeText:{type:String,default:"$vuetify.close"},openText:{type:String,default:"$vuetify.open"},eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,listProps:{type:Object},menu:Boolean,menuIcon:{type:IconValue$1,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String},makeItemsProps({itemChildren:!1})),"Select"),makeVSelectProps=propsFactory$1(Pt(Pt(Pt({},makeSelectProps()),omit(makeVTextFieldProps({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"])),makeTransitionProps({transition:{component:VDialogTransition}})),"VSelect"),VSelect=genericComponent()({name:"VSelect",props:makeVSelectProps(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,"update:menu":t=>!0},setup(t,e){let{slots:r}=e;const{t:n}=useLocale(),o=ref(),s=ref(),c=ref(),l=useProxiedModel(t,"menu"),v=computed({get:()=>l.value,set:Le=>{var et;l.value&&!Le&&((et=s.value)==null?void 0:et.\u03A8openChildren)||(l.value=Le)}}),{items:x,transformIn:w,transformOut:_}=useItems(t),b=useProxiedModel(t,"modelValue",[],Le=>w(Le===null?[null]:wrapInArray(Le)),Le=>{var it;const et=_(Le);return t.multiple?et:(it=et[0])!=null?it:null}),E=computed(()=>typeof t.counterValue=="function"?t.counterValue(b.value):typeof t.counterValue=="number"?t.counterValue:b.value.length),I=useForm(),O=computed(()=>b.value.map(Le=>Le.value)),N=shallowRef(!1),A=computed(()=>v.value?t.closeText:t.openText);let z="",G;const V=computed(()=>t.hideSelected?x.value.filter(Le=>!b.value.some(et=>et===Le)):x.value),ne=computed(()=>t.hideNoData&&!V.value.length||t.readonly||(I==null?void 0:I.isReadonly.value)),W=computed(()=>{var Le;return ei(Pt({},t.menuProps),{activatorProps:ei(Pt({},((Le=t.menuProps)==null?void 0:Le.activatorProps)||{}),{"aria-haspopup":"listbox"})})}),B=ref(),{onListScroll:q,onListKeydown:D}=useScrolling(B,o);function F(Le){t.openOnClear&&(v.value=!0)}function re(){ne.value||(v.value=!v.value)}function le(Le){var De,Be;if(!Le.key||t.readonly||(I==null?void 0:I.isReadonly.value))return;["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes(Le.key)&&Le.preventDefault(),["Enter","ArrowDown"," "].includes(Le.key)&&(v.value=!0),["Escape","Tab"].includes(Le.key)&&(v.value=!1),Le.key==="Home"?(De=B.value)==null||De.focus("first"):Le.key==="End"&&((Be=B.value)==null||Be.focus("last"));const et=1e3;function it(Ve){const He=Ve.key.length===1,gt=!Ve.ctrlKey&&!Ve.metaKey&&!Ve.altKey;return He&&gt}if(t.multiple||!it(Le))return;const Ue=performance.now();Ue-G>et&&(z=""),z+=Le.key.toLowerCase(),G=Ue;const ht=x.value.find(Ve=>Ve.title.toLowerCase().startsWith(z));ht!==void 0&&(b.value=[ht])}function fe(Le){let et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!Le.props.disabled)if(t.multiple){const it=b.value.findIndex(ht=>t.valueComparator(ht.value,Le.value)),Ue=et==null?!~it:et;if(~it){const ht=Ue?[...b.value,Le]:[...b.value];ht.splice(it,1),b.value=ht}else Ue&&(b.value=[...b.value,Le])}else{const it=et!==!1;b.value=it?[Le]:[],nextTick(()=>{v.value=!1})}}function me(Le){var et;(et=B.value)!=null&&et.$el.contains(Le.relatedTarget)||(v.value=!1)}function ye(){var Le;N.value&&((Le=o.value)==null||Le.focus())}function Te(Le){N.value=!0}function ke(Le){if(Le==null)b.value=[];else if(matchesSelector(o.value,":autofill")||matchesSelector(o.value,":-webkit-autofill")){const et=x.value.find(it=>it.title===Le);et&&fe(et)}else o.value&&(o.value.value="")}return watch(v,()=>{if(!t.hideSelected&&v.value&&b.value.length){const Le=V.value.findIndex(et=>b.value.some(it=>t.valueComparator(it.value,et.value)));IN_BROWSER&&window.requestAnimationFrame(()=>{var et;Le>=0&&((et=c.value)==null||et.scrollToIndex(Le))})}}),watch(()=>t.items,Le=>{!N.value||!Le.length||v.value||(v.value=!0)}),useRender(()=>{const Le=!!(t.chips||r.chip),et=!!(!t.hideNoData||V.value.length||r["prepend-item"]||r["append-item"]||r["no-data"]),it=b.value.length>0,Ue=VTextField.filterProps(t),ht=it||!N.value&&t.label&&!t.persistentPlaceholder?void 0:t.placeholder;return createVNode(VTextField,mergeProps({ref:o},Ue,{modelValue:b.value.map(De=>De.props.value).join(", "),"onUpdate:modelValue":ke,focused:N.value,"onUpdate:focused":De=>N.value=De,validationValue:b.externalValue,counterValue:E.value,dirty:it,class:["v-select",{"v-select--active-menu":v.value,"v-select--chips":!!t.chips,[`v-select--${t.multiple?"multiple":"single"}`]:!0,"v-select--selected":b.value.length,"v-select--selection-slot":!!r.selection},t.class],style:t.style,inputmode:"none",placeholder:ht,"onClick:clear":F,"onMousedown:control":re,onBlur:me,onKeydown:le,"aria-label":n(A.value),title:n(A.value)}),ei(Pt({},r),{default:()=>createVNode(Fragment,null,[createVNode(VMenu,mergeProps({ref:s,modelValue:v.value,"onUpdate:modelValue":De=>v.value=De,activator:"parent",contentClass:"v-select__content",disabled:ne.value,eager:t.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:t.transition,onAfterLeave:ye},W.value),{default:()=>{var De;return[et&&createVNode(VList,mergeProps({ref:B,selected:O.value,selectStrategy:t.multiple?"independent":"single-independent",onMousedown:Be=>Be.preventDefault(),onKeydown:D,onFocusin:Te,onScrollPassive:q,tabindex:"-1","aria-live":"polite",color:(De=t.itemColor)!=null?De:t.color},t.listProps),{default:()=>{var Be,Ve,He,gt;return[(Be=r["prepend-item"])==null?void 0:Be.call(r),!V.value.length&&!t.hideNoData&&((He=(Ve=r["no-data"])==null?void 0:Ve.call(r))!=null?He:createVNode(VListItem,{title:n(t.noDataText)},null)),createVNode(VVirtualScroll,{ref:c,renderless:!0,items:V.value},{default:dn=>{var ze,Ke;let{item:Ze,index:at,itemRef:Lt}=dn;const Ne=mergeProps(Ze.props,{ref:Lt,key:at,onClick:()=>fe(Ze,null)});return(Ke=(ze=r.item)==null?void 0:ze.call(r,{item:Ze,index:at,props:Ne}))!=null?Ke:createVNode(VListItem,mergeProps(Ne,{role:"option"}),{prepend:vt=>{let{isSelected:Ft}=vt;return createVNode(Fragment,null,[t.multiple&&!t.hideSelected?createVNode(VCheckboxBtn,{key:Ze.value,modelValue:Ft,ripple:!1,tabindex:"-1"},null):void 0,Ze.props.prependAvatar&&createVNode(VAvatar,{image:Ze.props.prependAvatar},null),Ze.props.prependIcon&&createVNode(VIcon,{icon:Ze.props.prependIcon},null)])}})}}),(gt=r["append-item"])==null?void 0:gt.call(r)]}})]}}),b.value.map((De,Be)=>{function Ve(Ze){Ze.stopPropagation(),Ze.preventDefault(),fe(De,!1)}const He={"onClick:close":Ve,onMousedown(Ze){Ze.preventDefault(),Ze.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},gt=Le?!!r.chip:!!r.selection,dn=gt?ensureValidVNode(Le?r.chip({item:De,index:Be,props:He}):r.selection({item:De,index:Be})):void 0;if(!(gt&&!dn))return createVNode("div",{key:De.value,class:"v-select__selection"},[Le?r.chip?createVNode(VDefaultsProvider,{key:"chip-defaults",defaults:{VChip:{closable:t.closableChips,size:"small",text:De.title}}},{default:()=>[dn]}):createVNode(VChip,mergeProps({key:"chip",closable:t.closableChips,size:"small",text:De.title,disabled:De.props.disabled},He),null):dn!=null?dn:createVNode("span",{class:"v-select__selection-text"},[De.title,t.multiple&&Be<b.value.length-1&&createVNode("span",{class:"v-select__selection-comma"},[createTextVNode(",")])])])})]),"append-inner":function(){var He;for(var De=arguments.length,Be=new Array(De),Ve=0;Ve<De;Ve++)Be[Ve]=arguments[Ve];return createVNode(Fragment,null,[(He=r["append-inner"])==null?void 0:He.call(r,...Be),t.menuIcon?createVNode(VIcon,{class:"v-select__menu-icon",icon:t.menuIcon},null):void 0])}}))}),forwardRefs({isFocused:N,menu:v,select:fe},o)}}),_hoisted_1$i={class:"select-box"},_hoisted_2$d={class:"text"},_sfc_main$q=defineComponent$1({__name:"MxColorSelect",props:{isStoreColor:{type:Boolean,default:!1},modelValue:{}},emits:["update:model-value","change"],setup(t,{expose:e,emit:r}){const n=useColor$1(),{colorSelectList:o,currentSelectColor:s}=storeToRefs(n),{createColor:c}=n,l=(b,E)=>{if(!b)return v.value[v.value.length-1];if(typeof b=="object")return b;let I=c(Pt({},countColorInfo(b,E)));const O=v.value.find(A=>I.name===A.name||I.color===A.color);let N;return O?N=O:(v.value.unshift(I),N=I),N},v=t.isStoreColor?o:ref([...o.value]),x=t.isStoreColor?s:ref(t.modelValue?l(t.modelValue):s.value);if(watch(()=>t.modelValue,b=>{x.value=l(b)}),o.value.length===0&&!t.isStoreColor){const b=watch(o,()=>{v.value=[...o.value],b(),x.value=t.modelValue?l(t.modelValue):s.value,x.value&&(r("update:model-value",x.value),r("change",x.value))})}const w=()=>{callCommand("Mx_Color",{color:x.value,call:(b,E)=>{const I=l(b,E);x.value=I,r("update:model-value",I),r("change",I)}})},_=b=>{b.method=ColorMethod.kByACI,x.value=b,r("update:model-value",b),r("change",b)};return e({color:x}),(b,E)=>(openBlock(),createBlock(VSelect,{items:unref(v),"bg-color":"background","model-value":unref(x),"onUpdate:modelValue":_,"return-object":"","item-title":"name",class:"mr-2 rounded"},{selection:withCtx(({item:I})=>[createBaseVNode("div",_hoisted_1$i,[createBaseVNode("span",{class:"colorBox ml-1",style:normalizeStyle(`background:${I.raw.color}`)},null,4),createBaseVNode("span",_hoisted_2$d,toDisplayString$1(b.$t(I.raw.name)),1)])]),item:withCtx(({item:I,props:O})=>[createVNode(VListItem,normalizeProps(guardReactiveProps(O)),{prepend:withCtx(()=>[createBaseVNode("span",{class:"colorBox ml-1",style:normalizeStyle(`background:${I.raw.color}`)},null,4)]),_:2},1040)]),"prepend-item":withCtx(()=>[createVNode(VListItem,{onClick:withModifiers(w,["stop"]),title:b.$t("\u9009\u62E9\u66F4\u591A\u989C\u8272")},{prepend:withCtx(()=>[createVNode(VIcon,{icon:"yanse",style:{"margin-right":"10px"},class:"ml-1",size:"14"})]),_:1},8,["onClick","title"])]),_:1},8,["items","model-value"]))}}),MxColorSelect_vue_vue_type_style_index_0_scoped_d5a81ece_lang="",_export_sfc=(t,e)=>{const r=t.__vccOpts||t;for(const[n,o]of e)r[n]=o;return r},MxColorSelect=_export_sfc(_sfc_main$q,[["__scopeId","data-v-d5a81ece"]]),useTopButtonBarData=()=>({mTopButtonBarData:markRaw(uiConfig.mTopButtonBarData||[])}),VBtn$1="",VBtnToggle$1="",VBtnGroup$1="",makeVBtnGroupProps=propsFactory$1(Pt(Pt(Pt(Pt(Pt(Pt(Pt(Pt({divided:Boolean},makeBorderProps()),makeComponentProps()),makeDensityProps()),makeElevationProps()),makeRoundedProps()),makeTagProps()),makeThemeProps()),makeVariantProps()),"VBtnGroup"),VBtnGroup=genericComponent()({name:"VBtnGroup",props:makeVBtnGroupProps(),setup(t,e){let{slots:r}=e;const{themeClasses:n}=provideTheme(t),{densityClasses:o}=useDensity(t),{borderClasses:s}=useBorder(t),{elevationClasses:c}=useElevation(t),{roundedClasses:l}=useRounded(t);provideDefaults({VBtn:{height:"auto",color:toRef(t,"color"),density:toRef(t,"density"),flat:!0,variant:toRef(t,"variant")}}),useRender(()=>createVNode(t.tag,{class:["v-btn-group",{"v-btn-group--divided":t.divided},n.value,s.value,o.value,c.value,l.value,t.class],style:t.style},r))}}),VBtnToggleSymbol=Symbol.for("vuetify:v-btn-toggle"),makeVBtnToggleProps=propsFactory$1(Pt(Pt({},makeVBtnGroupProps()),makeGroupProps()),"VBtnToggle"),VBtnToggle=genericComponent()({name:"VBtnToggle",props:makeVBtnToggleProps(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:r}=e;const{isSelected:n,next:o,prev:s,select:c,selected:l}=useGroup(t,VBtnToggleSymbol);return useRender(()=>{const v=VBtnGroup.filterProps(t);return createVNode(VBtnGroup,mergeProps({class:["v-btn-toggle",t.class]},v,{style:t.style}),{default:()=>{var x;return[(x=r.default)==null?void 0:x.call(r,{isSelected:n,next:o,prev:s,select:c,selected:l})]}})}),{next:o,prev:s,select:c}}}),VProgressCircular$1="",makeVProgressCircularProps=propsFactory$1(Pt(Pt(Pt(Pt({bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4}},makeComponentProps()),makeSizeProps()),makeTagProps({tag:"div"})),makeThemeProps()),"VProgressCircular"),VProgressCircular=genericComponent()({name:"VProgressCircular",props:makeVProgressCircularProps(),setup(t,e){let{slots:r}=e;const n=20,o=2*Math.PI*n,s=ref(),{themeClasses:c}=provideTheme(t),{sizeClasses:l,sizeStyles:v}=useSize(t),{textColorClasses:x,textColorStyles:w}=useTextColor(toRef(t,"color")),{textColorClasses:_,textColorStyles:b}=useTextColor(toRef(t,"bgColor")),{intersectionRef:E,isIntersecting:I}=useIntersectionObserver(),{resizeRef:O,contentRect:N}=useResizeObserver(),A=computed(()=>Math.max(0,Math.min(100,parseFloat(t.modelValue)))),z=computed(()=>Number(t.width)),G=computed(()=>v.value?Number(t.size):N.value?N.value.width:Math.max(z.value,32)),V=computed(()=>n/(1-z.value/G.value)*2),ne=computed(()=>z.value/G.value*V.value),W=computed(()=>convertToUnit((100-A.value)/100*o));return watchEffect(()=>{E.value=s.value,O.value=s.value}),useRender(()=>createVNode(t.tag,{ref:s,class:["v-progress-circular",{"v-progress-circular--indeterminate":!!t.indeterminate,"v-progress-circular--visible":I.value,"v-progress-circular--disable-shrink":t.indeterminate==="disable-shrink"},c.value,l.value,x.value,t.class],style:[v.value,w.value,t.style],role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":t.indeterminate?void 0:A.value},{default:()=>[createVNode("svg",{style:{transform:`rotate(calc(-90deg + ${Number(t.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${V.value} ${V.value}`},[createVNode("circle",{class:["v-progress-circular__underlay",_.value],style:b.value,fill:"transparent",cx:"50%",cy:"50%",r:n,"stroke-width":ne.value,"stroke-dasharray":o,"stroke-dashoffset":0},null),createVNode("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r:n,"stroke-width":ne.value,"stroke-dasharray":o,"stroke-dashoffset":W.value},null)]),r.default&&createVNode("div",{class:"v-progress-circular__content"},[r.default({value:A.value})])]})),{}}}),positionValues=["static","relative","fixed","absolute","sticky"],makePositionProps=propsFactory$1({position:{type:String,validator:t=>positionValues.includes(t)}},"position");function usePosition(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:getCurrentInstanceName();return{positionClasses:computed(()=>t.position?`${e}--${t.position}`:void 0)}}function useSelectLink(t,e){watch(()=>{var r;return(r=t.isActive)==null?void 0:r.value},r=>{t.isLink.value&&r&&e&&nextTick(()=>{e(!0)})},{immediate:!0})}const makeVBtnProps=propsFactory$1(Pt(Pt(Pt(Pt(Pt(Pt(Pt(Pt(Pt(Pt(Pt(Pt(Pt(Pt(Pt({active:{type:Boolean,default:void 0},symbol:{type:null,default:VBtnToggleSymbol},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:IconValue$1,appendIcon:IconValue$1,block:Boolean,slim:Boolean,stacked:Boolean,ripple:{type:[Boolean,Object],default:!0},text:String},makeBorderProps()),makeComponentProps()),makeDensityProps()),makeDimensionProps()),makeElevationProps()),makeGroupItemProps()),makeLoaderProps()),makeLocationProps()),makePositionProps()),makeRoundedProps()),makeRouterProps()),makeSizeProps()),makeTagProps({tag:"button"})),makeThemeProps()),makeVariantProps({variant:"elevated"})),"VBtn"),VBtn=genericComponent()({name:"VBtn",directives:{Ripple},props:makeVBtnProps(),emits:{"group:selected":t=>!0},setup(t,e){let{attrs:r,slots:n}=e;const{themeClasses:o}=provideTheme(t),{borderClasses:s}=useBorder(t),{colorClasses:c,colorStyles:l,variantClasses:v}=useVariant(t),{densityClasses:x}=useDensity(t),{dimensionStyles:w}=useDimension(t),{elevationClasses:_}=useElevation(t),{loaderClasses:b}=useLoader(t),{locationStyles:E}=useLocation(t),{positionClasses:I}=usePosition(t),{roundedClasses:O}=useRounded(t),{sizeClasses:N,sizeStyles:A}=useSize(t),z=useGroupItem(t,t.symbol,!1),G=useLink(t,r),V=computed(()=>{var D;return t.active!==void 0?t.active:G.isLink.value?(D=G.isActive)==null?void 0:D.value:z==null?void 0:z.isSelected.value}),ne=computed(()=>(z==null?void 0:z.disabled.value)||t.disabled),W=computed(()=>t.variant==="elevated"&&!(t.disabled||t.flat||t.border)),B=computed(()=>{if(!(t.value===void 0||typeof t.value=="symbol"))return Object(t.value)===t.value?JSON.stringify(t.value,null,0):t.value});function q(D){var F;ne.value||G.isLink.value&&(D.metaKey||D.ctrlKey||D.shiftKey||D.button!==0||r.target==="_blank")||((F=G.navigate)==null||F.call(G,D),z==null||z.toggle())}return useSelectLink(G,z==null?void 0:z.select),useRender(()=>{var me,ye;const D=G.isLink.value?"a":t.tag,F=!!(t.prependIcon||n.prepend),re=!!(t.appendIcon||n.append),le=!!(t.icon&&t.icon!==!0),fe=(z==null?void 0:z.isSelected.value)&&(!G.isLink.value||((me=G.isActive)==null?void 0:me.value))||!z||((ye=G.isActive)==null?void 0:ye.value);return withDirectives(createVNode(D,{type:D==="a"?void 0:"button",class:["v-btn",z==null?void 0:z.selectedClass.value,{"v-btn--active":V.value,"v-btn--block":t.block,"v-btn--disabled":ne.value,"v-btn--elevated":W.value,"v-btn--flat":t.flat,"v-btn--icon":!!t.icon,"v-btn--loading":t.loading,"v-btn--slim":t.slim,"v-btn--stacked":t.stacked},o.value,s.value,fe?c.value:void 0,x.value,_.value,b.value,I.value,O.value,N.value,v.value,t.class],style:[fe?l.value:void 0,w.value,E.value,A.value,t.style],disabled:ne.value||void 0,href:G.href.value,onClick:q,value:B.value},{default:()=>{var Te,ke;return[genOverlays(!0,"v-btn"),!t.icon&&F&&createVNode("span",{key:"prepend",class:"v-btn__prepend"},[n.prepend?createVNode(VDefaultsProvider,{key:"prepend-defaults",disabled:!t.prependIcon,defaults:{VIcon:{icon:t.prependIcon}}},n.prepend):createVNode(VIcon,{key:"prepend-icon",icon:t.prependIcon},null)]),createVNode("span",{class:"v-btn__content","data-no-activator":""},[!n.default&&le?createVNode(VIcon,{key:"content-icon",icon:t.icon},null):createVNode(VDefaultsProvider,{key:"content-defaults",disabled:!le,defaults:{VIcon:{icon:t.icon}}},{default:()=>{var Le,et;return[(et=(Le=n.default)==null?void 0:Le.call(n))!=null?et:t.text]}})]),!t.icon&&re&&createVNode("span",{key:"append",class:"v-btn__append"},[n.append?createVNode(VDefaultsProvider,{key:"append-defaults",disabled:!t.appendIcon,defaults:{VIcon:{icon:t.appendIcon}}},n.append):createVNode(VIcon,{key:"append-icon",icon:t.appendIcon},null)]),!!t.loading&&createVNode("span",{key:"loader",class:"v-btn__loader"},[(ke=(Te=n.loader)==null?void 0:Te.call(n))!=null?ke:createVNode(VProgressCircular,{color:typeof t.loading=="boolean"?void 0:t.loading,indeterminate:!0,size:"23",width:"2"},null)])]}}),[[resolveDirective("ripple"),!ne.value&&t.ripple,null]])}),{group:z}}}),VTooltip$1="",makeVTooltipProps=propsFactory$1(Pt({id:String,text:String},omit(makeVOverlayProps({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:!1}),["absolute","persistent"])),"VTooltip"),VTooltip=genericComponent()({name:"VTooltip",props:makeVTooltipProps(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:r}=e;const n=useProxiedModel(t,"modelValue"),{scopeId:o}=useScopeId(),s=getUid(),c=computed(()=>t.id||`v-tooltip-${s}`),l=ref(),v=computed(()=>t.location.split(" ").length>1?t.location:t.location+" center"),x=computed(()=>t.origin==="auto"||t.origin==="overlap"||t.origin.split(" ").length>1||t.location.split(" ").length>1?t.origin:t.origin+" center"),w=computed(()=>t.transition?t.transition:n.value?"scale-transition":"fade-transition"),_=computed(()=>mergeProps({"aria-describedby":c.value},t.activatorProps));return useRender(()=>{const b=VOverlay.filterProps(t);return createVNode(VOverlay,mergeProps({ref:l,class:["v-tooltip",t.class],style:t.style,id:c.value},b,{modelValue:n.value,"onUpdate:modelValue":E=>n.value=E,transition:w.value,absolute:!0,location:v.value,origin:x.value,persistent:!0,role:"tooltip",activatorProps:_.value,_disableGlobalStack:!0},o),{activator:r.activator,default:function(){var N,A;for(var E=arguments.length,I=new Array(E),O=0;O<E;O++)I[O]=arguments[O];return(A=(N=r.default)==null?void 0:N.call(r,...I))!=null?A:t.text}})}),forwardRefs({},l)}}),_hoisted_1$h={key:0,class:"top-btn-list d-flex w-100 align-center py-1 ma-0 px-0 bg-prominent"},_hoisted_2$c={class:"d-flex align-center"},_hoisted_3$6={class:"select-box"},_sfc_main$p=defineComponent$1({__name:"TopBtnList",setup(t){const e=()=>{callCommand("MxLayerManager")},{mTopButtonBarData:r}=useTopButtonBarData(),n=useLayer(),{putCurrent:o}=n,{list:s,currentLayer:c}=storeToRefs(n),{lineTypeList:l,currentLineType:v}=storeToRefs(useLineType()),x=w=>{w.cmd&&callCommand(w.cmd,w)};return(w,_)=>unref(uiConfig).isShowTopButtonBar?(openBlock(),createElementBlock("div",_hoisted_1$h,[createBaseVNode("div",_hoisted_2$c,[createVNode(VTooltip,{link:"",right:"","open-delay":700},{activator:withCtx(({props:b})=>[createVNode(VBtn,mergeProps({class:"box pa-1 rounded-0 ml-1",size:"large",icon:"",density:"compact","max-width":"45",variant:"text"},b,{onClick:e}),{default:withCtx(()=>[createVNode(VIcon,{icon:"tuceng",class:"",size:"x-large"})]),_:2},1040)]),default:withCtx(()=>[createBaseVNode("span",null,toDisplayString$1(w.$t("\u56FE\u5C42")),1)]),_:1}),createVNode(VSelect,{items:unref(s),"bg-color":"background","item-title":"name","item-value":"id",modelValue:unref(c),"onUpdate:modelValue":[_[0]||(_[0]=b=>isRef(c)?c.value=b:null),unref(o)],class:"mx-2 rounded","return-object":""},{selection:withCtx(({item:b,index:E})=>[createBaseVNode("div",_hoisted_3$6,[createVNode(VIcon,{class:"ml-1 text-blue-darken-3",size:"20",icon:b.raw.visible?"yanjing1":"yanjing"},null,8,["icon"]),createVNode(VIcon,{class:"ml-1 text-orange iconjiesuo1",size:"20",icon:b.raw.freeze?"ziyuan":"taiyang"},null,8,["icon"]),createVNode(VIcon,{class:"text-orange",size:"20",icon:b.raw.lock?"suo":"jiesuo1"},null,8,["icon"]),createBaseVNode("span",{class:"colorBox ml-1",style:normalizeStyle({background:b.raw.color.color})},null,4),(openBlock(),createElementBlock("span",{key:E,class:"text"},toDisplayString$1(b.title),1))])]),item:withCtx(({item:b,props:E})=>[createVNode(VListItem,normalizeProps(guardReactiveProps(E)),{prepend:withCtx(()=>[createVNode(VIcon,{class:"ml-1 text-blue-darken-2",size:"20",icon:b.raw.visible?"yanjing1":"yanjing"},null,8,["icon"]),createVNode(VIcon,{class:"ml-1 text-orange iconjiesuo1",size:"20",icon:b.raw.freeze?"ziyuan":"taiyang"},null,8,["icon"]),createVNode(VIcon,{class:"text-orange",size:"20",icon:b.raw.lock?"suo":"jiesuo1"},null,8,["icon"]),createBaseVNode("span",{class:"colorBox ml-1",style:normalizeStyle({background:b.raw.color.color})},null,4)]),_:2},1040)]),_:1},8,["items","modelValue","onUpdate:modelValue"]),createVNode(MxColorSelect,{"bg-color":"background","is-store-color":"","menu-props":{maxHeight:"600"}}),createVNode(VSelect,{"bg-color":"background",items:unref(l),modelValue:unref(v),"onUpdate:modelValue":_[1]||(_[1]=b=>isRef(v)?v.value=b:null),"return-object":"","item-title":"name",class:"rounded mr-2"},null,8,["items","modelValue"]),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(r),(b,E)=>(openBlock(),createBlock(VTooltip,{theme:"light",key:E,link:"","open-delay":700,text:b.prompt},{activator:withCtx(({isActive:I,props:O})=>[createVNode(VBtn,mergeProps(O,{size:"small",icon:b.icon,variant:"text",class:"rounded-0",onClick:N=>x(b)}),{default:withCtx(()=>[createVNode(VIcon,{size:"x-large"})]),_:2},1040,["icon","onClick"])]),_:2},1032,["text"]))),128))])])):createCommentVNode("",!0)}}),TopBtnList_vue_vue_type_style_index_0_scoped_f8b992cc_lang="",TopBtnList=_export_sfc(_sfc_main$p,[["__scopeId","data-v-f8b992cc"]]),_sfc_main$o=defineComponent$1({__name:"index",props:{list:{default:()=>[]},location:{default:"left"}},emits:["change"],setup(t,{emit:e}){return(r,n)=>(openBlock(),createBlock(VList,{class:"list d-flex"},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(r.list,(o,s)=>(openBlock(),createBlock(VTooltip,{theme:"light",key:s,link:"",location:r.location,text:r.$t(o.prompt||"")},{activator:withCtx(({isActive:c,props:l})=>[createVNode(VBtn,mergeProps(l,{size:"small",icon:o.icon,variant:"text",class:[r.location+"-item","rounded-0"],onClick:v=>e("change",o)}),{default:withCtx(()=>[createVNode(VIcon,{size:"x-large"})]),_:2},1040,["icon","class","onClick"])]),_:2},1032,["location","text"]))),128))]),_:1}))}}),index_vue_vue_type_style_index_0_scoped_cf006d27_lang="",MxBtnList=_export_sfc(_sfc_main$o,[["__scopeId","data-v-cf006d27"]]),useTitleButtonBarData=()=>({mTitleButtonBarData:markRaw(uiConfig.mTitleButtonBarData||[])}),VCard$1="",VCardActions=genericComponent()({name:"VCardActions",props:makeComponentProps(),setup(t,e){let{slots:r}=e;return provideDefaults({VBtn:{slim:!0,variant:"text"}}),useRender(()=>{var n;return createVNode("div",{class:["v-card-actions",t.class],style:t.style},[(n=r.default)==null?void 0:n.call(r)])}),{}}}),VCardSubtitle=createSimpleFunctional("v-card-subtitle"),VCardTitle=createSimpleFunctional("v-card-title"),makeCardItemProps=propsFactory$1(Pt(Pt({appendAvatar:String,appendIcon:IconValue$1,prependAvatar:String,prependIcon:IconValue$1,subtitle:[String,Number],title:[String,Number]},makeComponentProps()),makeDensityProps()),"VCardItem"),VCardItem=genericComponent()({name:"VCardItem",props:makeCardItemProps(),setup(t,e){let{slots:r}=e;return useRender(()=>{var x;const n=!!(t.prependAvatar||t.prependIcon),o=!!(n||r.prepend),s=!!(t.appendAvatar||t.appendIcon),c=!!(s||r.append),l=!!(t.title!=null||r.title),v=!!(t.subtitle!=null||r.subtitle);return createVNode("div",{class:["v-card-item",t.class],style:t.style},[o&&createVNode("div",{key:"prepend",class:"v-card-item__prepend"},[r.prepend?createVNode(VDefaultsProvider,{key:"prepend-defaults",disabled:!n,defaults:{VAvatar:{density:t.density,image:t.prependAvatar},VIcon:{density:t.density,icon:t.prependIcon}}},r.prepend):createVNode(Fragment,null,[t.prependAvatar&&createVNode(VAvatar,{key:"prepend-avatar",density:t.density,image:t.prependAvatar},null),t.prependIcon&&createVNode(VIcon,{key:"prepend-icon",density:t.density,icon:t.prependIcon},null)])]),createVNode("div",{class:"v-card-item__content"},[l&&createVNode(VCardTitle,{key:"title"},{default:()=>{var w,_;return[(_=(w=r.title)==null?void 0:w.call(r))!=null?_:t.title]}}),v&&createVNode(VCardSubtitle,{key:"subtitle"},{default:()=>{var w,_;return[(_=(w=r.subtitle)==null?void 0:w.call(r))!=null?_:t.subtitle]}}),(x=r.default)==null?void 0:x.call(r)]),c&&createVNode("div",{key:"append",class:"v-card-item__append"},[r.append?createVNode(VDefaultsProvider,{key:"append-defaults",disabled:!s,defaults:{VAvatar:{density:t.density,image:t.appendAvatar},VIcon:{density:t.density,icon:t.appendIcon}}},r.append):createVNode(Fragment,null,[t.appendIcon&&createVNode(VIcon,{key:"append-icon",density:t.density,icon:t.appendIcon},null),t.appendAvatar&&createVNode(VAvatar,{key:"append-avatar",density:t.density,image:t.appendAvatar},null)])])])}),{}}}),VCardText=createSimpleFunctional("v-card-text"),makeVCardProps=propsFactory$1(Pt(Pt(Pt(Pt(Pt(Pt(Pt(Pt(Pt(Pt(Pt(Pt(Pt({appendAvatar:String,appendIcon:IconValue$1,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:IconValue$1,ripple:{type:[Boolean,Object],default:!0},subtitle:[String,Number],text:[String,Number],title:[String,Number]},makeBorderProps()),makeComponentProps()),makeDensityProps()),makeDimensionProps()),makeElevationProps()),makeLoaderProps()),makeLocationProps()),makePositionProps()),makeRoundedProps()),makeRouterProps()),makeTagProps()),makeThemeProps()),makeVariantProps({variant:"elevated"})),"VCard"),VCard=genericComponent()({name:"VCard",directives:{Ripple},props:makeVCardProps(),setup(t,e){let{attrs:r,slots:n}=e;const{themeClasses:o}=provideTheme(t),{borderClasses:s}=useBorder(t),{colorClasses:c,colorStyles:l,variantClasses:v}=useVariant(t),{densityClasses:x}=useDensity(t),{dimensionStyles:w}=useDimension(t),{elevationClasses:_}=useElevation(t),{loaderClasses:b}=useLoader(t),{locationStyles:E}=useLocation(t),{positionClasses:I}=usePosition(t),{roundedClasses:O}=useRounded(t),N=useLink(t,r),A=computed(()=>t.link!==!1&&N.isLink.value),z=computed(()=>!t.disabled&&t.link!==!1&&(t.link||N.isClickable.value));return useRender(()=>{const G=A.value?"a":t.tag,V=!!(n.title||t.title!=null),ne=!!(n.subtitle||t.subtitle!=null),W=V||ne,B=!!(n.append||t.appendAvatar||t.appendIcon),q=!!(n.prepend||t.prependAvatar||t.prependIcon),D=!!(n.image||t.image),F=W||q||B,re=!!(n.text||t.text!=null);return withDirectives(createVNode(G,{class:["v-card",{"v-card--disabled":t.disabled,"v-card--flat":t.flat,"v-card--hover":t.hover&&!(t.disabled||t.flat),"v-card--link":z.value},o.value,s.value,c.value,x.value,_.value,b.value,I.value,O.value,v.value,t.class],style:[l.value,w.value,E.value,t.style],href:N.href.value,onClick:z.value&&N.navigate,tabindex:t.disabled?-1:void 0},{default:()=>{var le;return[D&&createVNode("div",{key:"image",class:"v-card__image"},[n.image?createVNode(VDefaultsProvider,{key:"image-defaults",disabled:!t.image,defaults:{VImg:{cover:!0,src:t.image}}},n.image):createVNode(VImg,{key:"image-img",cover:!0,src:t.image},null)]),createVNode(LoaderSlot,{name:"v-card",active:!!t.loading,color:typeof t.loading=="boolean"?void 0:t.loading},{default:n.loader}),F&&createVNode(VCardItem,{key:"item",prependAvatar:t.prependAvatar,prependIcon:t.prependIcon,title:t.title,subtitle:t.subtitle,appendAvatar:t.appendAvatar,appendIcon:t.appendIcon},{default:n.item,prepend:n.prepend,title:n.title,subtitle:n.subtitle,append:n.append}),re&&createVNode(VCardText,{key:"text"},{default:()=>{var fe,me;return[(me=(fe=n.text)==null?void 0:fe.call(n))!=null?me:t.text]}}),(le=n.default)==null?void 0:le.call(n),n.actions&&createVNode(VCardActions,null,{default:n.actions}),genOverlays(z.value,"v-card")]}}),[[resolveDirective("ripple"),z.value&&t.ripple]])}),{}}}),_hoisted_1$g={class:"w-100"},_hoisted_2$b={class:"d-flex"},_sfc_main$n=defineComponent$1({__name:"TitleButtonBar",emits:["change"],setup(t,{emit:e}){const{mTitleButtonBarData:r}=useTitleButtonBarData();return(n,o)=>(openBlock(),createElementBlock("div",_hoisted_1$g,[unref(uiConfig).isShowTitleButtonBar?(openBlock(),createBlock(VCard,{key:0,class:"d-flex justify-space-between align-center pa-0 mb-0 w-100 mx-title-bar",style:{background:"transparent"},height:"40",elevation:"0"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_2$b,[createVNode(MxBtnList,{class:"bg-background w-auto",location:"bottom",onChange:o[0]||(o[0]=s=>e("change",s)),list:unref(r)},null,8,["list"])])]),_:1})):createCommentVNode("",!0)]))}}),regex=/\(([a-zA-Z])\)/g;function extractLetter(t){const e=t.match(regex);if(!!e)return e[e.length-1].match(/[a-zA-Z]/)[0]}/*!
  4475. * shared v9.5.0
  4476. * (c) 2023 kazuya kawaguchi
  4477. * Released under the MIT License.
  4478. */const inBrowser=typeof window!="undefined",makeSymbol=(t,e=!1)=>e?Symbol.for(t):Symbol(t),generateFormatCacheKey=(t,e,r)=>friendlyJSONstringify({l:t,k:e,s:r}),friendlyJSONstringify=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),isNumber$1=t=>typeof t=="number"&&isFinite(t),isDate$1=t=>toTypeString(t)==="[object Date]",isRegExp$1=t=>toTypeString(t)==="[object RegExp]",isEmptyObject=t=>isPlainObject$1(t)&&Object.keys(t).length===0,assign$1=Object.assign;let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function escapeHtml(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const hasOwnProperty$1=Object.prototype.hasOwnProperty;function hasOwn(t,e){return hasOwnProperty$1.call(t,e)}const isArray$1=Array.isArray,isFunction$1=t=>typeof t=="function",isString$2=t=>typeof t=="string",isBoolean$1=t=>typeof t=="boolean",isObject$2=t=>t!==null&&typeof t=="object",objectToString=Object.prototype.toString,toTypeString=t=>objectToString.call(t),isPlainObject$1=t=>{if(!isObject$2(t))return!1;const e=Object.getPrototypeOf(t);return e===null||e.constructor===Object},toDisplayString=t=>t==null?"":isArray$1(t)||isPlainObject$1(t)&&t.toString===objectToString?JSON.stringify(t,null,2):String(t);function join$1(t,e=""){return t.reduce((r,n,o)=>o===0?r+n:r+e+n,"")}function incrementer(t){let e=t;return()=>++e}function warn(t,e){typeof console!="undefined"&&(console.warn("[intlify] "+t),e&&console.warn(e.stack))}/*!
  4479. * message-compiler v9.5.0
  4480. * (c) 2023 kazuya kawaguchi
  4481. * Released under the MIT License.
  4482. */function createPosition(t,e,r){return{line:t,column:e,offset:r}}function createLocation(t,e,r){const n={start:t,end:e};return r!=null&&(n.source=r),n}const RE_ARGS=/\{([0-9a-zA-Z]+)\}/g;function format$1(t,...e){return e.length===1&&isObject$1(e[0])&&(e=e[0]),(!e||!e.hasOwnProperty)&&(e={}),t.replace(RE_ARGS,(r,n)=>e.hasOwnProperty(n)?e[n]:"")}const assign=Object.assign,isString$1=t=>typeof t=="string",isObject$1=t=>t!==null&&typeof t=="object";function join(t,e=""){return t.reduce((r,n,o)=>o===0?r+n:r+e+n,"")}const CompileErrorCodes={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},errorMessages={[CompileErrorCodes.EXPECTED_TOKEN]:"Expected token: '{0}'",[CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[CompileErrorCodes.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[CompileErrorCodes.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[CompileErrorCodes.EMPTY_PLACEHOLDER]:"Empty placeholder",[CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[CompileErrorCodes.INVALID_LINKED_FORMAT]:"Invalid linked format",[CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[CompileErrorCodes.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[CompileErrorCodes.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function createCompileError(t,e,r={}){const{domain:n,messages:o,args:s}=r,c=format$1((o||errorMessages)[t]||"",...s||[]),l=new SyntaxError(String(c));return l.code=t,e&&(l.location=e),l.domain=n,l}function defaultOnError(t){throw t}const CHAR_SP=" ",CHAR_CR="\r",CHAR_LF=`
  4483. `,CHAR_LS=String.fromCharCode(8232),CHAR_PS=String.fromCharCode(8233);function createScanner(t){const e=t;let r=0,n=1,o=1,s=0;const c=B=>e[B]===CHAR_CR&&e[B+1]===CHAR_LF,l=B=>e[B]===CHAR_LF,v=B=>e[B]===CHAR_PS,x=B=>e[B]===CHAR_LS,w=B=>c(B)||l(B)||v(B)||x(B),_=()=>r,b=()=>n,E=()=>o,I=()=>s,O=B=>c(B)||v(B)||x(B)?CHAR_LF:e[B],N=()=>O(r),A=()=>O(r+s);function z(){return s=0,w(r)&&(n++,o=0),c(r)&&r++,r++,o++,e[r]}function G(){return c(r+s)&&s++,s++,e[r+s]}function V(){r=0,n=1,o=1,s=0}function ne(B=0){s=B}function W(){const B=r+s;for(;B!==r;)z();s=0}return{index:_,line:b,column:E,peekOffset:I,charAt:O,currentChar:N,currentPeek:A,next:z,peek:G,reset:V,resetPeek:ne,skipToPeek:W}}const EOF=void 0,DOT=".",LITERAL_DELIMITER="'",ERROR_DOMAIN$3="tokenizer";function createTokenizer(t,e={}){const r=e.location!==!1,n=createScanner(t),o=()=>n.index(),s=()=>createPosition(n.line(),n.column(),n.index()),c=s(),l=o(),v={currentType:14,offset:l,startLoc:c,endLoc:c,lastType:14,lastOffset:l,lastStartLoc:c,lastEndLoc:c,braceNest:0,inLinked:!1,text:""},x=()=>v,{onError:w}=e;function _(ze,Ke,vt,...Ft){const Ot=x();if(Ke.column+=vt,Ke.offset+=vt,w){const _t=r?createLocation(Ot.startLoc,Ke):null,Tn=createCompileError(ze,_t,{domain:ERROR_DOMAIN$3,args:Ft});w(Tn)}}function b(ze,Ke,vt){ze.endLoc=s(),ze.currentType=Ke;const Ft={type:Ke};return r&&(Ft.loc=createLocation(ze.startLoc,ze.endLoc)),vt!=null&&(Ft.value=vt),Ft}const E=ze=>b(ze,14);function I(ze,Ke){return ze.currentChar()===Ke?(ze.next(),Ke):(_(CompileErrorCodes.EXPECTED_TOKEN,s(),0,Ke),"")}function O(ze){let Ke="";for(;ze.currentPeek()===CHAR_SP||ze.currentPeek()===CHAR_LF;)Ke+=ze.currentPeek(),ze.peek();return Ke}function N(ze){const Ke=O(ze);return ze.skipToPeek(),Ke}function A(ze){if(ze===EOF)return!1;const Ke=ze.charCodeAt(0);return Ke>=97&&Ke<=122||Ke>=65&&Ke<=90||Ke===95}function z(ze){if(ze===EOF)return!1;const Ke=ze.charCodeAt(0);return Ke>=48&&Ke<=57}function G(ze,Ke){const{currentType:vt}=Ke;if(vt!==2)return!1;O(ze);const Ft=A(ze.currentPeek());return ze.resetPeek(),Ft}function V(ze,Ke){const{currentType:vt}=Ke;if(vt!==2)return!1;O(ze);const Ft=ze.currentPeek()==="-"?ze.peek():ze.currentPeek(),Ot=z(Ft);return ze.resetPeek(),Ot}function ne(ze,Ke){const{currentType:vt}=Ke;if(vt!==2)return!1;O(ze);const Ft=ze.currentPeek()===LITERAL_DELIMITER;return ze.resetPeek(),Ft}function W(ze,Ke){const{currentType:vt}=Ke;if(vt!==8)return!1;O(ze);const Ft=ze.currentPeek()===".";return ze.resetPeek(),Ft}function B(ze,Ke){const{currentType:vt}=Ke;if(vt!==9)return!1;O(ze);const Ft=A(ze.currentPeek());return ze.resetPeek(),Ft}function q(ze,Ke){const{currentType:vt}=Ke;if(!(vt===8||vt===12))return!1;O(ze);const Ft=ze.currentPeek()===":";return ze.resetPeek(),Ft}function D(ze,Ke){const{currentType:vt}=Ke;if(vt!==10)return!1;const Ft=()=>{const _t=ze.currentPeek();return _t==="{"?A(ze.peek()):_t==="@"||_t==="%"||_t==="|"||_t===":"||_t==="."||_t===CHAR_SP||!_t?!1:_t===CHAR_LF?(ze.peek(),Ft()):A(_t)},Ot=Ft();return ze.resetPeek(),Ot}function F(ze){O(ze);const Ke=ze.currentPeek()==="|";return ze.resetPeek(),Ke}function re(ze){const Ke=O(ze),vt=ze.currentPeek()==="%"&&ze.peek()==="{";return ze.resetPeek(),{isModulo:vt,hasSpace:Ke.length>0}}function le(ze,Ke=!0){const vt=(Ot=!1,_t="",Tn=!1)=>{const on=ze.currentPeek();return on==="{"?_t==="%"?!1:Ot:on==="@"||!on?_t==="%"?!0:Ot:on==="%"?(ze.peek(),vt(Ot,"%",!0)):on==="|"?_t==="%"||Tn?!0:!(_t===CHAR_SP||_t===CHAR_LF):on===CHAR_SP?(ze.peek(),vt(!0,CHAR_SP,Tn)):on===CHAR_LF?(ze.peek(),vt(!0,CHAR_LF,Tn)):!0},Ft=vt();return Ke&&ze.resetPeek(),Ft}function fe(ze,Ke){const vt=ze.currentChar();return vt===EOF?EOF:Ke(vt)?(ze.next(),vt):null}function me(ze){return fe(ze,vt=>{const Ft=vt.charCodeAt(0);return Ft>=97&&Ft<=122||Ft>=65&&Ft<=90||Ft>=48&&Ft<=57||Ft===95||Ft===36})}function ye(ze){return fe(ze,vt=>{const Ft=vt.charCodeAt(0);return Ft>=48&&Ft<=57})}function Te(ze){return fe(ze,vt=>{const Ft=vt.charCodeAt(0);return Ft>=48&&Ft<=57||Ft>=65&&Ft<=70||Ft>=97&&Ft<=102})}function ke(ze){let Ke="",vt="";for(;Ke=ye(ze);)vt+=Ke;return vt}function Le(ze){N(ze);const Ke=ze.currentChar();return Ke!=="%"&&_(CompileErrorCodes.EXPECTED_TOKEN,s(),0,Ke),ze.next(),"%"}function et(ze){let Ke="";for(;;){const vt=ze.currentChar();if(vt==="{"||vt==="}"||vt==="@"||vt==="|"||!vt)break;if(vt==="%")if(le(ze))Ke+=vt,ze.next();else break;else if(vt===CHAR_SP||vt===CHAR_LF)if(le(ze))Ke+=vt,ze.next();else{if(F(ze))break;Ke+=vt,ze.next()}else Ke+=vt,ze.next()}return Ke}function it(ze){N(ze);let Ke="",vt="";for(;Ke=me(ze);)vt+=Ke;return ze.currentChar()===EOF&&_(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,s(),0),vt}function Ue(ze){N(ze);let Ke="";return ze.currentChar()==="-"?(ze.next(),Ke+=`-${ke(ze)}`):Ke+=ke(ze),ze.currentChar()===EOF&&_(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,s(),0),Ke}function ht(ze){N(ze),I(ze,"'");let Ke="",vt="";const Ft=_t=>_t!==LITERAL_DELIMITER&&_t!==CHAR_LF;for(;Ke=fe(ze,Ft);)Ke==="\\"?vt+=De(ze):vt+=Ke;const Ot=ze.currentChar();return Ot===CHAR_LF||Ot===EOF?(_(CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),Ot===CHAR_LF&&(ze.next(),I(ze,"'")),vt):(I(ze,"'"),vt)}function De(ze){const Ke=ze.currentChar();switch(Ke){case"\\":case"'":return ze.next(),`\\${Ke}`;case"u":return Be(ze,Ke,4);case"U":return Be(ze,Ke,6);default:return _(CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE,s(),0,Ke),""}}function Be(ze,Ke,vt){I(ze,Ke);let Ft="";for(let Ot=0;Ot<vt;Ot++){const _t=Te(ze);if(!_t){_(CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE,s(),0,`\\${Ke}${Ft}${ze.currentChar()}`);break}Ft+=_t}return`\\${Ke}${Ft}`}function Ve(ze){N(ze);let Ke="",vt="";const Ft=Ot=>Ot!=="{"&&Ot!=="}"&&Ot!==CHAR_SP&&Ot!==CHAR_LF;for(;Ke=fe(ze,Ft);)vt+=Ke;return vt}function He(ze){let Ke="",vt="";for(;Ke=me(ze);)vt+=Ke;return vt}function gt(ze){const Ke=(vt=!1,Ft)=>{const Ot=ze.currentChar();return Ot==="{"||Ot==="%"||Ot==="@"||Ot==="|"||Ot==="("||Ot===")"||!Ot||Ot===CHAR_SP?Ft:Ot===CHAR_LF||Ot===DOT?(Ft+=Ot,ze.next(),Ke(vt,Ft)):(Ft+=Ot,ze.next(),Ke(!0,Ft))};return Ke(!1,"")}function dn(ze){N(ze);const Ke=I(ze,"|");return N(ze),Ke}function Ze(ze,Ke){let vt=null;switch(ze.currentChar()){case"{":return Ke.braceNest>=1&&_(CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),ze.next(),vt=b(Ke,2,"{"),N(ze),Ke.braceNest++,vt;case"}":return Ke.braceNest>0&&Ke.currentType===2&&_(CompileErrorCodes.EMPTY_PLACEHOLDER,s(),0),ze.next(),vt=b(Ke,3,"}"),Ke.braceNest--,Ke.braceNest>0&&N(ze),Ke.inLinked&&Ke.braceNest===0&&(Ke.inLinked=!1),vt;case"@":return Ke.braceNest>0&&_(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,s(),0),vt=at(ze,Ke)||E(Ke),Ke.braceNest=0,vt;default:let Ot=!0,_t=!0,Tn=!0;if(F(ze))return Ke.braceNest>0&&_(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,s(),0),vt=b(Ke,1,dn(ze)),Ke.braceNest=0,Ke.inLinked=!1,vt;if(Ke.braceNest>0&&(Ke.currentType===5||Ke.currentType===6||Ke.currentType===7))return _(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,s(),0),Ke.braceNest=0,Lt(ze,Ke);if(Ot=G(ze,Ke))return vt=b(Ke,5,it(ze)),N(ze),vt;if(_t=V(ze,Ke))return vt=b(Ke,6,Ue(ze)),N(ze),vt;if(Tn=ne(ze,Ke))return vt=b(Ke,7,ht(ze)),N(ze),vt;if(!Ot&&!_t&&!Tn)return vt=b(Ke,13,Ve(ze)),_(CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,vt.value),N(ze),vt;break}return vt}function at(ze,Ke){const{currentType:vt}=Ke;let Ft=null;const Ot=ze.currentChar();switch((vt===8||vt===9||vt===12||vt===10)&&(Ot===CHAR_LF||Ot===CHAR_SP)&&_(CompileErrorCodes.INVALID_LINKED_FORMAT,s(),0),Ot){case"@":return ze.next(),Ft=b(Ke,8,"@"),Ke.inLinked=!0,Ft;case".":return N(ze),ze.next(),b(Ke,9,".");case":":return N(ze),ze.next(),b(Ke,10,":");default:return F(ze)?(Ft=b(Ke,1,dn(ze)),Ke.braceNest=0,Ke.inLinked=!1,Ft):W(ze,Ke)||q(ze,Ke)?(N(ze),at(ze,Ke)):B(ze,Ke)?(N(ze),b(Ke,12,He(ze))):D(ze,Ke)?(N(ze),Ot==="{"?Ze(ze,Ke)||Ft:b(Ke,11,gt(ze))):(vt===8&&_(CompileErrorCodes.INVALID_LINKED_FORMAT,s(),0),Ke.braceNest=0,Ke.inLinked=!1,Lt(ze,Ke))}}function Lt(ze,Ke){let vt={type:14};if(Ke.braceNest>0)return Ze(ze,Ke)||E(Ke);if(Ke.inLinked)return at(ze,Ke)||E(Ke);switch(ze.currentChar()){case"{":return Ze(ze,Ke)||E(Ke);case"}":return _(CompileErrorCodes.UNBALANCED_CLOSING_BRACE,s(),0),ze.next(),b(Ke,3,"}");case"@":return at(ze,Ke)||E(Ke);default:if(F(ze))return vt=b(Ke,1,dn(ze)),Ke.braceNest=0,Ke.inLinked=!1,vt;const{isModulo:Ot,hasSpace:_t}=re(ze);if(Ot)return _t?b(Ke,0,et(ze)):b(Ke,4,Le(ze));if(le(ze))return b(Ke,0,et(ze));break}return vt}function Ne(){const{currentType:ze,offset:Ke,startLoc:vt,endLoc:Ft}=v;return v.lastType=ze,v.lastOffset=Ke,v.lastStartLoc=vt,v.lastEndLoc=Ft,v.offset=o(),v.startLoc=s(),n.currentChar()===EOF?b(v,14):Lt(n,v)}return{nextToken:Ne,currentOffset:o,currentPosition:s,context:x}}const ERROR_DOMAIN$2="parser",KNOWN_ESCAPES=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function fromEscapeSequence(t,e,r){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const n=parseInt(e||r,16);return n<=55295||n>=57344?String.fromCodePoint(n):"\uFFFD"}}}function createParser(t={}){const e=t.location!==!1,{onError:r}=t;function n(A,z,G,V,...ne){const W=A.currentPosition();if(W.offset+=V,W.column+=V,r){const B=e?createLocation(G,W):null,q=createCompileError(z,B,{domain:ERROR_DOMAIN$2,args:ne});r(q)}}function o(A,z,G){const V={type:A};return e&&(V.start=z,V.end=z,V.loc={start:G,end:G}),V}function s(A,z,G,V){V&&(A.type=V),e&&(A.end=z,A.loc&&(A.loc.end=G))}function c(A,z){const G=A.context(),V=o(3,G.offset,G.startLoc);return V.value=z,s(V,A.currentOffset(),A.currentPosition()),V}function l(A,z){const G=A.context(),{lastOffset:V,lastStartLoc:ne}=G,W=o(5,V,ne);return W.index=parseInt(z,10),A.nextToken(),s(W,A.currentOffset(),A.currentPosition()),W}function v(A,z){const G=A.context(),{lastOffset:V,lastStartLoc:ne}=G,W=o(4,V,ne);return W.key=z,A.nextToken(),s(W,A.currentOffset(),A.currentPosition()),W}function x(A,z){const G=A.context(),{lastOffset:V,lastStartLoc:ne}=G,W=o(9,V,ne);return W.value=z.replace(KNOWN_ESCAPES,fromEscapeSequence),A.nextToken(),s(W,A.currentOffset(),A.currentPosition()),W}function w(A){const z=A.nextToken(),G=A.context(),{lastOffset:V,lastStartLoc:ne}=G,W=o(8,V,ne);return z.type!==12?(n(A,CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER,G.lastStartLoc,0),W.value="",s(W,V,ne),{nextConsumeToken:z,node:W}):(z.value==null&&n(A,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,G.lastStartLoc,0,getTokenCaption(z)),W.value=z.value||"",s(W,A.currentOffset(),A.currentPosition()),{node:W})}function _(A,z){const G=A.context(),V=o(7,G.offset,G.startLoc);return V.value=z,s(V,A.currentOffset(),A.currentPosition()),V}function b(A){const z=A.context(),G=o(6,z.offset,z.startLoc);let V=A.nextToken();if(V.type===9){const ne=w(A);G.modifier=ne.node,V=ne.nextConsumeToken||A.nextToken()}switch(V.type!==10&&n(A,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,z.lastStartLoc,0,getTokenCaption(V)),V=A.nextToken(),V.type===2&&(V=A.nextToken()),V.type){case 11:V.value==null&&n(A,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,z.lastStartLoc,0,getTokenCaption(V)),G.key=_(A,V.value||"");break;case 5:V.value==null&&n(A,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,z.lastStartLoc,0,getTokenCaption(V)),G.key=v(A,V.value||"");break;case 6:V.value==null&&n(A,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,z.lastStartLoc,0,getTokenCaption(V)),G.key=l(A,V.value||"");break;case 7:V.value==null&&n(A,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,z.lastStartLoc,0,getTokenCaption(V)),G.key=x(A,V.value||"");break;default:n(A,CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY,z.lastStartLoc,0);const ne=A.context(),W=o(7,ne.offset,ne.startLoc);return W.value="",s(W,ne.offset,ne.startLoc),G.key=W,s(G,ne.offset,ne.startLoc),{nextConsumeToken:V,node:G}}return s(G,A.currentOffset(),A.currentPosition()),{node:G}}function E(A){const z=A.context(),G=z.currentType===1?A.currentOffset():z.offset,V=z.currentType===1?z.endLoc:z.startLoc,ne=o(2,G,V);ne.items=[];let W=null;do{const D=W||A.nextToken();switch(W=null,D.type){case 0:D.value==null&&n(A,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,z.lastStartLoc,0,getTokenCaption(D)),ne.items.push(c(A,D.value||""));break;case 6:D.value==null&&n(A,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,z.lastStartLoc,0,getTokenCaption(D)),ne.items.push(l(A,D.value||""));break;case 5:D.value==null&&n(A,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,z.lastStartLoc,0,getTokenCaption(D)),ne.items.push(v(A,D.value||""));break;case 7:D.value==null&&n(A,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,z.lastStartLoc,0,getTokenCaption(D)),ne.items.push(x(A,D.value||""));break;case 8:const F=b(A);ne.items.push(F.node),W=F.nextConsumeToken||null;break}}while(z.currentType!==14&&z.currentType!==1);const B=z.currentType===1?z.lastOffset:A.currentOffset(),q=z.currentType===1?z.lastEndLoc:A.currentPosition();return s(ne,B,q),ne}function I(A,z,G,V){const ne=A.context();let W=V.items.length===0;const B=o(1,z,G);B.cases=[],B.cases.push(V);do{const q=E(A);W||(W=q.items.length===0),B.cases.push(q)}while(ne.currentType!==14);return W&&n(A,CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL,G,0),s(B,A.currentOffset(),A.currentPosition()),B}function O(A){const z=A.context(),{offset:G,startLoc:V}=z,ne=E(A);return z.currentType===14?ne:I(A,G,V,ne)}function N(A){const z=createTokenizer(A,assign({},t)),G=z.context(),V=o(0,G.offset,G.startLoc);return e&&V.loc&&(V.loc.source=A),V.body=O(z),t.onCacheKey&&(V.cacheKey=t.onCacheKey(A)),G.currentType!==14&&n(z,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,G.lastStartLoc,0,A[G.offset]||""),s(V,z.currentOffset(),z.currentPosition()),V}return{parse:N}}function getTokenCaption(t){if(t.type===14)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"\u2026":e}function createTransformer(t,e={}){const r={ast:t,helpers:new Set};return{context:()=>r,helper:s=>(r.helpers.add(s),s)}}function traverseNodes(t,e){for(let r=0;r<t.length;r++)traverseNode(t[r],e)}function traverseNode(t,e){switch(t.type){case 1:traverseNodes(t.cases,e),e.helper("plural");break;case 2:traverseNodes(t.items,e);break;case 6:traverseNode(t.key,e),e.helper("linked"),e.helper("type");break;case 5:e.helper("interpolate"),e.helper("list");break;case 4:e.helper("interpolate"),e.helper("named");break}}function transform(t,e={}){const r=createTransformer(t);r.helper("normalize"),t.body&&traverseNode(t.body,r);const n=r.context();t.helpers=Array.from(n.helpers)}function optimize(t){const e=t.body;return e.type===2?optimizeMessageNode(e):e.cases.forEach(r=>optimizeMessageNode(r)),t}function optimizeMessageNode(t){if(t.items.length===1){const e=t.items[0];(e.type===3||e.type===9)&&(t.static=e.value,delete e.value)}else{const e=[];for(let r=0;r<t.items.length;r++){const n=t.items[r];if(!(n.type===3||n.type===9)||n.value==null)break;e.push(n.value)}if(e.length===t.items.length){t.static=join(e);for(let r=0;r<t.items.length;r++){const n=t.items[r];(n.type===3||n.type===9)&&delete n.value}}}}const ERROR_DOMAIN$1="minifier";function minify(t){switch(t.t=t.type,t.type){case 0:const e=t;minify(e.body),e.b=e.body,delete e.body;break;case 1:const r=t,n=r.cases;for(let w=0;w<n.length;w++)minify(n[w]);r.c=n,delete r.cases;break;case 2:const o=t,s=o.items;for(let w=0;w<s.length;w++)minify(s[w]);o.i=s,delete o.items,o.static&&(o.s=o.static,delete o.static);break;case 3:case 9:case 8:case 7:const c=t;c.value&&(c.v=c.value,delete c.value);break;case 6:const l=t;minify(l.key),l.k=l.key,delete l.key,l.modifier&&(minify(l.modifier),l.m=l.modifier,delete l.modifier);break;case 5:const v=t;v.i=v.index,delete v.index;break;case 4:const x=t;x.k=x.key,delete x.key;break;default:throw createCompileError(CompileErrorCodes.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:ERROR_DOMAIN$1,args:[t.type]})}delete t.type}const ERROR_DOMAIN="parser";function createCodeGenerator(t,e){const{sourceMap:r,filename:n,breakLineCode:o,needIndent:s}=e,c=e.location!==!1,l={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:s,indentLevel:0};c&&t.loc&&(l.source=t.loc.source);const v=()=>l;function x(N,A){l.code+=N}function w(N,A=!0){const z=A?o:"";x(s?z+" ".repeat(N):z)}function _(N=!0){const A=++l.indentLevel;N&&w(A)}function b(N=!0){const A=--l.indentLevel;N&&w(A)}function E(){w(l.indentLevel)}return{context:v,push:x,indent:_,deindent:b,newline:E,helper:N=>`_${N}`,needIndent:()=>l.needIndent}}function generateLinkedNode(t,e){const{helper:r}=t;t.push(`${r("linked")}(`),generateNode(t,e.key),e.modifier?(t.push(", "),generateNode(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function generateMessageNode(t,e){const{helper:r,needIndent:n}=t;t.push(`${r("normalize")}([`),t.indent(n());const o=e.items.length;for(let s=0;s<o&&(generateNode(t,e.items[s]),s!==o-1);s++)t.push(", ");t.deindent(n()),t.push("])")}function generatePluralNode(t,e){const{helper:r,needIndent:n}=t;if(e.cases.length>1){t.push(`${r("plural")}([`),t.indent(n());const o=e.cases.length;for(let s=0;s<o&&(generateNode(t,e.cases[s]),s!==o-1);s++)t.push(", ");t.deindent(n()),t.push("])")}}function generateResource(t,e){e.body?generateNode(t,e.body):t.push("null")}function generateNode(t,e){const{helper:r}=t;switch(e.type){case 0:generateResource(t,e);break;case 1:generatePluralNode(t,e);break;case 2:generateMessageNode(t,e);break;case 6:generateLinkedNode(t,e);break;case 8:t.push(JSON.stringify(e.value),e);break;case 7:t.push(JSON.stringify(e.value),e);break;case 5:t.push(`${r("interpolate")}(${r("list")}(${e.index}))`,e);break;case 4:t.push(`${r("interpolate")}(${r("named")}(${JSON.stringify(e.key)}))`,e);break;case 9:t.push(JSON.stringify(e.value),e);break;case 3:t.push(JSON.stringify(e.value),e);break;default:throw createCompileError(CompileErrorCodes.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:ERROR_DOMAIN,args:[e.type]})}}const generate=(t,e={})=>{const r=isString$1(e.mode)?e.mode:"normal",n=isString$1(e.filename)?e.filename:"message.intl",o=!!e.sourceMap,s=e.breakLineCode!=null?e.breakLineCode:r==="arrow"?";":`
  4484. `,c=e.needIndent?e.needIndent:r!=="arrow",l=t.helpers||[],v=createCodeGenerator(t,{mode:r,filename:n,sourceMap:o,breakLineCode:s,needIndent:c});v.push(r==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),v.indent(c),l.length>0&&(v.push(`const { ${join(l.map(_=>`${_}: _${_}`),", ")} } = ctx`),v.newline()),v.push("return "),generateNode(v,t),v.deindent(c),v.push("}"),delete t.helpers;const{code:x,map:w}=v.context();return{ast:t,code:x,map:w?w.toJSON():void 0}};function baseCompile$1(t,e={}){const r=assign({},e),n=!!r.jit,o=!!r.minify,s=r.optimize==null?!0:r.optimize,l=createParser(r).parse(t);return n?(s&&optimize(l),o&&minify(l),{ast:l,code:""}):(transform(l,r),generate(l,r))}/*!
  4485. * core-base v9.5.0
  4486. * (c) 2023 kazuya kawaguchi
  4487. * Released under the MIT License.
  4488. */function initFeatureFlags$1(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(getGlobalThis().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(getGlobalThis().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(getGlobalThis().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const pathStateMachine=[];pathStateMachine[0]={w:[0],i:[3,0],["["]:[4],o:[7]};pathStateMachine[1]={w:[1],["."]:[2],["["]:[4],o:[7]};pathStateMachine[2]={w:[2],i:[3,0],[0]:[3,0]};pathStateMachine[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]};pathStateMachine[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]};pathStateMachine[5]={["'"]:[4,0],o:8,l:[5,0]};pathStateMachine[6]={['"']:[4,0],o:8,l:[6,0]};const literalValueRE=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function isLiteral(t){return literalValueRE.test(t)}function stripQuotes(t){const e=t.charCodeAt(0),r=t.charCodeAt(t.length-1);return e===r&&(e===34||e===39)?t.slice(1,-1):t}function getPathCharType(t){if(t==null)return"o";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function formatSubPath(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:isLiteral(e)?stripQuotes(e):"*"+e}function parse(t){const e=[];let r=-1,n=0,o=0,s,c,l,v,x,w,_;const b=[];b[0]=()=>{c===void 0?c=l:c+=l},b[1]=()=>{c!==void 0&&(e.push(c),c=void 0)},b[2]=()=>{b[0](),o++},b[3]=()=>{if(o>0)o--,n=4,b[0]();else{if(o=0,c===void 0||(c=formatSubPath(c),c===!1))return!1;b[1]()}};function E(){const I=t[r+1];if(n===5&&I==="'"||n===6&&I==='"')return r++,l="\\"+I,b[0](),!0}for(;n!==null;)if(r++,s=t[r],!(s==="\\"&&E())){if(v=getPathCharType(s),_=pathStateMachine[n],x=_[v]||_.l||8,x===8||(n=x[0],x[1]!==void 0&&(w=b[x[1]],w&&(l=s,w()===!1))))return;if(n===7)return e}}const cache=new Map;function resolveWithKeyValue(t,e){return isObject$2(t)?t[e]:null}function resolveValue(t,e){if(!isObject$2(t))return null;let r=cache.get(e);if(r||(r=parse(e),r&&cache.set(e,r)),!r)return null;const n=r.length;let o=t,s=0;for(;s<n;){const c=o[r[s]];if(c===void 0)return null;o=c,s++}return o}const DEFAULT_MODIFIER=t=>t,DEFAULT_MESSAGE=t=>"",DEFAULT_MESSAGE_DATA_TYPE="text",DEFAULT_NORMALIZE=t=>t.length===0?"":join$1(t),DEFAULT_INTERPOLATE=toDisplayString;function pluralDefault(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function getPluralIndex(t){const e=isNumber$1(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(isNumber$1(t.named.count)||isNumber$1(t.named.n))?isNumber$1(t.named.count)?t.named.count:isNumber$1(t.named.n)?t.named.n:e:e}function normalizeNamed(t,e){e.count||(e.count=t),e.n||(e.n=t)}function createMessageContext(t={}){const e=t.locale,r=getPluralIndex(t),n=isObject$2(t.pluralRules)&&isString$2(e)&&isFunction$1(t.pluralRules[e])?t.pluralRules[e]:pluralDefault,o=isObject$2(t.pluralRules)&&isString$2(e)&&isFunction$1(t.pluralRules[e])?pluralDefault:void 0,s=A=>A[n(r,A.length,o)],c=t.list||[],l=A=>c[A],v=t.named||{};isNumber$1(t.pluralIndex)&&normalizeNamed(r,v);const x=A=>v[A];function w(A){const z=isFunction$1(t.messages)?t.messages(A):isObject$2(t.messages)?t.messages[A]:!1;return z||(t.parent?t.parent.message(A):DEFAULT_MESSAGE)}const _=A=>t.modifiers?t.modifiers[A]:DEFAULT_MODIFIER,b=isPlainObject$1(t.processor)&&isFunction$1(t.processor.normalize)?t.processor.normalize:DEFAULT_NORMALIZE,E=isPlainObject$1(t.processor)&&isFunction$1(t.processor.interpolate)?t.processor.interpolate:DEFAULT_INTERPOLATE,I=isPlainObject$1(t.processor)&&isString$2(t.processor.type)?t.processor.type:DEFAULT_MESSAGE_DATA_TYPE,N={list:l,named:x,plural:s,linked:(A,...z)=>{const[G,V]=z;let ne="text",W="";z.length===1?isObject$2(G)?(W=G.modifier||W,ne=G.type||ne):isString$2(G)&&(W=G||W):z.length===2&&(isString$2(G)&&(W=G||W),isString$2(V)&&(ne=V||ne));const B=w(A)(N),q=ne==="vnode"&&isArray$1(B)&&W?B[0]:B;return W?_(W)(q,ne):q},message:w,type:I,interpolate:E,normalize:b,values:assign$1({},c,v)};return N}let devtools=null;function setDevToolsHook(t){devtools=t}function initI18nDevTools(t,e,r){devtools&&devtools.emit("i18n:init",{timestamp:Date.now(),i18n:t,version:e,meta:r})}const translateDevTools=createDevToolsHook("function:translate");function createDevToolsHook(t){return e=>devtools&&devtools.emit(t,e)}const CoreWarnCodes={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,__EXTEND_POINT__:8};function getLocale(t,e){return e.locale!=null?resolveLocale(e.locale):resolveLocale(t.locale)}let _resolveLocale;function resolveLocale(t){return isString$2(t)?t:_resolveLocale!=null&&t.resolvedOnce?_resolveLocale:_resolveLocale=t()}function fallbackWithSimple(t,e,r){return[...new Set([r,...isArray$1(e)?e:isObject$2(e)?Object.keys(e):isString$2(e)?[e]:[r]])]}function fallbackWithLocaleChain(t,e,r){const n=isString$2(r)?r:DEFAULT_LOCALE,o=t;o.__localeChainCache||(o.__localeChainCache=new Map);let s=o.__localeChainCache.get(n);if(!s){s=[];let c=[r];for(;isArray$1(c);)c=appendBlockToChain(s,c,e);const l=isArray$1(e)||!isPlainObject$1(e)?e:e.default?e.default:null;c=isString$2(l)?[l]:l,isArray$1(c)&&appendBlockToChain(s,c,!1),o.__localeChainCache.set(n,s)}return s}function appendBlockToChain(t,e,r){let n=!0;for(let o=0;o<e.length&&isBoolean$1(n);o++){const s=e[o];isString$2(s)&&(n=appendLocaleToChain(t,e[o],r))}return n}function appendLocaleToChain(t,e,r){let n;const o=e.split("-");do{const s=o.join("-");n=appendItemToChain(t,s,r),o.splice(-1,1)}while(o.length&&n===!0);return n}function appendItemToChain(t,e,r){let n=!1;if(!t.includes(e)&&(n=!0,e)){n=e[e.length-1]!=="!";const o=e.replace(/!/g,"");t.push(o),(isArray$1(r)||isPlainObject$1(r))&&r[o]&&(n=r[o])}return n}const VERSION$2="9.5.0",NOT_REOSLVED=-1,DEFAULT_LOCALE="en-US",MISSING_RESOLVE_VALUE="",capitalize=t=>`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function getDefaultLinkedModifiers(){return{upper:(t,e)=>e==="text"&&isString$2(t)?t.toUpperCase():e==="vnode"&&isObject$2(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&isString$2(t)?t.toLowerCase():e==="vnode"&&isObject$2(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&isString$2(t)?capitalize(t):e==="vnode"&&isObject$2(t)&&"__v_isVNode"in t?capitalize(t.children):t}}let _compiler;function registerMessageCompiler(t){_compiler=t}let _resolver;function registerMessageResolver(t){_resolver=t}let _fallbacker;function registerLocaleFallbacker(t){_fallbacker=t}let _additionalMeta=null;const setAdditionalMeta=t=>{_additionalMeta=t},getAdditionalMeta=()=>_additionalMeta;let _fallbackContext=null;const setFallbackContext=t=>{_fallbackContext=t},getFallbackContext=()=>_fallbackContext;let _cid=0;function createCoreContext(t={}){const e=isFunction$1(t.onWarn)?t.onWarn:warn,r=isString$2(t.version)?t.version:VERSION$2,n=isString$2(t.locale)||isFunction$1(t.locale)?t.locale:DEFAULT_LOCALE,o=isFunction$1(n)?DEFAULT_LOCALE:n,s=isArray$1(t.fallbackLocale)||isPlainObject$1(t.fallbackLocale)||isString$2(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:o,c=isPlainObject$1(t.messages)?t.messages:{[o]:{}},l=isPlainObject$1(t.datetimeFormats)?t.datetimeFormats:{[o]:{}},v=isPlainObject$1(t.numberFormats)?t.numberFormats:{[o]:{}},x=assign$1({},t.modifiers||{},getDefaultLinkedModifiers()),w=t.pluralRules||{},_=isFunction$1(t.missing)?t.missing:null,b=isBoolean$1(t.missingWarn)||isRegExp$1(t.missingWarn)?t.missingWarn:!0,E=isBoolean$1(t.fallbackWarn)||isRegExp$1(t.fallbackWarn)?t.fallbackWarn:!0,I=!!t.fallbackFormat,O=!!t.unresolving,N=isFunction$1(t.postTranslation)?t.postTranslation:null,A=isPlainObject$1(t.processor)?t.processor:null,z=isBoolean$1(t.warnHtmlMessage)?t.warnHtmlMessage:!0,G=!!t.escapeParameter,V=isFunction$1(t.messageCompiler)?t.messageCompiler:_compiler,ne=isFunction$1(t.messageResolver)?t.messageResolver:_resolver||resolveWithKeyValue,W=isFunction$1(t.localeFallbacker)?t.localeFallbacker:_fallbacker||fallbackWithSimple,B=isObject$2(t.fallbackContext)?t.fallbackContext:void 0,q=t,D=isObject$2(q.__datetimeFormatters)?q.__datetimeFormatters:new Map,F=isObject$2(q.__numberFormatters)?q.__numberFormatters:new Map,re=isObject$2(q.__meta)?q.__meta:{};_cid++;const le={version:r,cid:_cid,locale:n,fallbackLocale:s,messages:c,modifiers:x,pluralRules:w,missing:_,missingWarn:b,fallbackWarn:E,fallbackFormat:I,unresolving:O,postTranslation:N,processor:A,warnHtmlMessage:z,escapeParameter:G,messageCompiler:V,messageResolver:ne,localeFallbacker:W,fallbackContext:B,onWarn:e,__meta:re};return le.datetimeFormats=l,le.numberFormats=v,le.__datetimeFormatters=D,le.__numberFormatters=F,__INTLIFY_PROD_DEVTOOLS__&&initI18nDevTools(le,r,re),le}function handleMissing(t,e,r,n,o){const{missing:s,onWarn:c}=t;if(s!==null){const l=s(t,r,e,o);return isString$2(l)?l:e}else return e}function updateFallbackLocale(t,e,r){const n=t;n.__localeChainCache=new Map,t.localeFallbacker(t,r,e)}function format(t){return r=>formatParts(r,t)}function formatParts(t,e){const r=e.b||e.body;if((r.t||r.type)===1){const n=r,o=n.c||n.cases;return t.plural(o.reduce((s,c)=>[...s,formatMessageParts(t,c)],[]))}else return formatMessageParts(t,r)}function formatMessageParts(t,e){const r=e.s||e.static;if(r)return t.type==="text"?r:t.normalize([r]);{const n=(e.i||e.items).reduce((o,s)=>[...o,formatMessagePart(t,s)],[]);return t.normalize(n)}}function formatMessagePart(t,e){const r=e.t||e.type;switch(r){case 3:const n=e;return n.v||n.value;case 9:const o=e;return o.v||o.value;case 4:const s=e;return t.interpolate(t.named(s.k||s.key));case 5:const c=e;return t.interpolate(t.list(c.i!=null?c.i:c.index));case 6:const l=e,v=l.m||l.modifier;return t.linked(formatMessagePart(t,l.k||l.key),v?formatMessagePart(t,v):void 0,t.type);case 7:const x=e;return x.v||x.value;case 8:const w=e;return w.v||w.value;default:throw new Error(`unhandled node type on format message part: ${r}`)}}const code$2=CompileErrorCodes.__EXTEND_POINT__,inc$2=incrementer(code$2),CoreErrorCodes={INVALID_ARGUMENT:code$2,INVALID_DATE_ARGUMENT:inc$2(),INVALID_ISO_DATE_ARGUMENT:inc$2(),NOT_SUPPORT_NON_STRING_MESSAGE:inc$2(),__EXTEND_POINT__:inc$2()};function createCoreError(t){return createCompileError(t,null,void 0)}const defaultOnCacheKey=t=>t;let compileCache=Object.create(null);const isMessageAST=t=>isObject$2(t)&&(t.t===0||t.type===0)&&("b"in t||"body"in t);function baseCompile(t,e={}){let r=!1;const n=e.onError||defaultOnError;return e.onError=o=>{r=!0,n(o)},ei(Pt({},baseCompile$1(t,e)),{detectError:r})}const compileToFunction=(t,e)=>{if(!isString$2(t))throw createCoreError(CoreErrorCodes.NOT_SUPPORT_NON_STRING_MESSAGE);{isBoolean$1(e.warnHtmlMessage)&&e.warnHtmlMessage;const n=(e.onCacheKey||defaultOnCacheKey)(t),o=compileCache[n];if(o)return o;const{code:s,detectError:c}=baseCompile(t,e),l=new Function(`return ${s}`)();return c?l:compileCache[n]=l}};function compile(t,e){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&isString$2(t)){isBoolean$1(e.warnHtmlMessage)&&e.warnHtmlMessage;const n=(e.onCacheKey||defaultOnCacheKey)(t),o=compileCache[n];if(o)return o;const{ast:s,detectError:c}=baseCompile(t,ei(Pt({},e),{location:!1,jit:!0})),l=format(s);return c?l:compileCache[n]=l}else{const r=t.cacheKey;if(r){const n=compileCache[r];return n||(compileCache[r]=format(t))}else return format(t)}}const NOOP_MESSAGE_FUNCTION=()=>"",isMessageFunction=t=>isFunction$1(t);function translate(t,...e){const{fallbackFormat:r,postTranslation:n,unresolving:o,messageCompiler:s,fallbackLocale:c,messages:l}=t,[v,x]=parseTranslateArgs(...e),w=isBoolean$1(x.missingWarn)?x.missingWarn:t.missingWarn,_=isBoolean$1(x.fallbackWarn)?x.fallbackWarn:t.fallbackWarn,b=isBoolean$1(x.escapeParameter)?x.escapeParameter:t.escapeParameter,E=!!x.resolvedMessage,I=isString$2(x.default)||isBoolean$1(x.default)?isBoolean$1(x.default)?s?v:()=>v:x.default:r?s?v:()=>v:"",O=r||I!=="",N=getLocale(t,x);b&&escapeParams(x);let[A,z,G]=E?[v,N,l[N]||{}]:resolveMessageFormat(t,v,N,c,_,w),V=A,ne=v;if(!E&&!(isString$2(V)||isMessageAST(V)||isMessageFunction(V))&&O&&(V=I,ne=V),!E&&(!(isString$2(V)||isMessageAST(V)||isMessageFunction(V))||!isString$2(z)))return o?NOT_REOSLVED:v;let W=!1;const B=()=>{W=!0},q=isMessageFunction(V)?V:compileMessageFormat(t,v,z,V,ne,B);if(W)return V;const D=getMessageContextOptions(t,z,G,x),F=createMessageContext(D),re=evaluateMessage(t,q,F),le=n?n(re,v):re;if(__INTLIFY_PROD_DEVTOOLS__){const fe={timestamp:Date.now(),key:isString$2(v)?v:isMessageFunction(V)?V.key:"",locale:z||(isMessageFunction(V)?V.locale:""),format:isString$2(V)?V:isMessageFunction(V)?V.source:"",message:le};fe.meta=assign$1({},t.__meta,getAdditionalMeta()||{}),translateDevTools(fe)}return le}function escapeParams(t){isArray$1(t.list)?t.list=t.list.map(e=>isString$2(e)?escapeHtml(e):e):isObject$2(t.named)&&Object.keys(t.named).forEach(e=>{isString$2(t.named[e])&&(t.named[e]=escapeHtml(t.named[e]))})}function resolveMessageFormat(t,e,r,n,o,s){const{messages:c,onWarn:l,messageResolver:v,localeFallbacker:x}=t,w=x(t,n,r);let _={},b,E=null;const I="translate";for(let O=0;O<w.length&&(b=w[O],_=c[b]||{},(E=v(_,e))===null&&(E=_[e]),!(isString$2(E)||isMessageAST(E)||isMessageFunction(E)));O++){const N=handleMissing(t,e,b,s,I);N!==e&&(E=N)}return[E,b,_]}function compileMessageFormat(t,e,r,n,o,s){const{messageCompiler:c,warnHtmlMessage:l}=t;if(isMessageFunction(n)){const x=n;return x.locale=x.locale||r,x.key=x.key||e,x}if(c==null){const x=()=>n;return x.locale=r,x.key=e,x}const v=c(n,getCompileContext(t,r,o,n,l,s));return v.locale=r,v.key=e,v.source=n,v}function evaluateMessage(t,e,r){return e(r)}function parseTranslateArgs(...t){const[e,r,n]=t,o={};if(!isString$2(e)&&!isNumber$1(e)&&!isMessageFunction(e)&&!isMessageAST(e))throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);const s=isNumber$1(e)?String(e):(isMessageFunction(e),e);return isNumber$1(r)?o.plural=r:isString$2(r)?o.default=r:isPlainObject$1(r)&&!isEmptyObject(r)?o.named=r:isArray$1(r)&&(o.list=r),isNumber$1(n)?o.plural=n:isString$2(n)?o.default=n:isPlainObject$1(n)&&assign$1(o,n),[s,o]}function getCompileContext(t,e,r,n,o,s){return{locale:e,key:r,warnHtmlMessage:o,onError:c=>{throw s&&s(c),c},onCacheKey:c=>generateFormatCacheKey(e,r,c)}}function getMessageContextOptions(t,e,r,n){const{modifiers:o,pluralRules:s,messageResolver:c,fallbackLocale:l,fallbackWarn:v,missingWarn:x,fallbackContext:w}=t,b={locale:e,modifiers:o,pluralRules:s,messages:E=>{let I=c(r,E);if(I==null&&w){const[,,O]=resolveMessageFormat(w,E,e,l,v,x);I=c(O,E)}if(isString$2(I)||isMessageAST(I)){let O=!1;const A=compileMessageFormat(t,E,e,I,E,()=>{O=!0});return O?NOOP_MESSAGE_FUNCTION:A}else return isMessageFunction(I)?I:NOOP_MESSAGE_FUNCTION}};return t.processor&&(b.processor=t.processor),n.list&&(b.list=n.list),n.named&&(b.named=n.named),isNumber$1(n.plural)&&(b.pluralIndex=n.plural),b}function datetime(t,...e){const{datetimeFormats:r,unresolving:n,fallbackLocale:o,onWarn:s,localeFallbacker:c}=t,{__datetimeFormatters:l}=t,[v,x,w,_]=parseDateTimeArgs(...e),b=isBoolean$1(w.missingWarn)?w.missingWarn:t.missingWarn;isBoolean$1(w.fallbackWarn)?w.fallbackWarn:t.fallbackWarn;const E=!!w.part,I=getLocale(t,w),O=c(t,o,I);if(!isString$2(v)||v==="")return new Intl.DateTimeFormat(I,_).format(x);let N={},A,z=null;const G="datetime format";for(let W=0;W<O.length&&(A=O[W],N=r[A]||{},z=N[v],!isPlainObject$1(z));W++)handleMissing(t,v,A,b,G);if(!isPlainObject$1(z)||!isString$2(A))return n?NOT_REOSLVED:v;let V=`${A}__${v}`;isEmptyObject(_)||(V=`${V}__${JSON.stringify(_)}`);let ne=l.get(V);return ne||(ne=new Intl.DateTimeFormat(A,assign$1({},z,_)),l.set(V,ne)),E?ne.formatToParts(x):ne.format(x)}const DATETIME_FORMAT_OPTIONS_KEYS=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function parseDateTimeArgs(...t){const[e,r,n,o]=t,s={};let c={},l;if(isString$2(e)){const v=e.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!v)throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT);const x=v[3]?v[3].trim().startsWith("T")?`${v[1].trim()}${v[3].trim()}`:`${v[1].trim()}T${v[3].trim()}`:v[1].trim();l=new Date(x);try{l.toISOString()}catch(w){throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT)}}else if(isDate$1(e)){if(isNaN(e.getTime()))throw createCoreError(CoreErrorCodes.INVALID_DATE_ARGUMENT);l=e}else if(isNumber$1(e))l=e;else throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);return isString$2(r)?s.key=r:isPlainObject$1(r)&&Object.keys(r).forEach(v=>{DATETIME_FORMAT_OPTIONS_KEYS.includes(v)?c[v]=r[v]:s[v]=r[v]}),isString$2(n)?s.locale=n:isPlainObject$1(n)&&(c=n),isPlainObject$1(o)&&(c=o),[s.key||"",l,s,c]}function clearDateTimeFormat(t,e,r){const n=t;for(const o in r){const s=`${e}__${o}`;!n.__datetimeFormatters.has(s)||n.__datetimeFormatters.delete(s)}}function number(t,...e){const{numberFormats:r,unresolving:n,fallbackLocale:o,onWarn:s,localeFallbacker:c}=t,{__numberFormatters:l}=t,[v,x,w,_]=parseNumberArgs(...e),b=isBoolean$1(w.missingWarn)?w.missingWarn:t.missingWarn;isBoolean$1(w.fallbackWarn)?w.fallbackWarn:t.fallbackWarn;const E=!!w.part,I=getLocale(t,w),O=c(t,o,I);if(!isString$2(v)||v==="")return new Intl.NumberFormat(I,_).format(x);let N={},A,z=null;const G="number format";for(let W=0;W<O.length&&(A=O[W],N=r[A]||{},z=N[v],!isPlainObject$1(z));W++)handleMissing(t,v,A,b,G);if(!isPlainObject$1(z)||!isString$2(A))return n?NOT_REOSLVED:v;let V=`${A}__${v}`;isEmptyObject(_)||(V=`${V}__${JSON.stringify(_)}`);let ne=l.get(V);return ne||(ne=new Intl.NumberFormat(A,assign$1({},z,_)),l.set(V,ne)),E?ne.formatToParts(x):ne.format(x)}const NUMBER_FORMAT_OPTIONS_KEYS=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function parseNumberArgs(...t){const[e,r,n,o]=t,s={};let c={};if(!isNumber$1(e))throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);const l=e;return isString$2(r)?s.key=r:isPlainObject$1(r)&&Object.keys(r).forEach(v=>{NUMBER_FORMAT_OPTIONS_KEYS.includes(v)?c[v]=r[v]:s[v]=r[v]}),isString$2(n)?s.locale=n:isPlainObject$1(n)&&(c=n),isPlainObject$1(o)&&(c=o),[s.key||"",l,s,c]}function clearNumberFormat(t,e,r){const n=t;for(const o in r){const s=`${e}__${o}`;!n.__numberFormatters.has(s)||n.__numberFormatters.delete(s)}}initFeatureFlags$1();/*!
  4489. * vue-i18n v9.5.0
  4490. * (c) 2023 kazuya kawaguchi
  4491. * Released under the MIT License.
  4492. */const VERSION$1="9.5.0";function initFeatureFlags(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(getGlobalThis().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(getGlobalThis().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(getGlobalThis().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(getGlobalThis().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(getGlobalThis().__INTLIFY_PROD_DEVTOOLS__=!1)}const code$1=CoreWarnCodes.__EXTEND_POINT__,inc$1=incrementer(code$1);inc$1(),inc$1(),inc$1(),inc$1(),inc$1(),inc$1(),inc$1(),inc$1();const code=CoreErrorCodes.__EXTEND_POINT__,inc=incrementer(code),I18nErrorCodes={UNEXPECTED_RETURN_TYPE:code,INVALID_ARGUMENT:inc(),MUST_BE_CALL_SETUP_TOP:inc(),NOT_INSTALLED:inc(),NOT_AVAILABLE_IN_LEGACY_MODE:inc(),REQUIRED_VALUE:inc(),INVALID_VALUE:inc(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:inc(),NOT_INSTALLED_WITH_PROVIDE:inc(),UNEXPECTED_ERROR:inc(),NOT_COMPATIBLE_LEGACY_VUE_I18N:inc(),BRIDGE_SUPPORT_VUE_2_ONLY:inc(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:inc(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:inc(),__EXTEND_POINT__:inc()};function createI18nError(t,...e){return createCompileError(t,null,void 0)}const TranslateVNodeSymbol=makeSymbol("__translateVNode"),DatetimePartsSymbol=makeSymbol("__datetimeParts"),NumberPartsSymbol=makeSymbol("__numberParts"),SetPluralRulesSymbol=makeSymbol("__setPluralRules");makeSymbol("__intlifyMeta");const InejctWithOptionSymbol=makeSymbol("__injectWithOption"),DisposeSymbol=makeSymbol("__dispose"),__VUE_I18N_BRIDGE__="__VUE_I18N_BRIDGE__";function handleFlatJson(t){if(!isObject$2(t))return t;for(const e in t)if(!!hasOwn(t,e))if(!e.includes("."))isObject$2(t[e])&&handleFlatJson(t[e]);else{const r=e.split("."),n=r.length-1;let o=t,s=!1;for(let c=0;c<n;c++){if(r[c]in o||(o[r[c]]={}),!isObject$2(o[r[c]])){s=!0;break}o=o[r[c]]}s||(o[r[n]]=t[e],delete t[e]),isObject$2(o[r[n]])&&handleFlatJson(o[r[n]])}return t}function getLocaleMessages(t,e){const{messages:r,__i18n:n,messageResolver:o,flatJson:s}=e,c=isPlainObject$1(r)?r:isArray$1(n)?{}:{[t]:{}};if(isArray$1(n)&&n.forEach(l=>{if("locale"in l&&"resource"in l){const{locale:v,resource:x}=l;v?(c[v]=c[v]||{},deepCopy(x,c[v])):deepCopy(x,c)}else isString$2(l)&&deepCopy(JSON.parse(l),c)}),o==null&&s)for(const l in c)hasOwn(c,l)&&handleFlatJson(c[l]);return c}const isNotObjectOrIsArray=t=>!isObject$2(t)||isArray$1(t);function deepCopy(t,e){if(isNotObjectOrIsArray(t)||isNotObjectOrIsArray(e))throw createI18nError(I18nErrorCodes.INVALID_VALUE);for(const r in t)hasOwn(t,r)&&(isNotObjectOrIsArray(t[r])||isNotObjectOrIsArray(e[r])?e[r]=t[r]:deepCopy(t[r],e[r]))}function getComponentOptions(t){return t.type}function adjustI18nResources(t,e,r){let n=isObject$2(e.messages)?e.messages:{};"__i18nGlobal"in r&&(n=getLocaleMessages(t.locale.value,{messages:n,__i18n:r.__i18nGlobal}));const o=Object.keys(n);o.length&&o.forEach(s=>{t.mergeLocaleMessage(s,n[s])});{if(isObject$2(e.datetimeFormats)){const s=Object.keys(e.datetimeFormats);s.length&&s.forEach(c=>{t.mergeDateTimeFormat(c,e.datetimeFormats[c])})}if(isObject$2(e.numberFormats)){const s=Object.keys(e.numberFormats);s.length&&s.forEach(c=>{t.mergeNumberFormat(c,e.numberFormats[c])})}}}function createTextNode(t){return createVNode(Text,null,t,0)}const DEVTOOLS_META="__INTLIFY_META__";let composerID=0;function defineCoreMissingHandler(t){return(e,r,n,o)=>t(r,n,getCurrentInstance$1()||void 0,o)}const getMetaInfo=()=>{const t=getCurrentInstance$1();let e=null;return t&&(e=getComponentOptions(t)[DEVTOOLS_META])?{[DEVTOOLS_META]:e}:null};function createComposer(t={},e){const{__root:r,__injectWithOption:n}=t,o=r===void 0;let s=isBoolean$1(t.inheritLocale)?t.inheritLocale:!0;const c=ref(r&&s?r.locale.value:isString$2(t.locale)?t.locale:DEFAULT_LOCALE),l=ref(r&&s?r.fallbackLocale.value:isString$2(t.fallbackLocale)||isArray$1(t.fallbackLocale)||isPlainObject$1(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:c.value),v=ref(getLocaleMessages(c.value,t)),x=ref(isPlainObject$1(t.datetimeFormats)?t.datetimeFormats:{[c.value]:{}}),w=ref(isPlainObject$1(t.numberFormats)?t.numberFormats:{[c.value]:{}});let _=r?r.missingWarn:isBoolean$1(t.missingWarn)||isRegExp$1(t.missingWarn)?t.missingWarn:!0,b=r?r.fallbackWarn:isBoolean$1(t.fallbackWarn)||isRegExp$1(t.fallbackWarn)?t.fallbackWarn:!0,E=r?r.fallbackRoot:isBoolean$1(t.fallbackRoot)?t.fallbackRoot:!0,I=!!t.fallbackFormat,O=isFunction$1(t.missing)?t.missing:null,N=isFunction$1(t.missing)?defineCoreMissingHandler(t.missing):null,A=isFunction$1(t.postTranslation)?t.postTranslation:null,z=r?r.warnHtmlMessage:isBoolean$1(t.warnHtmlMessage)?t.warnHtmlMessage:!0,G=!!t.escapeParameter;const V=r?r.modifiers:isPlainObject$1(t.modifiers)?t.modifiers:{};let ne=t.pluralRules||r&&r.pluralRules,W;W=(()=>{o&&setFallbackContext(null);const Et={version:VERSION$1,locale:c.value,fallbackLocale:l.value,messages:v.value,modifiers:V,pluralRules:ne,missing:N===null?void 0:N,missingWarn:_,fallbackWarn:b,fallbackFormat:I,unresolving:!0,postTranslation:A===null?void 0:A,warnHtmlMessage:z,escapeParameter:G,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};Et.datetimeFormats=x.value,Et.numberFormats=w.value,Et.__datetimeFormatters=isPlainObject$1(W)?W.__datetimeFormatters:void 0,Et.__numberFormatters=isPlainObject$1(W)?W.__numberFormatters:void 0;const rn=createCoreContext(Et);return o&&setFallbackContext(rn),rn})(),updateFallbackLocale(W,c.value,l.value);function q(){return[c.value,l.value,v.value,x.value,w.value]}const D=computed({get:()=>c.value,set:Et=>{c.value=Et,W.locale=c.value}}),F=computed({get:()=>l.value,set:Et=>{l.value=Et,W.fallbackLocale=l.value,updateFallbackLocale(W,c.value,Et)}}),re=computed(()=>v.value),le=computed(()=>x.value),fe=computed(()=>w.value);function me(){return isFunction$1(A)?A:null}function ye(Et){A=Et,W.postTranslation=Et}function Te(){return O}function ke(Et){Et!==null&&(N=defineCoreMissingHandler(Et)),O=Et,W.missing=N}const Le=(Et,rn,wt,Yn,pt,Fe)=>{q();let Ie;try{__INTLIFY_PROD_DEVTOOLS__&&setAdditionalMeta(getMetaInfo()),o||(W.fallbackContext=r?getFallbackContext():void 0),Ie=Et(W)}finally{__INTLIFY_PROD_DEVTOOLS__&&setAdditionalMeta(null),o||(W.fallbackContext=void 0)}if(isNumber$1(Ie)&&Ie===NOT_REOSLVED){const[ct,Ht]=rn();return r&&E?Yn(r):pt(ct)}else{if(Fe(Ie))return Ie;throw createI18nError(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)}};function et(...Et){return Le(rn=>Reflect.apply(translate,null,[rn,...Et]),()=>parseTranslateArgs(...Et),"translate",rn=>Reflect.apply(rn.t,rn,[...Et]),rn=>rn,rn=>isString$2(rn))}function it(...Et){const[rn,wt,Yn]=Et;if(Yn&&!isObject$2(Yn))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);return et(rn,wt,assign$1({resolvedMessage:!0},Yn||{}))}function Ue(...Et){return Le(rn=>Reflect.apply(datetime,null,[rn,...Et]),()=>parseDateTimeArgs(...Et),"datetime format",rn=>Reflect.apply(rn.d,rn,[...Et]),()=>MISSING_RESOLVE_VALUE,rn=>isString$2(rn))}function ht(...Et){return Le(rn=>Reflect.apply(number,null,[rn,...Et]),()=>parseNumberArgs(...Et),"number format",rn=>Reflect.apply(rn.n,rn,[...Et]),()=>MISSING_RESOLVE_VALUE,rn=>isString$2(rn))}function De(Et){return Et.map(rn=>isString$2(rn)||isNumber$1(rn)||isBoolean$1(rn)?createTextNode(String(rn)):rn)}const Ve={normalize:De,interpolate:Et=>Et,type:"vnode"};function He(...Et){return Le(rn=>{let wt;const Yn=rn;try{Yn.processor=Ve,wt=Reflect.apply(translate,null,[Yn,...Et])}finally{Yn.processor=null}return wt},()=>parseTranslateArgs(...Et),"translate",rn=>rn[TranslateVNodeSymbol](...Et),rn=>[createTextNode(rn)],rn=>isArray$1(rn))}function gt(...Et){return Le(rn=>Reflect.apply(number,null,[rn,...Et]),()=>parseNumberArgs(...Et),"number format",rn=>rn[NumberPartsSymbol](...Et),()=>[],rn=>isString$2(rn)||isArray$1(rn))}function dn(...Et){return Le(rn=>Reflect.apply(datetime,null,[rn,...Et]),()=>parseDateTimeArgs(...Et),"datetime format",rn=>rn[DatetimePartsSymbol](...Et),()=>[],rn=>isString$2(rn)||isArray$1(rn))}function Ze(Et){ne=Et,W.pluralRules=ne}function at(Et,rn){if(!Et)return!1;const wt=isString$2(rn)?rn:c.value,Yn=ze(wt);return W.messageResolver(Yn,Et)!==null}function Lt(Et){let rn=null;const wt=fallbackWithLocaleChain(W,l.value,c.value);for(let Yn=0;Yn<wt.length;Yn++){const pt=v.value[wt[Yn]]||{},Fe=W.messageResolver(pt,Et);if(Fe!=null){rn=Fe;break}}return rn}function Ne(Et){const rn=Lt(Et);return rn!=null?rn:r?r.tm(Et)||{}:{}}function ze(Et){return v.value[Et]||{}}function Ke(Et,rn){v.value[Et]=rn,W.messages=v.value}function vt(Et,rn){v.value[Et]=v.value[Et]||{},deepCopy(rn,v.value[Et]),W.messages=v.value}function Ft(Et){return x.value[Et]||{}}function Ot(Et,rn){x.value[Et]=rn,W.datetimeFormats=x.value,clearDateTimeFormat(W,Et,rn)}function _t(Et,rn){x.value[Et]=assign$1(x.value[Et]||{},rn),W.datetimeFormats=x.value,clearDateTimeFormat(W,Et,rn)}function Tn(Et){return w.value[Et]||{}}function on(Et,rn){w.value[Et]=rn,W.numberFormats=w.value,clearNumberFormat(W,Et,rn)}function $n(Et,rn){w.value[Et]=assign$1(w.value[Et]||{},rn),W.numberFormats=w.value,clearNumberFormat(W,Et,rn)}composerID++,r&&inBrowser&&(watch(r.locale,Et=>{s&&(c.value=Et,W.locale=Et,updateFallbackLocale(W,c.value,l.value))}),watch(r.fallbackLocale,Et=>{s&&(l.value=Et,W.fallbackLocale=Et,updateFallbackLocale(W,c.value,l.value))}));const Zt={id:composerID,locale:D,fallbackLocale:F,get inheritLocale(){return s},set inheritLocale(Et){s=Et,Et&&r&&(c.value=r.locale.value,l.value=r.fallbackLocale.value,updateFallbackLocale(W,c.value,l.value))},get availableLocales(){return Object.keys(v.value).sort()},messages:re,get modifiers(){return V},get pluralRules(){return ne||{}},get isGlobal(){return o},get missingWarn(){return _},set missingWarn(Et){_=Et,W.missingWarn=_},get fallbackWarn(){return b},set fallbackWarn(Et){b=Et,W.fallbackWarn=b},get fallbackRoot(){return E},set fallbackRoot(Et){E=Et},get fallbackFormat(){return I},set fallbackFormat(Et){I=Et,W.fallbackFormat=I},get warnHtmlMessage(){return z},set warnHtmlMessage(Et){z=Et,W.warnHtmlMessage=Et},get escapeParameter(){return G},set escapeParameter(Et){G=Et,W.escapeParameter=Et},t:et,getLocaleMessage:ze,setLocaleMessage:Ke,mergeLocaleMessage:vt,getPostTranslationHandler:me,setPostTranslationHandler:ye,getMissingHandler:Te,setMissingHandler:ke,[SetPluralRulesSymbol]:Ze};return Zt.datetimeFormats=le,Zt.numberFormats=fe,Zt.rt=it,Zt.te=at,Zt.tm=Ne,Zt.d=Ue,Zt.n=ht,Zt.getDateTimeFormat=Ft,Zt.setDateTimeFormat=Ot,Zt.mergeDateTimeFormat=_t,Zt.getNumberFormat=Tn,Zt.setNumberFormat=on,Zt.mergeNumberFormat=$n,Zt[InejctWithOptionSymbol]=n,Zt[TranslateVNodeSymbol]=He,Zt[DatetimePartsSymbol]=dn,Zt[NumberPartsSymbol]=gt,Zt}function convertComposerOptions(t){const e=isString$2(t.locale)?t.locale:DEFAULT_LOCALE,r=isString$2(t.fallbackLocale)||isArray$1(t.fallbackLocale)||isPlainObject$1(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:e,n=isFunction$1(t.missing)?t.missing:void 0,o=isBoolean$1(t.silentTranslationWarn)||isRegExp$1(t.silentTranslationWarn)?!t.silentTranslationWarn:!0,s=isBoolean$1(t.silentFallbackWarn)||isRegExp$1(t.silentFallbackWarn)?!t.silentFallbackWarn:!0,c=isBoolean$1(t.fallbackRoot)?t.fallbackRoot:!0,l=!!t.formatFallbackMessages,v=isPlainObject$1(t.modifiers)?t.modifiers:{},x=t.pluralizationRules,w=isFunction$1(t.postTranslation)?t.postTranslation:void 0,_=isString$2(t.warnHtmlInMessage)?t.warnHtmlInMessage!=="off":!0,b=!!t.escapeParameterHtml,E=isBoolean$1(t.sync)?t.sync:!0;let I=t.messages;if(isPlainObject$1(t.sharedMessages)){const ne=t.sharedMessages;I=Object.keys(ne).reduce((B,q)=>{const D=B[q]||(B[q]={});return assign$1(D,ne[q]),B},I||{})}const{__i18n:O,__root:N,__injectWithOption:A}=t,z=t.datetimeFormats,G=t.numberFormats,V=t.flatJson;return{locale:e,fallbackLocale:r,messages:I,flatJson:V,datetimeFormats:z,numberFormats:G,missing:n,missingWarn:o,fallbackWarn:s,fallbackRoot:c,fallbackFormat:l,modifiers:v,pluralRules:x,postTranslation:w,warnHtmlMessage:_,escapeParameter:b,messageResolver:t.messageResolver,inheritLocale:E,__i18n:O,__root:N,__injectWithOption:A}}function createVueI18n(t={},e){{const r=createComposer(convertComposerOptions(t)),{__extender:n}=t,o={id:r.id,get locale(){return r.locale.value},set locale(s){r.locale.value=s},get fallbackLocale(){return r.fallbackLocale.value},set fallbackLocale(s){r.fallbackLocale.value=s},get messages(){return r.messages.value},get datetimeFormats(){return r.datetimeFormats.value},get numberFormats(){return r.numberFormats.value},get availableLocales(){return r.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(s){},get missing(){return r.getMissingHandler()},set missing(s){r.setMissingHandler(s)},get silentTranslationWarn(){return isBoolean$1(r.missingWarn)?!r.missingWarn:r.missingWarn},set silentTranslationWarn(s){r.missingWarn=isBoolean$1(s)?!s:s},get silentFallbackWarn(){return isBoolean$1(r.fallbackWarn)?!r.fallbackWarn:r.fallbackWarn},set silentFallbackWarn(s){r.fallbackWarn=isBoolean$1(s)?!s:s},get modifiers(){return r.modifiers},get formatFallbackMessages(){return r.fallbackFormat},set formatFallbackMessages(s){r.fallbackFormat=s},get postTranslation(){return r.getPostTranslationHandler()},set postTranslation(s){r.setPostTranslationHandler(s)},get sync(){return r.inheritLocale},set sync(s){r.inheritLocale=s},get warnHtmlInMessage(){return r.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(s){r.warnHtmlMessage=s!=="off"},get escapeParameterHtml(){return r.escapeParameter},set escapeParameterHtml(s){r.escapeParameter=s},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(s){},get pluralizationRules(){return r.pluralRules||{}},__composer:r,t(...s){const[c,l,v]=s,x={};let w=null,_=null;if(!isString$2(c))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);const b=c;return isString$2(l)?x.locale=l:isArray$1(l)?w=l:isPlainObject$1(l)&&(_=l),isArray$1(v)?w=v:isPlainObject$1(v)&&(_=v),Reflect.apply(r.t,r,[b,w||_||{},x])},rt(...s){return Reflect.apply(r.rt,r,[...s])},tc(...s){const[c,l,v]=s,x={plural:1};let w=null,_=null;if(!isString$2(c))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);const b=c;return isString$2(l)?x.locale=l:isNumber$1(l)?x.plural=l:isArray$1(l)?w=l:isPlainObject$1(l)&&(_=l),isString$2(v)?x.locale=v:isArray$1(v)?w=v:isPlainObject$1(v)&&(_=v),Reflect.apply(r.t,r,[b,w||_||{},x])},te(s,c){return r.te(s,c)},tm(s){return r.tm(s)},getLocaleMessage(s){return r.getLocaleMessage(s)},setLocaleMessage(s,c){r.setLocaleMessage(s,c)},mergeLocaleMessage(s,c){r.mergeLocaleMessage(s,c)},d(...s){return Reflect.apply(r.d,r,[...s])},getDateTimeFormat(s){return r.getDateTimeFormat(s)},setDateTimeFormat(s,c){r.setDateTimeFormat(s,c)},mergeDateTimeFormat(s,c){r.mergeDateTimeFormat(s,c)},n(...s){return Reflect.apply(r.n,r,[...s])},getNumberFormat(s){return r.getNumberFormat(s)},setNumberFormat(s,c){r.setNumberFormat(s,c)},mergeNumberFormat(s,c){r.mergeNumberFormat(s,c)},getChoiceIndex(s,c){return-1}};return o.__extender=n,o}}const baseFormatProps={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function getInterpolateArg({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((n,o)=>[...n,...o.type===Fragment?o.children:[o]],[]):e.reduce((r,n)=>{const o=t[n];return o&&(r[n]=o()),r},{})}function getFragmentableTag(t){return Fragment}const TranslationImpl=defineComponent$1({name:"i18n-t",props:assign$1({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>isNumber$1(t)||!isNaN(t)}},baseFormatProps),setup(t,e){const{slots:r,attrs:n}=e,o=t.i18n||useI18n({useScope:t.scope,__useComponent:!0});return()=>{const s=Object.keys(r).filter(_=>_!=="_"),c={};t.locale&&(c.locale=t.locale),t.plural!==void 0&&(c.plural=isString$2(t.plural)?+t.plural:t.plural);const l=getInterpolateArg(e,s),v=o[TranslateVNodeSymbol](t.keypath,l,c),x=assign$1({},n),w=isString$2(t.tag)||isObject$2(t.tag)?t.tag:getFragmentableTag();return h(w,x,v)}}}),Translation=TranslationImpl,I18nT=Translation;function isVNode(t){return isArray$1(t)&&!isString$2(t[0])}function renderFormatter(t,e,r,n){const{slots:o,attrs:s}=e;return()=>{const c={part:!0};let l={};t.locale&&(c.locale=t.locale),isString$2(t.format)?c.key=t.format:isObject$2(t.format)&&(isString$2(t.format.key)&&(c.key=t.format.key),l=Object.keys(t.format).reduce((b,E)=>r.includes(E)?assign$1({},b,{[E]:t.format[E]}):b,{}));const v=n(t.value,c,l);let x=[c.key];isArray$1(v)?x=v.map((b,E)=>{const I=o[b.type],O=I?I({[b.type]:b.value,index:E,parts:v}):[b.value];return isVNode(O)&&(O[0].key=`${b.type}-${E}`),O}):isString$2(v)&&(x=[v]);const w=assign$1({},s),_=isString$2(t.tag)||isObject$2(t.tag)?t.tag:getFragmentableTag();return h(_,w,x)}}const NumberFormatImpl=defineComponent$1({name:"i18n-n",props:assign$1({value:{type:Number,required:!0},format:{type:[String,Object]}},baseFormatProps),setup(t,e){const r=t.i18n||useI18n({useScope:"parent",__useComponent:!0});return renderFormatter(t,e,NUMBER_FORMAT_OPTIONS_KEYS,(...n)=>r[NumberPartsSymbol](...n))}}),NumberFormat=NumberFormatImpl,I18nN=NumberFormat,DatetimeFormatImpl=defineComponent$1({name:"i18n-d",props:assign$1({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},baseFormatProps),setup(t,e){const r=t.i18n||useI18n({useScope:"parent",__useComponent:!0});return renderFormatter(t,e,DATETIME_FORMAT_OPTIONS_KEYS,(...n)=>r[DatetimePartsSymbol](...n))}}),DatetimeFormat=DatetimeFormatImpl,I18nD=DatetimeFormat;function getComposer$2(t,e){const r=t;if(t.mode==="composition")return r.__getInstance(e)||t.global;{const n=r.__getInstance(e);return n!=null?n.__composer:t.global.__composer}}function vTDirective(t){const e=c=>{const{instance:l,modifiers:v,value:x}=c;if(!l||!l.$)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const w=getComposer$2(t,l.$),_=parseValue(x);return[Reflect.apply(w.t,w,[...makeParams(_)]),w]};return{created:(c,l)=>{const[v,x]=e(l);inBrowser&&t.global===x&&(c.__i18nWatcher=watch(x.locale,()=>{l.instance&&l.instance.$forceUpdate()})),c.__composer=x,c.textContent=v},unmounted:c=>{inBrowser&&c.__i18nWatcher&&(c.__i18nWatcher(),c.__i18nWatcher=void 0,delete c.__i18nWatcher),c.__composer&&(c.__composer=void 0,delete c.__composer)},beforeUpdate:(c,{value:l})=>{if(c.__composer){const v=c.__composer,x=parseValue(l);c.textContent=Reflect.apply(v.t,v,[...makeParams(x)])}},getSSRProps:c=>{const[l]=e(c);return{textContent:l}}}}function parseValue(t){if(isString$2(t))return{path:t};if(isPlainObject$1(t)){if(!("path"in t))throw createI18nError(I18nErrorCodes.REQUIRED_VALUE,"path");return t}else throw createI18nError(I18nErrorCodes.INVALID_VALUE)}function makeParams(t){const{path:e,locale:r,args:n,choice:o,plural:s}=t,c={},l=n||{};return isString$2(r)&&(c.locale=r),isNumber$1(o)&&(c.plural=o),isNumber$1(s)&&(c.plural=s),[e,l,c]}function apply(t,e,...r){const n=isPlainObject$1(r[0])?r[0]:{},o=!!n.useI18nComponentName;(isBoolean$1(n.globalInstall)?n.globalInstall:!0)&&([o?"i18n":Translation.name,"I18nT"].forEach(c=>t.component(c,Translation)),[NumberFormat.name,"I18nN"].forEach(c=>t.component(c,NumberFormat)),[DatetimeFormat.name,"I18nD"].forEach(c=>t.component(c,DatetimeFormat))),t.directive("t",vTDirective(e))}function defineMixin(t,e,r){return{beforeCreate(){const n=getCurrentInstance$1();if(!n)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const s=o.i18n;if(o.__i18n&&(s.__i18n=o.__i18n),s.__root=e,this===this.$root)this.$i18n=mergeToGlobal(t,s);else{s.__injectWithOption=!0,s.__extender=r.__vueI18nExtend,this.$i18n=createVueI18n(s);const c=this.$i18n;c.__extender&&(c.__disposer=c.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=mergeToGlobal(t,o);else{this.$i18n=createVueI18n({__i18n:o.__i18n,__injectWithOption:!0,__extender:r.__vueI18nExtend,__root:e});const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}else this.$i18n=t;o.__i18nGlobal&&adjustI18nResources(e,o,o),this.$t=(...s)=>this.$i18n.t(...s),this.$rt=(...s)=>this.$i18n.rt(...s),this.$tc=(...s)=>this.$i18n.tc(...s),this.$te=(s,c)=>this.$i18n.te(s,c),this.$d=(...s)=>this.$i18n.d(...s),this.$n=(...s)=>this.$i18n.n(...s),this.$tm=s=>this.$i18n.tm(s),r.__setInstance(n,this.$i18n)},mounted(){},unmounted(){const n=getCurrentInstance$1();if(!n)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const o=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,o.__disposer&&(o.__disposer(),delete o.__disposer,delete o.__extender),r.__deleteInstance(n),delete this.$i18n}}}function mergeToGlobal(t,e){t.locale=e.locale||t.locale,t.fallbackLocale=e.fallbackLocale||t.fallbackLocale,t.missing=e.missing||t.missing,t.silentTranslationWarn=e.silentTranslationWarn||t.silentFallbackWarn,t.silentFallbackWarn=e.silentFallbackWarn||t.silentFallbackWarn,t.formatFallbackMessages=e.formatFallbackMessages||t.formatFallbackMessages,t.postTranslation=e.postTranslation||t.postTranslation,t.warnHtmlInMessage=e.warnHtmlInMessage||t.warnHtmlInMessage,t.escapeParameterHtml=e.escapeParameterHtml||t.escapeParameterHtml,t.sync=e.sync||t.sync,t.__composer[SetPluralRulesSymbol](e.pluralizationRules||t.pluralizationRules);const r=getLocaleMessages(t.locale,{messages:e.messages,__i18n:e.__i18n});return Object.keys(r).forEach(n=>t.mergeLocaleMessage(n,r[n])),e.datetimeFormats&&Object.keys(e.datetimeFormats).forEach(n=>t.mergeDateTimeFormat(n,e.datetimeFormats[n])),e.numberFormats&&Object.keys(e.numberFormats).forEach(n=>t.mergeNumberFormat(n,e.numberFormats[n])),t}const I18nInjectionKey=makeSymbol("global-vue-i18n");function createI18n(t={},e){const r=__VUE_I18N_LEGACY_API__&&isBoolean$1(t.legacy)?t.legacy:__VUE_I18N_LEGACY_API__,n=isBoolean$1(t.globalInjection)?t.globalInjection:!0,o=__VUE_I18N_LEGACY_API__&&r?!!t.allowComposition:!0,s=new Map,[c,l]=createGlobal(t,r),v=makeSymbol("");function x(b){return s.get(b)||null}function w(b,E){s.set(b,E)}function _(b){s.delete(b)}{let E;const b={get mode(){return __VUE_I18N_LEGACY_API__&&r?"legacy":"composition"},get allowComposition(){return o},install(I,...O){return Gr(this,null,function*(){if(I.__VUE_I18N_SYMBOL__=v,I.provide(I.__VUE_I18N_SYMBOL__,b),isPlainObject$1(O[0])){const z=O[0];b.__composerExtend=z.__composerExtend,b.__vueI18nExtend=z.__vueI18nExtend}let N=null;!r&&n&&(N=injectGlobalFields(I,b.global)),__VUE_I18N_FULL_INSTALL__&&apply(I,b,...O),__VUE_I18N_LEGACY_API__&&r&&I.mixin(defineMixin(l,l.__composer,b));const A=I.unmount;I.unmount=()=>{N&&N(),b.dispose(),A()}})},get global(){return l},dispose(){c.stop()},__instances:s,__getInstance:x,__setInstance:w,__deleteInstance:_};return b}}function useI18n(t={}){const e=getCurrentInstance$1();if(e==null)throw createI18nError(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw createI18nError(I18nErrorCodes.NOT_INSTALLED);const r=getI18nInstance(e),n=getGlobalComposer(r),o=getComponentOptions(e),s=getScope(t,o);if(__VUE_I18N_LEGACY_API__&&r.mode==="legacy"&&!t.__useComponent){if(!r.allowComposition)throw createI18nError(I18nErrorCodes.NOT_AVAILABLE_IN_LEGACY_MODE);return useI18nForLegacy(e,s,n,t)}if(s==="global")return adjustI18nResources(n,t,o),n;if(s==="parent"){let v=getComposer(r,e,t.__useComponent);return v==null&&(v=n),v}const c=r;let l=c.__getInstance(e);if(l==null){const v=assign$1({},t);"__i18n"in o&&(v.__i18n=o.__i18n),n&&(v.__root=n),l=createComposer(v),c.__composerExtend&&(l[DisposeSymbol]=c.__composerExtend(l)),setupLifeCycle(c,e,l),c.__setInstance(e,l)}return l}const castToVueI18n=t=>{if(!(__VUE_I18N_BRIDGE__ in t))throw createI18nError(I18nErrorCodes.NOT_COMPATIBLE_LEGACY_VUE_I18N);return t};function createGlobal(t,e,r){const n=effectScope();{const o=__VUE_I18N_LEGACY_API__&&e?n.run(()=>createVueI18n(t)):n.run(()=>createComposer(t));if(o==null)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);return[n,o]}}function getI18nInstance(t){{const e=inject$1(t.isCE?I18nInjectionKey:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw createI18nError(t.isCE?I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE:I18nErrorCodes.UNEXPECTED_ERROR);return e}}function getScope(t,e){return isEmptyObject(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function getGlobalComposer(t){return t.mode==="composition"?t.global:t.global.__composer}function getComposer(t,e,r=!1){let n=null;const o=e.root;let s=getParentComponentInstance(e,r);for(;s!=null;){const c=t;if(t.mode==="composition")n=c.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const l=c.__getInstance(s);l!=null&&(n=l.__composer,r&&n&&!n[InejctWithOptionSymbol]&&(n=null))}if(n!=null||o===s)break;s=s.parent}return n}function getParentComponentInstance(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function setupLifeCycle(t,e,r){onMounted(()=>{},e),onUnmounted(()=>{const n=r;t.__deleteInstance(e);const o=n[DisposeSymbol];o&&(o(),delete n[DisposeSymbol])},e)}function useI18nForLegacy(t,e,r,n={}){const o=e==="local",s=shallowRef(null);if(o&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw createI18nError(I18nErrorCodes.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const c=isBoolean$1(n.inheritLocale)?n.inheritLocale:!isString$2(n.locale),l=ref(!o||c?r.locale.value:isString$2(n.locale)?n.locale:DEFAULT_LOCALE),v=ref(!o||c?r.fallbackLocale.value:isString$2(n.fallbackLocale)||isArray$1(n.fallbackLocale)||isPlainObject$1(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:l.value),x=ref(getLocaleMessages(l.value,n)),w=ref(isPlainObject$1(n.datetimeFormats)?n.datetimeFormats:{[l.value]:{}}),_=ref(isPlainObject$1(n.numberFormats)?n.numberFormats:{[l.value]:{}}),b=o?r.missingWarn:isBoolean$1(n.missingWarn)||isRegExp$1(n.missingWarn)?n.missingWarn:!0,E=o?r.fallbackWarn:isBoolean$1(n.fallbackWarn)||isRegExp$1(n.fallbackWarn)?n.fallbackWarn:!0,I=o?r.fallbackRoot:isBoolean$1(n.fallbackRoot)?n.fallbackRoot:!0,O=!!n.fallbackFormat,N=isFunction$1(n.missing)?n.missing:null,A=isFunction$1(n.postTranslation)?n.postTranslation:null,z=o?r.warnHtmlMessage:isBoolean$1(n.warnHtmlMessage)?n.warnHtmlMessage:!0,G=!!n.escapeParameter,V=o?r.modifiers:isPlainObject$1(n.modifiers)?n.modifiers:{},ne=n.pluralRules||o&&r.pluralRules;function W(){return[l.value,v.value,x.value,w.value,_.value]}const B=computed({get:()=>s.value?s.value.locale.value:l.value,set:Ke=>{s.value&&(s.value.locale.value=Ke),l.value=Ke}}),q=computed({get:()=>s.value?s.value.fallbackLocale.value:v.value,set:Ke=>{s.value&&(s.value.fallbackLocale.value=Ke),v.value=Ke}}),D=computed(()=>s.value?s.value.messages.value:x.value),F=computed(()=>w.value),re=computed(()=>_.value);function le(){return s.value?s.value.getPostTranslationHandler():A}function fe(Ke){s.value&&s.value.setPostTranslationHandler(Ke)}function me(){return s.value?s.value.getMissingHandler():N}function ye(Ke){s.value&&s.value.setMissingHandler(Ke)}function Te(Ke){return W(),Ke()}function ke(...Ke){return s.value?Te(()=>Reflect.apply(s.value.t,null,[...Ke])):Te(()=>"")}function Le(...Ke){return s.value?Reflect.apply(s.value.rt,null,[...Ke]):""}function et(...Ke){return s.value?Te(()=>Reflect.apply(s.value.d,null,[...Ke])):Te(()=>"")}function it(...Ke){return s.value?Te(()=>Reflect.apply(s.value.n,null,[...Ke])):Te(()=>"")}function Ue(Ke){return s.value?s.value.tm(Ke):{}}function ht(Ke,vt){return s.value?s.value.te(Ke,vt):!1}function De(Ke){return s.value?s.value.getLocaleMessage(Ke):{}}function Be(Ke,vt){s.value&&(s.value.setLocaleMessage(Ke,vt),x.value[Ke]=vt)}function Ve(Ke,vt){s.value&&s.value.mergeLocaleMessage(Ke,vt)}function He(Ke){return s.value?s.value.getDateTimeFormat(Ke):{}}function gt(Ke,vt){s.value&&(s.value.setDateTimeFormat(Ke,vt),w.value[Ke]=vt)}function dn(Ke,vt){s.value&&s.value.mergeDateTimeFormat(Ke,vt)}function Ze(Ke){return s.value?s.value.getNumberFormat(Ke):{}}function at(Ke,vt){s.value&&(s.value.setNumberFormat(Ke,vt),_.value[Ke]=vt)}function Lt(Ke,vt){s.value&&s.value.mergeNumberFormat(Ke,vt)}const Ne={get id(){return s.value?s.value.id:-1},locale:B,fallbackLocale:q,messages:D,datetimeFormats:F,numberFormats:re,get inheritLocale(){return s.value?s.value.inheritLocale:c},set inheritLocale(Ke){s.value&&(s.value.inheritLocale=Ke)},get availableLocales(){return s.value?s.value.availableLocales:Object.keys(x.value)},get modifiers(){return s.value?s.value.modifiers:V},get pluralRules(){return s.value?s.value.pluralRules:ne},get isGlobal(){return s.value?s.value.isGlobal:!1},get missingWarn(){return s.value?s.value.missingWarn:b},set missingWarn(Ke){s.value&&(s.value.missingWarn=Ke)},get fallbackWarn(){return s.value?s.value.fallbackWarn:E},set fallbackWarn(Ke){s.value&&(s.value.missingWarn=Ke)},get fallbackRoot(){return s.value?s.value.fallbackRoot:I},set fallbackRoot(Ke){s.value&&(s.value.fallbackRoot=Ke)},get fallbackFormat(){return s.value?s.value.fallbackFormat:O},set fallbackFormat(Ke){s.value&&(s.value.fallbackFormat=Ke)},get warnHtmlMessage(){return s.value?s.value.warnHtmlMessage:z},set warnHtmlMessage(Ke){s.value&&(s.value.warnHtmlMessage=Ke)},get escapeParameter(){return s.value?s.value.escapeParameter:G},set escapeParameter(Ke){s.value&&(s.value.escapeParameter=Ke)},t:ke,getPostTranslationHandler:le,setPostTranslationHandler:fe,getMissingHandler:me,setMissingHandler:ye,rt:Le,d:et,n:it,tm:Ue,te:ht,getLocaleMessage:De,setLocaleMessage:Be,mergeLocaleMessage:Ve,getDateTimeFormat:He,setDateTimeFormat:gt,mergeDateTimeFormat:dn,getNumberFormat:Ze,setNumberFormat:at,mergeNumberFormat:Lt};function ze(Ke){Ke.locale.value=l.value,Ke.fallbackLocale.value=v.value,Object.keys(x.value).forEach(vt=>{Ke.mergeLocaleMessage(vt,x.value[vt])}),Object.keys(w.value).forEach(vt=>{Ke.mergeDateTimeFormat(vt,w.value[vt])}),Object.keys(_.value).forEach(vt=>{Ke.mergeNumberFormat(vt,_.value[vt])}),Ke.escapeParameter=G,Ke.fallbackFormat=O,Ke.fallbackRoot=I,Ke.fallbackWarn=E,Ke.missingWarn=b,Ke.warnHtmlMessage=z}return onBeforeMount(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw createI18nError(I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const Ke=s.value=t.proxy.$i18n.__composer;e==="global"?(l.value=Ke.locale.value,v.value=Ke.fallbackLocale.value,x.value=Ke.messages.value,w.value=Ke.datetimeFormats.value,_.value=Ke.numberFormats.value):o&&ze(Ke)}),Ne}const globalExportProps=["locale","fallbackLocale","availableLocales"],globalExportMethods=["t","rt","d","n","tm","te"];function injectGlobalFields(t,e){const r=Object.create(null);return globalExportProps.forEach(o=>{const s=Object.getOwnPropertyDescriptor(e,o);if(!s)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const c=isRef(s.value)?{get(){return s.value.value},set(l){s.value.value=l}}:{get(){return s.get&&s.get()}};Object.defineProperty(r,o,c)}),t.config.globalProperties.$i18n=r,globalExportMethods.forEach(o=>{const s=Object.getOwnPropertyDescriptor(e,o);if(!s||!s.value)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${o}`,s)}),()=>{delete t.config.globalProperties.$i18n,globalExportMethods.forEach(o=>{delete t.config.globalProperties[`$${o}`]})}}initFeatureFlags();__INTLIFY_JIT_COMPILATION__?registerMessageCompiler(compile):registerMessageCompiler(compileToFunction);registerMessageResolver(resolveValue);registerLocaleFallbacker(fallbackWithLocaleChain);if(__INTLIFY_PROD_DEVTOOLS__){const t=getGlobalThis();t.__INTLIFY__=!0,setDevToolsHook(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const vueI18n=Object.freeze(Object.defineProperty({__proto__:null,DatetimeFormat,I18nD,I18nInjectionKey,I18nN,I18nT,NumberFormat,Translation,VERSION:VERSION$1,castToVueI18n,createI18n,useI18n,vTDirective},Symbol.toStringTag,{value:"Module"})),isAlt=useKeyModifier("Alt"),VAppBar$1="",VToolbar$1="",makeVToolbarTitleProps=propsFactory$1(Pt(Pt({text:String},makeComponentProps()),makeTagProps()),"VToolbarTitle"),VToolbarTitle=genericComponent()({name:"VToolbarTitle",props:makeVToolbarTitleProps(),setup(t,e){let{slots:r}=e;return useRender(()=>{const n=!!(r.default||r.text||t.text);return createVNode(t.tag,{class:["v-toolbar-title",t.class],style:t.style},{default:()=>{var o;return[n&&createVNode("div",{class:"v-toolbar-title__placeholder"},[r.text?r.text():t.text,(o=r.default)==null?void 0:o.call(r)])]}})}),{}}}),allowedDensities=[null,"prominent","default","comfortable","compact"],makeVToolbarProps=propsFactory$1(Pt(Pt(Pt(Pt(Pt(Pt({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:t=>allowedDensities.includes(t)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String},makeBorderProps()),makeComponentProps()),makeElevationProps()),makeRoundedProps()),makeTagProps({tag:"header"})),makeThemeProps()),"VToolbar"),VToolbar=genericComponent()({name:"VToolbar",props:makeVToolbarProps(),setup(t,e){var E;let{slots:r}=e;const{backgroundColorClasses:n,backgroundColorStyles:o}=useBackgroundColor(toRef(t,"color")),{borderClasses:s}=useBorder(t),{elevationClasses:c}=useElevation(t),{roundedClasses:l}=useRounded(t),{themeClasses:v}=provideTheme(t),{rtlClasses:x}=useRtl(),w=shallowRef(!!(t.extended||((E=r.extension)==null?void 0:E.call(r)))),_=computed(()=>parseInt(Number(t.height)+(t.density==="prominent"?Number(t.height):0)-(t.density==="comfortable"?8:0)-(t.density==="compact"?16:0),10)),b=computed(()=>w.value?parseInt(Number(t.extensionHeight)+(t.density==="prominent"?Number(t.extensionHeight):0)-(t.density==="comfortable"?4:0)-(t.density==="compact"?8:0),10):0);return provideDefaults({VBtn:{variant:"text"}}),useRender(()=>{var A;const I=!!(t.title||r.title),O=!!(r.image||t.image),N=(A=r.extension)==null?void 0:A.call(r);return w.value=!!(t.extended||N),createVNode(t.tag,{class:["v-toolbar",{"v-toolbar--absolute":t.absolute,"v-toolbar--collapse":t.collapse,"v-toolbar--flat":t.flat,"v-toolbar--floating":t.floating,[`v-toolbar--density-${t.density}`]:!0},n.value,s.value,c.value,l.value,v.value,x.value,t.class],style:[o.value,t.style]},{default:()=>[O&&createVNode("div",{key:"image",class:"v-toolbar__image"},[r.image?createVNode(VDefaultsProvider,{key:"image-defaults",disabled:!t.image,defaults:{VImg:{cover:!0,src:t.image}}},r.image):createVNode(VImg,{key:"image-img",cover:!0,src:t.image},null)]),createVNode(VDefaultsProvider,{defaults:{VTabs:{height:convertToUnit(_.value)}}},{default:()=>{var z,G,V;return[createVNode("div",{class:"v-toolbar__content",style:{height:convertToUnit(_.value)}},[r.prepend&&createVNode("div",{class:"v-toolbar__prepend"},[(z=r.prepend)==null?void 0:z.call(r)]),I&&createVNode(VToolbarTitle,{key:"title",text:t.title},{text:r.title}),(G=r.default)==null?void 0:G.call(r),r.append&&createVNode("div",{class:"v-toolbar__append"},[(V=r.append)==null?void 0:V.call(r)])])]}}),createVNode(VDefaultsProvider,{defaults:{VTabs:{height:convertToUnit(b.value)}}},{default:()=>[createVNode(VExpandTransition,null,{default:()=>[w.value&&createVNode("div",{class:"v-toolbar__extension",style:{height:convertToUnit(b.value)}},[N])]})]})]})}),{contentHeight:_,extensionHeight:b}}}),makeScrollProps=propsFactory$1({scrollTarget:{type:String},scrollThreshold:{type:[String,Number],default:300}},"scroll");function useScroll(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{canScroll:r}=e;let n=0;const o=ref(null),s=shallowRef(0),c=shallowRef(0),l=shallowRef(0),v=shallowRef(!1),x=shallowRef(!1),w=computed(()=>Number(t.scrollThreshold)),_=computed(()=>clamp((w.value-s.value)/w.value||0)),b=()=>{const E=o.value;!E||r&&!r.value||(n=s.value,s.value="window"in E?E.pageYOffset:E.scrollTop,x.value=s.value<n,l.value=Math.abs(s.value-w.value))};return watch(x,()=>{c.value=c.value||s.value}),watch(v,()=>{c.value=0}),onMounted(()=>{watch(()=>t.scrollTarget,E=>{var O;const I=E?document.querySelector(E):window;!I||I!==o.value&&((O=o.value)==null||O.removeEventListener("scroll",b),o.value=I,o.value.addEventListener("scroll",b,{passive:!0}))},{immediate:!0})}),onBeforeUnmount(()=>{var E;(E=o.value)==null||E.removeEventListener("scroll",b)}),r&&watch(r,b,{immediate:!0}),{scrollThreshold:w,currentScroll:s,currentThreshold:l,isScrollActive:v,scrollRatio:_,isScrollingUp:x,savedScroll:c}}const makeVAppBarProps=propsFactory$1(ei(Pt(Pt(Pt({scrollBehavior:String,modelValue:{type:Boolean,default:!0},location:{type:String,default:"top",validator:t=>["top","bottom"].includes(t)}},makeVToolbarProps()),makeLayoutItemProps()),makeScrollProps()),{height:{type:[Number,String],default:64}}),"VAppBar"),VAppBar=genericComponent()({name:"VAppBar",props:makeVAppBarProps(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:r}=e;const n=ref(),o=useProxiedModel(t,"modelValue"),s=computed(()=>{var z,G;const A=new Set((G=(z=t.scrollBehavior)==null?void 0:z.split(" "))!=null?G:[]);return{hide:A.has("hide"),inverted:A.has("inverted"),collapse:A.has("collapse"),elevate:A.has("elevate"),fadeImage:A.has("fade-image")}}),c=computed(()=>{const A=s.value;return A.hide||A.inverted||A.collapse||A.elevate||A.fadeImage||!o.value}),{currentScroll:l,scrollThreshold:v,isScrollingUp:x,scrollRatio:w}=useScroll(t,{canScroll:c}),_=computed(()=>t.collapse||s.value.collapse&&(s.value.inverted?w.value>0:w.value===0)),b=computed(()=>t.flat||s.value.elevate&&(s.value.inverted?l.value>0:l.value===0)),E=computed(()=>s.value.fadeImage?s.value.inverted?1-w.value:w.value:void 0),I=computed(()=>{var G,V,ne,W;if(s.value.hide&&s.value.inverted)return 0;const A=(V=(G=n.value)==null?void 0:G.contentHeight)!=null?V:0,z=(W=(ne=n.value)==null?void 0:ne.extensionHeight)!=null?W:0;return A+z});useToggleScope(computed(()=>!!t.scrollBehavior),()=>{watchEffect(()=>{s.value.hide?s.value.inverted?o.value=l.value>v.value:o.value=x.value||l.value<v.value:o.value=!0})});const{ssrBootStyles:O}=useSsrBoot(),{layoutItemStyles:N}=useLayoutItem({id:t.name,order:computed(()=>parseInt(t.order,10)),position:toRef(t,"location"),layoutSize:I,elementSize:shallowRef(void 0),active:o,absolute:toRef(t,"absolute")});return useRender(()=>{const A=VToolbar.filterProps(t);return createVNode(VToolbar,mergeProps({ref:n,class:["v-app-bar",{"v-app-bar--bottom":t.location==="bottom"},t.class],style:[Pt(ei(Pt({},N.value),{"--v-toolbar-image-opacity":E.value,height:void 0}),O.value),t.style]},A,{collapse:_.value,flat:b.value}),r)}),{}}}),VAlert$1="",VAlertTitle=createSimpleFunctional("v-alert-title"),allowedTypes=["success","info","warning","error"],makeVAlertProps=propsFactory$1(Pt(Pt(Pt(Pt(Pt(Pt(Pt(Pt(Pt(Pt({border:{type:[Boolean,String],validator:t=>typeof t=="boolean"||["top","end","bottom","start"].includes(t)},borderColor:String,closable:Boolean,closeIcon:{type:IconValue$1,default:"$close"},closeLabel:{type:String,default:"$vuetify.close"},icon:{type:[Boolean,String,Function,Object],default:null},modelValue:{type:Boolean,default:!0},prominent:Boolean,title:String,text:String,type:{type:String,validator:t=>allowedTypes.includes(t)}},makeComponentProps()),makeDensityProps()),makeDimensionProps()),makeElevationProps()),makeLocationProps()),makePositionProps()),makeRoundedProps()),makeTagProps()),makeThemeProps()),makeVariantProps({variant:"flat"})),"VAlert"),VAlert=genericComponent()({name:"VAlert",props:makeVAlertProps(),emits:{"click:close":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{emit:r,slots:n}=e;const o=useProxiedModel(t,"modelValue"),s=computed(()=>{var ne;if(t.icon!==!1)return t.type?(ne=t.icon)!=null?ne:`$${t.type}`:t.icon}),c=computed(()=>{var ne;return{color:(ne=t.color)!=null?ne:t.type,variant:t.variant}}),{themeClasses:l}=provideTheme(t),{colorClasses:v,colorStyles:x,variantClasses:w}=useVariant(c),{densityClasses:_}=useDensity(t),{dimensionStyles:b}=useDimension(t),{elevationClasses:E}=useElevation(t),{locationStyles:I}=useLocation(t),{positionClasses:O}=usePosition(t),{roundedClasses:N}=useRounded(t),{textColorClasses:A,textColorStyles:z}=useTextColor(toRef(t,"borderColor")),{t:G}=useLocale(),V=computed(()=>({"aria-label":G(t.closeLabel),onClick(ne){o.value=!1,r("click:close",ne)}}));return()=>{const ne=!!(n.prepend||s.value),W=!!(n.title||t.title),B=!!(n.close||t.closable);return o.value&&createVNode(t.tag,{class:["v-alert",t.border&&{"v-alert--border":!!t.border,[`v-alert--border-${t.border===!0?"start":t.border}`]:!0},{"v-alert--prominent":t.prominent},l.value,v.value,_.value,E.value,O.value,N.value,w.value,t.class],style:[x.value,b.value,I.value,t.style],role:"alert"},{default:()=>{var q,D,F;return[genOverlays(!1,"v-alert"),t.border&&createVNode("div",{key:"border",class:["v-alert__border",A.value],style:z.value},null),ne&&createVNode("div",{key:"prepend",class:"v-alert__prepend"},[n.prepend?createVNode(VDefaultsProvider,{key:"prepend-defaults",disabled:!s.value,defaults:{VIcon:{density:t.density,icon:s.value,size:t.prominent?44:28}}},n.prepend):createVNode(VIcon,{key:"prepend-icon",density:t.density,icon:s.value,size:t.prominent?44:28},null)]),createVNode("div",{class:"v-alert__content"},[W&&createVNode(VAlertTitle,{key:"title"},{default:()=>{var re,le;return[(le=(re=n.title)==null?void 0:re.call(n))!=null?le:t.title]}}),(D=(q=n.text)==null?void 0:q.call(n))!=null?D:t.text,(F=n.default)==null?void 0:F.call(n)]),n.append&&createVNode("div",{key:"append",class:"v-alert__append"},[n.append()]),B&&createVNode("div",{key:"close",class:"v-alert__close"},[n.close?createVNode(VDefaultsProvider,{key:"close-defaults",defaults:{VBtn:{icon:t.closeIcon,size:"x-small",variant:"text"}}},{default:()=>{var re;return[(re=n.close)==null?void 0:re.call(n,{props:V.value})]}}):createVNode(VBtn,mergeProps({key:"close-btn",icon:t.closeIcon,size:"x-small",variant:"text"},V.value),null)])]}})}}}),defaultFilter=(t,e,r)=>t==null||e==null?-1:t.toString().toLocaleLowerCase().indexOf(e.toString().toLocaleLowerCase()),makeFilterProps=propsFactory$1({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function filterItems(t,e,r){var l,v,x;const n=[],o=(l=r==null?void 0:r.default)!=null?l:defaultFilter,s=r!=null&&r.filterKeys?wrapInArray(r.filterKeys):!1,c=Object.keys((v=r==null?void 0:r.customKeyFilter)!=null?v:{}).length;if(!(t!=null&&t.length))return n;e:for(let w=0;w<t.length;w++){const[_,b=_]=wrapInArray(t[w]),E={},I={};let O=-1;if(e&&!(r!=null&&r.noFilter)){if(typeof _=="object"){const z=s||Object.keys(b);for(const G of z){const V=getPropertyFromItem(b,G),ne=(x=r==null?void 0:r.customKeyFilter)==null?void 0:x[G];if(O=ne?ne(V,e,_):o(V,e,_),O!==-1&&O!==!1)ne?E[G]=O:I[G]=O;else if((r==null?void 0:r.filterMode)==="every")continue e}}else O=o(_,e,_),O!==-1&&O!==!1&&(I.title=O);const N=Object.keys(I).length,A=Object.keys(E).length;if(!N&&!A||(r==null?void 0:r.filterMode)==="union"&&A!==c&&!N||(r==null?void 0:r.filterMode)==="intersection"&&(A!==c||!N))continue}n.push({index:w,matches:Pt(Pt({},I),E)})}return n}function useFilter(t,e,r,n){const o=ref([]),s=ref(new Map),c=computed(()=>n!=null&&n.transform?unref(e).map(v=>[v,n.transform(v)]):unref(e));watchEffect(()=>{const v=typeof r=="function"?r():unref(r),x=typeof v!="string"&&typeof v!="number"?"":String(v),w=filterItems(c.value,x,{customKeyFilter:Pt(Pt({},t.customKeyFilter),unref(n==null?void 0:n.customKeyFilter)),default:t.customFilter,filterKeys:t.filterKeys,filterMode:t.filterMode,noFilter:t.noFilter}),_=unref(e),b=[],E=new Map;w.forEach(I=>{let{index:O,matches:N}=I;const A=_[O];b.push(A),E.set(A.value,N)}),o.value=b,s.value=E});function l(v){return s.value.get(v.value)}return{filteredItems:o,filteredMatches:s,getMatches:l}}const VCombobox$1="";function highlightResult(t,e,r){if(e==null)return t;if(Array.isArray(e))throw new Error("Multiple matches is not implemented");return typeof e=="number"&&~e?createVNode(Fragment,null,[createVNode("span",{class:"v-combobox__unmask"},[t.substr(0,e)]),createVNode("span",{class:"v-combobox__mask"},[t.substr(e,r)]),createVNode("span",{class:"v-combobox__unmask"},[t.substr(e+r)])]):t}const makeVComboboxProps=propsFactory$1(Pt(Pt(Pt(Pt({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:{type:Boolean,default:!0},delimiters:Array},makeFilterProps({filterKeys:["title"]})),makeSelectProps({hideNoData:!0,returnObject:!0})),omit(makeVTextFieldProps({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"])),makeTransitionProps({transition:!1})),"VCombobox"),VCombobox=genericComponent()({name:"VCombobox",props:makeVComboboxProps(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,"update:search":t=>!0,"update:menu":t=>!0},setup(t,e){var Lt,Ne;let{emit:r,slots:n}=e;const{t:o}=useLocale(),s=ref(),c=shallowRef(!1),l=shallowRef(!0),v=shallowRef(!1),x=ref(),w=ref(),_=useProxiedModel(t,"menu"),b=computed({get:()=>_.value,set:ze=>{var Ke;_.value&&!ze&&((Ke=x.value)==null?void 0:Ke.\u03A8openChildren)||(_.value=ze)}}),E=shallowRef(-1);let I=!1;const O=computed(()=>{var ze;return(ze=s.value)==null?void 0:ze.color}),N=computed(()=>b.value?t.closeText:t.openText),{items:A,transformIn:z,transformOut:G}=useItems(t),{textColorClasses:V,textColorStyles:ne}=useTextColor(O),W=useProxiedModel(t,"modelValue",[],ze=>z(wrapInArray(ze)),ze=>{var vt;const Ke=G(ze);return t.multiple?Ke:(vt=Ke[0])!=null?vt:null}),B=useForm(),q=computed(()=>!!(t.chips||n.chip)),D=computed(()=>q.value||!!n.selection),F=shallowRef(!t.multiple&&!D.value&&(Ne=(Lt=W.value[0])==null?void 0:Lt.title)!=null?Ne:""),re=computed({get:()=>F.value,set:ze=>{var Ke;if(F.value=ze!=null?ze:"",!t.multiple&&!D.value&&(W.value=[transformItem$1(t,ze)]),ze&&t.multiple&&((Ke=t.delimiters)==null?void 0:Ke.length)){const vt=ze.split(new RegExp(`(?:${t.delimiters.join("|")})+`));vt.length>1&&(vt.forEach(Ft=>{Ft=Ft.trim(),Ft&&gt(transformItem$1(t,Ft))}),F.value="")}ze||(E.value=-1),l.value=!ze}}),le=computed(()=>typeof t.counterValue=="function"?t.counterValue(W.value):typeof t.counterValue=="number"?t.counterValue:t.multiple?W.value.length:re.value.length);watch(F,ze=>{I?nextTick(()=>I=!1):c.value&&!b.value&&(b.value=!0),r("update:search",ze)}),watch(W,ze=>{var Ke,vt;!t.multiple&&!D.value&&(F.value=(vt=(Ke=ze[0])==null?void 0:Ke.title)!=null?vt:"")});const{filteredItems:fe,getMatches:me}=useFilter(t,A,()=>l.value?"":re.value),ye=computed(()=>t.hideSelected?fe.value.filter(ze=>!W.value.some(Ke=>Ke.value===ze.value)):fe.value),Te=computed(()=>W.value.map(ze=>ze.value)),ke=computed(()=>{var Ke;return(t.autoSelectFirst===!0||t.autoSelectFirst==="exact"&&re.value===((Ke=ye.value[0])==null?void 0:Ke.title))&&ye.value.length>0&&!l.value&&!v.value}),Le=computed(()=>t.hideNoData&&!ye.value.length||t.readonly||(B==null?void 0:B.isReadonly.value)),et=ref(),{onListScroll:it,onListKeydown:Ue}=useScrolling(et,s);function ht(ze){I=!0,t.openOnClear&&(b.value=!0)}function De(){Le.value||(b.value=!0)}function Be(ze){Le.value||(c.value&&(ze.preventDefault(),ze.stopPropagation()),b.value=!b.value)}function Ve(ze){var Ft;if(isComposingIgnoreKey(ze)||t.readonly||(B==null?void 0:B.isReadonly.value))return;const Ke=s.value.selectionStart,vt=W.value.length;if((E.value>-1||["Enter","ArrowDown","ArrowUp"].includes(ze.key))&&ze.preventDefault(),["Enter","ArrowDown"].includes(ze.key)&&(b.value=!0),["Escape"].includes(ze.key)&&(b.value=!1),["Enter","Escape","Tab"].includes(ze.key)&&(ke.value&&["Enter","Tab"].includes(ze.key)&&gt(fe.value[0]),l.value=!0),ze.key==="ArrowDown"&&ke.value&&((Ft=et.value)==null||Ft.focus("next")),ze.key==="Enter"&&re.value&&(gt(transformItem$1(t,re.value)),D.value&&(re.value="")),!!t.multiple){if(["Backspace","Delete"].includes(ze.key)){if(E.value<0){ze.key==="Backspace"&&!re.value&&(E.value=vt-1);return}const Ot=E.value,_t=W.value[E.value];_t&&!_t.props.disabled&&gt(_t,!1),E.value=Ot>=vt-1?vt-2:Ot}if(ze.key==="ArrowLeft"){if(E.value<0&&Ke>0)return;const Ot=E.value>-1?E.value-1:vt-1;W.value[Ot]?E.value=Ot:(E.value=-1,s.value.setSelectionRange(re.value.length,re.value.length))}if(ze.key==="ArrowRight"){if(E.value<0)return;const Ot=E.value+1;W.value[Ot]?E.value=Ot:(E.value=-1,s.value.setSelectionRange(0,0))}}}function He(){var ze;c.value&&(l.value=!0,(ze=s.value)==null||ze.focus())}function gt(ze){let Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!ze.props.disabled)if(t.multiple){const vt=W.value.findIndex(Ot=>t.valueComparator(Ot.value,ze.value)),Ft=Ke==null?!~vt:Ke;if(~vt){const Ot=Ft?[...W.value,ze]:[...W.value];Ot.splice(vt,1),W.value=Ot}else Ft&&(W.value=[...W.value,ze]);t.clearOnSelect&&(re.value="")}else{const vt=Ke!==!1;W.value=vt?[ze]:[],F.value=vt&&!D.value?ze.title:"",nextTick(()=>{b.value=!1,l.value=!0})}}function dn(ze){c.value=!0,setTimeout(()=>{v.value=!0})}function Ze(ze){v.value=!1}function at(ze){(ze==null||ze===""&&!t.multiple)&&(W.value=[])}return watch(c,(ze,Ke)=>{ze||ze===Ke||(E.value=-1,b.value=!1,ke.value&&!v.value&&!W.value.some(vt=>{let{value:Ft}=vt;return Ft===ye.value[0].value})?gt(ye.value[0]):re.value&&gt(transformItem$1(t,re.value)))}),watch(b,()=>{if(!t.hideSelected&&b.value&&W.value.length){const ze=ye.value.findIndex(Ke=>W.value.some(vt=>t.valueComparator(vt.value,Ke.value)));IN_BROWSER&&window.requestAnimationFrame(()=>{var Ke;ze>=0&&((Ke=w.value)==null||Ke.scrollToIndex(ze))})}}),watch(()=>t.items,ze=>{!c.value||!ze.length||b.value||(b.value=!0)}),useRender(()=>{const ze=!!(!t.hideNoData||ye.value.length||n["prepend-item"]||n["append-item"]||n["no-data"]),Ke=W.value.length>0,vt=VTextField.filterProps(t);return createVNode(VTextField,mergeProps({ref:s},vt,{modelValue:re.value,"onUpdate:modelValue":[Ft=>re.value=Ft,at],focused:c.value,"onUpdate:focused":Ft=>c.value=Ft,validationValue:W.externalValue,counterValue:le.value,dirty:Ke,class:["v-combobox",{"v-combobox--active-menu":b.value,"v-combobox--chips":!!t.chips,"v-combobox--selection-slot":!!D.value,"v-combobox--selecting-index":E.value>-1,[`v-combobox--${t.multiple?"multiple":"single"}`]:!0},t.class],style:t.style,readonly:t.readonly,placeholder:Ke?void 0:t.placeholder,"onClick:clear":ht,"onMousedown:control":De,onKeydown:Ve}),ei(Pt({},n),{default:()=>createVNode(Fragment,null,[createVNode(VMenu,mergeProps({ref:x,modelValue:b.value,"onUpdate:modelValue":Ft=>b.value=Ft,activator:"parent",contentClass:"v-combobox__content",disabled:Le.value,eager:t.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:t.transition,onAfterLeave:He},t.menuProps),{default:()=>{var Ft;return[ze&&createVNode(VList,mergeProps({ref:et,selected:Te.value,selectStrategy:t.multiple?"independent":"single-independent",onMousedown:Ot=>Ot.preventDefault(),onKeydown:Ue,onFocusin:dn,onFocusout:Ze,onScrollPassive:it,tabindex:"-1","aria-live":"polite",color:(Ft=t.itemColor)!=null?Ft:t.color},t.listProps),{default:()=>{var Ot,_t,Tn,on;return[(Ot=n["prepend-item"])==null?void 0:Ot.call(n),!ye.value.length&&!t.hideNoData&&((Tn=(_t=n["no-data"])==null?void 0:_t.call(n))!=null?Tn:createVNode(VListItem,{title:o(t.noDataText)},null)),createVNode(VVirtualScroll,{ref:w,renderless:!0,items:ye.value},{default:$n=>{var Yn,pt;let{item:Zt,index:Et,itemRef:rn}=$n;const wt=mergeProps(Zt.props,{ref:rn,key:Et,active:ke.value&&Et===0?!0:void 0,onClick:()=>gt(Zt,null)});return(pt=(Yn=n.item)==null?void 0:Yn.call(n,{item:Zt,index:Et,props:wt}))!=null?pt:createVNode(VListItem,mergeProps(wt,{role:"option"}),{prepend:Fe=>{let{isSelected:Ie}=Fe;return createVNode(Fragment,null,[t.multiple&&!t.hideSelected?createVNode(VCheckboxBtn,{key:Zt.value,modelValue:Ie,ripple:!1,tabindex:"-1"},null):void 0,Zt.props.prependAvatar&&createVNode(VAvatar,{image:Zt.props.prependAvatar},null),Zt.props.prependIcon&&createVNode(VIcon,{icon:Zt.props.prependIcon},null)])},title:()=>{var Fe,Ie,ct;return l.value?Zt.title:highlightResult(Zt.title,(Fe=me(Zt))==null?void 0:Fe.title,(ct=(Ie=re.value)==null?void 0:Ie.length)!=null?ct:0)}})}}),(on=n["append-item"])==null?void 0:on.call(n)]}})]}}),W.value.map((Ft,Ot)=>{function _t(Zt){Zt.stopPropagation(),Zt.preventDefault(),gt(Ft,!1)}const Tn={"onClick:close":_t,onMousedown(Zt){Zt.preventDefault(),Zt.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},on=q.value?!!n.chip:!!n.selection,$n=on?ensureValidVNode(q.value?n.chip({item:Ft,index:Ot,props:Tn}):n.selection({item:Ft,index:Ot})):void 0;if(!(on&&!$n))return createVNode("div",{key:Ft.value,class:["v-combobox__selection",Ot===E.value&&["v-combobox__selection--selected",V.value]],style:Ot===E.value?ne.value:{}},[q.value?n.chip?createVNode(VDefaultsProvider,{key:"chip-defaults",defaults:{VChip:{closable:t.closableChips,size:"small",text:Ft.title}}},{default:()=>[$n]}):createVNode(VChip,mergeProps({key:"chip",closable:t.closableChips,size:"small",text:Ft.title,disabled:Ft.props.disabled},Tn),null):$n!=null?$n:createVNode("span",{class:"v-combobox__selection-text"},[Ft.title,t.multiple&&Ot<W.value.length-1&&createVNode("span",{class:"v-combobox__selection-comma"},[createTextVNode(",")])])])})]),"append-inner":function(){var Tn;for(var Ft=arguments.length,Ot=new Array(Ft),_t=0;_t<Ft;_t++)Ot[_t]=arguments[_t];return createVNode(Fragment,null,[(Tn=n["append-inner"])==null?void 0:Tn.call(n,...Ot),(!t.hideNoData||t.items.length)&&t.menuIcon?createVNode(VIcon,{class:"v-combobox__menu-icon",icon:t.menuIcon,onMousedown:Be,onClick:noop$2,"aria-label":o(N.value),title:o(N.value)},null):void 0])}}))}),forwardRefs({isFocused:c,isPristine:l,menu:b,search:re,selectionIndex:E,filteredItems:fe,select:gt},s)}}),VGrid="",breakpointProps=(()=>breakpoints.reduce((t,e)=>(t[e]={type:[Boolean,String,Number],default:!1},t),{}))(),offsetProps=(()=>breakpoints.reduce((t,e)=>{const r="offset"+capitalize$1(e);return t[r]={type:[String,Number],default:null},t},{}))(),orderProps=(()=>breakpoints.reduce((t,e)=>{const r="order"+capitalize$1(e);return t[r]={type:[String,Number],default:null},t},{}))(),propMap$1={col:Object.keys(breakpointProps),offset:Object.keys(offsetProps),order:Object.keys(orderProps)};function breakpointClass$1(t,e,r){let n=t;if(!(r==null||r===!1)){if(e){const o=e.replace(t,"");n+=`-${o}`}return t==="col"&&(n="v-"+n),t==="col"&&(r===""||r===!0)||(n+=`-${r}`),n.toLowerCase()}}const ALIGN_SELF_VALUES=["auto","start","end","center","baseline","stretch"],makeVColProps=propsFactory$1(Pt(Pt(ei(Pt(ei(Pt(ei(Pt({cols:{type:[Boolean,String,Number],default:!1}},breakpointProps),{offset:{type:[String,Number],default:null}}),offsetProps),{order:{type:[String,Number],default:null}}),orderProps),{alignSelf:{type:String,default:null,validator:t=>ALIGN_SELF_VALUES.includes(t)}}),makeComponentProps()),makeTagProps()),"VCol"),VCol=genericComponent()({name:"VCol",props:makeVColProps(),setup(t,e){let{slots:r}=e;const n=computed(()=>{const o=[];let s;for(s in propMap$1)propMap$1[s].forEach(l=>{const v=t[l],x=breakpointClass$1(s,l,v);x&&o.push(x)});const c=o.some(l=>l.startsWith("v-col-"));return o.push({"v-col":!c||!t.cols,[`v-col-${t.cols}`]:t.cols,[`offset-${t.offset}`]:t.offset,[`order-${t.order}`]:t.order,[`align-self-${t.alignSelf}`]:t.alignSelf}),o});return()=>{var o;return h(t.tag,{class:[n.value,t.class],style:t.style},(o=r.default)==null?void 0:o.call(r))}}}),ALIGNMENT=["start","end","center"],SPACE=["space-between","space-around","space-evenly"];function makeRowProps(t,e){return breakpoints.reduce((r,n)=>{const o=t+capitalize$1(n);return r[o]=e(),r},{})}const ALIGN_VALUES=[...ALIGNMENT,"baseline","stretch"],alignValidator=t=>ALIGN_VALUES.includes(t),alignProps=makeRowProps("align",()=>({type:String,default:null,validator:alignValidator})),JUSTIFY_VALUES=[...ALIGNMENT,...SPACE],justifyValidator=t=>JUSTIFY_VALUES.includes(t),justifyProps=makeRowProps("justify",()=>({type:String,default:null,validator:justifyValidator})),ALIGN_CONTENT_VALUES=[...ALIGNMENT,...SPACE,"stretch"],alignContentValidator=t=>ALIGN_CONTENT_VALUES.includes(t),alignContentProps=makeRowProps("alignContent",()=>({type:String,default:null,validator:alignContentValidator})),propMap={align:Object.keys(alignProps),justify:Object.keys(justifyProps),alignContent:Object.keys(alignContentProps)},classMap={align:"align",justify:"justify",alignContent:"align-content"};function breakpointClass(t,e,r){let n=classMap[t];if(r!=null){if(e){const o=e.replace(t,"");n+=`-${o}`}return n+=`-${r}`,n.toLowerCase()}}const makeVRowProps=propsFactory$1(Pt(Pt(Pt(ei(Pt(ei(Pt({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:alignValidator}},alignProps),{justify:{type:String,default:null,validator:justifyValidator}}),justifyProps),{alignContent:{type:String,default:null,validator:alignContentValidator}}),alignContentProps),makeComponentProps()),makeTagProps()),"VRow"),VRow=genericComponent()({name:"VRow",props:makeVRowProps(),setup(t,e){let{slots:r}=e;const n=computed(()=>{const o=[];let s;for(s in propMap)propMap[s].forEach(c=>{const l=t[c],v=breakpointClass(s,c,l);v&&o.push(v)});return o.push({"v-row--no-gutters":t.noGutters,"v-row--dense":t.dense,[`align-${t.align}`]:t.align,[`justify-${t.justify}`]:t.justify,[`align-content-${t.alignContent}`]:t.alignContent}),o});return()=>{var o;return h(t.tag,{class:["v-row",n.value,t.class],style:t.style},(o=r.default)==null?void 0:o.call(r))}}}),VExpansionPanel$1="",VExpansionPanelSymbol=Symbol.for("vuetify:v-expansion-panel"),allowedVariants=["default","accordion","inset","popout"],makeVExpansionPanelsProps=propsFactory$1(Pt(Pt(Pt(Pt({color:String,flat:Boolean,focusable:Boolean,static:Boolean,tile:Boolean,variant:{type:String,default:"default",validator:t=>allowedVariants.includes(t)},readonly:Boolean},makeComponentProps()),makeGroupProps()),makeTagProps()),makeThemeProps()),"VExpansionPanels"),VExpansionPanels=genericComponent()({name:"VExpansionPanels",props:makeVExpansionPanelsProps(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:r}=e;useGroup(t,VExpansionPanelSymbol);const{themeClasses:n}=provideTheme(t),o=computed(()=>t.variant&&`v-expansion-panels--variant-${t.variant}`);return provideDefaults({VExpansionPanel:{color:toRef(t,"color"),readonly:toRef(t,"readonly")},VExpansionPanelTitle:{focusable:toRef(t,"focusable"),static:toRef(t,"static")}}),useRender(()=>createVNode(t.tag,{class:["v-expansion-panels",{"v-expansion-panels--flat":t.flat,"v-expansion-panels--tile":t.tile},n.value,o.value,t.class],style:t.style},r)),{}}}),makeVExpansionPanelTextProps=propsFactory$1(Pt(Pt({},makeComponentProps()),makeLazyProps()),"VExpansionPanelText"),VExpansionPanelText=genericComponent()({name:"VExpansionPanelText",props:makeVExpansionPanelTextProps(),setup(t,e){let{slots:r}=e;const n=inject$1(VExpansionPanelSymbol);if(!n)throw new Error("[Vuetify] v-expansion-panel-text needs to be placed inside v-expansion-panel");const{hasContent:o,onAfterLeave:s}=useLazy(t,n.isSelected);return useRender(()=>createVNode(VExpandTransition,{onAfterLeave:s},{default:()=>{var c;return[withDirectives(createVNode("div",{class:["v-expansion-panel-text",t.class],style:t.style},[r.default&&o.value&&createVNode("div",{class:"v-expansion-panel-text__wrapper"},[(c=r.default)==null?void 0:c.call(r)])]),[[vShow,n.isSelected.value]])]}})),{}}}),makeVExpansionPanelTitleProps=propsFactory$1(Pt({color:String,expandIcon:{type:IconValue$1,default:"$expand"},collapseIcon:{type:IconValue$1,default:"$collapse"},hideActions:Boolean,focusable:Boolean,static:Boolean,ripple:{type:[Boolean,Object],default:!1},readonly:Boolean},makeComponentProps()),"VExpansionPanelTitle"),VExpansionPanelTitle=genericComponent()({name:"VExpansionPanelTitle",directives:{Ripple},props:makeVExpansionPanelTitleProps(),setup(t,e){let{slots:r}=e;const n=inject$1(VExpansionPanelSymbol);if(!n)throw new Error("[Vuetify] v-expansion-panel-title needs to be placed inside v-expansion-panel");const{backgroundColorClasses:o,backgroundColorStyles:s}=useBackgroundColor(t,"color"),c=computed(()=>({collapseIcon:t.collapseIcon,disabled:n.disabled.value,expanded:n.isSelected.value,expandIcon:t.expandIcon,readonly:t.readonly}));return useRender(()=>{var l;return withDirectives(createVNode("button",{class:["v-expansion-panel-title",{"v-expansion-panel-title--active":n.isSelected.value,"v-expansion-panel-title--focusable":t.focusable,"v-expansion-panel-title--static":t.static},o.value,t.class],style:[s.value,t.style],type:"button",tabindex:n.disabled.value?-1:void 0,disabled:n.disabled.value,"aria-expanded":n.isSelected.value,onClick:t.readonly?void 0:n.toggle},[createVNode("span",{class:"v-expansion-panel-title__overlay"},null),(l=r.default)==null?void 0:l.call(r,c.value),!t.hideActions&&createVNode("span",{class:"v-expansion-panel-title__icon"},[r.actions?r.actions(c.value):createVNode(VIcon,{icon:n.isSelected.value?t.collapseIcon:t.expandIcon},null)])]),[[resolveDirective("ripple"),t.ripple]])}),{}}}),makeVExpansionPanelProps=propsFactory$1(Pt(Pt(Pt(Pt(Pt(Pt(Pt({title:String,text:String,bgColor:String},makeComponentProps()),makeElevationProps()),makeGroupItemProps()),makeLazyProps()),makeRoundedProps()),makeTagProps()),makeVExpansionPanelTitleProps()),"VExpansionPanel"),VExpansionPanel=genericComponent()({name:"VExpansionPanel",props:makeVExpansionPanelProps(),emits:{"group:selected":t=>!0},setup(t,e){let{slots:r}=e;const n=useGroupItem(t,VExpansionPanelSymbol),{backgroundColorClasses:o,backgroundColorStyles:s}=useBackgroundColor(t,"bgColor"),{elevationClasses:c}=useElevation(t),{roundedClasses:l}=useRounded(t),v=computed(()=>(n==null?void 0:n.disabled.value)||t.disabled),x=computed(()=>n.group.items.value.reduce((b,E,I)=>(n.group.selected.value.includes(E.id)&&b.push(I),b),[])),w=computed(()=>{const b=n.group.items.value.findIndex(E=>E.id===n.id);return!n.isSelected.value&&x.value.some(E=>E-b===1)}),_=computed(()=>{const b=n.group.items.value.findIndex(E=>E.id===n.id);return!n.isSelected.value&&x.value.some(E=>E-b===-1)});return provide(VExpansionPanelSymbol,n),provideDefaults({VExpansionPanelText:{eager:toRef(t,"eager")},VExpansionPanelTitle:{readonly:toRef(t,"readonly")}}),useRender(()=>{const b=!!(r.text||t.text),E=!!(r.title||t.title);return createVNode(t.tag,{class:["v-expansion-panel",{"v-expansion-panel--active":n.isSelected.value,"v-expansion-panel--before-active":w.value,"v-expansion-panel--after-active":_.value,"v-expansion-panel--disabled":v.value},l.value,o.value,t.class],style:[s.value,t.style]},{default:()=>{var I;return[createVNode("div",{class:["v-expansion-panel__shadow",...c.value]},null),E&&createVNode(VExpansionPanelTitle,{key:"title",collapseIcon:t.collapseIcon,color:t.color,expandIcon:t.expandIcon,hideActions:t.hideActions,ripple:t.ripple},{default:()=>[r.title?r.title():t.title]}),b&&createVNode(VExpansionPanelText,{key:"text"},{default:()=>[r.text?r.text():t.text]}),(I=r.default)==null?void 0:I.call(r)]}})}),{}}}),VFooter$1="",makeVFooterProps=propsFactory$1(Pt(Pt(Pt(Pt(Pt(Pt(Pt({app:Boolean,color:String,height:{type:[Number,String],default:"auto"}},makeBorderProps()),makeComponentProps()),makeElevationProps()),makeLayoutItemProps()),makeRoundedProps()),makeTagProps({tag:"footer"})),makeThemeProps()),"VFooter"),VFooter=genericComponent()({name:"VFooter",props:makeVFooterProps(),setup(t,e){let{slots:r}=e;const{themeClasses:n}=provideTheme(t),{backgroundColorClasses:o,backgroundColorStyles:s}=useBackgroundColor(toRef(t,"color")),{borderClasses:c}=useBorder(t),{elevationClasses:l}=useElevation(t),{roundedClasses:v}=useRounded(t),x=shallowRef(32),{resizeRef:w}=useResizeObserver(E=>{!E.length||(x.value=E[0].target.clientHeight)}),_=computed(()=>t.height==="auto"?x.value:parseInt(t.height,10)),{layoutItemStyles:b}=useLayoutItem({id:t.name,order:computed(()=>parseInt(t.order,10)),position:computed(()=>"bottom"),layoutSize:_,elementSize:computed(()=>t.height==="auto"?void 0:_.value),active:computed(()=>t.app),absolute:toRef(t,"absolute")});return useRender(()=>createVNode(t.tag,{ref:w,class:["v-footer",n.value,o.value,c.value,l.value,v.value,t.class],style:[s.value,t.app?b.value:{height:convertToUnit(t.height)},t.style]},r)),{}}}),VInfiniteScroll$1="",makeVInfiniteScrollProps=propsFactory$1(Pt(Pt({color:String,direction:{type:String,default:"vertical",validator:t=>["vertical","horizontal"].includes(t)},side:{type:String,default:"end",validator:t=>["start","end","both"].includes(t)},mode:{type:String,default:"intersect",validator:t=>["intersect","manual"].includes(t)},margin:[Number,String],loadMoreText:{type:String,default:"$vuetify.infiniteScroll.loadMore"},emptyText:{type:String,default:"$vuetify.infiniteScroll.empty"}},makeDimensionProps()),makeTagProps()),"VInfiniteScroll"),VInfiniteScrollIntersect=defineComponent({name:"VInfiniteScrollIntersect",props:{side:{type:String,required:!0},rootRef:null,rootMargin:String},emits:{intersect:(t,e)=>!0},setup(t,e){let{emit:r}=e;const{intersectionRef:n,isIntersecting:o}=useIntersectionObserver(s=>{},t.rootMargin?{rootMargin:t.rootMargin}:void 0);return watch(o,s=>Gr(this,null,function*(){r("intersect",t.side,s)})),useRender(()=>createVNode("div",{class:"v-infinite-scroll-intersect",ref:n},[createTextVNode("\xA0")])),{}}}),VInfiniteScroll=genericComponent()({name:"VInfiniteScroll",props:makeVInfiniteScrollProps(),emits:{load:t=>!0},setup(t,e){let{slots:r,emit:n}=e;const o=ref(),s=shallowRef("ok"),c=shallowRef("ok"),l=computed(()=>convertToUnit(t.margin)),v=shallowRef(!1);function x(ne){if(!o.value)return;const W=t.direction==="vertical"?"scrollTop":"scrollLeft";o.value[W]=ne}function w(){if(!o.value)return 0;const ne=t.direction==="vertical"?"scrollTop":"scrollLeft";return o.value[ne]}function _(){if(!o.value)return 0;const ne=t.direction==="vertical"?"scrollHeight":"scrollWidth";return o.value[ne]}function b(){if(!o.value)return 0;const ne=t.direction==="vertical"?"clientHeight":"clientWidth";return o.value[ne]}onMounted(()=>{!o.value||(t.side==="start"?x(_()):t.side==="both"&&x(_()/2-b()/2))});function E(ne,W){ne==="start"?s.value=W:ne==="end"&&(c.value=W)}function I(ne){return ne==="start"?s.value:c.value}let O=0;function N(ne,W){v.value=W,v.value&&A(ne)}function A(ne){if(t.mode!=="manual"&&!v.value)return;const W=I(ne);if(!o.value||W==="loading")return;O=_(),E(ne,"loading");function B(q){E(ne,q),nextTick(()=>{q==="empty"||q==="error"||(q==="ok"&&ne==="start"&&x(_()-O+w()),t.mode!=="manual"&&nextTick(()=>{window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{A(ne)})})})}))})}n("load",{side:ne,done:B})}const{t:z}=useLocale();function G(ne,W){var D,F,re,le,fe,me,ye,Te,ke;if(t.side!==ne&&t.side!=="both")return;const B=()=>A(ne),q={side:ne,props:{onClick:B,color:t.color}};return W==="error"?(D=r.error)==null?void 0:D.call(r,q):W==="empty"?(re=(F=r.empty)==null?void 0:F.call(r,q))!=null?re:createVNode("div",null,[z(t.emptyText)]):t.mode==="manual"?W==="loading"?(fe=(le=r.loading)==null?void 0:le.call(r,q))!=null?fe:createVNode(VProgressCircular,{indeterminate:!0,color:t.color},null):(ye=(me=r["load-more"])==null?void 0:me.call(r,q))!=null?ye:createVNode(VBtn,{variant:"outlined",color:t.color,onClick:B},{default:()=>[z(t.loadMoreText)]}):(ke=(Te=r.loading)==null?void 0:Te.call(r,q))!=null?ke:createVNode(VProgressCircular,{indeterminate:!0,color:t.color},null)}const{dimensionStyles:V}=useDimension(t);useRender(()=>{const ne=t.tag,W=t.side==="start"||t.side==="both",B=t.side==="end"||t.side==="both",q=t.mode==="intersect";return createVNode(ne,{ref:o,class:["v-infinite-scroll",`v-infinite-scroll--${t.direction}`,{"v-infinite-scroll--start":W,"v-infinite-scroll--end":B}],style:V.value},{default:()=>{var D;return[createVNode("div",{class:"v-infinite-scroll__side"},[G("start",s.value)]),o.value&&W&&q&&createVNode(VInfiniteScrollIntersect,{key:"start",side:"start",onIntersect:N,rootRef:o.value,rootMargin:l.value},null),(D=r.default)==null?void 0:D.call(r),o.value&&B&&q&&createVNode(VInfiniteScrollIntersect,{key:"end",side:"end",onIntersect:N,rootRef:o.value,rootMargin:l.value},null),createVNode("div",{class:"v-infinite-scroll__side"},[G("end",c.value)])]}})})}}),VLayout$1="",makeVLayoutProps=propsFactory$1(Pt(Pt({},makeComponentProps()),makeLayoutProps()),"VLayout"),VLayout=genericComponent()({name:"VLayout",props:makeVLayoutProps(),setup(t,e){let{slots:r}=e;const{layoutClasses:n,layoutStyles:o,getLayoutItem:s,items:c,layoutRef:l}=createLayout(t);return useRender(()=>{var v;return createVNode("div",{ref:l,class:[n.value,t.class],style:[o.value,t.style]},[(v=r.default)==null?void 0:v.call(r)])}),{getLayoutItem:s,items:c}}}),VMain$1="",makeVMainProps=propsFactory$1(Pt(Pt({scrollable:Boolean},makeComponentProps()),makeTagProps({tag:"main"})),"VMain"),VMain=genericComponent()({name:"VMain",props:makeVMainProps(),setup(t,e){let{slots:r}=e;const{mainStyles:n}=useLayout(),{ssrBootStyles:o}=useSsrBoot();return useRender(()=>createVNode(t.tag,{class:["v-main",{"v-main--scrollable":t.scrollable},t.class],style:[n.value,o.value,t.style]},{default:()=>{var s,c;return[t.scrollable?createVNode("div",{class:"v-main__scroller"},[(s=r.default)==null?void 0:s.call(r)]):(c=r.default)==null?void 0:c.call(r)]}})),{}}}),VNavigationDrawer$1="";function useSticky(t){let{rootEl:e,isSticky:r,layoutItemStyles:n}=t;const o=shallowRef(!1),s=shallowRef(0),c=computed(()=>{const x=typeof o.value=="boolean"?"top":o.value;return[r.value?{top:"auto",bottom:"auto",height:void 0}:void 0,o.value?{[x]:convertToUnit(s.value)}:{top:n.value.top}]});onMounted(()=>{watch(r,x=>{x?window.addEventListener("scroll",v,{passive:!0}):window.removeEventListener("scroll",v)},{immediate:!0})}),onBeforeUnmount(()=>{window.removeEventListener("scroll",v)});let l=0;function v(){var O;const x=l>window.scrollY?"up":"down",w=e.value.getBoundingClientRect(),_=parseFloat((O=n.value.top)!=null?O:0),b=window.scrollY-Math.max(0,s.value-_),E=w.height+Math.max(s.value,_)-window.scrollY-window.innerHeight,I=parseFloat(getComputedStyle(e.value).getPropertyValue("--v-body-scroll-y"))||0;w.height<window.innerHeight-_?(o.value="top",s.value=_):x==="up"&&o.value==="bottom"||x==="down"&&o.value==="top"?(s.value=window.scrollY+w.top-I,o.value=!0):x==="down"&&E<=0?(s.value=0,o.value="bottom"):x==="up"&&b<=0&&(I?o.value!=="top"&&(s.value=-b+I+_,o.value="top"):(s.value=w.top+b,o.value="top")),l=window.scrollY}return{isStuck:o,stickyStyles:c}}const HORIZON=100,HISTORY=20;function kineticEnergyToVelocity(t){const e=1.41421356237;return(t<0?-1:1)*Math.sqrt(Math.abs(t))*e}function calculateImpulseVelocity(t){if(t.length<2)return 0;if(t.length===2)return t[1].t===t[0].t?0:(t[1].d-t[0].d)/(t[1].t-t[0].t);let e=0;for(let r=t.length-1;r>0;r--){if(t[r].t===t[r-1].t)continue;const n=kineticEnergyToVelocity(e),o=(t[r].d-t[r-1].d)/(t[r].t-t[r-1].t);e+=(o-n)*Math.abs(o),r===t.length-1&&(e*=.5)}return kineticEnergyToVelocity(e)*1e3}function useVelocity(){const t={};function e(o){Array.from(o.changedTouches).forEach(s=>{var l;((l=t[s.identifier])!=null?l:t[s.identifier]=new CircularBuffer(HISTORY)).push([o.timeStamp,s])})}function r(o){Array.from(o.changedTouches).forEach(s=>{delete t[s.identifier]})}function n(o){var x;const s=(x=t[o])==null?void 0:x.values().reverse();if(!s)throw new Error(`No samples for touch id ${o}`);const c=s[0],l=[],v=[];for(const w of s){if(c[0]-w[0]>HORIZON)break;l.push({t:w[0],d:w[1].clientX}),v.push({t:w[0],d:w[1].clientY})}return{x:calculateImpulseVelocity(l),y:calculateImpulseVelocity(v),get direction(){const{x:w,y:_}=this,[b,E]=[Math.abs(w),Math.abs(_)];return b>E&&w>=0?"right":b>E&&w<=0?"left":E>b&&_>=0?"down":E>b&&_<=0?"up":oops$1()}}}return{addMovement:e,endTouch:r,getVelocity:n}}function oops$1(){throw new Error}function useTouch(t){let{isActive:e,isTemporary:r,width:n,touchless:o,position:s}=t;onMounted(()=>{window.addEventListener("touchstart",A,{passive:!0}),window.addEventListener("touchmove",z,{passive:!1}),window.addEventListener("touchend",G,{passive:!0})}),onBeforeUnmount(()=>{window.removeEventListener("touchstart",A),window.removeEventListener("touchmove",z),window.removeEventListener("touchend",G)});const c=computed(()=>["left","right"].includes(s.value)),{addMovement:l,endTouch:v,getVelocity:x}=useVelocity();let w=!1;const _=shallowRef(!1),b=shallowRef(0),E=shallowRef(0);let I;function O(ne,W){return(s.value==="left"?ne:s.value==="right"?document.documentElement.clientWidth-ne:s.value==="top"?ne:s.value==="bottom"?document.documentElement.clientHeight-ne:oops())-(W?n.value:0)}function N(ne){let W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const B=s.value==="left"?(ne-E.value)/n.value:s.value==="right"?(document.documentElement.clientWidth-ne-E.value)/n.value:s.value==="top"?(ne-E.value)/n.value:s.value==="bottom"?(document.documentElement.clientHeight-ne-E.value)/n.value:oops();return W?Math.max(0,Math.min(1,B)):B}function A(ne){if(o.value)return;const W=ne.changedTouches[0].clientX,B=ne.changedTouches[0].clientY,q=25,D=s.value==="left"?W<q:s.value==="right"?W>document.documentElement.clientWidth-q:s.value==="top"?B<q:s.value==="bottom"?B>document.documentElement.clientHeight-q:oops(),F=e.value&&(s.value==="left"?W<n.value:s.value==="right"?W>document.documentElement.clientWidth-n.value:s.value==="top"?B<n.value:s.value==="bottom"?B>document.documentElement.clientHeight-n.value:oops());(D||F||e.value&&r.value)&&(w=!0,I=[W,B],E.value=O(c.value?W:B,e.value),b.value=N(c.value?W:B),v(ne),l(ne))}function z(ne){const W=ne.changedTouches[0].clientX,B=ne.changedTouches[0].clientY;if(w){if(!ne.cancelable){w=!1;return}const D=Math.abs(W-I[0]),F=Math.abs(B-I[1]);(c.value?D>F&&D>3:F>D&&F>3)?(_.value=!0,w=!1):(c.value?F:D)>3&&(w=!1)}if(!_.value)return;ne.preventDefault(),l(ne);const q=N(c.value?W:B,!1);b.value=Math.max(0,Math.min(1,q)),q>1?E.value=O(c.value?W:B,!0):q<0&&(E.value=O(c.value?W:B,!1))}function G(ne){if(w=!1,!_.value)return;l(ne),_.value=!1;const W=x(ne.changedTouches[0].identifier),B=Math.abs(W.x),q=Math.abs(W.y);(c.value?B>q&&B>400:q>B&&q>3)?e.value=W.direction===({left:"right",right:"left",top:"down",bottom:"up"}[s.value]||oops()):e.value=b.value>.5}const V=computed(()=>_.value?{transform:s.value==="left"?`translateX(calc(-100% + ${b.value*n.value}px))`:s.value==="right"?`translateX(calc(100% - ${b.value*n.value}px))`:s.value==="top"?`translateY(calc(-100% + ${b.value*n.value}px))`:s.value==="bottom"?`translateY(calc(100% - ${b.value*n.value}px))`:oops(),transition:"none"}:void 0);return{isDragging:_,dragProgress:b,dragStyles:V}}function oops(){throw new Error}const locations=["start","end","left","right","top","bottom"],makeVNavigationDrawerProps=propsFactory$1(Pt(Pt(Pt(Pt(Pt(Pt(Pt(Pt({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:t=>locations.includes(t)},sticky:Boolean},makeBorderProps()),makeComponentProps()),makeDisplayProps()),makeElevationProps()),makeLayoutItemProps()),makeRoundedProps()),makeTagProps({tag:"nav"})),makeThemeProps()),"VNavigationDrawer"),VNavigationDrawer=genericComponent()({name:"VNavigationDrawer",props:makeVNavigationDrawerProps(),emits:{"update:modelValue":t=>!0,"update:rail":t=>!0},setup(t,e){let{attrs:r,emit:n,slots:o}=e;const{isRtl:s}=useRtl(),{themeClasses:c}=provideTheme(t),{borderClasses:l}=useBorder(t),{backgroundColorClasses:v,backgroundColorStyles:x}=useBackgroundColor(toRef(t,"color")),{elevationClasses:w}=useElevation(t),{displayClasses:_,mobile:b}=useDisplay(t),{roundedClasses:E}=useRounded(t),I=useRouter(),O=useProxiedModel(t,"modelValue",null,it=>!!it),{ssrBootStyles:N}=useSsrBoot(),{scopeId:A}=useScopeId(),z=ref(),G=shallowRef(!1),V=computed(()=>t.rail&&t.expandOnHover&&G.value?Number(t.width):Number(t.rail?t.railWidth:t.width)),ne=computed(()=>toPhysical(t.location,s.value)),W=computed(()=>!t.permanent&&(b.value||t.temporary)),B=computed(()=>t.sticky&&!W.value&&ne.value!=="bottom");useToggleScope(()=>t.expandOnHover&&t.rail!=null,()=>{watch(G,it=>n("update:rail",!it))}),useToggleScope(()=>!t.disableResizeWatcher,()=>{watch(W,it=>!t.permanent&&nextTick(()=>O.value=!it))}),useToggleScope(()=>!t.disableRouteWatcher&&!!I,()=>{watch(I.currentRoute,()=>W.value&&(O.value=!1))}),watch(()=>t.permanent,it=>{it&&(O.value=!0)}),onBeforeMount(()=>{t.modelValue!=null||W.value||(O.value=t.permanent||!b.value)});const{isDragging:q,dragProgress:D,dragStyles:F}=useTouch({isActive:O,isTemporary:W,width:V,touchless:toRef(t,"touchless"),position:ne}),re=computed(()=>{const it=W.value?0:t.rail&&t.expandOnHover?Number(t.railWidth):V.value;return q.value?it*D.value:it}),{layoutItemStyles:le,layoutItemScrimStyles:fe}=useLayoutItem({id:t.name,order:computed(()=>parseInt(t.order,10)),position:ne,layoutSize:re,elementSize:V,active:computed(()=>O.value||q.value),disableTransitions:computed(()=>q.value),absolute:computed(()=>t.absolute||B.value&&typeof me.value!="string")}),{isStuck:me,stickyStyles:ye}=useSticky({rootEl:z,isSticky:B,layoutItemStyles:le}),Te=useBackgroundColor(computed(()=>typeof t.scrim=="string"?t.scrim:null)),ke=computed(()=>Pt(Pt({},q.value?{opacity:D.value*.2,transition:"none"}:void 0),fe.value));provideDefaults({VList:{bgColor:"transparent"}});function Le(){G.value=!0}function et(){G.value=!1}return useRender(()=>{const it=o.image||t.image;return createVNode(Fragment,null,[createVNode(t.tag,mergeProps({ref:z,onMouseenter:Le,onMouseleave:et,class:["v-navigation-drawer",`v-navigation-drawer--${ne.value}`,{"v-navigation-drawer--expand-on-hover":t.expandOnHover,"v-navigation-drawer--floating":t.floating,"v-navigation-drawer--is-hovering":G.value,"v-navigation-drawer--rail":t.rail,"v-navigation-drawer--temporary":W.value,"v-navigation-drawer--active":O.value,"v-navigation-drawer--sticky":B.value},c.value,v.value,l.value,_.value,w.value,E.value,t.class],style:[x.value,le.value,F.value,N.value,ye.value,t.style]},A,r),{default:()=>{var Ue,ht,De,Be;return[it&&createVNode("div",{key:"image",class:"v-navigation-drawer__img"},[o.image?(Ue=o.image)==null?void 0:Ue.call(o,{image:t.image}):createVNode("img",{src:t.image,alt:""},null)]),o.prepend&&createVNode("div",{class:"v-navigation-drawer__prepend"},[(ht=o.prepend)==null?void 0:ht.call(o)]),createVNode("div",{class:"v-navigation-drawer__content"},[(De=o.default)==null?void 0:De.call(o)]),o.append&&createVNode("div",{class:"v-navigation-drawer__append"},[(Be=o.append)==null?void 0:Be.call(o)])]}}),createVNode(Transition,{name:"fade-transition"},{default:()=>[W.value&&(q.value||O.value)&&!!t.scrim&&createVNode("div",mergeProps({class:["v-navigation-drawer__scrim",Te.backgroundColorClasses.value],style:[ke.value,Te.backgroundColorStyles.value],onClick:()=>O.value=!1},A),null)]})])}),{isStuck:me}}}),makeVRadioProps=propsFactory$1(Pt({},makeVSelectionControlProps({falseIcon:"$radioOff",trueIcon:"$radioOn"})),"VRadio"),VRadio=genericComponent()({name:"VRadio",props:makeVRadioProps(),setup(t,e){let{slots:r}=e;return useRender(()=>createVNode(VSelectionControl,mergeProps(t,{class:["v-radio",t.class],style:t.style,type:"radio"}),r)),{}}}),VRadioGroup$1="",makeVRadioGroupProps=propsFactory$1(ei(Pt(Pt({height:{type:[Number,String],default:"auto"}},makeVInputProps()),omit(makeSelectionControlGroupProps(),["multiple"])),{trueIcon:{type:IconValue$1,default:"$radioOn"},falseIcon:{type:IconValue$1,default:"$radioOff"},type:{type:String,default:"radio"}}),"VRadioGroup"),VRadioGroup=genericComponent()({name:"VRadioGroup",inheritAttrs:!1,props:makeVRadioGroupProps(),emits:{"update:modelValue":t=>!0},setup(t,e){let{attrs:r,slots:n}=e;const o=getUid(),s=computed(()=>t.id||`radio-group-${o}`),c=useProxiedModel(t,"modelValue");return useRender(()=>{const[l,v]=filterInputAttrs(r),x=VInput.filterProps(t),w=VSelectionControl.filterProps(t),_=n.label?n.label({label:t.label,props:{for:s.value}}):t.label;return createVNode(VInput,mergeProps({class:["v-radio-group",t.class],style:t.style},l,x,{modelValue:c.value,"onUpdate:modelValue":b=>c.value=b,id:s.value}),ei(Pt({},n),{default:b=>{let{id:E,messagesId:I,isDisabled:O,isReadonly:N}=b;return createVNode(Fragment,null,[_&&createVNode(VLabel,{id:E.value},{default:()=>[_]}),createVNode(VSelectionControlGroup,mergeProps(w,{id:E.value,"aria-describedby":I.value,defaultsTarget:"VRadio",trueIcon:t.trueIcon,falseIcon:t.falseIcon,type:t.type,disabled:O.value,readonly:N.value,"aria-labelledby":_?E.value:void 0,multiple:!1},v,{modelValue:c.value,"onUpdate:modelValue":A=>c.value=A}),n)])}}))}),{}}}),_withScopeId$1=t=>(pushScopeId("data-v-2b7b5c19"),t=t(),popScopeId(),t),_hoisted_1$f={class:"text-decoration-underline"},_hoisted_2$a={class:"ellipsis-prefix"},_hoisted_3$5=_withScopeId$1(()=>createBaseVNode("span",{class:"ellipsis-middle"},"...",-1)),_hoisted_4$5={class:"ellipsis-suffix"},_hoisted_5$4={class:"ellipsis-prefix"},_hoisted_6$3=_withScopeId$1(()=>createBaseVNode("span",{class:"ellipsis-middle"},"...",-1)),_hoisted_7$3={class:"ellipsis-suffix"},__default__={name:"MxMenu"},_sfc_main$m=defineComponent$1(ei(Pt({},__default__),{props:{list:{default:()=>[]},title:{},isChildren:{type:Boolean,default:!1},cmd:{},icon:{}},emits:["change","onKeyShowMenu"],setup(t,{expose:e,emit:r}){const n=w=>{w&&w.cmd&&callCommand(w.cmd,w.list?w:void 0)},o={prefix:5,suffix:21,max:34},{t:s}=useI18n();function c(w,_){const b=w.match(/([^\d()])+/g);return b&&b.length>1?_==="start"?s(b[0]):_==="end"?b[1]:s(b[0])+"("+b[1]+")":s(w)}const l=ref(!1),v=w=>{let _=extractLetter(w);if(!!_)return _=keyToCode(_),_};if(!t.isChildren&&t.title){const w=v(t.title);w&&keyBindingManager.register({key:[{keyCode:w,altKey:!0}],when(){return!0},action(){l.value=!l.value,l.value&&(r("onKeyShowMenu"),nextTick(()=>{var _;(_=x.value)==null||_.focus()}))}})}const x=ref();return t.list.forEach(({list:w,cmd:_,tab:b})=>{if(!b||w)return;const E=v(b);!E||keyBindingManager.register({key:[{keyCode:E}],when(I){return I.isRunCommand?!1:l.value},action(){_&&callCommand(_),l.value=!1}})}),keyBindingManager.register({key:[{keyCode:"Enter"}],when(){return l.value},action(){l.value=!1}}),e({isShowMenu:l}),(w,_)=>{const b=resolveComponent("MxMenu");return openBlock(),createBlock(VMenu,{class:"mx-menu","offset-y":"",modelValue:l.value,"onUpdate:modelValue":_[1]||(_[1]=E=>l.value=E)},{activator:withCtx(({props:E})=>[w.title?renderSlot(w.$slots,"activator",normalizeProps(mergeProps({key:0},E)),()=>[w.isChildren?(openBlock(),createBlock(VListItem,mergeProps({key:1},E,{onClick:withModifiers(I=>n(E),["stop"]),variant:"outlined"}),{prepend:withCtx(()=>[createVNode(VIcon,{icon:E.icon,size:"x-small"},null,8,["icon"])]),append:withCtx(()=>[createVNode(VIcon,{icon:"youjiantou",size:"12"})]),default:withCtx(()=>[E.tab&&E.tab.length>o.max?(openBlock(),createBlock(VListItemTitle,{key:0,class:"ellipsis-container"},{default:withCtx(()=>[createBaseVNode("span",_hoisted_2$a,toDisplayString$1(E.tab.slice(0,o.prefix)),1),_hoisted_3$5,createBaseVNode("span",_hoisted_4$5,toDisplayString$1(E.tab.slice(E.tab.length-o.suffix,E.tab.length)),1)]),_:2},1024)):(openBlock(),createBlock(VListItemTitle,{key:1},{default:withCtx(()=>[createTextVNode(toDisplayString$1(c(E.tab)),1)]),_:2},1024))]),_:2},1040,["onClick"])):(openBlock(),createBlock(VChip,mergeProps({key:0,onClick:_[0]||(_[0]=I=>n({cmd:w.cmd,list:w.list})),class:"px-4 mx-1",color:"accent",size:"x-small",variant:"elevated",label:""},E,{"prepend-icon":w.icon}),{default:withCtx(()=>[unref(isAlt)?(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("span",null,toDisplayString$1(c(w.title,"start")),1),createTextVNode(" ("),createBaseVNode("span",_hoisted_1$f,toDisplayString$1(c(w.title,"end")),1),createTextVNode(") ")],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString$1(c(w.title)),1)],64))]),_:2},1040,["prepend-icon"]))],!0):createCommentVNode("",!0)]),default:withCtx(()=>[createVNode(unref(VList),{"min-width":"10",nav:"",class:"list",ref_key:"menuList",ref:x},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(w.list,(E,I)=>(openBlock(),createElementBlock(Fragment,{key:I},[E.type==="divider"?(openBlock(),createBlock(VDivider,{key:0,class:"border-opacity-25"})):E.list?(openBlock(),createBlock(b,{key:I,list:E.list,title:E.tab,isChildren:!0,"open-on-hover":"",location:"right center","activator-props":E},null,8,["list","title","activator-props"])):(openBlock(),createBlock(VListItem,{key:2,onClick:O=>n(E)},{prepend:withCtx(()=>[createVNode(VIcon,{icon:E.icon,size:"x-small"},null,8,["icon"])]),append:withCtx(()=>[createVNode(VIcon,{icon:E.endIcon,size:"x-small"},null,8,["icon"])]),default:withCtx(()=>[E.tab&&E.tab.length>o.max?(openBlock(),createBlock(VListItemTitle,{key:0,class:"ellipsis-container"},{default:withCtx(()=>[createBaseVNode("span",_hoisted_5$4,toDisplayString$1(E.tab.slice(0,o.prefix)),1),_hoisted_6$3,createBaseVNode("span",_hoisted_7$3,toDisplayString$1(E.tab.slice(E.tab.length-o.suffix,E.tab.length)),1)]),_:2},1024)):(openBlock(),createBlock(VListItemTitle,{key:1},{default:withCtx(()=>[createTextVNode(toDisplayString$1(c(E.tab||"")),1)]),_:2},1024))]),_:2},1032,["onClick"]))],64))),128))]),_:1},512)]),_:3},8,["modelValue"])}}})),index_vue_vue_type_style_index_0_scoped_2b7b5c19_lang="",index_vue_vue_type_style_index_1_lang="",MxMenu=_export_sfc(_sfc_main$m,[["__scopeId","data-v-2b7b5c19"]]);addCommand("Mx_open_file_options",t=>Gr(void 0,null,function*(){}));addCommand("Mx_openRecordsFile",t=>{});const useMenusData=()=>{var e;return{menuListData:(e=uiConfig.mMenuBarData||[])==null?void 0:e.map(r=>r.isResponsive?(r=reactive(r),r):markRaw(r))}};let theme$1,isDark;const toggleTheme=()=>{const t=theme$1.global.current.value.dark?"light":"dark";theme$1.global.name.value=t,isDark.value=theme$1.global.name.value==="dark"},setIsDark=t=>theme$1.global.name.value=t?"dark":"light",useTheme=()=>(theme$1=useTheme$1(),isDark=useLocalStorage("mx-user-dark",Boolean(localStorage.getItem("mx-user-dark"))||!0),setIsDark(isDark.value),{toggleTheme,setIsDark,isDark}),height$1=computed(()=>{let t=120;return uiConfig.isShowHeader?(uiConfig.isShowHeaderTopBar||(t-=80),uiConfig.isShowTopButtonBar||(t-=52),uiConfig.isShowMenuBar||(t-=30),t):0}),useHeaderHeight=()=>height$1,logoOldSrc=""+new URL("logo-old.1b4846a9.png",import.meta.url).href,getLogoImgSrc=()=>typeof uiConfig.logoImg=="string"?uiConfig.logoImg:logoOldSrc,rightMenu="",useRightClickMenuOptions=(t={})=>{const c=t,{menuItemCss:e={},params:r={},menuWrapperCss:n={}}=c,o=fd(c,["menuItemCss","params","menuWrapperCss"]);return Pt({params:Pt({},r),customClass:"mx_right_menu",menuWidth:120,menuWrapperCss:Pt({background:"rgb(var(--v-theme-surface))",boxShadow:"0px 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, 0.2)), 0px 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, 0.14)), 0px 3px 14px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, 0.12))",borderRadius:"4px",color:"rgba(var(--v-theme-on-surface), var(--v-high-emphasis-opacity))"},n),menuItemCss:Pt({height:"30px",hoverBackground:"#4D535B",background:"currentColor",borderRadius:"inherit",transition:"opacity 0.2s ease-in-out",labelColor:"rgba(var(--v-theme-on-surface), var(--v-high-emphasis-opacity))",labelFontSize:"12px"},e),menuList:[]},o)},saveMxwebFile=(t=!1,e=!1,r=!1)=>new Promise((n,o)=>Gr(void 0,null,function*(){let s=MxCpp.App.getCurrentMxCAD().getCurrentFileName(),c=s;!MxCpp.App.getCurrentMxCAD().saveFile(s,v=>Gr(void 0,null,function*(){let x;/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?x=new Blob([v.buffer],{type:"application/octet-stream"}):x=new Blob([v.buffer],{type:"application/octet-binary"});try{n({blob:x,data:v,filename:c})}catch(_){o(_),console.error(_)}}),e,r,t?void 0:{compression:0})&&o("mxweb\u6587\u4EF6\u4FDD\u5B58\u5931\u8D25")})),saveAs=()=>Gr(void 0,null,function*(){try{if(!isElectron()){const t=isFullscreen(),{filename:e,blob:r,data:n}=yield saveMxwebFile(!0);yield saveAsFileDialog({blob:r,filename:e,types:[{description:"mxweb File",accept:{"application/octet-stream":[".mxweb"]}}]}),t&&callCommand("MxFullScreen")}}catch(t){console.error(t)}}),save=()=>Gr(void 0,null,function*(){yield saveAs()}),tabs=ref([{title:"Drawing1",url:"",active:!1,isLoad:!0,isDatabaseModify:!1,index:0},{title:"Drawing2",url:"",active:!1,isLoad:!0,isDatabaseModify:!1,index:1}]),close=t=>Gr(void 0,null,function*(){yield MxElectronAPI.viewTab.close(t)}),isNeedToSava=t=>{const e=tabs.value[t];return!(e!=null&&e.isDatabaseModify)},isOpenFolder=t=>{const e=tabs.value[t];return!((e==null?void 0:e.params)&&e.params.file)},useTabs=()=>({tabs,add(){},close(){},active(){}}),getDataIndex=t=>Number(t==null?void 0:t.getAttribute("data-index")),useTabRightClickMenu=()=>({rightMenuOptions:useRightClickMenuOptions({menuList:[{label:"\u5173\u95ED\u5F53\u524D\u6587\u4EF6",fn:(e,r)=>{close(getDataIndex(r))}},{label:"\u5173\u95ED\u975E\u5F53\u524D\u6587\u4EF6",fn:(e,r)=>MxElectronAPI.viewTab.closeNonCurrentTab(getDataIndex(r))},{label:"\u5173\u95ED\u6240\u6709",fn:()=>MxElectronAPI.viewTab.closeAll()},{label:"\u5173\u95ED\u53F3\u8FB9\u6240\u6709",fn:(e,r)=>MxElectronAPI.viewTab.closeRightAll(getDataIndex(r))},{label:"\u5173\u95ED\u5DE6\u8FB9\u6240\u6709",fn:(e,r)=>MxElectronAPI.viewTab.closeLeftAll(getDataIndex(r))},{label:"\u5173\u95ED\u6240\u6709\u672A\u4FEE\u6539",fn:()=>MxElectronAPI.viewTab.closeNoModifyAll()},{label:"\u4FDD\u5B58",fn:(e,r)=>MxElectronAPI.viewTab.saveFile(getDataIndex(r)),disabled:(e,r)=>isNeedToSava(getDataIndex(r))},{label:"\u53E6\u5B58\u4E3A",fn:(e,r)=>MxElectronAPI.viewTab.saveAsFile(getDataIndex(r))},{label:"\u6253\u5F00\u6240\u5728\u6587\u4EF6\u5939",fn:(e,r)=>MxElectronAPI.viewTab.openCurrentFolder(getDataIndex(r)),disabled:(e,r)=>isOpenFolder(getDataIndex(r))},{label:"\u91CD\u65B0\u8F7D\u5165",fn:(e,r)=>MxElectronAPI.viewTab.reload(getDataIndex(r))}]})}),_hoisted_1$e={class:"d-flex bg-background"},_hoisted_2$9={class:"tabs"},_hoisted_3$4=["onClick","data-index"],_hoisted_4$4=["data-index"],_sfc_main$l=defineComponent$1({__name:"Tabs",setup(t){const{tabs:e,add:r,close:n,active:o}=useTabs(),{rightMenuOptions:s}=useTabRightClickMenu();return(c,l)=>{const v=resolveDirective("scroll-bottom"),x=resolveDirective("right-click-menu");return openBlock(),createElementBlock("div",_hoisted_1$e,[withDirectives((openBlock(),createElementBlock("ul",_hoisted_2$9,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(e),(w,_)=>(openBlock(),createBlock(VTooltip,{key:_,text:w.params?w.params.url||w.params.file:w.title,theme:"light",location:"bottom","open-delay":"1500"},{activator:withCtx(({props:b})=>[createBaseVNode("li",mergeProps(b,{class:["tab",w.active?"tab-active":""],onClick:E=>unref(o)(_),"data-index":_}),[createBaseVNode("span",{class:"tab-title","data-index":_},toDisplayString$1(w.title),9,_hoisted_4$4),createTextVNode(" "+toDisplayString$1(w.isDatabaseModify?"*":"")+" ",1),withDirectives(createVNode(VBtn,{"data-index":_,icon:"",size:"16px",onClick:withModifiers(E=>unref(n)(_),["stop"]),class:"tab-close-btn"},{default:withCtx(()=>[createVNode(VIcon,{icon:"$mdi-close",size:"x-small","data-index":_},null,8,["data-index"])]),_:2},1032,["data-index","onClick"]),[[vShow,_!==0]])],16,_hoisted_3$4)]),_:2},1032,["text"]))),128))])),[[v],[x,unref(s)]]),createVNode(VTooltip,{text:c.$t("\u6DFB\u52A0\u65B0\u56FE\u7EB8"),theme:"light",location:"top"},{activator:withCtx(({props:w})=>[createVNode(VBtn,mergeProps(w,{size:"20px",class:"tab-add",theme:"drak",onClick:l[0]||(l[0]=withModifiers(_=>unref(r)(),["stop"]))}),{default:withCtx(()=>[createVNode(VIcon,{icon:"$mdi-plus"})]),_:2},1040)]),_:1},8,["text"])])}}}),Tabs_vue_vue_type_style_index_0_scoped_d00b47e2_lang="",Tabs=_export_sfc(_sfc_main$l,[["__scopeId","data-v-d00b47e2"]]),materialdesignicons="",main="";function propsFactory(t,e){return r=>Object.keys(t).reduce((n,o)=>{const c=typeof t[o]=="object"&&t[o]!=null&&!Array.isArray(t[o])?t[o]:{type:t[o]};return r&&o in r?n[o]=ei(Pt({},c),{default:r[o]}):n[o]=c,e&&!n[o].source&&(n[o].source=e),n},{})}const IconValue=[String,Function,Object],makeIconProps=propsFactory({icon:{type:IconValue},tag:{type:String,required:!0},fill:{type:String}},"icon"),MxAliSymbolIcon=defineComponent$1({name:"MxAliSymbolIcon",inheritAttrs:!1,props:makeIconProps(),setup(t,{attrs:e}){const o=e,{style:r}=o,n=fd(o,["style"]);return r.fill=t.fill,()=>h(t.tag,Pt({style:r},n),[h("svg",{role:"img","aria-hidden":!0,class:"ali-icon"},[h("use",{"xlink:href":"#"+t.icon})])])}}),getMxAliSymbolIconHTML=t=>`<svg role="img" aria-hidden=true class="ali-icon">
  4493. <use xlink:href="#${t}"/>
  4494. </svg>`,aliases$1={"mdi-weather-night":"mdi-svg:M17.75,4.09L15.22,6.03L16.13,9.09L13.5,7.28L10.87,9.09L11.78,6.03L9.25,4.09L12.44,4L13.5,1L14.56,4L17.75,4.09M21.25,11L19.61,12.25L20.2,14.23L18.5,13.06L16.8,14.23L17.39,12.25L15.75,11L17.81,10.95L18.5,9L19.19,10.95L21.25,11M18.97,15.95C19.8,15.87 20.69,17.05 20.16,17.8C19.84,18.25 19.5,18.67 19.08,19.07C15.17,23 8.84,23 4.94,19.07C1.03,15.17 1.03,8.83 4.94,4.93C5.34,4.53 5.76,4.17 6.21,3.85C6.96,3.32 8.14,4.21 8.06,5.04C7.79,7.9 8.75,10.87 10.95,13.06C13.14,15.26 16.1,16.22 18.97,15.95M17.33,17.97C14.5,17.81 11.7,16.64 9.53,14.5C7.36,12.31 6.2,9.5 6.04,6.68C3.23,9.82 3.34,14.64 6.35,17.66C9.37,20.67 14.19,20.78 17.33,17.97Z","mdi-weather-sunny":"mdi-svg:M12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,2L14.39,5.42C13.65,5.15 12.84,5 12,5C11.16,5 10.35,5.15 9.61,5.42L12,2M3.34,7L7.5,6.65C6.9,7.16 6.36,7.78 5.94,8.5C5.5,9.24 5.25,10 5.11,10.79L3.34,7M3.36,17L5.12,13.23C5.26,14 5.53,14.78 5.95,15.5C6.37,16.24 6.91,16.86 7.5,17.37L3.36,17M20.65,7L18.88,10.79C18.74,10 18.47,9.23 18.05,8.5C17.63,7.78 17.1,7.15 16.5,6.64L20.65,7M20.64,17L16.5,17.36C17.09,16.85 17.62,16.22 18.04,15.5C18.46,14.77 18.73,14 18.87,13.21L20.64,17M12,22L9.59,18.56C10.33,18.83 11.14,19 12,19C12.82,19 13.63,18.83 14.37,18.56L12,22Z","mdi-window-minimize":"mdi-svg:M20,14H4V10H20","mdi-window-restore":"mdi-svg:M4,8H8V4H20V16H16V20H4V8M16,8V14H18V6H10V8H16M6,12V18H14V12H6Z","mdi-window-maximize":"mdi-svg:M4,4H20V20H4V4M6,8V18H18V8H6Z","mdi-window-close":"mdi-svg:M13.46,12L19,17.54V19H17.54L12,13.46L6.46,19H5V17.54L10.54,12L5,6.46V5H6.46L12,10.54L17.54,5H19V6.46L13.46,12Z","mdi-plus":"mdi-svg:M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z","mdi-close":"mdi-svg:M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z","mdi-language":"mdi-svg:M12.87,15.07L10.33,12.56L10.36,12.53C12.1,10.59 13.34,8.36 14.07,6H17V4H10V2H8V4H1V6H12.17C11.5,7.92 10.44,9.75 9,11.35C8.07,10.32 7.3,9.19 6.69,8H4.69C5.42,9.63 6.42,11.17 7.67,12.56L2.58,17.58L4,19L9,14L12.11,17.11L12.87,15.07M18.5,10H16.5L12,22H14L15.12,19H19.87L21,22H23L18.5,10M15.88,17L17.5,12.67L19.12,17H15.88Z"},aliSymbol={component:MxAliSymbolIcon},aliases={collapse:"svg:M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z",complete:"svg:M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",cancel:"svg:M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",close:"svg:M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",delete:"svg:M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",clear:"svg:M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",success:"svg:M12,2C17.52,2 22,6.48 22,12C22,17.52 17.52,22 12,22C6.48,22 2,17.52 2,12C2,6.48 6.48,2 12,2M11,16.5L18,9.5L16.59,8.09L11,13.67L7.91,10.59L6.5,12L11,16.5Z",info:"svg:M13,9H11V7H13M13,17H11V11H13M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z",warning:"svg:M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",error:"svg:M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",prev:"svg:M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",next:"svg:M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",checkboxOn:"svg:M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3Z",checkboxOff:"svg:M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z",checkboxIndeterminate:"svg:M17,13H7V11H17M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3Z",delimiter:"svg:M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z",sortAsc:"svg:M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z",sortDesc:"svg:M11,4H13V16L18.5,10.5L19.92,11.92L12,19.84L4.08,11.92L5.5,10.5L11,16V4Z",expand:"svg:M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",menu:"svg:M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z",subgroup:"svg:M7,10L12,15L17,10H7Z",dropdown:"svg:M7,10L12,15L17,10H7Z",radioOn:"svg:M12,20C7.58,20 4,16.42 4,12C4,7.58 7.58,4 12,4C16.42,4 20,7.58 20,12C20,16.42 16.42,20 12,20M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2M12,7C9.24,7 7,9.24 7,12C7,14.76 9.24,17 12,17C14.76,17 17,14.76 17,12C17,9.24 14.76,7 12,7Z",radioOff:"svg:M12,20C7.58,20 4,16.42 4,12C4,7.58 7.58,4 12,4C16.42,4 20,7.58 20,12C20,16.42 16.42,20 12,20M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z",edit:"svg:M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",ratingEmpty:"svg:M12,15.39L8.24,17.66L9.23,13.38L5.91,10.5L10.29,10.13L12,6.09L13.71,10.13L18.09,10.5L14.77,13.38L15.76,17.66M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z",ratingFull:"svg:M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z",ratingHalf:"svg:M12,15.4V6.1L13.71,10.13L18.09,10.5L14.77,13.39L15.76,17.67M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z",loading:"svg:M19,8L15,12H18C18,15.31 15.31,18 12,18C11,18 10.03,17.75 9.2,17.3L7.74,18.76C8.97,19.54 10.43,20 12,20C16.42,20 20,16.42 20,12H23M6,12C6,8.69 8.69,6 12,6C13,6 13.97,6.25 14.8,6.7L16.26,5.24C15.03,4.46 13.57,4 12,4C7.58,4 4,7.58 4,12H1L5,16L9,12",first:"svg:M18.41,16.59L13.82,12L18.41,7.41L17,6L11,12L17,18L18.41,16.59M6,6H8V18H6V6Z",last:"svg:M5.59,7.41L10.18,12L5.59,16.59L7,18L13,12L7,6L5.59,7.41M16,6H18V18H16V6Z",unfold:"svg:M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z",file:"svg:M16.5,6V17.5C16.5,19.71 14.71,21.5 12.5,21.5C10.29,21.5 8.5,19.71 8.5,17.5V5C8.5,3.62 9.62,2.5 11,2.5C12.38,2.5 13.5,3.62 13.5,5V15.5C13.5,16.05 13.05,16.5 12.5,16.5C11.95,16.5 11.5,16.05 11.5,15.5V6H10V15.5C10,16.88 11.12,18 12.5,18C13.88,18 15,16.88 15,15.5V5C15,2.79 13.21,1 11,1C8.79,1 7,2.79 7,5V17.5C7,20.54 9.46,23 12.5,23C15.54,23 18,20.54 18,17.5V6H16.5Z",plus:"svg:M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",minus:"svg:M19,13H5V11H19V13Z",calendar:"svg:M19,19H5V8H19M16,1V3H8V1H6V3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3H18V1M17,12H12V17H17V12Z",eyeDropper:"svg:M19.35,11.72L17.22,13.85L15.81,12.43L8.1,20.14L3.5,22L2,20.5L3.86,15.9L11.57,8.19L10.15,6.78L12.28,4.65L19.35,11.72M16.76,3C17.93,1.83 19.83,1.83 21,3C22.17,4.17 22.17,6.07 21,7.24L19.08,9.16L14.84,4.92L16.76,3M5.56,17.03L4.5,19.5L6.97,18.44L14.4,11L13,9.6L5.56,17.03Z"},mdi={component:VSvgIcon};function useProvided(t,e,r){var o;const n=useProxiedModel(t,e);return n.value=(o=t[e])!=null?o:r.value,watch(r,s=>{t[e]==null&&(n.value=s)}),n}function createProvideFunction(t){return e=>{const r=useProvided(e,"locale",t.current),n=useProvided(e,"fallback",t.fallback),o=useProvided(e,"messages",t.messages),s=t.useI18n({locale:r.value,fallbackLocale:n.value,messages:o.value,useScope:"local",legacy:!1,inheritLocale:!1});return watch(r,c=>{s.locale.value=c}),{name:"vue-i18n",current:r,fallback:n,messages:o,t:function(c){for(var l=arguments.length,v=new Array(l>1?l-1:0),x=1;x<l;x++)v[x-1]=arguments[x];return s.t(c,v)},n:s.n,provide:createProvideFunction({current:r,fallback:n,messages:o,useI18n:t.useI18n})}}}function createVueI18nAdapter(t){let{i18n:e,useI18n:r}=t;const n=e.global.locale,o=e.global.fallbackLocale,s=e.global.messages;return{name:"vue-i18n",current:n,fallback:o,messages:s,t:function(c){for(var l=arguments.length,v=new Array(l>1?l-1:0),x=1;x<l;x++)v[x-1]=arguments[x];return e.global.t(c,v)},n:e.global.n,provide:createProvideFunction({current:n,fallback:o,messages:s,useI18n:r})}}const changeLocale=t=>{localStorage.setItem("language",t)};let theme;const vuetify={install(t){return Gr(this,null,function*(){try{theme=yield getConfig(new URL(""+new URL("../vuetifyThemeConfig.json",import.meta.url).href,self.location).href)}catch(v){theme={defaultTheme:"dark",themes:{light:{colors:{surface:"#FFFFFF",background:"#E0E0E0",accent:"#545555",prominent:"#FFFFFF",modification:"#FFFFFF",transition:"#EFEFEF",undertint:"#3A4352",depth:"#D3D1D1","on-undertint-bg":"#000","undertint-bg":"#CDCDCD","depth-bg":"#EBE9E9",inverse:"#000000",inverse1:"#FFFFFF"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":1,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.2,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.1,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#F5F5F5","theme-on-code":"#000000","theme-tbody":"#f3f3f3"}},dark:{colors:{surface:"#212832",background:"#212832",accent:"#545555",prominent:"#3A4352",modification:"#1E252F",transition:"#5D6675",undertint:"#AEABAB","on-undertint":"#fff",depth:"#5D6675","on-depth":"#fff","undertint-bg":"#2E3440","depth-bg":"#454F61",inverse:"#FFFFFF",inverse1:"#000000"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":1,"disabled-opacity":.38,"idle-opacity":.1,"hover-opacity":.2,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.1,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC","theme-tbody":"#343b48"}}}}}const e=yield getConfig(new URL(""+new URL("../i18nMessages.json",import.meta.url).href,self.location).href),r=navigator.language;let n=r==="zh-CN"||r==="en-US"?r:!1;switch(r){case"zh-CN":n="zhHans";break;case"en-US":n="en";break;default:n="zhHans";break}let o=localStorage.getItem("language")||n||"zhHans";const s=createI18n({legacy:!1,locale:o,fallbackLocale:"zhHans",messages:e,missingWarn:!1}),c=s.global.t;s.global.t=function(v,...x){if(!v)return"";const w=/[\u4e00-\u9fa5]+/g,_=v.match(w);if(!_)return v;let b=v;return _.forEach(E=>{b=b.replace(E,c(E,...x))}),b},localStorage.setItem("language",o);const l=createVuetify({defaults:{VSelect:{density:"compact",variant:"solo",bgColor:"background",hideDetails:!0,class:"rounded",menuProps:{maxHeight:400},transition:"slide-y-transition"},VCombobox:{density:"compact",variant:"solo",hideDetails:!0,menuProps:{maxWidth:"100%"}},VMenu:{maxHeight:800,transition:"slide-y-transition"},VList:{dense:!0,light:!0,nav:!0},VListItem:{minHeight:"25px",density:"compact",link:!0,rounded:0},VTextField:{density:"compact",variant:"solo",hideDetails:!0,inline:!0,bgColor:"grey-lighten-2"},VAutocomplete:{density:"compact",variant:"solo",hideDetails:!0,bgColor:"grey-lighten-2",menuProps:{maxWidth:"100%"}},VTooltip:{theme:"light"},VBtn:{size:"small"},VCheckbox:{density:"compact",hideDetails:!0},VRadioGroup:{inline:!0,hideDetails:!0},VRow:{alignContent:"center",justify:"center",dense:!0},VCol:{cols:12,alignSelf:"center"},VTabs:{density:"compact",hideSlider:!0},VTable:{density:"density",fixedHeader:!0,hover:!0},VAlert:{closable:!0,closeLabel:"\u5173\u95ED",density:"compact"}},icons:{defaultSet:"aliSymbol",aliases:Pt(Pt({},aliases),aliases$1),sets:{aliSymbol,"mdi-svg":mdi}},theme,locale:{adapter:createVueI18nAdapter({i18n:s,useI18n})}});t.use(s),t.use(l)})}},_hoisted_1$d={class:"d-flex w-100 flex-column py-1 ma-0 px-0"},_hoisted_2$8={key:0,class:"d-flex align-center pa-1 bg-background mx-herder-top-box"},_hoisted_3$3={class:"mx-title mt-1 text-no-wrap text-truncate"},_hoisted_4$3={class:"d-flex align-center justify-center fill-height"},_hoisted_5$3={class:"w-100 mx-app-drag pa-0"},_hoisted_6$2={class:"d-flex",style:{height:"38px"}},_hoisted_7$2={class:"d-flex"},_hoisted_8$2={key:0,class:"d-flex mx-app-no-drag"},_hoisted_9$1={key:0,class:"d-flex px-1 align-center mb-1",style:{"flex-shrink":"0"}},_sfc_main$k=defineComponent$1({__name:"index",setup(t){const{current:e}=useLocale(),{menuListData:r}=useMenusData(),{toggleTheme:n,isDark:o}=useTheme(),s=ne=>{ne&&ne.cmd&&callCommand(ne.cmd,ne)},c=useHeaderHeight(),l=ref(uiConfig.headerTitle||"\u5728\u7EBFCAD\u68A6\u60F3\u753B\u56FE "+getLargeVersion()),v=()=>{window.MxElectronAPI&&window.MxElectronAPI.winMainCose()},x=ref(!1),w=()=>{window.MxElectronAPI&&window.MxElectronAPI.winMainMax(),x.value=!x.value},_=()=>{window.MxElectronAPI&&window.MxElectronAPI.winMainMin()},b=ne=>{ne.cmd&&callCommand(ne.cmd,ne)},{messages:E}=useI18n(),I=ref(!1),O=ref(),N=()=>{var ne,W;((ne=O.value)==null?void 0:ne.$el.scrollWidth)>((W=O.value)==null?void 0:W.$el.clientWidth)?I.value=!0:I.value=!1};useEventListener("resize",N);const A=()=>{var ne;return(ne=O.value)==null?void 0:ne.$el.scrollBy(-100,0)},z=()=>{var ne;return(ne=O.value)==null?void 0:ne.$el.scrollBy(100,0)},G=ref();onMounted(()=>{N()});const V=ne=>{var W;(W=G.value)==null||W.forEach((B,q)=>{ne!==q&&(B.isShowMenu=!1)})};return(ne,W)=>unref(uiConfig).isShowHeader?(openBlock(),createBlock(VAppBar,{key:0,height:unref(c),flat:"","clipped-left":"","clipped-right":"",class:"px-0",order:-1},{default:withCtx(()=>[createBaseVNode("div",_hoisted_1$d,[unref(uiConfig).isShowHeaderTopBar?(openBlock(),createElementBlock("div",_hoisted_2$8,[createBaseVNode("h1",_hoisted_3$3,toDisplayString$1(ne.$t(l.value)),1),unref(uiConfig).logoImg!==!1?(openBlock(),createBlock(VImg,{key:0,width:unref(c)<60||!unref(uiConfig).isShowMenuBar?30:60,height:unref(c)<60||!unref(uiConfig).isShowMenuBar?30:60,class:"mx-app-drag mr-2",src:unref(getLogoImgSrc)()},{placeholder:withCtx(()=>[createBaseVNode("div",_hoisted_4$3,[createVNode(VProgressCircular,{color:"grey-lighten-4",indeterminate:""})])]),_:1},8,["width","height","src"])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_5$3,[createBaseVNode("div",_hoisted_6$2,[createVNode(_sfc_main$n,{class:"bg-background mx-app-drag",onChange:s}),createBaseVNode("div",_hoisted_7$2,[createVNode(VTooltip,{link:"",text:ne.$t("AI"),theme:"light",attach:!0},{activator:withCtx(({props:B})=>[createVNode(VBtn,mergeProps(B,{class:"text-medium-emphasis",theme:unref(o)?"dark":"light",icon:"class:iconfont AI",onClick:W[0]||(W[0]=q=>unref(callCommand)("Mx_Ai"))}),null,16,["theme"])]),_:1},8,["text"]),createVNode(VTooltip,{link:"",text:ne.$t("\u767B\u5F55"),theme:"light",attach:!0},{activator:withCtx(({props:B})=>[createVNode(VBtn,mergeProps(B,{class:"text-medium-emphasis",icon:"class:iconfont denglu",theme:unref(o)?"dark":"light",id:"mx_login_btn"}),null,16,["theme"])]),_:1},8,["text"]),createVNode(VMenu,null,{activator:withCtx(({props:B})=>[createVNode(VTooltip,{link:"",text:ne.$t("\u8BED\u8A00"),theme:"light",attach:!0},{activator:withCtx(({props:q})=>[createVNode(VBtn,mergeProps(Pt(Pt({},q),B),{class:"text-medium-emphasis",theme:unref(o)?"dark":"light",icon:"$mdi-language"}),null,16,["theme"])]),_:2},1032,["text"])]),default:withCtx(()=>[createVNode(VList,null,{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(E),(B,q)=>(openBlock(),createBlock(VListItem,{key:q,value:q,onClick:D=>{unref(changeLocale)(q),e.value=q},active:q===unref(e)},{default:withCtx(()=>[createVNode(VListItemTitle,null,{default:withCtx(()=>[createTextVNode(toDisplayString$1(B.__label__),1)]),_:2},1024)]),_:2},1032,["value","onClick","active"]))),128))]),_:1})]),_:1}),createVNode(VTooltip,{link:"",text:ne.$t("\u4E3B\u9898"),theme:"light",attach:!0},{activator:withCtx(({props:B})=>[createVNode(VBtn,mergeProps(B,{class:"text-medium-emphasis",theme:unref(o)?"dark":"light",icon:unref(o)?"$mdi-weather-night":"$mdi-weather-sunny",onClick:unref(n)}),null,16,["theme","icon","onClick"])]),_:1},8,["text"]),unref(isElectron)()?(openBlock(),createElementBlock(Fragment,{key:0},[createVNode(VBtn,{icon:"$mdi-window-minimize",onClick:_}),createVNode(VBtn,{icon:x.value?"$mdi-window-restore":"$mdi-window-maximize",onClick:w},null,8,["icon"]),createVNode(VBtn,{icon:"$mdi-window-close",class:"window-close",onClick:v})],64)):createCommentVNode("",!0)])]),unref(uiConfig).isShowMenuBar?(openBlock(),createElementBlock("div",_hoisted_8$2,[createVNode(unref(VCard),{style:{background:"transparent","white-space":"nowrap",flex:"1 1 auto","scroll-behavior":"smooth"},width:"0",height:"30",class:"px-0 mb-0",elevation:"0",onScroll:N,ref_key:"mxMenuBox",ref:O},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(r),(B,q)=>(openBlock(),createBlock(MxMenu,{key:q,cmd:B.cmd,onClick:D=>b(B),onOnKeyShowMenu:()=>{V(q)},list:B.list,title:B.tab,icon:B.icon,ref_for:!0,ref_key:"menus",ref:G},null,8,["cmd","onClick","onOnKeyShowMenu","list","title","icon"]))),128))]),_:1},512),I.value?(openBlock(),createElementBlock("div",_hoisted_9$1,[createVNode(VChip,{class:"scroll_bnt mr-1",onClick:A},{default:withCtx(()=>[createTextVNode("<")]),_:1}),createVNode(VChip,{class:"scroll_bnt",onClick:z},{default:withCtx(()=>[createTextVNode(">")]),_:1})])):createCommentVNode("",!0)])):createCommentVNode("",!0)])])):createCommentVNode("",!0),unref(isElectron)()?(openBlock(),createBlock(Tabs,{key:1})):createCommentVNode("",!0),createVNode(TopBtnList)])]),_:1},8,["height"])):createCommentVNode("",!0)}}),index_vue_vue_type_style_index_0_lang$2="",index_vue_vue_type_style_index_1_scoped_86f873d7_lang="",Header=_export_sfc(_sfc_main$k,[["__scopeId","data-v-86f873d7"]]),commandText=ref(""),consoleText=ref(""),cmdTip=ref("\u547D\u4EE4:"),coordinates=ref("0, 0, 0");function parseCmdTip(t){const e=/(.+)\[(.+)\]/,r=t.match(e);if(r){const n=r[1].trim(),s=r[2].split("/").map(l=>l.trim());return{msg:n,keys:s.map(l=>({label:l.substring(0,l.indexOf("(")),key:l.substring(l.indexOf("(")+1,l.indexOf(")"))})),endMsg:":"}}return{msg:t}}const useCommandLine=t=>{const{setInputEl:e,setCommandFocus:r}=useFocus$1(),n=E=>{!commandText.value||MxFun.setCommandLineInputData(commandText.value,E.keyCode)},o=E=>{MxFun.setCommandLineInputData(E,13)};onMounted(()=>{if(!t.value||!t.value.$el)return;const E=t.value.$el.getElementsByTagName("input")[0];E&&(e(E),E.focus()),MxFun.listenForCommandLineInput(({msCmdTip:I,msCmdDisplay:O,msCmdText:N})=>{commandText.value=N,consoleText.value=O,cmdTip.value=I}),MxFun.listenForCoordTip(I=>{coordinates.value=I})});const s=computed(()=>parseCmdTip(cmdTip.value)),c=ref(!1),l=E=>{c.value&&o(E)},v=E=>{comboboxItems.value.includes(E)?c.value=!1:c.value=!!E};useEventListener("keydown",E=>{(E.code==="Enter"||E.code==="Escape")&&c.value&&(E.code==="Enter"&&l(commandText.value),c.value=!1)});const x=E=>{MxFun.isRunningCommand()?comboboxItems.value=[]:comboboxItems.value=_comboboxItems,!((E.code==="ArrowUp"||E.code==="ArrowDown")&&c.value)&&(comboboxItems.value.includes(commandText.value)&&(c.value=!1),n(E))},w={},{t:_}=useI18n(),b=E=>{const I=w[E];return I?E+"("+_(I)+")":E};return onMounted(()=>Gr(void 0,null,function*(){let E=(yield fetchUiConfig())||{};E.mLeftButtonBarData&&E.mLeftButtonBarData.buttonBarData&&E.mLeftButtonBarData.buttonBarData.forEach(({cmd:O,prompt:N})=>{O&&(w[O]=N,addCmdRecord(O))}),E.mMenuBarData&&E.mMenuBarData.forEach(({cmd:O,tab:N})=>{O&&(w[O]=N,addCmdRecord(O))}),E.mRightButtonBarData&&E.mRightButtonBarData.buttonBarData&&E.mRightButtonBarData.buttonBarData.forEach(({cmd:O,prompt:N})=>{O&&(w[O]=N,addCmdRecord(O))}),E.mTitleButtonBarData&&E.mTitleButtonBarData.forEach(({cmd:O,prompt:N})=>{O&&(w[O]=N,addCmdRecord(O))}),E.mTopButtonBarData&&E.mTopButtonBarData.forEach(({cmd:O,prompt:N})=>{O&&(w[O]=N,addCmdRecord(O))});let I=yield fetchQuickCommand();!I||(I.forEach(O=>{let N;O.forEach(A=>{addCmdRecord(A),N||(N=w[A])}),N&&O.forEach(A=>{w[A]=N})}),registerCmdRecord())})),{handleKeydownCmd:n,commandText,consoleText,cmdTip,cmdTipObj:s,coordinates,setCommandFocus:r,sendInputCmd:o,isShowMenu:c,onSearch:v,getItemTitle:b,handleKeydown:x,comboboxItems,selectCmd:l}},clone=function(t){let e=Array.isArray(t)?[]:{};if(t&&typeof t=="object")for(let r in t)t.hasOwnProperty(r)&&(t[r]&&typeof t[r]=="object"?e[r]=clone(t[r]):e[r]=t[r]);return e};var script=defineComponent$1({name:"MouseMenu",props:{appendToBody:{type:Boolean,default:!0},menuWidth:{type:Number,default:200},menuList:{type:Array,required:!0},menuHiddenFn:{type:Function},hasIcon:{type:Boolean,default:!1},iconType:{type:String,default:"font-icon"},menuWrapperCss:Object,menuItemCss:Object,el:{type:Object,required:!0},params:{type:[String,Number,Array,Object]},useLongPressInMobile:Boolean,longPressDuration:Number,longPressPreventDefault:[Function,Boolean],injectCloseListener:{type:Boolean,default:!0},customClass:String,disabled:{type:Function}},emits:["open","close"],setup(t,{emit:e}){const r=ref(0),n=ref(0),o=ref(!1),s=ref(0),c=ref(0),l=ref(!1),v=ref(null),x=ref([]),w=computed(()=>t.menuList.some(ne=>ne.children&&ne.children.length>0)),_=ref(10),b=ref();watch(l,ne=>Gr(this,null,function*(){var W,B;if(ne){yield nextTick();let q=b.value;t.menuWrapperCss&&Object.keys(t.menuWrapperCss).map(F=>{q.style.setProperty(`--menu-${F}`,t.menuWrapperCss&&t.menuWrapperCss[F])}),t.menuItemCss&&Object.keys(t.menuItemCss).map(F=>{q.style.setProperty(`--menu-item-${F}`,t.menuItemCss&&t.menuItemCss[F])});let D=(B=(W=t.menuItemCss)==null?void 0:W.arrowSize)==null?void 0:B.match(/\d+/);D?_.value=~~D[0]||10:_.value=10,q.style.setProperty("--menu-item-arrowRealSize",_.value/2+"px"),e("open",t.params,v.value,t.el)}else e("close",t.params,v.value,t.el)}));const E=(ne,W)=>{ne.disabled||(ne.fn&&typeof ne.fn=="function"&&ne.fn(t.params,v.value,t.el,W),l.value=!1)},I=(ne,W)=>{ne.disabled||(ne.fn&&typeof ne.fn=="function"&&!ne.disabled&&(ne.fn(t.params,v.value,t.el,W),o.value=!1),l.value=!1)},O=(ne,W)=>{if(W.children&&!W.disabled){o.value=!0;const B=ne.currentTarget;if(!B)return;const{offsetWidth:q}=B,D=B.querySelector(".__menu__sub__wrapper");if(!D)return;const{offsetWidth:F,offsetHeight:re}=D,{innerWidth:le,innerHeight:fe}=window,{top:me,left:ye}=B.getBoundingClientRect();ye+q+F>le-5?r.value=ye-F+5:r.value=ye+q,me+re>fe-5?n.value=fe-re:n.value=me+5}},N=(ne,W,B,q)=>ne.map(D=>(D.children&&(D.children=N(D.children,W,B,q)),D.label&&typeof D.label=="function"&&(D.label=D.label(q,W,B)),D.tips&&typeof D.tips=="function"&&(D.tips=D.tips(q,W,B)),D.icon&&typeof D.icon=="function"&&(D.icon=D.icon(q,W,B)),D.hidden&&typeof D.hidden=="function"&&(D.hidden=D.hidden(q,W,B)),D.disabled&&typeof D.disabled=="function"&&(D.disabled=D.disabled(q,W,B)),D)),A=(ne=0,W=0)=>Gr(this,null,function*(){if(v.value=document.elementFromPoint(ne-1,W-1),t.menuHiddenFn?l.value=!t.menuHiddenFn(t.params,v.value,t.el):l.value=!0,!l.value)return;x.value=clone(t.menuList),x.value=N(x.value,v.value,t.el,t.params),yield nextTick();const{innerWidth:B,innerHeight:q}=window,F=b.value.offsetHeight,re=t.menuWidth||200;c.value=ne+re+1>B?B-re-5:ne+1,s.value=W+F+1>q?q-F-5:W+1}),z=()=>{l.value=!1},G=computed(()=>t.useLongPressInMobile&&"ontouchstart"in window?"touchstart":"mousedown"),V=ne=>{b.value&&!b.value.contains(ne.currentTarget)&&(l.value=!1,document.oncontextmenu=null)};return watch(()=>t.injectCloseListener,ne=>{ne?document.addEventListener(G.value,V):document.removeEventListener(G.value,V)},{immediate:!0}),onUnmounted(()=>{document.removeEventListener(G.value,V)}),{subLeft:r,subTop:n,hoverFlag:o,menuTop:s,menuLeft:c,showMenu:l,clickDomEl:v,calcMenuList:x,arrowSize:_,hasSubMenu:w,MenuWrapper:b,handleMenuItemClick:E,handleSubMenuItemClick:I,handleMenuMouseEnter:O,show:A,close:z,clickEventKey:G}}});const _hoisted_1$c=["onMouseenter"],_hoisted_2$7={key:0,class:"__menu__item-icon"},_hoisted_3$2=["innerHTML"],_hoisted_4$2={class:"__menu__item-label"},_hoisted_5$2={class:"__menu__item-tips"},_hoisted_6$1={class:"__menu__item-arrow-after"},_hoisted_7$1={class:"__menu__sub__item-label"},_hoisted_8$1={class:"__menu__sub__item-tips"};function render(t,e,r,n,o,s){return openBlock(),createBlock(Teleport,{to:"body",disabled:!t.appendToBody},[t.showMenu?(openBlock(),createElementBlock("div",{key:0,ref:"MenuWrapper",class:normalizeClass(["__menu__wrapper",t.customClass]),style:normalizeStyle({width:`${t.menuWidth}px`,top:`${t.menuTop}px`,left:`${t.menuLeft}px`})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.calcMenuList,(c,l)=>(openBlock(),createElementBlock(Fragment,null,[!c.hidden&&!c.line?(openBlock(),createElementBlock("div",mergeProps({key:l,class:["__menu__item",c.disabled&&"disabled",c.customClass]},{[toHandlerKey(t.clickEventKey)]:withModifiers(v=>t.handleMenuItemClick(c,v),["stop"])},{onMouseenter:v=>t.handleMenuMouseEnter(v,c)}),[t.hasIcon?(openBlock(),createElementBlock("div",_hoisted_2$7,[t.iconType==="font-icon"?withDirectives((openBlock(),createElementBlock("i",{key:0,class:normalizeClass(c.icon)},null,2)),[[vShow,c.icon]]):t.iconType==="svg-icon"?withDirectives((openBlock(),createElementBlock("div",{key:1,class:"__menu__item-icon-svg",innerHTML:c.icon},null,8,_hoisted_3$2)),[[vShow,c.icon]]):t.iconType==="vnode-icon"?(openBlock(),createBlock(resolveDynamicComponent(c.icon),{key:2})):createCommentVNode("v-if",!0)])):createCommentVNode("v-if",!0),createBaseVNode("span",_hoisted_4$2,toDisplayString$1(c.label),1),createBaseVNode("span",_hoisted_5$2,toDisplayString$1(c.tips||""),1),t.hasSubMenu?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(["__menu__item-arrow",{show:t.hasSubMenu&&c.children}]),style:normalizeStyle({width:t.arrowSize+"px",height:t.arrowSize+"px"})},[withDirectives(createBaseVNode("span",_hoisted_6$1,null,512),[[vShow,t.hasSubMenu&&c.children]])],6)):createCommentVNode("v-if",!0),c.children&&c.children.length>0?withDirectives((openBlock(),createElementBlock("div",{key:2,class:"__menu__sub__wrapper",style:normalizeStyle({top:`${t.subTop}px`,left:`${t.subLeft}px`})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(c.children,(v,x)=>(openBlock(),createElementBlock(Fragment,null,[!v.hidden&&!v.line?(openBlock(),createElementBlock("div",mergeProps({key:x,class:["__menu__sub__item",v.disabled&&"disabled",v.customClass]},{[toHandlerKey(t.clickEventKey)]:withModifiers(w=>t.handleSubMenuItemClick(v,w),["stop"])}),[createBaseVNode("span",_hoisted_7$1,toDisplayString$1(v.label),1),createBaseVNode("span",_hoisted_8$1,toDisplayString$1(v.tips||""),1)],16)):createCommentVNode("v-if",!0),v.line?(openBlock(),createElementBlock("div",{key:x,class:"__menu__line"})):createCommentVNode("v-if",!0)],64))),256))],4)),[[vShow,t.hoverFlag]]):createCommentVNode("v-if",!0)],16,_hoisted_1$c)):createCommentVNode("v-if",!0),!c.hidden&&c.line?(openBlock(),createElementBlock("div",{key:l,class:"__menu__line"})):createCommentVNode("v-if",!0)],64))),256))],6)):createCommentVNode("v-if",!0)],8,["disabled"])}function styleInject(t,e){e===void 0&&(e={});var r=e.insertAt;if(!(!t||typeof document=="undefined")){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",r==="top"&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}var css_248z=`.__menu__mask[data-v-3d21bc0a] {
  4495. position: fixed;
  4496. top: 0;
  4497. left: 0;
  4498. bottom: 0;
  4499. right: 0;
  4500. z-index: 999;
  4501. }
  4502. .__menu__wrapper[data-v-3d21bc0a] {
  4503. --menu-background: #c8f2f0;
  4504. --menu-boxShadow: 0 1px 5px #888;
  4505. --menu-padding: 5px 0;
  4506. --menu-borderRadius: 0;
  4507. --menu-item-height: 30px;
  4508. --menu-item-padding: 0 10px;
  4509. --menu-item-iconSize: 20px;
  4510. --menu-item-iconFontSize: 14px;
  4511. --menu-item-iconColor: #484852;
  4512. --menu-item-labelColor: #484852;
  4513. --menu-item-labelFontSize: 14px;
  4514. --menu-item-tipsColor: #889;
  4515. --menu-item-tipsFontSize: 12px;
  4516. --menu-item-arrowColor: #484852;
  4517. --menu-item-disabledColor: #bcc;
  4518. --menu-item-hoverBackground: rgba(255, 255, 255, 0.8);
  4519. --menu-item-hoverIconColor: inherit;
  4520. --menu-item-hoverLabelColor: inherit;
  4521. --menu-item-hoverTipsColor: inherit;
  4522. --menu-item-hoverArrowColor: inherit;
  4523. --menu-lineColor: #ccc;
  4524. --menu-lineMargin: 5px 0;
  4525. }
  4526. .__menu__wrapper[data-v-3d21bc0a] {
  4527. position: fixed;
  4528. width: 200px;
  4529. background: var(--menu-background);
  4530. box-shadow: var(--menu-boxShadow);
  4531. padding: var(--menu-padding);
  4532. border-radius: var(--menu-borderRadius);
  4533. z-index: 99999;
  4534. }
  4535. .__menu__line[data-v-3d21bc0a],
  4536. .__menu__sub__line[data-v-3d21bc0a] {
  4537. border-top: 1px solid var(--menu-lineColor);
  4538. margin: var(--menu-lineMargin);
  4539. }
  4540. .__menu__item[data-v-3d21bc0a],
  4541. .__menu__sub__item[data-v-3d21bc0a] {
  4542. display: flex;
  4543. height: var(--menu-item-height);
  4544. align-items: center;
  4545. cursor: pointer;
  4546. padding: var(--menu-item-padding);
  4547. }
  4548. .__menu__item .__menu__item-icon[data-v-3d21bc0a],
  4549. .__menu__sub__item .__menu__item-icon[data-v-3d21bc0a] {
  4550. display: flex;
  4551. align-items: center;
  4552. justify-content: center;
  4553. color: var(--menu-item-iconColor);
  4554. width: var(--menu-item-iconSize);
  4555. height: var(--menu-item-iconSize);
  4556. }
  4557. .__menu__item .__menu__item-icon i[data-v-3d21bc0a],
  4558. .__menu__sub__item .__menu__item-icon i[data-v-3d21bc0a] {
  4559. font-size: var(--menu-item-iconFontSize);
  4560. }
  4561. .__menu__item .__menu__item-icon .__menu__item-icon-svg[data-v-3d21bc0a],
  4562. .__menu__sub__item .__menu__item-icon .__menu__item-icon-svg[data-v-3d21bc0a] {
  4563. display: flex;
  4564. align-items: center;
  4565. justify-content: center;
  4566. width: 100%;
  4567. height: 100%;
  4568. }
  4569. .__menu__item .__menu__item-label[data-v-3d21bc0a],
  4570. .__menu__item .__menu__sub__item-label[data-v-3d21bc0a],
  4571. .__menu__sub__item .__menu__item-label[data-v-3d21bc0a],
  4572. .__menu__sub__item .__menu__sub__item-label[data-v-3d21bc0a] {
  4573. width: 100%;
  4574. max-height: 100%;
  4575. text-overflow: ellipsis;
  4576. white-space: nowrap;
  4577. flex: 1;
  4578. font-size: var(--menu-item-labelFontSize);
  4579. color: var(--menu-item-labelColor);
  4580. margin-right: 5px;
  4581. overflow: hidden;
  4582. }
  4583. .__menu__item .__menu__item-tips[data-v-3d21bc0a],
  4584. .__menu__item .__menu__sub__item-tips[data-v-3d21bc0a],
  4585. .__menu__sub__item .__menu__item-tips[data-v-3d21bc0a],
  4586. .__menu__sub__item .__menu__sub__item-tips[data-v-3d21bc0a] {
  4587. font-size: var(--menu-item-tipsFontSize);
  4588. color: var(--menu-item-tipsColor);
  4589. }
  4590. .__menu__item .__menu__item-arrow[data-v-3d21bc0a],
  4591. .__menu__sub__item .__menu__item-arrow[data-v-3d21bc0a] {
  4592. width: 10px;
  4593. height: 10px;
  4594. margin-left: 5px;
  4595. position: relative;
  4596. }
  4597. .__menu__item.disabled[data-v-3d21bc0a],
  4598. .__menu__sub__item.disabled[data-v-3d21bc0a] {
  4599. cursor: not-allowed;
  4600. }
  4601. .__menu__item.disabled .__menu__item-icon[data-v-3d21bc0a],
  4602. .__menu__item.disabled .__menu__item-label[data-v-3d21bc0a],
  4603. .__menu__item.disabled .__menu__sub__item-label[data-v-3d21bc0a],
  4604. .__menu__item.disabled .__menu__item-tips[data-v-3d21bc0a],
  4605. .__menu__item.disabled .__menu__sub__item-tips[data-v-3d21bc0a],
  4606. .__menu__sub__item.disabled .__menu__item-icon[data-v-3d21bc0a],
  4607. .__menu__sub__item.disabled .__menu__item-label[data-v-3d21bc0a],
  4608. .__menu__sub__item.disabled .__menu__sub__item-label[data-v-3d21bc0a],
  4609. .__menu__sub__item.disabled .__menu__item-tips[data-v-3d21bc0a],
  4610. .__menu__sub__item.disabled .__menu__sub__item-tips[data-v-3d21bc0a] {
  4611. color: var(--menu-item-disabledColor);
  4612. }
  4613. .__menu__item.disabled .__menu__item-arrow .__menu__item-arrow-after[data-v-3d21bc0a],
  4614. .__menu__sub__item.disabled .__menu__item-arrow .__menu__item-arrow-after[data-v-3d21bc0a] {
  4615. border-left: var(--menu-item-arrowRealSize) solid var(--menu-item-disabledColor);
  4616. }
  4617. .__menu__item[data-v-3d21bc0a]:not(.disabled):hover {
  4618. background: var(--menu-item-hoverBackground);
  4619. }
  4620. .__menu__item:not(.disabled):hover .__menu__item-icon[data-v-3d21bc0a] {
  4621. color: var(--menu-item-hoverIconColor);
  4622. }
  4623. .__menu__item:not(.disabled):hover .__menu__item-label[data-v-3d21bc0a] {
  4624. color: var(--menu-item-hoverLabelColor);
  4625. }
  4626. .__menu__item:not(.disabled):hover .__menu__item-tips[data-v-3d21bc0a] {
  4627. color: var(--menu-item-hoverTipsColor);
  4628. }
  4629. .__menu__item:not(.disabled):hover .__menu__item-arrow[data-v-3d21bc0a] {
  4630. color: var(--menu-item-hoverArrowColor);
  4631. }
  4632. .__menu__sub__item[data-v-3d21bc0a]:not(.disabled):hover {
  4633. background: var(--menu-item-hoverBackground);
  4634. }
  4635. .__menu__sub__item:not(.disabled):hover .__menu__sub__item-label[data-v-3d21bc0a] {
  4636. color: var(--menu-item-hoverLabelColor);
  4637. }
  4638. .__menu__sub__item:not(.disabled):hover .__menu__sub__item-tips[data-v-3d21bc0a] {
  4639. color: var(--menu-item-hoverTipsColor);
  4640. }
  4641. .__menu__item-icon[data-v-3d21bc0a] {
  4642. width: 20px;
  4643. height: 20px;
  4644. text-align: center;
  4645. line-height: 20px;
  4646. margin-right: 4px;
  4647. }
  4648. .__menu__item-arrow.show .__menu__item-arrow-after[data-v-3d21bc0a] {
  4649. position: absolute;
  4650. width: 0;
  4651. height: 0;
  4652. left: 8px;
  4653. border-left: var(--menu-item-arrowRealSize) solid var(--menu-item-arrowColor);
  4654. border-top: var(--menu-item-arrowRealSize) solid transparent;
  4655. border-bottom: var(--menu-item-arrowRealSize) solid transparent;
  4656. }
  4657. .__menu__sub__wrapper[data-v-3d21bc0a] {
  4658. position: fixed;
  4659. visibility: hidden;
  4660. width: 200px;
  4661. background: var(--menu-background);
  4662. box-shadow: var(--menu-boxShadow);
  4663. padding: var(--menu-padding);
  4664. border-radius: var(--menu-borderRadius);
  4665. }
  4666. .__menu__item:hover .__menu__sub__wrapper[data-v-3d21bc0a] {
  4667. visibility: visible;
  4668. }`;styleInject(css_248z);script.render=render;script.__scopeId="data-v-3d21bc0a";script.__file="packages/mouse-menu/mouse-menu.vue";function createClassDom(t,e,r){let n=document.createElement(t);return n.setAttribute("class",e),r&&(n.innerText=r),n}script.install=t=>{t.component(script.name,script)};function CustomMouseMenu(t){var o;const e="__mouse__menu__container";let r;document.querySelector(`.${e}`)?r=document.querySelector(`.${e}`):r=createClassDom("div",e);const n=createVNode(script,t);return render$1(n,r),document.body.appendChild(r),(o=n.component)==null?void 0:o.proxy}let MouseMenuCtx,longPressTimer,longPressTouchStart,longPressTouchEnd;function addLongPressListener(t,e,r=500,n){longPressTouchStart=o=>{MouseMenuCtx&&MouseMenuCtx.close(),typeof n=="function"?n(o,t)&&o.preventDefault():typeof n=="boolean"&&n&&o.preventDefault(),longPressTimer&&clearTimeout(longPressTimer),longPressTimer=window.setTimeout(()=>{e(o)},r)},longPressTouchEnd=()=>{clearTimeout(longPressTimer)},t.addEventListener("touchstart",longPressTouchStart),t.addEventListener("touchmove",longPressTouchEnd),t.addEventListener("touchend",longPressTouchEnd),t.addEventListener("touchcancel",longPressTouchEnd)}function removeLongPressListener(t){t.removeEventListener("touchstart",longPressTouchStart),t.removeEventListener("touchmove",longPressTouchEnd),t.removeEventListener("touchend",longPressTouchEnd),t.removeEventListener("touchcancel",longPressTouchEnd)}let contextMenuEvent,longPressEvent;const mounted$3=(t,e)=>{const{value:r}=e;if(r.menuList.length>0)contextMenuEvent=n=>{if(typeof r.disabled=="function"&&r.disabled(r.params))return;n.preventDefault(),MouseMenuCtx=CustomMouseMenu(Pt({el:t},r));const{x:o,y:s}=n;MouseMenuCtx.show(o,s)},t.removeEventListener("contextmenu",contextMenuEvent),t.addEventListener("contextmenu",contextMenuEvent),r.useLongPressInMobile&&"ontouchstart"in window&&(longPressEvent=n=>{if(typeof r.disabled=="function"&&r.disabled(r.params))return;MouseMenuCtx=CustomMouseMenu(Pt({el:t},r));const{touches:o}=n,{clientX:s,clientY:c}=o[0];MouseMenuCtx.show(s,c),document.onmousedown=null,t.onmousedown=null,setTimeout(()=>{document.onmousedown=()=>MouseMenuCtx.close(),t.onmousedown=()=>MouseMenuCtx.close()},500)},removeLongPressListener(t),addLongPressListener(t,longPressEvent,r.longPressDuration||500,r.longPressPreventDefault));else throw new Error("At least set one menu list!")},unmounted$2=t=>{t.removeEventListener("contextmenu",contextMenuEvent),"touchstart"in window&&removeLongPressListener(t)},MouseMenuDirective={mounted:mounted$3,unmounted:unmounted$2};function getComputedStyleList(t,e,r=!1){const n={},o=window.getComputedStyle(t);return e.map(s=>{let c=o[s];if(r){const l=c.match(/\d+/);l&&(c=~~l[0])}n[s]=c}),n}class ToDrag{constructor({el:e,options:r}){this.left=0,this.top=0,this.right=0,this.bottom=0,this.width=0,this.height=0,this.maxX=0,this.maxY=0,this.startX=0,this.startY=0,this.getScrollbarWidth=()=>{const n=document.createElement("div");n.style.cssText="width:100px;height:100px;overflow-y:scroll",document.body.appendChild(n);const o=n.offsetWidth-n.clientWidth;return document.body.removeChild(n),o},this.setBetween=(n,o,s)=>n<o?o:n>s?s:n,this.borderInfo=[0,0,0,0],this.el=e instanceof HTMLElement?e:document.querySelector(e),this.scrollbarWidth=this.getScrollbarWidth(),this.isTouch="ontouchstart"in document.documentElement,this.isDrag=!1,this.options=Object.assign({moveCursor:!0,adsorb:0,adsorbOffset:0,transitionDuration:400,transitionTimingFunction:"ease-in-out",forbidBodyScroll:!0,isAbsolute:!1,positionMode:1,needComputeBorder:!0},r),this.parent=this.options.parentSelector&&document.querySelector(this.options.parentSelector)||this.el.parentNode,this.options.transitionDuration&&(this.options.transitionDuration=this.options.transitionDuration/1e3),this.handleTouchStart=this.handleTouchStart.bind(this),this.handleMousedown=this.handleMousedown.bind(this),this.moveEvent=this.moveEvent.bind(this),this.endEvent=this.endEvent.bind(this),this.init()}init(){this.isTouch?this.el.addEventListener("touchstart",this.handleTouchStart):this.el.addEventListener("mousedown",this.handleMousedown),this.options.moveCursor&&(this.el.style.cursor="move"),this.setPosition(),this.setLimit(),this.handleAdsorb(),this.handlePositionMode(),setTimeout(()=>{this.emitEvent("todraginit")})}handleMousedown(e){if(typeof this.options.disabled=="function"&&this.options.disabled())return;const{x:r,y:n}=e;this.setStartInfo(r,n),document.addEventListener("mousemove",this.moveEvent),document.addEventListener("mouseup",this.endEvent)}handleTouchStart(e){if(typeof this.options.disabled=="function"&&this.options.disabled())return;const r=this.isTouch?e.changedTouches[0].clientX:e.x,n=this.isTouch?e.changedTouches[0].clientY:e.y;this.setStartInfo(r,n),document.addEventListener("touchmove",this.moveEvent,{passive:!1}),document.addEventListener("touchend",this.endEvent)}setPosition(){const{left:e,top:r,width:n,height:o}=this.el.getBoundingClientRect();this.left=e,this.top=r,this.width=n,this.height=o,this.options.isAbsolute?(this.maxX=this.parent.offsetWidth-this.width,this.maxY=this.parent.offsetHeight-this.height):(this.maxX=document.body.scrollWidth>window.innerWidth?window.innerWidth-this.width-this.scrollbarWidth:window.innerWidth-this.width,this.maxY=document.body.scrollHeight>window.innerHeight?window.innerHeight-this.height-this.scrollbarWidth:window.innerHeight-this.height)}setStartInfo(e,r){this.setPosition(),this.setLimit(),this.startX=e-this.left,this.startY=r-this.top,this.isDrag=!0,this.el.style.transition="",document.body.style.userSelect="none",this.options.forbidBodyScroll&&(document.body.style.overflow="hidden"),this.emitEvent("todragstart")}moveEvent(e){if(!this.isDrag)return;e.preventDefault();let r,n;const o=this.isTouch?e.changedTouches[0].clientX:e.x,s=this.isTouch?e.changedTouches[0].clientY:e.y;if(!this.options.isAbsolute)r=o-this.startX,n=s-this.startY;else{const c=this.parent.getClientRects()[0];r=o-c.x-this.startX-this.borderInfo[1],n=s-c.y-this.startY-this.borderInfo[2]}this.left=this.setBetween(r,0,this.maxX-this.borderInfo[1]-this.borderInfo[3]),this.top=this.setBetween(n,0,this.maxY-this.borderInfo[2]-this.borderInfo[0]),this.el.style.left=this.left+"px",this.el.style.top=this.top+"px",this.emitEvent("todragmove")}endEvent(){this.isDrag=!1,document.removeEventListener("mousemove",this.moveEvent),document.removeEventListener("mouseup",this.endEvent),document.removeEventListener("touchmove",this.moveEvent),document.removeEventListener("touchend",this.endEvent),document.body.style.userSelect="auto",this.options.forbidBodyScroll&&(document.body.style.overflow="visible"),this.handleAdsorb(),this.handlePositionMode(),this.emitEvent("todragend")}handleAdsorb(){if(this.options.isAbsolute)return;const e=[this.left+this.width/2,this.top+this.height/2],r=[window.innerWidth,window.innerHeight];if(this.el.style.transition=`left ${this.options.transitionDuration}s ${this.options.transitionTimingFunction},
  4669. top ${this.options.transitionDuration}s ${this.options.transitionTimingFunction}`,this.options.adsorb===1)e[0]<=window.innerWidth/2?this.left=this.options.adsorbOffset:this.left=this.maxX-this.options.adsorbOffset;else if(this.options.adsorb===2){const n=r[1]/r[0],o=r[1]/-r[0],s=e[1]/e[0],c=e[1]/(e[0]-r[0]);n>=s&&o<c?this.top=this.options.adsorbOffset:n>=s&&o>=c?this.left=this.maxX-this.options.adsorbOffset:n<s&&o>=c?this.top=this.maxY-this.options.adsorbOffset:this.left=this.options.adsorbOffset,this.options.adsorbOffset&&(this.top===0&&(this.top=this.options.adsorbOffset),this.top===this.maxY&&(this.top=this.maxY-this.options.adsorbOffset),this.left===0&&(this.left=this.options.adsorbOffset),this.left===this.maxX&&(this.left=this.maxX-this.options.adsorbOffset))}this.el.style.left=this.left+"px",this.el.style.top=this.top+"px"}handlePositionMode(){if(this.options.adsorb)return;const e=this.options.isAbsolute?this.el.offsetLeft:this.left,r=this.options.isAbsolute?this.el.offsetTop:this.top;this.right=this.maxX-e-this.borderInfo[1]-this.borderInfo[3],this.bottom=this.maxY-r-this.borderInfo[2]-this.borderInfo[0],this.options.positionMode===2?(this.el.style.left="auto",this.el.style.right=this.right+"px"):this.options.positionMode===3?(this.el.style.top="auto",this.el.style.bottom=this.bottom+"px"):this.options.positionMode===4&&(this.el.style.left="auto",this.el.style.top="auto",this.el.style.right=this.right+"px",this.el.style.bottom=this.bottom+"px")}emitEvent(e){const r=document.createEvent("HTMLEvents");r.initEvent(e,!1,!1);const{left:n,top:o,right:s,bottom:c,width:l,height:v,maxX:x,maxY:w}=this;r.left=n,r.top=o,r.width=l,r.height=v,r.maxX=x,r.maxY=w,r.right=s,r.bottom=c,this.el.dispatchEvent(r)}destroy(){this.isTouch?this.el.removeEventListener("touchstart",this.handleTouchStart):this.el.removeEventListener("mousedown",this.handleMousedown)}setLimit(){if(!this.options.isAbsolute||!this.options.needComputeBorder)return;const e=["top","right","bottom","left"],r=getComputedStyleList(this.parent,[...e.map(n=>`border-${n}-width`)],!0);this.borderInfo=e.map(n=>r[`border-${n}-width`])}}class ToControl extends ToDrag{constructor({el:e,options:r}){super({el:e,options:Object.assign({adsorb:0,adsorbOffset:0,isAbsolute:!1,positionMode:1},r)}),this.arrowCtx=null,this.arrowStartX=0,this.arrowStartY=0,this.elWidth=0,this.elHeight=0,this.resizeFlag=!1,this.arrowMouseDownEvent=n=>{if(typeof this.controlOptions.disabled=="function"&&this.controlOptions.disabled())return;const o=this.isTouch?n.changedTouches[0].clientX:n.x,s=this.isTouch?n.changedTouches[0].clientY:n.y,{width:c,height:l,left:v,top:x}=this.el.getBoundingClientRect(),{width:w,height:_}=this.parent.getBoundingClientRect();this.arrowStartX=o,this.arrowStartY=s,this.elWidth=c,this.elHeight=l,this.resizeFlag=!0;let b,E;this.controlOptions.isAbsolute?(b=w-this.el.offsetLeft-this.borderInfo[1]-this.borderInfo[3],E=_-this.el.offsetTop-this.borderInfo[0]-this.borderInfo[2]):(b=window.innerWidth-v,E=window.innerHeight-x),setTimeout(()=>{this.isDrag=!1}),this.el.style.left=`${this.controlOptions.isAbsolute?this.el.offsetLeft:v}px`,this.el.style.top=`${this.controlOptions.isAbsolute?this.el.offsetTop:x}px`,this.el.style.right="auto",this.el.style.bottom="auto",this.emitControlEvent("tocontrolstart"),this.isTouch?(document.ontouchmove=I=>{if(!this.resizeFlag||!I.changedTouches)return;const{clientX:O,clientY:N}=I.changedTouches[0];this.el.style.width=`${Math.min(this.elWidth+O-this.arrowStartX,b)}px`,this.el.style.height=`${Math.min(this.elHeight+N-this.arrowStartY,E)}px`,this.emitControlEvent("tocontrolmove")},document.ontouchend=()=>{this.setPosition(),this.resizeFlag=!1,document.ontouchmove=null,document.ontouchend=null,this.emitControlEvent("tocontrolend")}):(document.onmousemove=I=>{if(!this.resizeFlag)return;const{x:O,y:N}=I;this.el.style.width=`${Math.min(this.elWidth+O-this.arrowStartX,b)}px`,this.el.style.height=`${Math.min(this.elHeight+N-this.arrowStartY,E)}px`,this.emitControlEvent("tocontrolmove")},document.onmouseup=()=>{this.setPosition(),this.resizeFlag=!1,document.onmousemove=null,document.onmouseup=null,this.emitControlEvent("tocontrolend")})},this.controlOptions=r||{},this.initControl()}initControl(){var e;this.arrowCtx=this.createResizeArrow((e=this.controlOptions)===null||e===void 0?void 0:e.arrowOptions),this.el.appendChild(this.arrowCtx)}updateArrow(){var e;this.arrowCtx&&this.el.contains(this.arrowCtx)&&this.el.removeChild(this.arrowCtx),this.arrowCtx=this.createResizeArrow((e=this.controlOptions)===null||e===void 0?void 0:e.arrowOptions),this.el.appendChild(this.arrowCtx)}createResizeArrow(e){const r=typeof this.controlOptions.disabled=="function"&&this.controlOptions.disabled(),n=Object.assign({size:8,lineWidth:2,lineColor:"#9a9a9a",padding:2},e),o=document.createElement("div");o.style.cssText=`
  4670. position: absolute;
  4671. right: 0;
  4672. bottom: 0;
  4673. padding: ${n.padding}px;
  4674. cursor: se-resize;
  4675. background: ${n.background||"none"};
  4676. display: ${r?"none":"block"}
  4677. `,o.className="to-control-arrow";const s=document.createElement("div");return s.style.cssText=`
  4678. width: ${n.size}px;
  4679. height: ${n.size}px;
  4680. border-bottom: ${n.lineWidth}px solid ${n.lineColor};
  4681. border-right: ${n.lineWidth}px solid ${n.lineColor};
  4682. `,s.className="to-control-arrow-inner",o.appendChild(s),this.isTouch?o.addEventListener("touchstart",this.arrowMouseDownEvent):o.addEventListener("mousedown",this.arrowMouseDownEvent),o}destroyControl(){var e,r;this.destroy(),this.isTouch?(e=this.arrowCtx)===null||e===void 0||e.removeEventListener("touchstart",this.arrowMouseDownEvent):(r=this.arrowCtx)===null||r===void 0||r.removeEventListener("mousedown",this.arrowMouseDownEvent)}emitControlEvent(e){const r=document.createEvent("HTMLEvents");r.initEvent(e,!1,!1);const{left:n,top:o,right:s,bottom:c,width:l,height:v,maxX:x,maxY:w}=this;r.left=n,r.top=o,r.width=l,r.height=v,r.maxX=x,r.maxY=w,r.right=s,r.bottom=c,this.el.dispatchEvent(r)}}const mounted$2=(t,e,r)=>{const{value:n}=e,s=Object.assign(Object.assign({},r||{}),n);t.$toControl=new ToControl({el:t,options:s})},beforeUpdate=t=>{t.$toControl&&t.$toControl.updateArrow()},unmounted$1=t=>{t.$toControl&&t.$toControl.destroy()},ToControlDirective={mounted:(t,e)=>mounted$2(t,e),unmounted:unmounted$1,beforeUpdate,inserted:(t,e)=>mounted$2(t,e),unbind:unmounted$1,update:beforeUpdate,install:(t,e)=>{t.directive("to-control",{mounted:(r,n)=>mounted$2(r,n,e),unmounted:unmounted$1,beforeUpdate,inserted:(r,n)=>mounted$2(r,n,e),unbind:unmounted$1,update:beforeUpdate})}};class CustomResize{constructor({el:e,options:r}){e instanceof HTMLElement?this.el=e:this.el=document.querySelector(e),this.options=Object.assign({immediate:!1,direction:["right"],scrollElSelector:null,lineColor:"#aab",lineWidth:2,lineHoverColor:"#88f",lineHoverWidth:4,tipLineColor:"#262626",tipLineWidth:1,tipLineStyle:"dashed",zIndex:999,needParentNodeOffset:!0},r),this.directionArr=this.options.direction||["right"],this.el.$resize=this}init(){const{position:e}=getComputedStyle(this.el),{position:r}=getComputedStyle(this.el.parentNode);e==="static"&&(this.el.style.position="relative"),r==="static"&&console.warn("[@howdyjs/resize] Element parentNode position can not be static!"),this.directionArr.map(n=>{if(this.options.immediate){const o=this.createLineEl(n);this.el.appendChild(o)}else{const o=this.createDashedLineEl(n),s=this.createLineEl(n,o);this.el.appendChild(o),this.el.appendChild(s)}})}createDashedLineEl(e){const{tipLineColor:r,tipLineWidth:n,tipLineStyle:o,zIndex:s}=this.options,c=document.createElement("div"),l=`position:absolute;z-index: ${s};visibility: hidden;`,v=e==="left"||e==="right";return c.style.cssText=v?`${l};top:0;bottom: 0;${e}:0;border-${e}:${n}px ${o} ${r}`:`${l};left:0;right: 0;${e}:0;border-${e}:${n}px ${o} ${r}`,c.setAttribute("class","resize__dashed-line"),c}createLineEl(e,r){const{immediate:n,lineColor:o,lineWidth:s,lineHoverColor:c,lineHoverWidth:l,zIndex:v}=this.options,x=document.createElement("div"),w=`position: absolute;background: ${o};z-index: ${v}`,_=e==="left"||e==="right",b=e==="right"||e==="bottom";x.style.cssText=_?`${w};width: ${s}px;top:0;bottom: 0;${e}: -${s/2}px;cursor: col-resize;`:`${w};height: ${s}px;left:0;right: 0;${e}: -${s/2}px;cursor: row-resize;`,x.mouseoverEvent=function(){x.style.background=c,x.style[_?"width":"height"]=`${l}px`,x.style[e]=`-${l/2}px`},x.mouseoutEvent=function(){x.style.background=o,x.style[_?"width":"height"]=`${s}px`,x.style[e]=`-${s/2}px`};const E=this.el;return x.mousedownEvent=function(I){const N=(E||I.target.parentNode).parentNode;let A;const z=_?N.offsetWidth:N.offsetHeight;document.body.style.userSelect="none";let G=!0;const V=()=>{const ne=_?E.offsetWidth:E.offsetHeight,W=_?E.offsetLeft:E.offsetTop,B=b?W+ne+A:W+A,q=b?ne+A:ne-A,D=document.createEvent("HTMLEvents");D.initEvent("resize",!1,!1),D.direction=e,D.moveOffset=B,D.moveOffsetPercent=B/z*100,D[_?"resizeWidth":"resizeHeight"]=q,D[_?"resizeWidthPercent":"resizeHeightPercent"]=q/z*100,E.dispatchEvent(D)};document.onmousemove=function(ne){ne.preventDefault();const{x:W,y:B}=E.getBoundingClientRect(),q=_?E.offsetWidth:E.offsetHeight,D=_?E.offsetLeft:E.offsetTop;A=b?_?ne.clientX-W-q:ne.clientY-B-q:_?ne.clientX-W:ne.clientY-B,G=b?-A<=q&&D+q+A<=z:A<=q&&D+A>=0,G&&(n?V():r&&(r.style.visibility="visible",r.style[e]=`${b?-A:A}px`))},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null,document.body.style.userSelect="auto",n||(r&&(r.style.visibility="hidden"),G&&(V(),r&&(r.style[e]="0px")))}},x.setAttribute("class","resize__line"),x.addEventListener("mousemove",x.mouseoverEvent),x.addEventListener("mouseout",x.mouseoutEvent),x.addEventListener("mousedown",x.mousedownEvent),x}destroy(){Array.prototype.slice.call(this.el.querySelectorAll(".resize__line")).forEach(r=>{r.mouseoverEvent&&r.removeEventListener("mousemove",r.mouseoverEvent),r.mouseoutEvent&&r.removeEventListener("mouseout",r.mouseoutEvent),r.mousedownEvent&&r.removeEventListener("mousedown",r.mousedownEvent),r.parentNode&&r.parentNode.removeChild(r)}),this.el.querySelectorAll(".resize__dashed-line").forEach(r=>{r.parentNode&&r.parentNode.removeChild(r)})}}const mounted$1=(t,e,r)=>{const{arg:n,value:o}=e,s=r||{};let c,l;n&&(n==="all"?c=["top","left","bottom","right"]:c=[n]),c?l=Object.assign(Object.assign(Object.assign({},s),o),{direction:c}):l=Object.assign(Object.assign({},s),o),new CustomResize({el:t,options:l}).init()},unmounted=t=>{t.$resize&&t.$resize.destroy()},ResizeDirective={mounted:(t,e)=>mounted$1(t,e),unmounted,inserted:(t,e)=>mounted$1(t,e),unbind:unmounted,install:(t,e)=>{t.directive("resize",{mounted:(r,n)=>mounted$1(r,n,e),unmounted,inserted:(r,n)=>mounted$1(r,n,e),unbind:unmounted})}},useResize=(t={})=>({resizeOptions:reactive(Pt({immediate:!1,lineWidth:3,lineColor:"",lineHoverWidth:6,lineHoverColor:"#70A8E0",tipLineColor:"#70A8E0",tipLineWidth:3},t)),vResize:ResizeDirective,CustomResize}),mouseMenu={install(t){t.directive("right-click-menu",MouseMenuDirective),t.directive("to-control",ToControlDirective)}},TextAreaWrap={MaxHeight:800,MinHeight:66},key="Mx_consoleHeight",_localHeight=localStorage.getItem(key),localHeight=_localHeight?Number(_localHeight):68,height=ref(localHeight),useConsoleResize=()=>{const{vResize:t,resizeOptions:e}=useResize({direction:["top"]}),{mainRect:r}=useLayout();return{vResize:t,resizeOptions:e,height,handleResize:o=>{o.resizeHeight&&(height.value+=o.resizeHeight-r.value.bottom,height.value>TextAreaWrap.MaxHeight&&(height.value=TextAreaWrap.MaxHeight),height.value<TextAreaWrap.MinHeight&&(height.value=TextAreaWrap.MinHeight),localStorage.setItem(key,height.value.toString()))}}},useSysVarLongSketchSettings=()=>{const t=ref([]),e=ref(sysVarLongSketchSettingsKeys.map((r,n)=>{const o=SysVarLongSketchSettings[r],s=SysVarLongSketchSettings.GRIDMODE===o||SysVarLongSketchSettings.AUTOSNAP===o||SysVarLongSketchSettings.OSMODE===o;return{name:o,isMenu:s,menuOptions:s?useRightClickMenuOptions({hasIcon:!0,menuList:[{label:"\u8BBE\u7F6E",fn:()=>{switch(o){case SysVarLongSketchSettings.GRIDMODE:callCommand("showDraftingSettingsDialog",{tab:2});return;case SysVarLongSketchSettings.AUTOSNAP:callCommand("showDraftingSettingsDialog",{tab:1});return;case SysVarLongSketchSettings.OSMODE:callCommand("showDraftingSettingsDialog",{tab:3});return}}},{label:"\u5F00",fn:()=>{setSysVarLongSketchSettings(r,Status.On)},icon:()=>t.value.includes(n)?"iconfont gou":""},{label:"\u5173",fn:()=>{setSysVarLongSketchSettings(r,Status.Off)},icon:()=>t.value.includes(n)?"":"iconfont gou"}]}):null}}).filter(({name:r})=>(uiConfig.footerRightBtnSwitchData||[]).includes(r)));return watch(t,(r,n)=>{sysVarLongSketchSettingsKeys.forEach((o,s)=>{let c=n.includes(s),l=r.includes(s);c&&!l&&setSysVarLongSketchSettings(o,Status.Off),!c&&l&&setSysVarLongSketchSettings(o,Status.On)})}),watch(sysVarLongSketchSettings,r=>{const n=[];sysVarLongSketchSettingsKeys.forEach((o,s)=>{r[o]===Status.On&&n.push(s)}),t.value=n}),{items:e,actives:t}};var jquery={exports:{}};/*!
  4683. * jQuery JavaScript Library v3.7.1
  4684. * https://jquery.com/
  4685. *
  4686. * Copyright OpenJS Foundation and other contributors
  4687. * Released under the MIT license
  4688. * https://jquery.org/license
  4689. *
  4690. * Date: 2023-08-28T13:37Z
  4691. */(function(t){(function(e,r){t.exports=e.document?r(e,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return r(n)}})(typeof window!="undefined"?window:commonjsGlobal$1,function(e,r){var n=[],o=Object.getPrototypeOf,s=n.slice,c=n.flat?function(J){return n.flat.call(J)}:function(J){return n.concat.apply([],J)},l=n.push,v=n.indexOf,x={},w=x.toString,_=x.hasOwnProperty,b=_.toString,E=b.call(Object),I={},O=function(ae){return typeof ae=="function"&&typeof ae.nodeType!="number"&&typeof ae.item!="function"},N=function(ae){return ae!=null&&ae===ae.window},A=e.document,z={type:!0,src:!0,nonce:!0,noModule:!0};function G(J,ae,ve){ve=ve||A;var be,Re,Ge=ve.createElement("script");if(Ge.text=J,ae)for(be in z)Re=ae[be]||ae.getAttribute&&ae.getAttribute(be),Re&&Ge.setAttribute(be,Re);ve.head.appendChild(Ge).parentNode.removeChild(Ge)}function V(J){return J==null?J+"":typeof J=="object"||typeof J=="function"?x[w.call(J)]||"object":typeof J}var ne="3.7.1",W=/HTML$/i,B=function(J,ae){return new B.fn.init(J,ae)};B.fn=B.prototype={jquery:ne,constructor:B,length:0,toArray:function(){return s.call(this)},get:function(J){return J==null?s.call(this):J<0?this[J+this.length]:this[J]},pushStack:function(J){var ae=B.merge(this.constructor(),J);return ae.prevObject=this,ae},each:function(J){return B.each(this,J)},map:function(J){return this.pushStack(B.map(this,function(ae,ve){return J.call(ae,ve,ae)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(B.grep(this,function(J,ae){return(ae+1)%2}))},odd:function(){return this.pushStack(B.grep(this,function(J,ae){return ae%2}))},eq:function(J){var ae=this.length,ve=+J+(J<0?ae:0);return this.pushStack(ve>=0&&ve<ae?[this[ve]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:n.sort,splice:n.splice},B.extend=B.fn.extend=function(){var J,ae,ve,be,Re,Ge,rt=arguments[0]||{},Dt=1,Mt=arguments.length,Yt=!1;for(typeof rt=="boolean"&&(Yt=rt,rt=arguments[Dt]||{},Dt++),typeof rt!="object"&&!O(rt)&&(rt={}),Dt===Mt&&(rt=this,Dt--);Dt<Mt;Dt++)if((J=arguments[Dt])!=null)for(ae in J)be=J[ae],!(ae==="__proto__"||rt===be)&&(Yt&&be&&(B.isPlainObject(be)||(Re=Array.isArray(be)))?(ve=rt[ae],Re&&!Array.isArray(ve)?Ge=[]:!Re&&!B.isPlainObject(ve)?Ge={}:Ge=ve,Re=!1,rt[ae]=B.extend(Yt,Ge,be)):be!==void 0&&(rt[ae]=be));return rt},B.extend({expando:"jQuery"+(ne+Math.random()).replace(/\D/g,""),isReady:!0,error:function(J){throw new Error(J)},noop:function(){},isPlainObject:function(J){var ae,ve;return!J||w.call(J)!=="[object Object]"?!1:(ae=o(J),ae?(ve=_.call(ae,"constructor")&&ae.constructor,typeof ve=="function"&&b.call(ve)===E):!0)},isEmptyObject:function(J){var ae;for(ae in J)return!1;return!0},globalEval:function(J,ae,ve){G(J,{nonce:ae&&ae.nonce},ve)},each:function(J,ae){var ve,be=0;if(q(J))for(ve=J.length;be<ve&&ae.call(J[be],be,J[be])!==!1;be++);else for(be in J)if(ae.call(J[be],be,J[be])===!1)break;return J},text:function(J){var ae,ve="",be=0,Re=J.nodeType;if(!Re)for(;ae=J[be++];)ve+=B.text(ae);return Re===1||Re===11?J.textContent:Re===9?J.documentElement.textContent:Re===3||Re===4?J.nodeValue:ve},makeArray:function(J,ae){var ve=ae||[];return J!=null&&(q(Object(J))?B.merge(ve,typeof J=="string"?[J]:J):l.call(ve,J)),ve},inArray:function(J,ae,ve){return ae==null?-1:v.call(ae,J,ve)},isXMLDoc:function(J){var ae=J&&J.namespaceURI,ve=J&&(J.ownerDocument||J).documentElement;return!W.test(ae||ve&&ve.nodeName||"HTML")},merge:function(J,ae){for(var ve=+ae.length,be=0,Re=J.length;be<ve;be++)J[Re++]=ae[be];return J.length=Re,J},grep:function(J,ae,ve){for(var be,Re=[],Ge=0,rt=J.length,Dt=!ve;Ge<rt;Ge++)be=!ae(J[Ge],Ge),be!==Dt&&Re.push(J[Ge]);return Re},map:function(J,ae,ve){var be,Re,Ge=0,rt=[];if(q(J))for(be=J.length;Ge<be;Ge++)Re=ae(J[Ge],Ge,ve),Re!=null&&rt.push(Re);else for(Ge in J)Re=ae(J[Ge],Ge,ve),Re!=null&&rt.push(Re);return c(rt)},guid:1,support:I}),typeof Symbol=="function"&&(B.fn[Symbol.iterator]=n[Symbol.iterator]),B.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(J,ae){x["[object "+ae+"]"]=ae.toLowerCase()});function q(J){var ae=!!J&&"length"in J&&J.length,ve=V(J);return O(J)||N(J)?!1:ve==="array"||ae===0||typeof ae=="number"&&ae>0&&ae-1 in J}function D(J,ae){return J.nodeName&&J.nodeName.toLowerCase()===ae.toLowerCase()}var F=n.pop,re=n.sort,le=n.splice,fe="[\\x20\\t\\r\\n\\f]",me=new RegExp("^"+fe+"+|((?:^|[^\\\\])(?:\\\\.)*)"+fe+"+$","g");B.contains=function(J,ae){var ve=ae&&ae.parentNode;return J===ve||!!(ve&&ve.nodeType===1&&(J.contains?J.contains(ve):J.compareDocumentPosition&&J.compareDocumentPosition(ve)&16))};var ye=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function Te(J,ae){return ae?J==="\0"?"\uFFFD":J.slice(0,-1)+"\\"+J.charCodeAt(J.length-1).toString(16)+" ":"\\"+J}B.escapeSelector=function(J){return(J+"").replace(ye,Te)};var ke=A,Le=l;(function(){var J,ae,ve,be,Re,Ge=Le,rt,Dt,Mt,Yt,Xn,Sn=B.expando,Gn=0,Or=0,ki=bu(),Ia=bu(),ma=bu(),na=bu(),Ya=function(Vt,Wt){return Vt===Wt&&(Re=!0),0},Da="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Yi="(?:\\\\[\\da-fA-F]{1,6}"+fe+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Ba="\\["+fe+"*("+Yi+")(?:"+fe+"*([*^$|!~]?=)"+fe+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Yi+"))|)"+fe+"*\\]",gl=":("+Yi+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Ba+")*)|.*)\\)|)",Oa=new RegExp(fe+"+","g"),Oo=new RegExp("^"+fe+"*,"+fe+"*"),Ls=new RegExp("^"+fe+"*([>+~]|"+fe+")"+fe+"*"),Ss=new RegExp(fe+"|>"),Es=new RegExp(gl),vs=new RegExp("^"+Yi+"$"),po={ID:new RegExp("^#("+Yi+")"),CLASS:new RegExp("^\\.("+Yi+")"),TAG:new RegExp("^("+Yi+"|[*])"),ATTR:new RegExp("^"+Ba),PSEUDO:new RegExp("^"+gl),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+fe+"*(even|odd|(([+-]|)(\\d*)n|)"+fe+"*(?:([+-]|)"+fe+"*(\\d+)|))"+fe+"*\\)|)","i"),bool:new RegExp("^(?:"+Da+")$","i"),needsContext:new RegExp("^"+fe+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+fe+"*((?:-\\d)?\\d*)"+fe+"*\\)|)(?=[^-]|$)","i")},oo=/^(?:input|select|textarea|button)$/i,Ko=/^h\d$/i,Ts=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,as=/[+~]/,Qi=new RegExp("\\\\[\\da-fA-F]{1,6}"+fe+"?|\\\\([^\\r\\n\\f])","g"),Io=function(Vt,Wt){var Jn="0x"+Vt.slice(1)-65536;return Wt||(Jn<0?String.fromCharCode(Jn+65536):String.fromCharCode(Jn>>10|55296,Jn&1023|56320))},Jo=function(){Bl()},fo=ds(function(Vt){return Vt.disabled===!0&&D(Vt,"fieldset")},{dir:"parentNode",next:"legend"});function ul(){try{return rt.activeElement}catch(Vt){}}try{Ge.apply(n=s.call(ke.childNodes),ke.childNodes),n[ke.childNodes.length].nodeType}catch(Vt){Ge={apply:function(Wt,Jn){Le.apply(Wt,s.call(Jn))},call:function(Wt){Le.apply(Wt,s.call(arguments,1))}}}function lo(Vt,Wt,Jn,Vn){var Bn,Hn,kr,fi,oi,da,St,zi=Wt&&Wt.ownerDocument,Fr=Wt?Wt.nodeType:9;if(Jn=Jn||[],typeof Vt!="string"||!Vt||Fr!==1&&Fr!==9&&Fr!==11)return Jn;if(!Vn&&(Bl(Wt),Wt=Wt||rt,Mt)){if(Fr!==11&&(oi=Ts.exec(Vt)))if(Bn=oi[1]){if(Fr===9)if(kr=Wt.getElementById(Bn)){if(kr.id===Bn)return Ge.call(Jn,kr),Jn}else return Jn;else if(zi&&(kr=zi.getElementById(Bn))&&lo.contains(Wt,kr)&&kr.id===Bn)return Ge.call(Jn,kr),Jn}else{if(oi[2])return Ge.apply(Jn,Wt.getElementsByTagName(Vt)),Jn;if((Bn=oi[3])&&Wt.getElementsByClassName)return Ge.apply(Jn,Wt.getElementsByClassName(Bn)),Jn}if(!na[Vt+" "]&&(!Yt||!Yt.test(Vt))){if(St=Vt,zi=Wt,Fr===1&&(Ss.test(Vt)||Ls.test(Vt))){for(zi=as.test(Vt)&&Xl(Wt.parentNode)||Wt,(zi!=Wt||!I.scope)&&((fi=Wt.getAttribute("id"))?fi=B.escapeSelector(fi):Wt.setAttribute("id",fi=Sn)),da=zo(Vt),Hn=da.length;Hn--;)da[Hn]=(fi?"#"+fi:":scope")+" "+wu(da[Hn]);St=da.join(",")}try{return Ge.apply(Jn,zi.querySelectorAll(St)),Jn}catch(ni){na(Vt,!0)}finally{fi===Sn&&Wt.removeAttribute("id")}}}return Ci(Vt.replace(me,"$1"),Wt,Jn,Vn)}function bu(){var Vt=[];function Wt(Jn,Vn){return Vt.push(Jn+" ")>ae.cacheLength&&delete Wt[Vt.shift()],Wt[Jn+" "]=Vn}return Wt}function Wo(Vt){return Vt[Sn]=!0,Vt}function Ds(Vt){var Wt=rt.createElement("fieldset");try{return!!Vt(Wt)}catch(Jn){return!1}finally{Wt.parentNode&&Wt.parentNode.removeChild(Wt),Wt=null}}function os(Vt){return function(Wt){return D(Wt,"input")&&Wt.type===Vt}}function Ou(Vt){return function(Wt){return(D(Wt,"input")||D(Wt,"button"))&&Wt.type===Vt}}function il(Vt){return function(Wt){return"form"in Wt?Wt.parentNode&&Wt.disabled===!1?"label"in Wt?"label"in Wt.parentNode?Wt.parentNode.disabled===Vt:Wt.disabled===Vt:Wt.isDisabled===Vt||Wt.isDisabled!==!Vt&&fo(Wt)===Vt:Wt.disabled===Vt:"label"in Wt?Wt.disabled===Vt:!1}}function zs(Vt){return Wo(function(Wt){return Wt=+Wt,Wo(function(Jn,Vn){for(var Bn,Hn=Vt([],Jn.length,Wt),kr=Hn.length;kr--;)Jn[Bn=Hn[kr]]&&(Jn[Bn]=!(Vn[Bn]=Jn[Bn]))})})}function Xl(Vt){return Vt&&typeof Vt.getElementsByTagName!="undefined"&&Vt}function Bl(Vt){var Wt,Jn=Vt?Vt.ownerDocument||Vt:ke;return Jn==rt||Jn.nodeType!==9||!Jn.documentElement||(rt=Jn,Dt=rt.documentElement,Mt=!B.isXMLDoc(rt),Xn=Dt.matches||Dt.webkitMatchesSelector||Dt.msMatchesSelector,Dt.msMatchesSelector&&ke!=rt&&(Wt=rt.defaultView)&&Wt.top!==Wt&&Wt.addEventListener("unload",Jo),I.getById=Ds(function(Vn){return Dt.appendChild(Vn).id=B.expando,!rt.getElementsByName||!rt.getElementsByName(B.expando).length}),I.disconnectedMatch=Ds(function(Vn){return Xn.call(Vn,"*")}),I.scope=Ds(function(){return rt.querySelectorAll(":scope")}),I.cssHas=Ds(function(){try{return rt.querySelector(":has(*,:jqfake)"),!1}catch(Vn){return!0}}),I.getById?(ae.filter.ID=function(Vn){var Bn=Vn.replace(Qi,Io);return function(Hn){return Hn.getAttribute("id")===Bn}},ae.find.ID=function(Vn,Bn){if(typeof Bn.getElementById!="undefined"&&Mt){var Hn=Bn.getElementById(Vn);return Hn?[Hn]:[]}}):(ae.filter.ID=function(Vn){var Bn=Vn.replace(Qi,Io);return function(Hn){var kr=typeof Hn.getAttributeNode!="undefined"&&Hn.getAttributeNode("id");return kr&&kr.value===Bn}},ae.find.ID=function(Vn,Bn){if(typeof Bn.getElementById!="undefined"&&Mt){var Hn,kr,fi,oi=Bn.getElementById(Vn);if(oi){if(Hn=oi.getAttributeNode("id"),Hn&&Hn.value===Vn)return[oi];for(fi=Bn.getElementsByName(Vn),kr=0;oi=fi[kr++];)if(Hn=oi.getAttributeNode("id"),Hn&&Hn.value===Vn)return[oi]}return[]}}),ae.find.TAG=function(Vn,Bn){return typeof Bn.getElementsByTagName!="undefined"?Bn.getElementsByTagName(Vn):Bn.querySelectorAll(Vn)},ae.find.CLASS=function(Vn,Bn){if(typeof Bn.getElementsByClassName!="undefined"&&Mt)return Bn.getElementsByClassName(Vn)},Yt=[],Ds(function(Vn){var Bn;Dt.appendChild(Vn).innerHTML="<a id='"+Sn+"' href='' disabled='disabled'></a><select id='"+Sn+"-\r\\' disabled='disabled'><option selected=''></option></select>",Vn.querySelectorAll("[selected]").length||Yt.push("\\["+fe+"*(?:value|"+Da+")"),Vn.querySelectorAll("[id~="+Sn+"-]").length||Yt.push("~="),Vn.querySelectorAll("a#"+Sn+"+*").length||Yt.push(".#.+[+~]"),Vn.querySelectorAll(":checked").length||Yt.push(":checked"),Bn=rt.createElement("input"),Bn.setAttribute("type","hidden"),Vn.appendChild(Bn).setAttribute("name","D"),Dt.appendChild(Vn).disabled=!0,Vn.querySelectorAll(":disabled").length!==2&&Yt.push(":enabled",":disabled"),Bn=rt.createElement("input"),Bn.setAttribute("name",""),Vn.appendChild(Bn),Vn.querySelectorAll("[name='']").length||Yt.push("\\["+fe+"*name"+fe+"*="+fe+`*(?:''|"")`)}),I.cssHas||Yt.push(":has"),Yt=Yt.length&&new RegExp(Yt.join("|")),Ya=function(Vn,Bn){if(Vn===Bn)return Re=!0,0;var Hn=!Vn.compareDocumentPosition-!Bn.compareDocumentPosition;return Hn||(Hn=(Vn.ownerDocument||Vn)==(Bn.ownerDocument||Bn)?Vn.compareDocumentPosition(Bn):1,Hn&1||!I.sortDetached&&Bn.compareDocumentPosition(Vn)===Hn?Vn===rt||Vn.ownerDocument==ke&&lo.contains(ke,Vn)?-1:Bn===rt||Bn.ownerDocument==ke&&lo.contains(ke,Bn)?1:be?v.call(be,Vn)-v.call(be,Bn):0:Hn&4?-1:1)}),rt}lo.matches=function(Vt,Wt){return lo(Vt,null,null,Wt)},lo.matchesSelector=function(Vt,Wt){if(Bl(Vt),Mt&&!na[Wt+" "]&&(!Yt||!Yt.test(Wt)))try{var Jn=Xn.call(Vt,Wt);if(Jn||I.disconnectedMatch||Vt.document&&Vt.document.nodeType!==11)return Jn}catch(Vn){na(Wt,!0)}return lo(Wt,rt,null,[Vt]).length>0},lo.contains=function(Vt,Wt){return(Vt.ownerDocument||Vt)!=rt&&Bl(Vt),B.contains(Vt,Wt)},lo.attr=function(Vt,Wt){(Vt.ownerDocument||Vt)!=rt&&Bl(Vt);var Jn=ae.attrHandle[Wt.toLowerCase()],Vn=Jn&&_.call(ae.attrHandle,Wt.toLowerCase())?Jn(Vt,Wt,!Mt):void 0;return Vn!==void 0?Vn:Vt.getAttribute(Wt)},lo.error=function(Vt){throw new Error("Syntax error, unrecognized expression: "+Vt)},B.uniqueSort=function(Vt){var Wt,Jn=[],Vn=0,Bn=0;if(Re=!I.sortStable,be=!I.sortStable&&s.call(Vt,0),re.call(Vt,Ya),Re){for(;Wt=Vt[Bn++];)Wt===Vt[Bn]&&(Vn=Jn.push(Bn));for(;Vn--;)le.call(Vt,Jn[Vn],1)}return be=null,Vt},B.fn.uniqueSort=function(){return this.pushStack(B.uniqueSort(s.apply(this)))},ae=B.expr={cacheLength:50,createPseudo:Wo,match:po,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(Vt){return Vt[1]=Vt[1].replace(Qi,Io),Vt[3]=(Vt[3]||Vt[4]||Vt[5]||"").replace(Qi,Io),Vt[2]==="~="&&(Vt[3]=" "+Vt[3]+" "),Vt.slice(0,4)},CHILD:function(Vt){return Vt[1]=Vt[1].toLowerCase(),Vt[1].slice(0,3)==="nth"?(Vt[3]||lo.error(Vt[0]),Vt[4]=+(Vt[4]?Vt[5]+(Vt[6]||1):2*(Vt[3]==="even"||Vt[3]==="odd")),Vt[5]=+(Vt[7]+Vt[8]||Vt[3]==="odd")):Vt[3]&&lo.error(Vt[0]),Vt},PSEUDO:function(Vt){var Wt,Jn=!Vt[6]&&Vt[2];return po.CHILD.test(Vt[0])?null:(Vt[3]?Vt[2]=Vt[4]||Vt[5]||"":Jn&&Es.test(Jn)&&(Wt=zo(Jn,!0))&&(Wt=Jn.indexOf(")",Jn.length-Wt)-Jn.length)&&(Vt[0]=Vt[0].slice(0,Wt),Vt[2]=Jn.slice(0,Wt)),Vt.slice(0,3))}},filter:{TAG:function(Vt){var Wt=Vt.replace(Qi,Io).toLowerCase();return Vt==="*"?function(){return!0}:function(Jn){return D(Jn,Wt)}},CLASS:function(Vt){var Wt=ki[Vt+" "];return Wt||(Wt=new RegExp("(^|"+fe+")"+Vt+"("+fe+"|$)"))&&ki(Vt,function(Jn){return Wt.test(typeof Jn.className=="string"&&Jn.className||typeof Jn.getAttribute!="undefined"&&Jn.getAttribute("class")||"")})},ATTR:function(Vt,Wt,Jn){return function(Vn){var Bn=lo.attr(Vn,Vt);return Bn==null?Wt==="!=":Wt?(Bn+="",Wt==="="?Bn===Jn:Wt==="!="?Bn!==Jn:Wt==="^="?Jn&&Bn.indexOf(Jn)===0:Wt==="*="?Jn&&Bn.indexOf(Jn)>-1:Wt==="$="?Jn&&Bn.slice(-Jn.length)===Jn:Wt==="~="?(" "+Bn.replace(Oa," ")+" ").indexOf(Jn)>-1:Wt==="|="?Bn===Jn||Bn.slice(0,Jn.length+1)===Jn+"-":!1):!0}},CHILD:function(Vt,Wt,Jn,Vn,Bn){var Hn=Vt.slice(0,3)!=="nth",kr=Vt.slice(-4)!=="last",fi=Wt==="of-type";return Vn===1&&Bn===0?function(oi){return!!oi.parentNode}:function(oi,da,St){var zi,Fr,ni,Gi,Po,Yo=Hn!==kr?"nextSibling":"previousSibling",xo=oi.parentNode,Zs=fi&&oi.nodeName.toLowerCase(),As=!St&&!fi,Uo=!1;if(xo){if(Hn){for(;Yo;){for(ni=oi;ni=ni[Yo];)if(fi?D(ni,Zs):ni.nodeType===1)return!1;Po=Yo=Vt==="only"&&!Po&&"nextSibling"}return!0}if(Po=[kr?xo.firstChild:xo.lastChild],kr&&As){for(Fr=xo[Sn]||(xo[Sn]={}),zi=Fr[Vt]||[],Gi=zi[0]===Gn&&zi[1],Uo=Gi&&zi[2],ni=Gi&&xo.childNodes[Gi];ni=++Gi&&ni&&ni[Yo]||(Uo=Gi=0)||Po.pop();)if(ni.nodeType===1&&++Uo&&ni===oi){Fr[Vt]=[Gn,Gi,Uo];break}}else if(As&&(Fr=oi[Sn]||(oi[Sn]={}),zi=Fr[Vt]||[],Gi=zi[0]===Gn&&zi[1],Uo=Gi),Uo===!1)for(;(ni=++Gi&&ni&&ni[Yo]||(Uo=Gi=0)||Po.pop())&&!((fi?D(ni,Zs):ni.nodeType===1)&&++Uo&&(As&&(Fr=ni[Sn]||(ni[Sn]={}),Fr[Vt]=[Gn,Uo]),ni===oi)););return Uo-=Bn,Uo===Vn||Uo%Vn===0&&Uo/Vn>=0}}},PSEUDO:function(Vt,Wt){var Jn,Vn=ae.pseudos[Vt]||ae.setFilters[Vt.toLowerCase()]||lo.error("unsupported pseudo: "+Vt);return Vn[Sn]?Vn(Wt):Vn.length>1?(Jn=[Vt,Vt,"",Wt],ae.setFilters.hasOwnProperty(Vt.toLowerCase())?Wo(function(Bn,Hn){for(var kr,fi=Vn(Bn,Wt),oi=fi.length;oi--;)kr=v.call(Bn,fi[oi]),Bn[kr]=!(Hn[kr]=fi[oi])}):function(Bn){return Vn(Bn,0,Jn)}):Vn}},pseudos:{not:Wo(function(Vt){var Wt=[],Jn=[],Vn=_i(Vt.replace(me,"$1"));return Vn[Sn]?Wo(function(Bn,Hn,kr,fi){for(var oi,da=Vn(Bn,null,fi,[]),St=Bn.length;St--;)(oi=da[St])&&(Bn[St]=!(Hn[St]=oi))}):function(Bn,Hn,kr){return Wt[0]=Bn,Vn(Wt,null,kr,Jn),Wt[0]=null,!Jn.pop()}}),has:Wo(function(Vt){return function(Wt){return lo(Vt,Wt).length>0}}),contains:Wo(function(Vt){return Vt=Vt.replace(Qi,Io),function(Wt){return(Wt.textContent||B.text(Wt)).indexOf(Vt)>-1}}),lang:Wo(function(Vt){return vs.test(Vt||"")||lo.error("unsupported lang: "+Vt),Vt=Vt.replace(Qi,Io).toLowerCase(),function(Wt){var Jn;do if(Jn=Mt?Wt.lang:Wt.getAttribute("xml:lang")||Wt.getAttribute("lang"))return Jn=Jn.toLowerCase(),Jn===Vt||Jn.indexOf(Vt+"-")===0;while((Wt=Wt.parentNode)&&Wt.nodeType===1);return!1}}),target:function(Vt){var Wt=e.location&&e.location.hash;return Wt&&Wt.slice(1)===Vt.id},root:function(Vt){return Vt===Dt},focus:function(Vt){return Vt===ul()&&rt.hasFocus()&&!!(Vt.type||Vt.href||~Vt.tabIndex)},enabled:il(!1),disabled:il(!0),checked:function(Vt){return D(Vt,"input")&&!!Vt.checked||D(Vt,"option")&&!!Vt.selected},selected:function(Vt){return Vt.parentNode&&Vt.parentNode.selectedIndex,Vt.selected===!0},empty:function(Vt){for(Vt=Vt.firstChild;Vt;Vt=Vt.nextSibling)if(Vt.nodeType<6)return!1;return!0},parent:function(Vt){return!ae.pseudos.empty(Vt)},header:function(Vt){return Ko.test(Vt.nodeName)},input:function(Vt){return oo.test(Vt.nodeName)},button:function(Vt){return D(Vt,"input")&&Vt.type==="button"||D(Vt,"button")},text:function(Vt){var Wt;return D(Vt,"input")&&Vt.type==="text"&&((Wt=Vt.getAttribute("type"))==null||Wt.toLowerCase()==="text")},first:zs(function(){return[0]}),last:zs(function(Vt,Wt){return[Wt-1]}),eq:zs(function(Vt,Wt,Jn){return[Jn<0?Jn+Wt:Jn]}),even:zs(function(Vt,Wt){for(var Jn=0;Jn<Wt;Jn+=2)Vt.push(Jn);return Vt}),odd:zs(function(Vt,Wt){for(var Jn=1;Jn<Wt;Jn+=2)Vt.push(Jn);return Vt}),lt:zs(function(Vt,Wt,Jn){var Vn;for(Jn<0?Vn=Jn+Wt:Jn>Wt?Vn=Wt:Vn=Jn;--Vn>=0;)Vt.push(Vn);return Vt}),gt:zs(function(Vt,Wt,Jn){for(var Vn=Jn<0?Jn+Wt:Jn;++Vn<Wt;)Vt.push(Vn);return Vt})}},ae.pseudos.nth=ae.pseudos.eq;for(J in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})ae.pseudos[J]=os(J);for(J in{submit:!0,reset:!0})ae.pseudos[J]=Ou(J);function ga(){}ga.prototype=ae.filters=ae.pseudos,ae.setFilters=new ga;function zo(Vt,Wt){var Jn,Vn,Bn,Hn,kr,fi,oi,da=Ia[Vt+" "];if(da)return Wt?0:da.slice(0);for(kr=Vt,fi=[],oi=ae.preFilter;kr;){(!Jn||(Vn=Oo.exec(kr)))&&(Vn&&(kr=kr.slice(Vn[0].length)||kr),fi.push(Bn=[])),Jn=!1,(Vn=Ls.exec(kr))&&(Jn=Vn.shift(),Bn.push({value:Jn,type:Vn[0].replace(me," ")}),kr=kr.slice(Jn.length));for(Hn in ae.filter)(Vn=po[Hn].exec(kr))&&(!oi[Hn]||(Vn=oi[Hn](Vn)))&&(Jn=Vn.shift(),Bn.push({value:Jn,type:Hn,matches:Vn}),kr=kr.slice(Jn.length));if(!Jn)break}return Wt?kr.length:kr?lo.error(Vt):Ia(Vt,fi).slice(0)}function wu(Vt){for(var Wt=0,Jn=Vt.length,Vn="";Wt<Jn;Wt++)Vn+=Vt[Wt].value;return Vn}function ds(Vt,Wt,Jn){var Vn=Wt.dir,Bn=Wt.next,Hn=Bn||Vn,kr=Jn&&Hn==="parentNode",fi=Or++;return Wt.first?function(oi,da,St){for(;oi=oi[Vn];)if(oi.nodeType===1||kr)return Vt(oi,da,St);return!1}:function(oi,da,St){var zi,Fr,ni=[Gn,fi];if(St){for(;oi=oi[Vn];)if((oi.nodeType===1||kr)&&Vt(oi,da,St))return!0}else for(;oi=oi[Vn];)if(oi.nodeType===1||kr)if(Fr=oi[Sn]||(oi[Sn]={}),Bn&&D(oi,Bn))oi=oi[Vn]||oi;else{if((zi=Fr[Hn])&&zi[0]===Gn&&zi[1]===fi)return ni[2]=zi[2];if(Fr[Hn]=ni,ni[2]=Vt(oi,da,St))return!0}return!1}}function pu(Vt){return Vt.length>1?function(Wt,Jn,Vn){for(var Bn=Vt.length;Bn--;)if(!Vt[Bn](Wt,Jn,Vn))return!1;return!0}:Vt[0]}function gn(Vt,Wt,Jn){for(var Vn=0,Bn=Wt.length;Vn<Bn;Vn++)lo(Vt,Wt[Vn],Jn);return Jn}function Zn(Vt,Wt,Jn,Vn,Bn){for(var Hn,kr=[],fi=0,oi=Vt.length,da=Wt!=null;fi<oi;fi++)(Hn=Vt[fi])&&(!Jn||Jn(Hn,Vn,Bn))&&(kr.push(Hn),da&&Wt.push(fi));return kr}function Fn(Vt,Wt,Jn,Vn,Bn,Hn){return Vn&&!Vn[Sn]&&(Vn=Fn(Vn)),Bn&&!Bn[Sn]&&(Bn=Fn(Bn,Hn)),Wo(function(kr,fi,oi,da){var St,zi,Fr,ni,Gi=[],Po=[],Yo=fi.length,xo=kr||gn(Wt||"*",oi.nodeType?[oi]:oi,[]),Zs=Vt&&(kr||!Wt)?Zn(xo,Gi,Vt,oi,da):xo;if(Jn?(ni=Bn||(kr?Vt:Yo||Vn)?[]:fi,Jn(Zs,ni,oi,da)):ni=Zs,Vn)for(St=Zn(ni,Po),Vn(St,[],oi,da),zi=St.length;zi--;)(Fr=St[zi])&&(ni[Po[zi]]=!(Zs[Po[zi]]=Fr));if(kr){if(Bn||Vt){if(Bn){for(St=[],zi=ni.length;zi--;)(Fr=ni[zi])&&St.push(Zs[zi]=Fr);Bn(null,ni=[],St,da)}for(zi=ni.length;zi--;)(Fr=ni[zi])&&(St=Bn?v.call(kr,Fr):Gi[zi])>-1&&(kr[St]=!(fi[St]=Fr))}}else ni=Zn(ni===fi?ni.splice(Yo,ni.length):ni),Bn?Bn(null,fi,ni,da):Ge.apply(fi,ni)})}function Mr(Vt){for(var Wt,Jn,Vn,Bn=Vt.length,Hn=ae.relative[Vt[0].type],kr=Hn||ae.relative[" "],fi=Hn?1:0,oi=ds(function(zi){return zi===Wt},kr,!0),da=ds(function(zi){return v.call(Wt,zi)>-1},kr,!0),St=[function(zi,Fr,ni){var Gi=!Hn&&(ni||Fr!=ve)||((Wt=Fr).nodeType?oi(zi,Fr,ni):da(zi,Fr,ni));return Wt=null,Gi}];fi<Bn;fi++)if(Jn=ae.relative[Vt[fi].type])St=[ds(pu(St),Jn)];else{if(Jn=ae.filter[Vt[fi].type].apply(null,Vt[fi].matches),Jn[Sn]){for(Vn=++fi;Vn<Bn&&!ae.relative[Vt[Vn].type];Vn++);return Fn(fi>1&&pu(St),fi>1&&wu(Vt.slice(0,fi-1).concat({value:Vt[fi-2].type===" "?"*":""})).replace(me,"$1"),Jn,fi<Vn&&Mr(Vt.slice(fi,Vn)),Vn<Bn&&Mr(Vt=Vt.slice(Vn)),Vn<Bn&&wu(Vt))}St.push(Jn)}return pu(St)}function Nr(Vt,Wt){var Jn=Wt.length>0,Vn=Vt.length>0,Bn=function(Hn,kr,fi,oi,da){var St,zi,Fr,ni=0,Gi="0",Po=Hn&&[],Yo=[],xo=ve,Zs=Hn||Vn&&ae.find.TAG("*",da),As=Gn+=xo==null?1:Math.random()||.1,Uo=Zs.length;for(da&&(ve=kr==rt||kr||da);Gi!==Uo&&(St=Zs[Gi])!=null;Gi++){if(Vn&&St){for(zi=0,!kr&&St.ownerDocument!=rt&&(Bl(St),fi=!Mt);Fr=Vt[zi++];)if(Fr(St,kr||rt,fi)){Ge.call(oi,St);break}da&&(Gn=As)}Jn&&((St=!Fr&&St)&&ni--,Hn&&Po.push(St))}if(ni+=Gi,Jn&&Gi!==ni){for(zi=0;Fr=Wt[zi++];)Fr(Po,Yo,kr,fi);if(Hn){if(ni>0)for(;Gi--;)Po[Gi]||Yo[Gi]||(Yo[Gi]=F.call(oi));Yo=Zn(Yo)}Ge.apply(oi,Yo),da&&!Hn&&Yo.length>0&&ni+Wt.length>1&&B.uniqueSort(oi)}return da&&(Gn=As,ve=xo),Po};return Jn?Wo(Bn):Bn}function _i(Vt,Wt){var Jn,Vn=[],Bn=[],Hn=ma[Vt+" "];if(!Hn){for(Wt||(Wt=zo(Vt)),Jn=Wt.length;Jn--;)Hn=Mr(Wt[Jn]),Hn[Sn]?Vn.push(Hn):Bn.push(Hn);Hn=ma(Vt,Nr(Bn,Vn)),Hn.selector=Vt}return Hn}function Ci(Vt,Wt,Jn,Vn){var Bn,Hn,kr,fi,oi,da=typeof Vt=="function"&&Vt,St=!Vn&&zo(Vt=da.selector||Vt);if(Jn=Jn||[],St.length===1){if(Hn=St[0]=St[0].slice(0),Hn.length>2&&(kr=Hn[0]).type==="ID"&&Wt.nodeType===9&&Mt&&ae.relative[Hn[1].type]){if(Wt=(ae.find.ID(kr.matches[0].replace(Qi,Io),Wt)||[])[0],Wt)da&&(Wt=Wt.parentNode);else return Jn;Vt=Vt.slice(Hn.shift().value.length)}for(Bn=po.needsContext.test(Vt)?0:Hn.length;Bn--&&(kr=Hn[Bn],!ae.relative[fi=kr.type]);)if((oi=ae.find[fi])&&(Vn=oi(kr.matches[0].replace(Qi,Io),as.test(Hn[0].type)&&Xl(Wt.parentNode)||Wt))){if(Hn.splice(Bn,1),Vt=Vn.length&&wu(Hn),!Vt)return Ge.apply(Jn,Vn),Jn;break}}return(da||_i(Vt,St))(Vn,Wt,!Mt,Jn,!Wt||as.test(Vt)&&Xl(Wt.parentNode)||Wt),Jn}I.sortStable=Sn.split("").sort(Ya).join("")===Sn,Bl(),I.sortDetached=Ds(function(Vt){return Vt.compareDocumentPosition(rt.createElement("fieldset"))&1}),B.find=lo,B.expr[":"]=B.expr.pseudos,B.unique=B.uniqueSort,lo.compile=_i,lo.select=Ci,lo.setDocument=Bl,lo.tokenize=zo,lo.escape=B.escapeSelector,lo.getText=B.text,lo.isXML=B.isXMLDoc,lo.selectors=B.expr,lo.support=B.support,lo.uniqueSort=B.uniqueSort})();var et=function(J,ae,ve){for(var be=[],Re=ve!==void 0;(J=J[ae])&&J.nodeType!==9;)if(J.nodeType===1){if(Re&&B(J).is(ve))break;be.push(J)}return be},it=function(J,ae){for(var ve=[];J;J=J.nextSibling)J.nodeType===1&&J!==ae&&ve.push(J);return ve},Ue=B.expr.match.needsContext,ht=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function De(J,ae,ve){return O(ae)?B.grep(J,function(be,Re){return!!ae.call(be,Re,be)!==ve}):ae.nodeType?B.grep(J,function(be){return be===ae!==ve}):typeof ae!="string"?B.grep(J,function(be){return v.call(ae,be)>-1!==ve}):B.filter(ae,J,ve)}B.filter=function(J,ae,ve){var be=ae[0];return ve&&(J=":not("+J+")"),ae.length===1&&be.nodeType===1?B.find.matchesSelector(be,J)?[be]:[]:B.find.matches(J,B.grep(ae,function(Re){return Re.nodeType===1}))},B.fn.extend({find:function(J){var ae,ve,be=this.length,Re=this;if(typeof J!="string")return this.pushStack(B(J).filter(function(){for(ae=0;ae<be;ae++)if(B.contains(Re[ae],this))return!0}));for(ve=this.pushStack([]),ae=0;ae<be;ae++)B.find(J,Re[ae],ve);return be>1?B.uniqueSort(ve):ve},filter:function(J){return this.pushStack(De(this,J||[],!1))},not:function(J){return this.pushStack(De(this,J||[],!0))},is:function(J){return!!De(this,typeof J=="string"&&Ue.test(J)?B(J):J||[],!1).length}});var Be,Ve=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,He=B.fn.init=function(J,ae,ve){var be,Re;if(!J)return this;if(ve=ve||Be,typeof J=="string")if(J[0]==="<"&&J[J.length-1]===">"&&J.length>=3?be=[null,J,null]:be=Ve.exec(J),be&&(be[1]||!ae))if(be[1]){if(ae=ae instanceof B?ae[0]:ae,B.merge(this,B.parseHTML(be[1],ae&&ae.nodeType?ae.ownerDocument||ae:A,!0)),ht.test(be[1])&&B.isPlainObject(ae))for(be in ae)O(this[be])?this[be](ae[be]):this.attr(be,ae[be]);return this}else return Re=A.getElementById(be[2]),Re&&(this[0]=Re,this.length=1),this;else return!ae||ae.jquery?(ae||ve).find(J):this.constructor(ae).find(J);else{if(J.nodeType)return this[0]=J,this.length=1,this;if(O(J))return ve.ready!==void 0?ve.ready(J):J(B)}return B.makeArray(J,this)};He.prototype=B.fn,Be=B(A);var gt=/^(?:parents|prev(?:Until|All))/,dn={children:!0,contents:!0,next:!0,prev:!0};B.fn.extend({has:function(J){var ae=B(J,this),ve=ae.length;return this.filter(function(){for(var be=0;be<ve;be++)if(B.contains(this,ae[be]))return!0})},closest:function(J,ae){var ve,be=0,Re=this.length,Ge=[],rt=typeof J!="string"&&B(J);if(!Ue.test(J)){for(;be<Re;be++)for(ve=this[be];ve&&ve!==ae;ve=ve.parentNode)if(ve.nodeType<11&&(rt?rt.index(ve)>-1:ve.nodeType===1&&B.find.matchesSelector(ve,J))){Ge.push(ve);break}}return this.pushStack(Ge.length>1?B.uniqueSort(Ge):Ge)},index:function(J){return J?typeof J=="string"?v.call(B(J),this[0]):v.call(this,J.jquery?J[0]:J):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(J,ae){return this.pushStack(B.uniqueSort(B.merge(this.get(),B(J,ae))))},addBack:function(J){return this.add(J==null?this.prevObject:this.prevObject.filter(J))}});function Ze(J,ae){for(;(J=J[ae])&&J.nodeType!==1;);return J}B.each({parent:function(J){var ae=J.parentNode;return ae&&ae.nodeType!==11?ae:null},parents:function(J){return et(J,"parentNode")},parentsUntil:function(J,ae,ve){return et(J,"parentNode",ve)},next:function(J){return Ze(J,"nextSibling")},prev:function(J){return Ze(J,"previousSibling")},nextAll:function(J){return et(J,"nextSibling")},prevAll:function(J){return et(J,"previousSibling")},nextUntil:function(J,ae,ve){return et(J,"nextSibling",ve)},prevUntil:function(J,ae,ve){return et(J,"previousSibling",ve)},siblings:function(J){return it((J.parentNode||{}).firstChild,J)},children:function(J){return it(J.firstChild)},contents:function(J){return J.contentDocument!=null&&o(J.contentDocument)?J.contentDocument:(D(J,"template")&&(J=J.content||J),B.merge([],J.childNodes))}},function(J,ae){B.fn[J]=function(ve,be){var Re=B.map(this,ae,ve);return J.slice(-5)!=="Until"&&(be=ve),be&&typeof be=="string"&&(Re=B.filter(be,Re)),this.length>1&&(dn[J]||B.uniqueSort(Re),gt.test(J)&&Re.reverse()),this.pushStack(Re)}});var at=/[^\x20\t\r\n\f]+/g;function Lt(J){var ae={};return B.each(J.match(at)||[],function(ve,be){ae[be]=!0}),ae}B.Callbacks=function(J){J=typeof J=="string"?Lt(J):B.extend({},J);var ae,ve,be,Re,Ge=[],rt=[],Dt=-1,Mt=function(){for(Re=Re||J.once,be=ae=!0;rt.length;Dt=-1)for(ve=rt.shift();++Dt<Ge.length;)Ge[Dt].apply(ve[0],ve[1])===!1&&J.stopOnFalse&&(Dt=Ge.length,ve=!1);J.memory||(ve=!1),ae=!1,Re&&(ve?Ge=[]:Ge="")},Yt={add:function(){return Ge&&(ve&&!ae&&(Dt=Ge.length-1,rt.push(ve)),function Xn(Sn){B.each(Sn,function(Gn,Or){O(Or)?(!J.unique||!Yt.has(Or))&&Ge.push(Or):Or&&Or.length&&V(Or)!=="string"&&Xn(Or)})}(arguments),ve&&!ae&&Mt()),this},remove:function(){return B.each(arguments,function(Xn,Sn){for(var Gn;(Gn=B.inArray(Sn,Ge,Gn))>-1;)Ge.splice(Gn,1),Gn<=Dt&&Dt--}),this},has:function(Xn){return Xn?B.inArray(Xn,Ge)>-1:Ge.length>0},empty:function(){return Ge&&(Ge=[]),this},disable:function(){return Re=rt=[],Ge=ve="",this},disabled:function(){return!Ge},lock:function(){return Re=rt=[],!ve&&!ae&&(Ge=ve=""),this},locked:function(){return!!Re},fireWith:function(Xn,Sn){return Re||(Sn=Sn||[],Sn=[Xn,Sn.slice?Sn.slice():Sn],rt.push(Sn),ae||Mt()),this},fire:function(){return Yt.fireWith(this,arguments),this},fired:function(){return!!be}};return Yt};function Ne(J){return J}function ze(J){throw J}function Ke(J,ae,ve,be){var Re;try{J&&O(Re=J.promise)?Re.call(J).done(ae).fail(ve):J&&O(Re=J.then)?Re.call(J,ae,ve):ae.apply(void 0,[J].slice(be))}catch(Ge){ve.apply(void 0,[Ge])}}B.extend({Deferred:function(J){var ae=[["notify","progress",B.Callbacks("memory"),B.Callbacks("memory"),2],["resolve","done",B.Callbacks("once memory"),B.Callbacks("once memory"),0,"resolved"],["reject","fail",B.Callbacks("once memory"),B.Callbacks("once memory"),1,"rejected"]],ve="pending",be={state:function(){return ve},always:function(){return Re.done(arguments).fail(arguments),this},catch:function(Ge){return be.then(null,Ge)},pipe:function(){var Ge=arguments;return B.Deferred(function(rt){B.each(ae,function(Dt,Mt){var Yt=O(Ge[Mt[4]])&&Ge[Mt[4]];Re[Mt[1]](function(){var Xn=Yt&&Yt.apply(this,arguments);Xn&&O(Xn.promise)?Xn.promise().progress(rt.notify).done(rt.resolve).fail(rt.reject):rt[Mt[0]+"With"](this,Yt?[Xn]:arguments)})}),Ge=null}).promise()},then:function(Ge,rt,Dt){var Mt=0;function Yt(Xn,Sn,Gn,Or){return function(){var ki=this,Ia=arguments,ma=function(){var Ya,Da;if(!(Xn<Mt)){if(Ya=Gn.apply(ki,Ia),Ya===Sn.promise())throw new TypeError("Thenable self-resolution");Da=Ya&&(typeof Ya=="object"||typeof Ya=="function")&&Ya.then,O(Da)?Or?Da.call(Ya,Yt(Mt,Sn,Ne,Or),Yt(Mt,Sn,ze,Or)):(Mt++,Da.call(Ya,Yt(Mt,Sn,Ne,Or),Yt(Mt,Sn,ze,Or),Yt(Mt,Sn,Ne,Sn.notifyWith))):(Gn!==Ne&&(ki=void 0,Ia=[Ya]),(Or||Sn.resolveWith)(ki,Ia))}},na=Or?ma:function(){try{ma()}catch(Ya){B.Deferred.exceptionHook&&B.Deferred.exceptionHook(Ya,na.error),Xn+1>=Mt&&(Gn!==ze&&(ki=void 0,Ia=[Ya]),Sn.rejectWith(ki,Ia))}};Xn?na():(B.Deferred.getErrorHook?na.error=B.Deferred.getErrorHook():B.Deferred.getStackHook&&(na.error=B.Deferred.getStackHook()),e.setTimeout(na))}}return B.Deferred(function(Xn){ae[0][3].add(Yt(0,Xn,O(Dt)?Dt:Ne,Xn.notifyWith)),ae[1][3].add(Yt(0,Xn,O(Ge)?Ge:Ne)),ae[2][3].add(Yt(0,Xn,O(rt)?rt:ze))}).promise()},promise:function(Ge){return Ge!=null?B.extend(Ge,be):be}},Re={};return B.each(ae,function(Ge,rt){var Dt=rt[2],Mt=rt[5];be[rt[1]]=Dt.add,Mt&&Dt.add(function(){ve=Mt},ae[3-Ge][2].disable,ae[3-Ge][3].disable,ae[0][2].lock,ae[0][3].lock),Dt.add(rt[3].fire),Re[rt[0]]=function(){return Re[rt[0]+"With"](this===Re?void 0:this,arguments),this},Re[rt[0]+"With"]=Dt.fireWith}),be.promise(Re),J&&J.call(Re,Re),Re},when:function(J){var ae=arguments.length,ve=ae,be=Array(ve),Re=s.call(arguments),Ge=B.Deferred(),rt=function(Dt){return function(Mt){be[Dt]=this,Re[Dt]=arguments.length>1?s.call(arguments):Mt,--ae||Ge.resolveWith(be,Re)}};if(ae<=1&&(Ke(J,Ge.done(rt(ve)).resolve,Ge.reject,!ae),Ge.state()==="pending"||O(Re[ve]&&Re[ve].then)))return Ge.then();for(;ve--;)Ke(Re[ve],rt(ve),Ge.reject);return Ge.promise()}});var vt=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;B.Deferred.exceptionHook=function(J,ae){e.console&&e.console.warn&&J&&vt.test(J.name)&&e.console.warn("jQuery.Deferred exception: "+J.message,J.stack,ae)},B.readyException=function(J){e.setTimeout(function(){throw J})};var Ft=B.Deferred();B.fn.ready=function(J){return Ft.then(J).catch(function(ae){B.readyException(ae)}),this},B.extend({isReady:!1,readyWait:1,ready:function(J){(J===!0?--B.readyWait:B.isReady)||(B.isReady=!0,!(J!==!0&&--B.readyWait>0)&&Ft.resolveWith(A,[B]))}}),B.ready.then=Ft.then;function Ot(){A.removeEventListener("DOMContentLoaded",Ot),e.removeEventListener("load",Ot),B.ready()}A.readyState==="complete"||A.readyState!=="loading"&&!A.documentElement.doScroll?e.setTimeout(B.ready):(A.addEventListener("DOMContentLoaded",Ot),e.addEventListener("load",Ot));var _t=function(J,ae,ve,be,Re,Ge,rt){var Dt=0,Mt=J.length,Yt=ve==null;if(V(ve)==="object"){Re=!0;for(Dt in ve)_t(J,ae,Dt,ve[Dt],!0,Ge,rt)}else if(be!==void 0&&(Re=!0,O(be)||(rt=!0),Yt&&(rt?(ae.call(J,be),ae=null):(Yt=ae,ae=function(Xn,Sn,Gn){return Yt.call(B(Xn),Gn)})),ae))for(;Dt<Mt;Dt++)ae(J[Dt],ve,rt?be:be.call(J[Dt],Dt,ae(J[Dt],ve)));return Re?J:Yt?ae.call(J):Mt?ae(J[0],ve):Ge},Tn=/^-ms-/,on=/-([a-z])/g;function $n(J,ae){return ae.toUpperCase()}function Zt(J){return J.replace(Tn,"ms-").replace(on,$n)}var Et=function(J){return J.nodeType===1||J.nodeType===9||!+J.nodeType};function rn(){this.expando=B.expando+rn.uid++}rn.uid=1,rn.prototype={cache:function(J){var ae=J[this.expando];return ae||(ae={},Et(J)&&(J.nodeType?J[this.expando]=ae:Object.defineProperty(J,this.expando,{value:ae,configurable:!0}))),ae},set:function(J,ae,ve){var be,Re=this.cache(J);if(typeof ae=="string")Re[Zt(ae)]=ve;else for(be in ae)Re[Zt(be)]=ae[be];return Re},get:function(J,ae){return ae===void 0?this.cache(J):J[this.expando]&&J[this.expando][Zt(ae)]},access:function(J,ae,ve){return ae===void 0||ae&&typeof ae=="string"&&ve===void 0?this.get(J,ae):(this.set(J,ae,ve),ve!==void 0?ve:ae)},remove:function(J,ae){var ve,be=J[this.expando];if(be!==void 0){if(ae!==void 0)for(Array.isArray(ae)?ae=ae.map(Zt):(ae=Zt(ae),ae=ae in be?[ae]:ae.match(at)||[]),ve=ae.length;ve--;)delete be[ae[ve]];(ae===void 0||B.isEmptyObject(be))&&(J.nodeType?J[this.expando]=void 0:delete J[this.expando])}},hasData:function(J){var ae=J[this.expando];return ae!==void 0&&!B.isEmptyObject(ae)}};var wt=new rn,Yn=new rn,pt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Fe=/[A-Z]/g;function Ie(J){return J==="true"?!0:J==="false"?!1:J==="null"?null:J===+J+""?+J:pt.test(J)?JSON.parse(J):J}function ct(J,ae,ve){var be;if(ve===void 0&&J.nodeType===1)if(be="data-"+ae.replace(Fe,"-$&").toLowerCase(),ve=J.getAttribute(be),typeof ve=="string"){try{ve=Ie(ve)}catch(Re){}Yn.set(J,ae,ve)}else ve=void 0;return ve}B.extend({hasData:function(J){return Yn.hasData(J)||wt.hasData(J)},data:function(J,ae,ve){return Yn.access(J,ae,ve)},removeData:function(J,ae){Yn.remove(J,ae)},_data:function(J,ae,ve){return wt.access(J,ae,ve)},_removeData:function(J,ae){wt.remove(J,ae)}}),B.fn.extend({data:function(J,ae){var ve,be,Re,Ge=this[0],rt=Ge&&Ge.attributes;if(J===void 0){if(this.length&&(Re=Yn.get(Ge),Ge.nodeType===1&&!wt.get(Ge,"hasDataAttrs"))){for(ve=rt.length;ve--;)rt[ve]&&(be=rt[ve].name,be.indexOf("data-")===0&&(be=Zt(be.slice(5)),ct(Ge,be,Re[be])));wt.set(Ge,"hasDataAttrs",!0)}return Re}return typeof J=="object"?this.each(function(){Yn.set(this,J)}):_t(this,function(Dt){var Mt;if(Ge&&Dt===void 0)return Mt=Yn.get(Ge,J),Mt!==void 0||(Mt=ct(Ge,J),Mt!==void 0)?Mt:void 0;this.each(function(){Yn.set(this,J,Dt)})},null,ae,arguments.length>1,null,!0)},removeData:function(J){return this.each(function(){Yn.remove(this,J)})}}),B.extend({queue:function(J,ae,ve){var be;if(J)return ae=(ae||"fx")+"queue",be=wt.get(J,ae),ve&&(!be||Array.isArray(ve)?be=wt.access(J,ae,B.makeArray(ve)):be.push(ve)),be||[]},dequeue:function(J,ae){ae=ae||"fx";var ve=B.queue(J,ae),be=ve.length,Re=ve.shift(),Ge=B._queueHooks(J,ae),rt=function(){B.dequeue(J,ae)};Re==="inprogress"&&(Re=ve.shift(),be--),Re&&(ae==="fx"&&ve.unshift("inprogress"),delete Ge.stop,Re.call(J,rt,Ge)),!be&&Ge&&Ge.empty.fire()},_queueHooks:function(J,ae){var ve=ae+"queueHooks";return wt.get(J,ve)||wt.access(J,ve,{empty:B.Callbacks("once memory").add(function(){wt.remove(J,[ae+"queue",ve])})})}}),B.fn.extend({queue:function(J,ae){var ve=2;return typeof J!="string"&&(ae=J,J="fx",ve--),arguments.length<ve?B.queue(this[0],J):ae===void 0?this:this.each(function(){var be=B.queue(this,J,ae);B._queueHooks(this,J),J==="fx"&&be[0]!=="inprogress"&&B.dequeue(this,J)})},dequeue:function(J){return this.each(function(){B.dequeue(this,J)})},clearQueue:function(J){return this.queue(J||"fx",[])},promise:function(J,ae){var ve,be=1,Re=B.Deferred(),Ge=this,rt=this.length,Dt=function(){--be||Re.resolveWith(Ge,[Ge])};for(typeof J!="string"&&(ae=J,J=void 0),J=J||"fx";rt--;)ve=wt.get(Ge[rt],J+"queueHooks"),ve&&ve.empty&&(be++,ve.empty.add(Dt));return Dt(),Re.promise(ae)}});var Ht=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,sn=new RegExp("^(?:([+-])=|)("+Ht+")([a-z%]*)$","i"),yn=["Top","Right","Bottom","Left"],Dr=A.documentElement,Kr=function(J){return B.contains(J.ownerDocument,J)},ii={composed:!0};Dr.getRootNode&&(Kr=function(J){return B.contains(J.ownerDocument,J)||J.getRootNode(ii)===J.ownerDocument});var _n=function(J,ae){return J=ae||J,J.style.display==="none"||J.style.display===""&&Kr(J)&&B.css(J,"display")==="none"};function xn(J,ae,ve,be){var Re,Ge,rt=20,Dt=be?function(){return be.cur()}:function(){return B.css(J,ae,"")},Mt=Dt(),Yt=ve&&ve[3]||(B.cssNumber[ae]?"":"px"),Xn=J.nodeType&&(B.cssNumber[ae]||Yt!=="px"&&+Mt)&&sn.exec(B.css(J,ae));if(Xn&&Xn[3]!==Yt){for(Mt=Mt/2,Yt=Yt||Xn[3],Xn=+Mt||1;rt--;)B.style(J,ae,Xn+Yt),(1-Ge)*(1-(Ge=Dt()/Mt||.5))<=0&&(rt=0),Xn=Xn/Ge;Xn=Xn*2,B.style(J,ae,Xn+Yt),ve=ve||[]}return ve&&(Xn=+Xn||+Mt||0,Re=ve[1]?Xn+(ve[1]+1)*ve[2]:+ve[2],be&&(be.unit=Yt,be.start=Xn,be.end=Re)),Re}var jn={};function ln(J){var ae,ve=J.ownerDocument,be=J.nodeName,Re=jn[be];return Re||(ae=ve.body.appendChild(ve.createElement(be)),Re=B.css(ae,"display"),ae.parentNode.removeChild(ae),Re==="none"&&(Re="block"),jn[be]=Re,Re)}function ar(J,ae){for(var ve,be,Re=[],Ge=0,rt=J.length;Ge<rt;Ge++)be=J[Ge],be.style&&(ve=be.style.display,ae?(ve==="none"&&(Re[Ge]=wt.get(be,"display")||null,Re[Ge]||(be.style.display="")),be.style.display===""&&_n(be)&&(Re[Ge]=ln(be))):ve!=="none"&&(Re[Ge]="none",wt.set(be,"display",ve)));for(Ge=0;Ge<rt;Ge++)Re[Ge]!=null&&(J[Ge].style.display=Re[Ge]);return J}B.fn.extend({show:function(){return ar(this,!0)},hide:function(){return ar(this)},toggle:function(J){return typeof J=="boolean"?J?this.show():this.hide():this.each(function(){_n(this)?B(this).show():B(this).hide()})}});var zr=/^(?:checkbox|radio)$/i,Jr=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,bi=/^$|^module$|\/(?:java|ecma)script/i;(function(){var J=A.createDocumentFragment(),ae=J.appendChild(A.createElement("div")),ve=A.createElement("input");ve.setAttribute("type","radio"),ve.setAttribute("checked","checked"),ve.setAttribute("name","t"),ae.appendChild(ve),I.checkClone=ae.cloneNode(!0).cloneNode(!0).lastChild.checked,ae.innerHTML="<textarea>x</textarea>",I.noCloneChecked=!!ae.cloneNode(!0).lastChild.defaultValue,ae.innerHTML="<option></option>",I.option=!!ae.lastChild})();var hi={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};hi.tbody=hi.tfoot=hi.colgroup=hi.caption=hi.thead,hi.th=hi.td,I.option||(hi.optgroup=hi.option=[1,"<select multiple='multiple'>","</select>"]);function wi(J,ae){var ve;return typeof J.getElementsByTagName!="undefined"?ve=J.getElementsByTagName(ae||"*"):typeof J.querySelectorAll!="undefined"?ve=J.querySelectorAll(ae||"*"):ve=[],ae===void 0||ae&&D(J,ae)?B.merge([J],ve):ve}function Ca(J,ae){for(var ve=0,be=J.length;ve<be;ve++)wt.set(J[ve],"globalEval",!ae||wt.get(ae[ve],"globalEval"))}var jt=/<|&#?\w+;/;function dt(J,ae,ve,be,Re){for(var Ge,rt,Dt,Mt,Yt,Xn,Sn=ae.createDocumentFragment(),Gn=[],Or=0,ki=J.length;Or<ki;Or++)if(Ge=J[Or],Ge||Ge===0)if(V(Ge)==="object")B.merge(Gn,Ge.nodeType?[Ge]:Ge);else if(!jt.test(Ge))Gn.push(ae.createTextNode(Ge));else{for(rt=rt||Sn.appendChild(ae.createElement("div")),Dt=(Jr.exec(Ge)||["",""])[1].toLowerCase(),Mt=hi[Dt]||hi._default,rt.innerHTML=Mt[1]+B.htmlPrefilter(Ge)+Mt[2],Xn=Mt[0];Xn--;)rt=rt.lastChild;B.merge(Gn,rt.childNodes),rt=Sn.firstChild,rt.textContent=""}for(Sn.textContent="",Or=0;Ge=Gn[Or++];){if(be&&B.inArray(Ge,be)>-1){Re&&Re.push(Ge);continue}if(Yt=Kr(Ge),rt=wi(Sn.appendChild(Ge),"script"),Yt&&Ca(rt),ve)for(Xn=0;Ge=rt[Xn++];)bi.test(Ge.type||"")&&ve.push(Ge)}return Sn}var xt=/^([^.]*)(?:\.(.+)|)/;function Nt(){return!0}function Qt(){return!1}function mn(J,ae,ve,be,Re,Ge){var rt,Dt;if(typeof ae=="object"){typeof ve!="string"&&(be=be||ve,ve=void 0);for(Dt in ae)mn(J,Dt,ve,be,ae[Dt],Ge);return J}if(be==null&&Re==null?(Re=ve,be=ve=void 0):Re==null&&(typeof ve=="string"?(Re=be,be=void 0):(Re=be,be=ve,ve=void 0)),Re===!1)Re=Qt;else if(!Re)return J;return Ge===1&&(rt=Re,Re=function(Mt){return B().off(Mt),rt.apply(this,arguments)},Re.guid=rt.guid||(rt.guid=B.guid++)),J.each(function(){B.event.add(this,ae,Re,be,ve)})}B.event={global:{},add:function(J,ae,ve,be,Re){var Ge,rt,Dt,Mt,Yt,Xn,Sn,Gn,Or,ki,Ia,ma=wt.get(J);if(!!Et(J))for(ve.handler&&(Ge=ve,ve=Ge.handler,Re=Ge.selector),Re&&B.find.matchesSelector(Dr,Re),ve.guid||(ve.guid=B.guid++),(Mt=ma.events)||(Mt=ma.events=Object.create(null)),(rt=ma.handle)||(rt=ma.handle=function(na){return typeof B!="undefined"&&B.event.triggered!==na.type?B.event.dispatch.apply(J,arguments):void 0}),ae=(ae||"").match(at)||[""],Yt=ae.length;Yt--;)Dt=xt.exec(ae[Yt])||[],Or=Ia=Dt[1],ki=(Dt[2]||"").split(".").sort(),Or&&(Sn=B.event.special[Or]||{},Or=(Re?Sn.delegateType:Sn.bindType)||Or,Sn=B.event.special[Or]||{},Xn=B.extend({type:Or,origType:Ia,data:be,handler:ve,guid:ve.guid,selector:Re,needsContext:Re&&B.expr.match.needsContext.test(Re),namespace:ki.join(".")},Ge),(Gn=Mt[Or])||(Gn=Mt[Or]=[],Gn.delegateCount=0,(!Sn.setup||Sn.setup.call(J,be,ki,rt)===!1)&&J.addEventListener&&J.addEventListener(Or,rt)),Sn.add&&(Sn.add.call(J,Xn),Xn.handler.guid||(Xn.handler.guid=ve.guid)),Re?Gn.splice(Gn.delegateCount++,0,Xn):Gn.push(Xn),B.event.global[Or]=!0)},remove:function(J,ae,ve,be,Re){var Ge,rt,Dt,Mt,Yt,Xn,Sn,Gn,Or,ki,Ia,ma=wt.hasData(J)&&wt.get(J);if(!(!ma||!(Mt=ma.events))){for(ae=(ae||"").match(at)||[""],Yt=ae.length;Yt--;){if(Dt=xt.exec(ae[Yt])||[],Or=Ia=Dt[1],ki=(Dt[2]||"").split(".").sort(),!Or){for(Or in Mt)B.event.remove(J,Or+ae[Yt],ve,be,!0);continue}for(Sn=B.event.special[Or]||{},Or=(be?Sn.delegateType:Sn.bindType)||Or,Gn=Mt[Or]||[],Dt=Dt[2]&&new RegExp("(^|\\.)"+ki.join("\\.(?:.*\\.|)")+"(\\.|$)"),rt=Ge=Gn.length;Ge--;)Xn=Gn[Ge],(Re||Ia===Xn.origType)&&(!ve||ve.guid===Xn.guid)&&(!Dt||Dt.test(Xn.namespace))&&(!be||be===Xn.selector||be==="**"&&Xn.selector)&&(Gn.splice(Ge,1),Xn.selector&&Gn.delegateCount--,Sn.remove&&Sn.remove.call(J,Xn));rt&&!Gn.length&&((!Sn.teardown||Sn.teardown.call(J,ki,ma.handle)===!1)&&B.removeEvent(J,Or,ma.handle),delete Mt[Or])}B.isEmptyObject(Mt)&&wt.remove(J,"handle events")}},dispatch:function(J){var ae,ve,be,Re,Ge,rt,Dt=new Array(arguments.length),Mt=B.event.fix(J),Yt=(wt.get(this,"events")||Object.create(null))[Mt.type]||[],Xn=B.event.special[Mt.type]||{};for(Dt[0]=Mt,ae=1;ae<arguments.length;ae++)Dt[ae]=arguments[ae];if(Mt.delegateTarget=this,!(Xn.preDispatch&&Xn.preDispatch.call(this,Mt)===!1)){for(rt=B.event.handlers.call(this,Mt,Yt),ae=0;(Re=rt[ae++])&&!Mt.isPropagationStopped();)for(Mt.currentTarget=Re.elem,ve=0;(Ge=Re.handlers[ve++])&&!Mt.isImmediatePropagationStopped();)(!Mt.rnamespace||Ge.namespace===!1||Mt.rnamespace.test(Ge.namespace))&&(Mt.handleObj=Ge,Mt.data=Ge.data,be=((B.event.special[Ge.origType]||{}).handle||Ge.handler).apply(Re.elem,Dt),be!==void 0&&(Mt.result=be)===!1&&(Mt.preventDefault(),Mt.stopPropagation()));return Xn.postDispatch&&Xn.postDispatch.call(this,Mt),Mt.result}},handlers:function(J,ae){var ve,be,Re,Ge,rt,Dt=[],Mt=ae.delegateCount,Yt=J.target;if(Mt&&Yt.nodeType&&!(J.type==="click"&&J.button>=1)){for(;Yt!==this;Yt=Yt.parentNode||this)if(Yt.nodeType===1&&!(J.type==="click"&&Yt.disabled===!0)){for(Ge=[],rt={},ve=0;ve<Mt;ve++)be=ae[ve],Re=be.selector+" ",rt[Re]===void 0&&(rt[Re]=be.needsContext?B(Re,this).index(Yt)>-1:B.find(Re,this,null,[Yt]).length),rt[Re]&&Ge.push(be);Ge.length&&Dt.push({elem:Yt,handlers:Ge})}}return Yt=this,Mt<ae.length&&Dt.push({elem:Yt,handlers:ae.slice(Mt)}),Dt},addProp:function(J,ae){Object.defineProperty(B.Event.prototype,J,{enumerable:!0,configurable:!0,get:O(ae)?function(){if(this.originalEvent)return ae(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[J]},set:function(ve){Object.defineProperty(this,J,{enumerable:!0,configurable:!0,writable:!0,value:ve})}})},fix:function(J){return J[B.expando]?J:new B.Event(J)},special:{load:{noBubble:!0},click:{setup:function(J){var ae=this||J;return zr.test(ae.type)&&ae.click&&D(ae,"input")&&Un(ae,"click",!0),!1},trigger:function(J){var ae=this||J;return zr.test(ae.type)&&ae.click&&D(ae,"input")&&Un(ae,"click"),!0},_default:function(J){var ae=J.target;return zr.test(ae.type)&&ae.click&&D(ae,"input")&&wt.get(ae,"click")||D(ae,"a")}},beforeunload:{postDispatch:function(J){J.result!==void 0&&J.originalEvent&&(J.originalEvent.returnValue=J.result)}}}};function Un(J,ae,ve){if(!ve){wt.get(J,ae)===void 0&&B.event.add(J,ae,Nt);return}wt.set(J,ae,!1),B.event.add(J,ae,{namespace:!1,handler:function(be){var Re,Ge=wt.get(this,ae);if(be.isTrigger&1&&this[ae]){if(Ge)(B.event.special[ae]||{}).delegateType&&be.stopPropagation();else if(Ge=s.call(arguments),wt.set(this,ae,Ge),this[ae](),Re=wt.get(this,ae),wt.set(this,ae,!1),Ge!==Re)return be.stopImmediatePropagation(),be.preventDefault(),Re}else Ge&&(wt.set(this,ae,B.event.trigger(Ge[0],Ge.slice(1),this)),be.stopPropagation(),be.isImmediatePropagationStopped=Nt)}})}B.removeEvent=function(J,ae,ve){J.removeEventListener&&J.removeEventListener(ae,ve)},B.Event=function(J,ae){if(!(this instanceof B.Event))return new B.Event(J,ae);J&&J.type?(this.originalEvent=J,this.type=J.type,this.isDefaultPrevented=J.defaultPrevented||J.defaultPrevented===void 0&&J.returnValue===!1?Nt:Qt,this.target=J.target&&J.target.nodeType===3?J.target.parentNode:J.target,this.currentTarget=J.currentTarget,this.relatedTarget=J.relatedTarget):this.type=J,ae&&B.extend(this,ae),this.timeStamp=J&&J.timeStamp||Date.now(),this[B.expando]=!0},B.Event.prototype={constructor:B.Event,isDefaultPrevented:Qt,isPropagationStopped:Qt,isImmediatePropagationStopped:Qt,isSimulated:!1,preventDefault:function(){var J=this.originalEvent;this.isDefaultPrevented=Nt,J&&!this.isSimulated&&J.preventDefault()},stopPropagation:function(){var J=this.originalEvent;this.isPropagationStopped=Nt,J&&!this.isSimulated&&J.stopPropagation()},stopImmediatePropagation:function(){var J=this.originalEvent;this.isImmediatePropagationStopped=Nt,J&&!this.isSimulated&&J.stopImmediatePropagation(),this.stopPropagation()}},B.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},B.event.addProp),B.each({focus:"focusin",blur:"focusout"},function(J,ae){function ve(be){if(A.documentMode){var Re=wt.get(this,"handle"),Ge=B.event.fix(be);Ge.type=be.type==="focusin"?"focus":"blur",Ge.isSimulated=!0,Re(be),Ge.target===Ge.currentTarget&&Re(Ge)}else B.event.simulate(ae,be.target,B.event.fix(be))}B.event.special[J]={setup:function(){var be;if(Un(this,J,!0),A.documentMode)be=wt.get(this,ae),be||this.addEventListener(ae,ve),wt.set(this,ae,(be||0)+1);else return!1},trigger:function(){return Un(this,J),!0},teardown:function(){var be;if(A.documentMode)be=wt.get(this,ae)-1,be?wt.set(this,ae,be):(this.removeEventListener(ae,ve),wt.remove(this,ae));else return!1},_default:function(be){return wt.get(be.target,J)},delegateType:ae},B.event.special[ae]={setup:function(){var be=this.ownerDocument||this.document||this,Re=A.documentMode?this:be,Ge=wt.get(Re,ae);Ge||(A.documentMode?this.addEventListener(ae,ve):be.addEventListener(J,ve,!0)),wt.set(Re,ae,(Ge||0)+1)},teardown:function(){var be=this.ownerDocument||this.document||this,Re=A.documentMode?this:be,Ge=wt.get(Re,ae)-1;Ge?wt.set(Re,ae,Ge):(A.documentMode?this.removeEventListener(ae,ve):be.removeEventListener(J,ve,!0),wt.remove(Re,ae))}}}),B.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(J,ae){B.event.special[J]={delegateType:ae,bindType:ae,handle:function(ve){var be,Re=this,Ge=ve.relatedTarget,rt=ve.handleObj;return(!Ge||Ge!==Re&&!B.contains(Re,Ge))&&(ve.type=rt.origType,be=rt.handler.apply(this,arguments),ve.type=ae),be}}}),B.fn.extend({on:function(J,ae,ve,be){return mn(this,J,ae,ve,be)},one:function(J,ae,ve,be){return mn(this,J,ae,ve,be,1)},off:function(J,ae,ve){var be,Re;if(J&&J.preventDefault&&J.handleObj)return be=J.handleObj,B(J.delegateTarget).off(be.namespace?be.origType+"."+be.namespace:be.origType,be.selector,be.handler),this;if(typeof J=="object"){for(Re in J)this.off(Re,ae,J[Re]);return this}return(ae===!1||typeof ae=="function")&&(ve=ae,ae=void 0),ve===!1&&(ve=Qt),this.each(function(){B.event.remove(this,J,ve,ae)})}});var we=/<script|<style|<link/i,En=/checked\s*(?:[^=]|=\s*.checked.)/i,Kn=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function er(J,ae){return D(J,"table")&&D(ae.nodeType!==11?ae:ae.firstChild,"tr")&&B(J).children("tbody")[0]||J}function Hr(J){return J.type=(J.getAttribute("type")!==null)+"/"+J.type,J}function Ir(J){return(J.type||"").slice(0,5)==="true/"?J.type=J.type.slice(5):J.removeAttribute("type"),J}function Ri(J,ae){var ve,be,Re,Ge,rt,Dt,Mt;if(ae.nodeType===1){if(wt.hasData(J)&&(Ge=wt.get(J),Mt=Ge.events,Mt)){wt.remove(ae,"handle events");for(Re in Mt)for(ve=0,be=Mt[Re].length;ve<be;ve++)B.event.add(ae,Re,Mt[Re][ve])}Yn.hasData(J)&&(rt=Yn.access(J),Dt=B.extend({},rt),Yn.set(ae,Dt))}}function Ti(J,ae){var ve=ae.nodeName.toLowerCase();ve==="input"&&zr.test(J.type)?ae.checked=J.checked:(ve==="input"||ve==="textarea")&&(ae.defaultValue=J.defaultValue)}function mi(J,ae,ve,be){ae=c(ae);var Re,Ge,rt,Dt,Mt,Yt,Xn=0,Sn=J.length,Gn=Sn-1,Or=ae[0],ki=O(Or);if(ki||Sn>1&&typeof Or=="string"&&!I.checkClone&&En.test(Or))return J.each(function(Ia){var ma=J.eq(Ia);ki&&(ae[0]=Or.call(this,Ia,ma.html())),mi(ma,ae,ve,be)});if(Sn&&(Re=dt(ae,J[0].ownerDocument,!1,J,be),Ge=Re.firstChild,Re.childNodes.length===1&&(Re=Ge),Ge||be)){for(rt=B.map(wi(Re,"script"),Hr),Dt=rt.length;Xn<Sn;Xn++)Mt=Re,Xn!==Gn&&(Mt=B.clone(Mt,!0,!0),Dt&&B.merge(rt,wi(Mt,"script"))),ve.call(J[Xn],Mt,Xn);if(Dt)for(Yt=rt[rt.length-1].ownerDocument,B.map(rt,Ir),Xn=0;Xn<Dt;Xn++)Mt=rt[Xn],bi.test(Mt.type||"")&&!wt.access(Mt,"globalEval")&&B.contains(Yt,Mt)&&(Mt.src&&(Mt.type||"").toLowerCase()!=="module"?B._evalUrl&&!Mt.noModule&&B._evalUrl(Mt.src,{nonce:Mt.nonce||Mt.getAttribute("nonce")},Yt):G(Mt.textContent.replace(Kn,""),Mt,Yt))}return J}function Li(J,ae,ve){for(var be,Re=ae?B.filter(ae,J):J,Ge=0;(be=Re[Ge])!=null;Ge++)!ve&&be.nodeType===1&&B.cleanData(wi(be)),be.parentNode&&(ve&&Kr(be)&&Ca(wi(be,"script")),be.parentNode.removeChild(be));return J}B.extend({htmlPrefilter:function(J){return J},clone:function(J,ae,ve){var be,Re,Ge,rt,Dt=J.cloneNode(!0),Mt=Kr(J);if(!I.noCloneChecked&&(J.nodeType===1||J.nodeType===11)&&!B.isXMLDoc(J))for(rt=wi(Dt),Ge=wi(J),be=0,Re=Ge.length;be<Re;be++)Ti(Ge[be],rt[be]);if(ae)if(ve)for(Ge=Ge||wi(J),rt=rt||wi(Dt),be=0,Re=Ge.length;be<Re;be++)Ri(Ge[be],rt[be]);else Ri(J,Dt);return rt=wi(Dt,"script"),rt.length>0&&Ca(rt,!Mt&&wi(J,"script")),Dt},cleanData:function(J){for(var ae,ve,be,Re=B.event.special,Ge=0;(ve=J[Ge])!==void 0;Ge++)if(Et(ve)){if(ae=ve[wt.expando]){if(ae.events)for(be in ae.events)Re[be]?B.event.remove(ve,be):B.removeEvent(ve,be,ae.handle);ve[wt.expando]=void 0}ve[Yn.expando]&&(ve[Yn.expando]=void 0)}}}),B.fn.extend({detach:function(J){return Li(this,J,!0)},remove:function(J){return Li(this,J)},text:function(J){return _t(this,function(ae){return ae===void 0?B.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=ae)})},null,J,arguments.length)},append:function(){return mi(this,arguments,function(J){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var ae=er(this,J);ae.appendChild(J)}})},prepend:function(){return mi(this,arguments,function(J){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var ae=er(this,J);ae.insertBefore(J,ae.firstChild)}})},before:function(){return mi(this,arguments,function(J){this.parentNode&&this.parentNode.insertBefore(J,this)})},after:function(){return mi(this,arguments,function(J){this.parentNode&&this.parentNode.insertBefore(J,this.nextSibling)})},empty:function(){for(var J,ae=0;(J=this[ae])!=null;ae++)J.nodeType===1&&(B.cleanData(wi(J,!1)),J.textContent="");return this},clone:function(J,ae){return J=J==null?!1:J,ae=ae==null?J:ae,this.map(function(){return B.clone(this,J,ae)})},html:function(J){return _t(this,function(ae){var ve=this[0]||{},be=0,Re=this.length;if(ae===void 0&&ve.nodeType===1)return ve.innerHTML;if(typeof ae=="string"&&!we.test(ae)&&!hi[(Jr.exec(ae)||["",""])[1].toLowerCase()]){ae=B.htmlPrefilter(ae);try{for(;be<Re;be++)ve=this[be]||{},ve.nodeType===1&&(B.cleanData(wi(ve,!1)),ve.innerHTML=ae);ve=0}catch(Ge){}}ve&&this.empty().append(ae)},null,J,arguments.length)},replaceWith:function(){var J=[];return mi(this,arguments,function(ae){var ve=this.parentNode;B.inArray(this,J)<0&&(B.cleanData(wi(this)),ve&&ve.replaceChild(ae,this))},J)}}),B.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(J,ae){B.fn[J]=function(ve){for(var be,Re=[],Ge=B(ve),rt=Ge.length-1,Dt=0;Dt<=rt;Dt++)be=Dt===rt?this:this.clone(!0),B(Ge[Dt])[ae](be),l.apply(Re,be.get());return this.pushStack(Re)}});var tr=new RegExp("^("+Ht+")(?!px)[a-z%]+$","i"),ha=/^--/,ti=function(J){var ae=J.ownerDocument.defaultView;return(!ae||!ae.opener)&&(ae=e),ae.getComputedStyle(J)},ua=function(J,ae,ve){var be,Re,Ge={};for(Re in ae)Ge[Re]=J.style[Re],J.style[Re]=ae[Re];be=ve.call(J);for(Re in ae)J.style[Re]=Ge[Re];return be},Va=new RegExp(yn.join("|"),"i");(function(){function J(){if(!!Yt){Mt.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",Yt.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Dr.appendChild(Mt).appendChild(Yt);var Xn=e.getComputedStyle(Yt);ve=Xn.top!=="1%",Dt=ae(Xn.marginLeft)===12,Yt.style.right="60%",Ge=ae(Xn.right)===36,be=ae(Xn.width)===36,Yt.style.position="absolute",Re=ae(Yt.offsetWidth/3)===12,Dr.removeChild(Mt),Yt=null}}function ae(Xn){return Math.round(parseFloat(Xn))}var ve,be,Re,Ge,rt,Dt,Mt=A.createElement("div"),Yt=A.createElement("div");!Yt.style||(Yt.style.backgroundClip="content-box",Yt.cloneNode(!0).style.backgroundClip="",I.clearCloneStyle=Yt.style.backgroundClip==="content-box",B.extend(I,{boxSizingReliable:function(){return J(),be},pixelBoxStyles:function(){return J(),Ge},pixelPosition:function(){return J(),ve},reliableMarginLeft:function(){return J(),Dt},scrollboxSize:function(){return J(),Re},reliableTrDimensions:function(){var Xn,Sn,Gn,Or;return rt==null&&(Xn=A.createElement("table"),Sn=A.createElement("tr"),Gn=A.createElement("div"),Xn.style.cssText="position:absolute;left:-11111px;border-collapse:separate",Sn.style.cssText="box-sizing:content-box;border:1px solid",Sn.style.height="1px",Gn.style.height="9px",Gn.style.display="block",Dr.appendChild(Xn).appendChild(Sn).appendChild(Gn),Or=e.getComputedStyle(Sn),rt=parseInt(Or.height,10)+parseInt(Or.borderTopWidth,10)+parseInt(Or.borderBottomWidth,10)===Sn.offsetHeight,Dr.removeChild(Xn)),rt}}))})();function ns(J,ae,ve){var be,Re,Ge,rt,Dt=ha.test(ae),Mt=J.style;return ve=ve||ti(J),ve&&(rt=ve.getPropertyValue(ae)||ve[ae],Dt&&rt&&(rt=rt.replace(me,"$1")||void 0),rt===""&&!Kr(J)&&(rt=B.style(J,ae)),!I.pixelBoxStyles()&&tr.test(rt)&&Va.test(ae)&&(be=Mt.width,Re=Mt.minWidth,Ge=Mt.maxWidth,Mt.minWidth=Mt.maxWidth=Mt.width=rt,rt=ve.width,Mt.width=be,Mt.minWidth=Re,Mt.maxWidth=Ge)),rt!==void 0?rt+"":rt}function Xo(J,ae){return{get:function(){if(J()){delete this.get;return}return(this.get=ae).apply(this,arguments)}}}var qr=["Webkit","Moz","ms"],ca=A.createElement("div").style,va={};function Ms(J){for(var ae=J[0].toUpperCase()+J.slice(1),ve=qr.length;ve--;)if(J=qr[ve]+ae,J in ca)return J}function rs(J){var ae=B.cssProps[J]||va[J];return ae||(J in ca?J:va[J]=Ms(J)||J)}var Ai=/^(none|table(?!-c[ea]).+)/,Na={position:"absolute",visibility:"hidden",display:"block"},sl={letterSpacing:"0",fontWeight:"400"};function eo(J,ae,ve){var be=sn.exec(ae);return be?Math.max(0,be[2]-(ve||0))+(be[3]||"px"):ae}function ja(J,ae,ve,be,Re,Ge){var rt=ae==="width"?1:0,Dt=0,Mt=0,Yt=0;if(ve===(be?"border":"content"))return 0;for(;rt<4;rt+=2)ve==="margin"&&(Yt+=B.css(J,ve+yn[rt],!0,Re)),be?(ve==="content"&&(Mt-=B.css(J,"padding"+yn[rt],!0,Re)),ve!=="margin"&&(Mt-=B.css(J,"border"+yn[rt]+"Width",!0,Re))):(Mt+=B.css(J,"padding"+yn[rt],!0,Re),ve!=="padding"?Mt+=B.css(J,"border"+yn[rt]+"Width",!0,Re):Dt+=B.css(J,"border"+yn[rt]+"Width",!0,Re));return!be&&Ge>=0&&(Mt+=Math.max(0,Math.ceil(J["offset"+ae[0].toUpperCase()+ae.slice(1)]-Ge-Mt-Dt-.5))||0),Mt+Yt}function no(J,ae,ve){var be=ti(J),Re=!I.boxSizingReliable()||ve,Ge=Re&&B.css(J,"boxSizing",!1,be)==="border-box",rt=Ge,Dt=ns(J,ae,be),Mt="offset"+ae[0].toUpperCase()+ae.slice(1);if(tr.test(Dt)){if(!ve)return Dt;Dt="auto"}return(!I.boxSizingReliable()&&Ge||!I.reliableTrDimensions()&&D(J,"tr")||Dt==="auto"||!parseFloat(Dt)&&B.css(J,"display",!1,be)==="inline")&&J.getClientRects().length&&(Ge=B.css(J,"boxSizing",!1,be)==="border-box",rt=Mt in J,rt&&(Dt=J[Mt])),Dt=parseFloat(Dt)||0,Dt+ja(J,ae,ve||(Ge?"border":"content"),rt,be,Dt)+"px"}B.extend({cssHooks:{opacity:{get:function(J,ae){if(ae){var ve=ns(J,"opacity");return ve===""?"1":ve}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(J,ae,ve,be){if(!(!J||J.nodeType===3||J.nodeType===8||!J.style)){var Re,Ge,rt,Dt=Zt(ae),Mt=ha.test(ae),Yt=J.style;if(Mt||(ae=rs(Dt)),rt=B.cssHooks[ae]||B.cssHooks[Dt],ve!==void 0){if(Ge=typeof ve,Ge==="string"&&(Re=sn.exec(ve))&&Re[1]&&(ve=xn(J,ae,Re),Ge="number"),ve==null||ve!==ve)return;Ge==="number"&&!Mt&&(ve+=Re&&Re[3]||(B.cssNumber[Dt]?"":"px")),!I.clearCloneStyle&&ve===""&&ae.indexOf("background")===0&&(Yt[ae]="inherit"),(!rt||!("set"in rt)||(ve=rt.set(J,ve,be))!==void 0)&&(Mt?Yt.setProperty(ae,ve):Yt[ae]=ve)}else return rt&&"get"in rt&&(Re=rt.get(J,!1,be))!==void 0?Re:Yt[ae]}},css:function(J,ae,ve,be){var Re,Ge,rt,Dt=Zt(ae),Mt=ha.test(ae);return Mt||(ae=rs(Dt)),rt=B.cssHooks[ae]||B.cssHooks[Dt],rt&&"get"in rt&&(Re=rt.get(J,!0,ve)),Re===void 0&&(Re=ns(J,ae,be)),Re==="normal"&&ae in sl&&(Re=sl[ae]),ve===""||ve?(Ge=parseFloat(Re),ve===!0||isFinite(Ge)?Ge||0:Re):Re}}),B.each(["height","width"],function(J,ae){B.cssHooks[ae]={get:function(ve,be,Re){if(be)return Ai.test(B.css(ve,"display"))&&(!ve.getClientRects().length||!ve.getBoundingClientRect().width)?ua(ve,Na,function(){return no(ve,ae,Re)}):no(ve,ae,Re)},set:function(ve,be,Re){var Ge,rt=ti(ve),Dt=!I.scrollboxSize()&&rt.position==="absolute",Mt=Dt||Re,Yt=Mt&&B.css(ve,"boxSizing",!1,rt)==="border-box",Xn=Re?ja(ve,ae,Re,Yt,rt):0;return Yt&&Dt&&(Xn-=Math.ceil(ve["offset"+ae[0].toUpperCase()+ae.slice(1)]-parseFloat(rt[ae])-ja(ve,ae,"border",!1,rt)-.5)),Xn&&(Ge=sn.exec(be))&&(Ge[3]||"px")!=="px"&&(ve.style[ae]=be,be=B.css(ve,ae)),eo(ve,be,Xn)}}}),B.cssHooks.marginLeft=Xo(I.reliableMarginLeft,function(J,ae){if(ae)return(parseFloat(ns(J,"marginLeft"))||J.getBoundingClientRect().left-ua(J,{marginLeft:0},function(){return J.getBoundingClientRect().left}))+"px"}),B.each({margin:"",padding:"",border:"Width"},function(J,ae){B.cssHooks[J+ae]={expand:function(ve){for(var be=0,Re={},Ge=typeof ve=="string"?ve.split(" "):[ve];be<4;be++)Re[J+yn[be]+ae]=Ge[be]||Ge[be-2]||Ge[0];return Re}},J!=="margin"&&(B.cssHooks[J+ae].set=eo)}),B.fn.extend({css:function(J,ae){return _t(this,function(ve,be,Re){var Ge,rt,Dt={},Mt=0;if(Array.isArray(be)){for(Ge=ti(ve),rt=be.length;Mt<rt;Mt++)Dt[be[Mt]]=B.css(ve,be[Mt],!1,Ge);return Dt}return Re!==void 0?B.style(ve,be,Re):B.css(ve,be)},J,ae,arguments.length>1)}});function yo(J,ae,ve,be,Re){return new yo.prototype.init(J,ae,ve,be,Re)}B.Tween=yo,yo.prototype={constructor:yo,init:function(J,ae,ve,be,Re,Ge){this.elem=J,this.prop=ve,this.easing=Re||B.easing._default,this.options=ae,this.start=this.now=this.cur(),this.end=be,this.unit=Ge||(B.cssNumber[ve]?"":"px")},cur:function(){var J=yo.propHooks[this.prop];return J&&J.get?J.get(this):yo.propHooks._default.get(this)},run:function(J){var ae,ve=yo.propHooks[this.prop];return this.options.duration?this.pos=ae=B.easing[this.easing](J,this.options.duration*J,0,1,this.options.duration):this.pos=ae=J,this.now=(this.end-this.start)*ae+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),ve&&ve.set?ve.set(this):yo.propHooks._default.set(this),this}},yo.prototype.init.prototype=yo.prototype,yo.propHooks={_default:{get:function(J){var ae;return J.elem.nodeType!==1||J.elem[J.prop]!=null&&J.elem.style[J.prop]==null?J.elem[J.prop]:(ae=B.css(J.elem,J.prop,""),!ae||ae==="auto"?0:ae)},set:function(J){B.fx.step[J.prop]?B.fx.step[J.prop](J):J.elem.nodeType===1&&(B.cssHooks[J.prop]||J.elem.style[rs(J.prop)]!=null)?B.style(J.elem,J.prop,J.now+J.unit):J.elem[J.prop]=J.now}}},yo.propHooks.scrollTop=yo.propHooks.scrollLeft={set:function(J){J.elem.nodeType&&J.elem.parentNode&&(J.elem[J.prop]=J.now)}},B.easing={linear:function(J){return J},swing:function(J){return .5-Math.cos(J*Math.PI)/2},_default:"swing"},B.fx=yo.prototype.init,B.fx.step={};var Ra,Ye,$t=/^(?:toggle|show|hide)$/,ft=/queueHooks$/;function Gt(){Ye&&(A.hidden===!1&&e.requestAnimationFrame?e.requestAnimationFrame(Gt):e.setTimeout(Gt,B.fx.interval),B.fx.tick())}function bn(){return e.setTimeout(function(){Ra=void 0}),Ra=Date.now()}function sr(J,ae){var ve,be=0,Re={height:J};for(ae=ae?1:0;be<4;be+=2-ae)ve=yn[be],Re["margin"+ve]=Re["padding"+ve]=J;return ae&&(Re.opacity=Re.width=J),Re}function Br(J,ae,ve){for(var be,Re=(vi.tweeners[ae]||[]).concat(vi.tweeners["*"]),Ge=0,rt=Re.length;Ge<rt;Ge++)if(be=Re[Ge].call(ve,ae,J))return be}function Pr(J,ae,ve){var be,Re,Ge,rt,Dt,Mt,Yt,Xn,Sn="width"in ae||"height"in ae,Gn=this,Or={},ki=J.style,Ia=J.nodeType&&_n(J),ma=wt.get(J,"fxshow");ve.queue||(rt=B._queueHooks(J,"fx"),rt.unqueued==null&&(rt.unqueued=0,Dt=rt.empty.fire,rt.empty.fire=function(){rt.unqueued||Dt()}),rt.unqueued++,Gn.always(function(){Gn.always(function(){rt.unqueued--,B.queue(J,"fx").length||rt.empty.fire()})}));for(be in ae)if(Re=ae[be],$t.test(Re)){if(delete ae[be],Ge=Ge||Re==="toggle",Re===(Ia?"hide":"show"))if(Re==="show"&&ma&&ma[be]!==void 0)Ia=!0;else continue;Or[be]=ma&&ma[be]||B.style(J,be)}if(Mt=!B.isEmptyObject(ae),!(!Mt&&B.isEmptyObject(Or))){Sn&&J.nodeType===1&&(ve.overflow=[ki.overflow,ki.overflowX,ki.overflowY],Yt=ma&&ma.display,Yt==null&&(Yt=wt.get(J,"display")),Xn=B.css(J,"display"),Xn==="none"&&(Yt?Xn=Yt:(ar([J],!0),Yt=J.style.display||Yt,Xn=B.css(J,"display"),ar([J]))),(Xn==="inline"||Xn==="inline-block"&&Yt!=null)&&B.css(J,"float")==="none"&&(Mt||(Gn.done(function(){ki.display=Yt}),Yt==null&&(Xn=ki.display,Yt=Xn==="none"?"":Xn)),ki.display="inline-block")),ve.overflow&&(ki.overflow="hidden",Gn.always(function(){ki.overflow=ve.overflow[0],ki.overflowX=ve.overflow[1],ki.overflowY=ve.overflow[2]})),Mt=!1;for(be in Or)Mt||(ma?"hidden"in ma&&(Ia=ma.hidden):ma=wt.access(J,"fxshow",{display:Yt}),Ge&&(ma.hidden=!Ia),Ia&&ar([J],!0),Gn.done(function(){Ia||ar([J]),wt.remove(J,"fxshow");for(be in Or)B.style(J,be,Or[be])})),Mt=Br(Ia?ma[be]:0,be,Gn),be in ma||(ma[be]=Mt.start,Ia&&(Mt.end=Mt.start,Mt.start=0))}}function Mi(J,ae){var ve,be,Re,Ge,rt;for(ve in J)if(be=Zt(ve),Re=ae[be],Ge=J[ve],Array.isArray(Ge)&&(Re=Ge[1],Ge=J[ve]=Ge[0]),ve!==be&&(J[be]=Ge,delete J[ve]),rt=B.cssHooks[be],rt&&"expand"in rt){Ge=rt.expand(Ge),delete J[be];for(ve in Ge)ve in J||(J[ve]=Ge[ve],ae[ve]=Re)}else ae[be]=Re}function vi(J,ae,ve){var be,Re,Ge=0,rt=vi.prefilters.length,Dt=B.Deferred().always(function(){delete Mt.elem}),Mt=function(){if(Re)return!1;for(var Sn=Ra||bn(),Gn=Math.max(0,Yt.startTime+Yt.duration-Sn),Or=Gn/Yt.duration||0,ki=1-Or,Ia=0,ma=Yt.tweens.length;Ia<ma;Ia++)Yt.tweens[Ia].run(ki);return Dt.notifyWith(J,[Yt,ki,Gn]),ki<1&&ma?Gn:(ma||Dt.notifyWith(J,[Yt,1,0]),Dt.resolveWith(J,[Yt]),!1)},Yt=Dt.promise({elem:J,props:B.extend({},ae),opts:B.extend(!0,{specialEasing:{},easing:B.easing._default},ve),originalProperties:ae,originalOptions:ve,startTime:Ra||bn(),duration:ve.duration,tweens:[],createTween:function(Sn,Gn){var Or=B.Tween(J,Yt.opts,Sn,Gn,Yt.opts.specialEasing[Sn]||Yt.opts.easing);return Yt.tweens.push(Or),Or},stop:function(Sn){var Gn=0,Or=Sn?Yt.tweens.length:0;if(Re)return this;for(Re=!0;Gn<Or;Gn++)Yt.tweens[Gn].run(1);return Sn?(Dt.notifyWith(J,[Yt,1,0]),Dt.resolveWith(J,[Yt,Sn])):Dt.rejectWith(J,[Yt,Sn]),this}}),Xn=Yt.props;for(Mi(Xn,Yt.opts.specialEasing);Ge<rt;Ge++)if(be=vi.prefilters[Ge].call(Yt,J,Xn,Yt.opts),be)return O(be.stop)&&(B._queueHooks(Yt.elem,Yt.opts.queue).stop=be.stop.bind(be)),be;return B.map(Xn,Br,Yt),O(Yt.opts.start)&&Yt.opts.start.call(J,Yt),Yt.progress(Yt.opts.progress).done(Yt.opts.done,Yt.opts.complete).fail(Yt.opts.fail).always(Yt.opts.always),B.fx.timer(B.extend(Mt,{elem:J,anim:Yt,queue:Yt.opts.queue})),Yt}B.Animation=B.extend(vi,{tweeners:{"*":[function(J,ae){var ve=this.createTween(J,ae);return xn(ve.elem,J,sn.exec(ae),ve),ve}]},tweener:function(J,ae){O(J)?(ae=J,J=["*"]):J=J.match(at);for(var ve,be=0,Re=J.length;be<Re;be++)ve=J[be],vi.tweeners[ve]=vi.tweeners[ve]||[],vi.tweeners[ve].unshift(ae)},prefilters:[Pr],prefilter:function(J,ae){ae?vi.prefilters.unshift(J):vi.prefilters.push(J)}}),B.speed=function(J,ae,ve){var be=J&&typeof J=="object"?B.extend({},J):{complete:ve||!ve&&ae||O(J)&&J,duration:J,easing:ve&&ae||ae&&!O(ae)&&ae};return B.fx.off?be.duration=0:typeof be.duration!="number"&&(be.duration in B.fx.speeds?be.duration=B.fx.speeds[be.duration]:be.duration=B.fx.speeds._default),(be.queue==null||be.queue===!0)&&(be.queue="fx"),be.old=be.complete,be.complete=function(){O(be.old)&&be.old.call(this),be.queue&&B.dequeue(this,be.queue)},be},B.fn.extend({fadeTo:function(J,ae,ve,be){return this.filter(_n).css("opacity",0).show().end().animate({opacity:ae},J,ve,be)},animate:function(J,ae,ve,be){var Re=B.isEmptyObject(J),Ge=B.speed(ae,ve,be),rt=function(){var Dt=vi(this,B.extend({},J),Ge);(Re||wt.get(this,"finish"))&&Dt.stop(!0)};return rt.finish=rt,Re||Ge.queue===!1?this.each(rt):this.queue(Ge.queue,rt)},stop:function(J,ae,ve){var be=function(Re){var Ge=Re.stop;delete Re.stop,Ge(ve)};return typeof J!="string"&&(ve=ae,ae=J,J=void 0),ae&&this.queue(J||"fx",[]),this.each(function(){var Re=!0,Ge=J!=null&&J+"queueHooks",rt=B.timers,Dt=wt.get(this);if(Ge)Dt[Ge]&&Dt[Ge].stop&&be(Dt[Ge]);else for(Ge in Dt)Dt[Ge]&&Dt[Ge].stop&&ft.test(Ge)&&be(Dt[Ge]);for(Ge=rt.length;Ge--;)rt[Ge].elem===this&&(J==null||rt[Ge].queue===J)&&(rt[Ge].anim.stop(ve),Re=!1,rt.splice(Ge,1));(Re||!ve)&&B.dequeue(this,J)})},finish:function(J){return J!==!1&&(J=J||"fx"),this.each(function(){var ae,ve=wt.get(this),be=ve[J+"queue"],Re=ve[J+"queueHooks"],Ge=B.timers,rt=be?be.length:0;for(ve.finish=!0,B.queue(this,J,[]),Re&&Re.stop&&Re.stop.call(this,!0),ae=Ge.length;ae--;)Ge[ae].elem===this&&Ge[ae].queue===J&&(Ge[ae].anim.stop(!0),Ge.splice(ae,1));for(ae=0;ae<rt;ae++)be[ae]&&be[ae].finish&&be[ae].finish.call(this);delete ve.finish})}}),B.each(["toggle","show","hide"],function(J,ae){var ve=B.fn[ae];B.fn[ae]=function(be,Re,Ge){return be==null||typeof be=="boolean"?ve.apply(this,arguments):this.animate(sr(ae,!0),be,Re,Ge)}}),B.each({slideDown:sr("show"),slideUp:sr("hide"),slideToggle:sr("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(J,ae){B.fn[J]=function(ve,be,Re){return this.animate(ae,ve,be,Re)}}),B.timers=[],B.fx.tick=function(){var J,ae=0,ve=B.timers;for(Ra=Date.now();ae<ve.length;ae++)J=ve[ae],!J()&&ve[ae]===J&&ve.splice(ae--,1);ve.length||B.fx.stop(),Ra=void 0},B.fx.timer=function(J){B.timers.push(J),B.fx.start()},B.fx.interval=13,B.fx.start=function(){Ye||(Ye=!0,Gt())},B.fx.stop=function(){Ye=null},B.fx.speeds={slow:600,fast:200,_default:400},B.fn.delay=function(J,ae){return J=B.fx&&B.fx.speeds[J]||J,ae=ae||"fx",this.queue(ae,function(ve,be){var Re=e.setTimeout(ve,J);be.stop=function(){e.clearTimeout(Re)}})},function(){var J=A.createElement("input"),ae=A.createElement("select"),ve=ae.appendChild(A.createElement("option"));J.type="checkbox",I.checkOn=J.value!=="",I.optSelected=ve.selected,J=A.createElement("input"),J.value="t",J.type="radio",I.radioValue=J.value==="t"}();var Sa,La=B.expr.attrHandle;B.fn.extend({attr:function(J,ae){return _t(this,B.attr,J,ae,arguments.length>1)},removeAttr:function(J){return this.each(function(){B.removeAttr(this,J)})}}),B.extend({attr:function(J,ae,ve){var be,Re,Ge=J.nodeType;if(!(Ge===3||Ge===8||Ge===2)){if(typeof J.getAttribute=="undefined")return B.prop(J,ae,ve);if((Ge!==1||!B.isXMLDoc(J))&&(Re=B.attrHooks[ae.toLowerCase()]||(B.expr.match.bool.test(ae)?Sa:void 0)),ve!==void 0){if(ve===null){B.removeAttr(J,ae);return}return Re&&"set"in Re&&(be=Re.set(J,ve,ae))!==void 0?be:(J.setAttribute(ae,ve+""),ve)}return Re&&"get"in Re&&(be=Re.get(J,ae))!==null?be:(be=B.find.attr(J,ae),be==null?void 0:be)}},attrHooks:{type:{set:function(J,ae){if(!I.radioValue&&ae==="radio"&&D(J,"input")){var ve=J.value;return J.setAttribute("type",ae),ve&&(J.value=ve),ae}}}},removeAttr:function(J,ae){var ve,be=0,Re=ae&&ae.match(at);if(Re&&J.nodeType===1)for(;ve=Re[be++];)J.removeAttribute(ve)}}),Sa={set:function(J,ae,ve){return ae===!1?B.removeAttr(J,ve):J.setAttribute(ve,ve),ve}},B.each(B.expr.match.bool.source.match(/\w+/g),function(J,ae){var ve=La[ae]||B.find.attr;La[ae]=function(be,Re,Ge){var rt,Dt,Mt=Re.toLowerCase();return Ge||(Dt=La[Mt],La[Mt]=rt,rt=ve(be,Re,Ge)!=null?Mt:null,La[Mt]=Dt),rt}});var Cs=/^(?:input|select|textarea|button)$/i,ko=/^(?:a|area)$/i;B.fn.extend({prop:function(J,ae){return _t(this,B.prop,J,ae,arguments.length>1)},removeProp:function(J){return this.each(function(){delete this[B.propFix[J]||J]})}}),B.extend({prop:function(J,ae,ve){var be,Re,Ge=J.nodeType;if(!(Ge===3||Ge===8||Ge===2))return(Ge!==1||!B.isXMLDoc(J))&&(ae=B.propFix[ae]||ae,Re=B.propHooks[ae]),ve!==void 0?Re&&"set"in Re&&(be=Re.set(J,ve,ae))!==void 0?be:J[ae]=ve:Re&&"get"in Re&&(be=Re.get(J,ae))!==null?be:J[ae]},propHooks:{tabIndex:{get:function(J){var ae=B.find.attr(J,"tabindex");return ae?parseInt(ae,10):Cs.test(J.nodeName)||ko.test(J.nodeName)&&J.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),I.optSelected||(B.propHooks.selected={get:function(J){var ae=J.parentNode;return ae&&ae.parentNode&&ae.parentNode.selectedIndex,null},set:function(J){var ae=J.parentNode;ae&&(ae.selectedIndex,ae.parentNode&&ae.parentNode.selectedIndex)}}),B.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){B.propFix[this.toLowerCase()]=this});function Co(J){var ae=J.match(at)||[];return ae.join(" ")}function gs(J){return J.getAttribute&&J.getAttribute("class")||""}function No(J){return Array.isArray(J)?J:typeof J=="string"?J.match(at)||[]:[]}B.fn.extend({addClass:function(J){var ae,ve,be,Re,Ge,rt;return O(J)?this.each(function(Dt){B(this).addClass(J.call(this,Dt,gs(this)))}):(ae=No(J),ae.length?this.each(function(){if(be=gs(this),ve=this.nodeType===1&&" "+Co(be)+" ",ve){for(Ge=0;Ge<ae.length;Ge++)Re=ae[Ge],ve.indexOf(" "+Re+" ")<0&&(ve+=Re+" ");rt=Co(ve),be!==rt&&this.setAttribute("class",rt)}}):this)},removeClass:function(J){var ae,ve,be,Re,Ge,rt;return O(J)?this.each(function(Dt){B(this).removeClass(J.call(this,Dt,gs(this)))}):arguments.length?(ae=No(J),ae.length?this.each(function(){if(be=gs(this),ve=this.nodeType===1&&" "+Co(be)+" ",ve){for(Ge=0;Ge<ae.length;Ge++)for(Re=ae[Ge];ve.indexOf(" "+Re+" ")>-1;)ve=ve.replace(" "+Re+" "," ");rt=Co(ve),be!==rt&&this.setAttribute("class",rt)}}):this):this.attr("class","")},toggleClass:function(J,ae){var ve,be,Re,Ge,rt=typeof J,Dt=rt==="string"||Array.isArray(J);return O(J)?this.each(function(Mt){B(this).toggleClass(J.call(this,Mt,gs(this),ae),ae)}):typeof ae=="boolean"&&Dt?ae?this.addClass(J):this.removeClass(J):(ve=No(J),this.each(function(){if(Dt)for(Ge=B(this),Re=0;Re<ve.length;Re++)be=ve[Re],Ge.hasClass(be)?Ge.removeClass(be):Ge.addClass(be);else(J===void 0||rt==="boolean")&&(be=gs(this),be&&wt.set(this,"__className__",be),this.setAttribute&&this.setAttribute("class",be||J===!1?"":wt.get(this,"__className__")||""))}))},hasClass:function(J){var ae,ve,be=0;for(ae=" "+J+" ";ve=this[be++];)if(ve.nodeType===1&&(" "+Co(gs(ve))+" ").indexOf(ae)>-1)return!0;return!1}});var wl=/\r/g;B.fn.extend({val:function(J){var ae,ve,be,Re=this[0];return arguments.length?(be=O(J),this.each(function(Ge){var rt;this.nodeType===1&&(be?rt=J.call(this,Ge,B(this).val()):rt=J,rt==null?rt="":typeof rt=="number"?rt+="":Array.isArray(rt)&&(rt=B.map(rt,function(Dt){return Dt==null?"":Dt+""})),ae=B.valHooks[this.type]||B.valHooks[this.nodeName.toLowerCase()],(!ae||!("set"in ae)||ae.set(this,rt,"value")===void 0)&&(this.value=rt))})):Re?(ae=B.valHooks[Re.type]||B.valHooks[Re.nodeName.toLowerCase()],ae&&"get"in ae&&(ve=ae.get(Re,"value"))!==void 0?ve:(ve=Re.value,typeof ve=="string"?ve.replace(wl,""):ve==null?"":ve)):void 0}}),B.extend({valHooks:{option:{get:function(J){var ae=B.find.attr(J,"value");return ae!=null?ae:Co(B.text(J))}},select:{get:function(J){var ae,ve,be,Re=J.options,Ge=J.selectedIndex,rt=J.type==="select-one",Dt=rt?null:[],Mt=rt?Ge+1:Re.length;for(Ge<0?be=Mt:be=rt?Ge:0;be<Mt;be++)if(ve=Re[be],(ve.selected||be===Ge)&&!ve.disabled&&(!ve.parentNode.disabled||!D(ve.parentNode,"optgroup"))){if(ae=B(ve).val(),rt)return ae;Dt.push(ae)}return Dt},set:function(J,ae){for(var ve,be,Re=J.options,Ge=B.makeArray(ae),rt=Re.length;rt--;)be=Re[rt],(be.selected=B.inArray(B.valHooks.option.get(be),Ge)>-1)&&(ve=!0);return ve||(J.selectedIndex=-1),Ge}}}}),B.each(["radio","checkbox"],function(){B.valHooks[this]={set:function(J,ae){if(Array.isArray(ae))return J.checked=B.inArray(B(J).val(),ae)>-1}},I.checkOn||(B.valHooks[this].get=function(J){return J.getAttribute("value")===null?"on":J.value})});var Ua=e.location,Vs={guid:Date.now()},jo=/\?/;B.parseXML=function(J){var ae,ve;if(!J||typeof J!="string")return null;try{ae=new e.DOMParser().parseFromString(J,"text/xml")}catch(be){}return ve=ae&&ae.getElementsByTagName("parsererror")[0],(!ae||ve)&&B.error("Invalid XML: "+(ve?B.map(ve.childNodes,function(be){return be.textContent}).join(`
  4692. `):J)),ae};var ys=/^(?:focusinfocus|focusoutblur)$/,Ol=function(J){J.stopPropagation()};B.extend(B.event,{trigger:function(J,ae,ve,be){var Re,Ge,rt,Dt,Mt,Yt,Xn,Sn,Gn=[ve||A],Or=_.call(J,"type")?J.type:J,ki=_.call(J,"namespace")?J.namespace.split("."):[];if(Ge=Sn=rt=ve=ve||A,!(ve.nodeType===3||ve.nodeType===8)&&!ys.test(Or+B.event.triggered)&&(Or.indexOf(".")>-1&&(ki=Or.split("."),Or=ki.shift(),ki.sort()),Mt=Or.indexOf(":")<0&&"on"+Or,J=J[B.expando]?J:new B.Event(Or,typeof J=="object"&&J),J.isTrigger=be?2:3,J.namespace=ki.join("."),J.rnamespace=J.namespace?new RegExp("(^|\\.)"+ki.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,J.result=void 0,J.target||(J.target=ve),ae=ae==null?[J]:B.makeArray(ae,[J]),Xn=B.event.special[Or]||{},!(!be&&Xn.trigger&&Xn.trigger.apply(ve,ae)===!1))){if(!be&&!Xn.noBubble&&!N(ve)){for(Dt=Xn.delegateType||Or,ys.test(Dt+Or)||(Ge=Ge.parentNode);Ge;Ge=Ge.parentNode)Gn.push(Ge),rt=Ge;rt===(ve.ownerDocument||A)&&Gn.push(rt.defaultView||rt.parentWindow||e)}for(Re=0;(Ge=Gn[Re++])&&!J.isPropagationStopped();)Sn=Ge,J.type=Re>1?Dt:Xn.bindType||Or,Yt=(wt.get(Ge,"events")||Object.create(null))[J.type]&&wt.get(Ge,"handle"),Yt&&Yt.apply(Ge,ae),Yt=Mt&&Ge[Mt],Yt&&Yt.apply&&Et(Ge)&&(J.result=Yt.apply(Ge,ae),J.result===!1&&J.preventDefault());return J.type=Or,!be&&!J.isDefaultPrevented()&&(!Xn._default||Xn._default.apply(Gn.pop(),ae)===!1)&&Et(ve)&&Mt&&O(ve[Or])&&!N(ve)&&(rt=ve[Mt],rt&&(ve[Mt]=null),B.event.triggered=Or,J.isPropagationStopped()&&Sn.addEventListener(Or,Ol),ve[Or](),J.isPropagationStopped()&&Sn.removeEventListener(Or,Ol),B.event.triggered=void 0,rt&&(ve[Mt]=rt)),J.result}},simulate:function(J,ae,ve){var be=B.extend(new B.Event,ve,{type:J,isSimulated:!0});B.event.trigger(be,null,ae)}}),B.fn.extend({trigger:function(J,ae){return this.each(function(){B.event.trigger(J,ae,this)})},triggerHandler:function(J,ae){var ve=this[0];if(ve)return B.event.trigger(J,ae,ve,!0)}});var is=/\[\]$/,Ta=/\r?\n/g,Lr=/^(?:submit|button|image|reset|file)$/i,Vo=/^(?:input|select|textarea|keygen)/i;function ll(J,ae,ve,be){var Re;if(Array.isArray(ae))B.each(ae,function(Ge,rt){ve||is.test(J)?be(J,rt):ll(J+"["+(typeof rt=="object"&&rt!=null?Ge:"")+"]",rt,ve,be)});else if(!ve&&V(ae)==="object")for(Re in ae)ll(J+"["+Re+"]",ae[Re],ve,be);else be(J,ae)}B.param=function(J,ae){var ve,be=[],Re=function(Ge,rt){var Dt=O(rt)?rt():rt;be[be.length]=encodeURIComponent(Ge)+"="+encodeURIComponent(Dt==null?"":Dt)};if(J==null)return"";if(Array.isArray(J)||J.jquery&&!B.isPlainObject(J))B.each(J,function(){Re(this.name,this.value)});else for(ve in J)ll(ve,J[ve],ae,Re);return be.join("&")},B.fn.extend({serialize:function(){return B.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var J=B.prop(this,"elements");return J?B.makeArray(J):this}).filter(function(){var J=this.type;return this.name&&!B(this).is(":disabled")&&Vo.test(this.nodeName)&&!Lr.test(J)&&(this.checked||!zr.test(J))}).map(function(J,ae){var ve=B(this).val();return ve==null?null:Array.isArray(ve)?B.map(ve,function(be){return{name:ae.name,value:be.replace(Ta,`\r
  4693. `)}}):{name:ae.name,value:ve.replace(Ta,`\r
  4694. `)}}).get()}});var xu=/%20/g,vo=/#.*$/,_o=/([?&])_=[^&]*/,Rs=/^(.*?):[ \t]*([^\r\n]*)$/mg,Fl=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Zo=/^(?:GET|HEAD)$/,ql=/^\/\//,Al={},Kt={},Ml="*/".concat("*"),rr=A.createElement("a");rr.href=Ua.href;function to(J){return function(ae,ve){typeof ae!="string"&&(ve=ae,ae="*");var be,Re=0,Ge=ae.toLowerCase().match(at)||[];if(O(ve))for(;be=Ge[Re++];)be[0]==="+"?(be=be.slice(1)||"*",(J[be]=J[be]||[]).unshift(ve)):(J[be]=J[be]||[]).push(ve)}}function ho(J,ae,ve,be){var Re={},Ge=J===Kt;function rt(Dt){var Mt;return Re[Dt]=!0,B.each(J[Dt]||[],function(Yt,Xn){var Sn=Xn(ae,ve,be);if(typeof Sn=="string"&&!Ge&&!Re[Sn])return ae.dataTypes.unshift(Sn),rt(Sn),!1;if(Ge)return!(Mt=Sn)}),Mt}return rt(ae.dataTypes[0])||!Re["*"]&&rt("*")}function xa(J,ae){var ve,be,Re=B.ajaxSettings.flatOptions||{};for(ve in ae)ae[ve]!==void 0&&((Re[ve]?J:be||(be={}))[ve]=ae[ve]);return be&&B.extend(!0,J,be),J}function Ea(J,ae,ve){for(var be,Re,Ge,rt,Dt=J.contents,Mt=J.dataTypes;Mt[0]==="*";)Mt.shift(),be===void 0&&(be=J.mimeType||ae.getResponseHeader("Content-Type"));if(be){for(Re in Dt)if(Dt[Re]&&Dt[Re].test(be)){Mt.unshift(Re);break}}if(Mt[0]in ve)Ge=Mt[0];else{for(Re in ve){if(!Mt[0]||J.converters[Re+" "+Mt[0]]){Ge=Re;break}rt||(rt=Re)}Ge=Ge||rt}if(Ge)return Ge!==Mt[0]&&Mt.unshift(Ge),ve[Ge]}function ao(J,ae,ve,be){var Re,Ge,rt,Dt,Mt,Yt={},Xn=J.dataTypes.slice();if(Xn[1])for(rt in J.converters)Yt[rt.toLowerCase()]=J.converters[rt];for(Ge=Xn.shift();Ge;)if(J.responseFields[Ge]&&(ve[J.responseFields[Ge]]=ae),!Mt&&be&&J.dataFilter&&(ae=J.dataFilter(ae,J.dataType)),Mt=Ge,Ge=Xn.shift(),Ge){if(Ge==="*")Ge=Mt;else if(Mt!=="*"&&Mt!==Ge){if(rt=Yt[Mt+" "+Ge]||Yt["* "+Ge],!rt){for(Re in Yt)if(Dt=Re.split(" "),Dt[1]===Ge&&(rt=Yt[Mt+" "+Dt[0]]||Yt["* "+Dt[0]],rt)){rt===!0?rt=Yt[Re]:Yt[Re]!==!0&&(Ge=Dt[0],Xn.unshift(Dt[1]));break}}if(rt!==!0)if(rt&&J.throws)ae=rt(ae);else try{ae=rt(ae)}catch(Sn){return{state:"parsererror",error:rt?Sn:"No conversion from "+Mt+" to "+Ge}}}}return{state:"success",data:ae}}B.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ua.href,type:"GET",isLocal:Fl.test(Ua.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ml,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":B.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(J,ae){return ae?xa(xa(J,B.ajaxSettings),ae):xa(B.ajaxSettings,J)},ajaxPrefilter:to(Al),ajaxTransport:to(Kt),ajax:function(J,ae){typeof J=="object"&&(ae=J,J=void 0),ae=ae||{};var ve,be,Re,Ge,rt,Dt,Mt,Yt,Xn,Sn,Gn=B.ajaxSetup({},ae),Or=Gn.context||Gn,ki=Gn.context&&(Or.nodeType||Or.jquery)?B(Or):B.event,Ia=B.Deferred(),ma=B.Callbacks("once memory"),na=Gn.statusCode||{},Ya={},Da={},Yi="canceled",Ba={readyState:0,getResponseHeader:function(Oa){var Oo;if(Mt){if(!Ge)for(Ge={};Oo=Rs.exec(Re);)Ge[Oo[1].toLowerCase()+" "]=(Ge[Oo[1].toLowerCase()+" "]||[]).concat(Oo[2]);Oo=Ge[Oa.toLowerCase()+" "]}return Oo==null?null:Oo.join(", ")},getAllResponseHeaders:function(){return Mt?Re:null},setRequestHeader:function(Oa,Oo){return Mt==null&&(Oa=Da[Oa.toLowerCase()]=Da[Oa.toLowerCase()]||Oa,Ya[Oa]=Oo),this},overrideMimeType:function(Oa){return Mt==null&&(Gn.mimeType=Oa),this},statusCode:function(Oa){var Oo;if(Oa)if(Mt)Ba.always(Oa[Ba.status]);else for(Oo in Oa)na[Oo]=[na[Oo],Oa[Oo]];return this},abort:function(Oa){var Oo=Oa||Yi;return ve&&ve.abort(Oo),gl(0,Oo),this}};if(Ia.promise(Ba),Gn.url=((J||Gn.url||Ua.href)+"").replace(ql,Ua.protocol+"//"),Gn.type=ae.method||ae.type||Gn.method||Gn.type,Gn.dataTypes=(Gn.dataType||"*").toLowerCase().match(at)||[""],Gn.crossDomain==null){Dt=A.createElement("a");try{Dt.href=Gn.url,Dt.href=Dt.href,Gn.crossDomain=rr.protocol+"//"+rr.host!=Dt.protocol+"//"+Dt.host}catch(Oa){Gn.crossDomain=!0}}if(Gn.data&&Gn.processData&&typeof Gn.data!="string"&&(Gn.data=B.param(Gn.data,Gn.traditional)),ho(Al,Gn,ae,Ba),Mt)return Ba;Yt=B.event&&Gn.global,Yt&&B.active++===0&&B.event.trigger("ajaxStart"),Gn.type=Gn.type.toUpperCase(),Gn.hasContent=!Zo.test(Gn.type),be=Gn.url.replace(vo,""),Gn.hasContent?Gn.data&&Gn.processData&&(Gn.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(Gn.data=Gn.data.replace(xu,"+")):(Sn=Gn.url.slice(be.length),Gn.data&&(Gn.processData||typeof Gn.data=="string")&&(be+=(jo.test(be)?"&":"?")+Gn.data,delete Gn.data),Gn.cache===!1&&(be=be.replace(_o,"$1"),Sn=(jo.test(be)?"&":"?")+"_="+Vs.guid+++Sn),Gn.url=be+Sn),Gn.ifModified&&(B.lastModified[be]&&Ba.setRequestHeader("If-Modified-Since",B.lastModified[be]),B.etag[be]&&Ba.setRequestHeader("If-None-Match",B.etag[be])),(Gn.data&&Gn.hasContent&&Gn.contentType!==!1||ae.contentType)&&Ba.setRequestHeader("Content-Type",Gn.contentType),Ba.setRequestHeader("Accept",Gn.dataTypes[0]&&Gn.accepts[Gn.dataTypes[0]]?Gn.accepts[Gn.dataTypes[0]]+(Gn.dataTypes[0]!=="*"?", "+Ml+"; q=0.01":""):Gn.accepts["*"]);for(Xn in Gn.headers)Ba.setRequestHeader(Xn,Gn.headers[Xn]);if(Gn.beforeSend&&(Gn.beforeSend.call(Or,Ba,Gn)===!1||Mt))return Ba.abort();if(Yi="abort",ma.add(Gn.complete),Ba.done(Gn.success),Ba.fail(Gn.error),ve=ho(Kt,Gn,ae,Ba),!ve)gl(-1,"No Transport");else{if(Ba.readyState=1,Yt&&ki.trigger("ajaxSend",[Ba,Gn]),Mt)return Ba;Gn.async&&Gn.timeout>0&&(rt=e.setTimeout(function(){Ba.abort("timeout")},Gn.timeout));try{Mt=!1,ve.send(Ya,gl)}catch(Oa){if(Mt)throw Oa;gl(-1,Oa)}}function gl(Oa,Oo,Ls,Ss){var Es,vs,po,oo,Ko,Ts=Oo;Mt||(Mt=!0,rt&&e.clearTimeout(rt),ve=void 0,Re=Ss||"",Ba.readyState=Oa>0?4:0,Es=Oa>=200&&Oa<300||Oa===304,Ls&&(oo=Ea(Gn,Ba,Ls)),!Es&&B.inArray("script",Gn.dataTypes)>-1&&B.inArray("json",Gn.dataTypes)<0&&(Gn.converters["text script"]=function(){}),oo=ao(Gn,oo,Ba,Es),Es?(Gn.ifModified&&(Ko=Ba.getResponseHeader("Last-Modified"),Ko&&(B.lastModified[be]=Ko),Ko=Ba.getResponseHeader("etag"),Ko&&(B.etag[be]=Ko)),Oa===204||Gn.type==="HEAD"?Ts="nocontent":Oa===304?Ts="notmodified":(Ts=oo.state,vs=oo.data,po=oo.error,Es=!po)):(po=Ts,(Oa||!Ts)&&(Ts="error",Oa<0&&(Oa=0))),Ba.status=Oa,Ba.statusText=(Oo||Ts)+"",Es?Ia.resolveWith(Or,[vs,Ts,Ba]):Ia.rejectWith(Or,[Ba,Ts,po]),Ba.statusCode(na),na=void 0,Yt&&ki.trigger(Es?"ajaxSuccess":"ajaxError",[Ba,Gn,Es?vs:po]),ma.fireWith(Or,[Ba,Ts]),Yt&&(ki.trigger("ajaxComplete",[Ba,Gn]),--B.active||B.event.trigger("ajaxStop")))}return Ba},getJSON:function(J,ae,ve){return B.get(J,ae,ve,"json")},getScript:function(J,ae){return B.get(J,void 0,ae,"script")}}),B.each(["get","post"],function(J,ae){B[ae]=function(ve,be,Re,Ge){return O(be)&&(Ge=Ge||Re,Re=be,be=void 0),B.ajax(B.extend({url:ve,type:ae,dataType:Ge,data:be,success:Re},B.isPlainObject(ve)&&ve))}}),B.ajaxPrefilter(function(J){var ae;for(ae in J.headers)ae.toLowerCase()==="content-type"&&(J.contentType=J.headers[ae]||"")}),B._evalUrl=function(J,ae,ve){return B.ajax({url:J,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(be){B.globalEval(be,ae,ve)}})},B.fn.extend({wrapAll:function(J){var ae;return this[0]&&(O(J)&&(J=J.call(this[0])),ae=B(J,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&ae.insertBefore(this[0]),ae.map(function(){for(var ve=this;ve.firstElementChild;)ve=ve.firstElementChild;return ve}).append(this)),this},wrapInner:function(J){return O(J)?this.each(function(ae){B(this).wrapInner(J.call(this,ae))}):this.each(function(){var ae=B(this),ve=ae.contents();ve.length?ve.wrapAll(J):ae.append(J)})},wrap:function(J){var ae=O(J);return this.each(function(ve){B(this).wrapAll(ae?J.call(this,ve):J)})},unwrap:function(J){return this.parent(J).not("body").each(function(){B(this).replaceWith(this.childNodes)}),this}}),B.expr.pseudos.hidden=function(J){return!B.expr.pseudos.visible(J)},B.expr.pseudos.visible=function(J){return!!(J.offsetWidth||J.offsetHeight||J.getClientRects().length)},B.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(J){}};var Ki={0:200,1223:204},$o=B.ajaxSettings.xhr();I.cors=!!$o&&"withCredentials"in $o,I.ajax=$o=!!$o,B.ajaxTransport(function(J){var ae,ve;if(I.cors||$o&&!J.crossDomain)return{send:function(be,Re){var Ge,rt=J.xhr();if(rt.open(J.type,J.url,J.async,J.username,J.password),J.xhrFields)for(Ge in J.xhrFields)rt[Ge]=J.xhrFields[Ge];J.mimeType&&rt.overrideMimeType&&rt.overrideMimeType(J.mimeType),!J.crossDomain&&!be["X-Requested-With"]&&(be["X-Requested-With"]="XMLHttpRequest");for(Ge in be)rt.setRequestHeader(Ge,be[Ge]);ae=function(Dt){return function(){ae&&(ae=ve=rt.onload=rt.onerror=rt.onabort=rt.ontimeout=rt.onreadystatechange=null,Dt==="abort"?rt.abort():Dt==="error"?typeof rt.status!="number"?Re(0,"error"):Re(rt.status,rt.statusText):Re(Ki[rt.status]||rt.status,rt.statusText,(rt.responseType||"text")!=="text"||typeof rt.responseText!="string"?{binary:rt.response}:{text:rt.responseText},rt.getAllResponseHeaders()))}},rt.onload=ae(),ve=rt.onerror=rt.ontimeout=ae("error"),rt.onabort!==void 0?rt.onabort=ve:rt.onreadystatechange=function(){rt.readyState===4&&e.setTimeout(function(){ae&&ve()})},ae=ae("abort");try{rt.send(J.hasContent&&J.data||null)}catch(Dt){if(ae)throw Dt}},abort:function(){ae&&ae()}}}),B.ajaxPrefilter(function(J){J.crossDomain&&(J.contents.script=!1)}),B.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(J){return B.globalEval(J),J}}}),B.ajaxPrefilter("script",function(J){J.cache===void 0&&(J.cache=!1),J.crossDomain&&(J.type="GET")}),B.ajaxTransport("script",function(J){if(J.crossDomain||J.scriptAttrs){var ae,ve;return{send:function(be,Re){ae=B("<script>").attr(J.scriptAttrs||{}).prop({charset:J.scriptCharset,src:J.url}).on("load error",ve=function(Ge){ae.remove(),ve=null,Ge&&Re(Ge.type==="error"?404:200,Ge.type)}),A.head.appendChild(ae[0])},abort:function(){ve&&ve()}}}});var Ho=[],de=/(=)\?(?=&|$)|\?\?/;B.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var J=Ho.pop()||B.expando+"_"+Vs.guid++;return this[J]=!0,J}}),B.ajaxPrefilter("json jsonp",function(J,ae,ve){var be,Re,Ge,rt=J.jsonp!==!1&&(de.test(J.url)?"url":typeof J.data=="string"&&(J.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&de.test(J.data)&&"data");if(rt||J.dataTypes[0]==="jsonp")return be=J.jsonpCallback=O(J.jsonpCallback)?J.jsonpCallback():J.jsonpCallback,rt?J[rt]=J[rt].replace(de,"$1"+be):J.jsonp!==!1&&(J.url+=(jo.test(J.url)?"&":"?")+J.jsonp+"="+be),J.converters["script json"]=function(){return Ge||B.error(be+" was not called"),Ge[0]},J.dataTypes[0]="json",Re=e[be],e[be]=function(){Ge=arguments},ve.always(function(){Re===void 0?B(e).removeProp(be):e[be]=Re,J[be]&&(J.jsonpCallback=ae.jsonpCallback,Ho.push(be)),Ge&&O(Re)&&Re(Ge[0]),Ge=Re=void 0}),"script"}),I.createHTMLDocument=function(){var J=A.implementation.createHTMLDocument("").body;return J.innerHTML="<form></form><form></form>",J.childNodes.length===2}(),B.parseHTML=function(J,ae,ve){if(typeof J!="string")return[];typeof ae=="boolean"&&(ve=ae,ae=!1);var be,Re,Ge;return ae||(I.createHTMLDocument?(ae=A.implementation.createHTMLDocument(""),be=ae.createElement("base"),be.href=A.location.href,ae.head.appendChild(be)):ae=A),Re=ht.exec(J),Ge=!ve&&[],Re?[ae.createElement(Re[1])]:(Re=dt([J],ae,Ge),Ge&&Ge.length&&B(Ge).remove(),B.merge([],Re.childNodes))},B.fn.load=function(J,ae,ve){var be,Re,Ge,rt=this,Dt=J.indexOf(" ");return Dt>-1&&(be=Co(J.slice(Dt)),J=J.slice(0,Dt)),O(ae)?(ve=ae,ae=void 0):ae&&typeof ae=="object"&&(Re="POST"),rt.length>0&&B.ajax({url:J,type:Re||"GET",dataType:"html",data:ae}).done(function(Mt){Ge=arguments,rt.html(be?B("<div>").append(B.parseHTML(Mt)).find(be):Mt)}).always(ve&&function(Mt,Yt){rt.each(function(){ve.apply(this,Ge||[Mt.responseText,Yt,Mt])})}),this},B.expr.pseudos.animated=function(J){return B.grep(B.timers,function(ae){return J===ae.elem}).length},B.offset={setOffset:function(J,ae,ve){var be,Re,Ge,rt,Dt,Mt,Yt,Xn=B.css(J,"position"),Sn=B(J),Gn={};Xn==="static"&&(J.style.position="relative"),Dt=Sn.offset(),Ge=B.css(J,"top"),Mt=B.css(J,"left"),Yt=(Xn==="absolute"||Xn==="fixed")&&(Ge+Mt).indexOf("auto")>-1,Yt?(be=Sn.position(),rt=be.top,Re=be.left):(rt=parseFloat(Ge)||0,Re=parseFloat(Mt)||0),O(ae)&&(ae=ae.call(J,ve,B.extend({},Dt))),ae.top!=null&&(Gn.top=ae.top-Dt.top+rt),ae.left!=null&&(Gn.left=ae.left-Dt.left+Re),"using"in ae?ae.using.call(J,Gn):Sn.css(Gn)}},B.fn.extend({offset:function(J){if(arguments.length)return J===void 0?this:this.each(function(Re){B.offset.setOffset(this,J,Re)});var ae,ve,be=this[0];if(!!be)return be.getClientRects().length?(ae=be.getBoundingClientRect(),ve=be.ownerDocument.defaultView,{top:ae.top+ve.pageYOffset,left:ae.left+ve.pageXOffset}):{top:0,left:0}},position:function(){if(!!this[0]){var J,ae,ve,be=this[0],Re={top:0,left:0};if(B.css(be,"position")==="fixed")ae=be.getBoundingClientRect();else{for(ae=this.offset(),ve=be.ownerDocument,J=be.offsetParent||ve.documentElement;J&&(J===ve.body||J===ve.documentElement)&&B.css(J,"position")==="static";)J=J.parentNode;J&&J!==be&&J.nodeType===1&&(Re=B(J).offset(),Re.top+=B.css(J,"borderTopWidth",!0),Re.left+=B.css(J,"borderLeftWidth",!0))}return{top:ae.top-Re.top-B.css(be,"marginTop",!0),left:ae.left-Re.left-B.css(be,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var J=this.offsetParent;J&&B.css(J,"position")==="static";)J=J.offsetParent;return J||Dr})}}),B.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(J,ae){var ve=ae==="pageYOffset";B.fn[J]=function(be){return _t(this,function(Re,Ge,rt){var Dt;if(N(Re)?Dt=Re:Re.nodeType===9&&(Dt=Re.defaultView),rt===void 0)return Dt?Dt[ae]:Re[Ge];Dt?Dt.scrollTo(ve?Dt.pageXOffset:rt,ve?rt:Dt.pageYOffset):Re[Ge]=rt},J,be,arguments.length)}}),B.each(["top","left"],function(J,ae){B.cssHooks[ae]=Xo(I.pixelPosition,function(ve,be){if(be)return be=ns(ve,ae),tr.test(be)?B(ve).position()[ae]+"px":be})}),B.each({Height:"height",Width:"width"},function(J,ae){B.each({padding:"inner"+J,content:ae,"":"outer"+J},function(ve,be){B.fn[be]=function(Re,Ge){var rt=arguments.length&&(ve||typeof Re!="boolean"),Dt=ve||(Re===!0||Ge===!0?"margin":"border");return _t(this,function(Mt,Yt,Xn){var Sn;return N(Mt)?be.indexOf("outer")===0?Mt["inner"+J]:Mt.document.documentElement["client"+J]:Mt.nodeType===9?(Sn=Mt.documentElement,Math.max(Mt.body["scroll"+J],Sn["scroll"+J],Mt.body["offset"+J],Sn["offset"+J],Sn["client"+J])):Xn===void 0?B.css(Mt,Yt,Dt):B.style(Mt,Yt,Xn,Dt)},ae,rt?Re:void 0,rt)}})}),B.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(J,ae){B.fn[ae]=function(ve){return this.on(ae,ve)}}),B.fn.extend({bind:function(J,ae,ve){return this.on(J,null,ae,ve)},unbind:function(J,ae){return this.off(J,null,ae)},delegate:function(J,ae,ve,be){return this.on(ae,J,ve,be)},undelegate:function(J,ae,ve){return arguments.length===1?this.off(J,"**"):this.off(ae,J||"**",ve)},hover:function(J,ae){return this.on("mouseenter",J).on("mouseleave",ae||J)}}),B.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(J,ae){B.fn[ae]=function(ve,be){return arguments.length>0?this.on(ae,null,ve,be):this.trigger(ae)}});var Me=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;B.proxy=function(J,ae){var ve,be,Re;if(typeof ae=="string"&&(ve=J[ae],ae=J,J=ve),!!O(J))return be=s.call(arguments,2),Re=function(){return J.apply(ae||this,be.concat(s.call(arguments)))},Re.guid=J.guid=J.guid||B.guid++,Re},B.holdReady=function(J){J?B.readyWait++:B.ready(!0)},B.isArray=Array.isArray,B.parseJSON=JSON.parse,B.nodeName=D,B.isFunction=O,B.isWindow=N,B.camelCase=Zt,B.type=V,B.now=Date.now,B.isNumeric=function(J){var ae=B.type(J);return(ae==="number"||ae==="string")&&!isNaN(J-parseFloat(J))},B.trim=function(J){return J==null?"":(J+"").replace(Me,"$1")};var qe=e.jQuery,Qe=e.$;return B.noConflict=function(J){return e.$===B&&(e.$=Qe),J&&e.jQuery===B&&(e.jQuery=qe),B},typeof r=="undefined"&&(e.jQuery=e.$=B),B})})(jquery);/*! WebUploader 0.1.6 */var jQuery$1=jquery.exports,webuploader_fis=function(t,e){var r={},n=function(x,w){var _,b,E;if(typeof x=="string")return c(x);for(_=[],b=x.length,E=0;E<b;E++)_.push(c(x[E]));return w.apply(null,_)},o=function(x,w,_){arguments.length===2&&(_=w,w=null),n(w||[],function(){s(x,_,arguments)})},s=function(x,w,_){var b={exports:w},E;typeof w=="function"&&(_.length||(_=[n,b.exports,b]),E=w.apply(null,_),E!==void 0&&(b.exports=E)),r[x]=b.exports},c=function(x){var w=r[x]||t[x];if(!w)throw new Error("`"+x+"` is undefined");return w},l=function(x){var w,_,b,E,I,O;O=function(N){return N&&N.charAt(0).toUpperCase()+N.substr(1)};for(w in r)if(_=x,!!r.hasOwnProperty(w)){for(b=w.split("/"),I=O(b.pop());E=O(b.shift());)_[E]=_[E]||{},_=_[E];_[I]=r[w]}return x},v=function(x){return t.__dollar=x,l(e(t,o,n))};return v(jQuery$1)}(window,function(t,e,r){e("dollar-third",[],function(){var o=t.require,s=t.__dollar||t.jQuery||t.Zepto||o("jquery")||o("zepto");if(!s)throw new Error("jQuery or Zepto not found!");return s}),e("dollar",["dollar-third"],function(o){return o}),e("promise-third",["dollar"],function(o){return{Deferred:o.Deferred,when:o.when,isPromise:function(s){return s&&typeof s.then=="function"}}}),e("promise",["promise-third"],function(o){return o}),e("base",["dollar","promise"],function(o,s){var c=function(){},l=Function.call;function v(_){return function(){return l.apply(_,arguments)}}function x(_,b){return function(){return _.apply(b,arguments)}}function w(_){var b;return Object.create?Object.create(_):(b=function(){},b.prototype=_,new b)}return{version:"0.1.6",$:o,Deferred:s.Deferred,isPromise:s.isPromise,when:s.when,browser:function(_){var b={},E=_.match(/WebKit\/([\d.]+)/),I=_.match(/Chrome\/([\d.]+)/)||_.match(/CriOS\/([\d.]+)/),O=_.match(/MSIE\s([\d\.]+)/)||_.match(/(?:trident)(?:.*rv:([\w.]+))?/i),N=_.match(/Firefox\/([\d.]+)/),A=_.match(/Safari\/([\d.]+)/),z=_.match(/OPR\/([\d.]+)/);return E&&(b.webkit=parseFloat(E[1])),I&&(b.chrome=parseFloat(I[1])),O&&(b.ie=parseFloat(O[1])),N&&(b.firefox=parseFloat(N[1])),A&&(b.safari=parseFloat(A[1])),z&&(b.opera=parseFloat(z[1])),b}(navigator.userAgent),os:function(_){var b={},E=_.match(/(?:Android);?[\s\/]+([\d.]+)?/),I=_.match(/(?:iPad|iPod|iPhone).*OS\s([\d_]+)/);return E&&(b.android=parseFloat(E[1])),I&&(b.ios=parseFloat(I[1].replace(/_/g,"."))),b}(navigator.userAgent),inherits:function(_,b,E){var I;return typeof b=="function"?(I=b,b=null):b&&b.hasOwnProperty("constructor")?I=b.constructor:I=function(){return _.apply(this,arguments)},o.extend(!0,I,_,E||{}),I.__super__=_.prototype,I.prototype=w(_.prototype),b&&o.extend(!0,I.prototype,b),I},noop:c,bindFn:x,log:function(){return t.console?x(console.log,console):c}(),nextTick:function(){return function(_){setTimeout(_,1)}}(),slice:v([].slice),guid:function(){var _=0;return function(b){for(var E=(+new Date).toString(32),I=0;I<5;I++)E+=Math.floor(Math.random()*65535).toString(32);return(b||"wu_")+E+(_++).toString(32)}}(),formatSize:function(_,b,E){var I;for(E=E||["B","K","M","G","TB"];(I=E.shift())&&_>1024;)_=_/1024;return(I==="B"?_:_.toFixed(b||2))+I}}}),e("mediator",["base"],function(o){var s=o.$,c=[].slice,l=/\s+/,v;function x(b,E,I,O){return s.grep(b,function(N){return N&&(!E||N.e===E)&&(!I||N.cb===I||N.cb._cb===I)&&(!O||N.ctx===O)})}function w(b,E,I){s.each((b||"").split(l),function(O,N){I(N,E)})}function _(b,E){for(var I=!1,O=-1,N=b.length,A;++O<N;)if(A=b[O],A.cb.apply(A.ctx2,E)===!1){I=!0;break}return!I}return v={on:function(b,E,I){var O=this,N;return E?(N=this._events||(this._events=[]),w(b,E,function(A,z){var G={e:A};G.cb=z,G.ctx=I,G.ctx2=I||O,G.id=N.length,N.push(G)}),this):this},once:function(b,E,I){var O=this;return E&&w(b,E,function(N,A){var z=function(){return O.off(N,z),A.apply(I||O,arguments)};z._cb=A,O.on(N,z,I)}),O},off:function(b,E,I){var O=this._events;return O?!b&&!E&&!I?(this._events=[],this):(w(b,E,function(N,A){s.each(x(O,N,A,I),function(){delete O[this.id]})}),this):this},trigger:function(b){var E,I,O;return!this._events||!b?this:(E=c.call(arguments,1),I=x(this._events,b),O=x(this._events,"all"),_(I,E)&&_(O,arguments))}},s.extend({installTo:function(b){return s.extend(b,v)}},v)}),e("uploader",["base","mediator"],function(o,s){var c=o.$;function l(v){this.options=c.extend(!0,{},l.options,v),this._init(this.options)}return l.options={},s.installTo(l.prototype),c.each({upload:"start-upload",stop:"stop-upload",getFile:"get-file",getFiles:"get-files",addFile:"add-file",addFiles:"add-file",sort:"sort-files",removeFile:"remove-file",cancelFile:"cancel-file",skipFile:"skip-file",retry:"retry",isInProgress:"is-in-progress",makeThumb:"make-thumb",md5File:"md5-file",getDimension:"get-dimension",addButton:"add-btn",predictRuntimeType:"predict-runtime-type",refresh:"refresh",disable:"disable",enable:"enable",reset:"reset"},function(v,x){l.prototype[v]=function(){return this.request(x,arguments)}}),c.extend(l.prototype,{state:"pending",_init:function(v){var x=this;x.request("init",v,function(){x.state="ready",x.trigger("ready")})},option:function(v,x){var w=this.options;if(arguments.length>1)c.isPlainObject(x)&&c.isPlainObject(w[v])?c.extend(w[v],x):w[v]=x;else return v?w[v]:w},getStats:function(){var v=this.request("get-stats");return v?{successNum:v.numOfSuccess,progressNum:v.numOfProgress,cancelNum:v.numOfCancel,invalidNum:v.numOfInvalid,uploadFailNum:v.numOfUploadFailed,queueNum:v.numOfQueue,interruptNum:v.numofInterrupt}:{}},trigger:function(v){var x=[].slice.call(arguments,1),w=this.options,_="on"+v.substring(0,1).toUpperCase()+v.substring(1);return!(s.trigger.apply(this,arguments)===!1||c.isFunction(w[_])&&w[_].apply(this,x)===!1||c.isFunction(this[_])&&this[_].apply(this,x)===!1||s.trigger.apply(s,[this,v].concat(x))===!1)},destroy:function(){this.request("destroy",arguments),this.off()},request:o.noop}),o.create=l.create=function(v){return new l(v)},o.Uploader=l,l}),e("runtime/runtime",["base","mediator"],function(o,s){var c=o.$,l={},v=function(w){for(var _ in w)if(w.hasOwnProperty(_))return _;return null};function x(w){this.options=c.extend({container:document.body},w),this.uid=o.guid("rt_")}return c.extend(x.prototype,{getContainer:function(){var w=this.options,_,b;return this._container?this._container:(_=c(w.container||document.body),b=c(document.createElement("div")),b.attr("id","rt_"+this.uid),b.css({position:"absolute",top:"0px",left:"0px",width:"1px",height:"1px",overflow:"hidden"}),_.append(b),_.addClass("webuploader-container"),this._container=b,this._parent=_,b)},init:o.noop,exec:o.noop,destroy:function(){this._container&&this._container.remove(),this._parent&&this._parent.removeClass("webuploader-container"),this.off()}}),x.orders="html5,flash",x.addRuntime=function(w,_){l[w]=_},x.hasRuntime=function(w){return!!(w?l[w]:v(l))},x.create=function(w,_){var b,E;if(_=_||x.orders,c.each(_.split(/\s*,\s*/g),function(){if(l[this])return b=this,!1}),b=b||v(l),!b)throw new Error("Runtime Error");return E=new l[b](w),E},s.installTo(x.prototype),x}),e("runtime/client",["base","mediator","runtime/runtime"],function(o,s,c){var l;l=function(){var x={};return{add:function(w){x[w.uid]=w},get:function(w,_){var b;if(w)return x[w];for(b in x)if(!(_&&x[b].__standalone))return x[b];return null},remove:function(w){delete x[w.uid]}}}();function v(x,w){var _=o.Deferred(),b;this.uid=o.guid("client_"),this.runtimeReady=function(E){return _.done(E)},this.connectRuntime=function(E,I){if(b)throw new Error("already connected!");return _.done(I),typeof E=="string"&&l.get(E)&&(b=l.get(E)),b=b||l.get(null,w),b?(o.$.extend(b.options,E),b.__promise.then(_.resolve),b.__client++):(b=c.create(E,E.runtimeOrder),b.__promise=_.promise(),b.once("ready",_.resolve),b.init(),l.add(b),b.__client=1),w&&(b.__standalone=w),b},this.getRuntime=function(){return b},this.disconnectRuntime=function(){!b||(b.__client--,b.__client<=0&&(l.remove(b),delete b.__promise,b.destroy()),b=null)},this.exec=function(){if(!!b){var E=o.slice(arguments);return x&&E.unshift(x),b.exec.apply(this,E)}},this.getRuid=function(){return b&&b.uid},this.destroy=function(E){return function(){E&&E.apply(this,arguments),this.trigger("destroy"),this.off(),this.exec("destroy"),this.disconnectRuntime()}}(this.destroy)}return s.installTo(v.prototype),v}),e("lib/dnd",["base","mediator","runtime/client"],function(o,s,c){var l=o.$;function v(x){x=this.options=l.extend({},v.options,x),x.container=l(x.container),x.container.length&&c.call(this,"DragAndDrop")}return v.options={accept:null,disableGlobalDnd:!1},o.inherits(c,{constructor:v,init:function(){var x=this;x.connectRuntime(x.options,function(){x.exec("init"),x.trigger("ready")})}}),s.installTo(v.prototype),v}),e("widgets/widget",["base","uploader"],function(o,s){var c=o.$,l=s.prototype._init,v=s.prototype.destroy,x={},w=[];function _(E){if(!E)return!1;var I=E.length,O=c.type(E);return E.nodeType===1&&I?!0:O==="array"||O!=="function"&&O!=="string"&&(I===0||typeof I=="number"&&I>0&&I-1 in E)}function b(E){this.owner=E,this.options=E.options}return c.extend(b.prototype,{init:o.noop,invoke:function(E,I){var O=this.responseMap;return!O||!(E in O)||!(O[E]in this)||!c.isFunction(this[O[E]])?x:this[O[E]].apply(this,I)},request:function(){return this.owner.request.apply(this.owner,arguments)}}),c.extend(s.prototype,{_init:function(){var E=this,I=E._widgets=[],O=E.options.disableWidgets||"";return c.each(w,function(N,A){(!O||!~O.indexOf(A._name))&&I.push(new A(E))}),l.apply(E,arguments)},request:function(E,I,O){var N=0,A=this._widgets,z=A&&A.length,G=[],V=[],ne,W,B,q;for(I=_(I)?I:[I];N<z;N++)ne=A[N],W=ne.invoke(E,I),W!==x&&(o.isPromise(W)?V.push(W):G.push(W));return O||V.length?(B=o.when.apply(o,V),q=B.pipe?"pipe":"then",B[q](function(){var D=o.Deferred(),F=arguments;return F.length===1&&(F=F[0]),setTimeout(function(){D.resolve(F)},1),D.promise()})[O?q:"done"](O||o.noop)):G[0]},destroy:function(){v.apply(this,arguments),this._widgets=null}}),s.register=b.register=function(E,I){var O={init:"init",destroy:"destroy",name:"anonymous"},N;return arguments.length===1?(I=E,c.each(I,function(A){if(A[0]==="_"||A==="name"){A==="name"&&(O.name=I.name);return}O[A.replace(/[A-Z]/g,"-$&").toLowerCase()]=A})):O=c.extend(O,E),I.responseMap=O,N=o.inherits(b,I),N._name=O.name,w.push(N),N},s.unRegister=b.unRegister=function(E){if(!(!E||E==="anonymous"))for(var I=w.length;I--;)w[I]._name===E&&w.splice(I,1)},b}),e("widgets/filednd",["base","uploader","lib/dnd","widgets/widget"],function(o,s,c){var l=o.$;return s.options.dnd="",s.register({name:"dnd",init:function(v){if(!(!v.dnd||this.request("predict-runtime-type")!=="html5")){var x=this,w=o.Deferred(),_=l.extend({},{disableGlobalDnd:v.disableGlobalDnd,container:v.dnd,accept:v.accept}),b;return this.dnd=b=new c(_),b.once("ready",w.resolve),b.on("drop",function(E){x.request("add-file",[E])}),b.on("accept",function(E){return x.owner.trigger("dndAccept",E)}),b.init(),w.promise()}},destroy:function(){this.dnd&&this.dnd.destroy()}})}),e("lib/filepaste",["base","mediator","runtime/client"],function(o,s,c){var l=o.$;function v(x){x=this.options=l.extend({},x),x.container=l(x.container||document.body),c.call(this,"FilePaste")}return o.inherits(c,{constructor:v,init:function(){var x=this;x.connectRuntime(x.options,function(){x.exec("init"),x.trigger("ready")})}}),s.installTo(v.prototype),v}),e("widgets/filepaste",["base","uploader","lib/filepaste","widgets/widget"],function(o,s,c){var l=o.$;return s.register({name:"paste",init:function(v){if(!(!v.paste||this.request("predict-runtime-type")!=="html5")){var x=this,w=o.Deferred(),_=l.extend({},{container:v.paste,accept:v.accept}),b;return this.paste=b=new c(_),b.once("ready",w.resolve),b.on("paste",function(E){x.owner.request("add-file",[E])}),b.init(),w.promise()}},destroy:function(){this.paste&&this.paste.destroy()}})}),e("lib/blob",["base","runtime/client"],function(o,s){function c(l,v){var x=this;x.source=v,x.ruid=l,this.size=v.size||0,!v.type&&this.ext&&~"jpg,jpeg,png,gif,bmp".indexOf(this.ext)?this.type="image/"+(this.ext==="jpg"?"jpeg":this.ext):this.type=v.type||"application/octet-stream",s.call(x,"Blob"),this.uid=v.uid||this.uid,l&&x.connectRuntime(l)}return o.inherits(s,{constructor:c,slice:function(l,v){return this.exec("slice",l,v)},getSource:function(){return this.source}}),c}),e("lib/file",["base","lib/blob"],function(o,s){var c=1,l=/\.([^.]+)$/;function v(x,w){var _;this.name=w.name||"untitled"+c++,_=l.exec(w.name)?RegExp.$1.toLowerCase():"",!_&&w.type&&(_=/\/(jpg|jpeg|png|gif|bmp)$/i.exec(w.type)?RegExp.$1.toLowerCase():"",this.name+="."+_),this.ext=_,this.lastModifiedDate=w.lastModifiedDate||new Date().toLocaleString(),s.apply(this,arguments)}return o.inherits(s,v)}),e("lib/filepicker",["base","runtime/client","lib/file"],function(o,s,c){var l=o.$;function v(x){if(x=this.options=l.extend({},v.options,x),x.container=l(x.id),!x.container.length)throw new Error("\u6309\u94AE\u6307\u5B9A\u9519\u8BEF");x.innerHTML=x.innerHTML||x.label||x.container.html()||"",x.button=l(x.button||document.createElement("div")),x.button.html(x.innerHTML),x.container.html(x.button),s.call(this,"FilePicker",!0)}return v.options={button:null,container:null,label:null,innerHTML:null,multiple:!0,accept:null,name:"file",style:"webuploader-pick"},o.inherits(s,{constructor:v,init:function(){var x=this,w=x.options,_=w.button,b=w.style;b&&_.addClass("webuploader-pick"),x.on("all",function(E){var I;switch(E){case"mouseenter":b&&_.addClass("webuploader-pick-hover");break;case"mouseleave":b&&_.removeClass("webuploader-pick-hover");break;case"change":I=x.exec("getFiles"),x.trigger("select",l.map(I,function(O){return O=new c(x.getRuid(),O),O._refer=w.container,O}),w.container);break}}),x.connectRuntime(w,function(){x.refresh(),x.exec("init",w),x.trigger("ready")}),this._resizeHandler=o.bindFn(this.refresh,this),l(t).on("resize",this._resizeHandler)},refresh:function(){var x=this.getRuntime().getContainer(),w=this.options.button,_=w.outerWidth?w.outerWidth():w.width(),b=w.outerHeight?w.outerHeight():w.height(),E=w.offset();_&&b&&x.css({bottom:"auto",right:"auto",width:_+"px",height:b+"px"}).offset(E)},enable:function(){var x=this.options.button;x.removeClass("webuploader-pick-disable"),this.refresh()},disable:function(){var x=this.options.button;this.getRuntime().getContainer().css({top:"-99999px"}),x.addClass("webuploader-pick-disable")},destroy:function(){var x=this.options.button;l(t).off("resize",this._resizeHandler),x.removeClass("webuploader-pick-disable webuploader-pick-hover webuploader-pick")}}),v}),e("widgets/filepicker",["base","uploader","lib/filepicker","widgets/widget"],function(o,s,c){var l=o.$;return l.extend(s.options,{pick:null,accept:null}),s.register({name:"picker",init:function(v){return this.pickers=[],v.pick&&this.addBtn(v.pick)},refresh:function(){l.each(this.pickers,function(){this.refresh()})},addBtn:function(v){var x=this,w=x.options,_=w.accept,b=[];if(!!v)return l.isPlainObject(v)||(v={id:v}),l(v.id).each(function(){var E,I,O;O=o.Deferred(),E=l.extend({},v,{accept:l.isPlainObject(_)?[_]:_,swf:w.swf,runtimeOrder:w.runtimeOrder,id:this}),I=new c(E),I.once("ready",O.resolve),I.on("select",function(N){x.owner.request("add-file",[N])}),I.on("dialogopen",function(){x.owner.trigger("dialogOpen",I.button)}),I.init(),x.pickers.push(I),b.push(O.promise())}),o.when.apply(o,b)},disable:function(){l.each(this.pickers,function(){this.disable()})},enable:function(){l.each(this.pickers,function(){this.enable()})},destroy:function(){l.each(this.pickers,function(){this.destroy()}),this.pickers=null}})}),e("lib/image",["base","runtime/client","lib/blob"],function(o,s,c){var l=o.$;function v(x){this.options=l.extend({},v.options,x),s.call(this,"Image"),this.on("load",function(){this._info=this.exec("info"),this._meta=this.exec("meta")})}return v.options={quality:90,crop:!1,preserveHeaders:!1,allowMagnify:!1},o.inherits(s,{constructor:v,info:function(x){return x?(this._info=x,this):this._info},meta:function(x){return x?(this._meta=x,this):this._meta},loadFromBlob:function(x){var w=this,_=x.getRuid();this.connectRuntime(_,function(){w.exec("init",w.options),w.exec("loadFromBlob",x)})},resize:function(){var x=o.slice(arguments);return this.exec.apply(this,["resize"].concat(x))},crop:function(){var x=o.slice(arguments);return this.exec.apply(this,["crop"].concat(x))},getAsDataUrl:function(x){return this.exec("getAsDataUrl",x)},getAsBlob:function(x){var w=this.exec("getAsBlob",x);return new c(this.getRuid(),w)}}),v}),e("widgets/image",["base","uploader","lib/image","widgets/widget"],function(o,s,c){var l=o.$,v;return v=function(x){var w=0,_=[],b=function(){for(var E;_.length&&w<x;)E=_.shift(),w+=E[0],E[1]()};return function(E,I,O){_.push([I,O]),E.once("destroy",function(){w-=I,setTimeout(b,1)}),setTimeout(b,1)}}(5*1024*1024),l.extend(s.options,{thumb:{width:110,height:110,quality:70,allowMagnify:!0,crop:!0,preserveHeaders:!1,type:"image/jpeg"},compress:{width:1600,height:1600,quality:90,allowMagnify:!1,crop:!1,preserveHeaders:!0}}),s.register({name:"image",makeThumb:function(x,w,_,b){var E,I;if(x=this.request("get-file",x),!x.type.match(/^image/)){w(!0);return}E=l.extend({},this.options.thumb),l.isPlainObject(_)&&(E=l.extend(E,_),_=null),_=_||E.width,b=b||E.height,I=new c(E),I.once("load",function(){x._info=x._info||I.info(),x._meta=x._meta||I.meta(),_<=1&&_>0&&(_=x._info.width*_),b<=1&&b>0&&(b=x._info.height*b),I.resize(_,b)}),I.once("complete",function(){w(!1,I.getAsDataUrl(E.type)),I.destroy()}),I.once("error",function(O){w(O||!0),I.destroy()}),v(I,x.source.size,function(){x._info&&I.info(x._info),x._meta&&I.meta(x._meta),I.loadFromBlob(x.source)})},beforeSendFile:function(x){var w=this.options.compress||this.options.resize,_=w&&w.compressSize||0,b=w&&w.noCompressIfLarger||!1,E,I;if(x=this.request("get-file",x),!(!w||!~"image/jpeg,image/jpg".indexOf(x.type)||x.size<_||x._compressed))return w=l.extend({},w),I=o.Deferred(),E=new c(w),I.always(function(){E.destroy(),E=null}),E.once("error",I.reject),E.once("load",function(){var O=w.width,N=w.height;x._info=x._info||E.info(),x._meta=x._meta||E.meta(),O<=1&&O>0&&(O=x._info.width*O),N<=1&&N>0&&(N=x._info.height*N),E.resize(O,N)}),E.once("complete",function(){var O,N;try{O=E.getAsBlob(w.type),N=x.size,(!b||O.size<N)&&(x.source=O,x.size=O.size,x.trigger("resize",O.size,N)),x._compressed=!0,I.resolve()}catch(A){I.resolve()}}),x._info&&E.info(x._info),x._meta&&E.meta(x._meta),E.loadFromBlob(x.source),I.promise()}})}),e("file",["base","mediator"],function(o,s){var c=o.$,l="WU_FILE_",v=0,x=/\.([^.]+)$/,w={};function _(){return l+v++}function b(E){this.name=E.name||"Untitled",this.size=E.size||0,this.type=E.type||"application/octet-stream",this.lastModifiedDate=E.lastModifiedDate||new Date*1,this.id=_(),this.ext=x.exec(this.name)?RegExp.$1:"",this.statusText="",w[this.id]=b.Status.INITED,this.source=E,this.loaded=0,this.on("error",function(I){this.setStatus(b.Status.ERROR,I)})}return c.extend(b.prototype,{setStatus:function(E,I){var O=w[this.id];typeof I!="undefined"&&(this.statusText=I),E!==O&&(w[this.id]=E,this.trigger("statuschange",E,O))},getStatus:function(){return w[this.id]},getSource:function(){return this.source},destroy:function(){this.off(),delete w[this.id]}}),s.installTo(b.prototype),b.Status={INITED:"inited",QUEUED:"queued",PROGRESS:"progress",ERROR:"error",COMPLETE:"complete",CANCELLED:"cancelled",INTERRUPT:"interrupt",INVALID:"invalid"},b}),e("queue",["base","mediator","file"],function(o,s,c){var l=o.$,v=c.Status;function x(){this.stats={numOfQueue:0,numOfSuccess:0,numOfCancel:0,numOfProgress:0,numOfUploadFailed:0,numOfInvalid:0,numofDeleted:0,numofInterrupt:0},this._queue=[],this._map={}}return l.extend(x.prototype,{append:function(w){return this._queue.push(w),this._fileAdded(w),this},prepend:function(w){return this._queue.unshift(w),this._fileAdded(w),this},getFile:function(w){return typeof w!="string"?w:this._map[w]},fetch:function(w){var _=this._queue.length,b,E;for(w=w||v.QUEUED,b=0;b<_;b++)if(E=this._queue[b],w===E.getStatus())return E;return null},sort:function(w){typeof w=="function"&&this._queue.sort(w)},getFiles:function(){for(var w=[].slice.call(arguments,0),_=[],b=0,E=this._queue.length,I;b<E;b++)I=this._queue[b],!(w.length&&!~l.inArray(I.getStatus(),w))&&_.push(I);return _},removeFile:function(w){var _=this._map[w.id];_&&(delete this._map[w.id],w.destroy(),this.stats.numofDeleted++)},_fileAdded:function(w){var _=this,b=this._map[w.id];b||(this._map[w.id]=w,w.on("statuschange",function(E,I){_._onFileStatusChange(E,I)}))},_onFileStatusChange:function(w,_){var b=this.stats;switch(_){case v.PROGRESS:b.numOfProgress--;break;case v.QUEUED:b.numOfQueue--;break;case v.ERROR:b.numOfUploadFailed--;break;case v.INVALID:b.numOfInvalid--;break;case v.INTERRUPT:b.numofInterrupt--;break}switch(w){case v.QUEUED:b.numOfQueue++;break;case v.PROGRESS:b.numOfProgress++;break;case v.ERROR:b.numOfUploadFailed++;break;case v.COMPLETE:b.numOfSuccess++;break;case v.CANCELLED:b.numOfCancel++;break;case v.INVALID:b.numOfInvalid++;break;case v.INTERRUPT:b.numofInterrupt++;break}}}),s.installTo(x.prototype),x}),e("widgets/queue",["base","uploader","queue","file","lib/file","runtime/client","widgets/widget"],function(o,s,c,l,v,x){var w=o.$,_=/\.\w+$/,b=l.Status;return s.register({name:"queue",init:function(E){var I=this,O,N,A,z,G,V,ne;if(w.isPlainObject(E.accept)&&(E.accept=[E.accept]),E.accept){for(G=[],A=0,N=E.accept.length;A<N;A++)z=E.accept[A].extensions,z&&G.push(z);G.length&&(V="\\."+G.join(",").replace(/,/g,"$|\\.").replace(/\*/g,".*")+"$"),I.accept=new RegExp(V,"i")}if(I.queue=new c,I.stats=I.queue.stats,this.request("predict-runtime-type")==="html5")return O=o.Deferred(),this.placeholder=ne=new x("Placeholder"),ne.connectRuntime({runtimeOrder:"html5"},function(){I._ruid=ne.getRuid(),O.resolve()}),O.promise()},_wrapFile:function(E){if(!(E instanceof l)){if(!(E instanceof v)){if(!this._ruid)throw new Error("Can't add external files.");E=new v(this._ruid,E)}E=new l(E)}return E},acceptFile:function(E){var I=!E||!E.size||this.accept&&_.exec(E.name)&&!this.accept.test(E.name);return!I},_addFile:function(E){var I=this;if(E=I._wrapFile(E),!!I.owner.trigger("beforeFileQueued",E)){if(!I.acceptFile(E)){I.owner.trigger("error","Q_TYPE_DENIED",E);return}return I.queue.append(E),I.owner.trigger("fileQueued",E),E}},getFile:function(E){return this.queue.getFile(E)},addFile:function(E){var I=this;E.length||(E=[E]),E=w.map(E,function(O){return I._addFile(O)}),E.length&&(I.owner.trigger("filesQueued",E),I.options.auto&&setTimeout(function(){I.request("start-upload")},20))},getStats:function(){return this.stats},removeFile:function(E,I){var O=this;E=E.id?E:O.queue.getFile(E),this.request("cancel-file",E),I&&this.queue.removeFile(E)},getFiles:function(){return this.queue.getFiles.apply(this.queue,arguments)},fetchFile:function(){return this.queue.fetch.apply(this.queue,arguments)},retry:function(E,I){var O=this,N,A,z;if(E){E=E.id?E:O.queue.getFile(E),E.setStatus(b.QUEUED),I||O.request("start-upload");return}for(N=O.queue.getFiles(b.ERROR),A=0,z=N.length;A<z;A++)E=N[A],E.setStatus(b.QUEUED);O.request("start-upload")},sortFiles:function(){return this.queue.sort.apply(this.queue,arguments)},reset:function(){this.owner.trigger("reset"),this.queue=new c,this.stats=this.queue.stats},destroy:function(){this.reset(),this.placeholder&&this.placeholder.destroy()}})}),e("widgets/runtime",["uploader","runtime/runtime","widgets/widget"],function(o,s){return o.support=function(){return s.hasRuntime.apply(s,arguments)},o.register({name:"runtime",init:function(){if(!this.predictRuntimeType())throw Error("Runtime Error")},predictRuntimeType:function(){var c=this.options.runtimeOrder||s.orders,l=this.type,v,x;if(!l){for(c=c.split(/\s*,\s*/g),v=0,x=c.length;v<x;v++)if(s.hasRuntime(c[v])){this.type=l=c[v];break}}return l}})}),e("lib/transport",["base","runtime/client","mediator"],function(o,s,c){var l=o.$;function v(x){var w=this;x=w.options=l.extend(!0,{},v.options,x||{}),s.call(this,"Transport"),this._blob=null,this._formData=x.formData||{},this._headers=x.headers||{},this.on("progress",this._timeout),this.on("load error",function(){w.trigger("progress",1),clearTimeout(w._timer)})}return v.options={server:"",method:"POST",withCredentials:!1,fileVal:"file",timeout:2*60*1e3,formData:{},headers:{},sendAsBinary:!1},l.extend(v.prototype,{appendBlob:function(x,w,_){var b=this,E=b.options;b.getRuid()&&b.disconnectRuntime(),b.connectRuntime(w.ruid,function(){b.exec("init")}),b._blob=w,E.fileVal=x||E.fileVal,E.filename=_||E.filename},append:function(x,w){typeof x=="object"?l.extend(this._formData,x):this._formData[x]=w},setRequestHeader:function(x,w){typeof x=="object"?l.extend(this._headers,x):this._headers[x]=w},send:function(x){this.exec("send",x),this._timeout()},abort:function(){return clearTimeout(this._timer),this.exec("abort")},destroy:function(){this.trigger("destroy"),this.off(),this.exec("destroy"),this.disconnectRuntime()},getResponse:function(){return this.exec("getResponse")},getResponseAsJson:function(){return this.exec("getResponseAsJson")},getStatus:function(){return this.exec("getStatus")},_timeout:function(){var x=this,w=x.options.timeout;!w||(clearTimeout(x._timer),x._timer=setTimeout(function(){x.abort(),x.trigger("error","timeout")},w))}}),c.installTo(v.prototype),v}),e("widgets/upload",["base","uploader","file","lib/transport","widgets/widget"],function(o,s,c,l){var v=o.$,x=o.isPromise,w=c.Status;v.extend(s.options,{prepareNextFile:!1,chunked:!1,chunkSize:5*1024*1024,chunkRetry:2,threads:3,formData:{}});function _(b,E){var I=[],O=b.source,N=O.size,A=E?Math.ceil(N/E):1,z=0,G=0,V,ne;for(ne={file:b,has:function(){return!!I.length},shift:function(){return I.shift()},unshift:function(W){I.unshift(W)}};G<A;)V=Math.min(E,N-z),I.push({file:b,start:z,end:E?z+V:N,total:N,chunks:A,chunk:G++,cuted:ne}),z+=V;return b.blocks=I.concat(),b.remaning=I.length,ne}s.register({name:"upload",init:function(){var b=this.owner,E=this;this.runing=!1,this.progress=!1,b.on("startUpload",function(){E.progress=!0}).on("uploadFinished",function(){E.progress=!1}),this.pool=[],this.stack=[],this.pending=[],this.remaning=0,this.__tick=o.bindFn(this._tick,this),b.on("uploadComplete",function(I){I.blocks&&v.each(I.blocks,function(O,N){N.transport&&(N.transport.abort(),N.transport.destroy()),delete N.transport}),delete I.blocks,delete I.remaning})},reset:function(){this.request("stop-upload",!0),this.runing=!1,this.pool=[],this.stack=[],this.pending=[],this.remaning=0,this._trigged=!1,this._promise=null},startUpload:function(b){var E=this;if(v.each(E.request("get-files",w.INVALID),function(){E.request("remove-file",this)}),b?(b=b.id?b:E.request("get-file",b),b.getStatus()===w.INTERRUPT?(b.setStatus(w.QUEUED),v.each(E.pool,function(O,N){N.file===b&&(N.transport&&N.transport.send(),b.setStatus(w.PROGRESS))})):b.getStatus()!==w.PROGRESS&&b.setStatus(w.QUEUED)):v.each(E.request("get-files",[w.INITED]),function(){this.setStatus(w.QUEUED)}),E.runing)return o.nextTick(E.__tick);E.runing=!0;var I=[];b||v.each(E.pool,function(O,N){var A=N.file;A.getStatus()===w.INTERRUPT&&(E._trigged=!1,I.push(A),N.transport&&N.transport.send())}),v.each(I,function(){this.setStatus(w.PROGRESS)}),b||v.each(E.request("get-files",w.INTERRUPT),function(){this.setStatus(w.PROGRESS)}),E._trigged=!1,o.nextTick(E.__tick),E.owner.trigger("startUpload")},stopUpload:function(b,E){var I=this,O;if(b===!0&&(E=b,b=null),I.runing!==!1){if(b)return b=b.id?b:I.request("get-file",b),b.getStatus()!==w.PROGRESS&&b.getStatus()!==w.QUEUED?void 0:(b.setStatus(w.INTERRUPT),v.each(I.pool,function(N,A){if(A.file===b)return O=A,!1}),O.transport&&O.transport.abort(),E&&(I._putback(O),I._popBlock(O)),o.nextTick(I.__tick));I.runing=!1,this._promise&&this._promise.file&&this._promise.file.setStatus(w.INTERRUPT),E&&v.each(I.pool,function(N,A){A.transport&&A.transport.abort(),A.file.setStatus(w.INTERRUPT)}),I.owner.trigger("stopUpload")}},cancelFile:function(b){b=b.id?b:this.request("get-file",b),b.blocks&&v.each(b.blocks,function(E,I){var O=I.transport;O&&(O.abort(),O.destroy(),delete I.transport)}),b.setStatus(w.CANCELLED),this.owner.trigger("fileDequeued",b)},isInProgress:function(){return!!this.progress},_getStats:function(){return this.request("get-stats")},skipFile:function(b,E){b=b.id?b:this.request("get-file",b),b.setStatus(E||w.COMPLETE),b.skipped=!0,b.blocks&&v.each(b.blocks,function(I,O){var N=O.transport;N&&(N.abort(),N.destroy(),delete O.transport)}),this.owner.trigger("uploadSkip",b)},_tick:function(){var b=this,E=b.options,I,O;if(b._promise)return b._promise.always(b.__tick);b.pool.length<E.threads&&(O=b._nextBlock())?(b._trigged=!1,I=function(N){b._promise=null,N&&N.file&&b._startSend(N),o.nextTick(b.__tick)},b._promise=x(O)?O.always(I):I(O)):!b.remaning&&!b._getStats().numOfQueue&&!b._getStats().numofInterrupt&&(b.runing=!1,b._trigged||o.nextTick(function(){b.owner.trigger("uploadFinished")}),b._trigged=!0)},_putback:function(b){var E;b.cuted.unshift(b),E=this.stack.indexOf(b.cuted),~E||this.stack.unshift(b.cuted)},_getStack:function(){for(var b=0,E;E=this.stack[b++];){if(E.has()&&E.file.getStatus()===w.PROGRESS)return E;(!E.has()||E.file.getStatus()!==w.PROGRESS&&E.file.getStatus()!==w.INTERRUPT)&&this.stack.splice(--b,1)}return null},_nextBlock:function(){var b=this,E=b.options,I,O,N,A;if(I=this._getStack())return E.prepareNextFile&&!b.pending.length&&b._prepareNextFile(),I.shift();if(b.runing)return!b.pending.length&&b._getStats().numOfQueue&&b._prepareNextFile(),O=b.pending.shift(),N=function(z){return z?(I=_(z,E.chunked?E.chunkSize:0),b.stack.push(I),I.shift()):null},x(O)?(A=O.file,O=O[O.pipe?"pipe":"then"](N),O.file=A,O):N(O)},_prepareNextFile:function(){var b=this,E=b.request("fetch-file"),I=b.pending,O;E&&(O=b.request("before-send-file",E,function(){return E.getStatus()===w.PROGRESS||E.getStatus()===w.INTERRUPT?E:b._finishFile(E)}),b.owner.trigger("uploadStart",E),E.setStatus(w.PROGRESS),O.file=E,O.done(function(){var N=v.inArray(O,I);~N&&I.splice(N,1,E)}),O.fail(function(N){E.setStatus(w.ERROR,N),b.owner.trigger("uploadError",E,N),b.owner.trigger("uploadComplete",E)}),I.push(O))},_popBlock:function(b){var E=v.inArray(b,this.pool);this.pool.splice(E,1),b.file.remaning--,this.remaning--},_startSend:function(b){var E=this,I=b.file,O;if(I.getStatus()!==w.PROGRESS){I.getStatus()===w.INTERRUPT&&E._putback(b);return}E.pool.push(b),E.remaning++,b.blob=b.chunks===1?I.source:I.source.slice(b.start,b.end),O=E.request("before-send",b,function(){I.getStatus()===w.PROGRESS?E._doSend(b):(E._popBlock(b),o.nextTick(E.__tick))}),O.fail(function(){I.remaning===1?E._finishFile(I).always(function(){b.percentage=1,E._popBlock(b),E.owner.trigger("uploadComplete",I),o.nextTick(E.__tick)}):(b.percentage=1,E.updateFileProgress(I),E._popBlock(b),o.nextTick(E.__tick))})},_doSend:function(b){var E=this,I=E.owner,O=E.options,N=b.file,A=new l(O),z=v.extend({},O.formData),G=v.extend({},O.headers),V,ne;b.transport=A,A.on("destroy",function(){delete b.transport,E._popBlock(b),o.nextTick(E.__tick)}),A.on("progress",function(W){b.percentage=W,E.updateFileProgress(N)}),V=function(W){var B;return ne=A.getResponseAsJson()||{},ne._raw=A.getResponse(),B=function(q){W=q},I.trigger("uploadAccept",b,ne,B)||(W=W||"server"),W},A.on("error",function(W,B){b.retried=b.retried||0,b.chunks>1&&~"http,abort".indexOf(W)&&b.retried<O.chunkRetry?(b.retried++,A.send()):(!B&&W==="server"&&(W=V(W)),N.setStatus(w.ERROR,W),I.trigger("uploadError",N,W),I.trigger("uploadComplete",N))}),A.on("load",function(){var W;if(W=V()){A.trigger("error",W,!0);return}N.remaning===1?E._finishFile(N,ne):A.destroy()}),z=v.extend(z,{id:N.id,name:N.name,type:N.type,lastModifiedDate:N.lastModifiedDate,size:N.size}),b.chunks>1&&v.extend(z,{chunks:b.chunks,chunk:b.chunk}),I.trigger("uploadBeforeSend",b,z,G),A.appendBlob(O.fileVal,b.blob,N.name),A.append(z),A.setRequestHeader(G),A.send()},_finishFile:function(b,E,I){var O=this.owner;return O.request("after-send-file",arguments,function(){b.setStatus(w.COMPLETE),O.trigger("uploadSuccess",b,E,I)}).fail(function(N){b.getStatus()===w.PROGRESS&&b.setStatus(w.ERROR,N),O.trigger("uploadError",b,N)}).always(function(){O.trigger("uploadComplete",b)})},updateFileProgress:function(b){var E=0,I=0;!b.blocks||(v.each(b.blocks,function(O,N){I+=(N.percentage||0)*(N.end-N.start)}),E=I/b.size,this.owner.trigger("uploadProgress",b,E||0))}})}),e("widgets/validator",["base","uploader","file","widgets/widget"],function(o,s,c){var l=o.$,v={},x;return x={addValidator:function(w,_){v[w]=_},removeValidator:function(w){delete v[w]}},s.register({name:"validator",init:function(){var w=this;o.nextTick(function(){l.each(v,function(){this.call(w.owner)})})}}),x.addValidator("fileNumLimit",function(){var w=this,_=w.options,b=0,E=parseInt(_.fileNumLimit,10),I=!0;!E||(w.on("beforeFileQueued",function(O){return b>=E&&I&&(I=!1,this.trigger("error","Q_EXCEED_NUM_LIMIT",E,O),setTimeout(function(){I=!0},1)),!(b>=E)}),w.on("fileQueued",function(){b++}),w.on("fileDequeued",function(){b--}),w.on("reset",function(){b=0}))}),x.addValidator("fileSizeLimit",function(){var w=this,_=w.options,b=0,E=parseInt(_.fileSizeLimit,10),I=!0;!E||(w.on("beforeFileQueued",function(O){var N=b+O.size>E;return N&&I&&(I=!1,this.trigger("error","Q_EXCEED_SIZE_LIMIT",E,O),setTimeout(function(){I=!0},1)),!N}),w.on("fileQueued",function(O){b+=O.size}),w.on("fileDequeued",function(O){b-=O.size}),w.on("reset",function(){b=0}))}),x.addValidator("fileSingleSizeLimit",function(){var w=this,_=w.options,b=_.fileSingleSizeLimit;!b||w.on("beforeFileQueued",function(E){if(E.size>b)return E.setStatus(c.Status.INVALID,"exceed_size"),this.trigger("error","F_EXCEED_SIZE",b,E),!1})}),x.addValidator("duplicate",function(){var w=this,_=w.options,b={};if(_.duplicate)return;function E(I){for(var O=0,N=0,A=I.length,z;N<A;N++)z=I.charCodeAt(N),O=z+(O<<6)+(O<<16)-O;return O}w.on("beforeFileQueued",function(I){var O=I.__hash||(I.__hash=E(I.name+I.size+I.lastModifiedDate));if(b[O])return this.trigger("error","F_DUPLICATE",I),!1}),w.on("fileQueued",function(I){var O=I.__hash;O&&(b[O]=!0)}),w.on("fileDequeued",function(I){var O=I.__hash;O&&delete b[O]}),w.on("reset",function(){b={}})}),x}),e("lib/md5",["runtime/client","mediator"],function(o,s){function c(){o.call(this,"Md5")}return s.installTo(c.prototype),c.prototype.loadFromBlob=function(l){var v=this;v.getRuid()&&v.disconnectRuntime(),v.connectRuntime(l.ruid,function(){v.exec("init"),v.exec("loadFromBlob",l)})},c.prototype.getResult=function(){return this.exec("getResult")},c}),e("widgets/md5",["base","uploader","lib/md5","lib/blob","widgets/widget"],function(o,s,c,l){return s.register({name:"md5",md5File:function(v,x,w){var _=new c,b=o.Deferred(),E=v instanceof l?v:this.request("get-file",v).source;return _.on("progress load",function(I){I=I||{},b.notify(I.total?I.loaded/I.total:1)}),_.on("complete",function(){b.resolve(_.getResult())}),_.on("error",function(I){b.reject(I)}),arguments.length>1&&(x=x||0,w=w||0,x<0&&(x=E.size+x),w<0&&(w=E.size+w),w=Math.min(w,E.size),E=E.slice(x,w)),_.loadFromBlob(E),b.promise()}})}),e("runtime/compbase",[],function(){function o(s,c){this.owner=s,this.options=s.options,this.getRuntime=function(){return c},this.getRuid=function(){return c.uid},this.trigger=function(){return s.trigger.apply(s,arguments)}}return o}),e("runtime/html5/runtime",["base","runtime/runtime","runtime/compbase"],function(o,s,c){var l="html5",v={};function x(){var w={},_=this,b=this.destroy;s.apply(_,arguments),_.type=l,_.exec=function(E,I){var O=this,N=O.uid,A=o.slice(arguments,2),z;if(v[E]&&(z=w[N]=w[N]||new v[E](O,_),z[I]))return z[I].apply(z,A)},_.destroy=function(){return b&&b.apply(this,arguments)}}return o.inherits(s,{constructor:x,init:function(){var w=this;setTimeout(function(){w.trigger("ready")},1)}}),x.register=function(w,_){var b=v[w]=o.inherits(c,_);return b},t.Blob&&t.FileReader&&t.DataView&&s.addRuntime(l,x),x}),e("runtime/html5/blob",["runtime/html5/runtime","lib/blob"],function(o,s){return o.register("Blob",{slice:function(c,l){var v=this.owner.source,x=v.slice||v.webkitSlice||v.mozSlice;return v=x.call(v,c,l),new s(this.getRuid(),v)}})}),e("runtime/html5/dnd",["base","runtime/html5/runtime","lib/file"],function(o,s,c){var l=o.$,v="webuploader-dnd-";return s.register("DragAndDrop",{init:function(){var x=this.elem=this.options.container;this.dragEnterHandler=o.bindFn(this._dragEnterHandler,this),this.dragOverHandler=o.bindFn(this._dragOverHandler,this),this.dragLeaveHandler=o.bindFn(this._dragLeaveHandler,this),this.dropHandler=o.bindFn(this._dropHandler,this),this.dndOver=!1,x.on("dragenter",this.dragEnterHandler),x.on("dragover",this.dragOverHandler),x.on("dragleave",this.dragLeaveHandler),x.on("drop",this.dropHandler),this.options.disableGlobalDnd&&(l(document).on("dragover",this.dragOverHandler),l(document).on("drop",this.dropHandler))},_dragEnterHandler:function(x){var w=this,_=w._denied||!1,b;return x=x.originalEvent||x,w.dndOver||(w.dndOver=!0,b=x.dataTransfer.items,b&&b.length&&(w._denied=_=!w.trigger("accept",b)),w.elem.addClass(v+"over"),w.elem[_?"addClass":"removeClass"](v+"denied")),x.dataTransfer.dropEffect=_?"none":"copy",!1},_dragOverHandler:function(x){var w=this.elem.parent().get(0);return w&&!l.contains(w,x.currentTarget)||(clearTimeout(this._leaveTimer),this._dragEnterHandler.call(this,x)),!1},_dragLeaveHandler:function(){var x=this,w;return w=function(){x.dndOver=!1,x.elem.removeClass(v+"over "+v+"denied")},clearTimeout(x._leaveTimer),x._leaveTimer=setTimeout(w,100),!1},_dropHandler:function(x){var w=this,_=w.getRuid(),b=w.elem.parent().get(0),E,I;if(b&&!l.contains(b,x.currentTarget))return!1;x=x.originalEvent||x,E=x.dataTransfer;try{I=E.getData("text/html")}catch(O){}if(w.dndOver=!1,w.elem.removeClass(v+"over"),!I)return w._getTansferFiles(E,function(O){w.trigger("drop",l.map(O,function(N){return new c(_,N)}))}),!1},_getTansferFiles:function(x,w){var _=[],b=[],E,I,O,N,A,z,G;for(E=x.items,I=x.files,G=!!(E&&E[0].webkitGetAsEntry),A=0,z=I.length;A<z;A++)O=I[A],N=E&&E[A],G&&N.webkitGetAsEntry().isDirectory?b.push(this._traverseDirectoryTree(N.webkitGetAsEntry(),_)):_.push(O);o.when.apply(o,b).done(function(){!_.length||w(_)})},_traverseDirectoryTree:function(x,w){var _=o.Deferred(),b=this;return x.isFile?x.file(function(E){w.push(E),_.resolve()}):x.isDirectory&&x.createReader().readEntries(function(E){var I=E.length,O=[],N=[],A;for(A=0;A<I;A++)O.push(b._traverseDirectoryTree(E[A],N));o.when.apply(o,O).then(function(){w.push.apply(w,N),_.resolve()},_.reject)}),_.promise()},destroy:function(){var x=this.elem;!x||(x.off("dragenter",this.dragEnterHandler),x.off("dragover",this.dragOverHandler),x.off("dragleave",this.dragLeaveHandler),x.off("drop",this.dropHandler),this.options.disableGlobalDnd&&(l(document).off("dragover",this.dragOverHandler),l(document).off("drop",this.dropHandler)))}})}),e("runtime/html5/filepaste",["base","runtime/html5/runtime","lib/file"],function(o,s,c){return s.register("FilePaste",{init:function(){var l=this.options,v=this.elem=l.container,x=".*",w,_,b,E;if(l.accept){for(w=[],_=0,b=l.accept.length;_<b;_++)E=l.accept[_].mimeTypes,E&&w.push(E);w.length&&(x=w.join(","),x=x.replace(/,/g,"|").replace(/\*/g,".*"))}this.accept=x=new RegExp(x,"i"),this.hander=o.bindFn(this._pasteHander,this),v.on("paste",this.hander)},_pasteHander:function(l){var v=[],x=this.getRuid(),w,_,b,E,I;for(l=l.originalEvent||l,w=l.clipboardData.items,E=0,I=w.length;E<I;E++)_=w[E],!(_.kind!=="file"||!(b=_.getAsFile()))&&v.push(new c(x,b));v.length&&(l.preventDefault(),l.stopPropagation(),this.trigger("paste",v))},destroy:function(){this.elem.off("paste",this.hander)}})}),e("runtime/html5/filepicker",["base","runtime/html5/runtime"],function(o,s){var c=o.$;return s.register("FilePicker",{init:function(){var l=this.getRuntime().getContainer(),v=this,x=v.owner,w=v.options,_=this.label=c(document.createElement("label")),b=this.input=c(document.createElement("input")),E,I,O,N;if(b.attr("type","file"),b.attr("capture","camera"),b.attr("name",w.name),b.addClass("webuploader-element-invisible"),_.on("click",function(z){b.trigger("click"),z.stopPropagation(),x.trigger("dialogopen")}),_.css({opacity:0,width:"100%",height:"100%",display:"block",cursor:"pointer",background:"#ffffff"}),w.multiple&&b.attr("multiple","multiple"),w.accept&&w.accept.length>0){for(E=[],I=0,O=w.accept.length;I<O;I++)E.push(w.accept[I].mimeTypes);b.attr("accept",E.join(","))}l.append(b),l.append(_),N=function(z){x.trigger(z.type)};function A(z){var G=A,V;v.files=z.target.files,V=this.cloneNode(!0),V.value=null,this.parentNode.replaceChild(V,this),b.off(),b=c(V).on("change",G).on("mouseenter mouseleave",N),x.trigger("change")}b.on("change",A),_.on("mouseenter mouseleave",N)},getFiles:function(){return this.files},destroy:function(){this.input.off(),this.label.off()}})}),e("runtime/html5/util",["base"],function(o){var s=t.createObjectURL&&t||t.URL&&URL.revokeObjectURL&&URL||t.webkitURL,c=o.noop,l=c;return s&&(c=function(){return s.createObjectURL.apply(s,arguments)},l=function(){return s.revokeObjectURL.apply(s,arguments)}),{createObjectURL:c,revokeObjectURL:l,dataURL2Blob:function(v){var x,w,_,b,E,I;for(I=v.split(","),~I[0].indexOf("base64")?x=atob(I[1]):x=decodeURIComponent(I[1]),_=new ArrayBuffer(x.length),w=new Uint8Array(_),b=0;b<x.length;b++)w[b]=x.charCodeAt(b);return E=I[0].split(":")[1].split(";")[0],this.arrayBufferToBlob(_,E)},dataURL2ArrayBuffer:function(v){var x,w,_,b;for(b=v.split(","),~b[0].indexOf("base64")?x=atob(b[1]):x=decodeURIComponent(b[1]),w=new Uint8Array(x.length),_=0;_<x.length;_++)w[_]=x.charCodeAt(_);return w.buffer},arrayBufferToBlob:function(v,x){var w=t.BlobBuilder||t.WebKitBlobBuilder,_;return w?(_=new w,_.append(v),_.getBlob(x)):new Blob([v],x?{type:x}:{})},canvasToDataUrl:function(v,x,w){return v.toDataURL(x,w/100)},parseMeta:function(v,x){x(!1,{})},updateImageHead:function(v){return v}}}),e("runtime/html5/imagemeta",["runtime/html5/util"],function(o){var s;return s={parsers:{65505:[]},maxMetaDataSize:262144,parse:function(c,l){var v=this,x=new FileReader;x.onload=function(){l(!1,v._parse(this.result)),x=x.onload=x.onerror=null},x.onerror=function(w){l(w.message),x=x.onload=x.onerror=null},c=c.slice(0,v.maxMetaDataSize),x.readAsArrayBuffer(c.getSource())},_parse:function(c,l){if(!(c.byteLength<6)){var v=new DataView(c),x=2,w=v.byteLength-4,_=x,b={},E,I,O,N;if(v.getUint16(0)===65496){for(;x<w&&(E=v.getUint16(x),E>=65504&&E<=65519||E===65534);){if(I=v.getUint16(x+2)+2,x+I>v.byteLength)break;if(O=s.parsers[E],!l&&O)for(N=0;N<O.length;N+=1)O[N].call(s,v,x,I,b);x+=I,_=x}_>6&&(c.slice?b.imageHead=c.slice(2,_):b.imageHead=new Uint8Array(c).subarray(2,_))}return b}},updateImageHead:function(c,l){var v=this._parse(c,!0),x,w,_;return _=2,v.imageHead&&(_=2+v.imageHead.byteLength),c.slice?w=c.slice(_):w=new Uint8Array(c).subarray(_),x=new Uint8Array(l.byteLength+2+w.byteLength),x[0]=255,x[1]=216,x.set(new Uint8Array(l),2),x.set(new Uint8Array(w),l.byteLength+2),x.buffer}},o.parseMeta=function(){return s.parse.apply(s,arguments)},o.updateImageHead=function(){return s.updateImageHead.apply(s,arguments)},s}),e("runtime/html5/imagemeta/exif",["base","runtime/html5/imagemeta"],function(o,s){var c={};return c.ExifMap=function(){return this},c.ExifMap.prototype.map={Orientation:274},c.ExifMap.prototype.get=function(l){return this[l]||this[this.map[l]]},c.exifTagTypes={1:{getValue:function(l,v){return l.getUint8(v)},size:1},2:{getValue:function(l,v){return String.fromCharCode(l.getUint8(v))},size:1,ascii:!0},3:{getValue:function(l,v,x){return l.getUint16(v,x)},size:2},4:{getValue:function(l,v,x){return l.getUint32(v,x)},size:4},5:{getValue:function(l,v,x){return l.getUint32(v,x)/l.getUint32(v+4,x)},size:8},9:{getValue:function(l,v,x){return l.getInt32(v,x)},size:4},10:{getValue:function(l,v,x){return l.getInt32(v,x)/l.getInt32(v+4,x)},size:8}},c.exifTagTypes[7]=c.exifTagTypes[1],c.getExifValue=function(l,v,x,w,_,b){var E=c.exifTagTypes[w],I,O,N,A,z,G;if(!E){o.log("Invalid Exif data: Invalid tag type.");return}if(I=E.size*_,O=I>4?v+l.getUint32(x+8,b):x+8,O+I>l.byteLength){o.log("Invalid Exif data: Invalid data offset.");return}if(_===1)return E.getValue(l,O,b);for(N=[],A=0;A<_;A+=1)N[A]=E.getValue(l,O+A*E.size,b);if(E.ascii){for(z="",A=0;A<N.length&&(G=N[A],G!=="\0");A+=1)z+=G;return z}return N},c.parseExifTag=function(l,v,x,w,_){var b=l.getUint16(x,w);_.exif[b]=c.getExifValue(l,v,x,l.getUint16(x+2,w),l.getUint32(x+4,w),w)},c.parseExifTags=function(l,v,x,w,_){var b,E,I;if(x+6>l.byteLength){o.log("Invalid Exif data: Invalid directory offset.");return}if(b=l.getUint16(x,w),E=x+2+12*b,E+4>l.byteLength){o.log("Invalid Exif data: Invalid directory size.");return}for(I=0;I<b;I+=1)this.parseExifTag(l,v,x+2+12*I,w,_);return l.getUint32(E,w)},c.parseExifData=function(l,v,x,w){var _=v+10,b,E;if(l.getUint32(v+4)===1165519206){if(_+8>l.byteLength){o.log("Invalid Exif data: Invalid segment size.");return}if(l.getUint16(v+8)!==0){o.log("Invalid Exif data: Missing byte alignment offset.");return}switch(l.getUint16(_)){case 18761:b=!0;break;case 19789:b=!1;break;default:o.log("Invalid Exif data: Invalid byte alignment marker.");return}if(l.getUint16(_+2,b)!==42){o.log("Invalid Exif data: Missing TIFF marker.");return}E=l.getUint32(_+4,b),w.exif=new c.ExifMap,E=c.parseExifTags(l,_,_+E,b,w)}},s.parsers[65505].push(c.parseExifData),c}),e("runtime/html5/jpegencoder",[],function(o,s,c){function l(v){var x=Math.floor,w=new Array(64),_=new Array(64),b=new Array(64),E=new Array(64),I,O,N,A,z=new Array(65535),G=new Array(65535),V=new Array(64),ne=new Array(64),W=[],B=0,q=7,D=new Array(64),F=new Array(64),re=new Array(64),le=new Array(256),fe=new Array(2048),me,ye=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],Te=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],ke=[0,1,2,3,4,5,6,7,8,9,10,11],Le=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],et=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],it=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Ue=[0,1,2,3,4,5,6,7,8,9,10,11],ht=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],De=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function Be(Zt){for(var Et=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],rn=0;rn<64;rn++){var wt=x((Et[rn]*Zt+50)/100);wt<1?wt=1:wt>255&&(wt=255),w[ye[rn]]=wt}for(var Yn=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],pt=0;pt<64;pt++){var Fe=x((Yn[pt]*Zt+50)/100);Fe<1?Fe=1:Fe>255&&(Fe=255),_[ye[pt]]=Fe}for(var Ie=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],ct=0,Ht=0;Ht<8;Ht++)for(var sn=0;sn<8;sn++)b[ct]=1/(w[ye[ct]]*Ie[Ht]*Ie[sn]*8),E[ct]=1/(_[ye[ct]]*Ie[Ht]*Ie[sn]*8),ct++}function Ve(Zt,Et){for(var rn=0,wt=0,Yn=new Array,pt=1;pt<=16;pt++){for(var Fe=1;Fe<=Zt[pt];Fe++)Yn[Et[wt]]=[],Yn[Et[wt]][0]=rn,Yn[Et[wt]][1]=pt,wt++,rn++;rn*=2}return Yn}function He(){I=Ve(Te,ke),O=Ve(it,Ue),N=Ve(Le,et),A=Ve(ht,De)}function gt(){for(var Zt=1,Et=2,rn=1;rn<=15;rn++){for(var wt=Zt;wt<Et;wt++)G[32767+wt]=rn,z[32767+wt]=[],z[32767+wt][1]=rn,z[32767+wt][0]=wt;for(var Yn=-(Et-1);Yn<=-Zt;Yn++)G[32767+Yn]=rn,z[32767+Yn]=[],z[32767+Yn][1]=rn,z[32767+Yn][0]=Et-1+Yn;Zt<<=1,Et<<=1}}function dn(){for(var Zt=0;Zt<256;Zt++)fe[Zt]=19595*Zt,fe[Zt+256>>0]=38470*Zt,fe[Zt+512>>0]=7471*Zt+32768,fe[Zt+768>>0]=-11059*Zt,fe[Zt+1024>>0]=-21709*Zt,fe[Zt+1280>>0]=32768*Zt+8421375,fe[Zt+1536>>0]=-27439*Zt,fe[Zt+1792>>0]=-5329*Zt}function Ze(Zt){for(var Et=Zt[0],rn=Zt[1]-1;rn>=0;)Et&1<<rn&&(B|=1<<q),rn--,q--,q<0&&(B==255?(at(255),at(0)):at(B),q=7,B=0)}function at(Zt){W.push(le[Zt])}function Lt(Zt){at(Zt>>8&255),at(Zt&255)}function Ne(Zt,Et){var rn,wt,Yn,pt,Fe,Ie,ct,Ht,sn=0,yn,Dr=8,Kr=64;for(yn=0;yn<Dr;++yn){rn=Zt[sn],wt=Zt[sn+1],Yn=Zt[sn+2],pt=Zt[sn+3],Fe=Zt[sn+4],Ie=Zt[sn+5],ct=Zt[sn+6],Ht=Zt[sn+7];var ii=rn+Ht,_n=rn-Ht,xn=wt+ct,jn=wt-ct,ln=Yn+Ie,ar=Yn-Ie,zr=pt+Fe,Jr=pt-Fe,bi=ii+zr,hi=ii-zr,wi=xn+ln,Ca=xn-ln;Zt[sn]=bi+wi,Zt[sn+4]=bi-wi;var jt=(Ca+hi)*.707106781;Zt[sn+2]=hi+jt,Zt[sn+6]=hi-jt,bi=Jr+ar,wi=ar+jn,Ca=jn+_n;var dt=(bi-Ca)*.382683433,xt=.5411961*bi+dt,Nt=1.306562965*Ca+dt,Qt=wi*.707106781,mn=_n+Qt,Un=_n-Qt;Zt[sn+5]=Un+xt,Zt[sn+3]=Un-xt,Zt[sn+1]=mn+Nt,Zt[sn+7]=mn-Nt,sn+=8}for(sn=0,yn=0;yn<Dr;++yn){rn=Zt[sn],wt=Zt[sn+8],Yn=Zt[sn+16],pt=Zt[sn+24],Fe=Zt[sn+32],Ie=Zt[sn+40],ct=Zt[sn+48],Ht=Zt[sn+56];var we=rn+Ht,En=rn-Ht,Kn=wt+ct,er=wt-ct,Hr=Yn+Ie,Ir=Yn-Ie,Ri=pt+Fe,Ti=pt-Fe,mi=we+Ri,Li=we-Ri,tr=Kn+Hr,ha=Kn-Hr;Zt[sn]=mi+tr,Zt[sn+32]=mi-tr;var ti=(ha+Li)*.707106781;Zt[sn+16]=Li+ti,Zt[sn+48]=Li-ti,mi=Ti+Ir,tr=Ir+er,ha=er+En;var ua=(mi-ha)*.382683433,Va=.5411961*mi+ua,ns=1.306562965*ha+ua,Xo=tr*.707106781,qr=En+Xo,ca=En-Xo;Zt[sn+40]=ca+Va,Zt[sn+24]=ca-Va,Zt[sn+8]=qr+ns,Zt[sn+56]=qr-ns,sn++}var va;for(yn=0;yn<Kr;++yn)va=Zt[yn]*Et[yn],V[yn]=va>0?va+.5|0:va-.5|0;return V}function ze(){Lt(65504),Lt(16),at(74),at(70),at(73),at(70),at(0),at(1),at(1),at(0),Lt(1),Lt(1),at(0),at(0)}function Ke(Zt,Et){Lt(65472),Lt(17),at(8),Lt(Et),Lt(Zt),at(3),at(1),at(17),at(0),at(2),at(17),at(1),at(3),at(17),at(1)}function vt(){Lt(65499),Lt(132),at(0);for(var Zt=0;Zt<64;Zt++)at(w[Zt]);at(1);for(var Et=0;Et<64;Et++)at(_[Et])}function Ft(){Lt(65476),Lt(418),at(0);for(var Zt=0;Zt<16;Zt++)at(Te[Zt+1]);for(var Et=0;Et<=11;Et++)at(ke[Et]);at(16);for(var rn=0;rn<16;rn++)at(Le[rn+1]);for(var wt=0;wt<=161;wt++)at(et[wt]);at(1);for(var Yn=0;Yn<16;Yn++)at(it[Yn+1]);for(var pt=0;pt<=11;pt++)at(Ue[pt]);at(17);for(var Fe=0;Fe<16;Fe++)at(ht[Fe+1]);for(var Ie=0;Ie<=161;Ie++)at(De[Ie])}function Ot(){Lt(65498),Lt(12),at(3),at(1),at(0),at(2),at(17),at(3),at(17),at(0),at(63),at(0)}function _t(Zt,Et,rn,wt,Yn){for(var pt=Yn[0],Fe=Yn[240],Ie,ct=16,Ht=63,sn=64,yn=Ne(Zt,Et),Dr=0;Dr<sn;++Dr)ne[ye[Dr]]=yn[Dr];var Kr=ne[0]-rn;rn=ne[0],Kr==0?Ze(wt[0]):(Ie=32767+Kr,Ze(wt[G[Ie]]),Ze(z[Ie]));for(var ii=63;ii>0&&ne[ii]==0;ii--);if(ii==0)return Ze(pt),rn;for(var _n=1,xn;_n<=ii;){for(var jn=_n;ne[_n]==0&&_n<=ii;++_n);var ln=_n-jn;if(ln>=ct){xn=ln>>4;for(var ar=1;ar<=xn;++ar)Ze(Fe);ln=ln&15}Ie=32767+ne[_n],Ze(Yn[(ln<<4)+G[Ie]]),Ze(z[Ie]),_n++}return ii!=Ht&&Ze(pt),rn}function Tn(){for(var Zt=String.fromCharCode,Et=0;Et<256;Et++)le[Et]=Zt(Et)}this.encode=function(Zt,Et){Et&&on(Et),W=new Array,B=0,q=7,Lt(65496),ze(),vt(),Ke(Zt.width,Zt.height),Ft(),Ot();var rn=0,wt=0,Yn=0;B=0,q=7,this.encode.displayName="_encode_";for(var pt=Zt.data,Fe=Zt.width,Ie=Zt.height,ct=Fe*4,Ht,sn=0,yn,Dr,Kr,ii,_n,xn,jn,ln;sn<Ie;){for(Ht=0;Ht<ct;){for(ii=ct*sn+Ht,_n=ii,xn=-1,jn=0,ln=0;ln<64;ln++)jn=ln>>3,xn=(ln&7)*4,_n=ii+jn*ct+xn,sn+jn>=Ie&&(_n-=ct*(sn+1+jn-Ie)),Ht+xn>=ct&&(_n-=Ht+xn-ct+4),yn=pt[_n++],Dr=pt[_n++],Kr=pt[_n++],D[ln]=(fe[yn]+fe[Dr+256>>0]+fe[Kr+512>>0]>>16)-128,F[ln]=(fe[yn+768>>0]+fe[Dr+1024>>0]+fe[Kr+1280>>0]>>16)-128,re[ln]=(fe[yn+1280>>0]+fe[Dr+1536>>0]+fe[Kr+1792>>0]>>16)-128;rn=_t(D,b,rn,I,N),wt=_t(F,E,wt,O,A),Yn=_t(re,E,Yn,O,A),Ht+=32}sn+=8}if(q>=0){var ar=[];ar[1]=q+1,ar[0]=(1<<q+1)-1,Ze(ar)}Lt(65497);var zr="data:image/jpeg;base64,"+btoa(W.join(""));return W=[],zr};function on(Zt){if(Zt<=0&&(Zt=1),Zt>100&&(Zt=100),me!=Zt){var Et=0;Zt<50?Et=Math.floor(5e3/Zt):Et=Math.floor(200-Zt*2),Be(Et),me=Zt}}function $n(){v||(v=50),Tn(),He(),gt(),dn(),on(v)}$n()}return l.encode=function(v,x){var w=new l(x);return w.encode(v)},l}),e("runtime/html5/androidpatch",["runtime/html5/util","runtime/html5/jpegencoder","base"],function(o,s,c){var l=o.canvasToDataUrl,v;o.canvasToDataUrl=function(x,w,_){var b,E,I,O,N;return c.os.android?(w==="image/jpeg"&&typeof v=="undefined"&&(O=l.apply(null,arguments),N=O.split(","),~N[0].indexOf("base64")?O=atob(N[1]):O=decodeURIComponent(N[1]),O=O.substring(0,2),v=O.charCodeAt(0)===255&&O.charCodeAt(1)===216),w==="image/jpeg"&&!v?(E=x.width,I=x.height,b=x.getContext("2d"),s.encode(b.getImageData(0,0,E,I),_)):l.apply(null,arguments)):l.apply(null,arguments)}}),e("runtime/html5/image",["base","runtime/html5/runtime","runtime/html5/util"],function(o,s,c){var l="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs%3D";return s.register("Image",{modified:!1,init:function(){var v=this,x=new Image;x.onload=function(){v._info={type:v.type,width:this.width,height:this.height},!v._metas&&v.type==="image/jpeg"?c.parseMeta(v._blob,function(w,_){v._metas=_,v.owner.trigger("load")}):v.owner.trigger("load")},x.onerror=function(){v.owner.trigger("error")},v._img=x},loadFromBlob:function(v){var x=this,w=x._img;x._blob=v,x.type=v.type,w.src=c.createObjectURL(v.getSource()),x.owner.once("load",function(){c.revokeObjectURL(w.src)})},resize:function(v,x){var w=this._canvas||(this._canvas=document.createElement("canvas"));this._resize(this._img,w,v,x),this._blob=null,this.modified=!0,this.owner.trigger("complete","resize")},crop:function(v,x,w,_,b){var E=this._canvas||(this._canvas=document.createElement("canvas")),I=this.options,O=this._img,N=O.naturalWidth,A=O.naturalHeight,z=this.getOrientation();b=b||1,E.width=w,E.height=_,I.preserveHeaders||this._rotate2Orientaion(E,z),this._renderImageToCanvas(E,O,-v,-x,N*b,A*b),this._blob=null,this.modified=!0,this.owner.trigger("complete","crop")},getAsBlob:function(v){var x=this._blob,w=this.options,_;if(v=v||this.type,this.modified||this.type!==v){if(_=this._canvas,v==="image/jpeg"){if(x=c.canvasToDataUrl(_,v,w.quality),w.preserveHeaders&&this._metas&&this._metas.imageHead)return x=c.dataURL2ArrayBuffer(x),x=c.updateImageHead(x,this._metas.imageHead),x=c.arrayBufferToBlob(x,v),x}else x=c.canvasToDataUrl(_,v);x=c.dataURL2Blob(x)}return x},getAsDataUrl:function(v){var x=this.options;return v=v||this.type,v==="image/jpeg"?c.canvasToDataUrl(this._canvas,v,x.quality):this._canvas.toDataURL(v)},getOrientation:function(){return this._metas&&this._metas.exif&&this._metas.exif.get("Orientation")||1},info:function(v){return v?(this._info=v,this):this._info},meta:function(v){return v?(this._metas=v,this):this._metas},destroy:function(){var v=this._canvas;this._img.onload=null,v&&(v.getContext("2d").clearRect(0,0,v.width,v.height),v.width=v.height=0,this._canvas=null),this._img.src=l,this._img=this._blob=null},_resize:function(v,x,w,_){var b=this.options,E=v.width,I=v.height,O=this.getOrientation(),N,A,z,G,V;~[5,6,7,8].indexOf(O)&&(w^=_,_^=w,w^=_),N=Math[b.crop?"max":"min"](w/E,_/I),b.allowMagnify||(N=Math.min(1,N)),A=E*N,z=I*N,b.crop?(x.width=w,x.height=_):(x.width=A,x.height=z),G=(x.width-A)/2,V=(x.height-z)/2,b.preserveHeaders||this._rotate2Orientaion(x,O),this._renderImageToCanvas(x,v,G,V,A,z)},_rotate2Orientaion:function(v,x){var w=v.width,_=v.height,b=v.getContext("2d");switch(x){case 5:case 6:case 7:case 8:v.width=_,v.height=w;break}switch(x){case 2:b.translate(w,0),b.scale(-1,1);break;case 3:b.translate(w,_),b.rotate(Math.PI);break;case 4:b.translate(0,_),b.scale(1,-1);break;case 5:b.rotate(.5*Math.PI),b.scale(1,-1);break;case 6:b.rotate(.5*Math.PI),b.translate(0,-_);break;case 7:b.rotate(.5*Math.PI),b.translate(w,-_),b.scale(-1,1);break;case 8:b.rotate(-.5*Math.PI),b.translate(-w,0);break}},_renderImageToCanvas:function(){if(!o.os.ios)return function(w){var _=o.slice(arguments,1),b=w.getContext("2d");b.drawImage.apply(b,_)};function v(w,_,b){var E=document.createElement("canvas"),I=E.getContext("2d"),O=0,N=b,A=b,z,G,V;for(E.width=1,E.height=b,I.drawImage(w,0,0),z=I.getImageData(0,0,1,b).data;A>O;)G=z[(A-1)*4+3],G===0?N=A:O=A,A=N+O>>1;return V=A/b,V===0?1:V}if(o.os.ios>=7)return function(w,_,b,E,I,O){var N=_.naturalWidth,A=_.naturalHeight,z=v(_,N,A);return w.getContext("2d").drawImage(_,0,0,N*z,A*z,b,E,I,O)};function x(w){var _=w.naturalWidth,b=w.naturalHeight,E,I;return _*b>1024*1024?(E=document.createElement("canvas"),E.width=E.height=1,I=E.getContext("2d"),I.drawImage(w,-_+1,0),I.getImageData(0,0,1,1).data[3]===0):!1}return function(w,_,b,E,I,O){var N=_.naturalWidth,A=_.naturalHeight,z=w.getContext("2d"),G=x(_),V=this.type==="image/jpeg",ne=1024,W=0,B=0,q,D,F,re,le,fe,me;for(G&&(N/=2,A/=2),z.save(),q=document.createElement("canvas"),q.width=q.height=ne,D=q.getContext("2d"),F=V?v(_,N,A):1,re=Math.ceil(ne*I/N),le=Math.ceil(ne*O/A/F);W<A;){for(fe=0,me=0;fe<N;)D.clearRect(0,0,ne,ne),D.drawImage(_,-fe,-W),z.drawImage(q,0,0,ne,ne,b+me,E+B,re,le),fe+=ne,me+=re;W+=ne,B+=le}z.restore(),q=D=null}}()})}),e("runtime/html5/transport",["base","runtime/html5/runtime"],function(o,s){var c=o.noop,l=o.$;return s.register("Transport",{init:function(){this._status=0,this._response=null},send:function(){var v=this.owner,x=this.options,w=this._initAjax(),_=v._blob,b=x.server,E,I,O;x.sendAsBinary?(b+=(/\?/.test(b)?"&":"?")+l.param(v._formData),I=_.getSource()):(E=new FormData,l.each(v._formData,function(N,A){E.append(N,A)}),E.append(x.fileVal,_.getSource(),x.filename||v._formData.name||"")),x.withCredentials&&"withCredentials"in w?(w.open(x.method,b,!0),w.withCredentials=!0):w.open(x.method,b),this._setRequestHeader(w,x.headers),I?(w.overrideMimeType&&w.overrideMimeType("application/octet-stream"),o.os.android?(O=new FileReader,O.onload=function(){w.send(this.result),O=O.onload=null},O.readAsArrayBuffer(I)):w.send(I)):w.send(E)},getResponse:function(){return this._response},getResponseAsJson:function(){return this._parseJson(this._response)},getStatus:function(){return this._status},abort:function(){var v=this._xhr;v&&(v.upload.onprogress=c,v.onreadystatechange=c,v.abort(),this._xhr=v=null)},destroy:function(){this.abort()},_initAjax:function(){var v=this,x=new XMLHttpRequest,w=this.options;return w.withCredentials&&!("withCredentials"in x)&&typeof XDomainRequest!="undefined"&&(x=new XDomainRequest),x.upload.onprogress=function(_){var b=0;return _.lengthComputable&&(b=_.loaded/_.total),v.trigger("progress",b)},x.onreadystatechange=function(){if(x.readyState===4)return x.upload.onprogress=c,x.onreadystatechange=c,v._xhr=null,v._status=x.status,x.status>=200&&x.status<300?(v._response=x.responseText,v.trigger("load")):x.status>=500&&x.status<600?(v._response=x.responseText,v.trigger("error","server")):v.trigger("error",v._status?"http":"abort")},v._xhr=x,x},_setRequestHeader:function(v,x){l.each(x,function(w,_){v.setRequestHeader(w,_)})},_parseJson:function(v){var x;try{x=JSON.parse(v)}catch(w){x={}}return x}})}),e("runtime/html5/md5",["runtime/html5/runtime"],function(o){var s=function(ne,W){return ne+W&4294967295},c=function(ne,W,B,q,D,F){return W=s(s(W,ne),s(q,F)),s(W<<D|W>>>32-D,B)},l=function(ne,W,B,q,D,F,re){return c(W&B|~W&q,ne,W,D,F,re)},v=function(ne,W,B,q,D,F,re){return c(W&q|B&~q,ne,W,D,F,re)},x=function(ne,W,B,q,D,F,re){return c(W^B^q,ne,W,D,F,re)},w=function(ne,W,B,q,D,F,re){return c(B^(W|~q),ne,W,D,F,re)},_=function(ne,W){var B=ne[0],q=ne[1],D=ne[2],F=ne[3];B=l(B,q,D,F,W[0],7,-680876936),F=l(F,B,q,D,W[1],12,-389564586),D=l(D,F,B,q,W[2],17,606105819),q=l(q,D,F,B,W[3],22,-1044525330),B=l(B,q,D,F,W[4],7,-176418897),F=l(F,B,q,D,W[5],12,1200080426),D=l(D,F,B,q,W[6],17,-1473231341),q=l(q,D,F,B,W[7],22,-45705983),B=l(B,q,D,F,W[8],7,1770035416),F=l(F,B,q,D,W[9],12,-1958414417),D=l(D,F,B,q,W[10],17,-42063),q=l(q,D,F,B,W[11],22,-1990404162),B=l(B,q,D,F,W[12],7,1804603682),F=l(F,B,q,D,W[13],12,-40341101),D=l(D,F,B,q,W[14],17,-1502002290),q=l(q,D,F,B,W[15],22,1236535329),B=v(B,q,D,F,W[1],5,-165796510),F=v(F,B,q,D,W[6],9,-1069501632),D=v(D,F,B,q,W[11],14,643717713),q=v(q,D,F,B,W[0],20,-373897302),B=v(B,q,D,F,W[5],5,-701558691),F=v(F,B,q,D,W[10],9,38016083),D=v(D,F,B,q,W[15],14,-660478335),q=v(q,D,F,B,W[4],20,-405537848),B=v(B,q,D,F,W[9],5,568446438),F=v(F,B,q,D,W[14],9,-1019803690),D=v(D,F,B,q,W[3],14,-187363961),q=v(q,D,F,B,W[8],20,1163531501),B=v(B,q,D,F,W[13],5,-1444681467),F=v(F,B,q,D,W[2],9,-51403784),D=v(D,F,B,q,W[7],14,1735328473),q=v(q,D,F,B,W[12],20,-1926607734),B=x(B,q,D,F,W[5],4,-378558),F=x(F,B,q,D,W[8],11,-2022574463),D=x(D,F,B,q,W[11],16,1839030562),q=x(q,D,F,B,W[14],23,-35309556),B=x(B,q,D,F,W[1],4,-1530992060),F=x(F,B,q,D,W[4],11,1272893353),D=x(D,F,B,q,W[7],16,-155497632),q=x(q,D,F,B,W[10],23,-1094730640),B=x(B,q,D,F,W[13],4,681279174),F=x(F,B,q,D,W[0],11,-358537222),D=x(D,F,B,q,W[3],16,-722521979),q=x(q,D,F,B,W[6],23,76029189),B=x(B,q,D,F,W[9],4,-640364487),F=x(F,B,q,D,W[12],11,-421815835),D=x(D,F,B,q,W[15],16,530742520),q=x(q,D,F,B,W[2],23,-995338651),B=w(B,q,D,F,W[0],6,-198630844),F=w(F,B,q,D,W[7],10,1126891415),D=w(D,F,B,q,W[14],15,-1416354905),q=w(q,D,F,B,W[5],21,-57434055),B=w(B,q,D,F,W[12],6,1700485571),F=w(F,B,q,D,W[3],10,-1894986606),D=w(D,F,B,q,W[10],15,-1051523),q=w(q,D,F,B,W[1],21,-2054922799),B=w(B,q,D,F,W[8],6,1873313359),F=w(F,B,q,D,W[15],10,-30611744),D=w(D,F,B,q,W[6],15,-1560198380),q=w(q,D,F,B,W[13],21,1309151649),B=w(B,q,D,F,W[4],6,-145523070),F=w(F,B,q,D,W[11],10,-1120210379),D=w(D,F,B,q,W[2],15,718787259),q=w(q,D,F,B,W[9],21,-343485551),ne[0]=s(B,ne[0]),ne[1]=s(q,ne[1]),ne[2]=s(D,ne[2]),ne[3]=s(F,ne[3])},b=function(ne){var W=[],B;for(B=0;B<64;B+=4)W[B>>2]=ne.charCodeAt(B)+(ne.charCodeAt(B+1)<<8)+(ne.charCodeAt(B+2)<<16)+(ne.charCodeAt(B+3)<<24);return W},E=function(ne){var W=[],B;for(B=0;B<64;B+=4)W[B>>2]=ne[B]+(ne[B+1]<<8)+(ne[B+2]<<16)+(ne[B+3]<<24);return W},I=function(ne){var W=ne.length,B=[1732584193,-271733879,-1732584194,271733878],q,D,F,re,le,fe;for(q=64;q<=W;q+=64)_(B,b(ne.substring(q-64,q)));for(ne=ne.substring(q-64),D=ne.length,F=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],q=0;q<D;q+=1)F[q>>2]|=ne.charCodeAt(q)<<(q%4<<3);if(F[q>>2]|=128<<(q%4<<3),q>55)for(_(B,F),q=0;q<16;q+=1)F[q]=0;return re=W*8,re=re.toString(16).match(/(.*?)(.{0,8})$/),le=parseInt(re[2],16),fe=parseInt(re[1],16)||0,F[14]=le,F[15]=fe,_(B,F),B},O=function(ne){var W=ne.length,B=[1732584193,-271733879,-1732584194,271733878],q,D,F,re,le,fe;for(q=64;q<=W;q+=64)_(B,E(ne.subarray(q-64,q)));for(ne=q-64<W?ne.subarray(q-64):new Uint8Array(0),D=ne.length,F=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],q=0;q<D;q+=1)F[q>>2]|=ne[q]<<(q%4<<3);if(F[q>>2]|=128<<(q%4<<3),q>55)for(_(B,F),q=0;q<16;q+=1)F[q]=0;return re=W*8,re=re.toString(16).match(/(.*?)(.{0,8})$/),le=parseInt(re[2],16),fe=parseInt(re[1],16)||0,F[14]=le,F[15]=fe,_(B,F),B},N=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],A=function(ne){var W="",B;for(B=0;B<4;B+=1)W+=N[ne>>B*8+4&15]+N[ne>>B*8&15];return W},z=function(ne){var W;for(W=0;W<ne.length;W+=1)ne[W]=A(ne[W]);return ne.join("")},G=function(ne){return z(I(ne))},V=function(){this.reset()};return G("hello")!=="5d41402abc4b2a76b9719d911017c592"&&(s=function(ne,W){var B=(ne&65535)+(W&65535),q=(ne>>16)+(W>>16)+(B>>16);return q<<16|B&65535}),V.prototype.append=function(ne){return/[\u0080-\uFFFF]/.test(ne)&&(ne=unescape(encodeURIComponent(ne))),this.appendBinary(ne),this},V.prototype.appendBinary=function(ne){this._buff+=ne,this._length+=ne.length;var W=this._buff.length,B;for(B=64;B<=W;B+=64)_(this._state,b(this._buff.substring(B-64,B)));return this._buff=this._buff.substr(B-64),this},V.prototype.end=function(ne){var W=this._buff,B=W.length,q,D=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],F;for(q=0;q<B;q+=1)D[q>>2]|=W.charCodeAt(q)<<(q%4<<3);return this._finish(D,B),F=ne?this._state:z(this._state),this.reset(),F},V.prototype._finish=function(ne,W){var B=W,q,D,F;if(ne[B>>2]|=128<<(B%4<<3),B>55)for(_(this._state,ne),B=0;B<16;B+=1)ne[B]=0;q=this._length*8,q=q.toString(16).match(/(.*?)(.{0,8})$/),D=parseInt(q[2],16),F=parseInt(q[1],16)||0,ne[14]=D,ne[15]=F,_(this._state,ne)},V.prototype.reset=function(){return this._buff="",this._length=0,this._state=[1732584193,-271733879,-1732584194,271733878],this},V.prototype.destroy=function(){delete this._state,delete this._buff,delete this._length},V.hash=function(ne,W){/[\u0080-\uFFFF]/.test(ne)&&(ne=unescape(encodeURIComponent(ne)));var B=I(ne);return W?B:z(B)},V.hashBinary=function(ne,W){var B=I(ne);return W?B:z(B)},V.ArrayBuffer=function(){this.reset()},V.ArrayBuffer.prototype.append=function(ne){var W=this._concatArrayBuffer(this._buff,ne),B=W.length,q;for(this._length+=ne.byteLength,q=64;q<=B;q+=64)_(this._state,E(W.subarray(q-64,q)));return this._buff=q-64<B?W.subarray(q-64):new Uint8Array(0),this},V.ArrayBuffer.prototype.end=function(ne){var W=this._buff,B=W.length,q=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],D,F;for(D=0;D<B;D+=1)q[D>>2]|=W[D]<<(D%4<<3);return this._finish(q,B),F=ne?this._state:z(this._state),this.reset(),F},V.ArrayBuffer.prototype._finish=V.prototype._finish,V.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._state=[1732584193,-271733879,-1732584194,271733878],this},V.ArrayBuffer.prototype.destroy=V.prototype.destroy,V.ArrayBuffer.prototype._concatArrayBuffer=function(ne,W){var B=ne.length,q=new Uint8Array(B+W.byteLength);return q.set(ne),q.set(new Uint8Array(W),B),q},V.ArrayBuffer.hash=function(ne,W){var B=O(new Uint8Array(ne));return W?B:z(B)},o.register("Md5",{init:function(){},loadFromBlob:function(ne){var W=ne.getSource(),B=2*1024*1024,q=Math.ceil(W.size/B),D=0,F=this.owner,re=new V.ArrayBuffer,le=this,fe=W.mozSlice||W.webkitSlice||W.slice,me,ye;ye=new FileReader,me=function(){var Te,ke;Te=D*B,ke=Math.min(Te+B,W.size),ye.onload=function(Le){re.append(Le.target.result),F.trigger("progress",{total:ne.size,loaded:ke})},ye.onloadend=function(){ye.onloadend=ye.onload=null,++D<q?setTimeout(me,1):setTimeout(function(){F.trigger("load"),le.result=re.end(),me=ne=W=re=null,F.trigger("complete")},50)},ye.readAsArrayBuffer(fe.call(W,Te,ke))},me()},getResult:function(){return this.result}})}),e("runtime/flash/runtime",["base","runtime/runtime","runtime/compbase"],function(o,s,c){var l=o.$,v="flash",x={};function w(){var b;try{b=navigator.plugins["Shockwave Flash"],b=b.description}catch(E){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version")}catch(I){b="0.0"}}return b=b.match(/\d+/g),parseFloat(b[0]+"."+b[1],10)}function _(){var b={},E={},I=this.destroy,O=this,N=o.guid("webuploader_");s.apply(O,arguments),O.type=v,O.exec=function(z,G){var V=this,ne=V.uid,W=o.slice(arguments,2),B;return E[ne]=V,x[z]&&(b[ne]||(b[ne]=new x[z](V,O)),B=b[ne],B[G])?B[G].apply(B,W):O.flashExec.apply(V,arguments)};function A(z,G){var V=z.type||z,ne,W;ne=V.split("::"),W=ne[0],V=ne[1],V==="Ready"&&W===O.uid?O.trigger("ready"):E[W]&&E[W].trigger(V.toLowerCase(),z,G)}t[N]=function(){var z=arguments;setTimeout(function(){A.apply(null,z)},1)},this.jsreciver=N,this.destroy=function(){return I&&I.apply(this,arguments)},this.flashExec=function(z,G){var V=O.getFlash(),ne=o.slice(arguments,2);return V.exec(this.uid,z,G,ne)}}return o.inherits(s,{constructor:_,init:function(){var b=this.getContainer(),E=this.options,I;b.css({position:"absolute",top:"-8px",left:"-8px",width:"9px",height:"9px",overflow:"hidden"}),I='<object id="'+this.uid+'" type="application/x-shockwave-flash" data="'+E.swf+'" ',o.browser.ie&&(I+='classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" '),I+='width="100%" height="100%" style="outline:0"><param name="movie" value="'+E.swf+'" /><param name="flashvars" value="uid='+this.uid+"&jsreciver="+this.jsreciver+'" /><param name="wmode" value="transparent" /><param name="allowscriptaccess" value="always" /></object>',b.html(I)},getFlash:function(){return this._flash?this._flash:(this._flash=l("#"+this.uid).get(0),this._flash)}}),_.register=function(b,E){return E=x[b]=o.inherits(c,l.extend({flashExec:function(){var I=this.owner,O=this.getRuntime();return O.flashExec.apply(I,arguments)}},E)),E},w()>=11.4&&s.addRuntime(v,_),_}),e("runtime/flash/filepicker",["base","runtime/flash/runtime"],function(o,s){var c=o.$;return s.register("FilePicker",{init:function(l){var v=c.extend({},l),x,w;for(x=v.accept&&v.accept.length,w=0;w<x;w++)v.accept[w].title||(v.accept[w].title="Files");delete v.button,delete v.id,delete v.container,this.flashExec("FilePicker","init",v)},destroy:function(){this.flashExec("FilePicker","destroy")}})}),e("runtime/flash/image",["runtime/flash/runtime"],function(o){return o.register("Image",{loadFromBlob:function(s){var c=this.owner;c.info()&&this.flashExec("Image","info",c.info()),c.meta()&&this.flashExec("Image","meta",c.meta()),this.flashExec("Image","loadFromBlob",s.uid)}})}),e("runtime/flash/transport",["base","runtime/flash/runtime","runtime/client"],function(o,s,c){var l=o.$;return s.register("Transport",{init:function(){this._status=0,this._response=null,this._responseJson=null},send:function(){var v=this.owner,x=this.options,w=this._initAjax(),_=v._blob,b=x.server,E;w.connectRuntime(_.ruid),x.sendAsBinary?(b+=(/\?/.test(b)?"&":"?")+l.param(v._formData),E=_.uid):(l.each(v._formData,function(I,O){w.exec("append",I,O)}),w.exec("appendBlob",x.fileVal,_.uid,x.filename||v._formData.name||"")),this._setRequestHeader(w,x.headers),w.exec("send",{method:x.method,url:b,forceURLStream:x.forceURLStream,mimeType:"application/octet-stream"},E)},getStatus:function(){return this._status},getResponse:function(){return this._response||""},getResponseAsJson:function(){return this._responseJson},abort:function(){var v=this._xhr;v&&(v.exec("abort"),v.destroy(),this._xhr=v=null)},destroy:function(){this.abort()},_initAjax:function(){var v=this,x=new c("XMLHttpRequest");return x.on("uploadprogress progress",function(w){var _=w.loaded/w.total;return _=Math.min(1,Math.max(0,_)),v.trigger("progress",_)}),x.on("load",function(){var w=x.exec("getStatus"),_=!1,b="",E;return x.off(),v._xhr=null,w>=200&&w<300?_=!0:w>=500&&w<600?(_=!0,b="server"):b="http",_&&(v._response=x.exec("getResponse"),v._response=decodeURIComponent(v._response),E=function(I){try{return t.JSON&&t.JSON.parse?JSON.parse(I):new Function("return "+I).call()}catch(O){return{}}},v._responseJson=v._response?E(v._response):{}),x.destroy(),x=null,b?v.trigger("error",b):v.trigger("load")}),x.on("error",function(){x.off(),v._xhr=null,v.trigger("error","http")}),v._xhr=x,x},_setRequestHeader:function(v,x){l.each(x,function(w,_){v.exec("setRequestHeader",w,_)})}})}),e("runtime/flash/blob",["runtime/flash/runtime","lib/blob"],function(o,s){return o.register("Blob",{slice:function(c,l){var v=this.flashExec("Blob","slice",c,l);return new s(this.getRuid(),v)}})}),e("runtime/flash/md5",["runtime/flash/runtime"],function(o){return o.register("Md5",{init:function(){},loadFromBlob:function(s){return this.flashExec("Md5","loadFromBlob",s.uid)}})}),e("preset/all",["base","widgets/filednd","widgets/filepaste","widgets/filepicker","widgets/image","widgets/queue","widgets/runtime","widgets/upload","widgets/validator","widgets/md5","runtime/html5/blob","runtime/html5/dnd","runtime/html5/filepaste","runtime/html5/filepicker","runtime/html5/imagemeta/exif","runtime/html5/androidpatch","runtime/html5/image","runtime/html5/transport","runtime/html5/md5","runtime/flash/filepicker","runtime/flash/image","runtime/flash/transport","runtime/flash/blob","runtime/flash/md5"],function(o){return o}),e("widgets/log",["base","uploader","widgets/widget"],function(o,s){var c=o.$,l=" http://static.tieba.baidu.com/tb/pms/img/st.gif??",v=(location.hostname||location.host||"protected").toLowerCase(),x=v&&/baidu/i.exec(v),w;if(!x)return;w={dv:3,master:"webuploader",online:/test/.exec(v)?0:1,module:"",product:v,type:0};function _(b){var E=c.extend({},w,b),I=l.replace(/^(.*)\?/,"$1"+c.param(E)),O=new Image;O.src=I}return s.register({name:"log",init:function(){var b=this.owner,E=0,I=0;b.on("error",function(O){_({type:2,c_error_code:O})}).on("uploadError",function(O,N){_({type:2,c_error_code:"UPLOAD_ERROR",c_reason:""+N})}).on("uploadComplete",function(O){E++,I+=O.size}).on("uploadFinished",function(){_({c_count:E,c_size:I}),E=I=0}),_({c_usage:1})}})}),e("webuploader",["preset/all","widgets/log"],function(o){return o});var n=r;return n("webuploader")});function bind(t,e){return function(){return t.apply(e,arguments)}}const{toString}=Object.prototype,{getPrototypeOf}=Object,kindOf=(t=>e=>{const r=toString.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=t=>(t=t.toLowerCase(),e=>kindOf(e)===t),typeOfTest=t=>e=>typeof e===t,{isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(t){return t!==null&&!isUndefined(t)&&t.constructor!==null&&!isUndefined(t.constructor)&&isFunction(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(t){let e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&isArrayBuffer(t.buffer),e}const isString=typeOfTest("string"),isFunction=typeOfTest("function"),isNumber=typeOfTest("number"),isObject=t=>t!==null&&typeof t=="object",isBoolean=t=>t===!0||t===!1,isPlainObject=t=>{if(kindOf(t)!=="object")return!1;const e=getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=t=>isObject(t)&&isFunction(t.pipe),isFormData=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||isFunction(t.append)&&((e=kindOf(t))==="formdata"||e==="object"&&isFunction(t.toString)&&t.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),trim=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t=="undefined")return;let n,o;if(typeof t!="object"&&(t=[t]),isArray(t))for(n=0,o=t.length;n<o;n++)e.call(null,t[n],n,t);else{const s=r?Object.getOwnPropertyNames(t):Object.keys(t),c=s.length;let l;for(n=0;n<c;n++)l=s[n],e.call(null,t[l],l,t)}}function findKey(t,e){e=e.toLowerCase();const r=Object.keys(t);let n=r.length,o;for(;n-- >0;)if(o=r[n],e===o.toLowerCase())return o;return null}const _global=(()=>typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global)(),isContextDefined=t=>!isUndefined(t)&&t!==_global;function merge(){const{caseless:t}=isContextDefined(this)&&this||{},e={},r=(n,o)=>{const s=t&&findKey(e,o)||o;isPlainObject(e[s])&&isPlainObject(n)?e[s]=merge(e[s],n):isPlainObject(n)?e[s]=merge({},n):isArray(n)?e[s]=n.slice():e[s]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&forEach(arguments[n],r);return e}const extend=(t,e,r,{allOwnKeys:n}={})=>(forEach(e,(o,s)=>{r&&isFunction(o)?t[s]=bind(o,r):t[s]=o},{allOwnKeys:n}),t),stripBOM=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),inherits=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},toFlatObject=(t,e,r,n)=>{let o,s,c;const l={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),s=o.length;s-- >0;)c=o[s],(!n||n(c,t,e))&&!l[c]&&(e[c]=t[c],l[c]=!0);t=r!==!1&&getPrototypeOf(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},endsWith=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},toArray=t=>{if(!t)return null;if(isArray(t))return t;let e=t.length;if(!isNumber(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},isTypedArray=(t=>e=>t&&e instanceof t)(typeof Uint8Array!="undefined"&&getPrototypeOf(Uint8Array)),forEachEntry=(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let o;for(;(o=n.next())&&!o.done;){const s=o.value;e.call(t,s[0],s[1])}},matchAll=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),hasOwnProperty=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};forEach(r,(o,s)=>{e(o,s,t)!==!1&&(n[s]=o)}),Object.defineProperties(t,n)},freezeMethods=t=>{reduceDescriptors(t,(e,r)=>{if(isFunction(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(!!isFunction(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet=(t,e)=>{const r={},n=o=>{o.forEach(s=>{r[s]=!0})};return isArray(t)?n(t):n(String(t).split(e)),r},noop=()=>{},toFiniteNumber=(t,e)=>(t=+t,Number.isFinite(t)?t:e),ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(t=16,e=ALPHABET.ALPHA_DIGIT)=>{let r="";const{length:n}=e;for(;t--;)r+=e[Math.random()*n|0];return r};function isSpecCompliantForm(t){return!!(t&&isFunction(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const toJSONObject=t=>{const e=new Array(10),r=(n,o)=>{if(isObject(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[o]=n;const s=isArray(n)?[]:{};return forEach(n,(c,l)=>{const v=r(c,o+1);!isUndefined(v)&&(s[l]=v)}),e[o]=void 0,s}}return n};return r(t,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=t=>t&&(isObject(t)||isFunction(t))&&isFunction(t.then)&&isFunction(t.catch),utils={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber,isBoolean,isObject,isPlainObject,isUndefined,isDate,isFile,isBlob,isRegExp,isFunction,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge,extend,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop,toFiniteNumber,findKey,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable};function AxiosError(t,e,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}utils.inherits(AxiosError,Error,{toJSON:function t(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const prototype$1=AxiosError.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{descriptors[t]={value:t}});Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError.from=(t,e,r,n,o,s)=>{const c=Object.create(prototype$1);return utils.toFlatObject(t,c,function(v){return v!==Error.prototype},l=>l!=="isAxiosError"),AxiosError.call(c,t.message,e,r,n,o),c.cause=t,c.name=t.name,s&&Object.assign(c,s),c};const httpAdapter=null;function isVisitable(t){return utils.isPlainObject(t)||utils.isArray(t)}function removeBrackets(t){return utils.endsWith(t,"[]")?t.slice(0,-2):t}function renderKey(t,e,r){return t?t.concat(e).map(function(o,s){return o=removeBrackets(o),!r&&s?"["+o+"]":o}).join(r?".":""):e}function isFlatArray(t){return utils.isArray(t)&&!t.some(isVisitable)}const predicates=utils.toFlatObject(utils,{},null,function t(e){return/^is[A-Z]/.test(e)});function toFormData(t,e,r){if(!utils.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=utils.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(O,N){return!utils.isUndefined(N[O])});const n=r.metaTokens,o=r.visitor||w,s=r.dots,c=r.indexes,v=(r.Blob||typeof Blob!="undefined"&&Blob)&&utils.isSpecCompliantForm(e);if(!utils.isFunction(o))throw new TypeError("visitor must be a function");function x(I){if(I===null)return"";if(utils.isDate(I))return I.toISOString();if(!v&&utils.isBlob(I))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils.isArrayBuffer(I)||utils.isTypedArray(I)?v&&typeof Blob=="function"?new Blob([I]):Buffer.from(I):I}function w(I,O,N){let A=I;if(I&&!N&&typeof I=="object"){if(utils.endsWith(O,"{}"))O=n?O:O.slice(0,-2),I=JSON.stringify(I);else if(utils.isArray(I)&&isFlatArray(I)||(utils.isFileList(I)||utils.endsWith(O,"[]"))&&(A=utils.toArray(I)))return O=removeBrackets(O),A.forEach(function(G,V){!(utils.isUndefined(G)||G===null)&&e.append(c===!0?renderKey([O],V,s):c===null?O:O+"[]",x(G))}),!1}return isVisitable(I)?!0:(e.append(renderKey(N,O,s),x(I)),!1)}const _=[],b=Object.assign(predicates,{defaultVisitor:w,convertValue:x,isVisitable});function E(I,O){if(!utils.isUndefined(I)){if(_.indexOf(I)!==-1)throw Error("Circular reference detected in "+O.join("."));_.push(I),utils.forEach(I,function(A,z){(!(utils.isUndefined(A)||A===null)&&o.call(e,A,utils.isString(z)?z.trim():z,O,b))===!0&&E(A,O?O.concat(z):[z])}),_.pop()}}if(!utils.isObject(t))throw new TypeError("data must be an object");return E(t),e}function encode$1(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function AxiosURLSearchParams(t,e){this._pairs=[],t&&toFormData(t,this,e)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function t(e,r){this._pairs.push([e,r])};prototype.toString=function t(e){const r=e?function(n){return e.call(this,n,encode$1)}:encode$1;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function encode(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(t,e,r){if(!e)return t;const n=r&&r.encode||encode,o=r&&r.serialize;let s;if(o?s=o(e,r):s=utils.isURLSearchParams(e)?e.toString():new AxiosURLSearchParams(e,r).toString(n),s){const c=t.indexOf("#");c!==-1&&(t=t.slice(0,c)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class InterceptorManager{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){utils.forEach(this.handlers,function(n){n!==null&&e(n)})}}const InterceptorManager$1=InterceptorManager,transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams!="undefined"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData!="undefined"?FormData:null,Blob$1=typeof Blob!="undefined"?Blob:null,isStandardBrowserEnv=(()=>{let t;return typeof navigator!="undefined"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"})(),isStandardBrowserWebWorkerEnv=(()=>typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),platform={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},isStandardBrowserEnv,isStandardBrowserWebWorkerEnv,protocols:["http","https","file","blob","url","data"]};function toURLEncodedForm(t,e){return toFormData(t,new platform.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,s){return platform.isNode&&utils.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function parsePropPath(t){return utils.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function arrayToObject(t){const e={},r=Object.keys(t);let n;const o=r.length;let s;for(n=0;n<o;n++)s=r[n],e[s]=t[s];return e}function formDataToJSON(t){function e(r,n,o,s){let c=r[s++];const l=Number.isFinite(+c),v=s>=r.length;return c=!c&&utils.isArray(o)?o.length:c,v?(utils.hasOwnProp(o,c)?o[c]=[o[c],n]:o[c]=n,!l):((!o[c]||!utils.isObject(o[c]))&&(o[c]=[]),e(r,n,o[c],s)&&utils.isArray(o[c])&&(o[c]=arrayToObject(o[c])),!l)}if(utils.isFormData(t)&&utils.isFunction(t.entries)){const r={};return utils.forEachEntry(t,(n,o)=>{e(parsePropPath(n),o,r,0)}),r}return null}const DEFAULT_CONTENT_TYPE={"Content-Type":void 0};function stringifySafely(t,e,r){if(utils.isString(t))try{return(e||JSON.parse)(t),utils.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const defaults={transitional:transitionalDefaults,adapter:["xhr","http"],transformRequest:[function t(e,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,s=utils.isObject(e);if(s&&utils.isHTMLForm(e)&&(e=new FormData(e)),utils.isFormData(e))return o&&o?JSON.stringify(formDataToJSON(e)):e;if(utils.isArrayBuffer(e)||utils.isBuffer(e)||utils.isStream(e)||utils.isFile(e)||utils.isBlob(e))return e;if(utils.isArrayBufferView(e))return e.buffer;if(utils.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let l;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(e,this.formSerializer).toString();if((l=utils.isFileList(e))||n.indexOf("multipart/form-data")>-1){const v=this.env&&this.env.FormData;return toFormData(l?{"files[]":e}:e,v&&new v,this.formSerializer)}}return s||o?(r.setContentType("application/json",!1),stringifySafely(e)):e}],transformResponse:[function t(e){const r=this.transitional||defaults.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(e&&utils.isString(e)&&(n&&!this.responseType||o)){const c=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(l){if(c)throw l.name==="SyntaxError"?AxiosError.from(l,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function t(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};utils.forEach(["delete","get","head"],function t(e){defaults.headers[e]={}});utils.forEach(["post","put","patch"],function t(e){defaults.headers[e]=utils.merge(DEFAULT_CONTENT_TYPE)});const defaults$1=defaults,ignoreDuplicateOf=utils.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=t=>{const e={};let r,n,o;return t&&t.split(`
  4695. `).forEach(function(c){o=c.indexOf(":"),r=c.substring(0,o).trim().toLowerCase(),n=c.substring(o+1).trim(),!(!r||e[r]&&ignoreDuplicateOf[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},$internals=Symbol("internals");function normalizeHeader(t){return t&&String(t).trim().toLowerCase()}function normalizeValue(t){return t===!1||t==null?t:utils.isArray(t)?t.map(normalizeValue):String(t)}function parseTokens(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}const isValidHeaderName=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function matchHeaderValue(t,e,r,n,o){if(utils.isFunction(n))return n.call(this,e,r);if(o&&(e=r),!!utils.isString(e)){if(utils.isString(n))return e.indexOf(n)!==-1;if(utils.isRegExp(n))return n.test(e)}}function formatHeader(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function buildAccessors(t,e){const r=utils.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(o,s,c){return this[n].call(this,e,o,s,c)},configurable:!0})})}class AxiosHeaders{constructor(e){e&&this.set(e)}set(e,r,n){const o=this;function s(l,v,x){const w=normalizeHeader(v);if(!w)throw new Error("header name must be a non-empty string");const _=utils.findKey(o,w);(!_||o[_]===void 0||x===!0||x===void 0&&o[_]!==!1)&&(o[_||v]=normalizeValue(l))}const c=(l,v)=>utils.forEach(l,(x,w)=>s(x,w,v));return utils.isPlainObject(e)||e instanceof this.constructor?c(e,r):utils.isString(e)&&(e=e.trim())&&!isValidHeaderName(e)?c(parseHeaders(e),r):e!=null&&s(r,e,n),this}get(e,r){if(e=normalizeHeader(e),e){const n=utils.findKey(this,e);if(n){const o=this[n];if(!r)return o;if(r===!0)return parseTokens(o);if(utils.isFunction(r))return r.call(this,o,n);if(utils.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=normalizeHeader(e),e){const n=utils.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||matchHeaderValue(this,this[n],n,r)))}return!1}delete(e,r){const n=this;let o=!1;function s(c){if(c=normalizeHeader(c),c){const l=utils.findKey(n,c);l&&(!r||matchHeaderValue(n,n[l],l,r))&&(delete n[l],o=!0)}}return utils.isArray(e)?e.forEach(s):s(e),o}clear(e){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const s=r[n];(!e||matchHeaderValue(this,this[s],s,e,!0))&&(delete this[s],o=!0)}return o}normalize(e){const r=this,n={};return utils.forEach(this,(o,s)=>{const c=utils.findKey(n,s);if(c){r[c]=normalizeValue(o),delete r[s];return}const l=e?formatHeader(s):String(s).trim();l!==s&&delete r[s],r[l]=normalizeValue(o),n[l]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return utils.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=e&&utils.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(`
  4696. `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const n=new this(e);return r.forEach(o=>n.set(o)),n}static accessor(e){const n=(this[$internals]=this[$internals]={accessors:{}}).accessors,o=this.prototype;function s(c){const l=normalizeHeader(c);n[l]||(buildAccessors(o,c),n[l]=!0)}return utils.isArray(e)?e.forEach(s):s(e),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils.freezeMethods(AxiosHeaders.prototype);utils.freezeMethods(AxiosHeaders);const AxiosHeaders$1=AxiosHeaders;function transformData(t,e){const r=this||defaults$1,n=e||r,o=AxiosHeaders$1.from(n.headers);let s=n.data;return utils.forEach(t,function(l){s=l.call(r,s,o.normalize(),e?e.status:void 0)}),o.normalize(),s}function isCancel(t){return!!(t&&t.__CANCEL__)}function CanceledError(t,e,r){AxiosError.call(this,t==null?"canceled":t,AxiosError.ERR_CANCELED,e,r),this.name="CanceledError"}utils.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new AxiosError("Request failed with status code "+r.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const cookies=platform.isStandardBrowserEnv?function t(){return{write:function(r,n,o,s,c,l){const v=[];v.push(r+"="+encodeURIComponent(n)),utils.isNumber(o)&&v.push("expires="+new Date(o).toGMTString()),utils.isString(s)&&v.push("path="+s),utils.isString(c)&&v.push("domain="+c),l===!0&&v.push("secure"),document.cookie=v.join("; ")},read:function(r){const n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function t(){return{write:function(){},read:function(){return null},remove:function(){}}}();function isAbsoluteURL(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function combineURLs(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function buildFullPath(t,e){return t&&!isAbsoluteURL(e)?combineURLs(t,e):e}const isURLSameOrigin=platform.isStandardBrowserEnv?function t(){const e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function o(s){let c=s;return e&&(r.setAttribute("href",c),c=r.href),r.setAttribute("href",c),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(c){const l=utils.isString(c)?o(c):c;return l.protocol===n.protocol&&l.host===n.host}}():function t(){return function(){return!0}}();function parseProtocol(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function speedometer(t,e){t=t||10;const r=new Array(t),n=new Array(t);let o=0,s=0,c;return e=e!==void 0?e:1e3,function(v){const x=Date.now(),w=n[s];c||(c=x),r[o]=v,n[o]=x;let _=s,b=0;for(;_!==o;)b+=r[_++],_=_%t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),x-c<e)return;const E=w&&x-w;return E?Math.round(b*1e3/E):void 0}}function progressEventReducer(t,e){let r=0;const n=speedometer(50,250);return o=>{const s=o.loaded,c=o.lengthComputable?o.total:void 0,l=s-r,v=n(l),x=s<=c;r=s;const w={loaded:s,total:c,progress:c?s/c:void 0,bytes:l,rate:v||void 0,estimated:v&&c&&x?(c-s)/v:void 0,event:o};w[e?"download":"upload"]=!0,t(w)}}const isXHRAdapterSupported=typeof XMLHttpRequest!="undefined",xhrAdapter=isXHRAdapterSupported&&function(t){return new Promise(function(r,n){let o=t.data;const s=AxiosHeaders$1.from(t.headers).normalize(),c=t.responseType;let l;function v(){t.cancelToken&&t.cancelToken.unsubscribe(l),t.signal&&t.signal.removeEventListener("abort",l)}utils.isFormData(o)&&(platform.isStandardBrowserEnv||platform.isStandardBrowserWebWorkerEnv?s.setContentType(!1):s.setContentType("multipart/form-data;",!1));let x=new XMLHttpRequest;if(t.auth){const E=t.auth.username||"",I=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";s.set("Authorization","Basic "+btoa(E+":"+I))}const w=buildFullPath(t.baseURL,t.url);x.open(t.method.toUpperCase(),buildURL(w,t.params,t.paramsSerializer),!0),x.timeout=t.timeout;function _(){if(!x)return;const E=AxiosHeaders$1.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),O={data:!c||c==="text"||c==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:E,config:t,request:x};settle(function(A){r(A),v()},function(A){n(A),v()},O),x=null}if("onloadend"in x?x.onloadend=_:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(_)},x.onabort=function(){!x||(n(new AxiosError("Request aborted",AxiosError.ECONNABORTED,t,x)),x=null)},x.onerror=function(){n(new AxiosError("Network Error",AxiosError.ERR_NETWORK,t,x)),x=null},x.ontimeout=function(){let I=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const O=t.transitional||transitionalDefaults;t.timeoutErrorMessage&&(I=t.timeoutErrorMessage),n(new AxiosError(I,O.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,t,x)),x=null},platform.isStandardBrowserEnv){const E=(t.withCredentials||isURLSameOrigin(w))&&t.xsrfCookieName&&cookies.read(t.xsrfCookieName);E&&s.set(t.xsrfHeaderName,E)}o===void 0&&s.setContentType(null),"setRequestHeader"in x&&utils.forEach(s.toJSON(),function(I,O){x.setRequestHeader(O,I)}),utils.isUndefined(t.withCredentials)||(x.withCredentials=!!t.withCredentials),c&&c!=="json"&&(x.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&x.addEventListener("progress",progressEventReducer(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&x.upload&&x.upload.addEventListener("progress",progressEventReducer(t.onUploadProgress)),(t.cancelToken||t.signal)&&(l=E=>{!x||(n(!E||E.type?new CanceledError(null,t,x):E),x.abort(),x=null)},t.cancelToken&&t.cancelToken.subscribe(l),t.signal&&(t.signal.aborted?l():t.signal.addEventListener("abort",l)));const b=parseProtocol(w);if(b&&platform.protocols.indexOf(b)===-1){n(new AxiosError("Unsupported protocol "+b+":",AxiosError.ERR_BAD_REQUEST,t));return}x.send(o||null)})},knownAdapters={http:httpAdapter,xhr:xhrAdapter};utils.forEach(knownAdapters,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(r){}Object.defineProperty(t,"adapterName",{value:e})}});const adapters={getAdapter:t=>{t=utils.isArray(t)?t:[t];const{length:e}=t;let r,n;for(let o=0;o<e&&(r=t[o],!(n=utils.isString(r)?knownAdapters[r.toLowerCase()]:r));o++);if(!n)throw n===!1?new AxiosError(`Adapter ${r} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(utils.hasOwnProp(knownAdapters,r)?`Adapter '${r}' is not available in the build`:`Unknown adapter '${r}'`);if(!utils.isFunction(n))throw new TypeError("adapter is not a function");return n},adapters:knownAdapters};function throwIfCancellationRequested(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new CanceledError(null,t)}function dispatchRequest(t){return throwIfCancellationRequested(t),t.headers=AxiosHeaders$1.from(t.headers),t.data=transformData.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(t.adapter||defaults$1.adapter)(t).then(function(n){return throwIfCancellationRequested(t),n.data=transformData.call(t,t.transformResponse,n),n.headers=AxiosHeaders$1.from(n.headers),n},function(n){return isCancel(n)||(throwIfCancellationRequested(t),n&&n.response&&(n.response.data=transformData.call(t,t.transformResponse,n.response),n.response.headers=AxiosHeaders$1.from(n.response.headers))),Promise.reject(n)})}const headersToObject=t=>t instanceof AxiosHeaders$1?t.toJSON():t;function mergeConfig(t,e){e=e||{};const r={};function n(x,w,_){return utils.isPlainObject(x)&&utils.isPlainObject(w)?utils.merge.call({caseless:_},x,w):utils.isPlainObject(w)?utils.merge({},w):utils.isArray(w)?w.slice():w}function o(x,w,_){if(utils.isUndefined(w)){if(!utils.isUndefined(x))return n(void 0,x,_)}else return n(x,w,_)}function s(x,w){if(!utils.isUndefined(w))return n(void 0,w)}function c(x,w){if(utils.isUndefined(w)){if(!utils.isUndefined(x))return n(void 0,x)}else return n(void 0,w)}function l(x,w,_){if(_ in e)return n(x,w);if(_ in t)return n(void 0,x)}const v={url:s,method:s,data:s,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:l,headers:(x,w)=>o(headersToObject(x),headersToObject(w),!0)};return utils.forEach(Object.keys(Object.assign({},t,e)),function(w){const _=v[w]||o,b=_(t[w],e[w],w);utils.isUndefined(b)&&_!==l||(r[w]=b)}),r}const VERSION="1.4.0",validators$1={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{validators$1[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const deprecatedWarnings={};validators$1.transitional=function t(e,r,n){function o(s,c){return"[Axios v"+VERSION+"] Transitional option '"+s+"'"+c+(n?". "+n:"")}return(s,c,l)=>{if(e===!1)throw new AxiosError(o(c," has been removed"+(r?" in "+r:"")),AxiosError.ERR_DEPRECATED);return r&&!deprecatedWarnings[c]&&(deprecatedWarnings[c]=!0,console.warn(o(c," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(s,c,l):!0}};function assertOptions(t,e,r){if(typeof t!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let o=n.length;for(;o-- >0;){const s=n[o],c=e[s];if(c){const l=t[s],v=l===void 0||c(l,s,t);if(v!==!0)throw new AxiosError("option "+s+" must be "+v,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new AxiosError("Unknown option "+s,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(e){this.defaults=e,this.interceptors={request:new InterceptorManager$1,response:new InterceptorManager$1}}request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=mergeConfig(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:s}=r;n!==void 0&&validator.assertOptions(n,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),o!=null&&(utils.isFunction(o)?r.paramsSerializer={serialize:o}:validator.assertOptions(o,{encode:validators.function,serialize:validators.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let c;c=s&&utils.merge(s.common,s[r.method]),c&&utils.forEach(["delete","get","head","post","put","patch","common"],I=>{delete s[I]}),r.headers=AxiosHeaders$1.concat(c,s);const l=[];let v=!0;this.interceptors.request.forEach(function(O){typeof O.runWhen=="function"&&O.runWhen(r)===!1||(v=v&&O.synchronous,l.unshift(O.fulfilled,O.rejected))});const x=[];this.interceptors.response.forEach(function(O){x.push(O.fulfilled,O.rejected)});let w,_=0,b;if(!v){const I=[dispatchRequest.bind(this),void 0];for(I.unshift.apply(I,l),I.push.apply(I,x),b=I.length,w=Promise.resolve(r);_<b;)w=w.then(I[_++],I[_++]);return w}b=l.length;let E=r;for(_=0;_<b;){const I=l[_++],O=l[_++];try{E=I(E)}catch(N){O.call(this,N);break}}try{w=dispatchRequest.call(this,E)}catch(I){return Promise.reject(I)}for(_=0,b=x.length;_<b;)w=w.then(x[_++],x[_++]);return w}getUri(e){e=mergeConfig(this.defaults,e);const r=buildFullPath(e.baseURL,e.url);return buildURL(r,e.params,e.paramsSerializer)}}utils.forEach(["delete","get","head","options"],function t(e){Axios.prototype[e]=function(r,n){return this.request(mergeConfig(n||{},{method:e,url:r,data:(n||{}).data}))}});utils.forEach(["post","put","patch"],function t(e){function r(n){return function(s,c,l){return this.request(mergeConfig(l||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:c}))}}Axios.prototype[e]=r(),Axios.prototype[e+"Form"]=r(!0)});const Axios$1=Axios;class CancelToken{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(s){r=s});const n=this;this.promise.then(o=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](o);n._listeners=null}),this.promise.then=o=>{let s;const c=new Promise(l=>{n.subscribe(l),s=l}).then(o);return c.cancel=function(){n.unsubscribe(s)},c},e(function(s,c,l){n.reason||(n.reason=new CanceledError(s,c,l),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}static source(){let e;return{token:new CancelToken(function(o){e=o}),cancel:e}}}const CancelToken$1=CancelToken;function spread(t){return function(r){return t.apply(null,r)}}function isAxiosError(t){return utils.isObject(t)&&t.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([t,e])=>{HttpStatusCode[e]=t});const HttpStatusCode$1=HttpStatusCode;function createInstance(t){const e=new Axios$1(t),r=bind(Axios$1.prototype.request,e);return utils.extend(r,Axios$1.prototype,e,{allOwnKeys:!0}),utils.extend(r,e,null,{allOwnKeys:!0}),r.create=function(o){return createInstance(mergeConfig(t,o))},r}const axios=createInstance(defaults$1);axios.Axios=Axios$1;axios.CanceledError=CanceledError;axios.CancelToken=CancelToken$1;axios.isCancel=isCancel;axios.VERSION=VERSION;axios.toFormData=toFormData;axios.AxiosError=AxiosError;axios.Cancel=axios.CanceledError;axios.all=function t(e){return Promise.all(e)};axios.spread=spread;axios.isAxiosError=isAxiosError;axios.mergeConfig=mergeConfig;axios.AxiosHeaders=AxiosHeaders$1;axios.formToJSON=t=>formDataToJSON(utils.isHTMLForm(t)?new FormData(t):t);axios.HttpStatusCode=HttpStatusCode$1;axios.default=axios;const axios$1=axios;axios$1.defaults.baseURL="";axios$1.defaults.headers.post["Content-Type"]="application/json";axios$1.defaults.withCredentials=!0;function getHostUrl(){let t=window.location.hostname;return t.substring(0,4)!="http"&&(t=document.location.protocol+"//"+t),t}let isReloadFile=!1;function setReloadFile(t){isReloadFile=t}let uploader;function createDwgFileUploader(t){let{create:e,baseUrl:r="",fileisExist:n,chunkisExist:o,chunked:s}=getUploadFileConfig()||{};r.substring(0,16)=="http://localhost"&&(r=getHostUrl()+r.substring(16));let{swf:c,server:l="",accept:v}=e||{};const{pick:x,serverURL:w,onError:_,onFileQueued:b,onCreateHashProgress:E,onProgress:I,onBeginUpload:O,onSecondTransmission:N,onUploadSuccess:A,onUploadFinished:z,accept:G}=t;v=G||v;let V="";return webuploader_fis.Uploader.register({"before-send":"beforeSend"},{beforeSend:ne=>{const W=webuploader_fis.Deferred();return axios$1.post(r+o,{chunk:ne.chunk,chunks:ne.chunks,fileName:ne.file.name,fileHash:V,size:ne.blob.size}).then(B=>{B.data.ret=="chunkAlreadyExist"?W.reject():W.resolve()},()=>{console.log("MxTip:post chunk is Exits error"),_&&_()}),W.promise()}}),uploader=webuploader_fis.create({preserveHeaders:!0,withCredentials:!0,auto:!1,swf:c,server:w||r+l,pick:x,resize:!1,duplicate:!1,threads:3,chunked:s,fileNumLimit:2,timeout:2601e3,accept:v||{extensions:"dwg,DWG,dxf,DXF,mxweb",mimeTypes:".dwg,.DwG,.dxf,.DXF,.mxweb"}}),uploader.on("fileQueued",ne=>{b&&b(ne)||uploader.md5File(ne).progress(W=>{E&&E(W)}).then(W=>{V=W,isReloadFile?(O&&O(),uploader.upload()):ne.ext==="mxweb"?(uploader.skipFile(ne),uploader.reset()):axios$1.post(r+n,{fileHash:W,filename:ne.name}).then(B=>{O&&O(),B.data.ret=="fileAlreadyExist"?(N&&N(),uploader.skipFile(ne),uploader.reset(),A&&A(ne,V,!0)):uploader.upload()},()=>{console.log("MxTip:post file is Exits error:1"),_&&_()})})}),uploader.on("uploadBeforeSend",(ne,W,B)=>{W.hash=V}),uploader.on("uploadProgress",(ne,W)=>{I&&I(W*100)}),uploader.on("uploadSuccess",ne=>{axios$1.post(r+n,{fileHash:V,filename:ne.name}).then(W=>{W.data.ret=="fileAlreadyExist"?A&&A(ne,V,!1):(console.log("MxTip:post file is no exits error:2"),_&&_())})}),uploader.on("uploadFinished",function(ne){z&&z(),uploader.reset()}),uploader.on("uploadError",(ne,W)=>{console.log("MxTip:uploadError error:1"),console.group(W),_&&_()}),uploader.on("error",ne=>{uploader.reset(),console.log("MxTip:uploadError error:2"),console.log("err",ne),_&&_()}),uploader}const createEl=()=>{const t=document.createElement("div");return t.id="picker",document.body.appendChild(t),t},el=createEl();let upload;const tipsShow=ref(!1),fileTips=ref(""),progress=ref(0);let sCmd="OpenDwgImp";const uploadFile=(t,e)=>Gr(void 0,null,function*(){return new Promise(r=>{setReloadFile(t),e&&(sCmd=e),el.getElementsByTagName("label")[0].click(),el.click(),window.addEventListener("focus",()=>{setTimeout(()=>{r()},100)},{once:!0})})}),timeoutHideTip=()=>{setTimeout(()=>{tipsShow.value=!1},100)},setFileTips=t=>{fileTips.value=t},setTipsShow=t=>{tipsShow.value=t},useDwgUpload=()=>(onMounted(()=>{const t=useMessage();upload||(upload=createDwgFileUploader({pick:el,onError:()=>{tipsShow.value=!0,setFileTips("\u4E0A\u4F20\u4E2D\u65AD\uFF1A\u670D\u52A1\u5668\u7A0B\u5E8F\u5F02\u5E38\uFF01"),t.error("\u4E0A\u4F20\u4E2D\u65AD,\u8BF7\u7A0D\u540E\u91CD\u8BD5\uFF01"),timeoutHideTip()},onFileQueued:e=>{if(e.ext==="mxweb"){upload.stop(),upload.reset(),setTipsShow(!1),timeoutHideTip();const r={type:e.ext,file:e,isUseServerExistingFile:!1};return MxFun.sendStringToExecute(sCmd,r),!1}setFileTips("\u6587\u4EF6\u9884\u5904\u7406\u4E2D..."),setTipsShow(!0)},onBeginUpload:()=>{setFileTips("\u4E0A\u4F20\u56FE\u7EB8...")},onProgress:e=>{e<100?setFileTips("\u4E0A\u4F20\u56FE\u7EB8"+e+"%.."):setFileTips("\u56FE\u7EB8\u5904\u7406\u4E2D..."),setTipsShow(!0),progress.value=e},onUploadSuccess:(e,r,n)=>{setTipsShow(!1),timeoutHideTip();const o={hash:r,type:e.ext,file:e,isUseServerExistingFile:n};MxFun.sendStringToExecute(sCmd,o)}}))}),{uploadFile,upload,tipsShow,fileTips,progress}),_hoisted_1$b={class:"d-flex w-100 flex-column pa-0 ma-0"},_hoisted_2$6={key:0,class:"footer_btn_box"},_sfc_main$j=defineComponent$1({__name:"index",setup(t){const{items:e,actives:r}=useSysVarLongSketchSettings();ref();const n=ref(),{handleKeydown:o,isShowMenu:s,comboboxItems:c,getItemTitle:l,selectCmd:v,onSearch:x,commandText:w,consoleText:_,cmdTipObj:b,coordinates:E,setCommandFocus:I,sendInputCmd:O}=useCommandLine(n),{resizeOptions:N,vResize:A,height:z,handleResize:G}=useConsoleResize(),V=()=>{I(!1)},ne=()=>{I(!0)},W=le=>{le.key==="c"&&le.ctrlKey===!0||I(!0)},{tipsShow:B,progress:q,fileTips:D}=useDwgUpload(),F=le=>{if(!le){const fe=window.getSelection();if(!fe)return;le=fe.toString()}if(le!=="")if(navigator.clipboard){const fe=le.replace(/\n/g,`\r
  4697. `);navigator.clipboard.writeText(fe)}else{const fe=document.createElement("input");fe.setAttribute("value",le),fe.setAttribute("type","text"),document.body.appendChild(fe),fe.select(),document.execCommand("copy"),document.body.removeChild(fe)}},re=useRightClickMenuOptions({hasIcon:!0,menuWidth:150,menuList:[{label:"\u590D\u5236",fn:()=>F()},{label:"\u590D\u5236\u5386\u53F2\u8BB0\u5F55",fn:()=>{F(_.value)}},{label:"\u7C98\u8D34",fn:(le,fe,me,ye)=>Gr(this,null,function*(){w.value=yield navigator.clipboard.readText()})}]});return(le,fe)=>{const me=resolveDirective("scroll-bottom"),ye=resolveDirective("right-click-menu");return unref(uiConfig).isShowFooter?withDirectives((openBlock(),createBlock(VFooter,{key:0,app:"",height:"auto",class:"pa-0 mx-footer",onResize:unref(G)},{default:withCtx(()=>[createBaseVNode("div",_hoisted_1$b,[withDirectives((openBlock(),createElementBlock("div",null,[unref(uiConfig).isShowCommandLinePanel?(openBlock(),createElementBlock("div",{key:0,class:"console-box",style:normalizeStyle({height:unref(z)+"px"})},[withDirectives(createBaseVNode("textarea",{"onUpdate:modelValue":fe[0]||(fe[0]=Te=>isRef(_)?_.value=Te:null),id:"mx_footer_console_text",onMousedown:V,onBlur:ne,onKeyup:W,readonly:"",class:"console d-flex"},null,544),[[vModelText,unref(_)],[me]])],4)):createCommentVNode("",!0),unref(uiConfig).isShowCommandInput?(openBlock(),createBlock(VCombobox,{key:1,onKeydown:unref(o),"no-click-animation":"",contained:"","menu-icon":"","menu-props":{modelValue:unref(s),maxHeight:200,location:"top"},items:unref(c),"bg-color":"surface",ref_key:"input",ref:n,prefix:"",autofocus:"",modelValue:unref(w),"onUpdate:modelValue":fe[1]||(fe[1]=Te=>isRef(w)?w.value=Te:null),autocomplete:"off",light:"","onUpdate:search":unref(x)},{item:withCtx(({item:Te,props:ke})=>[createVNode(VListItem,mergeProps(ke,{title:unref(l)(Te.raw),onClick:Le=>unref(v)(Te.raw)}),null,16,["title","onClick"])]),prepend:withCtx(()=>[createVNode(VIcon,{icon:"cloudshellyunminglinghang",style:{color:"#7ABDE9"}}),createBaseVNode("span",null,toDisplayString$1(unref(b).msg.replace(":","").replace(/^\s+|\s+$/g,""))+":",1),unref(b).keys?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(" [ "),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(b).keys,({key:Te,label:ke})=>withDirectives((openBlock(),createBlock(VBtn,{onClick:Le=>unref(O)(Te),variant:"tonal",class:"px-1 ml-1",label:"",size:"x-small"},{default:withCtx(()=>[createTextVNode(toDisplayString$1(le.$t(ke))+"("+toDisplayString$1(Te)+") ",1)]),_:2},1032,["onClick"])),[[Ripple]])),256)),createTextVNode(" ] ")],64)):createCommentVNode("",!0),createBaseVNode("span",null,toDisplayString$1(unref(b).endMsg),1)]),_:1},8,["onKeydown","menu-props","items","modelValue","onUpdate:search"])):createCommentVNode("",!0)])),[[ye,unref(re)]]),unref(uiConfig).isShowFooterStatusBar?(openBlock(),createElementBlock("div",_hoisted_2$6,[unref(B)?createCommentVNode("",!0):(openBlock(),createBlock(VCard,{key:0,class:"d-flex bg-background"},{default:withCtx(()=>[createVNode(VChip,{size:"x-small",theme:"light",class:"ml-1 me-auto bg-accent"},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(E)),1)]),_:1}),createVNode(VBtnToggle,{modelValue:unref(r),"onUpdate:modelValue":fe[3]||(fe[3]=Te=>isRef(r)?r.value=Te:null),density:"compact",variant:"text",class:"px-2",style:{height:"26px"},multiple:""},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(e),(Te,ke)=>(openBlock(),createElementBlock(Fragment,{key:ke},[Te.isMenu?withDirectives((openBlock(),createBlock(VBtn,{key:0,value:ke,class:"mx-1 rounded",height:"20",size:"x-small"},{default:withCtx(()=>[createTextVNode(toDisplayString$1(le.$t(Te.name)),1)]),_:2},1032,["value"])),[[ye,Te.menuOptions]]):(openBlock(),createBlock(VBtn,{key:1,value:ke,class:"mx-1 rounded",height:"20",size:"x-small",onContextmenu:fe[2]||(fe[2]=withModifiers(()=>{},["prevent","stop"]))},{default:withCtx(()=>[createTextVNode(toDisplayString$1(le.$t(Te.name)),1)]),_:2},1032,["value"]))],64))),128))]),_:1},8,["modelValue"])]),_:1})),unref(B)?(openBlock(),createBlock(VProgressLinear,{key:1,modelValue:unref(q),"onUpdate:modelValue":fe[4]||(fe[4]=Te=>isRef(q)?q.value=Te:null),color:"cyan",rounded:"",indeterminate:""},null,8,["modelValue"])):createCommentVNode("",!0),withDirectives(createBaseVNode("div",{class:"w-100 text-center file-tip"},toDisplayString$1(unref(D)),513),[[vShow,unref(B)]])])):createCommentVNode("",!0)])]),_:1},8,["onResize"])),[[unref(A),unref(N)]]):createCommentVNode("",!0)}}}),index_vue_vue_type_style_index_0_lang$1="",index_vue_vue_type_style_index_1_scoped_94f02e33_lang="",Footer=_export_sfc(_sfc_main$j,[["__scopeId","data-v-94f02e33"]]);let uiData;const getUiData=()=>MxFun.getUIData(),useUIData=()=>(uiData||(uiData=getUiData()),uiData);let dynamicInputData,misShow=ref();const onMountedDynInputUpDisplay=t=>{useUIData().mountMxEvent("dynInputUpDisplay",()=>{const r=dynamicInputData.getData();t&&t(r)})},onMountedDynInputSetFocus=t=>{useUIData().mountMxEvent("dynInputSetFocus",r=>{t&&t(r)})},onMountedDynInputReSet=t=>{useUIData().mountMxEvent("dynInputReSet",()=>{t&&t()})},useDynamicInputData=()=>{const t=useUIData();return dynamicInputData||(dynamicInputData=t.getDynamicInput()),ei(Pt({},{misShow}),{onMountedDynInputUpDisplay,onMountedDynInputSetFocus,onMountedDynInputReSet,dynamicInputData})},selectText=t=>{const e=document,r=window;if(e.selection){const n=e.body.createTextRange();n.moveToElementText(t),n.select()}else if(r.getSelection){const n=e.createRange();r.getSelection().removeAllRanges(),n.selectNodeContents(t),r.getSelection().addRange(n)}},leftWidth=ref(40),rightWidth=ref(40);let _mainRect;const getMainRect=()=>_mainRect,useSideBtnListUIData=t=>{var v,x,w,_;const{mainRect:e}=useLayout();_mainRect=e;const r=ref((v=uiConfig.mLeftButtonBarData)==null?void 0:v.isShow),n=ref((x=uiConfig.mRightButtonBarData)==null?void 0:x.isShow),o=markRaw(((w=uiConfig.mLeftButtonBarData)==null?void 0:w.buttonBarData)||[]),s=markRaw(((_=uiConfig.mRightButtonBarData)==null?void 0:_.buttonBarData)||[]),c=b=>{const I=(document.body.clientHeight-e.value.top-e.value.bottom+16)/t;return Math.ceil(b/I)*t},l=b=>{leftWidth.value=r.value?c(o.length):0,rightWidth.value=n.value?c(s.length):0};return l(),watch([()=>e.value.top,()=>e.value.bottom],()=>l()),window.addEventListener("resize",l),{isShowLeftBtnList:r,isShowRightBtnList:n,leftBtnListUIData:o,rightBtnListUIData:s,leftWidth,rightWidth}},useDynamicInputBox=(t,e)=>{const{misShow:r,dynamicInputData:n,onMountedDynInputUpDisplay:o,onMountedDynInputSetFocus:s,onMountedDynInputReSet:c}=useDynamicInputData();let l=ref(!1);const v=ref(0),x=ref(0),w=ref(0),_=ref([{isShow:!0,value:"",top:0,left:0,readonly:!0},{isShow:!0,value:"",top:0,left:0,readonly:!1},{isShow:!0,value:"",top:0,left:0,readonly:!1}]),b=ref(0),E=unref(e),I=()=>{var D;return(D=t.value)==null?void 0:D.getElementsByClassName(E)},O=D=>{D.focus(),selectText(D)},N=()=>{const D=I();b.value>=D.length-1?(b.value=0,O(D[0])):(b.value+=1,O(D[b.value]))},A=D=>{r.value=D},z=(D=!0)=>{const F=I();!F||(D?setTimeout(()=>{r.value&&O(F[b.value])},200):r.value&&O(F[b.value]))};let G=!1;n.getFocusValue=()=>{var re;const F=I()[b.value];return(re=F.textContent)!=null?re:F.innerText},n.getValue1=()=>{var F;const D=I();return(F=D[0].textContent)!=null?F:D[0].innerText},n.getValue2=()=>{var F;const D=I();return(F=D[1].textContent)!=null?F:D[1].innerText},n.getFocusIndex=()=>b.value;const V=D=>{if(n.onKeydown(D.keyCode),D.keyCode==32||D.keyCode==13){const F=I();if(!F)return;const re=F[b.value];O(re)}else G=!0};onMounted(()=>{const{x:D,y:F}=useMouse();o(re=>{if(!re){r.value&&A(!1);return}r.value||(b.value=0,A(!0),z(!0)),G&&(z(!0),l.value=!l.value,G=!1);const le=t.value.getElementsByClassName("input_box"),fe=(ke,Le,et=0,it)=>{var Lt,Ne,ze,Ke,vt,Ft,Ot;let Ue;if(typeof it=="number"&&t.value){const _t=le[it];Ue=_t==null?void 0:_t.getBoundingClientRect()}const ht=Ue?Ue.width:(Ne=(Lt=t.value)==null?void 0:Lt.clientWidth)!=null?Ne:0,De=Ue?Ue.height:(Ke=(ze=t.value)==null?void 0:ze.clientHeight)!=null?Ke:0;let Be=ke+et,Ve=Le+et;const He=(vt=document.getElementById("mxdiv"))==null?void 0:vt.getBoundingClientRect(),gt=(Ft=He==null?void 0:He.width)!=null?Ft:0,dn=(Ot=He==null?void 0:He.height)!=null?Ot:0,Ze=gt-ht;Be>Ze&&(Be=Ze);const at=dn-De;return Ve>at&&(Ve=at),Be<0&&(Be=0),Ve<0&&(Ve=0),[Be,Ve]},{list:me}=re;w.value=re.postype;const[ye,Te]=fe(re.pos[0],re.pos[1],22,re.postype===1?0:void 0);v.value=ye,x.value=Te,_.value.forEach((ke,Le)=>{var it,Ue,ht,De,Be,Ve,He,gt,dn,Ze,at,Lt,Ne,ze,Ke,vt,Ft,Ot;ke.isShow=me[Le].show,ke.value=me[Le].value,ke.readonly=me[Le].readonly;const et=me[Le].pos;if(et){const _t=(it=le[Le])==null?void 0:it.getBoundingClientRect();let Tn=0,on=0;Tn=(_t==null?void 0:_t.width)/2,on=(_t==null?void 0:_t.height)/2;let $n=et[0]-Tn,Zt=et[1]-on;const Et=(De=(ht=(Ue=getMainRect())==null?void 0:Ue.value)==null?void 0:ht.top)!=null?De:0,rn=(He=(Ve=(Be=getMainRect())==null?void 0:Be.value)==null?void 0:Ve.bottom)!=null?He:0,wt=(Ze=(dn=(gt=getMainRect())==null?void 0:gt.value)==null?void 0:dn.left)!=null?Ze:0,Yn=D.value-leftWidth.value-wt,pt=F.value-Et,Fe=Yn-$n,Ie=pt-Zt,ct=25,Ht=Fe<0?Math.abs(Fe)<ct:Fe<ct+_t.width,sn=Ie<0||pt>ct?Math.abs(Ie)<ct:Ie<ct+_t.height;if(Ht&&sn){const Kr=Yn<leftWidth.value+ct,ii=pt<Et+ct,_n=Yn<document.body.clientWidth-leftWidth.value,xn=pt>document.body.clientHeight-Et-rn-_t.height-ct;Zt=pt<ct?Zt+ct*2:Zt-ct*2,Math.abs(Ie)<ct&&Math.abs(Fe)>_t.width&&(w.value=0,Kr&&(v.value+=(at=le[1])==null?void 0:at.getBoundingClientRect().width,v.value+=(Lt=le[2])==null?void 0:Lt.getBoundingClientRect().width),_n&&(v.value-=(Ne=le[1])==null?void 0:Ne.getBoundingClientRect().width,v.value-=(ze=le[2])==null?void 0:ze.getBoundingClientRect().width),ii&&(x.value+=(Ke=le[1])==null?void 0:Ke.getBoundingClientRect().height,x.value+=(vt=le[2])==null?void 0:vt.getBoundingClientRect().height),xn&&(x.value-=(Ft=le[1])==null?void 0:Ft.getBoundingClientRect().height,x.value-=(Ot=le[2])==null?void 0:Ot.getBoundingClientRect().height))}const[yn,Dr]=fe($n,Zt,0,w.value===0?void 0:Le);ke.left=yn,ke.top=Dr}})}),s(re=>{const{isFocus:le}=re!=null?re:{};le&&z(!1)}),c(()=>{z(!0)})});const ne=D=>{D.code==="Tab"&&(D.preventDefault(),N())},W=()=>{z(!0)},{setCommandFocus:B}=useFocus$1(),q=()=>_.value.some(D=>!D.readonly&&D.isShow);return keyBindingManager.register({key:{keyCode:"Tab"},when(D){return!!(D.isRunCommand&&r.value&&q())},action:ne}),watch(r,D=>{const F=MxFun.getCurrentDraw().getCanvas();D&&q()?(F.addEventListener("mouseover",W),F.addEventListener("click",W),B(!1)):(F.removeEventListener("mouseover",W),F.removeEventListener("click",W),B(!0))}),onUnmounted(()=>{const D=MxFun.getCurrentDraw().getCanvas();D.removeEventListener("mouseover",W),D.removeEventListener("click",W)}),{isShow:r,posType:w,x:v,y:x,coordinateInputBoxData:_,inputClass:e,focusNextInput:N,onKeydown:V,makeFocus:z,updateKey:l}},_hoisted_1$a=["tabIndex","contenteditable"],_sfc_main$i=defineComponent$1({__name:"index",setup(t,{expose:e}){const r=ref(),{posType:n,isShow:o,coordinateInputBoxData:s,x:c,y:l,focusNextInput:v,onKeydown:x,makeFocus:w,updateKey:_}=useDynamicInputBox(r,"coordinate"),b=E=>{var N;const I=E.target,O=n.value===0?(N=r.value)==null?void 0:N.getBoundingClientRect():I.getBoundingClientRect();if(O){const A=document.body.clientWidth-leftWidth.value;n.value===0?I.style.maxWidth=I.clientWidth+(A-O.right)+"px":I.style.maxWidth=A-O.left+"px"}};return e({makeFocus:w}),(E,I)=>{const O=resolveDirective("focus-select");return withDirectives((openBlock(),createElementBlock("div",{ref_key:"DynamicInputBox",ref:r,style:normalizeStyle({left:unref(n)===0?unref(c)+"px":"0",top:unref(n)===0?unref(l)+"px":"0",position:"absolute"}),class:normalizeClass(unref(n)===0?"box":"")},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(s),(N,A)=>withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass(["input_box",N.readonly?"coordinate_text":"coordinate"]),key:A+unref(_).toString(),tabIndex:N.readonly?-1:A+1,onInput:I[0]||(I[0]=z=>b(z)),onKeydown:[I[1]||(I[1]=withKeys(withModifiers((...z)=>unref(v)&&unref(v)(...z),["stop","prevent"]),["tab"])),I[2]||(I[2]=(...z)=>unref(x)&&unref(x)(...z))],style:normalizeStyle({position:unref(n)===0?void 0:"absolute",left:A===0?unref(c)+"px":N.left+"px",top:A===0?unref(l)+"px":N.top+"px"}),contenteditable:N.readonly?"false":"true"},[createTextVNode(toDisplayString$1(N.value),1)],46,_hoisted_1$a)),[[vShow,N.isShow],[O,!N.readonly]])),128))],6)),[[vShow,unref(o)]])}}}),index_vue_vue_type_style_index_0_scoped_ae1b5af7_lang="",DynamicInputBox=_export_sfc(_sfc_main$i,[["__scopeId","data-v-ae1b5af7"]]),_sfc_main$h=defineComponent$1({setup(){const{messages:t,removeMessage:e,addMessage:r}=useMessageData();return{messages:t,removeMessage:e,iconCache}}}),index_vue_vue_type_style_index_0_scoped_fc2d9726_lang="";function _sfc_render(t,e,r,n,o,s){return openBlock(!0),createElementBlock(Fragment,null,renderList(t.messages,(c,l)=>(openBlock(),createBlock(VAlert,{key:c.id,width:"auto",position:"absolute",class:"message-alert",location:"top center",style:normalizeStyle({zIndex:1e6,top:c.top+"px"}),"max-height":"55","min-width":"300",type:c.type,"onClick:close":v=>t.removeMessage(c)},{prepend:withCtx(()=>[createVNode(VIcon,{icon:t.iconCache[c.type].icon,class:"rounded-circle mt-1",color:t.iconCache[c.type].color},null,8,["icon","color"])]),default:withCtx(()=>[createTextVNode(toDisplayString$1(c.message)+" ",1)]),_:2},1032,["style","type","onClick:close"]))),128)}const Message=_export_sfc(_sfc_main$h,[["render",_sfc_render],["__scopeId","data-v-fc2d9726"]]);function cursorGenerate(t=128,e=10,r=!0,n=document.createElement("canvas"),o="#fff",s="transparent"){n.width=n.height=t,n.style.background=s;const c=n.getContext("2d"),l=0,v=0;c.strokeStyle=o,c.lineWidth=1.5,r&&(c.beginPath(),c.moveTo(n.width/2+l,l),c.lineTo(n.width/2+l,n.height+l),c.stroke(),c.beginPath(),c.moveTo(l,n.height/2+l),c.lineTo(n.width+l,n.height/2+l),c.stroke()),c.beginPath(),c.strokeRect(t/2-e/2+v,t/2-e/2+v,e,e),c.stroke();const x=new Image;return x.src=n.toDataURL("image/png"),x.src}const getVal=(t,e)=>{if(!!t)switch(e){case"string":return t;case"number":{const r=Number(t);return Number.isNaN(r)?void 0:r}case"boolean":return Boolean(t==="true");case"undefined":return t;case"object":try{return JSON.parse(t)}catch(r){return}case"function":return}},getValString=(t,e)=>{switch(e){case"string":case"number":case"boolean":return t.toString();case"undefined":return;case"object":try{return JSON.stringify(t)}catch(r){return}case"function":return}};function browserCacheRef(t,e){const r=typeof t;return customRef((n,o)=>({get(){n();const s=localStorage.getItem(e),c=getVal(s,r);return typeof c!="undefined"?c:t},set(s){const c=getValString(s,r);typeof c!="undefined"&&localStorage.setItem(e,c),t=s,o()}}))}function browserCacheReactive(t,e){const r=typeof t;let n;try{const s=localStorage.getItem(e);s&&(n=JSON.parse(s))}catch(s){}typeof n=="object"&&(t=n);const o=reactive(t);for(let s in o)watch(()=>o[s],()=>{const c=getValString(o,r);typeof c!="undefined"&&localStorage.setItem(e,c)});return o}const cursorType=ref("Normal"),updateCursor=t=>{cursorType.value=t},targetFrameSize=browserCacheRef(10,"Mx_targetFrameSize"),cursorSize=browserCacheRef(128,"Mx_cursorSize");let color;const getCursorStyles=()=>({Rect:`url('${cursorGenerate(cursorSize.value,targetFrameSize.value,!1,void 0,color)}') ${cursorSize.value/2} ${cursorSize.value/2}, auto`,Cross:`url('${cursorGenerate(cursorSize.value,0,!0,void 0,color)}') ${cursorSize.value/2} ${cursorSize.value/2} , auto`,Normal:`url('${cursorGenerate(cursorSize.value,targetFrameSize.value,!0,void 0,color)}') ${cursorSize.value/2} ${cursorSize.value/2}, auto`,Pan:"grab"}),_cursorStyles=getCursorStyles();let cursorStyles=ref(_cursorStyles);const updateCursorStyles=()=>{cursorStyles.value=getCursorStyles()};function getContrast50(t,e,r){return .213*t+.715*e+.072*r>255/2?"#000000":"#ffffff"}const cursor=computed(()=>cursorStyles.value[cursorType.value]);MxFun.on("updateBackgroundColor",t=>{const e=getContrast50(t.red,t.green,t.blue);MxCpp.getCurrentMxCAD().updateDisplay(),color!==e&&(color=e,updateCursorStyles(),updateCursor(cursorType.value))});const mountAutoUpdateCursor=()=>{MxFun.getUIData().mountUpdateCursorFun(t=>{updateCursor(t)})},useCursorStyle=()=>({cursor,mountAutoUpdateCursor,updateCursor,type:cursorType,size:cursorSize,targetFrameSize,cursorStyles}),layouts=ref([{name:"Model"}]),index=ref(0);onOpenFileComplete(()=>{let t=[];MxCpp.App.getCurrentMxCAD().getAllLayoutName().forEach(e=>{e==="Model"?t.unshift({name:e}):t.push({name:e})}),layouts.value=t,index.value=0});const setLayout=t=>{if(typeof t=="number"){MxCpp.App.getCurrentMxCAD().setCurrentLayout(layouts.value[t].name),MxFun.getCurrentDraw().updateDisplay(),index.value=t;return}MxCpp.App.getCurrentMxCAD().setCurrentLayout(t),MxFun.getCurrentDraw().updateDisplay();const e=layouts.value.findIndex(r=>t===r.name);e>=0&&(index.value=e)},useDrawingModelLayer=()=>({layouts,index,setLayout}),_hoisted_1$9={key:0,class:"modelNav"},_hoisted_2$5=["onClick"],_sfc_main$g=defineComponent$1({__name:"ModelNav",setup(t){const{layouts:e,index:r,setLayout:n}=useDrawingModelLayer();return(o,s)=>unref(uiConfig).isShowModelNav?(openBlock(),createElementBlock("div",_hoisted_1$9,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(e),(c,l)=>(openBlock(),createElementBlock("span",{class:normalizeClass(["nav",l===unref(r)?"nav-active":""]),onClick:v=>unref(n)(l)},toDisplayString$1(c.name),11,_hoisted_2$5))),256))])):createCommentVNode("",!0)}}),ModelNav_vue_vue_type_style_index_0_scoped_18cf9045_lang="",ModelNav=_export_sfc(_sfc_main$g,[["__scopeId","data-v-18cf9045"]]),defaultMenuList=[{label:"\u65B0\u5EFA",tips:"New",fn(){callCommand("Mx_NewFile")}},{label:"\u6253\u5F00",tips:"Open",fn:function(){callCommand("OpenDwg")},children:[{label:"\u4F7F\u7528\u7F13\u5B58",tips:"\u5FEB\u901F\u6253\u5F00",fn(){callCommand("Mx_SaveAs")}},{label:"\u5FFD\u7565\u7F13\u5B58",tips:"\u91CD\u65B0\u8F6C\u6362",fn(){}}]},{label:"\u53E6\u5B58\u4E3A",tips:"CAD",fn(){callCommand("Mx_SaveAs")},children:[{label:"MxWeb\u683C\u5F0F",tips:"\u68A6\u60F3CAD\u5728\u7EBF\u6587\u4EF6",fn(){callCommand("Mx_SaveAs")}},{label:"Dwg\u683C\u5F0F",tips:"AutoCad\u56FE\u7EB8",fn(){callCommand("Mx_Export_DWG")}}]},{label:"\u6253\u5370",tips:"Print",fn(){callCommand("Plot")}}],useMainRightClickMenu=()=>({rightMenuOptions:useRightClickMenuOptions({menuList:defaultMenuList,disabled:()=>MxFun.isRunningCommand()})}),_hoisted_1$8={key:0,id:"mx_map"},_hoisted_2$4={key:1,id:"myCanvas"},_sfc_main$f=defineComponent$1({__name:"index",setup(t){const{cursor:e,mountAutoUpdateCursor:r}=useCursorStyle(),{map:n}=getParamsFromUrl(),o=n==="true",{mainRect:s}=useMxCad("myCanvas",o),{isShowLeftBtnList:c,isShowRightBtnList:l,leftBtnListUIData:v,rightBtnListUIData:x,leftWidth:w,rightWidth:_}=useSideBtnListUIData(44),{rightMenuOptions:b}=useMainRightClickMenu(),E=computed(()=>`calc(100% - ${w.value+_.value}px)`),I=computed(()=>`calc(100vh - ${s.value.bottom+s.value.top}px)`);onMounted(()=>{r()});const O=N=>{N!=null&&N.cmd&&callCommand(N==null?void 0:N.cmd)};return(N,A)=>{const z=resolveDirective("right-click-menu");return openBlock(),createBlock(unref(VMain),null,{default:withCtx(()=>[createBaseVNode("div",{class:"d-flex",style:normalizeStyle({height:I.value})},[unref(c)?(openBlock(),createBlock(MxBtnList,{key:0,style:{"z-index":"2"},width:unref(w),"bg-color":"prominent",class:"flex-column flex-wrap-reverse",onChange:O,list:unref(v)},null,8,["width","list"])):createCommentVNode("",!0),withDirectives((openBlock(),createElementBlock("div",{class:"mxbox",style:normalizeStyle({width:E.value})},[createBaseVNode("div",{id:"mxdiv",class:"pa-0 overflow-hidden",style:normalizeStyle({cursor:unref(e)}),ref:"canvasBox"},[createVNode(DynamicInputBox,{ref:"dynamicInputBox"},null,512),o?(openBlock(),createElementBlock("div",_hoisted_1$8)):(openBlock(),createElementBlock("canvas",_hoisted_2$4)),createVNode(Message)],4),createVNode(ModelNav)],4)),[[z,unref(b)]]),unref(l)?(openBlock(),createBlock(MxBtnList,{key:1,style:{"z-index":"2"},width:unref(_),"bg-color":"prominent",class:"flex-column flex-wrap-reverse",onChange:O,list:unref(x),location:"right"},null,8,["width","list"])):createCommentVNode("",!0)],4)]),_:1})}}}),index_vue_vue_type_style_index_0_lang="",useDrawer=t=>{const r=ref(0),n=computed(()=>r.value>0),{vResize:o,resizeOptions:s}=useResize({direction:t});return{width:r,isShow:n,resizeOptions:s,handleResize:x=>{if(x.resizeWidth&&x.resizeWidth){const w=300-x.resizeWidth>0?300-x.resizeWidth:0;r.value=x.resizeWidth+w,r.value>800&&(r.value=800)}},vResize:o,handleClose:()=>{r.value=0},handleOpen:()=>{r.value<=0&&(r.value=400)}}},_hoisted_1$7={class:"w-100 d-flex px-1 align-center justify-space-between bg-background rounded-t drawer_title"},_sfc_main$e=defineComponent$1({__name:"Drawer",props:{location:{default:"left"},title:{default:"\u6807\u9898"},components:{}},emits:["close"],setup(t,{expose:e,emit:r}){const n=computed(()=>t.location==="left"?"right":"left"),{width:o,isShow:s,resizeOptions:c,handleResize:l,vResize:v,handleClose:x,handleOpen:w}=useDrawer([n.value]),{mainRect:_}=useLayout(),b=computed(()=>`width: ${o.value}px; height: calc(100% - ${_.value.top}px); top: ${_.value.top}px; ${t.location}: 0;`);return e({isShow:s,handleOpen:w,handleClose:x}),(E,I)=>(openBlock(),createElementBlock(Fragment,null,[withDirectives(createBaseVNode("div",{class:"resize-line",style:normalizeStyle(b.value),onResize:I[0]||(I[0]=(...O)=>unref(l)&&unref(l)(...O))},null,36),[[vShow,unref(s)],[unref(v),unref(c)]]),unref(s)?(openBlock(),createBlock(VNavigationDrawer,{key:0,permanent:"",width:unref(o),location:E.location,class:"pa-1 bg-prominent drawer"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_1$7,[createBaseVNode("span",null,toDisplayString$1(E.title),1),createVNode(VBtn,{size:"x-small",icon:"",variant:"plain",onClick:I[1]||(I[1]=O=>r("close"))},{default:withCtx(()=>[createVNode(VIcon,{icon:"cha",size:"x-small"})]),_:1})]),(openBlock(!0),createElementBlock(Fragment,null,renderList(E.components,O=>(openBlock(),createBlock(resolveDynamicComponent(O.component)))),256))]),_:1},8,["width","location"])):createCommentVNode("",!0)],64))}}),Drawer_vue_vue_type_style_index_0_lang="",Drawer_vue_vue_type_style_index_1_scoped_eecff3ad_lang="",Drawer=_export_sfc(_sfc_main$e,[["__scopeId","data-v-eecff3ad"]]),isShowDrawingComparison=ref(!1),useDrawingComparison=()=>({isShowDrawingComparison}),_hoisted_1$6={key:0,class:"mx_drawing_comparison_box"},_hoisted_2$3=createStaticVNode('<div class="w-100 ma-0 mt-1 bg-background text-left pl-2" data-v-48bc49a3> \u6BD4\u8F83\u7ED3\u679C </div><table class="w-100" data-v-48bc49a3><thead class="w-100" data-v-48bc49a3><tr class="w-100" data-v-48bc49a3><th class="text-left pa-1 w-50 disabled" data-v-48bc49a3>\u5750\u6807</th><th class="text-left pa-1 w-50 disabled" data-v-48bc49a3>\u4FEE\u6539\u8BF4\u660E</th></tr></thead><tbody class="w-100" data-v-48bc49a3><tr data-v-48bc49a3><td class="pa-1 w-50" data-v-48bc49a3><label class="w-100" data-v-48bc49a3>(-1515,1212)</label></td><td class="pa-1 w-50" data-v-48bc49a3> \u5220\u9664 </td></tr></tbody></table><div class="w-100 ma-0 mt-2 bg-background text-left pl-2" data-v-48bc49a3> \u88AB\u6BD4\u8F83\u56FE\u7EB8\u9884\u89C8 </div><div style="background:#000;width:100%;height:300px;" data-v-48bc49a3></div>',4),_sfc_main$d=defineComponent$1({__name:"DrawingComparison",setup(t){const{isShowDrawingComparison:e}=useDrawingComparison();return(r,n)=>unref(e)?(openBlock(),createElementBlock("div",_hoisted_1$6,[createVNode(VBtn,{class:"w-100 mt-1 bg-depth border",variant:"text",size:"small"},{default:withCtx(()=>[createTextVNode(" \u9009\u62E9\u6BD4\u8F83\u6587\u4EF6 ")]),_:1}),createVNode(VBtn,{class:"w-100 mt-1 bg-undertint border",variant:"text",size:"small"},{default:withCtx(()=>[createTextVNode(" \u5F00\u59CB\u6BD4\u8F83 ")]),_:1}),_hoisted_2$3])):createCommentVNode("",!0)}}),DrawingComparison_vue_vue_type_style_index_0_scoped_48bc49a3_lang="",DrawingComparison=_export_sfc(_sfc_main$d,[["__scopeId","data-v-48bc49a3"]]),_sfc_main$c=defineComponent$1({__name:"MxGetPointBtn",props:{disabled:{type:Boolean,default:!1},size:{default:24},text:{default:"\u53D6\u70B9"},icon:{default:"a-zu20"}},setup(t){const e=useAttrs();return(r,n)=>(openBlock(),createBlock(VTooltip,{theme:"light",link:"","open-delay":0,text:r.text},{activator:withCtx(({props:o})=>[createVNode(VBtn,mergeProps(Pt(Pt({},unref(e)),o),{size:r.size,disabled:r.disabled,rounded:"sm",icon:"",variant:"plain",class:"box-shadow mx-1"}),{default:withCtx(()=>[createVNode(VIcon,{icon:r.icon,color:"#fff"},null,8,["icon"])]),_:2},1040,["size","disabled"])]),_:1},8,["text"]))}}),MxGetPointBtn_vue_vue_type_style_index_0_scoped_1b0f834e_lang="",MxGetPointBtn=_export_sfc(_sfc_main$c,[["__scopeId","data-v-1b0f834e"]]),_withScopeId=t=>(pushScopeId("data-v-84ae14ce"),t=t(),popScopeId(),t),_hoisted_1$5={key:0},_hoisted_2$2={class:"w-100"},_hoisted_3$1={class:"w-100"},_hoisted_4$1={class:"pa-1 w-25",style:{"min-width":"100px"}},_hoisted_5$1=["for"],_hoisted_6={class:"pa-1 w-75"},_hoisted_7={class:"d-flex"},_hoisted_8=["type","id","disabled","onUpdate:modelValue"],_hoisted_9={class:"select-box"},_hoisted_10={class:"text"},_hoisted_11={key:3,class:"getPointBtn"},_hoisted_12={class:"w-100"},_hoisted_13={class:"w-100"},_hoisted_14={class:"w-100"},_hoisted_15={class:"pa-1"},_hoisted_16={class:"w-100"},_hoisted_17=_withScopeId(()=>createBaseVNode("td",{class:"pa-1"},[createBaseVNode("input",{class:"w-100",value:"1.0",disabled:!0})],-1)),_sfc_main$b=defineComponent$1({__name:"EntityAttribute",setup(t){const e=useRightDrawer(),{selects:r,selectItem:n,isSelected:o,types:s,type:c,isNotData:l,isShowEntityAttribute:v,update:x}=e,{setCommandFocus:w}=useFocus$1(),_=()=>{w(!1)},b=()=>{w(!0)},{categoryNames:E,categoryToEntityPropMap:I}=useDefineUIProp(),O=computed(()=>o.value&&!l.value);return(N,A)=>unref(v)?(openBlock(),createElementBlock("div",_hoisted_1$5,[createVNode(VRow,null,{default:withCtx(()=>[createVNode(VCol,{cols:"3"},{default:withCtx(()=>[createVNode(VSelect,{items:unref(s),modelValue:unref(c),"onUpdate:modelValue":[A[0]||(A[0]=z=>isRef(c)?c.value=z:null),unref(x)],modelModifiers:{lazy:!0},class:"mt-2 mb-2"},null,8,["items","modelValue","onUpdate:modelValue"])]),_:1}),createVNode(VCol,{cols:"9"},{default:withCtx(()=>[createVNode(VSelect,{items:unref(r),modelValue:unref(n),"onUpdate:modelValue":[A[1]||(A[1]=z=>isRef(n)?n.value=z:null),unref(x)],modelModifiers:{lazy:!0},class:"mt-2 mb-2"},null,8,["items","modelValue","onUpdate:modelValue"])]),_:1})]),_:1}),O.value?(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(unref(E),z=>(openBlock(),createBlock(VExpansionPanels,{static:"",variant:"accordion",class:"w-100","model-value":[z],key:z},{default:withCtx(()=>[createVNode(VExpansionPanel,{class:"item",eager:"",value:z},{default:withCtx(()=>[createVNode(VExpansionPanelTitle,{class:"bg-background"},{default:withCtx(()=>[createTextVNode(toDisplayString$1(z),1)]),_:2},1024),createVNode(VExpansionPanelText,{eager:""},{default:withCtx(()=>{var G;return[createBaseVNode("table",_hoisted_2$2,[createBaseVNode("tbody",_hoisted_3$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList((G=unref(I).get(z))==null?void 0:G.sort((V,ne)=>unref(V.order||0)-unref(ne.order||0)),(V,ne)=>(openBlock(),createElementBlock(Fragment,null,[V.isShowRef.value?(openBlock(),createElementBlock("tr",{key:0,class:normalizeClass(["w-100",V.disabled?"disabled":""])},[createBaseVNode("td",_hoisted_4$1,[createBaseVNode("label",{for:unref(V.type)==="input"||unref(V.type)==="string"?z+"input__id__"+ne:""},toDisplayString$1(N.$t(unref(V.label))),9,_hoisted_5$1)]),createBaseVNode("td",_hoisted_6,[createBaseVNode("div",_hoisted_7,[unref(V.type)==="input"||unref(V.type)==="string"?withDirectives((openBlock(),createElementBlock("input",mergeProps({key:0,type:unref(V.type)==="string"?"text":typeof V.ref.value,class:"w-100",id:z+"input__id__"+ne},toHandlers(V.onEvents,!0),{disabled:unref(V.type)==="string"?!0:unref(V.disabled)},V.inputProps,{"onUpdate:modelValue":W=>V.ref.value=W,onFocus:_,onBlur:b}),null,16,_hoisted_8)),[[vModelDynamic,V.ref.value,void 0,{lazy:!0}]]):createCommentVNode("",!0),unref(V.type)==="color"?(openBlock(),createBlock(VSelect,mergeProps({key:1},V.vSelectProps,toHandlers(V.onEvents),{items:isRef(V.vSelectProps.items)?V.vSelectProps.items.value:V.vSelectProps.items,modelValue:V.ref.value,"onUpdate:modelValue":W=>V.ref.value=W,modelModifiers:{lazy:!0},disabled:unref(V.disabled)}),{selection:withCtx(({item:W})=>[createBaseVNode("div",_hoisted_9,[createBaseVNode("span",{class:"colorBox",style:normalizeStyle(`background:${W.raw[V.vSelectProps?V.vSelectProps.itemValue:"color"]}`)},null,4),createBaseVNode("span",_hoisted_10,toDisplayString$1(W.raw[V.vSelectProps?V.vSelectProps.itemTitle:"name"]),1)])]),item:withCtx(({item:W,props:B})=>[createVNode(VListItem,normalizeProps(guardReactiveProps(B)),{prepend:withCtx(()=>[createBaseVNode("span",{class:"colorBox ml-1",style:normalizeStyle(`background:${W.raw[V.vSelectProps?V.vSelectProps.itemValue:"color"]}`)},null,4)]),_:2},1040)]),"prepend-item":withCtx(()=>[createVNode(VListItem,{onClick:withModifiers(V.onColor,["stop"]),title:N.$t("\u9009\u62E9\u66F4\u591A\u989C\u8272")},{prepend:withCtx(()=>[createVNode(VIcon,{icon:"yanse",style:{"margin-right":"10px"},class:"ml-1",size:"14"})]),_:2},1032,["onClick","title"])]),_:2},1040,["items","modelValue","onUpdate:modelValue","disabled"])):createCommentVNode("",!0),V.type==="select"?(openBlock(),createBlock(VSelect,mergeProps({key:2},V.vSelectProps,toHandlers(V.onEvents),{items:isRef(V.vSelectProps.items)?V.vSelectProps.items.value:V.vSelectProps.items,disabled:unref(V.disabled),modelValue:V.ref.value,"onUpdate:modelValue":W=>V.ref.value=W,modelModifiers:{lazy:!0}}),null,16,["items","disabled","modelValue","onUpdate:modelValue"])):createCommentVNode("",!0),V.getPoint?(openBlock(),createElementBlock("div",_hoisted_11,[createVNode(MxGetPointBtn,{size:"18",onClick:V.getPoint,icon:V.getPointIcon,text:V.getPointTip},null,8,["onClick","icon","text"])])):createCommentVNode("",!0)])])],2)):createCommentVNode("",!0)],64))),256))])])]}),_:2},1024)]),_:2},1032,["value"])]),_:2},1032,["model-value"]))),128)):(openBlock(),createBlock(VExpansionPanels,{key:1,variant:"accordion",multiple:"",class:"w-100","model-value":0},{default:withCtx(()=>[createVNode(VExpansionPanel,{class:"item"},{default:withCtx(()=>[createVNode(VExpansionPanelTitle,{class:"bg-background"},{default:withCtx(()=>[createTextVNode(toDisplayString$1(N.$t("\u57FA\u7840")),1)]),_:1}),createVNode(VExpansionPanelText,{eager:"",class:"ml-2"},{default:withCtx(()=>[createBaseVNode("table",_hoisted_12,[createBaseVNode("tbody",_hoisted_13,[createBaseVNode("tr",_hoisted_14,[createBaseVNode("td",_hoisted_15,[createBaseVNode("label",_hoisted_16,toDisplayString$1(N.$t("\u7248\u672C\u53F7")),1)]),_hoisted_17])])])]),_:1})]),_:1})]),_:1}))])):createCommentVNode("",!0)}}),EntityAttribute_vue_vue_type_style_index_0_lang="",EntityAttribute_vue_vue_type_style_index_1_scoped_84ae14ce_lang="",EntityAttribute=_export_sfc(_sfc_main$b,[["__scopeId","data-v-84ae14ce"]]),_sfc_main$a=defineComponent$1({__name:"MxDialogBtn",props:{primary:{type:Boolean},isAction:{type:Boolean}},setup(t){return(e,r)=>(openBlock(),createBlock(VBtn,{size:e.isAction?void 0:"x-small",class:normalizeClass(["dialog-btn",e.primary?"bg-light-blue-darken-1":"bg-undertint-bg"]),"min-width":"76",variant:"text",rounded:"sm"},{default:withCtx(()=>[renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},8,["size","class"]))}}),MxDialogBtn_vue_vue_type_style_index_0_scoped_53027f73_lang="",MxDialogBtn=_export_sfc(_sfc_main$a,[["__scopeId","data-v-53027f73"]]),_sfc_main$9=defineComponent$1({__name:"MxFieldset",props:{title:{default:""}},setup(t){return(e,r)=>(openBlock(),createElementBlock("fieldset",null,[createBaseVNode("legend",null,toDisplayString$1(e.$t(e.title)),1),renderSlot(e.$slots,"default",{},void 0,!0)]))}}),MxFieldset_vue_vue_type_style_index_0_scoped_e446deac_lang="",MxFieldset=_export_sfc(_sfc_main$9,[["__scopeId","data-v-e446deac"]]),_hoisted_1$4={key:1},_sfc_main$8=defineComponent$1({__name:"MxLabel",props:{keyName:{},colon:{type:Boolean},noTextCaption:{type:Boolean}},setup(t){return(e,r)=>(openBlock(),createElementBlock("span",{class:normalizeClass((e.noTextCaption,""))},[renderSlot(e.$slots,"default"),e.keyName?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode("("),createBaseVNode("span",null,toDisplayString$1(e.keyName),1),createTextVNode(")")],64)):createCommentVNode("",!0),e.colon?(openBlock(),createElementBlock("span",_hoisted_1$4,":")):createCommentVNode("",!0)],2))}}),isShowTextSearch=ref(!1),useTextSearch=()=>({isShowTextSearch}),_hoisted_1$3={key:0,class:"mx_text_search_box"},_hoisted_2$1={class:"d-flex justify-space-between align-center mt-2"},_sfc_main$7=defineComponent$1({__name:"TextSearch",setup(t){const{isShowTextSearch:e}=useTextSearch(),{setCommandFocus:r}=useFocus$1(),n=()=>{r(!1)},o=()=>{r(!0)},s=ref(!1),c=ref(!1),l=ref([]),v=ref([]),x=(re,le,fe=16711680)=>{const me=re.toVector3(),ye=le.toVector3(),Te=new THREE.Vector3(me.x,ye.y),ke=new THREE.Vector3(ye.x,me.y);return MxThreeJS.createLines([me,Te,ye,ke,me],fe)},w=ref(""),_=ref(""),b=ref(0);let E;const I=new MxCADResbuf;I.AddMcDbEntityTypes("TEXT,MTEXT");let O;const N=(re=!1)=>Gr(this,null,function*(){const le=re||!E;le&&(E=new MxCADSelectionSet),b.value===0&&E.allSelect(I);const fe=MxCpp.App.getCurrentMxCAD();if(b.value===1){E.isWhileSelect=!0,le&&(yield E.userSelect("\u9009\u53D6\u533A\u57DF:",I));const{pt1:me,pt2:ye}=E.getSelectPoint();O&&fe.getMxDrawObject().removeObject(O),O=x(ye,me,65280),fe.getMxDrawObject().addObject(O),updateDisplay()}return b.value,E}),A=()=>Gr(this,null,function*(){const re=yield N(),le=[];return re.forEach(fe=>{const me=fe.getMcDbEntity();le.push(me)}),le});let z=[];const G=ref([]),V=()=>Gr(this,null,function*(){if(w.value==="")return;const re=MxCpp.App.getCurrentMxCAD();ne&&re.getMxDrawObject().removeObject(ne),l.value.includes(w.value)||l.value.unshift(w.value);const le=yield A(),fe=new RegExp(w.value,"g");z=le.filter(ye=>ye instanceof McDbMText?c.value?w.value===ye.contents:fe.test(ye.contents):ye instanceof McDbText?c.value?w.value===ye.textString:fe.test(ye.textString):!1);const me=[];z.forEach((ye,Te)=>{ye instanceof McDbMText&&me.push({text:ye.contents,index:Te}),ye instanceof McDbText&&me.push({text:ye.textString,index:Te})}),G.value=me});let ne;const W=ref(-1),B=re=>{W.value=re;const le=MxCpp.App.getCurrentMxCAD();ne&&le.getMxDrawObject().removeObject(ne);const fe=z[re],{minPt:me,maxPt:ye}=fe.getBoundingBox(),Te=x(me,ye);ne=Te,le.getMxDrawObject().addObject(ne),me.x-=me.x/10,me.y-=me.y/10,ye.x+=ye.x/10,ye.y+=ye.y/10,le.zoomW(me,ye),updateDisplay(),setTimeout(()=>{le.getMxDrawObject().removeObject(Te),updateDisplay()},1e3)};watch(c,V),watch(e,re=>{w.value=""});const q=re=>{if(re instanceof McDbMText)return re.contents=re.contents.replaceAll(w.value,_.value);if(re instanceof McDbText)return re.textString=re.textString.replaceAll(w.value,_.value)},D=()=>{if(W.value>=0){const re=z[W.value];q(re),V(),updateDisplay()}},F=()=>Gr(this,null,function*(){z.length>0&&(z.forEach((re,le)=>{q(re)}),yield V(),updateDisplay())});return(re,le)=>unref(e)?(openBlock(),createElementBlock("div",_hoisted_1$3,[createVNode(_sfc_main$8,{colon:""},{default:withCtx(()=>[createTextVNode(toDisplayString$1(re.$t("\u67E5\u627E")+re.$t("\u5185\u5BB9")),1)]),_:1}),createVNode(VCombobox,{class:"mb-1",items:l.value,"onUpdate:focused":n,onBlur:o,modelValue:w.value,"onUpdate:modelValue":le[0]||(le[0]=fe=>w.value=fe),onKeyup:withKeys(V,["enter"])},{append:withCtx(()=>[createVNode(MxDialogBtn,{onClick:V},{default:withCtx(()=>[createTextVNode(toDisplayString$1(re.$t("\u67E5\u627E")),1)]),_:1})]),_:1},8,["items","modelValue","onKeyup"]),createVNode(MxFieldset,{title:re.$t("\u67E5\u627E")+re.$t("\u65B9\u5F0F"),class:"mb-1"},{default:withCtx(()=>[createVNode(VRadioGroup,{modelValue:b.value,"onUpdate:modelValue":le[1]||(le[1]=fe=>b.value=fe)},{default:withCtx(()=>[createVNode(VRadio,{label:re.$t("\u5168\u5C40")+re.$t("\u67E5\u627E"),value:0,class:"ml-1"},null,8,["label"]),createVNode(VRadio,{label:re.$t("\u77E9\u5F62")+re.$t("\u533A\u57DF")+re.$t("\u67E5\u627E"),value:1,class:"ml-1"},null,8,["label"])]),_:1},8,["modelValue"]),createBaseVNode("div",_hoisted_2$1,[createVNode(VCheckbox,{class:"ml-1",modelValue:c.value,"onUpdate:modelValue":le[2]||(le[2]=fe=>c.value=fe)},{label:withCtx(()=>[createTextVNode(toDisplayString$1(re.$t("\u5168\u5B57")+re.$t("\u5339\u914D")),1)]),_:1},8,["modelValue"]),createVNode(VCheckbox,{class:"ml-1",modelValue:s.value,"onUpdate:modelValue":le[3]||(le[3]=fe=>s.value=fe)},{label:withCtx(()=>[createTextVNode(toDisplayString$1(re.$t("\u66FF\u6362")+re.$t("\u5185\u5BB9")),1)]),_:1},8,["modelValue"]),createVNode(MxDialogBtn,{disabled:b.value===0,onClick:le[4]||(le[4]=fe=>{N(!0)})},{default:withCtx(()=>[createTextVNode(toDisplayString$1(re.$t("\u533A\u57DF")+re.$t("\u9009\u62E9")),1)]),_:1},8,["disabled"])])]),_:1},8,["title"]),s.value?(openBlock(),createElementBlock(Fragment,{key:0},[createVNode(_sfc_main$8,{colon:""},{default:withCtx(()=>[createTextVNode(toDisplayString$1(re.$t("\u66FF\u6362")+re.$t("\u5185\u5BB9")),1)]),_:1}),createVNode(VCombobox,{items:v.value,modelValue:_.value,"onUpdate:modelValue":le[5]||(le[5]=fe=>_.value=fe),"onUpdate:focused":n,onBlur:o},{append:withCtx(()=>[createVNode(MxDialogBtn,{onClick:F,class:"mr-1"},{default:withCtx(()=>[createTextVNode(toDisplayString$1(re.$t("\u5168\u90E8")+re.$t("\u66FF\u6362")),1)]),_:1}),createVNode(MxDialogBtn,{onClick:D},{default:withCtx(()=>[createTextVNode(toDisplayString$1(re.$t("\u66FF\u6362")),1)]),_:1})]),_:1},8,["items","modelValue"])],64)):createCommentVNode("",!0),createVNode(VVirtualScroll,{items:G.value,height:s.value?"770px":"810px",class:"search_list"},{default:withCtx(({item:fe})=>[createVNode(VListItem,{title:fe.text,active:fe.index===W.value,onClick:me=>B(fe.index)},null,8,["title","active","onClick"])]),_:1},8,["items","height"])])):createCommentVNode("",!0)}}),TextSearch_vue_vue_type_style_index_0_scoped_7010a4cf_lang="",TextSearch=_export_sfc(_sfc_main$7,[["__scopeId","data-v-7010a4cf"]]),isShowBlockLibrary=ref(!1);var GalleryType=(t=>(t[t.Cloud=0]="Cloud",t[t.Private=1]="Private",t))(GalleryType||{});let pageIndex=0;watch(isShowBlockLibrary,t=>{t||(pageIndex=0)});const pageSize=30,useBlockLibrary=()=>{const{baseUrl:t}=getUploadFileConfig()||{},e=ref(0),r=ref(""),n=[{title:"\u4E91\u56FE\u5E93",value:0}],o=ref([]),s=ref(-1),c=ref(),l=ref(),v=computed(()=>{var O;return((O=l.value)==null?void 0:O.list)||[]}),x=()=>{pageIndex=0,o.value=[]};watch(s,()=>Gr(void 0,null,function*(){x(),_(yield w(),()=>{})}));const w=()=>axios$1.post(t+"/gallery/blocks/filelist",{pageIndex,pageSize,keywords:r.value,firstType:s.value===-1?void 0:s.value}),_=(O,N)=>{if(O.status===200){const{data:A}=O,{sharedwgs:z,page:G}=A||{};z?(o.value=[...o.value,...z],pageIndex=G.index+1):N("error")}else N("error")},b=A=>Gr(void 0,[A],function*({side:O,done:N}){try{_(yield w(),N)}catch(z){N("error")}}),E=()=>Gr(void 0,null,function*(){x(),_(yield w(),()=>{})}),I=()=>{axios$1.post(t+"/gallery/blocks/types").then(O=>{if(O.data&&O.data.code==="success"&&O.data.result){const{allblocks:N=[]}=O.data.result||{};l.value={pname:"\u5168\u90E8",pid:-1,list:[{id:-1,name:"\u5168\u90E8",pid:-1,pname:"\u5168\u90E8",status:0},...N]},c.value=[l.value],N.forEach(A=>{var G,V;const z=(G=c.value)==null?void 0:G.find(({pid:ne})=>ne===A.pid);z?z.list.push(A):(V=c.value)==null||V.push({pname:A.pname,pid:A.pid,list:[A]})})}})};return I(),{galleryType:e,galleryTypes:n,searchKeyword:r,isShowBlockLibrary,blocksData:o,requestBlockLibraryData:b,onSearch:E,blockTypes:c,blockType:l,typeId:s,getBlockTypesData:I,secondaryBlockTypes:v}},_hoisted_1$2={class:"d-flex align-center justify-center fill-height"},_sfc_main$6=defineComponent$1({__name:"Block",props:{data:{},width:{default:100},isCollect:{type:Boolean}},emits:["collection"],setup(t,{emit:e}){const r=computed(()=>{const{baseUrl:n}=getUploadFileConfig()||{};return n+"/blocks/"+t.data.secondType+"/"+t.data.firstType+"/"+t.data.filehash+".jpg"});return(n,o)=>(openBlock(),createBlock(VCard,{hover:"",variant:"tonal",class:"pa-2 my-2 block"},{default:withCtx(()=>[createVNode(VImg,{width:n.width,cover:"",src:r.value,crossorigin:"anonymous"},{placeholder:withCtx(()=>[createBaseVNode("div",_hoisted_1$2,[createVNode(VProgressCircular,{color:"grey-lighten-4",indeterminate:""})])]),_:1},8,["width","src"]),n.isCollect?(openBlock(),createBlock(VTooltip,{key:0,text:n.data.collect?"\u53D6\u6D88\u6536\u85CF":"\u6536\u85CF"},{activator:withCtx(({props:s})=>[createVNode(VBtn,mergeProps(s,{class:"collection",icon:n.data.collect?"class:iconfont shoucang1":"class:iconfont shoucang",size:"22px",onClick:o[0]||(o[0]=withModifiers(c=>e("collection",n.data),["stop"])),variant:"tonal"}),null,16,["icon"])]),_:1},8,["text"])):createCommentVNode("",!0),createBaseVNode("span",{class:"mt-2 mx-font-size d-inline-block text-truncate",style:normalizeStyle({width:n.width+"px"})},toDisplayString$1(n.data.filename),5)]),_:1}))}}),Block_vue_vue_type_style_index_0_scoped_c33e79ef_lang="",Block=_export_sfc(_sfc_main$6,[["__scopeId","data-v-c33e79ef"]]),instance=axios$1.create({baseURL:"",headers:{},withCredentials:!0,timeout:15e3});instance.interceptors.request.use(t=>(t.method==="post"&&(t.data||(t.data={}),t.data.token="yjd0VY6sWG6B4pLuQ5eZ5Q=="),t),t=>Promise.reject(t));const post=instance.post.bind(instance),useBlockCollect=()=>{const t=ref([]),e=ref(),r=ref(-1),n=l=>Gr(void 0,null,function*(){const v=yield post("/api/app/blocks/CollectBlock",{});if(v.data.code==="success")return l.collect=!l.collect,!0;useMessage().error(v.data.msg)}),o=()=>Gr(void 0,null,function*(){const l=yield post("/api/app/blocks/MyCollect");l.data.code==="success"&&(e.value=l.data.result.filter(v=>typeof v.id=="number"),e.value&&e.value[0]&&(r.value=e.value[0].id))});watch(r,()=>{t.value=[],c({side:"end",done:()=>{}})});const s=()=>{o().then(()=>{c({side:"end",done:()=>{}})})},c=({side:l,done:v})=>{post("/api/app/blocks/CollectList",{typeId:r.value}).then(x=>{x.data.code==="success"?(t.value=[...t.value,...x.data.result.blocksList],v("ok")):v("error")},()=>v("error"))};return{collectionList:t,collectionTypes:e,collectionTypeId:r,collection:n,requestCollectData:s}},_hoisted_1$1={key:0,class:"mx_block_library_box"},_hoisted_2={class:"d-flex flex-column h-100"},_hoisted_3={class:"d-flex mt-1 mb-2"},_hoisted_4={class:"d-flex mt-1 mb-2"},_hoisted_5={class:"d-flex flex-wrap justify-space-around"},_sfc_main$5=defineComponent$1({__name:"BlockLibrary",setup(t){const{isShowBlockLibrary:e,galleryTypes:r,galleryType:n,searchKeyword:o,blocksData:s,requestBlockLibraryData:c,onSearch:l,blockTypes:v,secondaryBlockTypes:x,typeId:w,blockType:_}=useBlockLibrary(),{collection:b,collectionList:E,collectionTypes:I,collectionTypeId:O}=useBlockCollect(),{setCommandFocus:N}=useFocus$1(),A=ne=>{N(!ne)},z=ne=>{const{baseUrl:W}=getUploadFileConfig()||{};callCommand("Mx_Insert",{filePath:`${W}/blocks/${ne.secondType}/${ne.firstType}/${ne.filehash}.mxweb`,name:ne.filename})},G=ne=>{const W=x.value.find(B=>B.id===ne);!W||v.value&&(_.value=v.value.find(({pid:B})=>B===W.pid))},V=ne=>{ne.list.some(W=>W.id===w.value)||(w.value=ne.list[0].id)};return(ne,W)=>unref(e)?(openBlock(),createElementBlock("div",_hoisted_1$1,[createBaseVNode("div",_hoisted_2,[createBaseVNode("div",_hoisted_3,[createVNode(VSelect,{items:unref(r),modelValue:unref(n),"onUpdate:modelValue":W[0]||(W[0]=B=>isRef(n)?n.value=B:null),class:"mr-1"},null,8,["items","modelValue"]),unref(n)===unref(GalleryType).Cloud?(openBlock(),createBlock(VTextField,{key:0,modelValue:unref(o),"onUpdate:modelValue":W[1]||(W[1]=B=>isRef(o)?o.value=B:null),"onUpdate:focused":A,onChange:unref(l),class:"w-75","append-inner-icon":"class:iconfont sousuo"},null,8,["modelValue","onChange"])):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_4,[createVNode(VSelect,{items:unref(v),modelValue:unref(_),"onUpdate:modelValue":[W[2]||(W[2]=B=>isRef(_)?_.value=B:null),V],class:"mr-1","item-title":"pname","return-object":""},null,8,["items","modelValue"]),createVNode(VSelect,{items:unref(x),modelValue:unref(w),"onUpdate:modelValue":[W[3]||(W[3]=B=>isRef(w)?w.value=B:null),G],"item-title":"name","item-value":"id"},null,8,["items","modelValue"])]),createVNode(VInfiniteScroll,{height:`calc(100vh - ${unref(useHeaderHeight)().value+120}px)`,onLoad:unref(c)},{default:withCtx(()=>[createBaseVNode("div",_hoisted_5,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(s),(B,q)=>(openBlock(),createBlock(Block,{data:B,key:q,onClick:D=>z(B),onCollection:unref(b)},null,8,["data","onClick","onCollection"]))),128))])]),_:1},8,["height","onLoad"])])])):createCommentVNode("",!0)}}),BlockLibrary_vue_vue_type_style_index_0_lang="",BlockLibrary_vue_vue_type_style_index_1_scoped_abfd4edd_lang="",BlockLibrary=_export_sfc(_sfc_main$5,[["__scopeId","data-v-abfd4edd"]]);function keepDecimal(t,e){const r=Number(t);if(isNaN(r))return t;const n=Number(r.toFixed(e));return isNaN(n)?0:n}function clampNumber(t,e,r){return Math.min(Math.max(t,e),r)}const useLine=({getFirstSelectData:t,update:e,selectUpdateFun:r})=>{const n={categoryName:"\u51E0\u4F55\u56FE\u5F62",isShowTypes:["\u76F4\u7EBF"]},o=()=>Gr(void 0,null,function*(){const N=t();if(N.type===McObjectIdType.kMxCAD){const A=new MxCADUiPrPoint;A.setMessage(`
  4698. \u5728\u56FE\u5F62\u4E2D\u62FE\u53D6\u70B9:`);let z=Number(c.ref.value),G=Number(l.ref.value),V=Number(v.ref.value);if(isNaN(z)||isNaN(G)||isNaN(V)){const B=N.objId.getMcDbEntity();if(!B)return;z=B.startPoint.x,G=B.startPoint.y,V=B.startPoint.z}let ne=new McGePoint3d(z,G,V);A.setBasePt(ne);let W=yield A.go();if(!W)return;r({mxcadFun:(B,q)=>{B.startPoint=q}},W)}e()}),s=()=>Gr(void 0,null,function*(){const N=t();if(N.type===McObjectIdType.kMxCAD){const A=new MxCADUiPrPoint;A.setMessage(`
  4699. \u5728\u56FE\u5F62\u4E2D\u62FE\u53D6\u70B9:`);let z=Number(x.ref.value),G=Number(w.ref.value),V=Number(_.ref.value);if(isNaN(z)||isNaN(G)||isNaN(V)){const B=N.objId.getMcDbEntity();if(!B)return;z=B.endPoint.x,G=B.endPoint.y,V=B.endPoint.z}let ne=new McGePoint3d(z,G,V);A.setBasePt(ne);let W=yield A.go();if(!W)return;r({mxcadFun:(B,q)=>{B.endPoint=q}},W)}e()}),c=defineRightDrawerUIProp(ei(Pt({},n),{type:"input",label:"\u5F00\u59CB\u70B9X",definePropRef:{everyMxcadFun(N,A){var z,G;return((z=N.startPoint)==null?void 0:z.x)===((G=A.startPoint)==null?void 0:G.x)},mxcadGet(N){c.ref.value=keepDecimal(N.startPoint.x,3)},McClass:McDbLine,mxcadSet(N,A){A=Number(A),!isNaN(A)&&(N.startPoint.x=A,N.startPoint=new McGePoint3d(A,N.startPoint.y,N.startPoint.z))}},getPoint:o})),l=defineRightDrawerUIProp(ei(Pt({},n),{type:"input",label:"\u5F00\u59CB\u70B9Y",definePropRef:{everyMxcadFun(N,A){var z,G;return((z=N.startPoint)==null?void 0:z.y)===((G=A.startPoint)==null?void 0:G.y)},mxcadGet(N){l.ref.value=keepDecimal(N.startPoint.y,3)},McClass:McDbLine,mxcadSet(N,A){A=Number(A),!isNaN(A)&&(N.startPoint.y=A,N.startPoint=new McGePoint3d(N.startPoint.x,A,N.startPoint.z))}},getPoint:o})),v=defineRightDrawerUIProp(ei(Pt({},n),{type:"input",label:"\u5F00\u59CB\u70B9Z",definePropRef:{everyMxcadFun(N,A){var z,G;return((z=N.startPoint)==null?void 0:z.z)===((G=A.startPoint)==null?void 0:G.z)},mxcadGet(N){v.ref.value=keepDecimal(N.startPoint.z,3)},McClass:McDbLine,mxcadSet(N,A){A=Number(A),!isNaN(A)&&(N.startPoint.z=A,N.startPoint=new McGePoint3d(N.startPoint.x,N.startPoint.y,A))}},getPoint:o})),x=defineRightDrawerUIProp(ei(Pt({},n),{type:"input",label:"\u7ED3\u675F\u70B9X",getPoint:s,definePropRef:{everyMxcadFun(N,A){var z,G;return((z=N.endPoint)==null?void 0:z.x)===((G=A.endPoint)==null?void 0:G.x)},mxcadGet(N){x.ref.value=keepDecimal(N.endPoint.x,3)},McClass:McDbLine,mxcadSet(N,A){A=Number(A),!isNaN(A)&&(N.endPoint.x=A,N.startPoint=new McGePoint3d(A,N.endPoint.y,N.endPoint.z))}}})),w=defineRightDrawerUIProp(ei(Pt({},n),{type:"input",label:"\u7ED3\u675F\u70B9Y",getPoint:s,definePropRef:{everyMxcadFun(N,A){var z,G;return((z=N.endPoint)==null?void 0:z.y)===((G=A.endPoint)==null?void 0:G.y)},mxcadGet(N){w.ref.value=keepDecimal(N.endPoint.y,3)},McClass:McDbLine,mxcadSet(N,A){A=Number(A),!isNaN(A)&&(N.endPoint.y=A,N.startPoint=new McGePoint3d(N.endPoint.x,A,N.endPoint.z))}}})),_=defineRightDrawerUIProp(ei(Pt({},n),{type:"input",label:"\u7ED3\u675F\u70B9Z",getPoint:s,definePropRef:{everyMxcadFun(N,A){var z,G;return((z=N.endPoint)==null?void 0:z.z)===((G=A.endPoint)==null?void 0:G.z)},mxcadGet(N){_.ref.value=keepDecimal(N.endPoint.z,3)},McClass:McDbLine,mxcadSet(N,A){A=Number(A),!isNaN(A)&&(N.endPoint.y=A,N.startPoint=new McGePoint3d(N.endPoint.x,N.endPoint.y,A))}}})),b=computed(()=>{const N=Number(x.ref.value)-Number(c.ref.value);return isNaN(N)?"*\u591A\u79CD*":keepDecimal(N,3)});defineRightDrawerUIProp(ei(Pt({},n),{type:"string",label:"\u589E\u91CFX",valRef:b,disabled:!0}));const E=computed(()=>{const N=Number(w.ref.value)-Number(l.ref.value);return isNaN(N)?"*\u591A\u79CD*":keepDecimal(N,3)});defineRightDrawerUIProp(ei(Pt({},n),{type:"string",label:"\u589E\u91CFY",valRef:E,disabled:!0}));const I=computed(()=>{const N=Number(_.ref.value)-Number(v.ref.value);return isNaN(N)?"*\u591A\u79CD*":keepDecimal(N,3)});defineRightDrawerUIProp(ei(Pt({},n),{type:"string",label:"\u589E\u91CFZ",valRef:I,disabled:!0}));const O=computed(()=>{if(typeof b.value=="string"||typeof E.value=="string")return"*\u591A\u79CD*";const N=keepDecimal(Math.atan2(E.value,b.value)*180/Math.PI,3);return keepDecimal(N,3)});return defineRightDrawerUIProp(ei(Pt({},n),{type:"string",label:"\u89D2\u5EA6",valRef:O,disabled:!0})),{startX:c,startY:l,startZ:v,endX:x,endY:w,endZ:_,getStartPoint:o,getEndPoint:s,incrementX:b,incrementY:E,incrementZ:I,angle:O}},usePolyLine=({defineEntityProp:t,isPolyline:e,getFirstSelectData:r,update:n,selectUpdateFun:o})=>{const s=t(!1,{everyMxcadFun(A,z,G){return G===0},multipleCall(){s.value=!1},mxcadFun(){s.value=!0},McClass:McDbPolyline}),c=t(1,{McClass:McDbPolyline},{mxcadFun(){n()}}),l=t([1],{everyMxcadFun(){return e.value},mxcadFun(A){l.value=[];for(let z=1;z<=A.numVerts();z++)l.value.push(z)},McClass:McDbPolyline}),v={categoryName:"\u51E0\u4F55\u56FE\u5F62",isShow:s};defineRightDrawerUIProp(ei(Pt({},v),{label:"\u9876\u70B9",type:"select",valRef:c,vSelectProps:{items:l,menuProps:{maxHeight:"600"}},isShow:e}));const x=()=>Gr(void 0,null,function*(){const A=r();if(A.type===McObjectIdType.kMxCAD){const z=new MxCADUiPrPoint;z.setMessage(`
  4700. \u5728\u56FE\u5F62\u4E2D\u62FE\u53D6\u70B9:`);const V=A.objId.getMcDbEntity().getPointAt(c.value-1).val;z.setBasePt(V);let ne=yield z.go();if(!ne)return;o({mxcadFun:(W,B)=>{W.setPointAt(c.value-1,B)}},ne)}n()}),w=t(0,{everyMxcadFun(){return e.value},mxcadFun(A){w.value=keepDecimal(A.getPointAt(c.value-1).val.x,3)},McClass:McDbPolyline},{mxcadFun(A,z){const G=A.getPointAt(c.value-1).val;G.x=z,A.setPointAt(c.value-1,G)}}),_=t(0,{everyMxcadFun(){return e.value},mxcadFun(A){_.value=keepDecimal(A.getPointAt(c.value-1).val.y,3)},McClass:McDbPolyline},{mxcadFun(A,z){const G=A.getPointAt(c.value-1).val;G.y=z,A.setPointAt(c.value-1,G)}}),b=t(0,{everyMxcadFun(){return e.value},mxcadFun(A){b.value=keepDecimal(A.getPointAt(c.value-1).val.z,3)},McClass:McDbPolyline},{mxcadFun(A,z){const G=A.getPointAt(c.value-1).val;G.z=z,A.setPointAt(c.value-1,G)}});defineRightDrawerUIProp(ei(Pt({},v),{label:"\u9876\u70B9X",type:"input",valRef:w,getPoint:x,isShow:e})),defineRightDrawerUIProp(ei(Pt({},v),{label:"\u9876\u70B9Y",type:"input",valRef:_,getPoint:x,isShow:e})),defineRightDrawerUIProp(ei(Pt({},v),{label:"\u9876\u70B9Z",type:"input",valRef:b,getPoint:x,isShow:e}));const E=t(0,{everyMxcadFun(){return e.value},mxcadFun(A){const{val1:z}=A.getWidthsAt(c.value-1);E.value=keepDecimal(z,3)},McClass:McDbPolyline},{mxcadFun(A,z){A.setWidthsAt(c.value-1,z,I.value)}});defineRightDrawerUIProp(ei(Pt({},v),{label:"\u9876\u70B9\u8D77\u59CB\u7EBF\u5BBD",type:"input",valRef:E,isShow:e}));const I=t(0,{everyMxcadFun(){return e.value},mxcadFun(A){const{val2:z}=A.getWidthsAt(c.value-1);I.value=keepDecimal(z,3)},McClass:McDbPolyline},{mxcadFun(A,z){A.setWidthsAt(c.value-1,E.value,z)}});defineRightDrawerUIProp(ei(Pt({},v),{label:"\u9876\u70B9\u4E2D\u6B62\u7EBF\u5BBD",type:"input",valRef:I,isShow:e}));const O=t(0,{everyMxcadFun(A,z){return e.value&&A.constantWidth===z.constantWidth},multipleCall(){O.value="*\u591A\u79CD*"},mxcadFun(A){O.value=keepDecimal(A.constantWidth,3)},McClass:McDbPolyline},{mxcadFun(A,z){z=Number(z),!isNaN(z)&&(A.constantWidth=z,I.value=E.value=z)}});defineRightDrawerUIProp({categoryName:"\u51E0\u4F55\u56FE\u5F62",isShowTypes:["\u591A\u6BB5\u7EBF"],label:"\u5168\u5C40\u7EBF\u5BBD",type:"input",valRef:O,isShow:e});const N=t(!1,{everyMxcadFun(A,z){return e.value&&A.isClosed===z.isClosed},multipleCall(){N.value="*\u591A\u79CD*"},mxcadFun(A){N.value=A.isClosed},McClass:McDbPolyline},{mxcadFun(A,z){typeof z!="string"&&(A.isClosed=z)}});return defineRightDrawerUIProp({categoryName:"\u51E0\u4F55\u56FE\u5F62",isShowTypes:["\u591A\u6BB5\u7EBF"],label:"\u95ED\u5408",type:"select",vSelectProps:{items:ref([{value:!0,title:"\u662F"},{value:!1,title:"\u5426"}]),menuProps:{maxHeight:"600"}},isShow:e,valRef:N}),{isNoMultiple:s,index:c,indexs:l,getVertexPoint:x,vertexX:w,vertexY:_,vertexZ:b,vertexLineStartWidth:E,vertexLineEndWidth:I,width:O,isClosed:N}},useCircularArc=({defineEntityProp:t,getFirstSelectData:e,selectUpdateFun:r,update:n})=>{const o={categoryName:"\u51E0\u4F55\u56FE\u5F62",isShowTypes:["\u5706\u5F27"]},s=()=>Gr(void 0,null,function*(){const _=e();if(_.type===McObjectIdType.kMxCAD){const b=new MxCADUiPrPoint;b.setMessage(`
  4701. \u5728\u56FE\u5F62\u4E2D\u62FE\u53D6\u70B9:`);const I=_.objId.getMcDbEntity().center;b.setBasePt(I);let O=yield b.go();if(!O)return;r({mxcadFun:(N,A)=>{N.center=A}},O)}n()}),c=t(0,{everyMxcadFun(_,b){return _.center.x===b.center.x},multipleCall(){c.value="*\u591A\u79CD*"},mxcadFun(_){c.value=keepDecimal(_.center.x,3)},McClass:McDbArc},{mxcadFun(_,b){if(b=Number(b),isNaN(b))return;const E=_.center.clone();E.x=b,_.center=E}}),l=t(0,{everyMxcadFun(_,b){return _.center.y===b.center.y},multipleCall(){l.value="*\u591A\u79CD*"},mxcadFun(_){l.value=keepDecimal(_.center.y,3)},McClass:McDbArc},{mxcadFun(_,b){if(b=Number(b),isNaN(b))return;const E=_.center.clone();E.y=b,_.center=E}}),v=t(0,{everyMxcadFun(_,b){return _.center.z===b.center.z},multipleCall(){v.value="*\u591A\u79CD*"},mxcadFun(_){v.value=keepDecimal(_.center.z,3)},McClass:McDbArc},{mxcadFun(_,b){if(b=Number(b),isNaN(b))return;const E=_.center.clone();E.z=b,_.center=E}});defineRightDrawerUIProp(ei(Pt({},o),{type:"input",label:"\u5F27\u5FC3\u5750\u6807X",getPoint:s,valRef:c})),defineRightDrawerUIProp(ei(Pt({},o),{type:"input",label:"\u5F27\u5FC3\u5750\u6807Y",getPoint:s,valRef:l})),defineRightDrawerUIProp(ei(Pt({},o),{type:"input",label:"\u5F27\u5FC3\u5750\u6807Z",getPoint:s,valRef:v}));const x=t(0,{everyMxcadFun(_,b){return _.radius===b.radius},multipleCall(){x.value="*\u591A\u79CD*"},mxcadFun(_){x.value=keepDecimal(_.radius,3)},McClass:McDbArc},{mxcadFun(_,b){b=Number(b),!isNaN(b)&&(_.radius=b,w.value=b*2)}});defineRightDrawerUIProp(ei(Pt({},o),{type:"input",label:"\u534A\u5F84",valRef:x}));const w=t(0,{everyMxcadFun(_,b){return _.center.x===b.center.x},multipleCall(){w.value="*\u591A\u79CD*"},mxcadFun(_){w.value=keepDecimal(_.radius*2,3)},McClass:McDbArc},{mxcadFun(_,b){b=Number(b),!isNaN(b)&&(x.value=_.radius=b/2)}});return defineRightDrawerUIProp(ei(Pt({},o),{type:"input",label:"\u76F4\u5F84",valRef:w})),{arcCenterX:c,arcCenterY:l,arcCenterZ:v,arcRadius:x,arcDiameter:w,getArcCenterPoint:s}},useCircle=({defineEntityProp:t,getFirstSelectData:e,selectUpdateFun:r,update:n,packFunNoWatch:o},s,c)=>{const l={categoryName:"\u51E0\u4F55\u56FE\u5F62",isShowTypes:["\u5706"]},v=t(0,{everyMxcadFun(A,z){return A.center.x===z.center.x},multipleCall(){v.value="*\u591A\u79CD*"},mxcadFun(A){v.value=keepDecimal(A.center.x,3)},McClass:McDbCircle},{mxcadFun(A,z){if(z=Number(z),isNaN(z))return;const G=A.center.clone();G.x=z,A.center=G}}),x=t(0,{everyMxcadFun(A,z){return A.center.y===z.center.y},multipleCall(){x.value="*\u591A\u79CD*"},mxcadFun(A){x.value=keepDecimal(A.center.y,3)},McClass:McDbCircle},{mxcadFun(A,z){if(z=Number(z),isNaN(z))return;const G=A.center.clone();G.y=z,A.center=G}}),w=t(0,{everyMxcadFun(A,z){return A.center.z===z.center.z},multipleCall(){w.value="*\u591A\u79CD*"},mxcadFun(A){w.value=keepDecimal(A.center.z,3)},McClass:McDbCircle},{mxcadFun(A,z){if(z=Number(z),isNaN(z))return;const G=A.center.clone();G.z=z,A.center=G}}),_=()=>Gr(void 0,null,function*(){const A=e();if(A.type===McObjectIdType.kMxCAD){const z=new MxCADUiPrPoint;z.setMessage(`
  4702. \u5728\u56FE\u5F62\u4E2D\u62FE\u53D6\u70B9:`);const V=A.objId.getMcDbEntity().center;z.setBasePt(V);let ne=yield z.go();if(!ne)return;r({mxcadFun:(W,B)=>{W.center=B}},ne)}n()});defineRightDrawerUIProp(ei(Pt({},l),{type:"input",valRef:v,label:"\u5706\u5FC3\u5750\u6807X",getPoint:_})),defineRightDrawerUIProp(ei(Pt({},l),{type:"input",valRef:x,label:"\u5706\u5FC3\u5750\u6807Y",getPoint:_})),defineRightDrawerUIProp(ei(Pt({},l),{type:"input",valRef:w,label:"\u5706\u5FC3\u5750\u6807Z",getPoint:_}));const b=o(A=>{E.value=A,I.value=A*2,O.value=Math.PI*A*A,N.value=2*Math.PI*A,s.value=N.value,c.value=O.value}),E=t(0,{everyMxcadFun(A,z){return A.radius===z.radius},multipleCall(){E.value="*\u591A\u79CD*"},mxcadFun(A){E.value=keepDecimal(A.radius,3)},McClass:McDbCircle},{mxcadFun(A,z){z=Number(z),!isNaN(z)&&(A.radius=z,b(z))}});defineRightDrawerUIProp(ei(Pt({},l),{type:"input",valRef:E,label:"\u534A\u5F84"}));const I=t(0,{everyMxcadFun(A,z){return A.center.x===z.center.x},multipleCall(){I.value="*\u591A\u79CD*"},mxcadFun(A){I.value=keepDecimal(A.radius*2,3)},McClass:McDbCircle},{mxcadFun(A,z){z=Number(z),!isNaN(z)&&(A.radius=z/2,b(A.radius))}});defineRightDrawerUIProp(ei(Pt({},l),{type:"input",valRef:I,label:"\u76F4\u5F84"}));const O=t(0,{everyMxcadFun(A,z){return A.center.x===z.center.x},multipleCall(){O.value="*\u591A\u79CD*"},mxcadFun(A){O.value=keepDecimal(Math.PI*A.radius*A.radius,3)},McClass:McDbCircle},{mxcadFun(A,z){z=Number(z),!isNaN(z)&&(A.radius=z/Math.PI/A.radius,b(A.radius))}});defineRightDrawerUIProp(ei(Pt({},l),{type:"input",valRef:O,label:"\u9762\u79EF"}));const N=t(0,{everyMxcadFun(A,z){return A.center.x===z.center.x},multipleCall(){N.value="*\u591A\u79CD*"},mxcadFun(A){N.value=keepDecimal(2*Math.PI*A.radius,3)},McClass:McDbCircle},{mxcadFun(A,z){z=Number(z),!isNaN(z)&&(A.radius=z/Math.PI/2,b(A.radius))}});return defineRightDrawerUIProp(ei(Pt({},l),{type:"input",valRef:N,label:"\u5468\u957F"})),{circleCenterX:v,circleCenterY:x,circleCenterZ:w,circleRadius:E,circleDiameter:I,circleArea:O,circlePerimeter:N,getCircleCenterPoint:_}},useBlock=({defineEntityProp:t,getFirstSelectData:e,selectUpdateFun:r,update:n})=>{const o={categoryName:"\u51E0\u4F55\u56FE\u5F62",isShowTypes:["\u56FE\u5757"]},s=t(0,{everyMxcadFun(E,I){return E.position.x===I.position.x},multipleCall(){return s.value="*\u591A\u79CD*"},mxcadFun(E){s.value=keepDecimal(E.position.x,3)},McClass:McDbBlockReference},{mxcadFun(E,I){if(I=Number(I),isNaN(I))return;const O=E.position.clone();O.x=I,E.position=O}}),c=t(0,{everyMxcadFun(E,I){return E.position.y===I.position.y},multipleCall(){return c.value="*\u591A\u79CD*"},mxcadFun(E){c.value=keepDecimal(E.position.y,3)},McClass:McDbBlockReference},{mxcadFun(E,I){if(I=Number(I),isNaN(I))return;const O=E.position.clone();O.y=I,E.position=O}}),l=t(0,{everyMxcadFun(E,I){return E.position.z===I.position.z},multipleCall(){return l.value="*\u591A\u79CD*"},mxcadFun(E){l.value=keepDecimal(E.position.z,3)},McClass:McDbBlockReference},{mxcadFun(E,I){if(I=Number(I),isNaN(I))return;const O=E.position.clone();O.z=I,E.position=O}}),v=()=>Gr(void 0,null,function*(){const E=e();if(E.type===McObjectIdType.kMxCAD){const I=new MxCADUiPrPoint;I.setMessage(`
  4703. \u5728\u56FE\u5F62\u4E2D\u62FE\u53D6\u70B9:`);const N=E.objId.getMcDbEntity().position;I.setBasePt(N);let A=yield I.go();if(!A)return;r({mxcadFun:(z,G)=>{z.position=G}},A)}n()});defineRightDrawerUIProp(ei(Pt({},o),{type:"input",label:"\u4F4D\u7F6E\u5750\u6807X",valRef:s,getPoint:v})),defineRightDrawerUIProp(ei(Pt({},o),{type:"input",label:"\u4F4D\u7F6E\u5750\u6807Y",valRef:c,getPoint:v})),defineRightDrawerUIProp(ei(Pt({},o),{type:"input",label:"\u4F4D\u7F6E\u5750\u6807Z",valRef:l,getPoint:v}));const x=t(0,{everyMxcadFun(E,I){return E.rotation===I.rotation},multipleCall(){return x.value="*\u591A\u79CD*"},mxcadFun(E){x.value=keepDecimal(E.rotation,3)},McClass:McDbBlockReference},{mxcadFun(E,I){I=Number(I),!isNaN(I)&&(E.rotation=I)}});defineRightDrawerUIProp(ei(Pt({},o),{type:"input",label:"\u65CB\u8F6C\u89D2\u5EA6",valRef:x}));const w=t(0,{everyMxcadFun(E,I){return E.scaleFactors.x===I.scaleFactors.x},multipleCall(){return w.value="*\u591A\u79CD*"},mxcadFun(E){w.value=keepDecimal(E.scaleFactors.x,3)},McClass:McDbBlockReference},{mxcadFun(E,I){if(I=Number(I),isNaN(I))return;const O=E.scaleFactors.clone();O.x=I,E.scaleFactors=O}});defineRightDrawerUIProp(ei(Pt({},o),{type:"input",label:"\u7F29\u653E\u6BD4\u4F8BX",valRef:w}));const _=t(0,{everyMxcadFun(E,I){return E.scaleFactors.y===I.scaleFactors.y},multipleCall(){return _.value="*\u591A\u79CD*"},mxcadFun(E){_.value=keepDecimal(E.scaleFactors.y,3)},McClass:McDbBlockReference},{mxcadFun(E,I){if(I=Number(I),isNaN(I))return;const O=E.scaleFactors.clone();O.y=I,E.scaleFactors=O}});defineRightDrawerUIProp(ei(Pt({},o),{type:"input",label:"\u7F29\u653E\u6BD4\u4F8BY",valRef:_}));const b=t("",{mxcadFun(E){b.value=E.blockName},McClass:McDbBlockReference});return defineRightDrawerUIProp(ei(Pt({},o),{type:"string",label:"\u56FE\u5757\u540D",valRef:b,disabled:!0})),{positionX:s,positionY:c,positionZ:l,rotation:x,scaleX:w,scaleY:_,name:b,getCircleCenterPoint:v}},useMxDbShape=({defineEntityProp:t,isShape:e})=>{const r={isShow:e,categoryName:"\u5F62\u72B6"},n=t("",{everyMxdrawFun(v,x){return v.closed===x.closed},multipleCall(){n.value="*\u591A\u79CD*"},mxdrawFun(v){n.value=v.closed?"\u662F":"\u5426"},MxClass:MxDbShape},{mxdrawFun(v,x){v.closed=x==="\u662F"}});defineRightDrawerUIProp(ei(Pt({},r),{type:"select",label:"\u662F\u5426\u95ED\u5408",valRef:n,vSelectProps:{items:ref(["\u662F","\u5426"])}}));const o=t(0,{everyMxdrawFun(v,x){return v.curveSegments===x.curveSegments},multipleCall(){o.value="*\u591A\u79CD*"},mxdrawFun(v){o.value=v.curveSegments},MxClass:MxDbShape},{mxdrawFun(v,x){x=Number(x),!isNaN(x)&&(v.curveSegments=x)}});defineRightDrawerUIProp(ei(Pt({},r),{type:"input",label:"\u66F2\u7EBF\u7EC6\u5206\u7A0B\u5EA6",valRef:o}));const s=t("",{everyMxdrawFun(v,x){return v.isFill===x.isFill},multipleCall(){s.value="*\u591A\u79CD*"},mxdrawFun(v){s.value=v.isFill?"\u662F":"\u5426"}},{mxdrawFun(v,x){v.isFill=x==="\u662F"}});defineRightDrawerUIProp(ei(Pt({},r),{type:"select",label:"\u662F\u5426\u586B\u5145",valRef:s,vSelectProps:{items:ref(["\u662F","\u5426"])}}));const c=computed(()=>s.value==="\u662F");onLoadComplete(()=>{defineRightDrawerUIProp({categoryName:"\u5F62\u72B6\u586B\u5145",type:"color",label:"\u63CF\u8FB9\u989C\u8272",isShow:c,mxPropName:"stroke",definePropRef:{MxClass:MxDbShape}})});const l=t(0,{everyMxdrawFun(v,x){return v.strokeLineWidth===x.strokeLineWidth},multipleCall(){l.value="*\u591A\u79CD*"},mxdrawFun(v){l.value=v.strokeLineWidth},MxClass:MxDbShape},{mxdrawFun(v,x){x=Number(x),!isNaN(x)&&(v.strokeLineWidth=x)}});return defineRightDrawerUIProp({categoryName:"\u5F62\u72B6\u586B\u5145",type:"input",label:"\u63CF\u8FB9\u7EBF\u6BB5\u5BBD\u5EA6",isShow:c,valRef:l}),{closed:n,curveSegments:o,isFill:s,strokeLineWidth:l}},useCurveParameter=({isMultipleChoices:t,isMxcad:e,isCurve:r})=>{const n=defineRightDrawerUIProp({type:"string",disabled:!0,categoryName:"\u66F2\u7EBF\u53C2\u6570",label:"\u9762\u79EF",definePropRef:{everyMxdrawFun(s,c,l){return!t()&&l===0},mxcadGet(s){n.ref.value=keepDecimal(s.getArea().val,3)},multipleCall(){n.ref.value="*\u591A\u79CD*"},McClass:McDbCurve},isShow:r}),o=defineRightDrawerUIProp({type:"string",disabled:!0,categoryName:"\u66F2\u7EBF\u53C2\u6570",label:"\u957F\u5EA6",definePropRef:{everyMxcadFun(s,c,l){return!t()&&l===0},mxcadGet(s){o.ref.value=keepDecimal(s.getLength().val,3)},multipleCall(){o.ref.value="*\u591A\u79CD*"},McClass:McDbCurve},isShow:r});return{area:n,length:o}},useMxDbLeadComment=()=>{const t={categoryName:"\u6587\u5B57",isShowTypes:["\u5F15\u7EBF\u6807\u6CE8","\u5BA1\u56FE\u6807\u6CE8"]},e=defineRightDrawerUIProp(ei(Pt({},t),{label:"\u5185\u5BB9",type:"input",mxPropName:"text",definePropRef:{MxClass:[MxDbLeadComment,MxDbRectBoxLeadComment]}})),r=defineRightDrawerUIProp(ei(Pt({},t),{label:"\u53D6\u5C4F\u5E55\u50CF\u7D20\u7ED8\u56FE\u5355\u4F4D",type:"select",mxPropName:"fixedSize",vSelectProps:{items:ref(["\u662F","\u5426"])},definePropRef:{MxClass:[MxDbLeadComment,MxDbRectBoxLeadComment],mxdrawGet(s){r.ref.value=s.fixedSize?"\u662F":"\u5426"},mxdrawSet(s,c){s.fixedSize=c==="\u662F"}}})),n=defineRightDrawerUIProp(ei(Pt({},t),{label:"\u5BBD\u5EA6",type:"input",mxPropName:"textWidth",definePropRef:{MxClass:[MxDbLeadComment,MxDbRectBoxLeadComment],mxdrawSet(s,c){c=Number(c),!isNaN(c)&&(s.textWidth=c)}}})),o=defineRightDrawerUIProp(ei(Pt({},t),{label:"\u9AD8\u5EA6",type:"input",mxPropName:"textHeight",definePropRef:{MxClass:[MxDbLeadComment,MxDbRectBoxLeadComment]}}));return{text:e,fixedSize:r,textHeight:o,textWidth:n}};let isInit=!1;const useBaseProps=({name:t,isMxcad:e,isMxdraw:r})=>{onOpenFileComplete(()=>{if(isInit)return;isInit=!0;const n=defineRightDrawerUIProp({type:"string",label:"\u7C7B\u578B",disabled:!0,definePropRef:{defaultVal:"",everyMxcadFun:(G,V)=>G.getObjectID().type===V.getObjectID().type,multipleCall(){n.ref.value="*\u591A\u79CD*"},mxdrawGet(){n.ref.value="\u6279\u6CE8"},mxcadGet(){n.ref.value="CAD"}}}),o=defineRightDrawerUIProp({type:"string",label:"\u540D\u79F0",disabled:!0,definePropRef:{defaultVal:"",everyMxcadFun(){return!0},everyMxdrawFun(){return!0},mxdrawGet(){o.ref.value=t.value},mxcadGet(){o.ref.value=t.value}}});defineRightDrawerUIProp({type:"color",label:"\u989C\u8272",mcPropName:"trueColor",mxPropName:"color",definePropRef:{}});const s=defineRightDrawerUIProp({type:"select",label:"\u662F\u5426\u586B\u5145",mxPropName:"isFill",vSelectProps:{items:ref(["\u662F","\u5426"])},definePropRef:{MxClass:MxDbArea,mxdrawGet(G){s.ref.value=G.isFill?"\u662F":"\u5426"},mxdrawSet(G,V){G.isFill=V==="\u662F"}},isShowTypes:["\u9762\u79EF\u6D4B\u91CF"]});defineRightDrawerUIProp({type:"color",label:"\u586B\u5145\u989C\u8272",mxPropName:"fillColor",definePropRef:{},isShow:s.isShowRef}),defineRightDrawerUIProp({type:"input",label:"\u586B\u5145\u900F\u660E\u5EA6",mxPropName:"fillOpacity",inputProps:{min:0,step:.01},definePropRef:{MxClass:MxDbArea,mxdrawSet(G,V){V=Number(V),!isNaN(V)&&(G.fillOpacity=V)}},isShow:s.isShowRef});const c=useLayer(),{create:l}=c,{list:v}=storeToRefs(c),x=defineRightDrawerUIProp({type:"select",label:"\u56FE\u5C42",vSelectProps:{items:v,itemTitle:"name",itemValue:"id",returnObject:!0},definePropRef:{everyMxcadFun(G,V){return G.layer===V.layer},everyMxdrawFun(G,V){return G.layer===V.layer},defaultVal:v.value[0],multipleCall(){x.ref.value=l({name:"*\u591A\u79CD*"})},mxdrawGet(G){const V=v.value.find(({name:ne})=>ne===G.layer);!V||(x.ref.value=V)},mxcadGet(G){const V=v.value.find(({name:ne})=>ne===G.layer);!x||(x.ref.value=V)},mxcadSet(G,V){G.layer=V.name},mxdrawSet(G,V){G.layer=V.name}},isShow:e}),{createLineType:w}=useLineType(),{lineTypeList:_}=storeToRefs(useLineType()),b=defineRightDrawerUIProp({type:"select",label:"\u7EBF\u578B",mcPropName:"linetype",vSelectProps:{items:_,itemTitle:"name",returnObject:!0},definePropRef:{multipleCall(){b.ref.value=w({name:"*\u591A\u79CD*"})},mxcadGet(G){const V=_.value.find(({name:ne})=>ne===G.linetype);!V||(b.ref.value=V)},mxcadSet(G,V){V&&(G.linetype=V.name)}},isShow:e}),E=defineRightDrawerUIProp({type:"input",label:"\u7EBF\u578B\u6BD4\u4F8B",mcPropName:"linetypeScale",inputProps:{min:0,step:.001},definePropRef:{defaultVal:0,mxcadGet(G){E.ref.value=keepDecimal(G.linetypeScale,3)},mxcadSet(G,V){V=Number(V),!isNaN(V)&&(G.linetypeScale=V)}},isShow:e});defineRightDrawerUIProp({type:"input",label:"\u900F\u660E\u5EA6",mxPropName:"opacity",inputProps:{min:0,step:.01},definePropRef:{defaultVal:0,mxdrawSet(G,V){V=Number(V),!isNaN(V)&&(G.opacity=V)}},isShow:r});const I=defineRightDrawerUIProp({type:"input",label:"\u6E32\u67D3\u987A\u5E8F",definePropRef:{defaultVal:0,everyMxcadFun(G,V){return G.drawOrder===V.drawOrder},everyMxdrawFun(G,V){return G.renderOrder===V.renderOrder},multipleCall(){I.ref.value="*\u591A\u79CD*"},mxdrawSet(G,V){V=Number(V),!isNaN(V)&&(G.renderOrder=V)},mxdrawGet(G){I.ref.value=G.renderOrder},mxcadGet(G){I.ref.value=G.drawOrder},mxcadSet(G,V){V=Number(V),!isNaN(V)&&(G.drawOrder=V)}}});defineRightDrawerUIProp({type:"input",label:"\u865A\u7EBF\u957F\u5EA6\u95F4\u8DDD",mxPropName:"dDashArray",inputProps:{min:0,step:.01},definePropRef:{defaultVal:0,mxdrawSet(G,V){V=Number(V),!isNaN(V)&&(G.dDashArray=V)}},isShow:r}),defineRightDrawerUIProp({type:"input",label:"\u865A\u5B9E\u7EBF\u957F\u6BD4\u4F8B",mxPropName:"dDashRatio",inputProps:{min:0,step:.01},definePropRef:{defaultVal:0,mxdrawSet(G,V){V=Number(V),!isNaN(V)&&(G.dDashRatio=V)}},isShow:r});const O=defineRightDrawerUIProp({type:"select",label:"\u7EBF\u5BBD\u50CF\u7D20\u5355\u4F4D\u8F6C\u6362",vSelectProps:{items:ref(["\u662F","\u5426"])},definePropRef:{mxdrawGet(G){O.ref.value=G.lineWidthByPixels?"\u662F":"\u5426"},mxdrawSet(G,V){G.lineWidthByPixels=V==="\u662F"}},isShow:r}),N=defineRightDrawerUIProp({type:"select",label:"\u53EF\u89C1",mxPropName:"visible",vSelectProps:{items:ref(["\u662F","\u5426"])},definePropRef:{multipleCall(){N.ref.value="*\u591A\u79CD*"},mxcadGet(G){N.ref.value=G.visible?"\u662F":"\u5426"},mxcadSet(G,V){G.visible=V==="\u662F"},mxdrawGet(G){N.ref.value=G.visible?"\u662F":"\u5426"},mxdrawSet(G,V){G.visible=V==="\u662F"}}});let A=Object.keys(McDb.LineWeight).filter(G=>isNaN(Number(G))).map(G=>{const V=McDb.LineWeight[G];let ne=(V/100).toFixed(2)+"\u6BEB\u7C73";return G==="kLnWtByBlock"&&(ne="\u968F\u5757"),G==="kLnWtByLayer"&&(ne="\u968F\u5C42"),G==="kLnWtByLwDefault"&&(ne="\u7F3A\u7701"),{value:V,name:ne}});const z=defineRightDrawerUIProp({type:"select",label:"\u7EBF\u5BBD",mcPropName:"lineweight",mxPropName:"dLineWidth",vSelectProps:{items:ref(A),itemTitle:"name"},inputProps:{min:1},definePropRef:{defaultVal:A[0],multipleCall(){z.type==="input"&&(z.ref.value="*\u591A\u79CD*"),z.type==="select"&&(z.ref.value={value:void 0,name:"*\u591A\u79CD*"})},mxcadGet(G){z.type="select";const V=A.find(({value:ne})=>ne===G.lineweight);!V||(z.ref.value=V)},mxdrawGet(G){z.type="input",z.ref.value=G.dLineWidth},mxcadSet(G,V){if(typeof V=="string")return;const ne=A.find(({value:W})=>W===(typeof V=="object"?V.value:V));ne!=null&&ne.value&&(G.lineweight=ne.value)},mxdrawSet(G,V){typeof V=="number"&&G.setLineWidth(V)}}});defineRightDrawerUIProp({type:"string",label:"\u6CD5\u5411\u5750\u6807",disabled:!0,definePropRef:{defaultVal:"(0,0,1)"},isShow:e}),defineRightDrawerUIProp({type:"string",label:"\u5176\u4ED6\u4FE1\u606F",disabled:!0,definePropRef:{defaultVal:""},isShow:e})})};class Stack{constructor(){tp(this,"items",{});tp(this,"count",0)}push(e){this.items[this.count++]=e}peek(){return this.items[this.count-1]}pop(){if(this.isEmpty())return;const e=this.items[--this.count];return delete this.items[this.count],e}isEmpty(){return this.count===0}size(){return this.count}clear(){this.items={},this.count=0}toString(){if(this.isEmpty())return"";let e=`${this.items[0]}`;for(let r=1;r<this.count;r++)e+=` ${this.items[r]}`;return e}}const useStack=()=>new Stack;function getStyle(t,e){return typeof window.getComputedStyle!="undefined"?window.getComputedStyle(t,null)[e]:typeof t.currentStyle!="undefined"?t.currentStyle[e]:""}const matrix3dReg=/^matrix3d\((?:[-\d.]+,\s*){12}([-\d.]+),\s*([-\d.]+)(?:,\s*[-\d.]+){2}\)/,matrixReg=/^matrix\((?:[-\d.]+,\s*){4}([-\d.]+),\s*([-\d.]+)\)$/,mountedDrag=(t,e)=>{let r=0,n=0;const o=()=>r,s=()=>n,c=t;c.style.position="absolute",c.style.transform="translate3d(0, 0, 1px)";const l=w=>{const _={clientX:0,clientY:0,targetX:0,targetY:0,distX:0,distY:0},b=getStyle(c,"transform"),E=b.match(matrix3dReg)||b.match(matrixReg);_.clientX=w.clientX,_.clientY=w.clientY,_.targetX=E[1],_.targetY=E[2],_.distX=_.clientX-_.targetX,_.distY=_.clientY-_.targetY;const I=w.pageX-c.offsetLeft,O=w.pageY-c.offsetTop,N=function(A){A.stopPropagation(),A.preventDefault(),r=A.clientX-_.distX,n=A.clientY-_.distY,Math.abs(n)>=Math.abs(_.clientY-O)&&(n>0?n=_.clientY-O:n=-(_.clientY-O)),Math.abs(r)>=Math.abs(_.clientX-I)&&(r>0?r=_.clientX-I:r=-(_.clientX-I)),c.style.transform=`translate3d(${r}px, ${n}px, 1px)`};document.onmousemove=N,document.onmouseup=function(){document.onmousemove=document.onmouseup=null}},v=e||t;return v.addEventListener("mousedown",l),{destroy:()=>{v.removeEventListener("mousedown",l)},getMoveX:o,getMoveY:s}},stack=useStack(),useDialogIsShow=(t=!1,e,r)=>{const{setCommandFocus:n}=useFocus$1(),o=ref(t),s=useConfirmDialog(o);t&&(stack.push(o),n(!1));const c=(l,v)=>Gr(void 0,null,function*(){if(l===void 0?o.value=!o.value:isBoolean$2(l)&&(o.value=l),o.value)return n(!1),yield s.reveal(v);s.cancel()});return watch(o,l=>{l?(stack.push(o),n(!1)):(stack.pop(),stack.isEmpty()&&n(!0))}),e&&addCommand(e,r||(l=>c(!0,l))),Pt({isShow:o,showDialog:c},s)},closeDialog=()=>{stack.isEmpty()||(stack.peek().value=!1)},useDialogDrag=()=>{let t;const e=ref(),r=ref();let n;const o=()=>{var x;t=(x=e.value)==null?void 0:x.contentEl,n&&n()};let s=()=>-423,c=()=>-370;const l=()=>s()===0?-370:s(),v=()=>c()===0?-360:c();return onUpdated(()=>{var x,w;if(t=(x=e.value)==null?void 0:x.contentEl,t){o();const{getMoveX:_,getMoveY:b,destroy:E}=mountedDrag(t,(w=r.value)==null?void 0:w.$el);n=E,s=_,c=_}}),onUnmounted(o),{dialog:e,dialogTitleEl:r,closeDialog,getMoveX:l,getMoveY:v}},usePopup=defineStore("popup",()=>{const{isShow:t,showDialog:e}=useDialogIsShow(),r=ref({title:"MxCAD\u8B66\u544A",text:"",cancelTitle:"\u53D6\u6D88",defineTitle:"\u786E\u5B9A"});return{open(n){e(!0),r.value=Pt(Pt({},r.value),n)},isShow:t,showDialog:e,options:r}});let fontConfig;const fetchFontConfig=()=>Gr(void 0,null,function*(){return fontConfig||(fontConfig=yield getConfig(new URL(""+new URL("../fonts/fonts.json",import.meta.url).href,self.location).href)),fontConfig}),useBigFont=(t,e)=>{const r=ref(fontConfig.shx||[]),n=ref(fontConfig.typeTypeFont||["\u4EFF\u5B8B","\u5B8B\u4F53","\u5FAE\u8F6F\u96C5\u9ED1","\u5FAE\u8F6F\u96C5\u9ED1Light","\u65B0\u5B8B\u4F53","\u6977\u4F53","\u7B49\u7EBF","\u7B49\u7EBFLight","\u9ED1\u4F53"]),o=ref(fontConfig.bigshx||["gbcbig.shx","hitxt.shx","hztxt.shx-del","intecad.shx","spec_bar.shx","sec_sl.shx","special.shx","whgdtxt.shx","whgtxt.shx","whtgtxt.shx","whtmtxt.shx","hz.shx","wlc-c.shx"]),s=ref(["\u5E38\u89C4"]),c=computed(()=>t.value[e.value].isBigFont?r.value:n.value),l=computed(()=>t.value[e.value].isBigFont?o.value:s.value);return{fontNames:c,fontStyles:l,getFontName:(w=e.value)=>c.value.find(_=>{t.value[w].fileName}),getFontStyle:(w=e.value)=>l.value.find(_=>{t.value[w].bigFontFileName}),txtFontNames:r,trueTypeFontNames:n,bigFontNames:o}},useStyleCurrent=t=>{const e=ref({bigFontFileName:"",fileName:"",id:-1,name:"",obliquingAngle:0,textSize:0,typeFace:"",xScale:0,isBigFont:!0}),r=ref(!1);return watch(t,(s,c)=>{c.length!==0&&(r.value=!0)},{deep:!0}),{current:e,isUpdate:r,initCurrent:s=>{s=s||getDatabase().getCurrentlyTextStyleName();const c=t.value.find(l=>l.name===s)||t.value[0];e.value=c},closeUpdate:()=>{nextTick(()=>{r.value=!1})}}},useStyleList=()=>{const t=ref([]),e=ref(0),{fontNames:r,fontStyles:n,txtFontNames:o,trueTypeFontNames:s,bigFontNames:c}=useBigFont(t,e),{current:l,isUpdate:v,initCurrent:x,closeUpdate:w}=useStyleCurrent(t),_=B=>{function q(ye){return Number(ye.toFixed(3))}let me=B,{obliquingAngle:D,textSize:F,xScale:re}=me,le=fd(me,["obliquingAngle","textSize","xScale"]);D&&(D=q(D)),F&&(F=q(F)),re&&(re=q(re));const fe=!le.typeFace||le.typeFace==="";return ei(Pt({fileName:"txt.shx",bigFontFileName:"hztxt.shx",id:0,name:"",obliquingAngle:D||0,textSize:F||0,typeFace:"",xScale:re||.8},le),{isBigFont:fe})},b=()=>{const B=getDatabase().getTextStyleTable();t.value=JSON.parse(B.getJson()).map(q=>_(q))},E=()=>onOpenFileComplete(()=>{b(),x(),e.value=t.value.indexOf(l.value),nextTick(()=>{v.value=!1})});onMounted(()=>{E()});const I=(B,q)=>{B.bigFontFileName=q.bigFontFileName,B.fileName=q.fileName,B.name=q.name,B.obliquingAngle=q.obliquingAngle,B.textSize=q.textSize;const D=B.font();B.setFont(q.typeFace,D.bold,D.italic,D.charset,D.pitchAndFamily)},O=()=>{const B=getDatabase().getTextStyleTable(),q=t.value[e.value];if(B.has(q.name,!1)){const D=B.get(q.name);if(!D.isValid())return;const F=D.getMcDbTextStyleTableRecord();if(!F)return;I(F,q),D.erase(!1)}getDatabase().setCurrentlyTextStyle(l.value.name),v.value=!1},N=B=>{const{open:q}=usePopup(),D=()=>{e.value=B};return v.value?q({text:`\u5F53\u524D\u9009\u4E2D\u6837\u5F0F\u5DF2\u88AB\u4FEE\u6539
  4704. \u662F\u5426\u4FDD\u5B58?`,cancelTitle:"\u5426",defineTitle:"\u662F",define:()=>{O(),D(),w()},cancel:()=>{b(),D(),w()}}):D()},A=()=>{l.value=t.value[e.value],getDatabase().setCurrentlyTextStyle(l.value.name)};let z=0;const G=ref("\u6837\u5F0F0"),V=()=>{const B=getDatabase().getTextStyleTable();if(B.has(G.value,!1)){const F=B.get(G.value),re=useMessage();if(F.isValid()){re.error("\u6837\u5F0F\u540D\u79F0\u91CD\u590D"),F.erase(!1),z++,G.value="\u6837\u5F0F"+z;return}}const q=_({name:G.value}),D=new McDbTextStyleTableRecord;if(I(D,q),B.add(D).isValid())return t.value.push(q),e.value=t.value.length-1,nextTick(()=>{v.value=!1}),z++,G.value="\u6837\u5F0F"+z,!0},ne=()=>{const B=t.value[e.value].name,D=getDatabase().getTextStyleTable().get(B),F=D.isValid();F&&D.erase(),t.value.splice(e.value,1),t.value[e.value+1]?e.value++:t.value[e.value-1]?e.value--:e.value=0,nextTick(()=>{F&&(v.value=!1)})},W=computed(()=>t.value.map(({name:B})=>B));return{list:t,current:l,index:e,fontNames:r,fontStyles:n,newStyleName:G,isUpdate:v,init:E,setIndex:N,putCurrent:A,add:V,remove:ne,apply:O,textStyles:W,txtFontNames:o,trueTypeFontNames:s,bigFontNames:c}},useTextStyle=defineStore("textStyle",()=>useStyleList());let dialog$1;const open=t=>new Promise(e=>Gr(void 0,null,function*(){dialog$1.onConfirm(({text:r})=>{e(r)}),dialog$1.cancel(()=>{e(!1)}),dialog$1.showDialog(!0,t)})),useMultilineTextDialog=()=>(dialog$1||(dialog$1=useDialogIsShow(!1)),{dialog:dialog$1,open});let isLoad$1=!1;const useMText=({defineEntityProp:t,getFirstSelectData:e,selectUpdateFun:r})=>{if(isLoad$1)return;isLoad$1=!0;const o={categoryName:"\u6587\u5B57",isShow:getIsType("\u591A\u884C\u6587\u5B57")},s=defineRightDrawerUIProp(ei(Pt({},o),{type:"input",inputProps:{},label:"\u5185\u5BB9",mcPropName:"contents",getPoint:()=>Gr(void 0,null,function*(){const{open:V}=useMultilineTextDialog(),ne=new McDbMText;ne.contents=s.ref.value,ne.attachment=McDb.AttachmentPoint.kTopLeft,typeof c.ref.value=="number"&&(ne.textHeight=c.ref.value),ne.textStyle=O.ref.value;const W=yield V(ne);typeof W=="string"&&(s.ref.value=W)}),getPointIcon:"duohangwenben",getPointTip:"\u7F16\u8F91",definePropRef:{everyMxcadFun(V,ne){return V.contents===ne.contents},multipleCall(){s.ref.value="*\u591A\u79CD*"},McClass:McDbMText,mxcadGet(V){s.ref.value=V.contents},mxcadSet(V,ne){V.contents=ne}}})),c=defineRightDrawerUIProp(ei(Pt({},o),{type:"input",label:"\u9AD8\u5EA6",mcPropName:"textHeight",definePropRef:{McClass:McDbMText,everyMxcadFun(V,ne){return V.textHeight===ne.textHeight},multipleCall(){c.ref.value="*\u591A\u79CD*"},mxcadGet(V){c.ref.value=keepDecimal(V.textHeight,3)},mxcadSet(V,ne){ne=Number(ne),!isNaN(ne)&&(V.textHeight=ne)}}})),l=defineRightDrawerUIProp(ei(Pt({},o),{type:"input",label:"\u65CB\u8F6C\u89D2\u5EA6",mcPropName:"rotation",definePropRef:{everyMxcadFun(V,ne){return V.rotation===ne.rotation},multipleCall(){l.ref.value="*\u591A\u79CD*"},mxcadGet(V){l.ref.value=keepDecimal(V.rotation,3)},McClass:McDbMText,mxcadSet(V,ne){ne=Number(ne),!isNaN(ne)&&(V.rotation=ne)}}})),v=defineRightDrawerUIProp(ei(Pt({},o),{type:"input",label:"\u6587\u5B57\u5BBD\u5EA6",mcPropName:"width",definePropRef:{everyMxcadFun(V,ne){return V.width===ne.width},mxcadGet(V){v.ref.value=keepDecimal(V.width,3)},multipleCall(){v.ref.value="*\u591A\u79CD*"},McClass:McDbMText,mxcadSet(V,ne){ne=Number(ne),!isNaN(ne)&&(V.width=ne)}}})),x={Top:"\u4E0A",Middle:"\u4E2D",Bottom:"\u4E0B",Base:"\u57FA",Left:"\u5DE6",Center:"\u4E2D",Right:"\u53F3",Align:"\u5BF9\u9F50",Fit:"\u9002\u5E94",Mid:"\u4E2D"},w=V=>V.replace(/k(\w+)/g,function(ne,W){return W.replace(/([A-Z])/g,"-$1").split("-").reduce((F,re)=>x[re]?F+x[re]:"")}),_=Object.keys(McDb.AttachmentPoint).filter(V=>isNaN(Number(V))&&McDb.AttachmentPoint[V]<10).map(V=>{const ne=w(V),W=McDb.AttachmentPoint[V];return{name:ne,value:W}}),b=defineRightDrawerUIProp(ei(Pt({},o),{type:"select",label:"\u6587\u5B57\u5BF9\u9F50\u65B9\u5F0F",vSelectProps:{items:ref(_),itemTitle:"name"},definePropRef:{everyMxcadFun(V,ne){return V.attachment===ne.attachment},defaultVal:_[0],multipleCall(){b.ref.value={name:"*\u591A\u79CD*",value:McDb.AttachmentPoint.kBaseAlign}},McClass:McDbMText,mxcadGet(V){const ne=_.find(({value:W})=>V.attachment===W);!ne||(b.ref.value=ne)},mxcadSet(V,ne){ne&&(V.attachment=ne)}}})),E=useTextStyle(),{textStyles:I}=storeToRefs(E),O=defineRightDrawerUIProp(ei(Pt({},o),{type:"select",label:"\u6837\u5F0F",mcPropName:"textStyle",vSelectProps:{items:I},definePropRef:{multipleCall(){O.ref.value="*\u591A\u79CD*"},mxcadGet(V){const ne=I.value.find(W=>V.textStyle===W);ne&&(O.ref.value=ne)},McClass:McDbMText,mxcadSet(V,ne){const W=I.value.find(B=>ne===B);W&&(V.textStyle=W)}}})),N=()=>Gr(void 0,null,function*(){const V=e();if(V.type===McObjectIdType.kMxCAD){const ne=new MxCADUiPrPoint;ne.setMessage(`
  4705. \u5728\u56FE\u5F62\u4E2D\u62FE\u53D6\u70B9:`);const B=V.objId.getMcDbEntity().location;ne.setBasePt(B);let q=yield ne.go();if(!q)return;r({mxcadFun:(D,F)=>{D.location=F}},q)}}),A=defineRightDrawerUIProp(ei(Pt({},o),{type:"input",label:"\u4F4D\u7F6E\u5750\u6807X",getPoint:N,definePropRef:{everyMxcadFun(V,ne){return V.location.x===ne.location.x},multipleCall(){A.ref.value="*\u591A\u79CD*"},mxcadGet(V){A.ref.value=keepDecimal(V.location.x,3)},McClass:McDbMText,mxcadSet(V,ne){if(ne=Number(ne),isNaN(ne))return;const W=V.location.clone();W.x=ne,V.location=W}}})),z=defineRightDrawerUIProp(ei(Pt({},o),{type:"input",label:"\u4F4D\u7F6E\u5750\u6807Y",getPoint:N,definePropRef:{everyMxcadFun(V,ne){return V.location.y===ne.location.y},multipleCall(){z.ref.value="*\u591A\u79CD*"},mxcadGet(V){z.ref.value=keepDecimal(V.location.y,3)},McClass:McDbMText,mxcadSet(V,ne){if(ne=Number(ne),isNaN(ne))return;const W=V.location.clone();W.y=ne,V.location=W}}})),G=defineRightDrawerUIProp(ei(Pt({},o),{type:"input",label:"\u4F4D\u7F6E\u5750\u6807Z",getPoint:N,definePropRef:{everyMxcadFun(V,ne){return V.location.z===ne.location.z},multipleCall(){G.ref.value="*\u591A\u79CD*"},mxcadGet(V){G.ref.value=keepDecimal(V.location.z,3)},McClass:McDbMText,mxcadSet(V,ne){if(ne=Number(ne),isNaN(ne))return;const W=V.location.clone();W.z=ne,V.location=W}}}));return{mText:s,textHeight:c,textRotation:l,textWidthFactor:v,locationX:A,locationY:z,locationZ:G,getTextLocation:N,attachments:_,attachment:b,textStyle:O}};let isLoad=!1;const useText=({defineEntityProp:t,getFirstSelectData:e,selectUpdateFun:r,update:n})=>{if(isLoad)return;isLoad=!0;const o=useTextStyle(),{textStyles:s}=storeToRefs(o),c=getIsType("\u5355\u884C\u6587\u5B57"),l={categoryName:"\u6587\u5B57"},v=defineRightDrawerUIProp(ei(Pt({},l),{type:"input",label:"\u5185\u5BB9",mcPropName:"textString",mxPropName:"text",definePropRef:{McClass:McDbText,MxClass:MxDbText},isShow:c})),x=defineRightDrawerUIProp(ei(Pt({},l),{type:"select",label:"\u6837\u5F0F",mcPropName:"textStyle",vSelectProps:{items:s},definePropRef:{mxcadGet(A){const z=s.value.find(G=>A.textStyle===G);z&&(x.ref.value=z)},mxcadSet(A,z){const G=s.value.find(V=>z===V);G&&(A.textStyle=G)},McClass:McDbText},isShow:c})),w=defineRightDrawerUIProp(ei(Pt({},l),{type:"input",label:"\u9AD8\u5EA6",mcPropName:"height",mxPropName:"height",definePropRef:{mxcadGet(A){w.ref.value=keepDecimal(A.height,3)},mxdrawGet(A){w.ref.value=keepDecimal(A.height,3)},mxcadSet(A,z){z=Number(z),!isNaN(z)&&(A.height=z)},mxdrawSet(A,z){z=Number(z),!isNaN(z)&&(A.height=z)},McClass:McDbText,MxClass:MxDbText},isShow:c})),_=defineRightDrawerUIProp(ei(Pt({},l),{type:"input",label:"\u65CB\u8F6C\u89D2\u5EA6",mcPropName:"rotation",definePropRef:{mxcadGet(A){_.ref.value=keepDecimal(A.rotation,3)},mxcadSet(A,z){z=Number(z),!isNaN(z)&&(A.rotation=z)},McClass:McDbText,MxClass:MxDbText},isShow:c})),b=defineRightDrawerUIProp(ei(Pt({},l),{type:"input",label:"\u5BBD\u5EA6\u56E0\u5B50",mcPropName:"widthFactor",definePropRef:{mxcadGet(A){b.ref.value=keepDecimal(A.widthFactor,3)},McClass:McDbText,MxClass:MxDbText,mxcadSet(A,z){z=Number(z),!isNaN(z)&&(A.widthFactor=z)}},isShow:c})),E=()=>Gr(void 0,null,function*(){const A=e();if(A.type===McObjectIdType.kMxCAD){const z=new MxCADUiPrPoint;z.setMessage(`
  4706. \u5728\u56FE\u5F62\u4E2D\u62FE\u53D6\u70B9:`);const V=A.objId.getMcDbEntity().position;z.setBasePt(V);let ne=yield z.go();if(!ne)return;r({mxcadFun:(W,B)=>{W.position=B,W.alignmentPoint=B}},ne)}}),I=defineRightDrawerUIProp(ei(Pt({},l),{type:"input",label:"\u4F4D\u7F6E\u5750\u6807X",getPoint:E,definePropRef:{everyMxcadFun(A,z){return A.position.x===z.position.x},mxcadGet(A){I.ref.value=keepDecimal(A.position.x,3)},McClass:McDbText,mxcadSet(A,z){if(z=Number(z),isNaN(z))return;const G=A.position.clone();G.x=z,A.position=G,A.alignmentPoint=G}},isShow:c})),O=defineRightDrawerUIProp(ei(Pt({},l),{type:"input",label:"\u4F4D\u7F6E\u5750\u6807Y",getPoint:E,definePropRef:{everyMxcadFun(A,z){return A.position.y===z.position.y},mxcadGet(A){O.ref.value=keepDecimal(A.position.y,3)},McClass:McDbText,mxcadSet(A,z){if(z=Number(z),isNaN(z))return;const G=A.position.clone();G.y=z,A.position=G,A.alignmentPoint=G}},isShow:c})),N=defineRightDrawerUIProp(ei(Pt({},l),{type:"input",label:"\u4F4D\u7F6E\u5750\u6807Z",getPoint:E,definePropRef:{everyMxcadFun(A,z){return A.position.z===z.position.z},mxcadGet(A){N.ref.value=keepDecimal(A.position.z,3)},McClass:McDbText,mxcadSet(A,z){if(z=Number(z),isNaN(z))return;const G=A.position.clone();G.z=z,A.position=G,A.alignmentPoint=G}},isShow:c}));return{text:v,textHeight:w,textRotation:_,textWidthFactor:b,textLocationX:I,textLocationY:O,textLocationZ:N,getTextLocation:E,textStyles:s,textStyle:x}};initEntityAttribute();const rightDrawerData=useRightDrawer();useBaseProps(rightDrawerData);const{length:length$1,area}=useCurveParameter(rightDrawerData);useMxDbLeadComment();useLine(rightDrawerData);usePolyLine(rightDrawerData);useCircularArc(rightDrawerData);useCircle(rightDrawerData,length$1.ref,area.ref);useBlock(rightDrawerData);useMxDbShape(rightDrawerData);onOpenFileComplete(()=>{useMText(rightDrawerData),useText(rightDrawerData)});const drawerComponents={DrawingComparison:{isShow:isShowDrawingComparison,component:DrawingComparison,title:"\u56FE\u7EB8\u6BD4\u8F83",cmd:""},BlockLibrary:{isShow:isShowBlockLibrary,component:BlockLibrary,title:"\u56FE\u5757\u5E93",cmd:"Mx_BlockLibrary"},TextSearch:{isShow:isShowTextSearch,component:TextSearch,title:"\u6587\u5B57\u641C\u7D22",cmd:"Mx_FindText"},EntityAttribute:{isShow:isShowEntityAttribute,component:EntityAttribute,title:"\u7279\u6027",onClose:(t,e)=>{var r;isSelected.value?isSelected.value=!isSelected.value:(t(),(r=e.value)==null||r.handleClose())},cmd:"Mx_Properties"}},useDrawerComponents=(t,e)=>{const r=[];t.forEach(c=>{const l=drawerComponents[c];if(!l)return;const v=()=>{var x;n(),l.isShow.value=!0,(x=e.value)==null||x.handleOpen()};return watch(l.isShow,x=>{x&&v()}),l.cmd&&addCommand(l.cmd,v),r.push(l),l});const n=()=>{r==null||r.forEach(c=>{c.isShow.value=!1})},o=computed(()=>{if(!r)return"";for(let c=0;c<r.length;c++){const l=r[c];if(l.isShow.value)return l.title}}),s=keyBindingManager.register({key:[{keyCode:"Escape"}],when(){var c;return(c=e.value)==null?void 0:c.isShow},action(){r.filter(l=>l.isShow.value).forEach(l=>{var v;l.onClose?l.onClose(n,e):(l.isShow.value=!1,(v=e.value)==null||v.handleClose())})}});return onBeforeUnmount(()=>{keyBindingManager.unregister(s)}),{title:o,closeAll:n,components:r}},_sfc_main$4=defineComponent$1({__name:"LeftDrawer",setup(t){const e=ref(),{title:r,closeAll:n,components:o}=useDrawerComponents(uiConfig.leftDrawerComponents||[],e),s=()=>{o.forEach(c=>{c.onClose?c.onClose(n,e):e.value.handleClose()})};return(c,l)=>(openBlock(),createBlock(Drawer,{location:"left",title:unref(r),ref_key:"leftDrawer",ref:e,onClose:s,components:unref(o)},null,8,["title","components"]))}}),LeftDrawer_vue_vue_type_style_index_0_scoped_a1a83899_lang="",LeftDrawer=_export_sfc(_sfc_main$4,[["__scopeId","data-v-a1a83899"]]),_sfc_main$3=defineComponent$1({__name:"RightDrawer",setup(t){const e=ref(),{components:r,title:n,closeAll:o}=useDrawerComponents(uiConfig.rightDrawerComponents||[],e),s=()=>{r.forEach(c=>{c.onClose?c.onClose(o,e):e.value.handleClose()})};return(c,l)=>(openBlock(),createBlock(Drawer,{location:"right",title:unref(n),ref_key:"rightDrawer",ref:e,onClose:s,components:unref(r)},null,8,["title","components"]))}});let rect;const leftDrawerWidth=computed(()=>rect?rect.value.left:0),rightDrawerWidth=computed(()=>rect?rect.value.right:0),useDrawerWidth=()=>{const{mainRect:t}=useLayout();rect=t},_sfc_main$2=defineComponent$1({__name:"index",setup(t){return useDrawerWidth(),(e,r)=>(openBlock(),createElementBlock(Fragment,null,[unref(uiConfig).isShowLeftDrawer?(openBlock(),createBlock(LeftDrawer,{key:0})):createCommentVNode("",!0),unref(uiConfig).isShowRightDrawer?(openBlock(),createBlock(_sfc_main$3,{key:1})):createCommentVNode("",!0)],64))}}),requireModules=Object.assign({"./AboutDialog/index.vue":()=>__vitePreload(()=>import("./index.aab4efdd.js"),["./index.aab4efdd.js","./index.a696a3d7.js","./index.008205f5.css","./index.1dfd09dc.css"],import.meta.url),"./ArrayDialog/index.vue":()=>__vitePreload(()=>import("./index.63642d42.js"),["./index.63642d42.js","./index.a696a3d7.js","./index.008205f5.css","./index.deca2a4c.css"],import.meta.url),"./AttachPictureDialog/index.vue":()=>__vitePreload(()=>import("./index.6f1b2cfc.js"),["./index.6f1b2cfc.js","./index.a696a3d7.js","./index.008205f5.css","./math.58b544d2.js"],import.meta.url),"./CADToPDFDialog/index.vue":()=>__vitePreload(()=>import("./index.dd11c85d.js"),["./index.dd11c85d.js","./index.a696a3d7.js","./index.008205f5.css"],import.meta.url),"./ColorSelectDialog/index.vue":()=>__vitePreload(()=>import("./index.3657b701.js"),["./index.3657b701.js","./index.a696a3d7.js","./index.008205f5.css","./index.42cbb984.js","./index.d49badc3.css","./math.58b544d2.js","./VSlider.4e6efa7b.js","./VSlider.8a420f48.css","./index.b8d03bad.css"],import.meta.url),"./CreateBlocksDialog/index.vue":()=>__vitePreload(()=>import("./index.fe950273.js"),["./index.fe950273.js","./index.a696a3d7.js","./index.008205f5.css","./index.3edcdabc.css"],import.meta.url),"./DWGCutDialog/index.vue":()=>__vitePreload(()=>import("./index.32b48069.js"),["./index.32b48069.js","./index.a696a3d7.js","./index.008205f5.css","./VAutocomplete.71c702e7.js","./VAutocomplete.18b6e582.css","./index.b10088c3.css"],import.meta.url),"./DimensionStyleManagerDialog/index.vue":()=>__vitePreload(()=>import("./index.88468e90.js"),["./index.88468e90.js","./index.a696a3d7.js","./index.008205f5.css","./index.b689de48.css"],import.meta.url),"./DraftingSettingsDialog/index.vue":()=>__vitePreload(()=>import("./index.f7174309.js"),["./index.f7174309.js","./index.a696a3d7.js","./index.008205f5.css","./index.42cbb984.js","./index.d49badc3.css"],import.meta.url),"./InsertDialog/index.vue":()=>__vitePreload(()=>import("./index.60c62931.js"),["./index.60c62931.js","./index.a696a3d7.js","./index.008205f5.css","./VAutocomplete.71c702e7.js","./VAutocomplete.18b6e582.css"],import.meta.url),"./LayerManagementDialog/LinearManagerDialog/index.vue":()=>__vitePreload(()=>import("./index.1a43d021.js"),["./index.1a43d021.js","./index.a696a3d7.js","./index.008205f5.css","./VTable.c59a0e01.js","./VTable.dd323993.css","./index.dd61de2e.css"],import.meta.url),"./LayerManagementDialog/index.vue":()=>__vitePreload(()=>import("./index.e4088d05.js"),["./index.e4088d05.js","./index.a696a3d7.js","./index.008205f5.css","./index.1a43d021.js","./VTable.c59a0e01.js","./VTable.dd323993.css","./index.dd61de2e.css","./math.58b544d2.js","./index.f228e016.css"],import.meta.url),"./LineWeightSettingsDialog/index.vue":()=>__vitePreload(()=>import("./index.cbfa18a9.js"),["./index.cbfa18a9.js","./index.a696a3d7.js","./index.008205f5.css","./VSlider.4e6efa7b.js","./VSlider.8a420f48.css","./index.97499993.css"],import.meta.url),"./LinearManagerDialog/index.vue":()=>__vitePreload(()=>import("./index.cf7bb917.js"),["./index.cf7bb917.js","./index.a696a3d7.js","./index.008205f5.css","./file.11b18773.js","./VTable.c59a0e01.js","./VTable.dd323993.css","./index.2354665a.css"],import.meta.url),"./MessageBoxDialogs/index.vue":()=>__vitePreload(()=>import("./index.c15bec63.js"),["./index.c15bec63.js","./index.a696a3d7.js","./index.008205f5.css"],import.meta.url),"./ModifyDimensionStylesDialog/index.vue":()=>__vitePreload(()=>import("./index.b116ed91.js"),["./index.b116ed91.js","./index.a696a3d7.js","./index.008205f5.css","./index.42cbb984.js","./index.d49badc3.css","./index.a67d4bb4.css"],import.meta.url),"./MultilineTextDialog/index.vue":()=>__vitePreload(()=>import("./index.d6b3d9c1.js"),["./index.d6b3d9c1.js","./index.a696a3d7.js","./index.008205f5.css","./hooks.886f9bd2.js","./index.f59409f6.css"],import.meta.url),"./PatternFillingDialog/index.vue":()=>__vitePreload(()=>import("./index.5b97afa5.js"),["./index.5b97afa5.js","./index.a696a3d7.js","./index.008205f5.css","./file.11b18773.js","./index.4caf214c.css"],import.meta.url),"./PointStyleDialog/index.vue":()=>__vitePreload(()=>import("./index.defb4b0b.js"),["./index.defb4b0b.js","./index.a696a3d7.js","./index.008205f5.css","./index.8ada0010.css"],import.meta.url),"./PopupDialog/index.vue":()=>__vitePreload(()=>import("./index.abac4a3f.js"),["./index.abac4a3f.js","./index.a696a3d7.js","./index.008205f5.css"],import.meta.url),"./QuickSelectionDialog/index.vue":()=>__vitePreload(()=>import("./index.0481f111.js"),["./index.0481f111.js","./index.a696a3d7.js","./index.008205f5.css","./index.0f000287.css"],import.meta.url),"./SelectUploadXRefFileDialog/index.vue":()=>__vitePreload(()=>import("./index.d930afe0.js"),["./index.d930afe0.js","./index.a696a3d7.js","./index.008205f5.css","./VTable.c59a0e01.js","./VTable.dd323993.css","./index.233e691d.css"],import.meta.url),"./SetUpDialog/index.vue":()=>__vitePreload(()=>import("./index.08e3af20.js"),["./index.08e3af20.js","./index.a696a3d7.js","./index.008205f5.css","./VSlider.4e6efa7b.js","./VSlider.8a420f48.css","./index.d341863f.css"],import.meta.url),"./ShortcutKeySettingsDialog/index.vue":()=>__vitePreload(()=>import("./index.c672fa01.js"),["./index.c672fa01.js","./index.a696a3d7.js","./index.008205f5.css","./VTable.c59a0e01.js","./VTable.dd323993.css","./index.65981c7c.css"],import.meta.url),"./SingleLineTextDialog/index.vue":()=>__vitePreload(()=>import("./index.935d289d.js"),["./index.935d289d.js","./index.a696a3d7.js","./index.008205f5.css","./hooks.886f9bd2.js"],import.meta.url),"./TableDialog/index.vue":()=>__vitePreload(()=>import("./index.2986e58c.js"),["./index.2986e58c.js","./index.a696a3d7.js","./index.008205f5.css","./index.9bbd422f.css"],import.meta.url),"./TextFindDialog/index.vue":()=>__vitePreload(()=>import("./index.633d62dc.js"),["./index.633d62dc.js","./index.a696a3d7.js","./index.008205f5.css","./VAutocomplete.71c702e7.js","./VAutocomplete.18b6e582.css","./index.d12aecf2.css"],import.meta.url),"./TextStyleDialog/index.vue":()=>__vitePreload(()=>import("./index.1a846fc6.js"),["./index.1a846fc6.js","./index.a696a3d7.js","./index.008205f5.css","./index.2b427c6d.css"],import.meta.url)});let components=[];for(const t in requireModules){const e=requireModules[t];components.push(defineAsyncComponent(e))}const _sfc_main$1=defineComponent$1({__name:"index",setup(t){const{isShow:e,abort:r,hideLoading:n}=useLoadingData(),o=()=>{n(),r.value&&(r.value(),r.value=void 0)};return(s,c)=>(openBlock(),createBlock(VOverlay,{modelValue:unref(e),"onUpdate:modelValue":c[0]||(c[0]=l=>isRef(e)?e.value=l:null),absolute:"","z-index":99999,class:"align-center justify-center",persistent:""},{default:withCtx(()=>[createVNode(VProgressCircular,{indeterminate:"",size:"64",color:"primary"}),withDirectives(createVNode(VBtn,{onClick:o},{default:withCtx(()=>[createTextVNode("\u505C\u6B62")]),_:1},512),[[vShow,unref(r)]])]),_:1},8,["modelValue"]))}}),_hoisted_1=createBaseVNode("template",null,null,-1),_sfc_main=defineComponent$1({__name:"App",setup(t){return(e,r)=>(openBlock(),createBlock(VLayout,null,{default:withCtx(()=>[createVNode(Header),createVNode(_sfc_main$2),createVNode(_sfc_main$f),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(components),n=>(openBlock(),createBlock(resolveDynamicComponent(n)))),256)),createVNode(Footer),_hoisted_1,createVNode(_sfc_main$1)]),_:1}))}}),App_vue_vue_type_style_index_0_lang="";function registerPlugins(t){t.use(createPinia()),t.use(vuetify),t.use(mouseMenu)}window._iconfont_svg_string_3973422='<svg shape-rendering="geometricPrecision"><symbol id="dashujukeshihuaico-" viewBox="0 0 1024 1024"><path d="M57.6 132.48v785.92h908.8V132.48z m844.16 64v203.52H121.6V196.48zM397.44 627.2V464h220.16V627.2z m220.8 64v163.2H397.44V691.2zM121.6 464h211.2V627.2H121.6z m560 0h220.8V627.2h-220.8zM121.6 691.2h211.2v163.2H121.6z m560 163.2V691.2h220.8v163.2z" fill="currentColor" ></path></symbol><symbol id="a-5pingyi" viewBox="0 0 1024 1024"><path d="M68.065543 200.073846h363.126153v51.2H68.065543z" fill="#57B8FF" ></path><path d="M76.20503 164.365128v125.505641L12.927081 225.805128l63.277949-61.44zM423.577337 164.365128v125.505641l63.015385-64.065641-63.015385-61.44zM228.754773 53.825641h52.512821v354.198974h-52.512821z" fill="#57B8FF" ></path><path d="M189.370158 400.410256h128.918974l-63.277948 61.44-65.641026-61.44zM189.370158 61.702564h128.918974L255.011184 0l-65.641026 61.702564z" fill="#57B8FF" ></path><path d="M736.816312 1024h-89.534359c-131.282051 0-205.325128-115.528205-239.458462-225.805128v-69.316923c0-92.422564 123.667692-228.430769 176.180513-166.728205h341.333333A57.501538 57.501538 0 0 1 984.414261 618.601026v171.979487C942.14144 928.951795 873.612209 1024 736.816312 1024z" fill="currentColor" ></path><path d="M485.542466 903.483077a62.227692 62.227692 0 0 1-47.261539-33.345641L268.139389 498.871795c-15.753846-35.971282 31.770256-66.691282 84.283077-53.825641a62.227692 62.227692 0 0 1 47.524102 33.345641l170.929231 372.053333c15.753846 34.921026-31.507692 65.641026-85.333333 53.037949zM565.624517 646.695385A52.512821 52.512821 0 0 1 511.798876 603.897436L468.213235 192.459487a49.887179 49.887179 0 0 1 47.524102-52.51282 52.512821 52.512821 0 0 1 55.138462 43.585641l42.27282 410.650256a50.149744 50.149744 0 0 1-47.524102 52.512821zM678.789645 646.695385a49.362051 49.362051 0 0 1-49.887179-48.836923L621.025543 78.769231a49.887179 49.887179 0 0 1 52.51282-48.836923A49.624615 49.624615 0 0 1 723.688107 78.769231l7.876923 518.301538a50.149744 50.149744 0 0 1-52.775385 49.624616zM800.619389 639.081026a52.512821 52.512821 0 0 1-47.261539-52.512821l26.256411-433.755897a50.149744 50.149744 0 0 1 55.401025-45.948718 52.512821 52.512821 0 0 1 47.261539 51.2l-26.256411 433.755897a49.099487 49.099487 0 0 1-55.401025 47.261539zM928.750671 646.695385a54.613333 54.613333 0 0 1-44.635898-59.076923l23.63077-251.536411a54.875897 54.875897 0 0 1 58.026666-52.51282A54.613333 54.613333 0 0 1 1010.670671 343.958974l-23.630769 251.536411a58.289231 58.289231 0 0 1-58.289231 51.2z" fill="currentColor" ></path><path d="M407.560927 744.369231a284.356923 256.525128 0 1 0 568.713846 0 284.356923 256.525128 0 1 0-568.713846 0Z" fill="currentColor" ></path></symbol><symbol id="jiaoduceliang" viewBox="0 0 1033 1024"><path d="M1027.2 0h-1024v1024h1024z" fill="currentColor" ></path><path d="M375.253333 270.08l18.346667 25.813333-77.013333 99.2h-36.693334z m1.28 18.133333l-95.36-119.68h37.12l77.866667 101.76 97.493333 124.8h-36.906666z m6.4-21.333333l69.973334-98.56H490.666667l-90.026667 122.24z" ></path><path d="M515.413333 405.76h-64l-64-85.333333-65.92 85.333333h-64l97.066667-128-95.573333-119.893333h64l64 83.84L448 157.866667h64l-91.733333 124.586666z m-53.333333-21.333333h9.6L405.333333 300.373333l-3.413333 4.693334z m-160.64 0h10.026667l64-81.28-5.546667-7.466667zM401.28 259.626667l4.266667 5.76 64-85.333334h-10.453334z m-97.92-80.426667l65.28 81.92 3.626667-4.693333-59.306667-77.226667zM781.653333 651.093333v109.44h-32v-109.44l-105.386666-159.786666h34.986666l86.4 134.4 85.333334-134.4h34.773333z" ></path><path d="M792.32 771.626667h-53.333333v-117.333334l-114.56-173.653333h60.586666l80.64 125.44 80.426667-125.44h60.586667l-114.346667 173.653333z m-32-21.333334h10.666667v-102.4l96.213333-145.92h-9.386667l-92.16 143.573334-92.16-143.573334h-9.386666l96.213333 145.92z" ></path><path d="M896 792.96h-32.213333v23.466667h-18.56V792.96H810.666667v36.48h-18.773334V792.96h-29.44v23.466667h-18.773333V792.96h-21.333333v36.48H704V792.96h-32v23.466667h-18.56V792.96h-30.933333v36.48h-18.56V792.96h-32v23.466667h-18.773334V792.96h-32v36.48h-18.56V792.96h-39.893333v32h-18.773333V792.96h-39.893334v23.466667h-18.56V792.96h-37.12v32h-18.56V792.96h-37.12v38.4h-18.56V792.96H234.666667v23.466667h-18.56V792.96H178.346667v32h-18.56V792.96H135.253333c-13.866667 0-25.386667 4.053333-25.386666 8.96v24.746667c0 5.12 11.52 8.96 25.386666 8.96H896c14.08 0 25.386667-3.84 25.386667-8.96V801.493333c-0.853333-4.906667-12.16-8.533333-25.386667-8.533333z" fill="currentColor" ></path><path d="M222.506667 149.12v29.866667H198.613333v17.706666h23.893334v33.493334h-36.266667v17.706666h36.266667v28.16H198.613333v17.706667h23.893334v21.333333h-36.266667v17.706667h36.266667v29.44H198.613333v17.92h23.893334V408.96h-36.266667v17.706667h36.266667v31.36H198.613333v17.706666h23.893334v30.72h-36.266667v17.706667h36.266667v38.186667H190.08V579.626667h32.426667v38.186666H198.613333v17.706667h23.893334v35.626667H190.08v17.706666h32.426667v35.84H183.68v17.706667h38.826667v36.906667H198.613333v17.706666h23.893334v36.906667H190.08v17.92h32.426667v23.253333c0 13.44-4.053333 24.32-8.96 24.32H188.8c-4.906667 0-8.96-10.88-8.96-24.32v-725.333333c0-13.44 4.053333-24.32 8.96-24.32H213.333333c5.12-0.64 9.173333 10.24 9.173334 23.68z" fill="currentColor" ></path></symbol><symbol id="zuobiaoceliang_1" viewBox="0 0 1033 1024"><path d="M1026.56 0h-1024v1024h1024z" fill="currentColor" ></path><path d="M896 833.92H133.333333a21.333333 21.333333 0 1 1 0-42.666667H896a21.333333 21.333333 0 1 1 0 42.666667zM640 152.96L145.92 646.186667a21.333333 21.333333 0 1 1-30.08-30.08L609.706667 122.026667A21.333333 21.333333 0 1 1 640 152.96z" fill="currentColor" ></path><path d="M753.706667 693.12l-42.666667-6.186667c13.013333-88.96-4.693333-209.28-162.56-277.333333l17.066667-39.04c192.64 82.773333 200.533333 237.653333 188.16 322.56z" ></path><path d="M657.706667 662.4l151.68 34.346667-93.013334 58.453333-58.666666-92.8zM539.52 466.56l54.186667-145.706667-100.053334 45.653334 45.866667 100.053333z" ></path></symbol><symbol id="xinjian1" viewBox="0 0 1024 1024"><path d="M801.066667 584.533333H223.146667c-15.786667 0-26.24-8.533333-26.24-21.333333s10.453333-21.333333 26.24-21.333333h577.92c15.786667 0 26.24 8.533333 26.24 21.333333a24.106667 24.106667 0 0 1-26.24 21.333333z" ></path><path d="M534.613333 289.493333v547.413334a22.4 22.4 0 0 1-21.333333 24.96A22.613333 22.613333 0 0 1 490.666667 836.906667V289.493333a22.613333 22.613333 0 0 1 21.333333-24.96 22.4 22.4 0 0 1 22.613333 24.96z" ></path><path d="M613.546667 128v168.533333a47.36 47.36 0 0 0 50.56 42.666667h202.666666V896H157.44V128h456.106667m50.56-42.666667H157.44A47.36 47.36 0 0 0 106.666667 128v768a47.36 47.36 0 0 0 50.56 42.666667h709.546666A47.36 47.36 0 0 0 917.333333 896V296.533333H664.106667V85.333333z" fill="currentColor" ></path><path d="M917.546667 298.666667L664.106667 85.333333h-53.12v256h306.56v-42.666666z" ></path></symbol><symbol id="celiang" viewBox="0 0 1024 1024"><path d="M784.426667 554.666667H238.506667a21.333333 21.333333 0 0 1 0-42.666667h545.92a21.333333 21.333333 0 0 1 0 42.666667z" ></path><path d="M252.373333 429.653333v207.36L148.693333 533.333333l103.68-103.68zM770.56 429.653333v207.36L874.24 533.333333l-103.68-103.68z" ></path><path d="M128 917.333333a21.333333 21.333333 0 0 1-21.333333-21.333333V170.666667a21.333333 21.333333 0 0 1 42.666666 0v725.333333a21.333333 21.333333 0 0 1-21.333333 21.333333zM896 917.333333a21.333333 21.333333 0 0 1-21.333333-21.333333V170.666667a21.333333 21.333333 0 0 1 42.666666 0v725.333333a21.333333 21.333333 0 0 1-21.333333 21.333333z" fill="currentColor" ></path></symbol><symbol id="jiantoubiaozhu" viewBox="0 0 1024 1024"><path d="M284.373333 560.853333a21.333333 21.333333 0 0 1-11.093333-39.466666L512 375.466667a21.333333 21.333333 0 1 1 21.333333 36.48l-237.866666 145.706666a21.333333 21.333333 0 0 1-11.093334 3.2z" ></path><path d="M780.586667 236.8L508.586667 605.866667l-4.48-200.533334-176.213334-95.573333 452.693334-72.96z" ></path><path d="M853.333333 170.666667v682.666666H170.666667V170.666667h682.666666m0-42.666667H170.666667a42.666667 42.666667 0 0 0-42.666667 42.666667v682.666666a42.666667 42.666667 0 0 0 42.666667 42.666667h682.666666a42.666667 42.666667 0 0 0 42.666667-42.666667V170.666667a42.666667 42.666667 0 0 0-42.666667-42.666667z" fill="currentColor" ></path><path d="M556.373333 695.466667h-190.08a21.333333 21.333333 0 0 1 0-42.666667h190.08a21.333333 21.333333 0 0 1 0 42.666667zM669.013333 800.213333H354.346667a21.333333 21.333333 0 0 1 0-42.666666h314.666666a21.333333 21.333333 0 1 1 0 42.666666z" fill="currentColor" ></path></symbol><symbol id="huifupizhu" viewBox="0 0 1024 1024"><path d="M709.12 890.88H147.626667a21.333333 21.333333 0 0 1 0-42.666667h561.493333a21.333333 21.333333 0 0 1 0 42.666667z" fill="currentColor" ></path><path d="M143.573333 882.133333a21.333333 21.333333 0 0 1-21.333333-21.333333V228.053333a21.333333 21.333333 0 0 1 42.666667 0v632.746667a21.333333 21.333333 0 0 1-21.333334 21.333333z" fill="currentColor" ></path><path d="M872.533333 249.6H143.573333a21.333333 21.333333 0 0 1 0-42.666667H872.533333a21.333333 21.333333 0 0 1 0 42.666667z" fill="currentColor" ></path><path d="M768 353.493333a21.333333 21.333333 0 0 1-15.146667-36.48l104.533334-103.68a21.333333 21.333333 0 0 1 30.293333 0 21.333333 21.333333 0 0 1 0 30.08l-103.893333 103.893334a21.333333 21.333333 0 0 1-15.786667 6.186666z" fill="currentColor" ></path><path d="M869.12 246.4a21.333333 21.333333 0 0 1-15.146667-6.186667l-103.893333-103.893333a21.333333 21.333333 0 0 1 0-30.293333 21.333333 21.333333 0 0 1 30.08 0l103.893333 103.893333a21.333333 21.333333 0 0 1-14.933333 36.48z" fill="currentColor" ></path><path d="M521.6 424.32H273.493333a21.333333 21.333333 0 0 1 0-42.666667h248.106667a21.333333 21.333333 0 1 1 0 42.666667zM651.52 576H273.493333a21.333333 21.333333 0 0 1 0-42.666667h378.026667a21.333333 21.333333 0 0 1 0 42.666667zM820.053333 730.88H273.493333a21.333333 21.333333 0 0 1 0-42.666667h546.56a21.333333 21.333333 0 0 1 0 42.666667z" ></path></symbol><symbol id="dayin1" viewBox="0 0 1024 1024"><path d="M730.666667 134.826667v91.733333h-435.2v-91.733333h435.2m8.533333-38.4h-452.266667a29.226667 29.226667 0 0 0-29.866666 29.866666V234.666667a29.226667 29.226667 0 0 0 29.866666 29.866666h452.266667a29.226667 29.226667 0 0 0 29.866667-29.866666V126.293333a29.226667 29.226667 0 0 0-29.866667-29.866666z" fill="currentColor" ></path><path d="M880.853333 262.826667l1.92 473.6s0 2.133333-1.92 2.133333H147.413333a2.133333 2.133333 0 0 1-2.133333-2.133333v-471.466667a2.133333 2.133333 0 0 1 2.133333-2.133333h733.44m0-38.4H147.413333a39.466667 39.466667 0 0 0-38.613333 40.533333v471.466667a39.466667 39.466667 0 0 0 38.613333 40.533333h733.44a39.68 39.68 0 0 0 38.613334-40.533333v-471.466667a39.68 39.68 0 0 0-38.613334-40.533333z" fill="currentColor" ></path><path d="M299.733333 922.026667a19.2 19.2 0 0 1-19.2-19.2v-256a19.2 19.2 0 0 1 19.2-19.2h426.666667a19.2 19.2 0 0 1 19.2 19.2v256a19.2 19.2 0 0 1-19.2 19.2z" ></path><path d="M725.333333 648.96v249.6H301.866667v-251.733333H725.333333m2.133334-42.666667h-426.666667a42.666667 42.666667 0 0 0-42.666667 42.666667v256a42.666667 42.666667 0 0 0 42.666667 42.666666h426.666667a42.666667 42.666667 0 0 0 42.666666-42.666666v-256a42.666667 42.666667 0 0 0-42.666666-42.666667z" fill="currentColor" ></path><path d="M662.4 736.426667h-298.666667a20.053333 20.053333 0 0 1-21.333333-21.333334 20.053333 20.053333 0 0 1 21.333333-21.333333h298.666667a20.053333 20.053333 0 0 1 21.333333 21.333333 20.053333 20.053333 0 0 1-21.333333 21.333334z" fill="#57B8FF" ></path><path d="M662.4 693.76h-298.666667a21.333333 21.333333 0 0 0 0 42.666667h298.666667a21.333333 21.333333 0 0 0 0-42.666667z" fill="currentColor" ></path><path d="M577.066667 843.093333h-213.333334a20.053333 20.053333 0 0 1-21.333333-21.333333 20.053333 20.053333 0 0 1 21.333333-21.333333h213.333334a20.053333 20.053333 0 0 1 21.333333 21.333333 23.04 23.04 0 0 1-21.333333 21.333333z" fill="#57B8FF" ></path><path d="M577.066667 800.426667h-213.333334a20.053333 20.053333 0 0 0-21.333333 21.333333 20.053333 20.053333 0 0 0 21.333333 21.333333h213.333334a20.053333 20.053333 0 0 0 21.333333-21.333333 21.333333 21.333333 0 0 0-21.333333-21.333333z" fill="currentColor" ></path></symbol><symbol id="shentubiaozhu" viewBox="0 0 1024 1024"><path d="M879.573333 901.12a21.333333 21.333333 0 0 1-15.146666-6.186667L557.866667 588.373333a21.333333 21.333333 0 1 1 30.08-30.08l306.56 306.56a21.333333 21.333333 0 0 1 0 30.08 21.333333 21.333333 0 0 1-14.933334 6.186667z" fill="currentColor" ></path><path d="M880.426667 899.413333a21.333333 21.333333 0 0 1-21.333334-21.333333v-183.253333a21.333333 21.333333 0 0 1 42.666667 0v183.253333a21.333333 21.333333 0 0 1-21.333333 21.333333z" fill="currentColor" ></path><path d="M127.146667 128m42.666666 0l384 0q42.666667 0 42.666667 42.666667l0 384q0 42.666667-42.666667 42.666666l-384 0q-42.666667 0-42.666666-42.666666l0-384q0-42.666667 42.666666-42.666667Z" ></path><path d="M317.013333 256H192a21.333333 21.333333 0 0 1 0-42.666667h124.586667a21.333333 21.333333 0 0 1 0 42.666667zM405.333333 366.933333H192a21.333333 21.333333 0 0 1 0-42.666666h213.333333a21.333333 21.333333 0 0 1 0 42.666666zM523.093333 493.013333H192a21.333333 21.333333 0 0 1 0-42.666666h330.666667a21.333333 21.333333 0 0 1 0 42.666666z" fill="currentColor" ></path></symbol><symbol id="baocunpizhu" viewBox="0 0 1024 1024"><path d="M662.826667 141.226667v42.666666h-341.333334v-42.666666h341.333334m0-42.666667H322.56a42.666667 42.666667 0 0 0-42.666667 42.666667V183.466667a42.666667 42.666667 0 0 0 42.666667 42.666666h341.333333a42.666667 42.666667 0 0 0 42.666667-42.666666V141.866667a42.666667 42.666667 0 0 0-42.666667-42.666667zM202.88 183.893333H156.586667a21.333333 21.333333 0 0 1 0-42.666666h46.293333a21.333333 21.333333 0 1 1 0 42.666666z" fill="currentColor" ></path><path d="M151.04 874.666667a21.333333 21.333333 0 0 1-21.333333-21.333334V162.56a21.333333 21.333333 0 1 1 42.666666 0V853.333333a21.333333 21.333333 0 0 1-21.333333 21.333334z" fill="currentColor" ></path><path d="M424.96 890.88H151.04a21.333333 21.333333 0 1 1 0-42.666667h273.92a21.333333 21.333333 0 0 1 0 42.666667zM830.506667 483.84a21.333333 21.333333 0 0 1-21.333334-21.333333V162.56a21.333333 21.333333 0 1 1 42.666667 0v299.946667a21.333333 21.333333 0 0 1-21.333333 21.333333z" fill="currentColor" ></path><path d="M830.506667 183.893333H789.333333a21.333333 21.333333 0 0 1 0-42.666666h41.173334a21.333333 21.333333 0 1 1 0 42.666666zM706.133333 935.68a192 192 0 1 1 192-192 192 192 0 0 1-192 192z m0-341.333333a149.333333 149.333333 0 1 0 149.333334 149.333333 149.333333 149.333333 0 0 0-149.333334-149.333333z" fill="currentColor" ></path><path d="M677.333333 836.693333a21.333333 21.333333 0 0 1-15.146666-6.186666l-79.36-79.573334a21.333333 21.333333 0 0 1 30.08-30.08l79.573333 79.573334a21.333333 21.333333 0 0 1 0 30.08 21.333333 21.333333 0 0 1-15.146667 6.186666z" ></path><path d="M684.373333 839.68a21.333333 21.333333 0 0 1-14.933333-6.186667 21.333333 21.333333 0 0 1 0-30.08l129.706667-129.92A21.333333 21.333333 0 1 1 829.226667 704l-129.706667 129.706667a21.333333 21.333333 0 0 1-15.146667 5.973333zM719.786667 381.653333H279.466667a21.333333 21.333333 0 0 1 0-42.666666h440.32a21.333333 21.333333 0 0 1 0 42.666666zM613.333333 533.333333H279.466667a21.333333 21.333333 0 0 1 0-42.666666h333.866666a21.333333 21.333333 0 0 1 0 42.666666zM469.333333 688.213333h-189.866666a21.333333 21.333333 0 0 1 0-42.666666H469.333333a21.333333 21.333333 0 1 1 0 42.666666z" ></path></symbol><symbol id="celiangmianji" viewBox="0 0 1024 1024"><path d="M810.666667 243.84l-23.466667 23.04-16.853333-16.64-13.653334 13.653333 16.853334 16.853334-25.813334 25.813333-25.6-25.813333-13.866666 13.866666L734.08 320l-21.333333 21.333333-16.853334-16.853333-13.653333 13.653333 16.853333 16.853334-16.64 16.426666-25.6-25.6-13.653333 13.653334 25.6 25.813333-22.826667 22.826667-16.853333-16.853334-13.653333 13.653334 16.853333 16.853333-22.826667 22.826667-25.6-25.813334-13.866666 13.866667 25.813333 25.6-24.106667 24.32-17.066666-16.853333-13.866667 13.866666 16.853333 16.64L533.333333 519.893333l-25.6-25.6-13.653333 13.653334L520.533333 533.333333 490.666667 563.2l-23.04-22.826667-13.226667 14.293334 22.826667 21.333333L448 606.506667l-16.853333-16.853334-13.653334 13.653334 16.853334 16.853333-27.52 27.306667L384 624.64l-13.653333 13.866667L392.96 661.333333l-27.52 27.306667L338.133333 661.333333l-13.866666 13.653334 27.52 27.52-28.373334 28.373333-16.853333-16.853333-13.866667 13.866666 16.853334 16.64-28.373334 28.586667-22.826666-22.826667-13.866667 13.653334 22.826667 22.826666-17.92 18.133334c-10.453333 10.24-21.333333 15.786667-25.173334 12.373333l-17.493333-17.493333c-3.413333-3.413333 2.133333-14.72 12.373333-25.173334L780.16 213.333333c10.453333-10.453333 21.333333-16 25.173333-12.586666l17.493334 17.706666c3.413333 3.84-2.133333 16.213333-12.16 25.386667zM543.36 197.333333l-14.72 14.506667-16.64-16.853333-8.533333 8.746666 16.853333 16.853334-16.426667 16.213333-25.6-25.6-8.746666 8.746667 25.6 25.6-13.653334 13.653333-16.853333-16.64-8.746667 8.533333 16.853334 16.853334-10.453334 10.453333-25.6-25.6-8.746666 8.533333 25.813333 25.813334-14.506667 14.293333-16.853333-16.853333-8.533333 8.746666 16.64 16.853334-14.293334 14.506666L390.186667 298.666667l-8.533334 8.746666 25.6 25.6-14.933333 15.146667-16.853333-16.853333-8.746667 8.533333 16.853333 16.853333-14.933333 15.146667-25.6-25.813333-8.746667 8.746666 25.6 25.6-18.56 18.773334-22.826666-22.826667-8.746667 8.533333 22.826667 22.826667-18.56 18.773333-16.853334-16.853333-8.746666 8.746667 16.853333 16.853333-17.28 17.28-23.04-22.826667-8.533333 8.533334 22.826666 23.04-17.28 17.28L234.666667 451.2l-8.746667 8.746667 27.52 27.52-18.133333 17.92-16.64-16.853334-8.746667 8.746667 16.853333 16.853333-18.133333 17.92-23.04-22.826666-8.746667 8.746666 22.826667 22.826667-11.306667 11.306667c-6.613333 6.613333-14.72 9.173333-18.133333 5.546666l-17.493333-17.493333c-3.626667-3.413333 0-11.52 5.546666-18.133333L513.066667 167.04c6.613333-6.613333 14.72-8.96 18.346666-5.546667l17.493334 17.493334c3.413333 3.626667 1.066667 11.733333-5.546667 18.346666zM863.36 506.453333l-14.72 14.72-16.64-16.853333-8.533333 8.533333 16.853333 16.853334-16.426667 16.426666-25.6-25.813333-8.96 8.746667 25.6 25.6-13.653333 13.866666-16.853333-16.853333-8.746667 8.746667 16.853333 16.64-10.453333 10.453333-25.6-25.6-8.746667 8.746667L773.546667 597.333333l-14.506667 14.506667-16.853333-16.853333-8.533334 8.533333 16.64 16.853333-14.293333 14.506667-25.813333-25.6-8.533334 8.533333 25.6 25.813334-14.933333 14.933333-16.853333-18.56-8.746667 8.746667 16.853333 16.853333-14.933333 14.933333-25.6-25.6-8.746667 8.533334 25.6 25.813333-18.56 18.56-22.826666-22.826667-8.746667 8.746667 22.826667 22.826667-18.56 18.56-16.853334-16.853334-8.746666 8.746667 16.853333 16.853333-17.28 17.28-23.04-22.826666-8.533333 8.746666 22.826666 22.826667-17.28 17.28L554.666667 760.533333l-8.746667 8.533334 27.52 27.52-18.133333 17.92-16.64-16.64-8.746667 8.533333 16.853333 16.853333-18.133333 18.133334-23.04-23.04-8.746667 8.746666 22.826667 22.826667-11.306667 11.52c-6.613333 6.4-14.72 8.96-18.133333 5.546667l-17.493333-17.493334c-3.626667-3.626667-1.066667-11.733333 5.546666-18.346666l354.773334-354.773334c6.613333-6.613333 14.72-9.173333 18.346666-5.546666l17.493334 17.493333c3.413333 3.413333 1.066667 11.52-5.546667 18.133333z" fill="currentColor" ></path><path d="M832 874.666667H192a42.666667 42.666667 0 0 1-42.666667-42.666667V192a42.666667 42.666667 0 0 1 42.666667-42.666667h640a42.666667 42.666667 0 0 1 42.666667 42.666667v640a42.666667 42.666667 0 0 1-42.666667 42.666667z m0-682.666667H192v640h640z" fill="currentColor" ></path><path d="M106.666667 125.653333m21.333333 0l85.333333 0q21.333333 0 21.333334 21.333334l0 85.333333q0 21.333333-21.333334 21.333333l-85.333333 0q-21.333333 0-21.333333-21.333333l0-85.333333q0-21.333333 21.333333-21.333334Z" ></path><path d="M106.666667 775.253333m21.333333 0l85.333333 0q21.333333 0 21.333334 21.333334l0 85.333333q0 21.333333-21.333334 21.333333l-85.333333 0q-21.333333 0-21.333333-21.333333l0-85.333333q0-21.333333 21.333333-21.333334Z" ></path><path d="M789.333333 775.253333m21.333334 0l85.333333 0q21.333333 0 21.333333 21.333334l0 85.333333q0 21.333333-21.333333 21.333333l-85.333333 0q-21.333333 0-21.333334-21.333333l0-85.333333q0-21.333333 21.333334-21.333334Z" ></path><path d="M789.333333 114.986667m21.333334 0l85.333333 0q21.333333 0 21.333333 21.333333l0 85.333333q0 21.333333-21.333333 21.333334l-85.333333 0q-21.333333 0-21.333334-21.333334l0-85.333333q0-21.333333 21.333334-21.333333Z" ></path></symbol><symbol id="bianjiwenzi" viewBox="0 0 1024 1024"><path d="M832 871.68h-85.333333v-42.666667h85.333333z m-170.666667 0h-85.333333v-42.666667h85.333333z m-170.666666 0h-85.333334v-42.666667h85.333334z m-170.666667 0h-85.333333v-42.666667h85.333333z m-128-51.84H149.333333v-85.333333h42.666667z m682.666667-6.186667h-42.666667v-85.333333h42.666667zM192 649.173333H149.333333v-85.333333h42.666667z m682.666667-6.186666h-42.666667v-85.333334h42.666667zM192 478.506667H149.333333v-85.333334h42.666667z m682.666667-6.186667h-42.666667v-85.333333h42.666667zM192 307.84H149.333333v-85.333333h42.666667z m682.666667-6.186667h-42.666667v-85.333333h42.666667z m-66.986667-112.64h-85.333333v-42.666666h85.333333z m-170.666667 0h-85.333333v-42.666666h85.333333z m-170.666666 0h-85.333334v-42.666666h85.333334z m-170.666667 0h-85.333333v-42.666666h85.333333z" fill="currentColor" ></path><path d="M106.666667 123.093333m21.333333 0l85.333333 0q21.333333 0 21.333334 21.333334l0 85.333333q0 21.333333-21.333334 21.333333l-85.333333 0q-21.333333 0-21.333333-21.333333l0-85.333333q0-21.333333 21.333333-21.333334Z" ></path><path d="M106.666667 772.693333m21.333333 0l85.333333 0q21.333333 0 21.333334 21.333334l0 85.333333q0 21.333333-21.333334 21.333333l-85.333333 0q-21.333333 0-21.333333-21.333333l0-85.333333q0-21.333333 21.333333-21.333334Z" ></path><path d="M789.333333 772.693333m21.333334 0l85.333333 0q21.333333 0 21.333333 21.333334l0 85.333333q0 21.333333-21.333333 21.333333l-85.333333 0q-21.333333 0-21.333334-21.333333l0-85.333333q0-21.333333 21.333334-21.333334Z" ></path><path d="M789.333333 112.426667m21.333334 0l85.333333 0q21.333333 0 21.333333 21.333333l0 85.333333q0 21.333333-21.333333 21.333334l-85.333333 0q-21.333333 0-21.333334-21.333334l0-85.333333q0-21.333333 21.333334-21.333333Z" ></path><path d="M432.853333 754.133333a56.746667 56.746667 0 0 1-3.2-24.96 83.626667 83.626667 0 0 0 53.333334-61.866666V322.56a2.56 2.56 0 0 0-2.133334-2.346667 166.826667 166.826667 0 0 0-28.373333-2.56 101.333333 101.333333 0 0 0-104.106667 89.386667H300.8v-123.733333h422.826667v123.733333H676.266667a101.76 101.76 0 0 0-104.106667-89.386667 166.826667 166.826667 0 0 0-28.373333 2.56 2.773333 2.773333 0 0 0-2.346667 2.346667v348.8a85.333333 85.333333 0 0 0 51.413333 57.6c3.2 2.133333 1.92 13.44-1.493333 25.173333z" ></path><path d="M720.853333 286.08V405.333333h-42.666666a103.466667 103.466667 0 0 0-106.666667-89.386666 196.266667 196.266667 0 0 0-28.8 2.346666 5.333333 5.333333 0 0 0-4.48 4.693334c-1.28 8.96 0 292.48 0 349.226666a3.626667 3.626667 0 0 1 0 1.493334 89.386667 89.386667 0 0 0 53.546667 58.88 81.706667 81.706667 0 0 1-3.2 19.626666h-153.6a102.826667 102.826667 0 0 1-3.626667-19.626666 88.32 88.32 0 0 0 54.186667-64V323.413333a5.76 5.76 0 0 0-4.48-4.693333 198.613333 198.613333 0 0 0-28.8-2.346667 103.68 103.68 0 0 0-106.666667 89.386667h-42.666667v-119.68h417.92m5.333334-5.333333H298.666667v129.066666h52.48A98.986667 98.986667 0 0 1 452.266667 320a166.4 166.4 0 0 1 27.946666 2.346667v344.533333a83.84 83.84 0 0 1-52.48 60.16c-4.266667 4.053333 3.2 29.226667 3.2 29.226667h162.56s7.466667-25.173333 3.2-29.226667h-2.986666a83.2 83.2 0 0 1-49.706667-55.253333c0-35.626667-1.066667-339.84 0-348.586667a166.4 166.4 0 0 1 28.16-3.2 99.2 99.2 0 0 1 101.76 89.386667H725.333333v-128.64z" fill="currentColor" ></path></symbol><symbol id="yunxianpizhu" viewBox="0 0 1024 1024"><path d="M738.346667 381.653333h-2.56a21.333333 21.333333 0 0 1-18.56-23.893333 229.973333 229.973333 0 0 0 1.706666-25.386667 206.933333 206.933333 0 0 0-413.866666 0 190.72 190.72 0 0 0 1.28 21.333334 21.333333 21.333333 0 0 1-42.666667 4.48c0-8.746667-1.493333-17.493333-1.493333-26.666667a249.6 249.6 0 0 1 499.2 0A232.106667 232.106667 0 0 1 759.466667 362.666667a21.333333 21.333333 0 0 1-21.12 18.986666z" fill="currentColor" ></path><path d="M277.333333 668.373333a208.853333 208.853333 0 0 1-101.12-23.68 157.653333 157.653333 0 0 1-81.493333-93.653333 167.466667 167.466667 0 0 1 195.84-215.253333 21.333333 21.333333 0 0 1 14.293333 26.88 21.333333 21.333333 0 0 1-25.813333 15.573333 121.813333 121.813333 0 0 0-138.24 65.92 125.226667 125.226667 0 0 0-6.613333 93.653333 114.986667 114.986667 0 0 0 59.52 68.266667 172.16 172.16 0 0 0 94.933333 19.413333 21.333333 21.333333 0 0 1 21.333333 21.333334 21.333333 21.333333 0 0 1-21.333333 21.333333zM746.666667 671.786667h-13.653334a21.333333 21.333333 0 1 1 1.28-42.666667 173.653333 173.653333 0 0 0 94.933334-19.413333 114.773333 114.773333 0 0 0 59.52-68.48 125.226667 125.226667 0 0 0-7.253334-93.226667 122.026667 122.026667 0 0 0-138.24-66.986667 21.333333 21.333333 0 1 1-10.453333-41.386666 164.906667 164.906667 0 0 1 187.093333 89.813333 167.893333 167.893333 0 0 1 8.746667 125.226667 158.506667 158.506667 0 0 1-81.493333 93.44A208.853333 208.853333 0 0 1 746.666667 671.786667z" fill="currentColor" ></path><path d="M538.88 796.8a58.026667 58.026667 0 0 1-14.72-1.92A57.6 57.6 0 0 1 489.386667 768l-121.813334-211.2a56.96 56.96 0 0 1 21.333334-77.866667l83.2-48.213333a57.173333 57.173333 0 0 1 77.866666 21.333333l122.026667 211.2a56.746667 56.746667 0 0 1-21.333333 77.866667L567.253333 789.333333a55.466667 55.466667 0 0 1-28.373333 7.466667z m-38.613333-330.88a14.933333 14.933333 0 0 0-7.253334 2.133333l-83.2 48a14.293333 14.293333 0 0 0-5.333333 19.626667L526.293333 746.666667a14.72 14.72 0 0 0 19.626667 5.333333L629.333333 704a14.08 14.08 0 0 0 6.826667-8.746667 14.933333 14.933333 0 0 0-1.493333-10.88L512 473.173333a13.866667 13.866667 0 0 0-8.746667-6.613333 10.88 10.88 0 0 0-2.986666-0.64z m139.733333 256z" ></path><path d="M705.493333 935.253333a21.333333 21.333333 0 0 1-18.346666-10.026666l-99.2-162.346667a21.333333 21.333333 0 0 1 36.48-21.333333l99.2 162.346666a21.333333 21.333333 0 0 1-7.04 29.44 21.333333 21.333333 0 0 1-11.093334 1.92z" ></path></symbol><symbol id="yinxianbiaozhu" viewBox="0 0 1024 1024"><path d="M874.666667 901.12a21.333333 21.333333 0 0 1-14.933334-6.186667L552.106667 588.373333a21.333333 21.333333 0 0 1 30.08-30.08l306.56 306.56a21.333333 21.333333 0 0 1 0 30.08 21.333333 21.333333 0 0 1-14.08 6.186667z" fill="currentColor" ></path><path d="M874.666667 899.413333a21.333333 21.333333 0 0 1-21.333334-21.333333v-183.253333a21.333333 21.333333 0 1 1 42.666667 0v183.253333a21.333333 21.333333 0 0 1-21.333333 21.333333z" fill="currentColor" ></path><path d="M113.706667 125.653333m42.666666 0l384 0q42.666667 0 42.666667 42.666667l0 384q0 42.666667-42.666667 42.666667l-384 0q-42.666667 0-42.666666-42.666667l0-384q0-42.666667 42.666666-42.666667Z" ></path></symbol><symbol id="lingcunweiDWG" viewBox="0 0 1024 1024"><path d="M472.19294777 952.54755555H124.85214777a69.41961443 69.41961443 0 0 1-70.63324444-67.96325888V144.75567445a69.41961443 69.41961443 0 0 1 70.63324444-67.96326002h692.01161557a69.41961443 69.41961443 0 0 1 70.63324445 67.96326002V512a24.27259221 24.27259221 0 1 1-48.54518557 0V144.75567445a20.87443001 20.87443001 0 0 0-22.08805888-19.41807445H124.85214777a20.87443001 20.87443001 0 0 0-22.08805888 19.41807445v739.82862222a20.87443001 20.87443001 0 0 0 22.08805888 19.41807332h347.3408a24.27259221 24.27259221 0 0 1 0 48.54518556z" fill="currentColor" ></path><path d="M669.04367445 128.25031111v236.90050332h-388.36148224V127.76485888h388.36148224m0-48.54518443h-388.36148224a48.54518557 48.54518557 0 0 0-48.54518442 48.54518443V366.36444445a48.54518557 48.54518557 0 0 0 48.54518442 48.54518556h388.36148224a48.54518557 48.54518557 0 0 0 48.54518443-48.54518556V128.00758557a48.54518557 48.54518557 0 0 0-48.54518443-48.54518557z" fill="currentColor" ></path><path d="M563.21516999 376.99128888a24.27259221 24.27259221 0 0 1-24.27259221-24.27259221V209.99585223a24.27259221 24.27259221 0 1 1 48.54518556 0v142.72284444a24.27259221 24.27259221 0 0 1-24.27259335 24.27259221zM938.95490333 866.32675555H408.8414811a24.27259221 24.27259221 0 0 1 0-48.54518556h530.11342223a24.27259221 24.27259221 0 0 1 0 48.54518556z" fill="currentColor" ></path><path d="M938.95490333 866.32675555a24.27259221 24.27259221 0 0 1-14.80628111-5.09724444l-148.54826667-115.0520889a24.27259221 24.27259221 0 0 1 29.8552889-38.35069667l148.30554112 115.05208889a24.27259221 24.27259221 0 0 1-14.80628224 43.44794112z" fill="currentColor" ></path><path d="M797.20296334 986.71881443a24.27259221 24.27259221 0 0 1-19.17534891-9.46631111 24.27259221 24.27259221 0 0 1 4.36906667-33.98162887l148.30554112-115.29481558a24.27259221 24.27259221 0 0 1 29.85528889 38.35069668l-148.30554112 115.29481444a24.27259221 24.27259221 0 0 1-15.04900665 5.09724444z" fill="currentColor" ></path><path d="M114.44744655 694.53800361V466.29004797h78.76397829q121.33004449 0 121.33004448 111.27506847a111.27506847 111.27506847 0 0 1-33.51658774 84.79696392 122.67070745 122.67070745 0 0 1-87.81345674 33.5165862z m48.59905025-188.36321691V653.98293419h26.47810297a71.72549508 71.72549508 0 0 0 54.29687051-20.44511895 78.09364761 78.09364761 0 0 0 19.7747867-55.9726988 67.03317398 67.03317398 0 0 0-20.78028429-52.95620757 75.41232014 75.41232014 0 0 0-53.62653826-19.10445441zM640.65785772 466.29004797l-60.66502145 228.24795564h-53.96170518L487.82222223 545.72435852a123.00587279 123.00587279 0 0 1-3.68682508-25.13744004 179.98407075 179.98407075 0 0 1-4.02199039 25.13744004l-39.88473716 148.81364509h-57.31336332l-61.00018837-228.24795564h53.29137289l33.5165862 154.8466307a123.34103969 123.34103969 0 0 1 3.01649282 25.4726054 140.09933202 140.09933202 0 0 1 4.35715732-26.47810299l42.56606464-153.84113311h51.61554304l38.54407579 155.8521283a167.58293419 167.58293419 0 0 1 3.6868235 24.13194244 161.54994858 161.54994858 0 0 1 3.35165971-25.13744004l33.5165862-154.8466307zM848.12552908 679.12037424a160.20928406 160.20928406 0 0 1-82.11563644 19.43961978 118.31355169 118.31355169 0 0 1-86.13762844-30.8352603 110.93990156 110.93990156 0 0 1-31.50559098-83.79146632 116.30255649 116.30255649 0 0 1 33.51658619-87.47829137 124.3465373 124.3465373 0 0 1 91.50028178-33.5165862 182.66539822 182.66539822 0 0 1 63.68151426 10.05497601V519.9165862a125.01686799 125.01686799 0 0 0-64.68701186-15.41762936 70.38483214 70.38483214 0 0 0-53.62653825 21.45061499 79.76947589 79.76947589 0 0 0-20.44511896 56.64303262 81.11014042 81.11014042 0 0 0 18.43412375 55.9726988 67.03317398 67.03317398 0 0 0 50.61004544 20.10995204 69.71449987 69.71449987 0 0 0 31.17042566-6.03298561v-46.92322039h-45.24739208v-39.88473873h94.85193993z" ></path></symbol><symbol id="lingcunweimxwebwenjian" viewBox="0 0 1024 1024"><path d="M468.79478557 941.86761443H121.45398557A69.41961443 69.41961443 0 0 1 50.82074112 873.90435555V134.07573333a69.41961443 69.41961443 0 0 1 70.63324445-67.96325888h692.01161443a69.66234112 69.66234112 0 0 1 70.87596999 67.96325888v367.48705224a24.27259221 24.27259221 0 0 1-48.54518442 0V134.07573333a21.11715555 21.11715555 0 0 0-22.33078557-19.41807445H121.45398557a20.87443001 20.87443001 0 0 0-22.08806002 19.41807445v739.82862222a20.87443001 20.87443001 0 0 0 22.08806002 19.41807446h347.3408a24.27259221 24.27259221 0 0 1 0 48.54518442z" fill="currentColor" ></path><path d="M665.64551111 117.57036999v236.90050446h-388.3614811V117.57036999h388.3614811m0-48.54518442h-388.3614811a48.54518557 48.54518557 0 0 0-48.54518556 48.54518442v237.62868224a48.54518557 48.54518557 0 0 0 48.54518556 48.54518443h388.3614811a48.54518557 48.54518557 0 0 0 48.54518556-48.54518443v-237.87140778a48.54518557 48.54518557 0 0 0-48.54518556-48.54518557z" fill="currentColor" ></path><path d="M560.54518557 366.31134776a24.27259221 24.27259221 0 0 1-24.27259336-24.27259221V199.55863665a24.27259221 24.27259221 0 1 1 48.54518557 0v142.4801189a24.27259221 24.27259221 0 0 1-24.27259221 24.27259221zM939.19763001 864.62767445H409.08420779a24.27259221 24.27259221 0 1 1 0-48.54518557H939.19763001a24.27259221 24.27259221 0 0 1 0 48.54518557z" fill="currentColor" ></path><path d="M939.19763001 864.62767445a24.27259221 24.27259221 0 0 1-15.04900779-5.09724445l-148.30554112-115.05208889a24.27259221 24.27259221 0 0 1 29.85528889-38.35069667L954.00391111 821.66518556a24.27259221 24.27259221 0 0 1-14.8062811 43.44793998z" fill="currentColor" ></path><path d="M797.44568889 985.01973333a24.27259221 24.27259221 0 0 1-14.8062811-43.44794112l148.30553998-115.05208889a24.27259221 24.27259221 0 1 1 29.61256334 38.35069667l-148.30554112 115.05208889a24.27259221 24.27259221 0 0 1-14.8062811 5.09724445z" fill="currentColor" ></path><path d="M405.11781122 503.32141087l-57.64852865 199.42369054H288.14492406l-33.51658621-119.65421464a102.5607554 102.5607554 0 0 1-3.01649282-24.80227313 136.41250851 136.41250851 0 0 1-3.68682506 24.13194246l-33.51658621 120.32454531H154.07857763l-56.64303262-199.42369054h59.65952544l30.50009339 132.39051811a179.31373851 179.31373851 0 0 1 0 21.11544965 115.96738957 115.96738957 0 0 1 3.68682507-22.45611415l35.52758142-131.72018587h54.96720277l31.84075634 132.39051813a127.69819546 127.69819546 0 0 1 2.68132747 22.12094724H321.66151026a156.52246057 156.52246057 0 0 1 3.01649279-22.12094724l27.81876751-132.39051813zM609.90415667 619.28880044h-131.0498536c2.0109952 30.83526032 20.44511739 46.2528897 55.63753346 46.25288969a105.91241355 105.91241355 0 0 0 58.31886092-16.08796162v42.5660662a142.7806595 142.7806595 0 0 1-71.39032974 15.41762938 100.5497602 100.5497602 0 0 1-73.73649028-26.8132699 100.5497602 100.5497602 0 0 1-25.47260697-74.74198792 107.92340877 107.92340877 0 0 1 28.15393285-77.42331536 93.17611165 93.17611165 0 0 1 70.38483214-29.8297627 86.8079591 86.8079591 0 0 1 67.03317399 25.8077723 100.5497602 100.5497602 0 0 1 23.7967771 70.38483215zM556.27761843 583.09088677c0-29.82976272-12.06597121-44.57705983-36.19791366-44.57705984a36.19791367 36.19791367 0 0 0-26.47810458 12.06597125 59.32435852 59.32435852 0 0 0-14.41213176 33.5165862zM705.76159422 678.61315898v24.13194243h-57.98369401v-294.94596272h57.98369401v126.02236559a73.7364903 73.7364903 0 0 1 65.35734415-33.51658621 72.06066199 72.06066199 0 0 1 58.98919315 26.14293765 113.95639436 113.95639436 0 0 1 21.11544964 72.7309927 122.67070745 122.67070745 0 0 1-24.46710777 79.76947746 79.09914523 79.09914523 0 0 1-65.0221788 30.16492807 63.34634892 63.34634892 0 0 1-55.97270037-28.82426512z m0-62.00568441a47.92871956 47.92871956 0 0 0 11.39564053 33.51658621 37.87374353 37.87374353 0 0 0 29.82976114 13.40663415 39.21440646 39.21440646 0 0 0 33.5165878-17.09345923 80.7749735 80.7749735 0 0 0 12.40113657-47.92871798 63.01118357 63.01118357 0 0 0-11.39563896-40.21990408 37.53857663 37.53857663 0 0 0-31.50559259-14.41213334 41.56056702 41.56056702 0 0 0-33.5165862 14.74729869 54.96720276 54.96720276 0 0 0-12.40113658 37.20341127z" ></path></symbol><symbol id="chajianceshi1" viewBox="0 0 1024 1024"><path d="M874.666667 170.666667v725.333333H149.333333V170.666667h725.333334m0-42.666667H149.333333a42.666667 42.666667 0 0 0-42.666666 42.666667v725.333333a42.666667 42.666667 0 0 0 42.666666 42.666667h725.333334a42.666667 42.666667 0 0 0 42.666666-42.666667V170.666667a42.666667 42.666667 0 0 0-42.666666-42.666667z" ></path><path d="M370.986667 356.053333a21.333333 21.333333 0 0 1-21.333334-21.333333v-108.16a21.333333 21.333333 0 1 1 42.666667 0v108.16a21.333333 21.333333 0 0 1-21.333333 21.333333zM370.986667 861.226667a21.333333 21.333333 0 0 1-21.333334-21.333334v-266.666666a21.333333 21.333333 0 0 1 42.666667 0v266.666666a21.333333 21.333333 0 0 1-21.333333 21.333334z" fill="currentColor" ></path><path d="M370.986667 368a85.333333 85.333333 0 1 1-85.333334 85.333333 85.333333 85.333333 0 0 1 85.333334-85.333333m0-42.666667a128 128 0 1 0 128 128 128 128 0 0 0-128-128zM658.346667 865.493333a21.333333 21.333333 0 0 1-21.333334-21.333333v-107.946667a21.333333 21.333333 0 0 1 42.666667 0v107.946667a21.333333 21.333333 0 0 1-21.333333 21.333333zM658.346667 518.826667a21.333333 21.333333 0 0 1-21.333334-21.333334v-266.666666a21.333333 21.333333 0 0 1 42.666667 0v266.666666a21.333333 21.333333 0 0 1-21.333333 21.333334z" fill="currentColor" ></path><path d="M658.346667 533.333333a85.333333 85.333333 0 1 1-85.333334 85.333334 85.333333 85.333333 0 0 1 85.333334-85.333334m0-42.666666a128 128 0 1 0 128 128 128 128 0 0 0-128-128z" fill="currentColor" ></path></symbol><symbol id="A" viewBox="0 0 1024 1024"><path d="M182.034 872.396l283.734-740h106.703l301.813 740H762.721l-85.422-224H366.752l-81.031 224H182.034z m212.562-304h251.89l-77.219-204.844c-23.844-62.172-41.516-113.563-53.047-154.156-9.516 47.656-22.765 94.906-39.765 141.75l-81.859 217.25z" ></path></symbol><symbol id="qianjin" viewBox="0 0 1630 1024"><path d="M3.07470443 1041.47381614C6.08405275 575.70998663 862.5492717 589.43785575 862.5492717 589.43785575l-1.83621319 284.27215956L1640.45086413 412.79356645l-773.7227548-470.95185616-1.83438912 284.27215954s-856.71660542 25.20054681-861.81719417 815.35994626z" fill="currentColor" ></path></symbol><symbol id="jiedian" viewBox="0 0 1024 1024"><path d="M113.872 913.068l796.25-795.687 14.137 14.148-796.25 795.687z" ></path><path d="M128 934.2L106.8 913l3.5-3.5L910 110.3l21.2 21.2-3.5 3.5L128 934.2z m-7.1-21.2l7.1 7.1 789.1-788.5-7.1-7.1L120.9 913z" ></path><path d="M114.148 131.243l14.148-14.138 795.687 796.25-14.148 14.137z" ></path><path d="M909.7 934.5l-3.5-3.5-799.1-799.8 21.2-21.2 3.5 3.5L931 913.3l-21.3 21.2zM121.2 131.3l788.5 789.1 7.1-7.1-788.5-789.1-7.1 7.1z" ></path><path d="M519 962.3c-59.4 0-117-11.6-171.3-34.6-52.4-22.2-99.5-53.9-139.9-94.3-40.4-40.4-72.1-87.5-94.3-139.9C90.6 639.3 79 581.7 79 522.3c0-59.4 11.6-117 34.6-171.3 22.2-52.4 53.9-99.5 94.3-139.9 40.4-40.4 87.5-72.1 139.9-94.3C402 93.9 459.6 82.3 519 82.3c59.4 0 117 11.6 171.3 34.6 52.4 22.2 99.5 53.9 139.9 94.3 40.4 40.4 72.1 87.5 94.3 139.9 22.9 54.3 34.6 111.9 34.6 171.3 0 59.4-11.6 117-34.6 171.3-22.2 52.4-53.9 99.5-94.3 139.9s-87.5 72.1-139.9 94.3C636 950.6 578.4 962.3 519 962.3z m0-850c-226.1 0-410 183.9-410 410s183.9 410 410 410 410-183.9 410-410-183.9-410-410-410z" ></path></symbol><symbol id="xianzhong" viewBox="0 0 1024 1024"><path d="M64 64h896v25H64zM64 319.3h896v25H64z" fill="currentColor" ></path><path d="M64 76.5h448v120H64zM64 331.8h448v180H64zM64 685.5h896v25H64z" fill="currentColor" ></path><path d="M64 698h448v262H64z" fill="currentColor" ></path></symbol><symbol id="bianjixiajianqie" viewBox="0 0 1024 1024"><path d="M384 972.5H114c-34.5 0-62.5-28-62.5-62.5V114c0-34.5 28-62.5 62.5-62.5h600c34.5 0 62.5 28 62.5 62.5v270h-25V114c0-20.7-16.8-37.5-37.5-37.5H114c-20.7 0-37.5 16.8-37.5 37.5v796c0 20.7 16.8 37.5 37.5 37.5h270v25z" fill="currentColor" ></path><path d="M192 243.5h448v25H192zM192 499.5h256v25H192zM192 755.5h192v25H192z" fill="currentColor" ></path><path d="M860 785c41.4 0 75 33.6 75 75s-33.6 75-75 75-75-33.6-75-75 33.6-75 75-75m0-25c-55.2 0-100 44.8-100 100s44.8 100 100 100 100-44.8 100-100-44.8-100-100-100zM516 785c41.4 0 75 33.6 75 75s-33.6 75-75 75-75-33.6-75-75 33.6-75 75-75m0-25c-55.2 0-100 44.8-100 100s44.8 100 100 100 100-44.8 100-100-44.8-100-100-100z" fill="#178FE6" ></path><path d="M543.163 776.368l316.78-316.781 17.678 17.677-316.78 316.781z" fill="#178FE6" ></path><path d="M506.767 477.272l17.677-17.677 316.78 316.78-17.677 17.678z" fill="#178FE6" ></path></symbol><symbol id="shiqubeijingse" viewBox="0 0 1024 1024"><path d="M947.4 389.1c-6.9 0-12.5-5.6-12.5-12.5v-300c0-6.9 5.6-12.5 12.5-12.5s12.5 5.6 12.5 12.5v300c0 6.9-5.6 12.5-12.5 12.5z" fill="#178FE6" ></path><path d="M947.4 89.1h-300c-6.9 0-12.5-5.6-12.5-12.5s5.6-12.5 12.5-12.5h300c6.9 0 12.5 5.6 12.5 12.5s-5.6 12.5-12.5 12.5zM76.5 956.8c-6.9 0-12.5-5.6-12.5-12.5v-300c0-6.9 5.6-12.5 12.5-12.5S89 637.4 89 644.3v300c0 6.9-5.6 12.5-12.5 12.5z" fill="#178FE6" ></path><path d="M376.5 959.9h-300c-6.9 0-12.5-5.6-12.5-12.5s5.6-12.5 12.5-12.5h300c6.9 0 12.5 5.6 12.5 12.5s-5.6 12.5-12.5 12.5zM947.4 959.9h-300c-6.9 0-12.5-5.6-12.5-12.5s5.6-12.5 12.5-12.5h300c6.9 0 12.5 5.6 12.5 12.5s-5.6 12.5-12.5 12.5z" fill="#178FE6" ></path><path d="M947.4 959.9c-6.9 0-12.5-5.6-12.5-12.5v-300c0-6.9 5.6-12.5 12.5-12.5s12.5 5.6 12.5 12.5v300c0 6.9-5.6 12.5-12.5 12.5zM376.6 89.1h-300c-6.9 0-12.5-5.6-12.5-12.5s5.6-12.5 12.5-12.5h300c6.9 0 12.5 5.6 12.5 12.5s-5.6 12.5-12.5 12.5z" fill="#178FE6" ></path><path d="M76.6 389.1c-6.9 0-12.5-5.6-12.5-12.5v-300c0-6.9 5.6-12.5 12.5-12.5s12.5 5.6 12.5 12.5v300c0 6.9-5.6 12.5-12.5 12.5z" fill="#178FE6" ></path><path d="M192 192h192v256H192z" fill="#FF0000" ></path><path d="M512 192h320v256H512z" fill="#00FF00" ></path><path d="M192 576h192v256H192z" fill="#FF00FF" ></path><path d="M512 576h320v256H512z" fill="#F7931E" ></path></symbol><symbol id="charukuai1" viewBox="0 0 1024 1024"><path d="M485 697.6c0 2.1 0 4.3 0.1 6.4H383v-12.5h102.1c-0.1 2-0.1 4.1-0.1 6.1zM960 162.5V704h-50.1c0.1-2.1 0.1-4.3 0.1-6.4 0-117.2-95.3-212.5-212.5-212.5-2 0-4 0-6 0.1V216.5H383V64h448l129 98.5z" fill="currentColor" ></path><path d="M115.5 191.5v525h601v-525h-601z m25 25h551v475h-551v-475z" fill="#178FE6" ></path><path d="M64 668h100v100H64V668z" fill="#178FE6" ></path><path d="M865.4 529.7c-44.9-44.9-104.5-69.6-167.9-69.6-2 0-4 0-6 0.1-61.2 1.5-118.5 26-161.9 69.5-43.4 43.4-68 100.7-69.5 161.8 0 2-0.1 4.1-0.1 6.1 0 2.1 0 4.3 0.1 6.4 1.6 61 26.1 118.2 69.5 161.5 44.9 44.9 104.5 69.6 167.9 69.6s123.1-24.7 167.9-69.6c43.3-43.3 67.9-100.5 69.5-161.5 0-2.1 0.1-4.3 0.1-6.4 0-63.4-24.7-123.1-69.6-167.9zM697.5 910.1c-115 0-209-91.9-212.4-206.1-0.1-2.1-0.1-4.3-0.1-6.4 0-2 0-4.1 0.1-6.1 3.2-112.4 94-203.2 206.4-206.3 2-0.1 4-0.1 6-0.1 117.2 0 212.5 95.3 212.5 212.5 0 2.1 0 4.3-0.1 6.4-3.4 114.2-97.4 206.1-212.4 206.1z" fill="#178FE6" ></path><path d="M960 780v180H780" fill="currentColor" ></path></symbol><symbol id="shunshizhenxuanzhuan90du" viewBox="0 0 1024 1024"><path d="M897.4 410.5c13.8 0 25 11.2 25 25v476c0 13.8-11.2 25-25 25h-540c-13.8 0-25-11.2-25-25v-476c0-13.8 11.2-25 25-25h540m0-25h-540c-27.6 0-50 22.4-50 50v476c0 27.6 22.4 50 50 50h540c27.6 0 50-22.4 50-50v-476c0-27.6-22.4-50-50-50z" fill="currentColor" ></path><path d="M65.6 580.6h-0.8c-6.9-0.4-12.1-6.4-11.7-13.3 6.7-107.1 52.2-208.2 128.1-284.6 75.8-76.3 176.5-122.4 283.6-129.9 6.9-0.5 12.9 4.7 13.3 11.6 0.5 6.9-4.7 12.9-11.6 13.3C258 192.3 91.1 360.4 78 568.9c-0.4 6.6-5.9 11.7-12.4 11.7z" fill="#178FE6" ></path><path d="M614.4 182.7l-140.9 81.4c-13.3 7.7-30-1.9-30-17.3V84c0-15.4 16.7-25 30-17.3l140.9 81.4c13.3 7.7 13.3 26.9 0 34.6z" fill="#178FE6" ></path><path d="M473.5 772.6c17.2-28.9 31.2-55.1 42.2-78.5-19.5 3.1-35.7 0.6-48.6-7.6s-20.7-19.3-23.4-33.4c-2.7-14.1-2.5-26.8 0.6-38.1s8-20.7 14.6-28.1c6.6-7.4 14.6-12.7 24-15.8 9.4-3.1 17.8-4.7 25.2-4.7 7.4 0 15 1.6 22.9 4.7 7.8 3.1 14.8 7.8 21.1 14.1 6.2 6.3 10.5 12.7 12.9 19.3 2.3 6.6 3.5 15.2 3.5 25.8s-3.9 24-11.7 40.4c-7.8 16.4-27 50.4-57.4 102h-25.9zM467 641.4c1.2 10.2 5.5 18.6 12.9 25.2 7.4 6.6 15.4 9.6 24 8.8 8.6-0.8 15.4-3.1 20.5-7s10-10.5 14.6-19.9c3.1-11.7 3.9-21.7 2.3-29.9s-5.7-15-12.3-20.5c-6.6-5.5-13.9-8.2-21.7-8.2-4.7-0.8-10.7 0.4-18.2 3.5-7.4 3.1-13.3 9.4-17.6 18.8-4.1 9.2-5.6 19-4.5 29.2zM596.5 657.2c0.8-20.7 3.7-37.1 8.8-49.2 5.1-12.1 12.3-22.1 21.7-29.9 9.4-7.8 20.9-11.7 34.6-11.7 13.7 0 25.6 5.7 35.7 17 10.1 11.3 16.8 25.6 19.9 42.8 3.1 17.2 4.1 36.9 2.9 59.2s-5.1 40.4-11.7 54.5c-6.6 14.1-16.6 23.8-29.9 29.3-13.3 5.5-26.6 4.9-39.8-1.8-13.3-6.6-22.7-15.4-28.1-26.4-5.5-10.9-9.4-22.4-11.7-34.6-2.4-12.1-3.2-28.5-2.4-49.2z m24.6-7c-2.3 21.5-1.6 40.6 2.3 57.4 3.9 16.8 10.3 28.7 19.3 35.7 9 7 18.2 8.4 27.5 4.1 9.4-4.3 16.2-12.9 20.5-25.8 4.3-12.9 6.4-27 6.4-42.2s-0.6-29.1-1.8-41.6c-1.2-12.5-4.7-23.8-10.5-34-5.9-10.1-13.7-15.4-23.4-15.8-9.8-0.4-18.4 4.5-25.8 14.6-7.3 10.3-12.1 26.1-14.5 47.6zM806.9 625c-9.8-0.8-17.6-4.3-23.4-10.5-5.9-6.2-8.6-14.1-8.2-23.4 0.4-9.4 2.9-16.6 7.6-21.7 4.7-5.1 10.5-8.6 17.6-10.5 7-1.9 13.9-2.1 20.5-0.6 6.6 1.6 12.3 5.7 17 12.3 4.7 6.6 6.4 15.1 5.3 25.2-1.2 10.2-5.1 17.8-11.7 22.9-6.8 4.9-15 7-24.7 6.3z m-19.4-36.4c-0.8 5.5 0.2 10.5 2.9 15.2 2.7 4.7 7.8 7.6 15.2 8.8 7.4 1.2 13.5-0.4 18.2-4.7 4.7-4.3 7-10.1 7-17.6 0-7.4-2.3-13.1-7-17-4.7-3.9-9.8-5.5-15.2-4.7-5.5 0.8-10.2 2.9-14.1 6.4-3.9 3.7-6.2 8.2-7 13.6z" fill="currentColor" ></path></symbol><symbol id="gaojigongju" viewBox="0 0 1024 1024"><path d="M760 585c46.7 0 90.7 18.2 123.7 51.3 33.1 33.1 51.3 77 51.3 123.7 0 3.8-0.1 7.5-0.4 11.3l-85-85-17.9-17.9-17.7 18-125.5 128-17 17.6 17.1 17.5 83.4 85.1c-4 0.3-8 0.4-12.1 0.4-46.7 0-90.7-18.2-123.7-51.3-33.1-33.1-51.3-77-51.3-123.7s18.2-90.7 51.3-123.7C669.3 603.2 713.3 585 760 585m0-25c-110.5 0-200 89.5-200 200s89.5 200 200 200c21.8 0 42.7-3.5 62.3-9.9L706.5 832 832 704l118.2 118.2c6.4-19.6 9.8-40.5 9.8-62.2 0-110.5-89.5-200-200-200zM264 89c46.7 0 90.7 18.2 123.7 51.3 33.1 33.1 51.3 77 51.3 123.7s-18.2 90.7-51.3 123.7c-33.1 33.1-77 51.3-123.7 51.3s-90.7-18.2-123.7-51.3c-33.1-33-51.3-77-51.3-123.7 0-3.8 0.1-7.5 0.4-11.3l85 85 17.9 17.9 17.7-18 125.4-128 17.1-17.5-17.1-17.5L252 89.5c3.9-0.4 8-0.5 12-0.5m0-25c-21.8 0-42.7 3.5-62.3 9.9L317.5 192 192 320 73.8 201.8C67.4 221.4 64 242.3 64 264c0 110.5 89.5 200 200 200s200-89.5 200-200S374.5 64 264 64z" fill="currentColor" ></path><path d="M308.535 454.187l17.678-17.678L584.87 695.166l-17.678 17.678zM437.858 324.899l17.677-17.678 258.657 258.657-17.677 17.678z" fill="currentColor" ></path></symbol><symbol id="nishizhenxuanzhuan90du" viewBox="0 0 1024 1024"><path d="M655.5 410.5c13.8 0 25 11.2 25 25v476c0 13.8-11.2 25-25 25h-540c-13.8 0-25-11.2-25-25v-476c0-13.8 11.2-25 25-25h540m0-25h-540c-27.6 0-50 22.4-50 50v476c0 27.6 22.4 50 50 50h540c27.6 0 50-22.4 50-50v-476c0-27.6-22.3-50-50-50z" fill="currentColor" ></path><path d="M947.4 580.6c-6.5 0-12-5.1-12.5-11.7-13.1-208.5-180-376.6-388.4-391-6.9-0.5-12.1-6.4-11.6-13.3s6.4-12.1 13.3-11.6c107 7.4 207.7 53.5 283.6 129.9 75.9 76.4 121.3 177.4 128.1 284.6 0.4 6.9-4.8 12.8-11.7 13.3-0.3-0.2-0.5-0.2-0.8-0.2z" fill="#178FE6" ></path><path d="M398.6 182.7l140.9 81.4c13.3 7.7 30-1.9 30-17.3V84c0-15.4-16.7-25-30-17.3l-140.9 81.4c-13.3 7.7-13.3 26.9 0 34.6z" fill="#178FE6" ></path><path d="M215.6 772.6c17.2-28.9 31.2-55.1 42.2-78.5-19.5 3.1-35.7 0.6-48.6-7.6s-20.7-19.3-23.4-33.4c-2.7-14.1-2.5-26.8 0.6-38.1s8-20.7 14.6-28.1c6.6-7.4 14.6-12.7 24-15.8 9.4-3.1 17.8-4.7 25.2-4.7 7.4 0 15 1.6 22.9 4.7 7.8 3.1 14.8 7.8 21.1 14.1 6.2 6.3 10.5 12.7 12.9 19.3 2.3 6.6 3.5 15.2 3.5 25.8s-3.9 24-11.7 40.4c-7.8 16.4-27 50.4-57.4 102h-25.9z m-6.5-131.2c1.2 10.2 5.5 18.6 12.9 25.2 7.4 6.6 15.4 9.6 24 8.8 8.6-0.8 15.4-3.1 20.5-7s10-10.5 14.6-19.9c3.1-11.7 3.9-21.7 2.3-29.9s-5.7-15-12.3-20.5c-6.6-5.5-13.9-8.2-21.7-8.2-4.7-0.8-10.7 0.4-18.2 3.5-7.4 3.1-13.3 9.4-17.6 18.8-4.1 9.2-5.7 19-4.5 29.2zM338.6 657.2c0.8-20.7 3.7-37.1 8.8-49.2 5.1-12.1 12.3-22.1 21.7-29.9 9.4-7.8 20.9-11.7 34.6-11.7 13.7 0 25.6 5.7 35.7 17 10.1 11.3 16.8 25.6 19.9 42.8 3.1 17.2 4.1 36.9 2.9 59.2s-5.1 40.4-11.7 54.5c-6.6 14.1-16.6 23.8-29.9 29.3-13.3 5.5-26.6 4.9-39.8-1.8-13.3-6.6-22.7-15.4-28.1-26.4-5.5-10.9-9.4-22.4-11.7-34.6-2.4-12.1-3.2-28.5-2.4-49.2z m24.6-7c-2.3 21.5-1.6 40.6 2.3 57.4 3.9 16.8 10.3 28.7 19.3 35.7 9 7 18.2 8.4 27.5 4.1 9.4-4.3 16.2-12.9 20.5-25.8 4.3-12.9 6.4-27 6.4-42.2s-0.6-29.1-1.8-41.6c-1.2-12.5-4.7-23.8-10.5-34-5.9-10.1-13.7-15.4-23.4-15.8-9.8-0.4-18.4 4.5-25.8 14.6-7.3 10.3-12.1 26.1-14.5 47.6zM549 625c-9.8-0.8-17.6-4.3-23.4-10.5-5.9-6.2-8.6-14.1-8.2-23.4 0.4-9.4 2.9-16.6 7.6-21.7 4.7-5.1 10.5-8.6 17.6-10.5 7-1.9 13.9-2.1 20.5-0.6 6.6 1.6 12.3 5.7 17 12.3 4.7 6.6 6.4 15.1 5.3 25.2-1.2 10.2-5.1 17.8-11.7 22.9-6.8 4.9-15 7-24.7 6.3z m-19.4-36.4c-0.8 5.5 0.2 10.5 2.9 15.2 2.7 4.7 7.8 7.6 15.2 8.8 7.4 1.2 13.5-0.4 18.2-4.7 4.7-4.3 7-10.1 7-17.6 0-7.4-2.3-13.1-7-17-4.7-3.9-9.8-5.5-15.2-4.7-5.5 0.8-10.2 2.9-14.1 6.4-3.9 3.7-6.2 8.2-7 13.6z" fill="currentColor" ></path></symbol><symbol id="pizhu" viewBox="0 0 1024 1024"><path d="M652.5 921.4h-25V579.1L512 489.2l-115.5 89.9v342.3h-25V566.9L512 457.6l140.5 109.3z" fill="#178FE6" ></path><path d="M512 89c57.1 0 112.5 11.2 164.6 33.2 50.4 21.3 95.6 51.8 134.5 90.7 38.9 38.9 69.4 84.1 90.7 134.5 22 52.1 33.2 107.5 33.2 164.6s-11.2 112.5-33.2 164.6c-21.3 50.4-51.8 95.6-90.7 134.5-38.9 38.9-84.1 69.4-134.5 90.7-52.1 22-107.5 33.2-164.6 33.2s-112.5-11.2-164.6-33.2c-50.4-21.3-95.6-51.8-134.5-90.7-38.9-38.9-69.4-84.1-90.7-134.5C100.2 624.5 89 569.1 89 512s11.2-112.5 33.2-164.6c21.3-50.4 51.8-95.6 90.7-134.5s84.1-69.4 134.5-90.7C399.5 100.2 454.9 89 512 89m0-25C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z" fill="currentColor" ></path><path d="M384 652.9h256v25H384zM512 480c-0.8 0-1.6-0.1-2.3-0.2-3.9-0.7-96.6-18.9-130-74.1-12.8-21.1-15.3-44.6-7.6-69.9 8-26.2 21.7-41.1 41.8-45.4 16.7-3.5 34.5 0.9 53.4 5.7 36.1 9 70.1 17.6 98.2-27.3 15.7-25.1 19.9-46.6 12.4-64-12.1-28.2-53.4-42.1-68.2-45.1-6.8-1.4-11.1-8-9.8-14.7s8-11.2 14.7-9.8c2.7 0.5 66.5 13.9 86.3 59.7 10.9 25.4 6.2 54.7-14.1 87.2-37.7 60.3-88.5 47.6-125.5 38.3-38.5-9.6-54.5-12.2-65.1 22.7-5.6 18.4-3.9 34.7 5.1 49.6 27.7 45.8 112.4 62.3 113.3 62.4 6.8 1.3 11.2 7.8 10 14.6-1.5 6.1-6.7 10.3-12.6 10.3z" fill="#178FE6" ></path></symbol><symbol id="dakaidwg" viewBox="0 0 1024 1024"><path d="M908.8 424l-167 496H115.2l167-496h626.6m41.1-40H260.4c-4.2 0-8 2.9-9.5 7.3L64.7 944.8c-2.5 7.4 2.4 15.2 9.5 15.2h689.4c4.2 0 8-2.9 9.5-7.3l186.3-553.5c2.4-7.4-2.5-15.2-9.5-15.2z" fill="currentColor" ></path><path d="M84.6 960.1c-11 0-20-9-20-20V85.4c0-11 9-20 20-20h405.7c5 0 9.7 1.8 13.4 5.2l129.5 116.9H896c11 0 20 9 20 20v122.1c0 11-9 20-20 20s-20-9-20-20V227.5H625.5c-5 0-9.7-1.8-13.4-5.2L482.6 105.4h-378v834.7c0 11.1-8.9 20-20 20z" fill="currentColor" ></path><path d="M745.8 596h-384c-11 0-20-9-20-20s9-20 20-20h384c11 0 20 9 20 20s-8.9 20-20 20z" fill="currentColor" ></path></symbol><symbol id="xinjian" viewBox="0 0 1024 1024"><path d="M512 812c-11 0-20-14.9-20-33.3V245.3c0-18.4 9-33.3 20-33.3s20 14.9 20 33.3v533.3c0 18.5-9 33.4-20 33.4z" fill="currentColor" ></path><path d="M860 104c33.1 0 60 26.9 60 60v696c0 33.1-26.9 60-60 60H361.4c-16 0-31.1-6.2-42.4-17.6L121.6 705c-11.3-11.3-17.6-26.4-17.6-42.4V164c0-33.1 26.9-60 60-60h696m0-40H164c-55.2 0-100 44.8-100 100v498.6c0 26.5 10.5 52 29.3 70.7l197.4 197.4a99.91 99.91 0 0 0 70.7 29.3H860c55.2 0 100-44.8 100-100V164c0-55.2-44.8-100-100-100z" fill="currentColor" ></path><path d="M212 512c0-11 14.9-20 33.3-20h533.3c18.4 0 33.3 9 33.3 20s-14.9 20-33.3 20H245.3c-18.4 0-33.3-9-33.3-20z" fill="currentColor" ></path></symbol><symbol id="baocun" viewBox="0 0 1024 1024"><path d="M860 104c33.1 0 60 26.9 60 60v696c0 33.1-26.9 60-60 60H164c-33.1 0-60-26.9-60-60V164c0-33.1 26.9-60 60-60h696m0-40H164c-55.2 0-100 44.8-100 100v696c0 55.2 44.8 100 100 100h696c55.2 0 100-44.8 100-100V164c0-55.2-44.8-100-100-100z" fill="currentColor" ></path><path d="M722 104v260c0 33.1-26.9 60-60 60H362c-33.1 0-60-26.9-60-60V104h420m40-40H262v300c0 55.2 44.8 100 100 100h300c55.2 0 100-44.8 100-100V64zM737 660H287c-11 0-20-9-20-20s9-20 20-20h450c11 0 20 9 20 20s-9 20-20 20z" fill="currentColor" ></path><path d="M640 256m-40 0a40 40 0 1 0 80 0 40 40 0 1 0-80 0Z" fill="currentColor" ></path></symbol><symbol id="dayin" viewBox="0 0 1024 1024"><path d="M844.5 780.5h-45.9v-40h45.9c41.7 0 75.5-31.7 75.5-70.7V352.2c0-39-33.9-70.7-75.5-70.7h-665c-41.7 0-75.5 31.7-75.5 70.7v317.5c0 39 33.9 70.7 75.5 70.7h45.9v40h-45.9C115.8 780.5 64 730.8 64 669.8V352.2c0-61.1 51.8-110.7 115.5-110.7h664.9c63.7 0 115.5 49.7 115.5 110.7v317.5c0.1 61.1-51.7 110.8-115.4 110.8z" fill="currentColor" ></path><path d="M712 104c33.1 0 60 26.9 60 60v73.1H252V164c0-33.1 26.9-60 60-60h400m0-40H312c-55.2 0-100 44.8-100 100v113.1h600V164c0-55.2-44.8-100-100-100zM712 551c33.1 0 60 26.9 60 60v250c0 33.1-26.9 60-60 60H312c-33.1 0-60-26.9-60-60V611c0-33.1 26.9-60 60-60h400m0-40H312c-55.2 0-100 44.8-100 100v250c0 55.2 44.8 100 100 100h400c55.2 0 100-44.8 100-100V611c0-55.2-44.8-100-100-100zM832 404H576c-11 0-20-9-20-20s9-20 20-20h256c11 0 20 9 20 20s-9 20-20 20z" fill="currentColor" ></path></symbol><symbol id="dakaiwodetuzhi" viewBox="0 0 1024 1024"><path d="M908.8 424l-167 496H115.2l167-496h626.6m41.1-40H260.4c-4.2 0-8 2.9-9.5 7.3L64.7 944.8c-2.5 7.4 2.4 15.2 9.5 15.2h689.4c4.2 0 8-2.9 9.5-7.3l186.3-553.5c2.4-7.4-2.5-15.2-9.5-15.2z" fill="currentColor" ></path><path d="M84.6 960.1c-11 0-20-9-20-20V85.4c0-11 9-20 20-20h405.7c5 0 9.7 1.8 13.4 5.2l129.5 116.9H896c11 0 20 9 20 20v122.1c0 11-9 20-20 20s-20-9-20-20V227.5H625.5c-5 0-9.7-1.8-13.4-5.2L482.6 105.4h-378v834.7c0 11.1-8.9 20-20 20z" fill="currentColor" ></path></symbol><symbol id="shezhi" viewBox="0 0 1024 1024"><path d="M531 975h-38c-28.8 0-55.9-11.2-76.3-31.6C396.2 923 385 895.9 385 867c0-48.3-40.5-78.1-78.1-78.1-13.6 0-26.7 3.6-38.8 10.6-51.6 29.8-117.7 12-147.5-39.5l-19-33C92 710.6 87 692 87 673.1c0-38.5 20.7-74.4 54-93.6 24.4-14.1 39-39.3 39-67.5s-14.6-53.4-39-67.5c-25-14.4-42.8-37.7-50.3-65.6-7.5-27.9-3.6-57 10.8-81.9l19-33c19.2-33.3 55.1-54 93.6-54 18.9 0 37.5 5 53.9 14.5 12.2 7 25.2 10.6 38.9 10.6 37.6 0 78.1-29.9 78.1-78.1 0-59.5 48.4-108 108-108h38c28.8 0 55.9 11.2 76.3 31.6C627.8 101 639 128.1 639 157c0 48.3 40.5 78.1 78.1 78.1 13.6 0 26.7-3.6 38.8-10.6 51.6-29.8 117.7-12 147.5 39.5l19 33c9.5 16.4 14.5 35 14.5 53.9 0 38.5-20.7 74.4-54 93.6-24.4 14.1-39 39.3-39 67.5s14.6 53.4 39 67.5c25 14.4 42.8 37.7 50.3 65.6 7.5 27.9 3.6 57-10.8 81.9l-19 33c-19.2 33.3-55.1 54-93.6 54-18.9 0-37.5-5-53.9-14.5-12.2-7-25.2-10.6-38.9-10.6-37.6 0-78.1 29.9-78.1 78.1 0.1 59.6-48.3 108-107.9 108zM306.9 758.9c27.6 0 55 11.1 75.1 30.4 21.3 20.4 33 48 33 77.7 0 20.8 8.1 40.4 22.8 55.1 14.7 14.7 34.3 22.8 55.1 22.8H531c43 0 78-35 78-78 0-29.8 11.7-57.4 33-77.7 20.1-19.3 47.5-30.4 75.1-30.4 18.7 0 37.3 5.1 53.9 14.6 11.9 6.8 25.3 10.5 38.9 10.5 27.8 0 53.7-14.9 67.6-39l19-33c10.4-18 13.2-39.1 7.8-59.2-5.4-20.1-18.3-36.9-36.3-47.3-33.8-19.4-54-54.4-54-93.4s20.2-74 54-93.5c24.1-13.9 39-39.8 39-67.6 0-13.6-3.6-27.1-10.5-38.9l-19-33c-21.5-37.2-69.3-50-106.5-28.5-16.6 9.6-35.2 14.6-53.8 14.6-27.6 0-55-11.1-75.1-30.4-21.3-20.4-33-48-33-77.7 0-20.8-8.1-40.4-22.8-55.1C571.4 87.1 551.8 79 531 79h-38c-43 0-78 35-78 78 0 29.8-11.7 57.4-33 77.7-20.1 19.3-47.5 30.4-75.1 30.4-18.7 0-37.3-5.1-53.9-14.6-11.9-6.8-25.3-10.5-38.9-10.5-27.8 0-53.7 14.9-67.6 39l-19 33c-10.4 18-13.2 39.1-7.8 59.2 5.4 20.1 18.3 36.9 36.3 47.3 33.8 19.5 54 54.5 54 93.5s-20.2 74-54 93.5c-24.1 13.9-39 39.8-39 67.6 0 13.6 3.6 27.1 10.5 38.9l19 33c21.5 37.2 69.3 50 106.5 28.5 16.6-9.5 35.2-14.6 53.9-14.6zM512 677c-91 0-165-74-165-165s74-165 165-165 165 74 165 165-74 165-165 165z m0-300c-74.4 0-135 60.6-135 135s60.6 135 135 135 135-60.6 135-135-60.6-135-135-135z" fill="currentColor" ></path></symbol><symbol id="quanping" viewBox="0 0 1024 1024"><path d="M910 89c13.8 0 25 11.2 25 25v796c0 13.8-11.2 25-25 25H114c-13.8 0-25-11.2-25-25V114c0-13.8 11.2-25 25-25h796m0-25H114c-27.6 0-50 22.4-50 50v796c0 27.6 22.4 50 50 50h796c27.6 0 50-22.4 50-50V114c0-27.6-22.4-50-50-50z" fill="currentColor" ></path><path d="M819.4 417.1c-6.9 0-12.5-5.6-12.5-12.5v-200c0-6.9 5.6-12.5 12.5-12.5s12.5 5.6 12.5 12.5v200c0 6.9-5.6 12.5-12.5 12.5z" fill="#178FE6" ></path><path d="M819.4 217.1h-200c-6.9 0-12.5-5.6-12.5-12.5s5.6-12.5 12.5-12.5h200c6.9 0 12.5 5.6 12.5 12.5s-5.6 12.5-12.5 12.5zM204.6 831.9c-6.9 0-12.5-5.6-12.5-12.5v-200c0-6.9 5.6-12.5 12.5-12.5s12.5 5.6 12.5 12.5v200c0 6.9-5.6 12.5-12.5 12.5z" fill="#178FE6" ></path><path d="M404.6 831.9h-200c-6.9 0-12.5-5.6-12.5-12.5s5.6-12.5 12.5-12.5h200c6.9 0 12.5 5.6 12.5 12.5s-5.6 12.5-12.5 12.5zM607.3 429.2c-3.2 0-6.4-1.2-8.8-3.7-4.9-4.9-4.9-12.8 0-17.7l212.1-212.1c4.9-4.9 12.8-4.9 17.7 0 4.9 4.9 4.9 12.8 0 17.7L616.1 425.6c-2.4 2.4-5.6 3.6-8.8 3.6z" fill="#178FE6" ></path><path d="M204.6 831.9c-3.2 0-6.4-1.2-8.8-3.7-4.9-4.9-4.9-12.8 0-17.7l212.1-212.1c4.9-4.9 12.8-4.9 17.7 0 4.9 4.9 4.9 12.8 0 17.7L213.4 828.2c-2.4 2.5-5.6 3.7-8.8 3.7z" fill="#178FE6" ></path></symbol><symbol id="suofangshangyibu" viewBox="0 0 1024 1024"><path d="M600.4 345c34.5 0 67.9 6.7 99.4 20.1 30.4 12.9 57.7 31.3 81.2 54.7s41.9 50.8 54.7 81.2c13.3 31.5 20.1 64.9 20.1 99.4s-6.7 67.9-20.1 99.4c-12.9 30.4-31.3 57.7-54.7 81.2s-50.8 41.9-81.2 54.7c-31.5 13.3-64.9 20.1-99.4 20.1s-67.9-6.7-99.4-20.1c-30.4-12.9-57.7-31.3-81.2-54.7s-41.9-50.8-54.7-81.2c-13.3-31.5-20.1-64.9-20.1-99.4s6.7-67.9 20.1-99.4c12.9-30.4 31.3-57.7 54.7-81.2s50.8-41.9 81.2-54.7c31.4-13.4 64.9-20.1 99.4-20.1m0-25C445.5 320 320 445.5 320 600.4s125.5 280.4 280.4 280.4 280.4-125.5 280.4-280.4S755.2 320 600.4 320zM882.8 453.9c-6.9 0-12.5-5.6-12.5-12.5v-300c0-6.9 5.6-12.5 12.5-12.5s12.5 5.6 12.5 12.5v300c0 6.9-5.6 12.5-12.5 12.5z" fill="currentColor" ></path><path d="M882.8 154.7h-300c-6.9 0-12.5-5.6-12.5-12.5s5.6-12.5 12.5-12.5h300c6.9 0 12.5 5.6 12.5 12.5s-5.6 12.5-12.5 12.5zM920 960c-10.2 0-20.5-3.9-28.3-11.7L778.6 835.2c-15.6-15.6-15.6-40.9 0-56.6s40.9-15.6 56.6 0l113.1 113.1c15.6 15.6 15.6 40.9 0 56.6-7.8 7.8-18.1 11.7-28.3 11.7zM140.7 893.2c-6.9 0-12.5-5.6-12.5-12.5v-300c0-6.9 5.6-12.5 12.5-12.5s12.5 5.6 12.5 12.5v300c0 6.9-5.6 12.5-12.5 12.5z" fill="currentColor" ></path><path d="M440.7 896.3h-300c-6.9 0-12.5-5.6-12.5-12.5s5.6-12.5 12.5-12.5h300c6.9 0 12.5 5.6 12.5 12.5s-5.6 12.5-12.5 12.5z" fill="currentColor" ></path><path d="M239.1 138V78.2c0.1-5.3-2.7-10.2-7.4-12.6-4.7-2.4-10.4-2-14.6 1.1L70.3 168.4c-3.9 2.6-6.3 7-6.3 11.7 0 4.7 2.4 9.1 6.3 11.7L217 294.3c4.3 3 9.9 3.3 14.6 0.8 4.6-2.5 7.5-7.3 7.5-12.5v-36.8c0-3.9 1.6-7.5 4.4-10.2 2.8-2.7 6.6-4.1 10.4-3.9 80.8 7.4 147.6 65.8 165.7 144.9 11.7-52.5 0-107.5-32.1-150.7-32.1-43.2-81.4-70.2-135.1-74.1-7.4-0.3-13.3-6.4-13.3-13.8z m0 0" fill="#2884C7" ></path></symbol><symbol id="shishisuofang" viewBox="0 0 1024 1024"><path d="M476.9 889.6c-55.7 0-109.7-10.9-160.6-32.4-49.1-20.8-93.2-50.5-131.1-88.4-37.9-37.9-67.6-82-88.4-131.1-21.5-50.9-32.4-104.9-32.4-160.6s10.9-109.7 32.4-160.6c20.8-49.1 50.5-93.2 88.4-131.1 37.9-37.9 82-67.6 131.1-88.4 50.9-21.5 104.9-32.4 160.6-32.4 9.6 0 19.2 0.3 28.6 1 6.9 0.5 12.1 6.5 11.6 13.3s-6.5 12.1-13.3 11.6c-8.8-0.6-17.9-0.9-26.9-0.9-213.7 0-387.5 173.8-387.5 387.5s173.8 387.5 387.5 387.5c136.6 0 260.6-69.8 331.5-186.8 3.6-5.9 11.3-7.8 17.2-4.2 5.9 3.6 7.8 11.3 4.2 17.2-36.1 59.5-87.1 109.4-147.5 144.1-62.2 35.8-133.2 54.7-205.4 54.7z" fill="currentColor" ></path><path d="M947.4 264.1h-350c-6.9 0-12.5-5.6-12.5-12.5s5.6-12.5 12.5-12.5h350c6.9 0 12.5 5.6 12.5 12.5s-5.6 12.5-12.5 12.5z" fill="#178FE6" ></path><path d="M772.3 439.1c-6.9 0-12.5-5.6-12.5-12.5v-350c0-6.9 5.6-12.5 12.5-12.5s12.5 5.6 12.5 12.5v350c0 6.9-5.6 12.5-12.5 12.5z" fill="#178FE6" ></path><path d="M920.1 960c-10.2 0-20.5-3.9-28.3-11.7l-140-139.9c-15.6-15.6-15.6-40.9 0-56.6 15.6-15.6 40.9-15.6 56.6 0l139.9 139.9c15.6 15.6 15.6 40.9 0 56.6-7.8 7.8-18 11.7-28.2 11.7z" fill="currentColor" ></path><path d="M947.3 543.7h-350c-6.9 0-12.5-5.6-12.5-12.5s5.6-12.5 12.5-12.5h350c6.9 0 12.5 5.6 12.5 12.5s-5.6 12.5-12.5 12.5z" fill="#178FE6" ></path></symbol><symbol id="fanweisuofang" viewBox="0 0 1024 1024"><path d="M947.4 289.1c-6.9 0-12.5-5.6-12.5-12.5v-200c0-6.9 5.6-12.5 12.5-12.5s12.5 5.6 12.5 12.5v200c0 6.9-5.6 12.5-12.5 12.5z" fill="#178FE6" ></path><path d="M947.4 89.1h-200c-6.9 0-12.5-5.6-12.5-12.5s5.6-12.5 12.5-12.5h200c6.9 0 12.5 5.6 12.5 12.5s-5.6 12.5-12.5 12.5z" fill="#178FE6" ></path><path d="M600.4 345c34.5 0 67.9 6.7 99.4 20.1 30.4 12.9 57.7 31.3 81.2 54.7s41.9 50.8 54.7 81.2c13.3 31.5 20.1 64.9 20.1 99.4s-6.7 67.9-20.1 99.4c-12.9 30.4-31.3 57.7-54.7 81.2s-50.8 41.9-81.2 54.7c-31.5 13.3-64.9 20.1-99.4 20.1s-67.9-6.7-99.4-20.1c-30.4-12.9-57.7-31.3-81.2-54.7s-41.9-50.8-54.7-81.2c-13.3-31.5-20.1-64.9-20.1-99.4s6.7-67.9 20.1-99.4c12.9-30.4 31.3-57.7 54.7-81.2s50.8-41.9 81.2-54.7c31.4-13.4 64.9-20.1 99.4-20.1m0-25C445.5 320 320 445.5 320 600.4s125.5 280.4 280.4 280.4 280.4-125.5 280.4-280.4S755.2 320 600.4 320zM920 960c-10.2 0-20.5-3.9-28.3-11.7L783.6 840.1c-15.6-15.6-15.6-40.9 0-56.6 15.6-15.6 40.9-15.6 56.6 0l108.1 108.1c15.6 15.6 15.6 40.9 0 56.6-7.8 7.9-18.1 11.8-28.3 11.8z" fill="currentColor" ></path><path d="M76.5 959.9c-6.9 0-12.5-5.6-12.5-12.5v-200c0-6.9 5.6-12.5 12.5-12.5S89 740.5 89 747.4v200c0 6.9-5.6 12.5-12.5 12.5z" fill="#178FE6" ></path><path d="M276.5 959.9h-200c-6.9 0-12.5-5.6-12.5-12.5s5.6-12.5 12.5-12.5h200c6.9 0 12.5 5.6 12.5 12.5s-5.6 12.5-12.5 12.5zM276.6 89.1h-200c-6.9 0-12.5-5.6-12.5-12.5s5.6-12.5 12.5-12.5h200c6.9 0 12.5 5.6 12.5 12.5s-5.6 12.5-12.5 12.5z" fill="#178FE6" ></path><path d="M76.6 289.1c-6.9 0-12.5-5.6-12.5-12.5v-200c0-6.9 5.6-12.5 12.5-12.5s12.5 5.6 12.5 12.5v200c0 6.9-5.6 12.5-12.5 12.5z" fill="#178FE6" ></path><path d="M288.8 301.2c-3.2 0-6.4-1.2-8.8-3.7L67.8 85.5c-4.9-4.9-4.9-12.8 0-17.7 4.9-4.9 12.8-4.9 17.7 0l212.1 212.1c4.9 4.9 4.9 12.8 0 17.7-2.4 2.4-5.6 3.6-8.8 3.6zM735.3 301.2c-3.2 0-6.4-1.2-8.8-3.7-4.9-4.9-4.9-12.8 0-17.7l212.1-212c4.9-4.9 12.8-4.9 17.7 0 4.9 4.9 4.9 12.8 0 17.7L744.1 297.6c-2.4 2.4-5.6 3.6-8.8 3.6z" fill="#178FE6" ></path><path d="M76.5 959.9c-3.2 0-6.4-1.2-8.8-3.7-4.9-4.9-4.9-12.8 0-17.7l212.1-212.1c4.9-4.9 12.8-4.9 17.7 0 4.9 4.9 4.9 12.8 0 17.7L85.4 956.3c-2.5 2.4-5.7 3.6-8.9 3.6z" fill="#178FE6" ></path></symbol><symbol id="zhonghua" viewBox="0 0 1024 1024"><path d="M857.7 139.8l94.5 94.5c11.9 11.9 9.9 33-4.3 47.3L889.5 340c-14.2 14.2-35.4 16.2-47.3 4.3l-94.5-94.5c-11.9-11.9-9.9-33 4.3-47.3l58.4-58.4c14.3-14.3 35.4-16.2 47.3-4.3z" fill="#D81E06" ></path><path d="M729.6 267.9l94.5 94.5c11.9 11.9 6 37-13.2 56.2L420.4 809.1c-11.6 11.6-26 18.8-38.4 19.3l-98.1 3.6c-15 0.5-24.4-8.9-23.8-23.8l3.6-98.1c0.5-12.4 7.7-26.8 19.3-38.4l390.6-390.6c19-19.2 44.2-25.1 56-13.2z" fill="#FF9800" ></path><path d="M896 908.5H256c-6.9 0-12.5-5.6-12.5-12.5s5.6-12.5 12.5-12.5h640c6.9 0 12.5 5.6 12.5 12.5s-5.6 12.5-12.5 12.5z" fill="currentColor" ></path><path d="M181.4 908.8c-26 0-87.8-4.8-108.8-48.3-11-22.9-8.7-52.3 7.1-87.4 17.5-39 52.2-86.7 103.2-141.6 38.1-41 63.7-76 76.1-104 9.7-21.9 11.2-39.1 4.4-51-11.5-20.1-49.2-29.9-106.3-27.5-46.6 1.9-89.9 11.2-90.3 11.3-6.8 1.5-13.4-2.8-14.9-9.6-1.5-6.7 2.8-13.4 9.6-14.9 1.8-0.4 45.5-9.8 94.3-11.8 69-2.9 112.6 10.6 129.4 40.1 22.4 39.3-5 99.6-83.9 184.5-49.1 52.9-82.3 98.2-98.7 134.8-12.6 28.1-15.1 50.4-7.4 66.3 15.7 32.5 74.6 35.5 96 33.9 6.9-0.5 12.9 4.6 13.4 11.5s-4.6 12.9-11.5 13.4c-0.9 0-5.2 0.3-11.7 0.3z" fill="currentColor" ></path></symbol><symbol id="chuangkousuofang" viewBox="0 0 1024 1024"><path d="M947.4 389.1c-6.9 0-12.5-5.6-12.5-12.5v-300c0-6.9 5.6-12.5 12.5-12.5s12.5 5.6 12.5 12.5v300c0 6.9-5.6 12.5-12.5 12.5z" fill="#178FE6" ></path><path d="M947.4 89.1h-300c-6.9 0-12.5-5.6-12.5-12.5s5.6-12.5 12.5-12.5h300c6.9 0 12.5 5.6 12.5 12.5s-5.6 12.5-12.5 12.5z" fill="#178FE6" ></path><path d="M492.4 237c34.5 0 67.9 6.7 99.4 20.1 30.4 12.9 57.7 31.3 81.2 54.7s41.9 50.8 54.7 81.2c13.3 31.5 20.1 64.9 20.1 99.4s-6.7 67.9-20.1 99.4c-12.9 30.4-31.3 57.7-54.7 81.2s-50.8 41.9-81.2 54.7c-31.5 13.3-64.9 20.1-99.4 20.1s-67.9-6.7-99.4-20.1c-30.4-12.9-57.7-31.3-81.2-54.7s-41.9-50.8-54.7-81.2c-13.3-31.5-20.1-64.9-20.1-99.4s6.7-67.9 20.1-99.4c12.9-30.4 31.3-57.7 54.7-81.2s50.8-41.9 81.2-54.7c31.4-13.3 64.9-20.1 99.4-20.1m0-25C337.5 212 212 337.5 212 492.4s125.5 280.4 280.4 280.4 280.4-125.5 280.4-280.4S647.2 212 492.4 212zM812 852c-10.2 0-20.5-3.9-28.3-11.7L675.6 732.1c-15.6-15.6-15.6-40.9 0-56.6 15.6-15.6 40.9-15.6 56.6 0l108.1 108.1c15.6 15.6 15.6 40.9 0 56.6-7.8 7.9-18.1 11.8-28.3 11.8z" fill="currentColor" ></path><path d="M76.5 956.8c-6.9 0-12.5-5.6-12.5-12.5v-300c0-6.9 5.6-12.5 12.5-12.5S89 637.4 89 644.3v300c0 6.9-5.6 12.5-12.5 12.5z" fill="#178FE6" ></path><path d="M376.5 959.9h-300c-6.9 0-12.5-5.6-12.5-12.5s5.6-12.5 12.5-12.5h300c6.9 0 12.5 5.6 12.5 12.5s-5.6 12.5-12.5 12.5zM947.4 959.9h-300c-6.9 0-12.5-5.6-12.5-12.5s5.6-12.5 12.5-12.5h300c6.9 0 12.5 5.6 12.5 12.5s-5.6 12.5-12.5 12.5z" fill="#178FE6" ></path><path d="M947.4 959.9c-6.9 0-12.5-5.6-12.5-12.5v-300c0-6.9 5.6-12.5 12.5-12.5s12.5 5.6 12.5 12.5v300c0 6.9-5.6 12.5-12.5 12.5zM376.6 89.1h-300c-6.9 0-12.5-5.6-12.5-12.5s5.6-12.5 12.5-12.5h300c6.9 0 12.5 5.6 12.5 12.5s-5.6 12.5-12.5 12.5z" fill="#178FE6" ></path><path d="M76.6 389.1c-6.9 0-12.5-5.6-12.5-12.5v-300c0-6.9 5.6-12.5 12.5-12.5s12.5 5.6 12.5 12.5v300c0 6.9-5.6 12.5-12.5 12.5z" fill="#178FE6" ></path></symbol><symbol id="youjianbianji" viewBox="0 0 1024 1024"><path d="M881.1 70l72.9 72.9c9.2 9.2 7.7 25.5-3.3 36.5l-45.1 45.1c-11 11-27.3 12.5-36.5 3.3l-72.9-72.9c-9.2-9.2-7.7-25.5 3.3-36.5l45.1-45.1c11-11 27.3-12.5 36.5-3.3zM782.3 168.8l72.9 72.9c9.2 9.2 4.6 28.5-10.2 43.3L543.7 586.4c-8.9 8.9-20.1 14.5-29.6 14.9l-75.7 2.8c-11.6 0.4-18.8-6.8-18.4-18.4l2.8-75.7c0.4-9.6 5.9-20.7 14.9-29.6L738.9 179c14.8-14.8 34.2-19.3 43.4-10.2z" fill="#178FE6" ></path><path d="M834.1 959.9h-700c-38.6 0-70-31.4-70-70v-700c0-38.6 31.4-70 70-70h398c11 0 20 9 20 20s-9 20-20 20h-398c-16.5 0-30 13.5-30 30v700c0 16.5 13.5 30 30 30h700c16.5 0 30-13.5 30-30v-398c0-11 9-20 20-20s20 9 20 20v398c0 38.6-31.4 70-70 70z" fill="currentColor" ></path></symbol><symbol id="youjianshanchu" viewBox="0 0 1040 1024"><path d="M765.886734 80.40238L943.59762 258.113266 452.238817 749.472068 274.527932 571.761183 765.886734 80.40238z m0 0" fill="#FF9800" ></path><path d="M159.920138 769.621808l94.458054 94.458054c23.000192 23.000192 61.923594 21.427529 86.987905-3.636783l88.757151-88.757151-177.809176-177.710885-88.757151 88.757151c-24.96602 24.96602-26.636974 63.889422-3.636783 86.889614z m0 0" fill="#D81E06" ></path><path d="M62.906508 858.870417h117.949702v39.316567H62.906508z" fill="#178FE6" ></path><path d="M452.140526 858.870417h491.457094v39.316567H452.140526z" fill="#178FE6" ></path></symbol><symbol id="youjianzhongmingming" viewBox="0 0 1024 1024"><path d="M881.1 427.7l72.9 72.9c9.2 9.2 7.7 25.5-3.3 36.5l-45.1 45.1c-11 11-27.3 12.5-36.5 3.3l-72.9-72.9c-9.2-9.2-7.7-25.5 3.3-36.5l45.1-45.1c11-11 27.3-12.4 36.5-3.3z" fill="#D81E06" ></path><path d="M782.3 526.5l72.9 72.9c9.2 9.2 4.6 28.5-10.2 43.3L543.7 944.1c-8.9 8.9-20.1 14.5-29.6 14.9l-75.7 2.8c-11.6 0.4-18.8-6.8-18.4-18.4l2.8-75.7c0.4-9.6 5.9-20.7 14.9-29.6L739 536.8c14.7-14.9 34.1-19.4 43.3-10.3z" fill="#FF9800" ></path><path d="M340.1 936.1h-206c-38.6 0-70-31.4-70-70v-732c0-38.6 31.4-70 70-70H517c13.9 0 27.3 4.1 38.8 11.8l157.1 104.8c19.5 13 31.2 34.8 31.2 58.2v229.2c0 11-9 20-20 20s-20-9-20-20V238.8c0-10.1-5-19.4-13.4-25L533.6 109.1c-4.9-3.3-10.7-5-16.6-5H134.1c-16.5 0-30 13.5-30 30v732c0 16.5 13.5 30 30 30h206c11 0 20 9 20 20s-9 20-20 20z" fill="currentColor" ></path></symbol><symbol id="guanyu" viewBox="0 0 1024 1024"><path d="M512 89c57.1 0 112.5 11.2 164.6 33.2 50.4 21.3 95.6 51.8 134.5 90.7 38.9 38.9 69.4 84.1 90.7 134.5 22 52.1 33.2 107.5 33.2 164.6s-11.2 112.5-33.2 164.6c-21.3 50.4-51.8 95.6-90.7 134.5-38.9 38.9-84.1 69.4-134.5 90.7-52.1 22-107.5 33.2-164.6 33.2s-112.5-11.2-164.6-33.2c-50.4-21.3-95.6-51.8-134.5-90.7-38.9-38.9-69.4-84.1-90.7-134.5C100.2 624.5 89 569.1 89 512s11.2-112.5 33.2-164.6c21.3-50.4 51.8-95.6 90.7-134.5s84.1-69.4 134.5-90.7C399.5 100.2 454.9 89 512 89m0-25C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z" fill="currentColor" ></path><path d="M462 229.5h100v400H462z" fill="#178FE6" ></path><path d="M512 744.5m-50 0a50 50 0 1 0 100 0 50 50 0 1 0-100 0Z" fill="#178FE6" ></path></symbol><symbol id="dakaiquanbutuceng" viewBox="0 0 1024 1024"><path d="M530 676.5l31-18.6v74.3l-31.2 18.7c-10.1 6.1-26.6 6.1-36.7 0l-421.6-253c-10.1-6.1-10.1-15.9 0-22l43.6-26.2 378.1 226.8c10.2 6.1 26.6 6.1 36.8 0zM959.1 487.6v-1.5 1.5zM561 815.1v63.3l-31.2 18.7c-10.1 6.1-26.6 6.1-36.7 0L71.6 644.2c-10.1-6.1-10.1-15.9 0-22l34.3-20.6 387.2 232.3c10.1 6.1 26.6 6.1 36.7 0l31.2-18.8zM951.6 321.9L530 68.9c-10.1-6.1-26.6-6.1-36.7 0l-421.7 253c-10.1 6.1-10.1 15.9 0 22l421.7 253c10.1 6.1 26.4 6.1 36.6 0l421.8-253c10-6 10-15.9-0.1-22z" fill="#666666" ></path><path d="M860.6 908.3v4.4c0 1.3 0.1 2.8 0.2 4.4 0.1 1.6 0.2 3.2 0.2 4.8-0.3 5.1-1.7 10.6-4.2 16.6-2.5 6-7.4 10.3-14.6 13-2.9 1.1-6.7 2.6-11.4 4.6-4.7 2-11.7 3-21 3-8 0-14.6-0.9-19.8-2.8-5.2-1.9-9.3-3.1-12.2-3.6-3.7-0.8-6.7-2.5-9-5s-4-5.4-5.2-8.6c-1.2-3.2-1.9-6.5-2.2-9.8-0.3-3.3-0.4-6.3-0.4-9v-12.4l99.6 0.4z m86.9-261.7c6.9 16.3 10.9 31.6 12 46 1.1 14.4 0.3 27.7-2.4 39.8-2.7 12.1-6.5 23-11.6 32.6-5.1 9.6-10.3 18-15.8 25.2-5.5 7.2-10.6 13.1-15.4 17.8-4.8 4.7-8.1 7.8-10 9.4-2.7 2.4-5.1 4.2-7.4 5.4-2.3 1.2-4.3 2.2-6 3-1.7 0.8-3.4 1.7-5 2.8-1.6 1.1-3.2 2.8-4.8 5.2-3.5 5.1-6.1 10-8 14.8-1.9 4.8-3.5 9.5-4.8 14-1.3 3.7-2.8 6.8-4.4 9.2-1.6 2.4-3.3 4.5-5.2 6.4-2.1 2.1-4.3 3.9-6.4 5.2h-88c-2.1-1.3-4.1-3.1-6-5.2-1.9-1.9-3.7-4.3-5.6-7.2-1.9-2.9-3.5-6.7-4.8-11.2-2.7-7.7-5.9-13.9-9.8-18.6-3.9-4.7-8.9-9.3-15-13.8-4.3-3.2-9.1-7.5-14.6-12.8-5.5-5.3-10.9-11.6-16.2-18.8-5.3-7.2-10.4-15.3-15.2-24.2-4.8-8.9-8.7-18.7-11.6-29.4-2.9-10.7-4.7-22.1-5.2-34.2-0.5-12.1 0.7-24.9 3.6-38.2 4.5-21.3 12.4-39.3 23.6-53.8 11.2-14.5 23.7-26.2 37.6-35 13.9-8.8 28.2-15.1 43-19 14.8-3.9 28.2-5.8 40.2-5.8 12.5 0 25.6 1.7 39.2 5.2 13.6 3.5 26.7 8.9 39.4 16.2 12.7 7.3 24.3 16.7 34.8 28 10.5 11.3 19.1 25 25.8 41zM907 728.2c11.5-46.7-3.5-82.3-44.8-106.9-6.9-4.3-15-7.6-24.2-10-9.2-2.4-18.6-3.6-28.2-3.6-9.6 0-19.1 1.2-28.6 3.6-9.5 2.4-17.9 6.1-25.4 11.2-18.1 12.5-30.4 26.1-36.8 40.8-6.4 14.7-9.3 30.1-8.8 46.4 0.3 9.1 1.8 17.2 4.6 24.4 2.8 7.2 6.1 13.7 10 19.6 3.9 5.9 7.9 11 12 15.4s7.8 8.3 11 11.8c6.7 6.9 12.5 13 17.6 18.2 5.1 5.2 9.1 11.8 12 19.8 2.9 7.7 7.5 12.5 13.8 14.2 6.3 1.7 12.1 2.6 17.4 2.6 6.9 0 13.6-1.5 20-4.6 6.4-3.1 10.9-7.8 13.6-14.2 1.3-3.7 4.1-8.3 8.2-13.6 4.1-5.3 10.3-12.8 18.6-22.4 4.3-5.1 8.3-9.5 12.2-13.2 3.9-3.7 7.5-7.5 10.8-11.2 3.3-3.7 6.3-7.8 8.8-12.2 2.6-4.3 4.6-9.7 6.2-16.1z m0 0" fill="#FF9800" ></path></symbol><symbol id="xuanzeguanbituceng" viewBox="0 0 1024 1024"><path d="M959.1 487.6v-1.5 1.5zM951.6 321.9L530 68.9c-10.1-6.1-26.6-6.1-36.7 0l-421.7 253c-10.1 6.1-10.1 15.9 0 22l421.7 253c10.1 6.1 26.4 6.1 36.6 0l421.8-253c10-6 10-15.9-0.1-22z" fill="#666666" ></path><path d="M860.6 908.3v4.4c0 1.3 0.1 2.8 0.2 4.4 0.1 1.6 0.2 3.2 0.2 4.8-0.3 5.1-1.7 10.6-4.2 16.6-2.5 6-7.4 10.3-14.6 13-2.9 1.1-6.7 2.6-11.4 4.6-4.7 2-11.7 3-21 3-8 0-14.6-0.9-19.8-2.8-5.2-1.9-9.3-3.1-12.2-3.6-3.7-0.8-6.7-2.5-9-5s-4-5.4-5.2-8.6c-1.2-3.2-1.9-6.5-2.2-9.8-0.3-3.3-0.4-6.3-0.4-9v-12.4l99.6 0.4z m86.9-261.7c6.9 16.3 10.9 31.6 12 46 1.1 14.4 0.3 27.7-2.4 39.8-2.7 12.1-6.5 23-11.6 32.6-5.1 9.6-10.3 18-15.8 25.2-5.5 7.2-10.6 13.1-15.4 17.8-4.8 4.7-8.1 7.8-10 9.4-2.7 2.4-5.1 4.2-7.4 5.4-2.3 1.2-4.3 2.2-6 3-1.7 0.8-3.4 1.7-5 2.8-1.6 1.1-3.2 2.8-4.8 5.2-3.5 5.1-6.1 10-8 14.8-1.9 4.8-3.5 9.5-4.8 14-1.3 3.7-2.8 6.8-4.4 9.2-1.6 2.4-3.3 4.5-5.2 6.4-2.1 2.1-4.3 3.9-6.4 5.2h-88c-2.1-1.3-4.1-3.1-6-5.2-1.9-1.9-3.7-4.3-5.6-7.2-1.9-2.9-3.5-6.7-4.8-11.2-2.7-7.7-5.9-13.9-9.8-18.6-3.9-4.7-8.9-9.3-15-13.8-4.3-3.2-9.1-7.5-14.6-12.8-5.5-5.3-10.9-11.6-16.2-18.8-5.3-7.2-10.4-15.3-15.2-24.2-4.8-8.9-8.7-18.7-11.6-29.4-2.9-10.7-4.7-22.1-5.2-34.2-0.5-12.1 0.7-24.9 3.6-38.2 4.5-21.3 12.4-39.3 23.6-53.8 11.2-14.5 23.7-26.2 37.6-35 13.9-8.8 28.2-15.1 43-19 14.8-3.9 28.2-5.8 40.2-5.8 12.5 0 25.6 1.7 39.2 5.2 13.6 3.5 26.7 8.9 39.4 16.2 12.7 7.3 24.3 16.7 34.8 28 10.5 11.3 19.1 25 25.8 41zM907 728.2c11.5-46.7-3.5-82.3-44.8-106.9-6.9-4.3-15-7.6-24.2-10-9.2-2.4-18.6-3.6-28.2-3.6-9.6 0-19.1 1.2-28.6 3.6-9.5 2.4-17.9 6.1-25.4 11.2-18.1 12.5-30.4 26.1-36.8 40.8-6.4 14.7-9.3 30.1-8.8 46.4 0.3 9.1 1.8 17.2 4.6 24.4 2.8 7.2 6.1 13.7 10 19.6 3.9 5.9 7.9 11 12 15.4s7.8 8.3 11 11.8c6.7 6.9 12.5 13 17.6 18.2 5.1 5.2 9.1 11.8 12 19.8 2.9 7.7 7.5 12.5 13.8 14.2 6.3 1.7 12.1 2.6 17.4 2.6 6.9 0 13.6-1.5 20-4.6 6.4-3.1 10.9-7.8 13.6-14.2 1.3-3.7 4.1-8.3 8.2-13.6 4.1-5.3 10.3-12.8 18.6-22.4 4.3-5.1 8.3-9.5 12.2-13.2 3.9-3.7 7.5-7.5 10.8-11.2 3.3-3.7 6.3-7.8 8.8-12.2 2.6-4.3 4.6-9.7 6.2-16.1z m0 0" fill="#178FE6" ></path></symbol><symbol id="yanse" viewBox="0 0 1024 1024"><path d="M512 512L195.5 828.5l-0.3 0.3C114.1 747.7 64 635.7 64 512h448z" fill="#999999" ></path><path d="M512 959.5v0.5c-123.7 0-235.7-50.1-316.8-131.2l0.3-0.3L512 512v447.5z" fill="currentColor" ></path><path d="M828.5 828.5l0.3 0.3C747.7 909.9 635.7 960 512 960V512l316.5 316.5z" fill="#FF00FF" ></path><path d="M959.5 512h0.5c0 123.7-50.1 235.7-131.2 316.8l-0.3-0.3L512 512h447.5z" fill="#0000FF" ></path><path d="M960 512H512l316.5-316.5 0.3-0.3C909.9 276.3 960 388.3 960 512z" fill="#00FFFF" ></path><path d="M828.8 195.2l-0.3 0.3L512 512V64c123.7 0 235.7 50.1 316.8 131.2z" fill="#00FF00" ></path><path d="M512 64.4V512L195.5 195.5l-0.3-0.3C276.3 114.1 388.3 64 512 64v0.4z" fill="#FFFF00" ></path><path d="M512 512H64c0-123.7 50.1-235.7 131.2-316.8l0.3 0.3L512 512z" fill="#FF0000" ></path></symbol><symbol id="dianyangshi" viewBox="0 0 1024 1024"><path d="M64 704h192v192H64zM64 256h192v192H64zM416 256h192v192H416zM416 704h192v192H416zM768 256h192v192H768zM768 704h192v192H768z" fill="currentColor" ></path><path d="M564 564.5l-111-111 306.8-306.8 111 111L564 564.5z m0 0" fill="#FF9800" ></path><path d="M942.4 134.1l-59-59c-14.4-14.4-38.7-13.4-54.3 2.3l-55.4 55.4 111 111 55.4-55.4c15.7-15.6 16.7-39.9 2.3-54.3z m0 0" fill="#D81E06" ></path><path d="M442.7 471l-39.2 143.1 143.1-39.2L442.7 471z m0 0" fill="#FF9800" ></path></symbol><symbol id="wenziyangshi" viewBox="0 0 1024 1024"><path d="M64 755.4h716.8v24H64zM534.2 465H269.8l-53 137.3c-7.8 21.7-7.8 39.1 0 52.4 7.8 13.3 25.4 19.8 52.9 19.8h17.6v21.7H69.8v-21.7h17.6c15.7 0 29.4-3 41.1-9 11.8-6 19.6-16.2 23.5-30.7L381.4 82l88.2-18L693 634.8c7.8 14.5 17.6 24.7 29.4 30.7 11.8 6 25.4 9 41.1 9H781v21.7H528.2v-21.7h23.5c23.5 0 38.2-4.2 44.1-12.6 5.8-8.4 4.9-21-3-37.9l-58.6-159zM410.8 143.4H405L281.5 443.3h246.9L410.8 143.4z m0 0" fill="currentColor" ></path><path d="M571.4 909.8l-111-111L767.2 492l111 111-306.8 306.8z m0 0" fill="#FF9800" ></path><path d="M949.8 479.4l-59-59c-14.4-14.4-38.7-13.4-54.3 2.3l-55.4 55.4 111 111 55.4-55.4c15.6-15.7 16.6-40 2.3-54.3z m0 0" fill="#D81E06" ></path><path d="M450 816.2l-39.2 143.1 143.1-39.2L450 816.2z m0 0" fill="#FF9800" ></path></symbol><symbol id="biaozhuyangshi" viewBox="0 0 1024 1024"><path d="M564 564.5l-111-111 306.8-306.8 111 111L564 564.5z m0 0" fill="#FF9800" ></path><path d="M942.4 134.1l-59-59c-14.4-14.4-38.7-13.4-54.3 2.3l-55.4 55.4 111 111 55.4-55.4c15.7-15.6 16.7-39.9 2.3-54.3z m0 0" fill="#D81E06" ></path><path d="M442.7 471l-39.2 143.1 143.1-39.2L442.7 471z m0 0" fill="#FF9800" ></path><path d="M78.9 958.7c-8.3 0-15-3.6-15-8.1V567.8c0-4.5 6.7-8.1 15-8.1s15 3.6 15 8.1v382.8c0 4.5-6.7 8.1-15 8.1z m0 0" fill="currentColor" ></path><path d="M839.4 774.1H182c-8.3 0-15-6.7-15-15s6.7-15 15-15h657.3c8.3 0 15 6.7 15 15 0.1 8.3-6.5 15-14.9 15z m0 0" fill="currentColor" ></path><path d="M196.3 662.3L135.2 759l61.1 96.7h0.6V662.3h-0.6z m628.8 0l61.1 96.7-61.1 96.7h-0.6V662.3h0.6z m0 0M944 959c-8.3 0-15-3.6-15-8.1V567.2c0-4.5 6.7-8.1 15-8.1s15 3.6 15 8.1V951c0 4.4-6.7 8-15 8z m0 0" fill="currentColor" ></path></symbol><symbol id="yuntu" viewBox="0 0 1024 1024"><path d="M250.4 975.2c-22.2 0-96-3.9-148.3-53.5-35.2-33.4-53-80.1-53-138.9 0-58.8 17.8-105.5 53-138.9 46.2-43.8 109.2-52 138.5-53.3 0.4-29.2 7.4-91.9 54.4-143.7 46.8-51.7 119.9-78 217.1-78s170.2 26.2 217.1 78c46.8 51.7 53.9 114.2 54.4 143.5 29.3 0.9 91.6 8.4 137.6 51.4 35.8 33.4 53.9 80.9 53.9 141 0 56.1-15.9 101.3-47.2 134.3-23.3 24.5-54.3 41.6-92.3 50.9-8 2-16.2-3-18.1-11-2-8 3-16.2 11-18.1 53.2-13 116.6-50.6 116.6-156 0-51.4-14.9-91.4-44.3-118.9-51.3-48-130.9-43.4-131.7-43.4-4.4 0.3-8.7-1.4-11.8-4.5-3.1-3.2-4.6-7.5-4.2-11.9 0.1-0.7 6.8-78.6-46.5-137.2-41-45.2-106.4-68-194.6-68-88.4 0-153.9 22.9-194.8 68.1-53.4 58.9-46.3 136.2-46.3 137 0.4 4.4-1.1 8.7-4.1 11.8s-7.3 4.9-11.6 4.6c-0.8 0-81.3-3.5-132.7 45.3-28.9 27.6-43.5 66.9-43.5 117s14.6 89.5 43.5 116.9c51.3 48.8 131.9 45.4 132.7 45.3H616c8.3 0 15 6.7 15 15s-6.7 15-15 15H256.4c-1 0.1-3 0.2-6 0.2z" fill="#178FE6" ></path><path d="M310.1 647.6h-1c-8.3-0.6-14.5-7.7-13.9-16 0.1-2 3.5-49.3 24.4-96.4 28.9-65.3 77.1-98.1 139.2-94.8 8.3 0.4 14.6 7.5 14.2 15.8s-7.5 14.6-15.8 14.2c-49.1-2.6-86.1 23.1-109.9 76.4-18.9 42.3-22.1 86.4-22.2 86.9-0.6 7.8-7.2 13.9-15 13.9z" fill="#178FE6" ></path></symbol><symbol id="dingyishuxing" viewBox="0 0 1024 1024"><path d="M450.2 89.4c7.1 0 14.1 3 19.2 8.1l457.4 457.4c5.1 5.1 8 11.8 8.1 18.8 0.1 6.7-2.4 13-7 17.6L591.4 927.9c-4.5 4.5-10.6 7-17.2 7-7.2 0-14-2.9-19.2-8.1L97.5 469.5c-6.4-6.4-9.3-15.3-7.7-23.9l52.6-284c1.8-9.8 9.4-17.4 19.2-19.2l284-52.6c1.5-0.3 3.1-0.4 4.6-0.4m0-25c-3.1 0-6.1 0.3-9.2 0.8l-284 52.6c-20 3.7-35.5 19.2-39.2 39.2L65.2 441c-3.1 16.6 2.4 33.9 14.6 46.1l457.4 457.4c10.3 10.3 23.7 15.4 36.9 15.4 12.7 0 25.3-4.8 34.9-14.3L945.6 609c19.5-19.5 19-51.7-1.1-71.8L487.1 79.8c-9.9-9.9-23.3-15.4-36.9-15.4z" fill="currentColor" ></path><path d="M333.8 265.3c19.7 0 38.4 7.8 52.6 22.1 28.5 28.5 29.5 73.9 2.2 101.2-12.8 12.8-30.1 19.9-48.6 19.9-19.7 0-38.4-7.8-52.6-22.1-28.5-28.5-29.5-73.9-2.2-101.2 12.8-12.8 30-19.9 48.6-19.9m0-30c-25.5 0-50.7 9.5-69.8 28.7-39.1 39.1-38.1 103.4 2.2 143.6 20.5 20.5 47.3 30.9 73.8 30.9 25.5 0 50.7-9.5 69.8-28.7 39.1-39.1 38.1-103.4-2.2-143.6-20.5-20.6-47.3-30.9-73.8-30.9zM454.9 741.4c-3.8 0-7.7-1.5-10.6-4.4-5.9-5.9-5.9-15.4 0-21.2l271.5-271.5c5.9-5.9 15.4-5.9 21.2 0 5.9 5.9 5.9 15.4 0 21.2L465.5 737c-2.9 3-6.8 4.4-10.6 4.4zM361.5 648.1c-3.8 0-7.7-1.5-10.6-4.4-5.9-5.9-5.9-15.4 0-21.2L622.4 351c5.9-5.9 15.4-5.9 21.2 0 5.9 5.9 5.9 15.4 0 21.2L372.2 643.7c-3 2.9-6.8 4.4-10.7 4.4z" fill="#178FE6" ></path></symbol><symbol id="huiyuandenglu" viewBox="0 0 1024 1024"><path d="M512 537c38 0 75.7 5 112 15 35.2 9.6 69 23.9 100.6 42.3 62.4 36.4 114.8 88.4 151.6 150.6 18.9 31.9 33.5 66.1 43.4 101.7 8 28.8 12.9 58.4 14.6 88.4H89.7c1.8-30 6.7-59.7 14.6-88.4 9.9-35.6 24.5-69.8 43.4-101.7 36.8-62.2 89.2-114.2 151.6-150.6C331 575.8 364.8 561.6 400 552c36.3-10 74-15 112-15m0-25c-164.2 0-307.8 88.3-385.8 220.1C86.7 798.9 64 876.8 64 960h896c0-83.2-22.7-161.1-62.2-227.9C819.8 600.3 676.2 512 512 512z" fill="#178FE6" ></path><path d="M512 89c27 0 53.2 5.3 77.8 15.7 23.8 10.1 45.2 24.5 63.6 42.9s32.8 39.8 42.9 63.6C706.7 235.8 712 262 712 289s-5.3 53.2-15.7 77.8c-10.1 23.8-24.5 45.2-42.9 63.6s-39.8 32.8-63.6 42.9C565.2 483.7 539 489 512 489s-53.2-5.3-77.8-15.7c-23.8-10.1-45.2-24.5-63.6-42.9s-32.8-39.8-42.9-63.6C317.3 342.2 312 316 312 289s5.3-53.2 15.7-77.8c10.1-23.8 24.5-45.2 42.9-63.6s39.8-32.8 63.6-42.9C458.8 94.3 485 89 512 89m0-25c-124.3 0-225 100.7-225 225s100.7 225 225 225 225-100.7 225-225S636.3 64 512 64zM448 844.5c-3.2 0-6.4-1.2-8.8-3.7l-128-128c-4.9-4.9-4.9-12.8 0-17.7 4.9-4.9 12.8-4.9 17.7 0l120.3 120.3L696.5 630c5.5-4.1 13.4-3 17.5 2.5s3 13.4-2.5 17.5l-256 192c-2.2 1.7-4.9 2.5-7.5 2.5z" fill="#178FE6" ></path></symbol><symbol id="chuangjiankuai1" viewBox="0 0 1024 1024"><path d="M716.5 716.5h-601v-537h601v537z m-576-25h551v-487h-551v487z" fill="currentColor" ></path><path d="M64 668h100v100H64V668z" fill="#178FE6" ></path><path d="M697.5 960.1c-70.1 0-136-27.3-185.6-76.9S435 767.7 435 697.6s27.3-136 76.9-185.6 115.5-76.9 185.6-76.9 136 27.3 185.6 76.9S960 627.5 960 697.6s-27.3 136-76.9 185.6-115.5 76.9-185.6 76.9z m0-500c-131 0-237.5 106.5-237.5 237.5s106.5 237.5 237.5 237.5S935 828.6 935 697.6 828.5 460.1 697.5 460.1z" fill="currentColor" ></path><path d="M730 179h230M730 166.5h230v25H730z" fill="#178FE6" ></path><path d="M844.9 64v230M832.4 64h25v230h-25z" fill="#178FE6" ></path></symbol><symbol id="daojiao" viewBox="0 0 1024 1024"><path d="M944.7 94.3H896c-8.3 0-15-6.7-15-15s6.7-15 15-15h48.7c8.3 0 15 6.7 15 15s-6.7 15-15 15z m-128.7 0h-80c-8.3 0-15-6.7-15-15s6.7-15 15-15h80c8.3 0 15 6.7 15 15s-6.7 15-15 15z m-160 0h-80c-8.3 0-15-6.7-15-15s6.7-15 15-15h80c8.3 0 15 6.7 15 15s-6.7 15-15 15z" ></path><path d="M944.7 463.1c-8.3 0-15-6.7-15-15v-48.7c0-8.3 6.7-15 15-15s15 6.7 15 15v48.7c0 8.2-6.7 15-15 15z m0-128.8c-8.3 0-15-6.7-15-15v-80c0-8.3 6.7-15 15-15s15 6.7 15 15v80c0 8.3-6.7 15-15 15z m0-160c-8.3 0-15-6.7-15-15v-80c0-8.3 6.7-15 15-15s15 6.7 15 15v80c0 8.3-6.7 15-15 15z" ></path><path d="M576 94.3H79c-8.3 0-15-6.7-15-15s6.7-15 15-15h497c8.3 0 15 6.7 15 15s-6.7 15-15 15zM945 960c-8.3 0-15-6.7-15-15V448c0-8.3 6.7-15 15-15s15 6.7 15 15v497c0 8.3-6.7 15-15 15z" fill="currentColor" ></path><path d="M944.9 463.1c-3.8 0-7.7-1.5-10.6-4.4L565.4 89.9c-5.9-5.9-5.9-15.4 0-21.2 5.9-5.9 15.4-5.9 21.2 0l368.9 368.9c5.9 5.9 5.9 15.4 0 21.2-3 2.9-6.8 4.3-10.6 4.3z" fill="currentColor" ></path></symbol><symbol id="jian1" viewBox="0 0 1024 1024"><path d="M676.040 537.8c14.58 0 26.4-11.82 26.4-26.4s-11.82-26.4-26.4-26.4h-316.56c-13.794 0.96-24.622 12.385-24.622 26.34s10.826 25.38 24.538 26.335l316.643 0.125zM834.32 89.3h-633.12c-58.32 0-105.54 47.28-105.54 105.54v633.12c0 58.32 47.28 105.6 105.54 105.6h633.12c58.296-0.034 105.54-47.3 105.54-105.6 0 0 0 0 0 0v-633.24c0-58.2-47.22-105.42-105.54-105.42zM887.12 827.96c0 29.161-23.639 52.8-52.8 52.8 0 0 0 0 0 0h-633.12c-29.161 0-52.8-23.639-52.8-52.8 0 0 0 0 0 0v-633.24c0.034-29.135 23.661-52.74 52.8-52.74 0 0 0 0 0 0h633.12c0 0 0 0 0 0 29.139 0 52.766 23.605 52.8 52.737v633.243z" fill="currentColor" ></path></symbol><symbol id="yanjing" viewBox="0 0 1024 1024"><path d="M512 334.37167391c-14.48135344 0-28.38592497 1.0299681-41.73431364 2.98690763-16.89147917 2.43072477-32.62939453-8.7547303-35.1631167-25.00762971-2.55432121-16.2528994 9.06372103-31.41403214 25.9552002-33.84475692 16.37649513-2.38952669 33.37097168-3.64608788 50.94223014-3.64608716 127.01568571 0 219.69223023 65.91796858 279.03900114 128.74603215a551.15661653 551.15661653 0 0 1 83.18023707 115.27404776c1.85394287 3.52249146 3.66668693 7.06558195 5.41763312 10.64987199l0.30899072 0.6797793 0.12359572 0.24719213v0.06179859l0.02059977 0.02059904-28.22113046 12.11242652 28.26232926 12.11242724-0.06179857 0.08239689-0.06179784 0.16479525-0.24719216 0.53558382a452.15606722 452.15606722 0 0 1-16.37649584 30.15747021 557.91320777 557.91320777 0 0 1-49.12948608 69.68765292 31.72302214 31.72302214 0 0 1-43.15567008 4.44946289 29.02450545 29.02450545 0 0 1-5.21163909-41.48712151 497.14508041 497.14508041 0 0 0 51.53961182-75.70266771 491.70684822 491.70684822 0 0 0-72.09777865-98.97994956C692.2856447 387.47683692 614.9556272 334.37167391 512 334.37167391z m339.88952613 208.28018132l28.22113045 12.11242724a28.83911116 28.83911116 0 0 0 0-24.22485376l-28.22113045 12.11242652zM276.61105323 401.62860132c6.07681267 5.31463647 9.68170174 12.73040796 10.07309007 20.59936491 0.37078857 7.88955671-2.5131224 15.59371915-8.03375291 21.42333969a491.8510437 491.8510437 0 0 0-72.09777793 99.00054931 491.99523918 491.99523918 0 0 0 72.09777793 99.00054931C331.75555412 697.80627449 409.0443728 750.93203727 512 750.93203727a285.91918953 285.91918953 0 0 0 97.33200073-16.82968131c15.86151106-5.35583529 33.24737525 2.5131224 39.13879362 17.67425513 5.87081933 15.16113274-1.89514167 32.05261263-17.50945988 38.04702766A349.92141741 349.92141741 0 0 1 512 810.44360345c-127.01568571 0-219.69223023-65.91796858-279.03900114-128.74603289a551.05361915 551.05361915 0 0 1-83.18023707-115.27404778c-1.85394287-3.50189242-3.66668693-7.06558195-5.41763312-10.64987199l-0.30899072-0.67977856-0.12359572-0.24719287-0.02059977-0.04119808v-0.04119881l28.22113046-12.11242724L143.84814461 530.53942873l0.04119882-0.02059906 0.02059904-0.06179858 0.10299664-0.24719214 0.30899074-0.67977929 1.17416357-2.30712908c6.38580339-12.64801033 13.38958748-25.00762972 20.8877566-37.05825765a552.92816178 552.92816178 0 0 1 66.53595002-86.55853303 31.39343238 31.39343238 0 0 1 21.42333969-9.68170175c8.17794767-0.39138761 16.19110084 2.38952669 22.24731445 7.70416317zM172.11047387 542.65185523L143.88934343 530.53942873a28.83911116 28.83911116 0 0 0 0 24.22485374l28.22113044-12.11242724z" fill="currentColor" ></path><path d="M481.45114144 405.21289062c0-16.50009156 13.76037606-29.88967903 30.73425285-29.88967903 92.77954118 0 166.01028459 75.59967033 166.01028458 166.5046696 0 10.67047103-5.87081933 20.53756706-15.3671268 25.8934016a31.51702881 31.51702881 0 0 1-30.75485189 0 29.74548356 29.74548356 0 0 1-15.36712678-25.8934016c0-60.04714999-47.89352393-106.72531151-104.52117911-106.72531153-16.97387678 0-30.73425285-13.38958748-30.73425285-29.88967904z m-94.81887833 77.49481201c16.60308821 3.48129264 27.14996355 19.36340347 23.58627327 35.51330551a109.3826294 109.3826294 0 0 0-2.55432121 23.60687305c0 60.04714999 47.89352393 106.72531151 104.52117912 106.72531079 8.11614983 0 15.9851075-0.92697143 23.52447542-2.67791765 16.47949252-3.89328003 33.10317977 5.973816 37.07885742 22.02072209 4.01687646 16.04690535-6.13861052 32.1968081-22.6387028 36.06948836a165.88668816 165.88668816 0 0 1-37.96463004 4.32586646c-92.77954118 0-166.01028459-75.59967033-166.01028458-166.50466887 0-12.35961937 1.35955787-24.51324471 3.93447884-36.15188599 1.70974739-7.74536125 6.52999886-14.52255225 13.38958747-18.82782039 6.83898958-4.32586646 15.16113274-5.78842171 23.13308709-4.1198724v0.02059904zM213.78298966 221.81674186a31.37283333 31.37283333 0 0 1 43.46466081 0L810.58779891 759.81036401c11.65924103 11.74163795 11.4944458 30.38406405-0.37078858 41.89910888a31.37283333 31.37283333 0 0 1-43.09387223 0.37078858L213.78298966 264.08663933a29.31289641 29.31289641 0 0 1 0-42.26989747z" fill="currentColor" ></path></symbol><symbol id="cha" viewBox="0 0 1024 1024"><path d="M168.38 208.632l42.426-42.426 633.561 633.561-42.426 42.426z" fill="currentColor" ></path><path d="M168.38 799.775L801.94 166.214l42.426 42.426L210.806 842.2z" fill="currentColor" ></path></symbol><symbol id="budayinbiaoqian" viewBox="0 0 1024 1024"><path d="M150.314667 301.098667L403.84 554.666667 298.666667 554.666667v298.666666h227.925333c11.221333 31.829333 28.586667 60.757333 50.645333 85.333334H213.333333v-213.333334H85.333333V384a85.333333 85.333333 0 0 1 64.981334-82.901333z m7.850666-203.264l768 768-30.208 30.122666L896 938.666667l-27.818667-14.933334-2.346666 2.432-768-768 60.330666-60.330666zM640 790.826667l96.384 96.426666L640 938.666667v-147.84zM748.117333 597.333333L896 597.333333v147.84L748.117333 597.333333z m-298.709333-298.666666L853.333333 298.666667a85.333333 85.333333 0 0 1 85.333334 85.333333v193.237333A255.061333 255.061333 0 0 0 768 512c-31.36 0-61.44 5.632-89.173333 15.957333L449.365333 298.666667zM810.666667 384a42.666667 42.666667 0 1 0 0 85.333333 42.666667 42.666667 0 0 0 0-85.333333z m0-298.666667v170.666667H406.741333l-170.666666-170.666667H810.666667z" fill="currentColor" ></path></symbol><symbol id="ziyuan" viewBox="0 0 1024 1024"><path d="M770.30775499 535.50654286h65.59120971a25.18233922 25.18233922 0 1 0 0-49.77904322h-66.76248156l83.74591991-83.74591991a24.596704 24.596704 0 0 0-35.13814784-35.13814857l-117.12716072 117.12716071H555.37941492L625.65571135 360.9870733 789.63373635 317.65002387a25.18233922 25.18233922 0 0 0 17.56907427-31.0386978 24.596704 24.596704 0 0 0-30.45306184-17.56907428l-114.19898179 30.45306187 33.38124079-58.56358a25.18233922 25.18233922 0 0 0-43.92268536-25.18233993l-32.79560486 58.5635807L588.17501978 161.28526452a24.596704 24.596704 0 0 0-48.02213543 12.88398756l43.33704943 162.22111721-71.44756829 124.15479043-72.03320422-124.74042636 43.33705015-162.2211172a25.76797515 25.76797515 0 0 0-17.56907428-31.62433373 25.18233922 25.18233922 0 0 0-30.45306186 18.15471023l-31.03869779 117.12716072-32.79560486-58.56358073a24.596704 24.596704 0 0 0-33.96687671-8.78453678 24.01106807 24.01106807 0 0 0-9.37017271 33.96687672l33.38124079 58.56357999-114.19898179-32.79560485a25.18233922 25.18233922 0 0 0-12.88398757 48.02213615l162.22111721 43.33704942 72.03320421 124.74042634H327.56708728l-117.12716071-117.1271607a24.596704 24.596704 0 0 0-35.13814785 0 24.596704 24.596704 0 0 0 0 35.13814785l81.98901212 81.98901285H182.32940771a25.18233922 25.18233922 0 1 0 0 49.77904322h73.79011128L172.95923499 619.25246279a25.18233922 25.18233922 0 0 0 0 35.72378379 24.596704 24.596704 0 0 0 17.5690743 7.02762972 24.596704 24.596704 0 0 0 17.56907428-7.02762972l117.12716072-117.12716071h143.48077177l-70.27629642 120.05533963-162.80675314 43.33704943a24.596704 24.596704 0 1 0 12.88398756 48.02213615l114.19898179-30.45306185L325.22454428 786.15866672a25.18233922 25.18233922 0 0 0 21.66852436 37.48069157 25.76797515 25.76797515 0 0 0 21.66852507-12.29835236l37.48069157-64.41993784 30.45306186 117.12716071a25.18233922 25.18233922 0 0 0 24.01106734 18.74034542h6.44199379a24.596704 24.596704 0 0 0 17.56907429-30.45306185l-43.33704943-169.24874693 70.86193236-122.39788336 70.27629643 121.81224743L538.9816125 844.72224672a24.596704 24.596704 0 0 0 17.56907427 30.45306185h6.44199379a25.18233922 25.18233922 0 0 0 24.01106807-18.74034543l30.45306114-117.12716071 37.48069157 65.00557379a26.35361107 26.35361107 0 0 0 21.66852508 12.29835235 25.18233922 25.18233922 0 0 0 12.88398756-3.51381485 24.596704 24.596704 0 0 0 8.78453679-26.939247l-36.89505564-64.41993857 117.12716071 31.03869778a25.18233922 25.18233922 0 0 0 12.88398758-48.60777207L625.65571135 658.49006143l-70.27629642-122.98351857h144.0664077l117.12716071 117.12716072a25.18233922 25.18233922 0 0 0 35.13814785 0 25.18233922 25.18233922 0 0 0 0-35.7237845z" fill="currentColor" ></path></symbol><symbol id="cloudshellyunminglinghang" viewBox="0 0 1024 1024"><path d="M917.504 835.584H106.496V188.416h810.496l0.512 647.168zM186.88 755.2h650.752v-486.4H186.88v486.4z" fill="currentColor" ></path><path d="M343.04 648.704l-56.32-56.32 88.064-88.064L286.72 415.744l56.32-56.832 144.896 144.896L343.04 648.704z m163.84-63.488h230.4v79.872H506.88v-79.872z" fill="currentColor" ></path></symbol><symbol id="suo" viewBox="0 0 1024 1024"><path d="M699.63238224 436.42830294L324.36048895 436.42830294c-32.41326715 0-58.68649143 26.21904532-58.68649143 58.57029185l0 248.4525261c0 32.35195941 26.27322427 58.57029185 58.68649143 58.57029184l375.27260617 0c32.41398004 0 58.69433313-26.21833245 58.69433312-58.57029184L758.32742824 494.99859479C758.32671536 462.64734826 732.04636228 436.42830294 699.63238224 436.42830294zM536.71272806 617.54424119l0 65.21362864c0 13.64453976-11.05749509 24.71771823-24.71629246 24.71771822-13.65095568 0-24.71629247-11.07317848-24.71629246-24.71771822l0-65.21362863c-14.75877254-8.54886733-24.71700533-24.4838933-24.71700536-42.77356477 0-27.30333712 22.12996069-49.43401068 49.43329782-49.43401068s49.4411395 22.13067357 49.44113949 49.43401068C561.43757509 593.0603479 551.48718397 608.99537387 536.71272806 617.54424119zM511.9964356 201.58894983c-95.55954127 0-173.03186925 76.38019449-173.03186926 176.73314671l1e-8 76.75231829 346.07229306 16.47752832L685.03685941 378.32209654C685.03685941 277.96914432 607.56453145 201.58894983 511.9964356 201.58894983zM388.42851802 450.73796054L388.42851802 376.60334078c0-68.23410486 55.32525815-123.56791757 123.56720469-123.56791759 68.24978823 0 123.56791757 55.33381272 123.56791758 123.56791759l0 75.8690589L388.42851802 450.73796054z" fill="currentColor" ></path></symbol><symbol id="taiyang" viewBox="0 0 1024 1024"><path d="M507.47829852 315.02083306c-6.7282375 0-12.17328942-5.45863062-12.17328944-12.18686812V229.73312427c0-6.7282375 5.44505195-12.18007878 12.17328945-12.18007877 6.74181618 0 12.18686812 5.45184128 12.1868681 12.18007877v73.10084067c0 6.7282375-5.44505195 12.18686812-12.1868681 12.18686812zM507.47829852 802.35977088s0.01357868 0 1e-8 0c-6.70786947 0-12.17328942-5.45184128-12.17328946-12.18007877V717.07885143c0-6.7282375 5.45863062-12.18686812 12.18686812-12.18686811s12.17328942 5.45863062 12.17328944 12.1868681v73.10084069c0 6.7282375-5.44505195 12.18007878-12.18686811 12.18007877z" fill="currentColor" ></path><path d="M369.64108599 372.11240631c-4.76611778 4.75932844-12.47202046 4.75932844-17.22455956 0l-51.70083606-51.6940467c-4.74574975-4.7525391-4.74574975-12.46523112 0-17.22455956 4.76611778-4.76611778 12.47202046-4.76611778 17.23813825 0l51.68725737 51.68725736c4.76611778 4.75932844 4.76611778 12.47880982 0 17.2313489zM714.25448534 716.71222699c-4.76611778 4.76611778-12.47880982 4.76611778-17.23813825 0l-51.68725736-51.68725737c-4.76611778-4.75932844-4.76611778-12.47880982 1e-8-17.2313489 4.76611778-4.75932844 12.47202046-4.75932844 17.23813823 0l51.68725737 51.69404671c4.74574975 4.7525391 4.74574975 12.46523112-1e-8 17.22455956z" fill="currentColor" ></path><path d="M312.54951273 509.95640818c0 6.7282375-5.45863062 12.18007878-12.18686811 12.18007878H227.26180393c-6.7282375 0-12.17328942-5.45184128-12.18686811-12.18007878 0-6.7282375 5.45863062-12.18007878 12.18686811-12.18007877h73.10084069c6.7282375 0 12.18686812 5.44505195 12.18686811 12.18007877zM799.8816612 509.95640818c0 6.7282375-5.44505195 12.18007878-12.17328943 12.18007878H714.6075311c-6.7282375 0-12.18686812-5.45184128-12.18686812-12.18007878 0-6.7282375 5.45863062-12.18007878 12.18686812-12.18007877h73.10084067c6.7282375 0 12.17328942 5.44505195 12.17328943 12.18007877z" fill="currentColor" ></path><path d="M369.64108599 647.79362072c4.76611778 4.7525391 4.76611778 12.47202046 0 17.2313489l-51.68725737 51.68725737c-4.76611778 4.76611778-12.47202046 4.76611778-17.23813825 0-4.74574975-4.75932844-4.74574975-12.46523112 0-17.22455956l51.70083606-51.69404671c4.7525391-4.75932844 12.46523112-4.75932844 17.22455956 0zM714.25448534 303.1870107c0 0.00678934 0 0-1e-8 0 4.74574975 4.76611778 4.74574975 12.47880982 0 17.23134891l-51.70083603 51.6940467c-4.74574975 4.75932844-12.45844178 4.75932844-17.22455957 0-4.76611778-4.7525391-4.76611778-12.47202046 0-17.23134891l51.68725736-51.6940467c4.75932844-4.7525391 12.47202046-4.7525391 17.23813824 0z" fill="currentColor" ></path><path d="M507.47829852 668.33816831c-87.32451127 0-158.37497078-71.05045952-158.37497078-158.38176013S420.15378725 351.56785872 507.47829852 351.56785872c87.34487928 0 158.38854946 71.05045952 158.38854946 158.38176013S594.81638847 668.33816831 507.47829852 668.33816831z" fill="currentColor" ></path><path d="M507.47829852 339.38099062c-94.19532493 0-170.56183889 76.36651397-170.5618389 170.57541756S413.28297358 680.52503642 507.47829852 680.52503642c94.21569295 0 170.58220691-76.36651397 170.58220692-170.56862824S601.68720212 339.38099062 507.47829852 339.38099062z m103.38130407 273.9499323c-27.60546282 27.61904151-64.32222203 42.82716662-103.38809342 42.82716662-39.0522927 0-75.76226257-15.20812511-103.36772538-42.82716662C376.49832096 585.7254601 361.27661716 549.00191157 361.27661716 509.95640818s15.22170381-75.76905191 42.83395596-103.37451472c27.60546282-27.61904151 64.32222203-42.82716662 103.36772541-42.82716662 39.06587139 0 75.77584125 15.20812511 103.3880934 42.82716662 27.61225217 27.60546282 42.81358793 64.32901136 42.81358793 103.37451472s-15.20812511 75.76905191-42.82037727 103.37451474z" fill="currentColor" ></path></symbol><symbol id="youjiantou" viewBox="0 0 1024 1024"><path d="M273.322667 963.413333a62.805333 62.805333 0 0 1 0-86.613333L625.365333 512 273.322667 147.2a62.805333 62.805333 0 0 1 0-86.613333 57.6 57.6 0 0 1 83.541333 0l393.813333 408.149333c23.082667 23.893333 23.082667 62.634667 0 86.528l-393.813333 408.149333a57.6 57.6 0 0 1-83.541333 0z" fill="currentColor" ></path></symbol><symbol id="jinggao" viewBox="0 0 1155 1024"><path d="M513.239709 49.588378C533.075061 14.876513 580.184019 2.479419 614.895884 22.31477c12.397094 7.438257 19.835351 14.876513 27.273608 27.273608l490.924939 850.440678c19.835351 34.711864 7.438257 81.820823-27.273608 101.656174-12.397094 7.438257-24.794189 9.917676-37.191283 9.917676H86.779661c-42.150121 0-74.382567-32.232446-74.382567-74.382567 0-12.397094 2.479419-24.794189 9.917676-37.191283L513.239709 49.588378z" fill="#FFBA00" ></path><path d="M86.779661 1024c-47.108959 0-86.779661-39.670702-86.779661-86.779661 0-14.876513 4.958838-29.753027 12.397094-44.62954L503.322034 44.62954c24.794189-42.150121 76.861985-54.547215 119.012106-32.232446 12.397094 7.438257 24.794189 19.835351 32.232446 32.232446L1143.012107 892.590799c12.397094 19.835351 14.876513 44.62954 7.438256 66.94431-4.958838 22.31477-19.835351 42.150121-39.670702 52.067797-12.397094 7.438257-27.273608 12.397094-44.62954 12.397094H86.779661zM577.7046 24.794189c-22.31477 0-42.150121 9.917676-54.547215 32.232445L32.232446 904.987893c-4.958838 9.917676-7.438257 19.835351-7.438257 32.232446 0 34.711864 27.273608 61.985472 61.985472 61.985472h981.849879c9.917676 0 22.31477-2.479419 32.232445-7.438257 29.753027-17.355932 39.670702-54.547215 22.31477-84.300242L632.251816 54.547215c-4.958838-9.917676-12.397094-17.355932-22.31477-22.314769-9.917676-4.958838-22.31477-7.438257-32.232446-7.438257z m-64.464891 24.794189z" ></path><path d="M505.801453 825.646489c0-34.711864 27.273608-57.026634 59.506053-57.026634 32.232446 0 59.506053 22.31477 59.506053 57.026634 0 37.191283-27.273608 59.506053-59.506053 59.506053-32.232446 0-59.506053-22.31477-59.506053-59.506053z m17.355932-414.062954l-2.479419-86.779661h89.25908l-2.479419 86.779661-19.835351 287.612591h-49.588378l-14.876513-287.612591z" ></path></symbol><symbol id="a-zu20" viewBox="0 0 1024 1024"><path d="M95.936884 10.098619h565.522682v706.903353H95.936884V10.098619z" fill="#82BF82" ></path><path d="M661.459566 727.100592H95.936884c-6.059172 0-10.098619-4.039448-10.09862-10.09862V10.098619C85.838264 4.039448 89.877712 0 95.936884 0h565.522682c6.059172 0 10.098619 4.039448 10.098619 10.098619v706.903353c0 6.059172-4.039448 10.098619-10.098619 10.09862zM106.035503 706.903353h545.325444V20.197239H106.035503v686.706114z" fill="#016601" ></path><path d="M909.885602 941.191321l-201.972387-298.919132 153.499014-16.157791-375.668639-228.228796 74.729783 440.299802 68.670611-141.38067 201.972387 298.919132 78.769231-54.532545z" fill="currentColor" ></path><path d="M827.076923 1024l-193.893491-286.800789-80.788955 165.617357-92.907298-545.325444 464.53649 280.741618-179.755424 20.197238 193.893491 288.820513-111.084813 76.749507z m-199.952663-367.589744l210.051282 311.037476 44.433925-32.315582L671.558185 624.094675l127.242604-14.138068-286.800789-173.696252L570.571992 771.534517l56.552268-115.124261z" fill="#232323" ></path></symbol><symbol id="houtui" viewBox="0 0 1433 1024"><path d="M1376 992c0-403.2-706.56-399.36-706.56-399.36V838.4L32 435.2 669.44 32v245.76S1376 304.64 1376 992z" fill="currentColor" ></path></symbol><symbol id="xuanzhuan1" viewBox="0 0 1024 1024"><path d="M512 1024C505.277899 1024 70.582057 988.148796 70.582057 582.582057 70.582057 177.015317 440.297593 141.164114 442.538293 141.164114c8.962801 0 15.684902 6.722101 17.925602 13.444201 0 8.962801-6.722101 15.684902-13.444201 17.925602-15.684902 2.2407-345.067834 33.610503-345.067834 410.04814S496.315098 990.389497 514.2407 992.630197c13.444201 0 407.80744-15.684902 407.80744-432.455142 0-8.962801 6.722101-15.684902 15.684902-15.684902s15.684902 6.722101 15.684901 15.684902c0 448.140044-436.936543 463.824945-441.417943 463.824945z" fill="currentColor" ></path><path d="M720.38512 156.849015l-268.884026 156.849016V0l268.884026 156.849015z" fill="currentColor" ></path></symbol><symbol id="juxing" viewBox="0 0 1024 1024"><path d="M912 862.7H112c-5.5 0-10-4.5-10-10V171.3c0-5.5 4.5-10 10-10h800c5.5 0 10 4.5 10 10v681.3c0 5.6-4.5 10.1-10 10.1z m-790-20h780V181.3H122v661.4z" fill="currentColor" ></path><path d="M912 865.2H112c-6.9 0-12.5-5.6-12.5-12.5V171.3c0-6.9 5.6-12.5 12.5-12.5h800c6.9 0 12.5 5.6 12.5 12.5v681.3c0 7-5.6 12.6-12.5 12.6zM112 163.8c-4.1 0-7.5 3.4-7.5 7.5v681.3c0 4.1 3.4 7.5 7.5 7.5h800c4.1 0 7.5-3.4 7.5-7.5V171.3c0-4.1-3.4-7.5-7.5-7.5H112z m792.5 681.4h-785V178.8h785v666.4z m-780-5h775V183.8h-775v656.4z" fill="currentColor" ></path><path d="M860.2 128h100v100h-100V128z" ></path><path d="M64 795.6h100v100H64v-100z" ></path></symbol><symbol id="zhengduobianxing" viewBox="0 0 1024 1024"><path d="M788.7 936H235.3l-171-526.2L512 84.5l447.6 325.2L788.7 936z m-531.6-30h509.7l157.5-484.8L512 121.6 99.6 421.2 257.1 906z" fill="currentColor" ></path><path d="M192 859.6h100v100H192v-100zM462 462h100v100H462V462z" ></path></symbol><symbol id="duobianxing" viewBox="0 0 1024 1024"><path d="M415.9 928c-3.3 0-6.4-1.6-8.3-4.5L65.7 410.7c-2.5-3.7-2.2-8.7 0.7-12.1L322.8 99.5c1.9-2.2 4.7-3.5 7.6-3.5h491.4c3.5 0 6.8 1.8 8.6 4.9 1.8 3 1.9 6.8 0.2 9.9L662.8 425.5 957.9 805c2.1 2.7 2.7 6.4 1.5 9.6-1.2 3.2-4 5.6-7.4 6.3L417.8 927.8c-0.6 0.1-1.3 0.2-1.9 0.2zM86.5 405.9l333.9 500.9 511.7-102.3L643 432.7c-2.4-3.1-2.8-7.4-0.9-10.8l163-305.9H335L86.5 405.9z" fill="currentColor" ></path><path d="M415.8 930.5c-4.2 0-8.1-2.1-10.4-5.6L63.6 412.1c-3.1-4.6-2.7-10.8 0.9-15.1L320.9 97.9c2.4-2.8 5.8-4.4 9.5-4.4h491.4c4.4 0 8.5 2.3 10.7 6.1 2.2 3.7 2.4 8.5 0.3 12.3L665.7 425.3l294.1 378.2c2.7 3.4 3.4 7.9 1.8 12-1.5 4.1-5 7-9.3 7.9l-534 106.8c-0.8 0.2-1.6 0.3-2.5 0.3 0.1 0 0.1 0 0 0z m-85.4-832c-2.2 0-4.3 1-5.7 2.6L68.3 400.3c-2.2 2.5-2.4 6.3-0.5 9l341.9 512.8c1.4 2.1 3.7 3.3 6.2 3.3 0.5 0 1 0 1.5-0.1l534.1-106.8c2.6-0.5 4.6-2.3 5.6-4.7 0.9-2.5 0.5-5.2-1.1-7.2L659.8 425.8l0.8-1.4 167.9-314.8c1.2-2.3 1.2-5.1-0.2-7.4-1.3-2.2-3.8-3.6-6.4-3.6H330.4z m88.9 811.1l-0.9-1.4-335-502.5 1.2-1.4 249.2-290.8h475.5L644.3 423c-1.4 2.6-1.1 5.8 0.7 8.1l291.7 375-517.4 103.5zM89.7 406.1l332 497.9 506.1-101.2L641 434.2c-3-3.9-3.5-9.2-1.2-13.6L801 118.5H336.1L89.7 406.1z" fill="currentColor" ></path><path d="M348.1 859.6h100v100h-100v-100z" ></path><path d="M732.2 63.9h100v100h-100v-100z" ></path></symbol><symbol id="zhixian" viewBox="0 0 1024 1024"><path d="M112.481 890.299l777.81-777.81 21.213 21.213-777.81 777.81z" fill="currentColor" ></path><path d="M860.2 63.9h100v100h-100zM64 859.6h100v100H64z" ></path></symbol><symbol id="danhangwenzi" viewBox="0 0 1024 1024"><path d="M64 928.9h896v30H64z" ></path><path d="M651.8 565.9H321.2L255 737.5c-9.8 27.1-9.8 48.9 0 65.5s31.8 24.8 66.1 24.8h22v27.1H71.3v-27.1h22c19.6 0 36.7-3.8 51.4-11.3 14.7-7.5 24.5-20.3 29.4-38.4L460.8 87.2 571 64.7l279.2 713.5c9.8 18.1 22 30.9 36.7 38.4 14.7 7.5 31.8 11.3 51.4 11.3h22V855h-316v-27.1h29.4c29.4 0 47.8-5.3 55.1-15.8s6.1-26.3-3.7-47.4l-73.3-198.8zM497.5 164h-7.3L335.9 538.8h308.6L497.5 164z" fill="currentColor" ></path></symbol><symbol id="dian" viewBox="0 0 1024 1024"><path d="M437 437h150v150H437V437z" ></path></symbol><symbol id="duoxianduan" viewBox="0 0 1024 1024"><path d="M113.928 826.67L274.511 378.8l28.239 10.124-160.583 447.87zM326.439 392.367l24.582-17.2 272.776 389.871-24.582 17.2zM641.725 750.904l233.417-564.871 27.726 11.457-233.417 564.87z" fill="currentColor" ></path><path d="M860.2 128h100v100h-100V128zM64 795.6h100v100H64v-100zM256 320h100v100H256V320zM576.1 731.7h100v100h-100v-100z" ></path></symbol><symbol id="charutupian" viewBox="0 0 1024 1024"><path d="M294.7 814.7l-24.7-17c1.1-1.6 27.4-39.7 65.4-75.2 22.8-21.3 45-37.2 66.2-47.4 28.1-13.5 54.6-17 78.7-10.4 12.4 3.4 24.8 7.1 36.9 10.8 74.4 22.4 144.7 43.5 208-10.4 13.4-11.4 26.3-22.9 38.8-34 64.2-57.2 119.7-106.6 182.1-88.4l-8.4 28.8c-46.5-13.5-93.8 28.6-153.8 82-12.6 11.2-25.7 22.9-39.3 34.5-75.8 64.5-157.3 40-236.1 16.3-11.9-3.6-24.1-7.3-36.2-10.6-39.6-10.9-85 21.4-116.1 50.4-35.6 33.3-61.2 70.2-61.5 70.6z" ></path><path d="M957 892H67V222h890v670zM97 862h830V252H97v610z" fill="currentColor" ></path><path d="M798.1 342h-60c-13.8 0-25-11.2-25-25V157c0-13.8 11.2-25 25-25h60c13.8 0 25 11.2 25 25v160c0 13.8-11.2 25-25 25z m-55-30h50V162h-50v150z" fill="currentColor" ></path><path d="M282.4 526.5c-49.6 0-90-40.4-90-90s40.4-90 90-90 90 40.4 90 90-40.4 90-90 90z m0-150c-33.1 0-60 26.9-60 60s26.9 60 60 60 60-26.9 60-60-26.9-60-60-60z" ></path></symbol><symbol id="duohangwenben" viewBox="0 0 1024 1024"><path d="M1024 977H0V47h1024v930zM30 947h964V77H30v870z" fill="currentColor" ></path><path d="M946 833.5H78.4c-8.3 0-15-6.7-15-15s6.7-15 15-15H946c8.3 0 15 6.7 15 15s-6.7 15-15 15zM946 591H569.8c-8.3 0-15-6.7-15-15s6.7-15 15-15H946c8.3 0 15 6.7 15 15s-6.7 15-15 15zM946 463H569.8c-8.3 0-15-6.7-15-15s6.7-15 15-15H946c8.3 0 15 6.7 15 15s-6.7 15-15 15zM946 335H569.8c-8.3 0-15-6.7-15-15s6.7-15 15-15H946c8.3 0 15 6.7 15 15s-6.7 15-15 15zM946 207H569.8c-8.3 0-15-6.7-15-15s6.7-15 15-15H946c8.3 0 15 6.7 15 15s-6.7 15-15 15z" ></path><path d="M435.3 492.9H223.8l-42.3 124.9c-6.3 19.7-6.3 35.6 0 47.7 6.3 12.1 20.4 18.1 42.3 18.1h14.1v19.7H64v-19.7h14.1c12.5 0 23.5-2.7 32.9-8.2 9.4-5.5 15.7-14.8 18.8-28l183.3-503 70.5-16.4 178.6 519.4c6.3 13.2 14.1 22.5 23.5 28s20.4 8.2 32.9 8.2h14.1v19.7H430.6v-19.7h18.8c18.8 0 30.5-3.8 35.2-11.5s3.9-19.2-2.3-34.5l-47-144.7z m-98.7-292.6h-4.7l-98.7 272.9h197.4l-94-272.9z" fill="currentColor" ></path></symbol><symbol id="tuoyuanhu" viewBox="0 0 1024 1024"><path d="M895 512c0 54.5-38.7 106.3-109 146-73 41.2-170.3 64-274 64s-201.1-22.7-274-64c-70.3-39.7-109-91.6-109-146 0-54.5 38.7-106.3 109-146 73-41.2 170.3-64 274-64h0.5v-30h-0.5c-108.8 0-211.4 24.1-288.8 67.8-38.4 21.7-68.6 47.1-89.9 75.6C110.5 445.8 99 478.3 99 512s11.5 66.2 34.3 96.6c21.3 28.5 51.5 53.9 89.9 75.6C300.6 728 403.2 752 512 752s211.4-24.1 288.8-67.8c38.4-21.7 68.6-47.1 89.9-75.6 22.7-30.4 34.3-62.9 34.3-96.6h-30z" fill="currentColor" ></path><path d="M497.5 272h30v255.1h-30z" fill="currentColor" ></path><path d="M512 497h413v30H512z" fill="currentColor" ></path><path d="M462 233.9h100v100H462v-100zM462 462h100v100H462V462zM860 462h100v100H860V462z" ></path></symbol><symbol id="yuan" viewBox="0 0 1024 1024"><path d="M512 932c-56.7 0-111.7-11.1-163.5-33-50-21.2-94.9-51.4-133.5-90-38.6-38.6-68.8-83.5-90-133.5-21.9-51.8-33-106.8-33-163.5s11.1-111.7 33-163.5c21.2-50 51.4-94.9 90-133.5 38.6-38.6 83.5-68.8 133.5-90 51.8-21.9 106.8-33 163.5-33s111.7 11.1 163.5 33c50 21.2 94.9 51.4 133.5 90 38.6 38.6 68.8 83.5 90 133.5 21.9 51.8 33 106.8 33 163.5s-11.1 111.7-33 163.5c-21.2 50-51.4 94.9-90 133.5-38.6 38.6-83.5 68.8-133.5 90-51.8 21.9-106.8 33-163.5 33z m0-810c-215 0-390 175-390 390s175 390 390 390 390-175 390-390-175-390-390-390z" fill="currentColor" ></path><path d="M462 64h100v100H462V64zM64 462h100v100H64V462zM860 462h100v100H860V462zM462 860h100v100H462V860z" ></path></symbol><symbol id="yangtiaoxian" viewBox="0 0 1024 1024"><path d="M236.4 931.5c-1.7-0.7-43-17.5-87.1-46C88.1 846 52.8 804.8 44.5 763c-7.2-36.2 5.9-71.1 38.9-103.8 62.2-61.5 241.7-59.7 431.8-57.8 91.6 0.9 186.4 1.9 260.5-5.4 77.9-7.6 125.1-23.9 140.5-48.2 9-14.3 7.6-33-4.2-57.1-38.9-79.4-71.1-135.3-94.6-176.2-48.5-84.4-68.6-119.3-49.9-190.4l29 7.6c-15.6 59.2-1.1 84.3 46.9 167.8 23.7 41.2 56.1 97.6 95.5 177.9 16.6 33.8 17.4 62.8 2.6 86.3-21.1 33.5-72.9 53.3-163 62.1-75.7 7.4-171.3 6.5-263.7 5.6-88.7-0.9-180.4-1.8-255.2 4.6-81.1 6.9-131.9 21.5-155.2 44.5C78.6 706 68.6 731 73.8 757.1c16.4 81.9 172.3 146 173.8 146.6l-11.2 27.8z" fill="currentColor" ></path><path d="M732 64h100v100H732V64zM192 860h100v100H192V860z" ></path></symbol><symbol id="tuoyuan" viewBox="0 0 1024 1024"><path d="M512 752c-108.9 0-211.4-24.1-288.8-67.8-38.4-21.7-68.6-47.1-89.9-75.6C110.5 578.2 99 545.7 99 512c0-33.7 11.5-66.2 34.3-96.6 21.3-28.5 51.6-53.9 89.9-75.6 77.4-43.7 180-67.8 288.8-67.8s211.4 24.1 288.8 67.8c38.4 21.7 68.6 47.1 89.9 75.6 22.7 30.4 34.3 62.9 34.3 96.6 0 33.7-11.5 66.2-34.3 96.6-21.3 28.5-51.6 53.9-89.9 75.6C723.4 727.9 620.9 752 512 752z m0-450c-103.8 0-201.1 22.7-274 64-70.3 39.7-109 91.6-109 146 0 54.5 38.7 106.3 109 146 73 41.2 170.3 64 274 64s201.1-22.7 274-64c70.3-39.7 109-91.6 109-146 0-54.5-38.7-106.3-109-146-72.9-41.3-170.2-64-274-64z" fill="currentColor" ></path><path d="M462 687.8h100v100H462v-100zM64 462h100v100H64V462zM860 462h100v100H860V462z" ></path></symbol><symbol id="tianchong" viewBox="0 0 1024 1024"><path d="M64 129.4h896v40H64zM64 855.6h896v40H64z" ></path><path d="M129.6 64h40v896h-40zM855.8 64h40v896h-40z" ></path><path d="M256 783c-3.8 0-7.7-1.5-10.6-4.4-5.9-5.9-5.9-15.4 0-21.2l512-512c5.9-5.9 15.4-5.9 21.2 0 5.9 5.9 5.9 15.4 0 21.2l-512 512c-2.9 2.9-6.8 4.4-10.6 4.4zM384 783c-3.8 0-7.7-1.5-10.6-4.4-5.9-5.9-5.9-15.4 0-21.2l384-384c5.9-5.9 15.4-5.9 21.2 0 5.9 5.9 5.9 15.4 0 21.2l-384 384c-2.9 2.9-6.8 4.4-10.6 4.4zM512 783c-3.8 0-7.7-1.5-10.6-4.4-5.9-5.9-5.9-15.4 0-21.2l256-256c5.9-5.9 15.4-5.9 21.2 0 5.9 5.9 5.9 15.4 0 21.2l-256 256c-2.9 2.9-6.8 4.4-10.6 4.4zM640 783c-3.8 0-7.7-1.5-10.6-4.4-5.9-5.9-5.9-15.4 0-21.2l128-128c5.9-5.9 15.4-5.9 21.2 0 5.9 5.9 5.9 15.4 0 21.2l-128 128c-2.9 2.9-6.8 4.4-10.6 4.4zM256 655c-3.8 0-7.7-1.5-10.6-4.4-5.9-5.9-5.9-15.4 0-21.2l384-384c5.9-5.9 15.4-5.9 21.2 0 5.9 5.9 5.9 15.4 0 21.2l-384 384c-2.9 2.9-6.8 4.4-10.6 4.4zM256 527c-3.8 0-7.7-1.5-10.6-4.4-5.9-5.9-5.9-15.4 0-21.2l256-256c5.9-5.9 15.4-5.9 21.2 0 5.9 5.9 5.9 15.4 0 21.2l-256 256c-2.9 2.9-6.8 4.4-10.6 4.4zM256 399c-3.8 0-7.7-1.5-10.6-4.4-5.9-5.9-5.9-15.4 0-21.2l128-128c5.9-5.9 15.4-5.9 21.2 0 5.9 5.9 5.9 15.4 0 21.2l-128 128c-2.9 2.9-6.8 4.4-10.6 4.4z" fill="currentColor" ></path></symbol><symbol id="yuanhu" viewBox="0 0 1024 1024"><path d="M99 911.2c-0.3-3.5-6.6-87.4 14-201.5 12.1-67.1 31.1-130.6 56.4-188.9 31.7-73.1 73.5-137.9 124.3-192.9C434 176 641.3 99 910 99v30c-259.8 0-459.7 73.7-594.1 219.1C206.2 466.8 161.2 612.6 142.7 714c-20.1 110.6-13.9 194-13.8 194.8L99 911.2z" fill="currentColor" ></path><path d="M860 64h100v100H860V64zM64 860h100v100H64V860zM256 270h100v100H256V270z" ></path></symbol><symbol id="fuzhi" viewBox="0 0 1024 1024"><path d="M959.5 965h-750c-8.3 0-15-6.7-15-15V200c0-8.3 6.7-15 15-15h750c8.3 0 15 6.7 15 15v750c0 8.3-6.7 15-15 15z m-735-30h720V215h-720v720z" fill="currentColor" ></path><path d="M142.5 829H64c-8.3 0-15-6.7-15-15V64c0-8.3 6.7-15 15-15h750c8.3 0 15 6.7 15 15v82c0 8.3-6.7 15-15 15s-15-6.7-15-15V79H79v720h63.5c8.3 0 15 6.7 15 15s-6.7 15-15 15z" fill="currentColor" ></path><path d="M781.5 590.9h-400c-8.3 0-15-6.7-15-15s6.7-15 15-15h400c8.3 0 15 6.7 15 15s-6.7 15-15 15z" ></path><path d="M581.5 790.9c-8.3 0-15-6.7-15-15v-400c0-8.3 6.7-15 15-15s15 6.7 15 15v400c0 8.2-6.7 15-15 15z" ></path></symbol><symbol id="shanchu" viewBox="0 0 1024 1024"><path d="M562.4 327.623l21.214-21.213 255.97 255.97-21.213 21.213z" ></path><path d="M506.7 898.2L485.5 877l438.7-438.7-216.8-216.7-544.5 544.5 111 110.9-21.2 21.2-121.6-121.5c-5.9-5.9-5.9-15.4 0-21.2l565.7-565.7c2.8-2.8 6.6-4.4 10.6-4.4s7.8 1.6 10.6 4.4l238 238c5.9 5.9 5.9 15.4 0 21.2L506.7 898.2z" fill="currentColor" ></path><path d="M252 867.6h256v30H252z" fill="currentColor" ></path><path d="M276.2 930.2H960v30H276.2z" ></path></symbol><symbol id="lisanquxian" viewBox="0 0 1024 1024"><path d="M128 815h-0.9c-8.3-0.5-14.6-7.6-14.1-15.9 0.1-1 6.5-105.5 22.6-221.6 1.1-8.2 8.7-13.9 16.9-12.8 8.2 1.1 13.9 8.7 12.8 16.9-15.9 115-22.3 218.3-22.4 219.4-0.4 7.9-7 14-14.9 14zM805.8 446.7c-2.5 0-5-0.6-7.4-1.9-7.2-4.1-9.8-13.2-5.7-20.4 56.1-99.4 88.6-203.7 88.9-204.8 2.4-7.9 10.8-12.4 18.8-9.9 7.9 2.4 12.4 10.8 9.9 18.8-1.3 4.4-33.7 108.4-91.4 210.7-2.7 4.8-7.8 7.5-13.1 7.5z" ></path><path d="M583.7 635.6c-27.7 0-52.1-9.7-74.7-29.4-33.2-28.8-59.8-77.4-90.6-133.6C389 419 355.7 358.2 308.2 297.2c-11-14.2-27.2-30.4-41.7-26.9-14.7 3.6-52.8 32.7-87.3 224.2-1.5 8.2-9.3 13.6-17.4 12.1-8.2-1.5-13.6-9.3-12.1-17.4 12.1-66.8 25.8-120.7 40.7-160.3 19.9-52.5 42.4-81.2 69-87.7 24.2-5.9 48.6 6.7 72.5 37.6 48.9 63 82.8 124.8 112.8 179.4C510.9 579 544 630.9 634.3 594.1c37.2-15.1 74.5-47.4 110.9-96.1 5-6.6 14.4-8 21-3s8 14.4 3 21c-39.8 53.1-81.4 88.7-123.6 105.9-22.4 9.1-42.9 13.7-61.9 13.7z" fill="currentColor" ></path></symbol><symbol id="jingxiang" viewBox="0 0 1024 1024"><path d="M448 975H64c-5 0-9.7-2.5-12.5-6.7-2.8-4.2-3.3-9.5-1.3-14.2l384-896c2.8-6.5 9.8-10.2 16.8-8.8 7 1.4 12 7.6 12 14.7v896c0 8.3-6.7 15-15 15zM86.7 945H433V137.1L86.7 945z" ></path><path d="M960 975H576c-8.3 0-15-6.7-15-15V64c0-7.1 5-13.3 12-14.7 7-1.4 14 2.2 16.8 8.8l384 896c2 4.6 1.5 10-1.3 14.2-2.8 4.2-7.5 6.7-12.5 6.7z m-369-30h346.3L591 137.1V945z" fill="currentColor" ></path></symbol><symbol id="jianqie" viewBox="0 0 1024 1024"><path d="M960 527H743.3c-8.3 0-15-6.7-15-15s6.7-15 15-15H960c8.3 0 15 6.7 15 15s-6.7 15-15 15z" fill="currentColor" ></path><path d="M544.2 527h-80c-8.3 0-15-6.7-15-15s6.7-15 15-15h80c8.3 0 15 6.7 15 15s-6.7 15-15 15z m-160 0h-80c-8.3 0-15-6.7-15-15s6.7-15 15-15h80c8.3 0 15 6.7 15 15s-6.7 15-15 15z m-160 0h-80c-8.3 0-15-6.7-15-15s6.7-15 15-15h80c8.3 0 15 6.7 15 15s-6.7 15-15 15z m-160 0H64c-8.3 0-15-6.7-15-15s6.7-15 15-15h0.2c8.3 0 15 6.7 15 15s-6.7 15-15 15z" ></path><path d="M453.3 933c-2.1 0-4.3-0.5-6.3-1.4-7.5-3.5-10.8-12.4-7.3-19.9L818.4 99.6c3.5-7.5 12.4-10.8 19.9-7.3 7.5 3.5 10.8 12.4 7.3 19.9L466.9 924.4c-2.5 5.4-7.9 8.6-13.6 8.6z" fill="currentColor" ></path></symbol><symbol id="huitui" viewBox="0 0 1024 1024"><path d="M960.3 835.6c0-272.8-470.2-268-470.2-268v166.5L63.7 461.2l426.4-272.9v166.5s470.2 18 470.2 480.8z" fill="currentColor" ></path></symbol><symbol id="yuanjiao" viewBox="0 0 1024 1024"><path d="M640 94.3h-80c-8.3 0-15-6.7-15-15s6.7-15 15-15h80c8.3 0 15 6.7 15 15s-6.7 15-15 15z m-160 0h-80c-8.3 0-15-6.7-15-15s6.7-15 15-15h80c8.3 0 15 6.7 15 15s-6.7 15-15 15z m-160 0h-80c-8.3 0-15-6.7-15-15s6.7-15 15-15h80c8.3 0 15 6.7 15 15s-6.7 15-15 15z m-160 0H80c-8.3 0-15-6.7-15-15s6.7-15 15-15h80c8.3 0 15 6.7 15 15s-6.7 15-15 15z" ></path><path d="M79.3 654.3c-8.3 0-15-6.7-15-15v-80c0-8.3 6.7-15 15-15s15 6.7 15 15v80c0 8.3-6.8 15-15 15z m0-160c-8.3 0-15-6.7-15-15v-80c0-8.3 6.7-15 15-15s15 6.7 15 15v80c0 8.3-6.8 15-15 15z m0-160c-8.3 0-15-6.7-15-15v-80c0-8.3 6.7-15 15-15s15 6.7 15 15v80c0 8.3-6.8 15-15 15z m0-160c-8.3 0-15-6.7-15-15v-80c0-8.3 6.7-15 15-15s15 6.7 15 15v80c0 8.3-6.8 15-15 15z" ></path><path d="M64.1 946.2c-0.2-2.3-2.9-36.7-0.1-91V448c0-8.3 6.7-15 15-15s15 6.7 15 15v208.7c11.9-46.8 27.1-91.6 45.3-133.8 34.2-79.2 79.4-149.7 134.4-209.3C373.3 205.3 504.5 132 665.3 94.3H448c-8.3 0-15-6.7-15-15s6.7-15 15-15h497v30c-284.2 0-502.6 80.5-649.1 239.4C176.7 463 128.1 621.7 108.4 732c-8.6 47.9-12.6 91.1-14.4 125.8V945l-29.9 1.2z" fill="currentColor" ></path></symbol><symbol id="pianyi" viewBox="0 0 1024 1024"><path d="M787 802H687c-8.3 0-15-6.7-15-15s6.7-15 15-15h85v-25c0-8.3 6.7-15 15-15s15 6.7 15 15v40c0 8.3-6.7 15-15 15z m-180 0H507c-8.3 0-15-6.7-15-15s6.7-15 15-15h100c8.3 0 15 6.7 15 15s-6.7 15-15 15z m-180 0H327c-8.3 0-15-6.7-15-15s6.7-15 15-15h100c8.3 0 15 6.7 15 15s-6.7 15-15 15z m-180 0h-10c-8.3 0-15-6.7-15-15v-90c0-8.3 6.7-15 15-15s15 6.7 15 15v75.9c5.8 2.1 10 7.6 10 14.1 0 8.3-6.7 15-15 15z m540-120c-8.3 0-15-6.7-15-15V567c0-8.3 6.7-15 15-15s15 6.7 15 15v100c0 8.3-6.7 15-15 15z m-550-50c-8.3 0-15-6.7-15-15V517c0-8.3 6.7-15 15-15s15 6.7 15 15v100c0 8.3-6.7 15-15 15z m550-130c-8.3 0-15-6.7-15-15V387c0-8.3 6.7-15 15-15s15 6.7 15 15v100c0 8.3-6.7 15-15 15z m-550-50c-8.3 0-15-6.7-15-15V337c0-8.3 6.7-15 15-15s15 6.7 15 15v100c0 8.3-6.7 15-15 15z m550-130c-8.3 0-15-6.7-15-15v-55h-15c-8.3 0-15-6.7-15-15s6.7-15 15-15h30c8.3 0 15 6.7 15 15v70c0 8.3-6.7 15-15 15z m-550-50c-8.3 0-15-6.7-15-15v-20c0-8.3 6.7-15 15-15h80c8.3 0 15 6.7 15 15s-6.7 15-15 15h-65v5c0 8.3-6.7 15-15 15z m440-20H577c-8.3 0-15-6.7-15-15s6.7-15 15-15h100c8.3 0 15 6.7 15 15s-6.7 15-15 15z m-180 0H397c-8.3 0-15-6.7-15-15s6.7-15 15-15h100c8.3 0 15 6.7 15 15s-6.7 15-15 15z" ></path><path d="M945 960H79c-8.3 0-15-6.7-15-15V79c0-8.3 6.7-15 15-15h866c8.3 0 15 6.7 15 15v866c0 8.3-6.7 15-15 15zM94 930h836V94H94v836z" fill="currentColor" ></path></symbol><symbol id="suofang" viewBox="0 0 1024 1024"><path d="M945 960H572c-8.3 0-15-6.7-15-15s6.7-15 15-15h358V94H94v358c0 8.3-6.7 15-15 15s-15-6.7-15-15V79c0-8.3 6.7-15 15-15h866c8.3 0 15 6.7 15 15v866c0 8.3-6.7 15-15 15z" fill="currentColor" ></path><path d="M479 960H79c-8.3 0-15-6.7-15-15V545c0-8.3 6.7-15 15-15h400c8.3 0 15 6.7 15 15v400c0 8.3-6.7 15-15 15zM94 930h370V560H94v370z" ></path></symbol><symbol id="zhenlie" viewBox="0 0 1024 1024"><path d="M479 960H79c-8.3 0-15-6.7-15-15V545c0-8.3 6.7-15 15-15h400c8.3 0 15 6.7 15 15v400c0 8.3-6.7 15-15 15zM94 930h370V560H94v370z" ></path><path d="M479 494H79c-8.3 0-15-6.7-15-15V79c0-8.3 6.7-15 15-15h400c8.3 0 15 6.7 15 15v400c0 8.3-6.7 15-15 15zM94 464h370V94H94v370zM945 494H545c-8.3 0-15-6.7-15-15V79c0-8.3 6.7-15 15-15h400c8.3 0 15 6.7 15 15v400c0 8.3-6.7 15-15 15z m-385-30h370V94H560v370zM945 960H545c-8.3 0-15-6.7-15-15V545c0-8.3 6.7-15 15-15h400c8.3 0 15 6.7 15 15v400c0 8.3-6.7 15-15 15z m-385-30h370V560H560v370z" fill="currentColor" ></path></symbol><symbol id="xuanzhuan" viewBox="0 0 1024 1024"><path d="M512 972.3c-56 0-110.4-11-161.5-32.6-49.4-20.9-93.8-50.8-131.9-88.9-38.1-38.1-68-82.5-88.9-131.9C108 667.7 97 613.3 97 557.3s11-110.4 32.6-161.5c20.9-49.4 50.8-93.8 88.9-131.9 38.1-38.1 82.5-68 131.9-88.9 51.2-21.6 105.5-32.6 161.5-32.6 8.7 0 17.5 0.3 26 0.8l-1.9 29.9c-7.9-0.5-16.1-0.8-24.2-0.8-212.3 0-385 172.7-385 385s172.7 385 385 385 385-172.7 385-385c0-60.6-13.7-118.6-40.7-172.4l26.8-13.5c29.1 58 43.9 120.5 43.9 185.9 0 56-11 110.4-32.6 161.5-20.9 49.4-50.8 93.8-88.9 131.9s-82.5 68-131.9 88.9c-51 21.7-105.4 32.7-161.4 32.7z" fill="currentColor" ></path><path d="M601.6 168.5L422.4 65v206.9z" fill="currentColor" ></path></symbol><symbol id="hebing" viewBox="0 0 1024 1024"><path d="M65 472h250v80H65zM453.8 512L315 403.8v216.4zM710 472h250v80H710zM571.2 512L710 620.2V403.8z" fill="currentColor" ></path></symbol><symbol id="daduan" viewBox="0 0 1024 1024"><path d="M945.5 893h-867c-8.3 0-15-6.7-15-15V178c0-8.3 6.7-15 15-15h278.6v30H93.5v670h837V193H656v-30h289.5c8.3 0 15 6.7 15 15v700c0 8.3-6.7 15-15 15z" fill="currentColor" ></path><path d="M606 128h100v100H606V128zM320 128h100v100H320V128z" ></path></symbol><symbol id="zhiyuduixiangzhishang" viewBox="0 0 1024 1024"><path d="M64 64h600v600H64z" ></path><path d="M959.7 960.3h-480V704h30v226.3h420v-420H704v-30h255.7z" fill="currentColor" ></path></symbol><symbol id="qianzhi" viewBox="0 0 1024 1024"><path d="M322 322h380v380H322z" ></path><path d="M297 473.9H65.9v-410h410V297h-30V93.9h-350v350H297zM958.5 960.1h-410V727h30v203.1h350v-350H727v-30h231.5z" fill="currentColor" ></path></symbol><symbol id="tuceng" viewBox="0 0 1024 1024"><path d="M851.4 471.6L526.1 666.8c-7.8 4.7-20.5 4.7-28.3 0L172.6 471.6c-7.8-4.7-7.8-12.3 0-17l33.6-20.2 291.7 175c7.8 4.7 20.5 4.7 28.3 0l291.7-175 33.6 20.2c7.7 4.8 7.7 12.4-0.1 17z" fill="currentColor" ></path><path d="M851.4 584.5L526.1 779.6c-7.8 4.7-20.5 4.7-28.3 0L172.6 584.5c-7.8-4.7-7.8-12.3 0-17l26.5-15.9 298.7 179.2c7.8 4.7 20.5 4.7 28.3 0l298.7-179.2 26.5 15.9c7.9 4.7 7.9 12.3 0.1 17z" fill="currentColor" ></path><path d="M497.9 548.1L172.6 352.9c-7.8-4.7-7.8-12.3 0-17l325.3-195.2c7.8-4.7 20.5-4.7 28.3 0l325.3 195.2c7.8 4.7 7.8 12.3 0 17L526.1 548.1c-7.8 4.7-20.4 4.7-28.2 0z" ></path></symbol><symbol id="fenjie" viewBox="0 0 1024 1024"><path d="M871.5 298.1L512 90.5 147 301.3v421.5l350 202.1 15 8.7 15-8.7v-34.6l-15 8.7-15-8.7-320-184.9V318.6l335-193.4 327.7 189.2 7.3 4.2v25.7l30-15.3v-27.7l-5.5-3.2z" fill="currentColor" ></path><path d="M497 488.7h30v428.1h-30z" fill="currentColor" ></path><path d="M497.437 489.238L855.19 306.545l13.644 26.718L511.08 515.956z" fill="currentColor" ></path><path d="M148.208 329.397l13.641-26.718 357.754 182.653-13.64 26.718z" fill="currentColor" ></path><path d="M595.6 948.5c-2.7 0-5.4-0.7-7.7-2.1-4.5-2.7-7.3-7.6-7.3-12.9V553.6c0-5.5 3.1-10.6 8-13.2l292.8-155.7c4.6-2.5 10.3-2.3 14.8 0.4 4.5 2.7 7.3 7.6 7.3 12.9v379.8c0 5.5-3.1 10.6-8 13.2L602.7 946.7c-2.2 1.2-4.7 1.8-7.1 1.8z m15-385.9v345.9l262.8-139.7V422.9L610.6 562.6z m277.8 215.2z" ></path></symbol><symbol id="zhiyuduixiangzhixia" viewBox="0 0 1024 1024"><path d="M962.5 512v450h-450V753.9H753V512z" ></path><path d="M696.2 694.9h-630v-630h630v630z m-600-30h570v-570h-570v570z" fill="currentColor" ></path></symbol><symbol id="banjingbiaozhu" viewBox="0 0 1024 1024"><path d="M512 960c-60.5 0-119.1-11.8-174.4-35.2-53.3-22.6-101.3-54.9-142.4-96s-73.4-89-96-142.4C75.8 631.1 64 572.5 64 512s11.8-119.1 35.2-174.4c22.6-53.3 54.9-101.3 96-142.4s89-73.4 142.4-96C392.9 75.8 451.5 64 512 64s119.1 11.8 174.4 35.2c53.3 22.6 101.3 54.9 142.4 96s73.4 89 96 142.4C948.2 392.9 960 451.5 960 512s-11.8 119.1-35.2 174.4c-22.6 53.3-54.9 101.3-96 142.4s-89 73.4-142.4 96C631.1 948.2 572.5 960 512 960z m0-866C281.5 94 94 281.5 94 512s187.5 418 418 418 418-187.5 418-418S742.5 94 512 94z" fill="currentColor" ></path><path d="M512.5 522.7c-3.8 0-7.7-1.5-10.6-4.4L310.2 326.6c-5.9-5.9-5.9-15.4 0-21.2 5.9-5.9 15.4-5.9 21.2 0l191.7 191.7c5.9 5.9 5.9 15.4 0 21.2-2.9 3-6.8 4.4-10.6 4.4z" ></path><path d="M265 389.1l128.9-128.9-128.9 0.1z" ></path></symbol><symbol id="yanshen" viewBox="0 0 1024 1024"><path d="M615.3 454.2c-8.3 0-15-6.7-15-15s6.7-15 15-15h169.4c8.3 0 15 6.7 15 15s-6.7 15-15 15H615.3z" fill="currentColor" ></path><path d="M777.3 384.5v109.4l54.7-54.7z" fill="currentColor" ></path><path d="M832 599.8h-80c-8.3 0-15-6.7-15-15s6.7-15 15-15h80c8.3 0 15 6.7 15 15s-6.7 15-15 15z m-160 0h-80c-8.3 0-15-6.7-15-15s6.7-15 15-15h80c8.3 0 15 6.7 15 15s-6.7 15-15 15z m-160 0h-80c-8.3 0-15-6.7-15-15s6.7-15 15-15h80c8.3 0 15 6.7 15 15s-6.7 15-15 15z m-160 0h-80c-8.3 0-15-6.7-15-15s6.7-15 15-15h80c8.3 0 15 6.7 15 15s-6.7 15-15 15z m-160 0h-80c-8.3 0-15-6.7-15-15s6.7-15 15-15h80c8.3 0 15 6.7 15 15s-6.7 15-15 15z" ></path><path d="M945.1 975c-8.3 0-15-6.7-15-15V64c0-8.3 6.7-15 15-15s15 6.7 15 15v896c0 8.3-6.7 15-15 15z" fill="currentColor" ></path></symbol><symbol id="houzhi" viewBox="0 0 1024 1024"><path d="M702 322v243.1H563.5V702H322V458.9h138.9V322z" ></path><path d="M960.1 959.2h-350v-350h350v350z m-320-30h290v-290h-290v290zM414.3 414.8h-350v-350h350v350z m-320-30h290v-290h-290v290z" fill="currentColor" ></path></symbol><symbol id="qingxiebiaozhu" viewBox="0 0 1024 1024"><path d="M80 869.5c-1.3 0-2.6-0.2-3.9-0.5-8-2.1-12.8-10.4-10.6-18.4l183.5-685c2.1-8 10.4-12.8 18.4-10.6 8 2.1 12.8 10.4 10.6 18.4l-183.5 685c-1.8 6.7-7.9 11.1-14.5 11.1z" fill="currentColor" ></path><path d="M765.3 527H258.7c-8.3 0-15-6.7-15-15s6.7-15 15-15h506.5c8.3 0 15 6.7 15 15s-6.6 15-14.9 15z" ></path><path d="M273 415.4L212 512l61 96.6h0.6V415.4zM751 415.4l61 96.6-61 96.6h-0.6V415.4z" ></path><path d="M761.2 871.7c-1.3 0-2.6-0.2-3.9-0.5-8-2.1-12.8-10.4-10.6-18.4l183.5-685c2.1-8 10.4-12.7 18.4-10.6 8 2.1 12.8 10.4 10.6 18.4l-183.5 685c-1.9 6.7-7.9 11.1-14.5 11.1z" fill="currentColor" ></path><path d="M468.2 312.1v118.8c0 4.2 1.3 7.3 3.9 9.4 2.6 2.1 6.2 3.1 10.9 3.1h7.8v4.7h-57v-4.7h7c5.2 0 9-1 11.3-3.1 2.3-2.1 3.5-5.2 3.5-9.4v-94.5c0-2.1-0.7-3.8-2-5.1-1.3-1.3-3.3-2-5.9-2h-14.1v-4.7h7c6.2 0 11.3-1 15.2-3.1 3.9-2.1 6.9-5.2 9-9.4h3.4zM561.2 449.6c-11.5 0-21.1-6-28.9-18-7.8-12-11.7-28.9-11.7-50.8 0-20.3 3.8-36.7 11.3-49.2 7.5-12.5 17.3-18.8 29.3-18.8 11.5 0 21 6 28.5 18s11.3 28.6 11.3 50-3.8 38.2-11.3 50.4c-7.5 12.2-17 18.4-28.5 18.4z m0-130.5c-7.3 0-13.4 5.6-18.4 16.8-5 11.2-7.4 26.2-7.4 44.9 0 19.8 2.5 35.2 7.4 46.1 4.9 10.9 11.1 16.4 18.4 16.4 7.8 0 13.9-5.5 18.4-16.4 4.4-10.9 6.6-26.3 6.6-46.1 0-18.8-2.1-33.7-6.2-44.9-4.2-11.2-10.5-16.8-18.8-16.8z" ></path></symbol><symbol id="yidong" viewBox="0 0 1024 1024"><path d="M174.4 497h675.2v30H174.4z" fill="currentColor" ></path><path d="M191.5 384.4v255.2L64 512zM832.5 384.4v255.2L960 512z" fill="currentColor" ></path><path d="M497 174.4h30v675.2h-30z" fill="currentColor" ></path><path d="M384.4 832.5h255.2L512 960zM384.4 191.5h255.2L512 64z" fill="currentColor" ></path></symbol><symbol id="duiqibiaozhu" viewBox="0 0 1142 1024"><path d="M469.12011 1024c-3.406684 0-6.903018-1.344744-9.502856-3.944582L10.024573 570.552387c-5.289326-5.289326-5.289326-13.806036 0-19.005713 5.289326-5.289326 13.806036-5.289326 19.005713 0l449.592681 449.592681c5.289326 5.289326 5.289326 13.806036 0 19.005713-2.599838 2.599838-6.096172 3.854932-9.502857 3.854932z" fill="currentColor" ></path><path d="M309.633494 733.983585c-3.406684 0-6.903018-1.344744-9.502856-3.944582-5.289326-5.289326-5.289326-13.806036 0-19.005713l416.153385-416.153385c5.289326-5.289326 13.806036-5.289326 19.005712 0 5.289326 5.289326 5.289326 13.806036 0 19.005713L319.136351 730.039003c-2.689488 2.599838-6.096172 3.944582-9.502857 3.944582z" ></path><path d="M257.457435 650.25087L279.959481 750.12051l99.86964 22.591696 0.448248-0.448247-122.461336-122.371687zM655.591252 252.117052l99.869641 22.591696 22.502046 99.869641-0.358598 0.358598-122.461337-122.371687z" ></path><path d="M1016.69979 476.42032c-3.406684 0-6.903018-1.344744-9.502856-3.944582L557.604253 22.972707c-5.289326-5.289326-5.289326-13.806036 0-19.005713 5.289326-5.289326 13.806036-5.289326 19.005713 0l449.592681 449.592681c5.289326 5.289326 5.289326 13.806036 0 19.005713-2.599838 2.510188-6.096172 3.854932-9.502857 3.854932z" fill="currentColor" ></path><path d="M363.243948 413.39666l75.305653 75.305653c2.689488 2.689488 5.468625 3.765283 8.427061 3.496334 2.958436-0.358598 5.916873-1.972291 8.875309-4.930727l4.930728-4.930727 2.958436 2.958436-36.128784 36.128784-2.958436-2.958437 4.482479-4.482479c3.317035-3.317035 5.020377-6.365121 5.199676-9.144258 0.179299-2.779137-1.075795-5.558274-3.675633-8.158112L370.684863 436.705553c-1.344744-1.344744-2.779137-1.972291-4.482479-1.972291-1.613693 0-3.317035 0.806846-4.930727 2.510188l-8.875309 8.875309-2.958437-2.958436 4.48248-4.482479c3.944582-3.944582 6.54442-7.799514 7.709864-11.654447 1.165445-3.765283 1.075795-7.709865-0.268949-11.654446l1.882642-1.972291zM509.372775 441.63628c-7.261617 7.261617-17.123071 9.592506-29.674013 6.903018-12.550942-2.599838-25.729432-10.93725-39.625118-24.743286-12.909541-12.909541-20.888354-25.639782-24.026089-38.370023-3.137736-12.730241-0.896496-22.860645 6.723719-30.48086 7.261617-7.261617 17.123071-9.502856 29.494714-6.723719 12.371643 2.779137 25.370833 10.93725 38.907921 24.474337 13.537088 13.537088 21.78485 26.625927 24.743286 39.08722 2.868787 12.730241 0.717197 22.591696-6.54442 29.853313z m-82.746569-82.65692c-4.661779 4.661779-4.930727 12.013045-0.986145 22.322748 3.944582 10.220053 11.923395 21.336602 23.75714 33.170347 12.550942 12.550942 23.84679 20.709055 33.887544 24.474337 10.040754 3.765283 17.39202 3.406684 22.053799-1.255094 4.930727-4.930727 5.378975-12.281993 1.255094-22.053798-4.123881-9.771805-12.461293-20.888354-25.012235-33.439296-11.923395-11.923395-22.681346-20.081508-32.453151-24.474338-9.682155-4.482479-17.212721-4.034231-22.502046 1.255094z" ></path></symbol><symbol id="xianxingbiaozhu" viewBox="0 0 1024 1024"><path d="M80.7 881.6c-8.3 0-15-6.7-15-15V157.4c0-8.3 6.7-15 15-15s15 6.7 15 15v709.2c0 8.3-6.7 15-15 15z" fill="currentColor" ></path><path d="M840.3 527H183.7c-8.3 0-15-6.7-15-15s6.7-15 15-15h656.5c8.3 0 15 6.7 15 15s-6.6 15-14.9 15z" ></path><path d="M198 415.4L137 512l61 96.6h0.6V415.4zM826 415.4l61 96.6-61 96.6h-0.6V415.4z" ></path><path d="M944.7 881.6c-8.3 0-15-6.7-15-15V157.4c0-8.3 6.7-15 15-15s15 6.7 15 15v709.2c0 8.3-6.7 15-15 15z" fill="currentColor" ></path><path d="M468.2 312.1v118.8c0 4.2 1.3 7.3 3.9 9.4 2.6 2.1 6.2 3.1 10.9 3.1h7.8v4.7h-57v-4.7h7c5.2 0 9-1 11.3-3.1 2.3-2.1 3.5-5.2 3.5-9.4v-94.5c0-2.1-0.7-3.8-2-5.1-1.3-1.3-3.3-2-5.9-2h-14.1v-4.7h7c6.2 0 11.3-1 15.2-3.1 3.9-2.1 6.9-5.2 9-9.4h3.4zM561.2 449.6c-11.5 0-21.1-6-28.9-18-7.8-12-11.7-28.9-11.7-50.8 0-20.3 3.8-36.7 11.3-49.2 7.5-12.5 17.3-18.8 29.3-18.8 11.5 0 21 6 28.5 18s11.3 28.6 11.3 50-3.8 38.2-11.3 50.4c-7.5 12.2-17 18.4-28.5 18.4z m0-130.5c-7.3 0-13.4 5.6-18.4 16.8-5 11.2-7.4 26.2-7.4 44.9 0 19.8 2.5 35.2 7.4 46.1 4.9 10.9 11.1 16.4 18.4 16.4 7.8 0 13.9-5.5 18.4-16.4 4.4-10.9 6.6-26.3 6.6-46.1 0-18.8-2.1-33.7-6.2-44.9-4.2-11.2-10.5-16.8-18.8-16.8z" ></path></symbol><symbol id="zhijingbiaozhu" viewBox="0 0 1024 1024"><path d="M512 960c-60.5 0-119.1-11.8-174.4-35.2-53.3-22.6-101.3-54.9-142.4-96s-73.4-89-96-142.4C75.8 631.1 64 572.5 64 512s11.8-119.1 35.2-174.4c22.6-53.3 54.9-101.3 96-142.4s89-73.4 142.4-96C392.9 75.8 451.5 64 512 64s119.1 11.8 174.4 35.2c53.3 22.6 101.3 54.9 142.4 96s73.4 89 96 142.4C948.2 392.9 960 451.5 960 512s-11.8 119.1-35.2 174.4c-22.6 53.3-54.9 101.3-96 142.4s-89 73.4-142.4 96C631.1 948.2 572.5 960 512 960z m0-866C281.5 94 94 281.5 94 512s187.5 418 418 418 418-187.5 418-418S742.5 94 512 94z" fill="currentColor" ></path><path d="M703.7 718.7c-3.8 0-7.7-1.5-10.6-4.4L309.7 330.9c-5.9-5.9-5.9-15.4 0-21.2 5.9-5.9 15.4-5.9 21.2 0l383.4 383.4c5.9 5.9 5.9 15.4 0 21.2-2.9 2.9-6.7 4.4-10.6 4.4z" ></path><path d="M630.6 759.5l128.9-128.9v128.9zM264.5 393.4l128.9-128.9H264.5z" ></path></symbol><symbol id="jiaodubiaozhu" viewBox="0 0 1024 1024"><path d="M783 680.6l-30-0.3v-4c0-111.3-43.3-216.1-121.8-294.9l21.3-21.2c40.9 41.1 73.1 88.9 95.5 142.2 23.2 55.1 35 113.6 35 173.9v4.3z" ></path><path d="M677.6 659.9l181.5 16.6-99 82.4zM591.6 448.6l118.2-138.7-128.5 10.3z" ></path><path d="M945 895.5H79c-8.3 0-15-6.7-15-15s6.7-15 15-15h866c8.3 0 15 6.7 15 15s-6.7 15-15 15z" fill="currentColor" ></path><path d="M81.5 704.2c-3.8 0-7.7-1.5-10.6-4.4-5.9-5.9-5.9-15.4 0-21.2L683.2 66.2c5.9-5.9 15.4-5.9 21.2 0 5.9 5.9 5.9 15.4 0 21.2L92.1 699.8c-3 2.9-6.8 4.4-10.6 4.4z" fill="currentColor" ></path></symbol><symbol id="jiesuo1" viewBox="0 0 1055 1024"><path d="M374.55451349 243.47623678C300.33283245 243.47623678 239.95572897 303.85334027 239.95572897 378.0750213l0 94.63149207 54.73330668 0 0-94.63149207c0-44.03312982 35.83234801-79.86547784 79.86547784-79.86547782s79.86547784 35.82082981 79.86547784 79.86547782l0 94.63149207 54.74482491 0 0-94.63149207C509.16481623 303.85334027 448.77619507 243.47623678 374.55451349 243.47623678z" fill="currentColor" ></path><path d="M749.52143422 488.65887659L435.91064257 488.65887659c-23.83064222 0-43.15776545 19.31560501-43.15776544 43.14624723l0 205.56088552c0 23.84216044 19.31560501 43.15776545 43.15776544 43.15776543l313.61079111 0c23.81912455 0 43.13472954-19.31560501 43.13472958-43.15776543L792.65616325 531.79360615C792.65616325 507.9744816 773.35207644 488.65887659 749.52143422 488.65887659zM679.67657409 653.51532049l-42.7546368 1e-8c-7.3484533 17.15023043-24.36046793 29.16345389-44.20589917 29.16345389s-36.85744586-12.01322345-44.21741683-29.16345389l-42.7546368 0 0-37.85950733 42.7546368 0c7.35997098-17.13871223 24.37198613-29.15193622 44.21741683-29.15193621s36.85744586 12.01322345 44.20589917 29.15193621l42.7546368 0L679.67657409 653.51532049z" fill="currentColor" ></path></symbol><symbol id="yanjing1" viewBox="0 0 1764 1024"><path d="M810.3174103 734.08587615C804.96157574 734.08587615 799.48214404 733.05590804 794.20870709 730.78997779 709.71011026 694.90588371 655.03939531 612.17883284 655.03939531 520.09967073 655.03939531 393.94915788 757.33584297 291.32312044 883.07436847 291.32312044 1008.77169513 291.32312044 1111.02694399 393.94915788 1111.02694399 520.09967073 1111.02694399 610.77807617 1058.99294715 693.29913298 978.40823086 730.2955935 957.6852695 739.8125 933.21322359 730.74877897 923.73751519 710.06701644 914.2618075 689.42645271 923.32552779 664.95440682 944.00729108 655.43750032 995.42330646 631.83062727 1028.62948288 578.72546354 1028.62948288 520.09967073 1028.62948288 439.39135726 963.32949502 373.72058082 883.07436847 373.72058082 802.77804237 373.72058082 737.43685641 439.39135726 737.43685641 520.09967073 737.43685641 579.05505403 772.37337927 631.99542253 826.46731304 654.98431412 847.39626772 663.88323991 857.16036708 688.06689486 848.26144131 708.99584953 841.58724696 724.65136726 826.34371661 734.08587615 810.3174103 734.08587615" fill="currentColor" ></path><path d="M883.70058908 874.66006454C623.77779855 874.66006454 404.47695595 695.93997177 296.86587253 589.40005526 274.70095497 567.44113175 262.46493203 538.51962295 262.46493203 507.95016463 262.46493203 477.33950822 274.70095497 448.41799946 296.86587253 426.45907593 404.47695595 319.91915869 623.77779855 141.19906592 883.70058908 141.19906592 1143.62337962 141.19906592 1362.92422222 319.91915869 1470.49410682 426.45907593 1492.65902439 448.41799946 1504.89504732 477.33950822 1504.89504732 507.95016463 1504.89504732 538.51962295 1492.65902439 567.44113175 1470.49410682 589.40005526 1450.47152382 609.25784302 1432.75606987 626.43771386 1402.68099654 651.73373381 1385.25393357 666.35928345 1359.25753455 664.134552 1344.63198566 646.70748901 1330.00643602 629.28042602 1332.23116747 603.28402702 1349.65823046 588.65847811 1377.42617471 565.29879793 1393.20528888 549.97286996 1412.52749353 530.85665861 1418.95449502 524.47085595 1422.49758625 516.35470614 1422.49758625 507.95016463 1422.49758625 499.54562386 1418.95449502 491.38827522 1412.52749353 485.04367065 1333.13753985 406.43649292 1122.73562304 223.59652701 883.70058908 223.59652701 644.66555513 223.59652701 434.2224395 406.43649292 354.87368463 485.04367065 348.44668316 491.38827522 344.86239311 499.54562386 344.86239311 507.95016463 344.86239311 516.35470614 348.44668316 524.47085595 354.87368463 530.81546053 434.2224395 609.46383634 644.66555513 792.26260345 883.70058908 792.26260345 1006.67879929 792.26260345 1114.24868462 756.46090698 1232.44784217 676.2057797 1251.31686139 663.35177605 1276.94247109 668.29562393 1289.67287903 687.12344361 1302.48568463 705.95126327 1297.58303555 731.53567489 1278.75521588 744.34848046 1147.86684918 833.25534066 1022.29311822 874.66006454 883.70058908 874.66006454" fill="currentColor" ></path></symbol><symbol id="gou" viewBox="0 0 1397 1024"><path d="M1396.363636 121.018182c0 0-223.418182 74.472727-484.072727 372.363636-242.036364 269.963636-297.890909 381.672727-390.981818 530.618182C512 1014.690909 372.363636 744.727273 0 549.236364l195.490909-186.181818c0 0 176.872727 121.018182 297.890909 344.436364 0 0 307.2-474.763636 902.981818-707.490909L1396.363636 121.018182 1396.363636 121.018182zM1396.363636 121.018182" fill="currentColor" ></path></symbol><symbol id="jia" viewBox="0 0 1024 1024"><path d="M952.32 248.35584C952.32 150.77888 873.216 71.68 775.63904 71.68H248.36096C150.784 71.68 71.68 150.77888 71.68 248.35584v527.2832C71.68 873.22112 150.784 952.32 248.36096 952.32h527.27808C873.216 952.32 952.32 873.22112 952.32 775.64416V248.35584z m-46.08 527.2832C906.24 847.7696 847.7696 906.24 775.63904 906.24H248.36096C176.2304 906.24 117.76 847.7696 117.76 775.63904V248.36096C117.76 176.2304 176.2304 117.76 248.36096 117.76h527.27808C847.7696 117.76 906.24 176.2304 906.24 248.36096v527.27808z" fill="currentColor" ></path><path d="M766.49472 476.16H547.84V257.1264c0-21.20704-17.18784-38.4-38.4-38.4s-38.4 17.19296-38.4 38.4V476.16H254.49984c-21.20704 0-38.4 17.18784-38.4 38.4s17.19296 38.4 38.4 38.4H471.04v216.1664c0 21.21216 17.18784 38.4 38.4 38.4s38.4-17.18784 38.4-38.4V552.96h218.65472c21.21216 0 38.4-17.18784 38.4-38.4s-17.18784-38.4-38.4-38.4z" fill="currentColor" ></path></symbol></svg>',function(t){var r=(r=document.getElementsByTagName("script"))[r.length-1],e=r.getAttribute("data-injectcss"),r=r.getAttribute("data-disable-injectsvg");if(!r){var n,o,s,c,l,v=function(_,b){b.parentNode.insertBefore(_,b)};if(e&&!t.__iconfont__svg__cssinject__){t.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(_){console&&console.log(_)}}n=function(){var _,b=document.createElement("div");b.innerHTML=t._iconfont_svg_string_3973422,(b=b.getElementsByTagName("svg")[0])&&(b.setAttribute("aria-hidden","true"),b.style.position="absolute",b.style.width=0,b.style.height=0,b.style.overflow="hidden",b=b,(_=document.body).firstChild?v(b,_.firstChild):_.appendChild(b))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(n,0):(o=function(){document.removeEventListener("DOMContentLoaded",o,!1),n()},document.addEventListener("DOMContentLoaded",o,!1)):document.attachEvent&&(s=n,c=t.document,l=!1,w(),c.onreadystatechange=function(){c.readyState=="complete"&&(c.onreadystatechange=null,x())})}function x(){l||(l=!0,s())}function w(){try{c.documentElement.doScroll("left")}catch(_){return void setTimeout(w,50)}x()}}(window);const iconfont="",ScrollBottom={updated(t,e){(typeof e.value=="undefined"?!0:unref(e.value))&&t.scrollTo(t.scrollWidth,t.scrollHeight)}},CURSORTYPE={top:"n-resize",bottom:"s-resize",left:"w-resize",right:"e-resize",right_top:"ne-resize",left_top:"nw-resize",left_bottom:"sw-resize",right_bottom:"se-resize",default:"default"},mounted=(t,e)=>{const r=e.modifiers,{onmouseup:n,onmousemove:o}=e.value,s=t,c=s.currentStyle||window.getComputedStyle(s,null),l=x=>{const{x:w,y:_,left:b,top:E,width:I,height:O}=x;let N="default";return w>b+I-5&&t.scrollTop+_<=E+O-5&&E+5<=_?N="right":b+5>w&&t.scrollTop+_<=E+O-5&&E+5<=_?N="left":t.scrollTop+_>E+O-5&&w<=b+I-5&&b+5<=w?N="bottom":E+5>_&&w<=b+I-5&&b+5<=w?N="top":w>b+I-5&&t.scrollTop+_>E+O-5?N="right_bottom":b+5>w&&t.scrollTop+_>E+O-5?N="left_bottom":E+5>_&&w>b+I-5?N="right_top":E+5>_&&b+5>w&&(N="left_top"),r?r[N]?N:"default":N},v=x=>{const{left:w,top:_,width:b,height:E,diffX:I,diffY:O,screenHeight:N,screenWidth:A,arr:z}=x,G=()=>{b+I>A-w?s.style.width=A-w+"px":s.style.width=b+I+"px"},V=()=>{b-I>b+w?(s.style.width=b+w+"px",s.style.left=-parseInt(c.marginLeft)+"px"):(s.style.width=b-I+"px",s.style.left=w+I-parseInt(c.marginLeft)+"px")},ne=()=>{E-O>E+_?(s.style.height=E+_+"px",s.style.top=-parseInt(c.marginTop)+"px"):(s.style.height=E-O+"px",s.style.top=_+O-parseInt(c.marginTop)+"px")},W=()=>{E+O>N-_?s.style.height=N-_+"px":s.style.height=E-O+"px"};(z[0]=="right"||z[1]=="right")&&G(),(z[0]=="left"||z[1]=="left")&&V(),(z[0]=="top"||z[1]=="top")&&ne(),(z[0]=="bottom"||z[1]=="bottom")&&W()};s.onmousemove=function(x){const w=x.clientX,_=x.clientY,b=s.offsetLeft,E=s.offsetTop,I=s.clientWidth,O=s.clientHeight;let N=l({x:w,y:_,left:b,top:E,width:I,height:O});s.style.cursor=CURSORTYPE[N]||"default"},s.onmousedown=x=>{const w=x.clientX,_=x.clientY,b=s.clientWidth,E=s.clientHeight,I=s.offsetLeft,O=s.offsetTop,N=document.documentElement.clientWidth||document.body.clientWidth,A=document.documentElement.clientHeight||document.body.clientHeight;let z=l({x:w,y:_,left:I,top:O,width:b,height:E});document.onmousemove=function(G){G.preventDefault();let V=G.clientX,ne=G.clientY,W=V-w,B=ne-_,q;z.indexOf("_")==-1?q=[z,""]:q=z.split("_"),v({left:I,top:O,width:b,height:E,diffX:W,diffY:B,screenHeight:A,screenWidth:N,arr:q}),o&&o()},document.onmouseup=function(){n&&n(),document.onmousemove=null,document.onmouseup=null}}},Draw={mounted},FocusSelect={mounted(t,e){const r=typeof e.value=="undefined"?!0:unref(e.value),n=(o,s=!0)=>{s?(o.style.background="#fff",o.style.color="#000"):(o.style.background="",o.style.color="")};t.onfocus=()=>{!r||n(t,!0)},t.onblur=()=>{n(t,!1)}},unmounted(t){t.onfocus=null,t.onblur=null}},Draggable={mounted:function(t,e){const r=t;let n=null;const o=r.parentNode;o.style.width="100%",o.style.height="100%",o.style.display="flex",o.style.justifyContent="center",o.style.alignItems="center";const{downEl:s}=e.value||{};typeof s=="string"&&(n=t.querySelector(e.value.downEl)),isRef(s)&&(n=unref(s)),n||(n=t);function c(l){function v(A,z){return typeof window.getComputedStyle!="undefined"?window.getComputedStyle(A,null)[z]:typeof A.currentStyle!="undefined"?A.currentStyle[z]:""}const x=/^matrix3d\((?:[-\d.]+,\s*){12}([-\d.]+),\s*([-\d.]+)(?:,\s*[-\d.]+){2}\)/,w=/^matrix\((?:[-\d.]+,\s*){4}([-\d.]+),\s*([-\d.]+)\)$/;r.className.indexOf("drag_box_translate3d")<0&&(r.className+=" drag_box_translate3d");const _={},b=v(r,"transform"),E=b.match(x)||b.match(w);_.clientX=l.clientX,_.clientY=l.clientY,_.targetX=E[1],_.targetY=E[2],_.distX=_.clientX-_.targetX,_.distY=_.clientY-_.targetY,r.style.position="absolute";const I=l.pageX-r.offsetLeft,O=l.pageY-r.offsetTop,N=function(A){A.stopPropagation(),A.preventDefault();let z=A.clientX-_.distX,G=A.clientY-_.distY;Math.abs(G)>=Math.abs(_.clientY-O)&&(G>0?G=_.clientY-O:G=-(_.clientY-O)),Math.abs(z)>=Math.abs(_.clientX-I)&&(z>0?z=_.clientX-I:z=-(_.clientX-I));const V=r.style;V.transform=V.mozTransform=V.webkitTransform=`translate3d(${z}px, ${G}px, 1px)`};document.onmousemove=N,document.onmouseup=function(){document.onmousemove=document.onmouseup=null}}n.onmousedown=c}},BoxSelection={mounted(t,e){const r=e.value,n=document.createElement("div");t.style.position="relative";let o=0,s=0;t.onmousedown=c=>{t.onselectstart=()=>!1,n.style.cssText="width: 0; height: 0; border:2px solid#0696D7; opacity: 0.4; position: absolute; display: none;",t.appendChild(n);const l=t.getBoundingClientRect();o=c.clientX-l.left+t.scrollLeft,s=c.clientY-l.top+t.scrollTop,n.style.left=o+"px",n.style.top=s+"px",t.onmousemove=function(x){if(x.buttons==1||x.which==1){n.style.display="block";const w=x.clientX-l.left+t.scrollLeft,_=x.clientY-l.top+t.scrollTop,b=Math.abs(w-o),E=Math.abs(_-s);n.style.width=b+"px",n.style.height=E+"px",w<o&&(n.style.left=o-b+"px"),_<s&&(n.style.top=s-E+"px")}};let v=[];document.onmouseup=function(x){r&&r((w,_=()=>{})=>{let b=[];const E=n.offsetLeft,I=n.offsetWidth,O=n.offsetTop,N=n.offsetHeight;for(var A=0;A<w.length;A++){var z=w[A].offsetWidth+w[A].offsetLeft,G=w[A].offsetHeight+w[A].offsetTop;z>E&&G>O&&w[A].offsetLeft<E+I&&w[A].offsetTop<O+N&&(v.push(w[A]),_&&b.push(_(w[A],A)))}return{nodes:v,map:b}}),n.style.display="none",t.onselectstart=null},t.ondragstart=()=>!1}},unmounted(t){t.onmousedown=null,t.onmousemove=null,t.ondragstart=null,document.onmouseup=null}},Directives={install(t){t.directive("scroll-bottom",ScrollBottom),t.directive("draw",Draw),t.directive("focus-select",FocusSelect),t.directive("draggable",Draggable),t.directive("box-selection",BoxSelection)}},initConfig=()=>Gr(void 0,null,function*(){yield fetchUiConfig(),yield fetchServerConfig(),yield fetchPluginsConfig(),yield fetchFontConfig()}),registcommad=()=>{addCommand("Mx_Spline",()=>{MxDbSplineCurve.use()})};function Mx_Array(){return Gr(this,null,function*(){let t=new MxCADUiPrInt;t.setMessage("\u8F93\u5165\u884C\u6570:"),t.setUserInputControls(UserInputControls.kNoZeroResponseAccepted|UserInputControls.kNoNegativeResponseAccepted);let e=yield t.go();if(e==null)return;t.setMessage("\u8F93\u5165\u5217\u6570:");let r=yield t.go();if(r==null)return;let n=yield MxCADUtility.getCorner("\u8F93\u5165\u504F\u79FB\u8DDD\u79BB");if(!n)return;let o=n.pt2.x-n.pt1.x,s=n.pt2.y-n.pt1.y,c=yield MxCADUtility.userSelect("\u9009\u62E9\u9648\u5217\u5BF9\u8C61"),l=MxCADUtility.getMcDbEntitysBoundingBox(c);if(!l)return;let v=new McGePoint3d;o>0?v.x=l.minPt.x:v.x=l.maxPt.x,s>0?v.y=l.minPt.y:v.y=l.maxPt.y,runMx_Array({iColNum:r,iRowNum:e,dColOffset:o,dRowOffset:s,aryId:c,dAng:0})})}const runMx_Array=t=>{const{iRowNum:e=0,iColNum:r=0,dColOffset:n=0,dRowOffset:o=0,aryId:s=[],dAng:c=0}=t;let l=MxCADUtility.getMcDbEntitysBoundingBox(s);if(!l)return;let v=new McGePoint3d;n>0?v.x=l.minPt.x:v.x=l.maxPt.x,o>0?v.y=l.minPt.y:v.y=l.maxPt.y;let x=new McGeMatrix3d().setToRotation(c*Math.PI/180,McGeVector3d.kZAxis,v),w=5e4,_=0;for(let b=0;b<e;b++){let E=new McGeVector3d(0,o*b,0),I=new McGeMatrix3d().setToTranslation(E);for(let O=0;O<r;O++){if(b==0&&O==0)continue;let N=new McGeVector3d(n*O,0,0),A=new McGeMatrix3d().setToTranslation(N),z=new McGePoint3d(v.x,v.y,v.z);z.transformBy(I),z.transformBy(A),z.transformBy(x);let G=new McGeMatrix3d().setToTranslation(new McGeVector3d(z.x-v.x,z.y-v.y,z.z-v.z));for(let V=0;V<s.length;V++){let ne=s[V].clone();if(!!ne&&(ne.transformBy(G),MxCpp.getCurrentMxCAD().drawEntity(ne),_++,_>w)){MxFun.acutPrintf("\u8D85\u51FA\u6700\u5927\u9635\u5217\u5BF9\u8C61\u4E2A\u6570"+w+`\u9650\u5236.
  4707. `);return}}updateDisplay()}}};let dialog;const useSelectUploadXRefFileDialog=()=>(dialog=useDialogIsShow(!1),{dialog}),showSelectUploadXRefFileDialog=t=>dialog&&dialog.showDialog(!0,t);function processorExternalFile(t,e){return Gr(this,null,function*(){let r=t+"_preloading.json",n=yield MxTools.getJsonFromUrl(r),o={ok:!0,tz:!1};if(!n)return new Promise((l,v)=>{l(o)});n.tz&&(o.tz=n.tz);let s=[];if(n.images.forEach(l=>{l.substring(0,5)!="http:"&&l.substring(0,6)!="https:"&&s.push(l)}),n.images=s,n.images.length===0&&n.externalReference.length===0)return new Promise((l,v)=>{l(o)});n.hash=e;const c=yield showSelectUploadXRefFileDialog(n);return c!=null&&c.data?o.ok=!0:o.ok=!1,new Promise((l,v)=>{l(o)})})}const sampleCurve=()=>Gr(void 0,null,function*(){const t=new MxCADUiPrEntity;t.setMessage("\u9009\u62E9\u9700\u8981\u79BB\u6563\u7684\u5B9E\u4F53");let e;t.setUserDraw(l=>{e=l});const r=yield t.go();if(!r||!r.isValid())return;let n=r.getMcDbCurve();if(!n||!(n instanceof McDbCurve))return;const o=new MxCADUiPrPoint;o.setUserDraw((l,v)=>{if(!n||!e)return;const x=n.clone();!x||(x.move(e,l),v.drawMcDbEntity(x))});const s=yield o.go();if(!s)return;let c=n.clone();if(!!c)if(c.move(e,s),n instanceof McDbPolyline){const l=MxCpp.getCurrentMxCAD().drawEntity(c);let v=new McGeLongArray;v.copyFormAryId([l]),MxCpp.App.MxCADAssist.MxExplode(v.imp)}else{const l=c.getSamplePoints(.1);if(l.GetCount()===0)return;let v;const x=MxCpp.getCurrentMxCAD();l.forEach((w,_)=>{if(_===1010){const b=new McGePoint3d(w.x,w.y,w.z);if(v){const E=new McDbLine;E.startPoint=v,E.endPoint=b,E.colorIndex=c.colorIndex,E.trueColor=c.trueColor,E.drawOrder=c.drawOrder,E.layer=c.layer,E.layerId=c.layerId,E.linetype=c.linetype,E.linetypeScale=c.linetypeScale,E.lineweight=E.lineweight,E.textStyle=E.textStyle,x.drawEntity(E)}v=b}}),x.updateDisplay()}});addCommand("_SampleCurve",sampleCurve);const _DrawRotatedDimension=()=>Gr(void 0,null,function*(){var v;const t=MxCpp.getCurrentMxCAD(),e=new MxCADUiPrPoint;e.setMessage("\u6307\u5B9A\u7B2C\u4E00\u6761\u5C3A\u5BF8\u754C\u7EBF\u539F\u70B9"),e.setKeyWords("");const r=yield e.go();if(!r)return;e.setMessage("\u6307\u5B9A\u7B2C\u4E8C\u6761\u5C3A\u5BF8\u754C\u7EBF\u539F\u70B9"),e.setUserDraw((x,w)=>{w.drawMcDbLine(r.x,r.y,r.z,x.x,x.y,x.z)});const n=yield e.go();if(!n)return;let o,s,c,l;for(;;){e.setMessage("\u6307\u5B9A\u5C3A\u5BF8\u7EBF\u4F4D\u7F6E"),e.setKeyWords(`[\u6587\u672C(T)/\u89D2\u5EA6(A)${typeof l=="undefined"?"/\u6C34\u5E73(H)/\u5782\u76F4(V)":""}/\u65CB\u8F6C(R)]`),e.clearLastInputPoint();let x;e.setUserDraw(b=>{x&&x.erase(),l==="H"&&(b.x<r.x?b.x=r.x:b.x>n.x&&(b.x=n.x)),l==="V"&&(b.y<r.y&&(b.y=r.y),b.y>n.y&&(b.y=n.y)),x=t.drawDimRotated(r.x,r.y,n.x,n.y,b.x,b.y,c||0);const E=x.getMcDbDimension();!E||(E.textPosition=b,E.useSetTextPosition(),o&&(E.dimensionText=o),s&&(E.textRotation=s),E.trueColor=new McCmColor(0,255,0))});const w=yield e.go();if(e.isKeyWordPicked("T")){const b=new MxCADUiPrString;b.clearLastInputPoint(),b.setMessage(`\u8F93\u5165\u6807\u6CE8\u6587\u5B57<${o||((v=x.getMcDbDimension())==null?void 0:v.dimensionText)||""}>`),b.setKeyWords("");const E=yield b.go();if(typeof E!="string")return;o=E,x&&x.erase();continue}if(x&&x.erase(),e.isKeyWordPicked("A")){const b=new MxCADUiPrAngle;b.clearLastInputPoint(),b.setMessage("\u6307\u5B9A\u6807\u6CE8\u6587\u5B57\u7684\u89D2\u5EA6");const E=yield b.go();if(!E||b.getStatus()===MrxDbgUiPrBaseReturn$1.kCancel)return;b.getDetailedResult()===DetailedResult.kCoordIn?s=E*(Math.PI/180):s=E;continue}if(e.isKeyWordPicked("H")){l="H";continue}if(e.isKeyWordPicked("V")){l="V";continue}if(e.isKeyWordPicked("R")){const b=new MxCADUiPrAngle;b.clearLastInputPoint(),b.setMessage("\u6307\u5B9A\u5C3A\u5BF8\u7EBF\u7684\u89D2\u5EA6");const E=yield b.go();if(!E||b.getStatus()===MrxDbgUiPrBaseReturn$1.kCancel)return;b.getDetailedResult()===DetailedResult.kCoordIn?c=E*(Math.PI/180):c=E;continue}if(!w)return;l==="H"&&(w.x<r.x?w.x=r.x:w.x>n.x&&(w.x=n.x)),l==="V"&&(w.y<r.y&&(w.y=r.y),w.y>n.y&&(w.y=n.y)),x=t.drawDimRotated(r.x,r.y,n.x,n.y,w.x,w.y,c||0);const _=x.getMcDbDimension();if(!_)return;_.textPosition=w,_.useSetTextPosition(),o&&(_.dimensionText=o),s&&(_.textRotation=s),_.trueColor=new McCmColor(0,255,0),t.updateDisplay();break}});addCommand("_DrawRotatedDimension",_DrawRotatedDimension);const _DrawAlignedDimension=()=>Gr(void 0,null,function*(){var c;const t=MxCpp.getCurrentMxCAD(),e=new MxCADUiPrPoint;e.setMessage("\u6307\u5B9A\u7B2C\u4E00\u6761\u5C3A\u5BF8\u754C\u7EBF\u539F\u70B9"),e.setKeyWords("");const r=yield e.go();if(!r)return;e.setMessage("\u6307\u5B9A\u7B2C\u4E8C\u6761\u5C3A\u5BF8\u754C\u7EBF\u539F\u70B9"),e.setUserDraw((l,v)=>{v.drawMcDbLine(r.x,r.y,r.z,l.x,l.y,l.z)});const n=yield e.go();if(!n)return;let o,s;for(;;){e.setMessage("\u6307\u5B9A\u5C3A\u5BF8\u7EBF\u4F4D\u7F6E"),e.setKeyWords("[\u6587\u672C(T)/\u89D2\u5EA6(A)]"),e.clearLastInputPoint();let l;e.setUserDraw(w=>{l&&l.erase(),l=t.drawDimAligned(r.x,r.y,n.x,n.y,w.x,w.y);const _=l.getMcDbDimension();!_||(o&&(_.dimensionText=o),s&&(_.textRotation=s),_.trueColor=new McCmColor(0,255,0))});const v=yield e.go();if(e.isKeyWordPicked("T")){const w=new MxCADUiPrString;w.clearLastInputPoint(),w.setMessage(`\u8F93\u5165\u6807\u6CE8\u6587\u5B57<${o||((c=l.getMcDbDimension())==null?void 0:c.dimensionText)||""}>`),w.setKeyWords("");const _=yield w.go();if(typeof _!="string")return;o=_,l&&l.erase();continue}if(l&&l.erase(),e.isKeyWordPicked("A")){const w=new MxCADUiPrAngle;w.clearLastInputPoint(),w.setMessage("\u6307\u5B9A\u6807\u6CE8\u6587\u5B57\u7684\u89D2\u5EA6");const _=yield w.go();if(!_||w.getStatus()===MrxDbgUiPrBaseReturn$1.kCancel)return;w.getDetailedResult()===DetailedResult.kCoordIn?s=_*(Math.PI/180):s=_;continue}if(!v)return;l=t.drawDimAligned(r.x,r.y,n.x,n.y,v.x,v.y);const x=l.getMcDbDimension();if(!x)return;x.textPosition=v,x.useSetTextPosition(),o&&(x.dimensionText=o),s&&(x.textRotation=s),x.trueColor=new McCmColor(0,255,0),t.updateDisplay();break}});addCommand("_DrawAlignedDimension",_DrawAlignedDimension);function Mx_Plan90CCW(){return Gr(this,null,function*(){let t=MxFun.getCurrentDraw().getViewAngle();t-=Math.PI*.5,MxCpp.getCurrentMxCAD().zoomAngle(t)})}function Mx_Plan(){return Gr(this,null,function*(){const t=new MxCADUiPrKeyWord;t.setMessage("\u8F93\u5165\u9009\u9879"),t.setKeyWords("[\u5F53\u524D UCS(C)/\u4E16\u754C(W)/\u89D2\u5EA6(A)/\u76F8\u5BF9\u89D2\u5EA6(X)]");const e=yield t.go();if(e==null||e.toLocaleLowerCase(),e==null||e.toLocaleLowerCase(),(e==null?void 0:e.toLocaleLowerCase())==="a"){const r=new MxCADUiPrAngle;r.clearLastInputPoint(),r.setMessage("\u8F93\u5165\u89C6\u533A\u65CB\u8F6C\u89D2\u5EA6");let n=yield r.go();if(!n)return;r.getDetailedResult()===DetailedResult.kCoordIn&&(n=n*(Math.PI/180)),MxCpp.getCurrentMxCAD().zoomAngle(n)}if((e==null?void 0:e.toLocaleLowerCase())==="x"){const r=new MxCADUiPrAngle;r.clearLastInputPoint(),r.setMessage("\u8F93\u5165\u89C6\u533A\u65CB\u8F6C\u76F8\u5BF9\u89D2\u5EA6");let n=yield r.go();if(!n)return;r.getDetailedResult()===DetailedResult.kCoordIn&&(n=n*(Math.PI/180));let o=MxFun.getCurrentDraw().getViewAngle();o+=n,MxCpp.getCurrentMxCAD().zoomAngle(o)}})}addCommand("Mx_Plan90CCW",Mx_Plan90CCW);addCommand("Mx_Plan",Mx_Plan);function _ViewColor(){const t=MxCpp.getCurrentMxCAD();t.setViewBackgroundColor,callCommand("Mx_Color",{call:e=>{const r=Color$1(e),n=r.red(),o=r.green(),s=r.blue();t.setViewBackgroundColor(n,o,s),MxFun.callEvent("updateBackgroundColor",new McCmColor(n,o,s))}})}addCommand("_ViewColor",_ViewColor);function interval(t,e){const r=document.timeline?document.timeline.currentTime:performance.now();let n=!1;function o(s){if(n)return;const c=s-r,l=Math.round(c/t);e(l);const v=(l+1)*t+r,x=document.timeline?document.timeline.currentTime:performance.now();return setTimeout(()=>{requestAnimationFrame(o)},v-x)}return o(r),()=>{n=!0}}function calculateSegmentLength(t,e,r){let n=e,o=r;for(;o-n>1e-4;){let c=(n+o)/2;Math.floor(t/c)*c>t||c<e?o=c:n=c}let s=Math.floor(t/n);return t/s}function subsection(t,e,r,n){const o=t.distanceTo(e),s=calculateSegmentLength(o,r,n),c=o/s,l=e.sub(t).normalize(),v=[];for(let x=0;x<c;x++)v.push(t.clone().addvec(l.clone().mult(s*x)));return v}function computeRegularPolygonVertices(t=new McGePoint3d,e=new McGePoint3d,r=3,n=Math.PI*2){const o=[];r=Math.max(3,r),o.push(e);const s=n/r;for(let c=1;c<r;c++){const l=Math.cos(s*c),v=Math.sin(s*c),x=t.clone(),w=e.clone(),_=w.x-x.x,b=w.y-x.y,E=_*l-b*v+x.x,I=_*v+b*l+x.y,O=new McGePoint3d(E,I);o.push(O)}return o}const getRectPoints=(t,e)=>{const r=new McGePoint3d(t.x,e.y,t.z),n=new McGePoint3d(e.x,t.y,e.z);return[t,r,e,n]};function _Revcloud(){return Gr(this,null,function*(){const t=MxFun.viewCoordLong2Cad(2);let e=Number(localStorage.getItem("mx_revcloud_minArcLength")),r=Number(localStorage.getItem("mx_revcloud_maxArcLength"));const n=new MxCADUiPrPoint;let o=.45,s=!1,c=!1,l=!1;function v(x,w){x.colorIndex=w.colorIndex,x.trueColor=w.trueColor,x.drawOrder=w.drawOrder,x.layer=w.layer,x.layerId=w.layerId,x.linetype=w.linetype,x.linetypeScale=w.linetypeScale,x.lineweight=w.lineweight,x.textStyle=w.textStyle}for(;;){let x="\u7B2C\u4E00\u70B9";s&&(x="\u6307\u5B9A\u7B2C\u4E00\u4E2A\u89D2\u70B9"),c&&(x="\u6307\u5B9A\u8D77\u70B9"),n.setMessage(x),n.setKeyWords("[\u5F27\u957F(A)/\u5BF9\u8C61(O)/\u77E9\u5F62(R)/\u591A\u8FB9\u5F62(P)/\u5F92\u624B\u753B(F)/\u6837\u5F0F(S)]");const w=new McDbPolyline;n.clearLastInputPoint();const _=E=>Gr(this,null,function*(){if(n.clearLastInputPoint(),n.setMessage("\u53CD\u8F6C\u65B9\u5411"),n.setKeyWords("[\u662F(Y)/\u5426(N)]"),yield n.go(),n.isKeyWordPicked("Y")){const I=E.numVerts();for(let O=0;O<I;O++){const N=E.getBulgeAt(O);E.setBulgeAt(O,-N)}}return!0});let b=yield n.go();if(n.isKeyWordPicked("A")){const E=new MxCADUiPrDist;E.setMessage("\u8BF7\u8F93\u5165\u6700\u5C0F\u5F27\u957F");let I=yield E.go();if(typeof I!="number")return;e=I,localStorage.setItem("mx_revcloud_minArcLength",I.toString());const O=()=>Gr(this,null,function*(){E.setMessage("\u6307\u5B9A\u6700\u5927\u5F27\u957F");let N=yield E.go();if(typeof N!="number")return!1;if(N<e)return yield O();r=N,localStorage.setItem("mx_revcloud_maxArcLength",N.toString())});if((yield O())===!1)return;continue}if(n.isKeyWordPicked("O")){const E=new MxCADResbuf;E.AddMcDbEntityTypes("CIRCLE,ARC,LINE,LWPOLYLINE,ELLIPSE");const O=(yield MxCADUtility.userSelect("\u9009\u62E9\u5BF9\u8C61",E))[0];if(!O)return;const N=O.getMcDbEntity();if(!N)return;if(N instanceof McDbPolyline){w.isClosed=N.isClosed,w.constantWidth=N.constantWidth,v(w,N);const A=N.numVerts();let z;for(let G=0;G<A;G++){const V=N.getPointAt(G).val;z&&V&&subsection(z,V,e,r).forEach(ne=>{w.addVertexAt(ne,o,void 0,l?t:void 0)}),z=V}return w.isClosed?subsection(z,N.getPointAt(0).val,e,r).forEach(G=>{w.addVertexAt(G,o,void 0,l?t:void 0)}):w.addVertexAt(z,o),yield _(w),N.erase(),MxCpp.getCurrentMxCAD().drawEntity(w)}if(N instanceof McDbLine)return v(w,N),subsection(N.startPoint,N.endPoint,e,r).forEach(A=>{w.addVertexAt(A,o,void 0,l?t:void 0)}),w.addVertexAt(N.endPoint,o,void 0,l?t:void 0),yield _(w),N.erase(),MxCpp.getCurrentMxCAD().drawEntity(w);if(N instanceof McDbCircle){const A=N.getLength().val,z=A/calculateSegmentLength(A,e,r),G=N.getStartPoint().val;return computeRegularPolygonVertices(N.center,G,z).forEach(V=>{w.addVertexAt(V,o,void 0,l?t:void 0)}),v(w,N),N instanceof McDbCircle&&(w.isClosed=!0),yield _(w),N.erase(),MxCpp.getCurrentMxCAD().drawEntity(w)}}if(n.isKeyWordPicked("R")){s=!0,c=!1;continue}if(n.isKeyWordPicked("P")){c=!0,s=!1;continue}if(n.isKeyWordPicked("F")){c=!1,s=!1;continue}if(n.isKeyWordPicked("S")){if(n.setMessage("\u9009\u62E9\u5706\u5F27\u6837\u5F0F"),n.setKeyWords("[\u666E\u901A(N)/\u624B\u7ED8(C)]"),yield n.go(),n.getDetailedResult()===DetailedResult.kEcsIn||n.getDetailedResult()===DetailedResult.kNewCommadIn||n.getStatus()===MrxDbgUiPrBaseReturn$1.kNone||n.getStatus()===MrxDbgUiPrBaseReturn$1.kCancel)return;n.isKeyWordPicked("N")&&(l=!1),n.isKeyWordPicked("C")&&(l=!0);continue}if(!b)return;if(s){n.setMessage("\u6307\u5B9A\u5BF9\u89D2\u70B9"),n.setMessage("");const E=(O,N)=>{if(!b)return;const[A,z,G,V]=getRectPoints(b,N),ne=b.x<N.x&&b.y<N.y||b.x>N.x&&b.y>N.y;[[A,z],[z,G],[G,V],[V,A]].forEach(([W,B])=>{subsection(W,B,e,r).forEach(q=>{O.addVertexAt(q,ne?-o:o,void 0,l?t:void 0)})}),O.isClosed=!0};n.setUserDraw((O,N)=>{const A=new McDbPolyline;E(A,O),N.drawMcDbEntity(A)});const I=yield n.go();return I?(E(w,I),MxCpp.getCurrentMxCAD().drawEntity(w)):void 0}else if(c){let E=b;const I=[];I.push(E);const O=(N,A)=>{let z;A.forEach(G=>{z&&subsection(z,G,e,r).forEach(V=>{N.addVertexAt(V,o,void 0,l?t:void 0)}),z=G}),A.length>2?(N.isClosed=!0,subsection(z,A[0],e,r).forEach(G=>{N.addVertexAt(G,o,void 0,l?t:void 0)})):N.addVertexAt(z,o,void 0,l?t:void 0)};for(n.setUserDraw((N,A)=>{const z=new McDbPolyline;O(z,[...I,N]),A.drawMcDbEntity(z)});;){n.setMessage("\u6307\u5B9A\u4E0B\u4E00\u70B9"),n.setKeyWords(I.length<2?"":"[\u653E\u5F03(U)]");const N=yield n.go();if(n.isKeyWordPicked("U")){I.pop(),n.clearLastInputPoint();continue}if(n.getDetailedResult()===DetailedResult.kNullEnterIn||n.getDetailedResult()===DetailedResult.kMouseRightIn)return O(w,I),yield _(w),MxCpp.getCurrentMxCAD().drawEntity(w);if(!N)return;I.push(N)}}else{w.addVertexAt(b,o,void 0,l?t:void 0);let E=0,I=b;const O=()=>Gr(this,null,function*(){N(),yield _(w),MxCpp.getCurrentMxCAD().drawEntity(w)});n.setMessage("\u6CBF\u4E91\u7EBF\u8DEF\u5F84\u5F15\u5BFC\u5341\u5B57\u5149\u6807..."),n.setKeyWords(""),n.setUserDraw((z,G)=>{!b||(I=z,E=b.distanceTo(z),G.drawMcDbEntity(w.clone()),G.drawLine(b.toVector3(),z.toVector3()))}),n.clearLastInputPoint();const N=interval(20,()=>Gr(this,null,function*(){E<e||(w.addVertexAt(I,o,void 0,l?t:void 0),b=I,E=0)})),A=yield n.go();if((n.getDetailedResult()===DetailedResult.kMouseRightIn||n.getDetailedResult()===DetailedResult.kNullEnterIn)&&(yield O()),!A)return N();w.addVertexAt(A,o,void 0,l?t:void 0),yield O();break}}})}addCommand("_Revcloud",_Revcloud);var print$1={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(window,function(){return function(r){var n={};function o(s){if(n[s])return n[s].exports;var c=n[s]={i:s,l:!1,exports:{}};return r[s].call(c.exports,c,c.exports,o),c.l=!0,c.exports}return o.m=r,o.c=n,o.d=function(s,c,l){o.o(s,c)||Object.defineProperty(s,c,{enumerable:!0,get:l})},o.r=function(s){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},o.t=function(s,c){if(c&1&&(s=o(s)),c&8||c&4&&typeof s=="object"&&s&&s.__esModule)return s;var l=Object.create(null);if(o.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:s}),c&2&&typeof s!="string")for(var v in s)o.d(l,v,function(x){return s[x]}.bind(null,v));return l},o.n=function(s){var c=s&&s.__esModule?function(){return s.default}:function(){return s};return o.d(c,"a",c),c},o.o=function(s,c){return Object.prototype.hasOwnProperty.call(s,c)},o.p="",o(o.s=0)}({"./src/index.js":function(r,n,o){o.r(n),o("./src/sass/index.scss");var s=o("./src/js/init.js"),c=s.default.init;typeof window!="undefined"&&(window.printJS=c),n.default=c},"./src/js/browser.js":function(r,n,o){o.r(n);var s={isFirefox:function(){return typeof InstallTrigger!="undefined"},isIE:function(){return navigator.userAgent.indexOf("MSIE")!==-1||!!document.documentMode},isEdge:function(){return!s.isIE()&&!!window.StyleMedia},isChrome:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window;return!!l.chrome},isSafari:function(){return Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0||navigator.userAgent.toLowerCase().indexOf("safari")!==-1},isIOSChrome:function(){return navigator.userAgent.toLowerCase().indexOf("crios")!==-1}};n.default=s},"./src/js/functions.js":function(r,n,o){o.r(n),o.d(n,"addWrapper",function(){return v}),o.d(n,"capitalizePrint",function(){return x}),o.d(n,"collectStyles",function(){return w}),o.d(n,"addHeader",function(){return b}),o.d(n,"cleanUp",function(){return E}),o.d(n,"isRawHTML",function(){return I});var s=o("./src/js/modal.js"),c=o("./src/js/browser.js");function l(O){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?l=function(A){return typeof A}:l=function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},l(O)}function v(O,N){var A="font-family:"+N.font+" !important; font-size: "+N.font_size+" !important; width:100%;";return'<div style="'+A+'">'+O+"</div>"}function x(O){return O.charAt(0).toUpperCase()+O.slice(1)}function w(O,N){for(var A=document.defaultView||window,z="",G=A.getComputedStyle(O,""),V=0;V<G.length;V++)(N.targetStyles.indexOf("*")!==-1||N.targetStyle.indexOf(G[V])!==-1||_(N.targetStyles,G[V]))&&G.getPropertyValue(G[V])&&(z+=G[V]+":"+G.getPropertyValue(G[V])+";");return z+="max-width: "+N.maxWidth+"px !important; font-size: "+N.font_size+" !important;",z}function _(O,N){for(var A=0;A<O.length;A++)if(l(N)==="object"&&N.indexOf(O[A])!==-1)return!0;return!1}function b(O,N){var A=document.createElement("div");if(I(N.header))A.innerHTML=N.header;else{var z=document.createElement("h1"),G=document.createTextNode(N.header);z.appendChild(G),z.setAttribute("style",N.headerStyle),A.appendChild(z)}O.insertBefore(A,O.childNodes[0])}function E(O){O.showModal&&s.default.close(),O.onLoadingEnd&&O.onLoadingEnd(),(O.showModal||O.onLoadingStart)&&window.URL.revokeObjectURL(O.printable);var N="mouseover";(c.default.isChrome()||c.default.isFirefox())&&(N="focus");var A=function z(){window.removeEventListener(N,z),O.onPrintDialogClose();var G=document.getElementById(O.frameId);G&&G.remove()};window.addEventListener(N,A)}function I(O){var N=new RegExp("<([A-Za-z][A-Za-z0-9]*)\\b[^>]*>(.*?)</\\1>");return N.test(O)}},"./src/js/html.js":function(r,n,o){o.r(n);var s=o("./src/js/functions.js"),c=o("./src/js/print.js");function l(w){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?l=function(b){return typeof b}:l=function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},l(w)}n.default={print:function(_,b){var E=x(_.printable)?_.printable:document.getElementById(_.printable);if(!E){window.console.error("Invalid HTML element id: "+_.printable);return}_.printableElement=v(E,_),_.header&&Object(s.addHeader)(_.printableElement,_),c.default.send(_,b)}};function v(w,_){for(var b=w.cloneNode(),E=Array.prototype.slice.call(w.childNodes),I=0;I<E.length;I++)if(_.ignoreElements.indexOf(E[I].id)===-1){var O=v(E[I],_);b.appendChild(O)}switch(_.scanStyles&&w.nodeType===1&&b.setAttribute("style",Object(s.collectStyles)(w,_)),w.tagName){case"SELECT":b.value=w.value;break;case"CANVAS":b.getContext("2d").drawImage(w,0,0);break}return b}function x(w){return l(w)==="object"&&w&&(w instanceof HTMLElement||w.nodeType===1)}},"./src/js/image.js":function(r,n,o){o.r(n);var s=o("./src/js/functions.js"),c=o("./src/js/print.js"),l=o("./src/js/browser.js");n.default={print:function(x,w){x.printable.constructor!==Array&&(x.printable=[x.printable]),x.printableElement=document.createElement("div"),x.printable.forEach(function(_){var b=document.createElement("img");if(b.setAttribute("style",x.imageStyle),b.src=_,l.default.isFirefox()){var E=b.src;b.src=E}var I=document.createElement("div");I.appendChild(b),x.printableElement.appendChild(I)}),x.header&&Object(s.addHeader)(x.printableElement,x),c.default.send(x,w)}}},"./src/js/init.js":function(r,n,o){o.r(n);var s=o("./src/js/browser.js"),c=o("./src/js/modal.js"),l=o("./src/js/pdf.js"),v=o("./src/js/html.js"),x=o("./src/js/raw-html.js"),w=o("./src/js/image.js"),_=o("./src/js/json.js");function b(I){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?b=function(N){return typeof N}:b=function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},b(I)}var E=["pdf","html","image","json","raw-html"];n.default={init:function(){var O={printable:null,fallbackPrintable:null,type:"pdf",header:null,headerStyle:"font-weight: 300;",maxWidth:800,properties:null,gridHeaderStyle:"font-weight: bold; padding: 5px; border: 1px solid #dddddd;",gridStyle:"border: 1px solid lightgray; margin-bottom: -1px;",showModal:!1,onError:function(W){throw W},onLoadingStart:null,onLoadingEnd:null,onPrintDialogClose:function(){},onIncompatibleBrowser:function(){},modalMessage:"Retrieving Document...",frameId:"printJS",printableElement:null,documentTitle:"Document",targetStyle:["clear","display","width","min-width","height","min-height","max-height"],targetStyles:["border","box","break","text-decoration"],ignoreElements:[],repeatTableHeader:!0,css:null,style:null,scanStyles:!0,base64:!1,onPdfOpen:null,font:"TimesNewRoman",font_size:"12pt",honorMarginPadding:!0,honorColor:!1,imageStyle:"max-width: 100%;"},N=arguments[0];if(N===void 0)throw new Error("printJS expects at least 1 attribute.");switch(b(N)){case"string":O.printable=encodeURI(N),O.fallbackPrintable=O.printable,O.type=arguments[1]||O.type;break;case"object":O.printable=N.printable,O.fallbackPrintable=typeof N.fallbackPrintable!="undefined"?N.fallbackPrintable:O.printable,O.fallbackPrintable=O.base64?"data:application/pdf;base64,".concat(O.fallbackPrintable):O.fallbackPrintable;for(var A in O)A==="printable"||A==="fallbackPrintable"||(O[A]=typeof N[A]!="undefined"?N[A]:O[A]);break;default:throw new Error('Unexpected argument type! Expected "string" or "object", got '+b(N))}if(!O.printable)throw new Error("Missing printable information.");if(!O.type||typeof O.type!="string"||E.indexOf(O.type.toLowerCase())===-1)throw new Error("Invalid print type. Available types are: pdf, html, image and json.");O.showModal&&c.default.show(O),O.onLoadingStart&&O.onLoadingStart();var z=document.getElementById(O.frameId);z&&z.parentNode.removeChild(z);var G=document.createElement("iframe");switch(s.default.isFirefox()?G.setAttribute("style","width: 1px; height: 100px; position: fixed; left: 0; top: 0; opacity: 0; border-width: 0; margin: 0; padding: 0"):G.setAttribute("style","visibility: hidden; height: 0; width: 0; position: absolute; border: 0"),G.setAttribute("id",O.frameId),O.type!=="pdf"&&(G.srcdoc="<html><head><title>"+O.documentTitle+"</title>",O.css&&(Array.isArray(O.css)||(O.css=[O.css]),O.css.forEach(function(ne){G.srcdoc+='<link rel="stylesheet" href="'+ne+'">'})),G.srcdoc+="</head><body></body></html>"),O.type){case"pdf":if(s.default.isIE())try{console.info("Print.js doesn't support PDF printing in Internet Explorer.");var V=window.open(O.fallbackPrintable,"_blank");V.focus(),O.onIncompatibleBrowser()}catch(ne){O.onError(ne)}finally{O.showModal&&c.default.close(),O.onLoadingEnd&&O.onLoadingEnd()}else l.default.print(O,G);break;case"image":w.default.print(O,G);break;case"html":v.default.print(O,G);break;case"raw-html":x.default.print(O,G);break;case"json":_.default.print(O,G);break}}}},"./src/js/json.js":function(r,n,o){o.r(n);var s=o("./src/js/functions.js"),c=o("./src/js/print.js");function l(x){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?l=function(_){return typeof _}:l=function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},l(x)}n.default={print:function(w,_){if(l(w.printable)!=="object")throw new Error("Invalid javascript data object (JSON).");if(typeof w.repeatTableHeader!="boolean")throw new Error("Invalid value for repeatTableHeader attribute (JSON).");if(!w.properties||!Array.isArray(w.properties))throw new Error("Invalid properties array for your JSON data.");w.properties=w.properties.map(function(b){return{field:l(b)==="object"?b.field:b,displayName:l(b)==="object"?b.displayName:b,columnSize:l(b)==="object"&&b.columnSize?b.columnSize+";":100/w.properties.length+"%;"}}),w.printableElement=document.createElement("div"),w.header&&Object(s.addHeader)(w.printableElement,w),w.printableElement.innerHTML+=v(w),c.default.send(w,_)}};function v(x){var w=x.printable,_=x.properties,b='<table style="border-collapse: collapse; width: 100%;">';x.repeatTableHeader&&(b+="<thead>"),b+="<tr>";for(var E=0;E<_.length;E++)b+='<th style="width:'+_[E].columnSize+";"+x.gridHeaderStyle+'">'+Object(s.capitalizePrint)(_[E].displayName)+"</th>";b+="</tr>",x.repeatTableHeader&&(b+="</thead>"),b+="<tbody>";for(var I=0;I<w.length;I++){b+="<tr>";for(var O=0;O<_.length;O++){var N=w[I],A=_[O].field.split(".");if(A.length>1)for(var z=0;z<A.length;z++)N=N[A[z]];else N=N[_[O].field];b+='<td style="width:'+_[O].columnSize+x.gridStyle+'">'+N+"</td>"}b+="</tr>"}return b+="</tbody></table>",b}},"./src/js/modal.js":function(r,n,o){o.r(n);var s={show:function(l){var v="font-family:sans-serif; display:table; text-align:center; font-weight:300; font-size:30px; left:0; top:0;position:fixed; z-index: 9990;color: #0460B5; width: 100%; height: 100%; background-color:rgba(255,255,255,.9);transition: opacity .3s ease;",x=document.createElement("div");x.setAttribute("style",v),x.setAttribute("id","printJS-Modal");var w=document.createElement("div");w.setAttribute("style","display:table-cell; vertical-align:middle; padding-bottom:100px;");var _=document.createElement("div");_.setAttribute("class","printClose"),_.setAttribute("id","printClose"),w.appendChild(_);var b=document.createElement("span");b.setAttribute("class","printSpinner"),w.appendChild(b);var E=document.createTextNode(l.modalMessage);w.appendChild(E),x.appendChild(w),document.getElementsByTagName("body")[0].appendChild(x),document.getElementById("printClose").addEventListener("click",function(){s.close()})},close:function(){var l=document.getElementById("printJS-Modal");l&&l.parentNode.removeChild(l)}};n.default=s},"./src/js/pdf.js":function(r,n,o){o.r(n);var s=o("./src/js/print.js"),c=o("./src/js/functions.js");n.default={print:function(x,w){if(x.base64){var _=Uint8Array.from(atob(x.printable),function(E){return E.charCodeAt(0)});l(x,w,_);return}x.printable=/^(blob|http|\/\/)/i.test(x.printable)?x.printable:window.location.origin+(x.printable.charAt(0)!=="/"?"/"+x.printable:x.printable);var b=new window.XMLHttpRequest;b.responseType="arraybuffer",b.addEventListener("error",function(){Object(c.cleanUp)(x),x.onError(b.statusText,b)}),b.addEventListener("load",function(){if([200,201].indexOf(b.status)===-1){Object(c.cleanUp)(x),x.onError(b.statusText,b);return}l(x,w,b.response)}),b.open("GET",x.printable,!0),b.send()}};function l(v,x,w){var _=new window.Blob([w],{type:"application/pdf"});_=window.URL.createObjectURL(_),x.setAttribute("src",_),s.default.send(v,x)}},"./src/js/print.js":function(r,n,o){o.r(n);var s=o("./src/js/browser.js"),c=o("./src/js/functions.js"),l={send:function(b,E){document.getElementsByTagName("body")[0].appendChild(E);var I=document.getElementById(b.frameId);I.onload=function(){if(b.type==="pdf"){s.default.isFirefox()?setTimeout(function(){return v(I,b)},1e3):v(I,b);return}var O=I.contentWindow||I.contentDocument;if(O.document&&(O=O.document),O.body.appendChild(b.printableElement),b.type!=="pdf"&&b.style){var N=document.createElement("style");N.innerHTML=b.style,O.head.appendChild(N)}var A=O.getElementsByTagName("img");A.length>0?x(Array.from(A)).then(function(){return v(I,b)}):v(I,b)}}};function v(_,b){try{if(_.focus(),s.default.isEdge()||s.default.isIE())try{_.contentWindow.document.execCommand("print",!1,null)}catch(E){_.contentWindow.print()}else _.contentWindow.print()}catch(E){b.onError(E)}finally{s.default.isFirefox()&&(_.style.visibility="hidden",_.style.left="-1px"),Object(c.cleanUp)(b)}}function x(_){var b=_.map(function(E){if(E.src&&E.src!==window.location.href)return w(E)});return Promise.all(b)}function w(_){return new Promise(function(b){var E=function I(){!_||typeof _.naturalWidth=="undefined"||_.naturalWidth===0||!_.complete?setTimeout(I,500):b()};E()})}n.default=l},"./src/js/raw-html.js":function(r,n,o){o.r(n);var s=o("./src/js/print.js");n.default={print:function(l,v){l.printableElement=document.createElement("div"),l.printableElement.setAttribute("style","width:100%"),l.printableElement.innerHTML=l.printable,s.default.send(l,v)}}},"./src/sass/index.scss":function(r,n,o){},0:function(r,n,o){r.exports=o("./src/index.js")}}).default})})(print$1);const print=getDefaultExportFromCjs(print$1.exports);function Plot(){return Gr(this,null,function*(){const t=isFullscreen(),e=()=>{t&&callCommand("MxFullScreen")};MxFun.acutPrintf(`
  4708. \u8BF7\u6846\u9009\u8303\u56F4\u6253\u5370`);let r=new MxCADUiPrPoint;r.setMessage(`
  4709. \u6307\u5B9A\u8F93\u51FA\u8303\u56F4\u7B2C\u4E00\u70B9:`);let n=yield r.go();if(!n)return e();r.setMessage(`
  4710. \u6307\u5B9A\u8F93\u51FA\u8303\u56F4\u7B2C\u4E8C\u70B9:`),r.setUserDraw((x,w)=>{if(!n)return e();w.setColor(16711680);let _=new McDbPolyline;_.addVertexAt(n),_.addVertexAt(new McGePoint3d(n.x,x.y)),_.addVertexAt(x),_.addVertexAt(new McGePoint3d(x.x,n.y)),_.constantWidth=MxFun.screenCoordLong2Doc(2),_.isClosed=!0,w.drawMcDbEntity(_);let b=[];b.push(n.toVector3()),b.push(new THREE.Vector3(n.x,x.y)),b.push(x.toVector3()),b.push(new THREE.Vector3(x.x,n.y)),w.setColor(12868),w.drawSolid(b,.5)}),r.setDisableOsnap(!0),r.setDisableOrthoTrace(!0),r.setDynamicInputType(DynamicInputType.kXYCoordInput);let o=yield r.go();if(!o)return e();let{baseUrl:s="",mxfilepath:c="",printPdfUrl:l=""}=getUrlConfig()||{},v={width:"210",height:"297",bd_pt1_x:""+n.x,bd_pt1_y:""+n.y,bd_pt2_x:""+o.x,bd_pt2_y:""+o.y};MxCpp.getCurrentMxCAD().saveFileToUrl(l,(x,w)=>{try{let _=JSON.parse(w);if(_.ret=="ok"){let b=s+c+_.file;print(b),e()}else console.log(w)}catch(_){console.log("Mx: sserverResult error")}},void 0,JSON.stringify(v))})}addCommand("Plot",Plot);function MxET_Pencil(){return Gr(this,null,function*(){const t=MxFun.viewCoordLong2Cad(20),e=new MxCADUiPrPoint;e.setDisableDynInput(!0),e.setDynamicInputType(DynamicInputType.kNoInput);let r=yield e.go();if(!r)return;const n=new McDbPolyline;let o=0,s=r;const c=interval(20,()=>{o<t||(n.addVertexAt(s),r=s,o=0)});e.setUserDraw((x,w)=>{!r||(s=x,o=r.distanceTo(x),w.drawMcDbEntity(n.clone()),w.drawLine(r.toVector3(),x.toVector3()))});const l=yield e.go();if(!l)return c();c(),n.addVertexAt(l),MxCpp.getCurrentMxCAD().drawEntity(n)})}addCommand("MxET_Pencil",MxET_Pencil);function fullScreen(t){const e=t.requestFullscreen||t.mozRequestFullScreen||t.webkitRequestFullScreen||t.msRequestFullscreen;e?e.call(t):console.error("\u5F53\u524D\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u90E8\u5206\u5168\u5C4F\uFF01")}function exitFullScreen(){const t=document.exitFullscreen||document.mozCancelFullScreen||document.webkitExitFullscreen||document.msExitFullscreen;t?t.call(document):console.error("\u5F53\u524D\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u9000\u51FA\u5168\u5C4F\uFF01")}window.addEventListener("keydown",t=>{t.keyCode===122&&(t.returnValue=!1,callCommand("MxFullScreen"))},!0);keyBindingManager.register({key:{keyCode:"Escape"},when(t){return t.isRunCommand?!1:isFullscreen()&&leftDrawerWidth.value===0&&rightDrawerWidth.value===0},action(){callCommand("MxFullScreen")}});addCommand("MxFullScreen",()=>{isFullscreen()?(exitFullScreen(),"keyboard"in navigator&&navigator.keyboard.unlock()):(fullScreen(document.body),"keyboard"in navigator&&navigator.keyboard.lock())});registcommad();const{hideLoading,showLoading}=useLoadingData();function OpenDwgImp(t,e){return Gr(this,null,function*(){return new Promise(r=>Gr(this,null,function*(){let n=t.hash,o=t.type;const s=t.file;if(o==="mxweb"){const l=URL.createObjectURL(s.source.source);showLoading();let v=useMessage().info("\u6B63\u5728\u6253\u5F00\u56FE\u7EB8\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85...");setTimeout(()=>{try{const x=MxCpp.App.getCurrentMxCAD().openWebFile(l,w=>{w===0?(useMessage().success("\u6253\u5F00\u56FE\u7EB8\u6210\u529F"),r(!0)):(useMessage().error("\u6253\u5F00\u56FE\u7EB8\u5931\u8D25"),r(!1)),hideLoading(),v()});r(!!x)}catch(x){hideLoading(),r(!1)}})}else{let{mxfilepath:l=""}=getUploadFileConfig()||{},v=getBaseUrl(),x=v+l+n+"."+o+".mxweb",w=v+l+n+"/___mx___tz___.dwg.mxweb",_=!1;if(!t.isUseServerExistingFile){let O=yield processorExternalFile(x,n);if(!O.ok)return r(!1);O.tz&&(_=!0)}setFileTips("\u6B63\u5728\u6253\u5F00\u6587\u4EF6\u4E2D..."),setTipsShow(!0);var c=new Date().getTime();let b=0;e||(b=FetchAttributes.EMSCRIPTEN_FETCH_LOAD_TO_MEMORY|FetchAttributes.EMSCRIPTEN_FETCH_PERSIST_FILE|FetchAttributes.EMSCRIPTEN_FETCH_REPLACE);let E=MxCpp.App.getCurrentMxCAD();const I=E.openWebFile(x,O=>{if(hideLoading(),timeoutHideTip(),O===0){r(!0);var N=new Date().getTime();if(N-c>5e3&&useMessage().success("\u66F4\u65B0\u663E\u793A..."),_){let A=v+"/mxcad/files/tz";axios$1.post(A,{fileHash:n}).then(z=>{z&&z.data&&z.data.code==0&&E.getImp().loadTz(w)})}}else r(!1),useMessage().error("\u6253\u5F00\u56FE\u7EB8\u5931\u8D25")},void 0,void 0,b,!_);r(!!I)}}))})}let isFull=isFullscreen();addCommand("OpenDwg",()=>Gr(void 0,null,function*(){isFull=isFullscreen(),yield uploadFile(!1,"OpenDwgImp"),isFull&&callCommand("MxFullScreen")}));addCommand("OpenDwg_DoNotUseCache",()=>Gr(void 0,null,function*(){isFull=isFullscreen(),yield uploadFile(!0,"OpenDwgImp_DoNotUseCache"),isFull&&callCommand("MxFullScreen")}));addCommand("OpenDwgImp_DoNotUseCache",t=>Gr(void 0,null,function*(){yield OpenDwgImp(t,!1)}));addCommand("OpenDwgImp",t=>Gr(void 0,null,function*(){yield OpenDwgImp(t,!0)}));addCommand("Mx_SaveAs",saveAs);addCommand("Mx_QSave",save);addCommand("Mx_Export_DWG",()=>Gr(void 0,null,function*(){{isFull=isFullscreen();const t=()=>{isFull&&callCommand("MxFullScreen")};let{baseUrl:e="",saveDwgUrl:r="",mxfilepath:n=""}=getUploadFileConfig()||{};e.substring(0,16)=="http://localhost"&&(e=getHostUrl$1()+e.substring(16)),r.substring(0,16)=="http://localhost"&&(r=getHostUrl$1()+r.substring(16)),MxCpp.getCurrentMxCAD().saveFileToUrl(r,(o,s)=>{try{let c=JSON.parse(s);if(c.ret=="ok"){let l=e+n+c.file;fetch(l).then(v=>Gr(void 0,null,function*(){const x=yield v.blob();yield MxTools.saveAsFileDialog({blob:x,filename:c.file,types:[{description:"dwg\u56FE\u7EB8",accept:{"application/octet-stream":[".dwg"]}}]}),t()}))}else console.log(s)}catch(c){console.log("Mx: sserverResult error")}})}}));addCommand("Mx_debug",()=>{});addCommand("Mx_clear_buf",()=>{});addCommand("Mx_Array",Mx_Array);addCommand("Mx_NewFile",()=>{MxCpp.getCurrentMxCAD().newFile()});addCommand("Mx_NewFile_Template",()=>{MxCpp.getCurrentMxCAD().openWebFile("empty_template.mxweb")});addCommand("MxPE_DrawMText",()=>Gr(void 0,null,function*(){const t=new MxCADUiPrPoint;t.setMessage("\u70B9\u53D6\u6587\u5B57\u63D2\u5165\u70B9");const e=yield t.go();if(!e)return;const{open:r}=useMultilineTextDialog(),n=yield r();if(typeof n!="string")return;const o=new McDbMText;o.contents=n||"",o.location=e,o.trueColor=new McCmColor(MxCpp.getCurrentMxCAD().getCurrentDatabaseDrawColor()),o.rotation=0,o.attachment=McDb.AttachmentPoint.kTopLeft;const s=MxCpp.getCurrentMxCAD(),c=s.drawEntity(o);return s.updateDisplay(),c}));const MxPluginContext={setCustomDataListLength,store:{useFocus:useFocus$1},components:{}};window.Mx=Mx$1;window.mxcad=mxcad$1;window.Vue=Vue;window.vueI18n=vueI18n;window.axios=axios$1;window.MxPluginContext=MxPluginContext;const app=createApp(_sfc_main);registerPlugins(app);initConfig().then(()=>{app.use(Directives).mount("#mxcad_app")});export{_sfc_main$8 as $,watch as A,nextTick as B,computed as C,mergeProps as D,useRender as E,forwardRefs as F,focusableChildren as G,VOverlay as H,IN_BROWSER as I,VDefaultsProvider as J,getLogoImgSrc as K,useDialogDrag as L,keyBindingManager as M,keyToCode as N,VCardTitle as O,renderSlot as P,VBtn as Q,withModifiers as R,VIcon as S,VCardText as T,normalizeClass as U,VCol as V,VCardActions as W,createElementBlock as X,renderList as Y,MxDialogBtn as Z,_export_sfc as _,createBaseVNode as a,useRounded as a$,Fragment as a0,VCard as a1,browserCacheRef as a2,MxCADUtility as a3,MxCADUiPrPoint as a4,MxCADUiPrAngle as a5,keepDecimal as a6,runMx_Array as a7,useMessage as a8,VRadioGroup as a9,HSVtoHSL as aA,RGBtoHSV as aB,HSLtoHSV as aC,HexToHSV as aD,onUnmounted as aE,SUPPORTS_EYE_DROPPER as aF,HSVtoCSS as aG,parseColor as aH,RGBtoCSS as aI,deepEqual as aJ,getContrast as aK,makeBorderProps as aL,makeDimensionProps as aM,makeElevationProps as aN,makeLocationProps as aO,makePositionProps as aP,makeRoundedProps as aQ,makeTagProps as aR,makeThemeProps as aS,provideTheme as aT,useBackgroundColor as aU,toRef as aV,useBorder as aW,useDimension as aX,useElevation as aY,useLocation as aZ,usePosition as a_,VRadio as aa,withDirectives as ab,vShow as ac,MxFieldset as ad,MxGetPointBtn as ae,VImg as af,VSelect as ag,VCheckbox as ah,MxFun as ai,reactive as aj,VCombobox as ak,MxCpp as al,isFullscreen as am,McGePoint3d as an,DetailedResult as ao,makeComponentProps as ap,defineComponent as aq,shallowRef as ar,clamp as as,convertToUnit as at,useResizeObserver as au,onMounted as av,getEventCoordinates as aw,HSVtoHex as ax,has as ay,HSVtoRGB as az,createVNode as b,VListItem as b$,omit as b0,useRtl as b1,provideDefaults as b2,useColor$1 as b3,storeToRefs as b4,Color$1 as b5,indexOfMxColor as b6,ColorNameType as b7,ColorMethod as b8,normalizeStyle as b9,Ripple as bA,VScaleTransition as bB,keyValues as bC,makeFocusProps as bD,makeVInputProps as bE,useFocus as bF,VInput as bG,VLabel as bH,getBlockNames as bI,MxCADSelectionSet as bJ,McDbBlockTableRecord as bK,McDbBlockReference as bL,onOpenFileComplete as bM,useI18n as bN,usePopup as bO,updateDisplay as bP,VProgressLinear as bQ,makeFilterProps as bR,makeSelectProps as bS,makeVTextFieldProps as bT,makeTransitionProps as bU,useItems as bV,useForm as bW,useFilter as bX,useScrolling as bY,VMenu as bZ,VList as b_,h as ba,countColorInfo as bb,keys as bc,useLocale as bd,useGroup as be,provide as bf,resolveDirective as bg,makeGroupItemProps as bh,makeLazyProps as bi,inject$1 as bj,useGroupItem as bk,useSsrBoot as bl,useLazy as bm,MaybeTransition as bn,makeVBtnProps as bo,useTextColor as bp,animate as bq,standardEasing as br,makeVSlideGroupProps as bs,makeDensityProps as bt,useDensity as bu,isObject$3 as bv,VSlideGroup as bw,resolveDynamicComponent as bx,getDecimals as by,createRange as bz,createBlock as c,useSelectUploadXRefFileDialog as c$,VVirtualScroll as c0,VCheckboxBtn as c1,VAvatar as c2,ensureValidVNode as c3,VChip as c4,noop$2 as c5,wrapInArray as c6,matchesSelector as c7,VListItemTitle as c8,onLoadComplete as c9,_ML_String as cA,iconCache as cB,onBeforeUnmount as cC,markRaw as cD,getCurrentInstance$1 as cE,watchEffect as cF,Teleport as cG,customRef as cH,useTextStyle as cI,McCmColor as cJ,getColorName as cK,ColorMethod$1 as cL,clampNumber as cM,useMultilineTextDialog as cN,MxColorSelect as cO,McDbMText as cP,McDbText as cQ,MxCursorType as cR,MxCADResbuf as cS,MxCADUiPrEntity as cT,McDbCurve as cU,McDbHatch as cV,pointDotStyleStatus as cW,preservePointDotStyleStatus as cX,pointDotModeValues as cY,initPointDotStyleStatus as cZ,cadNames as c_,Status as ca,sysVarLongSketchSettings as cb,getSysVarLongSketchSettings as cc,getMxCadObj as cd,countSysVarLongSketchSettingsOsMode as ce,setSysVarLongSketchSettingsOsMode as cf,setSysVarLongSketchSettings as cg,osModeRef as ch,SysVarLongSketchSettingsOsMode as ci,addCommand as cj,getUploadFileConfig as ck,browserCacheReactive as cl,VTooltip as cm,uploadFile as cn,callCommand as co,useLoading as cp,McGeLongArray as cq,useLineType as cr,useLayer as cs,useKeyModifier as ct,useRightClickMenuOptions as cu,McObjectIdType as cv,getMxAliSymbolIconHTML as cw,vModelText as cx,MxCADUiPrKeyWord as cy,MxCADUiPrDist as cz,defineComponent$1 as d,VProgressCircular as d0,getHostUrl$1 as d1,axios$1 as d2,cursorSize as d3,targetFrameSize as d4,updateCursorStyles as d5,commonjsGlobal$1 as d6,commonjsRequire as d7,McGeVector3d as d8,McDb as d9,makeGroupProps as da,unref as e,VDivider as f,getVersion as g,VRow as h,isElectron as i,VTextField as j,createCommentVNode as k,isRef as l,popScopeId as m,createTextVNode as n,openBlock as o,pushScopeId as p,propsFactory$1 as q,ref as r,makeVOverlayProps as s,toDisplayString$1 as t,useDialogIsShow as u,VDialogTransition as v,withCtx as w,genericComponent as x,useProxiedModel as y,useScopeId as z};