Layout von Websiten mit Bootstrap und Foundation
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

sass.dart.js 3.6MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195441964419744198441994420044201442024420344204442054420644207442084420944210442114421244213442144421544216442174421844219442204422144222442234422444225442264422744228442294423044231442324423344234442354423644237442384423944240442414424244243442444424544246442474424844249442504425144252442534425444255442564425744258442594426044261442624426344264442654426644267442684426944270442714427244273442744427544276442774427844279442804428144282442834428444285442864428744288442894429044291442924429344294442954429644297442984429944300443014430244303443044430544306443074430844309443104431144312443134431444315443164431744318443194432044321443224432344324443254432644327443284432944330443314433244333443344433544336443374433844339443404434144342443434434444345443464434744348443494435044351443524435344354443554435644357443584435944360443614436244363443644436544366443674436844369443704437144372443734437444375443764437744378443794438044381443824438344384443854438644387443884438944390443914439244393443944439544396443974439844399444004440144402444034440444405444064440744408444094441044411444124441344414444154441644417444184441944420444214442244423444244442544426444274442844429444304443144432444334443444435444364443744438444394444044441444424444344444444454444644447444484444944450444514445244453444544445544456444574445844459444604446144462444634446444465444664446744468444694447044471444724447344474444754447644477444784447944480444814448244483444844448544486444874448844489444904449144492444934449444495444964449744498444994450044501445024450344504445054450644507445084450944510445114451244513445144451544516445174451844519445204452144522445234452444525445264452744528445294453044531445324453344534445354453644537445384453944540445414454244543445444454544546445474454844549445504455144552445534455444555445564455744558445594456044561445624456344564445654456644567445684456944570445714457244573445744457544576445774457844579445804458144582445834458444585445864458744588445894459044591445924459344594445954459644597445984459944600446014460244603446044460544606446074460844609446104461144612446134461444615446164461744618446194462044621446224462344624446254462644627446284462944630446314463244633446344463544636446374463844639446404464144642446434464444645446464464744648446494465044651446524465344654446554465644657446584465944660446614466244663446644466544666446674466844669446704467144672446734467444675446764467744678446794468044681446824468344684446854468644687446884468944690446914469244693446944469544696446974469844699447004470144702447034470444705447064470744708447094471044711447124471344714447154471644717447184471944720447214472244723447244472544726447274472844729447304473144732447334473444735447364473744738447394474044741447424474344744447454474644747447484474944750447514475244753447544475544756447574475844759447604476144762447634476444765447664476744768447694477044771447724477344774447754477644777447784477944780447814478244783447844478544786447874478844789447904479144792447934479444795447964479744798447994480044801448024480344804448054480644807448084480944810448114481244813448144481544816448174481844819448204482144822448234482444825448264482744828448294483044831448324483344834448354483644837448384483944840448414484244843448444484544846448474484844849448504485144852448534485444855448564485744858448594486044861448624486344864448654486644867448684486944870448714487244873448744487544876448774487844879448804488144882448834488444885448864488744888448894489044891448924489344894448954489644897448984489944900449014490244903449044490544906449074490844909449104491144912449134491444915449164491744918449194492044921449224492344924449254492644927449284492944930449314493244933449344493544936449374493844939449404494144942449434494444945449464494744948449494495044951449524495344954449554495644957449584495944960449614496244963449644496544966449674496844969449704497144972449734497444975449764497744978449794498044981449824498344984449854498644987449884498944990449914499244993449944499544996449974499844999450004500145002450034500445005450064500745008450094501045011450124501345014450154501645017450184501945020450214502245023450244502545026450274502845029450304503145032450334503445035450364503745038450394504045041450424504345044450454504645047450484504945050450514505245053450544505545056450574505845059450604506145062450634506445065450664506745068450694507045071450724507345074450754507645077450784507945080450814508245083450844508545086450874508845089450904509145092450934509445095450964509745098450994510045101451024510345104451054510645107451084510945110451114511245113451144511545116451174511845119451204512145122451234512445125451264512745128451294513045131451324513345134451354513645137451384513945140451414514245143451444514545146451474514845149451504515145152451534515445155451564515745158451594516045161451624516345164451654516645167451684516945170451714517245173451744517545176451774517845179451804518145182451834518445185451864518745188451894519045191451924519345194451954519645197451984519945200452014520245203452044520545206452074520845209452104521145212452134521445215452164521745218452194522045221452224522345224452254522645227452284522945230452314523245233452344523545236452374523845239452404524145242452434524445245452464524745248452494525045251452524525345254452554525645257452584525945260452614526245263452644526545266452674526845269452704527145272452734527445275452764527745278452794528045281452824528345284452854528645287452884528945290452914529245293452944529545296452974529845299453004530145302453034530445305453064530745308453094531045311453124531345314453154531645317453184531945320453214532245323453244532545326453274532845329453304533145332453334533445335453364533745338453394534045341453424534345344453454534645347453484534945350453514535245353453544535545356453574535845359453604536145362453634536445365453664536745368453694537045371453724537345374453754537645377453784537945380453814538245383453844538545386453874538845389453904539145392453934539445395453964539745398453994540045401454024540345404454054540645407454084540945410454114541245413454144541545416454174541845419454204542145422454234542445425454264542745428454294543045431454324543345434454354543645437454384543945440454414544245443454444544545446454474544845449454504545145452454534545445455454564545745458454594546045461454624546345464454654546645467454684546945470454714547245473454744547545476454774547845479454804548145482454834548445485454864548745488454894549045491454924549345494454954549645497454984549945500455014550245503455044550545506455074550845509455104551145512455134551445515455164551745518455194552045521455224552345524455254552645527455284552945530455314553245533455344553545536455374553845539455404554145542455434554445545455464554745548455494555045551455524555345554455554555645557455584555945560455614556245563455644556545566455674556845569455704557145572455734557445575455764557745578455794558045581455824558345584455854558645587455884558945590455914559245593455944559545596455974559845599456004560145602456034560445605456064560745608456094561045611456124561345614456154561645617456184561945620456214562245623456244562545626456274562845629456304563145632456334563445635456364563745638456394564045641456424564345644456454564645647456484564945650456514565245653456544565545656456574565845659456604566145662456634566445665456664566745668456694567045671456724567345674456754567645677456784567945680456814568245683456844568545686456874568845689456904569145692456934569445695456964569745698456994570045701457024570345704457054570645707457084570945710457114571245713457144571545716457174571845719457204572145722457234572445725457264572745728457294573045731457324573345734457354573645737457384573945740457414574245743457444574545746457474574845749457504575145752457534575445755457564575745758457594576045761457624576345764457654576645767457684576945770457714577245773457744577545776457774577845779457804578145782457834578445785457864578745788457894579045791457924579345794457954579645797457984579945800458014580245803458044580545806458074580845809458104581145812458134581445815458164581745818458194582045821458224582345824458254582645827458284582945830458314583245833458344583545836458374583845839458404584145842458434584445845458464584745848458494585045851458524585345854458554585645857458584585945860458614586245863458644586545866458674586845869458704587145872458734587445875458764587745878458794588045881458824588345884458854588645887458884588945890458914589245893458944589545896458974589845899459004590145902459034590445905459064590745908459094591045911459124591345914459154591645917459184591945920459214592245923459244592545926459274592845929459304593145932459334593445935459364593745938459394594045941459424594345944459454594645947459484594945950459514595245953459544595545956459574595845959459604596145962459634596445965459664596745968459694597045971459724597345974459754597645977459784597945980459814598245983459844598545986459874598845989459904599145992459934599445995459964599745998459994600046001460024600346004460054600646007460084600946010460114601246013460144601546016460174601846019460204602146022460234602446025460264602746028460294603046031460324603346034460354603646037460384603946040460414604246043460444604546046460474604846049460504605146052460534605446055460564605746058460594606046061460624606346064460654606646067460684606946070460714607246073460744607546076460774607846079460804608146082460834608446085460864608746088460894609046091460924609346094460954609646097460984609946100461014610246103461044610546106461074610846109461104611146112461134611446115461164611746118461194612046121461224612346124461254612646127461284612946130461314613246133461344613546136461374613846139461404614146142461434614446145461464614746148461494615046151461524615346154461554615646157461584615946160461614616246163461644616546166461674616846169461704617146172461734617446175461764617746178461794618046181461824618346184461854618646187461884618946190461914619246193461944619546196461974619846199462004620146202462034620446205462064620746208462094621046211462124621346214462154621646217462184621946220462214622246223462244622546226462274622846229462304623146232462334623446235462364623746238462394624046241462424624346244462454624646247462484624946250462514625246253462544625546256462574625846259462604626146262462634626446265462664626746268462694627046271462724627346274462754627646277462784627946280462814628246283462844628546286462874628846289462904629146292462934629446295462964629746298462994630046301463024630346304463054630646307463084630946310463114631246313463144631546316463174631846319463204632146322463234632446325463264632746328463294633046331463324633346334463354633646337463384633946340463414634246343463444634546346463474634846349463504635146352463534635446355463564635746358463594636046361463624636346364463654636646367463684636946370463714637246373463744637546376463774637846379463804638146382463834638446385463864638746388463894639046391463924639346394463954639646397463984639946400464014640246403464044640546406464074640846409464104641146412464134641446415464164641746418464194642046421464224642346424464254642646427464284642946430464314643246433464344643546436464374643846439464404644146442464434644446445464464644746448464494645046451464524645346454464554645646457464584645946460464614646246463464644646546466464674646846469464704647146472464734647446475464764647746478464794648046481464824648346484464854648646487464884648946490464914649246493464944649546496464974649846499465004650146502465034650446505465064650746508465094651046511465124651346514465154651646517465184651946520465214652246523465244652546526465274652846529465304653146532465334653446535465364653746538465394654046541465424654346544465454654646547465484654946550465514655246553465544655546556465574655846559465604656146562465634656446565465664656746568465694657046571465724657346574465754657646577465784657946580465814658246583465844658546586465874658846589465904659146592465934659446595465964659746598465994660046601466024660346604466054660646607466084660946610466114661246613466144661546616466174661846619466204662146622466234662446625466264662746628466294663046631466324663346634466354663646637466384663946640466414664246643466444664546646466474664846649466504665146652466534665446655466564665746658466594666046661466624666346664466654666646667466684666946670466714667246673466744667546676466774667846679466804668146682466834668446685466864668746688466894669046691466924669346694466954669646697466984669946700467014670246703467044670546706467074670846709467104671146712467134671446715467164671746718467194672046721467224672346724467254672646727467284672946730467314673246733467344673546736467374673846739467404674146742467434674446745467464674746748467494675046751467524675346754467554675646757467584675946760467614676246763467644676546766467674676846769467704677146772467734677446775467764677746778467794678046781467824678346784467854678646787467884678946790467914679246793467944679546796467974679846799468004680146802468034680446805468064680746808468094681046811468124681346814468154681646817468184681946820468214682246823468244682546826468274682846829468304683146832468334683446835468364683746838468394684046841468424684346844468454684646847468484684946850468514685246853468544685546856468574685846859468604686146862468634686446865468664686746868468694687046871468724687346874468754687646877468784687946880468814688246883468844688546886468874688846889468904689146892468934689446895468964689746898468994690046901469024690346904469054690646907469084690946910469114691246913469144691546916469174691846919469204692146922469234692446925469264692746928469294693046931469324693346934469354693646937469384693946940469414694246943469444694546946469474694846949469504695146952469534695446955469564695746958469594696046961469624696346964469654696646967469684696946970469714697246973469744697546976469774697846979469804698146982469834698446985469864698746988469894699046991469924699346994469954699646997469984699947000470014700247003470044700547006470074700847009470104701147012470134701447015470164701747018470194702047021470224702347024470254702647027470284702947030470314703247033470344703547036470374703847039470404704147042470434704447045470464704747048470494705047051470524705347054470554705647057470584705947060470614706247063470644706547066470674706847069470704707147072470734707447075470764707747078470794708047081470824708347084470854708647087470884708947090470914709247093470944709547096470974709847099471004710147102471034710447105471064710747108471094711047111471124711347114471154711647117471184711947120471214712247123471244712547126471274712847129471304713147132471334713447135471364713747138471394714047141471424714347144471454714647147471484714947150471514715247153471544715547156471574715847159471604716147162471634716447165471664716747168471694717047171471724717347174471754717647177471784717947180471814718247183471844718547186471874718847189471904719147192471934719447195471964719747198471994720047201472024720347204472054720647207472084720947210472114721247213472144721547216472174721847219472204722147222472234722447225472264722747228472294723047231472324723347234472354723647237472384723947240472414724247243472444724547246472474724847249472504725147252472534725447255472564725747258472594726047261472624726347264472654726647267472684726947270472714727247273472744727547276472774727847279472804728147282472834728447285472864728747288472894729047291472924729347294472954729647297472984729947300473014730247303473044730547306473074730847309473104731147312473134731447315473164731747318473194732047321473224732347324473254732647327473284732947330473314733247333473344733547336473374733847339473404734147342473434734447345473464734747348473494735047351473524735347354473554735647357473584735947360473614736247363473644736547366473674736847369473704737147372473734737447375473764737747378473794738047381473824738347384473854738647387473884738947390473914739247393473944739547396473974739847399474004740147402474034740447405474064740747408474094741047411474124741347414474154741647417474184741947420474214742247423474244742547426474274742847429474304743147432474334743447435474364743747438474394744047441474424744347444474454744647447474484744947450474514745247453474544745547456474574745847459474604746147462474634746447465474664746747468474694747047471474724747347474474754747647477474784747947480474814748247483474844748547486474874748847489474904749147492474934749447495474964749747498474994750047501475024750347504475054750647507475084750947510475114751247513475144751547516475174751847519475204752147522475234752447525475264752747528475294753047531475324753347534475354753647537475384753947540475414754247543475444754547546475474754847549475504755147552475534755447555475564755747558475594756047561475624756347564475654756647567475684756947570475714757247573475744757547576475774757847579475804758147582475834758447585475864758747588475894759047591475924759347594475954759647597475984759947600476014760247603476044760547606476074760847609476104761147612476134761447615476164761747618476194762047621476224762347624476254762647627476284762947630476314763247633476344763547636476374763847639476404764147642476434764447645476464764747648476494765047651476524765347654476554765647657476584765947660476614766247663476644766547666476674766847669476704767147672476734767447675476764767747678476794768047681476824768347684476854768647687476884768947690476914769247693476944769547696476974769847699477004770147702477034770447705477064770747708477094771047711477124771347714477154771647717477184771947720477214772247723477244772547726477274772847729477304773147732477334773447735477364773747738477394774047741477424774347744477454774647747477484774947750477514775247753477544775547756477574775847759477604776147762477634776447765477664776747768477694777047771477724777347774477754777647777477784777947780477814778247783477844778547786477874778847789477904779147792477934779447795477964779747798477994780047801478024780347804478054780647807478084780947810478114781247813478144781547816478174781847819478204782147822478234782447825478264782747828478294783047831478324783347834478354783647837478384783947840478414784247843478444784547846478474784847849478504785147852478534785447855478564785747858478594786047861478624786347864478654786647867478684786947870478714787247873478744787547876478774787847879478804788147882478834788447885478864788747888478894789047891478924789347894478954789647897478984789947900479014790247903479044790547906479074790847909479104791147912479134791447915479164791747918479194792047921479224792347924479254792647927479284792947930479314793247933479344793547936479374793847939479404794147942479434794447945479464794747948479494795047951479524795347954479554795647957479584795947960479614796247963479644796547966479674796847969479704797147972479734797447975479764797747978479794798047981479824798347984479854798647987479884798947990479914799247993479944799547996479974799847999480004800148002480034800448005480064800748008480094801048011480124801348014480154801648017480184801948020480214802248023480244802548026480274802848029480304803148032480334803448035480364803748038480394804048041480424804348044480454804648047480484804948050480514805248053480544805548056480574805848059480604806148062480634806448065480664806748068480694807048071480724807348074480754807648077480784807948080480814808248083480844808548086480874808848089480904809148092480934809448095480964809748098480994810048101481024810348104481054810648107481084810948110481114811248113481144811548116481174811848119481204812148122481234812448125481264812748128481294813048131481324813348134481354813648137481384813948140481414814248143481444814548146481474814848149481504815148152481534815448155481564815748158481594816048161481624816348164481654816648167481684816948170481714817248173481744817548176481774817848179481804818148182481834818448185481864818748188481894819048191481924819348194481954819648197481984819948200482014820248203482044820548206482074820848209482104821148212482134821448215482164821748218482194822048221482224822348224482254822648227482284822948230482314823248233482344823548236482374823848239482404824148242482434824448245482464824748248482494825048251482524825348254482554825648257482584825948260482614826248263482644826548266482674826848269482704827148272482734827448275482764827748278482794828048281482824828348284482854828648287482884828948290482914829248293482944829548296482974829848299483004830148302483034830448305483064830748308483094831048311483124831348314483154831648317483184831948320483214832248323483244832548326483274832848329483304833148332483334833448335483364833748338483394834048341483424834348344483454834648347483484834948350483514835248353483544835548356483574835848359483604836148362483634836448365483664836748368483694837048371483724837348374483754837648377483784837948380483814838248383483844838548386483874838848389483904839148392483934839448395483964839748398483994840048401484024840348404484054840648407484084840948410484114841248413484144841548416484174841848419484204842148422484234842448425484264842748428484294843048431484324843348434484354843648437484384843948440484414844248443484444844548446484474844848449484504845148452484534845448455484564845748458484594846048461484624846348464484654846648467484684846948470484714847248473484744847548476484774847848479484804848148482484834848448485484864848748488484894849048491484924849348494484954849648497484984849948500485014850248503485044850548506485074850848509485104851148512485134851448515485164851748518485194852048521485224852348524485254852648527485284852948530485314853248533485344853548536485374853848539485404854148542485434854448545485464854748548485494855048551485524855348554485554855648557485584855948560485614856248563485644856548566485674856848569485704857148572485734857448575485764857748578485794858048581485824858348584485854858648587485884858948590485914859248593485944859548596485974859848599486004860148602486034860448605486064860748608486094861048611486124861348614486154861648617486184861948620486214862248623486244862548626486274862848629486304863148632486334863448635486364863748638486394864048641486424864348644486454864648647486484864948650486514865248653486544865548656486574865848659486604866148662486634866448665486664866748668486694867048671486724867348674486754867648677486784867948680486814868248683486844868548686486874868848689486904869148692486934869448695486964869748698486994870048701487024870348704487054870648707487084870948710487114871248713487144871548716487174871848719487204872148722487234872448725487264872748728487294873048731487324873348734487354873648737487384873948740487414874248743487444874548746487474874848749487504875148752487534875448755487564875748758487594876048761487624876348764487654876648767487684876948770487714877248773487744877548776487774877848779487804878148782487834878448785487864878748788487894879048791487924879348794487954879648797487984879948800488014880248803488044880548806488074880848809488104881148812488134881448815488164881748818488194882048821488224882348824488254882648827488284882948830488314883248833488344883548836488374883848839488404884148842488434884448845488464884748848488494885048851488524885348854488554885648857488584885948860488614886248863488644886548866488674886848869488704887148872488734887448875488764887748878488794888048881488824888348884488854888648887488884888948890488914889248893488944889548896488974889848899489004890148902489034890448905489064890748908489094891048911489124891348914489154891648917489184891948920489214892248923489244892548926489274892848929489304893148932489334893448935489364893748938489394894048941489424894348944489454894648947489484894948950489514895248953489544895548956489574895848959489604896148962489634896448965489664896748968489694897048971489724897348974489754897648977489784897948980489814898248983489844898548986489874898848989489904899148992489934899448995489964899748998489994900049001490024900349004490054900649007490084900949010490114901249013490144901549016490174901849019490204902149022490234902449025490264902749028490294903049031490324903349034490354903649037490384903949040490414904249043490444904549046490474904849049490504905149052490534905449055490564905749058490594906049061490624906349064490654906649067490684906949070490714907249073490744907549076490774907849079490804908149082490834908449085490864908749088490894909049091490924909349094490954909649097490984909949100491014910249103491044910549106491074910849109491104911149112491134911449115491164911749118491194912049121491224912349124491254912649127491284912949130491314913249133491344913549136491374913849139491404914149142491434914449145491464914749148491494915049151491524915349154491554915649157491584915949160491614916249163491644916549166491674916849169491704917149172491734917449175491764917749178491794918049181491824918349184491854918649187491884918949190491914919249193491944919549196491974919849199492004920149202492034920449205492064920749208492094921049211492124921349214492154921649217492184921949220492214922249223492244922549226492274922849229492304923149232492334923449235492364923749238492394924049241492424924349244492454924649247492484924949250492514925249253492544925549256492574925849259492604926149262492634926449265492664926749268492694927049271492724927349274492754927649277492784927949280492814928249283492844928549286492874928849289492904929149292492934929449295492964929749298492994930049301493024930349304493054930649307493084930949310493114931249313493144931549316493174931849319493204932149322493234932449325493264932749328493294933049331493324933349334493354933649337493384933949340493414934249343493444934549346493474934849349493504935149352493534935449355493564935749358493594936049361493624936349364493654936649367493684936949370493714937249373493744937549376493774937849379493804938149382493834938449385493864938749388493894939049391493924939349394493954939649397493984939949400494014940249403494044940549406494074940849409494104941149412494134941449415494164941749418494194942049421494224942349424494254942649427494284942949430494314943249433494344943549436494374943849439494404944149442494434944449445494464944749448494494945049451494524945349454494554945649457494584945949460494614946249463494644946549466494674946849469494704947149472494734947449475494764947749478494794948049481494824948349484494854948649487494884948949490494914949249493494944949549496494974949849499495004950149502495034950449505495064950749508495094951049511495124951349514495154951649517495184951949520495214952249523495244952549526495274952849529495304953149532495334953449535495364953749538495394954049541495424954349544495454954649547495484954949550495514955249553495544955549556495574955849559495604956149562495634956449565495664956749568495694957049571495724957349574495754957649577495784957949580495814958249583495844958549586495874958849589495904959149592495934959449595495964959749598495994960049601496024960349604496054960649607496084960949610496114961249613496144961549616496174961849619496204962149622496234962449625496264962749628496294963049631496324963349634496354963649637496384963949640496414964249643496444964549646496474964849649496504965149652496534965449655496564965749658496594966049661496624966349664496654966649667496684966949670496714967249673496744967549676496774967849679496804968149682496834968449685496864968749688496894969049691496924969349694496954969649697496984969949700497014970249703497044970549706497074970849709497104971149712497134971449715497164971749718497194972049721497224972349724497254972649727497284972949730497314973249733497344973549736497374973849739497404974149742497434974449745497464974749748497494975049751497524975349754497554975649757497584975949760497614976249763497644976549766497674976849769497704977149772497734977449775497764977749778497794978049781497824978349784497854978649787497884978949790497914979249793497944979549796497974979849799498004980149802498034980449805498064980749808498094981049811498124981349814498154981649817498184981949820498214982249823498244982549826498274982849829498304983149832498334983449835498364983749838498394984049841498424984349844498454984649847498484984949850498514985249853498544985549856498574985849859498604986149862498634986449865498664986749868498694987049871498724987349874498754987649877498784987949880498814988249883498844988549886498874988849889498904989149892498934989449895498964989749898498994990049901499024990349904499054990649907499084990949910499114991249913499144991549916499174991849919499204992149922499234992449925499264992749928499294993049931499324993349934499354993649937499384993949940499414994249943499444994549946499474994849949499504995149952499534995449955499564995749958499594996049961499624996349964499654996649967499684996949970499714997249973499744997549976499774997849979499804998149982499834998449985499864998749988499894999049991499924999349994499954999649997499984999950000500015000250003500045000550006500075000850009500105001150012500135001450015500165001750018500195002050021500225002350024500255002650027500285002950030500315003250033500345003550036500375003850039500405004150042500435004450045500465004750048500495005050051500525005350054500555005650057500585005950060500615006250063500645006550066500675006850069500705007150072500735007450075500765007750078500795008050081500825008350084500855008650087500885008950090500915009250093500945009550096500975009850099501005010150102501035010450105501065010750108501095011050111501125011350114501155011650117501185011950120501215012250123501245012550126501275012850129501305013150132501335013450135501365013750138501395014050141501425014350144501455014650147501485014950150501515015250153501545015550156501575015850159501605016150162501635016450165501665016750168501695017050171501725017350174501755017650177501785017950180501815018250183501845018550186501875018850189501905019150192501935019450195501965019750198501995020050201502025020350204502055020650207502085020950210502115021250213502145021550216502175021850219502205022150222502235022450225502265022750228502295023050231502325023350234502355023650237502385023950240502415024250243502445024550246502475024850249502505025150252502535025450255502565025750258502595026050261502625026350264502655026650267502685026950270502715027250273502745027550276502775027850279502805028150282502835028450285502865028750288502895029050291502925029350294502955029650297502985029950300503015030250303503045030550306503075030850309503105031150312503135031450315503165031750318503195032050321503225032350324503255032650327503285032950330503315033250333503345033550336503375033850339503405034150342503435034450345503465034750348503495035050351503525035350354503555035650357503585035950360503615036250363503645036550366503675036850369503705037150372503735037450375503765037750378503795038050381503825038350384503855038650387503885038950390503915039250393503945039550396503975039850399504005040150402504035040450405504065040750408504095041050411504125041350414504155041650417504185041950420504215042250423504245042550426504275042850429504305043150432504335043450435504365043750438504395044050441504425044350444504455044650447504485044950450504515045250453504545045550456504575045850459504605046150462504635046450465504665046750468504695047050471504725047350474504755047650477504785047950480504815048250483504845048550486504875048850489504905049150492504935049450495504965049750498504995050050501505025050350504505055050650507505085050950510505115051250513505145051550516505175051850519505205052150522505235052450525505265052750528505295053050531505325053350534505355053650537505385053950540505415054250543505445054550546505475054850549505505055150552505535055450555505565055750558505595056050561505625056350564505655056650567505685056950570505715057250573505745057550576505775057850579505805058150582505835058450585505865058750588505895059050591505925059350594505955059650597505985059950600506015060250603506045060550606506075060850609506105061150612506135061450615506165061750618506195062050621506225062350624506255062650627506285062950630506315063250633506345063550636506375063850639506405064150642506435064450645506465064750648506495065050651506525065350654506555065650657506585065950660506615066250663506645066550666506675066850669506705067150672506735067450675506765067750678506795068050681506825068350684506855068650687506885068950690506915069250693506945069550696506975069850699507005070150702507035070450705507065070750708507095071050711507125071350714507155071650717507185071950720507215072250723507245072550726507275072850729507305073150732507335073450735507365073750738507395074050741507425074350744507455074650747507485074950750507515075250753507545075550756507575075850759507605076150762507635076450765507665076750768507695077050771507725077350774507755077650777507785077950780507815078250783507845078550786507875078850789507905079150792507935079450795507965079750798507995080050801508025080350804508055080650807508085080950810508115081250813508145081550816508175081850819508205082150822508235082450825508265082750828508295083050831508325083350834508355083650837508385083950840508415084250843508445084550846508475084850849508505085150852508535085450855508565085750858508595086050861508625086350864508655086650867508685086950870508715087250873508745087550876508775087850879508805088150882508835088450885508865088750888508895089050891508925089350894508955089650897508985089950900509015090250903509045090550906509075090850909509105091150912509135091450915509165091750918509195092050921509225092350924509255092650927509285092950930509315093250933509345093550936509375093850939509405094150942509435094450945509465094750948509495095050951509525095350954509555095650957509585095950960509615096250963509645096550966509675096850969509705097150972509735097450975509765097750978509795098050981509825098350984509855098650987509885098950990509915099250993509945099550996509975099850999510005100151002510035100451005510065100751008510095101051011510125101351014510155101651017510185101951020510215102251023510245102551026510275102851029510305103151032510335103451035510365103751038510395104051041510425104351044510455104651047510485104951050510515105251053510545105551056510575105851059510605106151062510635106451065510665106751068510695107051071510725107351074510755107651077510785107951080510815108251083510845108551086510875108851089510905109151092510935109451095510965109751098510995110051101511025110351104511055110651107511085110951110511115111251113511145111551116511175111851119511205112151122511235112451125511265112751128511295113051131511325113351134511355113651137511385113951140511415114251143511445114551146511475114851149511505115151152511535115451155511565115751158511595116051161511625116351164511655116651167511685116951170511715117251173511745117551176511775117851179511805118151182511835118451185511865118751188511895119051191511925119351194511955119651197511985119951200512015120251203512045120551206512075120851209512105121151212512135121451215512165121751218512195122051221512225122351224512255122651227512285122951230512315123251233512345123551236512375123851239512405124151242512435124451245512465124751248512495125051251512525125351254512555125651257512585125951260512615126251263512645126551266512675126851269512705127151272512735127451275512765127751278512795128051281512825128351284512855128651287512885128951290512915129251293512945129551296512975129851299513005130151302513035130451305513065130751308513095131051311513125131351314513155131651317513185131951320513215132251323513245132551326513275132851329513305133151332513335133451335513365133751338513395134051341513425134351344513455134651347513485134951350513515135251353513545135551356513575135851359513605136151362513635136451365513665136751368513695137051371513725137351374513755137651377513785137951380513815138251383513845138551386513875138851389513905139151392513935139451395513965139751398513995140051401514025140351404514055140651407514085140951410514115141251413514145141551416514175141851419514205142151422514235142451425514265142751428514295143051431514325143351434514355143651437514385143951440514415144251443514445144551446514475144851449514505145151452514535145451455514565145751458514595146051461514625146351464514655146651467514685146951470514715147251473514745147551476514775147851479514805148151482514835148451485514865148751488514895149051491514925149351494514955149651497514985149951500515015150251503515045150551506515075150851509515105151151512515135151451515515165151751518515195152051521515225152351524515255152651527515285152951530515315153251533515345153551536515375153851539515405154151542515435154451545515465154751548515495155051551515525155351554515555155651557515585155951560515615156251563515645156551566515675156851569515705157151572515735157451575515765157751578515795158051581515825158351584515855158651587515885158951590515915159251593515945159551596515975159851599516005160151602516035160451605516065160751608516095161051611516125161351614516155161651617516185161951620516215162251623516245162551626516275162851629516305163151632516335163451635516365163751638516395164051641516425164351644516455164651647516485164951650516515165251653516545165551656516575165851659516605166151662516635166451665516665166751668516695167051671516725167351674516755167651677516785167951680516815168251683516845168551686516875168851689516905169151692516935169451695516965169751698516995170051701517025170351704517055170651707517085170951710517115171251713517145171551716517175171851719517205172151722517235172451725517265172751728517295173051731517325173351734517355173651737517385173951740517415174251743517445174551746517475174851749517505175151752517535175451755517565175751758517595176051761517625176351764517655176651767517685176951770517715177251773517745177551776517775177851779517805178151782517835178451785517865178751788517895179051791517925179351794517955179651797517985179951800518015180251803518045180551806518075180851809518105181151812518135181451815518165181751818518195182051821518225182351824518255182651827518285182951830518315183251833518345183551836518375183851839518405184151842518435184451845518465184751848518495185051851518525185351854518555185651857518585185951860518615186251863518645186551866518675186851869518705187151872518735187451875518765187751878518795188051881518825188351884518855188651887518885188951890518915189251893518945189551896518975189851899519005190151902519035190451905519065190751908519095191051911519125191351914519155191651917519185191951920519215192251923519245192551926519275192851929519305193151932519335193451935519365193751938519395194051941519425194351944519455194651947519485194951950519515195251953519545195551956519575195851959519605196151962519635196451965519665196751968519695197051971519725197351974519755197651977519785197951980519815198251983519845198551986519875198851989519905199151992519935199451995519965199751998519995200052001520025200352004520055200652007520085200952010520115201252013520145201552016520175201852019520205202152022520235202452025520265202752028520295203052031520325203352034520355203652037520385203952040520415204252043520445204552046520475204852049520505205152052520535205452055520565205752058520595206052061520625206352064520655206652067520685206952070520715207252073520745207552076520775207852079520805208152082520835208452085520865208752088520895209052091520925209352094520955209652097520985209952100521015210252103521045210552106521075210852109521105211152112521135211452115521165211752118521195212052121521225212352124521255212652127521285212952130521315213252133521345213552136521375213852139521405214152142521435214452145521465214752148521495215052151521525215352154521555215652157521585215952160521615216252163521645216552166521675216852169521705217152172521735217452175521765217752178521795218052181521825218352184521855218652187521885218952190521915219252193521945219552196521975219852199522005220152202522035220452205522065220752208522095221052211522125221352214522155221652217522185221952220522215222252223522245222552226522275222852229522305223152232522335223452235522365223752238522395224052241522425224352244522455224652247522485224952250522515225252253522545225552256522575225852259522605226152262522635226452265522665226752268522695227052271522725227352274522755227652277522785227952280522815228252283522845228552286522875228852289522905229152292522935229452295522965229752298522995230052301523025230352304523055230652307523085230952310523115231252313523145231552316523175231852319523205232152322523235232452325523265232752328523295233052331523325233352334523355233652337523385233952340523415234252343523445234552346523475234852349523505235152352523535235452355523565235752358523595236052361523625236352364523655236652367523685236952370523715237252373523745237552376523775237852379523805238152382523835238452385523865238752388523895239052391523925239352394523955239652397523985239952400524015240252403524045240552406524075240852409524105241152412524135241452415524165241752418524195242052421524225242352424524255242652427524285242952430524315243252433524345243552436524375243852439524405244152442524435244452445524465244752448524495245052451524525245352454524555245652457524585245952460524615246252463524645246552466524675246852469524705247152472524735247452475524765247752478524795248052481524825248352484524855248652487524885248952490524915249252493524945249552496524975249852499525005250152502525035250452505525065250752508525095251052511525125251352514525155251652517525185251952520525215252252523525245252552526525275252852529525305253152532525335253452535525365253752538525395254052541525425254352544525455254652547525485254952550525515255252553525545255552556525575255852559525605256152562525635256452565525665256752568525695257052571525725257352574525755257652577525785257952580525815258252583525845258552586525875258852589525905259152592525935259452595525965259752598525995260052601526025260352604526055260652607526085260952610526115261252613526145261552616526175261852619526205262152622526235262452625526265262752628526295263052631526325263352634526355263652637526385263952640526415264252643526445264552646526475264852649526505265152652526535265452655526565265752658526595266052661526625266352664526655266652667526685266952670526715267252673526745267552676526775267852679526805268152682526835268452685526865268752688526895269052691526925269352694526955269652697526985269952700527015270252703527045270552706527075270852709527105271152712527135271452715527165271752718527195272052721527225272352724527255272652727527285272952730527315273252733527345273552736527375273852739527405274152742527435274452745527465274752748527495275052751527525275352754527555275652757527585275952760527615276252763527645276552766527675276852769527705277152772527735277452775527765277752778527795278052781527825278352784527855278652787527885278952790527915279252793527945279552796527975279852799528005280152802528035280452805528065280752808528095281052811528125281352814528155281652817528185281952820528215282252823528245282552826528275282852829528305283152832528335283452835528365283752838528395284052841528425284352844528455284652847528485284952850528515285252853528545285552856528575285852859528605286152862528635286452865528665286752868528695287052871528725287352874528755287652877528785287952880528815288252883528845288552886528875288852889528905289152892528935289452895528965289752898528995290052901529025290352904529055290652907529085290952910529115291252913529145291552916529175291852919529205292152922529235292452925529265292752928529295293052931529325293352934529355293652937529385293952940529415294252943529445294552946529475294852949529505295152952529535295452955529565295752958529595296052961529625296352964529655296652967529685296952970529715297252973529745297552976529775297852979529805298152982529835298452985529865298752988529895299052991529925299352994529955299652997529985299953000530015300253003530045300553006530075300853009530105301153012530135301453015530165301753018530195302053021530225302353024530255302653027530285302953030530315303253033530345303553036530375303853039530405304153042530435304453045530465304753048530495305053051530525305353054530555305653057530585305953060530615306253063530645306553066530675306853069530705307153072530735307453075530765307753078530795308053081530825308353084530855308653087530885308953090530915309253093530945309553096530975309853099531005310153102531035310453105531065310753108531095311053111531125311353114531155311653117531185311953120531215312253123531245312553126531275312853129531305313153132531335313453135531365313753138531395314053141531425314353144531455314653147531485314953150531515315253153531545315553156531575315853159531605316153162531635316453165531665316753168531695317053171531725317353174531755317653177531785317953180531815318253183531845318553186531875318853189531905319153192531935319453195531965319753198531995320053201532025320353204532055320653207532085320953210532115321253213532145321553216532175321853219532205322153222532235322453225532265322753228532295323053231532325323353234532355323653237532385323953240532415324253243532445324553246532475324853249532505325153252532535325453255532565325753258532595326053261532625326353264532655326653267532685326953270532715327253273532745327553276532775327853279532805328153282532835328453285532865328753288532895329053291532925329353294532955329653297532985329953300533015330253303533045330553306533075330853309533105331153312533135331453315533165331753318533195332053321533225332353324533255332653327533285332953330533315333253333533345333553336533375333853339533405334153342533435334453345533465334753348533495335053351533525335353354533555335653357533585335953360533615336253363533645336553366533675336853369533705337153372533735337453375533765337753378533795338053381533825338353384533855338653387533885338953390533915339253393533945339553396533975339853399534005340153402534035340453405534065340753408534095341053411534125341353414534155341653417534185341953420534215342253423534245342553426534275342853429534305343153432534335343453435534365343753438534395344053441534425344353444534455344653447534485344953450534515345253453534545345553456534575345853459534605346153462534635346453465534665346753468534695347053471534725347353474534755347653477534785347953480534815348253483534845348553486534875348853489534905349153492534935349453495534965349753498534995350053501535025350353504535055350653507535085350953510535115351253513535145351553516535175351853519535205352153522535235352453525535265352753528535295353053531535325353353534535355353653537535385353953540535415354253543535445354553546535475354853549535505355153552535535355453555535565355753558535595356053561535625356353564535655356653567535685356953570535715357253573535745357553576535775357853579535805358153582535835358453585535865358753588535895359053591535925359353594535955359653597535985359953600536015360253603536045360553606536075360853609536105361153612536135361453615536165361753618536195362053621536225362353624536255362653627536285362953630536315363253633536345363553636536375363853639536405364153642536435364453645536465364753648536495365053651536525365353654536555365653657536585365953660536615366253663536645366553666536675366853669536705367153672536735367453675536765367753678536795368053681536825368353684536855368653687536885368953690536915369253693536945369553696536975369853699537005370153702537035370453705537065370753708537095371053711537125371353714537155371653717537185371953720537215372253723537245372553726537275372853729537305373153732537335373453735537365373753738537395374053741537425374353744537455374653747537485374953750537515375253753537545375553756537575375853759537605376153762537635376453765537665376753768537695377053771537725377353774537755377653777537785377953780537815378253783537845378553786537875378853789537905379153792537935379453795537965379753798537995380053801538025380353804538055380653807538085380953810538115381253813538145381553816538175381853819538205382153822538235382453825538265382753828538295383053831538325383353834538355383653837538385383953840538415384253843538445384553846538475384853849538505385153852538535385453855538565385753858538595386053861538625386353864538655386653867538685386953870538715387253873538745387553876538775387853879538805388153882538835388453885538865388753888538895389053891538925389353894538955389653897538985389953900539015390253903539045390553906539075390853909539105391153912539135391453915539165391753918539195392053921539225392353924539255392653927539285392953930539315393253933539345393553936539375393853939539405394153942539435394453945539465394753948539495395053951539525395353954539555395653957539585395953960539615396253963539645396553966539675396853969539705397153972539735397453975539765397753978539795398053981539825398353984539855398653987539885398953990539915399253993539945399553996539975399853999540005400154002540035400454005540065400754008540095401054011540125401354014540155401654017540185401954020540215402254023540245402554026540275402854029540305403154032540335403454035540365403754038540395404054041540425404354044540455404654047540485404954050540515405254053540545405554056540575405854059540605406154062540635406454065540665406754068540695407054071540725407354074540755407654077540785407954080540815408254083540845408554086540875408854089540905409154092540935409454095540965409754098540995410054101541025410354104541055410654107541085410954110541115411254113541145411554116541175411854119541205412154122541235412454125541265412754128541295413054131541325413354134541355413654137541385413954140541415414254143541445414554146541475414854149541505415154152541535415454155541565415754158541595416054161541625416354164541655416654167541685416954170541715417254173541745417554176541775417854179541805418154182541835418454185541865418754188541895419054191541925419354194541955419654197541985419954200542015420254203542045420554206542075420854209542105421154212542135421454215542165421754218542195422054221542225422354224542255422654227542285422954230542315423254233542345423554236542375423854239542405424154242542435424454245542465424754248542495425054251542525425354254542555425654257542585425954260542615426254263542645426554266542675426854269542705427154272542735427454275542765427754278542795428054281542825428354284542855428654287542885428954290542915429254293542945429554296542975429854299543005430154302543035430454305543065430754308543095431054311543125431354314543155431654317543185431954320543215432254323543245432554326543275432854329543305433154332543335433454335543365433754338543395434054341543425434354344543455434654347543485434954350543515435254353543545435554356543575435854359543605436154362543635436454365543665436754368543695437054371543725437354374543755437654377543785437954380543815438254383543845438554386543875438854389543905439154392543935439454395543965439754398543995440054401544025440354404544055440654407544085440954410544115441254413544145441554416544175441854419544205442154422544235442454425544265442754428544295443054431544325443354434544355443654437544385443954440544415444254443544445444554446544475444854449544505445154452544535445454455544565445754458544595446054461544625446354464544655446654467544685446954470544715447254473544745447554476544775447854479544805448154482544835448454485544865448754488544895449054491544925449354494544955449654497544985449954500545015450254503545045450554506545075450854509545105451154512545135451454515545165451754518545195452054521545225452354524545255452654527545285452954530545315453254533545345453554536545375453854539545405454154542545435454454545545465454754548545495455054551545525455354554545555455654557545585455954560545615456254563545645456554566545675456854569545705457154572545735457454575545765457754578545795458054581545825458354584545855458654587545885458954590545915459254593545945459554596545975459854599546005460154602546035460454605546065460754608546095461054611546125461354614546155461654617546185461954620546215462254623546245462554626546275462854629546305463154632546335463454635546365463754638546395464054641546425464354644546455464654647546485464954650546515465254653546545465554656546575465854659546605466154662546635466454665546665466754668546695467054671546725467354674546755467654677546785467954680546815468254683546845468554686546875468854689546905469154692546935469454695546965469754698546995470054701547025470354704547055470654707547085470954710547115471254713547145471554716547175471854719547205472154722547235472454725547265472754728547295473054731547325473354734547355473654737547385473954740547415474254743547445474554746547475474854749547505475154752547535475454755547565475754758547595476054761547625476354764547655476654767547685476954770547715477254773547745477554776547775477854779547805478154782547835478454785547865478754788547895479054791547925479354794547955479654797547985479954800548015480254803548045480554806548075480854809548105481154812548135481454815548165481754818548195482054821548225482354824548255482654827548285482954830548315483254833548345483554836548375483854839548405484154842548435484454845548465484754848548495485054851548525485354854548555485654857548585485954860548615486254863548645486554866548675486854869548705487154872548735487454875548765487754878548795488054881548825488354884548855488654887548885488954890548915489254893548945489554896548975489854899549005490154902549035490454905549065490754908549095491054911549125491354914549155491654917549185491954920549215492254923549245492554926549275492854929549305493154932549335493454935549365493754938549395494054941549425494354944549455494654947549485494954950549515495254953549545495554956549575495854959549605496154962549635496454965549665496754968549695497054971549725497354974549755497654977549785497954980549815498254983549845498554986549875498854989549905499154992549935499454995549965499754998549995500055001550025500355004550055500655007550085500955010550115501255013550145501555016550175501855019550205502155022550235502455025550265502755028550295503055031550325503355034550355503655037550385503955040550415504255043550445504555046550475504855049550505505155052550535505455055550565505755058550595506055061550625506355064550655506655067550685506955070550715507255073550745507555076550775507855079550805508155082550835508455085550865508755088550895509055091550925509355094550955509655097550985509955100551015510255103551045510555106551075510855109551105511155112551135511455115551165511755118551195512055121551225512355124551255512655127551285512955130551315513255133551345513555136551375513855139551405514155142551435514455145551465514755148551495515055151551525515355154551555515655157551585515955160551615516255163551645516555166551675516855169551705517155172551735517455175551765517755178551795518055181551825518355184551855518655187551885518955190551915519255193551945519555196551975519855199552005520155202552035520455205552065520755208552095521055211552125521355214552155521655217552185521955220552215522255223552245522555226552275522855229552305523155232552335523455235552365523755238552395524055241552425524355244552455524655247552485524955250552515525255253552545525555256552575525855259552605526155262552635526455265552665526755268552695527055271552725527355274552755527655277552785527955280552815528255283552845528555286552875528855289552905529155292552935529455295552965529755298552995530055301553025530355304553055530655307553085530955310553115531255313553145531555316553175531855319553205532155322553235532455325553265532755328553295533055331553325533355334553355533655337553385533955340553415534255343553445534555346553475534855349553505535155352553535535455355553565535755358553595536055361553625536355364553655536655367553685536955370553715537255373553745537555376553775537855379553805538155382553835538455385553865538755388553895539055391553925539355394553955539655397553985539955400554015540255403554045540555406554075540855409554105541155412554135541455415554165541755418554195542055421554225542355424554255542655427554285542955430554315543255433554345543555436554375543855439554405544155442554435544455445554465544755448554495545055451554525545355454554555545655457554585545955460554615546255463554645546555466554675546855469554705547155472554735547455475554765547755478554795548055481554825548355484554855548655487554885548955490554915549255493554945549555496554975549855499555005550155502555035550455505555065550755508555095551055511555125551355514555155551655517555185551955520555215552255523555245552555526555275552855529555305553155532555335553455535555365553755538555395554055541555425554355544555455554655547555485554955550555515555255553555545555555556555575555855559555605556155562555635556455565555665556755568555695557055571555725557355574555755557655577555785557955580555815558255583555845558555586555875558855589555905559155592555935559455595555965559755598555995560055601556025560355604556055560655607556085560955610556115561255613556145561555616556175561855619556205562155622556235562455625556265562755628556295563055631556325563355634556355563655637556385563955640556415564255643556445564555646556475564855649556505565155652556535565455655556565565755658556595566055661556625566355664556655566655667556685566955670556715567255673556745567555676556775567855679556805568155682556835568455685556865568755688556895569055691556925569355694556955569655697556985569955700557015570255703557045570555706557075570855709557105571155712557135571455715557165571755718557195572055721557225572355724557255572655727557285572955730557315573255733557345573555736557375573855739557405574155742557435574455745557465574755748557495575055751557525575355754557555575655757557585575955760557615576255763557645576555766557675576855769557705577155772557735577455775557765577755778557795578055781557825578355784557855578655787557885578955790557915579255793557945579555796557975579855799558005580155802558035580455805558065580755808558095581055811558125581355814558155581655817558185581955820558215582255823558245582555826558275582855829558305583155832558335583455835558365583755838558395584055841558425584355844558455584655847558485584955850558515585255853558545585555856558575585855859558605586155862558635586455865558665586755868558695587055871558725587355874558755587655877558785587955880558815588255883558845588555886558875588855889558905589155892558935589455895558965589755898558995590055901559025590355904559055590655907559085590955910559115591255913559145591555916559175591855919559205592155922559235592455925559265592755928559295593055931559325593355934559355593655937559385593955940559415594255943559445594555946559475594855949559505595155952559535595455955559565595755958559595596055961559625596355964559655596655967559685596955970559715597255973559745597555976559775597855979559805598155982559835598455985559865598755988559895599055991559925599355994559955599655997559985599956000560015600256003560045600556006560075600856009560105601156012560135601456015560165601756018560195602056021560225602356024560255602656027560285602956030560315603256033560345603556036560375603856039560405604156042560435604456045560465604756048560495605056051560525605356054560555605656057560585605956060560615606256063560645606556066560675606856069560705607156072560735607456075560765607756078560795608056081560825608356084560855608656087560885608956090560915609256093560945609556096560975609856099561005610156102561035610456105561065610756108561095611056111561125611356114561155611656117561185611956120561215612256123561245612556126561275612856129561305613156132561335613456135561365613756138561395614056141561425614356144561455614656147561485614956150561515615256153561545615556156561575615856159561605616156162561635616456165561665616756168561695617056171561725617356174561755617656177561785617956180561815618256183561845618556186561875618856189561905619156192561935619456195561965619756198561995620056201562025620356204562055620656207562085620956210562115621256213562145621556216562175621856219562205622156222562235622456225562265622756228562295623056231562325623356234562355623656237562385623956240562415624256243562445624556246562475624856249562505625156252562535625456255562565625756258562595626056261562625626356264562655626656267562685626956270562715627256273562745627556276562775627856279562805628156282562835628456285562865628756288562895629056291562925629356294562955629656297562985629956300563015630256303563045630556306563075630856309563105631156312563135631456315563165631756318563195632056321563225632356324563255632656327563285632956330563315633256333563345633556336563375633856339563405634156342563435634456345563465634756348563495635056351563525635356354563555635656357563585635956360563615636256363563645636556366563675636856369563705637156372563735637456375563765637756378563795638056381563825638356384563855638656387563885638956390563915639256393563945639556396563975639856399564005640156402564035640456405564065640756408564095641056411564125641356414564155641656417564185641956420564215642256423564245642556426564275642856429564305643156432564335643456435564365643756438564395644056441564425644356444564455644656447564485644956450564515645256453564545645556456564575645856459564605646156462564635646456465564665646756468564695647056471564725647356474564755647656477564785647956480564815648256483564845648556486564875648856489564905649156492564935649456495564965649756498564995650056501565025650356504565055650656507565085650956510565115651256513565145651556516565175651856519565205652156522565235652456525565265652756528565295653056531565325653356534565355653656537565385653956540565415654256543565445654556546565475654856549565505655156552565535655456555565565655756558565595656056561565625656356564565655656656567565685656956570565715657256573565745657556576565775657856579565805658156582565835658456585565865658756588565895659056591565925659356594565955659656597565985659956600566015660256603566045660556606566075660856609566105661156612566135661456615566165661756618566195662056621566225662356624566255662656627566285662956630566315663256633566345663556636566375663856639566405664156642566435664456645566465664756648566495665056651566525665356654566555665656657566585665956660566615666256663566645666556666566675666856669566705667156672566735667456675566765667756678566795668056681566825668356684566855668656687566885668956690566915669256693566945669556696566975669856699567005670156702567035670456705567065670756708567095671056711567125671356714567155671656717567185671956720567215672256723567245672556726567275672856729567305673156732567335673456735567365673756738567395674056741567425674356744567455674656747567485674956750567515675256753567545675556756567575675856759567605676156762567635676456765567665676756768567695677056771567725677356774567755677656777567785677956780567815678256783567845678556786567875678856789567905679156792567935679456795567965679756798567995680056801568025680356804568055680656807568085680956810568115681256813568145681556816568175681856819568205682156822568235682456825568265682756828568295683056831568325683356834568355683656837568385683956840568415684256843568445684556846568475684856849568505685156852568535685456855568565685756858568595686056861568625686356864568655686656867568685686956870568715687256873568745687556876568775687856879568805688156882568835688456885568865688756888568895689056891568925689356894568955689656897568985689956900569015690256903569045690556906569075690856909569105691156912569135691456915569165691756918569195692056921569225692356924569255692656927569285692956930569315693256933569345693556936569375693856939569405694156942569435694456945569465694756948569495695056951569525695356954569555695656957569585695956960569615696256963569645696556966569675696856969569705697156972569735697456975569765697756978569795698056981569825698356984569855698656987569885698956990569915699256993569945699556996569975699856999570005700157002570035700457005570065700757008570095701057011570125701357014570155701657017570185701957020570215702257023570245702557026570275702857029570305703157032570335703457035570365703757038570395704057041570425704357044570455704657047570485704957050570515705257053570545705557056570575705857059570605706157062570635706457065570665706757068570695707057071570725707357074570755707657077570785707957080570815708257083570845708557086570875708857089570905709157092570935709457095570965709757098570995710057101571025710357104571055710657107571085710957110571115711257113571145711557116571175711857119571205712157122571235712457125571265712757128571295713057131571325713357134571355713657137571385713957140571415714257143571445714557146571475714857149571505715157152571535715457155571565715757158571595716057161571625716357164571655716657167571685716957170571715717257173571745717557176571775717857179571805718157182571835718457185571865718757188571895719057191571925719357194571955719657197571985719957200572015720257203572045720557206572075720857209572105721157212572135721457215572165721757218572195722057221572225722357224572255722657227572285722957230572315723257233572345723557236572375723857239572405724157242572435724457245572465724757248572495725057251572525725357254572555725657257572585725957260572615726257263572645726557266572675726857269572705727157272572735727457275572765727757278572795728057281572825728357284572855728657287572885728957290572915729257293572945729557296572975729857299573005730157302573035730457305573065730757308573095731057311573125731357314573155731657317573185731957320573215732257323573245732557326573275732857329573305733157332573335733457335573365733757338573395734057341573425734357344573455734657347573485734957350573515735257353573545735557356573575735857359573605736157362573635736457365573665736757368573695737057371573725737357374573755737657377573785737957380573815738257383573845738557386573875738857389573905739157392573935739457395573965739757398573995740057401574025740357404574055740657407574085740957410574115741257413574145741557416574175741857419574205742157422574235742457425574265742757428574295743057431574325743357434574355743657437574385743957440574415744257443574445744557446574475744857449574505745157452574535745457455574565745757458574595746057461574625746357464574655746657467574685746957470574715747257473574745747557476574775747857479574805748157482574835748457485574865748757488574895749057491574925749357494574955749657497574985749957500575015750257503575045750557506575075750857509575105751157512575135751457515575165751757518575195752057521575225752357524575255752657527575285752957530575315753257533575345753557536575375753857539575405754157542575435754457545575465754757548575495755057551575525755357554575555755657557575585755957560575615756257563575645756557566575675756857569575705757157572575735757457575575765757757578575795758057581575825758357584575855758657587575885758957590575915759257593575945759557596575975759857599576005760157602576035760457605576065760757608576095761057611576125761357614576155761657617576185761957620576215762257623576245762557626576275762857629576305763157632576335763457635576365763757638576395764057641576425764357644576455764657647576485764957650576515765257653576545765557656576575765857659576605766157662576635766457665576665766757668576695767057671576725767357674576755767657677576785767957680576815768257683576845768557686576875768857689576905769157692576935769457695576965769757698576995770057701577025770357704577055770657707577085770957710577115771257713577145771557716577175771857719577205772157722577235772457725577265772757728577295773057731577325773357734577355773657737577385773957740577415774257743577445774557746577475774857749577505775157752577535775457755577565775757758577595776057761577625776357764577655776657767577685776957770577715777257773577745777557776577775777857779577805778157782577835778457785577865778757788577895779057791577925779357794577955779657797577985779957800578015780257803578045780557806578075780857809578105781157812578135781457815578165781757818578195782057821578225782357824578255782657827578285782957830578315783257833578345783557836578375783857839578405784157842578435784457845578465784757848578495785057851578525785357854578555785657857578585785957860578615786257863578645786557866578675786857869578705787157872578735787457875578765787757878578795788057881578825788357884578855788657887578885788957890578915789257893578945789557896578975789857899579005790157902579035790457905579065790757908579095791057911579125791357914579155791657917579185791957920579215792257923579245792557926579275792857929579305793157932579335793457935579365793757938579395794057941579425794357944579455794657947579485794957950579515795257953579545795557956579575795857959579605796157962579635796457965579665796757968579695797057971579725797357974579755797657977579785797957980579815798257983579845798557986579875798857989579905799157992579935799457995579965799757998579995800058001580025800358004580055800658007580085800958010580115801258013580145801558016580175801858019580205802158022580235802458025580265802758028580295803058031580325803358034580355803658037580385803958040580415804258043580445804558046580475804858049580505805158052580535805458055580565805758058580595806058061580625806358064580655806658067580685806958070580715807258073580745807558076580775807858079580805808158082580835808458085580865808758088580895809058091580925809358094580955809658097580985809958100581015810258103581045810558106581075810858109581105811158112581135811458115581165811758118581195812058121581225812358124581255812658127581285812958130581315813258133581345813558136581375813858139581405814158142581435814458145581465814758148581495815058151581525815358154581555815658157581585815958160581615816258163581645816558166581675816858169581705817158172581735817458175581765817758178581795818058181581825818358184581855818658187581885818958190581915819258193581945819558196581975819858199582005820158202582035820458205582065820758208582095821058211582125821358214582155821658217582185821958220582215822258223582245822558226582275822858229582305823158232582335823458235582365823758238582395824058241582425824358244582455824658247582485824958250582515825258253582545825558256582575825858259582605826158262582635826458265582665826758268582695827058271582725827358274582755827658277582785827958280582815828258283582845828558286582875828858289582905829158292582935829458295582965829758298582995830058301583025830358304583055830658307583085830958310583115831258313583145831558316583175831858319583205832158322583235832458325583265832758328583295833058331583325833358334583355833658337583385833958340583415834258343583445834558346583475834858349583505835158352583535835458355583565835758358583595836058361583625836358364583655836658367583685836958370583715837258373583745837558376583775837858379583805838158382583835838458385583865838758388583895839058391583925839358394583955839658397583985839958400584015840258403584045840558406584075840858409584105841158412584135841458415584165841758418584195842058421584225842358424584255842658427584285842958430584315843258433584345843558436584375843858439584405844158442584435844458445584465844758448584495845058451584525845358454584555845658457584585845958460584615846258463584645846558466584675846858469584705847158472584735847458475584765847758478584795848058481584825848358484584855848658487584885848958490584915849258493584945849558496584975849858499585005850158502585035850458505585065850758508585095851058511585125851358514585155851658517585185851958520585215852258523585245852558526585275852858529585305853158532585335853458535585365853758538585395854058541585425854358544585455854658547585485854958550585515855258553585545855558556585575855858559585605856158562585635856458565585665856758568585695857058571585725857358574585755857658577585785857958580585815858258583585845858558586585875858858589585905859158592585935859458595585965859758598585995860058601586025860358604586055860658607586085860958610586115861258613586145861558616586175861858619586205862158622586235862458625586265862758628586295863058631586325863358634586355863658637586385863958640586415864258643586445864558646586475864858649586505865158652586535865458655586565865758658586595866058661586625866358664586655866658667586685866958670586715867258673586745867558676586775867858679586805868158682586835868458685586865868758688586895869058691586925869358694586955869658697586985869958700587015870258703587045870558706587075870858709587105871158712587135871458715587165871758718587195872058721587225872358724587255872658727587285872958730587315873258733587345873558736587375873858739587405874158742587435874458745587465874758748587495875058751587525875358754587555875658757587585875958760587615876258763587645876558766587675876858769587705877158772587735877458775587765877758778587795878058781587825878358784587855878658787587885878958790587915879258793587945879558796587975879858799588005880158802588035880458805588065880758808588095881058811588125881358814588155881658817588185881958820588215882258823588245882558826588275882858829588305883158832588335883458835588365883758838588395884058841588425884358844588455884658847588485884958850588515885258853588545885558856588575885858859588605886158862588635886458865588665886758868588695887058871588725887358874588755887658877588785887958880588815888258883588845888558886588875888858889588905889158892588935889458895588965889758898588995890058901589025890358904589055890658907589085890958910589115891258913589145891558916589175891858919589205892158922589235892458925589265892758928589295893058931589325893358934589355893658937589385893958940589415894258943589445894558946589475894858949589505895158952589535895458955589565895758958589595896058961589625896358964589655896658967589685896958970589715897258973589745897558976589775897858979589805898158982589835898458985589865898758988589895899058991589925899358994589955899658997589985899959000590015900259003590045900559006590075900859009590105901159012590135901459015590165901759018590195902059021590225902359024590255902659027590285902959030590315903259033590345903559036590375903859039590405904159042590435904459045590465904759048590495905059051590525905359054590555905659057590585905959060590615906259063590645906559066590675906859069590705907159072590735907459075590765907759078590795908059081590825908359084590855908659087590885908959090590915909259093590945909559096590975909859099591005910159102591035910459105591065910759108591095911059111591125911359114591155911659117591185911959120591215912259123591245912559126591275912859129591305913159132591335913459135591365913759138591395914059141591425914359144591455914659147591485914959150591515915259153591545915559156591575915859159591605916159162591635916459165591665916759168591695917059171591725917359174591755917659177591785917959180591815918259183591845918559186591875918859189591905919159192591935919459195591965919759198591995920059201592025920359204592055920659207592085920959210592115921259213592145921559216592175921859219592205922159222592235922459225592265922759228592295923059231592325923359234592355923659237592385923959240592415924259243592445924559246592475924859249592505925159252592535925459255592565925759258592595926059261592625926359264592655926659267592685926959270592715927259273592745927559276592775927859279592805928159282592835928459285592865928759288592895929059291592925929359294592955929659297592985929959300593015930259303593045930559306593075930859309593105931159312593135931459315593165931759318593195932059321593225932359324593255932659327593285932959330593315933259333593345933559336593375933859339593405934159342593435934459345593465934759348593495935059351593525935359354593555935659357593585935959360593615936259363593645936559366593675936859369593705937159372593735937459375593765937759378593795938059381593825938359384593855938659387593885938959390593915939259393593945939559396593975939859399594005940159402594035940459405594065940759408594095941059411594125941359414594155941659417594185941959420594215942259423594245942559426594275942859429594305943159432594335943459435594365943759438594395944059441594425944359444594455944659447594485944959450594515945259453594545945559456594575945859459594605946159462594635946459465594665946759468594695947059471594725947359474594755947659477594785947959480594815948259483594845948559486594875948859489594905949159492594935949459495594965949759498594995950059501595025950359504595055950659507595085950959510595115951259513595145951559516595175951859519595205952159522595235952459525595265952759528595295953059531595325953359534595355953659537595385953959540595415954259543595445954559546595475954859549595505955159552595535955459555595565955759558595595956059561595625956359564595655956659567595685956959570595715957259573595745957559576595775957859579595805958159582595835958459585595865958759588595895959059591595925959359594595955959659597595985959959600596015960259603596045960559606596075960859609596105961159612596135961459615596165961759618596195962059621596225962359624596255962659627596285962959630596315963259633596345963559636596375963859639596405964159642596435964459645596465964759648596495965059651596525965359654596555965659657596585965959660596615966259663596645966559666596675966859669596705967159672596735967459675596765967759678596795968059681596825968359684596855968659687596885968959690596915969259693596945969559696596975969859699597005970159702597035970459705597065970759708597095971059711597125971359714597155971659717597185971959720597215972259723597245972559726597275972859729597305973159732597335973459735597365973759738597395974059741597425974359744597455974659747597485974959750597515975259753597545975559756597575975859759597605976159762597635976459765597665976759768597695977059771597725977359774597755977659777597785977959780597815978259783597845978559786597875978859789597905979159792597935979459795597965979759798597995980059801598025980359804598055980659807598085980959810598115981259813598145981559816598175981859819598205982159822598235982459825598265982759828598295983059831598325983359834598355983659837598385983959840598415984259843598445984559846598475984859849598505985159852598535985459855598565985759858598595986059861598625986359864598655986659867598685986959870598715987259873598745987559876598775987859879598805988159882598835988459885598865988759888598895989059891598925989359894598955989659897598985989959900599015990259903599045990559906599075990859909599105991159912599135991459915599165991759918599195992059921599225992359924599255992659927599285992959930599315993259933599345993559936599375993859939599405994159942599435994459945599465994759948599495995059951599525995359954599555995659957599585995959960599615996259963599645996559966599675996859969599705997159972599735997459975599765997759978599795998059981599825998359984599855998659987599885998959990599915999259993599945999559996599975999859999600006000160002600036000460005600066000760008600096001060011600126001360014600156001660017600186001960020600216002260023600246002560026600276002860029600306003160032600336003460035600366003760038600396004060041600426004360044600456004660047600486004960050600516005260053600546005560056600576005860059600606006160062600636006460065600666006760068600696007060071600726007360074600756007660077600786007960080600816008260083600846008560086600876008860089600906009160092600936009460095600966009760098600996010060101601026010360104601056010660107601086010960110601116011260113601146011560116601176011860119601206012160122601236012460125601266012760128601296013060131601326013360134601356013660137601386013960140601416014260143601446014560146601476014860149601506015160152601536015460155601566015760158601596016060161601626016360164601656016660167601686016960170601716017260173601746017560176601776017860179601806018160182601836018460185601866018760188601896019060191601926019360194601956019660197601986019960200602016020260203602046020560206602076020860209602106021160212602136021460215602166021760218602196022060221602226022360224602256022660227602286022960230602316023260233602346023560236602376023860239602406024160242602436024460245602466024760248602496025060251602526025360254602556025660257602586025960260602616026260263602646026560266602676026860269602706027160272602736027460275602766027760278602796028060281602826028360284602856028660287602886028960290602916029260293602946029560296602976029860299603006030160302603036030460305603066030760308603096031060311603126031360314603156031660317603186031960320603216032260323603246032560326603276032860329603306033160332603336033460335603366033760338603396034060341603426034360344603456034660347603486034960350603516035260353603546035560356603576035860359603606036160362603636036460365603666036760368603696037060371603726037360374603756037660377603786037960380603816038260383603846038560386603876038860389603906039160392603936039460395603966039760398603996040060401604026040360404604056040660407604086040960410604116041260413604146041560416604176041860419604206042160422604236042460425604266042760428604296043060431604326043360434604356043660437604386043960440604416044260443604446044560446604476044860449604506045160452604536045460455604566045760458604596046060461604626046360464604656046660467604686046960470604716047260473604746047560476604776047860479604806048160482604836048460485604866048760488604896049060491604926049360494604956049660497604986049960500605016050260503605046050560506605076050860509605106051160512605136051460515605166051760518605196052060521605226052360524605256052660527605286052960530605316053260533605346053560536605376053860539605406054160542605436054460545605466054760548605496055060551605526055360554605556055660557605586055960560605616056260563605646056560566605676056860569605706057160572605736057460575605766057760578605796058060581605826058360584605856058660587605886058960590605916059260593605946059560596605976059860599606006060160602606036060460605606066060760608606096061060611606126061360614606156061660617606186061960620606216062260623606246062560626606276062860629606306063160632606336063460635606366063760638606396064060641606426064360644606456064660647606486064960650606516065260653606546065560656606576065860659606606066160662606636066460665606666066760668606696067060671606726067360674606756067660677606786067960680606816068260683606846068560686606876068860689606906069160692606936069460695606966069760698606996070060701607026070360704607056070660707607086070960710607116071260713607146071560716607176071860719607206072160722607236072460725607266072760728607296073060731607326073360734607356073660737607386073960740607416074260743607446074560746607476074860749607506075160752607536075460755607566075760758607596076060761607626076360764607656076660767607686076960770607716077260773607746077560776607776077860779607806078160782607836078460785607866078760788607896079060791607926079360794607956079660797607986079960800608016080260803608046080560806608076080860809608106081160812608136081460815608166081760818608196082060821608226082360824608256082660827608286082960830608316083260833608346083560836608376083860839608406084160842608436084460845608466084760848608496085060851608526085360854608556085660857608586085960860608616086260863608646086560866608676086860869608706087160872608736087460875608766087760878608796088060881608826088360884608856088660887608886088960890608916089260893608946089560896608976089860899609006090160902609036090460905609066090760908609096091060911609126091360914609156091660917609186091960920609216092260923609246092560926609276092860929609306093160932609336093460935609366093760938609396094060941609426094360944609456094660947609486094960950609516095260953609546095560956609576095860959609606096160962609636096460965609666096760968609696097060971609726097360974609756097660977609786097960980609816098260983609846098560986609876098860989609906099160992609936099460995609966099760998609996100061001610026100361004610056100661007610086100961010610116101261013610146101561016610176101861019610206102161022610236102461025610266102761028610296103061031610326103361034610356103661037610386103961040610416104261043610446104561046610476104861049610506105161052610536105461055610566105761058610596106061061610626106361064610656106661067610686106961070610716107261073610746107561076610776107861079610806108161082610836108461085610866108761088610896109061091610926109361094610956109661097610986109961100611016110261103611046110561106611076110861109611106111161112611136111461115611166111761118611196112061121611226112361124611256112661127611286112961130611316113261133611346113561136611376113861139611406114161142611436114461145611466114761148611496115061151611526115361154611556115661157611586115961160611616116261163611646116561166611676116861169611706117161172611736117461175611766117761178611796118061181611826118361184611856118661187611886118961190611916119261193611946119561196611976119861199612006120161202612036120461205612066120761208612096121061211612126121361214612156121661217612186121961220612216122261223612246122561226612276122861229612306123161232612336123461235612366123761238612396124061241612426124361244612456124661247612486124961250612516125261253612546125561256612576125861259612606126161262612636126461265612666126761268612696127061271612726127361274612756127661277612786127961280612816128261283612846128561286612876128861289612906129161292612936129461295612966129761298612996130061301613026130361304613056130661307613086130961310613116131261313613146131561316613176131861319613206132161322613236132461325613266132761328613296133061331613326133361334613356133661337613386133961340613416134261343613446134561346613476134861349613506135161352613536135461355613566135761358613596136061361613626136361364613656136661367613686136961370613716137261373613746137561376613776137861379613806138161382613836138461385613866138761388613896139061391613926139361394613956139661397613986139961400614016140261403614046140561406614076140861409614106141161412614136141461415614166141761418614196142061421614226142361424614256142661427614286142961430614316143261433614346143561436614376143861439614406144161442614436144461445614466144761448614496145061451614526145361454614556145661457614586145961460614616146261463614646146561466614676146861469614706147161472614736147461475614766147761478614796148061481614826148361484614856148661487614886148961490614916149261493614946149561496614976149861499615006150161502615036150461505615066150761508615096151061511615126151361514615156151661517615186151961520615216152261523615246152561526615276152861529615306153161532615336153461535615366153761538615396154061541615426154361544615456154661547615486154961550615516155261553615546155561556615576155861559615606156161562615636156461565615666156761568615696157061571615726157361574615756157661577615786157961580615816158261583615846158561586615876158861589615906159161592615936159461595615966159761598615996160061601616026160361604616056160661607616086160961610616116161261613616146161561616616176161861619616206162161622616236162461625616266162761628616296163061631616326163361634616356163661637616386163961640616416164261643616446164561646616476164861649616506165161652616536165461655616566165761658616596166061661616626166361664616656166661667616686166961670616716167261673616746167561676616776167861679616806168161682616836168461685616866168761688616896169061691616926169361694616956169661697616986169961700617016170261703617046170561706617076170861709617106171161712617136171461715617166171761718617196172061721617226172361724617256172661727617286172961730617316173261733617346173561736617376173861739617406174161742617436174461745617466174761748617496175061751617526175361754617556175661757617586175961760617616176261763617646176561766617676176861769617706177161772617736177461775617766177761778617796178061781617826178361784617856178661787617886178961790617916179261793617946179561796617976179861799618006180161802618036180461805618066180761808618096181061811618126181361814618156181661817618186181961820618216182261823618246182561826618276182861829618306183161832618336183461835618366183761838618396184061841618426184361844618456184661847618486184961850618516185261853618546185561856618576185861859618606186161862618636186461865618666186761868618696187061871618726187361874618756187661877618786187961880618816188261883618846188561886618876188861889618906189161892618936189461895618966189761898618996190061901619026190361904619056190661907619086190961910619116191261913619146191561916619176191861919619206192161922619236192461925619266192761928619296193061931619326193361934619356193661937619386193961940619416194261943619446194561946619476194861949619506195161952619536195461955619566195761958619596196061961619626196361964619656196661967619686196961970619716197261973619746197561976619776197861979619806198161982619836198461985619866198761988619896199061991619926199361994619956199661997619986199962000620016200262003620046200562006620076200862009620106201162012620136201462015620166201762018620196202062021620226202362024620256202662027620286202962030620316203262033620346203562036620376203862039620406204162042620436204462045620466204762048620496205062051620526205362054620556205662057620586205962060620616206262063620646206562066620676206862069620706207162072620736207462075620766207762078620796208062081620826208362084620856208662087620886208962090620916209262093620946209562096620976209862099621006210162102621036210462105621066210762108621096211062111621126211362114621156211662117621186211962120621216212262123621246212562126621276212862129621306213162132621336213462135621366213762138621396214062141621426214362144621456214662147621486214962150621516215262153621546215562156621576215862159621606216162162621636216462165621666216762168621696217062171621726217362174621756217662177621786217962180621816218262183621846218562186621876218862189621906219162192621936219462195621966219762198621996220062201622026220362204622056220662207622086220962210622116221262213622146221562216622176221862219622206222162222622236222462225622266222762228622296223062231622326223362234622356223662237622386223962240622416224262243622446224562246622476224862249622506225162252622536225462255622566225762258622596226062261622626226362264622656226662267622686226962270622716227262273622746227562276622776227862279622806228162282622836228462285622866228762288622896229062291622926229362294622956229662297622986229962300623016230262303623046230562306623076230862309623106231162312623136231462315623166231762318623196232062321623226232362324623256232662327623286232962330623316233262333623346233562336623376233862339623406234162342623436234462345623466234762348623496235062351623526235362354623556235662357623586235962360623616236262363623646236562366623676236862369623706237162372623736237462375623766237762378623796238062381623826238362384623856238662387623886238962390623916239262393623946239562396623976239862399624006240162402624036240462405624066240762408624096241062411624126241362414624156241662417624186241962420624216242262423624246242562426624276242862429624306243162432624336243462435624366243762438624396244062441624426244362444624456244662447624486244962450624516245262453624546245562456624576245862459624606246162462624636246462465624666246762468624696247062471624726247362474624756247662477624786247962480624816248262483624846248562486624876248862489624906249162492624936249462495624966249762498624996250062501625026250362504625056250662507625086250962510625116251262513625146251562516625176251862519625206252162522625236252462525625266252762528625296253062531625326253362534625356253662537625386253962540625416254262543625446254562546625476254862549625506255162552625536255462555625566255762558625596256062561625626256362564625656256662567625686256962570625716257262573625746257562576625776257862579625806258162582625836258462585625866258762588625896259062591625926259362594625956259662597625986259962600626016260262603626046260562606626076260862609626106261162612626136261462615626166261762618626196262062621626226262362624626256262662627626286262962630626316263262633626346263562636626376263862639626406264162642626436264462645626466264762648626496265062651626526265362654626556265662657626586265962660626616266262663626646266562666626676266862669626706267162672626736267462675626766267762678626796268062681626826268362684626856268662687626886268962690626916269262693626946269562696626976269862699627006270162702627036270462705627066270762708627096271062711627126271362714627156271662717627186271962720627216272262723627246272562726627276272862729627306273162732627336273462735627366273762738627396274062741627426274362744627456274662747627486274962750627516275262753627546275562756627576275862759627606276162762627636276462765627666276762768627696277062771627726277362774627756277662777627786277962780627816278262783627846278562786627876278862789627906279162792627936279462795627966279762798627996280062801628026280362804628056280662807628086280962810628116281262813628146281562816628176281862819628206282162822628236282462825628266282762828628296283062831628326283362834628356283662837628386283962840628416284262843628446284562846628476284862849628506285162852628536285462855628566285762858628596286062861628626286362864628656286662867628686286962870628716287262873628746287562876628776287862879628806288162882628836288462885628866288762888628896289062891628926289362894628956289662897628986289962900629016290262903629046290562906629076290862909629106291162912629136291462915629166291762918629196292062921629226292362924629256292662927629286292962930629316293262933629346293562936629376293862939629406294162942629436294462945629466294762948629496295062951629526295362954629556295662957629586295962960629616296262963629646296562966629676296862969629706297162972629736297462975629766297762978629796298062981629826298362984629856298662987629886298962990629916299262993629946299562996629976299862999630006300163002630036300463005630066300763008630096301063011630126301363014630156301663017630186301963020630216302263023630246302563026630276302863029630306303163032630336303463035630366303763038630396304063041630426304363044630456304663047630486304963050630516305263053630546305563056630576305863059630606306163062630636306463065630666306763068630696307063071630726307363074630756307663077630786307963080630816308263083630846308563086630876308863089630906309163092630936309463095630966309763098630996310063101631026310363104631056310663107631086310963110631116311263113631146311563116631176311863119631206312163122631236312463125631266312763128631296313063131631326313363134631356313663137631386313963140631416314263143631446314563146631476314863149631506315163152631536315463155631566315763158631596316063161631626316363164631656316663167631686316963170631716317263173631746317563176631776317863179631806318163182631836318463185631866318763188631896319063191631926319363194631956319663197631986319963200632016320263203632046320563206632076320863209632106321163212632136321463215632166321763218632196322063221632226322363224632256322663227632286322963230632316323263233632346323563236632376323863239632406324163242632436324463245632466324763248632496325063251632526325363254632556325663257632586325963260632616326263263632646326563266632676326863269632706327163272632736327463275632766327763278632796328063281632826328363284632856328663287632886328963290632916329263293632946329563296632976329863299633006330163302633036330463305633066330763308633096331063311633126331363314633156331663317633186331963320633216332263323633246332563326633276332863329633306333163332633336333463335633366333763338633396334063341633426334363344633456334663347633486334963350633516335263353633546335563356633576335863359633606336163362633636336463365633666336763368633696337063371633726337363374633756337663377633786337963380633816338263383633846338563386633876338863389633906339163392633936339463395633966339763398633996340063401634026340363404634056340663407634086340963410634116341263413634146341563416634176341863419634206342163422634236342463425634266342763428634296343063431634326343363434634356343663437634386343963440634416344263443634446344563446634476344863449634506345163452634536345463455634566345763458634596346063461634626346363464634656346663467634686346963470634716347263473634746347563476634776347863479634806348163482634836348463485634866348763488634896349063491634926349363494634956349663497634986349963500635016350263503635046350563506635076350863509635106351163512635136351463515635166351763518635196352063521635226352363524635256352663527635286352963530635316353263533635346353563536635376353863539635406354163542635436354463545635466354763548635496355063551635526355363554635556355663557635586355963560635616356263563635646356563566635676356863569635706357163572635736357463575635766357763578635796358063581635826358363584635856358663587635886358963590635916359263593635946359563596635976359863599636006360163602636036360463605636066360763608636096361063611636126361363614636156361663617636186361963620636216362263623636246362563626636276362863629636306363163632636336363463635636366363763638636396364063641636426364363644636456364663647636486364963650636516365263653636546365563656636576365863659636606366163662636636366463665636666366763668636696367063671636726367363674636756367663677636786367963680636816368263683636846368563686636876368863689636906369163692636936369463695636966369763698636996370063701637026370363704637056370663707637086370963710637116371263713637146371563716637176371863719637206372163722637236372463725637266372763728637296373063731637326373363734637356373663737637386373963740637416374263743637446374563746637476374863749637506375163752637536375463755637566375763758637596376063761637626376363764637656376663767637686376963770637716377263773637746377563776637776377863779637806378163782637836378463785637866378763788637896379063791637926379363794637956379663797637986379963800638016380263803638046380563806638076380863809638106381163812638136381463815638166381763818638196382063821638226382363824638256382663827638286382963830638316383263833638346383563836638376383863839638406384163842638436384463845638466384763848638496385063851638526385363854638556385663857638586385963860638616386263863638646386563866638676386863869638706387163872638736387463875638766387763878638796388063881638826388363884638856388663887638886388963890638916389263893638946389563896638976389863899639006390163902639036390463905639066390763908639096391063911639126391363914639156391663917639186391963920639216392263923639246392563926639276392863929639306393163932639336393463935639366393763938639396394063941639426394363944639456394663947639486394963950639516395263953639546395563956639576395863959639606396163962639636396463965639666396763968639696397063971639726397363974639756397663977639786397963980639816398263983639846398563986639876398863989639906399163992639936399463995639966399763998639996400064001640026400364004640056400664007640086400964010640116401264013640146401564016640176401864019640206402164022640236402464025640266402764028640296403064031640326403364034640356403664037640386403964040640416404264043640446404564046640476404864049640506405164052640536405464055640566405764058640596406064061640626406364064640656406664067640686406964070640716407264073640746407564076640776407864079640806408164082640836408464085640866408764088640896409064091640926409364094640956409664097640986409964100641016410264103641046410564106641076410864109641106411164112641136411464115641166411764118641196412064121641226412364124641256412664127641286412964130641316413264133641346413564136641376413864139641406414164142641436414464145641466414764148641496415064151641526415364154641556415664157641586415964160641616416264163641646416564166641676416864169641706417164172641736417464175641766417764178641796418064181641826418364184641856418664187641886418964190641916419264193641946419564196641976419864199642006420164202642036420464205642066420764208642096421064211642126421364214642156421664217642186421964220642216422264223642246422564226642276422864229642306423164232642336423464235642366423764238642396424064241642426424364244642456424664247642486424964250642516425264253642546425564256642576425864259642606426164262642636426464265642666426764268642696427064271642726427364274642756427664277642786427964280642816428264283642846428564286642876428864289642906429164292642936429464295642966429764298642996430064301643026430364304643056430664307643086430964310643116431264313643146431564316643176431864319643206432164322643236432464325643266432764328643296433064331643326433364334643356433664337643386433964340643416434264343643446434564346643476434864349643506435164352643536435464355643566435764358643596436064361643626436364364643656436664367643686436964370643716437264373643746437564376643776437864379643806438164382643836438464385643866438764388643896439064391643926439364394643956439664397643986439964400644016440264403644046440564406644076440864409644106441164412644136441464415644166441764418644196442064421644226442364424644256442664427644286442964430644316443264433644346443564436644376443864439644406444164442644436444464445644466444764448644496445064451644526445364454644556445664457644586445964460644616446264463644646446564466644676446864469644706447164472644736447464475644766447764478644796448064481644826448364484644856448664487644886448964490644916449264493644946449564496644976449864499645006450164502645036450464505645066450764508645096451064511645126451364514645156451664517645186451964520645216452264523645246452564526645276452864529645306453164532645336453464535645366453764538645396454064541645426454364544645456454664547645486454964550645516455264553645546455564556645576455864559645606456164562645636456464565645666456764568645696457064571645726457364574645756457664577645786457964580645816458264583645846458564586645876458864589645906459164592645936459464595645966459764598645996460064601646026460364604646056460664607646086460964610646116461264613646146461564616646176461864619646206462164622646236462464625646266462764628646296463064631646326463364634646356463664637646386463964640646416464264643646446464564646646476464864649646506465164652646536465464655646566465764658646596466064661646626466364664646656466664667646686466964670646716467264673646746467564676646776467864679646806468164682646836468464685646866468764688646896469064691646926469364694646956469664697646986469964700647016470264703647046470564706647076470864709647106471164712647136471464715647166471764718647196472064721647226472364724647256472664727647286472964730647316473264733647346473564736647376473864739647406474164742647436474464745647466474764748647496475064751647526475364754647556475664757647586475964760647616476264763647646476564766647676476864769647706477164772647736477464775647766477764778647796478064781647826478364784647856478664787647886478964790647916479264793647946479564796647976479864799648006480164802648036480464805648066480764808648096481064811648126481364814648156481664817648186481964820648216482264823648246482564826648276482864829648306483164832648336483464835648366483764838648396484064841648426484364844648456484664847648486484964850648516485264853648546485564856648576485864859648606486164862648636486464865648666486764868648696487064871648726487364874648756487664877648786487964880648816488264883648846488564886648876488864889648906489164892648936489464895648966489764898648996490064901649026490364904649056490664907649086490964910649116491264913649146491564916649176491864919649206492164922649236492464925649266492764928649296493064931649326493364934649356493664937649386493964940649416494264943649446494564946649476494864949649506495164952649536495464955649566495764958649596496064961649626496364964649656496664967649686496964970649716497264973649746497564976649776497864979649806498164982649836498464985649866498764988649896499064991649926499364994649956499664997649986499965000650016500265003650046500565006650076500865009650106501165012650136501465015650166501765018650196502065021650226502365024650256502665027650286502965030650316503265033650346503565036650376503865039650406504165042650436504465045650466504765048650496505065051650526505365054650556505665057650586505965060650616506265063650646506565066650676506865069650706507165072650736507465075650766507765078650796508065081650826508365084650856508665087650886508965090650916509265093650946509565096650976509865099651006510165102651036510465105651066510765108651096511065111651126511365114651156511665117651186511965120651216512265123651246512565126651276512865129651306513165132651336513465135651366513765138651396514065141651426514365144651456514665147651486514965150651516515265153651546515565156651576515865159651606516165162651636516465165651666516765168651696517065171651726517365174651756517665177651786517965180651816518265183651846518565186651876518865189651906519165192651936519465195651966519765198651996520065201652026520365204652056520665207652086520965210652116521265213652146521565216652176521865219652206522165222652236522465225652266522765228652296523065231652326523365234652356523665237652386523965240652416524265243652446524565246652476524865249652506525165252652536525465255652566525765258652596526065261652626526365264652656526665267652686526965270652716527265273652746527565276652776527865279652806528165282652836528465285652866528765288652896529065291652926529365294652956529665297652986529965300653016530265303653046530565306653076530865309653106531165312653136531465315653166531765318653196532065321653226532365324653256532665327653286532965330653316533265333653346533565336653376533865339653406534165342653436534465345653466534765348653496535065351653526535365354653556535665357653586535965360653616536265363653646536565366653676536865369653706537165372653736537465375653766537765378653796538065381653826538365384653856538665387653886538965390653916539265393653946539565396653976539865399654006540165402654036540465405654066540765408654096541065411654126541365414654156541665417654186541965420654216542265423654246542565426654276542865429654306543165432654336543465435654366543765438654396544065441654426544365444654456544665447654486544965450654516545265453654546545565456654576545865459654606546165462654636546465465654666546765468654696547065471654726547365474654756547665477654786547965480654816548265483654846548565486654876548865489654906549165492654936549465495654966549765498654996550065501655026550365504655056550665507655086550965510655116551265513655146551565516655176551865519655206552165522655236552465525655266552765528655296553065531655326553365534655356553665537655386553965540655416554265543655446554565546655476554865549655506555165552655536555465555655566555765558655596556065561655626556365564655656556665567655686556965570655716557265573655746557565576655776557865579655806558165582655836558465585655866558765588655896559065591655926559365594655956559665597655986559965600656016560265603656046560565606656076560865609656106561165612656136561465615656166561765618656196562065621656226562365624656256562665627656286562965630656316563265633656346563565636656376563865639656406564165642656436564465645656466564765648656496565065651656526565365654656556565665657656586565965660656616566265663656646566565666656676566865669656706567165672656736567465675656766567765678656796568065681656826568365684656856568665687656886568965690656916569265693656946569565696656976569865699657006570165702657036570465705657066570765708657096571065711657126571365714657156571665717657186571965720657216572265723657246572565726657276572865729657306573165732657336573465735657366573765738657396574065741657426574365744657456574665747657486574965750657516575265753657546575565756657576575865759657606576165762657636576465765657666576765768657696577065771657726577365774657756577665777657786577965780657816578265783657846578565786657876578865789657906579165792657936579465795657966579765798657996580065801658026580365804658056580665807658086580965810658116581265813658146581565816658176581865819658206582165822658236582465825658266582765828658296583065831658326583365834658356583665837658386583965840658416584265843658446584565846658476584865849658506585165852658536585465855658566585765858658596586065861658626586365864658656586665867658686586965870658716587265873658746587565876658776587865879658806588165882658836588465885658866588765888658896589065891658926589365894658956589665897658986589965900659016590265903659046590565906659076590865909659106591165912659136591465915659166591765918659196592065921659226592365924659256592665927659286592965930659316593265933659346593565936659376593865939659406594165942659436594465945659466594765948659496595065951659526595365954659556595665957659586595965960659616596265963659646596565966659676596865969659706597165972659736597465975659766597765978659796598065981659826598365984659856598665987659886598965990659916599265993659946599565996659976599865999660006600166002660036600466005660066600766008660096601066011660126601366014660156601666017660186601966020660216602266023660246602566026660276602866029660306603166032660336603466035660366603766038660396604066041660426604366044660456604666047660486604966050660516605266053660546605566056660576605866059660606606166062660636606466065660666606766068660696607066071660726607366074660756607666077660786607966080660816608266083660846608566086660876608866089660906609166092660936609466095660966609766098660996610066101661026610366104661056610666107661086610966110661116611266113661146611566116661176611866119661206612166122661236612466125661266612766128661296613066131661326613366134661356613666137661386613966140661416614266143661446614566146661476614866149661506615166152661536615466155661566615766158661596616066161661626616366164661656616666167661686616966170661716617266173661746617566176661776617866179661806618166182661836618466185661866618766188661896619066191661926619366194661956619666197661986619966200662016620266203662046620566206662076620866209662106621166212662136621466215662166621766218662196622066221662226622366224662256622666227662286622966230662316623266233662346623566236662376623866239662406624166242662436624466245662466624766248662496625066251662526625366254662556625666257662586625966260662616626266263662646626566266662676626866269662706627166272662736627466275662766627766278662796628066281662826628366284662856628666287662886628966290662916629266293662946629566296662976629866299663006630166302663036630466305663066630766308663096631066311663126631366314663156631666317663186631966320663216632266323663246632566326663276632866329663306633166332663336633466335663366633766338663396634066341663426634366344663456634666347663486634966350663516635266353663546635566356663576635866359663606636166362663636636466365663666636766368663696637066371663726637366374663756637666377663786637966380663816638266383663846638566386663876638866389663906639166392663936639466395663966639766398663996640066401664026640366404664056640666407664086640966410664116641266413664146641566416664176641866419664206642166422664236642466425664266642766428664296643066431664326643366434664356643666437664386643966440664416644266443664446644566446664476644866449664506645166452664536645466455664566645766458664596646066461664626646366464664656646666467664686646966470664716647266473664746647566476664776647866479664806648166482664836648466485664866648766488664896649066491664926649366494664956649666497664986649966500665016650266503665046650566506665076650866509665106651166512665136651466515665166651766518665196652066521665226652366524665256652666527665286652966530665316653266533665346653566536665376653866539665406654166542665436654466545665466654766548665496655066551665526655366554665556655666557665586655966560665616656266563665646656566566665676656866569665706657166572665736657466575665766657766578665796658066581665826658366584665856658666587665886658966590665916659266593665946659566596665976659866599666006660166602666036660466605666066660766608666096661066611666126661366614666156661666617666186661966620666216662266623666246662566626666276662866629666306663166632666336663466635666366663766638666396664066641666426664366644666456664666647666486664966650666516665266653666546665566656666576665866659666606666166662666636666466665666666666766668666696667066671666726667366674666756667666677666786667966680666816668266683666846668566686666876668866689666906669166692666936669466695666966669766698666996670066701667026670366704667056670666707667086670966710667116671266713667146671566716667176671866719667206672166722667236672466725667266672766728667296673066731667326673366734667356673666737667386673966740667416674266743667446674566746667476674866749667506675166752667536675466755667566675766758667596676066761667626676366764667656676666767667686676966770667716677266773667746677566776667776677866779667806678166782667836678466785667866678766788667896679066791667926679366794667956679666797667986679966800668016680266803668046680566806668076680866809668106681166812668136681466815668166681766818668196682066821668226682366824668256682666827668286682966830668316683266833668346683566836668376683866839668406684166842668436684466845668466684766848668496685066851668526685366854668556685666857668586685966860668616686266863668646686566866668676686866869668706687166872668736687466875668766687766878668796688066881668826688366884668856688666887668886688966890668916689266893668946689566896668976689866899669006690166902669036690466905669066690766908669096691066911669126691366914669156691666917669186691966920669216692266923669246692566926669276692866929669306693166932669336693466935669366693766938669396694066941669426694366944669456694666947669486694966950669516695266953669546695566956669576695866959669606696166962669636696466965669666696766968669696697066971669726697366974669756697666977669786697966980669816698266983669846698566986669876698866989669906699166992669936699466995669966699766998669996700067001670026700367004670056700667007670086700967010670116701267013670146701567016670176701867019670206702167022670236702467025670266702767028670296703067031670326703367034670356703667037670386703967040670416704267043670446704567046670476704867049670506705167052670536705467055670566705767058670596706067061670626706367064670656706667067670686706967070670716707267073670746707567076670776707867079670806708167082670836708467085670866708767088670896709067091670926709367094670956709667097670986709967100671016710267103671046710567106671076710867109671106711167112671136711467115671166711767118671196712067121671226712367124671256712667127671286712967130671316713267133671346713567136671376713867139671406714167142671436714467145671466714767148671496715067151671526715367154671556715667157671586715967160671616716267163671646716567166671676716867169671706717167172671736717467175671766717767178671796718067181671826718367184671856718667187671886718967190671916719267193671946719567196671976719867199672006720167202672036720467205672066720767208672096721067211672126721367214672156721667217672186721967220672216722267223672246722567226672276722867229672306723167232672336723467235672366723767238672396724067241672426724367244672456724667247672486724967250672516725267253672546725567256672576725867259672606726167262672636726467265672666726767268672696727067271672726727367274672756727667277672786727967280672816728267283672846728567286672876728867289672906729167292672936729467295672966729767298672996730067301673026730367304673056730667307673086730967310673116731267313673146731567316673176731867319673206732167322673236732467325673266732767328673296733067331673326733367334673356733667337673386733967340673416734267343673446734567346673476734867349673506735167352673536735467355673566735767358673596736067361673626736367364673656736667367673686736967370673716737267373673746737567376673776737867379673806738167382673836738467385673866738767388673896739067391673926739367394673956739667397673986739967400674016740267403674046740567406674076740867409674106741167412674136741467415674166741767418674196742067421674226742367424674256742667427674286742967430674316743267433674346743567436674376743867439674406744167442674436744467445674466744767448674496745067451674526745367454674556745667457674586745967460674616746267463674646746567466674676746867469674706747167472674736747467475674766747767478674796748067481674826748367484674856748667487674886748967490674916749267493674946749567496674976749867499675006750167502675036750467505675066750767508675096751067511675126751367514675156751667517675186751967520675216752267523675246752567526675276752867529675306753167532675336753467535675366753767538675396754067541675426754367544675456754667547675486754967550675516755267553675546755567556675576755867559675606756167562675636756467565675666756767568675696757067571675726757367574675756757667577675786757967580675816758267583675846758567586675876758867589675906759167592675936759467595675966759767598675996760067601676026760367604676056760667607676086760967610676116761267613676146761567616676176761867619676206762167622676236762467625676266762767628676296763067631676326763367634676356763667637676386763967640676416764267643676446764567646676476764867649676506765167652676536765467655676566765767658676596766067661676626766367664676656766667667676686766967670676716767267673676746767567676676776767867679676806768167682676836768467685676866768767688676896769067691676926769367694676956769667697676986769967700677016770267703677046770567706677076770867709677106771167712677136771467715677166771767718677196772067721677226772367724677256772667727677286772967730677316773267733677346773567736677376773867739677406774167742677436774467745677466774767748677496775067751677526775367754677556775667757677586775967760677616776267763677646776567766677676776867769677706777167772677736777467775677766777767778677796778067781677826778367784677856778667787677886778967790677916779267793677946779567796677976779867799678006780167802678036780467805678066780767808678096781067811678126781367814678156781667817678186781967820678216782267823678246782567826678276782867829678306783167832678336783467835678366783767838678396784067841678426784367844678456784667847678486784967850678516785267853678546785567856678576785867859678606786167862678636786467865678666786767868678696787067871678726787367874678756787667877678786787967880678816788267883678846788567886678876788867889678906789167892678936789467895678966789767898678996790067901679026790367904679056790667907679086790967910679116791267913679146791567916679176791867919679206792167922679236792467925679266792767928679296793067931679326793367934679356793667937679386793967940679416794267943679446794567946679476794867949679506795167952679536795467955679566795767958679596796067961679626796367964679656796667967679686796967970679716797267973679746797567976679776797867979679806798167982679836798467985679866798767988679896799067991679926799367994679956799667997679986799968000680016800268003680046800568006680076800868009680106801168012680136801468015680166801768018680196802068021680226802368024680256802668027680286802968030680316803268033680346803568036680376803868039680406804168042680436804468045680466804768048680496805068051680526805368054680556805668057680586805968060680616806268063680646806568066680676806868069680706807168072680736807468075680766807768078680796808068081680826808368084680856808668087680886808968090680916809268093680946809568096680976809868099681006810168102681036810468105681066810768108681096811068111681126811368114681156811668117681186811968120681216812268123681246812568126681276812868129681306813168132681336813468135681366813768138681396814068141681426814368144681456814668147681486814968150681516815268153681546815568156681576815868159681606816168162681636816468165681666816768168681696817068171681726817368174681756817668177681786817968180681816818268183681846818568186681876818868189681906819168192681936819468195681966819768198681996820068201682026820368204682056820668207682086820968210682116821268213682146821568216682176821868219682206822168222682236822468225682266822768228682296823068231682326823368234682356823668237682386823968240682416824268243682446824568246682476824868249682506825168252682536825468255682566825768258682596826068261682626826368264682656826668267682686826968270682716827268273682746827568276682776827868279682806828168282682836828468285682866828768288682896829068291682926829368294682956829668297682986829968300683016830268303683046830568306683076830868309683106831168312683136831468315683166831768318683196832068321683226832368324683256832668327683286832968330683316833268333683346833568336683376833868339683406834168342683436834468345683466834768348683496835068351683526835368354683556835668357683586835968360683616836268363683646836568366683676836868369683706837168372683736837468375683766837768378683796838068381683826838368384683856838668387683886838968390683916839268393683946839568396683976839868399684006840168402684036840468405684066840768408684096841068411684126841368414684156841668417684186841968420684216842268423684246842568426684276842868429684306843168432684336843468435684366843768438684396844068441684426844368444684456844668447684486844968450684516845268453684546845568456684576845868459684606846168462684636846468465684666846768468684696847068471684726847368474684756847668477684786847968480684816848268483684846848568486684876848868489684906849168492684936849468495684966849768498684996850068501685026850368504685056850668507685086850968510685116851268513685146851568516685176851868519685206852168522685236852468525685266852768528685296853068531685326853368534685356853668537685386853968540685416854268543685446854568546685476854868549685506855168552685536855468555685566855768558685596856068561685626856368564685656856668567685686856968570685716857268573685746857568576685776857868579685806858168582685836858468585685866858768588685896859068591685926859368594685956859668597685986859968600686016860268603686046860568606686076860868609686106861168612686136861468615686166861768618686196862068621686226862368624686256862668627686286862968630686316863268633686346863568636686376863868639686406864168642686436864468645686466864768648686496865068651686526865368654686556865668657686586865968660686616866268663686646866568666686676866868669686706867168672686736867468675686766867768678686796868068681686826868368684686856868668687686886868968690686916869268693686946869568696686976869868699687006870168702687036870468705687066870768708687096871068711687126871368714687156871668717687186871968720687216872268723687246872568726687276872868729687306873168732687336873468735687366873768738687396874068741687426874368744687456874668747687486874968750687516875268753687546875568756687576875868759687606876168762687636876468765687666876768768687696877068771687726877368774687756877668777687786877968780687816878268783687846878568786687876878868789687906879168792687936879468795687966879768798687996880068801688026880368804688056880668807688086880968810688116881268813688146881568816688176881868819688206882168822688236882468825688266882768828688296883068831688326883368834688356883668837688386883968840688416884268843688446884568846688476884868849688506885168852688536885468855688566885768858688596886068861688626886368864688656886668867688686886968870688716887268873688746887568876688776887868879688806888168882688836888468885688866888768888688896889068891688926889368894688956889668897688986889968900689016890268903689046890568906689076890868909689106891168912689136891468915689166891768918689196892068921689226892368924689256892668927689286892968930689316893268933689346893568936689376893868939689406894168942689436894468945689466894768948689496895068951689526895368954689556895668957689586895968960689616896268963689646896568966689676896868969689706897168972689736897468975689766897768978689796898068981689826898368984689856898668987689886898968990689916899268993689946899568996689976899868999690006900169002690036900469005690066900769008690096901069011690126901369014690156901669017690186901969020690216902269023690246902569026690276902869029690306903169032690336903469035690366903769038690396904069041690426904369044690456904669047690486904969050690516905269053690546905569056690576905869059690606906169062690636906469065690666906769068690696907069071690726907369074690756907669077690786907969080690816908269083690846908569086690876908869089690906909169092690936909469095690966909769098690996910069101691026910369104691056910669107691086910969110691116911269113691146911569116691176911869119691206912169122691236912469125691266912769128691296913069131691326913369134691356913669137691386913969140691416914269143691446914569146691476914869149691506915169152691536915469155691566915769158691596916069161691626916369164691656916669167691686916969170691716917269173691746917569176691776917869179691806918169182691836918469185691866918769188691896919069191691926919369194691956919669197691986919969200692016920269203692046920569206692076920869209692106921169212692136921469215692166921769218692196922069221692226922369224692256922669227692286922969230692316923269233692346923569236692376923869239692406924169242692436924469245692466924769248692496925069251692526925369254692556925669257692586925969260692616926269263692646926569266692676926869269692706927169272692736927469275692766927769278692796928069281692826928369284692856928669287692886928969290692916929269293692946929569296692976929869299693006930169302693036930469305693066930769308693096931069311693126931369314693156931669317693186931969320693216932269323693246932569326693276932869329693306933169332693336933469335693366933769338693396934069341693426934369344693456934669347693486934969350693516935269353693546935569356693576935869359693606936169362693636936469365693666936769368693696937069371693726937369374693756937669377693786937969380693816938269383693846938569386693876938869389693906939169392693936939469395693966939769398693996940069401694026940369404694056940669407694086940969410694116941269413694146941569416694176941869419694206942169422694236942469425694266942769428694296943069431694326943369434694356943669437694386943969440694416944269443694446944569446694476944869449694506945169452694536945469455694566945769458694596946069461694626946369464694656946669467694686946969470694716947269473694746947569476694776947869479694806948169482694836948469485694866948769488694896949069491694926949369494694956949669497694986949969500695016950269503695046950569506695076950869509695106951169512695136951469515695166951769518695196952069521695226952369524695256952669527695286952969530695316953269533695346953569536695376953869539695406954169542695436954469545695466954769548695496955069551695526955369554695556955669557695586955969560695616956269563695646956569566695676956869569695706957169572695736957469575695766957769578695796958069581695826958369584695856958669587695886958969590695916959269593695946959569596695976959869599696006960169602696036960469605696066960769608696096961069611696126961369614696156961669617696186961969620696216962269623696246962569626696276962869629696306963169632696336963469635696366963769638696396964069641696426964369644696456964669647696486964969650696516965269653696546965569656696576965869659696606966169662696636966469665696666966769668696696967069671696726967369674696756967669677696786967969680696816968269683696846968569686696876968869689696906969169692696936969469695696966969769698696996970069701697026970369704697056970669707697086970969710697116971269713697146971569716697176971869719697206972169722697236972469725697266972769728697296973069731697326973369734697356973669737697386973969740697416974269743697446974569746697476974869749697506975169752697536975469755697566975769758697596976069761697626976369764697656976669767697686976969770697716977269773697746977569776697776977869779697806978169782697836978469785697866978769788697896979069791697926979369794697956979669797697986979969800698016980269803698046980569806698076980869809698106981169812698136981469815698166981769818698196982069821698226982369824698256982669827698286982969830698316983269833698346983569836698376983869839698406984169842698436984469845698466984769848698496985069851698526985369854698556985669857698586985969860698616986269863698646986569866698676986869869698706987169872698736987469875698766987769878698796988069881698826988369884698856988669887698886988969890698916989269893698946989569896698976989869899699006990169902699036990469905699066990769908699096991069911699126991369914699156991669917699186991969920699216992269923699246992569926699276992869929699306993169932699336993469935699366993769938699396994069941699426994369944699456994669947699486994969950699516995269953699546995569956699576995869959699606996169962699636996469965699666996769968699696997069971699726997369974699756997669977699786997969980699816998269983699846998569986699876998869989699906999169992699936999469995699966999769998699997000070001700027000370004700057000670007700087000970010700117001270013700147001570016700177001870019700207002170022700237002470025700267002770028700297003070031700327003370034700357003670037700387003970040700417004270043700447004570046700477004870049700507005170052700537005470055700567005770058700597006070061700627006370064700657006670067700687006970070700717007270073700747007570076700777007870079700807008170082700837008470085700867008770088700897009070091700927009370094700957009670097700987009970100701017010270103701047010570106701077010870109701107011170112701137011470115701167011770118701197012070121701227012370124701257012670127701287012970130701317013270133701347013570136701377013870139701407014170142701437014470145701467014770148701497015070151701527015370154701557015670157701587015970160701617016270163701647016570166701677016870169701707017170172701737017470175701767017770178701797018070181701827018370184701857018670187701887018970190701917019270193701947019570196701977019870199702007020170202702037020470205702067020770208702097021070211702127021370214702157021670217702187021970220702217022270223702247022570226702277022870229702307023170232702337023470235702367023770238702397024070241702427024370244702457024670247702487024970250702517025270253702547025570256702577025870259702607026170262702637026470265702667026770268702697027070271702727027370274702757027670277702787027970280702817028270283702847028570286702877028870289702907029170292702937029470295702967029770298702997030070301703027030370304703057030670307703087030970310703117031270313703147031570316703177031870319703207032170322703237032470325703267032770328703297033070331703327033370334703357033670337703387033970340703417034270343703447034570346703477034870349703507035170352703537035470355703567035770358703597036070361703627036370364703657036670367703687036970370703717037270373703747037570376703777037870379703807038170382703837038470385703867038770388703897039070391703927039370394703957039670397703987039970400704017040270403704047040570406704077040870409704107041170412704137041470415704167041770418704197042070421704227042370424704257042670427704287042970430704317043270433704347043570436704377043870439704407044170442704437044470445704467044770448704497045070451704527045370454704557045670457704587045970460704617046270463704647046570466704677046870469704707047170472704737047470475704767047770478704797048070481704827048370484704857048670487704887048970490704917049270493704947049570496704977049870499705007050170502705037050470505705067050770508705097051070511705127051370514705157051670517705187051970520705217052270523705247052570526705277052870529705307053170532705337053470535705367053770538705397054070541705427054370544705457054670547705487054970550705517055270553705547055570556705577055870559705607056170562705637056470565705667056770568705697057070571705727057370574705757057670577705787057970580705817058270583705847058570586705877058870589705907059170592705937059470595705967059770598705997060070601706027060370604706057060670607706087060970610706117061270613706147061570616706177061870619706207062170622706237062470625706267062770628706297063070631706327063370634706357063670637706387063970640706417064270643706447064570646706477064870649706507065170652706537065470655706567065770658706597066070661706627066370664706657066670667706687066970670706717067270673706747067570676706777067870679706807068170682706837068470685706867068770688706897069070691706927069370694706957069670697706987069970700707017070270703707047070570706707077070870709707107071170712707137071470715707167071770718707197072070721707227072370724707257072670727707287072970730707317073270733707347073570736707377073870739707407074170742707437074470745707467074770748707497075070751707527075370754707557075670757707587075970760707617076270763707647076570766707677076870769707707077170772707737077470775707767077770778707797078070781707827078370784707857078670787707887078970790707917079270793707947079570796707977079870799708007080170802708037080470805708067080770808708097081070811708127081370814708157081670817708187081970820708217082270823708247082570826708277082870829708307083170832708337083470835708367083770838708397084070841708427084370844708457084670847708487084970850708517085270853708547085570856708577085870859708607086170862708637086470865708667086770868708697087070871708727087370874708757087670877708787087970880708817088270883708847088570886708877088870889708907089170892708937089470895708967089770898708997090070901709027090370904709057090670907709087090970910709117091270913709147091570916709177091870919709207092170922709237092470925709267092770928709297093070931709327093370934709357093670937709387093970940709417094270943709447094570946709477094870949709507095170952709537095470955709567095770958709597096070961709627096370964709657096670967709687096970970709717097270973709747097570976709777097870979709807098170982709837098470985709867098770988709897099070991709927099370994709957099670997709987099971000710017100271003710047100571006710077100871009710107101171012710137101471015710167101771018710197102071021710227102371024710257102671027710287102971030710317103271033710347103571036710377103871039710407104171042710437104471045710467104771048710497105071051710527105371054710557105671057710587105971060710617106271063710647106571066710677106871069710707107171072710737107471075710767107771078710797108071081710827108371084710857108671087710887108971090710917109271093710947109571096710977109871099711007110171102711037110471105711067110771108711097111071111711127111371114711157111671117711187111971120711217112271123711247112571126711277112871129711307113171132711337113471135711367113771138711397114071141711427114371144711457114671147711487114971150711517115271153711547115571156711577115871159711607116171162711637116471165711667116771168711697117071171711727117371174711757117671177711787117971180711817118271183711847118571186711877118871189711907119171192711937119471195711967119771198711997120071201712027120371204712057120671207712087120971210712117121271213712147121571216712177121871219712207122171222712237122471225712267122771228712297123071231712327123371234712357123671237712387123971240712417124271243712447124571246712477124871249712507125171252712537125471255712567125771258712597126071261712627126371264712657126671267712687126971270712717127271273712747127571276712777127871279712807128171282712837128471285712867128771288712897129071291712927129371294712957129671297712987129971300713017130271303713047130571306713077130871309713107131171312713137131471315713167131771318713197132071321713227132371324713257132671327713287132971330713317133271333713347133571336713377133871339713407134171342713437134471345713467134771348713497135071351713527135371354713557135671357713587135971360713617136271363713647136571366713677136871369713707137171372713737137471375713767137771378713797138071381713827138371384713857138671387713887138971390713917139271393713947139571396713977139871399714007140171402714037140471405714067140771408714097141071411714127141371414714157141671417714187141971420714217142271423714247142571426714277142871429714307143171432714337143471435714367143771438714397144071441714427144371444714457144671447714487144971450714517145271453714547145571456714577145871459714607146171462714637146471465714667146771468714697147071471714727147371474714757147671477714787147971480714817148271483714847148571486714877148871489714907149171492714937149471495714967149771498714997150071501715027150371504715057150671507715087150971510715117151271513715147151571516715177151871519715207152171522715237152471525715267152771528715297153071531715327153371534715357153671537715387153971540715417154271543715447154571546715477154871549715507155171552715537155471555715567155771558715597156071561715627156371564715657156671567715687156971570715717157271573715747157571576715777157871579715807158171582715837158471585715867158771588715897159071591715927159371594715957159671597715987159971600716017160271603716047160571606716077160871609716107161171612716137161471615716167161771618716197162071621716227162371624716257162671627716287162971630716317163271633716347163571636716377163871639716407164171642716437164471645716467164771648716497165071651716527165371654716557165671657716587165971660716617166271663716647166571666716677166871669716707167171672716737167471675716767167771678716797168071681716827168371684716857168671687716887168971690716917169271693716947169571696716977169871699717007170171702717037170471705717067170771708717097171071711717127171371714717157171671717717187171971720717217172271723717247172571726717277172871729717307173171732717337173471735717367173771738717397174071741717427174371744717457174671747717487174971750717517175271753717547175571756717577175871759717607176171762717637176471765717667176771768717697177071771717727177371774717757177671777717787177971780717817178271783717847178571786717877178871789717907179171792717937179471795717967179771798717997180071801718027180371804718057180671807718087180971810718117181271813718147181571816718177181871819718207182171822718237182471825718267182771828718297183071831718327183371834718357183671837718387183971840718417184271843718447184571846718477184871849718507185171852718537185471855718567185771858718597186071861718627186371864718657186671867718687186971870718717187271873718747187571876718777187871879718807188171882718837188471885718867188771888718897189071891718927189371894718957189671897718987189971900719017190271903719047190571906719077190871909719107191171912719137191471915719167191771918719197192071921719227192371924719257192671927719287192971930719317193271933719347193571936719377193871939719407194171942719437194471945719467194771948719497195071951719527195371954719557195671957719587195971960719617196271963719647196571966719677196871969719707197171972719737197471975719767197771978719797198071981719827198371984719857198671987719887198971990719917199271993719947199571996719977199871999720007200172002720037200472005720067200772008720097201072011720127201372014720157201672017720187201972020720217202272023720247202572026720277202872029720307203172032720337203472035720367203772038720397204072041720427204372044720457204672047720487204972050720517205272053720547205572056720577205872059720607206172062720637206472065720667206772068720697207072071720727207372074720757207672077720787207972080720817208272083720847208572086720877208872089720907209172092720937209472095720967209772098720997210072101721027210372104721057210672107721087210972110721117211272113721147211572116721177211872119721207212172122721237212472125721267212772128721297213072131721327213372134721357213672137721387213972140721417214272143721447214572146721477214872149721507215172152721537215472155721567215772158721597216072161721627216372164721657216672167721687216972170721717217272173721747217572176721777217872179721807218172182721837218472185721867218772188721897219072191721927219372194721957219672197721987219972200722017220272203722047220572206722077220872209722107221172212722137221472215722167221772218722197222072221722227222372224722257222672227722287222972230722317223272233722347223572236722377223872239722407224172242722437224472245722467224772248722497225072251722527225372254722557225672257722587225972260722617226272263722647226572266722677226872269722707227172272722737227472275722767227772278722797228072281722827228372284722857228672287722887228972290722917229272293722947229572296722977229872299723007230172302723037230472305723067230772308723097231072311723127231372314723157231672317723187231972320723217232272323723247232572326723277232872329723307233172332723337233472335723367233772338723397234072341723427234372344723457234672347723487234972350723517235272353723547235572356723577235872359723607236172362723637236472365723667236772368723697237072371723727237372374723757237672377723787237972380723817238272383723847238572386723877238872389723907239172392723937239472395723967239772398723997240072401724027240372404724057240672407724087240972410724117241272413724147241572416724177241872419724207242172422724237242472425724267242772428724297243072431724327243372434724357243672437724387243972440724417244272443724447244572446724477244872449724507245172452724537245472455724567245772458724597246072461724627246372464724657246672467724687246972470724717247272473724747247572476724777247872479724807248172482724837248472485724867248772488724897249072491724927249372494724957249672497724987249972500725017250272503725047250572506725077250872509725107251172512725137251472515725167251772518725197252072521725227252372524725257252672527725287252972530725317253272533725347253572536725377253872539725407254172542725437254472545725467254772548725497255072551725527255372554725557255672557725587255972560725617256272563725647256572566725677256872569725707257172572725737257472575725767257772578725797258072581725827258372584725857258672587725887258972590725917259272593725947259572596725977259872599726007260172602726037260472605726067260772608726097261072611726127261372614726157261672617726187261972620726217262272623726247262572626726277262872629726307263172632726337263472635726367263772638726397264072641726427264372644726457264672647726487264972650726517265272653726547265572656726577265872659726607266172662726637266472665726667266772668726697267072671726727267372674726757267672677726787267972680726817268272683726847268572686726877268872689726907269172692726937269472695726967269772698726997270072701727027270372704727057270672707727087270972710727117271272713727147271572716727177271872719727207272172722727237272472725727267272772728727297273072731727327273372734727357273672737727387273972740727417274272743727447274572746727477274872749727507275172752727537275472755727567275772758727597276072761727627276372764727657276672767727687276972770727717277272773727747277572776727777277872779727807278172782727837278472785727867278772788727897279072791727927279372794727957279672797727987279972800728017280272803728047280572806728077280872809728107281172812728137281472815728167281772818728197282072821728227282372824728257282672827728287282972830728317283272833728347283572836728377283872839728407284172842728437284472845728467284772848728497285072851728527285372854728557285672857728587285972860728617286272863728647286572866728677286872869728707287172872728737287472875728767287772878728797288072881728827288372884728857288672887728887288972890728917289272893728947289572896728977289872899729007290172902729037290472905729067290772908729097291072911729127291372914729157291672917729187291972920729217292272923729247292572926729277292872929729307293172932729337293472935729367293772938729397294072941729427294372944729457294672947729487294972950729517295272953729547295572956729577295872959729607296172962729637296472965729667296772968729697297072971729727297372974729757297672977729787297972980729817298272983729847298572986729877298872989729907299172992729937299472995729967299772998729997300073001730027300373004730057300673007730087300973010730117301273013730147301573016730177301873019730207302173022730237302473025730267302773028730297303073031730327303373034730357303673037730387303973040730417304273043730447304573046730477304873049730507305173052730537305473055730567305773058730597306073061730627306373064730657306673067730687306973070730717307273073730747307573076730777307873079730807308173082730837308473085730867308773088730897309073091730927309373094730957309673097730987309973100731017310273103731047310573106731077310873109731107311173112731137311473115731167311773118731197312073121731227312373124731257312673127731287312973130731317313273133731347313573136731377313873139731407314173142731437314473145731467314773148731497315073151731527315373154731557315673157731587315973160731617316273163731647316573166731677316873169731707317173172731737317473175731767317773178731797318073181731827318373184731857318673187731887318973190731917319273193731947319573196731977319873199732007320173202732037320473205732067320773208732097321073211732127321373214732157321673217732187321973220732217322273223732247322573226732277322873229732307323173232732337323473235732367323773238732397324073241732427324373244732457324673247732487324973250732517325273253732547325573256732577325873259732607326173262732637326473265732667326773268732697327073271732727327373274732757327673277732787327973280732817328273283732847328573286732877328873289732907329173292732937329473295732967329773298732997330073301733027330373304733057330673307733087330973310733117331273313733147331573316733177331873319733207332173322733237332473325733267332773328733297333073331733327333373334733357333673337733387333973340733417334273343733447334573346733477334873349733507335173352733537335473355733567335773358733597336073361733627336373364733657336673367733687336973370733717337273373733747337573376733777337873379733807338173382733837338473385733867338773388733897339073391733927339373394733957339673397733987339973400734017340273403734047340573406734077340873409734107341173412734137341473415734167341773418734197342073421734227342373424734257342673427734287342973430734317343273433734347343573436734377343873439734407344173442734437344473445734467344773448734497345073451734527345373454734557345673457734587345973460734617346273463734647346573466734677346873469734707347173472734737347473475734767347773478734797348073481734827348373484734857348673487734887348973490734917349273493734947349573496734977349873499735007350173502735037350473505735067350773508735097351073511735127351373514735157351673517735187351973520735217352273523735247352573526735277352873529735307353173532735337353473535735367353773538735397354073541735427354373544735457354673547735487354973550735517355273553735547355573556735577355873559735607356173562735637356473565735667356773568735697357073571735727357373574735757357673577735787357973580735817358273583735847358573586735877358873589735907359173592735937359473595735967359773598735997360073601736027360373604736057360673607736087360973610736117361273613736147361573616736177361873619736207362173622736237362473625736267362773628736297363073631736327363373634736357363673637736387363973640736417364273643736447364573646736477364873649736507365173652736537365473655736567365773658736597366073661736627366373664736657366673667736687366973670736717367273673736747367573676736777367873679736807368173682736837368473685736867368773688736897369073691736927369373694736957369673697736987369973700737017370273703737047370573706737077370873709737107371173712737137371473715737167371773718737197372073721737227372373724737257372673727737287372973730737317373273733737347373573736737377373873739737407374173742737437374473745737467374773748737497375073751737527375373754737557375673757737587375973760737617376273763737647376573766737677376873769737707377173772737737377473775737767377773778737797378073781737827378373784737857378673787737887378973790737917379273793737947379573796737977379873799738007380173802738037380473805738067380773808738097381073811738127381373814738157381673817738187381973820738217382273823738247382573826738277382873829738307383173832738337383473835738367383773838738397384073841738427384373844738457384673847738487384973850738517385273853738547385573856738577385873859738607386173862738637386473865738667386773868738697387073871738727387373874738757387673877738787387973880738817388273883738847388573886738877388873889738907389173892738937389473895738967389773898738997390073901739027390373904739057390673907739087390973910739117391273913739147391573916739177391873919739207392173922739237392473925739267392773928739297393073931739327393373934739357393673937739387393973940739417394273943739447394573946739477394873949739507395173952739537395473955739567395773958739597396073961739627396373964739657396673967739687396973970739717397273973739747397573976739777397873979739807398173982739837398473985739867398773988739897399073991739927399373994739957399673997739987399974000740017400274003740047400574006740077400874009740107401174012740137401474015740167401774018740197402074021740227402374024740257402674027740287402974030740317403274033740347403574036740377403874039740407404174042740437404474045740467404774048740497405074051740527405374054740557405674057740587405974060740617406274063740647406574066740677406874069740707407174072740737407474075740767407774078740797408074081740827408374084740857408674087740887408974090740917409274093740947409574096740977409874099741007410174102741037410474105741067410774108741097411074111741127411374114741157411674117741187411974120741217412274123741247412574126741277412874129741307413174132741337413474135741367413774138741397414074141741427414374144741457414674147741487414974150741517415274153741547415574156741577415874159741607416174162741637416474165741667416774168741697417074171741727417374174741757417674177741787417974180741817418274183741847418574186741877418874189741907419174192741937419474195741967419774198741997420074201742027420374204742057420674207742087420974210742117421274213742147421574216742177421874219742207422174222742237422474225742267422774228742297423074231742327423374234742357423674237742387423974240742417424274243742447424574246742477424874249742507425174252742537425474255742567425774258742597426074261742627426374264742657426674267742687426974270742717427274273742747427574276742777427874279742807428174282742837428474285742867428774288742897429074291742927429374294742957429674297742987429974300743017430274303743047430574306743077430874309743107431174312743137431474315743167431774318743197432074321743227432374324743257432674327743287432974330743317433274333743347433574336743377433874339743407434174342743437434474345743467434774348743497435074351743527435374354743557435674357743587435974360743617436274363743647436574366743677436874369743707437174372743737437474375743767437774378743797438074381743827438374384743857438674387743887438974390743917439274393743947439574396743977439874399744007440174402744037440474405744067440774408744097441074411744127441374414744157441674417744187441974420744217442274423744247442574426744277442874429744307443174432744337443474435744367443774438744397444074441744427444374444744457444674447744487444974450744517445274453744547445574456744577445874459744607446174462744637446474465744667446774468744697447074471744727447374474744757447674477744787447974480744817448274483744847448574486744877448874489744907449174492744937449474495744967449774498744997450074501745027450374504745057450674507745087450974510745117451274513745147451574516745177451874519745207452174522745237452474525745267452774528745297453074531745327453374534745357453674537745387453974540745417454274543745447454574546745477454874549745507455174552745537455474555745567455774558745597456074561745627456374564745657456674567745687456974570745717457274573745747457574576745777457874579745807458174582745837458474585745867458774588745897459074591745927459374594745957459674597745987459974600746017460274603746047460574606746077460874609746107461174612746137461474615746167461774618746197462074621746227462374624746257462674627746287462974630746317463274633746347463574636746377463874639746407464174642746437464474645746467464774648746497465074651746527465374654746557465674657746587465974660746617466274663746647466574666746677466874669746707467174672746737467474675746767467774678746797468074681746827468374684746857468674687746887468974690746917469274693746947469574696746977469874699747007470174702747037470474705747067470774708747097471074711747127471374714747157471674717747187471974720747217472274723747247472574726747277472874729747307473174732747337473474735747367473774738747397474074741747427474374744747457474674747747487474974750747517475274753747547475574756747577475874759747607476174762747637476474765747667476774768747697477074771747727477374774747757477674777747787477974780747817478274783747847478574786747877478874789747907479174792747937479474795747967479774798747997480074801748027480374804748057480674807748087480974810748117481274813748147481574816748177481874819748207482174822748237482474825748267482774828748297483074831748327483374834748357483674837748387483974840748417484274843748447484574846748477484874849748507485174852748537485474855748567485774858748597486074861748627486374864748657486674867748687486974870748717487274873748747487574876748777487874879748807488174882748837488474885748867488774888748897489074891748927489374894748957489674897748987489974900749017490274903749047490574906749077490874909749107491174912749137491474915749167491774918749197492074921749227492374924749257492674927749287492974930749317493274933749347493574936749377493874939749407494174942749437494474945749467494774948749497495074951749527495374954749557495674957749587495974960749617496274963749647496574966749677496874969749707497174972749737497474975749767497774978749797498074981749827498374984749857498674987749887498974990749917499274993749947499574996749977499874999750007500175002750037500475005750067500775008750097501075011750127501375014750157501675017750187501975020750217502275023750247502575026750277502875029750307503175032750337503475035750367503775038750397504075041750427504375044750457504675047750487504975050750517505275053750547505575056750577505875059750607506175062750637506475065750667506775068750697507075071750727507375074750757507675077750787507975080750817508275083750847508575086750877508875089750907509175092750937509475095750967509775098750997510075101751027510375104751057510675107751087510975110751117511275113751147511575116751177511875119751207512175122751237512475125751267512775128751297513075131751327513375134751357513675137751387513975140751417514275143751447514575146751477514875149751507515175152751537515475155751567515775158751597516075161751627516375164751657516675167751687516975170751717517275173751747517575176751777517875179751807518175182751837518475185751867518775188751897519075191751927519375194751957519675197751987519975200752017520275203752047520575206752077520875209752107521175212752137521475215752167521775218752197522075221752227522375224752257522675227752287522975230752317523275233752347523575236752377523875239752407524175242752437524475245752467524775248752497525075251752527525375254752557525675257752587525975260752617526275263752647526575266752677526875269752707527175272752737527475275752767527775278752797528075281752827528375284752857528675287752887528975290752917529275293752947529575296752977529875299753007530175302753037530475305753067530775308753097531075311753127531375314753157531675317753187531975320753217532275323753247532575326753277532875329753307533175332753337533475335753367533775338753397534075341753427534375344753457534675347753487534975350753517535275353753547535575356753577535875359753607536175362753637536475365753667536775368753697537075371753727537375374753757537675377753787537975380753817538275383753847538575386753877538875389753907539175392753937539475395753967539775398753997540075401754027540375404754057540675407754087540975410754117541275413754147541575416754177541875419754207542175422754237542475425754267542775428754297543075431754327543375434754357543675437754387543975440754417544275443754447544575446754477544875449754507545175452754537545475455754567545775458754597546075461754627546375464754657546675467754687546975470754717547275473754747547575476754777547875479754807548175482754837548475485754867548775488754897549075491754927549375494754957549675497754987549975500755017550275503755047550575506755077550875509755107551175512755137551475515755167551775518755197552075521755227552375524755257552675527755287552975530755317553275533755347553575536755377553875539755407554175542755437554475545755467554775548755497555075551755527555375554755557555675557755587555975560755617556275563755647556575566755677556875569755707557175572755737557475575755767557775578755797558075581755827558375584755857558675587755887558975590755917559275593755947559575596755977559875599756007560175602756037560475605756067560775608756097561075611756127561375614756157561675617756187561975620756217562275623756247562575626756277562875629756307563175632756337563475635756367563775638756397564075641756427564375644756457564675647756487564975650756517565275653756547565575656756577565875659756607566175662756637566475665756667566775668756697567075671756727567375674756757567675677756787567975680756817568275683756847568575686756877568875689756907569175692756937569475695756967569775698756997570075701757027570375704757057570675707757087570975710757117571275713757147571575716757177571875719757207572175722757237572475725757267572775728757297573075731757327573375734757357573675737757387573975740757417574275743757447574575746757477574875749757507575175752757537575475755757567575775758757597576075761757627576375764757657576675767757687576975770757717577275773757747577575776757777577875779757807578175782757837578475785757867578775788757897579075791757927579375794757957579675797757987579975800758017580275803758047580575806758077580875809758107581175812758137581475815758167581775818758197582075821758227582375824758257582675827758287582975830758317583275833758347583575836758377583875839758407584175842758437584475845758467584775848758497585075851758527585375854758557585675857758587585975860758617586275863758647586575866758677586875869758707587175872758737587475875758767587775878758797588075881758827588375884758857588675887758887588975890758917589275893758947589575896758977589875899759007590175902759037590475905759067590775908759097591075911759127591375914759157591675917759187591975920759217592275923759247592575926759277592875929759307593175932759337593475935759367593775938759397594075941759427594375944759457594675947759487594975950759517595275953759547595575956759577595875959759607596175962759637596475965759667596775968759697597075971759727597375974759757597675977759787597975980759817598275983759847598575986759877598875989759907599175992759937599475995759967599775998759997600076001760027600376004760057600676007760087600976010760117601276013760147601576016760177601876019760207602176022760237602476025760267602776028760297603076031760327603376034760357603676037760387603976040760417604276043760447604576046760477604876049760507605176052760537605476055760567605776058760597606076061760627606376064760657606676067760687606976070760717607276073760747607576076760777607876079760807608176082760837608476085760867608776088760897609076091760927609376094760957609676097760987609976100761017610276103761047610576106761077610876109761107611176112761137611476115761167611776118761197612076121761227612376124761257612676127761287612976130761317613276133761347613576136761377613876139761407614176142761437614476145761467614776148761497615076151761527615376154761557615676157761587615976160761617616276163761647616576166761677616876169761707617176172761737617476175761767617776178761797618076181761827618376184761857618676187761887618976190761917619276193761947619576196761977619876199762007620176202762037620476205762067620776208762097621076211762127621376214762157621676217762187621976220762217622276223762247622576226762277622876229762307623176232762337623476235762367623776238762397624076241762427624376244762457624676247762487624976250762517625276253762547625576256762577625876259762607626176262762637626476265762667626776268762697627076271762727627376274762757627676277762787627976280762817628276283762847628576286762877628876289762907629176292762937629476295762967629776298762997630076301763027630376304763057630676307763087630976310763117631276313763147631576316763177631876319763207632176322763237632476325763267632776328763297633076331763327633376334763357633676337763387633976340763417634276343763447634576346763477634876349763507635176352763537635476355763567635776358763597636076361763627636376364763657636676367763687636976370763717637276373763747637576376763777637876379763807638176382763837638476385763867638776388763897639076391763927639376394763957639676397763987639976400764017640276403764047640576406764077640876409764107641176412764137641476415764167641776418764197642076421764227642376424764257642676427764287642976430764317643276433764347643576436764377643876439764407644176442764437644476445764467644776448764497645076451764527645376454764557645676457764587645976460764617646276463764647646576466764677646876469764707647176472764737647476475764767647776478764797648076481764827648376484764857648676487764887648976490764917649276493764947649576496764977649876499765007650176502765037650476505765067650776508765097651076511765127651376514765157651676517765187651976520765217652276523765247652576526765277652876529765307653176532765337653476535765367653776538765397654076541765427654376544765457654676547765487654976550765517655276553765547655576556765577655876559765607656176562765637656476565765667656776568765697657076571765727657376574765757657676577765787657976580765817658276583765847658576586765877658876589765907659176592765937659476595765967659776598765997660076601766027660376604766057660676607766087660976610766117661276613766147661576616766177661876619766207662176622766237662476625766267662776628766297663076631766327663376634766357663676637766387663976640766417664276643766447664576646766477664876649766507665176652766537665476655766567665776658766597666076661766627666376664766657666676667766687666976670766717667276673766747667576676766777667876679766807668176682766837668476685766867668776688766897669076691766927669376694766957669676697766987669976700767017670276703767047670576706767077670876709767107671176712767137671476715767167671776718767197672076721767227672376724767257672676727767287672976730767317673276733767347673576736767377673876739767407674176742767437674476745767467674776748767497675076751767527675376754767557675676757767587675976760767617676276763767647676576766767677676876769767707677176772767737677476775767767677776778767797678076781767827678376784767857678676787767887678976790767917679276793767947679576796767977679876799768007680176802768037680476805768067680776808768097681076811768127681376814768157681676817768187681976820768217682276823768247682576826768277682876829768307683176832768337683476835768367683776838768397684076841768427684376844768457684676847768487684976850768517685276853768547685576856768577685876859768607686176862768637686476865768667686776868768697687076871768727687376874768757687676877768787687976880768817688276883768847688576886768877688876889768907689176892768937689476895768967689776898768997690076901769027690376904769057690676907769087690976910769117691276913769147691576916769177691876919769207692176922769237692476925769267692776928769297693076931769327693376934769357693676937769387693976940769417694276943769447694576946769477694876949769507695176952769537695476955769567695776958769597696076961769627696376964769657696676967769687696976970769717697276973769747697576976769777697876979769807698176982769837698476985769867698776988769897699076991769927699376994769957699676997769987699977000770017700277003770047700577006770077700877009770107701177012770137701477015770167701777018770197702077021770227702377024770257702677027770287702977030770317703277033770347703577036770377703877039770407704177042770437704477045770467704777048770497705077051770527705377054770557705677057770587705977060770617706277063770647706577066770677706877069770707707177072770737707477075770767707777078770797708077081770827708377084770857708677087770887708977090770917709277093770947709577096770977709877099771007710177102771037710477105771067710777108771097711077111771127711377114771157711677117771187711977120771217712277123771247712577126771277712877129771307713177132771337713477135771367713777138771397714077141771427714377144771457714677147771487714977150771517715277153771547715577156771577715877159771607716177162771637716477165771667716777168771697717077171771727717377174771757717677177771787717977180771817718277183771847718577186771877718877189771907719177192771937719477195771967719777198771997720077201772027720377204772057720677207772087720977210772117721277213772147721577216772177721877219772207722177222772237722477225772267722777228772297723077231772327723377234772357723677237772387723977240772417724277243772447724577246772477724877249772507725177252772537725477255772567725777258772597726077261772627726377264772657726677267772687726977270772717727277273772747727577276772777727877279772807728177282772837728477285772867728777288772897729077291772927729377294772957729677297772987729977300773017730277303773047730577306773077730877309773107731177312773137731477315773167731777318773197732077321773227732377324773257732677327773287732977330773317733277333773347733577336773377733877339773407734177342773437734477345773467734777348773497735077351773527735377354773557735677357773587735977360773617736277363773647736577366773677736877369773707737177372773737737477375773767737777378773797738077381773827738377384773857738677387773887738977390773917739277393773947739577396773977739877399774007740177402774037740477405774067740777408774097741077411774127741377414774157741677417774187741977420774217742277423774247742577426774277742877429774307743177432774337743477435774367743777438774397744077441774427744377444774457744677447774487744977450774517745277453774547745577456774577745877459774607746177462774637746477465774667746777468774697747077471774727747377474774757747677477774787747977480774817748277483774847748577486774877748877489774907749177492774937749477495774967749777498774997750077501775027750377504775057750677507775087750977510775117751277513775147751577516775177751877519775207752177522775237752477525775267752777528775297753077531775327753377534775357753677537775387753977540775417754277543775447754577546775477754877549775507755177552775537755477555775567755777558775597756077561775627756377564775657756677567775687756977570775717757277573775747757577576775777757877579775807758177582775837758477585775867758777588775897759077591775927759377594775957759677597775987759977600776017760277603776047760577606776077760877609776107761177612776137761477615776167761777618776197762077621776227762377624776257762677627776287762977630776317763277633776347763577636776377763877639776407764177642776437764477645776467764777648776497765077651776527765377654776557765677657776587765977660776617766277663776647766577666776677766877669776707767177672776737767477675776767767777678776797768077681776827768377684776857768677687776887768977690776917769277693776947769577696776977769877699777007770177702777037770477705777067770777708777097771077711777127771377714777157771677717777187771977720777217772277723777247772577726777277772877729777307773177732777337773477735777367773777738777397774077741777427774377744777457774677747777487774977750777517775277753777547775577756777577775877759777607776177762777637776477765777667776777768777697777077771777727777377774777757777677777777787777977780777817778277783777847778577786777877778877789777907779177792777937779477795777967779777798777997780077801778027780377804778057780677807778087780977810778117781277813778147781577816778177781877819778207782177822778237782477825778267782777828778297783077831778327783377834778357783677837778387783977840778417784277843778447784577846778477784877849778507785177852778537785477855778567785777858778597786077861778627786377864778657786677867778687786977870778717787277873778747787577876778777787877879778807788177882778837788477885778867788777888778897789077891778927789377894778957789677897778987789977900779017790277903779047790577906779077790877909779107791177912779137791477915779167791777918779197792077921779227792377924779257792677927779287792977930779317793277933779347793577936779377793877939779407794177942779437794477945779467794777948779497795077951779527795377954779557795677957779587795977960779617796277963779647796577966779677796877969779707797177972779737797477975779767797777978779797798077981779827798377984779857798677987779887798977990779917799277993779947799577996779977799877999780007800178002780037800478005780067800778008780097801078011780127801378014780157801678017780187801978020780217802278023780247802578026780277802878029780307803178032780337803478035780367803778038780397804078041780427804378044780457804678047780487804978050780517805278053780547805578056780577805878059780607806178062780637806478065780667806778068780697807078071780727807378074780757807678077780787807978080780817808278083780847808578086780877808878089780907809178092780937809478095780967809778098780997810078101781027810378104781057810678107781087810978110781117811278113781147811578116781177811878119781207812178122781237812478125781267812778128781297813078131781327813378134781357813678137781387813978140781417814278143781447814578146781477814878149781507815178152781537815478155781567815778158781597816078161781627816378164781657816678167781687816978170781717817278173781747817578176781777817878179781807818178182781837818478185781867818778188781897819078191781927819378194781957819678197781987819978200782017820278203782047820578206782077820878209782107821178212782137821478215782167821778218782197822078221782227822378224782257822678227782287822978230782317823278233782347823578236782377823878239782407824178242782437824478245782467824778248782497825078251782527825378254782557825678257782587825978260782617826278263782647826578266782677826878269782707827178272782737827478275782767827778278782797828078281782827828378284782857828678287782887828978290782917829278293782947829578296782977829878299783007830178302783037830478305783067830778308783097831078311783127831378314783157831678317783187831978320783217832278323783247832578326783277832878329783307833178332783337833478335783367833778338783397834078341783427834378344783457834678347783487834978350783517835278353783547835578356783577835878359783607836178362783637836478365783667836778368783697837078371783727837378374783757837678377783787837978380783817838278383783847838578386783877838878389783907839178392783937839478395783967839778398783997840078401784027840378404784057840678407784087840978410784117841278413784147841578416784177841878419784207842178422784237842478425784267842778428784297843078431784327843378434784357843678437784387843978440784417844278443784447844578446784477844878449784507845178452784537845478455784567845778458784597846078461784627846378464784657846678467784687846978470784717847278473784747847578476784777847878479784807848178482784837848478485784867848778488784897849078491784927849378494784957849678497784987849978500785017850278503785047850578506785077850878509785107851178512785137851478515785167851778518785197852078521785227852378524785257852678527785287852978530785317853278533785347853578536785377853878539785407854178542785437854478545785467854778548785497855078551785527855378554785557855678557785587855978560785617856278563785647856578566785677856878569785707857178572785737857478575785767857778578785797858078581785827858378584785857858678587785887858978590785917859278593785947859578596785977859878599786007860178602786037860478605786067860778608786097861078611786127861378614786157861678617786187861978620786217862278623786247862578626786277862878629786307863178632786337863478635786367863778638786397864078641786427864378644786457864678647786487864978650786517865278653786547865578656786577865878659786607866178662786637866478665786667866778668786697867078671786727867378674786757867678677786787867978680786817868278683786847868578686786877868878689786907869178692786937869478695786967869778698786997870078701787027870378704787057870678707787087870978710787117871278713787147871578716787177871878719787207872178722787237872478725787267872778728787297873078731787327873378734787357873678737787387873978740787417874278743787447874578746787477874878749787507875178752787537875478755787567875778758787597876078761787627876378764787657876678767787687876978770787717877278773787747877578776787777877878779787807878178782787837878478785787867878778788787897879078791787927879378794787957879678797787987879978800788017880278803788047880578806788077880878809788107881178812788137881478815788167881778818788197882078821788227882378824788257882678827788287882978830788317883278833788347883578836788377883878839788407884178842788437884478845788467884778848788497885078851788527885378854788557885678857788587885978860788617886278863788647886578866788677886878869788707887178872788737887478875788767887778878788797888078881788827888378884788857888678887788887888978890788917889278893788947889578896788977889878899789007890178902789037890478905789067890778908789097891078911789127891378914789157891678917789187891978920789217892278923789247892578926789277892878929789307893178932789337893478935789367893778938789397894078941789427894378944789457894678947789487894978950789517895278953789547895578956789577895878959789607896178962789637896478965789667896778968789697897078971789727897378974789757897678977789787897978980789817898278983789847898578986789877898878989789907899178992789937899478995789967899778998789997900079001790027900379004790057900679007790087900979010790117901279013790147901579016790177901879019790207902179022790237902479025790267902779028790297903079031790327903379034790357903679037790387903979040790417904279043790447904579046790477904879049790507905179052790537905479055790567905779058790597906079061790627906379064790657906679067790687906979070790717907279073790747907579076790777907879079790807908179082790837908479085790867908779088790897909079091790927909379094790957909679097790987909979100791017910279103791047910579106791077910879109791107911179112791137911479115791167911779118791197912079121791227912379124791257912679127791287912979130791317913279133791347913579136791377913879139791407914179142791437914479145791467914779148791497915079151791527915379154791557915679157791587915979160791617916279163791647916579166791677916879169791707917179172791737917479175791767917779178791797918079181791827918379184791857918679187791887918979190791917919279193791947919579196791977919879199792007920179202792037920479205792067920779208792097921079211792127921379214792157921679217792187921979220792217922279223792247922579226792277922879229792307923179232792337923479235792367923779238792397924079241792427924379244792457924679247792487924979250792517925279253792547925579256792577925879259792607926179262792637926479265792667926779268792697927079271792727927379274792757927679277792787927979280792817928279283792847928579286792877928879289792907929179292792937929479295792967929779298792997930079301793027930379304793057930679307793087930979310793117931279313793147931579316793177931879319793207932179322793237932479325793267932779328793297933079331793327933379334793357933679337793387933979340793417934279343793447934579346793477934879349793507935179352793537935479355793567935779358793597936079361793627936379364793657936679367793687936979370793717937279373793747937579376793777937879379793807938179382793837938479385793867938779388793897939079391793927939379394793957939679397793987939979400794017940279403794047940579406794077940879409794107941179412794137941479415794167941779418794197942079421794227942379424794257942679427794287942979430794317943279433794347943579436794377943879439794407944179442794437944479445794467944779448794497945079451794527945379454794557945679457794587945979460794617946279463794647946579466794677946879469794707947179472794737947479475794767947779478794797948079481794827948379484794857948679487794887948979490794917949279493794947949579496794977949879499795007950179502795037950479505795067950779508795097951079511795127951379514795157951679517795187951979520795217952279523795247952579526795277952879529795307953179532795337953479535795367953779538795397954079541795427954379544795457954679547795487954979550795517955279553795547955579556795577955879559795607956179562795637956479565795667956779568795697957079571795727957379574795757957679577795787957979580795817958279583795847958579586795877958879589795907959179592795937959479595795967959779598795997960079601796027960379604796057960679607796087960979610796117961279613796147961579616796177961879619796207962179622796237962479625796267962779628796297963079631796327963379634796357963679637796387963979640796417964279643796447964579646796477964879649796507965179652796537965479655796567965779658796597966079661796627966379664796657966679667796687966979670796717967279673796747967579676796777967879679796807968179682796837968479685796867968779688796897969079691796927969379694796957969679697796987969979700797017970279703797047970579706797077970879709797107971179712797137971479715797167971779718797197972079721797227972379724797257972679727797287972979730797317973279733797347973579736797377973879739797407974179742797437974479745797467974779748797497975079751797527975379754797557975679757797587975979760797617976279763797647976579766797677976879769797707977179772797737977479775797767977779778797797978079781797827978379784797857978679787797887978979790797917979279793797947979579796797977979879799798007980179802798037980479805798067980779808798097981079811798127981379814798157981679817798187981979820798217982279823798247982579826798277982879829798307983179832798337983479835798367983779838798397984079841798427984379844798457984679847798487984979850798517985279853798547985579856798577985879859798607986179862798637986479865798667986779868798697987079871798727987379874798757987679877798787987979880798817988279883798847988579886798877988879889798907989179892798937989479895798967989779898798997990079901799027990379904799057990679907799087990979910799117991279913799147991579916799177991879919799207992179922799237992479925799267992779928799297993079931799327993379934799357993679937799387993979940799417994279943799447994579946799477994879949799507995179952799537995479955799567995779958799597996079961799627996379964799657996679967799687996979970799717997279973799747997579976799777997879979799807998179982799837998479985799867998779988799897999079991799927999379994799957999679997799987999980000800018000280003800048000580006800078000880009800108001180012800138001480015800168001780018800198002080021800228002380024800258002680027800288002980030800318003280033800348003580036800378003880039800408004180042800438004480045800468004780048800498005080051800528005380054800558005680057800588005980060800618006280063800648006580066800678006880069800708007180072800738007480075800768007780078800798008080081800828008380084800858008680087800888008980090800918009280093800948009580096800978009880099801008010180102801038010480105801068010780108801098011080111801128011380114801158011680117801188011980120801218012280123801248012580126801278012880129801308013180132801338013480135801368013780138801398014080141801428014380144801458014680147801488014980150801518015280153801548015580156801578015880159801608016180162801638016480165801668016780168801698017080171801728017380174801758017680177801788017980180801818018280183801848018580186801878018880189801908019180192801938019480195801968019780198801998020080201802028020380204802058020680207802088020980210802118021280213802148021580216802178021880219802208022180222802238022480225802268022780228802298023080231802328023380234802358023680237802388023980240802418024280243802448024580246802478024880249802508025180252802538025480255802568025780258802598026080261802628026380264802658026680267802688026980270802718027280273802748027580276802778027880279802808028180282802838028480285802868028780288802898029080291802928029380294802958029680297802988029980300803018030280303803048030580306803078030880309803108031180312803138031480315803168031780318803198032080321803228032380324803258032680327803288032980330803318033280333803348033580336803378033880339803408034180342803438034480345803468034780348803498035080351803528035380354803558035680357803588035980360803618036280363803648036580366803678036880369803708037180372803738037480375803768037780378803798038080381803828038380384803858038680387803888038980390803918039280393803948039580396803978039880399804008040180402804038040480405804068040780408804098041080411804128041380414804158041680417804188041980420804218042280423804248042580426804278042880429804308043180432804338043480435804368043780438804398044080441804428044380444804458044680447804488044980450804518045280453804548045580456804578045880459804608046180462804638046480465804668046780468804698047080471804728047380474804758047680477804788047980480804818048280483804848048580486804878048880489804908049180492804938049480495804968049780498804998050080501805028050380504805058050680507805088050980510805118051280513805148051580516805178051880519805208052180522805238052480525805268052780528805298053080531805328053380534805358053680537805388053980540805418054280543805448054580546805478054880549805508055180552805538055480555805568055780558805598056080561805628056380564805658056680567805688056980570805718057280573805748057580576805778057880579805808058180582805838058480585805868058780588805898059080591805928059380594805958059680597805988059980600806018060280603806048060580606806078060880609806108061180612806138061480615806168061780618806198062080621806228062380624806258062680627806288062980630806318063280633806348063580636806378063880639806408064180642806438064480645806468064780648806498065080651806528065380654806558065680657806588065980660806618066280663806648066580666806678066880669806708067180672806738067480675806768067780678806798068080681806828068380684806858068680687806888068980690806918069280693806948069580696806978069880699807008070180702807038070480705807068070780708807098071080711807128071380714807158071680717807188071980720807218072280723807248072580726807278072880729807308073180732807338073480735807368073780738807398074080741807428074380744807458074680747807488074980750807518075280753807548075580756807578075880759807608076180762807638076480765807668076780768807698077080771807728077380774807758077680777807788077980780807818078280783807848078580786807878078880789807908079180792807938079480795807968079780798807998080080801808028080380804808058080680807808088080980810808118081280813808148081580816808178081880819808208082180822808238082480825808268082780828808298083080831808328083380834808358083680837808388083980840808418084280843808448084580846808478084880849808508085180852808538085480855808568085780858808598086080861808628086380864808658086680867808688086980870808718087280873808748087580876808778087880879808808088180882808838088480885808868088780888808898089080891808928089380894808958089680897808988089980900809018090280903809048090580906809078090880909809108091180912809138091480915809168091780918809198092080921809228092380924809258092680927809288092980930809318093280933809348093580936809378093880939809408094180942809438094480945809468094780948809498095080951809528095380954809558095680957809588095980960809618096280963809648096580966809678096880969809708097180972809738097480975809768097780978809798098080981809828098380984809858098680987809888098980990809918099280993809948099580996809978099880999810008100181002810038100481005810068100781008810098101081011810128101381014810158101681017810188101981020810218102281023810248102581026810278102881029810308103181032810338103481035810368103781038810398104081041810428104381044810458104681047810488104981050810518105281053810548105581056810578105881059810608106181062810638106481065810668106781068810698107081071810728107381074810758107681077810788107981080810818108281083810848108581086810878108881089810908109181092810938109481095810968109781098810998110081101811028110381104811058110681107811088110981110811118111281113811148111581116811178111881119811208112181122811238112481125811268112781128811298113081131811328113381134811358113681137811388113981140811418114281143811448114581146811478114881149811508115181152811538115481155811568115781158811598116081161811628116381164811658116681167811688116981170811718117281173811748117581176811778117881179811808118181182811838118481185811868118781188811898119081191811928119381194811958119681197811988119981200812018120281203812048120581206812078120881209812108121181212812138121481215812168121781218812198122081221812228122381224812258122681227812288122981230812318123281233812348123581236812378123881239812408124181242812438124481245812468124781248812498125081251812528125381254812558125681257812588125981260812618126281263812648126581266812678126881269812708127181272812738127481275812768127781278812798128081281812828128381284812858128681287812888128981290812918129281293812948129581296812978129881299813008130181302813038130481305813068130781308813098131081311813128131381314813158131681317813188131981320813218132281323813248132581326813278132881329813308133181332813338133481335813368133781338813398134081341813428134381344813458134681347813488134981350813518135281353813548135581356813578135881359813608136181362813638136481365813668136781368813698137081371813728137381374813758137681377813788137981380813818138281383813848138581386813878138881389813908139181392813938139481395813968139781398813998140081401814028140381404814058140681407814088140981410814118141281413814148141581416814178141881419814208142181422814238142481425814268142781428814298143081431814328143381434814358143681437814388143981440814418144281443814448144581446814478144881449814508145181452814538145481455814568145781458814598146081461814628146381464814658146681467814688146981470814718147281473814748147581476814778147881479814808148181482814838148481485814868148781488814898149081491814928149381494814958149681497814988149981500815018150281503815048150581506815078150881509815108151181512815138151481515815168151781518815198152081521815228152381524815258152681527815288152981530815318153281533815348153581536815378153881539815408154181542815438154481545815468154781548815498155081551815528155381554815558155681557815588155981560815618156281563815648156581566815678156881569815708157181572815738157481575815768157781578815798158081581815828158381584815858158681587815888158981590815918159281593815948159581596815978159881599816008160181602816038160481605816068160781608816098161081611816128161381614816158161681617816188161981620816218162281623816248162581626816278162881629816308163181632816338163481635816368163781638816398164081641816428164381644816458164681647816488164981650816518165281653816548165581656816578165881659816608166181662816638166481665816668166781668816698167081671816728167381674816758167681677816788167981680816818168281683816848168581686816878168881689816908169181692816938169481695816968169781698816998170081701817028170381704817058170681707817088170981710817118171281713817148171581716817178171881719817208172181722817238172481725817268172781728817298173081731817328173381734817358173681737817388173981740817418174281743817448174581746817478174881749817508175181752817538175481755817568175781758817598176081761817628176381764817658176681767817688176981770817718177281773817748177581776817778177881779817808178181782817838178481785817868178781788817898179081791817928179381794817958179681797817988179981800818018180281803818048180581806818078180881809818108181181812818138181481815818168181781818818198182081821818228182381824818258182681827818288182981830818318183281833818348183581836818378183881839818408184181842818438184481845818468184781848818498185081851818528185381854818558185681857818588185981860818618186281863818648186581866818678186881869818708187181872818738187481875818768187781878818798188081881818828188381884818858188681887818888188981890818918189281893818948189581896818978189881899819008190181902819038190481905819068190781908819098191081911819128191381914819158191681917819188191981920819218192281923819248192581926819278192881929819308193181932819338193481935819368193781938819398194081941819428194381944819458194681947819488194981950819518195281953819548195581956819578195881959819608196181962819638196481965819668196781968819698197081971819728197381974819758197681977819788197981980819818198281983819848198581986819878198881989819908199181992819938199481995819968199781998819998200082001820028200382004820058200682007820088200982010820118201282013820148201582016820178201882019820208202182022820238202482025820268202782028820298203082031820328203382034820358203682037820388203982040820418204282043820448204582046820478204882049820508205182052820538205482055820568205782058820598206082061820628206382064820658206682067820688206982070820718207282073820748207582076820778207882079820808208182082820838208482085820868208782088820898209082091820928209382094820958209682097820988209982100821018210282103821048210582106821078210882109821108211182112821138211482115821168211782118821198212082121821228212382124821258212682127821288212982130821318213282133821348213582136821378213882139821408214182142821438214482145821468214782148821498215082151821528215382154821558215682157821588215982160821618216282163821648216582166821678216882169821708217182172821738217482175821768217782178821798218082181821828218382184821858218682187821888218982190821918219282193821948219582196821978219882199822008220182202822038220482205822068220782208822098221082211822128221382214822158221682217822188221982220822218222282223822248222582226822278222882229822308223182232822338223482235822368223782238822398224082241822428224382244822458224682247822488224982250822518225282253822548225582256822578225882259822608226182262822638226482265822668226782268822698227082271822728227382274822758227682277822788227982280822818228282283822848228582286822878228882289822908229182292822938229482295822968229782298822998230082301823028230382304823058230682307823088230982310823118231282313823148231582316823178231882319823208232182322823238232482325823268232782328823298233082331823328233382334823358233682337823388233982340823418234282343823448234582346823478234882349823508235182352823538235482355823568235782358823598236082361823628236382364823658236682367823688236982370823718237282373823748237582376823778237882379823808238182382823838238482385823868238782388823898239082391823928239382394823958239682397823988239982400824018240282403824048240582406824078240882409824108241182412824138241482415824168241782418824198242082421824228242382424824258242682427824288242982430824318243282433824348243582436824378243882439824408244182442824438244482445824468244782448824498245082451824528245382454824558245682457824588245982460824618246282463824648246582466824678246882469824708247182472824738247482475824768247782478824798248082481824828248382484824858248682487824888248982490824918249282493824948249582496824978249882499825008250182502825038250482505825068250782508825098251082511825128251382514825158251682517825188251982520825218252282523825248252582526825278252882529825308253182532825338253482535825368253782538825398254082541825428254382544825458254682547825488254982550825518255282553825548255582556825578255882559825608256182562825638256482565825668256782568825698257082571825728257382574825758257682577825788257982580825818258282583825848258582586825878258882589825908259182592825938259482595825968259782598825998260082601826028260382604826058260682607826088260982610826118261282613826148261582616826178261882619826208262182622826238262482625826268262782628826298263082631826328263382634826358263682637826388263982640826418264282643826448264582646826478264882649826508265182652826538265482655826568265782658826598266082661826628266382664826658266682667826688266982670826718267282673826748267582676826778267882679826808268182682826838268482685826868268782688826898269082691826928269382694826958269682697826988269982700827018270282703827048270582706827078270882709827108271182712827138271482715827168271782718827198272082721827228272382724827258272682727827288272982730827318273282733827348273582736827378273882739827408274182742827438274482745827468274782748827498275082751827528275382754827558275682757827588275982760827618276282763827648276582766827678276882769827708277182772827738277482775827768277782778827798278082781827828278382784827858278682787827888278982790827918279282793827948279582796827978279882799828008280182802828038280482805828068280782808828098281082811828128281382814828158281682817828188281982820828218282282823828248282582826828278282882829828308283182832828338283482835828368283782838828398284082841828428284382844828458284682847828488284982850828518285282853828548285582856828578285882859828608286182862828638286482865828668286782868828698287082871828728287382874828758287682877828788287982880828818288282883828848288582886828878288882889828908289182892828938289482895828968289782898828998290082901829028290382904829058290682907829088290982910829118291282913829148291582916829178291882919829208292182922829238292482925829268292782928829298293082931829328293382934829358293682937829388293982940829418294282943829448294582946829478294882949829508295182952829538295482955829568295782958829598296082961829628296382964829658296682967829688296982970829718297282973829748297582976829778297882979829808298182982829838298482985829868298782988829898299082991829928299382994829958299682997829988299983000830018300283003830048300583006830078300883009830108301183012830138301483015830168301783018830198302083021830228302383024830258302683027830288302983030830318303283033830348303583036830378303883039830408304183042830438304483045830468304783048830498305083051830528305383054830558305683057830588305983060830618306283063830648306583066830678306883069830708307183072830738307483075830768307783078830798308083081830828308383084830858308683087830888308983090830918309283093830948309583096830978309883099831008310183102831038310483105831068310783108831098311083111831128311383114831158311683117831188311983120831218312283123831248312583126831278312883129831308313183132831338313483135831368313783138831398314083141831428314383144831458314683147831488314983150831518315283153831548315583156831578315883159831608316183162831638316483165831668316783168831698317083171831728317383174831758317683177831788317983180831818318283183831848318583186831878318883189831908319183192831938319483195831968319783198831998320083201832028320383204832058320683207832088320983210832118321283213832148321583216832178321883219832208322183222832238322483225832268322783228832298323083231832328323383234832358323683237832388323983240832418324283243832448324583246832478324883249832508325183252832538325483255832568325783258832598326083261832628326383264832658326683267832688326983270832718327283273832748327583276832778327883279832808328183282832838328483285832868328783288832898329083291832928329383294832958329683297832988329983300833018330283303833048330583306833078330883309833108331183312833138331483315833168331783318833198332083321833228332383324833258332683327833288332983330833318333283333833348333583336833378333883339833408334183342833438334483345833468334783348833498335083351833528335383354833558335683357833588335983360833618336283363833648336583366833678336883369833708337183372833738337483375833768337783378833798338083381833828338383384833858338683387833888338983390833918339283393833948339583396833978339883399834008340183402834038340483405834068340783408834098341083411834128341383414834158341683417834188341983420834218342283423834248342583426834278342883429834308343183432834338343483435834368343783438834398344083441834428344383444834458344683447834488344983450834518345283453834548345583456834578345883459834608346183462834638346483465834668346783468834698347083471834728347383474834758347683477834788347983480834818348283483834848348583486834878348883489834908349183492834938349483495834968349783498834998350083501835028350383504835058350683507835088350983510835118351283513835148351583516835178351883519835208352183522835238352483525835268352783528835298353083531835328353383534835358353683537835388353983540835418354283543835448354583546835478354883549835508355183552835538355483555835568355783558835598356083561835628356383564835658356683567835688356983570835718357283573835748357583576835778357883579835808358183582835838358483585835868358783588835898359083591835928359383594835958359683597835988359983600836018360283603836048360583606836078360883609836108361183612836138361483615836168361783618836198362083621836228362383624836258362683627836288362983630836318363283633836348363583636836378363883639836408364183642836438364483645836468364783648836498365083651836528365383654836558365683657836588365983660836618366283663836648366583666836678366883669836708367183672836738367483675836768367783678836798368083681836828368383684836858368683687836888368983690836918369283693836948369583696836978369883699837008370183702837038370483705837068370783708837098371083711837128371383714837158371683717837188371983720837218372283723837248372583726837278372883729837308373183732837338373483735837368373783738837398374083741837428374383744837458374683747837488374983750837518375283753837548375583756837578375883759837608376183762837638376483765837668376783768837698377083771837728377383774837758377683777837788377983780837818378283783837848378583786837878378883789837908379183792837938379483795837968379783798837998380083801838028380383804838058380683807838088380983810838118381283813838148381583816838178381883819838208382183822838238382483825838268382783828838298383083831838328383383834838358383683837838388383983840838418384283843838448384583846838478384883849838508385183852838538385483855838568385783858838598386083861838628386383864838658386683867838688386983870838718387283873838748387583876838778387883879838808388183882838838388483885838868388783888838898389083891838928389383894838958389683897838988389983900839018390283903839048390583906839078390883909839108391183912839138391483915839168391783918839198392083921839228392383924839258392683927839288392983930839318393283933839348393583936839378393883939839408394183942839438394483945839468394783948839498395083951839528395383954839558395683957839588395983960839618396283963839648396583966839678396883969839708397183972839738397483975839768397783978839798398083981839828398383984839858398683987839888398983990839918399283993839948399583996839978399883999840008400184002840038400484005840068400784008840098401084011840128401384014840158401684017840188401984020840218402284023840248402584026840278402884029840308403184032840338403484035840368403784038840398404084041840428404384044840458404684047840488404984050840518405284053840548405584056840578405884059840608406184062840638406484065840668406784068840698407084071840728407384074840758407684077840788407984080840818408284083840848408584086840878408884089840908409184092840938409484095840968409784098840998410084101841028410384104841058410684107841088410984110841118411284113841148411584116841178411884119841208412184122841238412484125841268412784128841298413084131841328413384134841358413684137841388413984140841418414284143841448414584146841478414884149841508415184152841538415484155841568415784158841598416084161841628416384164841658416684167841688416984170841718417284173841748417584176841778417884179841808418184182841838418484185841868418784188841898419084191841928419384194841958419684197841988419984200842018420284203842048420584206842078420884209842108421184212842138421484215842168421784218842198422084221842228422384224842258422684227842288422984230842318423284233842348423584236842378423884239842408424184242842438424484245842468424784248842498425084251842528425384254842558425684257842588425984260842618426284263842648426584266842678426884269842708427184272842738427484275842768427784278842798428084281842828428384284842858428684287842888428984290842918429284293842948429584296842978429884299843008430184302843038430484305843068430784308843098431084311843128431384314843158431684317843188431984320843218432284323843248432584326843278432884329843308433184332843338433484335843368433784338843398434084341843428434384344843458434684347843488434984350843518435284353843548435584356843578435884359843608436184362843638436484365843668436784368843698437084371843728437384374843758437684377843788437984380843818438284383843848438584386843878438884389843908439184392843938439484395843968439784398843998440084401844028440384404844058440684407844088440984410844118441284413844148441584416844178441884419844208442184422844238442484425844268442784428844298443084431844328443384434844358443684437844388443984440844418444284443844448444584446844478444884449844508445184452844538445484455844568445784458844598446084461844628446384464844658446684467844688446984470844718447284473844748447584476844778447884479844808448184482844838448484485844868448784488844898449084491844928449384494844958449684497844988449984500845018450284503845048450584506845078450884509845108451184512845138451484515845168451784518845198452084521845228452384524845258452684527845288452984530845318453284533845348453584536845378453884539845408454184542845438454484545845468454784548845498455084551845528455384554845558455684557845588455984560845618456284563845648456584566845678456884569845708457184572845738457484575845768457784578845798458084581845828458384584845858458684587845888458984590845918459284593845948459584596845978459884599846008460184602846038460484605846068460784608846098461084611846128461384614846158461684617846188461984620846218462284623846248462584626846278462884629846308463184632846338463484635846368463784638846398464084641846428464384644846458464684647846488464984650846518465284653846548465584656846578465884659846608466184662846638466484665846668466784668846698467084671846728467384674846758467684677846788467984680846818468284683846848468584686846878468884689846908469184692846938469484695846968469784698846998470084701847028470384704847058470684707847088470984710847118471284713847148471584716847178471884719847208472184722847238472484725847268472784728847298473084731847328473384734847358473684737847388473984740847418474284743847448474584746847478474884749847508475184752847538475484755847568475784758847598476084761847628476384764847658476684767847688476984770847718477284773847748477584776847778477884779847808478184782847838478484785847868478784788847898479084791847928479384794847958479684797847988479984800848018480284803848048480584806848078480884809848108481184812848138481484815848168481784818848198482084821848228482384824848258482684827848288482984830848318483284833848348483584836848378483884839848408484184842848438484484845848468484784848848498485084851848528485384854848558485684857848588485984860848618486284863848648486584866848678486884869848708487184872848738487484875848768487784878848798488084881848828488384884848858488684887848888488984890848918489284893848948489584896848978489884899849008490184902849038490484905849068490784908849098491084911849128491384914849158491684917849188491984920849218492284923849248492584926849278492884929849308493184932849338493484935849368493784938849398494084941849428494384944849458494684947849488494984950849518495284953849548495584956849578495884959849608496184962849638496484965849668496784968849698497084971849728497384974849758497684977849788497984980849818498284983849848498584986849878498884989849908499184992849938499484995849968499784998849998500085001850028500385004850058500685007850088500985010850118501285013850148501585016850178501885019850208502185022850238502485025850268502785028850298503085031850328503385034850358503685037850388503985040850418504285043850448504585046850478504885049850508505185052850538505485055850568505785058850598506085061850628506385064850658506685067850688506985070850718507285073850748507585076850778507885079850808508185082850838508485085850868508785088850898509085091850928509385094850958509685097850988509985100851018510285103851048510585106851078510885109851108511185112851138511485115851168511785118851198512085121851228512385124851258512685127851288512985130851318513285133851348513585136851378513885139851408514185142851438514485145851468514785148851498515085151851528515385154851558515685157851588515985160851618516285163851648516585166851678516885169851708517185172851738517485175851768517785178851798518085181851828518385184851858518685187851888518985190851918519285193851948519585196851978519885199852008520185202852038520485205852068520785208852098521085211852128521385214852158521685217852188521985220852218522285223852248522585226852278522885229852308523185232852338523485235852368523785238852398524085241852428524385244852458524685247852488524985250852518525285253852548525585256852578525885259852608526185262852638526485265852668526785268852698527085271852728527385274852758527685277852788527985280852818528285283852848528585286852878528885289852908529185292852938529485295852968529785298852998530085301853028530385304853058530685307853088530985310853118531285313853148531585316853178531885319853208532185322853238532485325853268532785328853298533085331853328533385334853358533685337853388533985340853418534285343853448534585346853478534885349853508535185352853538535485355853568535785358853598536085361853628536385364853658536685367853688536985370853718537285373853748537585376853778537885379853808538185382853838538485385853868538785388853898539085391853928539385394853958539685397853988539985400854018540285403854048540585406854078540885409854108541185412854138541485415854168541785418854198542085421854228542385424854258542685427854288542985430854318543285433854348543585436854378543885439854408544185442854438544485445854468544785448854498545085451854528545385454854558545685457854588545985460854618546285463854648546585466854678546885469854708547185472854738547485475854768547785478854798548085481854828548385484854858548685487854888548985490854918549285493854948549585496854978549885499855008550185502855038550485505855068550785508855098551085511855128551385514855158551685517855188551985520855218552285523855248552585526855278552885529855308553185532855338553485535855368553785538855398554085541855428554385544855458554685547855488554985550855518555285553855548555585556855578555885559855608556185562855638556485565855668556785568855698557085571855728557385574855758557685577855788557985580855818558285583855848558585586855878558885589855908559185592855938559485595855968559785598855998560085601856028560385604856058560685607856088560985610856118561285613856148561585616856178561885619856208562185622856238562485625856268562785628856298563085631856328563385634856358563685637856388563985640856418564285643856448564585646856478564885649856508565185652856538565485655856568565785658856598566085661856628566385664856658566685667856688566985670856718567285673856748567585676856778567885679856808568185682856838568485685856868568785688856898569085691856928569385694856958569685697856988569985700857018570285703857048570585706857078570885709857108571185712857138571485715857168571785718857198572085721857228572385724857258572685727857288572985730857318573285733857348573585736857378573885739857408574185742857438574485745857468574785748857498575085751857528575385754857558575685757857588575985760857618576285763857648576585766857678576885769857708577185772857738577485775857768577785778857798578085781857828578385784857858578685787857888578985790857918579285793857948579585796857978579885799858008580185802858038580485805858068580785808858098581085811858128581385814858158581685817858188581985820858218582285823858248582585826858278582885829858308583185832858338583485835858368583785838858398584085841858428584385844858458584685847858488584985850858518585285853858548585585856858578585885859858608586185862858638586485865858668586785868858698587085871858728587385874858758587685877858788587985880858818588285883858848588585886858878588885889858908589185892858938589485895858968589785898858998590085901859028590385904859058590685907859088590985910859118591285913859148591585916859178591885919859208592185922859238592485925859268592785928859298593085931859328593385934859358593685937859388593985940859418594285943859448594585946859478594885949859508595185952859538595485955859568595785958859598596085961859628596385964859658596685967859688596985970859718597285973859748597585976859778597885979859808598185982859838598485985859868598785988859898599085991859928599385994859958599685997859988599986000860018600286003860048600586006860078600886009860108601186012860138601486015860168601786018860198602086021860228602386024860258602686027860288602986030860318603286033860348603586036860378603886039860408604186042860438604486045860468604786048860498605086051860528605386054860558605686057860588605986060860618606286063860648606586066860678606886069860708607186072860738607486075860768607786078860798608086081860828608386084860858608686087860888608986090860918609286093860948609586096860978609886099861008610186102861038610486105861068610786108861098611086111861128611386114861158611686117861188611986120861218612286123861248612586126861278612886129861308613186132861338613486135861368613786138861398614086141861428614386144861458614686147861488614986150861518615286153861548615586156861578615886159861608616186162861638616486165861668616786168861698617086171861728617386174861758617686177861788617986180861818618286183861848618586186861878618886189861908619186192861938619486195861968619786198861998620086201862028620386204862058620686207862088620986210862118621286213862148621586216862178621886219862208622186222862238622486225862268622786228862298623086231862328623386234862358623686237862388623986240862418624286243862448624586246862478624886249862508625186252862538625486255862568625786258862598626086261862628626386264862658626686267862688626986270862718627286273862748627586276862778627886279862808628186282862838628486285862868628786288862898629086291862928629386294862958629686297862988629986300863018630286303863048630586306863078630886309863108631186312863138631486315863168631786318863198632086321863228632386324863258632686327863288632986330863318633286333863348633586336863378633886339863408634186342863438634486345863468634786348863498635086351863528635386354863558635686357863588635986360863618636286363863648636586366863678636886369863708637186372863738637486375863768637786378863798638086381863828638386384863858638686387863888638986390863918639286393863948639586396863978639886399864008640186402864038640486405864068640786408864098641086411864128641386414864158641686417864188641986420864218642286423864248642586426864278642886429864308643186432864338643486435864368643786438864398644086441864428644386444864458644686447864488644986450864518645286453864548645586456864578645886459864608646186462864638646486465864668646786468864698647086471864728647386474864758647686477864788647986480864818648286483864848648586486864878648886489864908649186492864938649486495864968649786498864998650086501865028650386504865058650686507865088650986510865118651286513865148651586516865178651886519865208652186522865238652486525865268652786528865298653086531865328653386534865358653686537865388653986540865418654286543865448654586546865478654886549865508655186552865538655486555865568655786558865598656086561865628656386564865658656686567865688656986570865718657286573865748657586576865778657886579865808658186582865838658486585865868658786588865898659086591865928659386594865958659686597865988659986600866018660286603866048660586606866078660886609866108661186612866138661486615866168661786618866198662086621866228662386624866258662686627866288662986630866318663286633866348663586636866378663886639866408664186642866438664486645866468664786648866498665086651866528665386654866558665686657866588665986660866618666286663866648666586666866678666886669866708667186672866738667486675866768667786678866798668086681866828668386684866858668686687866888668986690866918669286693866948669586696866978669886699867008670186702867038670486705867068670786708867098671086711867128671386714867158671686717867188671986720867218672286723867248672586726867278672886729867308673186732867338673486735867368673786738867398674086741867428674386744867458674686747867488674986750867518675286753867548675586756867578675886759867608676186762867638676486765867668676786768867698677086771867728677386774867758677686777867788677986780867818678286783867848678586786867878678886789867908679186792867938679486795867968679786798867998680086801868028680386804868058680686807868088680986810868118681286813868148681586816868178681886819868208682186822868238682486825868268682786828868298683086831868328683386834868358683686837868388683986840868418684286843868448684586846868478684886849868508685186852868538685486855868568685786858868598686086861868628686386864868658686686867868688686986870868718687286873868748687586876868778687886879868808688186882868838688486885868868688786888868898689086891868928689386894868958689686897868988689986900869018690286903869048690586906869078690886909869108691186912869138691486915869168691786918869198692086921869228692386924869258692686927869288692986930869318693286933869348693586936869378693886939869408694186942869438694486945869468694786948869498695086951869528695386954869558695686957869588695986960869618696286963869648696586966869678696886969869708697186972869738697486975869768697786978869798698086981869828698386984869858698686987869888698986990869918699286993869948699586996869978699886999870008700187002870038700487005870068700787008870098701087011870128701387014870158701687017870188701987020870218702287023870248702587026870278702887029870308703187032870338703487035870368703787038870398704087041870428704387044870458704687047870488704987050870518705287053870548705587056870578705887059870608706187062870638706487065870668706787068870698707087071870728707387074870758707687077870788707987080870818708287083870848708587086870878708887089870908709187092870938709487095870968709787098870998710087101871028710387104871058710687107871088710987110871118711287113871148711587116871178711887119871208712187122871238712487125871268712787128871298713087131871328713387134871358713687137871388713987140871418714287143871448714587146871478714887149871508715187152871538715487155871568715787158871598716087161871628716387164871658716687167871688716987170871718717287173871748717587176871778717887179871808718187182871838718487185871868718787188871898719087191871928719387194871958719687197871988719987200872018720287203872048720587206872078720887209872108721187212872138721487215872168721787218872198722087221872228722387224872258722687227872288722987230872318723287233872348723587236872378723887239872408724187242872438724487245872468724787248872498725087251872528725387254872558725687257872588725987260872618726287263872648726587266872678726887269872708727187272872738727487275872768727787278872798728087281872828728387284872858728687287872888728987290872918729287293872948729587296872978729887299873008730187302873038730487305873068730787308873098731087311873128731387314873158731687317873188731987320873218732287323873248732587326873278732887329873308733187332873338733487335873368733787338873398734087341873428734387344873458734687347873488734987350873518735287353873548735587356873578735887359873608736187362873638736487365873668736787368873698737087371873728737387374873758737687377873788737987380873818738287383873848738587386873878738887389873908739187392873938739487395873968739787398873998740087401874028740387404874058740687407874088740987410874118741287413874148741587416874178741887419874208742187422874238742487425874268742787428874298743087431874328743387434874358743687437874388743987440874418744287443874448744587446874478744887449874508745187452874538745487455874568745787458874598746087461874628746387464874658746687467874688746987470874718747287473874748747587476874778747887479874808748187482874838748487485874868748787488874898749087491874928749387494874958749687497874988749987500875018750287503875048750587506875078750887509875108751187512875138751487515875168751787518875198752087521875228752387524875258752687527875288752987530875318753287533875348753587536875378753887539875408754187542875438754487545875468754787548875498755087551875528755387554875558755687557875588755987560875618756287563875648756587566875678756887569875708757187572875738757487575875768757787578875798758087581875828758387584875858758687587875888758987590875918759287593875948759587596875978759887599876008760187602876038760487605876068760787608876098761087611876128761387614876158761687617876188761987620876218762287623876248762587626876278762887629876308763187632876338763487635876368763787638876398764087641876428764387644876458764687647876488764987650876518765287653876548765587656876578765887659876608766187662876638766487665876668766787668876698767087671876728767387674876758767687677876788767987680876818768287683876848768587686876878768887689876908769187692876938769487695876968769787698876998770087701877028770387704877058770687707877088770987710877118771287713877148771587716877178771887719877208772187722877238772487725877268772787728877298773087731877328773387734877358773687737877388773987740877418774287743877448774587746877478774887749877508775187752877538775487755877568775787758877598776087761877628776387764877658776687767877688776987770877718777287773877748777587776877778777887779877808778187782877838778487785877868778787788877898779087791877928779387794877958779687797877988779987800878018780287803878048780587806878078780887809878108781187812878138781487815878168781787818878198782087821878228782387824878258782687827878288782987830878318783287833878348783587836878378783887839878408784187842878438784487845878468784787848878498785087851878528785387854878558785687857878588785987860878618786287863878648786587866878678786887869878708787187872878738787487875878768787787878878798788087881878828788387884878858788687887878888788987890878918789287893878948789587896878978789887899879008790187902879038790487905879068790787908879098791087911879128791387914879158791687917879188791987920879218792287923879248792587926879278792887929879308793187932879338793487935879368793787938879398794087941879428794387944879458794687947879488794987950879518795287953879548795587956879578795887959879608796187962879638796487965879668796787968879698797087971879728797387974879758797687977879788797987980879818798287983879848798587986879878798887989879908799187992879938799487995879968799787998879998800088001880028800388004880058800688007880088800988010880118801288013880148801588016880178801888019880208802188022880238802488025880268802788028880298803088031880328803388034880358803688037880388803988040880418804288043880448804588046880478804888049880508805188052880538805488055880568805788058880598806088061880628806388064880658806688067880688806988070880718807288073880748807588076880778807888079880808808188082880838808488085880868808788088880898809088091880928809388094880958809688097880988809988100881018810288103881048810588106881078810888109881108811188112881138811488115881168811788118881198812088121881228812388124881258812688127881288812988130881318813288133881348813588136881378813888139881408814188142881438814488145881468814788148881498815088151881528815388154881558815688157881588815988160881618816288163881648816588166881678816888169881708817188172881738817488175881768817788178881798818088181881828818388184881858818688187881888818988190881918819288193881948819588196881978819888199882008820188202882038820488205882068820788208882098821088211882128821388214882158821688217882188821988220882218822288223882248822588226882278822888229882308823188232882338823488235882368823788238882398824088241882428824388244882458824688247882488824988250882518825288253882548825588256882578825888259882608826188262882638826488265882668826788268882698827088271882728827388274882758827688277882788827988280882818828288283882848828588286882878828888289882908829188292882938829488295882968829788298882998830088301883028830388304883058830688307883088830988310883118831288313883148831588316883178831888319883208832188322883238832488325883268832788328883298833088331883328833388334883358833688337883388833988340883418834288343883448834588346883478834888349883508835188352883538835488355883568835788358883598836088361883628836388364883658836688367883688836988370883718837288373883748837588376883778837888379883808838188382883838838488385883868838788388883898839088391883928839388394883958839688397883988839988400884018840288403884048840588406884078840888409884108841188412884138841488415884168841788418884198842088421884228842388424884258842688427884288842988430884318843288433884348843588436884378843888439884408844188442884438844488445884468844788448884498845088451884528845388454884558845688457884588845988460884618846288463884648846588466884678846888469884708847188472884738847488475884768847788478884798848088481884828848388484884858848688487884888848988490884918849288493884948849588496884978849888499885008850188502885038850488505885068850788508885098851088511885128851388514885158851688517
  1. // make sure to keep this as 'var'
  2. // we don't want block scoping
  3. var dartNodePreambleSelf = typeof global !== "undefined" ? global : window;
  4. var self = Object.create(dartNodePreambleSelf);
  5. self.scheduleImmediate = self.setImmediate
  6. ? function (cb) {
  7. dartNodePreambleSelf.setImmediate(cb);
  8. }
  9. : function(cb) {
  10. setTimeout(cb, 0);
  11. };
  12. // CommonJS globals.
  13. self.exports = exports;
  14. // Node.js specific exports, check to see if they exist & or polyfilled
  15. if (typeof process !== "undefined") {
  16. self.process = process;
  17. }
  18. if (typeof __dirname !== "undefined") {
  19. self.__dirname = __dirname;
  20. }
  21. if (typeof __filename !== "undefined") {
  22. self.__filename = __filename;
  23. }
  24. // if we're running in a browser, Dart supports most of this out of box
  25. // make sure we only run these in Node.js environment
  26. var dartNodeIsActuallyNode = !dartNodePreambleSelf.window
  27. try {
  28. // Check if we're in a Web Worker instead.
  29. if ("undefined" !== typeof WorkerGlobalScope && dartNodePreambleSelf instanceof WorkerGlobalScope) {
  30. dartNodeIsActuallyNode = false;
  31. }
  32. // Check if we're in Electron, with Node.js integration, and override if true.
  33. if (dartNodeIsActuallyNode && dartNodePreambleSelf.process && dartNodePreambleSelf.versions && process.versions.hasOwnProperty('electron') && process.versions.hasOwnProperty('node')) {
  34. dartNodeIsActuallyNode = true;
  35. }
  36. } catch(e) {}
  37. if (dartNodeIsActuallyNode) {
  38. // This line is to:
  39. // 1) Prevent Webpack from bundling.
  40. // 2) In Webpack on Node.js, make sure we're using the native Node.js require, which is available via __non_webpack_require__
  41. // https://github.com/mbullington/node_preamble.dart/issues/18#issuecomment-527305561
  42. var url = ("undefined" !== typeof __webpack_require__ ? __non_webpack_require__ : require)("url");
  43. self.location = {
  44. get href() {
  45. if (url.pathToFileURL) {
  46. return url.pathToFileURL(process.cwd()).href + "/";
  47. } else {
  48. // This isn't really a correct transformation, but it's the best we have
  49. // for versions of Node <10.12.0 which introduced `url.pathToFileURL()`.
  50. // For example, it will fail for paths that contain characters that need
  51. // to be escaped in URLs.
  52. return "file://" + (function() {
  53. var cwd = process.cwd();
  54. if (process.platform != "win32") return cwd;
  55. return "/" + cwd.replace(/\\/g, "/");
  56. })() + "/"
  57. }
  58. }
  59. };
  60. (function() {
  61. function computeCurrentScript() {
  62. try {
  63. throw new Error();
  64. } catch(e) {
  65. var stack = e.stack;
  66. var re = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg");
  67. var lastMatch = null;
  68. do {
  69. var match = re.exec(stack);
  70. if (match != null) lastMatch = match;
  71. } while (match != null);
  72. return lastMatch[1];
  73. }
  74. }
  75. var cachedCurrentScript = null;
  76. self.document = {
  77. get currentScript() {
  78. if (cachedCurrentScript == null) {
  79. cachedCurrentScript = {src: computeCurrentScript()};
  80. }
  81. return cachedCurrentScript;
  82. }
  83. };
  84. })();
  85. self.dartDeferredLibraryLoader = function(uri, successCallback, errorCallback) {
  86. try {
  87. load(uri);
  88. successCallback();
  89. } catch (error) {
  90. errorCallback(error);
  91. }
  92. };
  93. }
  94. self.fs = require("fs");
  95. self.chokidar = require("chokidar");
  96. self.readline = require("readline");
  97. // Generated by dart2js (fast startup emitter, strong, trust primitives, omit checks, lax runtime type), the Dart to JavaScript compiler version: 2.8.4.
  98. // The code supports the following hooks:
  99. // dartPrint(message):
  100. // if this function is defined it is called instead of the Dart [print]
  101. // method.
  102. //
  103. // dartMainRunner(main, args):
  104. // if this function is defined, the Dart [main] method will not be invoked
  105. // directly. Instead, a closure that will invoke [main], and its arguments
  106. // [args] is passed to [dartMainRunner].
  107. //
  108. // dartDeferredLibraryLoader(uri, successCallback, errorCallback):
  109. // if this function is defined, it will be called when a deferred library
  110. // is loaded. It should load and eval the javascript of `uri`, and call
  111. // successCallback. If it fails to do so, it should call errorCallback with
  112. // an error.
  113. //
  114. // dartCallInstrumentation(id, qualifiedName):
  115. // if this function is defined, it will be called at each entry of a
  116. // method or constructor. Used only when compiling programs with
  117. // --experiment-call-instrumentation.
  118. (function dartProgram() {
  119. function copyProperties(from, to) {
  120. var keys = Object.keys(from);
  121. for (var i = 0; i < keys.length; i++) {
  122. var key = keys[i];
  123. to[key] = from[key];
  124. }
  125. }
  126. var supportsDirectProtoAccess = function() {
  127. var cls = function() {
  128. };
  129. cls.prototype = {p: {}};
  130. var object = new cls();
  131. if (!(object.__proto__ && object.__proto__.p === cls.prototype.p))
  132. return false;
  133. try {
  134. if (typeof navigator != "undefined" && typeof navigator.userAgent == "string" && navigator.userAgent.indexOf("Chrome/") >= 0)
  135. return true;
  136. if (typeof version == "function" && version.length == 0) {
  137. var v = version();
  138. if (/^\d+\.\d+\.\d+\.\d+$/.test(v))
  139. return true;
  140. }
  141. } catch (_) {
  142. }
  143. return false;
  144. }();
  145. function setFunctionNamesIfNecessary(holders) {
  146. function t() {
  147. }
  148. ;
  149. if (typeof t.name == "string")
  150. return;
  151. for (var i = 0; i < holders.length; i++) {
  152. var holder = holders[i];
  153. var keys = Object.keys(holder);
  154. for (var j = 0; j < keys.length; j++) {
  155. var key = keys[j];
  156. var f = holder[key];
  157. if (typeof f == 'function')
  158. f.name = key;
  159. }
  160. }
  161. }
  162. function inherit(cls, sup) {
  163. cls.prototype.constructor = cls;
  164. cls.prototype["$is" + cls.name] = cls;
  165. if (sup != null) {
  166. if (supportsDirectProtoAccess) {
  167. cls.prototype.__proto__ = sup.prototype;
  168. return;
  169. }
  170. var clsPrototype = Object.create(sup.prototype);
  171. copyProperties(cls.prototype, clsPrototype);
  172. cls.prototype = clsPrototype;
  173. }
  174. }
  175. function inheritMany(sup, classes) {
  176. for (var i = 0; i < classes.length; i++)
  177. inherit(classes[i], sup);
  178. }
  179. function mixin(cls, mixin) {
  180. copyProperties(mixin.prototype, cls.prototype);
  181. cls.prototype.constructor = cls;
  182. }
  183. function lazy(holder, name, getterName, initializer) {
  184. var uninitializedSentinel = holder;
  185. holder[name] = uninitializedSentinel;
  186. holder[getterName] = function() {
  187. holder[getterName] = function() {
  188. H.throwCyclicInit(name);
  189. };
  190. var result;
  191. var sentinelInProgress = initializer;
  192. try {
  193. if (holder[name] === uninitializedSentinel) {
  194. result = holder[name] = sentinelInProgress;
  195. result = holder[name] = initializer();
  196. } else
  197. result = holder[name];
  198. } finally {
  199. if (result === sentinelInProgress)
  200. holder[name] = null;
  201. holder[getterName] = function() {
  202. return this[name];
  203. };
  204. }
  205. return result;
  206. };
  207. }
  208. function makeConstList(list) {
  209. list.immutable$list = Array;
  210. list.fixed$length = Array;
  211. return list;
  212. }
  213. function convertToFastObject(properties) {
  214. function t() {
  215. }
  216. t.prototype = properties;
  217. new t();
  218. return properties;
  219. }
  220. function convertAllToFastObject(arrayOfObjects) {
  221. for (var i = 0; i < arrayOfObjects.length; ++i)
  222. convertToFastObject(arrayOfObjects[i]);
  223. }
  224. var functionCounter = 0;
  225. function tearOffGetter(funcs, applyTrampolineIndex, reflectionInfo, name, isIntercepted) {
  226. return isIntercepted ? new Function("funcs", "applyTrampolineIndex", "reflectionInfo", "name", "H", "c", "return function tearOff_" + name + functionCounter++ + "(receiver) {" + "if (c === null) c = " + "H.closureFromTearOff" + "(" + "this, funcs, applyTrampolineIndex, reflectionInfo, false, true, name);" + "return new c(this, funcs[0], receiver, name);" + "}")(funcs, applyTrampolineIndex, reflectionInfo, name, H, null) : new Function("funcs", "applyTrampolineIndex", "reflectionInfo", "name", "H", "c", "return function tearOff_" + name + functionCounter++ + "() {" + "if (c === null) c = " + "H.closureFromTearOff" + "(" + "this, funcs, applyTrampolineIndex, reflectionInfo, false, false, name);" + "return new c(this, funcs[0], null, name);" + "}")(funcs, applyTrampolineIndex, reflectionInfo, name, H, null);
  227. }
  228. function tearOff(funcs, applyTrampolineIndex, reflectionInfo, isStatic, name, isIntercepted) {
  229. var cache = null;
  230. return isStatic ? function() {
  231. if (cache === null)
  232. cache = H.closureFromTearOff(this, funcs, applyTrampolineIndex, reflectionInfo, true, false, name).prototype;
  233. return cache;
  234. } : tearOffGetter(funcs, applyTrampolineIndex, reflectionInfo, name, isIntercepted);
  235. }
  236. var typesOffset = 0;
  237. function installTearOff(container, getterName, isStatic, isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex) {
  238. var funs = [];
  239. for (var i = 0; i < funsOrNames.length; i++) {
  240. var fun = funsOrNames[i];
  241. if (typeof fun == 'string')
  242. fun = container[fun];
  243. fun.$callName = callNames[i];
  244. funs.push(fun);
  245. }
  246. var fun = funs[0];
  247. fun.$requiredArgCount = requiredParameterCount;
  248. fun.$defaultValues = optionalParameterDefaultValues;
  249. var reflectionInfo = funType;
  250. if (typeof reflectionInfo == "number")
  251. reflectionInfo += typesOffset;
  252. var name = funsOrNames[0];
  253. fun.$stubName = name;
  254. var getterFunction = tearOff(funs, applyIndex || 0, reflectionInfo, isStatic, name, isIntercepted);
  255. container[getterName] = getterFunction;
  256. if (isStatic)
  257. fun.$tearOff = getterFunction;
  258. }
  259. function installStaticTearOff(container, getterName, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex) {
  260. return installTearOff(container, getterName, true, false, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex);
  261. }
  262. function installInstanceTearOff(container, getterName, isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex) {
  263. return installTearOff(container, getterName, false, isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex);
  264. }
  265. function setOrUpdateInterceptorsByTag(newTags) {
  266. var tags = init.interceptorsByTag;
  267. if (!tags) {
  268. init.interceptorsByTag = newTags;
  269. return;
  270. }
  271. copyProperties(newTags, tags);
  272. }
  273. function setOrUpdateLeafTags(newTags) {
  274. var tags = init.leafTags;
  275. if (!tags) {
  276. init.leafTags = newTags;
  277. return;
  278. }
  279. copyProperties(newTags, tags);
  280. }
  281. function updateTypes(newTypes) {
  282. var types = init.types;
  283. var length = types.length;
  284. types.push.apply(types, newTypes);
  285. return length;
  286. }
  287. function updateHolder(holder, newHolder) {
  288. copyProperties(newHolder, holder);
  289. return holder;
  290. }
  291. var hunkHelpers = function() {
  292. var mkInstance = function(isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, applyIndex) {
  293. return function(container, getterName, name, funType) {
  294. return installInstanceTearOff(container, getterName, isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, [name], funType, applyIndex);
  295. };
  296. },
  297. mkStatic = function(requiredParameterCount, optionalParameterDefaultValues, callNames, applyIndex) {
  298. return function(container, getterName, name, funType) {
  299. return installStaticTearOff(container, getterName, requiredParameterCount, optionalParameterDefaultValues, callNames, [name], funType, applyIndex);
  300. };
  301. };
  302. return {inherit: inherit, inheritMany: inheritMany, mixin: mixin, installStaticTearOff: installStaticTearOff, installInstanceTearOff: installInstanceTearOff, _instance_0u: mkInstance(0, 0, null, ["call$0"], 0), _instance_1u: mkInstance(0, 1, null, ["call$1"], 0), _instance_2u: mkInstance(0, 2, null, ["call$2"], 0), _instance_0i: mkInstance(1, 0, null, ["call$0"], 0), _instance_1i: mkInstance(1, 1, null, ["call$1"], 0), _instance_2i: mkInstance(1, 2, null, ["call$2"], 0), _static_0: mkStatic(0, null, ["call$0"], 0), _static_1: mkStatic(1, null, ["call$1"], 0), _static_2: mkStatic(2, null, ["call$2"], 0), makeConstList: makeConstList, lazy: lazy, updateHolder: updateHolder, convertToFastObject: convertToFastObject, setFunctionNamesIfNecessary: setFunctionNamesIfNecessary, updateTypes: updateTypes, setOrUpdateInterceptorsByTag: setOrUpdateInterceptorsByTag, setOrUpdateLeafTags: setOrUpdateLeafTags};
  303. }();
  304. function initializeDeferredHunk(hunk) {
  305. typesOffset = init.types.length;
  306. hunk(hunkHelpers, init, holders, $);
  307. }
  308. function getGlobalFromName(name) {
  309. for (var i = 0; i < holders.length; i++) {
  310. if (holders[i] == C)
  311. continue;
  312. if (holders[i][name])
  313. return holders[i][name];
  314. }
  315. }
  316. var C = {},
  317. H = {JS_CONST: function JS_CONST() {
  318. },
  319. CastIterable_CastIterable: function(source, $S, $T) {
  320. if ($S._eval$1("EfficientLengthIterable<0>")._is(source))
  321. return new H._EfficientLengthCastIterable(source, $S._eval$1("@<0>")._bind$1($T)._eval$1("_EfficientLengthCastIterable<1,2>"));
  322. return new H.CastIterable(source, $S._eval$1("@<0>")._bind$1($T)._eval$1("CastIterable<1,2>"));
  323. },
  324. hexDigitValue: function(char) {
  325. var letter,
  326. digit = char ^ 48;
  327. if (digit <= 9)
  328. return digit;
  329. letter = char | 32;
  330. if (97 <= letter && letter <= 102)
  331. return letter - 87;
  332. return -1;
  333. },
  334. SubListIterable$: function(_iterable, _start, _endOrLength, $E) {
  335. P.RangeError_checkNotNegative(_start, "start");
  336. if (_endOrLength != null) {
  337. P.RangeError_checkNotNegative(_endOrLength, "end");
  338. if (_start > _endOrLength)
  339. H.throwExpression(P.RangeError$range(_start, 0, _endOrLength, "start", null));
  340. }
  341. return new H.SubListIterable(_iterable, _start, _endOrLength, $E._eval$1("SubListIterable<0>"));
  342. },
  343. MappedIterable_MappedIterable: function(iterable, $function, $S, $T) {
  344. if (type$.EfficientLengthIterable_dynamic._is(iterable))
  345. return new H.EfficientLengthMappedIterable(iterable, $function, $S._eval$1("@<0>")._bind$1($T)._eval$1("EfficientLengthMappedIterable<1,2>"));
  346. return new H.MappedIterable(iterable, $function, $S._eval$1("@<0>")._bind$1($T)._eval$1("MappedIterable<1,2>"));
  347. },
  348. TakeIterable_TakeIterable: function(iterable, takeCount, $E) {
  349. var _s9_ = "takeCount";
  350. P.ArgumentError_checkNotNull(takeCount, _s9_);
  351. P.RangeError_checkNotNegative(takeCount, _s9_);
  352. if (type$.EfficientLengthIterable_dynamic._is(iterable))
  353. return new H.EfficientLengthTakeIterable(iterable, takeCount, $E._eval$1("EfficientLengthTakeIterable<0>"));
  354. return new H.TakeIterable(iterable, takeCount, $E._eval$1("TakeIterable<0>"));
  355. },
  356. SkipIterable_SkipIterable: function(iterable, count, $E) {
  357. var _s5_ = "count";
  358. if (type$.EfficientLengthIterable_dynamic._is(iterable)) {
  359. P.ArgumentError_checkNotNull(count, _s5_);
  360. P.RangeError_checkNotNegative(count, _s5_);
  361. return new H.EfficientLengthSkipIterable(iterable, count, $E._eval$1("EfficientLengthSkipIterable<0>"));
  362. }
  363. P.ArgumentError_checkNotNull(count, _s5_);
  364. P.RangeError_checkNotNegative(count, _s5_);
  365. return new H.SkipIterable(iterable, count, $E._eval$1("SkipIterable<0>"));
  366. },
  367. FollowedByIterable_FollowedByIterable$firstEfficient: function(first, second, $E) {
  368. if ($E._eval$1("EfficientLengthIterable<0>")._is(second))
  369. return new H.EfficientLengthFollowedByIterable(first, second, $E._eval$1("EfficientLengthFollowedByIterable<0>"));
  370. return new H.FollowedByIterable(first, second, $E._eval$1("FollowedByIterable<0>"));
  371. },
  372. IterableElementError_noElement: function() {
  373. return new P.StateError("No element");
  374. },
  375. IterableElementError_tooMany: function() {
  376. return new P.StateError("Too many elements");
  377. },
  378. IterableElementError_tooFew: function() {
  379. return new P.StateError("Too few elements");
  380. },
  381. Sort_sort: function(a, compare) {
  382. H.Sort__doSort(a, 0, J.get$length$asx(a) - 1, compare);
  383. },
  384. Sort__doSort: function(a, left, right, compare) {
  385. if (right - left <= 32)
  386. H.Sort__insertionSort(a, left, right, compare);
  387. else
  388. H.Sort__dualPivotQuicksort(a, left, right, compare);
  389. },
  390. Sort__insertionSort: function(a, left, right, compare) {
  391. var i, t1, el, j, j0;
  392. for (i = left + 1, t1 = J.getInterceptor$asx(a); i <= right; ++i) {
  393. el = t1.$index(a, i);
  394. j = i;
  395. while (true) {
  396. if (!(j > left && compare.call$2(t1.$index(a, j - 1), el) > 0))
  397. break;
  398. j0 = j - 1;
  399. t1.$indexSet(a, j, t1.$index(a, j0));
  400. j = j0;
  401. }
  402. t1.$indexSet(a, j, el);
  403. }
  404. },
  405. Sort__dualPivotQuicksort: function(a, left, right, compare) {
  406. var t0, less, great, k, ak, comp, great0, less0, pivots_are_equal, t2,
  407. sixth = C.JSInt_methods._tdivFast$1(right - left + 1, 6),
  408. index1 = left + sixth,
  409. index5 = right - sixth,
  410. index3 = C.JSInt_methods._tdivFast$1(left + right, 2),
  411. index2 = index3 - sixth,
  412. index4 = index3 + sixth,
  413. t1 = J.getInterceptor$asx(a),
  414. el1 = t1.$index(a, index1),
  415. el2 = t1.$index(a, index2),
  416. el3 = t1.$index(a, index3),
  417. el4 = t1.$index(a, index4),
  418. el5 = t1.$index(a, index5);
  419. if (compare.call$2(el1, el2) > 0) {
  420. t0 = el2;
  421. el2 = el1;
  422. el1 = t0;
  423. }
  424. if (compare.call$2(el4, el5) > 0) {
  425. t0 = el5;
  426. el5 = el4;
  427. el4 = t0;
  428. }
  429. if (compare.call$2(el1, el3) > 0) {
  430. t0 = el3;
  431. el3 = el1;
  432. el1 = t0;
  433. }
  434. if (compare.call$2(el2, el3) > 0) {
  435. t0 = el3;
  436. el3 = el2;
  437. el2 = t0;
  438. }
  439. if (compare.call$2(el1, el4) > 0) {
  440. t0 = el4;
  441. el4 = el1;
  442. el1 = t0;
  443. }
  444. if (compare.call$2(el3, el4) > 0) {
  445. t0 = el4;
  446. el4 = el3;
  447. el3 = t0;
  448. }
  449. if (compare.call$2(el2, el5) > 0) {
  450. t0 = el5;
  451. el5 = el2;
  452. el2 = t0;
  453. }
  454. if (compare.call$2(el2, el3) > 0) {
  455. t0 = el3;
  456. el3 = el2;
  457. el2 = t0;
  458. }
  459. if (compare.call$2(el4, el5) > 0) {
  460. t0 = el5;
  461. el5 = el4;
  462. el4 = t0;
  463. }
  464. t1.$indexSet(a, index1, el1);
  465. t1.$indexSet(a, index3, el3);
  466. t1.$indexSet(a, index5, el5);
  467. t1.$indexSet(a, index2, t1.$index(a, left));
  468. t1.$indexSet(a, index4, t1.$index(a, right));
  469. less = left + 1;
  470. great = right - 1;
  471. if (J.$eq$(compare.call$2(el2, el4), 0)) {
  472. for (k = less; k <= great; ++k) {
  473. ak = t1.$index(a, k);
  474. comp = compare.call$2(ak, el2);
  475. if (comp === 0)
  476. continue;
  477. if (comp < 0) {
  478. if (k !== less) {
  479. t1.$indexSet(a, k, t1.$index(a, less));
  480. t1.$indexSet(a, less, ak);
  481. }
  482. ++less;
  483. } else
  484. for (; true;) {
  485. comp = compare.call$2(t1.$index(a, great), el2);
  486. if (comp > 0) {
  487. --great;
  488. continue;
  489. } else {
  490. great0 = great - 1;
  491. if (comp < 0) {
  492. t1.$indexSet(a, k, t1.$index(a, less));
  493. less0 = less + 1;
  494. t1.$indexSet(a, less, t1.$index(a, great));
  495. t1.$indexSet(a, great, ak);
  496. great = great0;
  497. less = less0;
  498. break;
  499. } else {
  500. t1.$indexSet(a, k, t1.$index(a, great));
  501. t1.$indexSet(a, great, ak);
  502. great = great0;
  503. break;
  504. }
  505. }
  506. }
  507. }
  508. pivots_are_equal = true;
  509. } else {
  510. for (k = less; k <= great; ++k) {
  511. ak = t1.$index(a, k);
  512. if (compare.call$2(ak, el2) < 0) {
  513. if (k !== less) {
  514. t1.$indexSet(a, k, t1.$index(a, less));
  515. t1.$indexSet(a, less, ak);
  516. }
  517. ++less;
  518. } else if (compare.call$2(ak, el4) > 0)
  519. for (; true;)
  520. if (compare.call$2(t1.$index(a, great), el4) > 0) {
  521. --great;
  522. if (great < k)
  523. break;
  524. continue;
  525. } else {
  526. great0 = great - 1;
  527. if (compare.call$2(t1.$index(a, great), el2) < 0) {
  528. t1.$indexSet(a, k, t1.$index(a, less));
  529. less0 = less + 1;
  530. t1.$indexSet(a, less, t1.$index(a, great));
  531. t1.$indexSet(a, great, ak);
  532. less = less0;
  533. } else {
  534. t1.$indexSet(a, k, t1.$index(a, great));
  535. t1.$indexSet(a, great, ak);
  536. }
  537. great = great0;
  538. break;
  539. }
  540. }
  541. pivots_are_equal = false;
  542. }
  543. t2 = less - 1;
  544. t1.$indexSet(a, left, t1.$index(a, t2));
  545. t1.$indexSet(a, t2, el2);
  546. t2 = great + 1;
  547. t1.$indexSet(a, right, t1.$index(a, t2));
  548. t1.$indexSet(a, t2, el4);
  549. H.Sort__doSort(a, left, less - 2, compare);
  550. H.Sort__doSort(a, great + 2, right, compare);
  551. if (pivots_are_equal)
  552. return;
  553. if (less < index1 && great > index5) {
  554. for (; J.$eq$(compare.call$2(t1.$index(a, less), el2), 0);)
  555. ++less;
  556. for (; J.$eq$(compare.call$2(t1.$index(a, great), el4), 0);)
  557. --great;
  558. for (k = less; k <= great; ++k) {
  559. ak = t1.$index(a, k);
  560. if (compare.call$2(ak, el2) === 0) {
  561. if (k !== less) {
  562. t1.$indexSet(a, k, t1.$index(a, less));
  563. t1.$indexSet(a, less, ak);
  564. }
  565. ++less;
  566. } else if (compare.call$2(ak, el4) === 0)
  567. for (; true;)
  568. if (compare.call$2(t1.$index(a, great), el4) === 0) {
  569. --great;
  570. if (great < k)
  571. break;
  572. continue;
  573. } else {
  574. great0 = great - 1;
  575. if (compare.call$2(t1.$index(a, great), el2) < 0) {
  576. t1.$indexSet(a, k, t1.$index(a, less));
  577. less0 = less + 1;
  578. t1.$indexSet(a, less, t1.$index(a, great));
  579. t1.$indexSet(a, great, ak);
  580. less = less0;
  581. } else {
  582. t1.$indexSet(a, k, t1.$index(a, great));
  583. t1.$indexSet(a, great, ak);
  584. }
  585. great = great0;
  586. break;
  587. }
  588. }
  589. H.Sort__doSort(a, less, great, compare);
  590. } else
  591. H.Sort__doSort(a, less, great, compare);
  592. },
  593. _CastIterableBase: function _CastIterableBase() {
  594. },
  595. CastIterator: function CastIterator(t0, t1) {
  596. this._source = t0;
  597. this.$ti = t1;
  598. },
  599. CastIterable: function CastIterable(t0, t1) {
  600. this._source = t0;
  601. this.$ti = t1;
  602. },
  603. _EfficientLengthCastIterable: function _EfficientLengthCastIterable(t0, t1) {
  604. this._source = t0;
  605. this.$ti = t1;
  606. },
  607. _CastListBase: function _CastListBase() {
  608. },
  609. _CastListBase_sort_closure: function _CastListBase_sort_closure(t0, t1) {
  610. this.$this = t0;
  611. this.compare = t1;
  612. },
  613. CastList: function CastList(t0, t1) {
  614. this._source = t0;
  615. this.$ti = t1;
  616. },
  617. CastSet: function CastSet(t0, t1, t2) {
  618. this._source = t0;
  619. this._emptySet = t1;
  620. this.$ti = t2;
  621. },
  622. CastQueue: function CastQueue(t0, t1) {
  623. this._source = t0;
  624. this.$ti = t1;
  625. },
  626. CodeUnits: function CodeUnits(t0) {
  627. this._string = t0;
  628. },
  629. EfficientLengthIterable: function EfficientLengthIterable() {
  630. },
  631. ListIterable: function ListIterable() {
  632. },
  633. SubListIterable: function SubListIterable(t0, t1, t2, t3) {
  634. var _ = this;
  635. _.__internal$_iterable = t0;
  636. _._start = t1;
  637. _._endOrLength = t2;
  638. _.$ti = t3;
  639. },
  640. ListIterator: function ListIterator(t0, t1) {
  641. var _ = this;
  642. _.__internal$_iterable = t0;
  643. _.__internal$_length = t1;
  644. _.__internal$_index = 0;
  645. _.__internal$_current = null;
  646. },
  647. MappedIterable: function MappedIterable(t0, t1, t2) {
  648. this.__internal$_iterable = t0;
  649. this._f = t1;
  650. this.$ti = t2;
  651. },
  652. EfficientLengthMappedIterable: function EfficientLengthMappedIterable(t0, t1, t2) {
  653. this.__internal$_iterable = t0;
  654. this._f = t1;
  655. this.$ti = t2;
  656. },
  657. MappedIterator: function MappedIterator(t0, t1) {
  658. this.__internal$_current = null;
  659. this._iterator = t0;
  660. this._f = t1;
  661. },
  662. MappedListIterable: function MappedListIterable(t0, t1, t2) {
  663. this._source = t0;
  664. this._f = t1;
  665. this.$ti = t2;
  666. },
  667. WhereIterable: function WhereIterable(t0, t1, t2) {
  668. this.__internal$_iterable = t0;
  669. this._f = t1;
  670. this.$ti = t2;
  671. },
  672. WhereIterator: function WhereIterator(t0, t1) {
  673. this._iterator = t0;
  674. this._f = t1;
  675. },
  676. ExpandIterable: function ExpandIterable(t0, t1, t2) {
  677. this.__internal$_iterable = t0;
  678. this._f = t1;
  679. this.$ti = t2;
  680. },
  681. ExpandIterator: function ExpandIterator(t0, t1, t2) {
  682. var _ = this;
  683. _._iterator = t0;
  684. _._f = t1;
  685. _._currentExpansion = t2;
  686. _.__internal$_current = null;
  687. },
  688. TakeIterable: function TakeIterable(t0, t1, t2) {
  689. this.__internal$_iterable = t0;
  690. this._takeCount = t1;
  691. this.$ti = t2;
  692. },
  693. EfficientLengthTakeIterable: function EfficientLengthTakeIterable(t0, t1, t2) {
  694. this.__internal$_iterable = t0;
  695. this._takeCount = t1;
  696. this.$ti = t2;
  697. },
  698. TakeIterator: function TakeIterator(t0, t1) {
  699. this._iterator = t0;
  700. this._remaining = t1;
  701. },
  702. SkipIterable: function SkipIterable(t0, t1, t2) {
  703. this.__internal$_iterable = t0;
  704. this._skipCount = t1;
  705. this.$ti = t2;
  706. },
  707. EfficientLengthSkipIterable: function EfficientLengthSkipIterable(t0, t1, t2) {
  708. this.__internal$_iterable = t0;
  709. this._skipCount = t1;
  710. this.$ti = t2;
  711. },
  712. SkipIterator: function SkipIterator(t0, t1) {
  713. this._iterator = t0;
  714. this._skipCount = t1;
  715. },
  716. SkipWhileIterable: function SkipWhileIterable(t0, t1, t2) {
  717. this.__internal$_iterable = t0;
  718. this._f = t1;
  719. this.$ti = t2;
  720. },
  721. SkipWhileIterator: function SkipWhileIterator(t0, t1) {
  722. this._iterator = t0;
  723. this._f = t1;
  724. this._hasSkipped = false;
  725. },
  726. EmptyIterable: function EmptyIterable(t0) {
  727. this.$ti = t0;
  728. },
  729. EmptyIterator: function EmptyIterator() {
  730. },
  731. FollowedByIterable: function FollowedByIterable(t0, t1, t2) {
  732. this.__internal$_first = t0;
  733. this._second = t1;
  734. this.$ti = t2;
  735. },
  736. EfficientLengthFollowedByIterable: function EfficientLengthFollowedByIterable(t0, t1, t2) {
  737. this.__internal$_first = t0;
  738. this._second = t1;
  739. this.$ti = t2;
  740. },
  741. FollowedByIterator: function FollowedByIterator(t0, t1) {
  742. this._currentIterator = t0;
  743. this._nextIterable = t1;
  744. },
  745. WhereTypeIterable: function WhereTypeIterable(t0, t1) {
  746. this._source = t0;
  747. this.$ti = t1;
  748. },
  749. WhereTypeIterator: function WhereTypeIterator(t0, t1) {
  750. this._source = t0;
  751. this.$ti = t1;
  752. },
  753. FixedLengthListMixin: function FixedLengthListMixin() {
  754. },
  755. UnmodifiableListMixin: function UnmodifiableListMixin() {
  756. },
  757. UnmodifiableListBase: function UnmodifiableListBase() {
  758. },
  759. ReversedListIterable: function ReversedListIterable(t0, t1) {
  760. this._source = t0;
  761. this.$ti = t1;
  762. },
  763. Symbol: function Symbol(t0) {
  764. this.__internal$_name = t0;
  765. },
  766. __CastListBase__CastIterableBase_ListMixin: function __CastListBase__CastIterableBase_ListMixin() {
  767. },
  768. ConstantMap_ConstantMap$from: function(other, $K, $V) {
  769. var allStrings, object, containsProto, protoValue, $length, k, v,
  770. keys = P.List_List$from(other.get$keys(), true, $K),
  771. t1 = keys.length,
  772. _i = 0;
  773. while (true) {
  774. if (!(_i < t1)) {
  775. allStrings = true;
  776. break;
  777. }
  778. if (typeof keys[_i] != "string") {
  779. allStrings = false;
  780. break;
  781. }
  782. ++_i;
  783. }
  784. if (allStrings) {
  785. object = {};
  786. for (containsProto = false, protoValue = null, $length = 0, _i = 0; _i < keys.length; keys.length === t1 || (0, H.throwConcurrentModificationError)(keys), ++_i) {
  787. k = keys[_i];
  788. v = other.$index(0, k);
  789. if (!J.$eq$(k, "__proto__")) {
  790. if (!object.hasOwnProperty(k))
  791. ++$length;
  792. object[k] = v;
  793. } else {
  794. protoValue = v;
  795. containsProto = true;
  796. }
  797. }
  798. if (containsProto)
  799. return new H.ConstantProtoMap(protoValue, $length + 1, object, keys, $K._eval$1("@<0>")._bind$1($V)._eval$1("ConstantProtoMap<1,2>"));
  800. return new H.ConstantStringMap($length, object, keys, $K._eval$1("@<0>")._bind$1($V)._eval$1("ConstantStringMap<1,2>"));
  801. }
  802. return new H.ConstantMapView(P.LinkedHashMap_LinkedHashMap$from(other, $K, $V), $K._eval$1("@<0>")._bind$1($V)._eval$1("ConstantMapView<1,2>"));
  803. },
  804. ConstantMap__throwUnmodifiable: function() {
  805. throw H.wrapException(P.UnsupportedError$("Cannot modify unmodifiable Map"));
  806. },
  807. instantiate1: function(f, T1) {
  808. var t1 = new H.Instantiation1(f, T1._eval$1("Instantiation1<0>"));
  809. t1.Instantiation$1(f);
  810. return t1;
  811. },
  812. unminifyOrTag: function(rawClassName) {
  813. var preserved = H.unmangleGlobalNameIfPreservedAnyways(rawClassName);
  814. if (typeof preserved == "string")
  815. return preserved;
  816. return rawClassName;
  817. },
  818. isJsIndexable: function(object, record) {
  819. var result;
  820. if (record != null) {
  821. result = record.x;
  822. if (result != null)
  823. return result;
  824. }
  825. return type$.JavaScriptIndexingBehavior_dynamic._is(object);
  826. },
  827. S: function(value) {
  828. var res;
  829. if (typeof value == "string")
  830. return value;
  831. if (typeof value == "number") {
  832. if (value !== 0)
  833. return "" + value;
  834. } else if (true === value)
  835. return "true";
  836. else if (false === value)
  837. return "false";
  838. else if (value == null)
  839. return "null";
  840. res = J.toString$0$(value);
  841. if (typeof res != "string")
  842. throw H.wrapException(H.argumentErrorValue(value));
  843. return res;
  844. },
  845. Primitives_objectHashCode: function(object) {
  846. var hash = object.$identityHash;
  847. if (hash == null) {
  848. hash = Math.random() * 0x3fffffff | 0;
  849. object.$identityHash = hash;
  850. }
  851. return hash;
  852. },
  853. Primitives_parseInt: function(source, radix) {
  854. var match, decimalMatch, maxCharCode, digitsPart, t1, i, _null = null;
  855. if (typeof source != "string")
  856. H.throwExpression(H.argumentErrorValue(source));
  857. match = /^\s*[+-]?((0x[a-f0-9]+)|(\d+)|([a-z0-9]+))\s*$/i.exec(source);
  858. if (match == null)
  859. return _null;
  860. decimalMatch = match[3];
  861. if (radix == null) {
  862. if (decimalMatch != null)
  863. return parseInt(source, 10);
  864. if (match[2] != null)
  865. return parseInt(source, 16);
  866. return _null;
  867. }
  868. if (radix < 2 || radix > 36)
  869. throw H.wrapException(P.RangeError$range(radix, 2, 36, "radix", _null));
  870. if (radix === 10 && decimalMatch != null)
  871. return parseInt(source, 10);
  872. if (radix < 10 || decimalMatch == null) {
  873. maxCharCode = radix <= 10 ? 47 + radix : 86 + radix;
  874. digitsPart = match[1];
  875. for (t1 = digitsPart.length, i = 0; i < t1; ++i)
  876. if ((C.JSString_methods._codeUnitAt$1(digitsPart, i) | 32) > maxCharCode)
  877. return _null;
  878. }
  879. return parseInt(source, radix);
  880. },
  881. Primitives_parseDouble: function(source) {
  882. var result, trimmed;
  883. if (!/^\s*[+-]?(?:Infinity|NaN|(?:\.\d+|\d+(?:\.\d*)?)(?:[eE][+-]?\d+)?)\s*$/.test(source))
  884. return null;
  885. result = parseFloat(source);
  886. if (isNaN(result)) {
  887. trimmed = C.JSString_methods.trim$0(source);
  888. if (trimmed === "NaN" || trimmed === "+NaN" || trimmed === "-NaN")
  889. return result;
  890. return null;
  891. }
  892. return result;
  893. },
  894. Primitives_objectTypeName: function(object) {
  895. var t1 = H.Primitives__objectTypeNameNewRti(object);
  896. return t1;
  897. },
  898. Primitives__objectTypeNameNewRti: function(object) {
  899. var dispatchName, $constructor, constructorName;
  900. if (object instanceof P.Object)
  901. return H._rtiToString(H.instanceType(object), null);
  902. if (J.getInterceptor$(object) === C.Interceptor_methods || type$.UnknownJavaScriptObject._is(object)) {
  903. dispatchName = C.C_JS_CONST(object);
  904. if (H.Primitives__saneNativeClassName(dispatchName))
  905. return dispatchName;
  906. $constructor = object.constructor;
  907. if (typeof $constructor == "function") {
  908. constructorName = $constructor.name;
  909. if (typeof constructorName == "string" && H.Primitives__saneNativeClassName(constructorName))
  910. return constructorName;
  911. }
  912. }
  913. return H._rtiToString(H.instanceType(object), null);
  914. },
  915. Primitives__saneNativeClassName: function($name) {
  916. var t1 = $name !== "Object" && $name !== "";
  917. return t1;
  918. },
  919. Primitives_currentUri: function() {
  920. if (!!self.location)
  921. return self.location.href;
  922. return null;
  923. },
  924. Primitives__fromCharCodeApply: function(array) {
  925. var result, i, i0, chunkEnd,
  926. end = J.get$length$asx(array);
  927. if (end <= 500)
  928. return String.fromCharCode.apply(null, array);
  929. for (result = "", i = 0; i < end; i = i0) {
  930. i0 = i + 500;
  931. chunkEnd = i0 < end ? i0 : end;
  932. result += String.fromCharCode.apply(null, array.slice(i, chunkEnd));
  933. }
  934. return result;
  935. },
  936. Primitives_stringFromCodePoints: function(codePoints) {
  937. var t1, i,
  938. a = H.setRuntimeTypeInfo([], type$.JSArray_int);
  939. for (t1 = J.get$iterator$ax(codePoints); t1.moveNext$0();) {
  940. i = t1.get$current(t1);
  941. if (!H._isInt(i))
  942. throw H.wrapException(H.argumentErrorValue(i));
  943. if (i <= 65535)
  944. a.push(i);
  945. else if (i <= 1114111) {
  946. a.push(55296 + (C.JSInt_methods._shrOtherPositive$1(i - 65536, 10) & 1023));
  947. a.push(56320 + (i & 1023));
  948. } else
  949. throw H.wrapException(H.argumentErrorValue(i));
  950. }
  951. return H.Primitives__fromCharCodeApply(a);
  952. },
  953. Primitives_stringFromCharCodes: function(charCodes) {
  954. var t1, i;
  955. for (t1 = J.get$iterator$ax(charCodes); t1.moveNext$0();) {
  956. i = t1.get$current(t1);
  957. if (!H._isInt(i))
  958. throw H.wrapException(H.argumentErrorValue(i));
  959. if (i < 0)
  960. throw H.wrapException(H.argumentErrorValue(i));
  961. if (i > 65535)
  962. return H.Primitives_stringFromCodePoints(charCodes);
  963. }
  964. return H.Primitives__fromCharCodeApply(charCodes);
  965. },
  966. Primitives_stringFromNativeUint8List: function(charCodes, start, end) {
  967. var i, result, i0, chunkEnd;
  968. if (end <= 500 && start === 0 && end === charCodes.length)
  969. return String.fromCharCode.apply(null, charCodes);
  970. for (i = start, result = ""; i < end; i = i0) {
  971. i0 = i + 500;
  972. chunkEnd = i0 < end ? i0 : end;
  973. result += String.fromCharCode.apply(null, charCodes.subarray(i, chunkEnd));
  974. }
  975. return result;
  976. },
  977. Primitives_stringFromCharCode: function(charCode) {
  978. var bits;
  979. if (0 <= charCode) {
  980. if (charCode <= 65535)
  981. return String.fromCharCode(charCode);
  982. if (charCode <= 1114111) {
  983. bits = charCode - 65536;
  984. return String.fromCharCode((55296 | C.JSInt_methods._shrOtherPositive$1(bits, 10)) >>> 0, 56320 | bits & 1023);
  985. }
  986. }
  987. throw H.wrapException(P.RangeError$range(charCode, 0, 1114111, null, null));
  988. },
  989. Primitives_lazyAsJsDate: function(receiver) {
  990. if (receiver.date === void 0)
  991. receiver.date = new Date(receiver._core$_value);
  992. return receiver.date;
  993. },
  994. Primitives_getYear: function(receiver) {
  995. var t1 = H.Primitives_lazyAsJsDate(receiver).getFullYear() + 0;
  996. return t1;
  997. },
  998. Primitives_getMonth: function(receiver) {
  999. var t1 = H.Primitives_lazyAsJsDate(receiver).getMonth() + 1;
  1000. return t1;
  1001. },
  1002. Primitives_getDay: function(receiver) {
  1003. var t1 = H.Primitives_lazyAsJsDate(receiver).getDate() + 0;
  1004. return t1;
  1005. },
  1006. Primitives_getHours: function(receiver) {
  1007. var t1 = H.Primitives_lazyAsJsDate(receiver).getHours() + 0;
  1008. return t1;
  1009. },
  1010. Primitives_getMinutes: function(receiver) {
  1011. var t1 = H.Primitives_lazyAsJsDate(receiver).getMinutes() + 0;
  1012. return t1;
  1013. },
  1014. Primitives_getSeconds: function(receiver) {
  1015. var t1 = H.Primitives_lazyAsJsDate(receiver).getSeconds() + 0;
  1016. return t1;
  1017. },
  1018. Primitives_getMilliseconds: function(receiver) {
  1019. var t1 = H.Primitives_lazyAsJsDate(receiver).getMilliseconds() + 0;
  1020. return t1;
  1021. },
  1022. Primitives_functionNoSuchMethod: function($function, positionalArguments, namedArguments) {
  1023. var $arguments, namedArgumentList, t1 = {};
  1024. t1.argumentCount = 0;
  1025. $arguments = [];
  1026. namedArgumentList = [];
  1027. t1.argumentCount = positionalArguments.length;
  1028. C.JSArray_methods.addAll$1($arguments, positionalArguments);
  1029. t1.names = "";
  1030. if (namedArguments != null && !namedArguments.get$isEmpty(namedArguments))
  1031. namedArguments.forEach$1(0, new H.Primitives_functionNoSuchMethod_closure(t1, namedArgumentList, $arguments));
  1032. "" + t1.argumentCount;
  1033. return J.noSuchMethod$1$($function, new H.JSInvocationMirror(C.Symbol_call, 0, $arguments, namedArgumentList, 0));
  1034. },
  1035. Primitives_applyFunction: function($function, positionalArguments, namedArguments) {
  1036. var t1, $arguments, argumentCount, jsStub;
  1037. if (positionalArguments instanceof Array)
  1038. t1 = namedArguments == null || namedArguments.get$isEmpty(namedArguments);
  1039. else
  1040. t1 = false;
  1041. if (t1) {
  1042. $arguments = positionalArguments;
  1043. argumentCount = $arguments.length;
  1044. if (argumentCount === 0) {
  1045. if (!!$function.call$0)
  1046. return $function.call$0();
  1047. } else if (argumentCount === 1) {
  1048. if (!!$function.call$1)
  1049. return $function.call$1($arguments[0]);
  1050. } else if (argumentCount === 2) {
  1051. if (!!$function.call$2)
  1052. return $function.call$2($arguments[0], $arguments[1]);
  1053. } else if (argumentCount === 3) {
  1054. if (!!$function.call$3)
  1055. return $function.call$3($arguments[0], $arguments[1], $arguments[2]);
  1056. } else if (argumentCount === 4) {
  1057. if (!!$function.call$4)
  1058. return $function.call$4($arguments[0], $arguments[1], $arguments[2], $arguments[3]);
  1059. } else if (argumentCount === 5)
  1060. if (!!$function.call$5)
  1061. return $function.call$5($arguments[0], $arguments[1], $arguments[2], $arguments[3], $arguments[4]);
  1062. jsStub = $function["call" + "$" + argumentCount];
  1063. if (jsStub != null)
  1064. return jsStub.apply($function, $arguments);
  1065. }
  1066. return H.Primitives__genericApplyFunction2($function, positionalArguments, namedArguments);
  1067. },
  1068. Primitives__genericApplyFunction2: function($function, positionalArguments, namedArguments) {
  1069. var $arguments, argumentCount, requiredParameterCount, defaultValuesClosure, t1, defaultValues, interceptor, jsFunction, keys, _i, used, t2;
  1070. if (positionalArguments != null)
  1071. $arguments = positionalArguments instanceof Array ? positionalArguments : P.List_List$from(positionalArguments, true, type$.dynamic);
  1072. else
  1073. $arguments = [];
  1074. argumentCount = $arguments.length;
  1075. requiredParameterCount = $function.$requiredArgCount;
  1076. if (argumentCount < requiredParameterCount)
  1077. return H.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
  1078. defaultValuesClosure = $function.$defaultValues;
  1079. t1 = defaultValuesClosure == null;
  1080. defaultValues = !t1 ? defaultValuesClosure() : null;
  1081. interceptor = J.getInterceptor$($function);
  1082. jsFunction = interceptor["call*"];
  1083. if (typeof jsFunction == "string")
  1084. jsFunction = interceptor[jsFunction];
  1085. if (t1) {
  1086. if (namedArguments != null && namedArguments.get$isNotEmpty(namedArguments))
  1087. return H.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
  1088. if (argumentCount === requiredParameterCount)
  1089. return jsFunction.apply($function, $arguments);
  1090. return H.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
  1091. }
  1092. if (defaultValues instanceof Array) {
  1093. if (namedArguments != null && namedArguments.get$isNotEmpty(namedArguments))
  1094. return H.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
  1095. if (argumentCount > requiredParameterCount + defaultValues.length)
  1096. return H.Primitives_functionNoSuchMethod($function, $arguments, null);
  1097. C.JSArray_methods.addAll$1($arguments, defaultValues.slice(argumentCount - requiredParameterCount));
  1098. return jsFunction.apply($function, $arguments);
  1099. } else {
  1100. if (argumentCount > requiredParameterCount)
  1101. return H.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
  1102. keys = Object.keys(defaultValues);
  1103. if (namedArguments == null)
  1104. for (t1 = keys.length, _i = 0; _i < keys.length; keys.length === t1 || (0, H.throwConcurrentModificationError)(keys), ++_i)
  1105. C.JSArray_methods.add$1($arguments, defaultValues[keys[_i]]);
  1106. else {
  1107. for (t1 = keys.length, used = 0, _i = 0; _i < keys.length; keys.length === t1 || (0, H.throwConcurrentModificationError)(keys), ++_i) {
  1108. t2 = keys[_i];
  1109. if (namedArguments.containsKey$1(t2)) {
  1110. ++used;
  1111. C.JSArray_methods.add$1($arguments, namedArguments.$index(0, t2));
  1112. } else
  1113. C.JSArray_methods.add$1($arguments, defaultValues[t2]);
  1114. }
  1115. if (used !== namedArguments.get$length(namedArguments))
  1116. return H.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
  1117. }
  1118. return jsFunction.apply($function, $arguments);
  1119. }
  1120. },
  1121. diagnoseIndexError: function(indexable, index) {
  1122. var $length, _s5_ = "index";
  1123. if (!H._isInt(index))
  1124. return new P.ArgumentError(true, index, _s5_, null);
  1125. $length = J.get$length$asx(indexable);
  1126. if (index < 0 || index >= $length)
  1127. return P.IndexError$(index, indexable, _s5_, null, $length);
  1128. return P.RangeError$value(index, _s5_, null);
  1129. },
  1130. diagnoseRangeError: function(start, end, $length) {
  1131. var _s13_ = "Invalid value";
  1132. if (start < 0 || start > $length)
  1133. return new P.RangeError(0, $length, true, start, "start", _s13_);
  1134. if (end != null)
  1135. if (end < start || end > $length)
  1136. return new P.RangeError(start, $length, true, end, "end", _s13_);
  1137. return new P.ArgumentError(true, end, "end", null);
  1138. },
  1139. argumentErrorValue: function(object) {
  1140. return new P.ArgumentError(true, object, null, null);
  1141. },
  1142. checkNum: function(value) {
  1143. if (typeof value != "number")
  1144. throw H.wrapException(H.argumentErrorValue(value));
  1145. return value;
  1146. },
  1147. wrapException: function(ex) {
  1148. var wrapper;
  1149. if (ex == null)
  1150. ex = new P.NullThrownError();
  1151. wrapper = new Error();
  1152. wrapper.dartException = ex;
  1153. if ("defineProperty" in Object) {
  1154. Object.defineProperty(wrapper, "message", {get: H.toStringWrapper});
  1155. wrapper.name = "";
  1156. } else
  1157. wrapper.toString = H.toStringWrapper;
  1158. return wrapper;
  1159. },
  1160. toStringWrapper: function() {
  1161. return J.toString$0$(this.dartException);
  1162. },
  1163. throwExpression: function(ex) {
  1164. throw H.wrapException(ex);
  1165. },
  1166. throwConcurrentModificationError: function(collection) {
  1167. throw H.wrapException(P.ConcurrentModificationError$(collection));
  1168. },
  1169. TypeErrorDecoder_extractPattern: function(message) {
  1170. var match, $arguments, argumentsExpr, expr, method, receiver;
  1171. message = H.quoteStringForRegExp(message.replace(String({}), '$receiver$'));
  1172. match = message.match(/\\\$[a-zA-Z]+\\\$/g);
  1173. if (match == null)
  1174. match = H.setRuntimeTypeInfo([], type$.JSArray_String);
  1175. $arguments = match.indexOf("\\$arguments\\$");
  1176. argumentsExpr = match.indexOf("\\$argumentsExpr\\$");
  1177. expr = match.indexOf("\\$expr\\$");
  1178. method = match.indexOf("\\$method\\$");
  1179. receiver = match.indexOf("\\$receiver\\$");
  1180. return new H.TypeErrorDecoder(message.replace(new RegExp('\\\\\\$arguments\\\\\\$', 'g'), '((?:x|[^x])*)').replace(new RegExp('\\\\\\$argumentsExpr\\\\\\$', 'g'), '((?:x|[^x])*)').replace(new RegExp('\\\\\\$expr\\\\\\$', 'g'), '((?:x|[^x])*)').replace(new RegExp('\\\\\\$method\\\\\\$', 'g'), '((?:x|[^x])*)').replace(new RegExp('\\\\\\$receiver\\\\\\$', 'g'), '((?:x|[^x])*)'), $arguments, argumentsExpr, expr, method, receiver);
  1181. },
  1182. TypeErrorDecoder_provokeCallErrorOn: function(expression) {
  1183. return function($expr$) {
  1184. var $argumentsExpr$ = '$arguments$';
  1185. try {
  1186. $expr$.$method$($argumentsExpr$);
  1187. } catch (e) {
  1188. return e.message;
  1189. }
  1190. }(expression);
  1191. },
  1192. TypeErrorDecoder_provokePropertyErrorOn: function(expression) {
  1193. return function($expr$) {
  1194. try {
  1195. $expr$.$method$;
  1196. } catch (e) {
  1197. return e.message;
  1198. }
  1199. }(expression);
  1200. },
  1201. NullError$: function(_message, match) {
  1202. return new H.NullError(_message, match == null ? null : match.method);
  1203. },
  1204. JsNoSuchMethodError$: function(_message, match) {
  1205. var t1 = match == null,
  1206. t2 = t1 ? null : match.method;
  1207. return new H.JsNoSuchMethodError(_message, t2, t1 ? null : match.receiver);
  1208. },
  1209. unwrapException: function(ex) {
  1210. var message, number, ieErrorCode, nsme, notClosure, nullCall, nullLiteralCall, undefCall, undefLiteralCall, nullProperty, undefProperty, undefLiteralProperty, match, t2, _null = null,
  1211. t1 = new H.unwrapException_saveStackTrace(ex);
  1212. if (ex == null)
  1213. return _null;
  1214. if (ex instanceof H.ExceptionAndStackTrace)
  1215. return t1.call$1(ex.dartException);
  1216. if (typeof ex !== "object")
  1217. return ex;
  1218. if ("dartException" in ex)
  1219. return t1.call$1(ex.dartException);
  1220. else if (!("message" in ex))
  1221. return ex;
  1222. message = ex.message;
  1223. if ("number" in ex && typeof ex.number == "number") {
  1224. number = ex.number;
  1225. ieErrorCode = number & 65535;
  1226. if ((C.JSInt_methods._shrOtherPositive$1(number, 16) & 8191) === 10)
  1227. switch (ieErrorCode) {
  1228. case 438:
  1229. return t1.call$1(H.JsNoSuchMethodError$(H.S(message) + " (Error " + ieErrorCode + ")", _null));
  1230. case 445:
  1231. case 5007:
  1232. return t1.call$1(H.NullError$(H.S(message) + " (Error " + ieErrorCode + ")", _null));
  1233. }
  1234. }
  1235. if (ex instanceof TypeError) {
  1236. nsme = $.$get$TypeErrorDecoder_noSuchMethodPattern();
  1237. notClosure = $.$get$TypeErrorDecoder_notClosurePattern();
  1238. nullCall = $.$get$TypeErrorDecoder_nullCallPattern();
  1239. nullLiteralCall = $.$get$TypeErrorDecoder_nullLiteralCallPattern();
  1240. undefCall = $.$get$TypeErrorDecoder_undefinedCallPattern();
  1241. undefLiteralCall = $.$get$TypeErrorDecoder_undefinedLiteralCallPattern();
  1242. nullProperty = $.$get$TypeErrorDecoder_nullPropertyPattern();
  1243. $.$get$TypeErrorDecoder_nullLiteralPropertyPattern();
  1244. undefProperty = $.$get$TypeErrorDecoder_undefinedPropertyPattern();
  1245. undefLiteralProperty = $.$get$TypeErrorDecoder_undefinedLiteralPropertyPattern();
  1246. match = nsme.matchTypeError$1(message);
  1247. if (match != null)
  1248. return t1.call$1(H.JsNoSuchMethodError$(message, match));
  1249. else {
  1250. match = notClosure.matchTypeError$1(message);
  1251. if (match != null) {
  1252. match.method = "call";
  1253. return t1.call$1(H.JsNoSuchMethodError$(message, match));
  1254. } else {
  1255. match = nullCall.matchTypeError$1(message);
  1256. if (match == null) {
  1257. match = nullLiteralCall.matchTypeError$1(message);
  1258. if (match == null) {
  1259. match = undefCall.matchTypeError$1(message);
  1260. if (match == null) {
  1261. match = undefLiteralCall.matchTypeError$1(message);
  1262. if (match == null) {
  1263. match = nullProperty.matchTypeError$1(message);
  1264. if (match == null) {
  1265. match = nullLiteralCall.matchTypeError$1(message);
  1266. if (match == null) {
  1267. match = undefProperty.matchTypeError$1(message);
  1268. if (match == null) {
  1269. match = undefLiteralProperty.matchTypeError$1(message);
  1270. t2 = match != null;
  1271. } else
  1272. t2 = true;
  1273. } else
  1274. t2 = true;
  1275. } else
  1276. t2 = true;
  1277. } else
  1278. t2 = true;
  1279. } else
  1280. t2 = true;
  1281. } else
  1282. t2 = true;
  1283. } else
  1284. t2 = true;
  1285. if (t2)
  1286. return t1.call$1(H.NullError$(message, match));
  1287. }
  1288. }
  1289. return t1.call$1(new H.UnknownJsTypeError(typeof message == "string" ? message : ""));
  1290. }
  1291. if (ex instanceof RangeError) {
  1292. if (typeof message == "string" && message.indexOf("call stack") !== -1)
  1293. return new P.StackOverflowError();
  1294. message = function(ex) {
  1295. try {
  1296. return String(ex);
  1297. } catch (e) {
  1298. }
  1299. return null;
  1300. }(ex);
  1301. return t1.call$1(new P.ArgumentError(false, _null, _null, typeof message == "string" ? message.replace(/^RangeError:\s*/, "") : message));
  1302. }
  1303. if (typeof InternalError == "function" && ex instanceof InternalError)
  1304. if (typeof message == "string" && message === "too much recursion")
  1305. return new P.StackOverflowError();
  1306. return ex;
  1307. },
  1308. getTraceFromException: function(exception) {
  1309. var trace;
  1310. if (exception instanceof H.ExceptionAndStackTrace)
  1311. return exception.stackTrace;
  1312. if (exception == null)
  1313. return new H._StackTrace(exception);
  1314. trace = exception.$cachedTrace;
  1315. if (trace != null)
  1316. return trace;
  1317. return exception.$cachedTrace = new H._StackTrace(exception);
  1318. },
  1319. objectHashCode: function(object) {
  1320. if (object == null || typeof object != 'object')
  1321. return J.get$hashCode$(object);
  1322. else
  1323. return H.Primitives_objectHashCode(object);
  1324. },
  1325. fillLiteralMap: function(keyValuePairs, result) {
  1326. var index, index0, index1,
  1327. $length = keyValuePairs.length;
  1328. for (index = 0; index < $length; index = index1) {
  1329. index0 = index + 1;
  1330. index1 = index0 + 1;
  1331. result.$indexSet(0, keyValuePairs[index], keyValuePairs[index0]);
  1332. }
  1333. return result;
  1334. },
  1335. fillLiteralSet: function(values, result) {
  1336. var index,
  1337. $length = values.length;
  1338. for (index = 0; index < $length; ++index)
  1339. result.add$1(0, values[index]);
  1340. return result;
  1341. },
  1342. invokeClosure: function(closure, numberOfArguments, arg1, arg2, arg3, arg4) {
  1343. switch (numberOfArguments) {
  1344. case 0:
  1345. return closure.call$0();
  1346. case 1:
  1347. return closure.call$1(arg1);
  1348. case 2:
  1349. return closure.call$2(arg1, arg2);
  1350. case 3:
  1351. return closure.call$3(arg1, arg2, arg3);
  1352. case 4:
  1353. return closure.call$4(arg1, arg2, arg3, arg4);
  1354. }
  1355. throw H.wrapException(new P._Exception("Unsupported number of arguments for wrapped closure"));
  1356. },
  1357. convertDartClosureToJS: function(closure, arity) {
  1358. var $function;
  1359. if (closure == null)
  1360. return null;
  1361. $function = closure.$identity;
  1362. if (!!$function)
  1363. return $function;
  1364. $function = function(closure, arity, invoke) {
  1365. return function(a1, a2, a3, a4) {
  1366. return invoke(closure, arity, a1, a2, a3, a4);
  1367. };
  1368. }(closure, arity, H.invokeClosure);
  1369. closure.$identity = $function;
  1370. return $function;
  1371. },
  1372. Closure_fromTearOff: function(receiver, functions, applyTrampolineIndex, reflectionInfo, isStatic, isIntercepted, propertyName) {
  1373. var $constructor, t1, trampoline, signatureFunction, applyTrampoline, i, stub, stubCallName, _null = null,
  1374. $function = functions[0],
  1375. callName = $function.$callName,
  1376. $prototype = isStatic ? Object.create(new H.StaticClosure().constructor.prototype) : Object.create(new H.BoundClosure(_null, _null, _null, _null).constructor.prototype);
  1377. $prototype.$initialize = $prototype.constructor;
  1378. if (isStatic)
  1379. $constructor = function static_tear_off() {
  1380. this.$initialize();
  1381. };
  1382. else {
  1383. t1 = $.Closure_functionCounter;
  1384. $.Closure_functionCounter = t1 + 1;
  1385. t1 = new Function("a,b,c,d" + t1, "this.$initialize(a,b,c,d" + t1 + ")");
  1386. $constructor = t1;
  1387. }
  1388. $prototype.constructor = $constructor;
  1389. $constructor.prototype = $prototype;
  1390. if (!isStatic) {
  1391. trampoline = H.Closure_forwardCallTo(receiver, $function, isIntercepted);
  1392. trampoline.$reflectionInfo = reflectionInfo;
  1393. } else {
  1394. $prototype.$static_name = propertyName;
  1395. trampoline = $function;
  1396. }
  1397. signatureFunction = H.Closure__computeSignatureFunctionNewRti(reflectionInfo, isStatic, isIntercepted);
  1398. $prototype.$signature = signatureFunction;
  1399. $prototype[callName] = trampoline;
  1400. for (applyTrampoline = trampoline, i = 1; i < functions.length; ++i) {
  1401. stub = functions[i];
  1402. stubCallName = stub.$callName;
  1403. if (stubCallName != null) {
  1404. stub = isStatic ? stub : H.Closure_forwardCallTo(receiver, stub, isIntercepted);
  1405. $prototype[stubCallName] = stub;
  1406. }
  1407. if (i === applyTrampolineIndex) {
  1408. stub.$reflectionInfo = reflectionInfo;
  1409. applyTrampoline = stub;
  1410. }
  1411. }
  1412. $prototype["call*"] = applyTrampoline;
  1413. $prototype.$requiredArgCount = $function.$requiredArgCount;
  1414. $prototype.$defaultValues = $function.$defaultValues;
  1415. return $constructor;
  1416. },
  1417. Closure__computeSignatureFunctionNewRti: function(functionType, isStatic, isIntercepted) {
  1418. var typeEvalMethod;
  1419. if (typeof functionType == "number")
  1420. return function(getType, t) {
  1421. return function() {
  1422. return getType(t);
  1423. };
  1424. }(H.getTypeFromTypesTable, functionType);
  1425. if (typeof functionType == "string") {
  1426. if (isStatic)
  1427. throw H.wrapException("Cannot compute signature for static tearoff.");
  1428. typeEvalMethod = isIntercepted ? H.BoundClosure_evalRecipeIntercepted : H.BoundClosure_evalRecipe;
  1429. return function(recipe, evalOnReceiver) {
  1430. return function() {
  1431. return evalOnReceiver(this, recipe);
  1432. };
  1433. }(functionType, typeEvalMethod);
  1434. }
  1435. throw H.wrapException("Error in functionType of tearoff");
  1436. },
  1437. Closure_cspForwardCall: function(arity, isSuperCall, stubName, $function) {
  1438. var getSelf = H.BoundClosure_selfOf;
  1439. switch (isSuperCall ? -1 : arity) {
  1440. case 0:
  1441. return function(n, S) {
  1442. return function() {
  1443. return S(this)[n]();
  1444. };
  1445. }(stubName, getSelf);
  1446. case 1:
  1447. return function(n, S) {
  1448. return function(a) {
  1449. return S(this)[n](a);
  1450. };
  1451. }(stubName, getSelf);
  1452. case 2:
  1453. return function(n, S) {
  1454. return function(a, b) {
  1455. return S(this)[n](a, b);
  1456. };
  1457. }(stubName, getSelf);
  1458. case 3:
  1459. return function(n, S) {
  1460. return function(a, b, c) {
  1461. return S(this)[n](a, b, c);
  1462. };
  1463. }(stubName, getSelf);
  1464. case 4:
  1465. return function(n, S) {
  1466. return function(a, b, c, d) {
  1467. return S(this)[n](a, b, c, d);
  1468. };
  1469. }(stubName, getSelf);
  1470. case 5:
  1471. return function(n, S) {
  1472. return function(a, b, c, d, e) {
  1473. return S(this)[n](a, b, c, d, e);
  1474. };
  1475. }(stubName, getSelf);
  1476. default:
  1477. return function(f, s) {
  1478. return function() {
  1479. return f.apply(s(this), arguments);
  1480. };
  1481. }($function, getSelf);
  1482. }
  1483. },
  1484. Closure_forwardCallTo: function(receiver, $function, isIntercepted) {
  1485. var stubName, arity, lookedUpFunction, t1, t2, selfName, $arguments;
  1486. if (isIntercepted)
  1487. return H.Closure_forwardInterceptedCallTo(receiver, $function);
  1488. stubName = $function.$stubName;
  1489. arity = $function.length;
  1490. lookedUpFunction = receiver[stubName];
  1491. t1 = $function == null ? lookedUpFunction == null : $function === lookedUpFunction;
  1492. t2 = !t1 || arity >= 27;
  1493. if (t2)
  1494. return H.Closure_cspForwardCall(arity, !t1, stubName, $function);
  1495. if (arity === 0) {
  1496. t1 = $.Closure_functionCounter;
  1497. $.Closure_functionCounter = t1 + 1;
  1498. selfName = "self" + H.S(t1);
  1499. t1 = "return function(){var " + selfName + " = this.";
  1500. t2 = $.BoundClosure_selfFieldNameCache;
  1501. return new Function(t1 + H.S(t2 == null ? $.BoundClosure_selfFieldNameCache = H.BoundClosure_computeFieldNamed("self") : t2) + ";return " + selfName + "." + H.S(stubName) + "();}")();
  1502. }
  1503. $arguments = "abcdefghijklmnopqrstuvwxyz".split("").splice(0, arity).join(",");
  1504. t1 = $.Closure_functionCounter;
  1505. $.Closure_functionCounter = t1 + 1;
  1506. $arguments += H.S(t1);
  1507. t1 = "return function(" + $arguments + "){return this.";
  1508. t2 = $.BoundClosure_selfFieldNameCache;
  1509. return new Function(t1 + H.S(t2 == null ? $.BoundClosure_selfFieldNameCache = H.BoundClosure_computeFieldNamed("self") : t2) + "." + H.S(stubName) + "(" + $arguments + ");}")();
  1510. },
  1511. Closure_cspForwardInterceptedCall: function(arity, isSuperCall, $name, $function) {
  1512. var getSelf = H.BoundClosure_selfOf,
  1513. getReceiver = H.BoundClosure_receiverOf;
  1514. switch (isSuperCall ? -1 : arity) {
  1515. case 0:
  1516. throw H.wrapException(H.RuntimeError$("Intercepted function with no arguments."));
  1517. case 1:
  1518. return function(n, s, r) {
  1519. return function() {
  1520. return s(this)[n](r(this));
  1521. };
  1522. }($name, getSelf, getReceiver);
  1523. case 2:
  1524. return function(n, s, r) {
  1525. return function(a) {
  1526. return s(this)[n](r(this), a);
  1527. };
  1528. }($name, getSelf, getReceiver);
  1529. case 3:
  1530. return function(n, s, r) {
  1531. return function(a, b) {
  1532. return s(this)[n](r(this), a, b);
  1533. };
  1534. }($name, getSelf, getReceiver);
  1535. case 4:
  1536. return function(n, s, r) {
  1537. return function(a, b, c) {
  1538. return s(this)[n](r(this), a, b, c);
  1539. };
  1540. }($name, getSelf, getReceiver);
  1541. case 5:
  1542. return function(n, s, r) {
  1543. return function(a, b, c, d) {
  1544. return s(this)[n](r(this), a, b, c, d);
  1545. };
  1546. }($name, getSelf, getReceiver);
  1547. case 6:
  1548. return function(n, s, r) {
  1549. return function(a, b, c, d, e) {
  1550. return s(this)[n](r(this), a, b, c, d, e);
  1551. };
  1552. }($name, getSelf, getReceiver);
  1553. default:
  1554. return function(f, s, r, a) {
  1555. return function() {
  1556. a = [r(this)];
  1557. Array.prototype.push.apply(a, arguments);
  1558. return f.apply(s(this), a);
  1559. };
  1560. }($function, getSelf, getReceiver);
  1561. }
  1562. },
  1563. Closure_forwardInterceptedCallTo: function(receiver, $function) {
  1564. var t2, stubName, arity, lookedUpFunction, t3, t4, $arguments,
  1565. t1 = $.BoundClosure_selfFieldNameCache;
  1566. if (t1 == null)
  1567. t1 = $.BoundClosure_selfFieldNameCache = H.BoundClosure_computeFieldNamed("self");
  1568. t2 = $.BoundClosure_receiverFieldNameCache;
  1569. if (t2 == null)
  1570. t2 = $.BoundClosure_receiverFieldNameCache = H.BoundClosure_computeFieldNamed("receiver");
  1571. stubName = $function.$stubName;
  1572. arity = $function.length;
  1573. lookedUpFunction = receiver[stubName];
  1574. t3 = $function == null ? lookedUpFunction == null : $function === lookedUpFunction;
  1575. t4 = !t3 || arity >= 28;
  1576. if (t4)
  1577. return H.Closure_cspForwardInterceptedCall(arity, !t3, stubName, $function);
  1578. if (arity === 1) {
  1579. t1 = "return function(){return this." + H.S(t1) + "." + H.S(stubName) + "(this." + H.S(t2) + ");";
  1580. t2 = $.Closure_functionCounter;
  1581. $.Closure_functionCounter = t2 + 1;
  1582. return new Function(t1 + H.S(t2) + "}")();
  1583. }
  1584. $arguments = "abcdefghijklmnopqrstuvwxyz".split("").splice(0, arity - 1).join(",");
  1585. t1 = "return function(" + $arguments + "){return this." + H.S(t1) + "." + H.S(stubName) + "(this." + H.S(t2) + ", " + $arguments + ");";
  1586. t2 = $.Closure_functionCounter;
  1587. $.Closure_functionCounter = t2 + 1;
  1588. return new Function(t1 + H.S(t2) + "}")();
  1589. },
  1590. closureFromTearOff: function(receiver, functions, applyTrampolineIndex, reflectionInfo, isStatic, isIntercepted, $name) {
  1591. return H.Closure_fromTearOff(receiver, functions, applyTrampolineIndex, reflectionInfo, !!isStatic, !!isIntercepted, $name);
  1592. },
  1593. BoundClosure_evalRecipe: function(closure, recipe) {
  1594. return H._Universe_evalInEnvironment(init.typeUniverse, H.instanceType(closure._self), recipe);
  1595. },
  1596. BoundClosure_evalRecipeIntercepted: function(closure, recipe) {
  1597. return H._Universe_evalInEnvironment(init.typeUniverse, H.instanceType(closure._receiver), recipe);
  1598. },
  1599. BoundClosure_selfOf: function(closure) {
  1600. return closure._self;
  1601. },
  1602. BoundClosure_receiverOf: function(closure) {
  1603. return closure._receiver;
  1604. },
  1605. BoundClosure_computeFieldNamed: function(fieldName) {
  1606. var t1, i, $name,
  1607. template = new H.BoundClosure("self", "target", "receiver", "name"),
  1608. names = J.JSArray_markFixedList(Object.getOwnPropertyNames(template));
  1609. for (t1 = names.length, i = 0; i < t1; ++i) {
  1610. $name = names[i];
  1611. if (template[$name] === fieldName)
  1612. return $name;
  1613. }
  1614. },
  1615. throwCyclicInit: function(staticName) {
  1616. throw H.wrapException(new P.CyclicInitializationError(staticName));
  1617. },
  1618. RuntimeError$: function(message) {
  1619. return new H.RuntimeError(message);
  1620. },
  1621. getIsolateAffinityTag: function($name) {
  1622. return init.getIsolateTag($name);
  1623. },
  1624. setRuntimeTypeInfo: function(target, rti) {
  1625. target[init.arrayRti] = rti;
  1626. return target;
  1627. },
  1628. getRuntimeTypeInfo: function(target) {
  1629. if (target == null)
  1630. return null;
  1631. return target.$ti;
  1632. },
  1633. getRuntimeTypeArguments: function(interceptor, object, substitutionName) {
  1634. return H.substitute(interceptor["$as" + H.S(substitutionName)], H.getRuntimeTypeInfo(object));
  1635. },
  1636. getRuntimeType: function(object) {
  1637. var rti = object instanceof H.Closure ? H.closureFunctionType(object) : null;
  1638. return H.createRuntimeType(rti == null ? H.instanceType(object) : rti);
  1639. },
  1640. substitute: function(substitution, $arguments) {
  1641. if (substitution == null)
  1642. return $arguments;
  1643. substitution = substitution.apply(null, $arguments);
  1644. if (substitution == null)
  1645. return null;
  1646. if (Array.isArray(substitution))
  1647. return substitution;
  1648. if (typeof substitution == "function")
  1649. return substitution.apply(null, $arguments);
  1650. return $arguments;
  1651. },
  1652. computeSignature: function(signature, context, contextName) {
  1653. return signature.apply(context, H.substitute(J.getInterceptor$(context)["$as" + H.S(contextName)], H.getRuntimeTypeInfo(context)));
  1654. },
  1655. defineProperty: function(obj, property, value) {
  1656. Object.defineProperty(obj, property, {value: value, enumerable: false, writable: true, configurable: true});
  1657. },
  1658. lookupAndCacheInterceptor: function(obj) {
  1659. var interceptor, interceptorClass, mark, t1,
  1660. tag = $.getTagFunction.call$1(obj),
  1661. record = $.dispatchRecordsForInstanceTags[tag];
  1662. if (record != null) {
  1663. Object.defineProperty(obj, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true});
  1664. return record.i;
  1665. }
  1666. interceptor = $.interceptorsForUncacheableTags[tag];
  1667. if (interceptor != null)
  1668. return interceptor;
  1669. interceptorClass = init.interceptorsByTag[tag];
  1670. if (interceptorClass == null) {
  1671. tag = $.alternateTagFunction.call$2(obj, tag);
  1672. if (tag != null) {
  1673. record = $.dispatchRecordsForInstanceTags[tag];
  1674. if (record != null) {
  1675. Object.defineProperty(obj, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true});
  1676. return record.i;
  1677. }
  1678. interceptor = $.interceptorsForUncacheableTags[tag];
  1679. if (interceptor != null)
  1680. return interceptor;
  1681. interceptorClass = init.interceptorsByTag[tag];
  1682. }
  1683. }
  1684. if (interceptorClass == null)
  1685. return null;
  1686. interceptor = interceptorClass.prototype;
  1687. mark = tag[0];
  1688. if (mark === "!") {
  1689. record = H.makeLeafDispatchRecord(interceptor);
  1690. $.dispatchRecordsForInstanceTags[tag] = record;
  1691. Object.defineProperty(obj, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true});
  1692. return record.i;
  1693. }
  1694. if (mark === "~") {
  1695. $.interceptorsForUncacheableTags[tag] = interceptor;
  1696. return interceptor;
  1697. }
  1698. if (mark === "-") {
  1699. t1 = H.makeLeafDispatchRecord(interceptor);
  1700. Object.defineProperty(Object.getPrototypeOf(obj), init.dispatchPropertyName, {value: t1, enumerable: false, writable: true, configurable: true});
  1701. return t1.i;
  1702. }
  1703. if (mark === "+")
  1704. return H.patchInteriorProto(obj, interceptor);
  1705. if (mark === "*")
  1706. throw H.wrapException(P.UnimplementedError$(tag));
  1707. if (init.leafTags[tag] === true) {
  1708. t1 = H.makeLeafDispatchRecord(interceptor);
  1709. Object.defineProperty(Object.getPrototypeOf(obj), init.dispatchPropertyName, {value: t1, enumerable: false, writable: true, configurable: true});
  1710. return t1.i;
  1711. } else
  1712. return H.patchInteriorProto(obj, interceptor);
  1713. },
  1714. patchInteriorProto: function(obj, interceptor) {
  1715. var proto = Object.getPrototypeOf(obj);
  1716. Object.defineProperty(proto, init.dispatchPropertyName, {value: J.makeDispatchRecord(interceptor, proto, null, null), enumerable: false, writable: true, configurable: true});
  1717. return interceptor;
  1718. },
  1719. makeLeafDispatchRecord: function(interceptor) {
  1720. return J.makeDispatchRecord(interceptor, false, null, !!interceptor.$isJavaScriptIndexingBehavior);
  1721. },
  1722. makeDefaultDispatchRecord: function(tag, interceptorClass, proto) {
  1723. var interceptor = interceptorClass.prototype;
  1724. if (init.leafTags[tag] === true)
  1725. return H.makeLeafDispatchRecord(interceptor);
  1726. else
  1727. return J.makeDispatchRecord(interceptor, proto, null, null);
  1728. },
  1729. initNativeDispatch: function() {
  1730. if (true === $.initNativeDispatchFlag)
  1731. return;
  1732. $.initNativeDispatchFlag = true;
  1733. H.initNativeDispatchContinue();
  1734. },
  1735. initNativeDispatchContinue: function() {
  1736. var map, tags, fun, i, tag, proto, record, interceptorClass;
  1737. $.dispatchRecordsForInstanceTags = Object.create(null);
  1738. $.interceptorsForUncacheableTags = Object.create(null);
  1739. H.initHooks();
  1740. map = init.interceptorsByTag;
  1741. tags = Object.getOwnPropertyNames(map);
  1742. if (typeof window != "undefined") {
  1743. window;
  1744. fun = function() {
  1745. };
  1746. for (i = 0; i < tags.length; ++i) {
  1747. tag = tags[i];
  1748. proto = $.prototypeForTagFunction.call$1(tag);
  1749. if (proto != null) {
  1750. record = H.makeDefaultDispatchRecord(tag, map[tag], proto);
  1751. if (record != null) {
  1752. Object.defineProperty(proto, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true});
  1753. fun.prototype = proto;
  1754. }
  1755. }
  1756. }
  1757. }
  1758. for (i = 0; i < tags.length; ++i) {
  1759. tag = tags[i];
  1760. if (/^[A-Za-z_]/.test(tag)) {
  1761. interceptorClass = map[tag];
  1762. map["!" + tag] = interceptorClass;
  1763. map["~" + tag] = interceptorClass;
  1764. map["-" + tag] = interceptorClass;
  1765. map["+" + tag] = interceptorClass;
  1766. map["*" + tag] = interceptorClass;
  1767. }
  1768. }
  1769. },
  1770. initHooks: function() {
  1771. var transformers, i, transformer, getTag, getUnknownTag, prototypeForTag,
  1772. hooks = C.C_JS_CONST0();
  1773. hooks = H.applyHooksTransformer(C.C_JS_CONST1, H.applyHooksTransformer(C.C_JS_CONST2, H.applyHooksTransformer(C.C_JS_CONST3, H.applyHooksTransformer(C.C_JS_CONST3, H.applyHooksTransformer(C.C_JS_CONST4, H.applyHooksTransformer(C.C_JS_CONST5, H.applyHooksTransformer(C.C_JS_CONST6(C.C_JS_CONST), hooks)))))));
  1774. if (typeof dartNativeDispatchHooksTransformer != "undefined") {
  1775. transformers = dartNativeDispatchHooksTransformer;
  1776. if (typeof transformers == "function")
  1777. transformers = [transformers];
  1778. if (transformers.constructor == Array)
  1779. for (i = 0; i < transformers.length; ++i) {
  1780. transformer = transformers[i];
  1781. if (typeof transformer == "function")
  1782. hooks = transformer(hooks) || hooks;
  1783. }
  1784. }
  1785. getTag = hooks.getTag;
  1786. getUnknownTag = hooks.getUnknownTag;
  1787. prototypeForTag = hooks.prototypeForTag;
  1788. $.getTagFunction = new H.initHooks_closure(getTag);
  1789. $.alternateTagFunction = new H.initHooks_closure0(getUnknownTag);
  1790. $.prototypeForTagFunction = new H.initHooks_closure1(prototypeForTag);
  1791. },
  1792. applyHooksTransformer: function(transformer, hooks) {
  1793. return transformer(hooks) || hooks;
  1794. },
  1795. JSSyntaxRegExp_makeNative: function(source, multiLine, caseSensitive, unicode, dotAll, global) {
  1796. var m = multiLine ? "m" : "",
  1797. i = caseSensitive ? "" : "i",
  1798. u = unicode ? "u" : "",
  1799. s = dotAll ? "s" : "",
  1800. g = global ? "g" : "",
  1801. regexp = function(source, modifiers) {
  1802. try {
  1803. return new RegExp(source, modifiers);
  1804. } catch (e) {
  1805. return e;
  1806. }
  1807. }(source, m + i + u + s + g);
  1808. if (regexp instanceof RegExp)
  1809. return regexp;
  1810. throw H.wrapException(P.FormatException$("Illegal RegExp pattern (" + String(regexp) + ")", source, null));
  1811. },
  1812. stringContainsUnchecked: function(receiver, other, startIndex) {
  1813. var t1, t2;
  1814. if (typeof other == "string")
  1815. return receiver.indexOf(other, startIndex) >= 0;
  1816. else if (other instanceof H.JSSyntaxRegExp) {
  1817. t1 = C.JSString_methods.substring$1(receiver, startIndex);
  1818. t2 = other._nativeRegExp;
  1819. return t2.test(t1);
  1820. } else {
  1821. t1 = J.allMatches$1$s(other, C.JSString_methods.substring$1(receiver, startIndex));
  1822. return !t1.get$isEmpty(t1);
  1823. }
  1824. },
  1825. escapeReplacement: function(replacement) {
  1826. if (replacement.indexOf("$", 0) >= 0)
  1827. return replacement.replace(/\$/g, "$$$$");
  1828. return replacement;
  1829. },
  1830. stringReplaceFirstRE: function(receiver, regexp, replacement, startIndex) {
  1831. var match = regexp._execGlobal$2(receiver, startIndex);
  1832. if (match == null)
  1833. return receiver;
  1834. return H.stringReplaceRangeUnchecked(receiver, match._match.index, match.get$end(match), replacement);
  1835. },
  1836. quoteStringForRegExp: function(string) {
  1837. if (/[[\]{}()*+?.\\^$|]/.test(string))
  1838. return string.replace(/[[\]{}()*+?.\\^$|]/g, "\\$&");
  1839. return string;
  1840. },
  1841. stringReplaceAllUnchecked: function(receiver, pattern, replacement) {
  1842. var nativeRegexp;
  1843. if (typeof pattern == "string")
  1844. return H.stringReplaceAllUncheckedString(receiver, pattern, replacement);
  1845. if (pattern instanceof H.JSSyntaxRegExp) {
  1846. nativeRegexp = pattern.get$_nativeGlobalVersion();
  1847. nativeRegexp.lastIndex = 0;
  1848. return receiver.replace(nativeRegexp, H.escapeReplacement(replacement));
  1849. }
  1850. if (pattern == null)
  1851. H.throwExpression(H.argumentErrorValue(pattern));
  1852. throw H.wrapException("String.replaceAll(Pattern) UNIMPLEMENTED");
  1853. },
  1854. stringReplaceAllUncheckedString: function(receiver, pattern, replacement) {
  1855. var $length, t1, i, index;
  1856. if (pattern === "") {
  1857. if (receiver === "")
  1858. return replacement;
  1859. $length = receiver.length;
  1860. for (t1 = replacement, i = 0; i < $length; ++i)
  1861. t1 = t1 + receiver[i] + replacement;
  1862. return t1.charCodeAt(0) == 0 ? t1 : t1;
  1863. }
  1864. index = receiver.indexOf(pattern, 0);
  1865. if (index < 0)
  1866. return receiver;
  1867. if (receiver.length < 500 || replacement.indexOf("$", 0) >= 0)
  1868. return receiver.split(pattern).join(replacement);
  1869. return receiver.replace(new RegExp(H.quoteStringForRegExp(pattern), 'g'), H.escapeReplacement(replacement));
  1870. },
  1871. stringReplaceFirstUnchecked: function(receiver, pattern, replacement, startIndex) {
  1872. var index, t1, matches, match;
  1873. if (typeof pattern == "string") {
  1874. index = receiver.indexOf(pattern, startIndex);
  1875. if (index < 0)
  1876. return receiver;
  1877. return H.stringReplaceRangeUnchecked(receiver, index, index + pattern.length, replacement);
  1878. }
  1879. if (pattern instanceof H.JSSyntaxRegExp)
  1880. return startIndex === 0 ? receiver.replace(pattern._nativeRegExp, H.escapeReplacement(replacement)) : H.stringReplaceFirstRE(receiver, pattern, replacement, startIndex);
  1881. if (pattern == null)
  1882. H.throwExpression(H.argumentErrorValue(pattern));
  1883. t1 = J.allMatches$2$s(pattern, receiver, startIndex);
  1884. matches = t1.get$iterator(t1);
  1885. if (!matches.moveNext$0())
  1886. return receiver;
  1887. match = matches.get$current(matches);
  1888. return C.JSString_methods.replaceRange$3(receiver, match.get$start(match), match.get$end(match), replacement);
  1889. },
  1890. stringReplaceRangeUnchecked: function(receiver, start, end, replacement) {
  1891. var prefix = receiver.substring(0, start),
  1892. suffix = receiver.substring(end);
  1893. return prefix + H.S(replacement) + suffix;
  1894. },
  1895. ConstantMapView: function ConstantMapView(t0, t1) {
  1896. this._collection$_map = t0;
  1897. this.$ti = t1;
  1898. },
  1899. ConstantMap: function ConstantMap() {
  1900. },
  1901. ConstantStringMap: function ConstantStringMap(t0, t1, t2, t3) {
  1902. var _ = this;
  1903. _.__js_helper$_length = t0;
  1904. _._jsObject = t1;
  1905. _.__js_helper$_keys = t2;
  1906. _.$ti = t3;
  1907. },
  1908. ConstantStringMap_values_closure: function ConstantStringMap_values_closure(t0) {
  1909. this.$this = t0;
  1910. },
  1911. ConstantProtoMap: function ConstantProtoMap(t0, t1, t2, t3, t4) {
  1912. var _ = this;
  1913. _._protoValue = t0;
  1914. _.__js_helper$_length = t1;
  1915. _._jsObject = t2;
  1916. _.__js_helper$_keys = t3;
  1917. _.$ti = t4;
  1918. },
  1919. _ConstantMapKeyIterable: function _ConstantMapKeyIterable(t0, t1) {
  1920. this._map = t0;
  1921. this.$ti = t1;
  1922. },
  1923. Instantiation: function Instantiation() {
  1924. },
  1925. Instantiation1: function Instantiation1(t0, t1) {
  1926. this._genericClosure = t0;
  1927. this.$ti = t1;
  1928. },
  1929. JSInvocationMirror: function JSInvocationMirror(t0, t1, t2, t3, t4) {
  1930. var _ = this;
  1931. _.__js_helper$_memberName = t0;
  1932. _.__js_helper$_kind = t1;
  1933. _._arguments = t2;
  1934. _._namedArgumentNames = t3;
  1935. _._typeArgumentCount = t4;
  1936. },
  1937. Primitives_functionNoSuchMethod_closure: function Primitives_functionNoSuchMethod_closure(t0, t1, t2) {
  1938. this._box_0 = t0;
  1939. this.namedArgumentList = t1;
  1940. this.$arguments = t2;
  1941. },
  1942. TypeErrorDecoder: function TypeErrorDecoder(t0, t1, t2, t3, t4, t5) {
  1943. var _ = this;
  1944. _._pattern = t0;
  1945. _._arguments = t1;
  1946. _._argumentsExpr = t2;
  1947. _._expr = t3;
  1948. _._method = t4;
  1949. _._receiver = t5;
  1950. },
  1951. NullError: function NullError(t0, t1) {
  1952. this.__js_helper$_message = t0;
  1953. this._method = t1;
  1954. },
  1955. JsNoSuchMethodError: function JsNoSuchMethodError(t0, t1, t2) {
  1956. this.__js_helper$_message = t0;
  1957. this._method = t1;
  1958. this._receiver = t2;
  1959. },
  1960. UnknownJsTypeError: function UnknownJsTypeError(t0) {
  1961. this.__js_helper$_message = t0;
  1962. },
  1963. ExceptionAndStackTrace: function ExceptionAndStackTrace(t0, t1) {
  1964. this.dartException = t0;
  1965. this.stackTrace = t1;
  1966. },
  1967. unwrapException_saveStackTrace: function unwrapException_saveStackTrace(t0) {
  1968. this.ex = t0;
  1969. },
  1970. _StackTrace: function _StackTrace(t0) {
  1971. this._exception = t0;
  1972. this._trace = null;
  1973. },
  1974. Closure: function Closure() {
  1975. },
  1976. TearOffClosure: function TearOffClosure() {
  1977. },
  1978. StaticClosure: function StaticClosure() {
  1979. },
  1980. BoundClosure: function BoundClosure(t0, t1, t2, t3) {
  1981. var _ = this;
  1982. _._self = t0;
  1983. _._target = t1;
  1984. _._receiver = t2;
  1985. _.__js_helper$_name = t3;
  1986. },
  1987. RuntimeError: function RuntimeError(t0) {
  1988. this.message = t0;
  1989. },
  1990. JsLinkedHashMap: function JsLinkedHashMap(t0) {
  1991. var _ = this;
  1992. _.__js_helper$_length = 0;
  1993. _._last = _._first = _.__js_helper$_rest = _._nums = _._strings = null;
  1994. _._modifications = 0;
  1995. _.$ti = t0;
  1996. },
  1997. JsLinkedHashMap_values_closure: function JsLinkedHashMap_values_closure(t0) {
  1998. this.$this = t0;
  1999. },
  2000. JsLinkedHashMap_addAll_closure: function JsLinkedHashMap_addAll_closure(t0) {
  2001. this.$this = t0;
  2002. },
  2003. LinkedHashMapCell: function LinkedHashMapCell(t0, t1) {
  2004. var _ = this;
  2005. _.hashMapCellKey = t0;
  2006. _.hashMapCellValue = t1;
  2007. _._previous = _._next = null;
  2008. },
  2009. LinkedHashMapKeyIterable: function LinkedHashMapKeyIterable(t0, t1) {
  2010. this._map = t0;
  2011. this.$ti = t1;
  2012. },
  2013. LinkedHashMapKeyIterator: function LinkedHashMapKeyIterator(t0, t1) {
  2014. var _ = this;
  2015. _._map = t0;
  2016. _._modifications = t1;
  2017. _.__js_helper$_current = _._cell = null;
  2018. },
  2019. initHooks_closure: function initHooks_closure(t0) {
  2020. this.getTag = t0;
  2021. },
  2022. initHooks_closure0: function initHooks_closure0(t0) {
  2023. this.getUnknownTag = t0;
  2024. },
  2025. initHooks_closure1: function initHooks_closure1(t0) {
  2026. this.prototypeForTag = t0;
  2027. },
  2028. JSSyntaxRegExp: function JSSyntaxRegExp(t0, t1) {
  2029. var _ = this;
  2030. _.pattern = t0;
  2031. _._nativeRegExp = t1;
  2032. _._nativeAnchoredRegExp = _._nativeGlobalRegExp = null;
  2033. },
  2034. _MatchImplementation: function _MatchImplementation(t0) {
  2035. this._match = t0;
  2036. },
  2037. _AllMatchesIterable: function _AllMatchesIterable(t0, t1, t2) {
  2038. this._re = t0;
  2039. this.__js_helper$_string = t1;
  2040. this.__js_helper$_start = t2;
  2041. },
  2042. _AllMatchesIterator: function _AllMatchesIterator(t0, t1, t2) {
  2043. var _ = this;
  2044. _._regExp = t0;
  2045. _.__js_helper$_string = t1;
  2046. _._nextIndex = t2;
  2047. _.__js_helper$_current = null;
  2048. },
  2049. StringMatch: function StringMatch(t0, t1) {
  2050. this.start = t0;
  2051. this.pattern = t1;
  2052. },
  2053. _StringAllMatchesIterable: function _StringAllMatchesIterable(t0, t1, t2) {
  2054. this._input = t0;
  2055. this._pattern = t1;
  2056. this.__js_helper$_index = t2;
  2057. },
  2058. _StringAllMatchesIterator: function _StringAllMatchesIterator(t0, t1, t2) {
  2059. var _ = this;
  2060. _._input = t0;
  2061. _._pattern = t1;
  2062. _.__js_helper$_index = t2;
  2063. _.__js_helper$_current = null;
  2064. },
  2065. _ensureNativeList: function(list) {
  2066. return list;
  2067. },
  2068. NativeInt8List__create1: function(arg) {
  2069. return new Int8Array(arg);
  2070. },
  2071. NativeUint8List_NativeUint8List$view: function(buffer, offsetInBytes, $length) {
  2072. var t1;
  2073. if (!H._isInt(offsetInBytes))
  2074. H.throwExpression(P.ArgumentError$("Invalid view offsetInBytes " + H.S(offsetInBytes)));
  2075. t1 = new Uint8Array(buffer, offsetInBytes, $length);
  2076. return t1;
  2077. },
  2078. _checkValidIndex: function(index, list, $length) {
  2079. if (index >>> 0 !== index || index >= $length)
  2080. throw H.wrapException(H.diagnoseIndexError(list, index));
  2081. },
  2082. _checkValidRange: function(start, end, $length) {
  2083. var t1;
  2084. if (!(start >>> 0 !== start))
  2085. if (end == null)
  2086. t1 = start > $length;
  2087. else
  2088. t1 = end >>> 0 !== end || start > end || end > $length;
  2089. else
  2090. t1 = true;
  2091. if (t1)
  2092. throw H.wrapException(H.diagnoseRangeError(start, end, $length));
  2093. if (end == null)
  2094. return $length;
  2095. return end;
  2096. },
  2097. NativeTypedData: function NativeTypedData() {
  2098. },
  2099. NativeTypedArray: function NativeTypedArray() {
  2100. },
  2101. NativeTypedArrayOfDouble: function NativeTypedArrayOfDouble() {
  2102. },
  2103. NativeTypedArrayOfInt: function NativeTypedArrayOfInt() {
  2104. },
  2105. NativeFloat32List: function NativeFloat32List() {
  2106. },
  2107. NativeFloat64List: function NativeFloat64List() {
  2108. },
  2109. NativeInt16List: function NativeInt16List() {
  2110. },
  2111. NativeInt32List: function NativeInt32List() {
  2112. },
  2113. NativeInt8List: function NativeInt8List() {
  2114. },
  2115. NativeUint16List: function NativeUint16List() {
  2116. },
  2117. NativeUint32List: function NativeUint32List() {
  2118. },
  2119. NativeUint8ClampedList: function NativeUint8ClampedList() {
  2120. },
  2121. NativeUint8List: function NativeUint8List() {
  2122. },
  2123. _NativeTypedArrayOfDouble_NativeTypedArray_ListMixin: function _NativeTypedArrayOfDouble_NativeTypedArray_ListMixin() {
  2124. },
  2125. _NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin: function _NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin() {
  2126. },
  2127. _NativeTypedArrayOfInt_NativeTypedArray_ListMixin: function _NativeTypedArrayOfInt_NativeTypedArray_ListMixin() {
  2128. },
  2129. _NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin: function _NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin() {
  2130. },
  2131. Rti__getQuestionFromStar: function(universe, rti) {
  2132. var question = rti._precomputed1;
  2133. return question == null ? rti._precomputed1 = H._Universe__lookupQuestionRti(universe, rti._primary, true) : question;
  2134. },
  2135. Rti__getFutureFromFutureOr: function(universe, rti) {
  2136. var future = rti._precomputed1;
  2137. return future == null ? rti._precomputed1 = H._Universe__lookupInterfaceRti(universe, "Future", [rti._primary]) : future;
  2138. },
  2139. Rti__isUnionOfFunctionType: function(rti) {
  2140. var kind = rti._kind;
  2141. if (kind === 6 || kind === 7 || kind === 8)
  2142. return H.Rti__isUnionOfFunctionType(rti._primary);
  2143. return kind === 11 || kind === 12;
  2144. },
  2145. Rti__getCanonicalRecipe: function(rti) {
  2146. return rti._canonicalRecipe;
  2147. },
  2148. findType: function(recipe) {
  2149. return H._Universe_eval(init.typeUniverse, recipe, false);
  2150. },
  2151. instantiatedGenericFunctionType: function(genericFunctionRti, instantiationRti) {
  2152. var t1, cache, key, probe, rti;
  2153. if (genericFunctionRti == null)
  2154. return null;
  2155. t1 = instantiationRti._rest;
  2156. cache = genericFunctionRti._bindCache;
  2157. if (cache == null)
  2158. cache = genericFunctionRti._bindCache = new Map();
  2159. key = instantiationRti._canonicalRecipe;
  2160. probe = cache.get(key);
  2161. if (probe != null)
  2162. return probe;
  2163. rti = H._substitute(init.typeUniverse, genericFunctionRti._primary, t1, 0);
  2164. cache.set(key, rti);
  2165. return rti;
  2166. },
  2167. _substitute: function(universe, rti, typeArguments, depth) {
  2168. var baseType, substitutedBaseType, interfaceTypeArguments, substitutedInterfaceTypeArguments, base, substitutedBase, $arguments, substitutedArguments, returnType, substitutedReturnType, functionParameters, substitutedFunctionParameters, bounds, substitutedBounds, index, argument,
  2169. kind = rti._kind;
  2170. switch (kind) {
  2171. case 5:
  2172. case 1:
  2173. case 2:
  2174. case 3:
  2175. case 4:
  2176. return rti;
  2177. case 6:
  2178. baseType = rti._primary;
  2179. substitutedBaseType = H._substitute(universe, baseType, typeArguments, depth);
  2180. if (substitutedBaseType === baseType)
  2181. return rti;
  2182. return H._Universe__lookupStarRti(universe, substitutedBaseType, true);
  2183. case 7:
  2184. baseType = rti._primary;
  2185. substitutedBaseType = H._substitute(universe, baseType, typeArguments, depth);
  2186. if (substitutedBaseType === baseType)
  2187. return rti;
  2188. return H._Universe__lookupQuestionRti(universe, substitutedBaseType, true);
  2189. case 8:
  2190. baseType = rti._primary;
  2191. substitutedBaseType = H._substitute(universe, baseType, typeArguments, depth);
  2192. if (substitutedBaseType === baseType)
  2193. return rti;
  2194. return H._Universe__lookupFutureOrRti(universe, substitutedBaseType, true);
  2195. case 9:
  2196. interfaceTypeArguments = rti._rest;
  2197. substitutedInterfaceTypeArguments = H._substituteArray(universe, interfaceTypeArguments, typeArguments, depth);
  2198. if (substitutedInterfaceTypeArguments === interfaceTypeArguments)
  2199. return rti;
  2200. return H._Universe__lookupInterfaceRti(universe, rti._primary, substitutedInterfaceTypeArguments);
  2201. case 10:
  2202. base = rti._primary;
  2203. substitutedBase = H._substitute(universe, base, typeArguments, depth);
  2204. $arguments = rti._rest;
  2205. substitutedArguments = H._substituteArray(universe, $arguments, typeArguments, depth);
  2206. if (substitutedBase === base && substitutedArguments === $arguments)
  2207. return rti;
  2208. return H._Universe__lookupBindingRti(universe, substitutedBase, substitutedArguments);
  2209. case 11:
  2210. returnType = rti._primary;
  2211. substitutedReturnType = H._substitute(universe, returnType, typeArguments, depth);
  2212. functionParameters = rti._rest;
  2213. substitutedFunctionParameters = H._substituteFunctionParameters(universe, functionParameters, typeArguments, depth);
  2214. if (substitutedReturnType === returnType && substitutedFunctionParameters === functionParameters)
  2215. return rti;
  2216. return H._Universe__lookupFunctionRti(universe, substitutedReturnType, substitutedFunctionParameters);
  2217. case 12:
  2218. bounds = rti._rest;
  2219. depth += bounds.length;
  2220. substitutedBounds = H._substituteArray(universe, bounds, typeArguments, depth);
  2221. base = rti._primary;
  2222. substitutedBase = H._substitute(universe, base, typeArguments, depth);
  2223. if (substitutedBounds === bounds && substitutedBase === base)
  2224. return rti;
  2225. return H._Universe__lookupGenericFunctionRti(universe, substitutedBase, substitutedBounds, true);
  2226. case 13:
  2227. index = rti._primary;
  2228. if (index < depth)
  2229. return rti;
  2230. argument = typeArguments[index - depth];
  2231. if (argument == null)
  2232. return rti;
  2233. return argument;
  2234. default:
  2235. throw H.wrapException(P.AssertionError$("Attempted to substitute unexpected RTI kind " + kind));
  2236. }
  2237. },
  2238. _substituteArray: function(universe, rtiArray, typeArguments, depth) {
  2239. var changed, i, rti, substitutedRti,
  2240. $length = rtiArray.length,
  2241. result = [];
  2242. for (changed = false, i = 0; i < $length; ++i) {
  2243. rti = rtiArray[i];
  2244. substitutedRti = H._substitute(universe, rti, typeArguments, depth);
  2245. if (substitutedRti !== rti)
  2246. changed = true;
  2247. result.push(substitutedRti);
  2248. }
  2249. return changed ? result : rtiArray;
  2250. },
  2251. _substituteNamed: function(universe, namedArray, typeArguments, depth) {
  2252. var changed, i, t1, rti, substitutedRti,
  2253. $length = namedArray.length,
  2254. result = [];
  2255. for (changed = false, i = 0; i < $length; i += 2) {
  2256. t1 = namedArray[i];
  2257. rti = namedArray[i + 1];
  2258. substitutedRti = H._substitute(universe, rti, typeArguments, depth);
  2259. if (substitutedRti !== rti)
  2260. changed = true;
  2261. result.push(t1);
  2262. result.push(substitutedRti);
  2263. }
  2264. return changed ? result : namedArray;
  2265. },
  2266. _substituteFunctionParameters: function(universe, functionParameters, typeArguments, depth) {
  2267. var result,
  2268. requiredPositional = functionParameters._requiredPositional,
  2269. substitutedRequiredPositional = H._substituteArray(universe, requiredPositional, typeArguments, depth),
  2270. optionalPositional = functionParameters._optionalPositional,
  2271. substitutedOptionalPositional = H._substituteArray(universe, optionalPositional, typeArguments, depth),
  2272. optionalNamed = functionParameters._optionalNamed,
  2273. substitutedOptionalNamed = H._substituteNamed(universe, optionalNamed, typeArguments, depth);
  2274. if (substitutedRequiredPositional === requiredPositional && substitutedOptionalPositional === optionalPositional && substitutedOptionalNamed === optionalNamed)
  2275. return functionParameters;
  2276. result = new H._FunctionParameters();
  2277. result._requiredPositional = substitutedRequiredPositional;
  2278. result._optionalPositional = substitutedOptionalPositional;
  2279. result._optionalNamed = substitutedOptionalNamed;
  2280. return result;
  2281. },
  2282. closureFunctionType: function(closure) {
  2283. var signature = closure.$signature;
  2284. if (signature != null) {
  2285. if (typeof signature == "number")
  2286. return H.getTypeFromTypesTable(signature);
  2287. return closure.$signature();
  2288. }
  2289. return null;
  2290. },
  2291. instanceOrFunctionType: function(object, testRti) {
  2292. var rti;
  2293. if (H.Rti__isUnionOfFunctionType(testRti))
  2294. if (object instanceof H.Closure) {
  2295. rti = H.closureFunctionType(object);
  2296. if (rti != null)
  2297. return rti;
  2298. }
  2299. return H.instanceType(object);
  2300. },
  2301. instanceType: function(object) {
  2302. var rti;
  2303. if (object instanceof P.Object) {
  2304. rti = object.$ti;
  2305. return rti != null ? rti : H._instanceTypeFromConstructor(object);
  2306. }
  2307. if (Array.isArray(object))
  2308. return H._arrayInstanceType(object);
  2309. return H._instanceTypeFromConstructor(J.getInterceptor$(object));
  2310. },
  2311. _arrayInstanceType: function(object) {
  2312. var rti = object[init.arrayRti],
  2313. defaultRti = type$.JSArray_dynamic;
  2314. if (rti == null)
  2315. return defaultRti;
  2316. if (rti.constructor !== defaultRti.constructor)
  2317. return defaultRti;
  2318. return rti;
  2319. },
  2320. _instanceType: function(object) {
  2321. var rti = object.$ti;
  2322. return rti != null ? rti : H._instanceTypeFromConstructor(object);
  2323. },
  2324. _instanceTypeFromConstructor: function(instance) {
  2325. var $constructor = instance.constructor,
  2326. probe = $constructor.$ccache;
  2327. if (probe != null)
  2328. return probe;
  2329. return H._instanceTypeFromConstructorMiss(instance, $constructor);
  2330. },
  2331. _instanceTypeFromConstructorMiss: function(instance, $constructor) {
  2332. var effectiveConstructor = instance instanceof H.Closure ? instance.__proto__.__proto__.constructor : $constructor,
  2333. rti = H._Universe_findErasedType(init.typeUniverse, effectiveConstructor.name);
  2334. $constructor.$ccache = rti;
  2335. return rti;
  2336. },
  2337. getTypeFromTypesTable: function(_index) {
  2338. var rti,
  2339. index = _index,
  2340. table = init.types,
  2341. type = table[index];
  2342. if (typeof type == "string") {
  2343. rti = H._Universe_eval(init.typeUniverse, type, false);
  2344. table[index] = rti;
  2345. return rti;
  2346. }
  2347. return type;
  2348. },
  2349. createRuntimeType: function(rti) {
  2350. var recipe, starErasedRecipe, starErasedRti,
  2351. type = rti._cachedRuntimeType;
  2352. if (type != null)
  2353. return type;
  2354. recipe = rti._canonicalRecipe;
  2355. starErasedRecipe = recipe.replace(/\*/g, "");
  2356. if (starErasedRecipe === recipe)
  2357. return rti._cachedRuntimeType = new H._Type(rti);
  2358. starErasedRti = H._Universe_eval(init.typeUniverse, starErasedRecipe, true);
  2359. type = starErasedRti._cachedRuntimeType;
  2360. return rti._cachedRuntimeType = type == null ? starErasedRti._cachedRuntimeType = new H._Type(starErasedRti) : type;
  2361. },
  2362. _installSpecializedIsTest: function(object) {
  2363. var testRti = this,
  2364. isFn = H._generalIsTestImplementation,
  2365. t1 = type$.Object;
  2366. if (testRti === t1) {
  2367. isFn = H._isObject;
  2368. testRti._as = H._asObject;
  2369. } else if (H.isStrongTopType(testRti) || testRti === t1) {
  2370. isFn = H._isTop;
  2371. testRti._as = H._asTop;
  2372. } else if (testRti === type$.int)
  2373. isFn = H._isInt;
  2374. else if (testRti === type$.double)
  2375. isFn = H._isNum;
  2376. else if (testRti === type$.num)
  2377. isFn = H._isNum;
  2378. else if (testRti === type$.String)
  2379. isFn = H._isString;
  2380. else if (testRti === type$.bool)
  2381. isFn = H._isBool;
  2382. else if (testRti._kind === 9) {
  2383. t1 = testRti._primary;
  2384. if (testRti._rest.every(H.isTopType)) {
  2385. testRti._specializedTestResource = "$is" + t1;
  2386. isFn = H._isTestViaProperty;
  2387. }
  2388. }
  2389. testRti._is = isFn;
  2390. return testRti._is(object);
  2391. },
  2392. _generalIsTestImplementation: function(object) {
  2393. var testRti = this;
  2394. return H._isSubtype(init.typeUniverse, H.instanceOrFunctionType(object, testRti), null, testRti, null);
  2395. },
  2396. _isTestViaProperty: function(object) {
  2397. var t1 = this,
  2398. tag = t1._specializedTestResource;
  2399. if (object instanceof P.Object)
  2400. return !!object[tag];
  2401. return !!J.getInterceptor$(object)[tag];
  2402. },
  2403. _generalAsCheckImplementation: function(object) {
  2404. var testRti = this;
  2405. if (object == null)
  2406. return object;
  2407. else if (testRti._is(object))
  2408. return object;
  2409. throw H.wrapException(H._TypeError$fromMessage(H._Error_compose(object, H.instanceOrFunctionType(object, testRti), H._rtiToString(testRti, null))));
  2410. },
  2411. _Error_compose: function(object, objectRti, checkedTypeDescription) {
  2412. var objectDescription = P.Error_safeToString(object),
  2413. objectTypeDescription = H._rtiToString(objectRti == null ? H.instanceType(object) : objectRti, null);
  2414. return objectDescription + ": type '" + H.S(objectTypeDescription) + "' is not a subtype of type '" + H.S(checkedTypeDescription) + "'";
  2415. },
  2416. _TypeError$fromMessage: function(message) {
  2417. return new H._TypeError("TypeError: " + message);
  2418. },
  2419. _TypeError__TypeError$forType: function(object, type) {
  2420. return new H._TypeError("TypeError: " + H._Error_compose(object, null, type));
  2421. },
  2422. _isObject: function(object) {
  2423. return true;
  2424. },
  2425. _asObject: function(object) {
  2426. return object;
  2427. },
  2428. _isTop: function(object) {
  2429. return true;
  2430. },
  2431. _asTop: function(object) {
  2432. return object;
  2433. },
  2434. _isBool: function(object) {
  2435. return true === object || false === object;
  2436. },
  2437. _asBoolNullable: function(object) {
  2438. if (true === object || false === object)
  2439. return object;
  2440. if (object == null)
  2441. return object;
  2442. throw H.wrapException(H._TypeError__TypeError$forType(object, "bool"));
  2443. },
  2444. _asDoubleNullable: function(object) {
  2445. if (typeof object == "number")
  2446. return object;
  2447. if (object == null)
  2448. return object;
  2449. throw H.wrapException(H._TypeError__TypeError$forType(object, "double"));
  2450. },
  2451. _isInt: function(object) {
  2452. return typeof object == "number" && Math.floor(object) === object;
  2453. },
  2454. _asIntNullable: function(object) {
  2455. if (typeof object == "number" && Math.floor(object) === object)
  2456. return object;
  2457. if (object == null)
  2458. return object;
  2459. throw H.wrapException(H._TypeError__TypeError$forType(object, "int"));
  2460. },
  2461. _isNum: function(object) {
  2462. return typeof object == "number";
  2463. },
  2464. _asNumNullable: function(object) {
  2465. if (typeof object == "number")
  2466. return object;
  2467. if (object == null)
  2468. return object;
  2469. throw H.wrapException(H._TypeError__TypeError$forType(object, "num"));
  2470. },
  2471. _isString: function(object) {
  2472. return typeof object == "string";
  2473. },
  2474. _asStringNullable: function(object) {
  2475. if (typeof object == "string")
  2476. return object;
  2477. if (object == null)
  2478. return object;
  2479. throw H.wrapException(H._TypeError__TypeError$forType(object, "String"));
  2480. },
  2481. _rtiArrayToString: function(array, genericContext) {
  2482. var s, sep, i;
  2483. for (s = "", sep = "", i = 0; i < array.length; ++i, sep = ", ")
  2484. s += C.JSString_methods.$add(sep, H._rtiToString(array[i], genericContext));
  2485. return s;
  2486. },
  2487. _functionRtiToString: function(functionType, genericContext, bounds) {
  2488. var boundsLength, outerContextLength, offset, i, t1, typeParametersText, typeSep, boundRti, t2, parameters, requiredPositional, requiredPositionalLength, optionalPositional, optionalPositionalLength, optionalNamed, optionalNamedLength, returnTypeText, argumentsText, sep, _s2_ = ", ";
  2489. if (bounds != null) {
  2490. boundsLength = bounds.length;
  2491. if (genericContext == null) {
  2492. genericContext = H.setRuntimeTypeInfo([], type$.JSArray_String);
  2493. outerContextLength = null;
  2494. } else
  2495. outerContextLength = genericContext.length;
  2496. offset = genericContext.length;
  2497. for (i = boundsLength; i > 0; --i)
  2498. genericContext.push("T" + (offset + i));
  2499. for (t1 = type$.Object, typeParametersText = "<", typeSep = "", i = 0; i < boundsLength; ++i, typeSep = _s2_) {
  2500. typeParametersText = C.JSString_methods.$add(typeParametersText + typeSep, genericContext[genericContext.length - 1 - i]);
  2501. boundRti = bounds[i];
  2502. if (!(H.isStrongTopType(boundRti) || boundRti === t1))
  2503. t2 = !(boundRti === t1);
  2504. else
  2505. t2 = false;
  2506. if (t2)
  2507. typeParametersText += C.JSString_methods.$add(" extends ", H._rtiToString(boundRti, genericContext));
  2508. }
  2509. typeParametersText += ">";
  2510. } else {
  2511. typeParametersText = "";
  2512. outerContextLength = null;
  2513. }
  2514. t1 = functionType._primary;
  2515. parameters = functionType._rest;
  2516. requiredPositional = parameters._requiredPositional;
  2517. requiredPositionalLength = requiredPositional.length;
  2518. optionalPositional = parameters._optionalPositional;
  2519. optionalPositionalLength = optionalPositional.length;
  2520. optionalNamed = parameters._optionalNamed;
  2521. optionalNamedLength = optionalNamed.length;
  2522. returnTypeText = H._rtiToString(t1, genericContext);
  2523. for (argumentsText = "", sep = "", i = 0; i < requiredPositionalLength; ++i, sep = _s2_)
  2524. argumentsText += C.JSString_methods.$add(sep, H._rtiToString(requiredPositional[i], genericContext));
  2525. if (optionalPositionalLength > 0) {
  2526. argumentsText += sep + "[";
  2527. for (sep = "", i = 0; i < optionalPositionalLength; ++i, sep = _s2_)
  2528. argumentsText += C.JSString_methods.$add(sep, H._rtiToString(optionalPositional[i], genericContext));
  2529. argumentsText += "]";
  2530. }
  2531. if (optionalNamedLength > 0) {
  2532. argumentsText += sep + "{";
  2533. for (sep = "", i = 0; i < optionalNamedLength; i += 2, sep = _s2_)
  2534. argumentsText += C.JSString_methods.$add(sep, H._rtiToString(optionalNamed[i + 1], genericContext)) + " " + optionalNamed[i];
  2535. argumentsText += "}";
  2536. }
  2537. if (outerContextLength != null)
  2538. genericContext.length = outerContextLength;
  2539. return typeParametersText + "(" + argumentsText + ") => " + H.S(returnTypeText);
  2540. },
  2541. _rtiToString: function(rti, genericContext) {
  2542. var s, questionArgument, argumentKind, $name, $arguments, t1,
  2543. kind = rti._kind;
  2544. if (kind === 5)
  2545. return "erased";
  2546. if (kind === 2)
  2547. return "dynamic";
  2548. if (kind === 3)
  2549. return "void";
  2550. if (kind === 1)
  2551. return "Never";
  2552. if (kind === 4)
  2553. return "any";
  2554. if (kind === 6) {
  2555. s = H._rtiToString(rti._primary, genericContext);
  2556. return s;
  2557. }
  2558. if (kind === 7) {
  2559. questionArgument = rti._primary;
  2560. s = H._rtiToString(questionArgument, genericContext);
  2561. argumentKind = questionArgument._kind;
  2562. return J.$add$ansx(argumentKind === 11 || argumentKind === 12 ? C.JSString_methods.$add("(", s) + ")" : s, "?");
  2563. }
  2564. if (kind === 8)
  2565. return "FutureOr<" + H.S(H._rtiToString(rti._primary, genericContext)) + ">";
  2566. if (kind === 9) {
  2567. $name = H._unminifyOrTag(rti._primary);
  2568. $arguments = rti._rest;
  2569. return $arguments.length !== 0 ? $name + ("<" + H._rtiArrayToString($arguments, genericContext) + ">") : $name;
  2570. }
  2571. if (kind === 11)
  2572. return H._functionRtiToString(rti, genericContext, null);
  2573. if (kind === 12)
  2574. return H._functionRtiToString(rti._primary, genericContext, rti._rest);
  2575. if (kind === 13) {
  2576. t1 = rti._primary;
  2577. return genericContext[genericContext.length - 1 - t1];
  2578. }
  2579. return "?";
  2580. },
  2581. _unminifyOrTag: function(rawClassName) {
  2582. var preserved = H.unmangleGlobalNameIfPreservedAnyways(rawClassName);
  2583. if (preserved != null)
  2584. return preserved;
  2585. return rawClassName;
  2586. },
  2587. _Universe_findRule: function(universe, targetType) {
  2588. var rule = universe.tR[targetType];
  2589. for (; typeof rule == "string";)
  2590. rule = universe.tR[rule];
  2591. return rule;
  2592. },
  2593. _Universe_findErasedType: function(universe, cls) {
  2594. var $length, erased, $arguments, i, $interface,
  2595. metadata = universe.eT,
  2596. probe = metadata[cls];
  2597. if (probe == null)
  2598. return H._Universe_eval(universe, cls, false);
  2599. else if (typeof probe == "number") {
  2600. $length = probe;
  2601. erased = H._Universe__lookupTerminalRti(universe, 5, "#");
  2602. $arguments = [];
  2603. for (i = 0; i < $length; ++i)
  2604. $arguments.push(erased);
  2605. $interface = H._Universe__lookupInterfaceRti(universe, cls, $arguments);
  2606. metadata[cls] = $interface;
  2607. return $interface;
  2608. } else
  2609. return probe;
  2610. },
  2611. _Universe_addRules: function(universe, rules) {
  2612. return H._Utils_objectAssign(universe.tR, rules);
  2613. },
  2614. _Universe_addErasedTypes: function(universe, types) {
  2615. return H._Utils_objectAssign(universe.eT, types);
  2616. },
  2617. _Universe_eval: function(universe, recipe, normalize) {
  2618. var rti,
  2619. cache = universe.eC,
  2620. probe = cache.get(recipe);
  2621. if (probe != null)
  2622. return probe;
  2623. rti = H._Universe__parseRecipe(universe, null, recipe, normalize);
  2624. cache.set(recipe, rti);
  2625. return rti;
  2626. },
  2627. _Universe_evalInEnvironment: function(universe, environment, recipe) {
  2628. var probe, rti,
  2629. cache = environment._evalCache;
  2630. if (cache == null)
  2631. cache = environment._evalCache = new Map();
  2632. probe = cache.get(recipe);
  2633. if (probe != null)
  2634. return probe;
  2635. rti = H._Universe__parseRecipe(universe, environment, recipe, true);
  2636. cache.set(recipe, rti);
  2637. return rti;
  2638. },
  2639. _Universe_bind: function(universe, environment, argumentsRti) {
  2640. var argumentsRecipe, probe, rti,
  2641. cache = environment._bindCache;
  2642. if (cache == null)
  2643. cache = environment._bindCache = new Map();
  2644. argumentsRecipe = argumentsRti._canonicalRecipe;
  2645. probe = cache.get(argumentsRecipe);
  2646. if (probe != null)
  2647. return probe;
  2648. rti = H._Universe__lookupBindingRti(universe, environment, argumentsRti._kind === 10 ? argumentsRti._rest : [argumentsRti]);
  2649. cache.set(argumentsRecipe, rti);
  2650. return rti;
  2651. },
  2652. _Universe__parseRecipe: function(universe, environment, recipe, normalize) {
  2653. var rti = H._Parser_parse(H._Parser_create(universe, environment, recipe, normalize));
  2654. if (rti != null)
  2655. return rti;
  2656. throw H.wrapException(P.UnimplementedError$('_Universe._parseRecipe("' + H.S(recipe) + '")'));
  2657. },
  2658. _Universe__installTypeTests: function(universe, rti) {
  2659. rti._as = H._generalAsCheckImplementation;
  2660. rti._is = H._installSpecializedIsTest;
  2661. return rti;
  2662. },
  2663. _Universe__lookupTerminalRti: function(universe, kind, key) {
  2664. var rti, t1,
  2665. probe = universe.eC.get(key);
  2666. if (probe != null)
  2667. return probe;
  2668. rti = new H.Rti(null, null);
  2669. rti._kind = kind;
  2670. rti._canonicalRecipe = key;
  2671. t1 = H._Universe__installTypeTests(universe, rti);
  2672. universe.eC.set(key, t1);
  2673. return t1;
  2674. },
  2675. _Universe__lookupStarRti: function(universe, baseType, normalize) {
  2676. var t1,
  2677. key = baseType._canonicalRecipe + "*",
  2678. probe = universe.eC.get(key);
  2679. if (probe != null)
  2680. return probe;
  2681. t1 = H._Universe__createStarRti(universe, baseType, key, normalize);
  2682. universe.eC.set(key, t1);
  2683. return t1;
  2684. },
  2685. _Universe__createStarRti: function(universe, baseType, key, normalize) {
  2686. var baseKind, rti;
  2687. if (normalize) {
  2688. baseKind = baseType._kind;
  2689. if (H.isStrongTopType(baseType) || baseType === type$.Object || baseType === type$.Null || baseKind === 7 || baseKind === 6)
  2690. return baseType;
  2691. }
  2692. rti = new H.Rti(null, null);
  2693. rti._kind = 6;
  2694. rti._primary = baseType;
  2695. rti._canonicalRecipe = key;
  2696. return H._Universe__installTypeTests(universe, rti);
  2697. },
  2698. _Universe__lookupQuestionRti: function(universe, baseType, normalize) {
  2699. var t1,
  2700. key = baseType._canonicalRecipe + "?",
  2701. probe = universe.eC.get(key);
  2702. if (probe != null)
  2703. return probe;
  2704. t1 = H._Universe__createQuestionRti(universe, baseType, key, normalize);
  2705. universe.eC.set(key, t1);
  2706. return t1;
  2707. },
  2708. _Universe__createQuestionRti: function(universe, baseType, key, normalize) {
  2709. var baseKind, t1, starArgument, starArgumentKind, rti;
  2710. if (normalize) {
  2711. baseKind = baseType._kind;
  2712. if (!H.isStrongTopType(baseType))
  2713. if (!(baseType === type$.Null))
  2714. if (baseKind !== 7)
  2715. t1 = baseKind === 8 && H.isNullable(baseType._primary);
  2716. else
  2717. t1 = true;
  2718. else
  2719. t1 = true;
  2720. else
  2721. t1 = true;
  2722. if (t1)
  2723. return baseType;
  2724. else if (baseKind === 1)
  2725. return type$.Null;
  2726. else if (baseKind === 6) {
  2727. starArgument = baseType._primary;
  2728. starArgumentKind = starArgument._kind;
  2729. if (starArgumentKind === 1)
  2730. return type$.Null;
  2731. else if (starArgumentKind === 8 && H.isNullable(starArgument._primary))
  2732. return starArgument;
  2733. else
  2734. return H.Rti__getQuestionFromStar(universe, baseType);
  2735. }
  2736. }
  2737. rti = new H.Rti(null, null);
  2738. rti._kind = 7;
  2739. rti._primary = baseType;
  2740. rti._canonicalRecipe = key;
  2741. return H._Universe__installTypeTests(universe, rti);
  2742. },
  2743. _Universe__lookupFutureOrRti: function(universe, baseType, normalize) {
  2744. var t1,
  2745. key = baseType._canonicalRecipe + "/",
  2746. probe = universe.eC.get(key);
  2747. if (probe != null)
  2748. return probe;
  2749. t1 = H._Universe__createFutureOrRti(universe, baseType, key, normalize);
  2750. universe.eC.set(key, t1);
  2751. return t1;
  2752. },
  2753. _Universe__createFutureOrRti: function(universe, baseType, key, normalize) {
  2754. var t1, rti;
  2755. if (normalize) {
  2756. t1 = baseType._kind;
  2757. if (H.isStrongTopType(baseType) || baseType === type$.Object || baseType === type$.Object)
  2758. return baseType;
  2759. else if (t1 === 1)
  2760. return H._Universe__lookupInterfaceRti(universe, "Future", [baseType]);
  2761. else if (baseType === type$.Null)
  2762. return type$.Future_Null;
  2763. }
  2764. rti = new H.Rti(null, null);
  2765. rti._kind = 8;
  2766. rti._primary = baseType;
  2767. rti._canonicalRecipe = key;
  2768. return H._Universe__installTypeTests(universe, rti);
  2769. },
  2770. _Universe__lookupGenericFunctionParameterRti: function(universe, index) {
  2771. var rti, t1,
  2772. key = "" + index + "^",
  2773. probe = universe.eC.get(key);
  2774. if (probe != null)
  2775. return probe;
  2776. rti = new H.Rti(null, null);
  2777. rti._kind = 13;
  2778. rti._primary = index;
  2779. rti._canonicalRecipe = key;
  2780. t1 = H._Universe__installTypeTests(universe, rti);
  2781. universe.eC.set(key, t1);
  2782. return t1;
  2783. },
  2784. _Universe__canonicalRecipeJoin: function($arguments) {
  2785. var s, sep, i,
  2786. $length = $arguments.length;
  2787. for (s = "", sep = "", i = 0; i < $length; ++i, sep = ",")
  2788. s += sep + $arguments[i]._canonicalRecipe;
  2789. return s;
  2790. },
  2791. _Universe__canonicalRecipeJoinNamed: function($arguments) {
  2792. var s, sep, i, t1, s0,
  2793. $length = $arguments.length;
  2794. for (s = "", sep = "", i = 0; i < $length; i += 2, sep = ",") {
  2795. t1 = $arguments[i];
  2796. s0 = $arguments[i + 1]._canonicalRecipe;
  2797. s += sep + t1 + ":" + s0;
  2798. }
  2799. return s;
  2800. },
  2801. _Universe__lookupInterfaceRti: function(universe, $name, $arguments) {
  2802. var probe, rti, t1,
  2803. s = $name;
  2804. if ($arguments.length !== 0)
  2805. s += "<" + H._Universe__canonicalRecipeJoin($arguments) + ">";
  2806. probe = universe.eC.get(s);
  2807. if (probe != null)
  2808. return probe;
  2809. rti = new H.Rti(null, null);
  2810. rti._kind = 9;
  2811. rti._primary = $name;
  2812. rti._rest = $arguments;
  2813. if ($arguments.length > 0)
  2814. rti._precomputed1 = $arguments[0];
  2815. rti._canonicalRecipe = s;
  2816. t1 = H._Universe__installTypeTests(universe, rti);
  2817. universe.eC.set(s, t1);
  2818. return t1;
  2819. },
  2820. _Universe__lookupBindingRti: function(universe, base, $arguments) {
  2821. var newBase, newArguments, s, probe, rti, t1;
  2822. if (base._kind === 10) {
  2823. newBase = base._primary;
  2824. newArguments = base._rest.concat($arguments);
  2825. } else {
  2826. newArguments = $arguments;
  2827. newBase = base;
  2828. }
  2829. s = newBase._canonicalRecipe + ";" + ("<" + H._Universe__canonicalRecipeJoin(newArguments) + ">");
  2830. probe = universe.eC.get(s);
  2831. if (probe != null)
  2832. return probe;
  2833. rti = new H.Rti(null, null);
  2834. rti._kind = 10;
  2835. rti._primary = newBase;
  2836. rti._rest = newArguments;
  2837. rti._canonicalRecipe = s;
  2838. t1 = H._Universe__installTypeTests(universe, rti);
  2839. universe.eC.set(s, t1);
  2840. return t1;
  2841. },
  2842. _Universe__lookupFunctionRti: function(universe, returnType, parameters) {
  2843. var key, probe, rti, t1,
  2844. s = returnType._canonicalRecipe,
  2845. requiredPositional = parameters._requiredPositional,
  2846. requiredPositionalLength = requiredPositional.length,
  2847. optionalPositional = parameters._optionalPositional,
  2848. optionalPositionalLength = optionalPositional.length,
  2849. optionalNamed = parameters._optionalNamed,
  2850. optionalNamedLength = optionalNamed.length,
  2851. recipe = "(" + H._Universe__canonicalRecipeJoin(requiredPositional);
  2852. if (optionalPositionalLength > 0)
  2853. recipe += (requiredPositionalLength > 0 ? "," : "") + "[" + H._Universe__canonicalRecipeJoin(optionalPositional) + "]";
  2854. if (optionalNamedLength > 0)
  2855. recipe += (requiredPositionalLength > 0 ? "," : "") + "{" + H._Universe__canonicalRecipeJoinNamed(optionalNamed) + "}";
  2856. key = s + (recipe + ")");
  2857. probe = universe.eC.get(key);
  2858. if (probe != null)
  2859. return probe;
  2860. rti = new H.Rti(null, null);
  2861. rti._kind = 11;
  2862. rti._primary = returnType;
  2863. rti._rest = parameters;
  2864. rti._canonicalRecipe = key;
  2865. t1 = H._Universe__installTypeTests(universe, rti);
  2866. universe.eC.set(key, t1);
  2867. return t1;
  2868. },
  2869. _Universe__lookupGenericFunctionRti: function(universe, baseFunctionType, bounds, normalize) {
  2870. var t1,
  2871. key = baseFunctionType._canonicalRecipe + "<" + H._Universe__canonicalRecipeJoin(bounds) + ">",
  2872. probe = universe.eC.get(key);
  2873. if (probe != null)
  2874. return probe;
  2875. t1 = H._Universe__createGenericFunctionRti(universe, baseFunctionType, bounds, key, normalize);
  2876. universe.eC.set(key, t1);
  2877. return t1;
  2878. },
  2879. _Universe__createGenericFunctionRti: function(universe, baseFunctionType, bounds, key, normalize) {
  2880. var $length, typeArguments, count, i, bound, substitutedBase, substitutedBounds, rti;
  2881. if (normalize) {
  2882. $length = bounds.length;
  2883. typeArguments = new Array($length);
  2884. for (count = 0, i = 0; i < $length; ++i) {
  2885. bound = bounds[i];
  2886. if (bound._kind === 1) {
  2887. typeArguments[i] = bound;
  2888. ++count;
  2889. }
  2890. }
  2891. if (count > 0) {
  2892. substitutedBase = H._substitute(universe, baseFunctionType, typeArguments, 0);
  2893. substitutedBounds = H._substituteArray(universe, bounds, typeArguments, 0);
  2894. return H._Universe__lookupGenericFunctionRti(universe, substitutedBase, substitutedBounds, bounds !== substitutedBounds);
  2895. }
  2896. }
  2897. rti = new H.Rti(null, null);
  2898. rti._kind = 12;
  2899. rti._primary = baseFunctionType;
  2900. rti._rest = bounds;
  2901. rti._canonicalRecipe = key;
  2902. return H._Universe__installTypeTests(universe, rti);
  2903. },
  2904. _Parser_create: function(universe, environment, recipe, normalize) {
  2905. return {u: universe, e: environment, r: recipe, s: [], p: 0, n: normalize};
  2906. },
  2907. _Parser_parse: function(parser) {
  2908. var t1, i, ch, universe, array, head, base, u, parameters, optionalPositional, optionalNamed, item,
  2909. source = parser.r,
  2910. stack = parser.s;
  2911. for (t1 = source.length, i = 0; i < t1;) {
  2912. ch = source.charCodeAt(i);
  2913. if (ch >= 48 && ch <= 57)
  2914. i = H._Parser_handleDigit(i + 1, ch, source, stack);
  2915. else if ((((ch | 32) >>> 0) - 97 & 65535) < 26 || ch === 95 || ch === 36)
  2916. i = H._Parser_handleIdentifier(parser, i, source, stack, false);
  2917. else if (ch === 46)
  2918. i = H._Parser_handleIdentifier(parser, i, source, stack, true);
  2919. else {
  2920. ++i;
  2921. switch (ch) {
  2922. case 44:
  2923. break;
  2924. case 58:
  2925. break;
  2926. case 59:
  2927. stack.push(H._Parser_toType(parser.u, parser.e, stack.pop()));
  2928. break;
  2929. case 94:
  2930. stack.push(H._Universe__lookupGenericFunctionParameterRti(parser.u, stack.pop()));
  2931. break;
  2932. case 35:
  2933. stack.push(H._Universe__lookupTerminalRti(parser.u, 5, "#"));
  2934. break;
  2935. case 64:
  2936. stack.push(H._Universe__lookupTerminalRti(parser.u, 2, "@"));
  2937. break;
  2938. case 126:
  2939. stack.push(H._Universe__lookupTerminalRti(parser.u, 3, "~"));
  2940. break;
  2941. case 60:
  2942. stack.push(parser.p);
  2943. parser.p = stack.length;
  2944. break;
  2945. case 62:
  2946. universe = parser.u;
  2947. array = stack.splice(parser.p);
  2948. H._Parser_toTypes(parser.u, parser.e, array);
  2949. parser.p = stack.pop();
  2950. head = stack.pop();
  2951. if (typeof head == "string")
  2952. stack.push(H._Universe__lookupInterfaceRti(universe, head, array));
  2953. else {
  2954. base = H._Parser_toType(universe, parser.e, head);
  2955. switch (base._kind) {
  2956. case 11:
  2957. stack.push(H._Universe__lookupGenericFunctionRti(universe, base, array, parser.n));
  2958. break;
  2959. default:
  2960. stack.push(H._Universe__lookupBindingRti(universe, base, array));
  2961. break;
  2962. }
  2963. }
  2964. break;
  2965. case 38:
  2966. H._Parser_handleExtendedOperations(parser, stack);
  2967. break;
  2968. case 42:
  2969. u = parser.u;
  2970. stack.push(H._Universe__lookupStarRti(u, H._Parser_toType(u, parser.e, stack.pop()), parser.n));
  2971. break;
  2972. case 63:
  2973. u = parser.u;
  2974. stack.push(H._Universe__lookupQuestionRti(u, H._Parser_toType(u, parser.e, stack.pop()), parser.n));
  2975. break;
  2976. case 47:
  2977. u = parser.u;
  2978. stack.push(H._Universe__lookupFutureOrRti(u, H._Parser_toType(u, parser.e, stack.pop()), parser.n));
  2979. break;
  2980. case 40:
  2981. stack.push(parser.p);
  2982. parser.p = stack.length;
  2983. break;
  2984. case 41:
  2985. universe = parser.u;
  2986. parameters = new H._FunctionParameters();
  2987. optionalPositional = universe.sEA;
  2988. optionalNamed = universe.sEA;
  2989. head = stack.pop();
  2990. if (typeof head == "number")
  2991. switch (head) {
  2992. case -1:
  2993. optionalPositional = stack.pop();
  2994. break;
  2995. case -2:
  2996. optionalNamed = stack.pop();
  2997. break;
  2998. default:
  2999. stack.push(head);
  3000. break;
  3001. }
  3002. else
  3003. stack.push(head);
  3004. array = stack.splice(parser.p);
  3005. H._Parser_toTypes(parser.u, parser.e, array);
  3006. parser.p = stack.pop();
  3007. parameters._requiredPositional = array;
  3008. parameters._optionalPositional = optionalPositional;
  3009. parameters._optionalNamed = optionalNamed;
  3010. stack.push(H._Universe__lookupFunctionRti(universe, H._Parser_toType(universe, parser.e, stack.pop()), parameters));
  3011. break;
  3012. case 91:
  3013. stack.push(parser.p);
  3014. parser.p = stack.length;
  3015. break;
  3016. case 93:
  3017. array = stack.splice(parser.p);
  3018. H._Parser_toTypes(parser.u, parser.e, array);
  3019. parser.p = stack.pop();
  3020. stack.push(array);
  3021. stack.push(-1);
  3022. break;
  3023. case 123:
  3024. stack.push(parser.p);
  3025. parser.p = stack.length;
  3026. break;
  3027. case 125:
  3028. array = stack.splice(parser.p);
  3029. H._Parser_toTypesNamed(parser.u, parser.e, array);
  3030. parser.p = stack.pop();
  3031. stack.push(array);
  3032. stack.push(-2);
  3033. break;
  3034. default:
  3035. throw "Bad character " + ch;
  3036. }
  3037. }
  3038. }
  3039. item = stack.pop();
  3040. return H._Parser_toType(parser.u, parser.e, item);
  3041. },
  3042. _Parser_handleDigit: function(i, digit, source, stack) {
  3043. var t1, ch,
  3044. value = digit - 48;
  3045. for (t1 = source.length; i < t1; ++i) {
  3046. ch = source.charCodeAt(i);
  3047. if (!(ch >= 48 && ch <= 57))
  3048. break;
  3049. value = value * 10 + (ch - 48);
  3050. }
  3051. stack.push(value);
  3052. return i;
  3053. },
  3054. _Parser_handleIdentifier: function(parser, start, source, stack, hasPeriod) {
  3055. var t1, ch, t2, string, environment, recipe,
  3056. i = start + 1;
  3057. for (t1 = source.length; i < t1; ++i) {
  3058. ch = source.charCodeAt(i);
  3059. if (ch === 46) {
  3060. if (hasPeriod)
  3061. break;
  3062. hasPeriod = true;
  3063. } else {
  3064. if (!((((ch | 32) >>> 0) - 97 & 65535) < 26 || ch === 95 || ch === 36))
  3065. t2 = ch >= 48 && ch <= 57;
  3066. else
  3067. t2 = true;
  3068. if (!t2)
  3069. break;
  3070. }
  3071. }
  3072. string = source.substring(start, i);
  3073. if (hasPeriod) {
  3074. t1 = parser.u;
  3075. environment = parser.e;
  3076. if (environment._kind === 10)
  3077. environment = environment._primary;
  3078. recipe = H._Universe_findRule(t1, environment._primary)[string];
  3079. if (recipe == null)
  3080. H.throwExpression('No "' + string + '" in "' + H.Rti__getCanonicalRecipe(environment) + '"');
  3081. stack.push(H._Universe_evalInEnvironment(t1, environment, recipe));
  3082. } else
  3083. stack.push(string);
  3084. return i;
  3085. },
  3086. _Parser_handleExtendedOperations: function(parser, stack) {
  3087. var $top = stack.pop();
  3088. if (0 === $top) {
  3089. stack.push(H._Universe__lookupTerminalRti(parser.u, 1, "0&"));
  3090. return;
  3091. }
  3092. if (1 === $top) {
  3093. stack.push(H._Universe__lookupTerminalRti(parser.u, 4, "1&"));
  3094. return;
  3095. }
  3096. throw H.wrapException(P.AssertionError$("Unexpected extended operation " + H.S($top)));
  3097. },
  3098. _Parser_toType: function(universe, environment, item) {
  3099. if (typeof item == "string")
  3100. return H._Universe__lookupInterfaceRti(universe, item, universe.sEA);
  3101. else if (typeof item == "number")
  3102. return H._Parser_indexToType(universe, environment, item);
  3103. else
  3104. return item;
  3105. },
  3106. _Parser_toTypes: function(universe, environment, items) {
  3107. var i,
  3108. $length = items.length;
  3109. for (i = 0; i < $length; ++i)
  3110. items[i] = H._Parser_toType(universe, environment, items[i]);
  3111. },
  3112. _Parser_toTypesNamed: function(universe, environment, items) {
  3113. var i,
  3114. $length = items.length;
  3115. for (i = 1; i < $length; i += 2)
  3116. items[i] = H._Parser_toType(universe, environment, items[i]);
  3117. },
  3118. _Parser_indexToType: function(universe, environment, index) {
  3119. var typeArguments, len,
  3120. kind = environment._kind;
  3121. if (kind === 10) {
  3122. if (index === 0)
  3123. return environment._primary;
  3124. typeArguments = environment._rest;
  3125. len = typeArguments.length;
  3126. if (index <= len)
  3127. return typeArguments[index - 1];
  3128. index -= len;
  3129. environment = environment._primary;
  3130. kind = environment._kind;
  3131. } else if (index === 0)
  3132. return environment;
  3133. if (kind !== 9)
  3134. throw H.wrapException(P.AssertionError$("Indexed base must be an interface type"));
  3135. typeArguments = environment._rest;
  3136. if (index <= typeArguments.length)
  3137. return typeArguments[index - 1];
  3138. throw H.wrapException(P.AssertionError$("Bad index " + index + " for " + environment.toString$0(0)));
  3139. },
  3140. _isSubtype: function(universe, s, sEnv, t, tEnv) {
  3141. var sKind, leftTypeVariable, tKind, t1, sBounds, tBounds, sLength, i, sBound, tBound;
  3142. if (s === t)
  3143. return true;
  3144. if (H.isStrongTopType(t) || t === type$.Object)
  3145. return true;
  3146. sKind = s._kind;
  3147. if (sKind === 4)
  3148. return true;
  3149. if (H.isStrongTopType(s))
  3150. return false;
  3151. if (s === type$.Null)
  3152. return true;
  3153. leftTypeVariable = sKind === 13;
  3154. if (leftTypeVariable)
  3155. if (H._isSubtype(universe, sEnv[s._primary], sEnv, t, tEnv))
  3156. return true;
  3157. tKind = t._kind;
  3158. if (sKind === 6)
  3159. return H._isSubtype(universe, s._primary, sEnv, t, tEnv);
  3160. if (tKind === 6) {
  3161. t1 = t._primary;
  3162. return H._isSubtype(universe, s, sEnv, t1, tEnv);
  3163. }
  3164. if (sKind === 8) {
  3165. if (!H._isSubtype(universe, s._primary, sEnv, t, tEnv))
  3166. return false;
  3167. return H._isSubtype(universe, H.Rti__getFutureFromFutureOr(universe, s), sEnv, t, tEnv);
  3168. }
  3169. if (sKind === 7) {
  3170. t1 = H._isSubtype(universe, s._primary, sEnv, t, tEnv);
  3171. return t1;
  3172. }
  3173. if (tKind === 8) {
  3174. if (H._isSubtype(universe, s, sEnv, t._primary, tEnv))
  3175. return true;
  3176. return H._isSubtype(universe, s, sEnv, H.Rti__getFutureFromFutureOr(universe, t), tEnv);
  3177. }
  3178. if (tKind === 7) {
  3179. t1 = H._isSubtype(universe, s, sEnv, t._primary, tEnv);
  3180. return t1;
  3181. }
  3182. if (leftTypeVariable)
  3183. return false;
  3184. t1 = sKind !== 11;
  3185. if ((!t1 || sKind === 12) && t === type$.Function)
  3186. return true;
  3187. if (tKind === 12) {
  3188. if (s === type$.JavaScriptFunction)
  3189. return true;
  3190. if (sKind !== 12)
  3191. return false;
  3192. sBounds = s._rest;
  3193. tBounds = t._rest;
  3194. sLength = sBounds.length;
  3195. if (sLength !== tBounds.length)
  3196. return false;
  3197. sEnv = sEnv == null ? sBounds : sBounds.concat(sEnv);
  3198. tEnv = tEnv == null ? tBounds : tBounds.concat(tEnv);
  3199. for (i = 0; i < sLength; ++i) {
  3200. sBound = sBounds[i];
  3201. tBound = tBounds[i];
  3202. if (!H._isSubtype(universe, sBound, sEnv, tBound, tEnv) || !H._isSubtype(universe, tBound, tEnv, sBound, sEnv))
  3203. return false;
  3204. }
  3205. return H._isFunctionSubtype(universe, s._primary, sEnv, t._primary, tEnv);
  3206. }
  3207. if (tKind === 11) {
  3208. if (s === type$.JavaScriptFunction)
  3209. return true;
  3210. if (t1)
  3211. return false;
  3212. return H._isFunctionSubtype(universe, s, sEnv, t, tEnv);
  3213. }
  3214. if (sKind === 9) {
  3215. if (tKind !== 9)
  3216. return false;
  3217. return H._isInterfaceSubtype(universe, s, sEnv, t, tEnv);
  3218. }
  3219. return false;
  3220. },
  3221. _isFunctionSubtype: function(universe, s, sEnv, t, tEnv) {
  3222. var sParameters, tParameters, sRequiredPositional, tRequiredPositional, sRequiredPositionalLength, tRequiredPositionalLength, requiredPositionalDelta, sOptionalPositional, tOptionalPositional, sOptionalPositionalLength, tOptionalPositionalLength, i, t1, sOptionalNamed, tOptionalNamed, sOptionalNamedLength, tOptionalNamedLength, j, tName, sName;
  3223. if (!H._isSubtype(universe, s._primary, sEnv, t._primary, tEnv))
  3224. return false;
  3225. sParameters = s._rest;
  3226. tParameters = t._rest;
  3227. sRequiredPositional = sParameters._requiredPositional;
  3228. tRequiredPositional = tParameters._requiredPositional;
  3229. sRequiredPositionalLength = sRequiredPositional.length;
  3230. tRequiredPositionalLength = tRequiredPositional.length;
  3231. if (sRequiredPositionalLength > tRequiredPositionalLength)
  3232. return false;
  3233. requiredPositionalDelta = tRequiredPositionalLength - sRequiredPositionalLength;
  3234. sOptionalPositional = sParameters._optionalPositional;
  3235. tOptionalPositional = tParameters._optionalPositional;
  3236. sOptionalPositionalLength = sOptionalPositional.length;
  3237. tOptionalPositionalLength = tOptionalPositional.length;
  3238. if (sRequiredPositionalLength + sOptionalPositionalLength < tRequiredPositionalLength + tOptionalPositionalLength)
  3239. return false;
  3240. for (i = 0; i < sRequiredPositionalLength; ++i) {
  3241. t1 = sRequiredPositional[i];
  3242. if (!H._isSubtype(universe, tRequiredPositional[i], tEnv, t1, sEnv))
  3243. return false;
  3244. }
  3245. for (i = 0; i < requiredPositionalDelta; ++i) {
  3246. t1 = sOptionalPositional[i];
  3247. if (!H._isSubtype(universe, tRequiredPositional[sRequiredPositionalLength + i], tEnv, t1, sEnv))
  3248. return false;
  3249. }
  3250. for (i = 0; i < tOptionalPositionalLength; ++i) {
  3251. t1 = sOptionalPositional[requiredPositionalDelta + i];
  3252. if (!H._isSubtype(universe, tOptionalPositional[i], tEnv, t1, sEnv))
  3253. return false;
  3254. }
  3255. sOptionalNamed = sParameters._optionalNamed;
  3256. tOptionalNamed = tParameters._optionalNamed;
  3257. sOptionalNamedLength = sOptionalNamed.length;
  3258. tOptionalNamedLength = tOptionalNamed.length;
  3259. for (i = 0, j = 0; j < tOptionalNamedLength; j += 2) {
  3260. tName = tOptionalNamed[j];
  3261. do {
  3262. if (i >= sOptionalNamedLength)
  3263. return false;
  3264. sName = sOptionalNamed[i];
  3265. i += 2;
  3266. } while (sName < tName);
  3267. if (tName < sName)
  3268. return false;
  3269. t1 = sOptionalNamed[i - 1];
  3270. if (!H._isSubtype(universe, tOptionalNamed[j + 1], tEnv, t1, sEnv))
  3271. return false;
  3272. }
  3273. return true;
  3274. },
  3275. _isInterfaceSubtype: function(universe, s, sEnv, t, tEnv) {
  3276. var sArgs, tArgs, $length, i, t1, t2, rule, supertypeArgs,
  3277. sName = s._primary,
  3278. tName = t._primary;
  3279. if (sName === tName) {
  3280. sArgs = s._rest;
  3281. tArgs = t._rest;
  3282. $length = sArgs.length;
  3283. for (i = 0; i < $length; ++i) {
  3284. t1 = sArgs[i];
  3285. t2 = tArgs[i];
  3286. if (!H._isSubtype(universe, t1, sEnv, t2, tEnv))
  3287. return false;
  3288. }
  3289. return true;
  3290. }
  3291. if (t === type$.Object)
  3292. return true;
  3293. rule = H._Universe_findRule(universe, sName);
  3294. if (rule == null)
  3295. return false;
  3296. supertypeArgs = rule[tName];
  3297. if (supertypeArgs == null)
  3298. return false;
  3299. $length = supertypeArgs.length;
  3300. tArgs = t._rest;
  3301. for (i = 0; i < $length; ++i)
  3302. if (!H._isSubtype(universe, H._Universe_evalInEnvironment(universe, s, supertypeArgs[i]), sEnv, tArgs[i], tEnv))
  3303. return false;
  3304. return true;
  3305. },
  3306. isNullable: function(t) {
  3307. var t1,
  3308. kind = t._kind;
  3309. if (!(t === type$.Null))
  3310. if (!H.isStrongTopType(t))
  3311. if (kind !== 7)
  3312. if (!(kind === 6 && H.isNullable(t._primary)))
  3313. t1 = kind === 8 && H.isNullable(t._primary);
  3314. else
  3315. t1 = true;
  3316. else
  3317. t1 = true;
  3318. else
  3319. t1 = true;
  3320. else
  3321. t1 = true;
  3322. return t1;
  3323. },
  3324. isTopType: function(t) {
  3325. return H.isStrongTopType(t) || t === type$.Object;
  3326. },
  3327. isStrongTopType: function(t) {
  3328. var t2,
  3329. t1 = t._kind,
  3330. kind = t1;
  3331. if (kind !== 2)
  3332. if (kind !== 3)
  3333. if (kind !== 4)
  3334. if (kind !== 5) {
  3335. t2 = type$.Object;
  3336. if (!(t === t2))
  3337. t1 = t1 === 7 && t._primary === t2;
  3338. else
  3339. t1 = true;
  3340. } else
  3341. t1 = true;
  3342. else
  3343. t1 = true;
  3344. else
  3345. t1 = true;
  3346. else
  3347. t1 = true;
  3348. return t1;
  3349. },
  3350. _Utils_objectAssign: function(o, other) {
  3351. var i, key,
  3352. keys = Object.keys(other),
  3353. $length = keys.length;
  3354. for (i = 0; i < $length; ++i) {
  3355. key = keys[i];
  3356. o[key] = other[key];
  3357. }
  3358. },
  3359. Rti: function Rti(t0, t1) {
  3360. var _ = this;
  3361. _._as = t0;
  3362. _._is = t1;
  3363. _._cachedRuntimeType = _._specializedTestResource = _._precomputed1 = null;
  3364. _._kind = 0;
  3365. _._canonicalRecipe = _._bindCache = _._evalCache = _._rest = _._primary = null;
  3366. },
  3367. _FunctionParameters: function _FunctionParameters() {
  3368. this._optionalNamed = this._optionalPositional = this._requiredPositional = null;
  3369. },
  3370. _Type: function _Type(t0) {
  3371. this._rti = t0;
  3372. },
  3373. _Error: function _Error() {
  3374. },
  3375. _TypeError: function _TypeError(t0) {
  3376. this._message = t0;
  3377. },
  3378. unmangleGlobalNameIfPreservedAnyways: function($name) {
  3379. return init.mangledGlobalNames[$name];
  3380. },
  3381. printString: function(string) {
  3382. if (typeof dartPrint == "function") {
  3383. dartPrint(string);
  3384. return;
  3385. }
  3386. if (typeof console == "object" && typeof console.log != "undefined") {
  3387. console.log(string);
  3388. return;
  3389. }
  3390. if (typeof window == "object")
  3391. return;
  3392. if (typeof print == "function") {
  3393. print(string);
  3394. return;
  3395. }
  3396. throw "Unable to print message: " + String(string);
  3397. }
  3398. },
  3399. J = {
  3400. makeDispatchRecord: function(interceptor, proto, extension, indexability) {
  3401. return {i: interceptor, p: proto, e: extension, x: indexability};
  3402. },
  3403. getNativeInterceptor: function(object) {
  3404. var proto, objectProto, $constructor, interceptor,
  3405. record = object[init.dispatchPropertyName];
  3406. if (record == null)
  3407. if ($.initNativeDispatchFlag == null) {
  3408. H.initNativeDispatch();
  3409. record = object[init.dispatchPropertyName];
  3410. }
  3411. if (record != null) {
  3412. proto = record.p;
  3413. if (false === proto)
  3414. return record.i;
  3415. if (true === proto)
  3416. return object;
  3417. objectProto = Object.getPrototypeOf(object);
  3418. if (proto === objectProto)
  3419. return record.i;
  3420. if (record.e === objectProto)
  3421. throw H.wrapException(P.UnimplementedError$("Return interceptor for " + H.S(proto(object, record))));
  3422. }
  3423. $constructor = object.constructor;
  3424. interceptor = $constructor == null ? null : $constructor[$.$get$JS_INTEROP_INTERCEPTOR_TAG()];
  3425. if (interceptor != null)
  3426. return interceptor;
  3427. interceptor = H.lookupAndCacheInterceptor(object);
  3428. if (interceptor != null)
  3429. return interceptor;
  3430. if (typeof object == "function")
  3431. return C.JavaScriptFunction_methods;
  3432. proto = Object.getPrototypeOf(object);
  3433. if (proto == null)
  3434. return C.PlainJavaScriptObject_methods;
  3435. if (proto === Object.prototype)
  3436. return C.PlainJavaScriptObject_methods;
  3437. if (typeof $constructor == "function") {
  3438. Object.defineProperty($constructor, $.$get$JS_INTEROP_INTERCEPTOR_TAG(), {value: C.UnknownJavaScriptObject_methods, enumerable: false, writable: true, configurable: true});
  3439. return C.UnknownJavaScriptObject_methods;
  3440. }
  3441. return C.UnknownJavaScriptObject_methods;
  3442. },
  3443. JSArray_JSArray$fixed: function($length, $E) {
  3444. if (!H._isInt($length))
  3445. throw H.wrapException(P.ArgumentError$value($length, "length", "is not an integer"));
  3446. if ($length < 0 || $length > 4294967295)
  3447. throw H.wrapException(P.RangeError$range($length, 0, 4294967295, "length", null));
  3448. return J.JSArray_JSArray$markFixed(new Array($length), $E);
  3449. },
  3450. JSArray_JSArray$markFixed: function(allocation, $E) {
  3451. return J.JSArray_markFixedList(H.setRuntimeTypeInfo(allocation, $E._eval$1("JSArray<0>")));
  3452. },
  3453. JSArray_markFixedList: function(list) {
  3454. list.fixed$length = Array;
  3455. return list;
  3456. },
  3457. JSArray_markUnmodifiableList: function(list) {
  3458. list.fixed$length = Array;
  3459. list.immutable$list = Array;
  3460. return list;
  3461. },
  3462. JSArray__compareAny: function(a, b) {
  3463. return J.compareTo$1$ns(a, b);
  3464. },
  3465. JSString__isWhitespace: function(codeUnit) {
  3466. if (codeUnit < 256)
  3467. switch (codeUnit) {
  3468. case 9:
  3469. case 10:
  3470. case 11:
  3471. case 12:
  3472. case 13:
  3473. case 32:
  3474. case 133:
  3475. case 160:
  3476. return true;
  3477. default:
  3478. return false;
  3479. }
  3480. switch (codeUnit) {
  3481. case 5760:
  3482. case 8192:
  3483. case 8193:
  3484. case 8194:
  3485. case 8195:
  3486. case 8196:
  3487. case 8197:
  3488. case 8198:
  3489. case 8199:
  3490. case 8200:
  3491. case 8201:
  3492. case 8202:
  3493. case 8232:
  3494. case 8233:
  3495. case 8239:
  3496. case 8287:
  3497. case 12288:
  3498. case 65279:
  3499. return true;
  3500. default:
  3501. return false;
  3502. }
  3503. },
  3504. JSString__skipLeadingWhitespace: function(string, index) {
  3505. var t1, codeUnit;
  3506. for (t1 = string.length; index < t1;) {
  3507. codeUnit = C.JSString_methods._codeUnitAt$1(string, index);
  3508. if (codeUnit !== 32 && codeUnit !== 13 && !J.JSString__isWhitespace(codeUnit))
  3509. break;
  3510. ++index;
  3511. }
  3512. return index;
  3513. },
  3514. JSString__skipTrailingWhitespace: function(string, index) {
  3515. var index0, codeUnit;
  3516. for (; index > 0; index = index0) {
  3517. index0 = index - 1;
  3518. codeUnit = C.JSString_methods.codeUnitAt$1(string, index0);
  3519. if (codeUnit !== 32 && codeUnit !== 13 && !J.JSString__isWhitespace(codeUnit))
  3520. break;
  3521. }
  3522. return index;
  3523. },
  3524. getInterceptor$: function(receiver) {
  3525. if (typeof receiver == "number") {
  3526. if (Math.floor(receiver) == receiver)
  3527. return J.JSInt.prototype;
  3528. return J.JSDouble.prototype;
  3529. }
  3530. if (typeof receiver == "string")
  3531. return J.JSString.prototype;
  3532. if (receiver == null)
  3533. return J.JSNull.prototype;
  3534. if (typeof receiver == "boolean")
  3535. return J.JSBool.prototype;
  3536. if (receiver.constructor == Array)
  3537. return J.JSArray.prototype;
  3538. if (typeof receiver != "object") {
  3539. if (typeof receiver == "function")
  3540. return J.JavaScriptFunction.prototype;
  3541. return receiver;
  3542. }
  3543. if (receiver instanceof P.Object)
  3544. return receiver;
  3545. return J.getNativeInterceptor(receiver);
  3546. },
  3547. getInterceptor$ansx: function(receiver) {
  3548. if (typeof receiver == "number")
  3549. return J.JSNumber.prototype;
  3550. if (typeof receiver == "string")
  3551. return J.JSString.prototype;
  3552. if (receiver == null)
  3553. return receiver;
  3554. if (receiver.constructor == Array)
  3555. return J.JSArray.prototype;
  3556. if (typeof receiver != "object") {
  3557. if (typeof receiver == "function")
  3558. return J.JavaScriptFunction.prototype;
  3559. return receiver;
  3560. }
  3561. if (receiver instanceof P.Object)
  3562. return receiver;
  3563. return J.getNativeInterceptor(receiver);
  3564. },
  3565. getInterceptor$asx: function(receiver) {
  3566. if (typeof receiver == "string")
  3567. return J.JSString.prototype;
  3568. if (receiver == null)
  3569. return receiver;
  3570. if (receiver.constructor == Array)
  3571. return J.JSArray.prototype;
  3572. if (typeof receiver != "object") {
  3573. if (typeof receiver == "function")
  3574. return J.JavaScriptFunction.prototype;
  3575. return receiver;
  3576. }
  3577. if (receiver instanceof P.Object)
  3578. return receiver;
  3579. return J.getNativeInterceptor(receiver);
  3580. },
  3581. getInterceptor$ax: function(receiver) {
  3582. if (receiver == null)
  3583. return receiver;
  3584. if (receiver.constructor == Array)
  3585. return J.JSArray.prototype;
  3586. if (typeof receiver != "object") {
  3587. if (typeof receiver == "function")
  3588. return J.JavaScriptFunction.prototype;
  3589. return receiver;
  3590. }
  3591. if (receiver instanceof P.Object)
  3592. return receiver;
  3593. return J.getNativeInterceptor(receiver);
  3594. },
  3595. getInterceptor$n: function(receiver) {
  3596. if (typeof receiver == "number")
  3597. return J.JSNumber.prototype;
  3598. if (receiver == null)
  3599. return receiver;
  3600. if (!(receiver instanceof P.Object))
  3601. return J.UnknownJavaScriptObject.prototype;
  3602. return receiver;
  3603. },
  3604. getInterceptor$ns: function(receiver) {
  3605. if (typeof receiver == "number")
  3606. return J.JSNumber.prototype;
  3607. if (typeof receiver == "string")
  3608. return J.JSString.prototype;
  3609. if (receiver == null)
  3610. return receiver;
  3611. if (!(receiver instanceof P.Object))
  3612. return J.UnknownJavaScriptObject.prototype;
  3613. return receiver;
  3614. },
  3615. getInterceptor$s: function(receiver) {
  3616. if (typeof receiver == "string")
  3617. return J.JSString.prototype;
  3618. if (receiver == null)
  3619. return receiver;
  3620. if (!(receiver instanceof P.Object))
  3621. return J.UnknownJavaScriptObject.prototype;
  3622. return receiver;
  3623. },
  3624. getInterceptor$x: function(receiver) {
  3625. if (receiver == null)
  3626. return receiver;
  3627. if (typeof receiver != "object") {
  3628. if (typeof receiver == "function")
  3629. return J.JavaScriptFunction.prototype;
  3630. return receiver;
  3631. }
  3632. if (receiver instanceof P.Object)
  3633. return receiver;
  3634. return J.getNativeInterceptor(receiver);
  3635. },
  3636. set$FALSE$x: function(receiver, value) {
  3637. return J.getInterceptor$x(receiver).set$FALSE(receiver, value);
  3638. },
  3639. set$NULL$x: function(receiver, value) {
  3640. return J.getInterceptor$x(receiver).set$NULL(receiver, value);
  3641. },
  3642. set$TRUE$x: function(receiver, value) {
  3643. return J.getInterceptor$x(receiver).set$TRUE(receiver, value);
  3644. },
  3645. set$cli_pkg_main_0_$x: function(receiver, value) {
  3646. return J.getInterceptor$x(receiver).set$cli_pkg_main_0_(receiver, value);
  3647. },
  3648. set$context$x: function(receiver, value) {
  3649. return J.getInterceptor$x(receiver).set$context(receiver, value);
  3650. },
  3651. set$dartValue$x: function(receiver, value) {
  3652. return J.getInterceptor$x(receiver).set$dartValue(receiver, value);
  3653. },
  3654. set$info$x: function(receiver, value) {
  3655. return J.getInterceptor$x(receiver).set$info(receiver, value);
  3656. },
  3657. set$length$asx: function(receiver, value) {
  3658. return J.getInterceptor$asx(receiver).set$length(receiver, value);
  3659. },
  3660. set$render$x: function(receiver, value) {
  3661. return J.getInterceptor$x(receiver).set$render(receiver, value);
  3662. },
  3663. set$renderSync$x: function(receiver, value) {
  3664. return J.getInterceptor$x(receiver).set$renderSync(receiver, value);
  3665. },
  3666. set$types$x: function(receiver, value) {
  3667. return J.getInterceptor$x(receiver).set$types(receiver, value);
  3668. },
  3669. get$code$x: function(receiver) {
  3670. return J.getInterceptor$x(receiver).get$code(receiver);
  3671. },
  3672. get$current$x: function(receiver) {
  3673. return J.getInterceptor$x(receiver).get$current(receiver);
  3674. },
  3675. get$dartValue$x: function(receiver) {
  3676. return J.getInterceptor$x(receiver).get$dartValue(receiver);
  3677. },
  3678. get$end$x: function(receiver) {
  3679. return J.getInterceptor$x(receiver).get$end(receiver);
  3680. },
  3681. get$env$x: function(receiver) {
  3682. return J.getInterceptor$x(receiver).get$env(receiver);
  3683. },
  3684. get$fiber$x: function(receiver) {
  3685. return J.getInterceptor$x(receiver).get$fiber(receiver);
  3686. },
  3687. get$file$x: function(receiver) {
  3688. return J.getInterceptor$x(receiver).get$file(receiver);
  3689. },
  3690. get$first$ax: function(receiver) {
  3691. return J.getInterceptor$ax(receiver).get$first(receiver);
  3692. },
  3693. get$hashCode$: function(receiver) {
  3694. return J.getInterceptor$(receiver).get$hashCode(receiver);
  3695. },
  3696. get$isEmpty$asx: function(receiver) {
  3697. return J.getInterceptor$asx(receiver).get$isEmpty(receiver);
  3698. },
  3699. get$isNotEmpty$asx: function(receiver) {
  3700. return J.getInterceptor$asx(receiver).get$isNotEmpty(receiver);
  3701. },
  3702. get$isTTY$x: function(receiver) {
  3703. return J.getInterceptor$x(receiver).get$isTTY(receiver);
  3704. },
  3705. get$iterator$ax: function(receiver) {
  3706. return J.getInterceptor$ax(receiver).get$iterator(receiver);
  3707. },
  3708. get$last$ax: function(receiver) {
  3709. return J.getInterceptor$ax(receiver).get$last(receiver);
  3710. },
  3711. get$length$asx: function(receiver) {
  3712. return J.getInterceptor$asx(receiver).get$length(receiver);
  3713. },
  3714. get$message$x: function(receiver) {
  3715. return J.getInterceptor$x(receiver).get$message(receiver);
  3716. },
  3717. get$mtime$x: function(receiver) {
  3718. return J.getInterceptor$x(receiver).get$mtime(receiver);
  3719. },
  3720. get$options$x: function(receiver) {
  3721. return J.getInterceptor$x(receiver).get$options(receiver);
  3722. },
  3723. get$path$x: function(receiver) {
  3724. return J.getInterceptor$x(receiver).get$path(receiver);
  3725. },
  3726. get$platform$x: function(receiver) {
  3727. return J.getInterceptor$x(receiver).get$platform(receiver);
  3728. },
  3729. get$reversed$ax: function(receiver) {
  3730. return J.getInterceptor$ax(receiver).get$reversed(receiver);
  3731. },
  3732. get$single$ax: function(receiver) {
  3733. return J.getInterceptor$ax(receiver).get$single(receiver);
  3734. },
  3735. $add$ansx: function(receiver, a0) {
  3736. if (typeof receiver == "number" && typeof a0 == "number")
  3737. return receiver + a0;
  3738. return J.getInterceptor$ansx(receiver).$add(receiver, a0);
  3739. },
  3740. $eq$: function(receiver, a0) {
  3741. if (receiver == null)
  3742. return a0 == null;
  3743. if (typeof receiver != "object")
  3744. return a0 != null && receiver === a0;
  3745. return J.getInterceptor$(receiver).$eq(receiver, a0);
  3746. },
  3747. $index$asx: function(receiver, a0) {
  3748. if (typeof a0 === "number")
  3749. if (receiver.constructor == Array || typeof receiver == "string" || H.isJsIndexable(receiver, receiver[init.dispatchPropertyName]))
  3750. if (a0 >>> 0 === a0 && a0 < receiver.length)
  3751. return receiver[a0];
  3752. return J.getInterceptor$asx(receiver).$index(receiver, a0);
  3753. },
  3754. $indexSet$ax: function(receiver, a0, a1) {
  3755. if (typeof a0 === "number")
  3756. if ((receiver.constructor == Array || H.isJsIndexable(receiver, receiver[init.dispatchPropertyName])) && !receiver.immutable$list && a0 >>> 0 === a0 && a0 < receiver.length)
  3757. return receiver[a0] = a1;
  3758. return J.getInterceptor$ax(receiver).$indexSet(receiver, a0, a1);
  3759. },
  3760. _codeUnitAt$1$s: function(receiver, a0) {
  3761. return J.getInterceptor$s(receiver)._codeUnitAt$1(receiver, a0);
  3762. },
  3763. add$1$ax: function(receiver, a0) {
  3764. return J.getInterceptor$ax(receiver).add$1(receiver, a0);
  3765. },
  3766. addAll$1$ax: function(receiver, a0) {
  3767. return J.getInterceptor$ax(receiver).addAll$1(receiver, a0);
  3768. },
  3769. allMatches$1$s: function(receiver, a0) {
  3770. return J.getInterceptor$s(receiver).allMatches$1(receiver, a0);
  3771. },
  3772. allMatches$2$s: function(receiver, a0, a1) {
  3773. return J.getInterceptor$s(receiver).allMatches$2(receiver, a0, a1);
  3774. },
  3775. any$1$ax: function(receiver, a0) {
  3776. return J.getInterceptor$ax(receiver).any$1(receiver, a0);
  3777. },
  3778. apply$2$x: function(receiver, a0, a1) {
  3779. return J.getInterceptor$x(receiver).apply$2(receiver, a0, a1);
  3780. },
  3781. cast$1$0$ax: function(receiver, $T1) {
  3782. return J.getInterceptor$ax(receiver).cast$1$0(receiver, $T1);
  3783. },
  3784. ceil$0$n: function(receiver) {
  3785. return J.getInterceptor$n(receiver).ceil$0(receiver);
  3786. },
  3787. clamp$2$n: function(receiver, a0, a1) {
  3788. return J.getInterceptor$n(receiver).clamp$2(receiver, a0, a1);
  3789. },
  3790. close$0$x: function(receiver) {
  3791. return J.getInterceptor$x(receiver).close$0(receiver);
  3792. },
  3793. codeUnitAt$1$s: function(receiver, a0) {
  3794. return J.getInterceptor$s(receiver).codeUnitAt$1(receiver, a0);
  3795. },
  3796. compareTo$1$ns: function(receiver, a0) {
  3797. return J.getInterceptor$ns(receiver).compareTo$1(receiver, a0);
  3798. },
  3799. contains$1$asx: function(receiver, a0) {
  3800. return J.getInterceptor$asx(receiver).contains$1(receiver, a0);
  3801. },
  3802. createInterface$1$x: function(receiver, a0) {
  3803. return J.getInterceptor$x(receiver).createInterface$1(receiver, a0);
  3804. },
  3805. elementAt$1$ax: function(receiver, a0) {
  3806. return J.getInterceptor$ax(receiver).elementAt$1(receiver, a0);
  3807. },
  3808. endsWith$1$s: function(receiver, a0) {
  3809. return J.getInterceptor$s(receiver).endsWith$1(receiver, a0);
  3810. },
  3811. every$1$ax: function(receiver, a0) {
  3812. return J.getInterceptor$ax(receiver).every$1(receiver, a0);
  3813. },
  3814. existsSync$1$x: function(receiver, a0) {
  3815. return J.getInterceptor$x(receiver).existsSync$1(receiver, a0);
  3816. },
  3817. expand$1$1$ax: function(receiver, a0, $T1) {
  3818. return J.getInterceptor$ax(receiver).expand$1$1(receiver, a0, $T1);
  3819. },
  3820. fillRange$3$ax: function(receiver, a0, a1, a2) {
  3821. return J.getInterceptor$ax(receiver).fillRange$3(receiver, a0, a1, a2);
  3822. },
  3823. floor$0$n: function(receiver) {
  3824. return J.getInterceptor$n(receiver).floor$0(receiver);
  3825. },
  3826. fold$2$ax: function(receiver, a0, a1) {
  3827. return J.getInterceptor$ax(receiver).fold$2(receiver, a0, a1);
  3828. },
  3829. getTime$0$x: function(receiver) {
  3830. return J.getInterceptor$x(receiver).getTime$0(receiver);
  3831. },
  3832. indexOf$1$asx: function(receiver, a0) {
  3833. return J.getInterceptor$asx(receiver).indexOf$1(receiver, a0);
  3834. },
  3835. isDirectory$0$x: function(receiver) {
  3836. return J.getInterceptor$x(receiver).isDirectory$0(receiver);
  3837. },
  3838. isFile$0$x: function(receiver) {
  3839. return J.getInterceptor$x(receiver).isFile$0(receiver);
  3840. },
  3841. join$0$ax: function(receiver) {
  3842. return J.getInterceptor$ax(receiver).join$0(receiver);
  3843. },
  3844. join$1$ax: function(receiver, a0) {
  3845. return J.getInterceptor$ax(receiver).join$1(receiver, a0);
  3846. },
  3847. map$1$ax: function(receiver, a0) {
  3848. return J.getInterceptor$ax(receiver).map$1(receiver, a0);
  3849. },
  3850. map$1$1$ax: function(receiver, a0, $T1) {
  3851. return J.getInterceptor$ax(receiver).map$1$1(receiver, a0, $T1);
  3852. },
  3853. matchAsPrefix$2$s: function(receiver, a0, a1) {
  3854. return J.getInterceptor$s(receiver).matchAsPrefix$2(receiver, a0, a1);
  3855. },
  3856. mkdirSync$1$x: function(receiver, a0) {
  3857. return J.getInterceptor$x(receiver).mkdirSync$1(receiver, a0);
  3858. },
  3859. noSuchMethod$1$: function(receiver, a0) {
  3860. return J.getInterceptor$(receiver).noSuchMethod$1(receiver, a0);
  3861. },
  3862. on$2$x: function(receiver, a0, a1) {
  3863. return J.getInterceptor$x(receiver).on$2(receiver, a0, a1);
  3864. },
  3865. padRight$1$s: function(receiver, a0) {
  3866. return J.getInterceptor$s(receiver).padRight$1(receiver, a0);
  3867. },
  3868. readFileSync$2$x: function(receiver, a0, a1) {
  3869. return J.getInterceptor$x(receiver).readFileSync$2(receiver, a0, a1);
  3870. },
  3871. readdirSync$1$x: function(receiver, a0) {
  3872. return J.getInterceptor$x(receiver).readdirSync$1(receiver, a0);
  3873. },
  3874. remove$1$ax: function(receiver, a0) {
  3875. return J.getInterceptor$ax(receiver).remove$1(receiver, a0);
  3876. },
  3877. replaceRange$3$asx: function(receiver, a0, a1, a2) {
  3878. return J.getInterceptor$asx(receiver).replaceRange$3(receiver, a0, a1, a2);
  3879. },
  3880. round$0$n: function(receiver) {
  3881. return J.getInterceptor$n(receiver).round$0(receiver);
  3882. },
  3883. run$0$x: function(receiver) {
  3884. return J.getInterceptor$x(receiver).run$0(receiver);
  3885. },
  3886. run$1$x: function(receiver, a0) {
  3887. return J.getInterceptor$x(receiver).run$1(receiver, a0);
  3888. },
  3889. setPrompt$1$x: function(receiver, a0) {
  3890. return J.getInterceptor$x(receiver).setPrompt$1(receiver, a0);
  3891. },
  3892. setRange$4$ax: function(receiver, a0, a1, a2, a3) {
  3893. return J.getInterceptor$ax(receiver).setRange$4(receiver, a0, a1, a2, a3);
  3894. },
  3895. skip$1$ax: function(receiver, a0) {
  3896. return J.getInterceptor$ax(receiver).skip$1(receiver, a0);
  3897. },
  3898. sort$1$ax: function(receiver, a0) {
  3899. return J.getInterceptor$ax(receiver).sort$1(receiver, a0);
  3900. },
  3901. startsWith$1$s: function(receiver, a0) {
  3902. return J.getInterceptor$s(receiver).startsWith$1(receiver, a0);
  3903. },
  3904. startsWith$2$s: function(receiver, a0, a1) {
  3905. return J.getInterceptor$s(receiver).startsWith$2(receiver, a0, a1);
  3906. },
  3907. statSync$1$x: function(receiver, a0) {
  3908. return J.getInterceptor$x(receiver).statSync$1(receiver, a0);
  3909. },
  3910. substring$1$s: function(receiver, a0) {
  3911. return J.getInterceptor$s(receiver).substring$1(receiver, a0);
  3912. },
  3913. substring$2$s: function(receiver, a0, a1) {
  3914. return J.getInterceptor$s(receiver).substring$2(receiver, a0, a1);
  3915. },
  3916. take$1$ax: function(receiver, a0) {
  3917. return J.getInterceptor$ax(receiver).take$1(receiver, a0);
  3918. },
  3919. toList$0$ax: function(receiver) {
  3920. return J.getInterceptor$ax(receiver).toList$0(receiver);
  3921. },
  3922. toList$1$growable$ax: function(receiver, a0) {
  3923. return J.getInterceptor$ax(receiver).toList$1$growable(receiver, a0);
  3924. },
  3925. toRadixString$1$n: function(receiver, a0) {
  3926. return J.getInterceptor$n(receiver).toRadixString$1(receiver, a0);
  3927. },
  3928. toSet$0$ax: function(receiver) {
  3929. return J.getInterceptor$ax(receiver).toSet$0(receiver);
  3930. },
  3931. toString$0$: function(receiver) {
  3932. return J.getInterceptor$(receiver).toString$0(receiver);
  3933. },
  3934. toString$1$color$: function(receiver, a0) {
  3935. return J.getInterceptor$(receiver).toString$1$color(receiver, a0);
  3936. },
  3937. trim$0$s: function(receiver) {
  3938. return J.getInterceptor$s(receiver).trim$0(receiver);
  3939. },
  3940. unlinkSync$1$x: function(receiver, a0) {
  3941. return J.getInterceptor$x(receiver).unlinkSync$1(receiver, a0);
  3942. },
  3943. watch$2$x: function(receiver, a0, a1) {
  3944. return J.getInterceptor$x(receiver).watch$2(receiver, a0, a1);
  3945. },
  3946. where$1$ax: function(receiver, a0) {
  3947. return J.getInterceptor$ax(receiver).where$1(receiver, a0);
  3948. },
  3949. write$1$x: function(receiver, a0) {
  3950. return J.getInterceptor$x(receiver).write$1(receiver, a0);
  3951. },
  3952. writeFileSync$2$x: function(receiver, a0, a1) {
  3953. return J.getInterceptor$x(receiver).writeFileSync$2(receiver, a0, a1);
  3954. },
  3955. yield$0$x: function(receiver) {
  3956. return J.getInterceptor$x(receiver).yield$0(receiver);
  3957. },
  3958. Interceptor: function Interceptor() {
  3959. },
  3960. JSBool: function JSBool() {
  3961. },
  3962. JSNull: function JSNull() {
  3963. },
  3964. JavaScriptObject: function JavaScriptObject() {
  3965. },
  3966. PlainJavaScriptObject: function PlainJavaScriptObject() {
  3967. },
  3968. UnknownJavaScriptObject: function UnknownJavaScriptObject() {
  3969. },
  3970. JavaScriptFunction: function JavaScriptFunction() {
  3971. },
  3972. JSArray: function JSArray(t0) {
  3973. this.$ti = t0;
  3974. },
  3975. JSUnmodifiableArray: function JSUnmodifiableArray(t0) {
  3976. this.$ti = t0;
  3977. },
  3978. ArrayIterator: function ArrayIterator(t0, t1) {
  3979. var _ = this;
  3980. _._iterable = t0;
  3981. _._length = t1;
  3982. _._index = 0;
  3983. _._current = null;
  3984. },
  3985. JSNumber: function JSNumber() {
  3986. },
  3987. JSInt: function JSInt() {
  3988. },
  3989. JSDouble: function JSDouble() {
  3990. },
  3991. JSString: function JSString() {
  3992. }
  3993. },
  3994. P = {
  3995. _AsyncRun__initializeScheduleImmediate: function() {
  3996. var div, span, t1 = {};
  3997. if (self.scheduleImmediate != null)
  3998. return P.async__AsyncRun__scheduleImmediateJsOverride$closure();
  3999. if (self.MutationObserver != null && self.document != null) {
  4000. div = self.document.createElement("div");
  4001. span = self.document.createElement("span");
  4002. t1.storedCallback = null;
  4003. new self.MutationObserver(H.convertDartClosureToJS(new P._AsyncRun__initializeScheduleImmediate_internalCallback(t1), 1)).observe(div, {childList: true});
  4004. return new P._AsyncRun__initializeScheduleImmediate_closure(t1, div, span);
  4005. } else if (self.setImmediate != null)
  4006. return P.async__AsyncRun__scheduleImmediateWithSetImmediate$closure();
  4007. return P.async__AsyncRun__scheduleImmediateWithTimer$closure();
  4008. },
  4009. _AsyncRun__scheduleImmediateJsOverride: function(callback) {
  4010. self.scheduleImmediate(H.convertDartClosureToJS(new P._AsyncRun__scheduleImmediateJsOverride_internalCallback(callback), 0));
  4011. },
  4012. _AsyncRun__scheduleImmediateWithSetImmediate: function(callback) {
  4013. self.setImmediate(H.convertDartClosureToJS(new P._AsyncRun__scheduleImmediateWithSetImmediate_internalCallback(callback), 0));
  4014. },
  4015. _AsyncRun__scheduleImmediateWithTimer: function(callback) {
  4016. P.Timer__createTimer(C.Duration_0, callback);
  4017. },
  4018. Timer__createTimer: function(duration, callback) {
  4019. var milliseconds = C.JSInt_methods._tdivFast$1(duration._duration, 1000);
  4020. return P._TimerImpl$(milliseconds < 0 ? 0 : milliseconds, callback);
  4021. },
  4022. _TimerImpl$: function(milliseconds, callback) {
  4023. var t1 = new P._TimerImpl(true);
  4024. t1._TimerImpl$2(milliseconds, callback);
  4025. return t1;
  4026. },
  4027. _TimerImpl$periodic: function(milliseconds, callback) {
  4028. var t1 = new P._TimerImpl(false);
  4029. t1._TimerImpl$periodic$2(milliseconds, callback);
  4030. return t1;
  4031. },
  4032. _makeAsyncAwaitCompleter: function($T) {
  4033. return new P._AsyncAwaitCompleter(new P._Future($.Zone__current, $T._eval$1("_Future<0>")), $T._eval$1("_AsyncAwaitCompleter<0>"));
  4034. },
  4035. _asyncStartSync: function(bodyFunction, completer) {
  4036. bodyFunction.call$2(0, null);
  4037. completer.isSync = true;
  4038. return completer._future;
  4039. },
  4040. _asyncAwait: function(object, bodyFunction) {
  4041. P._awaitOnObject(object, bodyFunction);
  4042. },
  4043. _asyncReturn: function(object, completer) {
  4044. completer.complete$1(object);
  4045. },
  4046. _asyncRethrow: function(object, completer) {
  4047. completer.completeError$2(H.unwrapException(object), H.getTraceFromException(object));
  4048. },
  4049. _awaitOnObject: function(object, bodyFunction) {
  4050. var t1, future,
  4051. thenCallback = new P._awaitOnObject_closure(bodyFunction),
  4052. errorCallback = new P._awaitOnObject_closure0(bodyFunction);
  4053. if (object instanceof P._Future)
  4054. object._thenAwait$1$2(thenCallback, errorCallback, type$.dynamic);
  4055. else {
  4056. t1 = type$.dynamic;
  4057. if (type$.Future_dynamic._is(object))
  4058. object.then$1$2$onError(thenCallback, errorCallback, t1);
  4059. else {
  4060. future = new P._Future($.Zone__current, type$._Future_dynamic);
  4061. future._state = 4;
  4062. future._resultOrListeners = object;
  4063. future._thenAwait$1$2(thenCallback, errorCallback, t1);
  4064. }
  4065. }
  4066. },
  4067. _wrapJsFunctionForAsync: function($function) {
  4068. var $protected = function(fn, ERROR) {
  4069. return function(errorCode, result) {
  4070. while (true)
  4071. try {
  4072. fn(errorCode, result);
  4073. break;
  4074. } catch (error) {
  4075. result = error;
  4076. errorCode = ERROR;
  4077. }
  4078. };
  4079. }($function, 1);
  4080. return $.Zone__current.registerBinaryCallback$1(new P._wrapJsFunctionForAsync_closure($protected));
  4081. },
  4082. _asyncStarHelper: function(object, bodyFunctionOrErrorCode, controller) {
  4083. var t1, t2, stream;
  4084. if (bodyFunctionOrErrorCode === 0) {
  4085. t1 = controller.cancelationFuture;
  4086. if (t1 != null)
  4087. t1._completeWithValue$1(null);
  4088. else
  4089. controller.controller.close$0(0);
  4090. return;
  4091. } else if (bodyFunctionOrErrorCode === 1) {
  4092. t1 = controller.cancelationFuture;
  4093. if (t1 != null)
  4094. t1._completeError$2(H.unwrapException(object), H.getTraceFromException(object));
  4095. else {
  4096. t1 = H.unwrapException(object);
  4097. t2 = H.getTraceFromException(object);
  4098. controller.controller.addError$2(t1, t2);
  4099. controller.controller.close$0(0);
  4100. }
  4101. return;
  4102. }
  4103. if (object instanceof P._IterationMarker) {
  4104. if (controller.cancelationFuture != null) {
  4105. bodyFunctionOrErrorCode.call$2(2, null);
  4106. return;
  4107. }
  4108. t1 = object.state;
  4109. if (t1 === 0) {
  4110. t1 = object.value;
  4111. controller.controller.add$1(0, t1);
  4112. P.scheduleMicrotask(new P._asyncStarHelper_closure(controller, bodyFunctionOrErrorCode));
  4113. return;
  4114. } else if (t1 === 1) {
  4115. stream = object.value;
  4116. controller.controller.addStream$2$cancelOnError(stream, false).then$1(new P._asyncStarHelper_closure0(controller, bodyFunctionOrErrorCode));
  4117. return;
  4118. }
  4119. }
  4120. P._awaitOnObject(object, bodyFunctionOrErrorCode);
  4121. },
  4122. _streamOfController: function(controller) {
  4123. var t1 = controller.controller;
  4124. t1.toString;
  4125. return new P._ControllerStream(t1, H._instanceType(t1)._eval$1("_ControllerStream<1>"));
  4126. },
  4127. _AsyncStarStreamController$: function(body, $T) {
  4128. var t1 = new P._AsyncStarStreamController($T._eval$1("_AsyncStarStreamController<0>"));
  4129. t1._AsyncStarStreamController$1(body, $T);
  4130. return t1;
  4131. },
  4132. _makeAsyncStarStreamController: function(body, $T) {
  4133. return P._AsyncStarStreamController$(body, $T);
  4134. },
  4135. _IterationMarker_yieldStar: function(values) {
  4136. return new P._IterationMarker(values, 1);
  4137. },
  4138. _IterationMarker_endOfIteration: function() {
  4139. return C._IterationMarker_null_2;
  4140. },
  4141. _IterationMarker_yieldSingle: function(value) {
  4142. return new P._IterationMarker(value, 0);
  4143. },
  4144. _IterationMarker_uncaughtError: function(error) {
  4145. return new P._IterationMarker(error, 3);
  4146. },
  4147. _makeSyncStarIterable: function(body, $T) {
  4148. return new P._SyncStarIterable(body, $T._eval$1("_SyncStarIterable<0>"));
  4149. },
  4150. Future_Future$error: function(error, stackTrace, $T) {
  4151. var t1, replacement;
  4152. P.ArgumentError_checkNotNull(error, "error");
  4153. t1 = $.Zone__current;
  4154. if (t1 !== C.C__RootZone) {
  4155. replacement = t1.errorCallback$2(error, stackTrace);
  4156. if (replacement != null) {
  4157. error = replacement.error;
  4158. if (error == null)
  4159. error = new P.NullThrownError();
  4160. stackTrace = replacement.stackTrace;
  4161. }
  4162. }
  4163. if (stackTrace == null)
  4164. stackTrace = P.AsyncError_defaultStackTrace(error);
  4165. t1 = new P._Future($.Zone__current, $T._eval$1("_Future<0>"));
  4166. t1._asyncCompleteError$2(error, stackTrace);
  4167. return t1;
  4168. },
  4169. Future_wait: function(futures, $T) {
  4170. var handleError, future, pos, e, st, t2, t3, exception, _box_0 = {}, cleanUp = null,
  4171. eagerError = false,
  4172. t1 = $T._eval$1("_Future<List<0>>"),
  4173. result = new P._Future($.Zone__current, t1);
  4174. _box_0.values = null;
  4175. _box_0.remaining = 0;
  4176. _box_0.stackTrace = _box_0.error = null;
  4177. handleError = new P.Future_wait_handleError(_box_0, cleanUp, eagerError, result);
  4178. try {
  4179. for (t2 = J.get$iterator$ax(futures), t3 = type$.Null; t2.moveNext$0();) {
  4180. future = t2.get$current(t2);
  4181. pos = _box_0.remaining;
  4182. future.then$1$2$onError(new P.Future_wait_closure(_box_0, pos, result, cleanUp, eagerError, $T), handleError, t3);
  4183. ++_box_0.remaining;
  4184. }
  4185. t2 = _box_0.remaining;
  4186. if (t2 === 0) {
  4187. t1 = new P._Future($.Zone__current, t1);
  4188. t1._asyncComplete$1(C.List_empty9);
  4189. return t1;
  4190. }
  4191. t1 = new Array(t2);
  4192. t1.fixed$length = Array;
  4193. _box_0.values = H.setRuntimeTypeInfo(t1, $T._eval$1("JSArray<0>"));
  4194. } catch (exception) {
  4195. e = H.unwrapException(exception);
  4196. st = H.getTraceFromException(exception);
  4197. if (_box_0.remaining === 0 || eagerError)
  4198. return P.Future_Future$error(e, st, $T._eval$1("List<0>"));
  4199. else {
  4200. _box_0.error = e;
  4201. _box_0.stackTrace = st;
  4202. }
  4203. }
  4204. return result;
  4205. },
  4206. _Future$zoneValue: function(value, _zone, $T) {
  4207. var t1 = new P._Future(_zone, $T._eval$1("_Future<0>"));
  4208. t1._state = 4;
  4209. t1._resultOrListeners = value;
  4210. return t1;
  4211. },
  4212. _Future__chainForeignFuture: function(source, target) {
  4213. var e, s, exception;
  4214. target._state = 1;
  4215. try {
  4216. source.then$1$2$onError(new P._Future__chainForeignFuture_closure(target), new P._Future__chainForeignFuture_closure0(target), type$.Null);
  4217. } catch (exception) {
  4218. e = H.unwrapException(exception);
  4219. s = H.getTraceFromException(exception);
  4220. P.scheduleMicrotask(new P._Future__chainForeignFuture_closure1(target, e, s));
  4221. }
  4222. },
  4223. _Future__chainCoreFuture: function(source, target) {
  4224. var t1, listeners;
  4225. for (; t1 = source._state, t1 === 2;)
  4226. source = source._resultOrListeners;
  4227. if (t1 >= 4) {
  4228. listeners = target._removeListeners$0();
  4229. target._state = source._state;
  4230. target._resultOrListeners = source._resultOrListeners;
  4231. P._Future__propagateToListeners(target, listeners);
  4232. } else {
  4233. listeners = target._resultOrListeners;
  4234. target._state = 2;
  4235. target._resultOrListeners = source;
  4236. source._prependListeners$1(listeners);
  4237. }
  4238. },
  4239. _Future__propagateToListeners: function(source, listeners) {
  4240. var t2, _box_0, hasError, listeners0, sourceResult, t3, t4, zone, oldZone, current, result, _box_1 = {},
  4241. t1 = _box_1.source = source;
  4242. for (t2 = type$.Future_dynamic; true;) {
  4243. _box_0 = {};
  4244. hasError = t1._state === 8;
  4245. if (listeners == null) {
  4246. if (hasError) {
  4247. t2 = t1._resultOrListeners;
  4248. t1._zone.handleUncaughtError$2(t2.error, t2.stackTrace);
  4249. }
  4250. return;
  4251. }
  4252. for (; listeners0 = listeners._nextListener, listeners0 != null; listeners = listeners0) {
  4253. listeners._nextListener = null;
  4254. P._Future__propagateToListeners(_box_1.source, listeners);
  4255. }
  4256. t1 = _box_1.source;
  4257. sourceResult = t1._resultOrListeners;
  4258. _box_0.listenerHasError = hasError;
  4259. _box_0.listenerValueOrError = sourceResult;
  4260. t3 = !hasError;
  4261. if (t3) {
  4262. t4 = listeners.state;
  4263. t4 = (t4 & 1) !== 0 || (t4 & 15) === 8;
  4264. } else
  4265. t4 = true;
  4266. if (t4) {
  4267. t4 = listeners.result;
  4268. zone = t4._zone;
  4269. if (hasError) {
  4270. t1 = t1._zone;
  4271. t1.toString;
  4272. t1 = !(t1 === zone || t1.get$errorZone() === zone.get$errorZone());
  4273. } else
  4274. t1 = false;
  4275. if (t1) {
  4276. t1 = _box_1.source;
  4277. t2 = t1._resultOrListeners;
  4278. t1._zone.handleUncaughtError$2(t2.error, t2.stackTrace);
  4279. return;
  4280. }
  4281. oldZone = $.Zone__current;
  4282. if (oldZone != zone)
  4283. $.Zone__current = zone;
  4284. else
  4285. oldZone = null;
  4286. t1 = listeners.state;
  4287. if ((t1 & 15) === 8)
  4288. new P._Future__propagateToListeners_handleWhenCompleteCallback(_box_1, _box_0, listeners, hasError).call$0();
  4289. else if (t3) {
  4290. if ((t1 & 1) !== 0)
  4291. new P._Future__propagateToListeners_handleValueCallback(_box_0, listeners, sourceResult).call$0();
  4292. } else if ((t1 & 2) !== 0)
  4293. new P._Future__propagateToListeners_handleError(_box_1, _box_0, listeners).call$0();
  4294. if (oldZone != null)
  4295. $.Zone__current = oldZone;
  4296. t1 = _box_0.listenerValueOrError;
  4297. if (t2._is(t1)) {
  4298. if (t1._state >= 4) {
  4299. current = t4._resultOrListeners;
  4300. t4._resultOrListeners = null;
  4301. listeners = t4._reverseListeners$1(current);
  4302. t4._state = t1._state;
  4303. t4._resultOrListeners = t1._resultOrListeners;
  4304. _box_1.source = t1;
  4305. continue;
  4306. } else
  4307. P._Future__chainCoreFuture(t1, t4);
  4308. return;
  4309. }
  4310. }
  4311. result = listeners.result;
  4312. current = result._resultOrListeners;
  4313. result._resultOrListeners = null;
  4314. listeners = result._reverseListeners$1(current);
  4315. t1 = _box_0.listenerHasError;
  4316. t3 = _box_0.listenerValueOrError;
  4317. if (!t1) {
  4318. result._state = 4;
  4319. result._resultOrListeners = t3;
  4320. } else {
  4321. result._state = 8;
  4322. result._resultOrListeners = t3;
  4323. }
  4324. _box_1.source = result;
  4325. t1 = result;
  4326. }
  4327. },
  4328. _registerErrorHandler: function(errorHandler, zone) {
  4329. if (type$.dynamic_Function_Object_StackTrace._is(errorHandler))
  4330. return zone.registerBinaryCallback$1(errorHandler);
  4331. if (type$.dynamic_Function_Object._is(errorHandler))
  4332. return zone.registerUnaryCallback$1(errorHandler);
  4333. throw H.wrapException(P.ArgumentError$value(errorHandler, "onError", "Error handler must accept one Object or one Object and a StackTrace as arguments, and return a a valid result"));
  4334. },
  4335. _microtaskLoop: function() {
  4336. var t1, t2;
  4337. for (; t1 = $._nextCallback, t1 != null;) {
  4338. $._lastPriorityCallback = null;
  4339. t2 = t1.next;
  4340. $._nextCallback = t2;
  4341. if (t2 == null)
  4342. $._lastCallback = null;
  4343. t1.callback.call$0();
  4344. }
  4345. },
  4346. _startMicrotaskLoop: function() {
  4347. $._isInCallbackLoop = true;
  4348. try {
  4349. P._microtaskLoop();
  4350. } finally {
  4351. $._lastPriorityCallback = null;
  4352. $._isInCallbackLoop = false;
  4353. if ($._nextCallback != null)
  4354. $.$get$_AsyncRun__scheduleImmediateClosure().call$1(P.async___startMicrotaskLoop$closure());
  4355. }
  4356. },
  4357. _scheduleAsyncCallback: function(callback) {
  4358. var newEntry = new P._AsyncCallbackEntry(callback);
  4359. if ($._nextCallback == null) {
  4360. $._nextCallback = $._lastCallback = newEntry;
  4361. if (!$._isInCallbackLoop)
  4362. $.$get$_AsyncRun__scheduleImmediateClosure().call$1(P.async___startMicrotaskLoop$closure());
  4363. } else
  4364. $._lastCallback = $._lastCallback.next = newEntry;
  4365. },
  4366. _schedulePriorityAsyncCallback: function(callback) {
  4367. var entry, t2,
  4368. t1 = $._nextCallback;
  4369. if (t1 == null) {
  4370. P._scheduleAsyncCallback(callback);
  4371. $._lastPriorityCallback = $._lastCallback;
  4372. return;
  4373. }
  4374. entry = new P._AsyncCallbackEntry(callback);
  4375. t2 = $._lastPriorityCallback;
  4376. if (t2 == null) {
  4377. entry.next = t1;
  4378. $._nextCallback = $._lastPriorityCallback = entry;
  4379. } else {
  4380. entry.next = t2.next;
  4381. $._lastPriorityCallback = t2.next = entry;
  4382. if (entry.next == null)
  4383. $._lastCallback = entry;
  4384. }
  4385. },
  4386. scheduleMicrotask: function(callback) {
  4387. var t1, _null = null,
  4388. currentZone = $.Zone__current;
  4389. if (C.C__RootZone === currentZone) {
  4390. P._rootScheduleMicrotask(_null, _null, C.C__RootZone, callback);
  4391. return;
  4392. }
  4393. if (C.C__RootZone === currentZone.get$_scheduleMicrotask().zone)
  4394. t1 = C.C__RootZone.get$errorZone() === currentZone.get$errorZone();
  4395. else
  4396. t1 = false;
  4397. if (t1) {
  4398. P._rootScheduleMicrotask(_null, _null, currentZone, currentZone.registerCallback$1(callback));
  4399. return;
  4400. }
  4401. t1 = $.Zone__current;
  4402. t1.scheduleMicrotask$1(t1.bindCallbackGuarded$1(callback));
  4403. },
  4404. Stream_Stream$fromFuture: function(future, $T) {
  4405. var _null = null,
  4406. t1 = $T._eval$1("_SyncStreamController<0>"),
  4407. controller = new P._SyncStreamController(_null, _null, _null, _null, t1);
  4408. future.then$1$2$onError(new P.Stream_Stream$fromFuture_closure(controller, $T), new P.Stream_Stream$fromFuture_closure0(controller), type$.Null);
  4409. return new P._ControllerStream(controller, t1._eval$1("_ControllerStream<1>"));
  4410. },
  4411. StreamIterator_StreamIterator: function(stream) {
  4412. return new P._StreamIterator(stream == null ? H.throwExpression(P.ArgumentError$notNull("stream")) : stream);
  4413. },
  4414. StreamController_StreamController: function(onCancel, onListen, onPause, onResume, sync, $T) {
  4415. return sync ? new P._SyncStreamController(onListen, onPause, onResume, onCancel, $T._eval$1("_SyncStreamController<0>")) : new P._AsyncStreamController(onListen, onPause, onResume, onCancel, $T._eval$1("_AsyncStreamController<0>"));
  4416. },
  4417. _runGuarded: function(notificationHandler) {
  4418. var e, s, exception;
  4419. if (notificationHandler == null)
  4420. return;
  4421. try {
  4422. notificationHandler.call$0();
  4423. } catch (exception) {
  4424. e = H.unwrapException(exception);
  4425. s = H.getTraceFromException(exception);
  4426. $.Zone__current.handleUncaughtError$2(e, s);
  4427. }
  4428. },
  4429. _nullDataHandler: function(value) {
  4430. },
  4431. _nullErrorHandler: function(error, stackTrace) {
  4432. $.Zone__current.handleUncaughtError$2(error, stackTrace);
  4433. },
  4434. _nullDoneHandler: function() {
  4435. },
  4436. _StreamIterator$: function(stream) {
  4437. return new P._StreamIterator(stream == null ? H.throwExpression(P.ArgumentError$notNull("stream")) : stream);
  4438. },
  4439. _addErrorWithReplacement: function(sink, error, stackTrace) {
  4440. var replacement = $.Zone__current.errorCallback$2(error, stackTrace);
  4441. if (replacement != null) {
  4442. error = replacement.error;
  4443. if (error == null)
  4444. error = new P.NullThrownError();
  4445. stackTrace = replacement.stackTrace;
  4446. }
  4447. sink._addError$2(error, stackTrace);
  4448. },
  4449. Timer_Timer: function(duration, callback) {
  4450. var t1 = $.Zone__current;
  4451. if (t1 === C.C__RootZone)
  4452. return t1.createTimer$2(duration, callback);
  4453. return t1.createTimer$2(duration, t1.bindCallbackGuarded$1(callback));
  4454. },
  4455. AsyncError$: function(error, stackTrace) {
  4456. var t1 = stackTrace == null ? P.AsyncError_defaultStackTrace(error) : stackTrace;
  4457. P.ArgumentError_checkNotNull(error, "error");
  4458. return new P.AsyncError(error, t1);
  4459. },
  4460. AsyncError_defaultStackTrace: function(error) {
  4461. var stackTrace;
  4462. if (type$.Error._is(error)) {
  4463. stackTrace = error.get$stackTrace();
  4464. if (stackTrace != null)
  4465. return stackTrace;
  4466. }
  4467. return C._StringStackTrace_3uE;
  4468. },
  4469. _parentDelegate: function(zone) {
  4470. if (zone.get$parent() == null)
  4471. return null;
  4472. return zone.get$parent().get$_delegate();
  4473. },
  4474. _rootHandleUncaughtError: function($self, $parent, zone, error, stackTrace) {
  4475. var t1 = {};
  4476. t1.error = error;
  4477. t1.stackTrace = stackTrace;
  4478. if (error == null) {
  4479. t1.error = new P.ArgumentError(false, null, "error", "Must not be null");
  4480. t1.stackTrace = P.StackTrace_current();
  4481. }
  4482. P._schedulePriorityAsyncCallback(new P._rootHandleUncaughtError_closure(t1));
  4483. },
  4484. _rootRun: function($self, $parent, zone, f) {
  4485. var old,
  4486. t1 = $.Zone__current;
  4487. if (t1 == zone)
  4488. return f.call$0();
  4489. $.Zone__current = zone;
  4490. old = t1;
  4491. try {
  4492. t1 = f.call$0();
  4493. return t1;
  4494. } finally {
  4495. $.Zone__current = old;
  4496. }
  4497. },
  4498. _rootRunUnary: function($self, $parent, zone, f, arg) {
  4499. var old,
  4500. t1 = $.Zone__current;
  4501. if (t1 == zone)
  4502. return f.call$1(arg);
  4503. $.Zone__current = zone;
  4504. old = t1;
  4505. try {
  4506. t1 = f.call$1(arg);
  4507. return t1;
  4508. } finally {
  4509. $.Zone__current = old;
  4510. }
  4511. },
  4512. _rootRunBinary: function($self, $parent, zone, f, arg1, arg2) {
  4513. var old,
  4514. t1 = $.Zone__current;
  4515. if (t1 == zone)
  4516. return f.call$2(arg1, arg2);
  4517. $.Zone__current = zone;
  4518. old = t1;
  4519. try {
  4520. t1 = f.call$2(arg1, arg2);
  4521. return t1;
  4522. } finally {
  4523. $.Zone__current = old;
  4524. }
  4525. },
  4526. _rootRegisterCallback: function($self, $parent, zone, f) {
  4527. return f;
  4528. },
  4529. _rootRegisterUnaryCallback: function($self, $parent, zone, f) {
  4530. return f;
  4531. },
  4532. _rootRegisterBinaryCallback: function($self, $parent, zone, f) {
  4533. return f;
  4534. },
  4535. _rootErrorCallback: function($self, $parent, zone, error, stackTrace) {
  4536. return null;
  4537. },
  4538. _rootScheduleMicrotask: function($self, $parent, zone, f) {
  4539. var t1 = C.C__RootZone !== zone;
  4540. if (t1)
  4541. f = !(!t1 || C.C__RootZone.get$errorZone() === zone.get$errorZone()) ? zone.bindCallbackGuarded$1(f) : zone.bindCallback$1$1(f, type$.void);
  4542. P._scheduleAsyncCallback(f);
  4543. },
  4544. _rootCreateTimer: function($self, $parent, zone, duration, callback) {
  4545. callback = zone.bindCallback$1$1(callback, type$.void);
  4546. return P.Timer__createTimer(duration, callback);
  4547. },
  4548. _rootCreatePeriodicTimer: function($self, $parent, zone, duration, callback) {
  4549. var milliseconds;
  4550. callback = zone.bindUnaryCallback$2$1(callback, type$.dynamic, type$.Timer);
  4551. milliseconds = C.JSInt_methods._tdivFast$1(duration._duration, 1000);
  4552. return P._TimerImpl$periodic(milliseconds < 0 ? 0 : milliseconds, callback);
  4553. },
  4554. _rootPrint: function($self, $parent, zone, line) {
  4555. H.printString(line);
  4556. },
  4557. _printToZone: function(line) {
  4558. $.Zone__current.print$1(line);
  4559. },
  4560. _rootFork: function($self, $parent, zone, specification, zoneValues) {
  4561. var valueMap, t1, t2;
  4562. $.printToZone = P.async___printToZone$closure();
  4563. if (specification == null)
  4564. specification = C._ZoneSpecification_ALf;
  4565. if (zoneValues == null)
  4566. valueMap = zone.get$_async$_map();
  4567. else {
  4568. t1 = type$.dynamic;
  4569. valueMap = P.HashMap_HashMap$from(zoneValues, t1, t1);
  4570. }
  4571. t1 = new P._CustomZone(zone, valueMap);
  4572. t2 = zone.get$_run();
  4573. t1._run = t2;
  4574. t2 = zone.get$_runUnary();
  4575. t1._runUnary = t2;
  4576. t2 = zone.get$_runBinary();
  4577. t1._runBinary = t2;
  4578. t2 = zone.get$_registerCallback();
  4579. t1._registerCallback = t2;
  4580. t2 = zone.get$_registerUnaryCallback();
  4581. t1._registerUnaryCallback = t2;
  4582. t2 = zone.get$_registerBinaryCallback();
  4583. t1._registerBinaryCallback = t2;
  4584. t2 = zone.get$_errorCallback();
  4585. t1._errorCallback = t2;
  4586. t2 = zone.get$_scheduleMicrotask();
  4587. t1._scheduleMicrotask = t2;
  4588. t2 = zone.get$_createTimer();
  4589. t1._createTimer = t2;
  4590. t2 = zone.get$_createPeriodicTimer();
  4591. t1._createPeriodicTimer = t2;
  4592. t2 = zone.get$_print();
  4593. t1._print = t2;
  4594. t2 = zone.get$_fork();
  4595. t1._fork = t2;
  4596. t2 = specification.handleUncaughtError;
  4597. t1._handleUncaughtError = t2 != null ? new P._ZoneFunction(t1, t2) : zone.get$_handleUncaughtError();
  4598. return t1;
  4599. },
  4600. runZoned: function(body, zoneValues) {
  4601. P.ArgumentError_checkNotNull(body, "body");
  4602. return P._runZoned(body, zoneValues, null);
  4603. },
  4604. _runZoned: function(body, zoneValues, specification) {
  4605. return $.Zone__current.fork$2$specification$zoneValues(specification, zoneValues).run$1(0, body);
  4606. },
  4607. _AsyncRun__initializeScheduleImmediate_internalCallback: function _AsyncRun__initializeScheduleImmediate_internalCallback(t0) {
  4608. this._box_0 = t0;
  4609. },
  4610. _AsyncRun__initializeScheduleImmediate_closure: function _AsyncRun__initializeScheduleImmediate_closure(t0, t1, t2) {
  4611. this._box_0 = t0;
  4612. this.div = t1;
  4613. this.span = t2;
  4614. },
  4615. _AsyncRun__scheduleImmediateJsOverride_internalCallback: function _AsyncRun__scheduleImmediateJsOverride_internalCallback(t0) {
  4616. this.callback = t0;
  4617. },
  4618. _AsyncRun__scheduleImmediateWithSetImmediate_internalCallback: function _AsyncRun__scheduleImmediateWithSetImmediate_internalCallback(t0) {
  4619. this.callback = t0;
  4620. },
  4621. _TimerImpl: function _TimerImpl(t0) {
  4622. this._once = t0;
  4623. this._handle = null;
  4624. this._tick = 0;
  4625. },
  4626. _TimerImpl_internalCallback: function _TimerImpl_internalCallback(t0, t1) {
  4627. this.$this = t0;
  4628. this.callback = t1;
  4629. },
  4630. _TimerImpl$periodic_closure: function _TimerImpl$periodic_closure(t0, t1, t2, t3) {
  4631. var _ = this;
  4632. _.$this = t0;
  4633. _.milliseconds = t1;
  4634. _.start = t2;
  4635. _.callback = t3;
  4636. },
  4637. _AsyncAwaitCompleter: function _AsyncAwaitCompleter(t0, t1) {
  4638. this._future = t0;
  4639. this.isSync = false;
  4640. this.$ti = t1;
  4641. },
  4642. _awaitOnObject_closure: function _awaitOnObject_closure(t0) {
  4643. this.bodyFunction = t0;
  4644. },
  4645. _awaitOnObject_closure0: function _awaitOnObject_closure0(t0) {
  4646. this.bodyFunction = t0;
  4647. },
  4648. _wrapJsFunctionForAsync_closure: function _wrapJsFunctionForAsync_closure(t0) {
  4649. this.$protected = t0;
  4650. },
  4651. _asyncStarHelper_closure: function _asyncStarHelper_closure(t0, t1) {
  4652. this.controller = t0;
  4653. this.bodyFunctionOrErrorCode = t1;
  4654. },
  4655. _asyncStarHelper_closure0: function _asyncStarHelper_closure0(t0, t1) {
  4656. this.controller = t0;
  4657. this.bodyFunctionOrErrorCode = t1;
  4658. },
  4659. _AsyncStarStreamController: function _AsyncStarStreamController(t0) {
  4660. var _ = this;
  4661. _.controller = null;
  4662. _.isSuspended = false;
  4663. _.cancelationFuture = null;
  4664. _.$ti = t0;
  4665. },
  4666. _AsyncStarStreamController__resumeBody: function _AsyncStarStreamController__resumeBody(t0) {
  4667. this.body = t0;
  4668. },
  4669. _AsyncStarStreamController__resumeBody_closure: function _AsyncStarStreamController__resumeBody_closure(t0) {
  4670. this.body = t0;
  4671. },
  4672. _AsyncStarStreamController_closure0: function _AsyncStarStreamController_closure0(t0) {
  4673. this._resumeBody = t0;
  4674. },
  4675. _AsyncStarStreamController_closure1: function _AsyncStarStreamController_closure1(t0, t1) {
  4676. this.$this = t0;
  4677. this._resumeBody = t1;
  4678. },
  4679. _AsyncStarStreamController_closure: function _AsyncStarStreamController_closure(t0, t1) {
  4680. this.$this = t0;
  4681. this.body = t1;
  4682. },
  4683. _AsyncStarStreamController__closure: function _AsyncStarStreamController__closure(t0) {
  4684. this.body = t0;
  4685. },
  4686. _IterationMarker: function _IterationMarker(t0, t1) {
  4687. this.value = t0;
  4688. this.state = t1;
  4689. },
  4690. _SyncStarIterator: function _SyncStarIterator(t0) {
  4691. var _ = this;
  4692. _._body = t0;
  4693. _._suspendedBodies = _._nestedIterator = _._async$_current = null;
  4694. },
  4695. _SyncStarIterable: function _SyncStarIterable(t0, t1) {
  4696. this._outerHelper = t0;
  4697. this.$ti = t1;
  4698. },
  4699. _BroadcastStream: function _BroadcastStream(t0, t1) {
  4700. this._async$_controller = t0;
  4701. this.$ti = t1;
  4702. },
  4703. _BroadcastSubscription: function _BroadcastSubscription(t0, t1, t2, t3) {
  4704. var _ = this;
  4705. _._eventState = 0;
  4706. _._async$_previous = _._async$_next = null;
  4707. _._async$_controller = t0;
  4708. _._onDone = _._onError = _._onData = null;
  4709. _._zone = t1;
  4710. _._state = t2;
  4711. _._pending = _._cancelFuture = null;
  4712. _.$ti = t3;
  4713. },
  4714. _BroadcastStreamController: function _BroadcastStreamController() {
  4715. },
  4716. _SyncBroadcastStreamController: function _SyncBroadcastStreamController(t0, t1, t2) {
  4717. var _ = this;
  4718. _.onListen = t0;
  4719. _.onCancel = t1;
  4720. _._state = 0;
  4721. _._doneFuture = _._addStreamState = _._lastSubscription = _._firstSubscription = null;
  4722. _.$ti = t2;
  4723. },
  4724. _SyncBroadcastStreamController__sendData_closure: function _SyncBroadcastStreamController__sendData_closure(t0) {
  4725. this.data = t0;
  4726. },
  4727. _SyncBroadcastStreamController__sendError_closure: function _SyncBroadcastStreamController__sendError_closure(t0, t1) {
  4728. this.error = t0;
  4729. this.stackTrace = t1;
  4730. },
  4731. _SyncBroadcastStreamController__sendDone_closure: function _SyncBroadcastStreamController__sendDone_closure() {
  4732. },
  4733. Future: function Future() {
  4734. },
  4735. Future_wait_handleError: function Future_wait_handleError(t0, t1, t2, t3) {
  4736. var _ = this;
  4737. _._box_0 = t0;
  4738. _.cleanUp = t1;
  4739. _.eagerError = t2;
  4740. _.result = t3;
  4741. },
  4742. Future_wait_closure: function Future_wait_closure(t0, t1, t2, t3, t4, t5) {
  4743. var _ = this;
  4744. _._box_0 = t0;
  4745. _.pos = t1;
  4746. _.result = t2;
  4747. _.cleanUp = t3;
  4748. _.eagerError = t4;
  4749. _.T = t5;
  4750. },
  4751. _Completer: function _Completer() {
  4752. },
  4753. _AsyncCompleter: function _AsyncCompleter(t0, t1) {
  4754. this.future = t0;
  4755. this.$ti = t1;
  4756. },
  4757. _FutureListener: function _FutureListener(t0, t1, t2, t3) {
  4758. var _ = this;
  4759. _._nextListener = null;
  4760. _.result = t0;
  4761. _.state = t1;
  4762. _.callback = t2;
  4763. _.errorCallback = t3;
  4764. },
  4765. _Future: function _Future(t0, t1) {
  4766. var _ = this;
  4767. _._state = 0;
  4768. _._zone = t0;
  4769. _._resultOrListeners = null;
  4770. _.$ti = t1;
  4771. },
  4772. _Future__addListener_closure: function _Future__addListener_closure(t0, t1) {
  4773. this.$this = t0;
  4774. this.listener = t1;
  4775. },
  4776. _Future__prependListeners_closure: function _Future__prependListeners_closure(t0, t1) {
  4777. this._box_0 = t0;
  4778. this.$this = t1;
  4779. },
  4780. _Future__chainForeignFuture_closure: function _Future__chainForeignFuture_closure(t0) {
  4781. this.target = t0;
  4782. },
  4783. _Future__chainForeignFuture_closure0: function _Future__chainForeignFuture_closure0(t0) {
  4784. this.target = t0;
  4785. },
  4786. _Future__chainForeignFuture_closure1: function _Future__chainForeignFuture_closure1(t0, t1, t2) {
  4787. this.target = t0;
  4788. this.e = t1;
  4789. this.s = t2;
  4790. },
  4791. _Future__asyncComplete_closure: function _Future__asyncComplete_closure(t0, t1) {
  4792. this.$this = t0;
  4793. this.value = t1;
  4794. },
  4795. _Future__chainFuture_closure: function _Future__chainFuture_closure(t0, t1) {
  4796. this.$this = t0;
  4797. this.value = t1;
  4798. },
  4799. _Future__asyncCompleteError_closure: function _Future__asyncCompleteError_closure(t0, t1, t2) {
  4800. this.$this = t0;
  4801. this.error = t1;
  4802. this.stackTrace = t2;
  4803. },
  4804. _Future__propagateToListeners_handleWhenCompleteCallback: function _Future__propagateToListeners_handleWhenCompleteCallback(t0, t1, t2, t3) {
  4805. var _ = this;
  4806. _._box_1 = t0;
  4807. _._box_0 = t1;
  4808. _.listener = t2;
  4809. _.hasError = t3;
  4810. },
  4811. _Future__propagateToListeners_handleWhenCompleteCallback_closure: function _Future__propagateToListeners_handleWhenCompleteCallback_closure(t0) {
  4812. this.originalSource = t0;
  4813. },
  4814. _Future__propagateToListeners_handleValueCallback: function _Future__propagateToListeners_handleValueCallback(t0, t1, t2) {
  4815. this._box_0 = t0;
  4816. this.listener = t1;
  4817. this.sourceResult = t2;
  4818. },
  4819. _Future__propagateToListeners_handleError: function _Future__propagateToListeners_handleError(t0, t1, t2) {
  4820. this._box_1 = t0;
  4821. this._box_0 = t1;
  4822. this.listener = t2;
  4823. },
  4824. _AsyncCallbackEntry: function _AsyncCallbackEntry(t0) {
  4825. this.callback = t0;
  4826. this.next = null;
  4827. },
  4828. Stream: function Stream() {
  4829. },
  4830. Stream_Stream$fromFuture_closure: function Stream_Stream$fromFuture_closure(t0, t1) {
  4831. this.controller = t0;
  4832. this.T = t1;
  4833. },
  4834. Stream_Stream$fromFuture_closure0: function Stream_Stream$fromFuture_closure0(t0) {
  4835. this.controller = t0;
  4836. },
  4837. Stream_length_closure: function Stream_length_closure(t0, t1) {
  4838. this._box_0 = t0;
  4839. this.$this = t1;
  4840. },
  4841. Stream_length_closure0: function Stream_length_closure0(t0, t1) {
  4842. this._box_0 = t0;
  4843. this.future = t1;
  4844. },
  4845. StreamSubscription: function StreamSubscription() {
  4846. },
  4847. EventSink: function EventSink() {
  4848. },
  4849. StreamTransformerBase: function StreamTransformerBase() {
  4850. },
  4851. _StreamController: function _StreamController() {
  4852. },
  4853. _StreamController__subscribe_closure: function _StreamController__subscribe_closure(t0) {
  4854. this.$this = t0;
  4855. },
  4856. _StreamController__recordCancel_complete: function _StreamController__recordCancel_complete(t0) {
  4857. this.$this = t0;
  4858. },
  4859. _SyncStreamControllerDispatch: function _SyncStreamControllerDispatch() {
  4860. },
  4861. _AsyncStreamControllerDispatch: function _AsyncStreamControllerDispatch() {
  4862. },
  4863. _AsyncStreamController: function _AsyncStreamController(t0, t1, t2, t3, t4) {
  4864. var _ = this;
  4865. _._varData = null;
  4866. _._state = 0;
  4867. _._doneFuture = null;
  4868. _.onListen = t0;
  4869. _.onPause = t1;
  4870. _.onResume = t2;
  4871. _.onCancel = t3;
  4872. _.$ti = t4;
  4873. },
  4874. _SyncStreamController: function _SyncStreamController(t0, t1, t2, t3, t4) {
  4875. var _ = this;
  4876. _._varData = null;
  4877. _._state = 0;
  4878. _._doneFuture = null;
  4879. _.onListen = t0;
  4880. _.onPause = t1;
  4881. _.onResume = t2;
  4882. _.onCancel = t3;
  4883. _.$ti = t4;
  4884. },
  4885. _ControllerStream: function _ControllerStream(t0, t1) {
  4886. this._async$_controller = t0;
  4887. this.$ti = t1;
  4888. },
  4889. _ControllerSubscription: function _ControllerSubscription(t0, t1, t2, t3) {
  4890. var _ = this;
  4891. _._async$_controller = t0;
  4892. _._onDone = _._onError = _._onData = null;
  4893. _._zone = t1;
  4894. _._state = t2;
  4895. _._pending = _._cancelFuture = null;
  4896. _.$ti = t3;
  4897. },
  4898. _AddStreamState: function _AddStreamState() {
  4899. },
  4900. _AddStreamState_cancel_closure: function _AddStreamState_cancel_closure(t0) {
  4901. this.$this = t0;
  4902. },
  4903. _StreamControllerAddStreamState: function _StreamControllerAddStreamState(t0, t1, t2) {
  4904. this.varData = t0;
  4905. this.addStreamFuture = t1;
  4906. this.addSubscription = t2;
  4907. },
  4908. _BufferingStreamSubscription: function _BufferingStreamSubscription() {
  4909. },
  4910. _BufferingStreamSubscription__sendError_sendError: function _BufferingStreamSubscription__sendError_sendError(t0, t1, t2) {
  4911. this.$this = t0;
  4912. this.error = t1;
  4913. this.stackTrace = t2;
  4914. },
  4915. _BufferingStreamSubscription__sendDone_sendDone: function _BufferingStreamSubscription__sendDone_sendDone(t0) {
  4916. this.$this = t0;
  4917. },
  4918. _StreamImpl: function _StreamImpl() {
  4919. },
  4920. _DelayedEvent: function _DelayedEvent() {
  4921. },
  4922. _DelayedData: function _DelayedData(t0) {
  4923. this.value = t0;
  4924. this.next = null;
  4925. },
  4926. _DelayedError: function _DelayedError(t0, t1) {
  4927. this.error = t0;
  4928. this.stackTrace = t1;
  4929. this.next = null;
  4930. },
  4931. _DelayedDone: function _DelayedDone() {
  4932. },
  4933. _PendingEvents: function _PendingEvents() {
  4934. },
  4935. _PendingEvents_schedule_closure: function _PendingEvents_schedule_closure(t0, t1) {
  4936. this.$this = t0;
  4937. this.dispatch = t1;
  4938. },
  4939. _StreamImplEvents: function _StreamImplEvents() {
  4940. this.lastPendingEvent = this.firstPendingEvent = null;
  4941. this._state = 0;
  4942. },
  4943. _DoneStreamSubscription: function _DoneStreamSubscription(t0, t1, t2) {
  4944. var _ = this;
  4945. _._zone = t0;
  4946. _._state = 0;
  4947. _._onDone = t1;
  4948. _.$ti = t2;
  4949. },
  4950. _StreamIterator: function _StreamIterator(t0) {
  4951. this._subscription = null;
  4952. this._stateData = t0;
  4953. this._isPaused = false;
  4954. },
  4955. _ForwardingStream: function _ForwardingStream() {
  4956. },
  4957. _ForwardingStreamSubscription: function _ForwardingStreamSubscription(t0, t1, t2, t3) {
  4958. var _ = this;
  4959. _._stream = t0;
  4960. _._onDone = _._onError = _._onData = _._subscription = null;
  4961. _._zone = t1;
  4962. _._state = t2;
  4963. _._pending = _._cancelFuture = null;
  4964. _.$ti = t3;
  4965. },
  4966. _ExpandStream: function _ExpandStream(t0, t1, t2) {
  4967. this._expand = t0;
  4968. this._async$_source = t1;
  4969. this.$ti = t2;
  4970. },
  4971. Timer: function Timer() {
  4972. },
  4973. AsyncError: function AsyncError(t0, t1) {
  4974. this.error = t0;
  4975. this.stackTrace = t1;
  4976. },
  4977. _ZoneFunction: function _ZoneFunction(t0, t1) {
  4978. this.zone = t0;
  4979. this.$function = t1;
  4980. },
  4981. _RunNullaryZoneFunction: function _RunNullaryZoneFunction(t0, t1) {
  4982. this.zone = t0;
  4983. this.$function = t1;
  4984. },
  4985. _RunUnaryZoneFunction: function _RunUnaryZoneFunction(t0, t1) {
  4986. this.zone = t0;
  4987. this.$function = t1;
  4988. },
  4989. _RunBinaryZoneFunction: function _RunBinaryZoneFunction(t0, t1) {
  4990. this.zone = t0;
  4991. this.$function = t1;
  4992. },
  4993. _RegisterNullaryZoneFunction: function _RegisterNullaryZoneFunction(t0, t1) {
  4994. this.zone = t0;
  4995. this.$function = t1;
  4996. },
  4997. _RegisterUnaryZoneFunction: function _RegisterUnaryZoneFunction(t0, t1) {
  4998. this.zone = t0;
  4999. this.$function = t1;
  5000. },
  5001. _RegisterBinaryZoneFunction: function _RegisterBinaryZoneFunction(t0, t1) {
  5002. this.zone = t0;
  5003. this.$function = t1;
  5004. },
  5005. ZoneSpecification: function ZoneSpecification() {
  5006. },
  5007. _ZoneSpecification: function _ZoneSpecification(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12) {
  5008. var _ = this;
  5009. _.handleUncaughtError = t0;
  5010. _.run = t1;
  5011. _.runUnary = t2;
  5012. _.runBinary = t3;
  5013. _.registerCallback = t4;
  5014. _.registerUnaryCallback = t5;
  5015. _.registerBinaryCallback = t6;
  5016. _.errorCallback = t7;
  5017. _.scheduleMicrotask = t8;
  5018. _.createTimer = t9;
  5019. _.createPeriodicTimer = t10;
  5020. _.print = t11;
  5021. _.fork = t12;
  5022. },
  5023. ZoneDelegate: function ZoneDelegate() {
  5024. },
  5025. Zone: function Zone() {
  5026. },
  5027. _ZoneDelegate: function _ZoneDelegate(t0) {
  5028. this._delegationTarget = t0;
  5029. },
  5030. _Zone: function _Zone() {
  5031. },
  5032. _CustomZone: function _CustomZone(t0, t1) {
  5033. var _ = this;
  5034. _._delegateCache = _._handleUncaughtError = _._fork = _._print = _._createPeriodicTimer = _._createTimer = _._scheduleMicrotask = _._errorCallback = _._registerBinaryCallback = _._registerUnaryCallback = _._registerCallback = _._runBinary = _._runUnary = _._run = null;
  5035. _.parent = t0;
  5036. _._async$_map = t1;
  5037. },
  5038. _CustomZone_bindCallback_closure: function _CustomZone_bindCallback_closure(t0, t1, t2) {
  5039. this.$this = t0;
  5040. this.registered = t1;
  5041. this.R = t2;
  5042. },
  5043. _CustomZone_bindUnaryCallback_closure: function _CustomZone_bindUnaryCallback_closure(t0, t1, t2, t3) {
  5044. var _ = this;
  5045. _.$this = t0;
  5046. _.registered = t1;
  5047. _.T = t2;
  5048. _.R = t3;
  5049. },
  5050. _CustomZone_bindCallbackGuarded_closure: function _CustomZone_bindCallbackGuarded_closure(t0, t1) {
  5051. this.$this = t0;
  5052. this.registered = t1;
  5053. },
  5054. _rootHandleUncaughtError_closure: function _rootHandleUncaughtError_closure(t0) {
  5055. this._box_0 = t0;
  5056. },
  5057. _RootZone: function _RootZone() {
  5058. },
  5059. _RootZone_bindCallback_closure: function _RootZone_bindCallback_closure(t0, t1, t2) {
  5060. this.$this = t0;
  5061. this.f = t1;
  5062. this.R = t2;
  5063. },
  5064. _RootZone_bindCallbackGuarded_closure: function _RootZone_bindCallbackGuarded_closure(t0, t1) {
  5065. this.$this = t0;
  5066. this.f = t1;
  5067. },
  5068. HashMap_HashMap: function($K, $V) {
  5069. return new P._HashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("_HashMap<1,2>"));
  5070. },
  5071. _HashMap__getTableEntry: function(table, key) {
  5072. var entry = table[key];
  5073. return entry === table ? null : entry;
  5074. },
  5075. _HashMap__setTableEntry: function(table, key, value) {
  5076. if (value == null)
  5077. table[key] = table;
  5078. else
  5079. table[key] = value;
  5080. },
  5081. _HashMap__newHashTable: function() {
  5082. var table = Object.create(null);
  5083. P._HashMap__setTableEntry(table, "<non-identifier-key>", table);
  5084. delete table["<non-identifier-key>"];
  5085. return table;
  5086. },
  5087. LinkedHashMap_LinkedHashMap: function(equals, hashCode, isValidKey, $K, $V) {
  5088. if (isValidKey == null)
  5089. if (hashCode == null) {
  5090. if (equals == null)
  5091. return new H.JsLinkedHashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("JsLinkedHashMap<1,2>"));
  5092. hashCode = P.collection___defaultHashCode$closure();
  5093. } else {
  5094. if (P.core__identityHashCode$closure() === hashCode && P.core__identical$closure() === equals)
  5095. return P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6($K, $V);
  5096. if (equals == null)
  5097. equals = P.collection___defaultEquals$closure();
  5098. }
  5099. else {
  5100. if (hashCode == null)
  5101. hashCode = P.collection___defaultHashCode$closure();
  5102. if (equals == null)
  5103. equals = P.collection___defaultEquals$closure();
  5104. }
  5105. return P._LinkedCustomHashMap$(equals, hashCode, isValidKey, $K, $V);
  5106. },
  5107. LinkedHashMap_LinkedHashMap$_literal: function(keyValuePairs, $K, $V) {
  5108. return H.fillLiteralMap(keyValuePairs, new H.JsLinkedHashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("JsLinkedHashMap<1,2>")));
  5109. },
  5110. LinkedHashMap_LinkedHashMap$_empty: function($K, $V) {
  5111. return new H.JsLinkedHashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("JsLinkedHashMap<1,2>"));
  5112. },
  5113. _LinkedIdentityHashMap__LinkedIdentityHashMap$es6: function($K, $V) {
  5114. return new P._LinkedIdentityHashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("_LinkedIdentityHashMap<1,2>"));
  5115. },
  5116. _LinkedCustomHashMap$: function(_equals, _hashCode, validKey, $K, $V) {
  5117. var t1 = validKey != null ? validKey : new P._LinkedCustomHashMap_closure($K);
  5118. return new P._LinkedCustomHashMap(_equals, _hashCode, t1, $K._eval$1("@<0>")._bind$1($V)._eval$1("_LinkedCustomHashMap<1,2>"));
  5119. },
  5120. LinkedHashSet_LinkedHashSet: function($E) {
  5121. return new P._LinkedHashSet($E._eval$1("_LinkedHashSet<0>"));
  5122. },
  5123. LinkedHashSet_LinkedHashSet$_empty: function($E) {
  5124. return new P._LinkedHashSet($E._eval$1("_LinkedHashSet<0>"));
  5125. },
  5126. LinkedHashSet_LinkedHashSet$_literal: function(values, $E) {
  5127. return H.fillLiteralSet(values, new P._LinkedHashSet($E._eval$1("_LinkedHashSet<0>")));
  5128. },
  5129. _LinkedHashSet__newHashTable: function() {
  5130. var table = Object.create(null);
  5131. table["<non-identifier-key>"] = table;
  5132. delete table["<non-identifier-key>"];
  5133. return table;
  5134. },
  5135. _LinkedHashSetIterator$: function(_set, _modifications) {
  5136. var t1 = new P._LinkedHashSetIterator(_set, _modifications);
  5137. t1._collection$_cell = _set._collection$_first;
  5138. return t1;
  5139. },
  5140. UnmodifiableListView$: function(source, $E) {
  5141. return new P.UnmodifiableListView(source, $E._eval$1("UnmodifiableListView<0>"));
  5142. },
  5143. _defaultEquals: function(a, b) {
  5144. return J.$eq$(a, b);
  5145. },
  5146. _defaultHashCode: function(a) {
  5147. return J.get$hashCode$(a);
  5148. },
  5149. HashMap_HashMap$from: function(other, $K, $V) {
  5150. var result = P.HashMap_HashMap($K, $V);
  5151. other.forEach$1(0, new P.HashMap_HashMap$from_closure(result));
  5152. return result;
  5153. },
  5154. IterableBase_iterableToShortString: function(iterable, leftDelimiter, rightDelimiter) {
  5155. var parts, t1;
  5156. if (P._isToStringVisiting(iterable)) {
  5157. if (leftDelimiter === "(" && rightDelimiter === ")")
  5158. return "(...)";
  5159. return leftDelimiter + "..." + rightDelimiter;
  5160. }
  5161. parts = H.setRuntimeTypeInfo([], type$.JSArray_String);
  5162. $._toStringVisiting.push(iterable);
  5163. try {
  5164. P._iterablePartsToStrings(iterable, parts);
  5165. } finally {
  5166. $._toStringVisiting.pop();
  5167. }
  5168. t1 = P.StringBuffer__writeAll(leftDelimiter, parts, ", ") + rightDelimiter;
  5169. return t1.charCodeAt(0) == 0 ? t1 : t1;
  5170. },
  5171. IterableBase_iterableToFullString: function(iterable, leftDelimiter, rightDelimiter) {
  5172. var buffer, t1;
  5173. if (P._isToStringVisiting(iterable))
  5174. return leftDelimiter + "..." + rightDelimiter;
  5175. buffer = new P.StringBuffer(leftDelimiter);
  5176. $._toStringVisiting.push(iterable);
  5177. try {
  5178. t1 = buffer;
  5179. t1._contents = P.StringBuffer__writeAll(t1._contents, iterable, ", ");
  5180. } finally {
  5181. $._toStringVisiting.pop();
  5182. }
  5183. buffer._contents += rightDelimiter;
  5184. t1 = buffer._contents;
  5185. return t1.charCodeAt(0) == 0 ? t1 : t1;
  5186. },
  5187. _isToStringVisiting: function(o) {
  5188. var t1, i;
  5189. for (t1 = $._toStringVisiting.length, i = 0; i < t1; ++i)
  5190. if (o === $._toStringVisiting[i])
  5191. return true;
  5192. return false;
  5193. },
  5194. _iterablePartsToStrings: function(iterable, parts) {
  5195. var next, ultimateString, penultimateString, penultimate, ultimate, ultimate0, elision,
  5196. it = iterable.get$iterator(iterable),
  5197. $length = 0, count = 0;
  5198. while (true) {
  5199. if (!($length < 80 || count < 3))
  5200. break;
  5201. if (!it.moveNext$0())
  5202. return;
  5203. next = H.S(it.get$current(it));
  5204. parts.push(next);
  5205. $length += next.length + 2;
  5206. ++count;
  5207. }
  5208. if (!it.moveNext$0()) {
  5209. if (count <= 5)
  5210. return;
  5211. ultimateString = parts.pop();
  5212. penultimateString = parts.pop();
  5213. } else {
  5214. penultimate = it.get$current(it);
  5215. ++count;
  5216. if (!it.moveNext$0()) {
  5217. if (count <= 4) {
  5218. parts.push(H.S(penultimate));
  5219. return;
  5220. }
  5221. ultimateString = H.S(penultimate);
  5222. penultimateString = parts.pop();
  5223. $length += ultimateString.length + 2;
  5224. } else {
  5225. ultimate = it.get$current(it);
  5226. ++count;
  5227. for (; it.moveNext$0(); penultimate = ultimate, ultimate = ultimate0) {
  5228. ultimate0 = it.get$current(it);
  5229. ++count;
  5230. if (count > 100) {
  5231. while (true) {
  5232. if (!($length > 75 && count > 3))
  5233. break;
  5234. $length -= parts.pop().length + 2;
  5235. --count;
  5236. }
  5237. parts.push("...");
  5238. return;
  5239. }
  5240. }
  5241. penultimateString = H.S(penultimate);
  5242. ultimateString = H.S(ultimate);
  5243. $length += ultimateString.length + penultimateString.length + 4;
  5244. }
  5245. }
  5246. if (count > parts.length + 2) {
  5247. $length += 5;
  5248. elision = "...";
  5249. } else
  5250. elision = null;
  5251. while (true) {
  5252. if (!($length > 80 && parts.length > 3))
  5253. break;
  5254. $length -= parts.pop().length + 2;
  5255. if (elision == null) {
  5256. $length += 5;
  5257. elision = "...";
  5258. }
  5259. }
  5260. if (elision != null)
  5261. parts.push(elision);
  5262. parts.push(penultimateString);
  5263. parts.push(ultimateString);
  5264. },
  5265. LinkedHashMap_LinkedHashMap$from: function(other, $K, $V) {
  5266. var result = P.LinkedHashMap_LinkedHashMap(null, null, null, $K, $V);
  5267. other.forEach$1(0, new P.LinkedHashMap_LinkedHashMap$from_closure(result));
  5268. return result;
  5269. },
  5270. LinkedHashMap_LinkedHashMap$of: function(other, $K, $V) {
  5271. var t1 = P.LinkedHashMap_LinkedHashMap(null, null, null, $K, $V);
  5272. t1.addAll$1(0, other);
  5273. return t1;
  5274. },
  5275. LinkedHashSet_LinkedHashSet$from: function(elements, $E) {
  5276. var t1,
  5277. result = P.LinkedHashSet_LinkedHashSet($E);
  5278. for (t1 = J.get$iterator$ax(elements); t1.moveNext$0();)
  5279. result.add$1(0, t1.get$current(t1));
  5280. return result;
  5281. },
  5282. LinkedHashSet_LinkedHashSet$of: function(elements, $E) {
  5283. var t1 = P.LinkedHashSet_LinkedHashSet($E);
  5284. t1.addAll$1(0, elements);
  5285. return t1;
  5286. },
  5287. ListMixin__compareAny: function(a, b) {
  5288. return J.compareTo$1$ns(a, b);
  5289. },
  5290. MapBase_mapToString: function(m) {
  5291. var result, t1 = {};
  5292. if (P._isToStringVisiting(m))
  5293. return "{...}";
  5294. result = new P.StringBuffer("");
  5295. try {
  5296. $._toStringVisiting.push(m);
  5297. result._contents += "{";
  5298. t1.first = true;
  5299. m.forEach$1(0, new P.MapBase_mapToString_closure(t1, result));
  5300. result._contents += "}";
  5301. } finally {
  5302. $._toStringVisiting.pop();
  5303. }
  5304. t1 = result._contents;
  5305. return t1.charCodeAt(0) == 0 ? t1 : t1;
  5306. },
  5307. MapBase__fillMapWithIterables: function(map, keys, values) {
  5308. var keyIterator = keys.get$iterator(keys),
  5309. valueIterator = values.get$iterator(values),
  5310. hasNextKey = keyIterator.moveNext$0(),
  5311. hasNextValue = valueIterator.moveNext$0();
  5312. while (true) {
  5313. if (!(hasNextKey && hasNextValue))
  5314. break;
  5315. map.$indexSet(0, keyIterator.get$current(keyIterator), valueIterator.get$current(valueIterator));
  5316. hasNextKey = keyIterator.moveNext$0();
  5317. hasNextValue = valueIterator.moveNext$0();
  5318. }
  5319. if (hasNextKey || hasNextValue)
  5320. throw H.wrapException(P.ArgumentError$("Iterables do not have same length."));
  5321. },
  5322. ListQueue$: function($E) {
  5323. var t1 = new P.ListQueue($E._eval$1("ListQueue<0>")),
  5324. t2 = new Array(8);
  5325. t2.fixed$length = Array;
  5326. t1._collection$_table = H.setRuntimeTypeInfo(t2, $E._eval$1("JSArray<0>"));
  5327. return t1;
  5328. },
  5329. ListQueue_ListQueue$of: function(elements, $E) {
  5330. var t1 = P.ListQueue$($E);
  5331. t1.addAll$1(0, elements);
  5332. return t1;
  5333. },
  5334. ListQueue__nextPowerOf2: function(number) {
  5335. var nextNumber;
  5336. number = (number << 1 >>> 0) - 1;
  5337. for (; true; number = nextNumber) {
  5338. nextNumber = (number & number - 1) >>> 0;
  5339. if (nextNumber === 0)
  5340. return number;
  5341. }
  5342. },
  5343. _ListQueueIterator$: function(queue) {
  5344. return new P._ListQueueIterator(queue, queue._collection$_tail, queue._modificationCount, queue._collection$_head);
  5345. },
  5346. _HashMap: function _HashMap(t0) {
  5347. var _ = this;
  5348. _._collection$_length = 0;
  5349. _._keys = _._collection$_rest = _._collection$_nums = _._collection$_strings = null;
  5350. _.$ti = t0;
  5351. },
  5352. _HashMap_values_closure: function _HashMap_values_closure(t0) {
  5353. this.$this = t0;
  5354. },
  5355. _HashMap_addAll_closure: function _HashMap_addAll_closure(t0) {
  5356. this.$this = t0;
  5357. },
  5358. _HashMapKeyIterable: function _HashMapKeyIterable(t0, t1) {
  5359. this._collection$_map = t0;
  5360. this.$ti = t1;
  5361. },
  5362. _HashMapKeyIterator: function _HashMapKeyIterator(t0, t1) {
  5363. var _ = this;
  5364. _._collection$_map = t0;
  5365. _._keys = t1;
  5366. _._offset = 0;
  5367. _._collection$_current = null;
  5368. },
  5369. _LinkedIdentityHashMap: function _LinkedIdentityHashMap(t0) {
  5370. var _ = this;
  5371. _.__js_helper$_length = 0;
  5372. _._last = _._first = _.__js_helper$_rest = _._nums = _._strings = null;
  5373. _._modifications = 0;
  5374. _.$ti = t0;
  5375. },
  5376. _LinkedCustomHashMap: function _LinkedCustomHashMap(t0, t1, t2, t3) {
  5377. var _ = this;
  5378. _._equals = t0;
  5379. _._hashCode = t1;
  5380. _._validKey = t2;
  5381. _.__js_helper$_length = 0;
  5382. _._last = _._first = _.__js_helper$_rest = _._nums = _._strings = null;
  5383. _._modifications = 0;
  5384. _.$ti = t3;
  5385. },
  5386. _LinkedCustomHashMap_closure: function _LinkedCustomHashMap_closure(t0) {
  5387. this.K = t0;
  5388. },
  5389. _LinkedHashSet: function _LinkedHashSet(t0) {
  5390. var _ = this;
  5391. _._collection$_length = 0;
  5392. _._collection$_last = _._collection$_first = _._collection$_rest = _._collection$_nums = _._collection$_strings = null;
  5393. _._collection$_modifications = 0;
  5394. _.$ti = t0;
  5395. },
  5396. _LinkedIdentityHashSet: function _LinkedIdentityHashSet(t0) {
  5397. var _ = this;
  5398. _._collection$_length = 0;
  5399. _._collection$_last = _._collection$_first = _._collection$_rest = _._collection$_nums = _._collection$_strings = null;
  5400. _._collection$_modifications = 0;
  5401. _.$ti = t0;
  5402. },
  5403. _LinkedHashSetCell: function _LinkedHashSetCell(t0) {
  5404. this._element = t0;
  5405. this._collection$_previous = this._collection$_next = null;
  5406. },
  5407. _LinkedHashSetIterator: function _LinkedHashSetIterator(t0, t1) {
  5408. var _ = this;
  5409. _._set = t0;
  5410. _._collection$_modifications = t1;
  5411. _._collection$_current = _._collection$_cell = null;
  5412. },
  5413. UnmodifiableListView: function UnmodifiableListView(t0, t1) {
  5414. this._collection$_source = t0;
  5415. this.$ti = t1;
  5416. },
  5417. HashMap_HashMap$from_closure: function HashMap_HashMap$from_closure(t0) {
  5418. this.result = t0;
  5419. },
  5420. IterableBase: function IterableBase() {
  5421. },
  5422. LinkedHashMap_LinkedHashMap$from_closure: function LinkedHashMap_LinkedHashMap$from_closure(t0) {
  5423. this.result = t0;
  5424. },
  5425. ListBase: function ListBase() {
  5426. },
  5427. ListMixin: function ListMixin() {
  5428. },
  5429. MapBase: function MapBase() {
  5430. },
  5431. MapBase_mapToString_closure: function MapBase_mapToString_closure(t0, t1) {
  5432. this._box_0 = t0;
  5433. this.result = t1;
  5434. },
  5435. MapMixin: function MapMixin() {
  5436. },
  5437. MapMixin_entries_closure: function MapMixin_entries_closure(t0) {
  5438. this.$this = t0;
  5439. },
  5440. UnmodifiableMapBase: function UnmodifiableMapBase() {
  5441. },
  5442. _MapBaseValueIterable: function _MapBaseValueIterable(t0, t1) {
  5443. this._collection$_map = t0;
  5444. this.$ti = t1;
  5445. },
  5446. _MapBaseValueIterator: function _MapBaseValueIterator(t0, t1) {
  5447. this._keys = t0;
  5448. this._collection$_map = t1;
  5449. this._collection$_current = null;
  5450. },
  5451. _UnmodifiableMapMixin: function _UnmodifiableMapMixin() {
  5452. },
  5453. MapView: function MapView() {
  5454. },
  5455. UnmodifiableMapView: function UnmodifiableMapView(t0, t1) {
  5456. this._collection$_map = t0;
  5457. this.$ti = t1;
  5458. },
  5459. Queue: function Queue() {
  5460. },
  5461. ListQueue: function ListQueue(t0) {
  5462. var _ = this;
  5463. _._collection$_table = null;
  5464. _._modificationCount = _._collection$_tail = _._collection$_head = 0;
  5465. _.$ti = t0;
  5466. },
  5467. _ListQueueIterator: function _ListQueueIterator(t0, t1, t2, t3) {
  5468. var _ = this;
  5469. _._queue = t0;
  5470. _._collection$_end = t1;
  5471. _._modificationCount = t2;
  5472. _._collection$_position = t3;
  5473. _._collection$_current = null;
  5474. },
  5475. _SetBase: function _SetBase() {
  5476. },
  5477. _UnmodifiableSet: function _UnmodifiableSet(t0, t1) {
  5478. this._collection$_map = t0;
  5479. this.$ti = t1;
  5480. },
  5481. _ListBase_Object_ListMixin: function _ListBase_Object_ListMixin() {
  5482. },
  5483. _UnmodifiableMapView_MapView__UnmodifiableMapMixin: function _UnmodifiableMapView_MapView__UnmodifiableMapMixin() {
  5484. },
  5485. Utf8Decoder__convertIntercepted: function(allowMalformed, codeUnits, start, end) {
  5486. if (codeUnits instanceof Uint8Array)
  5487. return P.Utf8Decoder__convertInterceptedUint8List(false, codeUnits, start, end);
  5488. return null;
  5489. },
  5490. Utf8Decoder__convertInterceptedUint8List: function(allowMalformed, codeUnits, start, end) {
  5491. var t1, $length,
  5492. decoder = $.$get$Utf8Decoder__decoder();
  5493. if (decoder == null)
  5494. return null;
  5495. t1 = 0 === start;
  5496. if (t1 && true)
  5497. return P.Utf8Decoder__useTextDecoderChecked(decoder, codeUnits);
  5498. $length = codeUnits.length;
  5499. end = P.RangeError_checkValidRange(start, end, $length);
  5500. if (t1 && end === $length)
  5501. return P.Utf8Decoder__useTextDecoderChecked(decoder, codeUnits);
  5502. return P.Utf8Decoder__useTextDecoderChecked(decoder, codeUnits.subarray(start, end));
  5503. },
  5504. Utf8Decoder__useTextDecoderChecked: function(decoder, codeUnits) {
  5505. if (P.Utf8Decoder__unsafe(codeUnits))
  5506. return null;
  5507. return P.Utf8Decoder__useTextDecoderUnchecked(decoder, codeUnits);
  5508. },
  5509. Utf8Decoder__useTextDecoderUnchecked: function(decoder, codeUnits) {
  5510. var t1, exception;
  5511. try {
  5512. t1 = decoder.decode(codeUnits);
  5513. return t1;
  5514. } catch (exception) {
  5515. H.unwrapException(exception);
  5516. }
  5517. return null;
  5518. },
  5519. Utf8Decoder__unsafe: function(codeUnits) {
  5520. var i,
  5521. limit = codeUnits.length - 2;
  5522. for (i = 0; i < limit; ++i)
  5523. if (codeUnits[i] === 237)
  5524. if ((codeUnits[i + 1] & 224) === 160)
  5525. return true;
  5526. return false;
  5527. },
  5528. Utf8Decoder__makeDecoder: function() {
  5529. var t1, exception;
  5530. try {
  5531. t1 = new TextDecoder("utf-8", {fatal: true});
  5532. return t1;
  5533. } catch (exception) {
  5534. H.unwrapException(exception);
  5535. }
  5536. return null;
  5537. },
  5538. _scanOneByteCharacters: function(units, from, endIndex) {
  5539. var t1, i, unit;
  5540. for (t1 = J.getInterceptor$asx(units), i = from; i < endIndex; ++i) {
  5541. unit = t1.$index(units, i);
  5542. if ((unit & 127) !== unit)
  5543. return i - from;
  5544. }
  5545. return endIndex - from;
  5546. },
  5547. Base64Codec__checkPadding: function(source, sourceIndex, sourceEnd, firstPadding, paddingCount, $length) {
  5548. if (C.JSInt_methods.$mod($length, 4) !== 0)
  5549. throw H.wrapException(P.FormatException$("Invalid base64 padding, padded length must be multiple of four, is " + $length, source, sourceEnd));
  5550. if (firstPadding + paddingCount !== $length)
  5551. throw H.wrapException(P.FormatException$("Invalid base64 padding, '=' not at the end", source, sourceIndex));
  5552. if (paddingCount > 2)
  5553. throw H.wrapException(P.FormatException$("Invalid base64 padding, more than two '=' characters", source, sourceIndex));
  5554. },
  5555. _Base64Encoder_encodeChunk: function(alphabet, bytes, start, end, isLast, output, outputIndex, state) {
  5556. var t1, i, byteOr, byte, outputIndex0, outputIndex1,
  5557. bits = state >>> 2,
  5558. expectedChars = 3 - (state & 3);
  5559. for (t1 = J.getInterceptor$asx(bytes), i = start, byteOr = 0; i < end; ++i) {
  5560. byte = t1.$index(bytes, i);
  5561. byteOr = (byteOr | byte) >>> 0;
  5562. bits = (bits << 8 | byte) & 16777215;
  5563. --expectedChars;
  5564. if (expectedChars === 0) {
  5565. outputIndex0 = outputIndex + 1;
  5566. output[outputIndex] = C.JSString_methods._codeUnitAt$1(alphabet, bits >>> 18 & 63);
  5567. outputIndex = outputIndex0 + 1;
  5568. output[outputIndex0] = C.JSString_methods._codeUnitAt$1(alphabet, bits >>> 12 & 63);
  5569. outputIndex0 = outputIndex + 1;
  5570. output[outputIndex] = C.JSString_methods._codeUnitAt$1(alphabet, bits >>> 6 & 63);
  5571. outputIndex = outputIndex0 + 1;
  5572. output[outputIndex0] = C.JSString_methods._codeUnitAt$1(alphabet, bits & 63);
  5573. bits = 0;
  5574. expectedChars = 3;
  5575. }
  5576. }
  5577. if (byteOr >= 0 && byteOr <= 255) {
  5578. if (isLast && expectedChars < 3) {
  5579. outputIndex0 = outputIndex + 1;
  5580. outputIndex1 = outputIndex0 + 1;
  5581. if (3 - expectedChars === 1) {
  5582. output[outputIndex] = C.JSString_methods._codeUnitAt$1(alphabet, bits >>> 2 & 63);
  5583. output[outputIndex0] = C.JSString_methods._codeUnitAt$1(alphabet, bits << 4 & 63);
  5584. output[outputIndex1] = 61;
  5585. output[outputIndex1 + 1] = 61;
  5586. } else {
  5587. output[outputIndex] = C.JSString_methods._codeUnitAt$1(alphabet, bits >>> 10 & 63);
  5588. output[outputIndex0] = C.JSString_methods._codeUnitAt$1(alphabet, bits >>> 4 & 63);
  5589. output[outputIndex1] = C.JSString_methods._codeUnitAt$1(alphabet, bits << 2 & 63);
  5590. output[outputIndex1 + 1] = 61;
  5591. }
  5592. return 0;
  5593. }
  5594. return (bits << 2 | 3 - expectedChars) >>> 0;
  5595. }
  5596. for (i = start; i < end;) {
  5597. byte = t1.$index(bytes, i);
  5598. if (byte < 0 || byte > 255)
  5599. break;
  5600. ++i;
  5601. }
  5602. throw H.wrapException(P.ArgumentError$value(bytes, "Not a byte value at index " + i + ": 0x" + J.toRadixString$1$n(t1.$index(bytes, i), 16), null));
  5603. },
  5604. JsonUnsupportedObjectError$: function(unsupportedObject, cause, partialResult) {
  5605. return new P.JsonUnsupportedObjectError(unsupportedObject, cause);
  5606. },
  5607. _defaultToEncodable: function(object) {
  5608. return object.toJson$0();
  5609. },
  5610. _JsonStringStringifier_stringify: function(object, toEncodable, indent) {
  5611. var t1,
  5612. output = new P.StringBuffer("");
  5613. P._JsonStringStringifier_printOn(object, output, toEncodable, indent);
  5614. t1 = output._contents;
  5615. return t1.charCodeAt(0) == 0 ? t1 : t1;
  5616. },
  5617. _JsonStringStringifier_printOn: function(object, output, toEncodable, indent) {
  5618. var stringifier = new P._JsonStringStringifier(output, [], P.convert___defaultToEncodable$closure());
  5619. stringifier.writeObject$1(object);
  5620. },
  5621. AsciiCodec: function AsciiCodec() {
  5622. },
  5623. _UnicodeSubsetEncoder: function _UnicodeSubsetEncoder() {
  5624. },
  5625. AsciiEncoder: function AsciiEncoder(t0) {
  5626. this._subsetMask = t0;
  5627. },
  5628. Base64Codec: function Base64Codec() {
  5629. },
  5630. Base64Encoder: function Base64Encoder() {
  5631. },
  5632. _Base64Encoder: function _Base64Encoder(t0) {
  5633. this._convert$_state = 0;
  5634. this._alphabet = t0;
  5635. },
  5636. _BufferCachingBase64Encoder: function _BufferCachingBase64Encoder(t0) {
  5637. this.bufferCache = null;
  5638. this._convert$_state = 0;
  5639. this._alphabet = t0;
  5640. },
  5641. _Base64EncoderSink: function _Base64EncoderSink() {
  5642. },
  5643. _AsciiBase64EncoderSink: function _AsciiBase64EncoderSink(t0, t1) {
  5644. this._sink = t0;
  5645. this._encoder = t1;
  5646. },
  5647. _Utf8Base64EncoderSink: function _Utf8Base64EncoderSink(t0, t1) {
  5648. this._sink = t0;
  5649. this._encoder = t1;
  5650. },
  5651. ByteConversionSink: function ByteConversionSink() {
  5652. },
  5653. ByteConversionSinkBase: function ByteConversionSinkBase() {
  5654. },
  5655. ChunkedConversionSink: function ChunkedConversionSink() {
  5656. },
  5657. Codec: function Codec() {
  5658. },
  5659. Converter: function Converter() {
  5660. },
  5661. Encoding: function Encoding() {
  5662. },
  5663. JsonUnsupportedObjectError: function JsonUnsupportedObjectError(t0, t1) {
  5664. this.unsupportedObject = t0;
  5665. this.cause = t1;
  5666. },
  5667. JsonCyclicError: function JsonCyclicError(t0, t1) {
  5668. this.unsupportedObject = t0;
  5669. this.cause = t1;
  5670. },
  5671. JsonCodec: function JsonCodec() {
  5672. },
  5673. JsonEncoder: function JsonEncoder(t0) {
  5674. this._toEncodable = t0;
  5675. },
  5676. _JsonStringifier: function _JsonStringifier() {
  5677. },
  5678. _JsonStringifier_writeMap_closure: function _JsonStringifier_writeMap_closure(t0, t1) {
  5679. this._box_0 = t0;
  5680. this.keyValueList = t1;
  5681. },
  5682. _JsonStringStringifier: function _JsonStringStringifier(t0, t1, t2) {
  5683. this._sink = t0;
  5684. this._seen = t1;
  5685. this._toEncodable = t2;
  5686. },
  5687. StringConversionSinkBase: function StringConversionSinkBase() {
  5688. },
  5689. StringConversionSinkMixin: function StringConversionSinkMixin() {
  5690. },
  5691. _StringSinkConversionSink: function _StringSinkConversionSink(t0) {
  5692. this._stringSink = t0;
  5693. },
  5694. _StringCallbackSink: function _StringCallbackSink(t0, t1) {
  5695. this._convert$_callback = t0;
  5696. this._stringSink = t1;
  5697. },
  5698. _StringAdapterSink: function _StringAdapterSink(t0) {
  5699. this._sink = t0;
  5700. },
  5701. _Utf8StringSinkAdapter: function _Utf8StringSinkAdapter(t0, t1) {
  5702. this._decoder = t0;
  5703. this._sink = t1;
  5704. },
  5705. _Utf8ConversionSink: function _Utf8ConversionSink(t0, t1, t2) {
  5706. this._decoder = t0;
  5707. this._chunkedSink = t1;
  5708. this._convert$_buffer = t2;
  5709. },
  5710. Utf8Codec: function Utf8Codec() {
  5711. },
  5712. Utf8Encoder: function Utf8Encoder() {
  5713. },
  5714. _Utf8Encoder: function _Utf8Encoder(t0) {
  5715. this._bufferIndex = this._carry = 0;
  5716. this._convert$_buffer = t0;
  5717. },
  5718. Utf8Decoder: function Utf8Decoder(t0) {
  5719. this._allowMalformed = t0;
  5720. },
  5721. _Utf8Decoder: function _Utf8Decoder(t0, t1) {
  5722. var _ = this;
  5723. _._allowMalformed = t0;
  5724. _._stringSink = t1;
  5725. _._isFirstCharacter = true;
  5726. _._extraUnits = _._expectedUnits = _._value = 0;
  5727. },
  5728. identityHashCode: function(object) {
  5729. return H.objectHashCode(object);
  5730. },
  5731. Function_apply: function($function, positionalArguments) {
  5732. return H.Primitives_applyFunction($function, positionalArguments, null);
  5733. },
  5734. int_parse: function(source, onError, radix) {
  5735. var value = H.Primitives_parseInt(source, radix);
  5736. if (value != null)
  5737. return value;
  5738. if (onError != null)
  5739. return onError.call$1(source);
  5740. throw H.wrapException(P.FormatException$(source, null, null));
  5741. },
  5742. double_parse: function(source) {
  5743. var value = H.Primitives_parseDouble(source);
  5744. if (value != null)
  5745. return value;
  5746. throw H.wrapException(P.FormatException$("Invalid double", source, null));
  5747. },
  5748. Error__objectToString: function(object) {
  5749. if (object instanceof H.Closure)
  5750. return object.toString$0(0);
  5751. return "Instance of '" + H.S(H.Primitives_objectTypeName(object)) + "'";
  5752. },
  5753. List_List$filled: function($length, fill, $E) {
  5754. var t1, i,
  5755. result = J.JSArray_JSArray$fixed($length, $E);
  5756. if ($length !== 0 && fill != null)
  5757. for (t1 = result.length, i = 0; i < t1; ++i)
  5758. result[i] = fill;
  5759. return result;
  5760. },
  5761. List_List$from: function(elements, growable, $E) {
  5762. var t1,
  5763. list = H.setRuntimeTypeInfo([], $E._eval$1("JSArray<0>"));
  5764. for (t1 = J.get$iterator$ax(elements); t1.moveNext$0();)
  5765. list.push(t1.get$current(t1));
  5766. if (growable)
  5767. return list;
  5768. return J.JSArray_markFixedList(list);
  5769. },
  5770. List_List$unmodifiable: function(elements, $E) {
  5771. return J.JSArray_markUnmodifiableList(P.List_List$from(elements, false, $E));
  5772. },
  5773. String_String$fromCharCodes: function(charCodes, start, end) {
  5774. var len;
  5775. if (Array.isArray(charCodes)) {
  5776. len = charCodes.length;
  5777. end = P.RangeError_checkValidRange(start, end, len);
  5778. return H.Primitives_stringFromCharCodes(start > 0 || end < len ? C.JSArray_methods.sublist$2(charCodes, start, end) : charCodes);
  5779. }
  5780. if (type$.NativeUint8List._is(charCodes))
  5781. return H.Primitives_stringFromNativeUint8List(charCodes, start, P.RangeError_checkValidRange(start, end, charCodes.length));
  5782. return P.String__stringFromIterable(charCodes, start, end);
  5783. },
  5784. String_String$fromCharCode: function(charCode) {
  5785. return H.Primitives_stringFromCharCode(charCode);
  5786. },
  5787. String__stringFromIterable: function(charCodes, start, end) {
  5788. var t1, it, i, list, _null = null;
  5789. if (start < 0)
  5790. throw H.wrapException(P.RangeError$range(start, 0, J.get$length$asx(charCodes), _null, _null));
  5791. t1 = end == null;
  5792. if (!t1 && end < start)
  5793. throw H.wrapException(P.RangeError$range(end, start, J.get$length$asx(charCodes), _null, _null));
  5794. it = J.get$iterator$ax(charCodes);
  5795. for (i = 0; i < start; ++i)
  5796. if (!it.moveNext$0())
  5797. throw H.wrapException(P.RangeError$range(start, 0, i, _null, _null));
  5798. list = [];
  5799. if (t1)
  5800. for (; it.moveNext$0();)
  5801. list.push(it.get$current(it));
  5802. else
  5803. for (i = start; i < end; ++i) {
  5804. if (!it.moveNext$0())
  5805. throw H.wrapException(P.RangeError$range(end, start, i, _null, _null));
  5806. list.push(it.get$current(it));
  5807. }
  5808. return H.Primitives_stringFromCharCodes(list);
  5809. },
  5810. RegExp_RegExp: function(source, multiLine) {
  5811. return new H.JSSyntaxRegExp(source, H.JSSyntaxRegExp_makeNative(source, multiLine, true, false, false, false));
  5812. },
  5813. identical: function(a, b) {
  5814. return a == null ? b == null : a === b;
  5815. },
  5816. StringBuffer__writeAll: function(string, objects, separator) {
  5817. var iterator = J.get$iterator$ax(objects);
  5818. if (!iterator.moveNext$0())
  5819. return string;
  5820. if (separator.length === 0) {
  5821. do
  5822. string += H.S(iterator.get$current(iterator));
  5823. while (iterator.moveNext$0());
  5824. } else {
  5825. string += H.S(iterator.get$current(iterator));
  5826. for (; iterator.moveNext$0();)
  5827. string = string + separator + H.S(iterator.get$current(iterator));
  5828. }
  5829. return string;
  5830. },
  5831. NoSuchMethodError$: function(receiver, memberName, positionalArguments, namedArguments) {
  5832. return new P.NoSuchMethodError(receiver, memberName, positionalArguments, namedArguments);
  5833. },
  5834. Uri_base: function() {
  5835. var uri = H.Primitives_currentUri();
  5836. if (uri != null)
  5837. return P.Uri_parse(uri);
  5838. throw H.wrapException(P.UnsupportedError$("'Uri.base' is not supported"));
  5839. },
  5840. _Uri__uriEncode: function(canonicalTable, text, encoding, spaceToPlus) {
  5841. var t1, bytes, i, t2, byte,
  5842. _s16_ = "0123456789ABCDEF";
  5843. if (encoding === C.C_Utf8Codec) {
  5844. t1 = $.$get$_Uri__needsNoEncoding()._nativeRegExp;
  5845. if (typeof text != "string")
  5846. H.throwExpression(H.argumentErrorValue(text));
  5847. t1 = t1.test(text);
  5848. } else
  5849. t1 = false;
  5850. if (t1)
  5851. return text;
  5852. bytes = encoding.get$encoder().convert$1(text);
  5853. for (t1 = bytes.length, i = 0, t2 = ""; i < t1; ++i) {
  5854. byte = bytes[i];
  5855. if (byte < 128 && (canonicalTable[byte >>> 4] & 1 << (byte & 15)) !== 0)
  5856. t2 += H.Primitives_stringFromCharCode(byte);
  5857. else
  5858. t2 = spaceToPlus && byte === 32 ? t2 + "+" : t2 + "%" + _s16_[byte >>> 4 & 15] + _s16_[byte & 15];
  5859. }
  5860. return t2.charCodeAt(0) == 0 ? t2 : t2;
  5861. },
  5862. StackTrace_current: function() {
  5863. var stackTrace, exception;
  5864. if ($.$get$_hasErrorStackProperty())
  5865. return H.getTraceFromException(new Error());
  5866. try {
  5867. throw H.wrapException("");
  5868. } catch (exception) {
  5869. H.unwrapException(exception);
  5870. stackTrace = H.getTraceFromException(exception);
  5871. return stackTrace;
  5872. }
  5873. },
  5874. DateTime$_withValue: function(_value, isUtc) {
  5875. var t1;
  5876. if (Math.abs(_value) <= 864e13)
  5877. t1 = false;
  5878. else
  5879. t1 = true;
  5880. if (t1)
  5881. H.throwExpression(P.ArgumentError$("DateTime is outside valid range: " + _value));
  5882. P.ArgumentError_checkNotNull(false, "isUtc");
  5883. return new P.DateTime(_value, false);
  5884. },
  5885. DateTime__fourDigits: function(n) {
  5886. var absN = Math.abs(n),
  5887. sign = n < 0 ? "-" : "";
  5888. if (absN >= 1000)
  5889. return "" + n;
  5890. if (absN >= 100)
  5891. return sign + "0" + absN;
  5892. if (absN >= 10)
  5893. return sign + "00" + absN;
  5894. return sign + "000" + absN;
  5895. },
  5896. DateTime__threeDigits: function(n) {
  5897. if (n >= 100)
  5898. return "" + n;
  5899. if (n >= 10)
  5900. return "0" + n;
  5901. return "00" + n;
  5902. },
  5903. DateTime__twoDigits: function(n) {
  5904. if (n >= 10)
  5905. return "" + n;
  5906. return "0" + n;
  5907. },
  5908. Duration$: function(milliseconds) {
  5909. return new P.Duration(1000 * milliseconds);
  5910. },
  5911. Error_safeToString: function(object) {
  5912. if (typeof object == "number" || H._isBool(object) || null == object)
  5913. return J.toString$0$(object);
  5914. if (typeof object == "string")
  5915. return JSON.stringify(object);
  5916. return P.Error__objectToString(object);
  5917. },
  5918. AssertionError$: function(message) {
  5919. return new P.AssertionError(message);
  5920. },
  5921. ArgumentError$: function(message) {
  5922. return new P.ArgumentError(false, null, null, message);
  5923. },
  5924. ArgumentError$value: function(value, $name, message) {
  5925. return new P.ArgumentError(true, value, $name, message);
  5926. },
  5927. ArgumentError$notNull: function($name) {
  5928. return new P.ArgumentError(false, null, $name, "Must not be null");
  5929. },
  5930. ArgumentError_checkNotNull: function(argument, $name) {
  5931. if (argument == null)
  5932. throw H.wrapException(P.ArgumentError$notNull($name));
  5933. return argument;
  5934. },
  5935. RangeError$: function(message) {
  5936. var _null = null;
  5937. return new P.RangeError(_null, _null, false, _null, _null, message);
  5938. },
  5939. RangeError$value: function(value, $name, message) {
  5940. return new P.RangeError(null, null, true, value, $name, message != null ? message : "Value not in range");
  5941. },
  5942. RangeError$range: function(invalidValue, minValue, maxValue, $name, message) {
  5943. return new P.RangeError(minValue, maxValue, true, invalidValue, $name, "Invalid value");
  5944. },
  5945. RangeError_checkValueInInterval: function(value, minValue, maxValue, $name) {
  5946. if (value < minValue || value > maxValue)
  5947. throw H.wrapException(P.RangeError$range(value, minValue, maxValue, $name, null));
  5948. return value;
  5949. },
  5950. RangeError_checkValidIndex: function(index, indexable, $name) {
  5951. var $length = indexable.get$length(indexable);
  5952. if (0 > index || index >= $length)
  5953. throw H.wrapException(P.IndexError$(index, indexable, $name == null ? "index" : $name, null, $length));
  5954. return index;
  5955. },
  5956. RangeError_checkValidRange: function(start, end, $length) {
  5957. if (0 > start || start > $length)
  5958. throw H.wrapException(P.RangeError$range(start, 0, $length, "start", null));
  5959. if (end != null) {
  5960. if (start > end || end > $length)
  5961. throw H.wrapException(P.RangeError$range(end, start, $length, "end", null));
  5962. return end;
  5963. }
  5964. return $length;
  5965. },
  5966. RangeError_checkNotNegative: function(value, $name) {
  5967. if (value < 0)
  5968. throw H.wrapException(P.RangeError$range(value, 0, null, $name, null));
  5969. return value;
  5970. },
  5971. IndexError$: function(invalidValue, indexable, $name, message, $length) {
  5972. var t1 = $length == null ? J.get$length$asx(indexable) : $length;
  5973. return new P.IndexError(t1, true, invalidValue, $name, "Index out of range");
  5974. },
  5975. UnsupportedError$: function(message) {
  5976. return new P.UnsupportedError(message);
  5977. },
  5978. UnimplementedError$: function(message) {
  5979. return new P.UnimplementedError(message);
  5980. },
  5981. StateError$: function(message) {
  5982. return new P.StateError(message);
  5983. },
  5984. ConcurrentModificationError$: function(modifiedObject) {
  5985. return new P.ConcurrentModificationError(modifiedObject);
  5986. },
  5987. FormatException$: function(message, source, offset) {
  5988. return new P.FormatException(message, source, offset);
  5989. },
  5990. Iterable_Iterable$generate: function(count, generator, $E) {
  5991. if (count <= 0)
  5992. return new H.EmptyIterable($E._eval$1("EmptyIterable<0>"));
  5993. return new P._GeneratorIterable(count, generator, $E._eval$1("_GeneratorIterable<0>"));
  5994. },
  5995. List_List$generate: function($length, generator, growable, $E) {
  5996. var result, t2, i,
  5997. t1 = $E._eval$1("JSArray<0>");
  5998. if (growable) {
  5999. result = H.setRuntimeTypeInfo([], t1);
  6000. C.JSArray_methods.set$length(result, $length);
  6001. } else {
  6002. t2 = new Array($length);
  6003. t2.fixed$length = Array;
  6004. result = H.setRuntimeTypeInfo(t2, t1);
  6005. }
  6006. for (i = 0; i < $length; ++i)
  6007. result[i] = generator.call$1(i);
  6008. return result;
  6009. },
  6010. print: function(object) {
  6011. var line = H.S(object),
  6012. t1 = $.printToZone;
  6013. if (t1 == null)
  6014. H.printString(line);
  6015. else
  6016. t1.call$1(line);
  6017. },
  6018. Set_castFrom: function(source, newSet, $S, $T) {
  6019. return new H.CastSet(source, newSet, $S._eval$1("@<0>")._bind$1($T)._eval$1("CastSet<1,2>"));
  6020. },
  6021. _combineSurrogatePair: function(start, end) {
  6022. return 65536 + ((start & 1023) << 10) + (end & 1023);
  6023. },
  6024. Uri_Uri$dataFromString: function($content, encoding, mimeType) {
  6025. var encodingName, t1,
  6026. buffer = new P.StringBuffer(""),
  6027. indices = H.setRuntimeTypeInfo([-1], type$.JSArray_int);
  6028. if (encoding == null)
  6029. encodingName = null;
  6030. else
  6031. encodingName = "utf-8";
  6032. if (encoding == null)
  6033. encoding = C.C_AsciiCodec;
  6034. P.UriData__writeUri(mimeType, encodingName, null, buffer, indices);
  6035. indices.push(buffer._contents.length);
  6036. buffer._contents += ",";
  6037. P.UriData__uriEncodeBytes(C.List_CVk, encoding.encode$1($content), buffer);
  6038. t1 = buffer._contents;
  6039. return new P.UriData(t1.charCodeAt(0) == 0 ? t1 : t1, indices, null).get$uri();
  6040. },
  6041. Uri_parse: function(uri) {
  6042. var delta, t1, indices, schemeEnd, hostStart, portStart, pathStart, queryStart, fragmentStart, isSimple, scheme, t2, schemeAuth, queryStart0, pathStart0, _null = null,
  6043. end = uri.length;
  6044. if (end >= 5) {
  6045. delta = ((J._codeUnitAt$1$s(uri, 4) ^ 58) * 3 | C.JSString_methods._codeUnitAt$1(uri, 0) ^ 100 | C.JSString_methods._codeUnitAt$1(uri, 1) ^ 97 | C.JSString_methods._codeUnitAt$1(uri, 2) ^ 116 | C.JSString_methods._codeUnitAt$1(uri, 3) ^ 97) >>> 0;
  6046. if (delta === 0)
  6047. return P.UriData__parse(end < end ? C.JSString_methods.substring$2(uri, 0, end) : uri, 5, _null).get$uri();
  6048. else if (delta === 32)
  6049. return P.UriData__parse(C.JSString_methods.substring$2(uri, 5, end), 0, _null).get$uri();
  6050. }
  6051. t1 = new Array(8);
  6052. t1.fixed$length = Array;
  6053. indices = H.setRuntimeTypeInfo(t1, type$.JSArray_int);
  6054. indices[0] = 0;
  6055. indices[1] = -1;
  6056. indices[2] = -1;
  6057. indices[7] = -1;
  6058. indices[3] = 0;
  6059. indices[4] = 0;
  6060. indices[5] = end;
  6061. indices[6] = end;
  6062. if (P._scan(uri, 0, end, 0, indices) >= 14)
  6063. indices[7] = end;
  6064. schemeEnd = indices[1];
  6065. if (schemeEnd >= 0)
  6066. if (P._scan(uri, 0, schemeEnd, 20, indices) === 20)
  6067. indices[7] = schemeEnd;
  6068. hostStart = indices[2] + 1;
  6069. portStart = indices[3];
  6070. pathStart = indices[4];
  6071. queryStart = indices[5];
  6072. fragmentStart = indices[6];
  6073. if (fragmentStart < queryStart)
  6074. queryStart = fragmentStart;
  6075. if (pathStart < hostStart)
  6076. pathStart = queryStart;
  6077. else if (pathStart <= schemeEnd)
  6078. pathStart = schemeEnd + 1;
  6079. if (portStart < hostStart)
  6080. portStart = pathStart;
  6081. isSimple = indices[7] < 0;
  6082. if (isSimple)
  6083. if (hostStart > schemeEnd + 3) {
  6084. scheme = _null;
  6085. isSimple = false;
  6086. } else {
  6087. t1 = portStart > 0;
  6088. if (t1 && portStart + 1 === pathStart) {
  6089. scheme = _null;
  6090. isSimple = false;
  6091. } else {
  6092. if (!(queryStart < end && queryStart === pathStart + 2 && J.startsWith$2$s(uri, "..", pathStart)))
  6093. t2 = queryStart > pathStart + 2 && J.startsWith$2$s(uri, "/..", queryStart - 3);
  6094. else
  6095. t2 = true;
  6096. if (t2) {
  6097. scheme = _null;
  6098. isSimple = false;
  6099. } else {
  6100. if (schemeEnd === 4)
  6101. if (J.startsWith$2$s(uri, "file", 0)) {
  6102. if (hostStart <= 0) {
  6103. if (!C.JSString_methods.startsWith$2(uri, "/", pathStart)) {
  6104. schemeAuth = "file:///";
  6105. delta = 3;
  6106. } else {
  6107. schemeAuth = "file://";
  6108. delta = 2;
  6109. }
  6110. uri = schemeAuth + C.JSString_methods.substring$2(uri, pathStart, end);
  6111. schemeEnd -= 0;
  6112. t1 = delta - 0;
  6113. queryStart += t1;
  6114. fragmentStart += t1;
  6115. end = uri.length;
  6116. hostStart = 7;
  6117. portStart = 7;
  6118. pathStart = 7;
  6119. } else if (pathStart === queryStart) {
  6120. queryStart0 = queryStart + 1;
  6121. ++fragmentStart;
  6122. uri = C.JSString_methods.replaceRange$3(uri, pathStart, queryStart, "/");
  6123. ++end;
  6124. queryStart = queryStart0;
  6125. }
  6126. scheme = "file";
  6127. } else if (C.JSString_methods.startsWith$2(uri, "http", 0)) {
  6128. if (t1 && portStart + 3 === pathStart && C.JSString_methods.startsWith$2(uri, "80", portStart + 1)) {
  6129. pathStart0 = pathStart - 3;
  6130. queryStart -= 3;
  6131. fragmentStart -= 3;
  6132. uri = C.JSString_methods.replaceRange$3(uri, portStart, pathStart, "");
  6133. end -= 3;
  6134. pathStart = pathStart0;
  6135. }
  6136. scheme = "http";
  6137. } else
  6138. scheme = _null;
  6139. else if (schemeEnd === 5 && J.startsWith$2$s(uri, "https", 0)) {
  6140. if (t1 && portStart + 4 === pathStart && J.startsWith$2$s(uri, "443", portStart + 1)) {
  6141. pathStart0 = pathStart - 4;
  6142. queryStart -= 4;
  6143. fragmentStart -= 4;
  6144. uri = J.replaceRange$3$asx(uri, portStart, pathStart, "");
  6145. end -= 3;
  6146. pathStart = pathStart0;
  6147. }
  6148. scheme = "https";
  6149. } else
  6150. scheme = _null;
  6151. isSimple = true;
  6152. }
  6153. }
  6154. }
  6155. else
  6156. scheme = _null;
  6157. if (isSimple) {
  6158. t1 = uri.length;
  6159. if (end < t1) {
  6160. uri = J.substring$2$s(uri, 0, end);
  6161. schemeEnd -= 0;
  6162. hostStart -= 0;
  6163. portStart -= 0;
  6164. pathStart -= 0;
  6165. queryStart -= 0;
  6166. fragmentStart -= 0;
  6167. }
  6168. return new P._SimpleUri(uri, schemeEnd, hostStart, portStart, pathStart, queryStart, fragmentStart, scheme);
  6169. }
  6170. return P._Uri__Uri$notSimple(uri, 0, end, schemeEnd, hostStart, portStart, pathStart, queryStart, fragmentStart, scheme);
  6171. },
  6172. Uri_decodeComponent: function(encodedComponent) {
  6173. return P._Uri__uriDecode(encodedComponent, 0, encodedComponent.length, C.C_Utf8Codec, false);
  6174. },
  6175. Uri__parseIPv4Address: function(host, start, end) {
  6176. var i, partStart, partIndex, char, part, partIndex0, _null = null,
  6177. _s43_ = "IPv4 address should contain exactly 4 parts",
  6178. _s37_ = "each part must be in the range 0..255",
  6179. error = new P.Uri__parseIPv4Address_error(host),
  6180. result = new Uint8Array(4);
  6181. for (i = start, partStart = i, partIndex = 0; i < end; ++i) {
  6182. char = C.JSString_methods.codeUnitAt$1(host, i);
  6183. if (char !== 46) {
  6184. if ((char ^ 48) > 9)
  6185. error.call$2("invalid character", i);
  6186. } else {
  6187. if (partIndex === 3)
  6188. error.call$2(_s43_, i);
  6189. part = P.int_parse(C.JSString_methods.substring$2(host, partStart, i), _null, _null);
  6190. if (part > 255)
  6191. error.call$2(_s37_, partStart);
  6192. partIndex0 = partIndex + 1;
  6193. result[partIndex] = part;
  6194. partStart = i + 1;
  6195. partIndex = partIndex0;
  6196. }
  6197. }
  6198. if (partIndex !== 3)
  6199. error.call$2(_s43_, end);
  6200. part = P.int_parse(C.JSString_methods.substring$2(host, partStart, end), _null, _null);
  6201. if (part > 255)
  6202. error.call$2(_s37_, partStart);
  6203. result[partIndex] = part;
  6204. return result;
  6205. },
  6206. Uri_parseIPv6Address: function(host, start, end) {
  6207. var parts, i, partStart, wildcardSeen, seenDot, char, atEnd, t1, last, bytes, wildCardLength, index, value, j,
  6208. error = new P.Uri_parseIPv6Address_error(host),
  6209. parseHex = new P.Uri_parseIPv6Address_parseHex(error, host);
  6210. if (host.length < 2)
  6211. error.call$1("address is too short");
  6212. parts = H.setRuntimeTypeInfo([], type$.JSArray_int);
  6213. for (i = start, partStart = i, wildcardSeen = false, seenDot = false; i < end; ++i) {
  6214. char = C.JSString_methods.codeUnitAt$1(host, i);
  6215. if (char === 58) {
  6216. if (i === start) {
  6217. ++i;
  6218. if (C.JSString_methods.codeUnitAt$1(host, i) !== 58)
  6219. error.call$2("invalid start colon.", i);
  6220. partStart = i;
  6221. }
  6222. if (i === partStart) {
  6223. if (wildcardSeen)
  6224. error.call$2("only one wildcard `::` is allowed", i);
  6225. parts.push(-1);
  6226. wildcardSeen = true;
  6227. } else
  6228. parts.push(parseHex.call$2(partStart, i));
  6229. partStart = i + 1;
  6230. } else if (char === 46)
  6231. seenDot = true;
  6232. }
  6233. if (parts.length === 0)
  6234. error.call$1("too few parts");
  6235. atEnd = partStart === end;
  6236. t1 = C.JSArray_methods.get$last(parts);
  6237. if (atEnd && t1 !== -1)
  6238. error.call$2("expected a part after last `:`", end);
  6239. if (!atEnd)
  6240. if (!seenDot)
  6241. parts.push(parseHex.call$2(partStart, end));
  6242. else {
  6243. last = P.Uri__parseIPv4Address(host, partStart, end);
  6244. parts.push((last[0] << 8 | last[1]) >>> 0);
  6245. parts.push((last[2] << 8 | last[3]) >>> 0);
  6246. }
  6247. if (wildcardSeen) {
  6248. if (parts.length > 7)
  6249. error.call$1("an address with a wildcard must have less than 7 parts");
  6250. } else if (parts.length !== 8)
  6251. error.call$1("an address without a wildcard must contain exactly 8 parts");
  6252. bytes = new Uint8Array(16);
  6253. for (t1 = parts.length, wildCardLength = 9 - t1, i = 0, index = 0; i < t1; ++i) {
  6254. value = parts[i];
  6255. if (value === -1)
  6256. for (j = 0; j < wildCardLength; ++j) {
  6257. bytes[index] = 0;
  6258. bytes[index + 1] = 0;
  6259. index += 2;
  6260. }
  6261. else {
  6262. bytes[index] = C.JSInt_methods._shrOtherPositive$1(value, 8);
  6263. bytes[index + 1] = value & 255;
  6264. index += 2;
  6265. }
  6266. }
  6267. return bytes;
  6268. },
  6269. _Uri__Uri$notSimple: function(uri, start, end, schemeEnd, hostStart, portStart, pathStart, queryStart, fragmentStart, scheme) {
  6270. var userInfoStart, userInfo, host, t1, port, path, query, _null = null;
  6271. if (scheme == null)
  6272. if (schemeEnd > start)
  6273. scheme = P._Uri__makeScheme(uri, start, schemeEnd);
  6274. else {
  6275. if (schemeEnd === start)
  6276. P._Uri__fail(uri, start, "Invalid empty scheme");
  6277. scheme = "";
  6278. }
  6279. if (hostStart > start) {
  6280. userInfoStart = schemeEnd + 3;
  6281. userInfo = userInfoStart < hostStart ? P._Uri__makeUserInfo(uri, userInfoStart, hostStart - 1) : "";
  6282. host = P._Uri__makeHost(uri, hostStart, portStart, false);
  6283. t1 = portStart + 1;
  6284. port = t1 < pathStart ? P._Uri__makePort(P.int_parse(J.substring$2$s(uri, t1, pathStart), new P._Uri__Uri$notSimple_closure(uri, portStart), _null), scheme) : _null;
  6285. } else {
  6286. port = _null;
  6287. host = port;
  6288. userInfo = "";
  6289. }
  6290. path = P._Uri__makePath(uri, pathStart, queryStart, _null, scheme, host != null);
  6291. query = queryStart < fragmentStart ? P._Uri__makeQuery(uri, queryStart + 1, fragmentStart, _null) : _null;
  6292. return new P._Uri(scheme, userInfo, host, port, path, query, fragmentStart < end ? P._Uri__makeFragment(uri, fragmentStart + 1, end) : _null);
  6293. },
  6294. _Uri__Uri: function(host, path, pathSegments, scheme) {
  6295. var userInfo, query, fragment, port, isFile, t1, hasAuthority, t2, _null = null;
  6296. scheme = P._Uri__makeScheme(scheme, 0, scheme == null ? 0 : scheme.length);
  6297. userInfo = P._Uri__makeUserInfo(_null, 0, 0);
  6298. host = P._Uri__makeHost(host, 0, host == null ? 0 : host.length, false);
  6299. query = P._Uri__makeQuery(_null, 0, 0, _null);
  6300. fragment = P._Uri__makeFragment(_null, 0, 0);
  6301. port = P._Uri__makePort(_null, scheme);
  6302. isFile = scheme === "file";
  6303. if (host == null)
  6304. t1 = userInfo.length !== 0 || port != null || isFile;
  6305. else
  6306. t1 = false;
  6307. if (t1)
  6308. host = "";
  6309. t1 = host == null;
  6310. hasAuthority = !t1;
  6311. path = P._Uri__makePath(path, 0, path == null ? 0 : path.length, pathSegments, scheme, hasAuthority);
  6312. t2 = scheme.length === 0;
  6313. if (t2 && t1 && !C.JSString_methods.startsWith$1(path, "/"))
  6314. path = P._Uri__normalizeRelativePath(path, !t2 || hasAuthority);
  6315. else
  6316. path = P._Uri__removeDotSegments(path);
  6317. return new P._Uri(scheme, userInfo, t1 && C.JSString_methods.startsWith$1(path, "//") ? "" : host, port, path, query, fragment);
  6318. },
  6319. _Uri__defaultPort: function(scheme) {
  6320. if (scheme === "http")
  6321. return 80;
  6322. if (scheme === "https")
  6323. return 443;
  6324. return 0;
  6325. },
  6326. _Uri__fail: function(uri, index, message) {
  6327. throw H.wrapException(P.FormatException$(message, uri, index));
  6328. },
  6329. _Uri__Uri$file: function(path, windows) {
  6330. return windows ? P._Uri__makeWindowsFileUrl(path, false) : P._Uri__makeFileUri(path, false);
  6331. },
  6332. _Uri__checkNonWindowsPathReservedCharacters: function(segments, argumentError) {
  6333. C.JSArray_methods.forEach$1(segments, new P._Uri__checkNonWindowsPathReservedCharacters_closure(false));
  6334. },
  6335. _Uri__checkWindowsPathReservedCharacters: function(segments, argumentError, firstSegment) {
  6336. var t1, t2, t3;
  6337. for (t1 = H.SubListIterable$(segments, firstSegment, null, H._arrayInstanceType(segments)._precomputed1), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  6338. t2 = t1.__internal$_current;
  6339. t3 = P.RegExp_RegExp('["*/:<>?\\\\|]', false);
  6340. t2.toString;
  6341. if (H.stringContainsUnchecked(t2, t3, 0))
  6342. if (argumentError)
  6343. throw H.wrapException(P.ArgumentError$("Illegal character in path"));
  6344. else
  6345. throw H.wrapException(P.UnsupportedError$("Illegal character in path: " + t2));
  6346. }
  6347. },
  6348. _Uri__checkWindowsDriveLetter: function(charCode, argumentError) {
  6349. var t1,
  6350. _s21_ = "Illegal drive letter ";
  6351. if (!(65 <= charCode && charCode <= 90))
  6352. t1 = 97 <= charCode && charCode <= 122;
  6353. else
  6354. t1 = true;
  6355. if (t1)
  6356. return;
  6357. if (argumentError)
  6358. throw H.wrapException(P.ArgumentError$(_s21_ + P.String_String$fromCharCode(charCode)));
  6359. else
  6360. throw H.wrapException(P.UnsupportedError$(_s21_ + P.String_String$fromCharCode(charCode)));
  6361. },
  6362. _Uri__makeFileUri: function(path, slashTerminated) {
  6363. var _null = null,
  6364. segments = H.setRuntimeTypeInfo(path.split("/"), type$.JSArray_String);
  6365. if (C.JSString_methods.startsWith$1(path, "/"))
  6366. return P._Uri__Uri(_null, _null, segments, "file");
  6367. else
  6368. return P._Uri__Uri(_null, _null, segments, _null);
  6369. },
  6370. _Uri__makeWindowsFileUrl: function(path, slashTerminated) {
  6371. var t1, pathSegments, pathStart, hostPart, _s1_ = "\\", _null = null, _s4_ = "file";
  6372. if (C.JSString_methods.startsWith$1(path, "\\\\?\\"))
  6373. if (C.JSString_methods.startsWith$2(path, "UNC\\", 4))
  6374. path = C.JSString_methods.replaceRange$3(path, 0, 7, _s1_);
  6375. else {
  6376. path = C.JSString_methods.substring$1(path, 4);
  6377. if (path.length < 3 || C.JSString_methods._codeUnitAt$1(path, 1) !== 58 || C.JSString_methods._codeUnitAt$1(path, 2) !== 92)
  6378. throw H.wrapException(P.ArgumentError$("Windows paths with \\\\?\\ prefix must be absolute"));
  6379. }
  6380. else
  6381. path = H.stringReplaceAllUnchecked(path, "/", _s1_);
  6382. t1 = path.length;
  6383. if (t1 > 1 && C.JSString_methods._codeUnitAt$1(path, 1) === 58) {
  6384. P._Uri__checkWindowsDriveLetter(C.JSString_methods._codeUnitAt$1(path, 0), true);
  6385. if (t1 === 2 || C.JSString_methods._codeUnitAt$1(path, 2) !== 92)
  6386. throw H.wrapException(P.ArgumentError$("Windows paths with drive letter must be absolute"));
  6387. pathSegments = H.setRuntimeTypeInfo(path.split(_s1_), type$.JSArray_String);
  6388. P._Uri__checkWindowsPathReservedCharacters(pathSegments, true, 1);
  6389. return P._Uri__Uri(_null, _null, pathSegments, _s4_);
  6390. }
  6391. if (C.JSString_methods.startsWith$1(path, _s1_))
  6392. if (C.JSString_methods.startsWith$2(path, _s1_, 1)) {
  6393. pathStart = C.JSString_methods.indexOf$2(path, _s1_, 2);
  6394. t1 = pathStart < 0;
  6395. hostPart = t1 ? C.JSString_methods.substring$1(path, 2) : C.JSString_methods.substring$2(path, 2, pathStart);
  6396. pathSegments = H.setRuntimeTypeInfo((t1 ? "" : C.JSString_methods.substring$1(path, pathStart + 1)).split(_s1_), type$.JSArray_String);
  6397. P._Uri__checkWindowsPathReservedCharacters(pathSegments, true, 0);
  6398. return P._Uri__Uri(hostPart, _null, pathSegments, _s4_);
  6399. } else {
  6400. pathSegments = H.setRuntimeTypeInfo(path.split(_s1_), type$.JSArray_String);
  6401. P._Uri__checkWindowsPathReservedCharacters(pathSegments, true, 0);
  6402. return P._Uri__Uri(_null, _null, pathSegments, _s4_);
  6403. }
  6404. else {
  6405. pathSegments = H.setRuntimeTypeInfo(path.split(_s1_), type$.JSArray_String);
  6406. P._Uri__checkWindowsPathReservedCharacters(pathSegments, true, 0);
  6407. return P._Uri__Uri(_null, _null, pathSegments, _null);
  6408. }
  6409. },
  6410. _Uri__makePort: function(port, scheme) {
  6411. if (port != null && port === P._Uri__defaultPort(scheme))
  6412. return null;
  6413. return port;
  6414. },
  6415. _Uri__makeHost: function(host, start, end, strictIPv6) {
  6416. var t1, t2, index, zoneIDstart, zoneID, i;
  6417. if (host == null)
  6418. return null;
  6419. if (start === end)
  6420. return "";
  6421. if (C.JSString_methods.codeUnitAt$1(host, start) === 91) {
  6422. t1 = end - 1;
  6423. if (C.JSString_methods.codeUnitAt$1(host, t1) !== 93)
  6424. P._Uri__fail(host, start, "Missing end `]` to match `[` in host");
  6425. t2 = start + 1;
  6426. index = P._Uri__checkZoneID(host, t2, t1);
  6427. if (index < t1) {
  6428. zoneIDstart = index + 1;
  6429. zoneID = P._Uri__normalizeZoneID(host, C.JSString_methods.startsWith$2(host, "25", zoneIDstart) ? index + 3 : zoneIDstart, t1, "%25");
  6430. } else
  6431. zoneID = "";
  6432. P.Uri_parseIPv6Address(host, t2, index);
  6433. return C.JSString_methods.substring$2(host, start, index).toLowerCase() + zoneID + "]";
  6434. }
  6435. for (i = start; i < end; ++i)
  6436. if (C.JSString_methods.codeUnitAt$1(host, i) === 58) {
  6437. index = C.JSString_methods.indexOf$2(host, "%", start);
  6438. index = index >= start && index < end ? index : end;
  6439. if (index < end) {
  6440. zoneIDstart = index + 1;
  6441. zoneID = P._Uri__normalizeZoneID(host, C.JSString_methods.startsWith$2(host, "25", zoneIDstart) ? index + 3 : zoneIDstart, end, "%25");
  6442. } else
  6443. zoneID = "";
  6444. P.Uri_parseIPv6Address(host, start, index);
  6445. return "[" + C.JSString_methods.substring$2(host, start, index) + zoneID + "]";
  6446. }
  6447. return P._Uri__normalizeRegName(host, start, end);
  6448. },
  6449. _Uri__checkZoneID: function(host, start, end) {
  6450. var index = C.JSString_methods.indexOf$2(host, "%", start);
  6451. return index >= start && index < end ? index : end;
  6452. },
  6453. _Uri__normalizeZoneID: function(host, start, end, prefix) {
  6454. var index, sectionStart, isNormalized, char, replacement, t1, t2, tail, sourceLength,
  6455. buffer = prefix !== "" ? new P.StringBuffer(prefix) : null;
  6456. for (index = start, sectionStart = index, isNormalized = true; index < end;) {
  6457. char = C.JSString_methods.codeUnitAt$1(host, index);
  6458. if (char === 37) {
  6459. replacement = P._Uri__normalizeEscape(host, index, true);
  6460. t1 = replacement == null;
  6461. if (t1 && isNormalized) {
  6462. index += 3;
  6463. continue;
  6464. }
  6465. if (buffer == null)
  6466. buffer = new P.StringBuffer("");
  6467. t2 = buffer._contents += C.JSString_methods.substring$2(host, sectionStart, index);
  6468. if (t1)
  6469. replacement = C.JSString_methods.substring$2(host, index, index + 3);
  6470. else if (replacement === "%")
  6471. P._Uri__fail(host, index, "ZoneID should not contain % anymore");
  6472. buffer._contents = t2 + replacement;
  6473. index += 3;
  6474. sectionStart = index;
  6475. isNormalized = true;
  6476. } else if (char < 127 && (C.List_nxB[char >>> 4] & 1 << (char & 15)) !== 0) {
  6477. if (isNormalized && 65 <= char && 90 >= char) {
  6478. if (buffer == null)
  6479. buffer = new P.StringBuffer("");
  6480. if (sectionStart < index) {
  6481. buffer._contents += C.JSString_methods.substring$2(host, sectionStart, index);
  6482. sectionStart = index;
  6483. }
  6484. isNormalized = false;
  6485. }
  6486. ++index;
  6487. } else {
  6488. if ((char & 64512) === 55296 && index + 1 < end) {
  6489. tail = C.JSString_methods.codeUnitAt$1(host, index + 1);
  6490. if ((tail & 64512) === 56320) {
  6491. char = 65536 | (char & 1023) << 10 | tail & 1023;
  6492. sourceLength = 2;
  6493. } else
  6494. sourceLength = 1;
  6495. } else
  6496. sourceLength = 1;
  6497. if (buffer == null)
  6498. buffer = new P.StringBuffer("");
  6499. buffer._contents += C.JSString_methods.substring$2(host, sectionStart, index);
  6500. buffer._contents += P._Uri__escapeChar(char);
  6501. index += sourceLength;
  6502. sectionStart = index;
  6503. }
  6504. }
  6505. if (buffer == null)
  6506. return C.JSString_methods.substring$2(host, start, end);
  6507. if (sectionStart < end)
  6508. buffer._contents += C.JSString_methods.substring$2(host, sectionStart, end);
  6509. t1 = buffer._contents;
  6510. return t1.charCodeAt(0) == 0 ? t1 : t1;
  6511. },
  6512. _Uri__normalizeRegName: function(host, start, end) {
  6513. var index, sectionStart, buffer, isNormalized, char, replacement, t1, slice, t2, sourceLength, tail;
  6514. for (index = start, sectionStart = index, buffer = null, isNormalized = true; index < end;) {
  6515. char = C.JSString_methods.codeUnitAt$1(host, index);
  6516. if (char === 37) {
  6517. replacement = P._Uri__normalizeEscape(host, index, true);
  6518. t1 = replacement == null;
  6519. if (t1 && isNormalized) {
  6520. index += 3;
  6521. continue;
  6522. }
  6523. if (buffer == null)
  6524. buffer = new P.StringBuffer("");
  6525. slice = C.JSString_methods.substring$2(host, sectionStart, index);
  6526. t2 = buffer._contents += !isNormalized ? slice.toLowerCase() : slice;
  6527. if (t1) {
  6528. replacement = C.JSString_methods.substring$2(host, index, index + 3);
  6529. sourceLength = 3;
  6530. } else if (replacement === "%") {
  6531. replacement = "%25";
  6532. sourceLength = 1;
  6533. } else
  6534. sourceLength = 3;
  6535. buffer._contents = t2 + replacement;
  6536. index += sourceLength;
  6537. sectionStart = index;
  6538. isNormalized = true;
  6539. } else if (char < 127 && (C.List_qNA[char >>> 4] & 1 << (char & 15)) !== 0) {
  6540. if (isNormalized && 65 <= char && 90 >= char) {
  6541. if (buffer == null)
  6542. buffer = new P.StringBuffer("");
  6543. if (sectionStart < index) {
  6544. buffer._contents += C.JSString_methods.substring$2(host, sectionStart, index);
  6545. sectionStart = index;
  6546. }
  6547. isNormalized = false;
  6548. }
  6549. ++index;
  6550. } else if (char <= 93 && (C.List_2Vk[char >>> 4] & 1 << (char & 15)) !== 0)
  6551. P._Uri__fail(host, index, "Invalid character");
  6552. else {
  6553. if ((char & 64512) === 55296 && index + 1 < end) {
  6554. tail = C.JSString_methods.codeUnitAt$1(host, index + 1);
  6555. if ((tail & 64512) === 56320) {
  6556. char = 65536 | (char & 1023) << 10 | tail & 1023;
  6557. sourceLength = 2;
  6558. } else
  6559. sourceLength = 1;
  6560. } else
  6561. sourceLength = 1;
  6562. if (buffer == null)
  6563. buffer = new P.StringBuffer("");
  6564. slice = C.JSString_methods.substring$2(host, sectionStart, index);
  6565. buffer._contents += !isNormalized ? slice.toLowerCase() : slice;
  6566. buffer._contents += P._Uri__escapeChar(char);
  6567. index += sourceLength;
  6568. sectionStart = index;
  6569. }
  6570. }
  6571. if (buffer == null)
  6572. return C.JSString_methods.substring$2(host, start, end);
  6573. if (sectionStart < end) {
  6574. slice = C.JSString_methods.substring$2(host, sectionStart, end);
  6575. buffer._contents += !isNormalized ? slice.toLowerCase() : slice;
  6576. }
  6577. t1 = buffer._contents;
  6578. return t1.charCodeAt(0) == 0 ? t1 : t1;
  6579. },
  6580. _Uri__makeScheme: function(scheme, start, end) {
  6581. var i, containsUpperCase, codeUnit;
  6582. if (start === end)
  6583. return "";
  6584. if (!P._Uri__isAlphabeticCharacter(J.getInterceptor$s(scheme)._codeUnitAt$1(scheme, start)))
  6585. P._Uri__fail(scheme, start, "Scheme not starting with alphabetic character");
  6586. for (i = start, containsUpperCase = false; i < end; ++i) {
  6587. codeUnit = C.JSString_methods._codeUnitAt$1(scheme, i);
  6588. if (!(codeUnit < 128 && (C.List_JYB[codeUnit >>> 4] & 1 << (codeUnit & 15)) !== 0))
  6589. P._Uri__fail(scheme, i, "Illegal scheme character");
  6590. if (65 <= codeUnit && codeUnit <= 90)
  6591. containsUpperCase = true;
  6592. }
  6593. scheme = C.JSString_methods.substring$2(scheme, start, end);
  6594. return P._Uri__canonicalizeScheme(containsUpperCase ? scheme.toLowerCase() : scheme);
  6595. },
  6596. _Uri__canonicalizeScheme: function(scheme) {
  6597. if (scheme === "http")
  6598. return "http";
  6599. if (scheme === "file")
  6600. return "file";
  6601. if (scheme === "https")
  6602. return "https";
  6603. if (scheme === "package")
  6604. return "package";
  6605. return scheme;
  6606. },
  6607. _Uri__makeUserInfo: function(userInfo, start, end) {
  6608. if (userInfo == null)
  6609. return "";
  6610. return P._Uri__normalizeOrSubstring(userInfo, start, end, C.List_gRj, false);
  6611. },
  6612. _Uri__makePath: function(path, start, end, pathSegments, scheme, hasAuthority) {
  6613. var result,
  6614. isFile = scheme === "file",
  6615. ensureLeadingSlash = isFile || hasAuthority,
  6616. t1 = path == null;
  6617. if (t1 && pathSegments == null)
  6618. return isFile ? "/" : "";
  6619. t1 = !t1;
  6620. if (t1 && pathSegments != null)
  6621. throw H.wrapException(P.ArgumentError$("Both path and pathSegments specified"));
  6622. if (t1)
  6623. result = P._Uri__normalizeOrSubstring(path, start, end, C.List_qg4, true);
  6624. else {
  6625. pathSegments.toString;
  6626. result = new H.MappedListIterable(pathSegments, new P._Uri__makePath_closure(), H._arrayInstanceType(pathSegments)._eval$1("MappedListIterable<1,String>")).join$1(0, "/");
  6627. }
  6628. if (result.length === 0) {
  6629. if (isFile)
  6630. return "/";
  6631. } else if (ensureLeadingSlash && !C.JSString_methods.startsWith$1(result, "/"))
  6632. result = "/" + result;
  6633. return P._Uri__normalizePath(result, scheme, hasAuthority);
  6634. },
  6635. _Uri__normalizePath: function(path, scheme, hasAuthority) {
  6636. var t1 = scheme.length === 0;
  6637. if (t1 && !hasAuthority && !C.JSString_methods.startsWith$1(path, "/"))
  6638. return P._Uri__normalizeRelativePath(path, !t1 || hasAuthority);
  6639. return P._Uri__removeDotSegments(path);
  6640. },
  6641. _Uri__makeQuery: function(query, start, end, queryParameters) {
  6642. if (query != null)
  6643. return P._Uri__normalizeOrSubstring(query, start, end, C.List_CVk, true);
  6644. return null;
  6645. },
  6646. _Uri__makeFragment: function(fragment, start, end) {
  6647. if (fragment == null)
  6648. return null;
  6649. return P._Uri__normalizeOrSubstring(fragment, start, end, C.List_CVk, true);
  6650. },
  6651. _Uri__normalizeEscape: function(source, index, lowerCase) {
  6652. var firstDigit, secondDigit, firstDigitValue, secondDigitValue, value,
  6653. t1 = index + 2;
  6654. if (t1 >= source.length)
  6655. return "%";
  6656. firstDigit = C.JSString_methods.codeUnitAt$1(source, index + 1);
  6657. secondDigit = C.JSString_methods.codeUnitAt$1(source, t1);
  6658. firstDigitValue = H.hexDigitValue(firstDigit);
  6659. secondDigitValue = H.hexDigitValue(secondDigit);
  6660. if (firstDigitValue < 0 || secondDigitValue < 0)
  6661. return "%";
  6662. value = firstDigitValue * 16 + secondDigitValue;
  6663. if (value < 127 && (C.List_nxB[C.JSInt_methods._shrOtherPositive$1(value, 4)] & 1 << (value & 15)) !== 0)
  6664. return H.Primitives_stringFromCharCode(lowerCase && 65 <= value && 90 >= value ? (value | 32) >>> 0 : value);
  6665. if (firstDigit >= 97 || secondDigit >= 97)
  6666. return C.JSString_methods.substring$2(source, index, index + 3).toUpperCase();
  6667. return null;
  6668. },
  6669. _Uri__escapeChar: function(char) {
  6670. var t1, codeUnits, flag, encodedBytes, index, byte,
  6671. _s16_ = "0123456789ABCDEF";
  6672. if (char < 128) {
  6673. t1 = new Array(3);
  6674. t1.fixed$length = Array;
  6675. codeUnits = H.setRuntimeTypeInfo(t1, type$.JSArray_int);
  6676. codeUnits[0] = 37;
  6677. codeUnits[1] = C.JSString_methods._codeUnitAt$1(_s16_, char >>> 4);
  6678. codeUnits[2] = C.JSString_methods._codeUnitAt$1(_s16_, char & 15);
  6679. } else {
  6680. if (char > 2047)
  6681. if (char > 65535) {
  6682. flag = 240;
  6683. encodedBytes = 4;
  6684. } else {
  6685. flag = 224;
  6686. encodedBytes = 3;
  6687. }
  6688. else {
  6689. flag = 192;
  6690. encodedBytes = 2;
  6691. }
  6692. t1 = new Array(3 * encodedBytes);
  6693. t1.fixed$length = Array;
  6694. codeUnits = H.setRuntimeTypeInfo(t1, type$.JSArray_int);
  6695. for (index = 0; --encodedBytes, encodedBytes >= 0; flag = 128) {
  6696. byte = C.JSInt_methods._shrReceiverPositive$1(char, 6 * encodedBytes) & 63 | flag;
  6697. codeUnits[index] = 37;
  6698. codeUnits[index + 1] = C.JSString_methods._codeUnitAt$1(_s16_, byte >>> 4);
  6699. codeUnits[index + 2] = C.JSString_methods._codeUnitAt$1(_s16_, byte & 15);
  6700. index += 3;
  6701. }
  6702. }
  6703. return P.String_String$fromCharCodes(codeUnits, 0, null);
  6704. },
  6705. _Uri__normalizeOrSubstring: function(component, start, end, charTable, escapeDelimiters) {
  6706. var t1 = P._Uri__normalize(component, start, end, charTable, escapeDelimiters);
  6707. return t1 == null ? C.JSString_methods.substring$2(component, start, end) : t1;
  6708. },
  6709. _Uri__normalize: function(component, start, end, charTable, escapeDelimiters) {
  6710. var t1, index, sectionStart, buffer, char, replacement, sourceLength, t2, tail, _null = null;
  6711. for (t1 = !escapeDelimiters, index = start, sectionStart = index, buffer = _null; index < end;) {
  6712. char = C.JSString_methods.codeUnitAt$1(component, index);
  6713. if (char < 127 && (charTable[char >>> 4] & 1 << (char & 15)) !== 0)
  6714. ++index;
  6715. else {
  6716. if (char === 37) {
  6717. replacement = P._Uri__normalizeEscape(component, index, false);
  6718. if (replacement == null) {
  6719. index += 3;
  6720. continue;
  6721. }
  6722. if ("%" === replacement) {
  6723. replacement = "%25";
  6724. sourceLength = 1;
  6725. } else
  6726. sourceLength = 3;
  6727. } else if (t1 && char <= 93 && (C.List_2Vk[char >>> 4] & 1 << (char & 15)) !== 0) {
  6728. P._Uri__fail(component, index, "Invalid character");
  6729. sourceLength = _null;
  6730. replacement = sourceLength;
  6731. } else {
  6732. if ((char & 64512) === 55296) {
  6733. t2 = index + 1;
  6734. if (t2 < end) {
  6735. tail = C.JSString_methods.codeUnitAt$1(component, t2);
  6736. if ((tail & 64512) === 56320) {
  6737. char = 65536 | (char & 1023) << 10 | tail & 1023;
  6738. sourceLength = 2;
  6739. } else
  6740. sourceLength = 1;
  6741. } else
  6742. sourceLength = 1;
  6743. } else
  6744. sourceLength = 1;
  6745. replacement = P._Uri__escapeChar(char);
  6746. }
  6747. if (buffer == null)
  6748. buffer = new P.StringBuffer("");
  6749. buffer._contents += C.JSString_methods.substring$2(component, sectionStart, index);
  6750. buffer._contents += H.S(replacement);
  6751. index += sourceLength;
  6752. sectionStart = index;
  6753. }
  6754. }
  6755. if (buffer == null)
  6756. return _null;
  6757. if (sectionStart < end)
  6758. buffer._contents += C.JSString_methods.substring$2(component, sectionStart, end);
  6759. t1 = buffer._contents;
  6760. return t1.charCodeAt(0) == 0 ? t1 : t1;
  6761. },
  6762. _Uri__mayContainDotSegments: function(path) {
  6763. if (C.JSString_methods.startsWith$1(path, "."))
  6764. return true;
  6765. return C.JSString_methods.indexOf$1(path, "/.") !== -1;
  6766. },
  6767. _Uri__removeDotSegments: function(path) {
  6768. var output, t1, t2, appendSlash, _i, segment;
  6769. if (!P._Uri__mayContainDotSegments(path))
  6770. return path;
  6771. output = H.setRuntimeTypeInfo([], type$.JSArray_String);
  6772. for (t1 = path.split("/"), t2 = t1.length, appendSlash = false, _i = 0; _i < t2; ++_i) {
  6773. segment = t1[_i];
  6774. if (J.$eq$(segment, "..")) {
  6775. if (output.length !== 0) {
  6776. output.pop();
  6777. if (output.length === 0)
  6778. output.push("");
  6779. }
  6780. appendSlash = true;
  6781. } else if ("." === segment)
  6782. appendSlash = true;
  6783. else {
  6784. output.push(segment);
  6785. appendSlash = false;
  6786. }
  6787. }
  6788. if (appendSlash)
  6789. output.push("");
  6790. return C.JSArray_methods.join$1(output, "/");
  6791. },
  6792. _Uri__normalizeRelativePath: function(path, allowScheme) {
  6793. var output, t1, t2, appendSlash, _i, segment;
  6794. if (!P._Uri__mayContainDotSegments(path))
  6795. return !allowScheme ? P._Uri__escapeScheme(path) : path;
  6796. output = H.setRuntimeTypeInfo([], type$.JSArray_String);
  6797. for (t1 = path.split("/"), t2 = t1.length, appendSlash = false, _i = 0; _i < t2; ++_i) {
  6798. segment = t1[_i];
  6799. if (".." === segment)
  6800. if (output.length !== 0 && C.JSArray_methods.get$last(output) !== "..") {
  6801. output.pop();
  6802. appendSlash = true;
  6803. } else {
  6804. output.push("..");
  6805. appendSlash = false;
  6806. }
  6807. else if ("." === segment)
  6808. appendSlash = true;
  6809. else {
  6810. output.push(segment);
  6811. appendSlash = false;
  6812. }
  6813. }
  6814. t1 = output.length;
  6815. if (t1 !== 0)
  6816. t1 = t1 === 1 && output[0].length === 0;
  6817. else
  6818. t1 = true;
  6819. if (t1)
  6820. return "./";
  6821. if (appendSlash || C.JSArray_methods.get$last(output) === "..")
  6822. output.push("");
  6823. if (!allowScheme)
  6824. output[0] = P._Uri__escapeScheme(output[0]);
  6825. return C.JSArray_methods.join$1(output, "/");
  6826. },
  6827. _Uri__escapeScheme: function(path) {
  6828. var i, char,
  6829. t1 = path.length;
  6830. if (t1 >= 2 && P._Uri__isAlphabeticCharacter(J._codeUnitAt$1$s(path, 0)))
  6831. for (i = 1; i < t1; ++i) {
  6832. char = C.JSString_methods._codeUnitAt$1(path, i);
  6833. if (char === 58)
  6834. return C.JSString_methods.substring$2(path, 0, i) + "%3A" + C.JSString_methods.substring$1(path, i + 1);
  6835. if (char > 127 || (C.List_JYB[char >>> 4] & 1 << (char & 15)) === 0)
  6836. break;
  6837. }
  6838. return path;
  6839. },
  6840. _Uri__toWindowsFilePath: function(uri) {
  6841. var hasDriveLetter, t2, host,
  6842. segments = uri.get$pathSegments(),
  6843. t1 = segments.length;
  6844. if (t1 > 0 && J.get$length$asx(segments[0]) === 2 && J.codeUnitAt$1$s(segments[0], 1) === 58) {
  6845. P._Uri__checkWindowsDriveLetter(J.codeUnitAt$1$s(segments[0], 0), false);
  6846. P._Uri__checkWindowsPathReservedCharacters(segments, false, 1);
  6847. hasDriveLetter = true;
  6848. } else {
  6849. P._Uri__checkWindowsPathReservedCharacters(segments, false, 0);
  6850. hasDriveLetter = false;
  6851. }
  6852. t2 = uri.get$hasAbsolutePath() && !hasDriveLetter ? "\\" : "";
  6853. if (uri.get$hasAuthority()) {
  6854. host = uri.get$host();
  6855. if (host.length !== 0)
  6856. t2 = t2 + "\\" + host + "\\";
  6857. }
  6858. t2 = P.StringBuffer__writeAll(t2, segments, "\\");
  6859. t1 = hasDriveLetter && t1 === 1 ? t2 + "\\" : t2;
  6860. return t1.charCodeAt(0) == 0 ? t1 : t1;
  6861. },
  6862. _Uri__hexCharPairToByte: function(s, pos) {
  6863. var byte, i, charCode;
  6864. for (byte = 0, i = 0; i < 2; ++i) {
  6865. charCode = C.JSString_methods._codeUnitAt$1(s, pos + i);
  6866. if (48 <= charCode && charCode <= 57)
  6867. byte = byte * 16 + charCode - 48;
  6868. else {
  6869. charCode |= 32;
  6870. if (97 <= charCode && charCode <= 102)
  6871. byte = byte * 16 + charCode - 87;
  6872. else
  6873. throw H.wrapException(P.ArgumentError$("Invalid URL encoding"));
  6874. }
  6875. }
  6876. return byte;
  6877. },
  6878. _Uri__uriDecode: function(text, start, end, encoding, plusToSpace) {
  6879. var simple, codeUnit, t2, bytes,
  6880. t1 = J.getInterceptor$s(text),
  6881. i = start;
  6882. while (true) {
  6883. if (!(i < end)) {
  6884. simple = true;
  6885. break;
  6886. }
  6887. codeUnit = t1._codeUnitAt$1(text, i);
  6888. if (codeUnit <= 127)
  6889. if (codeUnit !== 37)
  6890. t2 = false;
  6891. else
  6892. t2 = true;
  6893. else
  6894. t2 = true;
  6895. if (t2) {
  6896. simple = false;
  6897. break;
  6898. }
  6899. ++i;
  6900. }
  6901. if (simple) {
  6902. if (C.C_Utf8Codec !== encoding)
  6903. t2 = false;
  6904. else
  6905. t2 = true;
  6906. if (t2)
  6907. return t1.substring$2(text, start, end);
  6908. else
  6909. bytes = new H.CodeUnits(t1.substring$2(text, start, end));
  6910. } else {
  6911. bytes = H.setRuntimeTypeInfo([], type$.JSArray_int);
  6912. for (i = start; i < end; ++i) {
  6913. codeUnit = t1._codeUnitAt$1(text, i);
  6914. if (codeUnit > 127)
  6915. throw H.wrapException(P.ArgumentError$("Illegal percent encoding in URI"));
  6916. if (codeUnit === 37) {
  6917. if (i + 3 > text.length)
  6918. throw H.wrapException(P.ArgumentError$("Truncated URI"));
  6919. bytes.push(P._Uri__hexCharPairToByte(text, i + 1));
  6920. i += 2;
  6921. } else
  6922. bytes.push(codeUnit);
  6923. }
  6924. }
  6925. return new P.Utf8Decoder(false).convert$1(bytes);
  6926. },
  6927. _Uri__isAlphabeticCharacter: function(codeUnit) {
  6928. var lowerCase = codeUnit | 32;
  6929. return 97 <= lowerCase && lowerCase <= 122;
  6930. },
  6931. UriData__writeUri: function(mimeType, charsetName, parameters, buffer, indices) {
  6932. var t1, slashIndex;
  6933. if (mimeType == null || mimeType === "text/plain")
  6934. mimeType = "";
  6935. if (mimeType.length === 0 || mimeType === "application/octet-stream")
  6936. t1 = buffer._contents += mimeType;
  6937. else {
  6938. slashIndex = P.UriData__validateMimeType(mimeType);
  6939. if (slashIndex < 0)
  6940. throw H.wrapException(P.ArgumentError$value(mimeType, "mimeType", "Invalid MIME type"));
  6941. t1 = buffer._contents += H.S(P._Uri__uriEncode(C.List_qFt, C.JSString_methods.substring$2(mimeType, 0, slashIndex), C.C_Utf8Codec, false));
  6942. buffer._contents = t1 + "/";
  6943. t1 = buffer._contents += H.S(P._Uri__uriEncode(C.List_qFt, C.JSString_methods.substring$1(mimeType, slashIndex + 1), C.C_Utf8Codec, false));
  6944. }
  6945. if (charsetName != null) {
  6946. indices.push(t1.length);
  6947. indices.push(buffer._contents.length + 8);
  6948. buffer._contents += ";charset=";
  6949. buffer._contents += H.S(P._Uri__uriEncode(C.List_qFt, charsetName, C.C_Utf8Codec, false));
  6950. }
  6951. },
  6952. UriData__validateMimeType: function(mimeType) {
  6953. var t1, slashIndex, i;
  6954. for (t1 = mimeType.length, slashIndex = -1, i = 0; i < t1; ++i) {
  6955. if (C.JSString_methods._codeUnitAt$1(mimeType, i) !== 47)
  6956. continue;
  6957. if (slashIndex < 0) {
  6958. slashIndex = i;
  6959. continue;
  6960. }
  6961. return -1;
  6962. }
  6963. return slashIndex;
  6964. },
  6965. UriData__parse: function(text, start, sourceUri) {
  6966. var t1, i, slashIndex, char, equalsIndex, lastSeparator, t2, data,
  6967. _s17_ = "Invalid MIME type",
  6968. indices = H.setRuntimeTypeInfo([start - 1], type$.JSArray_int);
  6969. for (t1 = text.length, i = start, slashIndex = -1, char = null; i < t1; ++i) {
  6970. char = C.JSString_methods._codeUnitAt$1(text, i);
  6971. if (char === 44 || char === 59)
  6972. break;
  6973. if (char === 47) {
  6974. if (slashIndex < 0) {
  6975. slashIndex = i;
  6976. continue;
  6977. }
  6978. throw H.wrapException(P.FormatException$(_s17_, text, i));
  6979. }
  6980. }
  6981. if (slashIndex < 0 && i > start)
  6982. throw H.wrapException(P.FormatException$(_s17_, text, i));
  6983. for (; char !== 44;) {
  6984. indices.push(i);
  6985. ++i;
  6986. for (equalsIndex = -1; i < t1; ++i) {
  6987. char = C.JSString_methods._codeUnitAt$1(text, i);
  6988. if (char === 61) {
  6989. if (equalsIndex < 0)
  6990. equalsIndex = i;
  6991. } else if (char === 59 || char === 44)
  6992. break;
  6993. }
  6994. if (equalsIndex >= 0)
  6995. indices.push(equalsIndex);
  6996. else {
  6997. lastSeparator = C.JSArray_methods.get$last(indices);
  6998. if (char !== 44 || i !== lastSeparator + 7 || !C.JSString_methods.startsWith$2(text, "base64", lastSeparator + 1))
  6999. throw H.wrapException(P.FormatException$("Expecting '='", text, i));
  7000. break;
  7001. }
  7002. }
  7003. indices.push(i);
  7004. t2 = i + 1;
  7005. if ((indices.length & 1) === 1)
  7006. text = C.C_Base64Codec.normalize$3(text, t2, t1);
  7007. else {
  7008. data = P._Uri__normalize(text, t2, t1, C.List_CVk, true);
  7009. if (data != null)
  7010. text = C.JSString_methods.replaceRange$3(text, t2, t1, data);
  7011. }
  7012. return new P.UriData(text, indices, sourceUri);
  7013. },
  7014. UriData__uriEncodeBytes: function(canonicalTable, bytes, buffer) {
  7015. var t1, byteOr, i, byte,
  7016. _s16_ = "0123456789ABCDEF";
  7017. for (t1 = J.getInterceptor$asx(bytes), byteOr = 0, i = 0; i < t1.get$length(bytes); ++i) {
  7018. byte = t1.$index(bytes, i);
  7019. byteOr |= byte;
  7020. if (byte < 128 && (canonicalTable[C.JSInt_methods._shrOtherPositive$1(byte, 4)] & 1 << (byte & 15)) !== 0)
  7021. buffer._contents += H.Primitives_stringFromCharCode(byte);
  7022. else {
  7023. buffer._contents += H.Primitives_stringFromCharCode(37);
  7024. buffer._contents += H.Primitives_stringFromCharCode(C.JSString_methods._codeUnitAt$1(_s16_, C.JSInt_methods._shrOtherPositive$1(byte, 4)));
  7025. buffer._contents += H.Primitives_stringFromCharCode(C.JSString_methods._codeUnitAt$1(_s16_, byte & 15));
  7026. }
  7027. }
  7028. if ((byteOr & 4294967040) >>> 0 !== 0)
  7029. for (i = 0; i < t1.get$length(bytes); ++i) {
  7030. byte = t1.$index(bytes, i);
  7031. if (byte < 0 || byte > 255)
  7032. throw H.wrapException(P.ArgumentError$value(byte, "non-byte value", null));
  7033. }
  7034. },
  7035. _createTables: function() {
  7036. var _s77_ = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-._~!$&'()*+,;=",
  7037. _s1_ = ".", _s1_0 = ":", _s1_1 = "/", _s1_2 = "?", _s1_3 = "#",
  7038. tables = P.List_List$generate(22, new P._createTables_closure(), true, type$.Uint8List),
  7039. t1 = new P._createTables_build(tables),
  7040. t2 = new P._createTables_setChars(),
  7041. t3 = new P._createTables_setRange(),
  7042. b = t1.call$2(0, 225);
  7043. t2.call$3(b, _s77_, 1);
  7044. t2.call$3(b, _s1_, 14);
  7045. t2.call$3(b, _s1_0, 34);
  7046. t2.call$3(b, _s1_1, 3);
  7047. t2.call$3(b, _s1_2, 172);
  7048. t2.call$3(b, _s1_3, 205);
  7049. b = t1.call$2(14, 225);
  7050. t2.call$3(b, _s77_, 1);
  7051. t2.call$3(b, _s1_, 15);
  7052. t2.call$3(b, _s1_0, 34);
  7053. t2.call$3(b, _s1_1, 234);
  7054. t2.call$3(b, _s1_2, 172);
  7055. t2.call$3(b, _s1_3, 205);
  7056. b = t1.call$2(15, 225);
  7057. t2.call$3(b, _s77_, 1);
  7058. t2.call$3(b, "%", 225);
  7059. t2.call$3(b, _s1_0, 34);
  7060. t2.call$3(b, _s1_1, 9);
  7061. t2.call$3(b, _s1_2, 172);
  7062. t2.call$3(b, _s1_3, 205);
  7063. b = t1.call$2(1, 225);
  7064. t2.call$3(b, _s77_, 1);
  7065. t2.call$3(b, _s1_0, 34);
  7066. t2.call$3(b, _s1_1, 10);
  7067. t2.call$3(b, _s1_2, 172);
  7068. t2.call$3(b, _s1_3, 205);
  7069. b = t1.call$2(2, 235);
  7070. t2.call$3(b, _s77_, 139);
  7071. t2.call$3(b, _s1_1, 131);
  7072. t2.call$3(b, _s1_, 146);
  7073. t2.call$3(b, _s1_2, 172);
  7074. t2.call$3(b, _s1_3, 205);
  7075. b = t1.call$2(3, 235);
  7076. t2.call$3(b, _s77_, 11);
  7077. t2.call$3(b, _s1_1, 68);
  7078. t2.call$3(b, _s1_, 18);
  7079. t2.call$3(b, _s1_2, 172);
  7080. t2.call$3(b, _s1_3, 205);
  7081. b = t1.call$2(4, 229);
  7082. t2.call$3(b, _s77_, 5);
  7083. t3.call$3(b, "AZ", 229);
  7084. t2.call$3(b, _s1_0, 102);
  7085. t2.call$3(b, "@", 68);
  7086. t2.call$3(b, "[", 232);
  7087. t2.call$3(b, _s1_1, 138);
  7088. t2.call$3(b, _s1_2, 172);
  7089. t2.call$3(b, _s1_3, 205);
  7090. b = t1.call$2(5, 229);
  7091. t2.call$3(b, _s77_, 5);
  7092. t3.call$3(b, "AZ", 229);
  7093. t2.call$3(b, _s1_0, 102);
  7094. t2.call$3(b, "@", 68);
  7095. t2.call$3(b, _s1_1, 138);
  7096. t2.call$3(b, _s1_2, 172);
  7097. t2.call$3(b, _s1_3, 205);
  7098. b = t1.call$2(6, 231);
  7099. t3.call$3(b, "19", 7);
  7100. t2.call$3(b, "@", 68);
  7101. t2.call$3(b, _s1_1, 138);
  7102. t2.call$3(b, _s1_2, 172);
  7103. t2.call$3(b, _s1_3, 205);
  7104. b = t1.call$2(7, 231);
  7105. t3.call$3(b, "09", 7);
  7106. t2.call$3(b, "@", 68);
  7107. t2.call$3(b, _s1_1, 138);
  7108. t2.call$3(b, _s1_2, 172);
  7109. t2.call$3(b, _s1_3, 205);
  7110. t2.call$3(t1.call$2(8, 8), "]", 5);
  7111. b = t1.call$2(9, 235);
  7112. t2.call$3(b, _s77_, 11);
  7113. t2.call$3(b, _s1_, 16);
  7114. t2.call$3(b, _s1_1, 234);
  7115. t2.call$3(b, _s1_2, 172);
  7116. t2.call$3(b, _s1_3, 205);
  7117. b = t1.call$2(16, 235);
  7118. t2.call$3(b, _s77_, 11);
  7119. t2.call$3(b, _s1_, 17);
  7120. t2.call$3(b, _s1_1, 234);
  7121. t2.call$3(b, _s1_2, 172);
  7122. t2.call$3(b, _s1_3, 205);
  7123. b = t1.call$2(17, 235);
  7124. t2.call$3(b, _s77_, 11);
  7125. t2.call$3(b, _s1_1, 9);
  7126. t2.call$3(b, _s1_2, 172);
  7127. t2.call$3(b, _s1_3, 205);
  7128. b = t1.call$2(10, 235);
  7129. t2.call$3(b, _s77_, 11);
  7130. t2.call$3(b, _s1_, 18);
  7131. t2.call$3(b, _s1_1, 234);
  7132. t2.call$3(b, _s1_2, 172);
  7133. t2.call$3(b, _s1_3, 205);
  7134. b = t1.call$2(18, 235);
  7135. t2.call$3(b, _s77_, 11);
  7136. t2.call$3(b, _s1_, 19);
  7137. t2.call$3(b, _s1_1, 234);
  7138. t2.call$3(b, _s1_2, 172);
  7139. t2.call$3(b, _s1_3, 205);
  7140. b = t1.call$2(19, 235);
  7141. t2.call$3(b, _s77_, 11);
  7142. t2.call$3(b, _s1_1, 234);
  7143. t2.call$3(b, _s1_2, 172);
  7144. t2.call$3(b, _s1_3, 205);
  7145. b = t1.call$2(11, 235);
  7146. t2.call$3(b, _s77_, 11);
  7147. t2.call$3(b, _s1_1, 10);
  7148. t2.call$3(b, _s1_2, 172);
  7149. t2.call$3(b, _s1_3, 205);
  7150. b = t1.call$2(12, 236);
  7151. t2.call$3(b, _s77_, 12);
  7152. t2.call$3(b, _s1_2, 12);
  7153. t2.call$3(b, _s1_3, 205);
  7154. b = t1.call$2(13, 237);
  7155. t2.call$3(b, _s77_, 13);
  7156. t2.call$3(b, _s1_2, 13);
  7157. t3.call$3(t1.call$2(20, 245), "az", 21);
  7158. b = t1.call$2(21, 245);
  7159. t3.call$3(b, "az", 21);
  7160. t3.call$3(b, "09", 21);
  7161. t2.call$3(b, "+-.", 21);
  7162. return tables;
  7163. },
  7164. _scan: function(uri, start, end, state, indices) {
  7165. var t1, i, table, char, transition,
  7166. tables = $.$get$_scannerTables();
  7167. for (t1 = J.getInterceptor$s(uri), i = start; i < end; ++i) {
  7168. table = tables[state];
  7169. char = t1._codeUnitAt$1(uri, i) ^ 96;
  7170. transition = table[char > 95 ? 31 : char];
  7171. state = transition & 31;
  7172. indices[transition >>> 5] = i;
  7173. }
  7174. return state;
  7175. },
  7176. NoSuchMethodError_toString_closure: function NoSuchMethodError_toString_closure(t0, t1) {
  7177. this._box_0 = t0;
  7178. this.sb = t1;
  7179. },
  7180. bool: function bool() {
  7181. },
  7182. DateTime: function DateTime(t0, t1) {
  7183. this._core$_value = t0;
  7184. this.isUtc = t1;
  7185. },
  7186. double: function double() {
  7187. },
  7188. Duration: function Duration(t0) {
  7189. this._duration = t0;
  7190. },
  7191. Duration_toString_sixDigits: function Duration_toString_sixDigits() {
  7192. },
  7193. Duration_toString_twoDigits: function Duration_toString_twoDigits() {
  7194. },
  7195. Error: function Error() {
  7196. },
  7197. AssertionError: function AssertionError(t0) {
  7198. this.message = t0;
  7199. },
  7200. NullThrownError: function NullThrownError() {
  7201. },
  7202. ArgumentError: function ArgumentError(t0, t1, t2, t3) {
  7203. var _ = this;
  7204. _._hasValue = t0;
  7205. _.invalidValue = t1;
  7206. _.name = t2;
  7207. _.message = t3;
  7208. },
  7209. RangeError: function RangeError(t0, t1, t2, t3, t4, t5) {
  7210. var _ = this;
  7211. _.start = t0;
  7212. _.end = t1;
  7213. _._hasValue = t2;
  7214. _.invalidValue = t3;
  7215. _.name = t4;
  7216. _.message = t5;
  7217. },
  7218. IndexError: function IndexError(t0, t1, t2, t3, t4) {
  7219. var _ = this;
  7220. _.length = t0;
  7221. _._hasValue = t1;
  7222. _.invalidValue = t2;
  7223. _.name = t3;
  7224. _.message = t4;
  7225. },
  7226. NoSuchMethodError: function NoSuchMethodError(t0, t1, t2, t3) {
  7227. var _ = this;
  7228. _._core$_receiver = t0;
  7229. _._memberName = t1;
  7230. _._core$_arguments = t2;
  7231. _._namedArguments = t3;
  7232. },
  7233. UnsupportedError: function UnsupportedError(t0) {
  7234. this.message = t0;
  7235. },
  7236. UnimplementedError: function UnimplementedError(t0) {
  7237. this.message = t0;
  7238. },
  7239. StateError: function StateError(t0) {
  7240. this.message = t0;
  7241. },
  7242. ConcurrentModificationError: function ConcurrentModificationError(t0) {
  7243. this.modifiedObject = t0;
  7244. },
  7245. OutOfMemoryError: function OutOfMemoryError() {
  7246. },
  7247. StackOverflowError: function StackOverflowError() {
  7248. },
  7249. CyclicInitializationError: function CyclicInitializationError(t0) {
  7250. this.variableName = t0;
  7251. },
  7252. _Exception: function _Exception(t0) {
  7253. this.message = t0;
  7254. },
  7255. FormatException: function FormatException(t0, t1, t2) {
  7256. this.message = t0;
  7257. this.source = t1;
  7258. this.offset = t2;
  7259. },
  7260. Function: function Function() {
  7261. },
  7262. int: function int() {
  7263. },
  7264. Iterable: function Iterable() {
  7265. },
  7266. _GeneratorIterable: function _GeneratorIterable(t0, t1, t2) {
  7267. this.length = t0;
  7268. this._generator = t1;
  7269. this.$ti = t2;
  7270. },
  7271. Iterator: function Iterator() {
  7272. },
  7273. List: function List() {
  7274. },
  7275. Map: function Map() {
  7276. },
  7277. MapEntry: function MapEntry(t0, t1, t2) {
  7278. this.key = t0;
  7279. this.value = t1;
  7280. this.$ti = t2;
  7281. },
  7282. Null: function Null() {
  7283. },
  7284. num: function num() {
  7285. },
  7286. Object: function Object() {
  7287. },
  7288. Match: function Match() {
  7289. },
  7290. RegExpMatch: function RegExpMatch() {
  7291. },
  7292. Set: function Set() {
  7293. },
  7294. StackTrace: function StackTrace() {
  7295. },
  7296. _StringStackTrace: function _StringStackTrace(t0) {
  7297. this._stackTrace = t0;
  7298. },
  7299. String: function String() {
  7300. },
  7301. Runes: function Runes(t0) {
  7302. this.string = t0;
  7303. },
  7304. RuneIterator: function RuneIterator(t0) {
  7305. var _ = this;
  7306. _.string = t0;
  7307. _._nextPosition = _._position = 0;
  7308. _._currentCodePoint = -1;
  7309. },
  7310. StringBuffer: function StringBuffer(t0) {
  7311. this._contents = t0;
  7312. },
  7313. StringSink: function StringSink() {
  7314. },
  7315. Symbol0: function Symbol0() {
  7316. },
  7317. Uri: function Uri() {
  7318. },
  7319. Uri__parseIPv4Address_error: function Uri__parseIPv4Address_error(t0) {
  7320. this.host = t0;
  7321. },
  7322. Uri_parseIPv6Address_error: function Uri_parseIPv6Address_error(t0) {
  7323. this.host = t0;
  7324. },
  7325. Uri_parseIPv6Address_parseHex: function Uri_parseIPv6Address_parseHex(t0, t1) {
  7326. this.error = t0;
  7327. this.host = t1;
  7328. },
  7329. _Uri: function _Uri(t0, t1, t2, t3, t4, t5, t6) {
  7330. var _ = this;
  7331. _.scheme = t0;
  7332. _._userInfo = t1;
  7333. _._host = t2;
  7334. _._port = t3;
  7335. _.path = t4;
  7336. _._query = t5;
  7337. _._fragment = t6;
  7338. _._hashCodeCache = _._text = _._pathSegments = null;
  7339. },
  7340. _Uri__Uri$notSimple_closure: function _Uri__Uri$notSimple_closure(t0, t1) {
  7341. this.uri = t0;
  7342. this.portStart = t1;
  7343. },
  7344. _Uri__checkNonWindowsPathReservedCharacters_closure: function _Uri__checkNonWindowsPathReservedCharacters_closure(t0) {
  7345. this.argumentError = t0;
  7346. },
  7347. _Uri__makePath_closure: function _Uri__makePath_closure() {
  7348. },
  7349. UriData: function UriData(t0, t1, t2) {
  7350. this._text = t0;
  7351. this._separatorIndices = t1;
  7352. this._uriCache = t2;
  7353. },
  7354. _createTables_closure: function _createTables_closure() {
  7355. },
  7356. _createTables_build: function _createTables_build(t0) {
  7357. this.tables = t0;
  7358. },
  7359. _createTables_setChars: function _createTables_setChars() {
  7360. },
  7361. _createTables_setRange: function _createTables_setRange() {
  7362. },
  7363. _SimpleUri: function _SimpleUri(t0, t1, t2, t3, t4, t5, t6, t7) {
  7364. var _ = this;
  7365. _._uri = t0;
  7366. _._schemeEnd = t1;
  7367. _._hostStart = t2;
  7368. _._portStart = t3;
  7369. _._pathStart = t4;
  7370. _._queryStart = t5;
  7371. _._fragmentStart = t6;
  7372. _._schemeCache = t7;
  7373. _._hashCodeCache = null;
  7374. },
  7375. _DataUri: function _DataUri(t0, t1, t2, t3, t4, t5, t6) {
  7376. var _ = this;
  7377. _.scheme = t0;
  7378. _._userInfo = t1;
  7379. _._host = t2;
  7380. _._port = t3;
  7381. _.path = t4;
  7382. _._query = t5;
  7383. _._fragment = t6;
  7384. _._hashCodeCache = _._text = _._pathSegments = null;
  7385. },
  7386. max: function(a, b) {
  7387. return Math.max(H.checkNum(a), H.checkNum(b));
  7388. },
  7389. pow: function(x, exponent) {
  7390. H.checkNum(x);
  7391. H.checkNum(exponent);
  7392. return Math.pow(x, exponent);
  7393. },
  7394. Random_Random: function() {
  7395. return C.C__JSRandom;
  7396. },
  7397. _JSRandom: function _JSRandom() {
  7398. },
  7399. Uint8List: function Uint8List() {
  7400. },
  7401. _convertDartFunctionFast: function(f) {
  7402. var ret,
  7403. existing = f.$dart_jsFunction;
  7404. if (existing != null)
  7405. return existing;
  7406. ret = function(_call, f) {
  7407. return function() {
  7408. return _call(f, Array.prototype.slice.apply(arguments));
  7409. };
  7410. }(P._callDartFunctionFast, f);
  7411. ret[$.$get$DART_CLOSURE_PROPERTY_NAME()] = f;
  7412. f.$dart_jsFunction = ret;
  7413. return ret;
  7414. },
  7415. _convertDartFunctionFastCaptureThis: function(f) {
  7416. var ret,
  7417. existing = f._$dart_jsFunctionCaptureThis;
  7418. if (existing != null)
  7419. return existing;
  7420. ret = function(_call, f) {
  7421. return function() {
  7422. return _call(f, this, Array.prototype.slice.apply(arguments));
  7423. };
  7424. }(P._callDartFunctionFastCaptureThis, f);
  7425. ret[$.$get$DART_CLOSURE_PROPERTY_NAME()] = f;
  7426. f._$dart_jsFunctionCaptureThis = ret;
  7427. return ret;
  7428. },
  7429. _callDartFunctionFast: function(callback, $arguments) {
  7430. return P.Function_apply(callback, $arguments);
  7431. },
  7432. _callDartFunctionFastCaptureThis: function(callback, $self, $arguments) {
  7433. var t1 = [$self];
  7434. C.JSArray_methods.addAll$1(t1, $arguments);
  7435. return P.Function_apply(callback, t1);
  7436. },
  7437. allowInterop: function(f) {
  7438. if (typeof f == "function")
  7439. return f;
  7440. else
  7441. return P._convertDartFunctionFast(f);
  7442. },
  7443. allowInteropCaptureThis: function(f) {
  7444. if (typeof f == "function")
  7445. throw H.wrapException(P.ArgumentError$("Function is already a JS function so cannot capture this."));
  7446. else
  7447. return P._convertDartFunctionFastCaptureThis(f);
  7448. },
  7449. callConstructor: function(constr, $arguments) {
  7450. var args, factoryFunction;
  7451. if ($arguments instanceof Array)
  7452. switch ($arguments.length) {
  7453. case 0:
  7454. return new constr();
  7455. case 1:
  7456. return new constr($arguments[0]);
  7457. case 2:
  7458. return new constr($arguments[0], $arguments[1]);
  7459. case 3:
  7460. return new constr($arguments[0], $arguments[1], $arguments[2]);
  7461. case 4:
  7462. return new constr($arguments[0], $arguments[1], $arguments[2], $arguments[3]);
  7463. }
  7464. args = [null];
  7465. C.JSArray_methods.addAll$1(args, $arguments);
  7466. factoryFunction = constr.bind.apply(constr, args);
  7467. String(factoryFunction);
  7468. return new factoryFunction();
  7469. }
  7470. },
  7471. N = {ArgParser: function ArgParser(t0, t1, t2, t3, t4, t5) {
  7472. var _ = this;
  7473. _._arg_parser$_options = t0;
  7474. _.options = t1;
  7475. _.commands = t2;
  7476. _._optionsAndSeparators = t3;
  7477. _.allowTrailingOptions = t4;
  7478. _.usageLineLength = t5;
  7479. }, ArgParser_findByAbbreviation_closure: function ArgParser_findByAbbreviation_closure(t0) {
  7480. this.abbr = t0;
  7481. }, ArgParser_findByAbbreviation_closure0: function ArgParser_findByAbbreviation_closure0() {
  7482. }, SupportsCondition: function SupportsCondition() {
  7483. }, AttributeSelector: function AttributeSelector(t0, t1, t2, t3) {
  7484. var _ = this;
  7485. _.name = t0;
  7486. _.op = t1;
  7487. _.value = t2;
  7488. _.modifier = t3;
  7489. }, AttributeOperator: function AttributeOperator(t0) {
  7490. this._attribute$_text = t0;
  7491. }, IDSelector: function IDSelector(t0) {
  7492. this.name = t0;
  7493. }, IDSelector_unify_closure: function IDSelector_unify_closure(t0) {
  7494. this.$this = t0;
  7495. }, PlaceholderSelector: function PlaceholderSelector(t0) {
  7496. this.name = t0;
  7497. }, UniversalSelector: function UniversalSelector(t0) {
  7498. this.namespace = t0;
  7499. }, NoSourceMapBuffer0: function NoSourceMapBuffer0(t0) {
  7500. this._no_source_map_buffer0$_buffer = t0;
  7501. },
  7502. serialize: function(node, charset, indentWidth, inspect, lineFeed, sourceMap, style, useSpaces) {
  7503. var t1, css, t2, prefix, t3,
  7504. visitor = N._SerializeVisitor$0(2, inspect, lineFeed, true, sourceMap, style, true);
  7505. node.accept$1(visitor);
  7506. t1 = visitor._serialize$_buffer;
  7507. css = t1.toString$0(0);
  7508. if (charset) {
  7509. t2 = new H.CodeUnits(css);
  7510. t2 = t2.any$1(t2, new N.serialize_closure());
  7511. } else
  7512. t2 = false;
  7513. if (t2)
  7514. prefix = style === C.OutputStyle_compressed ? "\ufeff" : '@charset "UTF-8";\n';
  7515. else
  7516. prefix = "";
  7517. t2 = prefix + css;
  7518. t3 = sourceMap ? t1.buildSourceMap$1$prefix(prefix) : null;
  7519. if (sourceMap)
  7520. t1.get$sourceFiles();
  7521. return new N.SerializeResult(t2, t3);
  7522. },
  7523. serializeValue0: function(value, inspect, quote) {
  7524. var visitor = N._SerializeVisitor$0(null, inspect, null, quote, false, null, true);
  7525. value.accept$1(visitor);
  7526. return visitor._serialize$_buffer.toString$0(0);
  7527. },
  7528. _SerializeVisitor$0: function(indentWidth, inspect, lineFeed, quote, sourceMap, style, useSpaces) {
  7529. var t1 = sourceMap ? new D.SourceMapBuffer0(new P.StringBuffer(""), H.setRuntimeTypeInfo([], type$.JSArray_Entry), P.LinkedHashMap_LinkedHashMap$_empty(type$.Uri, type$.SourceFile)) : new N.NoSourceMapBuffer0(new P.StringBuffer("")),
  7530. t2 = style == null ? C.OutputStyle_expanded0 : style,
  7531. t3 = indentWidth == null ? 2 : indentWidth;
  7532. P.RangeError_checkValueInInterval(t3, 0, 10, "indentWidth");
  7533. return new N._SerializeVisitor0(t1, t2, inspect, quote, 32, t3, C.C_LineFeed);
  7534. },
  7535. serialize_closure: function serialize_closure() {
  7536. },
  7537. _SerializeVisitor0: function _SerializeVisitor0(t0, t1, t2, t3, t4, t5, t6) {
  7538. var _ = this;
  7539. _._serialize$_buffer = t0;
  7540. _._indentation = 0;
  7541. _._style = t1;
  7542. _._serialize$_inspect = t2;
  7543. _._quote = t3;
  7544. _._indentCharacter = t4;
  7545. _._indentWidth = t5;
  7546. _._serialize$_lineFeed = t6;
  7547. },
  7548. _SerializeVisitor_visitCssComment_closure: function _SerializeVisitor_visitCssComment_closure(t0, t1) {
  7549. this.$this = t0;
  7550. this.node = t1;
  7551. },
  7552. _SerializeVisitor_visitCssAtRule_closure: function _SerializeVisitor_visitCssAtRule_closure(t0, t1) {
  7553. this.$this = t0;
  7554. this.node = t1;
  7555. },
  7556. _SerializeVisitor_visitCssMediaRule_closure: function _SerializeVisitor_visitCssMediaRule_closure(t0, t1) {
  7557. this.$this = t0;
  7558. this.node = t1;
  7559. },
  7560. _SerializeVisitor_visitCssImport_closure: function _SerializeVisitor_visitCssImport_closure(t0, t1) {
  7561. this.$this = t0;
  7562. this.node = t1;
  7563. },
  7564. _SerializeVisitor_visitCssImport__closure: function _SerializeVisitor_visitCssImport__closure(t0, t1) {
  7565. this.$this = t0;
  7566. this.node = t1;
  7567. },
  7568. _SerializeVisitor_visitCssKeyframeBlock_closure: function _SerializeVisitor_visitCssKeyframeBlock_closure(t0, t1) {
  7569. this.$this = t0;
  7570. this.node = t1;
  7571. },
  7572. _SerializeVisitor_visitCssStyleRule_closure: function _SerializeVisitor_visitCssStyleRule_closure(t0, t1) {
  7573. this.$this = t0;
  7574. this.node = t1;
  7575. },
  7576. _SerializeVisitor_visitCssSupportsRule_closure: function _SerializeVisitor_visitCssSupportsRule_closure(t0, t1) {
  7577. this.$this = t0;
  7578. this.node = t1;
  7579. },
  7580. _SerializeVisitor_visitCssDeclaration_closure: function _SerializeVisitor_visitCssDeclaration_closure(t0, t1) {
  7581. this.$this = t0;
  7582. this.node = t1;
  7583. },
  7584. _SerializeVisitor_visitCssDeclaration_closure0: function _SerializeVisitor_visitCssDeclaration_closure0(t0, t1) {
  7585. this.$this = t0;
  7586. this.node = t1;
  7587. },
  7588. _SerializeVisitor_visitList_closure: function _SerializeVisitor_visitList_closure() {
  7589. },
  7590. _SerializeVisitor_visitList_closure0: function _SerializeVisitor_visitList_closure0(t0, t1) {
  7591. this.$this = t0;
  7592. this.value = t1;
  7593. },
  7594. _SerializeVisitor_visitList_closure1: function _SerializeVisitor_visitList_closure1(t0) {
  7595. this.$this = t0;
  7596. },
  7597. _SerializeVisitor_visitMap_closure: function _SerializeVisitor_visitMap_closure(t0, t1) {
  7598. this.$this = t0;
  7599. this.map = t1;
  7600. },
  7601. _SerializeVisitor_visitSelectorList_closure: function _SerializeVisitor_visitSelectorList_closure() {
  7602. },
  7603. _SerializeVisitor__write_closure: function _SerializeVisitor__write_closure(t0, t1) {
  7604. this.$this = t0;
  7605. this.value = t1;
  7606. },
  7607. _SerializeVisitor__visitChildren_closure: function _SerializeVisitor__visitChildren_closure(t0, t1, t2) {
  7608. this._box_0 = t0;
  7609. this.$this = t1;
  7610. this.children = t2;
  7611. },
  7612. OutputStyle: function OutputStyle(t0) {
  7613. this._serialize$_name = t0;
  7614. },
  7615. LineFeed: function LineFeed() {
  7616. },
  7617. SerializeResult: function SerializeResult(t0, t1) {
  7618. this.css = t0;
  7619. this.sourceMap = t1;
  7620. },
  7621. warn: function(message, deprecation) {
  7622. var warnDefinition = $.Zone__current.$index(0, C.Symbol__warn);
  7623. if (warnDefinition == null)
  7624. throw H.wrapException(P.ArgumentError$("warn() may only be called within a custom function or importer callback."));
  7625. warnDefinition.call$2(message, deprecation);
  7626. },
  7627. withWarnCallback: function(warn, callback, $T) {
  7628. var t1 = type$.dynamic;
  7629. return P.runZoned(new N.withWarnCallback_closure(callback, $T), P.LinkedHashMap_LinkedHashMap$_literal([C.Symbol__warn, warn], t1, t1));
  7630. },
  7631. withWarnCallback_closure: function withWarnCallback_closure(t0, t1) {
  7632. this.callback = t0;
  7633. this.T = t1;
  7634. },
  7635. UnparsedFrame: function UnparsedFrame(t0, t1) {
  7636. this.uri = t0;
  7637. this.member = t1;
  7638. },
  7639. AttributeSelector0: function AttributeSelector0(t0, t1, t2, t3) {
  7640. var _ = this;
  7641. _.name = t0;
  7642. _.op = t1;
  7643. _.value = t2;
  7644. _.modifier = t3;
  7645. },
  7646. AttributeOperator0: function AttributeOperator0(t0) {
  7647. this._attribute0$_text = t0;
  7648. },
  7649. IDSelector0: function IDSelector0(t0) {
  7650. this.name = t0;
  7651. },
  7652. IDSelector_unify_closure0: function IDSelector_unify_closure0(t0) {
  7653. this.$this = t0;
  7654. },
  7655. NoSourceMapBuffer: function NoSourceMapBuffer(t0) {
  7656. this._no_source_map_buffer$_buffer = t0;
  7657. },
  7658. PlaceholderSelector0: function PlaceholderSelector0(t0) {
  7659. this.name = t0;
  7660. },
  7661. serialize0: function(node, charset, indentWidth, inspect, lineFeed, sourceMap, style, useSpaces) {
  7662. var t1, css, t2, prefix, t3,
  7663. visitor = N._SerializeVisitor$(indentWidth == null ? 2 : indentWidth, inspect, lineFeed, true, sourceMap, style, useSpaces);
  7664. node.accept$1(visitor);
  7665. t1 = visitor._buffer;
  7666. css = t1.toString$0(0);
  7667. t2 = new H.CodeUnits(css);
  7668. t2 = t2.any$1(t2, new N.serialize_closure0());
  7669. if (t2)
  7670. prefix = style === C.OutputStyle_compressed0 ? "\ufeff" : '@charset "UTF-8";\n';
  7671. else
  7672. prefix = "";
  7673. t2 = prefix + css;
  7674. t3 = sourceMap ? t1.buildSourceMap$1$prefix(prefix) : null;
  7675. if (sourceMap)
  7676. t1.get$sourceFiles();
  7677. return new N.SerializeResult0(t2, t3);
  7678. },
  7679. serializeValue: function(value, inspect, quote) {
  7680. var visitor = N._SerializeVisitor$(null, inspect, null, quote, false, null, true);
  7681. value.accept$1(visitor);
  7682. return visitor._buffer.toString$0(0);
  7683. },
  7684. _SerializeVisitor$: function(indentWidth, inspect, lineFeed, quote, sourceMap, style, useSpaces) {
  7685. var t1 = sourceMap ? new D.SourceMapBuffer(new P.StringBuffer(""), H.setRuntimeTypeInfo([], type$.JSArray_Entry), P.LinkedHashMap_LinkedHashMap$_empty(type$.Uri, type$.SourceFile)) : new N.NoSourceMapBuffer(new P.StringBuffer("")),
  7686. t2 = style == null ? C.OutputStyle_expanded : style,
  7687. t3 = useSpaces ? 32 : 9,
  7688. t4 = indentWidth == null ? 2 : indentWidth,
  7689. t5 = lineFeed == null ? C.LineFeed_D6m : lineFeed;
  7690. P.RangeError_checkValueInInterval(t4, 0, 10, "indentWidth");
  7691. return new N._SerializeVisitor(t1, t2, inspect, quote, t3, t4, t5);
  7692. },
  7693. serialize_closure0: function serialize_closure0() {
  7694. },
  7695. _SerializeVisitor: function _SerializeVisitor(t0, t1, t2, t3, t4, t5, t6) {
  7696. var _ = this;
  7697. _._buffer = t0;
  7698. _._serialize0$_indentation = 0;
  7699. _._serialize0$_style = t1;
  7700. _._inspect = t2;
  7701. _._serialize0$_quote = t3;
  7702. _._serialize0$_indentCharacter = t4;
  7703. _._serialize0$_indentWidth = t5;
  7704. _._lineFeed = t6;
  7705. },
  7706. _SerializeVisitor_visitCssComment_closure0: function _SerializeVisitor_visitCssComment_closure0(t0, t1) {
  7707. this.$this = t0;
  7708. this.node = t1;
  7709. },
  7710. _SerializeVisitor_visitCssAtRule_closure0: function _SerializeVisitor_visitCssAtRule_closure0(t0, t1) {
  7711. this.$this = t0;
  7712. this.node = t1;
  7713. },
  7714. _SerializeVisitor_visitCssMediaRule_closure0: function _SerializeVisitor_visitCssMediaRule_closure0(t0, t1) {
  7715. this.$this = t0;
  7716. this.node = t1;
  7717. },
  7718. _SerializeVisitor_visitCssImport_closure0: function _SerializeVisitor_visitCssImport_closure0(t0, t1) {
  7719. this.$this = t0;
  7720. this.node = t1;
  7721. },
  7722. _SerializeVisitor_visitCssImport__closure0: function _SerializeVisitor_visitCssImport__closure0(t0, t1) {
  7723. this.$this = t0;
  7724. this.node = t1;
  7725. },
  7726. _SerializeVisitor_visitCssKeyframeBlock_closure0: function _SerializeVisitor_visitCssKeyframeBlock_closure0(t0, t1) {
  7727. this.$this = t0;
  7728. this.node = t1;
  7729. },
  7730. _SerializeVisitor_visitCssStyleRule_closure0: function _SerializeVisitor_visitCssStyleRule_closure0(t0, t1) {
  7731. this.$this = t0;
  7732. this.node = t1;
  7733. },
  7734. _SerializeVisitor_visitCssSupportsRule_closure0: function _SerializeVisitor_visitCssSupportsRule_closure0(t0, t1) {
  7735. this.$this = t0;
  7736. this.node = t1;
  7737. },
  7738. _SerializeVisitor_visitCssDeclaration_closure1: function _SerializeVisitor_visitCssDeclaration_closure1(t0, t1) {
  7739. this.$this = t0;
  7740. this.node = t1;
  7741. },
  7742. _SerializeVisitor_visitCssDeclaration_closure2: function _SerializeVisitor_visitCssDeclaration_closure2(t0, t1) {
  7743. this.$this = t0;
  7744. this.node = t1;
  7745. },
  7746. _SerializeVisitor_visitList_closure2: function _SerializeVisitor_visitList_closure2() {
  7747. },
  7748. _SerializeVisitor_visitList_closure3: function _SerializeVisitor_visitList_closure3(t0, t1) {
  7749. this.$this = t0;
  7750. this.value = t1;
  7751. },
  7752. _SerializeVisitor_visitList_closure4: function _SerializeVisitor_visitList_closure4(t0) {
  7753. this.$this = t0;
  7754. },
  7755. _SerializeVisitor_visitMap_closure0: function _SerializeVisitor_visitMap_closure0(t0, t1) {
  7756. this.$this = t0;
  7757. this.map = t1;
  7758. },
  7759. _SerializeVisitor_visitSelectorList_closure0: function _SerializeVisitor_visitSelectorList_closure0() {
  7760. },
  7761. _SerializeVisitor__write_closure0: function _SerializeVisitor__write_closure0(t0, t1) {
  7762. this.$this = t0;
  7763. this.value = t1;
  7764. },
  7765. _SerializeVisitor__visitChildren_closure0: function _SerializeVisitor__visitChildren_closure0(t0, t1, t2) {
  7766. this._box_0 = t0;
  7767. this.$this = t1;
  7768. this.children = t2;
  7769. },
  7770. OutputStyle0: function OutputStyle0(t0) {
  7771. this._name = t0;
  7772. },
  7773. LineFeed0: function LineFeed0(t0, t1) {
  7774. this.name = t0;
  7775. this.text = t1;
  7776. },
  7777. SerializeResult0: function SerializeResult0(t0, t1) {
  7778. this.css = t0;
  7779. this.sourceMap = t1;
  7780. },
  7781. SupportsCondition0: function SupportsCondition0() {
  7782. },
  7783. UniversalSelector0: function UniversalSelector0(t0) {
  7784. this.namespace = t0;
  7785. },
  7786. warn0: function(message, deprecation) {
  7787. var warnDefinition = $.Zone__current.$index(0, C.Symbol__warn);
  7788. if (warnDefinition == null)
  7789. throw H.wrapException(P.ArgumentError$("warn() may only be called within a custom function or importer callback."));
  7790. warnDefinition.call$2(message, deprecation);
  7791. },
  7792. withWarnCallback0: function(warn, callback, $T) {
  7793. var t1 = type$.dynamic;
  7794. return P.runZoned(new N.withWarnCallback_closure0(callback, $T), P.LinkedHashMap_LinkedHashMap$_literal([C.Symbol__warn, warn], t1, t1));
  7795. },
  7796. withWarnCallback_closure0: function withWarnCallback_closure0(t0, t1) {
  7797. this.callback = t0;
  7798. this.T = t1;
  7799. }
  7800. },
  7801. Z = {
  7802. ArgParserException$: function(message, commands) {
  7803. return new Z.ArgParserException(commands == null ? C.List_empty : P.List_List$unmodifiable(commands, type$.String), message, null, null);
  7804. },
  7805. ArgParserException: function ArgParserException(t0, t1, t2, t3) {
  7806. var _ = this;
  7807. _.commands = t0;
  7808. _.message = t1;
  7809. _.source = t2;
  7810. _.offset = t3;
  7811. },
  7812. Argument: function Argument(t0, t1, t2) {
  7813. this.name = t0;
  7814. this.defaultValue = t1;
  7815. this.span = t2;
  7816. },
  7817. ConfiguredVariable: function ConfiguredVariable(t0, t1, t2, t3) {
  7818. var _ = this;
  7819. _.name = t0;
  7820. _.expression = t1;
  7821. _.isGuarded = t2;
  7822. _.span = t3;
  7823. },
  7824. BooleanExpression: function BooleanExpression(t0, t1) {
  7825. this.value = t0;
  7826. this.span = t1;
  7827. },
  7828. VariableDeclaration$: function($name, expression, span, comment, global, guarded, namespace) {
  7829. if (namespace != null && global)
  7830. H.throwExpression(P.ArgumentError$("Other modules' members can't be defined with !global."));
  7831. return new Z.VariableDeclaration(namespace, $name, expression, guarded, global, span);
  7832. },
  7833. VariableDeclaration: function VariableDeclaration(t0, t1, t2, t3, t4, t5) {
  7834. var _ = this;
  7835. _.namespace = t0;
  7836. _.name = t1;
  7837. _.expression = t2;
  7838. _.isGuarded = t3;
  7839. _.isGlobal = t4;
  7840. _.span = t5;
  7841. },
  7842. ConfiguredValue: function ConfiguredValue(t0, t1, t2) {
  7843. this.value = t0;
  7844. this.configurationSpan = t1;
  7845. this.assignmentNode = t2;
  7846. },
  7847. InterpolationBuffer: function InterpolationBuffer(t0, t1) {
  7848. this._interpolation_buffer$_text = t0;
  7849. this._interpolation_buffer$_contents = t1;
  7850. },
  7851. MergedMapView$: function(maps, $K, $V) {
  7852. var t1 = $K._eval$1("@<0>")._bind$1($V);
  7853. t1 = new Z.MergedMapView(P.LinkedHashMap_LinkedHashMap$_empty($K, t1._eval$1("Map<1,2>")), t1._eval$1("MergedMapView<1,2>"));
  7854. t1.MergedMapView$1(maps, $K, $V);
  7855. return t1;
  7856. },
  7857. MergedMapView: function MergedMapView(t0, t1) {
  7858. this._mapsByKey = t0;
  7859. this.$ti = t1;
  7860. },
  7861. SassBoolean: function SassBoolean(t0) {
  7862. this.value = t0;
  7863. },
  7864. LineScanner: function LineScanner(t0, t1) {
  7865. var _ = this;
  7866. _._line_scanner$_column = _._line_scanner$_line = 0;
  7867. _.sourceUrl = t0;
  7868. _.string = t1;
  7869. _._string_scanner$_position = 0;
  7870. _._lastMatchPosition = _._lastMatch = null;
  7871. },
  7872. Argument0: function Argument0(t0, t1, t2) {
  7873. this.name = t0;
  7874. this.defaultValue = t1;
  7875. this.span = t2;
  7876. },
  7877. BooleanExpression0: function BooleanExpression0(t0, t1) {
  7878. this.value = t0;
  7879. this.span = t1;
  7880. },
  7881. closure249: function closure249() {
  7882. },
  7883. _closure34: function _closure34() {
  7884. },
  7885. _closure35: function _closure35() {
  7886. },
  7887. SassBoolean0: function SassBoolean0(t0) {
  7888. this.value = t0;
  7889. },
  7890. ConfiguredValue0: function ConfiguredValue0(t0, t1, t2) {
  7891. this.value = t0;
  7892. this.configurationSpan = t1;
  7893. this.assignmentNode = t2;
  7894. },
  7895. ConfiguredVariable0: function ConfiguredVariable0(t0, t1, t2, t3) {
  7896. var _ = this;
  7897. _.name = t0;
  7898. _.expression = t1;
  7899. _.isGuarded = t2;
  7900. _.span = t3;
  7901. },
  7902. InterpolationBuffer0: function InterpolationBuffer0(t0, t1) {
  7903. this._interpolation_buffer0$_text = t0;
  7904. this._interpolation_buffer0$_contents = t1;
  7905. },
  7906. MergedMapView$0: function(maps, $K, $V) {
  7907. var t1 = $K._eval$1("@<0>")._bind$1($V);
  7908. t1 = new Z.MergedMapView0(P.LinkedHashMap_LinkedHashMap$_empty($K, t1._eval$1("Map<1,2>")), t1._eval$1("MergedMapView0<1,2>"));
  7909. t1.MergedMapView$10(maps, $K, $V);
  7910. return t1;
  7911. },
  7912. MergedMapView0: function MergedMapView0(t0, t1) {
  7913. this._merged_map_view$_mapsByKey = t0;
  7914. this.$ti = t1;
  7915. },
  7916. RenderContext: function RenderContext() {
  7917. },
  7918. VariableDeclaration$0: function($name, expression, span, comment, global, guarded, namespace) {
  7919. if (namespace != null && global)
  7920. H.throwExpression(P.ArgumentError$("Other modules' members can't be defined with !global."));
  7921. return new Z.VariableDeclaration0(namespace, $name, expression, guarded, global, span);
  7922. },
  7923. VariableDeclaration0: function VariableDeclaration0(t0, t1, t2, t3, t4, t5) {
  7924. var _ = this;
  7925. _.namespace = t0;
  7926. _.name = t1;
  7927. _.expression = t2;
  7928. _.isGuarded = t3;
  7929. _.isGlobal = t4;
  7930. _.span = t5;
  7931. }
  7932. },
  7933. V = {
  7934. ArgResults$_: function(_parser, _parsed, $name, command, rest, $arguments) {
  7935. return new V.ArgResults(_parser, _parsed, $name, new P.UnmodifiableListView(rest, type$.UnmodifiableListView_String));
  7936. },
  7937. ArgResults: function ArgResults(t0, t1, t2, t3) {
  7938. var _ = this;
  7939. _._parser = t0;
  7940. _._parsed = t1;
  7941. _.name = t2;
  7942. _.rest = t3;
  7943. },
  7944. ErrorResult: function ErrorResult(t0, t1) {
  7945. this.error = t0;
  7946. this.stackTrace = t1;
  7947. },
  7948. ModifiableCssStylesheet: function ModifiableCssStylesheet(t0, t1, t2) {
  7949. var _ = this;
  7950. _.span = t0;
  7951. _.children = t1;
  7952. _._children = t2;
  7953. _._indexInParent = _._parent = null;
  7954. _.isGroupEnd = false;
  7955. },
  7956. CssStylesheet: function CssStylesheet(t0, t1) {
  7957. this.children = t0;
  7958. this.span = t1;
  7959. },
  7960. AtRootQuery: function AtRootQuery(t0, t1, t2, t3) {
  7961. var _ = this;
  7962. _.include = t0;
  7963. _.names = t1;
  7964. _._all = t2;
  7965. _._at_root_query$_rule = t3;
  7966. },
  7967. BinaryOperationExpression: function BinaryOperationExpression(t0, t1, t2, t3) {
  7968. var _ = this;
  7969. _.operator = t0;
  7970. _.left = t1;
  7971. _.right = t2;
  7972. _.allowsSlash = t3;
  7973. },
  7974. BinaryOperator: function BinaryOperator(t0, t1, t2) {
  7975. this.name = t0;
  7976. this.operator = t1;
  7977. this.precedence = t2;
  7978. },
  7979. AtRootRule: function AtRootRule(t0, t1, t2, t3) {
  7980. var _ = this;
  7981. _.query = t0;
  7982. _.span = t1;
  7983. _.children = t2;
  7984. _.hasDeclarations = t3;
  7985. },
  7986. EachRule: function EachRule(t0, t1, t2, t3, t4) {
  7987. var _ = this;
  7988. _.variables = t0;
  7989. _.list = t1;
  7990. _.span = t2;
  7991. _.children = t3;
  7992. _.hasDeclarations = t4;
  7993. },
  7994. EachRule_toString_closure: function EachRule_toString_closure() {
  7995. },
  7996. IfRule: function IfRule(t0, t1, t2) {
  7997. this.clauses = t0;
  7998. this.lastClause = t1;
  7999. this.span = t2;
  8000. },
  8001. IfRule_toString_closure: function IfRule_toString_closure(t0) {
  8002. this._box_0 = t0;
  8003. },
  8004. IfClause: function IfClause(t0, t1, t2) {
  8005. this.expression = t0;
  8006. this.children = t1;
  8007. this.hasDeclarations = t2;
  8008. },
  8009. IfClause$__closure: function IfClause$__closure() {
  8010. },
  8011. IfClause$___closure: function IfClause$___closure() {
  8012. },
  8013. Stylesheet$: function(children, span, plainCss) {
  8014. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_UseRule),
  8015. t2 = H.setRuntimeTypeInfo([], type$.JSArray_ForwardRule),
  8016. t3 = P.List_List$unmodifiable(children, type$.Statement),
  8017. t4 = C.JSArray_methods.any$1(t3, new M.ParentStatement_closure());
  8018. t1 = new V.Stylesheet(span, plainCss, t1, t2, t3, t4);
  8019. t1.Stylesheet$3$plainCss(children, span, plainCss);
  8020. return t1;
  8021. },
  8022. Stylesheet_Stylesheet$parse: function(contents, syntax, logger, url) {
  8023. var t1, t2;
  8024. switch (syntax) {
  8025. case C.Syntax_Sass:
  8026. t1 = S.SpanScanner$(contents, url);
  8027. t2 = logger == null ? C.StderrLogger_false : logger;
  8028. return new U.SassParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, t2).parse$0();
  8029. case C.Syntax_SCSS:
  8030. t1 = S.SpanScanner$(contents, url);
  8031. t2 = logger == null ? C.StderrLogger_false : logger;
  8032. return new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, t2).parse$0();
  8033. case C.Syntax_CSS:
  8034. t1 = S.SpanScanner$(contents, url);
  8035. t2 = logger == null ? C.StderrLogger_false : logger;
  8036. return new Q.CssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, t2).parse$0();
  8037. default:
  8038. throw H.wrapException(P.ArgumentError$("Unknown syntax " + syntax.toString$0(0) + "."));
  8039. }
  8040. },
  8041. Stylesheet: function Stylesheet(t0, t1, t2, t3, t4, t5) {
  8042. var _ = this;
  8043. _.span = t0;
  8044. _.plainCss = t1;
  8045. _._uses = t2;
  8046. _._forwards = t3;
  8047. _.children = t4;
  8048. _.hasDeclarations = t5;
  8049. },
  8050. AtRootQueryParser: function AtRootQueryParser(t0, t1) {
  8051. this.scanner = t0;
  8052. this.logger = t1;
  8053. },
  8054. AtRootQueryParser_parse_closure: function AtRootQueryParser_parse_closure(t0) {
  8055. this.$this = t0;
  8056. },
  8057. StylesheetParser: function StylesheetParser() {
  8058. },
  8059. StylesheetParser_parse_closure: function StylesheetParser_parse_closure(t0) {
  8060. this.$this = t0;
  8061. },
  8062. StylesheetParser_parse__closure: function StylesheetParser_parse__closure(t0) {
  8063. this.$this = t0;
  8064. },
  8065. StylesheetParser_parse__closure0: function StylesheetParser_parse__closure0() {
  8066. },
  8067. StylesheetParser_parseArgumentDeclaration_closure: function StylesheetParser_parseArgumentDeclaration_closure(t0) {
  8068. this.$this = t0;
  8069. },
  8070. StylesheetParser_parseVariableDeclaration_closure: function StylesheetParser_parseVariableDeclaration_closure(t0) {
  8071. this.$this = t0;
  8072. },
  8073. StylesheetParser_parseUseRule_closure: function StylesheetParser_parseUseRule_closure(t0) {
  8074. this.$this = t0;
  8075. },
  8076. StylesheetParser__parseSingleProduction_closure: function StylesheetParser__parseSingleProduction_closure(t0, t1, t2) {
  8077. this.$this = t0;
  8078. this.production = t1;
  8079. this.T = t2;
  8080. },
  8081. StylesheetParser__statement_closure: function StylesheetParser__statement_closure(t0) {
  8082. this.$this = t0;
  8083. },
  8084. StylesheetParser_variableDeclarationWithoutNamespace_closure: function StylesheetParser_variableDeclarationWithoutNamespace_closure(t0, t1) {
  8085. this._box_0 = t0;
  8086. this.$this = t1;
  8087. },
  8088. StylesheetParser_variableDeclarationWithoutNamespace_closure0: function StylesheetParser_variableDeclarationWithoutNamespace_closure0(t0) {
  8089. this.declaration = t0;
  8090. },
  8091. StylesheetParser__declarationOrBuffer_closure: function StylesheetParser__declarationOrBuffer_closure(t0) {
  8092. this.name = t0;
  8093. },
  8094. StylesheetParser__declarationOrBuffer_closure0: function StylesheetParser__declarationOrBuffer_closure0(t0, t1) {
  8095. this._box_0 = t0;
  8096. this.name = t1;
  8097. },
  8098. StylesheetParser__styleRule_closure: function StylesheetParser__styleRule_closure(t0, t1, t2) {
  8099. this._box_0 = t0;
  8100. this.$this = t1;
  8101. this.wasInStyleRule = t2;
  8102. },
  8103. StylesheetParser__propertyOrVariableDeclaration_closure: function StylesheetParser__propertyOrVariableDeclaration_closure(t0) {
  8104. this._box_0 = t0;
  8105. },
  8106. StylesheetParser__propertyOrVariableDeclaration_closure0: function StylesheetParser__propertyOrVariableDeclaration_closure0(t0, t1) {
  8107. this._box_0 = t0;
  8108. this.value = t1;
  8109. },
  8110. StylesheetParser__atRootRule_closure: function StylesheetParser__atRootRule_closure(t0) {
  8111. this.query = t0;
  8112. },
  8113. StylesheetParser__atRootRule_closure0: function StylesheetParser__atRootRule_closure0() {
  8114. },
  8115. StylesheetParser__eachRule_closure: function StylesheetParser__eachRule_closure(t0, t1, t2, t3) {
  8116. var _ = this;
  8117. _.$this = t0;
  8118. _.wasInControlDirective = t1;
  8119. _.variables = t2;
  8120. _.list = t3;
  8121. },
  8122. StylesheetParser__functionRule_closure: function StylesheetParser__functionRule_closure(t0, t1, t2) {
  8123. this.name = t0;
  8124. this.$arguments = t1;
  8125. this.precedingComment = t2;
  8126. },
  8127. StylesheetParser__forRule_closure: function StylesheetParser__forRule_closure(t0, t1) {
  8128. this._box_0 = t0;
  8129. this.$this = t1;
  8130. },
  8131. StylesheetParser__forRule_closure0: function StylesheetParser__forRule_closure0(t0, t1, t2, t3, t4, t5) {
  8132. var _ = this;
  8133. _._box_0 = t0;
  8134. _.$this = t1;
  8135. _.wasInControlDirective = t2;
  8136. _.variable = t3;
  8137. _.from = t4;
  8138. _.to = t5;
  8139. },
  8140. StylesheetParser__memberList_closure: function StylesheetParser__memberList_closure(t0, t1, t2) {
  8141. this.$this = t0;
  8142. this.variables = t1;
  8143. this.identifiers = t2;
  8144. },
  8145. StylesheetParser__includeRule_closure: function StylesheetParser__includeRule_closure(t0) {
  8146. this._box_0 = t0;
  8147. },
  8148. StylesheetParser_mediaRule_closure: function StylesheetParser_mediaRule_closure(t0) {
  8149. this.query = t0;
  8150. },
  8151. StylesheetParser__mixinRule_closure: function StylesheetParser__mixinRule_closure(t0, t1, t2, t3) {
  8152. var _ = this;
  8153. _.$this = t0;
  8154. _.name = t1;
  8155. _.$arguments = t2;
  8156. _.precedingComment = t3;
  8157. },
  8158. StylesheetParser_mozDocumentRule_closure: function StylesheetParser_mozDocumentRule_closure(t0, t1, t2, t3) {
  8159. var _ = this;
  8160. _._box_0 = t0;
  8161. _.$this = t1;
  8162. _.name = t2;
  8163. _.value = t3;
  8164. },
  8165. StylesheetParser_supportsRule_closure: function StylesheetParser_supportsRule_closure(t0) {
  8166. this.condition = t0;
  8167. },
  8168. StylesheetParser__whileRule_closure: function StylesheetParser__whileRule_closure(t0, t1, t2) {
  8169. this.$this = t0;
  8170. this.wasInControlDirective = t1;
  8171. this.condition = t2;
  8172. },
  8173. StylesheetParser_unknownAtRule_closure: function StylesheetParser_unknownAtRule_closure(t0, t1) {
  8174. this._box_0 = t0;
  8175. this.name = t1;
  8176. },
  8177. StylesheetParser_expression_resetState: function StylesheetParser_expression_resetState(t0, t1, t2) {
  8178. this._box_0 = t0;
  8179. this.$this = t1;
  8180. this.start = t2;
  8181. },
  8182. StylesheetParser_expression_resolveOneOperation: function StylesheetParser_expression_resolveOneOperation(t0, t1) {
  8183. this._box_0 = t0;
  8184. this.$this = t1;
  8185. },
  8186. StylesheetParser_expression_resolveOperations: function StylesheetParser_expression_resolveOperations(t0, t1) {
  8187. this._box_0 = t0;
  8188. this.resolveOneOperation = t1;
  8189. },
  8190. StylesheetParser_expression_addSingleExpression: function StylesheetParser_expression_addSingleExpression(t0, t1, t2, t3) {
  8191. var _ = this;
  8192. _._box_0 = t0;
  8193. _.$this = t1;
  8194. _.resetState = t2;
  8195. _.resolveOperations = t3;
  8196. },
  8197. StylesheetParser_expression_addOperator: function StylesheetParser_expression_addOperator(t0, t1, t2) {
  8198. this._box_0 = t0;
  8199. this.$this = t1;
  8200. this.resolveOneOperation = t2;
  8201. },
  8202. StylesheetParser_expression_resolveSpaceExpressions: function StylesheetParser_expression_resolveSpaceExpressions(t0, t1) {
  8203. this._box_0 = t0;
  8204. this.resolveOperations = t1;
  8205. },
  8206. StylesheetParser__expressionUntilComma_closure: function StylesheetParser__expressionUntilComma_closure(t0) {
  8207. this.$this = t0;
  8208. },
  8209. StylesheetParser__unicodeRange_closure: function StylesheetParser__unicodeRange_closure() {
  8210. },
  8211. StylesheetParser__unicodeRange_closure0: function StylesheetParser__unicodeRange_closure0() {
  8212. },
  8213. StylesheetParser_identifierLike_closure: function StylesheetParser_identifierLike_closure(t0, t1) {
  8214. this.$this = t0;
  8215. this.start = t1;
  8216. },
  8217. StylesheetParser__expressionUntilComparison_closure: function StylesheetParser__expressionUntilComparison_closure(t0) {
  8218. this.$this = t0;
  8219. },
  8220. StylesheetParser__publicIdentifier_closure: function StylesheetParser__publicIdentifier_closure(t0, t1) {
  8221. this.$this = t0;
  8222. this.start = t1;
  8223. },
  8224. cloneCssStylesheet: function(stylesheet, extender) {
  8225. var result = extender.clone$0(),
  8226. t1 = stylesheet.get$span(),
  8227. t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
  8228. return new S.Tuple2(new V._CloneCssVisitor(result.item2)._visitChildren$2(new V.ModifiableCssStylesheet(t1, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode), t2), stylesheet), result.item1, type$.Tuple2_ModifiableCssStylesheet_Extender);
  8229. },
  8230. _CloneCssVisitor: function _CloneCssVisitor(t0) {
  8231. this._oldToNewSelectors = t0;
  8232. },
  8233. SourceLocation$: function(offset, column, line, sourceUrl) {
  8234. var t1 = line == null,
  8235. t2 = t1 ? 0 : line;
  8236. if (offset < 0)
  8237. H.throwExpression(P.RangeError$("Offset may not be negative, was " + offset + "."));
  8238. else if (!t1 && line < 0)
  8239. H.throwExpression(P.RangeError$("Line may not be negative, was " + H.S(line) + "."));
  8240. else if (column < 0)
  8241. H.throwExpression(P.RangeError$("Column may not be negative, was " + column + "."));
  8242. return new V.SourceLocation(sourceUrl, offset, t2, column);
  8243. },
  8244. SourceLocation: function SourceLocation(t0, t1, t2, t3) {
  8245. var _ = this;
  8246. _.sourceUrl = t0;
  8247. _.offset = t1;
  8248. _.line = t2;
  8249. _.column = t3;
  8250. },
  8251. SourceSpan: function SourceSpan() {
  8252. },
  8253. SourceSpanBase: function SourceSpanBase() {
  8254. },
  8255. AtRootQueryParser0: function AtRootQueryParser0(t0, t1) {
  8256. this.scanner = t0;
  8257. this.logger = t1;
  8258. },
  8259. AtRootQueryParser_parse_closure0: function AtRootQueryParser_parse_closure0(t0) {
  8260. this.$this = t0;
  8261. },
  8262. AtRootQuery0: function AtRootQuery0(t0, t1, t2, t3) {
  8263. var _ = this;
  8264. _.include = t0;
  8265. _.names = t1;
  8266. _._at_root_query0$_all = t2;
  8267. _._at_root_query0$_rule = t3;
  8268. },
  8269. AtRootRule0: function AtRootRule0(t0, t1, t2, t3) {
  8270. var _ = this;
  8271. _.query = t0;
  8272. _.span = t1;
  8273. _.children = t2;
  8274. _.hasDeclarations = t3;
  8275. },
  8276. BinaryOperationExpression0: function BinaryOperationExpression0(t0, t1, t2, t3) {
  8277. var _ = this;
  8278. _.operator = t0;
  8279. _.left = t1;
  8280. _.right = t2;
  8281. _.allowsSlash = t3;
  8282. },
  8283. BinaryOperator0: function BinaryOperator0(t0, t1, t2) {
  8284. this.name = t0;
  8285. this.operator = t1;
  8286. this.precedence = t2;
  8287. },
  8288. cloneCssStylesheet0: function(stylesheet, extender) {
  8289. var result = extender.clone$0(),
  8290. t1 = stylesheet.get$span(),
  8291. t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
  8292. return new S.Tuple2(new V._CloneCssVisitor0(result.item2)._clone_css$_visitChildren$2(new V.ModifiableCssStylesheet0(t1, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode_2), t2), stylesheet), result.item1, type$.Tuple2_ModifiableCssStylesheet_Extender_2);
  8293. },
  8294. _CloneCssVisitor0: function _CloneCssVisitor0(t0) {
  8295. this._clone_css$_oldToNewSelectors = t0;
  8296. },
  8297. EachRule0: function EachRule0(t0, t1, t2, t3, t4) {
  8298. var _ = this;
  8299. _.variables = t0;
  8300. _.list = t1;
  8301. _.span = t2;
  8302. _.children = t3;
  8303. _.hasDeclarations = t4;
  8304. },
  8305. EachRule_toString_closure0: function EachRule_toString_closure0() {
  8306. },
  8307. JSError: function JSError() {
  8308. },
  8309. IfRule0: function IfRule0(t0, t1, t2) {
  8310. this.clauses = t0;
  8311. this.lastClause = t1;
  8312. this.span = t2;
  8313. },
  8314. IfRule_toString_closure0: function IfRule_toString_closure0(t0) {
  8315. this._box_0 = t0;
  8316. },
  8317. IfClause0: function IfClause0(t0, t1, t2) {
  8318. this.expression = t0;
  8319. this.children = t1;
  8320. this.hasDeclarations = t2;
  8321. },
  8322. IfClause$__closure0: function IfClause$__closure0() {
  8323. },
  8324. IfClause$___closure0: function IfClause$___closure0() {
  8325. },
  8326. CssStylesheet0: function CssStylesheet0(t0, t1) {
  8327. this.children = t0;
  8328. this.span = t1;
  8329. },
  8330. ModifiableCssStylesheet0: function ModifiableCssStylesheet0(t0, t1, t2) {
  8331. var _ = this;
  8332. _.span = t0;
  8333. _.children = t1;
  8334. _._node2$_children = t2;
  8335. _._node2$_indexInParent = _._node2$_parent = null;
  8336. _.isGroupEnd = false;
  8337. },
  8338. StylesheetParser0: function StylesheetParser0() {
  8339. },
  8340. StylesheetParser_parse_closure0: function StylesheetParser_parse_closure0(t0) {
  8341. this.$this = t0;
  8342. },
  8343. StylesheetParser_parse__closure1: function StylesheetParser_parse__closure1(t0) {
  8344. this.$this = t0;
  8345. },
  8346. StylesheetParser_parse__closure2: function StylesheetParser_parse__closure2() {
  8347. },
  8348. StylesheetParser_parseArgumentDeclaration_closure0: function StylesheetParser_parseArgumentDeclaration_closure0(t0) {
  8349. this.$this = t0;
  8350. },
  8351. StylesheetParser__parseSingleProduction_closure0: function StylesheetParser__parseSingleProduction_closure0(t0, t1, t2) {
  8352. this.$this = t0;
  8353. this.production = t1;
  8354. this.T = t2;
  8355. },
  8356. StylesheetParser_parseSignature_closure: function StylesheetParser_parseSignature_closure(t0) {
  8357. this.$this = t0;
  8358. },
  8359. StylesheetParser__statement_closure0: function StylesheetParser__statement_closure0(t0) {
  8360. this.$this = t0;
  8361. },
  8362. StylesheetParser_variableDeclarationWithoutNamespace_closure1: function StylesheetParser_variableDeclarationWithoutNamespace_closure1(t0, t1) {
  8363. this._box_0 = t0;
  8364. this.$this = t1;
  8365. },
  8366. StylesheetParser_variableDeclarationWithoutNamespace_closure2: function StylesheetParser_variableDeclarationWithoutNamespace_closure2(t0) {
  8367. this.declaration = t0;
  8368. },
  8369. StylesheetParser__declarationOrBuffer_closure1: function StylesheetParser__declarationOrBuffer_closure1(t0) {
  8370. this.name = t0;
  8371. },
  8372. StylesheetParser__declarationOrBuffer_closure2: function StylesheetParser__declarationOrBuffer_closure2(t0, t1) {
  8373. this._box_0 = t0;
  8374. this.name = t1;
  8375. },
  8376. StylesheetParser__styleRule_closure0: function StylesheetParser__styleRule_closure0(t0, t1, t2) {
  8377. this._box_0 = t0;
  8378. this.$this = t1;
  8379. this.wasInStyleRule = t2;
  8380. },
  8381. StylesheetParser__propertyOrVariableDeclaration_closure1: function StylesheetParser__propertyOrVariableDeclaration_closure1(t0) {
  8382. this._box_0 = t0;
  8383. },
  8384. StylesheetParser__propertyOrVariableDeclaration_closure2: function StylesheetParser__propertyOrVariableDeclaration_closure2(t0, t1) {
  8385. this._box_0 = t0;
  8386. this.value = t1;
  8387. },
  8388. StylesheetParser__atRootRule_closure1: function StylesheetParser__atRootRule_closure1(t0) {
  8389. this.query = t0;
  8390. },
  8391. StylesheetParser__atRootRule_closure2: function StylesheetParser__atRootRule_closure2() {
  8392. },
  8393. StylesheetParser__eachRule_closure0: function StylesheetParser__eachRule_closure0(t0, t1, t2, t3) {
  8394. var _ = this;
  8395. _.$this = t0;
  8396. _.wasInControlDirective = t1;
  8397. _.variables = t2;
  8398. _.list = t3;
  8399. },
  8400. StylesheetParser__functionRule_closure0: function StylesheetParser__functionRule_closure0(t0, t1, t2) {
  8401. this.name = t0;
  8402. this.$arguments = t1;
  8403. this.precedingComment = t2;
  8404. },
  8405. StylesheetParser__forRule_closure1: function StylesheetParser__forRule_closure1(t0, t1) {
  8406. this._box_0 = t0;
  8407. this.$this = t1;
  8408. },
  8409. StylesheetParser__forRule_closure2: function StylesheetParser__forRule_closure2(t0, t1, t2, t3, t4, t5) {
  8410. var _ = this;
  8411. _._box_0 = t0;
  8412. _.$this = t1;
  8413. _.wasInControlDirective = t2;
  8414. _.variable = t3;
  8415. _.from = t4;
  8416. _.to = t5;
  8417. },
  8418. StylesheetParser__memberList_closure0: function StylesheetParser__memberList_closure0(t0, t1, t2) {
  8419. this.$this = t0;
  8420. this.variables = t1;
  8421. this.identifiers = t2;
  8422. },
  8423. StylesheetParser__includeRule_closure0: function StylesheetParser__includeRule_closure0(t0) {
  8424. this._box_0 = t0;
  8425. },
  8426. StylesheetParser_mediaRule_closure0: function StylesheetParser_mediaRule_closure0(t0) {
  8427. this.query = t0;
  8428. },
  8429. StylesheetParser__mixinRule_closure0: function StylesheetParser__mixinRule_closure0(t0, t1, t2, t3) {
  8430. var _ = this;
  8431. _.$this = t0;
  8432. _.name = t1;
  8433. _.$arguments = t2;
  8434. _.precedingComment = t3;
  8435. },
  8436. StylesheetParser_mozDocumentRule_closure0: function StylesheetParser_mozDocumentRule_closure0(t0, t1, t2, t3) {
  8437. var _ = this;
  8438. _._box_0 = t0;
  8439. _.$this = t1;
  8440. _.name = t2;
  8441. _.value = t3;
  8442. },
  8443. StylesheetParser_supportsRule_closure0: function StylesheetParser_supportsRule_closure0(t0) {
  8444. this.condition = t0;
  8445. },
  8446. StylesheetParser__whileRule_closure0: function StylesheetParser__whileRule_closure0(t0, t1, t2) {
  8447. this.$this = t0;
  8448. this.wasInControlDirective = t1;
  8449. this.condition = t2;
  8450. },
  8451. StylesheetParser_unknownAtRule_closure0: function StylesheetParser_unknownAtRule_closure0(t0, t1) {
  8452. this._box_0 = t0;
  8453. this.name = t1;
  8454. },
  8455. StylesheetParser_expression_resetState0: function StylesheetParser_expression_resetState0(t0, t1, t2) {
  8456. this._box_0 = t0;
  8457. this.$this = t1;
  8458. this.start = t2;
  8459. },
  8460. StylesheetParser_expression_resolveOneOperation0: function StylesheetParser_expression_resolveOneOperation0(t0, t1) {
  8461. this._box_0 = t0;
  8462. this.$this = t1;
  8463. },
  8464. StylesheetParser_expression_resolveOperations0: function StylesheetParser_expression_resolveOperations0(t0, t1) {
  8465. this._box_0 = t0;
  8466. this.resolveOneOperation = t1;
  8467. },
  8468. StylesheetParser_expression_addSingleExpression0: function StylesheetParser_expression_addSingleExpression0(t0, t1, t2, t3) {
  8469. var _ = this;
  8470. _._box_0 = t0;
  8471. _.$this = t1;
  8472. _.resetState = t2;
  8473. _.resolveOperations = t3;
  8474. },
  8475. StylesheetParser_expression_addOperator0: function StylesheetParser_expression_addOperator0(t0, t1, t2) {
  8476. this._box_0 = t0;
  8477. this.$this = t1;
  8478. this.resolveOneOperation = t2;
  8479. },
  8480. StylesheetParser_expression_resolveSpaceExpressions0: function StylesheetParser_expression_resolveSpaceExpressions0(t0, t1) {
  8481. this._box_0 = t0;
  8482. this.resolveOperations = t1;
  8483. },
  8484. StylesheetParser__expressionUntilComma_closure0: function StylesheetParser__expressionUntilComma_closure0(t0) {
  8485. this.$this = t0;
  8486. },
  8487. StylesheetParser__unicodeRange_closure1: function StylesheetParser__unicodeRange_closure1() {
  8488. },
  8489. StylesheetParser__unicodeRange_closure2: function StylesheetParser__unicodeRange_closure2() {
  8490. },
  8491. StylesheetParser_identifierLike_closure0: function StylesheetParser_identifierLike_closure0(t0, t1) {
  8492. this.$this = t0;
  8493. this.start = t1;
  8494. },
  8495. StylesheetParser__expressionUntilComparison_closure0: function StylesheetParser__expressionUntilComparison_closure0(t0) {
  8496. this.$this = t0;
  8497. },
  8498. StylesheetParser__publicIdentifier_closure0: function StylesheetParser__publicIdentifier_closure0(t0, t1) {
  8499. this.$this = t0;
  8500. this.start = t1;
  8501. },
  8502. Stylesheet$0: function(children, span, plainCss) {
  8503. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_UseRule_2),
  8504. t2 = H.setRuntimeTypeInfo([], type$.JSArray_ForwardRule_2),
  8505. t3 = P.List_List$unmodifiable(children, type$.Statement_2),
  8506. t4 = C.JSArray_methods.any$1(t3, new M.ParentStatement_closure0());
  8507. t1 = new V.Stylesheet0(span, plainCss, t1, t2, t3, t4);
  8508. t1.Stylesheet$3$plainCss0(children, span, plainCss);
  8509. return t1;
  8510. },
  8511. Stylesheet_Stylesheet$parse0: function(contents, syntax, logger, url) {
  8512. var t1, t2;
  8513. switch (syntax) {
  8514. case C.Syntax_Sass0:
  8515. t1 = S.SpanScanner$(contents, url);
  8516. t2 = logger == null ? C.C_StderrLogger : logger;
  8517. return new U.SassParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, t2).parse$0();
  8518. case C.Syntax_SCSS0:
  8519. t1 = S.SpanScanner$(contents, url);
  8520. t2 = logger == null ? C.C_StderrLogger : logger;
  8521. return new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, t2).parse$0();
  8522. case C.Syntax_CSS0:
  8523. t1 = S.SpanScanner$(contents, url);
  8524. t2 = logger == null ? C.C_StderrLogger : logger;
  8525. return new Q.CssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, t2).parse$0();
  8526. default:
  8527. throw H.wrapException(P.ArgumentError$("Unknown syntax " + syntax.toString$0(0) + "."));
  8528. }
  8529. },
  8530. Stylesheet0: function Stylesheet0(t0, t1, t2, t3, t4, t5) {
  8531. var _ = this;
  8532. _.span = t0;
  8533. _.plainCss = t1;
  8534. _._stylesheet1$_uses = t2;
  8535. _._stylesheet1$_forwards = t3;
  8536. _.children = t4;
  8537. _.hasDeclarations = t5;
  8538. }
  8539. },
  8540. G = {Option: function Option(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11) {
  8541. var _ = this;
  8542. _.name = t0;
  8543. _.abbr = t1;
  8544. _.help = t2;
  8545. _.valueHelp = t3;
  8546. _.allowed = t4;
  8547. _.allowedHelp = t5;
  8548. _.defaultsTo = t6;
  8549. _.negatable = t7;
  8550. _.callback = t8;
  8551. _.type = t9;
  8552. _.splitCommas = t10;
  8553. _.hide = t11;
  8554. }, OptionType: function OptionType(t0) {
  8555. this.name = t0;
  8556. },
  8557. Parser$0: function(commandName, grammar, args, $parent, rest) {
  8558. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_String);
  8559. if (rest != null)
  8560. C.JSArray_methods.addAll$1(t1, rest);
  8561. return new G.Parser0(commandName, $parent, grammar, args, t1, P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.dynamic));
  8562. },
  8563. _isLetterOrDigit: function(codeUnit) {
  8564. var t1;
  8565. if (!(codeUnit >= 65 && codeUnit <= 90))
  8566. if (!(codeUnit >= 97 && codeUnit <= 122))
  8567. t1 = codeUnit >= 48 && codeUnit <= 57;
  8568. else
  8569. t1 = true;
  8570. else
  8571. t1 = true;
  8572. return t1;
  8573. },
  8574. Parser0: function Parser0(t0, t1, t2, t3, t4, t5) {
  8575. var _ = this;
  8576. _.commandName = t0;
  8577. _.parent = t1;
  8578. _.grammar = t2;
  8579. _.args = t3;
  8580. _.rest = t4;
  8581. _.results = t5;
  8582. },
  8583. Parser_parse_closure: function Parser_parse_closure(t0) {
  8584. this.$this = t0;
  8585. },
  8586. Parser_setOption_closure: function Parser_setOption_closure() {
  8587. },
  8588. Usage: function Usage(t0, t1) {
  8589. var _ = this;
  8590. _.optionsAndSeparators = t0;
  8591. _.buffer = null;
  8592. _.currentColumn = 0;
  8593. _.columnWidths = null;
  8594. _.newlinesNeeded = _.numHelpLines = 0;
  8595. _.lineLength = t1;
  8596. },
  8597. Usage_generate_closure: function Usage_generate_closure() {
  8598. },
  8599. Usage_buildAllowedList_closure: function Usage_buildAllowedList_closure(t0) {
  8600. this.option = t0;
  8601. },
  8602. StreamQueue: function StreamQueue(t0, t1, t2, t3) {
  8603. var _ = this;
  8604. _._stream_queue$_source = t0;
  8605. _._stream_queue$_subscription = null;
  8606. _._isDone = false;
  8607. _._eventsReceived = 0;
  8608. _._eventQueue = t1;
  8609. _._requestQueue = t2;
  8610. _.$ti = t3;
  8611. },
  8612. StreamQueue__ensureListening_closure: function StreamQueue__ensureListening_closure(t0) {
  8613. this.$this = t0;
  8614. },
  8615. StreamQueue__ensureListening_closure1: function StreamQueue__ensureListening_closure1(t0) {
  8616. this.$this = t0;
  8617. },
  8618. StreamQueue__ensureListening_closure0: function StreamQueue__ensureListening_closure0(t0) {
  8619. this.$this = t0;
  8620. },
  8621. _EventRequest: function _EventRequest() {
  8622. },
  8623. _NextRequest: function _NextRequest(t0, t1) {
  8624. this._completer = t0;
  8625. this.$ti = t1;
  8626. },
  8627. ModifiableCssMediaRule$: function(queries, span) {
  8628. var t1 = P.List_List$unmodifiable(queries, type$.CssMediaQuery),
  8629. t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
  8630. if (J.get$isEmpty$asx(queries))
  8631. H.throwExpression(P.ArgumentError$value(queries, "queries", "may not be empty."));
  8632. return new G.ModifiableCssMediaRule(t1, span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode), t2);
  8633. },
  8634. ModifiableCssMediaRule: function ModifiableCssMediaRule(t0, t1, t2, t3) {
  8635. var _ = this;
  8636. _.queries = t0;
  8637. _.span = t1;
  8638. _.children = t2;
  8639. _._children = t3;
  8640. _._indexInParent = _._parent = null;
  8641. _.isGroupEnd = false;
  8642. },
  8643. MediaRule: function MediaRule(t0, t1, t2, t3) {
  8644. var _ = this;
  8645. _.query = t0;
  8646. _.span = t1;
  8647. _.children = t2;
  8648. _.hasDeclarations = t3;
  8649. },
  8650. WhileRule: function WhileRule(t0, t1, t2, t3) {
  8651. var _ = this;
  8652. _.condition = t0;
  8653. _.span = t1;
  8654. _.children = t2;
  8655. _.hasDeclarations = t3;
  8656. },
  8657. Module: function Module() {
  8658. },
  8659. Parser_isIdentifier: function(text) {
  8660. var exception, logger = null;
  8661. try {
  8662. G.Parser$(text, logger, null)._parseIdentifier$0();
  8663. return true;
  8664. } catch (exception) {
  8665. if (H.unwrapException(exception) instanceof E.SassFormatException)
  8666. return false;
  8667. else
  8668. throw exception;
  8669. }
  8670. },
  8671. Parser$: function(contents, logger, url) {
  8672. var t1 = S.SpanScanner$(contents, url);
  8673. return new G.Parser(t1, logger == null ? C.StderrLogger_false : logger);
  8674. },
  8675. Parser: function Parser(t0, t1) {
  8676. this.scanner = t0;
  8677. this.logger = t1;
  8678. },
  8679. Parser__parseIdentifier_closure: function Parser__parseIdentifier_closure(t0) {
  8680. this.$this = t0;
  8681. },
  8682. Parser_scanIdentChar_matches: function Parser_scanIdentChar_matches(t0, t1) {
  8683. this.caseSensitive = t0;
  8684. this.char = t1;
  8685. },
  8686. FixedLengthListBuilder: function FixedLengthListBuilder(t0, t1) {
  8687. this._list = t0;
  8688. this._fixed_length_list_builder$_index = 0;
  8689. this.$ti = t1;
  8690. },
  8691. SourceSpanFormatException$: function(message, span, source) {
  8692. return new G.SourceSpanFormatException(source, message, span);
  8693. },
  8694. SourceSpanException: function SourceSpanException() {
  8695. },
  8696. SourceSpanFormatException: function SourceSpanFormatException(t0, t1, t2) {
  8697. this.source = t0;
  8698. this._span_exception$_message = t1;
  8699. this._span = t2;
  8700. },
  8701. FixedLengthListBuilder0: function FixedLengthListBuilder0(t0, t1) {
  8702. this._fixed_length_list_builder0$_list = t0;
  8703. this._fixed_length_list_builder0$_index = 0;
  8704. this.$ti = t1;
  8705. },
  8706. ModifiableCssMediaRule$0: function(queries, span) {
  8707. var t1 = P.List_List$unmodifiable(queries, type$.CssMediaQuery_2),
  8708. t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
  8709. if (J.get$isEmpty$asx(queries))
  8710. H.throwExpression(P.ArgumentError$value(queries, "queries", "may not be empty."));
  8711. return new G.ModifiableCssMediaRule0(t1, span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode_2), t2);
  8712. },
  8713. ModifiableCssMediaRule0: function ModifiableCssMediaRule0(t0, t1, t2, t3) {
  8714. var _ = this;
  8715. _.queries = t0;
  8716. _.span = t1;
  8717. _.children = t2;
  8718. _._node2$_children = t3;
  8719. _._node2$_indexInParent = _._node2$_parent = null;
  8720. _.isGroupEnd = false;
  8721. },
  8722. MediaRule0: function MediaRule0(t0, t1, t2, t3) {
  8723. var _ = this;
  8724. _.query = t0;
  8725. _.span = t1;
  8726. _.children = t2;
  8727. _.hasDeclarations = t3;
  8728. },
  8729. Module0: function Module0() {
  8730. },
  8731. Parser_isIdentifier0: function(text) {
  8732. var exception, logger = null;
  8733. try {
  8734. G.Parser$1(text, logger, null)._parser$_parseIdentifier$0();
  8735. return true;
  8736. } catch (exception) {
  8737. if (H.unwrapException(exception) instanceof E.SassFormatException0)
  8738. return false;
  8739. else
  8740. throw exception;
  8741. }
  8742. },
  8743. Parser$1: function(contents, logger, url) {
  8744. var t1 = S.SpanScanner$(contents, url);
  8745. return new G.Parser1(t1, logger == null ? C.C_StderrLogger : logger);
  8746. },
  8747. Parser1: function Parser1(t0, t1) {
  8748. this.scanner = t0;
  8749. this.logger = t1;
  8750. },
  8751. Parser__parseIdentifier_closure0: function Parser__parseIdentifier_closure0(t0) {
  8752. this.$this = t0;
  8753. },
  8754. Parser_scanIdentChar_matches0: function Parser_scanIdentChar_matches0(t0, t1) {
  8755. this.caseSensitive = t0;
  8756. this.char = t1;
  8757. },
  8758. Types: function Types() {
  8759. },
  8760. WhileRule0: function WhileRule0(t0, t1, t2, t3) {
  8761. var _ = this;
  8762. _.condition = t0;
  8763. _.span = t1;
  8764. _.children = t2;
  8765. _.hasDeclarations = t3;
  8766. }
  8767. },
  8768. E = {Result: function Result() {
  8769. }, PosixStyle: function PosixStyle(t0, t1, t2) {
  8770. this.separatorPattern = t0;
  8771. this.needsSeparatorPattern = t1;
  8772. this.rootPattern = t2;
  8773. }, UserDefinedCallable: function UserDefinedCallable(t0, t1, t2) {
  8774. this.declaration = t0;
  8775. this.environment = t1;
  8776. this.$ti = t2;
  8777. },
  8778. SassException$: function(message, span) {
  8779. return new E.SassException(message, span);
  8780. },
  8781. MultiSpanSassException$: function(message, span, primaryLabel, secondarySpans) {
  8782. return new E.MultiSpanSassException(primaryLabel, H.ConstantMap_ConstantMap$from(secondarySpans, type$.FileSpan, type$.String), message, span);
  8783. },
  8784. SassRuntimeException$: function(message, span, trace) {
  8785. return new E.SassRuntimeException(trace, message, span);
  8786. },
  8787. MultiSpanSassRuntimeException$: function(message, span, primaryLabel, secondarySpans, trace) {
  8788. return new E.MultiSpanSassRuntimeException(trace, primaryLabel, H.ConstantMap_ConstantMap$from(secondarySpans, type$.FileSpan, type$.String), message, span);
  8789. },
  8790. SassFormatException$: function(message, span) {
  8791. return new E.SassFormatException(message, span);
  8792. },
  8793. SassScriptException$: function(message) {
  8794. return new E.SassScriptException(message);
  8795. },
  8796. MultiSpanSassScriptException$: function(message, primaryLabel, secondarySpans) {
  8797. return new E.MultiSpanSassScriptException(primaryLabel, H.ConstantMap_ConstantMap$from(secondarySpans, type$.FileSpan, type$.String), message);
  8798. },
  8799. SassException: function SassException(t0, t1) {
  8800. this._span_exception$_message = t0;
  8801. this._span = t1;
  8802. },
  8803. MultiSpanSassException: function MultiSpanSassException(t0, t1, t2, t3) {
  8804. var _ = this;
  8805. _.primaryLabel = t0;
  8806. _.secondarySpans = t1;
  8807. _._span_exception$_message = t2;
  8808. _._span = t3;
  8809. },
  8810. SassRuntimeException: function SassRuntimeException(t0, t1, t2) {
  8811. this.trace = t0;
  8812. this._span_exception$_message = t1;
  8813. this._span = t2;
  8814. },
  8815. MultiSpanSassRuntimeException: function MultiSpanSassRuntimeException(t0, t1, t2, t3, t4) {
  8816. var _ = this;
  8817. _.trace = t0;
  8818. _.primaryLabel = t1;
  8819. _.secondarySpans = t2;
  8820. _._span_exception$_message = t3;
  8821. _._span = t4;
  8822. },
  8823. SassFormatException: function SassFormatException(t0, t1) {
  8824. this._span_exception$_message = t0;
  8825. this._span = t1;
  8826. },
  8827. SassScriptException: function SassScriptException(t0) {
  8828. this.message = t0;
  8829. },
  8830. MultiSpanSassScriptException: function MultiSpanSassScriptException(t0, t1, t2) {
  8831. this.primaryLabel = t0;
  8832. this.secondarySpans = t1;
  8833. this.message = t2;
  8834. },
  8835. ImporterResult: function ImporterResult(t0, t1, t2) {
  8836. this.contents = t0;
  8837. this._sourceMapUrl = t1;
  8838. this.syntax = t2;
  8839. },
  8840. KeyframeSelectorParser: function KeyframeSelectorParser(t0, t1) {
  8841. this.scanner = t0;
  8842. this.logger = t1;
  8843. },
  8844. KeyframeSelectorParser_parse_closure: function KeyframeSelectorParser_parse_closure(t0) {
  8845. this.$this = t0;
  8846. },
  8847. _EvaluateVisitor$0: function(functions, importCache, logger, nodeImporter, sourceMap) {
  8848. var t1 = type$.String,
  8849. t2 = type$.Uri,
  8850. t3 = type$.Module_AsyncCallable,
  8851. t4 = type$.AstNode,
  8852. t5 = H.setRuntimeTypeInfo([], type$.JSArray_Tuple2_String_AstNode),
  8853. t6 = logger == null ? C.StderrLogger_false : logger;
  8854. t5 = new E._EvaluateVisitor0(importCache, nodeImporter, P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.AsyncCallable), P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), P.LinkedHashMap_LinkedHashMap$_empty(t2, t4), t6, sourceMap, Q.AsyncEnvironment$(sourceMap), P.LinkedHashSet_LinkedHashSet$_empty(t1), P.LinkedHashMap_LinkedHashMap$_empty(t2, t4), t5, C.Configuration_Map_empty_null_true);
  8855. t5._EvaluateVisitor$5$functions$importCache$logger$nodeImporter$sourceMap0(functions, importCache, logger, nodeImporter, sourceMap);
  8856. return t5;
  8857. },
  8858. _ArgumentResults$0: function(positional, named, separator, namedNodes, positionalNodes) {
  8859. return new E._ArgumentResults0(positional, positionalNodes, named, namedNodes, separator);
  8860. },
  8861. _EvaluateVisitor0: function _EvaluateVisitor0(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12) {
  8862. var _ = this;
  8863. _._async_evaluate$_importCache = t0;
  8864. _._async_evaluate$_nodeImporter = t1;
  8865. _._async_evaluate$_builtInFunctions = t2;
  8866. _._async_evaluate$_builtInModules = t3;
  8867. _._async_evaluate$_modules = t4;
  8868. _._async_evaluate$_moduleNodes = t5;
  8869. _._async_evaluate$_logger = t6;
  8870. _._async_evaluate$_sourceMap = t7;
  8871. _._async_evaluate$_environment = t8;
  8872. _._async_evaluate$_declarationName = _._async_evaluate$_parent = _._async_evaluate$_mediaQueries = _._async_evaluate$_styleRule = null;
  8873. _._async_evaluate$_member = "root stylesheet";
  8874. _._async_evaluate$_importSpan = _._async_evaluate$_callableNode = null;
  8875. _._async_evaluate$_inKeyframes = _._async_evaluate$_atRootExcludingStyleRule = _._async_evaluate$_inUnknownAtRule = _._async_evaluate$_inFunction = false;
  8876. _._async_evaluate$_includedFiles = t9;
  8877. _._async_evaluate$_activeModules = t10;
  8878. _._async_evaluate$_stack = t11;
  8879. _._async_evaluate$_extender = _._async_evaluate$_outOfOrderImports = _._async_evaluate$_endOfImports = _._async_evaluate$_root = _._async_evaluate$_stylesheet = _._async_evaluate$_importer = null;
  8880. _._async_evaluate$_configuration = t12;
  8881. },
  8882. _EvaluateVisitor_closure9: function _EvaluateVisitor_closure9(t0) {
  8883. this.$this = t0;
  8884. },
  8885. _EvaluateVisitor_closure10: function _EvaluateVisitor_closure10(t0) {
  8886. this.$this = t0;
  8887. },
  8888. _EvaluateVisitor_closure11: function _EvaluateVisitor_closure11(t0) {
  8889. this.$this = t0;
  8890. },
  8891. _EvaluateVisitor_closure12: function _EvaluateVisitor_closure12(t0) {
  8892. this.$this = t0;
  8893. },
  8894. _EvaluateVisitor_closure13: function _EvaluateVisitor_closure13(t0) {
  8895. this.$this = t0;
  8896. },
  8897. _EvaluateVisitor_closure14: function _EvaluateVisitor_closure14(t0) {
  8898. this.$this = t0;
  8899. },
  8900. _EvaluateVisitor_closure15: function _EvaluateVisitor_closure15(t0) {
  8901. this.$this = t0;
  8902. },
  8903. _EvaluateVisitor_closure16: function _EvaluateVisitor_closure16(t0) {
  8904. this.$this = t0;
  8905. },
  8906. _EvaluateVisitor__closure8: function _EvaluateVisitor__closure8(t0, t1, t2) {
  8907. this.$this = t0;
  8908. this.name = t1;
  8909. this.module = t2;
  8910. },
  8911. _EvaluateVisitor_closure17: function _EvaluateVisitor_closure17(t0) {
  8912. this.$this = t0;
  8913. },
  8914. _EvaluateVisitor__closure6: function _EvaluateVisitor__closure6() {
  8915. },
  8916. _EvaluateVisitor__closure7: function _EvaluateVisitor__closure7() {
  8917. },
  8918. _EvaluateVisitor_closure18: function _EvaluateVisitor_closure18(t0) {
  8919. this.$this = t0;
  8920. },
  8921. _EvaluateVisitor__closure4: function _EvaluateVisitor__closure4(t0, t1) {
  8922. this.values = t0;
  8923. this.span = t1;
  8924. },
  8925. _EvaluateVisitor__closure5: function _EvaluateVisitor__closure5(t0) {
  8926. this.$this = t0;
  8927. },
  8928. _EvaluateVisitor_run_closure0: function _EvaluateVisitor_run_closure0(t0, t1, t2) {
  8929. this.$this = t0;
  8930. this.node = t1;
  8931. this.importer = t2;
  8932. },
  8933. _EvaluateVisitor__withWarnCallback_closure0: function _EvaluateVisitor__withWarnCallback_closure0(t0) {
  8934. this.$this = t0;
  8935. },
  8936. _EvaluateVisitor__loadModule_closure0: function _EvaluateVisitor__loadModule_closure0(t0, t1, t2, t3, t4, t5, t6) {
  8937. var _ = this;
  8938. _.$this = t0;
  8939. _.url = t1;
  8940. _.nodeWithSpan = t2;
  8941. _.baseUrl = t3;
  8942. _.namesInErrors = t4;
  8943. _.configuration = t5;
  8944. _.callback = t6;
  8945. },
  8946. _EvaluateVisitor__execute_closure0: function _EvaluateVisitor__execute_closure0(t0, t1, t2, t3, t4, t5) {
  8947. var _ = this;
  8948. _._box_0 = t0;
  8949. _.$this = t1;
  8950. _.importer = t2;
  8951. _.stylesheet = t3;
  8952. _.extender = t4;
  8953. _.configuration = t5;
  8954. },
  8955. _EvaluateVisitor__combineCss_closure2: function _EvaluateVisitor__combineCss_closure2() {
  8956. },
  8957. _EvaluateVisitor__combineCss_closure3: function _EvaluateVisitor__combineCss_closure3(t0) {
  8958. this.selectors = t0;
  8959. },
  8960. _EvaluateVisitor__combineCss_closure4: function _EvaluateVisitor__combineCss_closure4() {
  8961. },
  8962. _EvaluateVisitor__extendModules_closure1: function _EvaluateVisitor__extendModules_closure1(t0) {
  8963. this.originalSelectors = t0;
  8964. },
  8965. _EvaluateVisitor__extendModules_closure2: function _EvaluateVisitor__extendModules_closure2() {
  8966. },
  8967. _EvaluateVisitor__topologicalModules_visitModule0: function _EvaluateVisitor__topologicalModules_visitModule0(t0, t1) {
  8968. this.seen = t0;
  8969. this.sorted = t1;
  8970. },
  8971. _EvaluateVisitor_visitAtRootRule_closure2: function _EvaluateVisitor_visitAtRootRule_closure2(t0, t1) {
  8972. this.$this = t0;
  8973. this.resolved = t1;
  8974. },
  8975. _EvaluateVisitor_visitAtRootRule_closure3: function _EvaluateVisitor_visitAtRootRule_closure3(t0, t1) {
  8976. this.$this = t0;
  8977. this.node = t1;
  8978. },
  8979. _EvaluateVisitor_visitAtRootRule_closure4: function _EvaluateVisitor_visitAtRootRule_closure4(t0, t1) {
  8980. this.$this = t0;
  8981. this.node = t1;
  8982. },
  8983. _EvaluateVisitor__scopeForAtRoot_closure5: function _EvaluateVisitor__scopeForAtRoot_closure5(t0, t1, t2) {
  8984. this.$this = t0;
  8985. this.newParent = t1;
  8986. this.node = t2;
  8987. },
  8988. _EvaluateVisitor__scopeForAtRoot_closure6: function _EvaluateVisitor__scopeForAtRoot_closure6(t0, t1) {
  8989. this.$this = t0;
  8990. this.innerScope = t1;
  8991. },
  8992. _EvaluateVisitor__scopeForAtRoot_closure7: function _EvaluateVisitor__scopeForAtRoot_closure7(t0, t1) {
  8993. this.$this = t0;
  8994. this.innerScope = t1;
  8995. },
  8996. _EvaluateVisitor__scopeForAtRoot__closure0: function _EvaluateVisitor__scopeForAtRoot__closure0(t0, t1) {
  8997. this.innerScope = t0;
  8998. this.callback = t1;
  8999. },
  9000. _EvaluateVisitor__scopeForAtRoot_closure8: function _EvaluateVisitor__scopeForAtRoot_closure8(t0, t1) {
  9001. this.$this = t0;
  9002. this.innerScope = t1;
  9003. },
  9004. _EvaluateVisitor__scopeForAtRoot_closure9: function _EvaluateVisitor__scopeForAtRoot_closure9() {
  9005. },
  9006. _EvaluateVisitor__scopeForAtRoot_closure10: function _EvaluateVisitor__scopeForAtRoot_closure10(t0, t1) {
  9007. this.$this = t0;
  9008. this.innerScope = t1;
  9009. },
  9010. _EvaluateVisitor_visitContentRule_closure0: function _EvaluateVisitor_visitContentRule_closure0(t0, t1) {
  9011. this.$this = t0;
  9012. this.content = t1;
  9013. },
  9014. _EvaluateVisitor_visitDeclaration_closure0: function _EvaluateVisitor_visitDeclaration_closure0(t0, t1) {
  9015. this.$this = t0;
  9016. this.node = t1;
  9017. },
  9018. _EvaluateVisitor_visitEachRule_closure2: function _EvaluateVisitor_visitEachRule_closure2(t0, t1, t2) {
  9019. this.$this = t0;
  9020. this.node = t1;
  9021. this.nodeWithSpan = t2;
  9022. },
  9023. _EvaluateVisitor_visitEachRule_closure3: function _EvaluateVisitor_visitEachRule_closure3(t0, t1, t2) {
  9024. this.$this = t0;
  9025. this.node = t1;
  9026. this.nodeWithSpan = t2;
  9027. },
  9028. _EvaluateVisitor_visitEachRule_closure4: function _EvaluateVisitor_visitEachRule_closure4(t0, t1, t2, t3) {
  9029. var _ = this;
  9030. _.$this = t0;
  9031. _.list = t1;
  9032. _.setVariables = t2;
  9033. _.node = t3;
  9034. },
  9035. _EvaluateVisitor_visitEachRule__closure0: function _EvaluateVisitor_visitEachRule__closure0(t0, t1, t2) {
  9036. this.$this = t0;
  9037. this.setVariables = t1;
  9038. this.node = t2;
  9039. },
  9040. _EvaluateVisitor_visitEachRule___closure0: function _EvaluateVisitor_visitEachRule___closure0(t0) {
  9041. this.$this = t0;
  9042. },
  9043. _EvaluateVisitor_visitExtendRule_closure0: function _EvaluateVisitor_visitExtendRule_closure0(t0, t1) {
  9044. this.$this = t0;
  9045. this.targetText = t1;
  9046. },
  9047. _EvaluateVisitor_visitAtRule_closure1: function _EvaluateVisitor_visitAtRule_closure1(t0, t1) {
  9048. this.$this = t0;
  9049. this.node = t1;
  9050. },
  9051. _EvaluateVisitor_visitAtRule__closure0: function _EvaluateVisitor_visitAtRule__closure0(t0, t1) {
  9052. this.$this = t0;
  9053. this.node = t1;
  9054. },
  9055. _EvaluateVisitor_visitAtRule_closure2: function _EvaluateVisitor_visitAtRule_closure2() {
  9056. },
  9057. _EvaluateVisitor_visitForRule_closure4: function _EvaluateVisitor_visitForRule_closure4(t0, t1) {
  9058. this.$this = t0;
  9059. this.node = t1;
  9060. },
  9061. _EvaluateVisitor_visitForRule_closure5: function _EvaluateVisitor_visitForRule_closure5(t0, t1) {
  9062. this.$this = t0;
  9063. this.node = t1;
  9064. },
  9065. _EvaluateVisitor_visitForRule_closure6: function _EvaluateVisitor_visitForRule_closure6(t0, t1) {
  9066. this.fromNumber = t0;
  9067. this.toNumber = t1;
  9068. },
  9069. _EvaluateVisitor_visitForRule_closure7: function _EvaluateVisitor_visitForRule_closure7(t0) {
  9070. this.toNumber = t0;
  9071. },
  9072. _EvaluateVisitor_visitForRule_closure8: function _EvaluateVisitor_visitForRule_closure8(t0, t1, t2, t3, t4) {
  9073. var _ = this;
  9074. _._box_0 = t0;
  9075. _.$this = t1;
  9076. _.node = t2;
  9077. _.from = t3;
  9078. _.direction = t4;
  9079. },
  9080. _EvaluateVisitor_visitForRule__closure0: function _EvaluateVisitor_visitForRule__closure0(t0) {
  9081. this.$this = t0;
  9082. },
  9083. _EvaluateVisitor_visitForwardRule_closure1: function _EvaluateVisitor_visitForwardRule_closure1(t0, t1) {
  9084. this.$this = t0;
  9085. this.node = t1;
  9086. },
  9087. _EvaluateVisitor_visitForwardRule_closure2: function _EvaluateVisitor_visitForwardRule_closure2(t0, t1) {
  9088. this.$this = t0;
  9089. this.node = t1;
  9090. },
  9091. _EvaluateVisitor__assertConfigurationIsEmpty_closure0: function _EvaluateVisitor__assertConfigurationIsEmpty_closure0(t0, t1, t2) {
  9092. this.$this = t0;
  9093. this.only = t1;
  9094. this.nameInError = t2;
  9095. },
  9096. _EvaluateVisitor_visitIfRule_closure0: function _EvaluateVisitor_visitIfRule_closure0(t0, t1) {
  9097. this._box_0 = t0;
  9098. this.$this = t1;
  9099. },
  9100. _EvaluateVisitor_visitIfRule__closure0: function _EvaluateVisitor_visitIfRule__closure0(t0) {
  9101. this.$this = t0;
  9102. },
  9103. _EvaluateVisitor__visitDynamicImport_closure0: function _EvaluateVisitor__visitDynamicImport_closure0(t0, t1) {
  9104. this.$this = t0;
  9105. this.$import = t1;
  9106. },
  9107. _EvaluateVisitor__visitDynamicImport__closure0: function _EvaluateVisitor__visitDynamicImport__closure0(t0, t1, t2, t3, t4) {
  9108. var _ = this;
  9109. _._box_0 = t0;
  9110. _.$this = t1;
  9111. _.importer = t2;
  9112. _.stylesheet = t3;
  9113. _.environment = t4;
  9114. },
  9115. _EvaluateVisitor_visitIncludeRule_closure2: function _EvaluateVisitor_visitIncludeRule_closure2(t0, t1) {
  9116. this.$this = t0;
  9117. this.node = t1;
  9118. },
  9119. _EvaluateVisitor_visitIncludeRule_closure3: function _EvaluateVisitor_visitIncludeRule_closure3(t0) {
  9120. this.node = t0;
  9121. },
  9122. _EvaluateVisitor_visitIncludeRule_closure4: function _EvaluateVisitor_visitIncludeRule_closure4(t0, t1, t2, t3) {
  9123. var _ = this;
  9124. _.$this = t0;
  9125. _.contentCallable = t1;
  9126. _.mixin = t2;
  9127. _.nodeWithSpan = t3;
  9128. },
  9129. _EvaluateVisitor_visitIncludeRule__closure0: function _EvaluateVisitor_visitIncludeRule__closure0(t0, t1, t2) {
  9130. this.$this = t0;
  9131. this.mixin = t1;
  9132. this.nodeWithSpan = t2;
  9133. },
  9134. _EvaluateVisitor_visitIncludeRule___closure0: function _EvaluateVisitor_visitIncludeRule___closure0(t0, t1, t2) {
  9135. this.$this = t0;
  9136. this.mixin = t1;
  9137. this.nodeWithSpan = t2;
  9138. },
  9139. _EvaluateVisitor_visitIncludeRule____closure0: function _EvaluateVisitor_visitIncludeRule____closure0(t0, t1) {
  9140. this.$this = t0;
  9141. this.statement = t1;
  9142. },
  9143. _EvaluateVisitor_visitMediaRule_closure1: function _EvaluateVisitor_visitMediaRule_closure1(t0, t1, t2, t3) {
  9144. var _ = this;
  9145. _.$this = t0;
  9146. _.mergedQueries = t1;
  9147. _.queries = t2;
  9148. _.node = t3;
  9149. },
  9150. _EvaluateVisitor_visitMediaRule__closure0: function _EvaluateVisitor_visitMediaRule__closure0(t0, t1) {
  9151. this.$this = t0;
  9152. this.node = t1;
  9153. },
  9154. _EvaluateVisitor_visitMediaRule___closure0: function _EvaluateVisitor_visitMediaRule___closure0(t0, t1) {
  9155. this.$this = t0;
  9156. this.node = t1;
  9157. },
  9158. _EvaluateVisitor_visitMediaRule_closure2: function _EvaluateVisitor_visitMediaRule_closure2(t0) {
  9159. this.mergedQueries = t0;
  9160. },
  9161. _EvaluateVisitor__visitMediaQueries_closure0: function _EvaluateVisitor__visitMediaQueries_closure0(t0, t1) {
  9162. this.$this = t0;
  9163. this.resolved = t1;
  9164. },
  9165. _EvaluateVisitor_visitStyleRule_closure6: function _EvaluateVisitor_visitStyleRule_closure6(t0, t1) {
  9166. this.$this = t0;
  9167. this.selectorText = t1;
  9168. },
  9169. _EvaluateVisitor_visitStyleRule_closure7: function _EvaluateVisitor_visitStyleRule_closure7(t0, t1) {
  9170. this.$this = t0;
  9171. this.node = t1;
  9172. },
  9173. _EvaluateVisitor_visitStyleRule_closure8: function _EvaluateVisitor_visitStyleRule_closure8() {
  9174. },
  9175. _EvaluateVisitor_visitStyleRule_closure9: function _EvaluateVisitor_visitStyleRule_closure9(t0, t1) {
  9176. this.$this = t0;
  9177. this.selectorText = t1;
  9178. },
  9179. _EvaluateVisitor_visitStyleRule_closure10: function _EvaluateVisitor_visitStyleRule_closure10(t0, t1) {
  9180. this._box_0 = t0;
  9181. this.$this = t1;
  9182. },
  9183. _EvaluateVisitor_visitStyleRule_closure11: function _EvaluateVisitor_visitStyleRule_closure11(t0, t1, t2) {
  9184. this.$this = t0;
  9185. this.rule = t1;
  9186. this.node = t2;
  9187. },
  9188. _EvaluateVisitor_visitStyleRule__closure0: function _EvaluateVisitor_visitStyleRule__closure0(t0, t1) {
  9189. this.$this = t0;
  9190. this.node = t1;
  9191. },
  9192. _EvaluateVisitor_visitStyleRule_closure12: function _EvaluateVisitor_visitStyleRule_closure12() {
  9193. },
  9194. _EvaluateVisitor_visitSupportsRule_closure1: function _EvaluateVisitor_visitSupportsRule_closure1(t0, t1) {
  9195. this.$this = t0;
  9196. this.node = t1;
  9197. },
  9198. _EvaluateVisitor_visitSupportsRule__closure0: function _EvaluateVisitor_visitSupportsRule__closure0(t0, t1) {
  9199. this.$this = t0;
  9200. this.node = t1;
  9201. },
  9202. _EvaluateVisitor_visitSupportsRule_closure2: function _EvaluateVisitor_visitSupportsRule_closure2() {
  9203. },
  9204. _EvaluateVisitor_visitVariableDeclaration_closure2: function _EvaluateVisitor_visitVariableDeclaration_closure2(t0, t1, t2) {
  9205. this.$this = t0;
  9206. this.node = t1;
  9207. this.override = t2;
  9208. },
  9209. _EvaluateVisitor_visitVariableDeclaration_closure3: function _EvaluateVisitor_visitVariableDeclaration_closure3(t0, t1) {
  9210. this.$this = t0;
  9211. this.node = t1;
  9212. },
  9213. _EvaluateVisitor_visitVariableDeclaration_closure4: function _EvaluateVisitor_visitVariableDeclaration_closure4(t0, t1, t2) {
  9214. this.$this = t0;
  9215. this.node = t1;
  9216. this.value = t2;
  9217. },
  9218. _EvaluateVisitor_visitUseRule_closure0: function _EvaluateVisitor_visitUseRule_closure0(t0, t1) {
  9219. this.$this = t0;
  9220. this.node = t1;
  9221. },
  9222. _EvaluateVisitor_visitWarnRule_closure0: function _EvaluateVisitor_visitWarnRule_closure0(t0, t1) {
  9223. this.$this = t0;
  9224. this.node = t1;
  9225. },
  9226. _EvaluateVisitor_visitWhileRule_closure0: function _EvaluateVisitor_visitWhileRule_closure0(t0, t1) {
  9227. this.$this = t0;
  9228. this.node = t1;
  9229. },
  9230. _EvaluateVisitor_visitWhileRule__closure0: function _EvaluateVisitor_visitWhileRule__closure0(t0) {
  9231. this.$this = t0;
  9232. },
  9233. _EvaluateVisitor_visitBinaryOperationExpression_closure0: function _EvaluateVisitor_visitBinaryOperationExpression_closure0(t0, t1) {
  9234. this.$this = t0;
  9235. this.node = t1;
  9236. },
  9237. _EvaluateVisitor_visitVariableExpression_closure0: function _EvaluateVisitor_visitVariableExpression_closure0(t0, t1) {
  9238. this.$this = t0;
  9239. this.node = t1;
  9240. },
  9241. _EvaluateVisitor_visitListExpression_closure0: function _EvaluateVisitor_visitListExpression_closure0(t0) {
  9242. this.$this = t0;
  9243. },
  9244. _EvaluateVisitor_visitFunctionExpression_closure1: function _EvaluateVisitor_visitFunctionExpression_closure1(t0, t1, t2) {
  9245. this.$this = t0;
  9246. this.node = t1;
  9247. this.plainName = t2;
  9248. },
  9249. _EvaluateVisitor_visitFunctionExpression_closure2: function _EvaluateVisitor_visitFunctionExpression_closure2(t0, t1, t2) {
  9250. this._box_0 = t0;
  9251. this.$this = t1;
  9252. this.node = t2;
  9253. },
  9254. _EvaluateVisitor__runUserDefinedCallable_closure0: function _EvaluateVisitor__runUserDefinedCallable_closure0(t0, t1, t2, t3, t4) {
  9255. var _ = this;
  9256. _.$this = t0;
  9257. _.callable = t1;
  9258. _.evaluated = t2;
  9259. _.nodeWithSpan = t3;
  9260. _.run = t4;
  9261. },
  9262. _EvaluateVisitor__runUserDefinedCallable__closure0: function _EvaluateVisitor__runUserDefinedCallable__closure0(t0, t1, t2, t3, t4) {
  9263. var _ = this;
  9264. _.$this = t0;
  9265. _.evaluated = t1;
  9266. _.callable = t2;
  9267. _.nodeWithSpan = t3;
  9268. _.run = t4;
  9269. },
  9270. _EvaluateVisitor__runUserDefinedCallable___closure0: function _EvaluateVisitor__runUserDefinedCallable___closure0(t0, t1, t2, t3, t4) {
  9271. var _ = this;
  9272. _.$this = t0;
  9273. _.evaluated = t1;
  9274. _.callable = t2;
  9275. _.nodeWithSpan = t3;
  9276. _.run = t4;
  9277. },
  9278. _EvaluateVisitor__runUserDefinedCallable____closure0: function _EvaluateVisitor__runUserDefinedCallable____closure0() {
  9279. },
  9280. _EvaluateVisitor__runFunctionCallable_closure0: function _EvaluateVisitor__runFunctionCallable_closure0(t0, t1) {
  9281. this.$this = t0;
  9282. this.callable = t1;
  9283. },
  9284. _EvaluateVisitor__runBuiltInCallable_closure1: function _EvaluateVisitor__runBuiltInCallable_closure1(t0, t1, t2) {
  9285. this.overload = t0;
  9286. this.evaluated = t1;
  9287. this.namedSet = t2;
  9288. },
  9289. _EvaluateVisitor__runBuiltInCallable_closure2: function _EvaluateVisitor__runBuiltInCallable_closure2() {
  9290. },
  9291. _EvaluateVisitor__evaluateArguments_closure2: function _EvaluateVisitor__evaluateArguments_closure2(t0) {
  9292. this.$this = t0;
  9293. },
  9294. _EvaluateVisitor__evaluateArguments_closure3: function _EvaluateVisitor__evaluateArguments_closure3(t0) {
  9295. this.$this = t0;
  9296. },
  9297. _EvaluateVisitor__evaluateArguments_closure4: function _EvaluateVisitor__evaluateArguments_closure4(t0, t1, t2) {
  9298. this.named = t0;
  9299. this.namedNodes = t1;
  9300. this.restNodeForSpan = t2;
  9301. },
  9302. _EvaluateVisitor__evaluateMacroArguments_closure3: function _EvaluateVisitor__evaluateMacroArguments_closure3() {
  9303. },
  9304. _EvaluateVisitor__evaluateMacroArguments_closure4: function _EvaluateVisitor__evaluateMacroArguments_closure4() {
  9305. },
  9306. _EvaluateVisitor__evaluateMacroArguments_closure5: function _EvaluateVisitor__evaluateMacroArguments_closure5(t0) {
  9307. this.named = t0;
  9308. },
  9309. _EvaluateVisitor__evaluateMacroArguments_closure6: function _EvaluateVisitor__evaluateMacroArguments_closure6() {
  9310. },
  9311. _EvaluateVisitor__addRestMap_closure1: function _EvaluateVisitor__addRestMap_closure1(t0) {
  9312. this.T = t0;
  9313. },
  9314. _EvaluateVisitor__addRestMap_closure2: function _EvaluateVisitor__addRestMap_closure2(t0, t1, t2, t3, t4) {
  9315. var _ = this;
  9316. _._box_0 = t0;
  9317. _.$this = t1;
  9318. _.values = t2;
  9319. _.map = t3;
  9320. _.nodeWithSpan = t4;
  9321. },
  9322. _EvaluateVisitor__verifyArguments_closure0: function _EvaluateVisitor__verifyArguments_closure0(t0, t1, t2) {
  9323. this.$arguments = t0;
  9324. this.positional = t1;
  9325. this.named = t2;
  9326. },
  9327. _EvaluateVisitor_visitStringExpression_closure0: function _EvaluateVisitor_visitStringExpression_closure0(t0) {
  9328. this.$this = t0;
  9329. },
  9330. _EvaluateVisitor_visitCssAtRule_closure1: function _EvaluateVisitor_visitCssAtRule_closure1(t0, t1) {
  9331. this.$this = t0;
  9332. this.node = t1;
  9333. },
  9334. _EvaluateVisitor_visitCssAtRule_closure2: function _EvaluateVisitor_visitCssAtRule_closure2() {
  9335. },
  9336. _EvaluateVisitor_visitCssKeyframeBlock_closure1: function _EvaluateVisitor_visitCssKeyframeBlock_closure1(t0, t1) {
  9337. this.$this = t0;
  9338. this.node = t1;
  9339. },
  9340. _EvaluateVisitor_visitCssKeyframeBlock_closure2: function _EvaluateVisitor_visitCssKeyframeBlock_closure2() {
  9341. },
  9342. _EvaluateVisitor_visitCssMediaRule_closure1: function _EvaluateVisitor_visitCssMediaRule_closure1(t0, t1, t2) {
  9343. this.$this = t0;
  9344. this.mergedQueries = t1;
  9345. this.node = t2;
  9346. },
  9347. _EvaluateVisitor_visitCssMediaRule__closure0: function _EvaluateVisitor_visitCssMediaRule__closure0(t0, t1) {
  9348. this.$this = t0;
  9349. this.node = t1;
  9350. },
  9351. _EvaluateVisitor_visitCssMediaRule___closure0: function _EvaluateVisitor_visitCssMediaRule___closure0(t0, t1) {
  9352. this.$this = t0;
  9353. this.node = t1;
  9354. },
  9355. _EvaluateVisitor_visitCssMediaRule_closure2: function _EvaluateVisitor_visitCssMediaRule_closure2(t0) {
  9356. this.mergedQueries = t0;
  9357. },
  9358. _EvaluateVisitor_visitCssStyleRule_closure1: function _EvaluateVisitor_visitCssStyleRule_closure1(t0, t1, t2) {
  9359. this.$this = t0;
  9360. this.rule = t1;
  9361. this.node = t2;
  9362. },
  9363. _EvaluateVisitor_visitCssStyleRule__closure0: function _EvaluateVisitor_visitCssStyleRule__closure0(t0, t1) {
  9364. this.$this = t0;
  9365. this.node = t1;
  9366. },
  9367. _EvaluateVisitor_visitCssStyleRule_closure2: function _EvaluateVisitor_visitCssStyleRule_closure2() {
  9368. },
  9369. _EvaluateVisitor_visitCssSupportsRule_closure1: function _EvaluateVisitor_visitCssSupportsRule_closure1(t0, t1) {
  9370. this.$this = t0;
  9371. this.node = t1;
  9372. },
  9373. _EvaluateVisitor_visitCssSupportsRule__closure0: function _EvaluateVisitor_visitCssSupportsRule__closure0(t0, t1) {
  9374. this.$this = t0;
  9375. this.node = t1;
  9376. },
  9377. _EvaluateVisitor_visitCssSupportsRule_closure2: function _EvaluateVisitor_visitCssSupportsRule_closure2() {
  9378. },
  9379. _EvaluateVisitor__performInterpolation_closure0: function _EvaluateVisitor__performInterpolation_closure0(t0, t1) {
  9380. this.$this = t0;
  9381. this.warnForColor = t1;
  9382. },
  9383. _EvaluateVisitor__serialize_closure0: function _EvaluateVisitor__serialize_closure0(t0, t1) {
  9384. this.value = t0;
  9385. this.quote = t1;
  9386. },
  9387. _EvaluateVisitor__stackTrace_closure0: function _EvaluateVisitor__stackTrace_closure0(t0) {
  9388. this.$this = t0;
  9389. },
  9390. _ImportedCssVisitor0: function _ImportedCssVisitor0(t0) {
  9391. this._async_evaluate$_visitor = t0;
  9392. },
  9393. _ImportedCssVisitor_visitCssAtRule_closure0: function _ImportedCssVisitor_visitCssAtRule_closure0() {
  9394. },
  9395. _ImportedCssVisitor_visitCssMediaRule_closure0: function _ImportedCssVisitor_visitCssMediaRule_closure0(t0) {
  9396. this.hasBeenMerged = t0;
  9397. },
  9398. _ImportedCssVisitor_visitCssStyleRule_closure0: function _ImportedCssVisitor_visitCssStyleRule_closure0() {
  9399. },
  9400. _ImportedCssVisitor_visitCssSupportsRule_closure0: function _ImportedCssVisitor_visitCssSupportsRule_closure0() {
  9401. },
  9402. EvaluateResult: function EvaluateResult(t0) {
  9403. this.stylesheet = t0;
  9404. },
  9405. _ArgumentResults0: function _ArgumentResults0(t0, t1, t2, t3, t4) {
  9406. var _ = this;
  9407. _.positional = t0;
  9408. _.positionalNodes = t1;
  9409. _.named = t2;
  9410. _.namedNodes = t3;
  9411. _.separator = t4;
  9412. },
  9413. StringScannerException$: function(message, span, source) {
  9414. return new E.StringScannerException(source, message, span);
  9415. },
  9416. StringScannerException: function StringScannerException(t0, t1, t2) {
  9417. this.source = t0;
  9418. this._span_exception$_message = t1;
  9419. this._span = t2;
  9420. },
  9421. WatchEvent: function WatchEvent(t0, t1) {
  9422. this.type = t0;
  9423. this.path = t1;
  9424. },
  9425. ChangeType: function ChangeType(t0) {
  9426. this._watch_event$_name = t0;
  9427. },
  9428. _EvaluateVisitor$2: function(functions, importCache, logger, nodeImporter, sourceMap) {
  9429. var t6,
  9430. t1 = type$.String,
  9431. t2 = type$.Uri,
  9432. t3 = type$.Module_AsyncCallable_2,
  9433. t4 = type$.AstNode_2,
  9434. t5 = H.setRuntimeTypeInfo([], type$.JSArray_Tuple2_String_AstNode_2);
  9435. if (nodeImporter == null)
  9436. t6 = importCache == null ? O.AsyncImportCache$none(logger) : importCache;
  9437. else
  9438. t6 = null;
  9439. t1 = new E._EvaluateVisitor2(t6, nodeImporter, P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.AsyncCallable_2), P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), P.LinkedHashMap_LinkedHashMap$_empty(t2, t4), C.C_StderrLogger, sourceMap, Q.AsyncEnvironment$0(sourceMap), P.LinkedHashSet_LinkedHashSet$_empty(t1), P.LinkedHashMap_LinkedHashMap$_empty(t2, t4), t5, C.Configuration_Map_empty_null_true0);
  9440. t1._EvaluateVisitor$5$functions$importCache$logger$nodeImporter$sourceMap2(functions, importCache, logger, nodeImporter, sourceMap);
  9441. return t1;
  9442. },
  9443. _ArgumentResults$2: function(positional, named, separator, namedNodes, positionalNodes) {
  9444. return new E._ArgumentResults2(positional, positionalNodes, named, namedNodes, separator);
  9445. },
  9446. _EvaluateVisitor2: function _EvaluateVisitor2(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12) {
  9447. var _ = this;
  9448. _._async_evaluate0$_importCache = t0;
  9449. _._async_evaluate0$_nodeImporter = t1;
  9450. _._async_evaluate0$_builtInFunctions = t2;
  9451. _._async_evaluate0$_builtInModules = t3;
  9452. _._async_evaluate0$_modules = t4;
  9453. _._async_evaluate0$_moduleNodes = t5;
  9454. _._async_evaluate0$_logger = t6;
  9455. _._async_evaluate0$_sourceMap = t7;
  9456. _._async_evaluate0$_environment = t8;
  9457. _._async_evaluate0$_declarationName = _._async_evaluate0$_parent = _._async_evaluate0$_mediaQueries = _._async_evaluate0$_styleRule = null;
  9458. _._async_evaluate0$_member = "root stylesheet";
  9459. _._async_evaluate0$_importSpan = _._async_evaluate0$_callableNode = null;
  9460. _._async_evaluate0$_inKeyframes = _._async_evaluate0$_atRootExcludingStyleRule = _._async_evaluate0$_inUnknownAtRule = _._async_evaluate0$_inFunction = false;
  9461. _._async_evaluate0$_includedFiles = t9;
  9462. _._async_evaluate0$_activeModules = t10;
  9463. _._async_evaluate0$_stack = t11;
  9464. _._async_evaluate0$_extender = _._async_evaluate0$_outOfOrderImports = _._async_evaluate0$_endOfImports = _._async_evaluate0$_root = _._async_evaluate0$_stylesheet = _._async_evaluate0$_importer = null;
  9465. _._async_evaluate0$_configuration = t12;
  9466. },
  9467. _EvaluateVisitor_closure29: function _EvaluateVisitor_closure29(t0) {
  9468. this.$this = t0;
  9469. },
  9470. _EvaluateVisitor_closure30: function _EvaluateVisitor_closure30(t0) {
  9471. this.$this = t0;
  9472. },
  9473. _EvaluateVisitor_closure31: function _EvaluateVisitor_closure31(t0) {
  9474. this.$this = t0;
  9475. },
  9476. _EvaluateVisitor_closure32: function _EvaluateVisitor_closure32(t0) {
  9477. this.$this = t0;
  9478. },
  9479. _EvaluateVisitor_closure33: function _EvaluateVisitor_closure33(t0) {
  9480. this.$this = t0;
  9481. },
  9482. _EvaluateVisitor_closure34: function _EvaluateVisitor_closure34(t0) {
  9483. this.$this = t0;
  9484. },
  9485. _EvaluateVisitor_closure35: function _EvaluateVisitor_closure35(t0) {
  9486. this.$this = t0;
  9487. },
  9488. _EvaluateVisitor_closure36: function _EvaluateVisitor_closure36(t0) {
  9489. this.$this = t0;
  9490. },
  9491. _EvaluateVisitor__closure18: function _EvaluateVisitor__closure18(t0, t1, t2) {
  9492. this.$this = t0;
  9493. this.name = t1;
  9494. this.module = t2;
  9495. },
  9496. _EvaluateVisitor_closure37: function _EvaluateVisitor_closure37(t0) {
  9497. this.$this = t0;
  9498. },
  9499. _EvaluateVisitor__closure16: function _EvaluateVisitor__closure16() {
  9500. },
  9501. _EvaluateVisitor__closure17: function _EvaluateVisitor__closure17() {
  9502. },
  9503. _EvaluateVisitor_closure38: function _EvaluateVisitor_closure38(t0) {
  9504. this.$this = t0;
  9505. },
  9506. _EvaluateVisitor__closure14: function _EvaluateVisitor__closure14(t0, t1) {
  9507. this.values = t0;
  9508. this.span = t1;
  9509. },
  9510. _EvaluateVisitor__closure15: function _EvaluateVisitor__closure15(t0) {
  9511. this.$this = t0;
  9512. },
  9513. _EvaluateVisitor_run_closure2: function _EvaluateVisitor_run_closure2(t0, t1, t2) {
  9514. this.$this = t0;
  9515. this.node = t1;
  9516. this.importer = t2;
  9517. },
  9518. _EvaluateVisitor__withWarnCallback_closure2: function _EvaluateVisitor__withWarnCallback_closure2(t0) {
  9519. this.$this = t0;
  9520. },
  9521. _EvaluateVisitor__loadModule_closure2: function _EvaluateVisitor__loadModule_closure2(t0, t1, t2, t3, t4, t5, t6) {
  9522. var _ = this;
  9523. _.$this = t0;
  9524. _.url = t1;
  9525. _.nodeWithSpan = t2;
  9526. _.baseUrl = t3;
  9527. _.namesInErrors = t4;
  9528. _.configuration = t5;
  9529. _.callback = t6;
  9530. },
  9531. _EvaluateVisitor__execute_closure2: function _EvaluateVisitor__execute_closure2(t0, t1, t2, t3, t4, t5) {
  9532. var _ = this;
  9533. _._box_0 = t0;
  9534. _.$this = t1;
  9535. _.importer = t2;
  9536. _.stylesheet = t3;
  9537. _.extender = t4;
  9538. _.configuration = t5;
  9539. },
  9540. _EvaluateVisitor__combineCss_closure8: function _EvaluateVisitor__combineCss_closure8() {
  9541. },
  9542. _EvaluateVisitor__combineCss_closure9: function _EvaluateVisitor__combineCss_closure9(t0) {
  9543. this.selectors = t0;
  9544. },
  9545. _EvaluateVisitor__combineCss_closure10: function _EvaluateVisitor__combineCss_closure10() {
  9546. },
  9547. _EvaluateVisitor__extendModules_closure5: function _EvaluateVisitor__extendModules_closure5(t0) {
  9548. this.originalSelectors = t0;
  9549. },
  9550. _EvaluateVisitor__extendModules_closure6: function _EvaluateVisitor__extendModules_closure6() {
  9551. },
  9552. _EvaluateVisitor__topologicalModules_visitModule2: function _EvaluateVisitor__topologicalModules_visitModule2(t0, t1) {
  9553. this.seen = t0;
  9554. this.sorted = t1;
  9555. },
  9556. _EvaluateVisitor_visitAtRootRule_closure8: function _EvaluateVisitor_visitAtRootRule_closure8(t0, t1) {
  9557. this.$this = t0;
  9558. this.resolved = t1;
  9559. },
  9560. _EvaluateVisitor_visitAtRootRule_closure9: function _EvaluateVisitor_visitAtRootRule_closure9(t0, t1) {
  9561. this.$this = t0;
  9562. this.node = t1;
  9563. },
  9564. _EvaluateVisitor_visitAtRootRule_closure10: function _EvaluateVisitor_visitAtRootRule_closure10(t0, t1) {
  9565. this.$this = t0;
  9566. this.node = t1;
  9567. },
  9568. _EvaluateVisitor__scopeForAtRoot_closure17: function _EvaluateVisitor__scopeForAtRoot_closure17(t0, t1, t2) {
  9569. this.$this = t0;
  9570. this.newParent = t1;
  9571. this.node = t2;
  9572. },
  9573. _EvaluateVisitor__scopeForAtRoot_closure18: function _EvaluateVisitor__scopeForAtRoot_closure18(t0, t1) {
  9574. this.$this = t0;
  9575. this.innerScope = t1;
  9576. },
  9577. _EvaluateVisitor__scopeForAtRoot_closure19: function _EvaluateVisitor__scopeForAtRoot_closure19(t0, t1) {
  9578. this.$this = t0;
  9579. this.innerScope = t1;
  9580. },
  9581. _EvaluateVisitor__scopeForAtRoot__closure2: function _EvaluateVisitor__scopeForAtRoot__closure2(t0, t1) {
  9582. this.innerScope = t0;
  9583. this.callback = t1;
  9584. },
  9585. _EvaluateVisitor__scopeForAtRoot_closure20: function _EvaluateVisitor__scopeForAtRoot_closure20(t0, t1) {
  9586. this.$this = t0;
  9587. this.innerScope = t1;
  9588. },
  9589. _EvaluateVisitor__scopeForAtRoot_closure21: function _EvaluateVisitor__scopeForAtRoot_closure21() {
  9590. },
  9591. _EvaluateVisitor__scopeForAtRoot_closure22: function _EvaluateVisitor__scopeForAtRoot_closure22(t0, t1) {
  9592. this.$this = t0;
  9593. this.innerScope = t1;
  9594. },
  9595. _EvaluateVisitor_visitContentRule_closure2: function _EvaluateVisitor_visitContentRule_closure2(t0, t1) {
  9596. this.$this = t0;
  9597. this.content = t1;
  9598. },
  9599. _EvaluateVisitor_visitDeclaration_closure2: function _EvaluateVisitor_visitDeclaration_closure2(t0, t1) {
  9600. this.$this = t0;
  9601. this.node = t1;
  9602. },
  9603. _EvaluateVisitor_visitEachRule_closure8: function _EvaluateVisitor_visitEachRule_closure8(t0, t1, t2) {
  9604. this.$this = t0;
  9605. this.node = t1;
  9606. this.nodeWithSpan = t2;
  9607. },
  9608. _EvaluateVisitor_visitEachRule_closure9: function _EvaluateVisitor_visitEachRule_closure9(t0, t1, t2) {
  9609. this.$this = t0;
  9610. this.node = t1;
  9611. this.nodeWithSpan = t2;
  9612. },
  9613. _EvaluateVisitor_visitEachRule_closure10: function _EvaluateVisitor_visitEachRule_closure10(t0, t1, t2, t3) {
  9614. var _ = this;
  9615. _.$this = t0;
  9616. _.list = t1;
  9617. _.setVariables = t2;
  9618. _.node = t3;
  9619. },
  9620. _EvaluateVisitor_visitEachRule__closure2: function _EvaluateVisitor_visitEachRule__closure2(t0, t1, t2) {
  9621. this.$this = t0;
  9622. this.setVariables = t1;
  9623. this.node = t2;
  9624. },
  9625. _EvaluateVisitor_visitEachRule___closure2: function _EvaluateVisitor_visitEachRule___closure2(t0) {
  9626. this.$this = t0;
  9627. },
  9628. _EvaluateVisitor_visitExtendRule_closure2: function _EvaluateVisitor_visitExtendRule_closure2(t0, t1) {
  9629. this.$this = t0;
  9630. this.targetText = t1;
  9631. },
  9632. _EvaluateVisitor_visitAtRule_closure5: function _EvaluateVisitor_visitAtRule_closure5(t0, t1) {
  9633. this.$this = t0;
  9634. this.node = t1;
  9635. },
  9636. _EvaluateVisitor_visitAtRule__closure2: function _EvaluateVisitor_visitAtRule__closure2(t0, t1) {
  9637. this.$this = t0;
  9638. this.node = t1;
  9639. },
  9640. _EvaluateVisitor_visitAtRule_closure6: function _EvaluateVisitor_visitAtRule_closure6() {
  9641. },
  9642. _EvaluateVisitor_visitForRule_closure14: function _EvaluateVisitor_visitForRule_closure14(t0, t1) {
  9643. this.$this = t0;
  9644. this.node = t1;
  9645. },
  9646. _EvaluateVisitor_visitForRule_closure15: function _EvaluateVisitor_visitForRule_closure15(t0, t1) {
  9647. this.$this = t0;
  9648. this.node = t1;
  9649. },
  9650. _EvaluateVisitor_visitForRule_closure16: function _EvaluateVisitor_visitForRule_closure16(t0, t1) {
  9651. this.fromNumber = t0;
  9652. this.toNumber = t1;
  9653. },
  9654. _EvaluateVisitor_visitForRule_closure17: function _EvaluateVisitor_visitForRule_closure17(t0) {
  9655. this.toNumber = t0;
  9656. },
  9657. _EvaluateVisitor_visitForRule_closure18: function _EvaluateVisitor_visitForRule_closure18(t0, t1, t2, t3, t4) {
  9658. var _ = this;
  9659. _._box_0 = t0;
  9660. _.$this = t1;
  9661. _.node = t2;
  9662. _.from = t3;
  9663. _.direction = t4;
  9664. },
  9665. _EvaluateVisitor_visitForRule__closure2: function _EvaluateVisitor_visitForRule__closure2(t0) {
  9666. this.$this = t0;
  9667. },
  9668. _EvaluateVisitor_visitForwardRule_closure5: function _EvaluateVisitor_visitForwardRule_closure5(t0, t1) {
  9669. this.$this = t0;
  9670. this.node = t1;
  9671. },
  9672. _EvaluateVisitor_visitForwardRule_closure6: function _EvaluateVisitor_visitForwardRule_closure6(t0, t1) {
  9673. this.$this = t0;
  9674. this.node = t1;
  9675. },
  9676. _EvaluateVisitor__assertConfigurationIsEmpty_closure2: function _EvaluateVisitor__assertConfigurationIsEmpty_closure2(t0, t1, t2) {
  9677. this.$this = t0;
  9678. this.only = t1;
  9679. this.nameInError = t2;
  9680. },
  9681. _EvaluateVisitor_visitIfRule_closure2: function _EvaluateVisitor_visitIfRule_closure2(t0, t1) {
  9682. this._box_0 = t0;
  9683. this.$this = t1;
  9684. },
  9685. _EvaluateVisitor_visitIfRule__closure2: function _EvaluateVisitor_visitIfRule__closure2(t0) {
  9686. this.$this = t0;
  9687. },
  9688. _EvaluateVisitor__visitDynamicImport_closure2: function _EvaluateVisitor__visitDynamicImport_closure2(t0, t1) {
  9689. this.$this = t0;
  9690. this.$import = t1;
  9691. },
  9692. _EvaluateVisitor__visitDynamicImport__closure2: function _EvaluateVisitor__visitDynamicImport__closure2(t0, t1, t2, t3, t4) {
  9693. var _ = this;
  9694. _._box_0 = t0;
  9695. _.$this = t1;
  9696. _.importer = t2;
  9697. _.stylesheet = t3;
  9698. _.environment = t4;
  9699. },
  9700. _EvaluateVisitor_visitIncludeRule_closure8: function _EvaluateVisitor_visitIncludeRule_closure8(t0, t1) {
  9701. this.$this = t0;
  9702. this.node = t1;
  9703. },
  9704. _EvaluateVisitor_visitIncludeRule_closure9: function _EvaluateVisitor_visitIncludeRule_closure9(t0) {
  9705. this.node = t0;
  9706. },
  9707. _EvaluateVisitor_visitIncludeRule_closure10: function _EvaluateVisitor_visitIncludeRule_closure10(t0, t1, t2, t3) {
  9708. var _ = this;
  9709. _.$this = t0;
  9710. _.contentCallable = t1;
  9711. _.mixin = t2;
  9712. _.nodeWithSpan = t3;
  9713. },
  9714. _EvaluateVisitor_visitIncludeRule__closure2: function _EvaluateVisitor_visitIncludeRule__closure2(t0, t1, t2) {
  9715. this.$this = t0;
  9716. this.mixin = t1;
  9717. this.nodeWithSpan = t2;
  9718. },
  9719. _EvaluateVisitor_visitIncludeRule___closure2: function _EvaluateVisitor_visitIncludeRule___closure2(t0, t1, t2) {
  9720. this.$this = t0;
  9721. this.mixin = t1;
  9722. this.nodeWithSpan = t2;
  9723. },
  9724. _EvaluateVisitor_visitIncludeRule____closure2: function _EvaluateVisitor_visitIncludeRule____closure2(t0, t1) {
  9725. this.$this = t0;
  9726. this.statement = t1;
  9727. },
  9728. _EvaluateVisitor_visitMediaRule_closure5: function _EvaluateVisitor_visitMediaRule_closure5(t0, t1, t2, t3) {
  9729. var _ = this;
  9730. _.$this = t0;
  9731. _.mergedQueries = t1;
  9732. _.queries = t2;
  9733. _.node = t3;
  9734. },
  9735. _EvaluateVisitor_visitMediaRule__closure2: function _EvaluateVisitor_visitMediaRule__closure2(t0, t1) {
  9736. this.$this = t0;
  9737. this.node = t1;
  9738. },
  9739. _EvaluateVisitor_visitMediaRule___closure2: function _EvaluateVisitor_visitMediaRule___closure2(t0, t1) {
  9740. this.$this = t0;
  9741. this.node = t1;
  9742. },
  9743. _EvaluateVisitor_visitMediaRule_closure6: function _EvaluateVisitor_visitMediaRule_closure6(t0) {
  9744. this.mergedQueries = t0;
  9745. },
  9746. _EvaluateVisitor__visitMediaQueries_closure2: function _EvaluateVisitor__visitMediaQueries_closure2(t0, t1) {
  9747. this.$this = t0;
  9748. this.resolved = t1;
  9749. },
  9750. _EvaluateVisitor_visitStyleRule_closure20: function _EvaluateVisitor_visitStyleRule_closure20(t0, t1) {
  9751. this.$this = t0;
  9752. this.selectorText = t1;
  9753. },
  9754. _EvaluateVisitor_visitStyleRule_closure21: function _EvaluateVisitor_visitStyleRule_closure21(t0, t1) {
  9755. this.$this = t0;
  9756. this.node = t1;
  9757. },
  9758. _EvaluateVisitor_visitStyleRule_closure22: function _EvaluateVisitor_visitStyleRule_closure22() {
  9759. },
  9760. _EvaluateVisitor_visitStyleRule_closure23: function _EvaluateVisitor_visitStyleRule_closure23(t0, t1) {
  9761. this.$this = t0;
  9762. this.selectorText = t1;
  9763. },
  9764. _EvaluateVisitor_visitStyleRule_closure24: function _EvaluateVisitor_visitStyleRule_closure24(t0, t1) {
  9765. this._box_0 = t0;
  9766. this.$this = t1;
  9767. },
  9768. _EvaluateVisitor_visitStyleRule_closure25: function _EvaluateVisitor_visitStyleRule_closure25(t0, t1, t2) {
  9769. this.$this = t0;
  9770. this.rule = t1;
  9771. this.node = t2;
  9772. },
  9773. _EvaluateVisitor_visitStyleRule__closure2: function _EvaluateVisitor_visitStyleRule__closure2(t0, t1) {
  9774. this.$this = t0;
  9775. this.node = t1;
  9776. },
  9777. _EvaluateVisitor_visitStyleRule_closure26: function _EvaluateVisitor_visitStyleRule_closure26() {
  9778. },
  9779. _EvaluateVisitor_visitSupportsRule_closure5: function _EvaluateVisitor_visitSupportsRule_closure5(t0, t1) {
  9780. this.$this = t0;
  9781. this.node = t1;
  9782. },
  9783. _EvaluateVisitor_visitSupportsRule__closure2: function _EvaluateVisitor_visitSupportsRule__closure2(t0, t1) {
  9784. this.$this = t0;
  9785. this.node = t1;
  9786. },
  9787. _EvaluateVisitor_visitSupportsRule_closure6: function _EvaluateVisitor_visitSupportsRule_closure6() {
  9788. },
  9789. _EvaluateVisitor_visitVariableDeclaration_closure8: function _EvaluateVisitor_visitVariableDeclaration_closure8(t0, t1, t2) {
  9790. this.$this = t0;
  9791. this.node = t1;
  9792. this.override = t2;
  9793. },
  9794. _EvaluateVisitor_visitVariableDeclaration_closure9: function _EvaluateVisitor_visitVariableDeclaration_closure9(t0, t1) {
  9795. this.$this = t0;
  9796. this.node = t1;
  9797. },
  9798. _EvaluateVisitor_visitVariableDeclaration_closure10: function _EvaluateVisitor_visitVariableDeclaration_closure10(t0, t1, t2) {
  9799. this.$this = t0;
  9800. this.node = t1;
  9801. this.value = t2;
  9802. },
  9803. _EvaluateVisitor_visitUseRule_closure2: function _EvaluateVisitor_visitUseRule_closure2(t0, t1) {
  9804. this.$this = t0;
  9805. this.node = t1;
  9806. },
  9807. _EvaluateVisitor_visitWarnRule_closure2: function _EvaluateVisitor_visitWarnRule_closure2(t0, t1) {
  9808. this.$this = t0;
  9809. this.node = t1;
  9810. },
  9811. _EvaluateVisitor_visitWhileRule_closure2: function _EvaluateVisitor_visitWhileRule_closure2(t0, t1) {
  9812. this.$this = t0;
  9813. this.node = t1;
  9814. },
  9815. _EvaluateVisitor_visitWhileRule__closure2: function _EvaluateVisitor_visitWhileRule__closure2(t0) {
  9816. this.$this = t0;
  9817. },
  9818. _EvaluateVisitor_visitBinaryOperationExpression_closure2: function _EvaluateVisitor_visitBinaryOperationExpression_closure2(t0, t1) {
  9819. this.$this = t0;
  9820. this.node = t1;
  9821. },
  9822. _EvaluateVisitor_visitVariableExpression_closure2: function _EvaluateVisitor_visitVariableExpression_closure2(t0, t1) {
  9823. this.$this = t0;
  9824. this.node = t1;
  9825. },
  9826. _EvaluateVisitor_visitListExpression_closure2: function _EvaluateVisitor_visitListExpression_closure2(t0) {
  9827. this.$this = t0;
  9828. },
  9829. _EvaluateVisitor_visitFunctionExpression_closure5: function _EvaluateVisitor_visitFunctionExpression_closure5(t0, t1, t2) {
  9830. this.$this = t0;
  9831. this.node = t1;
  9832. this.plainName = t2;
  9833. },
  9834. _EvaluateVisitor_visitFunctionExpression_closure6: function _EvaluateVisitor_visitFunctionExpression_closure6(t0, t1, t2) {
  9835. this._box_0 = t0;
  9836. this.$this = t1;
  9837. this.node = t2;
  9838. },
  9839. _EvaluateVisitor__runUserDefinedCallable_closure2: function _EvaluateVisitor__runUserDefinedCallable_closure2(t0, t1, t2, t3, t4) {
  9840. var _ = this;
  9841. _.$this = t0;
  9842. _.callable = t1;
  9843. _.evaluated = t2;
  9844. _.nodeWithSpan = t3;
  9845. _.run = t4;
  9846. },
  9847. _EvaluateVisitor__runUserDefinedCallable__closure2: function _EvaluateVisitor__runUserDefinedCallable__closure2(t0, t1, t2, t3, t4) {
  9848. var _ = this;
  9849. _.$this = t0;
  9850. _.evaluated = t1;
  9851. _.callable = t2;
  9852. _.nodeWithSpan = t3;
  9853. _.run = t4;
  9854. },
  9855. _EvaluateVisitor__runUserDefinedCallable___closure2: function _EvaluateVisitor__runUserDefinedCallable___closure2(t0, t1, t2, t3, t4) {
  9856. var _ = this;
  9857. _.$this = t0;
  9858. _.evaluated = t1;
  9859. _.callable = t2;
  9860. _.nodeWithSpan = t3;
  9861. _.run = t4;
  9862. },
  9863. _EvaluateVisitor__runUserDefinedCallable____closure2: function _EvaluateVisitor__runUserDefinedCallable____closure2() {
  9864. },
  9865. _EvaluateVisitor__runFunctionCallable_closure2: function _EvaluateVisitor__runFunctionCallable_closure2(t0, t1) {
  9866. this.$this = t0;
  9867. this.callable = t1;
  9868. },
  9869. _EvaluateVisitor__runBuiltInCallable_closure5: function _EvaluateVisitor__runBuiltInCallable_closure5(t0, t1, t2) {
  9870. this.overload = t0;
  9871. this.evaluated = t1;
  9872. this.namedSet = t2;
  9873. },
  9874. _EvaluateVisitor__runBuiltInCallable_closure6: function _EvaluateVisitor__runBuiltInCallable_closure6() {
  9875. },
  9876. _EvaluateVisitor__evaluateArguments_closure8: function _EvaluateVisitor__evaluateArguments_closure8(t0) {
  9877. this.$this = t0;
  9878. },
  9879. _EvaluateVisitor__evaluateArguments_closure9: function _EvaluateVisitor__evaluateArguments_closure9(t0) {
  9880. this.$this = t0;
  9881. },
  9882. _EvaluateVisitor__evaluateArguments_closure10: function _EvaluateVisitor__evaluateArguments_closure10(t0, t1, t2) {
  9883. this.named = t0;
  9884. this.namedNodes = t1;
  9885. this.restNodeForSpan = t2;
  9886. },
  9887. _EvaluateVisitor__evaluateMacroArguments_closure11: function _EvaluateVisitor__evaluateMacroArguments_closure11() {
  9888. },
  9889. _EvaluateVisitor__evaluateMacroArguments_closure12: function _EvaluateVisitor__evaluateMacroArguments_closure12() {
  9890. },
  9891. _EvaluateVisitor__evaluateMacroArguments_closure13: function _EvaluateVisitor__evaluateMacroArguments_closure13(t0) {
  9892. this.named = t0;
  9893. },
  9894. _EvaluateVisitor__evaluateMacroArguments_closure14: function _EvaluateVisitor__evaluateMacroArguments_closure14() {
  9895. },
  9896. _EvaluateVisitor__addRestMap_closure5: function _EvaluateVisitor__addRestMap_closure5(t0) {
  9897. this.T = t0;
  9898. },
  9899. _EvaluateVisitor__addRestMap_closure6: function _EvaluateVisitor__addRestMap_closure6(t0, t1, t2, t3, t4) {
  9900. var _ = this;
  9901. _._box_0 = t0;
  9902. _.$this = t1;
  9903. _.values = t2;
  9904. _.map = t3;
  9905. _.nodeWithSpan = t4;
  9906. },
  9907. _EvaluateVisitor__verifyArguments_closure2: function _EvaluateVisitor__verifyArguments_closure2(t0, t1, t2) {
  9908. this.$arguments = t0;
  9909. this.positional = t1;
  9910. this.named = t2;
  9911. },
  9912. _EvaluateVisitor_visitStringExpression_closure2: function _EvaluateVisitor_visitStringExpression_closure2(t0) {
  9913. this.$this = t0;
  9914. },
  9915. _EvaluateVisitor_visitCssAtRule_closure5: function _EvaluateVisitor_visitCssAtRule_closure5(t0, t1) {
  9916. this.$this = t0;
  9917. this.node = t1;
  9918. },
  9919. _EvaluateVisitor_visitCssAtRule_closure6: function _EvaluateVisitor_visitCssAtRule_closure6() {
  9920. },
  9921. _EvaluateVisitor_visitCssKeyframeBlock_closure5: function _EvaluateVisitor_visitCssKeyframeBlock_closure5(t0, t1) {
  9922. this.$this = t0;
  9923. this.node = t1;
  9924. },
  9925. _EvaluateVisitor_visitCssKeyframeBlock_closure6: function _EvaluateVisitor_visitCssKeyframeBlock_closure6() {
  9926. },
  9927. _EvaluateVisitor_visitCssMediaRule_closure5: function _EvaluateVisitor_visitCssMediaRule_closure5(t0, t1, t2) {
  9928. this.$this = t0;
  9929. this.mergedQueries = t1;
  9930. this.node = t2;
  9931. },
  9932. _EvaluateVisitor_visitCssMediaRule__closure2: function _EvaluateVisitor_visitCssMediaRule__closure2(t0, t1) {
  9933. this.$this = t0;
  9934. this.node = t1;
  9935. },
  9936. _EvaluateVisitor_visitCssMediaRule___closure2: function _EvaluateVisitor_visitCssMediaRule___closure2(t0, t1) {
  9937. this.$this = t0;
  9938. this.node = t1;
  9939. },
  9940. _EvaluateVisitor_visitCssMediaRule_closure6: function _EvaluateVisitor_visitCssMediaRule_closure6(t0) {
  9941. this.mergedQueries = t0;
  9942. },
  9943. _EvaluateVisitor_visitCssStyleRule_closure5: function _EvaluateVisitor_visitCssStyleRule_closure5(t0, t1, t2) {
  9944. this.$this = t0;
  9945. this.rule = t1;
  9946. this.node = t2;
  9947. },
  9948. _EvaluateVisitor_visitCssStyleRule__closure2: function _EvaluateVisitor_visitCssStyleRule__closure2(t0, t1) {
  9949. this.$this = t0;
  9950. this.node = t1;
  9951. },
  9952. _EvaluateVisitor_visitCssStyleRule_closure6: function _EvaluateVisitor_visitCssStyleRule_closure6() {
  9953. },
  9954. _EvaluateVisitor_visitCssSupportsRule_closure5: function _EvaluateVisitor_visitCssSupportsRule_closure5(t0, t1) {
  9955. this.$this = t0;
  9956. this.node = t1;
  9957. },
  9958. _EvaluateVisitor_visitCssSupportsRule__closure2: function _EvaluateVisitor_visitCssSupportsRule__closure2(t0, t1) {
  9959. this.$this = t0;
  9960. this.node = t1;
  9961. },
  9962. _EvaluateVisitor_visitCssSupportsRule_closure6: function _EvaluateVisitor_visitCssSupportsRule_closure6() {
  9963. },
  9964. _EvaluateVisitor__performInterpolation_closure2: function _EvaluateVisitor__performInterpolation_closure2(t0, t1) {
  9965. this.$this = t0;
  9966. this.warnForColor = t1;
  9967. },
  9968. _EvaluateVisitor__serialize_closure2: function _EvaluateVisitor__serialize_closure2(t0, t1) {
  9969. this.value = t0;
  9970. this.quote = t1;
  9971. },
  9972. _EvaluateVisitor__stackTrace_closure2: function _EvaluateVisitor__stackTrace_closure2(t0) {
  9973. this.$this = t0;
  9974. },
  9975. _ImportedCssVisitor2: function _ImportedCssVisitor2(t0) {
  9976. this._async_evaluate0$_visitor = t0;
  9977. },
  9978. _ImportedCssVisitor_visitCssAtRule_closure2: function _ImportedCssVisitor_visitCssAtRule_closure2() {
  9979. },
  9980. _ImportedCssVisitor_visitCssMediaRule_closure2: function _ImportedCssVisitor_visitCssMediaRule_closure2(t0) {
  9981. this.hasBeenMerged = t0;
  9982. },
  9983. _ImportedCssVisitor_visitCssStyleRule_closure2: function _ImportedCssVisitor_visitCssStyleRule_closure2() {
  9984. },
  9985. _ImportedCssVisitor_visitCssSupportsRule_closure2: function _ImportedCssVisitor_visitCssSupportsRule_closure2() {
  9986. },
  9987. EvaluateResult0: function EvaluateResult0(t0, t1) {
  9988. this.stylesheet = t0;
  9989. this.includedFiles = t1;
  9990. },
  9991. _ArgumentResults2: function _ArgumentResults2(t0, t1, t2, t3, t4) {
  9992. var _ = this;
  9993. _.positional = t0;
  9994. _.positionalNodes = t1;
  9995. _.named = t2;
  9996. _.namedNodes = t3;
  9997. _.separator = t4;
  9998. },
  9999. SassException$0: function(message, span) {
  10000. return new E.SassException0(message, span);
  10001. },
  10002. MultiSpanSassException$0: function(message, span, primaryLabel, secondarySpans) {
  10003. return new E.MultiSpanSassException0(primaryLabel, H.ConstantMap_ConstantMap$from(secondarySpans, type$.FileSpan, type$.String), message, span);
  10004. },
  10005. SassRuntimeException$0: function(message, span, trace) {
  10006. return new E.SassRuntimeException0(trace, message, span);
  10007. },
  10008. MultiSpanSassRuntimeException$0: function(message, span, primaryLabel, secondarySpans, trace) {
  10009. return new E.MultiSpanSassRuntimeException0(trace, primaryLabel, H.ConstantMap_ConstantMap$from(secondarySpans, type$.FileSpan, type$.String), message, span);
  10010. },
  10011. SassFormatException$0: function(message, span) {
  10012. return new E.SassFormatException0(message, span);
  10013. },
  10014. SassScriptException$0: function(message) {
  10015. return new E.SassScriptException0(message);
  10016. },
  10017. MultiSpanSassScriptException$0: function(message, primaryLabel, secondarySpans) {
  10018. return new E.MultiSpanSassScriptException0(primaryLabel, H.ConstantMap_ConstantMap$from(secondarySpans, type$.FileSpan, type$.String), message);
  10019. },
  10020. SassException0: function SassException0(t0, t1) {
  10021. this._span_exception$_message = t0;
  10022. this._span = t1;
  10023. },
  10024. MultiSpanSassException0: function MultiSpanSassException0(t0, t1, t2, t3) {
  10025. var _ = this;
  10026. _.primaryLabel = t0;
  10027. _.secondarySpans = t1;
  10028. _._span_exception$_message = t2;
  10029. _._span = t3;
  10030. },
  10031. SassRuntimeException0: function SassRuntimeException0(t0, t1, t2) {
  10032. this.trace = t0;
  10033. this._span_exception$_message = t1;
  10034. this._span = t2;
  10035. },
  10036. MultiSpanSassRuntimeException0: function MultiSpanSassRuntimeException0(t0, t1, t2, t3, t4) {
  10037. var _ = this;
  10038. _.trace = t0;
  10039. _.primaryLabel = t1;
  10040. _.secondarySpans = t2;
  10041. _._span_exception$_message = t3;
  10042. _._span = t4;
  10043. },
  10044. SassFormatException0: function SassFormatException0(t0, t1) {
  10045. this._span_exception$_message = t0;
  10046. this._span = t1;
  10047. },
  10048. SassScriptException0: function SassScriptException0(t0) {
  10049. this.message = t0;
  10050. },
  10051. MultiSpanSassScriptException0: function MultiSpanSassScriptException0(t0, t1, t2) {
  10052. this.primaryLabel = t0;
  10053. this.secondarySpans = t1;
  10054. this.message = t2;
  10055. },
  10056. FiberClass: function FiberClass() {
  10057. },
  10058. Fiber: function Fiber() {
  10059. },
  10060. KeyframeSelectorParser0: function KeyframeSelectorParser0(t0, t1) {
  10061. this.scanner = t0;
  10062. this.logger = t1;
  10063. },
  10064. KeyframeSelectorParser_parse_closure0: function KeyframeSelectorParser_parse_closure0(t0) {
  10065. this.$this = t0;
  10066. },
  10067. ImporterResult0: function ImporterResult0(t0, t1, t2) {
  10068. this.contents = t0;
  10069. this._result$_sourceMapUrl = t1;
  10070. this.syntax = t2;
  10071. },
  10072. UserDefinedCallable0: function UserDefinedCallable0(t0, t1, t2) {
  10073. this.declaration = t0;
  10074. this.environment = t1;
  10075. this.$ti = t2;
  10076. }
  10077. },
  10078. F = {ValueResult: function ValueResult(t0, t1) {
  10079. this.value = t0;
  10080. this.$ti = t1;
  10081. }, UrlStyle: function UrlStyle(t0, t1, t2, t3) {
  10082. var _ = this;
  10083. _.separatorPattern = t0;
  10084. _.needsSeparatorPattern = t1;
  10085. _.rootPattern = t2;
  10086. _.relativeRootPattern = t3;
  10087. },
  10088. CssMediaQuery$: function(type, features, modifier) {
  10089. return new F.CssMediaQuery(modifier, type, features == null ? C.List_empty : P.List_List$unmodifiable(features, type$.String));
  10090. },
  10091. CssMediaQuery: function CssMediaQuery(t0, t1, t2) {
  10092. this.modifier = t0;
  10093. this.type = t1;
  10094. this.features = t2;
  10095. },
  10096. _SingletonCssMediaQueryMergeResult: function _SingletonCssMediaQueryMergeResult(t0) {
  10097. this._media_query$_name = t0;
  10098. },
  10099. MediaQuerySuccessfulMergeResult: function MediaQuerySuccessfulMergeResult(t0) {
  10100. this.query = t0;
  10101. },
  10102. ModifiableCssImport$: function(url, span, media, supports) {
  10103. return new F.ModifiableCssImport(url, supports, media == null ? null : P.List_List$unmodifiable(media, type$.CssMediaQuery), span);
  10104. },
  10105. ModifiableCssImport: function ModifiableCssImport(t0, t1, t2, t3) {
  10106. var _ = this;
  10107. _.url = t0;
  10108. _.supports = t1;
  10109. _.media = t2;
  10110. _.span = t3;
  10111. _._indexInParent = _._parent = null;
  10112. _.isGroupEnd = false;
  10113. },
  10114. ModifiableCssValue: function ModifiableCssValue(t0, t1, t2) {
  10115. this.value = t0;
  10116. this.span = t1;
  10117. this.$ti = t2;
  10118. },
  10119. CssValue: function CssValue(t0, t1, t2) {
  10120. this.value = t0;
  10121. this.span = t1;
  10122. this.$ti = t2;
  10123. },
  10124. FunctionExpression: function FunctionExpression(t0, t1, t2, t3) {
  10125. var _ = this;
  10126. _.namespace = t0;
  10127. _.name = t1;
  10128. _.$arguments = t2;
  10129. _.span = t3;
  10130. },
  10131. ValueExpression: function ValueExpression(t0, t1) {
  10132. this.value = t0;
  10133. this.span = t1;
  10134. },
  10135. Import: function Import() {
  10136. },
  10137. TypeSelector: function TypeSelector(t0) {
  10138. this.name = t0;
  10139. },
  10140. Extender__extendOrReplace: function(selector, source, targets, mode) {
  10141. var t2, t3, _i, complex, t4, t5, t6, _i0, extender, _null = null,
  10142. t1 = P.LinkedHashMap_LinkedHashMap$_empty(type$.ComplexSelector, type$.Extension);
  10143. for (t2 = source.components, t3 = t2.length, _i = 0; _i < t3; ++_i) {
  10144. complex = t2[_i];
  10145. if (complex._maxSpecificity == null)
  10146. complex._computeSpecificity$0();
  10147. t4 = complex._maxSpecificity;
  10148. t1.$indexSet(0, complex, new S.Extension(complex, _null, t4, true, false, _null, _null, _null));
  10149. }
  10150. t2 = H.setRuntimeTypeInfo([], type$.JSArray_CompoundSelector);
  10151. for (t3 = targets.components, t4 = t3.length, t5 = type$.CompoundSelector, _i = 0; _i < t4; ++_i) {
  10152. complex = t3[_i];
  10153. t6 = complex.components;
  10154. if (t6.length !== 1)
  10155. t2.push(H.throwExpression(E.SassScriptException$("Can't extend complex selector " + H.S(complex) + ".")));
  10156. else
  10157. t2.push(t5._as(C.JSArray_methods.get$first(t6)));
  10158. }
  10159. t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.SimpleSelector, type$.Map_ComplexSelector_Extension);
  10160. for (t4 = t2.length, _i = 0; _i < t2.length; t2.length === t4 || (0, H.throwConcurrentModificationError)(t2), ++_i)
  10161. for (t5 = t2[_i].components, t6 = t5.length, _i0 = 0; _i0 < t6; ++_i0)
  10162. t3.$indexSet(0, t5[_i0], t1);
  10163. extender = F.Extender$_mode(mode);
  10164. if (!selector.get$isInvisible())
  10165. extender._originals.addAll$1(0, selector.components);
  10166. return extender._extendList$3(selector, t3, _null);
  10167. },
  10168. Extender$_mode: function(_mode) {
  10169. var t1 = type$.SimpleSelector;
  10170. return new F.Extender(P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Set_ModifiableCssValue_SelectorList), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Map_ComplexSelector_Extension), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.List_Extension), P.LinkedHashMap_LinkedHashMap$_empty(type$.ModifiableCssValue_SelectorList, type$.List_CssMediaQuery), P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6(t1, type$.int), new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_ComplexSelector), _mode);
  10171. },
  10172. Extender: function Extender(t0, t1, t2, t3, t4, t5, t6) {
  10173. var _ = this;
  10174. _._selectors = t0;
  10175. _._extensions = t1;
  10176. _._extensionsByExtender = t2;
  10177. _._mediaContexts = t3;
  10178. _._sourceSpecificity = t4;
  10179. _._originals = t5;
  10180. _._mode = t6;
  10181. },
  10182. Extender_extensionsWhereTarget_closure: function Extender_extensionsWhereTarget_closure() {
  10183. },
  10184. Extender__registerSelector_closure: function Extender__registerSelector_closure() {
  10185. },
  10186. Extender_addExtension_closure: function Extender_addExtension_closure() {
  10187. },
  10188. Extender_addExtension_closure0: function Extender_addExtension_closure0() {
  10189. },
  10190. Extender_addExtension_closure1: function Extender_addExtension_closure1(t0) {
  10191. this.complex = t0;
  10192. },
  10193. Extender__extendExistingExtensions_closure: function Extender__extendExistingExtensions_closure() {
  10194. },
  10195. Extender__extendExistingExtensions_closure0: function Extender__extendExistingExtensions_closure0() {
  10196. },
  10197. Extender_addExtensions_closure: function Extender_addExtensions_closure(t0, t1, t2) {
  10198. this._box_0 = t0;
  10199. this.$this = t1;
  10200. this.extender = t2;
  10201. },
  10202. Extender_addExtensions__closure: function Extender_addExtensions__closure(t0, t1, t2, t3, t4) {
  10203. var _ = this;
  10204. _._box_0 = t0;
  10205. _.existingSources = t1;
  10206. _.extensionsForTarget = t2;
  10207. _.selectorsForTarget = t3;
  10208. _.target = t4;
  10209. },
  10210. Extender_addExtensions___closure: function Extender_addExtensions___closure() {
  10211. },
  10212. Extender_addExtensions___closure0: function Extender_addExtensions___closure0(t0) {
  10213. this.extension = t0;
  10214. },
  10215. Extender__extendList_closure: function Extender__extendList_closure() {
  10216. },
  10217. Extender__extendComplex_closure: function Extender__extendComplex_closure(t0) {
  10218. this.complex = t0;
  10219. },
  10220. Extender__extendComplex_closure0: function Extender__extendComplex_closure0(t0, t1, t2) {
  10221. this._box_0 = t0;
  10222. this.$this = t1;
  10223. this.complex = t2;
  10224. },
  10225. Extender__extendComplex__closure: function Extender__extendComplex__closure() {
  10226. },
  10227. Extender__extendComplex__closure0: function Extender__extendComplex__closure0(t0, t1, t2, t3) {
  10228. var _ = this;
  10229. _._box_0 = t0;
  10230. _.$this = t1;
  10231. _.complex = t2;
  10232. _.path = t3;
  10233. },
  10234. Extender__extendComplex___closure: function Extender__extendComplex___closure() {
  10235. },
  10236. Extender__extendCompound_closure: function Extender__extendCompound_closure(t0) {
  10237. this.mediaQueryContext = t0;
  10238. },
  10239. Extender__extendCompound_closure0: function Extender__extendCompound_closure0(t0, t1) {
  10240. this._box_1 = t0;
  10241. this.mediaQueryContext = t1;
  10242. },
  10243. Extender__extendCompound__closure: function Extender__extendCompound__closure() {
  10244. },
  10245. Extender__extendCompound__closure0: function Extender__extendCompound__closure0(t0) {
  10246. this._box_0 = t0;
  10247. },
  10248. Extender__extendCompound_closure1: function Extender__extendCompound_closure1() {
  10249. },
  10250. Extender__extendCompound_closure2: function Extender__extendCompound_closure2() {
  10251. },
  10252. Extender__extendSimple_withoutPseudo: function Extender__extendSimple_withoutPseudo(t0, t1, t2) {
  10253. this.$this = t0;
  10254. this.extensions = t1;
  10255. this.targetsUsed = t2;
  10256. },
  10257. Extender__extendSimple_closure: function Extender__extendSimple_closure(t0, t1) {
  10258. this.$this = t0;
  10259. this.withoutPseudo = t1;
  10260. },
  10261. Extender__extendPseudo_closure: function Extender__extendPseudo_closure() {
  10262. },
  10263. Extender__extendPseudo_closure0: function Extender__extendPseudo_closure0() {
  10264. },
  10265. Extender__extendPseudo_closure1: function Extender__extendPseudo_closure1() {
  10266. },
  10267. Extender__extendPseudo_closure2: function Extender__extendPseudo_closure2(t0) {
  10268. this.pseudo = t0;
  10269. },
  10270. Extender__extendPseudo_closure3: function Extender__extendPseudo_closure3(t0) {
  10271. this.pseudo = t0;
  10272. },
  10273. Extender__trim_closure: function Extender__trim_closure(t0, t1) {
  10274. this._box_0 = t0;
  10275. this.complex1 = t1;
  10276. },
  10277. Extender__trim_closure0: function Extender__trim_closure0(t0, t1) {
  10278. this._box_0 = t0;
  10279. this.complex1 = t1;
  10280. },
  10281. Extender_clone_closure: function Extender_clone_closure(t0, t1, t2, t3) {
  10282. var _ = this;
  10283. _.$this = t0;
  10284. _.newSelectors = t1;
  10285. _.oldToNewSelectors = t2;
  10286. _.newMediaContexts = t3;
  10287. },
  10288. FilesystemImporter: function FilesystemImporter(t0) {
  10289. this._loadPath = t0;
  10290. },
  10291. realCasePath: function(path) {
  10292. var t1, basename, matches;
  10293. if (!(J.$eq$(J.get$platform$x(self.process), "win32") || J.$eq$(J.get$platform$x(self.process), "darwin")))
  10294. return path;
  10295. t1 = $.$get$context();
  10296. basename = X.ParsedPath_ParsedPath$parse(path, t1.style).get$basename();
  10297. matches = J.where$1$ax(B.listDir(t1.dirname$1(path), false), new F.realCasePath_closure(basename)).toList$0(0);
  10298. if (matches.length !== 1)
  10299. return path;
  10300. return C.JSArray_methods.get$first(matches);
  10301. },
  10302. realCasePath_closure: function realCasePath_closure(t0) {
  10303. this.basename = t0;
  10304. },
  10305. _QuietLogger: function _QuietLogger() {
  10306. },
  10307. JSFunction: function JSFunction() {
  10308. },
  10309. NodeImporterResult: function NodeImporterResult() {
  10310. },
  10311. MediaQueryParser: function MediaQueryParser(t0, t1) {
  10312. this.scanner = t0;
  10313. this.logger = t1;
  10314. },
  10315. MediaQueryParser_parse_closure: function MediaQueryParser_parse_closure(t0) {
  10316. this.$this = t0;
  10317. },
  10318. PrefixedMapView: function PrefixedMapView(t0, t1, t2) {
  10319. this._prefixed_map_view$_map = t0;
  10320. this._prefix = t1;
  10321. this.$ti = t2;
  10322. },
  10323. _PrefixedKeys: function _PrefixedKeys(t0) {
  10324. this._view = t0;
  10325. },
  10326. _PrefixedKeys_iterator_closure: function _PrefixedKeys_iterator_closure(t0) {
  10327. this.$this = t0;
  10328. },
  10329. Value: function Value() {
  10330. },
  10331. SassFunction: function SassFunction(t0) {
  10332. this.callable = t0;
  10333. },
  10334. _FindDependenciesVisitor: function _FindDependenciesVisitor(t0, t1) {
  10335. this._usesAndForwards = t0;
  10336. this._imports = t1;
  10337. },
  10338. Extender__extendOrReplace0: function(selector, source, targets, mode) {
  10339. var t2, t3, _i, complex, t4, t5, t6, _i0, extender, _null = null,
  10340. t1 = P.LinkedHashMap_LinkedHashMap$_empty(type$.ComplexSelector_2, type$.Extension_2);
  10341. for (t2 = source.components, t3 = t2.length, _i = 0; _i < t3; ++_i) {
  10342. complex = t2[_i];
  10343. if (complex._complex0$_maxSpecificity == null)
  10344. complex._complex0$_computeSpecificity$0();
  10345. t4 = complex._complex0$_maxSpecificity;
  10346. t1.$indexSet(0, complex, new S.Extension0(complex, _null, t4, true, false, _null, _null, _null));
  10347. }
  10348. t2 = H.setRuntimeTypeInfo([], type$.JSArray_CompoundSelector_2);
  10349. for (t3 = targets.components, t4 = t3.length, t5 = type$.CompoundSelector_2, _i = 0; _i < t4; ++_i) {
  10350. complex = t3[_i];
  10351. t6 = complex.components;
  10352. if (t6.length !== 1)
  10353. t2.push(H.throwExpression(E.SassScriptException$0("Can't extend complex selector " + H.S(complex) + ".")));
  10354. else
  10355. t2.push(t5._as(C.JSArray_methods.get$first(t6)));
  10356. }
  10357. t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.SimpleSelector_2, type$.Map_ComplexSelector_Extension_2);
  10358. for (t4 = t2.length, _i = 0; _i < t2.length; t2.length === t4 || (0, H.throwConcurrentModificationError)(t2), ++_i)
  10359. for (t5 = t2[_i].components, t6 = t5.length, _i0 = 0; _i0 < t6; ++_i0)
  10360. t3.$indexSet(0, t5[_i0], t1);
  10361. extender = F.Extender$_mode0(mode);
  10362. if (!selector.get$isInvisible())
  10363. extender._extender$_originals.addAll$1(0, selector.components);
  10364. return extender._extender$_extendList$3(selector, t3, _null);
  10365. },
  10366. Extender$_mode0: function(_mode) {
  10367. var t1 = type$.SimpleSelector_2;
  10368. return new F.Extender0(P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Set_ModifiableCssValue_SelectorList_2), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Map_ComplexSelector_Extension_2), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.List_Extension_2), P.LinkedHashMap_LinkedHashMap$_empty(type$.ModifiableCssValue_SelectorList_2, type$.List_CssMediaQuery_2), P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6(t1, type$.int), new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_ComplexSelector_2), _mode);
  10369. },
  10370. Extender0: function Extender0(t0, t1, t2, t3, t4, t5, t6) {
  10371. var _ = this;
  10372. _._extender$_selectors = t0;
  10373. _._extender$_extensions = t1;
  10374. _._extender$_extensionsByExtender = t2;
  10375. _._extender$_mediaContexts = t3;
  10376. _._extender$_sourceSpecificity = t4;
  10377. _._extender$_originals = t5;
  10378. _._extender$_mode = t6;
  10379. },
  10380. Extender_extensionsWhereTarget_closure0: function Extender_extensionsWhereTarget_closure0() {
  10381. },
  10382. Extender__registerSelector_closure0: function Extender__registerSelector_closure0() {
  10383. },
  10384. Extender_addExtension_closure2: function Extender_addExtension_closure2() {
  10385. },
  10386. Extender_addExtension_closure3: function Extender_addExtension_closure3() {
  10387. },
  10388. Extender_addExtension_closure4: function Extender_addExtension_closure4(t0) {
  10389. this.complex = t0;
  10390. },
  10391. Extender__extendExistingExtensions_closure1: function Extender__extendExistingExtensions_closure1() {
  10392. },
  10393. Extender__extendExistingExtensions_closure2: function Extender__extendExistingExtensions_closure2() {
  10394. },
  10395. Extender_addExtensions_closure0: function Extender_addExtensions_closure0(t0, t1, t2) {
  10396. this._box_0 = t0;
  10397. this.$this = t1;
  10398. this.extender = t2;
  10399. },
  10400. Extender_addExtensions__closure0: function Extender_addExtensions__closure0(t0, t1, t2, t3, t4) {
  10401. var _ = this;
  10402. _._box_0 = t0;
  10403. _.existingSources = t1;
  10404. _.extensionsForTarget = t2;
  10405. _.selectorsForTarget = t3;
  10406. _.target = t4;
  10407. },
  10408. Extender_addExtensions___closure1: function Extender_addExtensions___closure1() {
  10409. },
  10410. Extender_addExtensions___closure2: function Extender_addExtensions___closure2(t0) {
  10411. this.extension = t0;
  10412. },
  10413. Extender__extendList_closure0: function Extender__extendList_closure0() {
  10414. },
  10415. Extender__extendComplex_closure1: function Extender__extendComplex_closure1(t0) {
  10416. this.complex = t0;
  10417. },
  10418. Extender__extendComplex_closure2: function Extender__extendComplex_closure2(t0, t1, t2) {
  10419. this._box_0 = t0;
  10420. this.$this = t1;
  10421. this.complex = t2;
  10422. },
  10423. Extender__extendComplex__closure1: function Extender__extendComplex__closure1() {
  10424. },
  10425. Extender__extendComplex__closure2: function Extender__extendComplex__closure2(t0, t1, t2, t3) {
  10426. var _ = this;
  10427. _._box_0 = t0;
  10428. _.$this = t1;
  10429. _.complex = t2;
  10430. _.path = t3;
  10431. },
  10432. Extender__extendComplex___closure0: function Extender__extendComplex___closure0() {
  10433. },
  10434. Extender__extendCompound_closure3: function Extender__extendCompound_closure3(t0) {
  10435. this.mediaQueryContext = t0;
  10436. },
  10437. Extender__extendCompound_closure4: function Extender__extendCompound_closure4(t0, t1) {
  10438. this._box_1 = t0;
  10439. this.mediaQueryContext = t1;
  10440. },
  10441. Extender__extendCompound__closure1: function Extender__extendCompound__closure1() {
  10442. },
  10443. Extender__extendCompound__closure2: function Extender__extendCompound__closure2(t0) {
  10444. this._box_0 = t0;
  10445. },
  10446. Extender__extendCompound_closure5: function Extender__extendCompound_closure5() {
  10447. },
  10448. Extender__extendCompound_closure6: function Extender__extendCompound_closure6() {
  10449. },
  10450. Extender__extendSimple_withoutPseudo0: function Extender__extendSimple_withoutPseudo0(t0, t1, t2) {
  10451. this.$this = t0;
  10452. this.extensions = t1;
  10453. this.targetsUsed = t2;
  10454. },
  10455. Extender__extendSimple_closure0: function Extender__extendSimple_closure0(t0, t1) {
  10456. this.$this = t0;
  10457. this.withoutPseudo = t1;
  10458. },
  10459. Extender__extendPseudo_closure4: function Extender__extendPseudo_closure4() {
  10460. },
  10461. Extender__extendPseudo_closure5: function Extender__extendPseudo_closure5() {
  10462. },
  10463. Extender__extendPseudo_closure6: function Extender__extendPseudo_closure6() {
  10464. },
  10465. Extender__extendPseudo_closure7: function Extender__extendPseudo_closure7(t0) {
  10466. this.pseudo = t0;
  10467. },
  10468. Extender__extendPseudo_closure8: function Extender__extendPseudo_closure8(t0) {
  10469. this.pseudo = t0;
  10470. },
  10471. Extender__trim_closure1: function Extender__trim_closure1(t0, t1) {
  10472. this._box_0 = t0;
  10473. this.complex1 = t1;
  10474. },
  10475. Extender__trim_closure2: function Extender__trim_closure2(t0, t1) {
  10476. this._box_0 = t0;
  10477. this.complex1 = t1;
  10478. },
  10479. Extender_clone_closure0: function Extender_clone_closure0(t0, t1, t2, t3) {
  10480. var _ = this;
  10481. _.$this = t0;
  10482. _.newSelectors = t1;
  10483. _.oldToNewSelectors = t2;
  10484. _.newMediaContexts = t3;
  10485. },
  10486. FilesystemImporter0: function FilesystemImporter0(t0) {
  10487. this._filesystem$_loadPath = t0;
  10488. },
  10489. FunctionExpression0: function FunctionExpression0(t0, t1, t2, t3) {
  10490. var _ = this;
  10491. _.namespace = t0;
  10492. _.name = t1;
  10493. _.$arguments = t2;
  10494. _.span = t3;
  10495. },
  10496. JSFunction0: function JSFunction0() {
  10497. },
  10498. SassFunction0: function SassFunction0(t0) {
  10499. this.callable = t0;
  10500. },
  10501. NodeImporter__addSassPath: function($async$includePaths) {
  10502. return P._makeSyncStarIterable(function() {
  10503. var includePaths = $async$includePaths;
  10504. var $async$goto = 0, $async$handler = 2, $async$currentError, sassPath;
  10505. return function $async$NodeImporter__addSassPath($async$errorCode, $async$result) {
  10506. if ($async$errorCode === 1) {
  10507. $async$currentError = $async$result;
  10508. $async$goto = $async$handler;
  10509. }
  10510. while (true)
  10511. switch ($async$goto) {
  10512. case 0:
  10513. // Function start
  10514. $async$goto = 3;
  10515. return P._IterationMarker_yieldStar(includePaths);
  10516. case 3:
  10517. // after yield
  10518. sassPath = H._asStringNullable(J.get$env$x(self.process).SASS_PATH);
  10519. if (sassPath == null) {
  10520. // goto return
  10521. $async$goto = 1;
  10522. break;
  10523. }
  10524. $async$goto = 4;
  10525. return P._IterationMarker_yieldStar(H.setRuntimeTypeInfo(sassPath.split(J.$eq$(J.get$platform$x(self.process), "win32") ? ";" : ":"), type$.JSArray_String));
  10526. case 4:
  10527. // after yield
  10528. case 1:
  10529. // return
  10530. return P._IterationMarker_endOfIteration();
  10531. case 2:
  10532. // rethrow
  10533. return P._IterationMarker_uncaughtError($async$currentError);
  10534. }
  10535. };
  10536. }, type$.String);
  10537. },
  10538. NodeImporter: function NodeImporter(t0, t1, t2) {
  10539. this._implementation$_context = t0;
  10540. this._includePaths = t1;
  10541. this._implementation$_importers = t2;
  10542. },
  10543. NodeImporter__tryPath_closure: function NodeImporter__tryPath_closure(t0) {
  10544. this.path = t0;
  10545. },
  10546. ModifiableCssImport$0: function(url, span, media, supports) {
  10547. return new F.ModifiableCssImport0(url, supports, media == null ? null : P.List_List$unmodifiable(media, type$.CssMediaQuery_2), span);
  10548. },
  10549. ModifiableCssImport0: function ModifiableCssImport0(t0, t1, t2, t3) {
  10550. var _ = this;
  10551. _.url = t0;
  10552. _.supports = t1;
  10553. _.media = t2;
  10554. _.span = t3;
  10555. _._node2$_indexInParent = _._node2$_parent = null;
  10556. _.isGroupEnd = false;
  10557. },
  10558. Import0: function Import0() {
  10559. },
  10560. NodeImporterResult0: function NodeImporterResult0() {
  10561. },
  10562. realCasePath0: function(path) {
  10563. var t1, basename, matches;
  10564. if (!(J.$eq$(J.get$platform$x(self.process), "win32") || J.$eq$(J.get$platform$x(self.process), "darwin")))
  10565. return path;
  10566. t1 = $.$get$context();
  10567. basename = X.ParsedPath_ParsedPath$parse(path, t1.style).get$basename();
  10568. matches = J.where$1$ax(B.listDir0(t1.dirname$1(path)), new F.realCasePath_closure0(basename)).toList$0(0);
  10569. if (matches.length !== 1)
  10570. return path;
  10571. return C.JSArray_methods.get$first(matches);
  10572. },
  10573. realCasePath_closure0: function realCasePath_closure0(t0) {
  10574. this.basename = t0;
  10575. },
  10576. CssMediaQuery$0: function(type, features, modifier) {
  10577. return new F.CssMediaQuery0(modifier, type, features == null ? C.List_empty : P.List_List$unmodifiable(features, type$.String));
  10578. },
  10579. CssMediaQuery0: function CssMediaQuery0(t0, t1, t2) {
  10580. this.modifier = t0;
  10581. this.type = t1;
  10582. this.features = t2;
  10583. },
  10584. _SingletonCssMediaQueryMergeResult0: function _SingletonCssMediaQueryMergeResult0(t0) {
  10585. this._media_query1$_name = t0;
  10586. },
  10587. MediaQuerySuccessfulMergeResult0: function MediaQuerySuccessfulMergeResult0(t0) {
  10588. this.query = t0;
  10589. },
  10590. MediaQueryParser0: function MediaQueryParser0(t0, t1) {
  10591. this.scanner = t0;
  10592. this.logger = t1;
  10593. },
  10594. MediaQueryParser_parse_closure0: function MediaQueryParser_parse_closure0(t0) {
  10595. this.$this = t0;
  10596. },
  10597. PrefixedMapView0: function PrefixedMapView0(t0, t1, t2) {
  10598. this._prefixed_map_view0$_map = t0;
  10599. this._prefixed_map_view0$_prefix = t1;
  10600. this.$ti = t2;
  10601. },
  10602. _PrefixedKeys0: function _PrefixedKeys0(t0) {
  10603. this._prefixed_map_view0$_view = t0;
  10604. },
  10605. _PrefixedKeys_iterator_closure0: function _PrefixedKeys_iterator_closure0(t0) {
  10606. this.$this = t0;
  10607. },
  10608. TypeSelector0: function TypeSelector0(t0) {
  10609. this.name = t0;
  10610. },
  10611. CssValue0: function CssValue0(t0, t1, t2) {
  10612. this.value = t0;
  10613. this.span = t1;
  10614. this.$ti = t2;
  10615. },
  10616. ValueExpression0: function ValueExpression0(t0, t1) {
  10617. this.value = t0;
  10618. this.span = t1;
  10619. },
  10620. ModifiableCssValue0: function ModifiableCssValue0(t0, t1, t2) {
  10621. this.value = t0;
  10622. this.span = t1;
  10623. this.$ti = t2;
  10624. },
  10625. Value0: function Value0() {
  10626. },
  10627. unwrapValue: function(object) {
  10628. var value, t1;
  10629. if (object != null) {
  10630. if (object instanceof F.Value0)
  10631. return object;
  10632. value = object.dartValue;
  10633. if (value != null && value instanceof F.Value0)
  10634. return value;
  10635. t1 = self.Error;
  10636. if (H._asBoolNullable($.$get$_jsInstanceOf().call$2(object, t1)))
  10637. throw H.wrapException(object);
  10638. }
  10639. throw H.wrapException(H.S(object) + " must be a Sass value type.");
  10640. },
  10641. wrapValue: function(value) {
  10642. if (value instanceof K.SassColor0)
  10643. return P.callConstructor($.$get$colorConstructor(), [null, null, null, null, value]);
  10644. if (value instanceof D.SassList0)
  10645. return P.callConstructor($.$get$listConstructor(), [null, null, value]);
  10646. if (value instanceof A.SassMap0)
  10647. return P.callConstructor($.$get$mapConstructor(), [null, value]);
  10648. if (value instanceof T.SassNumber0)
  10649. return P.callConstructor($.$get$numberConstructor(), [null, null, value]);
  10650. if (value instanceof D.SassString0)
  10651. return P.callConstructor($.$get$stringConstructor(), [null, value]);
  10652. return value;
  10653. }
  10654. },
  10655. Y = {StreamCompleter: function StreamCompleter(t0, t1) {
  10656. this._stream_completer$_stream = t0;
  10657. this.$ti = t1;
  10658. }, _CompleterStream: function _CompleterStream(t0) {
  10659. this._sourceStream = this._stream_completer$_controller = null;
  10660. this.$ti = t0;
  10661. },
  10662. mapMap: function(map, key, value, K1, V1, K2, V2) {
  10663. var result, t1 = {};
  10664. t1.key = key;
  10665. t1.value = value;
  10666. if (key == null)
  10667. t1.key = new Y.mapMap_closure(K2, K1, V1);
  10668. if (value == null)
  10669. t1.value = new Y.mapMap_closure0(V2, K1, V1);
  10670. result = P.LinkedHashMap_LinkedHashMap$_empty(K2, V2);
  10671. map.forEach$1(0, new Y.mapMap_closure1(t1, result, K1, V1));
  10672. return result;
  10673. },
  10674. mergeMaps: function(map1, map2, $K, $V) {
  10675. var result = P.LinkedHashMap_LinkedHashMap$from(map1, $K, $V);
  10676. result.addAll$1(0, map2);
  10677. return result;
  10678. },
  10679. groupBy: function(values, key, $S, $T) {
  10680. var t1, _i, element,
  10681. map = P.LinkedHashMap_LinkedHashMap$_empty($T, $S._eval$1("List<0>"));
  10682. for (t1 = values.length, _i = 0; _i < values.length; values.length === t1 || (0, H.throwConcurrentModificationError)(values), ++_i) {
  10683. element = values[_i];
  10684. J.add$1$ax(map.putIfAbsent$2(key.call$1(element), new Y.groupBy_closure($S)), element);
  10685. }
  10686. return map;
  10687. },
  10688. minBy: function(values, orderBy, $S, $T) {
  10689. var t1, minValue, minOrderBy, element, elementOrderBy,
  10690. compare = B.defaultCompare($T);
  10691. for (t1 = new H.MappedIterator(J.get$iterator$ax(values.__internal$_iterable), values._f), minValue = null, minOrderBy = null; t1.moveNext$0();) {
  10692. element = t1.__internal$_current;
  10693. elementOrderBy = orderBy.call$1(element);
  10694. if (minOrderBy == null || compare.call$2(elementOrderBy, minOrderBy) < 0) {
  10695. minOrderBy = elementOrderBy;
  10696. minValue = element;
  10697. }
  10698. }
  10699. return minValue;
  10700. },
  10701. mapMap_closure: function mapMap_closure(t0, t1, t2) {
  10702. this.K2 = t0;
  10703. this.K1 = t1;
  10704. this.V1 = t2;
  10705. },
  10706. mapMap_closure0: function mapMap_closure0(t0, t1, t2) {
  10707. this.V2 = t0;
  10708. this.K1 = t1;
  10709. this.V1 = t2;
  10710. },
  10711. mapMap_closure1: function mapMap_closure1(t0, t1, t2, t3) {
  10712. var _ = this;
  10713. _._box_0 = t0;
  10714. _.result = t1;
  10715. _.K1 = t2;
  10716. _.V1 = t3;
  10717. },
  10718. groupBy_closure: function groupBy_closure(t0) {
  10719. this.S = t0;
  10720. },
  10721. ContentBlock: function ContentBlock(t0, t1, t2, t3, t4) {
  10722. var _ = this;
  10723. _.name = t0;
  10724. _.$arguments = t1;
  10725. _.span = t2;
  10726. _.children = t3;
  10727. _.hasDeclarations = t4;
  10728. },
  10729. WarnRule: function WarnRule(t0, t1) {
  10730. this.expression = t0;
  10731. this.span = t1;
  10732. },
  10733. unifyComplex: function(complexes) {
  10734. var t2, unifiedBase, base, t3, t4, _i, complexesWithoutBases,
  10735. t1 = J.getInterceptor$asx(complexes);
  10736. if (t1.get$length(complexes) === 1)
  10737. return complexes;
  10738. for (t2 = t1.get$iterator(complexes), unifiedBase = null; t2.moveNext$0();) {
  10739. base = J.get$last$ax(t2.get$current(t2));
  10740. if (base instanceof X.CompoundSelector)
  10741. if (unifiedBase == null)
  10742. unifiedBase = base.components;
  10743. else
  10744. for (t3 = base.components, t4 = t3.length, _i = 0; _i < t4; ++_i) {
  10745. unifiedBase = t3[_i].unify$1(unifiedBase);
  10746. if (unifiedBase == null)
  10747. return null;
  10748. }
  10749. else
  10750. return null;
  10751. }
  10752. complexesWithoutBases = t1.map$1$1(complexes, new Y.unifyComplex_closure(), type$.List_ComplexSelectorComponent).toList$0(0);
  10753. J.add$1$ax(C.JSArray_methods.get$last(complexesWithoutBases), X.CompoundSelector$(unifiedBase));
  10754. return Y.weave(complexesWithoutBases);
  10755. },
  10756. unifyCompound: function(compound1, compound2) {
  10757. var t1, result, _i;
  10758. for (t1 = compound1.length, result = compound2, _i = 0; _i < t1; ++_i) {
  10759. result = compound1[_i].unify$1(result);
  10760. if (result == null)
  10761. return null;
  10762. }
  10763. return X.CompoundSelector$(result);
  10764. },
  10765. unifyUniversalAndElement: function(selector1, selector2) {
  10766. var namespace1, name1, t1, namespace2, name2, namespace, $name, _null = null,
  10767. _s45_ = "must be a UniversalSelector or a TypeSelector";
  10768. if (selector1 instanceof N.UniversalSelector) {
  10769. namespace1 = selector1.namespace;
  10770. name1 = _null;
  10771. } else if (selector1 instanceof F.TypeSelector) {
  10772. t1 = selector1.name;
  10773. namespace1 = t1.namespace;
  10774. name1 = t1.name;
  10775. } else
  10776. throw H.wrapException(P.ArgumentError$value(selector1, "selector1", _s45_));
  10777. if (selector2 instanceof N.UniversalSelector) {
  10778. namespace2 = selector2.namespace;
  10779. name2 = _null;
  10780. } else if (selector2 instanceof F.TypeSelector) {
  10781. t1 = selector2.name;
  10782. namespace2 = t1.namespace;
  10783. name2 = t1.name;
  10784. } else
  10785. throw H.wrapException(P.ArgumentError$value(selector2, "selector2", _s45_));
  10786. if (namespace1 == namespace2 || namespace2 === "*")
  10787. namespace = namespace1;
  10788. else {
  10789. if (namespace1 !== "*")
  10790. return _null;
  10791. namespace = namespace2;
  10792. }
  10793. if (name1 == name2 || name2 == null)
  10794. $name = name1;
  10795. else {
  10796. if (!(name1 == null || name1 === "*"))
  10797. return _null;
  10798. $name = name2;
  10799. }
  10800. return $name == null ? new N.UniversalSelector(namespace) : new F.TypeSelector(new D.QualifiedName($name, namespace));
  10801. },
  10802. weave: function(complexes) {
  10803. var t2, t3, t4, target, _i, parents, newPrefixes, parentPrefixes, t5,
  10804. t1 = type$.JSArray_List_ComplexSelectorComponent,
  10805. prefixes = H.setRuntimeTypeInfo([J.toList$0$ax(C.JSArray_methods.get$first(complexes))], t1);
  10806. for (t2 = H.SubListIterable$(complexes, 1, null, H._arrayInstanceType(complexes)._precomputed1), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  10807. t3 = t2.__internal$_current;
  10808. t4 = J.getInterceptor$asx(t3);
  10809. if (t4.get$isEmpty(t3))
  10810. continue;
  10811. target = t4.get$last(t3);
  10812. if (t4.get$length(t3) === 1) {
  10813. for (t3 = prefixes.length, _i = 0; _i < prefixes.length; prefixes.length === t3 || (0, H.throwConcurrentModificationError)(prefixes), ++_i)
  10814. J.add$1$ax(prefixes[_i], target);
  10815. continue;
  10816. }
  10817. parents = t4.take$1(t3, t4.get$length(t3) - 1).toList$0(0);
  10818. newPrefixes = H.setRuntimeTypeInfo([], t1);
  10819. for (t3 = prefixes.length, _i = 0; _i < prefixes.length; prefixes.length === t3 || (0, H.throwConcurrentModificationError)(prefixes), ++_i) {
  10820. parentPrefixes = Y._weaveParents(prefixes[_i], parents);
  10821. if (parentPrefixes == null)
  10822. continue;
  10823. for (t4 = parentPrefixes.get$iterator(parentPrefixes); t4.moveNext$0();) {
  10824. t5 = t4.get$current(t4);
  10825. J.add$1$ax(t5, target);
  10826. newPrefixes.push(t5);
  10827. }
  10828. }
  10829. prefixes = newPrefixes;
  10830. }
  10831. return prefixes;
  10832. },
  10833. _weaveParents: function(parents1, parents2) {
  10834. var finalCombinators, root1, root2, root, groups1, groups2, lcs, t2, choices, t3, _i, group, t4, _null = null,
  10835. t1 = type$.ComplexSelectorComponent,
  10836. queue1 = P.ListQueue_ListQueue$of(parents1, t1),
  10837. queue2 = P.ListQueue_ListQueue$of(parents2, t1),
  10838. initialCombinators = Y._mergeInitialCombinators(queue1, queue2);
  10839. if (initialCombinators == null)
  10840. return _null;
  10841. finalCombinators = Y._mergeFinalCombinators(queue1, queue2, _null);
  10842. if (finalCombinators == null)
  10843. return _null;
  10844. root1 = Y._firstIfRoot(queue1);
  10845. root2 = Y._firstIfRoot(queue2);
  10846. t1 = root1 != null;
  10847. if (t1 && root2 != null) {
  10848. root = Y.unifyCompound(root1.components, root2.components);
  10849. if (root == null)
  10850. return _null;
  10851. queue1.addFirst$1(root);
  10852. queue2.addFirst$1(root);
  10853. } else if (t1)
  10854. queue2.addFirst$1(root1);
  10855. else if (root2 != null)
  10856. queue1.addFirst$1(root2);
  10857. groups1 = Y._groupSelectors(queue1);
  10858. groups2 = Y._groupSelectors(queue2);
  10859. t1 = type$.List_ComplexSelectorComponent;
  10860. lcs = B.longestCommonSubsequence(groups2, groups1, new Y._weaveParents_closure(), t1);
  10861. t2 = type$.JSArray_Iterable_ComplexSelectorComponent;
  10862. choices = H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([initialCombinators], t2)], type$.JSArray_List_Iterable_ComplexSelectorComponent);
  10863. for (t3 = lcs.length, _i = 0; _i < lcs.length; lcs.length === t3 || (0, H.throwConcurrentModificationError)(lcs), ++_i) {
  10864. group = lcs[_i];
  10865. t4 = Y._chunks(groups1, groups2, new Y._weaveParents_closure0(group), t1);
  10866. choices.push(new H.MappedListIterable(t4, new Y._weaveParents_closure1(), H._arrayInstanceType(t4)._eval$1("MappedListIterable<1,Iterable<ComplexSelectorComponent>>")).toList$0(0));
  10867. choices.push(H.setRuntimeTypeInfo([group], t2));
  10868. groups1.removeFirst$0();
  10869. groups2.removeFirst$0();
  10870. }
  10871. t2 = Y._chunks(groups1, groups2, new Y._weaveParents_closure2(), t1);
  10872. choices.push(new H.MappedListIterable(t2, new Y._weaveParents_closure3(), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Iterable<ComplexSelectorComponent>>")).toList$0(0));
  10873. C.JSArray_methods.addAll$1(choices, finalCombinators);
  10874. return J.map$1$1$ax(Y.paths(new H.WhereIterable(choices, new Y._weaveParents_closure4(), type$.WhereIterable_List_Iterable_ComplexSelectorComponent), type$.Iterable_ComplexSelectorComponent), new Y._weaveParents_closure5(), t1);
  10875. },
  10876. _firstIfRoot: function(queue) {
  10877. var first;
  10878. if (queue._collection$_head === queue._collection$_tail)
  10879. return null;
  10880. first = queue.get$first(queue);
  10881. if (first instanceof X.CompoundSelector) {
  10882. if (!Y._hasRoot(first))
  10883. return null;
  10884. queue.removeFirst$0();
  10885. return first;
  10886. } else
  10887. return null;
  10888. },
  10889. _mergeInitialCombinators: function(components1, components2) {
  10890. var t3, combinators2, lcs,
  10891. t1 = type$.JSArray_Combinator,
  10892. combinators1 = H.setRuntimeTypeInfo([], t1),
  10893. t2 = type$.Combinator;
  10894. while (true) {
  10895. if (!components1.get$isEmpty(components1)) {
  10896. t3 = components1._collection$_head;
  10897. if (t3 === components1._collection$_tail)
  10898. H.throwExpression(H.IterableElementError_noElement());
  10899. t3 = components1._collection$_table[t3] instanceof S.Combinator;
  10900. } else
  10901. t3 = false;
  10902. if (!t3)
  10903. break;
  10904. combinators1.push(t2._as(components1.removeFirst$0()));
  10905. }
  10906. combinators2 = H.setRuntimeTypeInfo([], t1);
  10907. while (true) {
  10908. if (!components2.get$isEmpty(components2)) {
  10909. t1 = components2._collection$_head;
  10910. if (t1 === components2._collection$_tail)
  10911. H.throwExpression(H.IterableElementError_noElement());
  10912. t1 = components2._collection$_table[t1] instanceof S.Combinator;
  10913. } else
  10914. t1 = false;
  10915. if (!t1)
  10916. break;
  10917. combinators2.push(t2._as(components2.removeFirst$0()));
  10918. }
  10919. lcs = B.longestCommonSubsequence(combinators1, combinators2, null, t2);
  10920. if (C.C_ListEquality.equals$2(lcs, combinators1))
  10921. return combinators2;
  10922. if (C.C_ListEquality.equals$2(lcs, combinators2))
  10923. return combinators1;
  10924. return null;
  10925. },
  10926. _mergeFinalCombinators: function(components1, components2, result) {
  10927. var t1, combinators1, t2, combinators2, lcs, combinator1, combinator2, compound1, compound2, choices, unified, followingSiblingSelector, nextSiblingSelector, _null = null;
  10928. if (result == null)
  10929. result = Q.QueueList$(_null, type$.List_List_ComplexSelectorComponent);
  10930. if (components1._collection$_head === components1._collection$_tail || !(components1.get$last(components1) instanceof S.Combinator))
  10931. t1 = components2._collection$_head === components2._collection$_tail || !(components2.get$last(components2) instanceof S.Combinator);
  10932. else
  10933. t1 = false;
  10934. if (t1)
  10935. return result;
  10936. t1 = type$.JSArray_Combinator;
  10937. combinators1 = H.setRuntimeTypeInfo([], t1);
  10938. t2 = type$.Combinator;
  10939. while (true) {
  10940. if (!(!components1.get$isEmpty(components1) && components1.get$last(components1) instanceof S.Combinator))
  10941. break;
  10942. combinators1.push(t2._as(components1.removeLast$0(0)));
  10943. }
  10944. combinators2 = H.setRuntimeTypeInfo([], t1);
  10945. while (true) {
  10946. if (!(!components2.get$isEmpty(components2) && components2.get$last(components2) instanceof S.Combinator))
  10947. break;
  10948. combinators2.push(t2._as(components2.removeLast$0(0)));
  10949. }
  10950. t1 = combinators1.length;
  10951. if (t1 > 1 || combinators2.length > 1) {
  10952. lcs = B.longestCommonSubsequence(combinators1, combinators2, _null, t2);
  10953. if (C.C_ListEquality.equals$2(lcs, combinators1))
  10954. result.addFirst$1(H.setRuntimeTypeInfo([P.List_List$from(new H.ReversedListIterable(combinators2, type$.ReversedListIterable_Combinator), true, type$.ComplexSelectorComponent)], type$.JSArray_List_ComplexSelectorComponent));
  10955. else if (C.C_ListEquality.equals$2(lcs, combinators2))
  10956. result.addFirst$1(H.setRuntimeTypeInfo([P.List_List$from(new H.ReversedListIterable(combinators1, type$.ReversedListIterable_Combinator), true, type$.ComplexSelectorComponent)], type$.JSArray_List_ComplexSelectorComponent));
  10957. else
  10958. return _null;
  10959. return result;
  10960. }
  10961. combinator1 = t1 === 0 ? _null : C.JSArray_methods.get$first(combinators1);
  10962. combinator2 = combinators2.length === 0 ? _null : C.JSArray_methods.get$first(combinators2);
  10963. t1 = combinator1 != null;
  10964. if (t1 && combinator2 != null) {
  10965. t1 = type$.CompoundSelector;
  10966. compound1 = t1._as(components1.removeLast$0(0));
  10967. compound2 = t1._as(components2.removeLast$0(0));
  10968. t1 = combinator1 === C.Combinator_CzM;
  10969. if (t1 && combinator2 === C.Combinator_CzM) {
  10970. compound1.toString;
  10971. if (Y.compoundIsSuperselector(compound1, compound2, _null))
  10972. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound2, C.Combinator_CzM], type$.JSArray_ComplexSelectorComponent)], type$.JSArray_List_ComplexSelectorComponent));
  10973. else {
  10974. compound2.toString;
  10975. t1 = type$.JSArray_ComplexSelectorComponent;
  10976. t2 = type$.JSArray_List_ComplexSelectorComponent;
  10977. if (Y.compoundIsSuperselector(compound2, compound1, _null))
  10978. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound1, C.Combinator_CzM], t1)], t2));
  10979. else {
  10980. choices = H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound1, C.Combinator_CzM, compound2, C.Combinator_CzM], t1), H.setRuntimeTypeInfo([compound2, C.Combinator_CzM, compound1, C.Combinator_CzM], t1)], t2);
  10981. unified = Y.unifyCompound(compound1.components, compound2.components);
  10982. if (unified != null)
  10983. choices.push(H.setRuntimeTypeInfo([unified, C.Combinator_CzM], t1));
  10984. result.addFirst$1(choices);
  10985. }
  10986. }
  10987. } else {
  10988. if (!(t1 && combinator2 === C.Combinator_uzg))
  10989. t2 = combinator1 === C.Combinator_uzg && combinator2 === C.Combinator_CzM;
  10990. else
  10991. t2 = true;
  10992. if (t2) {
  10993. followingSiblingSelector = t1 ? compound1 : compound2;
  10994. nextSiblingSelector = t1 ? compound2 : compound1;
  10995. followingSiblingSelector.toString;
  10996. t1 = type$.JSArray_ComplexSelectorComponent;
  10997. t2 = type$.JSArray_List_ComplexSelectorComponent;
  10998. if (Y.compoundIsSuperselector(followingSiblingSelector, nextSiblingSelector, _null))
  10999. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([nextSiblingSelector, C.Combinator_uzg], t1)], t2));
  11000. else {
  11001. unified = Y.unifyCompound(compound1.components, compound2.components);
  11002. t2 = H.setRuntimeTypeInfo([], t2);
  11003. t2.push(H.setRuntimeTypeInfo([followingSiblingSelector, C.Combinator_CzM, nextSiblingSelector, C.Combinator_uzg], t1));
  11004. if (unified != null)
  11005. t2.push(H.setRuntimeTypeInfo([unified, C.Combinator_uzg], t1));
  11006. result.addFirst$1(t2);
  11007. }
  11008. } else {
  11009. if (combinator1 === C.Combinator_sgq)
  11010. t2 = combinator2 === C.Combinator_uzg || combinator2 === C.Combinator_CzM;
  11011. else
  11012. t2 = false;
  11013. if (t2) {
  11014. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound2, combinator2], type$.JSArray_ComplexSelectorComponent)], type$.JSArray_List_ComplexSelectorComponent));
  11015. components1._add$1(compound1);
  11016. components1._add$1(C.Combinator_sgq);
  11017. } else {
  11018. if (combinator2 === C.Combinator_sgq)
  11019. t1 = combinator1 === C.Combinator_uzg || t1;
  11020. else
  11021. t1 = false;
  11022. if (t1) {
  11023. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound1, combinator1], type$.JSArray_ComplexSelectorComponent)], type$.JSArray_List_ComplexSelectorComponent));
  11024. components2._add$1(compound2);
  11025. components2._add$1(C.Combinator_sgq);
  11026. } else if (combinator1 === combinator2) {
  11027. unified = Y.unifyCompound(compound1.components, compound2.components);
  11028. if (unified == null)
  11029. return _null;
  11030. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([unified, combinator1], type$.JSArray_ComplexSelectorComponent)], type$.JSArray_List_ComplexSelectorComponent));
  11031. } else
  11032. return _null;
  11033. }
  11034. }
  11035. }
  11036. return Y._mergeFinalCombinators(components1, components2, result);
  11037. } else if (t1) {
  11038. if (combinator1 === C.Combinator_sgq)
  11039. if (!components2.get$isEmpty(components2)) {
  11040. t1 = type$.CompoundSelector;
  11041. t2 = t1._as(components2.get$last(components2));
  11042. t1 = t1._as(components1.get$last(components1));
  11043. t2.toString;
  11044. t1 = Y.compoundIsSuperselector(t2, t1, _null);
  11045. } else
  11046. t1 = false;
  11047. else
  11048. t1 = false;
  11049. if (t1)
  11050. components2.removeLast$0(0);
  11051. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([components1.removeLast$0(0), combinator1], type$.JSArray_ComplexSelectorComponent)], type$.JSArray_List_ComplexSelectorComponent));
  11052. return Y._mergeFinalCombinators(components1, components2, result);
  11053. } else {
  11054. if (combinator2 === C.Combinator_sgq)
  11055. if (!components1.get$isEmpty(components1)) {
  11056. t1 = type$.CompoundSelector;
  11057. t2 = t1._as(components1.get$last(components1));
  11058. t1 = t1._as(components2.get$last(components2));
  11059. t2.toString;
  11060. t1 = Y.compoundIsSuperselector(t2, t1, _null);
  11061. } else
  11062. t1 = false;
  11063. else
  11064. t1 = false;
  11065. if (t1)
  11066. components1.removeLast$0(0);
  11067. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([components2.removeLast$0(0), combinator2], type$.JSArray_ComplexSelectorComponent)], type$.JSArray_List_ComplexSelectorComponent));
  11068. return Y._mergeFinalCombinators(components1, components2, result);
  11069. }
  11070. },
  11071. _mustUnify: function(complex1, complex2) {
  11072. var t2, t3, t4,
  11073. t1 = P.LinkedHashSet_LinkedHashSet(type$.SimpleSelector);
  11074. for (t2 = J.get$iterator$ax(complex1); t2.moveNext$0();) {
  11075. t3 = t2.get$current(t2);
  11076. if (t3 instanceof X.CompoundSelector)
  11077. for (t3 = C.JSArray_methods.get$iterator(t3.components), t4 = new H.WhereIterator(t3, Y.functions___isUnique$closure()); t4.moveNext$0();)
  11078. t1.add$1(0, t3.get$current(t3));
  11079. }
  11080. if (t1._collection$_length === 0)
  11081. return false;
  11082. return J.any$1$ax(complex2, new Y._mustUnify_closure(t1));
  11083. },
  11084. _isUnique: function(simple) {
  11085. var t1;
  11086. if (!(simple instanceof N.IDSelector))
  11087. t1 = simple instanceof D.PseudoSelector && !simple.isClass;
  11088. else
  11089. t1 = true;
  11090. return t1;
  11091. },
  11092. _chunks: function(queue1, queue2, done, $T) {
  11093. var chunk2, t2, t3, _i,
  11094. t1 = $T._eval$1("JSArray<0>"),
  11095. chunk1 = H.setRuntimeTypeInfo([], t1);
  11096. for (; !done.call$1(queue1);)
  11097. chunk1.push(queue1.removeFirst$0());
  11098. chunk2 = H.setRuntimeTypeInfo([], t1);
  11099. for (; !done.call$1(queue2);)
  11100. chunk2.push(queue2.removeFirst$0());
  11101. t2 = chunk1.length === 0;
  11102. if (t2 && chunk2.length === 0)
  11103. return H.setRuntimeTypeInfo([], $T._eval$1("JSArray<List<0>>"));
  11104. if (t2)
  11105. return H.setRuntimeTypeInfo([chunk2], $T._eval$1("JSArray<List<0>>"));
  11106. if (chunk2.length === 0)
  11107. return H.setRuntimeTypeInfo([chunk1], $T._eval$1("JSArray<List<0>>"));
  11108. t2 = H.setRuntimeTypeInfo([], t1);
  11109. for (t3 = chunk1.length, _i = 0; _i < chunk1.length; chunk1.length === t3 || (0, H.throwConcurrentModificationError)(chunk1), ++_i)
  11110. t2.push(chunk1[_i]);
  11111. for (t3 = chunk2.length, _i = 0; _i < chunk2.length; chunk2.length === t3 || (0, H.throwConcurrentModificationError)(chunk2), ++_i)
  11112. t2.push(chunk2[_i]);
  11113. t1 = H.setRuntimeTypeInfo([], t1);
  11114. for (t3 = chunk2.length, _i = 0; _i < chunk2.length; chunk2.length === t3 || (0, H.throwConcurrentModificationError)(chunk2), ++_i)
  11115. t1.push(chunk2[_i]);
  11116. for (t3 = chunk1.length, _i = 0; _i < chunk1.length; chunk1.length === t3 || (0, H.throwConcurrentModificationError)(chunk1), ++_i)
  11117. t1.push(chunk1[_i]);
  11118. return H.setRuntimeTypeInfo([t2, t1], $T._eval$1("JSArray<List<0>>"));
  11119. },
  11120. paths: function(choices, $T) {
  11121. return J.fold$2$ax(choices, H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([], $T._eval$1("JSArray<0>"))], $T._eval$1("JSArray<List<0>>")), new Y.paths_closure($T));
  11122. },
  11123. _groupSelectors: function(complex) {
  11124. var t1, group, t2, t3,
  11125. groups = Q.QueueList$(null, type$.List_ComplexSelectorComponent),
  11126. iterator = P._ListQueueIterator$(complex);
  11127. if (!iterator.moveNext$0())
  11128. return groups;
  11129. t1 = type$.JSArray_ComplexSelectorComponent;
  11130. group = H.setRuntimeTypeInfo([iterator._collection$_current], t1);
  11131. groups._queue_list$_add$1(group);
  11132. for (; iterator.moveNext$0();) {
  11133. t2 = C.JSArray_methods.get$last(group) instanceof S.Combinator || iterator._collection$_current instanceof S.Combinator;
  11134. t3 = iterator._collection$_current;
  11135. if (t2)
  11136. group.push(t3);
  11137. else {
  11138. group = H.setRuntimeTypeInfo([t3], t1);
  11139. groups._queue_list$_add$1(group);
  11140. }
  11141. }
  11142. return groups;
  11143. },
  11144. _hasRoot: function(compound) {
  11145. return C.JSArray_methods.any$1(compound.components, new Y._hasRoot_closure());
  11146. },
  11147. listIsSuperslector: function(list1, list2) {
  11148. return C.JSArray_methods.every$1(list2, new Y.listIsSuperslector_closure(list1));
  11149. },
  11150. complexIsParentSuperselector: function(complex1, complex2) {
  11151. var t2, base, t3, t4,
  11152. t1 = J.getInterceptor$ax(complex1);
  11153. if (t1.get$first(complex1) instanceof S.Combinator)
  11154. return false;
  11155. t2 = J.getInterceptor$ax(complex2);
  11156. if (t2.get$first(complex2) instanceof S.Combinator)
  11157. return false;
  11158. if (t1.get$length(complex1) > t2.get$length(complex2))
  11159. return false;
  11160. base = X.CompoundSelector$(H.setRuntimeTypeInfo([new N.PlaceholderSelector("<temp>")], type$.JSArray_SimpleSelector));
  11161. t3 = type$.JSArray_ComplexSelectorComponent;
  11162. t4 = H.setRuntimeTypeInfo([], t3);
  11163. for (t1 = t1.get$iterator(complex1); t1.moveNext$0();)
  11164. t4.push(t1.get$current(t1));
  11165. t4.push(base);
  11166. t1 = H.setRuntimeTypeInfo([], t3);
  11167. for (t2 = t2.get$iterator(complex2); t2.moveNext$0();)
  11168. t1.push(t2.get$current(t2));
  11169. t1.push(base);
  11170. return Y.complexIsSuperselector(t4, t1);
  11171. },
  11172. complexIsSuperselector: function(complex1, complex2) {
  11173. var t1, t2, i1, i2, remaining1, remaining2, t3, afterSuperselector, afterSuperselector0, t4, compound2, i10, combinator1, combinator2;
  11174. if (C.JSArray_methods.get$last(complex1) instanceof S.Combinator)
  11175. return false;
  11176. if (C.JSArray_methods.get$last(complex2) instanceof S.Combinator)
  11177. return false;
  11178. for (t1 = H._arrayInstanceType(complex2)._precomputed1, t2 = type$.CompoundSelector, i1 = 0, i2 = 0; true;) {
  11179. remaining1 = complex1.length - i1;
  11180. remaining2 = complex2.length - i2;
  11181. if (remaining1 === 0 || remaining2 === 0)
  11182. return false;
  11183. if (remaining1 > remaining2)
  11184. return false;
  11185. t3 = complex1[i1];
  11186. if (t3 instanceof S.Combinator)
  11187. return false;
  11188. if (complex2[i2] instanceof S.Combinator)
  11189. return false;
  11190. t2._as(t3);
  11191. if (remaining1 === 1)
  11192. return Y.compoundIsSuperselector(t3, t2._as(C.JSArray_methods.get$last(complex2)), H.SubListIterable$(complex2, 0, complex2.length - 1, t1).skip$1(0, i2));
  11193. afterSuperselector = i2 + 1;
  11194. for (afterSuperselector0 = afterSuperselector; afterSuperselector0 < complex2.length; ++afterSuperselector0) {
  11195. t4 = afterSuperselector0 - 1;
  11196. compound2 = complex2[t4];
  11197. if (compound2 instanceof X.CompoundSelector)
  11198. if (Y.compoundIsSuperselector(t3, compound2, H.SubListIterable$(complex2, 0, t4, t1).skip$1(0, afterSuperselector)))
  11199. break;
  11200. }
  11201. if (afterSuperselector0 === complex2.length)
  11202. return false;
  11203. i10 = i1 + 1;
  11204. combinator1 = complex1[i10];
  11205. combinator2 = complex2[afterSuperselector0];
  11206. if (combinator1 instanceof S.Combinator) {
  11207. if (!(combinator2 instanceof S.Combinator))
  11208. return false;
  11209. if (combinator1 === C.Combinator_CzM) {
  11210. if (combinator2 === C.Combinator_sgq)
  11211. return false;
  11212. } else if (combinator2 !== combinator1)
  11213. return false;
  11214. if (remaining1 === 3 && remaining2 > 3)
  11215. return false;
  11216. i1 += 2;
  11217. i2 = afterSuperselector0 + 1;
  11218. } else {
  11219. if (combinator2 instanceof S.Combinator) {
  11220. if (combinator2 !== C.Combinator_sgq)
  11221. return false;
  11222. i2 = afterSuperselector0 + 1;
  11223. } else
  11224. i2 = afterSuperselector0;
  11225. i1 = i10;
  11226. }
  11227. }
  11228. },
  11229. compoundIsSuperselector: function(compound1, compound2, parents) {
  11230. var t1, t2, _i, simple1, simple2;
  11231. for (t1 = compound1.components, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  11232. simple1 = t1[_i];
  11233. if (simple1 instanceof D.PseudoSelector && simple1.selector != null) {
  11234. if (!Y._selectorPseudoIsSuperselector(simple1, compound2, parents))
  11235. return false;
  11236. } else if (!Y._simpleIsSuperselectorOfCompound(simple1, compound2))
  11237. return false;
  11238. }
  11239. for (t1 = compound2.components, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  11240. simple2 = t1[_i];
  11241. if (simple2 instanceof D.PseudoSelector && !simple2.isClass && simple2.selector == null && !Y._simpleIsSuperselectorOfCompound(simple2, compound1))
  11242. return false;
  11243. }
  11244. return true;
  11245. },
  11246. _simpleIsSuperselectorOfCompound: function(simple, compound) {
  11247. return C.JSArray_methods.any$1(compound.components, new Y._simpleIsSuperselectorOfCompound_closure(simple));
  11248. },
  11249. _selectorPseudoIsSuperselector: function(pseudo1, compound2, parents) {
  11250. switch (pseudo1.normalizedName) {
  11251. case "matches":
  11252. case "any":
  11253. return Y._selectorPseudosNamed(compound2, pseudo1.name, true).any$1(0, new Y._selectorPseudoIsSuperselector_closure(pseudo1)) || C.JSArray_methods.any$1(pseudo1.selector.components, new Y._selectorPseudoIsSuperselector_closure0(parents, compound2));
  11254. case "has":
  11255. case "host":
  11256. case "host-context":
  11257. return Y._selectorPseudosNamed(compound2, pseudo1.name, true).any$1(0, new Y._selectorPseudoIsSuperselector_closure1(pseudo1));
  11258. case "slotted":
  11259. return Y._selectorPseudosNamed(compound2, pseudo1.name, false).any$1(0, new Y._selectorPseudoIsSuperselector_closure2(pseudo1));
  11260. case "not":
  11261. return C.JSArray_methods.every$1(pseudo1.selector.components, new Y._selectorPseudoIsSuperselector_closure3(compound2, pseudo1));
  11262. case "current":
  11263. return Y._selectorPseudosNamed(compound2, pseudo1.name, true).any$1(0, new Y._selectorPseudoIsSuperselector_closure4(pseudo1));
  11264. case "nth-child":
  11265. case "nth-last-child":
  11266. return C.JSArray_methods.any$1(compound2.components, new Y._selectorPseudoIsSuperselector_closure5(pseudo1));
  11267. default:
  11268. throw H.wrapException("unreachable");
  11269. }
  11270. },
  11271. _selectorPseudosNamed: function(compound, $name, isClass) {
  11272. var t1 = type$.WhereTypeIterable_PseudoSelector;
  11273. return new H.WhereIterable(new H.WhereTypeIterable(compound.components, t1), new Y._selectorPseudosNamed_closure(isClass, $name), t1._eval$1("WhereIterable<Iterable.E>"));
  11274. },
  11275. unifyComplex_closure: function unifyComplex_closure() {
  11276. },
  11277. _weaveParents_closure: function _weaveParents_closure() {
  11278. },
  11279. _weaveParents_closure0: function _weaveParents_closure0(t0) {
  11280. this.group = t0;
  11281. },
  11282. _weaveParents_closure1: function _weaveParents_closure1() {
  11283. },
  11284. _weaveParents__closure1: function _weaveParents__closure1() {
  11285. },
  11286. _weaveParents_closure2: function _weaveParents_closure2() {
  11287. },
  11288. _weaveParents_closure3: function _weaveParents_closure3() {
  11289. },
  11290. _weaveParents__closure0: function _weaveParents__closure0() {
  11291. },
  11292. _weaveParents_closure4: function _weaveParents_closure4() {
  11293. },
  11294. _weaveParents_closure5: function _weaveParents_closure5() {
  11295. },
  11296. _weaveParents__closure: function _weaveParents__closure() {
  11297. },
  11298. _mustUnify_closure: function _mustUnify_closure(t0) {
  11299. this.uniqueSelectors = t0;
  11300. },
  11301. _mustUnify__closure: function _mustUnify__closure(t0) {
  11302. this.uniqueSelectors = t0;
  11303. },
  11304. paths_closure: function paths_closure(t0) {
  11305. this.T = t0;
  11306. },
  11307. paths__closure: function paths__closure(t0, t1) {
  11308. this.paths = t0;
  11309. this.T = t1;
  11310. },
  11311. paths___closure: function paths___closure(t0, t1) {
  11312. this.option = t0;
  11313. this.T = t1;
  11314. },
  11315. _hasRoot_closure: function _hasRoot_closure() {
  11316. },
  11317. listIsSuperslector_closure: function listIsSuperslector_closure(t0) {
  11318. this.list1 = t0;
  11319. },
  11320. listIsSuperslector__closure: function listIsSuperslector__closure(t0) {
  11321. this.complex1 = t0;
  11322. },
  11323. _simpleIsSuperselectorOfCompound_closure: function _simpleIsSuperselectorOfCompound_closure(t0) {
  11324. this.simple = t0;
  11325. },
  11326. _simpleIsSuperselectorOfCompound__closure: function _simpleIsSuperselectorOfCompound__closure(t0) {
  11327. this.simple = t0;
  11328. },
  11329. _selectorPseudoIsSuperselector_closure: function _selectorPseudoIsSuperselector_closure(t0) {
  11330. this.pseudo1 = t0;
  11331. },
  11332. _selectorPseudoIsSuperselector_closure0: function _selectorPseudoIsSuperselector_closure0(t0, t1) {
  11333. this.parents = t0;
  11334. this.compound2 = t1;
  11335. },
  11336. _selectorPseudoIsSuperselector_closure1: function _selectorPseudoIsSuperselector_closure1(t0) {
  11337. this.pseudo1 = t0;
  11338. },
  11339. _selectorPseudoIsSuperselector_closure2: function _selectorPseudoIsSuperselector_closure2(t0) {
  11340. this.pseudo1 = t0;
  11341. },
  11342. _selectorPseudoIsSuperselector_closure3: function _selectorPseudoIsSuperselector_closure3(t0, t1) {
  11343. this.compound2 = t0;
  11344. this.pseudo1 = t1;
  11345. },
  11346. _selectorPseudoIsSuperselector__closure: function _selectorPseudoIsSuperselector__closure(t0, t1) {
  11347. this.complex = t0;
  11348. this.pseudo1 = t1;
  11349. },
  11350. _selectorPseudoIsSuperselector___closure: function _selectorPseudoIsSuperselector___closure(t0) {
  11351. this.simple2 = t0;
  11352. },
  11353. _selectorPseudoIsSuperselector___closure0: function _selectorPseudoIsSuperselector___closure0(t0) {
  11354. this.simple2 = t0;
  11355. },
  11356. _selectorPseudoIsSuperselector_closure4: function _selectorPseudoIsSuperselector_closure4(t0) {
  11357. this.pseudo1 = t0;
  11358. },
  11359. _selectorPseudoIsSuperselector_closure5: function _selectorPseudoIsSuperselector_closure5(t0) {
  11360. this.pseudo1 = t0;
  11361. },
  11362. _selectorPseudosNamed_closure: function _selectorPseudosNamed_closure(t0, t1) {
  11363. this.isClass = t0;
  11364. this.name = t1;
  11365. },
  11366. closure: function closure() {
  11367. },
  11368. Chokidar: function Chokidar() {
  11369. },
  11370. ChokidarOptions: function ChokidarOptions() {
  11371. },
  11372. ChokidarWatcher: function ChokidarWatcher() {
  11373. },
  11374. SourceFile$decoded: function(decodedChars, url) {
  11375. var t1 = H.setRuntimeTypeInfo([0], type$.JSArray_int),
  11376. t2 = typeof url == "string" ? P.Uri_parse(url) : type$.Uri._as(url);
  11377. t1 = new Y.SourceFile(t2, t1, new Uint32Array(H._ensureNativeList(J.toList$0$ax(decodedChars))));
  11378. t1.SourceFile$decoded$2$url(decodedChars, url);
  11379. return t1;
  11380. },
  11381. FileLocation$_: function(file, offset) {
  11382. if (offset < 0)
  11383. H.throwExpression(P.RangeError$("Offset may not be negative, was " + offset + "."));
  11384. else if (offset > file._decodedChars.length)
  11385. H.throwExpression(P.RangeError$("Offset " + offset + " must not be greater than the number of characters in the file, " + file.get$length(file) + "."));
  11386. return new Y.FileLocation(file, offset);
  11387. },
  11388. _FileSpan$: function(file, _start, _end) {
  11389. if (_end < _start)
  11390. H.throwExpression(P.ArgumentError$("End " + _end + " must come after start " + _start + "."));
  11391. else if (_end > file._decodedChars.length)
  11392. H.throwExpression(P.RangeError$("End " + _end + " must not be greater than the number of characters in the file, " + file.get$length(file) + "."));
  11393. else if (_start < 0)
  11394. H.throwExpression(P.RangeError$("Start may not be negative, was " + _start + "."));
  11395. return new Y._FileSpan(file, _start, _end);
  11396. },
  11397. SourceFile: function SourceFile(t0, t1, t2) {
  11398. var _ = this;
  11399. _.url = t0;
  11400. _._lineStarts = t1;
  11401. _._decodedChars = t2;
  11402. _._cachedLine = null;
  11403. },
  11404. FileLocation: function FileLocation(t0, t1) {
  11405. this.file = t0;
  11406. this.offset = t1;
  11407. },
  11408. FileSpan: function FileSpan() {
  11409. },
  11410. _FileSpan: function _FileSpan(t0, t1, t2) {
  11411. this.file = t0;
  11412. this._file$_start = t1;
  11413. this._end = t2;
  11414. },
  11415. SourceSpanMixin: function SourceSpanMixin() {
  11416. },
  11417. Trace_Trace$from: function(trace) {
  11418. if (trace == null)
  11419. throw H.wrapException(P.ArgumentError$("Cannot create a Trace from null."));
  11420. if (type$.Trace._is(trace))
  11421. return trace;
  11422. if (trace instanceof U.Chain)
  11423. return trace.toTrace$0();
  11424. return new T.LazyTrace(new Y.Trace_Trace$from_closure(trace));
  11425. },
  11426. Trace_Trace$parse: function(trace) {
  11427. var error, t1, exception;
  11428. try {
  11429. if (trace.length === 0) {
  11430. t1 = P.List_List$unmodifiable(H.setRuntimeTypeInfo([], type$.JSArray_Frame), type$.Frame);
  11431. return new Y.Trace(t1, new P._StringStackTrace(null));
  11432. }
  11433. if (C.JSString_methods.contains$1(trace, $.$get$_v8Trace())) {
  11434. t1 = Y.Trace$parseV8(trace);
  11435. return t1;
  11436. }
  11437. if (C.JSString_methods.contains$1(trace, "\tat ")) {
  11438. t1 = Y.Trace$parseJSCore(trace);
  11439. return t1;
  11440. }
  11441. if (C.JSString_methods.contains$1(trace, $.$get$_firefoxSafariTrace())) {
  11442. t1 = Y.Trace$parseFirefox(trace);
  11443. return t1;
  11444. }
  11445. if (C.JSString_methods.contains$1(trace, "===== asynchronous gap ===========================\n")) {
  11446. t1 = U.Chain_Chain$parse(trace).toTrace$0();
  11447. return t1;
  11448. }
  11449. if (C.JSString_methods.contains$1(trace, $.$get$_friendlyTrace())) {
  11450. t1 = Y.Trace$parseFriendly(trace);
  11451. return t1;
  11452. }
  11453. t1 = P.List_List$unmodifiable(Y.Trace__parseVM(trace), type$.Frame);
  11454. return new Y.Trace(t1, new P._StringStackTrace(trace));
  11455. } catch (exception) {
  11456. t1 = H.unwrapException(exception);
  11457. if (type$.FormatException._is(t1)) {
  11458. error = t1;
  11459. throw H.wrapException(P.FormatException$(H.S(J.get$message$x(error)) + "\nStack trace:\n" + H.S(trace), null, null));
  11460. } else
  11461. throw exception;
  11462. }
  11463. },
  11464. Trace__parseVM: function(trace) {
  11465. var $frames,
  11466. t1 = J.trim$0$s(trace),
  11467. lines = H.setRuntimeTypeInfo(H.stringReplaceAllUnchecked(t1, "<asynchronous suspension>\n", "").split("\n"), type$.JSArray_String);
  11468. t1 = H.SubListIterable$(lines, 0, lines.length - 1, type$.String);
  11469. $frames = new H.MappedListIterable(t1, new Y.Trace__parseVM_closure(), t1.$ti._eval$1("MappedListIterable<ListIterable.E,Frame>")).toList$0(0);
  11470. if (!J.endsWith$1$s(C.JSArray_methods.get$last(lines), ".da"))
  11471. C.JSArray_methods.add$1($frames, A.Frame_Frame$parseVM(C.JSArray_methods.get$last(lines)));
  11472. return $frames;
  11473. },
  11474. Trace$parseV8: function(trace) {
  11475. var t1 = H.SubListIterable$(H.setRuntimeTypeInfo(trace.split("\n"), type$.JSArray_String), 1, null, type$.String).super$Iterable$skipWhile(0, new Y.Trace$parseV8_closure()),
  11476. t2 = type$.Frame;
  11477. return new Y.Trace(P.List_List$unmodifiable(H.MappedIterable_MappedIterable(t1, new Y.Trace$parseV8_closure0(), t1.$ti._eval$1("Iterable.E"), t2), t2), new P._StringStackTrace(trace));
  11478. },
  11479. Trace$parseJSCore: function(trace) {
  11480. return new Y.Trace(P.List_List$unmodifiable(new H.MappedIterable(new H.WhereIterable(H.setRuntimeTypeInfo(trace.split("\n"), type$.JSArray_String), new Y.Trace$parseJSCore_closure(), type$.WhereIterable_String), new Y.Trace$parseJSCore_closure0(), type$.MappedIterable_String_Frame), type$.Frame), new P._StringStackTrace(trace));
  11481. },
  11482. Trace$parseFirefox: function(trace) {
  11483. return new Y.Trace(P.List_List$unmodifiable(new H.MappedIterable(new H.WhereIterable(H.setRuntimeTypeInfo(C.JSString_methods.trim$0(trace).split("\n"), type$.JSArray_String), new Y.Trace$parseFirefox_closure(), type$.WhereIterable_String), new Y.Trace$parseFirefox_closure0(), type$.MappedIterable_String_Frame), type$.Frame), new P._StringStackTrace(trace));
  11484. },
  11485. Trace$parseFriendly: function(trace) {
  11486. var t1 = trace.length === 0 ? H.setRuntimeTypeInfo([], type$.JSArray_Frame) : new H.MappedIterable(new H.WhereIterable(H.setRuntimeTypeInfo(C.JSString_methods.trim$0(trace).split("\n"), type$.JSArray_String), new Y.Trace$parseFriendly_closure(), type$.WhereIterable_String), new Y.Trace$parseFriendly_closure0(), type$.MappedIterable_String_Frame);
  11487. return new Y.Trace(P.List_List$unmodifiable(t1, type$.Frame), new P._StringStackTrace(trace));
  11488. },
  11489. Trace: function Trace(t0, t1) {
  11490. this.frames = t0;
  11491. this.original = t1;
  11492. },
  11493. Trace_Trace$from_closure: function Trace_Trace$from_closure(t0) {
  11494. this.trace = t0;
  11495. },
  11496. Trace__parseVM_closure: function Trace__parseVM_closure() {
  11497. },
  11498. Trace$parseV8_closure: function Trace$parseV8_closure() {
  11499. },
  11500. Trace$parseV8_closure0: function Trace$parseV8_closure0() {
  11501. },
  11502. Trace$parseJSCore_closure: function Trace$parseJSCore_closure() {
  11503. },
  11504. Trace$parseJSCore_closure0: function Trace$parseJSCore_closure0() {
  11505. },
  11506. Trace$parseFirefox_closure: function Trace$parseFirefox_closure() {
  11507. },
  11508. Trace$parseFirefox_closure0: function Trace$parseFirefox_closure0() {
  11509. },
  11510. Trace$parseFriendly_closure: function Trace$parseFriendly_closure() {
  11511. },
  11512. Trace$parseFriendly_closure0: function Trace$parseFriendly_closure0() {
  11513. },
  11514. Trace_terse_closure: function Trace_terse_closure() {
  11515. },
  11516. Trace_foldFrames_closure: function Trace_foldFrames_closure(t0) {
  11517. this.oldPredicate = t0;
  11518. },
  11519. Trace_foldFrames_closure0: function Trace_foldFrames_closure0(t0) {
  11520. this._box_0 = t0;
  11521. },
  11522. Trace_toString_closure0: function Trace_toString_closure0() {
  11523. },
  11524. Trace_toString_closure: function Trace_toString_closure(t0) {
  11525. this.longest = t0;
  11526. },
  11527. Chokidar0: function Chokidar0() {
  11528. },
  11529. ChokidarOptions0: function ChokidarOptions0() {
  11530. },
  11531. ChokidarWatcher0: function ChokidarWatcher0() {
  11532. },
  11533. ContentBlock0: function ContentBlock0(t0, t1, t2, t3, t4) {
  11534. var _ = this;
  11535. _.name = t0;
  11536. _.$arguments = t1;
  11537. _.span = t2;
  11538. _.children = t3;
  11539. _.hasDeclarations = t4;
  11540. },
  11541. unifyComplex0: function(complexes) {
  11542. var t2, unifiedBase, base, t3, t4, _i, complexesWithoutBases,
  11543. t1 = J.getInterceptor$asx(complexes);
  11544. if (t1.get$length(complexes) === 1)
  11545. return complexes;
  11546. for (t2 = t1.get$iterator(complexes), unifiedBase = null; t2.moveNext$0();) {
  11547. base = J.get$last$ax(t2.get$current(t2));
  11548. if (base instanceof X.CompoundSelector0)
  11549. if (unifiedBase == null)
  11550. unifiedBase = base.components;
  11551. else
  11552. for (t3 = base.components, t4 = t3.length, _i = 0; _i < t4; ++_i) {
  11553. unifiedBase = t3[_i].unify$1(unifiedBase);
  11554. if (unifiedBase == null)
  11555. return null;
  11556. }
  11557. else
  11558. return null;
  11559. }
  11560. complexesWithoutBases = t1.map$1$1(complexes, new Y.unifyComplex_closure0(), type$.List_ComplexSelectorComponent_2).toList$0(0);
  11561. J.add$1$ax(C.JSArray_methods.get$last(complexesWithoutBases), X.CompoundSelector$0(unifiedBase));
  11562. return Y.weave0(complexesWithoutBases);
  11563. },
  11564. unifyCompound0: function(compound1, compound2) {
  11565. var t1, result, _i;
  11566. for (t1 = compound1.length, result = compound2, _i = 0; _i < t1; ++_i) {
  11567. result = compound1[_i].unify$1(result);
  11568. if (result == null)
  11569. return null;
  11570. }
  11571. return X.CompoundSelector$0(result);
  11572. },
  11573. unifyUniversalAndElement0: function(selector1, selector2) {
  11574. var namespace1, name1, t1, namespace2, name2, namespace, $name, _null = null,
  11575. _s45_ = "must be a UniversalSelector or a TypeSelector";
  11576. if (selector1 instanceof N.UniversalSelector0) {
  11577. namespace1 = selector1.namespace;
  11578. name1 = _null;
  11579. } else if (selector1 instanceof F.TypeSelector0) {
  11580. t1 = selector1.name;
  11581. namespace1 = t1.namespace;
  11582. name1 = t1.name;
  11583. } else
  11584. throw H.wrapException(P.ArgumentError$value(selector1, "selector1", _s45_));
  11585. if (selector2 instanceof N.UniversalSelector0) {
  11586. namespace2 = selector2.namespace;
  11587. name2 = _null;
  11588. } else if (selector2 instanceof F.TypeSelector0) {
  11589. t1 = selector2.name;
  11590. namespace2 = t1.namespace;
  11591. name2 = t1.name;
  11592. } else
  11593. throw H.wrapException(P.ArgumentError$value(selector2, "selector2", _s45_));
  11594. if (namespace1 == namespace2 || namespace2 === "*")
  11595. namespace = namespace1;
  11596. else {
  11597. if (namespace1 !== "*")
  11598. return _null;
  11599. namespace = namespace2;
  11600. }
  11601. if (name1 == name2 || name2 == null)
  11602. $name = name1;
  11603. else {
  11604. if (!(name1 == null || name1 === "*"))
  11605. return _null;
  11606. $name = name2;
  11607. }
  11608. return $name == null ? new N.UniversalSelector0(namespace) : new F.TypeSelector0(new D.QualifiedName0($name, namespace));
  11609. },
  11610. weave0: function(complexes) {
  11611. var t2, t3, t4, target, _i, parents, newPrefixes, parentPrefixes, t5,
  11612. t1 = type$.JSArray_List_ComplexSelectorComponent_2,
  11613. prefixes = H.setRuntimeTypeInfo([J.toList$0$ax(C.JSArray_methods.get$first(complexes))], t1);
  11614. for (t2 = H.SubListIterable$(complexes, 1, null, H._arrayInstanceType(complexes)._precomputed1), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  11615. t3 = t2.__internal$_current;
  11616. t4 = J.getInterceptor$asx(t3);
  11617. if (t4.get$isEmpty(t3))
  11618. continue;
  11619. target = t4.get$last(t3);
  11620. if (t4.get$length(t3) === 1) {
  11621. for (t3 = prefixes.length, _i = 0; _i < prefixes.length; prefixes.length === t3 || (0, H.throwConcurrentModificationError)(prefixes), ++_i)
  11622. J.add$1$ax(prefixes[_i], target);
  11623. continue;
  11624. }
  11625. parents = t4.take$1(t3, t4.get$length(t3) - 1).toList$0(0);
  11626. newPrefixes = H.setRuntimeTypeInfo([], t1);
  11627. for (t3 = prefixes.length, _i = 0; _i < prefixes.length; prefixes.length === t3 || (0, H.throwConcurrentModificationError)(prefixes), ++_i) {
  11628. parentPrefixes = Y._weaveParents0(prefixes[_i], parents);
  11629. if (parentPrefixes == null)
  11630. continue;
  11631. for (t4 = parentPrefixes.get$iterator(parentPrefixes); t4.moveNext$0();) {
  11632. t5 = t4.get$current(t4);
  11633. J.add$1$ax(t5, target);
  11634. newPrefixes.push(t5);
  11635. }
  11636. }
  11637. prefixes = newPrefixes;
  11638. }
  11639. return prefixes;
  11640. },
  11641. _weaveParents0: function(parents1, parents2) {
  11642. var finalCombinators, root1, root2, root, groups1, groups2, lcs, t2, choices, t3, _i, group, t4, _null = null,
  11643. t1 = type$.ComplexSelectorComponent_2,
  11644. queue1 = P.ListQueue_ListQueue$of(parents1, t1),
  11645. queue2 = P.ListQueue_ListQueue$of(parents2, t1),
  11646. initialCombinators = Y._mergeInitialCombinators0(queue1, queue2);
  11647. if (initialCombinators == null)
  11648. return _null;
  11649. finalCombinators = Y._mergeFinalCombinators0(queue1, queue2, _null);
  11650. if (finalCombinators == null)
  11651. return _null;
  11652. root1 = Y._firstIfRoot0(queue1);
  11653. root2 = Y._firstIfRoot0(queue2);
  11654. t1 = root1 != null;
  11655. if (t1 && root2 != null) {
  11656. root = Y.unifyCompound0(root1.components, root2.components);
  11657. if (root == null)
  11658. return _null;
  11659. queue1.addFirst$1(root);
  11660. queue2.addFirst$1(root);
  11661. } else if (t1)
  11662. queue2.addFirst$1(root1);
  11663. else if (root2 != null)
  11664. queue1.addFirst$1(root2);
  11665. groups1 = Y._groupSelectors0(queue1);
  11666. groups2 = Y._groupSelectors0(queue2);
  11667. t1 = type$.List_ComplexSelectorComponent_2;
  11668. lcs = B.longestCommonSubsequence0(groups2, groups1, new Y._weaveParents_closure6(), t1);
  11669. t2 = type$.JSArray_Iterable_ComplexSelectorComponent_2;
  11670. choices = H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([initialCombinators], t2)], type$.JSArray_List_Iterable_ComplexSelectorComponent_2);
  11671. for (t3 = lcs.length, _i = 0; _i < lcs.length; lcs.length === t3 || (0, H.throwConcurrentModificationError)(lcs), ++_i) {
  11672. group = lcs[_i];
  11673. t4 = Y._chunks0(groups1, groups2, new Y._weaveParents_closure7(group), t1);
  11674. choices.push(new H.MappedListIterable(t4, new Y._weaveParents_closure8(), H._arrayInstanceType(t4)._eval$1("MappedListIterable<1,Iterable<ComplexSelectorComponent0>>")).toList$0(0));
  11675. choices.push(H.setRuntimeTypeInfo([group], t2));
  11676. groups1.removeFirst$0();
  11677. groups2.removeFirst$0();
  11678. }
  11679. t2 = Y._chunks0(groups1, groups2, new Y._weaveParents_closure9(), t1);
  11680. choices.push(new H.MappedListIterable(t2, new Y._weaveParents_closure10(), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Iterable<ComplexSelectorComponent0>>")).toList$0(0));
  11681. C.JSArray_methods.addAll$1(choices, finalCombinators);
  11682. return J.map$1$1$ax(Y.paths0(new H.WhereIterable(choices, new Y._weaveParents_closure11(), type$.WhereIterable_List_Iterable_ComplexSelectorComponent_2), type$.Iterable_ComplexSelectorComponent_2), new Y._weaveParents_closure12(), t1);
  11683. },
  11684. _firstIfRoot0: function(queue) {
  11685. var first;
  11686. if (queue._collection$_head === queue._collection$_tail)
  11687. return null;
  11688. first = queue.get$first(queue);
  11689. if (first instanceof X.CompoundSelector0) {
  11690. if (!Y._hasRoot0(first))
  11691. return null;
  11692. queue.removeFirst$0();
  11693. return first;
  11694. } else
  11695. return null;
  11696. },
  11697. _mergeInitialCombinators0: function(components1, components2) {
  11698. var t3, combinators2, lcs,
  11699. t1 = type$.JSArray_Combinator_2,
  11700. combinators1 = H.setRuntimeTypeInfo([], t1),
  11701. t2 = type$.Combinator_2;
  11702. while (true) {
  11703. if (!components1.get$isEmpty(components1)) {
  11704. t3 = components1._collection$_head;
  11705. if (t3 === components1._collection$_tail)
  11706. H.throwExpression(H.IterableElementError_noElement());
  11707. t3 = components1._collection$_table[t3] instanceof S.Combinator0;
  11708. } else
  11709. t3 = false;
  11710. if (!t3)
  11711. break;
  11712. combinators1.push(t2._as(components1.removeFirst$0()));
  11713. }
  11714. combinators2 = H.setRuntimeTypeInfo([], t1);
  11715. while (true) {
  11716. if (!components2.get$isEmpty(components2)) {
  11717. t1 = components2._collection$_head;
  11718. if (t1 === components2._collection$_tail)
  11719. H.throwExpression(H.IterableElementError_noElement());
  11720. t1 = components2._collection$_table[t1] instanceof S.Combinator0;
  11721. } else
  11722. t1 = false;
  11723. if (!t1)
  11724. break;
  11725. combinators2.push(t2._as(components2.removeFirst$0()));
  11726. }
  11727. lcs = B.longestCommonSubsequence0(combinators1, combinators2, null, t2);
  11728. if (C.C_ListEquality.equals$2(lcs, combinators1))
  11729. return combinators2;
  11730. if (C.C_ListEquality.equals$2(lcs, combinators2))
  11731. return combinators1;
  11732. return null;
  11733. },
  11734. _mergeFinalCombinators0: function(components1, components2, result) {
  11735. var t1, combinators1, t2, combinators2, lcs, combinator1, combinator2, compound1, compound2, choices, unified, followingSiblingSelector, nextSiblingSelector, _null = null;
  11736. if (result == null)
  11737. result = Q.QueueList$(_null, type$.List_List_ComplexSelectorComponent_2);
  11738. if (components1._collection$_head === components1._collection$_tail || !(components1.get$last(components1) instanceof S.Combinator0))
  11739. t1 = components2._collection$_head === components2._collection$_tail || !(components2.get$last(components2) instanceof S.Combinator0);
  11740. else
  11741. t1 = false;
  11742. if (t1)
  11743. return result;
  11744. t1 = type$.JSArray_Combinator_2;
  11745. combinators1 = H.setRuntimeTypeInfo([], t1);
  11746. t2 = type$.Combinator_2;
  11747. while (true) {
  11748. if (!(!components1.get$isEmpty(components1) && components1.get$last(components1) instanceof S.Combinator0))
  11749. break;
  11750. combinators1.push(t2._as(components1.removeLast$0(0)));
  11751. }
  11752. combinators2 = H.setRuntimeTypeInfo([], t1);
  11753. while (true) {
  11754. if (!(!components2.get$isEmpty(components2) && components2.get$last(components2) instanceof S.Combinator0))
  11755. break;
  11756. combinators2.push(t2._as(components2.removeLast$0(0)));
  11757. }
  11758. t1 = combinators1.length;
  11759. if (t1 > 1 || combinators2.length > 1) {
  11760. lcs = B.longestCommonSubsequence0(combinators1, combinators2, _null, t2);
  11761. if (C.C_ListEquality.equals$2(lcs, combinators1))
  11762. result.addFirst$1(H.setRuntimeTypeInfo([P.List_List$from(new H.ReversedListIterable(combinators2, type$.ReversedListIterable_Combinator_2), true, type$.ComplexSelectorComponent_2)], type$.JSArray_List_ComplexSelectorComponent_2));
  11763. else if (C.C_ListEquality.equals$2(lcs, combinators2))
  11764. result.addFirst$1(H.setRuntimeTypeInfo([P.List_List$from(new H.ReversedListIterable(combinators1, type$.ReversedListIterable_Combinator_2), true, type$.ComplexSelectorComponent_2)], type$.JSArray_List_ComplexSelectorComponent_2));
  11765. else
  11766. return _null;
  11767. return result;
  11768. }
  11769. combinator1 = t1 === 0 ? _null : C.JSArray_methods.get$first(combinators1);
  11770. combinator2 = combinators2.length === 0 ? _null : C.JSArray_methods.get$first(combinators2);
  11771. t1 = combinator1 != null;
  11772. if (t1 && combinator2 != null) {
  11773. t1 = type$.CompoundSelector_2;
  11774. compound1 = t1._as(components1.removeLast$0(0));
  11775. compound2 = t1._as(components2.removeLast$0(0));
  11776. t1 = combinator1 === C.Combinator_CzM0;
  11777. if (t1 && combinator2 === C.Combinator_CzM0) {
  11778. compound1.toString;
  11779. if (Y.compoundIsSuperselector0(compound1, compound2, _null))
  11780. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound2, C.Combinator_CzM0], type$.JSArray_ComplexSelectorComponent_2)], type$.JSArray_List_ComplexSelectorComponent_2));
  11781. else {
  11782. compound2.toString;
  11783. t1 = type$.JSArray_ComplexSelectorComponent_2;
  11784. t2 = type$.JSArray_List_ComplexSelectorComponent_2;
  11785. if (Y.compoundIsSuperselector0(compound2, compound1, _null))
  11786. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound1, C.Combinator_CzM0], t1)], t2));
  11787. else {
  11788. choices = H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound1, C.Combinator_CzM0, compound2, C.Combinator_CzM0], t1), H.setRuntimeTypeInfo([compound2, C.Combinator_CzM0, compound1, C.Combinator_CzM0], t1)], t2);
  11789. unified = Y.unifyCompound0(compound1.components, compound2.components);
  11790. if (unified != null)
  11791. choices.push(H.setRuntimeTypeInfo([unified, C.Combinator_CzM0], t1));
  11792. result.addFirst$1(choices);
  11793. }
  11794. }
  11795. } else {
  11796. if (!(t1 && combinator2 === C.Combinator_uzg0))
  11797. t2 = combinator1 === C.Combinator_uzg0 && combinator2 === C.Combinator_CzM0;
  11798. else
  11799. t2 = true;
  11800. if (t2) {
  11801. followingSiblingSelector = t1 ? compound1 : compound2;
  11802. nextSiblingSelector = t1 ? compound2 : compound1;
  11803. followingSiblingSelector.toString;
  11804. t1 = type$.JSArray_ComplexSelectorComponent_2;
  11805. t2 = type$.JSArray_List_ComplexSelectorComponent_2;
  11806. if (Y.compoundIsSuperselector0(followingSiblingSelector, nextSiblingSelector, _null))
  11807. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([nextSiblingSelector, C.Combinator_uzg0], t1)], t2));
  11808. else {
  11809. unified = Y.unifyCompound0(compound1.components, compound2.components);
  11810. t2 = H.setRuntimeTypeInfo([], t2);
  11811. t2.push(H.setRuntimeTypeInfo([followingSiblingSelector, C.Combinator_CzM0, nextSiblingSelector, C.Combinator_uzg0], t1));
  11812. if (unified != null)
  11813. t2.push(H.setRuntimeTypeInfo([unified, C.Combinator_uzg0], t1));
  11814. result.addFirst$1(t2);
  11815. }
  11816. } else {
  11817. if (combinator1 === C.Combinator_sgq0)
  11818. t2 = combinator2 === C.Combinator_uzg0 || combinator2 === C.Combinator_CzM0;
  11819. else
  11820. t2 = false;
  11821. if (t2) {
  11822. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound2, combinator2], type$.JSArray_ComplexSelectorComponent_2)], type$.JSArray_List_ComplexSelectorComponent_2));
  11823. components1._add$1(compound1);
  11824. components1._add$1(C.Combinator_sgq0);
  11825. } else {
  11826. if (combinator2 === C.Combinator_sgq0)
  11827. t1 = combinator1 === C.Combinator_uzg0 || t1;
  11828. else
  11829. t1 = false;
  11830. if (t1) {
  11831. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound1, combinator1], type$.JSArray_ComplexSelectorComponent_2)], type$.JSArray_List_ComplexSelectorComponent_2));
  11832. components2._add$1(compound2);
  11833. components2._add$1(C.Combinator_sgq0);
  11834. } else if (combinator1 === combinator2) {
  11835. unified = Y.unifyCompound0(compound1.components, compound2.components);
  11836. if (unified == null)
  11837. return _null;
  11838. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([unified, combinator1], type$.JSArray_ComplexSelectorComponent_2)], type$.JSArray_List_ComplexSelectorComponent_2));
  11839. } else
  11840. return _null;
  11841. }
  11842. }
  11843. }
  11844. return Y._mergeFinalCombinators0(components1, components2, result);
  11845. } else if (t1) {
  11846. if (combinator1 === C.Combinator_sgq0)
  11847. if (!components2.get$isEmpty(components2)) {
  11848. t1 = type$.CompoundSelector_2;
  11849. t2 = t1._as(components2.get$last(components2));
  11850. t1 = t1._as(components1.get$last(components1));
  11851. t2.toString;
  11852. t1 = Y.compoundIsSuperselector0(t2, t1, _null);
  11853. } else
  11854. t1 = false;
  11855. else
  11856. t1 = false;
  11857. if (t1)
  11858. components2.removeLast$0(0);
  11859. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([components1.removeLast$0(0), combinator1], type$.JSArray_ComplexSelectorComponent_2)], type$.JSArray_List_ComplexSelectorComponent_2));
  11860. return Y._mergeFinalCombinators0(components1, components2, result);
  11861. } else {
  11862. if (combinator2 === C.Combinator_sgq0)
  11863. if (!components1.get$isEmpty(components1)) {
  11864. t1 = type$.CompoundSelector_2;
  11865. t2 = t1._as(components1.get$last(components1));
  11866. t1 = t1._as(components2.get$last(components2));
  11867. t2.toString;
  11868. t1 = Y.compoundIsSuperselector0(t2, t1, _null);
  11869. } else
  11870. t1 = false;
  11871. else
  11872. t1 = false;
  11873. if (t1)
  11874. components1.removeLast$0(0);
  11875. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([components2.removeLast$0(0), combinator2], type$.JSArray_ComplexSelectorComponent_2)], type$.JSArray_List_ComplexSelectorComponent_2));
  11876. return Y._mergeFinalCombinators0(components1, components2, result);
  11877. }
  11878. },
  11879. _mustUnify0: function(complex1, complex2) {
  11880. var t2, t3, t4,
  11881. t1 = P.LinkedHashSet_LinkedHashSet(type$.SimpleSelector_2);
  11882. for (t2 = J.get$iterator$ax(complex1); t2.moveNext$0();) {
  11883. t3 = t2.get$current(t2);
  11884. if (t3 instanceof X.CompoundSelector0)
  11885. for (t3 = C.JSArray_methods.get$iterator(t3.components), t4 = new H.WhereIterator(t3, Y.functions0___isUnique$closure()); t4.moveNext$0();)
  11886. t1.add$1(0, t3.get$current(t3));
  11887. }
  11888. if (t1._collection$_length === 0)
  11889. return false;
  11890. return J.any$1$ax(complex2, new Y._mustUnify_closure0(t1));
  11891. },
  11892. _isUnique0: function(simple) {
  11893. var t1;
  11894. if (!(simple instanceof N.IDSelector0))
  11895. t1 = simple instanceof D.PseudoSelector0 && !simple.isClass;
  11896. else
  11897. t1 = true;
  11898. return t1;
  11899. },
  11900. _chunks0: function(queue1, queue2, done, $T) {
  11901. var chunk2, t2, t3, _i,
  11902. t1 = $T._eval$1("JSArray<0>"),
  11903. chunk1 = H.setRuntimeTypeInfo([], t1);
  11904. for (; !done.call$1(queue1);)
  11905. chunk1.push(queue1.removeFirst$0());
  11906. chunk2 = H.setRuntimeTypeInfo([], t1);
  11907. for (; !done.call$1(queue2);)
  11908. chunk2.push(queue2.removeFirst$0());
  11909. t2 = chunk1.length === 0;
  11910. if (t2 && chunk2.length === 0)
  11911. return H.setRuntimeTypeInfo([], $T._eval$1("JSArray<List<0>>"));
  11912. if (t2)
  11913. return H.setRuntimeTypeInfo([chunk2], $T._eval$1("JSArray<List<0>>"));
  11914. if (chunk2.length === 0)
  11915. return H.setRuntimeTypeInfo([chunk1], $T._eval$1("JSArray<List<0>>"));
  11916. t2 = H.setRuntimeTypeInfo([], t1);
  11917. for (t3 = chunk1.length, _i = 0; _i < chunk1.length; chunk1.length === t3 || (0, H.throwConcurrentModificationError)(chunk1), ++_i)
  11918. t2.push(chunk1[_i]);
  11919. for (t3 = chunk2.length, _i = 0; _i < chunk2.length; chunk2.length === t3 || (0, H.throwConcurrentModificationError)(chunk2), ++_i)
  11920. t2.push(chunk2[_i]);
  11921. t1 = H.setRuntimeTypeInfo([], t1);
  11922. for (t3 = chunk2.length, _i = 0; _i < chunk2.length; chunk2.length === t3 || (0, H.throwConcurrentModificationError)(chunk2), ++_i)
  11923. t1.push(chunk2[_i]);
  11924. for (t3 = chunk1.length, _i = 0; _i < chunk1.length; chunk1.length === t3 || (0, H.throwConcurrentModificationError)(chunk1), ++_i)
  11925. t1.push(chunk1[_i]);
  11926. return H.setRuntimeTypeInfo([t2, t1], $T._eval$1("JSArray<List<0>>"));
  11927. },
  11928. paths0: function(choices, $T) {
  11929. return J.fold$2$ax(choices, H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([], $T._eval$1("JSArray<0>"))], $T._eval$1("JSArray<List<0>>")), new Y.paths_closure0($T));
  11930. },
  11931. _groupSelectors0: function(complex) {
  11932. var t1, group, t2, t3,
  11933. groups = Q.QueueList$(null, type$.List_ComplexSelectorComponent_2),
  11934. iterator = P._ListQueueIterator$(complex);
  11935. if (!iterator.moveNext$0())
  11936. return groups;
  11937. t1 = type$.JSArray_ComplexSelectorComponent_2;
  11938. group = H.setRuntimeTypeInfo([iterator._collection$_current], t1);
  11939. groups._queue_list$_add$1(group);
  11940. for (; iterator.moveNext$0();) {
  11941. t2 = C.JSArray_methods.get$last(group) instanceof S.Combinator0 || iterator._collection$_current instanceof S.Combinator0;
  11942. t3 = iterator._collection$_current;
  11943. if (t2)
  11944. group.push(t3);
  11945. else {
  11946. group = H.setRuntimeTypeInfo([t3], t1);
  11947. groups._queue_list$_add$1(group);
  11948. }
  11949. }
  11950. return groups;
  11951. },
  11952. _hasRoot0: function(compound) {
  11953. return C.JSArray_methods.any$1(compound.components, new Y._hasRoot_closure0());
  11954. },
  11955. listIsSuperslector0: function(list1, list2) {
  11956. return C.JSArray_methods.every$1(list2, new Y.listIsSuperslector_closure0(list1));
  11957. },
  11958. complexIsParentSuperselector0: function(complex1, complex2) {
  11959. var t2, base, t3, t4,
  11960. t1 = J.getInterceptor$ax(complex1);
  11961. if (t1.get$first(complex1) instanceof S.Combinator0)
  11962. return false;
  11963. t2 = J.getInterceptor$ax(complex2);
  11964. if (t2.get$first(complex2) instanceof S.Combinator0)
  11965. return false;
  11966. if (t1.get$length(complex1) > t2.get$length(complex2))
  11967. return false;
  11968. base = X.CompoundSelector$0(H.setRuntimeTypeInfo([new N.PlaceholderSelector0("<temp>")], type$.JSArray_SimpleSelector_2));
  11969. t3 = type$.JSArray_ComplexSelectorComponent_2;
  11970. t4 = H.setRuntimeTypeInfo([], t3);
  11971. for (t1 = t1.get$iterator(complex1); t1.moveNext$0();)
  11972. t4.push(t1.get$current(t1));
  11973. t4.push(base);
  11974. t1 = H.setRuntimeTypeInfo([], t3);
  11975. for (t2 = t2.get$iterator(complex2); t2.moveNext$0();)
  11976. t1.push(t2.get$current(t2));
  11977. t1.push(base);
  11978. return Y.complexIsSuperselector0(t4, t1);
  11979. },
  11980. complexIsSuperselector0: function(complex1, complex2) {
  11981. var t1, t2, i1, i2, remaining1, remaining2, t3, afterSuperselector, afterSuperselector0, t4, compound2, i10, combinator1, combinator2;
  11982. if (C.JSArray_methods.get$last(complex1) instanceof S.Combinator0)
  11983. return false;
  11984. if (C.JSArray_methods.get$last(complex2) instanceof S.Combinator0)
  11985. return false;
  11986. for (t1 = H._arrayInstanceType(complex2)._precomputed1, t2 = type$.CompoundSelector_2, i1 = 0, i2 = 0; true;) {
  11987. remaining1 = complex1.length - i1;
  11988. remaining2 = complex2.length - i2;
  11989. if (remaining1 === 0 || remaining2 === 0)
  11990. return false;
  11991. if (remaining1 > remaining2)
  11992. return false;
  11993. t3 = complex1[i1];
  11994. if (t3 instanceof S.Combinator0)
  11995. return false;
  11996. if (complex2[i2] instanceof S.Combinator0)
  11997. return false;
  11998. t2._as(t3);
  11999. if (remaining1 === 1)
  12000. return Y.compoundIsSuperselector0(t3, t2._as(C.JSArray_methods.get$last(complex2)), H.SubListIterable$(complex2, 0, complex2.length - 1, t1).skip$1(0, i2));
  12001. afterSuperselector = i2 + 1;
  12002. for (afterSuperselector0 = afterSuperselector; afterSuperselector0 < complex2.length; ++afterSuperselector0) {
  12003. t4 = afterSuperselector0 - 1;
  12004. compound2 = complex2[t4];
  12005. if (compound2 instanceof X.CompoundSelector0)
  12006. if (Y.compoundIsSuperselector0(t3, compound2, H.SubListIterable$(complex2, 0, t4, t1).skip$1(0, afterSuperselector)))
  12007. break;
  12008. }
  12009. if (afterSuperselector0 === complex2.length)
  12010. return false;
  12011. i10 = i1 + 1;
  12012. combinator1 = complex1[i10];
  12013. combinator2 = complex2[afterSuperselector0];
  12014. if (combinator1 instanceof S.Combinator0) {
  12015. if (!(combinator2 instanceof S.Combinator0))
  12016. return false;
  12017. if (combinator1 === C.Combinator_CzM0) {
  12018. if (combinator2 === C.Combinator_sgq0)
  12019. return false;
  12020. } else if (combinator2 !== combinator1)
  12021. return false;
  12022. if (remaining1 === 3 && remaining2 > 3)
  12023. return false;
  12024. i1 += 2;
  12025. i2 = afterSuperselector0 + 1;
  12026. } else {
  12027. if (combinator2 instanceof S.Combinator0) {
  12028. if (combinator2 !== C.Combinator_sgq0)
  12029. return false;
  12030. i2 = afterSuperselector0 + 1;
  12031. } else
  12032. i2 = afterSuperselector0;
  12033. i1 = i10;
  12034. }
  12035. }
  12036. },
  12037. compoundIsSuperselector0: function(compound1, compound2, parents) {
  12038. var t1, t2, _i, simple1, simple2;
  12039. for (t1 = compound1.components, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  12040. simple1 = t1[_i];
  12041. if (simple1 instanceof D.PseudoSelector0 && simple1.selector != null) {
  12042. if (!Y._selectorPseudoIsSuperselector0(simple1, compound2, parents))
  12043. return false;
  12044. } else if (!Y._simpleIsSuperselectorOfCompound0(simple1, compound2))
  12045. return false;
  12046. }
  12047. for (t1 = compound2.components, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  12048. simple2 = t1[_i];
  12049. if (simple2 instanceof D.PseudoSelector0 && !simple2.isClass && simple2.selector == null && !Y._simpleIsSuperselectorOfCompound0(simple2, compound1))
  12050. return false;
  12051. }
  12052. return true;
  12053. },
  12054. _simpleIsSuperselectorOfCompound0: function(simple, compound) {
  12055. return C.JSArray_methods.any$1(compound.components, new Y._simpleIsSuperselectorOfCompound_closure0(simple));
  12056. },
  12057. _selectorPseudoIsSuperselector0: function(pseudo1, compound2, parents) {
  12058. switch (pseudo1.normalizedName) {
  12059. case "matches":
  12060. case "any":
  12061. return Y._selectorPseudosNamed0(compound2, pseudo1.name, true).any$1(0, new Y._selectorPseudoIsSuperselector_closure6(pseudo1)) || C.JSArray_methods.any$1(pseudo1.selector.components, new Y._selectorPseudoIsSuperselector_closure7(parents, compound2));
  12062. case "has":
  12063. case "host":
  12064. case "host-context":
  12065. return Y._selectorPseudosNamed0(compound2, pseudo1.name, true).any$1(0, new Y._selectorPseudoIsSuperselector_closure8(pseudo1));
  12066. case "slotted":
  12067. return Y._selectorPseudosNamed0(compound2, pseudo1.name, false).any$1(0, new Y._selectorPseudoIsSuperselector_closure9(pseudo1));
  12068. case "not":
  12069. return C.JSArray_methods.every$1(pseudo1.selector.components, new Y._selectorPseudoIsSuperselector_closure10(compound2, pseudo1));
  12070. case "current":
  12071. return Y._selectorPseudosNamed0(compound2, pseudo1.name, true).any$1(0, new Y._selectorPseudoIsSuperselector_closure11(pseudo1));
  12072. case "nth-child":
  12073. case "nth-last-child":
  12074. return C.JSArray_methods.any$1(compound2.components, new Y._selectorPseudoIsSuperselector_closure12(pseudo1));
  12075. default:
  12076. throw H.wrapException("unreachable");
  12077. }
  12078. },
  12079. _selectorPseudosNamed0: function(compound, $name, isClass) {
  12080. var t1 = type$.WhereTypeIterable_PseudoSelector_2;
  12081. return new H.WhereIterable(new H.WhereTypeIterable(compound.components, t1), new Y._selectorPseudosNamed_closure0(isClass, $name), t1._eval$1("WhereIterable<Iterable.E>"));
  12082. },
  12083. unifyComplex_closure0: function unifyComplex_closure0() {
  12084. },
  12085. _weaveParents_closure6: function _weaveParents_closure6() {
  12086. },
  12087. _weaveParents_closure7: function _weaveParents_closure7(t0) {
  12088. this.group = t0;
  12089. },
  12090. _weaveParents_closure8: function _weaveParents_closure8() {
  12091. },
  12092. _weaveParents__closure4: function _weaveParents__closure4() {
  12093. },
  12094. _weaveParents_closure9: function _weaveParents_closure9() {
  12095. },
  12096. _weaveParents_closure10: function _weaveParents_closure10() {
  12097. },
  12098. _weaveParents__closure3: function _weaveParents__closure3() {
  12099. },
  12100. _weaveParents_closure11: function _weaveParents_closure11() {
  12101. },
  12102. _weaveParents_closure12: function _weaveParents_closure12() {
  12103. },
  12104. _weaveParents__closure2: function _weaveParents__closure2() {
  12105. },
  12106. _mustUnify_closure0: function _mustUnify_closure0(t0) {
  12107. this.uniqueSelectors = t0;
  12108. },
  12109. _mustUnify__closure0: function _mustUnify__closure0(t0) {
  12110. this.uniqueSelectors = t0;
  12111. },
  12112. paths_closure0: function paths_closure0(t0) {
  12113. this.T = t0;
  12114. },
  12115. paths__closure0: function paths__closure0(t0, t1) {
  12116. this.paths = t0;
  12117. this.T = t1;
  12118. },
  12119. paths___closure0: function paths___closure0(t0, t1) {
  12120. this.option = t0;
  12121. this.T = t1;
  12122. },
  12123. _hasRoot_closure0: function _hasRoot_closure0() {
  12124. },
  12125. listIsSuperslector_closure0: function listIsSuperslector_closure0(t0) {
  12126. this.list1 = t0;
  12127. },
  12128. listIsSuperslector__closure0: function listIsSuperslector__closure0(t0) {
  12129. this.complex1 = t0;
  12130. },
  12131. _simpleIsSuperselectorOfCompound_closure0: function _simpleIsSuperselectorOfCompound_closure0(t0) {
  12132. this.simple = t0;
  12133. },
  12134. _simpleIsSuperselectorOfCompound__closure0: function _simpleIsSuperselectorOfCompound__closure0(t0) {
  12135. this.simple = t0;
  12136. },
  12137. _selectorPseudoIsSuperselector_closure6: function _selectorPseudoIsSuperselector_closure6(t0) {
  12138. this.pseudo1 = t0;
  12139. },
  12140. _selectorPseudoIsSuperselector_closure7: function _selectorPseudoIsSuperselector_closure7(t0, t1) {
  12141. this.parents = t0;
  12142. this.compound2 = t1;
  12143. },
  12144. _selectorPseudoIsSuperselector_closure8: function _selectorPseudoIsSuperselector_closure8(t0) {
  12145. this.pseudo1 = t0;
  12146. },
  12147. _selectorPseudoIsSuperselector_closure9: function _selectorPseudoIsSuperselector_closure9(t0) {
  12148. this.pseudo1 = t0;
  12149. },
  12150. _selectorPseudoIsSuperselector_closure10: function _selectorPseudoIsSuperselector_closure10(t0, t1) {
  12151. this.compound2 = t0;
  12152. this.pseudo1 = t1;
  12153. },
  12154. _selectorPseudoIsSuperselector__closure0: function _selectorPseudoIsSuperselector__closure0(t0, t1) {
  12155. this.complex = t0;
  12156. this.pseudo1 = t1;
  12157. },
  12158. _selectorPseudoIsSuperselector___closure1: function _selectorPseudoIsSuperselector___closure1(t0) {
  12159. this.simple2 = t0;
  12160. },
  12161. _selectorPseudoIsSuperselector___closure2: function _selectorPseudoIsSuperselector___closure2(t0) {
  12162. this.simple2 = t0;
  12163. },
  12164. _selectorPseudoIsSuperselector_closure11: function _selectorPseudoIsSuperselector_closure11(t0) {
  12165. this.pseudo1 = t0;
  12166. },
  12167. _selectorPseudoIsSuperselector_closure12: function _selectorPseudoIsSuperselector_closure12(t0) {
  12168. this.pseudo1 = t0;
  12169. },
  12170. _selectorPseudosNamed_closure0: function _selectorPseudosNamed_closure0(t0, t1) {
  12171. this.isClass = t0;
  12172. this.name = t1;
  12173. },
  12174. closure107: function closure107() {
  12175. },
  12176. WarnRule0: function WarnRule0(t0, t1) {
  12177. this.expression = t0;
  12178. this.span = t1;
  12179. },
  12180. repl: function(options) {
  12181. return Y.repl$body(options);
  12182. },
  12183. repl$body: function(options) {
  12184. var $async$goto = 0,
  12185. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  12186. $async$handler = 1, $async$currentError, $async$next = [], repl, logger, evaluator, line, declaration, error, stackTrace, t4, t5, t6, t7, t8, t9, t10, line0, exception, t1, t2, t3, repl0;
  12187. var $async$repl = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  12188. if ($async$errorCode === 1) {
  12189. $async$currentError = $async$result;
  12190. $async$goto = $async$handler;
  12191. }
  12192. while (true)
  12193. switch ($async$goto) {
  12194. case 0:
  12195. // Function start
  12196. t1 = H.setRuntimeTypeInfo([], type$.JSArray_String);
  12197. t2 = C.JSString_methods.$mul(" ", 3);
  12198. t3 = $.$get$alwaysValid();
  12199. repl0 = new Q.Repl(">> ", t2, t3, t1);
  12200. repl0._adapter = new B.ReplAdapter(repl0);
  12201. repl = repl0;
  12202. t1 = options._options;
  12203. logger = new T.TrackingLogger(H._asBoolNullable(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new S.StderrLogger(options.get$color()));
  12204. t2 = D.absolute(".");
  12205. evaluator = new R.Evaluator(R._EvaluateVisitor$(null, R.ImportCache$(C.List_empty10, type$.List_String._as(t1.$index(0, "load-path")), logger), logger, null, false), new F.FilesystemImporter(t2));
  12206. t2 = P._StreamIterator$(repl._adapter.runAsync$0());
  12207. $async$handler = 2;
  12208. t1 = type$.Expression, t3 = type$.String, t4 = type$.VariableDeclaration, t5 = type$.JSArray_int;
  12209. case 5:
  12210. // for condition
  12211. $async$goto = 7;
  12212. return P._asyncAwait(t2.moveNext$0(), $async$repl);
  12213. case 7:
  12214. // returning from await.
  12215. if (!$async$result) {
  12216. // goto after for
  12217. $async$goto = 6;
  12218. break;
  12219. }
  12220. line = t2.get$current(t2);
  12221. if (J.trim$0$s(line).length === 0) {
  12222. // goto for condition
  12223. $async$goto = 5;
  12224. break;
  12225. }
  12226. try {
  12227. if (J.startsWith$1$s(line, "@")) {
  12228. t6 = evaluator;
  12229. t7 = line;
  12230. t8 = logger;
  12231. t7.toString;
  12232. t9 = new H.CodeUnits(t7);
  12233. t10 = H.setRuntimeTypeInfo([0], t5);
  12234. t10 = new Y.SourceFile(null, t10, new Uint32Array(H._ensureNativeList(t9.toList$0(t9))));
  12235. t10.SourceFile$decoded$2$url(t9, null);
  12236. if (t8 == null)
  12237. t8 = C.StderrLogger_false;
  12238. t8 = new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t3, t4), new S.SpanScanner(t10, null, t7), t8).parseUseRule$0();
  12239. t6._visitor.runStatement$2(t6._importer, t8);
  12240. // goto for condition
  12241. $async$goto = 5;
  12242. break;
  12243. }
  12244. t6 = line;
  12245. t6.toString;
  12246. t7 = new H.CodeUnits(t6);
  12247. t8 = H.setRuntimeTypeInfo([0], t5);
  12248. t8 = new Y.SourceFile(null, t8, new Uint32Array(H._ensureNativeList(t7.toList$0(t7))));
  12249. t8.SourceFile$decoded$2$url(t7, null);
  12250. if (new G.Parser(new S.SpanScanner(t8, null, t6), C.StderrLogger_false)._isVariableDeclarationLike$0()) {
  12251. t6 = line;
  12252. t7 = logger;
  12253. t6.toString;
  12254. t8 = new H.CodeUnits(t6);
  12255. t9 = H.setRuntimeTypeInfo([0], t5);
  12256. t9 = new Y.SourceFile(null, t9, new Uint32Array(H._ensureNativeList(t8.toList$0(t8))));
  12257. t9.SourceFile$decoded$2$url(t8, null);
  12258. if (t7 == null)
  12259. t7 = C.StderrLogger_false;
  12260. declaration = new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t3, t4), new S.SpanScanner(t9, null, t6), t7).parseVariableDeclaration$0();
  12261. t7 = evaluator;
  12262. t7._visitor.runStatement$2(t7._importer, declaration);
  12263. t7 = evaluator;
  12264. t6 = declaration.name;
  12265. t9 = declaration.span;
  12266. t8 = declaration.namespace;
  12267. line0 = H.S(t7._visitor.runExpression$2(t7._importer, new S.VariableExpression(t8, t6, t9)));
  12268. t6 = $.printToZone;
  12269. if (t6 == null)
  12270. H.printString(line0);
  12271. else
  12272. t6.call$1(line0);
  12273. } else {
  12274. t6 = evaluator;
  12275. t7 = line;
  12276. t8 = logger;
  12277. t7.toString;
  12278. t9 = new H.CodeUnits(t7);
  12279. t10 = H.setRuntimeTypeInfo([0], t5);
  12280. t10 = new Y.SourceFile(null, t10, new Uint32Array(H._ensureNativeList(t9.toList$0(t9))));
  12281. t10.SourceFile$decoded$2$url(t9, null);
  12282. if (t8 == null)
  12283. t8 = C.StderrLogger_false;
  12284. t8 = new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t3, t4), new S.SpanScanner(t10, null, t7), t8);
  12285. t8 = t8._parseSingleProduction$1$1(t8.get$expression(), t1);
  12286. line0 = H.S(t6._visitor.runExpression$2(t6._importer, t8));
  12287. t6 = $.printToZone;
  12288. if (t6 == null)
  12289. H.printString(line0);
  12290. else
  12291. t6.call$1(line0);
  12292. }
  12293. } catch (exception) {
  12294. t6 = H.unwrapException(exception);
  12295. if (t6 instanceof E.SassException) {
  12296. error = t6;
  12297. stackTrace = H.getTraceFromException(exception);
  12298. Y._logError(error, stackTrace, line, repl, options, logger);
  12299. } else
  12300. throw exception;
  12301. }
  12302. // goto for condition
  12303. $async$goto = 5;
  12304. break;
  12305. case 6:
  12306. // after for
  12307. $async$next.push(4);
  12308. // goto finally
  12309. $async$goto = 3;
  12310. break;
  12311. case 2:
  12312. // uncaught
  12313. $async$next = [1];
  12314. case 3:
  12315. // finally
  12316. $async$handler = 1;
  12317. $async$goto = 8;
  12318. return P._asyncAwait(t2.cancel$0(), $async$repl);
  12319. case 8:
  12320. // returning from await.
  12321. // goto the next finally handler
  12322. $async$goto = $async$next.pop();
  12323. break;
  12324. case 4:
  12325. // after finally
  12326. // implicit return
  12327. return P._asyncReturn(null, $async$completer);
  12328. case 1:
  12329. // rethrow
  12330. return P._asyncRethrow($async$currentError, $async$completer);
  12331. }
  12332. });
  12333. return P._asyncStartSync($async$repl, $async$completer);
  12334. },
  12335. _logError: function(error, stackTrace, line, repl, options, logger) {
  12336. var t1, t2, spacesBeforeError;
  12337. if (G.SourceSpanException.prototype.get$span.call(error).file.url == null)
  12338. if (!H._asBoolNullable(options._options.$index(0, "quiet")))
  12339. t1 = logger._emittedDebug || logger._emittedWarning;
  12340. else
  12341. t1 = false;
  12342. else
  12343. t1 = true;
  12344. if (t1) {
  12345. P.print(error.toString$1$color(0, options.get$color()));
  12346. return;
  12347. }
  12348. t1 = options.get$color() ? "\x1b[31m" : "";
  12349. t2 = G.SourceSpanException.prototype.get$span.call(error);
  12350. t2 = Y.FileLocation$_(t2.file, t2._file$_start);
  12351. spacesBeforeError = repl.prompt.length + t2.file.getColumn$1(t2.offset);
  12352. if (options.get$color()) {
  12353. t2 = G.SourceSpanException.prototype.get$span.call(error);
  12354. t2 = Y.FileLocation$_(t2.file, t2._file$_start);
  12355. t2 = t2.file.getColumn$1(t2.offset) < line.length;
  12356. } else
  12357. t2 = false;
  12358. if (t2) {
  12359. t1 += "\x1b[1F\x1b[" + spacesBeforeError + "C";
  12360. t2 = G.SourceSpanException.prototype.get$span.call(error);
  12361. t2 = t1 + (P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t2.file._decodedChars, t2._file$_start, t2._end), 0, null) + "\n");
  12362. t1 = t2;
  12363. }
  12364. t1 += C.JSString_methods.$mul(" ", spacesBeforeError);
  12365. t2 = G.SourceSpanException.prototype.get$span.call(error);
  12366. t2 = t1 + (C.JSString_methods.$mul("^", Math.max(1, t2._end - t2._file$_start)) + "\n");
  12367. t1 = options.get$color() ? t2 + "\x1b[0m" : t2;
  12368. t1 += "Error: " + H.S(error._span_exception$_message) + "\n";
  12369. if (H._asBoolNullable(options._options.$index(0, "trace")))
  12370. t1 += Y.Trace_Trace$from(stackTrace).get$terse().toString$0(0);
  12371. P.print(C.JSString_methods.trimRight$0(t1.charCodeAt(0) == 0 ? t1 : t1));
  12372. }
  12373. },
  12374. L = {StreamGroup: function StreamGroup(t0, t1, t2) {
  12375. var _ = this;
  12376. _._controller = null;
  12377. _._closed = false;
  12378. _._stream_group$_state = t0;
  12379. _._subscriptions = t1;
  12380. _.$ti = t2;
  12381. }, StreamGroup_add_closure: function StreamGroup_add_closure() {
  12382. }, StreamGroup_add_closure0: function StreamGroup_add_closure0(t0, t1) {
  12383. this.$this = t0;
  12384. this.stream = t1;
  12385. }, StreamGroup__onListen_closure: function StreamGroup__onListen_closure(t0) {
  12386. this.$this = t0;
  12387. }, StreamGroup__onCancel_closure: function StreamGroup__onCancel_closure() {
  12388. }, StreamGroup__onCancel_closure0: function StreamGroup__onCancel_closure0() {
  12389. }, StreamGroup__listenToStream_closure: function StreamGroup__listenToStream_closure(t0, t1) {
  12390. this.$this = t0;
  12391. this.stream = t1;
  12392. }, _StreamGroupState: function _StreamGroupState(t0) {
  12393. this.name = t0;
  12394. },
  12395. UnmodifiableSetMixin__throw: function() {
  12396. throw H.wrapException(P.UnsupportedError$("Cannot modify an unmodifiable Set"));
  12397. },
  12398. UnmodifiableSetView: function UnmodifiableSetView(t0, t1) {
  12399. this._base = t0;
  12400. this.$ti = t1;
  12401. },
  12402. UnmodifiableSetMixin: function UnmodifiableSetMixin() {
  12403. },
  12404. _UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin: function _UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin() {
  12405. },
  12406. WindowsStyle: function WindowsStyle(t0, t1, t2, t3) {
  12407. var _ = this;
  12408. _.separatorPattern = t0;
  12409. _.needsSeparatorPattern = t1;
  12410. _.rootPattern = t2;
  12411. _.relativeRootPattern = t3;
  12412. },
  12413. WindowsStyle_absolutePathToUri_closure: function WindowsStyle_absolutePathToUri_closure() {
  12414. },
  12415. ModifiableCssDeclaration$: function($name, value, span, valueSpanForMap) {
  12416. return new L.ModifiableCssDeclaration($name, value, valueSpanForMap == null ? span : valueSpanForMap, span);
  12417. },
  12418. ModifiableCssDeclaration: function ModifiableCssDeclaration(t0, t1, t2, t3) {
  12419. var _ = this;
  12420. _.name = t0;
  12421. _.value = t1;
  12422. _.valueSpanForMap = t2;
  12423. _.span = t3;
  12424. _._indexInParent = _._parent = null;
  12425. _.isGroupEnd = false;
  12426. },
  12427. IfExpression: function IfExpression(t0, t1) {
  12428. this.$arguments = t0;
  12429. this.span = t1;
  12430. },
  12431. Declaration$: function($name, span, children, value) {
  12432. var t1;
  12433. children = children == null ? null : P.List_List$unmodifiable(children, type$.Statement);
  12434. t1 = children == null ? null : C.JSArray_methods.any$1(children, new M.ParentStatement_closure());
  12435. return new L.Declaration($name, value, span, children, t1 === true);
  12436. },
  12437. Declaration: function Declaration(t0, t1, t2, t3, t4) {
  12438. var _ = this;
  12439. _.name = t0;
  12440. _.value = t1;
  12441. _.span = t2;
  12442. _.children = t3;
  12443. _.hasDeclarations = t4;
  12444. },
  12445. ForwardRule: function ForwardRule(t0, t1, t2, t3, t4, t5, t6, t7) {
  12446. var _ = this;
  12447. _.url = t0;
  12448. _.shownMixinsAndFunctions = t1;
  12449. _.shownVariables = t2;
  12450. _.hiddenMixinsAndFunctions = t3;
  12451. _.hiddenVariables = t4;
  12452. _.prefix = t5;
  12453. _.configuration = t6;
  12454. _.span = t7;
  12455. },
  12456. LoudComment: function LoudComment(t0) {
  12457. this.text = t0;
  12458. },
  12459. SupportsDeclaration: function SupportsDeclaration(t0, t1, t2) {
  12460. this.name = t0;
  12461. this.value = t1;
  12462. this.span = t2;
  12463. },
  12464. PlainCssCallable: function PlainCssCallable(t0) {
  12465. this.name = t0;
  12466. },
  12467. ExtendMode: function ExtendMode(t0) {
  12468. this.name = t0;
  12469. },
  12470. ScssParser: function ScssParser(t0, t1, t2) {
  12471. var _ = this;
  12472. _._isUseAllowed = true;
  12473. _._stylesheet$_inMixin = false;
  12474. _._mixinHasContent = null;
  12475. _._inParentheses = _._inStyleRule = _._stylesheet$_inUnknownAtRule = _._inControlDirective = _._inContentBlock = false;
  12476. _._globalVariables = t0;
  12477. _.lastSilentComment = null;
  12478. _.scanner = t1;
  12479. _.logger = t2;
  12480. },
  12481. Entry: function Entry(t0, t1, t2) {
  12482. this.source = t0;
  12483. this.target = t1;
  12484. this.identifierName = t2;
  12485. },
  12486. _StreamTransformer__defaultHandleError: function(error, stackTrace, sink) {
  12487. sink.addError$2(error, stackTrace);
  12488. },
  12489. _StreamTransformer: function _StreamTransformer(t0, t1, t2, t3) {
  12490. var _ = this;
  12491. _._from_handlers$_handleData = t0;
  12492. _._from_handlers$_handleDone = t1;
  12493. _._from_handlers$_handleError = t2;
  12494. _.$ti = t3;
  12495. },
  12496. _StreamTransformer_bind_closure: function _StreamTransformer_bind_closure(t0, t1, t2, t3) {
  12497. var _ = this;
  12498. _._box_1 = t0;
  12499. _.$this = t1;
  12500. _.values = t2;
  12501. _.controller = t3;
  12502. },
  12503. _StreamTransformer_bind__closure: function _StreamTransformer_bind__closure(t0, t1) {
  12504. this.$this = t0;
  12505. this.controller = t1;
  12506. },
  12507. _StreamTransformer_bind__closure1: function _StreamTransformer_bind__closure1(t0, t1) {
  12508. this.$this = t0;
  12509. this.controller = t1;
  12510. },
  12511. _StreamTransformer_bind__closure0: function _StreamTransformer_bind__closure0(t0, t1, t2) {
  12512. this._box_0 = t0;
  12513. this.$this = t1;
  12514. this.controller = t2;
  12515. },
  12516. _StreamTransformer_bind__closure2: function _StreamTransformer_bind__closure2(t0, t1) {
  12517. this._box_1 = t0;
  12518. this._box_0 = t1;
  12519. },
  12520. ModifiableCssDeclaration$0: function($name, value, span, valueSpanForMap) {
  12521. return new L.ModifiableCssDeclaration0($name, value, valueSpanForMap == null ? span : valueSpanForMap, span);
  12522. },
  12523. ModifiableCssDeclaration0: function ModifiableCssDeclaration0(t0, t1, t2, t3) {
  12524. var _ = this;
  12525. _.name = t0;
  12526. _.value = t1;
  12527. _.valueSpanForMap = t2;
  12528. _.span = t3;
  12529. _._node2$_indexInParent = _._node2$_parent = null;
  12530. _.isGroupEnd = false;
  12531. },
  12532. Declaration$0: function($name, span, children, value) {
  12533. var t1;
  12534. children = children == null ? null : P.List_List$unmodifiable(children, type$.Statement_2);
  12535. t1 = children == null ? null : C.JSArray_methods.any$1(children, new M.ParentStatement_closure0());
  12536. return new L.Declaration0($name, value, span, children, t1 === true);
  12537. },
  12538. Declaration0: function Declaration0(t0, t1, t2, t3, t4) {
  12539. var _ = this;
  12540. _.name = t0;
  12541. _.value = t1;
  12542. _.span = t2;
  12543. _.children = t3;
  12544. _.hasDeclarations = t4;
  12545. },
  12546. SupportsDeclaration0: function SupportsDeclaration0(t0, t1, t2) {
  12547. this.name = t0;
  12548. this.value = t1;
  12549. this.span = t2;
  12550. },
  12551. ForwardRule0: function ForwardRule0(t0, t1, t2, t3, t4, t5, t6, t7) {
  12552. var _ = this;
  12553. _.url = t0;
  12554. _.shownMixinsAndFunctions = t1;
  12555. _.shownVariables = t2;
  12556. _.hiddenMixinsAndFunctions = t3;
  12557. _.hiddenVariables = t4;
  12558. _.prefix = t5;
  12559. _.configuration = t6;
  12560. _.span = t7;
  12561. },
  12562. IfExpression0: function IfExpression0(t0, t1) {
  12563. this.$arguments = t0;
  12564. this.span = t1;
  12565. },
  12566. LoudComment0: function LoudComment0(t0) {
  12567. this.text = t0;
  12568. },
  12569. ExtendMode0: function ExtendMode0(t0) {
  12570. this.name = t0;
  12571. },
  12572. PlainCssCallable0: function PlainCssCallable0(t0) {
  12573. this.name = t0;
  12574. },
  12575. RenderContextOptions: function RenderContextOptions() {
  12576. },
  12577. ScssParser0: function ScssParser0(t0, t1, t2) {
  12578. var _ = this;
  12579. _._stylesheet0$_isUseAllowed = true;
  12580. _._stylesheet0$_inMixin = false;
  12581. _._stylesheet0$_mixinHasContent = null;
  12582. _._stylesheet0$_inParentheses = _._stylesheet0$_inStyleRule = _._stylesheet0$_inUnknownAtRule = _._stylesheet0$_inControlDirective = _._stylesheet0$_inContentBlock = false;
  12583. _._stylesheet0$_globalVariables = t0;
  12584. _.lastSilentComment = null;
  12585. _.scanner = t1;
  12586. _.logger = t2;
  12587. },
  12588. encodeVlq: function(value) {
  12589. var res, signBit, digit, t1;
  12590. if (value < $.$get$MIN_INT32() || value > $.$get$MAX_INT32())
  12591. throw H.wrapException(P.ArgumentError$("expected 32 bit int, got: " + value));
  12592. res = H.setRuntimeTypeInfo([], type$.JSArray_String);
  12593. if (value < 0) {
  12594. value = -value;
  12595. signBit = 1;
  12596. } else
  12597. signBit = 0;
  12598. value = value << 1 | signBit;
  12599. do {
  12600. digit = value & 31;
  12601. value = value >>> 5;
  12602. t1 = value > 0;
  12603. res.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[t1 ? digit | 32 : digit]);
  12604. } while (t1);
  12605. return res;
  12606. }
  12607. },
  12608. Q = {Repl: function Repl(t0, t1, t2, t3) {
  12609. var _ = this;
  12610. _.prompt = t0;
  12611. _.continuation = t1;
  12612. _.validator = t2;
  12613. _._adapter = null;
  12614. _.history = t3;
  12615. }, closure106: function closure106() {
  12616. },
  12617. QueueList$: function(initialCapacity, $E) {
  12618. var t1 = new Q.QueueList(0, 0, $E._eval$1("QueueList<0>"));
  12619. t1.QueueList$1(initialCapacity, $E);
  12620. return t1;
  12621. },
  12622. QueueList_QueueList$from: function(source, $E) {
  12623. var $length, queue, t1;
  12624. if (type$.List_dynamic._is(source)) {
  12625. $length = J.get$length$asx(source);
  12626. queue = Q.QueueList$($length + 1, $E);
  12627. J.setRange$4$ax(queue._table, 0, $length, source, 0);
  12628. queue._tail = $length;
  12629. return queue;
  12630. } else {
  12631. t1 = Q.QueueList$(null, $E);
  12632. t1.addAll$1(0, source);
  12633. return t1;
  12634. }
  12635. },
  12636. QueueList__nextPowerOf2: function(number) {
  12637. var nextNumber;
  12638. number = (number << 1 >>> 0) - 1;
  12639. for (; true; number = nextNumber) {
  12640. nextNumber = (number & number - 1) >>> 0;
  12641. if (nextNumber === 0)
  12642. return number;
  12643. }
  12644. },
  12645. QueueList: function QueueList(t0, t1, t2) {
  12646. var _ = this;
  12647. _._table = null;
  12648. _._head = t0;
  12649. _._tail = t1;
  12650. _.$ti = t2;
  12651. },
  12652. _CastQueueList: function _CastQueueList(t0, t1, t2, t3) {
  12653. var _ = this;
  12654. _._queue_list$_delegate = t0;
  12655. _._table = null;
  12656. _._head = t1;
  12657. _._tail = t2;
  12658. _.$ti = t3;
  12659. },
  12660. _QueueList_Object_ListMixin: function _QueueList_Object_ListMixin() {
  12661. },
  12662. StaticImport: function StaticImport(t0, t1, t2, t3) {
  12663. var _ = this;
  12664. _.url = t0;
  12665. _.supports = t1;
  12666. _.media = t2;
  12667. _.span = t3;
  12668. },
  12669. ContentRule: function ContentRule(t0, t1) {
  12670. this.span = t0;
  12671. this.$arguments = t1;
  12672. },
  12673. DebugRule: function DebugRule(t0, t1) {
  12674. this.expression = t0;
  12675. this.span = t1;
  12676. },
  12677. AsyncEnvironment$: function(sourceMap) {
  12678. var _null = null,
  12679. t1 = type$.String,
  12680. t2 = type$.Module_AsyncCallable,
  12681. t3 = type$.AstNode,
  12682. t4 = H.setRuntimeTypeInfo([], type$.JSArray_Module_AsyncCallable),
  12683. t5 = H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Value)], type$.JSArray_Map_String_Value),
  12684. t6 = sourceMap ? H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t3)], type$.JSArray_Map_String_AstNode) : _null,
  12685. t7 = type$.int,
  12686. t8 = type$.AsyncCallable,
  12687. t9 = type$.JSArray_Map_String_AsyncCallable;
  12688. return new Q.AsyncEnvironment(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), P.LinkedHashMap_LinkedHashMap$_empty(t1, t3), P.LinkedHashSet_LinkedHashSet$_empty(t2), P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), _null, _null, _null, t4, t5, t6, P.LinkedHashMap_LinkedHashMap$_empty(t1, t7), H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t8)], t9), P.LinkedHashMap_LinkedHashMap$_empty(t1, t7), H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t8)], t9), P.LinkedHashMap_LinkedHashMap$_empty(t1, t7), _null);
  12689. },
  12690. AsyncEnvironment$_: function(_modules, _namespaceNodes, _globalModules, _globalModuleNodes, _forwardedModules, _forwardedModuleNodes, _nestedForwardedModules, _allModules, _variables, _variableNodes, _functions, _mixins, _content) {
  12691. var t1 = type$.String,
  12692. t2 = type$.int;
  12693. return new Q.AsyncEnvironment(_modules, _namespaceNodes, _globalModules, _globalModuleNodes, _forwardedModules, _forwardedModuleNodes, _nestedForwardedModules, _allModules, _variables, _variableNodes, P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _functions, P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _mixins, P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _content);
  12694. },
  12695. _EnvironmentModule__EnvironmentModule0: function(environment, css, extender, forwarded) {
  12696. var t1, t2, t3, t4, t5, t6;
  12697. if (forwarded == null)
  12698. forwarded = C.Set_empty0;
  12699. t1 = Q._EnvironmentModule__makeModulesByVariable0(forwarded);
  12700. t2 = H._instanceType(forwarded);
  12701. t3 = Q._EnvironmentModule__memberMap0(C.JSArray_methods.get$first(environment._async_environment$_variables), new H.EfficientLengthMappedIterable(forwarded, new Q._EnvironmentModule__EnvironmentModule_closure5(), t2._eval$1("EfficientLengthMappedIterable<1,Map<String,Value>>")), type$.Value);
  12702. t4 = environment._async_environment$_variableNodes;
  12703. t4 = t4 == null ? null : Q._EnvironmentModule__memberMap0(C.JSArray_methods.get$first(t4), new H.EfficientLengthMappedIterable(forwarded, new Q._EnvironmentModule__EnvironmentModule_closure6(), t2._eval$1("EfficientLengthMappedIterable<1,Map<String,AstNode>>")), type$.AstNode);
  12704. t2 = t2._eval$1("EfficientLengthMappedIterable<1,Map<String,AsyncCallable>>");
  12705. t5 = type$.AsyncCallable;
  12706. t6 = Q._EnvironmentModule__memberMap0(C.JSArray_methods.get$first(environment._async_environment$_functions), new H.EfficientLengthMappedIterable(forwarded, new Q._EnvironmentModule__EnvironmentModule_closure7(), t2), t5);
  12707. t5 = Q._EnvironmentModule__memberMap0(C.JSArray_methods.get$first(environment._async_environment$_mixins), new H.EfficientLengthMappedIterable(forwarded, new Q._EnvironmentModule__EnvironmentModule_closure8(), t2), t5);
  12708. t2 = J.get$isNotEmpty$asx(css.get$children()) || C.JSArray_methods.any$1(environment._async_environment$_allModules, new Q._EnvironmentModule__EnvironmentModule_closure9());
  12709. return Q._EnvironmentModule$_0(environment, css, extender, t1, t3, t4, t6, t5, t2, !extender.get$isEmpty(extender) || C.JSArray_methods.any$1(environment._async_environment$_allModules, new Q._EnvironmentModule__EnvironmentModule_closure10()));
  12710. },
  12711. _EnvironmentModule__makeModulesByVariable0: function(forwarded) {
  12712. var modulesByVariable, t1, t2, t3, t4;
  12713. if (forwarded.get$isEmpty(forwarded))
  12714. return C.Map_empty4;
  12715. modulesByVariable = P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.Module_AsyncCallable);
  12716. for (t1 = forwarded.get$iterator(forwarded); t1.moveNext$0();) {
  12717. t2 = t1.get$current(t1);
  12718. if (t2 instanceof Q._EnvironmentModule0) {
  12719. for (t3 = t2._async_environment$_modulesByVariable.get$values(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  12720. t4 = t3.get$current(t3);
  12721. B.setAll(modulesByVariable, t4.get$variables().get$keys(), t4);
  12722. }
  12723. B.setAll(modulesByVariable, C.JSArray_methods.get$first(t2._async_environment$_environment._async_environment$_variables).get$keys(), t2);
  12724. } else
  12725. B.setAll(modulesByVariable, t2.get$variables().get$keys(), t2);
  12726. }
  12727. return modulesByVariable;
  12728. },
  12729. _EnvironmentModule__memberMap0: function(localMap, otherMaps, $V) {
  12730. var t1, t2, t3;
  12731. localMap = new U.PublicMemberMapView(localMap, $V._eval$1("PublicMemberMapView<0>"));
  12732. t1 = otherMaps.__internal$_iterable;
  12733. t2 = J.getInterceptor$asx(t1);
  12734. if (t2.get$isEmpty(t1))
  12735. return localMap;
  12736. t3 = H.setRuntimeTypeInfo([], $V._eval$1("JSArray<Map<String,0>>"));
  12737. for (t1 = new H.MappedIterator(t2.get$iterator(t1), otherMaps._f); t1.moveNext$0();) {
  12738. t2 = t1.__internal$_current;
  12739. if (t2.get$isNotEmpty(t2))
  12740. t3.push(t2);
  12741. }
  12742. t3.push(localMap);
  12743. if (t3.length === 1)
  12744. return localMap;
  12745. return Z.MergedMapView$(t3, type$.String, $V);
  12746. },
  12747. _EnvironmentModule$_0: function(_environment, css, extender, _modulesByVariable, variables, variableNodes, functions, mixins, transitivelyContainsCss, transitivelyContainsExtensions) {
  12748. return new Q._EnvironmentModule0(_environment._async_environment$_allModules, variables, variableNodes, functions, mixins, extender, css, transitivelyContainsCss, transitivelyContainsExtensions, _environment, _modulesByVariable);
  12749. },
  12750. AsyncEnvironment: function AsyncEnvironment(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15) {
  12751. var _ = this;
  12752. _._async_environment$_modules = t0;
  12753. _._async_environment$_namespaceNodes = t1;
  12754. _._async_environment$_globalModules = t2;
  12755. _._async_environment$_globalModuleNodes = t3;
  12756. _._async_environment$_forwardedModules = t4;
  12757. _._async_environment$_forwardedModuleNodes = t5;
  12758. _._async_environment$_nestedForwardedModules = t6;
  12759. _._async_environment$_allModules = t7;
  12760. _._async_environment$_variables = t8;
  12761. _._async_environment$_variableNodes = t9;
  12762. _._async_environment$_variableIndices = t10;
  12763. _._async_environment$_functions = t11;
  12764. _._async_environment$_functionIndices = t12;
  12765. _._async_environment$_mixins = t13;
  12766. _._async_environment$_mixinIndices = t14;
  12767. _._async_environment$_content = t15;
  12768. _._async_environment$_inMixin = false;
  12769. _._async_environment$_inSemiGlobalScope = true;
  12770. _._async_environment$_lastVariableIndex = _._async_environment$_lastVariableName = null;
  12771. },
  12772. AsyncEnvironment_importForwards_closure: function AsyncEnvironment_importForwards_closure() {
  12773. },
  12774. AsyncEnvironment_importForwards_closure0: function AsyncEnvironment_importForwards_closure0() {
  12775. },
  12776. AsyncEnvironment_importForwards_closure1: function AsyncEnvironment_importForwards_closure1() {
  12777. },
  12778. AsyncEnvironment_importForwards_closure2: function AsyncEnvironment_importForwards_closure2() {
  12779. },
  12780. AsyncEnvironment__getVariableFromGlobalModule_closure: function AsyncEnvironment__getVariableFromGlobalModule_closure(t0) {
  12781. this.name = t0;
  12782. },
  12783. AsyncEnvironment_setVariable_closure: function AsyncEnvironment_setVariable_closure(t0, t1) {
  12784. this.$this = t0;
  12785. this.name = t1;
  12786. },
  12787. AsyncEnvironment_setVariable_closure0: function AsyncEnvironment_setVariable_closure0(t0) {
  12788. this.name = t0;
  12789. },
  12790. AsyncEnvironment_setVariable_closure1: function AsyncEnvironment_setVariable_closure1(t0, t1) {
  12791. this.$this = t0;
  12792. this.name = t1;
  12793. },
  12794. AsyncEnvironment__getFunctionFromGlobalModule_closure: function AsyncEnvironment__getFunctionFromGlobalModule_closure(t0) {
  12795. this.name = t0;
  12796. },
  12797. AsyncEnvironment__getMixinFromGlobalModule_closure: function AsyncEnvironment__getMixinFromGlobalModule_closure(t0) {
  12798. this.name = t0;
  12799. },
  12800. _EnvironmentModule0: function _EnvironmentModule0(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10) {
  12801. var _ = this;
  12802. _.upstream = t0;
  12803. _.variables = t1;
  12804. _.variableNodes = t2;
  12805. _.functions = t3;
  12806. _.mixins = t4;
  12807. _.extender = t5;
  12808. _.css = t6;
  12809. _.transitivelyContainsCss = t7;
  12810. _.transitivelyContainsExtensions = t8;
  12811. _._async_environment$_environment = t9;
  12812. _._async_environment$_modulesByVariable = t10;
  12813. },
  12814. _EnvironmentModule__EnvironmentModule_closure5: function _EnvironmentModule__EnvironmentModule_closure5() {
  12815. },
  12816. _EnvironmentModule__EnvironmentModule_closure6: function _EnvironmentModule__EnvironmentModule_closure6() {
  12817. },
  12818. _EnvironmentModule__EnvironmentModule_closure7: function _EnvironmentModule__EnvironmentModule_closure7() {
  12819. },
  12820. _EnvironmentModule__EnvironmentModule_closure8: function _EnvironmentModule__EnvironmentModule_closure8() {
  12821. },
  12822. _EnvironmentModule__EnvironmentModule_closure9: function _EnvironmentModule__EnvironmentModule_closure9() {
  12823. },
  12824. _EnvironmentModule__EnvironmentModule_closure10: function _EnvironmentModule__EnvironmentModule_closure10() {
  12825. },
  12826. BuiltInCallable$function: function($name, $arguments, callback, url) {
  12827. var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", url);
  12828. return new Q.BuiltInCallable($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, C.StderrLogger_false).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value));
  12829. },
  12830. BuiltInCallable$mixin: function($name, $arguments, callback, url) {
  12831. var t1 = S.SpanScanner$("@mixin " + $name + "(" + $arguments + ") {", url);
  12832. return new Q.BuiltInCallable($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, C.StderrLogger_false).parseArgumentDeclaration$0(), new Q.BuiltInCallable$mixin_closure(callback), type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value));
  12833. },
  12834. BuiltInCallable$overloadedFunction: function($name, overloads) {
  12835. var t2, t3, t4, t5, t6, t7, t8, t9, t10,
  12836. t1 = H.setRuntimeTypeInfo([], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value);
  12837. for (t2 = overloads.get$entries(), t2 = t2.get$iterator(t2), t3 = type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value, t4 = type$.String, t5 = type$.VariableDeclaration, t6 = type$.JSArray_int; t2.moveNext$0();) {
  12838. t7 = t2.get$current(t2);
  12839. t8 = "@function " + $name + "(" + H.S(t7.key) + ") {";
  12840. t9 = new H.CodeUnits(t8);
  12841. t10 = H.setRuntimeTypeInfo([0], t6);
  12842. t10 = new Y.SourceFile(null, t10, new Uint32Array(H._ensureNativeList(t9.toList$0(t9))));
  12843. t10.SourceFile$decoded$2$url(t9, null);
  12844. t1.push(new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t4, t5), new S.SpanScanner(t10, null, t8), C.StderrLogger_false).parseArgumentDeclaration$0(), t7.value, t3));
  12845. }
  12846. return new Q.BuiltInCallable($name, t1);
  12847. },
  12848. BuiltInCallable: function BuiltInCallable(t0, t1) {
  12849. this.name = t0;
  12850. this._overloads = t1;
  12851. },
  12852. BuiltInCallable$mixin_closure: function BuiltInCallable$mixin_closure(t0) {
  12853. this.callback = t0;
  12854. },
  12855. _function5: function($name, $arguments, callback) {
  12856. var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:meta");
  12857. return new Q.BuiltInCallable($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, C.StderrLogger_false).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value));
  12858. },
  12859. closure101: function closure101() {
  12860. },
  12861. closure102: function closure102() {
  12862. },
  12863. closure103: function closure103() {
  12864. },
  12865. closure104: function closure104() {
  12866. },
  12867. _closure13: function _closure13() {
  12868. },
  12869. BuiltInModule$: function($name, functions, mixins, variables, $T) {
  12870. var t1 = P._Uri__Uri(null, $name, null, "sass"),
  12871. t2 = Q.BuiltInModule__callableMap(functions, $T),
  12872. t3 = Q.BuiltInModule__callableMap(mixins, $T),
  12873. t4 = variables == null ? C.Map_empty2 : new P.UnmodifiableMapView(variables, type$.UnmodifiableMapView_String_Value);
  12874. return new Q.BuiltInModule(t1, t2, t3, t4, $T._eval$1("BuiltInModule<0>"));
  12875. },
  12876. BuiltInModule__callableMap: function(callables, $T) {
  12877. var t2, _i, callable,
  12878. t1 = type$.String;
  12879. if (callables == null)
  12880. t1 = P.LinkedHashMap_LinkedHashMap$_empty(t1, $T);
  12881. else {
  12882. t1 = P.LinkedHashMap_LinkedHashMap$_empty(t1, $T);
  12883. for (t2 = callables.length, _i = 0; _i < callables.length; callables.length === t2 || (0, H.throwConcurrentModificationError)(callables), ++_i) {
  12884. callable = callables[_i];
  12885. t1.$indexSet(0, callable.get$name(), callable);
  12886. }
  12887. t1 = new P.UnmodifiableMapView(t1, type$.$env_1_1_String._bind$1($T)._eval$1("UnmodifiableMapView<1,2>"));
  12888. }
  12889. return new P.UnmodifiableMapView(t1, type$.$env_1_1_String._bind$1($T)._eval$1("UnmodifiableMapView<1,2>"));
  12890. },
  12891. BuiltInModule: function BuiltInModule(t0, t1, t2, t3, t4) {
  12892. var _ = this;
  12893. _.url = t0;
  12894. _.functions = t1;
  12895. _.mixins = t2;
  12896. _.variables = t3;
  12897. _.$ti = t4;
  12898. },
  12899. closure105: function closure105() {
  12900. },
  12901. CssParser: function CssParser(t0, t1, t2) {
  12902. var _ = this;
  12903. _._isUseAllowed = true;
  12904. _._stylesheet$_inMixin = false;
  12905. _._mixinHasContent = null;
  12906. _._inParentheses = _._inStyleRule = _._stylesheet$_inUnknownAtRule = _._inControlDirective = _._inContentBlock = false;
  12907. _._globalVariables = t0;
  12908. _.lastSilentComment = null;
  12909. _.scanner = t1;
  12910. _.logger = t2;
  12911. },
  12912. AsyncEnvironment$0: function(sourceMap) {
  12913. var _null = null,
  12914. t1 = type$.String,
  12915. t2 = type$.Module_AsyncCallable_2,
  12916. t3 = type$.AstNode_2,
  12917. t4 = H.setRuntimeTypeInfo([], type$.JSArray_Module_AsyncCallable_2),
  12918. t5 = H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Value_2)], type$.JSArray_Map_String_Value_2),
  12919. t6 = sourceMap ? H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t3)], type$.JSArray_Map_String_AstNode_2) : _null,
  12920. t7 = type$.int,
  12921. t8 = type$.AsyncCallable_2,
  12922. t9 = type$.JSArray_Map_String_AsyncCallable_2;
  12923. return new Q.AsyncEnvironment0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), P.LinkedHashMap_LinkedHashMap$_empty(t1, t3), P.LinkedHashSet_LinkedHashSet$_empty(t2), P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), _null, _null, _null, t4, t5, t6, P.LinkedHashMap_LinkedHashMap$_empty(t1, t7), H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t8)], t9), P.LinkedHashMap_LinkedHashMap$_empty(t1, t7), H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t8)], t9), P.LinkedHashMap_LinkedHashMap$_empty(t1, t7), _null);
  12924. },
  12925. AsyncEnvironment$_0: function(_modules, _namespaceNodes, _globalModules, _globalModuleNodes, _forwardedModules, _forwardedModuleNodes, _nestedForwardedModules, _allModules, _variables, _variableNodes, _functions, _mixins, _content) {
  12926. var t1 = type$.String,
  12927. t2 = type$.int;
  12928. return new Q.AsyncEnvironment0(_modules, _namespaceNodes, _globalModules, _globalModuleNodes, _forwardedModules, _forwardedModuleNodes, _nestedForwardedModules, _allModules, _variables, _variableNodes, P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _functions, P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _mixins, P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _content);
  12929. },
  12930. _EnvironmentModule__EnvironmentModule2: function(environment, css, extender, forwarded) {
  12931. var t1, t2, t3, t4, t5, t6;
  12932. if (forwarded == null)
  12933. forwarded = C.Set_empty3;
  12934. t1 = Q._EnvironmentModule__makeModulesByVariable2(forwarded);
  12935. t2 = H._instanceType(forwarded);
  12936. t3 = Q._EnvironmentModule__memberMap2(C.JSArray_methods.get$first(environment._async_environment0$_variables), new H.EfficientLengthMappedIterable(forwarded, new Q._EnvironmentModule__EnvironmentModule_closure17(), t2._eval$1("EfficientLengthMappedIterable<1,Map<String,Value0>>")), type$.Value_2);
  12937. t4 = environment._async_environment0$_variableNodes;
  12938. t4 = t4 == null ? null : Q._EnvironmentModule__memberMap2(C.JSArray_methods.get$first(t4), new H.EfficientLengthMappedIterable(forwarded, new Q._EnvironmentModule__EnvironmentModule_closure18(), t2._eval$1("EfficientLengthMappedIterable<1,Map<String,AstNode0>>")), type$.AstNode_2);
  12939. t2 = t2._eval$1("EfficientLengthMappedIterable<1,Map<String,AsyncCallable0>>");
  12940. t5 = type$.AsyncCallable_2;
  12941. t6 = Q._EnvironmentModule__memberMap2(C.JSArray_methods.get$first(environment._async_environment0$_functions), new H.EfficientLengthMappedIterable(forwarded, new Q._EnvironmentModule__EnvironmentModule_closure19(), t2), t5);
  12942. t5 = Q._EnvironmentModule__memberMap2(C.JSArray_methods.get$first(environment._async_environment0$_mixins), new H.EfficientLengthMappedIterable(forwarded, new Q._EnvironmentModule__EnvironmentModule_closure20(), t2), t5);
  12943. t2 = J.get$isNotEmpty$asx(css.get$children()) || C.JSArray_methods.any$1(environment._async_environment0$_allModules, new Q._EnvironmentModule__EnvironmentModule_closure21());
  12944. return Q._EnvironmentModule$_2(environment, css, extender, t1, t3, t4, t6, t5, t2, !extender.get$isEmpty(extender) || C.JSArray_methods.any$1(environment._async_environment0$_allModules, new Q._EnvironmentModule__EnvironmentModule_closure22()));
  12945. },
  12946. _EnvironmentModule__makeModulesByVariable2: function(forwarded) {
  12947. var modulesByVariable, t1, t2, t3, t4;
  12948. if (forwarded.get$isEmpty(forwarded))
  12949. return C.Map_empty11;
  12950. modulesByVariable = P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.Module_AsyncCallable_2);
  12951. for (t1 = forwarded.get$iterator(forwarded); t1.moveNext$0();) {
  12952. t2 = t1.get$current(t1);
  12953. if (t2 instanceof Q._EnvironmentModule2) {
  12954. for (t3 = t2._async_environment0$_modulesByVariable.get$values(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  12955. t4 = t3.get$current(t3);
  12956. B.setAll0(modulesByVariable, t4.get$variables().get$keys(), t4);
  12957. }
  12958. B.setAll0(modulesByVariable, C.JSArray_methods.get$first(t2._async_environment0$_environment._async_environment0$_variables).get$keys(), t2);
  12959. } else
  12960. B.setAll0(modulesByVariable, t2.get$variables().get$keys(), t2);
  12961. }
  12962. return modulesByVariable;
  12963. },
  12964. _EnvironmentModule__memberMap2: function(localMap, otherMaps, $V) {
  12965. var t1, t2, t3;
  12966. localMap = new U.PublicMemberMapView0(localMap, $V._eval$1("PublicMemberMapView0<0>"));
  12967. t1 = otherMaps.__internal$_iterable;
  12968. t2 = J.getInterceptor$asx(t1);
  12969. if (t2.get$isEmpty(t1))
  12970. return localMap;
  12971. t3 = H.setRuntimeTypeInfo([], $V._eval$1("JSArray<Map<String,0>>"));
  12972. for (t1 = new H.MappedIterator(t2.get$iterator(t1), otherMaps._f); t1.moveNext$0();) {
  12973. t2 = t1.__internal$_current;
  12974. if (t2.get$isNotEmpty(t2))
  12975. t3.push(t2);
  12976. }
  12977. t3.push(localMap);
  12978. if (t3.length === 1)
  12979. return localMap;
  12980. return Z.MergedMapView$0(t3, type$.String, $V);
  12981. },
  12982. _EnvironmentModule$_2: function(_environment, css, extender, _modulesByVariable, variables, variableNodes, functions, mixins, transitivelyContainsCss, transitivelyContainsExtensions) {
  12983. return new Q._EnvironmentModule2(_environment._async_environment0$_allModules, variables, variableNodes, functions, mixins, extender, css, transitivelyContainsCss, transitivelyContainsExtensions, _environment, _modulesByVariable);
  12984. },
  12985. AsyncEnvironment0: function AsyncEnvironment0(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15) {
  12986. var _ = this;
  12987. _._async_environment0$_modules = t0;
  12988. _._async_environment0$_namespaceNodes = t1;
  12989. _._async_environment0$_globalModules = t2;
  12990. _._async_environment0$_globalModuleNodes = t3;
  12991. _._async_environment0$_forwardedModules = t4;
  12992. _._async_environment0$_forwardedModuleNodes = t5;
  12993. _._async_environment0$_nestedForwardedModules = t6;
  12994. _._async_environment0$_allModules = t7;
  12995. _._async_environment0$_variables = t8;
  12996. _._async_environment0$_variableNodes = t9;
  12997. _._async_environment0$_variableIndices = t10;
  12998. _._async_environment0$_functions = t11;
  12999. _._async_environment0$_functionIndices = t12;
  13000. _._async_environment0$_mixins = t13;
  13001. _._async_environment0$_mixinIndices = t14;
  13002. _._async_environment0$_content = t15;
  13003. _._async_environment0$_inMixin = false;
  13004. _._async_environment0$_inSemiGlobalScope = true;
  13005. _._async_environment0$_lastVariableIndex = _._async_environment0$_lastVariableName = null;
  13006. },
  13007. AsyncEnvironment_importForwards_closure3: function AsyncEnvironment_importForwards_closure3() {
  13008. },
  13009. AsyncEnvironment_importForwards_closure4: function AsyncEnvironment_importForwards_closure4() {
  13010. },
  13011. AsyncEnvironment_importForwards_closure5: function AsyncEnvironment_importForwards_closure5() {
  13012. },
  13013. AsyncEnvironment_importForwards_closure6: function AsyncEnvironment_importForwards_closure6() {
  13014. },
  13015. AsyncEnvironment__getVariableFromGlobalModule_closure0: function AsyncEnvironment__getVariableFromGlobalModule_closure0(t0) {
  13016. this.name = t0;
  13017. },
  13018. AsyncEnvironment_setVariable_closure2: function AsyncEnvironment_setVariable_closure2(t0, t1) {
  13019. this.$this = t0;
  13020. this.name = t1;
  13021. },
  13022. AsyncEnvironment_setVariable_closure3: function AsyncEnvironment_setVariable_closure3(t0) {
  13023. this.name = t0;
  13024. },
  13025. AsyncEnvironment_setVariable_closure4: function AsyncEnvironment_setVariable_closure4(t0, t1) {
  13026. this.$this = t0;
  13027. this.name = t1;
  13028. },
  13029. AsyncEnvironment__getFunctionFromGlobalModule_closure0: function AsyncEnvironment__getFunctionFromGlobalModule_closure0(t0) {
  13030. this.name = t0;
  13031. },
  13032. AsyncEnvironment__getMixinFromGlobalModule_closure0: function AsyncEnvironment__getMixinFromGlobalModule_closure0(t0) {
  13033. this.name = t0;
  13034. },
  13035. _EnvironmentModule2: function _EnvironmentModule2(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10) {
  13036. var _ = this;
  13037. _.upstream = t0;
  13038. _.variables = t1;
  13039. _.variableNodes = t2;
  13040. _.functions = t3;
  13041. _.mixins = t4;
  13042. _.extender = t5;
  13043. _.css = t6;
  13044. _.transitivelyContainsCss = t7;
  13045. _.transitivelyContainsExtensions = t8;
  13046. _._async_environment0$_environment = t9;
  13047. _._async_environment0$_modulesByVariable = t10;
  13048. },
  13049. _EnvironmentModule__EnvironmentModule_closure17: function _EnvironmentModule__EnvironmentModule_closure17() {
  13050. },
  13051. _EnvironmentModule__EnvironmentModule_closure18: function _EnvironmentModule__EnvironmentModule_closure18() {
  13052. },
  13053. _EnvironmentModule__EnvironmentModule_closure19: function _EnvironmentModule__EnvironmentModule_closure19() {
  13054. },
  13055. _EnvironmentModule__EnvironmentModule_closure20: function _EnvironmentModule__EnvironmentModule_closure20() {
  13056. },
  13057. _EnvironmentModule__EnvironmentModule_closure21: function _EnvironmentModule__EnvironmentModule_closure21() {
  13058. },
  13059. _EnvironmentModule__EnvironmentModule_closure22: function _EnvironmentModule__EnvironmentModule_closure22() {
  13060. },
  13061. BuiltInCallable$function0: function($name, $arguments, callback, url) {
  13062. var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", url);
  13063. return new Q.BuiltInCallable0($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, C.C_StderrLogger).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2));
  13064. },
  13065. BuiltInCallable$mixin0: function($name, $arguments, callback, url) {
  13066. var t1 = S.SpanScanner$("@mixin " + $name + "(" + $arguments + ") {", url);
  13067. return new Q.BuiltInCallable0($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, C.C_StderrLogger).parseArgumentDeclaration$0(), new Q.BuiltInCallable$mixin_closure0(callback), type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2));
  13068. },
  13069. BuiltInCallable$parsed: function($name, $arguments, callback) {
  13070. return new Q.BuiltInCallable0($name, H.setRuntimeTypeInfo([new S.Tuple2($arguments, callback, type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2));
  13071. },
  13072. BuiltInCallable$overloadedFunction0: function($name, overloads) {
  13073. var t2, t3, t4, t5, t6, t7, t8, t9, t10,
  13074. t1 = H.setRuntimeTypeInfo([], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2);
  13075. for (t2 = overloads.get$entries(), t2 = t2.get$iterator(t2), t3 = type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2, t4 = type$.String, t5 = type$.VariableDeclaration_2, t6 = type$.JSArray_int; t2.moveNext$0();) {
  13076. t7 = t2.get$current(t2);
  13077. t8 = "@function " + $name + "(" + H.S(t7.key) + ") {";
  13078. t9 = new H.CodeUnits(t8);
  13079. t10 = H.setRuntimeTypeInfo([0], t6);
  13080. t10 = new Y.SourceFile(null, t10, new Uint32Array(H._ensureNativeList(t9.toList$0(t9))));
  13081. t10.SourceFile$decoded$2$url(t9, null);
  13082. t1.push(new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(t4, t5), new S.SpanScanner(t10, null, t8), C.C_StderrLogger).parseArgumentDeclaration$0(), t7.value, t3));
  13083. }
  13084. return new Q.BuiltInCallable0($name, t1);
  13085. },
  13086. BuiltInCallable0: function BuiltInCallable0(t0, t1) {
  13087. this.name = t0;
  13088. this._built_in$_overloads = t1;
  13089. },
  13090. BuiltInCallable$mixin_closure0: function BuiltInCallable$mixin_closure0(t0) {
  13091. this.callback = t0;
  13092. },
  13093. BuiltInModule$0: function($name, functions, mixins, variables, $T) {
  13094. var t1 = P._Uri__Uri(null, $name, null, "sass"),
  13095. t2 = Q.BuiltInModule__callableMap0(functions, $T),
  13096. t3 = Q.BuiltInModule__callableMap0(mixins, $T),
  13097. t4 = variables == null ? C.Map_empty8 : new P.UnmodifiableMapView(variables, type$.UnmodifiableMapView_String_Value_2);
  13098. return new Q.BuiltInModule0(t1, t2, t3, t4, $T._eval$1("BuiltInModule0<0>"));
  13099. },
  13100. BuiltInModule__callableMap0: function(callables, $T) {
  13101. var t2, _i, callable,
  13102. t1 = type$.String;
  13103. if (callables == null)
  13104. t1 = P.LinkedHashMap_LinkedHashMap$_empty(t1, $T);
  13105. else {
  13106. t1 = P.LinkedHashMap_LinkedHashMap$_empty(t1, $T);
  13107. for (t2 = callables.length, _i = 0; _i < callables.length; callables.length === t2 || (0, H.throwConcurrentModificationError)(callables), ++_i) {
  13108. callable = callables[_i];
  13109. t1.$indexSet(0, callable.get$name(), callable);
  13110. }
  13111. t1 = new P.UnmodifiableMapView(t1, type$.$env_1_1_String._bind$1($T)._eval$1("UnmodifiableMapView<1,2>"));
  13112. }
  13113. return new P.UnmodifiableMapView(t1, type$.$env_1_1_String._bind$1($T)._eval$1("UnmodifiableMapView<1,2>"));
  13114. },
  13115. BuiltInModule0: function BuiltInModule0(t0, t1, t2, t3, t4) {
  13116. var _ = this;
  13117. _.url = t0;
  13118. _.functions = t1;
  13119. _.mixins = t2;
  13120. _.variables = t3;
  13121. _.$ti = t4;
  13122. },
  13123. ContentRule0: function ContentRule0(t0, t1) {
  13124. this.span = t0;
  13125. this.$arguments = t1;
  13126. },
  13127. closure213: function closure213() {
  13128. },
  13129. CssParser0: function CssParser0(t0, t1, t2) {
  13130. var _ = this;
  13131. _._stylesheet0$_isUseAllowed = true;
  13132. _._stylesheet0$_inMixin = false;
  13133. _._stylesheet0$_mixinHasContent = null;
  13134. _._stylesheet0$_inParentheses = _._stylesheet0$_inStyleRule = _._stylesheet0$_inUnknownAtRule = _._stylesheet0$_inControlDirective = _._stylesheet0$_inContentBlock = false;
  13135. _._stylesheet0$_globalVariables = t0;
  13136. _.lastSilentComment = null;
  13137. _.scanner = t1;
  13138. _.logger = t2;
  13139. },
  13140. DebugRule0: function DebugRule0(t0, t1) {
  13141. this.expression = t0;
  13142. this.span = t1;
  13143. },
  13144. _function12: function($name, $arguments, callback) {
  13145. var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:meta");
  13146. return new Q.BuiltInCallable0($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, C.C_StderrLogger).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2));
  13147. },
  13148. closure209: function closure209() {
  13149. },
  13150. closure210: function closure210() {
  13151. },
  13152. closure211: function closure211() {
  13153. },
  13154. closure212: function closure212() {
  13155. },
  13156. _closure28: function _closure28() {
  13157. },
  13158. StaticImport0: function StaticImport0(t0, t1, t2, t3) {
  13159. var _ = this;
  13160. _.url = t0;
  13161. _.supports = t1;
  13162. _.media = t2;
  13163. _.span = t3;
  13164. }
  13165. },
  13166. B = {ReplAdapter: function ReplAdapter(t0) {
  13167. this.repl = t0;
  13168. this.rl = null;
  13169. }, ReplAdapter_runAsync_closure: function ReplAdapter_runAsync_closure(t0) {
  13170. this.controller = t0;
  13171. }, Stdin: function Stdin() {
  13172. }, Stdout: function Stdout() {
  13173. }, ReadlineModule: function ReadlineModule() {
  13174. }, ReadlineOptions: function ReadlineOptions() {
  13175. }, ReadlineInterface: function ReadlineInterface() {
  13176. },
  13177. defaultCompare: function($T) {
  13178. return new B.defaultCompare_closure($T);
  13179. },
  13180. defaultCompare_closure: function defaultCompare_closure(t0) {
  13181. this.T = t0;
  13182. },
  13183. InternalStyle: function InternalStyle() {
  13184. },
  13185. ModifiableCssNode: function ModifiableCssNode() {
  13186. },
  13187. ModifiableCssParentNode: function ModifiableCssParentNode() {
  13188. },
  13189. ModifiableCssSupportsRule: function ModifiableCssSupportsRule(t0, t1, t2, t3) {
  13190. var _ = this;
  13191. _.condition = t0;
  13192. _.span = t1;
  13193. _.children = t2;
  13194. _._children = t3;
  13195. _._indexInParent = _._parent = null;
  13196. _.isGroupEnd = false;
  13197. },
  13198. CssNode: function CssNode() {
  13199. },
  13200. CssParentNode: function CssParentNode() {
  13201. },
  13202. AstNode: function AstNode() {
  13203. },
  13204. _FakeAstNode: function _FakeAstNode(t0) {
  13205. this._callback = t0;
  13206. },
  13207. ArgumentDeclaration_ArgumentDeclaration$parse: function(contents, url) {
  13208. var t1 = S.SpanScanner$(contents, url);
  13209. return new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, C.StderrLogger_false).parseArgumentDeclaration$0();
  13210. },
  13211. ArgumentDeclaration: function ArgumentDeclaration(t0, t1, t2) {
  13212. this.$arguments = t0;
  13213. this.restArgument = t1;
  13214. this.span = t2;
  13215. },
  13216. ArgumentDeclaration_verify_closure: function ArgumentDeclaration_verify_closure() {
  13217. },
  13218. ArgumentDeclaration_verify_closure0: function ArgumentDeclaration_verify_closure0() {
  13219. },
  13220. DynamicImport: function DynamicImport(t0, t1) {
  13221. this.url = t0;
  13222. this.span = t1;
  13223. },
  13224. SassNode: function SassNode() {
  13225. },
  13226. ForRule: function ForRule(t0, t1, t2, t3, t4, t5, t6) {
  13227. var _ = this;
  13228. _.variable = t0;
  13229. _.from = t1;
  13230. _.to = t2;
  13231. _.isExclusive = t3;
  13232. _.span = t4;
  13233. _.children = t5;
  13234. _.hasDeclarations = t6;
  13235. },
  13236. ImportRule: function ImportRule(t0, t1) {
  13237. this.imports = t0;
  13238. this.span = t1;
  13239. },
  13240. ReturnRule: function ReturnRule(t0, t1) {
  13241. this.expression = t0;
  13242. this.span = t1;
  13243. },
  13244. SilentComment: function SilentComment(t0, t1) {
  13245. this.text = t0;
  13246. this.span = t1;
  13247. },
  13248. SupportsRule: function SupportsRule(t0, t1, t2, t3) {
  13249. var _ = this;
  13250. _.condition = t0;
  13251. _.span = t1;
  13252. _.children = t2;
  13253. _.hasDeclarations = t3;
  13254. },
  13255. AsyncCallable: function AsyncCallable() {
  13256. },
  13257. ExecutableOptions__separator: function(text) {
  13258. var t1 = $.$get$ExecutableOptions__separatorBar(),
  13259. t2 = C.JSString_methods.$mul(t1, 3) + " ",
  13260. t3 = self.process.stdout.isTTY;
  13261. t2 = t2 + ((t3 == null ? false : t3) ? "\x1b[1m" : "") + text;
  13262. t3 = self.process.stdout.isTTY;
  13263. return t2 + ((t3 == null ? false : t3) ? "\x1b[0m" : "") + " " + C.JSString_methods.$mul(t1, 35 - text.length);
  13264. },
  13265. ExecutableOptions__fail: function(message) {
  13266. return H.throwExpression(B.UsageException$(message));
  13267. },
  13268. ExecutableOptions_ExecutableOptions$parse: function(args) {
  13269. var options, error, t1, exception;
  13270. try {
  13271. t1 = $.$get$ExecutableOptions__parser();
  13272. t1.toString;
  13273. t1 = G.Parser$0(null, t1, P.ListQueue_ListQueue$of(args, type$.String), null, null).parse$0();
  13274. if (t1.wasParsed$1("poll") && !H._asBoolNullable(t1.$index(0, "watch")))
  13275. B.ExecutableOptions__fail("--poll may not be passed without --watch.");
  13276. options = new B.ExecutableOptions(t1);
  13277. if (H._asBoolNullable(options._options.$index(0, "help")))
  13278. B.ExecutableOptions__fail("Compile Sass to CSS.");
  13279. return options;
  13280. } catch (exception) {
  13281. t1 = H.unwrapException(exception);
  13282. if (type$.FormatException._is(t1)) {
  13283. error = t1;
  13284. B.ExecutableOptions__fail(J.get$message$x(error));
  13285. } else
  13286. throw exception;
  13287. }
  13288. },
  13289. UsageException$: function(message) {
  13290. return new B.UsageException(message);
  13291. },
  13292. ExecutableOptions: function ExecutableOptions(t0) {
  13293. var _ = this;
  13294. _._options = t0;
  13295. _._sourceDirectoriesToDestinations = _._sourcesToDestinations = _._interactive = null;
  13296. },
  13297. ExecutableOptions_closure: function ExecutableOptions_closure() {
  13298. },
  13299. ExecutableOptions_emitErrorCss_closure: function ExecutableOptions_emitErrorCss_closure() {
  13300. },
  13301. UsageException: function UsageException(t0) {
  13302. this.message = t0;
  13303. },
  13304. AsyncImporter: function AsyncImporter() {
  13305. },
  13306. inImportRule: function(callback) {
  13307. var t1,
  13308. wasInImportRule = $._inImportRule;
  13309. $._inImportRule = true;
  13310. try {
  13311. t1 = callback.call$0();
  13312. return t1;
  13313. } finally {
  13314. $._inImportRule = wasInImportRule;
  13315. }
  13316. },
  13317. resolveImportPath: function(path) {
  13318. var t1,
  13319. extension = X.ParsedPath_ParsedPath$parse(path, $.$get$context().style)._splitExtension$1(1)[1];
  13320. if (extension === ".sass" || extension === ".scss" || extension === ".css") {
  13321. t1 = $._inImportRule ? new B.resolveImportPath_closure(path, extension).call$0() : null;
  13322. return t1 == null ? B._exactlyOne(B._tryPath(path)) : t1;
  13323. }
  13324. t1 = $._inImportRule ? new B.resolveImportPath_closure0(path).call$0() : null;
  13325. if (t1 == null)
  13326. t1 = B._exactlyOne(B._tryPathWithExtensions(path));
  13327. return t1 == null ? B._tryPathAsDirectory(path) : t1;
  13328. },
  13329. _tryPathWithExtensions: function(path) {
  13330. var result = B._tryPath(path + ".sass");
  13331. C.JSArray_methods.addAll$1(result, B._tryPath(path + ".scss"));
  13332. return result.length !== 0 ? result : B._tryPath(path + ".css");
  13333. },
  13334. _tryPath: function(path) {
  13335. var t1 = $.$get$context(),
  13336. partial = D.join(t1.dirname$1(path), "_" + H.S(X.ParsedPath_ParsedPath$parse(path, t1.style).get$basename()), null);
  13337. t1 = H.setRuntimeTypeInfo([], type$.JSArray_String);
  13338. if (B.fileExists(partial))
  13339. t1.push(partial);
  13340. if (B.fileExists(path))
  13341. t1.push(path);
  13342. return t1;
  13343. },
  13344. _tryPathAsDirectory: function(path) {
  13345. var t1;
  13346. if (!B.dirExists(path))
  13347. return null;
  13348. t1 = $._inImportRule ? new B._tryPathAsDirectory_closure(path).call$0() : null;
  13349. return t1 == null ? B._exactlyOne(B._tryPathWithExtensions(D.join(path, "index", null))) : t1;
  13350. },
  13351. _exactlyOne: function(paths) {
  13352. var t1 = paths.length;
  13353. if (t1 === 0)
  13354. return null;
  13355. if (t1 === 1)
  13356. return C.JSArray_methods.get$first(paths);
  13357. throw H.wrapException("It's not clear which file to import. Found:\n" + C.JSArray_methods.map$1$1(paths, new B._exactlyOne_closure(), type$.String).join$1(0, "\n"));
  13358. },
  13359. resolveImportPath_closure: function resolveImportPath_closure(t0, t1) {
  13360. this.path = t0;
  13361. this.extension = t1;
  13362. },
  13363. resolveImportPath_closure0: function resolveImportPath_closure0(t0) {
  13364. this.path = t0;
  13365. },
  13366. _tryPathAsDirectory_closure: function _tryPathAsDirectory_closure(t0) {
  13367. this.path = t0;
  13368. },
  13369. _exactlyOne_closure: function _exactlyOne_closure() {
  13370. },
  13371. readFile: function(path) {
  13372. var t1, t2, t3, sourceFile, i,
  13373. contents = H._asStringNullable(B._readFile(path, "utf8"));
  13374. if (!J.getInterceptor$asx(contents).contains$1(contents, "\ufffd"))
  13375. return contents;
  13376. t1 = $.$get$context().toUri$1(path);
  13377. t2 = new H.CodeUnits(contents);
  13378. t3 = H.setRuntimeTypeInfo([0], type$.JSArray_int);
  13379. sourceFile = new Y.SourceFile(t1, t3, new Uint32Array(H._ensureNativeList(t2.toList$0(t2))));
  13380. sourceFile.SourceFile$decoded$2$url(t2, t1);
  13381. for (t1 = contents.length, i = 0; i < t1; ++i) {
  13382. if (C.JSString_methods._codeUnitAt$1(contents, i) !== 65533)
  13383. continue;
  13384. throw H.wrapException(E.SassException$("Invalid UTF-8.", Y.FileLocation$_(sourceFile, i).pointSpan$0()));
  13385. }
  13386. return contents;
  13387. },
  13388. _readFile: function(path, encoding) {
  13389. return B._systemErrorToFileSystemException(new B._readFile_closure(path, encoding));
  13390. },
  13391. writeFile: function(path, contents) {
  13392. return B._systemErrorToFileSystemException(new B.writeFile_closure(path, contents));
  13393. },
  13394. deleteFile: function(path) {
  13395. return B._systemErrorToFileSystemException(new B.deleteFile_closure(path));
  13396. },
  13397. readStdin: function() {
  13398. return B.readStdin$body();
  13399. },
  13400. readStdin$body: function() {
  13401. var $async$goto = 0,
  13402. $async$completer = P._makeAsyncAwaitCompleter(type$.String),
  13403. $async$returnValue, sink, t1, t2, completer;
  13404. var $async$readStdin = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  13405. if ($async$errorCode === 1)
  13406. return P._asyncRethrow($async$result, $async$completer);
  13407. while (true)
  13408. switch ($async$goto) {
  13409. case 0:
  13410. // Function start
  13411. t1 = {};
  13412. t2 = new P._Future($.Zone__current, type$._Future_String);
  13413. completer = new P._AsyncCompleter(t2, type$._AsyncCompleter_String);
  13414. t1.contents = null;
  13415. sink = new P.Utf8Decoder(false).startChunkedConversion$1(new P._StringCallbackSink(new B.readStdin_closure(t1, completer), new P.StringBuffer("")));
  13416. J.on$2$x(self.process.stdin, "data", P.allowInterop(new B.readStdin_closure0(sink)));
  13417. J.on$2$x(self.process.stdin, "end", P.allowInterop(new B.readStdin_closure1(sink)));
  13418. J.on$2$x(self.process.stdin, "error", P.allowInterop(new B.readStdin_closure2(completer)));
  13419. $async$returnValue = t2;
  13420. // goto return
  13421. $async$goto = 1;
  13422. break;
  13423. case 1:
  13424. // return
  13425. return P._asyncReturn($async$returnValue, $async$completer);
  13426. }
  13427. });
  13428. return P._asyncStartSync($async$readStdin, $async$completer);
  13429. },
  13430. fileExists: function(path) {
  13431. return B._systemErrorToFileSystemException(new B.fileExists_closure(path));
  13432. },
  13433. dirExists: function(path) {
  13434. return B._systemErrorToFileSystemException(new B.dirExists_closure(path));
  13435. },
  13436. ensureDir: function(path) {
  13437. return B._systemErrorToFileSystemException(new B.ensureDir_closure(path));
  13438. },
  13439. listDir: function(path, recursive) {
  13440. return B._systemErrorToFileSystemException(new B.listDir_closure(recursive, path));
  13441. },
  13442. modificationTime: function(path) {
  13443. return B._systemErrorToFileSystemException(new B.modificationTime_closure(path));
  13444. },
  13445. _systemErrorToFileSystemException: function(callback) {
  13446. var error, systemError, t1, exception, t2;
  13447. try {
  13448. t1 = callback.call$0();
  13449. return t1;
  13450. } catch (exception) {
  13451. error = H.unwrapException(exception);
  13452. systemError = type$._SystemError._as(error);
  13453. t1 = systemError;
  13454. t2 = J.getInterceptor$x(t1);
  13455. throw H.wrapException(new B.FileSystemException(J.substring$2$s(t2.get$message(t1), (H.S(t2.get$code(t1)) + ": ").length, J.get$length$asx(t2.get$message(t1)) - (", " + H.S(t2.get$syscall(t1)) + " '" + H.S(t2.get$path(t1)) + "'").length), J.get$path$x(systemError)));
  13456. }
  13457. },
  13458. isWindows: function() {
  13459. return J.$eq$(J.get$platform$x(self.process), "win32");
  13460. },
  13461. watchDir: function(path, poll) {
  13462. var t2, t3, t1 = {},
  13463. watcher = J.watch$2$x(self.chokidar, path, {disableGlobbing: true, usePolling: poll});
  13464. t1.controller = null;
  13465. t2 = J.getInterceptor$x(watcher);
  13466. t2.on$2(watcher, "add", P.allowInterop(new B.watchDir_closure(t1)));
  13467. t2.on$2(watcher, "change", P.allowInterop(new B.watchDir_closure0(t1)));
  13468. t2.on$2(watcher, "unlink", P.allowInterop(new B.watchDir_closure1(t1)));
  13469. t2.on$2(watcher, "error", P.allowInterop(new B.watchDir_closure2(t1)));
  13470. t3 = new P._Future($.Zone__current, type$._Future_Stream_WatchEvent);
  13471. t2.on$2(watcher, "ready", P.allowInterop(new B.watchDir_closure3(t1, watcher, new P._AsyncCompleter(t3, type$._AsyncCompleter_Stream_WatchEvent))));
  13472. return t3;
  13473. },
  13474. _FS: function _FS() {
  13475. },
  13476. _Stat: function _Stat() {
  13477. },
  13478. _Date: function _Date() {
  13479. },
  13480. _Stderr: function _Stderr() {
  13481. },
  13482. _Stdin: function _Stdin() {
  13483. },
  13484. _SystemError: function _SystemError() {
  13485. },
  13486. _Process: function _Process() {
  13487. },
  13488. FileSystemException: function FileSystemException(t0, t1) {
  13489. this.message = t0;
  13490. this.path = t1;
  13491. },
  13492. Stderr: function Stderr(t0) {
  13493. this._stderr = t0;
  13494. },
  13495. _readFile_closure: function _readFile_closure(t0, t1) {
  13496. this.path = t0;
  13497. this.encoding = t1;
  13498. },
  13499. writeFile_closure: function writeFile_closure(t0, t1) {
  13500. this.path = t0;
  13501. this.contents = t1;
  13502. },
  13503. deleteFile_closure: function deleteFile_closure(t0) {
  13504. this.path = t0;
  13505. },
  13506. readStdin_closure: function readStdin_closure(t0, t1) {
  13507. this._box_0 = t0;
  13508. this.completer = t1;
  13509. },
  13510. readStdin_closure0: function readStdin_closure0(t0) {
  13511. this.sink = t0;
  13512. },
  13513. readStdin_closure1: function readStdin_closure1(t0) {
  13514. this.sink = t0;
  13515. },
  13516. readStdin_closure2: function readStdin_closure2(t0) {
  13517. this.completer = t0;
  13518. },
  13519. fileExists_closure: function fileExists_closure(t0) {
  13520. this.path = t0;
  13521. },
  13522. dirExists_closure: function dirExists_closure(t0) {
  13523. this.path = t0;
  13524. },
  13525. ensureDir_closure: function ensureDir_closure(t0) {
  13526. this.path = t0;
  13527. },
  13528. listDir_closure: function listDir_closure(t0, t1) {
  13529. this.recursive = t0;
  13530. this.path = t1;
  13531. },
  13532. listDir__closure: function listDir__closure(t0) {
  13533. this.path = t0;
  13534. },
  13535. listDir__closure0: function listDir__closure0() {
  13536. },
  13537. listDir_closure_list: function listDir_closure_list() {
  13538. },
  13539. listDir__list_closure: function listDir__list_closure(t0, t1) {
  13540. this.parent = t0;
  13541. this.list = t1;
  13542. },
  13543. modificationTime_closure: function modificationTime_closure(t0) {
  13544. this.path = t0;
  13545. },
  13546. watchDir_closure: function watchDir_closure(t0) {
  13547. this._box_0 = t0;
  13548. },
  13549. watchDir_closure0: function watchDir_closure0(t0) {
  13550. this._box_0 = t0;
  13551. },
  13552. watchDir_closure1: function watchDir_closure1(t0) {
  13553. this._box_0 = t0;
  13554. },
  13555. watchDir_closure2: function watchDir_closure2(t0) {
  13556. this._box_0 = t0;
  13557. },
  13558. watchDir_closure3: function watchDir_closure3(t0, t1, t2) {
  13559. this._box_0 = t0;
  13560. this.watcher = t1;
  13561. this.completer = t2;
  13562. },
  13563. watchDir__closure: function watchDir__closure(t0) {
  13564. this.watcher = t0;
  13565. },
  13566. ShadowedModuleView_ifNecessary: function(inner, functions, mixins, variables, $T) {
  13567. return B.ShadowedModuleView__needsBlacklist(inner.get$variables(), variables) || B.ShadowedModuleView__needsBlacklist(inner.get$functions(inner), functions) || B.ShadowedModuleView__needsBlacklist(inner.get$mixins(), mixins) ? new B.ShadowedModuleView(inner, B.ShadowedModuleView__shadowedMap(inner.get$variables(), variables, type$.Value), B.ShadowedModuleView__shadowedMap(inner.get$variableNodes(), variables, type$.AstNode), B.ShadowedModuleView__shadowedMap(inner.get$functions(inner), functions, $T), B.ShadowedModuleView__shadowedMap(inner.get$mixins(), mixins, $T), $T._eval$1("ShadowedModuleView<0>")) : null;
  13568. },
  13569. ShadowedModuleView__shadowedMap: function(map, blocklist, $V) {
  13570. if (map == null || !B.ShadowedModuleView__needsBlacklist(map, blocklist))
  13571. return map;
  13572. return K.LimitedMapView$blocklist(map, blocklist, type$.String, $V);
  13573. },
  13574. ShadowedModuleView__needsBlacklist: function(map, blocklist) {
  13575. var t1 = map.get$isNotEmpty(map) && blocklist.any$1(0, map.get$containsKey());
  13576. return t1;
  13577. },
  13578. ShadowedModuleView: function ShadowedModuleView(t0, t1, t2, t3, t4, t5) {
  13579. var _ = this;
  13580. _._shadowed_view$_inner = t0;
  13581. _.variables = t1;
  13582. _.variableNodes = t2;
  13583. _.functions = t3;
  13584. _.mixins = t4;
  13585. _.$ti = t5;
  13586. },
  13587. _PropertyDescriptor: function _PropertyDescriptor() {
  13588. },
  13589. toSentence: function(iter, conjunction) {
  13590. if (iter.get$length(iter) === 1)
  13591. return J.toString$0$(iter.get$first(iter));
  13592. return iter.take$1(0, iter.get$length(iter) - 1).join$1(0, ", ") + (" " + conjunction + " " + H.S(iter.get$last(iter)));
  13593. },
  13594. indent: function(string, indentation) {
  13595. return new H.MappedListIterable(H.setRuntimeTypeInfo(string.split("\n"), type$.JSArray_String), new B.indent_closure(indentation), type$.MappedListIterable_String_String).join$1(0, "\n");
  13596. },
  13597. pluralize: function($name, number, plural) {
  13598. if (number === 1)
  13599. return $name;
  13600. if (plural != null)
  13601. return plural;
  13602. return $name + "s";
  13603. },
  13604. trimAscii: function(string, excludeEscape) {
  13605. var start = B._firstNonWhitespace(string);
  13606. return start == null ? "" : J.substring$2$s(string, start, B._lastNonWhitespace(string, true) + 1);
  13607. },
  13608. trimAsciiRight: function(string, excludeEscape) {
  13609. var end = B._lastNonWhitespace(string, excludeEscape);
  13610. return end == null ? "" : J.substring$2$s(string, 0, end + 1);
  13611. },
  13612. _firstNonWhitespace: function(string) {
  13613. var t1, i, t2;
  13614. for (t1 = string.length, i = 0; i < t1; ++i) {
  13615. t2 = C.JSString_methods._codeUnitAt$1(string, i);
  13616. if (!(t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12))
  13617. return i;
  13618. }
  13619. return null;
  13620. },
  13621. _lastNonWhitespace: function(string, excludeEscape) {
  13622. var t1, i, t2, codeUnit;
  13623. for (t1 = string.length, i = t1 - 1, t2 = J.getInterceptor$s(string); i >= 0; --i) {
  13624. codeUnit = t2.codeUnitAt$1(string, i);
  13625. if (!(codeUnit === 32 || codeUnit === 9 || codeUnit === 10 || codeUnit === 13 || codeUnit === 12))
  13626. if (excludeEscape && i !== 0 && i !== t1 && codeUnit === 92)
  13627. return i + 1;
  13628. else
  13629. return i;
  13630. }
  13631. return null;
  13632. },
  13633. isPublic: function(member) {
  13634. var start = J._codeUnitAt$1$s(member, 0);
  13635. return start !== 45 && start !== 95;
  13636. },
  13637. flattenVertically: function(iterable, $T) {
  13638. var result,
  13639. queues = new H.MappedListIterable(iterable, new B.flattenVertically_closure($T), iterable.$ti._eval$1("@<ListIterable.E>")._bind$1($T._eval$1("QueueList<0>"))._eval$1("MappedListIterable<1,2>")).toList$0(0);
  13640. if (queues.length === 1)
  13641. return C.JSArray_methods.get$first(queues);
  13642. result = H.setRuntimeTypeInfo([], $T._eval$1("JSArray<0>"));
  13643. for (; queues.length !== 0;) {
  13644. if (!!queues.fixed$length)
  13645. H.throwExpression(P.UnsupportedError$("removeWhere"));
  13646. C.JSArray_methods._removeWhere$2(queues, new B.flattenVertically_closure0(result), true);
  13647. }
  13648. return result;
  13649. },
  13650. firstOrNull: function(iterable) {
  13651. var iterator = J.get$iterator$ax(iterable);
  13652. return iterator.moveNext$0() ? iterator.get$current(iterator) : null;
  13653. },
  13654. codepointIndexToCodeUnitIndex: function(string, codepointIndex) {
  13655. var t1, codeUnitIndex, i, codeUnitIndex0, t2;
  13656. for (t1 = J.getInterceptor$s(string), codeUnitIndex = 0, i = 0; i < codepointIndex; ++i) {
  13657. codeUnitIndex0 = codeUnitIndex + 1;
  13658. t2 = t1._codeUnitAt$1(string, codeUnitIndex);
  13659. codeUnitIndex = t2 >= 55296 && t2 <= 56319 ? codeUnitIndex0 + 1 : codeUnitIndex0;
  13660. }
  13661. return codeUnitIndex;
  13662. },
  13663. codeUnitIndexToCodepointIndex: function(string, codeUnitIndex) {
  13664. var t1, codepointIndex, i, t2;
  13665. for (t1 = J.getInterceptor$s(string), codepointIndex = 0, i = 0; i < codeUnitIndex; i = (t2 >= 55296 && t2 <= 56319 ? i + 1 : i) + 1) {
  13666. ++codepointIndex;
  13667. t2 = t1._codeUnitAt$1(string, i);
  13668. }
  13669. return codepointIndex;
  13670. },
  13671. frameForSpan: function(span, member, url) {
  13672. var t2, t3, t4,
  13673. t1 = url == null ? span.file.url : url;
  13674. if (t1 == null)
  13675. t1 = $.$get$_noSourceUrl();
  13676. t2 = span.file;
  13677. t3 = span._file$_start;
  13678. t4 = Y.FileLocation$_(t2, t3);
  13679. t4 = t4.file.getLine$1(t4.offset);
  13680. t3 = Y.FileLocation$_(t2, t3);
  13681. return new A.Frame(t1, t4 + 1, t3.file.getColumn$1(t3.offset) + 1, member);
  13682. },
  13683. spanForList: function(nodes) {
  13684. var left, right;
  13685. if (nodes.length === 0)
  13686. return null;
  13687. left = C.JSArray_methods.get$first(nodes).get$span();
  13688. if (left == null)
  13689. return null;
  13690. right = C.JSArray_methods.get$last(nodes).get$span();
  13691. if (right == null)
  13692. return null;
  13693. return left.expand$1(0, right);
  13694. },
  13695. declarationName: function(span) {
  13696. var text = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(span.file._decodedChars, span._file$_start, span._end), 0, null);
  13697. return B.trimAsciiRight(C.JSString_methods.substring$2(text, 0, C.JSString_methods.indexOf$1(text, ":")), false);
  13698. },
  13699. unvendor: function($name) {
  13700. var i,
  13701. t1 = $name.length;
  13702. if (t1 < 2)
  13703. return $name;
  13704. if (J.getInterceptor$s($name)._codeUnitAt$1($name, 0) !== 45)
  13705. return $name;
  13706. if (C.JSString_methods._codeUnitAt$1($name, 1) === 45)
  13707. return $name;
  13708. for (i = 2; i < t1; ++i)
  13709. if (C.JSString_methods._codeUnitAt$1($name, i) === 45)
  13710. return C.JSString_methods.substring$1($name, i + 1);
  13711. return $name;
  13712. },
  13713. equalsIgnoreCase: function(string1, string2) {
  13714. var t1, i;
  13715. if (string1 == string2)
  13716. return true;
  13717. if (string1 == null || string2 == null)
  13718. return false;
  13719. t1 = string1.length;
  13720. if (t1 !== string2.length)
  13721. return false;
  13722. for (i = 0; i < t1; ++i)
  13723. if (!T.characterEqualsIgnoreCase(C.JSString_methods._codeUnitAt$1(string1, i), C.JSString_methods._codeUnitAt$1(string2, i)))
  13724. return false;
  13725. return true;
  13726. },
  13727. startsWithIgnoreCase: function(string, prefix) {
  13728. var t2, i,
  13729. t1 = prefix.length;
  13730. if (string.length < t1)
  13731. return false;
  13732. for (t2 = J.getInterceptor$s(string), i = 0; i < t1; ++i)
  13733. if (!T.characterEqualsIgnoreCase(t2._codeUnitAt$1(string, i), C.JSString_methods._codeUnitAt$1(prefix, i)))
  13734. return false;
  13735. return true;
  13736. },
  13737. mapInPlace: function(list, $function) {
  13738. var i;
  13739. for (i = 0; i < list.length; ++i)
  13740. list[i] = $function.call$1(list[i]);
  13741. },
  13742. longestCommonSubsequence: function(list1, list2, select, $T) {
  13743. var t1, lengths, selections, t2, i, i0, j, selection, t3, j0, t4, t5;
  13744. if (select == null)
  13745. select = new B.longestCommonSubsequence_closure($T);
  13746. t1 = J.getInterceptor$asx(list1);
  13747. lengths = P.List_List$generate(t1.get$length(list1) + 1, new B.longestCommonSubsequence_closure0(list2), false, type$.List_int);
  13748. selections = P.List_List$generate(t1.get$length(list1), new B.longestCommonSubsequence_closure1(list2, $T), false, $T._eval$1("List<0>"));
  13749. for (t2 = J.getInterceptor$asx(list2), i = 0; i < t1.get$length(list1); i = i0)
  13750. for (i0 = i + 1, j = 0; j < t2.get$length(list2); j = j0) {
  13751. selection = select.call$2(t1.$index(list1, i), t2.$index(list2, j));
  13752. J.$indexSet$ax(selections[i], j, selection);
  13753. t3 = lengths[i0];
  13754. j0 = j + 1;
  13755. if (selection == null) {
  13756. t4 = J.$index$asx(t3, j);
  13757. t5 = J.$index$asx(lengths[i], j0);
  13758. t5 = Math.max(H.checkNum(t4), H.checkNum(t5));
  13759. t4 = t5;
  13760. } else
  13761. t4 = J.$index$asx(lengths[i], j) + 1;
  13762. J.$indexSet$ax(t3, j0, t4);
  13763. }
  13764. return new B.longestCommonSubsequence_backtrack(selections, lengths, $T).call$2(t1.get$length(list1) - 1, t2.get$length(list2) - 1);
  13765. },
  13766. removeFirstWhere: function(list, test, orElse) {
  13767. var toRemove, element,
  13768. t1 = list.length,
  13769. _i = 0;
  13770. while (true) {
  13771. if (!(_i < list.length)) {
  13772. toRemove = null;
  13773. break;
  13774. }
  13775. c$0: {
  13776. element = list[_i];
  13777. if (!test.call$1(element))
  13778. break c$0;
  13779. toRemove = element;
  13780. break;
  13781. }
  13782. list.length === t1 || (0, H.throwConcurrentModificationError)(list);
  13783. ++_i;
  13784. }
  13785. if (toRemove == null)
  13786. return orElse.call$0();
  13787. else {
  13788. C.JSArray_methods.remove$1(list, toRemove);
  13789. return toRemove;
  13790. }
  13791. },
  13792. mapAddAll2: function(destination, source) {
  13793. source.forEach$1(0, new B.mapAddAll2_closure(destination));
  13794. },
  13795. setAll: function(map, keys, value) {
  13796. var t1;
  13797. for (t1 = J.get$iterator$ax(keys); t1.moveNext$0();)
  13798. map.$indexSet(0, t1.get$current(t1), value);
  13799. },
  13800. rotateSlice: function(list, start, end) {
  13801. var i, next,
  13802. element = list.$index(0, end - 1);
  13803. for (i = start; i < end; ++i, element = next) {
  13804. next = list.$index(0, i);
  13805. list.$indexSet(0, i, element);
  13806. }
  13807. },
  13808. mapAsync: function(iterable, callback, $E, $F) {
  13809. return B.mapAsync$body(iterable, callback, $E, $F, $F._eval$1("Iterable<0>"));
  13810. },
  13811. mapAsync$body: function(iterable, callback, $E, $F, $async$type) {
  13812. var $async$goto = 0,
  13813. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  13814. $async$returnValue, t2, _i, t1, $async$temp1;
  13815. var $async$mapAsync = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  13816. if ($async$errorCode === 1)
  13817. return P._asyncRethrow($async$result, $async$completer);
  13818. while (true)
  13819. switch ($async$goto) {
  13820. case 0:
  13821. // Function start
  13822. t1 = H.setRuntimeTypeInfo([], $F._eval$1("JSArray<0>"));
  13823. t2 = iterable.length, _i = 0;
  13824. case 3:
  13825. // for condition
  13826. if (!(_i < t2)) {
  13827. // goto after for
  13828. $async$goto = 5;
  13829. break;
  13830. }
  13831. $async$temp1 = t1;
  13832. $async$goto = 6;
  13833. return P._asyncAwait(callback.call$1(iterable[_i]), $async$mapAsync);
  13834. case 6:
  13835. // returning from await.
  13836. $async$temp1.push($async$result);
  13837. case 4:
  13838. // for update
  13839. ++_i;
  13840. // goto for condition
  13841. $async$goto = 3;
  13842. break;
  13843. case 5:
  13844. // after for
  13845. $async$returnValue = t1;
  13846. // goto return
  13847. $async$goto = 1;
  13848. break;
  13849. case 1:
  13850. // return
  13851. return P._asyncReturn($async$returnValue, $async$completer);
  13852. }
  13853. });
  13854. return P._asyncStartSync($async$mapAsync, $async$completer);
  13855. },
  13856. putIfAbsentAsync: function(map, key, ifAbsent, $K, $V) {
  13857. return B.putIfAbsentAsync$body(map, key, ifAbsent, $K, $V, $V);
  13858. },
  13859. putIfAbsentAsync$body: function(map, key, ifAbsent, $K, $V, $async$type) {
  13860. var $async$goto = 0,
  13861. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  13862. $async$returnValue, value;
  13863. var $async$putIfAbsentAsync = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  13864. if ($async$errorCode === 1)
  13865. return P._asyncRethrow($async$result, $async$completer);
  13866. while (true)
  13867. switch ($async$goto) {
  13868. case 0:
  13869. // Function start
  13870. if (map.containsKey$1(key)) {
  13871. $async$returnValue = map.$index(0, key);
  13872. // goto return
  13873. $async$goto = 1;
  13874. break;
  13875. }
  13876. $async$goto = 3;
  13877. return P._asyncAwait(ifAbsent.call$0(), $async$putIfAbsentAsync);
  13878. case 3:
  13879. // returning from await.
  13880. value = $async$result;
  13881. map.$indexSet(0, key, value);
  13882. $async$returnValue = value;
  13883. // goto return
  13884. $async$goto = 1;
  13885. break;
  13886. case 1:
  13887. // return
  13888. return P._asyncReturn($async$returnValue, $async$completer);
  13889. }
  13890. });
  13891. return P._asyncStartSync($async$putIfAbsentAsync, $async$completer);
  13892. },
  13893. mapMapAsync: function(map, value, K1, V1, K2, V2) {
  13894. return B.mapMapAsync$body(map, value, K1, V1, K2, V2, K2._eval$1("@<0>")._bind$1(V2)._eval$1("Map<1,2>"));
  13895. },
  13896. mapMapAsync$body: function(map, value, K1, V1, K2, V2, $async$type) {
  13897. var $async$goto = 0,
  13898. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  13899. $async$returnValue, t1, mapKey, mapValue, key, result, $async$temp1, $async$temp2;
  13900. var $async$mapMapAsync = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  13901. if ($async$errorCode === 1)
  13902. return P._asyncRethrow($async$result, $async$completer);
  13903. while (true)
  13904. switch ($async$goto) {
  13905. case 0:
  13906. // Function start
  13907. key = new B.mapMapAsync_closure(K2, K1, V1);
  13908. result = P.LinkedHashMap_LinkedHashMap$_empty(K2, V2);
  13909. t1 = J.get$iterator$ax(map.get$keys());
  13910. case 3:
  13911. // for condition
  13912. if (!t1.moveNext$0()) {
  13913. // goto after for
  13914. $async$goto = 4;
  13915. break;
  13916. }
  13917. mapKey = t1.get$current(t1);
  13918. mapValue = map.$index(0, mapKey);
  13919. $async$temp1 = result;
  13920. $async$goto = 5;
  13921. return P._asyncAwait(key.call$2(mapKey, mapValue), $async$mapMapAsync);
  13922. case 5:
  13923. // returning from await.
  13924. $async$temp2 = $async$result;
  13925. $async$goto = 6;
  13926. return P._asyncAwait(value.call$2(mapKey, mapValue), $async$mapMapAsync);
  13927. case 6:
  13928. // returning from await.
  13929. $async$temp1.$indexSet(0, $async$temp2, $async$result);
  13930. // goto for condition
  13931. $async$goto = 3;
  13932. break;
  13933. case 4:
  13934. // after for
  13935. $async$returnValue = result;
  13936. // goto return
  13937. $async$goto = 1;
  13938. break;
  13939. case 1:
  13940. // return
  13941. return P._asyncReturn($async$returnValue, $async$completer);
  13942. }
  13943. });
  13944. return P._asyncStartSync($async$mapMapAsync, $async$completer);
  13945. },
  13946. copyMapOfMap: function(map, K1, K2, $V) {
  13947. var t1 = K2._eval$1("@<0>")._bind$1($V)._eval$1("Map<1,2>");
  13948. return Y.mapMap(map, null, new B.copyMapOfMap_closure(K2, $V), K1, t1, K1, t1);
  13949. },
  13950. copyMapOfList: function(map, $K, $E) {
  13951. var t1 = $E._eval$1("List<0>");
  13952. return Y.mapMap(map, null, new B.copyMapOfList_closure(), $K, t1, $K, t1);
  13953. },
  13954. SpanExtensions_trim: function(_this) {
  13955. var t3, end, end0,
  13956. t1 = _this.file,
  13957. t2 = _this._file$_start,
  13958. text = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1._decodedChars, t2, _this._end), 0, null),
  13959. start = 0;
  13960. while (true) {
  13961. t3 = C.JSString_methods._codeUnitAt$1(text, start);
  13962. if (!(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12))
  13963. break;
  13964. ++start;
  13965. }
  13966. end = text.length - 1;
  13967. end0 = end;
  13968. while (true) {
  13969. t3 = C.JSString_methods.codeUnitAt$1(text, end0);
  13970. if (!(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12))
  13971. break;
  13972. --end0;
  13973. }
  13974. return start === 0 && end0 === end ? _this : t1.span$2(Y.FileLocation$_(t1, t2).offset + start, Y.FileLocation$_(t1, t2).offset + end0 + 1);
  13975. },
  13976. indent_closure: function indent_closure(t0) {
  13977. this.indentation = t0;
  13978. },
  13979. flattenVertically_closure: function flattenVertically_closure(t0) {
  13980. this.T = t0;
  13981. },
  13982. flattenVertically_closure0: function flattenVertically_closure0(t0) {
  13983. this.result = t0;
  13984. },
  13985. longestCommonSubsequence_closure: function longestCommonSubsequence_closure(t0) {
  13986. this.T = t0;
  13987. },
  13988. longestCommonSubsequence_closure0: function longestCommonSubsequence_closure0(t0) {
  13989. this.list2 = t0;
  13990. },
  13991. longestCommonSubsequence_closure1: function longestCommonSubsequence_closure1(t0, t1) {
  13992. this.list2 = t0;
  13993. this.T = t1;
  13994. },
  13995. longestCommonSubsequence_backtrack: function longestCommonSubsequence_backtrack(t0, t1, t2) {
  13996. this.selections = t0;
  13997. this.lengths = t1;
  13998. this.T = t2;
  13999. },
  14000. mapAddAll2_closure: function mapAddAll2_closure(t0) {
  14001. this.destination = t0;
  14002. },
  14003. mapMapAsync_closure: function mapMapAsync_closure(t0, t1, t2) {
  14004. this.K2 = t0;
  14005. this.K1 = t1;
  14006. this.V1 = t2;
  14007. },
  14008. copyMapOfMap_closure: function copyMapOfMap_closure(t0, t1) {
  14009. this.K2 = t0;
  14010. this.V = t1;
  14011. },
  14012. copyMapOfList_closure: function copyMapOfList_closure() {
  14013. },
  14014. ArgumentDeclaration_ArgumentDeclaration$parse0: function(contents, url) {
  14015. var t1 = S.SpanScanner$(contents, url);
  14016. return new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, C.C_StderrLogger).parseArgumentDeclaration$0();
  14017. },
  14018. ArgumentDeclaration0: function ArgumentDeclaration0(t0, t1, t2) {
  14019. this.$arguments = t0;
  14020. this.restArgument = t1;
  14021. this.span = t2;
  14022. },
  14023. ArgumentDeclaration_verify_closure1: function ArgumentDeclaration_verify_closure1() {
  14024. },
  14025. ArgumentDeclaration_verify_closure2: function ArgumentDeclaration_verify_closure2() {
  14026. },
  14027. AsyncCallable0: function AsyncCallable0() {
  14028. },
  14029. AsyncImporter0: function AsyncImporter0() {
  14030. },
  14031. DynamicImport0: function DynamicImport0(t0, t1) {
  14032. this.url = t0;
  14033. this.span = t1;
  14034. },
  14035. ForRule0: function ForRule0(t0, t1, t2, t3, t4, t5, t6) {
  14036. var _ = this;
  14037. _.variable = t0;
  14038. _.from = t1;
  14039. _.to = t2;
  14040. _.isExclusive = t3;
  14041. _.span = t4;
  14042. _.children = t5;
  14043. _.hasDeclarations = t6;
  14044. },
  14045. ImportRule0: function ImportRule0(t0, t1) {
  14046. this.imports = t0;
  14047. this.span = t1;
  14048. },
  14049. AstNode0: function AstNode0() {
  14050. },
  14051. _FakeAstNode0: function _FakeAstNode0(t0) {
  14052. this._node3$_callback = t0;
  14053. },
  14054. CssNode0: function CssNode0() {
  14055. },
  14056. CssParentNode0: function CssParentNode0() {
  14057. },
  14058. readFile0: function(path) {
  14059. var t1, t2, t3, sourceFile, i,
  14060. contents = H._asStringNullable(B._readFile0(path, "utf8"));
  14061. if (!J.getInterceptor$asx(contents).contains$1(contents, "\ufffd"))
  14062. return contents;
  14063. t1 = $.$get$context().toUri$1(path);
  14064. t2 = new H.CodeUnits(contents);
  14065. t3 = H.setRuntimeTypeInfo([0], type$.JSArray_int);
  14066. sourceFile = new Y.SourceFile(t1, t3, new Uint32Array(H._ensureNativeList(t2.toList$0(t2))));
  14067. sourceFile.SourceFile$decoded$2$url(t2, t1);
  14068. for (t1 = contents.length, i = 0; i < t1; ++i) {
  14069. if (C.JSString_methods._codeUnitAt$1(contents, i) !== 65533)
  14070. continue;
  14071. throw H.wrapException(E.SassException$0("Invalid UTF-8.", Y.FileLocation$_(sourceFile, i).pointSpan$0()));
  14072. }
  14073. return contents;
  14074. },
  14075. _readFile0: function(path, encoding) {
  14076. return B._systemErrorToFileSystemException0(new B._readFile_closure0(path, encoding));
  14077. },
  14078. fileExists0: function(path) {
  14079. return B._systemErrorToFileSystemException0(new B.fileExists_closure0(path));
  14080. },
  14081. dirExists0: function(path) {
  14082. return B._systemErrorToFileSystemException0(new B.dirExists_closure0(path));
  14083. },
  14084. listDir0: function(path) {
  14085. return B._systemErrorToFileSystemException0(new B.listDir_closure0(false, path));
  14086. },
  14087. _systemErrorToFileSystemException0: function(callback) {
  14088. var error, systemError, t1, exception, t2;
  14089. try {
  14090. t1 = callback.call$0();
  14091. return t1;
  14092. } catch (exception) {
  14093. error = H.unwrapException(exception);
  14094. systemError = type$._SystemError_2._as(error);
  14095. t1 = systemError;
  14096. t2 = J.getInterceptor$x(t1);
  14097. throw H.wrapException(new B.FileSystemException0(J.substring$2$s(t2.get$message(t1), (H.S(t2.get$code(t1)) + ": ").length, J.get$length$asx(t2.get$message(t1)) - (", " + H.S(t2.get$syscall(t1)) + " '" + H.S(t2.get$path(t1)) + "'").length), J.get$path$x(systemError)));
  14098. }
  14099. },
  14100. _FS0: function _FS0() {
  14101. },
  14102. _Stat0: function _Stat0() {
  14103. },
  14104. _Date0: function _Date0() {
  14105. },
  14106. _Stderr0: function _Stderr0() {
  14107. },
  14108. _Stdin0: function _Stdin0() {
  14109. },
  14110. _SystemError0: function _SystemError0() {
  14111. },
  14112. _Process0: function _Process0() {
  14113. },
  14114. FileSystemException0: function FileSystemException0(t0, t1) {
  14115. this.message = t0;
  14116. this.path = t1;
  14117. },
  14118. Stderr0: function Stderr0(t0) {
  14119. this._node1$_stderr = t0;
  14120. },
  14121. _readFile_closure0: function _readFile_closure0(t0, t1) {
  14122. this.path = t0;
  14123. this.encoding = t1;
  14124. },
  14125. fileExists_closure0: function fileExists_closure0(t0) {
  14126. this.path = t0;
  14127. },
  14128. dirExists_closure0: function dirExists_closure0(t0) {
  14129. this.path = t0;
  14130. },
  14131. listDir_closure0: function listDir_closure0(t0, t1) {
  14132. this.recursive = t0;
  14133. this.path = t1;
  14134. },
  14135. listDir__closure1: function listDir__closure1(t0) {
  14136. this.path = t0;
  14137. },
  14138. listDir__closure2: function listDir__closure2() {
  14139. },
  14140. listDir_closure_list0: function listDir_closure_list0() {
  14141. },
  14142. listDir__list_closure0: function listDir__list_closure0(t0, t1) {
  14143. this.parent = t0;
  14144. this.list = t1;
  14145. },
  14146. ModifiableCssNode0: function ModifiableCssNode0() {
  14147. },
  14148. ModifiableCssParentNode0: function ModifiableCssParentNode0() {
  14149. },
  14150. SassNode0: function SassNode0() {
  14151. },
  14152. _render: function(options, callback) {
  14153. var t1 = J.getInterceptor$x(options);
  14154. if (t1.get$fiber(options) != null)
  14155. J.run$0$x(t1.get$fiber(options).call$1(P.allowInterop(new B._render_closure(callback, options))));
  14156. else
  14157. B._renderAsync(options).then$1$2$onError(new B._render_closure0(callback), new B._render_closure1(callback), type$.Null);
  14158. },
  14159. _renderAsync: function(options) {
  14160. var $async$goto = 0,
  14161. $async$completer = P._makeAsyncAwaitCompleter(type$.RenderResult),
  14162. $async$returnValue, t2, t3, t4, t5, t6, t7, t8, t9, result, start, t1, file;
  14163. var $async$_renderAsync = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  14164. if ($async$errorCode === 1)
  14165. return P._asyncRethrow($async$result, $async$completer);
  14166. while (true)
  14167. switch ($async$goto) {
  14168. case 0:
  14169. // Function start
  14170. start = new P.DateTime(Date.now(), false);
  14171. t1 = J.getInterceptor$x(options);
  14172. file = t1.get$file(options) == null ? null : D.absolute(t1.get$file(options));
  14173. $async$goto = t1.get$data(options) != null ? 3 : 5;
  14174. break;
  14175. case 3:
  14176. // then
  14177. t2 = t1.get$data(options);
  14178. t3 = B._parseImporter(options, start);
  14179. t4 = B._parseFunctions(options, true);
  14180. t5 = t1.get$indentedSyntax(options);
  14181. t5 = !J.$eq$(t5, false) && t5 != null ? C.Syntax_Sass0 : null;
  14182. t6 = B._parseOutputStyle(t1.get$outputStyle(options));
  14183. t7 = J.$eq$(t1.get$indentType(options), "tab");
  14184. t8 = B._parseIndentWidth(t1.get$indentWidth(options));
  14185. t9 = B._parseLineFeed(t1.get$linefeed(options));
  14186. t1 = t1.get$file(options) == null ? "stdin" : J.toString$0$($.$get$context().toUri$1(file));
  14187. $async$goto = 6;
  14188. return P._asyncAwait(X.compileStringAsync0(t2, t4, t8, t9, t3, B._enableSourceMaps(options), t6, t5, t1, !t7), $async$_renderAsync);
  14189. case 6:
  14190. // returning from await.
  14191. result = $async$result;
  14192. // goto join
  14193. $async$goto = 4;
  14194. break;
  14195. case 5:
  14196. // else
  14197. $async$goto = t1.get$file(options) != null ? 7 : 9;
  14198. break;
  14199. case 7:
  14200. // then
  14201. t2 = B._parseImporter(options, start);
  14202. t3 = B._parseFunctions(options, true);
  14203. t4 = t1.get$indentedSyntax(options);
  14204. t4 = !J.$eq$(t4, false) && t4 != null ? C.Syntax_Sass0 : null;
  14205. t5 = B._parseOutputStyle(t1.get$outputStyle(options));
  14206. t6 = J.$eq$(t1.get$indentType(options), "tab");
  14207. $async$goto = 10;
  14208. return P._asyncAwait(X.compileAsync0(file, t3, B._parseIndentWidth(t1.get$indentWidth(options)), B._parseLineFeed(t1.get$linefeed(options)), t2, B._enableSourceMaps(options), t5, t4, !t6), $async$_renderAsync);
  14209. case 10:
  14210. // returning from await.
  14211. result = $async$result;
  14212. // goto join
  14213. $async$goto = 8;
  14214. break;
  14215. case 9:
  14216. // else
  14217. throw H.wrapException(P.ArgumentError$("Either options.data or options.file must be set."));
  14218. case 8:
  14219. // join
  14220. case 4:
  14221. // join
  14222. $async$returnValue = B._newRenderResult(options, result, start);
  14223. // goto return
  14224. $async$goto = 1;
  14225. break;
  14226. case 1:
  14227. // return
  14228. return P._asyncReturn($async$returnValue, $async$completer);
  14229. }
  14230. });
  14231. return P._asyncStartSync($async$_renderAsync, $async$completer);
  14232. },
  14233. _renderSync: function(options) {
  14234. var start, file, result, error, error0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, stylesheet, exception, _null = null;
  14235. try {
  14236. start = new P.DateTime(Date.now(), false);
  14237. t1 = J.getInterceptor$x(options);
  14238. file = t1.get$file(options) == null ? _null : D.absolute(t1.get$file(options));
  14239. result = null;
  14240. if (t1.get$data(options) != null) {
  14241. t2 = t1.get$data(options);
  14242. t3 = B._parseImporter(options, start);
  14243. t4 = B._parseFunctions(options, false);
  14244. t5 = t1.get$indentedSyntax(options);
  14245. t5 = !J.$eq$(t5, false) && t5 != null ? C.Syntax_Sass0 : _null;
  14246. t6 = B._parseOutputStyle(t1.get$outputStyle(options));
  14247. t7 = J.$eq$(t1.get$indentType(options), "tab");
  14248. t8 = B._parseIndentWidth(t1.get$indentWidth(options));
  14249. t9 = B._parseLineFeed(t1.get$linefeed(options));
  14250. t1 = t1.get$file(options) == null ? "stdin" : J.toString$0$($.$get$context().toUri$1(file));
  14251. t10 = B._enableSourceMaps(options);
  14252. stylesheet = V.Stylesheet_Stylesheet$parse0(t2, t5 == null ? C.Syntax_SCSS0 : t5, _null, t1);
  14253. t1 = D.absolute(".");
  14254. result = U._compileStylesheet1(stylesheet, _null, _null, t3, new F.FilesystemImporter0(t1), new H.CastList(t4, H._arrayInstanceType(t4)._eval$1("CastList<1,Callable0>")), t6, !t7, t8, t9, t10, true);
  14255. } else if (t1.get$file(options) != null) {
  14256. t2 = file;
  14257. t3 = B._parseImporter(options, start);
  14258. t4 = B._parseFunctions(options, false);
  14259. t5 = t1.get$indentedSyntax(options);
  14260. t5 = !J.$eq$(t5, false) && t5 != null ? C.Syntax_Sass0 : _null;
  14261. t6 = B._parseOutputStyle(t1.get$outputStyle(options));
  14262. t7 = J.$eq$(t1.get$indentType(options), "tab");
  14263. t8 = B._parseIndentWidth(t1.get$indentWidth(options));
  14264. t1 = B._parseLineFeed(t1.get$linefeed(options));
  14265. t9 = B._enableSourceMaps(options);
  14266. t10 = B.readFile0(t2);
  14267. if (t5 == null)
  14268. t5 = M.Syntax_forPath0(t2);
  14269. stylesheet = V.Stylesheet_Stylesheet$parse0(t10, t5, _null, $.$get$context().toUri$1(t2));
  14270. result = U._compileStylesheet1(stylesheet, _null, _null, t3, new F.FilesystemImporter0(D.absolute(".")), new H.CastList(t4, H._arrayInstanceType(t4)._eval$1("CastList<1,Callable0>")), t6, !t7, t8, t1, t9, true);
  14271. } else {
  14272. t1 = P.ArgumentError$("Either options.data or options.file must be set.");
  14273. throw H.wrapException(t1);
  14274. }
  14275. t1 = B._newRenderResult(options, result, start);
  14276. return t1;
  14277. } catch (exception) {
  14278. t1 = H.unwrapException(exception);
  14279. if (t1 instanceof E.SassException0) {
  14280. error = t1;
  14281. t1 = B._wrapException(error);
  14282. $.$get$_jsThrow().call$1(t1);
  14283. } else {
  14284. error0 = t1;
  14285. t1 = B._newRenderError(J.toString$0$(error0), _null, _null, _null, 3);
  14286. $.$get$_jsThrow().call$1(t1);
  14287. }
  14288. }
  14289. throw H.wrapException("unreachable");
  14290. },
  14291. _wrapException: function(exception) {
  14292. var t3, t4,
  14293. t1 = C.JSString_methods.replaceFirst$2(exception.toString$0(0), "Error: ", ""),
  14294. t2 = G.SourceSpanException.prototype.get$span.call(exception);
  14295. t2 = Y.FileLocation$_(t2.file, t2._file$_start);
  14296. t2 = t2.file.getLine$1(t2.offset);
  14297. t3 = G.SourceSpanException.prototype.get$span.call(exception);
  14298. t3 = Y.FileLocation$_(t3.file, t3._file$_start);
  14299. t3 = t3.file.getColumn$1(t3.offset);
  14300. if (G.SourceSpanException.prototype.get$span.call(exception).file.url == null)
  14301. t4 = "stdin";
  14302. else {
  14303. t4 = G.SourceSpanException.prototype.get$span.call(exception).file;
  14304. t4 = $.$get$context().style.pathFromUri$1(M._parseUri(t4.url));
  14305. }
  14306. return B._newRenderError(t1, t3 + 1, t4, t2 + 1, 1);
  14307. },
  14308. _parseFunctions: function(options, asynch) {
  14309. var result,
  14310. t1 = J.getInterceptor$x(options);
  14311. if (t1.get$functions(options) == null)
  14312. return C.List_empty21;
  14313. result = H.setRuntimeTypeInfo([], type$.JSArray_AsyncCallable);
  14314. B.jsForEach(t1.get$functions(options), new B._parseFunctions_closure(options, result, asynch));
  14315. return result;
  14316. },
  14317. _parseImporter: function(options, start) {
  14318. var importers, t2, t3, includePaths, t4, t5, t6, t7, _i, t8, t9, t10, context,
  14319. t1 = J.getInterceptor$x(options);
  14320. if (t1.get$importer(options) == null)
  14321. importers = H.setRuntimeTypeInfo([], type$.JSArray_JSFunction);
  14322. else {
  14323. t2 = type$.List_Object;
  14324. t3 = type$.JSFunction;
  14325. importers = t2._is(t1.get$importer(options)) ? J.cast$1$0$ax(t2._as(t1.get$importer(options)), t3) : H.setRuntimeTypeInfo([t3._as(t1.get$importer(options))], type$.JSArray_JSFunction);
  14326. }
  14327. t2 = t1.get$includePaths(options);
  14328. if (t2 == null)
  14329. t2 = [];
  14330. t3 = type$.String;
  14331. includePaths = P.List_List$from(t2, true, t3);
  14332. t2 = J.getInterceptor$asx(importers);
  14333. if (t2.get$isNotEmpty(importers)) {
  14334. t4 = t1.get$file(options);
  14335. t5 = t1.get$data(options);
  14336. t6 = H.setRuntimeTypeInfo([], type$.JSArray_String);
  14337. t6.push(D.current());
  14338. for (t7 = includePaths.length, _i = 0; _i < includePaths.length; includePaths.length === t7 || (0, H.throwConcurrentModificationError)(includePaths), ++_i)
  14339. t6.push(includePaths[_i]);
  14340. t6 = C.JSArray_methods.join$1(t6, J.$eq$(J.get$platform$x(self.process), "win32") ? ";" : ":");
  14341. t7 = J.$eq$(t1.get$indentType(options), "tab") ? 1 : 0;
  14342. t8 = B._parseIndentWidth(t1.get$indentWidth(options));
  14343. if (t8 == null)
  14344. t8 = 2;
  14345. t9 = B._parseLineFeed(t1.get$linefeed(options));
  14346. t10 = t1.get$file(options);
  14347. if (t10 == null)
  14348. t10 = "data";
  14349. context = {options: {file: t4, data: t5, includePaths: t6, precision: 10, style: 1, indentType: t7, indentWidth: t8, linefeed: t9.text, result: {stats: {entry: t10, start: start._core$_value}}}};
  14350. J.set$context$x(J.get$options$x(context), context);
  14351. } else
  14352. context = null;
  14353. if (t1.get$fiber(options) != null)
  14354. importers = t2.map$1$1(importers, new B._parseImporter_closure(options), type$.JSFunction).toList$0(0);
  14355. return new F.NodeImporter(context, P.List_List$unmodifiable(F.NodeImporter__addSassPath(includePaths), t3), P.List_List$unmodifiable(J.cast$1$0$ax(importers, type$.dynamic), type$.JSFunction));
  14356. },
  14357. _parseOutputStyle: function(style) {
  14358. if (style == null || style === "expanded")
  14359. return C.OutputStyle_expanded;
  14360. if (style === "compressed")
  14361. return C.OutputStyle_compressed0;
  14362. throw H.wrapException(P.ArgumentError$('Unsupported output style "' + H.S(style) + '".'));
  14363. },
  14364. _parseIndentWidth: function(width) {
  14365. if (width == null)
  14366. return null;
  14367. return H._isInt(width) ? width : P.int_parse(J.toString$0$(width), null, null);
  14368. },
  14369. _parseLineFeed: function(str) {
  14370. switch (str) {
  14371. case "cr":
  14372. return C.LineFeed_kMT;
  14373. case "crlf":
  14374. return C.LineFeed_Mss;
  14375. case "lfcr":
  14376. return C.LineFeed_a1Y;
  14377. default:
  14378. return C.LineFeed_D6m;
  14379. }
  14380. },
  14381. _newRenderResult: function(options, result, start) {
  14382. var t3, sourceMapPath, t4, sourceMapDir, sourceMapDirUrl, i, source, t5, t6, sourceMapBytes, buffer, indices, url, _null = null,
  14383. t1 = Date.now(),
  14384. t2 = result._async_compile$_serialize,
  14385. css = t2.css;
  14386. if (B._enableSourceMaps(options)) {
  14387. t3 = J.getInterceptor$x(options);
  14388. sourceMapPath = typeof t3.get$sourceMap(options) == "string" ? H._asStringNullable(t3.get$sourceMap(options)) : J.$add$ansx(t3.get$outFile(options), ".map");
  14389. t4 = $.$get$context();
  14390. sourceMapDir = t4.dirname$1(sourceMapPath);
  14391. t2 = t2.sourceMap;
  14392. t2.sourceRoot = t3.get$sourceMapRoot(options);
  14393. if (t3.get$outFile(options) == null)
  14394. if (t3.get$file(options) == null)
  14395. t2.targetUrl = "stdin.css";
  14396. else
  14397. t2.targetUrl = J.toString$0$(t4.toUri$1(t4.withoutExtension$1(t3.get$file(options)) + ".css"));
  14398. else
  14399. t2.targetUrl = J.toString$0$(t4.toUri$1(t4.relative$2$from(t3.get$outFile(options), sourceMapDir)));
  14400. sourceMapDirUrl = J.toString$0$(t4.toUri$1(sourceMapDir));
  14401. for (t4 = t2.urls, i = 0; i < t4.length; ++i) {
  14402. source = t4[i];
  14403. if (source === "stdin")
  14404. continue;
  14405. t5 = $.$get$url();
  14406. t6 = t5.style;
  14407. if (t6.rootLength$1(source) <= 0 || t6.isRootRelative$1(source))
  14408. continue;
  14409. t4[i] = t5.relative$2$from(source, sourceMapDirUrl);
  14410. }
  14411. t4 = t3.get$sourceMapContents(options);
  14412. sourceMapBytes = self.Buffer.from(C.C_JsonCodec.encode$2$toEncodable(t2.toJson$1$includeSourceContents(!J.$eq$(t4, false) && t4 != null), _null), "utf8");
  14413. t2 = t3.get$omitSourceMapUrl(options);
  14414. if (!(!J.$eq$(t2, false) && t2 != null)) {
  14415. t2 = t3.get$sourceMapEmbed(options);
  14416. if (!J.$eq$(t2, false) && t2 != null) {
  14417. buffer = new P.StringBuffer("");
  14418. indices = H.setRuntimeTypeInfo([-1], type$.JSArray_int);
  14419. P.UriData__writeUri("application/json", _null, _null, buffer, indices);
  14420. indices.push(buffer._contents.length);
  14421. t2 = buffer._contents += ";base64,";
  14422. indices.push(t2.length - 1);
  14423. C.C_Base64Encoder.startChunkedConversion$1(new P._StringSinkConversionSink(buffer)).addSlice$4(sourceMapBytes, 0, sourceMapBytes.length, true);
  14424. t2 = buffer._contents;
  14425. url = new P.UriData(t2.charCodeAt(0) == 0 ? t2 : t2, indices, _null).get$uri();
  14426. } else {
  14427. if (t3.get$outFile(options) == null)
  14428. t2 = sourceMapPath;
  14429. else {
  14430. t2 = t3.get$outFile(options);
  14431. t3 = $.$get$context();
  14432. t2 = t3.relative$2$from(sourceMapPath, t3.dirname$1(t2));
  14433. }
  14434. url = $.$get$context().toUri$1(t2);
  14435. }
  14436. css += "\n\n/*# sourceMappingURL=" + H.S(url) + " */";
  14437. }
  14438. } else
  14439. sourceMapBytes = _null;
  14440. t2 = self.Buffer.from(css, "utf8");
  14441. t3 = J.get$file$x(options);
  14442. if (t3 == null)
  14443. t3 = "data";
  14444. t4 = start._core$_value;
  14445. t1 = new P.DateTime(t1, false)._core$_value;
  14446. return {css: t2, map: sourceMapBytes, stats: {entry: t3, start: t4, end: t1, duration: C.JSInt_methods._tdivFast$1(P.Duration$(t1 - t4)._duration, 1000), includedFiles: result._evaluate.includedFiles.toList$0(0)}};
  14447. },
  14448. _enableSourceMaps: function(options) {
  14449. var t2,
  14450. t1 = J.getInterceptor$x(options);
  14451. if (typeof t1.get$sourceMap(options) != "string") {
  14452. t2 = t1.get$sourceMap(options);
  14453. t1 = !J.$eq$(t2, false) && t2 != null && t1.get$outFile(options) != null;
  14454. } else
  14455. t1 = true;
  14456. return t1;
  14457. },
  14458. _newRenderError: function(message, column, file, line, $status) {
  14459. var error = new self.Error(message);
  14460. error.formatted = "Error: " + H.S(message);
  14461. if (line != null)
  14462. error.line = line;
  14463. if (column != null)
  14464. error.column = column;
  14465. if (file != null)
  14466. error.file = file;
  14467. error.status = $status;
  14468. return error;
  14469. },
  14470. _render_closure: function _render_closure(t0, t1) {
  14471. this.callback = t0;
  14472. this.options = t1;
  14473. },
  14474. _render_closure0: function _render_closure0(t0) {
  14475. this.callback = t0;
  14476. },
  14477. _render_closure1: function _render_closure1(t0) {
  14478. this.callback = t0;
  14479. },
  14480. _parseFunctions_closure: function _parseFunctions_closure(t0, t1, t2) {
  14481. this.options = t0;
  14482. this.result = t1;
  14483. this.asynch = t2;
  14484. },
  14485. _parseFunctions__closure: function _parseFunctions__closure(t0, t1) {
  14486. this.options = t0;
  14487. this.callback = t1;
  14488. },
  14489. _parseFunctions___closure0: function _parseFunctions___closure0(t0) {
  14490. this.fiber = t0;
  14491. },
  14492. _parseFunctions____closure: function _parseFunctions____closure(t0, t1) {
  14493. this.fiber = t0;
  14494. this.result = t1;
  14495. },
  14496. _parseFunctions__closure0: function _parseFunctions__closure0(t0) {
  14497. this.callback = t0;
  14498. },
  14499. _parseFunctions__closure1: function _parseFunctions__closure1(t0) {
  14500. this.callback = t0;
  14501. },
  14502. _parseFunctions___closure: function _parseFunctions___closure(t0) {
  14503. this.completer = t0;
  14504. },
  14505. _parseImporter_closure: function _parseImporter_closure(t0) {
  14506. this.options = t0;
  14507. },
  14508. _parseImporter__closure: function _parseImporter__closure(t0, t1) {
  14509. this.options = t0;
  14510. this.importer = t1;
  14511. },
  14512. _parseImporter___closure: function _parseImporter___closure(t0) {
  14513. this.fiber = t0;
  14514. },
  14515. _parseImporter____closure: function _parseImporter____closure(t0, t1) {
  14516. this.fiber = t0;
  14517. this.result = t1;
  14518. },
  14519. ReturnRule0: function ReturnRule0(t0, t1) {
  14520. this.expression = t0;
  14521. this.span = t1;
  14522. },
  14523. ShadowedModuleView_ifNecessary0: function(inner, functions, mixins, variables, $T) {
  14524. return B.ShadowedModuleView__needsBlacklist0(inner.get$variables(), variables) || B.ShadowedModuleView__needsBlacklist0(inner.get$functions(inner), functions) || B.ShadowedModuleView__needsBlacklist0(inner.get$mixins(), mixins) ? new B.ShadowedModuleView0(inner, B.ShadowedModuleView__shadowedMap0(inner.get$variables(), variables, type$.Value_2), B.ShadowedModuleView__shadowedMap0(inner.get$variableNodes(), variables, type$.AstNode_2), B.ShadowedModuleView__shadowedMap0(inner.get$functions(inner), functions, $T), B.ShadowedModuleView__shadowedMap0(inner.get$mixins(), mixins, $T), $T._eval$1("ShadowedModuleView0<0>")) : null;
  14525. },
  14526. ShadowedModuleView__shadowedMap0: function(map, blocklist, $V) {
  14527. if (map == null || !B.ShadowedModuleView__needsBlacklist0(map, blocklist))
  14528. return map;
  14529. return K.LimitedMapView$blocklist0(map, blocklist, type$.String, $V);
  14530. },
  14531. ShadowedModuleView__needsBlacklist0: function(map, blocklist) {
  14532. var t1 = map.get$isNotEmpty(map) && blocklist.any$1(0, map.get$containsKey());
  14533. return t1;
  14534. },
  14535. ShadowedModuleView0: function ShadowedModuleView0(t0, t1, t2, t3, t4, t5) {
  14536. var _ = this;
  14537. _._shadowed_view0$_inner = t0;
  14538. _.variables = t1;
  14539. _.variableNodes = t2;
  14540. _.functions = t3;
  14541. _.mixins = t4;
  14542. _.$ti = t5;
  14543. },
  14544. SilentComment0: function SilentComment0(t0, t1) {
  14545. this.text = t0;
  14546. this.span = t1;
  14547. },
  14548. ModifiableCssSupportsRule0: function ModifiableCssSupportsRule0(t0, t1, t2, t3) {
  14549. var _ = this;
  14550. _.condition = t0;
  14551. _.span = t1;
  14552. _.children = t2;
  14553. _._node2$_children = t3;
  14554. _._node2$_indexInParent = _._node2$_parent = null;
  14555. _.isGroupEnd = false;
  14556. },
  14557. SupportsRule0: function SupportsRule0(t0, t1, t2, t3) {
  14558. var _ = this;
  14559. _.condition = t0;
  14560. _.span = t1;
  14561. _.children = t2;
  14562. _.hasDeclarations = t3;
  14563. },
  14564. inImportRule0: function(callback) {
  14565. var t1,
  14566. wasInImportRule = $._inImportRule0;
  14567. $._inImportRule0 = true;
  14568. try {
  14569. t1 = callback.call$0();
  14570. return t1;
  14571. } finally {
  14572. $._inImportRule0 = wasInImportRule;
  14573. }
  14574. },
  14575. resolveImportPath0: function(path) {
  14576. var t1,
  14577. extension = X.ParsedPath_ParsedPath$parse(path, $.$get$context().style)._splitExtension$1(1)[1];
  14578. if (extension === ".sass" || extension === ".scss" || extension === ".css") {
  14579. t1 = $._inImportRule0 ? new B.resolveImportPath_closure1(path, extension).call$0() : null;
  14580. return t1 == null ? B._exactlyOne0(B._tryPath0(path)) : t1;
  14581. }
  14582. t1 = $._inImportRule0 ? new B.resolveImportPath_closure2(path).call$0() : null;
  14583. if (t1 == null)
  14584. t1 = B._exactlyOne0(B._tryPathWithExtensions0(path));
  14585. return t1 == null ? B._tryPathAsDirectory0(path) : t1;
  14586. },
  14587. _tryPathWithExtensions0: function(path) {
  14588. var result = B._tryPath0(J.$add$ansx(path, ".sass"));
  14589. C.JSArray_methods.addAll$1(result, B._tryPath0(path + ".scss"));
  14590. return result.length !== 0 ? result : B._tryPath0(path + ".css");
  14591. },
  14592. _tryPath0: function(path) {
  14593. var t1 = $.$get$context(),
  14594. partial = D.join(t1.dirname$1(path), "_" + H.S(X.ParsedPath_ParsedPath$parse(path, t1.style).get$basename()), null);
  14595. t1 = H.setRuntimeTypeInfo([], type$.JSArray_String);
  14596. if (B.fileExists0(partial))
  14597. t1.push(partial);
  14598. if (B.fileExists0(path))
  14599. t1.push(path);
  14600. return t1;
  14601. },
  14602. _tryPathAsDirectory0: function(path) {
  14603. var t1;
  14604. if (!B.dirExists0(path))
  14605. return null;
  14606. t1 = $._inImportRule0 ? new B._tryPathAsDirectory_closure0(path).call$0() : null;
  14607. return t1 == null ? B._exactlyOne0(B._tryPathWithExtensions0(D.join(path, "index", null))) : t1;
  14608. },
  14609. _exactlyOne0: function(paths) {
  14610. var t1 = paths.length;
  14611. if (t1 === 0)
  14612. return null;
  14613. if (t1 === 1)
  14614. return C.JSArray_methods.get$first(paths);
  14615. throw H.wrapException("It's not clear which file to import. Found:\n" + C.JSArray_methods.map$1$1(paths, new B._exactlyOne_closure0(), type$.String).join$1(0, "\n"));
  14616. },
  14617. resolveImportPath_closure1: function resolveImportPath_closure1(t0, t1) {
  14618. this.path = t0;
  14619. this.extension = t1;
  14620. },
  14621. resolveImportPath_closure2: function resolveImportPath_closure2(t0) {
  14622. this.path = t0;
  14623. },
  14624. _tryPathAsDirectory_closure0: function _tryPathAsDirectory_closure0(t0) {
  14625. this.path = t0;
  14626. },
  14627. _exactlyOne_closure0: function _exactlyOne_closure0() {
  14628. },
  14629. forwardToString: function(klass) {
  14630. klass.prototype.toString = P.allowInteropCaptureThis(new B.forwardToString_closure());
  14631. },
  14632. jsForEach: function(object, callback) {
  14633. var t1, t2;
  14634. for (t1 = J.get$iterator$ax(self.Object.keys(object)); t1.moveNext$0();) {
  14635. t2 = t1.get$current(t1);
  14636. callback.call$2(t2, object[t2]);
  14637. }
  14638. },
  14639. createClass: function($name, $constructor, methods) {
  14640. var klass = P.allowInteropCaptureThis($constructor);
  14641. self.Object.defineProperty(klass, "name", {value: $name});
  14642. methods.forEach$1(0, new B.createClass_closure(klass.prototype));
  14643. return klass;
  14644. },
  14645. injectSuperclass: function(object, $constructor) {
  14646. var $prototype = self.Object.getPrototypeOf(object),
  14647. $parent = self.Object.getPrototypeOf($prototype);
  14648. if ($parent != null)
  14649. self.Object.setPrototypeOf($constructor.prototype, $parent);
  14650. self.Object.setPrototypeOf($prototype, self.Object.create($constructor.prototype));
  14651. },
  14652. forwardToString_closure: function forwardToString_closure() {
  14653. },
  14654. createClass_closure: function createClass_closure(t0) {
  14655. this.$prototype = t0;
  14656. },
  14657. _PropertyDescriptor0: function _PropertyDescriptor0() {
  14658. },
  14659. toSentence0: function(iter, conjunction) {
  14660. if (iter.get$length(iter) === 1)
  14661. return J.toString$0$(iter.get$first(iter));
  14662. return iter.take$1(0, iter.get$length(iter) - 1).join$1(0, ", ") + (" " + conjunction + " " + H.S(iter.get$last(iter)));
  14663. },
  14664. indent0: function(string, indentation) {
  14665. return new H.MappedListIterable(H.setRuntimeTypeInfo(string.split("\n"), type$.JSArray_String), new B.indent_closure0(indentation), type$.MappedListIterable_String_String).join$1(0, "\n");
  14666. },
  14667. pluralize0: function($name, number, plural) {
  14668. if (number === 1)
  14669. return $name;
  14670. if (plural != null)
  14671. return plural;
  14672. return $name + "s";
  14673. },
  14674. trimAscii0: function(string, excludeEscape) {
  14675. var start = B._firstNonWhitespace0(string);
  14676. return start == null ? "" : J.substring$2$s(string, start, B._lastNonWhitespace0(string, true) + 1);
  14677. },
  14678. trimAsciiRight0: function(string, excludeEscape) {
  14679. var end = B._lastNonWhitespace0(string, excludeEscape);
  14680. return end == null ? "" : J.substring$2$s(string, 0, end + 1);
  14681. },
  14682. _firstNonWhitespace0: function(string) {
  14683. var t1, i, t2;
  14684. for (t1 = string.length, i = 0; i < t1; ++i) {
  14685. t2 = C.JSString_methods._codeUnitAt$1(string, i);
  14686. if (!(t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12))
  14687. return i;
  14688. }
  14689. return null;
  14690. },
  14691. _lastNonWhitespace0: function(string, excludeEscape) {
  14692. var t1, i, t2, codeUnit;
  14693. for (t1 = string.length, i = t1 - 1, t2 = J.getInterceptor$s(string); i >= 0; --i) {
  14694. codeUnit = t2.codeUnitAt$1(string, i);
  14695. if (!(codeUnit === 32 || codeUnit === 9 || codeUnit === 10 || codeUnit === 13 || codeUnit === 12))
  14696. if (excludeEscape && i !== 0 && i !== t1 && codeUnit === 92)
  14697. return i + 1;
  14698. else
  14699. return i;
  14700. }
  14701. return null;
  14702. },
  14703. isPublic0: function(member) {
  14704. var start = J._codeUnitAt$1$s(member, 0);
  14705. return start !== 45 && start !== 95;
  14706. },
  14707. flattenVertically0: function(iterable, $T) {
  14708. var result,
  14709. queues = new H.MappedListIterable(iterable, new B.flattenVertically_closure1($T), iterable.$ti._eval$1("@<ListIterable.E>")._bind$1($T._eval$1("QueueList<0>"))._eval$1("MappedListIterable<1,2>")).toList$0(0);
  14710. if (queues.length === 1)
  14711. return C.JSArray_methods.get$first(queues);
  14712. result = H.setRuntimeTypeInfo([], $T._eval$1("JSArray<0>"));
  14713. for (; queues.length !== 0;) {
  14714. if (!!queues.fixed$length)
  14715. H.throwExpression(P.UnsupportedError$("removeWhere"));
  14716. C.JSArray_methods._removeWhere$2(queues, new B.flattenVertically_closure2(result), true);
  14717. }
  14718. return result;
  14719. },
  14720. firstOrNull0: function(iterable) {
  14721. var iterator = J.get$iterator$ax(iterable);
  14722. return iterator.moveNext$0() ? iterator.get$current(iterator) : null;
  14723. },
  14724. codepointIndexToCodeUnitIndex0: function(string, codepointIndex) {
  14725. var t1, codeUnitIndex, i, codeUnitIndex0, t2;
  14726. for (t1 = J.getInterceptor$s(string), codeUnitIndex = 0, i = 0; i < codepointIndex; ++i) {
  14727. codeUnitIndex0 = codeUnitIndex + 1;
  14728. t2 = t1._codeUnitAt$1(string, codeUnitIndex);
  14729. codeUnitIndex = t2 >= 55296 && t2 <= 56319 ? codeUnitIndex0 + 1 : codeUnitIndex0;
  14730. }
  14731. return codeUnitIndex;
  14732. },
  14733. codeUnitIndexToCodepointIndex0: function(string, codeUnitIndex) {
  14734. var t1, codepointIndex, i, t2;
  14735. for (t1 = J.getInterceptor$s(string), codepointIndex = 0, i = 0; i < codeUnitIndex; i = (t2 >= 55296 && t2 <= 56319 ? i + 1 : i) + 1) {
  14736. ++codepointIndex;
  14737. t2 = t1._codeUnitAt$1(string, i);
  14738. }
  14739. return codepointIndex;
  14740. },
  14741. frameForSpan0: function(span, member, url) {
  14742. var t2, t3, t4,
  14743. t1 = url == null ? span.file.url : url;
  14744. if (t1 == null)
  14745. t1 = $.$get$_noSourceUrl0();
  14746. t2 = span.file;
  14747. t3 = span._file$_start;
  14748. t4 = Y.FileLocation$_(t2, t3);
  14749. t4 = t4.file.getLine$1(t4.offset);
  14750. t3 = Y.FileLocation$_(t2, t3);
  14751. return new A.Frame(t1, t4 + 1, t3.file.getColumn$1(t3.offset) + 1, member);
  14752. },
  14753. spanForList0: function(nodes) {
  14754. var left, right;
  14755. if (nodes.length === 0)
  14756. return null;
  14757. left = C.JSArray_methods.get$first(nodes).get$span();
  14758. if (left == null)
  14759. return null;
  14760. right = C.JSArray_methods.get$last(nodes).get$span();
  14761. if (right == null)
  14762. return null;
  14763. return left.expand$1(0, right);
  14764. },
  14765. declarationName0: function(span) {
  14766. var text = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(span.file._decodedChars, span._file$_start, span._end), 0, null);
  14767. return B.trimAsciiRight0(C.JSString_methods.substring$2(text, 0, C.JSString_methods.indexOf$1(text, ":")), false);
  14768. },
  14769. unvendor0: function($name) {
  14770. var i,
  14771. t1 = $name.length;
  14772. if (t1 < 2)
  14773. return $name;
  14774. if (J.getInterceptor$s($name)._codeUnitAt$1($name, 0) !== 45)
  14775. return $name;
  14776. if (C.JSString_methods._codeUnitAt$1($name, 1) === 45)
  14777. return $name;
  14778. for (i = 2; i < t1; ++i)
  14779. if (C.JSString_methods._codeUnitAt$1($name, i) === 45)
  14780. return C.JSString_methods.substring$1($name, i + 1);
  14781. return $name;
  14782. },
  14783. equalsIgnoreCase0: function(string1, string2) {
  14784. var t1, i;
  14785. if (string1 == string2)
  14786. return true;
  14787. if (string1 == null || string2 == null)
  14788. return false;
  14789. t1 = string1.length;
  14790. if (t1 !== string2.length)
  14791. return false;
  14792. for (i = 0; i < t1; ++i)
  14793. if (!T.characterEqualsIgnoreCase0(C.JSString_methods._codeUnitAt$1(string1, i), C.JSString_methods._codeUnitAt$1(string2, i)))
  14794. return false;
  14795. return true;
  14796. },
  14797. startsWithIgnoreCase0: function(string, prefix) {
  14798. var t2, i,
  14799. t1 = prefix.length;
  14800. if (string.length < t1)
  14801. return false;
  14802. for (t2 = J.getInterceptor$s(string), i = 0; i < t1; ++i)
  14803. if (!T.characterEqualsIgnoreCase0(t2._codeUnitAt$1(string, i), C.JSString_methods._codeUnitAt$1(prefix, i)))
  14804. return false;
  14805. return true;
  14806. },
  14807. mapInPlace0: function(list, $function) {
  14808. var i;
  14809. for (i = 0; i < list.length; ++i)
  14810. list[i] = $function.call$1(list[i]);
  14811. },
  14812. longestCommonSubsequence0: function(list1, list2, select, $T) {
  14813. var t1, lengths, selections, t2, i, i0, j, selection, t3, j0, t4, t5;
  14814. if (select == null)
  14815. select = new B.longestCommonSubsequence_closure2($T);
  14816. t1 = J.getInterceptor$asx(list1);
  14817. lengths = P.List_List$generate(t1.get$length(list1) + 1, new B.longestCommonSubsequence_closure3(list2), false, type$.List_int);
  14818. selections = P.List_List$generate(t1.get$length(list1), new B.longestCommonSubsequence_closure4(list2, $T), false, $T._eval$1("List<0>"));
  14819. for (t2 = J.getInterceptor$asx(list2), i = 0; i < t1.get$length(list1); i = i0)
  14820. for (i0 = i + 1, j = 0; j < t2.get$length(list2); j = j0) {
  14821. selection = select.call$2(t1.$index(list1, i), t2.$index(list2, j));
  14822. J.$indexSet$ax(selections[i], j, selection);
  14823. t3 = lengths[i0];
  14824. j0 = j + 1;
  14825. if (selection == null) {
  14826. t4 = J.$index$asx(t3, j);
  14827. t5 = J.$index$asx(lengths[i], j0);
  14828. t5 = Math.max(H.checkNum(t4), H.checkNum(t5));
  14829. t4 = t5;
  14830. } else
  14831. t4 = J.$index$asx(lengths[i], j) + 1;
  14832. J.$indexSet$ax(t3, j0, t4);
  14833. }
  14834. return new B.longestCommonSubsequence_backtrack0(selections, lengths, $T).call$2(t1.get$length(list1) - 1, t2.get$length(list2) - 1);
  14835. },
  14836. removeFirstWhere0: function(list, test, orElse) {
  14837. var toRemove, element,
  14838. t1 = list.length,
  14839. _i = 0;
  14840. while (true) {
  14841. if (!(_i < list.length)) {
  14842. toRemove = null;
  14843. break;
  14844. }
  14845. c$0: {
  14846. element = list[_i];
  14847. if (!test.call$1(element))
  14848. break c$0;
  14849. toRemove = element;
  14850. break;
  14851. }
  14852. list.length === t1 || (0, H.throwConcurrentModificationError)(list);
  14853. ++_i;
  14854. }
  14855. if (toRemove == null)
  14856. return orElse.call$0();
  14857. else {
  14858. C.JSArray_methods.remove$1(list, toRemove);
  14859. return toRemove;
  14860. }
  14861. },
  14862. mapAddAll20: function(destination, source) {
  14863. source.forEach$1(0, new B.mapAddAll2_closure0(destination));
  14864. },
  14865. setAll0: function(map, keys, value) {
  14866. var t1;
  14867. for (t1 = J.get$iterator$ax(keys); t1.moveNext$0();)
  14868. map.$indexSet(0, t1.get$current(t1), value);
  14869. },
  14870. rotateSlice0: function(list, start, end) {
  14871. var i, next,
  14872. element = list.$index(0, end - 1);
  14873. for (i = start; i < end; ++i, element = next) {
  14874. next = list.$index(0, i);
  14875. list.$indexSet(0, i, element);
  14876. }
  14877. },
  14878. mapAsync0: function(iterable, callback, $E, $F) {
  14879. return B.mapAsync$body0(iterable, callback, $E, $F, $F._eval$1("Iterable<0>"));
  14880. },
  14881. mapAsync$body0: function(iterable, callback, $E, $F, $async$type) {
  14882. var $async$goto = 0,
  14883. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  14884. $async$returnValue, t2, _i, t1, $async$temp1;
  14885. var $async$mapAsync0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  14886. if ($async$errorCode === 1)
  14887. return P._asyncRethrow($async$result, $async$completer);
  14888. while (true)
  14889. switch ($async$goto) {
  14890. case 0:
  14891. // Function start
  14892. t1 = H.setRuntimeTypeInfo([], $F._eval$1("JSArray<0>"));
  14893. t2 = iterable.length, _i = 0;
  14894. case 3:
  14895. // for condition
  14896. if (!(_i < t2)) {
  14897. // goto after for
  14898. $async$goto = 5;
  14899. break;
  14900. }
  14901. $async$temp1 = t1;
  14902. $async$goto = 6;
  14903. return P._asyncAwait(callback.call$1(iterable[_i]), $async$mapAsync0);
  14904. case 6:
  14905. // returning from await.
  14906. $async$temp1.push($async$result);
  14907. case 4:
  14908. // for update
  14909. ++_i;
  14910. // goto for condition
  14911. $async$goto = 3;
  14912. break;
  14913. case 5:
  14914. // after for
  14915. $async$returnValue = t1;
  14916. // goto return
  14917. $async$goto = 1;
  14918. break;
  14919. case 1:
  14920. // return
  14921. return P._asyncReturn($async$returnValue, $async$completer);
  14922. }
  14923. });
  14924. return P._asyncStartSync($async$mapAsync0, $async$completer);
  14925. },
  14926. putIfAbsentAsync0: function(map, key, ifAbsent, $K, $V) {
  14927. return B.putIfAbsentAsync$body0(map, key, ifAbsent, $K, $V, $V);
  14928. },
  14929. putIfAbsentAsync$body0: function(map, key, ifAbsent, $K, $V, $async$type) {
  14930. var $async$goto = 0,
  14931. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  14932. $async$returnValue, value;
  14933. var $async$putIfAbsentAsync0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  14934. if ($async$errorCode === 1)
  14935. return P._asyncRethrow($async$result, $async$completer);
  14936. while (true)
  14937. switch ($async$goto) {
  14938. case 0:
  14939. // Function start
  14940. if (map.containsKey$1(key)) {
  14941. $async$returnValue = map.$index(0, key);
  14942. // goto return
  14943. $async$goto = 1;
  14944. break;
  14945. }
  14946. $async$goto = 3;
  14947. return P._asyncAwait(ifAbsent.call$0(), $async$putIfAbsentAsync0);
  14948. case 3:
  14949. // returning from await.
  14950. value = $async$result;
  14951. map.$indexSet(0, key, value);
  14952. $async$returnValue = value;
  14953. // goto return
  14954. $async$goto = 1;
  14955. break;
  14956. case 1:
  14957. // return
  14958. return P._asyncReturn($async$returnValue, $async$completer);
  14959. }
  14960. });
  14961. return P._asyncStartSync($async$putIfAbsentAsync0, $async$completer);
  14962. },
  14963. mapMapAsync0: function(map, value, K1, V1, K2, V2) {
  14964. return B.mapMapAsync$body0(map, value, K1, V1, K2, V2, K2._eval$1("@<0>")._bind$1(V2)._eval$1("Map<1,2>"));
  14965. },
  14966. mapMapAsync$body0: function(map, value, K1, V1, K2, V2, $async$type) {
  14967. var $async$goto = 0,
  14968. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  14969. $async$returnValue, t1, mapKey, mapValue, key, result, $async$temp1, $async$temp2;
  14970. var $async$mapMapAsync0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  14971. if ($async$errorCode === 1)
  14972. return P._asyncRethrow($async$result, $async$completer);
  14973. while (true)
  14974. switch ($async$goto) {
  14975. case 0:
  14976. // Function start
  14977. key = new B.mapMapAsync_closure0(K2, K1, V1);
  14978. result = P.LinkedHashMap_LinkedHashMap$_empty(K2, V2);
  14979. t1 = J.get$iterator$ax(map.get$keys());
  14980. case 3:
  14981. // for condition
  14982. if (!t1.moveNext$0()) {
  14983. // goto after for
  14984. $async$goto = 4;
  14985. break;
  14986. }
  14987. mapKey = t1.get$current(t1);
  14988. mapValue = map.$index(0, mapKey);
  14989. $async$temp1 = result;
  14990. $async$goto = 5;
  14991. return P._asyncAwait(key.call$2(mapKey, mapValue), $async$mapMapAsync0);
  14992. case 5:
  14993. // returning from await.
  14994. $async$temp2 = $async$result;
  14995. $async$goto = 6;
  14996. return P._asyncAwait(value.call$2(mapKey, mapValue), $async$mapMapAsync0);
  14997. case 6:
  14998. // returning from await.
  14999. $async$temp1.$indexSet(0, $async$temp2, $async$result);
  15000. // goto for condition
  15001. $async$goto = 3;
  15002. break;
  15003. case 4:
  15004. // after for
  15005. $async$returnValue = result;
  15006. // goto return
  15007. $async$goto = 1;
  15008. break;
  15009. case 1:
  15010. // return
  15011. return P._asyncReturn($async$returnValue, $async$completer);
  15012. }
  15013. });
  15014. return P._asyncStartSync($async$mapMapAsync0, $async$completer);
  15015. },
  15016. copyMapOfMap0: function(map, K1, K2, $V) {
  15017. var t1 = K2._eval$1("@<0>")._bind$1($V)._eval$1("Map<1,2>");
  15018. return Y.mapMap(map, null, new B.copyMapOfMap_closure0(K2, $V), K1, t1, K1, t1);
  15019. },
  15020. copyMapOfList0: function(map, $K, $E) {
  15021. var t1 = $E._eval$1("List<0>");
  15022. return Y.mapMap(map, null, new B.copyMapOfList_closure0(), $K, t1, $K, t1);
  15023. },
  15024. SpanExtensions_trim0: function(_this) {
  15025. var t3, end, end0,
  15026. t1 = _this.file,
  15027. t2 = _this._file$_start,
  15028. text = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1._decodedChars, t2, _this._end), 0, null),
  15029. start = 0;
  15030. while (true) {
  15031. t3 = C.JSString_methods._codeUnitAt$1(text, start);
  15032. if (!(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12))
  15033. break;
  15034. ++start;
  15035. }
  15036. end = text.length - 1;
  15037. end0 = end;
  15038. while (true) {
  15039. t3 = C.JSString_methods.codeUnitAt$1(text, end0);
  15040. if (!(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12))
  15041. break;
  15042. --end0;
  15043. }
  15044. return start === 0 && end0 === end ? _this : t1.span$2(Y.FileLocation$_(t1, t2).offset + start, Y.FileLocation$_(t1, t2).offset + end0 + 1);
  15045. },
  15046. indent_closure0: function indent_closure0(t0) {
  15047. this.indentation = t0;
  15048. },
  15049. flattenVertically_closure1: function flattenVertically_closure1(t0) {
  15050. this.T = t0;
  15051. },
  15052. flattenVertically_closure2: function flattenVertically_closure2(t0) {
  15053. this.result = t0;
  15054. },
  15055. longestCommonSubsequence_closure2: function longestCommonSubsequence_closure2(t0) {
  15056. this.T = t0;
  15057. },
  15058. longestCommonSubsequence_closure3: function longestCommonSubsequence_closure3(t0) {
  15059. this.list2 = t0;
  15060. },
  15061. longestCommonSubsequence_closure4: function longestCommonSubsequence_closure4(t0, t1) {
  15062. this.list2 = t0;
  15063. this.T = t1;
  15064. },
  15065. longestCommonSubsequence_backtrack0: function longestCommonSubsequence_backtrack0(t0, t1, t2) {
  15066. this.selections = t0;
  15067. this.lengths = t1;
  15068. this.T = t2;
  15069. },
  15070. mapAddAll2_closure0: function mapAddAll2_closure0(t0) {
  15071. this.destination = t0;
  15072. },
  15073. mapMapAsync_closure0: function mapMapAsync_closure0(t0, t1, t2) {
  15074. this.K2 = t0;
  15075. this.K1 = t1;
  15076. this.V1 = t2;
  15077. },
  15078. copyMapOfMap_closure0: function copyMapOfMap_closure0(t0, t1) {
  15079. this.K2 = t0;
  15080. this.V = t1;
  15081. },
  15082. copyMapOfList_closure0: function copyMapOfList_closure0() {
  15083. },
  15084. isAlphabetic: function(char) {
  15085. var t1;
  15086. if (!(char >= 65 && char <= 90))
  15087. t1 = char >= 97 && char <= 122;
  15088. else
  15089. t1 = true;
  15090. return t1;
  15091. },
  15092. isDriveLetter: function(path, index) {
  15093. var t1 = path.length,
  15094. t2 = index + 2;
  15095. if (t1 < t2)
  15096. return false;
  15097. if (!B.isAlphabetic(C.JSString_methods.codeUnitAt$1(path, index)))
  15098. return false;
  15099. if (C.JSString_methods.codeUnitAt$1(path, index + 1) !== 58)
  15100. return false;
  15101. if (t1 === t2)
  15102. return true;
  15103. return C.JSString_methods.codeUnitAt$1(path, t2) === 47;
  15104. },
  15105. isAllTheSame: function(iter) {
  15106. var t1, lastValue, value;
  15107. for (t1 = new H.ListIterator(iter, iter.get$length(iter)), lastValue = null; t1.moveNext$0();) {
  15108. value = t1.__internal$_current;
  15109. if (lastValue == null)
  15110. lastValue = value;
  15111. else if (!J.$eq$(value, lastValue))
  15112. return false;
  15113. }
  15114. return true;
  15115. },
  15116. replaceFirstNull: function(list, element) {
  15117. var index = C.JSArray_methods.indexOf$1(list, null);
  15118. if (index < 0)
  15119. throw H.wrapException(P.ArgumentError$(H.S(list) + " contains no null elements."));
  15120. list[index] = element;
  15121. },
  15122. replaceWithNull: function(list, element) {
  15123. var index = C.JSArray_methods.indexOf$1(list, element);
  15124. if (index < 0)
  15125. throw H.wrapException(P.ArgumentError$(H.S(list) + " contains no elements matching " + element.toString$0(0) + "."));
  15126. list[index] = null;
  15127. },
  15128. countCodeUnits: function(string, codeUnit) {
  15129. var t1, count;
  15130. for (t1 = new H.CodeUnits(string), t1 = new H.ListIterator(t1, t1.get$length(t1)), count = 0; t1.moveNext$0();)
  15131. if (t1.__internal$_current === codeUnit)
  15132. ++count;
  15133. return count;
  15134. },
  15135. findLineStart: function(context, text, column) {
  15136. var beginningOfLine, index, lineStart;
  15137. if (text.length === 0)
  15138. for (beginningOfLine = 0; true;) {
  15139. index = C.JSString_methods.indexOf$2(context, "\n", beginningOfLine);
  15140. if (index === -1)
  15141. return context.length - beginningOfLine >= column ? beginningOfLine : null;
  15142. if (index - beginningOfLine >= column)
  15143. return beginningOfLine;
  15144. beginningOfLine = index + 1;
  15145. }
  15146. index = C.JSString_methods.indexOf$1(context, text);
  15147. for (; index !== -1;) {
  15148. lineStart = index === 0 ? 0 : C.JSString_methods.lastIndexOf$2(context, "\n", index - 1) + 1;
  15149. if (column === index - lineStart)
  15150. return lineStart;
  15151. index = C.JSString_methods.indexOf$2(context, text, index + 1);
  15152. }
  15153. return null;
  15154. },
  15155. validateErrorArgs: function(string, match, position, $length) {
  15156. var t2,
  15157. t1 = position != null;
  15158. if (t1)
  15159. if (position < 0)
  15160. throw H.wrapException(P.RangeError$("position must be greater than or equal to 0."));
  15161. else if (position > string.length)
  15162. throw H.wrapException(P.RangeError$("position must be less than or equal to the string length."));
  15163. t2 = $length != null;
  15164. if (t2 && $length < 0)
  15165. throw H.wrapException(P.RangeError$("length must be greater than or equal to 0."));
  15166. if (t1 && t2 && position + $length > string.length)
  15167. throw H.wrapException(P.RangeError$("position plus length must not go beyond the end of the string."));
  15168. }
  15169. },
  15170. O = {
  15171. EmptyUnmodifiableSet__throw: function() {
  15172. throw H.wrapException(P.UnsupportedError$("Cannot modify an unmodifiable Set"));
  15173. },
  15174. EmptyUnmodifiableSet: function EmptyUnmodifiableSet(t0) {
  15175. this.$ti = t0;
  15176. },
  15177. Style__getPlatformStyle: function() {
  15178. if (P.Uri_base().get$scheme() !== "file")
  15179. return $.$get$Style_url();
  15180. var t1 = P.Uri_base();
  15181. if (!C.JSString_methods.endsWith$1(t1.get$path(t1), "/"))
  15182. return $.$get$Style_url();
  15183. if (P._Uri__Uri(null, "a/b", null, null).toFilePath$0() === "a\\b")
  15184. return $.$get$Style_windows();
  15185. return $.$get$Style_posix();
  15186. },
  15187. Style: function Style() {
  15188. },
  15189. NullExpression: function NullExpression(t0) {
  15190. this.span = t0;
  15191. },
  15192. Statement: function Statement() {
  15193. },
  15194. AsyncImportCache__toImporters: function(importers, loadPaths, packageResolver) {
  15195. var _i, t2, t3, path, _null = null,
  15196. sassPath = H._asStringNullable(J.get$env$x(self.process).SASS_PATH),
  15197. t1 = H.setRuntimeTypeInfo([], type$.JSArray_AsyncImporter);
  15198. for (_i = 0; false; ++_i)
  15199. t1.push(importers[_i]);
  15200. if (loadPaths != null)
  15201. for (t2 = J.get$iterator$ax(loadPaths); t2.moveNext$0();) {
  15202. t3 = t2.get$current(t2);
  15203. t1.push(new F.FilesystemImporter($.$get$context().absolute$7(t3, _null, _null, _null, _null, _null, _null)));
  15204. }
  15205. if (sassPath != null) {
  15206. t2 = sassPath.split(J.$eq$(J.get$platform$x(self.process), "win32") ? ";" : ":");
  15207. t3 = t2.length;
  15208. _i = 0;
  15209. for (; _i < t3; ++_i) {
  15210. path = t2[_i];
  15211. t1.push(new F.FilesystemImporter($.$get$context().absolute$7(path, _null, _null, _null, _null, _null, _null)));
  15212. }
  15213. }
  15214. return t1;
  15215. },
  15216. AsyncImportCache: function AsyncImportCache(t0, t1, t2, t3, t4) {
  15217. var _ = this;
  15218. _._async_import_cache$_importers = t0;
  15219. _._async_import_cache$_logger = t1;
  15220. _._async_import_cache$_canonicalizeCache = t2;
  15221. _._async_import_cache$_importCache = t3;
  15222. _._async_import_cache$_resultsCache = t4;
  15223. },
  15224. AsyncImportCache_canonicalize_closure: function AsyncImportCache_canonicalize_closure(t0, t1, t2) {
  15225. this.$this = t0;
  15226. this.url = t1;
  15227. this.forImport = t2;
  15228. },
  15229. AsyncImportCache__canonicalize_closure: function AsyncImportCache__canonicalize_closure(t0, t1) {
  15230. this.importer = t0;
  15231. this.url = t1;
  15232. },
  15233. AsyncImportCache_importCanonical_closure: function AsyncImportCache_importCanonical_closure(t0, t1, t2, t3) {
  15234. var _ = this;
  15235. _.$this = t0;
  15236. _.importer = t1;
  15237. _.canonicalUrl = t2;
  15238. _.originalUrl = t3;
  15239. },
  15240. AsyncImportCache_humanize_closure: function AsyncImportCache_humanize_closure(t0) {
  15241. this.canonicalUrl = t0;
  15242. },
  15243. AsyncImportCache_humanize_closure0: function AsyncImportCache_humanize_closure0() {
  15244. },
  15245. AsyncImportCache_humanize_closure1: function AsyncImportCache_humanize_closure1() {
  15246. },
  15247. Environment$: function(sourceMap) {
  15248. var _null = null,
  15249. t1 = type$.String,
  15250. t2 = type$.Module_Callable,
  15251. t3 = type$.AstNode,
  15252. t4 = H.setRuntimeTypeInfo([], type$.JSArray_Module_Callable),
  15253. t5 = H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Value)], type$.JSArray_Map_String_Value),
  15254. t6 = sourceMap ? H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t3)], type$.JSArray_Map_String_AstNode) : _null,
  15255. t7 = type$.int,
  15256. t8 = type$.Callable,
  15257. t9 = type$.JSArray_Map_String_Callable;
  15258. return new O.Environment(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), P.LinkedHashMap_LinkedHashMap$_empty(t1, t3), P.LinkedHashSet_LinkedHashSet$_empty(t2), P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), _null, _null, _null, t4, t5, t6, P.LinkedHashMap_LinkedHashMap$_empty(t1, t7), H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t8)], t9), P.LinkedHashMap_LinkedHashMap$_empty(t1, t7), H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t8)], t9), P.LinkedHashMap_LinkedHashMap$_empty(t1, t7), _null);
  15259. },
  15260. Environment$_: function(_modules, _namespaceNodes, _globalModules, _globalModuleNodes, _forwardedModules, _forwardedModuleNodes, _nestedForwardedModules, _allModules, _variables, _variableNodes, _functions, _mixins, _content) {
  15261. var t1 = type$.String,
  15262. t2 = type$.int;
  15263. return new O.Environment(_modules, _namespaceNodes, _globalModules, _globalModuleNodes, _forwardedModules, _forwardedModuleNodes, _nestedForwardedModules, _allModules, _variables, _variableNodes, P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _functions, P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _mixins, P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _content);
  15264. },
  15265. _EnvironmentModule__EnvironmentModule: function(environment, css, extender, forwarded) {
  15266. var t1, t2, t3, t4, t5, t6;
  15267. if (forwarded == null)
  15268. forwarded = C.Set_empty;
  15269. t1 = O._EnvironmentModule__makeModulesByVariable(forwarded);
  15270. t2 = H._instanceType(forwarded);
  15271. t3 = O._EnvironmentModule__memberMap(C.JSArray_methods.get$first(environment._variables), new H.EfficientLengthMappedIterable(forwarded, new O._EnvironmentModule__EnvironmentModule_closure(), t2._eval$1("EfficientLengthMappedIterable<1,Map<String,Value>>")), type$.Value);
  15272. t4 = environment._variableNodes;
  15273. t4 = t4 == null ? null : O._EnvironmentModule__memberMap(C.JSArray_methods.get$first(t4), new H.EfficientLengthMappedIterable(forwarded, new O._EnvironmentModule__EnvironmentModule_closure0(), t2._eval$1("EfficientLengthMappedIterable<1,Map<String,AstNode>>")), type$.AstNode);
  15274. t2 = t2._eval$1("EfficientLengthMappedIterable<1,Map<String,Callable>>");
  15275. t5 = type$.Callable;
  15276. t6 = O._EnvironmentModule__memberMap(C.JSArray_methods.get$first(environment._functions), new H.EfficientLengthMappedIterable(forwarded, new O._EnvironmentModule__EnvironmentModule_closure1(), t2), t5);
  15277. t5 = O._EnvironmentModule__memberMap(C.JSArray_methods.get$first(environment._mixins), new H.EfficientLengthMappedIterable(forwarded, new O._EnvironmentModule__EnvironmentModule_closure2(), t2), t5);
  15278. t2 = J.get$isNotEmpty$asx(css.get$children()) || C.JSArray_methods.any$1(environment._allModules, new O._EnvironmentModule__EnvironmentModule_closure3());
  15279. return O._EnvironmentModule$_(environment, css, extender, t1, t3, t4, t6, t5, t2, !extender.get$isEmpty(extender) || C.JSArray_methods.any$1(environment._allModules, new O._EnvironmentModule__EnvironmentModule_closure4()));
  15280. },
  15281. _EnvironmentModule__makeModulesByVariable: function(forwarded) {
  15282. var modulesByVariable, t1, t2, t3, t4;
  15283. if (forwarded.get$isEmpty(forwarded))
  15284. return C.Map_empty0;
  15285. modulesByVariable = P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.Module_Callable);
  15286. for (t1 = forwarded.get$iterator(forwarded); t1.moveNext$0();) {
  15287. t2 = t1.get$current(t1);
  15288. if (t2 instanceof O._EnvironmentModule) {
  15289. for (t3 = t2._modulesByVariable.get$values(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  15290. t4 = t3.get$current(t3);
  15291. B.setAll(modulesByVariable, t4.get$variables().get$keys(), t4);
  15292. }
  15293. B.setAll(modulesByVariable, C.JSArray_methods.get$first(t2._environment._variables).get$keys(), t2);
  15294. } else
  15295. B.setAll(modulesByVariable, t2.get$variables().get$keys(), t2);
  15296. }
  15297. return modulesByVariable;
  15298. },
  15299. _EnvironmentModule__memberMap: function(localMap, otherMaps, $V) {
  15300. var t1, t2, t3;
  15301. localMap = new U.PublicMemberMapView(localMap, $V._eval$1("PublicMemberMapView<0>"));
  15302. t1 = otherMaps.__internal$_iterable;
  15303. t2 = J.getInterceptor$asx(t1);
  15304. if (t2.get$isEmpty(t1))
  15305. return localMap;
  15306. t3 = H.setRuntimeTypeInfo([], $V._eval$1("JSArray<Map<String,0>>"));
  15307. for (t1 = new H.MappedIterator(t2.get$iterator(t1), otherMaps._f); t1.moveNext$0();) {
  15308. t2 = t1.__internal$_current;
  15309. if (t2.get$isNotEmpty(t2))
  15310. t3.push(t2);
  15311. }
  15312. t3.push(localMap);
  15313. if (t3.length === 1)
  15314. return localMap;
  15315. return Z.MergedMapView$(t3, type$.String, $V);
  15316. },
  15317. _EnvironmentModule$_: function(_environment, css, extender, _modulesByVariable, variables, variableNodes, functions, mixins, transitivelyContainsCss, transitivelyContainsExtensions) {
  15318. return new O._EnvironmentModule(_environment._allModules, variables, variableNodes, functions, mixins, extender, css, transitivelyContainsCss, transitivelyContainsExtensions, _environment, _modulesByVariable);
  15319. },
  15320. Environment: function Environment(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15) {
  15321. var _ = this;
  15322. _._environment$_modules = t0;
  15323. _._namespaceNodes = t1;
  15324. _._globalModules = t2;
  15325. _._globalModuleNodes = t3;
  15326. _._forwardedModules = t4;
  15327. _._forwardedModuleNodes = t5;
  15328. _._nestedForwardedModules = t6;
  15329. _._allModules = t7;
  15330. _._variables = t8;
  15331. _._variableNodes = t9;
  15332. _._variableIndices = t10;
  15333. _._functions = t11;
  15334. _._functionIndices = t12;
  15335. _._mixins = t13;
  15336. _._mixinIndices = t14;
  15337. _._content = t15;
  15338. _._inMixin = false;
  15339. _._inSemiGlobalScope = true;
  15340. _._lastVariableIndex = _._lastVariableName = null;
  15341. },
  15342. Environment_importForwards_closure: function Environment_importForwards_closure() {
  15343. },
  15344. Environment_importForwards_closure0: function Environment_importForwards_closure0() {
  15345. },
  15346. Environment_importForwards_closure1: function Environment_importForwards_closure1() {
  15347. },
  15348. Environment_importForwards_closure2: function Environment_importForwards_closure2() {
  15349. },
  15350. Environment__getVariableFromGlobalModule_closure: function Environment__getVariableFromGlobalModule_closure(t0) {
  15351. this.name = t0;
  15352. },
  15353. Environment_setVariable_closure: function Environment_setVariable_closure(t0, t1) {
  15354. this.$this = t0;
  15355. this.name = t1;
  15356. },
  15357. Environment_setVariable_closure0: function Environment_setVariable_closure0(t0) {
  15358. this.name = t0;
  15359. },
  15360. Environment_setVariable_closure1: function Environment_setVariable_closure1(t0, t1) {
  15361. this.$this = t0;
  15362. this.name = t1;
  15363. },
  15364. Environment__getFunctionFromGlobalModule_closure: function Environment__getFunctionFromGlobalModule_closure(t0) {
  15365. this.name = t0;
  15366. },
  15367. Environment__getMixinFromGlobalModule_closure: function Environment__getMixinFromGlobalModule_closure(t0) {
  15368. this.name = t0;
  15369. },
  15370. _EnvironmentModule: function _EnvironmentModule(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10) {
  15371. var _ = this;
  15372. _.upstream = t0;
  15373. _.variables = t1;
  15374. _.variableNodes = t2;
  15375. _.functions = t3;
  15376. _.mixins = t4;
  15377. _.extender = t5;
  15378. _.css = t6;
  15379. _.transitivelyContainsCss = t7;
  15380. _.transitivelyContainsExtensions = t8;
  15381. _._environment = t9;
  15382. _._modulesByVariable = t10;
  15383. },
  15384. _EnvironmentModule__EnvironmentModule_closure: function _EnvironmentModule__EnvironmentModule_closure() {
  15385. },
  15386. _EnvironmentModule__EnvironmentModule_closure0: function _EnvironmentModule__EnvironmentModule_closure0() {
  15387. },
  15388. _EnvironmentModule__EnvironmentModule_closure1: function _EnvironmentModule__EnvironmentModule_closure1() {
  15389. },
  15390. _EnvironmentModule__EnvironmentModule_closure2: function _EnvironmentModule__EnvironmentModule_closure2() {
  15391. },
  15392. _EnvironmentModule__EnvironmentModule_closure3: function _EnvironmentModule__EnvironmentModule_closure3() {
  15393. },
  15394. _EnvironmentModule__EnvironmentModule_closure4: function _EnvironmentModule__EnvironmentModule_closure4() {
  15395. },
  15396. SassNull: function SassNull() {
  15397. },
  15398. AsyncImportCache$none: function(logger) {
  15399. var t1 = type$.Uri;
  15400. return new O.AsyncImportCache0(C.C_StderrLogger, P.LinkedHashMap_LinkedHashMap$_empty(type$.Tuple2_Uri_bool, type$.Tuple3_AsyncImporter_Uri_Uri), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Stylesheet), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.ImporterResult));
  15401. },
  15402. AsyncImportCache0: function AsyncImportCache0(t0, t1, t2, t3) {
  15403. var _ = this;
  15404. _._async_import_cache0$_logger = t0;
  15405. _._async_import_cache0$_canonicalizeCache = t1;
  15406. _._async_import_cache0$_importCache = t2;
  15407. _._async_import_cache0$_resultsCache = t3;
  15408. },
  15409. AsyncImportCache_canonicalize_closure0: function AsyncImportCache_canonicalize_closure0(t0, t1, t2) {
  15410. this.$this = t0;
  15411. this.url = t1;
  15412. this.forImport = t2;
  15413. },
  15414. AsyncImportCache__canonicalize_closure0: function AsyncImportCache__canonicalize_closure0(t0, t1) {
  15415. this.importer = t0;
  15416. this.url = t1;
  15417. },
  15418. AsyncImportCache_importCanonical_closure0: function AsyncImportCache_importCanonical_closure0(t0, t1, t2, t3) {
  15419. var _ = this;
  15420. _.$this = t0;
  15421. _.importer = t1;
  15422. _.canonicalUrl = t2;
  15423. _.originalUrl = t3;
  15424. },
  15425. AsyncImportCache_humanize_closure2: function AsyncImportCache_humanize_closure2(t0) {
  15426. this.canonicalUrl = t0;
  15427. },
  15428. AsyncImportCache_humanize_closure3: function AsyncImportCache_humanize_closure3() {
  15429. },
  15430. AsyncImportCache_humanize_closure4: function AsyncImportCache_humanize_closure4() {
  15431. },
  15432. Environment$0: function(sourceMap) {
  15433. var _null = null,
  15434. t1 = type$.String,
  15435. t2 = type$.Module_Callable_2,
  15436. t3 = type$.AstNode_2,
  15437. t4 = H.setRuntimeTypeInfo([], type$.JSArray_Module_Callable_2),
  15438. t5 = H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Value_2)], type$.JSArray_Map_String_Value_2),
  15439. t6 = sourceMap ? H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t3)], type$.JSArray_Map_String_AstNode_2) : _null,
  15440. t7 = type$.int,
  15441. t8 = type$.Callable_2,
  15442. t9 = type$.JSArray_Map_String_Callable_2;
  15443. return new O.Environment0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), P.LinkedHashMap_LinkedHashMap$_empty(t1, t3), P.LinkedHashSet_LinkedHashSet$_empty(t2), P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), _null, _null, _null, t4, t5, t6, P.LinkedHashMap_LinkedHashMap$_empty(t1, t7), H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t8)], t9), P.LinkedHashMap_LinkedHashMap$_empty(t1, t7), H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t8)], t9), P.LinkedHashMap_LinkedHashMap$_empty(t1, t7), _null);
  15444. },
  15445. Environment$_0: function(_modules, _namespaceNodes, _globalModules, _globalModuleNodes, _forwardedModules, _forwardedModuleNodes, _nestedForwardedModules, _allModules, _variables, _variableNodes, _functions, _mixins, _content) {
  15446. var t1 = type$.String,
  15447. t2 = type$.int;
  15448. return new O.Environment0(_modules, _namespaceNodes, _globalModules, _globalModuleNodes, _forwardedModules, _forwardedModuleNodes, _nestedForwardedModules, _allModules, _variables, _variableNodes, P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _functions, P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _mixins, P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _content);
  15449. },
  15450. _EnvironmentModule__EnvironmentModule1: function(environment, css, extender, forwarded) {
  15451. var t1, t2, t3, t4, t5, t6;
  15452. if (forwarded == null)
  15453. forwarded = C.Set_empty2;
  15454. t1 = O._EnvironmentModule__makeModulesByVariable1(forwarded);
  15455. t2 = H._instanceType(forwarded);
  15456. t3 = O._EnvironmentModule__memberMap1(C.JSArray_methods.get$first(environment._environment0$_variables), new H.EfficientLengthMappedIterable(forwarded, new O._EnvironmentModule__EnvironmentModule_closure11(), t2._eval$1("EfficientLengthMappedIterable<1,Map<String,Value0>>")), type$.Value_2);
  15457. t4 = environment._environment0$_variableNodes;
  15458. t4 = t4 == null ? null : O._EnvironmentModule__memberMap1(C.JSArray_methods.get$first(t4), new H.EfficientLengthMappedIterable(forwarded, new O._EnvironmentModule__EnvironmentModule_closure12(), t2._eval$1("EfficientLengthMappedIterable<1,Map<String,AstNode0>>")), type$.AstNode_2);
  15459. t2 = t2._eval$1("EfficientLengthMappedIterable<1,Map<String,Callable0>>");
  15460. t5 = type$.Callable_2;
  15461. t6 = O._EnvironmentModule__memberMap1(C.JSArray_methods.get$first(environment._environment0$_functions), new H.EfficientLengthMappedIterable(forwarded, new O._EnvironmentModule__EnvironmentModule_closure13(), t2), t5);
  15462. t5 = O._EnvironmentModule__memberMap1(C.JSArray_methods.get$first(environment._environment0$_mixins), new H.EfficientLengthMappedIterable(forwarded, new O._EnvironmentModule__EnvironmentModule_closure14(), t2), t5);
  15463. t2 = J.get$isNotEmpty$asx(css.get$children()) || C.JSArray_methods.any$1(environment._environment0$_allModules, new O._EnvironmentModule__EnvironmentModule_closure15());
  15464. return O._EnvironmentModule$_1(environment, css, extender, t1, t3, t4, t6, t5, t2, !extender.get$isEmpty(extender) || C.JSArray_methods.any$1(environment._environment0$_allModules, new O._EnvironmentModule__EnvironmentModule_closure16()));
  15465. },
  15466. _EnvironmentModule__makeModulesByVariable1: function(forwarded) {
  15467. var modulesByVariable, t1, t2, t3, t4;
  15468. if (forwarded.get$isEmpty(forwarded))
  15469. return C.Map_empty6;
  15470. modulesByVariable = P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.Module_Callable_2);
  15471. for (t1 = forwarded.get$iterator(forwarded); t1.moveNext$0();) {
  15472. t2 = t1.get$current(t1);
  15473. if (t2 instanceof O._EnvironmentModule1) {
  15474. for (t3 = t2._environment0$_modulesByVariable.get$values(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  15475. t4 = t3.get$current(t3);
  15476. B.setAll0(modulesByVariable, t4.get$variables().get$keys(), t4);
  15477. }
  15478. B.setAll0(modulesByVariable, C.JSArray_methods.get$first(t2._environment0$_environment._environment0$_variables).get$keys(), t2);
  15479. } else
  15480. B.setAll0(modulesByVariable, t2.get$variables().get$keys(), t2);
  15481. }
  15482. return modulesByVariable;
  15483. },
  15484. _EnvironmentModule__memberMap1: function(localMap, otherMaps, $V) {
  15485. var t1, t2, t3;
  15486. localMap = new U.PublicMemberMapView0(localMap, $V._eval$1("PublicMemberMapView0<0>"));
  15487. t1 = otherMaps.__internal$_iterable;
  15488. t2 = J.getInterceptor$asx(t1);
  15489. if (t2.get$isEmpty(t1))
  15490. return localMap;
  15491. t3 = H.setRuntimeTypeInfo([], $V._eval$1("JSArray<Map<String,0>>"));
  15492. for (t1 = new H.MappedIterator(t2.get$iterator(t1), otherMaps._f); t1.moveNext$0();) {
  15493. t2 = t1.__internal$_current;
  15494. if (t2.get$isNotEmpty(t2))
  15495. t3.push(t2);
  15496. }
  15497. t3.push(localMap);
  15498. if (t3.length === 1)
  15499. return localMap;
  15500. return Z.MergedMapView$0(t3, type$.String, $V);
  15501. },
  15502. _EnvironmentModule$_1: function(_environment, css, extender, _modulesByVariable, variables, variableNodes, functions, mixins, transitivelyContainsCss, transitivelyContainsExtensions) {
  15503. return new O._EnvironmentModule1(_environment._environment0$_allModules, variables, variableNodes, functions, mixins, extender, css, transitivelyContainsCss, transitivelyContainsExtensions, _environment, _modulesByVariable);
  15504. },
  15505. Environment0: function Environment0(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15) {
  15506. var _ = this;
  15507. _._environment0$_modules = t0;
  15508. _._environment0$_namespaceNodes = t1;
  15509. _._environment0$_globalModules = t2;
  15510. _._environment0$_globalModuleNodes = t3;
  15511. _._environment0$_forwardedModules = t4;
  15512. _._environment0$_forwardedModuleNodes = t5;
  15513. _._environment0$_nestedForwardedModules = t6;
  15514. _._environment0$_allModules = t7;
  15515. _._environment0$_variables = t8;
  15516. _._environment0$_variableNodes = t9;
  15517. _._environment0$_variableIndices = t10;
  15518. _._environment0$_functions = t11;
  15519. _._environment0$_functionIndices = t12;
  15520. _._environment0$_mixins = t13;
  15521. _._environment0$_mixinIndices = t14;
  15522. _._environment0$_content = t15;
  15523. _._environment0$_inMixin = false;
  15524. _._environment0$_inSemiGlobalScope = true;
  15525. _._environment0$_lastVariableIndex = _._environment0$_lastVariableName = null;
  15526. },
  15527. Environment_importForwards_closure3: function Environment_importForwards_closure3() {
  15528. },
  15529. Environment_importForwards_closure4: function Environment_importForwards_closure4() {
  15530. },
  15531. Environment_importForwards_closure5: function Environment_importForwards_closure5() {
  15532. },
  15533. Environment_importForwards_closure6: function Environment_importForwards_closure6() {
  15534. },
  15535. Environment__getVariableFromGlobalModule_closure0: function Environment__getVariableFromGlobalModule_closure0(t0) {
  15536. this.name = t0;
  15537. },
  15538. Environment_setVariable_closure2: function Environment_setVariable_closure2(t0, t1) {
  15539. this.$this = t0;
  15540. this.name = t1;
  15541. },
  15542. Environment_setVariable_closure3: function Environment_setVariable_closure3(t0) {
  15543. this.name = t0;
  15544. },
  15545. Environment_setVariable_closure4: function Environment_setVariable_closure4(t0, t1) {
  15546. this.$this = t0;
  15547. this.name = t1;
  15548. },
  15549. Environment__getFunctionFromGlobalModule_closure0: function Environment__getFunctionFromGlobalModule_closure0(t0) {
  15550. this.name = t0;
  15551. },
  15552. Environment__getMixinFromGlobalModule_closure0: function Environment__getMixinFromGlobalModule_closure0(t0) {
  15553. this.name = t0;
  15554. },
  15555. _EnvironmentModule1: function _EnvironmentModule1(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10) {
  15556. var _ = this;
  15557. _.upstream = t0;
  15558. _.variables = t1;
  15559. _.variableNodes = t2;
  15560. _.functions = t3;
  15561. _.mixins = t4;
  15562. _.extender = t5;
  15563. _.css = t6;
  15564. _.transitivelyContainsCss = t7;
  15565. _.transitivelyContainsExtensions = t8;
  15566. _._environment0$_environment = t9;
  15567. _._environment0$_modulesByVariable = t10;
  15568. },
  15569. _EnvironmentModule__EnvironmentModule_closure11: function _EnvironmentModule__EnvironmentModule_closure11() {
  15570. },
  15571. _EnvironmentModule__EnvironmentModule_closure12: function _EnvironmentModule__EnvironmentModule_closure12() {
  15572. },
  15573. _EnvironmentModule__EnvironmentModule_closure13: function _EnvironmentModule__EnvironmentModule_closure13() {
  15574. },
  15575. _EnvironmentModule__EnvironmentModule_closure14: function _EnvironmentModule__EnvironmentModule_closure14() {
  15576. },
  15577. _EnvironmentModule__EnvironmentModule_closure15: function _EnvironmentModule__EnvironmentModule_closure15() {
  15578. },
  15579. _EnvironmentModule__EnvironmentModule_closure16: function _EnvironmentModule__EnvironmentModule_closure16() {
  15580. },
  15581. NullExpression0: function NullExpression0(t0) {
  15582. this.span = t0;
  15583. },
  15584. closure224: function closure224() {
  15585. },
  15586. _closure29: function _closure29() {
  15587. },
  15588. _closure30: function _closure30() {
  15589. },
  15590. SassNull0: function SassNull0() {
  15591. },
  15592. Statement0: function Statement0() {
  15593. }
  15594. },
  15595. U = {DefaultEquality: function DefaultEquality() {
  15596. }, IterableEquality: function IterableEquality() {
  15597. }, ListEquality: function ListEquality() {
  15598. }, _MapEntry: function _MapEntry(t0, t1, t2) {
  15599. this.equality = t0;
  15600. this.key = t1;
  15601. this.value = t2;
  15602. }, MapEquality: function MapEquality() {
  15603. }, ModifiableCssAtRule: function ModifiableCssAtRule(t0, t1, t2, t3, t4, t5) {
  15604. var _ = this;
  15605. _.name = t0;
  15606. _.value = t1;
  15607. _.isChildless = t2;
  15608. _.span = t3;
  15609. _.children = t4;
  15610. _._children = t5;
  15611. _._indexInParent = _._parent = null;
  15612. _.isGroupEnd = false;
  15613. }, ModifiableCssKeyframeBlock: function ModifiableCssKeyframeBlock(t0, t1, t2, t3) {
  15614. var _ = this;
  15615. _.selector = t0;
  15616. _.span = t1;
  15617. _.children = t2;
  15618. _._children = t3;
  15619. _._indexInParent = _._parent = null;
  15620. _.isGroupEnd = false;
  15621. },
  15622. AtRule$: function($name, span, children, value) {
  15623. var t1 = children == null ? null : P.List_List$unmodifiable(children, type$.Statement),
  15624. t2 = t1 == null ? null : C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
  15625. return new U.AtRule($name, value, span, t1, t2 === true);
  15626. },
  15627. AtRule: function AtRule(t0, t1, t2, t3, t4) {
  15628. var _ = this;
  15629. _.name = t0;
  15630. _.value = t1;
  15631. _.span = t2;
  15632. _.children = t3;
  15633. _.hasDeclarations = t4;
  15634. },
  15635. SupportsOperation: function SupportsOperation(t0, t1, t2, t3) {
  15636. var _ = this;
  15637. _.left = t0;
  15638. _.right = t1;
  15639. _.operator = t2;
  15640. _.span = t3;
  15641. },
  15642. _compileStylesheet: function(stylesheet, logger, importCache, nodeImporter, importer, functions, style, useSpaces, indentWidth, lineFeed, sourceMap, charset) {
  15643. var serializeResult = N.serialize(R._EvaluateVisitor$(functions, importCache, logger, nodeImporter, sourceMap).run$2(0, importer, stylesheet).stylesheet, charset, indentWidth, false, lineFeed, sourceMap, style, true),
  15644. t1 = serializeResult.sourceMap;
  15645. if (t1 != null && true)
  15646. B.mapInPlace(t1.urls, new U._compileStylesheet_closure(stylesheet, importCache));
  15647. return new X.CompileResult(serializeResult);
  15648. },
  15649. _compileStylesheet_closure: function _compileStylesheet_closure(t0, t1) {
  15650. this.stylesheet = t0;
  15651. this.importCache = t1;
  15652. },
  15653. SassParser: function SassParser(t0, t1, t2) {
  15654. var _ = this;
  15655. _._currentIndentation = 0;
  15656. _._spaces = _._nextIndentationEnd = _._nextIndentation = null;
  15657. _._isUseAllowed = true;
  15658. _._stylesheet$_inMixin = false;
  15659. _._mixinHasContent = null;
  15660. _._inParentheses = _._inStyleRule = _._stylesheet$_inUnknownAtRule = _._inControlDirective = _._inContentBlock = false;
  15661. _._globalVariables = t0;
  15662. _.lastSilentComment = null;
  15663. _.scanner = t1;
  15664. _.logger = t2;
  15665. },
  15666. SassParser_children_closure: function SassParser_children_closure(t0, t1, t2) {
  15667. this.$this = t0;
  15668. this.children = t1;
  15669. this.child = t2;
  15670. },
  15671. MultiDirWatcher: function MultiDirWatcher(t0, t1, t2) {
  15672. this._watchers = t0;
  15673. this._group = t1;
  15674. this._poll = t2;
  15675. },
  15676. PublicMemberMapView: function PublicMemberMapView(t0, t1) {
  15677. this._inner = t0;
  15678. this.$ti = t1;
  15679. },
  15680. Highlighter$: function(span, color) {
  15681. var t1 = U.Highlighter__collateLines(H.setRuntimeTypeInfo([U._Highlight$(span, null, true)], type$.JSArray__Highlight)),
  15682. t2 = new U.Highlighter_closure(color).call$0(),
  15683. t3 = C.JSInt_methods.toString$0(C.JSArray_methods.get$last(t1).number + 1),
  15684. t4 = U.Highlighter__contiguous(t1) ? 0 : 3,
  15685. t5 = H._arrayInstanceType(t1);
  15686. return new U.Highlighter(t1, t2, null, 1 + Math.max(t3.length, t4), new H.MappedListIterable(t1, new U.Highlighter$__closure(), t5._eval$1("MappedListIterable<1,int>")).reduce$1(0, H.instantiate1(P.math__max$closure(), type$.int)), !B.isAllTheSame(new H.MappedListIterable(t1, new U.Highlighter$__closure0(), t5._eval$1("MappedListIterable<1,Object>"))), new P.StringBuffer(""));
  15687. },
  15688. Highlighter$multiple: function(primarySpan, primaryLabel, secondarySpans, color, primaryColor, secondaryColor) {
  15689. var t2, t3, t4, t5, t6,
  15690. t1 = H.setRuntimeTypeInfo([], type$.JSArray__Highlight);
  15691. t1.push(U._Highlight$(primarySpan, primaryLabel, true));
  15692. for (t2 = secondarySpans.get$entries(), t2 = t2.get$iterator(t2); t2.moveNext$0();) {
  15693. t3 = t2.get$current(t2);
  15694. t1.push(U._Highlight$(t3.key, t3.value, false));
  15695. }
  15696. t1 = U.Highlighter__collateLines(t1);
  15697. if (color)
  15698. t2 = "\x1b[31m";
  15699. else
  15700. t2 = null;
  15701. if (color)
  15702. t3 = "\x1b[34m";
  15703. else
  15704. t3 = null;
  15705. t4 = C.JSInt_methods.toString$0(C.JSArray_methods.get$last(t1).number + 1);
  15706. t5 = U.Highlighter__contiguous(t1) ? 0 : 3;
  15707. t6 = H._arrayInstanceType(t1);
  15708. return new U.Highlighter(t1, t2, t3, 1 + Math.max(t4.length, t5), new H.MappedListIterable(t1, new U.Highlighter$__closure(), t6._eval$1("MappedListIterable<1,int>")).reduce$1(0, H.instantiate1(P.math__max$closure(), type$.int)), !B.isAllTheSame(new H.MappedListIterable(t1, new U.Highlighter$__closure0(), t6._eval$1("MappedListIterable<1,Object>"))), new P.StringBuffer(""));
  15709. },
  15710. Highlighter__contiguous: function(lines) {
  15711. var i, thisLine, nextLine;
  15712. for (i = 0; i < lines.length - 1;) {
  15713. thisLine = lines[i];
  15714. ++i;
  15715. nextLine = lines[i];
  15716. if (thisLine.number + 1 !== nextLine.number && J.$eq$(thisLine.url, nextLine.url))
  15717. return false;
  15718. }
  15719. return true;
  15720. },
  15721. Highlighter__collateLines: function(highlights) {
  15722. var t1, t2,
  15723. highlightsByUrl = Y.groupBy(highlights, new U.Highlighter__collateLines_closure(), type$._Highlight, type$.dynamic);
  15724. for (t1 = highlightsByUrl.get$values(), t1 = t1.get$iterator(t1); t1.moveNext$0();)
  15725. J.sort$1$ax(t1.get$current(t1), new U.Highlighter__collateLines_closure0());
  15726. t1 = highlightsByUrl.get$values();
  15727. t2 = H._instanceType(t1)._eval$1("ExpandIterable<Iterable.E,_Line>");
  15728. return P.List_List$from(new H.ExpandIterable(t1, new U.Highlighter__collateLines_closure1(), t2), true, t2._eval$1("Iterable.E"));
  15729. },
  15730. _Highlight$: function(span, label, primary) {
  15731. return new U._Highlight(new U._Highlight_closure(span).call$0(), primary, label);
  15732. },
  15733. _Highlight__normalizeNewlines: function(span) {
  15734. var endOffset, t1, i, t2, t3, t4,
  15735. text = span.get$text();
  15736. if (!C.JSString_methods.contains$1(text, "\r\n"))
  15737. return span;
  15738. endOffset = span.get$end(span).get$offset();
  15739. for (t1 = text.length - 1, i = 0; i < t1; ++i)
  15740. if (C.JSString_methods._codeUnitAt$1(text, i) === 13 && C.JSString_methods._codeUnitAt$1(text, i + 1) === 10)
  15741. --endOffset;
  15742. t1 = span.get$start(span);
  15743. t2 = span.get$sourceUrl();
  15744. t3 = span.get$end(span).get$line();
  15745. t2 = V.SourceLocation$(endOffset, span.get$end(span).get$column(), t3, t2);
  15746. t3 = H.stringReplaceAllUnchecked(text, "\r\n", "\n");
  15747. t4 = span.get$context(span);
  15748. return X.SourceSpanWithContext$(t1, t2, t3, H.stringReplaceAllUnchecked(t4, "\r\n", "\n"));
  15749. },
  15750. _Highlight__normalizeTrailingNewline: function(span) {
  15751. var context, text, start, end, t1, t2, t3;
  15752. if (!C.JSString_methods.endsWith$1(span.get$context(span), "\n"))
  15753. return span;
  15754. if (C.JSString_methods.endsWith$1(span.get$text(), "\n\n"))
  15755. return span;
  15756. context = C.JSString_methods.substring$2(span.get$context(span), 0, span.get$context(span).length - 1);
  15757. text = span.get$text();
  15758. start = span.get$start(span);
  15759. end = span.get$end(span);
  15760. if (C.JSString_methods.endsWith$1(span.get$text(), "\n") && B.findLineStart(span.get$context(span), span.get$text(), span.get$start(span).get$column()) + span.get$start(span).get$column() + span.get$length(span) === span.get$context(span).length) {
  15761. text = C.JSString_methods.substring$2(span.get$text(), 0, span.get$text().length - 1);
  15762. if (text.length === 0)
  15763. end = start;
  15764. else {
  15765. t1 = span.get$end(span).get$offset();
  15766. t2 = span.get$sourceUrl();
  15767. t3 = span.get$end(span).get$line();
  15768. end = V.SourceLocation$(t1 - 1, U._Highlight__lastLineLength(context), t3 - 1, t2);
  15769. start = span.get$start(span).get$offset() === span.get$end(span).get$offset() ? end : span.get$start(span);
  15770. }
  15771. }
  15772. return X.SourceSpanWithContext$(start, end, text, context);
  15773. },
  15774. _Highlight__normalizeEndOfLine: function(span) {
  15775. var text, t1, t2, t3, t4;
  15776. if (span.get$end(span).get$column() !== 0)
  15777. return span;
  15778. if (span.get$end(span).get$line() == span.get$start(span).get$line())
  15779. return span;
  15780. text = C.JSString_methods.substring$2(span.get$text(), 0, span.get$text().length - 1);
  15781. t1 = span.get$start(span);
  15782. t2 = span.get$end(span).get$offset();
  15783. t3 = span.get$sourceUrl();
  15784. t4 = span.get$end(span).get$line();
  15785. t3 = V.SourceLocation$(t2 - 1, text.length - C.JSString_methods.lastIndexOf$1(text, "\n") - 1, t4 - 1, t3);
  15786. return X.SourceSpanWithContext$(t1, t3, text, C.JSString_methods.endsWith$1(span.get$context(span), "\n") ? C.JSString_methods.substring$2(span.get$context(span), 0, span.get$context(span).length - 1) : span.get$context(span));
  15787. },
  15788. _Highlight__lastLineLength: function(text) {
  15789. var t1 = text.length;
  15790. if (t1 === 0)
  15791. return 0;
  15792. else if (C.JSString_methods.codeUnitAt$1(text, t1 - 1) === 10)
  15793. return t1 === 1 ? 0 : t1 - C.JSString_methods.lastIndexOf$2(text, "\n", t1 - 2) - 1;
  15794. else
  15795. return t1 - C.JSString_methods.lastIndexOf$1(text, "\n") - 1;
  15796. },
  15797. Highlighter: function Highlighter(t0, t1, t2, t3, t4, t5, t6) {
  15798. var _ = this;
  15799. _._lines = t0;
  15800. _._primaryColor = t1;
  15801. _._secondaryColor = t2;
  15802. _._paddingBeforeSidebar = t3;
  15803. _._maxMultilineSpans = t4;
  15804. _._multipleFiles = t5;
  15805. _._highlighter$_buffer = t6;
  15806. },
  15807. Highlighter_closure: function Highlighter_closure(t0) {
  15808. this.color = t0;
  15809. },
  15810. Highlighter$__closure: function Highlighter$__closure() {
  15811. },
  15812. Highlighter$___closure: function Highlighter$___closure() {
  15813. },
  15814. Highlighter$__closure0: function Highlighter$__closure0() {
  15815. },
  15816. Highlighter__collateLines_closure: function Highlighter__collateLines_closure() {
  15817. },
  15818. Highlighter__collateLines_closure0: function Highlighter__collateLines_closure0() {
  15819. },
  15820. Highlighter__collateLines_closure1: function Highlighter__collateLines_closure1() {
  15821. },
  15822. Highlighter__collateLines__closure: function Highlighter__collateLines__closure(t0) {
  15823. this.line = t0;
  15824. },
  15825. Highlighter_highlight_closure: function Highlighter_highlight_closure() {
  15826. },
  15827. Highlighter_highlight_closure0: function Highlighter_highlight_closure0() {
  15828. },
  15829. Highlighter__writeFileStart_closure: function Highlighter__writeFileStart_closure(t0) {
  15830. this.$this = t0;
  15831. },
  15832. Highlighter__writeMultilineHighlights_closure: function Highlighter__writeMultilineHighlights_closure(t0, t1, t2) {
  15833. this.$this = t0;
  15834. this.startLine = t1;
  15835. this.line = t2;
  15836. },
  15837. Highlighter__writeMultilineHighlights_closure0: function Highlighter__writeMultilineHighlights_closure0(t0, t1) {
  15838. this.$this = t0;
  15839. this.highlight = t1;
  15840. },
  15841. Highlighter__writeMultilineHighlights_closure1: function Highlighter__writeMultilineHighlights_closure1(t0) {
  15842. this.$this = t0;
  15843. },
  15844. Highlighter__writeMultilineHighlights_closure2: function Highlighter__writeMultilineHighlights_closure2(t0, t1, t2, t3, t4, t5, t6) {
  15845. var _ = this;
  15846. _._box_0 = t0;
  15847. _.$this = t1;
  15848. _.current = t2;
  15849. _.startLine = t3;
  15850. _.line = t4;
  15851. _.highlight = t5;
  15852. _.endLine = t6;
  15853. },
  15854. Highlighter__writeMultilineHighlights__closure: function Highlighter__writeMultilineHighlights__closure(t0, t1) {
  15855. this._box_0 = t0;
  15856. this.$this = t1;
  15857. },
  15858. Highlighter__writeMultilineHighlights__closure0: function Highlighter__writeMultilineHighlights__closure0(t0, t1) {
  15859. this.$this = t0;
  15860. this.vertical = t1;
  15861. },
  15862. Highlighter__writeHighlightedText_closure: function Highlighter__writeHighlightedText_closure(t0, t1, t2, t3) {
  15863. var _ = this;
  15864. _.$this = t0;
  15865. _.text = t1;
  15866. _.startColumn = t2;
  15867. _.endColumn = t3;
  15868. },
  15869. Highlighter__writeIndicator_closure: function Highlighter__writeIndicator_closure(t0, t1, t2) {
  15870. this.$this = t0;
  15871. this.line = t1;
  15872. this.highlight = t2;
  15873. },
  15874. Highlighter__writeIndicator_closure0: function Highlighter__writeIndicator_closure0(t0, t1, t2) {
  15875. this.$this = t0;
  15876. this.line = t1;
  15877. this.highlight = t2;
  15878. },
  15879. Highlighter__writeIndicator_closure1: function Highlighter__writeIndicator_closure1(t0, t1, t2, t3) {
  15880. var _ = this;
  15881. _.$this = t0;
  15882. _.coversWholeLine = t1;
  15883. _.line = t2;
  15884. _.highlight = t3;
  15885. },
  15886. Highlighter__writeSidebar_closure: function Highlighter__writeSidebar_closure(t0, t1, t2) {
  15887. this._box_0 = t0;
  15888. this.$this = t1;
  15889. this.end = t2;
  15890. },
  15891. _Highlight: function _Highlight(t0, t1, t2) {
  15892. this.span = t0;
  15893. this.isPrimary = t1;
  15894. this.label = t2;
  15895. },
  15896. _Highlight_closure: function _Highlight_closure(t0) {
  15897. this.span = t0;
  15898. },
  15899. _Line: function _Line(t0, t1, t2, t3) {
  15900. var _ = this;
  15901. _.text = t0;
  15902. _.number = t1;
  15903. _.url = t2;
  15904. _.highlights = t3;
  15905. },
  15906. Chain_Chain$parse: function(chain) {
  15907. var _s26_ = "<asynchronous suspension>\n",
  15908. _s51_ = "===== asynchronous gap ===========================\n";
  15909. if (chain.length === 0)
  15910. return new U.Chain(P.List_List$unmodifiable(H.setRuntimeTypeInfo([], type$.JSArray_Trace), type$.Trace));
  15911. if (C.JSString_methods.contains$1(chain, _s26_))
  15912. return new U.Chain(P.List_List$unmodifiable(new H.MappedListIterable(H.setRuntimeTypeInfo(chain.split(_s26_), type$.JSArray_String), new U.Chain_Chain$parse_closure(), type$.MappedListIterable_String_Trace), type$.Trace));
  15913. if (!C.JSString_methods.contains$1(chain, _s51_))
  15914. return new U.Chain(P.List_List$unmodifiable(H.setRuntimeTypeInfo([Y.Trace_Trace$parse(chain)], type$.JSArray_Trace), type$.Trace));
  15915. return new U.Chain(P.List_List$unmodifiable(new H.MappedListIterable(H.setRuntimeTypeInfo(chain.split(_s51_), type$.JSArray_String), new U.Chain_Chain$parse_closure0(), type$.MappedListIterable_String_Trace), type$.Trace));
  15916. },
  15917. Chain: function Chain(t0) {
  15918. this.traces = t0;
  15919. },
  15920. Chain_Chain$parse_closure: function Chain_Chain$parse_closure() {
  15921. },
  15922. Chain_Chain$parse_closure0: function Chain_Chain$parse_closure0() {
  15923. },
  15924. Chain_toTrace_closure: function Chain_toTrace_closure() {
  15925. },
  15926. Chain_toString_closure0: function Chain_toString_closure0() {
  15927. },
  15928. Chain_toString__closure0: function Chain_toString__closure0() {
  15929. },
  15930. Chain_toString_closure: function Chain_toString_closure(t0) {
  15931. this.longest = t0;
  15932. },
  15933. Chain_toString__closure: function Chain_toString__closure(t0) {
  15934. this.longest = t0;
  15935. },
  15936. ModifiableCssAtRule0: function ModifiableCssAtRule0(t0, t1, t2, t3, t4, t5) {
  15937. var _ = this;
  15938. _.name = t0;
  15939. _.value = t1;
  15940. _.isChildless = t2;
  15941. _.span = t3;
  15942. _.children = t4;
  15943. _._node2$_children = t5;
  15944. _._node2$_indexInParent = _._node2$_parent = null;
  15945. _.isGroupEnd = false;
  15946. },
  15947. AtRule$0: function($name, span, children, value) {
  15948. var t1 = children == null ? null : P.List_List$unmodifiable(children, type$.Statement_2),
  15949. t2 = t1 == null ? null : C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
  15950. return new U.AtRule0($name, value, span, t1, t2 === true);
  15951. },
  15952. AtRule0: function AtRule0(t0, t1, t2, t3, t4) {
  15953. var _ = this;
  15954. _.name = t0;
  15955. _.value = t1;
  15956. _.span = t2;
  15957. _.children = t3;
  15958. _.hasDeclarations = t4;
  15959. },
  15960. _compileStylesheet1: function(stylesheet, logger, importCache, nodeImporter, importer, functions, style, useSpaces, indentWidth, lineFeed, sourceMap, charset) {
  15961. var evaluateResult = R._EvaluateVisitor$1(functions, importCache, logger, nodeImporter, sourceMap).run$2(0, importer, stylesheet),
  15962. serializeResult = N.serialize0(evaluateResult.stylesheet, true, indentWidth, false, lineFeed, sourceMap, style, useSpaces),
  15963. t1 = serializeResult.sourceMap;
  15964. if (t1 != null && importCache != null)
  15965. B.mapInPlace0(t1.urls, new U._compileStylesheet_closure1(stylesheet, importCache));
  15966. return new X.CompileResult0(evaluateResult, serializeResult);
  15967. },
  15968. _compileStylesheet_closure1: function _compileStylesheet_closure1(t0, t1) {
  15969. this.stylesheet = t0;
  15970. this.importCache = t1;
  15971. },
  15972. ModifiableCssKeyframeBlock0: function ModifiableCssKeyframeBlock0(t0, t1, t2, t3) {
  15973. var _ = this;
  15974. _.selector = t0;
  15975. _.span = t1;
  15976. _.children = t2;
  15977. _._node2$_children = t3;
  15978. _._node2$_indexInParent = _._node2$_parent = null;
  15979. _.isGroupEnd = false;
  15980. },
  15981. SupportsOperation0: function SupportsOperation0(t0, t1, t2, t3) {
  15982. var _ = this;
  15983. _.left = t0;
  15984. _.right = t1;
  15985. _.operator = t2;
  15986. _.span = t3;
  15987. },
  15988. PublicMemberMapView0: function PublicMemberMapView0(t0, t1) {
  15989. this._public_member_map_view$_inner = t0;
  15990. this.$ti = t1;
  15991. },
  15992. RenderResult: function RenderResult() {
  15993. },
  15994. RenderResultStats: function RenderResultStats() {
  15995. },
  15996. main: function(args) {
  15997. return U.main$body(args);
  15998. },
  15999. main$body: function(args) {
  16000. var $async$goto = 0,
  16001. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  16002. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], printError, graph, source, destination, error, stackTrace, error0, stackTrace0, error1, error2, stackTrace1, buffer, options, t1, t2, t3, t4, exception, _box_0, $async$exception, $async$exception1, $async$temp1;
  16003. var $async$main = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  16004. if ($async$errorCode === 1) {
  16005. $async$currentError = $async$result;
  16006. $async$goto = $async$handler;
  16007. }
  16008. while (true)
  16009. switch ($async$goto) {
  16010. case 0:
  16011. // Function start
  16012. _box_0 = {};
  16013. _box_0.printedError = false;
  16014. printError = new U.main_printError(_box_0);
  16015. _box_0.options = null;
  16016. $async$handler = 4;
  16017. options = B.ExecutableOptions_ExecutableOptions$parse(args);
  16018. _box_0.options = options;
  16019. t1 = options._options;
  16020. $._glyphs = !(t1.wasParsed$1("unicode") ? H._asBoolNullable(t1.$index(0, "unicode")) : $._glyphs !== C.C_AsciiGlyphSet) ? C.C_AsciiGlyphSet : C.C_UnicodeGlyphSet;
  16021. $async$goto = H._asBoolNullable(_box_0.options._options.$index(0, "version")) ? 7 : 8;
  16022. break;
  16023. case 7:
  16024. // then
  16025. $async$temp1 = P;
  16026. $async$goto = 9;
  16027. return P._asyncAwait(U._loadVersion(), $async$main);
  16028. case 9:
  16029. // returning from await.
  16030. $async$temp1.print($async$result);
  16031. self.process.exitCode = 0;
  16032. // goto return
  16033. $async$goto = 1;
  16034. break;
  16035. case 8:
  16036. // join
  16037. $async$goto = _box_0.options.get$interactive() ? 10 : 11;
  16038. break;
  16039. case 10:
  16040. // then
  16041. $async$goto = 12;
  16042. return P._asyncAwait(Y.repl(_box_0.options), $async$main);
  16043. case 12:
  16044. // returning from await.
  16045. // goto return
  16046. $async$goto = 1;
  16047. break;
  16048. case 11:
  16049. // join
  16050. t1 = H.setRuntimeTypeInfo([], type$.JSArray_Importer);
  16051. t2 = type$.List_String._as(_box_0.options._options.$index(0, "load-path"));
  16052. t3 = _box_0.options;
  16053. t4 = type$.Uri;
  16054. graph = new M.StylesheetGraph(P.LinkedHashMap_LinkedHashMap$_empty(t4, type$.StylesheetNode), R.ImportCache$(t1, t2, H._asBoolNullable(t3._options.$index(0, "quiet")) ? $.$get$Logger_quiet() : new S.StderrLogger(t3.get$color())), P.LinkedHashMap_LinkedHashMap$_empty(t4, type$.DateTime));
  16055. $async$goto = H._asBoolNullable(_box_0.options._options.$index(0, "watch")) ? 13 : 14;
  16056. break;
  16057. case 13:
  16058. // then
  16059. $async$goto = 15;
  16060. return P._asyncAwait(A.watch(_box_0.options, graph), $async$main);
  16061. case 15:
  16062. // returning from await.
  16063. // goto return
  16064. $async$goto = 1;
  16065. break;
  16066. case 14:
  16067. // join
  16068. t1 = _box_0.options, t1._ensureSources$0(), t1 = J.get$iterator$ax(t1._sourcesToDestinations.get$keys());
  16069. case 16:
  16070. // for condition
  16071. if (!t1.moveNext$0()) {
  16072. // goto after for
  16073. $async$goto = 17;
  16074. break;
  16075. }
  16076. source = t1.get$current(t1);
  16077. t2 = _box_0.options;
  16078. t2._ensureSources$0();
  16079. destination = t2._sourcesToDestinations.$index(0, source);
  16080. $async$handler = 19;
  16081. t2 = _box_0.options;
  16082. $async$goto = 22;
  16083. return P._asyncAwait(D.compileStylesheet(t2, graph, source, destination, H._asBoolNullable(t2._options.$index(0, "update"))), $async$main);
  16084. case 22:
  16085. // returning from await.
  16086. $async$handler = 4;
  16087. // goto after finally
  16088. $async$goto = 21;
  16089. break;
  16090. case 19:
  16091. // catch
  16092. $async$handler = 18;
  16093. $async$exception = $async$currentError;
  16094. t2 = H.unwrapException($async$exception);
  16095. if (t2 instanceof E.SassException) {
  16096. error = t2;
  16097. stackTrace = H.getTraceFromException($async$exception);
  16098. new U.main_closure(_box_0, destination).call$0();
  16099. t2 = _box_0.options._options;
  16100. if (t2._parser.options._collection$_map.$index(0, "color") == null)
  16101. H.throwExpression(P.ArgumentError$('Could not find an option named "color".'));
  16102. if (t2._parsed.containsKey$1("color"))
  16103. t2 = H._asBoolNullable(t2.$index(0, "color"));
  16104. else {
  16105. t2 = self.process.stdout.isTTY;
  16106. if (t2 == null)
  16107. t2 = false;
  16108. }
  16109. t2 = J.toString$1$color$(error, t2);
  16110. t3 = H._asBoolNullable(_box_0.options._options.$index(0, "trace")) ? stackTrace : null;
  16111. printError.call$2(t2, t3);
  16112. if (!J.$eq$(self.process.exitCode, 66))
  16113. self.process.exitCode = 65;
  16114. if (H._asBoolNullable(_box_0.options._options.$index(0, "stop-on-error"))) {
  16115. // goto return
  16116. $async$goto = 1;
  16117. break;
  16118. }
  16119. } else if (t2 instanceof B.FileSystemException) {
  16120. error0 = t2;
  16121. stackTrace0 = H.getTraceFromException($async$exception);
  16122. t2 = error0.path;
  16123. t2 = "Error reading " + H.S($.$get$context().relative$2$from(t2, null)) + ": " + error0.message + ".";
  16124. t3 = H._asBoolNullable(_box_0.options._options.$index(0, "trace")) ? stackTrace0 : null;
  16125. printError.call$2(t2, t3);
  16126. self.process.exitCode = 66;
  16127. if (H._asBoolNullable(_box_0.options._options.$index(0, "stop-on-error"))) {
  16128. // goto return
  16129. $async$goto = 1;
  16130. break;
  16131. }
  16132. } else
  16133. throw $async$exception;
  16134. // goto after finally
  16135. $async$goto = 21;
  16136. break;
  16137. case 18:
  16138. // uncaught
  16139. // goto catch
  16140. $async$goto = 4;
  16141. break;
  16142. case 21:
  16143. // after finally
  16144. // goto for condition
  16145. $async$goto = 16;
  16146. break;
  16147. case 17:
  16148. // after for
  16149. $async$handler = 2;
  16150. // goto after finally
  16151. $async$goto = 6;
  16152. break;
  16153. case 4:
  16154. // catch
  16155. $async$handler = 3;
  16156. $async$exception1 = $async$currentError;
  16157. t1 = H.unwrapException($async$exception1);
  16158. if (t1 instanceof B.UsageException) {
  16159. error1 = t1;
  16160. P.print(H.S(error1.message) + "\n");
  16161. P.print("Usage: sass <input.scss> [output.css]\n sass <input.scss>:<output.css> <input/>:<output/> <dir/>\n");
  16162. t1 = $.$get$ExecutableOptions__parser();
  16163. P.print(new G.Usage(t1._optionsAndSeparators, t1.usageLineLength).generate$0());
  16164. self.process.exitCode = 64;
  16165. } else {
  16166. error2 = t1;
  16167. stackTrace1 = H.getTraceFromException($async$exception1);
  16168. buffer = new P.StringBuffer("");
  16169. t1 = _box_0.options;
  16170. if (t1 != null && t1.get$color())
  16171. buffer._contents += "\x1b[31m\x1b[1m";
  16172. buffer._contents += "Unexpected exception:";
  16173. t1 = _box_0.options;
  16174. if (t1 != null && t1.get$color())
  16175. buffer._contents += "\x1b[0m";
  16176. buffer._contents += "\n";
  16177. buffer._contents += H.S(error2) + "\n";
  16178. t1 = buffer._contents;
  16179. printError.call$2(t1.charCodeAt(0) == 0 ? t1 : t1, stackTrace1);
  16180. self.process.exitCode = 255;
  16181. }
  16182. // goto after finally
  16183. $async$goto = 6;
  16184. break;
  16185. case 3:
  16186. // uncaught
  16187. // goto rethrow
  16188. $async$goto = 2;
  16189. break;
  16190. case 6:
  16191. // after finally
  16192. case 1:
  16193. // return
  16194. return P._asyncReturn($async$returnValue, $async$completer);
  16195. case 2:
  16196. // rethrow
  16197. return P._asyncRethrow($async$currentError, $async$completer);
  16198. }
  16199. });
  16200. return P._asyncStartSync($async$main, $async$completer);
  16201. },
  16202. _loadVersion: function() {
  16203. var $async$goto = 0,
  16204. $async$completer = P._makeAsyncAwaitCompleter(type$.String),
  16205. $async$returnValue;
  16206. var $async$_loadVersion = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  16207. if ($async$errorCode === 1)
  16208. return P._asyncRethrow($async$result, $async$completer);
  16209. while (true)
  16210. switch ($async$goto) {
  16211. case 0:
  16212. // Function start
  16213. $async$returnValue = "1.26.8 compiled with dart2js 2.8.4";
  16214. // goto return
  16215. $async$goto = 1;
  16216. break;
  16217. case 1:
  16218. // return
  16219. return P._asyncReturn($async$returnValue, $async$completer);
  16220. }
  16221. });
  16222. return P._asyncStartSync($async$_loadVersion, $async$completer);
  16223. },
  16224. main_printError: function main_printError(t0) {
  16225. this._box_0 = t0;
  16226. },
  16227. main_closure: function main_closure(t0, t1) {
  16228. this._box_0 = t0;
  16229. this.destination = t1;
  16230. },
  16231. SassParser0: function SassParser0(t0, t1, t2) {
  16232. var _ = this;
  16233. _._sass0$_currentIndentation = 0;
  16234. _._sass0$_spaces = _._sass0$_nextIndentationEnd = _._sass0$_nextIndentation = null;
  16235. _._stylesheet0$_isUseAllowed = true;
  16236. _._stylesheet0$_inMixin = false;
  16237. _._stylesheet0$_mixinHasContent = null;
  16238. _._stylesheet0$_inParentheses = _._stylesheet0$_inStyleRule = _._stylesheet0$_inUnknownAtRule = _._stylesheet0$_inControlDirective = _._stylesheet0$_inContentBlock = false;
  16239. _._stylesheet0$_globalVariables = t0;
  16240. _.lastSilentComment = null;
  16241. _.scanner = t1;
  16242. _.logger = t2;
  16243. },
  16244. SassParser_children_closure0: function SassParser_children_closure0(t0, t1, t2) {
  16245. this.$this = t0;
  16246. this.children = t1;
  16247. this.child = t2;
  16248. }
  16249. },
  16250. M = {_DelegatingIterableBase: function _DelegatingIterableBase() {
  16251. }, DelegatingIterable: function DelegatingIterable() {
  16252. }, DelegatingSet: function DelegatingSet(t0, t1) {
  16253. this._base = t0;
  16254. this.$ti = t1;
  16255. }, MapKeySet: function MapKeySet(t0, t1) {
  16256. this._baseMap = t0;
  16257. this.$ti = t1;
  16258. }, _MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin: function _MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin() {
  16259. },
  16260. Context_Context: function(style) {
  16261. var current = style == null ? D.current() : ".";
  16262. if (style == null)
  16263. style = $.$get$Style_platform();
  16264. return new M.Context(style, current);
  16265. },
  16266. _parseUri: function(uri) {
  16267. if (typeof uri == "string")
  16268. return P.Uri_parse(uri);
  16269. if (type$.Uri._is(uri))
  16270. return uri;
  16271. throw H.wrapException(P.ArgumentError$value(uri, "uri", "Value must be a String or a Uri"));
  16272. },
  16273. _validateArgList: function(method, args) {
  16274. var numArgs, i, numArgs0, message, t1, t2;
  16275. for (numArgs = args.length, i = 1; i < numArgs; ++i) {
  16276. if (args[i] == null || args[i - 1] != null)
  16277. continue;
  16278. for (; numArgs >= 1; numArgs = numArgs0) {
  16279. numArgs0 = numArgs - 1;
  16280. if (args[numArgs0] != null)
  16281. break;
  16282. }
  16283. message = new P.StringBuffer("");
  16284. t1 = method + "(";
  16285. message._contents = t1;
  16286. t2 = H.SubListIterable$(args, 0, numArgs, H._arrayInstanceType(args)._precomputed1);
  16287. t2 = t1 + new H.MappedListIterable(t2, new M._validateArgList_closure(), t2.$ti._eval$1("MappedListIterable<ListIterable.E,String>")).join$1(0, ", ");
  16288. message._contents = t2;
  16289. message._contents = t2 + ("): part " + (i - 1) + " was null, but part " + i + " was not.");
  16290. throw H.wrapException(P.ArgumentError$(message.toString$0(0)));
  16291. }
  16292. },
  16293. Context: function Context(t0, t1) {
  16294. this.style = t0;
  16295. this._context$_current = t1;
  16296. },
  16297. Context_join_closure: function Context_join_closure() {
  16298. },
  16299. Context_joinAll_closure: function Context_joinAll_closure() {
  16300. },
  16301. Context_split_closure: function Context_split_closure() {
  16302. },
  16303. _validateArgList_closure: function _validateArgList_closure() {
  16304. },
  16305. _PathDirection: function _PathDirection(t0) {
  16306. this.name = t0;
  16307. },
  16308. _PathRelation: function _PathRelation(t0) {
  16309. this.name = t0;
  16310. },
  16311. CallableDeclaration: function CallableDeclaration() {
  16312. },
  16313. FunctionRule: function FunctionRule(t0, t1, t2, t3, t4) {
  16314. var _ = this;
  16315. _.name = t0;
  16316. _.$arguments = t1;
  16317. _.span = t2;
  16318. _.children = t3;
  16319. _.hasDeclarations = t4;
  16320. },
  16321. ParentStatement: function ParentStatement() {
  16322. },
  16323. ParentStatement_closure: function ParentStatement_closure() {
  16324. },
  16325. ParentStatement__closure: function ParentStatement__closure() {
  16326. },
  16327. SupportsNegation: function SupportsNegation(t0, t1) {
  16328. this.condition = t0;
  16329. this.span = t1;
  16330. },
  16331. ParentSelector: function ParentSelector(t0) {
  16332. this.suffix = t0;
  16333. },
  16334. SimpleSelector: function SimpleSelector() {
  16335. },
  16336. Importer: function Importer() {
  16337. },
  16338. StylesheetNode$_: function(_stylesheet, importer, canonicalUrl, allUpstream) {
  16339. var t1 = new M.StylesheetNode(_stylesheet, importer, canonicalUrl, allUpstream.item1, allUpstream.item2, P.LinkedHashSet_LinkedHashSet$_empty(type$.StylesheetNode));
  16340. t1.StylesheetNode$_$4(_stylesheet, importer, canonicalUrl, allUpstream);
  16341. return t1;
  16342. },
  16343. StylesheetGraph: function StylesheetGraph(t0, t1, t2) {
  16344. this._nodes = t0;
  16345. this.importCache = t1;
  16346. this._transitiveModificationTimes = t2;
  16347. },
  16348. StylesheetGraph_modifiedSince_transitiveModificationTime: function StylesheetGraph_modifiedSince_transitiveModificationTime(t0) {
  16349. this.$this = t0;
  16350. },
  16351. StylesheetGraph_modifiedSince_transitiveModificationTime_closure: function StylesheetGraph_modifiedSince_transitiveModificationTime_closure(t0, t1) {
  16352. this.node = t0;
  16353. this.transitiveModificationTime = t1;
  16354. },
  16355. StylesheetGraph__add_closure: function StylesheetGraph__add_closure(t0, t1, t2, t3) {
  16356. var _ = this;
  16357. _.$this = t0;
  16358. _.url = t1;
  16359. _.baseImporter = t2;
  16360. _.baseUrl = t3;
  16361. },
  16362. StylesheetGraph_addCanonical_closure: function StylesheetGraph_addCanonical_closure(t0, t1, t2, t3) {
  16363. var _ = this;
  16364. _.$this = t0;
  16365. _.importer = t1;
  16366. _.canonicalUrl = t2;
  16367. _.originalUrl = t3;
  16368. },
  16369. StylesheetGraph_reload_closure: function StylesheetGraph_reload_closure(t0, t1, t2) {
  16370. this.$this = t0;
  16371. this.node = t1;
  16372. this.canonicalUrl = t2;
  16373. },
  16374. StylesheetGraph__recanonicalizeImportsForNode_closure: function StylesheetGraph__recanonicalizeImportsForNode_closure(t0, t1, t2, t3, t4, t5) {
  16375. var _ = this;
  16376. _.$this = t0;
  16377. _.importer = t1;
  16378. _.canonicalUrl = t2;
  16379. _.node = t3;
  16380. _.forImport = t4;
  16381. _.newMap = t5;
  16382. },
  16383. StylesheetGraph__nodeFor_closure: function StylesheetGraph__nodeFor_closure(t0, t1, t2, t3, t4) {
  16384. var _ = this;
  16385. _.$this = t0;
  16386. _.url = t1;
  16387. _.baseImporter = t2;
  16388. _.baseUrl = t3;
  16389. _.forImport = t4;
  16390. },
  16391. StylesheetGraph__nodeFor_closure0: function StylesheetGraph__nodeFor_closure0(t0, t1, t2, t3) {
  16392. var _ = this;
  16393. _.$this = t0;
  16394. _.importer = t1;
  16395. _.canonicalUrl = t2;
  16396. _.resolvedUrl = t3;
  16397. },
  16398. StylesheetNode: function StylesheetNode(t0, t1, t2, t3, t4, t5) {
  16399. var _ = this;
  16400. _._stylesheet_graph$_stylesheet = t0;
  16401. _.importer = t1;
  16402. _.canonicalUrl = t2;
  16403. _._upstream = t3;
  16404. _._upstreamImports = t4;
  16405. _._downstream = t5;
  16406. },
  16407. Syntax_forPath: function(path) {
  16408. switch (X.ParsedPath_ParsedPath$parse(path, $.$get$context().style)._splitExtension$1(1)[1]) {
  16409. case ".sass":
  16410. return C.Syntax_Sass;
  16411. case ".css":
  16412. return C.Syntax_CSS;
  16413. default:
  16414. return C.Syntax_SCSS;
  16415. }
  16416. },
  16417. Syntax: function Syntax(t0) {
  16418. this._syntax$_name = t0;
  16419. },
  16420. CallableDeclaration0: function CallableDeclaration0() {
  16421. },
  16422. FunctionRule0: function FunctionRule0(t0, t1, t2, t3, t4) {
  16423. var _ = this;
  16424. _.name = t0;
  16425. _.$arguments = t1;
  16426. _.span = t2;
  16427. _.children = t3;
  16428. _.hasDeclarations = t4;
  16429. },
  16430. Importer0: function Importer0() {
  16431. },
  16432. SupportsNegation0: function SupportsNegation0(t0, t1) {
  16433. this.condition = t0;
  16434. this.span = t1;
  16435. },
  16436. ParentSelector0: function ParentSelector0(t0) {
  16437. this.suffix = t0;
  16438. },
  16439. ParentStatement0: function ParentStatement0() {
  16440. },
  16441. ParentStatement_closure0: function ParentStatement_closure0() {
  16442. },
  16443. ParentStatement__closure0: function ParentStatement__closure0() {
  16444. },
  16445. SimpleSelector0: function SimpleSelector0() {
  16446. },
  16447. Syntax_forPath0: function(path) {
  16448. switch (X.ParsedPath_ParsedPath$parse(path, $.$get$context().style)._splitExtension$1(1)[1]) {
  16449. case ".sass":
  16450. return C.Syntax_Sass0;
  16451. case ".css":
  16452. return C.Syntax_CSS0;
  16453. default:
  16454. return C.Syntax_SCSS0;
  16455. }
  16456. },
  16457. Syntax0: function Syntax0(t0) {
  16458. this._syntax0$_name = t0;
  16459. }
  16460. },
  16461. X = {
  16462. ParsedPath_ParsedPath$parse: function(path, style) {
  16463. var t1, parts, separators, start, i,
  16464. root = style.getRoot$1(path),
  16465. isRootRelative = style.isRootRelative$1(path);
  16466. if (root != null)
  16467. path = J.substring$1$s(path, root.length);
  16468. t1 = type$.JSArray_String;
  16469. parts = H.setRuntimeTypeInfo([], t1);
  16470. separators = H.setRuntimeTypeInfo([], t1);
  16471. t1 = path.length;
  16472. if (t1 !== 0 && style.isSeparator$1(C.JSString_methods._codeUnitAt$1(path, 0))) {
  16473. separators.push(path[0]);
  16474. start = 1;
  16475. } else {
  16476. separators.push("");
  16477. start = 0;
  16478. }
  16479. for (i = start; i < t1; ++i)
  16480. if (style.isSeparator$1(C.JSString_methods._codeUnitAt$1(path, i))) {
  16481. parts.push(C.JSString_methods.substring$2(path, start, i));
  16482. separators.push(path[i]);
  16483. start = i + 1;
  16484. }
  16485. if (start < t1) {
  16486. parts.push(C.JSString_methods.substring$1(path, start));
  16487. separators.push("");
  16488. }
  16489. return new X.ParsedPath(style, root, isRootRelative, parts, separators);
  16490. },
  16491. ParsedPath: function ParsedPath(t0, t1, t2, t3, t4) {
  16492. var _ = this;
  16493. _.style = t0;
  16494. _.root = t1;
  16495. _.isRootRelative = t2;
  16496. _.parts = t3;
  16497. _.separators = t4;
  16498. },
  16499. ParsedPath_normalize_closure: function ParsedPath_normalize_closure(t0) {
  16500. this.$this = t0;
  16501. },
  16502. ParsedPath__splitExtension_closure: function ParsedPath__splitExtension_closure() {
  16503. },
  16504. ParsedPath__splitExtension_closure0: function ParsedPath__splitExtension_closure0() {
  16505. },
  16506. PathException$: function(message) {
  16507. return new X.PathException(message);
  16508. },
  16509. PathException: function PathException(t0) {
  16510. this.message = t0;
  16511. },
  16512. ModifiableCssStyleRule$: function(selector, span, originalSelector) {
  16513. var t1 = originalSelector == null ? selector.value : originalSelector,
  16514. t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
  16515. return new X.ModifiableCssStyleRule(selector, t1, span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode), t2);
  16516. },
  16517. ModifiableCssStyleRule: function ModifiableCssStyleRule(t0, t1, t2, t3, t4) {
  16518. var _ = this;
  16519. _.selector = t0;
  16520. _.originalSelector = t1;
  16521. _.span = t2;
  16522. _.children = t3;
  16523. _._children = t4;
  16524. _._indexInParent = _._parent = null;
  16525. _.isGroupEnd = false;
  16526. },
  16527. ArgumentInvocation$: function(positional, named, span, keywordRest, rest) {
  16528. var t1 = type$.Expression;
  16529. return new X.ArgumentInvocation(P.List_List$unmodifiable(positional, t1), H.ConstantMap_ConstantMap$from(named, type$.String, t1), rest, keywordRest, span);
  16530. },
  16531. ArgumentInvocation: function ArgumentInvocation(t0, t1, t2, t3, t4) {
  16532. var _ = this;
  16533. _.positional = t0;
  16534. _.named = t1;
  16535. _.rest = t2;
  16536. _.keywordRest = t3;
  16537. _.span = t4;
  16538. },
  16539. UnaryOperationExpression: function UnaryOperationExpression(t0, t1, t2) {
  16540. this.operator = t0;
  16541. this.operand = t1;
  16542. this.span = t2;
  16543. },
  16544. UnaryOperator: function UnaryOperator(t0, t1) {
  16545. this.name = t0;
  16546. this.operator = t1;
  16547. },
  16548. Interpolation$: function(contents, span) {
  16549. var t1 = new X.Interpolation(P.List_List$unmodifiable(contents, type$.Object), span);
  16550. t1.Interpolation$2(contents, span);
  16551. return t1;
  16552. },
  16553. Interpolation: function Interpolation(t0, t1) {
  16554. this.contents = t0;
  16555. this.span = t1;
  16556. },
  16557. Interpolation_toString_closure: function Interpolation_toString_closure() {
  16558. },
  16559. ExtendRule: function ExtendRule(t0, t1, t2) {
  16560. this.selector = t0;
  16561. this.isOptional = t1;
  16562. this.span = t2;
  16563. },
  16564. StyleRule: function StyleRule(t0, t1, t2, t3) {
  16565. var _ = this;
  16566. _.selector = t0;
  16567. _.span = t1;
  16568. _.children = t2;
  16569. _.hasDeclarations = t3;
  16570. },
  16571. SupportsInterpolation: function SupportsInterpolation(t0, t1) {
  16572. this.expression = t0;
  16573. this.span = t1;
  16574. },
  16575. ClassSelector: function ClassSelector(t0) {
  16576. this.name = t0;
  16577. },
  16578. CompoundSelector$: function(components) {
  16579. var t1 = P.List_List$unmodifiable(components, type$.SimpleSelector);
  16580. if (t1.length === 0)
  16581. H.throwExpression(P.ArgumentError$("components may not be empty."));
  16582. return new X.CompoundSelector(t1);
  16583. },
  16584. CompoundSelector: function CompoundSelector(t0) {
  16585. this.components = t0;
  16586. this._compound$_maxSpecificity = this._compound$_minSpecificity = null;
  16587. },
  16588. CompoundSelector_isInvisible_closure: function CompoundSelector_isInvisible_closure() {
  16589. },
  16590. compileAsync: function(path, charset, importCache, logger, sourceMap, style, syntax) {
  16591. var $async$goto = 0,
  16592. $async$completer = P._makeAsyncAwaitCompleter(type$.CompileResult),
  16593. $async$returnValue, t2, stylesheet, t1;
  16594. var $async$compileAsync = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  16595. if ($async$errorCode === 1)
  16596. return P._asyncRethrow($async$result, $async$completer);
  16597. while (true)
  16598. switch ($async$goto) {
  16599. case 0:
  16600. // Function start
  16601. t1 = syntax === M.Syntax_forPath(path);
  16602. $async$goto = t1 ? 3 : 5;
  16603. break;
  16604. case 3:
  16605. // then
  16606. t1 = D.absolute(".");
  16607. t2 = $.$get$context();
  16608. $async$goto = 6;
  16609. return P._asyncAwait(importCache.importCanonical$3(new F.FilesystemImporter(t1), t2.toUri$1(t2.canonicalize$1(path)), t2.toUri$1(path)), $async$compileAsync);
  16610. case 6:
  16611. // returning from await.
  16612. stylesheet = $async$result;
  16613. // goto join
  16614. $async$goto = 4;
  16615. break;
  16616. case 5:
  16617. // else
  16618. t1 = B.readFile(path);
  16619. stylesheet = V.Stylesheet_Stylesheet$parse(t1, syntax, logger, $.$get$context().toUri$1(path));
  16620. case 4:
  16621. // join
  16622. $async$goto = 7;
  16623. return P._asyncAwait(X._compileStylesheet0(stylesheet, logger, importCache, null, new F.FilesystemImporter(D.absolute(".")), null, style, true, null, null, sourceMap, charset), $async$compileAsync);
  16624. case 7:
  16625. // returning from await.
  16626. $async$returnValue = $async$result;
  16627. // goto return
  16628. $async$goto = 1;
  16629. break;
  16630. case 1:
  16631. // return
  16632. return P._asyncReturn($async$returnValue, $async$completer);
  16633. }
  16634. });
  16635. return P._asyncStartSync($async$compileAsync, $async$completer);
  16636. },
  16637. compileStringAsync: function(source, charset, importCache, importer, logger, sourceMap, style, syntax) {
  16638. var $async$goto = 0,
  16639. $async$completer = P._makeAsyncAwaitCompleter(type$.CompileResult),
  16640. $async$returnValue, stylesheet;
  16641. var $async$compileStringAsync = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  16642. if ($async$errorCode === 1)
  16643. return P._asyncRethrow($async$result, $async$completer);
  16644. while (true)
  16645. switch ($async$goto) {
  16646. case 0:
  16647. // Function start
  16648. stylesheet = V.Stylesheet_Stylesheet$parse(source, syntax, logger, null);
  16649. $async$returnValue = X._compileStylesheet0(stylesheet, logger, importCache, null, importer, null, style, true, null, null, sourceMap, charset);
  16650. // goto return
  16651. $async$goto = 1;
  16652. break;
  16653. case 1:
  16654. // return
  16655. return P._asyncReturn($async$returnValue, $async$completer);
  16656. }
  16657. });
  16658. return P._asyncStartSync($async$compileStringAsync, $async$completer);
  16659. },
  16660. _compileStylesheet0: function(stylesheet, logger, importCache, nodeImporter, importer, functions, style, useSpaces, indentWidth, lineFeed, sourceMap, charset) {
  16661. var $async$goto = 0,
  16662. $async$completer = P._makeAsyncAwaitCompleter(type$.CompileResult),
  16663. $async$returnValue, serializeResult, t1, $async$temp1;
  16664. var $async$_compileStylesheet0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  16665. if ($async$errorCode === 1)
  16666. return P._asyncRethrow($async$result, $async$completer);
  16667. while (true)
  16668. switch ($async$goto) {
  16669. case 0:
  16670. // Function start
  16671. $async$temp1 = N;
  16672. $async$goto = 3;
  16673. return P._asyncAwait(E._EvaluateVisitor$0(functions, importCache, logger, nodeImporter, sourceMap).run$2(0, importer, stylesheet), $async$_compileStylesheet0);
  16674. case 3:
  16675. // returning from await.
  16676. serializeResult = $async$temp1.serialize($async$result.stylesheet, charset, indentWidth, false, lineFeed, sourceMap, style, true);
  16677. t1 = serializeResult.sourceMap;
  16678. if (t1 != null && true)
  16679. B.mapInPlace(t1.urls, new X._compileStylesheet_closure0(stylesheet, importCache));
  16680. $async$returnValue = new X.CompileResult(serializeResult);
  16681. // goto return
  16682. $async$goto = 1;
  16683. break;
  16684. case 1:
  16685. // return
  16686. return P._asyncReturn($async$returnValue, $async$completer);
  16687. }
  16688. });
  16689. return P._asyncStartSync($async$_compileStylesheet0, $async$completer);
  16690. },
  16691. _compileStylesheet_closure0: function _compileStylesheet_closure0(t0, t1) {
  16692. this.stylesheet = t0;
  16693. this.importCache = t1;
  16694. },
  16695. CompileResult: function CompileResult(t0) {
  16696. this._serialize = t0;
  16697. },
  16698. closure70: function closure70() {
  16699. },
  16700. closure71: function closure71() {
  16701. },
  16702. SourceSpanWithContext$: function(start, end, text, _context) {
  16703. var t1 = new X.SourceSpanWithContext(_context, start, end, text);
  16704. t1.SourceSpanBase$3(start, end, text);
  16705. if (!C.JSString_methods.contains$1(_context, text))
  16706. H.throwExpression(P.ArgumentError$('The context line "' + _context + '" must contain "' + text + '".'));
  16707. if (B.findLineStart(_context, text, start.get$column()) == null)
  16708. H.throwExpression(P.ArgumentError$('The span text "' + text + '" must start at column ' + (start.get$column() + 1) + ' in a line within "' + _context + '".'));
  16709. return t1;
  16710. },
  16711. SourceSpanWithContext: function SourceSpanWithContext(t0, t1, t2, t3) {
  16712. var _ = this;
  16713. _._context = t0;
  16714. _.start = t1;
  16715. _.end = t2;
  16716. _.text = t3;
  16717. },
  16718. StringScanner$: function(string, position, sourceUrl) {
  16719. var t1 = typeof sourceUrl == "string" ? P.Uri_parse(sourceUrl) : type$.Uri._as(sourceUrl);
  16720. return new X.StringScanner(t1, string);
  16721. },
  16722. StringScanner: function StringScanner(t0, t1) {
  16723. var _ = this;
  16724. _.sourceUrl = t0;
  16725. _.string = t1;
  16726. _._string_scanner$_position = 0;
  16727. _._lastMatchPosition = _._lastMatch = null;
  16728. },
  16729. ArgumentInvocation$0: function(positional, named, span, keywordRest, rest) {
  16730. var t1 = type$.Expression_2;
  16731. return new X.ArgumentInvocation0(P.List_List$unmodifiable(positional, t1), H.ConstantMap_ConstantMap$from(named, type$.String, t1), rest, keywordRest, span);
  16732. },
  16733. ArgumentInvocation0: function ArgumentInvocation0(t0, t1, t2, t3, t4) {
  16734. var _ = this;
  16735. _.positional = t0;
  16736. _.named = t1;
  16737. _.rest = t2;
  16738. _.keywordRest = t3;
  16739. _.span = t4;
  16740. },
  16741. compileAsync0: function(path, functions, indentWidth, lineFeed, nodeImporter, sourceMap, style, syntax, useSpaces) {
  16742. var $async$goto = 0,
  16743. $async$completer = P._makeAsyncAwaitCompleter(type$.CompileResult_2),
  16744. $async$returnValue, t1, t2, stylesheet;
  16745. var $async$compileAsync0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  16746. if ($async$errorCode === 1)
  16747. return P._asyncRethrow($async$result, $async$completer);
  16748. while (true)
  16749. switch ($async$goto) {
  16750. case 0:
  16751. // Function start
  16752. t1 = B.readFile0(path);
  16753. t2 = syntax == null ? M.Syntax_forPath0(path) : syntax;
  16754. stylesheet = V.Stylesheet_Stylesheet$parse0(t1, t2, null, $.$get$context().toUri$1(path));
  16755. $async$goto = 3;
  16756. return P._asyncAwait(X._compileStylesheet2(stylesheet, null, null, nodeImporter, new F.FilesystemImporter0(D.absolute(".")), functions, style, useSpaces, indentWidth, lineFeed, sourceMap, true), $async$compileAsync0);
  16757. case 3:
  16758. // returning from await.
  16759. $async$returnValue = $async$result;
  16760. // goto return
  16761. $async$goto = 1;
  16762. break;
  16763. case 1:
  16764. // return
  16765. return P._asyncReturn($async$returnValue, $async$completer);
  16766. }
  16767. });
  16768. return P._asyncStartSync($async$compileAsync0, $async$completer);
  16769. },
  16770. compileStringAsync0: function(source, functions, indentWidth, lineFeed, nodeImporter, sourceMap, style, syntax, url, useSpaces) {
  16771. var $async$goto = 0,
  16772. $async$completer = P._makeAsyncAwaitCompleter(type$.CompileResult_2),
  16773. $async$returnValue, stylesheet, t1;
  16774. var $async$compileStringAsync0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  16775. if ($async$errorCode === 1)
  16776. return P._asyncRethrow($async$result, $async$completer);
  16777. while (true)
  16778. switch ($async$goto) {
  16779. case 0:
  16780. // Function start
  16781. stylesheet = V.Stylesheet_Stylesheet$parse0(source, syntax == null ? C.Syntax_SCSS0 : syntax, null, url);
  16782. t1 = D.absolute(".");
  16783. $async$returnValue = X._compileStylesheet2(stylesheet, null, null, nodeImporter, new F.FilesystemImporter0(t1), functions, style, useSpaces, indentWidth, lineFeed, sourceMap, true);
  16784. // goto return
  16785. $async$goto = 1;
  16786. break;
  16787. case 1:
  16788. // return
  16789. return P._asyncReturn($async$returnValue, $async$completer);
  16790. }
  16791. });
  16792. return P._asyncStartSync($async$compileStringAsync0, $async$completer);
  16793. },
  16794. _compileStylesheet2: function(stylesheet, logger, importCache, nodeImporter, importer, functions, style, useSpaces, indentWidth, lineFeed, sourceMap, charset) {
  16795. var $async$goto = 0,
  16796. $async$completer = P._makeAsyncAwaitCompleter(type$.CompileResult_2),
  16797. $async$returnValue, evaluateResult, serializeResult, t1;
  16798. var $async$_compileStylesheet2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  16799. if ($async$errorCode === 1)
  16800. return P._asyncRethrow($async$result, $async$completer);
  16801. while (true)
  16802. switch ($async$goto) {
  16803. case 0:
  16804. // Function start
  16805. $async$goto = 3;
  16806. return P._asyncAwait(E._EvaluateVisitor$2(functions, importCache, logger, nodeImporter, sourceMap).run$2(0, importer, stylesheet), $async$_compileStylesheet2);
  16807. case 3:
  16808. // returning from await.
  16809. evaluateResult = $async$result;
  16810. serializeResult = N.serialize0(evaluateResult.stylesheet, true, indentWidth, false, lineFeed, sourceMap, style, useSpaces);
  16811. t1 = serializeResult.sourceMap;
  16812. if (t1 != null && importCache != null)
  16813. B.mapInPlace0(t1.urls, new X._compileStylesheet_closure2(stylesheet, importCache));
  16814. $async$returnValue = new X.CompileResult0(evaluateResult, serializeResult);
  16815. // goto return
  16816. $async$goto = 1;
  16817. break;
  16818. case 1:
  16819. // return
  16820. return P._asyncReturn($async$returnValue, $async$completer);
  16821. }
  16822. });
  16823. return P._asyncStartSync($async$_compileStylesheet2, $async$completer);
  16824. },
  16825. _compileStylesheet_closure2: function _compileStylesheet_closure2(t0, t1) {
  16826. this.stylesheet = t0;
  16827. this.importCache = t1;
  16828. },
  16829. CompileResult0: function CompileResult0(t0, t1) {
  16830. this._evaluate = t0;
  16831. this._async_compile$_serialize = t1;
  16832. },
  16833. ClassSelector0: function ClassSelector0(t0) {
  16834. this.name = t0;
  16835. },
  16836. closure178: function closure178() {
  16837. },
  16838. closure179: function closure179() {
  16839. },
  16840. CompoundSelector$0: function(components) {
  16841. var t1 = P.List_List$unmodifiable(components, type$.SimpleSelector_2);
  16842. if (t1.length === 0)
  16843. H.throwExpression(P.ArgumentError$("components may not be empty."));
  16844. return new X.CompoundSelector0(t1);
  16845. },
  16846. CompoundSelector0: function CompoundSelector0(t0) {
  16847. this.components = t0;
  16848. this._compound0$_maxSpecificity = this._compound0$_minSpecificity = null;
  16849. },
  16850. CompoundSelector_isInvisible_closure0: function CompoundSelector_isInvisible_closure0() {
  16851. },
  16852. ExtendRule0: function ExtendRule0(t0, t1, t2) {
  16853. this.selector = t0;
  16854. this.isOptional = t1;
  16855. this.span = t2;
  16856. },
  16857. Interpolation$0: function(contents, span) {
  16858. var t1 = new X.Interpolation0(P.List_List$unmodifiable(contents, type$.Object), span);
  16859. t1.Interpolation$20(contents, span);
  16860. return t1;
  16861. },
  16862. Interpolation0: function Interpolation0(t0, t1) {
  16863. this.contents = t0;
  16864. this.span = t1;
  16865. },
  16866. Interpolation_toString_closure0: function Interpolation_toString_closure0() {
  16867. },
  16868. SupportsInterpolation0: function SupportsInterpolation0(t0, t1) {
  16869. this.expression = t0;
  16870. this.span = t1;
  16871. },
  16872. ModifiableCssStyleRule$0: function(selector, span, originalSelector) {
  16873. var t1 = originalSelector == null ? selector.value : originalSelector,
  16874. t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
  16875. return new X.ModifiableCssStyleRule0(selector, t1, span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode_2), t2);
  16876. },
  16877. ModifiableCssStyleRule0: function ModifiableCssStyleRule0(t0, t1, t2, t3, t4) {
  16878. var _ = this;
  16879. _.selector = t0;
  16880. _.originalSelector = t1;
  16881. _.span = t2;
  16882. _.children = t3;
  16883. _._node2$_children = t4;
  16884. _._node2$_indexInParent = _._node2$_parent = null;
  16885. _.isGroupEnd = false;
  16886. },
  16887. StyleRule0: function StyleRule0(t0, t1, t2, t3) {
  16888. var _ = this;
  16889. _.selector = t0;
  16890. _.span = t1;
  16891. _.children = t2;
  16892. _.hasDeclarations = t3;
  16893. },
  16894. UnaryOperationExpression0: function UnaryOperationExpression0(t0, t1, t2) {
  16895. this.operator = t0;
  16896. this.operand = t1;
  16897. this.span = t2;
  16898. },
  16899. UnaryOperator0: function UnaryOperator0(t0, t1) {
  16900. this.name = t0;
  16901. this.operator = t1;
  16902. },
  16903. _combine: function(hash, value) {
  16904. hash = 536870911 & hash + value;
  16905. hash = 536870911 & hash + ((524287 & hash) << 10);
  16906. return hash ^ hash >>> 6;
  16907. },
  16908. _finish: function(hash) {
  16909. hash = 536870911 & hash + ((67108863 & hash) << 3);
  16910. hash ^= hash >>> 11;
  16911. return 536870911 & hash + ((16383 & hash) << 15);
  16912. }
  16913. },
  16914. K = {
  16915. PathMap__create: function(context, $V) {
  16916. var t1 = {};
  16917. t1.context = context;
  16918. t1.context = $.$get$context();
  16919. return P.LinkedHashMap_LinkedHashMap(new K.PathMap__create_closure(t1), new K.PathMap__create_closure0(t1), new K.PathMap__create_closure1(), type$.String, $V);
  16920. },
  16921. PathMap: function PathMap(t0, t1) {
  16922. this._collection$_map = t0;
  16923. this.$ti = t1;
  16924. },
  16925. PathMap__create_closure: function PathMap__create_closure(t0) {
  16926. this._box_0 = t0;
  16927. },
  16928. PathMap__create_closure0: function PathMap__create_closure0(t0) {
  16929. this._box_0 = t0;
  16930. },
  16931. PathMap__create_closure1: function PathMap__create_closure1() {
  16932. },
  16933. ColorExpression: function ColorExpression(t0) {
  16934. this.value = t0;
  16935. },
  16936. _functionString: function($name, $arguments) {
  16937. return new D.SassString($name + "(" + J.map$1$1$ax($arguments, new K._functionString_closure(), type$.String).join$1(0, ", ") + ")", false);
  16938. },
  16939. _removedColorFunction: function($name, argument, negative) {
  16940. var t1 = S.SpanScanner$("@function " + $name + "($color, $amount) {", "sass:color");
  16941. return new Q.BuiltInCallable($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, C.StderrLogger_false).parseArgumentDeclaration$0(), new K._removedColorFunction_closure($name, argument, negative), type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value));
  16942. },
  16943. _rgb: function($name, $arguments) {
  16944. var t2, red, green, blue, t3, _null = null,
  16945. t1 = J.getInterceptor$asx($arguments),
  16946. alpha = t1.get$length($arguments) > 3 ? t1.$index($arguments, 3) : _null;
  16947. if (!t1.$index($arguments, 0).get$isSpecialNumber())
  16948. if (!t1.$index($arguments, 1).get$isSpecialNumber())
  16949. if (!t1.$index($arguments, 2).get$isSpecialNumber()) {
  16950. t2 = alpha == null ? _null : alpha.get$isSpecialNumber();
  16951. t2 = t2 === true;
  16952. } else
  16953. t2 = true;
  16954. else
  16955. t2 = true;
  16956. else
  16957. t2 = true;
  16958. if (t2)
  16959. return K._functionString($name, $arguments);
  16960. red = t1.$index($arguments, 0).assertNumber$1("red");
  16961. green = t1.$index($arguments, 1).assertNumber$1("green");
  16962. blue = t1.$index($arguments, 2).assertNumber$1("blue");
  16963. t1 = T.fuzzyRound(K._percentageOrUnitless(red, 255, "red"));
  16964. t2 = T.fuzzyRound(K._percentageOrUnitless(green, 255, "green"));
  16965. t3 = T.fuzzyRound(K._percentageOrUnitless(blue, 255, "blue"));
  16966. return K.SassColor$rgb(t1, t2, t3, alpha == null ? _null : K._percentageOrUnitless(alpha.assertNumber$1("alpha"), 1, "alpha"), _null);
  16967. },
  16968. _rgbTwoArg: function($name, $arguments) {
  16969. var first, t2, color,
  16970. t1 = J.getInterceptor$asx($arguments);
  16971. if (t1.$index($arguments, 0).get$isVar())
  16972. return K._functionString($name, $arguments);
  16973. else if (t1.$index($arguments, 1).get$isVar()) {
  16974. first = t1.$index($arguments, 0);
  16975. if (first instanceof K.SassColor) {
  16976. t2 = $name + "(" + H.S(first.get$red()) + ", " + H.S(first.get$green()) + ", " + H.S(first.get$blue()) + ", ";
  16977. t1 = t1.$index($arguments, 1);
  16978. t1.toString;
  16979. return new D.SassString(t2 + N.serializeValue0(t1, false, true) + ")", false);
  16980. } else
  16981. return K._functionString($name, $arguments);
  16982. } else if (t1.$index($arguments, 1).get$isSpecialNumber()) {
  16983. color = t1.$index($arguments, 0).assertColor$1("color");
  16984. t2 = $name + "(" + H.S(color.get$red()) + ", " + H.S(color.get$green()) + ", " + H.S(color.get$blue()) + ", ";
  16985. t1 = t1.$index($arguments, 1);
  16986. t1.toString;
  16987. return new D.SassString(t2 + N.serializeValue0(t1, false, true) + ")", false);
  16988. }
  16989. return t1.$index($arguments, 0).assertColor$1("color").changeAlpha$1(K._percentageOrUnitless(t1.$index($arguments, 1).assertNumber$1("alpha"), 1, "alpha"));
  16990. },
  16991. _hsl: function($name, $arguments) {
  16992. var t2, hue, saturation, lightness, t3,
  16993. t1 = J.getInterceptor$asx($arguments),
  16994. alpha = t1.get$length($arguments) > 3 ? t1.$index($arguments, 3) : null;
  16995. if (!t1.$index($arguments, 0).get$isSpecialNumber())
  16996. if (!t1.$index($arguments, 1).get$isSpecialNumber())
  16997. if (!t1.$index($arguments, 2).get$isSpecialNumber()) {
  16998. t2 = alpha == null ? null : alpha.get$isSpecialNumber();
  16999. t2 = t2 === true;
  17000. } else
  17001. t2 = true;
  17002. else
  17003. t2 = true;
  17004. else
  17005. t2 = true;
  17006. if (t2)
  17007. return K._functionString($name, $arguments);
  17008. hue = t1.$index($arguments, 0).assertNumber$1("hue");
  17009. saturation = t1.$index($arguments, 1).assertNumber$1("saturation");
  17010. lightness = t1.$index($arguments, 2).assertNumber$1("lightness");
  17011. t1 = J.clamp$2$n(saturation.value, 0, 100);
  17012. t2 = J.clamp$2$n(lightness.value, 0, 100);
  17013. t3 = alpha == null ? null : K._percentageOrUnitless(alpha.assertNumber$1("alpha"), 1, "alpha");
  17014. return K.SassColor$hsl(hue.value, t1, t2, t3);
  17015. },
  17016. _parseChannels: function($name, argumentNames, channels) {
  17017. var isCommaSeparated, isBracketed, buffer, t1, list, maybeSlashSeparated, t2, t3,
  17018. _s17_ = "$channels must be",
  17019. _s32_ = "$channels must be an unbracketed";
  17020. if (channels.get$isVar())
  17021. return K._functionString($name, H.setRuntimeTypeInfo([channels], type$.JSArray_Value));
  17022. isCommaSeparated = channels.get$separator() === C.ListSeparator_comma;
  17023. isBracketed = channels.get$hasBrackets();
  17024. if (isCommaSeparated || isBracketed) {
  17025. buffer = new P.StringBuffer(_s17_);
  17026. if (isBracketed) {
  17027. buffer._contents = _s32_;
  17028. t1 = _s32_;
  17029. } else
  17030. t1 = _s17_;
  17031. if (isCommaSeparated) {
  17032. t1 += isBracketed ? "," : " a";
  17033. buffer._contents = t1;
  17034. t1 = buffer._contents = t1 + " space-separated";
  17035. }
  17036. buffer._contents = t1 + " list.";
  17037. throw H.wrapException(E.SassScriptException$(buffer.toString$0(0)));
  17038. }
  17039. list = channels.get$asList();
  17040. t1 = list.length;
  17041. if (t1 > 3)
  17042. throw H.wrapException(E.SassScriptException$("Only 3 elements allowed, but " + t1 + " were passed."));
  17043. else if (t1 < 3) {
  17044. if (!C.JSArray_methods.any$1(list, new K._parseChannels_closure()))
  17045. if (list.length !== 0) {
  17046. t1 = C.JSArray_methods.get$last(list);
  17047. if (t1 instanceof D.SassString)
  17048. if (t1.hasQuotes) {
  17049. t1 = t1.text;
  17050. t1 = B.startsWithIgnoreCase(t1, "var(") && J.contains$1$asx(t1, "/");
  17051. } else
  17052. t1 = false;
  17053. else
  17054. t1 = false;
  17055. } else
  17056. t1 = false;
  17057. else
  17058. t1 = true;
  17059. if (t1)
  17060. return K._functionString($name, H.setRuntimeTypeInfo([channels], type$.JSArray_Value));
  17061. else
  17062. throw H.wrapException(E.SassScriptException$("Missing element " + argumentNames[list.length] + "."));
  17063. }
  17064. maybeSlashSeparated = list[2];
  17065. if (maybeSlashSeparated instanceof T.SassNumber && maybeSlashSeparated.asSlash != null) {
  17066. t1 = list[0];
  17067. t2 = list[1];
  17068. t3 = maybeSlashSeparated.asSlash;
  17069. return H.setRuntimeTypeInfo([t1, t2, t3.item1, t3.item2], type$.JSArray_Value);
  17070. } else if (maybeSlashSeparated instanceof D.SassString && !maybeSlashSeparated.hasQuotes && J.contains$1$asx(maybeSlashSeparated.text, "/"))
  17071. return K._functionString($name, H.setRuntimeTypeInfo([channels], type$.JSArray_Value));
  17072. else
  17073. return list;
  17074. },
  17075. _percentageOrUnitless: function(number, max, $name) {
  17076. var value;
  17077. if (!(number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0))
  17078. value = number.value;
  17079. else if (number.hasUnit$1("%"))
  17080. value = max * number.value / 100;
  17081. else
  17082. throw H.wrapException(E.SassScriptException$("$" + $name + ": Expected " + number.toString$0(0) + ' to have no units or "%".'));
  17083. return J.clamp$2$n(value, 0, max);
  17084. },
  17085. _mixColors: function(color1, color2, weight) {
  17086. var weightScale = weight.valueInRange$3(0, 100, "weight") / 100,
  17087. normalizedWeight = weightScale * 2 - 1,
  17088. t1 = color1.alpha,
  17089. t2 = color2.alpha,
  17090. alphaDistance = t1 - t2,
  17091. t3 = normalizedWeight * alphaDistance,
  17092. weight1 = ((t3 === -1 ? normalizedWeight : (normalizedWeight + alphaDistance) / (1 + t3)) + 1) / 2,
  17093. weight2 = 1 - weight1;
  17094. return K.SassColor$rgb(T.fuzzyRound(color1.get$red() * weight1 + color2.get$red() * weight2), T.fuzzyRound(color1.get$green() * weight1 + color2.get$green() * weight2), T.fuzzyRound(color1.get$blue() * weight1 + color2.get$blue() * weight2), t1 * weightScale + t2 * (1 - weightScale), null);
  17095. },
  17096. _opacify: function($arguments) {
  17097. var t1 = J.getInterceptor$asx($arguments),
  17098. color = t1.$index($arguments, 0).assertColor$1("color");
  17099. return color.changeAlpha$1(C.JSNumber_methods.clamp$2(color.alpha + t1.$index($arguments, 1).assertNumber$1("amount").valueInRange$3(0, 1, "amount"), 0, 1));
  17100. },
  17101. _transparentize: function($arguments) {
  17102. var t1 = J.getInterceptor$asx($arguments),
  17103. color = t1.$index($arguments, 0).assertColor$1("color");
  17104. return color.changeAlpha$1(C.JSNumber_methods.clamp$2(color.alpha - t1.$index($arguments, 1).assertNumber$1("amount").valueInRange$3(0, 1, "amount"), 0, 1));
  17105. },
  17106. _function4: function($name, $arguments, callback) {
  17107. var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:color");
  17108. return new Q.BuiltInCallable($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, C.StderrLogger_false).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value));
  17109. },
  17110. closure43: function closure43() {
  17111. },
  17112. closure44: function closure44() {
  17113. },
  17114. closure45: function closure45() {
  17115. },
  17116. closure46: function closure46() {
  17117. },
  17118. closure47: function closure47() {
  17119. },
  17120. closure48: function closure48() {
  17121. },
  17122. closure49: function closure49() {
  17123. },
  17124. closure50: function closure50() {
  17125. },
  17126. closure51: function closure51() {
  17127. },
  17128. closure52: function closure52() {
  17129. },
  17130. closure53: function closure53() {
  17131. },
  17132. closure54: function closure54() {
  17133. },
  17134. closure55: function closure55() {
  17135. },
  17136. closure56: function closure56() {
  17137. },
  17138. closure57: function closure57() {
  17139. },
  17140. closure58: function closure58() {
  17141. },
  17142. closure59: function closure59() {
  17143. },
  17144. closure60: function closure60() {
  17145. },
  17146. closure61: function closure61() {
  17147. },
  17148. closure62: function closure62() {
  17149. },
  17150. closure63: function closure63() {
  17151. },
  17152. closure64: function closure64() {
  17153. },
  17154. closure65: function closure65() {
  17155. },
  17156. closure66: function closure66() {
  17157. },
  17158. closure67: function closure67() {
  17159. },
  17160. closure68: function closure68() {
  17161. },
  17162. _closure10: function _closure10() {
  17163. },
  17164. closure69: function closure69() {
  17165. },
  17166. closure96: function closure96() {
  17167. },
  17168. closure97: function closure97() {
  17169. },
  17170. closure98: function closure98() {
  17171. },
  17172. closure99: function closure99() {
  17173. },
  17174. _closure12: function _closure12() {
  17175. },
  17176. closure100: function closure100() {
  17177. },
  17178. closure83: function closure83() {
  17179. },
  17180. closure82: function closure82() {
  17181. },
  17182. closure81: function closure81() {
  17183. },
  17184. closure80: function closure80() {
  17185. },
  17186. closure79: function closure79() {
  17187. },
  17188. closure78: function closure78() {
  17189. },
  17190. closure77: function closure77() {
  17191. },
  17192. closure76: function closure76() {
  17193. },
  17194. closure74: function closure74() {
  17195. },
  17196. closure_getInRange0: function closure_getInRange0(t0) {
  17197. this.keywords = t0;
  17198. },
  17199. _closure9: function _closure9() {
  17200. },
  17201. closure73: function closure73() {
  17202. },
  17203. closure_getScale: function closure_getScale(t0) {
  17204. this.keywords = t0;
  17205. },
  17206. closure_scaleValue: function closure_scaleValue() {
  17207. },
  17208. _closure8: function _closure8() {
  17209. },
  17210. closure72: function closure72() {
  17211. },
  17212. closure_getInRange: function closure_getInRange(t0) {
  17213. this.keywords = t0;
  17214. },
  17215. _closure7: function _closure7() {
  17216. },
  17217. closure75: function closure75() {
  17218. },
  17219. closure_hexString: function closure_hexString() {
  17220. },
  17221. _functionString_closure: function _functionString_closure() {
  17222. },
  17223. _removedColorFunction_closure: function _removedColorFunction_closure(t0, t1, t2) {
  17224. this.name = t0;
  17225. this.argument = t1;
  17226. this.negative = t2;
  17227. },
  17228. _parseChannels_closure: function _parseChannels_closure() {
  17229. },
  17230. _fuzzyRoundIfZero: function(number) {
  17231. if (!(Math.abs(number - 0) < $.$get$epsilon()))
  17232. return number;
  17233. return C.JSNumber_methods.get$isNegative(number) ? -0.0 : 0;
  17234. },
  17235. _coerceToRad: function(number) {
  17236. var error, t1, t2, exception;
  17237. try {
  17238. t1 = type$.JSArray_String;
  17239. t2 = H.setRuntimeTypeInfo(["rad"], t1);
  17240. t1 = H.setRuntimeTypeInfo([], t1);
  17241. t2 = T.SassNumber$withUnits(number.valueInUnits$2(t2, t1), t1, t2);
  17242. return t2;
  17243. } catch (exception) {
  17244. t1 = H.unwrapException(exception);
  17245. if (t1 instanceof E.SassScriptException) {
  17246. error = t1;
  17247. if (!C.JSString_methods.startsWith$1(error.message, "Incompatible units"))
  17248. throw exception;
  17249. throw H.wrapException(E.SassScriptException$("$number: Expected " + number.toString$0(0) + " to be an angle."));
  17250. } else
  17251. throw exception;
  17252. }
  17253. },
  17254. _numberFunction: function($name, transform) {
  17255. var t1 = S.SpanScanner$("@function " + $name + "($number) {", "sass:math");
  17256. return new Q.BuiltInCallable($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, C.StderrLogger_false).parseArgumentDeclaration$0(), new K._numberFunction_closure(transform), type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value));
  17257. },
  17258. _function1: function($name, $arguments, callback) {
  17259. var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:math");
  17260. return new Q.BuiltInCallable($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, C.StderrLogger_false).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value));
  17261. },
  17262. closure25: function closure25() {
  17263. },
  17264. closure91: function closure91() {
  17265. },
  17266. closure24: function closure24() {
  17267. },
  17268. closure23: function closure23() {
  17269. },
  17270. closure22: function closure22() {
  17271. },
  17272. closure26: function closure26() {
  17273. },
  17274. closure89: function closure89() {
  17275. },
  17276. _closure11: function _closure11() {
  17277. },
  17278. closure88: function closure88() {
  17279. },
  17280. closure87: function closure87() {
  17281. },
  17282. closure85: function closure85() {
  17283. },
  17284. closure95: function closure95() {
  17285. },
  17286. closure94: function closure94() {
  17287. },
  17288. closure93: function closure93() {
  17289. },
  17290. closure92: function closure92() {
  17291. },
  17292. closure90: function closure90() {
  17293. },
  17294. closure86: function closure86() {
  17295. },
  17296. closure84: function closure84() {
  17297. },
  17298. closure18: function closure18() {
  17299. },
  17300. closure17: function closure17() {
  17301. },
  17302. closure19: function closure19() {
  17303. },
  17304. closure21: function closure21() {
  17305. },
  17306. closure20: function closure20() {
  17307. },
  17308. _numberFunction_closure: function _numberFunction_closure(t0) {
  17309. this.transform = t0;
  17310. },
  17311. LimitedMapView$safelist: function(_map, safelist, $K, $V) {
  17312. return new K.LimitedMapView(_map, safelist._base.intersection$1(new M.MapKeySet(_map, type$.MapKeySet_Object)), $K._eval$1("@<0>")._bind$1($V)._eval$1("LimitedMapView<1,2>"));
  17313. },
  17314. LimitedMapView$blocklist: function(_map, blocklist, $K, $V) {
  17315. var t2, key,
  17316. t1 = P.LinkedHashSet_LinkedHashSet($K);
  17317. for (t2 = J.get$iterator$ax(_map.get$keys()); t2.moveNext$0();) {
  17318. key = t2.get$current(t2);
  17319. if (!blocklist.contains$1(0, key))
  17320. t1.add$1(0, key);
  17321. }
  17322. return new K.LimitedMapView(_map, t1, $K._eval$1("@<0>")._bind$1($V)._eval$1("LimitedMapView<1,2>"));
  17323. },
  17324. LimitedMapView: function LimitedMapView(t0, t1, t2) {
  17325. this._limited_map_view$_map = t0;
  17326. this._limited_map_view$_keys = t1;
  17327. this.$ti = t2;
  17328. },
  17329. SassColor$rgb: function(_red, _green, _blue, alpha, originalSpan) {
  17330. var t1 = new K.SassColor(_red, _green, _blue, null, null, null, alpha == null ? 1 : T.fuzzyAssertRange(alpha, 0, 1, "alpha"), originalSpan);
  17331. P.RangeError_checkValueInInterval(t1.get$red(), 0, 255, "red");
  17332. P.RangeError_checkValueInInterval(t1.get$green(), 0, 255, "green");
  17333. P.RangeError_checkValueInInterval(t1.get$blue(), 0, 255, "blue");
  17334. return t1;
  17335. },
  17336. SassColor$hsl: function(hue, saturation, lightness, alpha) {
  17337. var _null = null,
  17338. t1 = C.JSNumber_methods.$mod(hue, 360),
  17339. t2 = T.fuzzyAssertRange(saturation, 0, 100, "saturation"),
  17340. t3 = T.fuzzyAssertRange(lightness, 0, 100, "lightness");
  17341. return new K.SassColor(_null, _null, _null, t1, t2, t3, alpha == null ? 1 : T.fuzzyAssertRange(alpha, 0, 1, "alpha"), _null);
  17342. },
  17343. SassColor: function SassColor(t0, t1, t2, t3, t4, t5, t6, t7) {
  17344. var _ = this;
  17345. _._red = t0;
  17346. _._green = t1;
  17347. _._blue = t2;
  17348. _._hue = t3;
  17349. _._saturation = t4;
  17350. _._lightness = t5;
  17351. _.alpha = t6;
  17352. _.originalSpan = t7;
  17353. },
  17354. UnicodeGlyphSet: function UnicodeGlyphSet() {
  17355. },
  17356. ColorExpression0: function ColorExpression0(t0) {
  17357. this.value = t0;
  17358. },
  17359. _functionString0: function($name, $arguments) {
  17360. return new D.SassString0($name + "(" + J.map$1$1$ax($arguments, new K._functionString_closure0(), type$.String).join$1(0, ", ") + ")", false);
  17361. },
  17362. _removedColorFunction0: function($name, argument, negative) {
  17363. var t1 = S.SpanScanner$("@function " + $name + "($color, $amount) {", "sass:color");
  17364. return new Q.BuiltInCallable0($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, C.C_StderrLogger).parseArgumentDeclaration$0(), new K._removedColorFunction_closure0($name, argument, negative), type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2));
  17365. },
  17366. _rgb0: function($name, $arguments) {
  17367. var t2, red, green, blue, t3, _null = null,
  17368. t1 = J.getInterceptor$asx($arguments),
  17369. alpha = t1.get$length($arguments) > 3 ? t1.$index($arguments, 3) : _null;
  17370. if (!t1.$index($arguments, 0).get$isSpecialNumber())
  17371. if (!t1.$index($arguments, 1).get$isSpecialNumber())
  17372. if (!t1.$index($arguments, 2).get$isSpecialNumber()) {
  17373. t2 = alpha == null ? _null : alpha.get$isSpecialNumber();
  17374. t2 = t2 === true;
  17375. } else
  17376. t2 = true;
  17377. else
  17378. t2 = true;
  17379. else
  17380. t2 = true;
  17381. if (t2)
  17382. return K._functionString0($name, $arguments);
  17383. red = t1.$index($arguments, 0).assertNumber$1("red");
  17384. green = t1.$index($arguments, 1).assertNumber$1("green");
  17385. blue = t1.$index($arguments, 2).assertNumber$1("blue");
  17386. t1 = T.fuzzyRound0(K._percentageOrUnitless0(red, 255, "red"));
  17387. t2 = T.fuzzyRound0(K._percentageOrUnitless0(green, 255, "green"));
  17388. t3 = T.fuzzyRound0(K._percentageOrUnitless0(blue, 255, "blue"));
  17389. return K.SassColor$rgb0(t1, t2, t3, alpha == null ? _null : K._percentageOrUnitless0(alpha.assertNumber$1("alpha"), 1, "alpha"), _null);
  17390. },
  17391. _rgbTwoArg0: function($name, $arguments) {
  17392. var first, t2, color,
  17393. t1 = J.getInterceptor$asx($arguments);
  17394. if (t1.$index($arguments, 0).get$isVar())
  17395. return K._functionString0($name, $arguments);
  17396. else if (t1.$index($arguments, 1).get$isVar()) {
  17397. first = t1.$index($arguments, 0);
  17398. if (first instanceof K.SassColor0) {
  17399. t2 = $name + "(" + H.S(first.get$red()) + ", " + H.S(first.get$green()) + ", " + H.S(first.get$blue()) + ", ";
  17400. t1 = t1.$index($arguments, 1);
  17401. t1.toString;
  17402. return new D.SassString0(t2 + N.serializeValue(t1, false, true) + ")", false);
  17403. } else
  17404. return K._functionString0($name, $arguments);
  17405. } else if (t1.$index($arguments, 1).get$isSpecialNumber()) {
  17406. color = t1.$index($arguments, 0).assertColor$1("color");
  17407. t2 = $name + "(" + H.S(color.get$red()) + ", " + H.S(color.get$green()) + ", " + H.S(color.get$blue()) + ", ";
  17408. t1 = t1.$index($arguments, 1);
  17409. t1.toString;
  17410. return new D.SassString0(t2 + N.serializeValue(t1, false, true) + ")", false);
  17411. }
  17412. return t1.$index($arguments, 0).assertColor$1("color").changeAlpha$1(K._percentageOrUnitless0(t1.$index($arguments, 1).assertNumber$1("alpha"), 1, "alpha"));
  17413. },
  17414. _hsl0: function($name, $arguments) {
  17415. var t2, hue, saturation, lightness, t3,
  17416. t1 = J.getInterceptor$asx($arguments),
  17417. alpha = t1.get$length($arguments) > 3 ? t1.$index($arguments, 3) : null;
  17418. if (!t1.$index($arguments, 0).get$isSpecialNumber())
  17419. if (!t1.$index($arguments, 1).get$isSpecialNumber())
  17420. if (!t1.$index($arguments, 2).get$isSpecialNumber()) {
  17421. t2 = alpha == null ? null : alpha.get$isSpecialNumber();
  17422. t2 = t2 === true;
  17423. } else
  17424. t2 = true;
  17425. else
  17426. t2 = true;
  17427. else
  17428. t2 = true;
  17429. if (t2)
  17430. return K._functionString0($name, $arguments);
  17431. hue = t1.$index($arguments, 0).assertNumber$1("hue");
  17432. saturation = t1.$index($arguments, 1).assertNumber$1("saturation");
  17433. lightness = t1.$index($arguments, 2).assertNumber$1("lightness");
  17434. t1 = J.clamp$2$n(saturation.value, 0, 100);
  17435. t2 = J.clamp$2$n(lightness.value, 0, 100);
  17436. t3 = alpha == null ? null : K._percentageOrUnitless0(alpha.assertNumber$1("alpha"), 1, "alpha");
  17437. return K.SassColor$hsl0(hue.value, t1, t2, t3);
  17438. },
  17439. _parseChannels0: function($name, argumentNames, channels) {
  17440. var isCommaSeparated, isBracketed, buffer, t1, list, maybeSlashSeparated, t2, t3,
  17441. _s17_ = "$channels must be",
  17442. _s32_ = "$channels must be an unbracketed";
  17443. if (channels.get$isVar())
  17444. return K._functionString0($name, H.setRuntimeTypeInfo([channels], type$.JSArray_Value_2));
  17445. isCommaSeparated = channels.get$separator() === C.ListSeparator_comma0;
  17446. isBracketed = channels.get$hasBrackets();
  17447. if (isCommaSeparated || isBracketed) {
  17448. buffer = new P.StringBuffer(_s17_);
  17449. if (isBracketed) {
  17450. buffer._contents = _s32_;
  17451. t1 = _s32_;
  17452. } else
  17453. t1 = _s17_;
  17454. if (isCommaSeparated) {
  17455. t1 += isBracketed ? "," : " a";
  17456. buffer._contents = t1;
  17457. t1 = buffer._contents = t1 + " space-separated";
  17458. }
  17459. buffer._contents = t1 + " list.";
  17460. throw H.wrapException(E.SassScriptException$0(buffer.toString$0(0)));
  17461. }
  17462. list = channels.get$asList();
  17463. t1 = list.length;
  17464. if (t1 > 3)
  17465. throw H.wrapException(E.SassScriptException$0("Only 3 elements allowed, but " + t1 + " were passed."));
  17466. else if (t1 < 3) {
  17467. if (!C.JSArray_methods.any$1(list, new K._parseChannels_closure0()))
  17468. if (list.length !== 0) {
  17469. t1 = C.JSArray_methods.get$last(list);
  17470. if (t1 instanceof D.SassString0)
  17471. if (t1.hasQuotes) {
  17472. t1 = t1.text;
  17473. t1 = B.startsWithIgnoreCase0(t1, "var(") && J.contains$1$asx(t1, "/");
  17474. } else
  17475. t1 = false;
  17476. else
  17477. t1 = false;
  17478. } else
  17479. t1 = false;
  17480. else
  17481. t1 = true;
  17482. if (t1)
  17483. return K._functionString0($name, H.setRuntimeTypeInfo([channels], type$.JSArray_Value_2));
  17484. else
  17485. throw H.wrapException(E.SassScriptException$0("Missing element " + argumentNames[list.length] + "."));
  17486. }
  17487. maybeSlashSeparated = list[2];
  17488. if (maybeSlashSeparated instanceof T.SassNumber0 && maybeSlashSeparated.asSlash != null) {
  17489. t1 = list[0];
  17490. t2 = list[1];
  17491. t3 = maybeSlashSeparated.asSlash;
  17492. return H.setRuntimeTypeInfo([t1, t2, t3.item1, t3.item2], type$.JSArray_Value_2);
  17493. } else if (maybeSlashSeparated instanceof D.SassString0 && !maybeSlashSeparated.hasQuotes && J.contains$1$asx(maybeSlashSeparated.text, "/"))
  17494. return K._functionString0($name, H.setRuntimeTypeInfo([channels], type$.JSArray_Value_2));
  17495. else
  17496. return list;
  17497. },
  17498. _percentageOrUnitless0: function(number, max, $name) {
  17499. var value;
  17500. if (!(number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0))
  17501. value = number.value;
  17502. else if (number.hasUnit$1("%"))
  17503. value = max * number.value / 100;
  17504. else
  17505. throw H.wrapException(E.SassScriptException$0("$" + $name + ": Expected " + number.toString$0(0) + ' to have no units or "%".'));
  17506. return J.clamp$2$n(value, 0, max);
  17507. },
  17508. _mixColors0: function(color1, color2, weight) {
  17509. var weightScale = weight.valueInRange$3(0, 100, "weight") / 100,
  17510. normalizedWeight = weightScale * 2 - 1,
  17511. t1 = color1.alpha,
  17512. t2 = color2.alpha,
  17513. alphaDistance = t1 - t2,
  17514. t3 = normalizedWeight * alphaDistance,
  17515. weight1 = ((t3 === -1 ? normalizedWeight : (normalizedWeight + alphaDistance) / (1 + t3)) + 1) / 2,
  17516. weight2 = 1 - weight1;
  17517. return K.SassColor$rgb0(T.fuzzyRound0(color1.get$red() * weight1 + color2.get$red() * weight2), T.fuzzyRound0(color1.get$green() * weight1 + color2.get$green() * weight2), T.fuzzyRound0(color1.get$blue() * weight1 + color2.get$blue() * weight2), t1 * weightScale + t2 * (1 - weightScale), null);
  17518. },
  17519. _opacify0: function($arguments) {
  17520. var t1 = J.getInterceptor$asx($arguments),
  17521. color = t1.$index($arguments, 0).assertColor$1("color");
  17522. return color.changeAlpha$1(C.JSNumber_methods.clamp$2(color.alpha + t1.$index($arguments, 1).assertNumber$1("amount").valueInRange$3(0, 1, "amount"), 0, 1));
  17523. },
  17524. _transparentize0: function($arguments) {
  17525. var t1 = J.getInterceptor$asx($arguments),
  17526. color = t1.$index($arguments, 0).assertColor$1("color");
  17527. return color.changeAlpha$1(C.JSNumber_methods.clamp$2(color.alpha - t1.$index($arguments, 1).assertNumber$1("amount").valueInRange$3(0, 1, "amount"), 0, 1));
  17528. },
  17529. _function11: function($name, $arguments, callback) {
  17530. var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:color");
  17531. return new Q.BuiltInCallable0($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, C.C_StderrLogger).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2));
  17532. },
  17533. closure151: function closure151() {
  17534. },
  17535. closure152: function closure152() {
  17536. },
  17537. closure153: function closure153() {
  17538. },
  17539. closure154: function closure154() {
  17540. },
  17541. closure155: function closure155() {
  17542. },
  17543. closure156: function closure156() {
  17544. },
  17545. closure157: function closure157() {
  17546. },
  17547. closure158: function closure158() {
  17548. },
  17549. closure159: function closure159() {
  17550. },
  17551. closure160: function closure160() {
  17552. },
  17553. closure161: function closure161() {
  17554. },
  17555. closure162: function closure162() {
  17556. },
  17557. closure163: function closure163() {
  17558. },
  17559. closure164: function closure164() {
  17560. },
  17561. closure165: function closure165() {
  17562. },
  17563. closure166: function closure166() {
  17564. },
  17565. closure167: function closure167() {
  17566. },
  17567. closure168: function closure168() {
  17568. },
  17569. closure169: function closure169() {
  17570. },
  17571. closure170: function closure170() {
  17572. },
  17573. closure171: function closure171() {
  17574. },
  17575. closure172: function closure172() {
  17576. },
  17577. closure173: function closure173() {
  17578. },
  17579. closure174: function closure174() {
  17580. },
  17581. closure175: function closure175() {
  17582. },
  17583. closure176: function closure176() {
  17584. },
  17585. _closure25: function _closure25() {
  17586. },
  17587. closure177: function closure177() {
  17588. },
  17589. closure204: function closure204() {
  17590. },
  17591. closure205: function closure205() {
  17592. },
  17593. closure206: function closure206() {
  17594. },
  17595. closure207: function closure207() {
  17596. },
  17597. _closure27: function _closure27() {
  17598. },
  17599. closure208: function closure208() {
  17600. },
  17601. closure191: function closure191() {
  17602. },
  17603. closure190: function closure190() {
  17604. },
  17605. closure189: function closure189() {
  17606. },
  17607. closure188: function closure188() {
  17608. },
  17609. closure187: function closure187() {
  17610. },
  17611. closure186: function closure186() {
  17612. },
  17613. closure185: function closure185() {
  17614. },
  17615. closure184: function closure184() {
  17616. },
  17617. closure182: function closure182() {
  17618. },
  17619. closure_getInRange2: function closure_getInRange2(t0) {
  17620. this.keywords = t0;
  17621. },
  17622. _closure24: function _closure24() {
  17623. },
  17624. closure181: function closure181() {
  17625. },
  17626. closure_getScale0: function closure_getScale0(t0) {
  17627. this.keywords = t0;
  17628. },
  17629. closure_scaleValue0: function closure_scaleValue0() {
  17630. },
  17631. _closure23: function _closure23() {
  17632. },
  17633. closure180: function closure180() {
  17634. },
  17635. closure_getInRange1: function closure_getInRange1(t0) {
  17636. this.keywords = t0;
  17637. },
  17638. _closure22: function _closure22() {
  17639. },
  17640. closure183: function closure183() {
  17641. },
  17642. closure_hexString0: function closure_hexString0() {
  17643. },
  17644. _functionString_closure0: function _functionString_closure0() {
  17645. },
  17646. _removedColorFunction_closure0: function _removedColorFunction_closure0(t0, t1, t2) {
  17647. this.name = t0;
  17648. this.argument = t1;
  17649. this.negative = t2;
  17650. },
  17651. _parseChannels_closure0: function _parseChannels_closure0() {
  17652. },
  17653. _NodeSassColor: function _NodeSassColor() {
  17654. },
  17655. closure239: function closure239() {
  17656. },
  17657. closure240: function closure240() {
  17658. },
  17659. closure241: function closure241() {
  17660. },
  17661. closure242: function closure242() {
  17662. },
  17663. closure243: function closure243() {
  17664. },
  17665. closure244: function closure244() {
  17666. },
  17667. closure245: function closure245() {
  17668. },
  17669. closure246: function closure246() {
  17670. },
  17671. closure247: function closure247() {
  17672. },
  17673. closure248: function closure248() {
  17674. },
  17675. SassColor$rgb0: function(_red, _green, _blue, alpha, originalSpan) {
  17676. var t1 = new K.SassColor0(_red, _green, _blue, null, null, null, alpha == null ? 1 : T.fuzzyAssertRange0(alpha, 0, 1, "alpha"), originalSpan);
  17677. P.RangeError_checkValueInInterval(t1.get$red(), 0, 255, "red");
  17678. P.RangeError_checkValueInInterval(t1.get$green(), 0, 255, "green");
  17679. P.RangeError_checkValueInInterval(t1.get$blue(), 0, 255, "blue");
  17680. return t1;
  17681. },
  17682. SassColor$hsl0: function(hue, saturation, lightness, alpha) {
  17683. var _null = null,
  17684. t1 = C.JSNumber_methods.$mod(hue, 360),
  17685. t2 = T.fuzzyAssertRange0(saturation, 0, 100, "saturation"),
  17686. t3 = T.fuzzyAssertRange0(lightness, 0, 100, "lightness");
  17687. return new K.SassColor0(_null, _null, _null, t1, t2, t3, alpha == null ? 1 : T.fuzzyAssertRange0(alpha, 0, 1, "alpha"), _null);
  17688. },
  17689. SassColor0: function SassColor0(t0, t1, t2, t3, t4, t5, t6, t7) {
  17690. var _ = this;
  17691. _._color1$_red = t0;
  17692. _._color1$_green = t1;
  17693. _._color1$_blue = t2;
  17694. _._color1$_hue = t3;
  17695. _._color1$_saturation = t4;
  17696. _._color1$_lightness = t5;
  17697. _.alpha = t6;
  17698. _.originalSpan = t7;
  17699. },
  17700. LimitedMapView$safelist0: function(_map, safelist, $K, $V) {
  17701. return new K.LimitedMapView0(_map, safelist._base.intersection$1(new M.MapKeySet(_map, type$.MapKeySet_Object)), $K._eval$1("@<0>")._bind$1($V)._eval$1("LimitedMapView0<1,2>"));
  17702. },
  17703. LimitedMapView$blocklist0: function(_map, blocklist, $K, $V) {
  17704. var t2, key,
  17705. t1 = P.LinkedHashSet_LinkedHashSet($K);
  17706. for (t2 = J.get$iterator$ax(_map.get$keys()); t2.moveNext$0();) {
  17707. key = t2.get$current(t2);
  17708. if (!blocklist.contains$1(0, key))
  17709. t1.add$1(0, key);
  17710. }
  17711. return new K.LimitedMapView0(_map, t1, $K._eval$1("@<0>")._bind$1($V)._eval$1("LimitedMapView0<1,2>"));
  17712. },
  17713. LimitedMapView0: function LimitedMapView0(t0, t1, t2) {
  17714. this._limited_map_view0$_map = t0;
  17715. this._limited_map_view0$_keys = t1;
  17716. this.$ti = t2;
  17717. },
  17718. _fuzzyRoundIfZero0: function(number) {
  17719. if (!(Math.abs(number - 0) < $.$get$epsilon0()))
  17720. return number;
  17721. return C.JSNumber_methods.get$isNegative(number) ? -0.0 : 0;
  17722. },
  17723. _coerceToRad0: function(number) {
  17724. var error, t1, t2, exception;
  17725. try {
  17726. t1 = type$.JSArray_String;
  17727. t2 = H.setRuntimeTypeInfo(["rad"], t1);
  17728. t1 = H.setRuntimeTypeInfo([], t1);
  17729. t2 = T.SassNumber$withUnits0(number.valueInUnits$2(t2, t1), t1, t2);
  17730. return t2;
  17731. } catch (exception) {
  17732. t1 = H.unwrapException(exception);
  17733. if (t1 instanceof E.SassScriptException0) {
  17734. error = t1;
  17735. if (!C.JSString_methods.startsWith$1(error.message, "Incompatible units"))
  17736. throw exception;
  17737. throw H.wrapException(E.SassScriptException$0("$number: Expected " + number.toString$0(0) + " to be an angle."));
  17738. } else
  17739. throw exception;
  17740. }
  17741. },
  17742. _numberFunction0: function($name, transform) {
  17743. var t1 = S.SpanScanner$("@function " + $name + "($number) {", "sass:math");
  17744. return new Q.BuiltInCallable0($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, C.C_StderrLogger).parseArgumentDeclaration$0(), new K._numberFunction_closure0(transform), type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2));
  17745. },
  17746. _function8: function($name, $arguments, callback) {
  17747. var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:math");
  17748. return new Q.BuiltInCallable0($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, C.C_StderrLogger).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2));
  17749. },
  17750. closure133: function closure133() {
  17751. },
  17752. closure199: function closure199() {
  17753. },
  17754. closure132: function closure132() {
  17755. },
  17756. closure131: function closure131() {
  17757. },
  17758. closure130: function closure130() {
  17759. },
  17760. closure134: function closure134() {
  17761. },
  17762. closure197: function closure197() {
  17763. },
  17764. _closure26: function _closure26() {
  17765. },
  17766. closure196: function closure196() {
  17767. },
  17768. closure195: function closure195() {
  17769. },
  17770. closure193: function closure193() {
  17771. },
  17772. closure203: function closure203() {
  17773. },
  17774. closure202: function closure202() {
  17775. },
  17776. closure201: function closure201() {
  17777. },
  17778. closure200: function closure200() {
  17779. },
  17780. closure198: function closure198() {
  17781. },
  17782. closure194: function closure194() {
  17783. },
  17784. closure192: function closure192() {
  17785. },
  17786. closure126: function closure126() {
  17787. },
  17788. closure125: function closure125() {
  17789. },
  17790. closure127: function closure127() {
  17791. },
  17792. closure129: function closure129() {
  17793. },
  17794. closure128: function closure128() {
  17795. },
  17796. _numberFunction_closure0: function _numberFunction_closure0(t0) {
  17797. this.transform = t0;
  17798. }
  17799. },
  17800. R = {ModifiableCssComment: function ModifiableCssComment(t0, t1) {
  17801. var _ = this;
  17802. _.text = t0;
  17803. _.span = t1;
  17804. _._indexInParent = _._parent = null;
  17805. _.isGroupEnd = false;
  17806. },
  17807. ImportCache$: function(importers, loadPaths, logger) {
  17808. var t1 = R.ImportCache__toImporters(importers, loadPaths, null),
  17809. t2 = logger == null ? C.StderrLogger_false : logger,
  17810. t3 = type$.Uri;
  17811. return new R.ImportCache(t1, t2, P.LinkedHashMap_LinkedHashMap$_empty(type$.Tuple2_Uri_bool, type$.Tuple3_Importer_Uri_Uri), P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.Stylesheet_2), P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.ImporterResult_2));
  17812. },
  17813. ImportCache__toImporters: function(importers, loadPaths, packageResolver) {
  17814. var _i, t2, t3, path, _null = null,
  17815. sassPath = H._asStringNullable(J.get$env$x(self.process).SASS_PATH),
  17816. t1 = H.setRuntimeTypeInfo([], type$.JSArray_Importer);
  17817. for (_i = 0; false; ++_i)
  17818. t1.push(importers[_i]);
  17819. if (loadPaths != null)
  17820. for (t2 = J.get$iterator$ax(loadPaths); t2.moveNext$0();) {
  17821. t3 = t2.get$current(t2);
  17822. t1.push(new F.FilesystemImporter($.$get$context().absolute$7(t3, _null, _null, _null, _null, _null, _null)));
  17823. }
  17824. if (sassPath != null) {
  17825. t2 = sassPath.split(J.$eq$(J.get$platform$x(self.process), "win32") ? ";" : ":");
  17826. t3 = t2.length;
  17827. _i = 0;
  17828. for (; _i < t3; ++_i) {
  17829. path = t2[_i];
  17830. t1.push(new F.FilesystemImporter($.$get$context().absolute$7(path, _null, _null, _null, _null, _null, _null)));
  17831. }
  17832. }
  17833. return t1;
  17834. },
  17835. ImportCache: function ImportCache(t0, t1, t2, t3, t4) {
  17836. var _ = this;
  17837. _._importers = t0;
  17838. _._logger = t1;
  17839. _._canonicalizeCache = t2;
  17840. _._importCache = t3;
  17841. _._resultsCache = t4;
  17842. },
  17843. ImportCache_canonicalize_closure: function ImportCache_canonicalize_closure(t0, t1, t2) {
  17844. this.$this = t0;
  17845. this.url = t1;
  17846. this.forImport = t2;
  17847. },
  17848. ImportCache__canonicalize_closure: function ImportCache__canonicalize_closure(t0, t1) {
  17849. this.importer = t0;
  17850. this.url = t1;
  17851. },
  17852. ImportCache_importCanonical_closure: function ImportCache_importCanonical_closure(t0, t1, t2, t3) {
  17853. var _ = this;
  17854. _.$this = t0;
  17855. _.importer = t1;
  17856. _.canonicalUrl = t2;
  17857. _.originalUrl = t3;
  17858. },
  17859. ImportCache_humanize_closure: function ImportCache_humanize_closure(t0) {
  17860. this.canonicalUrl = t0;
  17861. },
  17862. ImportCache_humanize_closure0: function ImportCache_humanize_closure0() {
  17863. },
  17864. ImportCache_humanize_closure1: function ImportCache_humanize_closure1() {
  17865. },
  17866. ForwardedModuleView_ifNecessary: function(inner, rule, $T) {
  17867. var t1;
  17868. if (rule.prefix == null)
  17869. if (rule.shownMixinsAndFunctions == null)
  17870. if (rule.shownVariables == null) {
  17871. t1 = rule.hiddenMixinsAndFunctions;
  17872. if (t1 != null) {
  17873. t1 = t1._base;
  17874. t1 = t1.get$isEmpty(t1);
  17875. } else
  17876. t1 = true;
  17877. if (t1) {
  17878. t1 = rule.hiddenVariables;
  17879. if (t1 != null) {
  17880. t1 = t1._base;
  17881. t1 = t1.get$isEmpty(t1);
  17882. } else
  17883. t1 = true;
  17884. } else
  17885. t1 = false;
  17886. } else
  17887. t1 = false;
  17888. else
  17889. t1 = false;
  17890. else
  17891. t1 = false;
  17892. if (t1)
  17893. return inner;
  17894. else
  17895. return R.ForwardedModuleView$(inner, rule, $T);
  17896. },
  17897. ForwardedModuleView$: function(_inner, _rule, $T) {
  17898. var t5,
  17899. t1 = _rule.prefix,
  17900. t2 = _rule.shownVariables,
  17901. t3 = _rule.hiddenVariables,
  17902. t4 = R.ForwardedModuleView__forwardedMap(_inner.get$variables(), t1, t2, t3, type$.Value);
  17903. t2 = _inner.get$variableNodes() == null ? null : R.ForwardedModuleView__forwardedMap(_inner.get$variableNodes(), t1, t2, t3, type$.AstNode);
  17904. t3 = _rule.shownMixinsAndFunctions;
  17905. t5 = _rule.hiddenMixinsAndFunctions;
  17906. return new R.ForwardedModuleView(_inner, _rule, t4, t2, R.ForwardedModuleView__forwardedMap(_inner.get$functions(_inner), t1, t3, t5, $T), R.ForwardedModuleView__forwardedMap(_inner.get$mixins(), t1, t3, t5, $T), $T._eval$1("ForwardedModuleView<0>"));
  17907. },
  17908. ForwardedModuleView__forwardedMap: function(map, prefix, safelist, blocklist, $V) {
  17909. var t2,
  17910. t1 = prefix == null;
  17911. if (t1)
  17912. if (safelist == null)
  17913. if (blocklist != null) {
  17914. t2 = blocklist._base;
  17915. t2 = t2.get$isEmpty(t2);
  17916. } else
  17917. t2 = true;
  17918. else
  17919. t2 = false;
  17920. else
  17921. t2 = false;
  17922. if (t2)
  17923. return map;
  17924. if (!t1)
  17925. map = new F.PrefixedMapView(map, prefix, $V._eval$1("PrefixedMapView<0>"));
  17926. if (safelist != null)
  17927. map = K.LimitedMapView$safelist(map, safelist, type$.String, $V);
  17928. else {
  17929. if (blocklist != null) {
  17930. t1 = blocklist._base;
  17931. t1 = t1.get$isNotEmpty(t1);
  17932. } else
  17933. t1 = false;
  17934. if (t1)
  17935. map = K.LimitedMapView$blocklist(map, blocklist, type$.String, $V);
  17936. }
  17937. return map;
  17938. },
  17939. ForwardedModuleView: function ForwardedModuleView(t0, t1, t2, t3, t4, t5, t6) {
  17940. var _ = this;
  17941. _._forwarded_view$_inner = t0;
  17942. _._rule = t1;
  17943. _.variables = t2;
  17944. _.variableNodes = t3;
  17945. _.functions = t4;
  17946. _.mixins = t5;
  17947. _.$ti = t6;
  17948. },
  17949. UnprefixedMapView: function UnprefixedMapView(t0, t1, t2) {
  17950. this._unprefixed_map_view$_map = t0;
  17951. this._unprefixed_map_view$_prefix = t1;
  17952. this.$ti = t2;
  17953. },
  17954. _UnprefixedKeys: function _UnprefixedKeys(t0) {
  17955. this._unprefixed_map_view$_view = t0;
  17956. },
  17957. _UnprefixedKeys_iterator_closure: function _UnprefixedKeys_iterator_closure(t0) {
  17958. this.$this = t0;
  17959. },
  17960. _UnprefixedKeys_iterator_closure0: function _UnprefixedKeys_iterator_closure0(t0) {
  17961. this.$this = t0;
  17962. },
  17963. _EvaluateVisitor$: function(functions, importCache, logger, nodeImporter, sourceMap) {
  17964. var t1 = type$.String,
  17965. t2 = type$.Uri,
  17966. t3 = type$.Module_Callable,
  17967. t4 = type$.AstNode,
  17968. t5 = H.setRuntimeTypeInfo([], type$.JSArray_Tuple2_String_AstNode),
  17969. t6 = logger == null ? C.StderrLogger_false : logger;
  17970. t5 = new R._EvaluateVisitor(importCache, nodeImporter, P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Callable), P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), P.LinkedHashMap_LinkedHashMap$_empty(t2, t4), t6, sourceMap, O.Environment$(sourceMap), P.LinkedHashSet_LinkedHashSet$_empty(t1), P.LinkedHashMap_LinkedHashMap$_empty(t2, t4), t5, C.Configuration_Map_empty_null_true);
  17971. t5._EvaluateVisitor$5$functions$importCache$logger$nodeImporter$sourceMap(functions, importCache, logger, nodeImporter, sourceMap);
  17972. return t5;
  17973. },
  17974. _ArgumentResults$: function(positional, named, separator, namedNodes, positionalNodes) {
  17975. return new R._ArgumentResults(positional, positionalNodes, named, namedNodes, separator);
  17976. },
  17977. Evaluator: function Evaluator(t0, t1) {
  17978. this._visitor = t0;
  17979. this._importer = t1;
  17980. },
  17981. _EvaluateVisitor: function _EvaluateVisitor(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12) {
  17982. var _ = this;
  17983. _._evaluate$_importCache = t0;
  17984. _._evaluate$_nodeImporter = t1;
  17985. _._builtInFunctions = t2;
  17986. _._builtInModules = t3;
  17987. _._modules = t4;
  17988. _._moduleNodes = t5;
  17989. _._evaluate$_logger = t6;
  17990. _._sourceMap = t7;
  17991. _._evaluate$_environment = t8;
  17992. _._declarationName = _._evaluate$_parent = _._mediaQueries = _._styleRule = null;
  17993. _._member = "root stylesheet";
  17994. _._importSpan = _._callableNode = null;
  17995. _._inKeyframes = _._atRootExcludingStyleRule = _._inUnknownAtRule = _._inFunction = false;
  17996. _._evaluate$_includedFiles = t9;
  17997. _._activeModules = t10;
  17998. _._stack = t11;
  17999. _._extender = _._outOfOrderImports = _._endOfImports = _._root = _._stylesheet = _._importer = null;
  18000. _._configuration = t12;
  18001. },
  18002. _EvaluateVisitor_closure: function _EvaluateVisitor_closure(t0) {
  18003. this.$this = t0;
  18004. },
  18005. _EvaluateVisitor_closure0: function _EvaluateVisitor_closure0(t0) {
  18006. this.$this = t0;
  18007. },
  18008. _EvaluateVisitor_closure1: function _EvaluateVisitor_closure1(t0) {
  18009. this.$this = t0;
  18010. },
  18011. _EvaluateVisitor_closure2: function _EvaluateVisitor_closure2(t0) {
  18012. this.$this = t0;
  18013. },
  18014. _EvaluateVisitor_closure3: function _EvaluateVisitor_closure3(t0) {
  18015. this.$this = t0;
  18016. },
  18017. _EvaluateVisitor_closure4: function _EvaluateVisitor_closure4(t0) {
  18018. this.$this = t0;
  18019. },
  18020. _EvaluateVisitor_closure5: function _EvaluateVisitor_closure5(t0) {
  18021. this.$this = t0;
  18022. },
  18023. _EvaluateVisitor_closure6: function _EvaluateVisitor_closure6(t0) {
  18024. this.$this = t0;
  18025. },
  18026. _EvaluateVisitor__closure3: function _EvaluateVisitor__closure3(t0, t1, t2) {
  18027. this.$this = t0;
  18028. this.name = t1;
  18029. this.module = t2;
  18030. },
  18031. _EvaluateVisitor_closure7: function _EvaluateVisitor_closure7(t0) {
  18032. this.$this = t0;
  18033. },
  18034. _EvaluateVisitor__closure1: function _EvaluateVisitor__closure1() {
  18035. },
  18036. _EvaluateVisitor__closure2: function _EvaluateVisitor__closure2() {
  18037. },
  18038. _EvaluateVisitor_closure8: function _EvaluateVisitor_closure8(t0) {
  18039. this.$this = t0;
  18040. },
  18041. _EvaluateVisitor__closure: function _EvaluateVisitor__closure(t0, t1) {
  18042. this.values = t0;
  18043. this.span = t1;
  18044. },
  18045. _EvaluateVisitor__closure0: function _EvaluateVisitor__closure0(t0) {
  18046. this.$this = t0;
  18047. },
  18048. _EvaluateVisitor_run_closure: function _EvaluateVisitor_run_closure(t0, t1, t2) {
  18049. this.$this = t0;
  18050. this.node = t1;
  18051. this.importer = t2;
  18052. },
  18053. _EvaluateVisitor_runExpression_closure: function _EvaluateVisitor_runExpression_closure(t0, t1, t2) {
  18054. this.$this = t0;
  18055. this.importer = t1;
  18056. this.expression = t2;
  18057. },
  18058. _EvaluateVisitor_runExpression__closure: function _EvaluateVisitor_runExpression__closure(t0, t1) {
  18059. this.$this = t0;
  18060. this.expression = t1;
  18061. },
  18062. _EvaluateVisitor_runStatement_closure: function _EvaluateVisitor_runStatement_closure(t0, t1, t2) {
  18063. this.$this = t0;
  18064. this.importer = t1;
  18065. this.statement = t2;
  18066. },
  18067. _EvaluateVisitor_runStatement__closure: function _EvaluateVisitor_runStatement__closure(t0, t1) {
  18068. this.$this = t0;
  18069. this.statement = t1;
  18070. },
  18071. _EvaluateVisitor__withWarnCallback_closure: function _EvaluateVisitor__withWarnCallback_closure(t0) {
  18072. this.$this = t0;
  18073. },
  18074. _EvaluateVisitor__loadModule_closure: function _EvaluateVisitor__loadModule_closure(t0, t1, t2, t3, t4, t5, t6) {
  18075. var _ = this;
  18076. _.$this = t0;
  18077. _.url = t1;
  18078. _.nodeWithSpan = t2;
  18079. _.baseUrl = t3;
  18080. _.namesInErrors = t4;
  18081. _.configuration = t5;
  18082. _.callback = t6;
  18083. },
  18084. _EvaluateVisitor__execute_closure: function _EvaluateVisitor__execute_closure(t0, t1, t2, t3, t4, t5) {
  18085. var _ = this;
  18086. _._box_0 = t0;
  18087. _.$this = t1;
  18088. _.importer = t2;
  18089. _.stylesheet = t3;
  18090. _.extender = t4;
  18091. _.configuration = t5;
  18092. },
  18093. _EvaluateVisitor__combineCss_closure: function _EvaluateVisitor__combineCss_closure() {
  18094. },
  18095. _EvaluateVisitor__combineCss_closure0: function _EvaluateVisitor__combineCss_closure0(t0) {
  18096. this.selectors = t0;
  18097. },
  18098. _EvaluateVisitor__combineCss_closure1: function _EvaluateVisitor__combineCss_closure1() {
  18099. },
  18100. _EvaluateVisitor__extendModules_closure: function _EvaluateVisitor__extendModules_closure(t0) {
  18101. this.originalSelectors = t0;
  18102. },
  18103. _EvaluateVisitor__extendModules_closure0: function _EvaluateVisitor__extendModules_closure0() {
  18104. },
  18105. _EvaluateVisitor__topologicalModules_visitModule: function _EvaluateVisitor__topologicalModules_visitModule(t0, t1) {
  18106. this.seen = t0;
  18107. this.sorted = t1;
  18108. },
  18109. _EvaluateVisitor_visitAtRootRule_closure: function _EvaluateVisitor_visitAtRootRule_closure(t0, t1) {
  18110. this.$this = t0;
  18111. this.resolved = t1;
  18112. },
  18113. _EvaluateVisitor_visitAtRootRule_closure0: function _EvaluateVisitor_visitAtRootRule_closure0(t0, t1) {
  18114. this.$this = t0;
  18115. this.node = t1;
  18116. },
  18117. _EvaluateVisitor_visitAtRootRule_closure1: function _EvaluateVisitor_visitAtRootRule_closure1(t0, t1) {
  18118. this.$this = t0;
  18119. this.node = t1;
  18120. },
  18121. _EvaluateVisitor__scopeForAtRoot_closure: function _EvaluateVisitor__scopeForAtRoot_closure(t0, t1, t2) {
  18122. this.$this = t0;
  18123. this.newParent = t1;
  18124. this.node = t2;
  18125. },
  18126. _EvaluateVisitor__scopeForAtRoot_closure0: function _EvaluateVisitor__scopeForAtRoot_closure0(t0, t1) {
  18127. this.$this = t0;
  18128. this.innerScope = t1;
  18129. },
  18130. _EvaluateVisitor__scopeForAtRoot_closure1: function _EvaluateVisitor__scopeForAtRoot_closure1(t0, t1) {
  18131. this.$this = t0;
  18132. this.innerScope = t1;
  18133. },
  18134. _EvaluateVisitor__scopeForAtRoot__closure: function _EvaluateVisitor__scopeForAtRoot__closure(t0, t1) {
  18135. this.innerScope = t0;
  18136. this.callback = t1;
  18137. },
  18138. _EvaluateVisitor__scopeForAtRoot_closure2: function _EvaluateVisitor__scopeForAtRoot_closure2(t0, t1) {
  18139. this.$this = t0;
  18140. this.innerScope = t1;
  18141. },
  18142. _EvaluateVisitor__scopeForAtRoot_closure3: function _EvaluateVisitor__scopeForAtRoot_closure3() {
  18143. },
  18144. _EvaluateVisitor__scopeForAtRoot_closure4: function _EvaluateVisitor__scopeForAtRoot_closure4(t0, t1) {
  18145. this.$this = t0;
  18146. this.innerScope = t1;
  18147. },
  18148. _EvaluateVisitor_visitContentRule_closure: function _EvaluateVisitor_visitContentRule_closure(t0, t1) {
  18149. this.$this = t0;
  18150. this.content = t1;
  18151. },
  18152. _EvaluateVisitor_visitDeclaration_closure: function _EvaluateVisitor_visitDeclaration_closure(t0, t1) {
  18153. this.$this = t0;
  18154. this.node = t1;
  18155. },
  18156. _EvaluateVisitor_visitEachRule_closure: function _EvaluateVisitor_visitEachRule_closure(t0, t1, t2) {
  18157. this.$this = t0;
  18158. this.node = t1;
  18159. this.nodeWithSpan = t2;
  18160. },
  18161. _EvaluateVisitor_visitEachRule_closure0: function _EvaluateVisitor_visitEachRule_closure0(t0, t1, t2) {
  18162. this.$this = t0;
  18163. this.node = t1;
  18164. this.nodeWithSpan = t2;
  18165. },
  18166. _EvaluateVisitor_visitEachRule_closure1: function _EvaluateVisitor_visitEachRule_closure1(t0, t1, t2, t3) {
  18167. var _ = this;
  18168. _.$this = t0;
  18169. _.list = t1;
  18170. _.setVariables = t2;
  18171. _.node = t3;
  18172. },
  18173. _EvaluateVisitor_visitEachRule__closure: function _EvaluateVisitor_visitEachRule__closure(t0, t1, t2) {
  18174. this.$this = t0;
  18175. this.setVariables = t1;
  18176. this.node = t2;
  18177. },
  18178. _EvaluateVisitor_visitEachRule___closure: function _EvaluateVisitor_visitEachRule___closure(t0) {
  18179. this.$this = t0;
  18180. },
  18181. _EvaluateVisitor_visitExtendRule_closure: function _EvaluateVisitor_visitExtendRule_closure(t0, t1) {
  18182. this.$this = t0;
  18183. this.targetText = t1;
  18184. },
  18185. _EvaluateVisitor_visitAtRule_closure: function _EvaluateVisitor_visitAtRule_closure(t0, t1) {
  18186. this.$this = t0;
  18187. this.node = t1;
  18188. },
  18189. _EvaluateVisitor_visitAtRule__closure: function _EvaluateVisitor_visitAtRule__closure(t0, t1) {
  18190. this.$this = t0;
  18191. this.node = t1;
  18192. },
  18193. _EvaluateVisitor_visitAtRule_closure0: function _EvaluateVisitor_visitAtRule_closure0() {
  18194. },
  18195. _EvaluateVisitor_visitForRule_closure: function _EvaluateVisitor_visitForRule_closure(t0, t1) {
  18196. this.$this = t0;
  18197. this.node = t1;
  18198. },
  18199. _EvaluateVisitor_visitForRule_closure0: function _EvaluateVisitor_visitForRule_closure0(t0, t1) {
  18200. this.$this = t0;
  18201. this.node = t1;
  18202. },
  18203. _EvaluateVisitor_visitForRule_closure1: function _EvaluateVisitor_visitForRule_closure1(t0, t1) {
  18204. this.fromNumber = t0;
  18205. this.toNumber = t1;
  18206. },
  18207. _EvaluateVisitor_visitForRule_closure2: function _EvaluateVisitor_visitForRule_closure2(t0) {
  18208. this.toNumber = t0;
  18209. },
  18210. _EvaluateVisitor_visitForRule_closure3: function _EvaluateVisitor_visitForRule_closure3(t0, t1, t2, t3, t4) {
  18211. var _ = this;
  18212. _._box_0 = t0;
  18213. _.$this = t1;
  18214. _.node = t2;
  18215. _.from = t3;
  18216. _.direction = t4;
  18217. },
  18218. _EvaluateVisitor_visitForRule__closure: function _EvaluateVisitor_visitForRule__closure(t0) {
  18219. this.$this = t0;
  18220. },
  18221. _EvaluateVisitor_visitForwardRule_closure: function _EvaluateVisitor_visitForwardRule_closure(t0, t1) {
  18222. this.$this = t0;
  18223. this.node = t1;
  18224. },
  18225. _EvaluateVisitor_visitForwardRule_closure0: function _EvaluateVisitor_visitForwardRule_closure0(t0, t1) {
  18226. this.$this = t0;
  18227. this.node = t1;
  18228. },
  18229. _EvaluateVisitor__assertConfigurationIsEmpty_closure: function _EvaluateVisitor__assertConfigurationIsEmpty_closure(t0, t1, t2) {
  18230. this.$this = t0;
  18231. this.only = t1;
  18232. this.nameInError = t2;
  18233. },
  18234. _EvaluateVisitor_visitIfRule_closure: function _EvaluateVisitor_visitIfRule_closure(t0, t1) {
  18235. this._box_0 = t0;
  18236. this.$this = t1;
  18237. },
  18238. _EvaluateVisitor_visitIfRule__closure: function _EvaluateVisitor_visitIfRule__closure(t0) {
  18239. this.$this = t0;
  18240. },
  18241. _EvaluateVisitor__visitDynamicImport_closure: function _EvaluateVisitor__visitDynamicImport_closure(t0, t1) {
  18242. this.$this = t0;
  18243. this.$import = t1;
  18244. },
  18245. _EvaluateVisitor__visitDynamicImport__closure: function _EvaluateVisitor__visitDynamicImport__closure(t0, t1, t2, t3, t4) {
  18246. var _ = this;
  18247. _._box_0 = t0;
  18248. _.$this = t1;
  18249. _.importer = t2;
  18250. _.stylesheet = t3;
  18251. _.environment = t4;
  18252. },
  18253. _EvaluateVisitor_visitIncludeRule_closure: function _EvaluateVisitor_visitIncludeRule_closure(t0, t1) {
  18254. this.$this = t0;
  18255. this.node = t1;
  18256. },
  18257. _EvaluateVisitor_visitIncludeRule_closure0: function _EvaluateVisitor_visitIncludeRule_closure0(t0) {
  18258. this.node = t0;
  18259. },
  18260. _EvaluateVisitor_visitIncludeRule_closure1: function _EvaluateVisitor_visitIncludeRule_closure1(t0, t1, t2, t3) {
  18261. var _ = this;
  18262. _.$this = t0;
  18263. _.contentCallable = t1;
  18264. _.mixin = t2;
  18265. _.nodeWithSpan = t3;
  18266. },
  18267. _EvaluateVisitor_visitIncludeRule__closure: function _EvaluateVisitor_visitIncludeRule__closure(t0, t1, t2) {
  18268. this.$this = t0;
  18269. this.mixin = t1;
  18270. this.nodeWithSpan = t2;
  18271. },
  18272. _EvaluateVisitor_visitIncludeRule___closure: function _EvaluateVisitor_visitIncludeRule___closure(t0, t1, t2) {
  18273. this.$this = t0;
  18274. this.mixin = t1;
  18275. this.nodeWithSpan = t2;
  18276. },
  18277. _EvaluateVisitor_visitIncludeRule____closure: function _EvaluateVisitor_visitIncludeRule____closure(t0, t1) {
  18278. this.$this = t0;
  18279. this.statement = t1;
  18280. },
  18281. _EvaluateVisitor_visitMediaRule_closure: function _EvaluateVisitor_visitMediaRule_closure(t0, t1, t2, t3) {
  18282. var _ = this;
  18283. _.$this = t0;
  18284. _.mergedQueries = t1;
  18285. _.queries = t2;
  18286. _.node = t3;
  18287. },
  18288. _EvaluateVisitor_visitMediaRule__closure: function _EvaluateVisitor_visitMediaRule__closure(t0, t1) {
  18289. this.$this = t0;
  18290. this.node = t1;
  18291. },
  18292. _EvaluateVisitor_visitMediaRule___closure: function _EvaluateVisitor_visitMediaRule___closure(t0, t1) {
  18293. this.$this = t0;
  18294. this.node = t1;
  18295. },
  18296. _EvaluateVisitor_visitMediaRule_closure0: function _EvaluateVisitor_visitMediaRule_closure0(t0) {
  18297. this.mergedQueries = t0;
  18298. },
  18299. _EvaluateVisitor__visitMediaQueries_closure: function _EvaluateVisitor__visitMediaQueries_closure(t0, t1) {
  18300. this.$this = t0;
  18301. this.resolved = t1;
  18302. },
  18303. _EvaluateVisitor_visitStyleRule_closure: function _EvaluateVisitor_visitStyleRule_closure(t0, t1) {
  18304. this.$this = t0;
  18305. this.selectorText = t1;
  18306. },
  18307. _EvaluateVisitor_visitStyleRule_closure0: function _EvaluateVisitor_visitStyleRule_closure0(t0, t1) {
  18308. this.$this = t0;
  18309. this.node = t1;
  18310. },
  18311. _EvaluateVisitor_visitStyleRule_closure1: function _EvaluateVisitor_visitStyleRule_closure1() {
  18312. },
  18313. _EvaluateVisitor_visitStyleRule_closure2: function _EvaluateVisitor_visitStyleRule_closure2(t0, t1) {
  18314. this.$this = t0;
  18315. this.selectorText = t1;
  18316. },
  18317. _EvaluateVisitor_visitStyleRule_closure3: function _EvaluateVisitor_visitStyleRule_closure3(t0, t1) {
  18318. this._box_0 = t0;
  18319. this.$this = t1;
  18320. },
  18321. _EvaluateVisitor_visitStyleRule_closure4: function _EvaluateVisitor_visitStyleRule_closure4(t0, t1, t2) {
  18322. this.$this = t0;
  18323. this.rule = t1;
  18324. this.node = t2;
  18325. },
  18326. _EvaluateVisitor_visitStyleRule__closure: function _EvaluateVisitor_visitStyleRule__closure(t0, t1) {
  18327. this.$this = t0;
  18328. this.node = t1;
  18329. },
  18330. _EvaluateVisitor_visitStyleRule_closure5: function _EvaluateVisitor_visitStyleRule_closure5() {
  18331. },
  18332. _EvaluateVisitor_visitSupportsRule_closure: function _EvaluateVisitor_visitSupportsRule_closure(t0, t1) {
  18333. this.$this = t0;
  18334. this.node = t1;
  18335. },
  18336. _EvaluateVisitor_visitSupportsRule__closure: function _EvaluateVisitor_visitSupportsRule__closure(t0, t1) {
  18337. this.$this = t0;
  18338. this.node = t1;
  18339. },
  18340. _EvaluateVisitor_visitSupportsRule_closure0: function _EvaluateVisitor_visitSupportsRule_closure0() {
  18341. },
  18342. _EvaluateVisitor_visitVariableDeclaration_closure: function _EvaluateVisitor_visitVariableDeclaration_closure(t0, t1, t2) {
  18343. this.$this = t0;
  18344. this.node = t1;
  18345. this.override = t2;
  18346. },
  18347. _EvaluateVisitor_visitVariableDeclaration_closure0: function _EvaluateVisitor_visitVariableDeclaration_closure0(t0, t1) {
  18348. this.$this = t0;
  18349. this.node = t1;
  18350. },
  18351. _EvaluateVisitor_visitVariableDeclaration_closure1: function _EvaluateVisitor_visitVariableDeclaration_closure1(t0, t1, t2) {
  18352. this.$this = t0;
  18353. this.node = t1;
  18354. this.value = t2;
  18355. },
  18356. _EvaluateVisitor_visitUseRule_closure: function _EvaluateVisitor_visitUseRule_closure(t0, t1) {
  18357. this.$this = t0;
  18358. this.node = t1;
  18359. },
  18360. _EvaluateVisitor_visitWarnRule_closure: function _EvaluateVisitor_visitWarnRule_closure(t0, t1) {
  18361. this.$this = t0;
  18362. this.node = t1;
  18363. },
  18364. _EvaluateVisitor_visitWhileRule_closure: function _EvaluateVisitor_visitWhileRule_closure(t0, t1) {
  18365. this.$this = t0;
  18366. this.node = t1;
  18367. },
  18368. _EvaluateVisitor_visitWhileRule__closure: function _EvaluateVisitor_visitWhileRule__closure(t0) {
  18369. this.$this = t0;
  18370. },
  18371. _EvaluateVisitor_visitBinaryOperationExpression_closure: function _EvaluateVisitor_visitBinaryOperationExpression_closure(t0, t1) {
  18372. this.$this = t0;
  18373. this.node = t1;
  18374. },
  18375. _EvaluateVisitor_visitVariableExpression_closure: function _EvaluateVisitor_visitVariableExpression_closure(t0, t1) {
  18376. this.$this = t0;
  18377. this.node = t1;
  18378. },
  18379. _EvaluateVisitor_visitListExpression_closure: function _EvaluateVisitor_visitListExpression_closure(t0) {
  18380. this.$this = t0;
  18381. },
  18382. _EvaluateVisitor_visitFunctionExpression_closure: function _EvaluateVisitor_visitFunctionExpression_closure(t0, t1, t2) {
  18383. this.$this = t0;
  18384. this.node = t1;
  18385. this.plainName = t2;
  18386. },
  18387. _EvaluateVisitor_visitFunctionExpression_closure0: function _EvaluateVisitor_visitFunctionExpression_closure0(t0, t1, t2) {
  18388. this._box_0 = t0;
  18389. this.$this = t1;
  18390. this.node = t2;
  18391. },
  18392. _EvaluateVisitor__runUserDefinedCallable_closure: function _EvaluateVisitor__runUserDefinedCallable_closure(t0, t1, t2, t3, t4) {
  18393. var _ = this;
  18394. _.$this = t0;
  18395. _.callable = t1;
  18396. _.evaluated = t2;
  18397. _.nodeWithSpan = t3;
  18398. _.run = t4;
  18399. },
  18400. _EvaluateVisitor__runUserDefinedCallable__closure: function _EvaluateVisitor__runUserDefinedCallable__closure(t0, t1, t2, t3, t4) {
  18401. var _ = this;
  18402. _.$this = t0;
  18403. _.evaluated = t1;
  18404. _.callable = t2;
  18405. _.nodeWithSpan = t3;
  18406. _.run = t4;
  18407. },
  18408. _EvaluateVisitor__runUserDefinedCallable___closure: function _EvaluateVisitor__runUserDefinedCallable___closure(t0, t1, t2, t3, t4) {
  18409. var _ = this;
  18410. _.$this = t0;
  18411. _.evaluated = t1;
  18412. _.callable = t2;
  18413. _.nodeWithSpan = t3;
  18414. _.run = t4;
  18415. },
  18416. _EvaluateVisitor__runUserDefinedCallable____closure: function _EvaluateVisitor__runUserDefinedCallable____closure() {
  18417. },
  18418. _EvaluateVisitor__runFunctionCallable_closure: function _EvaluateVisitor__runFunctionCallable_closure(t0, t1) {
  18419. this.$this = t0;
  18420. this.callable = t1;
  18421. },
  18422. _EvaluateVisitor__runBuiltInCallable_closure: function _EvaluateVisitor__runBuiltInCallable_closure(t0, t1, t2) {
  18423. this.overload = t0;
  18424. this.evaluated = t1;
  18425. this.namedSet = t2;
  18426. },
  18427. _EvaluateVisitor__runBuiltInCallable_closure0: function _EvaluateVisitor__runBuiltInCallable_closure0() {
  18428. },
  18429. _EvaluateVisitor__evaluateArguments_closure: function _EvaluateVisitor__evaluateArguments_closure(t0) {
  18430. this.$this = t0;
  18431. },
  18432. _EvaluateVisitor__evaluateArguments_closure0: function _EvaluateVisitor__evaluateArguments_closure0(t0) {
  18433. this.$this = t0;
  18434. },
  18435. _EvaluateVisitor__evaluateArguments_closure1: function _EvaluateVisitor__evaluateArguments_closure1(t0, t1, t2) {
  18436. this.named = t0;
  18437. this.namedNodes = t1;
  18438. this.restNodeForSpan = t2;
  18439. },
  18440. _EvaluateVisitor__evaluateMacroArguments_closure: function _EvaluateVisitor__evaluateMacroArguments_closure() {
  18441. },
  18442. _EvaluateVisitor__evaluateMacroArguments_closure0: function _EvaluateVisitor__evaluateMacroArguments_closure0() {
  18443. },
  18444. _EvaluateVisitor__evaluateMacroArguments_closure1: function _EvaluateVisitor__evaluateMacroArguments_closure1(t0) {
  18445. this.named = t0;
  18446. },
  18447. _EvaluateVisitor__evaluateMacroArguments_closure2: function _EvaluateVisitor__evaluateMacroArguments_closure2() {
  18448. },
  18449. _EvaluateVisitor__addRestMap_closure: function _EvaluateVisitor__addRestMap_closure(t0) {
  18450. this.T = t0;
  18451. },
  18452. _EvaluateVisitor__addRestMap_closure0: function _EvaluateVisitor__addRestMap_closure0(t0, t1, t2, t3, t4) {
  18453. var _ = this;
  18454. _._box_0 = t0;
  18455. _.$this = t1;
  18456. _.values = t2;
  18457. _.map = t3;
  18458. _.nodeWithSpan = t4;
  18459. },
  18460. _EvaluateVisitor__verifyArguments_closure: function _EvaluateVisitor__verifyArguments_closure(t0, t1, t2) {
  18461. this.$arguments = t0;
  18462. this.positional = t1;
  18463. this.named = t2;
  18464. },
  18465. _EvaluateVisitor_visitStringExpression_closure: function _EvaluateVisitor_visitStringExpression_closure(t0) {
  18466. this.$this = t0;
  18467. },
  18468. _EvaluateVisitor_visitCssAtRule_closure: function _EvaluateVisitor_visitCssAtRule_closure(t0, t1) {
  18469. this.$this = t0;
  18470. this.node = t1;
  18471. },
  18472. _EvaluateVisitor_visitCssAtRule_closure0: function _EvaluateVisitor_visitCssAtRule_closure0() {
  18473. },
  18474. _EvaluateVisitor_visitCssKeyframeBlock_closure: function _EvaluateVisitor_visitCssKeyframeBlock_closure(t0, t1) {
  18475. this.$this = t0;
  18476. this.node = t1;
  18477. },
  18478. _EvaluateVisitor_visitCssKeyframeBlock_closure0: function _EvaluateVisitor_visitCssKeyframeBlock_closure0() {
  18479. },
  18480. _EvaluateVisitor_visitCssMediaRule_closure: function _EvaluateVisitor_visitCssMediaRule_closure(t0, t1, t2) {
  18481. this.$this = t0;
  18482. this.mergedQueries = t1;
  18483. this.node = t2;
  18484. },
  18485. _EvaluateVisitor_visitCssMediaRule__closure: function _EvaluateVisitor_visitCssMediaRule__closure(t0, t1) {
  18486. this.$this = t0;
  18487. this.node = t1;
  18488. },
  18489. _EvaluateVisitor_visitCssMediaRule___closure: function _EvaluateVisitor_visitCssMediaRule___closure(t0, t1) {
  18490. this.$this = t0;
  18491. this.node = t1;
  18492. },
  18493. _EvaluateVisitor_visitCssMediaRule_closure0: function _EvaluateVisitor_visitCssMediaRule_closure0(t0) {
  18494. this.mergedQueries = t0;
  18495. },
  18496. _EvaluateVisitor_visitCssStyleRule_closure: function _EvaluateVisitor_visitCssStyleRule_closure(t0, t1, t2) {
  18497. this.$this = t0;
  18498. this.rule = t1;
  18499. this.node = t2;
  18500. },
  18501. _EvaluateVisitor_visitCssStyleRule__closure: function _EvaluateVisitor_visitCssStyleRule__closure(t0, t1) {
  18502. this.$this = t0;
  18503. this.node = t1;
  18504. },
  18505. _EvaluateVisitor_visitCssStyleRule_closure0: function _EvaluateVisitor_visitCssStyleRule_closure0() {
  18506. },
  18507. _EvaluateVisitor_visitCssSupportsRule_closure: function _EvaluateVisitor_visitCssSupportsRule_closure(t0, t1) {
  18508. this.$this = t0;
  18509. this.node = t1;
  18510. },
  18511. _EvaluateVisitor_visitCssSupportsRule__closure: function _EvaluateVisitor_visitCssSupportsRule__closure(t0, t1) {
  18512. this.$this = t0;
  18513. this.node = t1;
  18514. },
  18515. _EvaluateVisitor_visitCssSupportsRule_closure0: function _EvaluateVisitor_visitCssSupportsRule_closure0() {
  18516. },
  18517. _EvaluateVisitor__performInterpolation_closure: function _EvaluateVisitor__performInterpolation_closure(t0, t1) {
  18518. this.$this = t0;
  18519. this.warnForColor = t1;
  18520. },
  18521. _EvaluateVisitor__serialize_closure: function _EvaluateVisitor__serialize_closure(t0, t1) {
  18522. this.value = t0;
  18523. this.quote = t1;
  18524. },
  18525. _EvaluateVisitor__stackTrace_closure: function _EvaluateVisitor__stackTrace_closure(t0) {
  18526. this.$this = t0;
  18527. },
  18528. _ImportedCssVisitor: function _ImportedCssVisitor(t0) {
  18529. this._visitor = t0;
  18530. },
  18531. _ImportedCssVisitor_visitCssAtRule_closure: function _ImportedCssVisitor_visitCssAtRule_closure() {
  18532. },
  18533. _ImportedCssVisitor_visitCssMediaRule_closure: function _ImportedCssVisitor_visitCssMediaRule_closure(t0) {
  18534. this.hasBeenMerged = t0;
  18535. },
  18536. _ImportedCssVisitor_visitCssStyleRule_closure: function _ImportedCssVisitor_visitCssStyleRule_closure() {
  18537. },
  18538. _ImportedCssVisitor_visitCssSupportsRule_closure: function _ImportedCssVisitor_visitCssSupportsRule_closure() {
  18539. },
  18540. _ArgumentResults: function _ArgumentResults(t0, t1, t2, t3, t4) {
  18541. var _ = this;
  18542. _.positional = t0;
  18543. _.positionalNodes = t1;
  18544. _.named = t2;
  18545. _.namedNodes = t3;
  18546. _.separator = t4;
  18547. },
  18548. _collectToList: function(element, soFar, $T) {
  18549. if (soFar == null)
  18550. soFar = H.setRuntimeTypeInfo([], $T._eval$1("JSArray<0>"));
  18551. J.add$1$ax(soFar, element);
  18552. return soFar;
  18553. },
  18554. _debounceAggregate: function(duration, collect, leading, trailing, $T, $R) {
  18555. var t1 = {};
  18556. t1.soFar = t1.timer = null;
  18557. t1.emittedLatestAsLeading = t1.shouldClose = false;
  18558. return new L._StreamTransformer(new R._debounceAggregate_closure(t1, collect, false, duration, true), new R._debounceAggregate_closure0(t1, true), H.instantiate1(L.from_handlers__StreamTransformer__defaultHandleError$closure(), $R), $T._eval$1("@<0>")._bind$1($R)._eval$1("_StreamTransformer<1,2>"));
  18559. },
  18560. _debounceAggregate_closure: function _debounceAggregate_closure(t0, t1, t2, t3, t4) {
  18561. var _ = this;
  18562. _._box_0 = t0;
  18563. _.collect = t1;
  18564. _.leading = t2;
  18565. _.duration = t3;
  18566. _.trailing = t4;
  18567. },
  18568. _debounceAggregate__closure: function _debounceAggregate__closure(t0, t1, t2) {
  18569. this._box_0 = t0;
  18570. this.trailing = t1;
  18571. this.sink = t2;
  18572. },
  18573. _debounceAggregate_closure0: function _debounceAggregate_closure0(t0, t1) {
  18574. this._box_0 = t0;
  18575. this.trailing = t1;
  18576. },
  18577. ModifiableCssComment0: function ModifiableCssComment0(t0, t1) {
  18578. var _ = this;
  18579. _.text = t0;
  18580. _.span = t1;
  18581. _._node2$_indexInParent = _._node2$_parent = null;
  18582. _.isGroupEnd = false;
  18583. },
  18584. _EvaluateVisitor$1: function(functions, importCache, logger, nodeImporter, sourceMap) {
  18585. var t6,
  18586. t1 = type$.String,
  18587. t2 = type$.Uri,
  18588. t3 = type$.Module_Callable_2,
  18589. t4 = type$.AstNode_2,
  18590. t5 = H.setRuntimeTypeInfo([], type$.JSArray_Tuple2_String_AstNode_2);
  18591. if (nodeImporter == null)
  18592. t6 = importCache == null ? R.ImportCache$none(logger) : importCache;
  18593. else
  18594. t6 = null;
  18595. t1 = new R._EvaluateVisitor1(t6, nodeImporter, P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Callable_2), P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), P.LinkedHashMap_LinkedHashMap$_empty(t2, t4), C.C_StderrLogger, sourceMap, O.Environment$0(sourceMap), P.LinkedHashSet_LinkedHashSet$_empty(t1), P.LinkedHashMap_LinkedHashMap$_empty(t2, t4), t5, C.Configuration_Map_empty_null_true0);
  18596. t1._EvaluateVisitor$5$functions$importCache$logger$nodeImporter$sourceMap1(functions, importCache, logger, nodeImporter, sourceMap);
  18597. return t1;
  18598. },
  18599. _ArgumentResults$1: function(positional, named, separator, namedNodes, positionalNodes) {
  18600. return new R._ArgumentResults1(positional, positionalNodes, named, namedNodes, separator);
  18601. },
  18602. _EvaluateVisitor1: function _EvaluateVisitor1(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12) {
  18603. var _ = this;
  18604. _._evaluate0$_importCache = t0;
  18605. _._nodeImporter = t1;
  18606. _._evaluate0$_builtInFunctions = t2;
  18607. _._evaluate0$_builtInModules = t3;
  18608. _._evaluate0$_modules = t4;
  18609. _._evaluate0$_moduleNodes = t5;
  18610. _._evaluate0$_logger = t6;
  18611. _._evaluate0$_sourceMap = t7;
  18612. _._evaluate0$_environment = t8;
  18613. _._evaluate0$_declarationName = _._evaluate0$_parent = _._evaluate0$_mediaQueries = _._evaluate0$_styleRule = null;
  18614. _._evaluate0$_member = "root stylesheet";
  18615. _._evaluate0$_importSpan = _._evaluate0$_callableNode = null;
  18616. _._evaluate0$_inKeyframes = _._evaluate0$_atRootExcludingStyleRule = _._evaluate0$_inUnknownAtRule = _._evaluate0$_inFunction = false;
  18617. _._includedFiles = t9;
  18618. _._evaluate0$_activeModules = t10;
  18619. _._evaluate0$_stack = t11;
  18620. _._evaluate0$_extender = _._evaluate0$_outOfOrderImports = _._evaluate0$_endOfImports = _._evaluate0$_root = _._evaluate0$_stylesheet = _._evaluate0$_importer = null;
  18621. _._evaluate0$_configuration = t12;
  18622. },
  18623. _EvaluateVisitor_closure19: function _EvaluateVisitor_closure19(t0) {
  18624. this.$this = t0;
  18625. },
  18626. _EvaluateVisitor_closure20: function _EvaluateVisitor_closure20(t0) {
  18627. this.$this = t0;
  18628. },
  18629. _EvaluateVisitor_closure21: function _EvaluateVisitor_closure21(t0) {
  18630. this.$this = t0;
  18631. },
  18632. _EvaluateVisitor_closure22: function _EvaluateVisitor_closure22(t0) {
  18633. this.$this = t0;
  18634. },
  18635. _EvaluateVisitor_closure23: function _EvaluateVisitor_closure23(t0) {
  18636. this.$this = t0;
  18637. },
  18638. _EvaluateVisitor_closure24: function _EvaluateVisitor_closure24(t0) {
  18639. this.$this = t0;
  18640. },
  18641. _EvaluateVisitor_closure25: function _EvaluateVisitor_closure25(t0) {
  18642. this.$this = t0;
  18643. },
  18644. _EvaluateVisitor_closure26: function _EvaluateVisitor_closure26(t0) {
  18645. this.$this = t0;
  18646. },
  18647. _EvaluateVisitor__closure13: function _EvaluateVisitor__closure13(t0, t1, t2) {
  18648. this.$this = t0;
  18649. this.name = t1;
  18650. this.module = t2;
  18651. },
  18652. _EvaluateVisitor_closure27: function _EvaluateVisitor_closure27(t0) {
  18653. this.$this = t0;
  18654. },
  18655. _EvaluateVisitor__closure11: function _EvaluateVisitor__closure11() {
  18656. },
  18657. _EvaluateVisitor__closure12: function _EvaluateVisitor__closure12() {
  18658. },
  18659. _EvaluateVisitor_closure28: function _EvaluateVisitor_closure28(t0) {
  18660. this.$this = t0;
  18661. },
  18662. _EvaluateVisitor__closure9: function _EvaluateVisitor__closure9(t0, t1) {
  18663. this.values = t0;
  18664. this.span = t1;
  18665. },
  18666. _EvaluateVisitor__closure10: function _EvaluateVisitor__closure10(t0) {
  18667. this.$this = t0;
  18668. },
  18669. _EvaluateVisitor_run_closure1: function _EvaluateVisitor_run_closure1(t0, t1, t2) {
  18670. this.$this = t0;
  18671. this.node = t1;
  18672. this.importer = t2;
  18673. },
  18674. _EvaluateVisitor__withWarnCallback_closure1: function _EvaluateVisitor__withWarnCallback_closure1(t0) {
  18675. this.$this = t0;
  18676. },
  18677. _EvaluateVisitor__loadModule_closure1: function _EvaluateVisitor__loadModule_closure1(t0, t1, t2, t3, t4, t5, t6) {
  18678. var _ = this;
  18679. _.$this = t0;
  18680. _.url = t1;
  18681. _.nodeWithSpan = t2;
  18682. _.baseUrl = t3;
  18683. _.namesInErrors = t4;
  18684. _.configuration = t5;
  18685. _.callback = t6;
  18686. },
  18687. _EvaluateVisitor__execute_closure1: function _EvaluateVisitor__execute_closure1(t0, t1, t2, t3, t4, t5) {
  18688. var _ = this;
  18689. _._box_0 = t0;
  18690. _.$this = t1;
  18691. _.importer = t2;
  18692. _.stylesheet = t3;
  18693. _.extender = t4;
  18694. _.configuration = t5;
  18695. },
  18696. _EvaluateVisitor__combineCss_closure5: function _EvaluateVisitor__combineCss_closure5() {
  18697. },
  18698. _EvaluateVisitor__combineCss_closure6: function _EvaluateVisitor__combineCss_closure6(t0) {
  18699. this.selectors = t0;
  18700. },
  18701. _EvaluateVisitor__combineCss_closure7: function _EvaluateVisitor__combineCss_closure7() {
  18702. },
  18703. _EvaluateVisitor__extendModules_closure3: function _EvaluateVisitor__extendModules_closure3(t0) {
  18704. this.originalSelectors = t0;
  18705. },
  18706. _EvaluateVisitor__extendModules_closure4: function _EvaluateVisitor__extendModules_closure4() {
  18707. },
  18708. _EvaluateVisitor__topologicalModules_visitModule1: function _EvaluateVisitor__topologicalModules_visitModule1(t0, t1) {
  18709. this.seen = t0;
  18710. this.sorted = t1;
  18711. },
  18712. _EvaluateVisitor_visitAtRootRule_closure5: function _EvaluateVisitor_visitAtRootRule_closure5(t0, t1) {
  18713. this.$this = t0;
  18714. this.resolved = t1;
  18715. },
  18716. _EvaluateVisitor_visitAtRootRule_closure6: function _EvaluateVisitor_visitAtRootRule_closure6(t0, t1) {
  18717. this.$this = t0;
  18718. this.node = t1;
  18719. },
  18720. _EvaluateVisitor_visitAtRootRule_closure7: function _EvaluateVisitor_visitAtRootRule_closure7(t0, t1) {
  18721. this.$this = t0;
  18722. this.node = t1;
  18723. },
  18724. _EvaluateVisitor__scopeForAtRoot_closure11: function _EvaluateVisitor__scopeForAtRoot_closure11(t0, t1, t2) {
  18725. this.$this = t0;
  18726. this.newParent = t1;
  18727. this.node = t2;
  18728. },
  18729. _EvaluateVisitor__scopeForAtRoot_closure12: function _EvaluateVisitor__scopeForAtRoot_closure12(t0, t1) {
  18730. this.$this = t0;
  18731. this.innerScope = t1;
  18732. },
  18733. _EvaluateVisitor__scopeForAtRoot_closure13: function _EvaluateVisitor__scopeForAtRoot_closure13(t0, t1) {
  18734. this.$this = t0;
  18735. this.innerScope = t1;
  18736. },
  18737. _EvaluateVisitor__scopeForAtRoot__closure1: function _EvaluateVisitor__scopeForAtRoot__closure1(t0, t1) {
  18738. this.innerScope = t0;
  18739. this.callback = t1;
  18740. },
  18741. _EvaluateVisitor__scopeForAtRoot_closure14: function _EvaluateVisitor__scopeForAtRoot_closure14(t0, t1) {
  18742. this.$this = t0;
  18743. this.innerScope = t1;
  18744. },
  18745. _EvaluateVisitor__scopeForAtRoot_closure15: function _EvaluateVisitor__scopeForAtRoot_closure15() {
  18746. },
  18747. _EvaluateVisitor__scopeForAtRoot_closure16: function _EvaluateVisitor__scopeForAtRoot_closure16(t0, t1) {
  18748. this.$this = t0;
  18749. this.innerScope = t1;
  18750. },
  18751. _EvaluateVisitor_visitContentRule_closure1: function _EvaluateVisitor_visitContentRule_closure1(t0, t1) {
  18752. this.$this = t0;
  18753. this.content = t1;
  18754. },
  18755. _EvaluateVisitor_visitDeclaration_closure1: function _EvaluateVisitor_visitDeclaration_closure1(t0, t1) {
  18756. this.$this = t0;
  18757. this.node = t1;
  18758. },
  18759. _EvaluateVisitor_visitEachRule_closure5: function _EvaluateVisitor_visitEachRule_closure5(t0, t1, t2) {
  18760. this.$this = t0;
  18761. this.node = t1;
  18762. this.nodeWithSpan = t2;
  18763. },
  18764. _EvaluateVisitor_visitEachRule_closure6: function _EvaluateVisitor_visitEachRule_closure6(t0, t1, t2) {
  18765. this.$this = t0;
  18766. this.node = t1;
  18767. this.nodeWithSpan = t2;
  18768. },
  18769. _EvaluateVisitor_visitEachRule_closure7: function _EvaluateVisitor_visitEachRule_closure7(t0, t1, t2, t3) {
  18770. var _ = this;
  18771. _.$this = t0;
  18772. _.list = t1;
  18773. _.setVariables = t2;
  18774. _.node = t3;
  18775. },
  18776. _EvaluateVisitor_visitEachRule__closure1: function _EvaluateVisitor_visitEachRule__closure1(t0, t1, t2) {
  18777. this.$this = t0;
  18778. this.setVariables = t1;
  18779. this.node = t2;
  18780. },
  18781. _EvaluateVisitor_visitEachRule___closure1: function _EvaluateVisitor_visitEachRule___closure1(t0) {
  18782. this.$this = t0;
  18783. },
  18784. _EvaluateVisitor_visitExtendRule_closure1: function _EvaluateVisitor_visitExtendRule_closure1(t0, t1) {
  18785. this.$this = t0;
  18786. this.targetText = t1;
  18787. },
  18788. _EvaluateVisitor_visitAtRule_closure3: function _EvaluateVisitor_visitAtRule_closure3(t0, t1) {
  18789. this.$this = t0;
  18790. this.node = t1;
  18791. },
  18792. _EvaluateVisitor_visitAtRule__closure1: function _EvaluateVisitor_visitAtRule__closure1(t0, t1) {
  18793. this.$this = t0;
  18794. this.node = t1;
  18795. },
  18796. _EvaluateVisitor_visitAtRule_closure4: function _EvaluateVisitor_visitAtRule_closure4() {
  18797. },
  18798. _EvaluateVisitor_visitForRule_closure9: function _EvaluateVisitor_visitForRule_closure9(t0, t1) {
  18799. this.$this = t0;
  18800. this.node = t1;
  18801. },
  18802. _EvaluateVisitor_visitForRule_closure10: function _EvaluateVisitor_visitForRule_closure10(t0, t1) {
  18803. this.$this = t0;
  18804. this.node = t1;
  18805. },
  18806. _EvaluateVisitor_visitForRule_closure11: function _EvaluateVisitor_visitForRule_closure11(t0, t1) {
  18807. this.fromNumber = t0;
  18808. this.toNumber = t1;
  18809. },
  18810. _EvaluateVisitor_visitForRule_closure12: function _EvaluateVisitor_visitForRule_closure12(t0) {
  18811. this.toNumber = t0;
  18812. },
  18813. _EvaluateVisitor_visitForRule_closure13: function _EvaluateVisitor_visitForRule_closure13(t0, t1, t2, t3, t4) {
  18814. var _ = this;
  18815. _._box_0 = t0;
  18816. _.$this = t1;
  18817. _.node = t2;
  18818. _.from = t3;
  18819. _.direction = t4;
  18820. },
  18821. _EvaluateVisitor_visitForRule__closure1: function _EvaluateVisitor_visitForRule__closure1(t0) {
  18822. this.$this = t0;
  18823. },
  18824. _EvaluateVisitor_visitForwardRule_closure3: function _EvaluateVisitor_visitForwardRule_closure3(t0, t1) {
  18825. this.$this = t0;
  18826. this.node = t1;
  18827. },
  18828. _EvaluateVisitor_visitForwardRule_closure4: function _EvaluateVisitor_visitForwardRule_closure4(t0, t1) {
  18829. this.$this = t0;
  18830. this.node = t1;
  18831. },
  18832. _EvaluateVisitor__assertConfigurationIsEmpty_closure1: function _EvaluateVisitor__assertConfigurationIsEmpty_closure1(t0, t1, t2) {
  18833. this.$this = t0;
  18834. this.only = t1;
  18835. this.nameInError = t2;
  18836. },
  18837. _EvaluateVisitor_visitIfRule_closure1: function _EvaluateVisitor_visitIfRule_closure1(t0, t1) {
  18838. this._box_0 = t0;
  18839. this.$this = t1;
  18840. },
  18841. _EvaluateVisitor_visitIfRule__closure1: function _EvaluateVisitor_visitIfRule__closure1(t0) {
  18842. this.$this = t0;
  18843. },
  18844. _EvaluateVisitor__visitDynamicImport_closure1: function _EvaluateVisitor__visitDynamicImport_closure1(t0, t1) {
  18845. this.$this = t0;
  18846. this.$import = t1;
  18847. },
  18848. _EvaluateVisitor__visitDynamicImport__closure1: function _EvaluateVisitor__visitDynamicImport__closure1(t0, t1, t2, t3, t4) {
  18849. var _ = this;
  18850. _._box_0 = t0;
  18851. _.$this = t1;
  18852. _.importer = t2;
  18853. _.stylesheet = t3;
  18854. _.environment = t4;
  18855. },
  18856. _EvaluateVisitor_visitIncludeRule_closure5: function _EvaluateVisitor_visitIncludeRule_closure5(t0, t1) {
  18857. this.$this = t0;
  18858. this.node = t1;
  18859. },
  18860. _EvaluateVisitor_visitIncludeRule_closure6: function _EvaluateVisitor_visitIncludeRule_closure6(t0) {
  18861. this.node = t0;
  18862. },
  18863. _EvaluateVisitor_visitIncludeRule_closure7: function _EvaluateVisitor_visitIncludeRule_closure7(t0, t1, t2, t3) {
  18864. var _ = this;
  18865. _.$this = t0;
  18866. _.contentCallable = t1;
  18867. _.mixin = t2;
  18868. _.nodeWithSpan = t3;
  18869. },
  18870. _EvaluateVisitor_visitIncludeRule__closure1: function _EvaluateVisitor_visitIncludeRule__closure1(t0, t1, t2) {
  18871. this.$this = t0;
  18872. this.mixin = t1;
  18873. this.nodeWithSpan = t2;
  18874. },
  18875. _EvaluateVisitor_visitIncludeRule___closure1: function _EvaluateVisitor_visitIncludeRule___closure1(t0, t1, t2) {
  18876. this.$this = t0;
  18877. this.mixin = t1;
  18878. this.nodeWithSpan = t2;
  18879. },
  18880. _EvaluateVisitor_visitIncludeRule____closure1: function _EvaluateVisitor_visitIncludeRule____closure1(t0, t1) {
  18881. this.$this = t0;
  18882. this.statement = t1;
  18883. },
  18884. _EvaluateVisitor_visitMediaRule_closure3: function _EvaluateVisitor_visitMediaRule_closure3(t0, t1, t2, t3) {
  18885. var _ = this;
  18886. _.$this = t0;
  18887. _.mergedQueries = t1;
  18888. _.queries = t2;
  18889. _.node = t3;
  18890. },
  18891. _EvaluateVisitor_visitMediaRule__closure1: function _EvaluateVisitor_visitMediaRule__closure1(t0, t1) {
  18892. this.$this = t0;
  18893. this.node = t1;
  18894. },
  18895. _EvaluateVisitor_visitMediaRule___closure1: function _EvaluateVisitor_visitMediaRule___closure1(t0, t1) {
  18896. this.$this = t0;
  18897. this.node = t1;
  18898. },
  18899. _EvaluateVisitor_visitMediaRule_closure4: function _EvaluateVisitor_visitMediaRule_closure4(t0) {
  18900. this.mergedQueries = t0;
  18901. },
  18902. _EvaluateVisitor__visitMediaQueries_closure1: function _EvaluateVisitor__visitMediaQueries_closure1(t0, t1) {
  18903. this.$this = t0;
  18904. this.resolved = t1;
  18905. },
  18906. _EvaluateVisitor_visitStyleRule_closure13: function _EvaluateVisitor_visitStyleRule_closure13(t0, t1) {
  18907. this.$this = t0;
  18908. this.selectorText = t1;
  18909. },
  18910. _EvaluateVisitor_visitStyleRule_closure14: function _EvaluateVisitor_visitStyleRule_closure14(t0, t1) {
  18911. this.$this = t0;
  18912. this.node = t1;
  18913. },
  18914. _EvaluateVisitor_visitStyleRule_closure15: function _EvaluateVisitor_visitStyleRule_closure15() {
  18915. },
  18916. _EvaluateVisitor_visitStyleRule_closure16: function _EvaluateVisitor_visitStyleRule_closure16(t0, t1) {
  18917. this.$this = t0;
  18918. this.selectorText = t1;
  18919. },
  18920. _EvaluateVisitor_visitStyleRule_closure17: function _EvaluateVisitor_visitStyleRule_closure17(t0, t1) {
  18921. this._box_0 = t0;
  18922. this.$this = t1;
  18923. },
  18924. _EvaluateVisitor_visitStyleRule_closure18: function _EvaluateVisitor_visitStyleRule_closure18(t0, t1, t2) {
  18925. this.$this = t0;
  18926. this.rule = t1;
  18927. this.node = t2;
  18928. },
  18929. _EvaluateVisitor_visitStyleRule__closure1: function _EvaluateVisitor_visitStyleRule__closure1(t0, t1) {
  18930. this.$this = t0;
  18931. this.node = t1;
  18932. },
  18933. _EvaluateVisitor_visitStyleRule_closure19: function _EvaluateVisitor_visitStyleRule_closure19() {
  18934. },
  18935. _EvaluateVisitor_visitSupportsRule_closure3: function _EvaluateVisitor_visitSupportsRule_closure3(t0, t1) {
  18936. this.$this = t0;
  18937. this.node = t1;
  18938. },
  18939. _EvaluateVisitor_visitSupportsRule__closure1: function _EvaluateVisitor_visitSupportsRule__closure1(t0, t1) {
  18940. this.$this = t0;
  18941. this.node = t1;
  18942. },
  18943. _EvaluateVisitor_visitSupportsRule_closure4: function _EvaluateVisitor_visitSupportsRule_closure4() {
  18944. },
  18945. _EvaluateVisitor_visitVariableDeclaration_closure5: function _EvaluateVisitor_visitVariableDeclaration_closure5(t0, t1, t2) {
  18946. this.$this = t0;
  18947. this.node = t1;
  18948. this.override = t2;
  18949. },
  18950. _EvaluateVisitor_visitVariableDeclaration_closure6: function _EvaluateVisitor_visitVariableDeclaration_closure6(t0, t1) {
  18951. this.$this = t0;
  18952. this.node = t1;
  18953. },
  18954. _EvaluateVisitor_visitVariableDeclaration_closure7: function _EvaluateVisitor_visitVariableDeclaration_closure7(t0, t1, t2) {
  18955. this.$this = t0;
  18956. this.node = t1;
  18957. this.value = t2;
  18958. },
  18959. _EvaluateVisitor_visitUseRule_closure1: function _EvaluateVisitor_visitUseRule_closure1(t0, t1) {
  18960. this.$this = t0;
  18961. this.node = t1;
  18962. },
  18963. _EvaluateVisitor_visitWarnRule_closure1: function _EvaluateVisitor_visitWarnRule_closure1(t0, t1) {
  18964. this.$this = t0;
  18965. this.node = t1;
  18966. },
  18967. _EvaluateVisitor_visitWhileRule_closure1: function _EvaluateVisitor_visitWhileRule_closure1(t0, t1) {
  18968. this.$this = t0;
  18969. this.node = t1;
  18970. },
  18971. _EvaluateVisitor_visitWhileRule__closure1: function _EvaluateVisitor_visitWhileRule__closure1(t0) {
  18972. this.$this = t0;
  18973. },
  18974. _EvaluateVisitor_visitBinaryOperationExpression_closure1: function _EvaluateVisitor_visitBinaryOperationExpression_closure1(t0, t1) {
  18975. this.$this = t0;
  18976. this.node = t1;
  18977. },
  18978. _EvaluateVisitor_visitVariableExpression_closure1: function _EvaluateVisitor_visitVariableExpression_closure1(t0, t1) {
  18979. this.$this = t0;
  18980. this.node = t1;
  18981. },
  18982. _EvaluateVisitor_visitListExpression_closure1: function _EvaluateVisitor_visitListExpression_closure1(t0) {
  18983. this.$this = t0;
  18984. },
  18985. _EvaluateVisitor_visitFunctionExpression_closure3: function _EvaluateVisitor_visitFunctionExpression_closure3(t0, t1, t2) {
  18986. this.$this = t0;
  18987. this.node = t1;
  18988. this.plainName = t2;
  18989. },
  18990. _EvaluateVisitor_visitFunctionExpression_closure4: function _EvaluateVisitor_visitFunctionExpression_closure4(t0, t1, t2) {
  18991. this._box_0 = t0;
  18992. this.$this = t1;
  18993. this.node = t2;
  18994. },
  18995. _EvaluateVisitor__runUserDefinedCallable_closure1: function _EvaluateVisitor__runUserDefinedCallable_closure1(t0, t1, t2, t3, t4) {
  18996. var _ = this;
  18997. _.$this = t0;
  18998. _.callable = t1;
  18999. _.evaluated = t2;
  19000. _.nodeWithSpan = t3;
  19001. _.run = t4;
  19002. },
  19003. _EvaluateVisitor__runUserDefinedCallable__closure1: function _EvaluateVisitor__runUserDefinedCallable__closure1(t0, t1, t2, t3, t4) {
  19004. var _ = this;
  19005. _.$this = t0;
  19006. _.evaluated = t1;
  19007. _.callable = t2;
  19008. _.nodeWithSpan = t3;
  19009. _.run = t4;
  19010. },
  19011. _EvaluateVisitor__runUserDefinedCallable___closure1: function _EvaluateVisitor__runUserDefinedCallable___closure1(t0, t1, t2, t3, t4) {
  19012. var _ = this;
  19013. _.$this = t0;
  19014. _.evaluated = t1;
  19015. _.callable = t2;
  19016. _.nodeWithSpan = t3;
  19017. _.run = t4;
  19018. },
  19019. _EvaluateVisitor__runUserDefinedCallable____closure1: function _EvaluateVisitor__runUserDefinedCallable____closure1() {
  19020. },
  19021. _EvaluateVisitor__runFunctionCallable_closure1: function _EvaluateVisitor__runFunctionCallable_closure1(t0, t1) {
  19022. this.$this = t0;
  19023. this.callable = t1;
  19024. },
  19025. _EvaluateVisitor__runBuiltInCallable_closure3: function _EvaluateVisitor__runBuiltInCallable_closure3(t0, t1, t2) {
  19026. this.overload = t0;
  19027. this.evaluated = t1;
  19028. this.namedSet = t2;
  19029. },
  19030. _EvaluateVisitor__runBuiltInCallable_closure4: function _EvaluateVisitor__runBuiltInCallable_closure4() {
  19031. },
  19032. _EvaluateVisitor__evaluateArguments_closure5: function _EvaluateVisitor__evaluateArguments_closure5(t0) {
  19033. this.$this = t0;
  19034. },
  19035. _EvaluateVisitor__evaluateArguments_closure6: function _EvaluateVisitor__evaluateArguments_closure6(t0) {
  19036. this.$this = t0;
  19037. },
  19038. _EvaluateVisitor__evaluateArguments_closure7: function _EvaluateVisitor__evaluateArguments_closure7(t0, t1, t2) {
  19039. this.named = t0;
  19040. this.namedNodes = t1;
  19041. this.restNodeForSpan = t2;
  19042. },
  19043. _EvaluateVisitor__evaluateMacroArguments_closure7: function _EvaluateVisitor__evaluateMacroArguments_closure7() {
  19044. },
  19045. _EvaluateVisitor__evaluateMacroArguments_closure8: function _EvaluateVisitor__evaluateMacroArguments_closure8() {
  19046. },
  19047. _EvaluateVisitor__evaluateMacroArguments_closure9: function _EvaluateVisitor__evaluateMacroArguments_closure9(t0) {
  19048. this.named = t0;
  19049. },
  19050. _EvaluateVisitor__evaluateMacroArguments_closure10: function _EvaluateVisitor__evaluateMacroArguments_closure10() {
  19051. },
  19052. _EvaluateVisitor__addRestMap_closure3: function _EvaluateVisitor__addRestMap_closure3(t0) {
  19053. this.T = t0;
  19054. },
  19055. _EvaluateVisitor__addRestMap_closure4: function _EvaluateVisitor__addRestMap_closure4(t0, t1, t2, t3, t4) {
  19056. var _ = this;
  19057. _._box_0 = t0;
  19058. _.$this = t1;
  19059. _.values = t2;
  19060. _.map = t3;
  19061. _.nodeWithSpan = t4;
  19062. },
  19063. _EvaluateVisitor__verifyArguments_closure1: function _EvaluateVisitor__verifyArguments_closure1(t0, t1, t2) {
  19064. this.$arguments = t0;
  19065. this.positional = t1;
  19066. this.named = t2;
  19067. },
  19068. _EvaluateVisitor_visitStringExpression_closure1: function _EvaluateVisitor_visitStringExpression_closure1(t0) {
  19069. this.$this = t0;
  19070. },
  19071. _EvaluateVisitor_visitCssAtRule_closure3: function _EvaluateVisitor_visitCssAtRule_closure3(t0, t1) {
  19072. this.$this = t0;
  19073. this.node = t1;
  19074. },
  19075. _EvaluateVisitor_visitCssAtRule_closure4: function _EvaluateVisitor_visitCssAtRule_closure4() {
  19076. },
  19077. _EvaluateVisitor_visitCssKeyframeBlock_closure3: function _EvaluateVisitor_visitCssKeyframeBlock_closure3(t0, t1) {
  19078. this.$this = t0;
  19079. this.node = t1;
  19080. },
  19081. _EvaluateVisitor_visitCssKeyframeBlock_closure4: function _EvaluateVisitor_visitCssKeyframeBlock_closure4() {
  19082. },
  19083. _EvaluateVisitor_visitCssMediaRule_closure3: function _EvaluateVisitor_visitCssMediaRule_closure3(t0, t1, t2) {
  19084. this.$this = t0;
  19085. this.mergedQueries = t1;
  19086. this.node = t2;
  19087. },
  19088. _EvaluateVisitor_visitCssMediaRule__closure1: function _EvaluateVisitor_visitCssMediaRule__closure1(t0, t1) {
  19089. this.$this = t0;
  19090. this.node = t1;
  19091. },
  19092. _EvaluateVisitor_visitCssMediaRule___closure1: function _EvaluateVisitor_visitCssMediaRule___closure1(t0, t1) {
  19093. this.$this = t0;
  19094. this.node = t1;
  19095. },
  19096. _EvaluateVisitor_visitCssMediaRule_closure4: function _EvaluateVisitor_visitCssMediaRule_closure4(t0) {
  19097. this.mergedQueries = t0;
  19098. },
  19099. _EvaluateVisitor_visitCssStyleRule_closure3: function _EvaluateVisitor_visitCssStyleRule_closure3(t0, t1, t2) {
  19100. this.$this = t0;
  19101. this.rule = t1;
  19102. this.node = t2;
  19103. },
  19104. _EvaluateVisitor_visitCssStyleRule__closure1: function _EvaluateVisitor_visitCssStyleRule__closure1(t0, t1) {
  19105. this.$this = t0;
  19106. this.node = t1;
  19107. },
  19108. _EvaluateVisitor_visitCssStyleRule_closure4: function _EvaluateVisitor_visitCssStyleRule_closure4() {
  19109. },
  19110. _EvaluateVisitor_visitCssSupportsRule_closure3: function _EvaluateVisitor_visitCssSupportsRule_closure3(t0, t1) {
  19111. this.$this = t0;
  19112. this.node = t1;
  19113. },
  19114. _EvaluateVisitor_visitCssSupportsRule__closure1: function _EvaluateVisitor_visitCssSupportsRule__closure1(t0, t1) {
  19115. this.$this = t0;
  19116. this.node = t1;
  19117. },
  19118. _EvaluateVisitor_visitCssSupportsRule_closure4: function _EvaluateVisitor_visitCssSupportsRule_closure4() {
  19119. },
  19120. _EvaluateVisitor__performInterpolation_closure1: function _EvaluateVisitor__performInterpolation_closure1(t0, t1) {
  19121. this.$this = t0;
  19122. this.warnForColor = t1;
  19123. },
  19124. _EvaluateVisitor__serialize_closure1: function _EvaluateVisitor__serialize_closure1(t0, t1) {
  19125. this.value = t0;
  19126. this.quote = t1;
  19127. },
  19128. _EvaluateVisitor__stackTrace_closure1: function _EvaluateVisitor__stackTrace_closure1(t0) {
  19129. this.$this = t0;
  19130. },
  19131. _ImportedCssVisitor1: function _ImportedCssVisitor1(t0) {
  19132. this._evaluate0$_visitor = t0;
  19133. },
  19134. _ImportedCssVisitor_visitCssAtRule_closure1: function _ImportedCssVisitor_visitCssAtRule_closure1() {
  19135. },
  19136. _ImportedCssVisitor_visitCssMediaRule_closure1: function _ImportedCssVisitor_visitCssMediaRule_closure1(t0) {
  19137. this.hasBeenMerged = t0;
  19138. },
  19139. _ImportedCssVisitor_visitCssStyleRule_closure1: function _ImportedCssVisitor_visitCssStyleRule_closure1() {
  19140. },
  19141. _ImportedCssVisitor_visitCssSupportsRule_closure1: function _ImportedCssVisitor_visitCssSupportsRule_closure1() {
  19142. },
  19143. _ArgumentResults1: function _ArgumentResults1(t0, t1, t2, t3, t4) {
  19144. var _ = this;
  19145. _.positional = t0;
  19146. _.positionalNodes = t1;
  19147. _.named = t2;
  19148. _.namedNodes = t3;
  19149. _.separator = t4;
  19150. },
  19151. ForwardedModuleView_ifNecessary0: function(inner, rule, $T) {
  19152. var t1;
  19153. if (rule.prefix == null)
  19154. if (rule.shownMixinsAndFunctions == null)
  19155. if (rule.shownVariables == null) {
  19156. t1 = rule.hiddenMixinsAndFunctions;
  19157. if (t1 != null) {
  19158. t1 = t1._base;
  19159. t1 = t1.get$isEmpty(t1);
  19160. } else
  19161. t1 = true;
  19162. if (t1) {
  19163. t1 = rule.hiddenVariables;
  19164. if (t1 != null) {
  19165. t1 = t1._base;
  19166. t1 = t1.get$isEmpty(t1);
  19167. } else
  19168. t1 = true;
  19169. } else
  19170. t1 = false;
  19171. } else
  19172. t1 = false;
  19173. else
  19174. t1 = false;
  19175. else
  19176. t1 = false;
  19177. if (t1)
  19178. return inner;
  19179. else
  19180. return R.ForwardedModuleView$0(inner, rule, $T);
  19181. },
  19182. ForwardedModuleView$0: function(_inner, _rule, $T) {
  19183. var t5,
  19184. t1 = _rule.prefix,
  19185. t2 = _rule.shownVariables,
  19186. t3 = _rule.hiddenVariables,
  19187. t4 = R.ForwardedModuleView__forwardedMap0(_inner.get$variables(), t1, t2, t3, type$.Value_2);
  19188. t2 = _inner.get$variableNodes() == null ? null : R.ForwardedModuleView__forwardedMap0(_inner.get$variableNodes(), t1, t2, t3, type$.AstNode_2);
  19189. t3 = _rule.shownMixinsAndFunctions;
  19190. t5 = _rule.hiddenMixinsAndFunctions;
  19191. return new R.ForwardedModuleView0(_inner, _rule, t4, t2, R.ForwardedModuleView__forwardedMap0(_inner.get$functions(_inner), t1, t3, t5, $T), R.ForwardedModuleView__forwardedMap0(_inner.get$mixins(), t1, t3, t5, $T), $T._eval$1("ForwardedModuleView0<0>"));
  19192. },
  19193. ForwardedModuleView__forwardedMap0: function(map, prefix, safelist, blocklist, $V) {
  19194. var t2,
  19195. t1 = prefix == null;
  19196. if (t1)
  19197. if (safelist == null)
  19198. if (blocklist != null) {
  19199. t2 = blocklist._base;
  19200. t2 = t2.get$isEmpty(t2);
  19201. } else
  19202. t2 = true;
  19203. else
  19204. t2 = false;
  19205. else
  19206. t2 = false;
  19207. if (t2)
  19208. return map;
  19209. if (!t1)
  19210. map = new F.PrefixedMapView0(map, prefix, $V._eval$1("PrefixedMapView0<0>"));
  19211. if (safelist != null)
  19212. map = K.LimitedMapView$safelist0(map, safelist, type$.String, $V);
  19213. else {
  19214. if (blocklist != null) {
  19215. t1 = blocklist._base;
  19216. t1 = t1.get$isNotEmpty(t1);
  19217. } else
  19218. t1 = false;
  19219. if (t1)
  19220. map = K.LimitedMapView$blocklist0(map, blocklist, type$.String, $V);
  19221. }
  19222. return map;
  19223. },
  19224. ForwardedModuleView0: function ForwardedModuleView0(t0, t1, t2, t3, t4, t5, t6) {
  19225. var _ = this;
  19226. _._forwarded_view0$_inner = t0;
  19227. _._forwarded_view0$_rule = t1;
  19228. _.variables = t2;
  19229. _.variableNodes = t3;
  19230. _.functions = t4;
  19231. _.mixins = t5;
  19232. _.$ti = t6;
  19233. },
  19234. ImportCache$none: function(logger) {
  19235. var t1 = type$.Uri;
  19236. return new R.ImportCache0(C.C_StderrLogger, P.LinkedHashMap_LinkedHashMap$_empty(type$.Tuple2_Uri_bool, type$.Tuple3_Importer_Uri_Uri_2), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Stylesheet), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.ImporterResult));
  19237. },
  19238. ImportCache0: function ImportCache0(t0, t1, t2, t3) {
  19239. var _ = this;
  19240. _._import_cache$_logger = t0;
  19241. _._import_cache$_canonicalizeCache = t1;
  19242. _._import_cache$_importCache = t2;
  19243. _._import_cache$_resultsCache = t3;
  19244. },
  19245. ImportCache_canonicalize_closure0: function ImportCache_canonicalize_closure0(t0, t1, t2) {
  19246. this.$this = t0;
  19247. this.url = t1;
  19248. this.forImport = t2;
  19249. },
  19250. ImportCache__canonicalize_closure0: function ImportCache__canonicalize_closure0(t0, t1) {
  19251. this.importer = t0;
  19252. this.url = t1;
  19253. },
  19254. ImportCache_importCanonical_closure0: function ImportCache_importCanonical_closure0(t0, t1, t2, t3) {
  19255. var _ = this;
  19256. _.$this = t0;
  19257. _.importer = t1;
  19258. _.canonicalUrl = t2;
  19259. _.originalUrl = t3;
  19260. },
  19261. ImportCache_humanize_closure2: function ImportCache_humanize_closure2(t0) {
  19262. this.canonicalUrl = t0;
  19263. },
  19264. ImportCache_humanize_closure3: function ImportCache_humanize_closure3() {
  19265. },
  19266. ImportCache_humanize_closure4: function ImportCache_humanize_closure4() {
  19267. },
  19268. RenderOptions: function RenderOptions() {
  19269. },
  19270. main0: function() {
  19271. new Uint8Array(0);
  19272. J.set$render$x(self.exports, P.allowInterop(B.node___render$closure()));
  19273. J.set$renderSync$x(self.exports, P.allowInterop(B.node___renderSync$closure()));
  19274. J.set$info$x(self.exports, "dart-sass\t1.26.8\t(Sass Compiler)\t[Dart]\ndart2js\t2.8.4\t(Dart Compiler)\t[Dart]");
  19275. J.set$types$x(self.exports, {Boolean: $.$get$booleanConstructor(), Color: $.$get$colorConstructor(), List: $.$get$listConstructor(), Map: $.$get$mapConstructor(), Null: $.$get$nullConstructor(), Number: $.$get$numberConstructor(), String: $.$get$stringConstructor(), Error: self.Error});
  19276. J.set$NULL$x(self.exports, C.C_SassNull);
  19277. J.set$TRUE$x(self.exports, C.SassBoolean_true);
  19278. J.set$FALSE$x(self.exports, C.SassBoolean_false);
  19279. J.set$cli_pkg_main_0_$x(self.exports, R._wrapMain(U.sass__main$closure()));
  19280. },
  19281. _wrapMain: function(main) {
  19282. if (type$.Object_Function._is(main))
  19283. return P.allowInterop(new R._wrapMain_closure(main));
  19284. else
  19285. return P.allowInterop(new R._wrapMain_closure0(main));
  19286. },
  19287. _Exports: function _Exports() {
  19288. },
  19289. _wrapMain_closure: function _wrapMain_closure(t0) {
  19290. this.main = t0;
  19291. },
  19292. _wrapMain_closure0: function _wrapMain_closure0(t0) {
  19293. this.main = t0;
  19294. },
  19295. UnprefixedMapView0: function UnprefixedMapView0(t0, t1, t2) {
  19296. this._unprefixed_map_view0$_map = t0;
  19297. this._unprefixed_map_view0$_prefix = t1;
  19298. this.$ti = t2;
  19299. },
  19300. _UnprefixedKeys0: function _UnprefixedKeys0(t0) {
  19301. this._unprefixed_map_view0$_view = t0;
  19302. },
  19303. _UnprefixedKeys_iterator_closure1: function _UnprefixedKeys_iterator_closure1(t0) {
  19304. this.$this = t0;
  19305. },
  19306. _UnprefixedKeys_iterator_closure2: function _UnprefixedKeys_iterator_closure2(t0) {
  19307. this.$this = t0;
  19308. }
  19309. },
  19310. T = {Expression: function Expression() {
  19311. }, NumberExpression: function NumberExpression(t0, t1, t2) {
  19312. this.value = t0;
  19313. this.unit = t1;
  19314. this.span = t2;
  19315. }, ParenthesizedExpression: function ParenthesizedExpression(t0, t1) {
  19316. this.expression = t0;
  19317. this.span = t1;
  19318. }, SelectorExpression: function SelectorExpression(t0) {
  19319. this.span = t0;
  19320. }, MixinRule: function MixinRule(t0, t1, t2, t3, t4, t5) {
  19321. var _ = this;
  19322. _.hasContent = t0;
  19323. _.name = t1;
  19324. _.$arguments = t2;
  19325. _.span = t3;
  19326. _.children = t4;
  19327. _.hasDeclarations = t5;
  19328. },
  19329. UseRule$: function(url, namespace, span, configuration) {
  19330. var t1 = new T.UseRule(url, namespace, configuration == null ? C.List_empty6 : P.List_List$unmodifiable(configuration, type$.ConfiguredVariable), span);
  19331. t1.UseRule$4$configuration(url, namespace, span, configuration);
  19332. return t1;
  19333. },
  19334. UseRule: function UseRule(t0, t1, t2, t3) {
  19335. var _ = this;
  19336. _.url = t0;
  19337. _.namespace = t1;
  19338. _.configuration = t2;
  19339. _.span = t3;
  19340. },
  19341. Selector: function Selector() {
  19342. },
  19343. EmptyExtender: function EmptyExtender() {
  19344. },
  19345. _prependParent: function(compound) {
  19346. var t2, t3, _i, _null = null,
  19347. t1 = compound.components,
  19348. first = C.JSArray_methods.get$first(t1);
  19349. if (first instanceof N.UniversalSelector)
  19350. return _null;
  19351. if (first instanceof F.TypeSelector) {
  19352. t2 = first.name;
  19353. if (t2.namespace != null)
  19354. return _null;
  19355. t3 = H.setRuntimeTypeInfo([], type$.JSArray_SimpleSelector);
  19356. t3.push(new M.ParentSelector(t2.name));
  19357. for (t1 = H.SubListIterable$(t1, 1, _null, H._arrayInstanceType(t1)._precomputed1), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();)
  19358. t3.push(t1.__internal$_current);
  19359. return X.CompoundSelector$(t3);
  19360. } else {
  19361. t2 = H.setRuntimeTypeInfo([], type$.JSArray_SimpleSelector);
  19362. t2.push(new M.ParentSelector(_null));
  19363. for (t3 = t1.length, _i = 0; _i < t3; ++_i)
  19364. t2.push(t1[_i]);
  19365. return X.CompoundSelector$(t2);
  19366. }
  19367. },
  19368. _function0: function($name, $arguments, callback) {
  19369. var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:selector");
  19370. return new Q.BuiltInCallable($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, C.StderrLogger_false).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value));
  19371. },
  19372. closure13: function closure13() {
  19373. },
  19374. _closure1: function _closure1() {
  19375. },
  19376. _closure2: function _closure2() {
  19377. },
  19378. closure12: function closure12() {
  19379. },
  19380. _closure: function _closure() {
  19381. },
  19382. _closure0: function _closure0() {
  19383. },
  19384. __closure: function __closure(t0) {
  19385. this.parent = t0;
  19386. },
  19387. closure11: function closure11() {
  19388. },
  19389. closure10: function closure10() {
  19390. },
  19391. closure9: function closure9() {
  19392. },
  19393. closure16: function closure16() {
  19394. },
  19395. closure15: function closure15() {
  19396. },
  19397. _closure3: function _closure3() {
  19398. },
  19399. closure14: function closure14() {
  19400. },
  19401. TrackingLogger: function TrackingLogger(t0) {
  19402. this._tracking$_logger = t0;
  19403. this._emittedDebug = this._emittedWarning = false;
  19404. },
  19405. SelectorParser: function SelectorParser(t0, t1, t2, t3) {
  19406. var _ = this;
  19407. _._allowParent = t0;
  19408. _._allowPlaceholder = t1;
  19409. _.scanner = t2;
  19410. _.logger = t3;
  19411. },
  19412. SelectorParser_parse_closure: function SelectorParser_parse_closure(t0) {
  19413. this.$this = t0;
  19414. },
  19415. SelectorParser_parseCompoundSelector_closure: function SelectorParser_parseCompoundSelector_closure(t0) {
  19416. this.$this = t0;
  19417. },
  19418. SassNumber$: function(value, unit) {
  19419. var t1 = unit == null ? null : H.setRuntimeTypeInfo([unit], type$.JSArray_String);
  19420. t1 = t1 == null ? C.List_empty : P.List_List$unmodifiable(t1, type$.String);
  19421. return new T.SassNumber(value, t1, C.List_empty, null);
  19422. },
  19423. SassNumber$withUnits: function(value, denominatorUnits, numeratorUnits) {
  19424. var t1 = numeratorUnits == null ? C.List_empty : P.List_List$unmodifiable(numeratorUnits, type$.String);
  19425. return new T.SassNumber(value, t1, denominatorUnits == null ? C.List_empty : P.List_List$unmodifiable(denominatorUnits, type$.String), null);
  19426. },
  19427. SassNumber: function SassNumber(t0, t1, t2, t3) {
  19428. var _ = this;
  19429. _.value = t0;
  19430. _.numeratorUnits = t1;
  19431. _.denominatorUnits = t2;
  19432. _.asSlash = t3;
  19433. },
  19434. SassNumber_valueInUnits_closure: function SassNumber_valueInUnits_closure(t0, t1, t2) {
  19435. this._box_0 = t0;
  19436. this.$this = t1;
  19437. this.newNumerator = t2;
  19438. },
  19439. SassNumber_valueInUnits_closure0: function SassNumber_valueInUnits_closure0(t0, t1, t2) {
  19440. this.$this = t0;
  19441. this.newNumerators = t1;
  19442. this.newDenominators = t2;
  19443. },
  19444. SassNumber_valueInUnits_closure1: function SassNumber_valueInUnits_closure1(t0, t1, t2) {
  19445. this._box_0 = t0;
  19446. this.$this = t1;
  19447. this.newDenominator = t2;
  19448. },
  19449. SassNumber_valueInUnits_closure2: function SassNumber_valueInUnits_closure2(t0, t1, t2) {
  19450. this.$this = t0;
  19451. this.newNumerators = t1;
  19452. this.newDenominators = t2;
  19453. },
  19454. SassNumber_modulo_closure: function SassNumber_modulo_closure() {
  19455. },
  19456. SassNumber_plus_closure: function SassNumber_plus_closure() {
  19457. },
  19458. SassNumber_minus_closure: function SassNumber_minus_closure() {
  19459. },
  19460. SassNumber__multiplyUnits_closure: function SassNumber__multiplyUnits_closure(t0, t1, t2) {
  19461. this._box_0 = t0;
  19462. this.$this = t1;
  19463. this.numerator = t2;
  19464. },
  19465. SassNumber__multiplyUnits_closure0: function SassNumber__multiplyUnits_closure0(t0, t1) {
  19466. this.newNumerators = t0;
  19467. this.numerator = t1;
  19468. },
  19469. SassNumber__multiplyUnits_closure1: function SassNumber__multiplyUnits_closure1(t0, t1, t2) {
  19470. this._box_0 = t0;
  19471. this.$this = t1;
  19472. this.numerator = t2;
  19473. },
  19474. SassNumber__multiplyUnits_closure2: function SassNumber__multiplyUnits_closure2(t0, t1) {
  19475. this.newNumerators = t0;
  19476. this.numerator = t1;
  19477. },
  19478. SassNumber__areAnyConvertible_closure: function SassNumber__areAnyConvertible_closure(t0, t1) {
  19479. this.$this = t0;
  19480. this.units2 = t1;
  19481. },
  19482. SassNumber__canonicalMultiplier_closure: function SassNumber__canonicalMultiplier_closure() {
  19483. },
  19484. SingleMapping_SingleMapping$fromEntries: function(entries) {
  19485. var lines, t2, t3, urls, t4, files, t5, t6, targetEntries, lineNum, _i, sourceEntry, sourceUrl, t7, urlId, _null = null,
  19486. t1 = type$.dynamic,
  19487. sourceEntries = P.List_List$from(entries, true, t1);
  19488. C.JSArray_methods.sort$0(sourceEntries);
  19489. lines = H.setRuntimeTypeInfo([], type$.JSArray_TargetLineEntry);
  19490. t2 = type$.String;
  19491. t3 = type$.int;
  19492. urls = P.LinkedHashMap_LinkedHashMap$_empty(t2, t3);
  19493. t4 = type$.SourceFile;
  19494. files = P.LinkedHashMap_LinkedHashMap$_empty(t3, t4);
  19495. for (t5 = sourceEntries.length, t6 = type$.JSArray_TargetEntry, targetEntries = _null, lineNum = targetEntries, _i = 0; _i < sourceEntries.length; sourceEntries.length === t5 || (0, H.throwConcurrentModificationError)(sourceEntries), ++_i) {
  19496. sourceEntry = sourceEntries[_i];
  19497. if (lineNum == null || sourceEntry.get$target().get$line() > lineNum) {
  19498. lineNum = sourceEntry.get$target().get$line();
  19499. targetEntries = H.setRuntimeTypeInfo([], t6);
  19500. lines.push(new T.TargetLineEntry(lineNum, targetEntries));
  19501. }
  19502. if (sourceEntry.get$source() == null)
  19503. targetEntries.push(new T.TargetEntry(sourceEntry.get$target().get$column(), _null, _null, _null, _null));
  19504. else {
  19505. sourceUrl = sourceEntry.get$source().get$sourceUrl();
  19506. t7 = sourceUrl == null ? "" : sourceUrl.toString$0(0);
  19507. urlId = urls.putIfAbsent$2(t7, new T.SingleMapping_SingleMapping$fromEntries_closure(urls));
  19508. if (sourceEntry.get$source() instanceof Y.FileLocation)
  19509. files.putIfAbsent$2(urlId, new T.SingleMapping_SingleMapping$fromEntries_closure0(sourceEntry));
  19510. sourceEntry.get$identifierName();
  19511. targetEntries.push(new T.TargetEntry(sourceEntry.get$target().get$column(), urlId, sourceEntry.get$source().get$line(), sourceEntry.get$source().get$column(), _null));
  19512. }
  19513. }
  19514. t5 = urls.get$values();
  19515. t4 = H.MappedIterable_MappedIterable(t5, new T.SingleMapping_SingleMapping$fromEntries_closure1(files), H._instanceType(t5)._eval$1("Iterable.E"), t4);
  19516. t4 = P.List_List$from(t4, true, H._instanceType(t4)._eval$1("Iterable.E"));
  19517. t5 = urls.get$keys();
  19518. t5 = P.List_List$from(t5, true, H._instanceType(t5)._eval$1("Iterable.E"));
  19519. t3 = P.LinkedHashMap_LinkedHashMap$_empty(t2, t3).get$keys();
  19520. return new T.SingleMapping(t5, P.List_List$from(t3, true, H._instanceType(t3)._eval$1("Iterable.E")), t4, lines, _null, P.LinkedHashMap_LinkedHashMap$_empty(t2, t1));
  19521. },
  19522. Mapping: function Mapping() {
  19523. },
  19524. SingleMapping: function SingleMapping(t0, t1, t2, t3, t4, t5) {
  19525. var _ = this;
  19526. _.urls = t0;
  19527. _.names = t1;
  19528. _.files = t2;
  19529. _.lines = t3;
  19530. _.targetUrl = t4;
  19531. _.sourceRoot = null;
  19532. _.extensions = t5;
  19533. },
  19534. SingleMapping_SingleMapping$fromEntries_closure: function SingleMapping_SingleMapping$fromEntries_closure(t0) {
  19535. this.urls = t0;
  19536. },
  19537. SingleMapping_SingleMapping$fromEntries_closure0: function SingleMapping_SingleMapping$fromEntries_closure0(t0) {
  19538. this.sourceEntry = t0;
  19539. },
  19540. SingleMapping_SingleMapping$fromEntries_closure1: function SingleMapping_SingleMapping$fromEntries_closure1(t0) {
  19541. this.files = t0;
  19542. },
  19543. SingleMapping_toJson_closure: function SingleMapping_toJson_closure() {
  19544. },
  19545. SingleMapping_toJson_closure0: function SingleMapping_toJson_closure0(t0) {
  19546. this.result = t0;
  19547. },
  19548. TargetLineEntry: function TargetLineEntry(t0, t1) {
  19549. this.line = t0;
  19550. this.entries = t1;
  19551. },
  19552. TargetEntry: function TargetEntry(t0, t1, t2, t3, t4) {
  19553. var _ = this;
  19554. _.column = t0;
  19555. _.sourceUrlId = t1;
  19556. _.sourceLine = t2;
  19557. _.sourceColumn = t3;
  19558. _.sourceNameId = t4;
  19559. },
  19560. LazyTrace: function LazyTrace(t0) {
  19561. this._thunk = t0;
  19562. this._lazy_trace$_inner = null;
  19563. },
  19564. LazyTrace_terse_closure: function LazyTrace_terse_closure(t0) {
  19565. this.$this = t0;
  19566. },
  19567. EmptyExtender0: function EmptyExtender0() {
  19568. },
  19569. Expression0: function Expression0() {
  19570. },
  19571. MixinRule0: function MixinRule0(t0, t1, t2, t3, t4, t5) {
  19572. var _ = this;
  19573. _.hasContent = t0;
  19574. _.name = t1;
  19575. _.$arguments = t2;
  19576. _.span = t3;
  19577. _.children = t4;
  19578. _.hasDeclarations = t5;
  19579. },
  19580. NumberExpression0: function NumberExpression0(t0, t1, t2) {
  19581. this.value = t0;
  19582. this.unit = t1;
  19583. this.span = t2;
  19584. },
  19585. _parseNumber: function(value, unit) {
  19586. var t1, invalidUnit, operands, numerator, denominator, numeratorUnits, denominatorUnits;
  19587. if (unit == null || unit.length === 0)
  19588. return new T.SassNumber0(value, C.List_empty, C.List_empty, null);
  19589. if (!J.contains$1$asx(unit, "*") && !C.JSString_methods.contains$1(unit, "/")) {
  19590. t1 = H.setRuntimeTypeInfo([unit], type$.JSArray_String);
  19591. t1 = P.List_List$unmodifiable(t1, type$.String);
  19592. return new T.SassNumber0(value, t1, C.List_empty, null);
  19593. }
  19594. invalidUnit = new P.ArgumentError(true, unit, "unit", "is invalid.");
  19595. operands = unit.split("/");
  19596. t1 = operands.length;
  19597. if (t1 > 2)
  19598. throw H.wrapException(invalidUnit);
  19599. numerator = operands[0];
  19600. denominator = t1 === 1 ? null : operands[1];
  19601. t1 = type$.JSArray_String;
  19602. numeratorUnits = numerator.length === 0 ? H.setRuntimeTypeInfo([], t1) : H.setRuntimeTypeInfo(numerator.split("*"), t1);
  19603. if (C.JSArray_methods.any$1(numeratorUnits, new T._parseNumber_closure()))
  19604. throw H.wrapException(invalidUnit);
  19605. denominatorUnits = denominator == null ? H.setRuntimeTypeInfo([], t1) : H.setRuntimeTypeInfo(denominator.split("*"), t1);
  19606. if (C.JSArray_methods.any$1(denominatorUnits, new T._parseNumber_closure0()))
  19607. throw H.wrapException(invalidUnit);
  19608. return T.SassNumber$withUnits0(value, denominatorUnits, numeratorUnits);
  19609. },
  19610. _NodeSassNumber: function _NodeSassNumber() {
  19611. },
  19612. closure218: function closure218() {
  19613. },
  19614. closure219: function closure219() {
  19615. },
  19616. closure220: function closure220() {
  19617. },
  19618. closure221: function closure221() {
  19619. },
  19620. closure222: function closure222() {
  19621. },
  19622. closure223: function closure223() {
  19623. },
  19624. _parseNumber_closure: function _parseNumber_closure() {
  19625. },
  19626. _parseNumber_closure0: function _parseNumber_closure0() {
  19627. },
  19628. SassNumber$0: function(value, unit) {
  19629. var t1 = unit == null ? null : H.setRuntimeTypeInfo([unit], type$.JSArray_String);
  19630. t1 = t1 == null ? C.List_empty : P.List_List$unmodifiable(t1, type$.String);
  19631. return new T.SassNumber0(value, t1, C.List_empty, null);
  19632. },
  19633. SassNumber$withUnits0: function(value, denominatorUnits, numeratorUnits) {
  19634. var t1 = numeratorUnits == null ? C.List_empty : P.List_List$unmodifiable(numeratorUnits, type$.String);
  19635. return new T.SassNumber0(value, t1, denominatorUnits == null ? C.List_empty : P.List_List$unmodifiable(denominatorUnits, type$.String), null);
  19636. },
  19637. SassNumber0: function SassNumber0(t0, t1, t2, t3) {
  19638. var _ = this;
  19639. _.value = t0;
  19640. _.numeratorUnits = t1;
  19641. _.denominatorUnits = t2;
  19642. _.asSlash = t3;
  19643. },
  19644. SassNumber_valueInUnits_closure3: function SassNumber_valueInUnits_closure3(t0, t1, t2) {
  19645. this._box_0 = t0;
  19646. this.$this = t1;
  19647. this.newNumerator = t2;
  19648. },
  19649. SassNumber_valueInUnits_closure4: function SassNumber_valueInUnits_closure4(t0, t1, t2) {
  19650. this.$this = t0;
  19651. this.newNumerators = t1;
  19652. this.newDenominators = t2;
  19653. },
  19654. SassNumber_valueInUnits_closure5: function SassNumber_valueInUnits_closure5(t0, t1, t2) {
  19655. this._box_0 = t0;
  19656. this.$this = t1;
  19657. this.newDenominator = t2;
  19658. },
  19659. SassNumber_valueInUnits_closure6: function SassNumber_valueInUnits_closure6(t0, t1, t2) {
  19660. this.$this = t0;
  19661. this.newNumerators = t1;
  19662. this.newDenominators = t2;
  19663. },
  19664. SassNumber_modulo_closure0: function SassNumber_modulo_closure0() {
  19665. },
  19666. SassNumber_plus_closure0: function SassNumber_plus_closure0() {
  19667. },
  19668. SassNumber_minus_closure0: function SassNumber_minus_closure0() {
  19669. },
  19670. SassNumber__multiplyUnits_closure3: function SassNumber__multiplyUnits_closure3(t0, t1, t2) {
  19671. this._box_0 = t0;
  19672. this.$this = t1;
  19673. this.numerator = t2;
  19674. },
  19675. SassNumber__multiplyUnits_closure4: function SassNumber__multiplyUnits_closure4(t0, t1) {
  19676. this.newNumerators = t0;
  19677. this.numerator = t1;
  19678. },
  19679. SassNumber__multiplyUnits_closure5: function SassNumber__multiplyUnits_closure5(t0, t1, t2) {
  19680. this._box_0 = t0;
  19681. this.$this = t1;
  19682. this.numerator = t2;
  19683. },
  19684. SassNumber__multiplyUnits_closure6: function SassNumber__multiplyUnits_closure6(t0, t1) {
  19685. this.newNumerators = t0;
  19686. this.numerator = t1;
  19687. },
  19688. SassNumber__areAnyConvertible_closure0: function SassNumber__areAnyConvertible_closure0(t0, t1) {
  19689. this.$this = t0;
  19690. this.units2 = t1;
  19691. },
  19692. SassNumber__canonicalMultiplier_closure0: function SassNumber__canonicalMultiplier_closure0() {
  19693. },
  19694. ParenthesizedExpression0: function ParenthesizedExpression0(t0, t1) {
  19695. this.expression = t0;
  19696. this.span = t1;
  19697. },
  19698. Selector0: function Selector0() {
  19699. },
  19700. SelectorExpression0: function SelectorExpression0(t0) {
  19701. this.span = t0;
  19702. },
  19703. _prependParent0: function(compound) {
  19704. var t2, t3, _i, _null = null,
  19705. t1 = compound.components,
  19706. first = C.JSArray_methods.get$first(t1);
  19707. if (first instanceof N.UniversalSelector0)
  19708. return _null;
  19709. if (first instanceof F.TypeSelector0) {
  19710. t2 = first.name;
  19711. if (t2.namespace != null)
  19712. return _null;
  19713. t3 = H.setRuntimeTypeInfo([], type$.JSArray_SimpleSelector_2);
  19714. t3.push(new M.ParentSelector0(t2.name));
  19715. for (t1 = H.SubListIterable$(t1, 1, _null, H._arrayInstanceType(t1)._precomputed1), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();)
  19716. t3.push(t1.__internal$_current);
  19717. return X.CompoundSelector$0(t3);
  19718. } else {
  19719. t2 = H.setRuntimeTypeInfo([], type$.JSArray_SimpleSelector_2);
  19720. t2.push(new M.ParentSelector0(_null));
  19721. for (t3 = t1.length, _i = 0; _i < t3; ++_i)
  19722. t2.push(t1[_i]);
  19723. return X.CompoundSelector$0(t2);
  19724. }
  19725. },
  19726. _function7: function($name, $arguments, callback) {
  19727. var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:selector");
  19728. return new Q.BuiltInCallable0($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, C.C_StderrLogger).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2));
  19729. },
  19730. closure121: function closure121() {
  19731. },
  19732. _closure16: function _closure16() {
  19733. },
  19734. _closure17: function _closure17() {
  19735. },
  19736. closure120: function closure120() {
  19737. },
  19738. _closure14: function _closure14() {
  19739. },
  19740. _closure15: function _closure15() {
  19741. },
  19742. __closure0: function __closure0(t0) {
  19743. this.parent = t0;
  19744. },
  19745. closure119: function closure119() {
  19746. },
  19747. closure118: function closure118() {
  19748. },
  19749. closure117: function closure117() {
  19750. },
  19751. closure124: function closure124() {
  19752. },
  19753. closure123: function closure123() {
  19754. },
  19755. _closure18: function _closure18() {
  19756. },
  19757. closure122: function closure122() {
  19758. },
  19759. SelectorParser0: function SelectorParser0(t0, t1, t2, t3) {
  19760. var _ = this;
  19761. _._selector$_allowParent = t0;
  19762. _._selector$_allowPlaceholder = t1;
  19763. _.scanner = t2;
  19764. _.logger = t3;
  19765. },
  19766. SelectorParser_parse_closure0: function SelectorParser_parse_closure0(t0) {
  19767. this.$this = t0;
  19768. },
  19769. SelectorParser_parseCompoundSelector_closure0: function SelectorParser_parseCompoundSelector_closure0(t0) {
  19770. this.$this = t0;
  19771. },
  19772. UseRule$0: function(url, namespace, span, configuration) {
  19773. var t1 = new T.UseRule0(url, namespace, configuration == null ? C.List_empty18 : P.List_List$unmodifiable(configuration, type$.ConfiguredVariable_2), span);
  19774. t1.UseRule$4$configuration0(url, namespace, span, configuration);
  19775. return t1;
  19776. },
  19777. UseRule0: function UseRule0(t0, t1, t2, t3) {
  19778. var _ = this;
  19779. _.url = t0;
  19780. _.namespace = t1;
  19781. _.configuration = t2;
  19782. _.span = t3;
  19783. },
  19784. isWhitespace: function(character) {
  19785. return character === 32 || character === 9 || T.isNewline(character);
  19786. },
  19787. isNewline: function(character) {
  19788. return character === 10 || character === 13 || character === 12;
  19789. },
  19790. isAlphabetic0: function(character) {
  19791. var t1;
  19792. if (!(character >= 97 && character <= 122))
  19793. t1 = character >= 65 && character <= 90;
  19794. else
  19795. t1 = true;
  19796. return t1;
  19797. },
  19798. isDigit: function(character) {
  19799. return character != null && character >= 48 && character <= 57;
  19800. },
  19801. isHex: function(character) {
  19802. if (character == null)
  19803. return false;
  19804. if (T.isDigit(character))
  19805. return true;
  19806. if (character >= 97 && character <= 102)
  19807. return true;
  19808. if (character >= 65 && character <= 70)
  19809. return true;
  19810. return false;
  19811. },
  19812. isPrivate: function(identifier) {
  19813. var first = C.JSString_methods._codeUnitAt$1(identifier, 0);
  19814. return first === 45 || first === 95;
  19815. },
  19816. asHex: function(character) {
  19817. if (character <= 57)
  19818. return character - 48;
  19819. if (character <= 70)
  19820. return 10 + character - 65;
  19821. return 10 + character - 97;
  19822. },
  19823. hexCharFor: function(number) {
  19824. return number < 10 ? 48 + number : 87 + number;
  19825. },
  19826. opposite: function(character) {
  19827. switch (character) {
  19828. case 40:
  19829. return 41;
  19830. case 123:
  19831. return 125;
  19832. case 91:
  19833. return 93;
  19834. default:
  19835. return null;
  19836. }
  19837. },
  19838. characterEqualsIgnoreCase: function(character1, character2) {
  19839. var upperCase1;
  19840. if (character1 == character2)
  19841. return true;
  19842. if ((character1 ^ character2) >>> 0 !== 32)
  19843. return false;
  19844. upperCase1 = (character1 & 4294967263) >>> 0;
  19845. return upperCase1 >= 65 && upperCase1 <= 90;
  19846. },
  19847. fuzzyEquals: function(number1, number2) {
  19848. return Math.abs(number1 - number2) < $.$get$epsilon();
  19849. },
  19850. fuzzyLessThan: function(number1, number2) {
  19851. return number1 < number2 && !(Math.abs(number1 - number2) < $.$get$epsilon());
  19852. },
  19853. fuzzyLessThanOrEquals: function(number1, number2) {
  19854. return number1 < number2 || Math.abs(number1 - number2) < $.$get$epsilon();
  19855. },
  19856. fuzzyGreaterThan: function(number1, number2) {
  19857. return number1 > number2 && !(Math.abs(number1 - number2) < $.$get$epsilon());
  19858. },
  19859. fuzzyGreaterThanOrEquals: function(number1, number2) {
  19860. return number1 > number2 || Math.abs(number1 - number2) < $.$get$epsilon();
  19861. },
  19862. fuzzyIsInt: function(number) {
  19863. if (H._isInt(number))
  19864. return true;
  19865. return Math.abs(C.JSNumber_methods.$mod(Math.abs(number - 0.5), 1) - 0.5) < $.$get$epsilon();
  19866. },
  19867. fuzzyRound: function(number) {
  19868. var t1;
  19869. if (number > 0) {
  19870. t1 = C.JSNumber_methods.$mod(number, 1);
  19871. return t1 < 0.5 && !(Math.abs(t1 - 0.5) < $.$get$epsilon()) ? C.JSNumber_methods.floor$0(number) : C.JSNumber_methods.ceil$0(number);
  19872. } else {
  19873. t1 = C.JSNumber_methods.$mod(number, 1);
  19874. return t1 < 0.5 || Math.abs(t1 - 0.5) < $.$get$epsilon() ? C.JSNumber_methods.floor$0(number) : C.JSNumber_methods.ceil$0(number);
  19875. }
  19876. },
  19877. fuzzyCheckRange: function(number, min, max) {
  19878. var t1 = $.$get$epsilon();
  19879. if (Math.abs(number - min) < t1)
  19880. return min;
  19881. if (Math.abs(number - max) < t1)
  19882. return max;
  19883. if (number > min && number < max)
  19884. return number;
  19885. return null;
  19886. },
  19887. fuzzyAssertRange: function(number, min, max, $name) {
  19888. var result = T.fuzzyCheckRange(number, min, max);
  19889. if (result != null)
  19890. return result;
  19891. throw H.wrapException(P.RangeError$value(number, $name, "must be between " + min + " and " + max + "."));
  19892. },
  19893. isWhitespace0: function(character) {
  19894. return character === 32 || character === 9 || T.isNewline0(character);
  19895. },
  19896. isNewline0: function(character) {
  19897. return character === 10 || character === 13 || character === 12;
  19898. },
  19899. isAlphabetic1: function(character) {
  19900. var t1;
  19901. if (!(character >= 97 && character <= 122))
  19902. t1 = character >= 65 && character <= 90;
  19903. else
  19904. t1 = true;
  19905. return t1;
  19906. },
  19907. isDigit0: function(character) {
  19908. return character != null && character >= 48 && character <= 57;
  19909. },
  19910. isHex0: function(character) {
  19911. if (character == null)
  19912. return false;
  19913. if (T.isDigit0(character))
  19914. return true;
  19915. if (character >= 97 && character <= 102)
  19916. return true;
  19917. if (character >= 65 && character <= 70)
  19918. return true;
  19919. return false;
  19920. },
  19921. isPrivate0: function(identifier) {
  19922. var first = C.JSString_methods._codeUnitAt$1(identifier, 0);
  19923. return first === 45 || first === 95;
  19924. },
  19925. asHex0: function(character) {
  19926. if (character <= 57)
  19927. return character - 48;
  19928. if (character <= 70)
  19929. return 10 + character - 65;
  19930. return 10 + character - 97;
  19931. },
  19932. hexCharFor0: function(number) {
  19933. return number < 10 ? 48 + number : 87 + number;
  19934. },
  19935. opposite0: function(character) {
  19936. switch (character) {
  19937. case 40:
  19938. return 41;
  19939. case 123:
  19940. return 125;
  19941. case 91:
  19942. return 93;
  19943. default:
  19944. return null;
  19945. }
  19946. },
  19947. characterEqualsIgnoreCase0: function(character1, character2) {
  19948. var upperCase1;
  19949. if (character1 == character2)
  19950. return true;
  19951. if ((character1 ^ character2) >>> 0 !== 32)
  19952. return false;
  19953. upperCase1 = (character1 & 4294967263) >>> 0;
  19954. return upperCase1 >= 65 && upperCase1 <= 90;
  19955. },
  19956. fuzzyEquals0: function(number1, number2) {
  19957. return Math.abs(number1 - number2) < $.$get$epsilon0();
  19958. },
  19959. fuzzyLessThan0: function(number1, number2) {
  19960. return number1 < number2 && !(Math.abs(number1 - number2) < $.$get$epsilon0());
  19961. },
  19962. fuzzyLessThanOrEquals0: function(number1, number2) {
  19963. return number1 < number2 || Math.abs(number1 - number2) < $.$get$epsilon0();
  19964. },
  19965. fuzzyGreaterThan0: function(number1, number2) {
  19966. return number1 > number2 && !(Math.abs(number1 - number2) < $.$get$epsilon0());
  19967. },
  19968. fuzzyGreaterThanOrEquals0: function(number1, number2) {
  19969. return number1 > number2 || Math.abs(number1 - number2) < $.$get$epsilon0();
  19970. },
  19971. fuzzyIsInt0: function(number) {
  19972. if (H._isInt(number))
  19973. return true;
  19974. return Math.abs(C.JSNumber_methods.$mod(Math.abs(number - 0.5), 1) - 0.5) < $.$get$epsilon0();
  19975. },
  19976. fuzzyRound0: function(number) {
  19977. var t1;
  19978. if (number > 0) {
  19979. t1 = C.JSNumber_methods.$mod(number, 1);
  19980. return t1 < 0.5 && !(Math.abs(t1 - 0.5) < $.$get$epsilon0()) ? C.JSNumber_methods.floor$0(number) : C.JSNumber_methods.ceil$0(number);
  19981. } else {
  19982. t1 = C.JSNumber_methods.$mod(number, 1);
  19983. return t1 < 0.5 || Math.abs(t1 - 0.5) < $.$get$epsilon0() ? C.JSNumber_methods.floor$0(number) : C.JSNumber_methods.ceil$0(number);
  19984. }
  19985. },
  19986. fuzzyCheckRange0: function(number, min, max) {
  19987. var t1 = $.$get$epsilon0();
  19988. if (Math.abs(number - min) < t1)
  19989. return min;
  19990. if (Math.abs(number - max) < t1)
  19991. return max;
  19992. if (number > min && number < max)
  19993. return number;
  19994. return null;
  19995. },
  19996. fuzzyAssertRange0: function(number, min, max, $name) {
  19997. var result = T.fuzzyCheckRange0(number, min, max);
  19998. if (result != null)
  19999. return result;
  20000. throw H.wrapException(P.RangeError$value(number, $name, "must be between " + min + " and " + max + "."));
  20001. }
  20002. },
  20003. D = {ListExpression: function ListExpression(t0, t1, t2, t3) {
  20004. var _ = this;
  20005. _.contents = t0;
  20006. _.separator = t1;
  20007. _.hasBrackets = t2;
  20008. _.span = t3;
  20009. }, ListExpression_toString_closure: function ListExpression_toString_closure(t0) {
  20010. this.$this = t0;
  20011. }, StringExpression: function StringExpression(t0, t1) {
  20012. this.text = t0;
  20013. this.hasQuotes = t1;
  20014. }, ErrorRule: function ErrorRule(t0, t1) {
  20015. this.expression = t0;
  20016. this.span = t1;
  20017. },
  20018. SelectorList$: function(components) {
  20019. var t1 = P.List_List$unmodifiable(components, type$.ComplexSelector);
  20020. if (t1.length === 0)
  20021. H.throwExpression(P.ArgumentError$("components may not be empty."));
  20022. return new D.SelectorList(t1);
  20023. },
  20024. SelectorList_SelectorList$parse: function(contents, allowParent, allowPlaceholder, logger) {
  20025. var t1 = S.SpanScanner$(contents, null);
  20026. return new T.SelectorParser(allowParent, allowPlaceholder, t1, logger == null ? C.StderrLogger_false : logger).parse$0();
  20027. },
  20028. SelectorList: function SelectorList(t0) {
  20029. this.components = t0;
  20030. },
  20031. SelectorList_isInvisible_closure: function SelectorList_isInvisible_closure() {
  20032. },
  20033. SelectorList_asSassList_closure: function SelectorList_asSassList_closure() {
  20034. },
  20035. SelectorList_asSassList__closure: function SelectorList_asSassList__closure() {
  20036. },
  20037. SelectorList_unify_closure: function SelectorList_unify_closure(t0) {
  20038. this.other = t0;
  20039. },
  20040. SelectorList_unify__closure: function SelectorList_unify__closure(t0) {
  20041. this.complex1 = t0;
  20042. },
  20043. SelectorList_unify___closure: function SelectorList_unify___closure() {
  20044. },
  20045. SelectorList_resolveParentSelectors_closure: function SelectorList_resolveParentSelectors_closure(t0, t1, t2) {
  20046. this.$this = t0;
  20047. this.implicitParent = t1;
  20048. this.parent = t2;
  20049. },
  20050. SelectorList_resolveParentSelectors__closure: function SelectorList_resolveParentSelectors__closure(t0) {
  20051. this.complex = t0;
  20052. },
  20053. SelectorList_resolveParentSelectors__closure0: function SelectorList_resolveParentSelectors__closure0(t0) {
  20054. this._box_0 = t0;
  20055. },
  20056. SelectorList__complexContainsParentSelector_closure: function SelectorList__complexContainsParentSelector_closure() {
  20057. },
  20058. SelectorList__complexContainsParentSelector__closure: function SelectorList__complexContainsParentSelector__closure() {
  20059. },
  20060. SelectorList__resolveParentSelectorsCompound_closure: function SelectorList__resolveParentSelectorsCompound_closure() {
  20061. },
  20062. SelectorList__resolveParentSelectorsCompound_closure0: function SelectorList__resolveParentSelectorsCompound_closure0(t0) {
  20063. this.parent = t0;
  20064. },
  20065. SelectorList__resolveParentSelectorsCompound_closure1: function SelectorList__resolveParentSelectorsCompound_closure1(t0, t1) {
  20066. this.compound = t0;
  20067. this.resolvedMembers = t1;
  20068. },
  20069. PseudoSelector$: function($name, argument, element, selector) {
  20070. var t1 = !element,
  20071. t2 = t1 && !D.PseudoSelector__isFakePseudoElement($name);
  20072. return new D.PseudoSelector($name, B.unvendor($name), t2, t1, argument, selector);
  20073. },
  20074. PseudoSelector__isFakePseudoElement: function($name) {
  20075. switch (C.JSString_methods._codeUnitAt$1($name, 0)) {
  20076. case 97:
  20077. case 65:
  20078. return B.equalsIgnoreCase($name, "after");
  20079. case 98:
  20080. case 66:
  20081. return B.equalsIgnoreCase($name, "before");
  20082. case 102:
  20083. case 70:
  20084. return B.equalsIgnoreCase($name, "first-line") || B.equalsIgnoreCase($name, "first-letter");
  20085. default:
  20086. return false;
  20087. }
  20088. },
  20089. PseudoSelector: function PseudoSelector(t0, t1, t2, t3, t4, t5) {
  20090. var _ = this;
  20091. _.name = t0;
  20092. _.normalizedName = t1;
  20093. _.isClass = t2;
  20094. _.isSyntacticClass = t3;
  20095. _.argument = t4;
  20096. _.selector = t5;
  20097. _._pseudo$_maxSpecificity = _._pseudo$_minSpecificity = null;
  20098. },
  20099. QualifiedName: function QualifiedName(t0, t1) {
  20100. this.name = t0;
  20101. this.namespace = t1;
  20102. },
  20103. Callable: function Callable() {
  20104. },
  20105. compileStylesheet: function(options, graph, source, destination, ifModified) {
  20106. return D.compileStylesheet$body(options, graph, source, destination, ifModified);
  20107. },
  20108. compileStylesheet$body: function(options, graph, source, destination, ifModified) {
  20109. var $async$goto = 0,
  20110. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  20111. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], syntax, result, importCache, error, exception, t1, t2, t3, t4, t5, t6, t7, result0, stylesheet, css, buffer, sourceName, destinationName, importer, $async$exception;
  20112. var $async$compileStylesheet = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  20113. if ($async$errorCode === 1) {
  20114. $async$currentError = $async$result;
  20115. $async$goto = $async$handler;
  20116. }
  20117. while (true)
  20118. switch ($async$goto) {
  20119. case 0:
  20120. // Function start
  20121. importer = new F.FilesystemImporter(D.absolute("."));
  20122. if (ifModified)
  20123. try {
  20124. if (source != null && destination != null && !graph.modifiedSince$3($.$get$context().toUri$1(source), B.modificationTime(destination), importer)) {
  20125. // goto return
  20126. $async$goto = 1;
  20127. break;
  20128. }
  20129. } catch (exception) {
  20130. if (!(H.unwrapException(exception) instanceof B.FileSystemException))
  20131. throw exception;
  20132. }
  20133. syntax = null;
  20134. if (H._asBoolNullable(options._ifParsed$1("indented")) === true)
  20135. syntax = C.Syntax_Sass;
  20136. else if (source != null)
  20137. syntax = M.Syntax_forPath(source);
  20138. else
  20139. syntax = C.Syntax_SCSS;
  20140. result = null;
  20141. $async$handler = 4;
  20142. t1 = options._options;
  20143. $async$goto = H._asBoolNullable(t1.$index(0, "async")) ? 7 : 9;
  20144. break;
  20145. case 7:
  20146. // then
  20147. t2 = H.setRuntimeTypeInfo([], type$.JSArray_AsyncImporter);
  20148. t3 = type$.List_String._as(t1.$index(0, "load-path"));
  20149. t4 = H._asBoolNullable(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new S.StderrLogger(options.get$color());
  20150. t3 = O.AsyncImportCache__toImporters(t2, t3, null);
  20151. t2 = t4 == null ? C.StderrLogger_false : t4;
  20152. t4 = type$.Uri;
  20153. importCache = new O.AsyncImportCache(t3, t2, P.LinkedHashMap_LinkedHashMap$_empty(type$.Tuple2_Uri_bool, type$.Tuple3_AsyncImporter_Uri_Uri_2), P.LinkedHashMap_LinkedHashMap$_empty(t4, type$.Stylesheet_2), P.LinkedHashMap_LinkedHashMap$_empty(t4, type$.ImporterResult_2));
  20154. $async$goto = source == null ? 10 : 12;
  20155. break;
  20156. case 10:
  20157. // then
  20158. $async$goto = 13;
  20159. return P._asyncAwait(B.readStdin(), $async$compileStylesheet);
  20160. case 13:
  20161. // returning from await.
  20162. t2 = $async$result;
  20163. t3 = syntax;
  20164. t4 = H._asBoolNullable(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new S.StderrLogger(options.get$color());
  20165. t5 = D.absolute(".");
  20166. t6 = J.$eq$(t1.$index(0, "style"), "compressed") ? C.OutputStyle_compressed : C.OutputStyle_expanded0;
  20167. t7 = options.get$emitSourceMap();
  20168. $async$goto = 14;
  20169. return P._asyncAwait(X.compileStringAsync(t2, H._asBoolNullable(t1.$index(0, "charset")), importCache, new F.FilesystemImporter(t5), t4, t7, t6, t3), $async$compileStylesheet);
  20170. case 14:
  20171. // returning from await.
  20172. result0 = $async$result;
  20173. // goto join
  20174. $async$goto = 11;
  20175. break;
  20176. case 12:
  20177. // else
  20178. t2 = syntax;
  20179. t3 = H._asBoolNullable(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new S.StderrLogger(options.get$color());
  20180. t4 = J.$eq$(t1.$index(0, "style"), "compressed") ? C.OutputStyle_compressed : C.OutputStyle_expanded0;
  20181. t5 = options.get$emitSourceMap();
  20182. $async$goto = 15;
  20183. return P._asyncAwait(X.compileAsync(source, H._asBoolNullable(t1.$index(0, "charset")), importCache, t3, t5, t4, t2), $async$compileStylesheet);
  20184. case 15:
  20185. // returning from await.
  20186. result0 = $async$result;
  20187. case 11:
  20188. // join
  20189. result = result0;
  20190. // goto join
  20191. $async$goto = 8;
  20192. break;
  20193. case 9:
  20194. // else
  20195. $async$goto = source == null ? 16 : 18;
  20196. break;
  20197. case 16:
  20198. // then
  20199. $async$goto = 19;
  20200. return P._asyncAwait(B.readStdin(), $async$compileStylesheet);
  20201. case 19:
  20202. // returning from await.
  20203. t2 = $async$result;
  20204. t3 = syntax;
  20205. t4 = H._asBoolNullable(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new S.StderrLogger(options.get$color());
  20206. t5 = D.absolute(".");
  20207. t6 = J.$eq$(t1.$index(0, "style"), "compressed") ? C.OutputStyle_compressed : C.OutputStyle_expanded0;
  20208. t7 = options.get$emitSourceMap();
  20209. t1 = H._asBoolNullable(t1.$index(0, "charset"));
  20210. stylesheet = V.Stylesheet_Stylesheet$parse(t2, t3 == null ? C.Syntax_SCSS : t3, t4, null);
  20211. result0 = U._compileStylesheet(stylesheet, t4, graph.importCache, null, new F.FilesystemImporter(t5), null, t6, true, null, null, t7, t1);
  20212. // goto join
  20213. $async$goto = 17;
  20214. break;
  20215. case 18:
  20216. // else
  20217. t2 = syntax;
  20218. t3 = H._asBoolNullable(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new S.StderrLogger(options.get$color());
  20219. importCache = graph.importCache;
  20220. t4 = J.$eq$(t1.$index(0, "style"), "compressed") ? C.OutputStyle_compressed : C.OutputStyle_expanded0;
  20221. t5 = options.get$emitSourceMap();
  20222. t1 = H._asBoolNullable(t1.$index(0, "charset"));
  20223. t6 = t2 == null || t2 === M.Syntax_forPath(source);
  20224. if (t6) {
  20225. t2 = D.absolute(".");
  20226. t6 = $.$get$context();
  20227. stylesheet = importCache.importCanonical$3(new F.FilesystemImporter(t2), t6.toUri$1(t6.canonicalize$1(source)), t6.toUri$1(source));
  20228. } else {
  20229. t6 = B.readFile(source);
  20230. if (t2 == null)
  20231. t2 = M.Syntax_forPath(source);
  20232. stylesheet = V.Stylesheet_Stylesheet$parse(t6, t2, t3, $.$get$context().toUri$1(source));
  20233. }
  20234. result0 = U._compileStylesheet(stylesheet, t3, importCache, null, new F.FilesystemImporter(D.absolute(".")), null, t4, true, null, null, t5, t1);
  20235. case 17:
  20236. // join
  20237. result = result0;
  20238. case 8:
  20239. // join
  20240. $async$handler = 2;
  20241. // goto after finally
  20242. $async$goto = 6;
  20243. break;
  20244. case 4:
  20245. // catch
  20246. $async$handler = 3;
  20247. $async$exception = $async$currentError;
  20248. t1 = H.unwrapException($async$exception);
  20249. if (t1 instanceof E.SassException) {
  20250. error = t1;
  20251. if (options.get$emitErrorCss())
  20252. if (destination == null)
  20253. P.print(error.toCssString$0());
  20254. else {
  20255. B.ensureDir($.$get$context().dirname$1(destination));
  20256. B.writeFile(destination, error.toCssString$0() + "\n");
  20257. }
  20258. throw $async$exception;
  20259. } else
  20260. throw $async$exception;
  20261. // goto after finally
  20262. $async$goto = 6;
  20263. break;
  20264. case 3:
  20265. // uncaught
  20266. // goto rethrow
  20267. $async$goto = 2;
  20268. break;
  20269. case 6:
  20270. // after finally
  20271. css = result._serialize.css + D._writeSourceMap(options, result._serialize.sourceMap, destination);
  20272. if (destination == null) {
  20273. if (css.length !== 0)
  20274. P.print(css);
  20275. } else {
  20276. B.ensureDir($.$get$context().dirname$1(destination));
  20277. B.writeFile(destination, css + "\n");
  20278. }
  20279. t1 = options._options;
  20280. if (!H._asBoolNullable(t1.$index(0, "quiet")))
  20281. t1 = !H._asBoolNullable(t1.$index(0, "update")) && !H._asBoolNullable(t1.$index(0, "watch"));
  20282. else
  20283. t1 = true;
  20284. if (t1) {
  20285. // goto return
  20286. $async$goto = 1;
  20287. break;
  20288. }
  20289. buffer = new P.StringBuffer("");
  20290. t1 = options.get$color() ? buffer._contents = "\x1b[32m" : "";
  20291. if (source == null)
  20292. sourceName = "stdin";
  20293. else {
  20294. t2 = $.$get$context();
  20295. sourceName = t2.prettyUri$1(t2.toUri$1(source));
  20296. }
  20297. t2 = $.$get$context();
  20298. destinationName = t2.prettyUri$1(t2.toUri$1(destination));
  20299. t1 += "Compiled " + H.S(sourceName) + " to " + H.S(destinationName) + ".";
  20300. buffer._contents = t1;
  20301. if (options.get$color())
  20302. buffer._contents = t1 + "\x1b[0m";
  20303. P.print(buffer);
  20304. case 1:
  20305. // return
  20306. return P._asyncReturn($async$returnValue, $async$completer);
  20307. case 2:
  20308. // rethrow
  20309. return P._asyncRethrow($async$currentError, $async$completer);
  20310. }
  20311. });
  20312. return P._asyncStartSync($async$compileStylesheet, $async$completer);
  20313. },
  20314. _writeSourceMap: function(options, sourceMap, destination) {
  20315. var t1, sourceMapText, url, sourceMapPath, t2;
  20316. if (sourceMap == null)
  20317. return "";
  20318. if (destination != null) {
  20319. t1 = $.$get$context();
  20320. sourceMap.targetUrl = J.toString$0$(t1.toUri$1(X.ParsedPath_ParsedPath$parse(destination, t1.style).get$basename()));
  20321. }
  20322. B.mapInPlace(sourceMap.urls, new D._writeSourceMap_closure(options, destination));
  20323. t1 = options._options;
  20324. sourceMapText = C.C_JsonCodec.encode$2$toEncodable(sourceMap.toJson$1$includeSourceContents(H._asBoolNullable(t1.$index(0, "embed-sources"))), null);
  20325. if (H._asBoolNullable(t1.$index(0, "embed-source-map")))
  20326. url = P.Uri_Uri$dataFromString(sourceMapText, C.C_Utf8Codec, "application/json");
  20327. else {
  20328. sourceMapPath = J.$add$ansx(destination, ".map");
  20329. t2 = $.$get$context();
  20330. B.ensureDir(t2.dirname$1(sourceMapPath));
  20331. B.writeFile(sourceMapPath, sourceMapText);
  20332. url = t2.toUri$1(t2.relative$2$from(sourceMapPath, t2.dirname$1(destination)));
  20333. }
  20334. t1 = (J.$eq$(t1.$index(0, "style"), "compressed") ? C.OutputStyle_compressed : C.OutputStyle_expanded0) === C.OutputStyle_compressed ? "" : "\n\n";
  20335. return t1 + ("/*# sourceMappingURL=" + H.S(url) + " */");
  20336. },
  20337. _writeSourceMap_closure: function _writeSourceMap_closure(t0, t1) {
  20338. this.options = t0;
  20339. this.destination = t1;
  20340. },
  20341. _function3: function($name, $arguments, callback) {
  20342. var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:list");
  20343. return new Q.BuiltInCallable($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, C.StderrLogger_false).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value));
  20344. },
  20345. closure42: function closure42() {
  20346. },
  20347. closure41: function closure41() {
  20348. },
  20349. closure40: function closure40() {
  20350. },
  20351. closure39: function closure39() {
  20352. },
  20353. closure38: function closure38() {
  20354. },
  20355. closure37: function closure37() {
  20356. },
  20357. _closure4: function _closure4() {
  20358. },
  20359. _closure5: function _closure5(t0) {
  20360. this._box_0 = t0;
  20361. },
  20362. _closure6: function _closure6(t0) {
  20363. this._box_0 = t0;
  20364. },
  20365. closure36: function closure36() {
  20366. },
  20367. closure34: function closure34() {
  20368. },
  20369. closure35: function closure35() {
  20370. },
  20371. _codepointForIndex: function(index, lengthInCodepoints, allowNegative) {
  20372. var result;
  20373. if (index === 0)
  20374. return 0;
  20375. if (index > 0)
  20376. return Math.min(index - 1, H.checkNum(lengthInCodepoints));
  20377. result = lengthInCodepoints + index;
  20378. if (result < 0 && !allowNegative)
  20379. return 0;
  20380. return result;
  20381. },
  20382. _function: function($name, $arguments, callback) {
  20383. var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:string");
  20384. return new Q.BuiltInCallable($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, C.StderrLogger_false).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value));
  20385. },
  20386. closure8: function closure8() {
  20387. },
  20388. closure7: function closure7() {
  20389. },
  20390. closure3: function closure3() {
  20391. },
  20392. closure2: function closure2() {
  20393. },
  20394. closure1: function closure1() {
  20395. },
  20396. closure0: function closure0() {
  20397. },
  20398. closure6: function closure6() {
  20399. },
  20400. closure5: function closure5() {
  20401. },
  20402. closure4: function closure4() {
  20403. },
  20404. SourceMapBuffer0: function SourceMapBuffer0(t0, t1, t2) {
  20405. var _ = this;
  20406. _._source_map_buffer0$_buffer = t0;
  20407. _._source_map_buffer0$_entries = t1;
  20408. _._sourceFiles = t2;
  20409. _._source_map_buffer0$_column = _._source_map_buffer0$_line = 0;
  20410. _._source_map_buffer0$_inSpan = false;
  20411. },
  20412. SourceMapBuffer_sourceFiles_closure: function SourceMapBuffer_sourceFiles_closure() {
  20413. },
  20414. SourceMapBuffer__addEntry_closure: function SourceMapBuffer__addEntry_closure(t0) {
  20415. this.source = t0;
  20416. },
  20417. SourceMapBuffer_buildSourceMap_closure: function SourceMapBuffer_buildSourceMap_closure(t0, t1) {
  20418. this._box_0 = t0;
  20419. this.prefixLength = t1;
  20420. },
  20421. SassArgumentList: function SassArgumentList(t0, t1, t2, t3) {
  20422. var _ = this;
  20423. _._keywords = t0;
  20424. _._wereKeywordsAccessed = false;
  20425. _._list$_contents = t1;
  20426. _.separator = t2;
  20427. _.hasBrackets = t3;
  20428. },
  20429. SassList$: function(contents, separator, brackets) {
  20430. var t1 = new D.SassList(P.List_List$unmodifiable(contents, type$.Value), separator, brackets);
  20431. t1.SassList$3$brackets(contents, separator, brackets);
  20432. return t1;
  20433. },
  20434. SassList: function SassList(t0, t1, t2) {
  20435. this._list$_contents = t0;
  20436. this.separator = t1;
  20437. this.hasBrackets = t2;
  20438. },
  20439. SassList_isBlank_closure: function SassList_isBlank_closure() {
  20440. },
  20441. ListSeparator: function ListSeparator(t0) {
  20442. this._list$_name = t0;
  20443. },
  20444. SassString$: function(text, quotes) {
  20445. return new D.SassString(text, quotes);
  20446. },
  20447. SassString: function SassString(t0, t1) {
  20448. this.text = t0;
  20449. this.hasQuotes = t1;
  20450. this._sassLength = null;
  20451. },
  20452. RecursiveStatementVisitor: function RecursiveStatementVisitor() {
  20453. },
  20454. SourceLocationMixin: function SourceLocationMixin() {
  20455. },
  20456. SassArgumentList0: function SassArgumentList0(t0, t1, t2, t3) {
  20457. var _ = this;
  20458. _._argument_list$_keywords = t0;
  20459. _._argument_list$_wereKeywordsAccessed = false;
  20460. _._list1$_contents = t1;
  20461. _.separator = t2;
  20462. _.hasBrackets = t3;
  20463. },
  20464. Callable0: function Callable0() {
  20465. },
  20466. ErrorRule0: function ErrorRule0(t0, t1) {
  20467. this.expression = t0;
  20468. this.span = t1;
  20469. },
  20470. Exports: function Exports() {
  20471. },
  20472. ListExpression0: function ListExpression0(t0, t1, t2, t3) {
  20473. var _ = this;
  20474. _.contents = t0;
  20475. _.separator = t1;
  20476. _.hasBrackets = t2;
  20477. _.span = t3;
  20478. },
  20479. ListExpression_toString_closure0: function ListExpression_toString_closure0(t0) {
  20480. this.$this = t0;
  20481. },
  20482. _function10: function($name, $arguments, callback) {
  20483. var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:list");
  20484. return new Q.BuiltInCallable0($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, C.C_StderrLogger).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2));
  20485. },
  20486. closure150: function closure150() {
  20487. },
  20488. closure149: function closure149() {
  20489. },
  20490. closure148: function closure148() {
  20491. },
  20492. closure147: function closure147() {
  20493. },
  20494. closure146: function closure146() {
  20495. },
  20496. closure145: function closure145() {
  20497. },
  20498. _closure19: function _closure19() {
  20499. },
  20500. _closure20: function _closure20(t0) {
  20501. this._box_0 = t0;
  20502. },
  20503. _closure21: function _closure21(t0) {
  20504. this._box_0 = t0;
  20505. },
  20506. closure144: function closure144() {
  20507. },
  20508. closure142: function closure142() {
  20509. },
  20510. closure143: function closure143() {
  20511. },
  20512. SelectorList$0: function(components) {
  20513. var t1 = P.List_List$unmodifiable(components, type$.ComplexSelector_2);
  20514. if (t1.length === 0)
  20515. H.throwExpression(P.ArgumentError$("components may not be empty."));
  20516. return new D.SelectorList0(t1);
  20517. },
  20518. SelectorList_SelectorList$parse0: function(contents, allowParent, allowPlaceholder, logger) {
  20519. var t1 = S.SpanScanner$(contents, null);
  20520. return new T.SelectorParser0(allowParent, allowPlaceholder, t1, logger == null ? C.C_StderrLogger : logger).parse$0();
  20521. },
  20522. SelectorList0: function SelectorList0(t0) {
  20523. this.components = t0;
  20524. },
  20525. SelectorList_isInvisible_closure0: function SelectorList_isInvisible_closure0() {
  20526. },
  20527. SelectorList_asSassList_closure0: function SelectorList_asSassList_closure0() {
  20528. },
  20529. SelectorList_asSassList__closure0: function SelectorList_asSassList__closure0() {
  20530. },
  20531. SelectorList_unify_closure0: function SelectorList_unify_closure0(t0) {
  20532. this.other = t0;
  20533. },
  20534. SelectorList_unify__closure0: function SelectorList_unify__closure0(t0) {
  20535. this.complex1 = t0;
  20536. },
  20537. SelectorList_unify___closure0: function SelectorList_unify___closure0() {
  20538. },
  20539. SelectorList_resolveParentSelectors_closure0: function SelectorList_resolveParentSelectors_closure0(t0, t1, t2) {
  20540. this.$this = t0;
  20541. this.implicitParent = t1;
  20542. this.parent = t2;
  20543. },
  20544. SelectorList_resolveParentSelectors__closure1: function SelectorList_resolveParentSelectors__closure1(t0) {
  20545. this.complex = t0;
  20546. },
  20547. SelectorList_resolveParentSelectors__closure2: function SelectorList_resolveParentSelectors__closure2(t0) {
  20548. this._box_0 = t0;
  20549. },
  20550. SelectorList__complexContainsParentSelector_closure0: function SelectorList__complexContainsParentSelector_closure0() {
  20551. },
  20552. SelectorList__complexContainsParentSelector__closure0: function SelectorList__complexContainsParentSelector__closure0() {
  20553. },
  20554. SelectorList__resolveParentSelectorsCompound_closure2: function SelectorList__resolveParentSelectorsCompound_closure2() {
  20555. },
  20556. SelectorList__resolveParentSelectorsCompound_closure3: function SelectorList__resolveParentSelectorsCompound_closure3(t0) {
  20557. this.parent = t0;
  20558. },
  20559. SelectorList__resolveParentSelectorsCompound_closure4: function SelectorList__resolveParentSelectorsCompound_closure4(t0, t1) {
  20560. this.compound = t0;
  20561. this.resolvedMembers = t1;
  20562. },
  20563. _NodeSassList: function _NodeSassList() {
  20564. },
  20565. closure232: function closure232() {
  20566. },
  20567. _closure33: function _closure33() {
  20568. },
  20569. closure233: function closure233() {
  20570. },
  20571. closure234: function closure234() {
  20572. },
  20573. closure235: function closure235() {
  20574. },
  20575. closure236: function closure236() {
  20576. },
  20577. closure237: function closure237() {
  20578. },
  20579. closure238: function closure238() {
  20580. },
  20581. SassList$0: function(contents, separator, brackets) {
  20582. var t1 = new D.SassList0(P.List_List$unmodifiable(contents, type$.Value_2), separator, brackets);
  20583. t1.SassList$3$brackets0(contents, separator, brackets);
  20584. return t1;
  20585. },
  20586. SassList0: function SassList0(t0, t1, t2) {
  20587. this._list1$_contents = t0;
  20588. this.separator = t1;
  20589. this.hasBrackets = t2;
  20590. },
  20591. SassList_isBlank_closure0: function SassList_isBlank_closure0() {
  20592. },
  20593. ListSeparator0: function ListSeparator0(t0) {
  20594. this._list1$_name = t0;
  20595. },
  20596. PseudoSelector$0: function($name, argument, element, selector) {
  20597. var t1 = !element,
  20598. t2 = t1 && !D.PseudoSelector__isFakePseudoElement0($name);
  20599. return new D.PseudoSelector0($name, B.unvendor0($name), t2, t1, argument, selector);
  20600. },
  20601. PseudoSelector__isFakePseudoElement0: function($name) {
  20602. switch (C.JSString_methods._codeUnitAt$1($name, 0)) {
  20603. case 97:
  20604. case 65:
  20605. return B.equalsIgnoreCase0($name, "after");
  20606. case 98:
  20607. case 66:
  20608. return B.equalsIgnoreCase0($name, "before");
  20609. case 102:
  20610. case 70:
  20611. return B.equalsIgnoreCase0($name, "first-line") || B.equalsIgnoreCase0($name, "first-letter");
  20612. default:
  20613. return false;
  20614. }
  20615. },
  20616. PseudoSelector0: function PseudoSelector0(t0, t1, t2, t3, t4, t5) {
  20617. var _ = this;
  20618. _.name = t0;
  20619. _.normalizedName = t1;
  20620. _.isClass = t2;
  20621. _.isSyntacticClass = t3;
  20622. _.argument = t4;
  20623. _.selector = t5;
  20624. _._pseudo0$_maxSpecificity = _._pseudo0$_minSpecificity = null;
  20625. },
  20626. QualifiedName0: function QualifiedName0(t0, t1) {
  20627. this.name = t0;
  20628. this.namespace = t1;
  20629. },
  20630. SourceMapBuffer: function SourceMapBuffer(t0, t1, t2) {
  20631. var _ = this;
  20632. _._source_map_buffer$_buffer = t0;
  20633. _._entries = t1;
  20634. _._source_map_buffer$_sourceFiles = t2;
  20635. _._column = _._line = 0;
  20636. _._inSpan = false;
  20637. },
  20638. SourceMapBuffer_sourceFiles_closure0: function SourceMapBuffer_sourceFiles_closure0() {
  20639. },
  20640. SourceMapBuffer__addEntry_closure0: function SourceMapBuffer__addEntry_closure0(t0) {
  20641. this.source = t0;
  20642. },
  20643. SourceMapBuffer_buildSourceMap_closure0: function SourceMapBuffer_buildSourceMap_closure0(t0, t1) {
  20644. this._box_0 = t0;
  20645. this.prefixLength = t1;
  20646. },
  20647. StringExpression0: function StringExpression0(t0, t1) {
  20648. this.text = t0;
  20649. this.hasQuotes = t1;
  20650. },
  20651. _codepointForIndex0: function(index, lengthInCodepoints, allowNegative) {
  20652. var result;
  20653. if (index === 0)
  20654. return 0;
  20655. if (index > 0)
  20656. return Math.min(index - 1, H.checkNum(lengthInCodepoints));
  20657. result = lengthInCodepoints + index;
  20658. if (result < 0 && !allowNegative)
  20659. return 0;
  20660. return result;
  20661. },
  20662. _function6: function($name, $arguments, callback) {
  20663. var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:string");
  20664. return new Q.BuiltInCallable0($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, C.C_StderrLogger).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2));
  20665. },
  20666. closure116: function closure116() {
  20667. },
  20668. closure115: function closure115() {
  20669. },
  20670. closure111: function closure111() {
  20671. },
  20672. closure110: function closure110() {
  20673. },
  20674. closure109: function closure109() {
  20675. },
  20676. closure108: function closure108() {
  20677. },
  20678. closure114: function closure114() {
  20679. },
  20680. closure113: function closure113() {
  20681. },
  20682. closure112: function closure112() {
  20683. },
  20684. _NodeSassString: function _NodeSassString() {
  20685. },
  20686. closure214: function closure214() {
  20687. },
  20688. closure215: function closure215() {
  20689. },
  20690. closure216: function closure216() {
  20691. },
  20692. closure217: function closure217() {
  20693. },
  20694. SassString$0: function(text, quotes) {
  20695. return new D.SassString0(text, quotes);
  20696. },
  20697. SassString0: function SassString0(t0, t1) {
  20698. this.text = t0;
  20699. this.hasQuotes = t1;
  20700. this._string$_sassLength = null;
  20701. },
  20702. current: function() {
  20703. var exception, t1, path, lastIndex, uri = null;
  20704. try {
  20705. uri = P.Uri_base();
  20706. } catch (exception) {
  20707. if (type$.Exception._is(H.unwrapException(exception))) {
  20708. t1 = $._current;
  20709. if (t1 != null)
  20710. return t1;
  20711. throw exception;
  20712. } else
  20713. throw exception;
  20714. }
  20715. if (J.$eq$(uri, $._currentUriBase))
  20716. return $._current;
  20717. $._currentUriBase = uri;
  20718. if ($.$get$Style_platform() == $.$get$Style_url())
  20719. t1 = $._current = uri.resolve$1(".").toString$0(0);
  20720. else {
  20721. path = uri.toFilePath$0();
  20722. lastIndex = path.length - 1;
  20723. t1 = $._current = lastIndex === 0 ? path : C.JSString_methods.substring$2(path, 0, lastIndex);
  20724. }
  20725. return t1;
  20726. },
  20727. absolute: function(part1) {
  20728. var _null = null;
  20729. return $.$get$context().absolute$7(part1, _null, _null, _null, _null, _null, _null);
  20730. },
  20731. dirname: function(path) {
  20732. return $.$get$context().dirname$1(path);
  20733. },
  20734. join: function(part1, part2, part3) {
  20735. var _null = null;
  20736. return $.$get$context().join$8(0, part1, part2, part3, _null, _null, _null, _null, _null);
  20737. }
  20738. },
  20739. A = {MapExpression: function MapExpression(t0, t1) {
  20740. this.pairs = t0;
  20741. this.span = t1;
  20742. }, MapExpression_toString_closure: function MapExpression_toString_closure() {
  20743. }, IncludeRule: function IncludeRule(t0, t1, t2, t3, t4) {
  20744. var _ = this;
  20745. _.namespace = t0;
  20746. _.name = t1;
  20747. _.$arguments = t2;
  20748. _.content = t3;
  20749. _.span = t4;
  20750. }, Configuration: function Configuration(t0, t1, t2) {
  20751. this._values = t0;
  20752. this.nodeWithSpan = t1;
  20753. this.isImplicit = t2;
  20754. },
  20755. watch: function(options, graph) {
  20756. var $async$goto = 0,
  20757. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  20758. $async$returnValue, t2, t3, t4, t5, t6, dirWatcher, watcher, destination, t1;
  20759. var $async$watch = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  20760. if ($async$errorCode === 1)
  20761. return P._asyncRethrow($async$result, $async$completer);
  20762. while (true)
  20763. switch ($async$goto) {
  20764. case 0:
  20765. // Function start
  20766. t1 = H.setRuntimeTypeInfo([], type$.JSArray_String);
  20767. for (options._ensureSources$0(), t2 = J.get$iterator$ax(options._sourceDirectoriesToDestinations.get$keys()); t2.moveNext$0();)
  20768. t1.push(t2.get$current(t2));
  20769. for (options._ensureSources$0(), t2 = type$.String, t3 = J.map$1$1$ax(options._sourcesToDestinations.get$keys(), D.path__dirname$closure(), t2), t3 = t3.get$iterator(t3); t3.moveNext$0();)
  20770. t1.push(t3.get$current(t3));
  20771. for (t3 = options._options, t4 = J.get$iterator$ax(type$.List_String._as(t3.$index(0, "load-path"))); t4.moveNext$0();)
  20772. t1.push(t4.get$current(t4));
  20773. t4 = H._asBoolNullable(t3.$index(0, "poll"));
  20774. t5 = type$.Stream_WatchEvent;
  20775. t6 = new L.StreamGroup(C._StreamGroupState_dormant, P.LinkedHashMap_LinkedHashMap$_empty(t5, type$.StreamSubscription_WatchEvent), type$.StreamGroup_WatchEvent);
  20776. t6._controller = P.StreamController_StreamController(t6.get$_onCancel(), t6.get$_onListen(), t6.get$_onPause(), t6.get$_onResume(), true, type$.WatchEvent);
  20777. dirWatcher = new U.MultiDirWatcher(P.LinkedHashMap_LinkedHashMap$_empty(t2, t5), t6, t4);
  20778. $async$goto = 3;
  20779. return P._asyncAwait(P.Future_wait(new H.MappedListIterable(t1, new A.watch_closure(dirWatcher), type$.MappedListIterable_of_String_and_Future_void), type$.void), $async$watch);
  20780. case 3:
  20781. // returning from await.
  20782. watcher = new A._Watcher(options, graph);
  20783. options._ensureSources$0(), t1 = J.get$iterator$ax(options._sourcesToDestinations.get$keys());
  20784. case 4:
  20785. // for condition
  20786. if (!t1.moveNext$0()) {
  20787. // goto after for
  20788. $async$goto = 5;
  20789. break;
  20790. }
  20791. t2 = t1.get$current(t1);
  20792. options._ensureSources$0();
  20793. destination = options._sourcesToDestinations.$index(0, t2);
  20794. t4 = $.$get$context();
  20795. graph.addCanonical$4$recanonicalize(new F.FilesystemImporter(t4.absolute$7(".", null, null, null, null, null, null)), t4.toUri$1(t4.canonicalize$1(t2)), t4.toUri$1(t2), false);
  20796. $async$goto = 6;
  20797. return P._asyncAwait(watcher.compile$3$ifModified(t2, destination, true), $async$watch);
  20798. case 6:
  20799. // returning from await.
  20800. if (!$async$result && H._asBoolNullable(t3.$index(0, "stop-on-error"))) {
  20801. dirWatcher._group._controller._subscribe$4(null, null, null, false).cancel$0();
  20802. // goto return
  20803. $async$goto = 1;
  20804. break;
  20805. }
  20806. // goto for condition
  20807. $async$goto = 4;
  20808. break;
  20809. case 5:
  20810. // after for
  20811. P.print("Sass is watching for changes. Press Ctrl-C to stop.\n");
  20812. $async$goto = 7;
  20813. return P._asyncAwait(watcher.watch$1(0, dirWatcher), $async$watch);
  20814. case 7:
  20815. // returning from await.
  20816. case 1:
  20817. // return
  20818. return P._asyncReturn($async$returnValue, $async$completer);
  20819. }
  20820. });
  20821. return P._asyncStartSync($async$watch, $async$completer);
  20822. },
  20823. watch_closure: function watch_closure(t0) {
  20824. this.dirWatcher = t0;
  20825. },
  20826. _Watcher: function _Watcher(t0, t1) {
  20827. this._watch$_options = t0;
  20828. this._graph = t1;
  20829. },
  20830. _Watcher__debounceEvents_closure: function _Watcher__debounceEvents_closure() {
  20831. },
  20832. _Watcher__debounceEvents__closure: function _Watcher__debounceEvents__closure(t0) {
  20833. this.typeForPath = t0;
  20834. },
  20835. MergedExtension_merge: function(left, right) {
  20836. var t2, t3, t4,
  20837. t1 = left.extender;
  20838. if (!J.$eq$(t1, right.extender) || !J.$eq$(left.target, right.target))
  20839. throw H.wrapException(P.ArgumentError$(left.toString$0(0) + " and " + right.toString$0(0) + " aren't the same extension."));
  20840. t2 = left.mediaContext;
  20841. t3 = t2 == null;
  20842. if (!t3) {
  20843. t4 = right.mediaContext;
  20844. t4 = t4 != null && !C.C_ListEquality.equals$2(t2, t4);
  20845. } else
  20846. t4 = false;
  20847. if (t4)
  20848. throw H.wrapException(E.SassException$("From " + left.span.message$1(0, "") + "\nYou may not @extend the same selector from within different media queries.", right.span));
  20849. if (right.isOptional && right.mediaContext == null)
  20850. return left;
  20851. if (left.isOptional && t3)
  20852. return right;
  20853. if (t3)
  20854. t2 = right.mediaContext;
  20855. t3 = left.specificity;
  20856. if (t3 == null)
  20857. t3 = t1.get$maxSpecificity();
  20858. return new A.MergedExtension(left, right, t1, left.target, t3, true, false, t2, left.extenderSpan, left.span);
  20859. },
  20860. MergedExtension: function MergedExtension(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9) {
  20861. var _ = this;
  20862. _.left = t0;
  20863. _.right = t1;
  20864. _.extender = t2;
  20865. _.target = t3;
  20866. _.specificity = t4;
  20867. _.isOptional = t5;
  20868. _.isOriginal = t6;
  20869. _.mediaContext = t7;
  20870. _.extenderSpan = t8;
  20871. _.span = t9;
  20872. },
  20873. _function2: function($name, $arguments, callback) {
  20874. var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:map");
  20875. return new Q.BuiltInCallable($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, C.StderrLogger_false).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value));
  20876. },
  20877. closure33: function closure33() {
  20878. },
  20879. closure32: function closure32() {
  20880. },
  20881. closure30: function closure30() {
  20882. },
  20883. closure31: function closure31() {
  20884. },
  20885. closure29: function closure29() {
  20886. },
  20887. closure28: function closure28() {
  20888. },
  20889. closure27: function closure27() {
  20890. },
  20891. SassMap: function SassMap(t0) {
  20892. this.contents = t0;
  20893. },
  20894. SassMap_asList_closure: function SassMap_asList_closure(t0) {
  20895. this.result = t0;
  20896. },
  20897. Frame_Frame$parseVM: function(frame) {
  20898. return A.Frame__catchFormatException(frame, new A.Frame_Frame$parseVM_closure(frame));
  20899. },
  20900. Frame_Frame$parseV8: function(frame) {
  20901. return A.Frame__catchFormatException(frame, new A.Frame_Frame$parseV8_closure(frame));
  20902. },
  20903. Frame_Frame$parseFirefox: function(frame) {
  20904. return A.Frame__catchFormatException(frame, new A.Frame_Frame$parseFirefox_closure(frame));
  20905. },
  20906. Frame_Frame$parseFriendly: function(frame) {
  20907. return A.Frame__catchFormatException(frame, new A.Frame_Frame$parseFriendly_closure(frame));
  20908. },
  20909. Frame__uriOrPathToUri: function(uriOrPath) {
  20910. if (J.getInterceptor$asx(uriOrPath).contains$1(uriOrPath, $.$get$Frame__uriRegExp()))
  20911. return P.Uri_parse(uriOrPath);
  20912. else if (C.JSString_methods.contains$1(uriOrPath, $.$get$Frame__windowsRegExp()))
  20913. return P._Uri__Uri$file(uriOrPath, true);
  20914. else if (C.JSString_methods.startsWith$1(uriOrPath, "/"))
  20915. return P._Uri__Uri$file(uriOrPath, false);
  20916. if (C.JSString_methods.contains$1(uriOrPath, "\\"))
  20917. return $.$get$windows().toUri$1(uriOrPath);
  20918. return P.Uri_parse(uriOrPath);
  20919. },
  20920. Frame__catchFormatException: function(text, body) {
  20921. var t1, exception;
  20922. try {
  20923. t1 = body.call$0();
  20924. return t1;
  20925. } catch (exception) {
  20926. if (type$.FormatException._is(H.unwrapException(exception)))
  20927. return new N.UnparsedFrame(P._Uri__Uri(null, "unparsed", null, null), text);
  20928. else
  20929. throw exception;
  20930. }
  20931. },
  20932. Frame: function Frame(t0, t1, t2, t3) {
  20933. var _ = this;
  20934. _.uri = t0;
  20935. _.line = t1;
  20936. _.column = t2;
  20937. _.member = t3;
  20938. },
  20939. Frame_Frame$parseVM_closure: function Frame_Frame$parseVM_closure(t0) {
  20940. this.frame = t0;
  20941. },
  20942. Frame_Frame$parseV8_closure: function Frame_Frame$parseV8_closure(t0) {
  20943. this.frame = t0;
  20944. },
  20945. Frame_Frame$parseV8_closure_parseLocation: function Frame_Frame$parseV8_closure_parseLocation(t0) {
  20946. this.frame = t0;
  20947. },
  20948. Frame_Frame$parseFirefox_closure: function Frame_Frame$parseFirefox_closure(t0) {
  20949. this.frame = t0;
  20950. },
  20951. Frame_Frame$parseFriendly_closure: function Frame_Frame$parseFriendly_closure(t0) {
  20952. this.frame = t0;
  20953. },
  20954. AsciiGlyphSet: function AsciiGlyphSet() {
  20955. },
  20956. Configuration0: function Configuration0(t0, t1, t2) {
  20957. this._configuration$_values = t0;
  20958. this.nodeWithSpan = t1;
  20959. this.isImplicit = t2;
  20960. },
  20961. IncludeRule0: function IncludeRule0(t0, t1, t2, t3, t4) {
  20962. var _ = this;
  20963. _.namespace = t0;
  20964. _.name = t1;
  20965. _.$arguments = t2;
  20966. _.content = t3;
  20967. _.span = t4;
  20968. },
  20969. MapExpression0: function MapExpression0(t0, t1) {
  20970. this.pairs = t0;
  20971. this.span = t1;
  20972. },
  20973. MapExpression_toString_closure0: function MapExpression_toString_closure0() {
  20974. },
  20975. _function9: function($name, $arguments, callback) {
  20976. var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:map");
  20977. return new Q.BuiltInCallable0($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, C.C_StderrLogger).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2));
  20978. },
  20979. closure141: function closure141() {
  20980. },
  20981. closure140: function closure140() {
  20982. },
  20983. closure138: function closure138() {
  20984. },
  20985. closure139: function closure139() {
  20986. },
  20987. closure137: function closure137() {
  20988. },
  20989. closure136: function closure136() {
  20990. },
  20991. closure135: function closure135() {
  20992. },
  20993. _NodeSassMap: function _NodeSassMap() {
  20994. },
  20995. closure225: function closure225() {
  20996. },
  20997. _closure31: function _closure31() {
  20998. },
  20999. _closure32: function _closure32() {
  21000. },
  21001. closure226: function closure226() {
  21002. },
  21003. closure227: function closure227() {
  21004. },
  21005. closure228: function closure228() {
  21006. },
  21007. closure229: function closure229() {
  21008. },
  21009. closure230: function closure230() {
  21010. },
  21011. closure231: function closure231() {
  21012. },
  21013. SassMap0: function SassMap0(t0) {
  21014. this.contents = t0;
  21015. },
  21016. SassMap_asList_closure0: function SassMap_asList_closure0(t0) {
  21017. this.result = t0;
  21018. },
  21019. MergedExtension_merge0: function(left, right) {
  21020. var t2, t3, t4,
  21021. t1 = left.extender;
  21022. if (!J.$eq$(t1, right.extender) || !J.$eq$(left.target, right.target))
  21023. throw H.wrapException(P.ArgumentError$(left.toString$0(0) + " and " + right.toString$0(0) + " aren't the same extension."));
  21024. t2 = left.mediaContext;
  21025. t3 = t2 == null;
  21026. if (!t3) {
  21027. t4 = right.mediaContext;
  21028. t4 = t4 != null && !C.C_ListEquality.equals$2(t2, t4);
  21029. } else
  21030. t4 = false;
  21031. if (t4)
  21032. throw H.wrapException(E.SassException$0("From " + left.span.message$1(0, "") + "\nYou may not @extend the same selector from within different media queries.", right.span));
  21033. if (right.isOptional && right.mediaContext == null)
  21034. return left;
  21035. if (left.isOptional && t3)
  21036. return right;
  21037. if (t3)
  21038. t2 = right.mediaContext;
  21039. t3 = left.specificity;
  21040. if (t3 == null)
  21041. t3 = t1.get$maxSpecificity();
  21042. return new A.MergedExtension0(left, right, t1, left.target, t3, true, false, t2, left.extenderSpan, left.span);
  21043. },
  21044. MergedExtension0: function MergedExtension0(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9) {
  21045. var _ = this;
  21046. _.left = t0;
  21047. _.right = t1;
  21048. _.extender = t2;
  21049. _.target = t3;
  21050. _.specificity = t4;
  21051. _.isOptional = t5;
  21052. _.isOriginal = t6;
  21053. _.mediaContext = t7;
  21054. _.extenderSpan = t8;
  21055. _.span = t9;
  21056. }
  21057. },
  21058. S = {VariableExpression: function VariableExpression(t0, t1, t2) {
  21059. this.namespace = t0;
  21060. this.name = t1;
  21061. this.span = t2;
  21062. },
  21063. ComplexSelector$: function(components, lineBreak) {
  21064. var t1 = P.List_List$unmodifiable(components, type$.ComplexSelectorComponent);
  21065. if (t1.length === 0)
  21066. H.throwExpression(P.ArgumentError$("components may not be empty."));
  21067. return new S.ComplexSelector(t1, lineBreak);
  21068. },
  21069. ComplexSelector: function ComplexSelector(t0, t1) {
  21070. var _ = this;
  21071. _.components = t0;
  21072. _.lineBreak = t1;
  21073. _._complex$_isInvisible = _._maxSpecificity = _._minSpecificity = null;
  21074. },
  21075. ComplexSelector_isInvisible_closure: function ComplexSelector_isInvisible_closure() {
  21076. },
  21077. ComplexSelectorComponent: function ComplexSelectorComponent() {
  21078. },
  21079. Combinator: function Combinator(t0) {
  21080. this._complex$_text = t0;
  21081. },
  21082. AsyncBuiltInCallable$mixin: function($name, $arguments, callback, url) {
  21083. var t1 = S.SpanScanner$("@mixin " + $name + "(" + $arguments + ") {", url);
  21084. return new S.AsyncBuiltInCallable($name, new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, C.StderrLogger_false).parseArgumentDeclaration$0(), new S.AsyncBuiltInCallable$mixin_closure(callback));
  21085. },
  21086. AsyncBuiltInCallable: function AsyncBuiltInCallable(t0, t1, t2) {
  21087. this.name = t0;
  21088. this._async_built_in$_arguments = t1;
  21089. this._async_built_in$_callback = t2;
  21090. },
  21091. AsyncBuiltInCallable$mixin_closure: function AsyncBuiltInCallable$mixin_closure(t0) {
  21092. this.callback = t0;
  21093. },
  21094. Extension$oneOff: function(extender, isOriginal, specificity) {
  21095. var _null = null;
  21096. return new S.Extension(extender, _null, specificity == null ? extender.get$maxSpecificity() : specificity, true, isOriginal, _null, _null, _null);
  21097. },
  21098. Extension: function Extension(t0, t1, t2, t3, t4, t5, t6, t7) {
  21099. var _ = this;
  21100. _.extender = t0;
  21101. _.target = t1;
  21102. _.specificity = t2;
  21103. _.isOptional = t3;
  21104. _.isOriginal = t4;
  21105. _.mediaContext = t5;
  21106. _.extenderSpan = t6;
  21107. _.span = t7;
  21108. },
  21109. StderrLogger: function StderrLogger(t0) {
  21110. this.color = t0;
  21111. },
  21112. SpanScanner$: function(string, sourceUrl) {
  21113. var t1, t2, t3, t4;
  21114. string.toString;
  21115. t1 = new H.CodeUnits(string);
  21116. t2 = H.setRuntimeTypeInfo([0], type$.JSArray_int);
  21117. t3 = typeof sourceUrl == "string";
  21118. t4 = t3 ? P.Uri_parse(sourceUrl) : type$.Uri._as(sourceUrl);
  21119. t2 = new Y.SourceFile(t4, t2, new Uint32Array(H._ensureNativeList(t1.toList$0(t1))));
  21120. t2.SourceFile$decoded$2$url(t1, sourceUrl);
  21121. t1 = t3 ? P.Uri_parse(sourceUrl) : type$.Uri._as(sourceUrl);
  21122. return new S.SpanScanner(t2, t1, string);
  21123. },
  21124. SpanScanner: function SpanScanner(t0, t1, t2) {
  21125. var _ = this;
  21126. _._sourceFile = t0;
  21127. _.sourceUrl = t1;
  21128. _.string = t2;
  21129. _._string_scanner$_position = 0;
  21130. _._lastMatchPosition = _._lastMatch = null;
  21131. },
  21132. _SpanScannerState: function _SpanScannerState(t0, t1) {
  21133. this._scanner = t0;
  21134. this.position = t1;
  21135. },
  21136. Tuple2: function Tuple2(t0, t1, t2) {
  21137. this.item1 = t0;
  21138. this.item2 = t1;
  21139. this.$ti = t2;
  21140. },
  21141. Tuple3: function Tuple3(t0, t1, t2, t3) {
  21142. var _ = this;
  21143. _.item1 = t0;
  21144. _.item2 = t1;
  21145. _.item3 = t2;
  21146. _.$ti = t3;
  21147. },
  21148. AsyncBuiltInCallable$mixin0: function($name, $arguments, callback, url) {
  21149. var t1 = S.SpanScanner$("@mixin " + $name + "(" + $arguments + ") {", url);
  21150. return new S.AsyncBuiltInCallable0($name, new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, C.C_StderrLogger).parseArgumentDeclaration$0(), new S.AsyncBuiltInCallable$mixin_closure0(callback));
  21151. },
  21152. AsyncBuiltInCallable0: function AsyncBuiltInCallable0(t0, t1, t2) {
  21153. this.name = t0;
  21154. this._async_built_in0$_arguments = t1;
  21155. this._async_built_in0$_callback = t2;
  21156. },
  21157. AsyncBuiltInCallable$mixin_closure0: function AsyncBuiltInCallable$mixin_closure0(t0) {
  21158. this.callback = t0;
  21159. },
  21160. ComplexSelector$0: function(components, lineBreak) {
  21161. var t1 = P.List_List$unmodifiable(components, type$.ComplexSelectorComponent_2);
  21162. if (t1.length === 0)
  21163. H.throwExpression(P.ArgumentError$("components may not be empty."));
  21164. return new S.ComplexSelector0(t1, lineBreak);
  21165. },
  21166. ComplexSelector0: function ComplexSelector0(t0, t1) {
  21167. var _ = this;
  21168. _.components = t0;
  21169. _.lineBreak = t1;
  21170. _._complex0$_isInvisible = _._complex0$_maxSpecificity = _._complex0$_minSpecificity = null;
  21171. },
  21172. ComplexSelector_isInvisible_closure0: function ComplexSelector_isInvisible_closure0() {
  21173. },
  21174. ComplexSelectorComponent0: function ComplexSelectorComponent0() {
  21175. },
  21176. Combinator0: function Combinator0(t0) {
  21177. this._complex0$_text = t0;
  21178. },
  21179. Extension$oneOff0: function(extender, isOriginal, specificity) {
  21180. var _null = null;
  21181. return new S.Extension0(extender, _null, specificity == null ? extender.get$maxSpecificity() : specificity, true, isOriginal, _null, _null, _null);
  21182. },
  21183. Extension0: function Extension0(t0, t1, t2, t3, t4, t5, t6, t7) {
  21184. var _ = this;
  21185. _.extender = t0;
  21186. _.target = t1;
  21187. _.specificity = t2;
  21188. _.isOptional = t3;
  21189. _.isOriginal = t4;
  21190. _.mediaContext = t5;
  21191. _.extenderSpan = t6;
  21192. _.span = t7;
  21193. },
  21194. StderrLogger0: function StderrLogger0() {
  21195. },
  21196. VariableExpression0: function VariableExpression0(t0, t1, t2) {
  21197. this.namespace = t0;
  21198. this.name = t1;
  21199. this.span = t2;
  21200. }
  21201. };
  21202. var holders = [C, H, J, P, N, Z, V, G, E, F, Y, L, Q, B, O, U, M, X, K, R, T, D, A, S];
  21203. hunkHelpers.setFunctionNamesIfNecessary(holders);
  21204. var $ = {};
  21205. H.JS_CONST.prototype = {};
  21206. J.Interceptor.prototype = {
  21207. $eq: function(receiver, other) {
  21208. return receiver === other;
  21209. },
  21210. get$hashCode: function(receiver) {
  21211. return H.Primitives_objectHashCode(receiver);
  21212. },
  21213. toString$0: function(receiver) {
  21214. return "Instance of '" + H.S(H.Primitives_objectTypeName(receiver)) + "'";
  21215. },
  21216. noSuchMethod$1: function(receiver, invocation) {
  21217. throw H.wrapException(P.NoSuchMethodError$(receiver, invocation.get$memberName(), invocation.get$positionalArguments(), invocation.get$namedArguments()));
  21218. }
  21219. };
  21220. J.JSBool.prototype = {
  21221. toString$0: function(receiver) {
  21222. return String(receiver);
  21223. },
  21224. get$hashCode: function(receiver) {
  21225. return receiver ? 519018 : 218159;
  21226. },
  21227. $isbool: 1
  21228. };
  21229. J.JSNull.prototype = {
  21230. $eq: function(receiver, other) {
  21231. return null == other;
  21232. },
  21233. toString$0: function(receiver) {
  21234. return "null";
  21235. },
  21236. get$hashCode: function(receiver) {
  21237. return 0;
  21238. },
  21239. noSuchMethod$1: function(receiver, invocation) {
  21240. return this.super$Interceptor$noSuchMethod(receiver, invocation);
  21241. },
  21242. $isNull: 1
  21243. };
  21244. J.JavaScriptObject.prototype = {
  21245. get$hashCode: function(receiver) {
  21246. return 0;
  21247. },
  21248. toString$0: function(receiver) {
  21249. return String(receiver);
  21250. },
  21251. $is_SystemError: 1,
  21252. $is_NodeSassColor: 1,
  21253. $isJSError: 1,
  21254. $isJSFunction0: 1,
  21255. $isNodeImporterResult0: 1,
  21256. $is_NodeSassList: 1,
  21257. $is_NodeSassMap: 1,
  21258. $is_SystemError0: 1,
  21259. $is_NodeSassNumber: 1,
  21260. $isRenderOptions: 1,
  21261. $isRenderResult: 1,
  21262. $is_NodeSassString: 1,
  21263. get$isTTY: function(obj) {
  21264. return obj.isTTY;
  21265. },
  21266. get$write: function(obj) {
  21267. return obj.write;
  21268. },
  21269. write$1: function(receiver, p0) {
  21270. return receiver.write(p0);
  21271. },
  21272. createInterface$1: function(receiver, p0) {
  21273. return receiver.createInterface(p0);
  21274. },
  21275. on$2: function(receiver, p0, p1) {
  21276. return receiver.on(p0, p1);
  21277. },
  21278. get$close: function(obj) {
  21279. return obj.close;
  21280. },
  21281. close$0: function(receiver) {
  21282. return receiver.close();
  21283. },
  21284. setPrompt$1: function(receiver, p0) {
  21285. return receiver.setPrompt(p0);
  21286. },
  21287. readFileSync$2: function(receiver, p0, p1) {
  21288. return receiver.readFileSync(p0, p1);
  21289. },
  21290. writeFileSync$2: function(receiver, p0, p1) {
  21291. return receiver.writeFileSync(p0, p1);
  21292. },
  21293. existsSync$1: function(receiver, p0) {
  21294. return receiver.existsSync(p0);
  21295. },
  21296. mkdirSync$1: function(receiver, p0) {
  21297. return receiver.mkdirSync(p0);
  21298. },
  21299. statSync$1: function(receiver, p0) {
  21300. return receiver.statSync(p0);
  21301. },
  21302. unlinkSync$1: function(receiver, p0) {
  21303. return receiver.unlinkSync(p0);
  21304. },
  21305. readdirSync$1: function(receiver, p0) {
  21306. return receiver.readdirSync(p0);
  21307. },
  21308. isFile$0: function(receiver) {
  21309. return receiver.isFile();
  21310. },
  21311. isDirectory$0: function(receiver) {
  21312. return receiver.isDirectory();
  21313. },
  21314. get$mtime: function(obj) {
  21315. return obj.mtime;
  21316. },
  21317. getTime$0: function(receiver) {
  21318. return receiver.getTime();
  21319. },
  21320. get$message: function(obj) {
  21321. return obj.message;
  21322. },
  21323. message$1: function(receiver, p0) {
  21324. return receiver.message(p0);
  21325. },
  21326. get$code: function(obj) {
  21327. return obj.code;
  21328. },
  21329. get$syscall: function(obj) {
  21330. return obj.syscall;
  21331. },
  21332. get$path: function(obj) {
  21333. return obj.path;
  21334. },
  21335. get$platform: function(obj) {
  21336. return obj.platform;
  21337. },
  21338. get$env: function(obj) {
  21339. return obj.env;
  21340. },
  21341. watch$2: function(receiver, p0, p1) {
  21342. return receiver.watch(p0, p1);
  21343. },
  21344. call$2: function(receiver, p0, p1) {
  21345. return receiver.call(p0, p1);
  21346. },
  21347. call$1: function(receiver, p0) {
  21348. return receiver.call(p0);
  21349. },
  21350. call$0: function(receiver) {
  21351. return receiver.call();
  21352. },
  21353. call$1$1: function(receiver, p0) {
  21354. return receiver.call(p0);
  21355. },
  21356. call$3: function(receiver, p0, p1, p2) {
  21357. return receiver.call(p0, p1, p2);
  21358. },
  21359. call$1$3: function(receiver, p0, p1, p2) {
  21360. return receiver.call(p0, p1, p2);
  21361. },
  21362. call$2$2: function(receiver, p0, p1) {
  21363. return receiver.call(p0, p1);
  21364. },
  21365. call$1$0: function(receiver) {
  21366. return receiver.call();
  21367. },
  21368. apply$2: function(receiver, p0, p1) {
  21369. return receiver.apply(p0, p1);
  21370. },
  21371. get$file: function(obj) {
  21372. return obj.file;
  21373. },
  21374. get$contents: function(obj) {
  21375. return obj.contents;
  21376. },
  21377. get$dartValue: function(obj) {
  21378. return obj.dartValue;
  21379. },
  21380. set$dartValue: function(obj, v) {
  21381. return obj.dartValue = v;
  21382. },
  21383. set$render: function(obj, v) {
  21384. return obj.render = v;
  21385. },
  21386. set$renderSync: function(obj, v) {
  21387. return obj.renderSync = v;
  21388. },
  21389. set$info: function(obj, v) {
  21390. return obj.info = v;
  21391. },
  21392. set$types: function(obj, v) {
  21393. return obj.types = v;
  21394. },
  21395. set$NULL: function(obj, v) {
  21396. return obj.NULL = v;
  21397. },
  21398. set$TRUE: function(obj, v) {
  21399. return obj.TRUE = v;
  21400. },
  21401. set$FALSE: function(obj, v) {
  21402. return obj.FALSE = v;
  21403. },
  21404. get$current: function(obj) {
  21405. return obj.current;
  21406. },
  21407. yield$0: function(receiver) {
  21408. return receiver.yield();
  21409. },
  21410. run$1: function(receiver, p0) {
  21411. return receiver.run(p0);
  21412. },
  21413. run$0: function(receiver) {
  21414. return receiver.run();
  21415. },
  21416. get$options: function(obj) {
  21417. return obj.options;
  21418. },
  21419. get$data: function(obj) {
  21420. return obj.data;
  21421. },
  21422. get$includePaths: function(obj) {
  21423. return obj.includePaths;
  21424. },
  21425. get$indentType: function(obj) {
  21426. return obj.indentType;
  21427. },
  21428. get$indentWidth: function(obj) {
  21429. return obj.indentWidth;
  21430. },
  21431. get$linefeed: function(obj) {
  21432. return obj.linefeed;
  21433. },
  21434. set$context: function(obj, v) {
  21435. return obj.context = v;
  21436. },
  21437. get$importer: function(obj) {
  21438. return obj.importer;
  21439. },
  21440. get$functions: function(obj) {
  21441. return obj.functions;
  21442. },
  21443. get$indentedSyntax: function(obj) {
  21444. return obj.indentedSyntax;
  21445. },
  21446. get$omitSourceMapUrl: function(obj) {
  21447. return obj.omitSourceMapUrl;
  21448. },
  21449. get$outFile: function(obj) {
  21450. return obj.outFile;
  21451. },
  21452. get$outputStyle: function(obj) {
  21453. return obj.outputStyle;
  21454. },
  21455. get$fiber: function(obj) {
  21456. return obj.fiber;
  21457. },
  21458. get$sourceMap: function(obj) {
  21459. return obj.sourceMap;
  21460. },
  21461. get$sourceMapContents: function(obj) {
  21462. return obj.sourceMapContents;
  21463. },
  21464. get$sourceMapEmbed: function(obj) {
  21465. return obj.sourceMapEmbed;
  21466. },
  21467. get$sourceMapRoot: function(obj) {
  21468. return obj.sourceMapRoot;
  21469. },
  21470. map$1: function(receiver, p0) {
  21471. return receiver.map(p0);
  21472. },
  21473. map$1$1: function(receiver, p0) {
  21474. return receiver.map(p0);
  21475. },
  21476. get$start: function(obj) {
  21477. return obj.start;
  21478. },
  21479. get$end: function(obj) {
  21480. return obj.end;
  21481. },
  21482. set$cli_pkg_main_0_: function(obj, v) {
  21483. return obj.cli_pkg_main_0_ = v;
  21484. }
  21485. };
  21486. J.PlainJavaScriptObject.prototype = {};
  21487. J.UnknownJavaScriptObject.prototype = {};
  21488. J.JavaScriptFunction.prototype = {
  21489. toString$0: function(receiver) {
  21490. var dartClosure = receiver[$.$get$DART_CLOSURE_PROPERTY_NAME()];
  21491. if (dartClosure == null)
  21492. return this.super$JavaScriptObject$toString(receiver);
  21493. return "JavaScript function for " + H.S(J.toString$0$(dartClosure));
  21494. },
  21495. $signature: function() {
  21496. return {func: 1, opt: [,,,,,,,,,,,,,,,,]};
  21497. },
  21498. $isFunction: 1
  21499. };
  21500. J.JSArray.prototype = {
  21501. cast$1$0: function(receiver, $R) {
  21502. return new H.CastList(receiver, H._arrayInstanceType(receiver)._eval$1("@<1>")._bind$1($R)._eval$1("CastList<1,2>"));
  21503. },
  21504. add$1: function(receiver, value) {
  21505. if (!!receiver.fixed$length)
  21506. H.throwExpression(P.UnsupportedError$("add"));
  21507. receiver.push(value);
  21508. },
  21509. removeAt$1: function(receiver, index) {
  21510. var t1;
  21511. if (!!receiver.fixed$length)
  21512. H.throwExpression(P.UnsupportedError$("removeAt"));
  21513. t1 = receiver.length;
  21514. if (index >= t1)
  21515. throw H.wrapException(P.RangeError$value(index, null, null));
  21516. return receiver.splice(index, 1)[0];
  21517. },
  21518. insert$2: function(receiver, index, value) {
  21519. var t1;
  21520. if (!!receiver.fixed$length)
  21521. H.throwExpression(P.UnsupportedError$("insert"));
  21522. t1 = receiver.length;
  21523. if (index > t1)
  21524. throw H.wrapException(P.RangeError$value(index, null, null));
  21525. receiver.splice(index, 0, value);
  21526. },
  21527. insertAll$2: function(receiver, index, iterable) {
  21528. var insertionLength, end;
  21529. if (!!receiver.fixed$length)
  21530. H.throwExpression(P.UnsupportedError$("insertAll"));
  21531. P.RangeError_checkValueInInterval(index, 0, receiver.length, "index");
  21532. if (!type$.EfficientLengthIterable_dynamic._is(iterable))
  21533. iterable = J.toList$0$ax(iterable);
  21534. insertionLength = J.get$length$asx(iterable);
  21535. this.set$length(receiver, receiver.length + insertionLength);
  21536. end = index + insertionLength;
  21537. this.setRange$4(receiver, end, receiver.length, receiver, index);
  21538. this.setRange$3(receiver, index, end, iterable);
  21539. },
  21540. setAll$2: function(receiver, index, iterable) {
  21541. var t1, index0;
  21542. if (!!receiver.immutable$list)
  21543. H.throwExpression(P.UnsupportedError$("setAll"));
  21544. P.RangeError_checkValueInInterval(index, 0, receiver.length, "index");
  21545. for (t1 = J.get$iterator$ax(iterable); t1.moveNext$0(); index = index0) {
  21546. index0 = index + 1;
  21547. this.$indexSet(receiver, index, t1.get$current(t1));
  21548. }
  21549. },
  21550. removeLast$0: function(receiver) {
  21551. if (!!receiver.fixed$length)
  21552. H.throwExpression(P.UnsupportedError$("removeLast"));
  21553. if (receiver.length === 0)
  21554. throw H.wrapException(H.diagnoseIndexError(receiver, -1));
  21555. return receiver.pop();
  21556. },
  21557. remove$1: function(receiver, element) {
  21558. var i;
  21559. if (!!receiver.fixed$length)
  21560. H.throwExpression(P.UnsupportedError$("remove"));
  21561. for (i = 0; i < receiver.length; ++i)
  21562. if (J.$eq$(receiver[i], element)) {
  21563. receiver.splice(i, 1);
  21564. return true;
  21565. }
  21566. return false;
  21567. },
  21568. _removeWhere$2: function(receiver, test, removeMatching) {
  21569. var i, element, t1, retained = [],
  21570. end = receiver.length;
  21571. for (i = 0; i < end; ++i) {
  21572. element = receiver[i];
  21573. if (!test.call$1(element))
  21574. retained.push(element);
  21575. if (receiver.length !== end)
  21576. throw H.wrapException(P.ConcurrentModificationError$(receiver));
  21577. }
  21578. t1 = retained.length;
  21579. if (t1 === end)
  21580. return;
  21581. this.set$length(receiver, t1);
  21582. for (i = 0; i < retained.length; ++i)
  21583. receiver[i] = retained[i];
  21584. },
  21585. where$1: function(receiver, f) {
  21586. return new H.WhereIterable(receiver, f, H._arrayInstanceType(receiver)._eval$1("WhereIterable<1>"));
  21587. },
  21588. expand$1$1: function(receiver, f, $T) {
  21589. return new H.ExpandIterable(receiver, f, H._arrayInstanceType(receiver)._eval$1("@<1>")._bind$1($T)._eval$1("ExpandIterable<1,2>"));
  21590. },
  21591. addAll$1: function(receiver, collection) {
  21592. var t1;
  21593. if (!!receiver.fixed$length)
  21594. H.throwExpression(P.UnsupportedError$("addAll"));
  21595. for (t1 = J.get$iterator$ax(collection); t1.moveNext$0();)
  21596. receiver.push(t1.get$current(t1));
  21597. },
  21598. forEach$1: function(receiver, f) {
  21599. var i,
  21600. end = receiver.length;
  21601. for (i = 0; i < end; ++i) {
  21602. f.call$1(receiver[i]);
  21603. if (receiver.length !== end)
  21604. throw H.wrapException(P.ConcurrentModificationError$(receiver));
  21605. }
  21606. },
  21607. map$1$1: function(receiver, f, $T) {
  21608. return new H.MappedListIterable(receiver, f, H._arrayInstanceType(receiver)._eval$1("@<1>")._bind$1($T)._eval$1("MappedListIterable<1,2>"));
  21609. },
  21610. map$1: function($receiver, f) {
  21611. return this.map$1$1($receiver, f, type$.dynamic);
  21612. },
  21613. join$1: function(receiver, separator) {
  21614. var i,
  21615. list = new Array(receiver.length);
  21616. list.fixed$length = Array;
  21617. for (i = 0; i < receiver.length; ++i)
  21618. list[i] = H.S(receiver[i]);
  21619. return list.join(separator);
  21620. },
  21621. join$0: function($receiver) {
  21622. return this.join$1($receiver, "");
  21623. },
  21624. take$1: function(receiver, n) {
  21625. return H.SubListIterable$(receiver, 0, n, H._arrayInstanceType(receiver)._precomputed1);
  21626. },
  21627. skip$1: function(receiver, n) {
  21628. return H.SubListIterable$(receiver, n, null, H._arrayInstanceType(receiver)._precomputed1);
  21629. },
  21630. fold$1$2: function(receiver, initialValue, combine) {
  21631. var value, i,
  21632. $length = receiver.length;
  21633. for (value = initialValue, i = 0; i < $length; ++i) {
  21634. value = combine.call$2(value, receiver[i]);
  21635. if (receiver.length !== $length)
  21636. throw H.wrapException(P.ConcurrentModificationError$(receiver));
  21637. }
  21638. return value;
  21639. },
  21640. fold$2: function($receiver, initialValue, combine) {
  21641. return this.fold$1$2($receiver, initialValue, combine, type$.dynamic);
  21642. },
  21643. firstWhere$2$orElse: function(receiver, test, orElse) {
  21644. var i, element,
  21645. end = receiver.length;
  21646. for (i = 0; i < end; ++i) {
  21647. element = receiver[i];
  21648. if (test.call$1(element))
  21649. return element;
  21650. if (receiver.length !== end)
  21651. throw H.wrapException(P.ConcurrentModificationError$(receiver));
  21652. }
  21653. if (orElse != null)
  21654. return orElse.call$0();
  21655. throw H.wrapException(H.IterableElementError_noElement());
  21656. },
  21657. lastWhere$2$orElse: function(receiver, test, orElse) {
  21658. var i, element,
  21659. $length = receiver.length;
  21660. for (i = $length - 1; i >= 0; --i) {
  21661. element = receiver[i];
  21662. if (test.call$1(element))
  21663. return element;
  21664. if ($length !== receiver.length)
  21665. throw H.wrapException(P.ConcurrentModificationError$(receiver));
  21666. }
  21667. if (orElse != null)
  21668. return orElse.call$0();
  21669. throw H.wrapException(H.IterableElementError_noElement());
  21670. },
  21671. elementAt$1: function(receiver, index) {
  21672. return receiver[index];
  21673. },
  21674. sublist$2: function(receiver, start, end) {
  21675. if (start < 0 || start > receiver.length)
  21676. throw H.wrapException(P.RangeError$range(start, 0, receiver.length, "start", null));
  21677. if (end == null)
  21678. end = receiver.length;
  21679. else if (end < start || end > receiver.length)
  21680. throw H.wrapException(P.RangeError$range(end, start, receiver.length, "end", null));
  21681. if (start === end)
  21682. return H.setRuntimeTypeInfo([], H._arrayInstanceType(receiver));
  21683. return H.setRuntimeTypeInfo(receiver.slice(start, end), H._arrayInstanceType(receiver));
  21684. },
  21685. sublist$1: function($receiver, start) {
  21686. return this.sublist$2($receiver, start, null);
  21687. },
  21688. getRange$2: function(receiver, start, end) {
  21689. P.RangeError_checkValidRange(start, end, receiver.length);
  21690. return H.SubListIterable$(receiver, start, end, H._arrayInstanceType(receiver)._precomputed1);
  21691. },
  21692. get$first: function(receiver) {
  21693. if (receiver.length > 0)
  21694. return receiver[0];
  21695. throw H.wrapException(H.IterableElementError_noElement());
  21696. },
  21697. get$last: function(receiver) {
  21698. var t1 = receiver.length;
  21699. if (t1 > 0)
  21700. return receiver[t1 - 1];
  21701. throw H.wrapException(H.IterableElementError_noElement());
  21702. },
  21703. get$single: function(receiver) {
  21704. var t1 = receiver.length;
  21705. if (t1 === 1)
  21706. return receiver[0];
  21707. if (t1 === 0)
  21708. throw H.wrapException(H.IterableElementError_noElement());
  21709. throw H.wrapException(H.IterableElementError_tooMany());
  21710. },
  21711. removeRange$2: function(receiver, start, end) {
  21712. if (!!receiver.fixed$length)
  21713. H.throwExpression(P.UnsupportedError$("removeRange"));
  21714. P.RangeError_checkValidRange(start, end, receiver.length);
  21715. receiver.splice(start, end - start);
  21716. },
  21717. setRange$4: function(receiver, start, end, iterable, skipCount) {
  21718. var $length, otherStart, otherList, t1, i;
  21719. if (!!receiver.immutable$list)
  21720. H.throwExpression(P.UnsupportedError$("setRange"));
  21721. P.RangeError_checkValidRange(start, end, receiver.length);
  21722. $length = end - start;
  21723. if ($length === 0)
  21724. return;
  21725. P.RangeError_checkNotNegative(skipCount, "skipCount");
  21726. if (type$.List_dynamic._is(iterable)) {
  21727. otherStart = skipCount;
  21728. otherList = iterable;
  21729. } else {
  21730. otherList = J.skip$1$ax(iterable, skipCount).toList$1$growable(0, false);
  21731. otherStart = 0;
  21732. }
  21733. t1 = J.getInterceptor$asx(otherList);
  21734. if (otherStart + $length > t1.get$length(otherList))
  21735. throw H.wrapException(H.IterableElementError_tooFew());
  21736. if (otherStart < start)
  21737. for (i = $length - 1; i >= 0; --i)
  21738. receiver[start + i] = t1.$index(otherList, otherStart + i);
  21739. else
  21740. for (i = 0; i < $length; ++i)
  21741. receiver[start + i] = t1.$index(otherList, otherStart + i);
  21742. },
  21743. setRange$3: function($receiver, start, end, iterable) {
  21744. return this.setRange$4($receiver, start, end, iterable, 0);
  21745. },
  21746. fillRange$3: function(receiver, start, end, fillValue) {
  21747. var i;
  21748. if (!!receiver.immutable$list)
  21749. H.throwExpression(P.UnsupportedError$("fill range"));
  21750. P.RangeError_checkValidRange(start, end, receiver.length);
  21751. for (i = start; i < end; ++i)
  21752. receiver[i] = fillValue;
  21753. },
  21754. any$1: function(receiver, test) {
  21755. var i,
  21756. end = receiver.length;
  21757. for (i = 0; i < end; ++i) {
  21758. if (test.call$1(receiver[i]))
  21759. return true;
  21760. if (receiver.length !== end)
  21761. throw H.wrapException(P.ConcurrentModificationError$(receiver));
  21762. }
  21763. return false;
  21764. },
  21765. every$1: function(receiver, test) {
  21766. var i,
  21767. end = receiver.length;
  21768. for (i = 0; i < end; ++i) {
  21769. if (!test.call$1(receiver[i]))
  21770. return false;
  21771. if (receiver.length !== end)
  21772. throw H.wrapException(P.ConcurrentModificationError$(receiver));
  21773. }
  21774. return true;
  21775. },
  21776. get$reversed: function(receiver) {
  21777. return new H.ReversedListIterable(receiver, H._arrayInstanceType(receiver)._eval$1("ReversedListIterable<1>"));
  21778. },
  21779. sort$1: function(receiver, compare) {
  21780. if (!!receiver.immutable$list)
  21781. H.throwExpression(P.UnsupportedError$("sort"));
  21782. H.Sort_sort(receiver, compare == null ? J._interceptors_JSArray__compareAny$closure() : compare);
  21783. },
  21784. sort$0: function($receiver) {
  21785. return this.sort$1($receiver, null);
  21786. },
  21787. indexOf$1: function(receiver, element) {
  21788. var i;
  21789. if (0 >= receiver.length)
  21790. return -1;
  21791. for (i = 0; i < receiver.length; ++i)
  21792. if (J.$eq$(receiver[i], element))
  21793. return i;
  21794. return -1;
  21795. },
  21796. contains$1: function(receiver, other) {
  21797. var i;
  21798. for (i = 0; i < receiver.length; ++i)
  21799. if (J.$eq$(receiver[i], other))
  21800. return true;
  21801. return false;
  21802. },
  21803. get$isEmpty: function(receiver) {
  21804. return receiver.length === 0;
  21805. },
  21806. get$isNotEmpty: function(receiver) {
  21807. return receiver.length !== 0;
  21808. },
  21809. toString$0: function(receiver) {
  21810. return P.IterableBase_iterableToFullString(receiver, "[", "]");
  21811. },
  21812. toList$1$growable: function(receiver, growable) {
  21813. var t1 = H._arrayInstanceType(receiver);
  21814. return growable ? H.setRuntimeTypeInfo(receiver.slice(0), t1) : J.JSArray_JSArray$markFixed(receiver.slice(0), t1._precomputed1);
  21815. },
  21816. toList$0: function($receiver) {
  21817. return this.toList$1$growable($receiver, true);
  21818. },
  21819. toSet$0: function(receiver) {
  21820. return P.LinkedHashSet_LinkedHashSet$from(receiver, H._arrayInstanceType(receiver)._precomputed1);
  21821. },
  21822. get$iterator: function(receiver) {
  21823. return new J.ArrayIterator(receiver, receiver.length);
  21824. },
  21825. get$hashCode: function(receiver) {
  21826. return H.Primitives_objectHashCode(receiver);
  21827. },
  21828. get$length: function(receiver) {
  21829. return receiver.length;
  21830. },
  21831. set$length: function(receiver, newLength) {
  21832. if (!!receiver.fixed$length)
  21833. H.throwExpression(P.UnsupportedError$("set length"));
  21834. if (newLength < 0)
  21835. throw H.wrapException(P.RangeError$range(newLength, 0, null, "newLength", null));
  21836. receiver.length = newLength;
  21837. },
  21838. $index: function(receiver, index) {
  21839. if (!H._isInt(index))
  21840. throw H.wrapException(H.diagnoseIndexError(receiver, index));
  21841. if (index >= receiver.length || index < 0)
  21842. throw H.wrapException(H.diagnoseIndexError(receiver, index));
  21843. return receiver[index];
  21844. },
  21845. $indexSet: function(receiver, index, value) {
  21846. if (!!receiver.immutable$list)
  21847. H.throwExpression(P.UnsupportedError$("indexed set"));
  21848. if (!H._isInt(index))
  21849. throw H.wrapException(H.diagnoseIndexError(receiver, index));
  21850. if (index >= receiver.length || index < 0)
  21851. throw H.wrapException(H.diagnoseIndexError(receiver, index));
  21852. receiver[index] = value;
  21853. },
  21854. $add: function(receiver, other) {
  21855. var totalLength = receiver.length + other.length,
  21856. t1 = H.setRuntimeTypeInfo([], H._arrayInstanceType(receiver));
  21857. this.set$length(t1, totalLength);
  21858. this.setRange$3(t1, 0, receiver.length, receiver);
  21859. this.setRange$3(t1, receiver.length, totalLength, other);
  21860. return t1;
  21861. },
  21862. $isEfficientLengthIterable: 1,
  21863. $isIterable: 1,
  21864. $isList: 1
  21865. };
  21866. J.JSUnmodifiableArray.prototype = {};
  21867. J.ArrayIterator.prototype = {
  21868. get$current: function(_) {
  21869. return this._current;
  21870. },
  21871. moveNext$0: function() {
  21872. var t2, _this = this,
  21873. t1 = _this._iterable,
  21874. $length = t1.length;
  21875. if (_this._length !== $length)
  21876. throw H.wrapException(H.throwConcurrentModificationError(t1));
  21877. t2 = _this._index;
  21878. if (t2 >= $length) {
  21879. _this._current = null;
  21880. return false;
  21881. }
  21882. _this._current = t1[t2];
  21883. _this._index = t2 + 1;
  21884. return true;
  21885. }
  21886. };
  21887. J.JSNumber.prototype = {
  21888. compareTo$1: function(receiver, b) {
  21889. var bIsNegative;
  21890. if (typeof b != "number")
  21891. throw H.wrapException(H.argumentErrorValue(b));
  21892. if (receiver < b)
  21893. return -1;
  21894. else if (receiver > b)
  21895. return 1;
  21896. else if (receiver === b) {
  21897. if (receiver === 0) {
  21898. bIsNegative = this.get$isNegative(b);
  21899. if (this.get$isNegative(receiver) === bIsNegative)
  21900. return 0;
  21901. if (this.get$isNegative(receiver))
  21902. return -1;
  21903. return 1;
  21904. }
  21905. return 0;
  21906. } else if (isNaN(receiver)) {
  21907. if (isNaN(b))
  21908. return 0;
  21909. return 1;
  21910. } else
  21911. return -1;
  21912. },
  21913. get$isNegative: function(receiver) {
  21914. return receiver === 0 ? 1 / receiver < 0 : receiver < 0;
  21915. },
  21916. ceil$0: function(receiver) {
  21917. var truncated, d;
  21918. if (receiver >= 0) {
  21919. if (receiver <= 2147483647) {
  21920. truncated = receiver | 0;
  21921. return receiver === truncated ? truncated : truncated + 1;
  21922. }
  21923. } else if (receiver >= -2147483648)
  21924. return receiver | 0;
  21925. d = Math.ceil(receiver);
  21926. if (isFinite(d))
  21927. return d;
  21928. throw H.wrapException(P.UnsupportedError$("" + receiver + ".ceil()"));
  21929. },
  21930. floor$0: function(receiver) {
  21931. var truncated, d;
  21932. if (receiver >= 0) {
  21933. if (receiver <= 2147483647)
  21934. return receiver | 0;
  21935. } else if (receiver >= -2147483648) {
  21936. truncated = receiver | 0;
  21937. return receiver === truncated ? truncated : truncated - 1;
  21938. }
  21939. d = Math.floor(receiver);
  21940. if (isFinite(d))
  21941. return d;
  21942. throw H.wrapException(P.UnsupportedError$("" + receiver + ".floor()"));
  21943. },
  21944. round$0: function(receiver) {
  21945. if (receiver > 0) {
  21946. if (receiver !== 1 / 0)
  21947. return Math.round(receiver);
  21948. } else if (receiver > -1 / 0)
  21949. return 0 - Math.round(0 - receiver);
  21950. throw H.wrapException(P.UnsupportedError$("" + receiver + ".round()"));
  21951. },
  21952. clamp$2: function(receiver, lowerLimit, upperLimit) {
  21953. if (C.JSInt_methods.compareTo$1(lowerLimit, upperLimit) > 0)
  21954. throw H.wrapException(H.argumentErrorValue(lowerLimit));
  21955. if (this.compareTo$1(receiver, lowerLimit) < 0)
  21956. return lowerLimit;
  21957. if (this.compareTo$1(receiver, upperLimit) > 0)
  21958. return upperLimit;
  21959. return receiver;
  21960. },
  21961. toRadixString$1: function(receiver, radix) {
  21962. var result, match, exponent, t1;
  21963. if (radix < 2 || radix > 36)
  21964. throw H.wrapException(P.RangeError$range(radix, 2, 36, "radix", null));
  21965. result = receiver.toString(radix);
  21966. if (C.JSString_methods.codeUnitAt$1(result, result.length - 1) !== 41)
  21967. return result;
  21968. match = /^([\da-z]+)(?:\.([\da-z]+))?\(e\+(\d+)\)$/.exec(result);
  21969. if (match == null)
  21970. H.throwExpression(P.UnsupportedError$("Unexpected toString result: " + result));
  21971. result = match[1];
  21972. exponent = +match[3];
  21973. t1 = match[2];
  21974. if (t1 != null) {
  21975. result += t1;
  21976. exponent -= t1.length;
  21977. }
  21978. return result + C.JSString_methods.$mul("0", exponent);
  21979. },
  21980. toString$0: function(receiver) {
  21981. if (receiver === 0 && 1 / receiver < 0)
  21982. return "-0.0";
  21983. else
  21984. return "" + receiver;
  21985. },
  21986. get$hashCode: function(receiver) {
  21987. var absolute, floorLog2, factor, scaled,
  21988. intValue = receiver | 0;
  21989. if (receiver === intValue)
  21990. return 536870911 & intValue;
  21991. absolute = Math.abs(receiver);
  21992. floorLog2 = Math.log(absolute) / 0.6931471805599453 | 0;
  21993. factor = Math.pow(2, floorLog2);
  21994. scaled = absolute < 1 ? absolute / factor : factor / absolute;
  21995. return 536870911 & ((scaled * 9007199254740992 | 0) + (scaled * 3542243181176521 | 0)) * 599197 + floorLog2 * 1259;
  21996. },
  21997. $add: function(receiver, other) {
  21998. if (typeof other != "number")
  21999. throw H.wrapException(H.argumentErrorValue(other));
  22000. return receiver + other;
  22001. },
  22002. $mod: function(receiver, other) {
  22003. var result = receiver % other;
  22004. if (result === 0)
  22005. return 0;
  22006. if (result > 0)
  22007. return result;
  22008. if (other < 0)
  22009. return result - other;
  22010. else
  22011. return result + other;
  22012. },
  22013. $tdiv: function(receiver, other) {
  22014. if ((receiver | 0) === receiver)
  22015. if (other >= 1 || other < -1)
  22016. return receiver / other | 0;
  22017. return this._tdivSlow$1(receiver, other);
  22018. },
  22019. _tdivFast$1: function(receiver, other) {
  22020. return (receiver | 0) === receiver ? receiver / other | 0 : this._tdivSlow$1(receiver, other);
  22021. },
  22022. _tdivSlow$1: function(receiver, other) {
  22023. var quotient = receiver / other;
  22024. if (quotient >= -2147483648 && quotient <= 2147483647)
  22025. return quotient | 0;
  22026. if (quotient > 0) {
  22027. if (quotient !== 1 / 0)
  22028. return Math.floor(quotient);
  22029. } else if (quotient > -1 / 0)
  22030. return Math.ceil(quotient);
  22031. throw H.wrapException(P.UnsupportedError$("Result of truncating division is " + H.S(quotient) + ": " + H.S(receiver) + " ~/ " + other));
  22032. },
  22033. _shrOtherPositive$1: function(receiver, other) {
  22034. var t1;
  22035. if (receiver > 0)
  22036. t1 = this._shrBothPositive$1(receiver, other);
  22037. else {
  22038. t1 = other > 31 ? 31 : other;
  22039. t1 = receiver >> t1 >>> 0;
  22040. }
  22041. return t1;
  22042. },
  22043. _shrReceiverPositive$1: function(receiver, other) {
  22044. if (other < 0)
  22045. throw H.wrapException(H.argumentErrorValue(other));
  22046. return this._shrBothPositive$1(receiver, other);
  22047. },
  22048. _shrBothPositive$1: function(receiver, other) {
  22049. return other > 31 ? 0 : receiver >>> other;
  22050. },
  22051. $isComparable: 1,
  22052. $isdouble: 1,
  22053. $isnum: 1
  22054. };
  22055. J.JSInt.prototype = {$isint: 1};
  22056. J.JSDouble.prototype = {};
  22057. J.JSString.prototype = {
  22058. codeUnitAt$1: function(receiver, index) {
  22059. if (!H._isInt(index))
  22060. throw H.wrapException(H.diagnoseIndexError(receiver, index));
  22061. if (index < 0)
  22062. throw H.wrapException(H.diagnoseIndexError(receiver, index));
  22063. if (index >= receiver.length)
  22064. H.throwExpression(H.diagnoseIndexError(receiver, index));
  22065. return receiver.charCodeAt(index);
  22066. },
  22067. _codeUnitAt$1: function(receiver, index) {
  22068. if (index >= receiver.length)
  22069. throw H.wrapException(H.diagnoseIndexError(receiver, index));
  22070. return receiver.charCodeAt(index);
  22071. },
  22072. allMatches$2: function(receiver, string, start) {
  22073. var t1;
  22074. if (typeof string != "string")
  22075. H.throwExpression(H.argumentErrorValue(string));
  22076. t1 = string.length;
  22077. if (start > t1)
  22078. throw H.wrapException(P.RangeError$range(start, 0, t1, null, null));
  22079. return new H._StringAllMatchesIterable(string, receiver, start);
  22080. },
  22081. allMatches$1: function($receiver, string) {
  22082. return this.allMatches$2($receiver, string, 0);
  22083. },
  22084. matchAsPrefix$2: function(receiver, string, start) {
  22085. var t1, t2, i, _null = null;
  22086. if (start < 0 || start > string.length)
  22087. throw H.wrapException(P.RangeError$range(start, 0, string.length, _null, _null));
  22088. t1 = receiver.length;
  22089. if (start + t1 > string.length)
  22090. return _null;
  22091. for (t2 = J.getInterceptor$s(string), i = 0; i < t1; ++i)
  22092. if (t2.codeUnitAt$1(string, start + i) !== this._codeUnitAt$1(receiver, i))
  22093. return _null;
  22094. return new H.StringMatch(start, receiver);
  22095. },
  22096. $add: function(receiver, other) {
  22097. if (typeof other != "string")
  22098. throw H.wrapException(P.ArgumentError$value(other, null, null));
  22099. return receiver + other;
  22100. },
  22101. endsWith$1: function(receiver, other) {
  22102. var otherLength = other.length,
  22103. t1 = receiver.length;
  22104. if (otherLength > t1)
  22105. return false;
  22106. return other === this.substring$1(receiver, t1 - otherLength);
  22107. },
  22108. replaceFirst$2: function(receiver, from, to) {
  22109. P.RangeError_checkValueInInterval(0, 0, receiver.length, "startIndex");
  22110. return H.stringReplaceFirstUnchecked(receiver, from, to, 0);
  22111. },
  22112. replaceRange$3: function(receiver, start, end, replacement) {
  22113. if (typeof replacement != "string")
  22114. H.throwExpression(H.argumentErrorValue(replacement));
  22115. end = P.RangeError_checkValidRange(start, end, receiver.length);
  22116. return H.stringReplaceRangeUnchecked(receiver, start, end, replacement);
  22117. },
  22118. startsWith$2: function(receiver, pattern, index) {
  22119. var endIndex;
  22120. if (!H._isInt(index))
  22121. H.throwExpression(H.argumentErrorValue(index));
  22122. if (index < 0 || index > receiver.length)
  22123. throw H.wrapException(P.RangeError$range(index, 0, receiver.length, null, null));
  22124. if (typeof pattern == "string") {
  22125. endIndex = index + pattern.length;
  22126. if (endIndex > receiver.length)
  22127. return false;
  22128. return pattern === receiver.substring(index, endIndex);
  22129. }
  22130. return J.matchAsPrefix$2$s(pattern, receiver, index) != null;
  22131. },
  22132. startsWith$1: function($receiver, pattern) {
  22133. return this.startsWith$2($receiver, pattern, 0);
  22134. },
  22135. substring$2: function(receiver, startIndex, endIndex) {
  22136. var _null = null;
  22137. if (!H._isInt(startIndex))
  22138. H.throwExpression(H.argumentErrorValue(startIndex));
  22139. if (endIndex == null)
  22140. endIndex = receiver.length;
  22141. if (startIndex < 0)
  22142. throw H.wrapException(P.RangeError$value(startIndex, _null, _null));
  22143. if (startIndex > endIndex)
  22144. throw H.wrapException(P.RangeError$value(startIndex, _null, _null));
  22145. if (endIndex > receiver.length)
  22146. throw H.wrapException(P.RangeError$value(endIndex, _null, _null));
  22147. return receiver.substring(startIndex, endIndex);
  22148. },
  22149. substring$1: function($receiver, startIndex) {
  22150. return this.substring$2($receiver, startIndex, null);
  22151. },
  22152. trim$0: function(receiver) {
  22153. var startIndex, t1, endIndex0,
  22154. result = receiver.trim(),
  22155. endIndex = result.length;
  22156. if (endIndex === 0)
  22157. return result;
  22158. if (this._codeUnitAt$1(result, 0) === 133) {
  22159. startIndex = J.JSString__skipLeadingWhitespace(result, 1);
  22160. if (startIndex === endIndex)
  22161. return "";
  22162. } else
  22163. startIndex = 0;
  22164. t1 = endIndex - 1;
  22165. endIndex0 = this.codeUnitAt$1(result, t1) === 133 ? J.JSString__skipTrailingWhitespace(result, t1) : endIndex;
  22166. if (startIndex === 0 && endIndex0 === endIndex)
  22167. return result;
  22168. return result.substring(startIndex, endIndex0);
  22169. },
  22170. trimRight$0: function(receiver) {
  22171. var result, endIndex, t1;
  22172. if (typeof receiver.trimRight != "undefined") {
  22173. result = receiver.trimRight();
  22174. endIndex = result.length;
  22175. if (endIndex === 0)
  22176. return result;
  22177. t1 = endIndex - 1;
  22178. if (this.codeUnitAt$1(result, t1) === 133)
  22179. endIndex = J.JSString__skipTrailingWhitespace(result, t1);
  22180. } else {
  22181. endIndex = J.JSString__skipTrailingWhitespace(receiver, receiver.length);
  22182. result = receiver;
  22183. }
  22184. if (endIndex === result.length)
  22185. return result;
  22186. if (endIndex === 0)
  22187. return "";
  22188. return result.substring(0, endIndex);
  22189. },
  22190. $mul: function(receiver, times) {
  22191. var s, result;
  22192. if (0 >= times)
  22193. return "";
  22194. if (times === 1 || receiver.length === 0)
  22195. return receiver;
  22196. if (times !== times >>> 0)
  22197. throw H.wrapException(C.C_OutOfMemoryError);
  22198. for (s = receiver, result = ""; true;) {
  22199. if ((times & 1) === 1)
  22200. result = s + result;
  22201. times = times >>> 1;
  22202. if (times === 0)
  22203. break;
  22204. s += s;
  22205. }
  22206. return result;
  22207. },
  22208. padLeft$2: function(receiver, width, padding) {
  22209. var delta = width - receiver.length;
  22210. if (delta <= 0)
  22211. return receiver;
  22212. return this.$mul(padding, delta) + receiver;
  22213. },
  22214. padRight$1: function(receiver, width) {
  22215. var delta = width - receiver.length;
  22216. if (delta <= 0)
  22217. return receiver;
  22218. return receiver + this.$mul(" ", delta);
  22219. },
  22220. indexOf$2: function(receiver, pattern, start) {
  22221. var t1, t2, i;
  22222. if (pattern == null)
  22223. H.throwExpression(H.argumentErrorValue(pattern));
  22224. if (start < 0 || start > receiver.length)
  22225. throw H.wrapException(P.RangeError$range(start, 0, receiver.length, null, null));
  22226. if (typeof pattern == "string")
  22227. return receiver.indexOf(pattern, start);
  22228. for (t1 = receiver.length, t2 = J.getInterceptor$s(pattern), i = start; i <= t1; ++i)
  22229. if (t2.matchAsPrefix$2(pattern, receiver, i) != null)
  22230. return i;
  22231. return -1;
  22232. },
  22233. indexOf$1: function($receiver, pattern) {
  22234. return this.indexOf$2($receiver, pattern, 0);
  22235. },
  22236. lastIndexOf$2: function(receiver, pattern, start) {
  22237. var t1, t2, i;
  22238. if (pattern == null)
  22239. H.throwExpression(H.argumentErrorValue(pattern));
  22240. if (start == null)
  22241. start = receiver.length;
  22242. else if (start < 0 || start > receiver.length)
  22243. throw H.wrapException(P.RangeError$range(start, 0, receiver.length, null, null));
  22244. if (typeof pattern == "string") {
  22245. t1 = pattern.length;
  22246. t2 = receiver.length;
  22247. if (start + t1 > t2)
  22248. start = t2 - t1;
  22249. return receiver.lastIndexOf(pattern, start);
  22250. }
  22251. for (t1 = J.getInterceptor$s(pattern), i = start; i >= 0; --i)
  22252. if (t1.matchAsPrefix$2(pattern, receiver, i) != null)
  22253. return i;
  22254. return -1;
  22255. },
  22256. lastIndexOf$1: function($receiver, pattern) {
  22257. return this.lastIndexOf$2($receiver, pattern, null);
  22258. },
  22259. contains$2: function(receiver, other, startIndex) {
  22260. var t1;
  22261. if (other == null)
  22262. H.throwExpression(H.argumentErrorValue(other));
  22263. t1 = receiver.length;
  22264. if (startIndex > t1)
  22265. throw H.wrapException(P.RangeError$range(startIndex, 0, t1, null, null));
  22266. return H.stringContainsUnchecked(receiver, other, startIndex);
  22267. },
  22268. contains$1: function($receiver, other) {
  22269. return this.contains$2($receiver, other, 0);
  22270. },
  22271. get$isNotEmpty: function(receiver) {
  22272. return receiver.length !== 0;
  22273. },
  22274. compareTo$1: function(receiver, other) {
  22275. var t1;
  22276. if (typeof other != "string")
  22277. throw H.wrapException(H.argumentErrorValue(other));
  22278. if (receiver === other)
  22279. t1 = 0;
  22280. else
  22281. t1 = receiver < other ? -1 : 1;
  22282. return t1;
  22283. },
  22284. toString$0: function(receiver) {
  22285. return receiver;
  22286. },
  22287. get$hashCode: function(receiver) {
  22288. var t1, hash, i;
  22289. for (t1 = receiver.length, hash = 0, i = 0; i < t1; ++i) {
  22290. hash = 536870911 & hash + receiver.charCodeAt(i);
  22291. hash = 536870911 & hash + ((524287 & hash) << 10);
  22292. hash ^= hash >> 6;
  22293. }
  22294. hash = 536870911 & hash + ((67108863 & hash) << 3);
  22295. hash ^= hash >> 11;
  22296. return 536870911 & hash + ((16383 & hash) << 15);
  22297. },
  22298. get$length: function(receiver) {
  22299. return receiver.length;
  22300. },
  22301. $isComparable: 1,
  22302. $isString: 1
  22303. };
  22304. H._CastIterableBase.prototype = {
  22305. get$iterator: function(_) {
  22306. var t1 = H._instanceType(this);
  22307. return new H.CastIterator(J.get$iterator$ax(this.get$_source()), t1._eval$1("@<1>")._bind$1(t1._rest[1])._eval$1("CastIterator<1,2>"));
  22308. },
  22309. get$length: function(_) {
  22310. return J.get$length$asx(this.get$_source());
  22311. },
  22312. get$isEmpty: function(_) {
  22313. return J.get$isEmpty$asx(this.get$_source());
  22314. },
  22315. get$isNotEmpty: function(_) {
  22316. return J.get$isNotEmpty$asx(this.get$_source());
  22317. },
  22318. skip$1: function(_, count) {
  22319. var t1 = H._instanceType(this);
  22320. return H.CastIterable_CastIterable(J.skip$1$ax(this.get$_source(), count), t1._precomputed1, t1._rest[1]);
  22321. },
  22322. take$1: function(_, count) {
  22323. var t1 = H._instanceType(this);
  22324. return H.CastIterable_CastIterable(J.take$1$ax(this.get$_source(), count), t1._precomputed1, t1._rest[1]);
  22325. },
  22326. elementAt$1: function(_, index) {
  22327. return H._instanceType(this)._rest[1]._as(J.elementAt$1$ax(this.get$_source(), index));
  22328. },
  22329. get$first: function(_) {
  22330. return H._instanceType(this)._rest[1]._as(J.get$first$ax(this.get$_source()));
  22331. },
  22332. get$last: function(_) {
  22333. return H._instanceType(this)._rest[1]._as(J.get$last$ax(this.get$_source()));
  22334. },
  22335. get$single: function(_) {
  22336. return H._instanceType(this)._rest[1]._as(J.get$single$ax(this.get$_source()));
  22337. },
  22338. contains$1: function(_, other) {
  22339. return J.contains$1$asx(this.get$_source(), other);
  22340. },
  22341. toString$0: function(_) {
  22342. return J.toString$0$(this.get$_source());
  22343. }
  22344. };
  22345. H.CastIterator.prototype = {
  22346. moveNext$0: function() {
  22347. return this._source.moveNext$0();
  22348. },
  22349. get$current: function(_) {
  22350. var t1 = this._source;
  22351. return this.$ti._rest[1]._as(t1.get$current(t1));
  22352. }
  22353. };
  22354. H.CastIterable.prototype = {
  22355. cast$1$0: function(_, $R) {
  22356. return H.CastIterable_CastIterable(this._source, H._instanceType(this)._precomputed1, $R);
  22357. },
  22358. get$_source: function() {
  22359. return this._source;
  22360. }
  22361. };
  22362. H._EfficientLengthCastIterable.prototype = {$isEfficientLengthIterable: 1};
  22363. H._CastListBase.prototype = {
  22364. $index: function(_, index) {
  22365. return this.$ti._rest[1]._as(J.$index$asx(this._source, index));
  22366. },
  22367. $indexSet: function(_, index, value) {
  22368. J.$indexSet$ax(this._source, index, this.$ti._precomputed1._as(value));
  22369. },
  22370. set$length: function(_, $length) {
  22371. J.set$length$asx(this._source, $length);
  22372. },
  22373. add$1: function(_, value) {
  22374. J.add$1$ax(this._source, this.$ti._precomputed1._as(value));
  22375. },
  22376. addAll$1: function(_, values) {
  22377. var t1 = this.$ti;
  22378. J.addAll$1$ax(this._source, H.CastIterable_CastIterable(values, t1._rest[1], t1._precomputed1));
  22379. },
  22380. sort$1: function(_, compare) {
  22381. var t1 = compare == null ? null : new H._CastListBase_sort_closure(this, compare);
  22382. J.sort$1$ax(this._source, t1);
  22383. },
  22384. setRange$4: function(_, start, end, iterable, skipCount) {
  22385. var t1 = this.$ti;
  22386. J.setRange$4$ax(this._source, start, end, H.CastIterable_CastIterable(iterable, t1._rest[1], t1._precomputed1), skipCount);
  22387. },
  22388. fillRange$3: function(_, start, end, fillValue) {
  22389. J.fillRange$3$ax(this._source, start, end, this.$ti._precomputed1._as(fillValue));
  22390. },
  22391. $isEfficientLengthIterable: 1,
  22392. $isList: 1
  22393. };
  22394. H._CastListBase_sort_closure.prototype = {
  22395. call$2: function(v1, v2) {
  22396. var t1 = this.$this.$ti._rest[1];
  22397. return this.compare.call$2(t1._as(v1), t1._as(v2));
  22398. },
  22399. $signature: function() {
  22400. return this.$this.$ti._eval$1("int(1,1)");
  22401. }
  22402. };
  22403. H.CastList.prototype = {
  22404. cast$1$0: function(_, $R) {
  22405. return new H.CastList(this._source, this.$ti._eval$1("@<1>")._bind$1($R)._eval$1("CastList<1,2>"));
  22406. },
  22407. get$_source: function() {
  22408. return this._source;
  22409. }
  22410. };
  22411. H.CastSet.prototype = {
  22412. cast$1$0: function(_, $R) {
  22413. return new H.CastSet(this._source, this._emptySet, this.$ti._eval$1("@<1>")._bind$1($R)._eval$1("CastSet<1,2>"));
  22414. },
  22415. add$1: function(_, value) {
  22416. return this._source.add$1(0, this.$ti._precomputed1._as(value));
  22417. },
  22418. addAll$1: function(_, elements) {
  22419. var t1 = this.$ti;
  22420. this._source.addAll$1(0, H.CastIterable_CastIterable(elements, t1._rest[1], t1._precomputed1));
  22421. },
  22422. toSet$0: function(_) {
  22423. var t1 = this._emptySet,
  22424. result = t1 == null ? P.LinkedHashSet_LinkedHashSet(this.$ti._rest[1]) : t1.call$0();
  22425. result.addAll$1(0, this);
  22426. return result;
  22427. },
  22428. $isEfficientLengthIterable: 1,
  22429. $isSet: 1,
  22430. get$_source: function() {
  22431. return this._source;
  22432. }
  22433. };
  22434. H.CastQueue.prototype = {
  22435. cast$1$0: function(_, $R) {
  22436. return new H.CastQueue(this._source, this.$ti._eval$1("@<1>")._bind$1($R)._eval$1("CastQueue<1,2>"));
  22437. },
  22438. add$1: function(_, value) {
  22439. this._source._add$1(this.$ti._precomputed1._as(value));
  22440. },
  22441. $isEfficientLengthIterable: 1,
  22442. $isQueue: 1,
  22443. get$_source: function() {
  22444. return this._source;
  22445. }
  22446. };
  22447. H.CodeUnits.prototype = {
  22448. get$length: function(_) {
  22449. return this._string.length;
  22450. },
  22451. $index: function(_, i) {
  22452. return C.JSString_methods.codeUnitAt$1(this._string, i);
  22453. }
  22454. };
  22455. H.EfficientLengthIterable.prototype = {};
  22456. H.ListIterable.prototype = {
  22457. get$iterator: function(_) {
  22458. return new H.ListIterator(this, this.get$length(this));
  22459. },
  22460. get$isEmpty: function(_) {
  22461. return this.get$length(this) === 0;
  22462. },
  22463. get$first: function(_) {
  22464. if (this.get$length(this) === 0)
  22465. throw H.wrapException(H.IterableElementError_noElement());
  22466. return this.elementAt$1(0, 0);
  22467. },
  22468. get$last: function(_) {
  22469. var _this = this;
  22470. if (_this.get$length(_this) === 0)
  22471. throw H.wrapException(H.IterableElementError_noElement());
  22472. return _this.elementAt$1(0, _this.get$length(_this) - 1);
  22473. },
  22474. get$single: function(_) {
  22475. var _this = this;
  22476. if (_this.get$length(_this) === 0)
  22477. throw H.wrapException(H.IterableElementError_noElement());
  22478. if (_this.get$length(_this) > 1)
  22479. throw H.wrapException(H.IterableElementError_tooMany());
  22480. return _this.elementAt$1(0, 0);
  22481. },
  22482. contains$1: function(_, element) {
  22483. var i, _this = this,
  22484. $length = _this.get$length(_this);
  22485. for (i = 0; i < $length; ++i) {
  22486. if (J.$eq$(_this.elementAt$1(0, i), element))
  22487. return true;
  22488. if ($length !== _this.get$length(_this))
  22489. throw H.wrapException(P.ConcurrentModificationError$(_this));
  22490. }
  22491. return false;
  22492. },
  22493. any$1: function(_, test) {
  22494. var i, _this = this,
  22495. $length = _this.get$length(_this);
  22496. for (i = 0; i < $length; ++i) {
  22497. if (test.call$1(_this.elementAt$1(0, i)))
  22498. return true;
  22499. if ($length !== _this.get$length(_this))
  22500. throw H.wrapException(P.ConcurrentModificationError$(_this));
  22501. }
  22502. return false;
  22503. },
  22504. join$1: function(_, separator) {
  22505. var first, t1, i, _this = this,
  22506. $length = _this.get$length(_this);
  22507. if (separator.length !== 0) {
  22508. if ($length === 0)
  22509. return "";
  22510. first = H.S(_this.elementAt$1(0, 0));
  22511. if ($length !== _this.get$length(_this))
  22512. throw H.wrapException(P.ConcurrentModificationError$(_this));
  22513. for (t1 = first, i = 1; i < $length; ++i) {
  22514. t1 = t1 + separator + H.S(_this.elementAt$1(0, i));
  22515. if ($length !== _this.get$length(_this))
  22516. throw H.wrapException(P.ConcurrentModificationError$(_this));
  22517. }
  22518. return t1.charCodeAt(0) == 0 ? t1 : t1;
  22519. } else {
  22520. for (i = 0, t1 = ""; i < $length; ++i) {
  22521. t1 += H.S(_this.elementAt$1(0, i));
  22522. if ($length !== _this.get$length(_this))
  22523. throw H.wrapException(P.ConcurrentModificationError$(_this));
  22524. }
  22525. return t1.charCodeAt(0) == 0 ? t1 : t1;
  22526. }
  22527. },
  22528. join$0: function($receiver) {
  22529. return this.join$1($receiver, "");
  22530. },
  22531. where$1: function(_, test) {
  22532. return this.super$Iterable$where(0, test);
  22533. },
  22534. map$1$1: function(_, f, $T) {
  22535. return new H.MappedListIterable(this, f, H._instanceType(this)._eval$1("@<ListIterable.E>")._bind$1($T)._eval$1("MappedListIterable<1,2>"));
  22536. },
  22537. reduce$1: function(_, combine) {
  22538. var value, i, _this = this,
  22539. $length = _this.get$length(_this);
  22540. if ($length === 0)
  22541. throw H.wrapException(H.IterableElementError_noElement());
  22542. value = _this.elementAt$1(0, 0);
  22543. for (i = 1; i < $length; ++i) {
  22544. value = combine.call$2(value, _this.elementAt$1(0, i));
  22545. if ($length !== _this.get$length(_this))
  22546. throw H.wrapException(P.ConcurrentModificationError$(_this));
  22547. }
  22548. return value;
  22549. },
  22550. fold$1$2: function(_, initialValue, combine) {
  22551. var value, i, _this = this,
  22552. $length = _this.get$length(_this);
  22553. for (value = initialValue, i = 0; i < $length; ++i) {
  22554. value = combine.call$2(value, _this.elementAt$1(0, i));
  22555. if ($length !== _this.get$length(_this))
  22556. throw H.wrapException(P.ConcurrentModificationError$(_this));
  22557. }
  22558. return value;
  22559. },
  22560. fold$2: function($receiver, initialValue, combine) {
  22561. return this.fold$1$2($receiver, initialValue, combine, type$.dynamic);
  22562. },
  22563. skip$1: function(_, count) {
  22564. return H.SubListIterable$(this, count, null, H._instanceType(this)._eval$1("ListIterable.E"));
  22565. },
  22566. take$1: function(_, count) {
  22567. return H.SubListIterable$(this, 0, count, H._instanceType(this)._eval$1("ListIterable.E"));
  22568. },
  22569. toList$1$growable: function(_, growable) {
  22570. var result, t2, i, _this = this,
  22571. t1 = H._instanceType(_this)._eval$1("JSArray<ListIterable.E>");
  22572. if (growable) {
  22573. result = H.setRuntimeTypeInfo([], t1);
  22574. C.JSArray_methods.set$length(result, _this.get$length(_this));
  22575. } else {
  22576. t2 = new Array(_this.get$length(_this));
  22577. t2.fixed$length = Array;
  22578. result = H.setRuntimeTypeInfo(t2, t1);
  22579. }
  22580. for (i = 0; i < _this.get$length(_this); ++i)
  22581. result[i] = _this.elementAt$1(0, i);
  22582. return result;
  22583. },
  22584. toList$0: function($receiver) {
  22585. return this.toList$1$growable($receiver, true);
  22586. },
  22587. toSet$0: function(_) {
  22588. var i, _this = this,
  22589. result = P.LinkedHashSet_LinkedHashSet(H._instanceType(_this)._eval$1("ListIterable.E"));
  22590. for (i = 0; i < _this.get$length(_this); ++i)
  22591. result.add$1(0, _this.elementAt$1(0, i));
  22592. return result;
  22593. }
  22594. };
  22595. H.SubListIterable.prototype = {
  22596. get$_endIndex: function() {
  22597. var $length = J.get$length$asx(this.__internal$_iterable),
  22598. t1 = this._endOrLength;
  22599. if (t1 == null || t1 > $length)
  22600. return $length;
  22601. return t1;
  22602. },
  22603. get$_startIndex: function() {
  22604. var $length = J.get$length$asx(this.__internal$_iterable),
  22605. t1 = this._start;
  22606. if (t1 > $length)
  22607. return $length;
  22608. return t1;
  22609. },
  22610. get$length: function(_) {
  22611. var t2,
  22612. $length = J.get$length$asx(this.__internal$_iterable),
  22613. t1 = this._start;
  22614. if (t1 >= $length)
  22615. return 0;
  22616. t2 = this._endOrLength;
  22617. if (t2 == null || t2 >= $length)
  22618. return $length - t1;
  22619. return t2 - t1;
  22620. },
  22621. elementAt$1: function(_, index) {
  22622. var _this = this,
  22623. realIndex = _this.get$_startIndex() + index;
  22624. if (index < 0 || realIndex >= _this.get$_endIndex())
  22625. throw H.wrapException(P.IndexError$(index, _this, "index", null, null));
  22626. return J.elementAt$1$ax(_this.__internal$_iterable, realIndex);
  22627. },
  22628. skip$1: function(_, count) {
  22629. var newStart, t1, _this = this;
  22630. P.RangeError_checkNotNegative(count, "count");
  22631. newStart = _this._start + count;
  22632. t1 = _this._endOrLength;
  22633. if (t1 != null && newStart >= t1)
  22634. return new H.EmptyIterable(_this.$ti._eval$1("EmptyIterable<1>"));
  22635. return H.SubListIterable$(_this.__internal$_iterable, newStart, t1, _this.$ti._precomputed1);
  22636. },
  22637. take$1: function(_, count) {
  22638. var t1, t2, newEnd, _this = this;
  22639. P.RangeError_checkNotNegative(count, "count");
  22640. t1 = _this._endOrLength;
  22641. t2 = _this._start;
  22642. if (t1 == null)
  22643. return H.SubListIterable$(_this.__internal$_iterable, t2, t2 + count, _this.$ti._precomputed1);
  22644. else {
  22645. newEnd = t2 + count;
  22646. if (t1 < newEnd)
  22647. return _this;
  22648. return H.SubListIterable$(_this.__internal$_iterable, t2, newEnd, _this.$ti._precomputed1);
  22649. }
  22650. },
  22651. toList$1$growable: function(_, growable) {
  22652. var $length, t3, result, t4, i, _this = this,
  22653. start = _this._start,
  22654. t1 = _this.__internal$_iterable,
  22655. t2 = J.getInterceptor$asx(t1),
  22656. end = t2.get$length(t1),
  22657. end0 = _this._endOrLength;
  22658. if (end0 != null && end0 < end)
  22659. end = end0;
  22660. $length = end - start;
  22661. if ($length < 0)
  22662. $length = 0;
  22663. t3 = _this.$ti._eval$1("JSArray<1>");
  22664. if (growable) {
  22665. result = H.setRuntimeTypeInfo([], t3);
  22666. C.JSArray_methods.set$length(result, $length);
  22667. } else {
  22668. t4 = new Array($length);
  22669. t4.fixed$length = Array;
  22670. result = H.setRuntimeTypeInfo(t4, t3);
  22671. }
  22672. for (i = 0; i < $length; ++i) {
  22673. result[i] = t2.elementAt$1(t1, start + i);
  22674. if (t2.get$length(t1) < end)
  22675. throw H.wrapException(P.ConcurrentModificationError$(_this));
  22676. }
  22677. return result;
  22678. },
  22679. toList$0: function($receiver) {
  22680. return this.toList$1$growable($receiver, true);
  22681. }
  22682. };
  22683. H.ListIterator.prototype = {
  22684. get$current: function(_) {
  22685. return this.__internal$_current;
  22686. },
  22687. moveNext$0: function() {
  22688. var t3, _this = this,
  22689. t1 = _this.__internal$_iterable,
  22690. t2 = J.getInterceptor$asx(t1),
  22691. $length = t2.get$length(t1);
  22692. if (_this.__internal$_length !== $length)
  22693. throw H.wrapException(P.ConcurrentModificationError$(t1));
  22694. t3 = _this.__internal$_index;
  22695. if (t3 >= $length) {
  22696. _this.__internal$_current = null;
  22697. return false;
  22698. }
  22699. _this.__internal$_current = t2.elementAt$1(t1, t3);
  22700. ++_this.__internal$_index;
  22701. return true;
  22702. }
  22703. };
  22704. H.MappedIterable.prototype = {
  22705. get$iterator: function(_) {
  22706. return new H.MappedIterator(J.get$iterator$ax(this.__internal$_iterable), this._f);
  22707. },
  22708. get$length: function(_) {
  22709. return J.get$length$asx(this.__internal$_iterable);
  22710. },
  22711. get$isEmpty: function(_) {
  22712. return J.get$isEmpty$asx(this.__internal$_iterable);
  22713. },
  22714. get$first: function(_) {
  22715. return this._f.call$1(J.get$first$ax(this.__internal$_iterable));
  22716. },
  22717. get$last: function(_) {
  22718. return this._f.call$1(J.get$last$ax(this.__internal$_iterable));
  22719. },
  22720. get$single: function(_) {
  22721. return this._f.call$1(J.get$single$ax(this.__internal$_iterable));
  22722. },
  22723. elementAt$1: function(_, index) {
  22724. return this._f.call$1(J.elementAt$1$ax(this.__internal$_iterable, index));
  22725. }
  22726. };
  22727. H.EfficientLengthMappedIterable.prototype = {$isEfficientLengthIterable: 1};
  22728. H.MappedIterator.prototype = {
  22729. moveNext$0: function() {
  22730. var _this = this,
  22731. t1 = _this._iterator;
  22732. if (t1.moveNext$0()) {
  22733. _this.__internal$_current = _this._f.call$1(t1.get$current(t1));
  22734. return true;
  22735. }
  22736. _this.__internal$_current = null;
  22737. return false;
  22738. },
  22739. get$current: function(_) {
  22740. return this.__internal$_current;
  22741. }
  22742. };
  22743. H.MappedListIterable.prototype = {
  22744. get$length: function(_) {
  22745. return J.get$length$asx(this._source);
  22746. },
  22747. elementAt$1: function(_, index) {
  22748. return this._f.call$1(J.elementAt$1$ax(this._source, index));
  22749. }
  22750. };
  22751. H.WhereIterable.prototype = {
  22752. get$iterator: function(_) {
  22753. return new H.WhereIterator(J.get$iterator$ax(this.__internal$_iterable), this._f);
  22754. },
  22755. map$1$1: function(_, f, $T) {
  22756. return new H.MappedIterable(this, f, this.$ti._eval$1("@<1>")._bind$1($T)._eval$1("MappedIterable<1,2>"));
  22757. }
  22758. };
  22759. H.WhereIterator.prototype = {
  22760. moveNext$0: function() {
  22761. var t1, t2;
  22762. for (t1 = this._iterator, t2 = this._f; t1.moveNext$0();)
  22763. if (t2.call$1(t1.get$current(t1)))
  22764. return true;
  22765. return false;
  22766. },
  22767. get$current: function(_) {
  22768. var t1 = this._iterator;
  22769. return t1.get$current(t1);
  22770. }
  22771. };
  22772. H.ExpandIterable.prototype = {
  22773. get$iterator: function(_) {
  22774. return new H.ExpandIterator(J.get$iterator$ax(this.__internal$_iterable), this._f, C.C_EmptyIterator);
  22775. }
  22776. };
  22777. H.ExpandIterator.prototype = {
  22778. get$current: function(_) {
  22779. return this.__internal$_current;
  22780. },
  22781. moveNext$0: function() {
  22782. var t2, t3, _this = this,
  22783. t1 = _this._currentExpansion;
  22784. if (t1 == null)
  22785. return false;
  22786. for (t2 = _this._iterator, t3 = _this._f; !t1.moveNext$0();) {
  22787. _this.__internal$_current = null;
  22788. if (t2.moveNext$0()) {
  22789. _this._currentExpansion = null;
  22790. t1 = J.get$iterator$ax(t3.call$1(t2.get$current(t2)));
  22791. _this._currentExpansion = t1;
  22792. } else
  22793. return false;
  22794. }
  22795. t1 = _this._currentExpansion;
  22796. _this.__internal$_current = t1.get$current(t1);
  22797. return true;
  22798. }
  22799. };
  22800. H.TakeIterable.prototype = {
  22801. get$iterator: function(_) {
  22802. return new H.TakeIterator(J.get$iterator$ax(this.__internal$_iterable), this._takeCount);
  22803. }
  22804. };
  22805. H.EfficientLengthTakeIterable.prototype = {
  22806. get$length: function(_) {
  22807. var iterableLength = J.get$length$asx(this.__internal$_iterable),
  22808. t1 = this._takeCount;
  22809. if (iterableLength > t1)
  22810. return t1;
  22811. return iterableLength;
  22812. },
  22813. $isEfficientLengthIterable: 1
  22814. };
  22815. H.TakeIterator.prototype = {
  22816. moveNext$0: function() {
  22817. if (--this._remaining >= 0)
  22818. return this._iterator.moveNext$0();
  22819. this._remaining = -1;
  22820. return false;
  22821. },
  22822. get$current: function(_) {
  22823. var t1;
  22824. if (this._remaining < 0)
  22825. return null;
  22826. t1 = this._iterator;
  22827. return t1.get$current(t1);
  22828. }
  22829. };
  22830. H.SkipIterable.prototype = {
  22831. skip$1: function(_, count) {
  22832. P.ArgumentError_checkNotNull(count, "count");
  22833. P.RangeError_checkNotNegative(count, "count");
  22834. return new H.SkipIterable(this.__internal$_iterable, this._skipCount + count, H._instanceType(this)._eval$1("SkipIterable<1>"));
  22835. },
  22836. get$iterator: function(_) {
  22837. return new H.SkipIterator(J.get$iterator$ax(this.__internal$_iterable), this._skipCount);
  22838. }
  22839. };
  22840. H.EfficientLengthSkipIterable.prototype = {
  22841. get$length: function(_) {
  22842. var $length = J.get$length$asx(this.__internal$_iterable) - this._skipCount;
  22843. if ($length >= 0)
  22844. return $length;
  22845. return 0;
  22846. },
  22847. skip$1: function(_, count) {
  22848. P.ArgumentError_checkNotNull(count, "count");
  22849. P.RangeError_checkNotNegative(count, "count");
  22850. return new H.EfficientLengthSkipIterable(this.__internal$_iterable, this._skipCount + count, this.$ti);
  22851. },
  22852. $isEfficientLengthIterable: 1
  22853. };
  22854. H.SkipIterator.prototype = {
  22855. moveNext$0: function() {
  22856. var t1, i;
  22857. for (t1 = this._iterator, i = 0; i < this._skipCount; ++i)
  22858. t1.moveNext$0();
  22859. this._skipCount = 0;
  22860. return t1.moveNext$0();
  22861. },
  22862. get$current: function(_) {
  22863. var t1 = this._iterator;
  22864. return t1.get$current(t1);
  22865. }
  22866. };
  22867. H.SkipWhileIterable.prototype = {
  22868. get$iterator: function(_) {
  22869. return new H.SkipWhileIterator(J.get$iterator$ax(this.__internal$_iterable), this._f);
  22870. }
  22871. };
  22872. H.SkipWhileIterator.prototype = {
  22873. moveNext$0: function() {
  22874. var t1, t2, _this = this;
  22875. if (!_this._hasSkipped) {
  22876. _this._hasSkipped = true;
  22877. for (t1 = _this._iterator, t2 = _this._f; t1.moveNext$0();)
  22878. if (!t2.call$1(t1.get$current(t1)))
  22879. return true;
  22880. }
  22881. return _this._iterator.moveNext$0();
  22882. },
  22883. get$current: function(_) {
  22884. var t1 = this._iterator;
  22885. return t1.get$current(t1);
  22886. }
  22887. };
  22888. H.EmptyIterable.prototype = {
  22889. get$iterator: function(_) {
  22890. return C.C_EmptyIterator;
  22891. },
  22892. get$isEmpty: function(_) {
  22893. return true;
  22894. },
  22895. get$length: function(_) {
  22896. return 0;
  22897. },
  22898. get$first: function(_) {
  22899. throw H.wrapException(H.IterableElementError_noElement());
  22900. },
  22901. get$last: function(_) {
  22902. throw H.wrapException(H.IterableElementError_noElement());
  22903. },
  22904. get$single: function(_) {
  22905. throw H.wrapException(H.IterableElementError_noElement());
  22906. },
  22907. elementAt$1: function(_, index) {
  22908. throw H.wrapException(P.RangeError$range(index, 0, 0, "index", null));
  22909. },
  22910. contains$1: function(_, element) {
  22911. return false;
  22912. },
  22913. join$1: function(_, separator) {
  22914. return "";
  22915. },
  22916. join$0: function($receiver) {
  22917. return this.join$1($receiver, "");
  22918. },
  22919. where$1: function(_, test) {
  22920. return this;
  22921. },
  22922. map$1$1: function(_, f, $T) {
  22923. return new H.EmptyIterable($T._eval$1("EmptyIterable<0>"));
  22924. },
  22925. skip$1: function(_, count) {
  22926. P.RangeError_checkNotNegative(count, "count");
  22927. return this;
  22928. },
  22929. take$1: function(_, count) {
  22930. P.RangeError_checkNotNegative(count, "count");
  22931. return this;
  22932. },
  22933. toList$1$growable: function(_, growable) {
  22934. var t2,
  22935. t1 = this.$ti._eval$1("JSArray<1>");
  22936. if (growable)
  22937. t1 = H.setRuntimeTypeInfo([], t1);
  22938. else {
  22939. t2 = new Array(0);
  22940. t2.fixed$length = Array;
  22941. t1 = H.setRuntimeTypeInfo(t2, t1);
  22942. }
  22943. return t1;
  22944. },
  22945. toList$0: function($receiver) {
  22946. return this.toList$1$growable($receiver, true);
  22947. },
  22948. toSet$0: function(_) {
  22949. return P.LinkedHashSet_LinkedHashSet(this.$ti._precomputed1);
  22950. }
  22951. };
  22952. H.EmptyIterator.prototype = {
  22953. moveNext$0: function() {
  22954. return false;
  22955. },
  22956. get$current: function(_) {
  22957. return null;
  22958. }
  22959. };
  22960. H.FollowedByIterable.prototype = {
  22961. get$iterator: function(_) {
  22962. return new H.FollowedByIterator(J.get$iterator$ax(this.__internal$_first), this._second);
  22963. },
  22964. get$length: function(_) {
  22965. var t1 = this._second;
  22966. return J.get$length$asx(this.__internal$_first) + t1.get$length(t1);
  22967. },
  22968. get$isEmpty: function(_) {
  22969. var t1;
  22970. if (J.get$isEmpty$asx(this.__internal$_first)) {
  22971. t1 = this._second;
  22972. t1 = t1.get$isEmpty(t1);
  22973. } else
  22974. t1 = false;
  22975. return t1;
  22976. },
  22977. get$isNotEmpty: function(_) {
  22978. var t1;
  22979. if (!J.get$isNotEmpty$asx(this.__internal$_first)) {
  22980. t1 = this._second;
  22981. t1 = t1.get$isNotEmpty(t1);
  22982. } else
  22983. t1 = true;
  22984. return t1;
  22985. },
  22986. contains$1: function(_, value) {
  22987. return J.contains$1$asx(this.__internal$_first, value) || this._second.contains$1(0, value);
  22988. },
  22989. get$first: function(_) {
  22990. var t1,
  22991. iterator = J.get$iterator$ax(this.__internal$_first);
  22992. if (iterator.moveNext$0())
  22993. return iterator.get$current(iterator);
  22994. t1 = this._second;
  22995. return t1.get$first(t1);
  22996. },
  22997. get$last: function(_) {
  22998. var last,
  22999. t1 = this._second,
  23000. iterator = t1.get$iterator(t1);
  23001. if (iterator.moveNext$0()) {
  23002. last = iterator.get$current(iterator);
  23003. for (; iterator.moveNext$0();)
  23004. last = iterator.get$current(iterator);
  23005. return last;
  23006. }
  23007. return J.get$last$ax(this.__internal$_first);
  23008. }
  23009. };
  23010. H.EfficientLengthFollowedByIterable.prototype = {
  23011. skip$1: function(_, count) {
  23012. var _this = this,
  23013. t1 = _this.__internal$_first,
  23014. t2 = J.getInterceptor$asx(t1),
  23015. firstLength = t2.get$length(t1);
  23016. if (count >= firstLength) {
  23017. t1 = _this._second;
  23018. return H.SkipIterable_SkipIterable(t1, count - firstLength, H._instanceType(t1)._eval$1("Iterable.E"));
  23019. }
  23020. return new H.EfficientLengthFollowedByIterable(t2.skip$1(t1, count), _this._second, _this.$ti);
  23021. },
  23022. take$1: function(_, count) {
  23023. var t1 = this.__internal$_first,
  23024. t2 = J.getInterceptor$asx(t1),
  23025. firstLength = t2.get$length(t1);
  23026. if (count <= firstLength)
  23027. return t2.take$1(t1, count);
  23028. t2 = this._second;
  23029. return new H.EfficientLengthFollowedByIterable(t1, H.TakeIterable_TakeIterable(t2, count - firstLength, H._instanceType(t2)._eval$1("Iterable.E")), this.$ti);
  23030. },
  23031. elementAt$1: function(_, index) {
  23032. var t1 = this.__internal$_first,
  23033. t2 = J.getInterceptor$asx(t1),
  23034. firstLength = t2.get$length(t1);
  23035. if (index < firstLength)
  23036. return t2.elementAt$1(t1, index);
  23037. return this._second.elementAt$1(0, index - firstLength);
  23038. },
  23039. get$first: function(_) {
  23040. var t1 = this.__internal$_first,
  23041. t2 = J.getInterceptor$asx(t1);
  23042. if (t2.get$isNotEmpty(t1))
  23043. return t2.get$first(t1);
  23044. t1 = this._second;
  23045. return t1.get$first(t1);
  23046. },
  23047. get$last: function(_) {
  23048. var t1 = this._second;
  23049. if (t1.get$isNotEmpty(t1))
  23050. return t1.get$last(t1);
  23051. return J.get$last$ax(this.__internal$_first);
  23052. },
  23053. $isEfficientLengthIterable: 1
  23054. };
  23055. H.FollowedByIterator.prototype = {
  23056. moveNext$0: function() {
  23057. var t1, _this = this;
  23058. if (_this._currentIterator.moveNext$0())
  23059. return true;
  23060. t1 = _this._nextIterable;
  23061. if (t1 != null) {
  23062. t1 = t1.get$iterator(t1);
  23063. _this._currentIterator = t1;
  23064. _this._nextIterable = null;
  23065. return t1.moveNext$0();
  23066. }
  23067. return false;
  23068. },
  23069. get$current: function(_) {
  23070. var t1 = this._currentIterator;
  23071. return t1.get$current(t1);
  23072. }
  23073. };
  23074. H.WhereTypeIterable.prototype = {
  23075. get$iterator: function(_) {
  23076. return new H.WhereTypeIterator(J.get$iterator$ax(this._source), this.$ti._eval$1("WhereTypeIterator<1>"));
  23077. }
  23078. };
  23079. H.WhereTypeIterator.prototype = {
  23080. moveNext$0: function() {
  23081. var t1, t2;
  23082. for (t1 = this._source, t2 = this.$ti._precomputed1; t1.moveNext$0();)
  23083. if (t2._is(t1.get$current(t1)))
  23084. return true;
  23085. return false;
  23086. },
  23087. get$current: function(_) {
  23088. var t1 = this._source;
  23089. return t1.get$current(t1);
  23090. }
  23091. };
  23092. H.FixedLengthListMixin.prototype = {
  23093. set$length: function(receiver, newLength) {
  23094. throw H.wrapException(P.UnsupportedError$("Cannot change the length of a fixed-length list"));
  23095. },
  23096. add$1: function(receiver, value) {
  23097. throw H.wrapException(P.UnsupportedError$("Cannot add to a fixed-length list"));
  23098. },
  23099. addAll$1: function(receiver, iterable) {
  23100. throw H.wrapException(P.UnsupportedError$("Cannot add to a fixed-length list"));
  23101. }
  23102. };
  23103. H.UnmodifiableListMixin.prototype = {
  23104. $indexSet: function(_, index, value) {
  23105. throw H.wrapException(P.UnsupportedError$("Cannot modify an unmodifiable list"));
  23106. },
  23107. set$length: function(_, newLength) {
  23108. throw H.wrapException(P.UnsupportedError$("Cannot change the length of an unmodifiable list"));
  23109. },
  23110. add$1: function(_, value) {
  23111. throw H.wrapException(P.UnsupportedError$("Cannot add to an unmodifiable list"));
  23112. },
  23113. addAll$1: function(_, iterable) {
  23114. throw H.wrapException(P.UnsupportedError$("Cannot add to an unmodifiable list"));
  23115. },
  23116. sort$1: function(_, compare) {
  23117. throw H.wrapException(P.UnsupportedError$("Cannot modify an unmodifiable list"));
  23118. },
  23119. setRange$4: function(_, start, end, iterable, skipCount) {
  23120. throw H.wrapException(P.UnsupportedError$("Cannot modify an unmodifiable list"));
  23121. },
  23122. fillRange$3: function(_, start, end, fillValue) {
  23123. throw H.wrapException(P.UnsupportedError$("Cannot modify an unmodifiable list"));
  23124. }
  23125. };
  23126. H.UnmodifiableListBase.prototype = {};
  23127. H.ReversedListIterable.prototype = {
  23128. get$length: function(_) {
  23129. return J.get$length$asx(this._source);
  23130. },
  23131. elementAt$1: function(_, index) {
  23132. var t1 = this._source,
  23133. t2 = J.getInterceptor$asx(t1);
  23134. return t2.elementAt$1(t1, t2.get$length(t1) - 1 - index);
  23135. }
  23136. };
  23137. H.Symbol.prototype = {
  23138. get$hashCode: function(_) {
  23139. var hash = this._hashCode;
  23140. if (hash != null)
  23141. return hash;
  23142. hash = 536870911 & 664597 * J.get$hashCode$(this.__internal$_name);
  23143. this._hashCode = hash;
  23144. return hash;
  23145. },
  23146. toString$0: function(_) {
  23147. return 'Symbol("' + H.S(this.__internal$_name) + '")';
  23148. },
  23149. $eq: function(_, other) {
  23150. if (other == null)
  23151. return false;
  23152. return other instanceof H.Symbol && this.__internal$_name == other.__internal$_name;
  23153. },
  23154. $isSymbol0: 1
  23155. };
  23156. H.__CastListBase__CastIterableBase_ListMixin.prototype = {};
  23157. H.ConstantMapView.prototype = {};
  23158. H.ConstantMap.prototype = {
  23159. get$isEmpty: function(_) {
  23160. return this.get$length(this) === 0;
  23161. },
  23162. get$isNotEmpty: function(_) {
  23163. return this.get$length(this) !== 0;
  23164. },
  23165. toString$0: function(_) {
  23166. return P.MapBase_mapToString(this);
  23167. },
  23168. $indexSet: function(_, key, val) {
  23169. return H.ConstantMap__throwUnmodifiable();
  23170. },
  23171. putIfAbsent$2: function(key, ifAbsent) {
  23172. return H.ConstantMap__throwUnmodifiable();
  23173. },
  23174. remove$1: function(_, key) {
  23175. return H.ConstantMap__throwUnmodifiable();
  23176. },
  23177. addAll$1: function(_, other) {
  23178. return H.ConstantMap__throwUnmodifiable();
  23179. },
  23180. get$entries: function() {
  23181. return this.entries$body$ConstantMap(H._instanceType(this)._eval$1("MapEntry<1,2>"));
  23182. },
  23183. entries$body$ConstantMap: function($async$type) {
  23184. var $async$self = this;
  23185. return P._makeSyncStarIterable(function() {
  23186. var $async$goto = 0, $async$handler = 1, $async$currentError, t1, t2, key;
  23187. return function $async$get$entries($async$errorCode, $async$result) {
  23188. if ($async$errorCode === 1) {
  23189. $async$currentError = $async$result;
  23190. $async$goto = $async$handler;
  23191. }
  23192. while (true)
  23193. switch ($async$goto) {
  23194. case 0:
  23195. // Function start
  23196. t1 = $async$self.get$keys(), t1 = t1.get$iterator(t1), t2 = H._instanceType($async$self), t2 = t2._eval$1("@<1>")._bind$1(t2._rest[1])._eval$1("MapEntry<1,2>");
  23197. case 2:
  23198. // for condition
  23199. if (!t1.moveNext$0()) {
  23200. // goto after for
  23201. $async$goto = 3;
  23202. break;
  23203. }
  23204. key = t1.get$current(t1);
  23205. $async$goto = 4;
  23206. return new P.MapEntry(key, $async$self.$index(0, key), t2);
  23207. case 4:
  23208. // after yield
  23209. // goto for condition
  23210. $async$goto = 2;
  23211. break;
  23212. case 3:
  23213. // after for
  23214. // implicit return
  23215. return P._IterationMarker_endOfIteration();
  23216. case 1:
  23217. // rethrow
  23218. return P._IterationMarker_uncaughtError($async$currentError);
  23219. }
  23220. };
  23221. }, $async$type);
  23222. },
  23223. $isMap: 1
  23224. };
  23225. H.ConstantStringMap.prototype = {
  23226. get$length: function(_) {
  23227. return this.__js_helper$_length;
  23228. },
  23229. containsKey$1: function(key) {
  23230. if (typeof key != "string")
  23231. return false;
  23232. if ("__proto__" === key)
  23233. return false;
  23234. return this._jsObject.hasOwnProperty(key);
  23235. },
  23236. $index: function(_, key) {
  23237. if (!this.containsKey$1(key))
  23238. return null;
  23239. return this._fetch$1(key);
  23240. },
  23241. _fetch$1: function(key) {
  23242. return this._jsObject[key];
  23243. },
  23244. forEach$1: function(_, f) {
  23245. var t1, i, key,
  23246. keys = this.__js_helper$_keys;
  23247. for (t1 = keys.length, i = 0; i < t1; ++i) {
  23248. key = keys[i];
  23249. f.call$2(key, this._fetch$1(key));
  23250. }
  23251. },
  23252. get$keys: function() {
  23253. return new H._ConstantMapKeyIterable(this, H._instanceType(this)._eval$1("_ConstantMapKeyIterable<1>"));
  23254. },
  23255. get$values: function() {
  23256. var t1 = H._instanceType(this);
  23257. return H.MappedIterable_MappedIterable(this.__js_helper$_keys, new H.ConstantStringMap_values_closure(this), t1._precomputed1, t1._rest[1]);
  23258. }
  23259. };
  23260. H.ConstantStringMap_values_closure.prototype = {
  23261. call$1: function(key) {
  23262. return this.$this._fetch$1(key);
  23263. },
  23264. $signature: function() {
  23265. return H._instanceType(this.$this)._eval$1("2(1)");
  23266. }
  23267. };
  23268. H.ConstantProtoMap.prototype = {
  23269. containsKey$1: function(key) {
  23270. if (typeof key != "string")
  23271. return false;
  23272. if ("__proto__" === key)
  23273. return true;
  23274. return this._jsObject.hasOwnProperty(key);
  23275. },
  23276. _fetch$1: function(key) {
  23277. return "__proto__" === key ? this._protoValue : this._jsObject[key];
  23278. }
  23279. };
  23280. H._ConstantMapKeyIterable.prototype = {
  23281. get$iterator: function(_) {
  23282. var t1 = this._map.__js_helper$_keys;
  23283. return new J.ArrayIterator(t1, t1.length);
  23284. },
  23285. get$length: function(_) {
  23286. return this._map.__js_helper$_keys.length;
  23287. }
  23288. };
  23289. H.Instantiation.prototype = {
  23290. Instantiation$1: function(_genericClosure) {
  23291. if (false)
  23292. H.instantiatedGenericFunctionType(0, 0);
  23293. },
  23294. toString$0: function(_) {
  23295. var types = "<" + C.JSArray_methods.join$1(this.get$_types(), ", ") + ">";
  23296. return H.S(this._genericClosure) + " with " + types;
  23297. }
  23298. };
  23299. H.Instantiation1.prototype = {
  23300. get$_types: function() {
  23301. return [H.createRuntimeType(this.$ti._precomputed1)];
  23302. },
  23303. call$2: function(a0, a1) {
  23304. return this._genericClosure.call$1$2(a0, a1, this.$ti._rest[0]);
  23305. },
  23306. call$0: function() {
  23307. return this._genericClosure.call$1$0(this.$ti._rest[0]);
  23308. },
  23309. call$3: function(a0, a1, a2) {
  23310. return this._genericClosure.call$1$3(a0, a1, a2, this.$ti._rest[0]);
  23311. },
  23312. call$4: function(a0, a1, a2, a3) {
  23313. return this._genericClosure.call$1$4(a0, a1, a2, a3, this.$ti._rest[0]);
  23314. },
  23315. $signature: function() {
  23316. return H.instantiatedGenericFunctionType(H.closureFunctionType(this._genericClosure), this.$ti);
  23317. }
  23318. };
  23319. H.JSInvocationMirror.prototype = {
  23320. get$memberName: function() {
  23321. var t1 = this.__js_helper$_memberName;
  23322. return t1;
  23323. },
  23324. get$positionalArguments: function() {
  23325. var t1, argumentCount, list, index, _this = this;
  23326. if (_this.__js_helper$_kind === 1)
  23327. return C.List_empty22;
  23328. t1 = _this._arguments;
  23329. argumentCount = t1.length - _this._namedArgumentNames.length - _this._typeArgumentCount;
  23330. if (argumentCount === 0)
  23331. return C.List_empty22;
  23332. list = [];
  23333. for (index = 0; index < argumentCount; ++index)
  23334. list.push(t1[index]);
  23335. return J.JSArray_markUnmodifiableList(list);
  23336. },
  23337. get$namedArguments: function() {
  23338. var t1, namedArgumentCount, t2, namedArgumentsStartIndex, map, i, _this = this;
  23339. if (_this.__js_helper$_kind !== 0)
  23340. return C.Map_empty10;
  23341. t1 = _this._namedArgumentNames;
  23342. namedArgumentCount = t1.length;
  23343. t2 = _this._arguments;
  23344. namedArgumentsStartIndex = t2.length - namedArgumentCount - _this._typeArgumentCount;
  23345. if (namedArgumentCount === 0)
  23346. return C.Map_empty10;
  23347. map = new H.JsLinkedHashMap(type$.JsLinkedHashMap_Symbol_dynamic);
  23348. for (i = 0; i < namedArgumentCount; ++i)
  23349. map.$indexSet(0, new H.Symbol(t1[i]), t2[namedArgumentsStartIndex + i]);
  23350. return new H.ConstantMapView(map, type$.ConstantMapView_Symbol_dynamic);
  23351. }
  23352. };
  23353. H.Primitives_functionNoSuchMethod_closure.prototype = {
  23354. call$2: function($name, argument) {
  23355. var t1 = this._box_0;
  23356. t1.names = t1.names + "$" + H.S($name);
  23357. this.namedArgumentList.push($name);
  23358. this.$arguments.push(argument);
  23359. ++t1.argumentCount;
  23360. }
  23361. };
  23362. H.TypeErrorDecoder.prototype = {
  23363. matchTypeError$1: function(message) {
  23364. var result, t1, _this = this,
  23365. match = new RegExp(_this._pattern).exec(message);
  23366. if (match == null)
  23367. return null;
  23368. result = Object.create(null);
  23369. t1 = _this._arguments;
  23370. if (t1 !== -1)
  23371. result.arguments = match[t1 + 1];
  23372. t1 = _this._argumentsExpr;
  23373. if (t1 !== -1)
  23374. result.argumentsExpr = match[t1 + 1];
  23375. t1 = _this._expr;
  23376. if (t1 !== -1)
  23377. result.expr = match[t1 + 1];
  23378. t1 = _this._method;
  23379. if (t1 !== -1)
  23380. result.method = match[t1 + 1];
  23381. t1 = _this._receiver;
  23382. if (t1 !== -1)
  23383. result.receiver = match[t1 + 1];
  23384. return result;
  23385. }
  23386. };
  23387. H.NullError.prototype = {
  23388. toString$0: function(_) {
  23389. var t1 = this._method;
  23390. if (t1 == null)
  23391. return "NoSuchMethodError: " + H.S(this.__js_helper$_message);
  23392. return "NoSuchMethodError: method not found: '" + t1 + "' on null";
  23393. }
  23394. };
  23395. H.JsNoSuchMethodError.prototype = {
  23396. toString$0: function(_) {
  23397. var t2, _this = this,
  23398. _s38_ = "NoSuchMethodError: method not found: '",
  23399. t1 = _this._method;
  23400. if (t1 == null)
  23401. return "NoSuchMethodError: " + H.S(_this.__js_helper$_message);
  23402. t2 = _this._receiver;
  23403. if (t2 == null)
  23404. return _s38_ + t1 + "' (" + H.S(_this.__js_helper$_message) + ")";
  23405. return _s38_ + t1 + "' on '" + t2 + "' (" + H.S(_this.__js_helper$_message) + ")";
  23406. }
  23407. };
  23408. H.UnknownJsTypeError.prototype = {
  23409. toString$0: function(_) {
  23410. var t1 = this.__js_helper$_message;
  23411. return t1.length === 0 ? "Error" : "Error: " + t1;
  23412. }
  23413. };
  23414. H.ExceptionAndStackTrace.prototype = {};
  23415. H.unwrapException_saveStackTrace.prototype = {
  23416. call$1: function(error) {
  23417. if (type$.Error._is(error))
  23418. if (error.$thrownJsError == null)
  23419. error.$thrownJsError = this.ex;
  23420. return error;
  23421. },
  23422. $signature: 28
  23423. };
  23424. H._StackTrace.prototype = {
  23425. toString$0: function(_) {
  23426. var trace,
  23427. t1 = this._trace;
  23428. if (t1 != null)
  23429. return t1;
  23430. t1 = this._exception;
  23431. trace = t1 !== null && typeof t1 === "object" ? t1.stack : null;
  23432. return this._trace = trace == null ? "" : trace;
  23433. },
  23434. $isStackTrace: 1
  23435. };
  23436. H.Closure.prototype = {
  23437. toString$0: function(_) {
  23438. var $constructor = this.constructor,
  23439. $name = $constructor == null ? null : $constructor.name;
  23440. return "Closure '" + H.unminifyOrTag($name == null ? "unknown" : $name) + "'";
  23441. },
  23442. $isFunction: 1,
  23443. get$$call: function() {
  23444. return this;
  23445. },
  23446. "call*": "call$1",
  23447. $requiredArgCount: 1,
  23448. $defaultValues: null
  23449. };
  23450. H.TearOffClosure.prototype = {};
  23451. H.StaticClosure.prototype = {
  23452. toString$0: function(_) {
  23453. var $name = this.$static_name;
  23454. if ($name == null)
  23455. return "Closure of unknown static method";
  23456. return "Closure '" + H.unminifyOrTag($name) + "'";
  23457. }
  23458. };
  23459. H.BoundClosure.prototype = {
  23460. $eq: function(_, other) {
  23461. var _this = this;
  23462. if (other == null)
  23463. return false;
  23464. if (_this === other)
  23465. return true;
  23466. if (!(other instanceof H.BoundClosure))
  23467. return false;
  23468. return _this._self === other._self && _this._target === other._target && _this._receiver === other._receiver;
  23469. },
  23470. get$hashCode: function(_) {
  23471. var receiverHashCode,
  23472. t1 = this._receiver;
  23473. if (t1 == null)
  23474. receiverHashCode = H.Primitives_objectHashCode(this._self);
  23475. else
  23476. receiverHashCode = typeof t1 !== "object" ? J.get$hashCode$(t1) : H.Primitives_objectHashCode(t1);
  23477. return (receiverHashCode ^ H.Primitives_objectHashCode(this._target)) >>> 0;
  23478. },
  23479. toString$0: function(_) {
  23480. var receiver = this._receiver;
  23481. if (receiver == null)
  23482. receiver = this._self;
  23483. return "Closure '" + H.S(this.__js_helper$_name) + "' of " + ("Instance of '" + H.S(H.Primitives_objectTypeName(receiver)) + "'");
  23484. }
  23485. };
  23486. H.RuntimeError.prototype = {
  23487. toString$0: function(_) {
  23488. return "RuntimeError: " + H.S(this.message);
  23489. },
  23490. get$message: function(receiver) {
  23491. return this.message;
  23492. }
  23493. };
  23494. H.JsLinkedHashMap.prototype = {
  23495. get$length: function(_) {
  23496. return this.__js_helper$_length;
  23497. },
  23498. get$isEmpty: function(_) {
  23499. return this.__js_helper$_length === 0;
  23500. },
  23501. get$isNotEmpty: function(_) {
  23502. return !this.get$isEmpty(this);
  23503. },
  23504. get$keys: function() {
  23505. return new H.LinkedHashMapKeyIterable(this, H._instanceType(this)._eval$1("LinkedHashMapKeyIterable<1>"));
  23506. },
  23507. get$values: function() {
  23508. var t1 = H._instanceType(this);
  23509. return H.MappedIterable_MappedIterable(this.get$keys(), new H.JsLinkedHashMap_values_closure(this), t1._precomputed1, t1._rest[1]);
  23510. },
  23511. containsKey$1: function(key) {
  23512. var strings, nums, _this = this;
  23513. if (typeof key == "string") {
  23514. strings = _this._strings;
  23515. if (strings == null)
  23516. return false;
  23517. return _this._containsTableEntry$2(strings, key);
  23518. } else if (typeof key == "number" && (key & 0x3ffffff) === key) {
  23519. nums = _this._nums;
  23520. if (nums == null)
  23521. return false;
  23522. return _this._containsTableEntry$2(nums, key);
  23523. } else
  23524. return _this.internalContainsKey$1(key);
  23525. },
  23526. internalContainsKey$1: function(key) {
  23527. var _this = this,
  23528. rest = _this.__js_helper$_rest;
  23529. if (rest == null)
  23530. return false;
  23531. return _this.internalFindBucketIndex$2(_this._getTableBucket$2(rest, _this.internalComputeHashCode$1(key)), key) >= 0;
  23532. },
  23533. addAll$1: function(_, other) {
  23534. other.forEach$1(0, new H.JsLinkedHashMap_addAll_closure(this));
  23535. },
  23536. $index: function(_, key) {
  23537. var strings, cell, t1, nums, _this = this, _null = null;
  23538. if (typeof key == "string") {
  23539. strings = _this._strings;
  23540. if (strings == null)
  23541. return _null;
  23542. cell = _this._getTableCell$2(strings, key);
  23543. t1 = cell == null ? _null : cell.hashMapCellValue;
  23544. return t1;
  23545. } else if (typeof key == "number" && (key & 0x3ffffff) === key) {
  23546. nums = _this._nums;
  23547. if (nums == null)
  23548. return _null;
  23549. cell = _this._getTableCell$2(nums, key);
  23550. t1 = cell == null ? _null : cell.hashMapCellValue;
  23551. return t1;
  23552. } else
  23553. return _this.internalGet$1(key);
  23554. },
  23555. internalGet$1: function(key) {
  23556. var bucket, index, _this = this,
  23557. rest = _this.__js_helper$_rest;
  23558. if (rest == null)
  23559. return null;
  23560. bucket = _this._getTableBucket$2(rest, _this.internalComputeHashCode$1(key));
  23561. index = _this.internalFindBucketIndex$2(bucket, key);
  23562. if (index < 0)
  23563. return null;
  23564. return bucket[index].hashMapCellValue;
  23565. },
  23566. $indexSet: function(_, key, value) {
  23567. var strings, nums, _this = this;
  23568. if (typeof key == "string") {
  23569. strings = _this._strings;
  23570. _this._addHashTableEntry$3(strings == null ? _this._strings = _this._newHashTable$0() : strings, key, value);
  23571. } else if (typeof key == "number" && (key & 0x3ffffff) === key) {
  23572. nums = _this._nums;
  23573. _this._addHashTableEntry$3(nums == null ? _this._nums = _this._newHashTable$0() : nums, key, value);
  23574. } else
  23575. _this.internalSet$2(key, value);
  23576. },
  23577. internalSet$2: function(key, value) {
  23578. var hash, bucket, index, _this = this,
  23579. rest = _this.__js_helper$_rest;
  23580. if (rest == null)
  23581. rest = _this.__js_helper$_rest = _this._newHashTable$0();
  23582. hash = _this.internalComputeHashCode$1(key);
  23583. bucket = _this._getTableBucket$2(rest, hash);
  23584. if (bucket == null)
  23585. _this._setTableEntry$3(rest, hash, [_this._newLinkedCell$2(key, value)]);
  23586. else {
  23587. index = _this.internalFindBucketIndex$2(bucket, key);
  23588. if (index >= 0)
  23589. bucket[index].hashMapCellValue = value;
  23590. else
  23591. bucket.push(_this._newLinkedCell$2(key, value));
  23592. }
  23593. },
  23594. putIfAbsent$2: function(key, ifAbsent) {
  23595. var value;
  23596. if (this.containsKey$1(key))
  23597. return this.$index(0, key);
  23598. value = ifAbsent.call$0();
  23599. this.$indexSet(0, key, value);
  23600. return value;
  23601. },
  23602. remove$1: function(_, key) {
  23603. var _this = this;
  23604. if (typeof key == "string")
  23605. return _this.__js_helper$_removeHashTableEntry$2(_this._strings, key);
  23606. else if (typeof key == "number" && (key & 0x3ffffff) === key)
  23607. return _this.__js_helper$_removeHashTableEntry$2(_this._nums, key);
  23608. else
  23609. return _this.internalRemove$1(key);
  23610. },
  23611. internalRemove$1: function(key) {
  23612. var hash, bucket, index, cell, _this = this,
  23613. rest = _this.__js_helper$_rest;
  23614. if (rest == null)
  23615. return null;
  23616. hash = _this.internalComputeHashCode$1(key);
  23617. bucket = _this._getTableBucket$2(rest, hash);
  23618. index = _this.internalFindBucketIndex$2(bucket, key);
  23619. if (index < 0)
  23620. return null;
  23621. cell = bucket.splice(index, 1)[0];
  23622. _this.__js_helper$_unlinkCell$1(cell);
  23623. if (bucket.length === 0)
  23624. _this._deleteTableEntry$2(rest, hash);
  23625. return cell.hashMapCellValue;
  23626. },
  23627. clear$0: function(_) {
  23628. var _this = this;
  23629. if (_this.__js_helper$_length > 0) {
  23630. _this._strings = _this._nums = _this.__js_helper$_rest = _this._first = _this._last = null;
  23631. _this.__js_helper$_length = 0;
  23632. _this._modified$0();
  23633. }
  23634. },
  23635. forEach$1: function(_, action) {
  23636. var _this = this,
  23637. cell = _this._first,
  23638. modifications = _this._modifications;
  23639. for (; cell != null;) {
  23640. action.call$2(cell.hashMapCellKey, cell.hashMapCellValue);
  23641. if (modifications !== _this._modifications)
  23642. throw H.wrapException(P.ConcurrentModificationError$(_this));
  23643. cell = cell._next;
  23644. }
  23645. },
  23646. _addHashTableEntry$3: function(table, key, value) {
  23647. var cell = this._getTableCell$2(table, key);
  23648. if (cell == null)
  23649. this._setTableEntry$3(table, key, this._newLinkedCell$2(key, value));
  23650. else
  23651. cell.hashMapCellValue = value;
  23652. },
  23653. __js_helper$_removeHashTableEntry$2: function(table, key) {
  23654. var cell;
  23655. if (table == null)
  23656. return null;
  23657. cell = this._getTableCell$2(table, key);
  23658. if (cell == null)
  23659. return null;
  23660. this.__js_helper$_unlinkCell$1(cell);
  23661. this._deleteTableEntry$2(table, key);
  23662. return cell.hashMapCellValue;
  23663. },
  23664. _modified$0: function() {
  23665. this._modifications = this._modifications + 1 & 67108863;
  23666. },
  23667. _newLinkedCell$2: function(key, value) {
  23668. var last, _this = this,
  23669. cell = new H.LinkedHashMapCell(key, value);
  23670. if (_this._first == null)
  23671. _this._first = _this._last = cell;
  23672. else {
  23673. last = _this._last;
  23674. cell._previous = last;
  23675. _this._last = last._next = cell;
  23676. }
  23677. ++_this.__js_helper$_length;
  23678. _this._modified$0();
  23679. return cell;
  23680. },
  23681. __js_helper$_unlinkCell$1: function(cell) {
  23682. var _this = this,
  23683. previous = cell._previous,
  23684. next = cell._next;
  23685. if (previous == null)
  23686. _this._first = next;
  23687. else
  23688. previous._next = next;
  23689. if (next == null)
  23690. _this._last = previous;
  23691. else
  23692. next._previous = previous;
  23693. --_this.__js_helper$_length;
  23694. _this._modified$0();
  23695. },
  23696. internalComputeHashCode$1: function(key) {
  23697. return J.get$hashCode$(key) & 0x3ffffff;
  23698. },
  23699. internalFindBucketIndex$2: function(bucket, key) {
  23700. var $length, i;
  23701. if (bucket == null)
  23702. return -1;
  23703. $length = bucket.length;
  23704. for (i = 0; i < $length; ++i)
  23705. if (J.$eq$(bucket[i].hashMapCellKey, key))
  23706. return i;
  23707. return -1;
  23708. },
  23709. toString$0: function(_) {
  23710. return P.MapBase_mapToString(this);
  23711. },
  23712. _getTableCell$2: function(table, key) {
  23713. return table[key];
  23714. },
  23715. _getTableBucket$2: function(table, key) {
  23716. return table[key];
  23717. },
  23718. _setTableEntry$3: function(table, key, value) {
  23719. table[key] = value;
  23720. },
  23721. _deleteTableEntry$2: function(table, key) {
  23722. delete table[key];
  23723. },
  23724. _containsTableEntry$2: function(table, key) {
  23725. return this._getTableCell$2(table, key) != null;
  23726. },
  23727. _newHashTable$0: function() {
  23728. var _s20_ = "<non-identifier-key>",
  23729. table = Object.create(null);
  23730. this._setTableEntry$3(table, _s20_, table);
  23731. this._deleteTableEntry$2(table, _s20_);
  23732. return table;
  23733. }
  23734. };
  23735. H.JsLinkedHashMap_values_closure.prototype = {
  23736. call$1: function(each) {
  23737. return this.$this.$index(0, each);
  23738. },
  23739. $signature: function() {
  23740. return H._instanceType(this.$this)._eval$1("2(1)");
  23741. }
  23742. };
  23743. H.JsLinkedHashMap_addAll_closure.prototype = {
  23744. call$2: function(key, value) {
  23745. this.$this.$indexSet(0, key, value);
  23746. },
  23747. $signature: function() {
  23748. return H._instanceType(this.$this)._eval$1("Null(1,2)");
  23749. }
  23750. };
  23751. H.LinkedHashMapCell.prototype = {};
  23752. H.LinkedHashMapKeyIterable.prototype = {
  23753. get$length: function(_) {
  23754. return this._map.__js_helper$_length;
  23755. },
  23756. get$isEmpty: function(_) {
  23757. return this._map.__js_helper$_length === 0;
  23758. },
  23759. get$iterator: function(_) {
  23760. var t1 = this._map,
  23761. t2 = new H.LinkedHashMapKeyIterator(t1, t1._modifications);
  23762. t2._cell = t1._first;
  23763. return t2;
  23764. },
  23765. contains$1: function(_, element) {
  23766. return this._map.containsKey$1(element);
  23767. }
  23768. };
  23769. H.LinkedHashMapKeyIterator.prototype = {
  23770. get$current: function(_) {
  23771. return this.__js_helper$_current;
  23772. },
  23773. moveNext$0: function() {
  23774. var _this = this,
  23775. t1 = _this._map;
  23776. if (_this._modifications !== t1._modifications)
  23777. throw H.wrapException(P.ConcurrentModificationError$(t1));
  23778. else {
  23779. t1 = _this._cell;
  23780. if (t1 == null) {
  23781. _this.__js_helper$_current = null;
  23782. return false;
  23783. } else {
  23784. _this.__js_helper$_current = t1.hashMapCellKey;
  23785. _this._cell = t1._next;
  23786. return true;
  23787. }
  23788. }
  23789. }
  23790. };
  23791. H.initHooks_closure.prototype = {
  23792. call$1: function(o) {
  23793. return this.getTag(o);
  23794. },
  23795. $signature: 28
  23796. };
  23797. H.initHooks_closure0.prototype = {
  23798. call$2: function(o, tag) {
  23799. return this.getUnknownTag(o, tag);
  23800. }
  23801. };
  23802. H.initHooks_closure1.prototype = {
  23803. call$1: function(tag) {
  23804. return this.prototypeForTag(tag);
  23805. }
  23806. };
  23807. H.JSSyntaxRegExp.prototype = {
  23808. toString$0: function(_) {
  23809. return "RegExp/" + this.pattern + "/" + this._nativeRegExp.flags;
  23810. },
  23811. get$_nativeGlobalVersion: function() {
  23812. var _this = this,
  23813. t1 = _this._nativeGlobalRegExp;
  23814. if (t1 != null)
  23815. return t1;
  23816. t1 = _this._nativeRegExp;
  23817. return _this._nativeGlobalRegExp = H.JSSyntaxRegExp_makeNative(_this.pattern, t1.multiline, !t1.ignoreCase, t1.unicode, t1.dotAll, true);
  23818. },
  23819. get$_nativeAnchoredVersion: function() {
  23820. var _this = this,
  23821. t1 = _this._nativeAnchoredRegExp;
  23822. if (t1 != null)
  23823. return t1;
  23824. t1 = _this._nativeRegExp;
  23825. return _this._nativeAnchoredRegExp = H.JSSyntaxRegExp_makeNative(_this.pattern + "|()", t1.multiline, !t1.ignoreCase, t1.unicode, t1.dotAll, true);
  23826. },
  23827. firstMatch$1: function(string) {
  23828. var m;
  23829. if (typeof string != "string")
  23830. H.throwExpression(H.argumentErrorValue(string));
  23831. m = this._nativeRegExp.exec(string);
  23832. if (m == null)
  23833. return null;
  23834. return new H._MatchImplementation(m);
  23835. },
  23836. allMatches$2: function(_, string, start) {
  23837. var t1 = string.length;
  23838. if (start > t1)
  23839. throw H.wrapException(P.RangeError$range(start, 0, t1, null, null));
  23840. return new H._AllMatchesIterable(this, string, start);
  23841. },
  23842. allMatches$1: function($receiver, string) {
  23843. return this.allMatches$2($receiver, string, 0);
  23844. },
  23845. _execGlobal$2: function(string, start) {
  23846. var match,
  23847. regexp = this.get$_nativeGlobalVersion();
  23848. regexp.lastIndex = start;
  23849. match = regexp.exec(string);
  23850. if (match == null)
  23851. return null;
  23852. return new H._MatchImplementation(match);
  23853. },
  23854. _execAnchored$2: function(string, start) {
  23855. var match,
  23856. regexp = this.get$_nativeAnchoredVersion();
  23857. regexp.lastIndex = start;
  23858. match = regexp.exec(string);
  23859. if (match == null)
  23860. return null;
  23861. if (match.pop() != null)
  23862. return null;
  23863. return new H._MatchImplementation(match);
  23864. },
  23865. matchAsPrefix$2: function(_, string, start) {
  23866. if (start < 0 || start > string.length)
  23867. throw H.wrapException(P.RangeError$range(start, 0, string.length, null, null));
  23868. return this._execAnchored$2(string, start);
  23869. }
  23870. };
  23871. H._MatchImplementation.prototype = {
  23872. get$start: function(_) {
  23873. return this._match.index;
  23874. },
  23875. get$end: function(_) {
  23876. var t1 = this._match;
  23877. return t1.index + t1[0].length;
  23878. },
  23879. $isMatch: 1,
  23880. $isRegExpMatch: 1
  23881. };
  23882. H._AllMatchesIterable.prototype = {
  23883. get$iterator: function(_) {
  23884. return new H._AllMatchesIterator(this._re, this.__js_helper$_string, this.__js_helper$_start);
  23885. }
  23886. };
  23887. H._AllMatchesIterator.prototype = {
  23888. get$current: function(_) {
  23889. return this.__js_helper$_current;
  23890. },
  23891. moveNext$0: function() {
  23892. var t2, t3, match, nextIndex, _this = this,
  23893. t1 = _this.__js_helper$_string;
  23894. if (t1 == null)
  23895. return false;
  23896. t2 = _this._nextIndex;
  23897. if (t2 <= t1.length) {
  23898. t3 = _this._regExp;
  23899. match = t3._execGlobal$2(t1, t2);
  23900. if (match != null) {
  23901. _this.__js_helper$_current = match;
  23902. nextIndex = match.get$end(match);
  23903. if (match._match.index === nextIndex) {
  23904. if (t3._nativeRegExp.unicode) {
  23905. t1 = _this._nextIndex;
  23906. t2 = t1 + 1;
  23907. t3 = _this.__js_helper$_string;
  23908. if (t2 < t3.length) {
  23909. t1 = J.getInterceptor$s(t3).codeUnitAt$1(t3, t1);
  23910. if (t1 >= 55296 && t1 <= 56319) {
  23911. t1 = C.JSString_methods.codeUnitAt$1(t3, t2);
  23912. t1 = t1 >= 56320 && t1 <= 57343;
  23913. } else
  23914. t1 = false;
  23915. } else
  23916. t1 = false;
  23917. } else
  23918. t1 = false;
  23919. nextIndex = (t1 ? nextIndex + 1 : nextIndex) + 1;
  23920. }
  23921. _this._nextIndex = nextIndex;
  23922. return true;
  23923. }
  23924. }
  23925. _this.__js_helper$_string = _this.__js_helper$_current = null;
  23926. return false;
  23927. }
  23928. };
  23929. H.StringMatch.prototype = {
  23930. get$end: function(_) {
  23931. return this.start + this.pattern.length;
  23932. },
  23933. group$1: function(group_) {
  23934. if (group_ !== 0)
  23935. throw H.wrapException(P.RangeError$value(group_, null, null));
  23936. return this.pattern;
  23937. },
  23938. $isMatch: 1,
  23939. get$start: function(receiver) {
  23940. return this.start;
  23941. }
  23942. };
  23943. H._StringAllMatchesIterable.prototype = {
  23944. get$iterator: function(_) {
  23945. return new H._StringAllMatchesIterator(this._input, this._pattern, this.__js_helper$_index);
  23946. },
  23947. get$first: function(_) {
  23948. var t1 = this._pattern,
  23949. index = this._input.indexOf(t1, this.__js_helper$_index);
  23950. if (index >= 0)
  23951. return new H.StringMatch(index, t1);
  23952. throw H.wrapException(H.IterableElementError_noElement());
  23953. }
  23954. };
  23955. H._StringAllMatchesIterator.prototype = {
  23956. moveNext$0: function() {
  23957. var index, end, _this = this,
  23958. t1 = _this.__js_helper$_index,
  23959. t2 = _this._pattern,
  23960. t3 = t2.length,
  23961. t4 = _this._input,
  23962. t5 = t4.length;
  23963. if (t1 + t3 > t5) {
  23964. _this.__js_helper$_current = null;
  23965. return false;
  23966. }
  23967. index = t4.indexOf(t2, t1);
  23968. if (index < 0) {
  23969. _this.__js_helper$_index = t5 + 1;
  23970. _this.__js_helper$_current = null;
  23971. return false;
  23972. }
  23973. end = index + t3;
  23974. _this.__js_helper$_current = new H.StringMatch(index, t2);
  23975. _this.__js_helper$_index = end === _this.__js_helper$_index ? end + 1 : end;
  23976. return true;
  23977. },
  23978. get$current: function(_) {
  23979. return this.__js_helper$_current;
  23980. }
  23981. };
  23982. H.NativeTypedData.prototype = {
  23983. _invalidPosition$3: function(receiver, position, $length, $name) {
  23984. if (!H._isInt(position))
  23985. throw H.wrapException(P.ArgumentError$value(position, $name, "Invalid list position"));
  23986. else
  23987. throw H.wrapException(P.RangeError$range(position, 0, $length, $name, null));
  23988. },
  23989. _checkPosition$3: function(receiver, position, $length, $name) {
  23990. if (position >>> 0 !== position || position > $length)
  23991. this._invalidPosition$3(receiver, position, $length, $name);
  23992. }
  23993. };
  23994. H.NativeTypedArray.prototype = {
  23995. get$length: function(receiver) {
  23996. return receiver.length;
  23997. },
  23998. _setRangeFast$4: function(receiver, start, end, source, skipCount) {
  23999. var count, sourceLength,
  24000. targetLength = receiver.length;
  24001. this._checkPosition$3(receiver, start, targetLength, "start");
  24002. this._checkPosition$3(receiver, end, targetLength, "end");
  24003. if (start > end)
  24004. throw H.wrapException(P.RangeError$range(start, 0, end, null, null));
  24005. count = end - start;
  24006. if (skipCount < 0)
  24007. throw H.wrapException(P.ArgumentError$(skipCount));
  24008. sourceLength = source.length;
  24009. if (sourceLength - skipCount < count)
  24010. throw H.wrapException(P.StateError$("Not enough elements"));
  24011. if (skipCount !== 0 || sourceLength !== count)
  24012. source = source.subarray(skipCount, skipCount + count);
  24013. receiver.set(source, start);
  24014. },
  24015. $isJavaScriptIndexingBehavior: 1
  24016. };
  24017. H.NativeTypedArrayOfDouble.prototype = {
  24018. $index: function(receiver, index) {
  24019. H._checkValidIndex(index, receiver, receiver.length);
  24020. return receiver[index];
  24021. },
  24022. $indexSet: function(receiver, index, value) {
  24023. H._checkValidIndex(index, receiver, receiver.length);
  24024. receiver[index] = value;
  24025. },
  24026. setRange$4: function(receiver, start, end, iterable, skipCount) {
  24027. if (type$.NativeTypedArrayOfDouble._is(iterable)) {
  24028. this._setRangeFast$4(receiver, start, end, iterable, skipCount);
  24029. return;
  24030. }
  24031. this.super$ListMixin$setRange(receiver, start, end, iterable, skipCount);
  24032. },
  24033. $isEfficientLengthIterable: 1,
  24034. $isIterable: 1,
  24035. $isList: 1
  24036. };
  24037. H.NativeTypedArrayOfInt.prototype = {
  24038. $indexSet: function(receiver, index, value) {
  24039. H._checkValidIndex(index, receiver, receiver.length);
  24040. receiver[index] = value;
  24041. },
  24042. setRange$4: function(receiver, start, end, iterable, skipCount) {
  24043. if (type$.NativeTypedArrayOfInt._is(iterable)) {
  24044. this._setRangeFast$4(receiver, start, end, iterable, skipCount);
  24045. return;
  24046. }
  24047. this.super$ListMixin$setRange(receiver, start, end, iterable, skipCount);
  24048. },
  24049. $isEfficientLengthIterable: 1,
  24050. $isIterable: 1,
  24051. $isList: 1
  24052. };
  24053. H.NativeFloat32List.prototype = {
  24054. sublist$2: function(receiver, start, end) {
  24055. return new Float32Array(receiver.subarray(start, H._checkValidRange(start, end, receiver.length)));
  24056. }
  24057. };
  24058. H.NativeFloat64List.prototype = {
  24059. sublist$2: function(receiver, start, end) {
  24060. return new Float64Array(receiver.subarray(start, H._checkValidRange(start, end, receiver.length)));
  24061. }
  24062. };
  24063. H.NativeInt16List.prototype = {
  24064. $index: function(receiver, index) {
  24065. H._checkValidIndex(index, receiver, receiver.length);
  24066. return receiver[index];
  24067. },
  24068. sublist$2: function(receiver, start, end) {
  24069. return new Int16Array(receiver.subarray(start, H._checkValidRange(start, end, receiver.length)));
  24070. }
  24071. };
  24072. H.NativeInt32List.prototype = {
  24073. $index: function(receiver, index) {
  24074. H._checkValidIndex(index, receiver, receiver.length);
  24075. return receiver[index];
  24076. },
  24077. sublist$2: function(receiver, start, end) {
  24078. return new Int32Array(receiver.subarray(start, H._checkValidRange(start, end, receiver.length)));
  24079. }
  24080. };
  24081. H.NativeInt8List.prototype = {
  24082. $index: function(receiver, index) {
  24083. H._checkValidIndex(index, receiver, receiver.length);
  24084. return receiver[index];
  24085. },
  24086. sublist$2: function(receiver, start, end) {
  24087. return new Int8Array(receiver.subarray(start, H._checkValidRange(start, end, receiver.length)));
  24088. }
  24089. };
  24090. H.NativeUint16List.prototype = {
  24091. $index: function(receiver, index) {
  24092. H._checkValidIndex(index, receiver, receiver.length);
  24093. return receiver[index];
  24094. },
  24095. sublist$2: function(receiver, start, end) {
  24096. return new Uint16Array(receiver.subarray(start, H._checkValidRange(start, end, receiver.length)));
  24097. }
  24098. };
  24099. H.NativeUint32List.prototype = {
  24100. $index: function(receiver, index) {
  24101. H._checkValidIndex(index, receiver, receiver.length);
  24102. return receiver[index];
  24103. },
  24104. sublist$2: function(receiver, start, end) {
  24105. return new Uint32Array(receiver.subarray(start, H._checkValidRange(start, end, receiver.length)));
  24106. }
  24107. };
  24108. H.NativeUint8ClampedList.prototype = {
  24109. get$length: function(receiver) {
  24110. return receiver.length;
  24111. },
  24112. $index: function(receiver, index) {
  24113. H._checkValidIndex(index, receiver, receiver.length);
  24114. return receiver[index];
  24115. },
  24116. sublist$2: function(receiver, start, end) {
  24117. return new Uint8ClampedArray(receiver.subarray(start, H._checkValidRange(start, end, receiver.length)));
  24118. }
  24119. };
  24120. H.NativeUint8List.prototype = {
  24121. get$length: function(receiver) {
  24122. return receiver.length;
  24123. },
  24124. $index: function(receiver, index) {
  24125. H._checkValidIndex(index, receiver, receiver.length);
  24126. return receiver[index];
  24127. },
  24128. sublist$2: function(receiver, start, end) {
  24129. return new Uint8Array(receiver.subarray(start, H._checkValidRange(start, end, receiver.length)));
  24130. },
  24131. $isNativeUint8List: 1,
  24132. $isUint8List: 1
  24133. };
  24134. H._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin.prototype = {};
  24135. H._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin.prototype = {};
  24136. H._NativeTypedArrayOfInt_NativeTypedArray_ListMixin.prototype = {};
  24137. H._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin.prototype = {};
  24138. H.Rti.prototype = {
  24139. _eval$1: function(recipe) {
  24140. return H._Universe_evalInEnvironment(init.typeUniverse, this, recipe);
  24141. },
  24142. _bind$1: function(typeOrTuple) {
  24143. return H._Universe_bind(init.typeUniverse, this, typeOrTuple);
  24144. }
  24145. };
  24146. H._FunctionParameters.prototype = {};
  24147. H._Type.prototype = {
  24148. toString$0: function(_) {
  24149. return H._rtiToString(this._rti, null);
  24150. }
  24151. };
  24152. H._Error.prototype = {
  24153. toString$0: function(_) {
  24154. return this._message;
  24155. }
  24156. };
  24157. H._TypeError.prototype = {
  24158. get$message: function(_) {
  24159. return this._message;
  24160. }
  24161. };
  24162. P._AsyncRun__initializeScheduleImmediate_internalCallback.prototype = {
  24163. call$1: function(_) {
  24164. var t1 = this._box_0,
  24165. f = t1.storedCallback;
  24166. t1.storedCallback = null;
  24167. f.call$0();
  24168. },
  24169. $signature: 54
  24170. };
  24171. P._AsyncRun__initializeScheduleImmediate_closure.prototype = {
  24172. call$1: function(callback) {
  24173. var t1, t2;
  24174. this._box_0.storedCallback = callback;
  24175. t1 = this.div;
  24176. t2 = this.span;
  24177. t1.firstChild ? t1.removeChild(t2) : t1.appendChild(t2);
  24178. }
  24179. };
  24180. P._AsyncRun__scheduleImmediateJsOverride_internalCallback.prototype = {
  24181. call$0: function() {
  24182. this.callback.call$0();
  24183. },
  24184. "call*": "call$0",
  24185. $requiredArgCount: 0,
  24186. $signature: 0
  24187. };
  24188. P._AsyncRun__scheduleImmediateWithSetImmediate_internalCallback.prototype = {
  24189. call$0: function() {
  24190. this.callback.call$0();
  24191. },
  24192. "call*": "call$0",
  24193. $requiredArgCount: 0,
  24194. $signature: 0
  24195. };
  24196. P._TimerImpl.prototype = {
  24197. _TimerImpl$2: function(milliseconds, callback) {
  24198. if (self.setTimeout != null)
  24199. this._handle = self.setTimeout(H.convertDartClosureToJS(new P._TimerImpl_internalCallback(this, callback), 0), milliseconds);
  24200. else
  24201. throw H.wrapException(P.UnsupportedError$("`setTimeout()` not found."));
  24202. },
  24203. _TimerImpl$periodic$2: function(milliseconds, callback) {
  24204. if (self.setTimeout != null)
  24205. this._handle = self.setInterval(H.convertDartClosureToJS(new P._TimerImpl$periodic_closure(this, milliseconds, Date.now(), callback), 0), milliseconds);
  24206. else
  24207. throw H.wrapException(P.UnsupportedError$("Periodic timer."));
  24208. },
  24209. cancel$0: function() {
  24210. if (self.setTimeout != null) {
  24211. var t1 = this._handle;
  24212. if (t1 == null)
  24213. return;
  24214. if (this._once)
  24215. self.clearTimeout(t1);
  24216. else
  24217. self.clearInterval(t1);
  24218. this._handle = null;
  24219. } else
  24220. throw H.wrapException(P.UnsupportedError$("Canceling a timer."));
  24221. }
  24222. };
  24223. P._TimerImpl_internalCallback.prototype = {
  24224. call$0: function() {
  24225. var t1 = this.$this;
  24226. t1._handle = null;
  24227. t1._tick = 1;
  24228. this.callback.call$0();
  24229. },
  24230. "call*": "call$0",
  24231. $requiredArgCount: 0,
  24232. $signature: 1
  24233. };
  24234. P._TimerImpl$periodic_closure.prototype = {
  24235. call$0: function() {
  24236. var duration, _this = this,
  24237. t1 = _this.$this,
  24238. tick = t1._tick + 1,
  24239. t2 = _this.milliseconds;
  24240. if (t2 > 0) {
  24241. duration = Date.now() - _this.start;
  24242. if (duration > (tick + 1) * t2)
  24243. tick = C.JSInt_methods.$tdiv(duration, t2);
  24244. }
  24245. t1._tick = tick;
  24246. _this.callback.call$1(t1);
  24247. },
  24248. "call*": "call$0",
  24249. $requiredArgCount: 0,
  24250. $signature: 0
  24251. };
  24252. P._AsyncAwaitCompleter.prototype = {
  24253. complete$1: function(value) {
  24254. var t1 = !this.isSync || this.$ti._eval$1("Future<1>")._is(value),
  24255. t2 = this._future;
  24256. if (t1)
  24257. t2._asyncComplete$1(value);
  24258. else
  24259. t2._completeWithValue$1(value);
  24260. },
  24261. completeError$2: function(e, st) {
  24262. var t1;
  24263. if (st == null)
  24264. st = P.AsyncError_defaultStackTrace(e);
  24265. t1 = this._future;
  24266. if (this.isSync)
  24267. t1._completeError$2(e, st);
  24268. else
  24269. t1._asyncCompleteError$2(e, st);
  24270. }
  24271. };
  24272. P._awaitOnObject_closure.prototype = {
  24273. call$1: function(result) {
  24274. return this.bodyFunction.call$2(0, result);
  24275. },
  24276. $signature: 178
  24277. };
  24278. P._awaitOnObject_closure0.prototype = {
  24279. call$2: function(error, stackTrace) {
  24280. this.bodyFunction.call$2(1, new H.ExceptionAndStackTrace(error, stackTrace));
  24281. },
  24282. "call*": "call$2",
  24283. $requiredArgCount: 2,
  24284. $signature: 58
  24285. };
  24286. P._wrapJsFunctionForAsync_closure.prototype = {
  24287. call$2: function(errorCode, result) {
  24288. this.$protected(errorCode, result);
  24289. },
  24290. "call*": "call$2",
  24291. $requiredArgCount: 2
  24292. };
  24293. P._asyncStarHelper_closure.prototype = {
  24294. call$0: function() {
  24295. var t1 = this.controller,
  24296. t2 = t1.controller,
  24297. t3 = t2._state;
  24298. if ((t3 & 1) !== 0 ? (t2.get$_subscription()._state & 4) !== 0 : (t3 & 2) === 0) {
  24299. t1.isSuspended = true;
  24300. return;
  24301. }
  24302. this.bodyFunctionOrErrorCode.call$2(null, 0);
  24303. },
  24304. "call*": "call$0",
  24305. $requiredArgCount: 0,
  24306. $signature: 0
  24307. };
  24308. P._asyncStarHelper_closure0.prototype = {
  24309. call$1: function(_) {
  24310. var errorCode = this.controller.cancelationFuture != null ? 2 : 0;
  24311. this.bodyFunctionOrErrorCode.call$2(errorCode, null);
  24312. },
  24313. $signature: 54
  24314. };
  24315. P._AsyncStarStreamController.prototype = {
  24316. add$1: function(_, $event) {
  24317. return this.controller.add$1(0, $event);
  24318. },
  24319. _AsyncStarStreamController$1: function(body, $T) {
  24320. var t1 = new P._AsyncStarStreamController__resumeBody(body);
  24321. this.controller = P.StreamController_StreamController(new P._AsyncStarStreamController_closure(this, body), new P._AsyncStarStreamController_closure0(t1), null, new P._AsyncStarStreamController_closure1(this, t1), false, $T);
  24322. }
  24323. };
  24324. P._AsyncStarStreamController__resumeBody.prototype = {
  24325. call$0: function() {
  24326. P.scheduleMicrotask(new P._AsyncStarStreamController__resumeBody_closure(this.body));
  24327. },
  24328. $signature: 0
  24329. };
  24330. P._AsyncStarStreamController__resumeBody_closure.prototype = {
  24331. call$0: function() {
  24332. this.body.call$2(0, null);
  24333. },
  24334. "call*": "call$0",
  24335. $requiredArgCount: 0,
  24336. $signature: 0
  24337. };
  24338. P._AsyncStarStreamController_closure0.prototype = {
  24339. call$0: function() {
  24340. this._resumeBody.call$0();
  24341. },
  24342. $signature: 0
  24343. };
  24344. P._AsyncStarStreamController_closure1.prototype = {
  24345. call$0: function() {
  24346. var t1 = this.$this;
  24347. if (t1.isSuspended) {
  24348. t1.isSuspended = false;
  24349. this._resumeBody.call$0();
  24350. }
  24351. },
  24352. $signature: 0
  24353. };
  24354. P._AsyncStarStreamController_closure.prototype = {
  24355. call$0: function() {
  24356. var t1 = this.$this;
  24357. if ((t1.controller._state & 4) === 0) {
  24358. t1.cancelationFuture = new P._Future($.Zone__current, type$._Future_dynamic);
  24359. if (t1.isSuspended) {
  24360. t1.isSuspended = false;
  24361. P.scheduleMicrotask(new P._AsyncStarStreamController__closure(this.body));
  24362. }
  24363. return t1.cancelationFuture;
  24364. }
  24365. },
  24366. "call*": "call$0",
  24367. $requiredArgCount: 0,
  24368. $signature: 143
  24369. };
  24370. P._AsyncStarStreamController__closure.prototype = {
  24371. call$0: function() {
  24372. this.body.call$2(2, null);
  24373. },
  24374. "call*": "call$0",
  24375. $requiredArgCount: 0,
  24376. $signature: 0
  24377. };
  24378. P._IterationMarker.prototype = {
  24379. toString$0: function(_) {
  24380. return "IterationMarker(" + this.state + ", " + H.S(this.value) + ")";
  24381. }
  24382. };
  24383. P._SyncStarIterator.prototype = {
  24384. get$current: function(_) {
  24385. var t1 = this._nestedIterator;
  24386. if (t1 == null)
  24387. return this._async$_current;
  24388. return t1.get$current(t1);
  24389. },
  24390. moveNext$0: function() {
  24391. var t1, value, state, inner, _this = this;
  24392. for (; true;) {
  24393. t1 = _this._nestedIterator;
  24394. if (t1 != null)
  24395. if (t1.moveNext$0())
  24396. return true;
  24397. else
  24398. _this._nestedIterator = null;
  24399. value = function(body, SUCCESS, ERROR) {
  24400. var errorValue,
  24401. errorCode = SUCCESS;
  24402. while (true)
  24403. try {
  24404. return body(errorCode, errorValue);
  24405. } catch (error) {
  24406. errorValue = error;
  24407. errorCode = ERROR;
  24408. }
  24409. }(_this._body, 0, 1);
  24410. if (value instanceof P._IterationMarker) {
  24411. state = value.state;
  24412. if (state === 2) {
  24413. t1 = _this._suspendedBodies;
  24414. if (t1 == null || t1.length === 0) {
  24415. _this._async$_current = null;
  24416. return false;
  24417. }
  24418. _this._body = t1.pop();
  24419. continue;
  24420. } else {
  24421. t1 = value.value;
  24422. if (state === 3)
  24423. throw t1;
  24424. else {
  24425. inner = J.get$iterator$ax(t1);
  24426. if (inner instanceof P._SyncStarIterator) {
  24427. t1 = _this._suspendedBodies;
  24428. if (t1 == null)
  24429. t1 = _this._suspendedBodies = [];
  24430. t1.push(_this._body);
  24431. _this._body = inner._body;
  24432. continue;
  24433. } else {
  24434. _this._nestedIterator = inner;
  24435. continue;
  24436. }
  24437. }
  24438. }
  24439. } else {
  24440. _this._async$_current = value;
  24441. return true;
  24442. }
  24443. }
  24444. return false;
  24445. }
  24446. };
  24447. P._SyncStarIterable.prototype = {
  24448. get$iterator: function(_) {
  24449. return new P._SyncStarIterator(this._outerHelper());
  24450. }
  24451. };
  24452. P._BroadcastStream.prototype = {
  24453. get$isBroadcast: function() {
  24454. return true;
  24455. }
  24456. };
  24457. P._BroadcastSubscription.prototype = {
  24458. _async$_onPause$0: function() {
  24459. },
  24460. _async$_onResume$0: function() {
  24461. }
  24462. };
  24463. P._BroadcastStreamController.prototype = {
  24464. set$onPause: function(onPauseHandler) {
  24465. throw H.wrapException(P.UnsupportedError$("Broadcast stream controllers do not support pause callbacks"));
  24466. },
  24467. set$onResume: function(onResumeHandler) {
  24468. throw H.wrapException(P.UnsupportedError$("Broadcast stream controllers do not support pause callbacks"));
  24469. },
  24470. get$stream: function() {
  24471. return new P._BroadcastStream(this, H._instanceType(this)._eval$1("_BroadcastStream<1>"));
  24472. },
  24473. get$_mayAddEvent: function() {
  24474. return this._state < 4;
  24475. },
  24476. _ensureDoneFuture$0: function() {
  24477. var t1 = this._doneFuture;
  24478. if (t1 != null)
  24479. return t1;
  24480. return this._doneFuture = new P._Future($.Zone__current, type$._Future_dynamic);
  24481. },
  24482. _removeListener$1: function(subscription) {
  24483. var previous = subscription._async$_previous,
  24484. next = subscription._async$_next;
  24485. if (previous == null)
  24486. this._firstSubscription = next;
  24487. else
  24488. previous._async$_next = next;
  24489. if (next == null)
  24490. this._lastSubscription = previous;
  24491. else
  24492. next._async$_previous = previous;
  24493. subscription._async$_previous = subscription;
  24494. subscription._async$_next = subscription;
  24495. },
  24496. _subscribe$4: function(onData, onError, onDone, cancelOnError) {
  24497. var t1, t2, t3, subscription, oldLast, _this = this;
  24498. if ((_this._state & 4) !== 0) {
  24499. if (onDone == null)
  24500. onDone = P.async___nullDoneHandler$closure();
  24501. t1 = new P._DoneStreamSubscription($.Zone__current, onDone, H._instanceType(_this)._eval$1("_DoneStreamSubscription<1>"));
  24502. t1._schedule$0();
  24503. return t1;
  24504. }
  24505. t1 = H._instanceType(_this);
  24506. t2 = $.Zone__current;
  24507. t3 = cancelOnError ? 1 : 0;
  24508. subscription = new P._BroadcastSubscription(_this, t2, t3, t1._eval$1("_BroadcastSubscription<1>"));
  24509. subscription._BufferingStreamSubscription$4(onData, onError, onDone, cancelOnError, t1._precomputed1);
  24510. subscription._async$_previous = subscription;
  24511. subscription._async$_next = subscription;
  24512. subscription._eventState = _this._state & 1;
  24513. oldLast = _this._lastSubscription;
  24514. _this._lastSubscription = subscription;
  24515. subscription._async$_next = null;
  24516. subscription._async$_previous = oldLast;
  24517. if (oldLast == null)
  24518. _this._firstSubscription = subscription;
  24519. else
  24520. oldLast._async$_next = subscription;
  24521. if (_this._firstSubscription === subscription)
  24522. P._runGuarded(_this.onListen);
  24523. return subscription;
  24524. },
  24525. _recordCancel$1: function(sub) {
  24526. var t1, _this = this;
  24527. if (sub._async$_next === sub)
  24528. return null;
  24529. t1 = sub._eventState;
  24530. if ((t1 & 2) !== 0)
  24531. sub._eventState = t1 | 4;
  24532. else {
  24533. _this._removeListener$1(sub);
  24534. if ((_this._state & 2) === 0 && _this._firstSubscription == null)
  24535. _this._callOnCancel$0();
  24536. }
  24537. return null;
  24538. },
  24539. _recordPause$1: function(subscription) {
  24540. },
  24541. _recordResume$1: function(subscription) {
  24542. },
  24543. _addEventError$0: function() {
  24544. if ((this._state & 4) !== 0)
  24545. return new P.StateError("Cannot add new events after calling close");
  24546. return new P.StateError("Cannot add new events while doing an addStream");
  24547. },
  24548. add$1: function(_, data) {
  24549. if (!this.get$_mayAddEvent())
  24550. throw H.wrapException(this._addEventError$0());
  24551. this._sendData$1(data);
  24552. },
  24553. addError$2: function(error, stackTrace) {
  24554. var replacement;
  24555. P.ArgumentError_checkNotNull(error, "error");
  24556. if (!this.get$_mayAddEvent())
  24557. throw H.wrapException(this._addEventError$0());
  24558. replacement = $.Zone__current.errorCallback$2(error, stackTrace);
  24559. if (replacement != null) {
  24560. error = replacement.error;
  24561. if (error == null)
  24562. error = new P.NullThrownError();
  24563. stackTrace = replacement.stackTrace;
  24564. }
  24565. this._sendError$2(error, stackTrace == null ? P.AsyncError_defaultStackTrace(error) : stackTrace);
  24566. },
  24567. close$0: function(_) {
  24568. var doneFuture, _this = this;
  24569. if ((_this._state & 4) !== 0)
  24570. return _this._doneFuture;
  24571. if (!_this.get$_mayAddEvent())
  24572. throw H.wrapException(_this._addEventError$0());
  24573. _this._state |= 4;
  24574. doneFuture = _this._ensureDoneFuture$0();
  24575. _this._sendDone$0();
  24576. return doneFuture;
  24577. },
  24578. _forEachListener$1: function(action) {
  24579. var subscription, id, next, _this = this,
  24580. t1 = _this._state;
  24581. if ((t1 & 2) !== 0)
  24582. throw H.wrapException(P.StateError$("Cannot fire new event. Controller is already firing an event"));
  24583. subscription = _this._firstSubscription;
  24584. if (subscription == null)
  24585. return;
  24586. id = t1 & 1;
  24587. _this._state = t1 ^ 3;
  24588. for (; subscription != null;) {
  24589. t1 = subscription._eventState;
  24590. if ((t1 & 1) === id) {
  24591. subscription._eventState = t1 | 2;
  24592. action.call$1(subscription);
  24593. t1 = subscription._eventState ^= 1;
  24594. next = subscription._async$_next;
  24595. if ((t1 & 4) !== 0)
  24596. _this._removeListener$1(subscription);
  24597. subscription._eventState &= 4294967293;
  24598. subscription = next;
  24599. } else
  24600. subscription = subscription._async$_next;
  24601. }
  24602. _this._state &= 4294967293;
  24603. if (_this._firstSubscription == null)
  24604. _this._callOnCancel$0();
  24605. },
  24606. _callOnCancel$0: function() {
  24607. var _this = this;
  24608. if ((_this._state & 4) !== 0 && _this._doneFuture._state === 0)
  24609. _this._doneFuture._asyncComplete$1(null);
  24610. P._runGuarded(_this.onCancel);
  24611. },
  24612. $isEventSink: 1,
  24613. set$onListen: function(val) {
  24614. return this.onListen = val;
  24615. },
  24616. set$onCancel: function(val) {
  24617. return this.onCancel = val;
  24618. }
  24619. };
  24620. P._SyncBroadcastStreamController.prototype = {
  24621. get$_mayAddEvent: function() {
  24622. return P._BroadcastStreamController.prototype.get$_mayAddEvent.call(this) && (this._state & 2) === 0;
  24623. },
  24624. _addEventError$0: function() {
  24625. if ((this._state & 2) !== 0)
  24626. return new P.StateError("Cannot fire new event. Controller is already firing an event");
  24627. return this.super$_BroadcastStreamController$_addEventError();
  24628. },
  24629. _sendData$1: function(data) {
  24630. var _this = this,
  24631. t1 = _this._firstSubscription;
  24632. if (t1 == null)
  24633. return;
  24634. if (t1 === _this._lastSubscription) {
  24635. _this._state |= 2;
  24636. t1._async$_add$1(data);
  24637. _this._state &= 4294967293;
  24638. if (_this._firstSubscription == null)
  24639. _this._callOnCancel$0();
  24640. return;
  24641. }
  24642. _this._forEachListener$1(new P._SyncBroadcastStreamController__sendData_closure(data));
  24643. },
  24644. _sendError$2: function(error, stackTrace) {
  24645. if (this._firstSubscription == null)
  24646. return;
  24647. this._forEachListener$1(new P._SyncBroadcastStreamController__sendError_closure(error, stackTrace));
  24648. },
  24649. _sendDone$0: function() {
  24650. if (this._firstSubscription != null)
  24651. this._forEachListener$1(new P._SyncBroadcastStreamController__sendDone_closure());
  24652. else
  24653. this._doneFuture._asyncComplete$1(null);
  24654. }
  24655. };
  24656. P._SyncBroadcastStreamController__sendData_closure.prototype = {
  24657. call$1: function(subscription) {
  24658. subscription._async$_add$1(this.data);
  24659. }
  24660. };
  24661. P._SyncBroadcastStreamController__sendError_closure.prototype = {
  24662. call$1: function(subscription) {
  24663. subscription._addError$2(this.error, this.stackTrace);
  24664. }
  24665. };
  24666. P._SyncBroadcastStreamController__sendDone_closure.prototype = {
  24667. call$1: function(subscription) {
  24668. subscription._close$0();
  24669. }
  24670. };
  24671. P.Future.prototype = {};
  24672. P.Future_wait_handleError.prototype = {
  24673. call$2: function(theError, theStackTrace) {
  24674. var _this = this,
  24675. t1 = _this._box_0,
  24676. t2 = --t1.remaining;
  24677. if (t1.values != null) {
  24678. t1.values = null;
  24679. if (t1.remaining === 0 || _this.eagerError)
  24680. _this.result._completeError$2(theError, theStackTrace);
  24681. else {
  24682. t1.error = theError;
  24683. t1.stackTrace = theStackTrace;
  24684. }
  24685. } else if (t2 === 0 && !_this.eagerError)
  24686. _this.result._completeError$2(t1.error, t1.stackTrace);
  24687. },
  24688. "call*": "call$2",
  24689. $requiredArgCount: 2,
  24690. $signature: 89
  24691. };
  24692. P.Future_wait_closure.prototype = {
  24693. call$1: function(value) {
  24694. var _this = this,
  24695. t1 = _this._box_0,
  24696. t2 = --t1.remaining,
  24697. t3 = t1.values;
  24698. if (t3 != null) {
  24699. t3[_this.pos] = value;
  24700. if (t2 === 0)
  24701. _this.result._completeWithValue$1(t3);
  24702. } else if (t1.remaining === 0 && !_this.eagerError)
  24703. _this.result._completeError$2(t1.error, t1.stackTrace);
  24704. },
  24705. $signature: function() {
  24706. return this.T._eval$1("Null(0)");
  24707. }
  24708. };
  24709. P._Completer.prototype = {
  24710. completeError$2: function(error, stackTrace) {
  24711. var t1, replacement;
  24712. P.ArgumentError_checkNotNull(error, "error");
  24713. t1 = this.future;
  24714. if (t1._state !== 0)
  24715. throw H.wrapException(P.StateError$("Future already completed"));
  24716. replacement = $.Zone__current.errorCallback$2(error, stackTrace);
  24717. if (replacement != null) {
  24718. error = replacement.error;
  24719. if (error == null)
  24720. error = new P.NullThrownError();
  24721. stackTrace = replacement.stackTrace;
  24722. }
  24723. t1._asyncCompleteError$2(error, stackTrace == null ? P.AsyncError_defaultStackTrace(error) : stackTrace);
  24724. },
  24725. completeError$1: function(error) {
  24726. return this.completeError$2(error, null);
  24727. }
  24728. };
  24729. P._AsyncCompleter.prototype = {
  24730. complete$1: function(value) {
  24731. var t1 = this.future;
  24732. if (t1._state !== 0)
  24733. throw H.wrapException(P.StateError$("Future already completed"));
  24734. t1._asyncComplete$1(value);
  24735. },
  24736. complete$0: function() {
  24737. return this.complete$1(null);
  24738. }
  24739. };
  24740. P._FutureListener.prototype = {
  24741. matchesErrorTest$1: function(asyncError) {
  24742. if ((this.state & 15) !== 6)
  24743. return true;
  24744. return this.result._zone.runUnary$2(this.callback, asyncError.error);
  24745. },
  24746. handleError$1: function(asyncError) {
  24747. var errorCallback = this.errorCallback,
  24748. t1 = this.result._zone;
  24749. if (type$.dynamic_Function_Object_StackTrace._is(errorCallback))
  24750. return t1.runBinary$3(errorCallback, asyncError.error, asyncError.stackTrace);
  24751. else
  24752. return t1.runUnary$2(errorCallback, asyncError.error);
  24753. }
  24754. };
  24755. P._Future.prototype = {
  24756. then$1$2$onError: function(f, onError, $R) {
  24757. var result,
  24758. currentZone = $.Zone__current;
  24759. if (currentZone !== C.C__RootZone) {
  24760. f = currentZone.registerUnaryCallback$1(f);
  24761. if (onError != null)
  24762. onError = P._registerErrorHandler(onError, currentZone);
  24763. }
  24764. result = new P._Future($.Zone__current, $R._eval$1("_Future<0>"));
  24765. this._addListener$1(new P._FutureListener(result, onError == null ? 1 : 3, f, onError));
  24766. return result;
  24767. },
  24768. then$1$1: function(f, $R) {
  24769. return this.then$1$2$onError(f, null, $R);
  24770. },
  24771. then$1: function(f) {
  24772. return this.then$1$2$onError(f, null, type$.dynamic);
  24773. },
  24774. _thenAwait$1$2: function(f, onError, $E) {
  24775. var result = new P._Future($.Zone__current, $E._eval$1("_Future<0>"));
  24776. this._addListener$1(new P._FutureListener(result, 19, f, onError));
  24777. return result;
  24778. },
  24779. whenComplete$1: function(action) {
  24780. var t1 = $.Zone__current,
  24781. result = new P._Future(t1, this.$ti);
  24782. this._addListener$1(new P._FutureListener(result, 8, t1 !== C.C__RootZone ? t1.registerCallback$1(action) : action, null));
  24783. return result;
  24784. },
  24785. _addListener$1: function(listener) {
  24786. var t2, _this = this,
  24787. t1 = _this._state;
  24788. if (t1 <= 1) {
  24789. listener._nextListener = _this._resultOrListeners;
  24790. _this._resultOrListeners = listener;
  24791. } else {
  24792. if (t1 === 2) {
  24793. t1 = _this._resultOrListeners;
  24794. t2 = t1._state;
  24795. if (t2 < 4) {
  24796. t1._addListener$1(listener);
  24797. return;
  24798. }
  24799. _this._state = t2;
  24800. _this._resultOrListeners = t1._resultOrListeners;
  24801. }
  24802. _this._zone.scheduleMicrotask$1(new P._Future__addListener_closure(_this, listener));
  24803. }
  24804. },
  24805. _prependListeners$1: function(listeners) {
  24806. var t1, existingListeners, cursor, cursor0, t2, _this = this, _box_0 = {};
  24807. _box_0.listeners = listeners;
  24808. if (listeners == null)
  24809. return;
  24810. t1 = _this._state;
  24811. if (t1 <= 1) {
  24812. existingListeners = _this._resultOrListeners;
  24813. cursor = _this._resultOrListeners = listeners;
  24814. if (existingListeners != null) {
  24815. for (; cursor0 = cursor._nextListener, cursor0 != null; cursor = cursor0)
  24816. ;
  24817. cursor._nextListener = existingListeners;
  24818. }
  24819. } else {
  24820. if (t1 === 2) {
  24821. t1 = _this._resultOrListeners;
  24822. t2 = t1._state;
  24823. if (t2 < 4) {
  24824. t1._prependListeners$1(listeners);
  24825. return;
  24826. }
  24827. _this._state = t2;
  24828. _this._resultOrListeners = t1._resultOrListeners;
  24829. }
  24830. _box_0.listeners = _this._reverseListeners$1(listeners);
  24831. _this._zone.scheduleMicrotask$1(new P._Future__prependListeners_closure(_box_0, _this));
  24832. }
  24833. },
  24834. _removeListeners$0: function() {
  24835. var current = this._resultOrListeners;
  24836. this._resultOrListeners = null;
  24837. return this._reverseListeners$1(current);
  24838. },
  24839. _reverseListeners$1: function(listeners) {
  24840. var current, prev, next;
  24841. for (current = listeners, prev = null; current != null; prev = current, current = next) {
  24842. next = current._nextListener;
  24843. current._nextListener = prev;
  24844. }
  24845. return prev;
  24846. },
  24847. _complete$1: function(value) {
  24848. var listeners, _this = this,
  24849. t1 = _this.$ti;
  24850. if (t1._eval$1("Future<1>")._is(value))
  24851. if (t1._is(value))
  24852. P._Future__chainCoreFuture(value, _this);
  24853. else
  24854. P._Future__chainForeignFuture(value, _this);
  24855. else {
  24856. listeners = _this._removeListeners$0();
  24857. _this._state = 4;
  24858. _this._resultOrListeners = value;
  24859. P._Future__propagateToListeners(_this, listeners);
  24860. }
  24861. },
  24862. _completeWithValue$1: function(value) {
  24863. var _this = this,
  24864. listeners = _this._removeListeners$0();
  24865. _this._state = 4;
  24866. _this._resultOrListeners = value;
  24867. P._Future__propagateToListeners(_this, listeners);
  24868. },
  24869. _completeError$2: function(error, stackTrace) {
  24870. var _this = this,
  24871. listeners = _this._removeListeners$0(),
  24872. t1 = P.AsyncError$(error, stackTrace);
  24873. _this._state = 8;
  24874. _this._resultOrListeners = t1;
  24875. P._Future__propagateToListeners(_this, listeners);
  24876. },
  24877. _completeError$1: function(error) {
  24878. return this._completeError$2(error, null);
  24879. },
  24880. _asyncComplete$1: function(value) {
  24881. var _this = this;
  24882. if (_this.$ti._eval$1("Future<1>")._is(value)) {
  24883. _this._chainFuture$1(value);
  24884. return;
  24885. }
  24886. _this._state = 1;
  24887. _this._zone.scheduleMicrotask$1(new P._Future__asyncComplete_closure(_this, value));
  24888. },
  24889. _chainFuture$1: function(value) {
  24890. var _this = this;
  24891. if (_this.$ti._is(value)) {
  24892. if (value._state === 8) {
  24893. _this._state = 1;
  24894. _this._zone.scheduleMicrotask$1(new P._Future__chainFuture_closure(_this, value));
  24895. } else
  24896. P._Future__chainCoreFuture(value, _this);
  24897. return;
  24898. }
  24899. P._Future__chainForeignFuture(value, _this);
  24900. },
  24901. _asyncCompleteError$2: function(error, stackTrace) {
  24902. this._state = 1;
  24903. this._zone.scheduleMicrotask$1(new P._Future__asyncCompleteError_closure(this, error, stackTrace));
  24904. },
  24905. $isFuture: 1
  24906. };
  24907. P._Future__addListener_closure.prototype = {
  24908. call$0: function() {
  24909. P._Future__propagateToListeners(this.$this, this.listener);
  24910. },
  24911. "call*": "call$0",
  24912. $requiredArgCount: 0,
  24913. $signature: 0
  24914. };
  24915. P._Future__prependListeners_closure.prototype = {
  24916. call$0: function() {
  24917. P._Future__propagateToListeners(this.$this, this._box_0.listeners);
  24918. },
  24919. "call*": "call$0",
  24920. $requiredArgCount: 0,
  24921. $signature: 0
  24922. };
  24923. P._Future__chainForeignFuture_closure.prototype = {
  24924. call$1: function(value) {
  24925. var t1 = this.target;
  24926. t1._state = 0;
  24927. t1._complete$1(value);
  24928. },
  24929. $signature: 54
  24930. };
  24931. P._Future__chainForeignFuture_closure0.prototype = {
  24932. call$2: function(error, stackTrace) {
  24933. this.target._completeError$2(error, stackTrace);
  24934. },
  24935. call$1: function(error) {
  24936. return this.call$2(error, null);
  24937. },
  24938. "call*": "call$2",
  24939. $defaultValues: function() {
  24940. return [null];
  24941. },
  24942. $signature: 123
  24943. };
  24944. P._Future__chainForeignFuture_closure1.prototype = {
  24945. call$0: function() {
  24946. this.target._completeError$2(this.e, this.s);
  24947. },
  24948. "call*": "call$0",
  24949. $requiredArgCount: 0,
  24950. $signature: 0
  24951. };
  24952. P._Future__asyncComplete_closure.prototype = {
  24953. call$0: function() {
  24954. this.$this._completeWithValue$1(this.value);
  24955. },
  24956. "call*": "call$0",
  24957. $requiredArgCount: 0,
  24958. $signature: 0
  24959. };
  24960. P._Future__chainFuture_closure.prototype = {
  24961. call$0: function() {
  24962. P._Future__chainCoreFuture(this.value, this.$this);
  24963. },
  24964. "call*": "call$0",
  24965. $requiredArgCount: 0,
  24966. $signature: 0
  24967. };
  24968. P._Future__asyncCompleteError_closure.prototype = {
  24969. call$0: function() {
  24970. this.$this._completeError$2(this.error, this.stackTrace);
  24971. },
  24972. "call*": "call$0",
  24973. $requiredArgCount: 0,
  24974. $signature: 0
  24975. };
  24976. P._Future__propagateToListeners_handleWhenCompleteCallback.prototype = {
  24977. call$0: function() {
  24978. var e, s, t1, exception, t2, originalSource, _this = this, completeResult = null;
  24979. try {
  24980. t1 = _this.listener;
  24981. completeResult = t1.result._zone.run$1(0, t1.callback);
  24982. } catch (exception) {
  24983. e = H.unwrapException(exception);
  24984. s = H.getTraceFromException(exception);
  24985. if (_this.hasError) {
  24986. t1 = _this._box_1.source._resultOrListeners.error;
  24987. t2 = e;
  24988. t2 = t1 == null ? t2 == null : t1 === t2;
  24989. t1 = t2;
  24990. } else
  24991. t1 = false;
  24992. t2 = _this._box_0;
  24993. if (t1)
  24994. t2.listenerValueOrError = _this._box_1.source._resultOrListeners;
  24995. else
  24996. t2.listenerValueOrError = P.AsyncError$(e, s);
  24997. t2.listenerHasError = true;
  24998. return;
  24999. }
  25000. if (type$.Future_dynamic._is(completeResult)) {
  25001. if (completeResult instanceof P._Future && completeResult._state >= 4) {
  25002. if (completeResult._state === 8) {
  25003. t1 = _this._box_0;
  25004. t1.listenerValueOrError = completeResult._resultOrListeners;
  25005. t1.listenerHasError = true;
  25006. }
  25007. return;
  25008. }
  25009. originalSource = _this._box_1.source;
  25010. t1 = _this._box_0;
  25011. t1.listenerValueOrError = completeResult.then$1$1(new P._Future__propagateToListeners_handleWhenCompleteCallback_closure(originalSource), type$.dynamic);
  25012. t1.listenerHasError = false;
  25013. }
  25014. },
  25015. $signature: 1
  25016. };
  25017. P._Future__propagateToListeners_handleWhenCompleteCallback_closure.prototype = {
  25018. call$1: function(_) {
  25019. return this.originalSource;
  25020. },
  25021. $signature: 121
  25022. };
  25023. P._Future__propagateToListeners_handleValueCallback.prototype = {
  25024. call$0: function() {
  25025. var e, s, t1, exception, _this = this;
  25026. try {
  25027. t1 = _this.listener;
  25028. _this._box_0.listenerValueOrError = t1.result._zone.runUnary$2(t1.callback, _this.sourceResult);
  25029. } catch (exception) {
  25030. e = H.unwrapException(exception);
  25031. s = H.getTraceFromException(exception);
  25032. t1 = _this._box_0;
  25033. t1.listenerValueOrError = P.AsyncError$(e, s);
  25034. t1.listenerHasError = true;
  25035. }
  25036. },
  25037. $signature: 1
  25038. };
  25039. P._Future__propagateToListeners_handleError.prototype = {
  25040. call$0: function() {
  25041. var asyncError, e, s, t1, t2, exception, t3, t4, _this = this;
  25042. try {
  25043. asyncError = _this._box_1.source._resultOrListeners;
  25044. t1 = _this.listener;
  25045. if (t1.matchesErrorTest$1(asyncError) && t1.errorCallback != null) {
  25046. t2 = _this._box_0;
  25047. t2.listenerValueOrError = t1.handleError$1(asyncError);
  25048. t2.listenerHasError = false;
  25049. }
  25050. } catch (exception) {
  25051. e = H.unwrapException(exception);
  25052. s = H.getTraceFromException(exception);
  25053. t1 = _this._box_1.source._resultOrListeners;
  25054. t2 = t1.error;
  25055. t3 = e;
  25056. t4 = _this._box_0;
  25057. if (t2 == null ? t3 == null : t2 === t3)
  25058. t4.listenerValueOrError = t1;
  25059. else
  25060. t4.listenerValueOrError = P.AsyncError$(e, s);
  25061. t4.listenerHasError = true;
  25062. }
  25063. },
  25064. $signature: 1
  25065. };
  25066. P._AsyncCallbackEntry.prototype = {};
  25067. P.Stream.prototype = {
  25068. get$isBroadcast: function() {
  25069. return false;
  25070. },
  25071. get$length: function(_) {
  25072. var t1 = {},
  25073. future = new P._Future($.Zone__current, type$._Future_int);
  25074. t1.count = 0;
  25075. this.listen$4$cancelOnError$onDone$onError(new P.Stream_length_closure(t1, this), true, new P.Stream_length_closure0(t1, future), future.get$_completeError());
  25076. return future;
  25077. }
  25078. };
  25079. P.Stream_Stream$fromFuture_closure.prototype = {
  25080. call$1: function(value) {
  25081. var t1 = this.controller;
  25082. t1._async$_add$1(value);
  25083. t1._closeUnchecked$0();
  25084. },
  25085. $signature: function() {
  25086. return this.T._eval$1("Null(0)");
  25087. }
  25088. };
  25089. P.Stream_Stream$fromFuture_closure0.prototype = {
  25090. call$2: function(error, stackTrace) {
  25091. var t1 = this.controller;
  25092. t1._addError$2(error, stackTrace);
  25093. t1._closeUnchecked$0();
  25094. },
  25095. "call*": "call$2",
  25096. $requiredArgCount: 2,
  25097. $signature: 38
  25098. };
  25099. P.Stream_length_closure.prototype = {
  25100. call$1: function(_) {
  25101. ++this._box_0.count;
  25102. },
  25103. $signature: function() {
  25104. return H._instanceType(this.$this)._eval$1("Null(Stream.T)");
  25105. }
  25106. };
  25107. P.Stream_length_closure0.prototype = {
  25108. call$0: function() {
  25109. this.future._complete$1(this._box_0.count);
  25110. },
  25111. "call*": "call$0",
  25112. $requiredArgCount: 0,
  25113. $signature: 0
  25114. };
  25115. P.StreamSubscription.prototype = {};
  25116. P.EventSink.prototype = {};
  25117. P.StreamTransformerBase.prototype = {};
  25118. P._StreamController.prototype = {
  25119. get$stream: function() {
  25120. return new P._ControllerStream(this, H._instanceType(this)._eval$1("_ControllerStream<1>"));
  25121. },
  25122. get$_pendingEvents: function() {
  25123. if ((this._state & 8) === 0)
  25124. return this._varData;
  25125. return this._varData.varData;
  25126. },
  25127. _ensurePendingEvents$0: function() {
  25128. var t1, state, _this = this;
  25129. if ((_this._state & 8) === 0) {
  25130. t1 = _this._varData;
  25131. return t1 == null ? _this._varData = new P._StreamImplEvents() : t1;
  25132. }
  25133. state = _this._varData;
  25134. t1 = state.varData;
  25135. return t1 == null ? state.varData = new P._StreamImplEvents() : t1;
  25136. },
  25137. get$_subscription: function() {
  25138. if ((this._state & 8) !== 0)
  25139. return this._varData.varData;
  25140. return this._varData;
  25141. },
  25142. _badEventState$0: function() {
  25143. if ((this._state & 4) !== 0)
  25144. return new P.StateError("Cannot add event after closing");
  25145. return new P.StateError("Cannot add event while adding a stream");
  25146. },
  25147. addStream$2$cancelOnError: function(source, cancelOnError) {
  25148. var t2, t3, t4, _this = this,
  25149. t1 = _this._state;
  25150. if (t1 >= 4)
  25151. throw H.wrapException(_this._badEventState$0());
  25152. if ((t1 & 2) !== 0) {
  25153. t1 = new P._Future($.Zone__current, type$._Future_dynamic);
  25154. t1._asyncComplete$1(null);
  25155. return t1;
  25156. }
  25157. t1 = _this._varData;
  25158. t2 = new P._Future($.Zone__current, type$._Future_dynamic);
  25159. t3 = source.listen$4$cancelOnError$onDone$onError(_this.get$_async$_add(), false, _this.get$_close(), _this.get$_addError());
  25160. t4 = _this._state;
  25161. if ((t4 & 1) !== 0 ? (_this.get$_subscription()._state & 4) !== 0 : (t4 & 2) === 0)
  25162. t3.pause$0(0);
  25163. _this._varData = new P._StreamControllerAddStreamState(t1, t2, t3);
  25164. _this._state |= 8;
  25165. return t2;
  25166. },
  25167. _ensureDoneFuture$0: function() {
  25168. var t1 = this._doneFuture;
  25169. if (t1 == null)
  25170. t1 = this._doneFuture = (this._state & 2) !== 0 ? $.$get$Future__nullFuture() : new P._Future($.Zone__current, type$._Future_dynamic);
  25171. return t1;
  25172. },
  25173. add$1: function(_, value) {
  25174. if (this._state >= 4)
  25175. throw H.wrapException(this._badEventState$0());
  25176. this._async$_add$1(value);
  25177. },
  25178. addError$2: function(error, stackTrace) {
  25179. var replacement;
  25180. P.ArgumentError_checkNotNull(error, "error");
  25181. if (this._state >= 4)
  25182. throw H.wrapException(this._badEventState$0());
  25183. if (error == null)
  25184. error = new P.NullThrownError();
  25185. replacement = $.Zone__current.errorCallback$2(error, stackTrace);
  25186. if (replacement != null) {
  25187. error = replacement.error;
  25188. if (error == null)
  25189. error = new P.NullThrownError();
  25190. stackTrace = replacement.stackTrace;
  25191. }
  25192. this._addError$2(error, stackTrace == null ? P.AsyncError_defaultStackTrace(error) : stackTrace);
  25193. },
  25194. addError$1: function(error) {
  25195. return this.addError$2(error, null);
  25196. },
  25197. close$0: function(_) {
  25198. var _this = this,
  25199. t1 = _this._state;
  25200. if ((t1 & 4) !== 0)
  25201. return _this._ensureDoneFuture$0();
  25202. if (t1 >= 4)
  25203. throw H.wrapException(_this._badEventState$0());
  25204. _this._closeUnchecked$0();
  25205. return _this._ensureDoneFuture$0();
  25206. },
  25207. _closeUnchecked$0: function() {
  25208. var t1 = this._state |= 4;
  25209. if ((t1 & 1) !== 0)
  25210. this._sendDone$0();
  25211. else if ((t1 & 3) === 0)
  25212. this._ensurePendingEvents$0().add$1(0, C.C__DelayedDone);
  25213. },
  25214. _async$_add$1: function(value) {
  25215. var t1 = this._state;
  25216. if ((t1 & 1) !== 0)
  25217. this._sendData$1(value);
  25218. else if ((t1 & 3) === 0)
  25219. this._ensurePendingEvents$0().add$1(0, new P._DelayedData(value));
  25220. },
  25221. _addError$2: function(error, stackTrace) {
  25222. var t1 = this._state;
  25223. if ((t1 & 1) !== 0)
  25224. this._sendError$2(error, stackTrace);
  25225. else if ((t1 & 3) === 0)
  25226. this._ensurePendingEvents$0().add$1(0, new P._DelayedError(error, stackTrace));
  25227. },
  25228. _close$0: function() {
  25229. var addState = this._varData;
  25230. this._varData = addState.varData;
  25231. this._state &= 4294967287;
  25232. addState.addStreamFuture._asyncComplete$1(null);
  25233. },
  25234. _subscribe$4: function(onData, onError, onDone, cancelOnError) {
  25235. var t1, t2, t3, subscription, pendingEvents, addState, _this = this;
  25236. if ((_this._state & 3) !== 0)
  25237. throw H.wrapException(P.StateError$("Stream has already been listened to."));
  25238. t1 = H._instanceType(_this);
  25239. t2 = $.Zone__current;
  25240. t3 = cancelOnError ? 1 : 0;
  25241. subscription = new P._ControllerSubscription(_this, t2, t3, t1._eval$1("_ControllerSubscription<1>"));
  25242. subscription._BufferingStreamSubscription$4(onData, onError, onDone, cancelOnError, t1._precomputed1);
  25243. pendingEvents = _this.get$_pendingEvents();
  25244. t1 = _this._state |= 1;
  25245. if ((t1 & 8) !== 0) {
  25246. addState = _this._varData;
  25247. addState.varData = subscription;
  25248. addState.addSubscription.resume$0();
  25249. } else
  25250. _this._varData = subscription;
  25251. subscription._setPendingEvents$1(pendingEvents);
  25252. subscription._guardCallback$1(new P._StreamController__subscribe_closure(_this));
  25253. return subscription;
  25254. },
  25255. _recordCancel$1: function(subscription) {
  25256. var e, s, t1, exception, result0, _this = this, result = null;
  25257. if ((_this._state & 8) !== 0)
  25258. result = _this._varData.cancel$0();
  25259. _this._varData = null;
  25260. _this._state = _this._state & 4294967286 | 2;
  25261. t1 = _this.onCancel;
  25262. if (t1 != null)
  25263. if (result == null)
  25264. try {
  25265. result = t1.call$0();
  25266. } catch (exception) {
  25267. e = H.unwrapException(exception);
  25268. s = H.getTraceFromException(exception);
  25269. result0 = new P._Future($.Zone__current, type$._Future_dynamic);
  25270. result0._asyncCompleteError$2(e, s);
  25271. result = result0;
  25272. }
  25273. else
  25274. result = result.whenComplete$1(t1);
  25275. t1 = new P._StreamController__recordCancel_complete(_this);
  25276. if (result != null)
  25277. result = result.whenComplete$1(t1);
  25278. else
  25279. t1.call$0();
  25280. return result;
  25281. },
  25282. _recordPause$1: function(subscription) {
  25283. if ((this._state & 8) !== 0)
  25284. this._varData.addSubscription.pause$0(0);
  25285. P._runGuarded(this.onPause);
  25286. },
  25287. _recordResume$1: function(subscription) {
  25288. if ((this._state & 8) !== 0)
  25289. this._varData.addSubscription.resume$0();
  25290. P._runGuarded(this.onResume);
  25291. },
  25292. $isEventSink: 1,
  25293. set$onListen: function(val) {
  25294. return this.onListen = val;
  25295. },
  25296. set$onPause: function(val) {
  25297. return this.onPause = val;
  25298. },
  25299. set$onResume: function(val) {
  25300. return this.onResume = val;
  25301. },
  25302. set$onCancel: function(val) {
  25303. return this.onCancel = val;
  25304. }
  25305. };
  25306. P._StreamController__subscribe_closure.prototype = {
  25307. call$0: function() {
  25308. P._runGuarded(this.$this.onListen);
  25309. },
  25310. $signature: 0
  25311. };
  25312. P._StreamController__recordCancel_complete.prototype = {
  25313. call$0: function() {
  25314. var t1 = this.$this._doneFuture;
  25315. if (t1 != null && t1._state === 0)
  25316. t1._asyncComplete$1(null);
  25317. },
  25318. "call*": "call$0",
  25319. $requiredArgCount: 0,
  25320. $signature: 1
  25321. };
  25322. P._SyncStreamControllerDispatch.prototype = {
  25323. _sendData$1: function(data) {
  25324. this.get$_subscription()._async$_add$1(data);
  25325. },
  25326. _sendError$2: function(error, stackTrace) {
  25327. this.get$_subscription()._addError$2(error, stackTrace);
  25328. },
  25329. _sendDone$0: function() {
  25330. this.get$_subscription()._close$0();
  25331. }
  25332. };
  25333. P._AsyncStreamControllerDispatch.prototype = {
  25334. _sendData$1: function(data) {
  25335. this.get$_subscription()._addPending$1(new P._DelayedData(data));
  25336. },
  25337. _sendError$2: function(error, stackTrace) {
  25338. this.get$_subscription()._addPending$1(new P._DelayedError(error, stackTrace));
  25339. },
  25340. _sendDone$0: function() {
  25341. this.get$_subscription()._addPending$1(C.C__DelayedDone);
  25342. }
  25343. };
  25344. P._AsyncStreamController.prototype = {};
  25345. P._SyncStreamController.prototype = {};
  25346. P._ControllerStream.prototype = {
  25347. get$hashCode: function(_) {
  25348. return (H.Primitives_objectHashCode(this._async$_controller) ^ 892482866) >>> 0;
  25349. },
  25350. $eq: function(_, other) {
  25351. if (other == null)
  25352. return false;
  25353. if (this === other)
  25354. return true;
  25355. return other instanceof P._ControllerStream && other._async$_controller === this._async$_controller;
  25356. }
  25357. };
  25358. P._ControllerSubscription.prototype = {
  25359. _async$_onCancel$0: function() {
  25360. return this._async$_controller._recordCancel$1(this);
  25361. },
  25362. _async$_onPause$0: function() {
  25363. this._async$_controller._recordPause$1(this);
  25364. },
  25365. _async$_onResume$0: function() {
  25366. this._async$_controller._recordResume$1(this);
  25367. }
  25368. };
  25369. P._AddStreamState.prototype = {
  25370. cancel$0: function() {
  25371. var cancel = this.addSubscription.cancel$0();
  25372. if (cancel == null) {
  25373. this.addStreamFuture._asyncComplete$1(null);
  25374. return null;
  25375. }
  25376. return cancel.whenComplete$1(new P._AddStreamState_cancel_closure(this));
  25377. }
  25378. };
  25379. P._AddStreamState_cancel_closure.prototype = {
  25380. call$0: function() {
  25381. this.$this.addStreamFuture._asyncComplete$1(null);
  25382. },
  25383. "call*": "call$0",
  25384. $requiredArgCount: 0,
  25385. $signature: 0
  25386. };
  25387. P._StreamControllerAddStreamState.prototype = {};
  25388. P._BufferingStreamSubscription.prototype = {
  25389. _BufferingStreamSubscription$4: function(onData, onError, onDone, cancelOnError, $T) {
  25390. var handleError, _this = this,
  25391. handleData = onData == null ? P.async___nullDataHandler$closure() : onData,
  25392. t1 = _this._zone;
  25393. _this._onData = t1.registerUnaryCallback$1(handleData);
  25394. handleError = onError == null ? P.async___nullErrorHandler$closure() : onError;
  25395. if (type$.void_Function_Object_StackTrace._is(handleError))
  25396. _this._onError = t1.registerBinaryCallback$1(handleError);
  25397. else if (type$.void_Function_Object._is(handleError))
  25398. _this._onError = t1.registerUnaryCallback$1(handleError);
  25399. else
  25400. H.throwExpression(P.ArgumentError$("handleError callback must take either an Object (the error), or both an Object (the error) and a StackTrace."));
  25401. _this._onDone = t1.registerCallback$1(onDone == null ? P.async___nullDoneHandler$closure() : onDone);
  25402. },
  25403. _setPendingEvents$1: function(pendingEvents) {
  25404. var _this = this;
  25405. if (pendingEvents == null)
  25406. return;
  25407. _this._pending = pendingEvents;
  25408. if (pendingEvents.lastPendingEvent != null) {
  25409. _this._state = (_this._state | 64) >>> 0;
  25410. pendingEvents.schedule$1(_this);
  25411. }
  25412. },
  25413. pause$1: function(_, resumeSignal) {
  25414. var t2, t3, _this = this,
  25415. t1 = _this._state;
  25416. if ((t1 & 8) !== 0)
  25417. return;
  25418. t2 = (t1 + 128 | 4) >>> 0;
  25419. _this._state = t2;
  25420. if (t1 < 128 && _this._pending != null) {
  25421. t3 = _this._pending;
  25422. if (t3._state === 1)
  25423. t3._state = 3;
  25424. }
  25425. if ((t1 & 4) === 0 && (t2 & 32) === 0)
  25426. _this._guardCallback$1(_this.get$_async$_onPause());
  25427. },
  25428. pause$0: function($receiver) {
  25429. return this.pause$1($receiver, null);
  25430. },
  25431. resume$0: function() {
  25432. var _this = this,
  25433. t1 = _this._state;
  25434. if ((t1 & 8) !== 0)
  25435. return;
  25436. if (t1 >= 128) {
  25437. t1 = _this._state = t1 - 128;
  25438. if (t1 < 128)
  25439. if ((t1 & 64) !== 0 && _this._pending.lastPendingEvent != null)
  25440. _this._pending.schedule$1(_this);
  25441. else {
  25442. t1 = (t1 & 4294967291) >>> 0;
  25443. _this._state = t1;
  25444. if ((t1 & 32) === 0)
  25445. _this._guardCallback$1(_this.get$_async$_onResume());
  25446. }
  25447. }
  25448. },
  25449. cancel$0: function() {
  25450. var _this = this,
  25451. t1 = (_this._state & 4294967279) >>> 0;
  25452. _this._state = t1;
  25453. if ((t1 & 8) === 0)
  25454. _this._cancel$0();
  25455. t1 = _this._cancelFuture;
  25456. return t1 == null ? $.$get$Future__nullFuture() : t1;
  25457. },
  25458. _cancel$0: function() {
  25459. var t2, _this = this,
  25460. t1 = _this._state = (_this._state | 8) >>> 0;
  25461. if ((t1 & 64) !== 0) {
  25462. t2 = _this._pending;
  25463. if (t2._state === 1)
  25464. t2._state = 3;
  25465. }
  25466. if ((t1 & 32) === 0)
  25467. _this._pending = null;
  25468. _this._cancelFuture = _this._async$_onCancel$0();
  25469. },
  25470. _async$_add$1: function(data) {
  25471. var t1 = this._state;
  25472. if ((t1 & 8) !== 0)
  25473. return;
  25474. if (t1 < 32)
  25475. this._sendData$1(data);
  25476. else
  25477. this._addPending$1(new P._DelayedData(data));
  25478. },
  25479. _addError$2: function(error, stackTrace) {
  25480. var t1 = this._state;
  25481. if ((t1 & 8) !== 0)
  25482. return;
  25483. if (t1 < 32)
  25484. this._sendError$2(error, stackTrace);
  25485. else
  25486. this._addPending$1(new P._DelayedError(error, stackTrace));
  25487. },
  25488. _close$0: function() {
  25489. var _this = this,
  25490. t1 = _this._state;
  25491. if ((t1 & 8) !== 0)
  25492. return;
  25493. t1 = (t1 | 2) >>> 0;
  25494. _this._state = t1;
  25495. if (t1 < 32)
  25496. _this._sendDone$0();
  25497. else
  25498. _this._addPending$1(C.C__DelayedDone);
  25499. },
  25500. _async$_onPause$0: function() {
  25501. },
  25502. _async$_onResume$0: function() {
  25503. },
  25504. _async$_onCancel$0: function() {
  25505. return null;
  25506. },
  25507. _addPending$1: function($event) {
  25508. var t1, _this = this,
  25509. pending = _this._pending;
  25510. (pending == null ? _this._pending = new P._StreamImplEvents() : pending).add$1(0, $event);
  25511. t1 = _this._state;
  25512. if ((t1 & 64) === 0) {
  25513. t1 = (t1 | 64) >>> 0;
  25514. _this._state = t1;
  25515. if (t1 < 128)
  25516. _this._pending.schedule$1(_this);
  25517. }
  25518. },
  25519. _sendData$1: function(data) {
  25520. var _this = this,
  25521. t1 = _this._state;
  25522. _this._state = (t1 | 32) >>> 0;
  25523. _this._zone.runUnaryGuarded$2(_this._onData, data);
  25524. _this._state = (_this._state & 4294967263) >>> 0;
  25525. _this._checkState$1((t1 & 4) !== 0);
  25526. },
  25527. _sendError$2: function(error, stackTrace) {
  25528. var _this = this,
  25529. t1 = _this._state,
  25530. t2 = new P._BufferingStreamSubscription__sendError_sendError(_this, error, stackTrace);
  25531. if ((t1 & 1) !== 0) {
  25532. _this._state = (t1 | 16) >>> 0;
  25533. _this._cancel$0();
  25534. t1 = _this._cancelFuture;
  25535. if (t1 != null && t1 !== $.$get$Future__nullFuture())
  25536. t1.whenComplete$1(t2);
  25537. else
  25538. t2.call$0();
  25539. } else {
  25540. t2.call$0();
  25541. _this._checkState$1((t1 & 4) !== 0);
  25542. }
  25543. },
  25544. _sendDone$0: function() {
  25545. var t2, _this = this,
  25546. t1 = new P._BufferingStreamSubscription__sendDone_sendDone(_this);
  25547. _this._cancel$0();
  25548. _this._state = (_this._state | 16) >>> 0;
  25549. t2 = _this._cancelFuture;
  25550. if (t2 != null && t2 !== $.$get$Future__nullFuture())
  25551. t2.whenComplete$1(t1);
  25552. else
  25553. t1.call$0();
  25554. },
  25555. _guardCallback$1: function(callback) {
  25556. var _this = this,
  25557. t1 = _this._state;
  25558. _this._state = (t1 | 32) >>> 0;
  25559. callback.call$0();
  25560. _this._state = (_this._state & 4294967263) >>> 0;
  25561. _this._checkState$1((t1 & 4) !== 0);
  25562. },
  25563. _checkState$1: function(wasInputPaused) {
  25564. var t2, isInputPaused, _this = this,
  25565. t1 = _this._state;
  25566. if ((t1 & 64) !== 0 && _this._pending.lastPendingEvent == null) {
  25567. t1 = _this._state = (t1 & 4294967231) >>> 0;
  25568. if ((t1 & 4) !== 0)
  25569. if (t1 < 128) {
  25570. t2 = _this._pending;
  25571. t2 = t2 == null || t2.lastPendingEvent == null;
  25572. } else
  25573. t2 = false;
  25574. else
  25575. t2 = false;
  25576. if (t2) {
  25577. t1 = (t1 & 4294967291) >>> 0;
  25578. _this._state = t1;
  25579. }
  25580. }
  25581. for (; true; wasInputPaused = isInputPaused) {
  25582. if ((t1 & 8) !== 0) {
  25583. _this._pending = null;
  25584. return;
  25585. }
  25586. isInputPaused = (t1 & 4) !== 0;
  25587. if (wasInputPaused === isInputPaused)
  25588. break;
  25589. _this._state = (t1 ^ 32) >>> 0;
  25590. if (isInputPaused)
  25591. _this._async$_onPause$0();
  25592. else
  25593. _this._async$_onResume$0();
  25594. t1 = (_this._state & 4294967263) >>> 0;
  25595. _this._state = t1;
  25596. }
  25597. if ((t1 & 64) !== 0 && t1 < 128)
  25598. _this._pending.schedule$1(_this);
  25599. },
  25600. $isStreamSubscription: 1
  25601. };
  25602. P._BufferingStreamSubscription__sendError_sendError.prototype = {
  25603. call$0: function() {
  25604. var onError, t3,
  25605. t1 = this.$this,
  25606. t2 = t1._state;
  25607. if ((t2 & 8) !== 0 && (t2 & 16) === 0)
  25608. return;
  25609. t1._state = (t2 | 32) >>> 0;
  25610. onError = t1._onError;
  25611. t2 = this.error;
  25612. t3 = t1._zone;
  25613. if (type$.void_Function_Object_StackTrace._is(onError))
  25614. t3.runBinaryGuarded$3(onError, t2, this.stackTrace);
  25615. else
  25616. t3.runUnaryGuarded$2(onError, t2);
  25617. t1._state = (t1._state & 4294967263) >>> 0;
  25618. },
  25619. "call*": "call$0",
  25620. $requiredArgCount: 0,
  25621. $signature: 1
  25622. };
  25623. P._BufferingStreamSubscription__sendDone_sendDone.prototype = {
  25624. call$0: function() {
  25625. var t1 = this.$this,
  25626. t2 = t1._state;
  25627. if ((t2 & 16) === 0)
  25628. return;
  25629. t1._state = (t2 | 42) >>> 0;
  25630. t1._zone.runGuarded$1(t1._onDone);
  25631. t1._state = (t1._state & 4294967263) >>> 0;
  25632. },
  25633. "call*": "call$0",
  25634. $requiredArgCount: 0,
  25635. $signature: 1
  25636. };
  25637. P._StreamImpl.prototype = {
  25638. listen$4$cancelOnError$onDone$onError: function(onData, cancelOnError, onDone, onError) {
  25639. return this._async$_controller._subscribe$4(onData, onError, onDone, true === cancelOnError);
  25640. },
  25641. listen$3$onDone$onError: function(onData, onDone, onError) {
  25642. return this.listen$4$cancelOnError$onDone$onError(onData, null, onDone, onError);
  25643. }
  25644. };
  25645. P._DelayedEvent.prototype = {
  25646. get$next: function() {
  25647. return this.next;
  25648. },
  25649. set$next: function(val) {
  25650. return this.next = val;
  25651. }
  25652. };
  25653. P._DelayedData.prototype = {
  25654. perform$1: function(dispatch) {
  25655. dispatch._sendData$1(this.value);
  25656. }
  25657. };
  25658. P._DelayedError.prototype = {
  25659. perform$1: function(dispatch) {
  25660. dispatch._sendError$2(this.error, this.stackTrace);
  25661. }
  25662. };
  25663. P._DelayedDone.prototype = {
  25664. perform$1: function(dispatch) {
  25665. dispatch._sendDone$0();
  25666. },
  25667. get$next: function() {
  25668. return null;
  25669. },
  25670. set$next: function(_) {
  25671. throw H.wrapException(P.StateError$("No events after a done."));
  25672. }
  25673. };
  25674. P._PendingEvents.prototype = {
  25675. schedule$1: function(dispatch) {
  25676. var _this = this,
  25677. t1 = _this._state;
  25678. if (t1 === 1)
  25679. return;
  25680. if (t1 >= 1) {
  25681. _this._state = 1;
  25682. return;
  25683. }
  25684. P.scheduleMicrotask(new P._PendingEvents_schedule_closure(_this, dispatch));
  25685. _this._state = 1;
  25686. }
  25687. };
  25688. P._PendingEvents_schedule_closure.prototype = {
  25689. call$0: function() {
  25690. var $event, t2,
  25691. t1 = this.$this,
  25692. oldState = t1._state;
  25693. t1._state = 0;
  25694. if (oldState === 3)
  25695. return;
  25696. $event = t1.firstPendingEvent;
  25697. t2 = $event.get$next();
  25698. t1.firstPendingEvent = t2;
  25699. if (t2 == null)
  25700. t1.lastPendingEvent = null;
  25701. $event.perform$1(this.dispatch);
  25702. },
  25703. "call*": "call$0",
  25704. $requiredArgCount: 0,
  25705. $signature: 0
  25706. };
  25707. P._StreamImplEvents.prototype = {
  25708. add$1: function(_, $event) {
  25709. var _this = this,
  25710. t1 = _this.lastPendingEvent;
  25711. if (t1 == null)
  25712. _this.firstPendingEvent = _this.lastPendingEvent = $event;
  25713. else {
  25714. t1.set$next($event);
  25715. _this.lastPendingEvent = $event;
  25716. }
  25717. }
  25718. };
  25719. P._DoneStreamSubscription.prototype = {
  25720. _schedule$0: function() {
  25721. var _this = this;
  25722. if ((_this._state & 2) !== 0)
  25723. return;
  25724. _this._zone.scheduleMicrotask$1(_this.get$_sendDone());
  25725. _this._state = (_this._state | 2) >>> 0;
  25726. },
  25727. pause$1: function(_, resumeSignal) {
  25728. this._state += 4;
  25729. },
  25730. pause$0: function($receiver) {
  25731. return this.pause$1($receiver, null);
  25732. },
  25733. resume$0: function() {
  25734. var t1 = this._state;
  25735. if (t1 >= 4) {
  25736. t1 = this._state = t1 - 4;
  25737. if (t1 < 4 && (t1 & 1) === 0)
  25738. this._schedule$0();
  25739. }
  25740. },
  25741. cancel$0: function() {
  25742. return $.$get$Future__nullFuture();
  25743. },
  25744. _sendDone$0: function() {
  25745. var _this = this,
  25746. t1 = _this._state = (_this._state & 4294967293) >>> 0;
  25747. if (t1 >= 4)
  25748. return;
  25749. _this._state = (t1 | 1) >>> 0;
  25750. _this._zone.runGuarded$1(_this._onDone);
  25751. },
  25752. $isStreamSubscription: 1
  25753. };
  25754. P._StreamIterator.prototype = {
  25755. get$current: function(_) {
  25756. if (this._subscription != null && this._isPaused)
  25757. return this._stateData;
  25758. return null;
  25759. },
  25760. moveNext$0: function() {
  25761. var future, _this = this,
  25762. t1 = _this._subscription;
  25763. if (t1 != null) {
  25764. if (_this._isPaused) {
  25765. future = new P._Future($.Zone__current, type$._Future_bool);
  25766. _this._stateData = future;
  25767. _this._isPaused = false;
  25768. t1.resume$0();
  25769. return future;
  25770. }
  25771. throw H.wrapException(P.StateError$("Already waiting for next."));
  25772. }
  25773. return _this._initializeOrDone$0();
  25774. },
  25775. _initializeOrDone$0: function() {
  25776. var _this = this,
  25777. stateData = _this._stateData;
  25778. if (stateData != null) {
  25779. _this._subscription = stateData.listen$4$cancelOnError$onDone$onError(_this.get$_onData(), true, _this.get$_onDone(), _this.get$_onError());
  25780. return _this._stateData = new P._Future($.Zone__current, type$._Future_bool);
  25781. }
  25782. return $.$get$Future__falseFuture();
  25783. },
  25784. cancel$0: function() {
  25785. var _this = this,
  25786. subscription = _this._subscription,
  25787. stateData = _this._stateData;
  25788. _this._stateData = null;
  25789. if (subscription != null) {
  25790. _this._subscription = null;
  25791. if (!_this._isPaused)
  25792. stateData._asyncComplete$1(false);
  25793. return subscription.cancel$0();
  25794. }
  25795. return $.$get$Future__nullFuture();
  25796. },
  25797. _onData$1: function(data) {
  25798. var t1, _this = this,
  25799. moveNextFuture = _this._stateData;
  25800. _this._stateData = data;
  25801. _this._isPaused = true;
  25802. moveNextFuture._complete$1(true);
  25803. t1 = _this._subscription;
  25804. if (t1 != null && _this._isPaused)
  25805. t1.pause$0(0);
  25806. },
  25807. _onError$2: function(error, stackTrace) {
  25808. var moveNextFuture = this._stateData;
  25809. this._stateData = this._subscription = null;
  25810. moveNextFuture._completeError$2(error, stackTrace);
  25811. },
  25812. _onError$1: function(error) {
  25813. return this._onError$2(error, null);
  25814. },
  25815. _onDone$0: function() {
  25816. var moveNextFuture = this._stateData;
  25817. this._stateData = this._subscription = null;
  25818. moveNextFuture._complete$1(false);
  25819. }
  25820. };
  25821. P._ForwardingStream.prototype = {
  25822. get$isBroadcast: function() {
  25823. return this._async$_source.get$isBroadcast();
  25824. },
  25825. listen$4$cancelOnError$onDone$onError: function(onData, cancelOnError, onDone, onError) {
  25826. var t1, t2, t3, t4;
  25827. cancelOnError = true === cancelOnError;
  25828. t1 = H._instanceType(this);
  25829. t2 = t1._rest[1];
  25830. t3 = $.Zone__current;
  25831. t4 = cancelOnError ? 1 : 0;
  25832. t1 = new P._ForwardingStreamSubscription(this, t3, t4, t1._eval$1("@<1>")._bind$1(t2)._eval$1("_ForwardingStreamSubscription<1,2>"));
  25833. t1._BufferingStreamSubscription$4(onData, onError, onDone, cancelOnError, t2);
  25834. t1._subscription = this._async$_source.listen$3$onDone$onError(t1.get$_handleData(), t1.get$_handleDone(), t1.get$_handleError());
  25835. return t1;
  25836. },
  25837. listen$3$onDone$onError: function(onData, onDone, onError) {
  25838. return this.listen$4$cancelOnError$onDone$onError(onData, null, onDone, onError);
  25839. },
  25840. _handleData$2: function(data, sink) {
  25841. sink._async$_add$1(data);
  25842. }
  25843. };
  25844. P._ForwardingStreamSubscription.prototype = {
  25845. _async$_add$1: function(data) {
  25846. if ((this._state & 2) !== 0)
  25847. return;
  25848. this.super$_BufferingStreamSubscription$_add(data);
  25849. },
  25850. _addError$2: function(error, stackTrace) {
  25851. if ((this._state & 2) !== 0)
  25852. return;
  25853. this.super$_BufferingStreamSubscription$_addError(error, stackTrace);
  25854. },
  25855. _async$_onPause$0: function() {
  25856. var t1 = this._subscription;
  25857. if (t1 == null)
  25858. return;
  25859. t1.pause$0(0);
  25860. },
  25861. _async$_onResume$0: function() {
  25862. var t1 = this._subscription;
  25863. if (t1 == null)
  25864. return;
  25865. t1.resume$0();
  25866. },
  25867. _async$_onCancel$0: function() {
  25868. var t1 = this._subscription;
  25869. if (t1 != null) {
  25870. this._subscription = null;
  25871. return t1.cancel$0();
  25872. }
  25873. return null;
  25874. },
  25875. _handleData$1: function(data) {
  25876. this._stream._handleData$2(data, this);
  25877. },
  25878. _handleError$2: function(error, stackTrace) {
  25879. this._addError$2(error, stackTrace);
  25880. },
  25881. _handleDone$0: function() {
  25882. this._close$0();
  25883. }
  25884. };
  25885. P._ExpandStream.prototype = {
  25886. _handleData$2: function(inputEvent, sink) {
  25887. var value, e, s, t1, exception;
  25888. try {
  25889. for (t1 = J.get$iterator$ax(this._expand.call$1(inputEvent)); t1.moveNext$0();) {
  25890. value = t1.get$current(t1);
  25891. sink._async$_add$1(value);
  25892. }
  25893. } catch (exception) {
  25894. e = H.unwrapException(exception);
  25895. s = H.getTraceFromException(exception);
  25896. P._addErrorWithReplacement(sink, e, s);
  25897. }
  25898. }
  25899. };
  25900. P.Timer.prototype = {};
  25901. P.AsyncError.prototype = {
  25902. toString$0: function(_) {
  25903. return H.S(this.error);
  25904. },
  25905. $isError: 1,
  25906. get$stackTrace: function() {
  25907. return this.stackTrace;
  25908. }
  25909. };
  25910. P._ZoneFunction.prototype = {};
  25911. P._RunNullaryZoneFunction.prototype = {};
  25912. P._RunUnaryZoneFunction.prototype = {};
  25913. P._RunBinaryZoneFunction.prototype = {};
  25914. P._RegisterNullaryZoneFunction.prototype = {};
  25915. P._RegisterUnaryZoneFunction.prototype = {};
  25916. P._RegisterBinaryZoneFunction.prototype = {};
  25917. P.ZoneSpecification.prototype = {};
  25918. P._ZoneSpecification.prototype = {$isZoneSpecification: 1};
  25919. P.ZoneDelegate.prototype = {};
  25920. P.Zone.prototype = {};
  25921. P._ZoneDelegate.prototype = {$isZoneDelegate: 1};
  25922. P._Zone.prototype = {$isZone: 1};
  25923. P._CustomZone.prototype = {
  25924. get$_delegate: function() {
  25925. var t1 = this._delegateCache;
  25926. if (t1 != null)
  25927. return t1;
  25928. return this._delegateCache = new P._ZoneDelegate(this);
  25929. },
  25930. get$errorZone: function() {
  25931. return this._handleUncaughtError.zone;
  25932. },
  25933. runGuarded$1: function(f) {
  25934. var e, s, exception;
  25935. try {
  25936. this.run$1(0, f);
  25937. } catch (exception) {
  25938. e = H.unwrapException(exception);
  25939. s = H.getTraceFromException(exception);
  25940. this.handleUncaughtError$2(e, s);
  25941. }
  25942. },
  25943. runUnaryGuarded$1$2: function(f, arg) {
  25944. var e, s, exception;
  25945. try {
  25946. this.runUnary$2(f, arg);
  25947. } catch (exception) {
  25948. e = H.unwrapException(exception);
  25949. s = H.getTraceFromException(exception);
  25950. this.handleUncaughtError$2(e, s);
  25951. }
  25952. },
  25953. runUnaryGuarded$2: function(f, arg) {
  25954. return this.runUnaryGuarded$1$2(f, arg, type$.dynamic);
  25955. },
  25956. runBinaryGuarded$2$3: function(f, arg1, arg2) {
  25957. var e, s, exception;
  25958. try {
  25959. this.runBinary$3(f, arg1, arg2);
  25960. } catch (exception) {
  25961. e = H.unwrapException(exception);
  25962. s = H.getTraceFromException(exception);
  25963. this.handleUncaughtError$2(e, s);
  25964. }
  25965. },
  25966. runBinaryGuarded$3: function(f, arg1, arg2) {
  25967. return this.runBinaryGuarded$2$3(f, arg1, arg2, type$.dynamic, type$.dynamic);
  25968. },
  25969. bindCallback$1$1: function(f, $R) {
  25970. return new P._CustomZone_bindCallback_closure(this, this.registerCallback$1(f), $R);
  25971. },
  25972. bindUnaryCallback$2$1: function(f, $R, $T) {
  25973. return new P._CustomZone_bindUnaryCallback_closure(this, this.registerUnaryCallback$1(f), $T, $R);
  25974. },
  25975. bindCallbackGuarded$1: function(f) {
  25976. return new P._CustomZone_bindCallbackGuarded_closure(this, this.registerCallback$1(f));
  25977. },
  25978. $index: function(_, key) {
  25979. var value,
  25980. t1 = this._async$_map,
  25981. result = t1.$index(0, key);
  25982. if (result != null || t1.containsKey$1(key))
  25983. return result;
  25984. value = this.parent.$index(0, key);
  25985. if (value != null)
  25986. t1.$indexSet(0, key, value);
  25987. return value;
  25988. },
  25989. handleUncaughtError$2: function(error, stackTrace) {
  25990. var implementation = this._handleUncaughtError,
  25991. t1 = implementation.zone,
  25992. parentDelegate = P._parentDelegate(t1);
  25993. return implementation.$function.call$5(t1, parentDelegate, this, error, stackTrace);
  25994. },
  25995. fork$2$specification$zoneValues: function(specification, zoneValues) {
  25996. var implementation = this._fork,
  25997. t1 = implementation.zone,
  25998. parentDelegate = P._parentDelegate(t1);
  25999. return implementation.$function.call$5(t1, parentDelegate, this, specification, zoneValues);
  26000. },
  26001. run$1$1: function(_, f) {
  26002. var implementation = this._run,
  26003. t1 = implementation.zone,
  26004. parentDelegate = P._parentDelegate(t1);
  26005. return implementation.$function.call$4(t1, parentDelegate, this, f);
  26006. },
  26007. run$1: function($receiver, f) {
  26008. return this.run$1$1($receiver, f, type$.dynamic);
  26009. },
  26010. runUnary$2$2: function(f, arg) {
  26011. var implementation = this._runUnary,
  26012. t1 = implementation.zone,
  26013. parentDelegate = P._parentDelegate(t1);
  26014. return implementation.$function.call$5(t1, parentDelegate, this, f, arg);
  26015. },
  26016. runUnary$2: function(f, arg) {
  26017. return this.runUnary$2$2(f, arg, type$.dynamic, type$.dynamic);
  26018. },
  26019. runBinary$3$3: function(f, arg1, arg2) {
  26020. var implementation = this._runBinary,
  26021. t1 = implementation.zone,
  26022. parentDelegate = P._parentDelegate(t1);
  26023. return implementation.$function.call$6(t1, parentDelegate, this, f, arg1, arg2);
  26024. },
  26025. runBinary$3: function(f, arg1, arg2) {
  26026. return this.runBinary$3$3(f, arg1, arg2, type$.dynamic, type$.dynamic, type$.dynamic);
  26027. },
  26028. registerCallback$1$1: function(callback) {
  26029. var implementation = this._registerCallback,
  26030. t1 = implementation.zone,
  26031. parentDelegate = P._parentDelegate(t1);
  26032. return implementation.$function.call$4(t1, parentDelegate, this, callback);
  26033. },
  26034. registerCallback$1: function(callback) {
  26035. return this.registerCallback$1$1(callback, type$.dynamic);
  26036. },
  26037. registerUnaryCallback$2$1: function(callback) {
  26038. var implementation = this._registerUnaryCallback,
  26039. t1 = implementation.zone,
  26040. parentDelegate = P._parentDelegate(t1);
  26041. return implementation.$function.call$4(t1, parentDelegate, this, callback);
  26042. },
  26043. registerUnaryCallback$1: function(callback) {
  26044. return this.registerUnaryCallback$2$1(callback, type$.dynamic, type$.dynamic);
  26045. },
  26046. registerBinaryCallback$3$1: function(callback) {
  26047. var implementation = this._registerBinaryCallback,
  26048. t1 = implementation.zone,
  26049. parentDelegate = P._parentDelegate(t1);
  26050. return implementation.$function.call$4(t1, parentDelegate, this, callback);
  26051. },
  26052. registerBinaryCallback$1: function(callback) {
  26053. return this.registerBinaryCallback$3$1(callback, type$.dynamic, type$.dynamic, type$.dynamic);
  26054. },
  26055. errorCallback$2: function(error, stackTrace) {
  26056. var implementation, implementationZone, parentDelegate;
  26057. P.ArgumentError_checkNotNull(error, "error");
  26058. implementation = this._errorCallback;
  26059. implementationZone = implementation.zone;
  26060. if (implementationZone === C.C__RootZone)
  26061. return null;
  26062. parentDelegate = P._parentDelegate(implementationZone);
  26063. return implementation.$function.call$5(implementationZone, parentDelegate, this, error, stackTrace);
  26064. },
  26065. scheduleMicrotask$1: function(f) {
  26066. var implementation = this._scheduleMicrotask,
  26067. t1 = implementation.zone,
  26068. parentDelegate = P._parentDelegate(t1);
  26069. return implementation.$function.call$4(t1, parentDelegate, this, f);
  26070. },
  26071. createTimer$2: function(duration, f) {
  26072. var implementation = this._createTimer,
  26073. t1 = implementation.zone,
  26074. parentDelegate = P._parentDelegate(t1);
  26075. return implementation.$function.call$5(t1, parentDelegate, this, duration, f);
  26076. },
  26077. print$1: function(line) {
  26078. var implementation = this._print,
  26079. t1 = implementation.zone,
  26080. parentDelegate = P._parentDelegate(t1);
  26081. return implementation.$function.call$4(t1, parentDelegate, this, line);
  26082. },
  26083. get$_run: function() {
  26084. return this._run;
  26085. },
  26086. get$_runUnary: function() {
  26087. return this._runUnary;
  26088. },
  26089. get$_runBinary: function() {
  26090. return this._runBinary;
  26091. },
  26092. get$_registerCallback: function() {
  26093. return this._registerCallback;
  26094. },
  26095. get$_registerUnaryCallback: function() {
  26096. return this._registerUnaryCallback;
  26097. },
  26098. get$_registerBinaryCallback: function() {
  26099. return this._registerBinaryCallback;
  26100. },
  26101. get$_errorCallback: function() {
  26102. return this._errorCallback;
  26103. },
  26104. get$_scheduleMicrotask: function() {
  26105. return this._scheduleMicrotask;
  26106. },
  26107. get$_createTimer: function() {
  26108. return this._createTimer;
  26109. },
  26110. get$_createPeriodicTimer: function() {
  26111. return this._createPeriodicTimer;
  26112. },
  26113. get$_print: function() {
  26114. return this._print;
  26115. },
  26116. get$_fork: function() {
  26117. return this._fork;
  26118. },
  26119. get$_handleUncaughtError: function() {
  26120. return this._handleUncaughtError;
  26121. },
  26122. get$parent: function() {
  26123. return this.parent;
  26124. },
  26125. get$_async$_map: function() {
  26126. return this._async$_map;
  26127. }
  26128. };
  26129. P._CustomZone_bindCallback_closure.prototype = {
  26130. call$0: function() {
  26131. return this.$this.run$1(0, this.registered);
  26132. },
  26133. $signature: function() {
  26134. return this.R._eval$1("0()");
  26135. }
  26136. };
  26137. P._CustomZone_bindUnaryCallback_closure.prototype = {
  26138. call$1: function(arg) {
  26139. return this.$this.runUnary$2(this.registered, arg);
  26140. },
  26141. $signature: function() {
  26142. return this.R._eval$1("@<0>")._bind$1(this.T)._eval$1("1(2)");
  26143. }
  26144. };
  26145. P._CustomZone_bindCallbackGuarded_closure.prototype = {
  26146. call$0: function() {
  26147. return this.$this.runGuarded$1(this.registered);
  26148. },
  26149. "call*": "call$0",
  26150. $requiredArgCount: 0,
  26151. $signature: 1
  26152. };
  26153. P._rootHandleUncaughtError_closure.prototype = {
  26154. call$0: function() {
  26155. var error,
  26156. t1 = this._box_0,
  26157. t2 = t1.stackTrace;
  26158. if (t2 == null)
  26159. throw H.wrapException(t1.error);
  26160. error = H.wrapException(t1.error);
  26161. error.stack = t2.toString$0(0);
  26162. throw error;
  26163. },
  26164. $signature: 0
  26165. };
  26166. P._RootZone.prototype = {
  26167. get$_run: function() {
  26168. return C._RunNullaryZoneFunction__RootZone__rootRun;
  26169. },
  26170. get$_runUnary: function() {
  26171. return C._RunUnaryZoneFunction__RootZone__rootRunUnary;
  26172. },
  26173. get$_runBinary: function() {
  26174. return C._RunBinaryZoneFunction__RootZone__rootRunBinary;
  26175. },
  26176. get$_registerCallback: function() {
  26177. return C._RegisterNullaryZoneFunction__RootZone__rootRegisterCallback;
  26178. },
  26179. get$_registerUnaryCallback: function() {
  26180. return C._RegisterUnaryZoneFunction_Bqo;
  26181. },
  26182. get$_registerBinaryCallback: function() {
  26183. return C._RegisterBinaryZoneFunction_kGu;
  26184. },
  26185. get$_errorCallback: function() {
  26186. return C._ZoneFunction__RootZone__rootErrorCallback;
  26187. },
  26188. get$_scheduleMicrotask: function() {
  26189. return C._ZoneFunction__RootZone__rootScheduleMicrotask;
  26190. },
  26191. get$_createTimer: function() {
  26192. return C._ZoneFunction__RootZone__rootCreateTimer;
  26193. },
  26194. get$_createPeriodicTimer: function() {
  26195. return C._ZoneFunction_3bB;
  26196. },
  26197. get$_print: function() {
  26198. return C._ZoneFunction__RootZone__rootPrint;
  26199. },
  26200. get$_fork: function() {
  26201. return C._ZoneFunction__RootZone__rootFork;
  26202. },
  26203. get$_handleUncaughtError: function() {
  26204. return C._ZoneFunction_NMc;
  26205. },
  26206. get$parent: function() {
  26207. return null;
  26208. },
  26209. get$_async$_map: function() {
  26210. return $.$get$_RootZone__rootMap();
  26211. },
  26212. get$_delegate: function() {
  26213. var t1 = $._RootZone__rootDelegate;
  26214. if (t1 != null)
  26215. return t1;
  26216. return $._RootZone__rootDelegate = new P._ZoneDelegate(this);
  26217. },
  26218. get$errorZone: function() {
  26219. return this;
  26220. },
  26221. runGuarded$1: function(f) {
  26222. var e, s, exception, _null = null;
  26223. try {
  26224. if (C.C__RootZone === $.Zone__current) {
  26225. f.call$0();
  26226. return;
  26227. }
  26228. P._rootRun(_null, _null, this, f);
  26229. } catch (exception) {
  26230. e = H.unwrapException(exception);
  26231. s = H.getTraceFromException(exception);
  26232. P._rootHandleUncaughtError(_null, _null, this, e, s);
  26233. }
  26234. },
  26235. runUnaryGuarded$1$2: function(f, arg) {
  26236. var e, s, exception, _null = null;
  26237. try {
  26238. if (C.C__RootZone === $.Zone__current) {
  26239. f.call$1(arg);
  26240. return;
  26241. }
  26242. P._rootRunUnary(_null, _null, this, f, arg);
  26243. } catch (exception) {
  26244. e = H.unwrapException(exception);
  26245. s = H.getTraceFromException(exception);
  26246. P._rootHandleUncaughtError(_null, _null, this, e, s);
  26247. }
  26248. },
  26249. runUnaryGuarded$2: function(f, arg) {
  26250. return this.runUnaryGuarded$1$2(f, arg, type$.dynamic);
  26251. },
  26252. runBinaryGuarded$2$3: function(f, arg1, arg2) {
  26253. var e, s, exception, _null = null;
  26254. try {
  26255. if (C.C__RootZone === $.Zone__current) {
  26256. f.call$2(arg1, arg2);
  26257. return;
  26258. }
  26259. P._rootRunBinary(_null, _null, this, f, arg1, arg2);
  26260. } catch (exception) {
  26261. e = H.unwrapException(exception);
  26262. s = H.getTraceFromException(exception);
  26263. P._rootHandleUncaughtError(_null, _null, this, e, s);
  26264. }
  26265. },
  26266. runBinaryGuarded$3: function(f, arg1, arg2) {
  26267. return this.runBinaryGuarded$2$3(f, arg1, arg2, type$.dynamic, type$.dynamic);
  26268. },
  26269. bindCallback$1$1: function(f, $R) {
  26270. return new P._RootZone_bindCallback_closure(this, f, $R);
  26271. },
  26272. bindCallbackGuarded$1: function(f) {
  26273. return new P._RootZone_bindCallbackGuarded_closure(this, f);
  26274. },
  26275. $index: function(_, key) {
  26276. return null;
  26277. },
  26278. handleUncaughtError$2: function(error, stackTrace) {
  26279. P._rootHandleUncaughtError(null, null, this, error, stackTrace);
  26280. },
  26281. fork$2$specification$zoneValues: function(specification, zoneValues) {
  26282. return P._rootFork(null, null, this, specification, zoneValues);
  26283. },
  26284. run$1$1: function(_, f) {
  26285. if ($.Zone__current === C.C__RootZone)
  26286. return f.call$0();
  26287. return P._rootRun(null, null, this, f);
  26288. },
  26289. run$1: function($receiver, f) {
  26290. return this.run$1$1($receiver, f, type$.dynamic);
  26291. },
  26292. runUnary$2$2: function(f, arg) {
  26293. if ($.Zone__current === C.C__RootZone)
  26294. return f.call$1(arg);
  26295. return P._rootRunUnary(null, null, this, f, arg);
  26296. },
  26297. runUnary$2: function(f, arg) {
  26298. return this.runUnary$2$2(f, arg, type$.dynamic, type$.dynamic);
  26299. },
  26300. runBinary$3$3: function(f, arg1, arg2) {
  26301. if ($.Zone__current === C.C__RootZone)
  26302. return f.call$2(arg1, arg2);
  26303. return P._rootRunBinary(null, null, this, f, arg1, arg2);
  26304. },
  26305. runBinary$3: function(f, arg1, arg2) {
  26306. return this.runBinary$3$3(f, arg1, arg2, type$.dynamic, type$.dynamic, type$.dynamic);
  26307. },
  26308. registerCallback$1$1: function(f) {
  26309. return f;
  26310. },
  26311. registerCallback$1: function(f) {
  26312. return this.registerCallback$1$1(f, type$.dynamic);
  26313. },
  26314. registerUnaryCallback$2$1: function(f) {
  26315. return f;
  26316. },
  26317. registerUnaryCallback$1: function(f) {
  26318. return this.registerUnaryCallback$2$1(f, type$.dynamic, type$.dynamic);
  26319. },
  26320. registerBinaryCallback$3$1: function(f) {
  26321. return f;
  26322. },
  26323. registerBinaryCallback$1: function(f) {
  26324. return this.registerBinaryCallback$3$1(f, type$.dynamic, type$.dynamic, type$.dynamic);
  26325. },
  26326. errorCallback$2: function(error, stackTrace) {
  26327. return null;
  26328. },
  26329. scheduleMicrotask$1: function(f) {
  26330. P._rootScheduleMicrotask(null, null, this, f);
  26331. },
  26332. createTimer$2: function(duration, f) {
  26333. return P.Timer__createTimer(duration, f);
  26334. },
  26335. print$1: function(line) {
  26336. H.printString(line);
  26337. }
  26338. };
  26339. P._RootZone_bindCallback_closure.prototype = {
  26340. call$0: function() {
  26341. return this.$this.run$1(0, this.f);
  26342. },
  26343. $signature: function() {
  26344. return this.R._eval$1("0()");
  26345. }
  26346. };
  26347. P._RootZone_bindCallbackGuarded_closure.prototype = {
  26348. call$0: function() {
  26349. return this.$this.runGuarded$1(this.f);
  26350. },
  26351. "call*": "call$0",
  26352. $requiredArgCount: 0,
  26353. $signature: 1
  26354. };
  26355. P._HashMap.prototype = {
  26356. get$length: function(_) {
  26357. return this._collection$_length;
  26358. },
  26359. get$isEmpty: function(_) {
  26360. return this._collection$_length === 0;
  26361. },
  26362. get$isNotEmpty: function(_) {
  26363. return this._collection$_length !== 0;
  26364. },
  26365. get$keys: function() {
  26366. return new P._HashMapKeyIterable(this, H._instanceType(this)._eval$1("_HashMapKeyIterable<1>"));
  26367. },
  26368. get$values: function() {
  26369. var t1 = H._instanceType(this);
  26370. return H.MappedIterable_MappedIterable(new P._HashMapKeyIterable(this, t1._eval$1("_HashMapKeyIterable<1>")), new P._HashMap_values_closure(this), t1._precomputed1, t1._rest[1]);
  26371. },
  26372. containsKey$1: function(key) {
  26373. var strings, nums;
  26374. if (typeof key == "string" && key !== "__proto__") {
  26375. strings = this._collection$_strings;
  26376. return strings == null ? false : strings[key] != null;
  26377. } else if (typeof key == "number" && (key & 1073741823) === key) {
  26378. nums = this._collection$_nums;
  26379. return nums == null ? false : nums[key] != null;
  26380. } else
  26381. return this._containsKey$1(key);
  26382. },
  26383. _containsKey$1: function(key) {
  26384. var rest = this._collection$_rest;
  26385. if (rest == null)
  26386. return false;
  26387. return this._findBucketIndex$2(this._getBucket$2(rest, key), key) >= 0;
  26388. },
  26389. addAll$1: function(_, other) {
  26390. other.forEach$1(0, new P._HashMap_addAll_closure(this));
  26391. },
  26392. $index: function(_, key) {
  26393. var strings, t1, nums;
  26394. if (typeof key == "string" && key !== "__proto__") {
  26395. strings = this._collection$_strings;
  26396. t1 = strings == null ? null : P._HashMap__getTableEntry(strings, key);
  26397. return t1;
  26398. } else if (typeof key == "number" && (key & 1073741823) === key) {
  26399. nums = this._collection$_nums;
  26400. t1 = nums == null ? null : P._HashMap__getTableEntry(nums, key);
  26401. return t1;
  26402. } else
  26403. return this._get$1(key);
  26404. },
  26405. _get$1: function(key) {
  26406. var bucket, index,
  26407. rest = this._collection$_rest;
  26408. if (rest == null)
  26409. return null;
  26410. bucket = this._getBucket$2(rest, key);
  26411. index = this._findBucketIndex$2(bucket, key);
  26412. return index < 0 ? null : bucket[index + 1];
  26413. },
  26414. $indexSet: function(_, key, value) {
  26415. var strings, nums, _this = this;
  26416. if (typeof key == "string" && key !== "__proto__") {
  26417. strings = _this._collection$_strings;
  26418. _this._collection$_addHashTableEntry$3(strings == null ? _this._collection$_strings = P._HashMap__newHashTable() : strings, key, value);
  26419. } else if (typeof key == "number" && (key & 1073741823) === key) {
  26420. nums = _this._collection$_nums;
  26421. _this._collection$_addHashTableEntry$3(nums == null ? _this._collection$_nums = P._HashMap__newHashTable() : nums, key, value);
  26422. } else
  26423. _this._set$2(key, value);
  26424. },
  26425. _set$2: function(key, value) {
  26426. var hash, bucket, index, _this = this,
  26427. rest = _this._collection$_rest;
  26428. if (rest == null)
  26429. rest = _this._collection$_rest = P._HashMap__newHashTable();
  26430. hash = _this._computeHashCode$1(key);
  26431. bucket = rest[hash];
  26432. if (bucket == null) {
  26433. P._HashMap__setTableEntry(rest, hash, [key, value]);
  26434. ++_this._collection$_length;
  26435. _this._keys = null;
  26436. } else {
  26437. index = _this._findBucketIndex$2(bucket, key);
  26438. if (index >= 0)
  26439. bucket[index + 1] = value;
  26440. else {
  26441. bucket.push(key, value);
  26442. ++_this._collection$_length;
  26443. _this._keys = null;
  26444. }
  26445. }
  26446. },
  26447. putIfAbsent$2: function(key, ifAbsent) {
  26448. var value;
  26449. if (this.containsKey$1(key))
  26450. return this.$index(0, key);
  26451. value = ifAbsent.call$0();
  26452. this.$indexSet(0, key, value);
  26453. return value;
  26454. },
  26455. remove$1: function(_, key) {
  26456. var t1;
  26457. if (typeof key == "string" && key !== "__proto__")
  26458. return this._removeHashTableEntry$2(this._collection$_strings, key);
  26459. else {
  26460. t1 = this._remove$1(key);
  26461. return t1;
  26462. }
  26463. },
  26464. _remove$1: function(key) {
  26465. var hash, bucket, index, result, _this = this,
  26466. rest = _this._collection$_rest;
  26467. if (rest == null)
  26468. return null;
  26469. hash = _this._computeHashCode$1(key);
  26470. bucket = rest[hash];
  26471. index = _this._findBucketIndex$2(bucket, key);
  26472. if (index < 0)
  26473. return null;
  26474. --_this._collection$_length;
  26475. _this._keys = null;
  26476. result = bucket.splice(index, 2)[1];
  26477. if (0 === bucket.length)
  26478. delete rest[hash];
  26479. return result;
  26480. },
  26481. forEach$1: function(_, action) {
  26482. var $length, i, key, _this = this,
  26483. keys = _this._computeKeys$0();
  26484. for ($length = keys.length, i = 0; i < $length; ++i) {
  26485. key = keys[i];
  26486. action.call$2(key, _this.$index(0, key));
  26487. if (keys !== _this._keys)
  26488. throw H.wrapException(P.ConcurrentModificationError$(_this));
  26489. }
  26490. },
  26491. _computeKeys$0: function() {
  26492. var result, strings, names, entries, index, i, nums, rest, bucket, $length, i0, _this = this,
  26493. t1 = _this._keys;
  26494. if (t1 != null)
  26495. return t1;
  26496. result = new Array(_this._collection$_length);
  26497. result.fixed$length = Array;
  26498. strings = _this._collection$_strings;
  26499. if (strings != null) {
  26500. names = Object.getOwnPropertyNames(strings);
  26501. entries = names.length;
  26502. for (index = 0, i = 0; i < entries; ++i) {
  26503. result[index] = names[i];
  26504. ++index;
  26505. }
  26506. } else
  26507. index = 0;
  26508. nums = _this._collection$_nums;
  26509. if (nums != null) {
  26510. names = Object.getOwnPropertyNames(nums);
  26511. entries = names.length;
  26512. for (i = 0; i < entries; ++i) {
  26513. result[index] = +names[i];
  26514. ++index;
  26515. }
  26516. }
  26517. rest = _this._collection$_rest;
  26518. if (rest != null) {
  26519. names = Object.getOwnPropertyNames(rest);
  26520. entries = names.length;
  26521. for (i = 0; i < entries; ++i) {
  26522. bucket = rest[names[i]];
  26523. $length = bucket.length;
  26524. for (i0 = 0; i0 < $length; i0 += 2) {
  26525. result[index] = bucket[i0];
  26526. ++index;
  26527. }
  26528. }
  26529. }
  26530. return _this._keys = result;
  26531. },
  26532. _collection$_addHashTableEntry$3: function(table, key, value) {
  26533. if (table[key] == null) {
  26534. ++this._collection$_length;
  26535. this._keys = null;
  26536. }
  26537. P._HashMap__setTableEntry(table, key, value);
  26538. },
  26539. _removeHashTableEntry$2: function(table, key) {
  26540. var value;
  26541. if (table != null && table[key] != null) {
  26542. value = P._HashMap__getTableEntry(table, key);
  26543. delete table[key];
  26544. --this._collection$_length;
  26545. this._keys = null;
  26546. return value;
  26547. } else
  26548. return null;
  26549. },
  26550. _computeHashCode$1: function(key) {
  26551. return J.get$hashCode$(key) & 1073741823;
  26552. },
  26553. _getBucket$2: function(table, key) {
  26554. return table[this._computeHashCode$1(key)];
  26555. },
  26556. _findBucketIndex$2: function(bucket, key) {
  26557. var $length, i;
  26558. if (bucket == null)
  26559. return -1;
  26560. $length = bucket.length;
  26561. for (i = 0; i < $length; i += 2)
  26562. if (J.$eq$(bucket[i], key))
  26563. return i;
  26564. return -1;
  26565. }
  26566. };
  26567. P._HashMap_values_closure.prototype = {
  26568. call$1: function(each) {
  26569. return this.$this.$index(0, each);
  26570. },
  26571. $signature: function() {
  26572. return H._instanceType(this.$this)._eval$1("2(1)");
  26573. }
  26574. };
  26575. P._HashMap_addAll_closure.prototype = {
  26576. call$2: function(key, value) {
  26577. this.$this.$indexSet(0, key, value);
  26578. },
  26579. $signature: function() {
  26580. return H._instanceType(this.$this)._eval$1("Null(1,2)");
  26581. }
  26582. };
  26583. P._HashMapKeyIterable.prototype = {
  26584. get$length: function(_) {
  26585. return this._collection$_map._collection$_length;
  26586. },
  26587. get$isEmpty: function(_) {
  26588. return this._collection$_map._collection$_length === 0;
  26589. },
  26590. get$iterator: function(_) {
  26591. var t1 = this._collection$_map;
  26592. return new P._HashMapKeyIterator(t1, t1._computeKeys$0());
  26593. },
  26594. contains$1: function(_, element) {
  26595. return this._collection$_map.containsKey$1(element);
  26596. }
  26597. };
  26598. P._HashMapKeyIterator.prototype = {
  26599. get$current: function(_) {
  26600. return this._collection$_current;
  26601. },
  26602. moveNext$0: function() {
  26603. var _this = this,
  26604. keys = _this._keys,
  26605. offset = _this._offset,
  26606. t1 = _this._collection$_map;
  26607. if (keys !== t1._keys)
  26608. throw H.wrapException(P.ConcurrentModificationError$(t1));
  26609. else if (offset >= keys.length) {
  26610. _this._collection$_current = null;
  26611. return false;
  26612. } else {
  26613. _this._collection$_current = keys[offset];
  26614. _this._offset = offset + 1;
  26615. return true;
  26616. }
  26617. }
  26618. };
  26619. P._LinkedIdentityHashMap.prototype = {
  26620. internalComputeHashCode$1: function(key) {
  26621. return H.objectHashCode(key) & 1073741823;
  26622. },
  26623. internalFindBucketIndex$2: function(bucket, key) {
  26624. var $length, i, t1;
  26625. if (bucket == null)
  26626. return -1;
  26627. $length = bucket.length;
  26628. for (i = 0; i < $length; ++i) {
  26629. t1 = bucket[i].hashMapCellKey;
  26630. if (t1 == null ? key == null : t1 === key)
  26631. return i;
  26632. }
  26633. return -1;
  26634. }
  26635. };
  26636. P._LinkedCustomHashMap.prototype = {
  26637. $index: function(_, key) {
  26638. if (!this._validKey.call$1(key))
  26639. return null;
  26640. return this.super$JsLinkedHashMap$internalGet(key);
  26641. },
  26642. $indexSet: function(_, key, value) {
  26643. this.super$JsLinkedHashMap$internalSet(key, value);
  26644. },
  26645. containsKey$1: function(key) {
  26646. if (!this._validKey.call$1(key))
  26647. return false;
  26648. return this.super$JsLinkedHashMap$internalContainsKey(key);
  26649. },
  26650. remove$1: function(_, key) {
  26651. if (!this._validKey.call$1(key))
  26652. return null;
  26653. return this.super$JsLinkedHashMap$internalRemove(key);
  26654. },
  26655. internalComputeHashCode$1: function(key) {
  26656. return this._hashCode.call$1(key) & 1073741823;
  26657. },
  26658. internalFindBucketIndex$2: function(bucket, key) {
  26659. var $length, t1, i;
  26660. if (bucket == null)
  26661. return -1;
  26662. $length = bucket.length;
  26663. for (t1 = this._equals, i = 0; i < $length; ++i)
  26664. if (t1.call$2(bucket[i].hashMapCellKey, key))
  26665. return i;
  26666. return -1;
  26667. }
  26668. };
  26669. P._LinkedCustomHashMap_closure.prototype = {
  26670. call$1: function(v) {
  26671. return this.K._is(v);
  26672. },
  26673. $signature: 53
  26674. };
  26675. P._LinkedHashSet.prototype = {
  26676. _newSet$0: function() {
  26677. return new P._LinkedHashSet(H._instanceType(this)._eval$1("_LinkedHashSet<1>"));
  26678. },
  26679. _newSimilarSet$1$0: function($R) {
  26680. return new P._LinkedHashSet($R._eval$1("_LinkedHashSet<0>"));
  26681. },
  26682. _newSimilarSet$0: function() {
  26683. return this._newSimilarSet$1$0(type$.dynamic);
  26684. },
  26685. get$iterator: function(_) {
  26686. var t1 = new P._LinkedHashSetIterator(this, this._collection$_modifications);
  26687. t1._collection$_cell = this._collection$_first;
  26688. return t1;
  26689. },
  26690. get$length: function(_) {
  26691. return this._collection$_length;
  26692. },
  26693. get$isEmpty: function(_) {
  26694. return this._collection$_length === 0;
  26695. },
  26696. get$isNotEmpty: function(_) {
  26697. return this._collection$_length !== 0;
  26698. },
  26699. contains$1: function(_, object) {
  26700. var strings, nums;
  26701. if (typeof object == "string" && object !== "__proto__") {
  26702. strings = this._collection$_strings;
  26703. if (strings == null)
  26704. return false;
  26705. return strings[object] != null;
  26706. } else if (typeof object == "number" && (object & 1073741823) === object) {
  26707. nums = this._collection$_nums;
  26708. if (nums == null)
  26709. return false;
  26710. return nums[object] != null;
  26711. } else
  26712. return this._contains$1(object);
  26713. },
  26714. _contains$1: function(object) {
  26715. var rest = this._collection$_rest;
  26716. if (rest == null)
  26717. return false;
  26718. return this._findBucketIndex$2(rest[this._computeHashCode$1(object)], object) >= 0;
  26719. },
  26720. get$first: function(_) {
  26721. var t1 = this._collection$_first;
  26722. if (t1 == null)
  26723. throw H.wrapException(P.StateError$("No elements"));
  26724. return t1._element;
  26725. },
  26726. get$last: function(_) {
  26727. var t1 = this._collection$_last;
  26728. if (t1 == null)
  26729. throw H.wrapException(P.StateError$("No elements"));
  26730. return t1._element;
  26731. },
  26732. add$1: function(_, element) {
  26733. var strings, nums, _this = this;
  26734. if (typeof element == "string" && element !== "__proto__") {
  26735. strings = _this._collection$_strings;
  26736. return _this._collection$_addHashTableEntry$2(strings == null ? _this._collection$_strings = P._LinkedHashSet__newHashTable() : strings, element);
  26737. } else if (typeof element == "number" && (element & 1073741823) === element) {
  26738. nums = _this._collection$_nums;
  26739. return _this._collection$_addHashTableEntry$2(nums == null ? _this._collection$_nums = P._LinkedHashSet__newHashTable() : nums, element);
  26740. } else
  26741. return _this._add$1(element);
  26742. },
  26743. _add$1: function(element) {
  26744. var hash, bucket, _this = this,
  26745. rest = _this._collection$_rest;
  26746. if (rest == null)
  26747. rest = _this._collection$_rest = P._LinkedHashSet__newHashTable();
  26748. hash = _this._computeHashCode$1(element);
  26749. bucket = rest[hash];
  26750. if (bucket == null)
  26751. rest[hash] = [_this._collection$_newLinkedCell$1(element)];
  26752. else {
  26753. if (_this._findBucketIndex$2(bucket, element) >= 0)
  26754. return false;
  26755. bucket.push(_this._collection$_newLinkedCell$1(element));
  26756. }
  26757. return true;
  26758. },
  26759. remove$1: function(_, object) {
  26760. var _this = this;
  26761. if (typeof object == "string" && object !== "__proto__")
  26762. return _this._removeHashTableEntry$2(_this._collection$_strings, object);
  26763. else if (typeof object == "number" && (object & 1073741823) === object)
  26764. return _this._removeHashTableEntry$2(_this._collection$_nums, object);
  26765. else
  26766. return _this._remove$1(object);
  26767. },
  26768. _remove$1: function(object) {
  26769. var hash, bucket, index, cell, _this = this,
  26770. rest = _this._collection$_rest;
  26771. if (rest == null)
  26772. return false;
  26773. hash = _this._computeHashCode$1(object);
  26774. bucket = rest[hash];
  26775. index = _this._findBucketIndex$2(bucket, object);
  26776. if (index < 0)
  26777. return false;
  26778. cell = bucket.splice(index, 1)[0];
  26779. if (0 === bucket.length)
  26780. delete rest[hash];
  26781. _this._unlinkCell$1(cell);
  26782. return true;
  26783. },
  26784. _collection$_addHashTableEntry$2: function(table, element) {
  26785. if (table[element] != null)
  26786. return false;
  26787. table[element] = this._collection$_newLinkedCell$1(element);
  26788. return true;
  26789. },
  26790. _removeHashTableEntry$2: function(table, element) {
  26791. var cell;
  26792. if (table == null)
  26793. return false;
  26794. cell = table[element];
  26795. if (cell == null)
  26796. return false;
  26797. this._unlinkCell$1(cell);
  26798. delete table[element];
  26799. return true;
  26800. },
  26801. _collection$_modified$0: function() {
  26802. this._collection$_modifications = 1073741823 & this._collection$_modifications + 1;
  26803. },
  26804. _collection$_newLinkedCell$1: function(element) {
  26805. var last, _this = this,
  26806. cell = new P._LinkedHashSetCell(element);
  26807. if (_this._collection$_first == null)
  26808. _this._collection$_first = _this._collection$_last = cell;
  26809. else {
  26810. last = _this._collection$_last;
  26811. cell._collection$_previous = last;
  26812. _this._collection$_last = last._collection$_next = cell;
  26813. }
  26814. ++_this._collection$_length;
  26815. _this._collection$_modified$0();
  26816. return cell;
  26817. },
  26818. _unlinkCell$1: function(cell) {
  26819. var _this = this,
  26820. previous = cell._collection$_previous,
  26821. next = cell._collection$_next;
  26822. if (previous == null)
  26823. _this._collection$_first = next;
  26824. else
  26825. previous._collection$_next = next;
  26826. if (next == null)
  26827. _this._collection$_last = previous;
  26828. else
  26829. next._collection$_previous = previous;
  26830. --_this._collection$_length;
  26831. _this._collection$_modified$0();
  26832. },
  26833. _computeHashCode$1: function(element) {
  26834. return J.get$hashCode$(element) & 1073741823;
  26835. },
  26836. _findBucketIndex$2: function(bucket, element) {
  26837. var $length, i;
  26838. if (bucket == null)
  26839. return -1;
  26840. $length = bucket.length;
  26841. for (i = 0; i < $length; ++i)
  26842. if (J.$eq$(bucket[i]._element, element))
  26843. return i;
  26844. return -1;
  26845. }
  26846. };
  26847. P._LinkedIdentityHashSet.prototype = {
  26848. _newSet$0: function() {
  26849. return new P._LinkedIdentityHashSet(this.$ti);
  26850. },
  26851. _newSimilarSet$1$0: function($R) {
  26852. return new P._LinkedIdentityHashSet($R._eval$1("_LinkedIdentityHashSet<0>"));
  26853. },
  26854. _newSimilarSet$0: function() {
  26855. return this._newSimilarSet$1$0(type$.dynamic);
  26856. },
  26857. _computeHashCode$1: function(key) {
  26858. return H.objectHashCode(key) & 1073741823;
  26859. },
  26860. _findBucketIndex$2: function(bucket, element) {
  26861. var $length, i, t1;
  26862. if (bucket == null)
  26863. return -1;
  26864. $length = bucket.length;
  26865. for (i = 0; i < $length; ++i) {
  26866. t1 = bucket[i]._element;
  26867. if (t1 == null ? element == null : t1 === element)
  26868. return i;
  26869. }
  26870. return -1;
  26871. }
  26872. };
  26873. P._LinkedHashSetCell.prototype = {};
  26874. P._LinkedHashSetIterator.prototype = {
  26875. get$current: function(_) {
  26876. return this._collection$_current;
  26877. },
  26878. moveNext$0: function() {
  26879. var _this = this,
  26880. t1 = _this._set;
  26881. if (_this._collection$_modifications !== t1._collection$_modifications)
  26882. throw H.wrapException(P.ConcurrentModificationError$(t1));
  26883. else {
  26884. t1 = _this._collection$_cell;
  26885. if (t1 == null) {
  26886. _this._collection$_current = null;
  26887. return false;
  26888. } else {
  26889. _this._collection$_current = t1._element;
  26890. _this._collection$_cell = t1._collection$_next;
  26891. return true;
  26892. }
  26893. }
  26894. }
  26895. };
  26896. P.UnmodifiableListView.prototype = {
  26897. cast$1$0: function(_, $R) {
  26898. return new P.UnmodifiableListView(J.cast$1$0$ax(this._collection$_source, $R), $R._eval$1("UnmodifiableListView<0>"));
  26899. },
  26900. get$length: function(_) {
  26901. return J.get$length$asx(this._collection$_source);
  26902. },
  26903. $index: function(_, index) {
  26904. return J.elementAt$1$ax(this._collection$_source, index);
  26905. }
  26906. };
  26907. P.HashMap_HashMap$from_closure.prototype = {
  26908. call$2: function(k, v) {
  26909. this.result.$indexSet(0, k, v);
  26910. },
  26911. $signature: 38
  26912. };
  26913. P.IterableBase.prototype = {};
  26914. P.LinkedHashMap_LinkedHashMap$from_closure.prototype = {
  26915. call$2: function(k, v) {
  26916. this.result.$indexSet(0, k, v);
  26917. },
  26918. $signature: 38
  26919. };
  26920. P.ListBase.prototype = {$isEfficientLengthIterable: 1, $isIterable: 1, $isList: 1};
  26921. P.ListMixin.prototype = {
  26922. get$iterator: function(receiver) {
  26923. return new H.ListIterator(receiver, this.get$length(receiver));
  26924. },
  26925. elementAt$1: function(receiver, index) {
  26926. return this.$index(receiver, index);
  26927. },
  26928. get$isEmpty: function(receiver) {
  26929. return this.get$length(receiver) === 0;
  26930. },
  26931. get$isNotEmpty: function(receiver) {
  26932. return !this.get$isEmpty(receiver);
  26933. },
  26934. get$first: function(receiver) {
  26935. if (this.get$length(receiver) === 0)
  26936. throw H.wrapException(H.IterableElementError_noElement());
  26937. return this.$index(receiver, 0);
  26938. },
  26939. get$last: function(receiver) {
  26940. if (this.get$length(receiver) === 0)
  26941. throw H.wrapException(H.IterableElementError_noElement());
  26942. return this.$index(receiver, this.get$length(receiver) - 1);
  26943. },
  26944. get$single: function(receiver) {
  26945. if (this.get$length(receiver) === 0)
  26946. throw H.wrapException(H.IterableElementError_noElement());
  26947. if (this.get$length(receiver) > 1)
  26948. throw H.wrapException(H.IterableElementError_tooMany());
  26949. return this.$index(receiver, 0);
  26950. },
  26951. contains$1: function(receiver, element) {
  26952. var i,
  26953. $length = this.get$length(receiver);
  26954. for (i = 0; i < $length; ++i) {
  26955. if (J.$eq$(this.$index(receiver, i), element))
  26956. return true;
  26957. if ($length !== this.get$length(receiver))
  26958. throw H.wrapException(P.ConcurrentModificationError$(receiver));
  26959. }
  26960. return false;
  26961. },
  26962. every$1: function(receiver, test) {
  26963. var i,
  26964. $length = this.get$length(receiver);
  26965. for (i = 0; i < $length; ++i) {
  26966. if (!test.call$1(this.$index(receiver, i)))
  26967. return false;
  26968. if ($length !== this.get$length(receiver))
  26969. throw H.wrapException(P.ConcurrentModificationError$(receiver));
  26970. }
  26971. return true;
  26972. },
  26973. any$1: function(receiver, test) {
  26974. var i,
  26975. $length = this.get$length(receiver);
  26976. for (i = 0; i < $length; ++i) {
  26977. if (test.call$1(this.$index(receiver, i)))
  26978. return true;
  26979. if ($length !== this.get$length(receiver))
  26980. throw H.wrapException(P.ConcurrentModificationError$(receiver));
  26981. }
  26982. return false;
  26983. },
  26984. join$1: function(receiver, separator) {
  26985. var t1;
  26986. if (this.get$length(receiver) === 0)
  26987. return "";
  26988. t1 = P.StringBuffer__writeAll("", receiver, separator);
  26989. return t1.charCodeAt(0) == 0 ? t1 : t1;
  26990. },
  26991. join$0: function($receiver) {
  26992. return this.join$1($receiver, "");
  26993. },
  26994. where$1: function(receiver, test) {
  26995. return new H.WhereIterable(receiver, test, H.instanceType(receiver)._eval$1("WhereIterable<ListMixin.E>"));
  26996. },
  26997. map$1$1: function(receiver, f, $T) {
  26998. return new H.MappedListIterable(receiver, f, H.instanceType(receiver)._eval$1("@<ListMixin.E>")._bind$1($T)._eval$1("MappedListIterable<1,2>"));
  26999. },
  27000. expand$1$1: function(receiver, f, $T) {
  27001. return new H.ExpandIterable(receiver, f, H.instanceType(receiver)._eval$1("@<ListMixin.E>")._bind$1($T)._eval$1("ExpandIterable<1,2>"));
  27002. },
  27003. skip$1: function(receiver, count) {
  27004. return H.SubListIterable$(receiver, count, null, H.instanceType(receiver)._eval$1("ListMixin.E"));
  27005. },
  27006. take$1: function(receiver, count) {
  27007. return H.SubListIterable$(receiver, 0, count, H.instanceType(receiver)._eval$1("ListMixin.E"));
  27008. },
  27009. toList$1$growable: function(receiver, growable) {
  27010. var result, t2, i, _this = this,
  27011. t1 = H.instanceType(receiver)._eval$1("JSArray<ListMixin.E>");
  27012. if (growable) {
  27013. result = H.setRuntimeTypeInfo([], t1);
  27014. C.JSArray_methods.set$length(result, _this.get$length(receiver));
  27015. } else {
  27016. t2 = new Array(_this.get$length(receiver));
  27017. t2.fixed$length = Array;
  27018. result = H.setRuntimeTypeInfo(t2, t1);
  27019. }
  27020. for (i = 0; i < _this.get$length(receiver); ++i)
  27021. result[i] = _this.$index(receiver, i);
  27022. return result;
  27023. },
  27024. toList$0: function($receiver) {
  27025. return this.toList$1$growable($receiver, true);
  27026. },
  27027. toSet$0: function(receiver) {
  27028. var i,
  27029. result = P.LinkedHashSet_LinkedHashSet(H.instanceType(receiver)._eval$1("ListMixin.E"));
  27030. for (i = 0; i < this.get$length(receiver); ++i)
  27031. result.add$1(0, this.$index(receiver, i));
  27032. return result;
  27033. },
  27034. add$1: function(receiver, element) {
  27035. var t1 = this.get$length(receiver);
  27036. this.set$length(receiver, t1 + 1);
  27037. this.$indexSet(receiver, t1, element);
  27038. },
  27039. addAll$1: function(receiver, iterable) {
  27040. var t1, element, i0,
  27041. i = this.get$length(receiver);
  27042. for (t1 = iterable.get$iterator(iterable); t1.moveNext$0(); i = i0) {
  27043. element = t1.get$current(t1);
  27044. i0 = i + 1;
  27045. this.set$length(receiver, i0);
  27046. this.$indexSet(receiver, i, element);
  27047. }
  27048. },
  27049. cast$1$0: function(receiver, $R) {
  27050. return new H.CastList(receiver, H.instanceType(receiver)._eval$1("@<ListMixin.E>")._bind$1($R)._eval$1("CastList<1,2>"));
  27051. },
  27052. sort$1: function(receiver, compare) {
  27053. H.Sort_sort(receiver, compare == null ? P.collection_ListMixin__compareAny$closure() : compare);
  27054. },
  27055. sublist$2: function(receiver, start, end) {
  27056. var $length, result, i,
  27057. listLength = this.get$length(receiver);
  27058. P.RangeError_checkValidRange(start, end, listLength);
  27059. $length = end - start;
  27060. result = H.setRuntimeTypeInfo([], H.instanceType(receiver)._eval$1("JSArray<ListMixin.E>"));
  27061. C.JSArray_methods.set$length(result, $length);
  27062. for (i = 0; i < $length; ++i)
  27063. result[i] = this.$index(receiver, start + i);
  27064. return result;
  27065. },
  27066. getRange$2: function(receiver, start, end) {
  27067. P.RangeError_checkValidRange(start, end, this.get$length(receiver));
  27068. return H.SubListIterable$(receiver, start, end, H.instanceType(receiver)._eval$1("ListMixin.E"));
  27069. },
  27070. fillRange$3: function(receiver, start, end, fill) {
  27071. var i;
  27072. P.RangeError_checkValidRange(start, end, this.get$length(receiver));
  27073. for (i = start; i < end; ++i)
  27074. this.$indexSet(receiver, i, fill);
  27075. },
  27076. setRange$4: function(receiver, start, end, iterable, skipCount) {
  27077. var $length, otherStart, otherList, t1, i;
  27078. P.RangeError_checkValidRange(start, end, this.get$length(receiver));
  27079. $length = end - start;
  27080. if ($length === 0)
  27081. return;
  27082. P.RangeError_checkNotNegative(skipCount, "skipCount");
  27083. if (H.instanceType(receiver)._eval$1("List<ListMixin.E>")._is(iterable)) {
  27084. otherStart = skipCount;
  27085. otherList = iterable;
  27086. } else {
  27087. otherList = J.skip$1$ax(iterable, skipCount).toList$1$growable(0, false);
  27088. otherStart = 0;
  27089. }
  27090. t1 = J.getInterceptor$asx(otherList);
  27091. if (otherStart + $length > t1.get$length(otherList))
  27092. throw H.wrapException(H.IterableElementError_tooFew());
  27093. if (otherStart < start)
  27094. for (i = $length - 1; i >= 0; --i)
  27095. this.$indexSet(receiver, start + i, t1.$index(otherList, otherStart + i));
  27096. else
  27097. for (i = 0; i < $length; ++i)
  27098. this.$indexSet(receiver, start + i, t1.$index(otherList, otherStart + i));
  27099. },
  27100. get$reversed: function(receiver) {
  27101. return new H.ReversedListIterable(receiver, H.instanceType(receiver)._eval$1("ReversedListIterable<ListMixin.E>"));
  27102. },
  27103. toString$0: function(receiver) {
  27104. return P.IterableBase_iterableToFullString(receiver, "[", "]");
  27105. }
  27106. };
  27107. P.MapBase.prototype = {};
  27108. P.MapBase_mapToString_closure.prototype = {
  27109. call$2: function(k, v) {
  27110. var t2,
  27111. t1 = this._box_0;
  27112. if (!t1.first)
  27113. this.result._contents += ", ";
  27114. t1.first = false;
  27115. t1 = this.result;
  27116. t2 = t1._contents += H.S(k);
  27117. t1._contents = t2 + ": ";
  27118. t1._contents += H.S(v);
  27119. },
  27120. $signature: 38
  27121. };
  27122. P.MapMixin.prototype = {
  27123. forEach$1: function(_, action) {
  27124. var t1, key;
  27125. for (t1 = J.get$iterator$ax(this.get$keys()); t1.moveNext$0();) {
  27126. key = t1.get$current(t1);
  27127. action.call$2(key, this.$index(0, key));
  27128. }
  27129. },
  27130. addAll$1: function(_, other) {
  27131. var t1, key;
  27132. for (t1 = J.get$iterator$ax(other.get$keys()); t1.moveNext$0();) {
  27133. key = t1.get$current(t1);
  27134. this.$indexSet(0, key, other.$index(0, key));
  27135. }
  27136. },
  27137. putIfAbsent$2: function(key, ifAbsent) {
  27138. var t1;
  27139. if (this.containsKey$1(key))
  27140. return this.$index(0, key);
  27141. t1 = ifAbsent.call$0();
  27142. this.$indexSet(0, key, t1);
  27143. return t1;
  27144. },
  27145. get$entries: function() {
  27146. return J.map$1$1$ax(this.get$keys(), new P.MapMixin_entries_closure(this), H._instanceType(this)._eval$1("MapEntry<MapMixin.K,MapMixin.V>"));
  27147. },
  27148. containsKey$1: function(key) {
  27149. return J.contains$1$asx(this.get$keys(), key);
  27150. },
  27151. get$length: function(_) {
  27152. return J.get$length$asx(this.get$keys());
  27153. },
  27154. get$isEmpty: function(_) {
  27155. return J.get$isEmpty$asx(this.get$keys());
  27156. },
  27157. get$isNotEmpty: function(_) {
  27158. return J.get$isNotEmpty$asx(this.get$keys());
  27159. },
  27160. get$values: function() {
  27161. var t1 = H._instanceType(this);
  27162. return new P._MapBaseValueIterable(this, t1._eval$1("@<MapMixin.K>")._bind$1(t1._eval$1("MapMixin.V"))._eval$1("_MapBaseValueIterable<1,2>"));
  27163. },
  27164. toString$0: function(_) {
  27165. return P.MapBase_mapToString(this);
  27166. },
  27167. $isMap: 1
  27168. };
  27169. P.MapMixin_entries_closure.prototype = {
  27170. call$1: function(key) {
  27171. var t1 = this.$this,
  27172. t2 = H._instanceType(t1);
  27173. return new P.MapEntry(key, t1.$index(0, key), t2._eval$1("@<MapMixin.K>")._bind$1(t2._eval$1("MapMixin.V"))._eval$1("MapEntry<1,2>"));
  27174. },
  27175. $signature: function() {
  27176. return H._instanceType(this.$this)._eval$1("MapEntry<MapMixin.K,MapMixin.V>(MapMixin.K)");
  27177. }
  27178. };
  27179. P.UnmodifiableMapBase.prototype = {};
  27180. P._MapBaseValueIterable.prototype = {
  27181. get$length: function(_) {
  27182. var t1 = this._collection$_map;
  27183. return t1.get$length(t1);
  27184. },
  27185. get$isEmpty: function(_) {
  27186. var t1 = this._collection$_map;
  27187. return t1.get$isEmpty(t1);
  27188. },
  27189. get$isNotEmpty: function(_) {
  27190. var t1 = this._collection$_map;
  27191. return t1.get$isNotEmpty(t1);
  27192. },
  27193. get$first: function(_) {
  27194. var t1 = this._collection$_map;
  27195. return t1.$index(0, J.get$first$ax(t1.get$keys()));
  27196. },
  27197. get$single: function(_) {
  27198. var t1 = this._collection$_map;
  27199. return t1.$index(0, J.get$single$ax(t1.get$keys()));
  27200. },
  27201. get$last: function(_) {
  27202. var t1 = this._collection$_map;
  27203. return t1.$index(0, J.get$last$ax(t1.get$keys()));
  27204. },
  27205. get$iterator: function(_) {
  27206. var t1 = this._collection$_map;
  27207. return new P._MapBaseValueIterator(J.get$iterator$ax(t1.get$keys()), t1);
  27208. }
  27209. };
  27210. P._MapBaseValueIterator.prototype = {
  27211. moveNext$0: function() {
  27212. var _this = this,
  27213. t1 = _this._keys;
  27214. if (t1.moveNext$0()) {
  27215. _this._collection$_current = _this._collection$_map.$index(0, t1.get$current(t1));
  27216. return true;
  27217. }
  27218. _this._collection$_current = null;
  27219. return false;
  27220. },
  27221. get$current: function(_) {
  27222. return this._collection$_current;
  27223. }
  27224. };
  27225. P._UnmodifiableMapMixin.prototype = {
  27226. $indexSet: function(_, key, value) {
  27227. throw H.wrapException(P.UnsupportedError$("Cannot modify unmodifiable map"));
  27228. },
  27229. addAll$1: function(_, other) {
  27230. throw H.wrapException(P.UnsupportedError$("Cannot modify unmodifiable map"));
  27231. },
  27232. remove$1: function(_, key) {
  27233. throw H.wrapException(P.UnsupportedError$("Cannot modify unmodifiable map"));
  27234. },
  27235. putIfAbsent$2: function(key, ifAbsent) {
  27236. throw H.wrapException(P.UnsupportedError$("Cannot modify unmodifiable map"));
  27237. }
  27238. };
  27239. P.MapView.prototype = {
  27240. $index: function(_, key) {
  27241. return this._collection$_map.$index(0, key);
  27242. },
  27243. $indexSet: function(_, key, value) {
  27244. this._collection$_map.$indexSet(0, key, value);
  27245. },
  27246. addAll$1: function(_, other) {
  27247. this._collection$_map.addAll$1(0, other);
  27248. },
  27249. putIfAbsent$2: function(key, ifAbsent) {
  27250. return this._collection$_map.putIfAbsent$2(key, ifAbsent);
  27251. },
  27252. containsKey$1: function(key) {
  27253. return this._collection$_map.containsKey$1(key);
  27254. },
  27255. forEach$1: function(_, action) {
  27256. this._collection$_map.forEach$1(0, action);
  27257. },
  27258. get$isEmpty: function(_) {
  27259. var t1 = this._collection$_map;
  27260. return t1.get$isEmpty(t1);
  27261. },
  27262. get$isNotEmpty: function(_) {
  27263. var t1 = this._collection$_map;
  27264. return t1.get$isNotEmpty(t1);
  27265. },
  27266. get$length: function(_) {
  27267. var t1 = this._collection$_map;
  27268. return t1.get$length(t1);
  27269. },
  27270. get$keys: function() {
  27271. return this._collection$_map.get$keys();
  27272. },
  27273. remove$1: function(_, key) {
  27274. return this._collection$_map.remove$1(0, key);
  27275. },
  27276. toString$0: function(_) {
  27277. return J.toString$0$(this._collection$_map);
  27278. },
  27279. get$values: function() {
  27280. return this._collection$_map.get$values();
  27281. },
  27282. get$entries: function() {
  27283. return this._collection$_map.get$entries();
  27284. },
  27285. $isMap: 1
  27286. };
  27287. P.UnmodifiableMapView.prototype = {};
  27288. P.Queue.prototype = {$isEfficientLengthIterable: 1, $isIterable: 1};
  27289. P.ListQueue.prototype = {
  27290. cast$1$0: function(_, $R) {
  27291. return new H.CastQueue(this, this.$ti._eval$1("@<1>")._bind$1($R)._eval$1("CastQueue<1,2>"));
  27292. },
  27293. get$iterator: function(_) {
  27294. var _this = this;
  27295. return new P._ListQueueIterator(_this, _this._collection$_tail, _this._modificationCount, _this._collection$_head);
  27296. },
  27297. get$isEmpty: function(_) {
  27298. return this._collection$_head === this._collection$_tail;
  27299. },
  27300. get$length: function(_) {
  27301. return (this._collection$_tail - this._collection$_head & this._collection$_table.length - 1) >>> 0;
  27302. },
  27303. get$first: function(_) {
  27304. var t1 = this._collection$_head;
  27305. if (t1 === this._collection$_tail)
  27306. throw H.wrapException(H.IterableElementError_noElement());
  27307. return this._collection$_table[t1];
  27308. },
  27309. get$last: function(_) {
  27310. var t1 = this._collection$_head,
  27311. t2 = this._collection$_tail;
  27312. if (t1 === t2)
  27313. throw H.wrapException(H.IterableElementError_noElement());
  27314. t1 = this._collection$_table;
  27315. return t1[(t2 - 1 & t1.length - 1) >>> 0];
  27316. },
  27317. get$single: function(_) {
  27318. var _this = this;
  27319. if (_this._collection$_head === _this._collection$_tail)
  27320. throw H.wrapException(H.IterableElementError_noElement());
  27321. if (_this.get$length(_this) > 1)
  27322. throw H.wrapException(H.IterableElementError_tooMany());
  27323. return _this._collection$_table[_this._collection$_head];
  27324. },
  27325. elementAt$1: function(_, index) {
  27326. var t1;
  27327. P.RangeError_checkValidIndex(index, this, null);
  27328. t1 = this._collection$_table;
  27329. return t1[(this._collection$_head + index & t1.length - 1) >>> 0];
  27330. },
  27331. toList$1$growable: function(_, growable) {
  27332. var list, t2, _this = this,
  27333. t1 = _this.$ti._eval$1("JSArray<1>");
  27334. if (growable) {
  27335. list = H.setRuntimeTypeInfo([], t1);
  27336. C.JSArray_methods.set$length(list, _this.get$length(_this));
  27337. } else {
  27338. t2 = new Array(_this.get$length(_this));
  27339. t2.fixed$length = Array;
  27340. list = H.setRuntimeTypeInfo(t2, t1);
  27341. }
  27342. _this._collection$_writeToList$1(list);
  27343. return list;
  27344. },
  27345. toList$0: function($receiver) {
  27346. return this.toList$1$growable($receiver, true);
  27347. },
  27348. add$1: function(_, value) {
  27349. this._add$1(value);
  27350. },
  27351. addAll$1: function(_, elements) {
  27352. var addCount, $length, t2, t3, t4, newTable, endSpace, preSpace, _this = this,
  27353. t1 = _this.$ti;
  27354. if (t1._eval$1("List<1>")._is(elements)) {
  27355. addCount = J.get$length$asx(elements);
  27356. $length = _this.get$length(_this);
  27357. t2 = $length + addCount;
  27358. t3 = _this._collection$_table;
  27359. t4 = t3.length;
  27360. if (t2 >= t4) {
  27361. t3 = new Array(P.ListQueue__nextPowerOf2(t2 + C.JSInt_methods._shrOtherPositive$1(t2, 1)));
  27362. t3.fixed$length = Array;
  27363. newTable = H.setRuntimeTypeInfo(t3, t1._eval$1("JSArray<1>"));
  27364. _this._collection$_tail = _this._collection$_writeToList$1(newTable);
  27365. _this._collection$_table = newTable;
  27366. _this._collection$_head = 0;
  27367. C.JSArray_methods.setRange$4(newTable, $length, t2, elements, 0);
  27368. _this._collection$_tail += addCount;
  27369. } else {
  27370. t1 = _this._collection$_tail;
  27371. endSpace = t4 - t1;
  27372. if (addCount < endSpace) {
  27373. C.JSArray_methods.setRange$4(t3, t1, t1 + addCount, elements, 0);
  27374. _this._collection$_tail += addCount;
  27375. } else {
  27376. preSpace = addCount - endSpace;
  27377. C.JSArray_methods.setRange$4(t3, t1, t1 + endSpace, elements, 0);
  27378. C.JSArray_methods.setRange$4(_this._collection$_table, 0, preSpace, elements, endSpace);
  27379. _this._collection$_tail = preSpace;
  27380. }
  27381. }
  27382. ++_this._modificationCount;
  27383. } else
  27384. for (t1 = J.get$iterator$ax(elements); t1.moveNext$0();)
  27385. _this._add$1(t1.get$current(t1));
  27386. },
  27387. clear$0: function(_) {
  27388. var t2, t3, _this = this,
  27389. i = _this._collection$_head,
  27390. t1 = _this._collection$_tail;
  27391. if (i !== t1) {
  27392. for (t2 = _this._collection$_table, t3 = t2.length - 1; i !== t1; i = (i + 1 & t3) >>> 0)
  27393. t2[i] = null;
  27394. _this._collection$_head = _this._collection$_tail = 0;
  27395. ++_this._modificationCount;
  27396. }
  27397. },
  27398. toString$0: function(_) {
  27399. return P.IterableBase_iterableToFullString(this, "{", "}");
  27400. },
  27401. addFirst$1: function(value) {
  27402. var _this = this,
  27403. t1 = _this._collection$_head,
  27404. t2 = _this._collection$_table;
  27405. t1 = _this._collection$_head = (t1 - 1 & t2.length - 1) >>> 0;
  27406. t2[t1] = value;
  27407. if (t1 === _this._collection$_tail)
  27408. _this._collection$_grow$0();
  27409. ++_this._modificationCount;
  27410. },
  27411. removeFirst$0: function() {
  27412. var t2, result, _this = this,
  27413. t1 = _this._collection$_head;
  27414. if (t1 === _this._collection$_tail)
  27415. throw H.wrapException(H.IterableElementError_noElement());
  27416. ++_this._modificationCount;
  27417. t2 = _this._collection$_table;
  27418. result = t2[t1];
  27419. t2[t1] = null;
  27420. _this._collection$_head = (t1 + 1 & t2.length - 1) >>> 0;
  27421. return result;
  27422. },
  27423. removeLast$0: function(_) {
  27424. var result, _this = this,
  27425. t1 = _this._collection$_head,
  27426. t2 = _this._collection$_tail;
  27427. if (t1 === t2)
  27428. throw H.wrapException(H.IterableElementError_noElement());
  27429. ++_this._modificationCount;
  27430. t1 = _this._collection$_table;
  27431. t2 = _this._collection$_tail = (t2 - 1 & t1.length - 1) >>> 0;
  27432. result = t1[t2];
  27433. t1[t2] = null;
  27434. return result;
  27435. },
  27436. _add$1: function(element) {
  27437. var _this = this,
  27438. t1 = _this._collection$_table,
  27439. t2 = _this._collection$_tail;
  27440. t1[t2] = element;
  27441. t1 = (t2 + 1 & t1.length - 1) >>> 0;
  27442. _this._collection$_tail = t1;
  27443. if (_this._collection$_head === t1)
  27444. _this._collection$_grow$0();
  27445. ++_this._modificationCount;
  27446. },
  27447. _collection$_grow$0: function() {
  27448. var newTable, t2, split, _this = this,
  27449. t1 = new Array(_this._collection$_table.length * 2);
  27450. t1.fixed$length = Array;
  27451. newTable = H.setRuntimeTypeInfo(t1, _this.$ti._eval$1("JSArray<1>"));
  27452. t1 = _this._collection$_table;
  27453. t2 = _this._collection$_head;
  27454. split = t1.length - t2;
  27455. C.JSArray_methods.setRange$4(newTable, 0, split, t1, t2);
  27456. C.JSArray_methods.setRange$4(newTable, split, split + _this._collection$_head, _this._collection$_table, 0);
  27457. _this._collection$_head = 0;
  27458. _this._collection$_tail = _this._collection$_table.length;
  27459. _this._collection$_table = newTable;
  27460. },
  27461. _collection$_writeToList$1: function(target) {
  27462. var $length, firstPartSize, _this = this,
  27463. t1 = _this._collection$_head,
  27464. t2 = _this._collection$_tail,
  27465. t3 = _this._collection$_table;
  27466. if (t1 <= t2) {
  27467. $length = t2 - t1;
  27468. C.JSArray_methods.setRange$4(target, 0, $length, t3, t1);
  27469. return $length;
  27470. } else {
  27471. firstPartSize = t3.length - t1;
  27472. C.JSArray_methods.setRange$4(target, 0, firstPartSize, t3, t1);
  27473. C.JSArray_methods.setRange$4(target, firstPartSize, firstPartSize + _this._collection$_tail, _this._collection$_table, 0);
  27474. return _this._collection$_tail + firstPartSize;
  27475. }
  27476. },
  27477. $isQueue: 1
  27478. };
  27479. P._ListQueueIterator.prototype = {
  27480. get$current: function(_) {
  27481. return this._collection$_current;
  27482. },
  27483. moveNext$0: function() {
  27484. var t2, _this = this,
  27485. t1 = _this._queue;
  27486. if (_this._modificationCount !== t1._modificationCount)
  27487. H.throwExpression(P.ConcurrentModificationError$(t1));
  27488. t2 = _this._collection$_position;
  27489. if (t2 === _this._collection$_end) {
  27490. _this._collection$_current = null;
  27491. return false;
  27492. }
  27493. t1 = t1._collection$_table;
  27494. _this._collection$_current = t1[t2];
  27495. _this._collection$_position = (t2 + 1 & t1.length - 1) >>> 0;
  27496. return true;
  27497. }
  27498. };
  27499. P._SetBase.prototype = {
  27500. cast$1$0: function(_, $R) {
  27501. return P.Set_castFrom(this, this.get$_newSimilarSet(), H._instanceType(this)._precomputed1, $R);
  27502. },
  27503. difference$1: function(other) {
  27504. var t1, element,
  27505. result = this._newSet$0();
  27506. for (t1 = this.get$iterator(this); t1.moveNext$0();) {
  27507. element = t1.get$current(t1);
  27508. if (!other.contains$1(0, element))
  27509. result.add$1(0, element);
  27510. }
  27511. return result;
  27512. },
  27513. intersection$1: function(other) {
  27514. var t1, t2, element,
  27515. result = this._newSet$0();
  27516. for (t1 = this.get$iterator(this), t2 = other._baseMap; t1.moveNext$0();) {
  27517. element = t1.get$current(t1);
  27518. if (t2.containsKey$1(element))
  27519. result.add$1(0, element);
  27520. }
  27521. return result;
  27522. },
  27523. toSet$0: function(_) {
  27524. var t1 = this._newSet$0();
  27525. t1.addAll$1(0, this);
  27526. return t1;
  27527. },
  27528. get$isEmpty: function(_) {
  27529. return this.get$length(this) === 0;
  27530. },
  27531. get$isNotEmpty: function(_) {
  27532. return this.get$length(this) !== 0;
  27533. },
  27534. addAll$1: function(_, elements) {
  27535. var t1;
  27536. for (t1 = J.get$iterator$ax(elements); t1.moveNext$0();)
  27537. this.add$1(0, t1.get$current(t1));
  27538. },
  27539. removeAll$1: function(elements) {
  27540. var t1;
  27541. for (t1 = J.get$iterator$ax(elements); t1.moveNext$0();)
  27542. this.remove$1(0, t1.get$current(t1));
  27543. },
  27544. toList$1$growable: function(_, growable) {
  27545. var result, t2, i, i0, _this = this,
  27546. t1 = H._instanceType(_this)._eval$1("JSArray<1>");
  27547. if (growable) {
  27548. result = H.setRuntimeTypeInfo([], t1);
  27549. C.JSArray_methods.set$length(result, _this.get$length(_this));
  27550. } else {
  27551. t2 = new Array(_this.get$length(_this));
  27552. t2.fixed$length = Array;
  27553. result = H.setRuntimeTypeInfo(t2, t1);
  27554. }
  27555. for (t1 = _this.get$iterator(_this), i = 0; t1.moveNext$0(); i = i0) {
  27556. i0 = i + 1;
  27557. result[i] = t1.get$current(t1);
  27558. }
  27559. return result;
  27560. },
  27561. toList$0: function($receiver) {
  27562. return this.toList$1$growable($receiver, true);
  27563. },
  27564. map$1$1: function(_, f, $T) {
  27565. return new H.EfficientLengthMappedIterable(this, f, H._instanceType(this)._eval$1("@<1>")._bind$1($T)._eval$1("EfficientLengthMappedIterable<1,2>"));
  27566. },
  27567. get$single: function(_) {
  27568. var it, _this = this;
  27569. if (_this.get$length(_this) > 1)
  27570. throw H.wrapException(H.IterableElementError_tooMany());
  27571. it = _this.get$iterator(_this);
  27572. if (!it.moveNext$0())
  27573. throw H.wrapException(H.IterableElementError_noElement());
  27574. return it.get$current(it);
  27575. },
  27576. toString$0: function(_) {
  27577. return P.IterableBase_iterableToFullString(this, "{", "}");
  27578. },
  27579. where$1: function(_, f) {
  27580. return new H.WhereIterable(this, f, H._instanceType(this)._eval$1("WhereIterable<1>"));
  27581. },
  27582. join$1: function(_, separator) {
  27583. var t1,
  27584. iterator = this.get$iterator(this);
  27585. if (!iterator.moveNext$0())
  27586. return "";
  27587. if (separator === "") {
  27588. t1 = "";
  27589. do
  27590. t1 += H.S(iterator.get$current(iterator));
  27591. while (iterator.moveNext$0());
  27592. } else {
  27593. t1 = H.S(iterator.get$current(iterator));
  27594. for (; iterator.moveNext$0();)
  27595. t1 = t1 + separator + H.S(iterator.get$current(iterator));
  27596. }
  27597. return t1.charCodeAt(0) == 0 ? t1 : t1;
  27598. },
  27599. join$0: function($receiver) {
  27600. return this.join$1($receiver, "");
  27601. },
  27602. any$1: function(_, test) {
  27603. var t1;
  27604. for (t1 = this.get$iterator(this); t1.moveNext$0();)
  27605. if (test.call$1(t1.get$current(t1)))
  27606. return true;
  27607. return false;
  27608. },
  27609. take$1: function(_, n) {
  27610. return H.TakeIterable_TakeIterable(this, n, H._instanceType(this)._precomputed1);
  27611. },
  27612. skip$1: function(_, n) {
  27613. return H.SkipIterable_SkipIterable(this, n, H._instanceType(this)._precomputed1);
  27614. },
  27615. get$first: function(_) {
  27616. var it = this.get$iterator(this);
  27617. if (!it.moveNext$0())
  27618. throw H.wrapException(H.IterableElementError_noElement());
  27619. return it.get$current(it);
  27620. },
  27621. get$last: function(_) {
  27622. var result,
  27623. it = this.get$iterator(this);
  27624. if (!it.moveNext$0())
  27625. throw H.wrapException(H.IterableElementError_noElement());
  27626. do
  27627. result = it.get$current(it);
  27628. while (it.moveNext$0());
  27629. return result;
  27630. },
  27631. elementAt$1: function(_, index) {
  27632. var t1, elementIndex, element, _s5_ = "index";
  27633. P.ArgumentError_checkNotNull(index, _s5_);
  27634. P.RangeError_checkNotNegative(index, _s5_);
  27635. for (t1 = this.get$iterator(this), elementIndex = 0; t1.moveNext$0();) {
  27636. element = t1.get$current(t1);
  27637. if (index === elementIndex)
  27638. return element;
  27639. ++elementIndex;
  27640. }
  27641. throw H.wrapException(P.IndexError$(index, this, _s5_, null, elementIndex));
  27642. },
  27643. $isEfficientLengthIterable: 1,
  27644. $isIterable: 1,
  27645. $isSet: 1
  27646. };
  27647. P._UnmodifiableSet.prototype = {
  27648. _newSet$0: function() {
  27649. return P.LinkedHashSet_LinkedHashSet(this.$ti._precomputed1);
  27650. },
  27651. _newSimilarSet$1$0: function($R) {
  27652. return P.LinkedHashSet_LinkedHashSet($R);
  27653. },
  27654. _newSimilarSet$0: function() {
  27655. return this._newSimilarSet$1$0(type$.dynamic);
  27656. },
  27657. contains$1: function(_, element) {
  27658. return this._collection$_map.containsKey$1(element);
  27659. },
  27660. get$iterator: function(_) {
  27661. return J.get$iterator$ax(this._collection$_map.get$keys());
  27662. },
  27663. get$length: function(_) {
  27664. var t1 = this._collection$_map;
  27665. return t1.get$length(t1);
  27666. },
  27667. add$1: function(_, value) {
  27668. throw H.wrapException(P.UnsupportedError$("Cannot change unmodifiable set"));
  27669. },
  27670. addAll$1: function(_, elements) {
  27671. throw H.wrapException(P.UnsupportedError$("Cannot change unmodifiable set"));
  27672. },
  27673. remove$1: function(_, value) {
  27674. throw H.wrapException(P.UnsupportedError$("Cannot change unmodifiable set"));
  27675. }
  27676. };
  27677. P._ListBase_Object_ListMixin.prototype = {};
  27678. P._UnmodifiableMapView_MapView__UnmodifiableMapMixin.prototype = {};
  27679. P.AsciiCodec.prototype = {
  27680. encode$1: function(source) {
  27681. return C.AsciiEncoder_127.convert$1(source);
  27682. },
  27683. get$encoder: function() {
  27684. return C.AsciiEncoder_127;
  27685. }
  27686. };
  27687. P._UnicodeSubsetEncoder.prototype = {
  27688. convert$1: function(string) {
  27689. var t1, t2, i, codeUnit,
  27690. $length = P.RangeError_checkValidRange(0, null, string.length) - 0,
  27691. result = new Uint8Array($length);
  27692. for (t1 = ~this._subsetMask, t2 = J.getInterceptor$s(string), i = 0; i < $length; ++i) {
  27693. codeUnit = t2._codeUnitAt$1(string, i);
  27694. if ((codeUnit & t1) !== 0)
  27695. throw H.wrapException(P.ArgumentError$value(string, "string", "Contains invalid characters."));
  27696. result[i] = codeUnit;
  27697. }
  27698. return result;
  27699. }
  27700. };
  27701. P.AsciiEncoder.prototype = {};
  27702. P.Base64Codec.prototype = {
  27703. get$encoder: function() {
  27704. return C.C_Base64Encoder;
  27705. },
  27706. normalize$3: function(source, start, end) {
  27707. var inverseAlphabet, i, sliceStart, buffer, firstPadding, firstPaddingSourceIndex, paddingCount, i0, char, i1, digit1, digit2, char0, value, t1, t2, endLength, $length,
  27708. _s31_ = "Invalid base64 encoding length ";
  27709. end = P.RangeError_checkValidRange(start, end, source.length);
  27710. inverseAlphabet = $.$get$_Base64Decoder__inverseAlphabet();
  27711. for (i = start, sliceStart = i, buffer = null, firstPadding = -1, firstPaddingSourceIndex = -1, paddingCount = 0; i < end; i = i0) {
  27712. i0 = i + 1;
  27713. char = C.JSString_methods._codeUnitAt$1(source, i);
  27714. if (char === 37) {
  27715. i1 = i0 + 2;
  27716. if (i1 <= end) {
  27717. digit1 = H.hexDigitValue(C.JSString_methods._codeUnitAt$1(source, i0));
  27718. digit2 = H.hexDigitValue(C.JSString_methods._codeUnitAt$1(source, i0 + 1));
  27719. char0 = digit1 * 16 + digit2 - (digit2 & 256);
  27720. if (char0 === 37)
  27721. char0 = -1;
  27722. i0 = i1;
  27723. } else
  27724. char0 = -1;
  27725. } else
  27726. char0 = char;
  27727. if (0 <= char0 && char0 <= 127) {
  27728. value = inverseAlphabet[char0];
  27729. if (value >= 0) {
  27730. char0 = C.JSString_methods.codeUnitAt$1("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", value);
  27731. if (char0 === char)
  27732. continue;
  27733. char = char0;
  27734. } else {
  27735. if (value === -1) {
  27736. if (firstPadding < 0) {
  27737. t1 = buffer == null ? null : buffer._contents.length;
  27738. if (t1 == null)
  27739. t1 = 0;
  27740. firstPadding = t1 + (i - sliceStart);
  27741. firstPaddingSourceIndex = i;
  27742. }
  27743. ++paddingCount;
  27744. if (char === 61)
  27745. continue;
  27746. }
  27747. char = char0;
  27748. }
  27749. if (value !== -2) {
  27750. if (buffer == null)
  27751. buffer = new P.StringBuffer("");
  27752. buffer._contents += C.JSString_methods.substring$2(source, sliceStart, i);
  27753. buffer._contents += H.Primitives_stringFromCharCode(char);
  27754. sliceStart = i0;
  27755. continue;
  27756. }
  27757. }
  27758. throw H.wrapException(P.FormatException$("Invalid base64 data", source, i));
  27759. }
  27760. if (buffer != null) {
  27761. t1 = buffer._contents += C.JSString_methods.substring$2(source, sliceStart, end);
  27762. t2 = t1.length;
  27763. if (firstPadding >= 0)
  27764. P.Base64Codec__checkPadding(source, firstPaddingSourceIndex, end, firstPadding, paddingCount, t2);
  27765. else {
  27766. endLength = C.JSInt_methods.$mod(t2 - 1, 4) + 1;
  27767. if (endLength === 1)
  27768. throw H.wrapException(P.FormatException$(_s31_, source, end));
  27769. for (; endLength < 4;) {
  27770. t1 += "=";
  27771. buffer._contents = t1;
  27772. ++endLength;
  27773. }
  27774. }
  27775. t1 = buffer._contents;
  27776. return C.JSString_methods.replaceRange$3(source, start, end, t1.charCodeAt(0) == 0 ? t1 : t1);
  27777. }
  27778. $length = end - start;
  27779. if (firstPadding >= 0)
  27780. P.Base64Codec__checkPadding(source, firstPaddingSourceIndex, end, firstPadding, paddingCount, $length);
  27781. else {
  27782. endLength = C.JSInt_methods.$mod($length, 4);
  27783. if (endLength === 1)
  27784. throw H.wrapException(P.FormatException$(_s31_, source, end));
  27785. if (endLength > 1)
  27786. source = C.JSString_methods.replaceRange$3(source, end, end, endLength === 2 ? "==" : "=");
  27787. }
  27788. return source;
  27789. }
  27790. };
  27791. P.Base64Encoder.prototype = {
  27792. convert$1: function(input) {
  27793. var t1 = J.getInterceptor$asx(input);
  27794. if (t1.get$isEmpty(input))
  27795. return "";
  27796. return P.String_String$fromCharCodes(new P._Base64Encoder("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/").encode$4(input, 0, t1.get$length(input), true), 0, null);
  27797. },
  27798. startChunkedConversion$1: function(sink) {
  27799. var t1,
  27800. _s64_ = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
  27801. if (type$.StringConversionSink._is(sink)) {
  27802. t1 = sink.asUtf8Sink$1(false);
  27803. return new P._Utf8Base64EncoderSink(t1, new P._Base64Encoder(_s64_));
  27804. }
  27805. return new P._AsciiBase64EncoderSink(sink, new P._BufferCachingBase64Encoder(_s64_));
  27806. }
  27807. };
  27808. P._Base64Encoder.prototype = {
  27809. createBuffer$1: function(bufferLength) {
  27810. return new Uint8Array(bufferLength);
  27811. },
  27812. encode$4: function(bytes, start, end, isLast) {
  27813. var output, _this = this,
  27814. byteCount = (_this._convert$_state & 3) + (end - start),
  27815. fullChunks = C.JSInt_methods._tdivFast$1(byteCount, 3),
  27816. bufferLength = fullChunks * 4;
  27817. if (isLast && byteCount - fullChunks * 3 > 0)
  27818. bufferLength += 4;
  27819. output = _this.createBuffer$1(bufferLength);
  27820. _this._convert$_state = P._Base64Encoder_encodeChunk(_this._alphabet, bytes, start, end, isLast, output, 0, _this._convert$_state);
  27821. if (bufferLength > 0)
  27822. return output;
  27823. return null;
  27824. }
  27825. };
  27826. P._BufferCachingBase64Encoder.prototype = {
  27827. createBuffer$1: function(bufferLength) {
  27828. var t1 = this.bufferCache;
  27829. if (t1 == null || t1.length < bufferLength)
  27830. t1 = this.bufferCache = new Uint8Array(bufferLength);
  27831. return H.NativeUint8List_NativeUint8List$view(t1.buffer, t1.byteOffset, bufferLength);
  27832. }
  27833. };
  27834. P._Base64EncoderSink.prototype = {
  27835. add$1: function(_, source) {
  27836. this._convert$_add$4(source, 0, J.get$length$asx(source), false);
  27837. },
  27838. close$0: function(_) {
  27839. this._convert$_add$4(null, 0, 0, true);
  27840. },
  27841. addSlice$4: function(source, start, end, isLast) {
  27842. P.RangeError_checkValidRange(start, end, source.length);
  27843. this._convert$_add$4(source, start, end, isLast);
  27844. }
  27845. };
  27846. P._AsciiBase64EncoderSink.prototype = {
  27847. _convert$_add$4: function(source, start, end, isLast) {
  27848. var buffer = this._encoder.encode$4(source, start, end, isLast);
  27849. if (buffer != null)
  27850. this._sink.add$1(0, P.String_String$fromCharCodes(buffer, 0, null));
  27851. if (isLast)
  27852. this._sink.close$0(0);
  27853. }
  27854. };
  27855. P._Utf8Base64EncoderSink.prototype = {
  27856. _convert$_add$4: function(source, start, end, isLast) {
  27857. var buffer = this._encoder.encode$4(source, start, end, isLast);
  27858. if (buffer != null)
  27859. this._sink.addSlice$4(buffer, 0, buffer.length, isLast);
  27860. }
  27861. };
  27862. P.ByteConversionSink.prototype = {};
  27863. P.ByteConversionSinkBase.prototype = {};
  27864. P.ChunkedConversionSink.prototype = {};
  27865. P.Codec.prototype = {
  27866. encode$1: function(input) {
  27867. return this.get$encoder().convert$1(input);
  27868. }
  27869. };
  27870. P.Converter.prototype = {};
  27871. P.Encoding.prototype = {};
  27872. P.JsonUnsupportedObjectError.prototype = {
  27873. toString$0: function(_) {
  27874. var safeString = P.Error_safeToString(this.unsupportedObject);
  27875. return (this.cause != null ? "Converting object to an encodable object failed:" : "Converting object did not return an encodable object:") + " " + safeString;
  27876. }
  27877. };
  27878. P.JsonCyclicError.prototype = {
  27879. toString$0: function(_) {
  27880. return "Cyclic error in JSON stringify";
  27881. }
  27882. };
  27883. P.JsonCodec.prototype = {
  27884. encode$2$toEncodable: function(value, toEncodable) {
  27885. var t1 = P._JsonStringStringifier_stringify(value, this.get$encoder()._toEncodable, null);
  27886. return t1;
  27887. },
  27888. get$encoder: function() {
  27889. return C.JsonEncoder_null;
  27890. }
  27891. };
  27892. P.JsonEncoder.prototype = {
  27893. convert$1: function(object) {
  27894. var t1,
  27895. output = new P.StringBuffer("");
  27896. P._JsonStringStringifier_printOn(object, output, this._toEncodable, null);
  27897. t1 = output._contents;
  27898. return t1.charCodeAt(0) == 0 ? t1 : t1;
  27899. }
  27900. };
  27901. P._JsonStringifier.prototype = {
  27902. writeStringContent$1: function(s) {
  27903. var t1, offset, i, charCode, t2, _this = this,
  27904. $length = s.length;
  27905. for (t1 = J.getInterceptor$s(s), offset = 0, i = 0; i < $length; ++i) {
  27906. charCode = t1._codeUnitAt$1(s, i);
  27907. if (charCode > 92)
  27908. continue;
  27909. if (charCode < 32) {
  27910. if (i > offset)
  27911. _this.writeStringSlice$3(s, offset, i);
  27912. offset = i + 1;
  27913. _this.writeCharCode$1(92);
  27914. switch (charCode) {
  27915. case 8:
  27916. _this.writeCharCode$1(98);
  27917. break;
  27918. case 9:
  27919. _this.writeCharCode$1(116);
  27920. break;
  27921. case 10:
  27922. _this.writeCharCode$1(110);
  27923. break;
  27924. case 12:
  27925. _this.writeCharCode$1(102);
  27926. break;
  27927. case 13:
  27928. _this.writeCharCode$1(114);
  27929. break;
  27930. default:
  27931. _this.writeCharCode$1(117);
  27932. _this.writeCharCode$1(48);
  27933. _this.writeCharCode$1(48);
  27934. t2 = charCode >>> 4 & 15;
  27935. _this.writeCharCode$1(t2 < 10 ? 48 + t2 : 87 + t2);
  27936. t2 = charCode & 15;
  27937. _this.writeCharCode$1(t2 < 10 ? 48 + t2 : 87 + t2);
  27938. break;
  27939. }
  27940. } else if (charCode === 34 || charCode === 92) {
  27941. if (i > offset)
  27942. _this.writeStringSlice$3(s, offset, i);
  27943. offset = i + 1;
  27944. _this.writeCharCode$1(92);
  27945. _this.writeCharCode$1(charCode);
  27946. }
  27947. }
  27948. if (offset === 0)
  27949. _this.writeString$1(s);
  27950. else if (offset < $length)
  27951. _this.writeStringSlice$3(s, offset, $length);
  27952. },
  27953. _checkCycle$1: function(object) {
  27954. var t1, t2, i, t3;
  27955. for (t1 = this._seen, t2 = t1.length, i = 0; i < t2; ++i) {
  27956. t3 = t1[i];
  27957. if (object == null ? t3 == null : object === t3)
  27958. throw H.wrapException(new P.JsonCyclicError(object, null));
  27959. }
  27960. t1.push(object);
  27961. },
  27962. writeObject$1: function(object) {
  27963. var customJson, e, t1, exception, _this = this;
  27964. if (_this.writeJsonValue$1(object))
  27965. return;
  27966. _this._checkCycle$1(object);
  27967. try {
  27968. customJson = _this._toEncodable.call$1(object);
  27969. if (!_this.writeJsonValue$1(customJson)) {
  27970. t1 = P.JsonUnsupportedObjectError$(object, null, _this.get$_partialResult());
  27971. throw H.wrapException(t1);
  27972. }
  27973. _this._seen.pop();
  27974. } catch (exception) {
  27975. e = H.unwrapException(exception);
  27976. t1 = P.JsonUnsupportedObjectError$(object, e, _this.get$_partialResult());
  27977. throw H.wrapException(t1);
  27978. }
  27979. },
  27980. writeJsonValue$1: function(object) {
  27981. var success, _this = this;
  27982. if (typeof object == "number") {
  27983. if (!isFinite(object))
  27984. return false;
  27985. _this.writeNumber$1(object);
  27986. return true;
  27987. } else if (object === true) {
  27988. _this.writeString$1("true");
  27989. return true;
  27990. } else if (object === false) {
  27991. _this.writeString$1("false");
  27992. return true;
  27993. } else if (object == null) {
  27994. _this.writeString$1("null");
  27995. return true;
  27996. } else if (typeof object == "string") {
  27997. _this.writeString$1('"');
  27998. _this.writeStringContent$1(object);
  27999. _this.writeString$1('"');
  28000. return true;
  28001. } else if (type$.List_dynamic._is(object)) {
  28002. _this._checkCycle$1(object);
  28003. _this.writeList$1(object);
  28004. _this._seen.pop();
  28005. return true;
  28006. } else if (type$.Map_dynamic_dynamic._is(object)) {
  28007. _this._checkCycle$1(object);
  28008. success = _this.writeMap$1(object);
  28009. _this._seen.pop();
  28010. return success;
  28011. } else
  28012. return false;
  28013. },
  28014. writeList$1: function(list) {
  28015. var t1, i, _this = this;
  28016. _this.writeString$1("[");
  28017. t1 = J.getInterceptor$asx(list);
  28018. if (t1.get$isNotEmpty(list)) {
  28019. _this.writeObject$1(t1.$index(list, 0));
  28020. for (i = 1; i < t1.get$length(list); ++i) {
  28021. _this.writeString$1(",");
  28022. _this.writeObject$1(t1.$index(list, i));
  28023. }
  28024. }
  28025. _this.writeString$1("]");
  28026. },
  28027. writeMap$1: function(map) {
  28028. var t1, keyValueList, i, separator, _this = this, _box_0 = {};
  28029. if (map.get$isEmpty(map)) {
  28030. _this.writeString$1("{}");
  28031. return true;
  28032. }
  28033. t1 = map.get$length(map) * 2;
  28034. keyValueList = new Array(t1);
  28035. keyValueList.fixed$length = Array;
  28036. i = _box_0.i = 0;
  28037. _box_0.allStringKeys = true;
  28038. map.forEach$1(0, new P._JsonStringifier_writeMap_closure(_box_0, keyValueList));
  28039. if (!_box_0.allStringKeys)
  28040. return false;
  28041. _this.writeString$1("{");
  28042. for (separator = '"'; i < t1; i += 2, separator = ',"') {
  28043. _this.writeString$1(separator);
  28044. _this.writeStringContent$1(keyValueList[i]);
  28045. _this.writeString$1('":');
  28046. _this.writeObject$1(keyValueList[i + 1]);
  28047. }
  28048. _this.writeString$1("}");
  28049. return true;
  28050. }
  28051. };
  28052. P._JsonStringifier_writeMap_closure.prototype = {
  28053. call$2: function(key, value) {
  28054. var t1, t2, t3, i;
  28055. if (typeof key != "string")
  28056. this._box_0.allStringKeys = false;
  28057. t1 = this.keyValueList;
  28058. t2 = this._box_0;
  28059. t3 = t2.i;
  28060. i = t2.i = t3 + 1;
  28061. t1[t3] = key;
  28062. t2.i = i + 1;
  28063. t1[i] = value;
  28064. },
  28065. $signature: 38
  28066. };
  28067. P._JsonStringStringifier.prototype = {
  28068. get$_partialResult: function() {
  28069. var t1 = this._sink;
  28070. return type$.StringBuffer._is(t1) ? t1.toString$0(0) : null;
  28071. },
  28072. writeNumber$1: function(number) {
  28073. this._sink.write$1(0, C.JSNumber_methods.toString$0(number));
  28074. },
  28075. writeString$1: function(string) {
  28076. this._sink.write$1(0, string);
  28077. },
  28078. writeStringSlice$3: function(string, start, end) {
  28079. this._sink.write$1(0, C.JSString_methods.substring$2(string, start, end));
  28080. },
  28081. writeCharCode$1: function(charCode) {
  28082. this._sink.writeCharCode$1(charCode);
  28083. }
  28084. };
  28085. P.StringConversionSinkBase.prototype = {};
  28086. P.StringConversionSinkMixin.prototype = {
  28087. add$1: function(_, str) {
  28088. this.addSlice$4(str, 0, str.length, false);
  28089. },
  28090. asUtf8Sink$1: function(allowMalformed) {
  28091. var t1 = new P.StringBuffer("");
  28092. return new P._Utf8ConversionSink(new P._Utf8Decoder(false, t1), this, t1);
  28093. },
  28094. $isStringConversionSink: 1
  28095. };
  28096. P._StringSinkConversionSink.prototype = {
  28097. close$0: function(_) {
  28098. },
  28099. addSlice$4: function(str, start, end, isLast) {
  28100. var t1, t2, i;
  28101. if (start !== 0 || end !== str.length)
  28102. for (t1 = this._stringSink, t2 = J.getInterceptor$s(str), i = start; i < end; ++i)
  28103. t1._contents += H.Primitives_stringFromCharCode(t2._codeUnitAt$1(str, i));
  28104. else
  28105. this._stringSink._contents += H.S(str);
  28106. if (isLast)
  28107. this.close$0(0);
  28108. },
  28109. add$1: function(_, str) {
  28110. this._stringSink._contents += H.S(str);
  28111. },
  28112. asUtf8Sink$1: function(allowMalformed) {
  28113. return new P._Utf8StringSinkAdapter(new P._Utf8Decoder(false, this._stringSink), this);
  28114. }
  28115. };
  28116. P._StringCallbackSink.prototype = {
  28117. close$0: function(_) {
  28118. var t1 = this._stringSink,
  28119. t2 = t1._contents;
  28120. t1._contents = "";
  28121. this._convert$_callback.call$1(t2.charCodeAt(0) == 0 ? t2 : t2);
  28122. },
  28123. asUtf8Sink$1: function(allowMalformed) {
  28124. return new P._Utf8StringSinkAdapter(new P._Utf8Decoder(false, this._stringSink), this);
  28125. }
  28126. };
  28127. P._StringAdapterSink.prototype = {
  28128. add$1: function(_, str) {
  28129. this._sink.add$1(0, str);
  28130. },
  28131. addSlice$4: function(str, start, end, isLast) {
  28132. var t1 = start === 0 && end === str.length,
  28133. t2 = this._sink;
  28134. if (t1)
  28135. t2.add$1(0, str);
  28136. else
  28137. t2.add$1(0, J.substring$2$s(str, start, end));
  28138. if (isLast)
  28139. t2.close$0(0);
  28140. },
  28141. close$0: function(_) {
  28142. this._sink.close$0(0);
  28143. }
  28144. };
  28145. P._Utf8StringSinkAdapter.prototype = {
  28146. close$0: function(_) {
  28147. this._decoder.flush$0();
  28148. this._sink.close$0(0);
  28149. },
  28150. add$1: function(_, chunk) {
  28151. this._decoder.convert$3(chunk, 0, J.get$length$asx(chunk));
  28152. },
  28153. addSlice$4: function(codeUnits, startIndex, endIndex, isLast) {
  28154. this._decoder.convert$3(codeUnits, startIndex, endIndex);
  28155. if (isLast)
  28156. this.close$0(0);
  28157. }
  28158. };
  28159. P._Utf8ConversionSink.prototype = {
  28160. close$0: function(_) {
  28161. var t1, t2, t3, accumulated;
  28162. this._decoder.flush$0();
  28163. t1 = this._convert$_buffer;
  28164. t2 = t1._contents;
  28165. t3 = this._chunkedSink;
  28166. if (t2.length !== 0) {
  28167. accumulated = t2.charCodeAt(0) == 0 ? t2 : t2;
  28168. t1._contents = "";
  28169. t3.addSlice$4(accumulated, 0, accumulated.length, true);
  28170. } else
  28171. t3.close$0(0);
  28172. },
  28173. add$1: function(_, chunk) {
  28174. this.addSlice$4(chunk, 0, J.get$length$asx(chunk), false);
  28175. },
  28176. addSlice$4: function(chunk, startIndex, endIndex, isLast) {
  28177. var t1, t2, accumulated, _this = this;
  28178. _this._decoder.convert$3(chunk, startIndex, endIndex);
  28179. t1 = _this._convert$_buffer;
  28180. t2 = t1._contents;
  28181. if (t2.length !== 0) {
  28182. accumulated = t2.charCodeAt(0) == 0 ? t2 : t2;
  28183. _this._chunkedSink.addSlice$4(accumulated, 0, accumulated.length, isLast);
  28184. t1._contents = "";
  28185. return;
  28186. }
  28187. if (isLast)
  28188. _this.close$0(0);
  28189. }
  28190. };
  28191. P.Utf8Codec.prototype = {
  28192. get$encoder: function() {
  28193. return C.C_Utf8Encoder;
  28194. }
  28195. };
  28196. P.Utf8Encoder.prototype = {
  28197. convert$1: function(string) {
  28198. var t1, encoder,
  28199. end = P.RangeError_checkValidRange(0, null, string.length),
  28200. $length = end - 0;
  28201. if ($length === 0)
  28202. return new Uint8Array(0);
  28203. t1 = new Uint8Array($length * 3);
  28204. encoder = new P._Utf8Encoder(t1);
  28205. if (encoder._fillBuffer$3(string, 0, end) !== end)
  28206. encoder._writeSurrogate$2(J.codeUnitAt$1$s(string, end - 1), 0);
  28207. return C.NativeUint8List_methods.sublist$2(t1, 0, encoder._bufferIndex);
  28208. }
  28209. };
  28210. P._Utf8Encoder.prototype = {
  28211. _writeSurrogate$2: function(leadingSurrogate, nextCodeUnit) {
  28212. var rune, _this = this,
  28213. t1 = _this._convert$_buffer,
  28214. t2 = _this._bufferIndex,
  28215. t3 = t2 + 1;
  28216. if ((nextCodeUnit & 64512) === 56320) {
  28217. rune = 65536 + ((leadingSurrogate & 1023) << 10) | nextCodeUnit & 1023;
  28218. _this._bufferIndex = t3;
  28219. t1[t2] = 240 | rune >>> 18;
  28220. t2 = _this._bufferIndex = t3 + 1;
  28221. t1[t3] = 128 | rune >>> 12 & 63;
  28222. t3 = _this._bufferIndex = t2 + 1;
  28223. t1[t2] = 128 | rune >>> 6 & 63;
  28224. _this._bufferIndex = t3 + 1;
  28225. t1[t3] = 128 | rune & 63;
  28226. return true;
  28227. } else {
  28228. _this._bufferIndex = t3;
  28229. t1[t2] = 224 | leadingSurrogate >>> 12;
  28230. t2 = _this._bufferIndex = t3 + 1;
  28231. t1[t3] = 128 | leadingSurrogate >>> 6 & 63;
  28232. _this._bufferIndex = t2 + 1;
  28233. t1[t2] = 128 | leadingSurrogate & 63;
  28234. return false;
  28235. }
  28236. },
  28237. _fillBuffer$3: function(str, start, end) {
  28238. var t1, t2, t3, stringIndex, codeUnit, t4, stringIndex0, t5, _this = this;
  28239. if (start !== end && (J.codeUnitAt$1$s(str, end - 1) & 64512) === 55296)
  28240. --end;
  28241. for (t1 = _this._convert$_buffer, t2 = t1.length, t3 = J.getInterceptor$s(str), stringIndex = start; stringIndex < end; ++stringIndex) {
  28242. codeUnit = t3._codeUnitAt$1(str, stringIndex);
  28243. if (codeUnit <= 127) {
  28244. t4 = _this._bufferIndex;
  28245. if (t4 >= t2)
  28246. break;
  28247. _this._bufferIndex = t4 + 1;
  28248. t1[t4] = codeUnit;
  28249. } else if ((codeUnit & 64512) === 55296) {
  28250. if (_this._bufferIndex + 3 >= t2)
  28251. break;
  28252. stringIndex0 = stringIndex + 1;
  28253. if (_this._writeSurrogate$2(codeUnit, C.JSString_methods._codeUnitAt$1(str, stringIndex0)))
  28254. stringIndex = stringIndex0;
  28255. } else if (codeUnit <= 2047) {
  28256. t4 = _this._bufferIndex;
  28257. t5 = t4 + 1;
  28258. if (t5 >= t2)
  28259. break;
  28260. _this._bufferIndex = t5;
  28261. t1[t4] = 192 | codeUnit >>> 6;
  28262. _this._bufferIndex = t5 + 1;
  28263. t1[t5] = 128 | codeUnit & 63;
  28264. } else {
  28265. t4 = _this._bufferIndex;
  28266. if (t4 + 2 >= t2)
  28267. break;
  28268. t5 = _this._bufferIndex = t4 + 1;
  28269. t1[t4] = 224 | codeUnit >>> 12;
  28270. t4 = _this._bufferIndex = t5 + 1;
  28271. t1[t5] = 128 | codeUnit >>> 6 & 63;
  28272. _this._bufferIndex = t4 + 1;
  28273. t1[t4] = 128 | codeUnit & 63;
  28274. }
  28275. }
  28276. return stringIndex;
  28277. }
  28278. };
  28279. P.Utf8Decoder.prototype = {
  28280. convert$1: function(codeUnits) {
  28281. var end, oneBytes, firstPart, buffer, start, isFirstCharacter, decoder, t1,
  28282. result = P.Utf8Decoder__convertIntercepted(false, codeUnits, 0, null);
  28283. if (result != null)
  28284. return result;
  28285. end = P.RangeError_checkValidRange(0, null, J.get$length$asx(codeUnits));
  28286. oneBytes = P._scanOneByteCharacters(codeUnits, 0, end);
  28287. if (oneBytes > 0) {
  28288. firstPart = P.String_String$fromCharCodes(codeUnits, 0, oneBytes);
  28289. if (oneBytes === end)
  28290. return firstPart;
  28291. buffer = new P.StringBuffer(firstPart);
  28292. start = oneBytes;
  28293. isFirstCharacter = false;
  28294. } else {
  28295. start = 0;
  28296. buffer = null;
  28297. isFirstCharacter = true;
  28298. }
  28299. if (buffer == null)
  28300. buffer = new P.StringBuffer("");
  28301. decoder = new P._Utf8Decoder(false, buffer);
  28302. decoder._isFirstCharacter = isFirstCharacter;
  28303. decoder.convert$3(codeUnits, start, end);
  28304. decoder.flush$2(codeUnits, end);
  28305. t1 = buffer._contents;
  28306. return t1.charCodeAt(0) == 0 ? t1 : t1;
  28307. },
  28308. startChunkedConversion$1: function(sink) {
  28309. return (type$.StringConversionSink._is(sink) ? sink : new P._StringAdapterSink(sink)).asUtf8Sink$1(false);
  28310. }
  28311. };
  28312. P._Utf8Decoder.prototype = {
  28313. flush$2: function(source, offset) {
  28314. var t1;
  28315. if (this._expectedUnits > 0) {
  28316. t1 = P.FormatException$("Unfinished UTF-8 octet sequence", source, offset);
  28317. throw H.wrapException(t1);
  28318. }
  28319. },
  28320. flush$0: function() {
  28321. return this.flush$2(null, null);
  28322. },
  28323. convert$3: function(codeUnits, startIndex, endIndex) {
  28324. var t1, t2, i, unit, t3, oneBytes, i0, i1, t4, _this = this,
  28325. _s21_ = "Bad UTF-8 encoding 0x",
  28326. value = _this._value,
  28327. expectedUnits = _this._expectedUnits,
  28328. extraUnits = _this._extraUnits;
  28329. _this._extraUnits = _this._expectedUnits = _this._value = 0;
  28330. $label0$0:
  28331. for (t1 = J.getInterceptor$asx(codeUnits), t2 = _this._stringSink, i = startIndex; true; i = i1) {
  28332. $label1$1:
  28333. if (expectedUnits > 0) {
  28334. do {
  28335. if (i === endIndex)
  28336. break $label0$0;
  28337. unit = t1.$index(codeUnits, i);
  28338. if ((unit & 192) !== 128) {
  28339. t3 = P.FormatException$(_s21_ + C.JSInt_methods.toRadixString$1(unit, 16), codeUnits, i);
  28340. throw H.wrapException(t3);
  28341. } else {
  28342. value = (value << 6 | unit & 63) >>> 0;
  28343. --expectedUnits;
  28344. ++i;
  28345. }
  28346. } while (expectedUnits > 0);
  28347. if (value <= C.List_127_2047_65535_1114111[extraUnits - 1]) {
  28348. t3 = P.FormatException$("Overlong encoding of 0x" + C.JSInt_methods.toRadixString$1(value, 16), codeUnits, i - extraUnits - 1);
  28349. throw H.wrapException(t3);
  28350. }
  28351. if (value > 1114111) {
  28352. t3 = P.FormatException$("Character outside valid Unicode range: 0x" + C.JSInt_methods.toRadixString$1(value, 16), codeUnits, i - extraUnits - 1);
  28353. throw H.wrapException(t3);
  28354. }
  28355. if (!_this._isFirstCharacter || value !== 65279)
  28356. t2._contents += H.Primitives_stringFromCharCode(value);
  28357. _this._isFirstCharacter = false;
  28358. }
  28359. for (t3 = i < endIndex; t3;) {
  28360. oneBytes = P._scanOneByteCharacters(codeUnits, i, endIndex);
  28361. if (oneBytes > 0) {
  28362. _this._isFirstCharacter = false;
  28363. i0 = i + oneBytes;
  28364. t2._contents += P.String_String$fromCharCodes(codeUnits, i, i0);
  28365. if (i0 === endIndex)
  28366. break;
  28367. } else
  28368. i0 = i;
  28369. i1 = i0 + 1;
  28370. unit = t1.$index(codeUnits, i0);
  28371. if (unit < 0) {
  28372. t4 = P.FormatException$("Negative UTF-8 code unit: -0x" + C.JSInt_methods.toRadixString$1(-unit, 16), codeUnits, i1 - 1);
  28373. throw H.wrapException(t4);
  28374. } else {
  28375. if ((unit & 224) === 192) {
  28376. value = unit & 31;
  28377. expectedUnits = 1;
  28378. extraUnits = 1;
  28379. continue $label0$0;
  28380. }
  28381. if ((unit & 240) === 224) {
  28382. value = unit & 15;
  28383. expectedUnits = 2;
  28384. extraUnits = 2;
  28385. continue $label0$0;
  28386. }
  28387. if ((unit & 248) === 240 && unit < 245) {
  28388. value = unit & 7;
  28389. expectedUnits = 3;
  28390. extraUnits = 3;
  28391. continue $label0$0;
  28392. }
  28393. t4 = P.FormatException$(_s21_ + C.JSInt_methods.toRadixString$1(unit, 16), codeUnits, i1 - 1);
  28394. throw H.wrapException(t4);
  28395. }
  28396. }
  28397. break $label0$0;
  28398. }
  28399. if (expectedUnits > 0) {
  28400. _this._value = value;
  28401. _this._expectedUnits = expectedUnits;
  28402. _this._extraUnits = extraUnits;
  28403. }
  28404. }
  28405. };
  28406. P.NoSuchMethodError_toString_closure.prototype = {
  28407. call$2: function(key, value) {
  28408. var t3,
  28409. t1 = this.sb,
  28410. t2 = this._box_0;
  28411. t1._contents += t2.comma;
  28412. t3 = t1._contents += H.S(key.__internal$_name);
  28413. t1._contents = t3 + ": ";
  28414. t1._contents += P.Error_safeToString(value);
  28415. t2.comma = ", ";
  28416. }
  28417. };
  28418. P.bool.prototype = {};
  28419. P.DateTime.prototype = {
  28420. add$1: function(_, duration) {
  28421. return P.DateTime$_withValue(C.JSInt_methods.$add(this._core$_value, duration.get$inMilliseconds()), false);
  28422. },
  28423. $eq: function(_, other) {
  28424. if (other == null)
  28425. return false;
  28426. return other instanceof P.DateTime && this._core$_value === other._core$_value && true;
  28427. },
  28428. compareTo$1: function(_, other) {
  28429. return C.JSInt_methods.compareTo$1(this._core$_value, other._core$_value);
  28430. },
  28431. get$hashCode: function(_) {
  28432. var t1 = this._core$_value;
  28433. return (t1 ^ C.JSInt_methods._shrOtherPositive$1(t1, 30)) & 1073741823;
  28434. },
  28435. toString$0: function(_) {
  28436. var _this = this,
  28437. y = P.DateTime__fourDigits(H.Primitives_getYear(_this)),
  28438. m = P.DateTime__twoDigits(H.Primitives_getMonth(_this)),
  28439. d = P.DateTime__twoDigits(H.Primitives_getDay(_this)),
  28440. h = P.DateTime__twoDigits(H.Primitives_getHours(_this)),
  28441. min = P.DateTime__twoDigits(H.Primitives_getMinutes(_this)),
  28442. sec = P.DateTime__twoDigits(H.Primitives_getSeconds(_this)),
  28443. ms = P.DateTime__threeDigits(H.Primitives_getMilliseconds(_this)),
  28444. t1 = y + "-" + m + "-" + d + " " + h + ":" + min + ":" + sec + "." + ms;
  28445. return t1;
  28446. },
  28447. $isComparable: 1
  28448. };
  28449. P.double.prototype = {};
  28450. P.Duration.prototype = {
  28451. $eq: function(_, other) {
  28452. if (other == null)
  28453. return false;
  28454. return other instanceof P.Duration && this._duration === other._duration;
  28455. },
  28456. get$hashCode: function(_) {
  28457. return C.JSInt_methods.get$hashCode(this._duration);
  28458. },
  28459. compareTo$1: function(_, other) {
  28460. return C.JSInt_methods.compareTo$1(this._duration, other._duration);
  28461. },
  28462. toString$0: function(_) {
  28463. var twoDigitMinutes, twoDigitSeconds, sixDigitUs,
  28464. t1 = new P.Duration_toString_twoDigits(),
  28465. t2 = this._duration;
  28466. if (t2 < 0)
  28467. return "-" + new P.Duration(0 - t2).toString$0(0);
  28468. twoDigitMinutes = t1.call$1(C.JSInt_methods._tdivFast$1(t2, 60000000) % 60);
  28469. twoDigitSeconds = t1.call$1(C.JSInt_methods._tdivFast$1(t2, 1000000) % 60);
  28470. sixDigitUs = new P.Duration_toString_sixDigits().call$1(t2 % 1000000);
  28471. return "" + C.JSInt_methods._tdivFast$1(t2, 3600000000) + ":" + H.S(twoDigitMinutes) + ":" + H.S(twoDigitSeconds) + "." + H.S(sixDigitUs);
  28472. },
  28473. $isComparable: 1
  28474. };
  28475. P.Duration_toString_sixDigits.prototype = {
  28476. call$1: function(n) {
  28477. if (n >= 100000)
  28478. return "" + n;
  28479. if (n >= 10000)
  28480. return "0" + n;
  28481. if (n >= 1000)
  28482. return "00" + n;
  28483. if (n >= 100)
  28484. return "000" + n;
  28485. if (n >= 10)
  28486. return "0000" + n;
  28487. return "00000" + n;
  28488. },
  28489. $signature: 36
  28490. };
  28491. P.Duration_toString_twoDigits.prototype = {
  28492. call$1: function(n) {
  28493. if (n >= 10)
  28494. return "" + n;
  28495. return "0" + n;
  28496. },
  28497. $signature: 36
  28498. };
  28499. P.Error.prototype = {
  28500. get$stackTrace: function() {
  28501. return H.getTraceFromException(this.$thrownJsError);
  28502. }
  28503. };
  28504. P.AssertionError.prototype = {
  28505. toString$0: function(_) {
  28506. var t1 = this.message;
  28507. if (t1 != null)
  28508. return "Assertion failed: " + P.Error_safeToString(t1);
  28509. return "Assertion failed";
  28510. },
  28511. get$message: function(receiver) {
  28512. return this.message;
  28513. }
  28514. };
  28515. P.NullThrownError.prototype = {
  28516. toString$0: function(_) {
  28517. return "Throw of null.";
  28518. }
  28519. };
  28520. P.ArgumentError.prototype = {
  28521. get$_errorName: function() {
  28522. return "Invalid argument" + (!this._hasValue ? "(s)" : "");
  28523. },
  28524. get$_errorExplanation: function() {
  28525. return "";
  28526. },
  28527. toString$0: function(_) {
  28528. var message, prefix, explanation, errorValue, _this = this,
  28529. t1 = _this.name,
  28530. nameString = t1 != null ? " (" + t1 + ")" : "";
  28531. t1 = _this.message;
  28532. message = t1 == null ? "" : ": " + H.S(t1);
  28533. prefix = _this.get$_errorName() + nameString + message;
  28534. if (!_this._hasValue)
  28535. return prefix;
  28536. explanation = _this.get$_errorExplanation();
  28537. errorValue = P.Error_safeToString(_this.invalidValue);
  28538. return prefix + explanation + ": " + errorValue;
  28539. },
  28540. get$message: function(receiver) {
  28541. return this.message;
  28542. }
  28543. };
  28544. P.RangeError.prototype = {
  28545. get$_errorName: function() {
  28546. return "RangeError";
  28547. },
  28548. get$_errorExplanation: function() {
  28549. var explanation, t2,
  28550. t1 = this.start;
  28551. if (t1 == null) {
  28552. t1 = this.end;
  28553. explanation = t1 != null ? ": Not less than or equal to " + H.S(t1) : "";
  28554. } else {
  28555. t2 = this.end;
  28556. if (t2 == null)
  28557. explanation = ": Not greater than or equal to " + H.S(t1);
  28558. else if (t2 > t1)
  28559. explanation = ": Not in range " + H.S(t1) + ".." + H.S(t2) + ", inclusive";
  28560. else
  28561. explanation = t2 < t1 ? ": Valid value range is empty" : ": Only valid value is " + H.S(t1);
  28562. }
  28563. return explanation;
  28564. }
  28565. };
  28566. P.IndexError.prototype = {
  28567. get$_errorName: function() {
  28568. return "RangeError";
  28569. },
  28570. get$_errorExplanation: function() {
  28571. if (this.invalidValue < 0)
  28572. return ": index must not be negative";
  28573. var t1 = this.length;
  28574. if (t1 === 0)
  28575. return ": no indices are valid";
  28576. return ": index should be less than " + t1;
  28577. },
  28578. get$length: function(receiver) {
  28579. return this.length;
  28580. }
  28581. };
  28582. P.NoSuchMethodError.prototype = {
  28583. toString$0: function(_) {
  28584. var t1, t2, _i, t3, t4, argument, receiverText, actualParameters, _this = this, _box_0 = {},
  28585. sb = new P.StringBuffer("");
  28586. _box_0.comma = "";
  28587. for (t1 = _this._core$_arguments, t2 = t1.length, _i = 0, t3 = "", t4 = ""; _i < t2; ++_i, t4 = ", ") {
  28588. argument = t1[_i];
  28589. sb._contents = t3 + t4;
  28590. t3 = sb._contents += P.Error_safeToString(argument);
  28591. _box_0.comma = ", ";
  28592. }
  28593. _this._namedArguments.forEach$1(0, new P.NoSuchMethodError_toString_closure(_box_0, sb));
  28594. receiverText = P.Error_safeToString(_this._core$_receiver);
  28595. actualParameters = sb.toString$0(0);
  28596. t1 = "NoSuchMethodError: method not found: '" + H.S(_this._memberName.__internal$_name) + "'\nReceiver: " + receiverText + "\nArguments: [" + actualParameters + "]";
  28597. return t1;
  28598. }
  28599. };
  28600. P.UnsupportedError.prototype = {
  28601. toString$0: function(_) {
  28602. return "Unsupported operation: " + this.message;
  28603. },
  28604. get$message: function(receiver) {
  28605. return this.message;
  28606. }
  28607. };
  28608. P.UnimplementedError.prototype = {
  28609. toString$0: function(_) {
  28610. var t1 = this.message;
  28611. return t1 != null ? "UnimplementedError: " + t1 : "UnimplementedError";
  28612. },
  28613. get$message: function(receiver) {
  28614. return this.message;
  28615. }
  28616. };
  28617. P.StateError.prototype = {
  28618. toString$0: function(_) {
  28619. return "Bad state: " + this.message;
  28620. },
  28621. get$message: function(receiver) {
  28622. return this.message;
  28623. }
  28624. };
  28625. P.ConcurrentModificationError.prototype = {
  28626. toString$0: function(_) {
  28627. var t1 = this.modifiedObject;
  28628. if (t1 == null)
  28629. return "Concurrent modification during iteration.";
  28630. return "Concurrent modification during iteration: " + P.Error_safeToString(t1) + ".";
  28631. }
  28632. };
  28633. P.OutOfMemoryError.prototype = {
  28634. toString$0: function(_) {
  28635. return "Out of Memory";
  28636. },
  28637. get$stackTrace: function() {
  28638. return null;
  28639. },
  28640. $isError: 1
  28641. };
  28642. P.StackOverflowError.prototype = {
  28643. toString$0: function(_) {
  28644. return "Stack Overflow";
  28645. },
  28646. get$stackTrace: function() {
  28647. return null;
  28648. },
  28649. $isError: 1
  28650. };
  28651. P.CyclicInitializationError.prototype = {
  28652. toString$0: function(_) {
  28653. var t1 = this.variableName;
  28654. return t1 == null ? "Reading static variable during its initialization" : "Reading static variable '" + t1 + "' during its initialization";
  28655. }
  28656. };
  28657. P._Exception.prototype = {
  28658. toString$0: function(_) {
  28659. return "Exception: " + this.message;
  28660. },
  28661. $isException: 1,
  28662. get$message: function(receiver) {
  28663. return this.message;
  28664. }
  28665. };
  28666. P.FormatException.prototype = {
  28667. toString$0: function(_) {
  28668. var source, lineNum, lineStart, previousCharWasCR, i, char, lineEnd, end, start, prefix, postfix, slice,
  28669. t1 = this.message,
  28670. report = t1 != null && "" !== t1 ? "FormatException: " + H.S(t1) : "FormatException",
  28671. offset = this.offset,
  28672. objectSource = this.source;
  28673. if (typeof objectSource == "string") {
  28674. if (offset != null)
  28675. t1 = offset < 0 || offset > objectSource.length;
  28676. else
  28677. t1 = false;
  28678. if (t1)
  28679. offset = null;
  28680. if (offset == null) {
  28681. source = objectSource.length > 78 ? C.JSString_methods.substring$2(objectSource, 0, 75) + "..." : objectSource;
  28682. return report + "\n" + source;
  28683. }
  28684. for (lineNum = 1, lineStart = 0, previousCharWasCR = false, i = 0; i < offset; ++i) {
  28685. char = C.JSString_methods._codeUnitAt$1(objectSource, i);
  28686. if (char === 10) {
  28687. if (lineStart !== i || !previousCharWasCR)
  28688. ++lineNum;
  28689. lineStart = i + 1;
  28690. previousCharWasCR = false;
  28691. } else if (char === 13) {
  28692. ++lineNum;
  28693. lineStart = i + 1;
  28694. previousCharWasCR = true;
  28695. }
  28696. }
  28697. report = lineNum > 1 ? report + (" (at line " + lineNum + ", character " + (offset - lineStart + 1) + ")\n") : report + (" (at character " + (offset + 1) + ")\n");
  28698. lineEnd = objectSource.length;
  28699. for (i = offset; i < lineEnd; ++i) {
  28700. char = C.JSString_methods.codeUnitAt$1(objectSource, i);
  28701. if (char === 10 || char === 13) {
  28702. lineEnd = i;
  28703. break;
  28704. }
  28705. }
  28706. if (lineEnd - lineStart > 78)
  28707. if (offset - lineStart < 75) {
  28708. end = lineStart + 75;
  28709. start = lineStart;
  28710. prefix = "";
  28711. postfix = "...";
  28712. } else {
  28713. if (lineEnd - offset < 75) {
  28714. start = lineEnd - 75;
  28715. end = lineEnd;
  28716. postfix = "";
  28717. } else {
  28718. start = offset - 36;
  28719. end = offset + 36;
  28720. postfix = "...";
  28721. }
  28722. prefix = "...";
  28723. }
  28724. else {
  28725. end = lineEnd;
  28726. start = lineStart;
  28727. prefix = "";
  28728. postfix = "";
  28729. }
  28730. slice = C.JSString_methods.substring$2(objectSource, start, end);
  28731. return report + prefix + slice + postfix + "\n" + C.JSString_methods.$mul(" ", offset - start + prefix.length) + "^\n";
  28732. } else
  28733. return offset != null ? report + (" (at offset " + H.S(offset) + ")") : report;
  28734. },
  28735. $isException: 1,
  28736. get$message: function(receiver) {
  28737. return this.message;
  28738. },
  28739. get$source: function() {
  28740. return this.source;
  28741. }
  28742. };
  28743. P.Function.prototype = {};
  28744. P.int.prototype = {};
  28745. P.Iterable.prototype = {
  28746. cast$1$0: function(_, $R) {
  28747. return H.CastIterable_CastIterable(this, H._instanceType(this)._eval$1("Iterable.E"), $R);
  28748. },
  28749. followedBy$1: function(_, other) {
  28750. var _this = this,
  28751. t1 = H._instanceType(_this);
  28752. if (t1._eval$1("EfficientLengthIterable<Iterable.E>")._is(_this))
  28753. return H.FollowedByIterable_FollowedByIterable$firstEfficient(_this, other, t1._eval$1("Iterable.E"));
  28754. return new H.FollowedByIterable(_this, other, t1._eval$1("FollowedByIterable<Iterable.E>"));
  28755. },
  28756. map$1$1: function(_, f, $T) {
  28757. return H.MappedIterable_MappedIterable(this, f, H._instanceType(this)._eval$1("Iterable.E"), $T);
  28758. },
  28759. where$1: function(_, test) {
  28760. return new H.WhereIterable(this, test, H._instanceType(this)._eval$1("WhereIterable<Iterable.E>"));
  28761. },
  28762. expand$1$1: function(_, f, $T) {
  28763. return new H.ExpandIterable(this, f, H._instanceType(this)._eval$1("@<Iterable.E>")._bind$1($T)._eval$1("ExpandIterable<1,2>"));
  28764. },
  28765. contains$1: function(_, element) {
  28766. var t1;
  28767. for (t1 = this.get$iterator(this); t1.moveNext$0();)
  28768. if (J.$eq$(t1.get$current(t1), element))
  28769. return true;
  28770. return false;
  28771. },
  28772. fold$1$2: function(_, initialValue, combine) {
  28773. var t1, value;
  28774. for (t1 = this.get$iterator(this), value = initialValue; t1.moveNext$0();)
  28775. value = combine.call$2(value, t1.get$current(t1));
  28776. return value;
  28777. },
  28778. fold$2: function($receiver, initialValue, combine) {
  28779. return this.fold$1$2($receiver, initialValue, combine, type$.dynamic);
  28780. },
  28781. join$1: function(_, separator) {
  28782. var t1,
  28783. iterator = this.get$iterator(this);
  28784. if (!iterator.moveNext$0())
  28785. return "";
  28786. if (separator === "") {
  28787. t1 = "";
  28788. do
  28789. t1 += H.S(iterator.get$current(iterator));
  28790. while (iterator.moveNext$0());
  28791. } else {
  28792. t1 = H.S(iterator.get$current(iterator));
  28793. for (; iterator.moveNext$0();)
  28794. t1 = t1 + separator + H.S(iterator.get$current(iterator));
  28795. }
  28796. return t1.charCodeAt(0) == 0 ? t1 : t1;
  28797. },
  28798. join$0: function($receiver) {
  28799. return this.join$1($receiver, "");
  28800. },
  28801. any$1: function(_, test) {
  28802. var t1;
  28803. for (t1 = this.get$iterator(this); t1.moveNext$0();)
  28804. if (test.call$1(t1.get$current(t1)))
  28805. return true;
  28806. return false;
  28807. },
  28808. toList$1$growable: function(_, growable) {
  28809. return P.List_List$from(this, growable, H._instanceType(this)._eval$1("Iterable.E"));
  28810. },
  28811. toList$0: function($receiver) {
  28812. return this.toList$1$growable($receiver, true);
  28813. },
  28814. toSet$0: function(_) {
  28815. return P.LinkedHashSet_LinkedHashSet$from(this, H._instanceType(this)._eval$1("Iterable.E"));
  28816. },
  28817. get$length: function(_) {
  28818. var count,
  28819. it = this.get$iterator(this);
  28820. for (count = 0; it.moveNext$0();)
  28821. ++count;
  28822. return count;
  28823. },
  28824. get$isEmpty: function(_) {
  28825. return !this.get$iterator(this).moveNext$0();
  28826. },
  28827. get$isNotEmpty: function(_) {
  28828. return !this.get$isEmpty(this);
  28829. },
  28830. take$1: function(_, count) {
  28831. return H.TakeIterable_TakeIterable(this, count, H._instanceType(this)._eval$1("Iterable.E"));
  28832. },
  28833. skip$1: function(_, count) {
  28834. return H.SkipIterable_SkipIterable(this, count, H._instanceType(this)._eval$1("Iterable.E"));
  28835. },
  28836. skipWhile$1: function(_, test) {
  28837. return new H.SkipWhileIterable(this, test, H._instanceType(this)._eval$1("SkipWhileIterable<Iterable.E>"));
  28838. },
  28839. get$first: function(_) {
  28840. var it = this.get$iterator(this);
  28841. if (!it.moveNext$0())
  28842. throw H.wrapException(H.IterableElementError_noElement());
  28843. return it.get$current(it);
  28844. },
  28845. get$last: function(_) {
  28846. var result,
  28847. it = this.get$iterator(this);
  28848. if (!it.moveNext$0())
  28849. throw H.wrapException(H.IterableElementError_noElement());
  28850. do
  28851. result = it.get$current(it);
  28852. while (it.moveNext$0());
  28853. return result;
  28854. },
  28855. get$single: function(_) {
  28856. var result,
  28857. it = this.get$iterator(this);
  28858. if (!it.moveNext$0())
  28859. throw H.wrapException(H.IterableElementError_noElement());
  28860. result = it.get$current(it);
  28861. if (it.moveNext$0())
  28862. throw H.wrapException(H.IterableElementError_tooMany());
  28863. return result;
  28864. },
  28865. firstWhere$2$orElse: function(_, test, orElse) {
  28866. var t1, element;
  28867. for (t1 = this.get$iterator(this); t1.moveNext$0();) {
  28868. element = t1.get$current(t1);
  28869. if (test.call$1(element))
  28870. return element;
  28871. }
  28872. return orElse.call$0();
  28873. },
  28874. elementAt$1: function(_, index) {
  28875. var t1, elementIndex, element, _s5_ = "index";
  28876. P.ArgumentError_checkNotNull(index, _s5_);
  28877. P.RangeError_checkNotNegative(index, _s5_);
  28878. for (t1 = this.get$iterator(this), elementIndex = 0; t1.moveNext$0();) {
  28879. element = t1.get$current(t1);
  28880. if (index === elementIndex)
  28881. return element;
  28882. ++elementIndex;
  28883. }
  28884. throw H.wrapException(P.IndexError$(index, this, _s5_, null, elementIndex));
  28885. },
  28886. toString$0: function(_) {
  28887. return P.IterableBase_iterableToShortString(this, "(", ")");
  28888. }
  28889. };
  28890. P._GeneratorIterable.prototype = {
  28891. elementAt$1: function(_, index) {
  28892. P.RangeError_checkValidIndex(index, this, null);
  28893. return this._generator.call$1(index);
  28894. },
  28895. get$length: function(receiver) {
  28896. return this.length;
  28897. }
  28898. };
  28899. P.Iterator.prototype = {};
  28900. P.List.prototype = {$isEfficientLengthIterable: 1, $isIterable: 1};
  28901. P.Map.prototype = {};
  28902. P.MapEntry.prototype = {
  28903. toString$0: function(_) {
  28904. return "MapEntry(" + H.S(this.key) + ": " + H.S(this.value) + ")";
  28905. }
  28906. };
  28907. P.Null.prototype = {
  28908. get$hashCode: function(_) {
  28909. return P.Object.prototype.get$hashCode.call(this, this);
  28910. },
  28911. toString$0: function(_) {
  28912. return "null";
  28913. }
  28914. };
  28915. P.num.prototype = {$isComparable: 1};
  28916. P.Object.prototype = {constructor: P.Object, $isObject: 1,
  28917. $eq: function(_, other) {
  28918. return this === other;
  28919. },
  28920. get$hashCode: function(_) {
  28921. return H.Primitives_objectHashCode(this);
  28922. },
  28923. toString$0: function(_) {
  28924. return "Instance of '" + H.S(H.Primitives_objectTypeName(this)) + "'";
  28925. },
  28926. noSuchMethod$1: function(_, invocation) {
  28927. throw H.wrapException(P.NoSuchMethodError$(this, invocation.get$memberName(), invocation.get$positionalArguments(), invocation.get$namedArguments()));
  28928. },
  28929. toString: function() {
  28930. return this.toString$0(this);
  28931. }
  28932. };
  28933. P.Match.prototype = {};
  28934. P.RegExpMatch.prototype = {$isMatch: 1};
  28935. P.Set.prototype = {};
  28936. P.StackTrace.prototype = {};
  28937. P._StringStackTrace.prototype = {
  28938. toString$0: function(_) {
  28939. return this._stackTrace;
  28940. },
  28941. $isStackTrace: 1
  28942. };
  28943. P.String.prototype = {$isComparable: 1};
  28944. P.Runes.prototype = {
  28945. get$iterator: function(_) {
  28946. return new P.RuneIterator(this.string);
  28947. },
  28948. get$last: function(_) {
  28949. var code, previousCode,
  28950. t1 = this.string,
  28951. t2 = t1.length;
  28952. if (t2 === 0)
  28953. throw H.wrapException(P.StateError$("No elements."));
  28954. code = C.JSString_methods.codeUnitAt$1(t1, t2 - 1);
  28955. if ((code & 64512) === 56320 && t2 > 1) {
  28956. previousCode = C.JSString_methods.codeUnitAt$1(t1, t2 - 2);
  28957. if ((previousCode & 64512) === 55296)
  28958. return P._combineSurrogatePair(previousCode, code);
  28959. }
  28960. return code;
  28961. }
  28962. };
  28963. P.RuneIterator.prototype = {
  28964. get$current: function(_) {
  28965. return this._currentCodePoint;
  28966. },
  28967. moveNext$0: function() {
  28968. var codeUnit, nextPosition, nextCodeUnit, _this = this,
  28969. t1 = _this._position = _this._nextPosition,
  28970. t2 = _this.string,
  28971. t3 = t2.length;
  28972. if (t1 === t3) {
  28973. _this._currentCodePoint = -1;
  28974. return false;
  28975. }
  28976. codeUnit = C.JSString_methods._codeUnitAt$1(t2, t1);
  28977. nextPosition = t1 + 1;
  28978. if ((codeUnit & 64512) === 55296 && nextPosition < t3) {
  28979. nextCodeUnit = C.JSString_methods._codeUnitAt$1(t2, nextPosition);
  28980. if ((nextCodeUnit & 64512) === 56320) {
  28981. _this._nextPosition = nextPosition + 1;
  28982. _this._currentCodePoint = P._combineSurrogatePair(codeUnit, nextCodeUnit);
  28983. return true;
  28984. }
  28985. }
  28986. _this._nextPosition = nextPosition;
  28987. _this._currentCodePoint = codeUnit;
  28988. return true;
  28989. }
  28990. };
  28991. P.StringBuffer.prototype = {
  28992. get$length: function(_) {
  28993. return this._contents.length;
  28994. },
  28995. write$1: function(_, obj) {
  28996. this._contents += H.S(obj);
  28997. },
  28998. writeCharCode$1: function(charCode) {
  28999. this._contents += H.Primitives_stringFromCharCode(charCode);
  29000. },
  29001. toString$0: function(_) {
  29002. var t1 = this._contents;
  29003. return t1.charCodeAt(0) == 0 ? t1 : t1;
  29004. }
  29005. };
  29006. P.StringSink.prototype = {};
  29007. P.Symbol0.prototype = {};
  29008. P.Uri.prototype = {};
  29009. P.Uri__parseIPv4Address_error.prototype = {
  29010. call$2: function(msg, position) {
  29011. throw H.wrapException(P.FormatException$("Illegal IPv4 address, " + msg, this.host, position));
  29012. }
  29013. };
  29014. P.Uri_parseIPv6Address_error.prototype = {
  29015. call$2: function(msg, position) {
  29016. throw H.wrapException(P.FormatException$("Illegal IPv6 address, " + msg, this.host, position));
  29017. },
  29018. call$1: function(msg) {
  29019. return this.call$2(msg, null);
  29020. }
  29021. };
  29022. P.Uri_parseIPv6Address_parseHex.prototype = {
  29023. call$2: function(start, end) {
  29024. var value;
  29025. if (end - start > 4)
  29026. this.error.call$2("an IPv6 part can only contain a maximum of 4 hex digits", start);
  29027. value = P.int_parse(C.JSString_methods.substring$2(this.host, start, end), null, 16);
  29028. if (value < 0 || value > 65535)
  29029. this.error.call$2("each part must be in the range of `0x0..0xFFFF`", start);
  29030. return value;
  29031. }
  29032. };
  29033. P._Uri.prototype = {
  29034. get$userInfo: function() {
  29035. return this._userInfo;
  29036. },
  29037. get$host: function() {
  29038. var t1 = this._host;
  29039. if (t1 == null)
  29040. return "";
  29041. if (C.JSString_methods.startsWith$1(t1, "["))
  29042. return C.JSString_methods.substring$2(t1, 1, t1.length - 1);
  29043. return t1;
  29044. },
  29045. get$port: function() {
  29046. var t1 = this._port;
  29047. if (t1 == null)
  29048. return P._Uri__defaultPort(this.scheme);
  29049. return t1;
  29050. },
  29051. get$query: function() {
  29052. var t1 = this._query;
  29053. return t1 == null ? "" : t1;
  29054. },
  29055. get$fragment: function() {
  29056. var t1 = this._fragment;
  29057. return t1 == null ? "" : t1;
  29058. },
  29059. get$pathSegments: function() {
  29060. var pathToSplit,
  29061. result = this._pathSegments;
  29062. if (result != null)
  29063. return result;
  29064. pathToSplit = this.path;
  29065. if (pathToSplit.length !== 0 && C.JSString_methods._codeUnitAt$1(pathToSplit, 0) === 47)
  29066. pathToSplit = C.JSString_methods.substring$1(pathToSplit, 1);
  29067. return this._pathSegments = pathToSplit === "" ? C.List_empty : P.List_List$unmodifiable(new H.MappedListIterable(H.setRuntimeTypeInfo(pathToSplit.split("/"), type$.JSArray_String), P.core_Uri_decodeComponent$closure(), type$.MappedListIterable_String_dynamic), type$.String);
  29068. },
  29069. _mergePaths$2: function(base, reference) {
  29070. var backCount, refStart, baseEnd, newEnd, delta, t1;
  29071. for (backCount = 0, refStart = 0; C.JSString_methods.startsWith$2(reference, "../", refStart);) {
  29072. refStart += 3;
  29073. ++backCount;
  29074. }
  29075. baseEnd = C.JSString_methods.lastIndexOf$1(base, "/");
  29076. while (true) {
  29077. if (!(baseEnd > 0 && backCount > 0))
  29078. break;
  29079. newEnd = C.JSString_methods.lastIndexOf$2(base, "/", baseEnd - 1);
  29080. if (newEnd < 0)
  29081. break;
  29082. delta = baseEnd - newEnd;
  29083. t1 = delta !== 2;
  29084. if (!t1 || delta === 3)
  29085. if (C.JSString_methods.codeUnitAt$1(base, newEnd + 1) === 46)
  29086. t1 = !t1 || C.JSString_methods.codeUnitAt$1(base, newEnd + 2) === 46;
  29087. else
  29088. t1 = false;
  29089. else
  29090. t1 = false;
  29091. if (t1)
  29092. break;
  29093. --backCount;
  29094. baseEnd = newEnd;
  29095. }
  29096. return C.JSString_methods.replaceRange$3(base, baseEnd + 1, null, C.JSString_methods.substring$1(reference, refStart - 3 * backCount));
  29097. },
  29098. resolve$1: function(reference) {
  29099. return this.resolveUri$1(P.Uri_parse(reference));
  29100. },
  29101. resolveUri$1: function(reference) {
  29102. var targetScheme, targetUserInfo, targetHost, targetPort, targetPath, targetQuery, t1, mergedPath, t2, _this = this, _null = null;
  29103. if (reference.get$scheme().length !== 0) {
  29104. targetScheme = reference.get$scheme();
  29105. if (reference.get$hasAuthority()) {
  29106. targetUserInfo = reference.get$userInfo();
  29107. targetHost = reference.get$host();
  29108. targetPort = reference.get$hasPort() ? reference.get$port() : _null;
  29109. } else {
  29110. targetPort = _null;
  29111. targetHost = targetPort;
  29112. targetUserInfo = "";
  29113. }
  29114. targetPath = P._Uri__removeDotSegments(reference.get$path(reference));
  29115. targetQuery = reference.get$hasQuery() ? reference.get$query() : _null;
  29116. } else {
  29117. targetScheme = _this.scheme;
  29118. if (reference.get$hasAuthority()) {
  29119. targetUserInfo = reference.get$userInfo();
  29120. targetHost = reference.get$host();
  29121. targetPort = P._Uri__makePort(reference.get$hasPort() ? reference.get$port() : _null, targetScheme);
  29122. targetPath = P._Uri__removeDotSegments(reference.get$path(reference));
  29123. targetQuery = reference.get$hasQuery() ? reference.get$query() : _null;
  29124. } else {
  29125. targetUserInfo = _this._userInfo;
  29126. targetHost = _this._host;
  29127. targetPort = _this._port;
  29128. if (reference.get$path(reference) === "") {
  29129. targetPath = _this.path;
  29130. targetQuery = reference.get$hasQuery() ? reference.get$query() : _this._query;
  29131. } else {
  29132. if (reference.get$hasAbsolutePath())
  29133. targetPath = P._Uri__removeDotSegments(reference.get$path(reference));
  29134. else {
  29135. t1 = _this.path;
  29136. if (t1.length === 0)
  29137. if (targetHost == null)
  29138. targetPath = targetScheme.length === 0 ? reference.get$path(reference) : P._Uri__removeDotSegments(reference.get$path(reference));
  29139. else
  29140. targetPath = P._Uri__removeDotSegments("/" + reference.get$path(reference));
  29141. else {
  29142. mergedPath = _this._mergePaths$2(t1, reference.get$path(reference));
  29143. t2 = targetScheme.length === 0;
  29144. if (!t2 || targetHost != null || C.JSString_methods.startsWith$1(t1, "/"))
  29145. targetPath = P._Uri__removeDotSegments(mergedPath);
  29146. else
  29147. targetPath = P._Uri__normalizeRelativePath(mergedPath, !t2 || targetHost != null);
  29148. }
  29149. }
  29150. targetQuery = reference.get$hasQuery() ? reference.get$query() : _null;
  29151. }
  29152. }
  29153. }
  29154. return new P._Uri(targetScheme, targetUserInfo, targetHost, targetPort, targetPath, targetQuery, reference.get$hasFragment() ? reference.get$fragment() : _null);
  29155. },
  29156. get$hasAuthority: function() {
  29157. return this._host != null;
  29158. },
  29159. get$hasPort: function() {
  29160. return this._port != null;
  29161. },
  29162. get$hasQuery: function() {
  29163. return this._query != null;
  29164. },
  29165. get$hasFragment: function() {
  29166. return this._fragment != null;
  29167. },
  29168. get$hasAbsolutePath: function() {
  29169. return C.JSString_methods.startsWith$1(this.path, "/");
  29170. },
  29171. toFilePath$0: function() {
  29172. var windows, pathSegments, _this = this,
  29173. t1 = _this.scheme;
  29174. if (t1 !== "" && t1 !== "file")
  29175. throw H.wrapException(P.UnsupportedError$("Cannot extract a file path from a " + H.S(t1) + " URI"));
  29176. t1 = _this._query;
  29177. if ((t1 == null ? "" : t1) !== "")
  29178. throw H.wrapException(P.UnsupportedError$("Cannot extract a file path from a URI with a query component"));
  29179. t1 = _this._fragment;
  29180. if ((t1 == null ? "" : t1) !== "")
  29181. throw H.wrapException(P.UnsupportedError$("Cannot extract a file path from a URI with a fragment component"));
  29182. windows = $.$get$_Uri__isWindowsCached();
  29183. if (windows)
  29184. t1 = P._Uri__toWindowsFilePath(_this);
  29185. else {
  29186. if (_this._host != null && _this.get$host() !== "")
  29187. H.throwExpression(P.UnsupportedError$("Cannot extract a non-Windows file path from a file URI with an authority"));
  29188. pathSegments = _this.get$pathSegments();
  29189. P._Uri__checkNonWindowsPathReservedCharacters(pathSegments, false);
  29190. t1 = P.StringBuffer__writeAll(C.JSString_methods.startsWith$1(_this.path, "/") ? "/" : "", pathSegments, "/");
  29191. t1 = t1.charCodeAt(0) == 0 ? t1 : t1;
  29192. }
  29193. return t1;
  29194. },
  29195. toString$0: function(_) {
  29196. var t2, t3, t4, _this = this,
  29197. t1 = _this._text;
  29198. if (t1 == null) {
  29199. t1 = _this.scheme;
  29200. t2 = t1.length !== 0 ? t1 + ":" : "";
  29201. t3 = _this._host;
  29202. t4 = t3 == null;
  29203. if (!t4 || t1 === "file") {
  29204. t1 = t2 + "//";
  29205. t2 = _this._userInfo;
  29206. if (t2.length !== 0)
  29207. t1 = t1 + t2 + "@";
  29208. if (!t4)
  29209. t1 += t3;
  29210. t2 = _this._port;
  29211. if (t2 != null)
  29212. t1 = t1 + ":" + H.S(t2);
  29213. } else
  29214. t1 = t2;
  29215. t1 += _this.path;
  29216. t2 = _this._query;
  29217. if (t2 != null)
  29218. t1 = t1 + "?" + t2;
  29219. t2 = _this._fragment;
  29220. if (t2 != null)
  29221. t1 = t1 + "#" + t2;
  29222. t1 = _this._text = t1.charCodeAt(0) == 0 ? t1 : t1;
  29223. }
  29224. return t1;
  29225. },
  29226. $eq: function(_, other) {
  29227. var t1, t2, _this = this;
  29228. if (other == null)
  29229. return false;
  29230. if (_this === other)
  29231. return true;
  29232. if (type$.Uri._is(other))
  29233. if (_this.scheme == other.get$scheme())
  29234. if (_this._host != null === other.get$hasAuthority())
  29235. if (_this._userInfo == other.get$userInfo())
  29236. if (_this.get$host() == other.get$host())
  29237. if (_this.get$port() == other.get$port())
  29238. if (_this.path === other.get$path(other)) {
  29239. t1 = _this._query;
  29240. t2 = t1 == null;
  29241. if (!t2 === other.get$hasQuery()) {
  29242. if (t2)
  29243. t1 = "";
  29244. if (t1 === other.get$query()) {
  29245. t1 = _this._fragment;
  29246. t2 = t1 == null;
  29247. if (!t2 === other.get$hasFragment()) {
  29248. if (t2)
  29249. t1 = "";
  29250. t1 = t1 === other.get$fragment();
  29251. } else
  29252. t1 = false;
  29253. } else
  29254. t1 = false;
  29255. } else
  29256. t1 = false;
  29257. } else
  29258. t1 = false;
  29259. else
  29260. t1 = false;
  29261. else
  29262. t1 = false;
  29263. else
  29264. t1 = false;
  29265. else
  29266. t1 = false;
  29267. else
  29268. t1 = false;
  29269. else
  29270. t1 = false;
  29271. return t1;
  29272. },
  29273. get$hashCode: function(_) {
  29274. var t1 = this._hashCodeCache;
  29275. return t1 == null ? this._hashCodeCache = C.JSString_methods.get$hashCode(this.toString$0(0)) : t1;
  29276. },
  29277. $isUri: 1,
  29278. get$scheme: function() {
  29279. return this.scheme;
  29280. },
  29281. get$path: function(receiver) {
  29282. return this.path;
  29283. }
  29284. };
  29285. P._Uri__Uri$notSimple_closure.prototype = {
  29286. call$1: function(_) {
  29287. throw H.wrapException(P.FormatException$("Invalid port", this.uri, this.portStart + 1));
  29288. }
  29289. };
  29290. P._Uri__checkNonWindowsPathReservedCharacters_closure.prototype = {
  29291. call$1: function(segment) {
  29292. var _s23_ = "Illegal path character ";
  29293. if (J.contains$1$asx(segment, "/"))
  29294. if (this.argumentError)
  29295. throw H.wrapException(P.ArgumentError$(_s23_ + segment));
  29296. else
  29297. throw H.wrapException(P.UnsupportedError$(_s23_ + segment));
  29298. }
  29299. };
  29300. P._Uri__makePath_closure.prototype = {
  29301. call$1: function(s) {
  29302. return P._Uri__uriEncode(C.List_qg40, s, C.C_Utf8Codec, false);
  29303. }
  29304. };
  29305. P.UriData.prototype = {
  29306. get$uri: function() {
  29307. var t2, queryIndex, end, query, _this = this, _null = null,
  29308. t1 = _this._uriCache;
  29309. if (t1 != null)
  29310. return t1;
  29311. t1 = _this._text;
  29312. t2 = _this._separatorIndices[0] + 1;
  29313. queryIndex = C.JSString_methods.indexOf$2(t1, "?", t2);
  29314. end = t1.length;
  29315. if (queryIndex >= 0) {
  29316. query = P._Uri__normalizeOrSubstring(t1, queryIndex + 1, end, C.List_CVk, false);
  29317. end = queryIndex;
  29318. } else
  29319. query = _null;
  29320. return _this._uriCache = new P._DataUri("data", _null, _null, _null, P._Uri__normalizeOrSubstring(t1, t2, end, C.List_qg4, false), query, _null);
  29321. },
  29322. toString$0: function(_) {
  29323. var t1 = this._text;
  29324. return this._separatorIndices[0] === -1 ? "data:" + t1 : t1;
  29325. }
  29326. };
  29327. P._createTables_closure.prototype = {
  29328. call$1: function(_) {
  29329. return new Uint8Array(96);
  29330. },
  29331. $signature: 109
  29332. };
  29333. P._createTables_build.prototype = {
  29334. call$2: function(state, defaultTransition) {
  29335. var t1 = this.tables[state];
  29336. J.fillRange$3$ax(t1, 0, 96, defaultTransition);
  29337. return t1;
  29338. },
  29339. $signature: 108
  29340. };
  29341. P._createTables_setChars.prototype = {
  29342. call$3: function(target, chars, transition) {
  29343. var t1, i;
  29344. for (t1 = chars.length, i = 0; i < t1; ++i)
  29345. target[C.JSString_methods._codeUnitAt$1(chars, i) ^ 96] = transition;
  29346. }
  29347. };
  29348. P._createTables_setRange.prototype = {
  29349. call$3: function(target, range, transition) {
  29350. var i, n;
  29351. for (i = C.JSString_methods._codeUnitAt$1(range, 0), n = C.JSString_methods._codeUnitAt$1(range, 1); i <= n; ++i)
  29352. target[(i ^ 96) >>> 0] = transition;
  29353. }
  29354. };
  29355. P._SimpleUri.prototype = {
  29356. get$hasAuthority: function() {
  29357. return this._hostStart > 0;
  29358. },
  29359. get$hasPort: function() {
  29360. return this._hostStart > 0 && this._portStart + 1 < this._pathStart;
  29361. },
  29362. get$hasQuery: function() {
  29363. return this._queryStart < this._fragmentStart;
  29364. },
  29365. get$hasFragment: function() {
  29366. return this._fragmentStart < this._uri.length;
  29367. },
  29368. get$_isFile: function() {
  29369. return this._schemeEnd === 4 && C.JSString_methods.startsWith$1(this._uri, "file");
  29370. },
  29371. get$_isHttp: function() {
  29372. return this._schemeEnd === 4 && C.JSString_methods.startsWith$1(this._uri, "http");
  29373. },
  29374. get$_isHttps: function() {
  29375. return this._schemeEnd === 5 && C.JSString_methods.startsWith$1(this._uri, "https");
  29376. },
  29377. get$hasAbsolutePath: function() {
  29378. return C.JSString_methods.startsWith$2(this._uri, "/", this._pathStart);
  29379. },
  29380. get$scheme: function() {
  29381. var t2, _this = this,
  29382. _s7_ = "package",
  29383. t1 = _this._schemeEnd;
  29384. if (t1 <= 0)
  29385. return "";
  29386. t2 = _this._schemeCache;
  29387. if (t2 != null)
  29388. return t2;
  29389. if (_this.get$_isHttp())
  29390. t1 = _this._schemeCache = "http";
  29391. else if (_this.get$_isHttps()) {
  29392. _this._schemeCache = "https";
  29393. t1 = "https";
  29394. } else if (_this.get$_isFile()) {
  29395. _this._schemeCache = "file";
  29396. t1 = "file";
  29397. } else if (t1 === 7 && C.JSString_methods.startsWith$1(_this._uri, _s7_)) {
  29398. _this._schemeCache = _s7_;
  29399. t1 = _s7_;
  29400. } else {
  29401. t1 = C.JSString_methods.substring$2(_this._uri, 0, t1);
  29402. _this._schemeCache = t1;
  29403. }
  29404. return t1;
  29405. },
  29406. get$userInfo: function() {
  29407. var t1 = this._hostStart,
  29408. t2 = this._schemeEnd + 3;
  29409. return t1 > t2 ? C.JSString_methods.substring$2(this._uri, t2, t1 - 1) : "";
  29410. },
  29411. get$host: function() {
  29412. var t1 = this._hostStart;
  29413. return t1 > 0 ? C.JSString_methods.substring$2(this._uri, t1, this._portStart) : "";
  29414. },
  29415. get$port: function() {
  29416. var _this = this;
  29417. if (_this.get$hasPort())
  29418. return P.int_parse(C.JSString_methods.substring$2(_this._uri, _this._portStart + 1, _this._pathStart), null, null);
  29419. if (_this.get$_isHttp())
  29420. return 80;
  29421. if (_this.get$_isHttps())
  29422. return 443;
  29423. return 0;
  29424. },
  29425. get$path: function(_) {
  29426. return C.JSString_methods.substring$2(this._uri, this._pathStart, this._queryStart);
  29427. },
  29428. get$query: function() {
  29429. var t1 = this._queryStart,
  29430. t2 = this._fragmentStart;
  29431. return t1 < t2 ? C.JSString_methods.substring$2(this._uri, t1 + 1, t2) : "";
  29432. },
  29433. get$fragment: function() {
  29434. var t1 = this._fragmentStart,
  29435. t2 = this._uri;
  29436. return t1 < t2.length ? C.JSString_methods.substring$1(t2, t1 + 1) : "";
  29437. },
  29438. get$pathSegments: function() {
  29439. var parts, i,
  29440. start = this._pathStart,
  29441. end = this._queryStart,
  29442. t1 = this._uri;
  29443. if (C.JSString_methods.startsWith$2(t1, "/", start))
  29444. ++start;
  29445. if (start == end)
  29446. return C.List_empty;
  29447. parts = H.setRuntimeTypeInfo([], type$.JSArray_String);
  29448. for (i = start; i < end; ++i)
  29449. if (C.JSString_methods.codeUnitAt$1(t1, i) === 47) {
  29450. parts.push(C.JSString_methods.substring$2(t1, start, i));
  29451. start = i + 1;
  29452. }
  29453. parts.push(C.JSString_methods.substring$2(t1, start, end));
  29454. return P.List_List$unmodifiable(parts, type$.String);
  29455. },
  29456. _isPort$1: function(port) {
  29457. var portDigitStart = this._portStart + 1;
  29458. return portDigitStart + port.length === this._pathStart && C.JSString_methods.startsWith$2(this._uri, port, portDigitStart);
  29459. },
  29460. removeFragment$0: function() {
  29461. var _this = this,
  29462. t1 = _this._fragmentStart,
  29463. t2 = _this._uri;
  29464. if (t1 >= t2.length)
  29465. return _this;
  29466. return new P._SimpleUri(C.JSString_methods.substring$2(t2, 0, t1), _this._schemeEnd, _this._hostStart, _this._portStart, _this._pathStart, _this._queryStart, t1, _this._schemeCache);
  29467. },
  29468. resolve$1: function(reference) {
  29469. return this.resolveUri$1(P.Uri_parse(reference));
  29470. },
  29471. resolveUri$1: function(reference) {
  29472. if (reference instanceof P._SimpleUri)
  29473. return this._simpleMerge$2(this, reference);
  29474. return this._toNonSimple$0().resolveUri$1(reference);
  29475. },
  29476. _simpleMerge$2: function(base, ref) {
  29477. var t2, t3, isSimple, delta, refStart, baseStart, baseEnd, baseUri, baseStart0, backCount, refStart0, insert,
  29478. t1 = ref._schemeEnd;
  29479. if (t1 > 0)
  29480. return ref;
  29481. t2 = ref._hostStart;
  29482. if (t2 > 0) {
  29483. t3 = base._schemeEnd;
  29484. if (t3 <= 0)
  29485. return ref;
  29486. if (base.get$_isFile())
  29487. isSimple = ref._pathStart != ref._queryStart;
  29488. else if (base.get$_isHttp())
  29489. isSimple = !ref._isPort$1("80");
  29490. else
  29491. isSimple = !base.get$_isHttps() || !ref._isPort$1("443");
  29492. if (isSimple) {
  29493. delta = t3 + 1;
  29494. return new P._SimpleUri(C.JSString_methods.substring$2(base._uri, 0, delta) + C.JSString_methods.substring$1(ref._uri, t1 + 1), t3, t2 + delta, ref._portStart + delta, ref._pathStart + delta, ref._queryStart + delta, ref._fragmentStart + delta, base._schemeCache);
  29495. } else
  29496. return this._toNonSimple$0().resolveUri$1(ref);
  29497. }
  29498. refStart = ref._pathStart;
  29499. t1 = ref._queryStart;
  29500. if (refStart == t1) {
  29501. t2 = ref._fragmentStart;
  29502. if (t1 < t2) {
  29503. t3 = base._queryStart;
  29504. delta = t3 - t1;
  29505. return new P._SimpleUri(C.JSString_methods.substring$2(base._uri, 0, t3) + C.JSString_methods.substring$1(ref._uri, t1), base._schemeEnd, base._hostStart, base._portStart, base._pathStart, t1 + delta, t2 + delta, base._schemeCache);
  29506. }
  29507. t1 = ref._uri;
  29508. if (t2 < t1.length) {
  29509. t3 = base._fragmentStart;
  29510. return new P._SimpleUri(C.JSString_methods.substring$2(base._uri, 0, t3) + C.JSString_methods.substring$1(t1, t2), base._schemeEnd, base._hostStart, base._portStart, base._pathStart, base._queryStart, t2 + (t3 - t2), base._schemeCache);
  29511. }
  29512. return base.removeFragment$0();
  29513. }
  29514. t2 = ref._uri;
  29515. if (C.JSString_methods.startsWith$2(t2, "/", refStart)) {
  29516. t3 = base._pathStart;
  29517. delta = t3 - refStart;
  29518. return new P._SimpleUri(C.JSString_methods.substring$2(base._uri, 0, t3) + C.JSString_methods.substring$1(t2, refStart), base._schemeEnd, base._hostStart, base._portStart, t3, t1 + delta, ref._fragmentStart + delta, base._schemeCache);
  29519. }
  29520. baseStart = base._pathStart;
  29521. baseEnd = base._queryStart;
  29522. if (baseStart == baseEnd && base._hostStart > 0) {
  29523. for (; C.JSString_methods.startsWith$2(t2, "../", refStart);)
  29524. refStart += 3;
  29525. delta = baseStart - refStart + 1;
  29526. return new P._SimpleUri(C.JSString_methods.substring$2(base._uri, 0, baseStart) + "/" + C.JSString_methods.substring$1(t2, refStart), base._schemeEnd, base._hostStart, base._portStart, baseStart, t1 + delta, ref._fragmentStart + delta, base._schemeCache);
  29527. }
  29528. baseUri = base._uri;
  29529. for (baseStart0 = baseStart; C.JSString_methods.startsWith$2(baseUri, "../", baseStart0);)
  29530. baseStart0 += 3;
  29531. backCount = 0;
  29532. while (true) {
  29533. refStart0 = refStart + 3;
  29534. if (!(refStart0 <= t1 && C.JSString_methods.startsWith$2(t2, "../", refStart)))
  29535. break;
  29536. ++backCount;
  29537. refStart = refStart0;
  29538. }
  29539. for (insert = ""; baseEnd > baseStart0;) {
  29540. --baseEnd;
  29541. if (C.JSString_methods.codeUnitAt$1(baseUri, baseEnd) === 47) {
  29542. if (backCount === 0) {
  29543. insert = "/";
  29544. break;
  29545. }
  29546. --backCount;
  29547. insert = "/";
  29548. }
  29549. }
  29550. if (baseEnd === baseStart0 && base._schemeEnd <= 0 && !C.JSString_methods.startsWith$2(baseUri, "/", baseStart)) {
  29551. refStart -= backCount * 3;
  29552. insert = "";
  29553. }
  29554. delta = baseEnd - refStart + insert.length;
  29555. return new P._SimpleUri(C.JSString_methods.substring$2(baseUri, 0, baseEnd) + insert + C.JSString_methods.substring$1(t2, refStart), base._schemeEnd, base._hostStart, base._portStart, baseStart, t1 + delta, ref._fragmentStart + delta, base._schemeCache);
  29556. },
  29557. toFilePath$0: function() {
  29558. var t1, t2, windows, _this = this;
  29559. if (_this._schemeEnd >= 0 && !_this.get$_isFile())
  29560. throw H.wrapException(P.UnsupportedError$("Cannot extract a file path from a " + H.S(_this.get$scheme()) + " URI"));
  29561. t1 = _this._queryStart;
  29562. t2 = _this._uri;
  29563. if (t1 < t2.length) {
  29564. if (t1 < _this._fragmentStart)
  29565. throw H.wrapException(P.UnsupportedError$("Cannot extract a file path from a URI with a query component"));
  29566. throw H.wrapException(P.UnsupportedError$("Cannot extract a file path from a URI with a fragment component"));
  29567. }
  29568. windows = $.$get$_Uri__isWindowsCached();
  29569. if (windows)
  29570. t1 = P._Uri__toWindowsFilePath(_this);
  29571. else {
  29572. if (_this._hostStart < _this._portStart)
  29573. H.throwExpression(P.UnsupportedError$("Cannot extract a non-Windows file path from a file URI with an authority"));
  29574. t1 = C.JSString_methods.substring$2(t2, _this._pathStart, t1);
  29575. }
  29576. return t1;
  29577. },
  29578. get$hashCode: function(_) {
  29579. var t1 = this._hashCodeCache;
  29580. return t1 == null ? this._hashCodeCache = C.JSString_methods.get$hashCode(this._uri) : t1;
  29581. },
  29582. $eq: function(_, other) {
  29583. if (other == null)
  29584. return false;
  29585. if (this === other)
  29586. return true;
  29587. return type$.Uri._is(other) && this._uri === other.toString$0(0);
  29588. },
  29589. _toNonSimple$0: function() {
  29590. var _this = this, _null = null,
  29591. t1 = _this.get$scheme(),
  29592. t2 = _this.get$userInfo(),
  29593. t3 = _this._hostStart > 0 ? _this.get$host() : _null,
  29594. t4 = _this.get$hasPort() ? _this.get$port() : _null,
  29595. t5 = _this._uri,
  29596. t6 = _this._queryStart,
  29597. t7 = C.JSString_methods.substring$2(t5, _this._pathStart, t6),
  29598. t8 = _this._fragmentStart;
  29599. t6 = t6 < t8 ? _this.get$query() : _null;
  29600. return new P._Uri(t1, t2, t3, t4, t7, t6, t8 < t5.length ? _this.get$fragment() : _null);
  29601. },
  29602. toString$0: function(_) {
  29603. return this._uri;
  29604. },
  29605. $isUri: 1
  29606. };
  29607. P._DataUri.prototype = {};
  29608. P._JSRandom.prototype = {
  29609. nextInt$1: function(max) {
  29610. if (max <= 0 || max > 4294967296)
  29611. throw H.wrapException(P.RangeError$("max must be in range 0 < max \u2264 2^32, was " + max));
  29612. return Math.random() * max >>> 0;
  29613. },
  29614. nextDouble$0: function() {
  29615. return Math.random();
  29616. }
  29617. };
  29618. P.Uint8List.prototype = {$isEfficientLengthIterable: 1, $isIterable: 1, $isList: 1};
  29619. N.ArgParser.prototype = {
  29620. addFlag$6$abbr$defaultsTo$help$hide$negatable: function($name, abbr, defaultsTo, help, hide, negatable) {
  29621. var _null = null;
  29622. this._addOption$11$hide$negatable($name, abbr, help, _null, _null, _null, defaultsTo, _null, C.OptionType_nMZ, hide, negatable);
  29623. },
  29624. addFlag$2$hide: function($name, hide) {
  29625. return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, null, false, null, hide, true);
  29626. },
  29627. addFlag$2$help: function($name, help) {
  29628. return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, null, false, help, false, true);
  29629. },
  29630. addFlag$3$defaultsTo$help: function($name, defaultsTo, help) {
  29631. return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, null, defaultsTo, help, false, true);
  29632. },
  29633. addFlag$3$help$negatable: function($name, help, negatable) {
  29634. return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, null, false, help, false, negatable);
  29635. },
  29636. addFlag$4$abbr$help$negatable: function($name, abbr, help, negatable) {
  29637. return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, abbr, false, help, false, negatable);
  29638. },
  29639. addFlag$3$abbr$help: function($name, abbr, help) {
  29640. return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, abbr, false, help, false, true);
  29641. },
  29642. addOption$7$abbr$allowed$defaultsTo$help$hide$valueHelp: function($name, abbr, allowed, defaultsTo, help, hide, valueHelp) {
  29643. this._addOption$11$hide$splitCommas($name, abbr, help, valueHelp, allowed, null, defaultsTo, null, C.OptionType_YwU, hide, null);
  29644. },
  29645. addOption$2$hide: function($name, hide) {
  29646. return this.addOption$7$abbr$allowed$defaultsTo$help$hide$valueHelp($name, null, null, null, null, hide, null);
  29647. },
  29648. addOption$6$abbr$allowed$defaultsTo$help$valueHelp: function($name, abbr, allowed, defaultsTo, help, valueHelp) {
  29649. return this.addOption$7$abbr$allowed$defaultsTo$help$hide$valueHelp($name, abbr, allowed, defaultsTo, help, false, valueHelp);
  29650. },
  29651. addOption$4$allowed$defaultsTo$help: function($name, allowed, defaultsTo, help) {
  29652. return this.addOption$7$abbr$allowed$defaultsTo$help$hide$valueHelp($name, null, allowed, defaultsTo, help, false, null);
  29653. },
  29654. addMultiOption$5$abbr$help$splitCommas$valueHelp: function($name, abbr, help, splitCommas, valueHelp) {
  29655. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_String);
  29656. this._addOption$11$hide$splitCommas($name, abbr, help, valueHelp, null, null, t1, null, C.OptionType_qyr, false, false);
  29657. },
  29658. _addOption$12$hide$negatable$splitCommas: function($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, hide, negatable, splitCommas) {
  29659. var t2, existing, t3, option,
  29660. t1 = this._arg_parser$_options;
  29661. if (t1.containsKey$1($name))
  29662. throw H.wrapException(P.ArgumentError$('Duplicate option "' + $name + '".'));
  29663. t2 = abbr != null;
  29664. if (t2) {
  29665. existing = this.findByAbbreviation$1(abbr);
  29666. if (existing != null)
  29667. throw H.wrapException(P.ArgumentError$('Abbreviation "' + abbr + '" is already used by "' + existing.name + '".'));
  29668. }
  29669. t3 = allowed == null ? null : P.List_List$unmodifiable(allowed, type$.String);
  29670. option = new G.Option($name, abbr, help, valueHelp, t3, null, defaultsTo, negatable, callback, type, splitCommas == null ? type === C.OptionType_qyr : splitCommas, hide);
  29671. if ($name.length === 0)
  29672. H.throwExpression(P.ArgumentError$("Name cannot be empty."));
  29673. else if (C.JSString_methods.startsWith$1($name, "-"))
  29674. H.throwExpression(P.ArgumentError$("Name " + $name + ' cannot start with "-".'));
  29675. t3 = $.$get$Option__invalidChars()._nativeRegExp;
  29676. if (t3.test($name))
  29677. H.throwExpression(P.ArgumentError$('Name "' + $name + '" contains invalid characters.'));
  29678. if (t2) {
  29679. if (abbr.length !== 1)
  29680. H.throwExpression(P.ArgumentError$("Abbreviation must be null or have length 1."));
  29681. else if (abbr === "-")
  29682. H.throwExpression(P.ArgumentError$('Abbreviation cannot be "-".'));
  29683. if (t3.test(abbr))
  29684. H.throwExpression(P.ArgumentError$("Abbreviation is an invalid character."));
  29685. }
  29686. t1.$indexSet(0, $name, option);
  29687. this._optionsAndSeparators.push(option);
  29688. },
  29689. _addOption$11$hide$splitCommas: function($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, hide, splitCommas) {
  29690. return this._addOption$12$hide$negatable$splitCommas($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, hide, false, splitCommas);
  29691. },
  29692. _addOption$11$hide$negatable: function($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, hide, negatable) {
  29693. return this._addOption$12$hide$negatable$splitCommas($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, hide, negatable, null);
  29694. },
  29695. findByAbbreviation$1: function(abbr) {
  29696. return this.options._collection$_map.get$values().firstWhere$2$orElse(0, new N.ArgParser_findByAbbreviation_closure(abbr), new N.ArgParser_findByAbbreviation_closure0());
  29697. }
  29698. };
  29699. N.ArgParser_findByAbbreviation_closure.prototype = {
  29700. call$1: function(option) {
  29701. return option.abbr === this.abbr;
  29702. }
  29703. };
  29704. N.ArgParser_findByAbbreviation_closure0.prototype = {
  29705. call$0: function() {
  29706. return null;
  29707. },
  29708. $signature: 0
  29709. };
  29710. Z.ArgParserException.prototype = {};
  29711. V.ArgResults.prototype = {
  29712. $index: function(_, $name) {
  29713. var t1 = this._parser.options._collection$_map;
  29714. if (!t1.containsKey$1($name))
  29715. throw H.wrapException(P.ArgumentError$('Could not find an option named "' + $name + '".'));
  29716. return t1.$index(0, $name).getOrDefault$1(this._parsed.$index(0, $name));
  29717. },
  29718. wasParsed$1: function($name) {
  29719. if (this._parser.options._collection$_map.$index(0, $name) == null)
  29720. throw H.wrapException(P.ArgumentError$('Could not find an option named "' + H.S($name) + '".'));
  29721. return this._parsed.containsKey$1($name);
  29722. }
  29723. };
  29724. G.Option.prototype = {
  29725. getOrDefault$1: function(value) {
  29726. var t1;
  29727. if (value != null)
  29728. return value;
  29729. if (this.type === C.OptionType_qyr) {
  29730. t1 = this.defaultsTo;
  29731. return t1 == null ? H.setRuntimeTypeInfo([], type$.JSArray_String) : t1;
  29732. }
  29733. return this.defaultsTo;
  29734. }
  29735. };
  29736. G.OptionType.prototype = {};
  29737. G.Parser0.prototype = {
  29738. parse$0: function() {
  29739. var commandName, commandParser, error, t1, t2, t4, t5, t6, t7, t8, t9, command, exception, _i, _this = this,
  29740. t3 = _this.args,
  29741. $arguments = t3.toList$0(0),
  29742. commandResults = null;
  29743. for (t4 = _this.rest, t5 = _this.grammar, t6 = !t5.allowTrailingOptions, t7 = t5.commands; !t3.get$isEmpty(t3);) {
  29744. t8 = t3._collection$_head;
  29745. t9 = t8 === t3._collection$_tail;
  29746. if (t9)
  29747. H.throwExpression(H.IterableElementError_noElement());
  29748. t8 = t3._collection$_table[t8];
  29749. if (t8 === "--") {
  29750. t3.removeFirst$0();
  29751. break;
  29752. }
  29753. if (t9)
  29754. H.throwExpression(H.IterableElementError_noElement());
  29755. command = t7._collection$_map.$index(0, t8);
  29756. if (command != null) {
  29757. if (t4.length !== 0)
  29758. H.throwExpression(Z.ArgParserException$("Cannot specify arguments before a command.", null));
  29759. commandName = t3.removeFirst$0();
  29760. t6 = type$.JSArray_String;
  29761. t7 = H.setRuntimeTypeInfo([], t6);
  29762. C.JSArray_methods.addAll$1(t7, t4);
  29763. commandParser = new G.Parser0(commandName, _this, command, t3, t7, P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.dynamic));
  29764. try {
  29765. commandResults = commandParser.parse$0();
  29766. } catch (exception) {
  29767. t3 = H.unwrapException(exception);
  29768. if (t3 instanceof Z.ArgParserException) {
  29769. error = t3;
  29770. if (commandName == null)
  29771. throw exception;
  29772. t3 = error.message;
  29773. t1 = H.setRuntimeTypeInfo([], t6);
  29774. J.add$1$ax(t1, commandName);
  29775. for (t4 = error.commands, t5 = t4.length, _i = 0; _i < t5; ++_i) {
  29776. t2 = t4[_i];
  29777. J.add$1$ax(t1, t2);
  29778. }
  29779. throw H.wrapException(Z.ArgParserException$(t3, t1));
  29780. } else
  29781. throw exception;
  29782. }
  29783. C.JSArray_methods.set$length(t4, 0);
  29784. break;
  29785. }
  29786. if (_this.parseSoloOption$0())
  29787. continue;
  29788. if (_this.parseAbbreviation$1(_this))
  29789. continue;
  29790. if (_this.parseLongOption$0())
  29791. continue;
  29792. if (t6)
  29793. break;
  29794. t4.push(t3.removeFirst$0());
  29795. }
  29796. t5.options._collection$_map.forEach$1(0, new G.Parser_parse_closure(_this));
  29797. C.JSArray_methods.addAll$1(t4, t3);
  29798. t3.clear$0(0);
  29799. return V.ArgResults$_(t5, _this.results, _this.commandName, commandResults, t4, $arguments);
  29800. },
  29801. readNextArgAsValue$1: function(option) {
  29802. var t1 = this.args,
  29803. t2 = t1.get$isEmpty(t1),
  29804. t3 = 'Missing argument for "' + option.name + '".';
  29805. if (t2)
  29806. H.throwExpression(Z.ArgParserException$(t3, null));
  29807. this.setOption$3(this.results, option, t1.get$first(t1));
  29808. t1.removeFirst$0();
  29809. },
  29810. parseSoloOption$0: function() {
  29811. var opt, option, t2, _this = this,
  29812. t1 = _this.args;
  29813. if (t1.get$first(t1).length !== 2)
  29814. return false;
  29815. if (!J.startsWith$1$s(t1.get$first(t1), "-"))
  29816. return false;
  29817. opt = t1.get$first(t1)[1];
  29818. if (!G._isLetterOrDigit(C.JSString_methods._codeUnitAt$1(opt, 0)))
  29819. return false;
  29820. option = _this.grammar.findByAbbreviation$1(opt);
  29821. if (option == null) {
  29822. t1 = _this.parent;
  29823. t2 = 'Could not find an option or flag "-' + opt + '".';
  29824. if (t1 == null)
  29825. H.throwExpression(Z.ArgParserException$(t2, null));
  29826. return t1.parseSoloOption$0();
  29827. }
  29828. t1.removeFirst$0();
  29829. if (option.type === C.OptionType_nMZ)
  29830. _this.results.$indexSet(0, option.name, true);
  29831. else
  29832. _this.readNextArgAsValue$1(option);
  29833. return true;
  29834. },
  29835. parseAbbreviation$1: function(innermostCommand) {
  29836. var index, t2, t3, lettersAndDigits, rest, c, first, i, i0, _this = this,
  29837. t1 = _this.args;
  29838. if (t1.get$first(t1).length < 2)
  29839. return false;
  29840. if (!J.startsWith$1$s(t1.get$first(t1), "-"))
  29841. return false;
  29842. index = 1;
  29843. while (true) {
  29844. t2 = t1._collection$_head;
  29845. t3 = t2 === t1._collection$_tail;
  29846. if (t3)
  29847. H.throwExpression(H.IterableElementError_noElement());
  29848. t2 = t1._collection$_table[t2];
  29849. if (index < t2.length) {
  29850. if (t3)
  29851. H.throwExpression(H.IterableElementError_noElement());
  29852. t2 = J._codeUnitAt$1$s(t2, index);
  29853. if (!(t2 >= 65 && t2 <= 90))
  29854. if (!(t2 >= 97 && t2 <= 122))
  29855. t2 = t2 >= 48 && t2 <= 57;
  29856. else
  29857. t2 = true;
  29858. else
  29859. t2 = true;
  29860. } else
  29861. t2 = false;
  29862. if (!t2)
  29863. break;
  29864. ++index;
  29865. }
  29866. if (index === 1)
  29867. return false;
  29868. lettersAndDigits = J.substring$2$s(t1.get$first(t1), 1, index);
  29869. rest = J.substring$1$s(t1.get$first(t1), index);
  29870. if (C.JSString_methods.contains$1(rest, "\n") || C.JSString_methods.contains$1(rest, "\r"))
  29871. return false;
  29872. c = C.JSString_methods.substring$2(lettersAndDigits, 0, 1);
  29873. first = _this.grammar.findByAbbreviation$1(c);
  29874. if (first == null) {
  29875. t1 = _this.parent;
  29876. t2 = 'Could not find an option with short name "-' + c + '".';
  29877. if (t1 == null)
  29878. H.throwExpression(Z.ArgParserException$(t2, null));
  29879. return t1.parseAbbreviation$1(innermostCommand);
  29880. } else if (first.type !== C.OptionType_nMZ)
  29881. _this.setOption$3(_this.results, first, C.JSString_methods.substring$1(lettersAndDigits, 1) + rest);
  29882. else {
  29883. t2 = 'Option "-' + c + '" is a flag and cannot handle value "' + C.JSString_methods.substring$1(lettersAndDigits, 1) + rest + '".';
  29884. if (rest !== "")
  29885. H.throwExpression(Z.ArgParserException$(t2, null));
  29886. for (t2 = lettersAndDigits.length, i = 0; i < t2; i = i0) {
  29887. i0 = i + 1;
  29888. innermostCommand.parseShortFlag$1(C.JSString_methods.substring$2(lettersAndDigits, i, i0));
  29889. }
  29890. }
  29891. t1.removeFirst$0();
  29892. return true;
  29893. },
  29894. parseShortFlag$1: function(c) {
  29895. var t1, t2,
  29896. option = this.grammar.findByAbbreviation$1(c);
  29897. if (option == null) {
  29898. t1 = this.parent;
  29899. t2 = 'Could not find an option with short name "-' + c + '".';
  29900. if (t1 == null)
  29901. H.throwExpression(Z.ArgParserException$(t2, null));
  29902. t1.parseShortFlag$1(c);
  29903. return;
  29904. }
  29905. t1 = option.type;
  29906. t2 = 'Option "-' + c + '" must be a flag to be in a collapsed "-".';
  29907. if (t1 !== C.OptionType_nMZ)
  29908. H.throwExpression(Z.ArgParserException$(t2, null));
  29909. this.results.$indexSet(0, option.name, true);
  29910. },
  29911. parseLongOption$0: function() {
  29912. var index, t2, $name, t3, i, t4, t5, value, option, _this = this, _null = null,
  29913. _s32_ = 'Could not find an option named "',
  29914. t1 = _this.args;
  29915. if (!J.startsWith$1$s(t1.get$first(t1), "--"))
  29916. return false;
  29917. index = J.indexOf$1$asx(t1.get$first(t1), "=");
  29918. t2 = index === -1;
  29919. $name = t2 ? J.substring$1$s(t1.get$first(t1), 2) : J.substring$2$s(t1.get$first(t1), 2, index);
  29920. for (t3 = $name.length, i = 0; i !== t3; ++i) {
  29921. t4 = C.JSString_methods._codeUnitAt$1($name, i);
  29922. if (!(t4 >= 65 && t4 <= 90))
  29923. if (!(t4 >= 97 && t4 <= 122))
  29924. t5 = t4 >= 48 && t4 <= 57;
  29925. else
  29926. t5 = true;
  29927. else
  29928. t5 = true;
  29929. if (!(t5 || t4 === 45 || t4 === 95))
  29930. return false;
  29931. }
  29932. value = t2 ? _null : J.substring$1$s(t1.get$first(t1), index + 1);
  29933. t2 = value != null;
  29934. if (t2)
  29935. t3 = C.JSString_methods.contains$1(value, "\n") || C.JSString_methods.contains$1(value, "\r");
  29936. else
  29937. t3 = false;
  29938. if (t3)
  29939. return false;
  29940. t3 = _this.grammar.options._collection$_map;
  29941. option = t3.$index(0, $name);
  29942. if (option != null) {
  29943. t1.removeFirst$0();
  29944. if (option.type === C.OptionType_nMZ) {
  29945. t1 = 'Flag option "' + $name + '" should not be given a value.';
  29946. if (t2)
  29947. H.throwExpression(Z.ArgParserException$(t1, _null));
  29948. _this.results.$indexSet(0, option.name, true);
  29949. } else if (t2)
  29950. _this.setOption$3(_this.results, option, value);
  29951. else
  29952. _this.readNextArgAsValue$1(option);
  29953. } else if (C.JSString_methods.startsWith$1($name, "no-")) {
  29954. $name = C.JSString_methods.substring$1($name, 3);
  29955. option = t3.$index(0, $name);
  29956. if (option == null) {
  29957. t1 = _this.parent;
  29958. t2 = _s32_ + $name + '".';
  29959. if (t1 == null)
  29960. H.throwExpression(Z.ArgParserException$(t2, _null));
  29961. return t1.parseLongOption$0();
  29962. }
  29963. t1.removeFirst$0();
  29964. t1 = option.type;
  29965. t2 = 'Cannot negate non-flag option "' + $name + '".';
  29966. if (t1 !== C.OptionType_nMZ)
  29967. H.throwExpression(Z.ArgParserException$(t2, _null));
  29968. t1 = option.negatable;
  29969. t2 = 'Cannot negate option "' + $name + '".';
  29970. if (!t1)
  29971. H.throwExpression(Z.ArgParserException$(t2, _null));
  29972. _this.results.$indexSet(0, option.name, false);
  29973. } else {
  29974. t1 = _this.parent;
  29975. t2 = _s32_ + $name + '".';
  29976. if (t1 == null)
  29977. H.throwExpression(Z.ArgParserException$(t2, _null));
  29978. return t1.parseLongOption$0();
  29979. }
  29980. return true;
  29981. },
  29982. setOption$3: function(results, option, value) {
  29983. var list, t1, t2, t3, _i, element;
  29984. if (option.type !== C.OptionType_qyr) {
  29985. this._validateAllowed$2(option, value);
  29986. results.$indexSet(0, option.name, value);
  29987. return;
  29988. }
  29989. list = results.putIfAbsent$2(option.name, new G.Parser_setOption_closure());
  29990. if (option.splitCommas)
  29991. for (t1 = value.split(","), t2 = t1.length, t3 = J.getInterceptor$ax(list), _i = 0; _i < t2; ++_i) {
  29992. element = t1[_i];
  29993. this._validateAllowed$2(option, element);
  29994. t3.add$1(list, element);
  29995. }
  29996. else {
  29997. this._validateAllowed$2(option, value);
  29998. J.add$1$ax(list, value);
  29999. }
  30000. },
  30001. _validateAllowed$2: function(option, value) {
  30002. var t2,
  30003. t1 = option.allowed;
  30004. if (t1 == null)
  30005. return;
  30006. t1 = C.JSArray_methods.contains$1(t1, value);
  30007. t2 = '"' + H.S(value) + '" is not an allowed value for option "' + option.name + '".';
  30008. if (!t1)
  30009. H.throwExpression(Z.ArgParserException$(t2, null));
  30010. }
  30011. };
  30012. G.Parser_parse_closure.prototype = {
  30013. call$2: function($name, option) {
  30014. var t1 = option.callback;
  30015. if (t1 == null)
  30016. return;
  30017. t1.call$1(option.getOrDefault$1(this.$this.results.$index(0, $name)));
  30018. }
  30019. };
  30020. G.Parser_setOption_closure.prototype = {
  30021. call$0: function() {
  30022. return H.setRuntimeTypeInfo([], type$.JSArray_String);
  30023. },
  30024. $signature: 32
  30025. };
  30026. G.Usage.prototype = {
  30027. generate$0: function() {
  30028. var t1, t2, t3, t4, _i, optionOrSeparator, t5, t6, allowedNames, t7, t8, _i0, $name, isDefault, t9, _this = this;
  30029. _this.buffer = new P.StringBuffer("");
  30030. _this.calculateColumnWidths$0();
  30031. for (t1 = _this.optionsAndSeparators, t2 = t1.length, t3 = type$.Option, t4 = type$.List_dynamic, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  30032. optionOrSeparator = t1[_i];
  30033. if (typeof optionOrSeparator == "string") {
  30034. t5 = _this.buffer;
  30035. t6 = t5._contents;
  30036. t5._contents = (t6.length !== 0 ? t5._contents = t6 + "\n\n" : t6) + optionOrSeparator;
  30037. _this.newlinesNeeded = 1;
  30038. continue;
  30039. }
  30040. t3._as(optionOrSeparator);
  30041. if (optionOrSeparator.hide)
  30042. continue;
  30043. t5 = optionOrSeparator.abbr;
  30044. _this.write$2(0, 0, t5 == null ? "" : "-" + t5 + ", ");
  30045. _this.write$2(0, 1, _this.getLongOption$1(optionOrSeparator));
  30046. t5 = optionOrSeparator.help;
  30047. if (t5 != null)
  30048. _this.write$2(0, 2, t5);
  30049. t5 = optionOrSeparator.allowedHelp;
  30050. if (t5 != null) {
  30051. allowedNames = J.toList$1$growable$ax(t5.get$keys(), false);
  30052. if (!!allowedNames.immutable$list)
  30053. H.throwExpression(P.UnsupportedError$("sort"));
  30054. t6 = allowedNames.length - 1;
  30055. if (t6 - 0 <= 32)
  30056. H.Sort__insertionSort(allowedNames, 0, t6, J._interceptors_JSArray__compareAny$closure());
  30057. else
  30058. H.Sort__dualPivotQuicksort(allowedNames, 0, t6, J._interceptors_JSArray__compareAny$closure());
  30059. ++_this.newlinesNeeded;
  30060. _this.numHelpLines = _this.currentColumn = 0;
  30061. for (t6 = allowedNames.length, t7 = optionOrSeparator.defaultsTo, t8 = t4._is(t7), _i0 = 0; _i0 < allowedNames.length; allowedNames.length === t6 || (0, H.throwConcurrentModificationError)(allowedNames), ++_i0) {
  30062. $name = allowedNames[_i0];
  30063. isDefault = t8 ? C.JSArray_methods.contains$1(t7, $name) : t7 == null ? $name == null : t7 === $name;
  30064. t9 = " [" + H.S($name) + "]";
  30065. _this.write$2(0, 1, t9 + (isDefault ? " (default)" : ""));
  30066. _this.write$2(0, 2, t5.$index(0, $name));
  30067. }
  30068. ++_this.newlinesNeeded;
  30069. _this.numHelpLines = _this.currentColumn = 0;
  30070. } else if (optionOrSeparator.allowed != null)
  30071. _this.write$2(0, 2, _this.buildAllowedList$1(optionOrSeparator));
  30072. else {
  30073. t5 = optionOrSeparator.type;
  30074. if (t5 === C.OptionType_nMZ) {
  30075. if (optionOrSeparator.defaultsTo === true)
  30076. _this.write$2(0, 2, "(defaults to on)");
  30077. } else if (t5 === C.OptionType_qyr) {
  30078. t5 = optionOrSeparator.defaultsTo;
  30079. if (t5 != null && J.get$isNotEmpty$asx(t5))
  30080. _this.write$2(0, 2, "(defaults to " + J.map$1$ax(t5, new G.Usage_generate_closure()).join$1(0, ", ") + ")");
  30081. } else {
  30082. t5 = optionOrSeparator.defaultsTo;
  30083. if (t5 != null)
  30084. _this.write$2(0, 2, '(defaults to "' + H.S(t5) + '")');
  30085. }
  30086. }
  30087. }
  30088. return J.toString$0$(_this.buffer);
  30089. },
  30090. getLongOption$1: function(option) {
  30091. var t1 = option.name,
  30092. result = option.negatable ? "--[no-]" + t1 : "--" + t1;
  30093. t1 = option.valueHelp;
  30094. return t1 != null ? result + ("=<" + t1 + ">") : result;
  30095. },
  30096. calculateColumnWidths$0: function() {
  30097. var t1, t2, t3, abbr, title, _i, option, t4, t5, t6, allowed, isDefault, t7;
  30098. for (t1 = this.optionsAndSeparators, t2 = t1.length, t3 = type$.List_dynamic, abbr = 0, title = 0, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  30099. option = t1[_i];
  30100. if (!(option instanceof G.Option))
  30101. continue;
  30102. if (option.hide)
  30103. continue;
  30104. t4 = option.abbr;
  30105. abbr = Math.max(abbr, (t4 == null ? "" : "-" + t4 + ", ").length);
  30106. title = Math.max(title, this.getLongOption$1(option).length);
  30107. t4 = option.allowedHelp;
  30108. if (t4 != null)
  30109. for (t4 = J.get$iterator$ax(t4.get$keys()), t5 = option.defaultsTo, t6 = t3._is(t5); t4.moveNext$0();) {
  30110. allowed = t4.get$current(t4);
  30111. isDefault = t6 ? C.JSArray_methods.contains$1(t5, allowed) : t5 == null ? allowed == null : t5 === allowed;
  30112. t7 = " [" + H.S(allowed) + "]";
  30113. title = Math.max(title, (t7 + (isDefault ? " (default)" : "")).length);
  30114. }
  30115. }
  30116. this.columnWidths = H.setRuntimeTypeInfo([abbr, title + 4], type$.JSArray_int);
  30117. },
  30118. write$2: function(_, column, text) {
  30119. var t1, _i,
  30120. lines = H.setRuntimeTypeInfo(text.split("\n"), type$.JSArray_String);
  30121. this.columnWidths.length;
  30122. while (true) {
  30123. if (!(lines.length !== 0 && J.trim$0$s(lines[0]) === ""))
  30124. break;
  30125. if (!!lines.fixed$length)
  30126. H.throwExpression(P.UnsupportedError$("removeRange"));
  30127. P.RangeError_checkValidRange(0, 1, lines.length);
  30128. lines.splice(0, 1);
  30129. }
  30130. while (true) {
  30131. t1 = lines.length;
  30132. if (!(t1 !== 0 && J.trim$0$s(lines[t1 - 1]) === ""))
  30133. break;
  30134. lines.pop();
  30135. }
  30136. for (t1 = lines.length, _i = 0; _i < lines.length; lines.length === t1 || (0, H.throwConcurrentModificationError)(lines), ++_i)
  30137. this.writeLine$2(column, lines[_i]);
  30138. },
  30139. writeLine$2: function(column, text) {
  30140. var t1, t2, _this = this;
  30141. for (; t1 = _this.newlinesNeeded, t1 > 0;) {
  30142. _this.buffer._contents += "\n";
  30143. _this.newlinesNeeded = t1 - 1;
  30144. }
  30145. for (; t1 = _this.currentColumn, t1 !== column;) {
  30146. t2 = _this.buffer;
  30147. if (t1 < 2)
  30148. t2._contents += C.JSString_methods.$mul(" ", _this.columnWidths[t1]);
  30149. else
  30150. t2._contents += "\n";
  30151. _this.currentColumn = (_this.currentColumn + 1) % 3;
  30152. }
  30153. t1 = _this.columnWidths;
  30154. t1.length;
  30155. t2 = _this.buffer;
  30156. if (column < 2)
  30157. t2._contents += J.padRight$1$s(text, t1[column]);
  30158. else {
  30159. t2.toString;
  30160. t2._contents += H.S(text);
  30161. }
  30162. _this.currentColumn = (_this.currentColumn + 1) % 3;
  30163. t1 = column === 2;
  30164. if (t1)
  30165. ++_this.newlinesNeeded;
  30166. if (t1)
  30167. ++_this.numHelpLines;
  30168. else
  30169. _this.numHelpLines = 0;
  30170. },
  30171. buildAllowedList$1: function(option) {
  30172. var t2, first, _i, t3, allowed,
  30173. t1 = option.defaultsTo,
  30174. isDefault = type$.List_dynamic._is(t1) ? C.JSArray_methods.get$contains(t1) : new G.Usage_buildAllowedList_closure(option);
  30175. for (t1 = option.allowed, t2 = t1.length, first = true, _i = 0, t3 = "["; _i < t2; ++_i, first = false) {
  30176. allowed = t1[_i];
  30177. if (!first)
  30178. t3 += ", ";
  30179. t3 += H.S(allowed);
  30180. if (isDefault.call$1(allowed))
  30181. t3 += " (default)";
  30182. }
  30183. t1 = t3 + "]";
  30184. return t1.charCodeAt(0) == 0 ? t1 : t1;
  30185. }
  30186. };
  30187. G.Usage_generate_closure.prototype = {
  30188. call$1: function(value) {
  30189. return '"' + H.S(value) + '"';
  30190. },
  30191. $signature: 105
  30192. };
  30193. G.Usage_buildAllowedList_closure.prototype = {
  30194. call$1: function(value) {
  30195. var t1 = this.option.defaultsTo;
  30196. return value == null ? t1 == null : value === t1;
  30197. },
  30198. $signature: 53
  30199. };
  30200. V.ErrorResult.prototype = {
  30201. complete$1: function(completer) {
  30202. completer.completeError$2(this.error, this.stackTrace);
  30203. },
  30204. get$hashCode: function(_) {
  30205. return (J.get$hashCode$(this.error) ^ J.get$hashCode$(this.stackTrace) ^ 492929599) >>> 0;
  30206. },
  30207. $eq: function(_, other) {
  30208. if (other == null)
  30209. return false;
  30210. return other instanceof V.ErrorResult && J.$eq$(this.error, other.error) && this.stackTrace == other.stackTrace;
  30211. },
  30212. $isResult: 1
  30213. };
  30214. E.Result.prototype = {};
  30215. F.ValueResult.prototype = {
  30216. complete$1: function(completer) {
  30217. completer.complete$1(this.value);
  30218. },
  30219. get$hashCode: function(_) {
  30220. return (J.get$hashCode$(this.value) ^ 842997089) >>> 0;
  30221. },
  30222. $eq: function(_, other) {
  30223. if (other == null)
  30224. return false;
  30225. return other instanceof F.ValueResult && J.$eq$(this.value, other.value);
  30226. },
  30227. $isResult: 1
  30228. };
  30229. Y.StreamCompleter.prototype = {
  30230. setSourceStream$1: function(sourceStream) {
  30231. var t1 = this._stream_completer$_stream;
  30232. if (t1._sourceStream != null)
  30233. throw H.wrapException(P.StateError$("Source stream already set"));
  30234. t1._sourceStream = sourceStream;
  30235. if (t1._stream_completer$_controller != null)
  30236. t1._linkStreamToController$0();
  30237. },
  30238. setError$2: function(error, stackTrace) {
  30239. var t1 = this.$ti._precomputed1;
  30240. this.setSourceStream$1(P.Stream_Stream$fromFuture(P.Future_Future$error(error, stackTrace, t1), t1));
  30241. },
  30242. setError$1: function(error) {
  30243. return this.setError$2(error, null);
  30244. }
  30245. };
  30246. Y._CompleterStream.prototype = {
  30247. listen$4$cancelOnError$onDone$onError: function(onData, cancelOnError, onDone, onError) {
  30248. var t1, _this = this, _null = null;
  30249. if (_this._stream_completer$_controller == null) {
  30250. t1 = _this._sourceStream;
  30251. if (t1 != null && !t1.get$isBroadcast())
  30252. return _this._sourceStream.listen$4$cancelOnError$onDone$onError(onData, cancelOnError, onDone, onError);
  30253. _this._stream_completer$_controller = P.StreamController_StreamController(_null, _null, _null, _null, true, _this.$ti._precomputed1);
  30254. if (_this._sourceStream != null)
  30255. _this._linkStreamToController$0();
  30256. }
  30257. t1 = _this._stream_completer$_controller;
  30258. t1.toString;
  30259. return new P._ControllerStream(t1, H._instanceType(t1)._eval$1("_ControllerStream<1>")).listen$4$cancelOnError$onDone$onError(onData, cancelOnError, onDone, onError);
  30260. },
  30261. listen$3$onDone$onError: function(onData, onDone, onError) {
  30262. return this.listen$4$cancelOnError$onDone$onError(onData, null, onDone, onError);
  30263. },
  30264. listen$1: function(onData) {
  30265. return this.listen$4$cancelOnError$onDone$onError(onData, null, null, null);
  30266. },
  30267. _linkStreamToController$0: function() {
  30268. var t1 = this._stream_completer$_controller.addStream$2$cancelOnError(this._sourceStream, false),
  30269. t2 = this._stream_completer$_controller;
  30270. t1.whenComplete$1(t2.get$close(t2));
  30271. }
  30272. };
  30273. L.StreamGroup.prototype = {
  30274. add$1: function(_, stream) {
  30275. var t1, _this = this;
  30276. if (_this._closed)
  30277. throw H.wrapException(P.StateError$("Can't add a Stream to a closed StreamGroup."));
  30278. t1 = _this._stream_group$_state;
  30279. if (t1 === C._StreamGroupState_dormant)
  30280. _this._subscriptions.putIfAbsent$2(stream, new L.StreamGroup_add_closure());
  30281. else if (t1 === C._StreamGroupState_canceled)
  30282. return stream.listen$1(null).cancel$0();
  30283. else
  30284. _this._subscriptions.putIfAbsent$2(stream, new L.StreamGroup_add_closure0(_this, stream));
  30285. return null;
  30286. },
  30287. remove$1: function(_, stream) {
  30288. var t1 = this._subscriptions,
  30289. subscription = t1.remove$1(0, stream),
  30290. future = subscription == null ? null : subscription.cancel$0();
  30291. if (this._closed && t1.get$isEmpty(t1))
  30292. this._controller.close$0(0);
  30293. return future;
  30294. },
  30295. _onListen$0: function() {
  30296. this._stream_group$_state = C._StreamGroupState_listening;
  30297. this._subscriptions.forEach$1(0, new L.StreamGroup__onListen_closure(this));
  30298. },
  30299. _onPause$0: function() {
  30300. this._stream_group$_state = C._StreamGroupState_paused;
  30301. for (var t1 = this._subscriptions.get$values(), t1 = t1.get$iterator(t1); t1.moveNext$0();)
  30302. t1.get$current(t1).pause$0(0);
  30303. },
  30304. _onResume$0: function() {
  30305. this._stream_group$_state = C._StreamGroupState_listening;
  30306. for (var t1 = this._subscriptions.get$values(), t1 = t1.get$iterator(t1); t1.moveNext$0();)
  30307. t1.get$current(t1).resume$0();
  30308. },
  30309. _onCancel$0: function() {
  30310. var t1, t2, t3, futures;
  30311. this._stream_group$_state = C._StreamGroupState_canceled;
  30312. t1 = this._subscriptions;
  30313. t2 = t1.get$values();
  30314. t2 = H.MappedIterable_MappedIterable(t2, new L.StreamGroup__onCancel_closure(), H._instanceType(t2)._eval$1("Iterable.E"), type$.Future_void);
  30315. t3 = H._instanceType(t2)._eval$1("WhereIterable<Iterable.E>");
  30316. futures = P.List_List$from(new H.WhereIterable(t2, new L.StreamGroup__onCancel_closure0(), t3), true, t3._eval$1("Iterable.E"));
  30317. t1.clear$0(0);
  30318. return futures.length === 0 ? null : P.Future_wait(futures, type$.void);
  30319. },
  30320. _listenToStream$1: function(stream) {
  30321. var t1 = this._controller,
  30322. subscription = stream.listen$3$onDone$onError(t1.get$add(t1), new L.StreamGroup__listenToStream_closure(this, stream), t1.get$addError());
  30323. if (this._stream_group$_state === C._StreamGroupState_paused)
  30324. subscription.pause$0(0);
  30325. return subscription;
  30326. }
  30327. };
  30328. L.StreamGroup_add_closure.prototype = {
  30329. call$0: function() {
  30330. return null;
  30331. },
  30332. $signature: 0
  30333. };
  30334. L.StreamGroup_add_closure0.prototype = {
  30335. call$0: function() {
  30336. return this.$this._listenToStream$1(this.stream);
  30337. },
  30338. $signature: function() {
  30339. return this.$this.$ti._eval$1("StreamSubscription<1>()");
  30340. }
  30341. };
  30342. L.StreamGroup__onListen_closure.prototype = {
  30343. call$2: function(stream, subscription) {
  30344. var t1;
  30345. if (subscription != null)
  30346. return;
  30347. t1 = this.$this;
  30348. t1._subscriptions.$indexSet(0, stream, t1._listenToStream$1(stream));
  30349. }
  30350. };
  30351. L.StreamGroup__onCancel_closure.prototype = {
  30352. call$1: function(subscription) {
  30353. return subscription.cancel$0();
  30354. }
  30355. };
  30356. L.StreamGroup__onCancel_closure0.prototype = {
  30357. call$1: function(future) {
  30358. return future != null;
  30359. }
  30360. };
  30361. L.StreamGroup__listenToStream_closure.prototype = {
  30362. call$0: function() {
  30363. return this.$this.remove$1(0, this.stream);
  30364. },
  30365. "call*": "call$0",
  30366. $requiredArgCount: 0,
  30367. $signature: 61
  30368. };
  30369. L._StreamGroupState.prototype = {
  30370. toString$0: function(_) {
  30371. return this.name;
  30372. }
  30373. };
  30374. G.StreamQueue.prototype = {
  30375. get$next: function() {
  30376. var t1 = this.$ti,
  30377. t2 = new P._Future($.Zone__current, t1._eval$1("_Future<1>"));
  30378. this._addRequest$1(new G._NextRequest(new P._AsyncCompleter(t2, t1._eval$1("_AsyncCompleter<1>")), t1._eval$1("_NextRequest<1>")));
  30379. return t2;
  30380. },
  30381. _updateRequests$0: function() {
  30382. var t1, t2, t3, _this = this;
  30383. for (t1 = _this._requestQueue, t2 = _this._eventQueue; !t1.get$isEmpty(t1);) {
  30384. t3 = t1._collection$_head;
  30385. if (t3 === t1._collection$_tail)
  30386. H.throwExpression(H.IterableElementError_noElement());
  30387. if (t1._collection$_table[t3].update$2(t2, _this._isDone))
  30388. t1.removeFirst$0();
  30389. else
  30390. return;
  30391. }
  30392. if (!_this._isDone)
  30393. _this._stream_queue$_subscription.pause$0(0);
  30394. },
  30395. _ensureListening$0: function() {
  30396. var t1, _this = this;
  30397. if (_this._isDone)
  30398. return;
  30399. t1 = _this._stream_queue$_subscription;
  30400. if (t1 == null)
  30401. _this._stream_queue$_subscription = _this._stream_queue$_source.listen$3$onDone$onError(new G.StreamQueue__ensureListening_closure(_this), new G.StreamQueue__ensureListening_closure0(_this), new G.StreamQueue__ensureListening_closure1(_this));
  30402. else
  30403. t1.resume$0();
  30404. },
  30405. _addResult$1: function(result) {
  30406. ++this._eventsReceived;
  30407. this._eventQueue._queue_list$_add$1(result);
  30408. this._updateRequests$0();
  30409. },
  30410. _addRequest$1: function(request) {
  30411. var _this = this,
  30412. t1 = _this._requestQueue;
  30413. if (t1._collection$_head === t1._collection$_tail) {
  30414. if (request.update$2(_this._eventQueue, _this._isDone))
  30415. return;
  30416. _this._ensureListening$0();
  30417. }
  30418. t1._add$1(request);
  30419. }
  30420. };
  30421. G.StreamQueue__ensureListening_closure.prototype = {
  30422. call$1: function(data) {
  30423. var t1 = this.$this;
  30424. t1._addResult$1(new F.ValueResult(data, t1.$ti._eval$1("ValueResult<1>")));
  30425. },
  30426. $signature: function() {
  30427. return this.$this.$ti._eval$1("Null(1)");
  30428. }
  30429. };
  30430. G.StreamQueue__ensureListening_closure1.prototype = {
  30431. call$2: function(error, stackTrace) {
  30432. this.$this._addResult$1(new V.ErrorResult(error, stackTrace));
  30433. },
  30434. "call*": "call$2",
  30435. $requiredArgCount: 2,
  30436. $signature: 58
  30437. };
  30438. G.StreamQueue__ensureListening_closure0.prototype = {
  30439. call$0: function() {
  30440. var t1 = this.$this;
  30441. t1._stream_queue$_subscription = null;
  30442. t1._isDone = true;
  30443. t1._updateRequests$0();
  30444. },
  30445. "call*": "call$0",
  30446. $requiredArgCount: 0,
  30447. $signature: 0
  30448. };
  30449. G._EventRequest.prototype = {};
  30450. G._NextRequest.prototype = {
  30451. update$2: function(events, isDone) {
  30452. if (!events.get$isEmpty(events)) {
  30453. events.removeFirst$0().complete$1(this._completer);
  30454. return true;
  30455. }
  30456. if (isDone) {
  30457. this._completer.completeError$2(new P.StateError("No elements"), P.StackTrace_current());
  30458. return true;
  30459. }
  30460. return false;
  30461. },
  30462. $is_EventRequest: 1
  30463. };
  30464. Q.Repl.prototype = {};
  30465. Q.closure106.prototype = {
  30466. call$1: function(text) {
  30467. return true;
  30468. }
  30469. };
  30470. B.ReplAdapter.prototype = {
  30471. runAsync$0: function() {
  30472. var $async$runAsync$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  30473. switch ($async$errorCode) {
  30474. case 2:
  30475. $async$next = $async$nextWhenCanceled;
  30476. $async$goto = $async$next.pop();
  30477. break;
  30478. case 1:
  30479. $async$currentError = $async$result;
  30480. $async$goto = $async$handler;
  30481. }
  30482. while (true)
  30483. switch ($async$goto) {
  30484. case 0:
  30485. // Function start
  30486. t1 = J.get$isTTY$x(self.process.stdin);
  30487. output = (t1 == null ? false : t1) ? self.process.stdout : null;
  30488. t1 = $async$self.repl;
  30489. $prompt = t1.prompt;
  30490. $async$self.rl = J.createInterface$1$x($.$get$readline(), {input: self.process.stdin, output: output, prompt: $prompt});
  30491. controller = P.StreamController_StreamController(null, null, null, null, false, type$.String);
  30492. queue = new G.StreamQueue(new P._ControllerStream(controller, H._instanceType(controller)._eval$1("_ControllerStream<1>")), Q.QueueList$(null, type$.Result_String), P.ListQueue$(type$._EventRequest_dynamic), type$.StreamQueue_String);
  30493. J.on$2$x($async$self.rl, "line", P.allowInterop(new B.ReplAdapter_runAsync_closure(controller)));
  30494. prompt0 = t1.continuation, prompt1 = $prompt, statement = "";
  30495. case 3:
  30496. // for condition
  30497. // trivial condition
  30498. t2 = J.get$isTTY$x(self.process.stdin);
  30499. if (t2 == null ? false : t2)
  30500. J.write$1$x(self.process.stdout, prompt1);
  30501. $async$goto = 5;
  30502. return P._asyncStarHelper(queue.get$next(), $async$runAsync$0, $async$controller);
  30503. case 5:
  30504. // returning from await.
  30505. line = $async$result;
  30506. t2 = J.get$isTTY$x(self.process.stdin);
  30507. if (!(t2 == null ? false : t2)) {
  30508. line0 = prompt1 + H.S(line);
  30509. t2 = $.printToZone;
  30510. if (t2 == null)
  30511. H.printString(line0);
  30512. else
  30513. t2.call$1(line0);
  30514. }
  30515. statement = C.JSString_methods.$add(statement, line);
  30516. $async$goto = t1.validator.call$1(statement) ? 6 : 8;
  30517. break;
  30518. case 6:
  30519. // then
  30520. $async$goto = 9;
  30521. $async$nextWhenCanceled = [1];
  30522. return P._asyncStarHelper(P._IterationMarker_yieldSingle(statement), $async$runAsync$0, $async$controller);
  30523. case 9:
  30524. // after yield
  30525. J.setPrompt$1$x($async$self.rl, $prompt);
  30526. prompt1 = $prompt;
  30527. statement = "";
  30528. // goto join
  30529. $async$goto = 7;
  30530. break;
  30531. case 8:
  30532. // else
  30533. statement += "\n";
  30534. J.setPrompt$1$x($async$self.rl, prompt0);
  30535. prompt1 = prompt0;
  30536. case 7:
  30537. // join
  30538. // goto for condition
  30539. $async$goto = 3;
  30540. break;
  30541. case 4:
  30542. // after for
  30543. case 1:
  30544. // return
  30545. return P._asyncStarHelper(null, 0, $async$controller);
  30546. case 2:
  30547. // rethrow
  30548. return P._asyncStarHelper($async$currentError, 1, $async$controller);
  30549. }
  30550. });
  30551. var $async$goto = 0,
  30552. $async$controller = P._makeAsyncStarStreamController($async$runAsync$0, type$.String),
  30553. $async$nextWhenCanceled, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, $prompt, controller, queue, prompt0, prompt1, statement, t2, line, line0, t1, output;
  30554. return P._streamOfController($async$controller);
  30555. }
  30556. };
  30557. B.ReplAdapter_runAsync_closure.prototype = {
  30558. call$1: function(value) {
  30559. this.controller.add$1(0, value);
  30560. },
  30561. call$0: function() {
  30562. return this.call$1(null);
  30563. },
  30564. "call*": "call$1",
  30565. $requiredArgCount: 0,
  30566. $defaultValues: function() {
  30567. return [null];
  30568. },
  30569. $signature: 51
  30570. };
  30571. B.Stdin.prototype = {};
  30572. B.Stdout.prototype = {};
  30573. B.ReadlineModule.prototype = {};
  30574. B.ReadlineOptions.prototype = {};
  30575. B.ReadlineInterface.prototype = {};
  30576. O.EmptyUnmodifiableSet.prototype = {
  30577. get$iterator: function(_) {
  30578. return C.C_EmptyIterator;
  30579. },
  30580. get$length: function(_) {
  30581. return 0;
  30582. },
  30583. cast$1$0: function(_, $T) {
  30584. return new O.EmptyUnmodifiableSet($T._eval$1("EmptyUnmodifiableSet<0>"));
  30585. },
  30586. contains$1: function(_, element) {
  30587. return false;
  30588. },
  30589. toSet$0: function(_) {
  30590. return P.LinkedHashSet_LinkedHashSet(this.$ti._precomputed1);
  30591. },
  30592. add$1: function(_, value) {
  30593. return O.EmptyUnmodifiableSet__throw();
  30594. },
  30595. addAll$1: function(_, elements) {
  30596. return O.EmptyUnmodifiableSet__throw();
  30597. },
  30598. $isEfficientLengthIterable: 1,
  30599. $isSet: 1
  30600. };
  30601. U.DefaultEquality.prototype = {};
  30602. U.IterableEquality.prototype = {
  30603. equals$2: function(elements1, elements2) {
  30604. var it1, it2, hasNext;
  30605. if (elements1 === elements2)
  30606. return true;
  30607. it1 = J.get$iterator$ax(elements1);
  30608. it2 = J.get$iterator$ax(elements2);
  30609. for (; true;) {
  30610. hasNext = it1.moveNext$0();
  30611. if (hasNext !== it2.moveNext$0())
  30612. return false;
  30613. if (!hasNext)
  30614. return true;
  30615. if (!J.$eq$(it1.get$current(it1), it2.get$current(it2)))
  30616. return false;
  30617. }
  30618. }
  30619. };
  30620. U.ListEquality.prototype = {
  30621. equals$2: function(list1, list2) {
  30622. var t1, $length, t2, i;
  30623. if (list1 == null ? list2 == null : list1 === list2)
  30624. return true;
  30625. if (list1 == null || list2 == null)
  30626. return false;
  30627. t1 = J.getInterceptor$asx(list1);
  30628. $length = t1.get$length(list1);
  30629. t2 = J.getInterceptor$asx(list2);
  30630. if ($length !== t2.get$length(list2))
  30631. return false;
  30632. for (i = 0; i < $length; ++i)
  30633. if (!J.$eq$(t1.$index(list1, i), t2.$index(list2, i)))
  30634. return false;
  30635. return true;
  30636. },
  30637. hash$1: function(list) {
  30638. var t1, hash, i;
  30639. for (t1 = list.length, hash = 0, i = 0; i < t1; ++i) {
  30640. hash = hash + J.get$hashCode$(list[i]) & 2147483647;
  30641. hash = hash + (hash << 10 >>> 0) & 2147483647;
  30642. hash ^= hash >>> 6;
  30643. }
  30644. hash = hash + (hash << 3 >>> 0) & 2147483647;
  30645. hash ^= hash >>> 11;
  30646. return hash + (hash << 15 >>> 0) & 2147483647;
  30647. }
  30648. };
  30649. U._MapEntry.prototype = {
  30650. get$hashCode: function(_) {
  30651. return 3 * J.get$hashCode$(this.key) + 7 * J.get$hashCode$(this.value) & 2147483647;
  30652. },
  30653. $eq: function(_, other) {
  30654. if (other == null)
  30655. return false;
  30656. return other instanceof U._MapEntry && J.$eq$(this.key, other.key) && J.$eq$(this.value, other.value);
  30657. }
  30658. };
  30659. U.MapEquality.prototype = {
  30660. equals$2: function(map1, map2) {
  30661. var equalElementCounts, t1, key, entry, count;
  30662. if (map1 === map2)
  30663. return true;
  30664. if (map1.get$length(map1) !== map2.get$length(map2))
  30665. return false;
  30666. equalElementCounts = P.HashMap_HashMap(type$._MapEntry, type$.int);
  30667. for (t1 = J.get$iterator$ax(map1.get$keys()); t1.moveNext$0();) {
  30668. key = t1.get$current(t1);
  30669. entry = new U._MapEntry(this, key, map1.$index(0, key));
  30670. count = equalElementCounts.$index(0, entry);
  30671. equalElementCounts.$indexSet(0, entry, (count == null ? 0 : count) + 1);
  30672. }
  30673. for (t1 = J.get$iterator$ax(map2.get$keys()); t1.moveNext$0();) {
  30674. key = t1.get$current(t1);
  30675. entry = new U._MapEntry(this, key, map2.$index(0, key));
  30676. count = equalElementCounts.$index(0, entry);
  30677. if (count == null || count === 0)
  30678. return false;
  30679. equalElementCounts.$indexSet(0, entry, count - 1);
  30680. }
  30681. return true;
  30682. },
  30683. hash$1: function(map) {
  30684. var t1, hash, key;
  30685. for (t1 = J.get$iterator$ax(map.get$keys()), hash = 0; t1.moveNext$0();) {
  30686. key = t1.get$current(t1);
  30687. hash = hash + 3 * J.get$hashCode$(key) + 7 * J.get$hashCode$(map.$index(0, key)) & 2147483647;
  30688. }
  30689. hash = hash + (hash << 3 >>> 0) & 2147483647;
  30690. hash ^= hash >>> 11;
  30691. return hash + (hash << 15 >>> 0) & 2147483647;
  30692. }
  30693. };
  30694. Y.mapMap_closure.prototype = {
  30695. call$2: function(mapKey, _) {
  30696. return this.K2._as(mapKey);
  30697. },
  30698. $signature: function() {
  30699. return this.K2._eval$1("@<0>")._bind$1(this.K1)._bind$1(this.V1)._eval$1("1(2,3)");
  30700. }
  30701. };
  30702. Y.mapMap_closure0.prototype = {
  30703. call$2: function(_, mapValue) {
  30704. return this.V2._as(mapValue);
  30705. },
  30706. $signature: function() {
  30707. return this.V2._eval$1("@<0>")._bind$1(this.K1)._bind$1(this.V1)._eval$1("1(2,3)");
  30708. }
  30709. };
  30710. Y.mapMap_closure1.prototype = {
  30711. call$2: function(mapKey, mapValue) {
  30712. var t1 = this._box_0;
  30713. this.result.$indexSet(0, t1.key.call$2(mapKey, mapValue), t1.value.call$2(mapKey, mapValue));
  30714. },
  30715. $signature: function() {
  30716. return this.K1._eval$1("@<0>")._bind$1(this.V1)._eval$1("Null(1,2)");
  30717. }
  30718. };
  30719. Y.groupBy_closure.prototype = {
  30720. call$0: function() {
  30721. return H.setRuntimeTypeInfo([], this.S._eval$1("JSArray<0>"));
  30722. },
  30723. $signature: function() {
  30724. return this.S._eval$1("List<0>()");
  30725. }
  30726. };
  30727. Q.QueueList.prototype = {
  30728. QueueList$1: function(initialCapacity, $E) {
  30729. var t1;
  30730. if (initialCapacity == null || initialCapacity < 8)
  30731. initialCapacity = 8;
  30732. else if ((initialCapacity & initialCapacity - 1) >>> 0 !== 0)
  30733. initialCapacity = Q.QueueList__nextPowerOf2(initialCapacity);
  30734. t1 = new Array(initialCapacity);
  30735. t1.fixed$length = Array;
  30736. this._table = H.setRuntimeTypeInfo(t1, $E._eval$1("JSArray<0>"));
  30737. },
  30738. add$1: function(_, element) {
  30739. this._queue_list$_add$1(element);
  30740. },
  30741. addAll$1: function(_, iterable) {
  30742. var addCount, $length, t1, endSpace, preSpace, _this = this;
  30743. if (type$.List_dynamic._is(iterable)) {
  30744. addCount = J.get$length$asx(iterable);
  30745. $length = _this.get$length(_this);
  30746. t1 = $length + addCount;
  30747. if (t1 >= J.get$length$asx(_this._table)) {
  30748. _this._preGrow$1(t1);
  30749. J.setRange$4$ax(_this._table, $length, t1, iterable, 0);
  30750. _this.set$_tail(_this.get$_tail() + addCount);
  30751. } else {
  30752. endSpace = J.get$length$asx(_this._table) - _this.get$_tail();
  30753. t1 = _this._table;
  30754. if (addCount < endSpace) {
  30755. J.setRange$4$ax(t1, _this.get$_tail(), _this.get$_tail() + addCount, iterable, 0);
  30756. _this.set$_tail(_this.get$_tail() + addCount);
  30757. } else {
  30758. preSpace = addCount - endSpace;
  30759. J.setRange$4$ax(t1, _this.get$_tail(), _this.get$_tail() + endSpace, iterable, 0);
  30760. J.setRange$4$ax(_this._table, 0, preSpace, iterable, endSpace);
  30761. _this.set$_tail(preSpace);
  30762. }
  30763. }
  30764. } else
  30765. for (t1 = J.get$iterator$ax(iterable); t1.moveNext$0();)
  30766. _this._queue_list$_add$1(t1.get$current(t1));
  30767. },
  30768. cast$1$0: function(_, $T) {
  30769. var t1 = new Q._CastQueueList(this, null, null, H._instanceType(this)._eval$1("@<QueueList.E>")._bind$1($T)._eval$1("_CastQueueList<1,2>"));
  30770. t1._table = J.cast$1$0$ax(this._table, $T);
  30771. return t1;
  30772. },
  30773. toString$0: function(_) {
  30774. return P.IterableBase_iterableToFullString(this, "{", "}");
  30775. },
  30776. addFirst$1: function(element) {
  30777. var _this = this;
  30778. _this.set$_head((_this.get$_head() - 1 & J.get$length$asx(_this._table) - 1) >>> 0);
  30779. J.$indexSet$ax(_this._table, _this.get$_head(), element);
  30780. if (_this.get$_head() == _this.get$_tail())
  30781. _this._grow$0();
  30782. },
  30783. removeFirst$0: function() {
  30784. var result, _this = this;
  30785. if (_this.get$_head() == _this.get$_tail())
  30786. throw H.wrapException(P.StateError$("No element"));
  30787. result = J.$index$asx(_this._table, _this.get$_head());
  30788. J.$indexSet$ax(_this._table, _this.get$_head(), null);
  30789. _this.set$_head((_this.get$_head() + 1 & J.get$length$asx(_this._table) - 1) >>> 0);
  30790. return result;
  30791. },
  30792. get$length: function(_) {
  30793. return (this.get$_tail() - this.get$_head() & J.get$length$asx(this._table) - 1) >>> 0;
  30794. },
  30795. set$length: function(_, value) {
  30796. var delta, newTail, t1, t2, _this = this;
  30797. if (value < 0)
  30798. throw H.wrapException(P.RangeError$("Length " + value + " may not be negative."));
  30799. delta = value - _this.get$length(_this);
  30800. if (delta >= 0) {
  30801. if (J.get$length$asx(_this._table) <= value)
  30802. _this._preGrow$1(value);
  30803. _this.set$_tail((_this.get$_tail() + delta & J.get$length$asx(_this._table) - 1) >>> 0);
  30804. return;
  30805. }
  30806. newTail = _this.get$_tail() + delta;
  30807. t1 = _this._table;
  30808. if (newTail >= 0)
  30809. J.fillRange$3$ax(t1, newTail, _this.get$_tail(), null);
  30810. else {
  30811. newTail += J.get$length$asx(t1);
  30812. J.fillRange$3$ax(_this._table, 0, _this.get$_tail(), null);
  30813. t1 = _this._table;
  30814. t2 = J.getInterceptor$asx(t1);
  30815. t2.fillRange$3(t1, newTail, t2.get$length(t1), null);
  30816. }
  30817. _this.set$_tail(newTail);
  30818. },
  30819. $index: function(_, index) {
  30820. var _this = this;
  30821. if (index < 0 || index >= _this.get$length(_this))
  30822. throw H.wrapException(P.RangeError$("Index " + H.S(index) + " must be in the range [0.." + _this.get$length(_this) + ")."));
  30823. return J.$index$asx(_this._table, (_this.get$_head() + index & J.get$length$asx(_this._table) - 1) >>> 0);
  30824. },
  30825. $indexSet: function(_, index, value) {
  30826. var _this = this;
  30827. if (index < 0 || index >= _this.get$length(_this))
  30828. throw H.wrapException(P.RangeError$("Index " + H.S(index) + " must be in the range [0.." + _this.get$length(_this) + ")."));
  30829. J.$indexSet$ax(_this._table, (_this.get$_head() + index & J.get$length$asx(_this._table) - 1) >>> 0, value);
  30830. },
  30831. _queue_list$_add$1: function(element) {
  30832. var _this = this;
  30833. J.$indexSet$ax(_this._table, _this.get$_tail(), element);
  30834. _this.set$_tail((_this.get$_tail() + 1 & J.get$length$asx(_this._table) - 1) >>> 0);
  30835. if (_this.get$_head() == _this.get$_tail())
  30836. _this._grow$0();
  30837. },
  30838. _grow$0: function() {
  30839. var newTable, split, _this = this,
  30840. t1 = new Array(J.get$length$asx(_this._table) * 2);
  30841. t1.fixed$length = Array;
  30842. newTable = H.setRuntimeTypeInfo(t1, H._instanceType(_this)._eval$1("JSArray<QueueList.E>"));
  30843. split = J.get$length$asx(_this._table) - _this.get$_head();
  30844. C.JSArray_methods.setRange$4(newTable, 0, split, _this._table, _this.get$_head());
  30845. C.JSArray_methods.setRange$4(newTable, split, split + _this.get$_head(), _this._table, 0);
  30846. _this.set$_head(0);
  30847. _this.set$_tail(J.get$length$asx(_this._table));
  30848. _this._table = newTable;
  30849. },
  30850. _writeToList$1: function(target) {
  30851. var $length, firstPartSize, _this = this;
  30852. if (_this.get$_head() <= _this.get$_tail()) {
  30853. $length = _this.get$_tail() - _this.get$_head();
  30854. C.JSArray_methods.setRange$4(target, 0, $length, _this._table, _this.get$_head());
  30855. return $length;
  30856. } else {
  30857. firstPartSize = J.get$length$asx(_this._table) - _this.get$_head();
  30858. C.JSArray_methods.setRange$4(target, 0, firstPartSize, _this._table, _this.get$_head());
  30859. C.JSArray_methods.setRange$4(target, firstPartSize, firstPartSize + _this.get$_tail(), _this._table, 0);
  30860. return _this.get$_tail() + firstPartSize;
  30861. }
  30862. },
  30863. _preGrow$1: function(newElementCount) {
  30864. var newTable, _this = this,
  30865. t1 = new Array(Q.QueueList__nextPowerOf2(newElementCount + C.JSInt_methods._shrOtherPositive$1(newElementCount, 1)));
  30866. t1.fixed$length = Array;
  30867. newTable = H.setRuntimeTypeInfo(t1, H._instanceType(_this)._eval$1("JSArray<QueueList.E>"));
  30868. _this.set$_tail(_this._writeToList$1(newTable));
  30869. _this._table = newTable;
  30870. _this.set$_head(0);
  30871. },
  30872. $isEfficientLengthIterable: 1,
  30873. $isQueue: 1,
  30874. $isIterable: 1,
  30875. $isList: 1,
  30876. get$_head: function() {
  30877. return this._head;
  30878. },
  30879. get$_tail: function() {
  30880. return this._tail;
  30881. },
  30882. set$_head: function(val) {
  30883. return this._head = val;
  30884. },
  30885. set$_tail: function(val) {
  30886. return this._tail = val;
  30887. }
  30888. };
  30889. Q._CastQueueList.prototype = {
  30890. get$_head: function() {
  30891. return this._queue_list$_delegate.get$_head();
  30892. },
  30893. set$_head: function(value) {
  30894. this._queue_list$_delegate.set$_head(value);
  30895. },
  30896. get$_tail: function() {
  30897. return this._queue_list$_delegate.get$_tail();
  30898. },
  30899. set$_tail: function(value) {
  30900. this._queue_list$_delegate.set$_tail(value);
  30901. }
  30902. };
  30903. Q._QueueList_Object_ListMixin.prototype = {};
  30904. L.UnmodifiableSetView.prototype = {};
  30905. L.UnmodifiableSetMixin.prototype = {
  30906. add$1: function(_, value) {
  30907. return L.UnmodifiableSetMixin__throw();
  30908. },
  30909. addAll$1: function(_, elements) {
  30910. return L.UnmodifiableSetMixin__throw();
  30911. }
  30912. };
  30913. L._UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin.prototype = {};
  30914. B.defaultCompare_closure.prototype = {
  30915. call$2: function(value1, value2) {
  30916. return J.compareTo$1$ns(type$.Comparable_dynamic._as(value1), value2);
  30917. },
  30918. $signature: function() {
  30919. return this.T._eval$1("int(0,0)");
  30920. }
  30921. };
  30922. M._DelegatingIterableBase.prototype = {
  30923. cast$1$0: function(_, $T) {
  30924. return J.cast$1$0$ax(this.get$_base(), $T);
  30925. },
  30926. contains$1: function(_, element) {
  30927. return J.contains$1$asx(this.get$_base(), element);
  30928. },
  30929. elementAt$1: function(_, index) {
  30930. return J.elementAt$1$ax(this.get$_base(), index);
  30931. },
  30932. get$first: function(_) {
  30933. return J.get$first$ax(this.get$_base());
  30934. },
  30935. get$isEmpty: function(_) {
  30936. return J.get$isEmpty$asx(this.get$_base());
  30937. },
  30938. get$isNotEmpty: function(_) {
  30939. return J.get$isNotEmpty$asx(this.get$_base());
  30940. },
  30941. get$iterator: function(_) {
  30942. return J.get$iterator$ax(this.get$_base());
  30943. },
  30944. join$1: function(_, separator) {
  30945. return J.join$1$ax(this.get$_base(), separator);
  30946. },
  30947. join$0: function($receiver) {
  30948. return this.join$1($receiver, "");
  30949. },
  30950. get$last: function(_) {
  30951. return J.get$last$ax(this.get$_base());
  30952. },
  30953. get$length: function(_) {
  30954. return J.get$length$asx(this.get$_base());
  30955. },
  30956. map$1$1: function(_, f, $T) {
  30957. return J.map$1$1$ax(this.get$_base(), f, $T);
  30958. },
  30959. get$single: function(_) {
  30960. return J.get$single$ax(this.get$_base());
  30961. },
  30962. skip$1: function(_, n) {
  30963. return J.skip$1$ax(this.get$_base(), n);
  30964. },
  30965. take$1: function(_, n) {
  30966. return J.take$1$ax(this.get$_base(), n);
  30967. },
  30968. toList$1$growable: function(_, growable) {
  30969. return J.toList$1$growable$ax(this.get$_base(), growable);
  30970. },
  30971. toList$0: function($receiver) {
  30972. return this.toList$1$growable($receiver, true);
  30973. },
  30974. toSet$0: function(_) {
  30975. return J.toSet$0$ax(this.get$_base());
  30976. },
  30977. where$1: function(_, test) {
  30978. return J.where$1$ax(this.get$_base(), test);
  30979. },
  30980. toString$0: function(_) {
  30981. return J.toString$0$(this.get$_base());
  30982. },
  30983. $isIterable: 1
  30984. };
  30985. M.DelegatingIterable.prototype = {
  30986. get$_base: function() {
  30987. return this._base;
  30988. }
  30989. };
  30990. M.DelegatingSet.prototype = {
  30991. add$1: function(_, value) {
  30992. return this._base.add$1(0, value);
  30993. },
  30994. addAll$1: function(_, elements) {
  30995. this._base.addAll$1(0, elements);
  30996. },
  30997. cast$1$0: function(_, $T) {
  30998. var t1 = this._base;
  30999. return P.Set_castFrom(t1, t1.get$_newSimilarSet(), H._instanceType(t1)._precomputed1, $T);
  31000. },
  31001. toSet$0: function(_) {
  31002. return new M.DelegatingSet(this._base.toSet$0(0), H._instanceType(this)._eval$1("DelegatingSet<1>"));
  31003. },
  31004. $isEfficientLengthIterable: 1,
  31005. $isSet: 1
  31006. };
  31007. M.MapKeySet.prototype = {
  31008. get$_base: function() {
  31009. return this._baseMap.get$keys();
  31010. },
  31011. cast$1$0: function(_, $T) {
  31012. var _this = this,
  31013. t1 = $T._eval$1("MapKeySet<0>");
  31014. if (t1._is(_this))
  31015. return t1._as(_this);
  31016. return P.Set_castFrom(_this, null, _this.$ti._precomputed1, $T);
  31017. },
  31018. contains$1: function(_, element) {
  31019. return this._baseMap.containsKey$1(element);
  31020. },
  31021. get$isEmpty: function(_) {
  31022. var t1 = this._baseMap;
  31023. return t1.get$isEmpty(t1);
  31024. },
  31025. get$isNotEmpty: function(_) {
  31026. var t1 = this._baseMap;
  31027. return t1.get$isNotEmpty(t1);
  31028. },
  31029. get$length: function(_) {
  31030. var t1 = this._baseMap;
  31031. return t1.get$length(t1);
  31032. },
  31033. toString$0: function(_) {
  31034. return "{" + J.join$1$ax(this._baseMap.get$keys(), ", ") + "}";
  31035. },
  31036. $isEfficientLengthIterable: 1,
  31037. $isSet: 1
  31038. };
  31039. M._MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin.prototype = {};
  31040. M.Context.prototype = {
  31041. absolute$7: function(part1, part2, part3, part4, part5, part6, part7) {
  31042. var t1;
  31043. M._validateArgList("absolute", H.setRuntimeTypeInfo([part1, part2, part3, part4, part5, part6, part7], type$.JSArray_String));
  31044. t1 = this.style;
  31045. t1 = t1.rootLength$1(part1) > 0 && !t1.isRootRelative$1(part1);
  31046. if (t1)
  31047. return part1;
  31048. t1 = this._context$_current;
  31049. return this.join$8(0, t1 == null ? D.current() : t1, part1, part2, part3, part4, part5, part6, part7);
  31050. },
  31051. absolute$1: function(part1) {
  31052. return this.absolute$7(part1, null, null, null, null, null, null);
  31053. },
  31054. dirname$1: function(path) {
  31055. var t1, t2,
  31056. parsed = X.ParsedPath_ParsedPath$parse(path, this.style);
  31057. parsed.removeTrailingSeparators$0();
  31058. t1 = parsed.parts;
  31059. t2 = t1.length;
  31060. if (t2 === 0) {
  31061. t1 = parsed.root;
  31062. return t1 == null ? "." : t1;
  31063. }
  31064. if (t2 === 1) {
  31065. t1 = parsed.root;
  31066. return t1 == null ? "." : t1;
  31067. }
  31068. C.JSArray_methods.removeLast$0(t1);
  31069. C.JSArray_methods.removeLast$0(parsed.separators);
  31070. parsed.removeTrailingSeparators$0();
  31071. return parsed.toString$0(0);
  31072. },
  31073. join$8: function(_, part1, part2, part3, part4, part5, part6, part7, part8) {
  31074. var parts = H.setRuntimeTypeInfo([part1, part2, part3, part4, part5, part6, part7, part8], type$.JSArray_String);
  31075. M._validateArgList("join", parts);
  31076. return this.joinAll$1(new H.WhereIterable(parts, new M.Context_join_closure(), type$.WhereIterable_String));
  31077. },
  31078. join$2: function($receiver, part1, part2) {
  31079. return this.join$8($receiver, part1, part2, null, null, null, null, null, null);
  31080. },
  31081. joinAll$1: function(parts) {
  31082. var t1, t2, t3, needsSeparator, isAbsoluteAndNotRootRelative, t4, t5, parsed, path;
  31083. for (t1 = parts.get$iterator(parts), t2 = new H.WhereIterator(t1, new M.Context_joinAll_closure()), t3 = this.style, needsSeparator = false, isAbsoluteAndNotRootRelative = false, t4 = ""; t2.moveNext$0();) {
  31084. t5 = t1.get$current(t1);
  31085. if (t3.isRootRelative$1(t5) && isAbsoluteAndNotRootRelative) {
  31086. parsed = X.ParsedPath_ParsedPath$parse(t5, t3);
  31087. path = t4.charCodeAt(0) == 0 ? t4 : t4;
  31088. t4 = C.JSString_methods.substring$2(path, 0, t3.rootLength$2$withDrive(path, true));
  31089. parsed.root = t4;
  31090. if (t3.needsSeparator$1(t4))
  31091. parsed.separators[0] = t3.get$separator();
  31092. t4 = parsed.toString$0(0);
  31093. } else if (t3.rootLength$1(t5) > 0) {
  31094. isAbsoluteAndNotRootRelative = !t3.isRootRelative$1(t5);
  31095. t4 = H.S(t5);
  31096. } else {
  31097. if (!(t5.length !== 0 && t3.containsSeparator$1(t5[0])))
  31098. if (needsSeparator)
  31099. t4 += t3.get$separator();
  31100. t4 += t5;
  31101. }
  31102. needsSeparator = t3.needsSeparator$1(t5);
  31103. }
  31104. return t4.charCodeAt(0) == 0 ? t4 : t4;
  31105. },
  31106. split$1: function(_, path) {
  31107. var parsed = X.ParsedPath_ParsedPath$parse(path, this.style),
  31108. t1 = parsed.parts,
  31109. t2 = H._arrayInstanceType(t1)._eval$1("WhereIterable<1>");
  31110. t2 = P.List_List$from(new H.WhereIterable(t1, new M.Context_split_closure(), t2), true, t2._eval$1("Iterable.E"));
  31111. parsed.parts = t2;
  31112. t1 = parsed.root;
  31113. if (t1 != null)
  31114. C.JSArray_methods.insert$2(t2, 0, t1);
  31115. return parsed.parts;
  31116. },
  31117. canonicalize$1: function(path) {
  31118. var t1, parsed;
  31119. path = this.absolute$1(path);
  31120. t1 = this.style;
  31121. if (t1 != $.$get$Style_windows() && !this._needsNormalization$1(path))
  31122. return path;
  31123. parsed = X.ParsedPath_ParsedPath$parse(path, t1);
  31124. parsed.normalize$1$canonicalize(true);
  31125. return parsed.toString$0(0);
  31126. },
  31127. normalize$1: function(path) {
  31128. var parsed;
  31129. if (!this._needsNormalization$1(path))
  31130. return path;
  31131. parsed = X.ParsedPath_ParsedPath$parse(path, this.style);
  31132. parsed.normalize$0();
  31133. return parsed.toString$0(0);
  31134. },
  31135. _needsNormalization$1: function(path) {
  31136. var t1, root, i, start, previous, t2, t3, previousPrevious, codeUnit, t4;
  31137. path.toString;
  31138. t1 = this.style;
  31139. root = t1.rootLength$1(path);
  31140. if (root !== 0) {
  31141. if (t1 === $.$get$Style_windows())
  31142. for (i = 0; i < root; ++i)
  31143. if (C.JSString_methods._codeUnitAt$1(path, i) === 47)
  31144. return true;
  31145. start = root;
  31146. previous = 47;
  31147. } else {
  31148. start = 0;
  31149. previous = null;
  31150. }
  31151. for (t2 = new H.CodeUnits(path)._string, t3 = t2.length, i = start, previousPrevious = null; i < t3; ++i, previousPrevious = previous, previous = codeUnit) {
  31152. codeUnit = C.JSString_methods.codeUnitAt$1(t2, i);
  31153. if (t1.isSeparator$1(codeUnit)) {
  31154. if (t1 === $.$get$Style_windows() && codeUnit === 47)
  31155. return true;
  31156. if (previous != null && t1.isSeparator$1(previous))
  31157. return true;
  31158. if (previous === 46)
  31159. t4 = previousPrevious == null || previousPrevious === 46 || t1.isSeparator$1(previousPrevious);
  31160. else
  31161. t4 = false;
  31162. if (t4)
  31163. return true;
  31164. }
  31165. }
  31166. if (previous == null)
  31167. return true;
  31168. if (t1.isSeparator$1(previous))
  31169. return true;
  31170. if (previous === 46)
  31171. t1 = previousPrevious == null || t1.isSeparator$1(previousPrevious) || previousPrevious === 46;
  31172. else
  31173. t1 = false;
  31174. if (t1)
  31175. return true;
  31176. return false;
  31177. },
  31178. relative$2$from: function(path, from) {
  31179. var fromParsed, pathParsed, t2, t3, _this = this,
  31180. _s26_ = 'Unable to find a path to "',
  31181. t1 = from == null;
  31182. if (t1 && _this.style.rootLength$1(path) <= 0)
  31183. return _this.normalize$1(path);
  31184. if (t1) {
  31185. t1 = _this._context$_current;
  31186. from = t1 == null ? D.current() : t1;
  31187. } else
  31188. from = _this.absolute$1(from);
  31189. t1 = _this.style;
  31190. if (t1.rootLength$1(from) <= 0 && t1.rootLength$1(path) > 0)
  31191. return _this.normalize$1(path);
  31192. if (t1.rootLength$1(path) <= 0 || t1.isRootRelative$1(path))
  31193. path = _this.absolute$1(path);
  31194. if (t1.rootLength$1(path) <= 0 && t1.rootLength$1(from) > 0)
  31195. throw H.wrapException(X.PathException$(_s26_ + H.S(path) + '" from "' + H.S(from) + '".'));
  31196. fromParsed = X.ParsedPath_ParsedPath$parse(from, t1);
  31197. fromParsed.normalize$0();
  31198. pathParsed = X.ParsedPath_ParsedPath$parse(path, t1);
  31199. pathParsed.normalize$0();
  31200. t2 = fromParsed.parts;
  31201. if (t2.length !== 0 && J.$eq$(t2[0], "."))
  31202. return pathParsed.toString$0(0);
  31203. t2 = fromParsed.root;
  31204. t3 = pathParsed.root;
  31205. if (t2 != t3)
  31206. t2 = t2 == null || t3 == null || !t1.pathsEqual$2(t2, t3);
  31207. else
  31208. t2 = false;
  31209. if (t2)
  31210. return pathParsed.toString$0(0);
  31211. while (true) {
  31212. t2 = fromParsed.parts;
  31213. if (t2.length !== 0) {
  31214. t3 = pathParsed.parts;
  31215. t2 = t3.length !== 0 && t1.pathsEqual$2(t2[0], t3[0]);
  31216. } else
  31217. t2 = false;
  31218. if (!t2)
  31219. break;
  31220. C.JSArray_methods.removeAt$1(fromParsed.parts, 0);
  31221. C.JSArray_methods.removeAt$1(fromParsed.separators, 1);
  31222. C.JSArray_methods.removeAt$1(pathParsed.parts, 0);
  31223. C.JSArray_methods.removeAt$1(pathParsed.separators, 1);
  31224. }
  31225. t2 = fromParsed.parts;
  31226. if (t2.length !== 0 && J.$eq$(t2[0], ".."))
  31227. throw H.wrapException(X.PathException$(_s26_ + H.S(path) + '" from "' + H.S(from) + '".'));
  31228. t2 = type$.String;
  31229. C.JSArray_methods.insertAll$2(pathParsed.parts, 0, P.List_List$filled(fromParsed.parts.length, "..", t2));
  31230. t3 = pathParsed.separators;
  31231. t3[0] = "";
  31232. C.JSArray_methods.insertAll$2(t3, 1, P.List_List$filled(fromParsed.parts.length, t1.get$separator(), t2));
  31233. t1 = pathParsed.parts;
  31234. t2 = t1.length;
  31235. if (t2 === 0)
  31236. return ".";
  31237. if (t2 > 1 && J.$eq$(C.JSArray_methods.get$last(t1), ".")) {
  31238. C.JSArray_methods.removeLast$0(pathParsed.parts);
  31239. t1 = pathParsed.separators;
  31240. C.JSArray_methods.removeLast$0(t1);
  31241. C.JSArray_methods.removeLast$0(t1);
  31242. C.JSArray_methods.add$1(t1, "");
  31243. }
  31244. pathParsed.root = "";
  31245. pathParsed.removeTrailingSeparators$0();
  31246. return pathParsed.toString$0(0);
  31247. },
  31248. relative$1: function(path) {
  31249. return this.relative$2$from(path, null);
  31250. },
  31251. _isWithinOrEquals$2: function($parent, child) {
  31252. var relative, childIsRootRelative, parentIsRootRelative, result, exception, _this = this,
  31253. t1 = _this.style,
  31254. parentIsAbsolute = t1.rootLength$1($parent) > 0,
  31255. childIsAbsolute = t1.rootLength$1(child) > 0;
  31256. if (parentIsAbsolute && !childIsAbsolute) {
  31257. child = _this.absolute$1(child);
  31258. if (t1.isRootRelative$1($parent))
  31259. $parent = _this.absolute$1($parent);
  31260. } else if (childIsAbsolute && !parentIsAbsolute) {
  31261. $parent = _this.absolute$1($parent);
  31262. if (t1.isRootRelative$1(child))
  31263. child = _this.absolute$1(child);
  31264. } else if (childIsAbsolute && parentIsAbsolute) {
  31265. childIsRootRelative = t1.isRootRelative$1(child);
  31266. parentIsRootRelative = t1.isRootRelative$1($parent);
  31267. if (childIsRootRelative && !parentIsRootRelative)
  31268. child = _this.absolute$1(child);
  31269. else if (parentIsRootRelative && !childIsRootRelative)
  31270. $parent = _this.absolute$1($parent);
  31271. }
  31272. result = _this._isWithinOrEqualsFast$2($parent, child);
  31273. if (result !== C._PathRelation_inconclusive)
  31274. return result;
  31275. relative = null;
  31276. try {
  31277. relative = _this.relative$2$from(child, $parent);
  31278. } catch (exception) {
  31279. if (H.unwrapException(exception) instanceof X.PathException)
  31280. return C._PathRelation_different;
  31281. else
  31282. throw exception;
  31283. }
  31284. if (t1.rootLength$1(relative) > 0)
  31285. return C._PathRelation_different;
  31286. if (J.$eq$(relative, "."))
  31287. return C._PathRelation_equal;
  31288. if (J.$eq$(relative, ".."))
  31289. return C._PathRelation_different;
  31290. return J.get$length$asx(relative) >= 3 && J.startsWith$1$s(relative, "..") && t1.isSeparator$1(J.codeUnitAt$1$s(relative, 2)) ? C._PathRelation_different : C._PathRelation_within;
  31291. },
  31292. _isWithinOrEqualsFast$2: function($parent, child) {
  31293. var t1, parentRootLength, childRootLength, t2, t3, i, childIndex, parentIndex, lastCodeUnit, lastParentSeparator, parentCodeUnit, childCodeUnit, parentIndex0, t4, direction, _this = this;
  31294. if ($parent === ".")
  31295. $parent = "";
  31296. t1 = _this.style;
  31297. parentRootLength = t1.rootLength$1($parent);
  31298. childRootLength = t1.rootLength$1(child);
  31299. if (parentRootLength !== childRootLength)
  31300. return C._PathRelation_different;
  31301. for (t2 = J.getInterceptor$s($parent), t3 = J.getInterceptor$s(child), i = 0; i < parentRootLength; ++i)
  31302. if (!t1.codeUnitsEqual$2(t2._codeUnitAt$1($parent, i), t3._codeUnitAt$1(child, i)))
  31303. return C._PathRelation_different;
  31304. t2 = $parent.length;
  31305. childIndex = childRootLength;
  31306. parentIndex = parentRootLength;
  31307. lastCodeUnit = 47;
  31308. lastParentSeparator = null;
  31309. while (true) {
  31310. if (!(parentIndex < t2 && childIndex < child.length))
  31311. break;
  31312. c$0: {
  31313. parentCodeUnit = C.JSString_methods.codeUnitAt$1($parent, parentIndex);
  31314. childCodeUnit = t3.codeUnitAt$1(child, childIndex);
  31315. if (t1.codeUnitsEqual$2(parentCodeUnit, childCodeUnit)) {
  31316. if (t1.isSeparator$1(parentCodeUnit))
  31317. lastParentSeparator = parentIndex;
  31318. ++parentIndex;
  31319. ++childIndex;
  31320. lastCodeUnit = parentCodeUnit;
  31321. break c$0;
  31322. }
  31323. if (t1.isSeparator$1(parentCodeUnit) && t1.isSeparator$1(lastCodeUnit)) {
  31324. parentIndex0 = parentIndex + 1;
  31325. lastParentSeparator = parentIndex;
  31326. parentIndex = parentIndex0;
  31327. break c$0;
  31328. } else if (t1.isSeparator$1(childCodeUnit) && t1.isSeparator$1(lastCodeUnit)) {
  31329. ++childIndex;
  31330. break c$0;
  31331. }
  31332. if (parentCodeUnit === 46 && t1.isSeparator$1(lastCodeUnit)) {
  31333. ++parentIndex;
  31334. if (parentIndex === t2)
  31335. break;
  31336. parentCodeUnit = C.JSString_methods.codeUnitAt$1($parent, parentIndex);
  31337. if (t1.isSeparator$1(parentCodeUnit)) {
  31338. parentIndex0 = parentIndex + 1;
  31339. lastParentSeparator = parentIndex;
  31340. parentIndex = parentIndex0;
  31341. break c$0;
  31342. }
  31343. if (parentCodeUnit === 46) {
  31344. ++parentIndex;
  31345. if (parentIndex === t2 || t1.isSeparator$1(C.JSString_methods.codeUnitAt$1($parent, parentIndex)))
  31346. return C._PathRelation_inconclusive;
  31347. }
  31348. }
  31349. if (childCodeUnit === 46 && t1.isSeparator$1(lastCodeUnit)) {
  31350. ++childIndex;
  31351. t4 = child.length;
  31352. if (childIndex === t4)
  31353. break;
  31354. childCodeUnit = C.JSString_methods.codeUnitAt$1(child, childIndex);
  31355. if (t1.isSeparator$1(childCodeUnit)) {
  31356. ++childIndex;
  31357. break c$0;
  31358. }
  31359. if (childCodeUnit === 46) {
  31360. ++childIndex;
  31361. if (childIndex === t4 || t1.isSeparator$1(C.JSString_methods.codeUnitAt$1(child, childIndex)))
  31362. return C._PathRelation_inconclusive;
  31363. }
  31364. }
  31365. if (_this._pathDirection$2(child, childIndex) !== C._PathDirection_988)
  31366. return C._PathRelation_inconclusive;
  31367. if (_this._pathDirection$2($parent, parentIndex) !== C._PathDirection_988)
  31368. return C._PathRelation_inconclusive;
  31369. return C._PathRelation_different;
  31370. }
  31371. }
  31372. if (childIndex === child.length) {
  31373. if (parentIndex === t2 || t1.isSeparator$1(C.JSString_methods.codeUnitAt$1($parent, parentIndex)))
  31374. lastParentSeparator = parentIndex;
  31375. else if (lastParentSeparator == null)
  31376. lastParentSeparator = Math.max(0, parentRootLength - 1);
  31377. direction = _this._pathDirection$2($parent, lastParentSeparator);
  31378. if (direction === C._PathDirection_8Gl)
  31379. return C._PathRelation_equal;
  31380. return direction === C._PathDirection_ZGD ? C._PathRelation_inconclusive : C._PathRelation_different;
  31381. }
  31382. direction = _this._pathDirection$2(child, childIndex);
  31383. if (direction === C._PathDirection_8Gl)
  31384. return C._PathRelation_equal;
  31385. if (direction === C._PathDirection_ZGD)
  31386. return C._PathRelation_inconclusive;
  31387. return t1.isSeparator$1(C.JSString_methods.codeUnitAt$1(child, childIndex)) || t1.isSeparator$1(lastCodeUnit) ? C._PathRelation_within : C._PathRelation_different;
  31388. },
  31389. _pathDirection$2: function(path, index) {
  31390. var t1, t2, i, depth, reachedRoot, i0, t3;
  31391. for (t1 = path.length, t2 = this.style, i = index, depth = 0, reachedRoot = false; i < t1;) {
  31392. while (true) {
  31393. if (!(i < t1 && t2.isSeparator$1(C.JSString_methods.codeUnitAt$1(path, i))))
  31394. break;
  31395. ++i;
  31396. }
  31397. if (i === t1)
  31398. break;
  31399. i0 = i;
  31400. while (true) {
  31401. if (!(i0 < t1 && !t2.isSeparator$1(C.JSString_methods.codeUnitAt$1(path, i0))))
  31402. break;
  31403. ++i0;
  31404. }
  31405. t3 = i0 - i;
  31406. if (!(t3 === 1 && C.JSString_methods.codeUnitAt$1(path, i) === 46))
  31407. if (t3 === 2 && C.JSString_methods.codeUnitAt$1(path, i) === 46 && C.JSString_methods.codeUnitAt$1(path, i + 1) === 46) {
  31408. --depth;
  31409. if (depth < 0)
  31410. break;
  31411. if (depth === 0)
  31412. reachedRoot = true;
  31413. } else
  31414. ++depth;
  31415. if (i0 === t1)
  31416. break;
  31417. i = i0 + 1;
  31418. }
  31419. if (depth < 0)
  31420. return C._PathDirection_ZGD;
  31421. if (depth === 0)
  31422. return C._PathDirection_8Gl;
  31423. if (reachedRoot)
  31424. return C._PathDirection_FIw;
  31425. return C._PathDirection_988;
  31426. },
  31427. hash$1: function(path) {
  31428. var result, parsed, _this = this;
  31429. path = _this.absolute$1(path);
  31430. result = _this._hashFast$1(path);
  31431. if (result != null)
  31432. return result;
  31433. parsed = X.ParsedPath_ParsedPath$parse(path, _this.style);
  31434. parsed.normalize$0();
  31435. return _this._hashFast$1(parsed.toString$0(0));
  31436. },
  31437. _hashFast$1: function(path) {
  31438. var t1, t2, hash, beginning, wasSeparator, i, codeUnit, t3, next;
  31439. for (t1 = path.length, t2 = this.style, hash = 4603, beginning = true, wasSeparator = true, i = 0; i < t1; ++i) {
  31440. codeUnit = t2.canonicalizeCodeUnit$1(C.JSString_methods._codeUnitAt$1(path, i));
  31441. if (t2.isSeparator$1(codeUnit)) {
  31442. wasSeparator = true;
  31443. continue;
  31444. }
  31445. if (codeUnit === 46 && wasSeparator) {
  31446. t3 = i + 1;
  31447. if (t3 === t1)
  31448. break;
  31449. next = C.JSString_methods._codeUnitAt$1(path, t3);
  31450. if (t2.isSeparator$1(next))
  31451. continue;
  31452. if (!beginning)
  31453. if (next === 46) {
  31454. t3 = i + 2;
  31455. t3 = t3 === t1 || t2.isSeparator$1(C.JSString_methods._codeUnitAt$1(path, t3));
  31456. } else
  31457. t3 = false;
  31458. else
  31459. t3 = false;
  31460. if (t3)
  31461. return null;
  31462. }
  31463. hash = ((hash & 67108863) * 33 ^ codeUnit) >>> 0;
  31464. beginning = false;
  31465. wasSeparator = false;
  31466. }
  31467. return hash;
  31468. },
  31469. withoutExtension$1: function(path) {
  31470. var i, t1,
  31471. parsed = X.ParsedPath_ParsedPath$parse(path, this.style);
  31472. for (i = parsed.parts.length - 1; i >= 0; --i) {
  31473. t1 = parsed.parts[i];
  31474. t1.toString;
  31475. if (J.get$length$asx(t1) !== 0) {
  31476. parsed.parts[i] = parsed._splitExtension$0()[0];
  31477. break;
  31478. }
  31479. }
  31480. return parsed.toString$0(0);
  31481. },
  31482. toUri$1: function(path) {
  31483. var t2,
  31484. t1 = this.style;
  31485. if (t1.rootLength$1(path) <= 0)
  31486. return t1.relativePathToUri$1(path);
  31487. else {
  31488. t2 = this._context$_current;
  31489. return t1.absolutePathToUri$1(this.join$2(0, t2 == null ? D.current() : t2, path));
  31490. }
  31491. },
  31492. prettyUri$1: function(uri) {
  31493. var path, rel, _this = this,
  31494. typedUri = M._parseUri(uri);
  31495. if (typedUri.get$scheme() === "file" && _this.style == $.$get$Style_url())
  31496. return typedUri.toString$0(0);
  31497. else if (typedUri.get$scheme() !== "file" && typedUri.get$scheme() !== "" && _this.style != $.$get$Style_url())
  31498. return typedUri.toString$0(0);
  31499. path = _this.normalize$1(_this.style.pathFromUri$1(M._parseUri(typedUri)));
  31500. rel = _this.relative$1(path);
  31501. return _this.split$1(0, rel).length > _this.split$1(0, path).length ? path : rel;
  31502. }
  31503. };
  31504. M.Context_join_closure.prototype = {
  31505. call$1: function(part) {
  31506. return part != null;
  31507. }
  31508. };
  31509. M.Context_joinAll_closure.prototype = {
  31510. call$1: function(part) {
  31511. return part !== "";
  31512. }
  31513. };
  31514. M.Context_split_closure.prototype = {
  31515. call$1: function(part) {
  31516. return part.length !== 0;
  31517. }
  31518. };
  31519. M._validateArgList_closure.prototype = {
  31520. call$1: function(arg) {
  31521. return arg == null ? "null" : '"' + arg + '"';
  31522. }
  31523. };
  31524. M._PathDirection.prototype = {
  31525. toString$0: function(_) {
  31526. return this.name;
  31527. }
  31528. };
  31529. M._PathRelation.prototype = {
  31530. toString$0: function(_) {
  31531. return this.name;
  31532. }
  31533. };
  31534. B.InternalStyle.prototype = {
  31535. getRoot$1: function(path) {
  31536. var $length = this.rootLength$1(path);
  31537. if ($length > 0)
  31538. return J.substring$2$s(path, 0, $length);
  31539. return this.isRootRelative$1(path) ? path[0] : null;
  31540. },
  31541. relativePathToUri$1: function(path) {
  31542. var segments = M.Context_Context(this).split$1(0, path);
  31543. if (this.isSeparator$1(J.codeUnitAt$1$s(path, path.length - 1)))
  31544. C.JSArray_methods.add$1(segments, "");
  31545. return P._Uri__Uri(null, null, segments, null);
  31546. },
  31547. codeUnitsEqual$2: function(codeUnit1, codeUnit2) {
  31548. return codeUnit1 === codeUnit2;
  31549. },
  31550. pathsEqual$2: function(path1, path2) {
  31551. return path1 == path2;
  31552. },
  31553. canonicalizeCodeUnit$1: function(codeUnit) {
  31554. return codeUnit;
  31555. },
  31556. canonicalizePart$1: function(part) {
  31557. return part;
  31558. }
  31559. };
  31560. X.ParsedPath.prototype = {
  31561. get$basename: function() {
  31562. var _this = this,
  31563. t1 = type$.String,
  31564. copy = new X.ParsedPath(_this.style, _this.root, _this.isRootRelative, P.List_List$from(_this.parts, true, t1), P.List_List$from(_this.separators, true, t1));
  31565. copy.removeTrailingSeparators$0();
  31566. t1 = copy.parts;
  31567. if (t1.length === 0) {
  31568. t1 = _this.root;
  31569. return t1 == null ? "" : t1;
  31570. }
  31571. return C.JSArray_methods.get$last(t1);
  31572. },
  31573. get$hasTrailingSeparator: function() {
  31574. var t1 = this.parts;
  31575. if (t1.length !== 0)
  31576. t1 = J.$eq$(C.JSArray_methods.get$last(t1), "") || !J.$eq$(C.JSArray_methods.get$last(this.separators), "");
  31577. else
  31578. t1 = false;
  31579. return t1;
  31580. },
  31581. removeTrailingSeparators$0: function() {
  31582. var t1, t2, _this = this;
  31583. while (true) {
  31584. t1 = _this.parts;
  31585. if (!(t1.length !== 0 && J.$eq$(C.JSArray_methods.get$last(t1), "")))
  31586. break;
  31587. C.JSArray_methods.removeLast$0(_this.parts);
  31588. C.JSArray_methods.removeLast$0(_this.separators);
  31589. }
  31590. t1 = _this.separators;
  31591. t2 = t1.length;
  31592. if (t2 !== 0)
  31593. t1[t2 - 1] = "";
  31594. },
  31595. normalize$1$canonicalize: function(canonicalize) {
  31596. var t1, t2, t3, leadingDoubles, _i, part, t4, newSeparators, _this = this,
  31597. newParts = H.setRuntimeTypeInfo([], type$.JSArray_String);
  31598. for (t1 = _this.parts, t2 = t1.length, t3 = _this.style, leadingDoubles = 0, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  31599. part = t1[_i];
  31600. t4 = J.getInterceptor$(part);
  31601. if (!(t4.$eq(part, ".") || t4.$eq(part, "")))
  31602. if (t4.$eq(part, ".."))
  31603. if (newParts.length !== 0)
  31604. newParts.pop();
  31605. else
  31606. ++leadingDoubles;
  31607. else
  31608. newParts.push(canonicalize ? t3.canonicalizePart$1(part) : part);
  31609. }
  31610. if (_this.root == null)
  31611. C.JSArray_methods.insertAll$2(newParts, 0, P.List_List$filled(leadingDoubles, "..", type$.String));
  31612. if (newParts.length === 0 && _this.root == null)
  31613. newParts.push(".");
  31614. newSeparators = P.List_List$generate(newParts.length, new X.ParsedPath_normalize_closure(_this), true, type$.String);
  31615. t1 = _this.root;
  31616. C.JSArray_methods.insert$2(newSeparators, 0, t1 != null && newParts.length !== 0 && t3.needsSeparator$1(t1) ? t3.get$separator() : "");
  31617. _this.parts = newParts;
  31618. _this.separators = newSeparators;
  31619. t1 = _this.root;
  31620. if (t1 != null && t3 === $.$get$Style_windows()) {
  31621. if (canonicalize)
  31622. t1 = _this.root = t1.toLowerCase();
  31623. t1.toString;
  31624. _this.root = H.stringReplaceAllUnchecked(t1, "/", "\\");
  31625. }
  31626. _this.removeTrailingSeparators$0();
  31627. },
  31628. normalize$0: function() {
  31629. return this.normalize$1$canonicalize(false);
  31630. },
  31631. toString$0: function(_) {
  31632. var i, _this = this,
  31633. t1 = _this.root;
  31634. t1 = t1 != null ? t1 : "";
  31635. for (i = 0; i < _this.parts.length; ++i)
  31636. t1 = t1 + H.S(_this.separators[i]) + H.S(_this.parts[i]);
  31637. t1 += H.S(C.JSArray_methods.get$last(_this.separators));
  31638. return t1.charCodeAt(0) == 0 ? t1 : t1;
  31639. },
  31640. _kthLastIndexOf$3: function(path, character, k) {
  31641. var index, count, leftMostIndexedCharacter;
  31642. for (index = path.length - 1, count = 0, leftMostIndexedCharacter = 0; index >= 0; --index)
  31643. if (path[index] === character) {
  31644. ++count;
  31645. if (count === k)
  31646. return index;
  31647. leftMostIndexedCharacter = index;
  31648. }
  31649. return leftMostIndexedCharacter;
  31650. },
  31651. _splitExtension$1: function(level) {
  31652. var file, lastDot;
  31653. if (level <= 0)
  31654. throw H.wrapException(P.RangeError$value(level, "level", "level's value must be greater than 0"));
  31655. file = C.JSArray_methods.lastWhere$2$orElse(this.parts, new X.ParsedPath__splitExtension_closure(), new X.ParsedPath__splitExtension_closure0());
  31656. if (file == null)
  31657. return H.setRuntimeTypeInfo(["", ""], type$.JSArray_String);
  31658. if (file === "..")
  31659. return H.setRuntimeTypeInfo(["..", ""], type$.JSArray_String);
  31660. lastDot = this._kthLastIndexOf$3(file, ".", level);
  31661. if (lastDot <= 0)
  31662. return H.setRuntimeTypeInfo([file, ""], type$.JSArray_String);
  31663. return H.setRuntimeTypeInfo([C.JSString_methods.substring$2(file, 0, lastDot), C.JSString_methods.substring$1(file, lastDot)], type$.JSArray_String);
  31664. },
  31665. _splitExtension$0: function() {
  31666. return this._splitExtension$1(1);
  31667. }
  31668. };
  31669. X.ParsedPath_normalize_closure.prototype = {
  31670. call$1: function(_) {
  31671. return this.$this.style.get$separator();
  31672. },
  31673. $signature: 36
  31674. };
  31675. X.ParsedPath__splitExtension_closure.prototype = {
  31676. call$1: function(p) {
  31677. return p !== "";
  31678. }
  31679. };
  31680. X.ParsedPath__splitExtension_closure0.prototype = {
  31681. call$0: function() {
  31682. return null;
  31683. },
  31684. $signature: 0
  31685. };
  31686. X.PathException.prototype = {
  31687. toString$0: function(_) {
  31688. return "PathException: " + this.message;
  31689. },
  31690. $isException: 1,
  31691. get$message: function(receiver) {
  31692. return this.message;
  31693. }
  31694. };
  31695. K.PathMap.prototype = {};
  31696. K.PathMap__create_closure.prototype = {
  31697. call$2: function(path1, path2) {
  31698. if (path1 == null)
  31699. return path2 == null;
  31700. if (path2 == null)
  31701. return false;
  31702. return this._box_0.context._isWithinOrEquals$2(path1, path2) === C._PathRelation_equal;
  31703. },
  31704. "call*": "call$2",
  31705. $requiredArgCount: 2
  31706. };
  31707. K.PathMap__create_closure0.prototype = {
  31708. call$1: function(path) {
  31709. return path == null ? 0 : this._box_0.context.hash$1(path);
  31710. }
  31711. };
  31712. K.PathMap__create_closure1.prototype = {
  31713. call$1: function(path) {
  31714. return typeof path == "string" || path == null;
  31715. },
  31716. $signature: 53
  31717. };
  31718. O.Style.prototype = {
  31719. toString$0: function(_) {
  31720. return this.get$name();
  31721. }
  31722. };
  31723. E.PosixStyle.prototype = {
  31724. containsSeparator$1: function(path) {
  31725. return C.JSString_methods.contains$1(path, "/");
  31726. },
  31727. isSeparator$1: function(codeUnit) {
  31728. return codeUnit === 47;
  31729. },
  31730. needsSeparator$1: function(path) {
  31731. var t1 = path.length;
  31732. return t1 !== 0 && C.JSString_methods.codeUnitAt$1(path, t1 - 1) !== 47;
  31733. },
  31734. rootLength$2$withDrive: function(path, withDrive) {
  31735. if (path.length !== 0 && C.JSString_methods._codeUnitAt$1(path, 0) === 47)
  31736. return 1;
  31737. return 0;
  31738. },
  31739. rootLength$1: function(path) {
  31740. return this.rootLength$2$withDrive(path, false);
  31741. },
  31742. isRootRelative$1: function(path) {
  31743. return false;
  31744. },
  31745. pathFromUri$1: function(uri) {
  31746. var t1;
  31747. if (uri.get$scheme() === "" || uri.get$scheme() === "file") {
  31748. t1 = uri.get$path(uri);
  31749. return P._Uri__uriDecode(t1, 0, t1.length, C.C_Utf8Codec, false);
  31750. }
  31751. throw H.wrapException(P.ArgumentError$("Uri " + uri.toString$0(0) + " must have scheme 'file:'."));
  31752. },
  31753. absolutePathToUri$1: function(path) {
  31754. var parsed = X.ParsedPath_ParsedPath$parse(path, this),
  31755. t1 = parsed.parts;
  31756. if (t1.length === 0)
  31757. C.JSArray_methods.addAll$1(t1, H.setRuntimeTypeInfo(["", ""], type$.JSArray_String));
  31758. else if (parsed.get$hasTrailingSeparator())
  31759. C.JSArray_methods.add$1(parsed.parts, "");
  31760. return P._Uri__Uri(null, null, parsed.parts, "file");
  31761. },
  31762. get$name: function() {
  31763. return "posix";
  31764. },
  31765. get$separator: function() {
  31766. return "/";
  31767. }
  31768. };
  31769. F.UrlStyle.prototype = {
  31770. containsSeparator$1: function(path) {
  31771. return C.JSString_methods.contains$1(path, "/");
  31772. },
  31773. isSeparator$1: function(codeUnit) {
  31774. return codeUnit === 47;
  31775. },
  31776. needsSeparator$1: function(path) {
  31777. var t1 = path.length;
  31778. if (t1 === 0)
  31779. return false;
  31780. if (C.JSString_methods.codeUnitAt$1(path, t1 - 1) !== 47)
  31781. return true;
  31782. return C.JSString_methods.endsWith$1(path, "://") && this.rootLength$1(path) === t1;
  31783. },
  31784. rootLength$2$withDrive: function(path, withDrive) {
  31785. var i, codeUnit, index, t2,
  31786. t1 = path.length;
  31787. if (t1 === 0)
  31788. return 0;
  31789. if (C.JSString_methods._codeUnitAt$1(path, 0) === 47)
  31790. return 1;
  31791. for (i = 0; i < t1; ++i) {
  31792. codeUnit = C.JSString_methods._codeUnitAt$1(path, i);
  31793. if (codeUnit === 47)
  31794. return 0;
  31795. if (codeUnit === 58) {
  31796. if (i === 0)
  31797. return 0;
  31798. index = C.JSString_methods.indexOf$2(path, "/", C.JSString_methods.startsWith$2(path, "//", i + 1) ? i + 3 : i);
  31799. if (index <= 0)
  31800. return t1;
  31801. if (!withDrive || t1 < index + 3)
  31802. return index;
  31803. if (!C.JSString_methods.startsWith$1(path, "file://"))
  31804. return index;
  31805. if (!B.isDriveLetter(path, index + 1))
  31806. return index;
  31807. t2 = index + 3;
  31808. return t1 === t2 ? t2 : index + 4;
  31809. }
  31810. }
  31811. return 0;
  31812. },
  31813. rootLength$1: function(path) {
  31814. return this.rootLength$2$withDrive(path, false);
  31815. },
  31816. isRootRelative$1: function(path) {
  31817. return path.length !== 0 && C.JSString_methods._codeUnitAt$1(path, 0) === 47;
  31818. },
  31819. pathFromUri$1: function(uri) {
  31820. return J.toString$0$(uri);
  31821. },
  31822. relativePathToUri$1: function(path) {
  31823. return P.Uri_parse(path);
  31824. },
  31825. absolutePathToUri$1: function(path) {
  31826. return P.Uri_parse(path);
  31827. },
  31828. get$name: function() {
  31829. return "url";
  31830. },
  31831. get$separator: function() {
  31832. return "/";
  31833. }
  31834. };
  31835. L.WindowsStyle.prototype = {
  31836. containsSeparator$1: function(path) {
  31837. return C.JSString_methods.contains$1(path, "/");
  31838. },
  31839. isSeparator$1: function(codeUnit) {
  31840. return codeUnit === 47 || codeUnit === 92;
  31841. },
  31842. needsSeparator$1: function(path) {
  31843. var t1 = path.length;
  31844. if (t1 === 0)
  31845. return false;
  31846. t1 = C.JSString_methods.codeUnitAt$1(path, t1 - 1);
  31847. return !(t1 === 47 || t1 === 92);
  31848. },
  31849. rootLength$2$withDrive: function(path, withDrive) {
  31850. var t2, index,
  31851. t1 = path.length;
  31852. if (t1 === 0)
  31853. return 0;
  31854. t2 = C.JSString_methods._codeUnitAt$1(path, 0);
  31855. if (t2 === 47)
  31856. return 1;
  31857. if (t2 === 92) {
  31858. if (t1 < 2 || C.JSString_methods._codeUnitAt$1(path, 1) !== 92)
  31859. return 1;
  31860. index = C.JSString_methods.indexOf$2(path, "\\", 2);
  31861. if (index > 0) {
  31862. index = C.JSString_methods.indexOf$2(path, "\\", index + 1);
  31863. if (index > 0)
  31864. return index;
  31865. }
  31866. return t1;
  31867. }
  31868. if (t1 < 3)
  31869. return 0;
  31870. if (!B.isAlphabetic(t2))
  31871. return 0;
  31872. if (C.JSString_methods._codeUnitAt$1(path, 1) !== 58)
  31873. return 0;
  31874. t1 = C.JSString_methods._codeUnitAt$1(path, 2);
  31875. if (!(t1 === 47 || t1 === 92))
  31876. return 0;
  31877. return 3;
  31878. },
  31879. rootLength$1: function(path) {
  31880. return this.rootLength$2$withDrive(path, false);
  31881. },
  31882. isRootRelative$1: function(path) {
  31883. return this.rootLength$1(path) === 1;
  31884. },
  31885. pathFromUri$1: function(uri) {
  31886. var path, t1;
  31887. if (uri.get$scheme() !== "" && uri.get$scheme() !== "file")
  31888. throw H.wrapException(P.ArgumentError$("Uri " + uri.toString$0(0) + " must have scheme 'file:'."));
  31889. path = uri.get$path(uri);
  31890. if (uri.get$host() === "") {
  31891. if (path.length >= 3 && C.JSString_methods.startsWith$1(path, "/") && B.isDriveLetter(path, 1))
  31892. path = C.JSString_methods.replaceFirst$2(path, "/", "");
  31893. } else
  31894. path = "\\\\" + H.S(uri.get$host()) + path;
  31895. t1 = H.stringReplaceAllUnchecked(path, "/", "\\");
  31896. return P._Uri__uriDecode(t1, 0, t1.length, C.C_Utf8Codec, false);
  31897. },
  31898. absolutePathToUri$1: function(path) {
  31899. var rootParts, t2,
  31900. parsed = X.ParsedPath_ParsedPath$parse(path, this),
  31901. t1 = parsed.root;
  31902. if (J.startsWith$1$s(t1, "\\\\")) {
  31903. rootParts = new H.WhereIterable(H.setRuntimeTypeInfo(t1.split("\\"), type$.JSArray_String), new L.WindowsStyle_absolutePathToUri_closure(), type$.WhereIterable_String);
  31904. C.JSArray_methods.insert$2(parsed.parts, 0, rootParts.get$last(rootParts));
  31905. if (parsed.get$hasTrailingSeparator())
  31906. C.JSArray_methods.add$1(parsed.parts, "");
  31907. return P._Uri__Uri(rootParts.get$first(rootParts), null, parsed.parts, "file");
  31908. } else {
  31909. if (parsed.parts.length === 0 || parsed.get$hasTrailingSeparator())
  31910. C.JSArray_methods.add$1(parsed.parts, "");
  31911. t1 = parsed.parts;
  31912. t2 = parsed.root;
  31913. t2.toString;
  31914. t2 = H.stringReplaceAllUnchecked(t2, "/", "");
  31915. C.JSArray_methods.insert$2(t1, 0, H.stringReplaceAllUnchecked(t2, "\\", ""));
  31916. return P._Uri__Uri(null, null, parsed.parts, "file");
  31917. }
  31918. },
  31919. codeUnitsEqual$2: function(codeUnit1, codeUnit2) {
  31920. var upperCase1;
  31921. if (codeUnit1 === codeUnit2)
  31922. return true;
  31923. if (codeUnit1 === 47)
  31924. return codeUnit2 === 92;
  31925. if (codeUnit1 === 92)
  31926. return codeUnit2 === 47;
  31927. if ((codeUnit1 ^ codeUnit2) !== 32)
  31928. return false;
  31929. upperCase1 = codeUnit1 | 32;
  31930. return upperCase1 >= 97 && upperCase1 <= 122;
  31931. },
  31932. pathsEqual$2: function(path1, path2) {
  31933. var t1, t2, i;
  31934. if (path1 == path2)
  31935. return true;
  31936. t1 = path1.length;
  31937. if (t1 !== path2.length)
  31938. return false;
  31939. for (t2 = J.getInterceptor$s(path2), i = 0; i < t1; ++i)
  31940. if (!this.codeUnitsEqual$2(C.JSString_methods._codeUnitAt$1(path1, i), t2._codeUnitAt$1(path2, i)))
  31941. return false;
  31942. return true;
  31943. },
  31944. canonicalizeCodeUnit$1: function(codeUnit) {
  31945. if (codeUnit === 47)
  31946. return 92;
  31947. if (codeUnit < 65)
  31948. return codeUnit;
  31949. if (codeUnit > 90)
  31950. return codeUnit;
  31951. return codeUnit | 32;
  31952. },
  31953. canonicalizePart$1: function(part) {
  31954. return part.toLowerCase();
  31955. },
  31956. get$name: function() {
  31957. return "windows";
  31958. },
  31959. get$separator: function() {
  31960. return "\\";
  31961. }
  31962. };
  31963. L.WindowsStyle_absolutePathToUri_closure.prototype = {
  31964. call$1: function(part) {
  31965. return part !== "";
  31966. }
  31967. };
  31968. F.CssMediaQuery.prototype = {
  31969. merge$1: function(other) {
  31970. var _i, t8, negativeFeatures, features, type, modifier, fewerFeatures, fewerFeatures0, moreFeatures, _this = this, _null = null, _s3_ = "all",
  31971. t1 = _this.modifier,
  31972. ourModifier = t1 == null ? _null : t1.toLowerCase(),
  31973. t2 = _this.type,
  31974. t3 = t2 == null,
  31975. ourType = t3 ? _null : t2.toLowerCase(),
  31976. t4 = other.modifier,
  31977. theirModifier = t4 == null ? _null : t4.toLowerCase(),
  31978. t5 = other.type,
  31979. t6 = t5 == null,
  31980. theirType = t6 ? _null : t5.toLowerCase(),
  31981. t7 = ourType == null;
  31982. if (t7 && theirType == null) {
  31983. t1 = H.setRuntimeTypeInfo([], type$.JSArray_String);
  31984. for (t2 = _this.features, t3 = t2.length, _i = 0; _i < t3; ++_i)
  31985. t1.push(t2[_i]);
  31986. for (t2 = other.features, t3 = t2.length, _i = 0; _i < t3; ++_i)
  31987. t1.push(t2[_i]);
  31988. return new F.MediaQuerySuccessfulMergeResult(new F.CssMediaQuery(_null, _null, P.List_List$unmodifiable(t1, type$.String)));
  31989. }
  31990. t8 = ourModifier === "not";
  31991. if (t8 !== (theirModifier === "not")) {
  31992. if (ourType == theirType) {
  31993. negativeFeatures = t8 ? _this.features : other.features;
  31994. if (C.JSArray_methods.every$1(negativeFeatures, C.JSArray_methods.get$contains(t8 ? other.features : _this.features)))
  31995. return C._SingletonCssMediaQueryMergeResult_empty;
  31996. else
  31997. return C._SingletonCssMediaQueryMergeResult_unrepresentable;
  31998. } else if (t3 || B.equalsIgnoreCase(t2, _s3_) || t6 || B.equalsIgnoreCase(t5, _s3_))
  31999. return C._SingletonCssMediaQueryMergeResult_unrepresentable;
  32000. if (t8) {
  32001. features = other.features;
  32002. type = theirType;
  32003. modifier = theirModifier;
  32004. } else {
  32005. features = _this.features;
  32006. type = ourType;
  32007. modifier = ourModifier;
  32008. }
  32009. } else if (t8) {
  32010. if (ourType != theirType)
  32011. return C._SingletonCssMediaQueryMergeResult_unrepresentable;
  32012. fewerFeatures = _this.features;
  32013. fewerFeatures0 = other.features;
  32014. t3 = fewerFeatures.length > fewerFeatures0.length;
  32015. moreFeatures = t3 ? fewerFeatures : fewerFeatures0;
  32016. if (t3)
  32017. fewerFeatures = fewerFeatures0;
  32018. if (!C.JSArray_methods.every$1(fewerFeatures, C.JSArray_methods.get$contains(moreFeatures)))
  32019. return C._SingletonCssMediaQueryMergeResult_unrepresentable;
  32020. features = moreFeatures;
  32021. type = ourType;
  32022. modifier = ourModifier;
  32023. } else if (t3 || B.equalsIgnoreCase(t2, _s3_)) {
  32024. type = (t6 || B.equalsIgnoreCase(t5, _s3_)) && t7 ? _null : theirType;
  32025. t3 = H.setRuntimeTypeInfo([], type$.JSArray_String);
  32026. for (t6 = _this.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
  32027. t3.push(t6[_i]);
  32028. for (t6 = other.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
  32029. t3.push(t6[_i]);
  32030. features = t3;
  32031. modifier = theirModifier;
  32032. } else {
  32033. if (t6 || B.equalsIgnoreCase(t5, _s3_)) {
  32034. t3 = H.setRuntimeTypeInfo([], type$.JSArray_String);
  32035. for (t6 = _this.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
  32036. t3.push(t6[_i]);
  32037. for (t6 = other.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
  32038. t3.push(t6[_i]);
  32039. features = t3;
  32040. modifier = ourModifier;
  32041. } else {
  32042. if (ourType != theirType)
  32043. return C._SingletonCssMediaQueryMergeResult_empty;
  32044. else {
  32045. modifier = ourModifier == null ? theirModifier : ourModifier;
  32046. t3 = H.setRuntimeTypeInfo([], type$.JSArray_String);
  32047. for (t6 = _this.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
  32048. t3.push(t6[_i]);
  32049. for (t6 = other.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
  32050. t3.push(t6[_i]);
  32051. }
  32052. features = t3;
  32053. }
  32054. type = ourType;
  32055. }
  32056. t2 = type == ourType ? t2 : t5;
  32057. return new F.MediaQuerySuccessfulMergeResult(F.CssMediaQuery$(t2, features, modifier == ourModifier ? t1 : t4));
  32058. },
  32059. $eq: function(_, other) {
  32060. if (other == null)
  32061. return false;
  32062. return other instanceof F.CssMediaQuery && other.modifier == this.modifier && other.type == this.type && C.C_ListEquality.equals$2(other.features, this.features);
  32063. },
  32064. get$hashCode: function(_) {
  32065. return J.get$hashCode$(this.modifier) ^ J.get$hashCode$(this.type) ^ C.C_ListEquality.hash$1(this.features);
  32066. },
  32067. toString$0: function(_) {
  32068. var t2, _this = this,
  32069. t1 = _this.modifier;
  32070. t1 = t1 != null ? t1 + " " : "";
  32071. t2 = _this.type;
  32072. if (t2 != null) {
  32073. t1 += t2;
  32074. if (_this.features.length !== 0)
  32075. t1 += " and ";
  32076. }
  32077. t1 += C.JSArray_methods.join$1(_this.features, " and ");
  32078. return t1.charCodeAt(0) == 0 ? t1 : t1;
  32079. }
  32080. };
  32081. F._SingletonCssMediaQueryMergeResult.prototype = {
  32082. toString$0: function(_) {
  32083. return this._media_query$_name;
  32084. }
  32085. };
  32086. F.MediaQuerySuccessfulMergeResult.prototype = {};
  32087. U.ModifiableCssAtRule.prototype = {
  32088. accept$1$1: function(visitor) {
  32089. return visitor.visitCssAtRule$1(this);
  32090. },
  32091. accept$1: function(visitor) {
  32092. return this.accept$1$1(visitor, type$.dynamic);
  32093. },
  32094. copyWithoutChildren$0: function() {
  32095. var _this = this,
  32096. t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
  32097. return new U.ModifiableCssAtRule(_this.name, _this.value, _this.isChildless, _this.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1);
  32098. },
  32099. addChild$1: function(child) {
  32100. this.super$ModifiableCssParentNode$addChild(child);
  32101. },
  32102. $isCssAtRule: 1,
  32103. get$isChildless: function() {
  32104. return this.isChildless;
  32105. },
  32106. get$span: function() {
  32107. return this.span;
  32108. }
  32109. };
  32110. R.ModifiableCssComment.prototype = {
  32111. accept$1$1: function(visitor) {
  32112. return visitor.visitCssComment$1(this);
  32113. },
  32114. accept$1: function(visitor) {
  32115. return this.accept$1$1(visitor, type$.dynamic);
  32116. },
  32117. $isCssComment: 1,
  32118. get$span: function() {
  32119. return this.span;
  32120. }
  32121. };
  32122. L.ModifiableCssDeclaration.prototype = {
  32123. accept$1$1: function(visitor) {
  32124. return visitor.visitCssDeclaration$1(this);
  32125. },
  32126. accept$1: function(visitor) {
  32127. return this.accept$1$1(visitor, type$.dynamic);
  32128. },
  32129. get$span: function() {
  32130. return this.span;
  32131. }
  32132. };
  32133. F.ModifiableCssImport.prototype = {
  32134. accept$1$1: function(visitor) {
  32135. return visitor.visitCssImport$1(this);
  32136. },
  32137. accept$1: function(visitor) {
  32138. return this.accept$1$1(visitor, type$.dynamic);
  32139. },
  32140. $isCssImport: 1,
  32141. get$span: function() {
  32142. return this.span;
  32143. }
  32144. };
  32145. U.ModifiableCssKeyframeBlock.prototype = {
  32146. accept$1$1: function(visitor) {
  32147. return visitor.visitCssKeyframeBlock$1(this);
  32148. },
  32149. accept$1: function(visitor) {
  32150. return this.accept$1$1(visitor, type$.dynamic);
  32151. },
  32152. copyWithoutChildren$0: function() {
  32153. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
  32154. return new U.ModifiableCssKeyframeBlock(this.selector, this.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1);
  32155. },
  32156. get$span: function() {
  32157. return this.span;
  32158. }
  32159. };
  32160. G.ModifiableCssMediaRule.prototype = {
  32161. accept$1$1: function(visitor) {
  32162. return visitor.visitCssMediaRule$1(this);
  32163. },
  32164. accept$1: function(visitor) {
  32165. return this.accept$1$1(visitor, type$.dynamic);
  32166. },
  32167. copyWithoutChildren$0: function() {
  32168. return G.ModifiableCssMediaRule$(this.queries, this.span);
  32169. },
  32170. $isCssMediaRule: 1,
  32171. get$span: function() {
  32172. return this.span;
  32173. }
  32174. };
  32175. B.ModifiableCssNode.prototype = {
  32176. get$hasFollowingSibling: function() {
  32177. var siblings, i, t2,
  32178. t1 = this._parent;
  32179. if (t1 == null)
  32180. return false;
  32181. siblings = t1.children;
  32182. for (i = this._indexInParent + 1, t1 = siblings._collection$_source, t2 = J.getInterceptor$asx(t1); i < t2.get$length(t1); ++i)
  32183. if (!this._node0$_isInvisible$1(t2.elementAt$1(t1, i)))
  32184. return true;
  32185. return false;
  32186. },
  32187. _node0$_isInvisible$1: function(node) {
  32188. if (type$.CssParentNode._is(node)) {
  32189. if (type$.CssAtRule._is(node))
  32190. return false;
  32191. if (type$.CssStyleRule._is(node) && node.selector.value.get$isInvisible())
  32192. return true;
  32193. return J.every$1$ax(node.get$children(), this.get$_node0$_isInvisible());
  32194. } else
  32195. return false;
  32196. },
  32197. get$isGroupEnd: function() {
  32198. return this.isGroupEnd;
  32199. }
  32200. };
  32201. B.ModifiableCssParentNode.prototype = {
  32202. get$isChildless: function() {
  32203. return false;
  32204. },
  32205. addChild$1: function(child) {
  32206. var t1;
  32207. child._parent = this;
  32208. t1 = this._children;
  32209. child._indexInParent = t1.length;
  32210. t1.push(child);
  32211. },
  32212. $isCssParentNode: 1,
  32213. get$children: function() {
  32214. return this.children;
  32215. }
  32216. };
  32217. X.ModifiableCssStyleRule.prototype = {
  32218. accept$1$1: function(visitor) {
  32219. return visitor.visitCssStyleRule$1(this);
  32220. },
  32221. accept$1: function(visitor) {
  32222. return this.accept$1$1(visitor, type$.dynamic);
  32223. },
  32224. copyWithoutChildren$0: function() {
  32225. return X.ModifiableCssStyleRule$(this.selector, this.span, this.originalSelector);
  32226. },
  32227. $isCssStyleRule: 1,
  32228. get$span: function() {
  32229. return this.span;
  32230. }
  32231. };
  32232. V.ModifiableCssStylesheet.prototype = {
  32233. accept$1$1: function(visitor) {
  32234. return visitor.visitCssStylesheet$1(this);
  32235. },
  32236. accept$1: function(visitor) {
  32237. return this.accept$1$1(visitor, type$.dynamic);
  32238. },
  32239. copyWithoutChildren$0: function() {
  32240. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
  32241. return new V.ModifiableCssStylesheet(this.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1);
  32242. },
  32243. $isCssStylesheet: 1,
  32244. get$span: function() {
  32245. return this.span;
  32246. }
  32247. };
  32248. B.ModifiableCssSupportsRule.prototype = {
  32249. accept$1$1: function(visitor) {
  32250. return visitor.visitCssSupportsRule$1(this);
  32251. },
  32252. accept$1: function(visitor) {
  32253. return this.accept$1$1(visitor, type$.dynamic);
  32254. },
  32255. copyWithoutChildren$0: function() {
  32256. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
  32257. return new B.ModifiableCssSupportsRule(this.condition, this.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1);
  32258. },
  32259. $isCssSupportsRule: 1,
  32260. get$span: function() {
  32261. return this.span;
  32262. }
  32263. };
  32264. F.ModifiableCssValue.prototype = {
  32265. toString$0: function(_) {
  32266. return J.toString$0$(this.value);
  32267. },
  32268. $isCssValue: 1,
  32269. $isAstNode: 1,
  32270. get$value: function(receiver) {
  32271. return this.value;
  32272. },
  32273. get$span: function() {
  32274. return this.span;
  32275. }
  32276. };
  32277. B.CssNode.prototype = {
  32278. toString$0: function(_) {
  32279. return N.serialize(this, true, null, true, null, false, null, true).css;
  32280. }
  32281. };
  32282. B.CssParentNode.prototype = {};
  32283. V.CssStylesheet.prototype = {
  32284. get$isGroupEnd: function() {
  32285. return false;
  32286. },
  32287. get$isChildless: function() {
  32288. return false;
  32289. },
  32290. accept$1$1: function(visitor) {
  32291. return visitor.visitCssStylesheet$1(this);
  32292. },
  32293. accept$1: function(visitor) {
  32294. return this.accept$1$1(visitor, type$.dynamic);
  32295. },
  32296. get$children: function() {
  32297. return this.children;
  32298. },
  32299. get$span: function() {
  32300. return this.span;
  32301. }
  32302. };
  32303. F.CssValue.prototype = {
  32304. toString$0: function(_) {
  32305. return J.toString$0$(this.value);
  32306. },
  32307. $isAstNode: 1,
  32308. get$value: function(receiver) {
  32309. return this.value;
  32310. },
  32311. get$span: function() {
  32312. return this.span;
  32313. }
  32314. };
  32315. B.AstNode.prototype = {};
  32316. B._FakeAstNode.prototype = {
  32317. get$span: function() {
  32318. return this._callback.call$0();
  32319. },
  32320. $isAstNode: 1
  32321. };
  32322. Z.Argument.prototype = {
  32323. toString$0: function(_) {
  32324. var t1 = this.defaultValue,
  32325. t2 = this.name;
  32326. return t1 == null ? t2 : t2 + ": " + t1.toString$0(0);
  32327. },
  32328. $isAstNode: 1,
  32329. get$span: function() {
  32330. return this.span;
  32331. }
  32332. };
  32333. B.ArgumentDeclaration.prototype = {
  32334. get$spanWithName: function() {
  32335. var t3, t4,
  32336. t1 = this.span,
  32337. t2 = t1.file,
  32338. text = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t2._decodedChars, 0, null), 0, null),
  32339. i = Y.FileLocation$_(t2, t1._file$_start).offset - 1;
  32340. while (true) {
  32341. if (i > 0) {
  32342. t3 = C.JSString_methods.codeUnitAt$1(text, i);
  32343. t3 = t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12;
  32344. } else
  32345. t3 = false;
  32346. if (!t3)
  32347. break;
  32348. --i;
  32349. }
  32350. t3 = C.JSString_methods.codeUnitAt$1(text, i);
  32351. if (!(t3 === 95 || T.isAlphabetic0(t3) || t3 >= 128 || T.isDigit(t3) || t3 === 45))
  32352. return t1;
  32353. --i;
  32354. while (true) {
  32355. if (i >= 0) {
  32356. t3 = C.JSString_methods.codeUnitAt$1(text, i);
  32357. if (t3 !== 95) {
  32358. if (!(t3 >= 97 && t3 <= 122))
  32359. t4 = t3 >= 65 && t3 <= 90;
  32360. else
  32361. t4 = true;
  32362. t4 = t4 || t3 >= 128;
  32363. } else
  32364. t4 = true;
  32365. if (!t4) {
  32366. t4 = t3 >= 48 && t3 <= 57;
  32367. t3 = t4 || t3 === 45;
  32368. } else
  32369. t3 = true;
  32370. } else
  32371. t3 = false;
  32372. if (!t3)
  32373. break;
  32374. --i;
  32375. }
  32376. t3 = i + 1;
  32377. t4 = C.JSString_methods.codeUnitAt$1(text, t3);
  32378. if (!(t4 === 95 || T.isAlphabetic0(t4) || t4 >= 128))
  32379. return t1;
  32380. return B.SpanExtensions_trim(t2.span$2(t3, Y.FileLocation$_(t2, t1._end).offset));
  32381. },
  32382. get$originalRestArgument: function() {
  32383. var t1, text;
  32384. if (this.restArgument == null)
  32385. return null;
  32386. t1 = this.span;
  32387. text = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, null);
  32388. return C.JSString_methods.substring$2(C.JSString_methods.substring$1(text, C.JSString_methods.lastIndexOf$1(text, "$")), 0, C.JSString_methods.indexOf$1(text, "."));
  32389. },
  32390. verify$2: function(positional, names) {
  32391. var t1, t2, t3, namedUsed, i, argument, t4, unknownNames, _this = this,
  32392. _s10_ = "invocation",
  32393. _s8_ = "argument";
  32394. for (t1 = _this.$arguments, t2 = t1.length, t3 = names._baseMap, namedUsed = 0, i = 0; i < t2; ++i) {
  32395. argument = t1[i];
  32396. if (i < positional) {
  32397. t4 = argument.name;
  32398. if (t3.containsKey$1(t4))
  32399. throw H.wrapException(E.SassScriptException$("Argument " + H.S(_this._originalArgumentName$1(t4)) + " was passed both by position and by name."));
  32400. } else {
  32401. t4 = argument.name;
  32402. if (t3.containsKey$1(t4))
  32403. ++namedUsed;
  32404. else if (argument.defaultValue == null)
  32405. throw H.wrapException(E.MultiSpanSassScriptException$("Missing argument " + H.S(_this._originalArgumentName$1(t4)) + ".", _s10_, P.LinkedHashMap_LinkedHashMap$_literal([_this.get$spanWithName(), "declaration"], type$.FileSpan, type$.String)));
  32406. }
  32407. }
  32408. if (_this.restArgument != null)
  32409. return;
  32410. if (positional > t2) {
  32411. t1 = "Only " + t2 + " ";
  32412. throw H.wrapException(E.MultiSpanSassScriptException$(t1 + (names.get$isEmpty(names) ? "" : "positional ") + B.pluralize(_s8_, t2, null) + " allowed, but " + positional + " " + B.pluralize("was", positional, "were") + " passed.", _s10_, P.LinkedHashMap_LinkedHashMap$_literal([_this.get$spanWithName(), "declaration"], type$.FileSpan, type$.String)));
  32413. }
  32414. if (namedUsed < t3.get$length(t3)) {
  32415. t2 = type$.String;
  32416. unknownNames = P.LinkedHashSet_LinkedHashSet$of(names, t2);
  32417. unknownNames.removeAll$1(new H.MappedListIterable(t1, new B.ArgumentDeclaration_verify_closure(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Object>")));
  32418. throw H.wrapException(E.MultiSpanSassScriptException$("No " + B.pluralize(_s8_, unknownNames._collection$_length, null) + " named " + H.S(B.toSentence(unknownNames.map$1$1(0, new B.ArgumentDeclaration_verify_closure0(), type$.Object), "or")) + ".", _s10_, P.LinkedHashMap_LinkedHashMap$_literal([_this.get$spanWithName(), "declaration"], type$.FileSpan, t2)));
  32419. }
  32420. },
  32421. _originalArgumentName$1: function($name) {
  32422. var t1, t2, _i, argument, t3, t4, text, end;
  32423. if ($name === this.restArgument)
  32424. return this.get$originalRestArgument();
  32425. for (t1 = this.$arguments, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  32426. argument = t1[_i];
  32427. if (argument.name === $name) {
  32428. t1 = argument.defaultValue;
  32429. t2 = argument.span;
  32430. t3 = t2.file;
  32431. t4 = t2._file$_start;
  32432. t2 = t2._end;
  32433. if (t1 == null) {
  32434. t1 = t3._decodedChars;
  32435. t1 = P.String_String$fromCharCodes(new Uint32Array(t1.subarray(t4, H._checkValidRange(t4, t2, t1.length))), 0, null);
  32436. } else {
  32437. t1 = t3._decodedChars;
  32438. text = P.String_String$fromCharCodes(new Uint32Array(t1.subarray(t4, H._checkValidRange(t4, t2, t1.length))), 0, null);
  32439. t1 = C.JSString_methods.substring$2(text, 0, C.JSString_methods.indexOf$1(text, ":"));
  32440. end = B._lastNonWhitespace(t1, false);
  32441. t1 = end == null ? "" : C.JSString_methods.substring$2(t1, 0, end + 1);
  32442. }
  32443. return t1;
  32444. }
  32445. }
  32446. throw H.wrapException(P.ArgumentError$('This declaration has no argument named "$' + $name + '".'));
  32447. },
  32448. matches$2: function(positional, names) {
  32449. var t1, t2, t3, namedUsed, i, argument;
  32450. for (t1 = this.$arguments, t2 = t1.length, t3 = names._baseMap, namedUsed = 0, i = 0; i < t2; ++i) {
  32451. argument = t1[i];
  32452. if (i < positional) {
  32453. if (t3.containsKey$1(argument.name))
  32454. return false;
  32455. } else if (t3.containsKey$1(argument.name))
  32456. ++namedUsed;
  32457. else if (argument.defaultValue == null)
  32458. return false;
  32459. }
  32460. if (this.restArgument != null)
  32461. return true;
  32462. if (positional > t2)
  32463. return false;
  32464. if (namedUsed < t3.get$length(t3))
  32465. return false;
  32466. return true;
  32467. },
  32468. toString$0: function(_) {
  32469. var t2, t3, _i,
  32470. t1 = H.setRuntimeTypeInfo([], type$.JSArray_String);
  32471. for (t2 = this.$arguments, t3 = t2.length, _i = 0; _i < t3; ++_i)
  32472. t1.push(J.toString$0$(t2[_i]));
  32473. t2 = this.restArgument;
  32474. if (t2 != null)
  32475. t1.push(t2 + "...");
  32476. return C.JSArray_methods.join$1(t1, ", ");
  32477. },
  32478. $isAstNode: 1,
  32479. get$span: function() {
  32480. return this.span;
  32481. }
  32482. };
  32483. B.ArgumentDeclaration_verify_closure.prototype = {
  32484. call$1: function(argument) {
  32485. return argument.name;
  32486. }
  32487. };
  32488. B.ArgumentDeclaration_verify_closure0.prototype = {
  32489. call$1: function($name) {
  32490. return "$" + H.S($name);
  32491. }
  32492. };
  32493. X.ArgumentInvocation.prototype = {
  32494. get$isEmpty: function(_) {
  32495. var t1;
  32496. if (this.positional.length === 0) {
  32497. t1 = this.named;
  32498. t1 = t1.get$isEmpty(t1) && this.rest == null;
  32499. } else
  32500. t1 = false;
  32501. return t1;
  32502. },
  32503. toString$0: function(_) {
  32504. var t2, t3, _i, t4, _this = this, t1 = [];
  32505. for (t2 = _this.positional, t3 = t2.length, _i = 0; _i < t3; ++_i)
  32506. t1.push(t2[_i]);
  32507. for (t2 = _this.named, t3 = J.get$iterator$ax(t2.get$keys()); t3.moveNext$0();) {
  32508. t4 = t3.get$current(t3);
  32509. t1.push(H.S(t4) + ": " + H.S(t2.$index(0, t4)));
  32510. }
  32511. t2 = _this.rest;
  32512. if (t2 != null)
  32513. t1.push(t2.toString$0(0) + "...");
  32514. t2 = _this.keywordRest;
  32515. if (t2 != null)
  32516. t1.push(t2.toString$0(0) + "...");
  32517. return "(" + C.JSArray_methods.join$1(t1, ", ") + ")";
  32518. },
  32519. $isAstNode: 1,
  32520. get$span: function() {
  32521. return this.span;
  32522. }
  32523. };
  32524. V.AtRootQuery.prototype = {
  32525. excludes$1: function(node) {
  32526. var _this = this;
  32527. if (_this._all)
  32528. return !_this.include;
  32529. if (_this._at_root_query$_rule && type$.CssStyleRule._is(node))
  32530. return !_this.include;
  32531. return _this.names.contains$1(0, _this._nameFor$1(node)) !== _this.include;
  32532. },
  32533. _nameFor$1: function(node) {
  32534. var t1;
  32535. if (type$.CssMediaRule._is(node))
  32536. return "media";
  32537. if (type$.CssSupportsRule._is(node))
  32538. return "supports";
  32539. if (type$.CssAtRule._is(node)) {
  32540. t1 = node.name;
  32541. return t1.get$value(t1).toLowerCase();
  32542. }
  32543. return null;
  32544. }
  32545. };
  32546. Z.ConfiguredVariable.prototype = {
  32547. toString$0: function(_) {
  32548. var t1 = "$" + this.name + ": " + H.S(this.expression);
  32549. return t1 + (this.isGuarded ? " !default" : "");
  32550. },
  32551. $isAstNode: 1,
  32552. get$span: function() {
  32553. return this.span;
  32554. }
  32555. };
  32556. T.Expression.prototype = {$isAstNode: 1};
  32557. V.BinaryOperationExpression.prototype = {
  32558. get$span: function() {
  32559. var right,
  32560. left = this.left;
  32561. for (; left instanceof V.BinaryOperationExpression;)
  32562. left = left.left;
  32563. right = this.right;
  32564. for (; right instanceof V.BinaryOperationExpression;)
  32565. right = right.right;
  32566. return B.spanForList(H.setRuntimeTypeInfo([left, right], type$.JSArray_AstNode));
  32567. },
  32568. accept$1$1: function(visitor) {
  32569. return visitor.visitBinaryOperationExpression$1(this);
  32570. },
  32571. accept$1: function(visitor) {
  32572. return this.accept$1$1(visitor, type$.dynamic);
  32573. },
  32574. toString$0: function(_) {
  32575. var t2, right, rightNeedsParens, _this = this,
  32576. left = _this.left,
  32577. leftNeedsParens = left instanceof V.BinaryOperationExpression && left.operator.precedence < _this.operator.precedence,
  32578. t1 = leftNeedsParens ? H.Primitives_stringFromCharCode(40) : "";
  32579. t1 += H.S(left);
  32580. if (leftNeedsParens)
  32581. t1 += H.Primitives_stringFromCharCode(41);
  32582. t2 = _this.operator;
  32583. t1 = t1 + H.Primitives_stringFromCharCode(32) + t2.operator + H.Primitives_stringFromCharCode(32);
  32584. right = _this.right;
  32585. rightNeedsParens = right instanceof V.BinaryOperationExpression && right.operator.precedence <= t2.precedence;
  32586. if (rightNeedsParens)
  32587. t1 += H.Primitives_stringFromCharCode(40);
  32588. t1 += H.S(right);
  32589. if (rightNeedsParens)
  32590. t1 += H.Primitives_stringFromCharCode(41);
  32591. return t1.charCodeAt(0) == 0 ? t1 : t1;
  32592. },
  32593. $isAstNode: 1,
  32594. $isExpression: 1
  32595. };
  32596. V.BinaryOperator.prototype = {
  32597. toString$0: function(_) {
  32598. return this.name;
  32599. }
  32600. };
  32601. Z.BooleanExpression.prototype = {
  32602. accept$1$1: function(visitor) {
  32603. return visitor.visitBooleanExpression$1(this);
  32604. },
  32605. accept$1: function(visitor) {
  32606. return this.accept$1$1(visitor, type$.dynamic);
  32607. },
  32608. toString$0: function(_) {
  32609. return String(this.value);
  32610. },
  32611. $isAstNode: 1,
  32612. $isExpression: 1,
  32613. get$span: function() {
  32614. return this.span;
  32615. }
  32616. };
  32617. K.ColorExpression.prototype = {
  32618. get$span: function() {
  32619. return this.value.originalSpan;
  32620. },
  32621. accept$1$1: function(visitor) {
  32622. return visitor.visitColorExpression$1(this);
  32623. },
  32624. accept$1: function(visitor) {
  32625. return this.accept$1$1(visitor, type$.dynamic);
  32626. },
  32627. toString$0: function(_) {
  32628. return N.serializeValue0(this.value, true, true);
  32629. },
  32630. $isAstNode: 1,
  32631. $isExpression: 1
  32632. };
  32633. F.FunctionExpression.prototype = {
  32634. accept$1$1: function(visitor) {
  32635. return visitor.visitFunctionExpression$1(this);
  32636. },
  32637. accept$1: function(visitor) {
  32638. return this.accept$1$1(visitor, type$.dynamic);
  32639. },
  32640. toString$0: function(_) {
  32641. var t1 = this.namespace;
  32642. t1 = t1 != null ? t1 + "." : "";
  32643. t1 += this.name.toString$0(0) + this.$arguments.toString$0(0);
  32644. return t1.charCodeAt(0) == 0 ? t1 : t1;
  32645. },
  32646. $isAstNode: 1,
  32647. $isExpression: 1,
  32648. get$span: function() {
  32649. return this.span;
  32650. }
  32651. };
  32652. L.IfExpression.prototype = {
  32653. accept$1$1: function(visitor) {
  32654. return visitor.visitIfExpression$1(this);
  32655. },
  32656. accept$1: function(visitor) {
  32657. return this.accept$1$1(visitor, type$.dynamic);
  32658. },
  32659. toString$0: function(_) {
  32660. return "if" + this.$arguments.toString$0(0);
  32661. },
  32662. $isAstNode: 1,
  32663. $isExpression: 1,
  32664. get$span: function() {
  32665. return this.span;
  32666. }
  32667. };
  32668. D.ListExpression.prototype = {
  32669. accept$1$1: function(visitor) {
  32670. return visitor.visitListExpression$1(this);
  32671. },
  32672. accept$1: function(visitor) {
  32673. return this.accept$1$1(visitor, type$.dynamic);
  32674. },
  32675. toString$0: function(_) {
  32676. var _this = this,
  32677. t1 = _this.hasBrackets,
  32678. t2 = t1 ? H.Primitives_stringFromCharCode(91) : "",
  32679. t3 = _this.contents,
  32680. t4 = _this.separator === C.ListSeparator_comma ? ", " : " ";
  32681. t4 = t2 + new H.MappedListIterable(t3, new D.ListExpression_toString_closure(_this), H._arrayInstanceType(t3)._eval$1("MappedListIterable<1,String>")).join$1(0, t4);
  32682. t1 = t1 ? t4 + H.Primitives_stringFromCharCode(93) : t4;
  32683. return t1.charCodeAt(0) == 0 ? t1 : t1;
  32684. },
  32685. _list0$_elementNeedsParens$1: function(expression) {
  32686. var t1, t2;
  32687. if (expression instanceof D.ListExpression) {
  32688. if (expression.contents.length < 2)
  32689. return false;
  32690. if (expression.hasBrackets)
  32691. return false;
  32692. t1 = this.separator;
  32693. t2 = t1 === C.ListSeparator_comma;
  32694. return t2 ? t2 : t1 !== C.ListSeparator_undecided;
  32695. }
  32696. if (this.separator !== C.ListSeparator_space)
  32697. return false;
  32698. if (expression instanceof X.UnaryOperationExpression) {
  32699. t1 = expression.operator;
  32700. return t1 === C.UnaryOperator_j2w || t1 === C.UnaryOperator_U4G;
  32701. }
  32702. return false;
  32703. },
  32704. $isAstNode: 1,
  32705. $isExpression: 1,
  32706. get$span: function() {
  32707. return this.span;
  32708. }
  32709. };
  32710. D.ListExpression_toString_closure.prototype = {
  32711. call$1: function(element) {
  32712. return this.$this._list0$_elementNeedsParens$1(element) ? "(" + H.S(element) + ")" : J.toString$0$(element);
  32713. }
  32714. };
  32715. A.MapExpression.prototype = {
  32716. accept$1$1: function(visitor) {
  32717. return visitor.visitMapExpression$1(this);
  32718. },
  32719. accept$1: function(visitor) {
  32720. return this.accept$1$1(visitor, type$.dynamic);
  32721. },
  32722. toString$0: function(_) {
  32723. var t1 = this.pairs;
  32724. return "(" + new H.MappedListIterable(t1, new A.MapExpression_toString_closure(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$1(0, ", ") + ")";
  32725. },
  32726. $isAstNode: 1,
  32727. $isExpression: 1,
  32728. get$span: function() {
  32729. return this.span;
  32730. }
  32731. };
  32732. A.MapExpression_toString_closure.prototype = {
  32733. call$1: function(pair) {
  32734. return H.S(pair.item1) + ": " + H.S(pair.item2);
  32735. }
  32736. };
  32737. O.NullExpression.prototype = {
  32738. accept$1$1: function(visitor) {
  32739. return visitor.visitNullExpression$1(this);
  32740. },
  32741. accept$1: function(visitor) {
  32742. return this.accept$1$1(visitor, type$.dynamic);
  32743. },
  32744. toString$0: function(_) {
  32745. return "null";
  32746. },
  32747. $isAstNode: 1,
  32748. $isExpression: 1,
  32749. get$span: function() {
  32750. return this.span;
  32751. }
  32752. };
  32753. T.NumberExpression.prototype = {
  32754. accept$1$1: function(visitor) {
  32755. return visitor.visitNumberExpression$1(this);
  32756. },
  32757. accept$1: function(visitor) {
  32758. return this.accept$1$1(visitor, type$.dynamic);
  32759. },
  32760. toString$0: function(_) {
  32761. var t1 = H.S(this.value),
  32762. t2 = this.unit;
  32763. return t1 + (t2 == null ? "" : t2);
  32764. },
  32765. $isAstNode: 1,
  32766. $isExpression: 1,
  32767. get$span: function() {
  32768. return this.span;
  32769. }
  32770. };
  32771. T.ParenthesizedExpression.prototype = {
  32772. accept$1$1: function(visitor) {
  32773. return visitor.visitParenthesizedExpression$1(this);
  32774. },
  32775. accept$1: function(visitor) {
  32776. return this.accept$1$1(visitor, type$.dynamic);
  32777. },
  32778. toString$0: function(_) {
  32779. return J.toString$0$(this.expression);
  32780. },
  32781. $isAstNode: 1,
  32782. $isExpression: 1,
  32783. get$span: function() {
  32784. return this.span;
  32785. }
  32786. };
  32787. T.SelectorExpression.prototype = {
  32788. accept$1$1: function(visitor) {
  32789. return visitor.visitSelectorExpression$1(this);
  32790. },
  32791. accept$1: function(visitor) {
  32792. return this.accept$1$1(visitor, type$.dynamic);
  32793. },
  32794. toString$0: function(_) {
  32795. return "&";
  32796. },
  32797. $isAstNode: 1,
  32798. $isExpression: 1,
  32799. get$span: function() {
  32800. return this.span;
  32801. }
  32802. };
  32803. D.StringExpression.prototype = {
  32804. get$span: function() {
  32805. return this.text.span;
  32806. },
  32807. accept$1$1: function(visitor) {
  32808. return visitor.visitStringExpression$1(this);
  32809. },
  32810. accept$1: function(visitor) {
  32811. return this.accept$1$1(visitor, type$.dynamic);
  32812. },
  32813. asInterpolation$1$static: function($static) {
  32814. var quote, t1, t2, buffer, t3, t4, t5, t6, _i, value, t7, t8, i, codeUnit, next, t9, _this = this;
  32815. if (!_this.hasQuotes)
  32816. return _this.text;
  32817. quote = _this._bestQuote$0();
  32818. t1 = new P.StringBuffer("");
  32819. t2 = [];
  32820. buffer = new Z.InterpolationBuffer(t1, t2);
  32821. t1._contents += H.Primitives_stringFromCharCode(quote);
  32822. for (t3 = _this.text, t4 = t3.contents, t5 = t4.length, t6 = type$.Expression, _i = 0; _i < t5; ++_i) {
  32823. value = t4[_i];
  32824. if (t6._is(value)) {
  32825. buffer._flushText$0();
  32826. t2.push(value);
  32827. } else if (typeof value == "string")
  32828. for (t7 = value.length, t8 = t7 - 1, i = 0; i < t7; ++i) {
  32829. codeUnit = C.JSString_methods._codeUnitAt$1(value, i);
  32830. if (codeUnit === 10 || codeUnit === 13 || codeUnit === 12) {
  32831. t1._contents += H.Primitives_stringFromCharCode(92);
  32832. t1._contents += H.Primitives_stringFromCharCode(97);
  32833. if (i !== t8) {
  32834. next = C.JSString_methods._codeUnitAt$1(value, i + 1);
  32835. if (next === 32 || next === 9 || next === 10 || next === 13 || next === 12 || T.isHex(next))
  32836. t1._contents += H.Primitives_stringFromCharCode(32);
  32837. }
  32838. } else {
  32839. if (codeUnit !== quote)
  32840. if (codeUnit !== 92)
  32841. t9 = $static && codeUnit === 35 && i < t8 && C.JSString_methods._codeUnitAt$1(value, i + 1) === 123;
  32842. else
  32843. t9 = true;
  32844. else
  32845. t9 = true;
  32846. if (t9)
  32847. t1._contents += H.Primitives_stringFromCharCode(92);
  32848. t1._contents += H.Primitives_stringFromCharCode(codeUnit);
  32849. }
  32850. }
  32851. }
  32852. t1._contents += H.Primitives_stringFromCharCode(quote);
  32853. return buffer.interpolation$1(t3.span);
  32854. },
  32855. asInterpolation$0: function() {
  32856. return this.asInterpolation$1$static(false);
  32857. },
  32858. _bestQuote$0: function() {
  32859. var t1, t2, containsDoubleQuote, _i, value, t3, i, codeUnit;
  32860. for (t1 = this.text.contents, t2 = t1.length, containsDoubleQuote = false, _i = 0; _i < t2; ++_i) {
  32861. value = t1[_i];
  32862. if (typeof value == "string")
  32863. for (t3 = value.length, i = 0; i < t3; ++i) {
  32864. codeUnit = C.JSString_methods._codeUnitAt$1(value, i);
  32865. if (codeUnit === 39)
  32866. return 34;
  32867. if (codeUnit === 34)
  32868. containsDoubleQuote = true;
  32869. }
  32870. }
  32871. return containsDoubleQuote ? 39 : 34;
  32872. },
  32873. toString$0: function(_) {
  32874. return this.asInterpolation$0().toString$0(0);
  32875. },
  32876. $isAstNode: 1,
  32877. $isExpression: 1
  32878. };
  32879. X.UnaryOperationExpression.prototype = {
  32880. accept$1$1: function(visitor) {
  32881. return visitor.visitUnaryOperationExpression$1(this);
  32882. },
  32883. accept$1: function(visitor) {
  32884. return this.accept$1$1(visitor, type$.dynamic);
  32885. },
  32886. toString$0: function(_) {
  32887. var t1 = this.operator,
  32888. t2 = t1.operator;
  32889. t1 = t1 === C.UnaryOperator_not_not ? t2 + H.Primitives_stringFromCharCode(32) : t2;
  32890. t1 += H.S(this.operand);
  32891. return t1.charCodeAt(0) == 0 ? t1 : t1;
  32892. },
  32893. $isAstNode: 1,
  32894. $isExpression: 1,
  32895. get$span: function() {
  32896. return this.span;
  32897. }
  32898. };
  32899. X.UnaryOperator.prototype = {
  32900. toString$0: function(_) {
  32901. return this.name;
  32902. }
  32903. };
  32904. F.ValueExpression.prototype = {
  32905. accept$1$1: function(visitor) {
  32906. return visitor.visitValueExpression$1(this);
  32907. },
  32908. accept$1: function(visitor) {
  32909. return this.accept$1$1(visitor, type$.dynamic);
  32910. },
  32911. toString$0: function(_) {
  32912. return J.toString$0$(this.value);
  32913. },
  32914. $isAstNode: 1,
  32915. $isExpression: 1,
  32916. get$span: function() {
  32917. return this.span;
  32918. }
  32919. };
  32920. S.VariableExpression.prototype = {
  32921. accept$1$1: function(visitor) {
  32922. return visitor.visitVariableExpression$1(this);
  32923. },
  32924. accept$1: function(visitor) {
  32925. return this.accept$1$1(visitor, type$.dynamic);
  32926. },
  32927. toString$0: function(_) {
  32928. var t1 = this.namespace;
  32929. t1 = t1 != null ? "$" + (t1 + ".") : "$";
  32930. t1 += this.name;
  32931. return t1.charCodeAt(0) == 0 ? t1 : t1;
  32932. },
  32933. $isAstNode: 1,
  32934. $isExpression: 1,
  32935. get$span: function() {
  32936. return this.span;
  32937. }
  32938. };
  32939. F.Import.prototype = {$isAstNode: 1};
  32940. B.DynamicImport.prototype = {
  32941. toString$0: function(_) {
  32942. return new D.StringExpression(X.Interpolation$([this.url], null), true).asInterpolation$1$static(true).get$asPlain();
  32943. },
  32944. $isAstNode: 1,
  32945. $isImport: 1,
  32946. get$span: function() {
  32947. return this.span;
  32948. }
  32949. };
  32950. Q.StaticImport.prototype = {
  32951. toString$0: function(_) {
  32952. var t1 = this.url.toString$0(0),
  32953. t2 = this.supports;
  32954. if (t2 != null)
  32955. t1 += " supports(" + t2.toString$0(0) + ")";
  32956. t2 = this.media;
  32957. if (t2 != null)
  32958. t1 += " " + t2.toString$0(0);
  32959. t1 += H.Primitives_stringFromCharCode(59);
  32960. return t1.charCodeAt(0) == 0 ? t1 : t1;
  32961. },
  32962. $isAstNode: 1,
  32963. $isImport: 1,
  32964. get$span: function() {
  32965. return this.span;
  32966. }
  32967. };
  32968. X.Interpolation.prototype = {
  32969. get$asPlain: function() {
  32970. var first,
  32971. t1 = this.contents,
  32972. t2 = t1.length;
  32973. if (t2 === 0)
  32974. return "";
  32975. if (t2 > 1)
  32976. return null;
  32977. first = C.JSArray_methods.get$first(t1);
  32978. return typeof first == "string" ? first : null;
  32979. },
  32980. Interpolation$2: function(contents, span) {
  32981. var t1, t2, t3, i, t4, t5,
  32982. _s8_ = "contents";
  32983. for (t1 = this.contents, t2 = t1.length, t3 = type$.Expression, i = 0; i < t2; ++i) {
  32984. t4 = t1[i];
  32985. t5 = typeof t4 == "string";
  32986. if (!t5 && !t3._is(t4))
  32987. throw H.wrapException(P.ArgumentError$value(t1, _s8_, "May only contains Strings or Expressions."));
  32988. if (i !== 0 && typeof t1[i - 1] == "string" && t5)
  32989. throw H.wrapException(P.ArgumentError$value(t1, _s8_, "May not contain adjacent Strings."));
  32990. }
  32991. },
  32992. toString$0: function(_) {
  32993. var t1 = this.contents;
  32994. return new H.MappedListIterable(t1, new X.Interpolation_toString_closure(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$0(0);
  32995. },
  32996. $isAstNode: 1,
  32997. get$span: function() {
  32998. return this.span;
  32999. }
  33000. };
  33001. X.Interpolation_toString_closure.prototype = {
  33002. call$1: function(value) {
  33003. return typeof value == "string" ? value : "#{" + H.S(value) + "}";
  33004. },
  33005. $signature: 27
  33006. };
  33007. B.SassNode.prototype = {};
  33008. O.Statement.prototype = {$isAstNode: 1};
  33009. V.AtRootRule.prototype = {
  33010. accept$1$1: function(visitor) {
  33011. return visitor.visitAtRootRule$1(this);
  33012. },
  33013. accept$1: function(visitor) {
  33014. return this.accept$1$1(visitor, type$.dynamic);
  33015. },
  33016. toString$0: function(_) {
  33017. var buffer = new P.StringBuffer("@at-root "),
  33018. t1 = this.query;
  33019. if (t1 != null)
  33020. buffer._contents = "@at-root " + (t1.toString$0(0) + " ");
  33021. t1 = this.children;
  33022. return buffer.toString$0(0) + " {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
  33023. },
  33024. get$span: function() {
  33025. return this.span;
  33026. }
  33027. };
  33028. U.AtRule.prototype = {
  33029. accept$1$1: function(visitor) {
  33030. return visitor.visitAtRule$1(this);
  33031. },
  33032. accept$1: function(visitor) {
  33033. return this.accept$1$1(visitor, type$.dynamic);
  33034. },
  33035. toString$0: function(_) {
  33036. var t1 = "@" + this.name.toString$0(0),
  33037. buffer = new P.StringBuffer(t1),
  33038. t2 = this.value;
  33039. if (t2 != null)
  33040. buffer._contents = t1 + (" " + t2.toString$0(0));
  33041. t1 = this.children;
  33042. return t1 == null ? buffer.toString$0(0) + ";" : buffer.toString$0(0) + " {" + C.JSArray_methods.join$1(t1, " ") + "}";
  33043. },
  33044. get$span: function() {
  33045. return this.span;
  33046. }
  33047. };
  33048. M.CallableDeclaration.prototype = {
  33049. get$span: function() {
  33050. return this.span;
  33051. }
  33052. };
  33053. Y.ContentBlock.prototype = {
  33054. accept$1$1: function(visitor) {
  33055. return visitor.visitContentBlock$1(this);
  33056. },
  33057. accept$1: function(visitor) {
  33058. return this.accept$1$1(visitor, type$.dynamic);
  33059. },
  33060. toString$0: function(_) {
  33061. var t2,
  33062. t1 = this.$arguments;
  33063. t1 = t1.$arguments.length === 0 && t1.restArgument == null ? "" : " using (" + t1.toString$0(0) + ")";
  33064. t2 = this.children;
  33065. return t1 + (" {" + (t2 && C.JSArray_methods).join$1(t2, " ") + "}");
  33066. }
  33067. };
  33068. Q.ContentRule.prototype = {
  33069. accept$1$1: function(visitor) {
  33070. return visitor.visitContentRule$1(this);
  33071. },
  33072. accept$1: function(visitor) {
  33073. return this.accept$1$1(visitor, type$.dynamic);
  33074. },
  33075. toString$0: function(_) {
  33076. var t1 = this.$arguments;
  33077. return t1.get$isEmpty(t1) ? "@content;" : "@content(" + t1.toString$0(0) + ");";
  33078. },
  33079. $isAstNode: 1,
  33080. $isStatement: 1,
  33081. get$span: function() {
  33082. return this.span;
  33083. }
  33084. };
  33085. Q.DebugRule.prototype = {
  33086. accept$1$1: function(visitor) {
  33087. return visitor.visitDebugRule$1(this);
  33088. },
  33089. accept$1: function(visitor) {
  33090. return this.accept$1$1(visitor, type$.dynamic);
  33091. },
  33092. toString$0: function(_) {
  33093. return "@debug " + H.S(this.expression) + ";";
  33094. },
  33095. $isAstNode: 1,
  33096. $isStatement: 1,
  33097. get$span: function() {
  33098. return this.span;
  33099. }
  33100. };
  33101. L.Declaration.prototype = {
  33102. accept$1$1: function(visitor) {
  33103. return visitor.visitDeclaration$1(this);
  33104. },
  33105. accept$1: function(visitor) {
  33106. return this.accept$1$1(visitor, type$.dynamic);
  33107. },
  33108. toString$0: function(_) {
  33109. return H.S(this.name) + ": " + H.S(this.value) + ";";
  33110. },
  33111. get$span: function() {
  33112. return this.span;
  33113. }
  33114. };
  33115. V.EachRule.prototype = {
  33116. accept$1$1: function(visitor) {
  33117. return visitor.visitEachRule$1(this);
  33118. },
  33119. accept$1: function(visitor) {
  33120. return this.accept$1$1(visitor, type$.dynamic);
  33121. },
  33122. toString$0: function(_) {
  33123. var t1 = this.variables,
  33124. t2 = this.children;
  33125. return "@each " + new H.MappedListIterable(t1, new V.EachRule_toString_closure(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$1(0, ", ") + " in " + H.S(this.list) + " {" + (t2 && C.JSArray_methods).join$1(t2, " ") + "}";
  33126. },
  33127. get$span: function() {
  33128. return this.span;
  33129. }
  33130. };
  33131. V.EachRule_toString_closure.prototype = {
  33132. call$1: function(variable) {
  33133. return C.JSString_methods.$add("$", variable);
  33134. }
  33135. };
  33136. D.ErrorRule.prototype = {
  33137. accept$1$1: function(visitor) {
  33138. return visitor.visitErrorRule$1(this);
  33139. },
  33140. accept$1: function(visitor) {
  33141. return this.accept$1$1(visitor, type$.dynamic);
  33142. },
  33143. toString$0: function(_) {
  33144. return "@error " + H.S(this.expression) + ";";
  33145. },
  33146. $isAstNode: 1,
  33147. $isStatement: 1,
  33148. get$span: function() {
  33149. return this.span;
  33150. }
  33151. };
  33152. X.ExtendRule.prototype = {
  33153. accept$1$1: function(visitor) {
  33154. return visitor.visitExtendRule$1(this);
  33155. },
  33156. accept$1: function(visitor) {
  33157. return this.accept$1$1(visitor, type$.dynamic);
  33158. },
  33159. toString$0: function(_) {
  33160. return "@extend " + this.selector.toString$0(0);
  33161. },
  33162. $isAstNode: 1,
  33163. $isStatement: 1,
  33164. get$span: function() {
  33165. return this.span;
  33166. }
  33167. };
  33168. B.ForRule.prototype = {
  33169. accept$1$1: function(visitor) {
  33170. return visitor.visitForRule$1(this);
  33171. },
  33172. accept$1: function(visitor) {
  33173. return this.accept$1$1(visitor, type$.dynamic);
  33174. },
  33175. toString$0: function(_) {
  33176. var _this = this,
  33177. t1 = "@for $" + _this.variable + " from " + H.S(_this.from) + " ",
  33178. t2 = _this.children;
  33179. return t1 + (_this.isExclusive ? "to" : "through") + " " + H.S(_this.to) + " {" + (t2 && C.JSArray_methods).join$1(t2, " ") + "}";
  33180. },
  33181. get$span: function() {
  33182. return this.span;
  33183. }
  33184. };
  33185. L.ForwardRule.prototype = {
  33186. accept$1$1: function(visitor) {
  33187. return visitor.visitForwardRule$1(this);
  33188. },
  33189. accept$1: function(visitor) {
  33190. return this.accept$1$1(visitor, type$.dynamic);
  33191. },
  33192. toString$0: function(_) {
  33193. var t3, _this = this,
  33194. t1 = "@forward " + H.S(new D.StringExpression(X.Interpolation$([J.toString$0$(_this.url)], null), true).asInterpolation$1$static(true).get$asPlain()),
  33195. t2 = _this.shownMixinsAndFunctions;
  33196. if (t2 != null)
  33197. t1 = t1 + " show " + _this._forward_rule$_memberList$2(t2, _this.shownVariables);
  33198. else {
  33199. t2 = _this.hiddenMixinsAndFunctions;
  33200. if (t2 != null) {
  33201. t3 = t2._base;
  33202. t3 = t3.get$isNotEmpty(t3);
  33203. } else
  33204. t3 = false;
  33205. if (t3)
  33206. t1 = t1 + " hide " + _this._forward_rule$_memberList$2(t2, _this.hiddenVariables);
  33207. }
  33208. t2 = _this.prefix;
  33209. if (t2 != null)
  33210. t1 += " as " + t2 + "*";
  33211. t2 = _this.configuration;
  33212. t1 = (t2.length !== 0 ? t1 + (" with (" + C.JSArray_methods.join$1(t2, ", ") + ")") : t1) + ";";
  33213. return t1.charCodeAt(0) == 0 ? t1 : t1;
  33214. },
  33215. _forward_rule$_memberList$2: function(mixinsAndFunctions, variables) {
  33216. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_String),
  33217. t2 = this.shownMixinsAndFunctions;
  33218. if (t2 != null)
  33219. for (t2 = t2._base, t2 = t2.get$iterator(t2); t2.moveNext$0();)
  33220. t1.push(t2.get$current(t2));
  33221. t2 = this.shownVariables;
  33222. if (t2 != null)
  33223. for (t2 = t2._base, t2 = t2.get$iterator(t2); t2.moveNext$0();)
  33224. t1.push("$" + H.S(t2.get$current(t2)));
  33225. return C.JSArray_methods.join$1(t1, ", ");
  33226. },
  33227. $isAstNode: 1,
  33228. $isStatement: 1,
  33229. get$span: function() {
  33230. return this.span;
  33231. }
  33232. };
  33233. M.FunctionRule.prototype = {
  33234. accept$1$1: function(visitor) {
  33235. return visitor.visitFunctionRule$1(this);
  33236. },
  33237. accept$1: function(visitor) {
  33238. return this.accept$1$1(visitor, type$.dynamic);
  33239. },
  33240. toString$0: function(_) {
  33241. var t1 = this.children;
  33242. return "@function " + H.S(this.name) + "(" + H.S(this.$arguments) + ") {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
  33243. }
  33244. };
  33245. V.IfRule.prototype = {
  33246. accept$1$1: function(visitor) {
  33247. return visitor.visitIfRule$1(this);
  33248. },
  33249. accept$1: function(visitor) {
  33250. return this.accept$1$1(visitor, type$.dynamic);
  33251. },
  33252. toString$0: function(_) {
  33253. var t2, t1 = {};
  33254. t1.first = true;
  33255. t2 = this.clauses;
  33256. return new H.MappedListIterable(t2, new V.IfRule_toString_closure(t1), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,String>")).join$1(0, " ");
  33257. },
  33258. $isAstNode: 1,
  33259. $isStatement: 1,
  33260. get$span: function() {
  33261. return this.span;
  33262. }
  33263. };
  33264. V.IfRule_toString_closure.prototype = {
  33265. call$1: function(clause) {
  33266. var t1 = this._box_0,
  33267. $name = t1.first ? "if" : "else";
  33268. t1.first = false;
  33269. return "@" + $name + " " + H.S(clause.expression) + " {" + C.JSArray_methods.join$1(clause.children, " ") + "}";
  33270. }
  33271. };
  33272. V.IfClause.prototype = {
  33273. toString$0: function(_) {
  33274. var t1 = this.expression;
  33275. t1 = t1 == null ? "@else" : "@if " + t1.toString$0(0);
  33276. return t1 + (" {" + C.JSArray_methods.join$1(this.children, " ") + "}");
  33277. }
  33278. };
  33279. V.IfClause$__closure.prototype = {
  33280. call$1: function(child) {
  33281. var t1;
  33282. if (!(child instanceof Z.VariableDeclaration))
  33283. if (!(child instanceof M.FunctionRule))
  33284. if (!(child instanceof T.MixinRule))
  33285. t1 = child instanceof B.ImportRule && C.JSArray_methods.any$1(child.imports, new V.IfClause$___closure());
  33286. else
  33287. t1 = true;
  33288. else
  33289. t1 = true;
  33290. else
  33291. t1 = true;
  33292. return t1;
  33293. }
  33294. };
  33295. V.IfClause$___closure.prototype = {
  33296. call$1: function($import) {
  33297. return $import instanceof B.DynamicImport;
  33298. }
  33299. };
  33300. B.ImportRule.prototype = {
  33301. accept$1$1: function(visitor) {
  33302. return visitor.visitImportRule$1(this);
  33303. },
  33304. accept$1: function(visitor) {
  33305. return this.accept$1$1(visitor, type$.dynamic);
  33306. },
  33307. toString$0: function(_) {
  33308. return "@import " + C.JSArray_methods.join$1(this.imports, ", ") + ";";
  33309. },
  33310. $isAstNode: 1,
  33311. $isStatement: 1,
  33312. get$span: function() {
  33313. return this.span;
  33314. }
  33315. };
  33316. A.IncludeRule.prototype = {
  33317. get$spanWithoutContent: function() {
  33318. var t2, t3,
  33319. t1 = this.span;
  33320. if (!(this.content == null)) {
  33321. t2 = t1.file;
  33322. t3 = this.$arguments.span;
  33323. t3 = B.SpanExtensions_trim(t2.span$2(Y.FileLocation$_(t2, t1._file$_start).offset, Y.FileLocation$_(t3.file, t3._end).offset));
  33324. t1 = t3;
  33325. }
  33326. return t1;
  33327. },
  33328. accept$1$1: function(visitor) {
  33329. return visitor.visitIncludeRule$1(this);
  33330. },
  33331. accept$1: function(visitor) {
  33332. return this.accept$1$1(visitor, type$.dynamic);
  33333. },
  33334. toString$0: function(_) {
  33335. var t2, _this = this,
  33336. t1 = _this.namespace;
  33337. t1 = t1 != null ? "@include " + (t1 + ".") : "@include ";
  33338. t1 += _this.name;
  33339. t2 = _this.$arguments;
  33340. if (!t2.get$isEmpty(t2))
  33341. t1 += "(" + t2.toString$0(0) + ")";
  33342. t2 = _this.content;
  33343. t1 += t2 == null ? ";" : " " + t2.toString$0(0);
  33344. return t1.charCodeAt(0) == 0 ? t1 : t1;
  33345. },
  33346. $isAstNode: 1,
  33347. $isStatement: 1,
  33348. get$span: function() {
  33349. return this.span;
  33350. }
  33351. };
  33352. L.LoudComment.prototype = {
  33353. get$span: function() {
  33354. return this.text.span;
  33355. },
  33356. accept$1$1: function(visitor) {
  33357. return visitor.visitLoudComment$1(this);
  33358. },
  33359. accept$1: function(visitor) {
  33360. return this.accept$1$1(visitor, type$.dynamic);
  33361. },
  33362. toString$0: function(_) {
  33363. return this.text.toString$0(0);
  33364. },
  33365. $isAstNode: 1,
  33366. $isStatement: 1
  33367. };
  33368. G.MediaRule.prototype = {
  33369. accept$1$1: function(visitor) {
  33370. return visitor.visitMediaRule$1(this);
  33371. },
  33372. accept$1: function(visitor) {
  33373. return this.accept$1$1(visitor, type$.dynamic);
  33374. },
  33375. toString$0: function(_) {
  33376. var t1 = this.children;
  33377. return "@media " + this.query.toString$0(0) + " {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
  33378. },
  33379. get$span: function() {
  33380. return this.span;
  33381. }
  33382. };
  33383. T.MixinRule.prototype = {
  33384. accept$1$1: function(visitor) {
  33385. return visitor.visitMixinRule$1(this);
  33386. },
  33387. accept$1: function(visitor) {
  33388. return this.accept$1$1(visitor, type$.dynamic);
  33389. },
  33390. toString$0: function(_) {
  33391. var t1 = "@mixin " + H.S(this.name),
  33392. t2 = this.$arguments;
  33393. if (!(t2.$arguments.length === 0 && t2.restArgument == null))
  33394. t1 += "(" + t2.toString$0(0) + ")";
  33395. t2 = this.children;
  33396. t2 = t1 + (" {" + (t2 && C.JSArray_methods).join$1(t2, " ") + "}");
  33397. return t2.charCodeAt(0) == 0 ? t2 : t2;
  33398. }
  33399. };
  33400. M.ParentStatement.prototype = {$isAstNode: 1, $isStatement: 1};
  33401. M.ParentStatement_closure.prototype = {
  33402. call$1: function(child) {
  33403. var t1;
  33404. if (!(child instanceof Z.VariableDeclaration))
  33405. if (!(child instanceof M.FunctionRule))
  33406. if (!(child instanceof T.MixinRule))
  33407. t1 = child instanceof B.ImportRule && C.JSArray_methods.any$1(child.imports, new M.ParentStatement__closure());
  33408. else
  33409. t1 = true;
  33410. else
  33411. t1 = true;
  33412. else
  33413. t1 = true;
  33414. return t1;
  33415. }
  33416. };
  33417. M.ParentStatement__closure.prototype = {
  33418. call$1: function($import) {
  33419. return $import instanceof B.DynamicImport;
  33420. }
  33421. };
  33422. B.ReturnRule.prototype = {
  33423. accept$1$1: function(visitor) {
  33424. return visitor.visitReturnRule$1(this);
  33425. },
  33426. accept$1: function(visitor) {
  33427. return this.accept$1$1(visitor, type$.dynamic);
  33428. },
  33429. toString$0: function(_) {
  33430. return "@return " + H.S(this.expression) + ";";
  33431. },
  33432. $isAstNode: 1,
  33433. $isStatement: 1,
  33434. get$span: function() {
  33435. return this.span;
  33436. }
  33437. };
  33438. B.SilentComment.prototype = {
  33439. accept$1$1: function(visitor) {
  33440. return visitor.visitSilentComment$1(this);
  33441. },
  33442. accept$1: function(visitor) {
  33443. return this.accept$1$1(visitor, type$.dynamic);
  33444. },
  33445. toString$0: function(_) {
  33446. return this.text;
  33447. },
  33448. $isAstNode: 1,
  33449. $isStatement: 1,
  33450. get$span: function() {
  33451. return this.span;
  33452. }
  33453. };
  33454. X.StyleRule.prototype = {
  33455. accept$1$1: function(visitor) {
  33456. return visitor.visitStyleRule$1(this);
  33457. },
  33458. accept$1: function(visitor) {
  33459. return this.accept$1$1(visitor, type$.dynamic);
  33460. },
  33461. toString$0: function(_) {
  33462. var t1 = this.children;
  33463. return this.selector.toString$0(0) + " {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
  33464. },
  33465. get$span: function() {
  33466. return this.span;
  33467. }
  33468. };
  33469. V.Stylesheet.prototype = {
  33470. Stylesheet$3$plainCss: function(children, span, plainCss) {
  33471. var t1, t2, t3, t4, _i, child;
  33472. for (t1 = this.children, t2 = t1.length, t3 = this._forwards, t4 = this._uses, _i = 0; _i < t2; ++_i) {
  33473. child = t1[_i];
  33474. if (child instanceof T.UseRule)
  33475. t4.push(child);
  33476. else if (child instanceof L.ForwardRule)
  33477. t3.push(child);
  33478. else if (!(child instanceof B.SilentComment) && !(child instanceof L.LoudComment) && !(child instanceof Z.VariableDeclaration))
  33479. break;
  33480. }
  33481. },
  33482. accept$1$1: function(visitor) {
  33483. return visitor.visitStylesheet$1(this);
  33484. },
  33485. accept$1: function(visitor) {
  33486. return this.accept$1$1(visitor, type$.dynamic);
  33487. },
  33488. toString$0: function(_) {
  33489. var t1 = this.children;
  33490. return (t1 && C.JSArray_methods).join$1(t1, " ");
  33491. },
  33492. get$span: function() {
  33493. return this.span;
  33494. }
  33495. };
  33496. B.SupportsRule.prototype = {
  33497. accept$1$1: function(visitor) {
  33498. return visitor.visitSupportsRule$1(this);
  33499. },
  33500. accept$1: function(visitor) {
  33501. return this.accept$1$1(visitor, type$.dynamic);
  33502. },
  33503. toString$0: function(_) {
  33504. var t1 = this.children;
  33505. return "@supports " + this.condition.toString$0(0) + " {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
  33506. },
  33507. get$span: function() {
  33508. return this.span;
  33509. }
  33510. };
  33511. T.UseRule.prototype = {
  33512. UseRule$4$configuration: function(url, namespace, span, configuration) {
  33513. var t1, t2, _i, variable;
  33514. for (t1 = this.configuration, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  33515. variable = t1[_i];
  33516. if (variable.isGuarded)
  33517. throw H.wrapException(P.ArgumentError$value(variable, "configured variable", "can't be guarded in a @use rule."));
  33518. }
  33519. },
  33520. accept$1$1: function(visitor) {
  33521. return visitor.visitUseRule$1(this);
  33522. },
  33523. accept$1: function(visitor) {
  33524. return this.accept$1$1(visitor, type$.dynamic);
  33525. },
  33526. toString$0: function(_) {
  33527. var t1 = this.url,
  33528. t2 = "@use " + H.S(new D.StringExpression(X.Interpolation$([J.toString$0$(t1)], null), true).asInterpolation$1$static(true).get$asPlain()),
  33529. basename = t1.get$pathSegments().length === 0 ? "" : C.JSArray_methods.get$last(t1.get$pathSegments()),
  33530. dot = J.getInterceptor$asx(basename).indexOf$1(basename, ".");
  33531. t1 = this.namespace;
  33532. if (t1 !== C.JSString_methods.substring$2(basename, 0, dot === -1 ? basename.length : dot))
  33533. t1 = t2 + (" as " + (t1 == null ? "*" : t1));
  33534. else
  33535. t1 = t2;
  33536. t2 = this.configuration;
  33537. t1 = (t2.length !== 0 ? t1 + (" with (" + C.JSArray_methods.join$1(t2, ", ") + ")") : t1) + ";";
  33538. return t1.charCodeAt(0) == 0 ? t1 : t1;
  33539. },
  33540. $isAstNode: 1,
  33541. $isStatement: 1,
  33542. get$span: function() {
  33543. return this.span;
  33544. }
  33545. };
  33546. Z.VariableDeclaration.prototype = {
  33547. accept$1$1: function(visitor) {
  33548. return visitor.visitVariableDeclaration$1(this);
  33549. },
  33550. accept$1: function(visitor) {
  33551. return this.accept$1$1(visitor, type$.dynamic);
  33552. },
  33553. toString$0: function(_) {
  33554. var t1 = this.namespace;
  33555. t1 = t1 != null ? "$" + (t1 + ".") : "$";
  33556. t1 += this.name + ": " + H.S(this.expression) + ";";
  33557. return t1.charCodeAt(0) == 0 ? t1 : t1;
  33558. },
  33559. $isAstNode: 1,
  33560. $isStatement: 1,
  33561. get$span: function() {
  33562. return this.span;
  33563. }
  33564. };
  33565. Y.WarnRule.prototype = {
  33566. accept$1$1: function(visitor) {
  33567. return visitor.visitWarnRule$1(this);
  33568. },
  33569. accept$1: function(visitor) {
  33570. return this.accept$1$1(visitor, type$.dynamic);
  33571. },
  33572. toString$0: function(_) {
  33573. return "@warn " + H.S(this.expression) + ";";
  33574. },
  33575. $isAstNode: 1,
  33576. $isStatement: 1,
  33577. get$span: function() {
  33578. return this.span;
  33579. }
  33580. };
  33581. G.WhileRule.prototype = {
  33582. accept$1$1: function(visitor) {
  33583. return visitor.visitWhileRule$1(this);
  33584. },
  33585. accept$1: function(visitor) {
  33586. return this.accept$1$1(visitor, type$.dynamic);
  33587. },
  33588. toString$0: function(_) {
  33589. var t1 = this.children;
  33590. return "@while " + H.S(this.condition) + " {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
  33591. },
  33592. get$span: function() {
  33593. return this.span;
  33594. }
  33595. };
  33596. N.SupportsCondition.prototype = {};
  33597. L.SupportsDeclaration.prototype = {
  33598. toString$0: function(_) {
  33599. return "(" + H.S(this.name) + ": " + H.S(this.value) + ")";
  33600. },
  33601. $isAstNode: 1,
  33602. get$span: function() {
  33603. return this.span;
  33604. }
  33605. };
  33606. X.SupportsInterpolation.prototype = {
  33607. toString$0: function(_) {
  33608. return "#{" + H.S(this.expression) + "}";
  33609. },
  33610. $isAstNode: 1,
  33611. get$span: function() {
  33612. return this.span;
  33613. }
  33614. };
  33615. M.SupportsNegation.prototype = {
  33616. toString$0: function(_) {
  33617. var t1 = this.condition;
  33618. if (t1 instanceof M.SupportsNegation || t1 instanceof U.SupportsOperation)
  33619. return "not (" + t1.toString$0(0) + ")";
  33620. else
  33621. return "not " + t1.toString$0(0);
  33622. },
  33623. $isAstNode: 1,
  33624. get$span: function() {
  33625. return this.span;
  33626. }
  33627. };
  33628. U.SupportsOperation.prototype = {
  33629. toString$0: function(_) {
  33630. var _this = this;
  33631. return _this._operation$_parenthesize$1(_this.left) + " " + _this.operator + " " + _this._operation$_parenthesize$1(_this.right);
  33632. },
  33633. _operation$_parenthesize$1: function(condition) {
  33634. var t1;
  33635. if (!(condition instanceof M.SupportsNegation))
  33636. t1 = condition instanceof U.SupportsOperation && condition.operator === this.operator;
  33637. else
  33638. t1 = true;
  33639. return t1 ? "(" + condition.toString$0(0) + ")" : condition.toString$0(0);
  33640. },
  33641. $isAstNode: 1,
  33642. get$span: function() {
  33643. return this.span;
  33644. }
  33645. };
  33646. T.Selector.prototype = {
  33647. get$isInvisible: function() {
  33648. return false;
  33649. },
  33650. toString$0: function(_) {
  33651. var visitor = N._SerializeVisitor$0(null, true, null, true, false, null, true);
  33652. this.accept$1(visitor);
  33653. return visitor._serialize$_buffer.toString$0(0);
  33654. }
  33655. };
  33656. N.AttributeSelector.prototype = {
  33657. accept$1$1: function(visitor) {
  33658. var t2, _this = this,
  33659. t1 = visitor._serialize$_buffer;
  33660. t1.writeCharCode$1(91);
  33661. t1.write$1(0, _this.name);
  33662. t2 = _this.op;
  33663. if (t2 != null) {
  33664. t1.write$1(0, t2);
  33665. t2 = _this.value;
  33666. if (G.Parser_isIdentifier(t2) && !J.startsWith$1$s(t2, "--")) {
  33667. t1.write$1(0, t2);
  33668. t2 = _this.modifier;
  33669. if (t2 != null)
  33670. t1.writeCharCode$1(32);
  33671. } else {
  33672. visitor._visitQuotedString$1(t2);
  33673. t2 = _this.modifier;
  33674. if (t2 != null)
  33675. if (visitor._style !== C.OutputStyle_compressed)
  33676. t1.writeCharCode$1(32);
  33677. }
  33678. if (t2 != null)
  33679. t1.write$1(0, t2);
  33680. }
  33681. t1.writeCharCode$1(93);
  33682. return null;
  33683. },
  33684. accept$1: function(visitor) {
  33685. return this.accept$1$1(visitor, type$.dynamic);
  33686. },
  33687. $eq: function(_, other) {
  33688. var _this = this;
  33689. if (other == null)
  33690. return false;
  33691. return other instanceof N.AttributeSelector && other.name.$eq(0, _this.name) && other.op == _this.op && other.value == _this.value && other.modifier == _this.modifier;
  33692. },
  33693. get$hashCode: function(_) {
  33694. var _this = this,
  33695. t1 = _this.name;
  33696. return (C.JSString_methods.get$hashCode(t1.name) ^ J.get$hashCode$(t1.namespace) ^ J.get$hashCode$(_this.op) ^ J.get$hashCode$(_this.value) ^ J.get$hashCode$(_this.modifier)) >>> 0;
  33697. }
  33698. };
  33699. N.AttributeOperator.prototype = {
  33700. toString$0: function(_) {
  33701. return this._attribute$_text;
  33702. }
  33703. };
  33704. X.ClassSelector.prototype = {
  33705. $eq: function(_, other) {
  33706. if (other == null)
  33707. return false;
  33708. return other instanceof X.ClassSelector && other.name === this.name;
  33709. },
  33710. accept$1$1: function(visitor) {
  33711. var t1 = visitor._serialize$_buffer;
  33712. t1.writeCharCode$1(46);
  33713. t1.write$1(0, this.name);
  33714. return null;
  33715. },
  33716. accept$1: function(visitor) {
  33717. return this.accept$1$1(visitor, type$.dynamic);
  33718. },
  33719. addSuffix$1: function(suffix) {
  33720. return new X.ClassSelector(this.name + suffix);
  33721. },
  33722. get$hashCode: function(_) {
  33723. return C.JSString_methods.get$hashCode(this.name);
  33724. }
  33725. };
  33726. S.ComplexSelector.prototype = {
  33727. get$minSpecificity: function() {
  33728. if (this._minSpecificity == null)
  33729. this._computeSpecificity$0();
  33730. return this._minSpecificity;
  33731. },
  33732. get$maxSpecificity: function() {
  33733. if (this._maxSpecificity == null)
  33734. this._computeSpecificity$0();
  33735. return this._maxSpecificity;
  33736. },
  33737. get$isInvisible: function() {
  33738. var t1 = this._complex$_isInvisible;
  33739. if (t1 != null)
  33740. return t1;
  33741. return this._complex$_isInvisible = C.JSArray_methods.any$1(this.components, new S.ComplexSelector_isInvisible_closure());
  33742. },
  33743. accept$1$1: function(visitor) {
  33744. return visitor.visitComplexSelector$1(this);
  33745. },
  33746. accept$1: function(visitor) {
  33747. return this.accept$1$1(visitor, type$.dynamic);
  33748. },
  33749. _computeSpecificity$0: function() {
  33750. var t1, t2, component, t3, _this = this,
  33751. _i = _this._maxSpecificity = _this._minSpecificity = 0;
  33752. for (t1 = _this.components, t2 = t1.length; _i < t2; ++_i) {
  33753. component = t1[_i];
  33754. if (component instanceof X.CompoundSelector) {
  33755. t3 = _this._minSpecificity;
  33756. if (component._compound$_minSpecificity == null)
  33757. component._compound$_computeSpecificity$0();
  33758. _this._minSpecificity = t3 + component._compound$_minSpecificity;
  33759. t3 = _this._maxSpecificity;
  33760. if (component._compound$_maxSpecificity == null)
  33761. component._compound$_computeSpecificity$0();
  33762. _this._maxSpecificity = t3 + component._compound$_maxSpecificity;
  33763. }
  33764. }
  33765. },
  33766. get$hashCode: function(_) {
  33767. return C.C_ListEquality.hash$1(this.components);
  33768. },
  33769. $eq: function(_, other) {
  33770. if (other == null)
  33771. return false;
  33772. return other instanceof S.ComplexSelector && C.C_ListEquality.equals$2(this.components, other.components);
  33773. }
  33774. };
  33775. S.ComplexSelector_isInvisible_closure.prototype = {
  33776. call$1: function(component) {
  33777. return component instanceof X.CompoundSelector && component.get$isInvisible();
  33778. }
  33779. };
  33780. S.ComplexSelectorComponent.prototype = {};
  33781. S.Combinator.prototype = {
  33782. toString$0: function(_) {
  33783. return this._complex$_text;
  33784. },
  33785. $isComplexSelectorComponent: 1
  33786. };
  33787. X.CompoundSelector.prototype = {
  33788. get$isInvisible: function() {
  33789. return C.JSArray_methods.any$1(this.components, new X.CompoundSelector_isInvisible_closure());
  33790. },
  33791. accept$1$1: function(visitor) {
  33792. return visitor.visitCompoundSelector$1(this);
  33793. },
  33794. accept$1: function(visitor) {
  33795. return this.accept$1$1(visitor, type$.dynamic);
  33796. },
  33797. _compound$_computeSpecificity$0: function() {
  33798. var t1, t2, simple, _this = this,
  33799. _i = _this._compound$_maxSpecificity = _this._compound$_minSpecificity = 0;
  33800. for (t1 = _this.components, t2 = t1.length; _i < t2; ++_i) {
  33801. simple = t1[_i];
  33802. _this._compound$_minSpecificity = _this._compound$_minSpecificity + simple.get$minSpecificity();
  33803. _this._compound$_maxSpecificity = _this._compound$_maxSpecificity + simple.get$maxSpecificity();
  33804. }
  33805. },
  33806. get$hashCode: function(_) {
  33807. return C.C_ListEquality.hash$1(this.components);
  33808. },
  33809. $eq: function(_, other) {
  33810. if (other == null)
  33811. return false;
  33812. return other instanceof X.CompoundSelector && C.C_ListEquality.equals$2(this.components, other.components);
  33813. },
  33814. $isComplexSelectorComponent: 1
  33815. };
  33816. X.CompoundSelector_isInvisible_closure.prototype = {
  33817. call$1: function(component) {
  33818. return component.get$isInvisible();
  33819. }
  33820. };
  33821. N.IDSelector.prototype = {
  33822. get$minSpecificity: function() {
  33823. return H._asIntNullable(Math.pow(M.SimpleSelector.prototype.get$minSpecificity.call(this), 2));
  33824. },
  33825. accept$1$1: function(visitor) {
  33826. var t1 = visitor._serialize$_buffer;
  33827. t1.writeCharCode$1(35);
  33828. t1.write$1(0, this.name);
  33829. return null;
  33830. },
  33831. accept$1: function(visitor) {
  33832. return this.accept$1$1(visitor, type$.dynamic);
  33833. },
  33834. addSuffix$1: function(suffix) {
  33835. return new N.IDSelector(this.name + suffix);
  33836. },
  33837. unify$1: function(compound) {
  33838. if (C.JSArray_methods.any$1(compound, new N.IDSelector_unify_closure(this)))
  33839. return null;
  33840. return this.super$SimpleSelector$unify(compound);
  33841. },
  33842. $eq: function(_, other) {
  33843. if (other == null)
  33844. return false;
  33845. return other instanceof N.IDSelector && other.name === this.name;
  33846. },
  33847. get$hashCode: function(_) {
  33848. return C.JSString_methods.get$hashCode(this.name);
  33849. }
  33850. };
  33851. N.IDSelector_unify_closure.prototype = {
  33852. call$1: function(simple) {
  33853. var t1;
  33854. if (simple instanceof N.IDSelector) {
  33855. t1 = simple.name;
  33856. t1 = this.$this.name !== t1;
  33857. } else
  33858. t1 = false;
  33859. return t1;
  33860. }
  33861. };
  33862. D.SelectorList.prototype = {
  33863. get$isInvisible: function() {
  33864. return C.JSArray_methods.every$1(this.components, new D.SelectorList_isInvisible_closure());
  33865. },
  33866. get$asSassList: function() {
  33867. var t1 = this.components;
  33868. return D.SassList$(new H.MappedListIterable(t1, new D.SelectorList_asSassList_closure(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value>")), C.ListSeparator_comma, false);
  33869. },
  33870. accept$1$1: function(visitor) {
  33871. return visitor.visitSelectorList$1(this);
  33872. },
  33873. accept$1: function(visitor) {
  33874. return this.accept$1$1(visitor, type$.dynamic);
  33875. },
  33876. unify$1: function(other) {
  33877. var t1 = this.components,
  33878. t2 = H._arrayInstanceType(t1)._eval$1("ExpandIterable<1,ComplexSelector>"),
  33879. contents = P.List_List$from(new H.ExpandIterable(t1, new D.SelectorList_unify_closure(other), t2), true, t2._eval$1("Iterable.E"));
  33880. return contents.length === 0 ? null : D.SelectorList$(contents);
  33881. },
  33882. resolveParentSelectors$2$implicitParent: function($parent, implicitParent) {
  33883. var t1, _this = this;
  33884. if ($parent == null) {
  33885. if (!C.JSArray_methods.any$1(_this.components, _this.get$_complexContainsParentSelector()))
  33886. return _this;
  33887. throw H.wrapException(E.SassScriptException$('Top-level selectors may not contain the parent selector "&".'));
  33888. }
  33889. t1 = _this.components;
  33890. return D.SelectorList$(B.flattenVertically(new H.MappedListIterable(t1, new D.SelectorList_resolveParentSelectors_closure(_this, implicitParent, $parent), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Iterable<ComplexSelector>>")), type$.ComplexSelector));
  33891. },
  33892. resolveParentSelectors$1: function($parent) {
  33893. return this.resolveParentSelectors$2$implicitParent($parent, true);
  33894. },
  33895. _complexContainsParentSelector$1: function(complex) {
  33896. return C.JSArray_methods.any$1(complex.components, new D.SelectorList__complexContainsParentSelector_closure());
  33897. },
  33898. _resolveParentSelectorsCompound$2: function(compound, $parent) {
  33899. var resolvedMembers0, parentSelector, t1,
  33900. resolvedMembers = compound.components,
  33901. containsSelectorPseudo = C.JSArray_methods.any$1(resolvedMembers, new D.SelectorList__resolveParentSelectorsCompound_closure());
  33902. if (!containsSelectorPseudo && !(C.JSArray_methods.get$first(resolvedMembers) instanceof M.ParentSelector))
  33903. return null;
  33904. resolvedMembers0 = containsSelectorPseudo ? new H.MappedListIterable(resolvedMembers, new D.SelectorList__resolveParentSelectorsCompound_closure0($parent), H._arrayInstanceType(resolvedMembers)._eval$1("MappedListIterable<1,SimpleSelector>")) : resolvedMembers;
  33905. parentSelector = C.JSArray_methods.get$first(resolvedMembers);
  33906. if (parentSelector instanceof M.ParentSelector) {
  33907. if (resolvedMembers.length === 1 && parentSelector.suffix == null)
  33908. return $parent.components;
  33909. } else
  33910. return H.setRuntimeTypeInfo([S.ComplexSelector$(H.setRuntimeTypeInfo([X.CompoundSelector$(resolvedMembers0)], type$.JSArray_ComplexSelectorComponent), false)], type$.JSArray_ComplexSelector);
  33911. t1 = $parent.components;
  33912. return new H.MappedListIterable(t1, new D.SelectorList__resolveParentSelectorsCompound_closure1(compound, resolvedMembers0), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector>"));
  33913. },
  33914. get$hashCode: function(_) {
  33915. return C.C_ListEquality.hash$1(this.components);
  33916. },
  33917. $eq: function(_, other) {
  33918. if (other == null)
  33919. return false;
  33920. return other instanceof D.SelectorList && C.C_ListEquality.equals$2(this.components, other.components);
  33921. }
  33922. };
  33923. D.SelectorList_isInvisible_closure.prototype = {
  33924. call$1: function(complex) {
  33925. return complex.get$isInvisible();
  33926. }
  33927. };
  33928. D.SelectorList_asSassList_closure.prototype = {
  33929. call$1: function(complex) {
  33930. var t1 = complex.components;
  33931. return D.SassList$(new H.MappedListIterable(t1, new D.SelectorList_asSassList__closure(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value>")), C.ListSeparator_space, false);
  33932. }
  33933. };
  33934. D.SelectorList_asSassList__closure.prototype = {
  33935. call$1: function(component) {
  33936. return new D.SassString(J.toString$0$(component), false);
  33937. }
  33938. };
  33939. D.SelectorList_unify_closure.prototype = {
  33940. call$1: function(complex1) {
  33941. var t1 = this.other.components;
  33942. return new H.ExpandIterable(t1, new D.SelectorList_unify__closure(complex1), H._arrayInstanceType(t1)._eval$1("ExpandIterable<1,ComplexSelector>"));
  33943. }
  33944. };
  33945. D.SelectorList_unify__closure.prototype = {
  33946. call$1: function(complex2) {
  33947. var unified = Y.unifyComplex(H.setRuntimeTypeInfo([this.complex1.components, complex2.components], type$.JSArray_List_ComplexSelectorComponent));
  33948. if (unified == null)
  33949. return C.List_empty4;
  33950. return J.map$1$1$ax(unified, new D.SelectorList_unify___closure(), type$.ComplexSelector);
  33951. }
  33952. };
  33953. D.SelectorList_unify___closure.prototype = {
  33954. call$1: function(complex) {
  33955. return S.ComplexSelector$(complex, false);
  33956. }
  33957. };
  33958. D.SelectorList_resolveParentSelectors_closure.prototype = {
  33959. call$1: function(complex) {
  33960. var t2, t3, newComplexes, t4, t5, t6, t7, _i, component, resolved, t8, _i0, previousLineBreaks, newComplexes0, t9, i, newComplex, i0, lineBreak, t10, t11, t12, t13, t14, t15, _i1, _this = this, _box_0 = {},
  33961. t1 = _this.$this;
  33962. if (!t1._complexContainsParentSelector$1(complex)) {
  33963. if (!_this.implicitParent)
  33964. return H.setRuntimeTypeInfo([complex], type$.JSArray_ComplexSelector);
  33965. t1 = _this.parent.components;
  33966. return new H.MappedListIterable(t1, new D.SelectorList_resolveParentSelectors__closure(complex), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector>"));
  33967. }
  33968. t2 = type$.JSArray_ComplexSelectorComponent;
  33969. t3 = type$.JSArray_List_ComplexSelectorComponent;
  33970. newComplexes = H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([], t2)], t3);
  33971. t4 = type$.JSArray_bool;
  33972. _box_0.lineBreaks = H.setRuntimeTypeInfo([false], t4);
  33973. for (t5 = complex.components, t6 = t5.length, t7 = _this.parent, _i = 0; _i < t6; ++_i) {
  33974. component = t5[_i];
  33975. if (component instanceof X.CompoundSelector) {
  33976. resolved = t1._resolveParentSelectorsCompound$2(component, t7);
  33977. if (resolved == null) {
  33978. for (t8 = newComplexes.length, _i0 = 0; _i0 < newComplexes.length; newComplexes.length === t8 || (0, H.throwConcurrentModificationError)(newComplexes), ++_i0)
  33979. newComplexes[_i0].push(component);
  33980. continue;
  33981. }
  33982. previousLineBreaks = _box_0.lineBreaks;
  33983. newComplexes0 = H.setRuntimeTypeInfo([], t3);
  33984. _box_0.lineBreaks = H.setRuntimeTypeInfo([], t4);
  33985. for (t8 = newComplexes.length, t9 = J.getInterceptor$ax(resolved), i = 0, _i0 = 0; _i0 < newComplexes.length; newComplexes.length === t8 || (0, H.throwConcurrentModificationError)(newComplexes), ++_i0, i = i0) {
  33986. newComplex = newComplexes[_i0];
  33987. i0 = i + 1;
  33988. lineBreak = previousLineBreaks[i];
  33989. for (t10 = t9.get$iterator(resolved), t11 = !lineBreak; t10.moveNext$0();) {
  33990. t12 = t10.get$current(t10);
  33991. t13 = H.setRuntimeTypeInfo([], t2);
  33992. for (t14 = C.JSArray_methods.get$iterator(newComplex); t14.moveNext$0();)
  33993. t13.push(t14.get$current(t14));
  33994. for (t14 = t12.components, t15 = t14.length, _i1 = 0; _i1 < t15; ++_i1)
  33995. t13.push(t14[_i1]);
  33996. newComplexes0.push(t13);
  33997. t13 = _box_0.lineBreaks;
  33998. t13.push(!t11 || t12.lineBreak);
  33999. }
  34000. }
  34001. newComplexes = newComplexes0;
  34002. } else
  34003. for (t8 = newComplexes.length, _i0 = 0; _i0 < newComplexes.length; newComplexes.length === t8 || (0, H.throwConcurrentModificationError)(newComplexes), ++_i0)
  34004. newComplexes[_i0].push(component);
  34005. }
  34006. _box_0.i = 0;
  34007. return new H.MappedListIterable(newComplexes, new D.SelectorList_resolveParentSelectors__closure0(_box_0), H._arrayInstanceType(newComplexes)._eval$1("MappedListIterable<1,ComplexSelector>"));
  34008. }
  34009. };
  34010. D.SelectorList_resolveParentSelectors__closure.prototype = {
  34011. call$1: function(parentComplex) {
  34012. var t2, t3, _i, t4,
  34013. t1 = H.setRuntimeTypeInfo([], type$.JSArray_ComplexSelectorComponent);
  34014. for (t2 = parentComplex.components, t3 = t2.length, _i = 0; _i < t3; ++_i)
  34015. t1.push(t2[_i]);
  34016. for (t2 = this.complex, t3 = t2.components, t4 = t3.length, _i = 0; _i < t4; ++_i)
  34017. t1.push(t3[_i]);
  34018. return S.ComplexSelector$(t1, t2.lineBreak || parentComplex.lineBreak);
  34019. }
  34020. };
  34021. D.SelectorList_resolveParentSelectors__closure0.prototype = {
  34022. call$1: function(newComplex) {
  34023. var t1 = this._box_0;
  34024. return S.ComplexSelector$(newComplex, t1.lineBreaks[t1.i++]);
  34025. }
  34026. };
  34027. D.SelectorList__complexContainsParentSelector_closure.prototype = {
  34028. call$1: function(component) {
  34029. return component instanceof X.CompoundSelector && C.JSArray_methods.any$1(component.components, new D.SelectorList__complexContainsParentSelector__closure());
  34030. }
  34031. };
  34032. D.SelectorList__complexContainsParentSelector__closure.prototype = {
  34033. call$1: function(simple) {
  34034. var t1;
  34035. if (!(simple instanceof M.ParentSelector))
  34036. if (simple instanceof D.PseudoSelector) {
  34037. t1 = simple.selector;
  34038. t1 = t1 != null && C.JSArray_methods.any$1(t1.components, t1.get$_complexContainsParentSelector());
  34039. } else
  34040. t1 = false;
  34041. else
  34042. t1 = true;
  34043. return t1;
  34044. }
  34045. };
  34046. D.SelectorList__resolveParentSelectorsCompound_closure.prototype = {
  34047. call$1: function(simple) {
  34048. var t1;
  34049. if (simple instanceof D.PseudoSelector) {
  34050. t1 = simple.selector;
  34051. t1 = t1 != null && C.JSArray_methods.any$1(t1.components, t1.get$_complexContainsParentSelector());
  34052. } else
  34053. t1 = false;
  34054. return t1;
  34055. }
  34056. };
  34057. D.SelectorList__resolveParentSelectorsCompound_closure0.prototype = {
  34058. call$1: function(simple) {
  34059. var t1, t2, t3;
  34060. if (simple instanceof D.PseudoSelector) {
  34061. t1 = simple.selector;
  34062. if (t1 == null)
  34063. return simple;
  34064. if (!C.JSArray_methods.any$1(t1.components, t1.get$_complexContainsParentSelector()))
  34065. return simple;
  34066. t1 = t1.resolveParentSelectors$2$implicitParent(this.parent, false);
  34067. t2 = simple.name;
  34068. t3 = simple.isClass;
  34069. return D.PseudoSelector$(t2, simple.argument, !t3, t1);
  34070. } else
  34071. return simple;
  34072. }
  34073. };
  34074. D.SelectorList__resolveParentSelectorsCompound_closure1.prototype = {
  34075. call$1: function(complex) {
  34076. var suffix, t2, t3, t4, last, _i,
  34077. t1 = complex.components,
  34078. lastComponent = C.JSArray_methods.get$last(t1);
  34079. if (!(lastComponent instanceof X.CompoundSelector))
  34080. throw H.wrapException(E.SassScriptException$('Parent "' + complex.toString$0(0) + '" is incompatible with this selector.'));
  34081. suffix = type$.ParentSelector._as(C.JSArray_methods.get$first(this.compound.components)).suffix;
  34082. t2 = type$.JSArray_SimpleSelector;
  34083. if (suffix != null) {
  34084. t2 = H.setRuntimeTypeInfo([], t2);
  34085. for (t3 = lastComponent.components, t4 = H.SubListIterable$(t3, 0, t3.length - 1, H._arrayInstanceType(t3)._precomputed1), t4 = new H.ListIterator(t4, t4.get$length(t4)); t4.moveNext$0();)
  34086. t2.push(t4.__internal$_current);
  34087. t2.push(C.JSArray_methods.get$last(t3).addSuffix$1(suffix));
  34088. for (t3 = J.skip$1$ax(this.resolvedMembers, 1), t3 = new H.ListIterator(t3, t3.get$length(t3)); t3.moveNext$0();)
  34089. t2.push(t3.__internal$_current);
  34090. last = X.CompoundSelector$(t2);
  34091. } else {
  34092. t2 = H.setRuntimeTypeInfo([], t2);
  34093. for (t3 = lastComponent.components, t4 = t3.length, _i = 0; _i < t4; ++_i)
  34094. t2.push(t3[_i]);
  34095. for (t3 = J.skip$1$ax(this.resolvedMembers, 1), t3 = new H.ListIterator(t3, t3.get$length(t3)); t3.moveNext$0();)
  34096. t2.push(t3.__internal$_current);
  34097. last = X.CompoundSelector$(t2);
  34098. }
  34099. t2 = H.setRuntimeTypeInfo([], type$.JSArray_ComplexSelectorComponent);
  34100. for (t1 = H.SubListIterable$(t1, 0, t1.length - 1, H._arrayInstanceType(t1)._precomputed1), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();)
  34101. t2.push(t1.__internal$_current);
  34102. t2.push(last);
  34103. return S.ComplexSelector$(t2, complex.lineBreak);
  34104. }
  34105. };
  34106. M.ParentSelector.prototype = {
  34107. accept$1$1: function(visitor) {
  34108. var t2,
  34109. t1 = visitor._serialize$_buffer;
  34110. t1.writeCharCode$1(38);
  34111. t2 = this.suffix;
  34112. if (t2 != null)
  34113. t1.write$1(0, t2);
  34114. return null;
  34115. },
  34116. accept$1: function(visitor) {
  34117. return this.accept$1$1(visitor, type$.dynamic);
  34118. },
  34119. unify$1: function(compound) {
  34120. return H.throwExpression(P.UnsupportedError$("& doesn't support unification."));
  34121. }
  34122. };
  34123. N.PlaceholderSelector.prototype = {
  34124. get$isInvisible: function() {
  34125. return true;
  34126. },
  34127. accept$1$1: function(visitor) {
  34128. var t1 = visitor._serialize$_buffer;
  34129. t1.writeCharCode$1(37);
  34130. t1.write$1(0, this.name);
  34131. return null;
  34132. },
  34133. accept$1: function(visitor) {
  34134. return this.accept$1$1(visitor, type$.dynamic);
  34135. },
  34136. addSuffix$1: function(suffix) {
  34137. return new N.PlaceholderSelector(this.name + suffix);
  34138. },
  34139. $eq: function(_, other) {
  34140. if (other == null)
  34141. return false;
  34142. return other instanceof N.PlaceholderSelector && other.name === this.name;
  34143. },
  34144. get$hashCode: function(_) {
  34145. return C.JSString_methods.get$hashCode(this.name);
  34146. }
  34147. };
  34148. D.PseudoSelector.prototype = {
  34149. get$minSpecificity: function() {
  34150. if (this._pseudo$_minSpecificity == null)
  34151. this._pseudo$_computeSpecificity$0();
  34152. return this._pseudo$_minSpecificity;
  34153. },
  34154. get$maxSpecificity: function() {
  34155. if (this._pseudo$_maxSpecificity == null)
  34156. this._pseudo$_computeSpecificity$0();
  34157. return this._pseudo$_maxSpecificity;
  34158. },
  34159. get$isInvisible: function() {
  34160. var t1 = this.selector;
  34161. if (t1 == null)
  34162. return false;
  34163. return this.name !== "not" && t1.get$isInvisible();
  34164. },
  34165. addSuffix$1: function(suffix) {
  34166. var _this = this;
  34167. if (_this.argument != null || _this.selector != null)
  34168. _this.super$SimpleSelector$addSuffix(suffix);
  34169. return D.PseudoSelector$(_this.name + suffix, null, !_this.isClass, null);
  34170. },
  34171. unify$1: function(compound) {
  34172. var result, t1, t2, addedThis, _i, simple, _this = this;
  34173. if (compound.length === 1 && C.JSArray_methods.get$first(compound) instanceof N.UniversalSelector)
  34174. return C.JSArray_methods.get$first(compound).unify$1(H.setRuntimeTypeInfo([_this], type$.JSArray_SimpleSelector));
  34175. if (C.JSArray_methods.contains$1(compound, _this))
  34176. return compound;
  34177. result = H.setRuntimeTypeInfo([], type$.JSArray_SimpleSelector);
  34178. for (t1 = compound.length, t2 = !_this.isClass, addedThis = false, _i = 0; _i < compound.length; compound.length === t1 || (0, H.throwConcurrentModificationError)(compound), ++_i) {
  34179. simple = compound[_i];
  34180. if (simple instanceof D.PseudoSelector && !simple.isClass) {
  34181. if (t2)
  34182. return null;
  34183. result.push(_this);
  34184. addedThis = true;
  34185. }
  34186. result.push(simple);
  34187. }
  34188. if (!addedThis)
  34189. result.push(_this);
  34190. return result;
  34191. },
  34192. _pseudo$_computeSpecificity$0: function() {
  34193. var t1, _i, t2, complex, t3, t4, _this = this;
  34194. if (!_this.isClass) {
  34195. _this._pseudo$_maxSpecificity = _this._pseudo$_minSpecificity = 1;
  34196. return;
  34197. }
  34198. t1 = _this.selector;
  34199. if (t1 == null) {
  34200. _this._pseudo$_minSpecificity = M.SimpleSelector.prototype.get$minSpecificity.call(_this);
  34201. _this._pseudo$_maxSpecificity = M.SimpleSelector.prototype.get$maxSpecificity.call(_this);
  34202. return;
  34203. }
  34204. if (_this.name === "not") {
  34205. _i = _this._pseudo$_maxSpecificity = _this._pseudo$_minSpecificity = 0;
  34206. for (t1 = t1.components, t2 = t1.length; _i < t2; ++_i) {
  34207. complex = t1[_i];
  34208. t3 = _this._pseudo$_minSpecificity;
  34209. if (complex._minSpecificity == null)
  34210. complex._computeSpecificity$0();
  34211. t4 = complex._minSpecificity;
  34212. _this._pseudo$_minSpecificity = Math.max(H.checkNum(t3), H.checkNum(t4));
  34213. t4 = _this._pseudo$_maxSpecificity;
  34214. if (complex._maxSpecificity == null)
  34215. complex._computeSpecificity$0();
  34216. t3 = complex._maxSpecificity;
  34217. _this._pseudo$_maxSpecificity = Math.max(H.checkNum(t4), H.checkNum(t3));
  34218. }
  34219. } else {
  34220. _this._pseudo$_minSpecificity = H._asIntNullable(Math.pow(M.SimpleSelector.prototype.get$minSpecificity.call(_this), 3));
  34221. _i = _this._pseudo$_maxSpecificity = 0;
  34222. for (t1 = t1.components, t2 = t1.length; _i < t2; ++_i) {
  34223. complex = t1[_i];
  34224. t3 = _this._pseudo$_minSpecificity;
  34225. if (complex._minSpecificity == null)
  34226. complex._computeSpecificity$0();
  34227. t4 = complex._minSpecificity;
  34228. _this._pseudo$_minSpecificity = Math.min(H.checkNum(t3), H.checkNum(t4));
  34229. t4 = _this._pseudo$_maxSpecificity;
  34230. if (complex._maxSpecificity == null)
  34231. complex._computeSpecificity$0();
  34232. t3 = complex._maxSpecificity;
  34233. _this._pseudo$_maxSpecificity = Math.max(H.checkNum(t4), H.checkNum(t3));
  34234. }
  34235. }
  34236. },
  34237. accept$1$1: function(visitor) {
  34238. return visitor.visitPseudoSelector$1(this);
  34239. },
  34240. accept$1: function(visitor) {
  34241. return this.accept$1$1(visitor, type$.dynamic);
  34242. },
  34243. $eq: function(_, other) {
  34244. var _this = this;
  34245. if (other == null)
  34246. return false;
  34247. return other instanceof D.PseudoSelector && other.name === _this.name && other.isClass === _this.isClass && other.argument == _this.argument && J.$eq$(other.selector, _this.selector);
  34248. },
  34249. get$hashCode: function(_) {
  34250. var _this = this;
  34251. return (C.JSString_methods.get$hashCode(_this.name) ^ C.JSBool_methods.get$hashCode(!_this.isClass) ^ J.get$hashCode$(_this.argument) ^ J.get$hashCode$(_this.selector)) >>> 0;
  34252. }
  34253. };
  34254. D.QualifiedName.prototype = {
  34255. $eq: function(_, other) {
  34256. if (other == null)
  34257. return false;
  34258. return other instanceof D.QualifiedName && other.name === this.name && other.namespace == this.namespace;
  34259. },
  34260. get$hashCode: function(_) {
  34261. return C.JSString_methods.get$hashCode(this.name) ^ J.get$hashCode$(this.namespace);
  34262. },
  34263. toString$0: function(_) {
  34264. var t1 = this.namespace,
  34265. t2 = this.name;
  34266. return t1 == null ? t2 : t1 + "|" + t2;
  34267. }
  34268. };
  34269. M.SimpleSelector.prototype = {
  34270. get$minSpecificity: function() {
  34271. return 1000;
  34272. },
  34273. get$maxSpecificity: function() {
  34274. return this.get$minSpecificity();
  34275. },
  34276. addSuffix$1: function(suffix) {
  34277. return H.throwExpression(E.SassScriptException$('Invalid parent selector "' + this.toString$0(0) + '"'));
  34278. },
  34279. unify$1: function(compound) {
  34280. var result, t1, addedThis, _i, simple, _this = this;
  34281. if (compound.length === 1 && C.JSArray_methods.get$first(compound) instanceof N.UniversalSelector)
  34282. return C.JSArray_methods.get$first(compound).unify$1(H.setRuntimeTypeInfo([_this], type$.JSArray_SimpleSelector));
  34283. if (C.JSArray_methods.contains$1(compound, _this))
  34284. return compound;
  34285. result = H.setRuntimeTypeInfo([], type$.JSArray_SimpleSelector);
  34286. for (t1 = compound.length, addedThis = false, _i = 0; _i < compound.length; compound.length === t1 || (0, H.throwConcurrentModificationError)(compound), ++_i) {
  34287. simple = compound[_i];
  34288. if (!addedThis && simple instanceof D.PseudoSelector) {
  34289. result.push(_this);
  34290. addedThis = true;
  34291. }
  34292. result.push(simple);
  34293. }
  34294. if (!addedThis)
  34295. result.push(_this);
  34296. return result;
  34297. }
  34298. };
  34299. F.TypeSelector.prototype = {
  34300. get$minSpecificity: function() {
  34301. return 1;
  34302. },
  34303. accept$1$1: function(visitor) {
  34304. visitor._serialize$_buffer.write$1(0, this.name);
  34305. return null;
  34306. },
  34307. accept$1: function(visitor) {
  34308. return this.accept$1$1(visitor, type$.dynamic);
  34309. },
  34310. addSuffix$1: function(suffix) {
  34311. var t1 = this.name;
  34312. return new F.TypeSelector(new D.QualifiedName(t1.name + suffix, t1.namespace));
  34313. },
  34314. unify$1: function(compound) {
  34315. var unified, t1, t2, _i;
  34316. if (C.JSArray_methods.get$first(compound) instanceof N.UniversalSelector || C.JSArray_methods.get$first(compound) instanceof F.TypeSelector) {
  34317. unified = Y.unifyUniversalAndElement(this, C.JSArray_methods.get$first(compound));
  34318. if (unified == null)
  34319. return null;
  34320. t1 = H.setRuntimeTypeInfo([], type$.JSArray_SimpleSelector);
  34321. t1.push(unified);
  34322. for (t2 = H.SubListIterable$(compound, 1, null, H._arrayInstanceType(compound)._precomputed1), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
  34323. t1.push(t2.__internal$_current);
  34324. return t1;
  34325. } else {
  34326. t1 = H.setRuntimeTypeInfo([], type$.JSArray_SimpleSelector);
  34327. t1.push(this);
  34328. for (t2 = compound.length, _i = 0; _i < compound.length; compound.length === t2 || (0, H.throwConcurrentModificationError)(compound), ++_i)
  34329. t1.push(compound[_i]);
  34330. return t1;
  34331. }
  34332. },
  34333. $eq: function(_, other) {
  34334. if (other == null)
  34335. return false;
  34336. return other instanceof F.TypeSelector && other.name.$eq(0, this.name);
  34337. },
  34338. get$hashCode: function(_) {
  34339. var t1 = this.name;
  34340. return C.JSString_methods.get$hashCode(t1.name) ^ J.get$hashCode$(t1.namespace);
  34341. }
  34342. };
  34343. N.UniversalSelector.prototype = {
  34344. get$minSpecificity: function() {
  34345. return 0;
  34346. },
  34347. accept$1$1: function(visitor) {
  34348. var t2,
  34349. t1 = this.namespace;
  34350. if (t1 != null) {
  34351. t2 = visitor._serialize$_buffer;
  34352. t2.write$1(0, t1);
  34353. t2.writeCharCode$1(124);
  34354. }
  34355. visitor._serialize$_buffer.writeCharCode$1(42);
  34356. return null;
  34357. },
  34358. accept$1: function(visitor) {
  34359. return this.accept$1$1(visitor, type$.dynamic);
  34360. },
  34361. unify$1: function(compound) {
  34362. var unified, t1, t2, _i, _this = this;
  34363. if (C.JSArray_methods.get$first(compound) instanceof N.UniversalSelector || C.JSArray_methods.get$first(compound) instanceof F.TypeSelector) {
  34364. unified = Y.unifyUniversalAndElement(_this, C.JSArray_methods.get$first(compound));
  34365. if (unified == null)
  34366. return null;
  34367. t1 = H.setRuntimeTypeInfo([], type$.JSArray_SimpleSelector);
  34368. t1.push(unified);
  34369. for (t2 = H.SubListIterable$(compound, 1, null, H._arrayInstanceType(compound)._precomputed1), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
  34370. t1.push(t2.__internal$_current);
  34371. return t1;
  34372. }
  34373. t1 = _this.namespace;
  34374. if (t1 != null && t1 !== "*") {
  34375. t1 = H.setRuntimeTypeInfo([], type$.JSArray_SimpleSelector);
  34376. t1.push(_this);
  34377. for (t2 = compound.length, _i = 0; _i < compound.length; compound.length === t2 || (0, H.throwConcurrentModificationError)(compound), ++_i)
  34378. t1.push(compound[_i]);
  34379. return t1;
  34380. }
  34381. if (compound.length !== 0)
  34382. return compound;
  34383. return H.setRuntimeTypeInfo([_this], type$.JSArray_SimpleSelector);
  34384. },
  34385. $eq: function(_, other) {
  34386. if (other == null)
  34387. return false;
  34388. return other instanceof N.UniversalSelector && other.namespace == this.namespace;
  34389. },
  34390. get$hashCode: function(_) {
  34391. return J.get$hashCode$(this.namespace);
  34392. }
  34393. };
  34394. X._compileStylesheet_closure0.prototype = {
  34395. call$1: function(url) {
  34396. var t1, t2, _null = null;
  34397. if (url === "")
  34398. t1 = J.toString$0$(P.Uri_Uri$dataFromString(P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(this.stylesheet.span.file._decodedChars, 0, _null), 0, _null), C.C_Utf8Codec, _null));
  34399. else {
  34400. t1 = P.Uri_parse(url);
  34401. t2 = this.importCache._async_import_cache$_resultsCache.$index(0, t1);
  34402. t2 = t2 == null ? _null : t2.get$sourceMapUrl();
  34403. t1 = J.toString$0$(t2 == null ? t1 : t2);
  34404. }
  34405. return t1;
  34406. }
  34407. };
  34408. X.CompileResult.prototype = {};
  34409. Q.AsyncEnvironment.prototype = {
  34410. closure$0: function() {
  34411. var t5, t6, t7, _this = this,
  34412. t1 = _this._async_environment$_forwardedModules,
  34413. t2 = _this._async_environment$_forwardedModuleNodes,
  34414. t3 = _this._async_environment$_nestedForwardedModules,
  34415. t4 = _this._async_environment$_variables;
  34416. t4 = H.setRuntimeTypeInfo(t4.slice(0), H._arrayInstanceType(t4));
  34417. t5 = _this._async_environment$_variableNodes;
  34418. if (t5 == null)
  34419. t5 = null;
  34420. else
  34421. t5 = H.setRuntimeTypeInfo(t5.slice(0), H._arrayInstanceType(t5));
  34422. t6 = _this._async_environment$_functions;
  34423. t6 = H.setRuntimeTypeInfo(t6.slice(0), H._arrayInstanceType(t6));
  34424. t7 = _this._async_environment$_mixins;
  34425. t7 = H.setRuntimeTypeInfo(t7.slice(0), H._arrayInstanceType(t7));
  34426. return Q.AsyncEnvironment$_(_this._async_environment$_modules, _this._async_environment$_namespaceNodes, _this._async_environment$_globalModules, _this._async_environment$_globalModuleNodes, t1, t2, t3, _this._async_environment$_allModules, t4, t5, t6, t7, _this._async_environment$_content);
  34427. },
  34428. addModule$3$namespace: function(module, nodeWithSpan, namespace) {
  34429. var t1, t2, _this = this;
  34430. if (namespace == null) {
  34431. _this._async_environment$_globalModules.add$1(0, module);
  34432. _this._async_environment$_globalModuleNodes.$indexSet(0, module, nodeWithSpan);
  34433. _this._async_environment$_allModules.push(module);
  34434. for (t1 = J.get$iterator$ax(C.JSArray_methods.get$first(_this._async_environment$_variables).get$keys()); t1.moveNext$0();) {
  34435. t2 = t1.get$current(t1);
  34436. if (module.get$variables().containsKey$1(t2))
  34437. throw H.wrapException(E.SassScriptException$('This module and the new module both define a variable named "$' + H.S(t2) + '".'));
  34438. }
  34439. } else {
  34440. t1 = _this._async_environment$_modules;
  34441. if (t1.containsKey$1(namespace))
  34442. throw H.wrapException(E.MultiSpanSassScriptException$("There's already a module with namespace \"" + namespace + '".', "new @use", P.LinkedHashMap_LinkedHashMap$_literal([_this._async_environment$_namespaceNodes.$index(0, namespace).get$span(), "original @use"], type$.FileSpan, type$.String)));
  34443. t1.$indexSet(0, namespace, module);
  34444. _this._async_environment$_namespaceNodes.$indexSet(0, namespace, nodeWithSpan);
  34445. _this._async_environment$_allModules.push(module);
  34446. }
  34447. },
  34448. forwardModule$2: function(module, rule) {
  34449. var view, t1, t2, _this = this;
  34450. if (_this._async_environment$_forwardedModules == null)
  34451. _this._async_environment$_forwardedModules = P.LinkedHashSet_LinkedHashSet$_empty(type$.Module_AsyncCallable);
  34452. if (_this._async_environment$_forwardedModuleNodes == null)
  34453. _this._async_environment$_forwardedModuleNodes = P.LinkedHashMap_LinkedHashMap$_empty(type$.Module_AsyncCallable, type$.AstNode);
  34454. view = R.ForwardedModuleView_ifNecessary(module, rule, type$.AsyncCallable);
  34455. for (t1 = _this._async_environment$_forwardedModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications); t1.moveNext$0();) {
  34456. t2 = t1._collection$_current;
  34457. _this._async_environment$_assertNoConflicts$6(view.get$variables(), t2.get$variables(), view, t2, "variable", rule);
  34458. _this._async_environment$_assertNoConflicts$6(view.get$functions(view), t2.get$functions(t2), view, t2, "function", rule);
  34459. _this._async_environment$_assertNoConflicts$6(view.get$mixins(), t2.get$mixins(), view, t2, "mixin", rule);
  34460. }
  34461. _this._async_environment$_allModules.push(module);
  34462. _this._async_environment$_forwardedModules.add$1(0, view);
  34463. _this._async_environment$_forwardedModuleNodes.$indexSet(0, view, rule);
  34464. },
  34465. _async_environment$_assertNoConflicts$6: function(newMembers, oldMembers, newModule, oldModule, type, newModuleNodeWithSpan) {
  34466. var larger, smaller, t1, t2, $name;
  34467. if (newMembers.get$length(newMembers) < oldMembers.get$length(oldMembers)) {
  34468. larger = oldMembers;
  34469. smaller = newMembers;
  34470. } else {
  34471. larger = newMembers;
  34472. smaller = oldMembers;
  34473. }
  34474. for (t1 = J.get$iterator$ax(smaller.get$keys()), t2 = type === "variable"; t1.moveNext$0();) {
  34475. $name = t1.get$current(t1);
  34476. if (!larger.containsKey$1($name))
  34477. continue;
  34478. if (t2 ? newModule.variableIdentity$1($name) === oldModule.variableIdentity$1($name) : J.$eq$(larger.$index(0, $name), smaller.$index(0, $name)))
  34479. continue;
  34480. if (t2)
  34481. $name = "$" + H.S($name);
  34482. throw H.wrapException(E.MultiSpanSassScriptException$("Two forwarded modules both define a " + type + " named " + H.S($name) + ".", "new @forward", P.LinkedHashMap_LinkedHashMap$_literal([this._async_environment$_forwardedModuleNodes.$index(0, oldModule).get$span(), "original @forward"], type$.FileSpan, type$.String)));
  34483. }
  34484. },
  34485. importForwards$1: function(module) {
  34486. var t2, t3, t4, t5, forwardedVariableNames, forwardedFunctionNames, forwardedMixinNames, t6, t7, _i, shadowed, t8, _this = this,
  34487. t1 = module._async_environment$_environment,
  34488. forwarded = t1._async_environment$_forwardedModules;
  34489. if (forwarded == null)
  34490. return;
  34491. if (_this._async_environment$_forwardedModules != null) {
  34492. t2 = P.LinkedHashSet_LinkedHashSet(type$.Module_AsyncCallable);
  34493. for (t3 = P._LinkedHashSetIterator$(forwarded, forwarded._collection$_modifications), t4 = _this._async_environment$_globalModules; t3.moveNext$0();) {
  34494. t5 = t3._collection$_current;
  34495. if (!_this._async_environment$_forwardedModules.contains$1(0, t5) || !t4.contains$1(0, t5))
  34496. t2.add$1(0, t5);
  34497. }
  34498. forwarded = t2;
  34499. }
  34500. if (_this._async_environment$_forwardedModules == null)
  34501. _this._async_environment$_forwardedModules = P.LinkedHashSet_LinkedHashSet$_empty(type$.Module_AsyncCallable);
  34502. if (_this._async_environment$_forwardedModuleNodes == null)
  34503. _this._async_environment$_forwardedModuleNodes = P.LinkedHashMap_LinkedHashMap$_empty(type$.Module_AsyncCallable, type$.AstNode);
  34504. t2 = H._instanceType(forwarded)._eval$1("ExpandIterable<1,String>");
  34505. t3 = t2._eval$1("Iterable.E");
  34506. forwardedVariableNames = P.LinkedHashSet_LinkedHashSet$from(new H.ExpandIterable(forwarded, new Q.AsyncEnvironment_importForwards_closure(), t2), t3);
  34507. forwardedFunctionNames = P.LinkedHashSet_LinkedHashSet$from(new H.ExpandIterable(forwarded, new Q.AsyncEnvironment_importForwards_closure0(), t2), t3);
  34508. forwardedMixinNames = P.LinkedHashSet_LinkedHashSet$from(new H.ExpandIterable(forwarded, new Q.AsyncEnvironment_importForwards_closure1(), t2), t3);
  34509. t2 = _this._async_environment$_variables;
  34510. t3 = t2.length;
  34511. if (t3 === 1) {
  34512. for (t3 = _this._async_environment$_globalModules, t4 = t3.toList$0(0), t5 = t4.length, t6 = type$.AsyncCallable, t7 = _this._async_environment$_globalModuleNodes, _i = 0; _i < t4.length; t4.length === t5 || (0, H.throwConcurrentModificationError)(t4), ++_i) {
  34513. module = t4[_i];
  34514. shadowed = B.ShadowedModuleView_ifNecessary(module, forwardedFunctionNames, forwardedMixinNames, forwardedVariableNames, t6);
  34515. if (shadowed != null) {
  34516. t3.remove$1(0, module);
  34517. t8 = shadowed.variables;
  34518. if (t8.get$isEmpty(t8)) {
  34519. t8 = shadowed.functions;
  34520. if (t8.get$isEmpty(t8)) {
  34521. t8 = shadowed.mixins;
  34522. if (t8.get$isEmpty(t8)) {
  34523. t8 = shadowed._shadowed_view$_inner;
  34524. t8 = J.get$isEmpty$asx(t8.get$css(t8).get$children());
  34525. } else
  34526. t8 = false;
  34527. } else
  34528. t8 = false;
  34529. } else
  34530. t8 = false;
  34531. if (!t8) {
  34532. t3.add$1(0, shadowed);
  34533. t7.$indexSet(0, shadowed, t7.remove$1(0, module));
  34534. }
  34535. }
  34536. }
  34537. for (t4 = _this._async_environment$_forwardedModules.toList$0(0), t5 = t4.length, _i = 0; _i < t4.length; t4.length === t5 || (0, H.throwConcurrentModificationError)(t4), ++_i) {
  34538. module = t4[_i];
  34539. shadowed = B.ShadowedModuleView_ifNecessary(module, forwardedFunctionNames, forwardedMixinNames, forwardedVariableNames, t6);
  34540. if (shadowed != null) {
  34541. _this._async_environment$_forwardedModules.remove$1(0, module);
  34542. t8 = shadowed.variables;
  34543. if (t8.get$isEmpty(t8)) {
  34544. t8 = shadowed.functions;
  34545. if (t8.get$isEmpty(t8)) {
  34546. t8 = shadowed.mixins;
  34547. if (t8.get$isEmpty(t8)) {
  34548. t8 = shadowed._shadowed_view$_inner;
  34549. t8 = J.get$isEmpty$asx(t8.get$css(t8).get$children());
  34550. } else
  34551. t8 = false;
  34552. } else
  34553. t8 = false;
  34554. } else
  34555. t8 = false;
  34556. if (!t8) {
  34557. _this._async_environment$_forwardedModules.add$1(0, shadowed);
  34558. t8 = _this._async_environment$_forwardedModuleNodes;
  34559. t8.$indexSet(0, shadowed, t8.remove$1(0, module));
  34560. }
  34561. }
  34562. }
  34563. t3.addAll$1(0, forwarded);
  34564. t7.addAll$1(0, t1._async_environment$_forwardedModuleNodes);
  34565. _this._async_environment$_forwardedModules.addAll$1(0, forwarded);
  34566. _this._async_environment$_forwardedModuleNodes.addAll$1(0, t1._async_environment$_forwardedModuleNodes);
  34567. } else {
  34568. t1 = _this._async_environment$_nestedForwardedModules;
  34569. J.addAll$1$ax(C.JSArray_methods.get$last(t1 == null ? _this._async_environment$_nestedForwardedModules = P.List_List$generate(t3 - 1, new Q.AsyncEnvironment_importForwards_closure2(), true, type$.List_Module_AsyncCallable) : t1), forwarded);
  34570. }
  34571. for (t1 = P._LinkedHashSetIterator$(forwardedVariableNames, forwardedVariableNames._collection$_modifications), t3 = _this._async_environment$_variableNodes, t4 = t3 != null, t5 = _this._async_environment$_variableIndices; t1.moveNext$0();) {
  34572. t6 = t1._collection$_current;
  34573. t5.remove$1(0, t6);
  34574. J.remove$1$ax(C.JSArray_methods.get$last(t2), t6);
  34575. if (t4)
  34576. J.remove$1$ax(C.JSArray_methods.get$last(t3), t6);
  34577. }
  34578. for (t1 = P._LinkedHashSetIterator$(forwardedFunctionNames, forwardedFunctionNames._collection$_modifications), t2 = _this._async_environment$_functionIndices, t3 = _this._async_environment$_functions; t1.moveNext$0();) {
  34579. t4 = t1._collection$_current;
  34580. t2.remove$1(0, t4);
  34581. J.remove$1$ax(C.JSArray_methods.get$last(t3), t4);
  34582. }
  34583. for (t1 = P._LinkedHashSetIterator$(forwardedMixinNames, forwardedMixinNames._collection$_modifications), t2 = _this._async_environment$_mixinIndices, t3 = _this._async_environment$_mixins; t1.moveNext$0();) {
  34584. t4 = t1._collection$_current;
  34585. t2.remove$1(0, t4);
  34586. J.remove$1$ax(C.JSArray_methods.get$last(t3), t4);
  34587. }
  34588. },
  34589. getVariable$2$namespace: function($name, namespace) {
  34590. var t1, index, _this = this;
  34591. if (namespace != null)
  34592. return _this._async_environment$_getModule$1(namespace).get$variables().$index(0, $name);
  34593. if (_this._async_environment$_lastVariableName === $name) {
  34594. t1 = J.$index$asx(_this._async_environment$_variables[_this._async_environment$_lastVariableIndex], $name);
  34595. return t1 == null ? _this._async_environment$_getVariableFromGlobalModule$1($name) : t1;
  34596. }
  34597. t1 = _this._async_environment$_variableIndices;
  34598. index = t1.$index(0, $name);
  34599. if (index != null) {
  34600. _this._async_environment$_lastVariableName = $name;
  34601. _this._async_environment$_lastVariableIndex = index;
  34602. t1 = J.$index$asx(_this._async_environment$_variables[index], $name);
  34603. return t1 == null ? _this._async_environment$_getVariableFromGlobalModule$1($name) : t1;
  34604. }
  34605. index = _this._async_environment$_variableIndex$1($name);
  34606. if (index == null)
  34607. return _this._async_environment$_getVariableFromGlobalModule$1($name);
  34608. _this._async_environment$_lastVariableName = $name;
  34609. _this._async_environment$_lastVariableIndex = index;
  34610. t1.$indexSet(0, $name, index);
  34611. t1 = J.$index$asx(_this._async_environment$_variables[index], $name);
  34612. return t1 == null ? _this._async_environment$_getVariableFromGlobalModule$1($name) : t1;
  34613. },
  34614. getVariable$1: function($name) {
  34615. return this.getVariable$2$namespace($name, null);
  34616. },
  34617. _async_environment$_getVariableFromGlobalModule$1: function($name) {
  34618. return this._async_environment$_fromOneModule$3($name, "variable", new Q.AsyncEnvironment__getVariableFromGlobalModule_closure($name));
  34619. },
  34620. getVariableNode$2$namespace: function($name, namespace) {
  34621. var t1, index, _this = this;
  34622. if (namespace != null)
  34623. return _this._async_environment$_getModule$1(namespace).get$variableNodes().$index(0, $name);
  34624. if (_this._async_environment$_lastVariableName === $name) {
  34625. t1 = J.$index$asx(_this._async_environment$_variableNodes[_this._async_environment$_lastVariableIndex], $name);
  34626. return t1 == null ? _this._async_environment$_getVariableNodeFromGlobalModule$1($name) : t1;
  34627. }
  34628. t1 = _this._async_environment$_variableIndices;
  34629. index = t1.$index(0, $name);
  34630. if (index != null) {
  34631. _this._async_environment$_lastVariableName = $name;
  34632. _this._async_environment$_lastVariableIndex = index;
  34633. t1 = J.$index$asx(_this._async_environment$_variableNodes[index], $name);
  34634. return t1 == null ? _this._async_environment$_getVariableNodeFromGlobalModule$1($name) : t1;
  34635. }
  34636. index = _this._async_environment$_variableIndex$1($name);
  34637. if (index == null)
  34638. return _this._async_environment$_getVariableNodeFromGlobalModule$1($name);
  34639. _this._async_environment$_lastVariableName = $name;
  34640. _this._async_environment$_lastVariableIndex = index;
  34641. t1.$indexSet(0, $name, index);
  34642. t1 = J.$index$asx(_this._async_environment$_variableNodes[index], $name);
  34643. return t1 == null ? _this._async_environment$_getVariableNodeFromGlobalModule$1($name) : t1;
  34644. },
  34645. _async_environment$_getVariableNodeFromGlobalModule$1: function($name) {
  34646. var t1, value;
  34647. for (t1 = this._async_environment$_globalModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications); t1.moveNext$0();) {
  34648. value = t1._collection$_current.get$variableNodes().$index(0, $name);
  34649. if (value != null)
  34650. return value;
  34651. }
  34652. return null;
  34653. },
  34654. globalVariableExists$2$namespace: function($name, namespace) {
  34655. if (namespace != null)
  34656. return this._async_environment$_getModule$1(namespace).get$variables().containsKey$1($name);
  34657. if (C.JSArray_methods.get$first(this._async_environment$_variables).containsKey$1($name))
  34658. return true;
  34659. return this._async_environment$_getVariableFromGlobalModule$1($name) != null;
  34660. },
  34661. globalVariableExists$1: function($name) {
  34662. return this.globalVariableExists$2$namespace($name, null);
  34663. },
  34664. _async_environment$_variableIndex$1: function($name) {
  34665. var t1, i;
  34666. for (t1 = this._async_environment$_variables, i = t1.length - 1; i >= 0; --i)
  34667. if (t1[i].containsKey$1($name))
  34668. return i;
  34669. return null;
  34670. },
  34671. setVariable$5$global$namespace: function($name, value, nodeWithSpan, global, namespace) {
  34672. var t1, moduleWithName, t2, t3, index, _this = this;
  34673. if (namespace != null) {
  34674. _this._async_environment$_getModule$1(namespace).setVariable$3($name, value, nodeWithSpan);
  34675. return;
  34676. }
  34677. if (global || _this._async_environment$_variables.length === 1) {
  34678. _this._async_environment$_variableIndices.putIfAbsent$2($name, new Q.AsyncEnvironment_setVariable_closure(_this, $name));
  34679. t1 = _this._async_environment$_variables;
  34680. if (!C.JSArray_methods.get$first(t1).containsKey$1($name)) {
  34681. moduleWithName = _this._async_environment$_fromOneModule$3($name, "variable", new Q.AsyncEnvironment_setVariable_closure0($name));
  34682. if (moduleWithName != null) {
  34683. moduleWithName.setVariable$3($name, value, nodeWithSpan);
  34684. return;
  34685. }
  34686. }
  34687. J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, value);
  34688. t1 = _this._async_environment$_variableNodes;
  34689. if (t1 != null)
  34690. J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, nodeWithSpan);
  34691. return;
  34692. }
  34693. if (_this._async_environment$_nestedForwardedModules != null && !_this._async_environment$_variableIndices.containsKey$1($name) && _this._async_environment$_variableIndex$1($name) == null) {
  34694. t1 = _this._async_environment$_nestedForwardedModules;
  34695. t1.toString;
  34696. t1 = new H.ReversedListIterable(t1, H._arrayInstanceType(t1)._eval$1("ReversedListIterable<1>"));
  34697. t1 = new H.ListIterator(t1, t1.get$length(t1));
  34698. for (; t1.moveNext$0();)
  34699. for (t2 = J.get$reversed$ax(t1.__internal$_current), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  34700. t3 = t2.__internal$_current;
  34701. if (t3.get$variables().containsKey$1($name)) {
  34702. t3.setVariable$3($name, value, nodeWithSpan);
  34703. return;
  34704. }
  34705. }
  34706. }
  34707. index = _this._async_environment$_lastVariableName === $name ? _this._async_environment$_lastVariableIndex : _this._async_environment$_variableIndices.putIfAbsent$2($name, new Q.AsyncEnvironment_setVariable_closure1(_this, $name));
  34708. if (!_this._async_environment$_inSemiGlobalScope && index === 0) {
  34709. index = _this._async_environment$_variables.length - 1;
  34710. _this._async_environment$_variableIndices.$indexSet(0, $name, index);
  34711. }
  34712. _this._async_environment$_lastVariableName = $name;
  34713. _this._async_environment$_lastVariableIndex = index;
  34714. J.$indexSet$ax(_this._async_environment$_variables[index], $name, value);
  34715. t1 = _this._async_environment$_variableNodes;
  34716. if (t1 != null)
  34717. J.$indexSet$ax(t1[index], $name, nodeWithSpan);
  34718. },
  34719. setVariable$4$global: function($name, value, nodeWithSpan, global) {
  34720. return this.setVariable$5$global$namespace($name, value, nodeWithSpan, global, null);
  34721. },
  34722. setLocalVariable$3: function($name, value, nodeWithSpan) {
  34723. var index, _this = this,
  34724. t1 = _this._async_environment$_variables,
  34725. t2 = t1.length;
  34726. _this._async_environment$_lastVariableName = $name;
  34727. index = _this._async_environment$_lastVariableIndex = t2 - 1;
  34728. _this._async_environment$_variableIndices.$indexSet(0, $name, index);
  34729. J.$indexSet$ax(t1[index], $name, value);
  34730. t1 = _this._async_environment$_variableNodes;
  34731. if (t1 != null)
  34732. J.$indexSet$ax(t1[index], $name, nodeWithSpan);
  34733. },
  34734. getFunction$2$namespace: function($name, namespace) {
  34735. var t1, index, _this = this;
  34736. if (namespace != null) {
  34737. t1 = _this._async_environment$_getModule$1(namespace);
  34738. return t1.get$functions(t1).$index(0, $name);
  34739. }
  34740. t1 = _this._async_environment$_functionIndices;
  34741. index = t1.$index(0, $name);
  34742. if (index != null) {
  34743. t1 = J.$index$asx(_this._async_environment$_functions[index], $name);
  34744. return t1 == null ? _this._async_environment$_getFunctionFromGlobalModule$1($name) : t1;
  34745. }
  34746. index = _this._async_environment$_functionIndex$1($name);
  34747. if (index == null)
  34748. return _this._async_environment$_getFunctionFromGlobalModule$1($name);
  34749. t1.$indexSet(0, $name, index);
  34750. t1 = J.$index$asx(_this._async_environment$_functions[index], $name);
  34751. return t1 == null ? _this._async_environment$_getFunctionFromGlobalModule$1($name) : t1;
  34752. },
  34753. _async_environment$_getFunctionFromGlobalModule$1: function($name) {
  34754. return this._async_environment$_fromOneModule$3($name, "function", new Q.AsyncEnvironment__getFunctionFromGlobalModule_closure($name));
  34755. },
  34756. _async_environment$_functionIndex$1: function($name) {
  34757. var t1, i;
  34758. for (t1 = this._async_environment$_functions, i = t1.length - 1; i >= 0; --i)
  34759. if (t1[i].containsKey$1($name))
  34760. return i;
  34761. return null;
  34762. },
  34763. getMixin$2$namespace: function($name, namespace) {
  34764. var t1, index, _this = this;
  34765. if (namespace != null)
  34766. return _this._async_environment$_getModule$1(namespace).get$mixins().$index(0, $name);
  34767. t1 = _this._async_environment$_mixinIndices;
  34768. index = t1.$index(0, $name);
  34769. if (index != null) {
  34770. t1 = J.$index$asx(_this._async_environment$_mixins[index], $name);
  34771. return t1 == null ? _this._async_environment$_getMixinFromGlobalModule$1($name) : t1;
  34772. }
  34773. index = _this._async_environment$_mixinIndex$1($name);
  34774. if (index == null)
  34775. return _this._async_environment$_getMixinFromGlobalModule$1($name);
  34776. t1.$indexSet(0, $name, index);
  34777. t1 = J.$index$asx(_this._async_environment$_mixins[index], $name);
  34778. return t1 == null ? _this._async_environment$_getMixinFromGlobalModule$1($name) : t1;
  34779. },
  34780. _async_environment$_getMixinFromGlobalModule$1: function($name) {
  34781. return this._async_environment$_fromOneModule$3($name, "mixin", new Q.AsyncEnvironment__getMixinFromGlobalModule_closure($name));
  34782. },
  34783. _async_environment$_mixinIndex$1: function($name) {
  34784. var t1, i;
  34785. for (t1 = this._async_environment$_mixins, i = t1.length - 1; i >= 0; --i)
  34786. if (t1[i].containsKey$1($name))
  34787. return i;
  34788. return null;
  34789. },
  34790. withContent$2: function($content, callback) {
  34791. return this.withContent$body$AsyncEnvironment($content, callback);
  34792. },
  34793. withContent$body$AsyncEnvironment: function($content, callback) {
  34794. var $async$goto = 0,
  34795. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  34796. $async$self = this, oldContent;
  34797. var $async$withContent$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  34798. if ($async$errorCode === 1)
  34799. return P._asyncRethrow($async$result, $async$completer);
  34800. while (true)
  34801. switch ($async$goto) {
  34802. case 0:
  34803. // Function start
  34804. oldContent = $async$self._async_environment$_content;
  34805. $async$self._async_environment$_content = $content;
  34806. $async$goto = 2;
  34807. return P._asyncAwait(callback.call$0(), $async$withContent$2);
  34808. case 2:
  34809. // returning from await.
  34810. $async$self._async_environment$_content = oldContent;
  34811. // implicit return
  34812. return P._asyncReturn(null, $async$completer);
  34813. }
  34814. });
  34815. return P._asyncStartSync($async$withContent$2, $async$completer);
  34816. },
  34817. asMixin$1: function(callback) {
  34818. var $async$goto = 0,
  34819. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  34820. $async$self = this, oldInMixin;
  34821. var $async$asMixin$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  34822. if ($async$errorCode === 1)
  34823. return P._asyncRethrow($async$result, $async$completer);
  34824. while (true)
  34825. switch ($async$goto) {
  34826. case 0:
  34827. // Function start
  34828. oldInMixin = $async$self._async_environment$_inMixin;
  34829. $async$self._async_environment$_inMixin = true;
  34830. $async$goto = 2;
  34831. return P._asyncAwait(callback.call$0(), $async$asMixin$1);
  34832. case 2:
  34833. // returning from await.
  34834. $async$self._async_environment$_inMixin = oldInMixin;
  34835. // implicit return
  34836. return P._asyncReturn(null, $async$completer);
  34837. }
  34838. });
  34839. return P._asyncStartSync($async$asMixin$1, $async$completer);
  34840. },
  34841. scope$1$3$semiGlobal$when: function(callback, semiGlobal, when, $T) {
  34842. return this.scope$body$AsyncEnvironment(callback, semiGlobal, when, $T, $T);
  34843. },
  34844. scope$1$1: function(callback, $T) {
  34845. return this.scope$1$3$semiGlobal$when(callback, false, true, $T);
  34846. },
  34847. scope$1$2$when: function(callback, when, $T) {
  34848. return this.scope$1$3$semiGlobal$when(callback, false, when, $T);
  34849. },
  34850. scope$1$2$semiGlobal: function(callback, semiGlobal, $T) {
  34851. return this.scope$1$3$semiGlobal$when(callback, semiGlobal, true, $T);
  34852. },
  34853. scope$body$AsyncEnvironment: function(callback, semiGlobal, when, $T, $async$type) {
  34854. var $async$goto = 0,
  34855. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  34856. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, wasInSemiGlobalScope, wasInSemiGlobalScope0, $name, name0, name1, t1, t2, t3, t4, t5;
  34857. var $async$scope$1$3$semiGlobal$when = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  34858. if ($async$errorCode === 1) {
  34859. $async$currentError = $async$result;
  34860. $async$goto = $async$handler;
  34861. }
  34862. while (true)
  34863. switch ($async$goto) {
  34864. case 0:
  34865. // Function start
  34866. $async$goto = !when ? 3 : 4;
  34867. break;
  34868. case 3:
  34869. // then
  34870. wasInSemiGlobalScope = $async$self._async_environment$_inSemiGlobalScope;
  34871. $async$self._async_environment$_inSemiGlobalScope = semiGlobal;
  34872. $async$handler = 5;
  34873. $async$goto = 8;
  34874. return P._asyncAwait(callback.call$0(), $async$scope$1$3$semiGlobal$when);
  34875. case 8:
  34876. // returning from await.
  34877. t1 = $async$result;
  34878. $async$returnValue = t1;
  34879. $async$next = [1];
  34880. // goto finally
  34881. $async$goto = 6;
  34882. break;
  34883. $async$next.push(7);
  34884. // goto finally
  34885. $async$goto = 6;
  34886. break;
  34887. case 5:
  34888. // uncaught
  34889. $async$next = [2];
  34890. case 6:
  34891. // finally
  34892. $async$handler = 2;
  34893. $async$self._async_environment$_inSemiGlobalScope = wasInSemiGlobalScope;
  34894. // goto the next finally handler
  34895. $async$goto = $async$next.pop();
  34896. break;
  34897. case 7:
  34898. // after finally
  34899. case 4:
  34900. // join
  34901. semiGlobal = semiGlobal && $async$self._async_environment$_inSemiGlobalScope;
  34902. wasInSemiGlobalScope0 = $async$self._async_environment$_inSemiGlobalScope;
  34903. $async$self._async_environment$_inSemiGlobalScope = semiGlobal;
  34904. t1 = $async$self._async_environment$_variables;
  34905. t2 = type$.String;
  34906. C.JSArray_methods.add$1(t1, P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.Value));
  34907. t3 = $async$self._async_environment$_variableNodes;
  34908. if (t3 != null)
  34909. C.JSArray_methods.add$1(t3, P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.AstNode));
  34910. t3 = $async$self._async_environment$_functions;
  34911. t4 = type$.AsyncCallable;
  34912. C.JSArray_methods.add$1(t3, P.LinkedHashMap_LinkedHashMap$_empty(t2, t4));
  34913. t5 = $async$self._async_environment$_mixins;
  34914. C.JSArray_methods.add$1(t5, P.LinkedHashMap_LinkedHashMap$_empty(t2, t4));
  34915. t4 = $async$self._async_environment$_nestedForwardedModules;
  34916. if (t4 != null)
  34917. C.JSArray_methods.add$1(t4, H.setRuntimeTypeInfo([], type$.JSArray_Module_AsyncCallable));
  34918. $async$handler = 9;
  34919. $async$goto = 12;
  34920. return P._asyncAwait(callback.call$0(), $async$scope$1$3$semiGlobal$when);
  34921. case 12:
  34922. // returning from await.
  34923. t2 = $async$result;
  34924. $async$returnValue = t2;
  34925. $async$next = [1];
  34926. // goto finally
  34927. $async$goto = 10;
  34928. break;
  34929. $async$next.push(11);
  34930. // goto finally
  34931. $async$goto = 10;
  34932. break;
  34933. case 9:
  34934. // uncaught
  34935. $async$next = [2];
  34936. case 10:
  34937. // finally
  34938. $async$handler = 2;
  34939. $async$self._async_environment$_inSemiGlobalScope = wasInSemiGlobalScope0;
  34940. $async$self._async_environment$_lastVariableIndex = $async$self._async_environment$_lastVariableName = null;
  34941. for (t1 = J.get$iterator$ax(C.JSArray_methods.removeLast$0(t1).get$keys()), t2 = $async$self._async_environment$_variableIndices; t1.moveNext$0();) {
  34942. $name = t1.get$current(t1);
  34943. t2.remove$1(0, $name);
  34944. }
  34945. for (t1 = J.get$iterator$ax(C.JSArray_methods.removeLast$0(t3).get$keys()), t2 = $async$self._async_environment$_functionIndices; t1.moveNext$0();) {
  34946. name0 = t1.get$current(t1);
  34947. t2.remove$1(0, name0);
  34948. }
  34949. for (t1 = J.get$iterator$ax(C.JSArray_methods.removeLast$0(t5).get$keys()), t2 = $async$self._async_environment$_mixinIndices; t1.moveNext$0();) {
  34950. name1 = t1.get$current(t1);
  34951. t2.remove$1(0, name1);
  34952. }
  34953. t1 = $async$self._async_environment$_nestedForwardedModules;
  34954. if (t1 != null)
  34955. C.JSArray_methods.removeLast$0(t1);
  34956. // goto the next finally handler
  34957. $async$goto = $async$next.pop();
  34958. break;
  34959. case 11:
  34960. // after finally
  34961. case 1:
  34962. // return
  34963. return P._asyncReturn($async$returnValue, $async$completer);
  34964. case 2:
  34965. // rethrow
  34966. return P._asyncRethrow($async$currentError, $async$completer);
  34967. }
  34968. });
  34969. return P._asyncStartSync($async$scope$1$3$semiGlobal$when, $async$completer);
  34970. },
  34971. toImplicitConfiguration$0: function() {
  34972. var t2, t3, t4, t5, i, values, nodes, t6, t7,
  34973. t1 = type$.String,
  34974. configuration = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.ConfiguredValue);
  34975. for (t2 = this._async_environment$_variables, t3 = this._async_environment$_variableNodes, t4 = t3 == null, t5 = type$.AstNode, i = 0; i < t2.length; ++i) {
  34976. values = t2[i];
  34977. nodes = t4 ? P.LinkedHashMap_LinkedHashMap$_empty(t1, t5) : t3[i];
  34978. for (t6 = J.get$iterator$ax(values.get$keys()); t6.moveNext$0();) {
  34979. t7 = t6.get$current(t6);
  34980. configuration.$indexSet(0, t7, new Z.ConfiguredValue(values.$index(0, t7), null, nodes.$index(0, t7)));
  34981. }
  34982. }
  34983. return new A.Configuration(configuration, null, true);
  34984. },
  34985. _async_environment$_getModule$1: function(namespace) {
  34986. var module = this._async_environment$_modules.$index(0, namespace);
  34987. if (module != null)
  34988. return module;
  34989. throw H.wrapException(E.SassScriptException$('There is no module with the namespace "' + namespace + '".'));
  34990. },
  34991. _async_environment$_fromOneModule$1$3: function($name, type, callback) {
  34992. var t2, value, identity, t3, valueInModule, identityFromModule, t4, t5,
  34993. t1 = this._async_environment$_nestedForwardedModules;
  34994. if (t1 != null)
  34995. for (t1 = new H.ReversedListIterable(t1, H._arrayInstanceType(t1)._eval$1("ReversedListIterable<1>")), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();)
  34996. for (t2 = J.get$reversed$ax(t1.__internal$_current), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  34997. value = callback.call$1(t2.__internal$_current);
  34998. if (value != null)
  34999. return value;
  35000. }
  35001. for (t1 = this._async_environment$_globalModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications), t2 = type$.AsyncCallable, value = null, identity = null; t1.moveNext$0();) {
  35002. t3 = t1._collection$_current;
  35003. valueInModule = callback.call$1(t3);
  35004. if (valueInModule == null)
  35005. continue;
  35006. identityFromModule = t2._is(valueInModule) ? valueInModule : t3.variableIdentity$1($name);
  35007. if (identityFromModule.$eq(0, identity))
  35008. continue;
  35009. if (value != null) {
  35010. t1 = "This " + type + " is available from multiple global modules.";
  35011. t2 = type + " use";
  35012. t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  35013. for (t4 = this._async_environment$_globalModuleNodes.get$entries(), t4 = t4.get$iterator(t4); t4.moveNext$0();) {
  35014. t5 = t4.get$current(t4);
  35015. if (callback.call$1(t5.key) != null)
  35016. t3.$indexSet(0, t5.value.get$span(), "includes " + type);
  35017. }
  35018. throw H.wrapException(E.MultiSpanSassScriptException$(t1, t2, t3));
  35019. }
  35020. identity = identityFromModule;
  35021. value = valueInModule;
  35022. }
  35023. return value;
  35024. },
  35025. _async_environment$_fromOneModule$3: function($name, type, callback) {
  35026. return this._async_environment$_fromOneModule$1$3($name, type, callback, type$.dynamic);
  35027. }
  35028. };
  35029. Q.AsyncEnvironment_importForwards_closure.prototype = {
  35030. call$1: function(module) {
  35031. return module.get$variables().get$keys();
  35032. }
  35033. };
  35034. Q.AsyncEnvironment_importForwards_closure0.prototype = {
  35035. call$1: function(module) {
  35036. return module.get$functions(module).get$keys();
  35037. }
  35038. };
  35039. Q.AsyncEnvironment_importForwards_closure1.prototype = {
  35040. call$1: function(module) {
  35041. return module.get$mixins().get$keys();
  35042. }
  35043. };
  35044. Q.AsyncEnvironment_importForwards_closure2.prototype = {
  35045. call$1: function(_) {
  35046. return H.setRuntimeTypeInfo([], type$.JSArray_Module_AsyncCallable);
  35047. },
  35048. $signature: 97
  35049. };
  35050. Q.AsyncEnvironment__getVariableFromGlobalModule_closure.prototype = {
  35051. call$1: function(module) {
  35052. return module.get$variables().$index(0, this.name);
  35053. }
  35054. };
  35055. Q.AsyncEnvironment_setVariable_closure.prototype = {
  35056. call$0: function() {
  35057. var t1 = this.$this;
  35058. t1._async_environment$_lastVariableName = this.name;
  35059. return t1._async_environment$_lastVariableIndex = 0;
  35060. },
  35061. $signature: 8
  35062. };
  35063. Q.AsyncEnvironment_setVariable_closure0.prototype = {
  35064. call$1: function(module) {
  35065. return module.get$variables().containsKey$1(this.name) ? module : null;
  35066. }
  35067. };
  35068. Q.AsyncEnvironment_setVariable_closure1.prototype = {
  35069. call$0: function() {
  35070. var t1 = this.$this,
  35071. t2 = t1._async_environment$_variableIndex$1(this.name);
  35072. return t2 == null ? t1._async_environment$_variables.length - 1 : t2;
  35073. },
  35074. $signature: 8
  35075. };
  35076. Q.AsyncEnvironment__getFunctionFromGlobalModule_closure.prototype = {
  35077. call$1: function(module) {
  35078. return module.get$functions(module).$index(0, this.name);
  35079. }
  35080. };
  35081. Q.AsyncEnvironment__getMixinFromGlobalModule_closure.prototype = {
  35082. call$1: function(module) {
  35083. return module.get$mixins().$index(0, this.name);
  35084. }
  35085. };
  35086. Q._EnvironmentModule0.prototype = {
  35087. get$url: function() {
  35088. return this.css.get$span().file.url;
  35089. },
  35090. setVariable$3: function($name, value, nodeWithSpan) {
  35091. var t1, t2,
  35092. module = this._async_environment$_modulesByVariable.$index(0, $name);
  35093. if (module != null) {
  35094. module.setVariable$3($name, value, nodeWithSpan);
  35095. return;
  35096. }
  35097. t1 = this._async_environment$_environment;
  35098. t2 = t1._async_environment$_variables;
  35099. if (!C.JSArray_methods.get$first(t2).containsKey$1($name))
  35100. throw H.wrapException(E.SassScriptException$("Undefined variable."));
  35101. J.$indexSet$ax(C.JSArray_methods.get$first(t2), $name, value);
  35102. t1 = t1._async_environment$_variableNodes;
  35103. if (t1 != null)
  35104. J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, nodeWithSpan);
  35105. return;
  35106. },
  35107. variableIdentity$1: function($name) {
  35108. var module = this._async_environment$_modulesByVariable.$index(0, $name);
  35109. return module == null ? this : module.variableIdentity$1($name);
  35110. },
  35111. cloneCss$0: function() {
  35112. var newCssAndExtender, _this = this,
  35113. t1 = _this.css;
  35114. if (J.get$isEmpty$asx(t1.get$children()))
  35115. return _this;
  35116. newCssAndExtender = V.cloneCssStylesheet(t1, _this.extender);
  35117. return Q._EnvironmentModule$_0(_this._async_environment$_environment, newCssAndExtender.item1, newCssAndExtender.item2, _this._async_environment$_modulesByVariable, _this.variables, _this.variableNodes, _this.functions, _this.mixins, _this.transitivelyContainsCss, _this.transitivelyContainsExtensions);
  35118. },
  35119. toString$0: function(_) {
  35120. var t1 = this.css;
  35121. if (t1.get$span().file.url == null)
  35122. t1 = "<unknown url>";
  35123. else {
  35124. t1 = t1.get$span().file;
  35125. t1 = $.$get$context().prettyUri$1(t1.url);
  35126. }
  35127. return t1;
  35128. },
  35129. $isModule: 1,
  35130. get$upstream: function() {
  35131. return this.upstream;
  35132. },
  35133. get$variables: function() {
  35134. return this.variables;
  35135. },
  35136. get$variableNodes: function() {
  35137. return this.variableNodes;
  35138. },
  35139. get$functions: function(receiver) {
  35140. return this.functions;
  35141. },
  35142. get$mixins: function() {
  35143. return this.mixins;
  35144. },
  35145. get$extender: function() {
  35146. return this.extender;
  35147. },
  35148. get$css: function(receiver) {
  35149. return this.css;
  35150. },
  35151. get$transitivelyContainsCss: function() {
  35152. return this.transitivelyContainsCss;
  35153. },
  35154. get$transitivelyContainsExtensions: function() {
  35155. return this.transitivelyContainsExtensions;
  35156. }
  35157. };
  35158. Q._EnvironmentModule__EnvironmentModule_closure5.prototype = {
  35159. call$1: function(module) {
  35160. return module.get$variables();
  35161. }
  35162. };
  35163. Q._EnvironmentModule__EnvironmentModule_closure6.prototype = {
  35164. call$1: function(module) {
  35165. return module.get$variableNodes();
  35166. }
  35167. };
  35168. Q._EnvironmentModule__EnvironmentModule_closure7.prototype = {
  35169. call$1: function(module) {
  35170. return module.get$functions(module);
  35171. }
  35172. };
  35173. Q._EnvironmentModule__EnvironmentModule_closure8.prototype = {
  35174. call$1: function(module) {
  35175. return module.get$mixins();
  35176. }
  35177. };
  35178. Q._EnvironmentModule__EnvironmentModule_closure9.prototype = {
  35179. call$1: function(module) {
  35180. return module.get$transitivelyContainsCss();
  35181. }
  35182. };
  35183. Q._EnvironmentModule__EnvironmentModule_closure10.prototype = {
  35184. call$1: function(module) {
  35185. return module.get$transitivelyContainsExtensions();
  35186. }
  35187. };
  35188. O.AsyncImportCache.prototype = {
  35189. canonicalize$4$baseImporter$baseUrl$forImport: function(url, baseImporter, baseUrl, forImport) {
  35190. return this.canonicalize$body$AsyncImportCache(url, baseImporter, baseUrl, forImport);
  35191. },
  35192. canonicalize$body$AsyncImportCache: function(url, baseImporter, baseUrl, forImport) {
  35193. var $async$goto = 0,
  35194. $async$completer = P._makeAsyncAwaitCompleter(type$.Tuple3_AsyncImporter_Uri_Uri_2),
  35195. $async$returnValue, $async$self = this, resolvedUrl, canonicalUrl, t1;
  35196. var $async$canonicalize$4$baseImporter$baseUrl$forImport = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  35197. if ($async$errorCode === 1)
  35198. return P._asyncRethrow($async$result, $async$completer);
  35199. while (true)
  35200. switch ($async$goto) {
  35201. case 0:
  35202. // Function start
  35203. $async$goto = baseImporter != null ? 3 : 4;
  35204. break;
  35205. case 3:
  35206. // then
  35207. resolvedUrl = baseUrl != null ? baseUrl.resolveUri$1(url) : url;
  35208. $async$goto = 5;
  35209. return P._asyncAwait($async$self._async_import_cache$_canonicalize$3(baseImporter, resolvedUrl, forImport), $async$canonicalize$4$baseImporter$baseUrl$forImport);
  35210. case 5:
  35211. // returning from await.
  35212. canonicalUrl = $async$result;
  35213. if (canonicalUrl != null) {
  35214. $async$returnValue = new S.Tuple3(baseImporter, canonicalUrl, resolvedUrl, type$.Tuple3_AsyncImporter_Uri_Uri_2);
  35215. // goto return
  35216. $async$goto = 1;
  35217. break;
  35218. }
  35219. case 4:
  35220. // join
  35221. t1 = type$.Tuple2_Uri_bool;
  35222. $async$goto = 6;
  35223. return P._asyncAwait(B.putIfAbsentAsync($async$self._async_import_cache$_canonicalizeCache, new S.Tuple2(url, forImport, t1), new O.AsyncImportCache_canonicalize_closure($async$self, url, forImport), t1, type$.Tuple3_AsyncImporter_Uri_Uri_2), $async$canonicalize$4$baseImporter$baseUrl$forImport);
  35224. case 6:
  35225. // returning from await.
  35226. $async$returnValue = $async$result;
  35227. // goto return
  35228. $async$goto = 1;
  35229. break;
  35230. case 1:
  35231. // return
  35232. return P._asyncReturn($async$returnValue, $async$completer);
  35233. }
  35234. });
  35235. return P._asyncStartSync($async$canonicalize$4$baseImporter$baseUrl$forImport, $async$completer);
  35236. },
  35237. _async_import_cache$_canonicalize$3: function(importer, url, forImport) {
  35238. return this._canonicalize$body$AsyncImportCache(importer, url, forImport);
  35239. },
  35240. _canonicalize$body$AsyncImportCache: function(importer, url, forImport) {
  35241. var $async$goto = 0,
  35242. $async$completer = P._makeAsyncAwaitCompleter(type$.Uri),
  35243. $async$returnValue, $async$self = this, result;
  35244. var $async$_async_import_cache$_canonicalize$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  35245. if ($async$errorCode === 1)
  35246. return P._asyncRethrow($async$result, $async$completer);
  35247. while (true)
  35248. switch ($async$goto) {
  35249. case 0:
  35250. // Function start
  35251. $async$goto = 3;
  35252. return P._asyncAwait(forImport ? B.inImportRule(new O.AsyncImportCache__canonicalize_closure(importer, url)) : importer.canonicalize$1(url), $async$_async_import_cache$_canonicalize$3);
  35253. case 3:
  35254. // returning from await.
  35255. result = $async$result;
  35256. if ((result == null ? null : result.get$scheme()) === "")
  35257. $async$self._async_import_cache$_logger.warn$2$deprecation("Importer " + H.S(importer) + " canonicalized " + H.S(url) + " to " + H.S(result) + ".\nRelative canonical URLs are deprecated and will eventually be disallowed.\n", true);
  35258. $async$returnValue = result;
  35259. // goto return
  35260. $async$goto = 1;
  35261. break;
  35262. case 1:
  35263. // return
  35264. return P._asyncReturn($async$returnValue, $async$completer);
  35265. }
  35266. });
  35267. return P._asyncStartSync($async$_async_import_cache$_canonicalize$3, $async$completer);
  35268. },
  35269. import$4$baseImporter$baseUrl$forImport: function(url, baseImporter, baseUrl, forImport) {
  35270. return this.import$body$AsyncImportCache(url, baseImporter, baseUrl, forImport);
  35271. },
  35272. import$body$AsyncImportCache: function(url, baseImporter, baseUrl, forImport) {
  35273. var $async$goto = 0,
  35274. $async$completer = P._makeAsyncAwaitCompleter(type$.Tuple2_AsyncImporter_Stylesheet),
  35275. $async$returnValue, $async$self = this, t1, tuple, $async$temp1, $async$temp2;
  35276. var $async$import$4$baseImporter$baseUrl$forImport = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  35277. if ($async$errorCode === 1)
  35278. return P._asyncRethrow($async$result, $async$completer);
  35279. while (true)
  35280. switch ($async$goto) {
  35281. case 0:
  35282. // Function start
  35283. $async$goto = 3;
  35284. return P._asyncAwait($async$self.canonicalize$4$baseImporter$baseUrl$forImport(url, baseImporter, baseUrl, forImport), $async$import$4$baseImporter$baseUrl$forImport);
  35285. case 3:
  35286. // returning from await.
  35287. tuple = $async$result;
  35288. if (tuple == null) {
  35289. $async$returnValue = null;
  35290. // goto return
  35291. $async$goto = 1;
  35292. break;
  35293. }
  35294. t1 = tuple.item1;
  35295. $async$temp1 = S;
  35296. $async$temp2 = t1;
  35297. $async$goto = 4;
  35298. return P._asyncAwait($async$self.importCanonical$3(t1, tuple.item2, tuple.item3), $async$import$4$baseImporter$baseUrl$forImport);
  35299. case 4:
  35300. // returning from await.
  35301. $async$returnValue = new $async$temp1.Tuple2($async$temp2, $async$result, type$.Tuple2_AsyncImporter_Stylesheet);
  35302. // goto return
  35303. $async$goto = 1;
  35304. break;
  35305. case 1:
  35306. // return
  35307. return P._asyncReturn($async$returnValue, $async$completer);
  35308. }
  35309. });
  35310. return P._asyncStartSync($async$import$4$baseImporter$baseUrl$forImport, $async$completer);
  35311. },
  35312. importCanonical$3: function(importer, canonicalUrl, originalUrl) {
  35313. return this.importCanonical$body$AsyncImportCache(importer, canonicalUrl, originalUrl);
  35314. },
  35315. importCanonical$body$AsyncImportCache: function(importer, canonicalUrl, originalUrl) {
  35316. var $async$goto = 0,
  35317. $async$completer = P._makeAsyncAwaitCompleter(type$.Stylesheet_2),
  35318. $async$returnValue, $async$self = this;
  35319. var $async$importCanonical$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  35320. if ($async$errorCode === 1)
  35321. return P._asyncRethrow($async$result, $async$completer);
  35322. while (true)
  35323. switch ($async$goto) {
  35324. case 0:
  35325. // Function start
  35326. $async$goto = 3;
  35327. return P._asyncAwait(B.putIfAbsentAsync($async$self._async_import_cache$_importCache, canonicalUrl, new O.AsyncImportCache_importCanonical_closure($async$self, importer, canonicalUrl, originalUrl), type$.Uri, type$.Stylesheet_2), $async$importCanonical$3);
  35328. case 3:
  35329. // returning from await.
  35330. $async$returnValue = $async$result;
  35331. // goto return
  35332. $async$goto = 1;
  35333. break;
  35334. case 1:
  35335. // return
  35336. return P._asyncReturn($async$returnValue, $async$completer);
  35337. }
  35338. });
  35339. return P._asyncStartSync($async$importCanonical$3, $async$completer);
  35340. },
  35341. humanize$1: function(canonicalUrl) {
  35342. var t1 = this._async_import_cache$_canonicalizeCache.get$values(),
  35343. t2 = H._instanceType(t1),
  35344. url = Y.minBy(new H.MappedIterable(new H.WhereIterable(t1, new O.AsyncImportCache_humanize_closure(canonicalUrl), t2._eval$1("WhereIterable<Iterable.E>")), new O.AsyncImportCache_humanize_closure0(), t2._eval$1("MappedIterable<Iterable.E,Uri>")), new O.AsyncImportCache_humanize_closure1(), type$.Uri, type$.dynamic);
  35345. if (url == null)
  35346. return canonicalUrl;
  35347. t1 = $.$get$url();
  35348. return url.resolve$1(X.ParsedPath_ParsedPath$parse(canonicalUrl.get$path(canonicalUrl), t1.style).get$basename());
  35349. }
  35350. };
  35351. O.AsyncImportCache_canonicalize_closure.prototype = {
  35352. call$0: function() {
  35353. var $async$goto = 0,
  35354. $async$completer = P._makeAsyncAwaitCompleter(type$.Tuple3_AsyncImporter_Uri_Uri_2),
  35355. $async$returnValue, $async$self = this, t1, t2, t3, t4, t5, _i, importer, canonicalUrl;
  35356. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  35357. if ($async$errorCode === 1)
  35358. return P._asyncRethrow($async$result, $async$completer);
  35359. while (true)
  35360. switch ($async$goto) {
  35361. case 0:
  35362. // Function start
  35363. t1 = $async$self.$this, t2 = t1._async_import_cache$_importers, t3 = t2.length, t4 = $async$self.url, t5 = $async$self.forImport, _i = 0;
  35364. case 3:
  35365. // for condition
  35366. if (!(_i < t2.length)) {
  35367. // goto after for
  35368. $async$goto = 5;
  35369. break;
  35370. }
  35371. importer = t2[_i];
  35372. $async$goto = 6;
  35373. return P._asyncAwait(t1._async_import_cache$_canonicalize$3(importer, t4, t5), $async$call$0);
  35374. case 6:
  35375. // returning from await.
  35376. canonicalUrl = $async$result;
  35377. if (canonicalUrl != null) {
  35378. $async$returnValue = new S.Tuple3(importer, canonicalUrl, t4, type$.Tuple3_AsyncImporter_Uri_Uri_2);
  35379. // goto return
  35380. $async$goto = 1;
  35381. break;
  35382. }
  35383. case 4:
  35384. // for update
  35385. t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i;
  35386. // goto for condition
  35387. $async$goto = 3;
  35388. break;
  35389. case 5:
  35390. // after for
  35391. $async$returnValue = null;
  35392. // goto return
  35393. $async$goto = 1;
  35394. break;
  35395. case 1:
  35396. // return
  35397. return P._asyncReturn($async$returnValue, $async$completer);
  35398. }
  35399. });
  35400. return P._asyncStartSync($async$call$0, $async$completer);
  35401. },
  35402. $signature: 132
  35403. };
  35404. O.AsyncImportCache__canonicalize_closure.prototype = {
  35405. call$0: function() {
  35406. return this.importer.canonicalize$1(this.url);
  35407. },
  35408. $signature: 76
  35409. };
  35410. O.AsyncImportCache_importCanonical_closure.prototype = {
  35411. call$0: function() {
  35412. var $async$goto = 0,
  35413. $async$completer = P._makeAsyncAwaitCompleter(type$.Stylesheet_2),
  35414. $async$returnValue, $async$self = this, t2, t3, t4, t5, t1, result;
  35415. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  35416. if ($async$errorCode === 1)
  35417. return P._asyncRethrow($async$result, $async$completer);
  35418. while (true)
  35419. switch ($async$goto) {
  35420. case 0:
  35421. // Function start
  35422. t1 = $async$self.canonicalUrl;
  35423. $async$goto = 3;
  35424. return P._asyncAwait($async$self.importer.load$1(t1), $async$call$0);
  35425. case 3:
  35426. // returning from await.
  35427. result = $async$result;
  35428. if (result == null) {
  35429. $async$returnValue = null;
  35430. // goto return
  35431. $async$goto = 1;
  35432. break;
  35433. }
  35434. t2 = $async$self.$this;
  35435. t2._async_import_cache$_resultsCache.$indexSet(0, t1, result);
  35436. t3 = result.contents;
  35437. t4 = result.syntax;
  35438. t5 = $async$self.originalUrl;
  35439. t1 = t5 == null ? t1 : t5.resolveUri$1(t1);
  35440. $async$returnValue = V.Stylesheet_Stylesheet$parse(t3, t4, t2._async_import_cache$_logger, t1);
  35441. // goto return
  35442. $async$goto = 1;
  35443. break;
  35444. case 1:
  35445. // return
  35446. return P._asyncReturn($async$returnValue, $async$completer);
  35447. }
  35448. });
  35449. return P._asyncStartSync($async$call$0, $async$completer);
  35450. },
  35451. $signature: 128
  35452. };
  35453. O.AsyncImportCache_humanize_closure.prototype = {
  35454. call$1: function(tuple) {
  35455. var t1 = tuple == null ? null : tuple.item2;
  35456. return J.$eq$(t1, this.canonicalUrl);
  35457. }
  35458. };
  35459. O.AsyncImportCache_humanize_closure0.prototype = {
  35460. call$1: function(tuple) {
  35461. return tuple.item3;
  35462. }
  35463. };
  35464. O.AsyncImportCache_humanize_closure1.prototype = {
  35465. call$1: function(url) {
  35466. return J.get$length$asx(J.get$path$x(url));
  35467. },
  35468. $signature: 28
  35469. };
  35470. D.Callable.prototype = {};
  35471. B.AsyncCallable.prototype = {};
  35472. S.AsyncBuiltInCallable.prototype = {
  35473. callbackFor$2: function(positional, names) {
  35474. return new S.Tuple2(this._async_built_in$_arguments, this._async_built_in$_callback, type$.Tuple2_of_ArgumentDeclaration_and_FutureOr_Value_Function_List_Value);
  35475. },
  35476. $isAsyncCallable: 1,
  35477. get$name: function() {
  35478. return this.name;
  35479. }
  35480. };
  35481. S.AsyncBuiltInCallable$mixin_closure.prototype = {
  35482. call$1: function($arguments) {
  35483. return this.$call$body$AsyncBuiltInCallable$mixin_closure($arguments);
  35484. },
  35485. $call$body$AsyncBuiltInCallable$mixin_closure: function($arguments) {
  35486. var $async$goto = 0,
  35487. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  35488. $async$returnValue, $async$self = this;
  35489. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  35490. if ($async$errorCode === 1)
  35491. return P._asyncRethrow($async$result, $async$completer);
  35492. while (true)
  35493. switch ($async$goto) {
  35494. case 0:
  35495. // Function start
  35496. $async$goto = 3;
  35497. return P._asyncAwait($async$self.callback.call$1($arguments), $async$call$1);
  35498. case 3:
  35499. // returning from await.
  35500. $async$returnValue = null;
  35501. // goto return
  35502. $async$goto = 1;
  35503. break;
  35504. case 1:
  35505. // return
  35506. return P._asyncReturn($async$returnValue, $async$completer);
  35507. }
  35508. });
  35509. return P._asyncStartSync($async$call$1, $async$completer);
  35510. }
  35511. };
  35512. Q.BuiltInCallable.prototype = {
  35513. callbackFor$2: function(positional, names) {
  35514. var t1, t2, fuzzyMatch, minMismatchDistance, _i, overload, t3, mismatchDistance, t4;
  35515. for (t1 = this._overloads, t2 = t1.length, fuzzyMatch = null, minMismatchDistance = null, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  35516. overload = t1[_i];
  35517. t3 = overload.item1;
  35518. if (t3.matches$2(positional, names))
  35519. return overload;
  35520. mismatchDistance = t3.$arguments.length - positional;
  35521. if (minMismatchDistance != null) {
  35522. t3 = Math.abs(mismatchDistance);
  35523. t4 = Math.abs(minMismatchDistance);
  35524. if (t3 > t4)
  35525. continue;
  35526. if (t3 === t4 && mismatchDistance < 0)
  35527. continue;
  35528. }
  35529. minMismatchDistance = mismatchDistance;
  35530. fuzzyMatch = overload;
  35531. }
  35532. return fuzzyMatch;
  35533. },
  35534. withName$1: function($name) {
  35535. return new Q.BuiltInCallable($name, this._overloads);
  35536. },
  35537. $isCallable: 1,
  35538. $isAsyncCallable: 1,
  35539. $isAsyncBuiltInCallable: 1,
  35540. get$name: function() {
  35541. return this.name;
  35542. }
  35543. };
  35544. Q.BuiltInCallable$mixin_closure.prototype = {
  35545. call$1: function($arguments) {
  35546. this.callback.call$1($arguments);
  35547. return null;
  35548. },
  35549. $signature: 59
  35550. };
  35551. L.PlainCssCallable.prototype = {
  35552. $eq: function(_, other) {
  35553. if (other == null)
  35554. return false;
  35555. return other instanceof L.PlainCssCallable && this.name == other.name;
  35556. },
  35557. get$hashCode: function(_) {
  35558. return J.get$hashCode$(this.name);
  35559. },
  35560. $isCallable: 1,
  35561. $isAsyncCallable: 1,
  35562. get$name: function() {
  35563. return this.name;
  35564. }
  35565. };
  35566. E.UserDefinedCallable.prototype = {
  35567. get$name: function() {
  35568. return this.declaration.name;
  35569. },
  35570. $isCallable: 1,
  35571. $isAsyncCallable: 1
  35572. };
  35573. X.closure70.prototype = {
  35574. call$2: function(_, color) {
  35575. return color;
  35576. }
  35577. };
  35578. X.closure71.prototype = {
  35579. call$2: function($name, _) {
  35580. return $name;
  35581. }
  35582. };
  35583. U._compileStylesheet_closure.prototype = {
  35584. call$1: function(url) {
  35585. var t1, t2, _null = null;
  35586. if (url === "")
  35587. t1 = J.toString$0$(P.Uri_Uri$dataFromString(P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(this.stylesheet.span.file._decodedChars, 0, _null), 0, _null), C.C_Utf8Codec, _null));
  35588. else {
  35589. t1 = P.Uri_parse(url);
  35590. t2 = this.importCache._resultsCache.$index(0, t1);
  35591. t2 = t2 == null ? _null : t2.get$sourceMapUrl();
  35592. t1 = J.toString$0$(t2 == null ? t1 : t2);
  35593. }
  35594. return t1;
  35595. }
  35596. };
  35597. A.Configuration.prototype = {
  35598. throughForward$1: function($forward) {
  35599. var t1, t2,
  35600. newValues = this._values;
  35601. if (newValues.get$isEmpty(newValues))
  35602. return C.Configuration_Map_empty_null_true;
  35603. t1 = $forward.prefix;
  35604. if (t1 != null)
  35605. newValues = new R.UnprefixedMapView(newValues, t1, type$.UnprefixedMapView_ConfiguredValue);
  35606. t1 = $forward.shownVariables;
  35607. if (t1 != null)
  35608. newValues = K.LimitedMapView$safelist(newValues, t1, type$.String, type$.ConfiguredValue);
  35609. else {
  35610. t1 = $forward.hiddenVariables;
  35611. if (t1 == null)
  35612. t2 = null;
  35613. else {
  35614. t2 = t1._base;
  35615. t2 = t2.get$isNotEmpty(t2);
  35616. }
  35617. if (t2 === true)
  35618. newValues = K.LimitedMapView$blocklist(newValues, t1, type$.String, type$.ConfiguredValue);
  35619. }
  35620. return this.isImplicit ? new A.Configuration(newValues, null, true) : new A.Configuration(newValues, this.nodeWithSpan, false);
  35621. }
  35622. };
  35623. Z.ConfiguredValue.prototype = {};
  35624. O.Environment.prototype = {
  35625. closure$0: function() {
  35626. var t5, t6, t7, _this = this,
  35627. t1 = _this._forwardedModules,
  35628. t2 = _this._forwardedModuleNodes,
  35629. t3 = _this._nestedForwardedModules,
  35630. t4 = _this._variables;
  35631. t4 = H.setRuntimeTypeInfo(t4.slice(0), H._arrayInstanceType(t4));
  35632. t5 = _this._variableNodes;
  35633. if (t5 == null)
  35634. t5 = null;
  35635. else
  35636. t5 = H.setRuntimeTypeInfo(t5.slice(0), H._arrayInstanceType(t5));
  35637. t6 = _this._functions;
  35638. t6 = H.setRuntimeTypeInfo(t6.slice(0), H._arrayInstanceType(t6));
  35639. t7 = _this._mixins;
  35640. t7 = H.setRuntimeTypeInfo(t7.slice(0), H._arrayInstanceType(t7));
  35641. return O.Environment$_(_this._environment$_modules, _this._namespaceNodes, _this._globalModules, _this._globalModuleNodes, t1, t2, t3, _this._allModules, t4, t5, t6, t7, _this._content);
  35642. },
  35643. addModule$3$namespace: function(module, nodeWithSpan, namespace) {
  35644. var t1, t2, _this = this;
  35645. if (namespace == null) {
  35646. _this._globalModules.add$1(0, module);
  35647. _this._globalModuleNodes.$indexSet(0, module, nodeWithSpan);
  35648. _this._allModules.push(module);
  35649. for (t1 = J.get$iterator$ax(C.JSArray_methods.get$first(_this._variables).get$keys()); t1.moveNext$0();) {
  35650. t2 = t1.get$current(t1);
  35651. if (module.get$variables().containsKey$1(t2))
  35652. throw H.wrapException(E.SassScriptException$('This module and the new module both define a variable named "$' + H.S(t2) + '".'));
  35653. }
  35654. } else {
  35655. t1 = _this._environment$_modules;
  35656. if (t1.containsKey$1(namespace))
  35657. throw H.wrapException(E.MultiSpanSassScriptException$("There's already a module with namespace \"" + namespace + '".', "new @use", P.LinkedHashMap_LinkedHashMap$_literal([_this._namespaceNodes.$index(0, namespace).get$span(), "original @use"], type$.FileSpan, type$.String)));
  35658. t1.$indexSet(0, namespace, module);
  35659. _this._namespaceNodes.$indexSet(0, namespace, nodeWithSpan);
  35660. _this._allModules.push(module);
  35661. }
  35662. },
  35663. forwardModule$2: function(module, rule) {
  35664. var view, t1, t2, _this = this;
  35665. if (_this._forwardedModules == null)
  35666. _this._forwardedModules = P.LinkedHashSet_LinkedHashSet$_empty(type$.Module_Callable);
  35667. if (_this._forwardedModuleNodes == null)
  35668. _this._forwardedModuleNodes = P.LinkedHashMap_LinkedHashMap$_empty(type$.Module_Callable, type$.AstNode);
  35669. view = R.ForwardedModuleView_ifNecessary(module, rule, type$.Callable);
  35670. for (t1 = _this._forwardedModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications); t1.moveNext$0();) {
  35671. t2 = t1._collection$_current;
  35672. _this._assertNoConflicts$6(view.get$variables(), t2.get$variables(), view, t2, "variable", rule);
  35673. _this._assertNoConflicts$6(view.get$functions(view), t2.get$functions(t2), view, t2, "function", rule);
  35674. _this._assertNoConflicts$6(view.get$mixins(), t2.get$mixins(), view, t2, "mixin", rule);
  35675. }
  35676. _this._allModules.push(module);
  35677. _this._forwardedModules.add$1(0, view);
  35678. _this._forwardedModuleNodes.$indexSet(0, view, rule);
  35679. },
  35680. _assertNoConflicts$6: function(newMembers, oldMembers, newModule, oldModule, type, newModuleNodeWithSpan) {
  35681. var larger, smaller, t1, t2, $name;
  35682. if (newMembers.get$length(newMembers) < oldMembers.get$length(oldMembers)) {
  35683. larger = oldMembers;
  35684. smaller = newMembers;
  35685. } else {
  35686. larger = newMembers;
  35687. smaller = oldMembers;
  35688. }
  35689. for (t1 = J.get$iterator$ax(smaller.get$keys()), t2 = type === "variable"; t1.moveNext$0();) {
  35690. $name = t1.get$current(t1);
  35691. if (!larger.containsKey$1($name))
  35692. continue;
  35693. if (t2 ? newModule.variableIdentity$1($name) === oldModule.variableIdentity$1($name) : J.$eq$(larger.$index(0, $name), smaller.$index(0, $name)))
  35694. continue;
  35695. if (t2)
  35696. $name = "$" + H.S($name);
  35697. throw H.wrapException(E.MultiSpanSassScriptException$("Two forwarded modules both define a " + type + " named " + H.S($name) + ".", "new @forward", P.LinkedHashMap_LinkedHashMap$_literal([this._forwardedModuleNodes.$index(0, oldModule).get$span(), "original @forward"], type$.FileSpan, type$.String)));
  35698. }
  35699. },
  35700. importForwards$1: function(module) {
  35701. var t2, t3, t4, t5, forwardedVariableNames, forwardedFunctionNames, forwardedMixinNames, t6, t7, _i, shadowed, t8, _this = this,
  35702. t1 = module._environment,
  35703. forwarded = t1._forwardedModules;
  35704. if (forwarded == null)
  35705. return;
  35706. if (_this._forwardedModules != null) {
  35707. t2 = P.LinkedHashSet_LinkedHashSet(type$.Module_Callable);
  35708. for (t3 = P._LinkedHashSetIterator$(forwarded, forwarded._collection$_modifications), t4 = _this._globalModules; t3.moveNext$0();) {
  35709. t5 = t3._collection$_current;
  35710. if (!_this._forwardedModules.contains$1(0, t5) || !t4.contains$1(0, t5))
  35711. t2.add$1(0, t5);
  35712. }
  35713. forwarded = t2;
  35714. }
  35715. if (_this._forwardedModules == null)
  35716. _this._forwardedModules = P.LinkedHashSet_LinkedHashSet$_empty(type$.Module_Callable);
  35717. if (_this._forwardedModuleNodes == null)
  35718. _this._forwardedModuleNodes = P.LinkedHashMap_LinkedHashMap$_empty(type$.Module_Callable, type$.AstNode);
  35719. t2 = H._instanceType(forwarded)._eval$1("ExpandIterable<1,String>");
  35720. t3 = t2._eval$1("Iterable.E");
  35721. forwardedVariableNames = P.LinkedHashSet_LinkedHashSet$from(new H.ExpandIterable(forwarded, new O.Environment_importForwards_closure(), t2), t3);
  35722. forwardedFunctionNames = P.LinkedHashSet_LinkedHashSet$from(new H.ExpandIterable(forwarded, new O.Environment_importForwards_closure0(), t2), t3);
  35723. forwardedMixinNames = P.LinkedHashSet_LinkedHashSet$from(new H.ExpandIterable(forwarded, new O.Environment_importForwards_closure1(), t2), t3);
  35724. t2 = _this._variables;
  35725. t3 = t2.length;
  35726. if (t3 === 1) {
  35727. for (t3 = _this._globalModules, t4 = t3.toList$0(0), t5 = t4.length, t6 = type$.Callable, t7 = _this._globalModuleNodes, _i = 0; _i < t4.length; t4.length === t5 || (0, H.throwConcurrentModificationError)(t4), ++_i) {
  35728. module = t4[_i];
  35729. shadowed = B.ShadowedModuleView_ifNecessary(module, forwardedFunctionNames, forwardedMixinNames, forwardedVariableNames, t6);
  35730. if (shadowed != null) {
  35731. t3.remove$1(0, module);
  35732. t8 = shadowed.variables;
  35733. if (t8.get$isEmpty(t8)) {
  35734. t8 = shadowed.functions;
  35735. if (t8.get$isEmpty(t8)) {
  35736. t8 = shadowed.mixins;
  35737. if (t8.get$isEmpty(t8)) {
  35738. t8 = shadowed._shadowed_view$_inner;
  35739. t8 = J.get$isEmpty$asx(t8.get$css(t8).get$children());
  35740. } else
  35741. t8 = false;
  35742. } else
  35743. t8 = false;
  35744. } else
  35745. t8 = false;
  35746. if (!t8) {
  35747. t3.add$1(0, shadowed);
  35748. t7.$indexSet(0, shadowed, t7.remove$1(0, module));
  35749. }
  35750. }
  35751. }
  35752. for (t4 = _this._forwardedModules.toList$0(0), t5 = t4.length, _i = 0; _i < t4.length; t4.length === t5 || (0, H.throwConcurrentModificationError)(t4), ++_i) {
  35753. module = t4[_i];
  35754. shadowed = B.ShadowedModuleView_ifNecessary(module, forwardedFunctionNames, forwardedMixinNames, forwardedVariableNames, t6);
  35755. if (shadowed != null) {
  35756. _this._forwardedModules.remove$1(0, module);
  35757. t8 = shadowed.variables;
  35758. if (t8.get$isEmpty(t8)) {
  35759. t8 = shadowed.functions;
  35760. if (t8.get$isEmpty(t8)) {
  35761. t8 = shadowed.mixins;
  35762. if (t8.get$isEmpty(t8)) {
  35763. t8 = shadowed._shadowed_view$_inner;
  35764. t8 = J.get$isEmpty$asx(t8.get$css(t8).get$children());
  35765. } else
  35766. t8 = false;
  35767. } else
  35768. t8 = false;
  35769. } else
  35770. t8 = false;
  35771. if (!t8) {
  35772. _this._forwardedModules.add$1(0, shadowed);
  35773. t8 = _this._forwardedModuleNodes;
  35774. t8.$indexSet(0, shadowed, t8.remove$1(0, module));
  35775. }
  35776. }
  35777. }
  35778. t3.addAll$1(0, forwarded);
  35779. t7.addAll$1(0, t1._forwardedModuleNodes);
  35780. _this._forwardedModules.addAll$1(0, forwarded);
  35781. _this._forwardedModuleNodes.addAll$1(0, t1._forwardedModuleNodes);
  35782. } else {
  35783. t1 = _this._nestedForwardedModules;
  35784. J.addAll$1$ax(C.JSArray_methods.get$last(t1 == null ? _this._nestedForwardedModules = P.List_List$generate(t3 - 1, new O.Environment_importForwards_closure2(), true, type$.List_Module_Callable) : t1), forwarded);
  35785. }
  35786. for (t1 = P._LinkedHashSetIterator$(forwardedVariableNames, forwardedVariableNames._collection$_modifications), t3 = _this._variableNodes, t4 = t3 != null, t5 = _this._variableIndices; t1.moveNext$0();) {
  35787. t6 = t1._collection$_current;
  35788. t5.remove$1(0, t6);
  35789. J.remove$1$ax(C.JSArray_methods.get$last(t2), t6);
  35790. if (t4)
  35791. J.remove$1$ax(C.JSArray_methods.get$last(t3), t6);
  35792. }
  35793. for (t1 = P._LinkedHashSetIterator$(forwardedFunctionNames, forwardedFunctionNames._collection$_modifications), t2 = _this._functionIndices, t3 = _this._functions; t1.moveNext$0();) {
  35794. t4 = t1._collection$_current;
  35795. t2.remove$1(0, t4);
  35796. J.remove$1$ax(C.JSArray_methods.get$last(t3), t4);
  35797. }
  35798. for (t1 = P._LinkedHashSetIterator$(forwardedMixinNames, forwardedMixinNames._collection$_modifications), t2 = _this._mixinIndices, t3 = _this._mixins; t1.moveNext$0();) {
  35799. t4 = t1._collection$_current;
  35800. t2.remove$1(0, t4);
  35801. J.remove$1$ax(C.JSArray_methods.get$last(t3), t4);
  35802. }
  35803. },
  35804. getVariable$2$namespace: function($name, namespace) {
  35805. var t1, index, _this = this;
  35806. if (namespace != null)
  35807. return _this._getModule$1(namespace).get$variables().$index(0, $name);
  35808. if (_this._lastVariableName === $name) {
  35809. t1 = J.$index$asx(_this._variables[_this._lastVariableIndex], $name);
  35810. return t1 == null ? _this._getVariableFromGlobalModule$1($name) : t1;
  35811. }
  35812. t1 = _this._variableIndices;
  35813. index = t1.$index(0, $name);
  35814. if (index != null) {
  35815. _this._lastVariableName = $name;
  35816. _this._lastVariableIndex = index;
  35817. t1 = J.$index$asx(_this._variables[index], $name);
  35818. return t1 == null ? _this._getVariableFromGlobalModule$1($name) : t1;
  35819. }
  35820. index = _this._variableIndex$1($name);
  35821. if (index == null)
  35822. return _this._getVariableFromGlobalModule$1($name);
  35823. _this._lastVariableName = $name;
  35824. _this._lastVariableIndex = index;
  35825. t1.$indexSet(0, $name, index);
  35826. t1 = J.$index$asx(_this._variables[index], $name);
  35827. return t1 == null ? _this._getVariableFromGlobalModule$1($name) : t1;
  35828. },
  35829. getVariable$1: function($name) {
  35830. return this.getVariable$2$namespace($name, null);
  35831. },
  35832. _getVariableFromGlobalModule$1: function($name) {
  35833. return this._fromOneModule$3($name, "variable", new O.Environment__getVariableFromGlobalModule_closure($name));
  35834. },
  35835. getVariableNode$2$namespace: function($name, namespace) {
  35836. var t1, index, _this = this;
  35837. if (namespace != null)
  35838. return _this._getModule$1(namespace).get$variableNodes().$index(0, $name);
  35839. if (_this._lastVariableName === $name) {
  35840. t1 = J.$index$asx(_this._variableNodes[_this._lastVariableIndex], $name);
  35841. return t1 == null ? _this._getVariableNodeFromGlobalModule$1($name) : t1;
  35842. }
  35843. t1 = _this._variableIndices;
  35844. index = t1.$index(0, $name);
  35845. if (index != null) {
  35846. _this._lastVariableName = $name;
  35847. _this._lastVariableIndex = index;
  35848. t1 = J.$index$asx(_this._variableNodes[index], $name);
  35849. return t1 == null ? _this._getVariableNodeFromGlobalModule$1($name) : t1;
  35850. }
  35851. index = _this._variableIndex$1($name);
  35852. if (index == null)
  35853. return _this._getVariableNodeFromGlobalModule$1($name);
  35854. _this._lastVariableName = $name;
  35855. _this._lastVariableIndex = index;
  35856. t1.$indexSet(0, $name, index);
  35857. t1 = J.$index$asx(_this._variableNodes[index], $name);
  35858. return t1 == null ? _this._getVariableNodeFromGlobalModule$1($name) : t1;
  35859. },
  35860. _getVariableNodeFromGlobalModule$1: function($name) {
  35861. var t1, value;
  35862. for (t1 = this._globalModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications); t1.moveNext$0();) {
  35863. value = t1._collection$_current.get$variableNodes().$index(0, $name);
  35864. if (value != null)
  35865. return value;
  35866. }
  35867. return null;
  35868. },
  35869. globalVariableExists$2$namespace: function($name, namespace) {
  35870. if (namespace != null)
  35871. return this._getModule$1(namespace).get$variables().containsKey$1($name);
  35872. if (C.JSArray_methods.get$first(this._variables).containsKey$1($name))
  35873. return true;
  35874. return this._getVariableFromGlobalModule$1($name) != null;
  35875. },
  35876. globalVariableExists$1: function($name) {
  35877. return this.globalVariableExists$2$namespace($name, null);
  35878. },
  35879. _variableIndex$1: function($name) {
  35880. var t1, i;
  35881. for (t1 = this._variables, i = t1.length - 1; i >= 0; --i)
  35882. if (t1[i].containsKey$1($name))
  35883. return i;
  35884. return null;
  35885. },
  35886. setVariable$5$global$namespace: function($name, value, nodeWithSpan, global, namespace) {
  35887. var t1, moduleWithName, t2, t3, index, _this = this;
  35888. if (namespace != null) {
  35889. _this._getModule$1(namespace).setVariable$3($name, value, nodeWithSpan);
  35890. return;
  35891. }
  35892. if (global || _this._variables.length === 1) {
  35893. _this._variableIndices.putIfAbsent$2($name, new O.Environment_setVariable_closure(_this, $name));
  35894. t1 = _this._variables;
  35895. if (!C.JSArray_methods.get$first(t1).containsKey$1($name)) {
  35896. moduleWithName = _this._fromOneModule$3($name, "variable", new O.Environment_setVariable_closure0($name));
  35897. if (moduleWithName != null) {
  35898. moduleWithName.setVariable$3($name, value, nodeWithSpan);
  35899. return;
  35900. }
  35901. }
  35902. J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, value);
  35903. t1 = _this._variableNodes;
  35904. if (t1 != null)
  35905. J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, nodeWithSpan);
  35906. return;
  35907. }
  35908. if (_this._nestedForwardedModules != null && !_this._variableIndices.containsKey$1($name) && _this._variableIndex$1($name) == null) {
  35909. t1 = _this._nestedForwardedModules;
  35910. t1.toString;
  35911. t1 = new H.ReversedListIterable(t1, H._arrayInstanceType(t1)._eval$1("ReversedListIterable<1>"));
  35912. t1 = new H.ListIterator(t1, t1.get$length(t1));
  35913. for (; t1.moveNext$0();)
  35914. for (t2 = J.get$reversed$ax(t1.__internal$_current), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  35915. t3 = t2.__internal$_current;
  35916. if (t3.get$variables().containsKey$1($name)) {
  35917. t3.setVariable$3($name, value, nodeWithSpan);
  35918. return;
  35919. }
  35920. }
  35921. }
  35922. index = _this._lastVariableName === $name ? _this._lastVariableIndex : _this._variableIndices.putIfAbsent$2($name, new O.Environment_setVariable_closure1(_this, $name));
  35923. if (!_this._inSemiGlobalScope && index === 0) {
  35924. index = _this._variables.length - 1;
  35925. _this._variableIndices.$indexSet(0, $name, index);
  35926. }
  35927. _this._lastVariableName = $name;
  35928. _this._lastVariableIndex = index;
  35929. J.$indexSet$ax(_this._variables[index], $name, value);
  35930. t1 = _this._variableNodes;
  35931. if (t1 != null)
  35932. J.$indexSet$ax(t1[index], $name, nodeWithSpan);
  35933. },
  35934. setVariable$4$global: function($name, value, nodeWithSpan, global) {
  35935. return this.setVariable$5$global$namespace($name, value, nodeWithSpan, global, null);
  35936. },
  35937. setLocalVariable$3: function($name, value, nodeWithSpan) {
  35938. var index, _this = this,
  35939. t1 = _this._variables,
  35940. t2 = t1.length;
  35941. _this._lastVariableName = $name;
  35942. index = _this._lastVariableIndex = t2 - 1;
  35943. _this._variableIndices.$indexSet(0, $name, index);
  35944. J.$indexSet$ax(t1[index], $name, value);
  35945. t1 = _this._variableNodes;
  35946. if (t1 != null)
  35947. J.$indexSet$ax(t1[index], $name, nodeWithSpan);
  35948. },
  35949. getFunction$2$namespace: function($name, namespace) {
  35950. var t1, index, _this = this;
  35951. if (namespace != null) {
  35952. t1 = _this._getModule$1(namespace);
  35953. return t1.get$functions(t1).$index(0, $name);
  35954. }
  35955. t1 = _this._functionIndices;
  35956. index = t1.$index(0, $name);
  35957. if (index != null) {
  35958. t1 = J.$index$asx(_this._functions[index], $name);
  35959. return t1 == null ? _this._getFunctionFromGlobalModule$1($name) : t1;
  35960. }
  35961. index = _this._functionIndex$1($name);
  35962. if (index == null)
  35963. return _this._getFunctionFromGlobalModule$1($name);
  35964. t1.$indexSet(0, $name, index);
  35965. t1 = J.$index$asx(_this._functions[index], $name);
  35966. return t1 == null ? _this._getFunctionFromGlobalModule$1($name) : t1;
  35967. },
  35968. _getFunctionFromGlobalModule$1: function($name) {
  35969. return this._fromOneModule$3($name, "function", new O.Environment__getFunctionFromGlobalModule_closure($name));
  35970. },
  35971. _functionIndex$1: function($name) {
  35972. var t1, i;
  35973. for (t1 = this._functions, i = t1.length - 1; i >= 0; --i)
  35974. if (t1[i].containsKey$1($name))
  35975. return i;
  35976. return null;
  35977. },
  35978. getMixin$2$namespace: function($name, namespace) {
  35979. var t1, index, _this = this;
  35980. if (namespace != null)
  35981. return _this._getModule$1(namespace).get$mixins().$index(0, $name);
  35982. t1 = _this._mixinIndices;
  35983. index = t1.$index(0, $name);
  35984. if (index != null) {
  35985. t1 = J.$index$asx(_this._mixins[index], $name);
  35986. return t1 == null ? _this._getMixinFromGlobalModule$1($name) : t1;
  35987. }
  35988. index = _this._mixinIndex$1($name);
  35989. if (index == null)
  35990. return _this._getMixinFromGlobalModule$1($name);
  35991. t1.$indexSet(0, $name, index);
  35992. t1 = J.$index$asx(_this._mixins[index], $name);
  35993. return t1 == null ? _this._getMixinFromGlobalModule$1($name) : t1;
  35994. },
  35995. _getMixinFromGlobalModule$1: function($name) {
  35996. return this._fromOneModule$3($name, "mixin", new O.Environment__getMixinFromGlobalModule_closure($name));
  35997. },
  35998. _mixinIndex$1: function($name) {
  35999. var t1, i;
  36000. for (t1 = this._mixins, i = t1.length - 1; i >= 0; --i)
  36001. if (t1[i].containsKey$1($name))
  36002. return i;
  36003. return null;
  36004. },
  36005. scope$1$3$semiGlobal$when: function(callback, semiGlobal, when) {
  36006. var wasInSemiGlobalScope, wasInSemiGlobalScope0, $name, name0, name1, t1, t2, t3, t4, t5, _this = this;
  36007. if (!when) {
  36008. wasInSemiGlobalScope = _this._inSemiGlobalScope;
  36009. _this._inSemiGlobalScope = semiGlobal;
  36010. try {
  36011. t1 = callback.call$0();
  36012. return t1;
  36013. } finally {
  36014. _this._inSemiGlobalScope = wasInSemiGlobalScope;
  36015. }
  36016. }
  36017. semiGlobal = semiGlobal && _this._inSemiGlobalScope;
  36018. wasInSemiGlobalScope0 = _this._inSemiGlobalScope;
  36019. _this._inSemiGlobalScope = semiGlobal;
  36020. t1 = _this._variables;
  36021. t2 = type$.String;
  36022. C.JSArray_methods.add$1(t1, P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.Value));
  36023. t3 = _this._variableNodes;
  36024. if (t3 != null)
  36025. C.JSArray_methods.add$1(t3, P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.AstNode));
  36026. t3 = _this._functions;
  36027. t4 = type$.Callable;
  36028. C.JSArray_methods.add$1(t3, P.LinkedHashMap_LinkedHashMap$_empty(t2, t4));
  36029. t5 = _this._mixins;
  36030. C.JSArray_methods.add$1(t5, P.LinkedHashMap_LinkedHashMap$_empty(t2, t4));
  36031. t4 = _this._nestedForwardedModules;
  36032. if (t4 != null)
  36033. C.JSArray_methods.add$1(t4, H.setRuntimeTypeInfo([], type$.JSArray_Module_Callable));
  36034. try {
  36035. t2 = callback.call$0();
  36036. return t2;
  36037. } finally {
  36038. _this._inSemiGlobalScope = wasInSemiGlobalScope0;
  36039. _this._lastVariableIndex = _this._lastVariableName = null;
  36040. for (t1 = J.get$iterator$ax(C.JSArray_methods.removeLast$0(t1).get$keys()), t2 = _this._variableIndices; t1.moveNext$0();) {
  36041. $name = t1.get$current(t1);
  36042. t2.remove$1(0, $name);
  36043. }
  36044. for (t1 = J.get$iterator$ax(C.JSArray_methods.removeLast$0(t3).get$keys()), t2 = _this._functionIndices; t1.moveNext$0();) {
  36045. name0 = t1.get$current(t1);
  36046. t2.remove$1(0, name0);
  36047. }
  36048. for (t1 = J.get$iterator$ax(C.JSArray_methods.removeLast$0(t5).get$keys()), t2 = _this._mixinIndices; t1.moveNext$0();) {
  36049. name1 = t1.get$current(t1);
  36050. t2.remove$1(0, name1);
  36051. }
  36052. t1 = _this._nestedForwardedModules;
  36053. if (t1 != null)
  36054. C.JSArray_methods.removeLast$0(t1);
  36055. }
  36056. },
  36057. scope$1$1: function(callback, $T) {
  36058. return this.scope$1$3$semiGlobal$when(callback, false, true, $T);
  36059. },
  36060. scope$1$2$when: function(callback, when, $T) {
  36061. return this.scope$1$3$semiGlobal$when(callback, false, when, $T);
  36062. },
  36063. scope$1$2$semiGlobal: function(callback, semiGlobal, $T) {
  36064. return this.scope$1$3$semiGlobal$when(callback, semiGlobal, true, $T);
  36065. },
  36066. toImplicitConfiguration$0: function() {
  36067. var t2, t3, t4, t5, i, values, nodes, t6, t7,
  36068. t1 = type$.String,
  36069. configuration = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.ConfiguredValue);
  36070. for (t2 = this._variables, t3 = this._variableNodes, t4 = t3 == null, t5 = type$.AstNode, i = 0; i < t2.length; ++i) {
  36071. values = t2[i];
  36072. nodes = t4 ? P.LinkedHashMap_LinkedHashMap$_empty(t1, t5) : t3[i];
  36073. for (t6 = J.get$iterator$ax(values.get$keys()); t6.moveNext$0();) {
  36074. t7 = t6.get$current(t6);
  36075. configuration.$indexSet(0, t7, new Z.ConfiguredValue(values.$index(0, t7), null, nodes.$index(0, t7)));
  36076. }
  36077. }
  36078. return new A.Configuration(configuration, null, true);
  36079. },
  36080. _getModule$1: function(namespace) {
  36081. var module = this._environment$_modules.$index(0, namespace);
  36082. if (module != null)
  36083. return module;
  36084. throw H.wrapException(E.SassScriptException$('There is no module with the namespace "' + namespace + '".'));
  36085. },
  36086. _fromOneModule$1$3: function($name, type, callback) {
  36087. var t2, value, identity, t3, valueInModule, identityFromModule, t4, t5,
  36088. t1 = this._nestedForwardedModules;
  36089. if (t1 != null)
  36090. for (t1 = new H.ReversedListIterable(t1, H._arrayInstanceType(t1)._eval$1("ReversedListIterable<1>")), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();)
  36091. for (t2 = J.get$reversed$ax(t1.__internal$_current), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  36092. value = callback.call$1(t2.__internal$_current);
  36093. if (value != null)
  36094. return value;
  36095. }
  36096. for (t1 = this._globalModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications), t2 = type$.Callable, value = null, identity = null; t1.moveNext$0();) {
  36097. t3 = t1._collection$_current;
  36098. valueInModule = callback.call$1(t3);
  36099. if (valueInModule == null)
  36100. continue;
  36101. identityFromModule = t2._is(valueInModule) ? valueInModule : t3.variableIdentity$1($name);
  36102. if (identityFromModule.$eq(0, identity))
  36103. continue;
  36104. if (value != null) {
  36105. t1 = "This " + type + " is available from multiple global modules.";
  36106. t2 = type + " use";
  36107. t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  36108. for (t4 = this._globalModuleNodes.get$entries(), t4 = t4.get$iterator(t4); t4.moveNext$0();) {
  36109. t5 = t4.get$current(t4);
  36110. if (callback.call$1(t5.key) != null)
  36111. t3.$indexSet(0, t5.value.get$span(), "includes " + type);
  36112. }
  36113. throw H.wrapException(E.MultiSpanSassScriptException$(t1, t2, t3));
  36114. }
  36115. identity = identityFromModule;
  36116. value = valueInModule;
  36117. }
  36118. return value;
  36119. },
  36120. _fromOneModule$3: function($name, type, callback) {
  36121. return this._fromOneModule$1$3($name, type, callback, type$.dynamic);
  36122. }
  36123. };
  36124. O.Environment_importForwards_closure.prototype = {
  36125. call$1: function(module) {
  36126. return module.get$variables().get$keys();
  36127. }
  36128. };
  36129. O.Environment_importForwards_closure0.prototype = {
  36130. call$1: function(module) {
  36131. return module.get$functions(module).get$keys();
  36132. }
  36133. };
  36134. O.Environment_importForwards_closure1.prototype = {
  36135. call$1: function(module) {
  36136. return module.get$mixins().get$keys();
  36137. }
  36138. };
  36139. O.Environment_importForwards_closure2.prototype = {
  36140. call$1: function(_) {
  36141. return H.setRuntimeTypeInfo([], type$.JSArray_Module_Callable);
  36142. },
  36143. $signature: 125
  36144. };
  36145. O.Environment__getVariableFromGlobalModule_closure.prototype = {
  36146. call$1: function(module) {
  36147. return module.get$variables().$index(0, this.name);
  36148. }
  36149. };
  36150. O.Environment_setVariable_closure.prototype = {
  36151. call$0: function() {
  36152. var t1 = this.$this;
  36153. t1._lastVariableName = this.name;
  36154. return t1._lastVariableIndex = 0;
  36155. },
  36156. $signature: 8
  36157. };
  36158. O.Environment_setVariable_closure0.prototype = {
  36159. call$1: function(module) {
  36160. return module.get$variables().containsKey$1(this.name) ? module : null;
  36161. }
  36162. };
  36163. O.Environment_setVariable_closure1.prototype = {
  36164. call$0: function() {
  36165. var t1 = this.$this,
  36166. t2 = t1._variableIndex$1(this.name);
  36167. return t2 == null ? t1._variables.length - 1 : t2;
  36168. },
  36169. $signature: 8
  36170. };
  36171. O.Environment__getFunctionFromGlobalModule_closure.prototype = {
  36172. call$1: function(module) {
  36173. return module.get$functions(module).$index(0, this.name);
  36174. }
  36175. };
  36176. O.Environment__getMixinFromGlobalModule_closure.prototype = {
  36177. call$1: function(module) {
  36178. return module.get$mixins().$index(0, this.name);
  36179. }
  36180. };
  36181. O._EnvironmentModule.prototype = {
  36182. get$url: function() {
  36183. return this.css.get$span().file.url;
  36184. },
  36185. setVariable$3: function($name, value, nodeWithSpan) {
  36186. var t1, t2,
  36187. module = this._modulesByVariable.$index(0, $name);
  36188. if (module != null) {
  36189. module.setVariable$3($name, value, nodeWithSpan);
  36190. return;
  36191. }
  36192. t1 = this._environment;
  36193. t2 = t1._variables;
  36194. if (!C.JSArray_methods.get$first(t2).containsKey$1($name))
  36195. throw H.wrapException(E.SassScriptException$("Undefined variable."));
  36196. J.$indexSet$ax(C.JSArray_methods.get$first(t2), $name, value);
  36197. t1 = t1._variableNodes;
  36198. if (t1 != null)
  36199. J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, nodeWithSpan);
  36200. return;
  36201. },
  36202. variableIdentity$1: function($name) {
  36203. var module = this._modulesByVariable.$index(0, $name);
  36204. return module == null ? this : module.variableIdentity$1($name);
  36205. },
  36206. cloneCss$0: function() {
  36207. var newCssAndExtender, _this = this,
  36208. t1 = _this.css;
  36209. if (J.get$isEmpty$asx(t1.get$children()))
  36210. return _this;
  36211. newCssAndExtender = V.cloneCssStylesheet(t1, _this.extender);
  36212. return O._EnvironmentModule$_(_this._environment, newCssAndExtender.item1, newCssAndExtender.item2, _this._modulesByVariable, _this.variables, _this.variableNodes, _this.functions, _this.mixins, _this.transitivelyContainsCss, _this.transitivelyContainsExtensions);
  36213. },
  36214. toString$0: function(_) {
  36215. var t1 = this.css;
  36216. if (t1.get$span().file.url == null)
  36217. t1 = "<unknown url>";
  36218. else {
  36219. t1 = t1.get$span().file;
  36220. t1 = $.$get$context().prettyUri$1(t1.url);
  36221. }
  36222. return t1;
  36223. },
  36224. $isModule: 1,
  36225. get$upstream: function() {
  36226. return this.upstream;
  36227. },
  36228. get$variables: function() {
  36229. return this.variables;
  36230. },
  36231. get$variableNodes: function() {
  36232. return this.variableNodes;
  36233. },
  36234. get$functions: function(receiver) {
  36235. return this.functions;
  36236. },
  36237. get$mixins: function() {
  36238. return this.mixins;
  36239. },
  36240. get$extender: function() {
  36241. return this.extender;
  36242. },
  36243. get$css: function(receiver) {
  36244. return this.css;
  36245. },
  36246. get$transitivelyContainsCss: function() {
  36247. return this.transitivelyContainsCss;
  36248. },
  36249. get$transitivelyContainsExtensions: function() {
  36250. return this.transitivelyContainsExtensions;
  36251. }
  36252. };
  36253. O._EnvironmentModule__EnvironmentModule_closure.prototype = {
  36254. call$1: function(module) {
  36255. return module.get$variables();
  36256. }
  36257. };
  36258. O._EnvironmentModule__EnvironmentModule_closure0.prototype = {
  36259. call$1: function(module) {
  36260. return module.get$variableNodes();
  36261. }
  36262. };
  36263. O._EnvironmentModule__EnvironmentModule_closure1.prototype = {
  36264. call$1: function(module) {
  36265. return module.get$functions(module);
  36266. }
  36267. };
  36268. O._EnvironmentModule__EnvironmentModule_closure2.prototype = {
  36269. call$1: function(module) {
  36270. return module.get$mixins();
  36271. }
  36272. };
  36273. O._EnvironmentModule__EnvironmentModule_closure3.prototype = {
  36274. call$1: function(module) {
  36275. return module.get$transitivelyContainsCss();
  36276. }
  36277. };
  36278. O._EnvironmentModule__EnvironmentModule_closure4.prototype = {
  36279. call$1: function(module) {
  36280. return module.get$transitivelyContainsExtensions();
  36281. }
  36282. };
  36283. E.SassException.prototype = {
  36284. get$trace: function() {
  36285. return new Y.Trace(P.List_List$unmodifiable(H.setRuntimeTypeInfo([B.frameForSpan(G.SourceSpanException.prototype.get$span.call(this), "root stylesheet", null)], type$.JSArray_Frame), type$.Frame), new P._StringStackTrace(null));
  36286. },
  36287. get$span: function() {
  36288. return G.SourceSpanException.prototype.get$span.call(this);
  36289. },
  36290. toString$1$color: function(_, color) {
  36291. var t2, _i, frame, t3,
  36292. buffer = new P.StringBuffer(""),
  36293. t1 = "Error: " + H.S(this._span_exception$_message) + "\n";
  36294. buffer._contents = t1;
  36295. buffer._contents = t1 + G.SourceSpanException.prototype.get$span.call(this).highlight$1$color(color);
  36296. for (t1 = this.get$trace().toString$0(0).split("\n"), t2 = t1.length, _i = 0; _i < t2; ++_i) {
  36297. frame = t1[_i];
  36298. frame.toString;
  36299. if (J.get$length$asx(frame) === 0)
  36300. continue;
  36301. t3 = buffer._contents += "\n";
  36302. buffer._contents = t3 + (" " + H.S(frame));
  36303. }
  36304. t1 = buffer._contents;
  36305. return t1.charCodeAt(0) == 0 ? t1 : t1;
  36306. },
  36307. toString$0: function($receiver) {
  36308. return this.toString$1$color($receiver, null);
  36309. },
  36310. toCssString$0: function() {
  36311. var stringMessage, rune,
  36312. t1 = $._glyphs,
  36313. t2 = $._glyphs = C.C_AsciiGlyphSet,
  36314. t3 = this.toString$1$color(0, false),
  36315. commentMessage = H.stringReplaceAllUnchecked(t3, "*/", "*\u2215");
  36316. $._glyphs = t1 === C.C_AsciiGlyphSet ? t2 : C.C_UnicodeGlyphSet;
  36317. stringMessage = new P.StringBuffer("");
  36318. for (t1 = new P.RuneIterator(N.serializeValue0(new D.SassString(this.toString$1$color(0, false), true), true, true)); t1.moveNext$0();) {
  36319. rune = t1._currentCodePoint;
  36320. if (rune > 255) {
  36321. stringMessage._contents += H.Primitives_stringFromCharCode(92);
  36322. stringMessage._contents += C.JSInt_methods.toRadixString$1(rune, 16);
  36323. t2 = stringMessage._contents += H.Primitives_stringFromCharCode(32);
  36324. } else
  36325. t2 = stringMessage._contents += H.Primitives_stringFromCharCode(rune);
  36326. }
  36327. return "/* " + C.JSArray_methods.join$1(H.setRuntimeTypeInfo(commentMessage.split("\n"), type$.JSArray_String), "\n * ") + ' */\n\nbody::before {\n font-family: "Source Code Pro", "SF Mono", Monaco, Inconsolata, "Fira Mono",\n "Droid Sans Mono", monospace, monospace;\n white-space: pre;\n display: block;\n padding: 1em;\n margin-bottom: 1em;\n border-bottom: 2px solid black;\n content: ' + stringMessage.toString$0(0) + ";\n}";
  36328. }
  36329. };
  36330. E.MultiSpanSassException.prototype = {
  36331. toString$1$color: function(_, color) {
  36332. var t2, _i, frame, t3, _this = this,
  36333. useColor = color === true && true,
  36334. buffer = new P.StringBuffer(""),
  36335. t1 = "Error: " + H.S(_this._span_exception$_message) + "\n";
  36336. buffer._contents = t1;
  36337. buffer._contents = t1 + U.Highlighter$multiple(G.SourceSpanException.prototype.get$span.call(_this), _this.primaryLabel, _this.secondarySpans, useColor, null, null).highlight$0();
  36338. for (t1 = _this.get$trace().toString$0(0).split("\n"), t2 = t1.length, _i = 0; _i < t2; ++_i) {
  36339. frame = t1[_i];
  36340. frame.toString;
  36341. if (J.get$length$asx(frame) === 0)
  36342. continue;
  36343. t3 = buffer._contents += "\n";
  36344. buffer._contents = t3 + (" " + H.S(frame));
  36345. }
  36346. t1 = buffer._contents;
  36347. return t1.charCodeAt(0) == 0 ? t1 : t1;
  36348. },
  36349. toString$0: function($receiver) {
  36350. return this.toString$1$color($receiver, null);
  36351. }
  36352. };
  36353. E.SassRuntimeException.prototype = {
  36354. get$trace: function() {
  36355. return this.trace;
  36356. }
  36357. };
  36358. E.MultiSpanSassRuntimeException.prototype = {$isSassRuntimeException: 1,
  36359. get$trace: function() {
  36360. return this.trace;
  36361. }
  36362. };
  36363. E.SassFormatException.prototype = {
  36364. get$source: function() {
  36365. return P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(G.SourceSpanException.prototype.get$span.call(this).file._decodedChars, 0, null), 0, null);
  36366. },
  36367. $isFormatException: 1,
  36368. $isSourceSpanFormatException: 1
  36369. };
  36370. E.SassScriptException.prototype = {
  36371. toString$0: function(_) {
  36372. return this.message + "\n\nBUG: This should include a source span!";
  36373. },
  36374. get$message: function(receiver) {
  36375. return this.message;
  36376. }
  36377. };
  36378. E.MultiSpanSassScriptException.prototype = {};
  36379. D._writeSourceMap_closure.prototype = {
  36380. call$1: function(url) {
  36381. return J.toString$0$(this.options.sourceMapUrl$2(P.Uri_parse(url), this.destination));
  36382. }
  36383. };
  36384. B.ExecutableOptions.prototype = {
  36385. get$interactive: function() {
  36386. var t2, invalidOptions, _i, option,
  36387. t1 = this._interactive;
  36388. if (t1 != null)
  36389. return t1;
  36390. t1 = this._options;
  36391. t2 = H._asBoolNullable(t1.$index(0, "interactive"));
  36392. this._interactive = t2;
  36393. if (!t2)
  36394. return false;
  36395. invalidOptions = ["stdin", "indented", "style", "source-map", "source-map-urls", "embed-sources", "embed-source-map", "update", "watch"];
  36396. for (t2 = t1._parser.options._collection$_map, _i = 0; _i < 9; ++_i) {
  36397. option = invalidOptions[_i];
  36398. if (t2.$index(0, option) == null)
  36399. H.throwExpression(P.ArgumentError$('Could not find an option named "' + option + '".'));
  36400. if (t1._parsed.containsKey$1(option))
  36401. throw H.wrapException(B.UsageException$("--" + option + " isn't allowed with --interactive."));
  36402. }
  36403. return true;
  36404. },
  36405. get$color: function() {
  36406. var t1 = this._options;
  36407. if (t1.wasParsed$1("color"))
  36408. t1 = H._asBoolNullable(t1.$index(0, "color"));
  36409. else {
  36410. t1 = self.process.stdout.isTTY;
  36411. if (t1 == null)
  36412. t1 = false;
  36413. }
  36414. return t1;
  36415. },
  36416. get$emitErrorCss: function() {
  36417. var t1 = H._asBoolNullable(this._options.$index(0, "error-css"));
  36418. if (t1 == null) {
  36419. this._ensureSources$0();
  36420. t1 = this._sourcesToDestinations.get$values().any$1(0, new B.ExecutableOptions_emitErrorCss_closure());
  36421. }
  36422. return t1;
  36423. },
  36424. _ensureSources$0: function() {
  36425. var t1, stdin, t2, t3, $directories, t4, colonArgs, positionalArgs, t5, t6, t7, message, target, source, destination, seen, i, t8, _this = this, _null = null,
  36426. _s18_ = 'Duplicate source "';
  36427. if (_this._sourcesToDestinations != null)
  36428. return;
  36429. t1 = _this._options;
  36430. stdin = H._asBoolNullable(t1.$index(0, "stdin"));
  36431. t2 = t1.rest;
  36432. if (t2.get$length(t2) === 0 && !stdin)
  36433. B.ExecutableOptions__fail("Compile Sass to CSS.");
  36434. t3 = type$.String;
  36435. $directories = P.LinkedHashSet_LinkedHashSet$_empty(t3);
  36436. for (t4 = new H.ListIterator(t2, t2.get$length(t2)), colonArgs = false, positionalArgs = false; t4.moveNext$0();) {
  36437. t5 = t4.__internal$_current;
  36438. t6 = t5.length;
  36439. if (t6 === 0)
  36440. B.ExecutableOptions__fail('Invalid argument "".');
  36441. if (H.stringContainsUnchecked(t5, ":", 0)) {
  36442. if (t6 > 2) {
  36443. t7 = C.JSString_methods._codeUnitAt$1(t5, 0);
  36444. if (!(t7 >= 97 && t7 <= 122))
  36445. t7 = t7 >= 65 && t7 <= 90;
  36446. else
  36447. t7 = true;
  36448. t7 = t7 && C.JSString_methods._codeUnitAt$1(t5, 1) === 58;
  36449. } else
  36450. t7 = false;
  36451. if (t7) {
  36452. if (2 > t6)
  36453. H.throwExpression(P.RangeError$range(2, 0, t6, _null, _null));
  36454. t6 = H.stringContainsUnchecked(t5, ":", 2);
  36455. } else
  36456. t6 = true;
  36457. } else
  36458. t6 = false;
  36459. if (t6)
  36460. colonArgs = true;
  36461. else if (B.dirExists(t5))
  36462. $directories.add$1(0, t5);
  36463. else
  36464. positionalArgs = true;
  36465. }
  36466. if (positionalArgs || t2.get$length(t2) === 0) {
  36467. if (colonArgs)
  36468. B.ExecutableOptions__fail('Positional and ":" arguments may not both be used.');
  36469. else if (stdin) {
  36470. if (J.get$length$asx(t2._collection$_source) > 1)
  36471. B.ExecutableOptions__fail("Only one argument is allowed with --stdin.");
  36472. else if (H._asBoolNullable(t1.$index(0, "update")))
  36473. B.ExecutableOptions__fail("--update is not allowed with --stdin.");
  36474. else if (H._asBoolNullable(t1.$index(0, "watch")))
  36475. B.ExecutableOptions__fail("--watch is not allowed with --stdin.");
  36476. t1 = t2.get$length(t2) === 0 ? _null : t2.get$first(t2);
  36477. t2 = type$.dynamic;
  36478. _this._sourcesToDestinations = H.ConstantMap_ConstantMap$from(P.LinkedHashMap_LinkedHashMap$_literal([null, t1], t2, t2), t3, t3);
  36479. } else {
  36480. t4 = t2._collection$_source;
  36481. t5 = J.getInterceptor$asx(t4);
  36482. if (t5.get$length(t4) > 2)
  36483. B.ExecutableOptions__fail("Only two positional args may be passed.");
  36484. else if ($directories._collection$_length !== 0) {
  36485. message = 'Directory "' + H.S($directories.get$first($directories)) + '" may not be a positional arg.';
  36486. target = t2.get$last(t2);
  36487. B.ExecutableOptions__fail(J.$eq$($directories.get$first($directories), t2.get$first(t2)) && !B.fileExists(target) ? message + ('\nTo compile all CSS in "' + H.S($directories.get$first($directories)) + '" to "' + H.S(target) + '", use `sass ' + H.S($directories.get$first($directories)) + ":" + H.S(target) + "`.") : message);
  36488. } else {
  36489. source = J.$eq$(t2.get$first(t2), "-") ? _null : t2.get$first(t2);
  36490. destination = t5.get$length(t4) === 1 ? _null : t2.get$last(t2);
  36491. if (destination == null)
  36492. if (H._asBoolNullable(t1.$index(0, "update")))
  36493. B.ExecutableOptions__fail("--update is not allowed when printing to stdout.");
  36494. else if (H._asBoolNullable(t1.$index(0, "watch")))
  36495. B.ExecutableOptions__fail("--watch is not allowed when printing to stdout.");
  36496. t1 = P.LinkedHashMap_LinkedHashMap$_literal([source, destination], t3, t3);
  36497. t3 = K.PathMap__create(_null, t3);
  36498. t3.addAll$1(0, t1);
  36499. _this._sourcesToDestinations = new P.UnmodifiableMapView(new K.PathMap(t3, type$.PathMap_String), type$.UnmodifiableMapView_String_String);
  36500. }
  36501. }
  36502. _this._sourceDirectoriesToDestinations = C.Map_empty5;
  36503. return;
  36504. }
  36505. if (stdin)
  36506. B.ExecutableOptions__fail('--stdin may not be used with ":" arguments.');
  36507. seen = P.LinkedHashSet_LinkedHashSet$_empty(t3);
  36508. t1 = K.PathMap__create(_null, t3);
  36509. t4 = type$.PathMap_String;
  36510. t3 = K.PathMap__create(_null, t3);
  36511. for (t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  36512. t5 = t2.__internal$_current;
  36513. if ($directories.contains$1(0, t5)) {
  36514. if (!seen.add$1(0, t5))
  36515. B.ExecutableOptions__fail(_s18_ + H.S(t5) + '".');
  36516. t3.$indexSet(0, t5, t5);
  36517. t1.addAll$1(0, _this._listSourceDirectory$2(t5, t5));
  36518. continue;
  36519. }
  36520. for (t6 = t5.length, destination = _null, source = destination, i = 0; i < t6; ++i) {
  36521. if (i === 1) {
  36522. t7 = i - 1;
  36523. if (t6 > t7 + 2) {
  36524. t8 = C.JSString_methods.codeUnitAt$1(t5, t7);
  36525. if (!(t8 >= 97 && t8 <= 122))
  36526. t8 = t8 >= 65 && t8 <= 90;
  36527. else
  36528. t8 = true;
  36529. t7 = t8 && C.JSString_methods.codeUnitAt$1(t5, t7 + 1) === 58;
  36530. } else
  36531. t7 = false;
  36532. } else
  36533. t7 = false;
  36534. if (t7)
  36535. continue;
  36536. if (C.JSString_methods._codeUnitAt$1(t5, i) === 58)
  36537. if (source == null) {
  36538. source = C.JSString_methods.substring$2(t5, 0, i);
  36539. destination = C.JSString_methods.substring$1(t5, i + 1);
  36540. } else {
  36541. if (i === source.length + 2) {
  36542. t7 = i - 1;
  36543. if (t6 > t7 + 2) {
  36544. t8 = C.JSString_methods.codeUnitAt$1(t5, t7);
  36545. if (!(t8 >= 97 && t8 <= 122))
  36546. t8 = t8 >= 65 && t8 <= 90;
  36547. else
  36548. t8 = true;
  36549. t7 = t8 && C.JSString_methods.codeUnitAt$1(t5, t7 + 1) === 58;
  36550. } else
  36551. t7 = false;
  36552. t7 = !t7;
  36553. } else
  36554. t7 = true;
  36555. if (t7)
  36556. B.ExecutableOptions__fail('"' + t5 + '" may only contain one ":".');
  36557. }
  36558. }
  36559. if (!seen.add$1(0, source))
  36560. B.ExecutableOptions__fail(_s18_ + H.S(source) + '".');
  36561. if (source === "-")
  36562. t1.$indexSet(0, _null, destination);
  36563. else if (B.dirExists(source)) {
  36564. t3.$indexSet(0, source, destination);
  36565. t1.addAll$1(0, _this._listSourceDirectory$2(source, destination));
  36566. } else
  36567. t1.$indexSet(0, source, destination);
  36568. }
  36569. t2 = type$.UnmodifiableMapView_String_String;
  36570. _this._sourcesToDestinations = new P.UnmodifiableMapView(new K.PathMap(t1, t4), t2);
  36571. _this._sourceDirectoriesToDestinations = new P.UnmodifiableMapView(new K.PathMap(t3, t4), t2);
  36572. },
  36573. _listSourceDirectory$2: function(source, destination) {
  36574. var t2, t3, t4, t5, _null = null,
  36575. t1 = type$.String;
  36576. t1 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  36577. for (t2 = J.get$iterator$ax(B.listDir(source, true)), t3 = source == destination; t2.moveNext$0();) {
  36578. t4 = t2.get$current(t2);
  36579. if (this._isEntrypoint$1(t4))
  36580. t5 = !(t3 && X.ParsedPath_ParsedPath$parse(t4, $.$get$context().style)._splitExtension$1(1)[1] === ".css");
  36581. else
  36582. t5 = false;
  36583. if (t5) {
  36584. t5 = $.$get$context();
  36585. t1.$indexSet(0, t4, t5.join$8(0, destination, t5.withoutExtension$1(t5.relative$2$from(t4, source)) + ".css", _null, _null, _null, _null, _null, _null));
  36586. }
  36587. }
  36588. return t1;
  36589. },
  36590. _isEntrypoint$1: function(path) {
  36591. var extension,
  36592. t1 = $.$get$context().style;
  36593. if (J.startsWith$1$s(X.ParsedPath_ParsedPath$parse(path, t1).get$basename(), "_"))
  36594. return false;
  36595. extension = X.ParsedPath_ParsedPath$parse(path, t1)._splitExtension$1(1)[1];
  36596. return extension === ".scss" || extension === ".sass" || extension === ".css";
  36597. },
  36598. get$_writeToStdout: function() {
  36599. var t1, _this = this;
  36600. _this._ensureSources$0();
  36601. t1 = _this._sourcesToDestinations;
  36602. if (t1.get$length(t1) === 1) {
  36603. _this._ensureSources$0();
  36604. t1 = _this._sourcesToDestinations.get$values();
  36605. t1 = t1.get$single(t1) == null;
  36606. } else
  36607. t1 = false;
  36608. return t1;
  36609. },
  36610. get$emitSourceMap: function() {
  36611. var _this = this,
  36612. _s10_ = "source-map",
  36613. _s15_ = "source-map-urls",
  36614. _s13_ = "embed-sources",
  36615. _s16_ = "embed-source-map",
  36616. t1 = _this._options;
  36617. if (!H._asBoolNullable(t1.$index(0, _s10_)))
  36618. if (t1.wasParsed$1(_s15_))
  36619. B.ExecutableOptions__fail("--source-map-urls isn't allowed with --no-source-map.");
  36620. else if (t1.wasParsed$1(_s13_))
  36621. B.ExecutableOptions__fail("--embed-sources isn't allowed with --no-source-map.");
  36622. else if (t1.wasParsed$1(_s16_))
  36623. B.ExecutableOptions__fail("--embed-source-map isn't allowed with --no-source-map.");
  36624. if (!_this.get$_writeToStdout())
  36625. return H._asBoolNullable(t1.$index(0, _s10_));
  36626. if (J.$eq$(_this._ifParsed$1(_s15_), "relative"))
  36627. B.ExecutableOptions__fail("--source-map-urls=relative isn't allowed when printing to stdout.");
  36628. if (H._asBoolNullable(t1.$index(0, _s16_)))
  36629. return H._asBoolNullable(t1.$index(0, _s10_));
  36630. else if (J.$eq$(_this._ifParsed$1(_s10_), true))
  36631. B.ExecutableOptions__fail("When printing to stdout, --source-map requires --embed-source-map.");
  36632. else if (t1.wasParsed$1(_s15_))
  36633. B.ExecutableOptions__fail("When printing to stdout, --source-map-urls requires --embed-source-map.");
  36634. else if (H._asBoolNullable(t1.$index(0, _s13_)))
  36635. B.ExecutableOptions__fail("When printing to stdout, --embed-sources requires --embed-source-map.");
  36636. else
  36637. return false;
  36638. },
  36639. sourceMapUrl$2: function(url, destination) {
  36640. var t1, path;
  36641. if (url.get$scheme().length !== 0 && url.get$scheme() !== "file")
  36642. return url;
  36643. t1 = $.$get$context();
  36644. path = t1.style.pathFromUri$1(M._parseUri(url));
  36645. return t1.toUri$1(J.$eq$(this._options.$index(0, "source-map-urls"), "relative") && !this.get$_writeToStdout() ? t1.relative$2$from(path, t1.dirname$1(destination)) : D.absolute(path));
  36646. },
  36647. _ifParsed$1: function($name) {
  36648. var t1 = this._options;
  36649. return t1.wasParsed$1($name) ? t1.$index(0, $name) : null;
  36650. }
  36651. };
  36652. B.ExecutableOptions_closure.prototype = {
  36653. call$0: function() {
  36654. var t1 = type$.String,
  36655. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Option),
  36656. t3 = [],
  36657. parser = new N.ArgParser(t2, new P.UnmodifiableMapView(t2, type$.UnmodifiableMapView_String_Option), new P.UnmodifiableMapView(P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.ArgParser), type$.UnmodifiableMapView_String_ArgParser), t3, true, null);
  36658. parser.addOption$2$hide("precision", true);
  36659. parser.addFlag$2$hide("async", true);
  36660. t3.push(B.ExecutableOptions__separator("Input and Output"));
  36661. parser.addFlag$2$help("stdin", "Read the stylesheet from stdin.");
  36662. parser.addFlag$2$help("indented", "Use the indented syntax for input from stdin.");
  36663. parser.addMultiOption$5$abbr$help$splitCommas$valueHelp("load-path", "I", "A path to use when resolving imports.\nMay be passed multiple times.", false, "PATH");
  36664. t1 = type$.JSArray_String;
  36665. parser.addOption$6$abbr$allowed$defaultsTo$help$valueHelp("style", "s", H.setRuntimeTypeInfo(["expanded", "compressed"], t1), "expanded", "Output style.", "NAME");
  36666. parser.addFlag$3$defaultsTo$help("charset", true, "Emit a @charset or BOM for CSS with non-ASCII characters.");
  36667. parser.addFlag$3$defaultsTo$help("error-css", null, "When an error occurs, emit a stylesheet describing it.\nDefaults to true when compiling to a file.");
  36668. parser.addFlag$3$help$negatable("update", "Only compile out-of-date stylesheets.", false);
  36669. t3.push(B.ExecutableOptions__separator("Source Maps"));
  36670. parser.addFlag$3$defaultsTo$help("source-map", true, "Whether to generate source maps.");
  36671. parser.addOption$4$allowed$defaultsTo$help("source-map-urls", H.setRuntimeTypeInfo(["relative", "absolute"], t1), "relative", "How to link from source maps to source files.");
  36672. parser.addFlag$3$defaultsTo$help("embed-sources", false, "Embed source file contents in source maps.");
  36673. parser.addFlag$3$defaultsTo$help("embed-source-map", false, "Embed source map contents in CSS.");
  36674. t3.push(B.ExecutableOptions__separator("Other"));
  36675. parser.addFlag$3$help$negatable("watch", "Watch stylesheets and recompile when they change.", false);
  36676. parser.addFlag$2$help("poll", "Manually check for changes rather than using a native watcher.\nOnly valid with --watch.");
  36677. parser.addFlag$2$help("stop-on-error", "Don't compile more files once an error is encountered.");
  36678. parser.addFlag$4$abbr$help$negatable("interactive", "i", "Run an interactive SassScript shell.", false);
  36679. parser.addFlag$3$abbr$help("color", "c", "Whether to use terminal colors for messages.");
  36680. parser.addFlag$2$help("unicode", "Whether to use Unicode characters for messages.");
  36681. parser.addFlag$3$abbr$help("quiet", "q", "Don't print warnings.");
  36682. parser.addFlag$2$help("trace", "Print full Dart stack traces for exceptions.");
  36683. parser.addFlag$4$abbr$help$negatable("help", "h", "Print this usage information.", false);
  36684. parser.addFlag$3$help$negatable("version", "Print the version of Dart Sass.", false);
  36685. return parser;
  36686. },
  36687. $signature: 116
  36688. };
  36689. B.ExecutableOptions_emitErrorCss_closure.prototype = {
  36690. call$1: function(destination) {
  36691. return destination != null;
  36692. }
  36693. };
  36694. B.UsageException.prototype = {$isException: 1,
  36695. get$message: function(receiver) {
  36696. return this.message;
  36697. }
  36698. };
  36699. A.watch_closure.prototype = {
  36700. call$1: function(dir) {
  36701. for (; !B.dirExists(dir);)
  36702. dir = $.$get$context().dirname$1(dir);
  36703. return this.dirWatcher.watch$1(0, dir);
  36704. }
  36705. };
  36706. A._Watcher.prototype = {
  36707. compile$3$ifModified: function(source, destination, ifModified) {
  36708. return this.compile$body$_Watcher(source, destination, ifModified);
  36709. },
  36710. compile$2: function(source, destination) {
  36711. return this.compile$3$ifModified(source, destination, false);
  36712. },
  36713. compile$body$_Watcher: function(source, destination, ifModified) {
  36714. var $async$goto = 0,
  36715. $async$completer = P._makeAsyncAwaitCompleter(type$.bool),
  36716. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, error, stackTrace, error0, stackTrace0, exception, t1, $async$exception;
  36717. var $async$compile$3$ifModified = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  36718. if ($async$errorCode === 1) {
  36719. $async$currentError = $async$result;
  36720. $async$goto = $async$handler;
  36721. }
  36722. while (true)
  36723. switch ($async$goto) {
  36724. case 0:
  36725. // Function start
  36726. $async$handler = 4;
  36727. $async$goto = 7;
  36728. return P._asyncAwait(D.compileStylesheet($async$self._watch$_options, $async$self._graph, source, destination, ifModified), $async$compile$3$ifModified);
  36729. case 7:
  36730. // returning from await.
  36731. $async$returnValue = true;
  36732. // goto return
  36733. $async$goto = 1;
  36734. break;
  36735. $async$handler = 2;
  36736. // goto after finally
  36737. $async$goto = 6;
  36738. break;
  36739. case 4:
  36740. // catch
  36741. $async$handler = 3;
  36742. $async$exception = $async$currentError;
  36743. t1 = H.unwrapException($async$exception);
  36744. if (t1 instanceof E.SassException) {
  36745. error = t1;
  36746. stackTrace = H.getTraceFromException($async$exception);
  36747. t1 = $async$self._watch$_options;
  36748. if (!t1.get$emitErrorCss())
  36749. $async$self._delete$1(destination);
  36750. $async$self._printError$2(J.toString$1$color$(error, t1.get$color()), stackTrace);
  36751. self.process.exitCode = 65;
  36752. $async$returnValue = false;
  36753. // goto return
  36754. $async$goto = 1;
  36755. break;
  36756. } else if (t1 instanceof B.FileSystemException) {
  36757. error0 = t1;
  36758. stackTrace0 = H.getTraceFromException($async$exception);
  36759. t1 = error0.path;
  36760. $async$self._printError$2("Error reading " + H.S($.$get$context().relative$2$from(t1, null)) + ": " + error0.message + ".", stackTrace0);
  36761. self.process.exitCode = 66;
  36762. $async$returnValue = false;
  36763. // goto return
  36764. $async$goto = 1;
  36765. break;
  36766. } else
  36767. throw $async$exception;
  36768. // goto after finally
  36769. $async$goto = 6;
  36770. break;
  36771. case 3:
  36772. // uncaught
  36773. // goto rethrow
  36774. $async$goto = 2;
  36775. break;
  36776. case 6:
  36777. // after finally
  36778. case 1:
  36779. // return
  36780. return P._asyncReturn($async$returnValue, $async$completer);
  36781. case 2:
  36782. // rethrow
  36783. return P._asyncRethrow($async$currentError, $async$completer);
  36784. }
  36785. });
  36786. return P._asyncStartSync($async$compile$3$ifModified, $async$completer);
  36787. },
  36788. _delete$1: function(path) {
  36789. var buffer, t1, exception;
  36790. try {
  36791. B.deleteFile(path);
  36792. buffer = new P.StringBuffer("");
  36793. t1 = this._watch$_options;
  36794. if (t1.get$color())
  36795. buffer._contents += "\x1b[33m";
  36796. buffer._contents += "Deleted " + H.S(path) + ".";
  36797. if (t1.get$color())
  36798. buffer._contents += "\x1b[0m";
  36799. P.print(buffer);
  36800. } catch (exception) {
  36801. if (!(H.unwrapException(exception) instanceof B.FileSystemException))
  36802. throw exception;
  36803. }
  36804. },
  36805. _printError$2: function(message, stackTrace) {
  36806. var t2,
  36807. t1 = $.$get$stderr();
  36808. t1.writeln$1(message);
  36809. t2 = this._watch$_options._options;
  36810. if (H._asBoolNullable(t2.$index(0, "trace"))) {
  36811. t1.writeln$0();
  36812. t1.writeln$1(C.JSString_methods.trimRight$0(Y.Trace_Trace$from(stackTrace).get$terse().toString$0(0)));
  36813. }
  36814. if (!H._asBoolNullable(t2.$index(0, "stop-on-error")))
  36815. t1.writeln$0();
  36816. },
  36817. watch$1: function(_, watcher) {
  36818. return this.watch$body$_Watcher(_, watcher);
  36819. },
  36820. watch$body$_Watcher: function(_, watcher) {
  36821. var $async$goto = 0,
  36822. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  36823. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, $event, extension, success, success0, success1, t2, t1;
  36824. var $async$watch$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  36825. if ($async$errorCode === 1) {
  36826. $async$currentError = $async$result;
  36827. $async$goto = $async$handler;
  36828. }
  36829. while (true)
  36830. switch ($async$goto) {
  36831. case 0:
  36832. // Function start
  36833. t1 = watcher._group._controller;
  36834. t1.toString;
  36835. t1 = P._StreamIterator$($async$self._debounceEvents$1(new P._ControllerStream(t1, H._instanceType(t1)._eval$1("_ControllerStream<1>"))));
  36836. $async$handler = 3;
  36837. t2 = $async$self._watch$_options._options;
  36838. case 6:
  36839. // for condition
  36840. $async$goto = 8;
  36841. return P._asyncAwait(t1.moveNext$0(), $async$watch$1);
  36842. case 8:
  36843. // returning from await.
  36844. if (!$async$result) {
  36845. // goto after for
  36846. $async$goto = 7;
  36847. break;
  36848. }
  36849. $event = t1.get$current(t1);
  36850. extension = X.ParsedPath_ParsedPath$parse($event.path, $.$get$context().style)._splitExtension$1(1)[1];
  36851. if (!J.$eq$(extension, ".sass") && !J.$eq$(extension, ".scss") && !J.$eq$(extension, ".css")) {
  36852. // goto for condition
  36853. $async$goto = 6;
  36854. break;
  36855. }
  36856. case 9:
  36857. // switch
  36858. switch ($event.type) {
  36859. case C.ChangeType_modify:
  36860. // goto case
  36861. $async$goto = 11;
  36862. break;
  36863. case C.ChangeType_add:
  36864. // goto case
  36865. $async$goto = 12;
  36866. break;
  36867. case C.ChangeType_remove:
  36868. // goto case
  36869. $async$goto = 13;
  36870. break;
  36871. default:
  36872. // goto after switch
  36873. $async$goto = 10;
  36874. break;
  36875. }
  36876. break;
  36877. case 11:
  36878. // case
  36879. $async$goto = 14;
  36880. return P._asyncAwait($async$self._handleModify$1($event.path), $async$watch$1);
  36881. case 14:
  36882. // returning from await.
  36883. success = $async$result;
  36884. if (!success && H._asBoolNullable(t2.$index(0, "stop-on-error"))) {
  36885. $async$next = [1];
  36886. // goto finally
  36887. $async$goto = 4;
  36888. break;
  36889. }
  36890. // goto after switch
  36891. $async$goto = 10;
  36892. break;
  36893. case 12:
  36894. // case
  36895. $async$goto = 15;
  36896. return P._asyncAwait($async$self._handleAdd$1($event.path), $async$watch$1);
  36897. case 15:
  36898. // returning from await.
  36899. success0 = $async$result;
  36900. if (!success0 && H._asBoolNullable(t2.$index(0, "stop-on-error"))) {
  36901. $async$next = [1];
  36902. // goto finally
  36903. $async$goto = 4;
  36904. break;
  36905. }
  36906. // goto after switch
  36907. $async$goto = 10;
  36908. break;
  36909. case 13:
  36910. // case
  36911. $async$goto = 16;
  36912. return P._asyncAwait($async$self._handleRemove$1($event.path), $async$watch$1);
  36913. case 16:
  36914. // returning from await.
  36915. success1 = $async$result;
  36916. if (!success1 && H._asBoolNullable(t2.$index(0, "stop-on-error"))) {
  36917. $async$next = [1];
  36918. // goto finally
  36919. $async$goto = 4;
  36920. break;
  36921. }
  36922. // goto after switch
  36923. $async$goto = 10;
  36924. break;
  36925. case 10:
  36926. // after switch
  36927. // goto for condition
  36928. $async$goto = 6;
  36929. break;
  36930. case 7:
  36931. // after for
  36932. $async$next.push(5);
  36933. // goto finally
  36934. $async$goto = 4;
  36935. break;
  36936. case 3:
  36937. // uncaught
  36938. $async$next = [2];
  36939. case 4:
  36940. // finally
  36941. $async$handler = 2;
  36942. $async$goto = 17;
  36943. return P._asyncAwait(t1.cancel$0(), $async$watch$1);
  36944. case 17:
  36945. // returning from await.
  36946. // goto the next finally handler
  36947. $async$goto = $async$next.pop();
  36948. break;
  36949. case 5:
  36950. // after finally
  36951. case 1:
  36952. // return
  36953. return P._asyncReturn($async$returnValue, $async$completer);
  36954. case 2:
  36955. // rethrow
  36956. return P._asyncRethrow($async$currentError, $async$completer);
  36957. }
  36958. });
  36959. return P._asyncStartSync($async$watch$1, $async$completer);
  36960. },
  36961. _handleModify$1: function(path) {
  36962. return this._handleModify$body$_Watcher(path);
  36963. },
  36964. _handleModify$body$_Watcher: function(path) {
  36965. var $async$goto = 0,
  36966. $async$completer = P._makeAsyncAwaitCompleter(type$.bool),
  36967. $async$returnValue, $async$self = this, t2, node, t1, url;
  36968. var $async$_handleModify$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  36969. if ($async$errorCode === 1)
  36970. return P._asyncRethrow($async$result, $async$completer);
  36971. while (true)
  36972. switch ($async$goto) {
  36973. case 0:
  36974. // Function start
  36975. t1 = $.$get$context();
  36976. url = t1.toUri$1(t1.canonicalize$1(path));
  36977. t1 = $async$self._graph;
  36978. t2 = t1._nodes;
  36979. if (!t2.containsKey$1(url)) {
  36980. $async$returnValue = $async$self._handleAdd$1(path);
  36981. // goto return
  36982. $async$goto = 1;
  36983. break;
  36984. }
  36985. node = t2.$index(0, url);
  36986. t1.reload$1(url);
  36987. $async$goto = 3;
  36988. return P._asyncAwait($async$self._recompileDownstream$1(H.setRuntimeTypeInfo([node], type$.JSArray_StylesheetNode)), $async$_handleModify$1);
  36989. case 3:
  36990. // returning from await.
  36991. $async$returnValue = $async$result;
  36992. // goto return
  36993. $async$goto = 1;
  36994. break;
  36995. case 1:
  36996. // return
  36997. return P._asyncReturn($async$returnValue, $async$completer);
  36998. }
  36999. });
  37000. return P._asyncStartSync($async$_handleModify$1, $async$completer);
  37001. },
  37002. _handleAdd$1: function(path) {
  37003. return this._handleAdd$body$_Watcher(path);
  37004. },
  37005. _handleAdd$body$_Watcher: function(path) {
  37006. var $async$goto = 0,
  37007. $async$completer = P._makeAsyncAwaitCompleter(type$.bool),
  37008. $async$returnValue, $async$self = this, destination, success, t1, t2, $async$temp1;
  37009. var $async$_handleAdd$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  37010. if ($async$errorCode === 1)
  37011. return P._asyncRethrow($async$result, $async$completer);
  37012. while (true)
  37013. switch ($async$goto) {
  37014. case 0:
  37015. // Function start
  37016. destination = $async$self._destinationFor$1(path);
  37017. $async$temp1 = destination == null;
  37018. if ($async$temp1)
  37019. $async$result = $async$temp1;
  37020. else {
  37021. // goto then
  37022. $async$goto = 3;
  37023. break;
  37024. }
  37025. // goto join
  37026. $async$goto = 4;
  37027. break;
  37028. case 3:
  37029. // then
  37030. $async$goto = 5;
  37031. return P._asyncAwait($async$self.compile$2(path, destination), $async$_handleAdd$1);
  37032. case 5:
  37033. // returning from await.
  37034. case 4:
  37035. // join
  37036. success = $async$result;
  37037. t1 = D.absolute(".");
  37038. t2 = $.$get$context();
  37039. $async$goto = 6;
  37040. return P._asyncAwait($async$self._recompileDownstream$1($async$self._graph.addCanonical$3(new F.FilesystemImporter(t1), t2.toUri$1(t2.canonicalize$1(path)), t2.toUri$1(path))), $async$_handleAdd$1);
  37041. case 6:
  37042. // returning from await.
  37043. $async$returnValue = $async$result && success;
  37044. // goto return
  37045. $async$goto = 1;
  37046. break;
  37047. case 1:
  37048. // return
  37049. return P._asyncReturn($async$returnValue, $async$completer);
  37050. }
  37051. });
  37052. return P._asyncStartSync($async$_handleAdd$1, $async$completer);
  37053. },
  37054. _handleRemove$1: function(path) {
  37055. return this._handleRemove$body$_Watcher(path);
  37056. },
  37057. _handleRemove$body$_Watcher: function(path) {
  37058. var $async$goto = 0,
  37059. $async$completer = P._makeAsyncAwaitCompleter(type$.bool),
  37060. $async$returnValue, $async$self = this, t2, destination, t3, node, toRecompile, t1, url;
  37061. var $async$_handleRemove$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  37062. if ($async$errorCode === 1)
  37063. return P._asyncRethrow($async$result, $async$completer);
  37064. while (true)
  37065. switch ($async$goto) {
  37066. case 0:
  37067. // Function start
  37068. t1 = $.$get$context();
  37069. url = t1.toUri$1(t1.canonicalize$1(path));
  37070. t1 = $async$self._graph;
  37071. t2 = t1._nodes;
  37072. if (t2.containsKey$1(url)) {
  37073. destination = $async$self._destinationFor$1(path);
  37074. if (destination != null)
  37075. $async$self._delete$1(destination);
  37076. }
  37077. t3 = D.absolute(".");
  37078. node = t2.remove$1(0, url);
  37079. t2 = node != null;
  37080. if (t2) {
  37081. t1._transitiveModificationTimes.clear$0(0);
  37082. t1.importCache.clearImport$1(url);
  37083. node._stylesheet_graph$_remove$0();
  37084. }
  37085. toRecompile = t1._recanonicalizeImports$2(new F.FilesystemImporter(t3), url);
  37086. if (t2)
  37087. toRecompile.addAll$1(0, node._downstream);
  37088. $async$goto = 3;
  37089. return P._asyncAwait($async$self._recompileDownstream$1(toRecompile), $async$_handleRemove$1);
  37090. case 3:
  37091. // returning from await.
  37092. $async$returnValue = $async$result;
  37093. // goto return
  37094. $async$goto = 1;
  37095. break;
  37096. case 1:
  37097. // return
  37098. return P._asyncReturn($async$returnValue, $async$completer);
  37099. }
  37100. });
  37101. return P._asyncStartSync($async$_handleRemove$1, $async$completer);
  37102. },
  37103. _debounceEvents$1: function(events) {
  37104. var t1 = type$.WatchEvent;
  37105. t1 = R._debounceAggregate(P.Duration$(25), H.instantiate1(R.rate_limit___collectToList$closure(), t1), false, true, t1, type$.List_WatchEvent).bind$1(events);
  37106. return new P._ExpandStream(new A._Watcher__debounceEvents_closure(), t1, H._instanceType(t1)._eval$1("_ExpandStream<Stream.T,WatchEvent>"));
  37107. },
  37108. _recompileDownstream$1: function(nodes) {
  37109. return this._recompileDownstream$body$_Watcher(nodes);
  37110. },
  37111. _recompileDownstream$body$_Watcher: function(nodes) {
  37112. var $async$goto = 0,
  37113. $async$completer = P._makeAsyncAwaitCompleter(type$.bool),
  37114. $async$returnValue, $async$self = this, t2, allSucceeded, node, success, t1, seen, toRecompile;
  37115. var $async$_recompileDownstream$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  37116. if ($async$errorCode === 1)
  37117. return P._asyncRethrow($async$result, $async$completer);
  37118. while (true)
  37119. switch ($async$goto) {
  37120. case 0:
  37121. // Function start
  37122. t1 = type$.StylesheetNode;
  37123. seen = P.LinkedHashSet_LinkedHashSet$_empty(t1);
  37124. toRecompile = P.ListQueue_ListQueue$of(nodes, t1);
  37125. t1 = type$.UnmodifiableSetView_StylesheetNode, t2 = $async$self._watch$_options._options, allSucceeded = true;
  37126. case 3:
  37127. // for condition
  37128. if (!!toRecompile.get$isEmpty(toRecompile)) {
  37129. // goto after for
  37130. $async$goto = 4;
  37131. break;
  37132. }
  37133. node = toRecompile.removeFirst$0();
  37134. if (!seen.add$1(0, node)) {
  37135. // goto for condition
  37136. $async$goto = 3;
  37137. break;
  37138. }
  37139. $async$goto = 5;
  37140. return P._asyncAwait($async$self._compileIfEntrypoint$1(node.canonicalUrl), $async$_recompileDownstream$1);
  37141. case 5:
  37142. // returning from await.
  37143. success = $async$result;
  37144. allSucceeded = allSucceeded && success;
  37145. if (!success && H._asBoolNullable(t2.$index(0, "stop-on-error"))) {
  37146. $async$returnValue = false;
  37147. // goto return
  37148. $async$goto = 1;
  37149. break;
  37150. }
  37151. toRecompile.addAll$1(0, new L.UnmodifiableSetView(node._downstream, t1));
  37152. // goto for condition
  37153. $async$goto = 3;
  37154. break;
  37155. case 4:
  37156. // after for
  37157. $async$returnValue = allSucceeded;
  37158. // goto return
  37159. $async$goto = 1;
  37160. break;
  37161. case 1:
  37162. // return
  37163. return P._asyncReturn($async$returnValue, $async$completer);
  37164. }
  37165. });
  37166. return P._asyncStartSync($async$_recompileDownstream$1, $async$completer);
  37167. },
  37168. _compileIfEntrypoint$1: function(url) {
  37169. return this._compileIfEntrypoint$body$_Watcher(url);
  37170. },
  37171. _compileIfEntrypoint$body$_Watcher: function(url) {
  37172. var $async$goto = 0,
  37173. $async$completer = P._makeAsyncAwaitCompleter(type$.bool),
  37174. $async$returnValue, $async$self = this, source, destination;
  37175. var $async$_compileIfEntrypoint$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  37176. if ($async$errorCode === 1)
  37177. return P._asyncRethrow($async$result, $async$completer);
  37178. while (true)
  37179. switch ($async$goto) {
  37180. case 0:
  37181. // Function start
  37182. if (url.get$scheme() !== "file") {
  37183. $async$returnValue = true;
  37184. // goto return
  37185. $async$goto = 1;
  37186. break;
  37187. }
  37188. source = $.$get$context().style.pathFromUri$1(M._parseUri(url));
  37189. destination = $async$self._destinationFor$1(source);
  37190. if (destination == null) {
  37191. $async$returnValue = true;
  37192. // goto return
  37193. $async$goto = 1;
  37194. break;
  37195. }
  37196. $async$goto = 3;
  37197. return P._asyncAwait($async$self.compile$2(source, destination), $async$_compileIfEntrypoint$1);
  37198. case 3:
  37199. // returning from await.
  37200. $async$returnValue = $async$result;
  37201. // goto return
  37202. $async$goto = 1;
  37203. break;
  37204. case 1:
  37205. // return
  37206. return P._asyncReturn($async$returnValue, $async$completer);
  37207. }
  37208. });
  37209. return P._asyncStartSync($async$_compileIfEntrypoint$1, $async$completer);
  37210. },
  37211. _destinationFor$1: function(source) {
  37212. var destination, t2, t3, t4, _null = null,
  37213. t1 = this._watch$_options;
  37214. t1._ensureSources$0();
  37215. destination = t1._sourcesToDestinations.$index(0, source);
  37216. if (destination != null)
  37217. return destination;
  37218. t2 = $.$get$context();
  37219. if (J.startsWith$1$s(X.ParsedPath_ParsedPath$parse(source, t2.style).get$basename(), "_"))
  37220. return _null;
  37221. for (t1._ensureSources$0(), t3 = J.get$iterator$ax(t1._sourceDirectoriesToDestinations.get$keys()); t3.moveNext$0();) {
  37222. t4 = t3.get$current(t3);
  37223. if (t2._isWithinOrEquals$2(t4, source) !== C._PathRelation_within)
  37224. continue;
  37225. t1._ensureSources$0();
  37226. destination = t2.join$8(0, t1._sourceDirectoriesToDestinations.$index(0, t4), t2.withoutExtension$1(t2.relative$2$from(source, t4)) + ".css", _null, _null, _null, _null, _null, _null);
  37227. if (t2._isWithinOrEquals$2(destination, source) !== C._PathRelation_equal)
  37228. return destination;
  37229. }
  37230. return _null;
  37231. }
  37232. };
  37233. A._Watcher__debounceEvents_closure.prototype = {
  37234. call$1: function(buffer) {
  37235. var t2, t3, t4, oldType,
  37236. t1 = K.PathMap__create(null, type$.ChangeType);
  37237. for (t2 = J.get$iterator$ax(buffer); t2.moveNext$0();) {
  37238. t3 = t2.get$current(t2);
  37239. t4 = t3.path;
  37240. oldType = t1.$index(0, t4);
  37241. if (oldType == null)
  37242. t1.$indexSet(0, t4, t3.type);
  37243. else if (t3.type === C.ChangeType_remove)
  37244. t1.$indexSet(0, t4, C.ChangeType_remove);
  37245. else if (oldType !== C.ChangeType_add)
  37246. t1.$indexSet(0, t4, C.ChangeType_modify);
  37247. }
  37248. return t1.get$keys().map$1$1(0, new A._Watcher__debounceEvents__closure(new K.PathMap(t1, type$.PathMap_ChangeType)), type$.WatchEvent);
  37249. }
  37250. };
  37251. A._Watcher__debounceEvents__closure.prototype = {
  37252. call$1: function(path) {
  37253. return new E.WatchEvent(this.typeForPath._collection$_map.$index(0, path), path);
  37254. }
  37255. };
  37256. T.EmptyExtender.prototype = {
  37257. get$isEmpty: function(_) {
  37258. return true;
  37259. },
  37260. get$simpleSelectors: function() {
  37261. return C.C_EmptyUnmodifiableSet;
  37262. },
  37263. extensionsWhereTarget$1: function(callback) {
  37264. return C.List_empty2;
  37265. },
  37266. addExtensions$1: function(extenders) {
  37267. throw H.wrapException(P.UnsupportedError$("addExtensions() can't be called for a const Extender."));
  37268. },
  37269. clone$0: function() {
  37270. return C.Tuple2_EmptyExtender_Map_empty;
  37271. },
  37272. $isExtender: 1
  37273. };
  37274. F.Extender.prototype = {
  37275. get$isEmpty: function(_) {
  37276. var t1 = this._extensions;
  37277. return t1.get$isEmpty(t1);
  37278. },
  37279. get$simpleSelectors: function() {
  37280. return new M.MapKeySet(this._selectors, type$.MapKeySet_SimpleSelector);
  37281. },
  37282. extensionsWhereTarget$1: function($async$callback) {
  37283. var $async$self = this;
  37284. return P._makeSyncStarIterable(function() {
  37285. var callback = $async$callback;
  37286. var $async$goto = 0, $async$handler = 1, $async$currentError, t1, t2, t3, t4;
  37287. return function $async$extensionsWhereTarget$1($async$errorCode, $async$result) {
  37288. if ($async$errorCode === 1) {
  37289. $async$currentError = $async$result;
  37290. $async$goto = $async$handler;
  37291. }
  37292. while (true)
  37293. switch ($async$goto) {
  37294. case 0:
  37295. // Function start
  37296. t1 = $async$self._extensions, t2 = t1.get$keys(), t2 = t2.get$iterator(t2);
  37297. case 2:
  37298. // for condition
  37299. if (!t2.moveNext$0()) {
  37300. // goto after for
  37301. $async$goto = 3;
  37302. break;
  37303. }
  37304. t3 = t2.get$current(t2);
  37305. if (!callback.call$1(t3)) {
  37306. // goto for condition
  37307. $async$goto = 2;
  37308. break;
  37309. }
  37310. t3 = t1.$index(0, t3).get$values(), t3 = t3.get$iterator(t3);
  37311. case 4:
  37312. // for condition
  37313. if (!t3.moveNext$0()) {
  37314. // goto after for
  37315. $async$goto = 5;
  37316. break;
  37317. }
  37318. t4 = t3.get$current(t3);
  37319. $async$goto = t4 instanceof A.MergedExtension ? 6 : 8;
  37320. break;
  37321. case 6:
  37322. // then
  37323. t4 = t4.unmerge$0();
  37324. $async$goto = 9;
  37325. return P._IterationMarker_yieldStar(new H.WhereIterable(t4, new F.Extender_extensionsWhereTarget_closure(), t4.$ti._eval$1("WhereIterable<Iterable.E>")));
  37326. case 9:
  37327. // after yield
  37328. // goto join
  37329. $async$goto = 7;
  37330. break;
  37331. case 8:
  37332. // else
  37333. $async$goto = !t4.isOptional ? 10 : 11;
  37334. break;
  37335. case 10:
  37336. // then
  37337. $async$goto = 12;
  37338. return t4;
  37339. case 12:
  37340. // after yield
  37341. case 11:
  37342. // join
  37343. case 7:
  37344. // join
  37345. // goto for condition
  37346. $async$goto = 4;
  37347. break;
  37348. case 5:
  37349. // after for
  37350. // goto for condition
  37351. $async$goto = 2;
  37352. break;
  37353. case 3:
  37354. // after for
  37355. // implicit return
  37356. return P._IterationMarker_endOfIteration();
  37357. case 1:
  37358. // rethrow
  37359. return P._IterationMarker_uncaughtError($async$currentError);
  37360. }
  37361. };
  37362. }, type$.Extension);
  37363. },
  37364. addSelector$3: function(selector, span, mediaContext) {
  37365. var error, t1, t2, t3, _i, exception, modifiableSelector, _this = this,
  37366. originalSelector = selector;
  37367. if (!originalSelector.get$isInvisible())
  37368. for (t1 = originalSelector.components, t2 = t1.length, t3 = _this._originals, _i = 0; _i < t2; ++_i)
  37369. t3.add$1(0, t1[_i]);
  37370. t1 = _this._extensions;
  37371. if (t1.get$isNotEmpty(t1))
  37372. try {
  37373. selector = _this._extendList$3(originalSelector, t1, mediaContext);
  37374. } catch (exception) {
  37375. t1 = H.unwrapException(exception);
  37376. if (t1 instanceof E.SassException) {
  37377. error = t1;
  37378. throw H.wrapException(E.SassException$("From " + error.get$span().message$1(0, "") + "\n" + H.S(error._span_exception$_message), span));
  37379. } else
  37380. throw exception;
  37381. }
  37382. modifiableSelector = new F.ModifiableCssValue(selector, span, type$.ModifiableCssValue_SelectorList);
  37383. if (mediaContext != null)
  37384. _this._mediaContexts.$indexSet(0, modifiableSelector, mediaContext);
  37385. _this._registerSelector$2(selector, modifiableSelector);
  37386. return modifiableSelector;
  37387. },
  37388. _registerSelector$2: function(list, selector) {
  37389. var t1, t2, t3, _i, t4, t5, _i0, component, t6, t7, _i1, simple;
  37390. for (t1 = list.components, t2 = t1.length, t3 = this._selectors, _i = 0; _i < t2; ++_i)
  37391. for (t4 = t1[_i].components, t5 = t4.length, _i0 = 0; _i0 < t5; ++_i0) {
  37392. component = t4[_i0];
  37393. if (component instanceof X.CompoundSelector)
  37394. for (t6 = component.components, t7 = t6.length, _i1 = 0; _i1 < t7; ++_i1) {
  37395. simple = t6[_i1];
  37396. J.add$1$ax(t3.putIfAbsent$2(simple, new F.Extender__registerSelector_closure()), selector);
  37397. if (simple instanceof D.PseudoSelector && simple.selector != null)
  37398. this._registerSelector$2(simple.selector, selector);
  37399. }
  37400. }
  37401. },
  37402. addExtension$4: function(extender, target, extend, mediaContext) {
  37403. var t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, newExtensions, _i, complex, t12, state, existingState, t13, _i0, component, t14, t15, _i1, simple, newExtensionsByTarget, additionalExtensions, _this = this,
  37404. selectors = _this._selectors.$index(0, target),
  37405. t1 = _this._extensionsByExtender,
  37406. existingExtensions = t1.$index(0, target),
  37407. sources = _this._extensions.putIfAbsent$2(target, new F.Extender_addExtension_closure());
  37408. for (t2 = extender.value.components, t3 = t2.length, t4 = selectors == null, t5 = _this._sourceSpecificity, t6 = extender.span, t7 = extend.span, t8 = extend.isOptional, t9 = existingExtensions != null, t10 = type$.ComplexSelector, t11 = type$.Extension, newExtensions = null, _i = 0; _i < t3; ++_i) {
  37409. complex = t2[_i];
  37410. if (complex._maxSpecificity == null)
  37411. complex._computeSpecificity$0();
  37412. t12 = complex._maxSpecificity;
  37413. state = new S.Extension(complex, target, t12, t8, false, mediaContext, t6, t7);
  37414. existingState = sources.$index(0, complex);
  37415. if (existingState != null) {
  37416. sources.$indexSet(0, complex, A.MergedExtension_merge(existingState, state));
  37417. continue;
  37418. }
  37419. sources.$indexSet(0, complex, state);
  37420. for (t12 = complex.components, t13 = t12.length, _i0 = 0; _i0 < t13; ++_i0) {
  37421. component = t12[_i0];
  37422. if (component instanceof X.CompoundSelector)
  37423. for (t14 = component.components, t15 = t14.length, _i1 = 0; _i1 < t15; ++_i1) {
  37424. simple = t14[_i1];
  37425. J.add$1$ax(t1.putIfAbsent$2(simple, new F.Extender_addExtension_closure0()), state);
  37426. t5.putIfAbsent$2(simple, new F.Extender_addExtension_closure1(complex));
  37427. }
  37428. }
  37429. if (!t4 || t9) {
  37430. if (newExtensions == null)
  37431. newExtensions = P.LinkedHashMap_LinkedHashMap$_empty(t10, t11);
  37432. newExtensions.$indexSet(0, complex, state);
  37433. }
  37434. }
  37435. if (newExtensions == null)
  37436. return;
  37437. newExtensionsByTarget = P.LinkedHashMap_LinkedHashMap$_literal([target, newExtensions], type$.SimpleSelector, type$.Map_ComplexSelector_Extension);
  37438. if (t9) {
  37439. additionalExtensions = _this._extendExistingExtensions$2(existingExtensions, newExtensionsByTarget);
  37440. if (additionalExtensions != null)
  37441. B.mapAddAll2(newExtensionsByTarget, additionalExtensions);
  37442. }
  37443. if (!t4)
  37444. _this._extendExistingSelectors$2(selectors, newExtensionsByTarget);
  37445. },
  37446. _extendExistingExtensions$2: function(extensions, newExtensions) {
  37447. var extension, selectors, error, t1, t2, t3, t4, t5, t6, additionalExtensions, _i, sources, exception, containsExtension, t7, t8, first, _i0, complex, t9, t10, t11, t12, t13, t14, withExtender, existingExtension, _i1, component, _i2;
  37448. for (t1 = J.toList$0$ax(extensions), t2 = t1.length, t3 = this._extensionsByExtender, t4 = type$.SimpleSelector, t5 = type$.Map_ComplexSelector_Extension, t6 = this._extensions, additionalExtensions = null, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  37449. extension = t1[_i];
  37450. sources = t6.$index(0, extension.target);
  37451. selectors = null;
  37452. try {
  37453. selectors = this._extendComplex$3(extension.extender, newExtensions, extension.mediaContext);
  37454. if (selectors == null)
  37455. continue;
  37456. } catch (exception) {
  37457. t1 = H.unwrapException(exception);
  37458. if (t1 instanceof E.SassException) {
  37459. error = t1;
  37460. throw H.wrapException(E.SassException$("From " + extension.extenderSpan.message$1(0, "") + "\n" + H.S(error._span_exception$_message), error.get$span()));
  37461. } else
  37462. throw exception;
  37463. }
  37464. containsExtension = J.$eq$(J.get$first$ax(selectors), extension.extender);
  37465. for (t7 = selectors, t8 = t7.length, first = false, _i0 = 0; _i0 < t7.length; t7.length === t8 || (0, H.throwConcurrentModificationError)(t7), ++_i0) {
  37466. complex = t7[_i0];
  37467. if (containsExtension && first) {
  37468. first = false;
  37469. continue;
  37470. }
  37471. t9 = extension;
  37472. t10 = t9.target;
  37473. t11 = t9.extenderSpan;
  37474. t12 = t9.span;
  37475. t13 = t9.mediaContext;
  37476. t14 = t9.specificity;
  37477. t9 = t9.isOptional;
  37478. if (t14 == null) {
  37479. if (complex._maxSpecificity == null)
  37480. complex._computeSpecificity$0();
  37481. t14 = complex._maxSpecificity;
  37482. }
  37483. withExtender = new S.Extension(complex, t10, t14, t9, false, t13, t11, t12);
  37484. existingExtension = sources.$index(0, complex);
  37485. if (existingExtension != null)
  37486. sources.$indexSet(0, complex, A.MergedExtension_merge(existingExtension, withExtender));
  37487. else {
  37488. sources.$indexSet(0, complex, withExtender);
  37489. for (t9 = complex.components, t10 = t9.length, _i1 = 0; _i1 < t10; ++_i1) {
  37490. component = t9[_i1];
  37491. if (component instanceof X.CompoundSelector)
  37492. for (t11 = component.components, t12 = t11.length, _i2 = 0; _i2 < t12; ++_i2)
  37493. J.add$1$ax(t3.putIfAbsent$2(t11[_i2], new F.Extender__extendExistingExtensions_closure()), withExtender);
  37494. }
  37495. if (newExtensions.containsKey$1(extension.target)) {
  37496. if (additionalExtensions == null)
  37497. additionalExtensions = P.LinkedHashMap_LinkedHashMap$_empty(t4, t5);
  37498. additionalExtensions.putIfAbsent$2(extension.target, new F.Extender__extendExistingExtensions_closure0()).$indexSet(0, complex, withExtender);
  37499. }
  37500. }
  37501. }
  37502. if (!containsExtension)
  37503. sources.remove$1(0, extension.extender);
  37504. }
  37505. return additionalExtensions;
  37506. },
  37507. _extendExistingSelectors$2: function(selectors, newExtensions) {
  37508. var selector, error, t1, t2, oldValue, exception;
  37509. for (t1 = selectors.get$iterator(selectors), t2 = this._mediaContexts; t1.moveNext$0();) {
  37510. selector = t1.get$current(t1);
  37511. oldValue = selector.value;
  37512. try {
  37513. selector.value = this._extendList$3(selector.value, newExtensions, t2.$index(0, selector));
  37514. } catch (exception) {
  37515. t1 = H.unwrapException(exception);
  37516. if (t1 instanceof E.SassException) {
  37517. error = t1;
  37518. throw H.wrapException(E.SassException$("From " + selector.span.message$1(0, "") + "\n" + H.S(error._span_exception$_message), error.get$span()));
  37519. } else
  37520. throw exception;
  37521. }
  37522. if (oldValue == selector.value)
  37523. continue;
  37524. this._registerSelector$2(selector.value, selector);
  37525. }
  37526. },
  37527. addExtensions$1: function(extenders) {
  37528. var t1, t2, t3, _this = this, _box_0 = {};
  37529. _box_0.newExtensions = _box_0.selectorsToExtend = _box_0.extensionsToExtend = null;
  37530. for (t1 = J.get$iterator$ax(extenders), t2 = _this._sourceSpecificity; t1.moveNext$0();) {
  37531. t3 = t1.get$current(t1);
  37532. if (t3.get$isEmpty(t3))
  37533. continue;
  37534. t2.addAll$1(0, t3.get$_sourceSpecificity());
  37535. t3.get$_extensions().forEach$1(0, new F.Extender_addExtensions_closure(_box_0, _this, t3));
  37536. }
  37537. t1 = _box_0.newExtensions;
  37538. if (t1 == null)
  37539. return;
  37540. t2 = _box_0.extensionsToExtend;
  37541. if (t2 != null)
  37542. _this._extendExistingExtensions$2(t2, t1);
  37543. t1 = _box_0.selectorsToExtend;
  37544. if (t1 != null)
  37545. _this._extendExistingSelectors$2(t1, _box_0.newExtensions);
  37546. },
  37547. _extendList$3: function(list, extensions, mediaQueryContext) {
  37548. var t1, t2, t3, extended, i, complex, result, t4;
  37549. for (t1 = list.components, t2 = t1.length, t3 = type$.JSArray_ComplexSelector, extended = null, i = 0; i < t2; ++i) {
  37550. complex = t1[i];
  37551. result = this._extendComplex$3(complex, extensions, mediaQueryContext);
  37552. if (result == null) {
  37553. if (extended != null)
  37554. extended.push(complex);
  37555. } else {
  37556. if (extended == null)
  37557. if (i === 0)
  37558. extended = H.setRuntimeTypeInfo([], t3);
  37559. else {
  37560. t4 = C.JSArray_methods.sublist$2(t1, 0, i);
  37561. extended = H.setRuntimeTypeInfo(t4.slice(0), H._arrayInstanceType(t4)._eval$1("JSArray<1>"));
  37562. }
  37563. C.JSArray_methods.addAll$1(extended, result);
  37564. }
  37565. }
  37566. if (extended == null)
  37567. return list;
  37568. t1 = this._originals;
  37569. return D.SelectorList$(J.where$1$ax(this._trim$2(extended, t1.get$contains(t1)), new F.Extender__extendList_closure()));
  37570. },
  37571. _extendComplex$3: function(complex, extensions, mediaQueryContext) {
  37572. var t1, t2, t3, t4, t5, t6, extendedNotExpanded, i, component, extended, result, t7,
  37573. _s28_ = "components may not be empty.",
  37574. _box_0 = {},
  37575. isOriginal = this._originals.contains$1(0, complex);
  37576. for (t1 = complex.components, t2 = t1.length, t3 = type$.JSArray_ComplexSelector, t4 = type$.JSArray_ComplexSelectorComponent, t5 = type$.ComplexSelectorComponent, t6 = H._arrayInstanceType(t1)._precomputed1, extendedNotExpanded = null, i = 0; i < t2; ++i) {
  37577. component = t1[i];
  37578. if (component instanceof X.CompoundSelector) {
  37579. extended = this._extendCompound$4$inOriginal(component, extensions, mediaQueryContext, isOriginal);
  37580. if (extended == null) {
  37581. if (extendedNotExpanded != null) {
  37582. result = P.List_List$from(H.setRuntimeTypeInfo([component], t4), false, t5);
  37583. result.fixed$length = Array;
  37584. result.immutable$list = Array;
  37585. t7 = result;
  37586. if (t7.length === 0)
  37587. H.throwExpression(P.ArgumentError$(_s28_));
  37588. C.JSArray_methods.add$1(extendedNotExpanded, H.setRuntimeTypeInfo([new S.ComplexSelector(t7, false)], t3));
  37589. }
  37590. } else {
  37591. if (extendedNotExpanded == null) {
  37592. t7 = H.SubListIterable$(t1, 0, i, t6);
  37593. extendedNotExpanded = new H.MappedListIterable(t7, new F.Extender__extendComplex_closure(complex), t7.$ti._eval$1("MappedListIterable<ListIterable.E,List<ComplexSelector>>")).toList$0(0);
  37594. }
  37595. C.JSArray_methods.add$1(extendedNotExpanded, extended);
  37596. }
  37597. } else if (extendedNotExpanded != null) {
  37598. result = P.List_List$from(H.setRuntimeTypeInfo([component], t4), false, t5);
  37599. result.fixed$length = Array;
  37600. result.immutable$list = Array;
  37601. t7 = result;
  37602. if (t7.length === 0)
  37603. H.throwExpression(P.ArgumentError$(_s28_));
  37604. C.JSArray_methods.add$1(extendedNotExpanded, H.setRuntimeTypeInfo([new S.ComplexSelector(t7, false)], t3));
  37605. }
  37606. }
  37607. if (extendedNotExpanded == null)
  37608. return null;
  37609. _box_0.first = true;
  37610. t1 = type$.ComplexSelector;
  37611. t1 = J.expand$1$1$ax(Y.paths(extendedNotExpanded, t1), new F.Extender__extendComplex_closure0(_box_0, this, complex), t1);
  37612. return P.List_List$from(t1, true, t1.$ti._eval$1("Iterable.E"));
  37613. },
  37614. _extendCompound$4$inOriginal: function(compound, extensions, mediaQueryContext, inOriginal) {
  37615. var t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, options, i, simple, extended, result, t12, t13, _this = this, _null = null,
  37616. _s28_ = "components may not be empty.",
  37617. _box_1 = {},
  37618. t1 = _this._mode,
  37619. targetsUsed = t1 === C.ExtendMode_normal || extensions.get$length(extensions) < 2 ? _null : P.LinkedHashSet_LinkedHashSet$_empty(type$.SimpleSelector);
  37620. for (t2 = compound.components, t3 = t2.length, t4 = type$.JSArray_List_Extension, t5 = type$.JSArray_Extension, t6 = type$.JSArray_ComplexSelectorComponent, t7 = type$.ComplexSelectorComponent, t8 = H._arrayInstanceType(t2)._precomputed1, t9 = type$.SimpleSelector, t10 = _this._sourceSpecificity, t11 = type$.JSArray_SimpleSelector, options = _null, i = 0; i < t3; ++i) {
  37621. simple = t2[i];
  37622. extended = _this._extendSimple$4(simple, extensions, mediaQueryContext, targetsUsed);
  37623. if (extended == null) {
  37624. if (options != null) {
  37625. result = P.List_List$from(H.setRuntimeTypeInfo([simple], t11), false, t9);
  37626. result.fixed$length = Array;
  37627. result.immutable$list = Array;
  37628. t12 = result;
  37629. if (t12.length === 0)
  37630. H.throwExpression(P.ArgumentError$(_s28_));
  37631. result = P.List_List$from(H.setRuntimeTypeInfo([new X.CompoundSelector(t12)], t6), false, t7);
  37632. result.fixed$length = Array;
  37633. result.immutable$list = Array;
  37634. t12 = result;
  37635. if (t12.length === 0)
  37636. H.throwExpression(P.ArgumentError$(_s28_));
  37637. t13 = t10.$index(0, simple);
  37638. if (t13 == null)
  37639. t13 = 0;
  37640. options.push(H.setRuntimeTypeInfo([new S.Extension(new S.ComplexSelector(t12, false), _null, t13, true, true, _null, _null, _null)], t5));
  37641. }
  37642. } else {
  37643. if (options == null) {
  37644. options = H.setRuntimeTypeInfo([], t4);
  37645. if (i !== 0) {
  37646. result = P.List_List$from(H.SubListIterable$(t2, 0, i, t8), false, t9);
  37647. result.fixed$length = Array;
  37648. result.immutable$list = Array;
  37649. t12 = result;
  37650. compound = new X.CompoundSelector(t12);
  37651. if (t12.length === 0)
  37652. H.throwExpression(P.ArgumentError$(_s28_));
  37653. result = P.List_List$from(H.setRuntimeTypeInfo([compound], t6), false, t7);
  37654. result.fixed$length = Array;
  37655. result.immutable$list = Array;
  37656. t12 = result;
  37657. if (t12.length === 0)
  37658. H.throwExpression(P.ArgumentError$(_s28_));
  37659. t13 = _this._sourceSpecificityFor$1(compound);
  37660. options.push(H.setRuntimeTypeInfo([new S.Extension(new S.ComplexSelector(t12, false), _null, t13, true, true, _null, _null, _null)], t5));
  37661. }
  37662. }
  37663. C.JSArray_methods.addAll$1(options, extended);
  37664. }
  37665. }
  37666. if (options == null)
  37667. return _null;
  37668. if (targetsUsed != null && targetsUsed._collection$_length !== extensions.get$length(extensions))
  37669. return _null;
  37670. if (options.length === 1)
  37671. return J.map$1$1$ax(C.JSArray_methods.get$first(options), new F.Extender__extendCompound_closure(mediaQueryContext), type$.ComplexSelector).toList$0(0);
  37672. _box_1.first = t1 !== C.ExtendMode_replace;
  37673. t1 = J.map$1$1$ax(Y.paths(options, type$.Extension), new F.Extender__extendCompound_closure0(_box_1, mediaQueryContext), type$.List_ComplexSelector).where$1(0, new F.Extender__extendCompound_closure1());
  37674. t2 = t1.$ti._eval$1("ExpandIterable<Iterable.E,ComplexSelector>");
  37675. return P.List_List$from(new H.ExpandIterable(t1, new F.Extender__extendCompound_closure2(), t2), true, t2._eval$1("Iterable.E"));
  37676. },
  37677. _extendSimple$4: function(simple, extensions, mediaQueryContext, targetsUsed) {
  37678. var extended, result,
  37679. t1 = new F.Extender__extendSimple_withoutPseudo(this, extensions, targetsUsed);
  37680. if (simple instanceof D.PseudoSelector && simple.selector != null) {
  37681. extended = this._extendPseudo$3(simple, extensions, mediaQueryContext);
  37682. if (extended != null)
  37683. return new H.MappedListIterable(extended, new F.Extender__extendSimple_closure(this, t1), H._arrayInstanceType(extended)._eval$1("MappedListIterable<1,List<Extension>>"));
  37684. }
  37685. result = t1.call$1(simple);
  37686. return result == null ? null : H.setRuntimeTypeInfo([result], type$.JSArray_List_Extension);
  37687. },
  37688. _extensionForSimple$1: function(simple) {
  37689. var t1 = S.ComplexSelector$(H.setRuntimeTypeInfo([X.CompoundSelector$(H.setRuntimeTypeInfo([simple], type$.JSArray_SimpleSelector))], type$.JSArray_ComplexSelectorComponent), false),
  37690. t2 = this._sourceSpecificity.$index(0, simple);
  37691. return S.Extension$oneOff(t1, true, t2 == null ? 0 : t2);
  37692. },
  37693. _extendPseudo$3: function(pseudo, extensions, mediaQueryContext) {
  37694. var complexes, t2, result,
  37695. t1 = pseudo.selector,
  37696. extended = this._extendList$3(t1, extensions, mediaQueryContext);
  37697. if (extended == t1)
  37698. return null;
  37699. complexes = extended.components;
  37700. t2 = pseudo.normalizedName === "not";
  37701. if (t2 && !C.JSArray_methods.any$1(t1.components, new F.Extender__extendPseudo_closure()) && C.JSArray_methods.any$1(complexes, new F.Extender__extendPseudo_closure0()))
  37702. complexes = new H.WhereIterable(complexes, new F.Extender__extendPseudo_closure1(), H._arrayInstanceType(complexes)._eval$1("WhereIterable<1>"));
  37703. complexes = J.expand$1$1$ax(complexes, new F.Extender__extendPseudo_closure2(pseudo), type$.ComplexSelector);
  37704. if (t2 && t1.components.length === 1) {
  37705. t1 = H.MappedIterable_MappedIterable(complexes, new F.Extender__extendPseudo_closure3(pseudo), complexes.$ti._eval$1("Iterable.E"), type$.PseudoSelector);
  37706. result = P.List_List$from(t1, true, H._instanceType(t1)._eval$1("Iterable.E"));
  37707. return result.length === 0 ? null : result;
  37708. } else
  37709. return H.setRuntimeTypeInfo([D.PseudoSelector$(pseudo.name, pseudo.argument, !pseudo.isClass, D.SelectorList$(complexes))], type$.JSArray_PseudoSelector);
  37710. },
  37711. _trim$2: function(selectors, isOriginal) {
  37712. var result, i, t1, numOriginals, _box_0, complex1, j, t2, t3, _i, component;
  37713. if (selectors.length > 100)
  37714. return selectors;
  37715. result = Q.QueueList$(null, type$.ComplexSelector);
  37716. $label0$0:
  37717. for (i = selectors.length - 1, t1 = H._arrayInstanceType(selectors)._precomputed1, numOriginals = 0; i >= 0; --i) {
  37718. _box_0 = {};
  37719. complex1 = selectors[i];
  37720. if (isOriginal.call$1(complex1)) {
  37721. for (j = 0; j < numOriginals; ++j)
  37722. if (J.$eq$(result.$index(0, j), complex1)) {
  37723. B.rotateSlice(result, 0, j + 1);
  37724. continue $label0$0;
  37725. }
  37726. ++numOriginals;
  37727. result.addFirst$1(complex1);
  37728. continue $label0$0;
  37729. }
  37730. _box_0.maxSpecificity = 0;
  37731. for (t2 = complex1.components, t3 = t2.length, _i = 0; _i < t3; ++_i) {
  37732. component = t2[_i];
  37733. if (component instanceof X.CompoundSelector)
  37734. _box_0.maxSpecificity = Math.max(_box_0.maxSpecificity, this._sourceSpecificityFor$1(component));
  37735. }
  37736. if (result.any$1(result, new F.Extender__trim_closure(_box_0, complex1)))
  37737. continue $label0$0;
  37738. if (H.SubListIterable$(selectors, 0, i, t1).any$1(0, new F.Extender__trim_closure0(_box_0, complex1)))
  37739. continue $label0$0;
  37740. result.addFirst$1(complex1);
  37741. }
  37742. return result;
  37743. },
  37744. _sourceSpecificityFor$1: function(compound) {
  37745. var t1, t2, t3, specificity, _i, t4;
  37746. for (t1 = compound.components, t2 = t1.length, t3 = this._sourceSpecificity, specificity = 0, _i = 0; _i < t2; ++_i) {
  37747. t4 = t3.$index(0, t1[_i]);
  37748. specificity = Math.max(specificity, H.checkNum(t4 == null ? 0 : t4));
  37749. }
  37750. return specificity;
  37751. },
  37752. clone$0: function() {
  37753. var t3, t4, _this = this,
  37754. t1 = type$.SimpleSelector,
  37755. newSelectors = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Set_ModifiableCssValue_SelectorList),
  37756. t2 = type$.ModifiableCssValue_SelectorList,
  37757. newMediaContexts = P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.List_CssMediaQuery),
  37758. oldToNewSelectors = P.LinkedHashMap_LinkedHashMap$_empty(type$.CssValue_SelectorList, t2);
  37759. _this._selectors.forEach$1(0, new F.Extender_clone_closure(_this, newSelectors, oldToNewSelectors, newMediaContexts));
  37760. t2 = type$.Extension;
  37761. t3 = B.copyMapOfMap(_this._extensions, t1, type$.ComplexSelector, t2);
  37762. t2 = B.copyMapOfList(_this._extensionsByExtender, t1, t2);
  37763. t1 = P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6(t1, type$.int);
  37764. t1.addAll$1(0, _this._sourceSpecificity);
  37765. t4 = new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_ComplexSelector);
  37766. t4.addAll$1(0, _this._originals);
  37767. return new S.Tuple2(new F.Extender(newSelectors, t3, t2, newMediaContexts, t1, t4, C.ExtendMode_normal), oldToNewSelectors, type$.Tuple2_of_Extender_and_Map_of_CssValue_SelectorList_and_ModifiableCssValue_SelectorList);
  37768. },
  37769. get$_extensions: function() {
  37770. return this._extensions;
  37771. },
  37772. get$_sourceSpecificity: function() {
  37773. return this._sourceSpecificity;
  37774. }
  37775. };
  37776. F.Extender_extensionsWhereTarget_closure.prototype = {
  37777. call$1: function(extension) {
  37778. return !extension.isOptional;
  37779. }
  37780. };
  37781. F.Extender__registerSelector_closure.prototype = {
  37782. call$0: function() {
  37783. return P.LinkedHashSet_LinkedHashSet$_empty(type$.ModifiableCssValue_SelectorList);
  37784. },
  37785. $signature: 107
  37786. };
  37787. F.Extender_addExtension_closure.prototype = {
  37788. call$0: function() {
  37789. return P.LinkedHashMap_LinkedHashMap$_empty(type$.ComplexSelector, type$.Extension);
  37790. },
  37791. $signature: 46
  37792. };
  37793. F.Extender_addExtension_closure0.prototype = {
  37794. call$0: function() {
  37795. return H.setRuntimeTypeInfo([], type$.JSArray_Extension);
  37796. },
  37797. $signature: 71
  37798. };
  37799. F.Extender_addExtension_closure1.prototype = {
  37800. call$0: function() {
  37801. return this.complex.get$maxSpecificity();
  37802. },
  37803. $signature: 8
  37804. };
  37805. F.Extender__extendExistingExtensions_closure.prototype = {
  37806. call$0: function() {
  37807. return H.setRuntimeTypeInfo([], type$.JSArray_Extension);
  37808. },
  37809. $signature: 71
  37810. };
  37811. F.Extender__extendExistingExtensions_closure0.prototype = {
  37812. call$0: function() {
  37813. return P.LinkedHashMap_LinkedHashMap$_empty(type$.ComplexSelector, type$.Extension);
  37814. },
  37815. $signature: 46
  37816. };
  37817. F.Extender_addExtensions_closure.prototype = {
  37818. call$2: function(target, newSources) {
  37819. var t1, extensionsForTarget, t2, t3, t4, selectorsForTarget, t5, existingSources, _this = this;
  37820. if (target instanceof N.PlaceholderSelector && T.isPrivate(target.name))
  37821. return;
  37822. t1 = _this.$this;
  37823. extensionsForTarget = t1._extensionsByExtender.$index(0, target);
  37824. t2 = extensionsForTarget == null;
  37825. if (!t2) {
  37826. t3 = _this._box_0;
  37827. t4 = t3.extensionsToExtend;
  37828. C.JSArray_methods.addAll$1(t4 == null ? t3.extensionsToExtend = H.setRuntimeTypeInfo([], type$.JSArray_Extension) : t4, extensionsForTarget);
  37829. }
  37830. selectorsForTarget = t1._selectors.$index(0, target);
  37831. t3 = selectorsForTarget != null;
  37832. if (t3) {
  37833. t4 = _this._box_0;
  37834. t5 = t4.selectorsToExtend;
  37835. (t5 == null ? t4.selectorsToExtend = P.LinkedHashSet_LinkedHashSet$_empty(type$.ModifiableCssValue_SelectorList) : t5).addAll$1(0, selectorsForTarget);
  37836. }
  37837. t1 = t1._extensions;
  37838. existingSources = t1.$index(0, target);
  37839. if (existingSources == null) {
  37840. t4 = _this.extender;
  37841. t1.$indexSet(0, target, t4.get$_extensions().$index(0, target));
  37842. if (!t2 || t3) {
  37843. t1 = _this._box_0;
  37844. t2 = t1.newExtensions;
  37845. t1 = t2 == null ? t1.newExtensions = P.LinkedHashMap_LinkedHashMap$_empty(type$.SimpleSelector, type$.Map_ComplexSelector_Extension) : t2;
  37846. t1.$indexSet(0, target, t4.get$_extensions().$index(0, target));
  37847. }
  37848. } else
  37849. newSources.forEach$1(0, new F.Extender_addExtensions__closure(_this._box_0, existingSources, extensionsForTarget, selectorsForTarget, target));
  37850. }
  37851. };
  37852. F.Extender_addExtensions__closure.prototype = {
  37853. call$2: function(extender, extension) {
  37854. var t2, _this = this,
  37855. t1 = _this.existingSources;
  37856. if (t1.containsKey$1(extender))
  37857. return;
  37858. t1.$indexSet(0, extender, extension);
  37859. if (_this.extensionsForTarget != null || _this.selectorsForTarget != null) {
  37860. t1 = _this._box_0;
  37861. t2 = t1.newExtensions;
  37862. t1 = t2 == null ? t1.newExtensions = P.LinkedHashMap_LinkedHashMap$_empty(type$.SimpleSelector, type$.Map_ComplexSelector_Extension) : t2;
  37863. t1.putIfAbsent$2(_this.target, new F.Extender_addExtensions___closure()).putIfAbsent$2(extender, new F.Extender_addExtensions___closure0(extension));
  37864. }
  37865. }
  37866. };
  37867. F.Extender_addExtensions___closure.prototype = {
  37868. call$0: function() {
  37869. return P.LinkedHashMap_LinkedHashMap$_empty(type$.ComplexSelector, type$.Extension);
  37870. },
  37871. $signature: 46
  37872. };
  37873. F.Extender_addExtensions___closure0.prototype = {
  37874. call$0: function() {
  37875. return this.extension;
  37876. },
  37877. $signature: 131
  37878. };
  37879. F.Extender__extendList_closure.prototype = {
  37880. call$1: function(complex) {
  37881. return complex != null;
  37882. }
  37883. };
  37884. F.Extender__extendComplex_closure.prototype = {
  37885. call$1: function(component) {
  37886. return H.setRuntimeTypeInfo([S.ComplexSelector$(H.setRuntimeTypeInfo([component], type$.JSArray_ComplexSelectorComponent), this.complex.lineBreak)], type$.JSArray_ComplexSelector);
  37887. }
  37888. };
  37889. F.Extender__extendComplex_closure0.prototype = {
  37890. call$1: function(path) {
  37891. var t1 = Y.weave(J.map$1$1$ax(path, new F.Extender__extendComplex__closure(), type$.List_ComplexSelectorComponent).toList$0(0));
  37892. return new H.MappedListIterable(t1, new F.Extender__extendComplex__closure0(this._box_0, this.$this, this.complex, path), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector>"));
  37893. }
  37894. };
  37895. F.Extender__extendComplex__closure.prototype = {
  37896. call$1: function(complex) {
  37897. return complex.components;
  37898. }
  37899. };
  37900. F.Extender__extendComplex__closure0.prototype = {
  37901. call$1: function(components) {
  37902. var _this = this,
  37903. t1 = _this.complex,
  37904. outputComplex = S.ComplexSelector$(components, t1.lineBreak || J.any$1$ax(_this.path, new F.Extender__extendComplex___closure())),
  37905. t2 = _this._box_0;
  37906. if (t2.first && _this.$this._originals.contains$1(0, t1))
  37907. _this.$this._originals.add$1(0, outputComplex);
  37908. t2.first = false;
  37909. return outputComplex;
  37910. }
  37911. };
  37912. F.Extender__extendComplex___closure.prototype = {
  37913. call$1: function(inputComplex) {
  37914. return inputComplex.lineBreak;
  37915. }
  37916. };
  37917. F.Extender__extendCompound_closure.prototype = {
  37918. call$1: function(state) {
  37919. state.assertCompatibleMediaContext$1(this.mediaQueryContext);
  37920. return state.extender;
  37921. }
  37922. };
  37923. F.Extender__extendCompound_closure0.prototype = {
  37924. call$1: function(path) {
  37925. var complexes, toUnify, t2, t3, originals, t4, _box_0 = {},
  37926. t1 = this._box_1;
  37927. if (t1.first) {
  37928. t1.first = false;
  37929. complexes = H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([X.CompoundSelector$(J.expand$1$1$ax(path, new F.Extender__extendCompound__closure(), type$.SimpleSelector))], type$.JSArray_ComplexSelectorComponent)], type$.JSArray_List_ComplexSelectorComponent);
  37930. } else {
  37931. toUnify = Q.QueueList$(null, type$.List_ComplexSelectorComponent);
  37932. for (t1 = J.get$iterator$ax(path), t2 = type$.CompoundSelector, t3 = type$.JSArray_SimpleSelector, originals = null; t1.moveNext$0();) {
  37933. t4 = t1.get$current(t1);
  37934. if (t4.isOriginal) {
  37935. if (originals == null)
  37936. originals = H.setRuntimeTypeInfo([], t3);
  37937. C.JSArray_methods.addAll$1(originals, t2._as(C.JSArray_methods.get$last(t4.extender.components)).components);
  37938. } else
  37939. toUnify._queue_list$_add$1(t4.extender.components);
  37940. }
  37941. if (originals != null)
  37942. toUnify.addFirst$1(H.setRuntimeTypeInfo([X.CompoundSelector$(originals)], type$.JSArray_ComplexSelectorComponent));
  37943. complexes = Y.unifyComplex(toUnify);
  37944. if (complexes == null)
  37945. return null;
  37946. }
  37947. _box_0.lineBreak = false;
  37948. for (t1 = J.get$iterator$ax(path), t2 = this.mediaQueryContext; t1.moveNext$0();) {
  37949. t3 = t1.get$current(t1);
  37950. t3.assertCompatibleMediaContext$1(t2);
  37951. _box_0.lineBreak = _box_0.lineBreak || t3.extender.lineBreak;
  37952. }
  37953. return J.map$1$1$ax(complexes, new F.Extender__extendCompound__closure0(_box_0), type$.ComplexSelector).toList$0(0);
  37954. }
  37955. };
  37956. F.Extender__extendCompound__closure.prototype = {
  37957. call$1: function(state) {
  37958. return type$.CompoundSelector._as(C.JSArray_methods.get$last(state.extender.components)).components;
  37959. }
  37960. };
  37961. F.Extender__extendCompound__closure0.prototype = {
  37962. call$1: function(components) {
  37963. return S.ComplexSelector$(components, this._box_0.lineBreak);
  37964. }
  37965. };
  37966. F.Extender__extendCompound_closure1.prototype = {
  37967. call$1: function(complexes) {
  37968. return complexes != null;
  37969. }
  37970. };
  37971. F.Extender__extendCompound_closure2.prototype = {
  37972. call$1: function(l) {
  37973. return l;
  37974. }
  37975. };
  37976. F.Extender__extendSimple_withoutPseudo.prototype = {
  37977. call$1: function(simple) {
  37978. var t1, t2,
  37979. extenders = this.extensions.$index(0, simple);
  37980. if (extenders == null)
  37981. return null;
  37982. t1 = this.targetsUsed;
  37983. if (t1 != null)
  37984. t1.add$1(0, simple);
  37985. t1 = this.$this;
  37986. if (t1._mode === C.ExtendMode_replace) {
  37987. t1 = extenders.get$values();
  37988. return P.List_List$from(t1, true, H._instanceType(t1)._eval$1("Iterable.E"));
  37989. }
  37990. t2 = H.setRuntimeTypeInfo([], type$.JSArray_Extension);
  37991. t2.push(t1._extensionForSimple$1(simple));
  37992. for (t1 = extenders.get$values(), t1 = t1.get$iterator(t1); t1.moveNext$0();)
  37993. t2.push(t1.get$current(t1));
  37994. return t2;
  37995. }
  37996. };
  37997. F.Extender__extendSimple_closure.prototype = {
  37998. call$1: function(pseudo) {
  37999. var t1 = this.withoutPseudo.call$1(pseudo);
  38000. return t1 == null ? H.setRuntimeTypeInfo([this.$this._extensionForSimple$1(pseudo)], type$.JSArray_Extension) : t1;
  38001. }
  38002. };
  38003. F.Extender__extendPseudo_closure.prototype = {
  38004. call$1: function(complex) {
  38005. return complex.components.length > 1;
  38006. }
  38007. };
  38008. F.Extender__extendPseudo_closure0.prototype = {
  38009. call$1: function(complex) {
  38010. return complex.components.length === 1;
  38011. }
  38012. };
  38013. F.Extender__extendPseudo_closure1.prototype = {
  38014. call$1: function(complex) {
  38015. return complex.components.length <= 1;
  38016. }
  38017. };
  38018. F.Extender__extendPseudo_closure2.prototype = {
  38019. call$1: function(complex) {
  38020. var innerPseudo, t2,
  38021. t1 = complex.components;
  38022. if (t1.length !== 1)
  38023. return H.setRuntimeTypeInfo([complex], type$.JSArray_ComplexSelector);
  38024. if (!(C.JSArray_methods.get$first(t1) instanceof X.CompoundSelector))
  38025. return H.setRuntimeTypeInfo([complex], type$.JSArray_ComplexSelector);
  38026. t1 = type$.CompoundSelector._as(C.JSArray_methods.get$first(t1)).components;
  38027. if (t1.length !== 1)
  38028. return H.setRuntimeTypeInfo([complex], type$.JSArray_ComplexSelector);
  38029. if (!(C.JSArray_methods.get$first(t1) instanceof D.PseudoSelector))
  38030. return H.setRuntimeTypeInfo([complex], type$.JSArray_ComplexSelector);
  38031. innerPseudo = type$.PseudoSelector._as(C.JSArray_methods.get$first(t1));
  38032. t1 = innerPseudo.selector;
  38033. if (t1 == null)
  38034. return H.setRuntimeTypeInfo([complex], type$.JSArray_ComplexSelector);
  38035. t2 = this.pseudo;
  38036. switch (t2.normalizedName) {
  38037. case "not":
  38038. if (innerPseudo.normalizedName !== "matches")
  38039. return H.setRuntimeTypeInfo([], type$.JSArray_ComplexSelector);
  38040. return t1.components;
  38041. case "matches":
  38042. case "any":
  38043. case "current":
  38044. case "nth-child":
  38045. case "nth-last-child":
  38046. if (innerPseudo.name !== t2.name)
  38047. return H.setRuntimeTypeInfo([], type$.JSArray_ComplexSelector);
  38048. if (innerPseudo.argument != t2.argument)
  38049. return H.setRuntimeTypeInfo([], type$.JSArray_ComplexSelector);
  38050. return t1.components;
  38051. case "has":
  38052. case "host":
  38053. case "host-context":
  38054. case "slotted":
  38055. return H.setRuntimeTypeInfo([complex], type$.JSArray_ComplexSelector);
  38056. default:
  38057. return H.setRuntimeTypeInfo([], type$.JSArray_ComplexSelector);
  38058. }
  38059. }
  38060. };
  38061. F.Extender__extendPseudo_closure3.prototype = {
  38062. call$1: function(complex) {
  38063. var t1 = this.pseudo;
  38064. return D.PseudoSelector$(t1.name, t1.argument, !t1.isClass, D.SelectorList$(H.setRuntimeTypeInfo([complex], type$.JSArray_ComplexSelector)));
  38065. }
  38066. };
  38067. F.Extender__trim_closure.prototype = {
  38068. call$1: function(complex2) {
  38069. return complex2.get$minSpecificity() >= this._box_0.maxSpecificity && Y.complexIsSuperselector(complex2.components, this.complex1.components);
  38070. }
  38071. };
  38072. F.Extender__trim_closure0.prototype = {
  38073. call$1: function(complex2) {
  38074. return complex2.get$minSpecificity() >= this._box_0.maxSpecificity && Y.complexIsSuperselector(complex2.components, this.complex1.components);
  38075. }
  38076. };
  38077. F.Extender_clone_closure.prototype = {
  38078. call$2: function(simple, selectors) {
  38079. var t2, t3, t4, t5, t6, newSelector, mediaContext, _this = this,
  38080. t1 = type$.ModifiableCssValue_SelectorList,
  38081. newSelectorSet = P.LinkedHashSet_LinkedHashSet$_empty(t1);
  38082. _this.newSelectors.$indexSet(0, simple, newSelectorSet);
  38083. for (t2 = selectors.get$iterator(selectors), t3 = _this.oldToNewSelectors, t4 = _this.$this._mediaContexts, t5 = _this.newMediaContexts; t2.moveNext$0();) {
  38084. t6 = t2.get$current(t2);
  38085. newSelector = new F.ModifiableCssValue(t6.value, t6.span, t1);
  38086. newSelectorSet.add$1(0, newSelector);
  38087. t3.$indexSet(0, t6, newSelector);
  38088. mediaContext = t4.$index(0, t6);
  38089. if (mediaContext != null)
  38090. t5.$indexSet(0, newSelector, mediaContext);
  38091. }
  38092. }
  38093. };
  38094. S.Extension.prototype = {
  38095. assertCompatibleMediaContext$1: function(mediaContext) {
  38096. var t1 = this.mediaContext;
  38097. if (t1 == null)
  38098. return;
  38099. if (mediaContext != null && C.C_ListEquality.equals$2(t1, mediaContext))
  38100. return;
  38101. throw H.wrapException(E.SassException$("You may not @extend selectors across media queries.", this.span));
  38102. },
  38103. toString$0: function(_) {
  38104. var t1 = H.S(this.extender) + " {@extend " + H.S(this.target);
  38105. return t1 + (this.isOptional ? " !optional" : "") + "}";
  38106. },
  38107. get$target: function() {
  38108. return this.target;
  38109. },
  38110. get$span: function() {
  38111. return this.span;
  38112. }
  38113. };
  38114. Y.unifyComplex_closure.prototype = {
  38115. call$1: function(complex) {
  38116. var t1 = J.getInterceptor$asx(complex);
  38117. return t1.sublist$2(complex, 0, t1.get$length(complex) - 1);
  38118. }
  38119. };
  38120. Y._weaveParents_closure.prototype = {
  38121. call$2: function(group1, group2) {
  38122. var unified, t1, _null = null;
  38123. if (C.C_ListEquality.equals$2(group1, group2))
  38124. return group1;
  38125. if (!(J.get$first$ax(group1) instanceof X.CompoundSelector) || !(J.get$first$ax(group2) instanceof X.CompoundSelector))
  38126. return _null;
  38127. if (Y.complexIsParentSuperselector(group1, group2))
  38128. return group2;
  38129. if (Y.complexIsParentSuperselector(group2, group1))
  38130. return group1;
  38131. if (!Y._mustUnify(group1, group2))
  38132. return _null;
  38133. unified = Y.unifyComplex(H.setRuntimeTypeInfo([group1, group2], type$.JSArray_List_ComplexSelectorComponent));
  38134. if (unified == null)
  38135. return _null;
  38136. t1 = J.getInterceptor$asx(unified);
  38137. if (t1.get$length(unified) > 1)
  38138. return _null;
  38139. return t1.get$first(unified);
  38140. }
  38141. };
  38142. Y._weaveParents_closure0.prototype = {
  38143. call$1: function(sequence) {
  38144. return Y.complexIsParentSuperselector(sequence.get$first(sequence), this.group);
  38145. }
  38146. };
  38147. Y._weaveParents_closure1.prototype = {
  38148. call$1: function(chunk) {
  38149. return J.expand$1$1$ax(chunk, new Y._weaveParents__closure1(), type$.ComplexSelectorComponent);
  38150. }
  38151. };
  38152. Y._weaveParents__closure1.prototype = {
  38153. call$1: function(group) {
  38154. return group;
  38155. }
  38156. };
  38157. Y._weaveParents_closure2.prototype = {
  38158. call$1: function(sequence) {
  38159. return sequence.get$length(sequence) === 0;
  38160. }
  38161. };
  38162. Y._weaveParents_closure3.prototype = {
  38163. call$1: function(chunk) {
  38164. return J.expand$1$1$ax(chunk, new Y._weaveParents__closure0(), type$.ComplexSelectorComponent);
  38165. }
  38166. };
  38167. Y._weaveParents__closure0.prototype = {
  38168. call$1: function(group) {
  38169. return group;
  38170. }
  38171. };
  38172. Y._weaveParents_closure4.prototype = {
  38173. call$1: function(choice) {
  38174. return J.get$isNotEmpty$asx(choice);
  38175. }
  38176. };
  38177. Y._weaveParents_closure5.prototype = {
  38178. call$1: function(path) {
  38179. var t1 = J.expand$1$1$ax(path, new Y._weaveParents__closure(), type$.ComplexSelectorComponent);
  38180. return P.List_List$from(t1, true, t1.$ti._eval$1("Iterable.E"));
  38181. }
  38182. };
  38183. Y._weaveParents__closure.prototype = {
  38184. call$1: function(group) {
  38185. return group;
  38186. }
  38187. };
  38188. Y._mustUnify_closure.prototype = {
  38189. call$1: function(component) {
  38190. return component instanceof X.CompoundSelector && C.JSArray_methods.any$1(component.components, new Y._mustUnify__closure(this.uniqueSelectors));
  38191. }
  38192. };
  38193. Y._mustUnify__closure.prototype = {
  38194. call$1: function(simple) {
  38195. var t1;
  38196. if (!(simple instanceof N.IDSelector))
  38197. t1 = simple instanceof D.PseudoSelector && !simple.isClass;
  38198. else
  38199. t1 = true;
  38200. return t1 && this.uniqueSelectors.contains$1(0, simple);
  38201. }
  38202. };
  38203. Y.paths_closure.prototype = {
  38204. call$2: function(paths, choice) {
  38205. var t1 = this.T;
  38206. t1 = J.expand$1$1$ax(choice, new Y.paths__closure(paths, t1), t1._eval$1("List<0>"));
  38207. return P.List_List$from(t1, true, t1.$ti._eval$1("Iterable.E"));
  38208. }
  38209. };
  38210. Y.paths__closure.prototype = {
  38211. call$1: function(option) {
  38212. var t1 = this.T;
  38213. return J.map$1$1$ax(this.paths, new Y.paths___closure(option, t1), t1._eval$1("List<0>"));
  38214. },
  38215. $signature: function() {
  38216. return this.T._eval$1("Iterable<List<0>>(0)");
  38217. }
  38218. };
  38219. Y.paths___closure.prototype = {
  38220. call$1: function(path) {
  38221. var t2,
  38222. t1 = H.setRuntimeTypeInfo([], this.T._eval$1("JSArray<0>"));
  38223. for (t2 = J.get$iterator$ax(path); t2.moveNext$0();)
  38224. t1.push(t2.get$current(t2));
  38225. t1.push(this.option);
  38226. return t1;
  38227. }
  38228. };
  38229. Y._hasRoot_closure.prototype = {
  38230. call$1: function(simple) {
  38231. return simple instanceof D.PseudoSelector && simple.isClass && simple.normalizedName === "root";
  38232. }
  38233. };
  38234. Y.listIsSuperslector_closure.prototype = {
  38235. call$1: function(complex1) {
  38236. return C.JSArray_methods.any$1(this.list1, new Y.listIsSuperslector__closure(complex1));
  38237. }
  38238. };
  38239. Y.listIsSuperslector__closure.prototype = {
  38240. call$1: function(complex2) {
  38241. return Y.complexIsSuperselector(complex2.components, this.complex1.components);
  38242. }
  38243. };
  38244. Y._simpleIsSuperselectorOfCompound_closure.prototype = {
  38245. call$1: function(theirSimple) {
  38246. var t1 = this.simple;
  38247. if (J.$eq$(t1, theirSimple))
  38248. return true;
  38249. if (theirSimple instanceof D.PseudoSelector && theirSimple.selector != null && $._subselectorPseudos.contains$1(0, theirSimple.normalizedName))
  38250. return C.JSArray_methods.every$1(theirSimple.selector.components, new Y._simpleIsSuperselectorOfCompound__closure(t1));
  38251. else
  38252. return false;
  38253. }
  38254. };
  38255. Y._simpleIsSuperselectorOfCompound__closure.prototype = {
  38256. call$1: function(complex) {
  38257. var t1 = complex.components;
  38258. if (t1.length !== 1)
  38259. return false;
  38260. return C.JSArray_methods.contains$1(type$.CompoundSelector._as(C.JSArray_methods.get$single(t1)).components, this.simple);
  38261. }
  38262. };
  38263. Y._selectorPseudoIsSuperselector_closure.prototype = {
  38264. call$1: function(pseudo2) {
  38265. var t1 = pseudo2.selector;
  38266. return Y.listIsSuperslector(this.pseudo1.selector.components, t1.components);
  38267. }
  38268. };
  38269. Y._selectorPseudoIsSuperselector_closure0.prototype = {
  38270. call$1: function(complex1) {
  38271. var t1 = complex1.components,
  38272. t2 = H.setRuntimeTypeInfo([], type$.JSArray_ComplexSelectorComponent),
  38273. t3 = this.parents;
  38274. if (t3 != null)
  38275. for (t3 = t3.get$iterator(t3); t3.moveNext$0();)
  38276. t2.push(t3.get$current(t3));
  38277. t2.push(this.compound2);
  38278. return Y.complexIsSuperselector(t1, t2);
  38279. }
  38280. };
  38281. Y._selectorPseudoIsSuperselector_closure1.prototype = {
  38282. call$1: function(pseudo2) {
  38283. var t1 = pseudo2.selector;
  38284. return Y.listIsSuperslector(this.pseudo1.selector.components, t1.components);
  38285. }
  38286. };
  38287. Y._selectorPseudoIsSuperselector_closure2.prototype = {
  38288. call$1: function(pseudo2) {
  38289. var t1 = pseudo2.selector;
  38290. return Y.listIsSuperslector(this.pseudo1.selector.components, t1.components);
  38291. }
  38292. };
  38293. Y._selectorPseudoIsSuperselector_closure3.prototype = {
  38294. call$1: function(complex) {
  38295. return C.JSArray_methods.any$1(this.compound2.components, new Y._selectorPseudoIsSuperselector__closure(complex, this.pseudo1));
  38296. }
  38297. };
  38298. Y._selectorPseudoIsSuperselector__closure.prototype = {
  38299. call$1: function(simple2) {
  38300. var compound1, _this = this;
  38301. if (simple2 instanceof F.TypeSelector) {
  38302. compound1 = C.JSArray_methods.get$last(_this.complex.components);
  38303. return compound1 instanceof X.CompoundSelector && C.JSArray_methods.any$1(compound1.components, new Y._selectorPseudoIsSuperselector___closure(simple2));
  38304. } else if (simple2 instanceof N.IDSelector) {
  38305. compound1 = C.JSArray_methods.get$last(_this.complex.components);
  38306. return compound1 instanceof X.CompoundSelector && C.JSArray_methods.any$1(compound1.components, new Y._selectorPseudoIsSuperselector___closure0(simple2));
  38307. } else if (simple2 instanceof D.PseudoSelector && simple2.name === _this.pseudo1.name && simple2.selector != null)
  38308. return Y.listIsSuperslector(simple2.selector.components, H.setRuntimeTypeInfo([_this.complex], type$.JSArray_ComplexSelector));
  38309. else
  38310. return false;
  38311. }
  38312. };
  38313. Y._selectorPseudoIsSuperselector___closure.prototype = {
  38314. call$1: function(simple1) {
  38315. var t1;
  38316. if (simple1 instanceof F.TypeSelector) {
  38317. t1 = this.simple2.name.$eq(0, simple1.name);
  38318. t1 = !t1;
  38319. } else
  38320. t1 = false;
  38321. return t1;
  38322. }
  38323. };
  38324. Y._selectorPseudoIsSuperselector___closure0.prototype = {
  38325. call$1: function(simple1) {
  38326. var t1;
  38327. if (simple1 instanceof N.IDSelector) {
  38328. t1 = simple1.name;
  38329. t1 = this.simple2.name !== t1;
  38330. } else
  38331. t1 = false;
  38332. return t1;
  38333. }
  38334. };
  38335. Y._selectorPseudoIsSuperselector_closure4.prototype = {
  38336. call$1: function(pseudo2) {
  38337. return J.$eq$(this.pseudo1.selector, pseudo2.selector);
  38338. }
  38339. };
  38340. Y._selectorPseudoIsSuperselector_closure5.prototype = {
  38341. call$1: function(pseudo2) {
  38342. var t1, t2;
  38343. if (pseudo2 instanceof D.PseudoSelector) {
  38344. t1 = this.pseudo1;
  38345. if (pseudo2.name === t1.name)
  38346. if (pseudo2.argument == t1.argument) {
  38347. t2 = pseudo2.selector;
  38348. t2 = Y.listIsSuperslector(t1.selector.components, t2.components);
  38349. t1 = t2;
  38350. } else
  38351. t1 = false;
  38352. else
  38353. t1 = false;
  38354. } else
  38355. t1 = false;
  38356. return t1;
  38357. }
  38358. };
  38359. Y._selectorPseudosNamed_closure.prototype = {
  38360. call$1: function(pseudo) {
  38361. return pseudo.isClass === this.isClass && pseudo.selector != null && pseudo.name === this.name;
  38362. }
  38363. };
  38364. A.MergedExtension.prototype = {
  38365. unmerge$0: function() {
  38366. var $async$self = this;
  38367. return P._makeSyncStarIterable(function() {
  38368. var $async$goto = 0, $async$handler = 1, $async$currentError, t1;
  38369. return function $async$unmerge$0($async$errorCode, $async$result) {
  38370. if ($async$errorCode === 1) {
  38371. $async$currentError = $async$result;
  38372. $async$goto = $async$handler;
  38373. }
  38374. while (true)
  38375. switch ($async$goto) {
  38376. case 0:
  38377. // Function start
  38378. t1 = $async$self.left;
  38379. $async$goto = t1 instanceof A.MergedExtension ? 2 : 4;
  38380. break;
  38381. case 2:
  38382. // then
  38383. $async$goto = 5;
  38384. return P._IterationMarker_yieldStar(t1.unmerge$0());
  38385. case 5:
  38386. // after yield
  38387. // goto join
  38388. $async$goto = 3;
  38389. break;
  38390. case 4:
  38391. // else
  38392. $async$goto = 6;
  38393. return t1;
  38394. case 6:
  38395. // after yield
  38396. case 3:
  38397. // join
  38398. $async$goto = 7;
  38399. return $async$self.right;
  38400. case 7:
  38401. // after yield
  38402. // implicit return
  38403. return P._IterationMarker_endOfIteration();
  38404. case 1:
  38405. // rethrow
  38406. return P._IterationMarker_uncaughtError($async$currentError);
  38407. }
  38408. };
  38409. }, type$.Extension);
  38410. }
  38411. };
  38412. L.ExtendMode.prototype = {
  38413. toString$0: function(_) {
  38414. return this.name;
  38415. }
  38416. };
  38417. Y.closure.prototype = {
  38418. call$1: function($arguments) {
  38419. var t1 = J.getInterceptor$asx($arguments);
  38420. return t1.$index($arguments, 0).get$isTruthy() ? t1.$index($arguments, 1) : t1.$index($arguments, 2);
  38421. },
  38422. $signature: 4
  38423. };
  38424. K.closure43.prototype = {
  38425. call$1: function($arguments) {
  38426. return K._rgb("rgb", $arguments);
  38427. },
  38428. $signature: 4
  38429. };
  38430. K.closure44.prototype = {
  38431. call$1: function($arguments) {
  38432. return K._rgb("rgb", $arguments);
  38433. },
  38434. $signature: 4
  38435. };
  38436. K.closure45.prototype = {
  38437. call$1: function($arguments) {
  38438. return K._rgbTwoArg("rgb", $arguments);
  38439. },
  38440. $signature: 4
  38441. };
  38442. K.closure46.prototype = {
  38443. call$1: function($arguments) {
  38444. var parsed = K._parseChannels("rgb", H.setRuntimeTypeInfo(["$red", "$green", "$blue"], type$.JSArray_String), J.get$first$ax($arguments));
  38445. return parsed instanceof D.SassString ? parsed : K._rgb("rgb", type$.List_Value._as(parsed));
  38446. },
  38447. $signature: 4
  38448. };
  38449. K.closure47.prototype = {
  38450. call$1: function($arguments) {
  38451. return K._rgb("rgba", $arguments);
  38452. },
  38453. $signature: 4
  38454. };
  38455. K.closure48.prototype = {
  38456. call$1: function($arguments) {
  38457. return K._rgb("rgba", $arguments);
  38458. },
  38459. $signature: 4
  38460. };
  38461. K.closure49.prototype = {
  38462. call$1: function($arguments) {
  38463. return K._rgbTwoArg("rgba", $arguments);
  38464. },
  38465. $signature: 4
  38466. };
  38467. K.closure50.prototype = {
  38468. call$1: function($arguments) {
  38469. var parsed = K._parseChannels("rgba", H.setRuntimeTypeInfo(["$red", "$green", "$blue"], type$.JSArray_String), J.get$first$ax($arguments));
  38470. return parsed instanceof D.SassString ? parsed : K._rgb("rgba", type$.List_Value._as(parsed));
  38471. },
  38472. $signature: 4
  38473. };
  38474. K.closure51.prototype = {
  38475. call$1: function($arguments) {
  38476. var color, t2,
  38477. t1 = J.getInterceptor$asx($arguments),
  38478. weight = t1.$index($arguments, 1).assertNumber$1("weight");
  38479. if (t1.$index($arguments, 0) instanceof T.SassNumber) {
  38480. if (weight.value !== 100 || !weight.hasUnit$1("%"))
  38481. throw H.wrapException("Only one argument may be passed to the plain-CSS invert() function.");
  38482. return K._functionString("invert", t1.take$1($arguments, 1));
  38483. }
  38484. color = t1.$index($arguments, 0).assertColor$1("color");
  38485. t1 = color.get$red();
  38486. t2 = color.get$green();
  38487. return K._mixColors(color.changeRgb$3$blue$green$red(255 - color.get$blue(), 255 - t2, 255 - t1), color, weight);
  38488. },
  38489. $signature: 4
  38490. };
  38491. K.closure52.prototype = {
  38492. call$1: function($arguments) {
  38493. return K._hsl("hsl", $arguments);
  38494. },
  38495. $signature: 4
  38496. };
  38497. K.closure53.prototype = {
  38498. call$1: function($arguments) {
  38499. return K._hsl("hsl", $arguments);
  38500. },
  38501. $signature: 4
  38502. };
  38503. K.closure54.prototype = {
  38504. call$1: function($arguments) {
  38505. var t1 = J.getInterceptor$asx($arguments);
  38506. if (t1.$index($arguments, 0).get$isVar() || t1.$index($arguments, 1).get$isVar())
  38507. return K._functionString("hsl", $arguments);
  38508. else
  38509. throw H.wrapException(E.SassScriptException$("Missing argument $lightness."));
  38510. },
  38511. $signature: 12
  38512. };
  38513. K.closure55.prototype = {
  38514. call$1: function($arguments) {
  38515. var parsed = K._parseChannels("hsl", H.setRuntimeTypeInfo(["$hue", "$saturation", "$lightness"], type$.JSArray_String), J.get$first$ax($arguments));
  38516. return parsed instanceof D.SassString ? parsed : K._hsl("hsl", type$.List_Value._as(parsed));
  38517. },
  38518. $signature: 4
  38519. };
  38520. K.closure56.prototype = {
  38521. call$1: function($arguments) {
  38522. return K._hsl("hsla", $arguments);
  38523. },
  38524. $signature: 4
  38525. };
  38526. K.closure57.prototype = {
  38527. call$1: function($arguments) {
  38528. return K._hsl("hsla", $arguments);
  38529. },
  38530. $signature: 4
  38531. };
  38532. K.closure58.prototype = {
  38533. call$1: function($arguments) {
  38534. var t1 = J.getInterceptor$asx($arguments);
  38535. if (t1.$index($arguments, 0).get$isVar() || t1.$index($arguments, 1).get$isVar())
  38536. return K._functionString("hsla", $arguments);
  38537. else
  38538. throw H.wrapException(E.SassScriptException$("Missing argument $lightness."));
  38539. },
  38540. $signature: 12
  38541. };
  38542. K.closure59.prototype = {
  38543. call$1: function($arguments) {
  38544. var parsed = K._parseChannels("hsla", H.setRuntimeTypeInfo(["$hue", "$saturation", "$lightness"], type$.JSArray_String), J.get$first$ax($arguments));
  38545. return parsed instanceof D.SassString ? parsed : K._hsl("hsla", type$.List_Value._as(parsed));
  38546. },
  38547. $signature: 4
  38548. };
  38549. K.closure60.prototype = {
  38550. call$1: function($arguments) {
  38551. var t1 = J.getInterceptor$asx($arguments);
  38552. if (t1.$index($arguments, 0) instanceof T.SassNumber)
  38553. return K._functionString("grayscale", $arguments);
  38554. return t1.$index($arguments, 0).assertColor$1("color").changeHsl$1$saturation(0);
  38555. },
  38556. $signature: 4
  38557. };
  38558. K.closure61.prototype = {
  38559. call$1: function($arguments) {
  38560. var t1 = J.getInterceptor$asx($arguments),
  38561. color = t1.$index($arguments, 0).assertColor$1("color"),
  38562. degrees = t1.$index($arguments, 1).assertNumber$1("degrees");
  38563. return color.changeHsl$1$hue(color.get$hue() + degrees.value);
  38564. },
  38565. $signature: 21
  38566. };
  38567. K.closure62.prototype = {
  38568. call$1: function($arguments) {
  38569. var t1 = J.getInterceptor$asx($arguments),
  38570. color = t1.$index($arguments, 0).assertColor$1("color"),
  38571. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  38572. return color.changeHsl$1$lightness(C.JSNumber_methods.clamp$2(color.get$lightness() + amount.valueInRange$3(0, 100, "amount"), 0, 100));
  38573. },
  38574. $signature: 21
  38575. };
  38576. K.closure63.prototype = {
  38577. call$1: function($arguments) {
  38578. var t1 = J.getInterceptor$asx($arguments),
  38579. color = t1.$index($arguments, 0).assertColor$1("color"),
  38580. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  38581. return color.changeHsl$1$lightness(C.JSNumber_methods.clamp$2(color.get$lightness() - amount.valueInRange$3(0, 100, "amount"), 0, 100));
  38582. },
  38583. $signature: 21
  38584. };
  38585. K.closure64.prototype = {
  38586. call$1: function($arguments) {
  38587. return new D.SassString("saturate(" + N.serializeValue0(J.$index$asx($arguments, 0).assertNumber$1("amount"), false, true) + ")", false);
  38588. },
  38589. $signature: 12
  38590. };
  38591. K.closure65.prototype = {
  38592. call$1: function($arguments) {
  38593. var t1 = J.getInterceptor$asx($arguments),
  38594. color = t1.$index($arguments, 0).assertColor$1("color"),
  38595. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  38596. return color.changeHsl$1$saturation(C.JSNumber_methods.clamp$2(color.get$saturation() + amount.valueInRange$3(0, 100, "amount"), 0, 100));
  38597. },
  38598. $signature: 21
  38599. };
  38600. K.closure66.prototype = {
  38601. call$1: function($arguments) {
  38602. var t1 = J.getInterceptor$asx($arguments),
  38603. color = t1.$index($arguments, 0).assertColor$1("color"),
  38604. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  38605. return color.changeHsl$1$saturation(C.JSNumber_methods.clamp$2(color.get$saturation() - amount.valueInRange$3(0, 100, "amount"), 0, 100));
  38606. },
  38607. $signature: 21
  38608. };
  38609. K.closure67.prototype = {
  38610. call$1: function($arguments) {
  38611. var color,
  38612. argument = J.$index$asx($arguments, 0);
  38613. if (argument instanceof D.SassString && !argument.hasQuotes && J.contains$1$asx(argument.text, $.$get$_microsoftFilterStart()))
  38614. return K._functionString("alpha", $arguments);
  38615. color = argument.assertColor$1("color");
  38616. return new T.SassNumber(color.alpha, C.List_empty, C.List_empty, null);
  38617. },
  38618. $signature: 4
  38619. };
  38620. K.closure68.prototype = {
  38621. call$1: function($arguments) {
  38622. var t1,
  38623. argList = J.$index$asx($arguments, 0).get$asList();
  38624. if (argList.length !== 0 && C.JSArray_methods.every$1(argList, new K._closure10()))
  38625. return K._functionString("alpha", $arguments);
  38626. t1 = argList.length;
  38627. if (t1 === 0)
  38628. throw H.wrapException(E.SassScriptException$("Missing argument $color."));
  38629. else
  38630. throw H.wrapException(E.SassScriptException$("Only 1 argument allowed, but " + t1 + " were passed."));
  38631. },
  38632. $signature: 12
  38633. };
  38634. K._closure10.prototype = {
  38635. call$1: function(argument) {
  38636. return argument instanceof D.SassString && !argument.hasQuotes && J.contains$1$asx(argument.text, $.$get$_microsoftFilterStart());
  38637. }
  38638. };
  38639. K.closure69.prototype = {
  38640. call$1: function($arguments) {
  38641. var color,
  38642. t1 = J.getInterceptor$asx($arguments);
  38643. if (t1.$index($arguments, 0) instanceof T.SassNumber)
  38644. return K._functionString("opacity", $arguments);
  38645. color = t1.$index($arguments, 0).assertColor$1("color");
  38646. return new T.SassNumber(color.alpha, C.List_empty, C.List_empty, null);
  38647. },
  38648. $signature: 4
  38649. };
  38650. K.closure96.prototype = {
  38651. call$1: function($arguments) {
  38652. var result, color, t2,
  38653. t1 = J.getInterceptor$asx($arguments),
  38654. weight = t1.$index($arguments, 1).assertNumber$1("weight");
  38655. if (t1.$index($arguments, 0) instanceof T.SassNumber) {
  38656. if (weight.value !== 100 || !weight.hasUnit$1("%"))
  38657. throw H.wrapException("Only one argument may be passed to the plain-CSS invert() function.");
  38658. result = K._functionString("invert", t1.take$1($arguments, 1));
  38659. N.warn("Passing a number to color.invert() is deprecated.\n\nRecommendation: " + result.toString$0(0), false);
  38660. return result;
  38661. }
  38662. color = t1.$index($arguments, 0).assertColor$1("color");
  38663. t1 = color.get$red();
  38664. t2 = color.get$green();
  38665. return K._mixColors(color.changeRgb$3$blue$green$red(255 - color.get$blue(), 255 - t2, 255 - t1), color, weight);
  38666. },
  38667. $signature: 4
  38668. };
  38669. K.closure97.prototype = {
  38670. call$1: function($arguments) {
  38671. var result,
  38672. t1 = J.getInterceptor$asx($arguments);
  38673. if (t1.$index($arguments, 0) instanceof T.SassNumber) {
  38674. result = K._functionString("grayscale", t1.take$1($arguments, 1));
  38675. N.warn("Passing a number to color.grayscale() is deprecated.\n\nRecommendation: " + result.toString$0(0), false);
  38676. return result;
  38677. }
  38678. return t1.$index($arguments, 0).assertColor$1("color").changeHsl$1$saturation(0);
  38679. },
  38680. $signature: 4
  38681. };
  38682. K.closure98.prototype = {
  38683. call$1: function($arguments) {
  38684. var result, color,
  38685. argument = J.$index$asx($arguments, 0);
  38686. if (argument instanceof D.SassString && !argument.hasQuotes && J.contains$1$asx(argument.text, $.$get$_microsoftFilterStart())) {
  38687. result = K._functionString("alpha", $arguments);
  38688. N.warn("Using color.alpha() for a Microsoft filter is deprecated.\n\nRecommendation: " + result.toString$0(0), false);
  38689. return result;
  38690. }
  38691. color = argument.assertColor$1("color");
  38692. return new T.SassNumber(color.alpha, C.List_empty, C.List_empty, null);
  38693. },
  38694. $signature: 4
  38695. };
  38696. K.closure99.prototype = {
  38697. call$1: function($arguments) {
  38698. var result,
  38699. t1 = J.getInterceptor$asx($arguments);
  38700. if (C.JSArray_methods.every$1(t1.$index($arguments, 0).get$asList(), new K._closure12())) {
  38701. result = K._functionString("alpha", $arguments);
  38702. N.warn("Using color.alpha() for a Microsoft filter is deprecated.\n\nRecommendation: " + result.toString$0(0), false);
  38703. return result;
  38704. }
  38705. throw H.wrapException(E.SassScriptException$("Only 1 argument allowed, but " + t1.get$length($arguments) + " were passed."));
  38706. },
  38707. $signature: 12
  38708. };
  38709. K._closure12.prototype = {
  38710. call$1: function(argument) {
  38711. return argument instanceof D.SassString && !argument.hasQuotes && J.contains$1$asx(argument.text, $.$get$_microsoftFilterStart());
  38712. }
  38713. };
  38714. K.closure100.prototype = {
  38715. call$1: function($arguments) {
  38716. var result, color,
  38717. t1 = J.getInterceptor$asx($arguments);
  38718. if (t1.$index($arguments, 0) instanceof T.SassNumber) {
  38719. result = K._functionString("opacity", $arguments);
  38720. N.warn("Passing a number to color.opacity() is deprecated.\n\nRecommendation: " + result.toString$0(0), false);
  38721. return result;
  38722. }
  38723. color = t1.$index($arguments, 0).assertColor$1("color");
  38724. return new T.SassNumber(color.alpha, C.List_empty, C.List_empty, null);
  38725. },
  38726. $signature: 4
  38727. };
  38728. K.closure83.prototype = {
  38729. call$1: function($arguments) {
  38730. var t1 = J.get$first$ax($arguments).assertColor$1("color").get$red();
  38731. return new T.SassNumber(t1, C.List_empty, C.List_empty, null);
  38732. },
  38733. $signature: 7
  38734. };
  38735. K.closure82.prototype = {
  38736. call$1: function($arguments) {
  38737. var t1 = J.get$first$ax($arguments).assertColor$1("color").get$green();
  38738. return new T.SassNumber(t1, C.List_empty, C.List_empty, null);
  38739. },
  38740. $signature: 7
  38741. };
  38742. K.closure81.prototype = {
  38743. call$1: function($arguments) {
  38744. var t1 = J.get$first$ax($arguments).assertColor$1("color").get$blue();
  38745. return new T.SassNumber(t1, C.List_empty, C.List_empty, null);
  38746. },
  38747. $signature: 7
  38748. };
  38749. K.closure80.prototype = {
  38750. call$1: function($arguments) {
  38751. var t1 = J.getInterceptor$asx($arguments);
  38752. return K._mixColors(t1.$index($arguments, 0).assertColor$1("color1"), t1.$index($arguments, 1).assertColor$1("color2"), t1.$index($arguments, 2).assertNumber$1("weight"));
  38753. },
  38754. $signature: 21
  38755. };
  38756. K.closure79.prototype = {
  38757. call$1: function($arguments) {
  38758. var t1 = J.get$first$ax($arguments).assertColor$1("color").get$hue(),
  38759. t2 = H.setRuntimeTypeInfo(["deg"], type$.JSArray_String);
  38760. t2 = P.List_List$unmodifiable(t2, type$.String);
  38761. return new T.SassNumber(t1, t2, C.List_empty, null);
  38762. },
  38763. $signature: 7
  38764. };
  38765. K.closure78.prototype = {
  38766. call$1: function($arguments) {
  38767. var t1 = J.get$first$ax($arguments).assertColor$1("color").get$saturation(),
  38768. t2 = H.setRuntimeTypeInfo(["%"], type$.JSArray_String);
  38769. t2 = P.List_List$unmodifiable(t2, type$.String);
  38770. return new T.SassNumber(t1, t2, C.List_empty, null);
  38771. },
  38772. $signature: 7
  38773. };
  38774. K.closure77.prototype = {
  38775. call$1: function($arguments) {
  38776. var t1 = J.get$first$ax($arguments).assertColor$1("color").get$lightness(),
  38777. t2 = H.setRuntimeTypeInfo(["%"], type$.JSArray_String);
  38778. t2 = P.List_List$unmodifiable(t2, type$.String);
  38779. return new T.SassNumber(t1, t2, C.List_empty, null);
  38780. },
  38781. $signature: 7
  38782. };
  38783. K.closure76.prototype = {
  38784. call$1: function($arguments) {
  38785. var color = J.$index$asx($arguments, 0).assertColor$1("color");
  38786. return color.changeHsl$1$hue(color.get$hue() + 180);
  38787. },
  38788. $signature: 21
  38789. };
  38790. K.closure74.prototype = {
  38791. call$1: function($arguments) {
  38792. var keywords, t2, red, green, blue, hue, saturation, lightness, alpha, hasRgb, hasHsl, t3, t4, t5, _null = null,
  38793. t1 = J.getInterceptor$asx($arguments),
  38794. color = t1.$index($arguments, 0).assertColor$1("color"),
  38795. argumentList = type$.SassArgumentList._as(t1.$index($arguments, 1));
  38796. if (argumentList._list$_contents.length !== 0)
  38797. throw H.wrapException(E.SassScriptException$("Only one positional argument is allowed. All other arguments must be passed by name."));
  38798. argumentList._wereKeywordsAccessed = true;
  38799. keywords = P.LinkedHashMap_LinkedHashMap$of(argumentList._keywords, type$.String, type$.Value);
  38800. t1 = new K.closure_getInRange0(keywords);
  38801. t2 = t1.call$3("red", -255, 255);
  38802. red = t2 == null ? _null : T.fuzzyRound(t2);
  38803. t2 = t1.call$3("green", -255, 255);
  38804. green = t2 == null ? _null : T.fuzzyRound(t2);
  38805. t2 = t1.call$3("blue", -255, 255);
  38806. blue = t2 == null ? _null : T.fuzzyRound(t2);
  38807. t2 = keywords.remove$1(0, "hue");
  38808. t2 = t2 == null ? _null : t2.assertNumber$1("hue");
  38809. hue = t2 == null ? _null : t2.value;
  38810. saturation = t1.call$3("saturation", -100, 100);
  38811. lightness = t1.call$3("lightness", -100, 100);
  38812. alpha = t1.call$3("alpha", -1, 1);
  38813. if (keywords.get$isNotEmpty(keywords))
  38814. throw H.wrapException(E.SassScriptException$("No " + B.pluralize("argument", keywords.get$length(keywords), _null) + " named " + H.S(B.toSentence(keywords.get$keys().map$1$1(0, new K._closure9(), type$.Object), "or")) + "."));
  38815. t1 = red == null;
  38816. hasRgb = !t1 || green != null || blue != null;
  38817. t2 = hue == null;
  38818. hasHsl = !t2 || saturation != null || lightness != null;
  38819. if (hasRgb) {
  38820. if (hasHsl)
  38821. throw H.wrapException(E.SassScriptException$("RGB parameters may not be passed along with HSL parameters."));
  38822. t2 = color.get$red();
  38823. t2 = H._asIntNullable(C.JSInt_methods.clamp$2(t2 + (t1 ? 0 : red), 0, 255));
  38824. t3 = color.get$green();
  38825. t1 = H._asIntNullable(C.JSInt_methods.clamp$2(t3 + (green == null ? 0 : green), 0, 255));
  38826. t3 = color.get$blue();
  38827. t3 = H._asIntNullable(C.JSInt_methods.clamp$2(t3 + (blue == null ? 0 : blue), 0, 255));
  38828. t4 = alpha == null ? 0 : alpha;
  38829. return color.changeRgb$4$alpha$blue$green$red(C.JSNumber_methods.clamp$2(color.alpha + t4, 0, 1), t3, t1, t2);
  38830. } else if (hasHsl) {
  38831. t1 = color.get$hue();
  38832. t2 = t2 ? 0 : hue;
  38833. t3 = color.get$saturation();
  38834. t3 = C.JSNumber_methods.clamp$2(t3 + (saturation == null ? 0 : saturation), 0, 100);
  38835. t4 = color.get$lightness();
  38836. t4 = C.JSNumber_methods.clamp$2(t4 + (lightness == null ? 0 : lightness), 0, 100);
  38837. t5 = alpha == null ? 0 : alpha;
  38838. return color.changeHsl$4$alpha$hue$lightness$saturation(C.JSNumber_methods.clamp$2(color.alpha + t5, 0, 1), t1 + t2, t4, t3);
  38839. } else if (alpha != null)
  38840. return color.changeAlpha$1(C.JSNumber_methods.clamp$2(color.alpha + alpha, 0, 1));
  38841. else
  38842. return color;
  38843. },
  38844. $signature: 21
  38845. };
  38846. K.closure_getInRange0.prototype = {
  38847. call$3: function($name, min, max) {
  38848. var t1 = this.keywords.remove$1(0, $name);
  38849. t1 = t1 == null ? null : t1.assertNumber$1($name);
  38850. return t1 == null ? null : t1.valueInRange$3(min, max, $name);
  38851. }
  38852. };
  38853. K._closure9.prototype = {
  38854. call$1: function($name) {
  38855. return "$" + H.S($name);
  38856. }
  38857. };
  38858. K.closure73.prototype = {
  38859. call$1: function($arguments) {
  38860. var keywords, t2, red, green, blue, saturation, lightness, alpha, hasRgb, hasHsl, t3, t4,
  38861. t1 = J.getInterceptor$asx($arguments),
  38862. color = t1.$index($arguments, 0).assertColor$1("color"),
  38863. argumentList = type$.SassArgumentList._as(t1.$index($arguments, 1));
  38864. if (argumentList._list$_contents.length !== 0)
  38865. throw H.wrapException(E.SassScriptException$("Only one positional argument is allowed. All other arguments must be passed by name."));
  38866. argumentList._wereKeywordsAccessed = true;
  38867. keywords = P.LinkedHashMap_LinkedHashMap$of(argumentList._keywords, type$.String, type$.Value);
  38868. t1 = new K.closure_getScale(keywords);
  38869. t2 = new K.closure_scaleValue();
  38870. red = t1.call$1("red");
  38871. green = t1.call$1("green");
  38872. blue = t1.call$1("blue");
  38873. saturation = t1.call$1("saturation");
  38874. lightness = t1.call$1("lightness");
  38875. alpha = t1.call$1("alpha");
  38876. if (keywords.get$isNotEmpty(keywords))
  38877. throw H.wrapException(E.SassScriptException$("No " + B.pluralize("argument", keywords.get$length(keywords), null) + " named " + H.S(B.toSentence(keywords.get$keys().map$1$1(0, new K._closure8(), type$.Object), "or")) + "."));
  38878. hasRgb = red != null || green != null || blue != null;
  38879. hasHsl = saturation != null || lightness != null;
  38880. if (hasRgb) {
  38881. if (hasHsl)
  38882. throw H.wrapException(E.SassScriptException$("RGB parameters may not be passed along with HSL parameters."));
  38883. t1 = T.fuzzyRound(t2.call$3(color.get$red(), red, 255));
  38884. t3 = T.fuzzyRound(t2.call$3(color.get$green(), green, 255));
  38885. t4 = T.fuzzyRound(t2.call$3(color.get$blue(), blue, 255));
  38886. return color.changeRgb$4$alpha$blue$green$red(t2.call$3(color.alpha, alpha, 1), t4, t3, t1);
  38887. } else if (hasHsl) {
  38888. t1 = t2.call$3(color.get$saturation(), saturation, 100);
  38889. t3 = t2.call$3(color.get$lightness(), lightness, 100);
  38890. return color.changeHsl$3$alpha$lightness$saturation(t2.call$3(color.alpha, alpha, 1), t3, t1);
  38891. } else if (alpha != null)
  38892. return color.changeAlpha$1(t2.call$3(color.alpha, alpha, 1));
  38893. else
  38894. return color;
  38895. },
  38896. $signature: 21
  38897. };
  38898. K.closure_getScale.prototype = {
  38899. call$1: function($name) {
  38900. var number,
  38901. value = this.keywords.remove$1(0, $name);
  38902. if (value == null)
  38903. return null;
  38904. number = value.assertNumber$1($name);
  38905. number.assertUnit$2("%", $name);
  38906. return number.valueInRange$3(-100, 100, $name) / 100;
  38907. }
  38908. };
  38909. K.closure_scaleValue.prototype = {
  38910. call$3: function(current, scale, max) {
  38911. if (scale == null)
  38912. return current;
  38913. return current + (scale > 0 ? max - current : current) * scale;
  38914. }
  38915. };
  38916. K._closure8.prototype = {
  38917. call$1: function($name) {
  38918. return "$" + H.S($name);
  38919. }
  38920. };
  38921. K.closure72.prototype = {
  38922. call$1: function($arguments) {
  38923. var keywords, t2, red, green, blue, hue, saturation, lightness, alpha, hasRgb, hasHsl, _null = null,
  38924. t1 = J.getInterceptor$asx($arguments),
  38925. color = t1.$index($arguments, 0).assertColor$1("color"),
  38926. argumentList = type$.SassArgumentList._as(t1.$index($arguments, 1));
  38927. if (argumentList._list$_contents.length !== 0)
  38928. throw H.wrapException(E.SassScriptException$("Only one positional argument is allowed. All other arguments must be passed by name."));
  38929. argumentList._wereKeywordsAccessed = true;
  38930. keywords = P.LinkedHashMap_LinkedHashMap$of(argumentList._keywords, type$.String, type$.Value);
  38931. t1 = new K.closure_getInRange(keywords);
  38932. t2 = t1.call$3("red", 0, 255);
  38933. red = t2 == null ? _null : T.fuzzyRound(t2);
  38934. t2 = t1.call$3("green", 0, 255);
  38935. green = t2 == null ? _null : T.fuzzyRound(t2);
  38936. t2 = t1.call$3("blue", 0, 255);
  38937. blue = t2 == null ? _null : T.fuzzyRound(t2);
  38938. t2 = keywords.remove$1(0, "hue");
  38939. t2 = t2 == null ? _null : t2.assertNumber$1("hue");
  38940. hue = t2 == null ? _null : t2.value;
  38941. saturation = t1.call$3("saturation", 0, 100);
  38942. lightness = t1.call$3("lightness", 0, 100);
  38943. alpha = t1.call$3("alpha", 0, 1);
  38944. if (keywords.get$isNotEmpty(keywords))
  38945. throw H.wrapException(E.SassScriptException$("No " + B.pluralize("argument", keywords.get$length(keywords), _null) + " named " + H.S(B.toSentence(keywords.get$keys().map$1$1(0, new K._closure7(), type$.Object), "or")) + "."));
  38946. hasRgb = red != null || green != null || blue != null;
  38947. hasHsl = hue != null || saturation != null || lightness != null;
  38948. if (hasRgb) {
  38949. if (hasHsl)
  38950. throw H.wrapException(E.SassScriptException$("RGB parameters may not be passed along with HSL parameters."));
  38951. return color.changeRgb$4$alpha$blue$green$red(alpha, blue, green, red);
  38952. } else if (hasHsl)
  38953. return color.changeHsl$4$alpha$hue$lightness$saturation(alpha, hue, lightness, saturation);
  38954. else if (alpha != null)
  38955. return color.changeAlpha$1(alpha);
  38956. else
  38957. return color;
  38958. },
  38959. $signature: 21
  38960. };
  38961. K.closure_getInRange.prototype = {
  38962. call$3: function($name, min, max) {
  38963. var t1 = this.keywords.remove$1(0, $name);
  38964. t1 = t1 == null ? null : t1.assertNumber$1($name);
  38965. return t1 == null ? null : t1.valueInRange$3(min, max, $name);
  38966. }
  38967. };
  38968. K._closure7.prototype = {
  38969. call$1: function($name) {
  38970. return "$" + H.S($name);
  38971. }
  38972. };
  38973. K.closure75.prototype = {
  38974. call$1: function($arguments) {
  38975. var color = J.$index$asx($arguments, 0).assertColor$1("color"),
  38976. t1 = new K.closure_hexString();
  38977. return new D.SassString("#" + H.S(t1.call$1(T.fuzzyRound(color.alpha * 255))) + H.S(t1.call$1(color.get$red())) + H.S(t1.call$1(color.get$green())) + H.S(t1.call$1(color.get$blue())), false);
  38978. },
  38979. $signature: 12
  38980. };
  38981. K.closure_hexString.prototype = {
  38982. call$1: function(component) {
  38983. return C.JSString_methods.padLeft$2(J.toRadixString$1$n(component, 16), 2, "0").toUpperCase();
  38984. },
  38985. $signature: 36
  38986. };
  38987. K._functionString_closure.prototype = {
  38988. call$1: function(argument) {
  38989. argument.toString;
  38990. return N.serializeValue0(argument, false, true);
  38991. }
  38992. };
  38993. K._removedColorFunction_closure.prototype = {
  38994. call$1: function($arguments) {
  38995. var t1 = this.name,
  38996. t2 = J.getInterceptor$asx($arguments),
  38997. t3 = "The function " + t1 + "() isn't in the sass:color module.\n\nRecommendation: color.adjust(" + H.S(t2.$index($arguments, 0)) + ", $" + this.argument + ": ";
  38998. throw H.wrapException(E.SassScriptException$(t3 + (this.negative ? "-" : "") + H.S(t2.$index($arguments, 1)) + ")\n\nMore info: https://sass-lang.com/documentation/functions/color#" + t1));
  38999. },
  39000. $signature: 59
  39001. };
  39002. K._parseChannels_closure.prototype = {
  39003. call$1: function(value) {
  39004. return value.get$isVar();
  39005. }
  39006. };
  39007. D.closure42.prototype = {
  39008. call$1: function($arguments) {
  39009. var t1 = J.$index$asx($arguments, 0).get$asList().length;
  39010. return new T.SassNumber(t1, C.List_empty, C.List_empty, null);
  39011. },
  39012. $signature: 7
  39013. };
  39014. D.closure41.prototype = {
  39015. call$1: function($arguments) {
  39016. var t1 = J.getInterceptor$asx($arguments),
  39017. list = t1.$index($arguments, 0),
  39018. index = t1.$index($arguments, 1);
  39019. return list.get$asList()[list.sassIndexToListIndex$2(index, "n")];
  39020. },
  39021. $signature: 4
  39022. };
  39023. D.closure40.prototype = {
  39024. call$1: function($arguments) {
  39025. var t1 = J.getInterceptor$asx($arguments),
  39026. list = t1.$index($arguments, 0),
  39027. index = t1.$index($arguments, 1),
  39028. value = t1.$index($arguments, 2),
  39029. t2 = list.get$asList(),
  39030. newList = H.setRuntimeTypeInfo(t2.slice(0), H._arrayInstanceType(t2));
  39031. newList[list.sassIndexToListIndex$2(index, "n")] = value;
  39032. return t1.$index($arguments, 0).changeListContents$1(newList);
  39033. },
  39034. $signature: 22
  39035. };
  39036. D.closure39.prototype = {
  39037. call$1: function($arguments) {
  39038. var separator, bracketed, t2, t3, _i,
  39039. t1 = J.getInterceptor$asx($arguments),
  39040. list1 = t1.$index($arguments, 0),
  39041. list2 = t1.$index($arguments, 1),
  39042. separatorParam = t1.$index($arguments, 2).assertString$1("separator"),
  39043. bracketedParam = t1.$index($arguments, 3);
  39044. t1 = separatorParam.text;
  39045. if (t1 === "auto")
  39046. if (list1.get$separator() !== C.ListSeparator_undecided)
  39047. separator = list1.get$separator();
  39048. else
  39049. separator = list2.get$separator() !== C.ListSeparator_undecided ? list2.get$separator() : C.ListSeparator_space;
  39050. else if (t1 === "space")
  39051. separator = C.ListSeparator_space;
  39052. else {
  39053. if (t1 !== "comma")
  39054. throw H.wrapException(E.SassScriptException$('$separator: Must be "space", "comma", or "auto".'));
  39055. separator = C.ListSeparator_comma;
  39056. }
  39057. bracketed = bracketedParam instanceof D.SassString && bracketedParam.text === "auto" ? list1.get$hasBrackets() : bracketedParam.get$isTruthy();
  39058. t1 = H.setRuntimeTypeInfo([], type$.JSArray_Value);
  39059. for (t2 = list1.get$asList(), t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i)
  39060. t1.push(t2[_i]);
  39061. for (t2 = list2.get$asList(), t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i)
  39062. t1.push(t2[_i]);
  39063. return D.SassList$(t1, separator, bracketed);
  39064. },
  39065. $signature: 22
  39066. };
  39067. D.closure38.prototype = {
  39068. call$1: function($arguments) {
  39069. var separator, t2, t3, _i,
  39070. t1 = J.getInterceptor$asx($arguments),
  39071. list = t1.$index($arguments, 0),
  39072. value = t1.$index($arguments, 1);
  39073. t1 = t1.$index($arguments, 2).assertString$1("separator").text;
  39074. if (t1 === "auto")
  39075. separator = list.get$separator() === C.ListSeparator_undecided ? C.ListSeparator_space : list.get$separator();
  39076. else if (t1 === "space")
  39077. separator = C.ListSeparator_space;
  39078. else {
  39079. if (t1 !== "comma")
  39080. throw H.wrapException(E.SassScriptException$('$separator: Must be "space", "comma", or "auto".'));
  39081. separator = C.ListSeparator_comma;
  39082. }
  39083. t1 = H.setRuntimeTypeInfo([], type$.JSArray_Value);
  39084. for (t2 = list.get$asList(), t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i)
  39085. t1.push(t2[_i]);
  39086. t1.push(value);
  39087. return list.changeListContents$2$separator(t1, separator);
  39088. },
  39089. $signature: 22
  39090. };
  39091. D.closure37.prototype = {
  39092. call$1: function($arguments) {
  39093. var results, t2, result, _box_0 = {},
  39094. t1 = J.$index$asx($arguments, 0).get$asList(),
  39095. lists = new H.MappedListIterable(t1, new D._closure4(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,List<Value>>")).toList$0(0);
  39096. if (lists.length === 0)
  39097. return C.SassList_lmy;
  39098. _box_0.i = 0;
  39099. results = H.setRuntimeTypeInfo([], type$.JSArray_SassList);
  39100. for (t1 = H._arrayInstanceType(lists)._eval$1("MappedListIterable<1,Value>"), t2 = type$.Value; C.JSArray_methods.every$1(lists, new D._closure5(_box_0));) {
  39101. result = P.List_List$from(new H.MappedListIterable(lists, new D._closure6(_box_0), t1), false, t2);
  39102. result.fixed$length = Array;
  39103. result.immutable$list = Array;
  39104. results.push(new D.SassList(result, C.ListSeparator_space, false));
  39105. ++_box_0.i;
  39106. }
  39107. return D.SassList$(results, C.ListSeparator_comma, false);
  39108. },
  39109. $signature: 22
  39110. };
  39111. D._closure4.prototype = {
  39112. call$1: function(list) {
  39113. return list.get$asList();
  39114. }
  39115. };
  39116. D._closure5.prototype = {
  39117. call$1: function(list) {
  39118. return this._box_0.i !== J.get$length$asx(list);
  39119. }
  39120. };
  39121. D._closure6.prototype = {
  39122. call$1: function(list) {
  39123. return J.$index$asx(list, this._box_0.i);
  39124. },
  39125. $signature: 4
  39126. };
  39127. D.closure36.prototype = {
  39128. call$1: function($arguments) {
  39129. var t1 = J.getInterceptor$asx($arguments),
  39130. index = C.JSArray_methods.indexOf$1(t1.$index($arguments, 0).get$asList(), t1.$index($arguments, 1));
  39131. if (index === -1)
  39132. t1 = C.C_SassNull0;
  39133. else
  39134. t1 = new T.SassNumber(index + 1, C.List_empty, C.List_empty, null);
  39135. return t1;
  39136. },
  39137. $signature: 4
  39138. };
  39139. D.closure34.prototype = {
  39140. call$1: function($arguments) {
  39141. return J.$index$asx($arguments, 0).get$separator() === C.ListSeparator_comma ? new D.SassString("comma", false) : new D.SassString("space", false);
  39142. },
  39143. $signature: 12
  39144. };
  39145. D.closure35.prototype = {
  39146. call$1: function($arguments) {
  39147. return J.$index$asx($arguments, 0).get$hasBrackets() ? C.SassBoolean_true0 : C.SassBoolean_false0;
  39148. },
  39149. $signature: 13
  39150. };
  39151. A.closure33.prototype = {
  39152. call$1: function($arguments) {
  39153. var t1 = J.getInterceptor$asx($arguments);
  39154. t1 = t1.$index($arguments, 0).assertMap$1("map").contents.$index(0, t1.$index($arguments, 1));
  39155. return t1 == null ? C.C_SassNull0 : t1;
  39156. },
  39157. $signature: 4
  39158. };
  39159. A.closure32.prototype = {
  39160. call$1: function($arguments) {
  39161. var t2, t3, t4,
  39162. t1 = J.getInterceptor$asx($arguments),
  39163. map1 = t1.$index($arguments, 0).assertMap$1("map1"),
  39164. map2 = t1.$index($arguments, 1).assertMap$1("map2");
  39165. t1 = type$.Value;
  39166. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  39167. for (t3 = map1.contents.get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  39168. t4 = t3.get$current(t3);
  39169. t2.$indexSet(0, t4.key, t4.value);
  39170. }
  39171. for (t3 = map2.contents.get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  39172. t4 = t3.get$current(t3);
  39173. t2.$indexSet(0, t4.key, t4.value);
  39174. }
  39175. return new A.SassMap(H.ConstantMap_ConstantMap$from(t2, t1, t1));
  39176. },
  39177. $signature: 30
  39178. };
  39179. A.closure30.prototype = {
  39180. call$1: function($arguments) {
  39181. return J.$index$asx($arguments, 0).assertMap$1("map");
  39182. },
  39183. $signature: 30
  39184. };
  39185. A.closure31.prototype = {
  39186. call$1: function($arguments) {
  39187. var t3, _i, mutableMap,
  39188. t1 = J.getInterceptor$asx($arguments),
  39189. map = t1.$index($arguments, 0).assertMap$1("map"),
  39190. t2 = H.setRuntimeTypeInfo([], type$.JSArray_Value);
  39191. t2.push(t1.$index($arguments, 1));
  39192. for (t1 = t1.$index($arguments, 2).get$asList(), t3 = t1.length, _i = 0; _i < t1.length; t1.length === t3 || (0, H.throwConcurrentModificationError)(t1), ++_i)
  39193. t2.push(t1[_i]);
  39194. t1 = type$.Value;
  39195. mutableMap = P.LinkedHashMap_LinkedHashMap$of(map.contents, t1, t1);
  39196. for (t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i)
  39197. mutableMap.remove$1(0, t2[_i]);
  39198. return new A.SassMap(H.ConstantMap_ConstantMap$from(mutableMap, t1, t1));
  39199. },
  39200. $signature: 30
  39201. };
  39202. A.closure29.prototype = {
  39203. call$1: function($arguments) {
  39204. return D.SassList$(J.$index$asx($arguments, 0).assertMap$1("map").contents.get$keys(), C.ListSeparator_comma, false);
  39205. },
  39206. $signature: 22
  39207. };
  39208. A.closure28.prototype = {
  39209. call$1: function($arguments) {
  39210. return D.SassList$(J.$index$asx($arguments, 0).assertMap$1("map").contents.get$values(), C.ListSeparator_comma, false);
  39211. },
  39212. $signature: 22
  39213. };
  39214. A.closure27.prototype = {
  39215. call$1: function($arguments) {
  39216. var t1 = J.getInterceptor$asx($arguments);
  39217. return t1.$index($arguments, 0).assertMap$1("map").contents.containsKey$1(t1.$index($arguments, 1)) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  39218. },
  39219. $signature: 13
  39220. };
  39221. K.closure25.prototype = {
  39222. call$1: function(value) {
  39223. return J.ceil$0$n(value);
  39224. },
  39225. $signature: 34
  39226. };
  39227. K.closure91.prototype = {
  39228. call$1: function($arguments) {
  39229. var t2, t3, arg2, arg2Name, unit1, unit2,
  39230. _s11_ = "is unitless",
  39231. t1 = J.getInterceptor$asx($arguments),
  39232. min = t1.$index($arguments, 0).assertNumber$1("min"),
  39233. number = t1.$index($arguments, 1).assertNumber$1("number"),
  39234. max = t1.$index($arguments, 2).assertNumber$1("max");
  39235. t1 = min.numeratorUnits.length === 0;
  39236. t2 = !t1 || min.denominatorUnits.length !== 0;
  39237. t3 = number.numeratorUnits.length === 0;
  39238. if (t2 === (!t3 || number.denominatorUnits.length !== 0)) {
  39239. t2 = !t3 || number.denominatorUnits.length !== 0;
  39240. t2 = t2 === (max.numeratorUnits.length !== 0 || max.denominatorUnits.length !== 0);
  39241. } else
  39242. t2 = false;
  39243. if (t2) {
  39244. if (min.greaterThanOrEquals$1(max).value)
  39245. return min;
  39246. if (min.greaterThanOrEquals$1(number).value)
  39247. return min;
  39248. if (number.greaterThanOrEquals$1(max).value)
  39249. return max;
  39250. return number;
  39251. }
  39252. t2 = !t1 || min.denominatorUnits.length !== 0;
  39253. arg2 = t2 !== (!t3 || number.denominatorUnits.length !== 0) ? number : max;
  39254. t2 = !t1 || min.denominatorUnits.length !== 0;
  39255. arg2Name = t2 !== (!t3 || number.denominatorUnits.length !== 0) ? "$number" : "$max";
  39256. unit1 = !t1 || min.denominatorUnits.length !== 0 ? "has unit " + min.get$unitString() : _s11_;
  39257. unit2 = arg2.numeratorUnits.length !== 0 || arg2.denominatorUnits.length !== 0 ? "has unit " + arg2.get$unitString() : _s11_;
  39258. throw H.wrapException(E.SassScriptException$("$min " + unit1 + " but " + arg2Name + " " + unit2 + ". Arguments must all have units or all be unitless."));
  39259. },
  39260. $signature: 7
  39261. };
  39262. K.closure24.prototype = {
  39263. call$1: function(value) {
  39264. return J.floor$0$n(value);
  39265. },
  39266. $signature: 34
  39267. };
  39268. K.closure23.prototype = {
  39269. call$1: function($arguments) {
  39270. var t1, t2, max, _i, number;
  39271. for (t1 = J.$index$asx($arguments, 0).get$asList(), t2 = t1.length, max = null, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  39272. number = t1[_i].assertNumber$0();
  39273. if (max == null || max.lessThan$1(number).value)
  39274. max = number;
  39275. }
  39276. if (max != null)
  39277. return max;
  39278. throw H.wrapException(E.SassScriptException$("At least one argument must be passed."));
  39279. },
  39280. $signature: 7
  39281. };
  39282. K.closure22.prototype = {
  39283. call$1: function($arguments) {
  39284. var t1, t2, min, _i, number;
  39285. for (t1 = J.$index$asx($arguments, 0).get$asList(), t2 = t1.length, min = null, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  39286. number = t1[_i].assertNumber$0();
  39287. if (min == null || min.greaterThan$1(number).value)
  39288. min = number;
  39289. }
  39290. if (min != null)
  39291. return min;
  39292. throw H.wrapException(E.SassScriptException$("At least one argument must be passed."));
  39293. },
  39294. $signature: 7
  39295. };
  39296. K.closure26.prototype = {
  39297. call$1: function(value) {
  39298. return Math.abs(value);
  39299. },
  39300. $signature: 68
  39301. };
  39302. K.closure89.prototype = {
  39303. call$1: function($arguments) {
  39304. var numeratorUnits, denominatorUnits, subtotal, i, number, t2, t3, t4, t5, t6, t7, result, unit1, unit2,
  39305. _s11_ = "is unitless",
  39306. t1 = J.$index$asx($arguments, 0).get$asList(),
  39307. numbers = new H.MappedListIterable(t1, new K._closure11(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,SassNumber>")).toList$0(0);
  39308. if (numbers.length === 0)
  39309. throw H.wrapException(E.SassScriptException$("At least one argument must be passed."));
  39310. t1 = numbers[0];
  39311. numeratorUnits = t1.numeratorUnits;
  39312. denominatorUnits = t1.denominatorUnits;
  39313. for (t1 = type$.String, subtotal = 0, i = 0; i < numbers.length; ++i) {
  39314. number = numbers[i];
  39315. t2 = number.numeratorUnits;
  39316. t3 = t2.length === 0;
  39317. t4 = !t3 || number.denominatorUnits.length !== 0;
  39318. t5 = numbers[0];
  39319. t6 = t5.numeratorUnits;
  39320. t7 = t6.length === 0;
  39321. if (t4 === (!t7 || t5.denominatorUnits.length !== 0)) {
  39322. t2 = number.valueInUnits$2(numeratorUnits, denominatorUnits);
  39323. result = P.List_List$from(numeratorUnits, false, t1);
  39324. result.fixed$length = Array;
  39325. result.immutable$list = Array;
  39326. result = P.List_List$from(denominatorUnits, false, t1);
  39327. result.fixed$length = Array;
  39328. result.immutable$list = Array;
  39329. H.checkNum(t2);
  39330. subtotal += Math.pow(t2, 2);
  39331. } else {
  39332. if (!t7 || t5.denominatorUnits.length !== 0)
  39333. unit1 = "has unit " + (!t7 || t5.denominatorUnits.length !== 0 ? t5._unitString$2(t6, t5.denominatorUnits) : "");
  39334. else
  39335. unit1 = _s11_;
  39336. if (!t3 || number.denominatorUnits.length !== 0)
  39337. unit2 = "has unit " + (!t3 || number.denominatorUnits.length !== 0 ? number._unitString$2(t2, number.denominatorUnits) : "");
  39338. else
  39339. unit2 = _s11_;
  39340. throw H.wrapException(E.SassScriptException$("Argument 1 " + unit1 + " but argument " + (i + 1) + " " + unit2 + ". Arguments must all have units or all be unitless."));
  39341. }
  39342. }
  39343. return T.SassNumber$withUnits(Math.sqrt(subtotal), denominatorUnits, numeratorUnits);
  39344. },
  39345. $signature: 7
  39346. };
  39347. K._closure11.prototype = {
  39348. call$1: function(argument) {
  39349. return argument.assertNumber$0();
  39350. }
  39351. };
  39352. K.closure88.prototype = {
  39353. call$1: function($arguments) {
  39354. var numberValue, base, baseValue, t2,
  39355. _s18_ = " to have no units.",
  39356. t1 = J.getInterceptor$asx($arguments),
  39357. number = t1.$index($arguments, 0).assertNumber$1("number");
  39358. if (number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0)
  39359. throw H.wrapException(E.SassScriptException$("$number: Expected " + number.toString$0(0) + _s18_));
  39360. numberValue = K._fuzzyRoundIfZero(number.value);
  39361. if (J.$eq$(t1.$index($arguments, 1), C.C_SassNull0)) {
  39362. t1 = Math.log(H.checkNum(numberValue));
  39363. return new T.SassNumber(t1, C.List_empty, C.List_empty, null);
  39364. }
  39365. base = t1.$index($arguments, 1).assertNumber$1("base");
  39366. if (base.numeratorUnits.length !== 0 || base.denominatorUnits.length !== 0)
  39367. throw H.wrapException(E.SassScriptException$("$base: Expected " + base.toString$0(0) + _s18_));
  39368. t1 = base.value;
  39369. baseValue = Math.abs(t1 - 1) < $.$get$epsilon() ? T.fuzzyRound(t1) : K._fuzzyRoundIfZero(t1);
  39370. t1 = Math.log(H.checkNum(numberValue));
  39371. t2 = Math.log(H.checkNum(baseValue));
  39372. return new T.SassNumber(t1 / t2, C.List_empty, C.List_empty, null);
  39373. },
  39374. $signature: 7
  39375. };
  39376. K.closure87.prototype = {
  39377. call$1: function($arguments) {
  39378. var baseValue, exponentValue, t2, _null = null,
  39379. _s18_ = " to have no units.",
  39380. t1 = J.getInterceptor$asx($arguments),
  39381. base = t1.$index($arguments, 0).assertNumber$1("base"),
  39382. exponent = t1.$index($arguments, 1).assertNumber$1("exponent");
  39383. if (base.numeratorUnits.length !== 0 || base.denominatorUnits.length !== 0)
  39384. throw H.wrapException(E.SassScriptException$("$base: Expected " + base.toString$0(0) + _s18_));
  39385. else if (exponent.numeratorUnits.length !== 0 || exponent.denominatorUnits.length !== 0)
  39386. throw H.wrapException(E.SassScriptException$("$exponent: Expected " + exponent.toString$0(0) + _s18_));
  39387. baseValue = K._fuzzyRoundIfZero(base.value);
  39388. exponentValue = K._fuzzyRoundIfZero(exponent.value);
  39389. t1 = $.$get$epsilon();
  39390. if (Math.abs(Math.abs(baseValue) - 1) < t1) {
  39391. exponentValue.toString;
  39392. t2 = exponentValue == 1 / 0 || exponentValue == -1 / 0;
  39393. } else
  39394. t2 = false;
  39395. if (t2)
  39396. return new T.SassNumber(0 / 0, C.List_empty, C.List_empty, _null);
  39397. else if (Math.abs(baseValue - 0) < t1) {
  39398. exponentValue.toString;
  39399. if (isFinite(exponentValue))
  39400. if (T.fuzzyIsInt(exponentValue))
  39401. t1 = C.JSInt_methods.$mod(T.fuzzyIsInt(exponentValue) ? C.JSNumber_methods.round$0(exponentValue) : _null, 2) === 1;
  39402. else
  39403. t1 = false;
  39404. else
  39405. t1 = false;
  39406. if (t1)
  39407. exponentValue = T.fuzzyRound(exponentValue);
  39408. } else {
  39409. if (isFinite(baseValue))
  39410. if (baseValue < 0 && true) {
  39411. exponentValue.toString;
  39412. t1 = isFinite(exponentValue) && T.fuzzyIsInt(exponentValue);
  39413. } else
  39414. t1 = false;
  39415. else
  39416. t1 = false;
  39417. if (t1)
  39418. exponentValue = T.fuzzyRound(exponentValue);
  39419. else {
  39420. if (baseValue == 1 / 0 || baseValue == -1 / 0)
  39421. if (baseValue < 0 && true) {
  39422. exponentValue.toString;
  39423. if (isFinite(exponentValue))
  39424. if (T.fuzzyIsInt(exponentValue))
  39425. t1 = C.JSInt_methods.$mod(T.fuzzyIsInt(exponentValue) ? C.JSNumber_methods.round$0(exponentValue) : _null, 2) === 1;
  39426. else
  39427. t1 = false;
  39428. else
  39429. t1 = false;
  39430. } else
  39431. t1 = false;
  39432. else
  39433. t1 = false;
  39434. if (t1)
  39435. exponentValue = T.fuzzyRound(exponentValue);
  39436. }
  39437. }
  39438. H.checkNum(exponentValue);
  39439. t1 = Math.pow(baseValue, exponentValue);
  39440. return new T.SassNumber(t1, C.List_empty, C.List_empty, _null);
  39441. },
  39442. $signature: 7
  39443. };
  39444. K.closure85.prototype = {
  39445. call$1: function($arguments) {
  39446. var t1,
  39447. number = J.$index$asx($arguments, 0).assertNumber$1("number");
  39448. if (number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0)
  39449. throw H.wrapException(E.SassScriptException$("$number: Expected " + number.toString$0(0) + " to have no units."));
  39450. t1 = Math.sqrt(H.checkNum(K._fuzzyRoundIfZero(number.value)));
  39451. return new T.SassNumber(t1, C.List_empty, C.List_empty, null);
  39452. },
  39453. $signature: 7
  39454. };
  39455. K.closure95.prototype = {
  39456. call$1: function($arguments) {
  39457. var numberValue,
  39458. number = J.$index$asx($arguments, 0).assertNumber$1("number");
  39459. if (number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0)
  39460. throw H.wrapException(E.SassScriptException$("$number: Expected " + number.toString$0(0) + " to have no units."));
  39461. numberValue = number.value;
  39462. if (Math.abs(Math.abs(numberValue) - 1) < $.$get$epsilon())
  39463. numberValue = T.fuzzyRound(numberValue);
  39464. return T.SassNumber$withUnits(Math.acos(numberValue) * 180 / 3.141592653589793, null, H.setRuntimeTypeInfo(["deg"], type$.JSArray_String));
  39465. },
  39466. $signature: 7
  39467. };
  39468. K.closure94.prototype = {
  39469. call$1: function($arguments) {
  39470. var t1,
  39471. number = J.$index$asx($arguments, 0).assertNumber$1("number");
  39472. if (number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0)
  39473. throw H.wrapException(E.SassScriptException$("$number: Expected " + number.toString$0(0) + " to have no units."));
  39474. t1 = number.value;
  39475. return T.SassNumber$withUnits(Math.asin(H.checkNum(Math.abs(Math.abs(t1) - 1) < $.$get$epsilon() ? T.fuzzyRound(t1) : K._fuzzyRoundIfZero(t1))) * 180 / 3.141592653589793, null, H.setRuntimeTypeInfo(["deg"], type$.JSArray_String));
  39476. },
  39477. $signature: 7
  39478. };
  39479. K.closure93.prototype = {
  39480. call$1: function($arguments) {
  39481. var number = J.$index$asx($arguments, 0).assertNumber$1("number");
  39482. if (number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0)
  39483. throw H.wrapException(E.SassScriptException$("$number: Expected " + number.toString$0(0) + " to have no units."));
  39484. return T.SassNumber$withUnits(Math.atan(H.checkNum(K._fuzzyRoundIfZero(number.value))) * 180 / 3.141592653589793, null, H.setRuntimeTypeInfo(["deg"], type$.JSArray_String));
  39485. },
  39486. $signature: 7
  39487. };
  39488. K.closure92.prototype = {
  39489. call$1: function($arguments) {
  39490. var t2, t3, t4, unit1, unit2, xValue,
  39491. _s11_ = "is unitless",
  39492. t1 = J.getInterceptor$asx($arguments),
  39493. y = t1.$index($arguments, 0).assertNumber$1("y"),
  39494. x = t1.$index($arguments, 1).assertNumber$1("x");
  39495. t1 = y.numeratorUnits;
  39496. t2 = t1.length === 0;
  39497. t3 = !t2 || y.denominatorUnits.length !== 0;
  39498. t4 = x.numeratorUnits.length === 0;
  39499. if (t3 !== (!t4 || x.denominatorUnits.length !== 0)) {
  39500. unit1 = !t2 || y.denominatorUnits.length !== 0 ? "has unit " + y.get$unitString() : _s11_;
  39501. unit2 = !t4 || x.denominatorUnits.length !== 0 ? "has unit " + x.get$unitString() : _s11_;
  39502. throw H.wrapException(E.SassScriptException$("$y " + unit1 + " but $x " + unit2 + ". Arguments must all have units or all be unitless."));
  39503. }
  39504. t2 = y.denominatorUnits;
  39505. xValue = K._fuzzyRoundIfZero(T.SassNumber$withUnits(x.valueInUnits$2(t1, t2), t2, t1).value);
  39506. return T.SassNumber$withUnits(Math.atan2(H.checkNum(K._fuzzyRoundIfZero(y.value)), H.checkNum(xValue)) * 180 / 3.141592653589793, null, H.setRuntimeTypeInfo(["deg"], type$.JSArray_String));
  39507. },
  39508. $signature: 7
  39509. };
  39510. K.closure90.prototype = {
  39511. call$1: function($arguments) {
  39512. var t1 = Math.cos(H.checkNum(K._coerceToRad(J.$index$asx($arguments, 0).assertNumber$1("number")).value));
  39513. return new T.SassNumber(t1, C.List_empty, C.List_empty, null);
  39514. },
  39515. $signature: 7
  39516. };
  39517. K.closure86.prototype = {
  39518. call$1: function($arguments) {
  39519. var t1 = Math.sin(H.checkNum(K._fuzzyRoundIfZero(K._coerceToRad(J.$index$asx($arguments, 0).assertNumber$1("number")).value)));
  39520. return new T.SassNumber(t1, C.List_empty, C.List_empty, null);
  39521. },
  39522. $signature: 7
  39523. };
  39524. K.closure84.prototype = {
  39525. call$1: function($arguments) {
  39526. var t1 = K._coerceToRad(J.$index$asx($arguments, 0).assertNumber$1("number")).value,
  39527. t2 = C.JSNumber_methods.$mod(t1 - 1.5707963267948966, 6.283185307179586),
  39528. t3 = $.$get$epsilon();
  39529. if (Math.abs(t2 - 0) < t3)
  39530. return new T.SassNumber(1 / 0, C.List_empty, C.List_empty, null);
  39531. else if (Math.abs(C.JSNumber_methods.$mod(t1 + 1.5707963267948966, 6.283185307179586) - 0) < t3)
  39532. return new T.SassNumber(-1 / 0, C.List_empty, C.List_empty, null);
  39533. else {
  39534. t1 = Math.tan(H.checkNum(K._fuzzyRoundIfZero(t1)));
  39535. return new T.SassNumber(t1, C.List_empty, C.List_empty, null);
  39536. }
  39537. },
  39538. $signature: 7
  39539. };
  39540. K.closure18.prototype = {
  39541. call$1: function($arguments) {
  39542. var t1 = J.getInterceptor$asx($arguments);
  39543. return t1.$index($arguments, 0).assertNumber$1("number1").isComparableTo$1(t1.$index($arguments, 1).assertNumber$1("number2")) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  39544. },
  39545. $signature: 13
  39546. };
  39547. K.closure17.prototype = {
  39548. call$1: function($arguments) {
  39549. var number = J.$index$asx($arguments, 0).assertNumber$1("number");
  39550. return !(number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  39551. },
  39552. $signature: 13
  39553. };
  39554. K.closure19.prototype = {
  39555. call$1: function($arguments) {
  39556. return new D.SassString(J.$index$asx($arguments, 0).assertNumber$1("number").get$unitString(), true);
  39557. },
  39558. $signature: 12
  39559. };
  39560. K.closure21.prototype = {
  39561. call$1: function($arguments) {
  39562. var t1,
  39563. number = J.$index$asx($arguments, 0).assertNumber$1("number");
  39564. number.assertNoUnits$1("number");
  39565. t1 = H.setRuntimeTypeInfo(["%"], type$.JSArray_String);
  39566. t1 = P.List_List$unmodifiable(t1, type$.String);
  39567. return new T.SassNumber(number.value * 100, t1, C.List_empty, null);
  39568. },
  39569. $signature: 7
  39570. };
  39571. K.closure20.prototype = {
  39572. call$1: function($arguments) {
  39573. var limit,
  39574. t1 = J.getInterceptor$asx($arguments);
  39575. if (J.$eq$(t1.$index($arguments, 0), C.C_SassNull0)) {
  39576. t1 = $.$get$_random0().nextDouble$0();
  39577. return new T.SassNumber(t1, C.List_empty, C.List_empty, null);
  39578. }
  39579. limit = t1.$index($arguments, 0).assertNumber$1("limit").assertInt$1("limit");
  39580. if (limit < 1)
  39581. throw H.wrapException(E.SassScriptException$("$limit: Must be greater than 0, was " + limit + "."));
  39582. t1 = $.$get$_random0().nextInt$1(limit);
  39583. return new T.SassNumber(t1 + 1, C.List_empty, C.List_empty, null);
  39584. },
  39585. $signature: 7
  39586. };
  39587. K._numberFunction_closure.prototype = {
  39588. call$1: function($arguments) {
  39589. var number = J.$index$asx($arguments, 0).assertNumber$1("number");
  39590. return T.SassNumber$withUnits(this.transform.call$1(number.value), number.denominatorUnits, number.numeratorUnits);
  39591. },
  39592. $signature: 7
  39593. };
  39594. Q.closure101.prototype = {
  39595. call$1: function($arguments) {
  39596. return $._features.contains$1(0, J.$index$asx($arguments, 0).assertString$1("feature").text) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  39597. },
  39598. $signature: 13
  39599. };
  39600. Q.closure102.prototype = {
  39601. call$1: function($arguments) {
  39602. return new D.SassString(J.toString$0$(J.get$first$ax($arguments)), false);
  39603. },
  39604. $signature: 12
  39605. };
  39606. Q.closure103.prototype = {
  39607. call$1: function($arguments) {
  39608. var value = J.$index$asx($arguments, 0);
  39609. if (value instanceof D.SassArgumentList)
  39610. return new D.SassString("arglist", false);
  39611. if (value instanceof Z.SassBoolean)
  39612. return new D.SassString("bool", false);
  39613. if (value instanceof K.SassColor)
  39614. return new D.SassString("color", false);
  39615. if (value instanceof D.SassList)
  39616. return new D.SassString("list", false);
  39617. if (value instanceof A.SassMap)
  39618. return new D.SassString("map", false);
  39619. if (value instanceof O.SassNull)
  39620. return new D.SassString("null", false);
  39621. if (value instanceof T.SassNumber)
  39622. return new D.SassString("number", false);
  39623. if (value instanceof F.SassFunction)
  39624. return new D.SassString("function", false);
  39625. return new D.SassString("string", false);
  39626. },
  39627. $signature: 12
  39628. };
  39629. Q.closure104.prototype = {
  39630. call$1: function($arguments) {
  39631. var t1,
  39632. argumentList = J.$index$asx($arguments, 0);
  39633. if (argumentList instanceof D.SassArgumentList) {
  39634. argumentList._wereKeywordsAccessed = true;
  39635. t1 = type$.Value;
  39636. return new A.SassMap(H.ConstantMap_ConstantMap$from(Y.mapMap(argumentList._keywords, new Q._closure13(), null, type$.String, t1, t1, t1), t1, t1));
  39637. } else
  39638. throw H.wrapException("$args: " + H.S(argumentList) + " is not an argument list.");
  39639. },
  39640. $signature: 30
  39641. };
  39642. Q._closure13.prototype = {
  39643. call$2: function(key, _) {
  39644. return new D.SassString(key, false);
  39645. }
  39646. };
  39647. T.closure13.prototype = {
  39648. call$1: function($arguments) {
  39649. var selectors = J.$index$asx($arguments, 0).get$asList();
  39650. if (selectors.length === 0)
  39651. throw H.wrapException(E.SassScriptException$("$selectors: At least one selector must be passed."));
  39652. return new H.MappedListIterable(selectors, new T._closure1(), H._arrayInstanceType(selectors)._eval$1("MappedListIterable<1,SelectorList>")).reduce$1(0, new T._closure2()).get$asSassList();
  39653. },
  39654. $signature: 22
  39655. };
  39656. T._closure1.prototype = {
  39657. call$1: function(selector) {
  39658. return selector.assertSelector$1$allowParent(true);
  39659. }
  39660. };
  39661. T._closure2.prototype = {
  39662. call$2: function($parent, child) {
  39663. return child.resolveParentSelectors$1($parent);
  39664. }
  39665. };
  39666. T.closure12.prototype = {
  39667. call$1: function($arguments) {
  39668. var selectors = J.$index$asx($arguments, 0).get$asList();
  39669. if (selectors.length === 0)
  39670. throw H.wrapException(E.SassScriptException$("$selectors: At least one selector must be passed."));
  39671. return new H.MappedListIterable(selectors, new T._closure(), H._arrayInstanceType(selectors)._eval$1("MappedListIterable<1,SelectorList>")).reduce$1(0, new T._closure0()).get$asSassList();
  39672. },
  39673. $signature: 22
  39674. };
  39675. T._closure.prototype = {
  39676. call$1: function(selector) {
  39677. return selector.assertSelector$0();
  39678. }
  39679. };
  39680. T._closure0.prototype = {
  39681. call$2: function($parent, child) {
  39682. var t1 = child.components;
  39683. return D.SelectorList$(new H.MappedListIterable(t1, new T.__closure($parent), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector>"))).resolveParentSelectors$1($parent);
  39684. }
  39685. };
  39686. T.__closure.prototype = {
  39687. call$1: function(complex) {
  39688. var newCompound, t2,
  39689. t1 = complex.components,
  39690. compound = C.JSArray_methods.get$first(t1);
  39691. if (compound instanceof X.CompoundSelector) {
  39692. newCompound = T._prependParent(compound);
  39693. if (newCompound == null)
  39694. throw H.wrapException(E.SassScriptException$("Can't append " + complex.toString$0(0) + " to " + H.S(this.parent) + "."));
  39695. t2 = H.setRuntimeTypeInfo([], type$.JSArray_ComplexSelectorComponent);
  39696. t2.push(newCompound);
  39697. for (t1 = H.SubListIterable$(t1, 1, null, H._arrayInstanceType(t1)._precomputed1), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();)
  39698. t2.push(t1.__internal$_current);
  39699. return S.ComplexSelector$(t2, false);
  39700. } else
  39701. throw H.wrapException(E.SassScriptException$("Can't append " + complex.toString$0(0) + " to " + H.S(this.parent) + "."));
  39702. }
  39703. };
  39704. T.closure11.prototype = {
  39705. call$1: function($arguments) {
  39706. var t1 = J.getInterceptor$asx($arguments),
  39707. selector = t1.$index($arguments, 0).assertSelector$1$name("selector"),
  39708. target = t1.$index($arguments, 1).assertSelector$1$name("extendee");
  39709. return F.Extender__extendOrReplace(selector, t1.$index($arguments, 2).assertSelector$1$name("extender"), target, C.ExtendMode_allTargets).get$asSassList();
  39710. },
  39711. $signature: 22
  39712. };
  39713. T.closure10.prototype = {
  39714. call$1: function($arguments) {
  39715. var t1 = J.getInterceptor$asx($arguments),
  39716. selector = t1.$index($arguments, 0).assertSelector$1$name("selector"),
  39717. target = t1.$index($arguments, 1).assertSelector$1$name("original");
  39718. return F.Extender__extendOrReplace(selector, t1.$index($arguments, 2).assertSelector$1$name("replacement"), target, C.ExtendMode_replace).get$asSassList();
  39719. },
  39720. $signature: 22
  39721. };
  39722. T.closure9.prototype = {
  39723. call$1: function($arguments) {
  39724. var t1 = J.getInterceptor$asx($arguments),
  39725. result = t1.$index($arguments, 0).assertSelector$1$name("selector1").unify$1(t1.$index($arguments, 1).assertSelector$1$name("selector2"));
  39726. return result == null ? C.C_SassNull0 : result.get$asSassList();
  39727. },
  39728. $signature: 4
  39729. };
  39730. T.closure16.prototype = {
  39731. call$1: function($arguments) {
  39732. var t1 = J.getInterceptor$asx($arguments),
  39733. selector1 = t1.$index($arguments, 0).assertSelector$1$name("super"),
  39734. selector2 = t1.$index($arguments, 1).assertSelector$1$name("sub");
  39735. return Y.listIsSuperslector(selector1.components, selector2.components) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  39736. },
  39737. $signature: 13
  39738. };
  39739. T.closure15.prototype = {
  39740. call$1: function($arguments) {
  39741. var t1 = J.$index$asx($arguments, 0).assertCompoundSelector$1$name("selector").components;
  39742. return D.SassList$(new H.MappedListIterable(t1, new T._closure3(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value>")), C.ListSeparator_comma, false);
  39743. },
  39744. $signature: 22
  39745. };
  39746. T._closure3.prototype = {
  39747. call$1: function(simple) {
  39748. return new D.SassString(J.toString$0$(simple), false);
  39749. }
  39750. };
  39751. T.closure14.prototype = {
  39752. call$1: function($arguments) {
  39753. return J.$index$asx($arguments, 0).assertSelector$1$name("selector").get$asSassList();
  39754. },
  39755. $signature: 22
  39756. };
  39757. D.closure8.prototype = {
  39758. call$1: function($arguments) {
  39759. var string = J.$index$asx($arguments, 0).assertString$1("string");
  39760. if (!string.hasQuotes)
  39761. return string;
  39762. return new D.SassString(string.text, false);
  39763. },
  39764. $signature: 12
  39765. };
  39766. D.closure7.prototype = {
  39767. call$1: function($arguments) {
  39768. var string = J.$index$asx($arguments, 0).assertString$1("string");
  39769. if (string.hasQuotes)
  39770. return string;
  39771. return new D.SassString(string.text, true);
  39772. },
  39773. $signature: 12
  39774. };
  39775. D.closure3.prototype = {
  39776. call$1: function($arguments) {
  39777. var t1 = J.$index$asx($arguments, 0).assertString$1("string").get$sassLength();
  39778. return new T.SassNumber(t1, C.List_empty, C.List_empty, null);
  39779. },
  39780. $signature: 7
  39781. };
  39782. D.closure2.prototype = {
  39783. call$1: function($arguments) {
  39784. var indexInt, codeUnitIndex, _s5_ = "index",
  39785. t1 = J.getInterceptor$asx($arguments),
  39786. string = t1.$index($arguments, 0).assertString$1("string"),
  39787. insert = t1.$index($arguments, 1).assertString$1("insert"),
  39788. index = t1.$index($arguments, 2).assertNumber$1(_s5_);
  39789. index.assertNoUnits$1(_s5_);
  39790. indexInt = index.assertInt$1(_s5_);
  39791. if (indexInt < 0)
  39792. indexInt = string.get$sassLength() + indexInt + 2;
  39793. t1 = string.text;
  39794. codeUnitIndex = B.codepointIndexToCodeUnitIndex(t1, D._codepointForIndex(indexInt, string.get$sassLength(), false));
  39795. return new D.SassString(J.replaceRange$3$asx(t1, codeUnitIndex, codeUnitIndex, insert.text), string.hasQuotes);
  39796. },
  39797. $signature: 12
  39798. };
  39799. D.closure1.prototype = {
  39800. call$1: function($arguments) {
  39801. var codepointIndex,
  39802. t1 = J.getInterceptor$asx($arguments),
  39803. t2 = t1.$index($arguments, 0).assertString$1("string").text,
  39804. codeUnitIndex = J.indexOf$1$asx(t2, t1.$index($arguments, 1).assertString$1("substring").text);
  39805. if (codeUnitIndex === -1)
  39806. return C.C_SassNull0;
  39807. codepointIndex = B.codeUnitIndexToCodepointIndex(t2, codeUnitIndex);
  39808. return new T.SassNumber(codepointIndex + 1, C.List_empty, C.List_empty, null);
  39809. },
  39810. $signature: 4
  39811. };
  39812. D.closure0.prototype = {
  39813. call$1: function($arguments) {
  39814. var lengthInCodepoints, endInt, startCodepoint, endCodepoint,
  39815. t1 = J.getInterceptor$asx($arguments),
  39816. string = t1.$index($arguments, 0).assertString$1("string"),
  39817. start = t1.$index($arguments, 1).assertNumber$1("start-at"),
  39818. end = t1.$index($arguments, 2).assertNumber$1("end-at");
  39819. start.assertNoUnits$1("start");
  39820. end.assertNoUnits$1("end");
  39821. lengthInCodepoints = string.get$sassLength();
  39822. endInt = end.assertInt$0();
  39823. if (endInt === 0)
  39824. return string.hasQuotes ? $.$get$_emptyQuoted() : $.$get$_emptyUnquoted();
  39825. startCodepoint = D._codepointForIndex(start.assertInt$0(), lengthInCodepoints, false);
  39826. endCodepoint = D._codepointForIndex(endInt, lengthInCodepoints, true);
  39827. if (endCodepoint === lengthInCodepoints)
  39828. --endCodepoint;
  39829. if (endCodepoint < startCodepoint)
  39830. return string.hasQuotes ? $.$get$_emptyQuoted() : $.$get$_emptyUnquoted();
  39831. t1 = string.text;
  39832. return new D.SassString(J.substring$2$s(t1, B.codepointIndexToCodeUnitIndex(t1, startCodepoint), B.codepointIndexToCodeUnitIndex(t1, endCodepoint + 1)), string.hasQuotes);
  39833. },
  39834. $signature: 12
  39835. };
  39836. D.closure6.prototype = {
  39837. call$1: function($arguments) {
  39838. var t1, t2, t3, i, t4, t5,
  39839. string = J.$index$asx($arguments, 0).assertString$1("string");
  39840. for (t1 = string.text, t2 = t1.length, t3 = J.getInterceptor$s(t1), i = 0, t4 = ""; i < t2; ++i) {
  39841. t5 = t3._codeUnitAt$1(t1, i);
  39842. t4 += H.Primitives_stringFromCharCode(t5 >= 97 && t5 <= 122 ? t5 & 4294967263 : t5);
  39843. }
  39844. return new D.SassString(t4.charCodeAt(0) == 0 ? t4 : t4, string.hasQuotes);
  39845. },
  39846. $signature: 12
  39847. };
  39848. D.closure5.prototype = {
  39849. call$1: function($arguments) {
  39850. var t1, t2, t3, i, t4, t5,
  39851. string = J.$index$asx($arguments, 0).assertString$1("string");
  39852. for (t1 = string.text, t2 = t1.length, t3 = J.getInterceptor$s(t1), i = 0, t4 = ""; i < t2; ++i) {
  39853. t5 = t3._codeUnitAt$1(t1, i);
  39854. t4 += H.Primitives_stringFromCharCode(t5 >= 65 && t5 <= 90 ? t5 | 32 : t5);
  39855. }
  39856. return new D.SassString(t4.charCodeAt(0) == 0 ? t4 : t4, string.hasQuotes);
  39857. },
  39858. $signature: 12
  39859. };
  39860. D.closure4.prototype = {
  39861. call$1: function($arguments) {
  39862. var t1 = $.$get$_previousUniqueId() + ($.$get$_random().nextInt$1(36) + 1);
  39863. $._previousUniqueId = t1;
  39864. if (t1 > Math.pow(36, 6))
  39865. $._previousUniqueId = C.JSInt_methods.$mod($.$get$_previousUniqueId(), H._asIntNullable(Math.pow(36, 6)));
  39866. return new D.SassString("u" + C.JSString_methods.padLeft$2(J.toRadixString$1$n($.$get$_previousUniqueId(), 36), 6, "0"), false);
  39867. },
  39868. $signature: 12
  39869. };
  39870. R.ImportCache.prototype = {
  39871. canonicalize$4$baseImporter$baseUrl$forImport: function(url, baseImporter, baseUrl, forImport) {
  39872. var resolvedUrl, canonicalUrl;
  39873. if (baseImporter != null) {
  39874. resolvedUrl = baseUrl != null ? baseUrl.resolveUri$1(url) : url;
  39875. canonicalUrl = this._canonicalize$3(baseImporter, resolvedUrl, forImport);
  39876. if (canonicalUrl != null)
  39877. return new S.Tuple3(baseImporter, canonicalUrl, resolvedUrl, type$.Tuple3_Importer_Uri_Uri);
  39878. }
  39879. return this._canonicalizeCache.putIfAbsent$2(new S.Tuple2(url, forImport, type$.Tuple2_Uri_bool), new R.ImportCache_canonicalize_closure(this, url, forImport));
  39880. },
  39881. canonicalize$3$baseImporter$baseUrl: function(url, baseImporter, baseUrl) {
  39882. return this.canonicalize$4$baseImporter$baseUrl$forImport(url, baseImporter, baseUrl, false);
  39883. },
  39884. _canonicalize$3: function(importer, url, forImport) {
  39885. var result = forImport ? B.inImportRule(new R.ImportCache__canonicalize_closure(importer, url)) : importer.canonicalize$1(url);
  39886. if ((result == null ? null : result.get$scheme()) === "")
  39887. this._logger.warn$2$deprecation("Importer " + H.S(importer) + " canonicalized " + H.S(url) + " to " + H.S(result) + ".\nRelative canonical URLs are deprecated and will eventually be disallowed.\n", true);
  39888. return result;
  39889. },
  39890. import$4$baseImporter$baseUrl$forImport: function(url, baseImporter, baseUrl, forImport) {
  39891. var t1,
  39892. tuple = this.canonicalize$4$baseImporter$baseUrl$forImport(url, baseImporter, baseUrl, forImport);
  39893. if (tuple == null)
  39894. return null;
  39895. t1 = tuple.item1;
  39896. return new S.Tuple2(t1, this.importCanonical$3(t1, tuple.item2, tuple.item3), type$.Tuple2_Importer_Stylesheet);
  39897. },
  39898. importCanonical$3: function(importer, canonicalUrl, originalUrl) {
  39899. return this._importCache.putIfAbsent$2(canonicalUrl, new R.ImportCache_importCanonical_closure(this, importer, canonicalUrl, originalUrl));
  39900. },
  39901. importCanonical$2: function(importer, canonicalUrl) {
  39902. return this.importCanonical$3(importer, canonicalUrl, null);
  39903. },
  39904. humanize$1: function(canonicalUrl) {
  39905. var t1 = this._canonicalizeCache.get$values(),
  39906. t2 = H._instanceType(t1),
  39907. url = Y.minBy(new H.MappedIterable(new H.WhereIterable(t1, new R.ImportCache_humanize_closure(canonicalUrl), t2._eval$1("WhereIterable<Iterable.E>")), new R.ImportCache_humanize_closure0(), t2._eval$1("MappedIterable<Iterable.E,Uri>")), new R.ImportCache_humanize_closure1(), type$.Uri, type$.dynamic);
  39908. if (url == null)
  39909. return canonicalUrl;
  39910. t1 = $.$get$url();
  39911. return url.resolve$1(X.ParsedPath_ParsedPath$parse(canonicalUrl.get$path(canonicalUrl), t1.style).get$basename());
  39912. },
  39913. clearImport$1: function(canonicalUrl) {
  39914. this._resultsCache.remove$1(0, canonicalUrl);
  39915. this._importCache.remove$1(0, canonicalUrl);
  39916. }
  39917. };
  39918. R.ImportCache_canonicalize_closure.prototype = {
  39919. call$0: function() {
  39920. var t1, t2, t3, t4, t5, _i, importer, canonicalUrl;
  39921. for (t1 = this.$this, t2 = t1._importers, t3 = t2.length, t4 = this.url, t5 = this.forImport, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i) {
  39922. importer = t2[_i];
  39923. canonicalUrl = t1._canonicalize$3(importer, t4, t5);
  39924. if (canonicalUrl != null)
  39925. return new S.Tuple3(importer, canonicalUrl, t4, type$.Tuple3_Importer_Uri_Uri);
  39926. }
  39927. return null;
  39928. },
  39929. $signature: 56
  39930. };
  39931. R.ImportCache__canonicalize_closure.prototype = {
  39932. call$0: function() {
  39933. return this.importer.canonicalize$1(this.url);
  39934. },
  39935. $signature: 67
  39936. };
  39937. R.ImportCache_importCanonical_closure.prototype = {
  39938. call$0: function() {
  39939. var t3, _this = this,
  39940. t1 = _this.canonicalUrl,
  39941. result = _this.importer.load$1(t1),
  39942. t2 = _this.$this;
  39943. t2._resultsCache.$indexSet(0, t1, result);
  39944. t3 = _this.originalUrl;
  39945. t1 = t3 == null ? t1 : t3.resolveUri$1(t1);
  39946. return V.Stylesheet_Stylesheet$parse(result.contents, result.syntax, t2._logger, t1);
  39947. },
  39948. $signature: 37
  39949. };
  39950. R.ImportCache_humanize_closure.prototype = {
  39951. call$1: function(tuple) {
  39952. var t1 = tuple == null ? null : tuple.item2;
  39953. return J.$eq$(t1, this.canonicalUrl);
  39954. }
  39955. };
  39956. R.ImportCache_humanize_closure0.prototype = {
  39957. call$1: function(tuple) {
  39958. return tuple.item3;
  39959. }
  39960. };
  39961. R.ImportCache_humanize_closure1.prototype = {
  39962. call$1: function(url) {
  39963. return J.get$length$asx(J.get$path$x(url));
  39964. },
  39965. $signature: 28
  39966. };
  39967. M.Importer.prototype = {
  39968. modificationTime$1: function(url) {
  39969. return new P.DateTime(Date.now(), false);
  39970. },
  39971. couldCanonicalize$2: function(url, canonicalUrl) {
  39972. return true;
  39973. }
  39974. };
  39975. B.AsyncImporter.prototype = {};
  39976. F.FilesystemImporter.prototype = {
  39977. canonicalize$1: function(url) {
  39978. var t1, resolved;
  39979. if (url.get$scheme() !== "file" && url.get$scheme() !== "")
  39980. return null;
  39981. t1 = $.$get$context();
  39982. resolved = B.resolveImportPath(D.join(this._loadPath, t1.style.pathFromUri$1(M._parseUri(url)), null));
  39983. return resolved == null ? null : t1.toUri$1(t1.canonicalize$1(resolved));
  39984. },
  39985. load$1: function(url) {
  39986. var t3,
  39987. t1 = $.$get$context(),
  39988. path = t1.style.pathFromUri$1(M._parseUri(url)),
  39989. t2 = B.readFile(path);
  39990. t1 = J.$eq$(J.get$platform$x(self.process), "win32") || J.$eq$(J.get$platform$x(self.process), "darwin") ? t1.toUri$1(F.realCasePath(path)) : url;
  39991. t3 = M.Syntax_forPath(path);
  39992. if ((t1 == null ? null : t1.get$scheme()) === "")
  39993. H.throwExpression(P.ArgumentError$value(t1, "sourceMapUrl", "must be absolute"));
  39994. return new E.ImporterResult(t2, t1, t3);
  39995. },
  39996. modificationTime$1: function(url) {
  39997. return B.modificationTime($.$get$context().style.pathFromUri$1(M._parseUri(url)));
  39998. },
  39999. couldCanonicalize$2: function(url, canonicalUrl) {
  40000. var t1, t2, t3, basename, canonicalBasename;
  40001. if (url.get$scheme() !== "file" && url.get$scheme() !== "")
  40002. return false;
  40003. if (canonicalUrl.get$scheme() !== "file")
  40004. return false;
  40005. t1 = $.$get$url();
  40006. t2 = url.get$path(url);
  40007. t3 = t1.style;
  40008. basename = X.ParsedPath_ParsedPath$parse(t2, t3).get$basename();
  40009. canonicalBasename = X.ParsedPath_ParsedPath$parse(canonicalUrl.get$path(canonicalUrl), t3).get$basename();
  40010. if (!J.startsWith$1$s(basename, "_") && J.startsWith$1$s(canonicalBasename, "_"))
  40011. canonicalBasename = J.substring$1$s(canonicalBasename, 1);
  40012. return basename === canonicalBasename || basename === t1.withoutExtension$1(canonicalBasename);
  40013. },
  40014. toString$0: function(_) {
  40015. return this._loadPath;
  40016. }
  40017. };
  40018. E.ImporterResult.prototype = {
  40019. get$sourceMapUrl: function() {
  40020. var t1 = this._sourceMapUrl;
  40021. return t1 == null ? P.Uri_Uri$dataFromString(this.contents, C.C_Utf8Codec, null) : t1;
  40022. }
  40023. };
  40024. B.resolveImportPath_closure.prototype = {
  40025. call$0: function() {
  40026. return B._exactlyOne(B._tryPath($.$get$context().withoutExtension$1(this.path) + ".import" + this.extension));
  40027. },
  40028. $signature: 10
  40029. };
  40030. B.resolveImportPath_closure0.prototype = {
  40031. call$0: function() {
  40032. return B._exactlyOne(B._tryPathWithExtensions(this.path + ".import"));
  40033. },
  40034. $signature: 10
  40035. };
  40036. B._tryPathAsDirectory_closure.prototype = {
  40037. call$0: function() {
  40038. return B._exactlyOne(B._tryPathWithExtensions(D.join(this.path, "index.import", null)));
  40039. },
  40040. $signature: 10
  40041. };
  40042. B._exactlyOne_closure.prototype = {
  40043. call$1: function(path) {
  40044. var t1 = $.$get$context();
  40045. return C.JSString_methods.$add(" ", t1.prettyUri$1(t1.toUri$1(path)));
  40046. }
  40047. };
  40048. Z.InterpolationBuffer.prototype = {
  40049. add$1: function(_, expression) {
  40050. this._flushText$0();
  40051. this._interpolation_buffer$_contents.push(expression);
  40052. },
  40053. addInterpolation$1: function(interpolation) {
  40054. var first, t1, _this = this,
  40055. toAdd = interpolation.contents;
  40056. if (toAdd.length === 0)
  40057. return;
  40058. first = C.JSArray_methods.get$first(toAdd);
  40059. if (typeof first == "string") {
  40060. _this._interpolation_buffer$_text._contents += first;
  40061. toAdd = H.SubListIterable$(toAdd, 1, null, H._arrayInstanceType(toAdd)._precomputed1);
  40062. }
  40063. _this._flushText$0();
  40064. t1 = _this._interpolation_buffer$_contents;
  40065. C.JSArray_methods.addAll$1(t1, toAdd);
  40066. if (typeof C.JSArray_methods.get$last(t1) == "string")
  40067. _this._interpolation_buffer$_text._contents += H.S(t1.pop());
  40068. },
  40069. _flushText$0: function() {
  40070. var t1 = this._interpolation_buffer$_text,
  40071. t2 = t1._contents;
  40072. if (t2.length === 0)
  40073. return;
  40074. this._interpolation_buffer$_contents.push(t2.charCodeAt(0) == 0 ? t2 : t2);
  40075. t1._contents = "";
  40076. },
  40077. interpolation$1: function(span) {
  40078. var t2, t3, _i, t1 = [];
  40079. for (t2 = this._interpolation_buffer$_contents, t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i)
  40080. t1.push(t2[_i]);
  40081. t2 = this._interpolation_buffer$_text._contents;
  40082. if (t2.length !== 0)
  40083. t1.push(t2.charCodeAt(0) == 0 ? t2 : t2);
  40084. return X.Interpolation$(t1, span);
  40085. },
  40086. toString$0: function(_) {
  40087. var t1, t2, _i, t3, element;
  40088. for (t1 = this._interpolation_buffer$_contents, t2 = t1.length, _i = 0, t3 = ""; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  40089. element = t1[_i];
  40090. t3 = typeof element == "string" ? t3 + element : t3 + "#{" + H.S(element) + H.Primitives_stringFromCharCode(125);
  40091. }
  40092. t1 = t3 + this._interpolation_buffer$_text.toString$0(0);
  40093. return t1.charCodeAt(0) == 0 ? t1 : t1;
  40094. }
  40095. };
  40096. F.realCasePath_closure.prototype = {
  40097. call$1: function(realPath) {
  40098. return B.equalsIgnoreCase(X.ParsedPath_ParsedPath$parse(realPath, $.$get$context().style).get$basename(), this.basename);
  40099. }
  40100. };
  40101. B._FS.prototype = {};
  40102. B._Stat.prototype = {};
  40103. B._Date.prototype = {};
  40104. B._Stderr.prototype = {};
  40105. B._Stdin.prototype = {};
  40106. B._SystemError.prototype = {};
  40107. B._Process.prototype = {};
  40108. B.FileSystemException.prototype = {
  40109. toString$0: function(_) {
  40110. var t1 = $.$get$context();
  40111. return H.S(t1.prettyUri$1(t1.toUri$1(this.path))) + ": " + this.message;
  40112. },
  40113. get$message: function(receiver) {
  40114. return this.message;
  40115. },
  40116. get$path: function(receiver) {
  40117. return this.path;
  40118. }
  40119. };
  40120. B.Stderr.prototype = {
  40121. writeln$1: function(object) {
  40122. J.write$1$x(this._stderr, H.S(object == null ? "" : object) + "\n");
  40123. },
  40124. writeln$0: function() {
  40125. return this.writeln$1(null);
  40126. }
  40127. };
  40128. B._readFile_closure.prototype = {
  40129. call$0: function() {
  40130. return J.readFileSync$2$x(self.fs, this.path, this.encoding);
  40131. },
  40132. $signature: 44
  40133. };
  40134. B.writeFile_closure.prototype = {
  40135. call$0: function() {
  40136. return J.writeFileSync$2$x(self.fs, this.path, this.contents);
  40137. },
  40138. $signature: 1
  40139. };
  40140. B.deleteFile_closure.prototype = {
  40141. call$0: function() {
  40142. return J.unlinkSync$1$x(self.fs, this.path);
  40143. },
  40144. $signature: 1
  40145. };
  40146. B.readStdin_closure.prototype = {
  40147. call$1: function(result) {
  40148. this._box_0.contents = result;
  40149. this.completer.complete$1(result);
  40150. }
  40151. };
  40152. B.readStdin_closure0.prototype = {
  40153. call$1: function(chunk) {
  40154. this.sink.add$1(0, type$.List_int._as(chunk));
  40155. },
  40156. call$0: function() {
  40157. return this.call$1(null);
  40158. },
  40159. "call*": "call$1",
  40160. $requiredArgCount: 0,
  40161. $defaultValues: function() {
  40162. return [null];
  40163. },
  40164. $signature: 40
  40165. };
  40166. B.readStdin_closure1.prototype = {
  40167. call$1: function(_) {
  40168. this.sink.close$0(0);
  40169. },
  40170. call$0: function() {
  40171. return this.call$1(null);
  40172. },
  40173. "call*": "call$1",
  40174. $requiredArgCount: 0,
  40175. $defaultValues: function() {
  40176. return [null];
  40177. },
  40178. $signature: 40
  40179. };
  40180. B.readStdin_closure2.prototype = {
  40181. call$1: function(e) {
  40182. var t1 = $.$get$stderr();
  40183. t1.writeln$1("Failed to read from stdin");
  40184. t1.writeln$1(e);
  40185. this.completer.completeError$1(e);
  40186. },
  40187. call$0: function() {
  40188. return this.call$1(null);
  40189. },
  40190. "call*": "call$1",
  40191. $requiredArgCount: 0,
  40192. $defaultValues: function() {
  40193. return [null];
  40194. },
  40195. $signature: 40
  40196. };
  40197. B.fileExists_closure.prototype = {
  40198. call$0: function() {
  40199. var error, systemError, exception,
  40200. t1 = this.path;
  40201. if (!J.existsSync$1$x(self.fs, t1))
  40202. return false;
  40203. try {
  40204. t1 = J.isFile$0$x(J.statSync$1$x(self.fs, t1));
  40205. return t1;
  40206. } catch (exception) {
  40207. error = H.unwrapException(exception);
  40208. systemError = type$._SystemError._as(error);
  40209. if (J.$eq$(J.get$code$x(systemError), "ENOENT"))
  40210. return false;
  40211. throw exception;
  40212. }
  40213. },
  40214. $signature: 25
  40215. };
  40216. B.dirExists_closure.prototype = {
  40217. call$0: function() {
  40218. var error, systemError, exception,
  40219. t1 = this.path;
  40220. if (!J.existsSync$1$x(self.fs, t1))
  40221. return false;
  40222. try {
  40223. t1 = J.isDirectory$0$x(J.statSync$1$x(self.fs, t1));
  40224. return t1;
  40225. } catch (exception) {
  40226. error = H.unwrapException(exception);
  40227. systemError = type$._SystemError._as(error);
  40228. if (J.$eq$(J.get$code$x(systemError), "ENOENT"))
  40229. return false;
  40230. throw exception;
  40231. }
  40232. },
  40233. $signature: 25
  40234. };
  40235. B.ensureDir_closure.prototype = {
  40236. call$0: function() {
  40237. var error, systemError, exception, t1;
  40238. try {
  40239. J.mkdirSync$1$x(self.fs, this.path);
  40240. } catch (exception) {
  40241. error = H.unwrapException(exception);
  40242. systemError = type$._SystemError._as(error);
  40243. if (J.$eq$(J.get$code$x(systemError), "EEXIST"))
  40244. return;
  40245. if (!J.$eq$(J.get$code$x(systemError), "ENOENT"))
  40246. throw exception;
  40247. t1 = this.path;
  40248. B.ensureDir($.$get$context().dirname$1(t1));
  40249. J.mkdirSync$1$x(self.fs, t1);
  40250. }
  40251. },
  40252. $signature: 0
  40253. };
  40254. B.listDir_closure.prototype = {
  40255. call$0: function() {
  40256. var t1 = this.path;
  40257. if (!this.recursive)
  40258. return J.map$1$1$ax(J.readdirSync$1$x(self.fs, t1), new B.listDir__closure(t1), type$.String).where$1(0, new B.listDir__closure0());
  40259. else
  40260. return new B.listDir_closure_list().call$1(t1);
  40261. },
  40262. $signature: 66
  40263. };
  40264. B.listDir__closure.prototype = {
  40265. call$1: function(child) {
  40266. return D.join(this.path, H._asStringNullable(child), null);
  40267. },
  40268. $signature: 27
  40269. };
  40270. B.listDir__closure0.prototype = {
  40271. call$1: function(child) {
  40272. return !B.dirExists(child);
  40273. }
  40274. };
  40275. B.listDir_closure_list.prototype = {
  40276. call$1: function($parent) {
  40277. return J.expand$1$1$ax(J.readdirSync$1$x(self.fs, $parent), new B.listDir__list_closure($parent, this), type$.String);
  40278. }
  40279. };
  40280. B.listDir__list_closure.prototype = {
  40281. call$1: function(child) {
  40282. var path = D.join(this.parent, H._asStringNullable(child), null);
  40283. return B.dirExists(path) ? this.list.call$1(path) : H.setRuntimeTypeInfo([path], type$.JSArray_String);
  40284. },
  40285. $signature: 79
  40286. };
  40287. B.modificationTime_closure.prototype = {
  40288. call$0: function() {
  40289. var t2,
  40290. t1 = J.getTime$0$x(J.get$mtime$x(J.statSync$1$x(self.fs, this.path)));
  40291. if (Math.abs(t1) <= 864e13)
  40292. t2 = false;
  40293. else
  40294. t2 = true;
  40295. if (t2)
  40296. H.throwExpression(P.ArgumentError$("DateTime is outside valid range: " + H.S(t1)));
  40297. P.ArgumentError_checkNotNull(false, "isUtc");
  40298. return new P.DateTime(t1, false);
  40299. },
  40300. $signature: 92
  40301. };
  40302. B.watchDir_closure.prototype = {
  40303. call$2: function(path, _) {
  40304. var t1 = this._box_0.controller;
  40305. return t1 == null ? null : t1.add$1(0, new E.WatchEvent(C.ChangeType_add, path));
  40306. },
  40307. call$1: function(path) {
  40308. return this.call$2(path, null);
  40309. },
  40310. "call*": "call$2",
  40311. $defaultValues: function() {
  40312. return [null];
  40313. }
  40314. };
  40315. B.watchDir_closure0.prototype = {
  40316. call$2: function(path, _) {
  40317. var t1 = this._box_0.controller;
  40318. return t1 == null ? null : t1.add$1(0, new E.WatchEvent(C.ChangeType_modify, path));
  40319. },
  40320. call$1: function(path) {
  40321. return this.call$2(path, null);
  40322. },
  40323. "call*": "call$2",
  40324. $defaultValues: function() {
  40325. return [null];
  40326. }
  40327. };
  40328. B.watchDir_closure1.prototype = {
  40329. call$1: function(path) {
  40330. var t1 = this._box_0.controller;
  40331. return t1 == null ? null : t1.add$1(0, new E.WatchEvent(C.ChangeType_remove, path));
  40332. }
  40333. };
  40334. B.watchDir_closure2.prototype = {
  40335. call$1: function(error) {
  40336. var t1 = this._box_0.controller;
  40337. return t1 == null ? null : t1.addError$1(error);
  40338. },
  40339. $signature: 23
  40340. };
  40341. B.watchDir_closure3.prototype = {
  40342. call$0: function() {
  40343. var controller = P.StreamController_StreamController(new B.watchDir__closure(this.watcher), null, null, null, false, type$.WatchEvent);
  40344. this._box_0.controller = controller;
  40345. this.completer.complete$1(new P._ControllerStream(controller, H._instanceType(controller)._eval$1("_ControllerStream<1>")));
  40346. },
  40347. "call*": "call$0",
  40348. $requiredArgCount: 0,
  40349. $signature: 0
  40350. };
  40351. B.watchDir__closure.prototype = {
  40352. call$0: function() {
  40353. J.close$0$x(this.watcher);
  40354. },
  40355. "call*": "call$0",
  40356. $requiredArgCount: 0,
  40357. $signature: 0
  40358. };
  40359. F._QuietLogger.prototype = {
  40360. warn$4$deprecation$span$trace: function(message, deprecation, span, trace) {
  40361. },
  40362. warn$2$deprecation: function(message, deprecation) {
  40363. return this.warn$4$deprecation$span$trace(message, deprecation, null, null);
  40364. },
  40365. warn$2$span: function(message, span) {
  40366. return this.warn$4$deprecation$span$trace(message, false, span, null);
  40367. },
  40368. warn$3$deprecation$span: function(message, deprecation, span) {
  40369. return this.warn$4$deprecation$span$trace(message, deprecation, span, null);
  40370. },
  40371. warn$2$trace: function(message, trace) {
  40372. return this.warn$4$deprecation$span$trace(message, false, null, trace);
  40373. },
  40374. debug$2: function(message, span) {
  40375. }
  40376. };
  40377. S.StderrLogger.prototype = {
  40378. warn$4$deprecation$span$trace: function(message, deprecation, span, trace) {
  40379. var t2, t3,
  40380. t1 = this.color;
  40381. if (t1) {
  40382. t2 = $.$get$stderr();
  40383. t3 = t2._stderr;
  40384. J.write$1$x(t3, "\x1b[33m\x1b[1m");
  40385. if (deprecation)
  40386. J.write$1$x(t3, "Deprecation ");
  40387. J.write$1$x(t3, "Warning\x1b[0m");
  40388. } else {
  40389. if (deprecation)
  40390. J.write$1$x($.$get$stderr()._stderr, "DEPRECATION ");
  40391. t2 = $.$get$stderr();
  40392. J.write$1$x(t2._stderr, "WARNING");
  40393. }
  40394. if (span == null)
  40395. t2.writeln$1(": " + H.S(message));
  40396. else if (trace != null)
  40397. t2.writeln$1(": " + H.S(message) + "\n\n" + span.highlight$1$color(t1));
  40398. else
  40399. t2.writeln$1(" on " + span.message$2$color(0, C.JSString_methods.$add("\n", message), t1));
  40400. if (trace != null)
  40401. t2.writeln$1(B.indent(C.JSString_methods.trimRight$0(trace.toString$0(0)), 4));
  40402. t2.writeln$0();
  40403. },
  40404. warn$2$deprecation: function(message, deprecation) {
  40405. return this.warn$4$deprecation$span$trace(message, deprecation, null, null);
  40406. },
  40407. warn$2$span: function(message, span) {
  40408. return this.warn$4$deprecation$span$trace(message, false, span, null);
  40409. },
  40410. warn$3$deprecation$span: function(message, deprecation, span) {
  40411. return this.warn$4$deprecation$span$trace(message, deprecation, span, null);
  40412. },
  40413. warn$2$trace: function(message, trace) {
  40414. return this.warn$4$deprecation$span$trace(message, false, null, trace);
  40415. },
  40416. debug$2: function(message, span) {
  40417. var url, t3, t4,
  40418. t1 = span.file,
  40419. t2 = span._file$_start;
  40420. if (Y.FileLocation$_(t1, t2).file.url == null)
  40421. url = "-";
  40422. else {
  40423. t3 = Y.FileLocation$_(t1, t2);
  40424. url = $.$get$context().prettyUri$1(t3.file.url);
  40425. }
  40426. t3 = $.$get$stderr();
  40427. t4 = H.S(url) + ":";
  40428. t2 = Y.FileLocation$_(t1, t2);
  40429. t2 = t4 + (t2.file.getLine$1(t2.offset) + 1) + " ";
  40430. t4 = t3._stderr;
  40431. J.write$1$x(t4, t2);
  40432. J.write$1$x(t4, this.color ? "\x1b[1mDebug\x1b[0m" : "DEBUG");
  40433. t3.writeln$1(": " + H.S(message));
  40434. }
  40435. };
  40436. T.TrackingLogger.prototype = {
  40437. warn$4$deprecation$span$trace: function(message, deprecation, span, trace) {
  40438. this._emittedWarning = true;
  40439. this._tracking$_logger.warn$4$deprecation$span$trace(message, deprecation, span, trace);
  40440. },
  40441. warn$2$deprecation: function(message, deprecation) {
  40442. return this.warn$4$deprecation$span$trace(message, deprecation, null, null);
  40443. },
  40444. warn$2$span: function(message, span) {
  40445. return this.warn$4$deprecation$span$trace(message, false, span, null);
  40446. },
  40447. warn$3$deprecation$span: function(message, deprecation, span) {
  40448. return this.warn$4$deprecation$span$trace(message, deprecation, span, null);
  40449. },
  40450. warn$2$trace: function(message, trace) {
  40451. return this.warn$4$deprecation$span$trace(message, false, null, trace);
  40452. },
  40453. debug$2: function(message, span) {
  40454. this._emittedDebug = true;
  40455. this._tracking$_logger.debug$2(message, span);
  40456. }
  40457. };
  40458. G.Module.prototype = {};
  40459. Q.BuiltInModule.prototype = {
  40460. get$upstream: function() {
  40461. return C.List_empty3;
  40462. },
  40463. get$variableNodes: function() {
  40464. return C.Map_empty1;
  40465. },
  40466. get$extender: function() {
  40467. return C.C_EmptyExtender;
  40468. },
  40469. get$css: function(_) {
  40470. return new V.CssStylesheet(C.List_empty0, Y.SourceFile$decoded(C.List_empty1, this.url).span$2(0, 0));
  40471. },
  40472. get$transitivelyContainsCss: function() {
  40473. return false;
  40474. },
  40475. get$transitivelyContainsExtensions: function() {
  40476. return false;
  40477. },
  40478. setVariable$3: function($name, value, nodeWithSpan) {
  40479. if (!this.variables.containsKey$1($name))
  40480. throw H.wrapException(E.SassScriptException$("Undefined variable."));
  40481. throw H.wrapException(E.SassScriptException$("Cannot modify built-in variable."));
  40482. },
  40483. variableIdentity$1: function($name) {
  40484. return this;
  40485. },
  40486. cloneCss$0: function() {
  40487. return this;
  40488. },
  40489. $isModule: 1,
  40490. get$url: function() {
  40491. return this.url;
  40492. },
  40493. get$functions: function(receiver) {
  40494. return this.functions;
  40495. },
  40496. get$mixins: function() {
  40497. return this.mixins;
  40498. },
  40499. get$variables: function() {
  40500. return this.variables;
  40501. }
  40502. };
  40503. R.ForwardedModuleView.prototype = {
  40504. get$url: function() {
  40505. return this._forwarded_view$_inner.get$url();
  40506. },
  40507. get$upstream: function() {
  40508. return this._forwarded_view$_inner.get$upstream();
  40509. },
  40510. get$extender: function() {
  40511. return this._forwarded_view$_inner.get$extender();
  40512. },
  40513. get$css: function(_) {
  40514. var t1 = this._forwarded_view$_inner;
  40515. return t1.get$css(t1);
  40516. },
  40517. get$transitivelyContainsCss: function() {
  40518. return this._forwarded_view$_inner.get$transitivelyContainsCss();
  40519. },
  40520. get$transitivelyContainsExtensions: function() {
  40521. return this._forwarded_view$_inner.get$transitivelyContainsExtensions();
  40522. },
  40523. setVariable$3: function($name, value, nodeWithSpan) {
  40524. var _s19_ = "Undefined variable.",
  40525. t1 = this._rule,
  40526. t2 = t1.shownVariables;
  40527. if (t2 != null && !t2._base.contains$1(0, $name))
  40528. throw H.wrapException(E.SassScriptException$(_s19_));
  40529. else {
  40530. t2 = t1.hiddenVariables;
  40531. if (t2 != null && t2._base.contains$1(0, $name))
  40532. throw H.wrapException(E.SassScriptException$(_s19_));
  40533. }
  40534. t1 = t1.prefix;
  40535. if (t1 != null) {
  40536. if (!C.JSString_methods.startsWith$1($name, t1))
  40537. throw H.wrapException(E.SassScriptException$(_s19_));
  40538. $name = C.JSString_methods.substring$1($name, t1.length);
  40539. }
  40540. return this._forwarded_view$_inner.setVariable$3($name, value, nodeWithSpan);
  40541. },
  40542. variableIdentity$1: function($name) {
  40543. var t1 = this._rule.prefix;
  40544. if (t1 != null)
  40545. $name = J.substring$1$s($name, t1.length);
  40546. return this._forwarded_view$_inner.variableIdentity$1($name);
  40547. },
  40548. $eq: function(_, other) {
  40549. if (other == null)
  40550. return false;
  40551. return other instanceof R.ForwardedModuleView && J.$eq$(this._forwarded_view$_inner, other._forwarded_view$_inner) && this._rule === other._rule;
  40552. },
  40553. get$hashCode: function(_) {
  40554. return (J.get$hashCode$(this._forwarded_view$_inner) ^ H.Primitives_objectHashCode(this._rule)) >>> 0;
  40555. },
  40556. cloneCss$0: function() {
  40557. return R.ForwardedModuleView$(this._forwarded_view$_inner.cloneCss$0(), this._rule, this.$ti._precomputed1);
  40558. },
  40559. toString$0: function(_) {
  40560. return "forwarded " + H.S(this._forwarded_view$_inner);
  40561. },
  40562. $isModule: 1,
  40563. get$variables: function() {
  40564. return this.variables;
  40565. },
  40566. get$variableNodes: function() {
  40567. return this.variableNodes;
  40568. },
  40569. get$functions: function(receiver) {
  40570. return this.functions;
  40571. },
  40572. get$mixins: function() {
  40573. return this.mixins;
  40574. }
  40575. };
  40576. B.ShadowedModuleView.prototype = {
  40577. get$url: function() {
  40578. return this._shadowed_view$_inner.get$url();
  40579. },
  40580. get$upstream: function() {
  40581. return this._shadowed_view$_inner.get$upstream();
  40582. },
  40583. get$extender: function() {
  40584. return this._shadowed_view$_inner.get$extender();
  40585. },
  40586. get$css: function(_) {
  40587. var t1 = this._shadowed_view$_inner;
  40588. return t1.get$css(t1);
  40589. },
  40590. get$transitivelyContainsCss: function() {
  40591. return this._shadowed_view$_inner.get$transitivelyContainsCss();
  40592. },
  40593. get$transitivelyContainsExtensions: function() {
  40594. return this._shadowed_view$_inner.get$transitivelyContainsExtensions();
  40595. },
  40596. setVariable$3: function($name, value, nodeWithSpan) {
  40597. if (!this.variables.containsKey$1($name))
  40598. throw H.wrapException(E.SassScriptException$("Undefined variable."));
  40599. else
  40600. return this._shadowed_view$_inner.setVariable$3($name, value, nodeWithSpan);
  40601. },
  40602. variableIdentity$1: function($name) {
  40603. return this._shadowed_view$_inner.variableIdentity$1($name);
  40604. },
  40605. $eq: function(_, other) {
  40606. var _this = this;
  40607. if (other == null)
  40608. return false;
  40609. return other instanceof B.ShadowedModuleView && _this._shadowed_view$_inner.$eq(0, other._shadowed_view$_inner) && C.C_IterableEquality.equals$2(_this.variables.get$keys(), other.variables.get$keys()) && C.C_IterableEquality.equals$2(_this.functions.get$keys(), other.functions.get$keys()) && C.C_IterableEquality.equals$2(_this.mixins.get$keys(), other.mixins.get$keys());
  40610. },
  40611. get$hashCode: function(_) {
  40612. var t1 = this._shadowed_view$_inner;
  40613. return t1.get$hashCode(t1);
  40614. },
  40615. cloneCss$0: function() {
  40616. var _this = this;
  40617. return new B.ShadowedModuleView(_this._shadowed_view$_inner.cloneCss$0(), _this.variables, _this.variableNodes, _this.functions, _this.mixins, _this.$ti);
  40618. },
  40619. toString$0: function(_) {
  40620. return "shadowed " + this._shadowed_view$_inner.toString$0(0);
  40621. },
  40622. $isModule: 1,
  40623. get$variables: function() {
  40624. return this.variables;
  40625. },
  40626. get$variableNodes: function() {
  40627. return this.variableNodes;
  40628. },
  40629. get$functions: function(receiver) {
  40630. return this.functions;
  40631. },
  40632. get$mixins: function() {
  40633. return this.mixins;
  40634. }
  40635. };
  40636. Y.Chokidar.prototype = {};
  40637. Y.ChokidarOptions.prototype = {};
  40638. Y.ChokidarWatcher.prototype = {};
  40639. F.JSFunction.prototype = {};
  40640. F.NodeImporterResult.prototype = {};
  40641. B._PropertyDescriptor.prototype = {};
  40642. V.AtRootQueryParser.prototype = {
  40643. parse$0: function() {
  40644. return this.wrapSpanFormatException$1(new V.AtRootQueryParser_parse_closure(this));
  40645. }
  40646. };
  40647. V.AtRootQueryParser_parse_closure.prototype = {
  40648. call$0: function() {
  40649. var include, atRules,
  40650. t1 = this.$this,
  40651. t2 = t1.scanner;
  40652. t2.expectChar$1(40);
  40653. t1.whitespace$0();
  40654. include = t1.scanIdentifier$1("with");
  40655. if (!include)
  40656. t1.expectIdentifier$2$name("without", '"with" or "without"');
  40657. t1.whitespace$0();
  40658. t2.expectChar$1(58);
  40659. t1.whitespace$0();
  40660. atRules = P.LinkedHashSet_LinkedHashSet$_empty(type$.String);
  40661. do {
  40662. atRules.add$1(0, t1.identifier$0().toLowerCase());
  40663. t1.whitespace$0();
  40664. } while (t1.lookingAtIdentifier$0());
  40665. t2.expectChar$1(41);
  40666. t2.expectDone$0();
  40667. return new V.AtRootQuery(include, atRules, atRules.contains$1(0, "all"), atRules.contains$1(0, "rule"));
  40668. },
  40669. $signature: 63
  40670. };
  40671. Q.closure105.prototype = {
  40672. call$1: function($function) {
  40673. return $function.name;
  40674. }
  40675. };
  40676. Q.CssParser.prototype = {
  40677. get$plainCss: function() {
  40678. return true;
  40679. },
  40680. silentComment$0: function() {
  40681. var t1 = this.scanner,
  40682. t2 = t1._string_scanner$_position;
  40683. this.super$Parser$silentComment();
  40684. this.error$2("Silent comments aren't allowed in plain CSS.", t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  40685. },
  40686. atRule$2$root: function(child, root) {
  40687. var $name, urlStart, next, url, urlSpan, queries, t2, t3, t4, t5, _this = this,
  40688. t1 = _this.scanner,
  40689. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  40690. t1.expectChar$1(64);
  40691. $name = _this.interpolatedIdentifier$0();
  40692. _this.whitespace$0();
  40693. switch ($name.get$asPlain()) {
  40694. case "at-root":
  40695. case "content":
  40696. case "debug":
  40697. case "each":
  40698. case "error":
  40699. case "extend":
  40700. case "for":
  40701. case "function":
  40702. case "if":
  40703. case "include":
  40704. case "mixin":
  40705. case "return":
  40706. case "warn":
  40707. case "while":
  40708. _this.almostAnyValue$0();
  40709. _this.error$2("This at-rule isn't allowed in plain CSS.", t1.spanFrom$1(start));
  40710. break;
  40711. case "charset":
  40712. _this.string$0();
  40713. if (!root)
  40714. _this.error$2("This at-rule is not allowed here.", t1.spanFrom$1(start));
  40715. return null;
  40716. case "import":
  40717. urlStart = new S._SpanScannerState(t1, t1._string_scanner$_position);
  40718. next = t1.peekChar$0();
  40719. url = next === 117 || next === 85 ? _this.dynamicUrl$0() : new D.StringExpression(_this.interpolatedString$0().asInterpolation$1$static(true), false);
  40720. urlSpan = t1.spanFrom$1(urlStart);
  40721. _this.whitespace$0();
  40722. queries = _this.tryImportQueries$0();
  40723. _this.expectStatementSeparator$1("@import rule");
  40724. t2 = X.Interpolation$([url], urlSpan);
  40725. t3 = t1.spanFrom$1(urlStart);
  40726. t4 = queries == null;
  40727. t5 = t4 ? null : queries.item1;
  40728. t2 = H.setRuntimeTypeInfo([new Q.StaticImport(t2, t5, t4 ? null : queries.item2, t3)], type$.JSArray_Import);
  40729. t1 = t1.spanFrom$1(start);
  40730. return new B.ImportRule(P.List_List$unmodifiable(t2, type$.Import), t1);
  40731. case "media":
  40732. return _this.mediaRule$1(start);
  40733. case "-moz-document":
  40734. return _this.mozDocumentRule$2(start, $name);
  40735. case "supports":
  40736. return _this.supportsRule$1(start);
  40737. default:
  40738. return _this.unknownAtRule$2(start, $name);
  40739. }
  40740. },
  40741. identifierLike$0: function() {
  40742. var t2, $arguments, _this = this,
  40743. t1 = _this.scanner,
  40744. start = new S._SpanScannerState(t1, t1._string_scanner$_position),
  40745. identifier = _this.interpolatedIdentifier$0(),
  40746. plain = identifier.get$asPlain(),
  40747. specialFunction = _this.trySpecialFunction$2(plain.toLowerCase(), start);
  40748. if (specialFunction != null)
  40749. return specialFunction;
  40750. t2 = t1._string_scanner$_position;
  40751. if (!t1.scanChar$1(40))
  40752. return new D.StringExpression(identifier, false);
  40753. $arguments = H.setRuntimeTypeInfo([], type$.JSArray_Expression);
  40754. if (!t1.scanChar$1(41)) {
  40755. do {
  40756. _this.whitespace$0();
  40757. $arguments.push(_this.expression$1$singleEquals(true));
  40758. _this.whitespace$0();
  40759. } while (t1.scanChar$1(44));
  40760. t1.expectChar$1(41);
  40761. }
  40762. if ($.$get$_disallowedFunctionNames().contains$1(0, plain))
  40763. _this.error$2("This function isn't allowed in plain CSS.", t1.spanFrom$1(start));
  40764. return new F.FunctionExpression(null, X.Interpolation$([new D.StringExpression(identifier, false)], identifier.span), X.ArgumentInvocation$($arguments, C.Map_empty3, t1.spanFrom$1(new S._SpanScannerState(t1, t2)), null, null), t1.spanFrom$1(start));
  40765. }
  40766. };
  40767. E.KeyframeSelectorParser.prototype = {
  40768. parse$0: function() {
  40769. return this.wrapSpanFormatException$1(new E.KeyframeSelectorParser_parse_closure(this));
  40770. },
  40771. _percentage$0: function() {
  40772. var t3, next,
  40773. t1 = this.scanner,
  40774. t2 = t1.scanChar$1(43) ? H.Primitives_stringFromCharCode(43) : "",
  40775. second = t1.peekChar$0();
  40776. if (!T.isDigit(second) && second !== 46)
  40777. t1.error$1("Expected number.");
  40778. while (true) {
  40779. t3 = t1.peekChar$0();
  40780. if (!(t3 != null && t3 >= 48 && t3 <= 57))
  40781. break;
  40782. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  40783. }
  40784. if (t1.peekChar$0() === 46) {
  40785. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  40786. while (true) {
  40787. t3 = t1.peekChar$0();
  40788. if (!(t3 != null && t3 >= 48 && t3 <= 57))
  40789. break;
  40790. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  40791. }
  40792. }
  40793. if (this.scanIdentifier$1("e")) {
  40794. t2 += t1.readChar$0();
  40795. next = t1.peekChar$0();
  40796. if (next === 43 || next === 45)
  40797. t2 += t1.readChar$0();
  40798. if (!T.isDigit(t1.peekChar$0()))
  40799. t1.error$1("Expected digit.");
  40800. while (true) {
  40801. t3 = t1.peekChar$0();
  40802. if (!(t3 != null && t3 >= 48 && t3 <= 57))
  40803. break;
  40804. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  40805. }
  40806. }
  40807. t1.expectChar$1(37);
  40808. t2 += H.Primitives_stringFromCharCode(37);
  40809. return t2.charCodeAt(0) == 0 ? t2 : t2;
  40810. }
  40811. };
  40812. E.KeyframeSelectorParser_parse_closure.prototype = {
  40813. call$0: function() {
  40814. var selectors = H.setRuntimeTypeInfo([], type$.JSArray_String),
  40815. t1 = this.$this,
  40816. t2 = t1.scanner;
  40817. do {
  40818. t1.whitespace$0();
  40819. if (t1.lookingAtIdentifier$0())
  40820. if (t1.scanIdentifier$1("from"))
  40821. selectors.push("from");
  40822. else {
  40823. t1.expectIdentifier$2$name("to", '"to" or "from"');
  40824. selectors.push("to");
  40825. }
  40826. else
  40827. selectors.push(t1._percentage$0());
  40828. t1.whitespace$0();
  40829. } while (t2.scanChar$1(44));
  40830. t2.expectDone$0();
  40831. return selectors;
  40832. },
  40833. $signature: 32
  40834. };
  40835. F.MediaQueryParser.prototype = {
  40836. parse$0: function() {
  40837. return this.wrapSpanFormatException$1(new F.MediaQueryParser_parse_closure(this));
  40838. },
  40839. _mediaQuery$0: function() {
  40840. var identifier1, identifier2, type, modifier, features, _this = this, _null = null,
  40841. t1 = _this.scanner;
  40842. if (t1.peekChar$0() !== 40) {
  40843. identifier1 = _this.identifier$0();
  40844. _this.whitespace$0();
  40845. if (!_this.lookingAtIdentifier$0())
  40846. return F.CssMediaQuery$(identifier1, _null, _null);
  40847. identifier2 = _this.identifier$0();
  40848. _this.whitespace$0();
  40849. if (B.equalsIgnoreCase(identifier2, "and")) {
  40850. type = identifier1;
  40851. modifier = _null;
  40852. } else {
  40853. if (_this.scanIdentifier$1("and"))
  40854. _this.whitespace$0();
  40855. else
  40856. return F.CssMediaQuery$(identifier2, _null, identifier1);
  40857. type = identifier2;
  40858. modifier = identifier1;
  40859. }
  40860. } else {
  40861. type = _null;
  40862. modifier = type;
  40863. }
  40864. features = H.setRuntimeTypeInfo([], type$.JSArray_String);
  40865. do {
  40866. _this.whitespace$0();
  40867. t1.expectChar$1(40);
  40868. features.push("(" + _this.declarationValue$0() + ")");
  40869. t1.expectChar$1(41);
  40870. _this.whitespace$0();
  40871. } while (_this.scanIdentifier$1("and"));
  40872. if (type == null)
  40873. return new F.CssMediaQuery(_null, _null, P.List_List$unmodifiable(features, type$.String));
  40874. else
  40875. return F.CssMediaQuery$(type, features, modifier);
  40876. }
  40877. };
  40878. F.MediaQueryParser_parse_closure.prototype = {
  40879. call$0: function() {
  40880. var queries = H.setRuntimeTypeInfo([], type$.JSArray_CssMediaQuery),
  40881. t1 = this.$this,
  40882. t2 = t1.scanner;
  40883. do {
  40884. t1.whitespace$0();
  40885. queries.push(t1._mediaQuery$0());
  40886. } while (t2.scanChar$1(44));
  40887. t2.expectDone$0();
  40888. return queries;
  40889. },
  40890. $signature: 62
  40891. };
  40892. G.Parser.prototype = {
  40893. _parseIdentifier$0: function() {
  40894. return this.wrapSpanFormatException$1(new G.Parser__parseIdentifier_closure(this));
  40895. },
  40896. _isVariableDeclarationLike$0: function() {
  40897. var _this = this,
  40898. t1 = _this.scanner;
  40899. if (!t1.scanChar$1(36))
  40900. return false;
  40901. if (!_this.lookingAtIdentifier$0())
  40902. return false;
  40903. _this.identifier$0();
  40904. _this.whitespace$0();
  40905. return t1.scanChar$1(58);
  40906. },
  40907. whitespace$0: function() {
  40908. do
  40909. this.whitespaceWithoutComments$0();
  40910. while (this.scanComment$0());
  40911. },
  40912. whitespaceWithoutComments$0: function() {
  40913. var t3,
  40914. t1 = this.scanner,
  40915. t2 = t1.string.length;
  40916. while (true) {
  40917. if (t1._string_scanner$_position !== t2) {
  40918. t3 = t1.peekChar$0();
  40919. t3 = t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12;
  40920. } else
  40921. t3 = false;
  40922. if (!t3)
  40923. break;
  40924. t1.readChar$0();
  40925. }
  40926. },
  40927. spaces$0: function() {
  40928. var t3,
  40929. t1 = this.scanner,
  40930. t2 = t1.string.length;
  40931. while (true) {
  40932. if (t1._string_scanner$_position !== t2) {
  40933. t3 = t1.peekChar$0();
  40934. t3 = t3 === 32 || t3 === 9;
  40935. } else
  40936. t3 = false;
  40937. if (!t3)
  40938. break;
  40939. t1.readChar$0();
  40940. }
  40941. },
  40942. scanComment$0: function() {
  40943. var next,
  40944. t1 = this.scanner;
  40945. if (t1.peekChar$0() !== 47)
  40946. return false;
  40947. next = t1.peekChar$1(1);
  40948. if (next === 47) {
  40949. this.silentComment$0();
  40950. return true;
  40951. } else if (next === 42) {
  40952. this.loudComment$0();
  40953. return true;
  40954. } else
  40955. return false;
  40956. },
  40957. silentComment$0: function() {
  40958. var t2, t3,
  40959. t1 = this.scanner;
  40960. t1.expect$1("//");
  40961. t2 = t1.string.length;
  40962. while (true) {
  40963. if (t1._string_scanner$_position !== t2) {
  40964. t3 = t1.peekChar$0();
  40965. t3 = !(t3 === 10 || t3 === 13 || t3 === 12);
  40966. } else
  40967. t3 = false;
  40968. if (!t3)
  40969. break;
  40970. t1.readChar$0();
  40971. }
  40972. },
  40973. loudComment$0: function() {
  40974. var next,
  40975. t1 = this.scanner;
  40976. t1.expect$1("/*");
  40977. for (; true;) {
  40978. if (t1.readChar$0() !== 42)
  40979. continue;
  40980. do
  40981. next = t1.readChar$0();
  40982. while (next === 42);
  40983. if (next === 47)
  40984. break;
  40985. }
  40986. },
  40987. identifier$2$normalize$unit: function(normalize, unit) {
  40988. var t2, first, _this = this,
  40989. _s20_ = "Expected identifier.",
  40990. text = new P.StringBuffer(""),
  40991. t1 = _this.scanner;
  40992. if (t1.scanChar$1(45)) {
  40993. t2 = text._contents = H.Primitives_stringFromCharCode(45);
  40994. if (t1.scanChar$1(45)) {
  40995. text._contents = t2 + H.Primitives_stringFromCharCode(45);
  40996. _this._identifierBody$3$normalize$unit(text, normalize, unit);
  40997. t1 = text._contents;
  40998. return t1.charCodeAt(0) == 0 ? t1 : t1;
  40999. }
  41000. } else
  41001. t2 = "";
  41002. first = t1.peekChar$0();
  41003. if (first == null)
  41004. t1.error$1(_s20_);
  41005. else if (normalize && first === 95) {
  41006. t1.readChar$0();
  41007. text._contents = t2 + H.Primitives_stringFromCharCode(45);
  41008. } else if (first === 95 || T.isAlphabetic0(first) || first >= 128)
  41009. text._contents = t2 + H.Primitives_stringFromCharCode(t1.readChar$0());
  41010. else if (first === 92)
  41011. text._contents = t2 + H.S(_this.escape$1$identifierStart(true));
  41012. else
  41013. t1.error$1(_s20_);
  41014. _this._identifierBody$3$normalize$unit(text, normalize, unit);
  41015. t1 = text._contents;
  41016. return t1.charCodeAt(0) == 0 ? t1 : t1;
  41017. },
  41018. identifier$0: function() {
  41019. return this.identifier$2$normalize$unit(false, false);
  41020. },
  41021. identifier$1$normalize: function(normalize) {
  41022. return this.identifier$2$normalize$unit(normalize, false);
  41023. },
  41024. identifier$1$unit: function(unit) {
  41025. return this.identifier$2$normalize$unit(false, unit);
  41026. },
  41027. _identifierBody$3$normalize$unit: function(text, normalize, unit) {
  41028. var t1, next, second, t2;
  41029. for (t1 = this.scanner; true;) {
  41030. next = t1.peekChar$0();
  41031. if (next == null)
  41032. break;
  41033. else if (unit && next === 45) {
  41034. second = t1.peekChar$1(1);
  41035. if (second != null)
  41036. if (second !== 46)
  41037. t2 = second >= 48 && second <= 57;
  41038. else
  41039. t2 = true;
  41040. else
  41041. t2 = false;
  41042. if (t2)
  41043. break;
  41044. text._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  41045. } else if (normalize && next === 95) {
  41046. t1.readChar$0();
  41047. text._contents += H.Primitives_stringFromCharCode(45);
  41048. } else {
  41049. if (next !== 95) {
  41050. if (!(next >= 97 && next <= 122))
  41051. t2 = next >= 65 && next <= 90;
  41052. else
  41053. t2 = true;
  41054. t2 = t2 || next >= 128;
  41055. } else
  41056. t2 = true;
  41057. if (!t2) {
  41058. t2 = next >= 48 && next <= 57;
  41059. t2 = t2 || next === 45;
  41060. } else
  41061. t2 = true;
  41062. if (t2)
  41063. text._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  41064. else if (next === 92)
  41065. text._contents += H.S(this.escape$0());
  41066. else
  41067. break;
  41068. }
  41069. }
  41070. },
  41071. _identifierBody$1: function(text) {
  41072. return this._identifierBody$3$normalize$unit(text, false, false);
  41073. },
  41074. string$0: function() {
  41075. var t2, buffer, next,
  41076. t1 = this.scanner,
  41077. quote = t1.readChar$0();
  41078. if (quote !== 39 && quote !== 34) {
  41079. t2 = t1._string_scanner$_position;
  41080. t1.error$2$position("Expected string.", t2 - 1);
  41081. }
  41082. buffer = new P.StringBuffer("");
  41083. for (; true;) {
  41084. next = t1.peekChar$0();
  41085. if (next === quote) {
  41086. t1.readChar$0();
  41087. break;
  41088. } else if (next == null || next === 10 || next === 13 || next === 12)
  41089. t1.error$1("Expected " + H.Primitives_stringFromCharCode(quote) + ".");
  41090. else if (next === 92) {
  41091. t2 = t1.peekChar$1(1);
  41092. if (t2 === 10 || t2 === 13 || t2 === 12) {
  41093. t1.readChar$0();
  41094. t1.readChar$0();
  41095. } else
  41096. buffer._contents += H.Primitives_stringFromCharCode(this.escapeCharacter$0());
  41097. } else
  41098. buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  41099. }
  41100. t1 = buffer._contents;
  41101. return t1.charCodeAt(0) == 0 ? t1 : t1;
  41102. },
  41103. naturalNumber$0: function() {
  41104. var number, t2,
  41105. t1 = this.scanner,
  41106. first = t1.readChar$0();
  41107. if (!T.isDigit(first))
  41108. t1.error$2$position("Expected digit.", t1._string_scanner$_position - 1);
  41109. number = first - 48;
  41110. while (true) {
  41111. t2 = t1.peekChar$0();
  41112. if (!(t2 != null && t2 >= 48 && t2 <= 57))
  41113. break;
  41114. number = number * 10 + (t1.readChar$0() - 48);
  41115. }
  41116. return number;
  41117. },
  41118. declarationValue$1$allowEmpty: function(allowEmpty) {
  41119. var t1, t2, wroteNewline, next, start, end, t3, url, _this = this,
  41120. buffer = new P.StringBuffer(""),
  41121. brackets = H.setRuntimeTypeInfo([], type$.JSArray_int);
  41122. $label0$1:
  41123. for (t1 = _this.scanner, t2 = _this.get$string(), wroteNewline = false; true;) {
  41124. next = t1.peekChar$0();
  41125. switch (next) {
  41126. case 92:
  41127. buffer._contents += H.S(_this.escape$1$identifierStart(true));
  41128. wroteNewline = false;
  41129. break;
  41130. case 34:
  41131. case 39:
  41132. start = t1._string_scanner$_position;
  41133. t2.call$0();
  41134. end = t1._string_scanner$_position;
  41135. buffer._contents += J.substring$2$s(t1.string, start, end);
  41136. wroteNewline = false;
  41137. break;
  41138. case 47:
  41139. if (t1.peekChar$1(1) === 42) {
  41140. t3 = _this.get$loudComment();
  41141. start = t1._string_scanner$_position;
  41142. t3.call$0();
  41143. end = t1._string_scanner$_position;
  41144. buffer._contents += J.substring$2$s(t1.string, start, end);
  41145. } else
  41146. buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  41147. wroteNewline = false;
  41148. break;
  41149. case 32:
  41150. case 9:
  41151. if (!wroteNewline) {
  41152. t3 = t1.peekChar$1(1);
  41153. t3 = !(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12);
  41154. } else
  41155. t3 = true;
  41156. if (t3)
  41157. buffer._contents += H.Primitives_stringFromCharCode(32);
  41158. t1.readChar$0();
  41159. break;
  41160. case 10:
  41161. case 13:
  41162. case 12:
  41163. t3 = t1.peekChar$1(-1);
  41164. if (!(t3 === 10 || t3 === 13 || t3 === 12))
  41165. buffer._contents += "\n";
  41166. t1.readChar$0();
  41167. wroteNewline = true;
  41168. break;
  41169. case 40:
  41170. case 123:
  41171. case 91:
  41172. buffer._contents += H.Primitives_stringFromCharCode(next);
  41173. brackets.push(T.opposite(t1.readChar$0()));
  41174. wroteNewline = false;
  41175. break;
  41176. case 41:
  41177. case 125:
  41178. case 93:
  41179. if (brackets.length === 0)
  41180. break $label0$1;
  41181. buffer._contents += H.Primitives_stringFromCharCode(next);
  41182. t1.expectChar$1(brackets.pop());
  41183. wroteNewline = false;
  41184. break;
  41185. case 59:
  41186. if (brackets.length === 0)
  41187. break $label0$1;
  41188. buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  41189. break;
  41190. case 117:
  41191. case 85:
  41192. url = _this.tryUrl$0();
  41193. if (url != null)
  41194. buffer._contents += url;
  41195. else
  41196. buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  41197. wroteNewline = false;
  41198. break;
  41199. default:
  41200. if (next == null)
  41201. break $label0$1;
  41202. if (_this.lookingAtIdentifier$0())
  41203. buffer._contents += _this.identifier$0();
  41204. else
  41205. buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  41206. wroteNewline = false;
  41207. break;
  41208. }
  41209. }
  41210. if (brackets.length !== 0)
  41211. t1.expectChar$1(C.JSArray_methods.get$last(brackets));
  41212. if (!allowEmpty && buffer._contents.length === 0)
  41213. t1.error$1("Expected token.");
  41214. t1 = buffer._contents;
  41215. return t1.charCodeAt(0) == 0 ? t1 : t1;
  41216. },
  41217. declarationValue$0: function() {
  41218. return this.declarationValue$1$allowEmpty(false);
  41219. },
  41220. tryUrl$0: function() {
  41221. var buffer, next, t2, _this = this,
  41222. t1 = _this.scanner,
  41223. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  41224. if (!_this.scanIdentifier$1("url"))
  41225. return null;
  41226. if (!t1.scanChar$1(40)) {
  41227. t1.set$state(start);
  41228. return null;
  41229. }
  41230. _this.whitespace$0();
  41231. buffer = new P.StringBuffer("");
  41232. buffer._contents = "url(";
  41233. for (; true;) {
  41234. next = t1.peekChar$0();
  41235. if (next == null)
  41236. break;
  41237. else {
  41238. if (next !== 37)
  41239. if (next !== 38)
  41240. if (next !== 35)
  41241. t2 = next >= 42 && next <= 126 || next >= 128;
  41242. else
  41243. t2 = true;
  41244. else
  41245. t2 = true;
  41246. else
  41247. t2 = true;
  41248. if (t2)
  41249. buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  41250. else if (next === 92)
  41251. buffer._contents += H.S(_this.escape$0());
  41252. else if (next === 32 || next === 9 || next === 10 || next === 13 || next === 12) {
  41253. _this.whitespace$0();
  41254. if (t1.peekChar$0() !== 41)
  41255. break;
  41256. } else if (next === 41) {
  41257. t2 = buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  41258. return t2.charCodeAt(0) == 0 ? t2 : t2;
  41259. } else
  41260. break;
  41261. }
  41262. }
  41263. t1.set$state(start);
  41264. return null;
  41265. },
  41266. variableName$0: function() {
  41267. this.scanner.expectChar$1(36);
  41268. return this.identifier$1$normalize(true);
  41269. },
  41270. escape$1$identifierStart: function(identifierStart) {
  41271. var first, value, i, next,
  41272. t1 = this.scanner;
  41273. t1.expectChar$1(92);
  41274. first = t1.peekChar$0();
  41275. if (first == null)
  41276. return "";
  41277. else if (T.isNewline(first)) {
  41278. t1.error$1("Expected escape sequence.");
  41279. value = 0;
  41280. } else if (T.isHex(first)) {
  41281. for (value = 0, i = 0; i < 6; ++i) {
  41282. next = t1.peekChar$0();
  41283. if (next == null || !T.isHex(next))
  41284. break;
  41285. value = value * 16 + T.asHex(t1.readChar$0());
  41286. }
  41287. this.scanCharIf$1(T.character__isWhitespace$closure());
  41288. } else
  41289. value = t1.readChar$0();
  41290. if (identifierStart)
  41291. t1 = value === 95 || T.isAlphabetic0(value) || value >= 128;
  41292. else
  41293. t1 = value === 95 || T.isAlphabetic0(value) || value >= 128 || T.isDigit(value) || value === 45;
  41294. if (t1)
  41295. return H.Primitives_stringFromCharCode(value);
  41296. else {
  41297. if (value > 31)
  41298. if (value !== 127)
  41299. t1 = identifierStart && T.isDigit(value);
  41300. else
  41301. t1 = true;
  41302. else
  41303. t1 = true;
  41304. if (t1) {
  41305. t1 = H.Primitives_stringFromCharCode(92);
  41306. if (value > 15)
  41307. t1 += H.Primitives_stringFromCharCode(T.hexCharFor(C.JSInt_methods._shrOtherPositive$1(value, 4)));
  41308. t1 = t1 + H.Primitives_stringFromCharCode(T.hexCharFor(value & 15)) + H.Primitives_stringFromCharCode(32);
  41309. return t1.charCodeAt(0) == 0 ? t1 : t1;
  41310. } else
  41311. return P.String_String$fromCharCodes(H.setRuntimeTypeInfo([92, value], type$.JSArray_int), 0, null);
  41312. }
  41313. },
  41314. escape$0: function() {
  41315. return this.escape$1$identifierStart(false);
  41316. },
  41317. escapeCharacter$0: function() {
  41318. var first, value, i, next, t2,
  41319. t1 = this.scanner;
  41320. t1.expectChar$1(92);
  41321. first = t1.peekChar$0();
  41322. if (first == null)
  41323. return 65533;
  41324. else if (T.isNewline(first))
  41325. t1.error$1("Expected escape sequence.");
  41326. else if (T.isHex(first)) {
  41327. for (value = 0, i = 0; i < 6; ++i) {
  41328. next = t1.peekChar$0();
  41329. if (next == null || !T.isHex(next))
  41330. break;
  41331. value = (value << 4 >>> 0) + T.asHex(t1.readChar$0());
  41332. }
  41333. t2 = t1.peekChar$0();
  41334. if (t2 === 32 || t2 === 9 || T.isNewline(t2))
  41335. t1.readChar$0();
  41336. if (value !== 0)
  41337. t1 = value >= 55296 && value <= 57343 || value >= 1114111;
  41338. else
  41339. t1 = true;
  41340. if (t1)
  41341. return 65533;
  41342. else
  41343. return value;
  41344. } else
  41345. return t1.readChar$0();
  41346. },
  41347. scanCharIf$1: function(condition) {
  41348. var t1 = this.scanner;
  41349. if (!condition.call$1(t1.peekChar$0()))
  41350. return false;
  41351. t1.readChar$0();
  41352. return true;
  41353. },
  41354. scanIdentChar$2$caseSensitive: function(char, caseSensitive) {
  41355. var t3,
  41356. t1 = new G.Parser_scanIdentChar_matches(caseSensitive, char),
  41357. t2 = this.scanner,
  41358. next = t2.peekChar$0();
  41359. if (t1.call$1(next)) {
  41360. t2.readChar$0();
  41361. return true;
  41362. } else if (next === 92) {
  41363. t3 = t2._string_scanner$_position;
  41364. if (t1.call$1(this.escapeCharacter$0()))
  41365. return true;
  41366. t2.set$state(new S._SpanScannerState(t2, t3));
  41367. }
  41368. return false;
  41369. },
  41370. scanIdentChar$1: function(char) {
  41371. return this.scanIdentChar$2$caseSensitive(char, false);
  41372. },
  41373. expectIdentChar$1: function(letter) {
  41374. var t1;
  41375. if (this.scanIdentChar$2$caseSensitive(letter, false))
  41376. return;
  41377. t1 = this.scanner;
  41378. t1.error$2$position('Expected "' + H.Primitives_stringFromCharCode(letter) + '".', t1._string_scanner$_position);
  41379. },
  41380. lookingAtNumber$0: function() {
  41381. var second, third,
  41382. t1 = this.scanner,
  41383. first = t1.peekChar$0();
  41384. if (first == null)
  41385. return false;
  41386. if (T.isDigit(first))
  41387. return true;
  41388. if (first === 46) {
  41389. second = t1.peekChar$1(1);
  41390. return second != null && T.isDigit(second);
  41391. } else if (first === 43 || first === 45) {
  41392. second = t1.peekChar$1(1);
  41393. if (second == null)
  41394. return false;
  41395. if (T.isDigit(second))
  41396. return true;
  41397. if (second !== 46)
  41398. return false;
  41399. third = t1.peekChar$1(2);
  41400. return third != null && T.isDigit(third);
  41401. } else
  41402. return false;
  41403. },
  41404. lookingAtIdentifier$1: function($forward) {
  41405. var t1, first, second;
  41406. if ($forward == null)
  41407. $forward = 0;
  41408. t1 = this.scanner;
  41409. first = t1.peekChar$1($forward);
  41410. if (first == null)
  41411. return false;
  41412. if (first === 95 || T.isAlphabetic0(first) || first >= 128 || first === 92)
  41413. return true;
  41414. if (first !== 45)
  41415. return false;
  41416. second = t1.peekChar$1($forward + 1);
  41417. if (second == null)
  41418. return false;
  41419. return second === 95 || T.isAlphabetic0(second) || second >= 128 || second === 92 || second === 45;
  41420. },
  41421. lookingAtIdentifier$0: function() {
  41422. return this.lookingAtIdentifier$1(null);
  41423. },
  41424. lookingAtIdentifierBody$0: function() {
  41425. var t1,
  41426. next = this.scanner.peekChar$0();
  41427. if (next != null)
  41428. t1 = next === 95 || T.isAlphabetic0(next) || next >= 128 || T.isDigit(next) || next === 45 || next === 92;
  41429. else
  41430. t1 = false;
  41431. return t1;
  41432. },
  41433. scanIdentifier$2$caseSensitive: function(text, caseSensitive) {
  41434. var t1, start, t2, _this = this;
  41435. if (!_this.lookingAtIdentifier$0())
  41436. return false;
  41437. t1 = _this.scanner;
  41438. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  41439. for (t2 = new H.CodeUnits(text), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  41440. if (_this.scanIdentChar$2$caseSensitive(t2.__internal$_current, caseSensitive))
  41441. continue;
  41442. if (start._scanner !== t1)
  41443. H.throwExpression(P.ArgumentError$("The given LineScannerState was not returned by this LineScanner."));
  41444. t2 = start.position;
  41445. if (t2 < 0 || t2 > t1.string.length)
  41446. H.throwExpression(P.ArgumentError$("Invalid position " + t2));
  41447. t1._string_scanner$_position = t2;
  41448. t1._lastMatch = null;
  41449. return false;
  41450. }
  41451. if (!_this.lookingAtIdentifierBody$0())
  41452. return true;
  41453. t1.set$state(start);
  41454. return false;
  41455. },
  41456. scanIdentifier$1: function(text) {
  41457. return this.scanIdentifier$2$caseSensitive(text, false);
  41458. },
  41459. expectIdentifier$2$name: function(text, $name) {
  41460. var t1, start, t2;
  41461. if ($name == null)
  41462. $name = '"' + text + '"';
  41463. t1 = this.scanner;
  41464. start = t1._string_scanner$_position;
  41465. for (t2 = new H.CodeUnits(text), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  41466. if (this.scanIdentChar$2$caseSensitive(t2.__internal$_current, false))
  41467. continue;
  41468. t1.error$2$position("Expected " + $name + ".", start);
  41469. }
  41470. if (!this.lookingAtIdentifierBody$0())
  41471. return;
  41472. t1.error$2$position("Expected " + $name, start);
  41473. },
  41474. expectIdentifier$1: function(text) {
  41475. return this.expectIdentifier$2$name(text, null);
  41476. },
  41477. rawText$1: function(consumer) {
  41478. var t1 = this.scanner,
  41479. start = t1._string_scanner$_position;
  41480. consumer.call$0();
  41481. return t1.substring$1(0, start);
  41482. },
  41483. error$2: function(message, span) {
  41484. return H.throwExpression(E.StringScannerException$(message, span, this.scanner.string));
  41485. },
  41486. withErrorMessage$1$2: function(message, callback) {
  41487. var error, t1, exception;
  41488. try {
  41489. t1 = callback.call$0();
  41490. return t1;
  41491. } catch (exception) {
  41492. t1 = H.unwrapException(exception);
  41493. if (type$.SourceSpanFormatException._is(t1)) {
  41494. error = t1;
  41495. throw H.wrapException(G.SourceSpanFormatException$(message, error.get$span(), error.get$source()));
  41496. } else
  41497. throw exception;
  41498. }
  41499. },
  41500. withErrorMessage$2: function(message, callback) {
  41501. return this.withErrorMessage$1$2(message, callback, type$.dynamic);
  41502. },
  41503. wrapSpanFormatException$1$1: function(callback) {
  41504. var error, span, startPosition, t1, exception;
  41505. try {
  41506. t1 = callback.call$0();
  41507. return t1;
  41508. } catch (exception) {
  41509. t1 = H.unwrapException(exception);
  41510. if (type$.SourceSpanFormatException._is(t1)) {
  41511. error = t1;
  41512. span = error.get$span();
  41513. if (B.startsWithIgnoreCase(error._span_exception$_message, "expected")) {
  41514. t1 = span;
  41515. t1 = t1._end - t1._file$_start === 0;
  41516. } else
  41517. t1 = false;
  41518. if (t1) {
  41519. t1 = span;
  41520. startPosition = this._firstNewlineBefore$1(Y.FileLocation$_(t1.file, t1._file$_start).offset);
  41521. t1 = span;
  41522. if (!J.$eq$(startPosition, Y.FileLocation$_(t1.file, t1._file$_start).offset))
  41523. span = span.file.span$2(startPosition, startPosition);
  41524. }
  41525. throw H.wrapException(E.SassFormatException$(error._span_exception$_message, span));
  41526. } else
  41527. throw exception;
  41528. }
  41529. },
  41530. wrapSpanFormatException$1: function(callback) {
  41531. return this.wrapSpanFormatException$1$1(callback, type$.dynamic);
  41532. },
  41533. _firstNewlineBefore$1: function(position) {
  41534. var t1, t2, lastNewline, codeUnit,
  41535. index = position - 1;
  41536. for (t1 = this.scanner.string, t2 = J.getInterceptor$s(t1), lastNewline = null; index >= 0;) {
  41537. codeUnit = t2.codeUnitAt$1(t1, index);
  41538. if (!(codeUnit === 32 || codeUnit === 9 || codeUnit === 10 || codeUnit === 13 || codeUnit === 12))
  41539. return lastNewline == null ? position : lastNewline;
  41540. if (codeUnit === 10 || codeUnit === 13 || codeUnit === 12)
  41541. lastNewline = index;
  41542. --index;
  41543. }
  41544. return position;
  41545. }
  41546. };
  41547. G.Parser__parseIdentifier_closure.prototype = {
  41548. call$0: function() {
  41549. var t1 = this.$this,
  41550. result = t1.identifier$0();
  41551. t1.scanner.expectDone$0();
  41552. return result;
  41553. },
  41554. $signature: 10
  41555. };
  41556. G.Parser_scanIdentChar_matches.prototype = {
  41557. call$1: function(actual) {
  41558. var t1 = this.char;
  41559. return this.caseSensitive ? actual == t1 : T.characterEqualsIgnoreCase(t1, actual);
  41560. },
  41561. $signature: 16
  41562. };
  41563. U.SassParser.prototype = {
  41564. get$currentIndentation: function() {
  41565. return this._currentIndentation;
  41566. },
  41567. get$indented: function() {
  41568. return true;
  41569. },
  41570. styleRuleSelector$0: function() {
  41571. var t4,
  41572. t1 = this.scanner,
  41573. t2 = t1._string_scanner$_position,
  41574. t3 = new P.StringBuffer(""),
  41575. buffer = new Z.InterpolationBuffer(t3, []);
  41576. do {
  41577. buffer.addInterpolation$1(this.almostAnyValue$0());
  41578. t4 = t3._contents += H.Primitives_stringFromCharCode(10);
  41579. } while (C.JSString_methods.endsWith$1(C.JSString_methods.trimRight$0(t4.charCodeAt(0) == 0 ? t4 : t4), ",") && this.scanCharIf$1(T.character__isNewline$closure()));
  41580. return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  41581. },
  41582. expectStatementSeparator$1: function($name) {
  41583. var _this = this;
  41584. if (!_this.atEndOfStatement$0())
  41585. _this._expectNewline$0();
  41586. if (_this._peekIndentation$0() <= _this._currentIndentation)
  41587. return;
  41588. _this.scanner.error$2$position("Nothing may be indented " + ($name == null ? "here" : "beneath a " + $name) + ".", _this._nextIndentationEnd.position);
  41589. },
  41590. expectStatementSeparator$0: function() {
  41591. return this.expectStatementSeparator$1(null);
  41592. },
  41593. atEndOfStatement$0: function() {
  41594. var next = this.scanner.peekChar$0();
  41595. return next == null || T.isNewline(next);
  41596. },
  41597. lookingAtChildren$0: function() {
  41598. return this.atEndOfStatement$0() && this._peekIndentation$0() > this._currentIndentation;
  41599. },
  41600. importArgument$0: function() {
  41601. var url, span, innerError, start, next, t2, exception, _this = this,
  41602. t1 = _this.scanner;
  41603. switch (t1.peekChar$0()) {
  41604. case 117:
  41605. case 85:
  41606. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  41607. if (_this.scanIdentifier$1("url"))
  41608. if (t1.scanChar$1(40)) {
  41609. t1.set$state(start);
  41610. return _this.super$StylesheetParser$importArgument();
  41611. } else
  41612. t1.set$state(start);
  41613. break;
  41614. case 39:
  41615. case 34:
  41616. return _this.super$StylesheetParser$importArgument();
  41617. }
  41618. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  41619. next = t1.peekChar$0();
  41620. while (true) {
  41621. if (next != null)
  41622. if (next !== 44)
  41623. if (next !== 59)
  41624. t2 = !(next === 10 || next === 13 || next === 12);
  41625. else
  41626. t2 = false;
  41627. else
  41628. t2 = false;
  41629. else
  41630. t2 = false;
  41631. if (!t2)
  41632. break;
  41633. t1.readChar$0();
  41634. next = t1.peekChar$0();
  41635. }
  41636. url = t1.substring$1(0, start.position);
  41637. span = t1.spanFrom$1(start);
  41638. if (_this.isPlainImportUrl$1(url))
  41639. return new Q.StaticImport(X.Interpolation$([N.serializeValue0(new D.SassString(url, true), true, true)], span), null, null, span);
  41640. else
  41641. try {
  41642. t1 = _this.parseImportUrl$1(url);
  41643. return new B.DynamicImport(t1, span);
  41644. } catch (exception) {
  41645. t1 = H.unwrapException(exception);
  41646. if (type$.FormatException._is(t1)) {
  41647. innerError = t1;
  41648. _this.error$2("Invalid URL: " + H.S(J.get$message$x(innerError)), span);
  41649. } else
  41650. throw exception;
  41651. }
  41652. },
  41653. scanElse$1: function(ifIndentation) {
  41654. var t1, t2, startIndentation, startNextIndentation, startNextIndentationEnd, _this = this;
  41655. if (_this._peekIndentation$0() != ifIndentation)
  41656. return false;
  41657. t1 = _this.scanner;
  41658. t2 = t1._string_scanner$_position;
  41659. startIndentation = _this._currentIndentation;
  41660. startNextIndentation = _this._nextIndentation;
  41661. startNextIndentationEnd = _this._nextIndentationEnd;
  41662. _this._readIndentation$0();
  41663. if (t1.scanChar$1(64) && _this.scanIdentifier$1("else"))
  41664. return true;
  41665. t1.set$state(new S._SpanScannerState(t1, t2));
  41666. _this._currentIndentation = startIndentation;
  41667. _this._nextIndentation = startNextIndentation;
  41668. _this._nextIndentationEnd = startNextIndentationEnd;
  41669. return false;
  41670. },
  41671. children$1: function(child) {
  41672. var children = H.setRuntimeTypeInfo([], type$.JSArray_Statement);
  41673. this._whileIndentedLower$1(new U.SassParser_children_closure(this, children, child));
  41674. return children;
  41675. },
  41676. statements$1: function(statement) {
  41677. var statements, t2, child,
  41678. t1 = this.scanner,
  41679. first = t1.peekChar$0();
  41680. if (first === 9 || first === 32)
  41681. t1.error$3$length$position("Indenting at the beginning of the document is illegal.", t1._string_scanner$_position, 0);
  41682. statements = H.setRuntimeTypeInfo([], type$.JSArray_Statement);
  41683. for (t2 = t1.string.length; t1._string_scanner$_position !== t2;) {
  41684. child = this._child$1(statement);
  41685. if (child != null)
  41686. statements.push(child);
  41687. this._readIndentation$0();
  41688. }
  41689. return statements;
  41690. },
  41691. _child$1: function(child) {
  41692. var _this = this,
  41693. t1 = _this.scanner;
  41694. switch (t1.peekChar$0()) {
  41695. case 13:
  41696. case 10:
  41697. case 12:
  41698. return null;
  41699. case 36:
  41700. return _this.variableDeclarationWithoutNamespace$0();
  41701. case 47:
  41702. switch (t1.peekChar$1(1)) {
  41703. case 47:
  41704. return _this._silentComment$0();
  41705. case 42:
  41706. return _this._loudComment$0();
  41707. default:
  41708. return child.call$0();
  41709. }
  41710. default:
  41711. return child.call$0();
  41712. }
  41713. },
  41714. _silentComment$0: function() {
  41715. var buffer, parentIndentation, t3, commentPrefix, i, t4, i0, t5, t6, _this = this,
  41716. t1 = _this.scanner,
  41717. t2 = t1._string_scanner$_position;
  41718. t1.expect$1("//");
  41719. buffer = new P.StringBuffer("");
  41720. parentIndentation = _this._currentIndentation;
  41721. t3 = t1.string;
  41722. $label0$0:
  41723. do {
  41724. commentPrefix = t1.scanChar$1(47) ? "///" : "//";
  41725. for (i = commentPrefix.length; true;) {
  41726. t4 = buffer._contents += commentPrefix;
  41727. for (i0 = i; i0 < _this._currentIndentation - parentIndentation; ++i0) {
  41728. t4 += H.Primitives_stringFromCharCode(32);
  41729. buffer._contents = t4;
  41730. }
  41731. t5 = t3.length;
  41732. while (true) {
  41733. if (t1._string_scanner$_position !== t5) {
  41734. t6 = t1.peekChar$0();
  41735. t6 = !(t6 === 10 || t6 === 13 || t6 === 12);
  41736. } else
  41737. t6 = false;
  41738. if (!t6)
  41739. break;
  41740. t4 += H.Primitives_stringFromCharCode(t1.readChar$0());
  41741. buffer._contents = t4;
  41742. }
  41743. buffer._contents = t4 + "\n";
  41744. if (_this._peekIndentation$0() < parentIndentation)
  41745. break $label0$0;
  41746. if (_this._peekIndentation$0() === parentIndentation) {
  41747. if (t1.peekChar$1(1 + parentIndentation) === 47 && t1.peekChar$1(2 + parentIndentation) === 47)
  41748. _this._readIndentation$0();
  41749. break;
  41750. }
  41751. _this._readIndentation$0();
  41752. }
  41753. } while (t1.scan$1("//"));
  41754. t3 = buffer._contents;
  41755. return _this.lastSilentComment = new B.SilentComment(t3.charCodeAt(0) == 0 ? t3 : t3, t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  41756. },
  41757. _loudComment$0: function() {
  41758. var t3, t4, buffer, parentIndentation, t5, first, beginningOfComment, t6, end, i, t7, _this = this,
  41759. t1 = _this.scanner,
  41760. t2 = t1._string_scanner$_position;
  41761. t1.expect$1("/*");
  41762. t3 = new P.StringBuffer("");
  41763. t4 = [];
  41764. buffer = new Z.InterpolationBuffer(t3, t4);
  41765. t3._contents = "/*";
  41766. parentIndentation = _this._currentIndentation;
  41767. for (t5 = t1.string, first = true; true; first = false) {
  41768. if (first) {
  41769. beginningOfComment = t1._string_scanner$_position;
  41770. _this.spaces$0();
  41771. t6 = t1.peekChar$0();
  41772. if (t6 === 10 || t6 === 13 || t6 === 12) {
  41773. _this._readIndentation$0();
  41774. t3._contents += H.Primitives_stringFromCharCode(32);
  41775. } else {
  41776. end = t1._string_scanner$_position;
  41777. t3._contents += J.substring$2$s(t5, beginningOfComment, end);
  41778. }
  41779. } else {
  41780. t6 = t3._contents += "\n";
  41781. t3._contents = t6 + " * ";
  41782. }
  41783. for (i = 3; i < _this._currentIndentation - parentIndentation; ++i)
  41784. t3._contents += H.Primitives_stringFromCharCode(32);
  41785. $label0$1:
  41786. for (t6 = t5.length; t1._string_scanner$_position !== t6;)
  41787. switch (t1.peekChar$0()) {
  41788. case 10:
  41789. case 13:
  41790. case 12:
  41791. break $label0$1;
  41792. case 35:
  41793. if (t1.peekChar$1(1) === 123) {
  41794. t7 = _this.singleInterpolation$0();
  41795. buffer._flushText$0();
  41796. t4.push(t7);
  41797. } else
  41798. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  41799. break;
  41800. default:
  41801. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  41802. break;
  41803. }
  41804. if (_this._peekIndentation$0() <= parentIndentation)
  41805. break;
  41806. for (; _this._lookingAtDoubleNewline$0();) {
  41807. _this._expectNewline$0();
  41808. t6 = t3._contents += "\n";
  41809. t3._contents = t6 + " *";
  41810. }
  41811. _this._readIndentation$0();
  41812. }
  41813. t4 = t3._contents;
  41814. if (!C.JSString_methods.endsWith$1(C.JSString_methods.trimRight$0(t4.charCodeAt(0) == 0 ? t4 : t4), "*/"))
  41815. t3._contents += " */";
  41816. return new L.LoudComment(buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2))));
  41817. },
  41818. whitespaceWithoutComments$0: function() {
  41819. var t1, t2, next;
  41820. for (t1 = this.scanner, t2 = t1.string.length; t1._string_scanner$_position !== t2;) {
  41821. next = t1.peekChar$0();
  41822. if (next !== 9 && next !== 32)
  41823. break;
  41824. t1.readChar$0();
  41825. }
  41826. },
  41827. loudComment$0: function() {
  41828. var next,
  41829. t1 = this.scanner;
  41830. t1.expect$1("/*");
  41831. for (; true;) {
  41832. next = t1.readChar$0();
  41833. if (next === 10 || next === 13 || next === 12)
  41834. t1.error$1("expected */.");
  41835. if (next !== 42)
  41836. continue;
  41837. do
  41838. next = t1.readChar$0();
  41839. while (next === 42);
  41840. if (next === 47)
  41841. break;
  41842. }
  41843. },
  41844. _expectNewline$0: function() {
  41845. var t1 = this.scanner;
  41846. switch (t1.peekChar$0()) {
  41847. case 59:
  41848. t1.error$1("semicolons aren't allowed in the indented syntax.");
  41849. break;
  41850. case 13:
  41851. t1.readChar$0();
  41852. if (t1.peekChar$0() === 10)
  41853. t1.readChar$0();
  41854. return;
  41855. case 10:
  41856. case 12:
  41857. t1.readChar$0();
  41858. return;
  41859. default:
  41860. t1.error$1("expected newline.");
  41861. }
  41862. },
  41863. _lookingAtDoubleNewline$0: function() {
  41864. var nextChar,
  41865. t1 = this.scanner;
  41866. switch (t1.peekChar$0()) {
  41867. case 13:
  41868. nextChar = t1.peekChar$1(1);
  41869. if (nextChar === 10)
  41870. return T.isNewline(t1.peekChar$1(2));
  41871. return nextChar === 13 || nextChar === 12;
  41872. case 10:
  41873. case 12:
  41874. return T.isNewline(t1.peekChar$1(1));
  41875. default:
  41876. return false;
  41877. }
  41878. },
  41879. _whileIndentedLower$1: function(body) {
  41880. var t1, t2, childIndentation, indentation, t3, t4, t5, _this = this,
  41881. parentIndentation = _this._currentIndentation;
  41882. for (t1 = _this.scanner, t2 = t1._sourceFile, childIndentation = null; _this._peekIndentation$0() > parentIndentation;) {
  41883. indentation = _this._readIndentation$0();
  41884. if (childIndentation == null)
  41885. childIndentation = indentation;
  41886. if (childIndentation != indentation) {
  41887. t3 = "Inconsistent indentation, expected " + H.S(childIndentation) + " spaces.";
  41888. t4 = t1._string_scanner$_position;
  41889. t5 = t2.getColumn$1(t4);
  41890. t1.error$3$length$position(t3, t2.getColumn$1(t1._string_scanner$_position), t4 - t5);
  41891. }
  41892. body.call$0();
  41893. }
  41894. },
  41895. _readIndentation$0: function() {
  41896. var _this = this;
  41897. if (_this._nextIndentation == null)
  41898. _this._peekIndentation$0();
  41899. _this._currentIndentation = _this._nextIndentation;
  41900. _this.scanner.set$state(_this._nextIndentationEnd);
  41901. _this._nextIndentationEnd = _this._nextIndentation = null;
  41902. return _this._currentIndentation;
  41903. },
  41904. _peekIndentation$0: function() {
  41905. var t2, t3, start, containsTab, containsSpace, next, t4, _this = this,
  41906. t1 = _this._nextIndentation;
  41907. if (t1 != null)
  41908. return t1;
  41909. t1 = _this.scanner;
  41910. t2 = t1._string_scanner$_position;
  41911. t3 = t1.string.length;
  41912. if (t2 === t3) {
  41913. _this._nextIndentation = 0;
  41914. _this._nextIndentationEnd = new S._SpanScannerState(t1, t2);
  41915. return 0;
  41916. }
  41917. start = new S._SpanScannerState(t1, t2);
  41918. if (!_this.scanCharIf$1(T.character__isNewline$closure()))
  41919. t1.error$2$position("Expected newline.", t1._string_scanner$_position);
  41920. do {
  41921. _this._nextIndentation = 0;
  41922. for (containsTab = false, containsSpace = false; true;) {
  41923. next = t1.peekChar$0();
  41924. if (next === 32)
  41925. containsSpace = true;
  41926. else {
  41927. if (next !== 9)
  41928. break;
  41929. containsTab = true;
  41930. }
  41931. _this._nextIndentation = _this._nextIndentation + 1;
  41932. t1.readChar$0();
  41933. }
  41934. t2 = t1._string_scanner$_position;
  41935. if (t2 === t3) {
  41936. _this._nextIndentation = 0;
  41937. _this._nextIndentationEnd = new S._SpanScannerState(t1, t2);
  41938. t1.set$state(start);
  41939. return 0;
  41940. }
  41941. } while (_this.scanCharIf$1(T.character__isNewline$closure()));
  41942. if (containsTab) {
  41943. if (containsSpace) {
  41944. t2 = t1._string_scanner$_position;
  41945. t3 = t1._sourceFile;
  41946. t4 = t3.getColumn$1(t2);
  41947. t1.error$3$length$position("Tabs and spaces may not be mixed.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
  41948. } else if (_this._spaces === true) {
  41949. t2 = t1._string_scanner$_position;
  41950. t3 = t1._sourceFile;
  41951. t4 = t3.getColumn$1(t2);
  41952. t1.error$3$length$position("Expected spaces, was tabs.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
  41953. }
  41954. } else if (containsSpace && _this._spaces === false) {
  41955. t2 = t1._string_scanner$_position;
  41956. t3 = t1._sourceFile;
  41957. t4 = t3.getColumn$1(t2);
  41958. t1.error$3$length$position("Expected tabs, was spaces.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
  41959. }
  41960. if (_this._nextIndentation > 0)
  41961. if (_this._spaces == null)
  41962. _this._spaces = containsSpace;
  41963. _this._nextIndentationEnd = new S._SpanScannerState(t1, t1._string_scanner$_position);
  41964. t1.set$state(start);
  41965. return _this._nextIndentation;
  41966. }
  41967. };
  41968. U.SassParser_children_closure.prototype = {
  41969. call$0: function() {
  41970. this.children.push(this.$this._child$1(this.child));
  41971. },
  41972. $signature: 0
  41973. };
  41974. L.ScssParser.prototype = {
  41975. get$indented: function() {
  41976. return false;
  41977. },
  41978. get$currentIndentation: function() {
  41979. return null;
  41980. },
  41981. styleRuleSelector$0: function() {
  41982. return this.almostAnyValue$0();
  41983. },
  41984. expectStatementSeparator$1: function($name) {
  41985. var t1, next;
  41986. this.whitespaceWithoutComments$0();
  41987. t1 = this.scanner;
  41988. if (t1._string_scanner$_position === t1.string.length)
  41989. return;
  41990. next = t1.peekChar$0();
  41991. if (next === 59 || next === 125)
  41992. return;
  41993. t1.expectChar$1(59);
  41994. },
  41995. expectStatementSeparator$0: function() {
  41996. return this.expectStatementSeparator$1(null);
  41997. },
  41998. atEndOfStatement$0: function() {
  41999. var next = this.scanner.peekChar$0();
  42000. return next == null || next === 59 || next === 125 || next === 123;
  42001. },
  42002. lookingAtChildren$0: function() {
  42003. return this.scanner.peekChar$0() === 123;
  42004. },
  42005. scanElse$1: function(_) {
  42006. var t3, _this = this,
  42007. t1 = _this.scanner,
  42008. t2 = t1._string_scanner$_position;
  42009. _this.whitespace$0();
  42010. t3 = t1._string_scanner$_position;
  42011. if (t1.scanChar$1(64)) {
  42012. if (_this.scanIdentifier$2$caseSensitive("else", true))
  42013. return true;
  42014. if (_this.scanIdentifier$2$caseSensitive("elseif", true)) {
  42015. _this.logger.warn$3$deprecation$span('@elseif is deprecated and will not be supported in future Sass versions.\nUse "@else if" instead.', true, t1.spanFrom$1(new S._SpanScannerState(t1, t3)));
  42016. t1.set$position(t1._string_scanner$_position - 2);
  42017. return true;
  42018. }
  42019. }
  42020. t1.set$state(new S._SpanScannerState(t1, t2));
  42021. return false;
  42022. },
  42023. children$1: function(child) {
  42024. var children, _this = this,
  42025. t1 = _this.scanner;
  42026. t1.expectChar$1(123);
  42027. _this.whitespaceWithoutComments$0();
  42028. children = H.setRuntimeTypeInfo([], type$.JSArray_Statement);
  42029. for (; true;)
  42030. switch (t1.peekChar$0()) {
  42031. case 36:
  42032. children.push(_this.variableDeclarationWithoutNamespace$0());
  42033. break;
  42034. case 47:
  42035. switch (t1.peekChar$1(1)) {
  42036. case 47:
  42037. children.push(_this._scss$_silentComment$0());
  42038. _this.whitespaceWithoutComments$0();
  42039. break;
  42040. case 42:
  42041. children.push(_this._scss$_loudComment$0());
  42042. _this.whitespaceWithoutComments$0();
  42043. break;
  42044. default:
  42045. children.push(child.call$0());
  42046. break;
  42047. }
  42048. break;
  42049. case 59:
  42050. t1.readChar$0();
  42051. _this.whitespaceWithoutComments$0();
  42052. break;
  42053. case 125:
  42054. t1.expectChar$1(125);
  42055. return children;
  42056. default:
  42057. children.push(child.call$0());
  42058. break;
  42059. }
  42060. },
  42061. statements$1: function(statement) {
  42062. var t1, t2, child, _this = this,
  42063. statements = H.setRuntimeTypeInfo([], type$.JSArray_Statement);
  42064. _this.whitespaceWithoutComments$0();
  42065. for (t1 = _this.scanner, t2 = t1.string.length; t1._string_scanner$_position !== t2;)
  42066. switch (t1.peekChar$0()) {
  42067. case 36:
  42068. statements.push(_this.variableDeclarationWithoutNamespace$0());
  42069. break;
  42070. case 47:
  42071. switch (t1.peekChar$1(1)) {
  42072. case 47:
  42073. statements.push(_this._scss$_silentComment$0());
  42074. _this.whitespaceWithoutComments$0();
  42075. break;
  42076. case 42:
  42077. statements.push(_this._scss$_loudComment$0());
  42078. _this.whitespaceWithoutComments$0();
  42079. break;
  42080. default:
  42081. child = statement.call$0();
  42082. if (child != null)
  42083. statements.push(child);
  42084. break;
  42085. }
  42086. break;
  42087. case 59:
  42088. t1.readChar$0();
  42089. _this.whitespaceWithoutComments$0();
  42090. break;
  42091. default:
  42092. child = statement.call$0();
  42093. if (child != null)
  42094. statements.push(child);
  42095. break;
  42096. }
  42097. return statements;
  42098. },
  42099. _scss$_silentComment$0: function() {
  42100. var t2, t3, _this = this,
  42101. t1 = _this.scanner,
  42102. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  42103. t1.expect$1("//");
  42104. t2 = t1.string.length;
  42105. do {
  42106. while (true) {
  42107. if (t1._string_scanner$_position !== t2) {
  42108. t3 = t1.readChar$0();
  42109. t3 = !(t3 === 10 || t3 === 13 || t3 === 12);
  42110. } else
  42111. t3 = false;
  42112. if (!t3)
  42113. break;
  42114. }
  42115. if (t1._string_scanner$_position === t2)
  42116. break;
  42117. _this.whitespaceWithoutComments$0();
  42118. } while (t1.scan$1("//"));
  42119. if (_this.get$plainCss())
  42120. _this.error$2("Silent comments aren't allowed in plain CSS.", t1.spanFrom$1(start));
  42121. return _this.lastSilentComment = new B.SilentComment(t1.substring$1(0, start.position), t1.spanFrom$1(start));
  42122. },
  42123. _scss$_loudComment$0: function() {
  42124. var t3, t4, buffer, t5, endPosition,
  42125. t1 = this.scanner,
  42126. t2 = t1._string_scanner$_position;
  42127. t1.expect$1("/*");
  42128. t3 = new P.StringBuffer("");
  42129. t4 = [];
  42130. buffer = new Z.InterpolationBuffer(t3, t4);
  42131. t3._contents = "/*";
  42132. for (; true;)
  42133. switch (t1.peekChar$0()) {
  42134. case 35:
  42135. if (t1.peekChar$1(1) === 123) {
  42136. t5 = this.singleInterpolation$0();
  42137. buffer._flushText$0();
  42138. t4.push(t5);
  42139. } else
  42140. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  42141. break;
  42142. case 42:
  42143. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  42144. if (t1.peekChar$0() !== 47)
  42145. break;
  42146. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  42147. endPosition = t1._string_scanner$_position;
  42148. return new L.LoudComment(buffer.interpolation$1(Y._FileSpan$(t1._sourceFile, new S._SpanScannerState(t1, t2).position, endPosition)));
  42149. case 13:
  42150. t1.readChar$0();
  42151. if (t1.peekChar$0() !== 10)
  42152. t3._contents += H.Primitives_stringFromCharCode(10);
  42153. break;
  42154. case 12:
  42155. t1.readChar$0();
  42156. t3._contents += H.Primitives_stringFromCharCode(10);
  42157. break;
  42158. default:
  42159. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  42160. break;
  42161. }
  42162. }
  42163. };
  42164. T.SelectorParser.prototype = {
  42165. parse$0: function() {
  42166. return this.wrapSpanFormatException$1(new T.SelectorParser_parse_closure(this));
  42167. },
  42168. parseCompoundSelector$0: function() {
  42169. return this.wrapSpanFormatException$1(new T.SelectorParser_parseCompoundSelector_closure(this));
  42170. },
  42171. _selectorList$0: function() {
  42172. var t3, t4, lineBreak, _this = this,
  42173. t1 = _this.scanner,
  42174. t2 = t1._sourceFile,
  42175. previousLine = t2.getLine$1(t1._string_scanner$_position),
  42176. components = H.setRuntimeTypeInfo([_this._complexSelector$0()], type$.JSArray_ComplexSelector);
  42177. _this.whitespace$0();
  42178. for (t3 = t1.string; t1.scanChar$1(44);) {
  42179. _this.whitespace$0();
  42180. if (t1.peekChar$0() === 44)
  42181. continue;
  42182. t4 = t1._string_scanner$_position;
  42183. if (t4 === t3.length)
  42184. break;
  42185. lineBreak = t2.getLine$1(t4) != previousLine;
  42186. if (lineBreak)
  42187. previousLine = t2.getLine$1(t1._string_scanner$_position);
  42188. components.push(_this._complexSelector$1$lineBreak(lineBreak));
  42189. }
  42190. return D.SelectorList$(components);
  42191. },
  42192. _complexSelector$1$lineBreak: function(lineBreak) {
  42193. var t1, next, _this = this,
  42194. _s58_ = '"&" may only used at the beginning of a compound selector.',
  42195. components = H.setRuntimeTypeInfo([], type$.JSArray_ComplexSelectorComponent);
  42196. $label0$1:
  42197. for (t1 = _this.scanner; true;) {
  42198. _this.whitespace$0();
  42199. next = t1.peekChar$0();
  42200. switch (next) {
  42201. case 43:
  42202. t1.readChar$0();
  42203. components.push(C.Combinator_uzg);
  42204. break;
  42205. case 62:
  42206. t1.readChar$0();
  42207. components.push(C.Combinator_sgq);
  42208. break;
  42209. case 126:
  42210. t1.readChar$0();
  42211. components.push(C.Combinator_CzM);
  42212. break;
  42213. case 91:
  42214. case 46:
  42215. case 35:
  42216. case 37:
  42217. case 58:
  42218. case 38:
  42219. case 42:
  42220. case 124:
  42221. components.push(_this._compoundSelector$0());
  42222. if (t1.peekChar$0() === 38)
  42223. t1.error$1(_s58_);
  42224. break;
  42225. default:
  42226. if (next == null || !_this.lookingAtIdentifier$0())
  42227. break $label0$1;
  42228. components.push(_this._compoundSelector$0());
  42229. if (t1.peekChar$0() === 38)
  42230. t1.error$1(_s58_);
  42231. break;
  42232. }
  42233. }
  42234. if (components.length === 0)
  42235. t1.error$1("expected selector.");
  42236. return S.ComplexSelector$(components, lineBreak);
  42237. },
  42238. _complexSelector$0: function() {
  42239. return this._complexSelector$1$lineBreak(false);
  42240. },
  42241. _compoundSelector$0: function() {
  42242. var t2,
  42243. components = H.setRuntimeTypeInfo([this._simpleSelector$0()], type$.JSArray_SimpleSelector),
  42244. t1 = this.scanner;
  42245. while (true) {
  42246. t2 = t1.peekChar$0();
  42247. if (!(t2 === 42 || t2 === 91 || t2 === 46 || t2 === 35 || t2 === 37 || t2 === 58))
  42248. break;
  42249. components.push(this._simpleSelector$1$allowParent(false));
  42250. }
  42251. return X.CompoundSelector$(components);
  42252. },
  42253. _simpleSelector$1$allowParent: function(allowParent) {
  42254. var $name, text, t2, suffix, _this = this,
  42255. t1 = _this.scanner,
  42256. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  42257. if (allowParent == null)
  42258. allowParent = _this._allowParent;
  42259. switch (t1.peekChar$0()) {
  42260. case 91:
  42261. return _this._attributeSelector$0();
  42262. case 46:
  42263. t1.expectChar$1(46);
  42264. return new X.ClassSelector(_this.identifier$0());
  42265. case 35:
  42266. t1.expectChar$1(35);
  42267. return new N.IDSelector(_this.identifier$0());
  42268. case 37:
  42269. t1.expectChar$1(37);
  42270. $name = _this.identifier$0();
  42271. if (!_this._allowPlaceholder)
  42272. _this.error$2("Placeholder selectors aren't allowed here.", t1.spanFrom$1(start));
  42273. return new N.PlaceholderSelector($name);
  42274. case 58:
  42275. return _this._pseudoSelector$0();
  42276. case 38:
  42277. t1.expectChar$1(38);
  42278. if (_this.lookingAtIdentifierBody$0()) {
  42279. text = new P.StringBuffer("");
  42280. _this._identifierBody$1(text);
  42281. if (text._contents.length === 0)
  42282. t1.error$1("Expected identifier body.");
  42283. t2 = text._contents;
  42284. suffix = t2.charCodeAt(0) == 0 ? t2 : t2;
  42285. } else
  42286. suffix = null;
  42287. if (!allowParent)
  42288. _this.error$2("Parent selectors aren't allowed here.", t1.spanFrom$1(start));
  42289. return new M.ParentSelector(suffix);
  42290. default:
  42291. return _this._typeOrUniversalSelector$0();
  42292. }
  42293. },
  42294. _simpleSelector$0: function() {
  42295. return this._simpleSelector$1$allowParent(null);
  42296. },
  42297. _attributeSelector$0: function() {
  42298. var $name, operator, next, value, modifier, _this = this, _null = null,
  42299. t1 = _this.scanner;
  42300. t1.expectChar$1(91);
  42301. _this.whitespace$0();
  42302. $name = _this._attributeName$0();
  42303. _this.whitespace$0();
  42304. if (t1.scanChar$1(93))
  42305. return new N.AttributeSelector($name, _null, _null, _null);
  42306. operator = _this._attributeOperator$0();
  42307. _this.whitespace$0();
  42308. next = t1.peekChar$0();
  42309. value = next === 39 || next === 34 ? _this.string$0() : _this.identifier$0();
  42310. _this.whitespace$0();
  42311. modifier = T.isAlphabetic0(t1.peekChar$0()) ? H.Primitives_stringFromCharCode(t1.readChar$0()) : _null;
  42312. t1.expectChar$1(93);
  42313. return new N.AttributeSelector($name, operator, value, modifier);
  42314. },
  42315. _attributeName$0: function() {
  42316. var nameOrNamespace, _this = this,
  42317. t1 = _this.scanner;
  42318. if (t1.scanChar$1(42)) {
  42319. t1.expectChar$1(124);
  42320. return new D.QualifiedName(_this.identifier$0(), "*");
  42321. }
  42322. nameOrNamespace = _this.identifier$0();
  42323. if (t1.peekChar$0() !== 124 || t1.peekChar$1(1) === 61)
  42324. return new D.QualifiedName(nameOrNamespace, null);
  42325. t1.readChar$0();
  42326. return new D.QualifiedName(_this.identifier$0(), nameOrNamespace);
  42327. },
  42328. _attributeOperator$0: function() {
  42329. var t1 = this.scanner,
  42330. t2 = t1._string_scanner$_position;
  42331. switch (t1.readChar$0()) {
  42332. case 61:
  42333. return C.AttributeOperator_sEs;
  42334. case 126:
  42335. t1.expectChar$1(61);
  42336. return C.AttributeOperator_fz1;
  42337. case 124:
  42338. t1.expectChar$1(61);
  42339. return C.AttributeOperator_AuK;
  42340. case 94:
  42341. t1.expectChar$1(61);
  42342. return C.AttributeOperator_4L5;
  42343. case 36:
  42344. t1.expectChar$1(61);
  42345. return C.AttributeOperator_mOX;
  42346. case 42:
  42347. t1.expectChar$1(61);
  42348. return C.AttributeOperator_gqZ;
  42349. default:
  42350. t1.error$2$position('Expected "]".', t2);
  42351. }
  42352. },
  42353. _pseudoSelector$0: function() {
  42354. var element, $name, unvendored, selector, argument, t2, _this = this, _null = null,
  42355. t1 = _this.scanner;
  42356. t1.expectChar$1(58);
  42357. element = t1.scanChar$1(58);
  42358. $name = _this.identifier$0();
  42359. if (!t1.scanChar$1(40))
  42360. return D.PseudoSelector$($name, _null, element, _null);
  42361. _this.whitespace$0();
  42362. unvendored = B.unvendor($name);
  42363. if (element)
  42364. if ($._selectorPseudoElements.contains$1(0, unvendored)) {
  42365. selector = _this._selectorList$0();
  42366. argument = _null;
  42367. } else {
  42368. argument = _this.declarationValue$1$allowEmpty(true);
  42369. selector = _null;
  42370. }
  42371. else if ($._selectorPseudoClasses.contains$1(0, unvendored)) {
  42372. selector = _this._selectorList$0();
  42373. argument = _null;
  42374. } else if (unvendored === "nth-child" || unvendored === "nth-last-child") {
  42375. argument = _this._aNPlusB$0();
  42376. _this.whitespace$0();
  42377. t2 = t1.peekChar$1(-1);
  42378. if ((t2 === 32 || t2 === 9 || T.isNewline(t2)) && t1.peekChar$0() !== 41) {
  42379. _this.expectIdentifier$1("of");
  42380. argument += " of";
  42381. _this.whitespace$0();
  42382. selector = _this._selectorList$0();
  42383. } else
  42384. selector = _null;
  42385. } else {
  42386. argument = C.JSString_methods.trimRight$0(_this.declarationValue$1$allowEmpty(true));
  42387. selector = _null;
  42388. }
  42389. t1.expectChar$1(41);
  42390. return D.PseudoSelector$($name, argument, element, selector);
  42391. },
  42392. _aNPlusB$0: function() {
  42393. var t2, first, t3, next, last, _this = this,
  42394. t1 = _this.scanner;
  42395. switch (t1.peekChar$0()) {
  42396. case 101:
  42397. case 69:
  42398. _this.expectIdentifier$1("even");
  42399. return "even";
  42400. case 111:
  42401. case 79:
  42402. _this.expectIdentifier$1("odd");
  42403. return "odd";
  42404. case 43:
  42405. case 45:
  42406. t2 = H.Primitives_stringFromCharCode(t1.readChar$0());
  42407. break;
  42408. default:
  42409. t2 = "";
  42410. }
  42411. first = t1.peekChar$0();
  42412. if (first != null && T.isDigit(first)) {
  42413. while (true) {
  42414. t3 = t1.peekChar$0();
  42415. if (!(t3 != null && t3 >= 48 && t3 <= 57))
  42416. break;
  42417. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  42418. }
  42419. _this.whitespace$0();
  42420. if (!_this.scanIdentChar$1(110))
  42421. return t2.charCodeAt(0) == 0 ? t2 : t2;
  42422. } else
  42423. _this.expectIdentChar$1(110);
  42424. t2 += H.Primitives_stringFromCharCode(110);
  42425. _this.whitespace$0();
  42426. next = t1.peekChar$0();
  42427. if (next !== 43 && next !== 45)
  42428. return t2.charCodeAt(0) == 0 ? t2 : t2;
  42429. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  42430. _this.whitespace$0();
  42431. last = t1.peekChar$0();
  42432. if (last == null || !T.isDigit(last))
  42433. t1.error$1("Expected a number.");
  42434. while (true) {
  42435. t3 = t1.peekChar$0();
  42436. if (!(t3 != null && t3 >= 48 && t3 <= 57))
  42437. break;
  42438. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  42439. }
  42440. return t2.charCodeAt(0) == 0 ? t2 : t2;
  42441. },
  42442. _typeOrUniversalSelector$0: function() {
  42443. var nameOrNamespace, _this = this,
  42444. t1 = _this.scanner,
  42445. first = t1.peekChar$0();
  42446. if (first === 42) {
  42447. t1.readChar$0();
  42448. if (!t1.scanChar$1(124))
  42449. return new N.UniversalSelector(null);
  42450. if (t1.scanChar$1(42))
  42451. return new N.UniversalSelector("*");
  42452. else
  42453. return new F.TypeSelector(new D.QualifiedName(_this.identifier$0(), "*"));
  42454. } else if (first === 124) {
  42455. t1.readChar$0();
  42456. if (t1.scanChar$1(42))
  42457. return new N.UniversalSelector("");
  42458. else
  42459. return new F.TypeSelector(new D.QualifiedName(_this.identifier$0(), ""));
  42460. }
  42461. nameOrNamespace = _this.identifier$0();
  42462. if (!t1.scanChar$1(124))
  42463. return new F.TypeSelector(new D.QualifiedName(nameOrNamespace, null));
  42464. else if (t1.scanChar$1(42))
  42465. return new N.UniversalSelector(nameOrNamespace);
  42466. else
  42467. return new F.TypeSelector(new D.QualifiedName(_this.identifier$0(), nameOrNamespace));
  42468. }
  42469. };
  42470. T.SelectorParser_parse_closure.prototype = {
  42471. call$0: function() {
  42472. var t1 = this.$this,
  42473. selector = t1._selectorList$0();
  42474. t1 = t1.scanner;
  42475. if (t1._string_scanner$_position !== t1.string.length)
  42476. t1.error$1("expected selector.");
  42477. return selector;
  42478. },
  42479. $signature: 31
  42480. };
  42481. T.SelectorParser_parseCompoundSelector_closure.prototype = {
  42482. call$0: function() {
  42483. var t1 = this.$this,
  42484. compound = t1._compoundSelector$0();
  42485. t1 = t1.scanner;
  42486. if (t1._string_scanner$_position !== t1.string.length)
  42487. t1.error$1("expected selector.");
  42488. return compound;
  42489. },
  42490. $signature: 136
  42491. };
  42492. V.StylesheetParser.prototype = {
  42493. parse$0: function() {
  42494. return this.wrapSpanFormatException$1(new V.StylesheetParser_parse_closure(this));
  42495. },
  42496. parseArgumentDeclaration$0: function() {
  42497. return this._parseSingleProduction$1$1(new V.StylesheetParser_parseArgumentDeclaration_closure(this), type$.ArgumentDeclaration);
  42498. },
  42499. parseVariableDeclaration$0: function() {
  42500. return this._parseSingleProduction$1$1(new V.StylesheetParser_parseVariableDeclaration_closure(this), type$.VariableDeclaration);
  42501. },
  42502. parseUseRule$0: function() {
  42503. return this._parseSingleProduction$1$1(new V.StylesheetParser_parseUseRule_closure(this), type$.UseRule);
  42504. },
  42505. _parseSingleProduction$1$1: function(production, $T) {
  42506. return this.wrapSpanFormatException$1(new V.StylesheetParser__parseSingleProduction_closure(this, production, $T));
  42507. },
  42508. _statement$1$root: function(root) {
  42509. var t2, _this = this,
  42510. t1 = _this.scanner;
  42511. switch (t1.peekChar$0()) {
  42512. case 64:
  42513. return _this.atRule$2$root(new V.StylesheetParser__statement_closure(_this), root);
  42514. case 43:
  42515. if (!_this.get$indented() || !_this.lookingAtIdentifier$1(1))
  42516. return _this._stylesheet$_styleRule$0();
  42517. _this._isUseAllowed = false;
  42518. t2 = t1._string_scanner$_position;
  42519. t1.readChar$0();
  42520. return _this._includeRule$1(new S._SpanScannerState(t1, t2));
  42521. case 61:
  42522. if (!_this.get$indented())
  42523. return _this._stylesheet$_styleRule$0();
  42524. _this._isUseAllowed = false;
  42525. t2 = t1._string_scanner$_position;
  42526. t1.readChar$0();
  42527. _this.whitespace$0();
  42528. return _this._mixinRule$1(new S._SpanScannerState(t1, t2));
  42529. case 125:
  42530. t1.error$2$length('unmatched "}".', 1);
  42531. break;
  42532. default:
  42533. return _this._inStyleRule || _this._stylesheet$_inUnknownAtRule || _this._stylesheet$_inMixin || _this._inContentBlock ? _this._declarationOrStyleRule$0() : _this._variableDeclarationOrStyleRule$0();
  42534. }
  42535. },
  42536. _statement$0: function() {
  42537. return this._statement$1$root(false);
  42538. },
  42539. _variableDeclarationWithNamespace$0: function() {
  42540. var t1 = this.scanner,
  42541. t2 = t1._string_scanner$_position,
  42542. namespace = this.identifier$0();
  42543. t1.expectChar$1(46);
  42544. return this.variableDeclarationWithoutNamespace$2(namespace, new S._SpanScannerState(t1, t2));
  42545. },
  42546. variableDeclarationWithoutNamespace$2: function(namespace, start) {
  42547. var precedingComment, t1, $name, t2, value, flagStart, guarded, global, flag, endPosition, declaration, _this = this, _box_0 = {};
  42548. _box_0.start = start;
  42549. precedingComment = _this.lastSilentComment;
  42550. _this.lastSilentComment = null;
  42551. if (start == null) {
  42552. t1 = _this.scanner;
  42553. _box_0.start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  42554. }
  42555. $name = _this.variableName$0();
  42556. t1 = namespace != null;
  42557. if (t1)
  42558. _this._assertPublic$2($name, new V.StylesheetParser_variableDeclarationWithoutNamespace_closure(_box_0, _this));
  42559. if (_this.get$plainCss())
  42560. _this.error$2("Sass variables aren't allowed in plain CSS.", _this.scanner.spanFrom$1(_box_0.start));
  42561. _this.whitespace$0();
  42562. t2 = _this.scanner;
  42563. t2.expectChar$1(58);
  42564. _this.whitespace$0();
  42565. value = _this.expression$0();
  42566. flagStart = new S._SpanScannerState(t2, t2._string_scanner$_position);
  42567. for (guarded = false, global = false; t2.scanChar$1(33);) {
  42568. flag = _this.identifier$0();
  42569. if (flag === "default")
  42570. guarded = true;
  42571. else if (flag === "global") {
  42572. if (t1) {
  42573. endPosition = t2._string_scanner$_position;
  42574. _this.error$2("!global isn't allowed for variables in other modules.", Y._FileSpan$(t2._sourceFile, flagStart.position, endPosition));
  42575. }
  42576. global = true;
  42577. } else {
  42578. endPosition = t2._string_scanner$_position;
  42579. _this.error$2("Invalid flag name.", Y._FileSpan$(t2._sourceFile, flagStart.position, endPosition));
  42580. }
  42581. _this.whitespace$0();
  42582. flagStart = new S._SpanScannerState(t2, t2._string_scanner$_position);
  42583. }
  42584. _this.expectStatementSeparator$1("variable declaration");
  42585. declaration = Z.VariableDeclaration$($name, value, t2.spanFrom$1(_box_0.start), precedingComment, global, guarded, namespace);
  42586. if (global)
  42587. _this._globalVariables.putIfAbsent$2($name, new V.StylesheetParser_variableDeclarationWithoutNamespace_closure0(declaration));
  42588. return declaration;
  42589. },
  42590. variableDeclarationWithoutNamespace$0: function() {
  42591. return this.variableDeclarationWithoutNamespace$2(null, null);
  42592. },
  42593. _variableDeclarationOrStyleRule$0: function() {
  42594. var t1, t2, variableOrInterpolation, t3, _this = this;
  42595. if (_this.get$plainCss())
  42596. return _this._stylesheet$_styleRule$0();
  42597. if (_this.get$indented() && _this.scanner.scanChar$1(92))
  42598. return _this._stylesheet$_styleRule$0();
  42599. if (!_this.lookingAtIdentifier$0())
  42600. return _this._stylesheet$_styleRule$0();
  42601. t1 = _this.scanner;
  42602. t2 = t1._string_scanner$_position;
  42603. variableOrInterpolation = _this._variableDeclarationOrInterpolation$0();
  42604. if (variableOrInterpolation instanceof Z.VariableDeclaration)
  42605. return variableOrInterpolation;
  42606. else {
  42607. t3 = new Z.InterpolationBuffer(new P.StringBuffer(""), []);
  42608. t3.addInterpolation$1(type$.Interpolation._as(variableOrInterpolation));
  42609. return _this._stylesheet$_styleRule$2(t3, new S._SpanScannerState(t1, t2));
  42610. }
  42611. },
  42612. _declarationOrStyleRule$0: function() {
  42613. var t1, t2, declarationOrBuffer, _this = this;
  42614. if (_this.get$plainCss() && _this._inStyleRule && !_this._stylesheet$_inUnknownAtRule)
  42615. return _this._propertyOrVariableDeclaration$0();
  42616. if (_this.get$indented() && _this.scanner.scanChar$1(92))
  42617. return _this._stylesheet$_styleRule$0();
  42618. t1 = _this.scanner;
  42619. t2 = t1._string_scanner$_position;
  42620. declarationOrBuffer = _this._declarationOrBuffer$0();
  42621. return type$.Statement._is(declarationOrBuffer) ? declarationOrBuffer : _this._stylesheet$_styleRule$2(type$.InterpolationBuffer._as(declarationOrBuffer), new S._SpanScannerState(t1, t2));
  42622. },
  42623. _declarationOrBuffer$0: function() {
  42624. var midBuffer, couldBeSelector, beforeDeclaration, additional, t3, startsWithPunctuation, variableOrInterpolation, t4, $name, value, postColonWhitespace, exception, _this = this, t1 = {},
  42625. t2 = _this.scanner,
  42626. start = new S._SpanScannerState(t2, t2._string_scanner$_position),
  42627. nameBuffer = new Z.InterpolationBuffer(new P.StringBuffer(""), []),
  42628. first = t2.peekChar$0();
  42629. if (first !== 58)
  42630. if (first !== 42)
  42631. if (first !== 46)
  42632. t3 = first === 35 && t2.peekChar$1(1) !== 123;
  42633. else
  42634. t3 = true;
  42635. else
  42636. t3 = true;
  42637. else
  42638. t3 = true;
  42639. if (t3) {
  42640. t3 = t2.readChar$0();
  42641. nameBuffer._interpolation_buffer$_text._contents += H.Primitives_stringFromCharCode(t3);
  42642. t3 = _this.rawText$1(_this.get$whitespace());
  42643. nameBuffer._interpolation_buffer$_text._contents += t3;
  42644. startsWithPunctuation = true;
  42645. } else
  42646. startsWithPunctuation = false;
  42647. if (!_this._lookingAtInterpolatedIdentifier$0())
  42648. return nameBuffer;
  42649. variableOrInterpolation = startsWithPunctuation ? _this.interpolatedIdentifier$0() : _this._variableDeclarationOrInterpolation$0();
  42650. if (variableOrInterpolation instanceof Z.VariableDeclaration)
  42651. return variableOrInterpolation;
  42652. else
  42653. nameBuffer.addInterpolation$1(type$.Interpolation._as(variableOrInterpolation));
  42654. _this._isUseAllowed = false;
  42655. if (t2.matches$1("/*")) {
  42656. t3 = _this.rawText$1(_this.get$loudComment());
  42657. nameBuffer._interpolation_buffer$_text._contents += t3;
  42658. }
  42659. midBuffer = new P.StringBuffer("");
  42660. t3 = _this.get$whitespace();
  42661. midBuffer._contents += _this.rawText$1(t3);
  42662. t4 = t2._string_scanner$_position;
  42663. if (!t2.scanChar$1(58)) {
  42664. if (midBuffer._contents.length !== 0)
  42665. nameBuffer._interpolation_buffer$_text._contents += H.Primitives_stringFromCharCode(32);
  42666. return nameBuffer;
  42667. }
  42668. midBuffer._contents += H.Primitives_stringFromCharCode(58);
  42669. $name = nameBuffer.interpolation$1(t2.spanFrom$2(start, new S._SpanScannerState(t2, t4)));
  42670. first = C.JSArray_methods.get$first($name.contents);
  42671. if (C.JSString_methods.startsWith$1(typeof first == "string" ? first : "", "--")) {
  42672. value = _this._interpolatedDeclarationValue$0();
  42673. _this.expectStatementSeparator$1("custom property");
  42674. return L.Declaration$($name, t2.spanFrom$1(start), null, value);
  42675. }
  42676. if (t2.scanChar$1(58)) {
  42677. t1 = nameBuffer;
  42678. t2 = t1._interpolation_buffer$_text;
  42679. t2._contents += H.S(midBuffer);
  42680. t2._contents += H.Primitives_stringFromCharCode(58);
  42681. return t1;
  42682. } else if (_this.get$indented() && _this._lookingAtInterpolatedIdentifier$0()) {
  42683. t1 = nameBuffer;
  42684. t1._interpolation_buffer$_text._contents += H.S(midBuffer);
  42685. return t1;
  42686. }
  42687. postColonWhitespace = _this.rawText$1(t3);
  42688. if (_this.lookingAtChildren$0())
  42689. return _this._withChildren$3(_this.get$_declarationChild(), start, new V.StylesheetParser__declarationOrBuffer_closure($name));
  42690. midBuffer._contents += postColonWhitespace;
  42691. couldBeSelector = postColonWhitespace.length === 0 && _this._lookingAtInterpolatedIdentifier$0();
  42692. beforeDeclaration = new S._SpanScannerState(t2, t2._string_scanner$_position);
  42693. t1.value = null;
  42694. try {
  42695. if (_this.lookingAtChildren$0()) {
  42696. t3 = Y.FileLocation$_(t2._sourceFile, t2._string_scanner$_position);
  42697. t4 = t3.offset;
  42698. value = new D.StringExpression(X.Interpolation$([], Y._FileSpan$(t3.file, t4, t4)), true);
  42699. } else
  42700. value = _this.expression$0();
  42701. t3 = t1.value = value;
  42702. if (_this.lookingAtChildren$0()) {
  42703. if (couldBeSelector)
  42704. _this.expectStatementSeparator$0();
  42705. } else if (!_this.atEndOfStatement$0())
  42706. _this.expectStatementSeparator$0();
  42707. } catch (exception) {
  42708. if (type$.FormatException._is(H.unwrapException(exception))) {
  42709. if (!couldBeSelector)
  42710. throw exception;
  42711. t2.set$state(beforeDeclaration);
  42712. additional = _this.almostAnyValue$0();
  42713. if (!_this.get$indented() && t2.peekChar$0() === 59)
  42714. throw exception;
  42715. nameBuffer._interpolation_buffer$_text._contents += H.S(midBuffer);
  42716. nameBuffer.addInterpolation$1(additional);
  42717. return nameBuffer;
  42718. } else
  42719. throw exception;
  42720. }
  42721. if (_this.lookingAtChildren$0())
  42722. return _this._withChildren$3(_this.get$_declarationChild(), start, new V.StylesheetParser__declarationOrBuffer_closure0(t1, $name));
  42723. else {
  42724. _this.expectStatementSeparator$0();
  42725. return L.Declaration$($name, t2.spanFrom$1(start), null, t3);
  42726. }
  42727. },
  42728. _variableDeclarationOrInterpolation$0: function() {
  42729. var t1, start, identifier, t2, buffer, _this = this;
  42730. if (!_this.lookingAtIdentifier$0())
  42731. return _this.interpolatedIdentifier$0();
  42732. t1 = _this.scanner;
  42733. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  42734. identifier = _this.identifier$0();
  42735. if (t1.matches$1(".$")) {
  42736. t1.readChar$0();
  42737. return _this.variableDeclarationWithoutNamespace$2(identifier, start);
  42738. } else {
  42739. t2 = new P.StringBuffer("");
  42740. buffer = new Z.InterpolationBuffer(t2, []);
  42741. t2._contents = identifier;
  42742. if (_this._lookingAtInterpolatedIdentifierBody$0())
  42743. buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  42744. return buffer.interpolation$1(t1.spanFrom$1(start));
  42745. }
  42746. },
  42747. _stylesheet$_styleRule$2: function(buffer, start) {
  42748. var t2, interpolation, t3, wasInStyleRule, _this = this, t1 = {};
  42749. t1.start = start;
  42750. _this._isUseAllowed = false;
  42751. if (start == null) {
  42752. t2 = _this.scanner;
  42753. t2 = t1.start = new S._SpanScannerState(t2, t2._string_scanner$_position);
  42754. } else
  42755. t2 = start;
  42756. interpolation = t1.interpolation = _this.styleRuleSelector$0();
  42757. if (buffer != null) {
  42758. buffer.addInterpolation$1(interpolation);
  42759. t3 = t1.interpolation = buffer.interpolation$1(_this.scanner.spanFrom$1(t2));
  42760. } else
  42761. t3 = interpolation;
  42762. if (t3.contents.length === 0)
  42763. _this.scanner.error$1('expected "}".');
  42764. wasInStyleRule = _this._inStyleRule;
  42765. _this._inStyleRule = true;
  42766. return _this._withChildren$3(_this.get$_statement(), t2, new V.StylesheetParser__styleRule_closure(t1, _this, wasInStyleRule));
  42767. },
  42768. _stylesheet$_styleRule$0: function() {
  42769. return this._stylesheet$_styleRule$2(null, null);
  42770. },
  42771. _propertyOrVariableDeclaration$0: function() {
  42772. var first, t3, nameBuffer, variableOrInterpolation, $name, value, _this = this,
  42773. _s48_ = "Nested declarations aren't allowed in plain CSS.",
  42774. t1 = {},
  42775. t2 = _this.scanner,
  42776. start = new S._SpanScannerState(t2, t2._string_scanner$_position);
  42777. t1.name = null;
  42778. first = t2.peekChar$0();
  42779. if (first !== 58)
  42780. if (first !== 42)
  42781. if (first !== 46)
  42782. t3 = first === 35 && t2.peekChar$1(1) !== 123;
  42783. else
  42784. t3 = true;
  42785. else
  42786. t3 = true;
  42787. else
  42788. t3 = true;
  42789. if (t3) {
  42790. t3 = new P.StringBuffer("");
  42791. nameBuffer = new Z.InterpolationBuffer(t3, []);
  42792. t3._contents += H.Primitives_stringFromCharCode(t2.readChar$0());
  42793. t3._contents += _this.rawText$1(_this.get$whitespace());
  42794. nameBuffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  42795. t3 = t1.name = nameBuffer.interpolation$1(t2.spanFrom$1(start));
  42796. } else if (!_this.get$plainCss()) {
  42797. variableOrInterpolation = _this._variableDeclarationOrInterpolation$0();
  42798. if (variableOrInterpolation instanceof Z.VariableDeclaration)
  42799. return variableOrInterpolation;
  42800. else {
  42801. type$.Interpolation._as(variableOrInterpolation);
  42802. t1.name = variableOrInterpolation;
  42803. }
  42804. t3 = variableOrInterpolation;
  42805. } else {
  42806. $name = _this.interpolatedIdentifier$0();
  42807. t1.name = $name;
  42808. t3 = $name;
  42809. }
  42810. _this.whitespace$0();
  42811. t2.expectChar$1(58);
  42812. _this.whitespace$0();
  42813. if (_this.lookingAtChildren$0()) {
  42814. if (_this.get$plainCss())
  42815. t2.error$1(_s48_);
  42816. return _this._withChildren$3(_this.get$_declarationChild(), start, new V.StylesheetParser__propertyOrVariableDeclaration_closure(t1));
  42817. }
  42818. value = _this.expression$0();
  42819. if (_this.lookingAtChildren$0()) {
  42820. if (_this.get$plainCss())
  42821. t2.error$1(_s48_);
  42822. return _this._withChildren$3(_this.get$_declarationChild(), start, new V.StylesheetParser__propertyOrVariableDeclaration_closure0(t1, value));
  42823. } else {
  42824. _this.expectStatementSeparator$0();
  42825. return L.Declaration$(t3, t2.spanFrom$1(start), null, value);
  42826. }
  42827. },
  42828. _declarationChild$0: function() {
  42829. if (this.scanner.peekChar$0() === 64)
  42830. return this._declarationAtRule$0();
  42831. return this._propertyOrVariableDeclaration$0();
  42832. },
  42833. atRule$2$root: function(child, root) {
  42834. var $name, wasUseAllowed, value, optional, _this = this,
  42835. t1 = _this.scanner,
  42836. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  42837. t1.expectChar$2$name(64, "@-rule");
  42838. $name = _this.interpolatedIdentifier$0();
  42839. _this.whitespace$0();
  42840. wasUseAllowed = _this._isUseAllowed;
  42841. _this._isUseAllowed = false;
  42842. switch ($name.get$asPlain()) {
  42843. case "at-root":
  42844. return _this._atRootRule$1(start);
  42845. case "charset":
  42846. _this._isUseAllowed = wasUseAllowed;
  42847. if (!root)
  42848. _this._disallowedAtRule$1(start);
  42849. _this.string$0();
  42850. return null;
  42851. case "content":
  42852. return _this._contentRule$1(start);
  42853. case "debug":
  42854. return _this._debugRule$1(start);
  42855. case "each":
  42856. return _this._eachRule$2(start, child);
  42857. case "else":
  42858. return _this._disallowedAtRule$1(start);
  42859. case "error":
  42860. return _this._errorRule$1(start);
  42861. case "extend":
  42862. if (!_this._inStyleRule && !_this._stylesheet$_inMixin && !_this._inContentBlock)
  42863. _this.error$2("@extend may only be used within style rules.", t1.spanFrom$1(start));
  42864. value = _this.almostAnyValue$0();
  42865. optional = t1.scanChar$1(33);
  42866. if (optional)
  42867. _this.expectIdentifier$1("optional");
  42868. _this.expectStatementSeparator$1("@extend rule");
  42869. return new X.ExtendRule(value, optional, t1.spanFrom$1(start));
  42870. case "for":
  42871. return _this._forRule$2(start, child);
  42872. case "forward":
  42873. _this._isUseAllowed = wasUseAllowed;
  42874. if (!root)
  42875. _this._disallowedAtRule$1(start);
  42876. return _this._forwardRule$1(start);
  42877. case "function":
  42878. return _this._functionRule$1(start);
  42879. case "if":
  42880. return _this._ifRule$2(start, child);
  42881. case "import":
  42882. return _this._importRule$1(start);
  42883. case "include":
  42884. return _this._includeRule$1(start);
  42885. case "media":
  42886. return _this.mediaRule$1(start);
  42887. case "mixin":
  42888. return _this._mixinRule$1(start);
  42889. case "-moz-document":
  42890. return _this.mozDocumentRule$2(start, $name);
  42891. case "return":
  42892. return _this._disallowedAtRule$1(start);
  42893. case "supports":
  42894. return _this.supportsRule$1(start);
  42895. case "use":
  42896. _this._isUseAllowed = wasUseAllowed;
  42897. if (!root)
  42898. _this._disallowedAtRule$1(start);
  42899. return _this._useRule$1(start);
  42900. case "warn":
  42901. return _this._warnRule$1(start);
  42902. case "while":
  42903. return _this._whileRule$2(start, child);
  42904. default:
  42905. return _this.unknownAtRule$2(start, $name);
  42906. }
  42907. },
  42908. _declarationAtRule$0: function() {
  42909. var _this = this,
  42910. t1 = _this.scanner,
  42911. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  42912. switch (_this._plainAtRuleName$0()) {
  42913. case "content":
  42914. return _this._contentRule$1(start);
  42915. case "debug":
  42916. return _this._debugRule$1(start);
  42917. case "each":
  42918. return _this._eachRule$2(start, _this.get$_declarationChild());
  42919. case "else":
  42920. return _this._disallowedAtRule$1(start);
  42921. case "error":
  42922. return _this._errorRule$1(start);
  42923. case "for":
  42924. return _this._forRule$2(start, _this.get$_declarationAtRule());
  42925. case "if":
  42926. return _this._ifRule$2(start, _this.get$_declarationChild());
  42927. case "include":
  42928. return _this._includeRule$1(start);
  42929. case "warn":
  42930. return _this._warnRule$1(start);
  42931. case "while":
  42932. return _this._whileRule$2(start, _this.get$_declarationChild());
  42933. default:
  42934. return _this._disallowedAtRule$1(start);
  42935. }
  42936. },
  42937. _functionChild$0: function() {
  42938. var state, variableDeclarationError, statement, t2, exception, t3, start, value, _this = this,
  42939. t1 = _this.scanner;
  42940. if (t1.peekChar$0() !== 64) {
  42941. state = new S._SpanScannerState(t1, t1._string_scanner$_position);
  42942. try {
  42943. t2 = _this._variableDeclarationWithNamespace$0();
  42944. return t2;
  42945. } catch (exception) {
  42946. t2 = H.unwrapException(exception);
  42947. t3 = type$.SourceSpanFormatException;
  42948. if (t3._is(t2)) {
  42949. variableDeclarationError = t2;
  42950. t1.set$state(state);
  42951. statement = null;
  42952. try {
  42953. statement = _this._declarationOrStyleRule$0();
  42954. } catch (exception) {
  42955. if (t3._is(H.unwrapException(exception)))
  42956. throw H.wrapException(variableDeclarationError);
  42957. else
  42958. throw exception;
  42959. }
  42960. _this.error$2("@function rules may not contain " + (statement instanceof X.StyleRule ? "style rules" : "declarations") + ".", statement.get$span());
  42961. } else
  42962. throw exception;
  42963. }
  42964. }
  42965. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  42966. switch (_this._plainAtRuleName$0()) {
  42967. case "debug":
  42968. return _this._debugRule$1(start);
  42969. case "each":
  42970. return _this._eachRule$2(start, _this.get$_functionChild());
  42971. case "else":
  42972. return _this._disallowedAtRule$1(start);
  42973. case "error":
  42974. return _this._errorRule$1(start);
  42975. case "for":
  42976. return _this._forRule$2(start, _this.get$_functionChild());
  42977. case "if":
  42978. return _this._ifRule$2(start, _this.get$_functionChild());
  42979. case "return":
  42980. value = _this.expression$0();
  42981. _this.expectStatementSeparator$1("@return rule");
  42982. return new B.ReturnRule(value, t1.spanFrom$1(start));
  42983. case "warn":
  42984. return _this._warnRule$1(start);
  42985. case "while":
  42986. return _this._whileRule$2(start, _this.get$_functionChild());
  42987. default:
  42988. return _this._disallowedAtRule$1(start);
  42989. }
  42990. },
  42991. _plainAtRuleName$0: function() {
  42992. this.scanner.expectChar$2$name(64, "@-rule");
  42993. var $name = this.identifier$0();
  42994. this.whitespace$0();
  42995. return $name;
  42996. },
  42997. _atRootRule$1: function(start) {
  42998. var query, t2, t3, _this = this,
  42999. t1 = _this.scanner;
  43000. if (t1.peekChar$0() === 40) {
  43001. query = _this._atRootQuery$0();
  43002. _this.whitespace$0();
  43003. return _this._withChildren$3(_this.get$_statement(), start, new V.StylesheetParser__atRootRule_closure(query));
  43004. } else if (_this.lookingAtChildren$0())
  43005. return _this._withChildren$3(_this.get$_statement(), start, new V.StylesheetParser__atRootRule_closure0());
  43006. else {
  43007. t2 = H.setRuntimeTypeInfo([_this._stylesheet$_styleRule$0()], type$.JSArray_Statement);
  43008. t1 = t1.spanFrom$1(start);
  43009. t2 = P.List_List$unmodifiable(t2, type$.Statement);
  43010. t3 = C.JSArray_methods.any$1(t2, new M.ParentStatement_closure());
  43011. return new V.AtRootRule(null, t1, t2, t3);
  43012. }
  43013. },
  43014. _atRootQuery$0: function() {
  43015. var interpolation, t2, t3, t4, buffer, t5, _this = this,
  43016. t1 = _this.scanner;
  43017. if (t1.peekChar$0() === 35) {
  43018. interpolation = _this.singleInterpolation$0();
  43019. return X.Interpolation$([interpolation], interpolation.get$span());
  43020. }
  43021. t2 = t1._string_scanner$_position;
  43022. t3 = new P.StringBuffer("");
  43023. t4 = [];
  43024. buffer = new Z.InterpolationBuffer(t3, t4);
  43025. t1.expectChar$1(40);
  43026. t3._contents += H.Primitives_stringFromCharCode(40);
  43027. _this.whitespace$0();
  43028. t5 = _this.expression$0();
  43029. buffer._flushText$0();
  43030. t4.push(t5);
  43031. if (t1.scanChar$1(58)) {
  43032. _this.whitespace$0();
  43033. t3._contents += H.Primitives_stringFromCharCode(58);
  43034. t3._contents += H.Primitives_stringFromCharCode(32);
  43035. t5 = _this.expression$0();
  43036. buffer._flushText$0();
  43037. t4.push(t5);
  43038. }
  43039. t1.expectChar$1(41);
  43040. _this.whitespace$0();
  43041. t3._contents += H.Primitives_stringFromCharCode(41);
  43042. return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  43043. },
  43044. _contentRule$1: function(start) {
  43045. var t1, $arguments, t2, t3, _this = this;
  43046. if (!_this._stylesheet$_inMixin)
  43047. _this.error$2("@content is only allowed within mixin declarations.", _this.scanner.spanFrom$1(start));
  43048. _this.whitespace$0();
  43049. t1 = _this.scanner;
  43050. if (t1.peekChar$0() === 40)
  43051. $arguments = _this._argumentInvocation$1$mixin(true);
  43052. else {
  43053. t2 = Y.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
  43054. t3 = t2.offset;
  43055. $arguments = new X.ArgumentInvocation(C.List_empty7, C.Map_empty3, null, null, Y._FileSpan$(t2.file, t3, t3));
  43056. }
  43057. _this._mixinHasContent = true;
  43058. _this.expectStatementSeparator$1("@content rule");
  43059. return new Q.ContentRule(t1.spanFrom$1(start), $arguments);
  43060. },
  43061. _debugRule$1: function(start) {
  43062. var value = this.expression$0();
  43063. this.expectStatementSeparator$1("@debug rule");
  43064. return new Q.DebugRule(value, this.scanner.spanFrom$1(start));
  43065. },
  43066. _eachRule$2: function(start, child) {
  43067. var variables, t1, _this = this,
  43068. wasInControlDirective = _this._inControlDirective;
  43069. _this._inControlDirective = true;
  43070. variables = H.setRuntimeTypeInfo([_this.variableName$0()], type$.JSArray_String);
  43071. _this.whitespace$0();
  43072. for (t1 = _this.scanner; t1.scanChar$1(44);) {
  43073. _this.whitespace$0();
  43074. t1.expectChar$1(36);
  43075. variables.push(_this.identifier$1$normalize(true));
  43076. _this.whitespace$0();
  43077. }
  43078. _this.expectIdentifier$1("in");
  43079. _this.whitespace$0();
  43080. return _this._withChildren$3(child, start, new V.StylesheetParser__eachRule_closure(_this, wasInControlDirective, variables, _this.expression$0()));
  43081. },
  43082. _errorRule$1: function(start) {
  43083. var value = this.expression$0();
  43084. this.expectStatementSeparator$1("@error rule");
  43085. return new D.ErrorRule(value, this.scanner.spanFrom$1(start));
  43086. },
  43087. _functionRule$1: function(start) {
  43088. var $name, $arguments, _this = this,
  43089. precedingComment = _this.lastSilentComment;
  43090. _this.lastSilentComment = null;
  43091. $name = _this.identifier$1$normalize(true);
  43092. _this.whitespace$0();
  43093. $arguments = _this._argumentDeclaration$0();
  43094. if (_this._stylesheet$_inMixin || _this._inContentBlock)
  43095. _this.error$2("Mixins may not contain function declarations.", _this.scanner.spanFrom$1(start));
  43096. else if (_this._inControlDirective)
  43097. _this.error$2("Functions may not be declared in control directives.", _this.scanner.spanFrom$1(start));
  43098. switch (B.unvendor($name)) {
  43099. case "calc":
  43100. case "element":
  43101. case "expression":
  43102. case "url":
  43103. case "and":
  43104. case "or":
  43105. case "not":
  43106. _this.error$2("Invalid function name.", _this.scanner.spanFrom$1(start));
  43107. break;
  43108. }
  43109. _this.whitespace$0();
  43110. return _this._withChildren$3(_this.get$_functionChild(), start, new V.StylesheetParser__functionRule_closure($name, $arguments, precedingComment));
  43111. },
  43112. _forRule$2: function(start, child) {
  43113. var variable, from, _this = this, t1 = {},
  43114. wasInControlDirective = _this._inControlDirective;
  43115. _this._inControlDirective = true;
  43116. variable = _this.variableName$0();
  43117. _this.whitespace$0();
  43118. _this.expectIdentifier$1("from");
  43119. _this.whitespace$0();
  43120. t1.exclusive = null;
  43121. from = _this.expression$1$until(new V.StylesheetParser__forRule_closure(t1, _this));
  43122. if (t1.exclusive == null)
  43123. _this.scanner.error$1('Expected "to" or "through".');
  43124. _this.whitespace$0();
  43125. return _this._withChildren$3(child, start, new V.StylesheetParser__forRule_closure0(t1, _this, wasInControlDirective, variable, from, _this.expression$0()));
  43126. },
  43127. _forwardRule$1: function(start) {
  43128. var prefix, members, shownMixinsAndFunctions, shownVariables, hiddenVariables, hiddenMixinsAndFunctions, configuration, span, t1, t2, t3, t4, _this = this, _null = null,
  43129. url = _this._urlString$0();
  43130. _this.whitespace$0();
  43131. if (_this.scanIdentifier$1("as")) {
  43132. _this.whitespace$0();
  43133. prefix = _this.identifier$1$normalize(true);
  43134. _this.scanner.expectChar$1(42);
  43135. _this.whitespace$0();
  43136. } else
  43137. prefix = _null;
  43138. if (_this.scanIdentifier$1("show")) {
  43139. members = _this._memberList$0();
  43140. shownMixinsAndFunctions = members.item1;
  43141. shownVariables = members.item2;
  43142. hiddenVariables = _null;
  43143. hiddenMixinsAndFunctions = hiddenVariables;
  43144. } else {
  43145. if (_this.scanIdentifier$1("hide")) {
  43146. members = _this._memberList$0();
  43147. hiddenMixinsAndFunctions = members.item1;
  43148. hiddenVariables = members.item2;
  43149. } else {
  43150. hiddenVariables = _null;
  43151. hiddenMixinsAndFunctions = hiddenVariables;
  43152. }
  43153. shownVariables = _null;
  43154. shownMixinsAndFunctions = shownVariables;
  43155. }
  43156. configuration = _this._stylesheet$_configuration$1$allowGuarded(true);
  43157. _this.expectStatementSeparator$1("@forward rule");
  43158. span = _this.scanner.spanFrom$1(start);
  43159. if (!_this._isUseAllowed)
  43160. _this.error$2("@forward rules must be written before any other rules.", span);
  43161. if (shownMixinsAndFunctions != null) {
  43162. t1 = type$.String;
  43163. t2 = P.LinkedHashSet_LinkedHashSet$of(shownMixinsAndFunctions, t1);
  43164. t3 = type$.UnmodifiableSetView_String;
  43165. t1 = P.LinkedHashSet_LinkedHashSet$of(shownVariables, t1);
  43166. t4 = configuration == null ? C.List_empty6 : P.List_List$unmodifiable(configuration, type$.ConfiguredVariable);
  43167. return new L.ForwardRule(url, new L.UnmodifiableSetView(t2, t3), new L.UnmodifiableSetView(t1, t3), _null, _null, prefix, t4, span);
  43168. } else if (hiddenMixinsAndFunctions != null) {
  43169. t1 = type$.String;
  43170. t2 = P.LinkedHashSet_LinkedHashSet$of(hiddenMixinsAndFunctions, t1);
  43171. t3 = type$.UnmodifiableSetView_String;
  43172. t1 = P.LinkedHashSet_LinkedHashSet$of(hiddenVariables, t1);
  43173. t4 = configuration == null ? C.List_empty6 : P.List_List$unmodifiable(configuration, type$.ConfiguredVariable);
  43174. return new L.ForwardRule(url, _null, _null, new L.UnmodifiableSetView(t2, t3), new L.UnmodifiableSetView(t1, t3), prefix, t4, span);
  43175. } else
  43176. return new L.ForwardRule(url, _null, _null, _null, _null, prefix, configuration == null ? C.List_empty6 : P.List_List$unmodifiable(configuration, type$.ConfiguredVariable), span);
  43177. },
  43178. _memberList$0: function() {
  43179. var _this = this,
  43180. t1 = type$.String,
  43181. identifiers = P.LinkedHashSet_LinkedHashSet$_empty(t1),
  43182. variables = P.LinkedHashSet_LinkedHashSet$_empty(t1);
  43183. t1 = _this.scanner;
  43184. do {
  43185. _this.whitespace$0();
  43186. _this.withErrorMessage$2("Expected variable, mixin, or function name", new V.StylesheetParser__memberList_closure(_this, variables, identifiers));
  43187. _this.whitespace$0();
  43188. } while (t1.scanChar$1(44));
  43189. return new S.Tuple2(identifiers, variables, type$.Tuple2_of_Set_String_and_Set_String);
  43190. },
  43191. _ifRule$2: function(start, child) {
  43192. var condition, children, t1, t2, clauses, lastClause, result, t3, span, _this = this,
  43193. ifIndentation = _this.get$currentIndentation(),
  43194. wasInControlDirective = _this._inControlDirective;
  43195. _this._inControlDirective = true;
  43196. condition = _this.expression$0();
  43197. children = _this.children$1(child);
  43198. _this.whitespaceWithoutComments$0();
  43199. t1 = type$.Statement;
  43200. t2 = P.List_List$unmodifiable(children, t1);
  43201. clauses = H.setRuntimeTypeInfo([new V.IfClause(condition, t2, C.JSArray_methods.any$1(t2, new V.IfClause$__closure()))], type$.JSArray_IfClause);
  43202. while (true) {
  43203. if (!_this.scanElse$1(ifIndentation)) {
  43204. lastClause = null;
  43205. break;
  43206. }
  43207. _this.whitespace$0();
  43208. if (_this.scanIdentifier$1("if")) {
  43209. _this.whitespace$0();
  43210. t2 = _this.expression$0();
  43211. result = P.List_List$from(_this.children$1(child), false, t1);
  43212. result.fixed$length = Array;
  43213. result.immutable$list = Array;
  43214. t3 = result;
  43215. clauses.push(new V.IfClause(t2, t3, C.JSArray_methods.any$1(t3, new V.IfClause$__closure())));
  43216. } else {
  43217. result = P.List_List$from(_this.children$1(child), false, t1);
  43218. result.fixed$length = Array;
  43219. result.immutable$list = Array;
  43220. t1 = result;
  43221. lastClause = new V.IfClause(null, t1, C.JSArray_methods.any$1(t1, new V.IfClause$__closure()));
  43222. break;
  43223. }
  43224. }
  43225. _this._inControlDirective = wasInControlDirective;
  43226. span = _this.scanner.spanFrom$1(start);
  43227. _this.whitespaceWithoutComments$0();
  43228. return new V.IfRule(P.List_List$unmodifiable(clauses, type$.IfClause), lastClause, span);
  43229. },
  43230. _importRule$1: function(start) {
  43231. var argument, _this = this,
  43232. imports = H.setRuntimeTypeInfo([], type$.JSArray_Import),
  43233. t1 = _this.scanner;
  43234. do {
  43235. _this.whitespace$0();
  43236. argument = _this.importArgument$0();
  43237. if ((_this._inControlDirective || _this._stylesheet$_inMixin) && argument instanceof B.DynamicImport)
  43238. _this._disallowedAtRule$1(start);
  43239. imports.push(argument);
  43240. _this.whitespace$0();
  43241. } while (t1.scanChar$1(44));
  43242. _this.expectStatementSeparator$1("@import rule");
  43243. t1 = t1.spanFrom$1(start);
  43244. return new B.ImportRule(P.List_List$unmodifiable(imports, type$.Import), t1);
  43245. },
  43246. importArgument$0: function() {
  43247. var url, urlSpan, innerError, queries, t2, t3, t4, exception, _this = this, _null = null,
  43248. t1 = _this.scanner,
  43249. start = new S._SpanScannerState(t1, t1._string_scanner$_position),
  43250. next = t1.peekChar$0();
  43251. if (next === 117 || next === 85) {
  43252. url = _this.dynamicUrl$0();
  43253. _this.whitespace$0();
  43254. queries = _this.tryImportQueries$0();
  43255. t2 = X.Interpolation$([url], t1.spanFrom$1(start));
  43256. t1 = t1.spanFrom$1(start);
  43257. t3 = queries == null;
  43258. t4 = t3 ? _null : queries.item1;
  43259. return new Q.StaticImport(t2, t4, t3 ? _null : queries.item2, t1);
  43260. }
  43261. url = _this.string$0();
  43262. urlSpan = t1.spanFrom$1(start);
  43263. _this.whitespace$0();
  43264. queries = _this.tryImportQueries$0();
  43265. if (_this.isPlainImportUrl$1(url) || queries != null) {
  43266. t2 = urlSpan;
  43267. t2 = X.Interpolation$([P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t2.file._decodedChars, t2._file$_start, t2._end), 0, _null)], urlSpan);
  43268. t1 = t1.spanFrom$1(start);
  43269. t3 = queries == null;
  43270. t4 = t3 ? _null : queries.item1;
  43271. return new Q.StaticImport(t2, t4, t3 ? _null : queries.item2, t1);
  43272. } else
  43273. try {
  43274. t1 = _this.parseImportUrl$1(url);
  43275. return new B.DynamicImport(t1, urlSpan);
  43276. } catch (exception) {
  43277. t1 = H.unwrapException(exception);
  43278. if (type$.FormatException._is(t1)) {
  43279. innerError = t1;
  43280. _this.error$2("Invalid URL: " + H.S(J.get$message$x(innerError)), urlSpan);
  43281. } else
  43282. throw exception;
  43283. }
  43284. },
  43285. parseImportUrl$1: function(url) {
  43286. var t1 = $.$get$windows();
  43287. if (t1.style.rootLength$1(url) > 0)
  43288. return J.toString$0$(t1.toUri$1(url));
  43289. P.Uri_parse(url);
  43290. return url;
  43291. },
  43292. isPlainImportUrl$1: function(url) {
  43293. var first;
  43294. if (url.length < 5)
  43295. return false;
  43296. if (C.JSString_methods.endsWith$1(url, ".css"))
  43297. return true;
  43298. first = C.JSString_methods._codeUnitAt$1(url, 0);
  43299. if (first === 47)
  43300. return C.JSString_methods._codeUnitAt$1(url, 1) === 47;
  43301. if (first !== 104)
  43302. return false;
  43303. return C.JSString_methods.startsWith$1(url, "http://") || C.JSString_methods.startsWith$1(url, "https://");
  43304. },
  43305. tryImportQueries$0: function() {
  43306. var t1, start, supports, $name, media, _this = this;
  43307. if (_this.scanIdentifier$1("supports")) {
  43308. t1 = _this.scanner;
  43309. t1.expectChar$1(40);
  43310. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  43311. if (_this.scanIdentifier$1("not")) {
  43312. _this.whitespace$0();
  43313. supports = new M.SupportsNegation(_this._supportsConditionInParens$0(), t1.spanFrom$1(start));
  43314. } else if (t1.peekChar$0() === 40)
  43315. supports = _this._supportsCondition$0();
  43316. else {
  43317. $name = _this.expression$0();
  43318. t1.expectChar$1(58);
  43319. _this.whitespace$0();
  43320. supports = new L.SupportsDeclaration($name, _this.expression$0(), t1.spanFrom$1(start));
  43321. }
  43322. t1.expectChar$1(41);
  43323. _this.whitespace$0();
  43324. } else
  43325. supports = null;
  43326. media = _this._lookingAtInterpolatedIdentifier$0() || _this.scanner.peekChar$0() === 40 ? _this._mediaQueryList$0() : null;
  43327. if (supports == null && media == null)
  43328. return null;
  43329. return new S.Tuple2(supports, media, type$.Tuple2_SupportsCondition_Interpolation);
  43330. },
  43331. _includeRule$1: function(start) {
  43332. var name0, namespace, $arguments, t3, t4, wasInContentBlock, $content, _this = this, _null = null, t1 = {},
  43333. $name = _this.identifier$0(),
  43334. t2 = _this.scanner;
  43335. if (t2.scanChar$1(46)) {
  43336. name0 = _this._publicIdentifier$0();
  43337. namespace = $name;
  43338. $name = name0;
  43339. } else {
  43340. $name = H.stringReplaceAllUnchecked($name, "_", "-");
  43341. namespace = _null;
  43342. }
  43343. _this.whitespace$0();
  43344. if (t2.peekChar$0() === 40)
  43345. $arguments = _this._argumentInvocation$1$mixin(true);
  43346. else {
  43347. t3 = Y.FileLocation$_(t2._sourceFile, t2._string_scanner$_position);
  43348. t4 = t3.offset;
  43349. $arguments = new X.ArgumentInvocation(C.List_empty7, C.Map_empty3, _null, _null, Y._FileSpan$(t3.file, t4, t4));
  43350. }
  43351. _this.whitespace$0();
  43352. t1.contentArguments = null;
  43353. if (_this.scanIdentifier$1("using")) {
  43354. _this.whitespace$0();
  43355. t3 = t1.contentArguments = _this._argumentDeclaration$0();
  43356. _this.whitespace$0();
  43357. } else
  43358. t3 = _null;
  43359. t3 = t3 == null;
  43360. if (!t3 || _this.lookingAtChildren$0()) {
  43361. if (t3) {
  43362. t3 = Y.FileLocation$_(t2._sourceFile, t2._string_scanner$_position);
  43363. t4 = t3.offset;
  43364. t1.contentArguments = new B.ArgumentDeclaration(C.List_empty8, _null, Y._FileSpan$(t3.file, t4, t4));
  43365. }
  43366. wasInContentBlock = _this._inContentBlock;
  43367. _this._inContentBlock = true;
  43368. $content = _this._withChildren$3(_this.get$_statement(), start, new V.StylesheetParser__includeRule_closure(t1));
  43369. _this._inContentBlock = wasInContentBlock;
  43370. } else {
  43371. _this.expectStatementSeparator$0();
  43372. $content = _null;
  43373. }
  43374. t1 = t2.spanFrom$2(start, start);
  43375. return new A.IncludeRule(namespace, $name, $arguments, $content, t1.expand$1(0, ($content == null ? $arguments : $content).get$span()));
  43376. },
  43377. mediaRule$1: function(start) {
  43378. return this._withChildren$3(this.get$_statement(), start, new V.StylesheetParser_mediaRule_closure(this._mediaQueryList$0()));
  43379. },
  43380. _mixinRule$1: function(start) {
  43381. var $name, t1, $arguments, t2, t3, _this = this,
  43382. precedingComment = _this.lastSilentComment;
  43383. _this.lastSilentComment = null;
  43384. $name = _this.identifier$1$normalize(true);
  43385. _this.whitespace$0();
  43386. t1 = _this.scanner;
  43387. if (t1.peekChar$0() === 40)
  43388. $arguments = _this._argumentDeclaration$0();
  43389. else {
  43390. t2 = Y.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
  43391. t3 = t2.offset;
  43392. $arguments = new B.ArgumentDeclaration(C.List_empty8, null, Y._FileSpan$(t2.file, t3, t3));
  43393. }
  43394. if (_this._stylesheet$_inMixin || _this._inContentBlock)
  43395. _this.error$2("Mixins may not contain mixin declarations.", t1.spanFrom$1(start));
  43396. else if (_this._inControlDirective)
  43397. _this.error$2("Mixins may not be declared in control directives.", t1.spanFrom$1(start));
  43398. _this.whitespace$0();
  43399. _this._stylesheet$_inMixin = true;
  43400. _this._mixinHasContent = false;
  43401. return _this._withChildren$3(_this.get$_statement(), start, new V.StylesheetParser__mixinRule_closure(_this, $name, $arguments, precedingComment));
  43402. },
  43403. mozDocumentRule$2: function(start, $name) {
  43404. var t5, t6, identifier, contents, argument, trailing, endPosition, start0, end, _this = this, _box_0 = {},
  43405. t1 = _this.scanner,
  43406. t2 = t1._string_scanner$_position,
  43407. t3 = new P.StringBuffer(""),
  43408. t4 = [],
  43409. buffer = new Z.InterpolationBuffer(t3, t4);
  43410. _box_0.needsDeprecationWarning = false;
  43411. for (t5 = _this.get$whitespace(); true;) {
  43412. if (t1.peekChar$0() === 35) {
  43413. t6 = _this.singleInterpolation$0();
  43414. buffer._flushText$0();
  43415. t4.push(t6);
  43416. _box_0.needsDeprecationWarning = true;
  43417. } else {
  43418. t6 = t1._string_scanner$_position;
  43419. identifier = _this.identifier$0();
  43420. switch (identifier) {
  43421. case "url":
  43422. case "url-prefix":
  43423. case "domain":
  43424. contents = _this._tryUrlContents$2$name(new S._SpanScannerState(t1, t6), identifier);
  43425. if (contents != null)
  43426. buffer.addInterpolation$1(contents);
  43427. else {
  43428. t1.expectChar$1(40);
  43429. _this.whitespace$0();
  43430. argument = _this.interpolatedString$0();
  43431. t1.expectChar$1(41);
  43432. t3._contents += identifier;
  43433. t3._contents += H.Primitives_stringFromCharCode(40);
  43434. buffer.addInterpolation$1(argument.asInterpolation$0());
  43435. t3._contents += H.Primitives_stringFromCharCode(41);
  43436. }
  43437. t6 = t3._contents;
  43438. trailing = t6.charCodeAt(0) == 0 ? t6 : t6;
  43439. if (!C.JSString_methods.endsWith$1(trailing, "url-prefix()") && !C.JSString_methods.endsWith$1(trailing, "url-prefix('')") && !C.JSString_methods.endsWith$1(trailing, 'url-prefix("")'))
  43440. _box_0.needsDeprecationWarning = true;
  43441. break;
  43442. case "regexp":
  43443. t3._contents += "regexp(";
  43444. t1.expectChar$1(40);
  43445. buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
  43446. t1.expectChar$1(41);
  43447. t3._contents += H.Primitives_stringFromCharCode(41);
  43448. _box_0.needsDeprecationWarning = true;
  43449. break;
  43450. default:
  43451. endPosition = t1._string_scanner$_position;
  43452. _this.error$2("Invalid function name.", Y._FileSpan$(t1._sourceFile, t6, endPosition));
  43453. }
  43454. }
  43455. _this.whitespace$0();
  43456. if (!t1.scanChar$1(44))
  43457. break;
  43458. t3._contents += H.Primitives_stringFromCharCode(44);
  43459. start0 = t1._string_scanner$_position;
  43460. t5.call$0();
  43461. end = t1._string_scanner$_position;
  43462. t3._contents += J.substring$2$s(t1.string, start0, end);
  43463. }
  43464. return _this._withChildren$3(_this.get$_statement(), start, new V.StylesheetParser_mozDocumentRule_closure(_box_0, _this, $name, buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)))));
  43465. },
  43466. supportsRule$1: function(start) {
  43467. var _this = this,
  43468. condition = _this._supportsCondition$0();
  43469. _this.whitespace$0();
  43470. return _this._withChildren$3(_this.get$_statement(), start, new V.StylesheetParser_supportsRule_closure(condition));
  43471. },
  43472. _useRule$1: function(start) {
  43473. var namespace, configuration, span, _this = this,
  43474. _s9_ = "@use rule",
  43475. url = _this._urlString$0();
  43476. _this.whitespace$0();
  43477. namespace = _this._useNamespace$2(url, start);
  43478. _this.whitespace$0();
  43479. configuration = _this._stylesheet$_configuration$0();
  43480. _this.expectStatementSeparator$1(_s9_);
  43481. span = _this.scanner.spanFrom$1(start);
  43482. if (!_this._isUseAllowed)
  43483. _this.error$2("@use rules must be written before any other rules.", span);
  43484. _this.expectStatementSeparator$1(_s9_);
  43485. return T.UseRule$(url, namespace, span, configuration);
  43486. },
  43487. _useNamespace$2: function(url, start) {
  43488. var namespace, basename, dot, t1, exception, _this = this;
  43489. if (_this.scanIdentifier$1("as")) {
  43490. _this.whitespace$0();
  43491. return _this.scanner.scanChar$1(42) ? null : _this.identifier$0();
  43492. }
  43493. basename = url.get$pathSegments().length === 0 ? "" : C.JSArray_methods.get$last(url.get$pathSegments());
  43494. dot = J.getInterceptor$asx(basename).indexOf$1(basename, ".");
  43495. t1 = C.JSString_methods.startsWith$1(basename, "_") ? 1 : 0;
  43496. namespace = C.JSString_methods.substring$2(basename, t1, dot === -1 ? basename.length : dot);
  43497. try {
  43498. t1 = G.Parser$(namespace, _this.logger, null)._parseIdentifier$0();
  43499. return t1;
  43500. } catch (exception) {
  43501. if (H.unwrapException(exception) instanceof E.SassFormatException)
  43502. _this.error$2('Invalid Sass identifier "' + H.S(namespace) + '"', _this.scanner.spanFrom$1(start));
  43503. else
  43504. throw exception;
  43505. }
  43506. },
  43507. _stylesheet$_configuration$1$allowGuarded: function(allowGuarded) {
  43508. var variableNames, configuration, t1, t2, $name, expression, t3, guarded, endPosition, span, _this = this;
  43509. if (!_this.scanIdentifier$1("with"))
  43510. return null;
  43511. variableNames = P.LinkedHashSet_LinkedHashSet$_empty(type$.String);
  43512. configuration = H.setRuntimeTypeInfo([], type$.JSArray_ConfiguredVariable);
  43513. _this.whitespace$0();
  43514. t1 = _this.scanner;
  43515. t1.expectChar$1(40);
  43516. for (; true;) {
  43517. _this.whitespace$0();
  43518. t2 = t1._string_scanner$_position;
  43519. t1.expectChar$1(36);
  43520. $name = _this.identifier$1$normalize(true);
  43521. _this.whitespace$0();
  43522. t1.expectChar$1(58);
  43523. _this.whitespace$0();
  43524. expression = _this._expressionUntilComma$0();
  43525. t3 = t1._string_scanner$_position;
  43526. if (allowGuarded && t1.scanChar$1(33))
  43527. if (_this.identifier$0() === "default")
  43528. guarded = true;
  43529. else {
  43530. endPosition = t1._string_scanner$_position;
  43531. _this.error$2("Invalid flag name.", Y._FileSpan$(t1._sourceFile, t3, endPosition));
  43532. guarded = false;
  43533. }
  43534. else
  43535. guarded = false;
  43536. endPosition = t1._string_scanner$_position;
  43537. span = Y._FileSpan$(t1._sourceFile, t2, endPosition);
  43538. if (variableNames.contains$1(0, $name))
  43539. _this.error$2("The same variable may only be configured once.", span);
  43540. variableNames.add$1(0, $name);
  43541. configuration.push(new Z.ConfiguredVariable($name, expression, guarded, span));
  43542. if (!t1.scanChar$1(44))
  43543. break;
  43544. _this.whitespace$0();
  43545. if (!_this._lookingAtExpression$0())
  43546. break;
  43547. }
  43548. t1.expectChar$1(41);
  43549. return configuration;
  43550. },
  43551. _stylesheet$_configuration$0: function() {
  43552. return this._stylesheet$_configuration$1$allowGuarded(false);
  43553. },
  43554. _warnRule$1: function(start) {
  43555. var value = this.expression$0();
  43556. this.expectStatementSeparator$1("@warn rule");
  43557. return new Y.WarnRule(value, this.scanner.spanFrom$1(start));
  43558. },
  43559. _whileRule$2: function(start, child) {
  43560. var _this = this,
  43561. wasInControlDirective = _this._inControlDirective;
  43562. _this._inControlDirective = true;
  43563. return _this._withChildren$3(child, start, new V.StylesheetParser__whileRule_closure(_this, wasInControlDirective, _this.expression$0()));
  43564. },
  43565. unknownAtRule$2: function(start, $name) {
  43566. var t2, t3, rule, _this = this, t1 = {},
  43567. wasInUnknownAtRule = _this._stylesheet$_inUnknownAtRule;
  43568. _this._stylesheet$_inUnknownAtRule = true;
  43569. t1.value = null;
  43570. t2 = _this.scanner;
  43571. t3 = t2.peekChar$0() !== 33 && !_this.atEndOfStatement$0() ? t1.value = _this.almostAnyValue$0() : null;
  43572. if (_this.lookingAtChildren$0())
  43573. rule = _this._withChildren$3(_this.get$_statement(), start, new V.StylesheetParser_unknownAtRule_closure(t1, $name));
  43574. else {
  43575. _this.expectStatementSeparator$0();
  43576. rule = U.AtRule$($name, t2.spanFrom$1(start), null, t3);
  43577. }
  43578. _this._stylesheet$_inUnknownAtRule = wasInUnknownAtRule;
  43579. return rule;
  43580. },
  43581. _disallowedAtRule$1: function(start) {
  43582. this.almostAnyValue$0();
  43583. this.error$2("This at-rule is not allowed here.", this.scanner.spanFrom$1(start));
  43584. },
  43585. _argumentDeclaration$0: function() {
  43586. var $arguments, named, restArgument, t3, $name, defaultValue, endPosition, _this = this,
  43587. t1 = _this.scanner,
  43588. t2 = t1._string_scanner$_position;
  43589. t1.expectChar$1(40);
  43590. _this.whitespace$0();
  43591. $arguments = H.setRuntimeTypeInfo([], type$.JSArray_Argument);
  43592. named = P.LinkedHashSet_LinkedHashSet$_empty(type$.String);
  43593. while (true) {
  43594. if (!(t1.peekChar$0() === 36)) {
  43595. restArgument = null;
  43596. break;
  43597. }
  43598. t3 = t1._string_scanner$_position;
  43599. t1.expectChar$1(36);
  43600. $name = _this.identifier$1$normalize(true);
  43601. _this.whitespace$0();
  43602. if (t1.scanChar$1(58)) {
  43603. _this.whitespace$0();
  43604. defaultValue = _this._expressionUntilComma$0();
  43605. } else {
  43606. if (t1.scanChar$1(46)) {
  43607. t1.expectChar$1(46);
  43608. t1.expectChar$1(46);
  43609. _this.whitespace$0();
  43610. restArgument = $name;
  43611. break;
  43612. }
  43613. defaultValue = null;
  43614. }
  43615. endPosition = t1._string_scanner$_position;
  43616. $arguments.push(new Z.Argument($name, defaultValue, Y._FileSpan$(t1._sourceFile, t3, endPosition)));
  43617. if (!named.add$1(0, $name))
  43618. _this.error$2("Duplicate argument.", C.JSArray_methods.get$last($arguments).span);
  43619. if (!t1.scanChar$1(44)) {
  43620. restArgument = null;
  43621. break;
  43622. }
  43623. _this.whitespace$0();
  43624. }
  43625. t1.expectChar$1(41);
  43626. t1 = t1.spanFrom$1(new S._SpanScannerState(t1, t2));
  43627. return new B.ArgumentDeclaration(P.List_List$unmodifiable($arguments, type$.Argument), restArgument, t1);
  43628. },
  43629. _argumentInvocation$1$mixin: function(mixin) {
  43630. var positional, named, keywordRest, t3, rest, expression, t4, _this = this,
  43631. t1 = _this.scanner,
  43632. t2 = t1._string_scanner$_position;
  43633. t1.expectChar$1(40);
  43634. _this.whitespace$0();
  43635. positional = H.setRuntimeTypeInfo([], type$.JSArray_Expression);
  43636. named = P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.Expression);
  43637. t3 = !mixin;
  43638. rest = null;
  43639. while (true) {
  43640. if (!_this._lookingAtExpression$0()) {
  43641. keywordRest = null;
  43642. break;
  43643. }
  43644. expression = _this._expressionUntilComma$1$singleEquals(t3);
  43645. _this.whitespace$0();
  43646. if (expression instanceof S.VariableExpression && t1.scanChar$1(58)) {
  43647. _this.whitespace$0();
  43648. t4 = expression.name;
  43649. if (named.containsKey$1(t4))
  43650. _this.error$2("Duplicate argument.", expression.span);
  43651. named.$indexSet(0, t4, _this._expressionUntilComma$1$singleEquals(t3));
  43652. } else if (t1.scanChar$1(46)) {
  43653. t1.expectChar$1(46);
  43654. t1.expectChar$1(46);
  43655. if (rest != null) {
  43656. _this.whitespace$0();
  43657. keywordRest = expression;
  43658. break;
  43659. }
  43660. rest = expression;
  43661. } else if (named.get$isNotEmpty(named))
  43662. t1.expect$1("...");
  43663. else
  43664. positional.push(expression);
  43665. _this.whitespace$0();
  43666. if (!t1.scanChar$1(44)) {
  43667. keywordRest = null;
  43668. break;
  43669. }
  43670. _this.whitespace$0();
  43671. }
  43672. t1.expectChar$1(41);
  43673. return X.ArgumentInvocation$(positional, named, t1.spanFrom$1(new S._SpanScannerState(t1, t2)), keywordRest, rest);
  43674. },
  43675. _argumentInvocation$0: function() {
  43676. return this._argumentInvocation$1$mixin(false);
  43677. },
  43678. expression$3$bracketList$singleEquals$until: function(bracketList, singleEquals, until) {
  43679. var t2, beforeBracket, t3, wasInParentheses, resetState, resolveOneOperation, resolveOperations, addSingleExpression, addOperator, resolveSpaceExpressions, first, next, t4, _this = this,
  43680. _s20_ = "Expected expression.",
  43681. _box_0 = {},
  43682. t1 = until != null;
  43683. if (t1 && until.call$0())
  43684. _this.scanner.error$1(_s20_);
  43685. if (bracketList) {
  43686. t2 = _this.scanner;
  43687. beforeBracket = new S._SpanScannerState(t2, t2._string_scanner$_position);
  43688. t2.expectChar$1(91);
  43689. _this.whitespace$0();
  43690. if (t2.scanChar$1(93)) {
  43691. t1 = H.setRuntimeTypeInfo([], type$.JSArray_Expression);
  43692. t2 = t2.spanFrom$1(beforeBracket);
  43693. t1 = P.List_List$unmodifiable(t1, type$.Expression);
  43694. return new D.ListExpression(t1, C.ListSeparator_undecided, true, t2);
  43695. }
  43696. } else
  43697. beforeBracket = null;
  43698. t2 = _this.scanner;
  43699. t3 = t2._string_scanner$_position;
  43700. wasInParentheses = _this._inParentheses;
  43701. _box_0.operands = _box_0.operators = _box_0.spaceExpressions = _box_0.singleEqualsOperand = _box_0.commaExpressions = null;
  43702. _box_0.allowSlash = _this.lookingAtNumber$0();
  43703. _box_0.singleExpression = _this._singleExpression$0();
  43704. resetState = new V.StylesheetParser_expression_resetState(_box_0, _this, new S._SpanScannerState(t2, t3));
  43705. resolveOneOperation = new V.StylesheetParser_expression_resolveOneOperation(_box_0, _this);
  43706. resolveOperations = new V.StylesheetParser_expression_resolveOperations(_box_0, resolveOneOperation);
  43707. addSingleExpression = new V.StylesheetParser_expression_addSingleExpression(_box_0, _this, resetState, resolveOperations);
  43708. addOperator = new V.StylesheetParser_expression_addOperator(_box_0, _this, resolveOneOperation);
  43709. resolveSpaceExpressions = new V.StylesheetParser_expression_resolveSpaceExpressions(_box_0, resolveOperations);
  43710. $label0$0:
  43711. for (t3 = type$.JSArray_Expression; true;) {
  43712. _this.whitespace$0();
  43713. if (t1 && until.call$0())
  43714. break $label0$0;
  43715. first = t2.peekChar$0();
  43716. switch (first) {
  43717. case 40:
  43718. addSingleExpression.call$1(_this._parentheses$0());
  43719. break;
  43720. case 91:
  43721. addSingleExpression.call$1(_this.expression$1$bracketList(true));
  43722. break;
  43723. case 36:
  43724. addSingleExpression.call$1(_this._variable$0());
  43725. break;
  43726. case 38:
  43727. addSingleExpression.call$1(_this._selector$0());
  43728. break;
  43729. case 39:
  43730. case 34:
  43731. addSingleExpression.call$1(_this.interpolatedString$0());
  43732. break;
  43733. case 35:
  43734. addSingleExpression.call$1(_this._hashExpression$0());
  43735. break;
  43736. case 61:
  43737. t2.readChar$0();
  43738. if (singleEquals && t2.peekChar$0() !== 61) {
  43739. resolveSpaceExpressions.call$0();
  43740. _box_0.singleEqualsOperand = _box_0.singleExpression;
  43741. _box_0.singleExpression = null;
  43742. } else {
  43743. t2.expectChar$1(61);
  43744. addOperator.call$1(C.BinaryOperator_YlX);
  43745. }
  43746. break;
  43747. case 33:
  43748. next = t2.peekChar$1(1);
  43749. if (next === 61) {
  43750. t2.readChar$0();
  43751. t2.readChar$0();
  43752. addOperator.call$1(C.BinaryOperator_i5H);
  43753. } else {
  43754. if (next != null)
  43755. if ((next | 32) !== 105)
  43756. t4 = next === 32 || next === 9 || next === 10 || next === 13 || next === 12;
  43757. else
  43758. t4 = true;
  43759. else
  43760. t4 = true;
  43761. if (t4)
  43762. addSingleExpression.call$1(_this._importantExpression$0());
  43763. else
  43764. break $label0$0;
  43765. }
  43766. break;
  43767. case 60:
  43768. t2.readChar$0();
  43769. addOperator.call$1(t2.scanChar$1(61) ? C.BinaryOperator_33h : C.BinaryOperator_8qt);
  43770. break;
  43771. case 62:
  43772. t2.readChar$0();
  43773. addOperator.call$1(t2.scanChar$1(61) ? C.BinaryOperator_1da : C.BinaryOperator_AcR0);
  43774. break;
  43775. case 42:
  43776. t2.readChar$0();
  43777. addOperator.call$1(C.BinaryOperator_O1M);
  43778. break;
  43779. case 43:
  43780. if (_box_0.singleExpression == null)
  43781. addSingleExpression.call$1(_this._unaryOperation$0());
  43782. else {
  43783. t2.readChar$0();
  43784. addOperator.call$1(C.BinaryOperator_AcR);
  43785. }
  43786. break;
  43787. case 45:
  43788. next = t2.peekChar$1(1);
  43789. if (next != null && next >= 48 && next <= 57 || next === 46)
  43790. if (_box_0.singleExpression != null) {
  43791. t4 = t2.peekChar$1(-1);
  43792. t4 = t4 === 32 || t4 === 9 || t4 === 10 || t4 === 13 || t4 === 12;
  43793. } else
  43794. t4 = true;
  43795. else
  43796. t4 = false;
  43797. if (t4)
  43798. addSingleExpression.call$2$number(_this._number$0(), true);
  43799. else if (_this._lookingAtInterpolatedIdentifier$0())
  43800. addSingleExpression.call$1(_this.identifierLike$0());
  43801. else if (_box_0.singleExpression == null)
  43802. addSingleExpression.call$1(_this._unaryOperation$0());
  43803. else {
  43804. t2.readChar$0();
  43805. addOperator.call$1(C.BinaryOperator_iyO);
  43806. }
  43807. break;
  43808. case 47:
  43809. if (_box_0.singleExpression == null)
  43810. addSingleExpression.call$1(_this._unaryOperation$0());
  43811. else {
  43812. t2.readChar$0();
  43813. addOperator.call$1(C.BinaryOperator_RTB);
  43814. }
  43815. break;
  43816. case 37:
  43817. t2.readChar$0();
  43818. addOperator.call$1(C.BinaryOperator_2ad);
  43819. break;
  43820. case 48:
  43821. case 49:
  43822. case 50:
  43823. case 51:
  43824. case 52:
  43825. case 53:
  43826. case 54:
  43827. case 55:
  43828. case 56:
  43829. case 57:
  43830. addSingleExpression.call$2$number(_this._number$0(), true);
  43831. break;
  43832. case 46:
  43833. if (t2.peekChar$1(1) === 46)
  43834. break $label0$0;
  43835. addSingleExpression.call$2$number(_this._number$0(), true);
  43836. break;
  43837. case 97:
  43838. if (!_this.get$plainCss() && _this.scanIdentifier$1("and"))
  43839. addOperator.call$1(C.BinaryOperator_and_and_2);
  43840. else
  43841. addSingleExpression.call$1(_this.identifierLike$0());
  43842. break;
  43843. case 111:
  43844. if (!_this.get$plainCss() && _this.scanIdentifier$1("or"))
  43845. addOperator.call$1(C.BinaryOperator_or_or_1);
  43846. else
  43847. addSingleExpression.call$1(_this.identifierLike$0());
  43848. break;
  43849. case 117:
  43850. case 85:
  43851. if (t2.peekChar$1(1) === 43)
  43852. addSingleExpression.call$1(_this._unicodeRange$0());
  43853. else
  43854. addSingleExpression.call$1(_this.identifierLike$0());
  43855. break;
  43856. case 98:
  43857. case 99:
  43858. case 100:
  43859. case 101:
  43860. case 102:
  43861. case 103:
  43862. case 104:
  43863. case 105:
  43864. case 106:
  43865. case 107:
  43866. case 108:
  43867. case 109:
  43868. case 110:
  43869. case 112:
  43870. case 113:
  43871. case 114:
  43872. case 115:
  43873. case 116:
  43874. case 118:
  43875. case 119:
  43876. case 120:
  43877. case 121:
  43878. case 122:
  43879. case 65:
  43880. case 66:
  43881. case 67:
  43882. case 68:
  43883. case 69:
  43884. case 70:
  43885. case 71:
  43886. case 72:
  43887. case 73:
  43888. case 74:
  43889. case 75:
  43890. case 76:
  43891. case 77:
  43892. case 78:
  43893. case 79:
  43894. case 80:
  43895. case 81:
  43896. case 82:
  43897. case 83:
  43898. case 84:
  43899. case 86:
  43900. case 87:
  43901. case 88:
  43902. case 89:
  43903. case 90:
  43904. case 95:
  43905. case 92:
  43906. addSingleExpression.call$1(_this.identifierLike$0());
  43907. break;
  43908. case 44:
  43909. if (_this._inParentheses) {
  43910. _this._inParentheses = false;
  43911. if (_box_0.allowSlash) {
  43912. resetState.call$0();
  43913. break;
  43914. }
  43915. }
  43916. if (_box_0.commaExpressions == null)
  43917. _box_0.commaExpressions = H.setRuntimeTypeInfo([], t3);
  43918. if (_box_0.singleExpression == null)
  43919. t2.error$1(_s20_);
  43920. resolveSpaceExpressions.call$0();
  43921. _box_0.commaExpressions.push(_box_0.singleExpression);
  43922. t2.readChar$0();
  43923. _box_0.allowSlash = true;
  43924. _box_0.singleExpression = null;
  43925. break;
  43926. default:
  43927. if (first != null && first >= 128) {
  43928. addSingleExpression.call$1(_this.identifierLike$0());
  43929. break;
  43930. } else
  43931. break $label0$0;
  43932. }
  43933. }
  43934. if (bracketList)
  43935. t2.expectChar$1(93);
  43936. if (_box_0.commaExpressions != null) {
  43937. resolveSpaceExpressions.call$0();
  43938. _this._inParentheses = wasInParentheses;
  43939. t1 = _box_0.singleExpression;
  43940. if (t1 != null)
  43941. _box_0.commaExpressions.push(t1);
  43942. t1 = _box_0.commaExpressions;
  43943. t2 = bracketList ? t2.spanFrom$1(beforeBracket) : null;
  43944. t1 = P.List_List$unmodifiable(t1, type$.Expression);
  43945. return new D.ListExpression(t1, C.ListSeparator_comma, bracketList, t2 == null ? B.spanForList(t1) : t2);
  43946. } else if (bracketList && _box_0.spaceExpressions != null && _box_0.singleEqualsOperand == null) {
  43947. resolveOperations.call$0();
  43948. t1 = _box_0.spaceExpressions;
  43949. t1.push(_box_0.singleExpression);
  43950. t2 = t2.spanFrom$1(beforeBracket);
  43951. t1 = P.List_List$unmodifiable(t1, type$.Expression);
  43952. return new D.ListExpression(t1, C.ListSeparator_space, true, t2);
  43953. } else {
  43954. resolveSpaceExpressions.call$0();
  43955. if (bracketList) {
  43956. t1 = H.setRuntimeTypeInfo([_box_0.singleExpression], t3);
  43957. t2 = t2.spanFrom$1(beforeBracket);
  43958. t1 = P.List_List$unmodifiable(t1, type$.Expression);
  43959. _box_0.singleExpression = new D.ListExpression(t1, C.ListSeparator_undecided, true, t2);
  43960. }
  43961. return _box_0.singleExpression;
  43962. }
  43963. },
  43964. expression$0: function() {
  43965. return this.expression$3$bracketList$singleEquals$until(false, false, null);
  43966. },
  43967. expression$2$singleEquals$until: function(singleEquals, until) {
  43968. return this.expression$3$bracketList$singleEquals$until(false, singleEquals, until);
  43969. },
  43970. expression$1$bracketList: function(bracketList) {
  43971. return this.expression$3$bracketList$singleEquals$until(bracketList, false, null);
  43972. },
  43973. expression$1$singleEquals: function(singleEquals) {
  43974. return this.expression$3$bracketList$singleEquals$until(false, singleEquals, null);
  43975. },
  43976. expression$1$until: function(until) {
  43977. return this.expression$3$bracketList$singleEquals$until(false, false, until);
  43978. },
  43979. _expressionUntilComma$1$singleEquals: function(singleEquals) {
  43980. return this.expression$2$singleEquals$until(singleEquals, new V.StylesheetParser__expressionUntilComma_closure(this));
  43981. },
  43982. _expressionUntilComma$0: function() {
  43983. return this._expressionUntilComma$1$singleEquals(false);
  43984. },
  43985. _singleExpression$0: function() {
  43986. var next, _this = this,
  43987. t1 = _this.scanner,
  43988. first = t1.peekChar$0();
  43989. switch (first) {
  43990. case 40:
  43991. return _this._parentheses$0();
  43992. case 47:
  43993. return _this._unaryOperation$0();
  43994. case 46:
  43995. return _this._number$0();
  43996. case 91:
  43997. return _this.expression$1$bracketList(true);
  43998. case 36:
  43999. return _this._variable$0();
  44000. case 38:
  44001. return _this._selector$0();
  44002. case 39:
  44003. case 34:
  44004. return _this.interpolatedString$0();
  44005. case 35:
  44006. return _this._hashExpression$0();
  44007. case 43:
  44008. next = t1.peekChar$1(1);
  44009. return T.isDigit(next) || next === 46 ? _this._number$0() : _this._unaryOperation$0();
  44010. case 45:
  44011. return _this._minusExpression$0();
  44012. case 33:
  44013. return _this._importantExpression$0();
  44014. case 117:
  44015. case 85:
  44016. if (t1.peekChar$1(1) === 43)
  44017. return _this._unicodeRange$0();
  44018. else
  44019. return _this.identifierLike$0();
  44020. case 48:
  44021. case 49:
  44022. case 50:
  44023. case 51:
  44024. case 52:
  44025. case 53:
  44026. case 54:
  44027. case 55:
  44028. case 56:
  44029. case 57:
  44030. return _this._number$0();
  44031. case 97:
  44032. case 98:
  44033. case 99:
  44034. case 100:
  44035. case 101:
  44036. case 102:
  44037. case 103:
  44038. case 104:
  44039. case 105:
  44040. case 106:
  44041. case 107:
  44042. case 108:
  44043. case 109:
  44044. case 110:
  44045. case 111:
  44046. case 112:
  44047. case 113:
  44048. case 114:
  44049. case 115:
  44050. case 116:
  44051. case 118:
  44052. case 119:
  44053. case 120:
  44054. case 121:
  44055. case 122:
  44056. case 65:
  44057. case 66:
  44058. case 67:
  44059. case 68:
  44060. case 69:
  44061. case 70:
  44062. case 71:
  44063. case 72:
  44064. case 73:
  44065. case 74:
  44066. case 75:
  44067. case 76:
  44068. case 77:
  44069. case 78:
  44070. case 79:
  44071. case 80:
  44072. case 81:
  44073. case 82:
  44074. case 83:
  44075. case 84:
  44076. case 86:
  44077. case 87:
  44078. case 88:
  44079. case 89:
  44080. case 90:
  44081. case 95:
  44082. case 92:
  44083. return _this.identifierLike$0();
  44084. default:
  44085. if (first != null && first >= 128)
  44086. return _this.identifierLike$0();
  44087. t1.error$1("Expected expression.");
  44088. }
  44089. },
  44090. _parentheses$0: function() {
  44091. var wasInParentheses, start, first, expressions, t1, t2, _this = this;
  44092. if (_this.get$plainCss())
  44093. _this.scanner.error$2$length("Parentheses aren't allowed in plain CSS.", 1);
  44094. wasInParentheses = _this._inParentheses;
  44095. _this._inParentheses = true;
  44096. try {
  44097. t1 = _this.scanner;
  44098. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  44099. t1.expectChar$1(40);
  44100. _this.whitespace$0();
  44101. if (!_this._lookingAtExpression$0()) {
  44102. t1.expectChar$1(41);
  44103. t2 = H.setRuntimeTypeInfo([], type$.JSArray_Expression);
  44104. t1 = t1.spanFrom$1(start);
  44105. t2 = P.List_List$unmodifiable(t2, type$.Expression);
  44106. return new D.ListExpression(t2, C.ListSeparator_undecided, false, t1);
  44107. }
  44108. first = _this._expressionUntilComma$0();
  44109. if (t1.scanChar$1(58)) {
  44110. _this.whitespace$0();
  44111. t1 = _this._stylesheet$_map$2(first, start);
  44112. return t1;
  44113. }
  44114. if (!t1.scanChar$1(44)) {
  44115. t1.expectChar$1(41);
  44116. t1 = t1.spanFrom$1(start);
  44117. return new T.ParenthesizedExpression(first, t1);
  44118. }
  44119. _this.whitespace$0();
  44120. expressions = H.setRuntimeTypeInfo([first], type$.JSArray_Expression);
  44121. for (; true;) {
  44122. if (!_this._lookingAtExpression$0())
  44123. break;
  44124. J.add$1$ax(expressions, _this._expressionUntilComma$0());
  44125. if (!t1.scanChar$1(44))
  44126. break;
  44127. _this.whitespace$0();
  44128. }
  44129. t1.expectChar$1(41);
  44130. t1 = t1.spanFrom$1(start);
  44131. t2 = P.List_List$unmodifiable(expressions, type$.Expression);
  44132. return new D.ListExpression(t2, C.ListSeparator_comma, false, t1);
  44133. } finally {
  44134. _this._inParentheses = wasInParentheses;
  44135. }
  44136. },
  44137. _stylesheet$_map$2: function(first, start) {
  44138. var t2, key, _this = this,
  44139. t1 = type$.Tuple2_Expression_Expression,
  44140. pairs = H.setRuntimeTypeInfo([new S.Tuple2(first, _this._expressionUntilComma$0(), t1)], type$.JSArray_Tuple2_Expression_Expression);
  44141. for (t2 = _this.scanner; t2.scanChar$1(44);) {
  44142. _this.whitespace$0();
  44143. if (!_this._lookingAtExpression$0())
  44144. break;
  44145. key = _this._expressionUntilComma$0();
  44146. t2.expectChar$1(58);
  44147. _this.whitespace$0();
  44148. pairs.push(new S.Tuple2(key, _this._expressionUntilComma$0(), t1));
  44149. }
  44150. t2.expectChar$1(41);
  44151. t2 = t2.spanFrom$1(start);
  44152. return new A.MapExpression(P.List_List$unmodifiable(pairs, t1), t2);
  44153. },
  44154. _hashExpression$0: function() {
  44155. var start, first, t2, identifier, buffer, _this = this,
  44156. t1 = _this.scanner;
  44157. if (t1.peekChar$1(1) === 123)
  44158. return _this.identifierLike$0();
  44159. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  44160. t1.expectChar$1(35);
  44161. first = t1.peekChar$0();
  44162. if (first != null && T.isDigit(first))
  44163. return new K.ColorExpression(_this._hexColorContents$1(start));
  44164. t2 = t1._string_scanner$_position;
  44165. identifier = _this.interpolatedIdentifier$0();
  44166. if (_this._isHexColor$1(identifier)) {
  44167. t1.set$state(new S._SpanScannerState(t1, t2));
  44168. return new K.ColorExpression(_this._hexColorContents$1(start));
  44169. }
  44170. t2 = new P.StringBuffer("");
  44171. buffer = new Z.InterpolationBuffer(t2, []);
  44172. t2._contents += H.Primitives_stringFromCharCode(35);
  44173. buffer.addInterpolation$1(identifier);
  44174. return new D.StringExpression(buffer.interpolation$1(t1.spanFrom$1(start)), false);
  44175. },
  44176. _hexColorContents$1: function(start) {
  44177. var red, green, blue, alpha, digit4, t2, t3, _this = this,
  44178. digit1 = _this._hexDigit$0(),
  44179. digit2 = _this._hexDigit$0(),
  44180. digit3 = _this._hexDigit$0(),
  44181. t1 = _this.scanner;
  44182. if (!T.isHex(t1.peekChar$0())) {
  44183. red = (digit1 << 4 >>> 0) + digit1;
  44184. green = (digit2 << 4 >>> 0) + digit2;
  44185. blue = (digit3 << 4 >>> 0) + digit3;
  44186. alpha = 1;
  44187. } else {
  44188. digit4 = _this._hexDigit$0();
  44189. t2 = digit1 << 4 >>> 0;
  44190. t3 = digit3 << 4 >>> 0;
  44191. if (!T.isHex(t1.peekChar$0())) {
  44192. red = t2 + digit1;
  44193. green = (digit2 << 4 >>> 0) + digit2;
  44194. blue = t3 + digit3;
  44195. alpha = ((digit4 << 4 >>> 0) + digit4) / 255;
  44196. } else {
  44197. red = t2 + digit2;
  44198. green = t3 + digit4;
  44199. blue = (_this._hexDigit$0() << 4 >>> 0) + _this._hexDigit$0();
  44200. alpha = T.isHex(t1.peekChar$0()) ? ((_this._hexDigit$0() << 4 >>> 0) + _this._hexDigit$0()) / 255 : 1;
  44201. }
  44202. }
  44203. return K.SassColor$rgb(red, green, blue, alpha, t1.spanFrom$1(start));
  44204. },
  44205. _isHexColor$1: function(interpolation) {
  44206. var t1,
  44207. plain = interpolation.get$asPlain();
  44208. if (plain == null)
  44209. return false;
  44210. t1 = plain.length;
  44211. if (t1 !== 3 && t1 !== 4 && t1 !== 6 && t1 !== 8)
  44212. return false;
  44213. t1 = new H.CodeUnits(plain);
  44214. return t1.every$1(t1, T.character__isHex$closure());
  44215. },
  44216. _hexDigit$0: function() {
  44217. var t1 = this.scanner,
  44218. char = t1.peekChar$0();
  44219. if (char == null || !T.isHex(char))
  44220. t1.error$1("Expected hex digit.");
  44221. return T.asHex(t1.readChar$0());
  44222. },
  44223. _minusExpression$0: function() {
  44224. var _this = this,
  44225. next = _this.scanner.peekChar$1(1);
  44226. if (T.isDigit(next) || next === 46)
  44227. return _this._number$0();
  44228. if (_this._lookingAtInterpolatedIdentifier$0())
  44229. return _this.identifierLike$0();
  44230. return _this._unaryOperation$0();
  44231. },
  44232. _importantExpression$0: function() {
  44233. var t1 = this.scanner,
  44234. t2 = t1._string_scanner$_position;
  44235. t1.readChar$0();
  44236. this.whitespace$0();
  44237. this.expectIdentifier$1("important");
  44238. return new D.StringExpression(X.Interpolation$(["!important"], t1.spanFrom$1(new S._SpanScannerState(t1, t2))), false);
  44239. },
  44240. _unaryOperation$0: function() {
  44241. var _this = this,
  44242. t1 = _this.scanner,
  44243. t2 = t1._string_scanner$_position,
  44244. operator = _this._unaryOperatorFor$1(t1.readChar$0());
  44245. if (operator == null)
  44246. t1.error$2$position("Expected unary operator.", t1._string_scanner$_position - 1);
  44247. else if (_this.get$plainCss() && operator !== C.UnaryOperator_zDx)
  44248. t1.error$3$length$position("Operators aren't allowed in plain CSS.", 1, t1._string_scanner$_position - 1);
  44249. _this.whitespace$0();
  44250. return new X.UnaryOperationExpression(operator, _this._singleExpression$0(), t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  44251. },
  44252. _unaryOperatorFor$1: function(character) {
  44253. switch (character) {
  44254. case 43:
  44255. return C.UnaryOperator_j2w;
  44256. case 45:
  44257. return C.UnaryOperator_U4G;
  44258. case 47:
  44259. return C.UnaryOperator_zDx;
  44260. default:
  44261. return null;
  44262. }
  44263. },
  44264. _number$0: function() {
  44265. var number, t4, unit, t5, _this = this,
  44266. t1 = _this.scanner,
  44267. t2 = t1._string_scanner$_position,
  44268. first = t1.peekChar$0(),
  44269. t3 = first === 45,
  44270. sign = t3 ? -1 : 1;
  44271. if (first === 43 || t3)
  44272. t1.readChar$0();
  44273. number = t1.peekChar$0() === 46 ? 0 : _this.naturalNumber$0();
  44274. t3 = _this._tryDecimal$1$allowTrailingDot(t1._string_scanner$_position !== t2);
  44275. t4 = _this._tryExponent$0();
  44276. if (t1.scanChar$1(37))
  44277. unit = "%";
  44278. else {
  44279. if (_this.lookingAtIdentifier$0())
  44280. t5 = t1.peekChar$0() !== 45 || t1.peekChar$1(1) !== 45;
  44281. else
  44282. t5 = false;
  44283. unit = t5 ? _this.identifier$1$unit(true) : null;
  44284. }
  44285. return new T.NumberExpression(sign * ((number + t3) * t4), unit, t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  44286. },
  44287. _tryDecimal$1$allowTrailingDot: function(allowTrailingDot) {
  44288. var t2,
  44289. t1 = this.scanner,
  44290. start = t1._string_scanner$_position;
  44291. if (t1.peekChar$0() !== 46)
  44292. return 0;
  44293. if (!T.isDigit(t1.peekChar$1(1))) {
  44294. if (allowTrailingDot)
  44295. return 0;
  44296. t1.error$2$position("Expected digit.", t1._string_scanner$_position + 1);
  44297. }
  44298. t1.readChar$0();
  44299. while (true) {
  44300. t2 = t1.peekChar$0();
  44301. if (!(t2 != null && t2 >= 48 && t2 <= 57))
  44302. break;
  44303. t1.readChar$0();
  44304. }
  44305. return P.double_parse(t1.substring$1(0, start));
  44306. },
  44307. _tryExponent$0: function() {
  44308. var next, t2, exponentSign, exponent,
  44309. t1 = this.scanner,
  44310. first = t1.peekChar$0();
  44311. if (first !== 101 && first !== 69)
  44312. return 1;
  44313. next = t1.peekChar$1(1);
  44314. if (!T.isDigit(next) && next !== 45 && next !== 43)
  44315. return 1;
  44316. t1.readChar$0();
  44317. t2 = next === 45;
  44318. exponentSign = t2 ? -1 : 1;
  44319. if (next === 43 || t2)
  44320. t1.readChar$0();
  44321. if (!T.isDigit(t1.peekChar$0()))
  44322. t1.error$1("Expected digit.");
  44323. exponent = 0;
  44324. while (true) {
  44325. t2 = t1.peekChar$0();
  44326. if (!(t2 != null && t2 >= 48 && t2 <= 57))
  44327. break;
  44328. exponent = exponent * 10 + (t1.readChar$0() - 48);
  44329. }
  44330. return Math.pow(10, exponentSign * exponent);
  44331. },
  44332. _unicodeRange$0: function() {
  44333. var i, j, _this = this,
  44334. t1 = _this.scanner,
  44335. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  44336. _this.expectIdentChar$1(117);
  44337. t1.expectChar$1(43);
  44338. for (i = 0; i < 6; ++i)
  44339. if (!_this.scanCharIf$1(new V.StylesheetParser__unicodeRange_closure()))
  44340. break;
  44341. if (t1.scanChar$1(63)) {
  44342. ++i;
  44343. for (; i < 6; ++i)
  44344. if (!t1.scanChar$1(63))
  44345. break;
  44346. return new D.StringExpression(X.Interpolation$([t1.substring$1(0, start.position)], t1.spanFrom$1(start)), false);
  44347. }
  44348. if (i === 0)
  44349. t1.error$1('Expected hex digit or "?".');
  44350. if (t1.scanChar$1(45)) {
  44351. for (j = 0; j < 6; ++j)
  44352. if (!_this.scanCharIf$1(new V.StylesheetParser__unicodeRange_closure0()))
  44353. break;
  44354. if (j === 0)
  44355. t1.error$1("Expected hex digit.");
  44356. }
  44357. if (_this._lookingAtInterpolatedIdentifierBody$0())
  44358. t1.error$1("Expected end of identifier.");
  44359. return new D.StringExpression(X.Interpolation$([t1.substring$1(0, start.position)], t1.spanFrom$1(start)), false);
  44360. },
  44361. _variable$0: function() {
  44362. var _this = this,
  44363. t1 = _this.scanner,
  44364. start = new S._SpanScannerState(t1, t1._string_scanner$_position),
  44365. $name = _this.variableName$0();
  44366. if (_this.get$plainCss())
  44367. _this.error$2("Sass variables aren't allowed in plain CSS.", t1.spanFrom$1(start));
  44368. return new S.VariableExpression(null, $name, t1.spanFrom$1(start));
  44369. },
  44370. _selector$0: function() {
  44371. var t1, start, _this = this;
  44372. if (_this.get$plainCss())
  44373. _this.scanner.error$2$length("The parent selector isn't allowed in plain CSS.", 1);
  44374. t1 = _this.scanner;
  44375. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  44376. t1.expectChar$1(38);
  44377. if (t1.scanChar$1(38)) {
  44378. _this.logger.warn$2$span('In Sass, "&&" means two copies of the parent selector. You probably want to use "and" instead.', t1.spanFrom$1(start));
  44379. t1.set$position(t1._string_scanner$_position - 1);
  44380. }
  44381. return new T.SelectorExpression(t1.spanFrom$1(start));
  44382. },
  44383. interpolatedString$0: function() {
  44384. var t3, t4, buffer, next, second, t5,
  44385. t1 = this.scanner,
  44386. t2 = t1._string_scanner$_position,
  44387. quote = t1.readChar$0();
  44388. if (quote !== 39 && quote !== 34)
  44389. t1.error$2$position("Expected string.", t2);
  44390. t3 = new P.StringBuffer("");
  44391. t4 = [];
  44392. buffer = new Z.InterpolationBuffer(t3, t4);
  44393. for (; true;) {
  44394. next = t1.peekChar$0();
  44395. if (next === quote) {
  44396. t1.readChar$0();
  44397. break;
  44398. } else if (next == null || next === 10 || next === 13 || next === 12)
  44399. t1.error$1("Expected " + H.Primitives_stringFromCharCode(quote) + ".");
  44400. else if (next === 92) {
  44401. second = t1.peekChar$1(1);
  44402. if (second === 10 || second === 13 || second === 12) {
  44403. t1.readChar$0();
  44404. t1.readChar$0();
  44405. if (second === 13)
  44406. t1.scanChar$1(10);
  44407. } else
  44408. t3._contents += H.Primitives_stringFromCharCode(this.escapeCharacter$0());
  44409. } else if (next === 35)
  44410. if (t1.peekChar$1(1) === 123) {
  44411. t5 = this.singleInterpolation$0();
  44412. buffer._flushText$0();
  44413. t4.push(t5);
  44414. } else
  44415. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44416. else
  44417. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44418. }
  44419. return new D.StringExpression(buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2))), true);
  44420. },
  44421. identifierLike$0: function() {
  44422. var invocation, lower, color, specialFunction, $name, _this = this,
  44423. t1 = _this.scanner,
  44424. start = new S._SpanScannerState(t1, t1._string_scanner$_position),
  44425. identifier = _this.interpolatedIdentifier$0(),
  44426. plain = identifier.get$asPlain(),
  44427. t2 = plain == null;
  44428. if (!t2) {
  44429. if (plain === "if") {
  44430. invocation = _this._argumentInvocation$0();
  44431. return new L.IfExpression(invocation, B.spanForList(H.setRuntimeTypeInfo([identifier, invocation], type$.JSArray_AstNode)));
  44432. } else if (plain === "not") {
  44433. _this.whitespace$0();
  44434. return new X.UnaryOperationExpression(C.UnaryOperator_not_not, _this._singleExpression$0(), identifier.span);
  44435. }
  44436. lower = plain.toLowerCase();
  44437. if (t1.peekChar$0() !== 40) {
  44438. switch (plain) {
  44439. case "false":
  44440. return new Z.BooleanExpression(false, identifier.span);
  44441. case "null":
  44442. return new O.NullExpression(identifier.span);
  44443. case "true":
  44444. return new Z.BooleanExpression(true, identifier.span);
  44445. }
  44446. color = $.$get$colorsByName().$index(0, lower);
  44447. if (color != null)
  44448. return new K.ColorExpression(K.SassColor$rgb(color.get$red(), color.get$green(), color.get$blue(), color.alpha, identifier.span));
  44449. }
  44450. specialFunction = _this.trySpecialFunction$2(lower, start);
  44451. if (specialFunction != null)
  44452. return specialFunction;
  44453. }
  44454. switch (t1.peekChar$0()) {
  44455. case 46:
  44456. if (t1.peekChar$1(1) === 46)
  44457. return new D.StringExpression(identifier, false);
  44458. t1.readChar$0();
  44459. if (t2)
  44460. _this.error$2("Interpolation isn't allowed in namespaces.", identifier.span);
  44461. if (t1.peekChar$0() === 36) {
  44462. $name = _this.variableName$0();
  44463. _this._assertPublic$2($name, new V.StylesheetParser_identifierLike_closure(_this, start));
  44464. return new S.VariableExpression(plain, $name, t1.spanFrom$1(start));
  44465. }
  44466. t2 = t1._string_scanner$_position;
  44467. return new F.FunctionExpression(plain, X.Interpolation$([_this._publicIdentifier$0()], t1.spanFrom$1(new S._SpanScannerState(t1, t2))), _this._argumentInvocation$0(), t1.spanFrom$1(start));
  44468. case 40:
  44469. return new F.FunctionExpression(null, identifier, _this._argumentInvocation$0(), t1.spanFrom$1(start));
  44470. default:
  44471. return new D.StringExpression(identifier, false);
  44472. }
  44473. },
  44474. trySpecialFunction$2: function($name, start) {
  44475. var t1, buffer, t2, t3, next, contents, _this = this, _null = null;
  44476. switch (B.unvendor($name)) {
  44477. case "calc":
  44478. case "element":
  44479. case "expression":
  44480. if (!_this.scanner.scanChar$1(40))
  44481. return _null;
  44482. t1 = new P.StringBuffer("");
  44483. buffer = new Z.InterpolationBuffer(t1, []);
  44484. t1._contents = $name;
  44485. t1._contents += H.Primitives_stringFromCharCode(40);
  44486. break;
  44487. case "min":
  44488. case "max":
  44489. t1 = _this.scanner;
  44490. t2 = t1._string_scanner$_position;
  44491. if (!t1.scanChar$1(40))
  44492. return _null;
  44493. _this.whitespace$0();
  44494. t3 = new P.StringBuffer("");
  44495. buffer = new Z.InterpolationBuffer(t3, []);
  44496. t3._contents = $name;
  44497. t3._contents += H.Primitives_stringFromCharCode(40);
  44498. if (!_this._tryMinMaxContents$1(buffer)) {
  44499. t1.set$state(new S._SpanScannerState(t1, t2));
  44500. return _null;
  44501. }
  44502. return new D.StringExpression(buffer.interpolation$1(t1.spanFrom$1(start)), false);
  44503. case "progid":
  44504. t1 = _this.scanner;
  44505. if (!t1.scanChar$1(58))
  44506. return _null;
  44507. t2 = new P.StringBuffer("");
  44508. buffer = new Z.InterpolationBuffer(t2, []);
  44509. t2._contents = $name;
  44510. t2._contents += H.Primitives_stringFromCharCode(58);
  44511. next = t1.peekChar$0();
  44512. while (true) {
  44513. if (next != null) {
  44514. if (!(next >= 97 && next <= 122))
  44515. t3 = next >= 65 && next <= 90;
  44516. else
  44517. t3 = true;
  44518. t3 = t3 || next === 46;
  44519. } else
  44520. t3 = false;
  44521. if (!t3)
  44522. break;
  44523. t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44524. next = t1.peekChar$0();
  44525. }
  44526. t1.expectChar$1(40);
  44527. t2._contents += H.Primitives_stringFromCharCode(40);
  44528. break;
  44529. case "url":
  44530. contents = _this._tryUrlContents$1(start);
  44531. return contents == null ? _null : new D.StringExpression(contents, false);
  44532. default:
  44533. return _null;
  44534. }
  44535. buffer.addInterpolation$1(_this._interpolatedDeclarationValue$1$allowEmpty(true).text);
  44536. t1 = _this.scanner;
  44537. t1.expectChar$1(41);
  44538. buffer._interpolation_buffer$_text._contents += H.Primitives_stringFromCharCode(41);
  44539. return new D.StringExpression(buffer.interpolation$1(t1.spanFrom$1(start)), false);
  44540. },
  44541. _tryMinMaxContents$2$allowComma: function(buffer, allowComma) {
  44542. var t1, t2, t3, t4, start, end, exception, t5, _this = this;
  44543. for (t1 = _this.scanner, t2 = buffer._interpolation_buffer$_text, t3 = !allowComma, t4 = _this.get$_number(); true;) {
  44544. switch (t1.peekChar$0()) {
  44545. case 45:
  44546. case 43:
  44547. case 48:
  44548. case 49:
  44549. case 50:
  44550. case 51:
  44551. case 52:
  44552. case 53:
  44553. case 54:
  44554. case 55:
  44555. case 56:
  44556. case 57:
  44557. try {
  44558. start = t1._string_scanner$_position;
  44559. t4.call$0();
  44560. end = t1._string_scanner$_position;
  44561. t2._contents += J.substring$2$s(t1.string, start, end);
  44562. } catch (exception) {
  44563. if (type$.FormatException._is(H.unwrapException(exception)))
  44564. return false;
  44565. else
  44566. throw exception;
  44567. }
  44568. break;
  44569. case 35:
  44570. if (t1.peekChar$1(1) !== 123)
  44571. return false;
  44572. t5 = _this.singleInterpolation$0();
  44573. buffer._flushText$0();
  44574. buffer._interpolation_buffer$_contents.push(t5);
  44575. break;
  44576. case 99:
  44577. case 67:
  44578. if (!_this._tryMinMaxFunction$2(buffer, "calc"))
  44579. return false;
  44580. break;
  44581. case 101:
  44582. case 69:
  44583. if (!_this._tryMinMaxFunction$2(buffer, "env"))
  44584. return false;
  44585. break;
  44586. case 118:
  44587. case 86:
  44588. if (!_this._tryMinMaxFunction$2(buffer, "var"))
  44589. return false;
  44590. break;
  44591. case 40:
  44592. t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44593. if (!_this._tryMinMaxContents$2$allowComma(buffer, false))
  44594. return false;
  44595. break;
  44596. case 109:
  44597. case 77:
  44598. t1.readChar$0();
  44599. if (_this.scanIdentChar$1(105)) {
  44600. if (!_this.scanIdentChar$1(110))
  44601. return false;
  44602. t2._contents += "min(";
  44603. } else if (_this.scanIdentChar$1(97)) {
  44604. if (!_this.scanIdentChar$1(120))
  44605. return false;
  44606. t2._contents += "max(";
  44607. } else
  44608. return false;
  44609. if (!t1.scanChar$1(40))
  44610. return false;
  44611. if (!_this._tryMinMaxContents$1(buffer))
  44612. return false;
  44613. break;
  44614. default:
  44615. return false;
  44616. }
  44617. _this.whitespace$0();
  44618. switch (t1.peekChar$0()) {
  44619. case 41:
  44620. t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44621. return true;
  44622. case 43:
  44623. case 45:
  44624. case 42:
  44625. case 47:
  44626. t2._contents += H.Primitives_stringFromCharCode(32);
  44627. t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44628. t2._contents += H.Primitives_stringFromCharCode(32);
  44629. break;
  44630. case 44:
  44631. if (t3)
  44632. return false;
  44633. t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44634. t2._contents += H.Primitives_stringFromCharCode(32);
  44635. break;
  44636. default:
  44637. return false;
  44638. }
  44639. _this.whitespace$0();
  44640. }
  44641. },
  44642. _tryMinMaxContents$1: function(buffer) {
  44643. return this._tryMinMaxContents$2$allowComma(buffer, true);
  44644. },
  44645. _tryMinMaxFunction$2: function(buffer, $name) {
  44646. var t1, t2;
  44647. if (!this.scanIdentifier$1($name))
  44648. return false;
  44649. t1 = this.scanner;
  44650. if (!t1.scanChar$1(40))
  44651. return false;
  44652. t2 = buffer._interpolation_buffer$_text;
  44653. t2._contents += $name;
  44654. t2._contents += H.Primitives_stringFromCharCode(40);
  44655. buffer.addInterpolation$1(this._interpolatedDeclarationValue$1$allowEmpty(true).asInterpolation$0());
  44656. t2._contents += H.Primitives_stringFromCharCode(41);
  44657. if (!t1.scanChar$1(41))
  44658. return false;
  44659. return true;
  44660. },
  44661. _tryUrlContents$2$name: function(start, $name) {
  44662. var t3, t4, buffer, next, t5, endPosition, _this = this,
  44663. t1 = _this.scanner,
  44664. t2 = t1._string_scanner$_position;
  44665. if (!t1.scanChar$1(40))
  44666. return null;
  44667. _this.whitespaceWithoutComments$0();
  44668. t3 = new P.StringBuffer("");
  44669. t4 = [];
  44670. buffer = new Z.InterpolationBuffer(t3, t4);
  44671. t3._contents = $name == null ? "url" : $name;
  44672. t3._contents += H.Primitives_stringFromCharCode(40);
  44673. for (; true;) {
  44674. next = t1.peekChar$0();
  44675. if (next == null)
  44676. break;
  44677. else {
  44678. if (next !== 33)
  44679. if (next !== 37)
  44680. if (next !== 38)
  44681. t5 = next >= 42 && next <= 126 || next >= 128;
  44682. else
  44683. t5 = true;
  44684. else
  44685. t5 = true;
  44686. else
  44687. t5 = true;
  44688. if (t5)
  44689. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44690. else if (next === 92)
  44691. t3._contents += H.S(_this.escape$0());
  44692. else if (next === 35)
  44693. if (t1.peekChar$1(1) === 123) {
  44694. t5 = _this.singleInterpolation$0();
  44695. buffer._flushText$0();
  44696. t4.push(t5);
  44697. } else
  44698. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44699. else if (next === 32 || next === 9 || next === 10 || next === 13 || next === 12) {
  44700. _this.whitespaceWithoutComments$0();
  44701. if (t1.peekChar$0() !== 41)
  44702. break;
  44703. } else if (next === 41) {
  44704. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44705. endPosition = t1._string_scanner$_position;
  44706. return buffer.interpolation$1(Y._FileSpan$(t1._sourceFile, start.position, endPosition));
  44707. } else
  44708. break;
  44709. }
  44710. }
  44711. t1.set$state(new S._SpanScannerState(t1, t2));
  44712. return null;
  44713. },
  44714. _tryUrlContents$1: function(start) {
  44715. return this._tryUrlContents$2$name(start, null);
  44716. },
  44717. dynamicUrl$0: function() {
  44718. var contents, _this = this,
  44719. t1 = _this.scanner,
  44720. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  44721. _this.expectIdentifier$1("url");
  44722. contents = _this._tryUrlContents$1(start);
  44723. if (contents != null)
  44724. return new D.StringExpression(contents, false);
  44725. return new F.FunctionExpression(null, X.Interpolation$(["url"], t1.spanFrom$1(start)), _this._argumentInvocation$0(), t1.spanFrom$1(start));
  44726. },
  44727. almostAnyValue$0: function() {
  44728. var t4, next, commentStart, end, t5, contents, _this = this,
  44729. t1 = _this.scanner,
  44730. t2 = t1._string_scanner$_position,
  44731. t3 = new P.StringBuffer(""),
  44732. buffer = new Z.InterpolationBuffer(t3, []);
  44733. $label0$1:
  44734. for (t4 = t1.string; true;) {
  44735. next = t1.peekChar$0();
  44736. switch (next) {
  44737. case 92:
  44738. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44739. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44740. break;
  44741. case 34:
  44742. case 39:
  44743. buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
  44744. break;
  44745. case 47:
  44746. commentStart = t1._string_scanner$_position;
  44747. if (_this.scanComment$0()) {
  44748. end = t1._string_scanner$_position;
  44749. t3._contents += J.substring$2$s(t4, commentStart, end);
  44750. } else
  44751. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44752. break;
  44753. case 35:
  44754. if (t1.peekChar$1(1) === 123)
  44755. buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  44756. else
  44757. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44758. break;
  44759. case 13:
  44760. case 10:
  44761. case 12:
  44762. if (_this.get$indented())
  44763. break $label0$1;
  44764. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44765. break;
  44766. case 33:
  44767. case 59:
  44768. case 123:
  44769. case 125:
  44770. break $label0$1;
  44771. case 117:
  44772. case 85:
  44773. t5 = t1._string_scanner$_position;
  44774. if (!_this.scanIdentifier$1("url")) {
  44775. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44776. break;
  44777. }
  44778. contents = _this._tryUrlContents$1(new S._SpanScannerState(t1, t5));
  44779. if (contents == null) {
  44780. if (t5 < 0 || t5 > t4.length)
  44781. H.throwExpression(P.ArgumentError$("Invalid position " + t5));
  44782. t1._string_scanner$_position = t5;
  44783. t1._lastMatch = null;
  44784. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44785. } else
  44786. buffer.addInterpolation$1(contents);
  44787. break;
  44788. default:
  44789. if (next == null)
  44790. break $label0$1;
  44791. if (_this.lookingAtIdentifier$0())
  44792. t3._contents += _this.identifier$0();
  44793. else
  44794. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44795. break;
  44796. }
  44797. }
  44798. return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  44799. },
  44800. _interpolatedDeclarationValue$1$allowEmpty: function(allowEmpty) {
  44801. var t4, wroteNewline, next, t5, start, end, contents, _this = this,
  44802. t1 = _this.scanner,
  44803. t2 = t1._string_scanner$_position,
  44804. t3 = new P.StringBuffer(""),
  44805. buffer = new Z.InterpolationBuffer(t3, []),
  44806. brackets = H.setRuntimeTypeInfo([], type$.JSArray_int);
  44807. $label0$1:
  44808. for (t4 = t1.string, wroteNewline = false; true;) {
  44809. next = t1.peekChar$0();
  44810. switch (next) {
  44811. case 92:
  44812. t3._contents += H.S(_this.escape$1$identifierStart(true));
  44813. wroteNewline = false;
  44814. break;
  44815. case 34:
  44816. case 39:
  44817. buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
  44818. wroteNewline = false;
  44819. break;
  44820. case 47:
  44821. if (t1.peekChar$1(1) === 42) {
  44822. t5 = _this.get$loudComment();
  44823. start = t1._string_scanner$_position;
  44824. t5.call$0();
  44825. end = t1._string_scanner$_position;
  44826. t3._contents += J.substring$2$s(t4, start, end);
  44827. } else
  44828. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44829. wroteNewline = false;
  44830. break;
  44831. case 35:
  44832. if (t1.peekChar$1(1) === 123)
  44833. buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  44834. else
  44835. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44836. wroteNewline = false;
  44837. break;
  44838. case 32:
  44839. case 9:
  44840. if (!wroteNewline) {
  44841. t5 = t1.peekChar$1(1);
  44842. t5 = !(t5 === 32 || t5 === 9 || t5 === 10 || t5 === 13 || t5 === 12);
  44843. } else
  44844. t5 = true;
  44845. if (t5)
  44846. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44847. else
  44848. t1.readChar$0();
  44849. break;
  44850. case 10:
  44851. case 13:
  44852. case 12:
  44853. if (_this.get$indented())
  44854. break $label0$1;
  44855. t5 = t1.peekChar$1(-1);
  44856. if (!(t5 === 10 || t5 === 13 || t5 === 12))
  44857. t3._contents += "\n";
  44858. t1.readChar$0();
  44859. wroteNewline = true;
  44860. break;
  44861. case 40:
  44862. case 123:
  44863. case 91:
  44864. t3._contents += H.Primitives_stringFromCharCode(next);
  44865. brackets.push(T.opposite(t1.readChar$0()));
  44866. wroteNewline = false;
  44867. break;
  44868. case 41:
  44869. case 125:
  44870. case 93:
  44871. if (brackets.length === 0)
  44872. break $label0$1;
  44873. t3._contents += H.Primitives_stringFromCharCode(next);
  44874. t1.expectChar$1(brackets.pop());
  44875. wroteNewline = false;
  44876. break;
  44877. case 59:
  44878. if (brackets.length === 0)
  44879. break $label0$1;
  44880. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44881. break;
  44882. case 117:
  44883. case 85:
  44884. t5 = t1._string_scanner$_position;
  44885. if (!_this.scanIdentifier$1("url")) {
  44886. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44887. wroteNewline = false;
  44888. break;
  44889. }
  44890. contents = _this._tryUrlContents$1(new S._SpanScannerState(t1, t5));
  44891. if (contents == null) {
  44892. if (t5 < 0 || t5 > t4.length)
  44893. H.throwExpression(P.ArgumentError$("Invalid position " + t5));
  44894. t1._string_scanner$_position = t5;
  44895. t1._lastMatch = null;
  44896. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44897. } else
  44898. buffer.addInterpolation$1(contents);
  44899. wroteNewline = false;
  44900. break;
  44901. default:
  44902. if (next == null)
  44903. break $label0$1;
  44904. if (_this.lookingAtIdentifier$0())
  44905. t3._contents += _this.identifier$0();
  44906. else
  44907. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44908. wroteNewline = false;
  44909. break;
  44910. }
  44911. }
  44912. if (brackets.length !== 0)
  44913. t1.expectChar$1(C.JSArray_methods.get$last(brackets));
  44914. if (!allowEmpty && buffer._interpolation_buffer$_contents.length === 0 && t3._contents.length === 0)
  44915. t1.error$1("Expected token.");
  44916. return new D.StringExpression(buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2))), false);
  44917. },
  44918. _interpolatedDeclarationValue$0: function() {
  44919. return this._interpolatedDeclarationValue$1$allowEmpty(false);
  44920. },
  44921. interpolatedIdentifier$0: function() {
  44922. var first, _this = this,
  44923. _s20_ = "Expected identifier.",
  44924. t1 = _this.scanner,
  44925. start = new S._SpanScannerState(t1, t1._string_scanner$_position),
  44926. t2 = new P.StringBuffer(""),
  44927. t3 = [],
  44928. buffer = new Z.InterpolationBuffer(t2, t3);
  44929. if (t1.scanChar$1(45)) {
  44930. t2._contents += H.Primitives_stringFromCharCode(45);
  44931. if (t1.scanChar$1(45)) {
  44932. t2._contents += H.Primitives_stringFromCharCode(45);
  44933. _this._interpolatedIdentifierBody$1(buffer);
  44934. return buffer.interpolation$1(t1.spanFrom$1(start));
  44935. }
  44936. }
  44937. first = t1.peekChar$0();
  44938. if (first == null)
  44939. t1.error$1(_s20_);
  44940. else if (first === 95 || T.isAlphabetic0(first) || first >= 128)
  44941. t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44942. else if (first === 92)
  44943. t2._contents += H.S(_this.escape$1$identifierStart(true));
  44944. else if (first === 35 && t1.peekChar$1(1) === 123) {
  44945. t2 = _this.singleInterpolation$0();
  44946. buffer._flushText$0();
  44947. t3.push(t2);
  44948. } else
  44949. t1.error$1(_s20_);
  44950. _this._interpolatedIdentifierBody$1(buffer);
  44951. return buffer.interpolation$1(t1.spanFrom$1(start));
  44952. },
  44953. _interpolatedIdentifierBody$1: function(buffer) {
  44954. var t1, t2, t3, next, t4;
  44955. for (t1 = buffer._interpolation_buffer$_contents, t2 = this.scanner, t3 = buffer._interpolation_buffer$_text; true;) {
  44956. next = t2.peekChar$0();
  44957. if (next == null)
  44958. break;
  44959. else {
  44960. if (next !== 95)
  44961. if (next !== 45) {
  44962. if (!(next >= 97 && next <= 122))
  44963. t4 = next >= 65 && next <= 90;
  44964. else
  44965. t4 = true;
  44966. if (!t4)
  44967. t4 = next >= 48 && next <= 57;
  44968. else
  44969. t4 = true;
  44970. t4 = t4 || next >= 128;
  44971. } else
  44972. t4 = true;
  44973. else
  44974. t4 = true;
  44975. if (t4)
  44976. t3._contents += H.Primitives_stringFromCharCode(t2.readChar$0());
  44977. else if (next === 92)
  44978. t3._contents += H.S(this.escape$0());
  44979. else if (next === 35 && t2.peekChar$1(1) === 123) {
  44980. t4 = this.singleInterpolation$0();
  44981. buffer._flushText$0();
  44982. t1.push(t4);
  44983. } else
  44984. break;
  44985. }
  44986. }
  44987. },
  44988. singleInterpolation$0: function() {
  44989. var contents, _this = this,
  44990. t1 = _this.scanner,
  44991. t2 = t1._string_scanner$_position;
  44992. t1.expect$1("#{");
  44993. _this.whitespace$0();
  44994. contents = _this.expression$0();
  44995. t1.expectChar$1(125);
  44996. if (_this.get$plainCss())
  44997. _this.error$2("Interpolation isn't allowed in plain CSS.", t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  44998. return contents;
  44999. },
  45000. _mediaQueryList$0: function() {
  45001. var t1 = this.scanner,
  45002. t2 = t1._string_scanner$_position,
  45003. t3 = new P.StringBuffer(""),
  45004. buffer = new Z.InterpolationBuffer(t3, []);
  45005. for (; true;) {
  45006. this.whitespace$0();
  45007. this._stylesheet$_mediaQuery$1(buffer);
  45008. if (!t1.scanChar$1(44))
  45009. break;
  45010. t3._contents += H.Primitives_stringFromCharCode(44);
  45011. t3._contents += H.Primitives_stringFromCharCode(32);
  45012. }
  45013. return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  45014. },
  45015. _stylesheet$_mediaQuery$1: function(buffer) {
  45016. var t1, identifier, _this = this;
  45017. if (_this.scanner.peekChar$0() !== 40) {
  45018. buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  45019. _this.whitespace$0();
  45020. if (!_this._lookingAtInterpolatedIdentifier$0())
  45021. return;
  45022. t1 = buffer._interpolation_buffer$_text;
  45023. t1._contents += H.Primitives_stringFromCharCode(32);
  45024. identifier = _this.interpolatedIdentifier$0();
  45025. _this.whitespace$0();
  45026. if (B.equalsIgnoreCase(identifier.get$asPlain(), "and"))
  45027. t1._contents += " and ";
  45028. else {
  45029. buffer.addInterpolation$1(identifier);
  45030. if (_this.scanIdentifier$1("and")) {
  45031. _this.whitespace$0();
  45032. t1._contents += " and ";
  45033. } else
  45034. return;
  45035. }
  45036. }
  45037. for (t1 = buffer._interpolation_buffer$_text; true;) {
  45038. _this.whitespace$0();
  45039. buffer.addInterpolation$1(_this._mediaFeature$0());
  45040. _this.whitespace$0();
  45041. if (!_this.scanIdentifier$1("and"))
  45042. break;
  45043. t1._contents += " and ";
  45044. }
  45045. },
  45046. _mediaFeature$0: function() {
  45047. var interpolation, t2, t3, t4, buffer, t5, next, isAngle, _this = this,
  45048. t1 = _this.scanner;
  45049. if (t1.peekChar$0() === 35) {
  45050. interpolation = _this.singleInterpolation$0();
  45051. return X.Interpolation$([interpolation], interpolation.get$span());
  45052. }
  45053. t2 = t1._string_scanner$_position;
  45054. t3 = new P.StringBuffer("");
  45055. t4 = [];
  45056. buffer = new Z.InterpolationBuffer(t3, t4);
  45057. t1.expectChar$1(40);
  45058. t3._contents += H.Primitives_stringFromCharCode(40);
  45059. _this.whitespace$0();
  45060. t5 = _this._expressionUntilComparison$0();
  45061. buffer._flushText$0();
  45062. t4.push(t5);
  45063. if (t1.scanChar$1(58)) {
  45064. _this.whitespace$0();
  45065. t3._contents += H.Primitives_stringFromCharCode(58);
  45066. t3._contents += H.Primitives_stringFromCharCode(32);
  45067. t5 = _this.expression$0();
  45068. buffer._flushText$0();
  45069. t4.push(t5);
  45070. } else {
  45071. next = t1.peekChar$0();
  45072. isAngle = next === 60 || next === 62;
  45073. if (isAngle || next === 61) {
  45074. t3._contents += H.Primitives_stringFromCharCode(32);
  45075. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  45076. if (isAngle && t1.scanChar$1(61))
  45077. t3._contents += H.Primitives_stringFromCharCode(61);
  45078. t3._contents += H.Primitives_stringFromCharCode(32);
  45079. _this.whitespace$0();
  45080. t5 = _this._expressionUntilComparison$0();
  45081. buffer._flushText$0();
  45082. t4.push(t5);
  45083. if (isAngle && t1.scanChar$1(next)) {
  45084. t3._contents += H.Primitives_stringFromCharCode(32);
  45085. t3._contents += H.Primitives_stringFromCharCode(next);
  45086. if (t1.scanChar$1(61))
  45087. t3._contents += H.Primitives_stringFromCharCode(61);
  45088. t3._contents += H.Primitives_stringFromCharCode(32);
  45089. _this.whitespace$0();
  45090. t5 = _this._expressionUntilComparison$0();
  45091. buffer._flushText$0();
  45092. t4.push(t5);
  45093. }
  45094. }
  45095. }
  45096. t1.expectChar$1(41);
  45097. _this.whitespace$0();
  45098. t3._contents += H.Primitives_stringFromCharCode(41);
  45099. return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  45100. },
  45101. _expressionUntilComparison$0: function() {
  45102. return this.expression$1$until(new V.StylesheetParser__expressionUntilComparison_closure(this));
  45103. },
  45104. _supportsCondition$0: function() {
  45105. var condition, operator, right, endPosition, lowerOperator, _this = this,
  45106. t1 = _this.scanner,
  45107. t2 = t1._string_scanner$_position,
  45108. first = t1.peekChar$0();
  45109. if (first !== 40 && first !== 35) {
  45110. t2 = t1._string_scanner$_position;
  45111. _this.expectIdentifier$1("not");
  45112. _this.whitespace$0();
  45113. return new M.SupportsNegation(_this._supportsConditionInParens$0(), t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  45114. }
  45115. condition = _this._supportsConditionInParens$0();
  45116. _this.whitespace$0();
  45117. for (; _this.lookingAtIdentifier$0();) {
  45118. if (_this.scanIdentifier$1("or"))
  45119. operator = "or";
  45120. else {
  45121. _this.expectIdentifier$1("and");
  45122. operator = "and";
  45123. }
  45124. _this.whitespace$0();
  45125. right = _this._supportsConditionInParens$0();
  45126. endPosition = t1._string_scanner$_position;
  45127. condition = new U.SupportsOperation(condition, right, operator, Y._FileSpan$(t1._sourceFile, t2, endPosition));
  45128. lowerOperator = operator.toLowerCase();
  45129. if (lowerOperator !== "and" && lowerOperator !== "or")
  45130. H.throwExpression(P.ArgumentError$value(operator, "operator", 'may only be "and" or "or".'));
  45131. _this.whitespace$0();
  45132. }
  45133. return condition;
  45134. },
  45135. _supportsConditionInParens$0: function() {
  45136. var next, condition, negation, $name, value, _this = this,
  45137. t1 = _this.scanner,
  45138. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  45139. if (t1.peekChar$0() === 35)
  45140. return new X.SupportsInterpolation(_this.singleInterpolation$0(), t1.spanFrom$1(start));
  45141. t1.expectChar$1(40);
  45142. _this.whitespace$0();
  45143. next = t1.peekChar$0();
  45144. if (next === 40 || next === 35) {
  45145. condition = _this._supportsCondition$0();
  45146. _this.whitespace$0();
  45147. t1.expectChar$1(41);
  45148. return condition;
  45149. }
  45150. if (next === 110 || next === 78) {
  45151. negation = _this._trySupportsNegation$0();
  45152. if (negation != null) {
  45153. t1.expectChar$1(41);
  45154. return negation;
  45155. }
  45156. }
  45157. $name = _this.expression$0();
  45158. t1.expectChar$1(58);
  45159. _this.whitespace$0();
  45160. value = _this.expression$0();
  45161. t1.expectChar$1(41);
  45162. return new L.SupportsDeclaration($name, value, t1.spanFrom$1(start));
  45163. },
  45164. _trySupportsNegation$0: function() {
  45165. var next, _this = this,
  45166. t1 = _this.scanner,
  45167. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  45168. if (!_this.scanIdentifier$1("not") || t1._string_scanner$_position === t1.string.length) {
  45169. t1.set$state(start);
  45170. return null;
  45171. }
  45172. next = t1.peekChar$0();
  45173. if (!(next === 32 || next === 9 || T.isNewline(next)) && next !== 40) {
  45174. t1.set$state(start);
  45175. return null;
  45176. }
  45177. _this.whitespace$0();
  45178. return new M.SupportsNegation(_this._supportsConditionInParens$0(), t1.spanFrom$1(start));
  45179. },
  45180. _lookingAtInterpolatedIdentifier$0: function() {
  45181. var second,
  45182. t1 = this.scanner,
  45183. first = t1.peekChar$0();
  45184. if (first == null)
  45185. return false;
  45186. if (first === 95 || T.isAlphabetic0(first) || first >= 128 || first === 92)
  45187. return true;
  45188. if (first === 35)
  45189. return t1.peekChar$1(1) === 123;
  45190. if (first !== 45)
  45191. return false;
  45192. second = t1.peekChar$1(1);
  45193. if (second == null)
  45194. return false;
  45195. if (second === 35)
  45196. return t1.peekChar$1(2) === 123;
  45197. return second === 95 || T.isAlphabetic0(second) || second >= 128 || second === 92 || second === 45;
  45198. },
  45199. _lookingAtInterpolatedIdentifierBody$0: function() {
  45200. var t1 = this.scanner,
  45201. first = t1.peekChar$0();
  45202. if (first == null)
  45203. return false;
  45204. if (first === 95 || T.isAlphabetic0(first) || first >= 128 || T.isDigit(first) || first === 45 || first === 92)
  45205. return true;
  45206. return first === 35 && t1.peekChar$1(1) === 123;
  45207. },
  45208. _lookingAtExpression$0: function() {
  45209. var next,
  45210. t1 = this.scanner,
  45211. character = t1.peekChar$0();
  45212. if (character == null)
  45213. return false;
  45214. if (character === 46)
  45215. return t1.peekChar$1(1) !== 46;
  45216. if (character === 33) {
  45217. next = t1.peekChar$1(1);
  45218. if (next != null)
  45219. if ((next | 32) !== 105)
  45220. t1 = next === 32 || next === 9 || T.isNewline(next);
  45221. else
  45222. t1 = true;
  45223. else
  45224. t1 = true;
  45225. return t1;
  45226. }
  45227. if (character !== 40)
  45228. if (character !== 47)
  45229. if (character !== 91)
  45230. if (character !== 39)
  45231. if (character !== 34)
  45232. if (character !== 35)
  45233. if (character !== 43)
  45234. if (character !== 45)
  45235. if (character !== 92)
  45236. if (character !== 36)
  45237. if (character !== 38)
  45238. t1 = character === 95 || T.isAlphabetic0(character) || character >= 128 || T.isDigit(character);
  45239. else
  45240. t1 = true;
  45241. else
  45242. t1 = true;
  45243. else
  45244. t1 = true;
  45245. else
  45246. t1 = true;
  45247. else
  45248. t1 = true;
  45249. else
  45250. t1 = true;
  45251. else
  45252. t1 = true;
  45253. else
  45254. t1 = true;
  45255. else
  45256. t1 = true;
  45257. else
  45258. t1 = true;
  45259. else
  45260. t1 = true;
  45261. return t1;
  45262. },
  45263. _withChildren$1$3: function(child, start, create) {
  45264. var result = create.call$2(this.children$1(child), this.scanner.spanFrom$1(start));
  45265. this.whitespaceWithoutComments$0();
  45266. return result;
  45267. },
  45268. _withChildren$3: function(child, start, create) {
  45269. return this._withChildren$1$3(child, start, create, type$.dynamic);
  45270. },
  45271. _urlString$0: function() {
  45272. var innerError, t2, exception,
  45273. t1 = this.scanner,
  45274. start = new S._SpanScannerState(t1, t1._string_scanner$_position),
  45275. url = this.string$0();
  45276. try {
  45277. t2 = P.Uri_parse(url);
  45278. return t2;
  45279. } catch (exception) {
  45280. t2 = H.unwrapException(exception);
  45281. if (type$.FormatException._is(t2)) {
  45282. innerError = t2;
  45283. this.error$2("Invalid URL: " + H.S(J.get$message$x(innerError)), t1.spanFrom$1(start));
  45284. } else
  45285. throw exception;
  45286. }
  45287. },
  45288. _publicIdentifier$0: function() {
  45289. var _this = this,
  45290. t1 = _this.scanner,
  45291. t2 = t1._string_scanner$_position,
  45292. result = _this.identifier$1$normalize(true);
  45293. _this._assertPublic$2(result, new V.StylesheetParser__publicIdentifier_closure(_this, new S._SpanScannerState(t1, t2)));
  45294. return result;
  45295. },
  45296. _assertPublic$2: function(identifier, span) {
  45297. if (!T.isPrivate(identifier))
  45298. return;
  45299. this.error$2("Private members can't be accessed from outside their modules.", span.call$0());
  45300. },
  45301. get$plainCss: function() {
  45302. return false;
  45303. }
  45304. };
  45305. V.StylesheetParser_parse_closure.prototype = {
  45306. call$0: function() {
  45307. var statements, t4,
  45308. t1 = this.$this,
  45309. t2 = t1.scanner,
  45310. t3 = t2._string_scanner$_position;
  45311. t2.scanChar$1(65279);
  45312. statements = t1.statements$1(new V.StylesheetParser_parse__closure(t1));
  45313. t2.expectDone$0();
  45314. t4 = t1._globalVariables.get$values();
  45315. C.JSArray_methods.addAll$1(statements, H.MappedIterable_MappedIterable(t4, new V.StylesheetParser_parse__closure0(), H._instanceType(t4)._eval$1("Iterable.E"), type$.Statement));
  45316. return V.Stylesheet$(statements, t2.spanFrom$1(new S._SpanScannerState(t2, t3)), t1.get$plainCss());
  45317. },
  45318. $signature: 37
  45319. };
  45320. V.StylesheetParser_parse__closure.prototype = {
  45321. call$0: function() {
  45322. return this.$this._statement$1$root(true);
  45323. },
  45324. $signature: 35
  45325. };
  45326. V.StylesheetParser_parse__closure0.prototype = {
  45327. call$1: function(declaration) {
  45328. return Z.VariableDeclaration$(declaration.name, new O.NullExpression(declaration.expression.get$span()), declaration.span, null, false, true, null);
  45329. }
  45330. };
  45331. V.StylesheetParser_parseArgumentDeclaration_closure.prototype = {
  45332. call$0: function() {
  45333. var $arguments,
  45334. t1 = this.$this,
  45335. t2 = t1.scanner;
  45336. t2.expectChar$2$name(64, "@-rule");
  45337. t1.identifier$0();
  45338. t1.whitespace$0();
  45339. t1.identifier$0();
  45340. $arguments = t1._argumentDeclaration$0();
  45341. t1.whitespace$0();
  45342. t2.expectChar$1(123);
  45343. return $arguments;
  45344. },
  45345. $signature: 104
  45346. };
  45347. V.StylesheetParser_parseVariableDeclaration_closure.prototype = {
  45348. call$0: function() {
  45349. var t1 = this.$this;
  45350. return t1.lookingAtIdentifier$0() ? t1._variableDeclarationWithNamespace$0() : t1.variableDeclarationWithoutNamespace$0();
  45351. },
  45352. $signature: 69
  45353. };
  45354. V.StylesheetParser_parseUseRule_closure.prototype = {
  45355. call$0: function() {
  45356. var t1 = this.$this,
  45357. t2 = t1.scanner,
  45358. t3 = t2._string_scanner$_position;
  45359. t2.expectChar$2$name(64, "@-rule");
  45360. t1.expectIdentifier$1("use");
  45361. t1.whitespace$0();
  45362. return t1._useRule$1(new S._SpanScannerState(t2, t3));
  45363. },
  45364. $signature: 127
  45365. };
  45366. V.StylesheetParser__parseSingleProduction_closure.prototype = {
  45367. call$0: function() {
  45368. var result = this.production.call$0();
  45369. this.$this.scanner.expectDone$0();
  45370. return result;
  45371. },
  45372. $signature: function() {
  45373. return this.T._eval$1("0()");
  45374. }
  45375. };
  45376. V.StylesheetParser__statement_closure.prototype = {
  45377. call$0: function() {
  45378. return this.$this._statement$0();
  45379. },
  45380. $signature: 35
  45381. };
  45382. V.StylesheetParser_variableDeclarationWithoutNamespace_closure.prototype = {
  45383. call$0: function() {
  45384. return this.$this.scanner.spanFrom$1(this._box_0.start);
  45385. },
  45386. $signature: 24
  45387. };
  45388. V.StylesheetParser_variableDeclarationWithoutNamespace_closure0.prototype = {
  45389. call$0: function() {
  45390. return this.declaration;
  45391. },
  45392. $signature: 69
  45393. };
  45394. V.StylesheetParser__declarationOrBuffer_closure.prototype = {
  45395. call$2: function(children, span) {
  45396. return L.Declaration$(this.name, span, children, null);
  45397. }
  45398. };
  45399. V.StylesheetParser__declarationOrBuffer_closure0.prototype = {
  45400. call$2: function(children, span) {
  45401. return L.Declaration$(this.name, span, children, this._box_0.value);
  45402. }
  45403. };
  45404. V.StylesheetParser__styleRule_closure.prototype = {
  45405. call$2: function(children, span) {
  45406. var t2, t3, t4, _this = this,
  45407. t1 = _this.$this;
  45408. if (t1.get$indented() && children.length === 0)
  45409. t1.logger.warn$2$span("This selector doesn't have any properties and won't be rendered.", _this._box_0.interpolation.span);
  45410. t1._inStyleRule = _this.wasInStyleRule;
  45411. t2 = _this._box_0;
  45412. t3 = t2.interpolation;
  45413. t2 = t1.scanner.spanFrom$1(t2.start);
  45414. t1 = P.List_List$unmodifiable(children, type$.Statement);
  45415. t4 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
  45416. return new X.StyleRule(t3, t2, t1, t4);
  45417. }
  45418. };
  45419. V.StylesheetParser__propertyOrVariableDeclaration_closure.prototype = {
  45420. call$2: function(children, span) {
  45421. return L.Declaration$(this._box_0.name, span, children, null);
  45422. }
  45423. };
  45424. V.StylesheetParser__propertyOrVariableDeclaration_closure0.prototype = {
  45425. call$2: function(children, span) {
  45426. return L.Declaration$(this._box_0.name, span, children, this.value);
  45427. }
  45428. };
  45429. V.StylesheetParser__atRootRule_closure.prototype = {
  45430. call$2: function(children, span) {
  45431. var t1 = P.List_List$unmodifiable(children, type$.Statement),
  45432. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
  45433. return new V.AtRootRule(this.query, span, t1, t2);
  45434. }
  45435. };
  45436. V.StylesheetParser__atRootRule_closure0.prototype = {
  45437. call$2: function(children, span) {
  45438. var t1 = P.List_List$unmodifiable(children, type$.Statement),
  45439. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
  45440. return new V.AtRootRule(null, span, t1, t2);
  45441. }
  45442. };
  45443. V.StylesheetParser__eachRule_closure.prototype = {
  45444. call$2: function(children, span) {
  45445. var t1, t2, t3, _this = this;
  45446. _this.$this._inControlDirective = _this.wasInControlDirective;
  45447. t1 = P.List_List$unmodifiable(_this.variables, type$.String);
  45448. t2 = P.List_List$unmodifiable(children, type$.Statement);
  45449. t3 = C.JSArray_methods.any$1(t2, new M.ParentStatement_closure());
  45450. return new V.EachRule(t1, _this.list, span, t2, t3);
  45451. }
  45452. };
  45453. V.StylesheetParser__functionRule_closure.prototype = {
  45454. call$2: function(children, span) {
  45455. var t1 = P.List_List$unmodifiable(children, type$.Statement),
  45456. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
  45457. return new M.FunctionRule(this.name, this.$arguments, span, t1, t2);
  45458. }
  45459. };
  45460. V.StylesheetParser__forRule_closure.prototype = {
  45461. call$0: function() {
  45462. var t1 = this.$this;
  45463. if (!t1.lookingAtIdentifier$0())
  45464. return false;
  45465. if (t1.scanIdentifier$1("to"))
  45466. return this._box_0.exclusive = true;
  45467. else if (t1.scanIdentifier$1("through")) {
  45468. this._box_0.exclusive = false;
  45469. return true;
  45470. } else
  45471. return false;
  45472. },
  45473. $signature: 25
  45474. };
  45475. V.StylesheetParser__forRule_closure0.prototype = {
  45476. call$2: function(children, span) {
  45477. var t1, t2, t3, _this = this;
  45478. _this.$this._inControlDirective = _this.wasInControlDirective;
  45479. t1 = _this._box_0.exclusive;
  45480. t2 = P.List_List$unmodifiable(children, type$.Statement);
  45481. t3 = C.JSArray_methods.any$1(t2, new M.ParentStatement_closure());
  45482. return new B.ForRule(_this.variable, _this.from, _this.to, t1, span, t2, t3);
  45483. }
  45484. };
  45485. V.StylesheetParser__memberList_closure.prototype = {
  45486. call$0: function() {
  45487. var t1 = this.$this;
  45488. if (t1.scanner.peekChar$0() === 36)
  45489. this.variables.add$1(0, t1.variableName$0());
  45490. else
  45491. this.identifiers.add$1(0, t1.identifier$1$normalize(true));
  45492. },
  45493. $signature: 0
  45494. };
  45495. V.StylesheetParser__includeRule_closure.prototype = {
  45496. call$2: function(children, span) {
  45497. var t1 = this._box_0.contentArguments,
  45498. t2 = P.List_List$unmodifiable(children, type$.Statement),
  45499. t3 = C.JSArray_methods.any$1(t2, new M.ParentStatement_closure());
  45500. return new Y.ContentBlock(null, t1, span, t2, t3);
  45501. }
  45502. };
  45503. V.StylesheetParser_mediaRule_closure.prototype = {
  45504. call$2: function(children, span) {
  45505. var t1 = P.List_List$unmodifiable(children, type$.Statement),
  45506. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
  45507. return new G.MediaRule(this.query, span, t1, t2);
  45508. }
  45509. };
  45510. V.StylesheetParser__mixinRule_closure.prototype = {
  45511. call$2: function(children, span) {
  45512. var t2,
  45513. t1 = this.$this,
  45514. hadContent = t1._mixinHasContent;
  45515. t1._stylesheet$_inMixin = false;
  45516. t1._mixinHasContent = null;
  45517. t1 = P.List_List$unmodifiable(children, type$.Statement);
  45518. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
  45519. return new T.MixinRule(hadContent, this.name, this.$arguments, span, t1, t2);
  45520. }
  45521. };
  45522. V.StylesheetParser_mozDocumentRule_closure.prototype = {
  45523. call$2: function(children, span) {
  45524. var _this = this;
  45525. if (_this._box_0.needsDeprecationWarning)
  45526. _this.$this.logger.warn$3$deprecation$span("@-moz-document is deprecated and support will be removed from Sass in a future\nrelase. For details, see http://bit.ly/moz-document.\n", true, span);
  45527. return U.AtRule$(_this.name, span, children, _this.value);
  45528. }
  45529. };
  45530. V.StylesheetParser_supportsRule_closure.prototype = {
  45531. call$2: function(children, span) {
  45532. var t1 = P.List_List$unmodifiable(children, type$.Statement),
  45533. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
  45534. return new B.SupportsRule(this.condition, span, t1, t2);
  45535. }
  45536. };
  45537. V.StylesheetParser__whileRule_closure.prototype = {
  45538. call$2: function(children, span) {
  45539. var t1, t2;
  45540. this.$this._inControlDirective = this.wasInControlDirective;
  45541. t1 = P.List_List$unmodifiable(children, type$.Statement);
  45542. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
  45543. return new G.WhileRule(this.condition, span, t1, t2);
  45544. }
  45545. };
  45546. V.StylesheetParser_unknownAtRule_closure.prototype = {
  45547. call$2: function(children, span) {
  45548. return U.AtRule$(this.name, span, children, this._box_0.value);
  45549. }
  45550. };
  45551. V.StylesheetParser_expression_resetState.prototype = {
  45552. call$0: function() {
  45553. var t2,
  45554. t1 = this._box_0;
  45555. t1.operands = t1.operators = t1.spaceExpressions = t1.commaExpressions = null;
  45556. t2 = this.$this;
  45557. t2.scanner.set$state(this.start);
  45558. t1.allowSlash = t2.lookingAtNumber$0();
  45559. t1.singleExpression = t2._singleExpression$0();
  45560. },
  45561. $signature: 1
  45562. };
  45563. V.StylesheetParser_expression_resolveOneOperation.prototype = {
  45564. call$0: function() {
  45565. var t2, t3,
  45566. t1 = this._box_0,
  45567. operator = t1.operators.pop();
  45568. if (operator !== C.BinaryOperator_RTB)
  45569. t1.allowSlash = false;
  45570. t2 = t1.allowSlash && !this.$this._inParentheses;
  45571. t3 = t1.operands;
  45572. if (t2)
  45573. t1.singleExpression = new V.BinaryOperationExpression(C.BinaryOperator_RTB, t3.pop(), t1.singleExpression, true);
  45574. else
  45575. t1.singleExpression = new V.BinaryOperationExpression(operator, t3.pop(), t1.singleExpression, false);
  45576. },
  45577. $signature: 1
  45578. };
  45579. V.StylesheetParser_expression_resolveOperations.prototype = {
  45580. call$0: function() {
  45581. var t2,
  45582. t1 = this._box_0;
  45583. if (t1.operators == null)
  45584. return;
  45585. for (t2 = this.resolveOneOperation; t1.operators.length !== 0;)
  45586. t2.call$0();
  45587. },
  45588. $signature: 1
  45589. };
  45590. V.StylesheetParser_expression_addSingleExpression.prototype = {
  45591. call$2$number: function(expression, number) {
  45592. var t2, _this = this,
  45593. t1 = _this._box_0;
  45594. if (t1.singleExpression != null) {
  45595. t2 = _this.$this;
  45596. if (t2._inParentheses) {
  45597. t2._inParentheses = false;
  45598. if (t1.allowSlash) {
  45599. _this.resetState.call$0();
  45600. return;
  45601. }
  45602. }
  45603. if (t1.spaceExpressions == null)
  45604. t1.spaceExpressions = H.setRuntimeTypeInfo([], type$.JSArray_Expression);
  45605. _this.resolveOperations.call$0();
  45606. t1.spaceExpressions.push(t1.singleExpression);
  45607. t1.allowSlash = number;
  45608. } else if (!number)
  45609. t1.allowSlash = false;
  45610. t1.singleExpression = expression;
  45611. },
  45612. call$1: function(expression) {
  45613. return this.call$2$number(expression, false);
  45614. }
  45615. };
  45616. V.StylesheetParser_expression_addOperator.prototype = {
  45617. call$1: function(operator) {
  45618. var t2, t3, t4, t5, singleExpression,
  45619. t1 = this.$this;
  45620. if (t1.get$plainCss() && operator !== C.BinaryOperator_RTB) {
  45621. t2 = t1.scanner;
  45622. t3 = operator.operator.length;
  45623. t2.error$3$length$position("Operators aren't allowed in plain CSS.", t3, t2._string_scanner$_position - t3);
  45624. }
  45625. t2 = this._box_0;
  45626. t2.allowSlash = t2.allowSlash && operator === C.BinaryOperator_RTB;
  45627. if (t2.operators == null)
  45628. t2.operators = H.setRuntimeTypeInfo([], type$.JSArray_BinaryOperator);
  45629. if (t2.operands == null)
  45630. t2.operands = H.setRuntimeTypeInfo([], type$.JSArray_Expression);
  45631. t3 = this.resolveOneOperation;
  45632. t4 = operator.precedence;
  45633. while (true) {
  45634. t5 = t2.operators;
  45635. if (!(t5.length !== 0 && C.JSArray_methods.get$last(t5).precedence >= t4))
  45636. break;
  45637. t3.call$0();
  45638. }
  45639. t2.operators.push(operator);
  45640. t2.operands.push(t2.singleExpression);
  45641. t1.whitespace$0();
  45642. t2.allowSlash = t2.allowSlash && t1.lookingAtNumber$0();
  45643. singleExpression = t1._singleExpression$0();
  45644. t2.singleExpression = singleExpression;
  45645. t2.allowSlash = t2.allowSlash && singleExpression instanceof T.NumberExpression;
  45646. }
  45647. };
  45648. V.StylesheetParser_expression_resolveSpaceExpressions.prototype = {
  45649. call$0: function() {
  45650. var t1, t2, t3;
  45651. this.resolveOperations.call$0();
  45652. t1 = this._box_0;
  45653. t2 = t1.spaceExpressions;
  45654. if (t2 != null) {
  45655. t2.push(t1.singleExpression);
  45656. t2 = P.List_List$unmodifiable(t1.spaceExpressions, type$.Expression);
  45657. t3 = B.spanForList(t2);
  45658. t1.singleExpression = new D.ListExpression(t2, C.ListSeparator_space, false, t3);
  45659. t1.spaceExpressions = null;
  45660. }
  45661. t2 = t1.singleEqualsOperand;
  45662. if (t2 != null) {
  45663. t1.singleExpression = new V.BinaryOperationExpression(C.BinaryOperator_kjl, t2, t1.singleExpression, false);
  45664. t1.singleEqualsOperand = null;
  45665. }
  45666. },
  45667. $signature: 1
  45668. };
  45669. V.StylesheetParser__expressionUntilComma_closure.prototype = {
  45670. call$0: function() {
  45671. return this.$this.scanner.peekChar$0() === 44;
  45672. },
  45673. $signature: 25
  45674. };
  45675. V.StylesheetParser__unicodeRange_closure.prototype = {
  45676. call$1: function(char) {
  45677. return char != null && T.isHex(char);
  45678. },
  45679. $signature: 16
  45680. };
  45681. V.StylesheetParser__unicodeRange_closure0.prototype = {
  45682. call$1: function(char) {
  45683. return char != null && T.isHex(char);
  45684. },
  45685. $signature: 16
  45686. };
  45687. V.StylesheetParser_identifierLike_closure.prototype = {
  45688. call$0: function() {
  45689. return this.$this.scanner.spanFrom$1(this.start);
  45690. },
  45691. $signature: 24
  45692. };
  45693. V.StylesheetParser__expressionUntilComparison_closure.prototype = {
  45694. call$0: function() {
  45695. var t1 = this.$this.scanner,
  45696. next = t1.peekChar$0();
  45697. if (next === 61)
  45698. return t1.peekChar$1(1) !== 61;
  45699. return next === 60 || next === 62;
  45700. },
  45701. $signature: 25
  45702. };
  45703. V.StylesheetParser__publicIdentifier_closure.prototype = {
  45704. call$0: function() {
  45705. return this.$this.scanner.spanFrom$1(this.start);
  45706. },
  45707. $signature: 24
  45708. };
  45709. M.StylesheetGraph.prototype = {
  45710. modifiedSince$3: function(url, since, baseImporter) {
  45711. var node = this._stylesheet_graph$_add$3(url, baseImporter, null);
  45712. if (node == null)
  45713. return true;
  45714. return new M.StylesheetGraph_modifiedSince_transitiveModificationTime(this).call$1(node)._core$_value > since._core$_value;
  45715. },
  45716. _stylesheet_graph$_add$3: function(url, baseImporter, baseUrl) {
  45717. var t1, t2, _this = this,
  45718. tuple = _this._ignoreErrors$1(new M.StylesheetGraph__add_closure(_this, url, baseImporter, baseUrl));
  45719. if (tuple == null)
  45720. return null;
  45721. t1 = tuple.item1;
  45722. t2 = tuple.item2;
  45723. _this.addCanonical$3(t1, t2, tuple.item3);
  45724. return _this._nodes.$index(0, t2);
  45725. },
  45726. addCanonical$4$recanonicalize: function(importer, canonicalUrl, originalUrl, recanonicalize) {
  45727. var stylesheet, _this = this,
  45728. t1 = _this._nodes;
  45729. if (t1.$index(0, canonicalUrl) != null)
  45730. return C.Set_empty1;
  45731. stylesheet = _this._ignoreErrors$1(new M.StylesheetGraph_addCanonical_closure(_this, importer, canonicalUrl, originalUrl));
  45732. if (stylesheet == null)
  45733. return C.Set_empty1;
  45734. t1.$indexSet(0, canonicalUrl, M.StylesheetNode$_(stylesheet, importer, canonicalUrl, _this._upstreamNodes$3(stylesheet, importer, canonicalUrl)));
  45735. return recanonicalize ? _this._recanonicalizeImports$2(importer, canonicalUrl) : C.Set_empty1;
  45736. },
  45737. addCanonical$3: function(importer, canonicalUrl, originalUrl) {
  45738. return this.addCanonical$4$recanonicalize(importer, canonicalUrl, originalUrl, true);
  45739. },
  45740. _upstreamNodes$3: function(stylesheet, baseImporter, baseUrl) {
  45741. var t4, t5, t6, t7,
  45742. t1 = type$.Uri,
  45743. active = P.LinkedHashSet_LinkedHashSet$_literal([baseUrl], t1),
  45744. t2 = type$.JSArray_Uri,
  45745. t3 = H.setRuntimeTypeInfo([], t2);
  45746. t2 = H.setRuntimeTypeInfo([], t2);
  45747. new F._FindDependenciesVisitor(t3, t2).visitChildren$1(stylesheet);
  45748. t4 = type$.StylesheetNode;
  45749. t5 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t4);
  45750. for (t6 = C.JSArray_methods.get$iterator(t3); t6.moveNext$0();) {
  45751. t7 = t6.get$current(t6);
  45752. t5.$indexSet(0, t7, this._nodeFor$4(t7, baseImporter, baseUrl, active));
  45753. }
  45754. t1 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t4);
  45755. for (t2 = J.get$iterator$ax(new S.Tuple2(t3, t2, type$.Tuple2_of_List_Uri_and_List_Uri).item2); t2.moveNext$0();) {
  45756. t3 = t2.get$current(t2);
  45757. t1.$indexSet(0, t3, this._nodeFor$5$forImport(t3, baseImporter, baseUrl, active, true));
  45758. }
  45759. return new S.Tuple2(t5, t1, type$.Tuple2_of_Map_Uri_StylesheetNode_and_Map_Uri_StylesheetNode);
  45760. },
  45761. reload$1: function(canonicalUrl) {
  45762. var stylesheet, upstream, _this = this,
  45763. node = _this._nodes.$index(0, canonicalUrl);
  45764. if (node == null)
  45765. throw H.wrapException(P.StateError$(H.S(canonicalUrl) + " is not in the dependency graph."));
  45766. _this._transitiveModificationTimes.clear$0(0);
  45767. _this.importCache.clearImport$1(canonicalUrl);
  45768. stylesheet = _this._ignoreErrors$1(new M.StylesheetGraph_reload_closure(_this, node, canonicalUrl));
  45769. if (stylesheet == null)
  45770. return false;
  45771. node._stylesheet_graph$_stylesheet = stylesheet;
  45772. upstream = _this._upstreamNodes$3(stylesheet, node.importer, canonicalUrl);
  45773. node._replaceUpstream$2(upstream.item1, upstream.item2);
  45774. return true;
  45775. },
  45776. _recanonicalizeImports$2: function(importer, canonicalUrl) {
  45777. var t2, t3, t4, t5, newUpstream, newUpstreamImports, _this = this,
  45778. t1 = type$.StylesheetNode,
  45779. changed = P.LinkedHashSet_LinkedHashSet$_empty(t1);
  45780. for (t2 = type$.UnmodifiableMapView_Uri_StylesheetNode, t3 = _this._nodes.get$values(), t3 = t3.get$iterator(t3), t4 = type$.Uri; t3.moveNext$0();) {
  45781. t5 = t3.get$current(t3);
  45782. newUpstream = _this._recanonicalizeImportsForNode$4$forImport(t5, importer, canonicalUrl, false);
  45783. newUpstreamImports = _this._recanonicalizeImportsForNode$4$forImport(t5, importer, canonicalUrl, true);
  45784. if (newUpstream.get$isNotEmpty(newUpstream) || newUpstreamImports.get$isNotEmpty(newUpstreamImports)) {
  45785. changed.add$1(0, t5);
  45786. t5._replaceUpstream$2(Y.mergeMaps(new P.UnmodifiableMapView(t5._upstream, t2), newUpstream, t4, t1), Y.mergeMaps(new P.UnmodifiableMapView(t5._upstreamImports, t2), newUpstreamImports, t4, t1));
  45787. }
  45788. }
  45789. if (changed._collection$_length !== 0)
  45790. _this._transitiveModificationTimes.clear$0(0);
  45791. return changed;
  45792. },
  45793. _recanonicalizeImportsForNode$4$forImport: function(node, importer, canonicalUrl, forImport) {
  45794. var t1 = type$.UnmodifiableMapView_Uri_StylesheetNode,
  45795. map = forImport ? new P.UnmodifiableMapView(node._upstreamImports, t1) : new P.UnmodifiableMapView(node._upstream, t1),
  45796. newMap = P.LinkedHashMap_LinkedHashMap$_empty(type$.Uri, type$.StylesheetNode);
  45797. map._collection$_map.forEach$1(0, new M.StylesheetGraph__recanonicalizeImportsForNode_closure(this, importer, canonicalUrl, node, forImport, newMap));
  45798. return newMap;
  45799. },
  45800. _nodeFor$5$forImport: function(url, baseImporter, baseUrl, active, forImport) {
  45801. var importer, canonicalUrl, resolvedUrl, t1, stylesheet, node, _this = this,
  45802. tuple = _this._ignoreErrors$1(new M.StylesheetGraph__nodeFor_closure(_this, url, baseImporter, baseUrl, forImport));
  45803. if (tuple == null)
  45804. return null;
  45805. importer = tuple.item1;
  45806. canonicalUrl = tuple.item2;
  45807. resolvedUrl = tuple.item3;
  45808. t1 = _this._nodes;
  45809. if (t1.containsKey$1(canonicalUrl))
  45810. return t1.$index(0, canonicalUrl);
  45811. if (active.contains$1(0, canonicalUrl))
  45812. return null;
  45813. stylesheet = _this._ignoreErrors$1(new M.StylesheetGraph__nodeFor_closure0(_this, importer, canonicalUrl, resolvedUrl));
  45814. if (stylesheet == null)
  45815. return null;
  45816. active.add$1(0, canonicalUrl);
  45817. node = M.StylesheetNode$_(stylesheet, importer, canonicalUrl, _this._upstreamNodes$3(stylesheet, importer, canonicalUrl));
  45818. active.remove$1(0, canonicalUrl);
  45819. t1.$indexSet(0, canonicalUrl, node);
  45820. return node;
  45821. },
  45822. _nodeFor$4: function(url, baseImporter, baseUrl, active) {
  45823. return this._nodeFor$5$forImport(url, baseImporter, baseUrl, active, false);
  45824. },
  45825. _ignoreErrors$1$1: function(callback) {
  45826. var t1, exception;
  45827. try {
  45828. t1 = callback.call$0();
  45829. return t1;
  45830. } catch (exception) {
  45831. H.unwrapException(exception);
  45832. return null;
  45833. }
  45834. },
  45835. _ignoreErrors$1: function(callback) {
  45836. return this._ignoreErrors$1$1(callback, type$.dynamic);
  45837. }
  45838. };
  45839. M.StylesheetGraph_modifiedSince_transitiveModificationTime.prototype = {
  45840. call$1: function(node) {
  45841. return this.$this._transitiveModificationTimes.putIfAbsent$2(node.canonicalUrl, new M.StylesheetGraph_modifiedSince_transitiveModificationTime_closure(node, this));
  45842. }
  45843. };
  45844. M.StylesheetGraph_modifiedSince_transitiveModificationTime_closure.prototype = {
  45845. call$0: function() {
  45846. var t2, t3, upstreamTime,
  45847. t1 = this.node,
  45848. latest = t1.importer.modificationTime$1(t1.canonicalUrl);
  45849. for (t1 = t1._upstream.get$values().followedBy$1(0, t1._upstreamImports.get$values()), t1 = new H.FollowedByIterator(J.get$iterator$ax(t1.__internal$_first), t1._second), t2 = this.transitiveModificationTime; t1.moveNext$0();) {
  45850. t3 = t1._currentIterator;
  45851. t3 = t3.get$current(t3);
  45852. upstreamTime = t3 == null ? new P.DateTime(Date.now(), false) : t2.call$1(t3);
  45853. if (upstreamTime._core$_value > latest._core$_value)
  45854. latest = upstreamTime;
  45855. }
  45856. return latest;
  45857. },
  45858. $signature: 92
  45859. };
  45860. M.StylesheetGraph__add_closure.prototype = {
  45861. call$0: function() {
  45862. var _this = this;
  45863. return _this.$this.importCache.canonicalize$3$baseImporter$baseUrl(_this.url, _this.baseImporter, _this.baseUrl);
  45864. },
  45865. $signature: 56
  45866. };
  45867. M.StylesheetGraph_addCanonical_closure.prototype = {
  45868. call$0: function() {
  45869. var _this = this;
  45870. return _this.$this.importCache.importCanonical$3(_this.importer, _this.canonicalUrl, _this.originalUrl);
  45871. },
  45872. $signature: 37
  45873. };
  45874. M.StylesheetGraph_reload_closure.prototype = {
  45875. call$0: function() {
  45876. return this.$this.importCache.importCanonical$2(this.node.importer, this.canonicalUrl);
  45877. },
  45878. $signature: 37
  45879. };
  45880. M.StylesheetGraph__recanonicalizeImportsForNode_closure.prototype = {
  45881. call$2: function(url, upstream) {
  45882. var result, t1, t2, t3, t4, exception, newCanonicalUrl, _this = this;
  45883. if (!_this.importer.couldCanonicalize$2(url, _this.canonicalUrl))
  45884. return;
  45885. t1 = _this.$this;
  45886. t2 = t1.importCache;
  45887. t3 = t2._canonicalizeCache;
  45888. t4 = type$.Tuple2_Uri_bool;
  45889. t3.remove$1(0, new S.Tuple2(url, false, t4));
  45890. t3.remove$1(0, new S.Tuple2(url, true, t4));
  45891. result = null;
  45892. try {
  45893. t3 = _this.node;
  45894. result = t2.canonicalize$4$baseImporter$baseUrl$forImport(url, t3.importer, t3.canonicalUrl, _this.forImport);
  45895. } catch (exception) {
  45896. H.unwrapException(exception);
  45897. }
  45898. t2 = result;
  45899. newCanonicalUrl = t2 == null ? null : t2.item2;
  45900. if (J.$eq$(newCanonicalUrl, upstream == null ? null : upstream.canonicalUrl))
  45901. return;
  45902. t1 = result == null ? null : t1._nodes.$index(0, result.item2);
  45903. _this.newMap.$indexSet(0, url, t1);
  45904. }
  45905. };
  45906. M.StylesheetGraph__nodeFor_closure.prototype = {
  45907. call$0: function() {
  45908. var _this = this;
  45909. return _this.$this.importCache.canonicalize$4$baseImporter$baseUrl$forImport(_this.url, _this.baseImporter, _this.baseUrl, _this.forImport);
  45910. },
  45911. $signature: 56
  45912. };
  45913. M.StylesheetGraph__nodeFor_closure0.prototype = {
  45914. call$0: function() {
  45915. var _this = this;
  45916. return _this.$this.importCache.importCanonical$3(_this.importer, _this.canonicalUrl, _this.resolvedUrl);
  45917. },
  45918. $signature: 37
  45919. };
  45920. M.StylesheetNode.prototype = {
  45921. StylesheetNode$_$4: function(_stylesheet, importer, canonicalUrl, allUpstream) {
  45922. var t1, t2;
  45923. for (t1 = this._upstream.get$values().followedBy$1(0, this._upstreamImports.get$values()), t1 = new H.FollowedByIterator(J.get$iterator$ax(t1.__internal$_first), t1._second); t1.moveNext$0();) {
  45924. t2 = t1._currentIterator;
  45925. t2 = t2.get$current(t2);
  45926. if (t2 != null)
  45927. t2._downstream.add$1(0, this);
  45928. }
  45929. },
  45930. _replaceUpstream$2: function(newUpstream, newUpstreamImports) {
  45931. var t3, _this = this,
  45932. t1 = type$.StylesheetNode,
  45933. t2 = P.LinkedHashSet_LinkedHashSet(t1);
  45934. for (t3 = _this._upstream.get$values(), t3 = t3.get$iterator(t3); t3.moveNext$0();)
  45935. t2.add$1(0, t3.get$current(t3));
  45936. for (t3 = _this._upstreamImports.get$values(), t3 = t3.get$iterator(t3); t3.moveNext$0();)
  45937. t2.add$1(0, t3.get$current(t3));
  45938. t2.remove$1(0, null);
  45939. t1 = P.LinkedHashSet_LinkedHashSet(t1);
  45940. for (t3 = newUpstream.get$values(), t3 = t3.get$iterator(t3); t3.moveNext$0();)
  45941. t1.add$1(0, t3.get$current(t3));
  45942. for (t3 = newUpstreamImports.get$values(), t3 = t3.get$iterator(t3); t3.moveNext$0();)
  45943. t1.add$1(0, t3.get$current(t3));
  45944. t1.remove$1(0, null);
  45945. for (t3 = t2.difference$1(t1), t3 = P._LinkedHashSetIterator$(t3, t3._collection$_modifications); t3.moveNext$0();)
  45946. t3._collection$_current._downstream.remove$1(0, _this);
  45947. for (t1 = t1.difference$1(t2), t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications); t1.moveNext$0();)
  45948. t1._collection$_current._downstream.add$1(0, _this);
  45949. _this._upstream = newUpstream;
  45950. _this._upstreamImports = newUpstreamImports;
  45951. },
  45952. _stylesheet_graph$_remove$0: function() {
  45953. var t2, t3, t4, _i, url, _this = this,
  45954. t1 = P.LinkedHashSet_LinkedHashSet(type$.StylesheetNode);
  45955. for (t2 = _this._upstream.get$values(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  45956. t1.add$1(0, t2.get$current(t2));
  45957. for (t2 = _this._upstreamImports.get$values(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  45958. t1.add$1(0, t2.get$current(t2));
  45959. t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications);
  45960. for (; t1.moveNext$0();) {
  45961. t2 = t1._collection$_current;
  45962. if (t2 == null)
  45963. continue;
  45964. t2._downstream.remove$1(0, _this);
  45965. }
  45966. for (t1 = _this._downstream, t1 = t1.get$iterator(t1); t1.moveNext$0();) {
  45967. t2 = t1.get$current(t1);
  45968. for (t3 = J.toList$0$ax(t2._upstream.get$keys()), t4 = t3.length, _i = 0; _i < t3.length; t3.length === t4 || (0, H.throwConcurrentModificationError)(t3), ++_i) {
  45969. url = t3[_i];
  45970. if (J.$eq$(t2._upstream.$index(0, url), _this)) {
  45971. t2._upstream.$indexSet(0, url, null);
  45972. break;
  45973. }
  45974. }
  45975. for (t3 = J.toList$0$ax(t2._upstreamImports.get$keys()), t4 = t3.length, _i = 0; _i < t3.length; t3.length === t4 || (0, H.throwConcurrentModificationError)(t3), ++_i) {
  45976. url = t3[_i];
  45977. if (J.$eq$(t2._upstreamImports.$index(0, url), _this)) {
  45978. t2._upstreamImports.$indexSet(0, url, null);
  45979. break;
  45980. }
  45981. }
  45982. }
  45983. },
  45984. toString$0: function(_) {
  45985. var t1 = this._stylesheet_graph$_stylesheet.span.file;
  45986. return $.$get$context().prettyUri$1(t1.url);
  45987. }
  45988. };
  45989. M.Syntax.prototype = {
  45990. toString$0: function(_) {
  45991. return this._syntax$_name;
  45992. }
  45993. };
  45994. G.FixedLengthListBuilder.prototype = {
  45995. add$1: function(_, element) {
  45996. var t1, _this = this;
  45997. _this._checkUnbuilt$0();
  45998. t1 = _this._fixed_length_list_builder$_index;
  45999. _this._list[t1] = element;
  46000. _this._fixed_length_list_builder$_index = t1 + 1;
  46001. },
  46002. addAll$1: function(_, elements) {
  46003. var _this = this;
  46004. _this._checkUnbuilt$0();
  46005. C.JSArray_methods.setAll$2(_this._list, _this._fixed_length_list_builder$_index, elements);
  46006. _this._fixed_length_list_builder$_index = _this._fixed_length_list_builder$_index + elements.length;
  46007. },
  46008. addRange$3: function(elements, start, end) {
  46009. var $length, t1, _this = this;
  46010. _this._checkUnbuilt$0();
  46011. $length = (end == null ? J.get$length$asx(elements._collection$_source) : end) - start;
  46012. t1 = _this._fixed_length_list_builder$_index;
  46013. C.JSArray_methods.setRange$4(_this._list, t1, t1 + $length, elements, start);
  46014. _this._fixed_length_list_builder$_index += $length;
  46015. },
  46016. addRange$2: function(elements, start) {
  46017. return this.addRange$3(elements, start, null);
  46018. },
  46019. build$0: function() {
  46020. this._checkUnbuilt$0();
  46021. this._fixed_length_list_builder$_index = -1;
  46022. return this._list;
  46023. },
  46024. _checkUnbuilt$0: function() {
  46025. if (this._fixed_length_list_builder$_index === -1)
  46026. throw H.wrapException(P.StateError$("build() has already been called."));
  46027. }
  46028. };
  46029. K.LimitedMapView.prototype = {
  46030. get$keys: function() {
  46031. return this._limited_map_view$_keys;
  46032. },
  46033. get$length: function(_) {
  46034. return this._limited_map_view$_keys._collection$_length;
  46035. },
  46036. get$isEmpty: function(_) {
  46037. return this._limited_map_view$_keys._collection$_length === 0;
  46038. },
  46039. get$isNotEmpty: function(_) {
  46040. return this._limited_map_view$_keys._collection$_length !== 0;
  46041. },
  46042. $index: function(_, key) {
  46043. return this._limited_map_view$_keys.contains$1(0, key) ? this._limited_map_view$_map.$index(0, key) : null;
  46044. },
  46045. containsKey$1: function(key) {
  46046. return this._limited_map_view$_keys.contains$1(0, key);
  46047. },
  46048. remove$1: function(_, key) {
  46049. return this._limited_map_view$_keys.contains$1(0, key) ? this._limited_map_view$_map.remove$1(0, key) : null;
  46050. }
  46051. };
  46052. Z.MergedMapView.prototype = {
  46053. get$keys: function() {
  46054. return this._mapsByKey.get$keys();
  46055. },
  46056. get$length: function(_) {
  46057. var t1 = this._mapsByKey;
  46058. return t1.get$length(t1);
  46059. },
  46060. get$isEmpty: function(_) {
  46061. var t1 = this._mapsByKey;
  46062. return t1.get$isEmpty(t1);
  46063. },
  46064. get$isNotEmpty: function(_) {
  46065. var t1 = this._mapsByKey;
  46066. return t1.get$isNotEmpty(t1);
  46067. },
  46068. MergedMapView$1: function(maps, $K, $V) {
  46069. var t1, t2, t3, _i, map, t4, t5;
  46070. for (t1 = maps.length, t2 = this._mapsByKey, t3 = $K._eval$1("@<0>")._bind$1($V)._eval$1("MergedMapView<1,2>"), _i = 0; _i < maps.length; maps.length === t1 || (0, H.throwConcurrentModificationError)(maps), ++_i) {
  46071. map = maps[_i];
  46072. if (t3._is(map))
  46073. for (t4 = map._mapsByKey.get$values(), t4 = t4.get$iterator(t4); t4.moveNext$0();) {
  46074. t5 = t4.get$current(t4);
  46075. B.setAll(t2, t5.get$keys(), t5);
  46076. }
  46077. else
  46078. B.setAll(t2, map.get$keys(), map);
  46079. }
  46080. },
  46081. $index: function(_, key) {
  46082. var child = this._mapsByKey.$index(0, key);
  46083. return child == null ? null : child.$index(0, key);
  46084. },
  46085. $indexSet: function(_, key, value) {
  46086. var child = this._mapsByKey.$index(0, key);
  46087. if (child == null)
  46088. throw H.wrapException(P.UnsupportedError$("New entries may not be added to MergedMapView."));
  46089. child.$indexSet(0, key, value);
  46090. },
  46091. remove$1: function(_, key) {
  46092. throw H.wrapException(P.UnsupportedError$("Entries may not be removed from MergedMapView."));
  46093. },
  46094. containsKey$1: function(key) {
  46095. return this._mapsByKey.containsKey$1(key);
  46096. }
  46097. };
  46098. U.MultiDirWatcher.prototype = {
  46099. watch$1: function(_, directory) {
  46100. var t1, t2, t3, t4, isParentOfExistingDir, _i, existingDir, t5, future, completer;
  46101. for (t1 = this._watchers, t2 = t1.get$keys(), t2 = P.List_List$from(t2, true, H._instanceType(t2)._eval$1("Iterable.E")), t3 = t2.length, t4 = this._group, isParentOfExistingDir = false, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i) {
  46102. existingDir = t2[_i];
  46103. if (!isParentOfExistingDir) {
  46104. t5 = $.$get$context();
  46105. t5 = t5._isWithinOrEquals$2(existingDir, directory) === C._PathRelation_equal || t5._isWithinOrEquals$2(existingDir, directory) === C._PathRelation_within;
  46106. } else
  46107. t5 = false;
  46108. if (t5) {
  46109. t1 = new P._Future($.Zone__current, type$._Future_void);
  46110. t1._asyncComplete$1(null);
  46111. return t1;
  46112. }
  46113. if ($.$get$context()._isWithinOrEquals$2(directory, existingDir) === C._PathRelation_within) {
  46114. t4.remove$1(0, t1.remove$1(0, existingDir));
  46115. isParentOfExistingDir = true;
  46116. }
  46117. }
  46118. future = B.watchDir(directory, this._poll);
  46119. t2 = new Y._CompleterStream(type$._CompleterStream_WatchEvent);
  46120. completer = new Y.StreamCompleter(t2, type$.StreamCompleter_WatchEvent);
  46121. future.then$1$2$onError(completer.get$setSourceStream(), completer.get$setError(), type$.void);
  46122. t1.$indexSet(0, directory, t2);
  46123. t4.add$1(0, t2);
  46124. return future;
  46125. }
  46126. };
  46127. N.NoSourceMapBuffer0.prototype = {
  46128. get$length: function(_) {
  46129. return this._no_source_map_buffer0$_buffer._contents.length;
  46130. },
  46131. get$sourceFiles: function() {
  46132. return C.Map_empty;
  46133. },
  46134. forSpan$1$2: function(span, callback) {
  46135. return callback.call$0();
  46136. },
  46137. forSpan$2: function(span, callback) {
  46138. return this.forSpan$1$2(span, callback, type$.dynamic);
  46139. },
  46140. write$1: function(_, object) {
  46141. this._no_source_map_buffer0$_buffer._contents += H.S(object);
  46142. return null;
  46143. },
  46144. writeCharCode$1: function(charCode) {
  46145. this._no_source_map_buffer0$_buffer._contents += H.Primitives_stringFromCharCode(charCode);
  46146. return null;
  46147. },
  46148. toString$0: function(_) {
  46149. var t1 = this._no_source_map_buffer0$_buffer._contents;
  46150. return t1.charCodeAt(0) == 0 ? t1 : t1;
  46151. },
  46152. buildSourceMap$1$prefix: function(prefix) {
  46153. return H.throwExpression(P.UnsupportedError$("NoSourceMapBuffer.buildSourceMap() is not supported."));
  46154. },
  46155. $isStringBuffer: 1
  46156. };
  46157. F.PrefixedMapView.prototype = {
  46158. get$keys: function() {
  46159. return new F._PrefixedKeys(this);
  46160. },
  46161. get$length: function(_) {
  46162. var t1 = this._prefixed_map_view$_map;
  46163. return t1.get$length(t1);
  46164. },
  46165. get$isEmpty: function(_) {
  46166. var t1 = this._prefixed_map_view$_map;
  46167. return t1.get$isEmpty(t1);
  46168. },
  46169. get$isNotEmpty: function(_) {
  46170. var t1 = this._prefixed_map_view$_map;
  46171. return t1.get$isNotEmpty(t1);
  46172. },
  46173. $index: function(_, key) {
  46174. return typeof key == "string" && C.JSString_methods.startsWith$1(key, this._prefix) ? this._prefixed_map_view$_map.$index(0, J.substring$1$s(key, this._prefix.length)) : null;
  46175. },
  46176. containsKey$1: function(key) {
  46177. return typeof key == "string" && C.JSString_methods.startsWith$1(key, this._prefix) && this._prefixed_map_view$_map.containsKey$1(J.substring$1$s(key, this._prefix.length));
  46178. }
  46179. };
  46180. F._PrefixedKeys.prototype = {
  46181. get$length: function(_) {
  46182. var t1 = this._view._prefixed_map_view$_map;
  46183. return t1.get$length(t1);
  46184. },
  46185. get$iterator: function(_) {
  46186. var t1 = J.map$1$1$ax(this._view._prefixed_map_view$_map.get$keys(), new F._PrefixedKeys_iterator_closure(this), type$.String);
  46187. return t1.get$iterator(t1);
  46188. },
  46189. contains$1: function(_, key) {
  46190. return this._view.containsKey$1(key);
  46191. }
  46192. };
  46193. F._PrefixedKeys_iterator_closure.prototype = {
  46194. call$1: function(key) {
  46195. return this.$this._view._prefix + H.S(key);
  46196. }
  46197. };
  46198. U.PublicMemberMapView.prototype = {
  46199. get$keys: function() {
  46200. return J.where$1$ax(this._inner.get$keys(), B.utils__isPublic$closure());
  46201. },
  46202. containsKey$1: function(key) {
  46203. return typeof key == "string" && B.isPublic(key) && this._inner.containsKey$1(key);
  46204. },
  46205. $index: function(_, key) {
  46206. if (typeof key == "string" && B.isPublic(key))
  46207. return this._inner.$index(0, key);
  46208. return null;
  46209. }
  46210. };
  46211. D.SourceMapBuffer0.prototype = {
  46212. get$sourceFiles: function() {
  46213. var t1 = type$.SourceFile;
  46214. return new P.UnmodifiableMapView(Y.mapMap(this._sourceFiles, new D.SourceMapBuffer_sourceFiles_closure(), null, type$.Uri, t1, type$.String, t1), type$.UnmodifiableMapView_String_SourceFile);
  46215. },
  46216. get$_source_map_buffer0$_targetLocation: function() {
  46217. var t1 = this._source_map_buffer0$_buffer._contents,
  46218. t2 = this._source_map_buffer0$_line;
  46219. return V.SourceLocation$(t1.length, this._source_map_buffer0$_column, t2, null);
  46220. },
  46221. get$length: function(_) {
  46222. return this._source_map_buffer0$_buffer._contents.length;
  46223. },
  46224. forSpan$1$2: function(span, callback) {
  46225. var t1, _this = this,
  46226. wasInSpan = _this._source_map_buffer0$_inSpan;
  46227. _this._source_map_buffer0$_inSpan = true;
  46228. _this._addEntry$2(Y.FileLocation$_(span.file, span._file$_start), _this.get$_source_map_buffer0$_targetLocation());
  46229. try {
  46230. t1 = callback.call$0();
  46231. return t1;
  46232. } finally {
  46233. _this._source_map_buffer0$_inSpan = wasInSpan;
  46234. }
  46235. },
  46236. forSpan$2: function(span, callback) {
  46237. return this.forSpan$1$2(span, callback, type$.dynamic);
  46238. },
  46239. _addEntry$2: function(source, target) {
  46240. var entry, t2,
  46241. t1 = this._source_map_buffer0$_entries;
  46242. if (t1.length !== 0) {
  46243. entry = C.JSArray_methods.get$last(t1);
  46244. t2 = entry.source;
  46245. if (t2.file.getLine$1(t2.offset) == source.file.getLine$1(source.offset) && entry.target.line === target.line)
  46246. return;
  46247. if (entry.target.offset === target.offset)
  46248. return;
  46249. }
  46250. this._sourceFiles.putIfAbsent$2(source.file.url, new D.SourceMapBuffer__addEntry_closure(source));
  46251. t1.push(new L.Entry(source, target, null));
  46252. },
  46253. write$1: function(_, object) {
  46254. var t1, i,
  46255. string = J.toString$0$(object);
  46256. this._source_map_buffer0$_buffer._contents += H.S(string);
  46257. for (t1 = string.length, i = 0; i < t1; ++i)
  46258. if (C.JSString_methods._codeUnitAt$1(string, i) === 10)
  46259. this._source_map_buffer0$_writeLine$0();
  46260. else
  46261. ++this._source_map_buffer0$_column;
  46262. },
  46263. writeCharCode$1: function(charCode) {
  46264. this._source_map_buffer0$_buffer._contents += H.Primitives_stringFromCharCode(charCode);
  46265. if (charCode === 10)
  46266. this._source_map_buffer0$_writeLine$0();
  46267. else
  46268. ++this._source_map_buffer0$_column;
  46269. },
  46270. _source_map_buffer0$_writeLine$0: function() {
  46271. var _this = this,
  46272. t1 = _this._source_map_buffer0$_entries;
  46273. if (C.JSArray_methods.get$last(t1).target.line === _this._source_map_buffer0$_line && C.JSArray_methods.get$last(t1).target.column === _this._source_map_buffer0$_column)
  46274. t1.pop();
  46275. ++_this._source_map_buffer0$_line;
  46276. _this._source_map_buffer0$_column = 0;
  46277. if (_this._source_map_buffer0$_inSpan)
  46278. t1.push(new L.Entry(C.JSArray_methods.get$last(t1).source, _this.get$_source_map_buffer0$_targetLocation(), null));
  46279. },
  46280. toString$0: function(_) {
  46281. var t1 = this._source_map_buffer0$_buffer._contents;
  46282. return t1.charCodeAt(0) == 0 ? t1 : t1;
  46283. },
  46284. buildSourceMap$1$prefix: function(prefix) {
  46285. var i, t2, prefixColumn, _box_0 = {},
  46286. t1 = prefix.length;
  46287. if (t1 === 0)
  46288. return T.SingleMapping_SingleMapping$fromEntries(this._source_map_buffer0$_entries);
  46289. _box_0.prefixColumn = _box_0.prefixLines = 0;
  46290. for (i = 0, t2 = 0; i < t1; ++i)
  46291. if (C.JSString_methods._codeUnitAt$1(prefix, i) === 10) {
  46292. ++_box_0.prefixLines;
  46293. _box_0.prefixColumn = 0;
  46294. t2 = 0;
  46295. } else {
  46296. prefixColumn = t2 + 1;
  46297. _box_0.prefixColumn = prefixColumn;
  46298. t2 = prefixColumn;
  46299. }
  46300. t2 = this._source_map_buffer0$_entries;
  46301. return T.SingleMapping_SingleMapping$fromEntries(new H.MappedListIterable(t2, new D.SourceMapBuffer_buildSourceMap_closure(_box_0, t1), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Entry>")));
  46302. },
  46303. $isStringBuffer: 1
  46304. };
  46305. D.SourceMapBuffer_sourceFiles_closure.prototype = {
  46306. call$2: function(url, _) {
  46307. return J.toString$0$(url);
  46308. },
  46309. $signature: 70
  46310. };
  46311. D.SourceMapBuffer__addEntry_closure.prototype = {
  46312. call$0: function() {
  46313. return this.source.file;
  46314. },
  46315. $signature: 47
  46316. };
  46317. D.SourceMapBuffer_buildSourceMap_closure.prototype = {
  46318. call$1: function(entry) {
  46319. var t1 = entry.source,
  46320. t2 = entry.target,
  46321. t3 = t2.line,
  46322. t4 = this._box_0,
  46323. t5 = t4.prefixLines;
  46324. t4 = t3 === 0 ? t4.prefixColumn : 0;
  46325. return new L.Entry(t1, V.SourceLocation$(t2.offset + this.prefixLength, t2.column + t4, t3 + t5, null), entry.identifierName);
  46326. }
  46327. };
  46328. R.UnprefixedMapView.prototype = {
  46329. get$keys: function() {
  46330. return new R._UnprefixedKeys(this);
  46331. },
  46332. $index: function(_, key) {
  46333. return typeof key == "string" ? this._unprefixed_map_view$_map.$index(0, J.$add$ansx(this._unprefixed_map_view$_prefix, key)) : null;
  46334. },
  46335. containsKey$1: function(key) {
  46336. return typeof key == "string" && this._unprefixed_map_view$_map.containsKey$1(J.$add$ansx(this._unprefixed_map_view$_prefix, key));
  46337. },
  46338. remove$1: function(_, key) {
  46339. return typeof key == "string" ? this._unprefixed_map_view$_map.remove$1(0, J.$add$ansx(this._unprefixed_map_view$_prefix, key)) : null;
  46340. }
  46341. };
  46342. R._UnprefixedKeys.prototype = {
  46343. get$iterator: function(_) {
  46344. var t1 = J.where$1$ax(this._unprefixed_map_view$_view._unprefixed_map_view$_map.get$keys(), new R._UnprefixedKeys_iterator_closure(this)).map$1$1(0, new R._UnprefixedKeys_iterator_closure0(this), type$.String);
  46345. return t1.get$iterator(t1);
  46346. },
  46347. contains$1: function(_, key) {
  46348. return this._unprefixed_map_view$_view.containsKey$1(key);
  46349. }
  46350. };
  46351. R._UnprefixedKeys_iterator_closure.prototype = {
  46352. call$1: function(key) {
  46353. return J.startsWith$1$s(key, this.$this._unprefixed_map_view$_view._unprefixed_map_view$_prefix);
  46354. }
  46355. };
  46356. R._UnprefixedKeys_iterator_closure0.prototype = {
  46357. call$1: function(key) {
  46358. return J.substring$1$s(key, this.$this._unprefixed_map_view$_view._unprefixed_map_view$_prefix.length);
  46359. }
  46360. };
  46361. B.indent_closure.prototype = {
  46362. call$1: function(line) {
  46363. return C.JSString_methods.$add(C.JSString_methods.$mul(" ", this.indentation), line);
  46364. }
  46365. };
  46366. B.flattenVertically_closure.prototype = {
  46367. call$1: function(inner) {
  46368. return Q.QueueList_QueueList$from(inner, this.T);
  46369. }
  46370. };
  46371. B.flattenVertically_closure0.prototype = {
  46372. call$1: function(queue) {
  46373. this.result.push(queue.removeFirst$0());
  46374. return queue.get$length(queue) === 0;
  46375. }
  46376. };
  46377. B.longestCommonSubsequence_closure.prototype = {
  46378. call$2: function(element1, element2) {
  46379. return J.$eq$(element1, element2) ? element1 : null;
  46380. },
  46381. $signature: function() {
  46382. return this.T._eval$1("0(0,0)");
  46383. }
  46384. };
  46385. B.longestCommonSubsequence_closure0.prototype = {
  46386. call$1: function(_) {
  46387. return P.List_List$filled(J.get$length$asx(this.list2) + 1, 0, type$.int);
  46388. },
  46389. $signature: 72
  46390. };
  46391. B.longestCommonSubsequence_closure1.prototype = {
  46392. call$1: function(_) {
  46393. var t1 = new Array(J.get$length$asx(this.list2));
  46394. t1.fixed$length = Array;
  46395. return H.setRuntimeTypeInfo(t1, this.T._eval$1("JSArray<0>"));
  46396. },
  46397. $signature: function() {
  46398. return this.T._eval$1("List<0>(int)");
  46399. }
  46400. };
  46401. B.longestCommonSubsequence_backtrack.prototype = {
  46402. call$2: function(i, j) {
  46403. var selection, t1, _this = this;
  46404. if (i === -1 || j === -1)
  46405. return H.setRuntimeTypeInfo([], _this.T._eval$1("JSArray<0>"));
  46406. selection = J.$index$asx(_this.selections[i], j);
  46407. if (selection != null) {
  46408. t1 = _this.call$2(i - 1, j - 1);
  46409. J.add$1$ax(t1, selection);
  46410. return t1;
  46411. }
  46412. t1 = _this.lengths;
  46413. return J.$index$asx(t1[i + 1], j) > J.$index$asx(t1[i], j + 1) ? _this.call$2(i, j - 1) : _this.call$2(i - 1, j);
  46414. }
  46415. };
  46416. B.mapAddAll2_closure.prototype = {
  46417. call$2: function(key, inner) {
  46418. var t1 = this.destination;
  46419. if (t1.containsKey$1(key))
  46420. t1.$index(0, key).addAll$1(0, inner);
  46421. else
  46422. t1.$indexSet(0, key, inner);
  46423. }
  46424. };
  46425. B.mapMapAsync_closure.prototype = {
  46426. call$2: function(mapKey, _) {
  46427. return this.$call$body$mapMapAsync_closure(mapKey, _, this.K2);
  46428. },
  46429. $call$body$mapMapAsync_closure: function(mapKey, _, $async$type) {
  46430. var $async$goto = 0,
  46431. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  46432. $async$returnValue, $async$self = this;
  46433. var $async$call$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  46434. if ($async$errorCode === 1)
  46435. return P._asyncRethrow($async$result, $async$completer);
  46436. while (true)
  46437. switch ($async$goto) {
  46438. case 0:
  46439. // Function start
  46440. $async$returnValue = $async$self.K2._as(mapKey);
  46441. // goto return
  46442. $async$goto = 1;
  46443. break;
  46444. case 1:
  46445. // return
  46446. return P._asyncReturn($async$returnValue, $async$completer);
  46447. }
  46448. });
  46449. return P._asyncStartSync($async$call$2, $async$completer);
  46450. },
  46451. $signature: function() {
  46452. return this.K2._eval$1("@<0>")._bind$1(this.K1)._bind$1(this.V1)._eval$1("Future<1>(2,3)");
  46453. }
  46454. };
  46455. B.copyMapOfMap_closure.prototype = {
  46456. call$2: function(_, innerMap) {
  46457. return P.LinkedHashMap_LinkedHashMap$of(innerMap, this.K2, this.V);
  46458. }
  46459. };
  46460. B.copyMapOfList_closure.prototype = {
  46461. call$2: function(_, list) {
  46462. return J.toList$0$ax(list);
  46463. }
  46464. };
  46465. F.Value.prototype = {
  46466. get$isTruthy: function() {
  46467. return true;
  46468. },
  46469. get$separator: function() {
  46470. return C.ListSeparator_undecided;
  46471. },
  46472. get$hasBrackets: function() {
  46473. return false;
  46474. },
  46475. get$asList: function() {
  46476. return H.setRuntimeTypeInfo([this], type$.JSArray_Value);
  46477. },
  46478. get$lengthAsList: function() {
  46479. return 1;
  46480. },
  46481. get$isBlank: function() {
  46482. return false;
  46483. },
  46484. get$isSpecialNumber: function() {
  46485. return false;
  46486. },
  46487. get$isVar: function() {
  46488. return false;
  46489. },
  46490. get$realNull: function() {
  46491. return this;
  46492. },
  46493. sassIndexToListIndex$2: function(sassIndex, $name) {
  46494. var _this = this,
  46495. index = sassIndex.assertNumber$1($name).assertInt$1($name);
  46496. if (index === 0)
  46497. throw H.wrapException(_this._value$_exception$2("List index may not be 0.", $name));
  46498. if (Math.abs(index) > _this.get$lengthAsList())
  46499. throw H.wrapException(_this._value$_exception$2("Invalid index " + sassIndex.toString$0(0) + " for a list with " + _this.get$lengthAsList() + " elements.", $name));
  46500. return index < 0 ? _this.get$lengthAsList() + index : index - 1;
  46501. },
  46502. assertColor$1: function($name) {
  46503. return H.throwExpression(this._value$_exception$2(this.toString$0(0) + " is not a color.", $name));
  46504. },
  46505. assertFunction$1: function($name) {
  46506. return H.throwExpression(this._value$_exception$2(this.toString$0(0) + " is not a function reference.", $name));
  46507. },
  46508. assertMap$1: function($name) {
  46509. return H.throwExpression(this._value$_exception$2(this.toString$0(0) + " is not a map.", $name));
  46510. },
  46511. assertNumber$1: function($name) {
  46512. return H.throwExpression(this._value$_exception$2(this.toString$0(0) + " is not a number.", $name));
  46513. },
  46514. assertNumber$0: function() {
  46515. return this.assertNumber$1(null);
  46516. },
  46517. assertString$1: function($name) {
  46518. return H.throwExpression(this._value$_exception$2(this.toString$0(0) + " is not a string.", $name));
  46519. },
  46520. assertSelector$2$allowParent$name: function(allowParent, $name) {
  46521. var error, t1, exception,
  46522. string = this._selectorString$1($name);
  46523. try {
  46524. t1 = D.SelectorList_SelectorList$parse(string, allowParent, true, null);
  46525. return t1;
  46526. } catch (exception) {
  46527. t1 = H.unwrapException(exception);
  46528. if (t1 instanceof E.SassFormatException) {
  46529. error = t1;
  46530. throw H.wrapException(this._value$_exception$2(C.JSString_methods.replaceFirst$2(J.toString$0$(error), "Error: ", ""), $name));
  46531. } else
  46532. throw exception;
  46533. }
  46534. },
  46535. assertSelector$1$name: function($name) {
  46536. return this.assertSelector$2$allowParent$name(false, $name);
  46537. },
  46538. assertSelector$0: function() {
  46539. return this.assertSelector$2$allowParent$name(false, null);
  46540. },
  46541. assertSelector$1$allowParent: function(allowParent) {
  46542. return this.assertSelector$2$allowParent$name(allowParent, null);
  46543. },
  46544. assertCompoundSelector$1$name: function($name) {
  46545. var error, t1, exception,
  46546. allowParent = false,
  46547. string = this._selectorString$1($name);
  46548. try {
  46549. t1 = S.SpanScanner$(string, null);
  46550. t1 = new T.SelectorParser(allowParent, true, t1, C.StderrLogger_false).parseCompoundSelector$0();
  46551. return t1;
  46552. } catch (exception) {
  46553. t1 = H.unwrapException(exception);
  46554. if (t1 instanceof E.SassFormatException) {
  46555. error = t1;
  46556. throw H.wrapException(this._value$_exception$2(C.JSString_methods.replaceFirst$2(J.toString$0$(error), "Error: ", ""), $name));
  46557. } else
  46558. throw exception;
  46559. }
  46560. },
  46561. _selectorString$1: function($name) {
  46562. var string = this._selectorStringOrNull$0();
  46563. if (string != null)
  46564. return string;
  46565. throw H.wrapException(this._value$_exception$2(this.toString$0(0) + " is not a valid selector: it must be a string,\na list of strings, or a list of lists of strings.", $name));
  46566. },
  46567. _selectorString$0: function() {
  46568. return this._selectorString$1(null);
  46569. },
  46570. _selectorStringOrNull$0: function() {
  46571. var t1, t2, result, t3, _i, complex, string, compound, _this = this, _null = null;
  46572. if (_this instanceof D.SassString)
  46573. return _this.text;
  46574. if (!(_this instanceof D.SassList))
  46575. return _null;
  46576. t1 = _this._list$_contents;
  46577. t2 = t1.length;
  46578. if (t2 === 0)
  46579. return _null;
  46580. result = H.setRuntimeTypeInfo([], type$.JSArray_String);
  46581. t3 = _this.separator === C.ListSeparator_comma;
  46582. if (t3)
  46583. for (_i = 0; _i < t2; ++_i) {
  46584. complex = t1[_i];
  46585. if (complex instanceof D.SassString)
  46586. result.push(complex.text);
  46587. else if (complex instanceof D.SassList && complex.separator === C.ListSeparator_space) {
  46588. string = complex._selectorString$0();
  46589. result.push(string);
  46590. } else
  46591. return _null;
  46592. }
  46593. else
  46594. for (_i = 0; _i < t2; ++_i) {
  46595. compound = t1[_i];
  46596. if (compound instanceof D.SassString)
  46597. result.push(compound.text);
  46598. else
  46599. return _null;
  46600. }
  46601. return C.JSArray_methods.join$1(result, t3 ? ", " : " ");
  46602. },
  46603. changeListContents$2$separator: function(contents, separator) {
  46604. var t1 = separator == null ? this.get$separator() : separator,
  46605. t2 = this.get$hasBrackets();
  46606. return D.SassList$(contents, t1, t2);
  46607. },
  46608. changeListContents$1: function(contents) {
  46609. return this.changeListContents$2$separator(contents, null);
  46610. },
  46611. greaterThan$1: function(other) {
  46612. return H.throwExpression(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " > " + H.S(other) + '".'));
  46613. },
  46614. greaterThanOrEquals$1: function(other) {
  46615. return H.throwExpression(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " >= " + H.S(other) + '".'));
  46616. },
  46617. lessThan$1: function(other) {
  46618. return H.throwExpression(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " < " + H.S(other) + '".'));
  46619. },
  46620. lessThanOrEquals$1: function(other) {
  46621. return H.throwExpression(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " <= " + H.S(other) + '".'));
  46622. },
  46623. times$1: function(other) {
  46624. return H.throwExpression(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " * " + H.S(other) + '".'));
  46625. },
  46626. modulo$1: function(other) {
  46627. return H.throwExpression(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " % " + H.S(other) + '".'));
  46628. },
  46629. plus$1: function(other) {
  46630. var t1;
  46631. if (other instanceof D.SassString)
  46632. return new D.SassString(C.JSString_methods.$add(N.serializeValue0(this, false, true), other.text), other.hasQuotes);
  46633. else {
  46634. t1 = N.serializeValue0(this, false, true);
  46635. other.toString;
  46636. return new D.SassString(t1 + N.serializeValue0(other, false, true), false);
  46637. }
  46638. },
  46639. minus$1: function(other) {
  46640. var t1 = N.serializeValue0(this, false, true) + "-";
  46641. other.toString;
  46642. return new D.SassString(t1 + N.serializeValue0(other, false, true), false);
  46643. },
  46644. dividedBy$1: function(other) {
  46645. var t1 = N.serializeValue0(this, false, true) + "/";
  46646. other.toString;
  46647. return new D.SassString(t1 + N.serializeValue0(other, false, true), false);
  46648. },
  46649. unaryPlus$0: function() {
  46650. return new D.SassString("+" + N.serializeValue0(this, false, true), false);
  46651. },
  46652. unaryMinus$0: function() {
  46653. return new D.SassString("-" + N.serializeValue0(this, false, true), false);
  46654. },
  46655. unaryNot$0: function() {
  46656. return C.SassBoolean_false0;
  46657. },
  46658. withoutSlash$0: function() {
  46659. return this;
  46660. },
  46661. toString$0: function(_) {
  46662. return N.serializeValue0(this, true, true);
  46663. },
  46664. _value$_exception$2: function(message, $name) {
  46665. return new E.SassScriptException($name == null ? message : "$" + $name + ": " + message);
  46666. }
  46667. };
  46668. D.SassArgumentList.prototype = {};
  46669. Z.SassBoolean.prototype = {
  46670. get$isTruthy: function() {
  46671. return this.value;
  46672. },
  46673. accept$1$1: function(visitor) {
  46674. return visitor._serialize$_buffer.write$1(0, String(this.value));
  46675. },
  46676. accept$1: function(visitor) {
  46677. return this.accept$1$1(visitor, type$.dynamic);
  46678. },
  46679. unaryNot$0: function() {
  46680. return this.value ? C.SassBoolean_false0 : C.SassBoolean_true0;
  46681. }
  46682. };
  46683. K.SassColor.prototype = {
  46684. get$red: function() {
  46685. if (this._red == null)
  46686. this._hslToRgb$0();
  46687. return this._red;
  46688. },
  46689. get$green: function() {
  46690. if (this._green == null)
  46691. this._hslToRgb$0();
  46692. return this._green;
  46693. },
  46694. get$blue: function() {
  46695. if (this._blue == null)
  46696. this._hslToRgb$0();
  46697. return this._blue;
  46698. },
  46699. get$hue: function() {
  46700. if (this._hue == null)
  46701. this._rgbToHsl$0();
  46702. return this._hue;
  46703. },
  46704. get$saturation: function() {
  46705. if (this._saturation == null)
  46706. this._rgbToHsl$0();
  46707. return this._saturation;
  46708. },
  46709. get$lightness: function() {
  46710. if (this._lightness == null)
  46711. this._rgbToHsl$0();
  46712. return this._lightness;
  46713. },
  46714. get$original: function() {
  46715. var t1 = this.originalSpan;
  46716. return t1 == null ? null : P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, null);
  46717. },
  46718. accept$1$1: function(visitor) {
  46719. return visitor.visitColor$1(this);
  46720. },
  46721. accept$1: function(visitor) {
  46722. return this.accept$1$1(visitor, type$.dynamic);
  46723. },
  46724. assertColor$1: function($name) {
  46725. return this;
  46726. },
  46727. changeRgb$4$alpha$blue$green$red: function(alpha, blue, green, red) {
  46728. var _this = this,
  46729. t1 = red == null ? _this.get$red() : red,
  46730. t2 = green == null ? _this.get$green() : green,
  46731. t3 = blue == null ? _this.get$blue() : blue;
  46732. return K.SassColor$rgb(t1, t2, t3, alpha == null ? _this.alpha : alpha, null);
  46733. },
  46734. changeRgb$3$blue$green$red: function(blue, green, red) {
  46735. return this.changeRgb$4$alpha$blue$green$red(null, blue, green, red);
  46736. },
  46737. changeHsl$4$alpha$hue$lightness$saturation: function(alpha, hue, lightness, saturation) {
  46738. var _this = this,
  46739. t1 = hue == null ? _this.get$hue() : hue,
  46740. t2 = saturation == null ? _this.get$saturation() : saturation,
  46741. t3 = lightness == null ? _this.get$lightness() : lightness;
  46742. return K.SassColor$hsl(t1, t2, t3, alpha == null ? _this.alpha : alpha);
  46743. },
  46744. changeHsl$3$alpha$lightness$saturation: function(alpha, lightness, saturation) {
  46745. return this.changeHsl$4$alpha$hue$lightness$saturation(alpha, null, lightness, saturation);
  46746. },
  46747. changeHsl$1$saturation: function(saturation) {
  46748. return this.changeHsl$4$alpha$hue$lightness$saturation(null, null, null, saturation);
  46749. },
  46750. changeHsl$1$lightness: function(lightness) {
  46751. return this.changeHsl$4$alpha$hue$lightness$saturation(null, null, lightness, null);
  46752. },
  46753. changeHsl$1$hue: function(hue) {
  46754. return this.changeHsl$4$alpha$hue$lightness$saturation(null, hue, null, null);
  46755. },
  46756. changeAlpha$1: function(alpha) {
  46757. var _this = this;
  46758. return new K.SassColor(_this._red, _this._green, _this._blue, _this._hue, _this._saturation, _this._lightness, T.fuzzyAssertRange(alpha, 0, 1, "alpha"), null);
  46759. },
  46760. plus$1: function(other) {
  46761. if (!(other instanceof T.SassNumber) && !(other instanceof K.SassColor))
  46762. return this.super$Value$plus(other);
  46763. throw H.wrapException(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " + " + H.S(other) + '".'));
  46764. },
  46765. minus$1: function(other) {
  46766. if (!(other instanceof T.SassNumber) && !(other instanceof K.SassColor))
  46767. return this.super$Value$minus(other);
  46768. throw H.wrapException(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " - " + H.S(other) + '".'));
  46769. },
  46770. dividedBy$1: function(other) {
  46771. if (!(other instanceof T.SassNumber) && !(other instanceof K.SassColor))
  46772. return this.super$Value$dividedBy(other);
  46773. throw H.wrapException(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " / " + H.S(other) + '".'));
  46774. },
  46775. modulo$1: function(other) {
  46776. return H.throwExpression(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " % " + H.S(other) + '".'));
  46777. },
  46778. $eq: function(_, other) {
  46779. var _this = this;
  46780. if (other == null)
  46781. return false;
  46782. return other instanceof K.SassColor && other.get$red() == _this.get$red() && other.get$green() == _this.get$green() && other.get$blue() == _this.get$blue() && other.alpha === _this.alpha;
  46783. },
  46784. get$hashCode: function(_) {
  46785. var _this = this;
  46786. return J.get$hashCode$(_this.get$red()) ^ J.get$hashCode$(_this.get$green()) ^ J.get$hashCode$(_this.get$blue()) ^ C.JSNumber_methods.get$hashCode(_this.alpha);
  46787. },
  46788. _rgbToHsl$0: function() {
  46789. var t2, t3, _this = this,
  46790. scaledRed = _this.get$red() / 255,
  46791. scaledGreen = _this.get$green() / 255,
  46792. scaledBlue = _this.get$blue() / 255,
  46793. max = Math.max(Math.max(scaledRed, scaledGreen), scaledBlue),
  46794. min = Math.min(Math.min(scaledRed, scaledGreen), scaledBlue),
  46795. delta = max - min,
  46796. t1 = max === min;
  46797. if (t1)
  46798. _this._hue = 0;
  46799. else if (max === scaledRed)
  46800. _this._hue = C.JSDouble_methods.$mod(60 * (scaledGreen - scaledBlue) / delta, 360);
  46801. else if (max === scaledGreen)
  46802. _this._hue = C.JSNumber_methods.$mod(120 + 60 * (scaledBlue - scaledRed) / delta, 360);
  46803. else if (max === scaledBlue)
  46804. _this._hue = C.JSNumber_methods.$mod(240 + 60 * (scaledRed - scaledGreen) / delta, 360);
  46805. t2 = max + min;
  46806. t3 = 50 * t2;
  46807. _this._lightness = t3;
  46808. if (t1)
  46809. _this._saturation = 0;
  46810. else {
  46811. t1 = 100 * delta;
  46812. if (t3 < 50)
  46813. _this._saturation = t1 / t2;
  46814. else
  46815. _this._saturation = t1 / (2 - max - min);
  46816. }
  46817. },
  46818. _hslToRgb$0: function() {
  46819. var _this = this,
  46820. scaledHue = _this.get$hue() / 360,
  46821. scaledSaturation = _this.get$saturation() / 100,
  46822. scaledLightness = _this.get$lightness() / 100,
  46823. m2 = scaledLightness <= 0.5 ? scaledLightness * (scaledSaturation + 1) : scaledLightness + scaledSaturation - scaledLightness * scaledSaturation,
  46824. m1 = scaledLightness * 2 - m2;
  46825. _this._red = _this._hueToRgb$3(m1, m2, scaledHue + 0.3333333333333333);
  46826. _this._green = _this._hueToRgb$3(m1, m2, scaledHue);
  46827. _this._blue = _this._hueToRgb$3(m1, m2, scaledHue - 0.3333333333333333);
  46828. },
  46829. _hueToRgb$3: function(m1, m2, hue) {
  46830. var result;
  46831. if (hue < 0)
  46832. ++hue;
  46833. if (hue > 1)
  46834. --hue;
  46835. if (hue < 0.16666666666666666)
  46836. result = m1 + (m2 - m1) * hue * 6;
  46837. else if (hue < 0.5)
  46838. result = m2;
  46839. else
  46840. result = hue < 0.6666666666666666 ? m1 + (m2 - m1) * (0.6666666666666666 - hue) * 6 : m1;
  46841. return T.fuzzyRound(result * 255);
  46842. }
  46843. };
  46844. F.SassFunction.prototype = {
  46845. accept$1$1: function(visitor) {
  46846. var t1;
  46847. if (!visitor._serialize$_inspect)
  46848. H.throwExpression(E.SassScriptException$(this.toString$0(0) + " isn't a valid CSS value."));
  46849. t1 = visitor._serialize$_buffer;
  46850. t1.write$1(0, "get-function(");
  46851. visitor._visitQuotedString$1(this.callable.get$name());
  46852. t1.writeCharCode$1(41);
  46853. return null;
  46854. },
  46855. accept$1: function(visitor) {
  46856. return this.accept$1$1(visitor, type$.dynamic);
  46857. },
  46858. assertFunction$1: function($name) {
  46859. return this;
  46860. },
  46861. $eq: function(_, other) {
  46862. if (other == null)
  46863. return false;
  46864. return other instanceof F.SassFunction && J.$eq$(this.callable, other.callable);
  46865. },
  46866. get$hashCode: function(_) {
  46867. return J.get$hashCode$(this.callable);
  46868. }
  46869. };
  46870. D.SassList.prototype = {
  46871. get$isBlank: function() {
  46872. return C.JSArray_methods.every$1(this._list$_contents, new D.SassList_isBlank_closure());
  46873. },
  46874. get$asList: function() {
  46875. return this._list$_contents;
  46876. },
  46877. get$lengthAsList: function() {
  46878. return this._list$_contents.length;
  46879. },
  46880. SassList$3$brackets: function(contents, separator, brackets) {
  46881. if (this.separator === C.ListSeparator_undecided && this._list$_contents.length > 1)
  46882. throw H.wrapException(P.ArgumentError$("A list with more than one element must have an explicit separator."));
  46883. },
  46884. accept$1$1: function(visitor) {
  46885. return visitor.visitList$1(this);
  46886. },
  46887. accept$1: function(visitor) {
  46888. return this.accept$1$1(visitor, type$.dynamic);
  46889. },
  46890. assertMap$1: function($name) {
  46891. return this._list$_contents.length === 0 ? C.SassMap_Map_empty : this.super$Value$assertMap($name);
  46892. },
  46893. $eq: function(_, other) {
  46894. var t1, _this = this;
  46895. if (other == null)
  46896. return false;
  46897. if (!(other instanceof D.SassList && other.separator === _this.separator && other.hasBrackets === _this.hasBrackets && C.C_ListEquality.equals$2(other._list$_contents, _this._list$_contents)))
  46898. t1 = _this._list$_contents.length === 0 && other instanceof A.SassMap && other.get$asList().length === 0;
  46899. else
  46900. t1 = true;
  46901. return t1;
  46902. },
  46903. get$hashCode: function(_) {
  46904. return C.C_ListEquality.hash$1(this._list$_contents);
  46905. },
  46906. get$separator: function() {
  46907. return this.separator;
  46908. },
  46909. get$hasBrackets: function() {
  46910. return this.hasBrackets;
  46911. }
  46912. };
  46913. D.SassList_isBlank_closure.prototype = {
  46914. call$1: function(element) {
  46915. return element.get$isBlank();
  46916. }
  46917. };
  46918. D.ListSeparator.prototype = {
  46919. toString$0: function(_) {
  46920. return this._list$_name;
  46921. }
  46922. };
  46923. A.SassMap.prototype = {
  46924. get$separator: function() {
  46925. var t1 = this.contents;
  46926. return t1.get$isEmpty(t1) ? C.ListSeparator_undecided : C.ListSeparator_comma;
  46927. },
  46928. get$asList: function() {
  46929. var result = H.setRuntimeTypeInfo([], type$.JSArray_Value);
  46930. this.contents.forEach$1(0, new A.SassMap_asList_closure(result));
  46931. return result;
  46932. },
  46933. get$lengthAsList: function() {
  46934. var t1 = this.contents;
  46935. return t1.get$length(t1);
  46936. },
  46937. accept$1$1: function(visitor) {
  46938. return visitor.visitMap$1(this);
  46939. },
  46940. accept$1: function(visitor) {
  46941. return this.accept$1$1(visitor, type$.dynamic);
  46942. },
  46943. assertMap$1: function($name) {
  46944. return this;
  46945. },
  46946. $eq: function(_, other) {
  46947. var t1;
  46948. if (other == null)
  46949. return false;
  46950. if (!(other instanceof A.SassMap && C.C_MapEquality.equals$2(other.contents, this.contents))) {
  46951. t1 = this.contents;
  46952. t1 = t1.get$isEmpty(t1) && other instanceof D.SassList && other._list$_contents.length === 0;
  46953. } else
  46954. t1 = true;
  46955. return t1;
  46956. },
  46957. get$hashCode: function(_) {
  46958. var t1 = this.contents;
  46959. return t1.get$isEmpty(t1) ? C.C_ListEquality.hash$1(C.List_empty5) : C.C_MapEquality.hash$1(t1);
  46960. }
  46961. };
  46962. A.SassMap_asList_closure.prototype = {
  46963. call$2: function(key, value) {
  46964. this.result.push(D.SassList$(H.setRuntimeTypeInfo([key, value], type$.JSArray_Value), C.ListSeparator_space, false));
  46965. }
  46966. };
  46967. O.SassNull.prototype = {
  46968. get$isTruthy: function() {
  46969. return false;
  46970. },
  46971. get$isBlank: function() {
  46972. return true;
  46973. },
  46974. get$realNull: function() {
  46975. return null;
  46976. },
  46977. accept$1$1: function(visitor) {
  46978. if (visitor._serialize$_inspect)
  46979. visitor._serialize$_buffer.write$1(0, "null");
  46980. return null;
  46981. },
  46982. accept$1: function(visitor) {
  46983. return this.accept$1$1(visitor, type$.dynamic);
  46984. },
  46985. unaryNot$0: function() {
  46986. return C.SassBoolean_true0;
  46987. }
  46988. };
  46989. T.SassNumber.prototype = {
  46990. get$unitString: function() {
  46991. var _this = this,
  46992. t1 = _this.numeratorUnits;
  46993. return t1.length !== 0 || _this.denominatorUnits.length !== 0 ? _this._unitString$2(t1, _this.denominatorUnits) : "";
  46994. },
  46995. accept$1$1: function(visitor) {
  46996. return visitor.visitNumber$1(this);
  46997. },
  46998. accept$1: function(visitor) {
  46999. return this.accept$1$1(visitor, type$.dynamic);
  47000. },
  47001. withoutSlash$0: function() {
  47002. var _this = this;
  47003. if (_this.asSlash == null)
  47004. return _this;
  47005. return new T.SassNumber(_this.value, _this.numeratorUnits, _this.denominatorUnits, null);
  47006. },
  47007. withSlash$2: function(numerator, denominator) {
  47008. return new T.SassNumber(this.value, this.numeratorUnits, this.denominatorUnits, new S.Tuple2(numerator, denominator, type$.Tuple2_SassNumber_SassNumber));
  47009. },
  47010. assertNumber$1: function($name) {
  47011. return this;
  47012. },
  47013. assertNumber$0: function() {
  47014. return this.assertNumber$1(null);
  47015. },
  47016. assertInt$1: function($name) {
  47017. var t1 = this.value,
  47018. integer = T.fuzzyIsInt(t1) ? J.round$0$n(t1) : null;
  47019. if (integer != null)
  47020. return integer;
  47021. throw H.wrapException(this._number$_exception$2(this.toString$0(0) + " is not an int.", $name));
  47022. },
  47023. assertInt$0: function() {
  47024. return this.assertInt$1(null);
  47025. },
  47026. valueInRange$3: function(min, max, $name) {
  47027. var _this = this,
  47028. result = T.fuzzyCheckRange(_this.value, min, max);
  47029. if (result != null)
  47030. return result;
  47031. throw H.wrapException(_this._number$_exception$2("Expected " + _this.toString$0(0) + " to be within " + min + _this.get$unitString() + " and " + max + _this.get$unitString() + ".", $name));
  47032. },
  47033. hasUnit$1: function(unit) {
  47034. var t1 = this.numeratorUnits;
  47035. return t1.length === 1 && this.denominatorUnits.length === 0 && J.$eq$(C.JSArray_methods.get$first(t1), unit);
  47036. },
  47037. assertUnit$2: function(unit, $name) {
  47038. if (this.hasUnit$1(unit))
  47039. return;
  47040. throw H.wrapException(this._number$_exception$2("Expected " + this.toString$0(0) + ' to have unit "' + unit + '".', $name));
  47041. },
  47042. assertNoUnits$1: function($name) {
  47043. var _this = this;
  47044. if (!(_this.numeratorUnits.length !== 0 || _this.denominatorUnits.length !== 0))
  47045. return;
  47046. throw H.wrapException(_this._number$_exception$2("Expected " + _this.toString$0(0) + " to have no units.", $name));
  47047. },
  47048. valueInUnits$2: function(newNumerators, newDenominators) {
  47049. var t1, oldNumerators, t2, _i, oldDenominators, t3, _this = this, _box_0 = {};
  47050. if (!(newNumerators.length === 0 && newDenominators.length === 0)) {
  47051. t1 = _this.numeratorUnits;
  47052. if (!(t1.length === 0 && _this.denominatorUnits.length === 0))
  47053. t1 = C.C_ListEquality.equals$2(t1, newNumerators) && C.C_ListEquality.equals$2(_this.denominatorUnits, newDenominators);
  47054. else
  47055. t1 = true;
  47056. } else
  47057. t1 = true;
  47058. if (t1)
  47059. return _this.value;
  47060. _box_0.value = _this.value;
  47061. t1 = _this.numeratorUnits;
  47062. oldNumerators = H.setRuntimeTypeInfo(t1.slice(0), H._arrayInstanceType(t1)._eval$1("JSArray<1>"));
  47063. for (t2 = newNumerators.length, _i = 0; _i < newNumerators.length; newNumerators.length === t2 || (0, H.throwConcurrentModificationError)(newNumerators), ++_i)
  47064. B.removeFirstWhere(oldNumerators, new T.SassNumber_valueInUnits_closure(_box_0, _this, newNumerators[_i]), new T.SassNumber_valueInUnits_closure0(_this, newNumerators, newDenominators));
  47065. t2 = _this.denominatorUnits;
  47066. oldDenominators = H.setRuntimeTypeInfo(t2.slice(0), H._arrayInstanceType(t2)._eval$1("JSArray<1>"));
  47067. for (t3 = newDenominators.length, _i = 0; _i < newDenominators.length; newDenominators.length === t3 || (0, H.throwConcurrentModificationError)(newDenominators), ++_i)
  47068. B.removeFirstWhere(oldDenominators, new T.SassNumber_valueInUnits_closure1(_box_0, _this, newDenominators[_i]), new T.SassNumber_valueInUnits_closure2(_this, newNumerators, newDenominators));
  47069. if (oldNumerators.length !== 0 || oldDenominators.length !== 0)
  47070. throw H.wrapException(E.SassScriptException$("Incompatible units " + _this._unitString$2(t1, t2) + " and " + _this._unitString$2(newNumerators, newDenominators) + "."));
  47071. return _box_0.value;
  47072. },
  47073. isComparableTo$1: function(other) {
  47074. var t1, exception;
  47075. if (this.numeratorUnits.length !== 0 || this.denominatorUnits.length !== 0)
  47076. t1 = !(other.numeratorUnits.length !== 0 || other.denominatorUnits.length !== 0);
  47077. else
  47078. t1 = true;
  47079. if (t1)
  47080. return true;
  47081. try {
  47082. this.greaterThan$1(other);
  47083. return true;
  47084. } catch (exception) {
  47085. if (H.unwrapException(exception) instanceof E.SassScriptException)
  47086. return false;
  47087. else
  47088. throw exception;
  47089. }
  47090. },
  47091. greaterThan$1: function(other) {
  47092. if (other instanceof T.SassNumber)
  47093. return this._coerceUnits$2(other, T.number0__fuzzyGreaterThan$closure()) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  47094. throw H.wrapException(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " > " + H.S(other) + '".'));
  47095. },
  47096. greaterThanOrEquals$1: function(other) {
  47097. if (other instanceof T.SassNumber)
  47098. return this._coerceUnits$2(other, T.number0__fuzzyGreaterThanOrEquals$closure()) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  47099. throw H.wrapException(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " >= " + H.S(other) + '".'));
  47100. },
  47101. lessThan$1: function(other) {
  47102. if (other instanceof T.SassNumber)
  47103. return this._coerceUnits$2(other, T.number0__fuzzyLessThan$closure()) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  47104. throw H.wrapException(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " < " + H.S(other) + '".'));
  47105. },
  47106. lessThanOrEquals$1: function(other) {
  47107. if (other instanceof T.SassNumber)
  47108. return this._coerceUnits$2(other, T.number0__fuzzyLessThanOrEquals$closure()) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  47109. throw H.wrapException(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " <= " + H.S(other) + '".'));
  47110. },
  47111. modulo$1: function(other) {
  47112. if (other instanceof T.SassNumber)
  47113. return this._coerceNumber$2(other, new T.SassNumber_modulo_closure());
  47114. throw H.wrapException(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " % " + H.S(other) + '".'));
  47115. },
  47116. plus$1: function(other) {
  47117. if (other instanceof T.SassNumber)
  47118. return this._coerceNumber$2(other, new T.SassNumber_plus_closure());
  47119. if (!(other instanceof K.SassColor))
  47120. return this.super$Value$plus(other);
  47121. throw H.wrapException(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " + " + other.toString$0(0) + '".'));
  47122. },
  47123. minus$1: function(other) {
  47124. if (other instanceof T.SassNumber)
  47125. return this._coerceNumber$2(other, new T.SassNumber_minus_closure());
  47126. if (!(other instanceof K.SassColor))
  47127. return this.super$Value$minus(other);
  47128. throw H.wrapException(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " - " + other.toString$0(0) + '".'));
  47129. },
  47130. times$1: function(other) {
  47131. var _this = this;
  47132. if (other instanceof T.SassNumber)
  47133. return _this._multiplyUnits$5(_this.value * other.value, _this.numeratorUnits, _this.denominatorUnits, other.numeratorUnits, other.denominatorUnits);
  47134. throw H.wrapException(E.SassScriptException$('Undefined operation "' + _this.toString$0(0) + " * " + H.S(other) + '".'));
  47135. },
  47136. dividedBy$1: function(other) {
  47137. var _this = this;
  47138. if (other instanceof T.SassNumber)
  47139. return _this._multiplyUnits$5(_this.value / other.value, _this.numeratorUnits, _this.denominatorUnits, other.denominatorUnits, other.numeratorUnits);
  47140. return _this.super$Value$dividedBy(other);
  47141. },
  47142. unaryPlus$0: function() {
  47143. return this;
  47144. },
  47145. unaryMinus$0: function() {
  47146. return T.SassNumber$withUnits(-this.value, this.denominatorUnits, this.numeratorUnits);
  47147. },
  47148. _coerceNumber$2: function(other, operation) {
  47149. var _this = this,
  47150. result = _this._coerceUnits$2(other, operation),
  47151. t1 = _this.numeratorUnits,
  47152. t2 = t1.length === 0;
  47153. t1 = !t2 || _this.denominatorUnits.length !== 0 ? t1 : other.numeratorUnits;
  47154. return T.SassNumber$withUnits(result, !t2 || _this.denominatorUnits.length !== 0 ? _this.denominatorUnits : other.denominatorUnits, t1);
  47155. },
  47156. _coerceUnits$1$2: function(other, operation) {
  47157. var num1, num2, _this = this,
  47158. t1 = _this.numeratorUnits;
  47159. if (t1.length !== 0 || _this.denominatorUnits.length !== 0) {
  47160. num1 = _this.value;
  47161. num2 = other.valueInUnits$2(t1, _this.denominatorUnits);
  47162. } else {
  47163. num1 = _this.valueInUnits$2(other.numeratorUnits, other.denominatorUnits);
  47164. num2 = other.value;
  47165. }
  47166. return operation.call$2(num1, num2);
  47167. },
  47168. _coerceUnits$2: function(other, operation) {
  47169. return this._coerceUnits$1$2(other, operation, type$.dynamic);
  47170. },
  47171. _multiplyUnits$5: function(value, numerators1, denominators1, numerators2, denominators2) {
  47172. var t1, newNumerators, mutableDenominators2, _i, numerator, mutableDenominators1, _this = this, _box_0 = {};
  47173. _box_0.value = value;
  47174. t1 = numerators1.length;
  47175. if (t1 === 0) {
  47176. if (denominators2.length === 0 && !_this._areAnyConvertible$2(denominators1, numerators2))
  47177. return T.SassNumber$withUnits(value, denominators1, numerators2);
  47178. else if (denominators1.length === 0)
  47179. return T.SassNumber$withUnits(value, denominators2, numerators2);
  47180. } else if (numerators2.length === 0)
  47181. if (denominators2.length === 0)
  47182. return T.SassNumber$withUnits(value, denominators2, numerators1);
  47183. else if (denominators1.length === 0 && !_this._areAnyConvertible$2(numerators1, denominators2))
  47184. return T.SassNumber$withUnits(value, denominators2, numerators1);
  47185. newNumerators = H.setRuntimeTypeInfo([], type$.JSArray_String);
  47186. mutableDenominators2 = H.setRuntimeTypeInfo(denominators2.slice(0), H._arrayInstanceType(denominators2)._eval$1("JSArray<1>"));
  47187. for (_i = 0; _i < t1; ++_i) {
  47188. numerator = numerators1[_i];
  47189. B.removeFirstWhere(mutableDenominators2, new T.SassNumber__multiplyUnits_closure(_box_0, _this, numerator), new T.SassNumber__multiplyUnits_closure0(newNumerators, numerator));
  47190. }
  47191. mutableDenominators1 = H.setRuntimeTypeInfo(denominators1.slice(0), H._arrayInstanceType(denominators1)._eval$1("JSArray<1>"));
  47192. for (t1 = numerators2.length, _i = 0; _i < t1; ++_i) {
  47193. numerator = numerators2[_i];
  47194. B.removeFirstWhere(mutableDenominators1, new T.SassNumber__multiplyUnits_closure1(_box_0, _this, numerator), new T.SassNumber__multiplyUnits_closure2(newNumerators, numerator));
  47195. }
  47196. t1 = _box_0.value;
  47197. C.JSArray_methods.addAll$1(mutableDenominators1, mutableDenominators2);
  47198. return T.SassNumber$withUnits(t1, mutableDenominators1, newNumerators);
  47199. },
  47200. _areAnyConvertible$2: function(units1, units2) {
  47201. return C.JSArray_methods.any$1(units1, new T.SassNumber__areAnyConvertible_closure(this, units2));
  47202. },
  47203. _conversionFactor$2: function(unit1, unit2) {
  47204. var innerMap;
  47205. if (unit1 == unit2)
  47206. return 1;
  47207. innerMap = $.$get$_conversions().$index(0, unit1);
  47208. if (innerMap == null)
  47209. return null;
  47210. return innerMap.$index(0, unit2);
  47211. },
  47212. _unitString$2: function(numerators, denominators) {
  47213. var t1;
  47214. if (numerators.length === 0) {
  47215. t1 = denominators.length;
  47216. if (t1 === 0)
  47217. return "no units";
  47218. if (t1 === 1)
  47219. return J.$add$ansx(C.JSArray_methods.get$single(denominators), "^-1");
  47220. return "(" + C.JSArray_methods.join$1(denominators, "*") + ")^-1";
  47221. }
  47222. if (denominators.length === 0)
  47223. return C.JSArray_methods.join$1(numerators, "*");
  47224. return C.JSArray_methods.join$1(numerators, "*") + "/" + C.JSArray_methods.join$1(denominators, "*");
  47225. },
  47226. $eq: function(_, other) {
  47227. var t1, t2, t3, exception, _this = this;
  47228. if (other == null)
  47229. return false;
  47230. if (other instanceof T.SassNumber) {
  47231. t1 = _this.numeratorUnits.length === 0;
  47232. t2 = !t1 || _this.denominatorUnits.length !== 0;
  47233. t3 = other;
  47234. if (t2 !== (t3.numeratorUnits.length !== 0 || t3.denominatorUnits.length !== 0))
  47235. return false;
  47236. if (!(!t1 || _this.denominatorUnits.length !== 0))
  47237. return Math.abs(_this.value - other.value) < $.$get$epsilon();
  47238. try {
  47239. t1 = _this._coerceUnits$2(other, T.number0__fuzzyEquals$closure());
  47240. return t1;
  47241. } catch (exception) {
  47242. if (H.unwrapException(exception) instanceof E.SassScriptException)
  47243. return false;
  47244. else
  47245. throw exception;
  47246. }
  47247. } else
  47248. return false;
  47249. },
  47250. get$hashCode: function(_) {
  47251. var _this = this;
  47252. return C.JSInt_methods.get$hashCode(C.JSDouble_methods.round$0(_this.value * _this._canonicalMultiplier$1(_this.numeratorUnits) / _this._canonicalMultiplier$1(_this.denominatorUnits) * $.$get$_inverseEpsilon()));
  47253. },
  47254. _canonicalMultiplier$1: function(units) {
  47255. return C.JSArray_methods.fold$2(units, 1, new T.SassNumber__canonicalMultiplier_closure());
  47256. },
  47257. _number$_exception$2: function(message, $name) {
  47258. return new E.SassScriptException($name == null ? message : "$" + $name + ": " + message);
  47259. }
  47260. };
  47261. T.SassNumber_valueInUnits_closure.prototype = {
  47262. call$1: function(oldNumerator) {
  47263. var t1,
  47264. factor = this.$this._conversionFactor$2(this.newNumerator, oldNumerator);
  47265. if (factor == null)
  47266. return false;
  47267. t1 = this._box_0;
  47268. t1.value = t1.value * factor;
  47269. return true;
  47270. }
  47271. };
  47272. T.SassNumber_valueInUnits_closure0.prototype = {
  47273. call$0: function() {
  47274. var t1 = this.$this;
  47275. throw H.wrapException(E.SassScriptException$("Incompatible units " + t1._unitString$2(t1.numeratorUnits, t1.denominatorUnits) + " and " + t1._unitString$2(this.newNumerators, this.newDenominators) + "."));
  47276. },
  47277. $signature: 0
  47278. };
  47279. T.SassNumber_valueInUnits_closure1.prototype = {
  47280. call$1: function(oldDenominator) {
  47281. var t1,
  47282. factor = this.$this._conversionFactor$2(this.newDenominator, oldDenominator);
  47283. if (factor == null)
  47284. return false;
  47285. t1 = this._box_0;
  47286. t1.value = t1.value / factor;
  47287. return true;
  47288. }
  47289. };
  47290. T.SassNumber_valueInUnits_closure2.prototype = {
  47291. call$0: function() {
  47292. var t1 = this.$this;
  47293. throw H.wrapException(E.SassScriptException$("Incompatible units " + t1._unitString$2(t1.numeratorUnits, t1.denominatorUnits) + " and " + t1._unitString$2(this.newNumerators, this.newDenominators) + "."));
  47294. },
  47295. $signature: 0
  47296. };
  47297. T.SassNumber_modulo_closure.prototype = {
  47298. call$2: function(num1, num2) {
  47299. var t1;
  47300. if (num2 > 0)
  47301. return C.JSNumber_methods.$mod(num1, num2);
  47302. if (num2 === 0)
  47303. return 0 / 0;
  47304. t1 = C.JSNumber_methods.$mod(num1, num2);
  47305. return t1 === 0 ? 0 : t1 + num2;
  47306. }
  47307. };
  47308. T.SassNumber_plus_closure.prototype = {
  47309. call$2: function(num1, num2) {
  47310. return num1 + num2;
  47311. }
  47312. };
  47313. T.SassNumber_minus_closure.prototype = {
  47314. call$2: function(num1, num2) {
  47315. return num1 - num2;
  47316. }
  47317. };
  47318. T.SassNumber__multiplyUnits_closure.prototype = {
  47319. call$1: function(denominator) {
  47320. var factor = this.$this._conversionFactor$2(this.numerator, denominator);
  47321. if (factor == null)
  47322. return false;
  47323. this._box_0.value /= factor;
  47324. return true;
  47325. }
  47326. };
  47327. T.SassNumber__multiplyUnits_closure0.prototype = {
  47328. call$0: function() {
  47329. this.newNumerators.push(this.numerator);
  47330. return null;
  47331. },
  47332. $signature: 0
  47333. };
  47334. T.SassNumber__multiplyUnits_closure1.prototype = {
  47335. call$1: function(denominator) {
  47336. var factor = this.$this._conversionFactor$2(this.numerator, denominator);
  47337. if (factor == null)
  47338. return false;
  47339. this._box_0.value /= factor;
  47340. return true;
  47341. }
  47342. };
  47343. T.SassNumber__multiplyUnits_closure2.prototype = {
  47344. call$0: function() {
  47345. this.newNumerators.push(this.numerator);
  47346. return null;
  47347. },
  47348. $signature: 0
  47349. };
  47350. T.SassNumber__areAnyConvertible_closure.prototype = {
  47351. call$1: function(unit1) {
  47352. var t1 = $.$get$_conversions();
  47353. if (!t1.containsKey$1(unit1))
  47354. return C.JSArray_methods.contains$1(this.units2, unit1);
  47355. return C.JSArray_methods.any$1(this.units2, t1.$index(0, unit1).get$containsKey());
  47356. }
  47357. };
  47358. T.SassNumber__canonicalMultiplier_closure.prototype = {
  47359. call$2: function(multiplier, unit) {
  47360. var t1,
  47361. innerMap = $.$get$_conversions().$index(0, unit);
  47362. if (innerMap == null)
  47363. t1 = multiplier;
  47364. else {
  47365. t1 = innerMap.get$values();
  47366. t1 = multiplier / t1.get$first(t1);
  47367. }
  47368. return t1;
  47369. }
  47370. };
  47371. D.SassString.prototype = {
  47372. get$sassLength: function() {
  47373. var t1 = this._sassLength;
  47374. if (t1 == null) {
  47375. t1 = this.text;
  47376. t1.toString;
  47377. t1 = new P.Runes(t1);
  47378. t1 = this._sassLength = t1.get$length(t1);
  47379. }
  47380. return t1;
  47381. },
  47382. get$isSpecialNumber: function() {
  47383. var t1, t2;
  47384. if (this.hasQuotes)
  47385. return false;
  47386. t1 = this.text;
  47387. if (t1.length < 6)
  47388. return false;
  47389. t2 = J.getInterceptor$s(t1)._codeUnitAt$1(t1, 0) | 32;
  47390. if (t2 === 99) {
  47391. if ((C.JSString_methods._codeUnitAt$1(t1, 1) | 32) !== 97)
  47392. return false;
  47393. if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 108)
  47394. return false;
  47395. if ((C.JSString_methods._codeUnitAt$1(t1, 3) | 32) !== 99)
  47396. return false;
  47397. return C.JSString_methods._codeUnitAt$1(t1, 4) === 40;
  47398. } else if (t2 === 118) {
  47399. if ((C.JSString_methods._codeUnitAt$1(t1, 1) | 32) !== 97)
  47400. return false;
  47401. if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 114)
  47402. return false;
  47403. return C.JSString_methods._codeUnitAt$1(t1, 3) === 40;
  47404. } else if (t2 === 101) {
  47405. if ((C.JSString_methods._codeUnitAt$1(t1, 1) | 32) !== 110)
  47406. return false;
  47407. if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 118)
  47408. return false;
  47409. return C.JSString_methods._codeUnitAt$1(t1, 3) === 40;
  47410. } else if (t2 === 109) {
  47411. t2 = C.JSString_methods._codeUnitAt$1(t1, 1) | 32;
  47412. if (t2 === 97) {
  47413. if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 120)
  47414. return false;
  47415. return C.JSString_methods._codeUnitAt$1(t1, 3) === 40;
  47416. } else if (t2 === 105) {
  47417. if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 110)
  47418. return false;
  47419. return C.JSString_methods._codeUnitAt$1(t1, 3) === 40;
  47420. } else
  47421. return false;
  47422. } else
  47423. return false;
  47424. },
  47425. get$isVar: function() {
  47426. if (this.hasQuotes)
  47427. return false;
  47428. var t1 = this.text;
  47429. if (t1.length < 8)
  47430. return false;
  47431. return (J.getInterceptor$s(t1)._codeUnitAt$1(t1, 0) | 32) === 118 && (C.JSString_methods._codeUnitAt$1(t1, 1) | 32) === 97 && (C.JSString_methods._codeUnitAt$1(t1, 2) | 32) === 114 && C.JSString_methods._codeUnitAt$1(t1, 3) === 40;
  47432. },
  47433. get$isBlank: function() {
  47434. return !this.hasQuotes && this.text.length === 0;
  47435. },
  47436. accept$1$1: function(visitor) {
  47437. var t1 = visitor._quote && this.hasQuotes,
  47438. t2 = this.text;
  47439. if (t1)
  47440. visitor._visitQuotedString$1(t2);
  47441. else
  47442. visitor._visitUnquotedString$1(t2);
  47443. return null;
  47444. },
  47445. accept$1: function(visitor) {
  47446. return this.accept$1$1(visitor, type$.dynamic);
  47447. },
  47448. assertString$1: function($name) {
  47449. return this;
  47450. },
  47451. plus$1: function(other) {
  47452. var t1 = this.text,
  47453. t2 = this.hasQuotes;
  47454. if (other instanceof D.SassString)
  47455. return new D.SassString(J.$add$ansx(t1, other.text), t2);
  47456. else {
  47457. other.toString;
  47458. return new D.SassString(J.$add$ansx(t1, N.serializeValue0(other, false, true)), t2);
  47459. }
  47460. },
  47461. $eq: function(_, other) {
  47462. if (other == null)
  47463. return false;
  47464. return other instanceof D.SassString && this.text == other.text;
  47465. },
  47466. get$hashCode: function(_) {
  47467. return J.get$hashCode$(this.text);
  47468. }
  47469. };
  47470. E._EvaluateVisitor0.prototype = {
  47471. _EvaluateVisitor$5$functions$importCache$logger$nodeImporter$sourceMap0: function(functions, importCache, logger, nodeImporter, sourceMap) {
  47472. var t6, t7, t8, t9, t10, t11, t12, metaFunctions, metaMixins, _i, metaModule, module, $function, _this = this,
  47473. _s9_ = "sass:meta",
  47474. t1 = type$.String,
  47475. t2 = type$.VariableDeclaration,
  47476. t3 = S.SpanScanner$("@function global-variable-exists($name, $module: null) {", _s9_),
  47477. t4 = type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value,
  47478. t5 = type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value;
  47479. t3 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t3, C.StderrLogger_false).parseArgumentDeclaration$0(), new E._EvaluateVisitor_closure9(_this), t4)], t5);
  47480. t6 = S.SpanScanner$("@function variable-exists($name) {", _s9_);
  47481. t6 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t6, C.StderrLogger_false).parseArgumentDeclaration$0(), new E._EvaluateVisitor_closure10(_this), t4)], t5);
  47482. t7 = S.SpanScanner$("@function function-exists($name, $module: null) {", _s9_);
  47483. t7 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t7, C.StderrLogger_false).parseArgumentDeclaration$0(), new E._EvaluateVisitor_closure11(_this), t4)], t5);
  47484. t8 = S.SpanScanner$("@function mixin-exists($name, $module: null) {", _s9_);
  47485. t8 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t8, C.StderrLogger_false).parseArgumentDeclaration$0(), new E._EvaluateVisitor_closure12(_this), t4)], t5);
  47486. t9 = S.SpanScanner$("@function content-exists() {", _s9_);
  47487. t9 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t9, C.StderrLogger_false).parseArgumentDeclaration$0(), new E._EvaluateVisitor_closure13(_this), t4)], t5);
  47488. t10 = S.SpanScanner$("@function module-variables($module) {", _s9_);
  47489. t10 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t10, C.StderrLogger_false).parseArgumentDeclaration$0(), new E._EvaluateVisitor_closure14(_this), t4)], t5);
  47490. t11 = S.SpanScanner$("@function module-functions($module) {", _s9_);
  47491. t11 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t11, C.StderrLogger_false).parseArgumentDeclaration$0(), new E._EvaluateVisitor_closure15(_this), t4)], t5);
  47492. t12 = S.SpanScanner$("@function get-function($name, $css: false, $module: null) {", _s9_);
  47493. t4 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t12, C.StderrLogger_false).parseArgumentDeclaration$0(), new E._EvaluateVisitor_closure16(_this), t4)], t5);
  47494. t5 = S.SpanScanner$("@function call($function, $args...) {", _s9_);
  47495. metaFunctions = [new Q.BuiltInCallable("global-variable-exists", t3), new Q.BuiltInCallable("variable-exists", t6), new Q.BuiltInCallable("function-exists", t7), new Q.BuiltInCallable("mixin-exists", t8), new Q.BuiltInCallable("content-exists", t9), new Q.BuiltInCallable("module-variables", t10), new Q.BuiltInCallable("module-functions", t11), new Q.BuiltInCallable("get-function", t4), new S.AsyncBuiltInCallable("call", new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t5, C.StderrLogger_false).parseArgumentDeclaration$0(), new E._EvaluateVisitor_closure17(_this))];
  47496. t1 = type$.JSArray_AsyncBuiltInCallable;
  47497. metaMixins = H.setRuntimeTypeInfo([S.AsyncBuiltInCallable$mixin("load-css", "$module, $with: null", new E._EvaluateVisitor_closure18(_this), _s9_)], t1);
  47498. t1 = H.setRuntimeTypeInfo([], t1);
  47499. for (t2 = $.$get$global(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
  47500. t1.push(t2.__internal$_current);
  47501. for (_i = 0; _i < 9; ++_i)
  47502. t1.push(metaFunctions[_i]);
  47503. metaModule = Q.BuiltInModule$("meta", t1, metaMixins, null, type$.AsyncBuiltInCallable);
  47504. t1 = H.setRuntimeTypeInfo([], type$.JSArray_BuiltInModule_AsyncBuiltInCallable);
  47505. for (t2 = $.$get$coreModules(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
  47506. t1.push(t2.__internal$_current);
  47507. t1.push(metaModule);
  47508. t2 = t1.length;
  47509. t3 = _this._async_evaluate$_builtInModules;
  47510. _i = 0;
  47511. for (; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  47512. module = t1[_i];
  47513. t3.$indexSet(0, module.url, module);
  47514. }
  47515. t1 = H.setRuntimeTypeInfo([], type$.JSArray_AsyncCallable_2);
  47516. for (t2 = $.$get$globalFunctions(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
  47517. t1.push(t2.__internal$_current);
  47518. for (_i = 0; _i < 9; ++_i)
  47519. t1.push(metaFunctions[_i]);
  47520. for (t2 = t1.length, t3 = _this._async_evaluate$_builtInFunctions, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  47521. $function = t1[_i];
  47522. t4 = $function.get$name();
  47523. t4.toString;
  47524. t3.$indexSet(0, H.stringReplaceAllUnchecked(t4, "_", "-"), $function);
  47525. }
  47526. },
  47527. run$2: function(_, importer, node) {
  47528. return this.run$body$_EvaluateVisitor(_, importer, node);
  47529. },
  47530. run$body$_EvaluateVisitor: function(_, importer, node) {
  47531. var $async$goto = 0,
  47532. $async$completer = P._makeAsyncAwaitCompleter(type$.EvaluateResult),
  47533. $async$returnValue, $async$self = this;
  47534. var $async$run$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  47535. if ($async$errorCode === 1)
  47536. return P._asyncRethrow($async$result, $async$completer);
  47537. while (true)
  47538. switch ($async$goto) {
  47539. case 0:
  47540. // Function start
  47541. $async$returnValue = $async$self._async_evaluate$_withWarnCallback$1$1(new E._EvaluateVisitor_run_closure0($async$self, node, importer), type$.FutureOr_EvaluateResult);
  47542. // goto return
  47543. $async$goto = 1;
  47544. break;
  47545. case 1:
  47546. // return
  47547. return P._asyncReturn($async$returnValue, $async$completer);
  47548. }
  47549. });
  47550. return P._asyncStartSync($async$run$2, $async$completer);
  47551. },
  47552. _async_evaluate$_withWarnCallback$1$1: function(callback, $T) {
  47553. return N.withWarnCallback(new E._EvaluateVisitor__withWarnCallback_closure0(this), callback, $T);
  47554. },
  47555. _async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors: function(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
  47556. return this._loadModule$body$_EvaluateVisitor(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors);
  47557. },
  47558. _async_evaluate$_loadModule$5$configuration: function(url, stackFrame, nodeWithSpan, callback, configuration) {
  47559. return this._async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, configuration, false);
  47560. },
  47561. _async_evaluate$_loadModule$4: function(url, stackFrame, nodeWithSpan, callback) {
  47562. return this._async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, null, false);
  47563. },
  47564. _loadModule$body$_EvaluateVisitor: function(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
  47565. var $async$goto = 0,
  47566. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  47567. $async$returnValue, $async$self = this, t1, builtInModule;
  47568. var $async$_async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  47569. if ($async$errorCode === 1)
  47570. return P._asyncRethrow($async$result, $async$completer);
  47571. while (true)
  47572. switch ($async$goto) {
  47573. case 0:
  47574. // Function start
  47575. builtInModule = $async$self._async_evaluate$_builtInModules.$index(0, url);
  47576. if (builtInModule != null) {
  47577. if (configuration != null && !configuration.isImplicit) {
  47578. t1 = namesInErrors ? "Built-in module " + H.S(url) + " can't be configured." : "Built-in modules can't be configured.";
  47579. throw H.wrapException($async$self._async_evaluate$_exception$2(t1, nodeWithSpan.get$span()));
  47580. }
  47581. callback.call$1(builtInModule);
  47582. // goto return
  47583. $async$goto = 1;
  47584. break;
  47585. }
  47586. $async$goto = 3;
  47587. return P._asyncAwait($async$self._async_evaluate$_withStackFrame$1$3(stackFrame, nodeWithSpan, new E._EvaluateVisitor__loadModule_closure0($async$self, url, nodeWithSpan, baseUrl, namesInErrors, configuration, callback), type$.Null), $async$_async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors);
  47588. case 3:
  47589. // returning from await.
  47590. case 1:
  47591. // return
  47592. return P._asyncReturn($async$returnValue, $async$completer);
  47593. }
  47594. });
  47595. return P._asyncStartSync($async$_async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors, $async$completer);
  47596. },
  47597. _async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan: function(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
  47598. return this._execute$body$_EvaluateVisitor(importer, stylesheet, configuration, namesInErrors, nodeWithSpan);
  47599. },
  47600. _async_evaluate$_execute$2: function(importer, stylesheet) {
  47601. return this._async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, null, false, null);
  47602. },
  47603. _execute$body$_EvaluateVisitor: function(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
  47604. var $async$goto = 0,
  47605. $async$completer = P._makeAsyncAwaitCompleter(type$.Module_AsyncCallable),
  47606. $async$returnValue, $async$self = this, message, existingNode, environment, t3, extender, module, t1, url, t2, alreadyLoaded;
  47607. var $async$_async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  47608. if ($async$errorCode === 1)
  47609. return P._asyncRethrow($async$result, $async$completer);
  47610. while (true)
  47611. switch ($async$goto) {
  47612. case 0:
  47613. // Function start
  47614. t1 = {};
  47615. url = stylesheet.span.file.url;
  47616. t2 = $async$self._async_evaluate$_modules;
  47617. alreadyLoaded = t2.$index(0, url);
  47618. if (alreadyLoaded != null) {
  47619. t1 = configuration == null;
  47620. if (!(t1 ? $async$self._async_evaluate$_configuration : configuration).isImplicit) {
  47621. message = namesInErrors ? H.S($.$get$context().prettyUri$1(url)) + ' was already loaded, so it can\'t be configured using "with".' : 'This module was already loaded, so it can\'t be configured using "with".';
  47622. existingNode = $async$self._async_evaluate$_moduleNodes.$index(0, url);
  47623. t2 = P.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  47624. if (existingNode != null)
  47625. t2.$indexSet(0, existingNode.get$span(), "original load");
  47626. if (t1)
  47627. t2.$indexSet(0, $async$self._async_evaluate$_configuration.nodeWithSpan.get$span(), "configuration");
  47628. throw H.wrapException(t2.get$isEmpty(t2) ? $async$self._async_evaluate$_exception$1(message) : $async$self._async_evaluate$_multiSpanException$3(message, "new load", t2));
  47629. }
  47630. $async$returnValue = alreadyLoaded;
  47631. // goto return
  47632. $async$goto = 1;
  47633. break;
  47634. }
  47635. environment = Q.AsyncEnvironment$($async$self._async_evaluate$_sourceMap);
  47636. t1.css = null;
  47637. t3 = type$.SimpleSelector;
  47638. extender = new F.Extender(P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.Set_ModifiableCssValue_SelectorList), P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.Map_ComplexSelector_Extension), P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.List_Extension), P.LinkedHashMap_LinkedHashMap$_empty(type$.ModifiableCssValue_SelectorList, type$.List_CssMediaQuery), P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6(t3, type$.int), new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_ComplexSelector), C.ExtendMode_normal);
  47639. $async$goto = 3;
  47640. return P._asyncAwait($async$self._async_evaluate$_withEnvironment$1$2(environment, new E._EvaluateVisitor__execute_closure0(t1, $async$self, importer, stylesheet, extender, configuration), type$.Null), $async$_async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan);
  47641. case 3:
  47642. // returning from await.
  47643. module = Q._EnvironmentModule__EnvironmentModule0(environment, t1.css, extender, environment._async_environment$_forwardedModules);
  47644. t2.$indexSet(0, url, module);
  47645. $async$self._async_evaluate$_moduleNodes.$indexSet(0, url, nodeWithSpan);
  47646. $async$returnValue = module;
  47647. // goto return
  47648. $async$goto = 1;
  47649. break;
  47650. case 1:
  47651. // return
  47652. return P._asyncReturn($async$returnValue, $async$completer);
  47653. }
  47654. });
  47655. return P._asyncStartSync($async$_async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan, $async$completer);
  47656. },
  47657. _async_evaluate$_addOutOfOrderImports$0: function() {
  47658. var t1, statements, _this = this;
  47659. if (_this._async_evaluate$_outOfOrderImports == null)
  47660. return _this._async_evaluate$_root.children;
  47661. t1 = new Array(J.get$length$asx(_this._async_evaluate$_root.children._collection$_source) + _this._async_evaluate$_outOfOrderImports.length);
  47662. t1.fixed$length = Array;
  47663. statements = new G.FixedLengthListBuilder(H.setRuntimeTypeInfo(t1, type$.JSArray_ModifiableCssNode), type$.FixedLengthListBuilder_ModifiableCssNode);
  47664. statements.addRange$3(_this._async_evaluate$_root.children, 0, _this._async_evaluate$_endOfImports);
  47665. statements.addAll$1(0, _this._async_evaluate$_outOfOrderImports);
  47666. statements.addRange$2(_this._async_evaluate$_root.children, _this._async_evaluate$_endOfImports);
  47667. return statements.build$0();
  47668. },
  47669. _async_evaluate$_combineCss$2$clone: function(root, clone) {
  47670. var selectors, unsatisfiedExtension, sortedModules, t1, imports, css, t2, statements, index, _this = this;
  47671. if (!C.JSArray_methods.any$1(root.get$upstream(), new E._EvaluateVisitor__combineCss_closure2())) {
  47672. selectors = root.get$extender().get$simpleSelectors();
  47673. unsatisfiedExtension = B.firstOrNull(root.get$extender().extensionsWhereTarget$1(new E._EvaluateVisitor__combineCss_closure3(selectors)));
  47674. if (unsatisfiedExtension != null)
  47675. _this._async_evaluate$_throwForUnsatisfiedExtension$1(unsatisfiedExtension);
  47676. return root.get$css(root);
  47677. }
  47678. sortedModules = _this._async_evaluate$_topologicalModules$1(root);
  47679. if (clone)
  47680. sortedModules = new H.MappedListIterable(sortedModules, new E._EvaluateVisitor__combineCss_closure4(), sortedModules.$ti._eval$1("MappedListIterable<ListMixin.E,Module<AsyncCallable>>")).toList$0(0);
  47681. _this._async_evaluate$_extendModules$1(sortedModules);
  47682. t1 = type$.JSArray_CssNode;
  47683. imports = H.setRuntimeTypeInfo([], t1);
  47684. css = H.setRuntimeTypeInfo([], t1);
  47685. for (t1 = J.get$reversed$ax(sortedModules), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  47686. t2 = t1.__internal$_current;
  47687. statements = t2.get$css(t2).get$children();
  47688. index = _this._async_evaluate$_indexAfterImports$1(statements);
  47689. t2 = J.getInterceptor$ax(statements);
  47690. C.JSArray_methods.addAll$1(imports, t2.getRange$2(statements, 0, index));
  47691. C.JSArray_methods.addAll$1(css, t2.getRange$2(statements, index, t2.get$length(statements)));
  47692. }
  47693. return new V.CssStylesheet(new P.UnmodifiableListView(C.JSArray_methods.$add(imports, css), type$.UnmodifiableListView_CssNode), root.get$css(root).get$span());
  47694. },
  47695. _async_evaluate$_combineCss$1: function(root) {
  47696. return this._async_evaluate$_combineCss$2$clone(root, false);
  47697. },
  47698. _async_evaluate$_extendModules$1: function(sortedModules) {
  47699. var t1, t2, originalSelectors, extenders, t3, t4, _i,
  47700. downstreamExtenders = P.LinkedHashMap_LinkedHashMap$_empty(type$.Uri, type$.List_Extender),
  47701. unsatisfiedExtensions = new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_Extension);
  47702. for (t1 = J.get$iterator$ax(sortedModules); t1.moveNext$0();) {
  47703. t2 = t1.get$current(t1);
  47704. originalSelectors = t2.get$extender().get$simpleSelectors().toSet$0(0);
  47705. unsatisfiedExtensions.addAll$1(0, t2.get$extender().extensionsWhereTarget$1(new E._EvaluateVisitor__extendModules_closure1(originalSelectors)));
  47706. extenders = downstreamExtenders.$index(0, t2.get$url());
  47707. if (extenders != null)
  47708. t2.get$extender().addExtensions$1(extenders);
  47709. t3 = t2.get$extender();
  47710. if (t3.get$isEmpty(t3))
  47711. continue;
  47712. for (t3 = t2.get$upstream(), t4 = t3.length, _i = 0; _i < t3.length; t3.length === t4 || (0, H.throwConcurrentModificationError)(t3), ++_i)
  47713. J.add$1$ax(downstreamExtenders.putIfAbsent$2(t3[_i].get$url(), new E._EvaluateVisitor__extendModules_closure2()), t2.get$extender());
  47714. unsatisfiedExtensions.removeAll$1(t2.get$extender().extensionsWhereTarget$1(originalSelectors.get$contains(originalSelectors)));
  47715. }
  47716. if (unsatisfiedExtensions._collection$_length !== 0)
  47717. this._async_evaluate$_throwForUnsatisfiedExtension$1(unsatisfiedExtensions.get$first(unsatisfiedExtensions));
  47718. },
  47719. _async_evaluate$_throwForUnsatisfiedExtension$1: function(extension) {
  47720. throw H.wrapException(E.SassException$('The target selector was not found.\nUse "@extend ' + H.S(extension.target) + ' !optional" to avoid this error.', extension.span));
  47721. },
  47722. _async_evaluate$_topologicalModules$1: function(root) {
  47723. var t1 = type$.Module_AsyncCallable,
  47724. sorted = Q.QueueList$(null, t1);
  47725. new E._EvaluateVisitor__topologicalModules_visitModule0(P.LinkedHashSet_LinkedHashSet$_empty(t1), sorted).call$1(root);
  47726. return sorted;
  47727. },
  47728. _async_evaluate$_indexAfterImports$1: function(statements) {
  47729. var t1, t2, t3, lastImport, i, statement;
  47730. for (t1 = J.getInterceptor$asx(statements), t2 = type$.CssComment, t3 = type$.CssImport, lastImport = -1, i = 0; i < t1.get$length(statements); ++i) {
  47731. statement = t1.$index(statements, i);
  47732. if (t3._is(statement))
  47733. lastImport = i;
  47734. else if (!t2._is(statement))
  47735. break;
  47736. }
  47737. return lastImport + 1;
  47738. },
  47739. visitStylesheet$1: function(node) {
  47740. return this.visitStylesheet$body$_EvaluateVisitor(node);
  47741. },
  47742. visitStylesheet$body$_EvaluateVisitor: function(node) {
  47743. var $async$goto = 0,
  47744. $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
  47745. $async$returnValue, $async$self = this, t1, t2, _i;
  47746. var $async$visitStylesheet$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  47747. if ($async$errorCode === 1)
  47748. return P._asyncRethrow($async$result, $async$completer);
  47749. while (true)
  47750. switch ($async$goto) {
  47751. case 0:
  47752. // Function start
  47753. t1 = node.children, t2 = t1.length, _i = 0;
  47754. case 3:
  47755. // for condition
  47756. if (!(_i < t2)) {
  47757. // goto after for
  47758. $async$goto = 5;
  47759. break;
  47760. }
  47761. $async$goto = 6;
  47762. return P._asyncAwait(t1[_i].accept$1($async$self), $async$visitStylesheet$1);
  47763. case 6:
  47764. // returning from await.
  47765. case 4:
  47766. // for update
  47767. ++_i;
  47768. // goto for condition
  47769. $async$goto = 3;
  47770. break;
  47771. case 5:
  47772. // after for
  47773. $async$returnValue = null;
  47774. // goto return
  47775. $async$goto = 1;
  47776. break;
  47777. case 1:
  47778. // return
  47779. return P._asyncReturn($async$returnValue, $async$completer);
  47780. }
  47781. });
  47782. return P._asyncStartSync($async$visitStylesheet$1, $async$completer);
  47783. },
  47784. visitAtRootRule$1: function(node) {
  47785. return this.visitAtRootRule$body$_EvaluateVisitor(node);
  47786. },
  47787. visitAtRootRule$body$_EvaluateVisitor: function(node) {
  47788. var $async$goto = 0,
  47789. $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
  47790. $async$returnValue, $async$self = this, root, innerCopy, outerCopy, copy, t1, query, $parent, included, $async$temp1, $async$temp2;
  47791. var $async$visitAtRootRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  47792. if ($async$errorCode === 1)
  47793. return P._asyncRethrow($async$result, $async$completer);
  47794. while (true)
  47795. switch ($async$goto) {
  47796. case 0:
  47797. // Function start
  47798. t1 = node.query;
  47799. $async$goto = t1 != null ? 3 : 5;
  47800. break;
  47801. case 3:
  47802. // then
  47803. $async$temp1 = t1;
  47804. $async$temp2 = E;
  47805. $async$goto = 6;
  47806. return P._asyncAwait($async$self._async_evaluate$_performInterpolation$2$warnForColor(t1, true), $async$visitAtRootRule$1);
  47807. case 6:
  47808. // returning from await.
  47809. $async$result = $async$self._async_evaluate$_adjustParseError$2($async$temp1, new $async$temp2._EvaluateVisitor_visitAtRootRule_closure2($async$self, $async$result));
  47810. // goto join
  47811. $async$goto = 4;
  47812. break;
  47813. case 5:
  47814. // else
  47815. $async$result = C.AtRootQuery_UsS;
  47816. case 4:
  47817. // join
  47818. query = $async$result;
  47819. $parent = $async$self._async_evaluate$_parent;
  47820. included = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssParentNode);
  47821. for (t1 = type$.CssStylesheet; !t1._is($parent);) {
  47822. if (!query.excludes$1($parent))
  47823. included.push($parent);
  47824. $parent = $parent._parent;
  47825. }
  47826. root = $async$self._async_evaluate$_trimIncluded$1(included);
  47827. $async$goto = root == $async$self._async_evaluate$_parent ? 7 : 8;
  47828. break;
  47829. case 7:
  47830. // then
  47831. $async$goto = 9;
  47832. return P._asyncAwait($async$self._async_evaluate$_environment.scope$1$2$when(new E._EvaluateVisitor_visitAtRootRule_closure3($async$self, node), node.hasDeclarations, type$.Null), $async$visitAtRootRule$1);
  47833. case 9:
  47834. // returning from await.
  47835. $async$returnValue = null;
  47836. // goto return
  47837. $async$goto = 1;
  47838. break;
  47839. case 8:
  47840. // join
  47841. innerCopy = included.length === 0 ? null : C.JSArray_methods.get$first(included).copyWithoutChildren$0();
  47842. for (t1 = H.SubListIterable$(included, 1, null, type$.ModifiableCssParentNode), t1 = new H.ListIterator(t1, t1.get$length(t1)), outerCopy = innerCopy; t1.moveNext$0(); outerCopy = copy) {
  47843. copy = t1.__internal$_current.copyWithoutChildren$0();
  47844. copy.addChild$1(outerCopy);
  47845. }
  47846. if (outerCopy != null)
  47847. root.addChild$1(outerCopy);
  47848. $async$goto = 10;
  47849. return P._asyncAwait($async$self._async_evaluate$_scopeForAtRoot$4(node, innerCopy == null ? root : innerCopy, query, included).call$1(new E._EvaluateVisitor_visitAtRootRule_closure4($async$self, node)), $async$visitAtRootRule$1);
  47850. case 10:
  47851. // returning from await.
  47852. $async$returnValue = null;
  47853. // goto return
  47854. $async$goto = 1;
  47855. break;
  47856. case 1:
  47857. // return
  47858. return P._asyncReturn($async$returnValue, $async$completer);
  47859. }
  47860. });
  47861. return P._asyncStartSync($async$visitAtRootRule$1, $async$completer);
  47862. },
  47863. _async_evaluate$_trimIncluded$1: function(nodes) {
  47864. var $parent, innermostContiguous, i, t2, root,
  47865. t1 = nodes.length;
  47866. if (t1 === 0)
  47867. return this._async_evaluate$_root;
  47868. $parent = this._async_evaluate$_parent;
  47869. for (innermostContiguous = null, i = 0; i < t1; ++i) {
  47870. for (; $parent != nodes[i]; innermostContiguous = null)
  47871. $parent = $parent._parent;
  47872. if (innermostContiguous == null)
  47873. innermostContiguous = i;
  47874. $parent = $parent._parent;
  47875. }
  47876. t2 = this._async_evaluate$_root;
  47877. if ($parent != t2)
  47878. return t2;
  47879. root = nodes[innermostContiguous];
  47880. C.JSArray_methods.removeRange$2(nodes, innermostContiguous, t1);
  47881. return root;
  47882. },
  47883. _async_evaluate$_scopeForAtRoot$4: function(node, newParent, query, included) {
  47884. var _this = this,
  47885. scope = new E._EvaluateVisitor__scopeForAtRoot_closure5(_this, newParent, node),
  47886. t1 = query._all,
  47887. t2 = t1 || query._at_root_query$_rule,
  47888. t3 = query.include;
  47889. if (t2 !== t3)
  47890. scope = new E._EvaluateVisitor__scopeForAtRoot_closure6(_this, scope);
  47891. if (t1 ? !t3 : query.names.contains$1(0, "media") !== t3)
  47892. scope = new E._EvaluateVisitor__scopeForAtRoot_closure7(_this, scope);
  47893. if (_this._async_evaluate$_inKeyframes && query.names.contains$1(0, "keyframes") !== t3)
  47894. scope = new E._EvaluateVisitor__scopeForAtRoot_closure8(_this, scope);
  47895. return _this._async_evaluate$_inUnknownAtRule && !C.JSArray_methods.any$1(included, new E._EvaluateVisitor__scopeForAtRoot_closure9()) ? new E._EvaluateVisitor__scopeForAtRoot_closure10(_this, scope) : scope;
  47896. },
  47897. visitContentBlock$1: function(node) {
  47898. return H.throwExpression(P.UnsupportedError$("Evaluation handles @include and its content block together."));
  47899. },
  47900. visitContentRule$1: function(node) {
  47901. return this.visitContentRule$body$_EvaluateVisitor(node);
  47902. },
  47903. visitContentRule$body$_EvaluateVisitor: function(node) {
  47904. var $async$goto = 0,
  47905. $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
  47906. $async$returnValue, $async$self = this, $content;
  47907. var $async$visitContentRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  47908. if ($async$errorCode === 1)
  47909. return P._asyncRethrow($async$result, $async$completer);
  47910. while (true)
  47911. switch ($async$goto) {
  47912. case 0:
  47913. // Function start
  47914. $content = $async$self._async_evaluate$_environment._async_environment$_content;
  47915. if ($content == null) {
  47916. $async$returnValue = null;
  47917. // goto return
  47918. $async$goto = 1;
  47919. break;
  47920. }
  47921. $async$goto = 3;
  47922. return P._asyncAwait($async$self._async_evaluate$_runUserDefinedCallable$4(node.$arguments, $content, node, new E._EvaluateVisitor_visitContentRule_closure0($async$self, $content)), $async$visitContentRule$1);
  47923. case 3:
  47924. // returning from await.
  47925. $async$returnValue = null;
  47926. // goto return
  47927. $async$goto = 1;
  47928. break;
  47929. case 1:
  47930. // return
  47931. return P._asyncReturn($async$returnValue, $async$completer);
  47932. }
  47933. });
  47934. return P._asyncStartSync($async$visitContentRule$1, $async$completer);
  47935. },
  47936. visitDebugRule$1: function(node) {
  47937. return this.visitDebugRule$body$_EvaluateVisitor(node);
  47938. },
  47939. visitDebugRule$body$_EvaluateVisitor: function(node) {
  47940. var $async$goto = 0,
  47941. $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
  47942. $async$returnValue, $async$self = this, value, t1;
  47943. var $async$visitDebugRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  47944. if ($async$errorCode === 1)
  47945. return P._asyncRethrow($async$result, $async$completer);
  47946. while (true)
  47947. switch ($async$goto) {
  47948. case 0:
  47949. // Function start
  47950. $async$goto = 3;
  47951. return P._asyncAwait(node.expression.accept$1($async$self), $async$visitDebugRule$1);
  47952. case 3:
  47953. // returning from await.
  47954. value = $async$result;
  47955. t1 = value instanceof D.SassString ? value.text : J.toString$0$(value);
  47956. $async$self._async_evaluate$_logger.debug$2(t1, node.span);
  47957. $async$returnValue = null;
  47958. // goto return
  47959. $async$goto = 1;
  47960. break;
  47961. case 1:
  47962. // return
  47963. return P._asyncReturn($async$returnValue, $async$completer);
  47964. }
  47965. });
  47966. return P._asyncStartSync($async$visitDebugRule$1, $async$completer);
  47967. },
  47968. visitDeclaration$1: function(node) {
  47969. return this.visitDeclaration$body$_EvaluateVisitor(node);
  47970. },
  47971. visitDeclaration$body$_EvaluateVisitor: function(node) {
  47972. var $async$goto = 0,
  47973. $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
  47974. $async$returnValue, $async$self = this, $name, t1, cssValue, t2, oldDeclarationName, $async$temp1;
  47975. var $async$visitDeclaration$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  47976. if ($async$errorCode === 1)
  47977. return P._asyncRethrow($async$result, $async$completer);
  47978. while (true)
  47979. switch ($async$goto) {
  47980. case 0:
  47981. // Function start
  47982. if (!($async$self._async_evaluate$_styleRule != null && !$async$self._async_evaluate$_atRootExcludingStyleRule) && !$async$self._async_evaluate$_inUnknownAtRule && !$async$self._async_evaluate$_inKeyframes)
  47983. throw H.wrapException($async$self._async_evaluate$_exception$2("Declarations may only be used within style rules.", node.span));
  47984. $async$goto = 3;
  47985. return P._asyncAwait($async$self._async_evaluate$_interpolationToValue$2$warnForColor(node.name, true), $async$visitDeclaration$1);
  47986. case 3:
  47987. // returning from await.
  47988. $name = $async$result;
  47989. t1 = $async$self._async_evaluate$_declarationName;
  47990. if (t1 != null)
  47991. $name = new F.CssValue(t1 + "-" + H.S($name.get$value($name)), $name.get$span(), type$.CssValue_String);
  47992. t1 = node.value;
  47993. $async$goto = t1 == null ? 4 : 6;
  47994. break;
  47995. case 4:
  47996. // then
  47997. $async$result = null;
  47998. // goto join
  47999. $async$goto = 5;
  48000. break;
  48001. case 6:
  48002. // else
  48003. $async$temp1 = F;
  48004. $async$goto = 7;
  48005. return P._asyncAwait(t1.accept$1($async$self), $async$visitDeclaration$1);
  48006. case 7:
  48007. // returning from await.
  48008. $async$result = new $async$temp1.CssValue($async$result, t1.get$span(), type$.CssValue_Value);
  48009. case 5:
  48010. // join
  48011. cssValue = $async$result;
  48012. if (cssValue != null) {
  48013. t2 = cssValue.value;
  48014. t2 = !t2.get$isBlank() || t2.get$asList().length === 0;
  48015. } else
  48016. t2 = false;
  48017. if (t2) {
  48018. t2 = $async$self._async_evaluate$_parent;
  48019. t1 = $async$self._async_evaluate$_expressionNode$1(t1);
  48020. t1 = t1 == null ? null : t1.get$span();
  48021. t2.addChild$1(L.ModifiableCssDeclaration$($name, cssValue, node.span, t1));
  48022. } else if (J.startsWith$1$s($name.get$value($name), "--"))
  48023. throw H.wrapException($async$self._async_evaluate$_exception$2("Custom property values may not be empty.", t1.get$span()));
  48024. $async$goto = node.children != null ? 8 : 9;
  48025. break;
  48026. case 8:
  48027. // then
  48028. oldDeclarationName = $async$self._async_evaluate$_declarationName;
  48029. $async$self._async_evaluate$_declarationName = $name.get$value($name);
  48030. $async$goto = 10;
  48031. return P._asyncAwait($async$self._async_evaluate$_environment.scope$1$2$when(new E._EvaluateVisitor_visitDeclaration_closure0($async$self, node), node.hasDeclarations, type$.Null), $async$visitDeclaration$1);
  48032. case 10:
  48033. // returning from await.
  48034. $async$self._async_evaluate$_declarationName = oldDeclarationName;
  48035. case 9:
  48036. // join
  48037. $async$returnValue = null;
  48038. // goto return
  48039. $async$goto = 1;
  48040. break;
  48041. case 1:
  48042. // return
  48043. return P._asyncReturn($async$returnValue, $async$completer);
  48044. }
  48045. });
  48046. return P._asyncStartSync($async$visitDeclaration$1, $async$completer);
  48047. },
  48048. visitEachRule$1: function(node) {
  48049. return this.visitEachRule$body$_EvaluateVisitor(node);
  48050. },
  48051. visitEachRule$body$_EvaluateVisitor: function(node) {
  48052. var $async$goto = 0,
  48053. $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
  48054. $async$returnValue, $async$self = this, t1, list, nodeWithSpan, setVariables;
  48055. var $async$visitEachRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  48056. if ($async$errorCode === 1)
  48057. return P._asyncRethrow($async$result, $async$completer);
  48058. while (true)
  48059. switch ($async$goto) {
  48060. case 0:
  48061. // Function start
  48062. t1 = node.list;
  48063. $async$goto = 3;
  48064. return P._asyncAwait(t1.accept$1($async$self), $async$visitEachRule$1);
  48065. case 3:
  48066. // returning from await.
  48067. list = $async$result;
  48068. nodeWithSpan = $async$self._async_evaluate$_expressionNode$1(t1);
  48069. setVariables = node.variables.length === 1 ? new E._EvaluateVisitor_visitEachRule_closure2($async$self, node, nodeWithSpan) : new E._EvaluateVisitor_visitEachRule_closure3($async$self, node, nodeWithSpan);
  48070. $async$returnValue = $async$self._async_evaluate$_environment.scope$1$2$semiGlobal(new E._EvaluateVisitor_visitEachRule_closure4($async$self, list, setVariables, node), true, type$.Value);
  48071. // goto return
  48072. $async$goto = 1;
  48073. break;
  48074. case 1:
  48075. // return
  48076. return P._asyncReturn($async$returnValue, $async$completer);
  48077. }
  48078. });
  48079. return P._asyncStartSync($async$visitEachRule$1, $async$completer);
  48080. },
  48081. _async_evaluate$_setMultipleVariables$3: function(variables, value, nodeWithSpan) {
  48082. var i,
  48083. list = value.get$asList(),
  48084. t1 = variables.length,
  48085. minLength = Math.min(t1, list.length);
  48086. for (i = 0; i < minLength; ++i)
  48087. this._async_evaluate$_environment.setLocalVariable$3(variables[i], list[i].withoutSlash$0(), nodeWithSpan);
  48088. for (i = minLength; i < t1; ++i)
  48089. this._async_evaluate$_environment.setLocalVariable$3(variables[i], C.C_SassNull0, nodeWithSpan);
  48090. },
  48091. visitErrorRule$1: function(node) {
  48092. return this.visitErrorRule$body$_EvaluateVisitor(node);
  48093. },
  48094. visitErrorRule$body$_EvaluateVisitor: function(node) {
  48095. var $async$goto = 0,
  48096. $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
  48097. $async$self = this, $async$temp1, $async$temp2;
  48098. var $async$visitErrorRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  48099. if ($async$errorCode === 1)
  48100. return P._asyncRethrow($async$result, $async$completer);
  48101. while (true)
  48102. switch ($async$goto) {
  48103. case 0:
  48104. // Function start
  48105. $async$temp1 = H;
  48106. $async$temp2 = J;
  48107. $async$goto = 2;
  48108. return P._asyncAwait(node.expression.accept$1($async$self), $async$visitErrorRule$1);
  48109. case 2:
  48110. // returning from await.
  48111. throw $async$temp1.wrapException($async$self._async_evaluate$_exception$2($async$temp2.toString$0$($async$result), node.span));
  48112. // implicit return
  48113. return P._asyncReturn(null, $async$completer);
  48114. }
  48115. });
  48116. return P._asyncStartSync($async$visitErrorRule$1, $async$completer);
  48117. },
  48118. visitExtendRule$1: function(node) {
  48119. return this.visitExtendRule$body$_EvaluateVisitor(node);
  48120. },
  48121. visitExtendRule$body$_EvaluateVisitor: function(node) {
  48122. var $async$goto = 0,
  48123. $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
  48124. $async$returnValue, $async$self = this, targetText, t1, t2, t3, _i, t4;
  48125. var $async$visitExtendRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  48126. if ($async$errorCode === 1)
  48127. return P._asyncRethrow($async$result, $async$completer);
  48128. while (true)
  48129. switch ($async$goto) {
  48130. case 0:
  48131. // Function start
  48132. if (!($async$self._async_evaluate$_styleRule != null && !$async$self._async_evaluate$_atRootExcludingStyleRule) || $async$self._async_evaluate$_declarationName != null)
  48133. throw H.wrapException($async$self._async_evaluate$_exception$2("@extend may only be used within style rules.", node.span));
  48134. $async$goto = 3;
  48135. return P._asyncAwait($async$self._async_evaluate$_interpolationToValue$2$warnForColor(node.selector, true), $async$visitExtendRule$1);
  48136. case 3:
  48137. // returning from await.
  48138. targetText = $async$result;
  48139. for (t1 = $async$self._async_evaluate$_adjustParseError$2(targetText, new E._EvaluateVisitor_visitExtendRule_closure0($async$self, targetText)).components, t2 = t1.length, t3 = type$.CompoundSelector, _i = 0; _i < t2; ++_i) {
  48140. t4 = t1[_i].components;
  48141. if (t4.length !== 1 || !(C.JSArray_methods.get$first(t4) instanceof X.CompoundSelector))
  48142. throw H.wrapException(E.SassFormatException$("complex selectors may not be extended.", targetText.get$span()));
  48143. t4 = t3._as(C.JSArray_methods.get$first(t4)).components;
  48144. if (t4.length !== 1)
  48145. throw H.wrapException(E.SassFormatException$("compound selectors may no longer be extended.\nConsider `@extend " + C.JSArray_methods.join$1(t4, ", ") + "` instead.\nSee http://bit.ly/ExtendCompound for details.\n", targetText.get$span()));
  48146. $async$self._async_evaluate$_extender.addExtension$4($async$self._async_evaluate$_styleRule.selector, C.JSArray_methods.get$first(t4), node, $async$self._async_evaluate$_mediaQueries);
  48147. }
  48148. $async$returnValue = null;
  48149. // goto return
  48150. $async$goto = 1;
  48151. break;
  48152. case 1:
  48153. // return
  48154. return P._asyncReturn($async$returnValue, $async$completer);
  48155. }
  48156. });
  48157. return P._asyncStartSync($async$visitExtendRule$1, $async$completer);
  48158. },
  48159. visitAtRule$1: function(node) {
  48160. return this.visitAtRule$body$_EvaluateVisitor(node);
  48161. },
  48162. visitAtRule$body$_EvaluateVisitor: function(node) {
  48163. var $async$goto = 0,
  48164. $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
  48165. $async$returnValue, $async$self = this, $name, t1, value, t2, wasInKeyframes, wasInUnknownAtRule;
  48166. var $async$visitAtRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  48167. if ($async$errorCode === 1)
  48168. return P._asyncRethrow($async$result, $async$completer);
  48169. while (true)
  48170. switch ($async$goto) {
  48171. case 0:
  48172. // Function start
  48173. if ($async$self._async_evaluate$_declarationName != null)
  48174. throw H.wrapException($async$self._async_evaluate$_exception$2("At-rules may not be used within nested declarations.", node.span));
  48175. $async$goto = 3;
  48176. return P._asyncAwait($async$self._async_evaluate$_interpolationToValue$1(node.name), $async$visitAtRule$1);
  48177. case 3:
  48178. // returning from await.
  48179. $name = $async$result;
  48180. t1 = node.value;
  48181. $async$goto = t1 == null ? 4 : 6;
  48182. break;
  48183. case 4:
  48184. // then
  48185. $async$result = null;
  48186. // goto join
  48187. $async$goto = 5;
  48188. break;
  48189. case 6:
  48190. // else
  48191. $async$goto = 7;
  48192. return P._asyncAwait($async$self._async_evaluate$_interpolationToValue$3$trim$warnForColor(t1, true, true), $async$visitAtRule$1);
  48193. case 7:
  48194. // returning from await.
  48195. case 5:
  48196. // join
  48197. value = $async$result;
  48198. if (node.children == null) {
  48199. t1 = $async$self._async_evaluate$_parent;
  48200. t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
  48201. t1.addChild$1(new U.ModifiableCssAtRule($name, value, true, node.span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode), t2));
  48202. $async$returnValue = null;
  48203. // goto return
  48204. $async$goto = 1;
  48205. break;
  48206. }
  48207. wasInKeyframes = $async$self._async_evaluate$_inKeyframes;
  48208. wasInUnknownAtRule = $async$self._async_evaluate$_inUnknownAtRule;
  48209. if (B.unvendor($name.get$value($name)) === "keyframes")
  48210. $async$self._async_evaluate$_inKeyframes = true;
  48211. else
  48212. $async$self._async_evaluate$_inUnknownAtRule = true;
  48213. t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
  48214. $async$goto = 8;
  48215. return P._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(new U.ModifiableCssAtRule($name, value, false, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1), new E._EvaluateVisitor_visitAtRule_closure1($async$self, node), node.hasDeclarations, new E._EvaluateVisitor_visitAtRule_closure2(), type$.ModifiableCssAtRule, type$.Null), $async$visitAtRule$1);
  48216. case 8:
  48217. // returning from await.
  48218. $async$self._async_evaluate$_inUnknownAtRule = wasInUnknownAtRule;
  48219. $async$self._async_evaluate$_inKeyframes = wasInKeyframes;
  48220. $async$returnValue = null;
  48221. // goto return
  48222. $async$goto = 1;
  48223. break;
  48224. case 1:
  48225. // return
  48226. return P._asyncReturn($async$returnValue, $async$completer);
  48227. }
  48228. });
  48229. return P._asyncStartSync($async$visitAtRule$1, $async$completer);
  48230. },
  48231. visitForRule$1: function(node) {
  48232. return this.visitForRule$body$_EvaluateVisitor(node);
  48233. },
  48234. visitForRule$body$_EvaluateVisitor: function(node) {
  48235. var $async$goto = 0,
  48236. $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
  48237. $async$returnValue, $async$self = this, t1, t2, t3, fromNumber, t4, toNumber, from, to, direction;
  48238. var $async$visitForRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  48239. if ($async$errorCode === 1)
  48240. return P._asyncRethrow($async$result, $async$completer);
  48241. while (true)
  48242. switch ($async$goto) {
  48243. case 0:
  48244. // Function start
  48245. t1 = {};
  48246. t2 = node.from;
  48247. t3 = type$.SassNumber;
  48248. $async$goto = 3;
  48249. return P._asyncAwait($async$self._addExceptionSpanAsync$1$2(t2, new E._EvaluateVisitor_visitForRule_closure4($async$self, node), t3), $async$visitForRule$1);
  48250. case 3:
  48251. // returning from await.
  48252. fromNumber = $async$result;
  48253. t4 = node.to;
  48254. $async$goto = 4;
  48255. return P._asyncAwait($async$self._addExceptionSpanAsync$1$2(t4, new E._EvaluateVisitor_visitForRule_closure5($async$self, node), t3), $async$visitForRule$1);
  48256. case 4:
  48257. // returning from await.
  48258. toNumber = $async$result;
  48259. from = $async$self._async_evaluate$_addExceptionSpan$2(t2, new E._EvaluateVisitor_visitForRule_closure6(fromNumber, toNumber));
  48260. to = t1.to = $async$self._async_evaluate$_addExceptionSpan$2(t4, new E._EvaluateVisitor_visitForRule_closure7(toNumber));
  48261. direction = from > to ? -1 : 1;
  48262. if (from === (!node.isExclusive ? t1.to = to + direction : to)) {
  48263. $async$returnValue = null;
  48264. // goto return
  48265. $async$goto = 1;
  48266. break;
  48267. }
  48268. $async$returnValue = $async$self._async_evaluate$_environment.scope$1$2$semiGlobal(new E._EvaluateVisitor_visitForRule_closure8(t1, $async$self, node, from, direction), true, type$.Value);
  48269. // goto return
  48270. $async$goto = 1;
  48271. break;
  48272. case 1:
  48273. // return
  48274. return P._asyncReturn($async$returnValue, $async$completer);
  48275. }
  48276. });
  48277. return P._asyncStartSync($async$visitForRule$1, $async$completer);
  48278. },
  48279. visitForwardRule$1: function(node) {
  48280. return this.visitForwardRule$body$_EvaluateVisitor(node);
  48281. },
  48282. visitForwardRule$body$_EvaluateVisitor: function(node) {
  48283. var $async$goto = 0,
  48284. $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
  48285. $async$returnValue, $async$self = this, newConfiguration, t4, _i, variable, oldConfiguration, adjustedConfiguration, t1, t2, t3;
  48286. var $async$visitForwardRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  48287. if ($async$errorCode === 1)
  48288. return P._asyncRethrow($async$result, $async$completer);
  48289. while (true)
  48290. switch ($async$goto) {
  48291. case 0:
  48292. // Function start
  48293. oldConfiguration = $async$self._async_evaluate$_configuration;
  48294. adjustedConfiguration = oldConfiguration.throughForward$1(node);
  48295. t1 = node.configuration;
  48296. t2 = t1.length;
  48297. t3 = node.url;
  48298. $async$goto = t2 !== 0 ? 3 : 5;
  48299. break;
  48300. case 3:
  48301. // then
  48302. $async$goto = 6;
  48303. return P._asyncAwait($async$self._async_evaluate$_addForwardConfiguration$2(adjustedConfiguration, node), $async$visitForwardRule$1);
  48304. case 6:
  48305. // returning from await.
  48306. newConfiguration = $async$result;
  48307. $async$goto = 7;
  48308. return P._asyncAwait($async$self._async_evaluate$_loadModule$5$configuration(t3, "@forward", node, new E._EvaluateVisitor_visitForwardRule_closure1($async$self, node), newConfiguration), $async$visitForwardRule$1);
  48309. case 7:
  48310. // returning from await.
  48311. t3 = type$.String;
  48312. t4 = P.LinkedHashSet_LinkedHashSet(t3);
  48313. for (_i = 0; _i < t2; ++_i) {
  48314. variable = t1[_i];
  48315. if (!variable.isGuarded)
  48316. t4.add$1(0, variable.name);
  48317. }
  48318. $async$self._async_evaluate$_removeUsedConfiguration$3$except(adjustedConfiguration, newConfiguration, t4);
  48319. t3 = P.LinkedHashSet_LinkedHashSet(t3);
  48320. for (_i = 0; _i < t2; ++_i)
  48321. t3.add$1(0, t1[_i].name);
  48322. $async$self._async_evaluate$_assertConfigurationIsEmpty$2$only(newConfiguration, t3);
  48323. // goto join
  48324. $async$goto = 4;
  48325. break;
  48326. case 5:
  48327. // else
  48328. $async$self._async_evaluate$_configuration = adjustedConfiguration;
  48329. $async$goto = 8;
  48330. return P._asyncAwait($async$self._async_evaluate$_loadModule$4(t3, "@forward", node, new E._EvaluateVisitor_visitForwardRule_closure2($async$self, node)), $async$visitForwardRule$1);
  48331. case 8:
  48332. // returning from await.
  48333. $async$self._async_evaluate$_configuration = oldConfiguration;
  48334. case 4:
  48335. // join
  48336. $async$returnValue = null;
  48337. // goto return
  48338. $async$goto = 1;
  48339. break;
  48340. case 1:
  48341. // return
  48342. return P._asyncReturn($async$returnValue, $async$completer);
  48343. }
  48344. });
  48345. return P._asyncStartSync($async$visitForwardRule$1, $async$completer);
  48346. },
  48347. _async_evaluate$_addForwardConfiguration$2: function(configuration, node) {
  48348. return this._addForwardConfiguration$body$_EvaluateVisitor(configuration, node);
  48349. },
  48350. _addForwardConfiguration$body$_EvaluateVisitor: function(configuration, node) {
  48351. var $async$goto = 0,
  48352. $async$completer = P._makeAsyncAwaitCompleter(type$.Configuration),
  48353. $async$returnValue, $async$self = this, t2, t3, _i, variable, t4, t5, t1, newValues, $async$temp1, $async$temp2, $async$temp3;
  48354. var $async$_async_evaluate$_addForwardConfiguration$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  48355. if ($async$errorCode === 1)
  48356. return P._asyncRethrow($async$result, $async$completer);
  48357. while (true)
  48358. switch ($async$goto) {
  48359. case 0:
  48360. // Function start
  48361. t1 = configuration._values;
  48362. newValues = P.LinkedHashMap_LinkedHashMap$of(new P.UnmodifiableMapView(t1, type$.UnmodifiableMapView_String_ConfiguredValue), type$.String, type$.ConfiguredValue);
  48363. t2 = node.configuration, t3 = t2.length, _i = 0;
  48364. case 3:
  48365. // for condition
  48366. if (!(_i < t3)) {
  48367. // goto after for
  48368. $async$goto = 5;
  48369. break;
  48370. }
  48371. variable = t2[_i];
  48372. if (variable.isGuarded) {
  48373. t4 = variable.name;
  48374. t5 = t1.get$isEmpty(t1) ? null : t1.remove$1(0, t4);
  48375. if (t5 != null && !J.$eq$(t5.value, C.C_SassNull0)) {
  48376. newValues.$indexSet(0, t4, t5);
  48377. // goto for update
  48378. $async$goto = 4;
  48379. break;
  48380. }
  48381. }
  48382. t4 = variable.name;
  48383. t5 = variable.expression;
  48384. $async$temp1 = newValues;
  48385. $async$temp2 = t4;
  48386. $async$temp3 = Z;
  48387. $async$goto = 6;
  48388. return P._asyncAwait(t5.accept$1($async$self), $async$_async_evaluate$_addForwardConfiguration$2);
  48389. case 6:
  48390. // returning from await.
  48391. $async$temp1.$indexSet(0, $async$temp2, new $async$temp3.ConfiguredValue($async$result.withoutSlash$0(), variable.span, $async$self._async_evaluate$_expressionNode$1(t5)));
  48392. case 4:
  48393. // for update
  48394. ++_i;
  48395. // goto for condition
  48396. $async$goto = 3;
  48397. break;
  48398. case 5:
  48399. // after for
  48400. $async$returnValue = new A.Configuration(newValues, node, false);
  48401. // goto return
  48402. $async$goto = 1;
  48403. break;
  48404. case 1:
  48405. // return
  48406. return P._asyncReturn($async$returnValue, $async$completer);
  48407. }
  48408. });
  48409. return P._asyncStartSync($async$_async_evaluate$_addForwardConfiguration$2, $async$completer);
  48410. },
  48411. _async_evaluate$_removeUsedConfiguration$3$except: function(upstream, downstream, except) {
  48412. var t1, t2, t3, _i, $name;
  48413. for (t1 = upstream._values, t2 = J.toList$0$ax(t1.get$keys()), t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i) {
  48414. $name = t2[_i];
  48415. if (except.contains$1(0, $name))
  48416. continue;
  48417. if (!downstream._values.containsKey$1($name))
  48418. if (!t1.get$isEmpty(t1))
  48419. t1.remove$1(0, $name);
  48420. }
  48421. },
  48422. _async_evaluate$_assertConfigurationIsEmpty$3$nameInError$only: function(configuration, nameInError, only) {
  48423. configuration._values.forEach$1(0, new E._EvaluateVisitor__assertConfigurationIsEmpty_closure0(this, only, nameInError));
  48424. },
  48425. _async_evaluate$_assertConfigurationIsEmpty$1: function(configuration) {
  48426. return this._async_evaluate$_assertConfigurationIsEmpty$3$nameInError$only(configuration, false, null);
  48427. },
  48428. _async_evaluate$_assertConfigurationIsEmpty$2$only: function(configuration, only) {
  48429. return this._async_evaluate$_assertConfigurationIsEmpty$3$nameInError$only(configuration, false, only);
  48430. },
  48431. _async_evaluate$_assertConfigurationIsEmpty$2$nameInError: function(configuration, nameInError) {
  48432. return this._async_evaluate$_assertConfigurationIsEmpty$3$nameInError$only(configuration, nameInError, null);
  48433. },
  48434. visitFunctionRule$1: function(node) {
  48435. return this.visitFunctionRule$body$_EvaluateVisitor(node);
  48436. },
  48437. visitFunctionRule$body$_EvaluateVisitor: function(node) {
  48438. var $async$goto = 0,
  48439. $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
  48440. $async$returnValue, $async$self = this, t1, t2, t3, index, t4;
  48441. var $async$visitFunctionRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  48442. if ($async$errorCode === 1)
  48443. return P._asyncRethrow($async$result, $async$completer);
  48444. while (true)
  48445. switch ($async$goto) {
  48446. case 0:
  48447. // Function start
  48448. t1 = $async$self._async_evaluate$_environment;
  48449. t2 = t1.closure$0();
  48450. t3 = t1._async_environment$_functions;
  48451. index = t3.length - 1;
  48452. t4 = node.name;
  48453. t1._async_environment$_functionIndices.$indexSet(0, t4, index);
  48454. J.$indexSet$ax(t3[index], t4, new E.UserDefinedCallable(node, t2, type$.UserDefinedCallable_AsyncEnvironment));
  48455. $async$returnValue = null;
  48456. // goto return
  48457. $async$goto = 1;
  48458. break;
  48459. case 1:
  48460. // return
  48461. return P._asyncReturn($async$returnValue, $async$completer);
  48462. }
  48463. });
  48464. return P._asyncStartSync($async$visitFunctionRule$1, $async$completer);
  48465. },
  48466. visitIfRule$1: function(node) {
  48467. return this.visitIfRule$body$_EvaluateVisitor(node);
  48468. },
  48469. visitIfRule$body$_EvaluateVisitor: function(node) {
  48470. var $async$goto = 0,
  48471. $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
  48472. $async$returnValue, $async$self = this, t1, t2, _i, clauseToCheck, _box_0;
  48473. var $async$visitIfRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  48474. if ($async$errorCode === 1)
  48475. return P._asyncRethrow($async$result, $async$completer);
  48476. while (true)
  48477. switch ($async$goto) {
  48478. case 0:
  48479. // Function start
  48480. _box_0 = {};
  48481. _box_0.clause = node.lastClause;
  48482. t1 = node.clauses, t2 = t1.length, _i = 0;
  48483. case 3:
  48484. // for condition
  48485. if (!(_i < t2)) {
  48486. // goto after for
  48487. $async$goto = 5;
  48488. break;
  48489. }
  48490. clauseToCheck = t1[_i];
  48491. $async$goto = 6;
  48492. return P._asyncAwait(clauseToCheck.expression.accept$1($async$self), $async$visitIfRule$1);
  48493. case 6:
  48494. // returning from await.
  48495. if ($async$result.get$isTruthy()) {
  48496. _box_0.clause = clauseToCheck;
  48497. // goto after for
  48498. $async$goto = 5;
  48499. break;
  48500. }
  48501. case 4:
  48502. // for update
  48503. ++_i;
  48504. // goto for condition
  48505. $async$goto = 3;
  48506. break;
  48507. case 5:
  48508. // after for
  48509. t1 = _box_0.clause;
  48510. if (t1 == null) {
  48511. $async$returnValue = null;
  48512. // goto return
  48513. $async$goto = 1;
  48514. break;
  48515. }
  48516. $async$goto = 7;
  48517. return P._asyncAwait($async$self._async_evaluate$_environment.scope$1$3$semiGlobal$when(new E._EvaluateVisitor_visitIfRule_closure0(_box_0, $async$self), true, t1.hasDeclarations, type$.Value), $async$visitIfRule$1);
  48518. case 7:
  48519. // returning from await.
  48520. $async$returnValue = $async$result;
  48521. // goto return
  48522. $async$goto = 1;
  48523. break;
  48524. case 1:
  48525. // return
  48526. return P._asyncReturn($async$returnValue, $async$completer);
  48527. }
  48528. });
  48529. return P._asyncStartSync($async$visitIfRule$1, $async$completer);
  48530. },
  48531. visitImportRule$1: function(node) {
  48532. return this.visitImportRule$body$_EvaluateVisitor(node);
  48533. },
  48534. visitImportRule$body$_EvaluateVisitor: function(node) {
  48535. var $async$goto = 0,
  48536. $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
  48537. $async$returnValue, $async$self = this, t1, t2, t3, _i, $import;
  48538. var $async$visitImportRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  48539. if ($async$errorCode === 1)
  48540. return P._asyncRethrow($async$result, $async$completer);
  48541. while (true)
  48542. switch ($async$goto) {
  48543. case 0:
  48544. // Function start
  48545. t1 = node.imports, t2 = t1.length, t3 = type$.StaticImport, _i = 0;
  48546. case 3:
  48547. // for condition
  48548. if (!(_i < t2)) {
  48549. // goto after for
  48550. $async$goto = 5;
  48551. break;
  48552. }
  48553. $import = t1[_i];
  48554. $async$goto = $import instanceof B.DynamicImport ? 6 : 8;
  48555. break;
  48556. case 6:
  48557. // then
  48558. $async$goto = 9;
  48559. return P._asyncAwait($async$self._async_evaluate$_visitDynamicImport$1($import), $async$visitImportRule$1);
  48560. case 9:
  48561. // returning from await.
  48562. // goto join
  48563. $async$goto = 7;
  48564. break;
  48565. case 8:
  48566. // else
  48567. $async$goto = 10;
  48568. return P._asyncAwait($async$self._visitStaticImport$1(t3._as($import)), $async$visitImportRule$1);
  48569. case 10:
  48570. // returning from await.
  48571. case 7:
  48572. // join
  48573. case 4:
  48574. // for update
  48575. ++_i;
  48576. // goto for condition
  48577. $async$goto = 3;
  48578. break;
  48579. case 5:
  48580. // after for
  48581. $async$returnValue = null;
  48582. // goto return
  48583. $async$goto = 1;
  48584. break;
  48585. case 1:
  48586. // return
  48587. return P._asyncReturn($async$returnValue, $async$completer);
  48588. }
  48589. });
  48590. return P._asyncStartSync($async$visitImportRule$1, $async$completer);
  48591. },
  48592. _async_evaluate$_visitDynamicImport$1: function($import) {
  48593. return this._async_evaluate$_withStackFrame$1$3("@import", $import, new E._EvaluateVisitor__visitDynamicImport_closure0(this, $import), type$.void);
  48594. },
  48595. _async_evaluate$_loadStylesheet$4$baseUrl$forImport: function(url, span, baseUrl, forImport) {
  48596. return this._loadStylesheet$body$_EvaluateVisitor(url, span, baseUrl, forImport);
  48597. },
  48598. _async_evaluate$_loadStylesheet$3$baseUrl: function(url, span, baseUrl) {
  48599. return this._async_evaluate$_loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, false);
  48600. },
  48601. _async_evaluate$_loadStylesheet$3$forImport: function(url, span, forImport) {
  48602. return this._async_evaluate$_loadStylesheet$4$baseUrl$forImport(url, span, null, forImport);
  48603. },
  48604. _loadStylesheet$body$_EvaluateVisitor: function(url, span, baseUrl, forImport) {
  48605. var $async$goto = 0,
  48606. $async$completer = P._makeAsyncAwaitCompleter(type$.Tuple2_AsyncImporter_Stylesheet),
  48607. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, tuple, error, error0, message, t1, t2, t3, exception, $async$exception;
  48608. var $async$_async_evaluate$_loadStylesheet$4$baseUrl$forImport = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  48609. if ($async$errorCode === 1) {
  48610. $async$currentError = $async$result;
  48611. $async$goto = $async$handler;
  48612. }
  48613. while (true)
  48614. switch ($async$goto) {
  48615. case 0:
  48616. // Function start
  48617. $async$handler = 4;
  48618. $async$self._async_evaluate$_importSpan = span;
  48619. t1 = P.Uri_parse(url);
  48620. t2 = $async$self._async_evaluate$_importer;
  48621. if (baseUrl == null) {
  48622. t3 = $async$self._async_evaluate$_stylesheet;
  48623. t3 = t3 == null ? null : t3.span;
  48624. t3 = t3 == null ? null : t3.file.url;
  48625. } else
  48626. t3 = baseUrl;
  48627. $async$goto = 7;
  48628. return P._asyncAwait($async$self._async_evaluate$_importCache.import$4$baseImporter$baseUrl$forImport(t1, t2, t3, forImport), $async$_async_evaluate$_loadStylesheet$4$baseUrl$forImport);
  48629. case 7:
  48630. // returning from await.
  48631. tuple = $async$result;
  48632. if (tuple != null) {
  48633. $async$returnValue = tuple;
  48634. $async$next = [1];
  48635. // goto finally
  48636. $async$goto = 5;
  48637. break;
  48638. }
  48639. if (C.JSString_methods.startsWith$1(url, "package:") && true)
  48640. throw H.wrapException('"package:" URLs aren\'t supported on this platform.');
  48641. else
  48642. throw H.wrapException("Can't find stylesheet to import.");
  48643. $async$next.push(6);
  48644. // goto finally
  48645. $async$goto = 5;
  48646. break;
  48647. case 4:
  48648. // catch
  48649. $async$handler = 3;
  48650. $async$exception = $async$currentError;
  48651. t1 = H.unwrapException($async$exception);
  48652. if (t1 instanceof E.SassException) {
  48653. error = t1;
  48654. t1 = $async$self._async_evaluate$_exception$2(error._span_exception$_message, error.get$span());
  48655. throw H.wrapException(t1);
  48656. } else {
  48657. error0 = t1;
  48658. message = null;
  48659. try {
  48660. message = H._asStringNullable(J.get$message$x(error0));
  48661. } catch (exception) {
  48662. H.unwrapException($async$exception);
  48663. message = J.toString$0$(error0);
  48664. }
  48665. t1 = $async$self._async_evaluate$_exception$1(message);
  48666. throw H.wrapException(t1);
  48667. }
  48668. $async$next.push(6);
  48669. // goto finally
  48670. $async$goto = 5;
  48671. break;
  48672. case 3:
  48673. // uncaught
  48674. $async$next = [2];
  48675. case 5:
  48676. // finally
  48677. $async$handler = 2;
  48678. $async$self._async_evaluate$_importSpan = null;
  48679. // goto the next finally handler
  48680. $async$goto = $async$next.pop();
  48681. break;
  48682. case 6:
  48683. // after finally
  48684. case 1:
  48685. // return
  48686. return P._asyncReturn($async$returnValue, $async$completer);
  48687. case 2:
  48688. // rethrow
  48689. return P._asyncRethrow($async$currentError, $async$completer);
  48690. }
  48691. });
  48692. return P._asyncStartSync($async$_async_evaluate$_loadStylesheet$4$baseUrl$forImport, $async$completer);
  48693. },
  48694. _visitStaticImport$1: function($import) {
  48695. return this._visitStaticImport$body$_EvaluateVisitor($import);
  48696. },
  48697. _visitStaticImport$body$_EvaluateVisitor: function($import) {
  48698. var $async$goto = 0,
  48699. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  48700. $async$returnValue, $async$self = this, resolvedSupports, t1, mediaQuery, node, t2, url, supports, $async$temp1, $async$temp2;
  48701. var $async$_visitStaticImport$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  48702. if ($async$errorCode === 1)
  48703. return P._asyncRethrow($async$result, $async$completer);
  48704. while (true)
  48705. switch ($async$goto) {
  48706. case 0:
  48707. // Function start
  48708. $async$goto = 3;
  48709. return P._asyncAwait($async$self._async_evaluate$_interpolationToValue$1($import.url), $async$_visitStaticImport$1);
  48710. case 3:
  48711. // returning from await.
  48712. url = $async$result;
  48713. supports = $import.supports;
  48714. $async$goto = supports instanceof L.SupportsDeclaration ? 4 : 6;
  48715. break;
  48716. case 4:
  48717. // then
  48718. $async$temp1 = H;
  48719. $async$goto = 7;
  48720. return P._asyncAwait($async$self._evaluateToCss$1(supports.name), $async$_visitStaticImport$1);
  48721. case 7:
  48722. // returning from await.
  48723. $async$temp1 = $async$temp1.S($async$result) + ": ";
  48724. $async$temp2 = H;
  48725. $async$goto = 8;
  48726. return P._asyncAwait($async$self._evaluateToCss$1(supports.value), $async$_visitStaticImport$1);
  48727. case 8:
  48728. // returning from await.
  48729. resolvedSupports = $async$temp1 + $async$temp2.S($async$result);
  48730. // goto join
  48731. $async$goto = 5;
  48732. break;
  48733. case 6:
  48734. // else
  48735. $async$goto = supports == null ? 9 : 11;
  48736. break;
  48737. case 9:
  48738. // then
  48739. $async$result = null;
  48740. // goto join
  48741. $async$goto = 10;
  48742. break;
  48743. case 11:
  48744. // else
  48745. $async$goto = 12;
  48746. return P._asyncAwait($async$self._async_evaluate$_visitSupportsCondition$1(supports), $async$_visitStaticImport$1);
  48747. case 12:
  48748. // returning from await.
  48749. case 10:
  48750. // join
  48751. resolvedSupports = $async$result;
  48752. case 5:
  48753. // join
  48754. t1 = $import.media;
  48755. $async$goto = t1 == null ? 13 : 15;
  48756. break;
  48757. case 13:
  48758. // then
  48759. $async$result = null;
  48760. // goto join
  48761. $async$goto = 14;
  48762. break;
  48763. case 15:
  48764. // else
  48765. $async$goto = 16;
  48766. return P._asyncAwait($async$self._async_evaluate$_visitMediaQueries$1(t1), $async$_visitStaticImport$1);
  48767. case 16:
  48768. // returning from await.
  48769. case 14:
  48770. // join
  48771. mediaQuery = $async$result;
  48772. t1 = $import.span;
  48773. node = F.ModifiableCssImport$(url, t1, mediaQuery, resolvedSupports == null ? null : new F.CssValue("supports(" + resolvedSupports + ")", supports.get$span(), type$.CssValue_String));
  48774. t1 = $async$self._async_evaluate$_parent;
  48775. t2 = $async$self._async_evaluate$_root;
  48776. if (t1 != t2)
  48777. t1.addChild$1(node);
  48778. else if ($async$self._async_evaluate$_endOfImports === J.get$length$asx(t2.children._collection$_source)) {
  48779. $async$self._async_evaluate$_root.addChild$1(node);
  48780. $async$self._async_evaluate$_endOfImports = $async$self._async_evaluate$_endOfImports + 1;
  48781. } else {
  48782. t1 = $async$self._async_evaluate$_outOfOrderImports;
  48783. (t1 == null ? $async$self._async_evaluate$_outOfOrderImports = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssImport) : t1).push(node);
  48784. }
  48785. $async$returnValue = null;
  48786. // goto return
  48787. $async$goto = 1;
  48788. break;
  48789. case 1:
  48790. // return
  48791. return P._asyncReturn($async$returnValue, $async$completer);
  48792. }
  48793. });
  48794. return P._asyncStartSync($async$_visitStaticImport$1, $async$completer);
  48795. },
  48796. visitIncludeRule$1: function(node) {
  48797. return this.visitIncludeRule$body$_EvaluateVisitor(node);
  48798. },
  48799. visitIncludeRule$body$_EvaluateVisitor: function(node) {
  48800. var $async$goto = 0,
  48801. $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
  48802. $async$returnValue, $async$self = this, nodeWithSpan, t1, t2, t3, contentCallable, mixin;
  48803. var $async$visitIncludeRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  48804. if ($async$errorCode === 1)
  48805. return P._asyncRethrow($async$result, $async$completer);
  48806. while (true)
  48807. switch ($async$goto) {
  48808. case 0:
  48809. // Function start
  48810. mixin = $async$self._async_evaluate$_addExceptionSpan$2(node, new E._EvaluateVisitor_visitIncludeRule_closure2($async$self, node));
  48811. if (mixin == null)
  48812. throw H.wrapException($async$self._async_evaluate$_exception$2("Undefined mixin.", node.span));
  48813. nodeWithSpan = new B._FakeAstNode(new E._EvaluateVisitor_visitIncludeRule_closure3(node));
  48814. $async$goto = type$.AsyncBuiltInCallable._is(mixin) ? 3 : 5;
  48815. break;
  48816. case 3:
  48817. // then
  48818. if (node.content != null)
  48819. throw H.wrapException($async$self._async_evaluate$_exception$2("Mixin doesn't accept a content block.", node.span));
  48820. $async$goto = 6;
  48821. return P._asyncAwait($async$self._async_evaluate$_runBuiltInCallable$3(node.$arguments, mixin, nodeWithSpan), $async$visitIncludeRule$1);
  48822. case 6:
  48823. // returning from await.
  48824. // goto join
  48825. $async$goto = 4;
  48826. break;
  48827. case 5:
  48828. // else
  48829. t1 = type$.UserDefinedCallable_AsyncEnvironment;
  48830. $async$goto = t1._is(mixin) ? 7 : 9;
  48831. break;
  48832. case 7:
  48833. // then
  48834. t2 = node.content;
  48835. t3 = t2 == null;
  48836. if (!t3 && !type$.MixinRule._as(mixin.declaration).hasContent)
  48837. throw H.wrapException(E.MultiSpanSassRuntimeException$("Mixin doesn't accept a content block.", node.get$spanWithoutContent(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([mixin.declaration.$arguments.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), $async$self._async_evaluate$_stackTrace$1(node.get$spanWithoutContent())));
  48838. contentCallable = t3 ? null : new E.UserDefinedCallable(t2, $async$self._async_evaluate$_environment.closure$0(), t1);
  48839. $async$goto = 10;
  48840. return P._asyncAwait($async$self._async_evaluate$_runUserDefinedCallable$4(node.$arguments, mixin, nodeWithSpan, new E._EvaluateVisitor_visitIncludeRule_closure4($async$self, contentCallable, mixin, nodeWithSpan)), $async$visitIncludeRule$1);
  48841. case 10:
  48842. // returning from await.
  48843. // goto join
  48844. $async$goto = 8;
  48845. break;
  48846. case 9:
  48847. // else
  48848. throw H.wrapException(P.UnsupportedError$("Unknown callable type " + mixin.toString$0(0) + "."));
  48849. case 8:
  48850. // join
  48851. case 4:
  48852. // join
  48853. $async$returnValue = null;
  48854. // goto return
  48855. $async$goto = 1;
  48856. break;
  48857. case 1:
  48858. // return
  48859. return P._asyncReturn($async$returnValue, $async$completer);
  48860. }
  48861. });
  48862. return P._asyncStartSync($async$visitIncludeRule$1, $async$completer);
  48863. },
  48864. visitMixinRule$1: function(node) {
  48865. return this.visitMixinRule$body$_EvaluateVisitor(node);
  48866. },
  48867. visitMixinRule$body$_EvaluateVisitor: function(node) {
  48868. var $async$goto = 0,
  48869. $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
  48870. $async$returnValue, $async$self = this, t1, t2, t3, index, t4;
  48871. var $async$visitMixinRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  48872. if ($async$errorCode === 1)
  48873. return P._asyncRethrow($async$result, $async$completer);
  48874. while (true)
  48875. switch ($async$goto) {
  48876. case 0:
  48877. // Function start
  48878. t1 = $async$self._async_evaluate$_environment;
  48879. t2 = t1.closure$0();
  48880. t3 = t1._async_environment$_mixins;
  48881. index = t3.length - 1;
  48882. t4 = node.name;
  48883. t1._async_environment$_mixinIndices.$indexSet(0, t4, index);
  48884. J.$indexSet$ax(t3[index], t4, new E.UserDefinedCallable(node, t2, type$.UserDefinedCallable_AsyncEnvironment));
  48885. $async$returnValue = null;
  48886. // goto return
  48887. $async$goto = 1;
  48888. break;
  48889. case 1:
  48890. // return
  48891. return P._asyncReturn($async$returnValue, $async$completer);
  48892. }
  48893. });
  48894. return P._asyncStartSync($async$visitMixinRule$1, $async$completer);
  48895. },
  48896. visitLoudComment$1: function(node) {
  48897. return this.visitLoudComment$body$_EvaluateVisitor(node);
  48898. },
  48899. visitLoudComment$body$_EvaluateVisitor: function(node) {
  48900. var $async$goto = 0,
  48901. $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
  48902. $async$returnValue, $async$self = this, t1, t2, $async$temp1, $async$temp2;
  48903. var $async$visitLoudComment$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  48904. if ($async$errorCode === 1)
  48905. return P._asyncRethrow($async$result, $async$completer);
  48906. while (true)
  48907. switch ($async$goto) {
  48908. case 0:
  48909. // Function start
  48910. if ($async$self._async_evaluate$_inFunction) {
  48911. $async$returnValue = null;
  48912. // goto return
  48913. $async$goto = 1;
  48914. break;
  48915. }
  48916. t1 = $async$self._async_evaluate$_parent;
  48917. t2 = $async$self._async_evaluate$_root;
  48918. if (t1 == t2 && $async$self._async_evaluate$_endOfImports === J.get$length$asx(t2.children._collection$_source))
  48919. $async$self._async_evaluate$_endOfImports = $async$self._async_evaluate$_endOfImports + 1;
  48920. t1 = node.text;
  48921. $async$temp1 = $async$self._async_evaluate$_parent;
  48922. $async$temp2 = R;
  48923. $async$goto = 3;
  48924. return P._asyncAwait($async$self._async_evaluate$_performInterpolation$1(t1), $async$visitLoudComment$1);
  48925. case 3:
  48926. // returning from await.
  48927. $async$temp1.addChild$1(new $async$temp2.ModifiableCssComment($async$result, t1.span));
  48928. $async$returnValue = null;
  48929. // goto return
  48930. $async$goto = 1;
  48931. break;
  48932. case 1:
  48933. // return
  48934. return P._asyncReturn($async$returnValue, $async$completer);
  48935. }
  48936. });
  48937. return P._asyncStartSync($async$visitLoudComment$1, $async$completer);
  48938. },
  48939. visitMediaRule$1: function(node) {
  48940. return this.visitMediaRule$body$_EvaluateVisitor(node);
  48941. },
  48942. visitMediaRule$body$_EvaluateVisitor: function(node) {
  48943. var $async$goto = 0,
  48944. $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
  48945. $async$returnValue, $async$self = this, queries, t1, mergedQueries;
  48946. var $async$visitMediaRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  48947. if ($async$errorCode === 1)
  48948. return P._asyncRethrow($async$result, $async$completer);
  48949. while (true)
  48950. switch ($async$goto) {
  48951. case 0:
  48952. // Function start
  48953. if ($async$self._async_evaluate$_declarationName != null)
  48954. throw H.wrapException($async$self._async_evaluate$_exception$2("Media rules may not be used within nested declarations.", node.span));
  48955. $async$goto = 3;
  48956. return P._asyncAwait($async$self._async_evaluate$_visitMediaQueries$1(node.query), $async$visitMediaRule$1);
  48957. case 3:
  48958. // returning from await.
  48959. queries = $async$result;
  48960. t1 = $async$self._async_evaluate$_mediaQueries;
  48961. mergedQueries = t1 == null ? null : $async$self._async_evaluate$_mergeMediaQueries$2(t1, queries);
  48962. t1 = mergedQueries == null;
  48963. if (!t1 && mergedQueries.length === 0) {
  48964. $async$returnValue = null;
  48965. // goto return
  48966. $async$goto = 1;
  48967. break;
  48968. }
  48969. t1 = t1 ? queries : mergedQueries;
  48970. $async$goto = 4;
  48971. return P._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(G.ModifiableCssMediaRule$(t1, node.span), new E._EvaluateVisitor_visitMediaRule_closure1($async$self, mergedQueries, queries, node), node.hasDeclarations, new E._EvaluateVisitor_visitMediaRule_closure2(mergedQueries), type$.ModifiableCssMediaRule, type$.Null), $async$visitMediaRule$1);
  48972. case 4:
  48973. // returning from await.
  48974. $async$returnValue = null;
  48975. // goto return
  48976. $async$goto = 1;
  48977. break;
  48978. case 1:
  48979. // return
  48980. return P._asyncReturn($async$returnValue, $async$completer);
  48981. }
  48982. });
  48983. return P._asyncStartSync($async$visitMediaRule$1, $async$completer);
  48984. },
  48985. _async_evaluate$_visitMediaQueries$1: function(interpolation) {
  48986. return this._visitMediaQueries$body$_EvaluateVisitor(interpolation);
  48987. },
  48988. _visitMediaQueries$body$_EvaluateVisitor: function(interpolation) {
  48989. var $async$goto = 0,
  48990. $async$completer = P._makeAsyncAwaitCompleter(type$.List_CssMediaQuery),
  48991. $async$returnValue, $async$self = this, $async$temp1, $async$temp2;
  48992. var $async$_async_evaluate$_visitMediaQueries$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  48993. if ($async$errorCode === 1)
  48994. return P._asyncRethrow($async$result, $async$completer);
  48995. while (true)
  48996. switch ($async$goto) {
  48997. case 0:
  48998. // Function start
  48999. $async$temp1 = interpolation;
  49000. $async$temp2 = E;
  49001. $async$goto = 3;
  49002. return P._asyncAwait($async$self._async_evaluate$_performInterpolation$2$warnForColor(interpolation, true), $async$_async_evaluate$_visitMediaQueries$1);
  49003. case 3:
  49004. // returning from await.
  49005. $async$returnValue = $async$self._async_evaluate$_adjustParseError$2($async$temp1, new $async$temp2._EvaluateVisitor__visitMediaQueries_closure0($async$self, $async$result));
  49006. // goto return
  49007. $async$goto = 1;
  49008. break;
  49009. case 1:
  49010. // return
  49011. return P._asyncReturn($async$returnValue, $async$completer);
  49012. }
  49013. });
  49014. return P._asyncStartSync($async$_async_evaluate$_visitMediaQueries$1, $async$completer);
  49015. },
  49016. _async_evaluate$_mergeMediaQueries$2: function(queries1, queries2) {
  49017. var t1, t2, t3, t4, t5, result,
  49018. queries = H.setRuntimeTypeInfo([], type$.JSArray_CssMediaQuery);
  49019. for (t1 = J.get$iterator$ax(queries1), t2 = J.getInterceptor$ax(queries2), t3 = type$.MediaQuerySuccessfulMergeResult; t1.moveNext$0();) {
  49020. t4 = t1.get$current(t1);
  49021. for (t5 = t2.get$iterator(queries2); t5.moveNext$0();) {
  49022. result = t4.merge$1(t5.get$current(t5));
  49023. if (result === C._SingletonCssMediaQueryMergeResult_empty)
  49024. continue;
  49025. if (result === C._SingletonCssMediaQueryMergeResult_unrepresentable)
  49026. return null;
  49027. queries.push(t3._as(result).query);
  49028. }
  49029. }
  49030. return queries;
  49031. },
  49032. visitReturnRule$1: function(node) {
  49033. return node.expression.accept$1(this);
  49034. },
  49035. visitSilentComment$1: function(node) {
  49036. return this.visitSilentComment$body$_EvaluateVisitor(node);
  49037. },
  49038. visitSilentComment$body$_EvaluateVisitor: function(node) {
  49039. var $async$goto = 0,
  49040. $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
  49041. $async$returnValue;
  49042. var $async$visitSilentComment$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49043. if ($async$errorCode === 1)
  49044. return P._asyncRethrow($async$result, $async$completer);
  49045. while (true)
  49046. switch ($async$goto) {
  49047. case 0:
  49048. // Function start
  49049. $async$returnValue = null;
  49050. // goto return
  49051. $async$goto = 1;
  49052. break;
  49053. case 1:
  49054. // return
  49055. return P._asyncReturn($async$returnValue, $async$completer);
  49056. }
  49057. });
  49058. return P._asyncStartSync($async$visitSilentComment$1, $async$completer);
  49059. },
  49060. visitStyleRule$1: function(node) {
  49061. return this.visitStyleRule$body$_EvaluateVisitor(node);
  49062. },
  49063. visitStyleRule$body$_EvaluateVisitor: function(node) {
  49064. var $async$goto = 0,
  49065. $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
  49066. $async$returnValue, $async$self = this, t2, selectorText, t3, parsedSelector, rule, oldAtRootExcludingStyleRule, t1;
  49067. var $async$visitStyleRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49068. if ($async$errorCode === 1)
  49069. return P._asyncRethrow($async$result, $async$completer);
  49070. while (true)
  49071. switch ($async$goto) {
  49072. case 0:
  49073. // Function start
  49074. t1 = {};
  49075. if ($async$self._async_evaluate$_declarationName != null)
  49076. throw H.wrapException($async$self._async_evaluate$_exception$2("Style rules may not be used within nested declarations.", node.span));
  49077. t2 = node.selector;
  49078. $async$goto = 3;
  49079. return P._asyncAwait($async$self._async_evaluate$_interpolationToValue$3$trim$warnForColor(t2, true, true), $async$visitStyleRule$1);
  49080. case 3:
  49081. // returning from await.
  49082. selectorText = $async$result;
  49083. $async$goto = $async$self._async_evaluate$_inKeyframes ? 4 : 5;
  49084. break;
  49085. case 4:
  49086. // then
  49087. t1 = P.List_List$unmodifiable($async$self._async_evaluate$_adjustParseError$2(t2, new E._EvaluateVisitor_visitStyleRule_closure6($async$self, selectorText)), type$.String);
  49088. t3 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
  49089. $async$goto = 6;
  49090. return P._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(new U.ModifiableCssKeyframeBlock(new F.CssValue(t1, t2.span, type$.CssValue_List_String), node.span, new P.UnmodifiableListView(t3, type$.UnmodifiableListView_ModifiableCssNode), t3), new E._EvaluateVisitor_visitStyleRule_closure7($async$self, node), node.hasDeclarations, new E._EvaluateVisitor_visitStyleRule_closure8(), type$.ModifiableCssKeyframeBlock, type$.Null), $async$visitStyleRule$1);
  49091. case 6:
  49092. // returning from await.
  49093. $async$returnValue = null;
  49094. // goto return
  49095. $async$goto = 1;
  49096. break;
  49097. case 5:
  49098. // join
  49099. t1.parsedSelector = $async$self._async_evaluate$_adjustParseError$2(t2, new E._EvaluateVisitor_visitStyleRule_closure9($async$self, selectorText));
  49100. parsedSelector = $async$self._async_evaluate$_addExceptionSpan$2(t2, new E._EvaluateVisitor_visitStyleRule_closure10(t1, $async$self));
  49101. t1.parsedSelector = parsedSelector;
  49102. rule = X.ModifiableCssStyleRule$($async$self._async_evaluate$_extender.addSelector$3(parsedSelector, t2.span, $async$self._async_evaluate$_mediaQueries), node.span, t1.parsedSelector);
  49103. oldAtRootExcludingStyleRule = $async$self._async_evaluate$_atRootExcludingStyleRule;
  49104. $async$self._async_evaluate$_atRootExcludingStyleRule = false;
  49105. $async$goto = 7;
  49106. return P._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(rule, new E._EvaluateVisitor_visitStyleRule_closure11($async$self, rule, node), node.hasDeclarations, new E._EvaluateVisitor_visitStyleRule_closure12(), type$.ModifiableCssStyleRule, type$.Null), $async$visitStyleRule$1);
  49107. case 7:
  49108. // returning from await.
  49109. $async$self._async_evaluate$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  49110. if (!($async$self._async_evaluate$_styleRule != null && !oldAtRootExcludingStyleRule)) {
  49111. t1 = $async$self._async_evaluate$_parent.children;
  49112. t1 = !t1.get$isEmpty(t1);
  49113. } else
  49114. t1 = false;
  49115. if (t1) {
  49116. t1 = $async$self._async_evaluate$_parent.children;
  49117. t1.get$last(t1).isGroupEnd = true;
  49118. }
  49119. $async$returnValue = null;
  49120. // goto return
  49121. $async$goto = 1;
  49122. break;
  49123. case 1:
  49124. // return
  49125. return P._asyncReturn($async$returnValue, $async$completer);
  49126. }
  49127. });
  49128. return P._asyncStartSync($async$visitStyleRule$1, $async$completer);
  49129. },
  49130. visitSupportsRule$1: function(node) {
  49131. return this.visitSupportsRule$body$_EvaluateVisitor(node);
  49132. },
  49133. visitSupportsRule$body$_EvaluateVisitor: function(node) {
  49134. var $async$goto = 0,
  49135. $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
  49136. $async$returnValue, $async$self = this, t1, t2, t3;
  49137. var $async$visitSupportsRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49138. if ($async$errorCode === 1)
  49139. return P._asyncRethrow($async$result, $async$completer);
  49140. while (true)
  49141. switch ($async$goto) {
  49142. case 0:
  49143. // Function start
  49144. if ($async$self._async_evaluate$_declarationName != null)
  49145. throw H.wrapException($async$self._async_evaluate$_exception$2("Supports rules may not be used within nested declarations.", node.span));
  49146. t1 = node.condition;
  49147. $async$goto = 3;
  49148. return P._asyncAwait($async$self._async_evaluate$_visitSupportsCondition$1(t1), $async$visitSupportsRule$1);
  49149. case 3:
  49150. // returning from await.
  49151. t2 = $async$result;
  49152. t1 = t1.get$span();
  49153. t3 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
  49154. $async$goto = 4;
  49155. return P._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(new B.ModifiableCssSupportsRule(new F.CssValue(t2, t1, type$.CssValue_String), node.span, new P.UnmodifiableListView(t3, type$.UnmodifiableListView_ModifiableCssNode), t3), new E._EvaluateVisitor_visitSupportsRule_closure1($async$self, node), node.hasDeclarations, new E._EvaluateVisitor_visitSupportsRule_closure2(), type$.ModifiableCssSupportsRule, type$.Null), $async$visitSupportsRule$1);
  49156. case 4:
  49157. // returning from await.
  49158. $async$returnValue = null;
  49159. // goto return
  49160. $async$goto = 1;
  49161. break;
  49162. case 1:
  49163. // return
  49164. return P._asyncReturn($async$returnValue, $async$completer);
  49165. }
  49166. });
  49167. return P._asyncStartSync($async$visitSupportsRule$1, $async$completer);
  49168. },
  49169. _async_evaluate$_visitSupportsCondition$1: function(condition) {
  49170. return this._visitSupportsCondition$body$_EvaluateVisitor(condition);
  49171. },
  49172. _visitSupportsCondition$body$_EvaluateVisitor: function(condition) {
  49173. var $async$goto = 0,
  49174. $async$completer = P._makeAsyncAwaitCompleter(type$.String),
  49175. $async$returnValue, $async$self = this, t1, t2, $async$temp1, $async$temp2;
  49176. var $async$_async_evaluate$_visitSupportsCondition$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49177. if ($async$errorCode === 1)
  49178. return P._asyncRethrow($async$result, $async$completer);
  49179. while (true)
  49180. switch ($async$goto) {
  49181. case 0:
  49182. // Function start
  49183. $async$goto = condition instanceof U.SupportsOperation ? 3 : 5;
  49184. break;
  49185. case 3:
  49186. // then
  49187. t1 = condition.left;
  49188. t2 = condition.operator;
  49189. $async$temp1 = H;
  49190. $async$goto = 6;
  49191. return P._asyncAwait($async$self._async_evaluate$_parenthesize$2(t1, t2), $async$_async_evaluate$_visitSupportsCondition$1);
  49192. case 6:
  49193. // returning from await.
  49194. $async$temp1 = $async$temp1.S($async$result) + " " + t2 + " ";
  49195. $async$temp2 = H;
  49196. $async$goto = 7;
  49197. return P._asyncAwait($async$self._async_evaluate$_parenthesize$2(condition.right, t2), $async$_async_evaluate$_visitSupportsCondition$1);
  49198. case 7:
  49199. // returning from await.
  49200. $async$returnValue = $async$temp1 + $async$temp2.S($async$result);
  49201. // goto return
  49202. $async$goto = 1;
  49203. break;
  49204. // goto join
  49205. $async$goto = 4;
  49206. break;
  49207. case 5:
  49208. // else
  49209. $async$goto = condition instanceof M.SupportsNegation ? 8 : 10;
  49210. break;
  49211. case 8:
  49212. // then
  49213. $async$temp1 = H;
  49214. $async$goto = 11;
  49215. return P._asyncAwait($async$self._async_evaluate$_parenthesize$1(condition.condition), $async$_async_evaluate$_visitSupportsCondition$1);
  49216. case 11:
  49217. // returning from await.
  49218. $async$returnValue = "not " + $async$temp1.S($async$result);
  49219. // goto return
  49220. $async$goto = 1;
  49221. break;
  49222. // goto join
  49223. $async$goto = 9;
  49224. break;
  49225. case 10:
  49226. // else
  49227. $async$goto = condition instanceof X.SupportsInterpolation ? 12 : 14;
  49228. break;
  49229. case 12:
  49230. // then
  49231. $async$goto = 15;
  49232. return P._asyncAwait($async$self._evaluateToCss$2$quote(condition.expression, false), $async$_async_evaluate$_visitSupportsCondition$1);
  49233. case 15:
  49234. // returning from await.
  49235. $async$returnValue = $async$result;
  49236. // goto return
  49237. $async$goto = 1;
  49238. break;
  49239. // goto join
  49240. $async$goto = 13;
  49241. break;
  49242. case 14:
  49243. // else
  49244. $async$goto = condition instanceof L.SupportsDeclaration ? 16 : 18;
  49245. break;
  49246. case 16:
  49247. // then
  49248. $async$temp1 = H;
  49249. $async$goto = 19;
  49250. return P._asyncAwait($async$self._evaluateToCss$1(condition.name), $async$_async_evaluate$_visitSupportsCondition$1);
  49251. case 19:
  49252. // returning from await.
  49253. $async$temp1 = "(" + $async$temp1.S($async$result) + ": ";
  49254. $async$temp2 = H;
  49255. $async$goto = 20;
  49256. return P._asyncAwait($async$self._evaluateToCss$1(condition.value), $async$_async_evaluate$_visitSupportsCondition$1);
  49257. case 20:
  49258. // returning from await.
  49259. $async$returnValue = $async$temp1 + $async$temp2.S($async$result) + ")";
  49260. // goto return
  49261. $async$goto = 1;
  49262. break;
  49263. // goto join
  49264. $async$goto = 17;
  49265. break;
  49266. case 18:
  49267. // else
  49268. $async$returnValue = null;
  49269. // goto return
  49270. $async$goto = 1;
  49271. break;
  49272. case 17:
  49273. // join
  49274. case 13:
  49275. // join
  49276. case 9:
  49277. // join
  49278. case 4:
  49279. // join
  49280. case 1:
  49281. // return
  49282. return P._asyncReturn($async$returnValue, $async$completer);
  49283. }
  49284. });
  49285. return P._asyncStartSync($async$_async_evaluate$_visitSupportsCondition$1, $async$completer);
  49286. },
  49287. _async_evaluate$_parenthesize$2: function(condition, operator) {
  49288. return this._parenthesize$body$_EvaluateVisitor(condition, operator);
  49289. },
  49290. _async_evaluate$_parenthesize$1: function(condition) {
  49291. return this._async_evaluate$_parenthesize$2(condition, null);
  49292. },
  49293. _parenthesize$body$_EvaluateVisitor: function(condition, operator) {
  49294. var $async$goto = 0,
  49295. $async$completer = P._makeAsyncAwaitCompleter(type$.String),
  49296. $async$returnValue, $async$self = this, t1, $async$temp1;
  49297. var $async$_async_evaluate$_parenthesize$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49298. if ($async$errorCode === 1)
  49299. return P._asyncRethrow($async$result, $async$completer);
  49300. while (true)
  49301. switch ($async$goto) {
  49302. case 0:
  49303. // Function start
  49304. if (!(condition instanceof M.SupportsNegation))
  49305. if (condition instanceof U.SupportsOperation)
  49306. t1 = operator == null || operator !== condition.operator;
  49307. else
  49308. t1 = false;
  49309. else
  49310. t1 = true;
  49311. $async$goto = t1 ? 3 : 5;
  49312. break;
  49313. case 3:
  49314. // then
  49315. $async$temp1 = H;
  49316. $async$goto = 6;
  49317. return P._asyncAwait($async$self._async_evaluate$_visitSupportsCondition$1(condition), $async$_async_evaluate$_parenthesize$2);
  49318. case 6:
  49319. // returning from await.
  49320. $async$returnValue = "(" + $async$temp1.S($async$result) + ")";
  49321. // goto return
  49322. $async$goto = 1;
  49323. break;
  49324. // goto join
  49325. $async$goto = 4;
  49326. break;
  49327. case 5:
  49328. // else
  49329. $async$goto = 7;
  49330. return P._asyncAwait($async$self._async_evaluate$_visitSupportsCondition$1(condition), $async$_async_evaluate$_parenthesize$2);
  49331. case 7:
  49332. // returning from await.
  49333. $async$returnValue = $async$result;
  49334. // goto return
  49335. $async$goto = 1;
  49336. break;
  49337. case 4:
  49338. // join
  49339. case 1:
  49340. // return
  49341. return P._asyncReturn($async$returnValue, $async$completer);
  49342. }
  49343. });
  49344. return P._asyncStartSync($async$_async_evaluate$_parenthesize$2, $async$completer);
  49345. },
  49346. visitVariableDeclaration$1: function(node) {
  49347. return this.visitVariableDeclaration$body$_EvaluateVisitor(node);
  49348. },
  49349. visitVariableDeclaration$body$_EvaluateVisitor: function(node) {
  49350. var $async$goto = 0,
  49351. $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
  49352. $async$returnValue, $async$self = this, t1, value, t2, $async$temp1, $async$temp2, $async$temp3;
  49353. var $async$visitVariableDeclaration$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49354. if ($async$errorCode === 1)
  49355. return P._asyncRethrow($async$result, $async$completer);
  49356. while (true)
  49357. switch ($async$goto) {
  49358. case 0:
  49359. // Function start
  49360. if (node.isGuarded) {
  49361. if (node.namespace == null && $async$self._async_evaluate$_environment._async_environment$_variables.length === 1) {
  49362. t1 = $async$self._async_evaluate$_configuration._values;
  49363. t1 = t1.get$isEmpty(t1) ? null : t1.remove$1(0, node.name);
  49364. if (t1 != null) {
  49365. $async$self._async_evaluate$_addExceptionSpan$2(node, new E._EvaluateVisitor_visitVariableDeclaration_closure2($async$self, node, t1));
  49366. $async$returnValue = null;
  49367. // goto return
  49368. $async$goto = 1;
  49369. break;
  49370. }
  49371. }
  49372. value = $async$self._async_evaluate$_addExceptionSpan$2(node, new E._EvaluateVisitor_visitVariableDeclaration_closure3($async$self, node));
  49373. if (value != null && !value.$eq(0, C.C_SassNull0)) {
  49374. $async$returnValue = null;
  49375. // goto return
  49376. $async$goto = 1;
  49377. break;
  49378. }
  49379. }
  49380. if (node.isGlobal && !$async$self._async_evaluate$_environment.globalVariableExists$1(node.name)) {
  49381. t1 = $async$self._async_evaluate$_environment._async_environment$_variables.length === 1 ? "As of Dart Sass 2.0.0, !global assignments won't be able to\ndeclare new variables. Since this assignment is at the root of the stylesheet,\nthe !global flag is unnecessary and can safely be removed." : "As of Dart Sass 2.0.0, !global assignments won't be able to\ndeclare new variables. Consider adding `" + B.declarationName(node.span) + ": null` at the root of the\nstylesheet.";
  49382. t2 = node.span;
  49383. $async$self._async_evaluate$_logger.warn$4$deprecation$span$trace(t1, true, t2, $async$self._async_evaluate$_stackTrace$1(t2));
  49384. }
  49385. $async$temp1 = node;
  49386. $async$temp2 = E;
  49387. $async$temp3 = node;
  49388. $async$goto = 3;
  49389. return P._asyncAwait(node.expression.accept$1($async$self), $async$visitVariableDeclaration$1);
  49390. case 3:
  49391. // returning from await.
  49392. $async$self._async_evaluate$_addExceptionSpan$2($async$temp1, new $async$temp2._EvaluateVisitor_visitVariableDeclaration_closure4($async$self, $async$temp3, $async$result.withoutSlash$0()));
  49393. $async$returnValue = null;
  49394. // goto return
  49395. $async$goto = 1;
  49396. break;
  49397. case 1:
  49398. // return
  49399. return P._asyncReturn($async$returnValue, $async$completer);
  49400. }
  49401. });
  49402. return P._asyncStartSync($async$visitVariableDeclaration$1, $async$completer);
  49403. },
  49404. visitUseRule$1: function(node) {
  49405. return this.visitUseRule$body$_EvaluateVisitor(node);
  49406. },
  49407. visitUseRule$body$_EvaluateVisitor: function(node) {
  49408. var $async$goto = 0,
  49409. $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
  49410. $async$returnValue, $async$self = this, configuration, t3, _i, variable, t4, t5, t1, t2, $async$temp1, $async$temp2, $async$temp3;
  49411. var $async$visitUseRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49412. if ($async$errorCode === 1)
  49413. return P._asyncRethrow($async$result, $async$completer);
  49414. while (true)
  49415. switch ($async$goto) {
  49416. case 0:
  49417. // Function start
  49418. t1 = node.configuration;
  49419. t2 = t1.length;
  49420. $async$goto = t2 === 0 ? 3 : 5;
  49421. break;
  49422. case 3:
  49423. // then
  49424. configuration = C.Configuration_Map_empty_null_true;
  49425. // goto join
  49426. $async$goto = 4;
  49427. break;
  49428. case 5:
  49429. // else
  49430. t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue);
  49431. _i = 0;
  49432. case 6:
  49433. // for condition
  49434. if (!(_i < t2)) {
  49435. // goto after for
  49436. $async$goto = 8;
  49437. break;
  49438. }
  49439. variable = t1[_i];
  49440. t4 = variable.name;
  49441. t5 = variable.expression;
  49442. $async$temp1 = t3;
  49443. $async$temp2 = t4;
  49444. $async$temp3 = Z;
  49445. $async$goto = 9;
  49446. return P._asyncAwait(t5.accept$1($async$self), $async$visitUseRule$1);
  49447. case 9:
  49448. // returning from await.
  49449. $async$temp1.$indexSet(0, $async$temp2, new $async$temp3.ConfiguredValue($async$result.withoutSlash$0(), variable.span, $async$self._async_evaluate$_expressionNode$1(t5)));
  49450. case 7:
  49451. // for update
  49452. ++_i;
  49453. // goto for condition
  49454. $async$goto = 6;
  49455. break;
  49456. case 8:
  49457. // after for
  49458. configuration = new A.Configuration(t3, node, false);
  49459. case 4:
  49460. // join
  49461. $async$goto = 10;
  49462. return P._asyncAwait($async$self._async_evaluate$_loadModule$5$configuration(node.url, "@use", node, new E._EvaluateVisitor_visitUseRule_closure0($async$self, node), configuration), $async$visitUseRule$1);
  49463. case 10:
  49464. // returning from await.
  49465. $async$self._async_evaluate$_assertConfigurationIsEmpty$1(configuration);
  49466. $async$returnValue = null;
  49467. // goto return
  49468. $async$goto = 1;
  49469. break;
  49470. case 1:
  49471. // return
  49472. return P._asyncReturn($async$returnValue, $async$completer);
  49473. }
  49474. });
  49475. return P._asyncStartSync($async$visitUseRule$1, $async$completer);
  49476. },
  49477. visitWarnRule$1: function(node) {
  49478. return this.visitWarnRule$body$_EvaluateVisitor(node);
  49479. },
  49480. visitWarnRule$body$_EvaluateVisitor: function(node) {
  49481. var $async$goto = 0,
  49482. $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
  49483. $async$returnValue, $async$self = this, value, t1;
  49484. var $async$visitWarnRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49485. if ($async$errorCode === 1)
  49486. return P._asyncRethrow($async$result, $async$completer);
  49487. while (true)
  49488. switch ($async$goto) {
  49489. case 0:
  49490. // Function start
  49491. $async$goto = 3;
  49492. return P._asyncAwait($async$self._addExceptionSpanAsync$1$2(node, new E._EvaluateVisitor_visitWarnRule_closure0($async$self, node), type$.Value), $async$visitWarnRule$1);
  49493. case 3:
  49494. // returning from await.
  49495. value = $async$result;
  49496. t1 = value instanceof D.SassString ? value.text : $async$self._async_evaluate$_serialize$2(value, node.expression);
  49497. $async$self._async_evaluate$_logger.warn$2$trace(t1, $async$self._async_evaluate$_stackTrace$1(node.span));
  49498. $async$returnValue = null;
  49499. // goto return
  49500. $async$goto = 1;
  49501. break;
  49502. case 1:
  49503. // return
  49504. return P._asyncReturn($async$returnValue, $async$completer);
  49505. }
  49506. });
  49507. return P._asyncStartSync($async$visitWarnRule$1, $async$completer);
  49508. },
  49509. visitWhileRule$1: function(node) {
  49510. return this._async_evaluate$_environment.scope$1$3$semiGlobal$when(new E._EvaluateVisitor_visitWhileRule_closure0(this, node), true, node.hasDeclarations, type$.Value);
  49511. },
  49512. visitBinaryOperationExpression$1: function(node) {
  49513. return this._addExceptionSpanAsync$1$2(node, new E._EvaluateVisitor_visitBinaryOperationExpression_closure0(this, node), type$.Value);
  49514. },
  49515. visitValueExpression$1: function(node) {
  49516. return this.visitValueExpression$body$_EvaluateVisitor(node);
  49517. },
  49518. visitValueExpression$body$_EvaluateVisitor: function(node) {
  49519. var $async$goto = 0,
  49520. $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
  49521. $async$returnValue;
  49522. var $async$visitValueExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49523. if ($async$errorCode === 1)
  49524. return P._asyncRethrow($async$result, $async$completer);
  49525. while (true)
  49526. switch ($async$goto) {
  49527. case 0:
  49528. // Function start
  49529. $async$returnValue = node.value;
  49530. // goto return
  49531. $async$goto = 1;
  49532. break;
  49533. case 1:
  49534. // return
  49535. return P._asyncReturn($async$returnValue, $async$completer);
  49536. }
  49537. });
  49538. return P._asyncStartSync($async$visitValueExpression$1, $async$completer);
  49539. },
  49540. visitVariableExpression$1: function(node) {
  49541. return this.visitVariableExpression$body$_EvaluateVisitor(node);
  49542. },
  49543. visitVariableExpression$body$_EvaluateVisitor: function(node) {
  49544. var $async$goto = 0,
  49545. $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
  49546. $async$returnValue, $async$self = this, result;
  49547. var $async$visitVariableExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49548. if ($async$errorCode === 1)
  49549. return P._asyncRethrow($async$result, $async$completer);
  49550. while (true)
  49551. switch ($async$goto) {
  49552. case 0:
  49553. // Function start
  49554. result = $async$self._async_evaluate$_addExceptionSpan$2(node, new E._EvaluateVisitor_visitVariableExpression_closure0($async$self, node));
  49555. if (result != null) {
  49556. $async$returnValue = result;
  49557. // goto return
  49558. $async$goto = 1;
  49559. break;
  49560. }
  49561. throw H.wrapException($async$self._async_evaluate$_exception$2("Undefined variable.", node.span));
  49562. case 1:
  49563. // return
  49564. return P._asyncReturn($async$returnValue, $async$completer);
  49565. }
  49566. });
  49567. return P._asyncStartSync($async$visitVariableExpression$1, $async$completer);
  49568. },
  49569. visitUnaryOperationExpression$1: function(node) {
  49570. return this.visitUnaryOperationExpression$body$_EvaluateVisitor(node);
  49571. },
  49572. visitUnaryOperationExpression$body$_EvaluateVisitor: function(node) {
  49573. var $async$goto = 0,
  49574. $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
  49575. $async$returnValue, $async$self = this, operand, t1;
  49576. var $async$visitUnaryOperationExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49577. if ($async$errorCode === 1)
  49578. return P._asyncRethrow($async$result, $async$completer);
  49579. while (true)
  49580. $async$outer:
  49581. switch ($async$goto) {
  49582. case 0:
  49583. // Function start
  49584. $async$goto = 3;
  49585. return P._asyncAwait(node.operand.accept$1($async$self), $async$visitUnaryOperationExpression$1);
  49586. case 3:
  49587. // returning from await.
  49588. operand = $async$result;
  49589. t1 = node.operator;
  49590. switch (t1) {
  49591. case C.UnaryOperator_j2w:
  49592. $async$returnValue = operand.unaryPlus$0();
  49593. // goto return
  49594. $async$goto = 1;
  49595. break $async$outer;
  49596. case C.UnaryOperator_U4G:
  49597. $async$returnValue = operand.unaryMinus$0();
  49598. // goto return
  49599. $async$goto = 1;
  49600. break $async$outer;
  49601. case C.UnaryOperator_zDx:
  49602. operand.toString;
  49603. $async$returnValue = new D.SassString("/" + N.serializeValue0(operand, false, true), false);
  49604. // goto return
  49605. $async$goto = 1;
  49606. break $async$outer;
  49607. case C.UnaryOperator_not_not:
  49608. $async$returnValue = operand.unaryNot$0();
  49609. // goto return
  49610. $async$goto = 1;
  49611. break $async$outer;
  49612. default:
  49613. throw H.wrapException(P.StateError$("Unknown unary operator " + H.S(t1) + "."));
  49614. }
  49615. case 1:
  49616. // return
  49617. return P._asyncReturn($async$returnValue, $async$completer);
  49618. }
  49619. });
  49620. return P._asyncStartSync($async$visitUnaryOperationExpression$1, $async$completer);
  49621. },
  49622. visitBooleanExpression$1: function(node) {
  49623. return this.visitBooleanExpression$body$_EvaluateVisitor(node);
  49624. },
  49625. visitBooleanExpression$body$_EvaluateVisitor: function(node) {
  49626. var $async$goto = 0,
  49627. $async$completer = P._makeAsyncAwaitCompleter(type$.SassBoolean),
  49628. $async$returnValue;
  49629. var $async$visitBooleanExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49630. if ($async$errorCode === 1)
  49631. return P._asyncRethrow($async$result, $async$completer);
  49632. while (true)
  49633. switch ($async$goto) {
  49634. case 0:
  49635. // Function start
  49636. $async$returnValue = node.value ? C.SassBoolean_true0 : C.SassBoolean_false0;
  49637. // goto return
  49638. $async$goto = 1;
  49639. break;
  49640. case 1:
  49641. // return
  49642. return P._asyncReturn($async$returnValue, $async$completer);
  49643. }
  49644. });
  49645. return P._asyncStartSync($async$visitBooleanExpression$1, $async$completer);
  49646. },
  49647. visitIfExpression$1: function(node) {
  49648. return this.visitIfExpression$body$_EvaluateVisitor(node);
  49649. },
  49650. visitIfExpression$body$_EvaluateVisitor: function(node) {
  49651. var $async$goto = 0,
  49652. $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
  49653. $async$returnValue, $async$self = this, condition, ifTrue, ifFalse, pair, positional, named, t1;
  49654. var $async$visitIfExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49655. if ($async$errorCode === 1)
  49656. return P._asyncRethrow($async$result, $async$completer);
  49657. while (true)
  49658. switch ($async$goto) {
  49659. case 0:
  49660. // Function start
  49661. $async$goto = 3;
  49662. return P._asyncAwait($async$self._async_evaluate$_evaluateMacroArguments$1(node), $async$visitIfExpression$1);
  49663. case 3:
  49664. // returning from await.
  49665. pair = $async$result;
  49666. positional = pair.item1;
  49667. named = pair.item2;
  49668. t1 = J.getInterceptor$asx(positional);
  49669. $async$self._async_evaluate$_verifyArguments$4(t1.get$length(positional), named, $.$get$IfExpression_declaration(), node);
  49670. condition = t1.get$length(positional) > 0 ? t1.$index(positional, 0) : named.$index(0, "condition");
  49671. ifTrue = t1.get$length(positional) > 1 ? t1.$index(positional, 1) : named.$index(0, "if-true");
  49672. ifFalse = t1.get$length(positional) > 2 ? t1.$index(positional, 2) : named.$index(0, "if-false");
  49673. $async$goto = 5;
  49674. return P._asyncAwait(condition.accept$1($async$self), $async$visitIfExpression$1);
  49675. case 5:
  49676. // returning from await.
  49677. $async$goto = 4;
  49678. return P._asyncAwait(($async$result.get$isTruthy() ? ifTrue : ifFalse).accept$1($async$self), $async$visitIfExpression$1);
  49679. case 4:
  49680. // returning from await.
  49681. $async$returnValue = $async$result;
  49682. // goto return
  49683. $async$goto = 1;
  49684. break;
  49685. case 1:
  49686. // return
  49687. return P._asyncReturn($async$returnValue, $async$completer);
  49688. }
  49689. });
  49690. return P._asyncStartSync($async$visitIfExpression$1, $async$completer);
  49691. },
  49692. visitNullExpression$1: function(node) {
  49693. return this.visitNullExpression$body$_EvaluateVisitor(node);
  49694. },
  49695. visitNullExpression$body$_EvaluateVisitor: function(node) {
  49696. var $async$goto = 0,
  49697. $async$completer = P._makeAsyncAwaitCompleter(type$.SassNull),
  49698. $async$returnValue;
  49699. var $async$visitNullExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49700. if ($async$errorCode === 1)
  49701. return P._asyncRethrow($async$result, $async$completer);
  49702. while (true)
  49703. switch ($async$goto) {
  49704. case 0:
  49705. // Function start
  49706. $async$returnValue = C.C_SassNull0;
  49707. // goto return
  49708. $async$goto = 1;
  49709. break;
  49710. case 1:
  49711. // return
  49712. return P._asyncReturn($async$returnValue, $async$completer);
  49713. }
  49714. });
  49715. return P._asyncStartSync($async$visitNullExpression$1, $async$completer);
  49716. },
  49717. visitNumberExpression$1: function(node) {
  49718. return this.visitNumberExpression$body$_EvaluateVisitor(node);
  49719. },
  49720. visitNumberExpression$body$_EvaluateVisitor: function(node) {
  49721. var $async$goto = 0,
  49722. $async$completer = P._makeAsyncAwaitCompleter(type$.SassNumber),
  49723. $async$returnValue, t1;
  49724. var $async$visitNumberExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49725. if ($async$errorCode === 1)
  49726. return P._asyncRethrow($async$result, $async$completer);
  49727. while (true)
  49728. switch ($async$goto) {
  49729. case 0:
  49730. // Function start
  49731. t1 = node.unit;
  49732. t1 = t1 == null ? null : H.setRuntimeTypeInfo([t1], type$.JSArray_String);
  49733. t1 = t1 == null ? C.List_empty : P.List_List$unmodifiable(t1, type$.String);
  49734. $async$returnValue = new T.SassNumber(node.value, t1, C.List_empty, null);
  49735. // goto return
  49736. $async$goto = 1;
  49737. break;
  49738. case 1:
  49739. // return
  49740. return P._asyncReturn($async$returnValue, $async$completer);
  49741. }
  49742. });
  49743. return P._asyncStartSync($async$visitNumberExpression$1, $async$completer);
  49744. },
  49745. visitParenthesizedExpression$1: function(node) {
  49746. return node.expression.accept$1(this);
  49747. },
  49748. visitColorExpression$1: function(node) {
  49749. return this.visitColorExpression$body$_EvaluateVisitor(node);
  49750. },
  49751. visitColorExpression$body$_EvaluateVisitor: function(node) {
  49752. var $async$goto = 0,
  49753. $async$completer = P._makeAsyncAwaitCompleter(type$.SassColor),
  49754. $async$returnValue;
  49755. var $async$visitColorExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49756. if ($async$errorCode === 1)
  49757. return P._asyncRethrow($async$result, $async$completer);
  49758. while (true)
  49759. switch ($async$goto) {
  49760. case 0:
  49761. // Function start
  49762. $async$returnValue = node.value;
  49763. // goto return
  49764. $async$goto = 1;
  49765. break;
  49766. case 1:
  49767. // return
  49768. return P._asyncReturn($async$returnValue, $async$completer);
  49769. }
  49770. });
  49771. return P._asyncStartSync($async$visitColorExpression$1, $async$completer);
  49772. },
  49773. visitListExpression$1: function(node) {
  49774. return this.visitListExpression$body$_EvaluateVisitor(node);
  49775. },
  49776. visitListExpression$body$_EvaluateVisitor: function(node) {
  49777. var $async$goto = 0,
  49778. $async$completer = P._makeAsyncAwaitCompleter(type$.SassList),
  49779. $async$returnValue, $async$self = this, $async$temp1;
  49780. var $async$visitListExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49781. if ($async$errorCode === 1)
  49782. return P._asyncRethrow($async$result, $async$completer);
  49783. while (true)
  49784. switch ($async$goto) {
  49785. case 0:
  49786. // Function start
  49787. $async$temp1 = D;
  49788. $async$goto = 3;
  49789. return P._asyncAwait(B.mapAsync(node.contents, new E._EvaluateVisitor_visitListExpression_closure0($async$self), type$.Expression, type$.Value), $async$visitListExpression$1);
  49790. case 3:
  49791. // returning from await.
  49792. $async$returnValue = $async$temp1.SassList$($async$result, node.separator, node.hasBrackets);
  49793. // goto return
  49794. $async$goto = 1;
  49795. break;
  49796. case 1:
  49797. // return
  49798. return P._asyncReturn($async$returnValue, $async$completer);
  49799. }
  49800. });
  49801. return P._asyncStartSync($async$visitListExpression$1, $async$completer);
  49802. },
  49803. visitMapExpression$1: function(node) {
  49804. return this.visitMapExpression$body$_EvaluateVisitor(node);
  49805. },
  49806. visitMapExpression$body$_EvaluateVisitor: function(node) {
  49807. var $async$goto = 0,
  49808. $async$completer = P._makeAsyncAwaitCompleter(type$.SassMap),
  49809. $async$returnValue, $async$self = this, t2, t3, _i, pair, t4, keyValue, valueValue, t1, map, keyNodes;
  49810. var $async$visitMapExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49811. if ($async$errorCode === 1)
  49812. return P._asyncRethrow($async$result, $async$completer);
  49813. while (true)
  49814. switch ($async$goto) {
  49815. case 0:
  49816. // Function start
  49817. t1 = type$.Value;
  49818. map = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  49819. keyNodes = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.AstNode);
  49820. t2 = node.pairs, t3 = t2.length, _i = 0;
  49821. case 3:
  49822. // for condition
  49823. if (!(_i < t3)) {
  49824. // goto after for
  49825. $async$goto = 5;
  49826. break;
  49827. }
  49828. pair = t2[_i];
  49829. t4 = pair.item1;
  49830. $async$goto = 6;
  49831. return P._asyncAwait(t4.accept$1($async$self), $async$visitMapExpression$1);
  49832. case 6:
  49833. // returning from await.
  49834. keyValue = $async$result;
  49835. $async$goto = 7;
  49836. return P._asyncAwait(pair.item2.accept$1($async$self), $async$visitMapExpression$1);
  49837. case 7:
  49838. // returning from await.
  49839. valueValue = $async$result;
  49840. if (map.containsKey$1(keyValue))
  49841. throw H.wrapException(E.MultiSpanSassRuntimeException$("Duplicate key.", t4.get$span(), "second key", P.LinkedHashMap_LinkedHashMap$_literal([keyNodes.$index(0, keyValue).get$span(), "first key"], type$.FileSpan, type$.String), $async$self._async_evaluate$_stackTrace$1(t4.get$span())));
  49842. map.$indexSet(0, keyValue, valueValue);
  49843. keyNodes.$indexSet(0, keyValue, t4);
  49844. case 4:
  49845. // for update
  49846. ++_i;
  49847. // goto for condition
  49848. $async$goto = 3;
  49849. break;
  49850. case 5:
  49851. // after for
  49852. $async$returnValue = new A.SassMap(H.ConstantMap_ConstantMap$from(map, t1, t1));
  49853. // goto return
  49854. $async$goto = 1;
  49855. break;
  49856. case 1:
  49857. // return
  49858. return P._asyncReturn($async$returnValue, $async$completer);
  49859. }
  49860. });
  49861. return P._asyncStartSync($async$visitMapExpression$1, $async$completer);
  49862. },
  49863. visitFunctionExpression$1: function(node) {
  49864. return this.visitFunctionExpression$body$_EvaluateVisitor(node);
  49865. },
  49866. visitFunctionExpression$body$_EvaluateVisitor: function(node) {
  49867. var $async$goto = 0,
  49868. $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
  49869. $async$returnValue, $async$self = this, oldInFunction, result, t1, t2, plainName, $async$temp1, $async$temp2;
  49870. var $async$visitFunctionExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49871. if ($async$errorCode === 1)
  49872. return P._asyncRethrow($async$result, $async$completer);
  49873. while (true)
  49874. switch ($async$goto) {
  49875. case 0:
  49876. // Function start
  49877. t1 = {};
  49878. t2 = node.name;
  49879. plainName = t2.get$asPlain();
  49880. t1.$function = null;
  49881. $async$goto = (plainName != null ? t1.$function = $async$self._async_evaluate$_addExceptionSpan$2(node, new E._EvaluateVisitor_visitFunctionExpression_closure1($async$self, node, plainName)) : null) == null ? 3 : 4;
  49882. break;
  49883. case 3:
  49884. // then
  49885. if (node.namespace != null)
  49886. throw H.wrapException($async$self._async_evaluate$_exception$2("Undefined function.", node.span));
  49887. $async$temp1 = t1;
  49888. $async$temp2 = L;
  49889. $async$goto = 5;
  49890. return P._asyncAwait($async$self._async_evaluate$_performInterpolation$1(t2), $async$visitFunctionExpression$1);
  49891. case 5:
  49892. // returning from await.
  49893. $async$temp1.$function = new $async$temp2.PlainCssCallable($async$result);
  49894. case 4:
  49895. // join
  49896. oldInFunction = $async$self._async_evaluate$_inFunction;
  49897. $async$self._async_evaluate$_inFunction = true;
  49898. $async$goto = 6;
  49899. return P._asyncAwait($async$self._async_evaluate$_addErrorSpan$1$2(node, new E._EvaluateVisitor_visitFunctionExpression_closure2(t1, $async$self, node), type$.Value), $async$visitFunctionExpression$1);
  49900. case 6:
  49901. // returning from await.
  49902. result = $async$result;
  49903. $async$self._async_evaluate$_inFunction = oldInFunction;
  49904. $async$returnValue = result;
  49905. // goto return
  49906. $async$goto = 1;
  49907. break;
  49908. case 1:
  49909. // return
  49910. return P._asyncReturn($async$returnValue, $async$completer);
  49911. }
  49912. });
  49913. return P._asyncStartSync($async$visitFunctionExpression$1, $async$completer);
  49914. },
  49915. _async_evaluate$_getFunction$2$namespace: function($name, namespace) {
  49916. var local = this._async_evaluate$_environment.getFunction$2$namespace($name, namespace);
  49917. if (local != null || namespace != null)
  49918. return local;
  49919. return this._async_evaluate$_builtInFunctions.$index(0, $name);
  49920. },
  49921. _async_evaluate$_runUserDefinedCallable$4: function($arguments, callable, nodeWithSpan, run) {
  49922. return this._runUserDefinedCallable$body$_EvaluateVisitor($arguments, callable, nodeWithSpan, run);
  49923. },
  49924. _runUserDefinedCallable$body$_EvaluateVisitor: function($arguments, callable, nodeWithSpan, run) {
  49925. var $async$goto = 0,
  49926. $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
  49927. $async$returnValue, $async$self = this, evaluated, t1, $name;
  49928. var $async$_async_evaluate$_runUserDefinedCallable$4 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49929. if ($async$errorCode === 1)
  49930. return P._asyncRethrow($async$result, $async$completer);
  49931. while (true)
  49932. switch ($async$goto) {
  49933. case 0:
  49934. // Function start
  49935. $async$goto = 3;
  49936. return P._asyncAwait($async$self._async_evaluate$_evaluateArguments$1($arguments), $async$_async_evaluate$_runUserDefinedCallable$4);
  49937. case 3:
  49938. // returning from await.
  49939. evaluated = $async$result;
  49940. t1 = callable.declaration.name;
  49941. $name = t1 == null ? "@content" : t1 + "()";
  49942. $async$goto = 4;
  49943. return P._asyncAwait($async$self._async_evaluate$_withStackFrame$1$3($name, nodeWithSpan, new E._EvaluateVisitor__runUserDefinedCallable_closure0($async$self, callable, evaluated, nodeWithSpan, run), type$.Value), $async$_async_evaluate$_runUserDefinedCallable$4);
  49944. case 4:
  49945. // returning from await.
  49946. $async$returnValue = $async$result;
  49947. // goto return
  49948. $async$goto = 1;
  49949. break;
  49950. case 1:
  49951. // return
  49952. return P._asyncReturn($async$returnValue, $async$completer);
  49953. }
  49954. });
  49955. return P._asyncStartSync($async$_async_evaluate$_runUserDefinedCallable$4, $async$completer);
  49956. },
  49957. _async_evaluate$_runFunctionCallable$3: function($arguments, callable, nodeWithSpan) {
  49958. return this._runFunctionCallable$body$_EvaluateVisitor($arguments, callable, nodeWithSpan);
  49959. },
  49960. _runFunctionCallable$body$_EvaluateVisitor: function($arguments, callable, nodeWithSpan) {
  49961. var $async$goto = 0,
  49962. $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
  49963. $async$returnValue, $async$self = this, result, t1, t2, t3, first, _i, argument, rest, $async$temp1;
  49964. var $async$_async_evaluate$_runFunctionCallable$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49965. if ($async$errorCode === 1)
  49966. return P._asyncRethrow($async$result, $async$completer);
  49967. while (true)
  49968. switch ($async$goto) {
  49969. case 0:
  49970. // Function start
  49971. $async$goto = type$.AsyncBuiltInCallable._is(callable) ? 3 : 5;
  49972. break;
  49973. case 3:
  49974. // then
  49975. $async$goto = 6;
  49976. return P._asyncAwait($async$self._async_evaluate$_runBuiltInCallable$3($arguments, callable, nodeWithSpan), $async$_async_evaluate$_runFunctionCallable$3);
  49977. case 6:
  49978. // returning from await.
  49979. result = $async$result;
  49980. if (result == null)
  49981. throw H.wrapException($async$self._async_evaluate$_exception$2("Custom functions may not return Dart's null.", nodeWithSpan.get$span()));
  49982. $async$returnValue = result.withoutSlash$0();
  49983. // goto return
  49984. $async$goto = 1;
  49985. break;
  49986. // goto join
  49987. $async$goto = 4;
  49988. break;
  49989. case 5:
  49990. // else
  49991. $async$goto = type$.UserDefinedCallable_AsyncEnvironment._is(callable) ? 7 : 9;
  49992. break;
  49993. case 7:
  49994. // then
  49995. $async$goto = 10;
  49996. return P._asyncAwait($async$self._async_evaluate$_runUserDefinedCallable$4($arguments, callable, nodeWithSpan, new E._EvaluateVisitor__runFunctionCallable_closure0($async$self, callable)), $async$_async_evaluate$_runFunctionCallable$3);
  49997. case 10:
  49998. // returning from await.
  49999. $async$returnValue = $async$result.withoutSlash$0();
  50000. // goto return
  50001. $async$goto = 1;
  50002. break;
  50003. // goto join
  50004. $async$goto = 8;
  50005. break;
  50006. case 9:
  50007. // else
  50008. $async$goto = callable instanceof L.PlainCssCallable ? 11 : 13;
  50009. break;
  50010. case 11:
  50011. // then
  50012. t1 = $arguments.named;
  50013. if (t1.get$isNotEmpty(t1) || $arguments.keywordRest != null)
  50014. throw H.wrapException($async$self._async_evaluate$_exception$2("Plain CSS functions don't support keyword arguments.", nodeWithSpan.get$span()));
  50015. t1 = H.S(callable.name) + "(";
  50016. t2 = $arguments.positional, t3 = t2.length, first = true, _i = 0;
  50017. case 14:
  50018. // for condition
  50019. if (!(_i < t3)) {
  50020. // goto after for
  50021. $async$goto = 16;
  50022. break;
  50023. }
  50024. argument = t2[_i];
  50025. if (first)
  50026. first = false;
  50027. else
  50028. t1 += ", ";
  50029. $async$temp1 = H;
  50030. $async$goto = 17;
  50031. return P._asyncAwait($async$self._evaluateToCss$1(argument), $async$_async_evaluate$_runFunctionCallable$3);
  50032. case 17:
  50033. // returning from await.
  50034. t1 += $async$temp1.S($async$result);
  50035. case 15:
  50036. // for update
  50037. ++_i;
  50038. // goto for condition
  50039. $async$goto = 14;
  50040. break;
  50041. case 16:
  50042. // after for
  50043. t2 = $arguments.rest;
  50044. $async$goto = 18;
  50045. return P._asyncAwait(t2 == null ? null : t2.accept$1($async$self), $async$_async_evaluate$_runFunctionCallable$3);
  50046. case 18:
  50047. // returning from await.
  50048. rest = $async$result;
  50049. if (rest != null) {
  50050. if (!first)
  50051. t1 += ", ";
  50052. t2 = t1 + H.S($async$self._async_evaluate$_serialize$2(rest, t2));
  50053. t1 = t2;
  50054. }
  50055. t1 += H.Primitives_stringFromCharCode(41);
  50056. $async$returnValue = new D.SassString(t1.charCodeAt(0) == 0 ? t1 : t1, false);
  50057. // goto return
  50058. $async$goto = 1;
  50059. break;
  50060. // goto join
  50061. $async$goto = 12;
  50062. break;
  50063. case 13:
  50064. // else
  50065. $async$returnValue = null;
  50066. // goto return
  50067. $async$goto = 1;
  50068. break;
  50069. case 12:
  50070. // join
  50071. case 8:
  50072. // join
  50073. case 4:
  50074. // join
  50075. case 1:
  50076. // return
  50077. return P._asyncReturn($async$returnValue, $async$completer);
  50078. }
  50079. });
  50080. return P._asyncStartSync($async$_async_evaluate$_runFunctionCallable$3, $async$completer);
  50081. },
  50082. _async_evaluate$_runBuiltInCallable$3: function($arguments, callable, nodeWithSpan) {
  50083. return this._runBuiltInCallable$body$_EvaluateVisitor($arguments, callable, nodeWithSpan);
  50084. },
  50085. _runBuiltInCallable$body$_EvaluateVisitor: function($arguments, callable, nodeWithSpan) {
  50086. var $async$goto = 0,
  50087. $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
  50088. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, callback, result, error, error0, error1, message, namedSet, tuple, overload, declaredArguments, i, t1, argument, t2, t3, rest, argumentList, exception, evaluated, oldCallableNode, $async$exception;
  50089. var $async$_async_evaluate$_runBuiltInCallable$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50090. if ($async$errorCode === 1) {
  50091. $async$currentError = $async$result;
  50092. $async$goto = $async$handler;
  50093. }
  50094. while (true)
  50095. switch ($async$goto) {
  50096. case 0:
  50097. // Function start
  50098. $async$goto = 3;
  50099. return P._asyncAwait($async$self._async_evaluate$_evaluateArguments$2$trackSpans($arguments, false), $async$_async_evaluate$_runBuiltInCallable$3);
  50100. case 3:
  50101. // returning from await.
  50102. evaluated = $async$result;
  50103. oldCallableNode = $async$self._async_evaluate$_callableNode;
  50104. $async$self._async_evaluate$_callableNode = nodeWithSpan;
  50105. namedSet = new M.MapKeySet(evaluated.named, type$.MapKeySet_String);
  50106. tuple = callable.callbackFor$2(evaluated.positional.length, namedSet);
  50107. overload = tuple.item1;
  50108. callback = tuple.item2;
  50109. $async$self._async_evaluate$_addExceptionSpan$2(nodeWithSpan, new E._EvaluateVisitor__runBuiltInCallable_closure1(overload, evaluated, namedSet));
  50110. declaredArguments = overload.$arguments;
  50111. i = evaluated.positional.length, t1 = declaredArguments.length;
  50112. case 4:
  50113. // for condition
  50114. if (!(i < t1)) {
  50115. // goto after for
  50116. $async$goto = 6;
  50117. break;
  50118. }
  50119. argument = declaredArguments[i];
  50120. t2 = evaluated.positional;
  50121. t3 = evaluated.named.remove$1(0, argument.name);
  50122. $async$goto = t3 == null ? 7 : 8;
  50123. break;
  50124. case 7:
  50125. // then
  50126. t3 = argument.defaultValue;
  50127. $async$goto = 9;
  50128. return P._asyncAwait(t3 == null ? null : t3.accept$1($async$self), $async$_async_evaluate$_runBuiltInCallable$3);
  50129. case 9:
  50130. // returning from await.
  50131. t3 = $async$result;
  50132. case 8:
  50133. // join
  50134. t2.push(t3);
  50135. case 5:
  50136. // for update
  50137. ++i;
  50138. // goto for condition
  50139. $async$goto = 4;
  50140. break;
  50141. case 6:
  50142. // after for
  50143. if (overload.restArgument != null) {
  50144. if (evaluated.positional.length > t1) {
  50145. rest = C.JSArray_methods.sublist$1(evaluated.positional, t1);
  50146. C.JSArray_methods.removeRange$2(evaluated.positional, t1, evaluated.positional.length);
  50147. } else
  50148. rest = C.List_empty5;
  50149. t1 = evaluated.named;
  50150. t2 = evaluated.separator === C.ListSeparator_undecided ? C.ListSeparator_comma : evaluated.separator;
  50151. t3 = type$.Value;
  50152. argumentList = new D.SassArgumentList(H.ConstantMap_ConstantMap$from(t1, type$.String, t3), P.List_List$unmodifiable(rest, t3), t2, false);
  50153. argumentList.SassList$3$brackets(rest, t2, false);
  50154. evaluated.positional.push(argumentList);
  50155. } else
  50156. argumentList = null;
  50157. result = null;
  50158. $async$handler = 11;
  50159. $async$goto = 14;
  50160. return P._asyncAwait(callback.call$1(evaluated.positional), $async$_async_evaluate$_runBuiltInCallable$3);
  50161. case 14:
  50162. // returning from await.
  50163. result = $async$result;
  50164. $async$handler = 2;
  50165. // goto after finally
  50166. $async$goto = 13;
  50167. break;
  50168. case 11:
  50169. // catch
  50170. $async$handler = 10;
  50171. $async$exception = $async$currentError;
  50172. t1 = H.unwrapException($async$exception);
  50173. if (type$.SassRuntimeException._is(t1))
  50174. throw $async$exception;
  50175. else if (t1 instanceof E.MultiSpanSassScriptException) {
  50176. error = t1;
  50177. throw H.wrapException(E.MultiSpanSassRuntimeException$(error.message, nodeWithSpan.get$span(), error.primaryLabel, error.secondarySpans, $async$self._async_evaluate$_stackTrace$1(nodeWithSpan.get$span())));
  50178. } else if (t1 instanceof E.MultiSpanSassException) {
  50179. error0 = t1;
  50180. throw H.wrapException(E.MultiSpanSassRuntimeException$(error0._span_exception$_message, error0.get$span(), error0.primaryLabel, error0.secondarySpans, $async$self._async_evaluate$_stackTrace$1(error0.get$span())));
  50181. } else {
  50182. error1 = t1;
  50183. message = null;
  50184. try {
  50185. message = H._asStringNullable(J.get$message$x(error1));
  50186. } catch (exception) {
  50187. H.unwrapException($async$exception);
  50188. message = J.toString$0$(error1);
  50189. }
  50190. throw H.wrapException($async$self._async_evaluate$_exception$2(message, nodeWithSpan.get$span()));
  50191. }
  50192. // goto after finally
  50193. $async$goto = 13;
  50194. break;
  50195. case 10:
  50196. // uncaught
  50197. // goto rethrow
  50198. $async$goto = 2;
  50199. break;
  50200. case 13:
  50201. // after finally
  50202. $async$self._async_evaluate$_callableNode = oldCallableNode;
  50203. if (argumentList == null) {
  50204. $async$returnValue = result;
  50205. // goto return
  50206. $async$goto = 1;
  50207. break;
  50208. }
  50209. t1 = evaluated.named;
  50210. if (t1.get$isEmpty(t1)) {
  50211. $async$returnValue = result;
  50212. // goto return
  50213. $async$goto = 1;
  50214. break;
  50215. }
  50216. if (argumentList._wereKeywordsAccessed) {
  50217. $async$returnValue = result;
  50218. // goto return
  50219. $async$goto = 1;
  50220. break;
  50221. }
  50222. throw H.wrapException(E.MultiSpanSassRuntimeException$("No " + B.pluralize("argument", J.get$length$asx(evaluated.named.get$keys()), null) + " named " + H.S(B.toSentence(J.map$1$1$ax(evaluated.named.get$keys(), new E._EvaluateVisitor__runBuiltInCallable_closure2(), type$.Object), "or")) + ".", nodeWithSpan.get$span(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([overload.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), $async$self._async_evaluate$_stackTrace$1(nodeWithSpan.get$span())));
  50223. case 1:
  50224. // return
  50225. return P._asyncReturn($async$returnValue, $async$completer);
  50226. case 2:
  50227. // rethrow
  50228. return P._asyncRethrow($async$currentError, $async$completer);
  50229. }
  50230. });
  50231. return P._asyncStartSync($async$_async_evaluate$_runBuiltInCallable$3, $async$completer);
  50232. },
  50233. _async_evaluate$_evaluateArguments$2$trackSpans: function($arguments, trackSpans) {
  50234. return this._evaluateArguments$body$_EvaluateVisitor($arguments, trackSpans);
  50235. },
  50236. _async_evaluate$_evaluateArguments$1: function($arguments) {
  50237. return this._async_evaluate$_evaluateArguments$2$trackSpans($arguments, null);
  50238. },
  50239. _evaluateArguments$body$_EvaluateVisitor: function($arguments, trackSpans) {
  50240. var $async$goto = 0,
  50241. $async$completer = P._makeAsyncAwaitCompleter(type$._ArgumentResults),
  50242. $async$returnValue, $async$self = this, t1, t2, t3, _i, t4, t5, t6, t7, named, t8, positionalNodes, namedNodes, rest, restNodeForSpan, separator, keywordRest, keywordRestNodeForSpan, $async$temp1;
  50243. var $async$_async_evaluate$_evaluateArguments$2$trackSpans = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50244. if ($async$errorCode === 1)
  50245. return P._asyncRethrow($async$result, $async$completer);
  50246. while (true)
  50247. switch ($async$goto) {
  50248. case 0:
  50249. // Function start
  50250. if (trackSpans == null)
  50251. trackSpans = $async$self._async_evaluate$_sourceMap;
  50252. t1 = H.setRuntimeTypeInfo([], type$.JSArray_Value);
  50253. t2 = $arguments.positional, t3 = t2.length, _i = 0;
  50254. case 3:
  50255. // for condition
  50256. if (!(_i < t3)) {
  50257. // goto after for
  50258. $async$goto = 5;
  50259. break;
  50260. }
  50261. $async$temp1 = t1;
  50262. $async$goto = 6;
  50263. return P._asyncAwait(t2[_i].accept$1($async$self), $async$_async_evaluate$_evaluateArguments$2$trackSpans);
  50264. case 6:
  50265. // returning from await.
  50266. $async$temp1.push($async$result);
  50267. case 4:
  50268. // for update
  50269. ++_i;
  50270. // goto for condition
  50271. $async$goto = 3;
  50272. break;
  50273. case 5:
  50274. // after for
  50275. t4 = $arguments.named;
  50276. t5 = type$.String;
  50277. t6 = type$.Expression;
  50278. t7 = type$.Value;
  50279. $async$goto = 7;
  50280. return P._asyncAwait(B.mapMapAsync(t4, new E._EvaluateVisitor__evaluateArguments_closure2($async$self), t5, t6, t5, t7), $async$_async_evaluate$_evaluateArguments$2$trackSpans);
  50281. case 7:
  50282. // returning from await.
  50283. named = $async$result;
  50284. if (trackSpans) {
  50285. t8 = H.setRuntimeTypeInfo([], type$.JSArray_AstNode);
  50286. for (_i = 0; _i < t3; ++_i)
  50287. t8.push($async$self._async_evaluate$_expressionNode$1(t2[_i]));
  50288. positionalNodes = t8;
  50289. } else
  50290. positionalNodes = null;
  50291. namedNodes = trackSpans ? Y.mapMap(t4, null, new E._EvaluateVisitor__evaluateArguments_closure3($async$self), t5, t6, t5, type$.AstNode) : null;
  50292. t2 = $arguments.rest;
  50293. if (t2 == null) {
  50294. $async$returnValue = E._ArgumentResults$0(t1, named, C.ListSeparator_undecided, namedNodes, positionalNodes);
  50295. // goto return
  50296. $async$goto = 1;
  50297. break;
  50298. }
  50299. $async$goto = 8;
  50300. return P._asyncAwait(t2.accept$1($async$self), $async$_async_evaluate$_evaluateArguments$2$trackSpans);
  50301. case 8:
  50302. // returning from await.
  50303. rest = $async$result;
  50304. restNodeForSpan = trackSpans ? $async$self._async_evaluate$_expressionNode$1(t2) : null;
  50305. if (rest instanceof A.SassMap) {
  50306. $async$self._async_evaluate$_addRestMap$1$3(named, rest, t2, t7);
  50307. if (namedNodes != null) {
  50308. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t5, type$.AstNode);
  50309. for (t3 = J.get$iterator$ax(rest.contents.get$keys()), t4 = type$.SassString; t3.moveNext$0();)
  50310. t2.$indexSet(0, t4._as(t3.get$current(t3)).text, restNodeForSpan);
  50311. namedNodes.addAll$1(0, t2);
  50312. }
  50313. separator = C.ListSeparator_undecided;
  50314. } else if (rest instanceof D.SassList) {
  50315. t2 = rest._list$_contents;
  50316. C.JSArray_methods.addAll$1(t1, t2);
  50317. if (positionalNodes != null)
  50318. C.JSArray_methods.addAll$1(positionalNodes, P.List_List$filled(t2.length, restNodeForSpan, type$.AstNode));
  50319. separator = rest.separator;
  50320. if (rest instanceof D.SassArgumentList) {
  50321. rest._wereKeywordsAccessed = true;
  50322. rest._keywords.forEach$1(0, new E._EvaluateVisitor__evaluateArguments_closure4(named, namedNodes, restNodeForSpan));
  50323. }
  50324. } else {
  50325. t1.push(rest);
  50326. if (positionalNodes != null)
  50327. positionalNodes.push(restNodeForSpan);
  50328. separator = C.ListSeparator_undecided;
  50329. }
  50330. t2 = $arguments.keywordRest;
  50331. if (t2 == null) {
  50332. $async$returnValue = E._ArgumentResults$0(t1, named, separator, namedNodes, positionalNodes);
  50333. // goto return
  50334. $async$goto = 1;
  50335. break;
  50336. }
  50337. $async$goto = 9;
  50338. return P._asyncAwait(t2.accept$1($async$self), $async$_async_evaluate$_evaluateArguments$2$trackSpans);
  50339. case 9:
  50340. // returning from await.
  50341. keywordRest = $async$result;
  50342. keywordRestNodeForSpan = trackSpans ? $async$self._async_evaluate$_expressionNode$1(t2) : null;
  50343. if (keywordRest instanceof A.SassMap) {
  50344. $async$self._async_evaluate$_addRestMap$1$3(named, keywordRest, t2, t7);
  50345. if (namedNodes != null) {
  50346. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t5, type$.AstNode);
  50347. for (t3 = J.get$iterator$ax(keywordRest.contents.get$keys()), t4 = type$.SassString; t3.moveNext$0();)
  50348. t2.$indexSet(0, t4._as(t3.get$current(t3)).text, keywordRestNodeForSpan);
  50349. namedNodes.addAll$1(0, t2);
  50350. }
  50351. $async$returnValue = E._ArgumentResults$0(t1, named, separator, namedNodes, positionalNodes);
  50352. // goto return
  50353. $async$goto = 1;
  50354. break;
  50355. } else
  50356. throw H.wrapException($async$self._async_evaluate$_exception$2("Variable keyword arguments must be a map (was " + H.S(keywordRest) + ").", t2.get$span()));
  50357. case 1:
  50358. // return
  50359. return P._asyncReturn($async$returnValue, $async$completer);
  50360. }
  50361. });
  50362. return P._asyncStartSync($async$_async_evaluate$_evaluateArguments$2$trackSpans, $async$completer);
  50363. },
  50364. _async_evaluate$_evaluateMacroArguments$1: function(invocation) {
  50365. return this._evaluateMacroArguments$body$_EvaluateVisitor(invocation);
  50366. },
  50367. _evaluateMacroArguments$body$_EvaluateVisitor: function(invocation) {
  50368. var $async$goto = 0,
  50369. $async$completer = P._makeAsyncAwaitCompleter(type$.Tuple2_of_List_Expression_and_Map_String_Expression),
  50370. $async$returnValue, $async$self = this, t3, positional, named, rest, keywordRest, t1, t2;
  50371. var $async$_async_evaluate$_evaluateMacroArguments$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50372. if ($async$errorCode === 1)
  50373. return P._asyncRethrow($async$result, $async$completer);
  50374. while (true)
  50375. switch ($async$goto) {
  50376. case 0:
  50377. // Function start
  50378. t1 = invocation.$arguments;
  50379. t2 = t1.rest;
  50380. if (t2 == null) {
  50381. $async$returnValue = new S.Tuple2(t1.positional, t1.named, type$.Tuple2_of_List_Expression_and_Map_String_Expression);
  50382. // goto return
  50383. $async$goto = 1;
  50384. break;
  50385. }
  50386. t3 = t1.positional;
  50387. positional = H.setRuntimeTypeInfo(t3.slice(0), H._arrayInstanceType(t3)._eval$1("JSArray<1>"));
  50388. t3 = type$.Expression;
  50389. named = P.LinkedHashMap_LinkedHashMap$of(t1.named, type$.String, t3);
  50390. $async$goto = 3;
  50391. return P._asyncAwait(t2.accept$1($async$self), $async$_async_evaluate$_evaluateMacroArguments$1);
  50392. case 3:
  50393. // returning from await.
  50394. rest = $async$result;
  50395. if (rest instanceof A.SassMap)
  50396. $async$self._async_evaluate$_addRestMap$1$4(named, rest, invocation, new E._EvaluateVisitor__evaluateMacroArguments_closure3(), t3);
  50397. else if (rest instanceof D.SassList) {
  50398. t2 = rest._list$_contents;
  50399. C.JSArray_methods.addAll$1(positional, new H.MappedListIterable(t2, new E._EvaluateVisitor__evaluateMacroArguments_closure4(), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Expression>")));
  50400. if (rest instanceof D.SassArgumentList) {
  50401. rest._wereKeywordsAccessed = true;
  50402. rest._keywords.forEach$1(0, new E._EvaluateVisitor__evaluateMacroArguments_closure5(named));
  50403. }
  50404. } else
  50405. positional.push(new F.ValueExpression(rest, null));
  50406. t1 = t1.keywordRest;
  50407. if (t1 == null) {
  50408. $async$returnValue = new S.Tuple2(positional, named, type$.Tuple2_of_List_Expression_and_Map_String_Expression);
  50409. // goto return
  50410. $async$goto = 1;
  50411. break;
  50412. }
  50413. $async$goto = 4;
  50414. return P._asyncAwait(t1.accept$1($async$self), $async$_async_evaluate$_evaluateMacroArguments$1);
  50415. case 4:
  50416. // returning from await.
  50417. keywordRest = $async$result;
  50418. if (keywordRest instanceof A.SassMap) {
  50419. $async$self._async_evaluate$_addRestMap$1$4(named, keywordRest, invocation, new E._EvaluateVisitor__evaluateMacroArguments_closure6(), t3);
  50420. $async$returnValue = new S.Tuple2(positional, named, type$.Tuple2_of_List_Expression_and_Map_String_Expression);
  50421. // goto return
  50422. $async$goto = 1;
  50423. break;
  50424. } else
  50425. throw H.wrapException($async$self._async_evaluate$_exception$2("Variable keyword arguments must be a map (was " + H.S(keywordRest) + ").", invocation.span));
  50426. case 1:
  50427. // return
  50428. return P._asyncReturn($async$returnValue, $async$completer);
  50429. }
  50430. });
  50431. return P._asyncStartSync($async$_async_evaluate$_evaluateMacroArguments$1, $async$completer);
  50432. },
  50433. _async_evaluate$_addRestMap$1$4: function(values, map, nodeWithSpan, convert, $T) {
  50434. var t1 = {};
  50435. t1.convert = convert;
  50436. if (convert == null)
  50437. t1.convert = new E._EvaluateVisitor__addRestMap_closure1($T);
  50438. map.contents.forEach$1(0, new E._EvaluateVisitor__addRestMap_closure2(t1, this, values, map, nodeWithSpan));
  50439. },
  50440. _async_evaluate$_addRestMap$1$3: function(values, map, nodeWithSpan, $T) {
  50441. return this._async_evaluate$_addRestMap$1$4(values, map, nodeWithSpan, null, $T);
  50442. },
  50443. _async_evaluate$_verifyArguments$4: function(positional, named, $arguments, nodeWithSpan) {
  50444. return this._async_evaluate$_addExceptionSpan$2(nodeWithSpan, new E._EvaluateVisitor__verifyArguments_closure0($arguments, positional, named));
  50445. },
  50446. visitSelectorExpression$1: function(node) {
  50447. return this.visitSelectorExpression$body$_EvaluateVisitor(node);
  50448. },
  50449. visitSelectorExpression$body$_EvaluateVisitor: function(node) {
  50450. var $async$goto = 0,
  50451. $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
  50452. $async$returnValue, $async$self = this, t1;
  50453. var $async$visitSelectorExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50454. if ($async$errorCode === 1)
  50455. return P._asyncRethrow($async$result, $async$completer);
  50456. while (true)
  50457. switch ($async$goto) {
  50458. case 0:
  50459. // Function start
  50460. t1 = $async$self._async_evaluate$_styleRule;
  50461. if (t1 == null) {
  50462. $async$returnValue = C.C_SassNull0;
  50463. // goto return
  50464. $async$goto = 1;
  50465. break;
  50466. }
  50467. $async$returnValue = t1.originalSelector.get$asSassList();
  50468. // goto return
  50469. $async$goto = 1;
  50470. break;
  50471. case 1:
  50472. // return
  50473. return P._asyncReturn($async$returnValue, $async$completer);
  50474. }
  50475. });
  50476. return P._asyncStartSync($async$visitSelectorExpression$1, $async$completer);
  50477. },
  50478. visitStringExpression$1: function(node) {
  50479. return this.visitStringExpression$body$_EvaluateVisitor(node);
  50480. },
  50481. visitStringExpression$body$_EvaluateVisitor: function(node) {
  50482. var $async$goto = 0,
  50483. $async$completer = P._makeAsyncAwaitCompleter(type$.SassString),
  50484. $async$returnValue, $async$self = this, $async$temp1, $async$temp2;
  50485. var $async$visitStringExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50486. if ($async$errorCode === 1)
  50487. return P._asyncRethrow($async$result, $async$completer);
  50488. while (true)
  50489. switch ($async$goto) {
  50490. case 0:
  50491. // Function start
  50492. $async$temp1 = D;
  50493. $async$temp2 = J;
  50494. $async$goto = 3;
  50495. return P._asyncAwait(B.mapAsync(node.text.contents, new E._EvaluateVisitor_visitStringExpression_closure0($async$self), type$.Object, type$.String), $async$visitStringExpression$1);
  50496. case 3:
  50497. // returning from await.
  50498. $async$returnValue = new $async$temp1.SassString($async$temp2.join$0$ax($async$result), node.hasQuotes);
  50499. // goto return
  50500. $async$goto = 1;
  50501. break;
  50502. case 1:
  50503. // return
  50504. return P._asyncReturn($async$returnValue, $async$completer);
  50505. }
  50506. });
  50507. return P._asyncStartSync($async$visitStringExpression$1, $async$completer);
  50508. },
  50509. visitCssAtRule$1: function(node) {
  50510. return this.visitCssAtRule$body$_EvaluateVisitor(node);
  50511. },
  50512. visitCssAtRule$body$_EvaluateVisitor: function(node) {
  50513. var $async$goto = 0,
  50514. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  50515. $async$returnValue, $async$self = this, t1, t2, wasInKeyframes, wasInUnknownAtRule;
  50516. var $async$visitCssAtRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50517. if ($async$errorCode === 1)
  50518. return P._asyncRethrow($async$result, $async$completer);
  50519. while (true)
  50520. switch ($async$goto) {
  50521. case 0:
  50522. // Function start
  50523. if ($async$self._async_evaluate$_declarationName != null)
  50524. throw H.wrapException($async$self._async_evaluate$_exception$2("At-rules may not be used within nested declarations.", node.span));
  50525. if (node.isChildless) {
  50526. t1 = $async$self._async_evaluate$_parent;
  50527. t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
  50528. t1.addChild$1(new U.ModifiableCssAtRule(node.name, node.value, true, node.span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode), t2));
  50529. $async$returnValue = null;
  50530. // goto return
  50531. $async$goto = 1;
  50532. break;
  50533. }
  50534. wasInKeyframes = $async$self._async_evaluate$_inKeyframes;
  50535. wasInUnknownAtRule = $async$self._async_evaluate$_inUnknownAtRule;
  50536. t1 = node.name;
  50537. if (B.unvendor(t1.get$value(t1)) === "keyframes")
  50538. $async$self._async_evaluate$_inKeyframes = true;
  50539. else
  50540. $async$self._async_evaluate$_inUnknownAtRule = true;
  50541. t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
  50542. $async$goto = 3;
  50543. return P._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(new U.ModifiableCssAtRule(t1, node.value, false, node.span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode), t2), new E._EvaluateVisitor_visitCssAtRule_closure1($async$self, node), false, new E._EvaluateVisitor_visitCssAtRule_closure2(), type$.ModifiableCssAtRule, type$.Null), $async$visitCssAtRule$1);
  50544. case 3:
  50545. // returning from await.
  50546. $async$self._async_evaluate$_inUnknownAtRule = wasInUnknownAtRule;
  50547. $async$self._async_evaluate$_inKeyframes = wasInKeyframes;
  50548. case 1:
  50549. // return
  50550. return P._asyncReturn($async$returnValue, $async$completer);
  50551. }
  50552. });
  50553. return P._asyncStartSync($async$visitCssAtRule$1, $async$completer);
  50554. },
  50555. visitCssComment$1: function(node) {
  50556. return this.visitCssComment$body$_EvaluateVisitor(node);
  50557. },
  50558. visitCssComment$body$_EvaluateVisitor: function(node) {
  50559. var $async$goto = 0,
  50560. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  50561. $async$self = this, t1, t2;
  50562. var $async$visitCssComment$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50563. if ($async$errorCode === 1)
  50564. return P._asyncRethrow($async$result, $async$completer);
  50565. while (true)
  50566. switch ($async$goto) {
  50567. case 0:
  50568. // Function start
  50569. t1 = $async$self._async_evaluate$_parent;
  50570. t2 = $async$self._async_evaluate$_root;
  50571. if (t1 == t2 && $async$self._async_evaluate$_endOfImports === J.get$length$asx(t2.children._collection$_source))
  50572. $async$self._async_evaluate$_endOfImports = $async$self._async_evaluate$_endOfImports + 1;
  50573. $async$self._async_evaluate$_parent.addChild$1(new R.ModifiableCssComment(node.text, node.span));
  50574. // implicit return
  50575. return P._asyncReturn(null, $async$completer);
  50576. }
  50577. });
  50578. return P._asyncStartSync($async$visitCssComment$1, $async$completer);
  50579. },
  50580. visitCssDeclaration$1: function(node) {
  50581. return this.visitCssDeclaration$body$_EvaluateVisitor(node);
  50582. },
  50583. visitCssDeclaration$body$_EvaluateVisitor: function(node) {
  50584. var $async$goto = 0,
  50585. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  50586. $async$self = this;
  50587. var $async$visitCssDeclaration$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50588. if ($async$errorCode === 1)
  50589. return P._asyncRethrow($async$result, $async$completer);
  50590. while (true)
  50591. switch ($async$goto) {
  50592. case 0:
  50593. // Function start
  50594. $async$self._async_evaluate$_parent.addChild$1(L.ModifiableCssDeclaration$(node.name, node.value, node.span, node.valueSpanForMap));
  50595. // implicit return
  50596. return P._asyncReturn(null, $async$completer);
  50597. }
  50598. });
  50599. return P._asyncStartSync($async$visitCssDeclaration$1, $async$completer);
  50600. },
  50601. visitCssImport$1: function(node) {
  50602. return this.visitCssImport$body$_EvaluateVisitor(node);
  50603. },
  50604. visitCssImport$body$_EvaluateVisitor: function(node) {
  50605. var $async$goto = 0,
  50606. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  50607. $async$self = this, modifiableNode, t1, t2;
  50608. var $async$visitCssImport$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50609. if ($async$errorCode === 1)
  50610. return P._asyncRethrow($async$result, $async$completer);
  50611. while (true)
  50612. switch ($async$goto) {
  50613. case 0:
  50614. // Function start
  50615. modifiableNode = F.ModifiableCssImport$(node.url, node.span, node.media, node.supports);
  50616. t1 = $async$self._async_evaluate$_parent;
  50617. t2 = $async$self._async_evaluate$_root;
  50618. if (t1 != t2)
  50619. t1.addChild$1(modifiableNode);
  50620. else if ($async$self._async_evaluate$_endOfImports === J.get$length$asx(t2.children._collection$_source)) {
  50621. $async$self._async_evaluate$_root.addChild$1(modifiableNode);
  50622. $async$self._async_evaluate$_endOfImports = $async$self._async_evaluate$_endOfImports + 1;
  50623. } else {
  50624. t1 = $async$self._async_evaluate$_outOfOrderImports;
  50625. (t1 == null ? $async$self._async_evaluate$_outOfOrderImports = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssImport) : t1).push(modifiableNode);
  50626. }
  50627. // implicit return
  50628. return P._asyncReturn(null, $async$completer);
  50629. }
  50630. });
  50631. return P._asyncStartSync($async$visitCssImport$1, $async$completer);
  50632. },
  50633. visitCssKeyframeBlock$1: function(node) {
  50634. return this.visitCssKeyframeBlock$body$_EvaluateVisitor(node);
  50635. },
  50636. visitCssKeyframeBlock$body$_EvaluateVisitor: function(node) {
  50637. var $async$goto = 0,
  50638. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  50639. $async$self = this, t1;
  50640. var $async$visitCssKeyframeBlock$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50641. if ($async$errorCode === 1)
  50642. return P._asyncRethrow($async$result, $async$completer);
  50643. while (true)
  50644. switch ($async$goto) {
  50645. case 0:
  50646. // Function start
  50647. t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
  50648. $async$goto = 2;
  50649. return P._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(new U.ModifiableCssKeyframeBlock(node.selector, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1), new E._EvaluateVisitor_visitCssKeyframeBlock_closure1($async$self, node), false, new E._EvaluateVisitor_visitCssKeyframeBlock_closure2(), type$.ModifiableCssKeyframeBlock, type$.Null), $async$visitCssKeyframeBlock$1);
  50650. case 2:
  50651. // returning from await.
  50652. // implicit return
  50653. return P._asyncReturn(null, $async$completer);
  50654. }
  50655. });
  50656. return P._asyncStartSync($async$visitCssKeyframeBlock$1, $async$completer);
  50657. },
  50658. visitCssMediaRule$1: function(node) {
  50659. return this.visitCssMediaRule$body$_EvaluateVisitor(node);
  50660. },
  50661. visitCssMediaRule$body$_EvaluateVisitor: function(node) {
  50662. var $async$goto = 0,
  50663. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  50664. $async$returnValue, $async$self = this, t1, mergedQueries;
  50665. var $async$visitCssMediaRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50666. if ($async$errorCode === 1)
  50667. return P._asyncRethrow($async$result, $async$completer);
  50668. while (true)
  50669. switch ($async$goto) {
  50670. case 0:
  50671. // Function start
  50672. if ($async$self._async_evaluate$_declarationName != null)
  50673. throw H.wrapException($async$self._async_evaluate$_exception$2("Media rules may not be used within nested declarations.", node.span));
  50674. t1 = $async$self._async_evaluate$_mediaQueries;
  50675. mergedQueries = t1 == null ? null : $async$self._async_evaluate$_mergeMediaQueries$2(t1, node.queries);
  50676. t1 = mergedQueries == null;
  50677. if (!t1 && mergedQueries.length === 0) {
  50678. $async$returnValue = null;
  50679. // goto return
  50680. $async$goto = 1;
  50681. break;
  50682. }
  50683. t1 = t1 ? node.queries : mergedQueries;
  50684. $async$goto = 3;
  50685. return P._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(G.ModifiableCssMediaRule$(t1, node.span), new E._EvaluateVisitor_visitCssMediaRule_closure1($async$self, mergedQueries, node), false, new E._EvaluateVisitor_visitCssMediaRule_closure2(mergedQueries), type$.ModifiableCssMediaRule, type$.Null), $async$visitCssMediaRule$1);
  50686. case 3:
  50687. // returning from await.
  50688. case 1:
  50689. // return
  50690. return P._asyncReturn($async$returnValue, $async$completer);
  50691. }
  50692. });
  50693. return P._asyncStartSync($async$visitCssMediaRule$1, $async$completer);
  50694. },
  50695. visitCssStyleRule$1: function(node) {
  50696. return this.visitCssStyleRule$body$_EvaluateVisitor(node);
  50697. },
  50698. visitCssStyleRule$body$_EvaluateVisitor: function(node) {
  50699. var $async$goto = 0,
  50700. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  50701. $async$self = this, t1, t2, t3, originalSelector, rule, oldAtRootExcludingStyleRule;
  50702. var $async$visitCssStyleRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50703. if ($async$errorCode === 1)
  50704. return P._asyncRethrow($async$result, $async$completer);
  50705. while (true)
  50706. switch ($async$goto) {
  50707. case 0:
  50708. // Function start
  50709. if ($async$self._async_evaluate$_declarationName != null)
  50710. throw H.wrapException($async$self._async_evaluate$_exception$2("Style rules may not be used within nested declarations.", node.span));
  50711. t1 = node.selector;
  50712. t2 = t1.value;
  50713. t3 = $async$self._async_evaluate$_styleRule;
  50714. t3 = t3 == null ? null : t3.originalSelector;
  50715. originalSelector = t2.resolveParentSelectors$2$implicitParent(t3, !$async$self._async_evaluate$_atRootExcludingStyleRule);
  50716. rule = X.ModifiableCssStyleRule$($async$self._async_evaluate$_extender.addSelector$3(originalSelector, t1.span, $async$self._async_evaluate$_mediaQueries), node.span, originalSelector);
  50717. oldAtRootExcludingStyleRule = $async$self._async_evaluate$_atRootExcludingStyleRule;
  50718. $async$self._async_evaluate$_atRootExcludingStyleRule = false;
  50719. $async$goto = 2;
  50720. return P._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(rule, new E._EvaluateVisitor_visitCssStyleRule_closure1($async$self, rule, node), false, new E._EvaluateVisitor_visitCssStyleRule_closure2(), type$.ModifiableCssStyleRule, type$.Null), $async$visitCssStyleRule$1);
  50721. case 2:
  50722. // returning from await.
  50723. $async$self._async_evaluate$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  50724. if (!($async$self._async_evaluate$_styleRule != null && !oldAtRootExcludingStyleRule)) {
  50725. t1 = $async$self._async_evaluate$_parent.children;
  50726. t1 = !t1.get$isEmpty(t1);
  50727. } else
  50728. t1 = false;
  50729. if (t1) {
  50730. t1 = $async$self._async_evaluate$_parent.children;
  50731. t1.get$last(t1).isGroupEnd = true;
  50732. }
  50733. // implicit return
  50734. return P._asyncReturn(null, $async$completer);
  50735. }
  50736. });
  50737. return P._asyncStartSync($async$visitCssStyleRule$1, $async$completer);
  50738. },
  50739. visitCssStylesheet$1: function(node) {
  50740. return this.visitCssStylesheet$body$_EvaluateVisitor(node);
  50741. },
  50742. visitCssStylesheet$body$_EvaluateVisitor: function(node) {
  50743. var $async$goto = 0,
  50744. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  50745. $async$self = this, t1;
  50746. var $async$visitCssStylesheet$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50747. if ($async$errorCode === 1)
  50748. return P._asyncRethrow($async$result, $async$completer);
  50749. while (true)
  50750. switch ($async$goto) {
  50751. case 0:
  50752. // Function start
  50753. t1 = J.get$iterator$ax(node.get$children());
  50754. case 2:
  50755. // for condition
  50756. if (!t1.moveNext$0()) {
  50757. // goto after for
  50758. $async$goto = 3;
  50759. break;
  50760. }
  50761. $async$goto = 4;
  50762. return P._asyncAwait(t1.get$current(t1).accept$1($async$self), $async$visitCssStylesheet$1);
  50763. case 4:
  50764. // returning from await.
  50765. // goto for condition
  50766. $async$goto = 2;
  50767. break;
  50768. case 3:
  50769. // after for
  50770. // implicit return
  50771. return P._asyncReturn(null, $async$completer);
  50772. }
  50773. });
  50774. return P._asyncStartSync($async$visitCssStylesheet$1, $async$completer);
  50775. },
  50776. visitCssSupportsRule$1: function(node) {
  50777. return this.visitCssSupportsRule$body$_EvaluateVisitor(node);
  50778. },
  50779. visitCssSupportsRule$body$_EvaluateVisitor: function(node) {
  50780. var $async$goto = 0,
  50781. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  50782. $async$self = this, t1;
  50783. var $async$visitCssSupportsRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50784. if ($async$errorCode === 1)
  50785. return P._asyncRethrow($async$result, $async$completer);
  50786. while (true)
  50787. switch ($async$goto) {
  50788. case 0:
  50789. // Function start
  50790. if ($async$self._async_evaluate$_declarationName != null)
  50791. throw H.wrapException($async$self._async_evaluate$_exception$2("Supports rules may not be used within nested declarations.", node.span));
  50792. t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
  50793. $async$goto = 2;
  50794. return P._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(new B.ModifiableCssSupportsRule(node.condition, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1), new E._EvaluateVisitor_visitCssSupportsRule_closure1($async$self, node), false, new E._EvaluateVisitor_visitCssSupportsRule_closure2(), type$.ModifiableCssSupportsRule, type$.Null), $async$visitCssSupportsRule$1);
  50795. case 2:
  50796. // returning from await.
  50797. // implicit return
  50798. return P._asyncReturn(null, $async$completer);
  50799. }
  50800. });
  50801. return P._asyncStartSync($async$visitCssSupportsRule$1, $async$completer);
  50802. },
  50803. _async_evaluate$_handleReturn$1$2: function(list, callback) {
  50804. return this._handleReturn$body$_EvaluateVisitor(list, callback, null);
  50805. },
  50806. _async_evaluate$_handleReturn$2: function(list, callback) {
  50807. return this._async_evaluate$_handleReturn$1$2(list, callback, type$.dynamic);
  50808. },
  50809. _handleReturn$body$_EvaluateVisitor: function(list, callback) {
  50810. var $async$goto = 0,
  50811. $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
  50812. $async$returnValue, t1, _i, result;
  50813. var $async$_async_evaluate$_handleReturn$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50814. if ($async$errorCode === 1)
  50815. return P._asyncRethrow($async$result, $async$completer);
  50816. while (true)
  50817. switch ($async$goto) {
  50818. case 0:
  50819. // Function start
  50820. t1 = list.length, _i = 0;
  50821. case 3:
  50822. // for condition
  50823. if (!(_i < list.length)) {
  50824. // goto after for
  50825. $async$goto = 5;
  50826. break;
  50827. }
  50828. $async$goto = 6;
  50829. return P._asyncAwait(callback.call$1(list[_i]), $async$_async_evaluate$_handleReturn$1$2);
  50830. case 6:
  50831. // returning from await.
  50832. result = $async$result;
  50833. if (result != null) {
  50834. $async$returnValue = result;
  50835. // goto return
  50836. $async$goto = 1;
  50837. break;
  50838. }
  50839. case 4:
  50840. // for update
  50841. list.length === t1 || (0, H.throwConcurrentModificationError)(list), ++_i;
  50842. // goto for condition
  50843. $async$goto = 3;
  50844. break;
  50845. case 5:
  50846. // after for
  50847. $async$returnValue = null;
  50848. // goto return
  50849. $async$goto = 1;
  50850. break;
  50851. case 1:
  50852. // return
  50853. return P._asyncReturn($async$returnValue, $async$completer);
  50854. }
  50855. });
  50856. return P._asyncStartSync($async$_async_evaluate$_handleReturn$1$2, $async$completer);
  50857. },
  50858. _async_evaluate$_withEnvironment$1$2: function(environment, callback, $T) {
  50859. return this._withEnvironment$body$_EvaluateVisitor(environment, callback, $T, $T);
  50860. },
  50861. _withEnvironment$body$_EvaluateVisitor: function(environment, callback, $T, $async$type) {
  50862. var $async$goto = 0,
  50863. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  50864. $async$returnValue, $async$self = this, result, oldEnvironment;
  50865. var $async$_async_evaluate$_withEnvironment$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50866. if ($async$errorCode === 1)
  50867. return P._asyncRethrow($async$result, $async$completer);
  50868. while (true)
  50869. switch ($async$goto) {
  50870. case 0:
  50871. // Function start
  50872. oldEnvironment = $async$self._async_evaluate$_environment;
  50873. $async$self._async_evaluate$_environment = environment;
  50874. $async$goto = 3;
  50875. return P._asyncAwait(callback.call$0(), $async$_async_evaluate$_withEnvironment$1$2);
  50876. case 3:
  50877. // returning from await.
  50878. result = $async$result;
  50879. $async$self._async_evaluate$_environment = oldEnvironment;
  50880. $async$returnValue = result;
  50881. // goto return
  50882. $async$goto = 1;
  50883. break;
  50884. case 1:
  50885. // return
  50886. return P._asyncReturn($async$returnValue, $async$completer);
  50887. }
  50888. });
  50889. return P._asyncStartSync($async$_async_evaluate$_withEnvironment$1$2, $async$completer);
  50890. },
  50891. _async_evaluate$_interpolationToValue$3$trim$warnForColor: function(interpolation, trim, warnForColor) {
  50892. return this._interpolationToValue$body$_EvaluateVisitor(interpolation, trim, warnForColor);
  50893. },
  50894. _async_evaluate$_interpolationToValue$1: function(interpolation) {
  50895. return this._async_evaluate$_interpolationToValue$3$trim$warnForColor(interpolation, false, false);
  50896. },
  50897. _async_evaluate$_interpolationToValue$2$warnForColor: function(interpolation, warnForColor) {
  50898. return this._async_evaluate$_interpolationToValue$3$trim$warnForColor(interpolation, false, warnForColor);
  50899. },
  50900. _interpolationToValue$body$_EvaluateVisitor: function(interpolation, trim, warnForColor) {
  50901. var $async$goto = 0,
  50902. $async$completer = P._makeAsyncAwaitCompleter(type$.CssValue_String),
  50903. $async$returnValue, $async$self = this, result, t1;
  50904. var $async$_async_evaluate$_interpolationToValue$3$trim$warnForColor = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50905. if ($async$errorCode === 1)
  50906. return P._asyncRethrow($async$result, $async$completer);
  50907. while (true)
  50908. switch ($async$goto) {
  50909. case 0:
  50910. // Function start
  50911. $async$goto = 3;
  50912. return P._asyncAwait($async$self._async_evaluate$_performInterpolation$2$warnForColor(interpolation, warnForColor), $async$_async_evaluate$_interpolationToValue$3$trim$warnForColor);
  50913. case 3:
  50914. // returning from await.
  50915. result = $async$result;
  50916. t1 = trim ? B.trimAscii(result, true) : result;
  50917. $async$returnValue = new F.CssValue(t1, interpolation.span, type$.CssValue_String);
  50918. // goto return
  50919. $async$goto = 1;
  50920. break;
  50921. case 1:
  50922. // return
  50923. return P._asyncReturn($async$returnValue, $async$completer);
  50924. }
  50925. });
  50926. return P._asyncStartSync($async$_async_evaluate$_interpolationToValue$3$trim$warnForColor, $async$completer);
  50927. },
  50928. _async_evaluate$_performInterpolation$2$warnForColor: function(interpolation, warnForColor) {
  50929. return this._performInterpolation$body$_EvaluateVisitor(interpolation, warnForColor);
  50930. },
  50931. _async_evaluate$_performInterpolation$1: function(interpolation) {
  50932. return this._async_evaluate$_performInterpolation$2$warnForColor(interpolation, false);
  50933. },
  50934. _performInterpolation$body$_EvaluateVisitor: function(interpolation, warnForColor) {
  50935. var $async$goto = 0,
  50936. $async$completer = P._makeAsyncAwaitCompleter(type$.String),
  50937. $async$returnValue, $async$self = this, $async$temp1;
  50938. var $async$_async_evaluate$_performInterpolation$2$warnForColor = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50939. if ($async$errorCode === 1)
  50940. return P._asyncRethrow($async$result, $async$completer);
  50941. while (true)
  50942. switch ($async$goto) {
  50943. case 0:
  50944. // Function start
  50945. $async$temp1 = J;
  50946. $async$goto = 3;
  50947. return P._asyncAwait(B.mapAsync(interpolation.contents, new E._EvaluateVisitor__performInterpolation_closure0($async$self, warnForColor), type$.Object, type$.String), $async$_async_evaluate$_performInterpolation$2$warnForColor);
  50948. case 3:
  50949. // returning from await.
  50950. $async$returnValue = $async$temp1.join$0$ax($async$result);
  50951. // goto return
  50952. $async$goto = 1;
  50953. break;
  50954. case 1:
  50955. // return
  50956. return P._asyncReturn($async$returnValue, $async$completer);
  50957. }
  50958. });
  50959. return P._asyncStartSync($async$_async_evaluate$_performInterpolation$2$warnForColor, $async$completer);
  50960. },
  50961. _evaluateToCss$2$quote: function(expression, quote) {
  50962. return this._evaluateToCss$body$_EvaluateVisitor(expression, quote);
  50963. },
  50964. _evaluateToCss$1: function(expression) {
  50965. return this._evaluateToCss$2$quote(expression, true);
  50966. },
  50967. _evaluateToCss$body$_EvaluateVisitor: function(expression, quote) {
  50968. var $async$goto = 0,
  50969. $async$completer = P._makeAsyncAwaitCompleter(type$.String),
  50970. $async$returnValue, $async$self = this;
  50971. var $async$_evaluateToCss$2$quote = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50972. if ($async$errorCode === 1)
  50973. return P._asyncRethrow($async$result, $async$completer);
  50974. while (true)
  50975. switch ($async$goto) {
  50976. case 0:
  50977. // Function start
  50978. $async$goto = 3;
  50979. return P._asyncAwait(expression.accept$1($async$self), $async$_evaluateToCss$2$quote);
  50980. case 3:
  50981. // returning from await.
  50982. $async$returnValue = $async$self._async_evaluate$_serialize$3$quote($async$result, expression, quote);
  50983. // goto return
  50984. $async$goto = 1;
  50985. break;
  50986. case 1:
  50987. // return
  50988. return P._asyncReturn($async$returnValue, $async$completer);
  50989. }
  50990. });
  50991. return P._asyncStartSync($async$_evaluateToCss$2$quote, $async$completer);
  50992. },
  50993. _async_evaluate$_serialize$3$quote: function(value, nodeWithSpan, quote) {
  50994. return this._async_evaluate$_addExceptionSpan$2(nodeWithSpan, new E._EvaluateVisitor__serialize_closure0(value, quote));
  50995. },
  50996. _async_evaluate$_serialize$2: function(value, nodeWithSpan) {
  50997. return this._async_evaluate$_serialize$3$quote(value, nodeWithSpan, true);
  50998. },
  50999. _async_evaluate$_expressionNode$1: function(expression) {
  51000. var t1;
  51001. if (!this._async_evaluate$_sourceMap)
  51002. return null;
  51003. if (expression instanceof S.VariableExpression) {
  51004. t1 = this._async_evaluate$_environment.getVariableNode$2$namespace(expression.name, expression.namespace);
  51005. return t1 == null ? expression : t1;
  51006. } else
  51007. return expression;
  51008. },
  51009. _async_evaluate$_withParent$2$4$scopeWhen$through: function(node, callback, scopeWhen, through, $S, $T) {
  51010. return this._withParent$body$_EvaluateVisitor(node, callback, scopeWhen, through, $S, $T, $T);
  51011. },
  51012. _async_evaluate$_withParent$2$2: function(node, callback, $S, $T) {
  51013. return this._async_evaluate$_withParent$2$4$scopeWhen$through(node, callback, true, null, $S, $T);
  51014. },
  51015. _async_evaluate$_withParent$2$3$scopeWhen: function(node, callback, scopeWhen, $S, $T) {
  51016. return this._async_evaluate$_withParent$2$4$scopeWhen$through(node, callback, scopeWhen, null, $S, $T);
  51017. },
  51018. _withParent$body$_EvaluateVisitor: function(node, callback, scopeWhen, through, $S, $T, $async$type) {
  51019. var $async$goto = 0,
  51020. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  51021. $async$returnValue, $async$self = this, oldParent, result;
  51022. var $async$_async_evaluate$_withParent$2$4$scopeWhen$through = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51023. if ($async$errorCode === 1)
  51024. return P._asyncRethrow($async$result, $async$completer);
  51025. while (true)
  51026. switch ($async$goto) {
  51027. case 0:
  51028. // Function start
  51029. $async$self._async_evaluate$_addChild$2$through(node, through);
  51030. oldParent = $async$self._async_evaluate$_parent;
  51031. $async$self._async_evaluate$_parent = node;
  51032. $async$goto = 3;
  51033. return P._asyncAwait($async$self._async_evaluate$_environment.scope$1$2$when(callback, scopeWhen, $T), $async$_async_evaluate$_withParent$2$4$scopeWhen$through);
  51034. case 3:
  51035. // returning from await.
  51036. result = $async$result;
  51037. $async$self._async_evaluate$_parent = oldParent;
  51038. $async$returnValue = result;
  51039. // goto return
  51040. $async$goto = 1;
  51041. break;
  51042. case 1:
  51043. // return
  51044. return P._asyncReturn($async$returnValue, $async$completer);
  51045. }
  51046. });
  51047. return P._asyncStartSync($async$_async_evaluate$_withParent$2$4$scopeWhen$through, $async$completer);
  51048. },
  51049. _async_evaluate$_addChild$2$through: function(node, through) {
  51050. var grandparent,
  51051. $parent = this._async_evaluate$_parent;
  51052. if (through != null) {
  51053. for (; through.call$1($parent);)
  51054. $parent = $parent._parent;
  51055. if ($parent.get$hasFollowingSibling()) {
  51056. grandparent = $parent._parent;
  51057. $parent = $parent.copyWithoutChildren$0();
  51058. grandparent.addChild$1($parent);
  51059. }
  51060. }
  51061. $parent.addChild$1(node);
  51062. },
  51063. _async_evaluate$_addChild$1: function(node) {
  51064. return this._async_evaluate$_addChild$2$through(node, null);
  51065. },
  51066. _async_evaluate$_withStyleRule$1$2: function(rule, callback, $T) {
  51067. return this._withStyleRule$body$_EvaluateVisitor(rule, callback, $T, $T);
  51068. },
  51069. _withStyleRule$body$_EvaluateVisitor: function(rule, callback, $T, $async$type) {
  51070. var $async$goto = 0,
  51071. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  51072. $async$returnValue, $async$self = this, result, oldRule;
  51073. var $async$_async_evaluate$_withStyleRule$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51074. if ($async$errorCode === 1)
  51075. return P._asyncRethrow($async$result, $async$completer);
  51076. while (true)
  51077. switch ($async$goto) {
  51078. case 0:
  51079. // Function start
  51080. oldRule = $async$self._async_evaluate$_styleRule;
  51081. $async$self._async_evaluate$_styleRule = rule;
  51082. $async$goto = 3;
  51083. return P._asyncAwait(callback.call$0(), $async$_async_evaluate$_withStyleRule$1$2);
  51084. case 3:
  51085. // returning from await.
  51086. result = $async$result;
  51087. $async$self._async_evaluate$_styleRule = oldRule;
  51088. $async$returnValue = result;
  51089. // goto return
  51090. $async$goto = 1;
  51091. break;
  51092. case 1:
  51093. // return
  51094. return P._asyncReturn($async$returnValue, $async$completer);
  51095. }
  51096. });
  51097. return P._asyncStartSync($async$_async_evaluate$_withStyleRule$1$2, $async$completer);
  51098. },
  51099. _async_evaluate$_withMediaQueries$1$2: function(queries, callback, $T) {
  51100. return this._withMediaQueries$body$_EvaluateVisitor(queries, callback, $T, $T);
  51101. },
  51102. _withMediaQueries$body$_EvaluateVisitor: function(queries, callback, $T, $async$type) {
  51103. var $async$goto = 0,
  51104. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  51105. $async$returnValue, $async$self = this, result, oldMediaQueries;
  51106. var $async$_async_evaluate$_withMediaQueries$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51107. if ($async$errorCode === 1)
  51108. return P._asyncRethrow($async$result, $async$completer);
  51109. while (true)
  51110. switch ($async$goto) {
  51111. case 0:
  51112. // Function start
  51113. oldMediaQueries = $async$self._async_evaluate$_mediaQueries;
  51114. $async$self._async_evaluate$_mediaQueries = queries;
  51115. $async$goto = 3;
  51116. return P._asyncAwait(callback.call$0(), $async$_async_evaluate$_withMediaQueries$1$2);
  51117. case 3:
  51118. // returning from await.
  51119. result = $async$result;
  51120. $async$self._async_evaluate$_mediaQueries = oldMediaQueries;
  51121. $async$returnValue = result;
  51122. // goto return
  51123. $async$goto = 1;
  51124. break;
  51125. case 1:
  51126. // return
  51127. return P._asyncReturn($async$returnValue, $async$completer);
  51128. }
  51129. });
  51130. return P._asyncStartSync($async$_async_evaluate$_withMediaQueries$1$2, $async$completer);
  51131. },
  51132. _async_evaluate$_withStackFrame$1$3: function(member, nodeWithSpan, callback, $T) {
  51133. return this._withStackFrame$body$_EvaluateVisitor(member, nodeWithSpan, callback, $T, $T);
  51134. },
  51135. _withStackFrame$body$_EvaluateVisitor: function(member, nodeWithSpan, callback, $T, $async$type) {
  51136. var $async$goto = 0,
  51137. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  51138. $async$returnValue, $async$self = this, oldMember, result, t1;
  51139. var $async$_async_evaluate$_withStackFrame$1$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51140. if ($async$errorCode === 1)
  51141. return P._asyncRethrow($async$result, $async$completer);
  51142. while (true)
  51143. switch ($async$goto) {
  51144. case 0:
  51145. // Function start
  51146. t1 = $async$self._async_evaluate$_stack;
  51147. t1.push(new S.Tuple2($async$self._async_evaluate$_member, nodeWithSpan, type$.Tuple2_String_AstNode));
  51148. oldMember = $async$self._async_evaluate$_member;
  51149. $async$self._async_evaluate$_member = member;
  51150. $async$goto = 3;
  51151. return P._asyncAwait(callback.call$0(), $async$_async_evaluate$_withStackFrame$1$3);
  51152. case 3:
  51153. // returning from await.
  51154. result = $async$result;
  51155. $async$self._async_evaluate$_member = oldMember;
  51156. t1.pop();
  51157. $async$returnValue = result;
  51158. // goto return
  51159. $async$goto = 1;
  51160. break;
  51161. case 1:
  51162. // return
  51163. return P._asyncReturn($async$returnValue, $async$completer);
  51164. }
  51165. });
  51166. return P._asyncStartSync($async$_async_evaluate$_withStackFrame$1$3, $async$completer);
  51167. },
  51168. _async_evaluate$_stackFrame$2: function(member, span) {
  51169. var url = span.file.url;
  51170. return B.frameForSpan(span, member, url != null && this._async_evaluate$_importCache != null ? this._async_evaluate$_importCache.humanize$1(url) : url);
  51171. },
  51172. _async_evaluate$_stackTrace$1: function(span) {
  51173. var t2, _this = this,
  51174. t1 = H.setRuntimeTypeInfo([], type$.JSArray_Frame);
  51175. for (t2 = _this._async_evaluate$_stack, t2 = new H.MappedListIterable(t2, new E._EvaluateVisitor__stackTrace_closure0(_this), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Frame>")), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
  51176. t1.push(t2.__internal$_current);
  51177. if (span != null)
  51178. t1.push(_this._async_evaluate$_stackFrame$2(_this._async_evaluate$_member, span));
  51179. return new Y.Trace(P.List_List$unmodifiable(new H.ReversedListIterable(t1, type$.ReversedListIterable_Frame), type$.Frame), new P._StringStackTrace(null));
  51180. },
  51181. _async_evaluate$_stackTrace$0: function() {
  51182. return this._async_evaluate$_stackTrace$1(null);
  51183. },
  51184. _async_evaluate$_warn$3$deprecation: function(message, span, deprecation) {
  51185. return this._async_evaluate$_logger.warn$4$deprecation$span$trace(message, deprecation, span, this._async_evaluate$_stackTrace$1(span));
  51186. },
  51187. _async_evaluate$_warn$2: function(message, span) {
  51188. return this._async_evaluate$_warn$3$deprecation(message, span, false);
  51189. },
  51190. _async_evaluate$_exception$2: function(message, span) {
  51191. var t1 = span == null ? C.JSArray_methods.get$last(this._async_evaluate$_stack).item2.get$span() : span;
  51192. return new E.SassRuntimeException(this._async_evaluate$_stackTrace$1(span), message, t1);
  51193. },
  51194. _async_evaluate$_exception$1: function(message) {
  51195. return this._async_evaluate$_exception$2(message, null);
  51196. },
  51197. _async_evaluate$_multiSpanException$3: function(message, primaryLabel, secondaryLabels) {
  51198. var t1 = C.JSArray_methods.get$last(this._async_evaluate$_stack).item2.get$span();
  51199. return new E.MultiSpanSassRuntimeException(this._async_evaluate$_stackTrace$0(), primaryLabel, H.ConstantMap_ConstantMap$from(secondaryLabels, type$.FileSpan, type$.String), message, t1);
  51200. },
  51201. _async_evaluate$_adjustParseError$1$2: function(nodeWithSpan, callback) {
  51202. var error, errorText, span, syntheticFile, syntheticSpan, t1, exception, t2, t3, t4, t5, _null = null;
  51203. try {
  51204. t1 = callback.call$0();
  51205. return t1;
  51206. } catch (exception) {
  51207. t1 = H.unwrapException(exception);
  51208. if (t1 instanceof E.SassFormatException) {
  51209. error = t1;
  51210. t1 = error;
  51211. errorText = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(G.SourceSpanException.prototype.get$span.call(t1).file._decodedChars, 0, _null), 0, _null);
  51212. span = nodeWithSpan.get$span();
  51213. t1 = span;
  51214. t2 = span;
  51215. syntheticFile = C.JSString_methods.replaceRange$3(P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(span.file._decodedChars, 0, _null), 0, _null), Y.FileLocation$_(t1.file, t1._file$_start).offset, Y.FileLocation$_(t2.file, t2._end).offset, errorText);
  51216. t2 = syntheticFile;
  51217. t1 = span.file.url;
  51218. t2.toString;
  51219. t2 = new H.CodeUnits(t2);
  51220. t3 = H.setRuntimeTypeInfo([0], type$.JSArray_int);
  51221. t3 = new Y.SourceFile(t1, t3, new Uint32Array(H._ensureNativeList(t2.toList$0(t2))));
  51222. t3.SourceFile$decoded$2$url(t2, t1);
  51223. t1 = span;
  51224. t1 = Y.FileLocation$_(t1.file, t1._file$_start);
  51225. t2 = error;
  51226. t2 = G.SourceSpanException.prototype.get$span.call(t2);
  51227. t2 = Y.FileLocation$_(t2.file, t2._file$_start);
  51228. t4 = span;
  51229. t4 = Y.FileLocation$_(t4.file, t4._file$_start);
  51230. t5 = error;
  51231. t5 = G.SourceSpanException.prototype.get$span.call(t5);
  51232. syntheticSpan = t3.span$2(t1.offset + t2.offset, t4.offset + Y.FileLocation$_(t5.file, t5._end).offset);
  51233. throw H.wrapException(this._async_evaluate$_exception$2(error._span_exception$_message, syntheticSpan));
  51234. } else
  51235. throw exception;
  51236. }
  51237. },
  51238. _async_evaluate$_adjustParseError$2: function(nodeWithSpan, callback) {
  51239. return this._async_evaluate$_adjustParseError$1$2(nodeWithSpan, callback, type$.dynamic);
  51240. },
  51241. _async_evaluate$_addExceptionSpan$1$2: function(nodeWithSpan, callback) {
  51242. var error, error0, t1, exception;
  51243. try {
  51244. t1 = callback.call$0();
  51245. return t1;
  51246. } catch (exception) {
  51247. t1 = H.unwrapException(exception);
  51248. if (t1 instanceof E.MultiSpanSassScriptException) {
  51249. error = t1;
  51250. throw H.wrapException(E.MultiSpanSassRuntimeException$(error.message, nodeWithSpan.get$span(), error.primaryLabel, error.secondarySpans, this._async_evaluate$_stackTrace$1(nodeWithSpan.get$span())));
  51251. } else if (t1 instanceof E.SassScriptException) {
  51252. error0 = t1;
  51253. throw H.wrapException(this._async_evaluate$_exception$2(error0.message, nodeWithSpan.get$span()));
  51254. } else
  51255. throw exception;
  51256. }
  51257. },
  51258. _async_evaluate$_addExceptionSpan$2: function(nodeWithSpan, callback) {
  51259. return this._async_evaluate$_addExceptionSpan$1$2(nodeWithSpan, callback, type$.dynamic);
  51260. },
  51261. _addExceptionSpanAsync$1$2: function(nodeWithSpan, callback, $T) {
  51262. return this._addExceptionSpanAsync$body$_EvaluateVisitor(nodeWithSpan, callback, $T, $T);
  51263. },
  51264. _addExceptionSpanAsync$body$_EvaluateVisitor: function(nodeWithSpan, callback, $T, $async$type) {
  51265. var $async$goto = 0,
  51266. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  51267. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, error, error0, t1, exception, $async$exception;
  51268. var $async$_addExceptionSpanAsync$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51269. if ($async$errorCode === 1) {
  51270. $async$currentError = $async$result;
  51271. $async$goto = $async$handler;
  51272. }
  51273. while (true)
  51274. switch ($async$goto) {
  51275. case 0:
  51276. // Function start
  51277. $async$handler = 4;
  51278. $async$goto = 7;
  51279. return P._asyncAwait(callback.call$0(), $async$_addExceptionSpanAsync$1$2);
  51280. case 7:
  51281. // returning from await.
  51282. t1 = $async$result;
  51283. $async$returnValue = t1;
  51284. // goto return
  51285. $async$goto = 1;
  51286. break;
  51287. $async$handler = 2;
  51288. // goto after finally
  51289. $async$goto = 6;
  51290. break;
  51291. case 4:
  51292. // catch
  51293. $async$handler = 3;
  51294. $async$exception = $async$currentError;
  51295. t1 = H.unwrapException($async$exception);
  51296. if (t1 instanceof E.MultiSpanSassScriptException) {
  51297. error = t1;
  51298. throw H.wrapException(E.MultiSpanSassRuntimeException$(error.message, nodeWithSpan.get$span(), error.primaryLabel, error.secondarySpans, $async$self._async_evaluate$_stackTrace$1(nodeWithSpan.get$span())));
  51299. } else if (t1 instanceof E.SassScriptException) {
  51300. error0 = t1;
  51301. throw H.wrapException($async$self._async_evaluate$_exception$2(error0.message, nodeWithSpan.get$span()));
  51302. } else
  51303. throw $async$exception;
  51304. // goto after finally
  51305. $async$goto = 6;
  51306. break;
  51307. case 3:
  51308. // uncaught
  51309. // goto rethrow
  51310. $async$goto = 2;
  51311. break;
  51312. case 6:
  51313. // after finally
  51314. case 1:
  51315. // return
  51316. return P._asyncReturn($async$returnValue, $async$completer);
  51317. case 2:
  51318. // rethrow
  51319. return P._asyncRethrow($async$currentError, $async$completer);
  51320. }
  51321. });
  51322. return P._asyncStartSync($async$_addExceptionSpanAsync$1$2, $async$completer);
  51323. },
  51324. _async_evaluate$_addErrorSpan$1$2: function(nodeWithSpan, callback, $T) {
  51325. return this._addErrorSpan$body$_EvaluateVisitor(nodeWithSpan, callback, $T, $T);
  51326. },
  51327. _addErrorSpan$body$_EvaluateVisitor: function(nodeWithSpan, callback, $T, $async$type) {
  51328. var $async$goto = 0,
  51329. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  51330. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, error, t1, exception, $async$exception;
  51331. var $async$_async_evaluate$_addErrorSpan$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51332. if ($async$errorCode === 1) {
  51333. $async$currentError = $async$result;
  51334. $async$goto = $async$handler;
  51335. }
  51336. while (true)
  51337. switch ($async$goto) {
  51338. case 0:
  51339. // Function start
  51340. $async$handler = 4;
  51341. $async$goto = 7;
  51342. return P._asyncAwait(callback.call$0(), $async$_async_evaluate$_addErrorSpan$1$2);
  51343. case 7:
  51344. // returning from await.
  51345. t1 = $async$result;
  51346. $async$returnValue = t1;
  51347. // goto return
  51348. $async$goto = 1;
  51349. break;
  51350. $async$handler = 2;
  51351. // goto after finally
  51352. $async$goto = 6;
  51353. break;
  51354. case 4:
  51355. // catch
  51356. $async$handler = 3;
  51357. $async$exception = $async$currentError;
  51358. t1 = H.unwrapException($async$exception);
  51359. if (type$.SassRuntimeException._is(t1)) {
  51360. error = t1;
  51361. t1 = error.get$span();
  51362. if (!C.JSString_methods.startsWith$1(P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, null), "@error"))
  51363. throw $async$exception;
  51364. throw H.wrapException(E.SassRuntimeException$(error._span_exception$_message, nodeWithSpan.get$span(), $async$self._async_evaluate$_stackTrace$0()));
  51365. } else
  51366. throw $async$exception;
  51367. // goto after finally
  51368. $async$goto = 6;
  51369. break;
  51370. case 3:
  51371. // uncaught
  51372. // goto rethrow
  51373. $async$goto = 2;
  51374. break;
  51375. case 6:
  51376. // after finally
  51377. case 1:
  51378. // return
  51379. return P._asyncReturn($async$returnValue, $async$completer);
  51380. case 2:
  51381. // rethrow
  51382. return P._asyncRethrow($async$currentError, $async$completer);
  51383. }
  51384. });
  51385. return P._asyncStartSync($async$_async_evaluate$_addErrorSpan$1$2, $async$completer);
  51386. }
  51387. };
  51388. E._EvaluateVisitor_closure9.prototype = {
  51389. call$1: function($arguments) {
  51390. var module, t2,
  51391. t1 = J.getInterceptor$asx($arguments),
  51392. variable = t1.$index($arguments, 0).assertString$1("name");
  51393. t1 = t1.$index($arguments, 1).get$realNull();
  51394. module = t1 == null ? null : t1.assertString$1("module");
  51395. t1 = this.$this._async_evaluate$_environment;
  51396. t2 = variable.text;
  51397. t2.toString;
  51398. t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
  51399. return t1.globalVariableExists$2$namespace(t2, module == null ? null : module.text) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  51400. },
  51401. $signature: 13
  51402. };
  51403. E._EvaluateVisitor_closure10.prototype = {
  51404. call$1: function($arguments) {
  51405. var variable = J.$index$asx($arguments, 0).assertString$1("name"),
  51406. t1 = this.$this._async_evaluate$_environment,
  51407. t2 = variable.text;
  51408. t2.toString;
  51409. return t1.getVariable$1(H.stringReplaceAllUnchecked(t2, "_", "-")) != null ? C.SassBoolean_true0 : C.SassBoolean_false0;
  51410. },
  51411. $signature: 13
  51412. };
  51413. E._EvaluateVisitor_closure11.prototype = {
  51414. call$1: function($arguments) {
  51415. var module, t2, t3, t4,
  51416. t1 = J.getInterceptor$asx($arguments),
  51417. variable = t1.$index($arguments, 0).assertString$1("name");
  51418. t1 = t1.$index($arguments, 1).get$realNull();
  51419. module = t1 == null ? null : t1.assertString$1("module");
  51420. t1 = this.$this;
  51421. t2 = t1._async_evaluate$_environment;
  51422. t3 = variable.text;
  51423. t3.toString;
  51424. t4 = H.stringReplaceAllUnchecked(t3, "_", "-");
  51425. return t2.getFunction$2$namespace(t4, module == null ? null : module.text) != null || t1._async_evaluate$_builtInFunctions.containsKey$1(t3) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  51426. },
  51427. $signature: 13
  51428. };
  51429. E._EvaluateVisitor_closure12.prototype = {
  51430. call$1: function($arguments) {
  51431. var module, t2,
  51432. t1 = J.getInterceptor$asx($arguments),
  51433. variable = t1.$index($arguments, 0).assertString$1("name");
  51434. t1 = t1.$index($arguments, 1).get$realNull();
  51435. module = t1 == null ? null : t1.assertString$1("module");
  51436. t1 = this.$this._async_evaluate$_environment;
  51437. t2 = variable.text;
  51438. t2.toString;
  51439. t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
  51440. return t1.getMixin$2$namespace(t2, module == null ? null : module.text) != null ? C.SassBoolean_true0 : C.SassBoolean_false0;
  51441. },
  51442. $signature: 13
  51443. };
  51444. E._EvaluateVisitor_closure13.prototype = {
  51445. call$1: function($arguments) {
  51446. var t1 = this.$this._async_evaluate$_environment;
  51447. if (!t1._async_environment$_inMixin)
  51448. throw H.wrapException(E.SassScriptException$("content-exists() may only be called within a mixin."));
  51449. return t1._async_environment$_content != null ? C.SassBoolean_true0 : C.SassBoolean_false0;
  51450. },
  51451. $signature: 13
  51452. };
  51453. E._EvaluateVisitor_closure14.prototype = {
  51454. call$1: function($arguments) {
  51455. var t2, t3, t4,
  51456. t1 = J.$index$asx($arguments, 0).assertString$1("module").text,
  51457. module = this.$this._async_evaluate$_environment._async_environment$_modules.$index(0, t1);
  51458. if (module == null)
  51459. throw H.wrapException('There is no module with namespace "' + H.S(t1) + '".');
  51460. t1 = type$.Value;
  51461. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  51462. for (t3 = module.get$variables().get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  51463. t4 = t3.get$current(t3);
  51464. t2.$indexSet(0, new D.SassString(t4.key, true), t4.value);
  51465. }
  51466. return new A.SassMap(H.ConstantMap_ConstantMap$from(t2, t1, t1));
  51467. },
  51468. $signature: 30
  51469. };
  51470. E._EvaluateVisitor_closure15.prototype = {
  51471. call$1: function($arguments) {
  51472. var t2, t3, t4,
  51473. t1 = J.$index$asx($arguments, 0).assertString$1("module").text,
  51474. module = this.$this._async_evaluate$_environment._async_environment$_modules.$index(0, t1);
  51475. if (module == null)
  51476. throw H.wrapException('There is no module with namespace "' + H.S(t1) + '".');
  51477. t1 = type$.Value;
  51478. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  51479. for (t3 = module.get$functions(module).get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  51480. t4 = t3.get$current(t3);
  51481. t2.$indexSet(0, new D.SassString(t4.key, true), new F.SassFunction(t4.value));
  51482. }
  51483. return new A.SassMap(H.ConstantMap_ConstantMap$from(t2, t1, t1));
  51484. },
  51485. $signature: 30
  51486. };
  51487. E._EvaluateVisitor_closure16.prototype = {
  51488. call$1: function($arguments) {
  51489. var module, callable,
  51490. t1 = J.getInterceptor$asx($arguments),
  51491. $name = t1.$index($arguments, 0).assertString$1("name"),
  51492. css = t1.$index($arguments, 1).get$isTruthy();
  51493. t1 = t1.$index($arguments, 2).get$realNull();
  51494. module = t1 == null ? null : t1.assertString$1("module");
  51495. if (css && module != null)
  51496. throw H.wrapException("$css and $module may not both be passed at once.");
  51497. if (css)
  51498. callable = new L.PlainCssCallable($name.text);
  51499. else {
  51500. t1 = this.$this;
  51501. callable = t1._async_evaluate$_addExceptionSpan$2(t1._async_evaluate$_callableNode, new E._EvaluateVisitor__closure8(t1, $name, module));
  51502. }
  51503. if (callable != null)
  51504. return new F.SassFunction(callable);
  51505. throw H.wrapException("Function not found: " + $name.toString$0(0));
  51506. },
  51507. $signature: 73
  51508. };
  51509. E._EvaluateVisitor__closure8.prototype = {
  51510. call$0: function() {
  51511. var t2,
  51512. t1 = this.name.text;
  51513. t1.toString;
  51514. t1 = H.stringReplaceAllUnchecked(t1, "_", "-");
  51515. t2 = this.module;
  51516. t2 = t2 == null ? null : t2.text;
  51517. return this.$this._async_evaluate$_getFunction$2$namespace(t1, t2);
  51518. },
  51519. $signature: 45
  51520. };
  51521. E._EvaluateVisitor_closure17.prototype = {
  51522. call$1: function($arguments) {
  51523. return this.$call$body$_EvaluateVisitor_closure0($arguments);
  51524. },
  51525. $call$body$_EvaluateVisitor_closure0: function($arguments) {
  51526. var $async$goto = 0,
  51527. $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
  51528. $async$returnValue, $async$self = this, t2, t3, t4, t5, t6, t7, invocation, callable, t1, $function, args;
  51529. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51530. if ($async$errorCode === 1)
  51531. return P._asyncRethrow($async$result, $async$completer);
  51532. while (true)
  51533. switch ($async$goto) {
  51534. case 0:
  51535. // Function start
  51536. t1 = J.getInterceptor$asx($arguments);
  51537. $function = t1.$index($arguments, 0);
  51538. args = type$.SassArgumentList._as(t1.$index($arguments, 1));
  51539. t1 = H.setRuntimeTypeInfo([], type$.JSArray_Expression);
  51540. t2 = type$.String;
  51541. t3 = $async$self.$this;
  51542. t4 = t3._async_evaluate$_callableNode.get$span();
  51543. t5 = t3._async_evaluate$_callableNode.get$span();
  51544. args._wereKeywordsAccessed = true;
  51545. t6 = args._keywords;
  51546. if (t6.get$isEmpty(t6))
  51547. t6 = null;
  51548. else {
  51549. args._wereKeywordsAccessed = true;
  51550. t7 = type$.Value;
  51551. t7 = new F.ValueExpression(new A.SassMap(H.ConstantMap_ConstantMap$from(Y.mapMap(t6, new E._EvaluateVisitor__closure6(), new E._EvaluateVisitor__closure7(), t2, t7, t7, t7), t7, t7)), t3._async_evaluate$_callableNode.get$span());
  51552. t6 = t7;
  51553. }
  51554. invocation = X.ArgumentInvocation$(t1, P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.Expression), t4, t6, new F.ValueExpression(args, t5));
  51555. $async$goto = $function instanceof D.SassString ? 3 : 4;
  51556. break;
  51557. case 3:
  51558. // then
  51559. N.warn("Passing a string to call() is deprecated and will be illegal\nin Dart Sass 2.0.0. Use call(get-function(" + $function.toString$0(0) + ")) instead.", true);
  51560. $async$goto = 5;
  51561. return P._asyncAwait(t3.visitFunctionExpression$1(new F.FunctionExpression(null, X.Interpolation$([$function.text], t3._async_evaluate$_callableNode.get$span()), invocation, t3._async_evaluate$_callableNode.get$span())), $async$call$1);
  51562. case 5:
  51563. // returning from await.
  51564. $async$returnValue = $async$result;
  51565. // goto return
  51566. $async$goto = 1;
  51567. break;
  51568. case 4:
  51569. // join
  51570. callable = $function.assertFunction$1("function").callable;
  51571. $async$goto = type$.AsyncCallable._is(callable) ? 6 : 8;
  51572. break;
  51573. case 6:
  51574. // then
  51575. $async$goto = 9;
  51576. return P._asyncAwait(t3._async_evaluate$_runFunctionCallable$3(invocation, callable, t3._async_evaluate$_callableNode), $async$call$1);
  51577. case 9:
  51578. // returning from await.
  51579. $async$returnValue = $async$result;
  51580. // goto return
  51581. $async$goto = 1;
  51582. break;
  51583. // goto join
  51584. $async$goto = 7;
  51585. break;
  51586. case 8:
  51587. // else
  51588. throw H.wrapException(E.SassScriptException$("The function " + H.S(callable.get$name()) + " is asynchronous.\nThis is probably caused by a bug in a Sass plugin."));
  51589. case 7:
  51590. // join
  51591. case 1:
  51592. // return
  51593. return P._asyncReturn($async$returnValue, $async$completer);
  51594. }
  51595. });
  51596. return P._asyncStartSync($async$call$1, $async$completer);
  51597. }
  51598. };
  51599. E._EvaluateVisitor__closure6.prototype = {
  51600. call$2: function(key, _) {
  51601. return new D.SassString(key, false);
  51602. }
  51603. };
  51604. E._EvaluateVisitor__closure7.prototype = {
  51605. call$2: function(_, value) {
  51606. return value;
  51607. }
  51608. };
  51609. E._EvaluateVisitor_closure18.prototype = {
  51610. call$1: function($arguments) {
  51611. return this.$call$body$_EvaluateVisitor_closure($arguments);
  51612. },
  51613. $call$body$_EvaluateVisitor_closure: function($arguments) {
  51614. var $async$goto = 0,
  51615. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  51616. $async$returnValue, $async$self = this, withMap, values, configuration, t2, t3, t1, url;
  51617. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51618. if ($async$errorCode === 1)
  51619. return P._asyncRethrow($async$result, $async$completer);
  51620. while (true)
  51621. switch ($async$goto) {
  51622. case 0:
  51623. // Function start
  51624. t1 = J.getInterceptor$asx($arguments);
  51625. url = P.Uri_parse(t1.$index($arguments, 0).assertString$1("module").text);
  51626. t1 = t1.$index($arguments, 1).get$realNull();
  51627. t1 = t1 == null ? null : t1.assertMap$1("with");
  51628. withMap = t1 == null ? null : t1.contents;
  51629. if (withMap != null) {
  51630. values = P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue);
  51631. t1 = $async$self.$this;
  51632. withMap.forEach$1(0, new E._EvaluateVisitor__closure4(values, t1._async_evaluate$_callableNode.get$span()));
  51633. configuration = new A.Configuration(values, t1._async_evaluate$_callableNode, false);
  51634. } else
  51635. configuration = C.Configuration_Map_empty_null_true;
  51636. t1 = $async$self.$this;
  51637. t2 = t1._async_evaluate$_callableNode;
  51638. t3 = t2.get$span();
  51639. t3 = t3 == null ? null : t3.file.url;
  51640. $async$goto = 3;
  51641. return P._asyncAwait(t1._async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors(url, "load-css()", t2, new E._EvaluateVisitor__closure5(t1), t3, configuration, true), $async$call$1);
  51642. case 3:
  51643. // returning from await.
  51644. t1._async_evaluate$_assertConfigurationIsEmpty$2$nameInError(configuration, true);
  51645. $async$returnValue = null;
  51646. // goto return
  51647. $async$goto = 1;
  51648. break;
  51649. case 1:
  51650. // return
  51651. return P._asyncReturn($async$returnValue, $async$completer);
  51652. }
  51653. });
  51654. return P._asyncStartSync($async$call$1, $async$completer);
  51655. }
  51656. };
  51657. E._EvaluateVisitor__closure4.prototype = {
  51658. call$2: function(variable, value) {
  51659. var $name,
  51660. t1 = variable.assertString$1("with key").text;
  51661. t1.toString;
  51662. $name = H.stringReplaceAllUnchecked(t1, "_", "-");
  51663. t1 = this.values;
  51664. if (t1.containsKey$1($name))
  51665. throw H.wrapException("The variable $" + $name + " was configured twice.");
  51666. t1.$indexSet(0, $name, new Z.ConfiguredValue(value, this.span, null));
  51667. }
  51668. };
  51669. E._EvaluateVisitor__closure5.prototype = {
  51670. call$1: function(module) {
  51671. var t1 = this.$this;
  51672. return t1._async_evaluate$_combineCss$2$clone(module, true).accept$1(t1);
  51673. }
  51674. };
  51675. E._EvaluateVisitor_run_closure0.prototype = {
  51676. call$0: function() {
  51677. var $async$goto = 0,
  51678. $async$completer = P._makeAsyncAwaitCompleter(type$.EvaluateResult),
  51679. $async$returnValue, $async$self = this, t1, t2, url, $async$temp1, $async$temp2;
  51680. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51681. if ($async$errorCode === 1)
  51682. return P._asyncRethrow($async$result, $async$completer);
  51683. while (true)
  51684. switch ($async$goto) {
  51685. case 0:
  51686. // Function start
  51687. t1 = $async$self.node;
  51688. t2 = t1.span;
  51689. url = t2 == null ? null : t2.file.url;
  51690. if (url != null)
  51691. $async$self.$this._async_evaluate$_activeModules.$indexSet(0, url, null);
  51692. t2 = $async$self.$this;
  51693. $async$temp1 = E;
  51694. $async$temp2 = t2;
  51695. $async$goto = 3;
  51696. return P._asyncAwait(t2._async_evaluate$_execute$2($async$self.importer, t1), $async$call$0);
  51697. case 3:
  51698. // returning from await.
  51699. $async$returnValue = new $async$temp1.EvaluateResult($async$temp2._async_evaluate$_combineCss$1($async$result));
  51700. // goto return
  51701. $async$goto = 1;
  51702. break;
  51703. case 1:
  51704. // return
  51705. return P._asyncReturn($async$returnValue, $async$completer);
  51706. }
  51707. });
  51708. return P._asyncStartSync($async$call$0, $async$completer);
  51709. },
  51710. $signature: 111
  51711. };
  51712. E._EvaluateVisitor__withWarnCallback_closure0.prototype = {
  51713. call$2: function(message, deprecation) {
  51714. var t1 = this.$this,
  51715. t2 = t1._async_evaluate$_importSpan;
  51716. return t1._async_evaluate$_warn$3$deprecation(message, t2 == null ? t1._async_evaluate$_callableNode.get$span() : t2, deprecation);
  51717. },
  51718. "call*": "call$2",
  51719. $requiredArgCount: 2
  51720. };
  51721. E._EvaluateVisitor__loadModule_closure0.prototype = {
  51722. call$0: function() {
  51723. var $async$goto = 0,
  51724. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  51725. $async$handler = 1, $async$currentError, $async$next = [], $async$self = this, module, error, error0, error1, error2, message, previousLoad, exception, t1, t2, result, importer, stylesheet, canonicalUrl, t3, $async$exception;
  51726. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51727. if ($async$errorCode === 1) {
  51728. $async$currentError = $async$result;
  51729. $async$goto = $async$handler;
  51730. }
  51731. while (true)
  51732. switch ($async$goto) {
  51733. case 0:
  51734. // Function start
  51735. t1 = $async$self.$this;
  51736. t2 = $async$self.nodeWithSpan;
  51737. $async$goto = 2;
  51738. return P._asyncAwait(t1._async_evaluate$_loadStylesheet$3$baseUrl(J.toString$0$($async$self.url), t2.get$span(), $async$self.baseUrl), $async$call$0);
  51739. case 2:
  51740. // returning from await.
  51741. result = $async$result;
  51742. importer = result.item1;
  51743. stylesheet = result.item2;
  51744. canonicalUrl = stylesheet.span.file.url;
  51745. t3 = t1._async_evaluate$_activeModules;
  51746. if (t3.containsKey$1(canonicalUrl)) {
  51747. message = $async$self.namesInErrors ? "Module loop: " + H.S($.$get$context().prettyUri$1(canonicalUrl)) + " is already being loaded." : "Module loop: this module is already being loaded.";
  51748. previousLoad = t3.$index(0, canonicalUrl);
  51749. throw H.wrapException(previousLoad == null ? t1._async_evaluate$_exception$1(message) : t1._async_evaluate$_multiSpanException$3(message, "new load", P.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(), "original load"], type$.FileSpan, type$.String)));
  51750. }
  51751. t3.$indexSet(0, canonicalUrl, t2);
  51752. module = null;
  51753. $async$handler = 3;
  51754. $async$goto = 6;
  51755. return P._asyncAwait(t1._async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, $async$self.configuration, $async$self.namesInErrors, t2), $async$call$0);
  51756. case 6:
  51757. // returning from await.
  51758. module = $async$result;
  51759. $async$next.push(5);
  51760. // goto finally
  51761. $async$goto = 4;
  51762. break;
  51763. case 3:
  51764. // uncaught
  51765. $async$next = [1];
  51766. case 4:
  51767. // finally
  51768. $async$handler = 1;
  51769. t3.remove$1(0, canonicalUrl);
  51770. // goto the next finally handler
  51771. $async$goto = $async$next.pop();
  51772. break;
  51773. case 5:
  51774. // after finally
  51775. $async$handler = 8;
  51776. $async$goto = 11;
  51777. return P._asyncAwait($async$self.callback.call$1(module), $async$call$0);
  51778. case 11:
  51779. // returning from await.
  51780. $async$handler = 1;
  51781. // goto after finally
  51782. $async$goto = 10;
  51783. break;
  51784. case 8:
  51785. // catch
  51786. $async$handler = 7;
  51787. $async$exception = $async$currentError;
  51788. t2 = H.unwrapException($async$exception);
  51789. if (type$.SassRuntimeException._is(t2))
  51790. throw $async$exception;
  51791. else if (t2 instanceof E.MultiSpanSassException) {
  51792. error = t2;
  51793. throw H.wrapException(E.MultiSpanSassRuntimeException$(error._span_exception$_message, error.get$span(), error.primaryLabel, error.secondarySpans, t1._async_evaluate$_stackTrace$1(error.get$span())));
  51794. } else if (t2 instanceof E.SassException) {
  51795. error0 = t2;
  51796. throw H.wrapException(t1._async_evaluate$_exception$2(error0._span_exception$_message, error0.get$span()));
  51797. } else if (t2 instanceof E.MultiSpanSassScriptException) {
  51798. error1 = t2;
  51799. throw H.wrapException(t1._async_evaluate$_multiSpanException$3(error1.message, error1.primaryLabel, error1.secondarySpans));
  51800. } else if (t2 instanceof E.SassScriptException) {
  51801. error2 = t2;
  51802. throw H.wrapException(t1._async_evaluate$_exception$1(error2.message));
  51803. } else
  51804. throw $async$exception;
  51805. // goto after finally
  51806. $async$goto = 10;
  51807. break;
  51808. case 7:
  51809. // uncaught
  51810. // goto rethrow
  51811. $async$goto = 1;
  51812. break;
  51813. case 10:
  51814. // after finally
  51815. // implicit return
  51816. return P._asyncReturn(null, $async$completer);
  51817. case 1:
  51818. // rethrow
  51819. return P._asyncRethrow($async$currentError, $async$completer);
  51820. }
  51821. });
  51822. return P._asyncStartSync($async$call$0, $async$completer);
  51823. },
  51824. $signature: 2
  51825. };
  51826. E._EvaluateVisitor__execute_closure0.prototype = {
  51827. call$0: function() {
  51828. var $async$goto = 0,
  51829. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  51830. $async$self = this, t2, t3, t4, css, t1, oldImporter, oldStylesheet, oldRoot, oldParent, oldEndOfImports, oldOutOfOrderImports, oldExtender, oldStyleRule, oldMediaQueries, oldDeclarationName, oldInUnknownAtRule, oldAtRootExcludingStyleRule, oldInKeyframes, oldConfiguration;
  51831. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51832. if ($async$errorCode === 1)
  51833. return P._asyncRethrow($async$result, $async$completer);
  51834. while (true)
  51835. switch ($async$goto) {
  51836. case 0:
  51837. // Function start
  51838. t1 = $async$self.$this;
  51839. oldImporter = t1._async_evaluate$_importer;
  51840. oldStylesheet = t1._async_evaluate$_stylesheet;
  51841. oldRoot = t1._async_evaluate$_root;
  51842. oldParent = t1._async_evaluate$_parent;
  51843. oldEndOfImports = t1._async_evaluate$_endOfImports;
  51844. oldOutOfOrderImports = t1._async_evaluate$_outOfOrderImports;
  51845. oldExtender = t1._async_evaluate$_extender;
  51846. oldStyleRule = t1._async_evaluate$_styleRule;
  51847. oldMediaQueries = t1._async_evaluate$_mediaQueries;
  51848. oldDeclarationName = t1._async_evaluate$_declarationName;
  51849. oldInUnknownAtRule = t1._async_evaluate$_inUnknownAtRule;
  51850. oldAtRootExcludingStyleRule = t1._async_evaluate$_atRootExcludingStyleRule;
  51851. oldInKeyframes = t1._async_evaluate$_inKeyframes;
  51852. oldConfiguration = t1._async_evaluate$_configuration;
  51853. t1._async_evaluate$_importer = $async$self.importer;
  51854. t2 = t1._async_evaluate$_stylesheet = $async$self.stylesheet;
  51855. t3 = t2.span;
  51856. t4 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
  51857. t1._async_evaluate$_parent = t1._async_evaluate$_root = new V.ModifiableCssStylesheet(t3, new P.UnmodifiableListView(t4, type$.UnmodifiableListView_ModifiableCssNode), t4);
  51858. t1._async_evaluate$_endOfImports = 0;
  51859. t1._async_evaluate$_outOfOrderImports = null;
  51860. t1._async_evaluate$_extender = $async$self.extender;
  51861. t1._async_evaluate$_declarationName = t1._async_evaluate$_mediaQueries = t1._async_evaluate$_styleRule = null;
  51862. t1._async_evaluate$_inKeyframes = t1._async_evaluate$_atRootExcludingStyleRule = t1._async_evaluate$_inUnknownAtRule = false;
  51863. t4 = $async$self.configuration;
  51864. if (t4 != null)
  51865. t1._async_evaluate$_configuration = t4;
  51866. $async$goto = 2;
  51867. return P._asyncAwait(t1.visitStylesheet$1(t2), $async$call$0);
  51868. case 2:
  51869. // returning from await.
  51870. css = t1._async_evaluate$_outOfOrderImports == null ? t1._async_evaluate$_root : new V.CssStylesheet(new P.UnmodifiableListView(t1._async_evaluate$_addOutOfOrderImports$0(), type$.UnmodifiableListView_CssNode), t3);
  51871. $async$self._box_0.css = css;
  51872. t1._async_evaluate$_importer = oldImporter;
  51873. t1._async_evaluate$_stylesheet = oldStylesheet;
  51874. t1._async_evaluate$_root = oldRoot;
  51875. t1._async_evaluate$_parent = oldParent;
  51876. t1._async_evaluate$_endOfImports = oldEndOfImports;
  51877. t1._async_evaluate$_outOfOrderImports = oldOutOfOrderImports;
  51878. t1._async_evaluate$_extender = oldExtender;
  51879. t1._async_evaluate$_styleRule = oldStyleRule;
  51880. t1._async_evaluate$_mediaQueries = oldMediaQueries;
  51881. t1._async_evaluate$_declarationName = oldDeclarationName;
  51882. t1._async_evaluate$_inUnknownAtRule = oldInUnknownAtRule;
  51883. t1._async_evaluate$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  51884. t1._async_evaluate$_inKeyframes = oldInKeyframes;
  51885. t1._async_evaluate$_configuration = oldConfiguration;
  51886. // implicit return
  51887. return P._asyncReturn(null, $async$completer);
  51888. }
  51889. });
  51890. return P._asyncStartSync($async$call$0, $async$completer);
  51891. },
  51892. $signature: 2
  51893. };
  51894. E._EvaluateVisitor__combineCss_closure2.prototype = {
  51895. call$1: function(module) {
  51896. return module.get$transitivelyContainsCss();
  51897. }
  51898. };
  51899. E._EvaluateVisitor__combineCss_closure3.prototype = {
  51900. call$1: function(target) {
  51901. return !this.selectors.contains$1(0, target);
  51902. }
  51903. };
  51904. E._EvaluateVisitor__combineCss_closure4.prototype = {
  51905. call$1: function(module) {
  51906. return module.cloneCss$0();
  51907. }
  51908. };
  51909. E._EvaluateVisitor__extendModules_closure1.prototype = {
  51910. call$1: function(target) {
  51911. return !this.originalSelectors.contains$1(0, target);
  51912. }
  51913. };
  51914. E._EvaluateVisitor__extendModules_closure2.prototype = {
  51915. call$0: function() {
  51916. return H.setRuntimeTypeInfo([], type$.JSArray_Extender);
  51917. },
  51918. $signature: 74
  51919. };
  51920. E._EvaluateVisitor__topologicalModules_visitModule0.prototype = {
  51921. call$1: function(module) {
  51922. var t1, t2, t3, _i, upstream;
  51923. for (t1 = module.get$upstream(), t2 = t1.length, t3 = this.seen, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  51924. upstream = t1[_i];
  51925. if (upstream.get$transitivelyContainsCss() && t3.add$1(0, upstream))
  51926. this.call$1(upstream);
  51927. }
  51928. this.sorted.addFirst$1(module);
  51929. }
  51930. };
  51931. E._EvaluateVisitor_visitAtRootRule_closure2.prototype = {
  51932. call$0: function() {
  51933. var t1 = S.SpanScanner$(this.resolved, null);
  51934. return new V.AtRootQueryParser(t1, this.$this._async_evaluate$_logger).parse$0();
  51935. },
  51936. $signature: 63
  51937. };
  51938. E._EvaluateVisitor_visitAtRootRule_closure3.prototype = {
  51939. call$0: function() {
  51940. var $async$goto = 0,
  51941. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  51942. $async$self = this, t1, t2, t3, _i;
  51943. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51944. if ($async$errorCode === 1)
  51945. return P._asyncRethrow($async$result, $async$completer);
  51946. while (true)
  51947. switch ($async$goto) {
  51948. case 0:
  51949. // Function start
  51950. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  51951. case 2:
  51952. // for condition
  51953. if (!(_i < t2)) {
  51954. // goto after for
  51955. $async$goto = 4;
  51956. break;
  51957. }
  51958. $async$goto = 5;
  51959. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  51960. case 5:
  51961. // returning from await.
  51962. case 3:
  51963. // for update
  51964. ++_i;
  51965. // goto for condition
  51966. $async$goto = 2;
  51967. break;
  51968. case 4:
  51969. // after for
  51970. // implicit return
  51971. return P._asyncReturn(null, $async$completer);
  51972. }
  51973. });
  51974. return P._asyncStartSync($async$call$0, $async$completer);
  51975. },
  51976. $signature: 2
  51977. };
  51978. E._EvaluateVisitor_visitAtRootRule_closure4.prototype = {
  51979. call$0: function() {
  51980. var $async$goto = 0,
  51981. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  51982. $async$self = this, t1, t2, t3, _i;
  51983. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51984. if ($async$errorCode === 1)
  51985. return P._asyncRethrow($async$result, $async$completer);
  51986. while (true)
  51987. switch ($async$goto) {
  51988. case 0:
  51989. // Function start
  51990. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  51991. case 2:
  51992. // for condition
  51993. if (!(_i < t2)) {
  51994. // goto after for
  51995. $async$goto = 4;
  51996. break;
  51997. }
  51998. $async$goto = 5;
  51999. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  52000. case 5:
  52001. // returning from await.
  52002. case 3:
  52003. // for update
  52004. ++_i;
  52005. // goto for condition
  52006. $async$goto = 2;
  52007. break;
  52008. case 4:
  52009. // after for
  52010. // implicit return
  52011. return P._asyncReturn(null, $async$completer);
  52012. }
  52013. });
  52014. return P._asyncStartSync($async$call$0, $async$completer);
  52015. },
  52016. "call*": "call$0",
  52017. $requiredArgCount: 0,
  52018. $signature: 2
  52019. };
  52020. E._EvaluateVisitor__scopeForAtRoot_closure5.prototype = {
  52021. call$1: function(callback) {
  52022. var $async$goto = 0,
  52023. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  52024. $async$self = this, t1, oldParent;
  52025. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52026. if ($async$errorCode === 1)
  52027. return P._asyncRethrow($async$result, $async$completer);
  52028. while (true)
  52029. switch ($async$goto) {
  52030. case 0:
  52031. // Function start
  52032. t1 = $async$self.$this;
  52033. oldParent = t1._async_evaluate$_parent;
  52034. t1._async_evaluate$_parent = $async$self.newParent;
  52035. $async$goto = 2;
  52036. return P._asyncAwait(t1._async_evaluate$_environment.scope$1$2$when(callback, $async$self.node.hasDeclarations, type$.void), $async$call$1);
  52037. case 2:
  52038. // returning from await.
  52039. t1._async_evaluate$_parent = oldParent;
  52040. // implicit return
  52041. return P._asyncReturn(null, $async$completer);
  52042. }
  52043. });
  52044. return P._asyncStartSync($async$call$1, $async$completer);
  52045. }
  52046. };
  52047. E._EvaluateVisitor__scopeForAtRoot_closure6.prototype = {
  52048. call$1: function(callback) {
  52049. var $async$goto = 0,
  52050. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  52051. $async$self = this, t1, oldAtRootExcludingStyleRule;
  52052. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52053. if ($async$errorCode === 1)
  52054. return P._asyncRethrow($async$result, $async$completer);
  52055. while (true)
  52056. switch ($async$goto) {
  52057. case 0:
  52058. // Function start
  52059. t1 = $async$self.$this;
  52060. oldAtRootExcludingStyleRule = t1._async_evaluate$_atRootExcludingStyleRule;
  52061. t1._async_evaluate$_atRootExcludingStyleRule = true;
  52062. $async$goto = 2;
  52063. return P._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
  52064. case 2:
  52065. // returning from await.
  52066. t1._async_evaluate$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  52067. // implicit return
  52068. return P._asyncReturn(null, $async$completer);
  52069. }
  52070. });
  52071. return P._asyncStartSync($async$call$1, $async$completer);
  52072. }
  52073. };
  52074. E._EvaluateVisitor__scopeForAtRoot_closure7.prototype = {
  52075. call$1: function(callback) {
  52076. return this.$this._async_evaluate$_withMediaQueries$1$2(null, new E._EvaluateVisitor__scopeForAtRoot__closure0(this.innerScope, callback), type$.Null);
  52077. }
  52078. };
  52079. E._EvaluateVisitor__scopeForAtRoot__closure0.prototype = {
  52080. call$0: function() {
  52081. return this.innerScope.call$1(this.callback);
  52082. },
  52083. $signature: 2
  52084. };
  52085. E._EvaluateVisitor__scopeForAtRoot_closure8.prototype = {
  52086. call$1: function(callback) {
  52087. var $async$goto = 0,
  52088. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  52089. $async$self = this, t1, wasInKeyframes;
  52090. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52091. if ($async$errorCode === 1)
  52092. return P._asyncRethrow($async$result, $async$completer);
  52093. while (true)
  52094. switch ($async$goto) {
  52095. case 0:
  52096. // Function start
  52097. t1 = $async$self.$this;
  52098. wasInKeyframes = t1._async_evaluate$_inKeyframes;
  52099. t1._async_evaluate$_inKeyframes = false;
  52100. $async$goto = 2;
  52101. return P._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
  52102. case 2:
  52103. // returning from await.
  52104. t1._async_evaluate$_inKeyframes = wasInKeyframes;
  52105. // implicit return
  52106. return P._asyncReturn(null, $async$completer);
  52107. }
  52108. });
  52109. return P._asyncStartSync($async$call$1, $async$completer);
  52110. }
  52111. };
  52112. E._EvaluateVisitor__scopeForAtRoot_closure9.prototype = {
  52113. call$1: function($parent) {
  52114. return type$.CssAtRule._is($parent);
  52115. }
  52116. };
  52117. E._EvaluateVisitor__scopeForAtRoot_closure10.prototype = {
  52118. call$1: function(callback) {
  52119. var $async$goto = 0,
  52120. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  52121. $async$self = this, t1, wasInUnknownAtRule;
  52122. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52123. if ($async$errorCode === 1)
  52124. return P._asyncRethrow($async$result, $async$completer);
  52125. while (true)
  52126. switch ($async$goto) {
  52127. case 0:
  52128. // Function start
  52129. t1 = $async$self.$this;
  52130. wasInUnknownAtRule = t1._async_evaluate$_inUnknownAtRule;
  52131. t1._async_evaluate$_inUnknownAtRule = false;
  52132. $async$goto = 2;
  52133. return P._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
  52134. case 2:
  52135. // returning from await.
  52136. t1._async_evaluate$_inUnknownAtRule = wasInUnknownAtRule;
  52137. // implicit return
  52138. return P._asyncReturn(null, $async$completer);
  52139. }
  52140. });
  52141. return P._asyncStartSync($async$call$1, $async$completer);
  52142. }
  52143. };
  52144. E._EvaluateVisitor_visitContentRule_closure0.prototype = {
  52145. call$0: function() {
  52146. var $async$goto = 0,
  52147. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  52148. $async$returnValue, $async$self = this, t1, t2, t3, _i;
  52149. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52150. if ($async$errorCode === 1)
  52151. return P._asyncRethrow($async$result, $async$completer);
  52152. while (true)
  52153. switch ($async$goto) {
  52154. case 0:
  52155. // Function start
  52156. t1 = $async$self.content.declaration.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  52157. case 3:
  52158. // for condition
  52159. if (!(_i < t2)) {
  52160. // goto after for
  52161. $async$goto = 5;
  52162. break;
  52163. }
  52164. $async$goto = 6;
  52165. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  52166. case 6:
  52167. // returning from await.
  52168. case 4:
  52169. // for update
  52170. ++_i;
  52171. // goto for condition
  52172. $async$goto = 3;
  52173. break;
  52174. case 5:
  52175. // after for
  52176. $async$returnValue = null;
  52177. // goto return
  52178. $async$goto = 1;
  52179. break;
  52180. case 1:
  52181. // return
  52182. return P._asyncReturn($async$returnValue, $async$completer);
  52183. }
  52184. });
  52185. return P._asyncStartSync($async$call$0, $async$completer);
  52186. },
  52187. $signature: 2
  52188. };
  52189. E._EvaluateVisitor_visitDeclaration_closure0.prototype = {
  52190. call$0: function() {
  52191. var $async$goto = 0,
  52192. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  52193. $async$self = this, t1, t2, t3, _i;
  52194. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52195. if ($async$errorCode === 1)
  52196. return P._asyncRethrow($async$result, $async$completer);
  52197. while (true)
  52198. switch ($async$goto) {
  52199. case 0:
  52200. // Function start
  52201. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  52202. case 2:
  52203. // for condition
  52204. if (!(_i < t2)) {
  52205. // goto after for
  52206. $async$goto = 4;
  52207. break;
  52208. }
  52209. $async$goto = 5;
  52210. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  52211. case 5:
  52212. // returning from await.
  52213. case 3:
  52214. // for update
  52215. ++_i;
  52216. // goto for condition
  52217. $async$goto = 2;
  52218. break;
  52219. case 4:
  52220. // after for
  52221. // implicit return
  52222. return P._asyncReturn(null, $async$completer);
  52223. }
  52224. });
  52225. return P._asyncStartSync($async$call$0, $async$completer);
  52226. },
  52227. $signature: 2
  52228. };
  52229. E._EvaluateVisitor_visitEachRule_closure2.prototype = {
  52230. call$1: function(value) {
  52231. return this.$this._async_evaluate$_environment.setLocalVariable$3(C.JSArray_methods.get$first(this.node.variables), value.withoutSlash$0(), this.nodeWithSpan);
  52232. }
  52233. };
  52234. E._EvaluateVisitor_visitEachRule_closure3.prototype = {
  52235. call$1: function(value) {
  52236. return this.$this._async_evaluate$_setMultipleVariables$3(this.node.variables, value, this.nodeWithSpan);
  52237. }
  52238. };
  52239. E._EvaluateVisitor_visitEachRule_closure4.prototype = {
  52240. call$0: function() {
  52241. var _this = this,
  52242. t1 = _this.$this;
  52243. return t1._async_evaluate$_handleReturn$2(_this.list.get$asList(), new E._EvaluateVisitor_visitEachRule__closure0(t1, _this.setVariables, _this.node));
  52244. },
  52245. $signature: 20
  52246. };
  52247. E._EvaluateVisitor_visitEachRule__closure0.prototype = {
  52248. call$1: function(element) {
  52249. var t1;
  52250. this.setVariables.call$1(element);
  52251. t1 = this.$this;
  52252. return t1._async_evaluate$_handleReturn$2(this.node.children, new E._EvaluateVisitor_visitEachRule___closure0(t1));
  52253. }
  52254. };
  52255. E._EvaluateVisitor_visitEachRule___closure0.prototype = {
  52256. call$1: function(child) {
  52257. return child.accept$1(this.$this);
  52258. }
  52259. };
  52260. E._EvaluateVisitor_visitExtendRule_closure0.prototype = {
  52261. call$0: function() {
  52262. var t1 = this.targetText;
  52263. return D.SelectorList_SelectorList$parse(B.trimAscii(t1.get$value(t1), true), false, true, this.$this._async_evaluate$_logger);
  52264. },
  52265. $signature: 31
  52266. };
  52267. E._EvaluateVisitor_visitAtRule_closure1.prototype = {
  52268. call$0: function() {
  52269. var $async$goto = 0,
  52270. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  52271. $async$self = this, t3, _i, t1, t2;
  52272. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52273. if ($async$errorCode === 1)
  52274. return P._asyncRethrow($async$result, $async$completer);
  52275. while (true)
  52276. switch ($async$goto) {
  52277. case 0:
  52278. // Function start
  52279. t1 = $async$self.$this;
  52280. t2 = t1._async_evaluate$_styleRule;
  52281. $async$goto = !(t2 != null && !t1._async_evaluate$_atRootExcludingStyleRule) || t1._async_evaluate$_inKeyframes ? 2 : 4;
  52282. break;
  52283. case 2:
  52284. // then
  52285. t2 = $async$self.node.children, t3 = t2.length, _i = 0;
  52286. case 5:
  52287. // for condition
  52288. if (!(_i < t3)) {
  52289. // goto after for
  52290. $async$goto = 7;
  52291. break;
  52292. }
  52293. $async$goto = 8;
  52294. return P._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
  52295. case 8:
  52296. // returning from await.
  52297. case 6:
  52298. // for update
  52299. ++_i;
  52300. // goto for condition
  52301. $async$goto = 5;
  52302. break;
  52303. case 7:
  52304. // after for
  52305. // goto join
  52306. $async$goto = 3;
  52307. break;
  52308. case 4:
  52309. // else
  52310. $async$goto = 9;
  52311. return P._asyncAwait(t1._async_evaluate$_withParent$2$3$scopeWhen(X.ModifiableCssStyleRule$(t2.selector, t2.span, t2.originalSelector), new E._EvaluateVisitor_visitAtRule__closure0(t1, $async$self.node), false, type$.ModifiableCssStyleRule, type$.Null), $async$call$0);
  52312. case 9:
  52313. // returning from await.
  52314. case 3:
  52315. // join
  52316. // implicit return
  52317. return P._asyncReturn(null, $async$completer);
  52318. }
  52319. });
  52320. return P._asyncStartSync($async$call$0, $async$completer);
  52321. },
  52322. $signature: 2
  52323. };
  52324. E._EvaluateVisitor_visitAtRule__closure0.prototype = {
  52325. call$0: function() {
  52326. var $async$goto = 0,
  52327. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  52328. $async$self = this, t1, t2, t3, _i;
  52329. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52330. if ($async$errorCode === 1)
  52331. return P._asyncRethrow($async$result, $async$completer);
  52332. while (true)
  52333. switch ($async$goto) {
  52334. case 0:
  52335. // Function start
  52336. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  52337. case 2:
  52338. // for condition
  52339. if (!(_i < t2)) {
  52340. // goto after for
  52341. $async$goto = 4;
  52342. break;
  52343. }
  52344. $async$goto = 5;
  52345. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  52346. case 5:
  52347. // returning from await.
  52348. case 3:
  52349. // for update
  52350. ++_i;
  52351. // goto for condition
  52352. $async$goto = 2;
  52353. break;
  52354. case 4:
  52355. // after for
  52356. // implicit return
  52357. return P._asyncReturn(null, $async$completer);
  52358. }
  52359. });
  52360. return P._asyncStartSync($async$call$0, $async$completer);
  52361. },
  52362. $signature: 2
  52363. };
  52364. E._EvaluateVisitor_visitAtRule_closure2.prototype = {
  52365. call$1: function(node) {
  52366. return type$.CssStyleRule._is(node);
  52367. }
  52368. };
  52369. E._EvaluateVisitor_visitForRule_closure4.prototype = {
  52370. call$0: function() {
  52371. var $async$goto = 0,
  52372. $async$completer = P._makeAsyncAwaitCompleter(type$.SassNumber),
  52373. $async$returnValue, $async$self = this;
  52374. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52375. if ($async$errorCode === 1)
  52376. return P._asyncRethrow($async$result, $async$completer);
  52377. while (true)
  52378. switch ($async$goto) {
  52379. case 0:
  52380. // Function start
  52381. $async$goto = 3;
  52382. return P._asyncAwait($async$self.node.from.accept$1($async$self.$this), $async$call$0);
  52383. case 3:
  52384. // returning from await.
  52385. $async$returnValue = $async$result.assertNumber$0();
  52386. // goto return
  52387. $async$goto = 1;
  52388. break;
  52389. case 1:
  52390. // return
  52391. return P._asyncReturn($async$returnValue, $async$completer);
  52392. }
  52393. });
  52394. return P._asyncStartSync($async$call$0, $async$completer);
  52395. },
  52396. $signature: 75
  52397. };
  52398. E._EvaluateVisitor_visitForRule_closure5.prototype = {
  52399. call$0: function() {
  52400. var $async$goto = 0,
  52401. $async$completer = P._makeAsyncAwaitCompleter(type$.SassNumber),
  52402. $async$returnValue, $async$self = this;
  52403. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52404. if ($async$errorCode === 1)
  52405. return P._asyncRethrow($async$result, $async$completer);
  52406. while (true)
  52407. switch ($async$goto) {
  52408. case 0:
  52409. // Function start
  52410. $async$goto = 3;
  52411. return P._asyncAwait($async$self.node.to.accept$1($async$self.$this), $async$call$0);
  52412. case 3:
  52413. // returning from await.
  52414. $async$returnValue = $async$result.assertNumber$0();
  52415. // goto return
  52416. $async$goto = 1;
  52417. break;
  52418. case 1:
  52419. // return
  52420. return P._asyncReturn($async$returnValue, $async$completer);
  52421. }
  52422. });
  52423. return P._asyncStartSync($async$call$0, $async$completer);
  52424. },
  52425. $signature: 75
  52426. };
  52427. E._EvaluateVisitor_visitForRule_closure6.prototype = {
  52428. call$0: function() {
  52429. var t1 = this.toNumber,
  52430. t2 = t1.numeratorUnits;
  52431. t1 = t1.denominatorUnits;
  52432. return T.SassNumber$withUnits(this.fromNumber.valueInUnits$2(t2, t1), t1, t2).assertInt$0();
  52433. },
  52434. $signature: 8
  52435. };
  52436. E._EvaluateVisitor_visitForRule_closure7.prototype = {
  52437. call$0: function() {
  52438. return this.toNumber.assertInt$0();
  52439. },
  52440. $signature: 8
  52441. };
  52442. E._EvaluateVisitor_visitForRule_closure8.prototype = {
  52443. call$0: function() {
  52444. var $async$goto = 0,
  52445. $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
  52446. $async$returnValue, $async$self = this, i, t3, t4, t5, t6, result, t1, t2, nodeWithSpan;
  52447. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52448. if ($async$errorCode === 1)
  52449. return P._asyncRethrow($async$result, $async$completer);
  52450. while (true)
  52451. switch ($async$goto) {
  52452. case 0:
  52453. // Function start
  52454. t1 = $async$self.$this;
  52455. t2 = $async$self.node;
  52456. nodeWithSpan = t1._async_evaluate$_expressionNode$1(t2.from);
  52457. i = $async$self.from, t3 = $async$self._box_0, t4 = $async$self.direction, t5 = t2.children, t2 = t2.variable;
  52458. case 3:
  52459. // for condition
  52460. if (!(i !== t3.to)) {
  52461. // goto after for
  52462. $async$goto = 5;
  52463. break;
  52464. }
  52465. t6 = t1._async_evaluate$_environment;
  52466. t6.setLocalVariable$3(t2, new T.SassNumber(i, C.List_empty, C.List_empty, null), nodeWithSpan);
  52467. $async$goto = 6;
  52468. return P._asyncAwait(t1._async_evaluate$_handleReturn$2(t5, new E._EvaluateVisitor_visitForRule__closure0(t1)), $async$call$0);
  52469. case 6:
  52470. // returning from await.
  52471. result = $async$result;
  52472. if (result != null) {
  52473. $async$returnValue = result;
  52474. // goto return
  52475. $async$goto = 1;
  52476. break;
  52477. }
  52478. case 4:
  52479. // for update
  52480. i += t4;
  52481. // goto for condition
  52482. $async$goto = 3;
  52483. break;
  52484. case 5:
  52485. // after for
  52486. $async$returnValue = null;
  52487. // goto return
  52488. $async$goto = 1;
  52489. break;
  52490. case 1:
  52491. // return
  52492. return P._asyncReturn($async$returnValue, $async$completer);
  52493. }
  52494. });
  52495. return P._asyncStartSync($async$call$0, $async$completer);
  52496. },
  52497. $signature: 20
  52498. };
  52499. E._EvaluateVisitor_visitForRule__closure0.prototype = {
  52500. call$1: function(child) {
  52501. return child.accept$1(this.$this);
  52502. }
  52503. };
  52504. E._EvaluateVisitor_visitForwardRule_closure1.prototype = {
  52505. call$1: function(module) {
  52506. this.$this._async_evaluate$_environment.forwardModule$2(module, this.node);
  52507. }
  52508. };
  52509. E._EvaluateVisitor_visitForwardRule_closure2.prototype = {
  52510. call$1: function(module) {
  52511. this.$this._async_evaluate$_environment.forwardModule$2(module, this.node);
  52512. }
  52513. };
  52514. E._EvaluateVisitor__assertConfigurationIsEmpty_closure0.prototype = {
  52515. call$2: function($name, value) {
  52516. var t1 = this.only;
  52517. if (t1 != null && !t1.contains$1(0, $name))
  52518. return;
  52519. t1 = this.nameInError ? "$" + H.S($name) + " was not declared with !default in the @used module." : "This variable was not declared with !default in the @used module.";
  52520. throw H.wrapException(this.$this._async_evaluate$_exception$2(t1, value.configurationSpan));
  52521. }
  52522. };
  52523. E._EvaluateVisitor_visitIfRule_closure0.prototype = {
  52524. call$0: function() {
  52525. var t1 = this.$this;
  52526. return t1._async_evaluate$_handleReturn$2(this._box_0.clause.children, new E._EvaluateVisitor_visitIfRule__closure0(t1));
  52527. },
  52528. $signature: 20
  52529. };
  52530. E._EvaluateVisitor_visitIfRule__closure0.prototype = {
  52531. call$1: function(child) {
  52532. return child.accept$1(this.$this);
  52533. }
  52534. };
  52535. E._EvaluateVisitor__visitDynamicImport_closure0.prototype = {
  52536. call$0: function() {
  52537. return this.$call$body$_EvaluateVisitor__visitDynamicImport_closure();
  52538. },
  52539. $call$body$_EvaluateVisitor__visitDynamicImport_closure: function() {
  52540. var $async$goto = 0,
  52541. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  52542. $async$returnValue, $async$self = this, previousLoad, oldImporter, oldStylesheet, t4, t5, t6, t7, t8, t9, t10, t11, environment, module, visitor, _box_0, t1, t2, result, importer, stylesheet, url, t3;
  52543. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52544. if ($async$errorCode === 1)
  52545. return P._asyncRethrow($async$result, $async$completer);
  52546. while (true)
  52547. switch ($async$goto) {
  52548. case 0:
  52549. // Function start
  52550. _box_0 = {};
  52551. t1 = $async$self.$this;
  52552. t2 = $async$self.$import;
  52553. $async$goto = 3;
  52554. return P._asyncAwait(t1._async_evaluate$_loadStylesheet$3$forImport(t2.url, t2.span, true), $async$call$0);
  52555. case 3:
  52556. // returning from await.
  52557. result = $async$result;
  52558. importer = result.item1;
  52559. stylesheet = result.item2;
  52560. url = stylesheet.span.file.url;
  52561. t3 = t1._async_evaluate$_activeModules;
  52562. if (t3.containsKey$1(url)) {
  52563. previousLoad = t3.$index(0, url);
  52564. throw H.wrapException(previousLoad == null ? t1._async_evaluate$_exception$1("This file is already being loaded.") : t1._async_evaluate$_multiSpanException$3("This file is already being loaded.", "new load", P.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(), "original load"], type$.FileSpan, type$.String)));
  52565. }
  52566. t3.$indexSet(0, url, t2);
  52567. t2 = new P.UnmodifiableListView(stylesheet._uses, type$.UnmodifiableListView_UseRule);
  52568. if (t2.get$length(t2) === 0) {
  52569. t2 = new P.UnmodifiableListView(stylesheet._forwards, type$.UnmodifiableListView_ForwardRule);
  52570. t2 = t2.get$length(t2) === 0;
  52571. } else
  52572. t2 = false;
  52573. $async$goto = t2 ? 4 : 5;
  52574. break;
  52575. case 4:
  52576. // then
  52577. oldImporter = t1._async_evaluate$_importer;
  52578. oldStylesheet = t1._async_evaluate$_stylesheet;
  52579. t1._async_evaluate$_importer = importer;
  52580. t1._async_evaluate$_stylesheet = stylesheet;
  52581. $async$goto = 6;
  52582. return P._asyncAwait(t1.visitStylesheet$1(stylesheet), $async$call$0);
  52583. case 6:
  52584. // returning from await.
  52585. t1._async_evaluate$_importer = oldImporter;
  52586. t1._async_evaluate$_stylesheet = oldStylesheet;
  52587. t3.remove$1(0, url);
  52588. // goto return
  52589. $async$goto = 1;
  52590. break;
  52591. case 5:
  52592. // join
  52593. _box_0.children = null;
  52594. t2 = t1._async_evaluate$_environment;
  52595. t4 = type$.String;
  52596. t5 = type$.Module_AsyncCallable;
  52597. t6 = type$.AstNode;
  52598. t7 = H.setRuntimeTypeInfo([], type$.JSArray_Module_AsyncCallable);
  52599. t8 = t2._async_environment$_variables;
  52600. t8 = H.setRuntimeTypeInfo(t8.slice(0), H._arrayInstanceType(t8));
  52601. t9 = t2._async_environment$_variableNodes;
  52602. if (t9 == null)
  52603. t9 = null;
  52604. else
  52605. t9 = H.setRuntimeTypeInfo(t9.slice(0), H._arrayInstanceType(t9));
  52606. t10 = t2._async_environment$_functions;
  52607. t10 = H.setRuntimeTypeInfo(t10.slice(0), H._arrayInstanceType(t10));
  52608. t11 = t2._async_environment$_mixins;
  52609. t11 = H.setRuntimeTypeInfo(t11.slice(0), H._arrayInstanceType(t11));
  52610. environment = Q.AsyncEnvironment$_(P.LinkedHashMap_LinkedHashMap$_empty(t4, t5), P.LinkedHashMap_LinkedHashMap$_empty(t4, t6), P.LinkedHashSet_LinkedHashSet$_empty(t5), P.LinkedHashMap_LinkedHashMap$_empty(t5, t6), null, null, null, t7, t8, t9, t10, t11, t2._async_environment$_content);
  52611. $async$goto = 7;
  52612. return P._asyncAwait(t1._async_evaluate$_withEnvironment$1$2(environment, new E._EvaluateVisitor__visitDynamicImport__closure0(_box_0, t1, importer, stylesheet, environment), type$.Null), $async$call$0);
  52613. case 7:
  52614. // returning from await.
  52615. module = Q._EnvironmentModule__EnvironmentModule0(environment, new V.CssStylesheet(new P.UnmodifiableListView(C.List_empty0, type$.UnmodifiableListView_CssNode), Y.SourceFile$decoded(C.List_empty1, "<dummy module>").span$1(0)), C.C_EmptyExtender, environment._async_environment$_forwardedModules);
  52616. t1._async_evaluate$_environment.importForwards$1(module);
  52617. $async$goto = module.transitivelyContainsCss ? 8 : 9;
  52618. break;
  52619. case 8:
  52620. // then
  52621. $async$goto = 10;
  52622. return P._asyncAwait(t1._async_evaluate$_combineCss$2$clone(module, module.transitivelyContainsExtensions).accept$1(t1), $async$call$0);
  52623. case 10:
  52624. // returning from await.
  52625. case 9:
  52626. // join
  52627. visitor = new E._ImportedCssVisitor0(t1);
  52628. for (t1 = J.get$iterator$ax(_box_0.children); t1.moveNext$0();)
  52629. t1.get$current(t1).accept$1(visitor);
  52630. t3.remove$1(0, url);
  52631. case 1:
  52632. // return
  52633. return P._asyncReturn($async$returnValue, $async$completer);
  52634. }
  52635. });
  52636. return P._asyncStartSync($async$call$0, $async$completer);
  52637. },
  52638. $signature: 2
  52639. };
  52640. E._EvaluateVisitor__visitDynamicImport__closure0.prototype = {
  52641. call$0: function() {
  52642. var $async$goto = 0,
  52643. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  52644. $async$self = this, t2, t3, t1, oldImporter, oldStylesheet, oldRoot, oldParent, oldEndOfImports, oldOutOfOrderImports, oldConfiguration;
  52645. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52646. if ($async$errorCode === 1)
  52647. return P._asyncRethrow($async$result, $async$completer);
  52648. while (true)
  52649. switch ($async$goto) {
  52650. case 0:
  52651. // Function start
  52652. t1 = $async$self.$this;
  52653. oldImporter = t1._async_evaluate$_importer;
  52654. oldStylesheet = t1._async_evaluate$_stylesheet;
  52655. oldRoot = t1._async_evaluate$_root;
  52656. oldParent = t1._async_evaluate$_parent;
  52657. oldEndOfImports = t1._async_evaluate$_endOfImports;
  52658. oldOutOfOrderImports = t1._async_evaluate$_outOfOrderImports;
  52659. oldConfiguration = t1._async_evaluate$_configuration;
  52660. t1._async_evaluate$_importer = $async$self.importer;
  52661. t2 = t1._async_evaluate$_stylesheet = $async$self.stylesheet;
  52662. t3 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
  52663. t1._async_evaluate$_parent = t1._async_evaluate$_root = new V.ModifiableCssStylesheet(t2.span, new P.UnmodifiableListView(t3, type$.UnmodifiableListView_ModifiableCssNode), t3);
  52664. t1._async_evaluate$_endOfImports = 0;
  52665. t1._async_evaluate$_outOfOrderImports = null;
  52666. t3 = new P.UnmodifiableListView(t2._forwards, type$.UnmodifiableListView_ForwardRule);
  52667. if (!t3.get$isEmpty(t3))
  52668. t1._async_evaluate$_configuration = $async$self.environment.toImplicitConfiguration$0();
  52669. $async$goto = 2;
  52670. return P._asyncAwait(t1.visitStylesheet$1(t2), $async$call$0);
  52671. case 2:
  52672. // returning from await.
  52673. $async$self._box_0.children = t1._async_evaluate$_addOutOfOrderImports$0();
  52674. t1._async_evaluate$_importer = oldImporter;
  52675. t1._async_evaluate$_stylesheet = oldStylesheet;
  52676. t1._async_evaluate$_root = oldRoot;
  52677. t1._async_evaluate$_parent = oldParent;
  52678. t1._async_evaluate$_endOfImports = oldEndOfImports;
  52679. t1._async_evaluate$_outOfOrderImports = oldOutOfOrderImports;
  52680. t1._async_evaluate$_configuration = oldConfiguration;
  52681. // implicit return
  52682. return P._asyncReturn(null, $async$completer);
  52683. }
  52684. });
  52685. return P._asyncStartSync($async$call$0, $async$completer);
  52686. },
  52687. $signature: 2
  52688. };
  52689. E._EvaluateVisitor_visitIncludeRule_closure2.prototype = {
  52690. call$0: function() {
  52691. var t1 = this.node;
  52692. return this.$this._async_evaluate$_environment.getMixin$2$namespace(t1.name, t1.namespace);
  52693. },
  52694. $signature: 45
  52695. };
  52696. E._EvaluateVisitor_visitIncludeRule_closure3.prototype = {
  52697. call$0: function() {
  52698. return this.node.get$spanWithoutContent();
  52699. },
  52700. "call*": "call$0",
  52701. $requiredArgCount: 0,
  52702. $signature: 24
  52703. };
  52704. E._EvaluateVisitor_visitIncludeRule_closure4.prototype = {
  52705. call$0: function() {
  52706. var $async$goto = 0,
  52707. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  52708. $async$returnValue, $async$self = this, t1;
  52709. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52710. if ($async$errorCode === 1)
  52711. return P._asyncRethrow($async$result, $async$completer);
  52712. while (true)
  52713. switch ($async$goto) {
  52714. case 0:
  52715. // Function start
  52716. t1 = $async$self.$this;
  52717. $async$goto = 3;
  52718. return P._asyncAwait(t1._async_evaluate$_environment.withContent$2($async$self.contentCallable, new E._EvaluateVisitor_visitIncludeRule__closure0(t1, $async$self.mixin, $async$self.nodeWithSpan)), $async$call$0);
  52719. case 3:
  52720. // returning from await.
  52721. $async$returnValue = null;
  52722. // goto return
  52723. $async$goto = 1;
  52724. break;
  52725. case 1:
  52726. // return
  52727. return P._asyncReturn($async$returnValue, $async$completer);
  52728. }
  52729. });
  52730. return P._asyncStartSync($async$call$0, $async$completer);
  52731. },
  52732. $signature: 2
  52733. };
  52734. E._EvaluateVisitor_visitIncludeRule__closure0.prototype = {
  52735. call$0: function() {
  52736. var $async$goto = 0,
  52737. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  52738. $async$returnValue, $async$self = this, t1;
  52739. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52740. if ($async$errorCode === 1)
  52741. return P._asyncRethrow($async$result, $async$completer);
  52742. while (true)
  52743. switch ($async$goto) {
  52744. case 0:
  52745. // Function start
  52746. t1 = $async$self.$this;
  52747. $async$goto = 3;
  52748. return P._asyncAwait(t1._async_evaluate$_environment.asMixin$1(new E._EvaluateVisitor_visitIncludeRule___closure0(t1, $async$self.mixin, $async$self.nodeWithSpan)), $async$call$0);
  52749. case 3:
  52750. // returning from await.
  52751. $async$returnValue = null;
  52752. // goto return
  52753. $async$goto = 1;
  52754. break;
  52755. case 1:
  52756. // return
  52757. return P._asyncReturn($async$returnValue, $async$completer);
  52758. }
  52759. });
  52760. return P._asyncStartSync($async$call$0, $async$completer);
  52761. },
  52762. $signature: 2
  52763. };
  52764. E._EvaluateVisitor_visitIncludeRule___closure0.prototype = {
  52765. call$0: function() {
  52766. var $async$goto = 0,
  52767. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  52768. $async$self = this, t1, t2, t3, t4, t5, _i;
  52769. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52770. if ($async$errorCode === 1)
  52771. return P._asyncRethrow($async$result, $async$completer);
  52772. while (true)
  52773. switch ($async$goto) {
  52774. case 0:
  52775. // Function start
  52776. t1 = $async$self.mixin.declaration.children, t2 = t1.length, t3 = $async$self.$this, t4 = $async$self.nodeWithSpan, t5 = type$.Value, _i = 0;
  52777. case 2:
  52778. // for condition
  52779. if (!(_i < t2)) {
  52780. // goto after for
  52781. $async$goto = 4;
  52782. break;
  52783. }
  52784. $async$goto = 5;
  52785. return P._asyncAwait(t3._async_evaluate$_addErrorSpan$1$2(t4, new E._EvaluateVisitor_visitIncludeRule____closure0(t3, t1[_i]), t5), $async$call$0);
  52786. case 5:
  52787. // returning from await.
  52788. case 3:
  52789. // for update
  52790. ++_i;
  52791. // goto for condition
  52792. $async$goto = 2;
  52793. break;
  52794. case 4:
  52795. // after for
  52796. // implicit return
  52797. return P._asyncReturn(null, $async$completer);
  52798. }
  52799. });
  52800. return P._asyncStartSync($async$call$0, $async$completer);
  52801. },
  52802. $signature: 2
  52803. };
  52804. E._EvaluateVisitor_visitIncludeRule____closure0.prototype = {
  52805. call$0: function() {
  52806. return this.statement.accept$1(this.$this);
  52807. },
  52808. $signature: 20
  52809. };
  52810. E._EvaluateVisitor_visitMediaRule_closure1.prototype = {
  52811. call$0: function() {
  52812. var $async$goto = 0,
  52813. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  52814. $async$self = this, t1, t2;
  52815. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52816. if ($async$errorCode === 1)
  52817. return P._asyncRethrow($async$result, $async$completer);
  52818. while (true)
  52819. switch ($async$goto) {
  52820. case 0:
  52821. // Function start
  52822. t1 = $async$self.$this;
  52823. t2 = $async$self.mergedQueries;
  52824. if (t2 == null)
  52825. t2 = $async$self.queries;
  52826. $async$goto = 2;
  52827. return P._asyncAwait(t1._async_evaluate$_withMediaQueries$1$2(t2, new E._EvaluateVisitor_visitMediaRule__closure0(t1, $async$self.node), type$.Null), $async$call$0);
  52828. case 2:
  52829. // returning from await.
  52830. // implicit return
  52831. return P._asyncReturn(null, $async$completer);
  52832. }
  52833. });
  52834. return P._asyncStartSync($async$call$0, $async$completer);
  52835. },
  52836. $signature: 2
  52837. };
  52838. E._EvaluateVisitor_visitMediaRule__closure0.prototype = {
  52839. call$0: function() {
  52840. var $async$goto = 0,
  52841. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  52842. $async$self = this, t3, _i, t1, t2;
  52843. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52844. if ($async$errorCode === 1)
  52845. return P._asyncRethrow($async$result, $async$completer);
  52846. while (true)
  52847. switch ($async$goto) {
  52848. case 0:
  52849. // Function start
  52850. t1 = $async$self.$this;
  52851. t2 = t1._async_evaluate$_styleRule;
  52852. $async$goto = !(t2 != null && !t1._async_evaluate$_atRootExcludingStyleRule) ? 2 : 4;
  52853. break;
  52854. case 2:
  52855. // then
  52856. t2 = $async$self.node.children, t3 = t2.length, _i = 0;
  52857. case 5:
  52858. // for condition
  52859. if (!(_i < t3)) {
  52860. // goto after for
  52861. $async$goto = 7;
  52862. break;
  52863. }
  52864. $async$goto = 8;
  52865. return P._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
  52866. case 8:
  52867. // returning from await.
  52868. case 6:
  52869. // for update
  52870. ++_i;
  52871. // goto for condition
  52872. $async$goto = 5;
  52873. break;
  52874. case 7:
  52875. // after for
  52876. // goto join
  52877. $async$goto = 3;
  52878. break;
  52879. case 4:
  52880. // else
  52881. $async$goto = 9;
  52882. return P._asyncAwait(t1._async_evaluate$_withParent$2$3$scopeWhen(X.ModifiableCssStyleRule$(t2.selector, t2.span, t2.originalSelector), new E._EvaluateVisitor_visitMediaRule___closure0(t1, $async$self.node), false, type$.ModifiableCssStyleRule, type$.Null), $async$call$0);
  52883. case 9:
  52884. // returning from await.
  52885. case 3:
  52886. // join
  52887. // implicit return
  52888. return P._asyncReturn(null, $async$completer);
  52889. }
  52890. });
  52891. return P._asyncStartSync($async$call$0, $async$completer);
  52892. },
  52893. $signature: 2
  52894. };
  52895. E._EvaluateVisitor_visitMediaRule___closure0.prototype = {
  52896. call$0: function() {
  52897. var $async$goto = 0,
  52898. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  52899. $async$self = this, t1, t2, t3, _i;
  52900. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52901. if ($async$errorCode === 1)
  52902. return P._asyncRethrow($async$result, $async$completer);
  52903. while (true)
  52904. switch ($async$goto) {
  52905. case 0:
  52906. // Function start
  52907. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  52908. case 2:
  52909. // for condition
  52910. if (!(_i < t2)) {
  52911. // goto after for
  52912. $async$goto = 4;
  52913. break;
  52914. }
  52915. $async$goto = 5;
  52916. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  52917. case 5:
  52918. // returning from await.
  52919. case 3:
  52920. // for update
  52921. ++_i;
  52922. // goto for condition
  52923. $async$goto = 2;
  52924. break;
  52925. case 4:
  52926. // after for
  52927. // implicit return
  52928. return P._asyncReturn(null, $async$completer);
  52929. }
  52930. });
  52931. return P._asyncStartSync($async$call$0, $async$completer);
  52932. },
  52933. $signature: 2
  52934. };
  52935. E._EvaluateVisitor_visitMediaRule_closure2.prototype = {
  52936. call$1: function(node) {
  52937. var t1;
  52938. if (!type$.CssStyleRule._is(node))
  52939. t1 = this.mergedQueries != null && type$.CssMediaRule._is(node);
  52940. else
  52941. t1 = true;
  52942. return t1;
  52943. }
  52944. };
  52945. E._EvaluateVisitor__visitMediaQueries_closure0.prototype = {
  52946. call$0: function() {
  52947. var t1 = S.SpanScanner$(this.resolved, null);
  52948. return new F.MediaQueryParser(t1, this.$this._async_evaluate$_logger).parse$0();
  52949. },
  52950. $signature: 62
  52951. };
  52952. E._EvaluateVisitor_visitStyleRule_closure6.prototype = {
  52953. call$0: function() {
  52954. var t1 = this.selectorText;
  52955. t1 = S.SpanScanner$(t1.get$value(t1), null);
  52956. return new E.KeyframeSelectorParser(t1, this.$this._async_evaluate$_logger).parse$0();
  52957. },
  52958. $signature: 32
  52959. };
  52960. E._EvaluateVisitor_visitStyleRule_closure7.prototype = {
  52961. call$0: function() {
  52962. var $async$goto = 0,
  52963. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  52964. $async$self = this, t1, t2, t3, _i;
  52965. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52966. if ($async$errorCode === 1)
  52967. return P._asyncRethrow($async$result, $async$completer);
  52968. while (true)
  52969. switch ($async$goto) {
  52970. case 0:
  52971. // Function start
  52972. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  52973. case 2:
  52974. // for condition
  52975. if (!(_i < t2)) {
  52976. // goto after for
  52977. $async$goto = 4;
  52978. break;
  52979. }
  52980. $async$goto = 5;
  52981. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  52982. case 5:
  52983. // returning from await.
  52984. case 3:
  52985. // for update
  52986. ++_i;
  52987. // goto for condition
  52988. $async$goto = 2;
  52989. break;
  52990. case 4:
  52991. // after for
  52992. // implicit return
  52993. return P._asyncReturn(null, $async$completer);
  52994. }
  52995. });
  52996. return P._asyncStartSync($async$call$0, $async$completer);
  52997. },
  52998. $signature: 2
  52999. };
  53000. E._EvaluateVisitor_visitStyleRule_closure8.prototype = {
  53001. call$1: function(node) {
  53002. return type$.CssStyleRule._is(node);
  53003. }
  53004. };
  53005. E._EvaluateVisitor_visitStyleRule_closure9.prototype = {
  53006. call$0: function() {
  53007. var t2, t3,
  53008. t1 = this.selectorText;
  53009. t1 = t1.get$value(t1);
  53010. t2 = this.$this;
  53011. t3 = !t2._async_evaluate$_stylesheet.plainCss;
  53012. return D.SelectorList_SelectorList$parse(t1, t3, t3, t2._async_evaluate$_logger);
  53013. },
  53014. $signature: 31
  53015. };
  53016. E._EvaluateVisitor_visitStyleRule_closure10.prototype = {
  53017. call$0: function() {
  53018. var t1 = this._box_0.parsedSelector,
  53019. t2 = this.$this,
  53020. t3 = t2._async_evaluate$_styleRule;
  53021. t3 = t3 == null ? null : t3.originalSelector;
  53022. return t1.resolveParentSelectors$2$implicitParent(t3, !t2._async_evaluate$_atRootExcludingStyleRule);
  53023. },
  53024. $signature: 31
  53025. };
  53026. E._EvaluateVisitor_visitStyleRule_closure11.prototype = {
  53027. call$0: function() {
  53028. var $async$goto = 0,
  53029. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  53030. $async$self = this, t1;
  53031. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53032. if ($async$errorCode === 1)
  53033. return P._asyncRethrow($async$result, $async$completer);
  53034. while (true)
  53035. switch ($async$goto) {
  53036. case 0:
  53037. // Function start
  53038. t1 = $async$self.$this;
  53039. $async$goto = 2;
  53040. return P._asyncAwait(t1._async_evaluate$_withStyleRule$1$2($async$self.rule, new E._EvaluateVisitor_visitStyleRule__closure0(t1, $async$self.node), type$.Null), $async$call$0);
  53041. case 2:
  53042. // returning from await.
  53043. // implicit return
  53044. return P._asyncReturn(null, $async$completer);
  53045. }
  53046. });
  53047. return P._asyncStartSync($async$call$0, $async$completer);
  53048. },
  53049. $signature: 2
  53050. };
  53051. E._EvaluateVisitor_visitStyleRule__closure0.prototype = {
  53052. call$0: function() {
  53053. var $async$goto = 0,
  53054. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  53055. $async$self = this, t1, t2, t3, _i;
  53056. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53057. if ($async$errorCode === 1)
  53058. return P._asyncRethrow($async$result, $async$completer);
  53059. while (true)
  53060. switch ($async$goto) {
  53061. case 0:
  53062. // Function start
  53063. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  53064. case 2:
  53065. // for condition
  53066. if (!(_i < t2)) {
  53067. // goto after for
  53068. $async$goto = 4;
  53069. break;
  53070. }
  53071. $async$goto = 5;
  53072. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  53073. case 5:
  53074. // returning from await.
  53075. case 3:
  53076. // for update
  53077. ++_i;
  53078. // goto for condition
  53079. $async$goto = 2;
  53080. break;
  53081. case 4:
  53082. // after for
  53083. // implicit return
  53084. return P._asyncReturn(null, $async$completer);
  53085. }
  53086. });
  53087. return P._asyncStartSync($async$call$0, $async$completer);
  53088. },
  53089. $signature: 2
  53090. };
  53091. E._EvaluateVisitor_visitStyleRule_closure12.prototype = {
  53092. call$1: function(node) {
  53093. return type$.CssStyleRule._is(node);
  53094. }
  53095. };
  53096. E._EvaluateVisitor_visitSupportsRule_closure1.prototype = {
  53097. call$0: function() {
  53098. var $async$goto = 0,
  53099. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  53100. $async$self = this, t3, _i, t1, t2;
  53101. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53102. if ($async$errorCode === 1)
  53103. return P._asyncRethrow($async$result, $async$completer);
  53104. while (true)
  53105. switch ($async$goto) {
  53106. case 0:
  53107. // Function start
  53108. t1 = $async$self.$this;
  53109. t2 = t1._async_evaluate$_styleRule;
  53110. $async$goto = !(t2 != null && !t1._async_evaluate$_atRootExcludingStyleRule) ? 2 : 4;
  53111. break;
  53112. case 2:
  53113. // then
  53114. t2 = $async$self.node.children, t3 = t2.length, _i = 0;
  53115. case 5:
  53116. // for condition
  53117. if (!(_i < t3)) {
  53118. // goto after for
  53119. $async$goto = 7;
  53120. break;
  53121. }
  53122. $async$goto = 8;
  53123. return P._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
  53124. case 8:
  53125. // returning from await.
  53126. case 6:
  53127. // for update
  53128. ++_i;
  53129. // goto for condition
  53130. $async$goto = 5;
  53131. break;
  53132. case 7:
  53133. // after for
  53134. // goto join
  53135. $async$goto = 3;
  53136. break;
  53137. case 4:
  53138. // else
  53139. $async$goto = 9;
  53140. return P._asyncAwait(t1._async_evaluate$_withParent$2$2(X.ModifiableCssStyleRule$(t2.selector, t2.span, t2.originalSelector), new E._EvaluateVisitor_visitSupportsRule__closure0(t1, $async$self.node), type$.ModifiableCssStyleRule, type$.Null), $async$call$0);
  53141. case 9:
  53142. // returning from await.
  53143. case 3:
  53144. // join
  53145. // implicit return
  53146. return P._asyncReturn(null, $async$completer);
  53147. }
  53148. });
  53149. return P._asyncStartSync($async$call$0, $async$completer);
  53150. },
  53151. $signature: 2
  53152. };
  53153. E._EvaluateVisitor_visitSupportsRule__closure0.prototype = {
  53154. call$0: function() {
  53155. var $async$goto = 0,
  53156. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  53157. $async$self = this, t1, t2, t3, _i;
  53158. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53159. if ($async$errorCode === 1)
  53160. return P._asyncRethrow($async$result, $async$completer);
  53161. while (true)
  53162. switch ($async$goto) {
  53163. case 0:
  53164. // Function start
  53165. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  53166. case 2:
  53167. // for condition
  53168. if (!(_i < t2)) {
  53169. // goto after for
  53170. $async$goto = 4;
  53171. break;
  53172. }
  53173. $async$goto = 5;
  53174. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  53175. case 5:
  53176. // returning from await.
  53177. case 3:
  53178. // for update
  53179. ++_i;
  53180. // goto for condition
  53181. $async$goto = 2;
  53182. break;
  53183. case 4:
  53184. // after for
  53185. // implicit return
  53186. return P._asyncReturn(null, $async$completer);
  53187. }
  53188. });
  53189. return P._asyncStartSync($async$call$0, $async$completer);
  53190. },
  53191. $signature: 2
  53192. };
  53193. E._EvaluateVisitor_visitSupportsRule_closure2.prototype = {
  53194. call$1: function(node) {
  53195. return type$.CssStyleRule._is(node);
  53196. }
  53197. };
  53198. E._EvaluateVisitor_visitVariableDeclaration_closure2.prototype = {
  53199. call$0: function() {
  53200. var t1 = this.override;
  53201. this.$this._async_evaluate$_environment.setVariable$4$global(this.node.name, t1.value, t1.assignmentNode, true);
  53202. },
  53203. $signature: 0
  53204. };
  53205. E._EvaluateVisitor_visitVariableDeclaration_closure3.prototype = {
  53206. call$0: function() {
  53207. var t1 = this.node;
  53208. return this.$this._async_evaluate$_environment.getVariable$2$namespace(t1.name, t1.namespace);
  53209. },
  53210. $signature: 9
  53211. };
  53212. E._EvaluateVisitor_visitVariableDeclaration_closure4.prototype = {
  53213. call$0: function() {
  53214. var t1 = this.$this,
  53215. t2 = this.node;
  53216. t1._async_evaluate$_environment.setVariable$5$global$namespace(t2.name, this.value, t1._async_evaluate$_expressionNode$1(t2.expression), t2.isGlobal, t2.namespace);
  53217. },
  53218. $signature: 0
  53219. };
  53220. E._EvaluateVisitor_visitUseRule_closure0.prototype = {
  53221. call$1: function(module) {
  53222. var t1 = this.node;
  53223. this.$this._async_evaluate$_environment.addModule$3$namespace(module, t1, t1.namespace);
  53224. }
  53225. };
  53226. E._EvaluateVisitor_visitWarnRule_closure0.prototype = {
  53227. call$0: function() {
  53228. return this.node.expression.accept$1(this.$this);
  53229. },
  53230. $signature: 20
  53231. };
  53232. E._EvaluateVisitor_visitWhileRule_closure0.prototype = {
  53233. call$0: function() {
  53234. var $async$goto = 0,
  53235. $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
  53236. $async$returnValue, $async$self = this, t1, t2, t3, result;
  53237. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53238. if ($async$errorCode === 1)
  53239. return P._asyncRethrow($async$result, $async$completer);
  53240. while (true)
  53241. switch ($async$goto) {
  53242. case 0:
  53243. // Function start
  53244. t1 = $async$self.node, t2 = t1.condition, t3 = $async$self.$this, t1 = t1.children;
  53245. case 3:
  53246. // for condition
  53247. $async$goto = 5;
  53248. return P._asyncAwait(t2.accept$1(t3), $async$call$0);
  53249. case 5:
  53250. // returning from await.
  53251. if (!$async$result.get$isTruthy()) {
  53252. // goto after for
  53253. $async$goto = 4;
  53254. break;
  53255. }
  53256. $async$goto = 6;
  53257. return P._asyncAwait(t3._async_evaluate$_handleReturn$2(t1, new E._EvaluateVisitor_visitWhileRule__closure0(t3)), $async$call$0);
  53258. case 6:
  53259. // returning from await.
  53260. result = $async$result;
  53261. if (result != null) {
  53262. $async$returnValue = result;
  53263. // goto return
  53264. $async$goto = 1;
  53265. break;
  53266. }
  53267. // goto for condition
  53268. $async$goto = 3;
  53269. break;
  53270. case 4:
  53271. // after for
  53272. $async$returnValue = null;
  53273. // goto return
  53274. $async$goto = 1;
  53275. break;
  53276. case 1:
  53277. // return
  53278. return P._asyncReturn($async$returnValue, $async$completer);
  53279. }
  53280. });
  53281. return P._asyncStartSync($async$call$0, $async$completer);
  53282. },
  53283. $signature: 20
  53284. };
  53285. E._EvaluateVisitor_visitWhileRule__closure0.prototype = {
  53286. call$1: function(child) {
  53287. return child.accept$1(this.$this);
  53288. }
  53289. };
  53290. E._EvaluateVisitor_visitBinaryOperationExpression_closure0.prototype = {
  53291. call$0: function() {
  53292. var $async$goto = 0,
  53293. $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
  53294. $async$returnValue, $async$self = this, right, result, t1, t2, left, $async$temp1, $async$temp2;
  53295. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53296. if ($async$errorCode === 1)
  53297. return P._asyncRethrow($async$result, $async$completer);
  53298. while (true)
  53299. switch ($async$goto) {
  53300. case 0:
  53301. // Function start
  53302. t1 = $async$self.node;
  53303. t2 = $async$self.$this;
  53304. $async$goto = 3;
  53305. return P._asyncAwait(t1.left.accept$1(t2), $async$call$0);
  53306. case 3:
  53307. // returning from await.
  53308. left = $async$result;
  53309. case 4:
  53310. // switch
  53311. switch (t1.operator) {
  53312. case C.BinaryOperator_kjl:
  53313. // goto case
  53314. $async$goto = 6;
  53315. break;
  53316. case C.BinaryOperator_or_or_1:
  53317. // goto case
  53318. $async$goto = 7;
  53319. break;
  53320. case C.BinaryOperator_and_and_2:
  53321. // goto case
  53322. $async$goto = 8;
  53323. break;
  53324. case C.BinaryOperator_YlX:
  53325. // goto case
  53326. $async$goto = 9;
  53327. break;
  53328. case C.BinaryOperator_i5H:
  53329. // goto case
  53330. $async$goto = 10;
  53331. break;
  53332. case C.BinaryOperator_AcR0:
  53333. // goto case
  53334. $async$goto = 11;
  53335. break;
  53336. case C.BinaryOperator_1da:
  53337. // goto case
  53338. $async$goto = 12;
  53339. break;
  53340. case C.BinaryOperator_8qt:
  53341. // goto case
  53342. $async$goto = 13;
  53343. break;
  53344. case C.BinaryOperator_33h:
  53345. // goto case
  53346. $async$goto = 14;
  53347. break;
  53348. case C.BinaryOperator_AcR:
  53349. // goto case
  53350. $async$goto = 15;
  53351. break;
  53352. case C.BinaryOperator_iyO:
  53353. // goto case
  53354. $async$goto = 16;
  53355. break;
  53356. case C.BinaryOperator_O1M:
  53357. // goto case
  53358. $async$goto = 17;
  53359. break;
  53360. case C.BinaryOperator_RTB:
  53361. // goto case
  53362. $async$goto = 18;
  53363. break;
  53364. case C.BinaryOperator_2ad:
  53365. // goto case
  53366. $async$goto = 19;
  53367. break;
  53368. default:
  53369. // goto default
  53370. $async$goto = 20;
  53371. break;
  53372. }
  53373. break;
  53374. case 6:
  53375. // case
  53376. $async$goto = 21;
  53377. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  53378. case 21:
  53379. // returning from await.
  53380. right = $async$result;
  53381. left.toString;
  53382. t1 = N.serializeValue0(left, false, true) + "=";
  53383. right.toString;
  53384. $async$returnValue = new D.SassString(t1 + N.serializeValue0(right, false, true), false);
  53385. // goto return
  53386. $async$goto = 1;
  53387. break;
  53388. case 7:
  53389. // case
  53390. $async$goto = left.get$isTruthy() ? 22 : 24;
  53391. break;
  53392. case 22:
  53393. // then
  53394. $async$result = left;
  53395. // goto join
  53396. $async$goto = 23;
  53397. break;
  53398. case 24:
  53399. // else
  53400. $async$goto = 25;
  53401. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  53402. case 25:
  53403. // returning from await.
  53404. case 23:
  53405. // join
  53406. $async$returnValue = $async$result;
  53407. // goto return
  53408. $async$goto = 1;
  53409. break;
  53410. case 8:
  53411. // case
  53412. $async$goto = left.get$isTruthy() ? 26 : 28;
  53413. break;
  53414. case 26:
  53415. // then
  53416. $async$goto = 29;
  53417. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  53418. case 29:
  53419. // returning from await.
  53420. // goto join
  53421. $async$goto = 27;
  53422. break;
  53423. case 28:
  53424. // else
  53425. $async$result = left;
  53426. case 27:
  53427. // join
  53428. $async$returnValue = $async$result;
  53429. // goto return
  53430. $async$goto = 1;
  53431. break;
  53432. case 9:
  53433. // case
  53434. $async$temp1 = J;
  53435. $async$temp2 = left;
  53436. $async$goto = 30;
  53437. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  53438. case 30:
  53439. // returning from await.
  53440. $async$returnValue = $async$temp1.$eq$($async$temp2, $async$result) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  53441. // goto return
  53442. $async$goto = 1;
  53443. break;
  53444. case 10:
  53445. // case
  53446. $async$temp1 = J;
  53447. $async$temp2 = left;
  53448. $async$goto = 31;
  53449. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  53450. case 31:
  53451. // returning from await.
  53452. $async$returnValue = !$async$temp1.$eq$($async$temp2, $async$result) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  53453. // goto return
  53454. $async$goto = 1;
  53455. break;
  53456. case 11:
  53457. // case
  53458. $async$temp1 = left;
  53459. $async$goto = 32;
  53460. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  53461. case 32:
  53462. // returning from await.
  53463. $async$returnValue = $async$temp1.greaterThan$1($async$result);
  53464. // goto return
  53465. $async$goto = 1;
  53466. break;
  53467. case 12:
  53468. // case
  53469. $async$temp1 = left;
  53470. $async$goto = 33;
  53471. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  53472. case 33:
  53473. // returning from await.
  53474. $async$returnValue = $async$temp1.greaterThanOrEquals$1($async$result);
  53475. // goto return
  53476. $async$goto = 1;
  53477. break;
  53478. case 13:
  53479. // case
  53480. $async$temp1 = left;
  53481. $async$goto = 34;
  53482. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  53483. case 34:
  53484. // returning from await.
  53485. $async$returnValue = $async$temp1.lessThan$1($async$result);
  53486. // goto return
  53487. $async$goto = 1;
  53488. break;
  53489. case 14:
  53490. // case
  53491. $async$temp1 = left;
  53492. $async$goto = 35;
  53493. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  53494. case 35:
  53495. // returning from await.
  53496. $async$returnValue = $async$temp1.lessThanOrEquals$1($async$result);
  53497. // goto return
  53498. $async$goto = 1;
  53499. break;
  53500. case 15:
  53501. // case
  53502. $async$temp1 = left;
  53503. $async$goto = 36;
  53504. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  53505. case 36:
  53506. // returning from await.
  53507. $async$returnValue = $async$temp1.plus$1($async$result);
  53508. // goto return
  53509. $async$goto = 1;
  53510. break;
  53511. case 16:
  53512. // case
  53513. $async$temp1 = left;
  53514. $async$goto = 37;
  53515. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  53516. case 37:
  53517. // returning from await.
  53518. $async$returnValue = $async$temp1.minus$1($async$result);
  53519. // goto return
  53520. $async$goto = 1;
  53521. break;
  53522. case 17:
  53523. // case
  53524. $async$temp1 = left;
  53525. $async$goto = 38;
  53526. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  53527. case 38:
  53528. // returning from await.
  53529. $async$returnValue = $async$temp1.times$1($async$result);
  53530. // goto return
  53531. $async$goto = 1;
  53532. break;
  53533. case 18:
  53534. // case
  53535. $async$goto = 39;
  53536. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  53537. case 39:
  53538. // returning from await.
  53539. right = $async$result;
  53540. result = left.dividedBy$1(right);
  53541. if (t1.allowsSlash && left instanceof T.SassNumber && right instanceof T.SassNumber) {
  53542. $async$returnValue = type$.SassNumber._as(result).withSlash$2(left, right);
  53543. // goto return
  53544. $async$goto = 1;
  53545. break;
  53546. } else {
  53547. $async$returnValue = result;
  53548. // goto return
  53549. $async$goto = 1;
  53550. break;
  53551. }
  53552. case 19:
  53553. // case
  53554. $async$temp1 = left;
  53555. $async$goto = 40;
  53556. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  53557. case 40:
  53558. // returning from await.
  53559. $async$returnValue = $async$temp1.modulo$1($async$result);
  53560. // goto return
  53561. $async$goto = 1;
  53562. break;
  53563. case 20:
  53564. // default
  53565. $async$returnValue = null;
  53566. // goto return
  53567. $async$goto = 1;
  53568. break;
  53569. case 5:
  53570. // after switch
  53571. case 1:
  53572. // return
  53573. return P._asyncReturn($async$returnValue, $async$completer);
  53574. }
  53575. });
  53576. return P._asyncStartSync($async$call$0, $async$completer);
  53577. },
  53578. $signature: 20
  53579. };
  53580. E._EvaluateVisitor_visitVariableExpression_closure0.prototype = {
  53581. call$0: function() {
  53582. var t1 = this.node;
  53583. return this.$this._async_evaluate$_environment.getVariable$2$namespace(t1.name, t1.namespace);
  53584. },
  53585. $signature: 9
  53586. };
  53587. E._EvaluateVisitor_visitListExpression_closure0.prototype = {
  53588. call$1: function(expression) {
  53589. return expression.accept$1(this.$this);
  53590. }
  53591. };
  53592. E._EvaluateVisitor_visitFunctionExpression_closure1.prototype = {
  53593. call$0: function() {
  53594. var t1 = this.node.namespace,
  53595. t2 = this.plainName;
  53596. if (t1 == null)
  53597. t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
  53598. return this.$this._async_evaluate$_getFunction$2$namespace(t2, t1);
  53599. },
  53600. $signature: 45
  53601. };
  53602. E._EvaluateVisitor_visitFunctionExpression_closure2.prototype = {
  53603. call$0: function() {
  53604. var t1 = this.node;
  53605. return this.$this._async_evaluate$_runFunctionCallable$3(t1.$arguments, this._box_0.$function, t1);
  53606. },
  53607. $signature: 20
  53608. };
  53609. E._EvaluateVisitor__runUserDefinedCallable_closure0.prototype = {
  53610. call$0: function() {
  53611. var _this = this,
  53612. t1 = _this.$this,
  53613. t2 = _this.callable;
  53614. return t1._async_evaluate$_withEnvironment$1$2(t2.environment.closure$0(), new E._EvaluateVisitor__runUserDefinedCallable__closure0(t1, _this.evaluated, t2, _this.nodeWithSpan, _this.run), type$.Value);
  53615. },
  53616. $signature: 20
  53617. };
  53618. E._EvaluateVisitor__runUserDefinedCallable__closure0.prototype = {
  53619. call$0: function() {
  53620. var _this = this,
  53621. t1 = _this.$this;
  53622. return t1._async_evaluate$_environment.scope$1$1(new E._EvaluateVisitor__runUserDefinedCallable___closure0(t1, _this.evaluated, _this.callable, _this.nodeWithSpan, _this.run), type$.Value);
  53623. },
  53624. $signature: 20
  53625. };
  53626. E._EvaluateVisitor__runUserDefinedCallable___closure0.prototype = {
  53627. call$0: function() {
  53628. var $async$goto = 0,
  53629. $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
  53630. $async$returnValue, $async$self = this, declaredArguments, minLength, t8, i, t9, t10, t11, argument, value, t12, rest, argumentList, result, argumentWord, argumentNames, t1, t2, t3, t4, t5, t6, t7;
  53631. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53632. if ($async$errorCode === 1)
  53633. return P._asyncRethrow($async$result, $async$completer);
  53634. while (true)
  53635. switch ($async$goto) {
  53636. case 0:
  53637. // Function start
  53638. t1 = $async$self.$this;
  53639. t2 = $async$self.evaluated;
  53640. t3 = t2.positional;
  53641. t4 = t3.length;
  53642. t5 = t2.named;
  53643. t6 = $async$self.callable.declaration.$arguments;
  53644. t7 = $async$self.nodeWithSpan;
  53645. t1._async_evaluate$_verifyArguments$4(t4, t5, t6, t7);
  53646. declaredArguments = t6.$arguments;
  53647. t4 = declaredArguments.length;
  53648. minLength = Math.min(t3.length, t4);
  53649. for (t8 = t1._async_evaluate$_sourceMap, i = 0; i < minLength; ++i) {
  53650. t9 = t1._async_evaluate$_environment;
  53651. t10 = declaredArguments[i].name;
  53652. t11 = t3[i].withoutSlash$0();
  53653. t9.setLocalVariable$3(t10, t11, t8 ? t2.positionalNodes[i] : null);
  53654. }
  53655. i = t3.length;
  53656. case 3:
  53657. // for condition
  53658. if (!(i < t4)) {
  53659. // goto after for
  53660. $async$goto = 5;
  53661. break;
  53662. }
  53663. argument = declaredArguments[i];
  53664. t9 = argument.name;
  53665. value = t5.remove$1(0, t9);
  53666. $async$goto = value == null ? 6 : 7;
  53667. break;
  53668. case 6:
  53669. // then
  53670. $async$goto = 8;
  53671. return P._asyncAwait(argument.defaultValue.accept$1(t1), $async$call$0);
  53672. case 8:
  53673. // returning from await.
  53674. value = $async$result;
  53675. case 7:
  53676. // join
  53677. t10 = t1._async_evaluate$_environment;
  53678. t11 = value.withoutSlash$0();
  53679. if (t8) {
  53680. t12 = t2.namedNodes.$index(0, t9);
  53681. if (t12 == null)
  53682. t12 = t1._async_evaluate$_expressionNode$1(argument.defaultValue);
  53683. } else
  53684. t12 = null;
  53685. t10.setLocalVariable$3(t9, t11, t12);
  53686. case 4:
  53687. // for update
  53688. ++i;
  53689. // goto for condition
  53690. $async$goto = 3;
  53691. break;
  53692. case 5:
  53693. // after for
  53694. t8 = t6.restArgument;
  53695. if (t8 != null) {
  53696. rest = t3.length > t4 ? C.JSArray_methods.sublist$1(t3, t4) : C.List_empty5;
  53697. t2 = t2.separator;
  53698. if (t2 === C.ListSeparator_undecided)
  53699. t2 = C.ListSeparator_comma;
  53700. t3 = type$.Value;
  53701. argumentList = new D.SassArgumentList(H.ConstantMap_ConstantMap$from(t5, type$.String, t3), P.List_List$unmodifiable(rest, t3), t2, false);
  53702. argumentList.SassList$3$brackets(rest, t2, false);
  53703. t1._async_evaluate$_environment.setLocalVariable$3(t8, argumentList, t7);
  53704. } else
  53705. argumentList = null;
  53706. $async$goto = 9;
  53707. return P._asyncAwait($async$self.run.call$0(), $async$call$0);
  53708. case 9:
  53709. // returning from await.
  53710. result = $async$result;
  53711. if (argumentList == null) {
  53712. $async$returnValue = result;
  53713. // goto return
  53714. $async$goto = 1;
  53715. break;
  53716. }
  53717. if (t5.get$isEmpty(t5)) {
  53718. $async$returnValue = result;
  53719. // goto return
  53720. $async$goto = 1;
  53721. break;
  53722. }
  53723. if (argumentList._wereKeywordsAccessed) {
  53724. $async$returnValue = result;
  53725. // goto return
  53726. $async$goto = 1;
  53727. break;
  53728. }
  53729. argumentWord = B.pluralize("argument", J.get$length$asx(t5.get$keys()), null);
  53730. argumentNames = B.toSentence(J.map$1$1$ax(t5.get$keys(), new E._EvaluateVisitor__runUserDefinedCallable____closure0(), type$.Object), "or");
  53731. throw H.wrapException(E.MultiSpanSassRuntimeException$("No " + argumentWord + " named " + H.S(argumentNames) + ".", t7.get$span(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([t6.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), t1._async_evaluate$_stackTrace$1(t7.get$span())));
  53732. case 1:
  53733. // return
  53734. return P._asyncReturn($async$returnValue, $async$completer);
  53735. }
  53736. });
  53737. return P._asyncStartSync($async$call$0, $async$completer);
  53738. },
  53739. $signature: 20
  53740. };
  53741. E._EvaluateVisitor__runUserDefinedCallable____closure0.prototype = {
  53742. call$1: function($name) {
  53743. return "$" + H.S($name);
  53744. }
  53745. };
  53746. E._EvaluateVisitor__runFunctionCallable_closure0.prototype = {
  53747. call$0: function() {
  53748. var $async$goto = 0,
  53749. $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
  53750. $async$returnValue, $async$self = this, t1, t2, t3, t4, _i, $returnValue;
  53751. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53752. if ($async$errorCode === 1)
  53753. return P._asyncRethrow($async$result, $async$completer);
  53754. while (true)
  53755. switch ($async$goto) {
  53756. case 0:
  53757. // Function start
  53758. t1 = $async$self.callable.declaration, t2 = t1.children, t3 = t2.length, t4 = $async$self.$this, _i = 0;
  53759. case 3:
  53760. // for condition
  53761. if (!(_i < t3)) {
  53762. // goto after for
  53763. $async$goto = 5;
  53764. break;
  53765. }
  53766. $async$goto = 6;
  53767. return P._asyncAwait(t2[_i].accept$1(t4), $async$call$0);
  53768. case 6:
  53769. // returning from await.
  53770. $returnValue = $async$result;
  53771. if ($returnValue instanceof F.Value) {
  53772. $async$returnValue = $returnValue;
  53773. // goto return
  53774. $async$goto = 1;
  53775. break;
  53776. }
  53777. case 4:
  53778. // for update
  53779. ++_i;
  53780. // goto for condition
  53781. $async$goto = 3;
  53782. break;
  53783. case 5:
  53784. // after for
  53785. throw H.wrapException(t4._async_evaluate$_exception$2("Function finished without @return.", t1.span));
  53786. case 1:
  53787. // return
  53788. return P._asyncReturn($async$returnValue, $async$completer);
  53789. }
  53790. });
  53791. return P._asyncStartSync($async$call$0, $async$completer);
  53792. },
  53793. $signature: 20
  53794. };
  53795. E._EvaluateVisitor__runBuiltInCallable_closure1.prototype = {
  53796. call$0: function() {
  53797. return this.overload.verify$2(this.evaluated.positional.length, this.namedSet);
  53798. },
  53799. $signature: 1
  53800. };
  53801. E._EvaluateVisitor__runBuiltInCallable_closure2.prototype = {
  53802. call$1: function($name) {
  53803. return "$" + H.S($name);
  53804. }
  53805. };
  53806. E._EvaluateVisitor__evaluateArguments_closure2.prototype = {
  53807. call$2: function(_, expression) {
  53808. return expression.accept$1(this.$this);
  53809. }
  53810. };
  53811. E._EvaluateVisitor__evaluateArguments_closure3.prototype = {
  53812. call$2: function(_, expression) {
  53813. return this.$this._async_evaluate$_expressionNode$1(expression);
  53814. }
  53815. };
  53816. E._EvaluateVisitor__evaluateArguments_closure4.prototype = {
  53817. call$2: function(key, value) {
  53818. var t1;
  53819. this.named.$indexSet(0, key, value);
  53820. t1 = this.namedNodes;
  53821. if (t1 != null)
  53822. t1.$indexSet(0, key, this.restNodeForSpan);
  53823. }
  53824. };
  53825. E._EvaluateVisitor__evaluateMacroArguments_closure3.prototype = {
  53826. call$1: function(value) {
  53827. return new F.ValueExpression(value, null);
  53828. }
  53829. };
  53830. E._EvaluateVisitor__evaluateMacroArguments_closure4.prototype = {
  53831. call$1: function(value) {
  53832. return new F.ValueExpression(value, null);
  53833. }
  53834. };
  53835. E._EvaluateVisitor__evaluateMacroArguments_closure5.prototype = {
  53836. call$2: function(key, value) {
  53837. this.named.$indexSet(0, key, new F.ValueExpression(value, null));
  53838. }
  53839. };
  53840. E._EvaluateVisitor__evaluateMacroArguments_closure6.prototype = {
  53841. call$1: function(value) {
  53842. return new F.ValueExpression(value, null);
  53843. }
  53844. };
  53845. E._EvaluateVisitor__addRestMap_closure1.prototype = {
  53846. call$1: function(value) {
  53847. return this.T._as(value);
  53848. }
  53849. };
  53850. E._EvaluateVisitor__addRestMap_closure2.prototype = {
  53851. call$2: function(key, value) {
  53852. var _this = this;
  53853. if (key instanceof D.SassString)
  53854. _this.values.$indexSet(0, key.text, _this._box_0.convert.call$1(value));
  53855. else
  53856. throw H.wrapException(_this.$this._async_evaluate$_exception$2("Variable keyword argument map must have string keys.\n" + H.S(key) + " is not a string in " + _this.map.toString$0(0) + ".", _this.nodeWithSpan.get$span()));
  53857. }
  53858. };
  53859. E._EvaluateVisitor__verifyArguments_closure0.prototype = {
  53860. call$0: function() {
  53861. return this.$arguments.verify$2(this.positional, new M.MapKeySet(this.named, type$.MapKeySet_String));
  53862. },
  53863. $signature: 1
  53864. };
  53865. E._EvaluateVisitor_visitStringExpression_closure0.prototype = {
  53866. call$1: function(value) {
  53867. var $async$goto = 0,
  53868. $async$completer = P._makeAsyncAwaitCompleter(type$.String),
  53869. $async$returnValue, $async$self = this, t1, result;
  53870. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53871. if ($async$errorCode === 1)
  53872. return P._asyncRethrow($async$result, $async$completer);
  53873. while (true)
  53874. switch ($async$goto) {
  53875. case 0:
  53876. // Function start
  53877. if (typeof value == "string") {
  53878. $async$returnValue = value;
  53879. // goto return
  53880. $async$goto = 1;
  53881. break;
  53882. }
  53883. type$.Expression._as(value);
  53884. t1 = $async$self.$this;
  53885. $async$goto = 3;
  53886. return P._asyncAwait(value.accept$1(t1), $async$call$1);
  53887. case 3:
  53888. // returning from await.
  53889. result = $async$result;
  53890. $async$returnValue = result instanceof D.SassString ? result.text : t1._async_evaluate$_serialize$3$quote(result, value, false);
  53891. // goto return
  53892. $async$goto = 1;
  53893. break;
  53894. case 1:
  53895. // return
  53896. return P._asyncReturn($async$returnValue, $async$completer);
  53897. }
  53898. });
  53899. return P._asyncStartSync($async$call$1, $async$completer);
  53900. },
  53901. $signature: 43
  53902. };
  53903. E._EvaluateVisitor_visitCssAtRule_closure1.prototype = {
  53904. call$0: function() {
  53905. var $async$goto = 0,
  53906. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  53907. $async$self = this, t1, t2;
  53908. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53909. if ($async$errorCode === 1)
  53910. return P._asyncRethrow($async$result, $async$completer);
  53911. while (true)
  53912. switch ($async$goto) {
  53913. case 0:
  53914. // Function start
  53915. t1 = $async$self.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this;
  53916. case 2:
  53917. // for condition
  53918. if (!t1.moveNext$0()) {
  53919. // goto after for
  53920. $async$goto = 3;
  53921. break;
  53922. }
  53923. $async$goto = 4;
  53924. return P._asyncAwait(t1.__internal$_current.accept$1(t2), $async$call$0);
  53925. case 4:
  53926. // returning from await.
  53927. // goto for condition
  53928. $async$goto = 2;
  53929. break;
  53930. case 3:
  53931. // after for
  53932. // implicit return
  53933. return P._asyncReturn(null, $async$completer);
  53934. }
  53935. });
  53936. return P._asyncStartSync($async$call$0, $async$completer);
  53937. },
  53938. $signature: 2
  53939. };
  53940. E._EvaluateVisitor_visitCssAtRule_closure2.prototype = {
  53941. call$1: function(node) {
  53942. return type$.CssStyleRule._is(node);
  53943. }
  53944. };
  53945. E._EvaluateVisitor_visitCssKeyframeBlock_closure1.prototype = {
  53946. call$0: function() {
  53947. var $async$goto = 0,
  53948. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  53949. $async$self = this, t1, t2;
  53950. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53951. if ($async$errorCode === 1)
  53952. return P._asyncRethrow($async$result, $async$completer);
  53953. while (true)
  53954. switch ($async$goto) {
  53955. case 0:
  53956. // Function start
  53957. t1 = $async$self.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this;
  53958. case 2:
  53959. // for condition
  53960. if (!t1.moveNext$0()) {
  53961. // goto after for
  53962. $async$goto = 3;
  53963. break;
  53964. }
  53965. $async$goto = 4;
  53966. return P._asyncAwait(t1.__internal$_current.accept$1(t2), $async$call$0);
  53967. case 4:
  53968. // returning from await.
  53969. // goto for condition
  53970. $async$goto = 2;
  53971. break;
  53972. case 3:
  53973. // after for
  53974. // implicit return
  53975. return P._asyncReturn(null, $async$completer);
  53976. }
  53977. });
  53978. return P._asyncStartSync($async$call$0, $async$completer);
  53979. },
  53980. $signature: 2
  53981. };
  53982. E._EvaluateVisitor_visitCssKeyframeBlock_closure2.prototype = {
  53983. call$1: function(node) {
  53984. return type$.CssStyleRule._is(node);
  53985. }
  53986. };
  53987. E._EvaluateVisitor_visitCssMediaRule_closure1.prototype = {
  53988. call$0: function() {
  53989. var $async$goto = 0,
  53990. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  53991. $async$self = this, t1, t2;
  53992. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53993. if ($async$errorCode === 1)
  53994. return P._asyncRethrow($async$result, $async$completer);
  53995. while (true)
  53996. switch ($async$goto) {
  53997. case 0:
  53998. // Function start
  53999. t1 = $async$self.$this;
  54000. t2 = $async$self.mergedQueries;
  54001. if (t2 == null)
  54002. t2 = $async$self.node.queries;
  54003. $async$goto = 2;
  54004. return P._asyncAwait(t1._async_evaluate$_withMediaQueries$1$2(t2, new E._EvaluateVisitor_visitCssMediaRule__closure0(t1, $async$self.node), type$.Null), $async$call$0);
  54005. case 2:
  54006. // returning from await.
  54007. // implicit return
  54008. return P._asyncReturn(null, $async$completer);
  54009. }
  54010. });
  54011. return P._asyncStartSync($async$call$0, $async$completer);
  54012. },
  54013. $signature: 2
  54014. };
  54015. E._EvaluateVisitor_visitCssMediaRule__closure0.prototype = {
  54016. call$0: function() {
  54017. var $async$goto = 0,
  54018. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  54019. $async$self = this, t1, t2;
  54020. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54021. if ($async$errorCode === 1)
  54022. return P._asyncRethrow($async$result, $async$completer);
  54023. while (true)
  54024. switch ($async$goto) {
  54025. case 0:
  54026. // Function start
  54027. t1 = $async$self.$this;
  54028. t2 = t1._async_evaluate$_styleRule;
  54029. $async$goto = !(t2 != null && !t1._async_evaluate$_atRootExcludingStyleRule) ? 2 : 4;
  54030. break;
  54031. case 2:
  54032. // then
  54033. t2 = $async$self.node.children, t2 = new H.ListIterator(t2, t2.get$length(t2));
  54034. case 5:
  54035. // for condition
  54036. if (!t2.moveNext$0()) {
  54037. // goto after for
  54038. $async$goto = 6;
  54039. break;
  54040. }
  54041. $async$goto = 7;
  54042. return P._asyncAwait(t2.__internal$_current.accept$1(t1), $async$call$0);
  54043. case 7:
  54044. // returning from await.
  54045. // goto for condition
  54046. $async$goto = 5;
  54047. break;
  54048. case 6:
  54049. // after for
  54050. // goto join
  54051. $async$goto = 3;
  54052. break;
  54053. case 4:
  54054. // else
  54055. $async$goto = 8;
  54056. return P._asyncAwait(t1._async_evaluate$_withParent$2$3$scopeWhen(X.ModifiableCssStyleRule$(t2.selector, t2.span, t2.originalSelector), new E._EvaluateVisitor_visitCssMediaRule___closure0(t1, $async$self.node), false, type$.ModifiableCssStyleRule, type$.Null), $async$call$0);
  54057. case 8:
  54058. // returning from await.
  54059. case 3:
  54060. // join
  54061. // implicit return
  54062. return P._asyncReturn(null, $async$completer);
  54063. }
  54064. });
  54065. return P._asyncStartSync($async$call$0, $async$completer);
  54066. },
  54067. $signature: 2
  54068. };
  54069. E._EvaluateVisitor_visitCssMediaRule___closure0.prototype = {
  54070. call$0: function() {
  54071. var $async$goto = 0,
  54072. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  54073. $async$self = this, t1, t2;
  54074. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54075. if ($async$errorCode === 1)
  54076. return P._asyncRethrow($async$result, $async$completer);
  54077. while (true)
  54078. switch ($async$goto) {
  54079. case 0:
  54080. // Function start
  54081. t1 = $async$self.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this;
  54082. case 2:
  54083. // for condition
  54084. if (!t1.moveNext$0()) {
  54085. // goto after for
  54086. $async$goto = 3;
  54087. break;
  54088. }
  54089. $async$goto = 4;
  54090. return P._asyncAwait(t1.__internal$_current.accept$1(t2), $async$call$0);
  54091. case 4:
  54092. // returning from await.
  54093. // goto for condition
  54094. $async$goto = 2;
  54095. break;
  54096. case 3:
  54097. // after for
  54098. // implicit return
  54099. return P._asyncReturn(null, $async$completer);
  54100. }
  54101. });
  54102. return P._asyncStartSync($async$call$0, $async$completer);
  54103. },
  54104. $signature: 2
  54105. };
  54106. E._EvaluateVisitor_visitCssMediaRule_closure2.prototype = {
  54107. call$1: function(node) {
  54108. var t1;
  54109. if (!type$.CssStyleRule._is(node))
  54110. t1 = this.mergedQueries != null && type$.CssMediaRule._is(node);
  54111. else
  54112. t1 = true;
  54113. return t1;
  54114. }
  54115. };
  54116. E._EvaluateVisitor_visitCssStyleRule_closure1.prototype = {
  54117. call$0: function() {
  54118. var $async$goto = 0,
  54119. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  54120. $async$self = this, t1;
  54121. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54122. if ($async$errorCode === 1)
  54123. return P._asyncRethrow($async$result, $async$completer);
  54124. while (true)
  54125. switch ($async$goto) {
  54126. case 0:
  54127. // Function start
  54128. t1 = $async$self.$this;
  54129. $async$goto = 2;
  54130. return P._asyncAwait(t1._async_evaluate$_withStyleRule$1$2($async$self.rule, new E._EvaluateVisitor_visitCssStyleRule__closure0(t1, $async$self.node), type$.Null), $async$call$0);
  54131. case 2:
  54132. // returning from await.
  54133. // implicit return
  54134. return P._asyncReturn(null, $async$completer);
  54135. }
  54136. });
  54137. return P._asyncStartSync($async$call$0, $async$completer);
  54138. },
  54139. $signature: 2
  54140. };
  54141. E._EvaluateVisitor_visitCssStyleRule__closure0.prototype = {
  54142. call$0: function() {
  54143. var $async$goto = 0,
  54144. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  54145. $async$self = this, t1, t2;
  54146. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54147. if ($async$errorCode === 1)
  54148. return P._asyncRethrow($async$result, $async$completer);
  54149. while (true)
  54150. switch ($async$goto) {
  54151. case 0:
  54152. // Function start
  54153. t1 = $async$self.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this;
  54154. case 2:
  54155. // for condition
  54156. if (!t1.moveNext$0()) {
  54157. // goto after for
  54158. $async$goto = 3;
  54159. break;
  54160. }
  54161. $async$goto = 4;
  54162. return P._asyncAwait(t1.__internal$_current.accept$1(t2), $async$call$0);
  54163. case 4:
  54164. // returning from await.
  54165. // goto for condition
  54166. $async$goto = 2;
  54167. break;
  54168. case 3:
  54169. // after for
  54170. // implicit return
  54171. return P._asyncReturn(null, $async$completer);
  54172. }
  54173. });
  54174. return P._asyncStartSync($async$call$0, $async$completer);
  54175. },
  54176. $signature: 2
  54177. };
  54178. E._EvaluateVisitor_visitCssStyleRule_closure2.prototype = {
  54179. call$1: function(node) {
  54180. return type$.CssStyleRule._is(node);
  54181. }
  54182. };
  54183. E._EvaluateVisitor_visitCssSupportsRule_closure1.prototype = {
  54184. call$0: function() {
  54185. var $async$goto = 0,
  54186. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  54187. $async$self = this, t1, t2;
  54188. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54189. if ($async$errorCode === 1)
  54190. return P._asyncRethrow($async$result, $async$completer);
  54191. while (true)
  54192. switch ($async$goto) {
  54193. case 0:
  54194. // Function start
  54195. t1 = $async$self.$this;
  54196. t2 = t1._async_evaluate$_styleRule;
  54197. $async$goto = !(t2 != null && !t1._async_evaluate$_atRootExcludingStyleRule) ? 2 : 4;
  54198. break;
  54199. case 2:
  54200. // then
  54201. t2 = $async$self.node.children, t2 = new H.ListIterator(t2, t2.get$length(t2));
  54202. case 5:
  54203. // for condition
  54204. if (!t2.moveNext$0()) {
  54205. // goto after for
  54206. $async$goto = 6;
  54207. break;
  54208. }
  54209. $async$goto = 7;
  54210. return P._asyncAwait(t2.__internal$_current.accept$1(t1), $async$call$0);
  54211. case 7:
  54212. // returning from await.
  54213. // goto for condition
  54214. $async$goto = 5;
  54215. break;
  54216. case 6:
  54217. // after for
  54218. // goto join
  54219. $async$goto = 3;
  54220. break;
  54221. case 4:
  54222. // else
  54223. $async$goto = 8;
  54224. return P._asyncAwait(t1._async_evaluate$_withParent$2$2(X.ModifiableCssStyleRule$(t2.selector, t2.span, t2.originalSelector), new E._EvaluateVisitor_visitCssSupportsRule__closure0(t1, $async$self.node), type$.ModifiableCssStyleRule, type$.Null), $async$call$0);
  54225. case 8:
  54226. // returning from await.
  54227. case 3:
  54228. // join
  54229. // implicit return
  54230. return P._asyncReturn(null, $async$completer);
  54231. }
  54232. });
  54233. return P._asyncStartSync($async$call$0, $async$completer);
  54234. },
  54235. $signature: 2
  54236. };
  54237. E._EvaluateVisitor_visitCssSupportsRule__closure0.prototype = {
  54238. call$0: function() {
  54239. var $async$goto = 0,
  54240. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  54241. $async$self = this, t1, t2;
  54242. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54243. if ($async$errorCode === 1)
  54244. return P._asyncRethrow($async$result, $async$completer);
  54245. while (true)
  54246. switch ($async$goto) {
  54247. case 0:
  54248. // Function start
  54249. t1 = $async$self.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this;
  54250. case 2:
  54251. // for condition
  54252. if (!t1.moveNext$0()) {
  54253. // goto after for
  54254. $async$goto = 3;
  54255. break;
  54256. }
  54257. $async$goto = 4;
  54258. return P._asyncAwait(t1.__internal$_current.accept$1(t2), $async$call$0);
  54259. case 4:
  54260. // returning from await.
  54261. // goto for condition
  54262. $async$goto = 2;
  54263. break;
  54264. case 3:
  54265. // after for
  54266. // implicit return
  54267. return P._asyncReturn(null, $async$completer);
  54268. }
  54269. });
  54270. return P._asyncStartSync($async$call$0, $async$completer);
  54271. },
  54272. $signature: 2
  54273. };
  54274. E._EvaluateVisitor_visitCssSupportsRule_closure2.prototype = {
  54275. call$1: function(node) {
  54276. return type$.CssStyleRule._is(node);
  54277. }
  54278. };
  54279. E._EvaluateVisitor__performInterpolation_closure0.prototype = {
  54280. call$1: function(value) {
  54281. var $async$goto = 0,
  54282. $async$completer = P._makeAsyncAwaitCompleter(type$.String),
  54283. $async$returnValue, $async$self = this, t1, result, t2, t3;
  54284. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54285. if ($async$errorCode === 1)
  54286. return P._asyncRethrow($async$result, $async$completer);
  54287. while (true)
  54288. switch ($async$goto) {
  54289. case 0:
  54290. // Function start
  54291. if (typeof value == "string") {
  54292. $async$returnValue = value;
  54293. // goto return
  54294. $async$goto = 1;
  54295. break;
  54296. }
  54297. type$.Expression._as(value);
  54298. t1 = $async$self.$this;
  54299. $async$goto = 3;
  54300. return P._asyncAwait(value.accept$1(t1), $async$call$1);
  54301. case 3:
  54302. // returning from await.
  54303. result = $async$result;
  54304. if ($async$self.warnForColor && result instanceof K.SassColor && $.$get$namesByColor().containsKey$1(result)) {
  54305. t2 = X.Interpolation$([""], null);
  54306. t3 = $.$get$namesByColor();
  54307. t1._async_evaluate$_warn$2("You probably don't mean to use the color value " + H.S(t3.$index(0, result)) + " in interpolation here.\nIt may end up represented as " + H.S(result) + ', which will likely produce invalid CSS.\nAlways quote color names when using them as strings or map keys (for example, "' + H.S(t3.$index(0, result)) + "\").\nIf you really want to use the color value here, use '" + new V.BinaryOperationExpression(C.BinaryOperator_AcR, new D.StringExpression(t2, true), value, false).toString$0(0) + "'.", value.get$span());
  54308. }
  54309. $async$returnValue = t1._async_evaluate$_serialize$3$quote(result, value, false);
  54310. // goto return
  54311. $async$goto = 1;
  54312. break;
  54313. case 1:
  54314. // return
  54315. return P._asyncReturn($async$returnValue, $async$completer);
  54316. }
  54317. });
  54318. return P._asyncStartSync($async$call$1, $async$completer);
  54319. },
  54320. $signature: 43
  54321. };
  54322. E._EvaluateVisitor__serialize_closure0.prototype = {
  54323. call$0: function() {
  54324. var t1 = this.value;
  54325. t1.toString;
  54326. return N.serializeValue0(t1, false, this.quote);
  54327. },
  54328. $signature: 10
  54329. };
  54330. E._EvaluateVisitor__stackTrace_closure0.prototype = {
  54331. call$1: function(tuple) {
  54332. return this.$this._async_evaluate$_stackFrame$2(tuple.item1, tuple.item2.get$span());
  54333. }
  54334. };
  54335. E._ImportedCssVisitor0.prototype = {
  54336. visitCssAtRule$1: function(node) {
  54337. var t1 = node.isChildless ? null : new E._ImportedCssVisitor_visitCssAtRule_closure0();
  54338. this._async_evaluate$_visitor._async_evaluate$_addChild$2$through(node, t1);
  54339. },
  54340. visitCssComment$1: function(node) {
  54341. return this._async_evaluate$_visitor._async_evaluate$_addChild$1(node);
  54342. },
  54343. visitCssDeclaration$1: function(node) {
  54344. },
  54345. visitCssImport$1: function(node) {
  54346. var t1 = this._async_evaluate$_visitor,
  54347. t2 = t1._async_evaluate$_parent,
  54348. t3 = t1._async_evaluate$_root;
  54349. if (t2 != t3)
  54350. t1._async_evaluate$_addChild$1(node);
  54351. else if (t1._async_evaluate$_endOfImports === J.get$length$asx(t3.children._collection$_source)) {
  54352. t1._async_evaluate$_addChild$1(node);
  54353. t1._async_evaluate$_endOfImports = t1._async_evaluate$_endOfImports + 1;
  54354. } else {
  54355. t2 = t1._async_evaluate$_outOfOrderImports;
  54356. (t2 == null ? t1._async_evaluate$_outOfOrderImports = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssImport) : t2).push(node);
  54357. }
  54358. },
  54359. visitCssKeyframeBlock$1: function(node) {
  54360. },
  54361. visitCssMediaRule$1: function(node) {
  54362. var t1 = this._async_evaluate$_visitor,
  54363. t2 = t1._async_evaluate$_mediaQueries;
  54364. t1._async_evaluate$_addChild$2$through(node, new E._ImportedCssVisitor_visitCssMediaRule_closure0(t2 == null || t1._async_evaluate$_mergeMediaQueries$2(t2, node.queries) != null));
  54365. },
  54366. visitCssStyleRule$1: function(node) {
  54367. return this._async_evaluate$_visitor._async_evaluate$_addChild$2$through(node, new E._ImportedCssVisitor_visitCssStyleRule_closure0());
  54368. },
  54369. visitCssStylesheet$1: function(node) {
  54370. var t1;
  54371. for (t1 = node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();)
  54372. t1.__internal$_current.accept$1(this);
  54373. },
  54374. visitCssSupportsRule$1: function(node) {
  54375. return this._async_evaluate$_visitor._async_evaluate$_addChild$2$through(node, new E._ImportedCssVisitor_visitCssSupportsRule_closure0());
  54376. }
  54377. };
  54378. E._ImportedCssVisitor_visitCssAtRule_closure0.prototype = {
  54379. call$1: function(node) {
  54380. return type$.CssStyleRule._is(node);
  54381. }
  54382. };
  54383. E._ImportedCssVisitor_visitCssMediaRule_closure0.prototype = {
  54384. call$1: function(node) {
  54385. var t1;
  54386. if (!type$.CssStyleRule._is(node))
  54387. t1 = this.hasBeenMerged && type$.CssMediaRule._is(node);
  54388. else
  54389. t1 = true;
  54390. return t1;
  54391. }
  54392. };
  54393. E._ImportedCssVisitor_visitCssStyleRule_closure0.prototype = {
  54394. call$1: function(node) {
  54395. return type$.CssStyleRule._is(node);
  54396. }
  54397. };
  54398. E._ImportedCssVisitor_visitCssSupportsRule_closure0.prototype = {
  54399. call$1: function(node) {
  54400. return type$.CssStyleRule._is(node);
  54401. }
  54402. };
  54403. E.EvaluateResult.prototype = {};
  54404. E._ArgumentResults0.prototype = {};
  54405. V._CloneCssVisitor.prototype = {
  54406. visitCssAtRule$1: function(node) {
  54407. var t1 = node.isChildless,
  54408. t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode),
  54409. rule = new U.ModifiableCssAtRule(node.name, node.value, t1, node.span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode), t2);
  54410. return t1 ? rule : this._visitChildren$2(rule, node);
  54411. },
  54412. visitCssComment$1: function(node) {
  54413. return new R.ModifiableCssComment(node.text, node.span);
  54414. },
  54415. visitCssDeclaration$1: function(node) {
  54416. return L.ModifiableCssDeclaration$(node.name, node.value, node.span, node.valueSpanForMap);
  54417. },
  54418. visitCssImport$1: function(node) {
  54419. return F.ModifiableCssImport$(node.url, node.span, node.media, node.supports);
  54420. },
  54421. visitCssKeyframeBlock$1: function(node) {
  54422. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
  54423. return this._visitChildren$2(new U.ModifiableCssKeyframeBlock(node.selector, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1), node);
  54424. },
  54425. visitCssMediaRule$1: function(node) {
  54426. return this._visitChildren$2(G.ModifiableCssMediaRule$(node.queries, node.span), node);
  54427. },
  54428. visitCssStyleRule$1: function(node) {
  54429. var newSelector = this._oldToNewSelectors.$index(0, node.selector);
  54430. if (newSelector == null)
  54431. throw H.wrapException(P.StateError$("The Extender and CssStylesheet passed to cloneCssStylesheet() must come from the same compilation."));
  54432. return this._visitChildren$2(X.ModifiableCssStyleRule$(newSelector, node.span, node.originalSelector), node);
  54433. },
  54434. visitCssStylesheet$1: function(node) {
  54435. var t1 = node.get$span(),
  54436. t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
  54437. return this._visitChildren$2(new V.ModifiableCssStylesheet(t1, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode), t2), node);
  54438. },
  54439. visitCssSupportsRule$1: function(node) {
  54440. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
  54441. return this._visitChildren$2(new B.ModifiableCssSupportsRule(node.condition, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1), node);
  54442. },
  54443. _visitChildren$1$2: function(newParent, oldParent) {
  54444. var t1, t2, newChild;
  54445. for (t1 = J.get$iterator$ax(oldParent.get$children()); t1.moveNext$0();) {
  54446. t2 = t1.get$current(t1);
  54447. newChild = t2.accept$1(this);
  54448. newChild.isGroupEnd = t2.get$isGroupEnd();
  54449. newParent.addChild$1(newChild);
  54450. }
  54451. return newParent;
  54452. },
  54453. _visitChildren$2: function(newParent, oldParent) {
  54454. return this._visitChildren$1$2(newParent, oldParent, type$.ModifiableCssParentNode);
  54455. }
  54456. };
  54457. R.Evaluator.prototype = {};
  54458. R._EvaluateVisitor.prototype = {
  54459. _EvaluateVisitor$5$functions$importCache$logger$nodeImporter$sourceMap: function(functions, importCache, logger, nodeImporter, sourceMap) {
  54460. var t6, t7, t8, t9, t10, t11, t12, t13, metaFunctions, metaMixins, _i, metaModule, module, $function, _this = this,
  54461. _s9_ = "sass:meta",
  54462. t1 = type$.String,
  54463. t2 = type$.VariableDeclaration,
  54464. t3 = S.SpanScanner$("@function global-variable-exists($name, $module: null) {", _s9_),
  54465. t4 = type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value,
  54466. t5 = type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value;
  54467. t3 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t3, C.StderrLogger_false).parseArgumentDeclaration$0(), new R._EvaluateVisitor_closure(_this), t4)], t5);
  54468. t6 = S.SpanScanner$("@function variable-exists($name) {", _s9_);
  54469. t6 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t6, C.StderrLogger_false).parseArgumentDeclaration$0(), new R._EvaluateVisitor_closure0(_this), t4)], t5);
  54470. t7 = S.SpanScanner$("@function function-exists($name, $module: null) {", _s9_);
  54471. t7 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t7, C.StderrLogger_false).parseArgumentDeclaration$0(), new R._EvaluateVisitor_closure1(_this), t4)], t5);
  54472. t8 = S.SpanScanner$("@function mixin-exists($name, $module: null) {", _s9_);
  54473. t8 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t8, C.StderrLogger_false).parseArgumentDeclaration$0(), new R._EvaluateVisitor_closure2(_this), t4)], t5);
  54474. t9 = S.SpanScanner$("@function content-exists() {", _s9_);
  54475. t9 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t9, C.StderrLogger_false).parseArgumentDeclaration$0(), new R._EvaluateVisitor_closure3(_this), t4)], t5);
  54476. t10 = S.SpanScanner$("@function module-variables($module) {", _s9_);
  54477. t10 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t10, C.StderrLogger_false).parseArgumentDeclaration$0(), new R._EvaluateVisitor_closure4(_this), t4)], t5);
  54478. t11 = S.SpanScanner$("@function module-functions($module) {", _s9_);
  54479. t11 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t11, C.StderrLogger_false).parseArgumentDeclaration$0(), new R._EvaluateVisitor_closure5(_this), t4)], t5);
  54480. t12 = S.SpanScanner$("@function get-function($name, $css: false, $module: null) {", _s9_);
  54481. t12 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t12, C.StderrLogger_false).parseArgumentDeclaration$0(), new R._EvaluateVisitor_closure6(_this), t4)], t5);
  54482. t13 = S.SpanScanner$("@function call($function, $args...) {", _s9_);
  54483. metaFunctions = [new Q.BuiltInCallable("global-variable-exists", t3), new Q.BuiltInCallable("variable-exists", t6), new Q.BuiltInCallable("function-exists", t7), new Q.BuiltInCallable("mixin-exists", t8), new Q.BuiltInCallable("content-exists", t9), new Q.BuiltInCallable("module-variables", t10), new Q.BuiltInCallable("module-functions", t11), new Q.BuiltInCallable("get-function", t12), new Q.BuiltInCallable("call", H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t13, C.StderrLogger_false).parseArgumentDeclaration$0(), new R._EvaluateVisitor_closure7(_this), t4)], t5))];
  54484. t1 = type$.JSArray_BuiltInCallable;
  54485. metaMixins = H.setRuntimeTypeInfo([Q.BuiltInCallable$mixin("load-css", "$module, $with: null", new R._EvaluateVisitor_closure8(_this), _s9_)], t1);
  54486. t1 = H.setRuntimeTypeInfo([], t1);
  54487. for (t2 = $.$get$global(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
  54488. t1.push(t2.__internal$_current);
  54489. for (_i = 0; _i < 9; ++_i)
  54490. t1.push(metaFunctions[_i]);
  54491. metaModule = Q.BuiltInModule$("meta", t1, metaMixins, null, type$.BuiltInCallable);
  54492. t1 = H.setRuntimeTypeInfo([], type$.JSArray_BuiltInModule_BuiltInCallable);
  54493. for (t2 = $.$get$coreModules(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
  54494. t1.push(t2.__internal$_current);
  54495. t1.push(metaModule);
  54496. t2 = t1.length;
  54497. t3 = _this._builtInModules;
  54498. _i = 0;
  54499. for (; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  54500. module = t1[_i];
  54501. t3.$indexSet(0, module.url, module);
  54502. }
  54503. t1 = H.setRuntimeTypeInfo([], type$.JSArray_Callable);
  54504. for (t2 = $.$get$globalFunctions(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
  54505. t1.push(t2.__internal$_current);
  54506. for (_i = 0; _i < 9; ++_i)
  54507. t1.push(metaFunctions[_i]);
  54508. for (t2 = t1.length, t3 = _this._builtInFunctions, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  54509. $function = t1[_i];
  54510. t4 = $function.get$name();
  54511. t4.toString;
  54512. t3.$indexSet(0, H.stringReplaceAllUnchecked(t4, "_", "-"), $function);
  54513. }
  54514. },
  54515. run$2: function(_, importer, node) {
  54516. return this._withWarnCallback$1$1(new R._EvaluateVisitor_run_closure(this, node, importer), type$.EvaluateResult);
  54517. },
  54518. runExpression$2: function(importer, expression) {
  54519. return this._withWarnCallback$1$1(new R._EvaluateVisitor_runExpression_closure(this, importer, expression), type$.Value);
  54520. },
  54521. runStatement$2: function(importer, statement) {
  54522. return this._withWarnCallback$1$1(new R._EvaluateVisitor_runStatement_closure(this, importer, statement), type$.void);
  54523. },
  54524. _withWarnCallback$1$1: function(callback, $T) {
  54525. return N.withWarnCallback(new R._EvaluateVisitor__withWarnCallback_closure(this), callback, $T);
  54526. },
  54527. _withFakeStylesheet$1$3: function(importer, nodeWithSpan, callback) {
  54528. var oldStylesheet, t1, _this = this,
  54529. oldImporter = _this._importer;
  54530. _this._importer = importer;
  54531. oldStylesheet = _this._stylesheet;
  54532. _this._stylesheet = V.Stylesheet$(C.List_empty11, nodeWithSpan.get$span(), false);
  54533. try {
  54534. t1 = callback.call$0();
  54535. return t1;
  54536. } finally {
  54537. _this._importer = oldImporter;
  54538. _this._stylesheet = oldStylesheet;
  54539. }
  54540. },
  54541. _withFakeStylesheet$3: function(importer, nodeWithSpan, callback) {
  54542. return this._withFakeStylesheet$1$3(importer, nodeWithSpan, callback, type$.dynamic);
  54543. },
  54544. _loadModule$7$baseUrl$configuration$namesInErrors: function(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
  54545. var t1, _this = this,
  54546. builtInModule = _this._builtInModules.$index(0, url);
  54547. if (builtInModule != null) {
  54548. if (configuration != null && !configuration.isImplicit) {
  54549. t1 = namesInErrors ? "Built-in module " + H.S(url) + " can't be configured." : "Built-in modules can't be configured.";
  54550. throw H.wrapException(_this._evaluate$_exception$2(t1, nodeWithSpan.get$span()));
  54551. }
  54552. callback.call$1(builtInModule);
  54553. return;
  54554. }
  54555. _this._withStackFrame$3(stackFrame, nodeWithSpan, new R._EvaluateVisitor__loadModule_closure(_this, url, nodeWithSpan, baseUrl, namesInErrors, configuration, callback));
  54556. },
  54557. _loadModule$5$configuration: function(url, stackFrame, nodeWithSpan, callback, configuration) {
  54558. return this._loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, configuration, false);
  54559. },
  54560. _loadModule$4: function(url, stackFrame, nodeWithSpan, callback) {
  54561. return this._loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, null, false);
  54562. },
  54563. _execute$5$configuration$namesInErrors$nodeWithSpan: function(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
  54564. var message, existingNode, environment, t3, extender, module, _this = this, t1 = {},
  54565. url = stylesheet.span.file.url,
  54566. t2 = _this._modules,
  54567. alreadyLoaded = t2.$index(0, url);
  54568. if (alreadyLoaded != null) {
  54569. t1 = configuration == null;
  54570. if (!(t1 ? _this._configuration : configuration).isImplicit) {
  54571. message = namesInErrors ? H.S($.$get$context().prettyUri$1(url)) + ' was already loaded, so it can\'t be configured using "with".' : 'This module was already loaded, so it can\'t be configured using "with".';
  54572. existingNode = _this._moduleNodes.$index(0, url);
  54573. t2 = P.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  54574. if (existingNode != null)
  54575. t2.$indexSet(0, existingNode.get$span(), "original load");
  54576. if (t1)
  54577. t2.$indexSet(0, _this._configuration.nodeWithSpan.get$span(), "configuration");
  54578. throw H.wrapException(t2.get$isEmpty(t2) ? _this._evaluate$_exception$1(message) : _this._multiSpanException$3(message, "new load", t2));
  54579. }
  54580. return alreadyLoaded;
  54581. }
  54582. environment = O.Environment$(_this._sourceMap);
  54583. t1.css = null;
  54584. t3 = type$.SimpleSelector;
  54585. extender = new F.Extender(P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.Set_ModifiableCssValue_SelectorList), P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.Map_ComplexSelector_Extension), P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.List_Extension), P.LinkedHashMap_LinkedHashMap$_empty(type$.ModifiableCssValue_SelectorList, type$.List_CssMediaQuery), P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6(t3, type$.int), new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_ComplexSelector), C.ExtendMode_normal);
  54586. _this._withEnvironment$2(environment, new R._EvaluateVisitor__execute_closure(t1, _this, importer, stylesheet, extender, configuration));
  54587. module = O._EnvironmentModule__EnvironmentModule(environment, t1.css, extender, environment._forwardedModules);
  54588. t2.$indexSet(0, url, module);
  54589. _this._moduleNodes.$indexSet(0, url, nodeWithSpan);
  54590. return module;
  54591. },
  54592. _execute$2: function(importer, stylesheet) {
  54593. return this._execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, null, false, null);
  54594. },
  54595. _addOutOfOrderImports$0: function() {
  54596. var t1, statements, _this = this;
  54597. if (_this._outOfOrderImports == null)
  54598. return _this._root.children;
  54599. t1 = new Array(J.get$length$asx(_this._root.children._collection$_source) + _this._outOfOrderImports.length);
  54600. t1.fixed$length = Array;
  54601. statements = new G.FixedLengthListBuilder(H.setRuntimeTypeInfo(t1, type$.JSArray_ModifiableCssNode), type$.FixedLengthListBuilder_ModifiableCssNode);
  54602. statements.addRange$3(_this._root.children, 0, _this._endOfImports);
  54603. statements.addAll$1(0, _this._outOfOrderImports);
  54604. statements.addRange$2(_this._root.children, _this._endOfImports);
  54605. return statements.build$0();
  54606. },
  54607. _combineCss$2$clone: function(root, clone) {
  54608. var selectors, unsatisfiedExtension, sortedModules, t1, imports, css, t2, statements, index, _this = this;
  54609. if (!C.JSArray_methods.any$1(root.get$upstream(), new R._EvaluateVisitor__combineCss_closure())) {
  54610. selectors = root.get$extender().get$simpleSelectors();
  54611. unsatisfiedExtension = B.firstOrNull(root.get$extender().extensionsWhereTarget$1(new R._EvaluateVisitor__combineCss_closure0(selectors)));
  54612. if (unsatisfiedExtension != null)
  54613. _this._throwForUnsatisfiedExtension$1(unsatisfiedExtension);
  54614. return root.get$css(root);
  54615. }
  54616. sortedModules = _this._topologicalModules$1(root);
  54617. if (clone)
  54618. sortedModules = new H.MappedListIterable(sortedModules, new R._EvaluateVisitor__combineCss_closure1(), sortedModules.$ti._eval$1("MappedListIterable<ListMixin.E,Module<Callable>>")).toList$0(0);
  54619. _this._extendModules$1(sortedModules);
  54620. t1 = type$.JSArray_CssNode;
  54621. imports = H.setRuntimeTypeInfo([], t1);
  54622. css = H.setRuntimeTypeInfo([], t1);
  54623. for (t1 = J.get$reversed$ax(sortedModules), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  54624. t2 = t1.__internal$_current;
  54625. statements = t2.get$css(t2).get$children();
  54626. index = _this._indexAfterImports$1(statements);
  54627. t2 = J.getInterceptor$ax(statements);
  54628. C.JSArray_methods.addAll$1(imports, t2.getRange$2(statements, 0, index));
  54629. C.JSArray_methods.addAll$1(css, t2.getRange$2(statements, index, t2.get$length(statements)));
  54630. }
  54631. return new V.CssStylesheet(new P.UnmodifiableListView(C.JSArray_methods.$add(imports, css), type$.UnmodifiableListView_CssNode), root.get$css(root).get$span());
  54632. },
  54633. _combineCss$1: function(root) {
  54634. return this._combineCss$2$clone(root, false);
  54635. },
  54636. _extendModules$1: function(sortedModules) {
  54637. var t1, t2, originalSelectors, extenders, t3, t4, _i,
  54638. downstreamExtenders = P.LinkedHashMap_LinkedHashMap$_empty(type$.Uri, type$.List_Extender),
  54639. unsatisfiedExtensions = new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_Extension);
  54640. for (t1 = J.get$iterator$ax(sortedModules); t1.moveNext$0();) {
  54641. t2 = t1.get$current(t1);
  54642. originalSelectors = t2.get$extender().get$simpleSelectors().toSet$0(0);
  54643. unsatisfiedExtensions.addAll$1(0, t2.get$extender().extensionsWhereTarget$1(new R._EvaluateVisitor__extendModules_closure(originalSelectors)));
  54644. extenders = downstreamExtenders.$index(0, t2.get$url());
  54645. if (extenders != null)
  54646. t2.get$extender().addExtensions$1(extenders);
  54647. t3 = t2.get$extender();
  54648. if (t3.get$isEmpty(t3))
  54649. continue;
  54650. for (t3 = t2.get$upstream(), t4 = t3.length, _i = 0; _i < t3.length; t3.length === t4 || (0, H.throwConcurrentModificationError)(t3), ++_i)
  54651. J.add$1$ax(downstreamExtenders.putIfAbsent$2(t3[_i].get$url(), new R._EvaluateVisitor__extendModules_closure0()), t2.get$extender());
  54652. unsatisfiedExtensions.removeAll$1(t2.get$extender().extensionsWhereTarget$1(originalSelectors.get$contains(originalSelectors)));
  54653. }
  54654. if (unsatisfiedExtensions._collection$_length !== 0)
  54655. this._throwForUnsatisfiedExtension$1(unsatisfiedExtensions.get$first(unsatisfiedExtensions));
  54656. },
  54657. _throwForUnsatisfiedExtension$1: function(extension) {
  54658. throw H.wrapException(E.SassException$('The target selector was not found.\nUse "@extend ' + H.S(extension.target) + ' !optional" to avoid this error.', extension.span));
  54659. },
  54660. _topologicalModules$1: function(root) {
  54661. var t1 = type$.Module_Callable,
  54662. sorted = Q.QueueList$(null, t1);
  54663. new R._EvaluateVisitor__topologicalModules_visitModule(P.LinkedHashSet_LinkedHashSet$_empty(t1), sorted).call$1(root);
  54664. return sorted;
  54665. },
  54666. _indexAfterImports$1: function(statements) {
  54667. var t1, t2, t3, lastImport, i, statement;
  54668. for (t1 = J.getInterceptor$asx(statements), t2 = type$.CssComment, t3 = type$.CssImport, lastImport = -1, i = 0; i < t1.get$length(statements); ++i) {
  54669. statement = t1.$index(statements, i);
  54670. if (t3._is(statement))
  54671. lastImport = i;
  54672. else if (!t2._is(statement))
  54673. break;
  54674. }
  54675. return lastImport + 1;
  54676. },
  54677. visitStylesheet$1: function(node) {
  54678. var t1, t2, _i;
  54679. for (t1 = node.children, t2 = t1.length, _i = 0; _i < t2; ++_i)
  54680. t1[_i].accept$1(this);
  54681. return null;
  54682. },
  54683. visitAtRootRule$1: function(node) {
  54684. var root, innerCopy, outerCopy, copy, _this = this, _null = null,
  54685. t1 = node.query,
  54686. query = t1 != null ? _this._adjustParseError$2(t1, new R._EvaluateVisitor_visitAtRootRule_closure(_this, _this._performInterpolation$2$warnForColor(t1, true))) : C.AtRootQuery_UsS,
  54687. $parent = _this._evaluate$_parent,
  54688. included = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssParentNode);
  54689. for (t1 = type$.CssStylesheet; !t1._is($parent);) {
  54690. if (!query.excludes$1($parent))
  54691. included.push($parent);
  54692. $parent = $parent._parent;
  54693. }
  54694. root = _this._trimIncluded$1(included);
  54695. if (root == _this._evaluate$_parent) {
  54696. _this._evaluate$_environment.scope$1$2$when(new R._EvaluateVisitor_visitAtRootRule_closure0(_this, node), node.hasDeclarations, type$.Null);
  54697. return _null;
  54698. }
  54699. innerCopy = included.length === 0 ? _null : C.JSArray_methods.get$first(included).copyWithoutChildren$0();
  54700. for (t1 = H.SubListIterable$(included, 1, _null, type$.ModifiableCssParentNode), t1 = new H.ListIterator(t1, t1.get$length(t1)), outerCopy = innerCopy; t1.moveNext$0(); outerCopy = copy) {
  54701. copy = t1.__internal$_current.copyWithoutChildren$0();
  54702. copy.addChild$1(outerCopy);
  54703. }
  54704. if (outerCopy != null)
  54705. root.addChild$1(outerCopy);
  54706. _this._scopeForAtRoot$4(node, innerCopy == null ? root : innerCopy, query, included).call$1(new R._EvaluateVisitor_visitAtRootRule_closure1(_this, node));
  54707. return _null;
  54708. },
  54709. _trimIncluded$1: function(nodes) {
  54710. var $parent, innermostContiguous, i, t2, root,
  54711. t1 = nodes.length;
  54712. if (t1 === 0)
  54713. return this._root;
  54714. $parent = this._evaluate$_parent;
  54715. for (innermostContiguous = null, i = 0; i < t1; ++i) {
  54716. for (; $parent != nodes[i]; innermostContiguous = null)
  54717. $parent = $parent._parent;
  54718. if (innermostContiguous == null)
  54719. innermostContiguous = i;
  54720. $parent = $parent._parent;
  54721. }
  54722. t2 = this._root;
  54723. if ($parent != t2)
  54724. return t2;
  54725. root = nodes[innermostContiguous];
  54726. C.JSArray_methods.removeRange$2(nodes, innermostContiguous, t1);
  54727. return root;
  54728. },
  54729. _scopeForAtRoot$4: function(node, newParent, query, included) {
  54730. var _this = this,
  54731. scope = new R._EvaluateVisitor__scopeForAtRoot_closure(_this, newParent, node),
  54732. t1 = query._all,
  54733. t2 = t1 || query._at_root_query$_rule,
  54734. t3 = query.include;
  54735. if (t2 !== t3)
  54736. scope = new R._EvaluateVisitor__scopeForAtRoot_closure0(_this, scope);
  54737. if (t1 ? !t3 : query.names.contains$1(0, "media") !== t3)
  54738. scope = new R._EvaluateVisitor__scopeForAtRoot_closure1(_this, scope);
  54739. if (_this._inKeyframes && query.names.contains$1(0, "keyframes") !== t3)
  54740. scope = new R._EvaluateVisitor__scopeForAtRoot_closure2(_this, scope);
  54741. return _this._inUnknownAtRule && !C.JSArray_methods.any$1(included, new R._EvaluateVisitor__scopeForAtRoot_closure3()) ? new R._EvaluateVisitor__scopeForAtRoot_closure4(_this, scope) : scope;
  54742. },
  54743. visitContentBlock$1: function(node) {
  54744. return H.throwExpression(P.UnsupportedError$("Evaluation handles @include and its content block together."));
  54745. },
  54746. visitContentRule$1: function(node) {
  54747. var $content = this._evaluate$_environment._content;
  54748. if ($content == null)
  54749. return null;
  54750. this._runUserDefinedCallable$4(node.$arguments, $content, node, new R._EvaluateVisitor_visitContentRule_closure(this, $content));
  54751. return null;
  54752. },
  54753. visitDebugRule$1: function(node) {
  54754. var value = node.expression.accept$1(this),
  54755. t1 = value instanceof D.SassString ? value.text : J.toString$0$(value);
  54756. this._evaluate$_logger.debug$2(t1, node.span);
  54757. return null;
  54758. },
  54759. visitDeclaration$1: function(node) {
  54760. var $name, t1, cssValue, t2, oldDeclarationName, _this = this;
  54761. if (!(_this._styleRule != null && !_this._atRootExcludingStyleRule) && !_this._inUnknownAtRule && !_this._inKeyframes)
  54762. throw H.wrapException(_this._evaluate$_exception$2("Declarations may only be used within style rules.", node.span));
  54763. $name = _this._interpolationToValue$2$warnForColor(node.name, true);
  54764. t1 = _this._declarationName;
  54765. if (t1 != null)
  54766. $name = new F.CssValue(t1 + "-" + H.S($name.value), $name.span, type$.CssValue_String);
  54767. t1 = node.value;
  54768. cssValue = t1 == null ? null : new F.CssValue(t1.accept$1(_this), t1.get$span(), type$.CssValue_Value);
  54769. if (cssValue != null) {
  54770. t2 = cssValue.value;
  54771. t2 = !t2.get$isBlank() || t2.get$asList().length === 0;
  54772. } else
  54773. t2 = false;
  54774. if (t2) {
  54775. t2 = _this._evaluate$_parent;
  54776. t1 = _this._expressionNode$1(t1);
  54777. t1 = t1 == null ? null : t1.get$span();
  54778. t2.addChild$1(L.ModifiableCssDeclaration$($name, cssValue, node.span, t1));
  54779. } else if (J.startsWith$1$s($name.value, "--"))
  54780. throw H.wrapException(_this._evaluate$_exception$2("Custom property values may not be empty.", t1.get$span()));
  54781. if (node.children != null) {
  54782. oldDeclarationName = _this._declarationName;
  54783. _this._declarationName = $name.value;
  54784. _this._evaluate$_environment.scope$1$2$when(new R._EvaluateVisitor_visitDeclaration_closure(_this, node), node.hasDeclarations, type$.Null);
  54785. _this._declarationName = oldDeclarationName;
  54786. }
  54787. return null;
  54788. },
  54789. visitEachRule$1: function(node) {
  54790. var _this = this,
  54791. t1 = node.list,
  54792. list = t1.accept$1(_this),
  54793. nodeWithSpan = _this._expressionNode$1(t1),
  54794. setVariables = node.variables.length === 1 ? new R._EvaluateVisitor_visitEachRule_closure(_this, node, nodeWithSpan) : new R._EvaluateVisitor_visitEachRule_closure0(_this, node, nodeWithSpan);
  54795. return _this._evaluate$_environment.scope$1$2$semiGlobal(new R._EvaluateVisitor_visitEachRule_closure1(_this, list, setVariables, node), true, type$.Value);
  54796. },
  54797. _setMultipleVariables$3: function(variables, value, nodeWithSpan) {
  54798. var i,
  54799. list = value.get$asList(),
  54800. t1 = variables.length,
  54801. minLength = Math.min(t1, list.length);
  54802. for (i = 0; i < minLength; ++i)
  54803. this._evaluate$_environment.setLocalVariable$3(variables[i], list[i].withoutSlash$0(), nodeWithSpan);
  54804. for (i = minLength; i < t1; ++i)
  54805. this._evaluate$_environment.setLocalVariable$3(variables[i], C.C_SassNull0, nodeWithSpan);
  54806. },
  54807. visitErrorRule$1: function(node) {
  54808. throw H.wrapException(this._evaluate$_exception$2(J.toString$0$(node.expression.accept$1(this)), node.span));
  54809. },
  54810. visitExtendRule$1: function(node) {
  54811. var targetText, t1, t2, t3, _i, t4, _this = this;
  54812. if (!(_this._styleRule != null && !_this._atRootExcludingStyleRule) || _this._declarationName != null)
  54813. throw H.wrapException(_this._evaluate$_exception$2("@extend may only be used within style rules.", node.span));
  54814. targetText = _this._interpolationToValue$2$warnForColor(node.selector, true);
  54815. for (t1 = _this._adjustParseError$2(targetText, new R._EvaluateVisitor_visitExtendRule_closure(_this, targetText)).components, t2 = t1.length, t3 = type$.CompoundSelector, _i = 0; _i < t2; ++_i) {
  54816. t4 = t1[_i].components;
  54817. if (t4.length !== 1 || !(C.JSArray_methods.get$first(t4) instanceof X.CompoundSelector))
  54818. throw H.wrapException(E.SassFormatException$("complex selectors may not be extended.", targetText.span));
  54819. t4 = t3._as(C.JSArray_methods.get$first(t4)).components;
  54820. if (t4.length !== 1)
  54821. throw H.wrapException(E.SassFormatException$("compound selectors may no longer be extended.\nConsider `@extend " + C.JSArray_methods.join$1(t4, ", ") + "` instead.\nSee http://bit.ly/ExtendCompound for details.\n", targetText.span));
  54822. _this._extender.addExtension$4(_this._styleRule.selector, C.JSArray_methods.get$first(t4), node, _this._mediaQueries);
  54823. }
  54824. return null;
  54825. },
  54826. visitAtRule$1: function(node) {
  54827. var $name, t1, value, t2, wasInKeyframes, wasInUnknownAtRule, _this = this;
  54828. if (_this._declarationName != null)
  54829. throw H.wrapException(_this._evaluate$_exception$2("At-rules may not be used within nested declarations.", node.span));
  54830. $name = _this._interpolationToValue$1(node.name);
  54831. t1 = node.value;
  54832. value = t1 == null ? null : _this._interpolationToValue$3$trim$warnForColor(t1, true, true);
  54833. if (node.children == null) {
  54834. t1 = _this._evaluate$_parent;
  54835. t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
  54836. t1.addChild$1(new U.ModifiableCssAtRule($name, value, true, node.span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode), t2));
  54837. return null;
  54838. }
  54839. wasInKeyframes = _this._inKeyframes;
  54840. wasInUnknownAtRule = _this._inUnknownAtRule;
  54841. if (B.unvendor($name.value) === "keyframes")
  54842. _this._inKeyframes = true;
  54843. else
  54844. _this._inUnknownAtRule = true;
  54845. t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
  54846. _this._withParent$2$4$scopeWhen$through(new U.ModifiableCssAtRule($name, value, false, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1), new R._EvaluateVisitor_visitAtRule_closure(_this, node), node.hasDeclarations, new R._EvaluateVisitor_visitAtRule_closure0(), type$.ModifiableCssAtRule, type$.Null);
  54847. _this._inUnknownAtRule = wasInUnknownAtRule;
  54848. _this._inKeyframes = wasInKeyframes;
  54849. return null;
  54850. },
  54851. visitForRule$1: function(node) {
  54852. var _this = this, t1 = {},
  54853. t2 = node.from,
  54854. fromNumber = _this._addExceptionSpan$2(t2, new R._EvaluateVisitor_visitForRule_closure(_this, node)),
  54855. t3 = node.to,
  54856. toNumber = _this._addExceptionSpan$2(t3, new R._EvaluateVisitor_visitForRule_closure0(_this, node)),
  54857. from = _this._addExceptionSpan$2(t2, new R._EvaluateVisitor_visitForRule_closure1(fromNumber, toNumber)),
  54858. to = t1.to = _this._addExceptionSpan$2(t3, new R._EvaluateVisitor_visitForRule_closure2(toNumber)),
  54859. direction = from > to ? -1 : 1;
  54860. if (from === (!node.isExclusive ? t1.to = to + direction : to))
  54861. return null;
  54862. return _this._evaluate$_environment.scope$1$2$semiGlobal(new R._EvaluateVisitor_visitForRule_closure3(t1, _this, node, from, direction), true, type$.Value);
  54863. },
  54864. visitForwardRule$1: function(node) {
  54865. var newConfiguration, t4, _i, variable, _this = this,
  54866. _s8_ = "@forward",
  54867. oldConfiguration = _this._configuration,
  54868. adjustedConfiguration = oldConfiguration.throughForward$1(node),
  54869. t1 = node.configuration,
  54870. t2 = t1.length,
  54871. t3 = node.url;
  54872. if (t2 !== 0) {
  54873. newConfiguration = _this._addForwardConfiguration$2(adjustedConfiguration, node);
  54874. _this._loadModule$5$configuration(t3, _s8_, node, new R._EvaluateVisitor_visitForwardRule_closure(_this, node), newConfiguration);
  54875. t3 = type$.String;
  54876. t4 = P.LinkedHashSet_LinkedHashSet(t3);
  54877. for (_i = 0; _i < t2; ++_i) {
  54878. variable = t1[_i];
  54879. if (!variable.isGuarded)
  54880. t4.add$1(0, variable.name);
  54881. }
  54882. _this._removeUsedConfiguration$3$except(adjustedConfiguration, newConfiguration, t4);
  54883. t3 = P.LinkedHashSet_LinkedHashSet(t3);
  54884. for (_i = 0; _i < t2; ++_i)
  54885. t3.add$1(0, t1[_i].name);
  54886. _this._assertConfigurationIsEmpty$2$only(newConfiguration, t3);
  54887. } else {
  54888. _this._configuration = adjustedConfiguration;
  54889. _this._loadModule$4(t3, _s8_, node, new R._EvaluateVisitor_visitForwardRule_closure0(_this, node));
  54890. _this._configuration = oldConfiguration;
  54891. }
  54892. return null;
  54893. },
  54894. _addForwardConfiguration$2: function(configuration, node) {
  54895. var t2, t3, _i, variable, t4, t5,
  54896. t1 = configuration._values,
  54897. newValues = P.LinkedHashMap_LinkedHashMap$of(new P.UnmodifiableMapView(t1, type$.UnmodifiableMapView_String_ConfiguredValue), type$.String, type$.ConfiguredValue);
  54898. for (t2 = node.configuration, t3 = t2.length, _i = 0; _i < t3; ++_i) {
  54899. variable = t2[_i];
  54900. if (variable.isGuarded) {
  54901. t4 = variable.name;
  54902. t5 = t1.get$isEmpty(t1) ? null : t1.remove$1(0, t4);
  54903. if (t5 != null && !J.$eq$(t5.value, C.C_SassNull0)) {
  54904. newValues.$indexSet(0, t4, t5);
  54905. continue;
  54906. }
  54907. }
  54908. t4 = variable.name;
  54909. t5 = variable.expression;
  54910. newValues.$indexSet(0, t4, new Z.ConfiguredValue(t5.accept$1(this).withoutSlash$0(), variable.span, this._expressionNode$1(t5)));
  54911. }
  54912. return new A.Configuration(newValues, node, false);
  54913. },
  54914. _removeUsedConfiguration$3$except: function(upstream, downstream, except) {
  54915. var t1, t2, t3, t4, _i, $name;
  54916. for (t1 = upstream._values, t2 = J.toList$0$ax(t1.get$keys()), t3 = t2.length, t4 = downstream._values, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i) {
  54917. $name = t2[_i];
  54918. if (except.contains$1(0, $name))
  54919. continue;
  54920. if (!t4.containsKey$1($name))
  54921. if (!t1.get$isEmpty(t1))
  54922. t1.remove$1(0, $name);
  54923. }
  54924. },
  54925. _assertConfigurationIsEmpty$3$nameInError$only: function(configuration, nameInError, only) {
  54926. configuration._values.forEach$1(0, new R._EvaluateVisitor__assertConfigurationIsEmpty_closure(this, only, nameInError));
  54927. },
  54928. _assertConfigurationIsEmpty$2$nameInError: function(configuration, nameInError) {
  54929. return this._assertConfigurationIsEmpty$3$nameInError$only(configuration, nameInError, null);
  54930. },
  54931. _assertConfigurationIsEmpty$1: function(configuration) {
  54932. return this._assertConfigurationIsEmpty$3$nameInError$only(configuration, false, null);
  54933. },
  54934. _assertConfigurationIsEmpty$2$only: function(configuration, only) {
  54935. return this._assertConfigurationIsEmpty$3$nameInError$only(configuration, false, only);
  54936. },
  54937. visitFunctionRule$1: function(node) {
  54938. var t1 = this._evaluate$_environment,
  54939. t2 = t1.closure$0(),
  54940. t3 = t1._functions,
  54941. index = t3.length - 1,
  54942. t4 = node.name;
  54943. t1._functionIndices.$indexSet(0, t4, index);
  54944. J.$indexSet$ax(t3[index], t4, new E.UserDefinedCallable(node, t2, type$.UserDefinedCallable_Environment));
  54945. return null;
  54946. },
  54947. visitIfRule$1: function(node) {
  54948. var t1, t2, _i, clauseToCheck, _box_0 = {};
  54949. _box_0.clause = node.lastClause;
  54950. for (t1 = node.clauses, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  54951. clauseToCheck = t1[_i];
  54952. if (clauseToCheck.expression.accept$1(this).get$isTruthy()) {
  54953. _box_0.clause = clauseToCheck;
  54954. break;
  54955. }
  54956. }
  54957. t1 = _box_0.clause;
  54958. if (t1 == null)
  54959. return null;
  54960. return this._evaluate$_environment.scope$1$3$semiGlobal$when(new R._EvaluateVisitor_visitIfRule_closure(_box_0, this), true, t1.hasDeclarations, type$.Value);
  54961. },
  54962. visitImportRule$1: function(node) {
  54963. var t1, t2, t3, t4, t5, t6, _i, $import, t7, result, supports, t8, t9, resolvedSupports, mediaQuery, t10, result0, _this = this, _null = null;
  54964. for (t1 = node.imports, t2 = t1.length, t3 = type$.CssMediaQuery, t4 = type$.CssValue_String, t5 = type$.StaticImport, t6 = type$.JSArray_ModifiableCssImport, _i = 0; _i < t2; ++_i) {
  54965. $import = t1[_i];
  54966. if ($import instanceof B.DynamicImport)
  54967. _this._visitDynamicImport$1($import);
  54968. else {
  54969. t5._as($import);
  54970. t7 = $import.url;
  54971. result = _this._performInterpolation$2$warnForColor(t7, false);
  54972. supports = $import.supports;
  54973. if (supports instanceof L.SupportsDeclaration) {
  54974. t8 = supports.name;
  54975. t8 = H.S(_this._evaluate$_serialize$3$quote(t8.accept$1(_this), t8, true)) + ": ";
  54976. t9 = supports.value;
  54977. resolvedSupports = t8 + H.S(_this._evaluate$_serialize$3$quote(t9.accept$1(_this), t9, true));
  54978. } else
  54979. resolvedSupports = supports == null ? _null : _this._visitSupportsCondition$1(supports);
  54980. t8 = $import.media;
  54981. mediaQuery = t8 == null ? _null : _this._visitMediaQueries$1(t8);
  54982. t8 = $import.span;
  54983. t9 = resolvedSupports == null ? _null : new F.CssValue("supports(" + resolvedSupports + ")", supports.get$span(), t4);
  54984. if (mediaQuery == null)
  54985. t10 = _null;
  54986. else {
  54987. result0 = P.List_List$from(mediaQuery, false, t3);
  54988. result0.fixed$length = Array;
  54989. result0.immutable$list = Array;
  54990. t10 = result0;
  54991. }
  54992. node = new F.ModifiableCssImport(new F.CssValue(result, t7.span, t4), t9, t10, t8);
  54993. t7 = _this._evaluate$_parent;
  54994. t8 = _this._root;
  54995. if (t7 != t8)
  54996. t7.addChild$1(node);
  54997. else if (_this._endOfImports === J.get$length$asx(t8.children._collection$_source)) {
  54998. t7 = _this._root;
  54999. t7.toString;
  55000. node._parent = t7;
  55001. t7 = t7._children;
  55002. node._indexInParent = t7.length;
  55003. t7.push(node);
  55004. _this._endOfImports = _this._endOfImports + 1;
  55005. } else {
  55006. t7 = _this._outOfOrderImports;
  55007. (t7 == null ? _this._outOfOrderImports = H.setRuntimeTypeInfo([], t6) : t7).push(node);
  55008. }
  55009. }
  55010. }
  55011. return _null;
  55012. },
  55013. _visitDynamicImport$1: function($import) {
  55014. return this._withStackFrame$3("@import", $import, new R._EvaluateVisitor__visitDynamicImport_closure(this, $import));
  55015. },
  55016. _loadStylesheet$4$baseUrl$forImport: function(url, span, baseUrl, forImport) {
  55017. var tuple, error, error0, message, t1, t2, t3, exception, _this = this;
  55018. try {
  55019. _this._importSpan = span;
  55020. t1 = P.Uri_parse(url);
  55021. t2 = _this._importer;
  55022. if (baseUrl == null) {
  55023. t3 = _this._stylesheet;
  55024. t3 = t3 == null ? null : t3.span;
  55025. t3 = t3 == null ? null : t3.file.url;
  55026. } else
  55027. t3 = baseUrl;
  55028. tuple = _this._evaluate$_importCache.import$4$baseImporter$baseUrl$forImport(t1, t2, t3, forImport);
  55029. if (tuple != null)
  55030. return tuple;
  55031. if (C.JSString_methods.startsWith$1(url, "package:") && true)
  55032. throw H.wrapException('"package:" URLs aren\'t supported on this platform.');
  55033. else
  55034. throw H.wrapException("Can't find stylesheet to import.");
  55035. } catch (exception) {
  55036. t1 = H.unwrapException(exception);
  55037. if (t1 instanceof E.SassException) {
  55038. error = t1;
  55039. t1 = _this._evaluate$_exception$2(error._span_exception$_message, error.get$span());
  55040. throw H.wrapException(t1);
  55041. } else {
  55042. error0 = t1;
  55043. message = null;
  55044. try {
  55045. message = H._asStringNullable(J.get$message$x(error0));
  55046. } catch (exception) {
  55047. H.unwrapException(exception);
  55048. message = J.toString$0$(error0);
  55049. }
  55050. t1 = _this._evaluate$_exception$1(message);
  55051. throw H.wrapException(t1);
  55052. }
  55053. } finally {
  55054. _this._importSpan = null;
  55055. }
  55056. },
  55057. _loadStylesheet$3$baseUrl: function(url, span, baseUrl) {
  55058. return this._loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, false);
  55059. },
  55060. _loadStylesheet$3$forImport: function(url, span, forImport) {
  55061. return this._loadStylesheet$4$baseUrl$forImport(url, span, null, forImport);
  55062. },
  55063. visitIncludeRule$1: function(node) {
  55064. var nodeWithSpan, t1, t2, t3, contentCallable, _this = this,
  55065. _s37_ = "Mixin doesn't accept a content block.",
  55066. mixin = _this._addExceptionSpan$2(node, new R._EvaluateVisitor_visitIncludeRule_closure(_this, node));
  55067. if (mixin == null)
  55068. throw H.wrapException(_this._evaluate$_exception$2("Undefined mixin.", node.span));
  55069. nodeWithSpan = new B._FakeAstNode(new R._EvaluateVisitor_visitIncludeRule_closure0(node));
  55070. if (mixin instanceof Q.BuiltInCallable) {
  55071. if (node.content != null)
  55072. throw H.wrapException(_this._evaluate$_exception$2(_s37_, node.span));
  55073. _this._runBuiltInCallable$3(node.$arguments, mixin, nodeWithSpan);
  55074. } else {
  55075. t1 = type$.UserDefinedCallable_Environment;
  55076. if (t1._is(mixin)) {
  55077. t2 = node.content;
  55078. t3 = t2 == null;
  55079. if (!t3 && !type$.MixinRule._as(mixin.declaration).hasContent)
  55080. throw H.wrapException(E.MultiSpanSassRuntimeException$(_s37_, node.get$spanWithoutContent(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([mixin.declaration.$arguments.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), _this._evaluate$_stackTrace$1(node.get$spanWithoutContent())));
  55081. contentCallable = t3 ? null : new E.UserDefinedCallable(t2, _this._evaluate$_environment.closure$0(), t1);
  55082. _this._runUserDefinedCallable$4(node.$arguments, mixin, nodeWithSpan, new R._EvaluateVisitor_visitIncludeRule_closure1(_this, contentCallable, mixin, nodeWithSpan));
  55083. } else
  55084. throw H.wrapException(P.UnsupportedError$("Unknown callable type " + mixin.toString$0(0) + "."));
  55085. }
  55086. return null;
  55087. },
  55088. visitMixinRule$1: function(node) {
  55089. var t1 = this._evaluate$_environment,
  55090. t2 = t1.closure$0(),
  55091. t3 = t1._mixins,
  55092. index = t3.length - 1,
  55093. t4 = node.name;
  55094. t1._mixinIndices.$indexSet(0, t4, index);
  55095. J.$indexSet$ax(t3[index], t4, new E.UserDefinedCallable(node, t2, type$.UserDefinedCallable_Environment));
  55096. return null;
  55097. },
  55098. visitLoudComment$1: function(node) {
  55099. var t1, t2, _this = this;
  55100. if (_this._inFunction)
  55101. return null;
  55102. t1 = _this._evaluate$_parent;
  55103. t2 = _this._root;
  55104. if (t1 == t2 && _this._endOfImports === J.get$length$asx(t2.children._collection$_source))
  55105. _this._endOfImports = _this._endOfImports + 1;
  55106. t1 = node.text;
  55107. _this._evaluate$_parent.addChild$1(new R.ModifiableCssComment(_this._performInterpolation$1(t1), t1.span));
  55108. return null;
  55109. },
  55110. visitMediaRule$1: function(node) {
  55111. var queries, t1, mergedQueries, _this = this;
  55112. if (_this._declarationName != null)
  55113. throw H.wrapException(_this._evaluate$_exception$2("Media rules may not be used within nested declarations.", node.span));
  55114. queries = _this._visitMediaQueries$1(node.query);
  55115. t1 = _this._mediaQueries;
  55116. mergedQueries = t1 == null ? null : _this._mergeMediaQueries$2(t1, queries);
  55117. t1 = mergedQueries == null;
  55118. if (!t1 && mergedQueries.length === 0)
  55119. return null;
  55120. t1 = t1 ? queries : mergedQueries;
  55121. _this._withParent$2$4$scopeWhen$through(G.ModifiableCssMediaRule$(t1, node.span), new R._EvaluateVisitor_visitMediaRule_closure(_this, mergedQueries, queries, node), node.hasDeclarations, new R._EvaluateVisitor_visitMediaRule_closure0(mergedQueries), type$.ModifiableCssMediaRule, type$.Null);
  55122. return null;
  55123. },
  55124. _visitMediaQueries$1: function(interpolation) {
  55125. return this._adjustParseError$2(interpolation, new R._EvaluateVisitor__visitMediaQueries_closure(this, this._performInterpolation$2$warnForColor(interpolation, true)));
  55126. },
  55127. _mergeMediaQueries$2: function(queries1, queries2) {
  55128. var t1, t2, t3, t4, t5, result,
  55129. queries = H.setRuntimeTypeInfo([], type$.JSArray_CssMediaQuery);
  55130. for (t1 = J.get$iterator$ax(queries1), t2 = J.getInterceptor$ax(queries2), t3 = type$.MediaQuerySuccessfulMergeResult; t1.moveNext$0();) {
  55131. t4 = t1.get$current(t1);
  55132. for (t5 = t2.get$iterator(queries2); t5.moveNext$0();) {
  55133. result = t4.merge$1(t5.get$current(t5));
  55134. if (result === C._SingletonCssMediaQueryMergeResult_empty)
  55135. continue;
  55136. if (result === C._SingletonCssMediaQueryMergeResult_unrepresentable)
  55137. return null;
  55138. queries.push(t3._as(result).query);
  55139. }
  55140. }
  55141. return queries;
  55142. },
  55143. visitReturnRule$1: function(node) {
  55144. return node.expression.accept$1(this);
  55145. },
  55146. visitSilentComment$1: function(node) {
  55147. return null;
  55148. },
  55149. visitStyleRule$1: function(node) {
  55150. var t2, selectorText, t3, parsedSelector, rule, oldAtRootExcludingStyleRule, _this = this, t1 = {};
  55151. if (_this._declarationName != null)
  55152. throw H.wrapException(_this._evaluate$_exception$2("Style rules may not be used within nested declarations.", node.span));
  55153. t2 = node.selector;
  55154. selectorText = _this._interpolationToValue$3$trim$warnForColor(t2, true, true);
  55155. if (_this._inKeyframes) {
  55156. t1 = P.List_List$unmodifiable(_this._adjustParseError$2(t2, new R._EvaluateVisitor_visitStyleRule_closure(_this, selectorText)), type$.String);
  55157. t3 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
  55158. _this._withParent$2$4$scopeWhen$through(new U.ModifiableCssKeyframeBlock(new F.CssValue(t1, t2.span, type$.CssValue_List_String), node.span, new P.UnmodifiableListView(t3, type$.UnmodifiableListView_ModifiableCssNode), t3), new R._EvaluateVisitor_visitStyleRule_closure0(_this, node), node.hasDeclarations, new R._EvaluateVisitor_visitStyleRule_closure1(), type$.ModifiableCssKeyframeBlock, type$.Null);
  55159. return null;
  55160. }
  55161. t1.parsedSelector = _this._adjustParseError$2(t2, new R._EvaluateVisitor_visitStyleRule_closure2(_this, selectorText));
  55162. parsedSelector = _this._addExceptionSpan$2(t2, new R._EvaluateVisitor_visitStyleRule_closure3(t1, _this));
  55163. t1.parsedSelector = parsedSelector;
  55164. rule = X.ModifiableCssStyleRule$(_this._extender.addSelector$3(parsedSelector, t2.span, _this._mediaQueries), node.span, t1.parsedSelector);
  55165. oldAtRootExcludingStyleRule = _this._atRootExcludingStyleRule;
  55166. _this._atRootExcludingStyleRule = false;
  55167. _this._withParent$2$4$scopeWhen$through(rule, new R._EvaluateVisitor_visitStyleRule_closure4(_this, rule, node), node.hasDeclarations, new R._EvaluateVisitor_visitStyleRule_closure5(), type$.ModifiableCssStyleRule, type$.Null);
  55168. _this._atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  55169. if (!(_this._styleRule != null && !oldAtRootExcludingStyleRule)) {
  55170. t1 = _this._evaluate$_parent.children;
  55171. t1 = !t1.get$isEmpty(t1);
  55172. } else
  55173. t1 = false;
  55174. if (t1) {
  55175. t1 = _this._evaluate$_parent.children;
  55176. t1.get$last(t1).isGroupEnd = true;
  55177. }
  55178. return null;
  55179. },
  55180. visitSupportsRule$1: function(node) {
  55181. var t1, t2, t3, _this = this;
  55182. if (_this._declarationName != null)
  55183. throw H.wrapException(_this._evaluate$_exception$2("Supports rules may not be used within nested declarations.", node.span));
  55184. t1 = node.condition;
  55185. t2 = _this._visitSupportsCondition$1(t1);
  55186. t1 = t1.get$span();
  55187. t3 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
  55188. _this._withParent$2$4$scopeWhen$through(new B.ModifiableCssSupportsRule(new F.CssValue(t2, t1, type$.CssValue_String), node.span, new P.UnmodifiableListView(t3, type$.UnmodifiableListView_ModifiableCssNode), t3), new R._EvaluateVisitor_visitSupportsRule_closure(_this, node), node.hasDeclarations, new R._EvaluateVisitor_visitSupportsRule_closure0(), type$.ModifiableCssSupportsRule, type$.Null);
  55189. return null;
  55190. },
  55191. _visitSupportsCondition$1: function(condition) {
  55192. var t1, t2, _this = this;
  55193. if (condition instanceof U.SupportsOperation) {
  55194. t1 = condition.left;
  55195. t2 = condition.operator;
  55196. return H.S(_this._parenthesize$2(t1, t2)) + " " + t2 + " " + H.S(_this._parenthesize$2(condition.right, t2));
  55197. } else if (condition instanceof M.SupportsNegation)
  55198. return "not " + H.S(_this._parenthesize$1(condition.condition));
  55199. else if (condition instanceof X.SupportsInterpolation) {
  55200. t1 = condition.expression;
  55201. return _this._evaluate$_serialize$3$quote(t1.accept$1(_this), t1, false);
  55202. } else if (condition instanceof L.SupportsDeclaration) {
  55203. t1 = condition.name;
  55204. t1 = "(" + H.S(_this._evaluate$_serialize$3$quote(t1.accept$1(_this), t1, true)) + ": ";
  55205. t2 = condition.value;
  55206. return t1 + H.S(_this._evaluate$_serialize$3$quote(t2.accept$1(_this), t2, true)) + ")";
  55207. } else
  55208. return null;
  55209. },
  55210. _parenthesize$2: function(condition, operator) {
  55211. var t1;
  55212. if (!(condition instanceof M.SupportsNegation))
  55213. if (condition instanceof U.SupportsOperation)
  55214. t1 = operator == null || operator !== condition.operator;
  55215. else
  55216. t1 = false;
  55217. else
  55218. t1 = true;
  55219. if (t1)
  55220. return "(" + H.S(this._visitSupportsCondition$1(condition)) + ")";
  55221. else
  55222. return this._visitSupportsCondition$1(condition);
  55223. },
  55224. _parenthesize$1: function(condition) {
  55225. return this._parenthesize$2(condition, null);
  55226. },
  55227. visitVariableDeclaration$1: function(node) {
  55228. var t1, value, t2, _this = this, _null = null;
  55229. if (node.isGuarded) {
  55230. if (node.namespace == null && _this._evaluate$_environment._variables.length === 1) {
  55231. t1 = _this._configuration._values;
  55232. t1 = t1.get$isEmpty(t1) ? _null : t1.remove$1(0, node.name);
  55233. if (t1 != null) {
  55234. _this._addExceptionSpan$2(node, new R._EvaluateVisitor_visitVariableDeclaration_closure(_this, node, t1));
  55235. return _null;
  55236. }
  55237. }
  55238. value = _this._addExceptionSpan$2(node, new R._EvaluateVisitor_visitVariableDeclaration_closure0(_this, node));
  55239. if (value != null && !value.$eq(0, C.C_SassNull0))
  55240. return _null;
  55241. }
  55242. if (node.isGlobal && !_this._evaluate$_environment.globalVariableExists$1(node.name)) {
  55243. t1 = _this._evaluate$_environment._variables.length === 1 ? "As of Dart Sass 2.0.0, !global assignments won't be able to\ndeclare new variables. Since this assignment is at the root of the stylesheet,\nthe !global flag is unnecessary and can safely be removed." : "As of Dart Sass 2.0.0, !global assignments won't be able to\ndeclare new variables. Consider adding `" + B.declarationName(node.span) + ": null` at the root of the\nstylesheet.";
  55244. t2 = node.span;
  55245. _this._evaluate$_logger.warn$4$deprecation$span$trace(t1, true, t2, _this._evaluate$_stackTrace$1(t2));
  55246. }
  55247. _this._addExceptionSpan$2(node, new R._EvaluateVisitor_visitVariableDeclaration_closure1(_this, node, node.expression.accept$1(_this).withoutSlash$0()));
  55248. return _null;
  55249. },
  55250. visitUseRule$1: function(node) {
  55251. var configuration, t3, _i, variable, t4, t5, _this = this,
  55252. t1 = node.configuration,
  55253. t2 = t1.length;
  55254. if (t2 === 0)
  55255. configuration = C.Configuration_Map_empty_null_true;
  55256. else {
  55257. t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue);
  55258. for (_i = 0; _i < t2; ++_i) {
  55259. variable = t1[_i];
  55260. t4 = variable.name;
  55261. t5 = variable.expression;
  55262. t3.$indexSet(0, t4, new Z.ConfiguredValue(t5.accept$1(_this).withoutSlash$0(), variable.span, _this._expressionNode$1(t5)));
  55263. }
  55264. configuration = new A.Configuration(t3, node, false);
  55265. }
  55266. _this._loadModule$5$configuration(node.url, "@use", node, new R._EvaluateVisitor_visitUseRule_closure(_this, node), configuration);
  55267. _this._assertConfigurationIsEmpty$1(configuration);
  55268. return null;
  55269. },
  55270. visitWarnRule$1: function(node) {
  55271. var _this = this,
  55272. value = _this._addExceptionSpan$2(node, new R._EvaluateVisitor_visitWarnRule_closure(_this, node)),
  55273. t1 = value instanceof D.SassString ? value.text : _this._evaluate$_serialize$2(value, node.expression);
  55274. _this._evaluate$_logger.warn$2$trace(t1, _this._evaluate$_stackTrace$1(node.span));
  55275. return null;
  55276. },
  55277. visitWhileRule$1: function(node) {
  55278. return this._evaluate$_environment.scope$1$3$semiGlobal$when(new R._EvaluateVisitor_visitWhileRule_closure(this, node), true, node.hasDeclarations, type$.Value);
  55279. },
  55280. visitBinaryOperationExpression$1: function(node) {
  55281. return this._addExceptionSpan$2(node, new R._EvaluateVisitor_visitBinaryOperationExpression_closure(this, node));
  55282. },
  55283. visitValueExpression$1: function(node) {
  55284. return node.value;
  55285. },
  55286. visitVariableExpression$1: function(node) {
  55287. var result = this._addExceptionSpan$2(node, new R._EvaluateVisitor_visitVariableExpression_closure(this, node));
  55288. if (result != null)
  55289. return result;
  55290. throw H.wrapException(this._evaluate$_exception$2("Undefined variable.", node.span));
  55291. },
  55292. visitUnaryOperationExpression$1: function(node) {
  55293. var operand = node.operand.accept$1(this),
  55294. t1 = node.operator;
  55295. switch (t1) {
  55296. case C.UnaryOperator_j2w:
  55297. return operand.unaryPlus$0();
  55298. case C.UnaryOperator_U4G:
  55299. return operand.unaryMinus$0();
  55300. case C.UnaryOperator_zDx:
  55301. operand.toString;
  55302. return new D.SassString("/" + N.serializeValue0(operand, false, true), false);
  55303. case C.UnaryOperator_not_not:
  55304. return operand.unaryNot$0();
  55305. default:
  55306. throw H.wrapException(P.StateError$("Unknown unary operator " + H.S(t1) + "."));
  55307. }
  55308. },
  55309. visitBooleanExpression$1: function(node) {
  55310. return node.value ? C.SassBoolean_true0 : C.SassBoolean_false0;
  55311. },
  55312. visitIfExpression$1: function(node) {
  55313. var condition, ifTrue, ifFalse, _this = this,
  55314. pair = _this._evaluateMacroArguments$1(node),
  55315. positional = pair.item1,
  55316. named = pair.item2,
  55317. t1 = J.getInterceptor$asx(positional);
  55318. _this._verifyArguments$4(t1.get$length(positional), named, $.$get$IfExpression_declaration(), node);
  55319. condition = t1.get$length(positional) > 0 ? t1.$index(positional, 0) : named.$index(0, "condition");
  55320. ifTrue = t1.get$length(positional) > 1 ? t1.$index(positional, 1) : named.$index(0, "if-true");
  55321. ifFalse = t1.get$length(positional) > 2 ? t1.$index(positional, 2) : named.$index(0, "if-false");
  55322. return (condition.accept$1(_this).get$isTruthy() ? ifTrue : ifFalse).accept$1(_this);
  55323. },
  55324. visitNullExpression$1: function(node) {
  55325. return C.C_SassNull0;
  55326. },
  55327. visitNumberExpression$1: function(node) {
  55328. var t1 = node.unit;
  55329. t1 = t1 == null ? null : H.setRuntimeTypeInfo([t1], type$.JSArray_String);
  55330. t1 = t1 == null ? C.List_empty : P.List_List$unmodifiable(t1, type$.String);
  55331. return new T.SassNumber(node.value, t1, C.List_empty, null);
  55332. },
  55333. visitParenthesizedExpression$1: function(node) {
  55334. return node.expression.accept$1(this);
  55335. },
  55336. visitColorExpression$1: function(node) {
  55337. return node.value;
  55338. },
  55339. visitListExpression$1: function(node) {
  55340. var t1 = node.contents;
  55341. return D.SassList$(new H.MappedListIterable(t1, new R._EvaluateVisitor_visitListExpression_closure(this), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value>")), node.separator, node.hasBrackets);
  55342. },
  55343. visitMapExpression$1: function(node) {
  55344. var t2, t3, _i, pair, t4, keyValue, valueValue,
  55345. t1 = type$.Value,
  55346. map = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1),
  55347. keyNodes = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.AstNode);
  55348. for (t2 = node.pairs, t3 = t2.length, _i = 0; _i < t3; ++_i) {
  55349. pair = t2[_i];
  55350. t4 = pair.item1;
  55351. keyValue = t4.accept$1(this);
  55352. valueValue = pair.item2.accept$1(this);
  55353. if (map.containsKey$1(keyValue))
  55354. throw H.wrapException(E.MultiSpanSassRuntimeException$("Duplicate key.", t4.get$span(), "second key", P.LinkedHashMap_LinkedHashMap$_literal([keyNodes.$index(0, keyValue).get$span(), "first key"], type$.FileSpan, type$.String), this._evaluate$_stackTrace$1(t4.get$span())));
  55355. map.$indexSet(0, keyValue, valueValue);
  55356. keyNodes.$indexSet(0, keyValue, t4);
  55357. }
  55358. return new A.SassMap(H.ConstantMap_ConstantMap$from(map, t1, t1));
  55359. },
  55360. visitFunctionExpression$1: function(node) {
  55361. var oldInFunction, result, _this = this, t1 = {},
  55362. t2 = node.name,
  55363. plainName = t2.get$asPlain();
  55364. t1.$function = null;
  55365. if ((plainName != null ? t1.$function = _this._addExceptionSpan$2(node, new R._EvaluateVisitor_visitFunctionExpression_closure(_this, node, plainName)) : null) == null) {
  55366. if (node.namespace != null)
  55367. throw H.wrapException(_this._evaluate$_exception$2("Undefined function.", node.span));
  55368. t1.$function = new L.PlainCssCallable(_this._performInterpolation$1(t2));
  55369. }
  55370. oldInFunction = _this._inFunction;
  55371. _this._inFunction = true;
  55372. result = _this._addErrorSpan$2(node, new R._EvaluateVisitor_visitFunctionExpression_closure0(t1, _this, node));
  55373. _this._inFunction = oldInFunction;
  55374. return result;
  55375. },
  55376. _getFunction$2$namespace: function($name, namespace) {
  55377. var local = this._evaluate$_environment.getFunction$2$namespace($name, namespace);
  55378. if (local != null || namespace != null)
  55379. return local;
  55380. return this._builtInFunctions.$index(0, $name);
  55381. },
  55382. _runUserDefinedCallable$4: function($arguments, callable, nodeWithSpan, run) {
  55383. var evaluated = this._evaluateArguments$1($arguments),
  55384. t1 = callable.declaration.name,
  55385. $name = t1 == null ? "@content" : t1 + "()";
  55386. return this._withStackFrame$3($name, nodeWithSpan, new R._EvaluateVisitor__runUserDefinedCallable_closure(this, callable, evaluated, nodeWithSpan, run));
  55387. },
  55388. _runFunctionCallable$3: function($arguments, callable, nodeWithSpan) {
  55389. var result, t1, t2, t3, first, _i, argument, rest, _this = this;
  55390. if (callable instanceof Q.BuiltInCallable) {
  55391. result = _this._runBuiltInCallable$3($arguments, callable, nodeWithSpan);
  55392. if (result == null)
  55393. throw H.wrapException(_this._evaluate$_exception$2("Custom functions may not return Dart's null.", nodeWithSpan.get$span()));
  55394. return result.withoutSlash$0();
  55395. } else if (type$.UserDefinedCallable_Environment._is(callable))
  55396. return _this._runUserDefinedCallable$4($arguments, callable, nodeWithSpan, new R._EvaluateVisitor__runFunctionCallable_closure(_this, callable)).withoutSlash$0();
  55397. else if (callable instanceof L.PlainCssCallable) {
  55398. t1 = $arguments.named;
  55399. if (t1.get$isNotEmpty(t1) || $arguments.keywordRest != null)
  55400. throw H.wrapException(_this._evaluate$_exception$2("Plain CSS functions don't support keyword arguments.", nodeWithSpan.get$span()));
  55401. t1 = H.S(callable.name) + "(";
  55402. for (t2 = $arguments.positional, t3 = t2.length, first = true, _i = 0; _i < t3; ++_i) {
  55403. argument = t2[_i];
  55404. if (first)
  55405. first = false;
  55406. else
  55407. t1 += ", ";
  55408. t1 += H.S(_this._evaluate$_serialize$3$quote(argument.accept$1(_this), argument, true));
  55409. }
  55410. t2 = $arguments.rest;
  55411. rest = t2 == null ? null : t2.accept$1(_this);
  55412. if (rest != null) {
  55413. if (!first)
  55414. t1 += ", ";
  55415. t2 = t1 + H.S(_this._evaluate$_serialize$2(rest, t2));
  55416. t1 = t2;
  55417. }
  55418. t1 += H.Primitives_stringFromCharCode(41);
  55419. return new D.SassString(t1.charCodeAt(0) == 0 ? t1 : t1, false);
  55420. } else
  55421. return null;
  55422. },
  55423. _runBuiltInCallable$3: function($arguments, callable, nodeWithSpan) {
  55424. var callback, result, error, error0, error1, message, namedSet, tuple, overload, declaredArguments, i, t1, argument, t2, t3, rest, argumentList, exception, _this = this,
  55425. evaluated = _this._evaluateArguments$2$trackSpans($arguments, false),
  55426. oldCallableNode = _this._callableNode;
  55427. _this._callableNode = nodeWithSpan;
  55428. namedSet = new M.MapKeySet(evaluated.named, type$.MapKeySet_String);
  55429. tuple = callable.callbackFor$2(evaluated.positional.length, namedSet);
  55430. overload = tuple.item1;
  55431. callback = tuple.item2;
  55432. _this._addExceptionSpan$2(nodeWithSpan, new R._EvaluateVisitor__runBuiltInCallable_closure(overload, evaluated, namedSet));
  55433. declaredArguments = overload.$arguments;
  55434. for (i = evaluated.positional.length, t1 = declaredArguments.length; i < t1; ++i) {
  55435. argument = declaredArguments[i];
  55436. t2 = evaluated.positional;
  55437. t3 = evaluated.named.remove$1(0, argument.name);
  55438. if (t3 == null) {
  55439. t3 = argument.defaultValue;
  55440. t3 = t3 == null ? null : t3.accept$1(_this);
  55441. }
  55442. t2.push(t3);
  55443. }
  55444. if (overload.restArgument != null) {
  55445. if (evaluated.positional.length > t1) {
  55446. rest = C.JSArray_methods.sublist$1(evaluated.positional, t1);
  55447. C.JSArray_methods.removeRange$2(evaluated.positional, t1, evaluated.positional.length);
  55448. } else
  55449. rest = C.List_empty5;
  55450. t1 = evaluated.named;
  55451. t2 = evaluated.separator === C.ListSeparator_undecided ? C.ListSeparator_comma : evaluated.separator;
  55452. t3 = type$.Value;
  55453. argumentList = new D.SassArgumentList(H.ConstantMap_ConstantMap$from(t1, type$.String, t3), P.List_List$unmodifiable(rest, t3), t2, false);
  55454. argumentList.SassList$3$brackets(rest, t2, false);
  55455. evaluated.positional.push(argumentList);
  55456. } else
  55457. argumentList = null;
  55458. result = null;
  55459. try {
  55460. result = callback.call$1(evaluated.positional);
  55461. } catch (exception) {
  55462. t1 = H.unwrapException(exception);
  55463. if (type$.SassRuntimeException._is(t1))
  55464. throw exception;
  55465. else if (t1 instanceof E.MultiSpanSassScriptException) {
  55466. error = t1;
  55467. throw H.wrapException(E.MultiSpanSassRuntimeException$(error.message, nodeWithSpan.get$span(), error.primaryLabel, error.secondarySpans, _this._evaluate$_stackTrace$1(nodeWithSpan.get$span())));
  55468. } else if (t1 instanceof E.MultiSpanSassException) {
  55469. error0 = t1;
  55470. throw H.wrapException(E.MultiSpanSassRuntimeException$(error0._span_exception$_message, error0.get$span(), error0.primaryLabel, error0.secondarySpans, _this._evaluate$_stackTrace$1(error0.get$span())));
  55471. } else {
  55472. error1 = t1;
  55473. message = null;
  55474. try {
  55475. message = H._asStringNullable(J.get$message$x(error1));
  55476. } catch (exception) {
  55477. H.unwrapException(exception);
  55478. message = J.toString$0$(error1);
  55479. }
  55480. throw H.wrapException(_this._evaluate$_exception$2(message, nodeWithSpan.get$span()));
  55481. }
  55482. }
  55483. _this._callableNode = oldCallableNode;
  55484. if (argumentList == null)
  55485. return result;
  55486. t1 = evaluated.named;
  55487. if (t1.get$isEmpty(t1))
  55488. return result;
  55489. if (argumentList._wereKeywordsAccessed)
  55490. return result;
  55491. t1 = evaluated.named.get$keys();
  55492. throw H.wrapException(E.MultiSpanSassRuntimeException$("No " + B.pluralize("argument", t1.get$length(t1), null) + " named " + H.S(B.toSentence(evaluated.named.get$keys().map$1$1(0, new R._EvaluateVisitor__runBuiltInCallable_closure0(), type$.Object), "or")) + ".", nodeWithSpan.get$span(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([overload.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), _this._evaluate$_stackTrace$1(nodeWithSpan.get$span())));
  55493. },
  55494. _evaluateArguments$2$trackSpans: function($arguments, trackSpans) {
  55495. var t1, t2, t3, _i, t4, t5, t6, t7, named, t8, positionalNodes, namedNodes, rest, restNodeForSpan, separator, keywordRest, keywordRestNodeForSpan, _this = this, _null = null;
  55496. if (trackSpans == null)
  55497. trackSpans = _this._sourceMap;
  55498. t1 = H.setRuntimeTypeInfo([], type$.JSArray_Value);
  55499. for (t2 = $arguments.positional, t3 = t2.length, _i = 0; _i < t3; ++_i)
  55500. t1.push(t2[_i].accept$1(_this));
  55501. t4 = $arguments.named;
  55502. t5 = type$.String;
  55503. t6 = type$.Expression;
  55504. t7 = type$.Value;
  55505. named = Y.mapMap(t4, _null, new R._EvaluateVisitor__evaluateArguments_closure(_this), t5, t6, t5, t7);
  55506. if (trackSpans) {
  55507. t8 = H.setRuntimeTypeInfo([], type$.JSArray_AstNode);
  55508. for (_i = 0; _i < t3; ++_i)
  55509. t8.push(_this._expressionNode$1(t2[_i]));
  55510. positionalNodes = t8;
  55511. } else
  55512. positionalNodes = _null;
  55513. namedNodes = trackSpans ? Y.mapMap(t4, _null, new R._EvaluateVisitor__evaluateArguments_closure0(_this), t5, t6, t5, type$.AstNode) : _null;
  55514. t2 = $arguments.rest;
  55515. if (t2 == null)
  55516. return R._ArgumentResults$(t1, named, C.ListSeparator_undecided, namedNodes, positionalNodes);
  55517. rest = t2.accept$1(_this);
  55518. restNodeForSpan = trackSpans ? _this._expressionNode$1(t2) : _null;
  55519. if (rest instanceof A.SassMap) {
  55520. _this._addRestMap$1$3(named, rest, t2, t7);
  55521. if (namedNodes != null) {
  55522. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t5, type$.AstNode);
  55523. for (t3 = J.get$iterator$ax(rest.contents.get$keys()), t4 = type$.SassString; t3.moveNext$0();)
  55524. t2.$indexSet(0, t4._as(t3.get$current(t3)).text, restNodeForSpan);
  55525. namedNodes.addAll$1(0, t2);
  55526. }
  55527. separator = C.ListSeparator_undecided;
  55528. } else if (rest instanceof D.SassList) {
  55529. t2 = rest._list$_contents;
  55530. C.JSArray_methods.addAll$1(t1, t2);
  55531. if (positionalNodes != null)
  55532. C.JSArray_methods.addAll$1(positionalNodes, P.List_List$filled(t2.length, restNodeForSpan, type$.AstNode));
  55533. separator = rest.separator;
  55534. if (rest instanceof D.SassArgumentList) {
  55535. rest._wereKeywordsAccessed = true;
  55536. rest._keywords.forEach$1(0, new R._EvaluateVisitor__evaluateArguments_closure1(named, namedNodes, restNodeForSpan));
  55537. }
  55538. } else {
  55539. t1.push(rest);
  55540. if (positionalNodes != null)
  55541. positionalNodes.push(restNodeForSpan);
  55542. separator = C.ListSeparator_undecided;
  55543. }
  55544. t2 = $arguments.keywordRest;
  55545. if (t2 == null)
  55546. return R._ArgumentResults$(t1, named, separator, namedNodes, positionalNodes);
  55547. keywordRest = t2.accept$1(_this);
  55548. keywordRestNodeForSpan = trackSpans ? _this._expressionNode$1(t2) : _null;
  55549. if (keywordRest instanceof A.SassMap) {
  55550. _this._addRestMap$1$3(named, keywordRest, t2, t7);
  55551. if (namedNodes != null) {
  55552. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t5, type$.AstNode);
  55553. for (t3 = J.get$iterator$ax(keywordRest.contents.get$keys()), t4 = type$.SassString; t3.moveNext$0();)
  55554. t2.$indexSet(0, t4._as(t3.get$current(t3)).text, keywordRestNodeForSpan);
  55555. namedNodes.addAll$1(0, t2);
  55556. }
  55557. return R._ArgumentResults$(t1, named, separator, namedNodes, positionalNodes);
  55558. } else
  55559. throw H.wrapException(_this._evaluate$_exception$2("Variable keyword arguments must be a map (was " + H.S(keywordRest) + ").", t2.get$span()));
  55560. },
  55561. _evaluateArguments$1: function($arguments) {
  55562. return this._evaluateArguments$2$trackSpans($arguments, null);
  55563. },
  55564. _evaluateMacroArguments$1: function(invocation) {
  55565. var t3, positional, named, rest, keywordRest, _this = this,
  55566. t1 = invocation.$arguments,
  55567. t2 = t1.rest;
  55568. if (t2 == null)
  55569. return new S.Tuple2(t1.positional, t1.named, type$.Tuple2_of_List_Expression_and_Map_String_Expression);
  55570. t3 = t1.positional;
  55571. positional = H.setRuntimeTypeInfo(t3.slice(0), H._arrayInstanceType(t3)._eval$1("JSArray<1>"));
  55572. t3 = type$.Expression;
  55573. named = P.LinkedHashMap_LinkedHashMap$of(t1.named, type$.String, t3);
  55574. rest = t2.accept$1(_this);
  55575. if (rest instanceof A.SassMap)
  55576. _this._addRestMap$1$4(named, rest, invocation, new R._EvaluateVisitor__evaluateMacroArguments_closure(), t3);
  55577. else if (rest instanceof D.SassList) {
  55578. t2 = rest._list$_contents;
  55579. C.JSArray_methods.addAll$1(positional, new H.MappedListIterable(t2, new R._EvaluateVisitor__evaluateMacroArguments_closure0(), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Expression>")));
  55580. if (rest instanceof D.SassArgumentList) {
  55581. rest._wereKeywordsAccessed = true;
  55582. rest._keywords.forEach$1(0, new R._EvaluateVisitor__evaluateMacroArguments_closure1(named));
  55583. }
  55584. } else
  55585. positional.push(new F.ValueExpression(rest, null));
  55586. t1 = t1.keywordRest;
  55587. if (t1 == null)
  55588. return new S.Tuple2(positional, named, type$.Tuple2_of_List_Expression_and_Map_String_Expression);
  55589. keywordRest = t1.accept$1(_this);
  55590. if (keywordRest instanceof A.SassMap) {
  55591. _this._addRestMap$1$4(named, keywordRest, invocation, new R._EvaluateVisitor__evaluateMacroArguments_closure2(), t3);
  55592. return new S.Tuple2(positional, named, type$.Tuple2_of_List_Expression_and_Map_String_Expression);
  55593. } else
  55594. throw H.wrapException(_this._evaluate$_exception$2("Variable keyword arguments must be a map (was " + H.S(keywordRest) + ").", invocation.span));
  55595. },
  55596. _addRestMap$1$4: function(values, map, nodeWithSpan, convert, $T) {
  55597. var t1 = {};
  55598. t1.convert = convert;
  55599. if (convert == null)
  55600. t1.convert = new R._EvaluateVisitor__addRestMap_closure($T);
  55601. map.contents.forEach$1(0, new R._EvaluateVisitor__addRestMap_closure0(t1, this, values, map, nodeWithSpan));
  55602. },
  55603. _addRestMap$1$3: function(values, map, nodeWithSpan, $T) {
  55604. return this._addRestMap$1$4(values, map, nodeWithSpan, null, $T);
  55605. },
  55606. _verifyArguments$4: function(positional, named, $arguments, nodeWithSpan) {
  55607. return this._addExceptionSpan$2(nodeWithSpan, new R._EvaluateVisitor__verifyArguments_closure($arguments, positional, named));
  55608. },
  55609. visitSelectorExpression$1: function(node) {
  55610. var t1 = this._styleRule;
  55611. if (t1 == null)
  55612. return C.C_SassNull0;
  55613. return t1.originalSelector.get$asSassList();
  55614. },
  55615. visitStringExpression$1: function(node) {
  55616. var t1 = node.text.contents;
  55617. return new D.SassString(new H.MappedListIterable(t1, new R._EvaluateVisitor_visitStringExpression_closure(this), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$0(0), node.hasQuotes);
  55618. },
  55619. visitCssAtRule$1: function(node) {
  55620. var t1, t2, wasInKeyframes, wasInUnknownAtRule, _this = this;
  55621. if (_this._declarationName != null)
  55622. throw H.wrapException(_this._evaluate$_exception$2("At-rules may not be used within nested declarations.", node.span));
  55623. if (node.isChildless) {
  55624. t1 = _this._evaluate$_parent;
  55625. t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
  55626. t1.addChild$1(new U.ModifiableCssAtRule(node.name, node.value, true, node.span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode), t2));
  55627. return null;
  55628. }
  55629. wasInKeyframes = _this._inKeyframes;
  55630. wasInUnknownAtRule = _this._inUnknownAtRule;
  55631. t1 = node.name;
  55632. if (B.unvendor(t1.get$value(t1)) === "keyframes")
  55633. _this._inKeyframes = true;
  55634. else
  55635. _this._inUnknownAtRule = true;
  55636. t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
  55637. _this._withParent$2$4$scopeWhen$through(new U.ModifiableCssAtRule(t1, node.value, false, node.span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode), t2), new R._EvaluateVisitor_visitCssAtRule_closure(_this, node), false, new R._EvaluateVisitor_visitCssAtRule_closure0(), type$.ModifiableCssAtRule, type$.Null);
  55638. _this._inUnknownAtRule = wasInUnknownAtRule;
  55639. _this._inKeyframes = wasInKeyframes;
  55640. },
  55641. visitCssComment$1: function(node) {
  55642. var _this = this,
  55643. t1 = _this._evaluate$_parent,
  55644. t2 = _this._root;
  55645. if (t1 == t2 && _this._endOfImports === J.get$length$asx(t2.children._collection$_source))
  55646. _this._endOfImports = _this._endOfImports + 1;
  55647. _this._evaluate$_parent.addChild$1(new R.ModifiableCssComment(node.text, node.span));
  55648. },
  55649. visitCssDeclaration$1: function(node) {
  55650. this._evaluate$_parent.addChild$1(L.ModifiableCssDeclaration$(node.name, node.value, node.span, node.valueSpanForMap));
  55651. },
  55652. visitCssImport$1: function(node) {
  55653. var _this = this,
  55654. modifiableNode = F.ModifiableCssImport$(node.url, node.span, node.media, node.supports),
  55655. t1 = _this._evaluate$_parent,
  55656. t2 = _this._root;
  55657. if (t1 != t2)
  55658. t1.addChild$1(modifiableNode);
  55659. else if (_this._endOfImports === J.get$length$asx(t2.children._collection$_source)) {
  55660. _this._root.addChild$1(modifiableNode);
  55661. _this._endOfImports = _this._endOfImports + 1;
  55662. } else {
  55663. t1 = _this._outOfOrderImports;
  55664. (t1 == null ? _this._outOfOrderImports = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssImport) : t1).push(modifiableNode);
  55665. }
  55666. },
  55667. visitCssKeyframeBlock$1: function(node) {
  55668. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
  55669. this._withParent$2$4$scopeWhen$through(new U.ModifiableCssKeyframeBlock(node.selector, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1), new R._EvaluateVisitor_visitCssKeyframeBlock_closure(this, node), false, new R._EvaluateVisitor_visitCssKeyframeBlock_closure0(), type$.ModifiableCssKeyframeBlock, type$.Null);
  55670. },
  55671. visitCssMediaRule$1: function(node) {
  55672. var t1, mergedQueries, _this = this;
  55673. if (_this._declarationName != null)
  55674. throw H.wrapException(_this._evaluate$_exception$2("Media rules may not be used within nested declarations.", node.span));
  55675. t1 = _this._mediaQueries;
  55676. mergedQueries = t1 == null ? null : _this._mergeMediaQueries$2(t1, node.queries);
  55677. t1 = mergedQueries == null;
  55678. if (!t1 && mergedQueries.length === 0)
  55679. return null;
  55680. t1 = t1 ? node.queries : mergedQueries;
  55681. _this._withParent$2$4$scopeWhen$through(G.ModifiableCssMediaRule$(t1, node.span), new R._EvaluateVisitor_visitCssMediaRule_closure(_this, mergedQueries, node), false, new R._EvaluateVisitor_visitCssMediaRule_closure0(mergedQueries), type$.ModifiableCssMediaRule, type$.Null);
  55682. },
  55683. visitCssStyleRule$1: function(node) {
  55684. var t1, t2, t3, originalSelector, rule, oldAtRootExcludingStyleRule, _this = this;
  55685. if (_this._declarationName != null)
  55686. throw H.wrapException(_this._evaluate$_exception$2("Style rules may not be used within nested declarations.", node.span));
  55687. t1 = node.selector;
  55688. t2 = t1.value;
  55689. t3 = _this._styleRule;
  55690. t3 = t3 == null ? null : t3.originalSelector;
  55691. originalSelector = t2.resolveParentSelectors$2$implicitParent(t3, !_this._atRootExcludingStyleRule);
  55692. rule = X.ModifiableCssStyleRule$(_this._extender.addSelector$3(originalSelector, t1.span, _this._mediaQueries), node.span, originalSelector);
  55693. oldAtRootExcludingStyleRule = _this._atRootExcludingStyleRule;
  55694. _this._atRootExcludingStyleRule = false;
  55695. _this._withParent$2$4$scopeWhen$through(rule, new R._EvaluateVisitor_visitCssStyleRule_closure(_this, rule, node), false, new R._EvaluateVisitor_visitCssStyleRule_closure0(), type$.ModifiableCssStyleRule, type$.Null);
  55696. _this._atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  55697. if (!(_this._styleRule != null && !oldAtRootExcludingStyleRule)) {
  55698. t1 = _this._evaluate$_parent.children;
  55699. t1 = !t1.get$isEmpty(t1);
  55700. } else
  55701. t1 = false;
  55702. if (t1) {
  55703. t1 = _this._evaluate$_parent.children;
  55704. t1.get$last(t1).isGroupEnd = true;
  55705. }
  55706. },
  55707. visitCssStylesheet$1: function(node) {
  55708. var t1;
  55709. for (t1 = J.get$iterator$ax(node.get$children()); t1.moveNext$0();)
  55710. t1.get$current(t1).accept$1(this);
  55711. },
  55712. visitCssSupportsRule$1: function(node) {
  55713. var t1, _this = this;
  55714. if (_this._declarationName != null)
  55715. throw H.wrapException(_this._evaluate$_exception$2("Supports rules may not be used within nested declarations.", node.span));
  55716. t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
  55717. _this._withParent$2$4$scopeWhen$through(new B.ModifiableCssSupportsRule(node.condition, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1), new R._EvaluateVisitor_visitCssSupportsRule_closure(_this, node), false, new R._EvaluateVisitor_visitCssSupportsRule_closure0(), type$.ModifiableCssSupportsRule, type$.Null);
  55718. },
  55719. _handleReturn$1$2: function(list, callback) {
  55720. var t1, _i, result;
  55721. for (t1 = list.length, _i = 0; _i < list.length; list.length === t1 || (0, H.throwConcurrentModificationError)(list), ++_i) {
  55722. result = callback.call$1(list[_i]);
  55723. if (result != null)
  55724. return result;
  55725. }
  55726. return null;
  55727. },
  55728. _handleReturn$2: function(list, callback) {
  55729. return this._handleReturn$1$2(list, callback, type$.dynamic);
  55730. },
  55731. _withEnvironment$1$2: function(environment, callback) {
  55732. var result,
  55733. oldEnvironment = this._evaluate$_environment;
  55734. this._evaluate$_environment = environment;
  55735. result = callback.call$0();
  55736. this._evaluate$_environment = oldEnvironment;
  55737. return result;
  55738. },
  55739. _withEnvironment$2: function(environment, callback) {
  55740. return this._withEnvironment$1$2(environment, callback, type$.dynamic);
  55741. },
  55742. _interpolationToValue$3$trim$warnForColor: function(interpolation, trim, warnForColor) {
  55743. var result = this._performInterpolation$2$warnForColor(interpolation, warnForColor),
  55744. t1 = trim ? B.trimAscii(result, true) : result;
  55745. return new F.CssValue(t1, interpolation.span, type$.CssValue_String);
  55746. },
  55747. _interpolationToValue$1: function(interpolation) {
  55748. return this._interpolationToValue$3$trim$warnForColor(interpolation, false, false);
  55749. },
  55750. _interpolationToValue$2$warnForColor: function(interpolation, warnForColor) {
  55751. return this._interpolationToValue$3$trim$warnForColor(interpolation, false, warnForColor);
  55752. },
  55753. _performInterpolation$2$warnForColor: function(interpolation, warnForColor) {
  55754. var t1 = interpolation.contents;
  55755. return new H.MappedListIterable(t1, new R._EvaluateVisitor__performInterpolation_closure(this, warnForColor), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$0(0);
  55756. },
  55757. _performInterpolation$1: function(interpolation) {
  55758. return this._performInterpolation$2$warnForColor(interpolation, false);
  55759. },
  55760. _evaluate$_serialize$3$quote: function(value, nodeWithSpan, quote) {
  55761. return this._addExceptionSpan$2(nodeWithSpan, new R._EvaluateVisitor__serialize_closure(value, quote));
  55762. },
  55763. _evaluate$_serialize$2: function(value, nodeWithSpan) {
  55764. return this._evaluate$_serialize$3$quote(value, nodeWithSpan, true);
  55765. },
  55766. _expressionNode$1: function(expression) {
  55767. var t1;
  55768. if (!this._sourceMap)
  55769. return null;
  55770. if (expression instanceof S.VariableExpression) {
  55771. t1 = this._evaluate$_environment.getVariableNode$2$namespace(expression.name, expression.namespace);
  55772. return t1 == null ? expression : t1;
  55773. } else
  55774. return expression;
  55775. },
  55776. _withParent$2$4$scopeWhen$through: function(node, callback, scopeWhen, through, $S, $T) {
  55777. var oldParent, result, _this = this;
  55778. _this._addChild$2$through(node, through);
  55779. oldParent = _this._evaluate$_parent;
  55780. _this._evaluate$_parent = node;
  55781. result = _this._evaluate$_environment.scope$1$2$when(callback, scopeWhen, $T);
  55782. _this._evaluate$_parent = oldParent;
  55783. return result;
  55784. },
  55785. _withParent$2$3$scopeWhen: function(node, callback, scopeWhen, $S, $T) {
  55786. return this._withParent$2$4$scopeWhen$through(node, callback, scopeWhen, null, $S, $T);
  55787. },
  55788. _withParent$2$2: function(node, callback, $S, $T) {
  55789. return this._withParent$2$4$scopeWhen$through(node, callback, true, null, $S, $T);
  55790. },
  55791. _addChild$2$through: function(node, through) {
  55792. var grandparent,
  55793. $parent = this._evaluate$_parent;
  55794. if (through != null) {
  55795. for (; through.call$1($parent);)
  55796. $parent = $parent._parent;
  55797. if ($parent.get$hasFollowingSibling()) {
  55798. grandparent = $parent._parent;
  55799. $parent = $parent.copyWithoutChildren$0();
  55800. grandparent.addChild$1($parent);
  55801. }
  55802. }
  55803. $parent.addChild$1(node);
  55804. },
  55805. _addChild$1: function(node) {
  55806. return this._addChild$2$through(node, null);
  55807. },
  55808. _withStyleRule$1$2: function(rule, callback) {
  55809. var result,
  55810. oldRule = this._styleRule;
  55811. this._styleRule = rule;
  55812. result = callback.call$0();
  55813. this._styleRule = oldRule;
  55814. return result;
  55815. },
  55816. _withStyleRule$2: function(rule, callback) {
  55817. return this._withStyleRule$1$2(rule, callback, type$.dynamic);
  55818. },
  55819. _withMediaQueries$1$2: function(queries, callback) {
  55820. var result,
  55821. oldMediaQueries = this._mediaQueries;
  55822. this._mediaQueries = queries;
  55823. result = callback.call$0();
  55824. this._mediaQueries = oldMediaQueries;
  55825. return result;
  55826. },
  55827. _withMediaQueries$2: function(queries, callback) {
  55828. return this._withMediaQueries$1$2(queries, callback, type$.dynamic);
  55829. },
  55830. _withStackFrame$1$3: function(member, nodeWithSpan, callback) {
  55831. var oldMember, result, _this = this,
  55832. t1 = _this._stack;
  55833. t1.push(new S.Tuple2(_this._member, nodeWithSpan, type$.Tuple2_String_AstNode));
  55834. oldMember = _this._member;
  55835. _this._member = member;
  55836. result = callback.call$0();
  55837. _this._member = oldMember;
  55838. t1.pop();
  55839. return result;
  55840. },
  55841. _withStackFrame$3: function(member, nodeWithSpan, callback) {
  55842. return this._withStackFrame$1$3(member, nodeWithSpan, callback, type$.dynamic);
  55843. },
  55844. _stackFrame$2: function(member, span) {
  55845. var url = span.file.url;
  55846. return B.frameForSpan(span, member, url != null && this._evaluate$_importCache != null ? this._evaluate$_importCache.humanize$1(url) : url);
  55847. },
  55848. _evaluate$_stackTrace$1: function(span) {
  55849. var t2, _this = this,
  55850. t1 = H.setRuntimeTypeInfo([], type$.JSArray_Frame);
  55851. for (t2 = _this._stack, t2 = new H.MappedListIterable(t2, new R._EvaluateVisitor__stackTrace_closure(_this), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Frame>")), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
  55852. t1.push(t2.__internal$_current);
  55853. if (span != null)
  55854. t1.push(_this._stackFrame$2(_this._member, span));
  55855. return new Y.Trace(P.List_List$unmodifiable(new H.ReversedListIterable(t1, type$.ReversedListIterable_Frame), type$.Frame), new P._StringStackTrace(null));
  55856. },
  55857. _evaluate$_stackTrace$0: function() {
  55858. return this._evaluate$_stackTrace$1(null);
  55859. },
  55860. _warn$3$deprecation: function(message, span, deprecation) {
  55861. return this._evaluate$_logger.warn$4$deprecation$span$trace(message, deprecation, span, this._evaluate$_stackTrace$1(span));
  55862. },
  55863. _warn$2: function(message, span) {
  55864. return this._warn$3$deprecation(message, span, false);
  55865. },
  55866. _evaluate$_exception$2: function(message, span) {
  55867. var t1 = span == null ? C.JSArray_methods.get$last(this._stack).item2.get$span() : span;
  55868. return new E.SassRuntimeException(this._evaluate$_stackTrace$1(span), message, t1);
  55869. },
  55870. _evaluate$_exception$1: function(message) {
  55871. return this._evaluate$_exception$2(message, null);
  55872. },
  55873. _multiSpanException$3: function(message, primaryLabel, secondaryLabels) {
  55874. var t1 = C.JSArray_methods.get$last(this._stack).item2.get$span();
  55875. return new E.MultiSpanSassRuntimeException(this._evaluate$_stackTrace$0(), primaryLabel, H.ConstantMap_ConstantMap$from(secondaryLabels, type$.FileSpan, type$.String), message, t1);
  55876. },
  55877. _adjustParseError$1$2: function(nodeWithSpan, callback) {
  55878. var error, errorText, span, syntheticFile, syntheticSpan, t1, exception, t2, t3, t4, t5, _null = null;
  55879. try {
  55880. t1 = callback.call$0();
  55881. return t1;
  55882. } catch (exception) {
  55883. t1 = H.unwrapException(exception);
  55884. if (t1 instanceof E.SassFormatException) {
  55885. error = t1;
  55886. t1 = error;
  55887. errorText = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(G.SourceSpanException.prototype.get$span.call(t1).file._decodedChars, 0, _null), 0, _null);
  55888. span = nodeWithSpan.get$span();
  55889. t1 = span;
  55890. t2 = span;
  55891. syntheticFile = C.JSString_methods.replaceRange$3(P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(span.file._decodedChars, 0, _null), 0, _null), Y.FileLocation$_(t1.file, t1._file$_start).offset, Y.FileLocation$_(t2.file, t2._end).offset, errorText);
  55892. t2 = syntheticFile;
  55893. t1 = span.file.url;
  55894. t2.toString;
  55895. t2 = new H.CodeUnits(t2);
  55896. t3 = H.setRuntimeTypeInfo([0], type$.JSArray_int);
  55897. t3 = new Y.SourceFile(t1, t3, new Uint32Array(H._ensureNativeList(t2.toList$0(t2))));
  55898. t3.SourceFile$decoded$2$url(t2, t1);
  55899. t1 = span;
  55900. t1 = Y.FileLocation$_(t1.file, t1._file$_start);
  55901. t2 = error;
  55902. t2 = G.SourceSpanException.prototype.get$span.call(t2);
  55903. t2 = Y.FileLocation$_(t2.file, t2._file$_start);
  55904. t4 = span;
  55905. t4 = Y.FileLocation$_(t4.file, t4._file$_start);
  55906. t5 = error;
  55907. t5 = G.SourceSpanException.prototype.get$span.call(t5);
  55908. syntheticSpan = t3.span$2(t1.offset + t2.offset, t4.offset + Y.FileLocation$_(t5.file, t5._end).offset);
  55909. throw H.wrapException(this._evaluate$_exception$2(error._span_exception$_message, syntheticSpan));
  55910. } else
  55911. throw exception;
  55912. }
  55913. },
  55914. _adjustParseError$2: function(nodeWithSpan, callback) {
  55915. return this._adjustParseError$1$2(nodeWithSpan, callback, type$.dynamic);
  55916. },
  55917. _addExceptionSpan$1$2: function(nodeWithSpan, callback) {
  55918. var error, error0, t1, exception;
  55919. try {
  55920. t1 = callback.call$0();
  55921. return t1;
  55922. } catch (exception) {
  55923. t1 = H.unwrapException(exception);
  55924. if (t1 instanceof E.MultiSpanSassScriptException) {
  55925. error = t1;
  55926. throw H.wrapException(E.MultiSpanSassRuntimeException$(error.message, nodeWithSpan.get$span(), error.primaryLabel, error.secondarySpans, this._evaluate$_stackTrace$1(nodeWithSpan.get$span())));
  55927. } else if (t1 instanceof E.SassScriptException) {
  55928. error0 = t1;
  55929. throw H.wrapException(this._evaluate$_exception$2(error0.message, nodeWithSpan.get$span()));
  55930. } else
  55931. throw exception;
  55932. }
  55933. },
  55934. _addExceptionSpan$2: function(nodeWithSpan, callback) {
  55935. return this._addExceptionSpan$1$2(nodeWithSpan, callback, type$.dynamic);
  55936. },
  55937. _addErrorSpan$1$2: function(nodeWithSpan, callback) {
  55938. var error, t1, exception;
  55939. try {
  55940. t1 = callback.call$0();
  55941. return t1;
  55942. } catch (exception) {
  55943. t1 = H.unwrapException(exception);
  55944. if (type$.SassRuntimeException._is(t1)) {
  55945. error = t1;
  55946. t1 = error.get$span();
  55947. if (!C.JSString_methods.startsWith$1(P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, null), "@error"))
  55948. throw exception;
  55949. throw H.wrapException(E.SassRuntimeException$(error._span_exception$_message, nodeWithSpan.get$span(), this._evaluate$_stackTrace$0()));
  55950. } else
  55951. throw exception;
  55952. }
  55953. },
  55954. _addErrorSpan$2: function(nodeWithSpan, callback) {
  55955. return this._addErrorSpan$1$2(nodeWithSpan, callback, type$.dynamic);
  55956. }
  55957. };
  55958. R._EvaluateVisitor_closure.prototype = {
  55959. call$1: function($arguments) {
  55960. var module, t2,
  55961. t1 = J.getInterceptor$asx($arguments),
  55962. variable = t1.$index($arguments, 0).assertString$1("name");
  55963. t1 = t1.$index($arguments, 1).get$realNull();
  55964. module = t1 == null ? null : t1.assertString$1("module");
  55965. t1 = this.$this._evaluate$_environment;
  55966. t2 = variable.text;
  55967. t2.toString;
  55968. t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
  55969. return t1.globalVariableExists$2$namespace(t2, module == null ? null : module.text) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  55970. },
  55971. $signature: 13
  55972. };
  55973. R._EvaluateVisitor_closure0.prototype = {
  55974. call$1: function($arguments) {
  55975. var variable = J.$index$asx($arguments, 0).assertString$1("name"),
  55976. t1 = this.$this._evaluate$_environment,
  55977. t2 = variable.text;
  55978. t2.toString;
  55979. return t1.getVariable$1(H.stringReplaceAllUnchecked(t2, "_", "-")) != null ? C.SassBoolean_true0 : C.SassBoolean_false0;
  55980. },
  55981. $signature: 13
  55982. };
  55983. R._EvaluateVisitor_closure1.prototype = {
  55984. call$1: function($arguments) {
  55985. var module, t2, t3, t4,
  55986. t1 = J.getInterceptor$asx($arguments),
  55987. variable = t1.$index($arguments, 0).assertString$1("name");
  55988. t1 = t1.$index($arguments, 1).get$realNull();
  55989. module = t1 == null ? null : t1.assertString$1("module");
  55990. t1 = this.$this;
  55991. t2 = t1._evaluate$_environment;
  55992. t3 = variable.text;
  55993. t3.toString;
  55994. t4 = H.stringReplaceAllUnchecked(t3, "_", "-");
  55995. return t2.getFunction$2$namespace(t4, module == null ? null : module.text) != null || t1._builtInFunctions.containsKey$1(t3) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  55996. },
  55997. $signature: 13
  55998. };
  55999. R._EvaluateVisitor_closure2.prototype = {
  56000. call$1: function($arguments) {
  56001. var module, t2,
  56002. t1 = J.getInterceptor$asx($arguments),
  56003. variable = t1.$index($arguments, 0).assertString$1("name");
  56004. t1 = t1.$index($arguments, 1).get$realNull();
  56005. module = t1 == null ? null : t1.assertString$1("module");
  56006. t1 = this.$this._evaluate$_environment;
  56007. t2 = variable.text;
  56008. t2.toString;
  56009. t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
  56010. return t1.getMixin$2$namespace(t2, module == null ? null : module.text) != null ? C.SassBoolean_true0 : C.SassBoolean_false0;
  56011. },
  56012. $signature: 13
  56013. };
  56014. R._EvaluateVisitor_closure3.prototype = {
  56015. call$1: function($arguments) {
  56016. var t1 = this.$this._evaluate$_environment;
  56017. if (!t1._inMixin)
  56018. throw H.wrapException(E.SassScriptException$("content-exists() may only be called within a mixin."));
  56019. return t1._content != null ? C.SassBoolean_true0 : C.SassBoolean_false0;
  56020. },
  56021. $signature: 13
  56022. };
  56023. R._EvaluateVisitor_closure4.prototype = {
  56024. call$1: function($arguments) {
  56025. var t2, t3, t4,
  56026. t1 = J.$index$asx($arguments, 0).assertString$1("module").text,
  56027. module = this.$this._evaluate$_environment._environment$_modules.$index(0, t1);
  56028. if (module == null)
  56029. throw H.wrapException('There is no module with namespace "' + H.S(t1) + '".');
  56030. t1 = type$.Value;
  56031. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  56032. for (t3 = module.get$variables().get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  56033. t4 = t3.get$current(t3);
  56034. t2.$indexSet(0, new D.SassString(t4.key, true), t4.value);
  56035. }
  56036. return new A.SassMap(H.ConstantMap_ConstantMap$from(t2, t1, t1));
  56037. },
  56038. $signature: 30
  56039. };
  56040. R._EvaluateVisitor_closure5.prototype = {
  56041. call$1: function($arguments) {
  56042. var t2, t3, t4,
  56043. t1 = J.$index$asx($arguments, 0).assertString$1("module").text,
  56044. module = this.$this._evaluate$_environment._environment$_modules.$index(0, t1);
  56045. if (module == null)
  56046. throw H.wrapException('There is no module with namespace "' + H.S(t1) + '".');
  56047. t1 = type$.Value;
  56048. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  56049. for (t3 = module.get$functions(module).get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  56050. t4 = t3.get$current(t3);
  56051. t2.$indexSet(0, new D.SassString(t4.key, true), new F.SassFunction(t4.value));
  56052. }
  56053. return new A.SassMap(H.ConstantMap_ConstantMap$from(t2, t1, t1));
  56054. },
  56055. $signature: 30
  56056. };
  56057. R._EvaluateVisitor_closure6.prototype = {
  56058. call$1: function($arguments) {
  56059. var module, callable,
  56060. t1 = J.getInterceptor$asx($arguments),
  56061. $name = t1.$index($arguments, 0).assertString$1("name"),
  56062. css = t1.$index($arguments, 1).get$isTruthy();
  56063. t1 = t1.$index($arguments, 2).get$realNull();
  56064. module = t1 == null ? null : t1.assertString$1("module");
  56065. if (css && module != null)
  56066. throw H.wrapException("$css and $module may not both be passed at once.");
  56067. if (css)
  56068. callable = new L.PlainCssCallable($name.text);
  56069. else {
  56070. t1 = this.$this;
  56071. callable = t1._addExceptionSpan$2(t1._callableNode, new R._EvaluateVisitor__closure3(t1, $name, module));
  56072. }
  56073. if (callable != null)
  56074. return new F.SassFunction(callable);
  56075. throw H.wrapException("Function not found: " + $name.toString$0(0));
  56076. },
  56077. $signature: 73
  56078. };
  56079. R._EvaluateVisitor__closure3.prototype = {
  56080. call$0: function() {
  56081. var t2,
  56082. t1 = this.name.text;
  56083. t1.toString;
  56084. t1 = H.stringReplaceAllUnchecked(t1, "_", "-");
  56085. t2 = this.module;
  56086. t2 = t2 == null ? null : t2.text;
  56087. return this.$this._getFunction$2$namespace(t1, t2);
  56088. },
  56089. $signature: 57
  56090. };
  56091. R._EvaluateVisitor_closure7.prototype = {
  56092. call$1: function($arguments) {
  56093. var t2, t3, t4, t5, t6, t7, invocation, callable,
  56094. t1 = J.getInterceptor$asx($arguments),
  56095. $function = t1.$index($arguments, 0),
  56096. args = type$.SassArgumentList._as(t1.$index($arguments, 1));
  56097. t1 = H.setRuntimeTypeInfo([], type$.JSArray_Expression);
  56098. t2 = type$.String;
  56099. t3 = this.$this;
  56100. t4 = t3._callableNode.get$span();
  56101. t5 = t3._callableNode.get$span();
  56102. args._wereKeywordsAccessed = true;
  56103. t6 = args._keywords;
  56104. if (t6.get$isEmpty(t6))
  56105. t6 = null;
  56106. else {
  56107. args._wereKeywordsAccessed = true;
  56108. t7 = type$.Value;
  56109. t7 = new F.ValueExpression(new A.SassMap(H.ConstantMap_ConstantMap$from(Y.mapMap(t6, new R._EvaluateVisitor__closure1(), new R._EvaluateVisitor__closure2(), t2, t7, t7, t7), t7, t7)), t3._callableNode.get$span());
  56110. t6 = t7;
  56111. }
  56112. invocation = X.ArgumentInvocation$(t1, P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.Expression), t4, t6, new F.ValueExpression(args, t5));
  56113. if ($function instanceof D.SassString) {
  56114. N.warn("Passing a string to call() is deprecated and will be illegal\nin Dart Sass 2.0.0. Use call(get-function(" + $function.toString$0(0) + ")) instead.", true);
  56115. return t3.visitFunctionExpression$1(new F.FunctionExpression(null, X.Interpolation$([$function.text], t3._callableNode.get$span()), invocation, t3._callableNode.get$span()));
  56116. }
  56117. callable = $function.assertFunction$1("function").callable;
  56118. if (type$.Callable._is(callable))
  56119. return t3._runFunctionCallable$3(invocation, callable, t3._callableNode);
  56120. else
  56121. throw H.wrapException(E.SassScriptException$("The function " + H.S(callable.get$name()) + " is asynchronous.\nThis is probably caused by a bug in a Sass plugin."));
  56122. },
  56123. $signature: 4
  56124. };
  56125. R._EvaluateVisitor__closure1.prototype = {
  56126. call$2: function(key, _) {
  56127. return new D.SassString(key, false);
  56128. }
  56129. };
  56130. R._EvaluateVisitor__closure2.prototype = {
  56131. call$2: function(_, value) {
  56132. return value;
  56133. }
  56134. };
  56135. R._EvaluateVisitor_closure8.prototype = {
  56136. call$1: function($arguments) {
  56137. var withMap, values, configuration, t2, t3, _null = null,
  56138. t1 = J.getInterceptor$asx($arguments),
  56139. url = P.Uri_parse(t1.$index($arguments, 0).assertString$1("module").text);
  56140. t1 = t1.$index($arguments, 1).get$realNull();
  56141. t1 = t1 == null ? _null : t1.assertMap$1("with");
  56142. withMap = t1 == null ? _null : t1.contents;
  56143. if (withMap != null) {
  56144. values = P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue);
  56145. t1 = this.$this;
  56146. withMap.forEach$1(0, new R._EvaluateVisitor__closure(values, t1._callableNode.get$span()));
  56147. configuration = new A.Configuration(values, t1._callableNode, false);
  56148. } else
  56149. configuration = C.Configuration_Map_empty_null_true;
  56150. t1 = this.$this;
  56151. t2 = t1._callableNode;
  56152. t3 = t2.get$span();
  56153. t3 = t3 == null ? _null : t3.file.url;
  56154. t1._loadModule$7$baseUrl$configuration$namesInErrors(url, "load-css()", t2, new R._EvaluateVisitor__closure0(t1), t3, configuration, true);
  56155. t1._assertConfigurationIsEmpty$2$nameInError(configuration, true);
  56156. return _null;
  56157. },
  56158. $signature: 59
  56159. };
  56160. R._EvaluateVisitor__closure.prototype = {
  56161. call$2: function(variable, value) {
  56162. var $name,
  56163. t1 = variable.assertString$1("with key").text;
  56164. t1.toString;
  56165. $name = H.stringReplaceAllUnchecked(t1, "_", "-");
  56166. t1 = this.values;
  56167. if (t1.containsKey$1($name))
  56168. throw H.wrapException("The variable $" + $name + " was configured twice.");
  56169. t1.$indexSet(0, $name, new Z.ConfiguredValue(value, this.span, null));
  56170. }
  56171. };
  56172. R._EvaluateVisitor__closure0.prototype = {
  56173. call$1: function(module) {
  56174. var t1 = this.$this;
  56175. return t1._combineCss$2$clone(module, true).accept$1(t1);
  56176. }
  56177. };
  56178. R._EvaluateVisitor_run_closure.prototype = {
  56179. call$0: function() {
  56180. var _this = this,
  56181. t1 = _this.node,
  56182. t2 = t1.span,
  56183. url = t2 == null ? null : t2.file.url;
  56184. if (url != null)
  56185. _this.$this._activeModules.$indexSet(0, url, null);
  56186. t2 = _this.$this;
  56187. return new E.EvaluateResult(t2._combineCss$1(t2._execute$2(_this.importer, t1)));
  56188. },
  56189. $signature: 134
  56190. };
  56191. R._EvaluateVisitor_runExpression_closure.prototype = {
  56192. call$0: function() {
  56193. var t1 = this.$this,
  56194. t2 = this.expression;
  56195. return t1._withFakeStylesheet$3(this.importer, t2, new R._EvaluateVisitor_runExpression__closure(t1, t2));
  56196. },
  56197. $signature: 9
  56198. };
  56199. R._EvaluateVisitor_runExpression__closure.prototype = {
  56200. call$0: function() {
  56201. return this.expression.accept$1(this.$this);
  56202. },
  56203. $signature: 9
  56204. };
  56205. R._EvaluateVisitor_runStatement_closure.prototype = {
  56206. call$0: function() {
  56207. var t1 = this.$this,
  56208. t2 = this.statement;
  56209. return t1._withFakeStylesheet$3(this.importer, t2, new R._EvaluateVisitor_runStatement__closure(t1, t2));
  56210. },
  56211. $signature: 1
  56212. };
  56213. R._EvaluateVisitor_runStatement__closure.prototype = {
  56214. call$0: function() {
  56215. return this.statement.accept$1(this.$this);
  56216. },
  56217. $signature: 1
  56218. };
  56219. R._EvaluateVisitor__withWarnCallback_closure.prototype = {
  56220. call$2: function(message, deprecation) {
  56221. var t1 = this.$this,
  56222. t2 = t1._importSpan;
  56223. return t1._warn$3$deprecation(message, t2 == null ? t1._callableNode.get$span() : t2, deprecation);
  56224. },
  56225. "call*": "call$2",
  56226. $requiredArgCount: 2
  56227. };
  56228. R._EvaluateVisitor__loadModule_closure.prototype = {
  56229. call$0: function() {
  56230. var module, error, error0, error1, error2, message, previousLoad, exception, _this = this,
  56231. t1 = _this.$this,
  56232. t2 = _this.nodeWithSpan,
  56233. result = t1._loadStylesheet$3$baseUrl(J.toString$0$(_this.url), t2.get$span(), _this.baseUrl),
  56234. importer = result.item1,
  56235. stylesheet = result.item2,
  56236. canonicalUrl = stylesheet.span.file.url,
  56237. t3 = t1._activeModules;
  56238. if (t3.containsKey$1(canonicalUrl)) {
  56239. message = _this.namesInErrors ? "Module loop: " + H.S($.$get$context().prettyUri$1(canonicalUrl)) + " is already being loaded." : "Module loop: this module is already being loaded.";
  56240. previousLoad = t3.$index(0, canonicalUrl);
  56241. throw H.wrapException(previousLoad == null ? t1._evaluate$_exception$1(message) : t1._multiSpanException$3(message, "new load", P.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(), "original load"], type$.FileSpan, type$.String)));
  56242. }
  56243. t3.$indexSet(0, canonicalUrl, t2);
  56244. module = null;
  56245. try {
  56246. module = t1._execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, _this.configuration, _this.namesInErrors, t2);
  56247. } finally {
  56248. t3.remove$1(0, canonicalUrl);
  56249. }
  56250. try {
  56251. _this.callback.call$1(module);
  56252. } catch (exception) {
  56253. t2 = H.unwrapException(exception);
  56254. if (type$.SassRuntimeException._is(t2))
  56255. throw exception;
  56256. else if (t2 instanceof E.MultiSpanSassException) {
  56257. error = t2;
  56258. throw H.wrapException(E.MultiSpanSassRuntimeException$(error._span_exception$_message, error.get$span(), error.primaryLabel, error.secondarySpans, t1._evaluate$_stackTrace$1(error.get$span())));
  56259. } else if (t2 instanceof E.SassException) {
  56260. error0 = t2;
  56261. throw H.wrapException(t1._evaluate$_exception$2(error0._span_exception$_message, error0.get$span()));
  56262. } else if (t2 instanceof E.MultiSpanSassScriptException) {
  56263. error1 = t2;
  56264. throw H.wrapException(t1._multiSpanException$3(error1.message, error1.primaryLabel, error1.secondarySpans));
  56265. } else if (t2 instanceof E.SassScriptException) {
  56266. error2 = t2;
  56267. throw H.wrapException(t1._evaluate$_exception$1(error2.message));
  56268. } else
  56269. throw exception;
  56270. }
  56271. },
  56272. $signature: 0
  56273. };
  56274. R._EvaluateVisitor__execute_closure.prototype = {
  56275. call$0: function() {
  56276. var t2, t3, t4, css, _this = this,
  56277. t1 = _this.$this,
  56278. oldImporter = t1._importer,
  56279. oldStylesheet = t1._stylesheet,
  56280. oldRoot = t1._root,
  56281. oldParent = t1._evaluate$_parent,
  56282. oldEndOfImports = t1._endOfImports,
  56283. oldOutOfOrderImports = t1._outOfOrderImports,
  56284. oldExtender = t1._extender,
  56285. oldStyleRule = t1._styleRule,
  56286. oldMediaQueries = t1._mediaQueries,
  56287. oldDeclarationName = t1._declarationName,
  56288. oldInUnknownAtRule = t1._inUnknownAtRule,
  56289. oldAtRootExcludingStyleRule = t1._atRootExcludingStyleRule,
  56290. oldInKeyframes = t1._inKeyframes,
  56291. oldConfiguration = t1._configuration;
  56292. t1._importer = _this.importer;
  56293. t2 = t1._stylesheet = _this.stylesheet;
  56294. t3 = t2.span;
  56295. t4 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
  56296. t1._evaluate$_parent = t1._root = new V.ModifiableCssStylesheet(t3, new P.UnmodifiableListView(t4, type$.UnmodifiableListView_ModifiableCssNode), t4);
  56297. t1._endOfImports = 0;
  56298. t1._outOfOrderImports = null;
  56299. t1._extender = _this.extender;
  56300. t1._declarationName = t1._mediaQueries = t1._styleRule = null;
  56301. t1._inKeyframes = t1._atRootExcludingStyleRule = t1._inUnknownAtRule = false;
  56302. t4 = _this.configuration;
  56303. if (t4 != null)
  56304. t1._configuration = t4;
  56305. t1.visitStylesheet$1(t2);
  56306. css = t1._outOfOrderImports == null ? t1._root : new V.CssStylesheet(new P.UnmodifiableListView(t1._addOutOfOrderImports$0(), type$.UnmodifiableListView_CssNode), t3);
  56307. _this._box_0.css = css;
  56308. t1._importer = oldImporter;
  56309. t1._stylesheet = oldStylesheet;
  56310. t1._root = oldRoot;
  56311. t1._evaluate$_parent = oldParent;
  56312. t1._endOfImports = oldEndOfImports;
  56313. t1._outOfOrderImports = oldOutOfOrderImports;
  56314. t1._extender = oldExtender;
  56315. t1._styleRule = oldStyleRule;
  56316. t1._mediaQueries = oldMediaQueries;
  56317. t1._declarationName = oldDeclarationName;
  56318. t1._inUnknownAtRule = oldInUnknownAtRule;
  56319. t1._atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  56320. t1._inKeyframes = oldInKeyframes;
  56321. t1._configuration = oldConfiguration;
  56322. },
  56323. $signature: 0
  56324. };
  56325. R._EvaluateVisitor__combineCss_closure.prototype = {
  56326. call$1: function(module) {
  56327. return module.get$transitivelyContainsCss();
  56328. }
  56329. };
  56330. R._EvaluateVisitor__combineCss_closure0.prototype = {
  56331. call$1: function(target) {
  56332. return !this.selectors.contains$1(0, target);
  56333. }
  56334. };
  56335. R._EvaluateVisitor__combineCss_closure1.prototype = {
  56336. call$1: function(module) {
  56337. return module.cloneCss$0();
  56338. }
  56339. };
  56340. R._EvaluateVisitor__extendModules_closure.prototype = {
  56341. call$1: function(target) {
  56342. return !this.originalSelectors.contains$1(0, target);
  56343. }
  56344. };
  56345. R._EvaluateVisitor__extendModules_closure0.prototype = {
  56346. call$0: function() {
  56347. return H.setRuntimeTypeInfo([], type$.JSArray_Extender);
  56348. },
  56349. $signature: 74
  56350. };
  56351. R._EvaluateVisitor__topologicalModules_visitModule.prototype = {
  56352. call$1: function(module) {
  56353. var t1, t2, t3, _i, upstream;
  56354. for (t1 = module.get$upstream(), t2 = t1.length, t3 = this.seen, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  56355. upstream = t1[_i];
  56356. if (upstream.get$transitivelyContainsCss() && t3.add$1(0, upstream))
  56357. this.call$1(upstream);
  56358. }
  56359. this.sorted.addFirst$1(module);
  56360. }
  56361. };
  56362. R._EvaluateVisitor_visitAtRootRule_closure.prototype = {
  56363. call$0: function() {
  56364. var t1 = S.SpanScanner$(this.resolved, null);
  56365. return new V.AtRootQueryParser(t1, this.$this._evaluate$_logger).parse$0();
  56366. },
  56367. $signature: 63
  56368. };
  56369. R._EvaluateVisitor_visitAtRootRule_closure0.prototype = {
  56370. call$0: function() {
  56371. var t1, t2, t3, _i;
  56372. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  56373. t1[_i].accept$1(t3);
  56374. },
  56375. $signature: 0
  56376. };
  56377. R._EvaluateVisitor_visitAtRootRule_closure1.prototype = {
  56378. call$0: function() {
  56379. var t1, t2, t3, _i;
  56380. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  56381. t1[_i].accept$1(t3);
  56382. },
  56383. "call*": "call$0",
  56384. $requiredArgCount: 0,
  56385. $signature: 0
  56386. };
  56387. R._EvaluateVisitor__scopeForAtRoot_closure.prototype = {
  56388. call$1: function(callback) {
  56389. var t1 = this.$this,
  56390. oldParent = t1._evaluate$_parent;
  56391. t1._evaluate$_parent = this.newParent;
  56392. t1._evaluate$_environment.scope$1$2$when(callback, this.node.hasDeclarations, type$.void);
  56393. t1._evaluate$_parent = oldParent;
  56394. }
  56395. };
  56396. R._EvaluateVisitor__scopeForAtRoot_closure0.prototype = {
  56397. call$1: function(callback) {
  56398. var t1 = this.$this,
  56399. oldAtRootExcludingStyleRule = t1._atRootExcludingStyleRule;
  56400. t1._atRootExcludingStyleRule = true;
  56401. this.innerScope.call$1(callback);
  56402. t1._atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  56403. }
  56404. };
  56405. R._EvaluateVisitor__scopeForAtRoot_closure1.prototype = {
  56406. call$1: function(callback) {
  56407. return this.$this._withMediaQueries$2(null, new R._EvaluateVisitor__scopeForAtRoot__closure(this.innerScope, callback));
  56408. }
  56409. };
  56410. R._EvaluateVisitor__scopeForAtRoot__closure.prototype = {
  56411. call$0: function() {
  56412. return this.innerScope.call$1(this.callback);
  56413. },
  56414. $signature: 0
  56415. };
  56416. R._EvaluateVisitor__scopeForAtRoot_closure2.prototype = {
  56417. call$1: function(callback) {
  56418. var t1 = this.$this,
  56419. wasInKeyframes = t1._inKeyframes;
  56420. t1._inKeyframes = false;
  56421. this.innerScope.call$1(callback);
  56422. t1._inKeyframes = wasInKeyframes;
  56423. }
  56424. };
  56425. R._EvaluateVisitor__scopeForAtRoot_closure3.prototype = {
  56426. call$1: function($parent) {
  56427. return type$.CssAtRule._is($parent);
  56428. }
  56429. };
  56430. R._EvaluateVisitor__scopeForAtRoot_closure4.prototype = {
  56431. call$1: function(callback) {
  56432. var t1 = this.$this,
  56433. wasInUnknownAtRule = t1._inUnknownAtRule;
  56434. t1._inUnknownAtRule = false;
  56435. this.innerScope.call$1(callback);
  56436. t1._inUnknownAtRule = wasInUnknownAtRule;
  56437. }
  56438. };
  56439. R._EvaluateVisitor_visitContentRule_closure.prototype = {
  56440. call$0: function() {
  56441. var t1, t2, t3, _i;
  56442. for (t1 = this.content.declaration.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  56443. t1[_i].accept$1(t3);
  56444. return null;
  56445. },
  56446. $signature: 0
  56447. };
  56448. R._EvaluateVisitor_visitDeclaration_closure.prototype = {
  56449. call$0: function() {
  56450. var t1, t2, t3, _i;
  56451. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  56452. t1[_i].accept$1(t3);
  56453. },
  56454. $signature: 0
  56455. };
  56456. R._EvaluateVisitor_visitEachRule_closure.prototype = {
  56457. call$1: function(value) {
  56458. return this.$this._evaluate$_environment.setLocalVariable$3(C.JSArray_methods.get$first(this.node.variables), value.withoutSlash$0(), this.nodeWithSpan);
  56459. }
  56460. };
  56461. R._EvaluateVisitor_visitEachRule_closure0.prototype = {
  56462. call$1: function(value) {
  56463. return this.$this._setMultipleVariables$3(this.node.variables, value, this.nodeWithSpan);
  56464. }
  56465. };
  56466. R._EvaluateVisitor_visitEachRule_closure1.prototype = {
  56467. call$0: function() {
  56468. var _this = this,
  56469. t1 = _this.$this;
  56470. return t1._handleReturn$2(_this.list.get$asList(), new R._EvaluateVisitor_visitEachRule__closure(t1, _this.setVariables, _this.node));
  56471. },
  56472. $signature: 9
  56473. };
  56474. R._EvaluateVisitor_visitEachRule__closure.prototype = {
  56475. call$1: function(element) {
  56476. var t1;
  56477. this.setVariables.call$1(element);
  56478. t1 = this.$this;
  56479. return t1._handleReturn$2(this.node.children, new R._EvaluateVisitor_visitEachRule___closure(t1));
  56480. }
  56481. };
  56482. R._EvaluateVisitor_visitEachRule___closure.prototype = {
  56483. call$1: function(child) {
  56484. return child.accept$1(this.$this);
  56485. }
  56486. };
  56487. R._EvaluateVisitor_visitExtendRule_closure.prototype = {
  56488. call$0: function() {
  56489. return D.SelectorList_SelectorList$parse(B.trimAscii(this.targetText.value, true), false, true, this.$this._evaluate$_logger);
  56490. },
  56491. $signature: 31
  56492. };
  56493. R._EvaluateVisitor_visitAtRule_closure.prototype = {
  56494. call$0: function() {
  56495. var t3, _i,
  56496. t1 = this.$this,
  56497. t2 = t1._styleRule;
  56498. if (!(t2 != null && !t1._atRootExcludingStyleRule) || t1._inKeyframes)
  56499. for (t2 = this.node.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
  56500. t2[_i].accept$1(t1);
  56501. else
  56502. t1._withParent$2$3$scopeWhen(X.ModifiableCssStyleRule$(t2.selector, t2.span, t2.originalSelector), new R._EvaluateVisitor_visitAtRule__closure(t1, this.node), false, type$.ModifiableCssStyleRule, type$.Null);
  56503. },
  56504. $signature: 0
  56505. };
  56506. R._EvaluateVisitor_visitAtRule__closure.prototype = {
  56507. call$0: function() {
  56508. var t1, t2, t3, _i;
  56509. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  56510. t1[_i].accept$1(t3);
  56511. },
  56512. $signature: 0
  56513. };
  56514. R._EvaluateVisitor_visitAtRule_closure0.prototype = {
  56515. call$1: function(node) {
  56516. return type$.CssStyleRule._is(node);
  56517. }
  56518. };
  56519. R._EvaluateVisitor_visitForRule_closure.prototype = {
  56520. call$0: function() {
  56521. return this.node.from.accept$1(this.$this).assertNumber$0();
  56522. },
  56523. $signature: 77
  56524. };
  56525. R._EvaluateVisitor_visitForRule_closure0.prototype = {
  56526. call$0: function() {
  56527. return this.node.to.accept$1(this.$this).assertNumber$0();
  56528. },
  56529. $signature: 77
  56530. };
  56531. R._EvaluateVisitor_visitForRule_closure1.prototype = {
  56532. call$0: function() {
  56533. var t1 = this.toNumber,
  56534. t2 = t1.numeratorUnits;
  56535. t1 = t1.denominatorUnits;
  56536. return T.SassNumber$withUnits(this.fromNumber.valueInUnits$2(t2, t1), t1, t2).assertInt$0();
  56537. },
  56538. $signature: 8
  56539. };
  56540. R._EvaluateVisitor_visitForRule_closure2.prototype = {
  56541. call$0: function() {
  56542. return this.toNumber.assertInt$0();
  56543. },
  56544. $signature: 8
  56545. };
  56546. R._EvaluateVisitor_visitForRule_closure3.prototype = {
  56547. call$0: function() {
  56548. var i, t3, t4, t5, t6, result, _this = this,
  56549. t1 = _this.$this,
  56550. t2 = _this.node,
  56551. nodeWithSpan = t1._expressionNode$1(t2.from);
  56552. for (i = _this.from, t3 = _this._box_0, t4 = _this.direction, t5 = t2.children, t2 = t2.variable; i !== t3.to; i += t4) {
  56553. t6 = t1._evaluate$_environment;
  56554. t6.setLocalVariable$3(t2, new T.SassNumber(i, C.List_empty, C.List_empty, null), nodeWithSpan);
  56555. result = t1._handleReturn$2(t5, new R._EvaluateVisitor_visitForRule__closure(t1));
  56556. if (result != null)
  56557. return result;
  56558. }
  56559. return null;
  56560. },
  56561. $signature: 9
  56562. };
  56563. R._EvaluateVisitor_visitForRule__closure.prototype = {
  56564. call$1: function(child) {
  56565. return child.accept$1(this.$this);
  56566. }
  56567. };
  56568. R._EvaluateVisitor_visitForwardRule_closure.prototype = {
  56569. call$1: function(module) {
  56570. this.$this._evaluate$_environment.forwardModule$2(module, this.node);
  56571. }
  56572. };
  56573. R._EvaluateVisitor_visitForwardRule_closure0.prototype = {
  56574. call$1: function(module) {
  56575. this.$this._evaluate$_environment.forwardModule$2(module, this.node);
  56576. }
  56577. };
  56578. R._EvaluateVisitor__assertConfigurationIsEmpty_closure.prototype = {
  56579. call$2: function($name, value) {
  56580. var t1 = this.only;
  56581. if (t1 != null && !t1.contains$1(0, $name))
  56582. return;
  56583. t1 = this.nameInError ? "$" + H.S($name) + " was not declared with !default in the @used module." : "This variable was not declared with !default in the @used module.";
  56584. throw H.wrapException(this.$this._evaluate$_exception$2(t1, value.configurationSpan));
  56585. }
  56586. };
  56587. R._EvaluateVisitor_visitIfRule_closure.prototype = {
  56588. call$0: function() {
  56589. var t1 = this.$this;
  56590. return t1._handleReturn$2(this._box_0.clause.children, new R._EvaluateVisitor_visitIfRule__closure(t1));
  56591. },
  56592. $signature: 9
  56593. };
  56594. R._EvaluateVisitor_visitIfRule__closure.prototype = {
  56595. call$1: function(child) {
  56596. return child.accept$1(this.$this);
  56597. }
  56598. };
  56599. R._EvaluateVisitor__visitDynamicImport_closure.prototype = {
  56600. call$0: function() {
  56601. var previousLoad, oldImporter, oldStylesheet, t4, t5, t6, t7, t8, t9, t10, t11, environment, module, visitor, _null = null,
  56602. _s34_ = "This file is already being loaded.",
  56603. _box_0 = {},
  56604. t1 = this.$this,
  56605. t2 = this.$import,
  56606. result = t1._loadStylesheet$3$forImport(t2.url, t2.span, true),
  56607. importer = result.item1,
  56608. stylesheet = result.item2,
  56609. url = stylesheet.span.file.url,
  56610. t3 = t1._activeModules;
  56611. if (t3.containsKey$1(url)) {
  56612. previousLoad = t3.$index(0, url);
  56613. throw H.wrapException(previousLoad == null ? t1._evaluate$_exception$1(_s34_) : t1._multiSpanException$3(_s34_, "new load", P.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(), "original load"], type$.FileSpan, type$.String)));
  56614. }
  56615. t3.$indexSet(0, url, t2);
  56616. t2 = new P.UnmodifiableListView(stylesheet._uses, type$.UnmodifiableListView_UseRule);
  56617. if (t2.get$length(t2) === 0) {
  56618. t2 = new P.UnmodifiableListView(stylesheet._forwards, type$.UnmodifiableListView_ForwardRule);
  56619. t2 = t2.get$length(t2) === 0;
  56620. } else
  56621. t2 = false;
  56622. if (t2) {
  56623. oldImporter = t1._importer;
  56624. oldStylesheet = t1._stylesheet;
  56625. t1._importer = importer;
  56626. t1._stylesheet = stylesheet;
  56627. t1.visitStylesheet$1(stylesheet);
  56628. t1._importer = oldImporter;
  56629. t1._stylesheet = oldStylesheet;
  56630. t3.remove$1(0, url);
  56631. return;
  56632. }
  56633. _box_0.children = null;
  56634. t2 = t1._evaluate$_environment;
  56635. t4 = type$.String;
  56636. t5 = type$.Module_Callable;
  56637. t6 = type$.AstNode;
  56638. t7 = H.setRuntimeTypeInfo([], type$.JSArray_Module_Callable);
  56639. t8 = t2._variables;
  56640. t8 = H.setRuntimeTypeInfo(t8.slice(0), H._arrayInstanceType(t8));
  56641. t9 = t2._variableNodes;
  56642. if (t9 == null)
  56643. t9 = _null;
  56644. else
  56645. t9 = H.setRuntimeTypeInfo(t9.slice(0), H._arrayInstanceType(t9));
  56646. t10 = t2._functions;
  56647. t10 = H.setRuntimeTypeInfo(t10.slice(0), H._arrayInstanceType(t10));
  56648. t11 = t2._mixins;
  56649. t11 = H.setRuntimeTypeInfo(t11.slice(0), H._arrayInstanceType(t11));
  56650. environment = O.Environment$_(P.LinkedHashMap_LinkedHashMap$_empty(t4, t5), P.LinkedHashMap_LinkedHashMap$_empty(t4, t6), P.LinkedHashSet_LinkedHashSet$_empty(t5), P.LinkedHashMap_LinkedHashMap$_empty(t5, t6), _null, _null, _null, t7, t8, t9, t10, t11, t2._content);
  56651. t1._withEnvironment$2(environment, new R._EvaluateVisitor__visitDynamicImport__closure(_box_0, t1, importer, stylesheet, environment));
  56652. module = O._EnvironmentModule__EnvironmentModule(environment, new V.CssStylesheet(new P.UnmodifiableListView(C.List_empty0, type$.UnmodifiableListView_CssNode), Y.SourceFile$decoded(C.List_empty1, "<dummy module>").span$1(0)), C.C_EmptyExtender, environment._forwardedModules);
  56653. t1._evaluate$_environment.importForwards$1(module);
  56654. if (module.transitivelyContainsCss)
  56655. t1._combineCss$2$clone(module, module.transitivelyContainsExtensions).accept$1(t1);
  56656. visitor = new R._ImportedCssVisitor(t1);
  56657. for (t1 = J.get$iterator$ax(_box_0.children); t1.moveNext$0();)
  56658. t1.get$current(t1).accept$1(visitor);
  56659. t3.remove$1(0, url);
  56660. },
  56661. $signature: 0
  56662. };
  56663. R._EvaluateVisitor__visitDynamicImport__closure.prototype = {
  56664. call$0: function() {
  56665. var t2, t3, _this = this,
  56666. t1 = _this.$this,
  56667. oldImporter = t1._importer,
  56668. oldStylesheet = t1._stylesheet,
  56669. oldRoot = t1._root,
  56670. oldParent = t1._evaluate$_parent,
  56671. oldEndOfImports = t1._endOfImports,
  56672. oldOutOfOrderImports = t1._outOfOrderImports,
  56673. oldConfiguration = t1._configuration;
  56674. t1._importer = _this.importer;
  56675. t2 = t1._stylesheet = _this.stylesheet;
  56676. t3 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
  56677. t1._evaluate$_parent = t1._root = new V.ModifiableCssStylesheet(t2.span, new P.UnmodifiableListView(t3, type$.UnmodifiableListView_ModifiableCssNode), t3);
  56678. t1._endOfImports = 0;
  56679. t1._outOfOrderImports = null;
  56680. t3 = new P.UnmodifiableListView(t2._forwards, type$.UnmodifiableListView_ForwardRule);
  56681. if (!t3.get$isEmpty(t3))
  56682. t1._configuration = _this.environment.toImplicitConfiguration$0();
  56683. t1.visitStylesheet$1(t2);
  56684. _this._box_0.children = t1._addOutOfOrderImports$0();
  56685. t1._importer = oldImporter;
  56686. t1._stylesheet = oldStylesheet;
  56687. t1._root = oldRoot;
  56688. t1._evaluate$_parent = oldParent;
  56689. t1._endOfImports = oldEndOfImports;
  56690. t1._outOfOrderImports = oldOutOfOrderImports;
  56691. t1._configuration = oldConfiguration;
  56692. },
  56693. $signature: 0
  56694. };
  56695. R._EvaluateVisitor_visitIncludeRule_closure.prototype = {
  56696. call$0: function() {
  56697. var t1 = this.node;
  56698. return this.$this._evaluate$_environment.getMixin$2$namespace(t1.name, t1.namespace);
  56699. },
  56700. $signature: 57
  56701. };
  56702. R._EvaluateVisitor_visitIncludeRule_closure0.prototype = {
  56703. call$0: function() {
  56704. return this.node.get$spanWithoutContent();
  56705. },
  56706. "call*": "call$0",
  56707. $requiredArgCount: 0,
  56708. $signature: 24
  56709. };
  56710. R._EvaluateVisitor_visitIncludeRule_closure1.prototype = {
  56711. call$0: function() {
  56712. var _this = this,
  56713. t1 = _this.$this,
  56714. t2 = t1._evaluate$_environment,
  56715. oldContent = t2._content;
  56716. t2._content = _this.contentCallable;
  56717. new R._EvaluateVisitor_visitIncludeRule__closure(t1, _this.mixin, _this.nodeWithSpan).call$0();
  56718. t2._content = oldContent;
  56719. return null;
  56720. },
  56721. $signature: 0
  56722. };
  56723. R._EvaluateVisitor_visitIncludeRule__closure.prototype = {
  56724. call$0: function() {
  56725. var t1 = this.$this,
  56726. t2 = t1._evaluate$_environment,
  56727. oldInMixin = t2._inMixin;
  56728. t2._inMixin = true;
  56729. new R._EvaluateVisitor_visitIncludeRule___closure(t1, this.mixin, this.nodeWithSpan).call$0();
  56730. t2._inMixin = oldInMixin;
  56731. return null;
  56732. },
  56733. $signature: 0
  56734. };
  56735. R._EvaluateVisitor_visitIncludeRule___closure.prototype = {
  56736. call$0: function() {
  56737. var t1, t2, t3, t4, _i;
  56738. for (t1 = this.mixin.declaration.children, t2 = t1.length, t3 = this.$this, t4 = this.nodeWithSpan, _i = 0; _i < t2; ++_i)
  56739. t3._addErrorSpan$2(t4, new R._EvaluateVisitor_visitIncludeRule____closure(t3, t1[_i]));
  56740. },
  56741. $signature: 0
  56742. };
  56743. R._EvaluateVisitor_visitIncludeRule____closure.prototype = {
  56744. call$0: function() {
  56745. return this.statement.accept$1(this.$this);
  56746. },
  56747. $signature: 9
  56748. };
  56749. R._EvaluateVisitor_visitMediaRule_closure.prototype = {
  56750. call$0: function() {
  56751. var _this = this,
  56752. t1 = _this.$this,
  56753. t2 = _this.mergedQueries;
  56754. if (t2 == null)
  56755. t2 = _this.queries;
  56756. t1._withMediaQueries$2(t2, new R._EvaluateVisitor_visitMediaRule__closure(t1, _this.node));
  56757. },
  56758. $signature: 0
  56759. };
  56760. R._EvaluateVisitor_visitMediaRule__closure.prototype = {
  56761. call$0: function() {
  56762. var t3, _i,
  56763. t1 = this.$this,
  56764. t2 = t1._styleRule;
  56765. if (!(t2 != null && !t1._atRootExcludingStyleRule))
  56766. for (t2 = this.node.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
  56767. t2[_i].accept$1(t1);
  56768. else
  56769. t1._withParent$2$3$scopeWhen(X.ModifiableCssStyleRule$(t2.selector, t2.span, t2.originalSelector), new R._EvaluateVisitor_visitMediaRule___closure(t1, this.node), false, type$.ModifiableCssStyleRule, type$.Null);
  56770. },
  56771. $signature: 0
  56772. };
  56773. R._EvaluateVisitor_visitMediaRule___closure.prototype = {
  56774. call$0: function() {
  56775. var t1, t2, t3, _i;
  56776. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  56777. t1[_i].accept$1(t3);
  56778. },
  56779. $signature: 0
  56780. };
  56781. R._EvaluateVisitor_visitMediaRule_closure0.prototype = {
  56782. call$1: function(node) {
  56783. var t1;
  56784. if (!type$.CssStyleRule._is(node))
  56785. t1 = this.mergedQueries != null && type$.CssMediaRule._is(node);
  56786. else
  56787. t1 = true;
  56788. return t1;
  56789. }
  56790. };
  56791. R._EvaluateVisitor__visitMediaQueries_closure.prototype = {
  56792. call$0: function() {
  56793. var t1 = S.SpanScanner$(this.resolved, null);
  56794. return new F.MediaQueryParser(t1, this.$this._evaluate$_logger).parse$0();
  56795. },
  56796. $signature: 62
  56797. };
  56798. R._EvaluateVisitor_visitStyleRule_closure.prototype = {
  56799. call$0: function() {
  56800. var t1 = S.SpanScanner$(this.selectorText.value, null);
  56801. return new E.KeyframeSelectorParser(t1, this.$this._evaluate$_logger).parse$0();
  56802. },
  56803. $signature: 32
  56804. };
  56805. R._EvaluateVisitor_visitStyleRule_closure0.prototype = {
  56806. call$0: function() {
  56807. var t1, t2, t3, _i;
  56808. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  56809. t1[_i].accept$1(t3);
  56810. },
  56811. $signature: 0
  56812. };
  56813. R._EvaluateVisitor_visitStyleRule_closure1.prototype = {
  56814. call$1: function(node) {
  56815. return type$.CssStyleRule._is(node);
  56816. }
  56817. };
  56818. R._EvaluateVisitor_visitStyleRule_closure2.prototype = {
  56819. call$0: function() {
  56820. var t1 = this.$this,
  56821. t2 = !t1._stylesheet.plainCss;
  56822. return D.SelectorList_SelectorList$parse(this.selectorText.value, t2, t2, t1._evaluate$_logger);
  56823. },
  56824. $signature: 31
  56825. };
  56826. R._EvaluateVisitor_visitStyleRule_closure3.prototype = {
  56827. call$0: function() {
  56828. var t1 = this._box_0.parsedSelector,
  56829. t2 = this.$this,
  56830. t3 = t2._styleRule;
  56831. t3 = t3 == null ? null : t3.originalSelector;
  56832. return t1.resolveParentSelectors$2$implicitParent(t3, !t2._atRootExcludingStyleRule);
  56833. },
  56834. $signature: 31
  56835. };
  56836. R._EvaluateVisitor_visitStyleRule_closure4.prototype = {
  56837. call$0: function() {
  56838. var t1 = this.$this;
  56839. t1._withStyleRule$2(this.rule, new R._EvaluateVisitor_visitStyleRule__closure(t1, this.node));
  56840. },
  56841. $signature: 0
  56842. };
  56843. R._EvaluateVisitor_visitStyleRule__closure.prototype = {
  56844. call$0: function() {
  56845. var t1, t2, t3, _i;
  56846. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  56847. t1[_i].accept$1(t3);
  56848. },
  56849. $signature: 0
  56850. };
  56851. R._EvaluateVisitor_visitStyleRule_closure5.prototype = {
  56852. call$1: function(node) {
  56853. return type$.CssStyleRule._is(node);
  56854. }
  56855. };
  56856. R._EvaluateVisitor_visitSupportsRule_closure.prototype = {
  56857. call$0: function() {
  56858. var t3, _i,
  56859. t1 = this.$this,
  56860. t2 = t1._styleRule;
  56861. if (!(t2 != null && !t1._atRootExcludingStyleRule))
  56862. for (t2 = this.node.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
  56863. t2[_i].accept$1(t1);
  56864. else
  56865. t1._withParent$2$2(X.ModifiableCssStyleRule$(t2.selector, t2.span, t2.originalSelector), new R._EvaluateVisitor_visitSupportsRule__closure(t1, this.node), type$.ModifiableCssStyleRule, type$.Null);
  56866. },
  56867. $signature: 0
  56868. };
  56869. R._EvaluateVisitor_visitSupportsRule__closure.prototype = {
  56870. call$0: function() {
  56871. var t1, t2, t3, _i;
  56872. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  56873. t1[_i].accept$1(t3);
  56874. },
  56875. $signature: 0
  56876. };
  56877. R._EvaluateVisitor_visitSupportsRule_closure0.prototype = {
  56878. call$1: function(node) {
  56879. return type$.CssStyleRule._is(node);
  56880. }
  56881. };
  56882. R._EvaluateVisitor_visitVariableDeclaration_closure.prototype = {
  56883. call$0: function() {
  56884. var t1 = this.override;
  56885. this.$this._evaluate$_environment.setVariable$4$global(this.node.name, t1.value, t1.assignmentNode, true);
  56886. },
  56887. $signature: 0
  56888. };
  56889. R._EvaluateVisitor_visitVariableDeclaration_closure0.prototype = {
  56890. call$0: function() {
  56891. var t1 = this.node;
  56892. return this.$this._evaluate$_environment.getVariable$2$namespace(t1.name, t1.namespace);
  56893. },
  56894. $signature: 9
  56895. };
  56896. R._EvaluateVisitor_visitVariableDeclaration_closure1.prototype = {
  56897. call$0: function() {
  56898. var t1 = this.$this,
  56899. t2 = this.node;
  56900. t1._evaluate$_environment.setVariable$5$global$namespace(t2.name, this.value, t1._expressionNode$1(t2.expression), t2.isGlobal, t2.namespace);
  56901. },
  56902. $signature: 0
  56903. };
  56904. R._EvaluateVisitor_visitUseRule_closure.prototype = {
  56905. call$1: function(module) {
  56906. var t1 = this.node;
  56907. this.$this._evaluate$_environment.addModule$3$namespace(module, t1, t1.namespace);
  56908. }
  56909. };
  56910. R._EvaluateVisitor_visitWarnRule_closure.prototype = {
  56911. call$0: function() {
  56912. return this.node.expression.accept$1(this.$this);
  56913. },
  56914. $signature: 9
  56915. };
  56916. R._EvaluateVisitor_visitWhileRule_closure.prototype = {
  56917. call$0: function() {
  56918. var t1, t2, t3, result;
  56919. for (t1 = this.node, t2 = t1.condition, t3 = this.$this, t1 = t1.children; t2.accept$1(t3).get$isTruthy();) {
  56920. result = t3._handleReturn$2(t1, new R._EvaluateVisitor_visitWhileRule__closure(t3));
  56921. if (result != null)
  56922. return result;
  56923. }
  56924. return null;
  56925. },
  56926. $signature: 9
  56927. };
  56928. R._EvaluateVisitor_visitWhileRule__closure.prototype = {
  56929. call$1: function(child) {
  56930. return child.accept$1(this.$this);
  56931. }
  56932. };
  56933. R._EvaluateVisitor_visitBinaryOperationExpression_closure.prototype = {
  56934. call$0: function() {
  56935. var right, result,
  56936. t1 = this.node,
  56937. t2 = this.$this,
  56938. left = t1.left.accept$1(t2);
  56939. switch (t1.operator) {
  56940. case C.BinaryOperator_kjl:
  56941. right = t1.right.accept$1(t2);
  56942. left.toString;
  56943. t1 = N.serializeValue0(left, false, true) + "=";
  56944. right.toString;
  56945. return new D.SassString(t1 + N.serializeValue0(right, false, true), false);
  56946. case C.BinaryOperator_or_or_1:
  56947. return left.get$isTruthy() ? left : t1.right.accept$1(t2);
  56948. case C.BinaryOperator_and_and_2:
  56949. return left.get$isTruthy() ? t1.right.accept$1(t2) : left;
  56950. case C.BinaryOperator_YlX:
  56951. return J.$eq$(left, t1.right.accept$1(t2)) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  56952. case C.BinaryOperator_i5H:
  56953. return !J.$eq$(left, t1.right.accept$1(t2)) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  56954. case C.BinaryOperator_AcR0:
  56955. return left.greaterThan$1(t1.right.accept$1(t2));
  56956. case C.BinaryOperator_1da:
  56957. return left.greaterThanOrEquals$1(t1.right.accept$1(t2));
  56958. case C.BinaryOperator_8qt:
  56959. return left.lessThan$1(t1.right.accept$1(t2));
  56960. case C.BinaryOperator_33h:
  56961. return left.lessThanOrEquals$1(t1.right.accept$1(t2));
  56962. case C.BinaryOperator_AcR:
  56963. return left.plus$1(t1.right.accept$1(t2));
  56964. case C.BinaryOperator_iyO:
  56965. return left.minus$1(t1.right.accept$1(t2));
  56966. case C.BinaryOperator_O1M:
  56967. return left.times$1(t1.right.accept$1(t2));
  56968. case C.BinaryOperator_RTB:
  56969. right = t1.right.accept$1(t2);
  56970. result = left.dividedBy$1(right);
  56971. if (t1.allowsSlash && left instanceof T.SassNumber && right instanceof T.SassNumber)
  56972. return type$.SassNumber._as(result).withSlash$2(left, right);
  56973. else
  56974. return result;
  56975. case C.BinaryOperator_2ad:
  56976. return left.modulo$1(t1.right.accept$1(t2));
  56977. default:
  56978. return null;
  56979. }
  56980. },
  56981. $signature: 9
  56982. };
  56983. R._EvaluateVisitor_visitVariableExpression_closure.prototype = {
  56984. call$0: function() {
  56985. var t1 = this.node;
  56986. return this.$this._evaluate$_environment.getVariable$2$namespace(t1.name, t1.namespace);
  56987. },
  56988. $signature: 9
  56989. };
  56990. R._EvaluateVisitor_visitListExpression_closure.prototype = {
  56991. call$1: function(expression) {
  56992. return expression.accept$1(this.$this);
  56993. }
  56994. };
  56995. R._EvaluateVisitor_visitFunctionExpression_closure.prototype = {
  56996. call$0: function() {
  56997. var t1 = this.node.namespace,
  56998. t2 = this.plainName;
  56999. if (t1 == null)
  57000. t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
  57001. return this.$this._getFunction$2$namespace(t2, t1);
  57002. },
  57003. $signature: 57
  57004. };
  57005. R._EvaluateVisitor_visitFunctionExpression_closure0.prototype = {
  57006. call$0: function() {
  57007. var t1 = this.node;
  57008. return this.$this._runFunctionCallable$3(t1.$arguments, this._box_0.$function, t1);
  57009. },
  57010. $signature: 9
  57011. };
  57012. R._EvaluateVisitor__runUserDefinedCallable_closure.prototype = {
  57013. call$0: function() {
  57014. var _this = this,
  57015. t1 = _this.$this,
  57016. t2 = _this.callable;
  57017. return t1._withEnvironment$2(t2.environment.closure$0(), new R._EvaluateVisitor__runUserDefinedCallable__closure(t1, _this.evaluated, t2, _this.nodeWithSpan, _this.run));
  57018. },
  57019. $signature: 9
  57020. };
  57021. R._EvaluateVisitor__runUserDefinedCallable__closure.prototype = {
  57022. call$0: function() {
  57023. var _this = this,
  57024. t1 = _this.$this;
  57025. return t1._evaluate$_environment.scope$1$1(new R._EvaluateVisitor__runUserDefinedCallable___closure(t1, _this.evaluated, _this.callable, _this.nodeWithSpan, _this.run), type$.Value);
  57026. },
  57027. $signature: 9
  57028. };
  57029. R._EvaluateVisitor__runUserDefinedCallable___closure.prototype = {
  57030. call$0: function() {
  57031. var declaredArguments, minLength, t8, t9, i, t10, t11, t12, argument, value, t13, rest, argumentList, result, argumentWord, argumentNames, _this = this, _null = null,
  57032. t1 = _this.$this,
  57033. t2 = _this.evaluated,
  57034. t3 = t2.positional,
  57035. t4 = t3.length,
  57036. t5 = t2.named,
  57037. t6 = _this.callable.declaration.$arguments,
  57038. t7 = _this.nodeWithSpan;
  57039. t1._verifyArguments$4(t4, t5, t6, t7);
  57040. declaredArguments = t6.$arguments;
  57041. t4 = declaredArguments.length;
  57042. minLength = Math.min(t3.length, t4);
  57043. for (t8 = t1._sourceMap, t9 = t2.positionalNodes, i = 0; i < minLength; ++i) {
  57044. t10 = t1._evaluate$_environment;
  57045. t11 = declaredArguments[i].name;
  57046. t12 = t3[i].withoutSlash$0();
  57047. t10.setLocalVariable$3(t11, t12, t8 ? t9[i] : _null);
  57048. }
  57049. for (i = t3.length, t9 = t2.namedNodes; i < t4; ++i) {
  57050. argument = declaredArguments[i];
  57051. t10 = argument.name;
  57052. value = t5.remove$1(0, t10);
  57053. if (value == null)
  57054. value = argument.defaultValue.accept$1(t1);
  57055. t11 = t1._evaluate$_environment;
  57056. t12 = value.withoutSlash$0();
  57057. if (t8) {
  57058. t13 = t9.$index(0, t10);
  57059. if (t13 == null)
  57060. t13 = t1._expressionNode$1(argument.defaultValue);
  57061. } else
  57062. t13 = _null;
  57063. t11.setLocalVariable$3(t10, t12, t13);
  57064. }
  57065. t8 = t6.restArgument;
  57066. if (t8 != null) {
  57067. rest = t3.length > t4 ? C.JSArray_methods.sublist$1(t3, t4) : C.List_empty5;
  57068. t2 = t2.separator;
  57069. if (t2 === C.ListSeparator_undecided)
  57070. t2 = C.ListSeparator_comma;
  57071. t3 = type$.Value;
  57072. argumentList = new D.SassArgumentList(H.ConstantMap_ConstantMap$from(t5, type$.String, t3), P.List_List$unmodifiable(rest, t3), t2, false);
  57073. argumentList.SassList$3$brackets(rest, t2, false);
  57074. t1._evaluate$_environment.setLocalVariable$3(t8, argumentList, t7);
  57075. } else
  57076. argumentList = _null;
  57077. result = _this.run.call$0();
  57078. if (argumentList == null)
  57079. return result;
  57080. if (t5.get$isEmpty(t5))
  57081. return result;
  57082. if (argumentList._wereKeywordsAccessed)
  57083. return result;
  57084. t2 = t5.get$keys();
  57085. argumentWord = B.pluralize("argument", t2.get$length(t2), _null);
  57086. t5 = t5.get$keys();
  57087. argumentNames = B.toSentence(H.MappedIterable_MappedIterable(t5, new R._EvaluateVisitor__runUserDefinedCallable____closure(), H._instanceType(t5)._eval$1("Iterable.E"), type$.Object), "or");
  57088. throw H.wrapException(E.MultiSpanSassRuntimeException$("No " + argumentWord + " named " + H.S(argumentNames) + ".", t7.get$span(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([t6.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), t1._evaluate$_stackTrace$1(t7.get$span())));
  57089. },
  57090. $signature: 9
  57091. };
  57092. R._EvaluateVisitor__runUserDefinedCallable____closure.prototype = {
  57093. call$1: function($name) {
  57094. return "$" + H.S($name);
  57095. }
  57096. };
  57097. R._EvaluateVisitor__runFunctionCallable_closure.prototype = {
  57098. call$0: function() {
  57099. var t1, t2, t3, t4, _i, $returnValue;
  57100. for (t1 = this.callable.declaration, t2 = t1.children, t3 = t2.length, t4 = this.$this, _i = 0; _i < t3; ++_i) {
  57101. $returnValue = t2[_i].accept$1(t4);
  57102. if ($returnValue instanceof F.Value)
  57103. return $returnValue;
  57104. }
  57105. throw H.wrapException(t4._evaluate$_exception$2("Function finished without @return.", t1.span));
  57106. },
  57107. $signature: 9
  57108. };
  57109. R._EvaluateVisitor__runBuiltInCallable_closure.prototype = {
  57110. call$0: function() {
  57111. return this.overload.verify$2(this.evaluated.positional.length, this.namedSet);
  57112. },
  57113. $signature: 1
  57114. };
  57115. R._EvaluateVisitor__runBuiltInCallable_closure0.prototype = {
  57116. call$1: function($name) {
  57117. return "$" + H.S($name);
  57118. }
  57119. };
  57120. R._EvaluateVisitor__evaluateArguments_closure.prototype = {
  57121. call$2: function(_, expression) {
  57122. return expression.accept$1(this.$this);
  57123. }
  57124. };
  57125. R._EvaluateVisitor__evaluateArguments_closure0.prototype = {
  57126. call$2: function(_, expression) {
  57127. return this.$this._expressionNode$1(expression);
  57128. }
  57129. };
  57130. R._EvaluateVisitor__evaluateArguments_closure1.prototype = {
  57131. call$2: function(key, value) {
  57132. var t1;
  57133. this.named.$indexSet(0, key, value);
  57134. t1 = this.namedNodes;
  57135. if (t1 != null)
  57136. t1.$indexSet(0, key, this.restNodeForSpan);
  57137. }
  57138. };
  57139. R._EvaluateVisitor__evaluateMacroArguments_closure.prototype = {
  57140. call$1: function(value) {
  57141. return new F.ValueExpression(value, null);
  57142. }
  57143. };
  57144. R._EvaluateVisitor__evaluateMacroArguments_closure0.prototype = {
  57145. call$1: function(value) {
  57146. return new F.ValueExpression(value, null);
  57147. }
  57148. };
  57149. R._EvaluateVisitor__evaluateMacroArguments_closure1.prototype = {
  57150. call$2: function(key, value) {
  57151. this.named.$indexSet(0, key, new F.ValueExpression(value, null));
  57152. }
  57153. };
  57154. R._EvaluateVisitor__evaluateMacroArguments_closure2.prototype = {
  57155. call$1: function(value) {
  57156. return new F.ValueExpression(value, null);
  57157. }
  57158. };
  57159. R._EvaluateVisitor__addRestMap_closure.prototype = {
  57160. call$1: function(value) {
  57161. return this.T._as(value);
  57162. }
  57163. };
  57164. R._EvaluateVisitor__addRestMap_closure0.prototype = {
  57165. call$2: function(key, value) {
  57166. var _this = this;
  57167. if (key instanceof D.SassString)
  57168. _this.values.$indexSet(0, key.text, _this._box_0.convert.call$1(value));
  57169. else
  57170. throw H.wrapException(_this.$this._evaluate$_exception$2("Variable keyword argument map must have string keys.\n" + H.S(key) + " is not a string in " + _this.map.toString$0(0) + ".", _this.nodeWithSpan.get$span()));
  57171. }
  57172. };
  57173. R._EvaluateVisitor__verifyArguments_closure.prototype = {
  57174. call$0: function() {
  57175. return this.$arguments.verify$2(this.positional, new M.MapKeySet(this.named, type$.MapKeySet_String));
  57176. },
  57177. $signature: 1
  57178. };
  57179. R._EvaluateVisitor_visitStringExpression_closure.prototype = {
  57180. call$1: function(value) {
  57181. var t1, result;
  57182. if (typeof value == "string")
  57183. return value;
  57184. type$.Expression._as(value);
  57185. t1 = this.$this;
  57186. result = value.accept$1(t1);
  57187. return result instanceof D.SassString ? result.text : t1._evaluate$_serialize$3$quote(result, value, false);
  57188. },
  57189. $signature: 27
  57190. };
  57191. R._EvaluateVisitor_visitCssAtRule_closure.prototype = {
  57192. call$0: function() {
  57193. var t1, t2;
  57194. for (t1 = this.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = this.$this; t1.moveNext$0();)
  57195. t1.__internal$_current.accept$1(t2);
  57196. },
  57197. $signature: 0
  57198. };
  57199. R._EvaluateVisitor_visitCssAtRule_closure0.prototype = {
  57200. call$1: function(node) {
  57201. return type$.CssStyleRule._is(node);
  57202. }
  57203. };
  57204. R._EvaluateVisitor_visitCssKeyframeBlock_closure.prototype = {
  57205. call$0: function() {
  57206. var t1, t2;
  57207. for (t1 = this.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = this.$this; t1.moveNext$0();)
  57208. t1.__internal$_current.accept$1(t2);
  57209. },
  57210. $signature: 0
  57211. };
  57212. R._EvaluateVisitor_visitCssKeyframeBlock_closure0.prototype = {
  57213. call$1: function(node) {
  57214. return type$.CssStyleRule._is(node);
  57215. }
  57216. };
  57217. R._EvaluateVisitor_visitCssMediaRule_closure.prototype = {
  57218. call$0: function() {
  57219. var _this = this,
  57220. t1 = _this.$this,
  57221. t2 = _this.mergedQueries;
  57222. if (t2 == null)
  57223. t2 = _this.node.queries;
  57224. t1._withMediaQueries$2(t2, new R._EvaluateVisitor_visitCssMediaRule__closure(t1, _this.node));
  57225. },
  57226. $signature: 0
  57227. };
  57228. R._EvaluateVisitor_visitCssMediaRule__closure.prototype = {
  57229. call$0: function() {
  57230. var t1 = this.$this,
  57231. t2 = t1._styleRule;
  57232. if (!(t2 != null && !t1._atRootExcludingStyleRule))
  57233. for (t2 = this.node.children, t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
  57234. t2.__internal$_current.accept$1(t1);
  57235. else
  57236. t1._withParent$2$3$scopeWhen(X.ModifiableCssStyleRule$(t2.selector, t2.span, t2.originalSelector), new R._EvaluateVisitor_visitCssMediaRule___closure(t1, this.node), false, type$.ModifiableCssStyleRule, type$.Null);
  57237. },
  57238. $signature: 0
  57239. };
  57240. R._EvaluateVisitor_visitCssMediaRule___closure.prototype = {
  57241. call$0: function() {
  57242. var t1, t2;
  57243. for (t1 = this.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = this.$this; t1.moveNext$0();)
  57244. t1.__internal$_current.accept$1(t2);
  57245. },
  57246. $signature: 0
  57247. };
  57248. R._EvaluateVisitor_visitCssMediaRule_closure0.prototype = {
  57249. call$1: function(node) {
  57250. var t1;
  57251. if (!type$.CssStyleRule._is(node))
  57252. t1 = this.mergedQueries != null && type$.CssMediaRule._is(node);
  57253. else
  57254. t1 = true;
  57255. return t1;
  57256. }
  57257. };
  57258. R._EvaluateVisitor_visitCssStyleRule_closure.prototype = {
  57259. call$0: function() {
  57260. var t1 = this.$this;
  57261. t1._withStyleRule$2(this.rule, new R._EvaluateVisitor_visitCssStyleRule__closure(t1, this.node));
  57262. },
  57263. $signature: 0
  57264. };
  57265. R._EvaluateVisitor_visitCssStyleRule__closure.prototype = {
  57266. call$0: function() {
  57267. var t1, t2;
  57268. for (t1 = this.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = this.$this; t1.moveNext$0();)
  57269. t1.__internal$_current.accept$1(t2);
  57270. },
  57271. $signature: 0
  57272. };
  57273. R._EvaluateVisitor_visitCssStyleRule_closure0.prototype = {
  57274. call$1: function(node) {
  57275. return type$.CssStyleRule._is(node);
  57276. }
  57277. };
  57278. R._EvaluateVisitor_visitCssSupportsRule_closure.prototype = {
  57279. call$0: function() {
  57280. var t1 = this.$this,
  57281. t2 = t1._styleRule;
  57282. if (!(t2 != null && !t1._atRootExcludingStyleRule))
  57283. for (t2 = this.node.children, t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
  57284. t2.__internal$_current.accept$1(t1);
  57285. else
  57286. t1._withParent$2$2(X.ModifiableCssStyleRule$(t2.selector, t2.span, t2.originalSelector), new R._EvaluateVisitor_visitCssSupportsRule__closure(t1, this.node), type$.ModifiableCssStyleRule, type$.Null);
  57287. },
  57288. $signature: 0
  57289. };
  57290. R._EvaluateVisitor_visitCssSupportsRule__closure.prototype = {
  57291. call$0: function() {
  57292. var t1, t2;
  57293. for (t1 = this.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = this.$this; t1.moveNext$0();)
  57294. t1.__internal$_current.accept$1(t2);
  57295. },
  57296. $signature: 0
  57297. };
  57298. R._EvaluateVisitor_visitCssSupportsRule_closure0.prototype = {
  57299. call$1: function(node) {
  57300. return type$.CssStyleRule._is(node);
  57301. }
  57302. };
  57303. R._EvaluateVisitor__performInterpolation_closure.prototype = {
  57304. call$1: function(value) {
  57305. var t1, result, t2, t3;
  57306. if (typeof value == "string")
  57307. return value;
  57308. type$.Expression._as(value);
  57309. t1 = this.$this;
  57310. result = value.accept$1(t1);
  57311. if (this.warnForColor && result instanceof K.SassColor && $.$get$namesByColor().containsKey$1(result)) {
  57312. t2 = X.Interpolation$([""], null);
  57313. t3 = $.$get$namesByColor();
  57314. t1._warn$2("You probably don't mean to use the color value " + H.S(t3.$index(0, result)) + " in interpolation here.\nIt may end up represented as " + H.S(result) + ', which will likely produce invalid CSS.\nAlways quote color names when using them as strings or map keys (for example, "' + H.S(t3.$index(0, result)) + "\").\nIf you really want to use the color value here, use '" + new V.BinaryOperationExpression(C.BinaryOperator_AcR, new D.StringExpression(t2, true), value, false).toString$0(0) + "'.", value.get$span());
  57315. }
  57316. return t1._evaluate$_serialize$3$quote(result, value, false);
  57317. },
  57318. $signature: 27
  57319. };
  57320. R._EvaluateVisitor__serialize_closure.prototype = {
  57321. call$0: function() {
  57322. var t1 = this.value;
  57323. t1.toString;
  57324. return N.serializeValue0(t1, false, this.quote);
  57325. },
  57326. $signature: 10
  57327. };
  57328. R._EvaluateVisitor__stackTrace_closure.prototype = {
  57329. call$1: function(tuple) {
  57330. return this.$this._stackFrame$2(tuple.item1, tuple.item2.get$span());
  57331. }
  57332. };
  57333. R._ImportedCssVisitor.prototype = {
  57334. visitCssAtRule$1: function(node) {
  57335. var t1 = node.isChildless ? null : new R._ImportedCssVisitor_visitCssAtRule_closure();
  57336. this._visitor._addChild$2$through(node, t1);
  57337. },
  57338. visitCssComment$1: function(node) {
  57339. return this._visitor._addChild$1(node);
  57340. },
  57341. visitCssDeclaration$1: function(node) {
  57342. },
  57343. visitCssImport$1: function(node) {
  57344. var t1 = this._visitor,
  57345. t2 = t1._evaluate$_parent,
  57346. t3 = t1._root;
  57347. if (t2 != t3)
  57348. t1._addChild$1(node);
  57349. else if (t1._endOfImports === J.get$length$asx(t3.children._collection$_source)) {
  57350. t1._addChild$1(node);
  57351. t1._endOfImports = t1._endOfImports + 1;
  57352. } else {
  57353. t2 = t1._outOfOrderImports;
  57354. (t2 == null ? t1._outOfOrderImports = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssImport) : t2).push(node);
  57355. }
  57356. },
  57357. visitCssKeyframeBlock$1: function(node) {
  57358. },
  57359. visitCssMediaRule$1: function(node) {
  57360. var t1 = this._visitor,
  57361. t2 = t1._mediaQueries;
  57362. t1._addChild$2$through(node, new R._ImportedCssVisitor_visitCssMediaRule_closure(t2 == null || t1._mergeMediaQueries$2(t2, node.queries) != null));
  57363. },
  57364. visitCssStyleRule$1: function(node) {
  57365. return this._visitor._addChild$2$through(node, new R._ImportedCssVisitor_visitCssStyleRule_closure());
  57366. },
  57367. visitCssStylesheet$1: function(node) {
  57368. var t1;
  57369. for (t1 = node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();)
  57370. t1.__internal$_current.accept$1(this);
  57371. },
  57372. visitCssSupportsRule$1: function(node) {
  57373. return this._visitor._addChild$2$through(node, new R._ImportedCssVisitor_visitCssSupportsRule_closure());
  57374. }
  57375. };
  57376. R._ImportedCssVisitor_visitCssAtRule_closure.prototype = {
  57377. call$1: function(node) {
  57378. return type$.CssStyleRule._is(node);
  57379. }
  57380. };
  57381. R._ImportedCssVisitor_visitCssMediaRule_closure.prototype = {
  57382. call$1: function(node) {
  57383. var t1;
  57384. if (!type$.CssStyleRule._is(node))
  57385. t1 = this.hasBeenMerged && type$.CssMediaRule._is(node);
  57386. else
  57387. t1 = true;
  57388. return t1;
  57389. }
  57390. };
  57391. R._ImportedCssVisitor_visitCssStyleRule_closure.prototype = {
  57392. call$1: function(node) {
  57393. return type$.CssStyleRule._is(node);
  57394. }
  57395. };
  57396. R._ImportedCssVisitor_visitCssSupportsRule_closure.prototype = {
  57397. call$1: function(node) {
  57398. return type$.CssStyleRule._is(node);
  57399. }
  57400. };
  57401. R._ArgumentResults.prototype = {};
  57402. F._FindDependenciesVisitor.prototype = {
  57403. visitEachRule$1: function(node) {
  57404. },
  57405. visitForRule$1: function(node) {
  57406. },
  57407. visitIfRule$1: function(node) {
  57408. },
  57409. visitWhileRule$1: function(node) {
  57410. },
  57411. visitUseRule$1: function(node) {
  57412. this._usesAndForwards.push(node.url);
  57413. },
  57414. visitForwardRule$1: function(node) {
  57415. this._usesAndForwards.push(node.url);
  57416. },
  57417. visitImportRule$1: function(node) {
  57418. var t1, t2, t3, _i, $import;
  57419. for (t1 = node.imports, t2 = t1.length, t3 = this._imports, _i = 0; _i < t2; ++_i) {
  57420. $import = t1[_i];
  57421. if ($import instanceof B.DynamicImport)
  57422. t3.push(P.Uri_parse($import.url));
  57423. }
  57424. }
  57425. };
  57426. D.RecursiveStatementVisitor.prototype = {
  57427. visitAtRootRule$1: function(node) {
  57428. return this.visitChildren$1(node);
  57429. },
  57430. visitAtRule$1: function(node) {
  57431. return node.children == null ? null : this.visitChildren$1(node);
  57432. },
  57433. visitContentBlock$1: function(node) {
  57434. return null;
  57435. },
  57436. visitContentRule$1: function(node) {
  57437. this.visitArgumentInvocation$1(node.$arguments);
  57438. return null;
  57439. },
  57440. visitDebugRule$1: function(node) {
  57441. return null;
  57442. },
  57443. visitDeclaration$1: function(node) {
  57444. return node.children == null ? null : this.visitChildren$1(node);
  57445. },
  57446. visitErrorRule$1: function(node) {
  57447. return null;
  57448. },
  57449. visitExtendRule$1: function(node) {
  57450. return null;
  57451. },
  57452. visitFunctionRule$1: function(node) {
  57453. return null;
  57454. },
  57455. visitIncludeRule$1: function(node) {
  57456. this.visitArgumentInvocation$1(node.$arguments);
  57457. return null;
  57458. },
  57459. visitLoudComment$1: function(node) {
  57460. return null;
  57461. },
  57462. visitMediaRule$1: function(node) {
  57463. return this.visitChildren$1(node);
  57464. },
  57465. visitMixinRule$1: function(node) {
  57466. return null;
  57467. },
  57468. visitReturnRule$1: function(node) {
  57469. return null;
  57470. },
  57471. visitSilentComment$1: function(node) {
  57472. return null;
  57473. },
  57474. visitStyleRule$1: function(node) {
  57475. return this.visitChildren$1(node);
  57476. },
  57477. visitStylesheet$1: function(node) {
  57478. return this.visitChildren$1(node);
  57479. },
  57480. visitSupportsRule$1: function(node) {
  57481. return this.visitChildren$1(node);
  57482. },
  57483. visitVariableDeclaration$1: function(node) {
  57484. return null;
  57485. },
  57486. visitWarnRule$1: function(node) {
  57487. return null;
  57488. },
  57489. visitArgumentInvocation$1: function(invocation) {
  57490. var t1, _i;
  57491. for (t1 = invocation.positional.length, _i = 0; _i < t1; ++_i)
  57492. ;
  57493. for (t1 = invocation.named.get$values(), t1 = t1.get$iterator(t1); t1.moveNext$0();)
  57494. t1.get$current(t1);
  57495. },
  57496. visitChildren$1: function(node) {
  57497. var t1;
  57498. for (t1 = node.children, t1 = (t1 && C.JSArray_methods).get$iterator(t1); t1.moveNext$0();)
  57499. t1.get$current(t1).accept$1(this);
  57500. return null;
  57501. }
  57502. };
  57503. N.serialize_closure.prototype = {
  57504. call$1: function(codeUnit) {
  57505. return codeUnit > 127;
  57506. },
  57507. $signature: 16
  57508. };
  57509. N._SerializeVisitor0.prototype = {
  57510. visitCssStylesheet$1: function(node) {
  57511. var t1, t2, t3, t4, previous, i, child, _this = this;
  57512. for (t1 = _this._style !== C.OutputStyle_compressed, t2 = type$.CssComment, t3 = type$.CssParentNode, t4 = _this._serialize$_buffer, previous = null, i = 0; i < J.get$length$asx(node.get$children()); ++i) {
  57513. child = J.$index$asx(node.get$children(), i);
  57514. if (_this._isInvisible$1(child))
  57515. continue;
  57516. if (previous != null) {
  57517. if (t3._is(previous) ? previous.get$isChildless() : !t2._is(previous))
  57518. t4.writeCharCode$1(59);
  57519. if (t1)
  57520. t4.write$1(0, "\n");
  57521. if (previous.get$isGroupEnd())
  57522. if (t1)
  57523. t4.write$1(0, "\n");
  57524. }
  57525. child.accept$1(_this);
  57526. previous = child;
  57527. }
  57528. if (previous != null)
  57529. t1 = (t3._is(previous) ? previous.get$isChildless() : !t2._is(previous)) && t1;
  57530. else
  57531. t1 = false;
  57532. if (t1)
  57533. t4.writeCharCode$1(59);
  57534. },
  57535. visitCssComment$1: function(node) {
  57536. this._serialize$_buffer.forSpan$2(node.span, new N._SerializeVisitor_visitCssComment_closure(this, node));
  57537. },
  57538. visitCssAtRule$1: function(node) {
  57539. var t1, _this = this;
  57540. _this._writeIndentation$0();
  57541. t1 = _this._serialize$_buffer;
  57542. t1.forSpan$2(node.span, new N._SerializeVisitor_visitCssAtRule_closure(_this, node));
  57543. if (!node.isChildless) {
  57544. if (_this._style !== C.OutputStyle_compressed)
  57545. t1.writeCharCode$1(32);
  57546. _this._serialize$_visitChildren$1(node.children);
  57547. }
  57548. },
  57549. visitCssMediaRule$1: function(node) {
  57550. var t1, _this = this;
  57551. _this._writeIndentation$0();
  57552. t1 = _this._serialize$_buffer;
  57553. t1.forSpan$2(node.span, new N._SerializeVisitor_visitCssMediaRule_closure(_this, node));
  57554. if (_this._style !== C.OutputStyle_compressed)
  57555. t1.writeCharCode$1(32);
  57556. _this._serialize$_visitChildren$1(node.children);
  57557. },
  57558. visitCssImport$1: function(node) {
  57559. this._writeIndentation$0();
  57560. this._serialize$_buffer.forSpan$2(node.span, new N._SerializeVisitor_visitCssImport_closure(this, node));
  57561. },
  57562. _writeImportUrl$1: function(url) {
  57563. var urlContents, maybeQuote, _this = this;
  57564. if (_this._style !== C.OutputStyle_compressed || J._codeUnitAt$1$s(url, 0) !== 117) {
  57565. _this._serialize$_buffer.write$1(0, url);
  57566. return;
  57567. }
  57568. urlContents = J.substring$2$s(url, 4, url.length - 1);
  57569. maybeQuote = C.JSString_methods._codeUnitAt$1(urlContents, 0);
  57570. if (maybeQuote === 39 || maybeQuote === 34)
  57571. _this._serialize$_buffer.write$1(0, urlContents);
  57572. else
  57573. _this._visitQuotedString$1(urlContents);
  57574. },
  57575. visitCssKeyframeBlock$1: function(node) {
  57576. var t1, _this = this;
  57577. _this._writeIndentation$0();
  57578. t1 = _this._serialize$_buffer;
  57579. t1.forSpan$2(node.selector.span, new N._SerializeVisitor_visitCssKeyframeBlock_closure(_this, node));
  57580. if (_this._style !== C.OutputStyle_compressed)
  57581. t1.writeCharCode$1(32);
  57582. _this._serialize$_visitChildren$1(node.children);
  57583. },
  57584. _visitMediaQuery$1: function(query) {
  57585. var t2, t3, _this = this,
  57586. t1 = query.modifier;
  57587. if (t1 != null) {
  57588. t2 = _this._serialize$_buffer;
  57589. t2.write$1(0, t1);
  57590. t2.writeCharCode$1(32);
  57591. }
  57592. t1 = query.type;
  57593. if (t1 != null) {
  57594. t2 = _this._serialize$_buffer;
  57595. t2.write$1(0, t1);
  57596. if (query.features.length !== 0)
  57597. t2.write$1(0, " and ");
  57598. }
  57599. t1 = query.features;
  57600. t2 = _this._style === C.OutputStyle_compressed ? "and " : " and ";
  57601. t3 = _this._serialize$_buffer;
  57602. _this._writeBetween$3(t1, t2, t3.get$write(t3));
  57603. },
  57604. visitCssStyleRule$1: function(node) {
  57605. var t1, _this = this;
  57606. _this._writeIndentation$0();
  57607. t1 = _this._serialize$_buffer;
  57608. t1.forSpan$2(node.selector.span, new N._SerializeVisitor_visitCssStyleRule_closure(_this, node));
  57609. if (_this._style !== C.OutputStyle_compressed)
  57610. t1.writeCharCode$1(32);
  57611. _this._serialize$_visitChildren$1(node.children);
  57612. },
  57613. visitCssSupportsRule$1: function(node) {
  57614. var t1, _this = this;
  57615. _this._writeIndentation$0();
  57616. t1 = _this._serialize$_buffer;
  57617. t1.forSpan$2(node.span, new N._SerializeVisitor_visitCssSupportsRule_closure(_this, node));
  57618. if (_this._style !== C.OutputStyle_compressed)
  57619. t1.writeCharCode$1(32);
  57620. _this._serialize$_visitChildren$1(node.children);
  57621. },
  57622. visitCssDeclaration$1: function(node) {
  57623. var error, error0, t1, exception, _this = this;
  57624. _this._writeIndentation$0();
  57625. _this._write$1(node.name);
  57626. t1 = _this._serialize$_buffer;
  57627. t1.writeCharCode$1(58);
  57628. if (_this._isParsedCustomProperty$1(node))
  57629. t1.forSpan$2(node.value.span, new N._SerializeVisitor_visitCssDeclaration_closure(_this, node));
  57630. else {
  57631. if (_this._style !== C.OutputStyle_compressed)
  57632. t1.writeCharCode$1(32);
  57633. try {
  57634. t1.forSpan$2(node.valueSpanForMap, new N._SerializeVisitor_visitCssDeclaration_closure0(_this, node));
  57635. } catch (exception) {
  57636. t1 = H.unwrapException(exception);
  57637. if (t1 instanceof E.MultiSpanSassScriptException) {
  57638. error = t1;
  57639. throw H.wrapException(E.MultiSpanSassException$(error.message, node.value.span, error.primaryLabel, error.secondarySpans));
  57640. } else if (t1 instanceof E.SassScriptException) {
  57641. error0 = t1;
  57642. throw H.wrapException(E.SassException$(error0.message, node.value.span));
  57643. } else
  57644. throw exception;
  57645. }
  57646. }
  57647. },
  57648. _isParsedCustomProperty$1: function(node) {
  57649. var value,
  57650. t1 = node.name;
  57651. if (!J.startsWith$1$s(t1.get$value(t1), "--"))
  57652. return false;
  57653. value = node.value.value;
  57654. return value instanceof D.SassString && !value.hasQuotes;
  57655. },
  57656. _writeFoldedValue$1: function(node) {
  57657. var t1, t2, next, t3,
  57658. scanner = X.StringScanner$(type$.SassString._as(node.value.value).text, null, null);
  57659. for (t1 = scanner.string.length, t2 = this._serialize$_buffer; scanner._string_scanner$_position !== t1;) {
  57660. next = scanner.readChar$0();
  57661. if (next !== 10) {
  57662. t2.writeCharCode$1(next);
  57663. continue;
  57664. }
  57665. t2.writeCharCode$1(32);
  57666. while (true) {
  57667. t3 = scanner.peekChar$0();
  57668. if (!(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12))
  57669. break;
  57670. scanner.readChar$0();
  57671. }
  57672. }
  57673. },
  57674. _writeReindentedValue$1: function(node) {
  57675. var _this = this,
  57676. t1 = node.value,
  57677. value = type$.SassString._as(t1.value).text,
  57678. minimumIndentation = _this._minimumIndentation$1(value);
  57679. if (minimumIndentation == null) {
  57680. _this._serialize$_buffer.write$1(0, value);
  57681. return;
  57682. } else if (minimumIndentation === -1) {
  57683. t1 = _this._serialize$_buffer;
  57684. t1.write$1(0, B.trimAsciiRight(value, true));
  57685. t1.writeCharCode$1(32);
  57686. return;
  57687. }
  57688. if (t1.span != null) {
  57689. t1 = node.name.get$span();
  57690. t1 = Y.FileLocation$_(t1.file, t1._file$_start);
  57691. minimumIndentation = Math.min(minimumIndentation, t1.file.getColumn$1(t1.offset));
  57692. }
  57693. _this._writeWithIndent$2(value, minimumIndentation);
  57694. },
  57695. _minimumIndentation$1: function(text) {
  57696. var character, t2, min, next, min0,
  57697. scanner = new Z.LineScanner(null, text),
  57698. t1 = text.length;
  57699. while (true) {
  57700. if (scanner._string_scanner$_position !== t1) {
  57701. character = scanner.super$StringScanner$readChar();
  57702. scanner._adjustLineAndColumn$1(character);
  57703. t2 = character !== 10;
  57704. } else
  57705. t2 = false;
  57706. if (!t2)
  57707. break;
  57708. }
  57709. if (scanner._string_scanner$_position === t1)
  57710. return scanner.peekChar$1(-1) === 10 ? -1 : null;
  57711. for (min = null; scanner._string_scanner$_position !== t1;) {
  57712. for (; scanner._string_scanner$_position !== t1;) {
  57713. next = scanner.peekChar$0();
  57714. if (next !== 32 && next !== 9)
  57715. break;
  57716. scanner._adjustLineAndColumn$1(scanner.super$StringScanner$readChar());
  57717. }
  57718. if (scanner._string_scanner$_position === t1 || scanner.scanChar$1(10))
  57719. continue;
  57720. min0 = scanner._line_scanner$_column;
  57721. min = min == null ? min0 : Math.min(min, min0);
  57722. while (true) {
  57723. if (scanner._string_scanner$_position !== t1) {
  57724. character = scanner.super$StringScanner$readChar();
  57725. scanner._adjustLineAndColumn$1(character);
  57726. t2 = character !== 10;
  57727. } else
  57728. t2 = false;
  57729. if (!t2)
  57730. break;
  57731. }
  57732. }
  57733. return min == null ? -1 : min;
  57734. },
  57735. _writeWithIndent$2: function(text, minimumIndentation) {
  57736. var t1, t2, character, t3, lineStart, newlines, end,
  57737. scanner = new Z.LineScanner(null, text);
  57738. for (t1 = text.length, t2 = this._serialize$_buffer; scanner._string_scanner$_position !== t1;) {
  57739. character = scanner.super$StringScanner$readChar();
  57740. scanner._adjustLineAndColumn$1(character);
  57741. if (character === 10)
  57742. break;
  57743. t2.writeCharCode$1(character);
  57744. }
  57745. for (t3 = J.getInterceptor$s(text); true;) {
  57746. lineStart = scanner._string_scanner$_position;
  57747. for (newlines = 1; true;) {
  57748. if (scanner._string_scanner$_position === t1) {
  57749. t2.writeCharCode$1(32);
  57750. return;
  57751. }
  57752. character = scanner.super$StringScanner$readChar();
  57753. scanner._adjustLineAndColumn$1(character);
  57754. if (character === 32 || character === 9)
  57755. continue;
  57756. if (character !== 10)
  57757. break;
  57758. lineStart = scanner._string_scanner$_position;
  57759. ++newlines;
  57760. }
  57761. this._writeTimes$2(10, newlines);
  57762. this._writeIndentation$0();
  57763. end = scanner._string_scanner$_position;
  57764. t2.write$1(0, t3.substring$2(text, lineStart + minimumIndentation, end));
  57765. for (; true;) {
  57766. if (scanner._string_scanner$_position === t1)
  57767. return;
  57768. character = scanner.super$StringScanner$readChar();
  57769. scanner._adjustLineAndColumn$1(character);
  57770. if (character === 10)
  57771. break;
  57772. t2.writeCharCode$1(character);
  57773. }
  57774. }
  57775. },
  57776. visitColor$1: function(value) {
  57777. var $name, hexLength, t2, t3, _this = this,
  57778. t1 = _this._style === C.OutputStyle_compressed;
  57779. if (t1 && Math.abs(value.alpha - 1) < $.$get$epsilon()) {
  57780. $name = $.$get$namesByColor().$index(0, value);
  57781. hexLength = _this._canUseShortHex$1(value) ? 4 : 7;
  57782. if ($name != null && $name.length <= hexLength)
  57783. _this._serialize$_buffer.write$1(0, $name);
  57784. else {
  57785. t1 = _this._serialize$_buffer;
  57786. if (_this._canUseShortHex$1(value)) {
  57787. t1.writeCharCode$1(35);
  57788. t1.writeCharCode$1(T.hexCharFor(value.get$red() & 15));
  57789. t1.writeCharCode$1(T.hexCharFor(value.get$green() & 15));
  57790. t1.writeCharCode$1(T.hexCharFor(value.get$blue() & 15));
  57791. } else {
  57792. t1.writeCharCode$1(35);
  57793. _this._writeHexComponent$1(value.get$red());
  57794. _this._writeHexComponent$1(value.get$green());
  57795. _this._writeHexComponent$1(value.get$blue());
  57796. }
  57797. }
  57798. return;
  57799. }
  57800. if (value.get$original() != null)
  57801. _this._serialize$_buffer.write$1(0, value.get$original());
  57802. else {
  57803. t2 = $.$get$namesByColor();
  57804. if (t2.containsKey$1(value) && !(Math.abs(value.alpha - 0) < $.$get$epsilon()))
  57805. _this._serialize$_buffer.write$1(0, t2.$index(0, value));
  57806. else {
  57807. t2 = value.alpha;
  57808. t3 = _this._serialize$_buffer;
  57809. if (Math.abs(t2 - 1) < $.$get$epsilon()) {
  57810. t3.writeCharCode$1(35);
  57811. _this._writeHexComponent$1(value.get$red());
  57812. _this._writeHexComponent$1(value.get$green());
  57813. _this._writeHexComponent$1(value.get$blue());
  57814. } else {
  57815. t3.write$1(0, "rgba(" + H.S(value.get$red()));
  57816. t3.write$1(0, t1 ? "," : ", ");
  57817. t3.write$1(0, value.get$green());
  57818. t3.write$1(0, t1 ? "," : ", ");
  57819. t3.write$1(0, value.get$blue());
  57820. t3.write$1(0, t1 ? "," : ", ");
  57821. _this._writeNumber$1(t2);
  57822. t3.writeCharCode$1(41);
  57823. }
  57824. }
  57825. }
  57826. },
  57827. _canUseShortHex$1: function(color) {
  57828. var t1 = color.get$red();
  57829. if ((t1 & 15) === C.JSInt_methods._shrOtherPositive$1(t1, 4)) {
  57830. t1 = color.get$green();
  57831. if ((t1 & 15) === C.JSInt_methods._shrOtherPositive$1(t1, 4)) {
  57832. t1 = color.get$blue();
  57833. t1 = (t1 & 15) === C.JSInt_methods._shrOtherPositive$1(t1, 4);
  57834. } else
  57835. t1 = false;
  57836. } else
  57837. t1 = false;
  57838. return t1;
  57839. },
  57840. _writeHexComponent$1: function(color) {
  57841. var t1 = this._serialize$_buffer;
  57842. t1.writeCharCode$1(T.hexCharFor(C.JSInt_methods._shrOtherPositive$1(color, 4)));
  57843. t1.writeCharCode$1(T.hexCharFor(color & 15));
  57844. },
  57845. visitList$1: function(value) {
  57846. var t2, singleton, t3, t4, _this = this,
  57847. t1 = value.hasBrackets;
  57848. if (t1)
  57849. _this._serialize$_buffer.writeCharCode$1(91);
  57850. else if (value._list$_contents.length === 0) {
  57851. if (!_this._serialize$_inspect)
  57852. throw H.wrapException(E.SassScriptException$("() isn't a valid CSS value."));
  57853. _this._serialize$_buffer.write$1(0, "()");
  57854. return;
  57855. }
  57856. t2 = _this._serialize$_inspect;
  57857. singleton = t2 && value._list$_contents.length === 1 && value.separator === C.ListSeparator_comma;
  57858. if (singleton && !t1)
  57859. _this._serialize$_buffer.writeCharCode$1(40);
  57860. t3 = value._list$_contents;
  57861. t3 = t2 ? t3 : new H.WhereIterable(t3, new N._SerializeVisitor_visitList_closure(), H._arrayInstanceType(t3)._eval$1("WhereIterable<1>"));
  57862. if (value.separator === C.ListSeparator_space)
  57863. t4 = " ";
  57864. else
  57865. t4 = _this._style === C.OutputStyle_compressed ? "," : ", ";
  57866. _this._writeBetween$3(t3, t4, t2 ? new N._SerializeVisitor_visitList_closure0(_this, value) : new N._SerializeVisitor_visitList_closure1(_this));
  57867. if (singleton) {
  57868. t2 = _this._serialize$_buffer;
  57869. t2.writeCharCode$1(44);
  57870. if (!t1)
  57871. t2.writeCharCode$1(41);
  57872. }
  57873. if (t1)
  57874. _this._serialize$_buffer.writeCharCode$1(93);
  57875. },
  57876. _elementNeedsParens$2: function(separator, value) {
  57877. var t1;
  57878. if (value instanceof D.SassList) {
  57879. if (value._list$_contents.length < 2)
  57880. return false;
  57881. if (value.hasBrackets)
  57882. return false;
  57883. t1 = value.separator;
  57884. return separator === C.ListSeparator_comma ? t1 === C.ListSeparator_comma : t1 !== C.ListSeparator_undecided;
  57885. }
  57886. return false;
  57887. },
  57888. visitMap$1: function(map) {
  57889. var t1, _this = this;
  57890. if (!_this._serialize$_inspect)
  57891. throw H.wrapException(E.SassScriptException$(map.toString$0(0) + " isn't a valid CSS value."));
  57892. t1 = _this._serialize$_buffer;
  57893. t1.writeCharCode$1(40);
  57894. _this._writeBetween$3(map.contents.get$keys(), ", ", new N._SerializeVisitor_visitMap_closure(_this, map));
  57895. t1.writeCharCode$1(41);
  57896. },
  57897. _writeMapElement$1: function(value) {
  57898. var needsParens = value instanceof D.SassList && value.separator === C.ListSeparator_comma && !value.hasBrackets;
  57899. if (needsParens)
  57900. this._serialize$_buffer.writeCharCode$1(40);
  57901. value.accept$1(this);
  57902. if (needsParens)
  57903. this._serialize$_buffer.writeCharCode$1(41);
  57904. },
  57905. visitNumber$1: function(value) {
  57906. var t2, _this = this,
  57907. t1 = value.asSlash;
  57908. if (t1 != null) {
  57909. _this.visitNumber$1(t1.item1);
  57910. _this._serialize$_buffer.writeCharCode$1(47);
  57911. _this.visitNumber$1(t1.item2);
  57912. return;
  57913. }
  57914. _this._writeNumber$1(value.value);
  57915. if (!_this._serialize$_inspect) {
  57916. t1 = value.numeratorUnits;
  57917. t2 = t1.length;
  57918. if (t2 > 1 || value.denominatorUnits.length !== 0)
  57919. throw H.wrapException(E.SassScriptException$(value.toString$0(0) + " isn't a valid CSS value."));
  57920. if (t2 !== 0)
  57921. _this._serialize$_buffer.write$1(0, C.JSArray_methods.get$first(t1));
  57922. } else
  57923. _this._serialize$_buffer.write$1(0, value.get$unitString());
  57924. },
  57925. _writeNumber$1: function(number) {
  57926. var t1, text, text0, _this = this,
  57927. integer = T.fuzzyIsInt(number) ? J.round$0$n(number) : null;
  57928. if (integer != null) {
  57929. t1 = integer >= 1e21 ? _this._removeExponent$1(C.JSInt_methods.toString$0(integer)) : C.JSInt_methods.toString$0(integer);
  57930. _this._serialize$_buffer.write$1(0, t1);
  57931. return;
  57932. }
  57933. text = number >= 1e21 ? _this._removeExponent$1(C.JSNumber_methods.toString$0(number)) : C.JSNumber_methods.toString$0(number);
  57934. text0 = _this._style === C.OutputStyle_compressed && C.JSString_methods._codeUnitAt$1(text, 0) === 48 ? C.JSString_methods.substring$1(text, 1) : text;
  57935. if (text.length < 12) {
  57936. _this._serialize$_buffer.write$1(0, text0);
  57937. return;
  57938. }
  57939. _this._writeDecimal$1(text0);
  57940. },
  57941. _removeExponent$1: function(text) {
  57942. var exponent, buffer, t2, additionalZeroes, negative, _null = null,
  57943. t1 = text.length,
  57944. i = 0;
  57945. while (true) {
  57946. if (!(i < t1)) {
  57947. exponent = _null;
  57948. buffer = exponent;
  57949. break;
  57950. }
  57951. c$0: {
  57952. if (C.JSString_methods._codeUnitAt$1(text, i) !== 101)
  57953. break c$0;
  57954. buffer = new P.StringBuffer("");
  57955. t2 = H.Primitives_stringFromCharCode(C.JSString_methods._codeUnitAt$1(text, 0));
  57956. buffer._contents = t2;
  57957. if (i > 2)
  57958. buffer._contents = t2 + C.JSString_methods.substring$2(text, 2, i);
  57959. exponent = P.int_parse(C.JSString_methods.substring$2(text, i + 1, t1), _null, _null);
  57960. break;
  57961. }
  57962. ++i;
  57963. }
  57964. if (buffer == null)
  57965. return text;
  57966. if (exponent > 0) {
  57967. t1 = buffer._contents;
  57968. additionalZeroes = exponent - (t1.length - 1);
  57969. for (i = 0; i < additionalZeroes; ++i)
  57970. t1 = buffer._contents += H.Primitives_stringFromCharCode(48);
  57971. return t1.charCodeAt(0) == 0 ? t1 : t1;
  57972. } else {
  57973. negative = C.JSString_methods._codeUnitAt$1(text, 0) === 45;
  57974. t1 = (negative ? H.Primitives_stringFromCharCode(45) : "") + "0.";
  57975. for (i = -1; i > exponent; --i)
  57976. t1 += H.Primitives_stringFromCharCode(48);
  57977. if (negative) {
  57978. t2 = buffer._contents;
  57979. t2 = C.JSString_methods.substring$1(t2.charCodeAt(0) == 0 ? t2 : t2, 1);
  57980. } else
  57981. t2 = buffer;
  57982. t2 = t1 + H.S(t2);
  57983. return t2.charCodeAt(0) == 0 ? t2 : t2;
  57984. }
  57985. },
  57986. _writeDecimal$1: function(text) {
  57987. var t1, t2, textIndex, codeUnit, digits, t3, digitsIndex, digitsIndex0, textIndex0, newDigit, i;
  57988. for (t1 = text.length, t2 = this._serialize$_buffer, textIndex = 0; textIndex < t1; ++textIndex) {
  57989. codeUnit = C.JSString_methods._codeUnitAt$1(text, textIndex);
  57990. if (codeUnit === 46) {
  57991. if (textIndex === t1 - 2 && C.JSString_methods.codeUnitAt$1(text, t1 - 1) === 48)
  57992. return;
  57993. t2.writeCharCode$1(codeUnit);
  57994. ++textIndex;
  57995. break;
  57996. }
  57997. t2.writeCharCode$1(codeUnit);
  57998. }
  57999. if (textIndex === t1)
  58000. return;
  58001. digits = new Uint8Array(10);
  58002. t3 = digits.length;
  58003. digitsIndex = 0;
  58004. while (true) {
  58005. if (!(textIndex < t1 && digitsIndex < t3))
  58006. break;
  58007. digitsIndex0 = digitsIndex + 1;
  58008. textIndex0 = textIndex + 1;
  58009. digits[digitsIndex] = C.JSString_methods._codeUnitAt$1(text, textIndex) - 48;
  58010. digitsIndex = digitsIndex0;
  58011. textIndex = textIndex0;
  58012. }
  58013. if (textIndex !== t1 && C.JSString_methods._codeUnitAt$1(text, textIndex) - 48 >= 5)
  58014. for (; digitsIndex >= 0; digitsIndex = digitsIndex0) {
  58015. digitsIndex0 = digitsIndex - 1;
  58016. newDigit = digits[digitsIndex0] + 1;
  58017. digits[digitsIndex0] = newDigit;
  58018. if (newDigit !== 10)
  58019. break;
  58020. }
  58021. while (true) {
  58022. if (!(digitsIndex > 0 && digits[digitsIndex - 1] === 0))
  58023. break;
  58024. --digitsIndex;
  58025. }
  58026. for (i = 0; i < digitsIndex; ++i)
  58027. t2.writeCharCode$1(48 + digits[i]);
  58028. },
  58029. _visitQuotedString$2$forceDoubleQuote: function(string, forceDoubleQuote) {
  58030. var t1, includesSingleQuote, includesDoubleQuote, i, char, t2, next, quote, _this = this,
  58031. buffer = forceDoubleQuote ? _this._serialize$_buffer : new P.StringBuffer("");
  58032. if (forceDoubleQuote)
  58033. buffer.writeCharCode$1(34);
  58034. for (t1 = string.length, includesSingleQuote = false, includesDoubleQuote = false, i = 0; i < t1; ++i) {
  58035. char = C.JSString_methods._codeUnitAt$1(string, i);
  58036. switch (char) {
  58037. case 39:
  58038. if (forceDoubleQuote)
  58039. buffer.writeCharCode$1(39);
  58040. else {
  58041. if (includesDoubleQuote) {
  58042. _this._visitQuotedString$2$forceDoubleQuote(string, true);
  58043. return;
  58044. } else
  58045. buffer.writeCharCode$1(39);
  58046. includesSingleQuote = true;
  58047. }
  58048. break;
  58049. case 34:
  58050. if (forceDoubleQuote) {
  58051. buffer.writeCharCode$1(92);
  58052. buffer.writeCharCode$1(34);
  58053. } else {
  58054. if (includesSingleQuote) {
  58055. _this._visitQuotedString$2$forceDoubleQuote(string, true);
  58056. return;
  58057. } else
  58058. buffer.writeCharCode$1(34);
  58059. includesDoubleQuote = true;
  58060. }
  58061. break;
  58062. case 0:
  58063. case 1:
  58064. case 2:
  58065. case 3:
  58066. case 4:
  58067. case 5:
  58068. case 6:
  58069. case 7:
  58070. case 8:
  58071. case 10:
  58072. case 11:
  58073. case 12:
  58074. case 13:
  58075. case 14:
  58076. case 15:
  58077. case 16:
  58078. case 17:
  58079. case 18:
  58080. case 19:
  58081. case 20:
  58082. case 21:
  58083. case 22:
  58084. case 23:
  58085. case 24:
  58086. case 25:
  58087. case 26:
  58088. case 27:
  58089. case 28:
  58090. case 29:
  58091. case 30:
  58092. case 31:
  58093. buffer.writeCharCode$1(92);
  58094. if (char > 15) {
  58095. t2 = char >>> 4;
  58096. buffer.writeCharCode$1(t2 < 10 ? 48 + t2 : 87 + t2);
  58097. }
  58098. t2 = char & 15;
  58099. buffer.writeCharCode$1(t2 < 10 ? 48 + t2 : 87 + t2);
  58100. t2 = i + 1;
  58101. if (t1 === t2)
  58102. break;
  58103. next = C.JSString_methods._codeUnitAt$1(string, t2);
  58104. if (T.isHex(next) || next === 32 || next === 9)
  58105. buffer.writeCharCode$1(32);
  58106. break;
  58107. case 92:
  58108. buffer.writeCharCode$1(92);
  58109. buffer.writeCharCode$1(92);
  58110. break;
  58111. default:
  58112. buffer.writeCharCode$1(char);
  58113. break;
  58114. }
  58115. }
  58116. if (forceDoubleQuote)
  58117. buffer.writeCharCode$1(34);
  58118. else {
  58119. quote = includesDoubleQuote ? 39 : 34;
  58120. t1 = _this._serialize$_buffer;
  58121. t1.writeCharCode$1(quote);
  58122. t1.write$1(0, buffer);
  58123. t1.writeCharCode$1(quote);
  58124. }
  58125. },
  58126. _visitQuotedString$1: function(string) {
  58127. return this._visitQuotedString$2$forceDoubleQuote(string, false);
  58128. },
  58129. _visitUnquotedString$1: function(string) {
  58130. var t1, t2, afterNewline, i, char;
  58131. for (t1 = string.length, t2 = this._serialize$_buffer, afterNewline = false, i = 0; i < t1; ++i) {
  58132. char = C.JSString_methods._codeUnitAt$1(string, i);
  58133. switch (char) {
  58134. case 10:
  58135. t2.writeCharCode$1(32);
  58136. afterNewline = true;
  58137. break;
  58138. case 32:
  58139. if (!afterNewline)
  58140. t2.writeCharCode$1(32);
  58141. break;
  58142. default:
  58143. t2.writeCharCode$1(char);
  58144. afterNewline = false;
  58145. break;
  58146. }
  58147. }
  58148. },
  58149. visitComplexSelector$1: function(complex) {
  58150. var t1, t2, t3, t4, lastComponent, _i, component, t5;
  58151. for (t1 = complex.components, t2 = t1.length, t3 = this._serialize$_buffer, t4 = this._style === C.OutputStyle_compressed, lastComponent = null, _i = 0; _i < t2; ++_i, lastComponent = component) {
  58152. component = t1[_i];
  58153. if (lastComponent != null)
  58154. if (!(t4 && lastComponent instanceof S.Combinator))
  58155. t5 = !(t4 && component instanceof S.Combinator);
  58156. else
  58157. t5 = false;
  58158. else
  58159. t5 = false;
  58160. if (t5)
  58161. t3.write$1(0, " ");
  58162. if (component instanceof X.CompoundSelector)
  58163. this.visitCompoundSelector$1(component);
  58164. else
  58165. t3.write$1(0, component);
  58166. }
  58167. },
  58168. visitCompoundSelector$1: function(compound) {
  58169. var t2, t3, _i,
  58170. t1 = this._serialize$_buffer,
  58171. start = t1.get$length(t1);
  58172. for (t2 = compound.components, t3 = t2.length, _i = 0; _i < t3; ++_i)
  58173. t2[_i].accept$1(this);
  58174. if (t1.get$length(t1) === start)
  58175. t1.writeCharCode$1(42);
  58176. },
  58177. visitSelectorList$1: function(list) {
  58178. var complexes, t1, t2, t3, first, t4, _this = this;
  58179. if (_this._serialize$_inspect)
  58180. complexes = list.components;
  58181. else {
  58182. t1 = list.components;
  58183. complexes = new H.WhereIterable(t1, new N._SerializeVisitor_visitSelectorList_closure(), H._arrayInstanceType(t1)._eval$1("WhereIterable<1>"));
  58184. }
  58185. for (t1 = J.get$iterator$ax(complexes), t2 = _this._style !== C.OutputStyle_compressed, t3 = _this._serialize$_buffer, first = true; t1.moveNext$0();) {
  58186. t4 = t1.get$current(t1);
  58187. if (first)
  58188. first = false;
  58189. else {
  58190. t3.writeCharCode$1(44);
  58191. if (t4.lineBreak) {
  58192. if (t2)
  58193. t3.write$1(0, "\n");
  58194. } else if (t2)
  58195. t3.writeCharCode$1(32);
  58196. }
  58197. _this.visitComplexSelector$1(t4);
  58198. }
  58199. },
  58200. visitPseudoSelector$1: function(pseudo) {
  58201. var t4, t5, t6,
  58202. t1 = pseudo.selector,
  58203. t2 = t1 == null,
  58204. t3 = !t2;
  58205. if (t3 && pseudo.name === "not" && t1.get$isInvisible())
  58206. return;
  58207. t4 = this._serialize$_buffer;
  58208. t4.writeCharCode$1(58);
  58209. if (!pseudo.isSyntacticClass)
  58210. t4.writeCharCode$1(58);
  58211. t4.write$1(0, pseudo.name);
  58212. t5 = pseudo.argument;
  58213. t6 = t5 == null;
  58214. if (t6 && t2)
  58215. return;
  58216. t4.writeCharCode$1(40);
  58217. if (!t6) {
  58218. t4.write$1(0, t5);
  58219. if (t3)
  58220. t4.writeCharCode$1(32);
  58221. }
  58222. if (t3)
  58223. this.visitSelectorList$1(t1);
  58224. t4.writeCharCode$1(41);
  58225. },
  58226. _write$1: function(value) {
  58227. return this._serialize$_buffer.forSpan$2(value.get$span(), new N._SerializeVisitor__write_closure(this, value));
  58228. },
  58229. _serialize$_visitChildren$1: function(children) {
  58230. var _this = this, t1 = {},
  58231. t2 = _this._serialize$_buffer;
  58232. t2.writeCharCode$1(123);
  58233. if (children.every$1(children, _this.get$_isInvisible())) {
  58234. t2.writeCharCode$1(125);
  58235. return;
  58236. }
  58237. _this._writeLineFeed$0();
  58238. t1.previous = null;
  58239. ++_this._indentation;
  58240. new N._SerializeVisitor__visitChildren_closure(t1, _this, children).call$0();
  58241. --_this._indentation;
  58242. t1 = t1.previous;
  58243. if ((type$.CssParentNode._is(t1) ? t1.get$isChildless() : !type$.CssComment._is(t1)) && _this._style !== C.OutputStyle_compressed)
  58244. t2.writeCharCode$1(59);
  58245. _this._writeLineFeed$0();
  58246. _this._writeIndentation$0();
  58247. t2.writeCharCode$1(125);
  58248. },
  58249. _writeLineFeed$0: function() {
  58250. if (this._style !== C.OutputStyle_compressed)
  58251. this._serialize$_buffer.write$1(0, "\n");
  58252. },
  58253. _writeIndentation$0: function() {
  58254. var _this = this;
  58255. if (_this._style === C.OutputStyle_compressed)
  58256. return;
  58257. _this._writeTimes$2(_this._indentCharacter, _this._indentation * _this._indentWidth);
  58258. },
  58259. _writeTimes$2: function(char, times) {
  58260. var t1, i;
  58261. for (t1 = this._serialize$_buffer, i = 0; i < times; ++i)
  58262. t1.writeCharCode$1(char);
  58263. },
  58264. _writeBetween$1$3: function(iterable, text, callback) {
  58265. var t1, t2, first, value;
  58266. for (t1 = J.get$iterator$ax(iterable), t2 = this._serialize$_buffer, first = true; t1.moveNext$0();) {
  58267. value = t1.get$current(t1);
  58268. if (first)
  58269. first = false;
  58270. else
  58271. t2.write$1(0, text);
  58272. callback.call$1(value);
  58273. }
  58274. },
  58275. _writeBetween$3: function(iterable, text, callback) {
  58276. return this._writeBetween$1$3(iterable, text, callback, type$.dynamic);
  58277. },
  58278. _isInvisible$1: function(node) {
  58279. if (this._serialize$_inspect)
  58280. return false;
  58281. if (this._style === C.OutputStyle_compressed && type$.CssComment._is(node) && J._codeUnitAt$1$s(node.text, 2) !== 33)
  58282. return true;
  58283. if (type$.CssParentNode._is(node)) {
  58284. if (type$.CssAtRule._is(node))
  58285. return false;
  58286. if (type$.CssStyleRule._is(node) && node.selector.value.get$isInvisible())
  58287. return true;
  58288. return J.every$1$ax(node.get$children(), this.get$_isInvisible());
  58289. } else
  58290. return false;
  58291. }
  58292. };
  58293. N._SerializeVisitor_visitCssComment_closure.prototype = {
  58294. call$0: function() {
  58295. var t2, t3, minimumIndentation,
  58296. t1 = this.$this;
  58297. if (t1._style === C.OutputStyle_compressed && J._codeUnitAt$1$s(this.node.text, 2) !== 33)
  58298. return;
  58299. t2 = this.node;
  58300. t3 = t2.text;
  58301. minimumIndentation = t1._minimumIndentation$1(t3);
  58302. if (minimumIndentation == null) {
  58303. t1._writeIndentation$0();
  58304. t1._serialize$_buffer.write$1(0, t3);
  58305. return;
  58306. }
  58307. t2 = t2.span;
  58308. if (t2 != null) {
  58309. t2 = Y.FileLocation$_(t2.file, t2._file$_start);
  58310. minimumIndentation = Math.min(minimumIndentation, t2.file.getColumn$1(t2.offset));
  58311. }
  58312. t1._writeIndentation$0();
  58313. t1._writeWithIndent$2(t3, minimumIndentation);
  58314. },
  58315. $signature: 0
  58316. };
  58317. N._SerializeVisitor_visitCssAtRule_closure.prototype = {
  58318. call$0: function() {
  58319. var t3,
  58320. t1 = this.$this,
  58321. t2 = t1._serialize$_buffer;
  58322. t2.writeCharCode$1(64);
  58323. t3 = this.node;
  58324. t1._write$1(t3.name);
  58325. t3 = t3.value;
  58326. if (t3 != null) {
  58327. t2.writeCharCode$1(32);
  58328. t1._write$1(t3);
  58329. }
  58330. },
  58331. $signature: 0
  58332. };
  58333. N._SerializeVisitor_visitCssMediaRule_closure.prototype = {
  58334. call$0: function() {
  58335. var t3, t4,
  58336. t1 = this.$this,
  58337. t2 = t1._serialize$_buffer;
  58338. t2.write$1(0, "@media");
  58339. t3 = t1._style === C.OutputStyle_compressed;
  58340. if (t3) {
  58341. t4 = C.JSArray_methods.get$first(this.node.queries);
  58342. t4 = !(t4.modifier == null && t4.type == null);
  58343. } else
  58344. t4 = true;
  58345. if (t4)
  58346. t2.writeCharCode$1(32);
  58347. t2 = t3 ? "," : ", ";
  58348. t1._writeBetween$3(this.node.queries, t2, t1.get$_visitMediaQuery());
  58349. },
  58350. $signature: 0
  58351. };
  58352. N._SerializeVisitor_visitCssImport_closure.prototype = {
  58353. call$0: function() {
  58354. var t3, t4, t5, t6,
  58355. t1 = this.$this,
  58356. t2 = t1._serialize$_buffer;
  58357. t2.write$1(0, "@import");
  58358. t3 = t1._style === C.OutputStyle_compressed;
  58359. t4 = !t3;
  58360. if (t4)
  58361. t2.writeCharCode$1(32);
  58362. t5 = this.node;
  58363. t2.forSpan$2(t5.url.get$span(), new N._SerializeVisitor_visitCssImport__closure(t1, t5));
  58364. t6 = t5.supports;
  58365. if (t6 != null) {
  58366. if (t4)
  58367. t2.writeCharCode$1(32);
  58368. t1._write$1(t6);
  58369. }
  58370. t5 = t5.media;
  58371. if (t5 != null) {
  58372. if (t4)
  58373. t2.writeCharCode$1(32);
  58374. t2 = t3 ? "," : ", ";
  58375. t1._writeBetween$3(t5, t2, t1.get$_visitMediaQuery());
  58376. }
  58377. },
  58378. $signature: 0
  58379. };
  58380. N._SerializeVisitor_visitCssImport__closure.prototype = {
  58381. call$0: function() {
  58382. var t1 = this.node.url;
  58383. return this.$this._writeImportUrl$1(t1.get$value(t1));
  58384. },
  58385. $signature: 1
  58386. };
  58387. N._SerializeVisitor_visitCssKeyframeBlock_closure.prototype = {
  58388. call$0: function() {
  58389. var t1 = this.$this,
  58390. t2 = t1._style === C.OutputStyle_compressed ? "," : ", ",
  58391. t3 = t1._serialize$_buffer;
  58392. return t1._writeBetween$3(this.node.selector.value, t2, t3.get$write(t3));
  58393. },
  58394. $signature: 1
  58395. };
  58396. N._SerializeVisitor_visitCssStyleRule_closure.prototype = {
  58397. call$0: function() {
  58398. var t1 = this.node.selector.value;
  58399. t1.toString;
  58400. return this.$this.visitSelectorList$1(t1);
  58401. },
  58402. $signature: 1
  58403. };
  58404. N._SerializeVisitor_visitCssSupportsRule_closure.prototype = {
  58405. call$0: function() {
  58406. var t1 = this.$this,
  58407. t2 = t1._serialize$_buffer;
  58408. t2.write$1(0, "@supports");
  58409. if (!(t1._style === C.OutputStyle_compressed && J.codeUnitAt$1$s(this.node.condition.value, 0) === 40))
  58410. t2.writeCharCode$1(32);
  58411. t1._write$1(this.node.condition);
  58412. },
  58413. $signature: 0
  58414. };
  58415. N._SerializeVisitor_visitCssDeclaration_closure.prototype = {
  58416. call$0: function() {
  58417. var t1 = this.$this,
  58418. t2 = this.node;
  58419. if (t1._style === C.OutputStyle_compressed)
  58420. t1._writeFoldedValue$1(t2);
  58421. else
  58422. t1._writeReindentedValue$1(t2);
  58423. },
  58424. $signature: 0
  58425. };
  58426. N._SerializeVisitor_visitCssDeclaration_closure0.prototype = {
  58427. call$0: function() {
  58428. return this.node.value.value.accept$1(this.$this);
  58429. },
  58430. $signature: 1
  58431. };
  58432. N._SerializeVisitor_visitList_closure.prototype = {
  58433. call$1: function(element) {
  58434. return !element.get$isBlank();
  58435. }
  58436. };
  58437. N._SerializeVisitor_visitList_closure0.prototype = {
  58438. call$1: function(element) {
  58439. var t1 = this.$this,
  58440. needsParens = t1._elementNeedsParens$2(this.value.separator, element);
  58441. if (needsParens)
  58442. t1._serialize$_buffer.writeCharCode$1(40);
  58443. element.accept$1(t1);
  58444. if (needsParens)
  58445. t1._serialize$_buffer.writeCharCode$1(41);
  58446. }
  58447. };
  58448. N._SerializeVisitor_visitList_closure1.prototype = {
  58449. call$1: function(element) {
  58450. element.accept$1(this.$this);
  58451. }
  58452. };
  58453. N._SerializeVisitor_visitMap_closure.prototype = {
  58454. call$1: function(key) {
  58455. var t1 = this.$this;
  58456. t1._writeMapElement$1(key);
  58457. t1._serialize$_buffer.write$1(0, ": ");
  58458. t1._writeMapElement$1(this.map.contents.$index(0, key));
  58459. }
  58460. };
  58461. N._SerializeVisitor_visitSelectorList_closure.prototype = {
  58462. call$1: function(complex) {
  58463. return !complex.get$isInvisible();
  58464. }
  58465. };
  58466. N._SerializeVisitor__write_closure.prototype = {
  58467. call$0: function() {
  58468. var t1 = this.value;
  58469. return this.$this._serialize$_buffer.write$1(0, t1.get$value(t1));
  58470. },
  58471. $signature: 1
  58472. };
  58473. N._SerializeVisitor__visitChildren_closure.prototype = {
  58474. call$0: function() {
  58475. var t1, t2, t3, t4, t5, t6, t7, i, child, t8;
  58476. for (t1 = this.children._collection$_source, t2 = J.getInterceptor$asx(t1), t3 = this._box_0, t4 = this.$this, t5 = type$.CssComment, t6 = type$.CssParentNode, t7 = t4._serialize$_buffer, i = 0; i < t2.get$length(t1); ++i) {
  58477. child = t2.elementAt$1(t1, i);
  58478. if (t4._isInvisible$1(child))
  58479. continue;
  58480. t8 = t3.previous;
  58481. if (t8 != null) {
  58482. if (t6._is(t8) ? t8.get$isChildless() : !t5._is(t8))
  58483. t7.writeCharCode$1(59);
  58484. t8 = t4._style !== C.OutputStyle_compressed;
  58485. if (t8)
  58486. t7.write$1(0, "\n");
  58487. if (t3.previous.get$isGroupEnd())
  58488. if (t8)
  58489. t7.write$1(0, "\n");
  58490. }
  58491. t3.previous = child;
  58492. child.accept$1(t4);
  58493. }
  58494. },
  58495. $signature: 0
  58496. };
  58497. N.OutputStyle.prototype = {
  58498. toString$0: function(_) {
  58499. return this._serialize$_name;
  58500. }
  58501. };
  58502. N.LineFeed.prototype = {
  58503. toString$0: function(_) {
  58504. return "lf";
  58505. }
  58506. };
  58507. N.SerializeResult.prototype = {};
  58508. N.withWarnCallback_closure.prototype = {
  58509. call$0: function() {
  58510. return this.callback.call$0();
  58511. },
  58512. "call*": "call$0",
  58513. $requiredArgCount: 0,
  58514. $signature: function() {
  58515. return this.T._eval$1("0()");
  58516. }
  58517. };
  58518. L.Entry.prototype = {
  58519. compareTo$1: function(_, other) {
  58520. var t1, t2, t3,
  58521. res = this.target.compareTo$1(0, other.target);
  58522. if (res !== 0)
  58523. return res;
  58524. t1 = this.source;
  58525. t2 = J.toString$0$(t1.file.url);
  58526. t3 = other.source;
  58527. res = C.JSString_methods.compareTo$1(t2, J.toString$0$(t3.file.url));
  58528. if (res !== 0)
  58529. return res;
  58530. return t1.compareTo$1(0, t3);
  58531. },
  58532. $isComparable: 1,
  58533. get$source: function() {
  58534. return this.source;
  58535. },
  58536. get$target: function() {
  58537. return this.target;
  58538. },
  58539. get$identifierName: function() {
  58540. return this.identifierName;
  58541. }
  58542. };
  58543. T.Mapping.prototype = {};
  58544. T.SingleMapping.prototype = {
  58545. toJson$1$includeSourceContents: function(includeSourceContents) {
  58546. var t1, t2, line, column, srcLine, srcColumn, srcUrlId, srcNameId, first, _i, entry, nextLine, i, t3, t4, _i0, segment, column0, t5, newUrlId, srcLine0, srcColumn0, srcNameId0, result, _this = this,
  58547. buff = new P.StringBuffer("");
  58548. for (t1 = _this.lines, t2 = t1.length, line = 0, column = 0, srcLine = 0, srcColumn = 0, srcUrlId = 0, srcNameId = 0, first = true, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  58549. entry = t1[_i];
  58550. nextLine = entry.line;
  58551. if (nextLine > line) {
  58552. for (i = line; i < nextLine; ++i)
  58553. buff._contents += ";";
  58554. line = nextLine;
  58555. column = 0;
  58556. first = true;
  58557. }
  58558. for (t3 = entry.entries, t4 = t3.length, _i0 = 0; _i0 < t3.length; t3.length === t4 || (0, H.throwConcurrentModificationError)(t3), ++_i0, column = column0, first = false) {
  58559. segment = t3[_i0];
  58560. if (!first)
  58561. buff._contents += ",";
  58562. column0 = segment.column;
  58563. t5 = L.encodeVlq(column0 - column);
  58564. t5 = P.StringBuffer__writeAll(buff._contents, t5, "");
  58565. buff._contents = t5;
  58566. newUrlId = segment.sourceUrlId;
  58567. if (newUrlId == null)
  58568. continue;
  58569. t5 = P.StringBuffer__writeAll(t5, L.encodeVlq(newUrlId - srcUrlId), "");
  58570. buff._contents = t5;
  58571. srcLine0 = segment.sourceLine;
  58572. t5 = P.StringBuffer__writeAll(t5, L.encodeVlq(srcLine0 - srcLine), "");
  58573. buff._contents = t5;
  58574. srcColumn0 = segment.sourceColumn;
  58575. t5 = P.StringBuffer__writeAll(t5, L.encodeVlq(srcColumn0 - srcColumn), "");
  58576. buff._contents = t5;
  58577. srcNameId0 = segment.sourceNameId;
  58578. if (srcNameId0 == null) {
  58579. srcUrlId = newUrlId;
  58580. srcColumn = srcColumn0;
  58581. srcLine = srcLine0;
  58582. continue;
  58583. }
  58584. buff._contents = P.StringBuffer__writeAll(t5, L.encodeVlq(srcNameId0 - srcNameId), "");
  58585. srcNameId = srcNameId0;
  58586. srcUrlId = newUrlId;
  58587. srcColumn = srcColumn0;
  58588. srcLine = srcLine0;
  58589. }
  58590. }
  58591. t1 = _this.sourceRoot;
  58592. if (t1 == null)
  58593. t1 = "";
  58594. t2 = buff._contents;
  58595. result = P.LinkedHashMap_LinkedHashMap$_literal(["version", 3, "sourceRoot", t1, "sources", _this.urls, "names", _this.names, "mappings", t2.charCodeAt(0) == 0 ? t2 : t2], type$.String, type$.Object);
  58596. t1 = _this.targetUrl;
  58597. if (t1 != null)
  58598. result.$indexSet(0, "file", t1);
  58599. if (includeSourceContents) {
  58600. t1 = _this.files;
  58601. result.$indexSet(0, "sourcesContent", new H.MappedListIterable(t1, new T.SingleMapping_toJson_closure(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).toList$0(0));
  58602. }
  58603. _this.extensions.forEach$1(0, new T.SingleMapping_toJson_closure0(result));
  58604. return result;
  58605. },
  58606. toJson$0: function() {
  58607. return this.toJson$1$includeSourceContents(false);
  58608. },
  58609. toString$0: function(_) {
  58610. var _this = this,
  58611. t1 = H.getRuntimeType(_this).toString$0(0);
  58612. t1 + " : [";
  58613. t1 = t1 + " : [targetUrl: " + H.S(_this.targetUrl) + ", sourceRoot: " + H.S(_this.sourceRoot) + ", urls: " + H.S(_this.urls) + ", names: " + H.S(_this.names) + ", lines: " + H.S(_this.lines) + "]";
  58614. return t1.charCodeAt(0) == 0 ? t1 : t1;
  58615. }
  58616. };
  58617. T.SingleMapping_SingleMapping$fromEntries_closure.prototype = {
  58618. call$0: function() {
  58619. var t1 = this.urls;
  58620. return t1.get$length(t1);
  58621. },
  58622. $signature: 8
  58623. };
  58624. T.SingleMapping_SingleMapping$fromEntries_closure0.prototype = {
  58625. call$0: function() {
  58626. return type$.FileLocation._as(this.sourceEntry.get$source()).file;
  58627. },
  58628. $signature: 47
  58629. };
  58630. T.SingleMapping_SingleMapping$fromEntries_closure1.prototype = {
  58631. call$1: function(i) {
  58632. return this.files.$index(0, i);
  58633. },
  58634. $signature: 148
  58635. };
  58636. T.SingleMapping_toJson_closure.prototype = {
  58637. call$1: function(file) {
  58638. return file == null ? null : P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(file._decodedChars, 0, null), 0, null);
  58639. }
  58640. };
  58641. T.SingleMapping_toJson_closure0.prototype = {
  58642. call$2: function($name, value) {
  58643. this.result.$indexSet(0, $name, value);
  58644. return value;
  58645. }
  58646. };
  58647. T.TargetLineEntry.prototype = {
  58648. toString$0: function(_) {
  58649. return H.getRuntimeType(this).toString$0(0) + ": " + this.line + " " + H.S(this.entries);
  58650. }
  58651. };
  58652. T.TargetEntry.prototype = {
  58653. toString$0: function(_) {
  58654. var _this = this;
  58655. return H.getRuntimeType(_this).toString$0(0) + ": (" + _this.column + ", " + H.S(_this.sourceUrlId) + ", " + H.S(_this.sourceLine) + ", " + H.S(_this.sourceColumn) + ", " + H.S(_this.sourceNameId) + ")";
  58656. }
  58657. };
  58658. Y.SourceFile.prototype = {
  58659. get$length: function(_) {
  58660. return this._decodedChars.length;
  58661. },
  58662. get$lines: function() {
  58663. return this._lineStarts.length;
  58664. },
  58665. SourceFile$decoded$2$url: function(decodedChars, url) {
  58666. var t1, t2, t3, i, c, j;
  58667. for (t1 = this._decodedChars, t2 = t1.length, t3 = this._lineStarts, i = 0; i < t2; ++i) {
  58668. c = t1[i];
  58669. if (c === 13) {
  58670. j = i + 1;
  58671. if (j >= t2 || t1[j] !== 10)
  58672. c = 10;
  58673. }
  58674. if (c === 10)
  58675. t3.push(i + 1);
  58676. }
  58677. },
  58678. span$2: function(start, end) {
  58679. return Y._FileSpan$(this, start, end == null ? this._decodedChars.length : end);
  58680. },
  58681. span$1: function(start) {
  58682. return this.span$2(start, null);
  58683. },
  58684. getLine$1: function(offset) {
  58685. var t1, _this = this;
  58686. if (offset < 0)
  58687. throw H.wrapException(P.RangeError$("Offset may not be negative, was " + offset + "."));
  58688. else if (offset > _this._decodedChars.length)
  58689. throw H.wrapException(P.RangeError$("Offset " + offset + " must not be greater than the number of characters in the file, " + _this.get$length(_this) + "."));
  58690. t1 = _this._lineStarts;
  58691. if (offset < C.JSArray_methods.get$first(t1))
  58692. return -1;
  58693. if (offset >= C.JSArray_methods.get$last(t1))
  58694. return t1.length - 1;
  58695. if (_this._isNearCachedLine$1(offset))
  58696. return _this._cachedLine;
  58697. return _this._cachedLine = _this._binarySearch$1(offset) - 1;
  58698. },
  58699. _isNearCachedLine$1: function(offset) {
  58700. var t2, t3,
  58701. t1 = this._cachedLine;
  58702. if (t1 == null)
  58703. return false;
  58704. t2 = this._lineStarts;
  58705. if (offset < t2[t1])
  58706. return false;
  58707. t3 = t2.length;
  58708. if (t1 >= t3 - 1 || offset < t2[t1 + 1])
  58709. return true;
  58710. if (t1 >= t3 - 2 || offset < t2[t1 + 2]) {
  58711. this._cachedLine = t1 + 1;
  58712. return true;
  58713. }
  58714. return false;
  58715. },
  58716. _binarySearch$1: function(offset) {
  58717. var min, half,
  58718. t1 = this._lineStarts,
  58719. max = t1.length - 1;
  58720. for (min = 0; min < max;) {
  58721. half = min + C.JSInt_methods._tdivFast$1(max - min, 2);
  58722. if (t1[half] > offset)
  58723. max = half;
  58724. else
  58725. min = half + 1;
  58726. }
  58727. return max;
  58728. },
  58729. getColumn$1: function(offset) {
  58730. var line, lineStart, _this = this;
  58731. if (offset < 0)
  58732. throw H.wrapException(P.RangeError$("Offset may not be negative, was " + offset + "."));
  58733. else if (offset > _this._decodedChars.length)
  58734. throw H.wrapException(P.RangeError$("Offset " + offset + " must be not be greater than the number of characters in the file, " + _this.get$length(_this) + "."));
  58735. line = _this.getLine$1(offset);
  58736. lineStart = _this._lineStarts[line];
  58737. if (lineStart > offset)
  58738. throw H.wrapException(P.RangeError$("Line " + H.S(line) + " comes after offset " + offset + "."));
  58739. return offset - lineStart;
  58740. },
  58741. getOffset$1: function(line) {
  58742. var t1, t2, result, t3;
  58743. if (line < 0)
  58744. throw H.wrapException(P.RangeError$("Line may not be negative, was " + H.S(line) + "."));
  58745. else {
  58746. t1 = this._lineStarts;
  58747. t2 = t1.length;
  58748. if (line >= t2)
  58749. throw H.wrapException(P.RangeError$("Line " + H.S(line) + " must be less than the number of lines in the file, " + this.get$lines() + "."));
  58750. }
  58751. result = t1[line];
  58752. if (result <= this._decodedChars.length) {
  58753. t3 = line + 1;
  58754. t1 = t3 < t2 && result >= t1[t3];
  58755. } else
  58756. t1 = true;
  58757. if (t1)
  58758. throw H.wrapException(P.RangeError$("Line " + H.S(line) + " doesn't have 0 columns."));
  58759. return result;
  58760. }
  58761. };
  58762. Y.FileLocation.prototype = {
  58763. get$sourceUrl: function() {
  58764. return this.file.url;
  58765. },
  58766. get$line: function() {
  58767. return this.file.getLine$1(this.offset);
  58768. },
  58769. get$column: function() {
  58770. return this.file.getColumn$1(this.offset);
  58771. },
  58772. pointSpan$0: function() {
  58773. var t1 = this.offset;
  58774. return Y._FileSpan$(this.file, t1, t1);
  58775. },
  58776. get$offset: function() {
  58777. return this.offset;
  58778. }
  58779. };
  58780. Y.FileSpan.prototype = {$isComparable: 1, $isSourceSpan: 1, $isSourceSpanWithContext: 1};
  58781. Y._FileSpan.prototype = {
  58782. get$sourceUrl: function() {
  58783. return this.file.url;
  58784. },
  58785. get$length: function(_) {
  58786. return this._end - this._file$_start;
  58787. },
  58788. get$start: function(_) {
  58789. return Y.FileLocation$_(this.file, this._file$_start);
  58790. },
  58791. get$end: function(_) {
  58792. return Y.FileLocation$_(this.file, this._end);
  58793. },
  58794. get$text: function() {
  58795. return P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(this.file._decodedChars, this._file$_start, this._end), 0, null);
  58796. },
  58797. get$context: function(_) {
  58798. var _this = this,
  58799. t1 = _this.file,
  58800. endOffset = _this._end,
  58801. endLine = t1.getLine$1(endOffset);
  58802. if (t1.getColumn$1(endOffset) === 0 && endLine !== 0) {
  58803. if (endOffset - _this._file$_start === 0)
  58804. return endLine === t1._lineStarts.length - 1 ? "" : P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1._decodedChars, t1.getOffset$1(endLine), t1.getOffset$1(endLine + 1)), 0, null);
  58805. } else
  58806. endOffset = endLine === t1._lineStarts.length - 1 ? t1._decodedChars.length : t1.getOffset$1(endLine + 1);
  58807. return P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1._decodedChars, t1.getOffset$1(t1.getLine$1(_this._file$_start)), endOffset), 0, null);
  58808. },
  58809. compareTo$1: function(_, other) {
  58810. var result;
  58811. if (!(other instanceof Y._FileSpan))
  58812. return this.super$SourceSpanMixin$compareTo(0, other);
  58813. result = C.JSInt_methods.compareTo$1(this._file$_start, other._file$_start);
  58814. return result === 0 ? C.JSInt_methods.compareTo$1(this._end, other._end) : result;
  58815. },
  58816. $eq: function(_, other) {
  58817. var _this = this;
  58818. if (other == null)
  58819. return false;
  58820. if (!type$.FileSpan._is(other))
  58821. return _this.super$SourceSpanMixin$$eq(0, other);
  58822. return _this._file$_start === other._file$_start && _this._end === other._end && J.$eq$(_this.file.url, other.file.url);
  58823. },
  58824. get$hashCode: function(_) {
  58825. return Y.SourceSpanMixin.prototype.get$hashCode.call(this, this);
  58826. },
  58827. expand$1: function(_, other) {
  58828. var start, _this = this,
  58829. t1 = _this.file;
  58830. if (!J.$eq$(t1.url, other.file.url))
  58831. throw H.wrapException(P.ArgumentError$('Source URLs "' + H.S(_this.get$sourceUrl()) + '" and "' + H.S(other.get$sourceUrl()) + "\" don't match."));
  58832. start = Math.min(_this._file$_start, other._file$_start);
  58833. return Y._FileSpan$(t1, start, Math.max(_this._end, other._end));
  58834. },
  58835. $isFileSpan: 1,
  58836. $isSourceSpanWithContext: 1
  58837. };
  58838. U.Highlighter.prototype = {
  58839. highlight$0: function() {
  58840. var t2, highlightsByColumn, t3, t4, i, line, lastLine, t5, t6, t7, t8, t9, t10, t11, index, primary, _i, highlight, _this = this,
  58841. t1 = _this._lines;
  58842. _this._writeFileStart$1(C.JSArray_methods.get$first(t1).url);
  58843. t2 = new Array(_this._maxMultilineSpans);
  58844. t2.fixed$length = Array;
  58845. highlightsByColumn = H.setRuntimeTypeInfo(t2, type$.JSArray__Highlight);
  58846. for (t2 = _this._highlighter$_buffer, t3 = highlightsByColumn.length !== 0, t4 = _this._primaryColor, i = 0; i < t1.length; ++i) {
  58847. line = t1[i];
  58848. if (i > 0) {
  58849. lastLine = t1[i - 1];
  58850. t5 = lastLine.url;
  58851. t6 = line.url;
  58852. if (!J.$eq$(t5, t6)) {
  58853. _this._writeSidebar$1$end($._glyphs.get$upEnd());
  58854. t2._contents += "\n";
  58855. _this._writeFileStart$1(t6);
  58856. } else if (lastLine.number + 1 !== line.number) {
  58857. _this._writeSidebar$1$text("...");
  58858. t2._contents += "\n";
  58859. }
  58860. }
  58861. for (t5 = line.highlights, t6 = new H.ReversedListIterable(t5, H._arrayInstanceType(t5)._eval$1("ReversedListIterable<1>")), t6 = new H.ListIterator(t6, t6.get$length(t6)), t7 = line.number, t8 = line.text, t9 = J.getInterceptor$s(t8); t6.moveNext$0();) {
  58862. t10 = t6.__internal$_current;
  58863. t11 = t10.span;
  58864. if (t11.get$start(t11).get$line() != t11.get$end(t11).get$line() && t11.get$start(t11).get$line() === t7 && _this._isOnlyWhitespace$1(t9.substring$2(t8, 0, t11.get$start(t11).get$column()))) {
  58865. index = C.JSArray_methods.indexOf$1(highlightsByColumn, null);
  58866. if (index < 0)
  58867. H.throwExpression(P.ArgumentError$(H.S(highlightsByColumn) + " contains no null elements."));
  58868. highlightsByColumn[index] = t10;
  58869. }
  58870. }
  58871. _this._writeSidebar$1$line(t7);
  58872. t2._contents += " ";
  58873. _this._writeMultilineHighlights$2(line, highlightsByColumn);
  58874. if (t3)
  58875. t2._contents += " ";
  58876. primary = C.JSArray_methods.firstWhere$2$orElse(t5, new U.Highlighter_highlight_closure(), new U.Highlighter_highlight_closure0());
  58877. t6 = primary != null;
  58878. if (t6) {
  58879. t9 = primary.span;
  58880. t10 = t9.get$start(t9).get$line() === t7 ? t9.get$start(t9).get$column() : 0;
  58881. _this._writeHighlightedText$4$color(t8, t10, t9.get$end(t9).get$line() === t7 ? t9.get$end(t9).get$column() : t8.length, t4);
  58882. } else
  58883. _this._writeText$1(t8);
  58884. t2._contents += "\n";
  58885. if (t6)
  58886. _this._writeIndicator$3(line, primary, highlightsByColumn);
  58887. for (t6 = t5.length, _i = 0; _i < t5.length; t5.length === t6 || (0, H.throwConcurrentModificationError)(t5), ++_i) {
  58888. highlight = t5[_i];
  58889. if (highlight.isPrimary)
  58890. continue;
  58891. _this._writeIndicator$3(line, highlight, highlightsByColumn);
  58892. }
  58893. }
  58894. _this._writeSidebar$1$end($._glyphs.get$upEnd());
  58895. t1 = t2._contents;
  58896. return t1.charCodeAt(0) == 0 ? t1 : t1;
  58897. },
  58898. _writeFileStart$1: function(url) {
  58899. var _this = this,
  58900. t1 = !_this._multipleFiles || url == null,
  58901. t2 = $._glyphs;
  58902. if (t1)
  58903. _this._writeSidebar$1$end(t2.get$downEnd());
  58904. else {
  58905. _this._writeSidebar$1$end(t2.get$topLeftCorner());
  58906. _this._colorize$2$color(new U.Highlighter__writeFileStart_closure(_this), "\x1b[34m");
  58907. _this._highlighter$_buffer._contents += " " + H.S($.$get$context().prettyUri$1(url));
  58908. }
  58909. _this._highlighter$_buffer._contents += "\n";
  58910. },
  58911. _writeMultilineHighlights$3$current: function(line, highlightsByColumn, current) {
  58912. var t1, currentColor, t2, t3, t4, t5, foundCurrent, _i, highlight, t6, t7, startLine, endLine, _this = this, _null = null, _box_0 = {};
  58913. _box_0.openedOnThisLine = false;
  58914. _box_0.openedOnThisLineColor = null;
  58915. t1 = current == null;
  58916. if (t1)
  58917. currentColor = _null;
  58918. else
  58919. currentColor = current.isPrimary ? _this._primaryColor : _this._secondaryColor;
  58920. for (t2 = highlightsByColumn.length, t3 = _this._secondaryColor, t1 = !t1, t4 = _this._primaryColor, t5 = _this._highlighter$_buffer, foundCurrent = false, _i = 0; _i < t2; ++_i) {
  58921. highlight = highlightsByColumn[_i];
  58922. t6 = highlight == null;
  58923. t7 = t6 ? _null : highlight.span;
  58924. t7 = t7 == null ? _null : t7.get$start(t7);
  58925. startLine = t7 == null ? _null : t7.get$line();
  58926. t7 = t6 ? _null : highlight.span;
  58927. t7 = t7 == null ? _null : t7.get$end(t7);
  58928. endLine = t7 == null ? _null : t7.get$line();
  58929. if (t1 && highlight === current) {
  58930. _this._colorize$2$color(new U.Highlighter__writeMultilineHighlights_closure(_this, startLine, line), currentColor);
  58931. foundCurrent = true;
  58932. } else if (foundCurrent)
  58933. _this._colorize$2$color(new U.Highlighter__writeMultilineHighlights_closure0(_this, highlight), currentColor);
  58934. else if (t6)
  58935. if (_box_0.openedOnThisLine)
  58936. _this._colorize$2$color(new U.Highlighter__writeMultilineHighlights_closure1(_this), _box_0.openedOnThisLineColor);
  58937. else
  58938. t5._contents += " ";
  58939. else {
  58940. t6 = highlight.isPrimary ? t4 : t3;
  58941. _this._colorize$2$color(new U.Highlighter__writeMultilineHighlights_closure2(_box_0, _this, current, startLine, line, highlight, endLine), t6);
  58942. }
  58943. }
  58944. },
  58945. _writeMultilineHighlights$2: function(line, highlightsByColumn) {
  58946. return this._writeMultilineHighlights$3$current(line, highlightsByColumn, null);
  58947. },
  58948. _writeHighlightedText$4$color: function(text, startColumn, endColumn, color) {
  58949. var _this = this;
  58950. _this._writeText$1(J.getInterceptor$s(text).substring$2(text, 0, startColumn));
  58951. _this._colorize$2$color(new U.Highlighter__writeHighlightedText_closure(_this, text, startColumn, endColumn), color);
  58952. _this._writeText$1(C.JSString_methods.substring$2(text, endColumn, text.length));
  58953. },
  58954. _writeIndicator$3: function(line, highlight, highlightsByColumn) {
  58955. var t2, coversWholeLine, _this = this,
  58956. color = highlight.isPrimary ? _this._primaryColor : _this._secondaryColor,
  58957. t1 = highlight.span;
  58958. if (t1.get$start(t1).get$line() == t1.get$end(t1).get$line()) {
  58959. _this._writeSidebar$0();
  58960. t1 = _this._highlighter$_buffer;
  58961. t1._contents += " ";
  58962. _this._writeMultilineHighlights$3$current(line, highlightsByColumn, highlight);
  58963. if (highlightsByColumn.length !== 0)
  58964. t1._contents += " ";
  58965. _this._colorize$2$color(new U.Highlighter__writeIndicator_closure(_this, line, highlight), color);
  58966. t1._contents += "\n";
  58967. } else {
  58968. t2 = line.number;
  58969. if (t1.get$start(t1).get$line() === t2) {
  58970. if (C.JSArray_methods.contains$1(highlightsByColumn, highlight))
  58971. return;
  58972. B.replaceFirstNull(highlightsByColumn, highlight);
  58973. _this._writeSidebar$0();
  58974. t1 = _this._highlighter$_buffer;
  58975. t1._contents += " ";
  58976. _this._writeMultilineHighlights$3$current(line, highlightsByColumn, highlight);
  58977. _this._colorize$2$color(new U.Highlighter__writeIndicator_closure0(_this, line, highlight), color);
  58978. t1._contents += "\n";
  58979. } else if (t1.get$end(t1).get$line() === t2) {
  58980. coversWholeLine = t1.get$end(t1).get$column() === line.text.length;
  58981. if (coversWholeLine && highlight.label == null) {
  58982. B.replaceWithNull(highlightsByColumn, highlight);
  58983. return;
  58984. }
  58985. _this._writeSidebar$0();
  58986. t1 = _this._highlighter$_buffer;
  58987. t1._contents += " ";
  58988. _this._writeMultilineHighlights$3$current(line, highlightsByColumn, highlight);
  58989. _this._colorize$2$color(new U.Highlighter__writeIndicator_closure1(_this, coversWholeLine, line, highlight), color);
  58990. t1._contents += "\n";
  58991. B.replaceWithNull(highlightsByColumn, highlight);
  58992. }
  58993. }
  58994. },
  58995. _writeArrow$3$beginning: function(line, column, beginning) {
  58996. var t2,
  58997. t1 = beginning ? 0 : 1,
  58998. tabs = this._countTabs$1(J.substring$2$s(line.text, 0, column + t1));
  58999. t1 = this._highlighter$_buffer;
  59000. t2 = t1._contents += C.JSString_methods.$mul($._glyphs.get$horizontalLine(), 1 + column + tabs * 3);
  59001. t1._contents = t2 + "^";
  59002. },
  59003. _writeArrow$2: function(line, column) {
  59004. return this._writeArrow$3$beginning(line, column, true);
  59005. },
  59006. _writeLabel$1: function(label) {
  59007. if (label != null)
  59008. this._highlighter$_buffer._contents += " " + label;
  59009. },
  59010. _writeText$1: function(text) {
  59011. var t1, t2, t3;
  59012. text.toString;
  59013. t1 = new H.CodeUnits(text);
  59014. t1 = new H.ListIterator(t1, t1.get$length(t1));
  59015. t2 = this._highlighter$_buffer;
  59016. for (; t1.moveNext$0();) {
  59017. t3 = t1.__internal$_current;
  59018. if (t3 === 9)
  59019. t2._contents += C.JSString_methods.$mul(" ", 4);
  59020. else
  59021. t2._contents += H.Primitives_stringFromCharCode(t3);
  59022. }
  59023. },
  59024. _writeSidebar$3$end$line$text: function(end, line, text) {
  59025. var t1 = {};
  59026. t1.text = text;
  59027. if (line != null)
  59028. t1.text = C.JSInt_methods.toString$0(line + 1);
  59029. this._colorize$2$color(new U.Highlighter__writeSidebar_closure(t1, this, end), "\x1b[34m");
  59030. },
  59031. _writeSidebar$1$end: function(end) {
  59032. return this._writeSidebar$3$end$line$text(end, null, null);
  59033. },
  59034. _writeSidebar$1$text: function(text) {
  59035. return this._writeSidebar$3$end$line$text(null, null, text);
  59036. },
  59037. _writeSidebar$1$line: function(line) {
  59038. return this._writeSidebar$3$end$line$text(null, line, null);
  59039. },
  59040. _writeSidebar$0: function() {
  59041. return this._writeSidebar$3$end$line$text(null, null, null);
  59042. },
  59043. _countTabs$1: function(text) {
  59044. var t1, count;
  59045. for (t1 = new H.CodeUnits(text), t1 = new H.ListIterator(t1, t1.get$length(t1)), count = 0; t1.moveNext$0();)
  59046. if (t1.__internal$_current === 9)
  59047. ++count;
  59048. return count;
  59049. },
  59050. _isOnlyWhitespace$1: function(text) {
  59051. var t1, t2;
  59052. for (t1 = new H.CodeUnits(text), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  59053. t2 = t1.__internal$_current;
  59054. if (t2 !== 32 && t2 !== 9)
  59055. return false;
  59056. }
  59057. return true;
  59058. },
  59059. _colorize$2$color: function(callback, color) {
  59060. var t1 = this._primaryColor != null;
  59061. if (t1 && color != null)
  59062. this._highlighter$_buffer._contents += color;
  59063. callback.call$0();
  59064. if (t1 && color != null)
  59065. this._highlighter$_buffer._contents += "\x1b[0m";
  59066. }
  59067. };
  59068. U.Highlighter_closure.prototype = {
  59069. call$0: function() {
  59070. var t1 = this.color,
  59071. t2 = J.getInterceptor$(t1);
  59072. if (t2.$eq(t1, true))
  59073. return "\x1b[31m";
  59074. if (t2.$eq(t1, false))
  59075. return null;
  59076. return H._asStringNullable(t1);
  59077. },
  59078. $signature: 10
  59079. };
  59080. U.Highlighter$__closure.prototype = {
  59081. call$1: function(line) {
  59082. var t1 = line.highlights;
  59083. t1 = new H.WhereIterable(t1, new U.Highlighter$___closure(), H._arrayInstanceType(t1)._eval$1("WhereIterable<1>"));
  59084. return t1.get$length(t1);
  59085. }
  59086. };
  59087. U.Highlighter$___closure.prototype = {
  59088. call$1: function(highlight) {
  59089. var t1 = highlight.span;
  59090. return t1.get$start(t1).get$line() != t1.get$end(t1).get$line();
  59091. }
  59092. };
  59093. U.Highlighter$__closure0.prototype = {
  59094. call$1: function(line) {
  59095. return line.url;
  59096. }
  59097. };
  59098. U.Highlighter__collateLines_closure.prototype = {
  59099. call$1: function(highlight) {
  59100. return highlight.get$span().get$sourceUrl();
  59101. },
  59102. $signature: 28
  59103. };
  59104. U.Highlighter__collateLines_closure0.prototype = {
  59105. call$2: function(highlight1, highlight2) {
  59106. return highlight1.span.compareTo$1(0, highlight2.span);
  59107. }
  59108. };
  59109. U.Highlighter__collateLines_closure1.prototype = {
  59110. call$1: function(highlightsForFile) {
  59111. var t1, t2, t3, t4, context, t5, linesBeforeSpan, url, lineNumber, _i, line, activeHighlights, highlightIndex, oldHighlightLength,
  59112. lines = H.setRuntimeTypeInfo([], type$.JSArray__Line);
  59113. for (t1 = J.getInterceptor$ax(highlightsForFile), t2 = t1.get$iterator(highlightsForFile), t3 = type$.JSArray__Highlight; t2.moveNext$0();) {
  59114. t4 = t2.get$current(t2).span;
  59115. context = t4.get$context(t4);
  59116. t5 = C.JSString_methods.allMatches$1("\n", C.JSString_methods.substring$2(context, 0, B.findLineStart(context, t4.get$text(), t4.get$start(t4).get$column())));
  59117. linesBeforeSpan = t5.get$length(t5);
  59118. url = t4.get$sourceUrl();
  59119. lineNumber = t4.get$start(t4).get$line() - linesBeforeSpan;
  59120. for (t4 = context.split("\n"), t5 = t4.length, _i = 0; _i < t5; ++_i) {
  59121. line = t4[_i];
  59122. if (lines.length === 0 || lineNumber > C.JSArray_methods.get$last(lines).number)
  59123. lines.push(new U._Line(line, lineNumber, url, H.setRuntimeTypeInfo([], t3)));
  59124. ++lineNumber;
  59125. }
  59126. }
  59127. activeHighlights = H.setRuntimeTypeInfo([], t3);
  59128. for (t2 = lines.length, highlightIndex = 0, _i = 0; _i < lines.length; lines.length === t2 || (0, H.throwConcurrentModificationError)(lines), ++_i) {
  59129. line = lines[_i];
  59130. if (!!activeHighlights.fixed$length)
  59131. H.throwExpression(P.UnsupportedError$("removeWhere"));
  59132. C.JSArray_methods._removeWhere$2(activeHighlights, new U.Highlighter__collateLines__closure(line), true);
  59133. oldHighlightLength = activeHighlights.length;
  59134. for (t3 = t1.skip$1(highlightsForFile, highlightIndex), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  59135. t4 = t3.get$current(t3);
  59136. t5 = t4.span;
  59137. if (t5.get$start(t5).get$line() > line.number)
  59138. break;
  59139. if (!J.$eq$(t5.get$sourceUrl(), line.url))
  59140. break;
  59141. activeHighlights.push(t4);
  59142. }
  59143. highlightIndex += activeHighlights.length - oldHighlightLength;
  59144. C.JSArray_methods.addAll$1(line.highlights, activeHighlights);
  59145. }
  59146. return lines;
  59147. }
  59148. };
  59149. U.Highlighter__collateLines__closure.prototype = {
  59150. call$1: function(highlight) {
  59151. var t1 = highlight.span,
  59152. t2 = this.line;
  59153. return !J.$eq$(t1.get$sourceUrl(), t2.url) || t1.get$end(t1).get$line() < t2.number;
  59154. }
  59155. };
  59156. U.Highlighter_highlight_closure.prototype = {
  59157. call$1: function(highlight) {
  59158. return highlight.isPrimary;
  59159. }
  59160. };
  59161. U.Highlighter_highlight_closure0.prototype = {
  59162. call$0: function() {
  59163. return null;
  59164. },
  59165. $signature: 0
  59166. };
  59167. U.Highlighter__writeFileStart_closure.prototype = {
  59168. call$0: function() {
  59169. this.$this._highlighter$_buffer._contents += C.JSString_methods.$mul($._glyphs.get$horizontalLine(), 2) + ">";
  59170. return null;
  59171. },
  59172. $signature: 1
  59173. };
  59174. U.Highlighter__writeMultilineHighlights_closure.prototype = {
  59175. call$0: function() {
  59176. var t1 = $._glyphs;
  59177. t1 = this.startLine === this.line.number ? t1.get$topLeftCorner() : t1.get$bottomLeftCorner();
  59178. this.$this._highlighter$_buffer._contents += t1;
  59179. },
  59180. $signature: 0
  59181. };
  59182. U.Highlighter__writeMultilineHighlights_closure0.prototype = {
  59183. call$0: function() {
  59184. var t1 = $._glyphs;
  59185. t1 = this.highlight == null ? t1.get$horizontalLine() : t1.get$cross();
  59186. this.$this._highlighter$_buffer._contents += t1;
  59187. },
  59188. $signature: 0
  59189. };
  59190. U.Highlighter__writeMultilineHighlights_closure1.prototype = {
  59191. call$0: function() {
  59192. this.$this._highlighter$_buffer._contents += $._glyphs.get$horizontalLine();
  59193. return null;
  59194. },
  59195. $signature: 1
  59196. };
  59197. U.Highlighter__writeMultilineHighlights_closure2.prototype = {
  59198. call$0: function() {
  59199. var _this = this,
  59200. t1 = _this._box_0,
  59201. t2 = t1.openedOnThisLine,
  59202. t3 = $._glyphs,
  59203. vertical = t2 ? t3.get$cross() : t3.get$verticalLine();
  59204. if (_this.current != null)
  59205. _this.$this._highlighter$_buffer._contents += vertical;
  59206. else {
  59207. t2 = _this.line;
  59208. t3 = t2.number;
  59209. if (_this.startLine === t3) {
  59210. t2 = _this.$this;
  59211. t2._colorize$2$color(new U.Highlighter__writeMultilineHighlights__closure(t1, t2), t1.openedOnThisLineColor);
  59212. t1.openedOnThisLine = true;
  59213. if (t1.openedOnThisLineColor == null)
  59214. t1.openedOnThisLineColor = _this.highlight.isPrimary ? t2._primaryColor : t2._secondaryColor;
  59215. } else {
  59216. if (_this.endLine === t3) {
  59217. t3 = _this.highlight.span;
  59218. t2 = t3.get$end(t3).get$column() === t2.text.length;
  59219. } else
  59220. t2 = false;
  59221. t3 = _this.$this;
  59222. if (t2) {
  59223. t1 = _this.highlight.label == null ? $._glyphs.glyphOrAscii$2("\u2514", "\\") : vertical;
  59224. t3._highlighter$_buffer._contents += t1;
  59225. } else
  59226. t3._colorize$2$color(new U.Highlighter__writeMultilineHighlights__closure0(t3, vertical), t1.openedOnThisLineColor);
  59227. }
  59228. }
  59229. },
  59230. $signature: 0
  59231. };
  59232. U.Highlighter__writeMultilineHighlights__closure.prototype = {
  59233. call$0: function() {
  59234. var t1 = this._box_0.openedOnThisLine ? "\u252c" : "\u250c";
  59235. this.$this._highlighter$_buffer._contents += $._glyphs.glyphOrAscii$2(t1, "/");
  59236. },
  59237. $signature: 0
  59238. };
  59239. U.Highlighter__writeMultilineHighlights__closure0.prototype = {
  59240. call$0: function() {
  59241. this.$this._highlighter$_buffer._contents += this.vertical;
  59242. },
  59243. $signature: 0
  59244. };
  59245. U.Highlighter__writeHighlightedText_closure.prototype = {
  59246. call$0: function() {
  59247. var _this = this;
  59248. return _this.$this._writeText$1(C.JSString_methods.substring$2(_this.text, _this.startColumn, _this.endColumn));
  59249. },
  59250. $signature: 1
  59251. };
  59252. U.Highlighter__writeIndicator_closure.prototype = {
  59253. call$0: function() {
  59254. var tabsBefore, tabsInside,
  59255. t1 = this.$this,
  59256. t2 = this.highlight,
  59257. t3 = t2.span,
  59258. t4 = t2.isPrimary ? "^" : $._glyphs.get$horizontalLineBold(),
  59259. startColumn = t3.get$start(t3).get$column(),
  59260. endColumn = t3.get$end(t3).get$column();
  59261. t3 = this.line.text;
  59262. tabsBefore = t1._countTabs$1(J.getInterceptor$s(t3).substring$2(t3, 0, startColumn));
  59263. tabsInside = t1._countTabs$1(C.JSString_methods.substring$2(t3, startColumn, endColumn));
  59264. startColumn += tabsBefore * 3;
  59265. t3 = t1._highlighter$_buffer;
  59266. t3._contents += C.JSString_methods.$mul(" ", startColumn);
  59267. t3._contents += C.JSString_methods.$mul(t4, Math.max(endColumn + (tabsBefore + tabsInside) * 3 - startColumn, 1));
  59268. t1._writeLabel$1(t2.label);
  59269. },
  59270. $signature: 0
  59271. };
  59272. U.Highlighter__writeIndicator_closure0.prototype = {
  59273. call$0: function() {
  59274. var t1 = this.highlight.span;
  59275. return this.$this._writeArrow$2(this.line, t1.get$start(t1).get$column());
  59276. },
  59277. $signature: 1
  59278. };
  59279. U.Highlighter__writeIndicator_closure1.prototype = {
  59280. call$0: function() {
  59281. var t2, _this = this,
  59282. t1 = _this.$this;
  59283. if (_this.coversWholeLine)
  59284. t1._highlighter$_buffer._contents += C.JSString_methods.$mul($._glyphs.get$horizontalLine(), 3);
  59285. else {
  59286. t2 = _this.highlight.span;
  59287. t1._writeArrow$3$beginning(_this.line, Math.max(t2.get$end(t2).get$column() - 1, 0), false);
  59288. }
  59289. t1._writeLabel$1(_this.highlight.label);
  59290. },
  59291. $signature: 0
  59292. };
  59293. U.Highlighter__writeSidebar_closure.prototype = {
  59294. call$0: function() {
  59295. var t1 = this.$this,
  59296. t2 = t1._highlighter$_buffer,
  59297. t3 = this._box_0.text;
  59298. if (t3 == null)
  59299. t3 = "";
  59300. t2._contents += C.JSString_methods.padRight$1(t3, t1._paddingBeforeSidebar);
  59301. t1 = this.end;
  59302. t2._contents += t1 == null ? $._glyphs.get$verticalLine() : t1;
  59303. },
  59304. $signature: 0
  59305. };
  59306. U._Highlight.prototype = {
  59307. toString$0: function(_) {
  59308. var t1 = this.isPrimary ? "primary " : "",
  59309. t2 = this.span;
  59310. t2 = t1 + (H.S(t2.get$start(t2).get$line()) + ":" + t2.get$start(t2).get$column() + "-" + H.S(t2.get$end(t2).get$line()) + ":" + t2.get$end(t2).get$column());
  59311. t1 = this.label;
  59312. t1 = t1 != null ? t2 + (" (" + t1 + ")") : t2;
  59313. return t1.charCodeAt(0) == 0 ? t1 : t1;
  59314. },
  59315. get$span: function() {
  59316. return this.span;
  59317. }
  59318. };
  59319. U._Highlight_closure.prototype = {
  59320. call$0: function() {
  59321. var t2, t3, t4, t5,
  59322. t1 = this.span;
  59323. if (!(type$.SourceSpanWithContext._is(t1) && B.findLineStart(t1.get$context(t1), t1.get$text(), t1.get$start(t1).get$column()) != null)) {
  59324. t2 = V.SourceLocation$(t1.get$start(t1).get$offset(), 0, 0, t1.get$sourceUrl());
  59325. t3 = t1.get$end(t1).get$offset();
  59326. t4 = t1.get$sourceUrl();
  59327. t5 = B.countCodeUnits(t1.get$text(), 10);
  59328. t1 = X.SourceSpanWithContext$(t2, V.SourceLocation$(t3, U._Highlight__lastLineLength(t1.get$text()), t5, t4), t1.get$text(), t1.get$text());
  59329. }
  59330. return U._Highlight__normalizeEndOfLine(U._Highlight__normalizeTrailingNewline(U._Highlight__normalizeNewlines(t1)));
  59331. },
  59332. $signature: 168
  59333. };
  59334. U._Line.prototype = {
  59335. toString$0: function(_) {
  59336. return "" + this.number + ': "' + H.S(this.text) + '" (' + C.JSArray_methods.join$1(this.highlights, ", ") + ")";
  59337. }
  59338. };
  59339. V.SourceLocation.prototype = {
  59340. distance$1: function(other) {
  59341. var t1 = this.sourceUrl;
  59342. if (!J.$eq$(t1, other.get$sourceUrl()))
  59343. throw H.wrapException(P.ArgumentError$('Source URLs "' + H.S(t1) + '" and "' + H.S(other.get$sourceUrl()) + "\" don't match."));
  59344. return Math.abs(this.offset - other.get$offset());
  59345. },
  59346. compareTo$1: function(_, other) {
  59347. var t1 = this.sourceUrl;
  59348. if (!J.$eq$(t1, other.get$sourceUrl()))
  59349. throw H.wrapException(P.ArgumentError$('Source URLs "' + H.S(t1) + '" and "' + H.S(other.get$sourceUrl()) + "\" don't match."));
  59350. return this.offset - other.get$offset();
  59351. },
  59352. $eq: function(_, other) {
  59353. if (other == null)
  59354. return false;
  59355. return type$.SourceLocation._is(other) && J.$eq$(this.sourceUrl, other.get$sourceUrl()) && this.offset === other.get$offset();
  59356. },
  59357. get$hashCode: function(_) {
  59358. return J.get$hashCode$(this.sourceUrl) + this.offset;
  59359. },
  59360. toString$0: function(_) {
  59361. var _this = this,
  59362. t1 = "<" + H.getRuntimeType(_this).toString$0(0) + ": " + _this.offset + " ",
  59363. source = _this.sourceUrl;
  59364. return t1 + (H.S(source == null ? "unknown source" : source) + ":" + (_this.line + 1) + ":" + (_this.column + 1)) + ">";
  59365. },
  59366. $isComparable: 1,
  59367. get$sourceUrl: function() {
  59368. return this.sourceUrl;
  59369. },
  59370. get$offset: function() {
  59371. return this.offset;
  59372. },
  59373. get$line: function() {
  59374. return this.line;
  59375. },
  59376. get$column: function() {
  59377. return this.column;
  59378. }
  59379. };
  59380. D.SourceLocationMixin.prototype = {
  59381. distance$1: function(other) {
  59382. if (!J.$eq$(this.file.url, other.get$sourceUrl()))
  59383. throw H.wrapException(P.ArgumentError$('Source URLs "' + H.S(this.get$sourceUrl()) + '" and "' + H.S(other.get$sourceUrl()) + "\" don't match."));
  59384. return Math.abs(this.offset - other.get$offset());
  59385. },
  59386. compareTo$1: function(_, other) {
  59387. if (!J.$eq$(this.file.url, other.get$sourceUrl()))
  59388. throw H.wrapException(P.ArgumentError$('Source URLs "' + H.S(this.get$sourceUrl()) + '" and "' + H.S(other.get$sourceUrl()) + "\" don't match."));
  59389. return this.offset - other.get$offset();
  59390. },
  59391. $eq: function(_, other) {
  59392. if (other == null)
  59393. return false;
  59394. return type$.SourceLocation._is(other) && J.$eq$(this.file.url, other.get$sourceUrl()) && this.offset === other.get$offset();
  59395. },
  59396. get$hashCode: function(_) {
  59397. return J.get$hashCode$(this.file.url) + this.offset;
  59398. },
  59399. toString$0: function(_) {
  59400. var t1 = this.offset,
  59401. t2 = "<" + H.getRuntimeType(this).toString$0(0) + ": " + t1 + " ",
  59402. t3 = this.file,
  59403. source = t3.url;
  59404. return t2 + (H.S(source == null ? "unknown source" : source) + ":" + (t3.getLine$1(t1) + 1) + ":" + (t3.getColumn$1(t1) + 1)) + ">";
  59405. },
  59406. $isComparable: 1,
  59407. $isSourceLocation: 1
  59408. };
  59409. V.SourceSpan.prototype = {$isComparable: 1};
  59410. V.SourceSpanBase.prototype = {
  59411. SourceSpanBase$3: function(start, end, text) {
  59412. var t3,
  59413. t1 = this.end,
  59414. t2 = this.start;
  59415. if (!J.$eq$(t1.get$sourceUrl(), t2.get$sourceUrl()))
  59416. throw H.wrapException(P.ArgumentError$('Source URLs "' + H.S(t2.get$sourceUrl()) + '" and "' + H.S(t1.get$sourceUrl()) + "\" don't match."));
  59417. else if (t1.get$offset() < t2.get$offset())
  59418. throw H.wrapException(P.ArgumentError$("End " + t1.toString$0(0) + " must come after start " + t2.toString$0(0) + "."));
  59419. else {
  59420. t3 = this.text;
  59421. if (t3.length !== t2.distance$1(t1))
  59422. throw H.wrapException(P.ArgumentError$('Text "' + t3 + '" must be ' + t2.distance$1(t1) + " characters long."));
  59423. }
  59424. },
  59425. get$start: function(receiver) {
  59426. return this.start;
  59427. },
  59428. get$end: function(receiver) {
  59429. return this.end;
  59430. },
  59431. get$text: function() {
  59432. return this.text;
  59433. }
  59434. };
  59435. G.SourceSpanException.prototype = {
  59436. get$message: function(_) {
  59437. return this._span_exception$_message;
  59438. },
  59439. get$span: function() {
  59440. return this._span;
  59441. },
  59442. toString$1$color: function(_, color) {
  59443. var _this = this;
  59444. if (_this.get$span() == null)
  59445. return _this._span_exception$_message;
  59446. return "Error on " + _this.get$span().message$2$color(0, _this._span_exception$_message, color);
  59447. },
  59448. toString$0: function($receiver) {
  59449. return this.toString$1$color($receiver, null);
  59450. },
  59451. $isException: 1
  59452. };
  59453. G.SourceSpanFormatException.prototype = {$isFormatException: 1,
  59454. get$source: function() {
  59455. return this.source;
  59456. }
  59457. };
  59458. Y.SourceSpanMixin.prototype = {
  59459. get$sourceUrl: function() {
  59460. return this.get$start(this).get$sourceUrl();
  59461. },
  59462. get$length: function(_) {
  59463. var _this = this;
  59464. return _this.get$end(_this).get$offset() - _this.get$start(_this).get$offset();
  59465. },
  59466. compareTo$1: function(_, other) {
  59467. var _this = this,
  59468. result = _this.get$start(_this).compareTo$1(0, other.get$start(other));
  59469. return result === 0 ? _this.get$end(_this).compareTo$1(0, other.get$end(other)) : result;
  59470. },
  59471. message$2$color: function(_, message, color) {
  59472. var t2, highlight, _this = this,
  59473. t1 = "line " + (_this.get$start(_this).get$line() + 1) + ", column " + (_this.get$start(_this).get$column() + 1);
  59474. if (_this.get$sourceUrl() != null) {
  59475. t2 = _this.get$sourceUrl();
  59476. t2 = t1 + (" of " + H.S($.$get$context().prettyUri$1(t2)));
  59477. t1 = t2;
  59478. }
  59479. t1 += ": " + H.S(message);
  59480. highlight = _this.highlight$1$color(color);
  59481. if (highlight.length !== 0)
  59482. t1 = t1 + "\n" + highlight;
  59483. return t1.charCodeAt(0) == 0 ? t1 : t1;
  59484. },
  59485. message$1: function($receiver, message) {
  59486. return this.message$2$color($receiver, message, null);
  59487. },
  59488. highlight$1$color: function(color) {
  59489. var _this = this;
  59490. if (!type$.SourceSpanWithContext._is(_this) && _this.get$length(_this) === 0)
  59491. return "";
  59492. return U.Highlighter$(_this, color).highlight$0();
  59493. },
  59494. $eq: function(_, other) {
  59495. var _this = this;
  59496. if (other == null)
  59497. return false;
  59498. return type$.SourceSpan._is(other) && _this.get$start(_this).$eq(0, other.get$start(other)) && _this.get$end(_this).$eq(0, other.get$end(other));
  59499. },
  59500. get$hashCode: function(_) {
  59501. var t2, _this = this,
  59502. t1 = _this.get$start(_this);
  59503. t1 = t1.get$hashCode(t1);
  59504. t2 = _this.get$end(_this);
  59505. return t1 + 31 * t2.get$hashCode(t2);
  59506. },
  59507. toString$0: function(_) {
  59508. var _this = this;
  59509. return "<" + H.getRuntimeType(_this).toString$0(0) + ": from " + _this.get$start(_this).toString$0(0) + " to " + _this.get$end(_this).toString$0(0) + ' "' + _this.get$text() + '">';
  59510. },
  59511. $isComparable: 1,
  59512. $isSourceSpan: 1
  59513. };
  59514. X.SourceSpanWithContext.prototype = {
  59515. get$context: function(_) {
  59516. return this._context;
  59517. }
  59518. };
  59519. U.Chain.prototype = {
  59520. toTrace$0: function() {
  59521. var t1 = this.traces;
  59522. return new Y.Trace(P.List_List$unmodifiable(new H.ExpandIterable(t1, new U.Chain_toTrace_closure(), H._arrayInstanceType(t1)._eval$1("ExpandIterable<1,Frame>")), type$.Frame), new P._StringStackTrace(null));
  59523. },
  59524. toString$0: function(_) {
  59525. var t1 = this.traces,
  59526. t2 = H._arrayInstanceType(t1);
  59527. return new H.MappedListIterable(t1, new U.Chain_toString_closure(new H.MappedListIterable(t1, new U.Chain_toString_closure0(), t2._eval$1("MappedListIterable<1,int>")).fold$2(0, 0, H.instantiate1(P.math__max$closure(), type$.int))), t2._eval$1("MappedListIterable<1,String>")).join$1(0, "===== asynchronous gap ===========================\n");
  59528. },
  59529. $isStackTrace: 1
  59530. };
  59531. U.Chain_Chain$parse_closure.prototype = {
  59532. call$1: function(trace) {
  59533. return new Y.Trace(P.List_List$unmodifiable(Y.Trace__parseVM(trace), type$.Frame), new P._StringStackTrace(trace));
  59534. }
  59535. };
  59536. U.Chain_Chain$parse_closure0.prototype = {
  59537. call$1: function(trace) {
  59538. return Y.Trace$parseFriendly(trace);
  59539. }
  59540. };
  59541. U.Chain_toTrace_closure.prototype = {
  59542. call$1: function(trace) {
  59543. return trace.get$frames();
  59544. }
  59545. };
  59546. U.Chain_toString_closure0.prototype = {
  59547. call$1: function(trace) {
  59548. var t1 = trace.get$frames();
  59549. return new H.MappedListIterable(t1, new U.Chain_toString__closure0(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,int>")).fold$2(0, 0, H.instantiate1(P.math__max$closure(), type$.int));
  59550. }
  59551. };
  59552. U.Chain_toString__closure0.prototype = {
  59553. call$1: function(frame) {
  59554. return frame.get$location().length;
  59555. }
  59556. };
  59557. U.Chain_toString_closure.prototype = {
  59558. call$1: function(trace) {
  59559. var t1 = trace.get$frames();
  59560. return new H.MappedListIterable(t1, new U.Chain_toString__closure(this.longest), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$0(0);
  59561. }
  59562. };
  59563. U.Chain_toString__closure.prototype = {
  59564. call$1: function(frame) {
  59565. return J.padRight$1$s(frame.get$location(), this.longest) + " " + H.S(frame.get$member()) + "\n";
  59566. }
  59567. };
  59568. A.Frame.prototype = {
  59569. get$isCore: function() {
  59570. return this.uri.get$scheme() === "dart";
  59571. },
  59572. get$library: function() {
  59573. var t1 = this.uri;
  59574. if (t1.get$scheme() === "data")
  59575. return "data:...";
  59576. return $.$get$context().prettyUri$1(t1);
  59577. },
  59578. get$$package: function() {
  59579. var t1 = this.uri;
  59580. if (t1.get$scheme() !== "package")
  59581. return null;
  59582. return C.JSArray_methods.get$first(t1.get$path(t1).split("/"));
  59583. },
  59584. get$location: function() {
  59585. var t2, _this = this,
  59586. t1 = _this.line;
  59587. if (t1 == null)
  59588. return _this.get$library();
  59589. t2 = _this.column;
  59590. if (t2 == null)
  59591. return H.S(_this.get$library()) + " " + H.S(t1);
  59592. return H.S(_this.get$library()) + " " + H.S(t1) + ":" + H.S(t2);
  59593. },
  59594. toString$0: function(_) {
  59595. return H.S(this.get$location()) + " in " + H.S(this.member);
  59596. },
  59597. get$uri: function() {
  59598. return this.uri;
  59599. },
  59600. get$line: function() {
  59601. return this.line;
  59602. },
  59603. get$column: function() {
  59604. return this.column;
  59605. },
  59606. get$member: function() {
  59607. return this.member;
  59608. }
  59609. };
  59610. A.Frame_Frame$parseVM_closure.prototype = {
  59611. call$0: function() {
  59612. var match, t2, t3, member, uri, lineAndColumn, line, _null = null,
  59613. t1 = this.frame;
  59614. if (t1 === "...")
  59615. return new A.Frame(P._Uri__Uri(_null, _null, _null, _null), _null, _null, "...");
  59616. match = $.$get$_vmFrame().firstMatch$1(t1);
  59617. if (match == null)
  59618. return new N.UnparsedFrame(P._Uri__Uri(_null, "unparsed", _null, _null), t1);
  59619. t1 = match._match;
  59620. t2 = t1[1];
  59621. t3 = $.$get$_asyncBody();
  59622. t2.toString;
  59623. t2 = H.stringReplaceAllUnchecked(t2, t3, "<async>");
  59624. member = H.stringReplaceAllUnchecked(t2, "<anonymous closure>", "<fn>");
  59625. uri = P.Uri_parse(t1[2]);
  59626. lineAndColumn = t1[3].split(":");
  59627. t1 = lineAndColumn.length;
  59628. line = t1 > 1 ? P.int_parse(lineAndColumn[1], _null, _null) : _null;
  59629. return new A.Frame(uri, line, t1 > 2 ? P.int_parse(lineAndColumn[2], _null, _null) : _null, member);
  59630. },
  59631. $signature: 42
  59632. };
  59633. A.Frame_Frame$parseV8_closure.prototype = {
  59634. call$0: function() {
  59635. var t2, t3, _s4_ = "<fn>",
  59636. t1 = this.frame,
  59637. match = $.$get$_v8Frame().firstMatch$1(t1);
  59638. if (match == null)
  59639. return new N.UnparsedFrame(P._Uri__Uri(null, "unparsed", null, null), t1);
  59640. t1 = new A.Frame_Frame$parseV8_closure_parseLocation(t1);
  59641. t2 = match._match;
  59642. t3 = t2[2];
  59643. if (t3 != null) {
  59644. t2 = t2[1];
  59645. t2.toString;
  59646. t2 = H.stringReplaceAllUnchecked(t2, "<anonymous>", _s4_);
  59647. t2 = H.stringReplaceAllUnchecked(t2, "Anonymous function", _s4_);
  59648. return t1.call$2(t3, H.stringReplaceAllUnchecked(t2, "(anonymous function)", _s4_));
  59649. } else
  59650. return t1.call$2(t2[3], _s4_);
  59651. },
  59652. $signature: 42
  59653. };
  59654. A.Frame_Frame$parseV8_closure_parseLocation.prototype = {
  59655. call$2: function($location, member) {
  59656. var urlMatch, _null = null,
  59657. t1 = $.$get$_v8EvalLocation(),
  59658. evalMatch = t1.firstMatch$1($location);
  59659. for (; evalMatch != null;) {
  59660. $location = evalMatch._match[1];
  59661. evalMatch = t1.firstMatch$1($location);
  59662. }
  59663. if ($location === "native")
  59664. return new A.Frame(P.Uri_parse("native"), _null, _null, member);
  59665. urlMatch = $.$get$_v8UrlLocation().firstMatch$1($location);
  59666. if (urlMatch == null)
  59667. return new N.UnparsedFrame(P._Uri__Uri(_null, "unparsed", _null, _null), this.frame);
  59668. t1 = urlMatch._match;
  59669. return new A.Frame(A.Frame__uriOrPathToUri(t1[1]), P.int_parse(t1[2], _null, _null), P.int_parse(t1[3], _null, _null), member);
  59670. },
  59671. $signature: 98
  59672. };
  59673. A.Frame_Frame$parseFirefox_closure.prototype = {
  59674. call$0: function() {
  59675. var uri, t2, t3, member, line, _null = null,
  59676. t1 = this.frame,
  59677. match = $.$get$_firefoxSafariFrame().firstMatch$1(t1);
  59678. if (match == null)
  59679. return new N.UnparsedFrame(P._Uri__Uri(_null, "unparsed", _null, _null), t1);
  59680. t1 = match._match;
  59681. uri = A.Frame__uriOrPathToUri(t1[3]);
  59682. t2 = t1[1];
  59683. if (t2 != null) {
  59684. t3 = C.JSString_methods.allMatches$1("/", t1[2]);
  59685. member = J.$add$ansx(t2, C.JSArray_methods.join$0(P.List_List$filled(t3.get$length(t3), ".<fn>", type$.String)));
  59686. if (member === "")
  59687. member = "<fn>";
  59688. member = C.JSString_methods.replaceFirst$2(member, $.$get$_initialDot(), "");
  59689. } else
  59690. member = "<fn>";
  59691. t2 = t1[4];
  59692. line = t2 === "" ? _null : P.int_parse(t2, _null, _null);
  59693. t1 = t1[5];
  59694. return new A.Frame(uri, line, t1 == null || t1 === "" ? _null : P.int_parse(t1, _null, _null), member);
  59695. },
  59696. $signature: 42
  59697. };
  59698. A.Frame_Frame$parseFriendly_closure.prototype = {
  59699. call$0: function() {
  59700. var t2, uri, line, column, _null = null,
  59701. t1 = this.frame,
  59702. match = $.$get$_friendlyFrame().firstMatch$1(t1);
  59703. if (match == null)
  59704. throw H.wrapException(P.FormatException$("Couldn't parse package:stack_trace stack trace line '" + H.S(t1) + "'.", _null, _null));
  59705. t1 = match._match;
  59706. t2 = t1[1];
  59707. uri = t2 === "data:..." ? P.Uri_Uri$dataFromString("", _null, _null) : P.Uri_parse(t2);
  59708. if (uri.get$scheme() === "") {
  59709. t2 = $.$get$context();
  59710. uri = t2.toUri$1(D.absolute(t2.style.pathFromUri$1(M._parseUri(uri))));
  59711. }
  59712. t2 = t1[2];
  59713. line = t2 == null ? _null : P.int_parse(t2, _null, _null);
  59714. t2 = t1[3];
  59715. column = t2 == null ? _null : P.int_parse(t2, _null, _null);
  59716. return new A.Frame(uri, line, column, t1[4]);
  59717. },
  59718. $signature: 42
  59719. };
  59720. T.LazyTrace.prototype = {
  59721. get$_lazy_trace$_trace: function() {
  59722. var t1 = this._lazy_trace$_inner;
  59723. return t1 == null ? this._lazy_trace$_inner = this._thunk.call$0() : t1;
  59724. },
  59725. get$frames: function() {
  59726. return this.get$_lazy_trace$_trace().get$frames();
  59727. },
  59728. get$terse: function() {
  59729. return new T.LazyTrace(new T.LazyTrace_terse_closure(this));
  59730. },
  59731. toString$0: function(_) {
  59732. return J.toString$0$(this.get$_lazy_trace$_trace());
  59733. },
  59734. $isStackTrace: 1,
  59735. $isTrace: 1
  59736. };
  59737. T.LazyTrace_terse_closure.prototype = {
  59738. call$0: function() {
  59739. return this.$this.get$_lazy_trace$_trace().get$terse();
  59740. },
  59741. $signature: 78
  59742. };
  59743. Y.Trace.prototype = {
  59744. get$terse: function() {
  59745. return this.foldFrames$2$terse(new Y.Trace_terse_closure(), true);
  59746. },
  59747. foldFrames$2$terse: function(predicate, terse) {
  59748. var newFrames, t1, t2, _box_0 = {};
  59749. _box_0.predicate = predicate;
  59750. _box_0.predicate = new Y.Trace_foldFrames_closure(predicate);
  59751. newFrames = H.setRuntimeTypeInfo([], type$.JSArray_Frame);
  59752. for (t1 = this.frames, t1 = new H.ReversedListIterable(t1, H._arrayInstanceType(t1)._eval$1("ReversedListIterable<1>")), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  59753. t2 = t1.__internal$_current;
  59754. if (t2 instanceof N.UnparsedFrame || !_box_0.predicate.call$1(t2))
  59755. newFrames.push(t2);
  59756. else if (newFrames.length === 0 || !_box_0.predicate.call$1(C.JSArray_methods.get$last(newFrames)))
  59757. newFrames.push(new A.Frame(t2.get$uri(), t2.get$line(), t2.get$column(), t2.get$member()));
  59758. }
  59759. newFrames = new H.MappedListIterable(newFrames, new Y.Trace_foldFrames_closure0(_box_0), type$.MappedListIterable_Frame_Frame).toList$0(0);
  59760. if (newFrames.length > 1 && _box_0.predicate.call$1(C.JSArray_methods.get$first(newFrames)))
  59761. C.JSArray_methods.removeAt$1(newFrames, 0);
  59762. return new Y.Trace(P.List_List$unmodifiable(new H.ReversedListIterable(newFrames, H._arrayInstanceType(newFrames)._eval$1("ReversedListIterable<1>")), type$.Frame), new P._StringStackTrace(this.original._stackTrace));
  59763. },
  59764. toString$0: function(_) {
  59765. var t1 = this.frames,
  59766. t2 = H._arrayInstanceType(t1);
  59767. return new H.MappedListIterable(t1, new Y.Trace_toString_closure(new H.MappedListIterable(t1, new Y.Trace_toString_closure0(), t2._eval$1("MappedListIterable<1,int>")).fold$2(0, 0, H.instantiate1(P.math__max$closure(), type$.int))), t2._eval$1("MappedListIterable<1,String>")).join$0(0);
  59768. },
  59769. $isStackTrace: 1,
  59770. get$frames: function() {
  59771. return this.frames;
  59772. }
  59773. };
  59774. Y.Trace_Trace$from_closure.prototype = {
  59775. call$0: function() {
  59776. return Y.Trace_Trace$parse(this.trace.toString$0(0));
  59777. },
  59778. $signature: 78
  59779. };
  59780. Y.Trace__parseVM_closure.prototype = {
  59781. call$1: function(line) {
  59782. return A.Frame_Frame$parseVM(line);
  59783. }
  59784. };
  59785. Y.Trace$parseV8_closure.prototype = {
  59786. call$1: function(line) {
  59787. return !J.startsWith$1$s(line, $.$get$_v8TraceLine());
  59788. }
  59789. };
  59790. Y.Trace$parseV8_closure0.prototype = {
  59791. call$1: function(line) {
  59792. return A.Frame_Frame$parseV8(line);
  59793. }
  59794. };
  59795. Y.Trace$parseJSCore_closure.prototype = {
  59796. call$1: function(line) {
  59797. return line !== "\tat ";
  59798. }
  59799. };
  59800. Y.Trace$parseJSCore_closure0.prototype = {
  59801. call$1: function(line) {
  59802. return A.Frame_Frame$parseV8(line);
  59803. }
  59804. };
  59805. Y.Trace$parseFirefox_closure.prototype = {
  59806. call$1: function(line) {
  59807. return line.length !== 0 && line !== "[native code]";
  59808. }
  59809. };
  59810. Y.Trace$parseFirefox_closure0.prototype = {
  59811. call$1: function(line) {
  59812. return A.Frame_Frame$parseFirefox(line);
  59813. }
  59814. };
  59815. Y.Trace$parseFriendly_closure.prototype = {
  59816. call$1: function(line) {
  59817. return !J.startsWith$1$s(line, "=====");
  59818. }
  59819. };
  59820. Y.Trace$parseFriendly_closure0.prototype = {
  59821. call$1: function(line) {
  59822. return A.Frame_Frame$parseFriendly(line);
  59823. }
  59824. };
  59825. Y.Trace_terse_closure.prototype = {
  59826. call$1: function(_) {
  59827. return false;
  59828. }
  59829. };
  59830. Y.Trace_foldFrames_closure.prototype = {
  59831. call$1: function(frame) {
  59832. if (this.oldPredicate.call$1(frame))
  59833. return true;
  59834. if (frame.get$isCore())
  59835. return true;
  59836. if (frame.get$$package() === "stack_trace")
  59837. return true;
  59838. if (!J.contains$1$asx(frame.get$member(), "<async>"))
  59839. return false;
  59840. return frame.get$line() == null;
  59841. }
  59842. };
  59843. Y.Trace_foldFrames_closure0.prototype = {
  59844. call$1: function(frame) {
  59845. var t1, t2;
  59846. if (frame instanceof N.UnparsedFrame || !this._box_0.predicate.call$1(frame))
  59847. return frame;
  59848. t1 = frame.get$library();
  59849. t2 = $.$get$_terseRegExp();
  59850. t1.toString;
  59851. return new A.Frame(P.Uri_parse(H.stringReplaceAllUnchecked(t1, t2, "")), null, null, frame.get$member());
  59852. }
  59853. };
  59854. Y.Trace_toString_closure0.prototype = {
  59855. call$1: function(frame) {
  59856. return frame.get$location().length;
  59857. }
  59858. };
  59859. Y.Trace_toString_closure.prototype = {
  59860. call$1: function(frame) {
  59861. if (frame instanceof N.UnparsedFrame)
  59862. return frame.toString$0(0) + "\n";
  59863. return J.padRight$1$s(frame.get$location(), this.longest) + " " + H.S(frame.get$member()) + "\n";
  59864. }
  59865. };
  59866. N.UnparsedFrame.prototype = {
  59867. toString$0: function(_) {
  59868. return this.member;
  59869. },
  59870. $isFrame: 1,
  59871. get$uri: function() {
  59872. return this.uri;
  59873. },
  59874. get$line: function() {
  59875. return null;
  59876. },
  59877. get$column: function() {
  59878. return null;
  59879. },
  59880. get$isCore: function() {
  59881. return false;
  59882. },
  59883. get$library: function() {
  59884. return "unparsed";
  59885. },
  59886. get$$package: function() {
  59887. return null;
  59888. },
  59889. get$location: function() {
  59890. return "unparsed";
  59891. },
  59892. get$member: function() {
  59893. return this.member;
  59894. }
  59895. };
  59896. L._StreamTransformer.prototype = {
  59897. bind$1: function(values) {
  59898. var controller, _null = null, t1 = {},
  59899. t2 = this.$ti;
  59900. if (values.get$isBroadcast())
  59901. controller = new P._SyncBroadcastStreamController(_null, _null, t2._eval$1("_SyncBroadcastStreamController<2>"));
  59902. else
  59903. controller = P.StreamController_StreamController(_null, _null, _null, _null, true, t2._rest[1]);
  59904. t1.subscription = null;
  59905. controller.set$onListen(new L._StreamTransformer_bind_closure(t1, this, values, controller));
  59906. return controller.get$stream();
  59907. }
  59908. };
  59909. L._StreamTransformer_bind_closure.prototype = {
  59910. call$0: function() {
  59911. var t2, t3, t4, t5, _this = this, t1 = {};
  59912. t1.valuesDone = false;
  59913. t2 = _this.values;
  59914. t3 = _this.$this;
  59915. t4 = _this.controller;
  59916. t5 = _this._box_1;
  59917. t5.subscription = t2.listen$3$onDone$onError(new L._StreamTransformer_bind__closure(t3, t4), new L._StreamTransformer_bind__closure0(t1, t3, t4), new L._StreamTransformer_bind__closure1(t3, t4));
  59918. if (!t2.get$isBroadcast()) {
  59919. t2 = t5.subscription;
  59920. t4.set$onPause(t2.get$pause(t2));
  59921. t4.set$onResume(t5.subscription.get$resume());
  59922. }
  59923. t4.set$onCancel(new L._StreamTransformer_bind__closure2(t5, t1));
  59924. },
  59925. $signature: 0
  59926. };
  59927. L._StreamTransformer_bind__closure.prototype = {
  59928. call$1: function(value) {
  59929. return this.$this._from_handlers$_handleData.call$2(value, this.controller);
  59930. },
  59931. $signature: function() {
  59932. return this.$this.$ti._eval$1("~(1)");
  59933. }
  59934. };
  59935. L._StreamTransformer_bind__closure1.prototype = {
  59936. call$2: function(error, stackTrace) {
  59937. this.$this._from_handlers$_handleError.call$3(error, stackTrace, this.controller);
  59938. },
  59939. "call*": "call$2",
  59940. $requiredArgCount: 2,
  59941. $signature: 58
  59942. };
  59943. L._StreamTransformer_bind__closure0.prototype = {
  59944. call$0: function() {
  59945. this._box_0.valuesDone = true;
  59946. this.$this._from_handlers$_handleDone.call$1(this.controller);
  59947. },
  59948. "call*": "call$0",
  59949. $requiredArgCount: 0,
  59950. $signature: 0
  59951. };
  59952. L._StreamTransformer_bind__closure2.prototype = {
  59953. call$0: function() {
  59954. var t1 = this._box_1,
  59955. toCancel = t1.subscription;
  59956. t1.subscription = null;
  59957. if (!this._box_0.valuesDone)
  59958. return toCancel.cancel$0();
  59959. return null;
  59960. },
  59961. "call*": "call$0",
  59962. $requiredArgCount: 0,
  59963. $signature: 100
  59964. };
  59965. R._debounceAggregate_closure.prototype = {
  59966. call$2: function(value, sink) {
  59967. var soFar, _this = this,
  59968. t1 = _this._box_0,
  59969. t2 = t1.timer;
  59970. if (t2 != null)
  59971. t2.cancel$0();
  59972. soFar = _this.collect.call$2(value, t1.soFar);
  59973. t1.soFar = soFar;
  59974. if (t1.timer == null && _this.leading) {
  59975. t1.emittedLatestAsLeading = true;
  59976. sink.add$1(0, soFar);
  59977. } else
  59978. t1.emittedLatestAsLeading = false;
  59979. t1.timer = P.Timer_Timer(_this.duration, new R._debounceAggregate__closure(t1, _this.trailing, sink));
  59980. },
  59981. "call*": "call$2",
  59982. $requiredArgCount: 2
  59983. };
  59984. R._debounceAggregate__closure.prototype = {
  59985. call$0: function() {
  59986. var t1, _this = this;
  59987. if (_this.trailing && !_this._box_0.emittedLatestAsLeading)
  59988. _this.sink.add$1(0, _this._box_0.soFar);
  59989. t1 = _this._box_0;
  59990. if (t1.shouldClose)
  59991. _this.sink.close$0(0);
  59992. t1.timer = t1.soFar = null;
  59993. },
  59994. "call*": "call$0",
  59995. $requiredArgCount: 0,
  59996. $signature: 0
  59997. };
  59998. R._debounceAggregate_closure0.prototype = {
  59999. call$1: function(sink) {
  60000. var t1 = this._box_0;
  60001. if (t1.soFar != null && this.trailing)
  60002. t1.shouldClose = true;
  60003. else {
  60004. t1 = t1.timer;
  60005. if (t1 != null)
  60006. t1.cancel$0();
  60007. sink.close$0(0);
  60008. }
  60009. }
  60010. };
  60011. E.StringScannerException.prototype = {
  60012. get$source: function() {
  60013. return H._asStringNullable(this.source);
  60014. }
  60015. };
  60016. Z.LineScanner.prototype = {
  60017. get$_betweenCRLF: function() {
  60018. return this.peekChar$1(-1) === 13 && this.peekChar$0() === 10;
  60019. },
  60020. scanChar$1: function(character) {
  60021. if (!this.super$StringScanner$scanChar(character))
  60022. return false;
  60023. this._adjustLineAndColumn$1(character);
  60024. return true;
  60025. },
  60026. _adjustLineAndColumn$1: function(character) {
  60027. var t1, _this = this;
  60028. if (character !== 10)
  60029. t1 = character === 13 && _this.peekChar$0() !== 10;
  60030. else
  60031. t1 = true;
  60032. if (t1) {
  60033. ++_this._line_scanner$_line;
  60034. _this._line_scanner$_column = 0;
  60035. } else
  60036. ++_this._line_scanner$_column;
  60037. },
  60038. scan$1: function(pattern) {
  60039. var newlines, t1, t2, _this = this;
  60040. if (!_this.super$StringScanner$scan(pattern))
  60041. return false;
  60042. newlines = _this._newlinesIn$1(_this.get$lastMatch().group$1(0));
  60043. t1 = _this._line_scanner$_line;
  60044. t2 = newlines.length;
  60045. _this._line_scanner$_line = t1 + t2;
  60046. if (t2 === 0)
  60047. _this._line_scanner$_column = _this._line_scanner$_column + _this.get$lastMatch().group$1(0).length;
  60048. else
  60049. _this._line_scanner$_column = _this.get$lastMatch().group$1(0).length - J.get$end$x(C.JSArray_methods.get$last(newlines));
  60050. return true;
  60051. },
  60052. _newlinesIn$1: function(text) {
  60053. var t1 = $.$get$_newlineRegExp().allMatches$1(0, text),
  60054. newlines = P.List_List$from(t1, true, H._instanceType(t1)._eval$1("Iterable.E"));
  60055. if (this.get$_betweenCRLF())
  60056. C.JSArray_methods.removeLast$0(newlines);
  60057. return newlines;
  60058. }
  60059. };
  60060. S.SpanScanner.prototype = {
  60061. set$state: function(state) {
  60062. if (!(state instanceof S._SpanScannerState) || state._scanner !== this)
  60063. throw H.wrapException(P.ArgumentError$("The given LineScannerState was not returned by this LineScanner."));
  60064. this.set$position(state.position);
  60065. },
  60066. spanFrom$2: function(startState, endState) {
  60067. var endPosition = endState == null ? this._string_scanner$_position : endState.position;
  60068. return this._sourceFile.span$2(startState.position, endPosition);
  60069. },
  60070. spanFrom$1: function(startState) {
  60071. return this.spanFrom$2(startState, null);
  60072. },
  60073. matches$1: function(pattern) {
  60074. var t1, t2, _this = this;
  60075. if (!_this.super$StringScanner$matches(pattern))
  60076. return false;
  60077. t1 = _this._string_scanner$_position;
  60078. t2 = _this.get$lastMatch();
  60079. _this._sourceFile.span$2(t1, t2.start + t2.pattern.length);
  60080. return true;
  60081. },
  60082. error$3$length$position: function(message, $length, position) {
  60083. var t2, match, _this = this,
  60084. t1 = _this.string;
  60085. B.validateErrorArgs(t1, null, position, $length);
  60086. t2 = position == null && $length == null;
  60087. match = t2 ? _this.get$lastMatch() : null;
  60088. if (position == null)
  60089. position = match == null ? _this._string_scanner$_position : match.start;
  60090. if ($length == null)
  60091. if (match == null)
  60092. $length = 0;
  60093. else {
  60094. t2 = match.start;
  60095. $length = t2 + match.pattern.length - t2;
  60096. }
  60097. throw H.wrapException(E.StringScannerException$(message, _this._sourceFile.span$2(position, position + $length), t1));
  60098. },
  60099. error$1: function(message) {
  60100. return this.error$3$length$position(message, null, null);
  60101. },
  60102. error$2$position: function(message, position) {
  60103. return this.error$3$length$position(message, null, position);
  60104. },
  60105. error$2$length: function(message, $length) {
  60106. return this.error$3$length$position(message, $length, null);
  60107. }
  60108. };
  60109. S._SpanScannerState.prototype = {};
  60110. X.StringScanner.prototype = {
  60111. set$position: function(position) {
  60112. if (position < 0 || position > this.string.length)
  60113. throw H.wrapException(P.ArgumentError$("Invalid position " + position));
  60114. this._string_scanner$_position = position;
  60115. this._lastMatch = null;
  60116. },
  60117. get$lastMatch: function() {
  60118. var _this = this;
  60119. if (_this._string_scanner$_position !== _this._lastMatchPosition)
  60120. _this._lastMatch = null;
  60121. return _this._lastMatch;
  60122. },
  60123. readChar$0: function() {
  60124. var _this = this,
  60125. t1 = _this._string_scanner$_position,
  60126. t2 = _this.string;
  60127. if (t1 === t2.length)
  60128. _this.error$3$length$position("expected more input.", 0, t1);
  60129. return J.codeUnitAt$1$s(t2, _this._string_scanner$_position++);
  60130. },
  60131. peekChar$1: function(offset) {
  60132. var index;
  60133. if (offset == null)
  60134. offset = 0;
  60135. index = this._string_scanner$_position + offset;
  60136. if (index < 0 || index >= this.string.length)
  60137. return null;
  60138. return J.codeUnitAt$1$s(this.string, index);
  60139. },
  60140. peekChar$0: function() {
  60141. return this.peekChar$1(null);
  60142. },
  60143. scanChar$1: function(character) {
  60144. var t1 = this._string_scanner$_position,
  60145. t2 = this.string;
  60146. if (t1 === t2.length)
  60147. return false;
  60148. if (J.codeUnitAt$1$s(t2, t1) !== character)
  60149. return false;
  60150. this._string_scanner$_position = t1 + 1;
  60151. return true;
  60152. },
  60153. expectChar$2$name: function(character, $name) {
  60154. if (this.scanChar$1(character))
  60155. return;
  60156. if ($name == null)
  60157. if (character === 92)
  60158. $name = '"\\"';
  60159. else
  60160. $name = character === 34 ? '"\\""' : '"' + H.Primitives_stringFromCharCode(character) + '"';
  60161. this.error$3$length$position("expected " + $name + ".", 0, this._string_scanner$_position);
  60162. },
  60163. expectChar$1: function(character) {
  60164. return this.expectChar$2$name(character, null);
  60165. },
  60166. scan$1: function(pattern) {
  60167. var t1, _this = this,
  60168. success = _this.matches$1(pattern);
  60169. if (success) {
  60170. t1 = _this._lastMatch;
  60171. _this._lastMatchPosition = _this._string_scanner$_position = t1.start + t1.pattern.length;
  60172. }
  60173. return success;
  60174. },
  60175. expect$1: function(pattern) {
  60176. var t1, $name;
  60177. if (this.scan$1(pattern))
  60178. return;
  60179. t1 = H.stringReplaceAllUnchecked(pattern, "\\", "\\\\");
  60180. $name = '"' + H.stringReplaceAllUnchecked(t1, '"', '\\"') + '"';
  60181. this.error$3$length$position("expected " + $name + ".", 0, this._string_scanner$_position);
  60182. },
  60183. expectDone$0: function() {
  60184. var t1 = this._string_scanner$_position;
  60185. if (t1 === this.string.length)
  60186. return;
  60187. this.error$3$length$position("expected no more input.", 0, t1);
  60188. },
  60189. matches$1: function(pattern) {
  60190. var _this = this,
  60191. t1 = C.JSString_methods.matchAsPrefix$2(pattern, _this.string, _this._string_scanner$_position);
  60192. _this._lastMatch = t1;
  60193. _this._lastMatchPosition = _this._string_scanner$_position;
  60194. return t1 != null;
  60195. },
  60196. substring$1: function(_, start) {
  60197. var end = this._string_scanner$_position;
  60198. return J.substring$2$s(this.string, start, end);
  60199. },
  60200. error$3$length$position: function(message, $length, position) {
  60201. var t2, t3, t4, sourceFile,
  60202. t1 = this.string;
  60203. B.validateErrorArgs(t1, null, position, $length);
  60204. t2 = this.sourceUrl;
  60205. t1.toString;
  60206. t3 = new H.CodeUnits(t1);
  60207. t4 = H.setRuntimeTypeInfo([0], type$.JSArray_int);
  60208. sourceFile = new Y.SourceFile(t2, t4, new Uint32Array(H._ensureNativeList(t3.toList$0(t3))));
  60209. sourceFile.SourceFile$decoded$2$url(t3, t2);
  60210. throw H.wrapException(E.StringScannerException$(message, sourceFile.span$2(position, position + $length), t1));
  60211. }
  60212. };
  60213. A.AsciiGlyphSet.prototype = {
  60214. glyphOrAscii$2: function(glyph, alternative) {
  60215. return alternative;
  60216. },
  60217. get$horizontalLine: function() {
  60218. return "-";
  60219. },
  60220. get$verticalLine: function() {
  60221. return "|";
  60222. },
  60223. get$topLeftCorner: function() {
  60224. return ",";
  60225. },
  60226. get$bottomLeftCorner: function() {
  60227. return "'";
  60228. },
  60229. get$cross: function() {
  60230. return "+";
  60231. },
  60232. get$upEnd: function() {
  60233. return "'";
  60234. },
  60235. get$downEnd: function() {
  60236. return ",";
  60237. },
  60238. get$horizontalLineBold: function() {
  60239. return "=";
  60240. }
  60241. };
  60242. K.UnicodeGlyphSet.prototype = {
  60243. glyphOrAscii$2: function(glyph, alternative) {
  60244. return glyph;
  60245. },
  60246. get$horizontalLine: function() {
  60247. return "\u2500";
  60248. },
  60249. get$verticalLine: function() {
  60250. return "\u2502";
  60251. },
  60252. get$topLeftCorner: function() {
  60253. return "\u250c";
  60254. },
  60255. get$bottomLeftCorner: function() {
  60256. return "\u2514";
  60257. },
  60258. get$cross: function() {
  60259. return "\u253c";
  60260. },
  60261. get$upEnd: function() {
  60262. return "\u2575";
  60263. },
  60264. get$downEnd: function() {
  60265. return "\u2577";
  60266. },
  60267. get$horizontalLineBold: function() {
  60268. return "\u2501";
  60269. }
  60270. };
  60271. S.Tuple2.prototype = {
  60272. toString$0: function(_) {
  60273. return "[" + H.S(this.item1) + ", " + H.S(this.item2) + "]";
  60274. },
  60275. $eq: function(_, other) {
  60276. if (other == null)
  60277. return false;
  60278. return other instanceof S.Tuple2 && J.$eq$(other.item1, this.item1) && J.$eq$(other.item2, this.item2);
  60279. },
  60280. get$hashCode: function(_) {
  60281. var t1 = J.get$hashCode$(this.item1),
  60282. t2 = J.get$hashCode$(this.item2);
  60283. return X._finish(X._combine(X._combine(0, C.JSInt_methods.get$hashCode(t1)), C.JSInt_methods.get$hashCode(t2)));
  60284. }
  60285. };
  60286. S.Tuple3.prototype = {
  60287. toString$0: function(_) {
  60288. return "[" + H.S(this.item1) + ", " + this.item2.toString$0(0) + ", " + H.S(this.item3) + "]";
  60289. },
  60290. $eq: function(_, other) {
  60291. if (other == null)
  60292. return false;
  60293. return other instanceof S.Tuple3 && other.item1 == this.item1 && other.item2.$eq(0, this.item2) && J.$eq$(other.item3, this.item3);
  60294. },
  60295. get$hashCode: function(_) {
  60296. var t3,
  60297. t1 = J.get$hashCode$(this.item1),
  60298. t2 = this.item2;
  60299. t2 = t2.get$hashCode(t2);
  60300. t3 = J.get$hashCode$(this.item3);
  60301. return X._finish(X._combine(X._combine(X._combine(0, C.JSInt_methods.get$hashCode(t1)), C.JSInt_methods.get$hashCode(t2)), C.JSInt_methods.get$hashCode(t3)));
  60302. }
  60303. };
  60304. E.WatchEvent.prototype = {
  60305. toString$0: function(_) {
  60306. return H.S(this.type) + " " + H.S(this.path);
  60307. },
  60308. get$path: function(receiver) {
  60309. return this.path;
  60310. }
  60311. };
  60312. E.ChangeType.prototype = {
  60313. toString$0: function(_) {
  60314. return this._watch_event$_name;
  60315. }
  60316. };
  60317. Z.Argument0.prototype = {
  60318. toString$0: function(_) {
  60319. var t1 = this.defaultValue,
  60320. t2 = this.name;
  60321. return t1 == null ? t2 : t2 + ": " + t1.toString$0(0);
  60322. },
  60323. $isAstNode0: 1,
  60324. get$span: function() {
  60325. return this.span;
  60326. }
  60327. };
  60328. B.ArgumentDeclaration0.prototype = {
  60329. get$spanWithName: function() {
  60330. var t3, t4,
  60331. t1 = this.span,
  60332. t2 = t1.file,
  60333. text = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t2._decodedChars, 0, null), 0, null),
  60334. i = Y.FileLocation$_(t2, t1._file$_start).offset - 1;
  60335. while (true) {
  60336. if (i > 0) {
  60337. t3 = C.JSString_methods.codeUnitAt$1(text, i);
  60338. t3 = t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12;
  60339. } else
  60340. t3 = false;
  60341. if (!t3)
  60342. break;
  60343. --i;
  60344. }
  60345. t3 = C.JSString_methods.codeUnitAt$1(text, i);
  60346. if (!(t3 === 95 || T.isAlphabetic1(t3) || t3 >= 128 || T.isDigit0(t3) || t3 === 45))
  60347. return t1;
  60348. --i;
  60349. while (true) {
  60350. if (i >= 0) {
  60351. t3 = C.JSString_methods.codeUnitAt$1(text, i);
  60352. if (t3 !== 95) {
  60353. if (!(t3 >= 97 && t3 <= 122))
  60354. t4 = t3 >= 65 && t3 <= 90;
  60355. else
  60356. t4 = true;
  60357. t4 = t4 || t3 >= 128;
  60358. } else
  60359. t4 = true;
  60360. if (!t4) {
  60361. t4 = t3 >= 48 && t3 <= 57;
  60362. t3 = t4 || t3 === 45;
  60363. } else
  60364. t3 = true;
  60365. } else
  60366. t3 = false;
  60367. if (!t3)
  60368. break;
  60369. --i;
  60370. }
  60371. t3 = i + 1;
  60372. t4 = C.JSString_methods.codeUnitAt$1(text, t3);
  60373. if (!(t4 === 95 || T.isAlphabetic1(t4) || t4 >= 128))
  60374. return t1;
  60375. return B.SpanExtensions_trim0(t2.span$2(t3, Y.FileLocation$_(t2, t1._end).offset));
  60376. },
  60377. get$originalRestArgument: function() {
  60378. var t1, text;
  60379. if (this.restArgument == null)
  60380. return null;
  60381. t1 = this.span;
  60382. text = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, null);
  60383. return C.JSString_methods.substring$2(C.JSString_methods.substring$1(text, C.JSString_methods.lastIndexOf$1(text, "$")), 0, C.JSString_methods.indexOf$1(text, "."));
  60384. },
  60385. verify$2: function(positional, names) {
  60386. var t1, t2, t3, namedUsed, i, argument, t4, unknownNames, _this = this,
  60387. _s10_ = "invocation",
  60388. _s8_ = "argument";
  60389. for (t1 = _this.$arguments, t2 = t1.length, t3 = names._baseMap, namedUsed = 0, i = 0; i < t2; ++i) {
  60390. argument = t1[i];
  60391. if (i < positional) {
  60392. t4 = argument.name;
  60393. if (t3.containsKey$1(t4))
  60394. throw H.wrapException(E.SassScriptException$0("Argument " + H.S(_this._argument_declaration$_originalArgumentName$1(t4)) + " was passed both by position and by name."));
  60395. } else {
  60396. t4 = argument.name;
  60397. if (t3.containsKey$1(t4))
  60398. ++namedUsed;
  60399. else if (argument.defaultValue == null)
  60400. throw H.wrapException(E.MultiSpanSassScriptException$0("Missing argument " + H.S(_this._argument_declaration$_originalArgumentName$1(t4)) + ".", _s10_, P.LinkedHashMap_LinkedHashMap$_literal([_this.get$spanWithName(), "declaration"], type$.FileSpan, type$.String)));
  60401. }
  60402. }
  60403. if (_this.restArgument != null)
  60404. return;
  60405. if (positional > t2) {
  60406. t1 = "Only " + t2 + " ";
  60407. throw H.wrapException(E.MultiSpanSassScriptException$0(t1 + (names.get$isEmpty(names) ? "" : "positional ") + B.pluralize0(_s8_, t2, null) + " allowed, but " + positional + " " + B.pluralize0("was", positional, "were") + " passed.", _s10_, P.LinkedHashMap_LinkedHashMap$_literal([_this.get$spanWithName(), "declaration"], type$.FileSpan, type$.String)));
  60408. }
  60409. if (namedUsed < t3.get$length(t3)) {
  60410. t2 = type$.String;
  60411. unknownNames = P.LinkedHashSet_LinkedHashSet$of(names, t2);
  60412. unknownNames.removeAll$1(new H.MappedListIterable(t1, new B.ArgumentDeclaration_verify_closure1(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Object>")));
  60413. throw H.wrapException(E.MultiSpanSassScriptException$0("No " + B.pluralize0(_s8_, unknownNames._collection$_length, null) + " named " + H.S(B.toSentence0(unknownNames.map$1$1(0, new B.ArgumentDeclaration_verify_closure2(), type$.Object), "or")) + ".", _s10_, P.LinkedHashMap_LinkedHashMap$_literal([_this.get$spanWithName(), "declaration"], type$.FileSpan, t2)));
  60414. }
  60415. },
  60416. _argument_declaration$_originalArgumentName$1: function($name) {
  60417. var t1, t2, _i, argument, t3, t4, text, end;
  60418. if ($name === this.restArgument)
  60419. return this.get$originalRestArgument();
  60420. for (t1 = this.$arguments, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  60421. argument = t1[_i];
  60422. if (argument.name === $name) {
  60423. t1 = argument.defaultValue;
  60424. t2 = argument.span;
  60425. t3 = t2.file;
  60426. t4 = t2._file$_start;
  60427. t2 = t2._end;
  60428. if (t1 == null) {
  60429. t1 = t3._decodedChars;
  60430. t1 = P.String_String$fromCharCodes(new Uint32Array(t1.subarray(t4, H._checkValidRange(t4, t2, t1.length))), 0, null);
  60431. } else {
  60432. t1 = t3._decodedChars;
  60433. text = P.String_String$fromCharCodes(new Uint32Array(t1.subarray(t4, H._checkValidRange(t4, t2, t1.length))), 0, null);
  60434. t1 = C.JSString_methods.substring$2(text, 0, C.JSString_methods.indexOf$1(text, ":"));
  60435. end = B._lastNonWhitespace0(t1, false);
  60436. t1 = end == null ? "" : C.JSString_methods.substring$2(t1, 0, end + 1);
  60437. }
  60438. return t1;
  60439. }
  60440. }
  60441. throw H.wrapException(P.ArgumentError$('This declaration has no argument named "$' + $name + '".'));
  60442. },
  60443. matches$2: function(positional, names) {
  60444. var t1, t2, t3, namedUsed, i, argument;
  60445. for (t1 = this.$arguments, t2 = t1.length, t3 = names._baseMap, namedUsed = 0, i = 0; i < t2; ++i) {
  60446. argument = t1[i];
  60447. if (i < positional) {
  60448. if (t3.containsKey$1(argument.name))
  60449. return false;
  60450. } else if (t3.containsKey$1(argument.name))
  60451. ++namedUsed;
  60452. else if (argument.defaultValue == null)
  60453. return false;
  60454. }
  60455. if (this.restArgument != null)
  60456. return true;
  60457. if (positional > t2)
  60458. return false;
  60459. if (namedUsed < t3.get$length(t3))
  60460. return false;
  60461. return true;
  60462. },
  60463. toString$0: function(_) {
  60464. var t2, t3, _i,
  60465. t1 = H.setRuntimeTypeInfo([], type$.JSArray_String);
  60466. for (t2 = this.$arguments, t3 = t2.length, _i = 0; _i < t3; ++_i)
  60467. t1.push(J.toString$0$(t2[_i]));
  60468. t2 = this.restArgument;
  60469. if (t2 != null)
  60470. t1.push(t2 + "...");
  60471. return C.JSArray_methods.join$1(t1, ", ");
  60472. },
  60473. $isAstNode0: 1,
  60474. get$span: function() {
  60475. return this.span;
  60476. }
  60477. };
  60478. B.ArgumentDeclaration_verify_closure1.prototype = {
  60479. call$1: function(argument) {
  60480. return argument.name;
  60481. }
  60482. };
  60483. B.ArgumentDeclaration_verify_closure2.prototype = {
  60484. call$1: function($name) {
  60485. return "$" + H.S($name);
  60486. }
  60487. };
  60488. X.ArgumentInvocation0.prototype = {
  60489. get$isEmpty: function(_) {
  60490. var t1;
  60491. if (this.positional.length === 0) {
  60492. t1 = this.named;
  60493. t1 = t1.get$isEmpty(t1) && this.rest == null;
  60494. } else
  60495. t1 = false;
  60496. return t1;
  60497. },
  60498. toString$0: function(_) {
  60499. var t2, t3, _i, t4, _this = this, t1 = [];
  60500. for (t2 = _this.positional, t3 = t2.length, _i = 0; _i < t3; ++_i)
  60501. t1.push(t2[_i]);
  60502. for (t2 = _this.named, t3 = J.get$iterator$ax(t2.get$keys()); t3.moveNext$0();) {
  60503. t4 = t3.get$current(t3);
  60504. t1.push(H.S(t4) + ": " + H.S(t2.$index(0, t4)));
  60505. }
  60506. t2 = _this.rest;
  60507. if (t2 != null)
  60508. t1.push(t2.toString$0(0) + "...");
  60509. t2 = _this.keywordRest;
  60510. if (t2 != null)
  60511. t1.push(t2.toString$0(0) + "...");
  60512. return "(" + C.JSArray_methods.join$1(t1, ", ") + ")";
  60513. },
  60514. $isAstNode0: 1,
  60515. get$span: function() {
  60516. return this.span;
  60517. }
  60518. };
  60519. D.SassArgumentList0.prototype = {};
  60520. B.AsyncCallable0.prototype = {};
  60521. B.AsyncImporter0.prototype = {};
  60522. S.AsyncBuiltInCallable0.prototype = {
  60523. callbackFor$2: function(positional, names) {
  60524. return new S.Tuple2(this._async_built_in0$_arguments, this._async_built_in0$_callback, type$.Tuple2_of_ArgumentDeclaration_and_FutureOr_Value_Function_List_Value_2);
  60525. },
  60526. $isAsyncCallable0: 1,
  60527. get$name: function() {
  60528. return this.name;
  60529. }
  60530. };
  60531. S.AsyncBuiltInCallable$mixin_closure0.prototype = {
  60532. call$1: function($arguments) {
  60533. return this.$call$body$AsyncBuiltInCallable$mixin_closure0($arguments);
  60534. },
  60535. $call$body$AsyncBuiltInCallable$mixin_closure0: function($arguments) {
  60536. var $async$goto = 0,
  60537. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  60538. $async$returnValue, $async$self = this;
  60539. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  60540. if ($async$errorCode === 1)
  60541. return P._asyncRethrow($async$result, $async$completer);
  60542. while (true)
  60543. switch ($async$goto) {
  60544. case 0:
  60545. // Function start
  60546. $async$goto = 3;
  60547. return P._asyncAwait($async$self.callback.call$1($arguments), $async$call$1);
  60548. case 3:
  60549. // returning from await.
  60550. $async$returnValue = null;
  60551. // goto return
  60552. $async$goto = 1;
  60553. break;
  60554. case 1:
  60555. // return
  60556. return P._asyncReturn($async$returnValue, $async$completer);
  60557. }
  60558. });
  60559. return P._asyncStartSync($async$call$1, $async$completer);
  60560. }
  60561. };
  60562. X._compileStylesheet_closure2.prototype = {
  60563. call$1: function(url) {
  60564. var t1, t2, _null = null;
  60565. if (url === "")
  60566. t1 = J.toString$0$(P.Uri_Uri$dataFromString(P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(this.stylesheet.span.file._decodedChars, 0, _null), 0, _null), C.C_Utf8Codec, _null));
  60567. else {
  60568. t1 = P.Uri_parse(url);
  60569. t2 = this.importCache._async_import_cache0$_resultsCache.$index(0, t1);
  60570. t2 = t2 == null ? _null : t2.get$sourceMapUrl();
  60571. t1 = J.toString$0$(t2 == null ? t1 : t2);
  60572. }
  60573. return t1;
  60574. }
  60575. };
  60576. X.CompileResult0.prototype = {};
  60577. Q.AsyncEnvironment0.prototype = {
  60578. closure$0: function() {
  60579. var t5, t6, t7, _this = this,
  60580. t1 = _this._async_environment0$_forwardedModules,
  60581. t2 = _this._async_environment0$_forwardedModuleNodes,
  60582. t3 = _this._async_environment0$_nestedForwardedModules,
  60583. t4 = _this._async_environment0$_variables;
  60584. t4 = H.setRuntimeTypeInfo(t4.slice(0), H._arrayInstanceType(t4));
  60585. t5 = _this._async_environment0$_variableNodes;
  60586. if (t5 == null)
  60587. t5 = null;
  60588. else
  60589. t5 = H.setRuntimeTypeInfo(t5.slice(0), H._arrayInstanceType(t5));
  60590. t6 = _this._async_environment0$_functions;
  60591. t6 = H.setRuntimeTypeInfo(t6.slice(0), H._arrayInstanceType(t6));
  60592. t7 = _this._async_environment0$_mixins;
  60593. t7 = H.setRuntimeTypeInfo(t7.slice(0), H._arrayInstanceType(t7));
  60594. return Q.AsyncEnvironment$_0(_this._async_environment0$_modules, _this._async_environment0$_namespaceNodes, _this._async_environment0$_globalModules, _this._async_environment0$_globalModuleNodes, t1, t2, t3, _this._async_environment0$_allModules, t4, t5, t6, t7, _this._async_environment0$_content);
  60595. },
  60596. addModule$3$namespace: function(module, nodeWithSpan, namespace) {
  60597. var t1, t2, _this = this;
  60598. if (namespace == null) {
  60599. _this._async_environment0$_globalModules.add$1(0, module);
  60600. _this._async_environment0$_globalModuleNodes.$indexSet(0, module, nodeWithSpan);
  60601. _this._async_environment0$_allModules.push(module);
  60602. for (t1 = J.get$iterator$ax(C.JSArray_methods.get$first(_this._async_environment0$_variables).get$keys()); t1.moveNext$0();) {
  60603. t2 = t1.get$current(t1);
  60604. if (module.get$variables().containsKey$1(t2))
  60605. throw H.wrapException(E.SassScriptException$0('This module and the new module both define a variable named "$' + H.S(t2) + '".'));
  60606. }
  60607. } else {
  60608. t1 = _this._async_environment0$_modules;
  60609. if (t1.containsKey$1(namespace))
  60610. throw H.wrapException(E.MultiSpanSassScriptException$0("There's already a module with namespace \"" + namespace + '".', "new @use", P.LinkedHashMap_LinkedHashMap$_literal([_this._async_environment0$_namespaceNodes.$index(0, namespace).get$span(), "original @use"], type$.FileSpan, type$.String)));
  60611. t1.$indexSet(0, namespace, module);
  60612. _this._async_environment0$_namespaceNodes.$indexSet(0, namespace, nodeWithSpan);
  60613. _this._async_environment0$_allModules.push(module);
  60614. }
  60615. },
  60616. forwardModule$2: function(module, rule) {
  60617. var view, t1, t2, _this = this;
  60618. if (_this._async_environment0$_forwardedModules == null)
  60619. _this._async_environment0$_forwardedModules = P.LinkedHashSet_LinkedHashSet$_empty(type$.Module_AsyncCallable_2);
  60620. if (_this._async_environment0$_forwardedModuleNodes == null)
  60621. _this._async_environment0$_forwardedModuleNodes = P.LinkedHashMap_LinkedHashMap$_empty(type$.Module_AsyncCallable_2, type$.AstNode_2);
  60622. view = R.ForwardedModuleView_ifNecessary0(module, rule, type$.AsyncCallable_2);
  60623. for (t1 = _this._async_environment0$_forwardedModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications); t1.moveNext$0();) {
  60624. t2 = t1._collection$_current;
  60625. _this._async_environment0$_assertNoConflicts$6(view.get$variables(), t2.get$variables(), view, t2, "variable", rule);
  60626. _this._async_environment0$_assertNoConflicts$6(view.get$functions(view), t2.get$functions(t2), view, t2, "function", rule);
  60627. _this._async_environment0$_assertNoConflicts$6(view.get$mixins(), t2.get$mixins(), view, t2, "mixin", rule);
  60628. }
  60629. _this._async_environment0$_allModules.push(module);
  60630. _this._async_environment0$_forwardedModules.add$1(0, view);
  60631. _this._async_environment0$_forwardedModuleNodes.$indexSet(0, view, rule);
  60632. },
  60633. _async_environment0$_assertNoConflicts$6: function(newMembers, oldMembers, newModule, oldModule, type, newModuleNodeWithSpan) {
  60634. var larger, smaller, t1, t2, $name;
  60635. if (newMembers.get$length(newMembers) < oldMembers.get$length(oldMembers)) {
  60636. larger = oldMembers;
  60637. smaller = newMembers;
  60638. } else {
  60639. larger = newMembers;
  60640. smaller = oldMembers;
  60641. }
  60642. for (t1 = J.get$iterator$ax(smaller.get$keys()), t2 = type === "variable"; t1.moveNext$0();) {
  60643. $name = t1.get$current(t1);
  60644. if (!larger.containsKey$1($name))
  60645. continue;
  60646. if (t2 ? newModule.variableIdentity$1($name) === oldModule.variableIdentity$1($name) : J.$eq$(larger.$index(0, $name), smaller.$index(0, $name)))
  60647. continue;
  60648. if (t2)
  60649. $name = "$" + H.S($name);
  60650. throw H.wrapException(E.MultiSpanSassScriptException$0("Two forwarded modules both define a " + type + " named " + H.S($name) + ".", "new @forward", P.LinkedHashMap_LinkedHashMap$_literal([this._async_environment0$_forwardedModuleNodes.$index(0, oldModule).get$span(), "original @forward"], type$.FileSpan, type$.String)));
  60651. }
  60652. },
  60653. importForwards$1: function(module) {
  60654. var t2, t3, t4, t5, forwardedVariableNames, forwardedFunctionNames, forwardedMixinNames, t6, t7, _i, shadowed, t8, _this = this,
  60655. t1 = module._async_environment0$_environment,
  60656. forwarded = t1._async_environment0$_forwardedModules;
  60657. if (forwarded == null)
  60658. return;
  60659. if (_this._async_environment0$_forwardedModules != null) {
  60660. t2 = P.LinkedHashSet_LinkedHashSet(type$.Module_AsyncCallable_2);
  60661. for (t3 = P._LinkedHashSetIterator$(forwarded, forwarded._collection$_modifications), t4 = _this._async_environment0$_globalModules; t3.moveNext$0();) {
  60662. t5 = t3._collection$_current;
  60663. if (!_this._async_environment0$_forwardedModules.contains$1(0, t5) || !t4.contains$1(0, t5))
  60664. t2.add$1(0, t5);
  60665. }
  60666. forwarded = t2;
  60667. }
  60668. if (_this._async_environment0$_forwardedModules == null)
  60669. _this._async_environment0$_forwardedModules = P.LinkedHashSet_LinkedHashSet$_empty(type$.Module_AsyncCallable_2);
  60670. if (_this._async_environment0$_forwardedModuleNodes == null)
  60671. _this._async_environment0$_forwardedModuleNodes = P.LinkedHashMap_LinkedHashMap$_empty(type$.Module_AsyncCallable_2, type$.AstNode_2);
  60672. t2 = H._instanceType(forwarded)._eval$1("ExpandIterable<1,String>");
  60673. t3 = t2._eval$1("Iterable.E");
  60674. forwardedVariableNames = P.LinkedHashSet_LinkedHashSet$from(new H.ExpandIterable(forwarded, new Q.AsyncEnvironment_importForwards_closure3(), t2), t3);
  60675. forwardedFunctionNames = P.LinkedHashSet_LinkedHashSet$from(new H.ExpandIterable(forwarded, new Q.AsyncEnvironment_importForwards_closure4(), t2), t3);
  60676. forwardedMixinNames = P.LinkedHashSet_LinkedHashSet$from(new H.ExpandIterable(forwarded, new Q.AsyncEnvironment_importForwards_closure5(), t2), t3);
  60677. t2 = _this._async_environment0$_variables;
  60678. t3 = t2.length;
  60679. if (t3 === 1) {
  60680. for (t3 = _this._async_environment0$_globalModules, t4 = t3.toList$0(0), t5 = t4.length, t6 = type$.AsyncCallable_2, t7 = _this._async_environment0$_globalModuleNodes, _i = 0; _i < t4.length; t4.length === t5 || (0, H.throwConcurrentModificationError)(t4), ++_i) {
  60681. module = t4[_i];
  60682. shadowed = B.ShadowedModuleView_ifNecessary0(module, forwardedFunctionNames, forwardedMixinNames, forwardedVariableNames, t6);
  60683. if (shadowed != null) {
  60684. t3.remove$1(0, module);
  60685. t8 = shadowed.variables;
  60686. if (t8.get$isEmpty(t8)) {
  60687. t8 = shadowed.functions;
  60688. if (t8.get$isEmpty(t8)) {
  60689. t8 = shadowed.mixins;
  60690. if (t8.get$isEmpty(t8)) {
  60691. t8 = shadowed._shadowed_view0$_inner;
  60692. t8 = J.get$isEmpty$asx(t8.get$css(t8).get$children());
  60693. } else
  60694. t8 = false;
  60695. } else
  60696. t8 = false;
  60697. } else
  60698. t8 = false;
  60699. if (!t8) {
  60700. t3.add$1(0, shadowed);
  60701. t7.$indexSet(0, shadowed, t7.remove$1(0, module));
  60702. }
  60703. }
  60704. }
  60705. for (t4 = _this._async_environment0$_forwardedModules.toList$0(0), t5 = t4.length, _i = 0; _i < t4.length; t4.length === t5 || (0, H.throwConcurrentModificationError)(t4), ++_i) {
  60706. module = t4[_i];
  60707. shadowed = B.ShadowedModuleView_ifNecessary0(module, forwardedFunctionNames, forwardedMixinNames, forwardedVariableNames, t6);
  60708. if (shadowed != null) {
  60709. _this._async_environment0$_forwardedModules.remove$1(0, module);
  60710. t8 = shadowed.variables;
  60711. if (t8.get$isEmpty(t8)) {
  60712. t8 = shadowed.functions;
  60713. if (t8.get$isEmpty(t8)) {
  60714. t8 = shadowed.mixins;
  60715. if (t8.get$isEmpty(t8)) {
  60716. t8 = shadowed._shadowed_view0$_inner;
  60717. t8 = J.get$isEmpty$asx(t8.get$css(t8).get$children());
  60718. } else
  60719. t8 = false;
  60720. } else
  60721. t8 = false;
  60722. } else
  60723. t8 = false;
  60724. if (!t8) {
  60725. _this._async_environment0$_forwardedModules.add$1(0, shadowed);
  60726. t8 = _this._async_environment0$_forwardedModuleNodes;
  60727. t8.$indexSet(0, shadowed, t8.remove$1(0, module));
  60728. }
  60729. }
  60730. }
  60731. t3.addAll$1(0, forwarded);
  60732. t7.addAll$1(0, t1._async_environment0$_forwardedModuleNodes);
  60733. _this._async_environment0$_forwardedModules.addAll$1(0, forwarded);
  60734. _this._async_environment0$_forwardedModuleNodes.addAll$1(0, t1._async_environment0$_forwardedModuleNodes);
  60735. } else {
  60736. t1 = _this._async_environment0$_nestedForwardedModules;
  60737. J.addAll$1$ax(C.JSArray_methods.get$last(t1 == null ? _this._async_environment0$_nestedForwardedModules = P.List_List$generate(t3 - 1, new Q.AsyncEnvironment_importForwards_closure6(), true, type$.List_Module_AsyncCallable_2) : t1), forwarded);
  60738. }
  60739. for (t1 = P._LinkedHashSetIterator$(forwardedVariableNames, forwardedVariableNames._collection$_modifications), t3 = _this._async_environment0$_variableNodes, t4 = t3 != null, t5 = _this._async_environment0$_variableIndices; t1.moveNext$0();) {
  60740. t6 = t1._collection$_current;
  60741. t5.remove$1(0, t6);
  60742. J.remove$1$ax(C.JSArray_methods.get$last(t2), t6);
  60743. if (t4)
  60744. J.remove$1$ax(C.JSArray_methods.get$last(t3), t6);
  60745. }
  60746. for (t1 = P._LinkedHashSetIterator$(forwardedFunctionNames, forwardedFunctionNames._collection$_modifications), t2 = _this._async_environment0$_functionIndices, t3 = _this._async_environment0$_functions; t1.moveNext$0();) {
  60747. t4 = t1._collection$_current;
  60748. t2.remove$1(0, t4);
  60749. J.remove$1$ax(C.JSArray_methods.get$last(t3), t4);
  60750. }
  60751. for (t1 = P._LinkedHashSetIterator$(forwardedMixinNames, forwardedMixinNames._collection$_modifications), t2 = _this._async_environment0$_mixinIndices, t3 = _this._async_environment0$_mixins; t1.moveNext$0();) {
  60752. t4 = t1._collection$_current;
  60753. t2.remove$1(0, t4);
  60754. J.remove$1$ax(C.JSArray_methods.get$last(t3), t4);
  60755. }
  60756. },
  60757. getVariable$2$namespace: function($name, namespace) {
  60758. var t1, index, _this = this;
  60759. if (namespace != null)
  60760. return _this._async_environment0$_getModule$1(namespace).get$variables().$index(0, $name);
  60761. if (_this._async_environment0$_lastVariableName === $name) {
  60762. t1 = J.$index$asx(_this._async_environment0$_variables[_this._async_environment0$_lastVariableIndex], $name);
  60763. return t1 == null ? _this._async_environment0$_getVariableFromGlobalModule$1($name) : t1;
  60764. }
  60765. t1 = _this._async_environment0$_variableIndices;
  60766. index = t1.$index(0, $name);
  60767. if (index != null) {
  60768. _this._async_environment0$_lastVariableName = $name;
  60769. _this._async_environment0$_lastVariableIndex = index;
  60770. t1 = J.$index$asx(_this._async_environment0$_variables[index], $name);
  60771. return t1 == null ? _this._async_environment0$_getVariableFromGlobalModule$1($name) : t1;
  60772. }
  60773. index = _this._async_environment0$_variableIndex$1($name);
  60774. if (index == null)
  60775. return _this._async_environment0$_getVariableFromGlobalModule$1($name);
  60776. _this._async_environment0$_lastVariableName = $name;
  60777. _this._async_environment0$_lastVariableIndex = index;
  60778. t1.$indexSet(0, $name, index);
  60779. t1 = J.$index$asx(_this._async_environment0$_variables[index], $name);
  60780. return t1 == null ? _this._async_environment0$_getVariableFromGlobalModule$1($name) : t1;
  60781. },
  60782. getVariable$1: function($name) {
  60783. return this.getVariable$2$namespace($name, null);
  60784. },
  60785. _async_environment0$_getVariableFromGlobalModule$1: function($name) {
  60786. return this._async_environment0$_fromOneModule$3($name, "variable", new Q.AsyncEnvironment__getVariableFromGlobalModule_closure0($name));
  60787. },
  60788. getVariableNode$2$namespace: function($name, namespace) {
  60789. var t1, index, _this = this;
  60790. if (namespace != null)
  60791. return _this._async_environment0$_getModule$1(namespace).get$variableNodes().$index(0, $name);
  60792. if (_this._async_environment0$_lastVariableName === $name) {
  60793. t1 = J.$index$asx(_this._async_environment0$_variableNodes[_this._async_environment0$_lastVariableIndex], $name);
  60794. return t1 == null ? _this._async_environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
  60795. }
  60796. t1 = _this._async_environment0$_variableIndices;
  60797. index = t1.$index(0, $name);
  60798. if (index != null) {
  60799. _this._async_environment0$_lastVariableName = $name;
  60800. _this._async_environment0$_lastVariableIndex = index;
  60801. t1 = J.$index$asx(_this._async_environment0$_variableNodes[index], $name);
  60802. return t1 == null ? _this._async_environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
  60803. }
  60804. index = _this._async_environment0$_variableIndex$1($name);
  60805. if (index == null)
  60806. return _this._async_environment0$_getVariableNodeFromGlobalModule$1($name);
  60807. _this._async_environment0$_lastVariableName = $name;
  60808. _this._async_environment0$_lastVariableIndex = index;
  60809. t1.$indexSet(0, $name, index);
  60810. t1 = J.$index$asx(_this._async_environment0$_variableNodes[index], $name);
  60811. return t1 == null ? _this._async_environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
  60812. },
  60813. _async_environment0$_getVariableNodeFromGlobalModule$1: function($name) {
  60814. var t1, value;
  60815. for (t1 = this._async_environment0$_globalModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications); t1.moveNext$0();) {
  60816. value = t1._collection$_current.get$variableNodes().$index(0, $name);
  60817. if (value != null)
  60818. return value;
  60819. }
  60820. return null;
  60821. },
  60822. globalVariableExists$2$namespace: function($name, namespace) {
  60823. if (namespace != null)
  60824. return this._async_environment0$_getModule$1(namespace).get$variables().containsKey$1($name);
  60825. if (C.JSArray_methods.get$first(this._async_environment0$_variables).containsKey$1($name))
  60826. return true;
  60827. return this._async_environment0$_getVariableFromGlobalModule$1($name) != null;
  60828. },
  60829. globalVariableExists$1: function($name) {
  60830. return this.globalVariableExists$2$namespace($name, null);
  60831. },
  60832. _async_environment0$_variableIndex$1: function($name) {
  60833. var t1, i;
  60834. for (t1 = this._async_environment0$_variables, i = t1.length - 1; i >= 0; --i)
  60835. if (t1[i].containsKey$1($name))
  60836. return i;
  60837. return null;
  60838. },
  60839. setVariable$5$global$namespace: function($name, value, nodeWithSpan, global, namespace) {
  60840. var t1, moduleWithName, t2, t3, index, _this = this;
  60841. if (namespace != null) {
  60842. _this._async_environment0$_getModule$1(namespace).setVariable$3($name, value, nodeWithSpan);
  60843. return;
  60844. }
  60845. if (global || _this._async_environment0$_variables.length === 1) {
  60846. _this._async_environment0$_variableIndices.putIfAbsent$2($name, new Q.AsyncEnvironment_setVariable_closure2(_this, $name));
  60847. t1 = _this._async_environment0$_variables;
  60848. if (!C.JSArray_methods.get$first(t1).containsKey$1($name)) {
  60849. moduleWithName = _this._async_environment0$_fromOneModule$3($name, "variable", new Q.AsyncEnvironment_setVariable_closure3($name));
  60850. if (moduleWithName != null) {
  60851. moduleWithName.setVariable$3($name, value, nodeWithSpan);
  60852. return;
  60853. }
  60854. }
  60855. J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, value);
  60856. t1 = _this._async_environment0$_variableNodes;
  60857. if (t1 != null)
  60858. J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, nodeWithSpan);
  60859. return;
  60860. }
  60861. if (_this._async_environment0$_nestedForwardedModules != null && !_this._async_environment0$_variableIndices.containsKey$1($name) && _this._async_environment0$_variableIndex$1($name) == null) {
  60862. t1 = _this._async_environment0$_nestedForwardedModules;
  60863. t1.toString;
  60864. t1 = new H.ReversedListIterable(t1, H._arrayInstanceType(t1)._eval$1("ReversedListIterable<1>"));
  60865. t1 = new H.ListIterator(t1, t1.get$length(t1));
  60866. for (; t1.moveNext$0();)
  60867. for (t2 = J.get$reversed$ax(t1.__internal$_current), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  60868. t3 = t2.__internal$_current;
  60869. if (t3.get$variables().containsKey$1($name)) {
  60870. t3.setVariable$3($name, value, nodeWithSpan);
  60871. return;
  60872. }
  60873. }
  60874. }
  60875. index = _this._async_environment0$_lastVariableName === $name ? _this._async_environment0$_lastVariableIndex : _this._async_environment0$_variableIndices.putIfAbsent$2($name, new Q.AsyncEnvironment_setVariable_closure4(_this, $name));
  60876. if (!_this._async_environment0$_inSemiGlobalScope && index === 0) {
  60877. index = _this._async_environment0$_variables.length - 1;
  60878. _this._async_environment0$_variableIndices.$indexSet(0, $name, index);
  60879. }
  60880. _this._async_environment0$_lastVariableName = $name;
  60881. _this._async_environment0$_lastVariableIndex = index;
  60882. J.$indexSet$ax(_this._async_environment0$_variables[index], $name, value);
  60883. t1 = _this._async_environment0$_variableNodes;
  60884. if (t1 != null)
  60885. J.$indexSet$ax(t1[index], $name, nodeWithSpan);
  60886. },
  60887. setVariable$4$global: function($name, value, nodeWithSpan, global) {
  60888. return this.setVariable$5$global$namespace($name, value, nodeWithSpan, global, null);
  60889. },
  60890. setLocalVariable$3: function($name, value, nodeWithSpan) {
  60891. var index, _this = this,
  60892. t1 = _this._async_environment0$_variables,
  60893. t2 = t1.length;
  60894. _this._async_environment0$_lastVariableName = $name;
  60895. index = _this._async_environment0$_lastVariableIndex = t2 - 1;
  60896. _this._async_environment0$_variableIndices.$indexSet(0, $name, index);
  60897. J.$indexSet$ax(t1[index], $name, value);
  60898. t1 = _this._async_environment0$_variableNodes;
  60899. if (t1 != null)
  60900. J.$indexSet$ax(t1[index], $name, nodeWithSpan);
  60901. },
  60902. getFunction$2$namespace: function($name, namespace) {
  60903. var t1, index, _this = this;
  60904. if (namespace != null) {
  60905. t1 = _this._async_environment0$_getModule$1(namespace);
  60906. return t1.get$functions(t1).$index(0, $name);
  60907. }
  60908. t1 = _this._async_environment0$_functionIndices;
  60909. index = t1.$index(0, $name);
  60910. if (index != null) {
  60911. t1 = J.$index$asx(_this._async_environment0$_functions[index], $name);
  60912. return t1 == null ? _this._async_environment0$_getFunctionFromGlobalModule$1($name) : t1;
  60913. }
  60914. index = _this._async_environment0$_functionIndex$1($name);
  60915. if (index == null)
  60916. return _this._async_environment0$_getFunctionFromGlobalModule$1($name);
  60917. t1.$indexSet(0, $name, index);
  60918. t1 = J.$index$asx(_this._async_environment0$_functions[index], $name);
  60919. return t1 == null ? _this._async_environment0$_getFunctionFromGlobalModule$1($name) : t1;
  60920. },
  60921. _async_environment0$_getFunctionFromGlobalModule$1: function($name) {
  60922. return this._async_environment0$_fromOneModule$3($name, "function", new Q.AsyncEnvironment__getFunctionFromGlobalModule_closure0($name));
  60923. },
  60924. _async_environment0$_functionIndex$1: function($name) {
  60925. var t1, i;
  60926. for (t1 = this._async_environment0$_functions, i = t1.length - 1; i >= 0; --i)
  60927. if (t1[i].containsKey$1($name))
  60928. return i;
  60929. return null;
  60930. },
  60931. getMixin$2$namespace: function($name, namespace) {
  60932. var t1, index, _this = this;
  60933. if (namespace != null)
  60934. return _this._async_environment0$_getModule$1(namespace).get$mixins().$index(0, $name);
  60935. t1 = _this._async_environment0$_mixinIndices;
  60936. index = t1.$index(0, $name);
  60937. if (index != null) {
  60938. t1 = J.$index$asx(_this._async_environment0$_mixins[index], $name);
  60939. return t1 == null ? _this._async_environment0$_getMixinFromGlobalModule$1($name) : t1;
  60940. }
  60941. index = _this._async_environment0$_mixinIndex$1($name);
  60942. if (index == null)
  60943. return _this._async_environment0$_getMixinFromGlobalModule$1($name);
  60944. t1.$indexSet(0, $name, index);
  60945. t1 = J.$index$asx(_this._async_environment0$_mixins[index], $name);
  60946. return t1 == null ? _this._async_environment0$_getMixinFromGlobalModule$1($name) : t1;
  60947. },
  60948. _async_environment0$_getMixinFromGlobalModule$1: function($name) {
  60949. return this._async_environment0$_fromOneModule$3($name, "mixin", new Q.AsyncEnvironment__getMixinFromGlobalModule_closure0($name));
  60950. },
  60951. _async_environment0$_mixinIndex$1: function($name) {
  60952. var t1, i;
  60953. for (t1 = this._async_environment0$_mixins, i = t1.length - 1; i >= 0; --i)
  60954. if (t1[i].containsKey$1($name))
  60955. return i;
  60956. return null;
  60957. },
  60958. withContent$2: function($content, callback) {
  60959. return this.withContent$body$AsyncEnvironment0($content, callback);
  60960. },
  60961. withContent$body$AsyncEnvironment0: function($content, callback) {
  60962. var $async$goto = 0,
  60963. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  60964. $async$self = this, oldContent;
  60965. var $async$withContent$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  60966. if ($async$errorCode === 1)
  60967. return P._asyncRethrow($async$result, $async$completer);
  60968. while (true)
  60969. switch ($async$goto) {
  60970. case 0:
  60971. // Function start
  60972. oldContent = $async$self._async_environment0$_content;
  60973. $async$self._async_environment0$_content = $content;
  60974. $async$goto = 2;
  60975. return P._asyncAwait(callback.call$0(), $async$withContent$2);
  60976. case 2:
  60977. // returning from await.
  60978. $async$self._async_environment0$_content = oldContent;
  60979. // implicit return
  60980. return P._asyncReturn(null, $async$completer);
  60981. }
  60982. });
  60983. return P._asyncStartSync($async$withContent$2, $async$completer);
  60984. },
  60985. asMixin$1: function(callback) {
  60986. var $async$goto = 0,
  60987. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  60988. $async$self = this, oldInMixin;
  60989. var $async$asMixin$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  60990. if ($async$errorCode === 1)
  60991. return P._asyncRethrow($async$result, $async$completer);
  60992. while (true)
  60993. switch ($async$goto) {
  60994. case 0:
  60995. // Function start
  60996. oldInMixin = $async$self._async_environment0$_inMixin;
  60997. $async$self._async_environment0$_inMixin = true;
  60998. $async$goto = 2;
  60999. return P._asyncAwait(callback.call$0(), $async$asMixin$1);
  61000. case 2:
  61001. // returning from await.
  61002. $async$self._async_environment0$_inMixin = oldInMixin;
  61003. // implicit return
  61004. return P._asyncReturn(null, $async$completer);
  61005. }
  61006. });
  61007. return P._asyncStartSync($async$asMixin$1, $async$completer);
  61008. },
  61009. scope$1$3$semiGlobal$when: function(callback, semiGlobal, when, $T) {
  61010. return this.scope$body$AsyncEnvironment0(callback, semiGlobal, when, $T, $T);
  61011. },
  61012. scope$1$1: function(callback, $T) {
  61013. return this.scope$1$3$semiGlobal$when(callback, false, true, $T);
  61014. },
  61015. scope$1$2$when: function(callback, when, $T) {
  61016. return this.scope$1$3$semiGlobal$when(callback, false, when, $T);
  61017. },
  61018. scope$1$2$semiGlobal: function(callback, semiGlobal, $T) {
  61019. return this.scope$1$3$semiGlobal$when(callback, semiGlobal, true, $T);
  61020. },
  61021. scope$body$AsyncEnvironment0: function(callback, semiGlobal, when, $T, $async$type) {
  61022. var $async$goto = 0,
  61023. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  61024. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, wasInSemiGlobalScope, wasInSemiGlobalScope0, $name, name0, name1, t1, t2, t3, t4, t5;
  61025. var $async$scope$1$3$semiGlobal$when = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  61026. if ($async$errorCode === 1) {
  61027. $async$currentError = $async$result;
  61028. $async$goto = $async$handler;
  61029. }
  61030. while (true)
  61031. switch ($async$goto) {
  61032. case 0:
  61033. // Function start
  61034. $async$goto = !when ? 3 : 4;
  61035. break;
  61036. case 3:
  61037. // then
  61038. wasInSemiGlobalScope = $async$self._async_environment0$_inSemiGlobalScope;
  61039. $async$self._async_environment0$_inSemiGlobalScope = semiGlobal;
  61040. $async$handler = 5;
  61041. $async$goto = 8;
  61042. return P._asyncAwait(callback.call$0(), $async$scope$1$3$semiGlobal$when);
  61043. case 8:
  61044. // returning from await.
  61045. t1 = $async$result;
  61046. $async$returnValue = t1;
  61047. $async$next = [1];
  61048. // goto finally
  61049. $async$goto = 6;
  61050. break;
  61051. $async$next.push(7);
  61052. // goto finally
  61053. $async$goto = 6;
  61054. break;
  61055. case 5:
  61056. // uncaught
  61057. $async$next = [2];
  61058. case 6:
  61059. // finally
  61060. $async$handler = 2;
  61061. $async$self._async_environment0$_inSemiGlobalScope = wasInSemiGlobalScope;
  61062. // goto the next finally handler
  61063. $async$goto = $async$next.pop();
  61064. break;
  61065. case 7:
  61066. // after finally
  61067. case 4:
  61068. // join
  61069. semiGlobal = semiGlobal && $async$self._async_environment0$_inSemiGlobalScope;
  61070. wasInSemiGlobalScope0 = $async$self._async_environment0$_inSemiGlobalScope;
  61071. $async$self._async_environment0$_inSemiGlobalScope = semiGlobal;
  61072. t1 = $async$self._async_environment0$_variables;
  61073. t2 = type$.String;
  61074. C.JSArray_methods.add$1(t1, P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.Value_2));
  61075. t3 = $async$self._async_environment0$_variableNodes;
  61076. if (t3 != null)
  61077. C.JSArray_methods.add$1(t3, P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.AstNode_2));
  61078. t3 = $async$self._async_environment0$_functions;
  61079. t4 = type$.AsyncCallable_2;
  61080. C.JSArray_methods.add$1(t3, P.LinkedHashMap_LinkedHashMap$_empty(t2, t4));
  61081. t5 = $async$self._async_environment0$_mixins;
  61082. C.JSArray_methods.add$1(t5, P.LinkedHashMap_LinkedHashMap$_empty(t2, t4));
  61083. t4 = $async$self._async_environment0$_nestedForwardedModules;
  61084. if (t4 != null)
  61085. C.JSArray_methods.add$1(t4, H.setRuntimeTypeInfo([], type$.JSArray_Module_AsyncCallable_2));
  61086. $async$handler = 9;
  61087. $async$goto = 12;
  61088. return P._asyncAwait(callback.call$0(), $async$scope$1$3$semiGlobal$when);
  61089. case 12:
  61090. // returning from await.
  61091. t2 = $async$result;
  61092. $async$returnValue = t2;
  61093. $async$next = [1];
  61094. // goto finally
  61095. $async$goto = 10;
  61096. break;
  61097. $async$next.push(11);
  61098. // goto finally
  61099. $async$goto = 10;
  61100. break;
  61101. case 9:
  61102. // uncaught
  61103. $async$next = [2];
  61104. case 10:
  61105. // finally
  61106. $async$handler = 2;
  61107. $async$self._async_environment0$_inSemiGlobalScope = wasInSemiGlobalScope0;
  61108. $async$self._async_environment0$_lastVariableIndex = $async$self._async_environment0$_lastVariableName = null;
  61109. for (t1 = J.get$iterator$ax(C.JSArray_methods.removeLast$0(t1).get$keys()), t2 = $async$self._async_environment0$_variableIndices; t1.moveNext$0();) {
  61110. $name = t1.get$current(t1);
  61111. t2.remove$1(0, $name);
  61112. }
  61113. for (t1 = J.get$iterator$ax(C.JSArray_methods.removeLast$0(t3).get$keys()), t2 = $async$self._async_environment0$_functionIndices; t1.moveNext$0();) {
  61114. name0 = t1.get$current(t1);
  61115. t2.remove$1(0, name0);
  61116. }
  61117. for (t1 = J.get$iterator$ax(C.JSArray_methods.removeLast$0(t5).get$keys()), t2 = $async$self._async_environment0$_mixinIndices; t1.moveNext$0();) {
  61118. name1 = t1.get$current(t1);
  61119. t2.remove$1(0, name1);
  61120. }
  61121. t1 = $async$self._async_environment0$_nestedForwardedModules;
  61122. if (t1 != null)
  61123. C.JSArray_methods.removeLast$0(t1);
  61124. // goto the next finally handler
  61125. $async$goto = $async$next.pop();
  61126. break;
  61127. case 11:
  61128. // after finally
  61129. case 1:
  61130. // return
  61131. return P._asyncReturn($async$returnValue, $async$completer);
  61132. case 2:
  61133. // rethrow
  61134. return P._asyncRethrow($async$currentError, $async$completer);
  61135. }
  61136. });
  61137. return P._asyncStartSync($async$scope$1$3$semiGlobal$when, $async$completer);
  61138. },
  61139. toImplicitConfiguration$0: function() {
  61140. var t2, t3, t4, t5, i, values, nodes, t6, t7,
  61141. t1 = type$.String,
  61142. configuration = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.ConfiguredValue_2);
  61143. for (t2 = this._async_environment0$_variables, t3 = this._async_environment0$_variableNodes, t4 = t3 == null, t5 = type$.AstNode_2, i = 0; i < t2.length; ++i) {
  61144. values = t2[i];
  61145. nodes = t4 ? P.LinkedHashMap_LinkedHashMap$_empty(t1, t5) : t3[i];
  61146. for (t6 = J.get$iterator$ax(values.get$keys()); t6.moveNext$0();) {
  61147. t7 = t6.get$current(t6);
  61148. configuration.$indexSet(0, t7, new Z.ConfiguredValue0(values.$index(0, t7), null, nodes.$index(0, t7)));
  61149. }
  61150. }
  61151. return new A.Configuration0(configuration, null, true);
  61152. },
  61153. _async_environment0$_getModule$1: function(namespace) {
  61154. var module = this._async_environment0$_modules.$index(0, namespace);
  61155. if (module != null)
  61156. return module;
  61157. throw H.wrapException(E.SassScriptException$0('There is no module with the namespace "' + namespace + '".'));
  61158. },
  61159. _async_environment0$_fromOneModule$1$3: function($name, type, callback) {
  61160. var t2, value, identity, t3, valueInModule, identityFromModule, t4, t5,
  61161. t1 = this._async_environment0$_nestedForwardedModules;
  61162. if (t1 != null)
  61163. for (t1 = new H.ReversedListIterable(t1, H._arrayInstanceType(t1)._eval$1("ReversedListIterable<1>")), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();)
  61164. for (t2 = J.get$reversed$ax(t1.__internal$_current), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  61165. value = callback.call$1(t2.__internal$_current);
  61166. if (value != null)
  61167. return value;
  61168. }
  61169. for (t1 = this._async_environment0$_globalModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications), t2 = type$.AsyncCallable_2, value = null, identity = null; t1.moveNext$0();) {
  61170. t3 = t1._collection$_current;
  61171. valueInModule = callback.call$1(t3);
  61172. if (valueInModule == null)
  61173. continue;
  61174. identityFromModule = t2._is(valueInModule) ? valueInModule : t3.variableIdentity$1($name);
  61175. if (identityFromModule.$eq(0, identity))
  61176. continue;
  61177. if (value != null) {
  61178. t1 = "This " + type + " is available from multiple global modules.";
  61179. t2 = type + " use";
  61180. t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  61181. for (t4 = this._async_environment0$_globalModuleNodes.get$entries(), t4 = t4.get$iterator(t4); t4.moveNext$0();) {
  61182. t5 = t4.get$current(t4);
  61183. if (callback.call$1(t5.key) != null)
  61184. t3.$indexSet(0, t5.value.get$span(), "includes " + type);
  61185. }
  61186. throw H.wrapException(E.MultiSpanSassScriptException$0(t1, t2, t3));
  61187. }
  61188. identity = identityFromModule;
  61189. value = valueInModule;
  61190. }
  61191. return value;
  61192. },
  61193. _async_environment0$_fromOneModule$3: function($name, type, callback) {
  61194. return this._async_environment0$_fromOneModule$1$3($name, type, callback, type$.dynamic);
  61195. }
  61196. };
  61197. Q.AsyncEnvironment_importForwards_closure3.prototype = {
  61198. call$1: function(module) {
  61199. return module.get$variables().get$keys();
  61200. }
  61201. };
  61202. Q.AsyncEnvironment_importForwards_closure4.prototype = {
  61203. call$1: function(module) {
  61204. return module.get$functions(module).get$keys();
  61205. }
  61206. };
  61207. Q.AsyncEnvironment_importForwards_closure5.prototype = {
  61208. call$1: function(module) {
  61209. return module.get$mixins().get$keys();
  61210. }
  61211. };
  61212. Q.AsyncEnvironment_importForwards_closure6.prototype = {
  61213. call$1: function(_) {
  61214. return H.setRuntimeTypeInfo([], type$.JSArray_Module_AsyncCallable_2);
  61215. },
  61216. $signature: 101
  61217. };
  61218. Q.AsyncEnvironment__getVariableFromGlobalModule_closure0.prototype = {
  61219. call$1: function(module) {
  61220. return module.get$variables().$index(0, this.name);
  61221. }
  61222. };
  61223. Q.AsyncEnvironment_setVariable_closure2.prototype = {
  61224. call$0: function() {
  61225. var t1 = this.$this;
  61226. t1._async_environment0$_lastVariableName = this.name;
  61227. return t1._async_environment0$_lastVariableIndex = 0;
  61228. },
  61229. $signature: 8
  61230. };
  61231. Q.AsyncEnvironment_setVariable_closure3.prototype = {
  61232. call$1: function(module) {
  61233. return module.get$variables().containsKey$1(this.name) ? module : null;
  61234. }
  61235. };
  61236. Q.AsyncEnvironment_setVariable_closure4.prototype = {
  61237. call$0: function() {
  61238. var t1 = this.$this,
  61239. t2 = t1._async_environment0$_variableIndex$1(this.name);
  61240. return t2 == null ? t1._async_environment0$_variables.length - 1 : t2;
  61241. },
  61242. $signature: 8
  61243. };
  61244. Q.AsyncEnvironment__getFunctionFromGlobalModule_closure0.prototype = {
  61245. call$1: function(module) {
  61246. return module.get$functions(module).$index(0, this.name);
  61247. }
  61248. };
  61249. Q.AsyncEnvironment__getMixinFromGlobalModule_closure0.prototype = {
  61250. call$1: function(module) {
  61251. return module.get$mixins().$index(0, this.name);
  61252. }
  61253. };
  61254. Q._EnvironmentModule2.prototype = {
  61255. get$url: function() {
  61256. return this.css.get$span().file.url;
  61257. },
  61258. setVariable$3: function($name, value, nodeWithSpan) {
  61259. var t1, t2,
  61260. module = this._async_environment0$_modulesByVariable.$index(0, $name);
  61261. if (module != null) {
  61262. module.setVariable$3($name, value, nodeWithSpan);
  61263. return;
  61264. }
  61265. t1 = this._async_environment0$_environment;
  61266. t2 = t1._async_environment0$_variables;
  61267. if (!C.JSArray_methods.get$first(t2).containsKey$1($name))
  61268. throw H.wrapException(E.SassScriptException$0("Undefined variable."));
  61269. J.$indexSet$ax(C.JSArray_methods.get$first(t2), $name, value);
  61270. t1 = t1._async_environment0$_variableNodes;
  61271. if (t1 != null)
  61272. J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, nodeWithSpan);
  61273. return;
  61274. },
  61275. variableIdentity$1: function($name) {
  61276. var module = this._async_environment0$_modulesByVariable.$index(0, $name);
  61277. return module == null ? this : module.variableIdentity$1($name);
  61278. },
  61279. cloneCss$0: function() {
  61280. var newCssAndExtender, _this = this,
  61281. t1 = _this.css;
  61282. if (J.get$isEmpty$asx(t1.get$children()))
  61283. return _this;
  61284. newCssAndExtender = V.cloneCssStylesheet0(t1, _this.extender);
  61285. return Q._EnvironmentModule$_2(_this._async_environment0$_environment, newCssAndExtender.item1, newCssAndExtender.item2, _this._async_environment0$_modulesByVariable, _this.variables, _this.variableNodes, _this.functions, _this.mixins, _this.transitivelyContainsCss, _this.transitivelyContainsExtensions);
  61286. },
  61287. toString$0: function(_) {
  61288. var t1 = this.css;
  61289. if (t1.get$span().file.url == null)
  61290. t1 = "<unknown url>";
  61291. else {
  61292. t1 = t1.get$span();
  61293. t1 = $.$get$context().prettyUri$1(t1.file.url);
  61294. }
  61295. return t1;
  61296. },
  61297. $isModule0: 1,
  61298. get$upstream: function() {
  61299. return this.upstream;
  61300. },
  61301. get$variables: function() {
  61302. return this.variables;
  61303. },
  61304. get$variableNodes: function() {
  61305. return this.variableNodes;
  61306. },
  61307. get$functions: function(receiver) {
  61308. return this.functions;
  61309. },
  61310. get$mixins: function() {
  61311. return this.mixins;
  61312. },
  61313. get$extender: function() {
  61314. return this.extender;
  61315. },
  61316. get$css: function(receiver) {
  61317. return this.css;
  61318. },
  61319. get$transitivelyContainsCss: function() {
  61320. return this.transitivelyContainsCss;
  61321. },
  61322. get$transitivelyContainsExtensions: function() {
  61323. return this.transitivelyContainsExtensions;
  61324. }
  61325. };
  61326. Q._EnvironmentModule__EnvironmentModule_closure17.prototype = {
  61327. call$1: function(module) {
  61328. return module.get$variables();
  61329. }
  61330. };
  61331. Q._EnvironmentModule__EnvironmentModule_closure18.prototype = {
  61332. call$1: function(module) {
  61333. return module.get$variableNodes();
  61334. }
  61335. };
  61336. Q._EnvironmentModule__EnvironmentModule_closure19.prototype = {
  61337. call$1: function(module) {
  61338. return module.get$functions(module);
  61339. }
  61340. };
  61341. Q._EnvironmentModule__EnvironmentModule_closure20.prototype = {
  61342. call$1: function(module) {
  61343. return module.get$mixins();
  61344. }
  61345. };
  61346. Q._EnvironmentModule__EnvironmentModule_closure21.prototype = {
  61347. call$1: function(module) {
  61348. return module.get$transitivelyContainsCss();
  61349. }
  61350. };
  61351. Q._EnvironmentModule__EnvironmentModule_closure22.prototype = {
  61352. call$1: function(module) {
  61353. return module.get$transitivelyContainsExtensions();
  61354. }
  61355. };
  61356. E._EvaluateVisitor2.prototype = {
  61357. _EvaluateVisitor$5$functions$importCache$logger$nodeImporter$sourceMap2: function(functions, importCache, logger, nodeImporter, sourceMap) {
  61358. var t6, t7, t8, t9, t10, t11, t12, metaFunctions, metaMixins, _i, metaModule, module, $function, _this = this,
  61359. _s9_ = "sass:meta",
  61360. t1 = type$.String,
  61361. t2 = type$.VariableDeclaration_2,
  61362. t3 = S.SpanScanner$("@function global-variable-exists($name, $module: null) {", _s9_),
  61363. t4 = type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2,
  61364. t5 = type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2;
  61365. t3 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t3, C.C_StderrLogger).parseArgumentDeclaration$0(), new E._EvaluateVisitor_closure29(_this), t4)], t5);
  61366. t6 = S.SpanScanner$("@function variable-exists($name) {", _s9_);
  61367. t6 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t6, C.C_StderrLogger).parseArgumentDeclaration$0(), new E._EvaluateVisitor_closure30(_this), t4)], t5);
  61368. t7 = S.SpanScanner$("@function function-exists($name, $module: null) {", _s9_);
  61369. t7 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t7, C.C_StderrLogger).parseArgumentDeclaration$0(), new E._EvaluateVisitor_closure31(_this), t4)], t5);
  61370. t8 = S.SpanScanner$("@function mixin-exists($name, $module: null) {", _s9_);
  61371. t8 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t8, C.C_StderrLogger).parseArgumentDeclaration$0(), new E._EvaluateVisitor_closure32(_this), t4)], t5);
  61372. t9 = S.SpanScanner$("@function content-exists() {", _s9_);
  61373. t9 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t9, C.C_StderrLogger).parseArgumentDeclaration$0(), new E._EvaluateVisitor_closure33(_this), t4)], t5);
  61374. t10 = S.SpanScanner$("@function module-variables($module) {", _s9_);
  61375. t10 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t10, C.C_StderrLogger).parseArgumentDeclaration$0(), new E._EvaluateVisitor_closure34(_this), t4)], t5);
  61376. t11 = S.SpanScanner$("@function module-functions($module) {", _s9_);
  61377. t11 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t11, C.C_StderrLogger).parseArgumentDeclaration$0(), new E._EvaluateVisitor_closure35(_this), t4)], t5);
  61378. t12 = S.SpanScanner$("@function get-function($name, $css: false, $module: null) {", _s9_);
  61379. t4 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t12, C.C_StderrLogger).parseArgumentDeclaration$0(), new E._EvaluateVisitor_closure36(_this), t4)], t5);
  61380. t5 = S.SpanScanner$("@function call($function, $args...) {", _s9_);
  61381. metaFunctions = [new Q.BuiltInCallable0("global-variable-exists", t3), new Q.BuiltInCallable0("variable-exists", t6), new Q.BuiltInCallable0("function-exists", t7), new Q.BuiltInCallable0("mixin-exists", t8), new Q.BuiltInCallable0("content-exists", t9), new Q.BuiltInCallable0("module-variables", t10), new Q.BuiltInCallable0("module-functions", t11), new Q.BuiltInCallable0("get-function", t4), new S.AsyncBuiltInCallable0("call", new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t5, C.C_StderrLogger).parseArgumentDeclaration$0(), new E._EvaluateVisitor_closure37(_this))];
  61382. t1 = type$.JSArray_AsyncBuiltInCallable_2;
  61383. metaMixins = H.setRuntimeTypeInfo([S.AsyncBuiltInCallable$mixin0("load-css", "$module, $with: null", new E._EvaluateVisitor_closure38(_this), _s9_)], t1);
  61384. t1 = H.setRuntimeTypeInfo([], t1);
  61385. for (t2 = $.$get$global6(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
  61386. t1.push(t2.__internal$_current);
  61387. for (_i = 0; _i < 9; ++_i)
  61388. t1.push(metaFunctions[_i]);
  61389. metaModule = Q.BuiltInModule$0("meta", t1, metaMixins, null, type$.AsyncBuiltInCallable_2);
  61390. t1 = H.setRuntimeTypeInfo([], type$.JSArray_BuiltInModule_AsyncBuiltInCallable_2);
  61391. for (t2 = $.$get$coreModules0(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
  61392. t1.push(t2.__internal$_current);
  61393. t1.push(metaModule);
  61394. t2 = t1.length;
  61395. t3 = _this._async_evaluate0$_builtInModules;
  61396. _i = 0;
  61397. for (; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  61398. module = t1[_i];
  61399. t3.$indexSet(0, module.url, module);
  61400. }
  61401. t1 = H.setRuntimeTypeInfo([], type$.JSArray_AsyncCallable);
  61402. for (t2 = functions.length, _i = 0; _i < functions.length; functions.length === t2 || (0, H.throwConcurrentModificationError)(functions), ++_i)
  61403. t1.push(functions[_i]);
  61404. for (t2 = $.$get$globalFunctions0(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
  61405. t1.push(t2.__internal$_current);
  61406. for (_i = 0; _i < 9; ++_i)
  61407. t1.push(metaFunctions[_i]);
  61408. for (t2 = t1.length, t3 = _this._async_evaluate0$_builtInFunctions, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  61409. $function = t1[_i];
  61410. t4 = $function.get$name();
  61411. t4.toString;
  61412. t3.$indexSet(0, H.stringReplaceAllUnchecked(t4, "_", "-"), $function);
  61413. }
  61414. },
  61415. run$2: function(_, importer, node) {
  61416. return this.run$body$_EvaluateVisitor0(_, importer, node);
  61417. },
  61418. run$body$_EvaluateVisitor0: function(_, importer, node) {
  61419. var $async$goto = 0,
  61420. $async$completer = P._makeAsyncAwaitCompleter(type$.EvaluateResult_2),
  61421. $async$returnValue, $async$self = this;
  61422. var $async$run$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  61423. if ($async$errorCode === 1)
  61424. return P._asyncRethrow($async$result, $async$completer);
  61425. while (true)
  61426. switch ($async$goto) {
  61427. case 0:
  61428. // Function start
  61429. $async$returnValue = $async$self._async_evaluate0$_withWarnCallback$1$1(new E._EvaluateVisitor_run_closure2($async$self, node, importer), type$.FutureOr_EvaluateResult_2);
  61430. // goto return
  61431. $async$goto = 1;
  61432. break;
  61433. case 1:
  61434. // return
  61435. return P._asyncReturn($async$returnValue, $async$completer);
  61436. }
  61437. });
  61438. return P._asyncStartSync($async$run$2, $async$completer);
  61439. },
  61440. _async_evaluate0$_withWarnCallback$1$1: function(callback, $T) {
  61441. return N.withWarnCallback0(new E._EvaluateVisitor__withWarnCallback_closure2(this), callback, $T);
  61442. },
  61443. _async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors: function(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
  61444. return this._loadModule$body$_EvaluateVisitor0(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors);
  61445. },
  61446. _async_evaluate0$_loadModule$5$configuration: function(url, stackFrame, nodeWithSpan, callback, configuration) {
  61447. return this._async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, configuration, false);
  61448. },
  61449. _async_evaluate0$_loadModule$4: function(url, stackFrame, nodeWithSpan, callback) {
  61450. return this._async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, null, false);
  61451. },
  61452. _loadModule$body$_EvaluateVisitor0: function(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
  61453. var $async$goto = 0,
  61454. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  61455. $async$returnValue, $async$self = this, t1, builtInModule;
  61456. var $async$_async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  61457. if ($async$errorCode === 1)
  61458. return P._asyncRethrow($async$result, $async$completer);
  61459. while (true)
  61460. switch ($async$goto) {
  61461. case 0:
  61462. // Function start
  61463. builtInModule = $async$self._async_evaluate0$_builtInModules.$index(0, url);
  61464. if (builtInModule != null) {
  61465. if (configuration != null && !configuration.isImplicit) {
  61466. t1 = namesInErrors ? "Built-in module " + H.S(url) + " can't be configured." : "Built-in modules can't be configured.";
  61467. throw H.wrapException($async$self._async_evaluate0$_exception$2(t1, nodeWithSpan.get$span()));
  61468. }
  61469. callback.call$1(builtInModule);
  61470. // goto return
  61471. $async$goto = 1;
  61472. break;
  61473. }
  61474. $async$goto = 3;
  61475. return P._asyncAwait($async$self._async_evaluate0$_withStackFrame$1$3(stackFrame, nodeWithSpan, new E._EvaluateVisitor__loadModule_closure2($async$self, url, nodeWithSpan, baseUrl, namesInErrors, configuration, callback), type$.Null), $async$_async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors);
  61476. case 3:
  61477. // returning from await.
  61478. case 1:
  61479. // return
  61480. return P._asyncReturn($async$returnValue, $async$completer);
  61481. }
  61482. });
  61483. return P._asyncStartSync($async$_async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors, $async$completer);
  61484. },
  61485. _async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan: function(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
  61486. return this._execute$body$_EvaluateVisitor0(importer, stylesheet, configuration, namesInErrors, nodeWithSpan);
  61487. },
  61488. _async_evaluate0$_execute$2: function(importer, stylesheet) {
  61489. return this._async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, null, false, null);
  61490. },
  61491. _execute$body$_EvaluateVisitor0: function(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
  61492. var $async$goto = 0,
  61493. $async$completer = P._makeAsyncAwaitCompleter(type$.Module_AsyncCallable_2),
  61494. $async$returnValue, $async$self = this, message, existingNode, environment, t3, extender, module, t1, url, t2, alreadyLoaded;
  61495. var $async$_async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  61496. if ($async$errorCode === 1)
  61497. return P._asyncRethrow($async$result, $async$completer);
  61498. while (true)
  61499. switch ($async$goto) {
  61500. case 0:
  61501. // Function start
  61502. t1 = {};
  61503. url = stylesheet.span.file.url;
  61504. t2 = $async$self._async_evaluate0$_modules;
  61505. alreadyLoaded = t2.$index(0, url);
  61506. if (alreadyLoaded != null) {
  61507. t1 = configuration == null;
  61508. if (!(t1 ? $async$self._async_evaluate0$_configuration : configuration).isImplicit) {
  61509. message = namesInErrors ? H.S($.$get$context().prettyUri$1(url)) + ' was already loaded, so it can\'t be configured using "with".' : 'This module was already loaded, so it can\'t be configured using "with".';
  61510. existingNode = $async$self._async_evaluate0$_moduleNodes.$index(0, url);
  61511. t2 = P.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  61512. if (existingNode != null)
  61513. t2.$indexSet(0, existingNode.get$span(), "original load");
  61514. if (t1)
  61515. t2.$indexSet(0, $async$self._async_evaluate0$_configuration.nodeWithSpan.get$span(), "configuration");
  61516. throw H.wrapException(t2.get$isEmpty(t2) ? $async$self._async_evaluate0$_exception$1(message) : $async$self._async_evaluate0$_multiSpanException$3(message, "new load", t2));
  61517. }
  61518. $async$returnValue = alreadyLoaded;
  61519. // goto return
  61520. $async$goto = 1;
  61521. break;
  61522. }
  61523. environment = Q.AsyncEnvironment$0($async$self._async_evaluate0$_sourceMap);
  61524. t1.css = null;
  61525. t3 = type$.SimpleSelector_2;
  61526. extender = new F.Extender0(P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.Set_ModifiableCssValue_SelectorList_2), P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.Map_ComplexSelector_Extension_2), P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.List_Extension_2), P.LinkedHashMap_LinkedHashMap$_empty(type$.ModifiableCssValue_SelectorList_2, type$.List_CssMediaQuery_2), P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6(t3, type$.int), new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_ComplexSelector_2), C.ExtendMode_normal0);
  61527. $async$goto = 3;
  61528. return P._asyncAwait($async$self._async_evaluate0$_withEnvironment$1$2(environment, new E._EvaluateVisitor__execute_closure2(t1, $async$self, importer, stylesheet, extender, configuration), type$.Null), $async$_async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan);
  61529. case 3:
  61530. // returning from await.
  61531. module = Q._EnvironmentModule__EnvironmentModule2(environment, t1.css, extender, environment._async_environment0$_forwardedModules);
  61532. t2.$indexSet(0, url, module);
  61533. $async$self._async_evaluate0$_moduleNodes.$indexSet(0, url, nodeWithSpan);
  61534. $async$returnValue = module;
  61535. // goto return
  61536. $async$goto = 1;
  61537. break;
  61538. case 1:
  61539. // return
  61540. return P._asyncReturn($async$returnValue, $async$completer);
  61541. }
  61542. });
  61543. return P._asyncStartSync($async$_async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan, $async$completer);
  61544. },
  61545. _async_evaluate0$_addOutOfOrderImports$0: function() {
  61546. var t1, statements, _this = this;
  61547. if (_this._async_evaluate0$_outOfOrderImports == null)
  61548. return _this._async_evaluate0$_root.children;
  61549. t1 = new Array(J.get$length$asx(_this._async_evaluate0$_root.children._collection$_source) + _this._async_evaluate0$_outOfOrderImports.length);
  61550. t1.fixed$length = Array;
  61551. statements = new G.FixedLengthListBuilder0(H.setRuntimeTypeInfo(t1, type$.JSArray_ModifiableCssNode_2), type$.FixedLengthListBuilder_ModifiableCssNode_2);
  61552. statements.addRange$3(_this._async_evaluate0$_root.children, 0, _this._async_evaluate0$_endOfImports);
  61553. statements.addAll$1(0, _this._async_evaluate0$_outOfOrderImports);
  61554. statements.addRange$2(_this._async_evaluate0$_root.children, _this._async_evaluate0$_endOfImports);
  61555. return statements.build$0();
  61556. },
  61557. _async_evaluate0$_combineCss$2$clone: function(root, clone) {
  61558. var selectors, unsatisfiedExtension, sortedModules, t1, imports, css, t2, statements, index, _this = this;
  61559. if (!C.JSArray_methods.any$1(root.get$upstream(), new E._EvaluateVisitor__combineCss_closure8())) {
  61560. selectors = root.get$extender().get$simpleSelectors();
  61561. unsatisfiedExtension = B.firstOrNull0(root.get$extender().extensionsWhereTarget$1(new E._EvaluateVisitor__combineCss_closure9(selectors)));
  61562. if (unsatisfiedExtension != null)
  61563. _this._async_evaluate0$_throwForUnsatisfiedExtension$1(unsatisfiedExtension);
  61564. return root.get$css(root);
  61565. }
  61566. sortedModules = _this._async_evaluate0$_topologicalModules$1(root);
  61567. if (clone)
  61568. sortedModules = new H.MappedListIterable(sortedModules, new E._EvaluateVisitor__combineCss_closure10(), sortedModules.$ti._eval$1("MappedListIterable<ListMixin.E,Module0<AsyncCallable0>>")).toList$0(0);
  61569. _this._async_evaluate0$_extendModules$1(sortedModules);
  61570. t1 = type$.JSArray_CssNode_2;
  61571. imports = H.setRuntimeTypeInfo([], t1);
  61572. css = H.setRuntimeTypeInfo([], t1);
  61573. for (t1 = J.get$reversed$ax(sortedModules), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  61574. t2 = t1.__internal$_current;
  61575. statements = t2.get$css(t2).get$children();
  61576. index = _this._async_evaluate0$_indexAfterImports$1(statements);
  61577. t2 = J.getInterceptor$ax(statements);
  61578. C.JSArray_methods.addAll$1(imports, t2.getRange$2(statements, 0, index));
  61579. C.JSArray_methods.addAll$1(css, t2.getRange$2(statements, index, t2.get$length(statements)));
  61580. }
  61581. return new V.CssStylesheet0(new P.UnmodifiableListView(C.JSArray_methods.$add(imports, css), type$.UnmodifiableListView_CssNode_2), root.get$css(root).get$span());
  61582. },
  61583. _async_evaluate0$_combineCss$1: function(root) {
  61584. return this._async_evaluate0$_combineCss$2$clone(root, false);
  61585. },
  61586. _async_evaluate0$_extendModules$1: function(sortedModules) {
  61587. var t1, t2, originalSelectors, extenders, t3, t4, _i,
  61588. downstreamExtenders = P.LinkedHashMap_LinkedHashMap$_empty(type$.Uri, type$.List_Extender_2),
  61589. unsatisfiedExtensions = new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_Extension_2);
  61590. for (t1 = J.get$iterator$ax(sortedModules); t1.moveNext$0();) {
  61591. t2 = t1.get$current(t1);
  61592. originalSelectors = t2.get$extender().get$simpleSelectors().toSet$0(0);
  61593. unsatisfiedExtensions.addAll$1(0, t2.get$extender().extensionsWhereTarget$1(new E._EvaluateVisitor__extendModules_closure5(originalSelectors)));
  61594. extenders = downstreamExtenders.$index(0, t2.get$url());
  61595. if (extenders != null)
  61596. t2.get$extender().addExtensions$1(extenders);
  61597. t3 = t2.get$extender();
  61598. if (t3.get$isEmpty(t3))
  61599. continue;
  61600. for (t3 = t2.get$upstream(), t4 = t3.length, _i = 0; _i < t3.length; t3.length === t4 || (0, H.throwConcurrentModificationError)(t3), ++_i)
  61601. J.add$1$ax(downstreamExtenders.putIfAbsent$2(t3[_i].get$url(), new E._EvaluateVisitor__extendModules_closure6()), t2.get$extender());
  61602. unsatisfiedExtensions.removeAll$1(t2.get$extender().extensionsWhereTarget$1(originalSelectors.get$contains(originalSelectors)));
  61603. }
  61604. if (unsatisfiedExtensions._collection$_length !== 0)
  61605. this._async_evaluate0$_throwForUnsatisfiedExtension$1(unsatisfiedExtensions.get$first(unsatisfiedExtensions));
  61606. },
  61607. _async_evaluate0$_throwForUnsatisfiedExtension$1: function(extension) {
  61608. throw H.wrapException(E.SassException$0('The target selector was not found.\nUse "@extend ' + H.S(extension.target) + ' !optional" to avoid this error.', extension.span));
  61609. },
  61610. _async_evaluate0$_topologicalModules$1: function(root) {
  61611. var t1 = type$.Module_AsyncCallable_2,
  61612. sorted = Q.QueueList$(null, t1);
  61613. new E._EvaluateVisitor__topologicalModules_visitModule2(P.LinkedHashSet_LinkedHashSet$_empty(t1), sorted).call$1(root);
  61614. return sorted;
  61615. },
  61616. _async_evaluate0$_indexAfterImports$1: function(statements) {
  61617. var t1, t2, t3, lastImport, i, statement;
  61618. for (t1 = J.getInterceptor$asx(statements), t2 = type$.CssComment_2, t3 = type$.CssImport_2, lastImport = -1, i = 0; i < t1.get$length(statements); ++i) {
  61619. statement = t1.$index(statements, i);
  61620. if (t3._is(statement))
  61621. lastImport = i;
  61622. else if (!t2._is(statement))
  61623. break;
  61624. }
  61625. return lastImport + 1;
  61626. },
  61627. visitStylesheet$1: function(node) {
  61628. return this.visitStylesheet$body$_EvaluateVisitor0(node);
  61629. },
  61630. visitStylesheet$body$_EvaluateVisitor0: function(node) {
  61631. var $async$goto = 0,
  61632. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  61633. $async$returnValue, $async$self = this, t1, t2, _i;
  61634. var $async$visitStylesheet$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  61635. if ($async$errorCode === 1)
  61636. return P._asyncRethrow($async$result, $async$completer);
  61637. while (true)
  61638. switch ($async$goto) {
  61639. case 0:
  61640. // Function start
  61641. t1 = node.children, t2 = t1.length, _i = 0;
  61642. case 3:
  61643. // for condition
  61644. if (!(_i < t2)) {
  61645. // goto after for
  61646. $async$goto = 5;
  61647. break;
  61648. }
  61649. $async$goto = 6;
  61650. return P._asyncAwait(t1[_i].accept$1($async$self), $async$visitStylesheet$1);
  61651. case 6:
  61652. // returning from await.
  61653. case 4:
  61654. // for update
  61655. ++_i;
  61656. // goto for condition
  61657. $async$goto = 3;
  61658. break;
  61659. case 5:
  61660. // after for
  61661. $async$returnValue = null;
  61662. // goto return
  61663. $async$goto = 1;
  61664. break;
  61665. case 1:
  61666. // return
  61667. return P._asyncReturn($async$returnValue, $async$completer);
  61668. }
  61669. });
  61670. return P._asyncStartSync($async$visitStylesheet$1, $async$completer);
  61671. },
  61672. visitAtRootRule$1: function(node) {
  61673. return this.visitAtRootRule$body$_EvaluateVisitor0(node);
  61674. },
  61675. visitAtRootRule$body$_EvaluateVisitor0: function(node) {
  61676. var $async$goto = 0,
  61677. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  61678. $async$returnValue, $async$self = this, root, innerCopy, outerCopy, copy, t1, query, $parent, included, $async$temp1, $async$temp2;
  61679. var $async$visitAtRootRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  61680. if ($async$errorCode === 1)
  61681. return P._asyncRethrow($async$result, $async$completer);
  61682. while (true)
  61683. switch ($async$goto) {
  61684. case 0:
  61685. // Function start
  61686. t1 = node.query;
  61687. $async$goto = t1 != null ? 3 : 5;
  61688. break;
  61689. case 3:
  61690. // then
  61691. $async$temp1 = t1;
  61692. $async$temp2 = E;
  61693. $async$goto = 6;
  61694. return P._asyncAwait($async$self._async_evaluate0$_performInterpolation$2$warnForColor(t1, true), $async$visitAtRootRule$1);
  61695. case 6:
  61696. // returning from await.
  61697. $async$result = $async$self._async_evaluate0$_adjustParseError$2($async$temp1, new $async$temp2._EvaluateVisitor_visitAtRootRule_closure8($async$self, $async$result));
  61698. // goto join
  61699. $async$goto = 4;
  61700. break;
  61701. case 5:
  61702. // else
  61703. $async$result = C.AtRootQuery_UsS0;
  61704. case 4:
  61705. // join
  61706. query = $async$result;
  61707. $parent = $async$self._async_evaluate0$_parent;
  61708. included = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssParentNode_2);
  61709. for (t1 = type$.CssStylesheet_2; !t1._is($parent);) {
  61710. if (!query.excludes$1($parent))
  61711. included.push($parent);
  61712. $parent = $parent._node2$_parent;
  61713. }
  61714. root = $async$self._async_evaluate0$_trimIncluded$1(included);
  61715. $async$goto = root == $async$self._async_evaluate0$_parent ? 7 : 8;
  61716. break;
  61717. case 7:
  61718. // then
  61719. $async$goto = 9;
  61720. return P._asyncAwait($async$self._async_evaluate0$_environment.scope$1$2$when(new E._EvaluateVisitor_visitAtRootRule_closure9($async$self, node), node.hasDeclarations, type$.Null), $async$visitAtRootRule$1);
  61721. case 9:
  61722. // returning from await.
  61723. $async$returnValue = null;
  61724. // goto return
  61725. $async$goto = 1;
  61726. break;
  61727. case 8:
  61728. // join
  61729. innerCopy = included.length === 0 ? null : C.JSArray_methods.get$first(included).copyWithoutChildren$0();
  61730. for (t1 = H.SubListIterable$(included, 1, null, type$.ModifiableCssParentNode_2), t1 = new H.ListIterator(t1, t1.get$length(t1)), outerCopy = innerCopy; t1.moveNext$0(); outerCopy = copy) {
  61731. copy = t1.__internal$_current.copyWithoutChildren$0();
  61732. copy.addChild$1(outerCopy);
  61733. }
  61734. if (outerCopy != null)
  61735. root.addChild$1(outerCopy);
  61736. $async$goto = 10;
  61737. return P._asyncAwait($async$self._async_evaluate0$_scopeForAtRoot$4(node, innerCopy == null ? root : innerCopy, query, included).call$1(new E._EvaluateVisitor_visitAtRootRule_closure10($async$self, node)), $async$visitAtRootRule$1);
  61738. case 10:
  61739. // returning from await.
  61740. $async$returnValue = null;
  61741. // goto return
  61742. $async$goto = 1;
  61743. break;
  61744. case 1:
  61745. // return
  61746. return P._asyncReturn($async$returnValue, $async$completer);
  61747. }
  61748. });
  61749. return P._asyncStartSync($async$visitAtRootRule$1, $async$completer);
  61750. },
  61751. _async_evaluate0$_trimIncluded$1: function(nodes) {
  61752. var $parent, innermostContiguous, i, t2, root,
  61753. t1 = nodes.length;
  61754. if (t1 === 0)
  61755. return this._async_evaluate0$_root;
  61756. $parent = this._async_evaluate0$_parent;
  61757. for (innermostContiguous = null, i = 0; i < t1; ++i) {
  61758. for (; $parent != nodes[i]; innermostContiguous = null)
  61759. $parent = $parent._node2$_parent;
  61760. if (innermostContiguous == null)
  61761. innermostContiguous = i;
  61762. $parent = $parent._node2$_parent;
  61763. }
  61764. t2 = this._async_evaluate0$_root;
  61765. if ($parent != t2)
  61766. return t2;
  61767. root = nodes[innermostContiguous];
  61768. C.JSArray_methods.removeRange$2(nodes, innermostContiguous, t1);
  61769. return root;
  61770. },
  61771. _async_evaluate0$_scopeForAtRoot$4: function(node, newParent, query, included) {
  61772. var _this = this,
  61773. scope = new E._EvaluateVisitor__scopeForAtRoot_closure17(_this, newParent, node),
  61774. t1 = query._at_root_query0$_all,
  61775. t2 = t1 || query._at_root_query0$_rule,
  61776. t3 = query.include;
  61777. if (t2 !== t3)
  61778. scope = new E._EvaluateVisitor__scopeForAtRoot_closure18(_this, scope);
  61779. if (t1 ? !t3 : query.names.contains$1(0, "media") !== t3)
  61780. scope = new E._EvaluateVisitor__scopeForAtRoot_closure19(_this, scope);
  61781. if (_this._async_evaluate0$_inKeyframes && query.names.contains$1(0, "keyframes") !== t3)
  61782. scope = new E._EvaluateVisitor__scopeForAtRoot_closure20(_this, scope);
  61783. return _this._async_evaluate0$_inUnknownAtRule && !C.JSArray_methods.any$1(included, new E._EvaluateVisitor__scopeForAtRoot_closure21()) ? new E._EvaluateVisitor__scopeForAtRoot_closure22(_this, scope) : scope;
  61784. },
  61785. visitContentBlock$1: function(node) {
  61786. return H.throwExpression(P.UnsupportedError$("Evaluation handles @include and its content block together."));
  61787. },
  61788. visitContentRule$1: function(node) {
  61789. return this.visitContentRule$body$_EvaluateVisitor0(node);
  61790. },
  61791. visitContentRule$body$_EvaluateVisitor0: function(node) {
  61792. var $async$goto = 0,
  61793. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  61794. $async$returnValue, $async$self = this, $content;
  61795. var $async$visitContentRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  61796. if ($async$errorCode === 1)
  61797. return P._asyncRethrow($async$result, $async$completer);
  61798. while (true)
  61799. switch ($async$goto) {
  61800. case 0:
  61801. // Function start
  61802. $content = $async$self._async_evaluate0$_environment._async_environment0$_content;
  61803. if ($content == null) {
  61804. $async$returnValue = null;
  61805. // goto return
  61806. $async$goto = 1;
  61807. break;
  61808. }
  61809. $async$goto = 3;
  61810. return P._asyncAwait($async$self._async_evaluate0$_runUserDefinedCallable$4(node.$arguments, $content, node, new E._EvaluateVisitor_visitContentRule_closure2($async$self, $content)), $async$visitContentRule$1);
  61811. case 3:
  61812. // returning from await.
  61813. $async$returnValue = null;
  61814. // goto return
  61815. $async$goto = 1;
  61816. break;
  61817. case 1:
  61818. // return
  61819. return P._asyncReturn($async$returnValue, $async$completer);
  61820. }
  61821. });
  61822. return P._asyncStartSync($async$visitContentRule$1, $async$completer);
  61823. },
  61824. visitDebugRule$1: function(node) {
  61825. return this.visitDebugRule$body$_EvaluateVisitor0(node);
  61826. },
  61827. visitDebugRule$body$_EvaluateVisitor0: function(node) {
  61828. var $async$goto = 0,
  61829. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  61830. $async$returnValue, $async$self = this, value, t1;
  61831. var $async$visitDebugRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  61832. if ($async$errorCode === 1)
  61833. return P._asyncRethrow($async$result, $async$completer);
  61834. while (true)
  61835. switch ($async$goto) {
  61836. case 0:
  61837. // Function start
  61838. $async$goto = 3;
  61839. return P._asyncAwait(node.expression.accept$1($async$self), $async$visitDebugRule$1);
  61840. case 3:
  61841. // returning from await.
  61842. value = $async$result;
  61843. t1 = value instanceof D.SassString0 ? value.text : J.toString$0$(value);
  61844. $async$self._async_evaluate0$_logger.debug$2(t1, node.span);
  61845. $async$returnValue = null;
  61846. // goto return
  61847. $async$goto = 1;
  61848. break;
  61849. case 1:
  61850. // return
  61851. return P._asyncReturn($async$returnValue, $async$completer);
  61852. }
  61853. });
  61854. return P._asyncStartSync($async$visitDebugRule$1, $async$completer);
  61855. },
  61856. visitDeclaration$1: function(node) {
  61857. return this.visitDeclaration$body$_EvaluateVisitor0(node);
  61858. },
  61859. visitDeclaration$body$_EvaluateVisitor0: function(node) {
  61860. var $async$goto = 0,
  61861. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  61862. $async$returnValue, $async$self = this, $name, t1, cssValue, t2, oldDeclarationName, $async$temp1;
  61863. var $async$visitDeclaration$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  61864. if ($async$errorCode === 1)
  61865. return P._asyncRethrow($async$result, $async$completer);
  61866. while (true)
  61867. switch ($async$goto) {
  61868. case 0:
  61869. // Function start
  61870. if (!($async$self._async_evaluate0$_styleRule != null && !$async$self._async_evaluate0$_atRootExcludingStyleRule) && !$async$self._async_evaluate0$_inUnknownAtRule && !$async$self._async_evaluate0$_inKeyframes)
  61871. throw H.wrapException($async$self._async_evaluate0$_exception$2("Declarations may only be used within style rules.", node.span));
  61872. $async$goto = 3;
  61873. return P._asyncAwait($async$self._async_evaluate0$_interpolationToValue$2$warnForColor(node.name, true), $async$visitDeclaration$1);
  61874. case 3:
  61875. // returning from await.
  61876. $name = $async$result;
  61877. t1 = $async$self._async_evaluate0$_declarationName;
  61878. if (t1 != null)
  61879. $name = new F.CssValue0(t1 + "-" + H.S($name.get$value($name)), $name.get$span(), type$.CssValue_String_2);
  61880. t1 = node.value;
  61881. $async$goto = t1 == null ? 4 : 6;
  61882. break;
  61883. case 4:
  61884. // then
  61885. $async$result = null;
  61886. // goto join
  61887. $async$goto = 5;
  61888. break;
  61889. case 6:
  61890. // else
  61891. $async$temp1 = F;
  61892. $async$goto = 7;
  61893. return P._asyncAwait(t1.accept$1($async$self), $async$visitDeclaration$1);
  61894. case 7:
  61895. // returning from await.
  61896. $async$result = new $async$temp1.CssValue0($async$result, t1.get$span(), type$.CssValue_Value_2);
  61897. case 5:
  61898. // join
  61899. cssValue = $async$result;
  61900. if (cssValue != null) {
  61901. t2 = cssValue.value;
  61902. t2 = !t2.get$isBlank() || t2.get$asList().length === 0;
  61903. } else
  61904. t2 = false;
  61905. if (t2) {
  61906. t2 = $async$self._async_evaluate0$_parent;
  61907. t1 = $async$self._async_evaluate0$_expressionNode$1(t1);
  61908. t1 = t1 == null ? null : t1.get$span();
  61909. t2.addChild$1(L.ModifiableCssDeclaration$0($name, cssValue, node.span, t1));
  61910. } else if (J.startsWith$1$s($name.get$value($name), "--"))
  61911. throw H.wrapException($async$self._async_evaluate0$_exception$2("Custom property values may not be empty.", t1.get$span()));
  61912. $async$goto = node.children != null ? 8 : 9;
  61913. break;
  61914. case 8:
  61915. // then
  61916. oldDeclarationName = $async$self._async_evaluate0$_declarationName;
  61917. $async$self._async_evaluate0$_declarationName = $name.get$value($name);
  61918. $async$goto = 10;
  61919. return P._asyncAwait($async$self._async_evaluate0$_environment.scope$1$2$when(new E._EvaluateVisitor_visitDeclaration_closure2($async$self, node), node.hasDeclarations, type$.Null), $async$visitDeclaration$1);
  61920. case 10:
  61921. // returning from await.
  61922. $async$self._async_evaluate0$_declarationName = oldDeclarationName;
  61923. case 9:
  61924. // join
  61925. $async$returnValue = null;
  61926. // goto return
  61927. $async$goto = 1;
  61928. break;
  61929. case 1:
  61930. // return
  61931. return P._asyncReturn($async$returnValue, $async$completer);
  61932. }
  61933. });
  61934. return P._asyncStartSync($async$visitDeclaration$1, $async$completer);
  61935. },
  61936. visitEachRule$1: function(node) {
  61937. return this.visitEachRule$body$_EvaluateVisitor0(node);
  61938. },
  61939. visitEachRule$body$_EvaluateVisitor0: function(node) {
  61940. var $async$goto = 0,
  61941. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  61942. $async$returnValue, $async$self = this, t1, list, nodeWithSpan, setVariables;
  61943. var $async$visitEachRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  61944. if ($async$errorCode === 1)
  61945. return P._asyncRethrow($async$result, $async$completer);
  61946. while (true)
  61947. switch ($async$goto) {
  61948. case 0:
  61949. // Function start
  61950. t1 = node.list;
  61951. $async$goto = 3;
  61952. return P._asyncAwait(t1.accept$1($async$self), $async$visitEachRule$1);
  61953. case 3:
  61954. // returning from await.
  61955. list = $async$result;
  61956. nodeWithSpan = $async$self._async_evaluate0$_expressionNode$1(t1);
  61957. setVariables = node.variables.length === 1 ? new E._EvaluateVisitor_visitEachRule_closure8($async$self, node, nodeWithSpan) : new E._EvaluateVisitor_visitEachRule_closure9($async$self, node, nodeWithSpan);
  61958. $async$returnValue = $async$self._async_evaluate0$_environment.scope$1$2$semiGlobal(new E._EvaluateVisitor_visitEachRule_closure10($async$self, list, setVariables, node), true, type$.Value_2);
  61959. // goto return
  61960. $async$goto = 1;
  61961. break;
  61962. case 1:
  61963. // return
  61964. return P._asyncReturn($async$returnValue, $async$completer);
  61965. }
  61966. });
  61967. return P._asyncStartSync($async$visitEachRule$1, $async$completer);
  61968. },
  61969. _async_evaluate0$_setMultipleVariables$3: function(variables, value, nodeWithSpan) {
  61970. var i,
  61971. list = value.get$asList(),
  61972. t1 = variables.length,
  61973. minLength = Math.min(t1, list.length);
  61974. for (i = 0; i < minLength; ++i)
  61975. this._async_evaluate0$_environment.setLocalVariable$3(variables[i], list[i].withoutSlash$0(), nodeWithSpan);
  61976. for (i = minLength; i < t1; ++i)
  61977. this._async_evaluate0$_environment.setLocalVariable$3(variables[i], C.C_SassNull, nodeWithSpan);
  61978. },
  61979. visitErrorRule$1: function(node) {
  61980. return this.visitErrorRule$body$_EvaluateVisitor0(node);
  61981. },
  61982. visitErrorRule$body$_EvaluateVisitor0: function(node) {
  61983. var $async$goto = 0,
  61984. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  61985. $async$self = this, $async$temp1, $async$temp2;
  61986. var $async$visitErrorRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  61987. if ($async$errorCode === 1)
  61988. return P._asyncRethrow($async$result, $async$completer);
  61989. while (true)
  61990. switch ($async$goto) {
  61991. case 0:
  61992. // Function start
  61993. $async$temp1 = H;
  61994. $async$temp2 = J;
  61995. $async$goto = 2;
  61996. return P._asyncAwait(node.expression.accept$1($async$self), $async$visitErrorRule$1);
  61997. case 2:
  61998. // returning from await.
  61999. throw $async$temp1.wrapException($async$self._async_evaluate0$_exception$2($async$temp2.toString$0$($async$result), node.span));
  62000. // implicit return
  62001. return P._asyncReturn(null, $async$completer);
  62002. }
  62003. });
  62004. return P._asyncStartSync($async$visitErrorRule$1, $async$completer);
  62005. },
  62006. visitExtendRule$1: function(node) {
  62007. return this.visitExtendRule$body$_EvaluateVisitor0(node);
  62008. },
  62009. visitExtendRule$body$_EvaluateVisitor0: function(node) {
  62010. var $async$goto = 0,
  62011. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  62012. $async$returnValue, $async$self = this, targetText, t1, t2, t3, _i, t4;
  62013. var $async$visitExtendRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  62014. if ($async$errorCode === 1)
  62015. return P._asyncRethrow($async$result, $async$completer);
  62016. while (true)
  62017. switch ($async$goto) {
  62018. case 0:
  62019. // Function start
  62020. if (!($async$self._async_evaluate0$_styleRule != null && !$async$self._async_evaluate0$_atRootExcludingStyleRule) || $async$self._async_evaluate0$_declarationName != null)
  62021. throw H.wrapException($async$self._async_evaluate0$_exception$2("@extend may only be used within style rules.", node.span));
  62022. $async$goto = 3;
  62023. return P._asyncAwait($async$self._async_evaluate0$_interpolationToValue$2$warnForColor(node.selector, true), $async$visitExtendRule$1);
  62024. case 3:
  62025. // returning from await.
  62026. targetText = $async$result;
  62027. for (t1 = $async$self._async_evaluate0$_adjustParseError$2(targetText, new E._EvaluateVisitor_visitExtendRule_closure2($async$self, targetText)).components, t2 = t1.length, t3 = type$.CompoundSelector_2, _i = 0; _i < t2; ++_i) {
  62028. t4 = t1[_i].components;
  62029. if (t4.length !== 1 || !(C.JSArray_methods.get$first(t4) instanceof X.CompoundSelector0))
  62030. throw H.wrapException(E.SassFormatException$0("complex selectors may not be extended.", targetText.get$span()));
  62031. t4 = t3._as(C.JSArray_methods.get$first(t4)).components;
  62032. if (t4.length !== 1)
  62033. throw H.wrapException(E.SassFormatException$0("compound selectors may no longer be extended.\nConsider `@extend " + C.JSArray_methods.join$1(t4, ", ") + "` instead.\nSee http://bit.ly/ExtendCompound for details.\n", targetText.get$span()));
  62034. $async$self._async_evaluate0$_extender.addExtension$4($async$self._async_evaluate0$_styleRule.selector, C.JSArray_methods.get$first(t4), node, $async$self._async_evaluate0$_mediaQueries);
  62035. }
  62036. $async$returnValue = null;
  62037. // goto return
  62038. $async$goto = 1;
  62039. break;
  62040. case 1:
  62041. // return
  62042. return P._asyncReturn($async$returnValue, $async$completer);
  62043. }
  62044. });
  62045. return P._asyncStartSync($async$visitExtendRule$1, $async$completer);
  62046. },
  62047. visitAtRule$1: function(node) {
  62048. return this.visitAtRule$body$_EvaluateVisitor0(node);
  62049. },
  62050. visitAtRule$body$_EvaluateVisitor0: function(node) {
  62051. var $async$goto = 0,
  62052. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  62053. $async$returnValue, $async$self = this, $name, t1, value, t2, wasInKeyframes, wasInUnknownAtRule;
  62054. var $async$visitAtRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  62055. if ($async$errorCode === 1)
  62056. return P._asyncRethrow($async$result, $async$completer);
  62057. while (true)
  62058. switch ($async$goto) {
  62059. case 0:
  62060. // Function start
  62061. if ($async$self._async_evaluate0$_declarationName != null)
  62062. throw H.wrapException($async$self._async_evaluate0$_exception$2("At-rules may not be used within nested declarations.", node.span));
  62063. $async$goto = 3;
  62064. return P._asyncAwait($async$self._async_evaluate0$_interpolationToValue$1(node.name), $async$visitAtRule$1);
  62065. case 3:
  62066. // returning from await.
  62067. $name = $async$result;
  62068. t1 = node.value;
  62069. $async$goto = t1 == null ? 4 : 6;
  62070. break;
  62071. case 4:
  62072. // then
  62073. $async$result = null;
  62074. // goto join
  62075. $async$goto = 5;
  62076. break;
  62077. case 6:
  62078. // else
  62079. $async$goto = 7;
  62080. return P._asyncAwait($async$self._async_evaluate0$_interpolationToValue$3$trim$warnForColor(t1, true, true), $async$visitAtRule$1);
  62081. case 7:
  62082. // returning from await.
  62083. case 5:
  62084. // join
  62085. value = $async$result;
  62086. if (node.children == null) {
  62087. t1 = $async$self._async_evaluate0$_parent;
  62088. t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
  62089. t1.addChild$1(new U.ModifiableCssAtRule0($name, value, true, node.span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode_2), t2));
  62090. $async$returnValue = null;
  62091. // goto return
  62092. $async$goto = 1;
  62093. break;
  62094. }
  62095. wasInKeyframes = $async$self._async_evaluate0$_inKeyframes;
  62096. wasInUnknownAtRule = $async$self._async_evaluate0$_inUnknownAtRule;
  62097. if (B.unvendor0($name.get$value($name)) === "keyframes")
  62098. $async$self._async_evaluate0$_inKeyframes = true;
  62099. else
  62100. $async$self._async_evaluate0$_inUnknownAtRule = true;
  62101. t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
  62102. $async$goto = 8;
  62103. return P._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(new U.ModifiableCssAtRule0($name, value, false, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1), new E._EvaluateVisitor_visitAtRule_closure5($async$self, node), node.hasDeclarations, new E._EvaluateVisitor_visitAtRule_closure6(), type$.ModifiableCssAtRule_2, type$.Null), $async$visitAtRule$1);
  62104. case 8:
  62105. // returning from await.
  62106. $async$self._async_evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
  62107. $async$self._async_evaluate0$_inKeyframes = wasInKeyframes;
  62108. $async$returnValue = null;
  62109. // goto return
  62110. $async$goto = 1;
  62111. break;
  62112. case 1:
  62113. // return
  62114. return P._asyncReturn($async$returnValue, $async$completer);
  62115. }
  62116. });
  62117. return P._asyncStartSync($async$visitAtRule$1, $async$completer);
  62118. },
  62119. visitForRule$1: function(node) {
  62120. return this.visitForRule$body$_EvaluateVisitor0(node);
  62121. },
  62122. visitForRule$body$_EvaluateVisitor0: function(node) {
  62123. var $async$goto = 0,
  62124. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  62125. $async$returnValue, $async$self = this, t1, t2, t3, fromNumber, t4, toNumber, from, to, direction;
  62126. var $async$visitForRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  62127. if ($async$errorCode === 1)
  62128. return P._asyncRethrow($async$result, $async$completer);
  62129. while (true)
  62130. switch ($async$goto) {
  62131. case 0:
  62132. // Function start
  62133. t1 = {};
  62134. t2 = node.from;
  62135. t3 = type$.SassNumber_2;
  62136. $async$goto = 3;
  62137. return P._asyncAwait($async$self._async_evaluate0$_addExceptionSpanAsync$1$2(t2, new E._EvaluateVisitor_visitForRule_closure14($async$self, node), t3), $async$visitForRule$1);
  62138. case 3:
  62139. // returning from await.
  62140. fromNumber = $async$result;
  62141. t4 = node.to;
  62142. $async$goto = 4;
  62143. return P._asyncAwait($async$self._async_evaluate0$_addExceptionSpanAsync$1$2(t4, new E._EvaluateVisitor_visitForRule_closure15($async$self, node), t3), $async$visitForRule$1);
  62144. case 4:
  62145. // returning from await.
  62146. toNumber = $async$result;
  62147. from = $async$self._async_evaluate0$_addExceptionSpan$2(t2, new E._EvaluateVisitor_visitForRule_closure16(fromNumber, toNumber));
  62148. to = t1.to = $async$self._async_evaluate0$_addExceptionSpan$2(t4, new E._EvaluateVisitor_visitForRule_closure17(toNumber));
  62149. direction = from > to ? -1 : 1;
  62150. if (from === (!node.isExclusive ? t1.to = to + direction : to)) {
  62151. $async$returnValue = null;
  62152. // goto return
  62153. $async$goto = 1;
  62154. break;
  62155. }
  62156. $async$returnValue = $async$self._async_evaluate0$_environment.scope$1$2$semiGlobal(new E._EvaluateVisitor_visitForRule_closure18(t1, $async$self, node, from, direction), true, type$.Value_2);
  62157. // goto return
  62158. $async$goto = 1;
  62159. break;
  62160. case 1:
  62161. // return
  62162. return P._asyncReturn($async$returnValue, $async$completer);
  62163. }
  62164. });
  62165. return P._asyncStartSync($async$visitForRule$1, $async$completer);
  62166. },
  62167. visitForwardRule$1: function(node) {
  62168. return this.visitForwardRule$body$_EvaluateVisitor0(node);
  62169. },
  62170. visitForwardRule$body$_EvaluateVisitor0: function(node) {
  62171. var $async$goto = 0,
  62172. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  62173. $async$returnValue, $async$self = this, newConfiguration, t4, _i, variable, oldConfiguration, adjustedConfiguration, t1, t2, t3;
  62174. var $async$visitForwardRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  62175. if ($async$errorCode === 1)
  62176. return P._asyncRethrow($async$result, $async$completer);
  62177. while (true)
  62178. switch ($async$goto) {
  62179. case 0:
  62180. // Function start
  62181. oldConfiguration = $async$self._async_evaluate0$_configuration;
  62182. adjustedConfiguration = oldConfiguration.throughForward$1(node);
  62183. t1 = node.configuration;
  62184. t2 = t1.length;
  62185. t3 = node.url;
  62186. $async$goto = t2 !== 0 ? 3 : 5;
  62187. break;
  62188. case 3:
  62189. // then
  62190. $async$goto = 6;
  62191. return P._asyncAwait($async$self._async_evaluate0$_addForwardConfiguration$2(adjustedConfiguration, node), $async$visitForwardRule$1);
  62192. case 6:
  62193. // returning from await.
  62194. newConfiguration = $async$result;
  62195. $async$goto = 7;
  62196. return P._asyncAwait($async$self._async_evaluate0$_loadModule$5$configuration(t3, "@forward", node, new E._EvaluateVisitor_visitForwardRule_closure5($async$self, node), newConfiguration), $async$visitForwardRule$1);
  62197. case 7:
  62198. // returning from await.
  62199. t3 = type$.String;
  62200. t4 = P.LinkedHashSet_LinkedHashSet(t3);
  62201. for (_i = 0; _i < t2; ++_i) {
  62202. variable = t1[_i];
  62203. if (!variable.isGuarded)
  62204. t4.add$1(0, variable.name);
  62205. }
  62206. $async$self._async_evaluate0$_removeUsedConfiguration$3$except(adjustedConfiguration, newConfiguration, t4);
  62207. t3 = P.LinkedHashSet_LinkedHashSet(t3);
  62208. for (_i = 0; _i < t2; ++_i)
  62209. t3.add$1(0, t1[_i].name);
  62210. $async$self._async_evaluate0$_assertConfigurationIsEmpty$2$only(newConfiguration, t3);
  62211. // goto join
  62212. $async$goto = 4;
  62213. break;
  62214. case 5:
  62215. // else
  62216. $async$self._async_evaluate0$_configuration = adjustedConfiguration;
  62217. $async$goto = 8;
  62218. return P._asyncAwait($async$self._async_evaluate0$_loadModule$4(t3, "@forward", node, new E._EvaluateVisitor_visitForwardRule_closure6($async$self, node)), $async$visitForwardRule$1);
  62219. case 8:
  62220. // returning from await.
  62221. $async$self._async_evaluate0$_configuration = oldConfiguration;
  62222. case 4:
  62223. // join
  62224. $async$returnValue = null;
  62225. // goto return
  62226. $async$goto = 1;
  62227. break;
  62228. case 1:
  62229. // return
  62230. return P._asyncReturn($async$returnValue, $async$completer);
  62231. }
  62232. });
  62233. return P._asyncStartSync($async$visitForwardRule$1, $async$completer);
  62234. },
  62235. _async_evaluate0$_addForwardConfiguration$2: function(configuration, node) {
  62236. return this._addForwardConfiguration$body$_EvaluateVisitor0(configuration, node);
  62237. },
  62238. _addForwardConfiguration$body$_EvaluateVisitor0: function(configuration, node) {
  62239. var $async$goto = 0,
  62240. $async$completer = P._makeAsyncAwaitCompleter(type$.Configuration_2),
  62241. $async$returnValue, $async$self = this, t2, t3, _i, variable, t4, t5, t1, newValues, $async$temp1, $async$temp2, $async$temp3;
  62242. var $async$_async_evaluate0$_addForwardConfiguration$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  62243. if ($async$errorCode === 1)
  62244. return P._asyncRethrow($async$result, $async$completer);
  62245. while (true)
  62246. switch ($async$goto) {
  62247. case 0:
  62248. // Function start
  62249. t1 = configuration._configuration$_values;
  62250. newValues = P.LinkedHashMap_LinkedHashMap$of(new P.UnmodifiableMapView(t1, type$.UnmodifiableMapView_String_ConfiguredValue_2), type$.String, type$.ConfiguredValue_2);
  62251. t2 = node.configuration, t3 = t2.length, _i = 0;
  62252. case 3:
  62253. // for condition
  62254. if (!(_i < t3)) {
  62255. // goto after for
  62256. $async$goto = 5;
  62257. break;
  62258. }
  62259. variable = t2[_i];
  62260. if (variable.isGuarded) {
  62261. t4 = variable.name;
  62262. t5 = t1.get$isEmpty(t1) ? null : t1.remove$1(0, t4);
  62263. if (t5 != null && !J.$eq$(t5.value, C.C_SassNull)) {
  62264. newValues.$indexSet(0, t4, t5);
  62265. // goto for update
  62266. $async$goto = 4;
  62267. break;
  62268. }
  62269. }
  62270. t4 = variable.name;
  62271. t5 = variable.expression;
  62272. $async$temp1 = newValues;
  62273. $async$temp2 = t4;
  62274. $async$temp3 = Z;
  62275. $async$goto = 6;
  62276. return P._asyncAwait(t5.accept$1($async$self), $async$_async_evaluate0$_addForwardConfiguration$2);
  62277. case 6:
  62278. // returning from await.
  62279. $async$temp1.$indexSet(0, $async$temp2, new $async$temp3.ConfiguredValue0($async$result.withoutSlash$0(), variable.span, $async$self._async_evaluate0$_expressionNode$1(t5)));
  62280. case 4:
  62281. // for update
  62282. ++_i;
  62283. // goto for condition
  62284. $async$goto = 3;
  62285. break;
  62286. case 5:
  62287. // after for
  62288. $async$returnValue = new A.Configuration0(newValues, node, false);
  62289. // goto return
  62290. $async$goto = 1;
  62291. break;
  62292. case 1:
  62293. // return
  62294. return P._asyncReturn($async$returnValue, $async$completer);
  62295. }
  62296. });
  62297. return P._asyncStartSync($async$_async_evaluate0$_addForwardConfiguration$2, $async$completer);
  62298. },
  62299. _async_evaluate0$_removeUsedConfiguration$3$except: function(upstream, downstream, except) {
  62300. var t1, t2, t3, _i, $name;
  62301. for (t1 = upstream._configuration$_values, t2 = J.toList$0$ax(t1.get$keys()), t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i) {
  62302. $name = t2[_i];
  62303. if (except.contains$1(0, $name))
  62304. continue;
  62305. if (!downstream._configuration$_values.containsKey$1($name))
  62306. if (!t1.get$isEmpty(t1))
  62307. t1.remove$1(0, $name);
  62308. }
  62309. },
  62310. _async_evaluate0$_assertConfigurationIsEmpty$3$nameInError$only: function(configuration, nameInError, only) {
  62311. configuration._configuration$_values.forEach$1(0, new E._EvaluateVisitor__assertConfigurationIsEmpty_closure2(this, only, nameInError));
  62312. },
  62313. _async_evaluate0$_assertConfigurationIsEmpty$1: function(configuration) {
  62314. return this._async_evaluate0$_assertConfigurationIsEmpty$3$nameInError$only(configuration, false, null);
  62315. },
  62316. _async_evaluate0$_assertConfigurationIsEmpty$2$only: function(configuration, only) {
  62317. return this._async_evaluate0$_assertConfigurationIsEmpty$3$nameInError$only(configuration, false, only);
  62318. },
  62319. _async_evaluate0$_assertConfigurationIsEmpty$2$nameInError: function(configuration, nameInError) {
  62320. return this._async_evaluate0$_assertConfigurationIsEmpty$3$nameInError$only(configuration, nameInError, null);
  62321. },
  62322. visitFunctionRule$1: function(node) {
  62323. return this.visitFunctionRule$body$_EvaluateVisitor0(node);
  62324. },
  62325. visitFunctionRule$body$_EvaluateVisitor0: function(node) {
  62326. var $async$goto = 0,
  62327. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  62328. $async$returnValue, $async$self = this, t1, t2, t3, index, t4;
  62329. var $async$visitFunctionRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  62330. if ($async$errorCode === 1)
  62331. return P._asyncRethrow($async$result, $async$completer);
  62332. while (true)
  62333. switch ($async$goto) {
  62334. case 0:
  62335. // Function start
  62336. t1 = $async$self._async_evaluate0$_environment;
  62337. t2 = t1.closure$0();
  62338. t3 = t1._async_environment0$_functions;
  62339. index = t3.length - 1;
  62340. t4 = node.name;
  62341. t1._async_environment0$_functionIndices.$indexSet(0, t4, index);
  62342. J.$indexSet$ax(t3[index], t4, new E.UserDefinedCallable0(node, t2, type$.UserDefinedCallable_AsyncEnvironment_2));
  62343. $async$returnValue = null;
  62344. // goto return
  62345. $async$goto = 1;
  62346. break;
  62347. case 1:
  62348. // return
  62349. return P._asyncReturn($async$returnValue, $async$completer);
  62350. }
  62351. });
  62352. return P._asyncStartSync($async$visitFunctionRule$1, $async$completer);
  62353. },
  62354. visitIfRule$1: function(node) {
  62355. return this.visitIfRule$body$_EvaluateVisitor0(node);
  62356. },
  62357. visitIfRule$body$_EvaluateVisitor0: function(node) {
  62358. var $async$goto = 0,
  62359. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  62360. $async$returnValue, $async$self = this, t1, t2, _i, clauseToCheck, _box_0;
  62361. var $async$visitIfRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  62362. if ($async$errorCode === 1)
  62363. return P._asyncRethrow($async$result, $async$completer);
  62364. while (true)
  62365. switch ($async$goto) {
  62366. case 0:
  62367. // Function start
  62368. _box_0 = {};
  62369. _box_0.clause = node.lastClause;
  62370. t1 = node.clauses, t2 = t1.length, _i = 0;
  62371. case 3:
  62372. // for condition
  62373. if (!(_i < t2)) {
  62374. // goto after for
  62375. $async$goto = 5;
  62376. break;
  62377. }
  62378. clauseToCheck = t1[_i];
  62379. $async$goto = 6;
  62380. return P._asyncAwait(clauseToCheck.expression.accept$1($async$self), $async$visitIfRule$1);
  62381. case 6:
  62382. // returning from await.
  62383. if ($async$result.get$isTruthy()) {
  62384. _box_0.clause = clauseToCheck;
  62385. // goto after for
  62386. $async$goto = 5;
  62387. break;
  62388. }
  62389. case 4:
  62390. // for update
  62391. ++_i;
  62392. // goto for condition
  62393. $async$goto = 3;
  62394. break;
  62395. case 5:
  62396. // after for
  62397. t1 = _box_0.clause;
  62398. if (t1 == null) {
  62399. $async$returnValue = null;
  62400. // goto return
  62401. $async$goto = 1;
  62402. break;
  62403. }
  62404. $async$goto = 7;
  62405. return P._asyncAwait($async$self._async_evaluate0$_environment.scope$1$3$semiGlobal$when(new E._EvaluateVisitor_visitIfRule_closure2(_box_0, $async$self), true, t1.hasDeclarations, type$.Value_2), $async$visitIfRule$1);
  62406. case 7:
  62407. // returning from await.
  62408. $async$returnValue = $async$result;
  62409. // goto return
  62410. $async$goto = 1;
  62411. break;
  62412. case 1:
  62413. // return
  62414. return P._asyncReturn($async$returnValue, $async$completer);
  62415. }
  62416. });
  62417. return P._asyncStartSync($async$visitIfRule$1, $async$completer);
  62418. },
  62419. visitImportRule$1: function(node) {
  62420. return this.visitImportRule$body$_EvaluateVisitor0(node);
  62421. },
  62422. visitImportRule$body$_EvaluateVisitor0: function(node) {
  62423. var $async$goto = 0,
  62424. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  62425. $async$returnValue, $async$self = this, t1, t2, t3, _i, $import;
  62426. var $async$visitImportRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  62427. if ($async$errorCode === 1)
  62428. return P._asyncRethrow($async$result, $async$completer);
  62429. while (true)
  62430. switch ($async$goto) {
  62431. case 0:
  62432. // Function start
  62433. t1 = node.imports, t2 = t1.length, t3 = type$.StaticImport_2, _i = 0;
  62434. case 3:
  62435. // for condition
  62436. if (!(_i < t2)) {
  62437. // goto after for
  62438. $async$goto = 5;
  62439. break;
  62440. }
  62441. $import = t1[_i];
  62442. $async$goto = $import instanceof B.DynamicImport0 ? 6 : 8;
  62443. break;
  62444. case 6:
  62445. // then
  62446. $async$goto = 9;
  62447. return P._asyncAwait($async$self._async_evaluate0$_visitDynamicImport$1($import), $async$visitImportRule$1);
  62448. case 9:
  62449. // returning from await.
  62450. // goto join
  62451. $async$goto = 7;
  62452. break;
  62453. case 8:
  62454. // else
  62455. $async$goto = 10;
  62456. return P._asyncAwait($async$self._async_evaluate0$_visitStaticImport$1(t3._as($import)), $async$visitImportRule$1);
  62457. case 10:
  62458. // returning from await.
  62459. case 7:
  62460. // join
  62461. case 4:
  62462. // for update
  62463. ++_i;
  62464. // goto for condition
  62465. $async$goto = 3;
  62466. break;
  62467. case 5:
  62468. // after for
  62469. $async$returnValue = null;
  62470. // goto return
  62471. $async$goto = 1;
  62472. break;
  62473. case 1:
  62474. // return
  62475. return P._asyncReturn($async$returnValue, $async$completer);
  62476. }
  62477. });
  62478. return P._asyncStartSync($async$visitImportRule$1, $async$completer);
  62479. },
  62480. _async_evaluate0$_visitDynamicImport$1: function($import) {
  62481. return this._async_evaluate0$_withStackFrame$1$3("@import", $import, new E._EvaluateVisitor__visitDynamicImport_closure2(this, $import), type$.void);
  62482. },
  62483. _async_evaluate0$_loadStylesheet$4$baseUrl$forImport: function(url, span, baseUrl, forImport) {
  62484. return this._loadStylesheet$body$_EvaluateVisitor0(url, span, baseUrl, forImport);
  62485. },
  62486. _async_evaluate0$_loadStylesheet$3$baseUrl: function(url, span, baseUrl) {
  62487. return this._async_evaluate0$_loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, false);
  62488. },
  62489. _async_evaluate0$_loadStylesheet$3$forImport: function(url, span, forImport) {
  62490. return this._async_evaluate0$_loadStylesheet$4$baseUrl$forImport(url, span, null, forImport);
  62491. },
  62492. _loadStylesheet$body$_EvaluateVisitor0: function(url, span, baseUrl, forImport) {
  62493. var $async$goto = 0,
  62494. $async$completer = P._makeAsyncAwaitCompleter(type$.Tuple2_AsyncImporter_Stylesheet_2),
  62495. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, stylesheet, tuple, error, error0, message, t1, t2, t3, exception, $async$exception;
  62496. var $async$_async_evaluate0$_loadStylesheet$4$baseUrl$forImport = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  62497. if ($async$errorCode === 1) {
  62498. $async$currentError = $async$result;
  62499. $async$goto = $async$handler;
  62500. }
  62501. while (true)
  62502. switch ($async$goto) {
  62503. case 0:
  62504. // Function start
  62505. $async$handler = 4;
  62506. $async$self._async_evaluate0$_importSpan = span;
  62507. $async$goto = $async$self._async_evaluate0$_nodeImporter != null ? 7 : 9;
  62508. break;
  62509. case 7:
  62510. // then
  62511. $async$goto = 10;
  62512. return P._asyncAwait($async$self._async_evaluate0$_importLikeNode$2(url, forImport), $async$_async_evaluate0$_loadStylesheet$4$baseUrl$forImport);
  62513. case 10:
  62514. // returning from await.
  62515. stylesheet = $async$result;
  62516. if (stylesheet != null) {
  62517. $async$returnValue = new S.Tuple2(null, stylesheet, type$.Tuple2_AsyncImporter_Stylesheet_2);
  62518. $async$next = [1];
  62519. // goto finally
  62520. $async$goto = 5;
  62521. break;
  62522. }
  62523. // goto join
  62524. $async$goto = 8;
  62525. break;
  62526. case 9:
  62527. // else
  62528. t1 = P.Uri_parse(url);
  62529. t2 = $async$self._async_evaluate0$_importer;
  62530. if (baseUrl == null) {
  62531. t3 = $async$self._async_evaluate0$_stylesheet;
  62532. t3 = t3 == null ? null : t3.span;
  62533. t3 = t3 == null ? null : t3.file.url;
  62534. } else
  62535. t3 = baseUrl;
  62536. $async$goto = 11;
  62537. return P._asyncAwait($async$self._async_evaluate0$_importCache.import$4$baseImporter$baseUrl$forImport(t1, t2, t3, forImport), $async$_async_evaluate0$_loadStylesheet$4$baseUrl$forImport);
  62538. case 11:
  62539. // returning from await.
  62540. tuple = $async$result;
  62541. if (tuple != null) {
  62542. $async$returnValue = tuple;
  62543. $async$next = [1];
  62544. // goto finally
  62545. $async$goto = 5;
  62546. break;
  62547. }
  62548. case 8:
  62549. // join
  62550. if (C.JSString_methods.startsWith$1(url, "package:") && true)
  62551. throw H.wrapException('"package:" URLs aren\'t supported on this platform.');
  62552. else
  62553. throw H.wrapException("Can't find stylesheet to import.");
  62554. $async$next.push(6);
  62555. // goto finally
  62556. $async$goto = 5;
  62557. break;
  62558. case 4:
  62559. // catch
  62560. $async$handler = 3;
  62561. $async$exception = $async$currentError;
  62562. t1 = H.unwrapException($async$exception);
  62563. if (t1 instanceof E.SassException0) {
  62564. error = t1;
  62565. t1 = $async$self._async_evaluate0$_exception$2(error._span_exception$_message, error.get$span());
  62566. throw H.wrapException(t1);
  62567. } else {
  62568. error0 = t1;
  62569. message = null;
  62570. try {
  62571. message = H._asStringNullable(J.get$message$x(error0));
  62572. } catch (exception) {
  62573. H.unwrapException($async$exception);
  62574. message = J.toString$0$(error0);
  62575. }
  62576. t1 = $async$self._async_evaluate0$_exception$1(message);
  62577. throw H.wrapException(t1);
  62578. }
  62579. $async$next.push(6);
  62580. // goto finally
  62581. $async$goto = 5;
  62582. break;
  62583. case 3:
  62584. // uncaught
  62585. $async$next = [2];
  62586. case 5:
  62587. // finally
  62588. $async$handler = 2;
  62589. $async$self._async_evaluate0$_importSpan = null;
  62590. // goto the next finally handler
  62591. $async$goto = $async$next.pop();
  62592. break;
  62593. case 6:
  62594. // after finally
  62595. case 1:
  62596. // return
  62597. return P._asyncReturn($async$returnValue, $async$completer);
  62598. case 2:
  62599. // rethrow
  62600. return P._asyncRethrow($async$currentError, $async$completer);
  62601. }
  62602. });
  62603. return P._asyncStartSync($async$_async_evaluate0$_loadStylesheet$4$baseUrl$forImport, $async$completer);
  62604. },
  62605. _async_evaluate0$_importLikeNode$2: function(originalUrl, forImport) {
  62606. return this._importLikeNode$body$_EvaluateVisitor(originalUrl, forImport);
  62607. },
  62608. _importLikeNode$body$_EvaluateVisitor: function(originalUrl, forImport) {
  62609. var $async$goto = 0,
  62610. $async$completer = P._makeAsyncAwaitCompleter(type$.Stylesheet),
  62611. $async$returnValue, $async$self = this, contents, url, t1, result;
  62612. var $async$_async_evaluate0$_importLikeNode$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  62613. if ($async$errorCode === 1)
  62614. return P._asyncRethrow($async$result, $async$completer);
  62615. while (true)
  62616. switch ($async$goto) {
  62617. case 0:
  62618. // Function start
  62619. t1 = $async$self._async_evaluate0$_stylesheet.span;
  62620. $async$goto = 3;
  62621. return P._asyncAwait($async$self._async_evaluate0$_nodeImporter.loadAsync$3(originalUrl, t1.file.url, forImport), $async$_async_evaluate0$_importLikeNode$2);
  62622. case 3:
  62623. // returning from await.
  62624. result = $async$result;
  62625. if (result == null) {
  62626. $async$returnValue = null;
  62627. // goto return
  62628. $async$goto = 1;
  62629. break;
  62630. }
  62631. contents = result.item1;
  62632. url = result.item2;
  62633. t1 = J.getInterceptor$s(url).startsWith$1(url, "file:") ? $.$get$context().style.pathFromUri$1(M._parseUri(url)) : url;
  62634. $async$self._async_evaluate0$_includedFiles.add$1(0, t1);
  62635. t1 = C.JSString_methods.startsWith$1(url, "file") ? M.Syntax_forPath0(url) : C.Syntax_SCSS0;
  62636. $async$returnValue = V.Stylesheet_Stylesheet$parse0(contents, t1, $async$self._async_evaluate0$_logger, url);
  62637. // goto return
  62638. $async$goto = 1;
  62639. break;
  62640. case 1:
  62641. // return
  62642. return P._asyncReturn($async$returnValue, $async$completer);
  62643. }
  62644. });
  62645. return P._asyncStartSync($async$_async_evaluate0$_importLikeNode$2, $async$completer);
  62646. },
  62647. _async_evaluate0$_visitStaticImport$1: function($import) {
  62648. return this._visitStaticImport$body$_EvaluateVisitor0($import);
  62649. },
  62650. _visitStaticImport$body$_EvaluateVisitor0: function($import) {
  62651. var $async$goto = 0,
  62652. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  62653. $async$returnValue, $async$self = this, resolvedSupports, t1, mediaQuery, node, t2, url, supports, $async$temp1, $async$temp2;
  62654. var $async$_async_evaluate0$_visitStaticImport$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  62655. if ($async$errorCode === 1)
  62656. return P._asyncRethrow($async$result, $async$completer);
  62657. while (true)
  62658. switch ($async$goto) {
  62659. case 0:
  62660. // Function start
  62661. $async$goto = 3;
  62662. return P._asyncAwait($async$self._async_evaluate0$_interpolationToValue$1($import.url), $async$_async_evaluate0$_visitStaticImport$1);
  62663. case 3:
  62664. // returning from await.
  62665. url = $async$result;
  62666. supports = $import.supports;
  62667. $async$goto = supports instanceof L.SupportsDeclaration0 ? 4 : 6;
  62668. break;
  62669. case 4:
  62670. // then
  62671. $async$temp1 = H;
  62672. $async$goto = 7;
  62673. return P._asyncAwait($async$self._async_evaluate0$_evaluateToCss$1(supports.name), $async$_async_evaluate0$_visitStaticImport$1);
  62674. case 7:
  62675. // returning from await.
  62676. $async$temp1 = $async$temp1.S($async$result) + ": ";
  62677. $async$temp2 = H;
  62678. $async$goto = 8;
  62679. return P._asyncAwait($async$self._async_evaluate0$_evaluateToCss$1(supports.value), $async$_async_evaluate0$_visitStaticImport$1);
  62680. case 8:
  62681. // returning from await.
  62682. resolvedSupports = $async$temp1 + $async$temp2.S($async$result);
  62683. // goto join
  62684. $async$goto = 5;
  62685. break;
  62686. case 6:
  62687. // else
  62688. $async$goto = supports == null ? 9 : 11;
  62689. break;
  62690. case 9:
  62691. // then
  62692. $async$result = null;
  62693. // goto join
  62694. $async$goto = 10;
  62695. break;
  62696. case 11:
  62697. // else
  62698. $async$goto = 12;
  62699. return P._asyncAwait($async$self._async_evaluate0$_visitSupportsCondition$1(supports), $async$_async_evaluate0$_visitStaticImport$1);
  62700. case 12:
  62701. // returning from await.
  62702. case 10:
  62703. // join
  62704. resolvedSupports = $async$result;
  62705. case 5:
  62706. // join
  62707. t1 = $import.media;
  62708. $async$goto = t1 == null ? 13 : 15;
  62709. break;
  62710. case 13:
  62711. // then
  62712. $async$result = null;
  62713. // goto join
  62714. $async$goto = 14;
  62715. break;
  62716. case 15:
  62717. // else
  62718. $async$goto = 16;
  62719. return P._asyncAwait($async$self._async_evaluate0$_visitMediaQueries$1(t1), $async$_async_evaluate0$_visitStaticImport$1);
  62720. case 16:
  62721. // returning from await.
  62722. case 14:
  62723. // join
  62724. mediaQuery = $async$result;
  62725. t1 = $import.span;
  62726. node = F.ModifiableCssImport$0(url, t1, mediaQuery, resolvedSupports == null ? null : new F.CssValue0("supports(" + resolvedSupports + ")", supports.get$span(), type$.CssValue_String_2));
  62727. t1 = $async$self._async_evaluate0$_parent;
  62728. t2 = $async$self._async_evaluate0$_root;
  62729. if (t1 != t2)
  62730. t1.addChild$1(node);
  62731. else if ($async$self._async_evaluate0$_endOfImports === J.get$length$asx(t2.children._collection$_source)) {
  62732. $async$self._async_evaluate0$_root.addChild$1(node);
  62733. $async$self._async_evaluate0$_endOfImports = $async$self._async_evaluate0$_endOfImports + 1;
  62734. } else {
  62735. t1 = $async$self._async_evaluate0$_outOfOrderImports;
  62736. (t1 == null ? $async$self._async_evaluate0$_outOfOrderImports = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssImport_2) : t1).push(node);
  62737. }
  62738. $async$returnValue = null;
  62739. // goto return
  62740. $async$goto = 1;
  62741. break;
  62742. case 1:
  62743. // return
  62744. return P._asyncReturn($async$returnValue, $async$completer);
  62745. }
  62746. });
  62747. return P._asyncStartSync($async$_async_evaluate0$_visitStaticImport$1, $async$completer);
  62748. },
  62749. visitIncludeRule$1: function(node) {
  62750. return this.visitIncludeRule$body$_EvaluateVisitor0(node);
  62751. },
  62752. visitIncludeRule$body$_EvaluateVisitor0: function(node) {
  62753. var $async$goto = 0,
  62754. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  62755. $async$returnValue, $async$self = this, nodeWithSpan, t1, t2, t3, contentCallable, mixin;
  62756. var $async$visitIncludeRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  62757. if ($async$errorCode === 1)
  62758. return P._asyncRethrow($async$result, $async$completer);
  62759. while (true)
  62760. switch ($async$goto) {
  62761. case 0:
  62762. // Function start
  62763. mixin = $async$self._async_evaluate0$_addExceptionSpan$2(node, new E._EvaluateVisitor_visitIncludeRule_closure8($async$self, node));
  62764. if (mixin == null)
  62765. throw H.wrapException($async$self._async_evaluate0$_exception$2("Undefined mixin.", node.span));
  62766. nodeWithSpan = new B._FakeAstNode0(new E._EvaluateVisitor_visitIncludeRule_closure9(node));
  62767. $async$goto = type$.AsyncBuiltInCallable_2._is(mixin) ? 3 : 5;
  62768. break;
  62769. case 3:
  62770. // then
  62771. if (node.content != null)
  62772. throw H.wrapException($async$self._async_evaluate0$_exception$2("Mixin doesn't accept a content block.", node.span));
  62773. $async$goto = 6;
  62774. return P._asyncAwait($async$self._async_evaluate0$_runBuiltInCallable$3(node.$arguments, mixin, nodeWithSpan), $async$visitIncludeRule$1);
  62775. case 6:
  62776. // returning from await.
  62777. // goto join
  62778. $async$goto = 4;
  62779. break;
  62780. case 5:
  62781. // else
  62782. t1 = type$.UserDefinedCallable_AsyncEnvironment_2;
  62783. $async$goto = t1._is(mixin) ? 7 : 9;
  62784. break;
  62785. case 7:
  62786. // then
  62787. t2 = node.content;
  62788. t3 = t2 == null;
  62789. if (!t3 && !type$.MixinRule_2._as(mixin.declaration).hasContent)
  62790. throw H.wrapException(E.MultiSpanSassRuntimeException$0("Mixin doesn't accept a content block.", node.get$spanWithoutContent(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([mixin.declaration.$arguments.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), $async$self._async_evaluate0$_stackTrace$1(node.get$spanWithoutContent())));
  62791. contentCallable = t3 ? null : new E.UserDefinedCallable0(t2, $async$self._async_evaluate0$_environment.closure$0(), t1);
  62792. $async$goto = 10;
  62793. return P._asyncAwait($async$self._async_evaluate0$_runUserDefinedCallable$4(node.$arguments, mixin, nodeWithSpan, new E._EvaluateVisitor_visitIncludeRule_closure10($async$self, contentCallable, mixin, nodeWithSpan)), $async$visitIncludeRule$1);
  62794. case 10:
  62795. // returning from await.
  62796. // goto join
  62797. $async$goto = 8;
  62798. break;
  62799. case 9:
  62800. // else
  62801. throw H.wrapException(P.UnsupportedError$("Unknown callable type " + mixin.toString$0(0) + "."));
  62802. case 8:
  62803. // join
  62804. case 4:
  62805. // join
  62806. $async$returnValue = null;
  62807. // goto return
  62808. $async$goto = 1;
  62809. break;
  62810. case 1:
  62811. // return
  62812. return P._asyncReturn($async$returnValue, $async$completer);
  62813. }
  62814. });
  62815. return P._asyncStartSync($async$visitIncludeRule$1, $async$completer);
  62816. },
  62817. visitMixinRule$1: function(node) {
  62818. return this.visitMixinRule$body$_EvaluateVisitor0(node);
  62819. },
  62820. visitMixinRule$body$_EvaluateVisitor0: function(node) {
  62821. var $async$goto = 0,
  62822. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  62823. $async$returnValue, $async$self = this, t1, t2, t3, index, t4;
  62824. var $async$visitMixinRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  62825. if ($async$errorCode === 1)
  62826. return P._asyncRethrow($async$result, $async$completer);
  62827. while (true)
  62828. switch ($async$goto) {
  62829. case 0:
  62830. // Function start
  62831. t1 = $async$self._async_evaluate0$_environment;
  62832. t2 = t1.closure$0();
  62833. t3 = t1._async_environment0$_mixins;
  62834. index = t3.length - 1;
  62835. t4 = node.name;
  62836. t1._async_environment0$_mixinIndices.$indexSet(0, t4, index);
  62837. J.$indexSet$ax(t3[index], t4, new E.UserDefinedCallable0(node, t2, type$.UserDefinedCallable_AsyncEnvironment_2));
  62838. $async$returnValue = null;
  62839. // goto return
  62840. $async$goto = 1;
  62841. break;
  62842. case 1:
  62843. // return
  62844. return P._asyncReturn($async$returnValue, $async$completer);
  62845. }
  62846. });
  62847. return P._asyncStartSync($async$visitMixinRule$1, $async$completer);
  62848. },
  62849. visitLoudComment$1: function(node) {
  62850. return this.visitLoudComment$body$_EvaluateVisitor0(node);
  62851. },
  62852. visitLoudComment$body$_EvaluateVisitor0: function(node) {
  62853. var $async$goto = 0,
  62854. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  62855. $async$returnValue, $async$self = this, t1, t2, $async$temp1, $async$temp2;
  62856. var $async$visitLoudComment$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  62857. if ($async$errorCode === 1)
  62858. return P._asyncRethrow($async$result, $async$completer);
  62859. while (true)
  62860. switch ($async$goto) {
  62861. case 0:
  62862. // Function start
  62863. if ($async$self._async_evaluate0$_inFunction) {
  62864. $async$returnValue = null;
  62865. // goto return
  62866. $async$goto = 1;
  62867. break;
  62868. }
  62869. t1 = $async$self._async_evaluate0$_parent;
  62870. t2 = $async$self._async_evaluate0$_root;
  62871. if (t1 == t2 && $async$self._async_evaluate0$_endOfImports === J.get$length$asx(t2.children._collection$_source))
  62872. $async$self._async_evaluate0$_endOfImports = $async$self._async_evaluate0$_endOfImports + 1;
  62873. t1 = node.text;
  62874. $async$temp1 = $async$self._async_evaluate0$_parent;
  62875. $async$temp2 = R;
  62876. $async$goto = 3;
  62877. return P._asyncAwait($async$self._async_evaluate0$_performInterpolation$1(t1), $async$visitLoudComment$1);
  62878. case 3:
  62879. // returning from await.
  62880. $async$temp1.addChild$1(new $async$temp2.ModifiableCssComment0($async$result, t1.span));
  62881. $async$returnValue = null;
  62882. // goto return
  62883. $async$goto = 1;
  62884. break;
  62885. case 1:
  62886. // return
  62887. return P._asyncReturn($async$returnValue, $async$completer);
  62888. }
  62889. });
  62890. return P._asyncStartSync($async$visitLoudComment$1, $async$completer);
  62891. },
  62892. visitMediaRule$1: function(node) {
  62893. return this.visitMediaRule$body$_EvaluateVisitor0(node);
  62894. },
  62895. visitMediaRule$body$_EvaluateVisitor0: function(node) {
  62896. var $async$goto = 0,
  62897. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  62898. $async$returnValue, $async$self = this, queries, t1, mergedQueries;
  62899. var $async$visitMediaRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  62900. if ($async$errorCode === 1)
  62901. return P._asyncRethrow($async$result, $async$completer);
  62902. while (true)
  62903. switch ($async$goto) {
  62904. case 0:
  62905. // Function start
  62906. if ($async$self._async_evaluate0$_declarationName != null)
  62907. throw H.wrapException($async$self._async_evaluate0$_exception$2("Media rules may not be used within nested declarations.", node.span));
  62908. $async$goto = 3;
  62909. return P._asyncAwait($async$self._async_evaluate0$_visitMediaQueries$1(node.query), $async$visitMediaRule$1);
  62910. case 3:
  62911. // returning from await.
  62912. queries = $async$result;
  62913. t1 = $async$self._async_evaluate0$_mediaQueries;
  62914. mergedQueries = t1 == null ? null : $async$self._async_evaluate0$_mergeMediaQueries$2(t1, queries);
  62915. t1 = mergedQueries == null;
  62916. if (!t1 && mergedQueries.length === 0) {
  62917. $async$returnValue = null;
  62918. // goto return
  62919. $async$goto = 1;
  62920. break;
  62921. }
  62922. t1 = t1 ? queries : mergedQueries;
  62923. $async$goto = 4;
  62924. return P._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(G.ModifiableCssMediaRule$0(t1, node.span), new E._EvaluateVisitor_visitMediaRule_closure5($async$self, mergedQueries, queries, node), node.hasDeclarations, new E._EvaluateVisitor_visitMediaRule_closure6(mergedQueries), type$.ModifiableCssMediaRule_2, type$.Null), $async$visitMediaRule$1);
  62925. case 4:
  62926. // returning from await.
  62927. $async$returnValue = null;
  62928. // goto return
  62929. $async$goto = 1;
  62930. break;
  62931. case 1:
  62932. // return
  62933. return P._asyncReturn($async$returnValue, $async$completer);
  62934. }
  62935. });
  62936. return P._asyncStartSync($async$visitMediaRule$1, $async$completer);
  62937. },
  62938. _async_evaluate0$_visitMediaQueries$1: function(interpolation) {
  62939. return this._visitMediaQueries$body$_EvaluateVisitor0(interpolation);
  62940. },
  62941. _visitMediaQueries$body$_EvaluateVisitor0: function(interpolation) {
  62942. var $async$goto = 0,
  62943. $async$completer = P._makeAsyncAwaitCompleter(type$.List_CssMediaQuery_2),
  62944. $async$returnValue, $async$self = this, $async$temp1, $async$temp2;
  62945. var $async$_async_evaluate0$_visitMediaQueries$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  62946. if ($async$errorCode === 1)
  62947. return P._asyncRethrow($async$result, $async$completer);
  62948. while (true)
  62949. switch ($async$goto) {
  62950. case 0:
  62951. // Function start
  62952. $async$temp1 = interpolation;
  62953. $async$temp2 = E;
  62954. $async$goto = 3;
  62955. return P._asyncAwait($async$self._async_evaluate0$_performInterpolation$2$warnForColor(interpolation, true), $async$_async_evaluate0$_visitMediaQueries$1);
  62956. case 3:
  62957. // returning from await.
  62958. $async$returnValue = $async$self._async_evaluate0$_adjustParseError$2($async$temp1, new $async$temp2._EvaluateVisitor__visitMediaQueries_closure2($async$self, $async$result));
  62959. // goto return
  62960. $async$goto = 1;
  62961. break;
  62962. case 1:
  62963. // return
  62964. return P._asyncReturn($async$returnValue, $async$completer);
  62965. }
  62966. });
  62967. return P._asyncStartSync($async$_async_evaluate0$_visitMediaQueries$1, $async$completer);
  62968. },
  62969. _async_evaluate0$_mergeMediaQueries$2: function(queries1, queries2) {
  62970. var t1, t2, t3, t4, t5, result,
  62971. queries = H.setRuntimeTypeInfo([], type$.JSArray_CssMediaQuery_2);
  62972. for (t1 = J.get$iterator$ax(queries1), t2 = J.getInterceptor$ax(queries2), t3 = type$.MediaQuerySuccessfulMergeResult_2; t1.moveNext$0();) {
  62973. t4 = t1.get$current(t1);
  62974. for (t5 = t2.get$iterator(queries2); t5.moveNext$0();) {
  62975. result = t4.merge$1(t5.get$current(t5));
  62976. if (result === C._SingletonCssMediaQueryMergeResult_empty0)
  62977. continue;
  62978. if (result === C._SingletonCssMediaQueryMergeResult_unrepresentable0)
  62979. return null;
  62980. queries.push(t3._as(result).query);
  62981. }
  62982. }
  62983. return queries;
  62984. },
  62985. visitReturnRule$1: function(node) {
  62986. return node.expression.accept$1(this);
  62987. },
  62988. visitSilentComment$1: function(node) {
  62989. return this.visitSilentComment$body$_EvaluateVisitor0(node);
  62990. },
  62991. visitSilentComment$body$_EvaluateVisitor0: function(node) {
  62992. var $async$goto = 0,
  62993. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  62994. $async$returnValue;
  62995. var $async$visitSilentComment$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  62996. if ($async$errorCode === 1)
  62997. return P._asyncRethrow($async$result, $async$completer);
  62998. while (true)
  62999. switch ($async$goto) {
  63000. case 0:
  63001. // Function start
  63002. $async$returnValue = null;
  63003. // goto return
  63004. $async$goto = 1;
  63005. break;
  63006. case 1:
  63007. // return
  63008. return P._asyncReturn($async$returnValue, $async$completer);
  63009. }
  63010. });
  63011. return P._asyncStartSync($async$visitSilentComment$1, $async$completer);
  63012. },
  63013. visitStyleRule$1: function(node) {
  63014. return this.visitStyleRule$body$_EvaluateVisitor0(node);
  63015. },
  63016. visitStyleRule$body$_EvaluateVisitor0: function(node) {
  63017. var $async$goto = 0,
  63018. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  63019. $async$returnValue, $async$self = this, t2, selectorText, t3, parsedSelector, rule, oldAtRootExcludingStyleRule, t1;
  63020. var $async$visitStyleRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63021. if ($async$errorCode === 1)
  63022. return P._asyncRethrow($async$result, $async$completer);
  63023. while (true)
  63024. switch ($async$goto) {
  63025. case 0:
  63026. // Function start
  63027. t1 = {};
  63028. if ($async$self._async_evaluate0$_declarationName != null)
  63029. throw H.wrapException($async$self._async_evaluate0$_exception$2("Style rules may not be used within nested declarations.", node.span));
  63030. t2 = node.selector;
  63031. $async$goto = 3;
  63032. return P._asyncAwait($async$self._async_evaluate0$_interpolationToValue$3$trim$warnForColor(t2, true, true), $async$visitStyleRule$1);
  63033. case 3:
  63034. // returning from await.
  63035. selectorText = $async$result;
  63036. $async$goto = $async$self._async_evaluate0$_inKeyframes ? 4 : 5;
  63037. break;
  63038. case 4:
  63039. // then
  63040. t1 = P.List_List$unmodifiable($async$self._async_evaluate0$_adjustParseError$2(t2, new E._EvaluateVisitor_visitStyleRule_closure20($async$self, selectorText)), type$.String);
  63041. t3 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
  63042. $async$goto = 6;
  63043. return P._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(new U.ModifiableCssKeyframeBlock0(new F.CssValue0(t1, t2.span, type$.CssValue_List_String_2), node.span, new P.UnmodifiableListView(t3, type$.UnmodifiableListView_ModifiableCssNode_2), t3), new E._EvaluateVisitor_visitStyleRule_closure21($async$self, node), node.hasDeclarations, new E._EvaluateVisitor_visitStyleRule_closure22(), type$.ModifiableCssKeyframeBlock_2, type$.Null), $async$visitStyleRule$1);
  63044. case 6:
  63045. // returning from await.
  63046. $async$returnValue = null;
  63047. // goto return
  63048. $async$goto = 1;
  63049. break;
  63050. case 5:
  63051. // join
  63052. t1.parsedSelector = $async$self._async_evaluate0$_adjustParseError$2(t2, new E._EvaluateVisitor_visitStyleRule_closure23($async$self, selectorText));
  63053. parsedSelector = $async$self._async_evaluate0$_addExceptionSpan$2(t2, new E._EvaluateVisitor_visitStyleRule_closure24(t1, $async$self));
  63054. t1.parsedSelector = parsedSelector;
  63055. rule = X.ModifiableCssStyleRule$0($async$self._async_evaluate0$_extender.addSelector$3(parsedSelector, t2.span, $async$self._async_evaluate0$_mediaQueries), node.span, t1.parsedSelector);
  63056. oldAtRootExcludingStyleRule = $async$self._async_evaluate0$_atRootExcludingStyleRule;
  63057. $async$self._async_evaluate0$_atRootExcludingStyleRule = false;
  63058. $async$goto = 7;
  63059. return P._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(rule, new E._EvaluateVisitor_visitStyleRule_closure25($async$self, rule, node), node.hasDeclarations, new E._EvaluateVisitor_visitStyleRule_closure26(), type$.ModifiableCssStyleRule_2, type$.Null), $async$visitStyleRule$1);
  63060. case 7:
  63061. // returning from await.
  63062. $async$self._async_evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  63063. if (!($async$self._async_evaluate0$_styleRule != null && !oldAtRootExcludingStyleRule)) {
  63064. t1 = $async$self._async_evaluate0$_parent.children;
  63065. t1 = !t1.get$isEmpty(t1);
  63066. } else
  63067. t1 = false;
  63068. if (t1) {
  63069. t1 = $async$self._async_evaluate0$_parent.children;
  63070. t1.get$last(t1).isGroupEnd = true;
  63071. }
  63072. $async$returnValue = null;
  63073. // goto return
  63074. $async$goto = 1;
  63075. break;
  63076. case 1:
  63077. // return
  63078. return P._asyncReturn($async$returnValue, $async$completer);
  63079. }
  63080. });
  63081. return P._asyncStartSync($async$visitStyleRule$1, $async$completer);
  63082. },
  63083. visitSupportsRule$1: function(node) {
  63084. return this.visitSupportsRule$body$_EvaluateVisitor0(node);
  63085. },
  63086. visitSupportsRule$body$_EvaluateVisitor0: function(node) {
  63087. var $async$goto = 0,
  63088. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  63089. $async$returnValue, $async$self = this, t1, t2, t3;
  63090. var $async$visitSupportsRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63091. if ($async$errorCode === 1)
  63092. return P._asyncRethrow($async$result, $async$completer);
  63093. while (true)
  63094. switch ($async$goto) {
  63095. case 0:
  63096. // Function start
  63097. if ($async$self._async_evaluate0$_declarationName != null)
  63098. throw H.wrapException($async$self._async_evaluate0$_exception$2("Supports rules may not be used within nested declarations.", node.span));
  63099. t1 = node.condition;
  63100. $async$goto = 3;
  63101. return P._asyncAwait($async$self._async_evaluate0$_visitSupportsCondition$1(t1), $async$visitSupportsRule$1);
  63102. case 3:
  63103. // returning from await.
  63104. t2 = $async$result;
  63105. t1 = t1.get$span();
  63106. t3 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
  63107. $async$goto = 4;
  63108. return P._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(new B.ModifiableCssSupportsRule0(new F.CssValue0(t2, t1, type$.CssValue_String_2), node.span, new P.UnmodifiableListView(t3, type$.UnmodifiableListView_ModifiableCssNode_2), t3), new E._EvaluateVisitor_visitSupportsRule_closure5($async$self, node), node.hasDeclarations, new E._EvaluateVisitor_visitSupportsRule_closure6(), type$.ModifiableCssSupportsRule_2, type$.Null), $async$visitSupportsRule$1);
  63109. case 4:
  63110. // returning from await.
  63111. $async$returnValue = null;
  63112. // goto return
  63113. $async$goto = 1;
  63114. break;
  63115. case 1:
  63116. // return
  63117. return P._asyncReturn($async$returnValue, $async$completer);
  63118. }
  63119. });
  63120. return P._asyncStartSync($async$visitSupportsRule$1, $async$completer);
  63121. },
  63122. _async_evaluate0$_visitSupportsCondition$1: function(condition) {
  63123. return this._visitSupportsCondition$body$_EvaluateVisitor0(condition);
  63124. },
  63125. _visitSupportsCondition$body$_EvaluateVisitor0: function(condition) {
  63126. var $async$goto = 0,
  63127. $async$completer = P._makeAsyncAwaitCompleter(type$.String),
  63128. $async$returnValue, $async$self = this, t1, t2, $async$temp1, $async$temp2;
  63129. var $async$_async_evaluate0$_visitSupportsCondition$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63130. if ($async$errorCode === 1)
  63131. return P._asyncRethrow($async$result, $async$completer);
  63132. while (true)
  63133. switch ($async$goto) {
  63134. case 0:
  63135. // Function start
  63136. $async$goto = condition instanceof U.SupportsOperation0 ? 3 : 5;
  63137. break;
  63138. case 3:
  63139. // then
  63140. t1 = condition.left;
  63141. t2 = condition.operator;
  63142. $async$temp1 = H;
  63143. $async$goto = 6;
  63144. return P._asyncAwait($async$self._async_evaluate0$_parenthesize$2(t1, t2), $async$_async_evaluate0$_visitSupportsCondition$1);
  63145. case 6:
  63146. // returning from await.
  63147. $async$temp1 = $async$temp1.S($async$result) + " " + t2 + " ";
  63148. $async$temp2 = H;
  63149. $async$goto = 7;
  63150. return P._asyncAwait($async$self._async_evaluate0$_parenthesize$2(condition.right, t2), $async$_async_evaluate0$_visitSupportsCondition$1);
  63151. case 7:
  63152. // returning from await.
  63153. $async$returnValue = $async$temp1 + $async$temp2.S($async$result);
  63154. // goto return
  63155. $async$goto = 1;
  63156. break;
  63157. // goto join
  63158. $async$goto = 4;
  63159. break;
  63160. case 5:
  63161. // else
  63162. $async$goto = condition instanceof M.SupportsNegation0 ? 8 : 10;
  63163. break;
  63164. case 8:
  63165. // then
  63166. $async$temp1 = H;
  63167. $async$goto = 11;
  63168. return P._asyncAwait($async$self._async_evaluate0$_parenthesize$1(condition.condition), $async$_async_evaluate0$_visitSupportsCondition$1);
  63169. case 11:
  63170. // returning from await.
  63171. $async$returnValue = "not " + $async$temp1.S($async$result);
  63172. // goto return
  63173. $async$goto = 1;
  63174. break;
  63175. // goto join
  63176. $async$goto = 9;
  63177. break;
  63178. case 10:
  63179. // else
  63180. $async$goto = condition instanceof X.SupportsInterpolation0 ? 12 : 14;
  63181. break;
  63182. case 12:
  63183. // then
  63184. $async$goto = 15;
  63185. return P._asyncAwait($async$self._async_evaluate0$_evaluateToCss$2$quote(condition.expression, false), $async$_async_evaluate0$_visitSupportsCondition$1);
  63186. case 15:
  63187. // returning from await.
  63188. $async$returnValue = $async$result;
  63189. // goto return
  63190. $async$goto = 1;
  63191. break;
  63192. // goto join
  63193. $async$goto = 13;
  63194. break;
  63195. case 14:
  63196. // else
  63197. $async$goto = condition instanceof L.SupportsDeclaration0 ? 16 : 18;
  63198. break;
  63199. case 16:
  63200. // then
  63201. $async$temp1 = H;
  63202. $async$goto = 19;
  63203. return P._asyncAwait($async$self._async_evaluate0$_evaluateToCss$1(condition.name), $async$_async_evaluate0$_visitSupportsCondition$1);
  63204. case 19:
  63205. // returning from await.
  63206. $async$temp1 = "(" + $async$temp1.S($async$result) + ": ";
  63207. $async$temp2 = H;
  63208. $async$goto = 20;
  63209. return P._asyncAwait($async$self._async_evaluate0$_evaluateToCss$1(condition.value), $async$_async_evaluate0$_visitSupportsCondition$1);
  63210. case 20:
  63211. // returning from await.
  63212. $async$returnValue = $async$temp1 + $async$temp2.S($async$result) + ")";
  63213. // goto return
  63214. $async$goto = 1;
  63215. break;
  63216. // goto join
  63217. $async$goto = 17;
  63218. break;
  63219. case 18:
  63220. // else
  63221. $async$returnValue = null;
  63222. // goto return
  63223. $async$goto = 1;
  63224. break;
  63225. case 17:
  63226. // join
  63227. case 13:
  63228. // join
  63229. case 9:
  63230. // join
  63231. case 4:
  63232. // join
  63233. case 1:
  63234. // return
  63235. return P._asyncReturn($async$returnValue, $async$completer);
  63236. }
  63237. });
  63238. return P._asyncStartSync($async$_async_evaluate0$_visitSupportsCondition$1, $async$completer);
  63239. },
  63240. _async_evaluate0$_parenthesize$2: function(condition, operator) {
  63241. return this._parenthesize$body$_EvaluateVisitor0(condition, operator);
  63242. },
  63243. _async_evaluate0$_parenthesize$1: function(condition) {
  63244. return this._async_evaluate0$_parenthesize$2(condition, null);
  63245. },
  63246. _parenthesize$body$_EvaluateVisitor0: function(condition, operator) {
  63247. var $async$goto = 0,
  63248. $async$completer = P._makeAsyncAwaitCompleter(type$.String),
  63249. $async$returnValue, $async$self = this, t1, $async$temp1;
  63250. var $async$_async_evaluate0$_parenthesize$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63251. if ($async$errorCode === 1)
  63252. return P._asyncRethrow($async$result, $async$completer);
  63253. while (true)
  63254. switch ($async$goto) {
  63255. case 0:
  63256. // Function start
  63257. if (!(condition instanceof M.SupportsNegation0))
  63258. if (condition instanceof U.SupportsOperation0)
  63259. t1 = operator == null || operator !== condition.operator;
  63260. else
  63261. t1 = false;
  63262. else
  63263. t1 = true;
  63264. $async$goto = t1 ? 3 : 5;
  63265. break;
  63266. case 3:
  63267. // then
  63268. $async$temp1 = H;
  63269. $async$goto = 6;
  63270. return P._asyncAwait($async$self._async_evaluate0$_visitSupportsCondition$1(condition), $async$_async_evaluate0$_parenthesize$2);
  63271. case 6:
  63272. // returning from await.
  63273. $async$returnValue = "(" + $async$temp1.S($async$result) + ")";
  63274. // goto return
  63275. $async$goto = 1;
  63276. break;
  63277. // goto join
  63278. $async$goto = 4;
  63279. break;
  63280. case 5:
  63281. // else
  63282. $async$goto = 7;
  63283. return P._asyncAwait($async$self._async_evaluate0$_visitSupportsCondition$1(condition), $async$_async_evaluate0$_parenthesize$2);
  63284. case 7:
  63285. // returning from await.
  63286. $async$returnValue = $async$result;
  63287. // goto return
  63288. $async$goto = 1;
  63289. break;
  63290. case 4:
  63291. // join
  63292. case 1:
  63293. // return
  63294. return P._asyncReturn($async$returnValue, $async$completer);
  63295. }
  63296. });
  63297. return P._asyncStartSync($async$_async_evaluate0$_parenthesize$2, $async$completer);
  63298. },
  63299. visitVariableDeclaration$1: function(node) {
  63300. return this.visitVariableDeclaration$body$_EvaluateVisitor0(node);
  63301. },
  63302. visitVariableDeclaration$body$_EvaluateVisitor0: function(node) {
  63303. var $async$goto = 0,
  63304. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  63305. $async$returnValue, $async$self = this, t1, value, t2, $async$temp1, $async$temp2, $async$temp3;
  63306. var $async$visitVariableDeclaration$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63307. if ($async$errorCode === 1)
  63308. return P._asyncRethrow($async$result, $async$completer);
  63309. while (true)
  63310. switch ($async$goto) {
  63311. case 0:
  63312. // Function start
  63313. if (node.isGuarded) {
  63314. if (node.namespace == null && $async$self._async_evaluate0$_environment._async_environment0$_variables.length === 1) {
  63315. t1 = $async$self._async_evaluate0$_configuration._configuration$_values;
  63316. t1 = t1.get$isEmpty(t1) ? null : t1.remove$1(0, node.name);
  63317. if (t1 != null) {
  63318. $async$self._async_evaluate0$_addExceptionSpan$2(node, new E._EvaluateVisitor_visitVariableDeclaration_closure8($async$self, node, t1));
  63319. $async$returnValue = null;
  63320. // goto return
  63321. $async$goto = 1;
  63322. break;
  63323. }
  63324. }
  63325. value = $async$self._async_evaluate0$_addExceptionSpan$2(node, new E._EvaluateVisitor_visitVariableDeclaration_closure9($async$self, node));
  63326. if (value != null && !value.$eq(0, C.C_SassNull)) {
  63327. $async$returnValue = null;
  63328. // goto return
  63329. $async$goto = 1;
  63330. break;
  63331. }
  63332. }
  63333. if (node.isGlobal && !$async$self._async_evaluate0$_environment.globalVariableExists$1(node.name)) {
  63334. t1 = $async$self._async_evaluate0$_environment._async_environment0$_variables.length === 1 ? "As of Dart Sass 2.0.0, !global assignments won't be able to\ndeclare new variables. Since this assignment is at the root of the stylesheet,\nthe !global flag is unnecessary and can safely be removed." : "As of Dart Sass 2.0.0, !global assignments won't be able to\ndeclare new variables. Consider adding `" + B.declarationName0(node.span) + ": null` at the root of the\nstylesheet.";
  63335. t2 = node.span;
  63336. $async$self._async_evaluate0$_logger.warn$4$deprecation$span$trace(t1, true, t2, $async$self._async_evaluate0$_stackTrace$1(t2));
  63337. }
  63338. $async$temp1 = node;
  63339. $async$temp2 = E;
  63340. $async$temp3 = node;
  63341. $async$goto = 3;
  63342. return P._asyncAwait(node.expression.accept$1($async$self), $async$visitVariableDeclaration$1);
  63343. case 3:
  63344. // returning from await.
  63345. $async$self._async_evaluate0$_addExceptionSpan$2($async$temp1, new $async$temp2._EvaluateVisitor_visitVariableDeclaration_closure10($async$self, $async$temp3, $async$result.withoutSlash$0()));
  63346. $async$returnValue = null;
  63347. // goto return
  63348. $async$goto = 1;
  63349. break;
  63350. case 1:
  63351. // return
  63352. return P._asyncReturn($async$returnValue, $async$completer);
  63353. }
  63354. });
  63355. return P._asyncStartSync($async$visitVariableDeclaration$1, $async$completer);
  63356. },
  63357. visitUseRule$1: function(node) {
  63358. return this.visitUseRule$body$_EvaluateVisitor0(node);
  63359. },
  63360. visitUseRule$body$_EvaluateVisitor0: function(node) {
  63361. var $async$goto = 0,
  63362. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  63363. $async$returnValue, $async$self = this, configuration, t3, _i, variable, t4, t5, t1, t2, $async$temp1, $async$temp2, $async$temp3;
  63364. var $async$visitUseRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63365. if ($async$errorCode === 1)
  63366. return P._asyncRethrow($async$result, $async$completer);
  63367. while (true)
  63368. switch ($async$goto) {
  63369. case 0:
  63370. // Function start
  63371. t1 = node.configuration;
  63372. t2 = t1.length;
  63373. $async$goto = t2 === 0 ? 3 : 5;
  63374. break;
  63375. case 3:
  63376. // then
  63377. configuration = C.Configuration_Map_empty_null_true0;
  63378. // goto join
  63379. $async$goto = 4;
  63380. break;
  63381. case 5:
  63382. // else
  63383. t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue_2);
  63384. _i = 0;
  63385. case 6:
  63386. // for condition
  63387. if (!(_i < t2)) {
  63388. // goto after for
  63389. $async$goto = 8;
  63390. break;
  63391. }
  63392. variable = t1[_i];
  63393. t4 = variable.name;
  63394. t5 = variable.expression;
  63395. $async$temp1 = t3;
  63396. $async$temp2 = t4;
  63397. $async$temp3 = Z;
  63398. $async$goto = 9;
  63399. return P._asyncAwait(t5.accept$1($async$self), $async$visitUseRule$1);
  63400. case 9:
  63401. // returning from await.
  63402. $async$temp1.$indexSet(0, $async$temp2, new $async$temp3.ConfiguredValue0($async$result.withoutSlash$0(), variable.span, $async$self._async_evaluate0$_expressionNode$1(t5)));
  63403. case 7:
  63404. // for update
  63405. ++_i;
  63406. // goto for condition
  63407. $async$goto = 6;
  63408. break;
  63409. case 8:
  63410. // after for
  63411. configuration = new A.Configuration0(t3, node, false);
  63412. case 4:
  63413. // join
  63414. $async$goto = 10;
  63415. return P._asyncAwait($async$self._async_evaluate0$_loadModule$5$configuration(node.url, "@use", node, new E._EvaluateVisitor_visitUseRule_closure2($async$self, node), configuration), $async$visitUseRule$1);
  63416. case 10:
  63417. // returning from await.
  63418. $async$self._async_evaluate0$_assertConfigurationIsEmpty$1(configuration);
  63419. $async$returnValue = null;
  63420. // goto return
  63421. $async$goto = 1;
  63422. break;
  63423. case 1:
  63424. // return
  63425. return P._asyncReturn($async$returnValue, $async$completer);
  63426. }
  63427. });
  63428. return P._asyncStartSync($async$visitUseRule$1, $async$completer);
  63429. },
  63430. visitWarnRule$1: function(node) {
  63431. return this.visitWarnRule$body$_EvaluateVisitor0(node);
  63432. },
  63433. visitWarnRule$body$_EvaluateVisitor0: function(node) {
  63434. var $async$goto = 0,
  63435. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  63436. $async$returnValue, $async$self = this, value, t1;
  63437. var $async$visitWarnRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63438. if ($async$errorCode === 1)
  63439. return P._asyncRethrow($async$result, $async$completer);
  63440. while (true)
  63441. switch ($async$goto) {
  63442. case 0:
  63443. // Function start
  63444. $async$goto = 3;
  63445. return P._asyncAwait($async$self._async_evaluate0$_addExceptionSpanAsync$1$2(node, new E._EvaluateVisitor_visitWarnRule_closure2($async$self, node), type$.Value_2), $async$visitWarnRule$1);
  63446. case 3:
  63447. // returning from await.
  63448. value = $async$result;
  63449. t1 = value instanceof D.SassString0 ? value.text : $async$self._async_evaluate0$_serialize$2(value, node.expression);
  63450. $async$self._async_evaluate0$_logger.warn$2$trace(t1, $async$self._async_evaluate0$_stackTrace$1(node.span));
  63451. $async$returnValue = null;
  63452. // goto return
  63453. $async$goto = 1;
  63454. break;
  63455. case 1:
  63456. // return
  63457. return P._asyncReturn($async$returnValue, $async$completer);
  63458. }
  63459. });
  63460. return P._asyncStartSync($async$visitWarnRule$1, $async$completer);
  63461. },
  63462. visitWhileRule$1: function(node) {
  63463. return this._async_evaluate0$_environment.scope$1$3$semiGlobal$when(new E._EvaluateVisitor_visitWhileRule_closure2(this, node), true, node.hasDeclarations, type$.Value_2);
  63464. },
  63465. visitBinaryOperationExpression$1: function(node) {
  63466. return this._async_evaluate0$_addExceptionSpanAsync$1$2(node, new E._EvaluateVisitor_visitBinaryOperationExpression_closure2(this, node), type$.Value_2);
  63467. },
  63468. visitValueExpression$1: function(node) {
  63469. return this.visitValueExpression$body$_EvaluateVisitor0(node);
  63470. },
  63471. visitValueExpression$body$_EvaluateVisitor0: function(node) {
  63472. var $async$goto = 0,
  63473. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  63474. $async$returnValue;
  63475. var $async$visitValueExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63476. if ($async$errorCode === 1)
  63477. return P._asyncRethrow($async$result, $async$completer);
  63478. while (true)
  63479. switch ($async$goto) {
  63480. case 0:
  63481. // Function start
  63482. $async$returnValue = node.value;
  63483. // goto return
  63484. $async$goto = 1;
  63485. break;
  63486. case 1:
  63487. // return
  63488. return P._asyncReturn($async$returnValue, $async$completer);
  63489. }
  63490. });
  63491. return P._asyncStartSync($async$visitValueExpression$1, $async$completer);
  63492. },
  63493. visitVariableExpression$1: function(node) {
  63494. return this.visitVariableExpression$body$_EvaluateVisitor0(node);
  63495. },
  63496. visitVariableExpression$body$_EvaluateVisitor0: function(node) {
  63497. var $async$goto = 0,
  63498. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  63499. $async$returnValue, $async$self = this, result;
  63500. var $async$visitVariableExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63501. if ($async$errorCode === 1)
  63502. return P._asyncRethrow($async$result, $async$completer);
  63503. while (true)
  63504. switch ($async$goto) {
  63505. case 0:
  63506. // Function start
  63507. result = $async$self._async_evaluate0$_addExceptionSpan$2(node, new E._EvaluateVisitor_visitVariableExpression_closure2($async$self, node));
  63508. if (result != null) {
  63509. $async$returnValue = result;
  63510. // goto return
  63511. $async$goto = 1;
  63512. break;
  63513. }
  63514. throw H.wrapException($async$self._async_evaluate0$_exception$2("Undefined variable.", node.span));
  63515. case 1:
  63516. // return
  63517. return P._asyncReturn($async$returnValue, $async$completer);
  63518. }
  63519. });
  63520. return P._asyncStartSync($async$visitVariableExpression$1, $async$completer);
  63521. },
  63522. visitUnaryOperationExpression$1: function(node) {
  63523. return this.visitUnaryOperationExpression$body$_EvaluateVisitor0(node);
  63524. },
  63525. visitUnaryOperationExpression$body$_EvaluateVisitor0: function(node) {
  63526. var $async$goto = 0,
  63527. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  63528. $async$returnValue, $async$self = this, operand, t1;
  63529. var $async$visitUnaryOperationExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63530. if ($async$errorCode === 1)
  63531. return P._asyncRethrow($async$result, $async$completer);
  63532. while (true)
  63533. $async$outer:
  63534. switch ($async$goto) {
  63535. case 0:
  63536. // Function start
  63537. $async$goto = 3;
  63538. return P._asyncAwait(node.operand.accept$1($async$self), $async$visitUnaryOperationExpression$1);
  63539. case 3:
  63540. // returning from await.
  63541. operand = $async$result;
  63542. t1 = node.operator;
  63543. switch (t1) {
  63544. case C.UnaryOperator_j2w0:
  63545. $async$returnValue = operand.unaryPlus$0();
  63546. // goto return
  63547. $async$goto = 1;
  63548. break $async$outer;
  63549. case C.UnaryOperator_U4G0:
  63550. $async$returnValue = operand.unaryMinus$0();
  63551. // goto return
  63552. $async$goto = 1;
  63553. break $async$outer;
  63554. case C.UnaryOperator_zDx0:
  63555. operand.toString;
  63556. $async$returnValue = new D.SassString0("/" + N.serializeValue(operand, false, true), false);
  63557. // goto return
  63558. $async$goto = 1;
  63559. break $async$outer;
  63560. case C.UnaryOperator_not_not0:
  63561. $async$returnValue = operand.unaryNot$0();
  63562. // goto return
  63563. $async$goto = 1;
  63564. break $async$outer;
  63565. default:
  63566. throw H.wrapException(P.StateError$("Unknown unary operator " + H.S(t1) + "."));
  63567. }
  63568. case 1:
  63569. // return
  63570. return P._asyncReturn($async$returnValue, $async$completer);
  63571. }
  63572. });
  63573. return P._asyncStartSync($async$visitUnaryOperationExpression$1, $async$completer);
  63574. },
  63575. visitBooleanExpression$1: function(node) {
  63576. return this.visitBooleanExpression$body$_EvaluateVisitor0(node);
  63577. },
  63578. visitBooleanExpression$body$_EvaluateVisitor0: function(node) {
  63579. var $async$goto = 0,
  63580. $async$completer = P._makeAsyncAwaitCompleter(type$.SassBoolean_2),
  63581. $async$returnValue;
  63582. var $async$visitBooleanExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63583. if ($async$errorCode === 1)
  63584. return P._asyncRethrow($async$result, $async$completer);
  63585. while (true)
  63586. switch ($async$goto) {
  63587. case 0:
  63588. // Function start
  63589. $async$returnValue = node.value ? C.SassBoolean_true : C.SassBoolean_false;
  63590. // goto return
  63591. $async$goto = 1;
  63592. break;
  63593. case 1:
  63594. // return
  63595. return P._asyncReturn($async$returnValue, $async$completer);
  63596. }
  63597. });
  63598. return P._asyncStartSync($async$visitBooleanExpression$1, $async$completer);
  63599. },
  63600. visitIfExpression$1: function(node) {
  63601. return this.visitIfExpression$body$_EvaluateVisitor0(node);
  63602. },
  63603. visitIfExpression$body$_EvaluateVisitor0: function(node) {
  63604. var $async$goto = 0,
  63605. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  63606. $async$returnValue, $async$self = this, condition, ifTrue, ifFalse, pair, positional, named, t1;
  63607. var $async$visitIfExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63608. if ($async$errorCode === 1)
  63609. return P._asyncRethrow($async$result, $async$completer);
  63610. while (true)
  63611. switch ($async$goto) {
  63612. case 0:
  63613. // Function start
  63614. $async$goto = 3;
  63615. return P._asyncAwait($async$self._async_evaluate0$_evaluateMacroArguments$1(node), $async$visitIfExpression$1);
  63616. case 3:
  63617. // returning from await.
  63618. pair = $async$result;
  63619. positional = pair.item1;
  63620. named = pair.item2;
  63621. t1 = J.getInterceptor$asx(positional);
  63622. $async$self._async_evaluate0$_verifyArguments$4(t1.get$length(positional), named, $.$get$IfExpression_declaration0(), node);
  63623. condition = t1.get$length(positional) > 0 ? t1.$index(positional, 0) : named.$index(0, "condition");
  63624. ifTrue = t1.get$length(positional) > 1 ? t1.$index(positional, 1) : named.$index(0, "if-true");
  63625. ifFalse = t1.get$length(positional) > 2 ? t1.$index(positional, 2) : named.$index(0, "if-false");
  63626. $async$goto = 5;
  63627. return P._asyncAwait(condition.accept$1($async$self), $async$visitIfExpression$1);
  63628. case 5:
  63629. // returning from await.
  63630. $async$goto = 4;
  63631. return P._asyncAwait(($async$result.get$isTruthy() ? ifTrue : ifFalse).accept$1($async$self), $async$visitIfExpression$1);
  63632. case 4:
  63633. // returning from await.
  63634. $async$returnValue = $async$result;
  63635. // goto return
  63636. $async$goto = 1;
  63637. break;
  63638. case 1:
  63639. // return
  63640. return P._asyncReturn($async$returnValue, $async$completer);
  63641. }
  63642. });
  63643. return P._asyncStartSync($async$visitIfExpression$1, $async$completer);
  63644. },
  63645. visitNullExpression$1: function(node) {
  63646. return this.visitNullExpression$body$_EvaluateVisitor0(node);
  63647. },
  63648. visitNullExpression$body$_EvaluateVisitor0: function(node) {
  63649. var $async$goto = 0,
  63650. $async$completer = P._makeAsyncAwaitCompleter(type$.SassNull_2),
  63651. $async$returnValue;
  63652. var $async$visitNullExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63653. if ($async$errorCode === 1)
  63654. return P._asyncRethrow($async$result, $async$completer);
  63655. while (true)
  63656. switch ($async$goto) {
  63657. case 0:
  63658. // Function start
  63659. $async$returnValue = C.C_SassNull;
  63660. // goto return
  63661. $async$goto = 1;
  63662. break;
  63663. case 1:
  63664. // return
  63665. return P._asyncReturn($async$returnValue, $async$completer);
  63666. }
  63667. });
  63668. return P._asyncStartSync($async$visitNullExpression$1, $async$completer);
  63669. },
  63670. visitNumberExpression$1: function(node) {
  63671. return this.visitNumberExpression$body$_EvaluateVisitor0(node);
  63672. },
  63673. visitNumberExpression$body$_EvaluateVisitor0: function(node) {
  63674. var $async$goto = 0,
  63675. $async$completer = P._makeAsyncAwaitCompleter(type$.SassNumber_2),
  63676. $async$returnValue, t1;
  63677. var $async$visitNumberExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63678. if ($async$errorCode === 1)
  63679. return P._asyncRethrow($async$result, $async$completer);
  63680. while (true)
  63681. switch ($async$goto) {
  63682. case 0:
  63683. // Function start
  63684. t1 = node.unit;
  63685. t1 = t1 == null ? null : H.setRuntimeTypeInfo([t1], type$.JSArray_String);
  63686. t1 = t1 == null ? C.List_empty : P.List_List$unmodifiable(t1, type$.String);
  63687. $async$returnValue = new T.SassNumber0(node.value, t1, C.List_empty, null);
  63688. // goto return
  63689. $async$goto = 1;
  63690. break;
  63691. case 1:
  63692. // return
  63693. return P._asyncReturn($async$returnValue, $async$completer);
  63694. }
  63695. });
  63696. return P._asyncStartSync($async$visitNumberExpression$1, $async$completer);
  63697. },
  63698. visitParenthesizedExpression$1: function(node) {
  63699. return node.expression.accept$1(this);
  63700. },
  63701. visitColorExpression$1: function(node) {
  63702. return this.visitColorExpression$body$_EvaluateVisitor0(node);
  63703. },
  63704. visitColorExpression$body$_EvaluateVisitor0: function(node) {
  63705. var $async$goto = 0,
  63706. $async$completer = P._makeAsyncAwaitCompleter(type$.SassColor_2),
  63707. $async$returnValue;
  63708. var $async$visitColorExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63709. if ($async$errorCode === 1)
  63710. return P._asyncRethrow($async$result, $async$completer);
  63711. while (true)
  63712. switch ($async$goto) {
  63713. case 0:
  63714. // Function start
  63715. $async$returnValue = node.value;
  63716. // goto return
  63717. $async$goto = 1;
  63718. break;
  63719. case 1:
  63720. // return
  63721. return P._asyncReturn($async$returnValue, $async$completer);
  63722. }
  63723. });
  63724. return P._asyncStartSync($async$visitColorExpression$1, $async$completer);
  63725. },
  63726. visitListExpression$1: function(node) {
  63727. return this.visitListExpression$body$_EvaluateVisitor0(node);
  63728. },
  63729. visitListExpression$body$_EvaluateVisitor0: function(node) {
  63730. var $async$goto = 0,
  63731. $async$completer = P._makeAsyncAwaitCompleter(type$.SassList_2),
  63732. $async$returnValue, $async$self = this, $async$temp1;
  63733. var $async$visitListExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63734. if ($async$errorCode === 1)
  63735. return P._asyncRethrow($async$result, $async$completer);
  63736. while (true)
  63737. switch ($async$goto) {
  63738. case 0:
  63739. // Function start
  63740. $async$temp1 = D;
  63741. $async$goto = 3;
  63742. return P._asyncAwait(B.mapAsync0(node.contents, new E._EvaluateVisitor_visitListExpression_closure2($async$self), type$.Expression_2, type$.Value_2), $async$visitListExpression$1);
  63743. case 3:
  63744. // returning from await.
  63745. $async$returnValue = $async$temp1.SassList$0($async$result, node.separator, node.hasBrackets);
  63746. // goto return
  63747. $async$goto = 1;
  63748. break;
  63749. case 1:
  63750. // return
  63751. return P._asyncReturn($async$returnValue, $async$completer);
  63752. }
  63753. });
  63754. return P._asyncStartSync($async$visitListExpression$1, $async$completer);
  63755. },
  63756. visitMapExpression$1: function(node) {
  63757. return this.visitMapExpression$body$_EvaluateVisitor0(node);
  63758. },
  63759. visitMapExpression$body$_EvaluateVisitor0: function(node) {
  63760. var $async$goto = 0,
  63761. $async$completer = P._makeAsyncAwaitCompleter(type$.SassMap_2),
  63762. $async$returnValue, $async$self = this, t2, t3, _i, pair, t4, keyValue, valueValue, t1, map, keyNodes;
  63763. var $async$visitMapExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63764. if ($async$errorCode === 1)
  63765. return P._asyncRethrow($async$result, $async$completer);
  63766. while (true)
  63767. switch ($async$goto) {
  63768. case 0:
  63769. // Function start
  63770. t1 = type$.Value_2;
  63771. map = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  63772. keyNodes = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.AstNode_2);
  63773. t2 = node.pairs, t3 = t2.length, _i = 0;
  63774. case 3:
  63775. // for condition
  63776. if (!(_i < t3)) {
  63777. // goto after for
  63778. $async$goto = 5;
  63779. break;
  63780. }
  63781. pair = t2[_i];
  63782. t4 = pair.item1;
  63783. $async$goto = 6;
  63784. return P._asyncAwait(t4.accept$1($async$self), $async$visitMapExpression$1);
  63785. case 6:
  63786. // returning from await.
  63787. keyValue = $async$result;
  63788. $async$goto = 7;
  63789. return P._asyncAwait(pair.item2.accept$1($async$self), $async$visitMapExpression$1);
  63790. case 7:
  63791. // returning from await.
  63792. valueValue = $async$result;
  63793. if (map.containsKey$1(keyValue))
  63794. throw H.wrapException(E.MultiSpanSassRuntimeException$0("Duplicate key.", t4.get$span(), "second key", P.LinkedHashMap_LinkedHashMap$_literal([keyNodes.$index(0, keyValue).get$span(), "first key"], type$.FileSpan, type$.String), $async$self._async_evaluate0$_stackTrace$1(t4.get$span())));
  63795. map.$indexSet(0, keyValue, valueValue);
  63796. keyNodes.$indexSet(0, keyValue, t4);
  63797. case 4:
  63798. // for update
  63799. ++_i;
  63800. // goto for condition
  63801. $async$goto = 3;
  63802. break;
  63803. case 5:
  63804. // after for
  63805. $async$returnValue = new A.SassMap0(H.ConstantMap_ConstantMap$from(map, t1, t1));
  63806. // goto return
  63807. $async$goto = 1;
  63808. break;
  63809. case 1:
  63810. // return
  63811. return P._asyncReturn($async$returnValue, $async$completer);
  63812. }
  63813. });
  63814. return P._asyncStartSync($async$visitMapExpression$1, $async$completer);
  63815. },
  63816. visitFunctionExpression$1: function(node) {
  63817. return this.visitFunctionExpression$body$_EvaluateVisitor0(node);
  63818. },
  63819. visitFunctionExpression$body$_EvaluateVisitor0: function(node) {
  63820. var $async$goto = 0,
  63821. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  63822. $async$returnValue, $async$self = this, oldInFunction, result, t1, t2, plainName, $async$temp1, $async$temp2;
  63823. var $async$visitFunctionExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63824. if ($async$errorCode === 1)
  63825. return P._asyncRethrow($async$result, $async$completer);
  63826. while (true)
  63827. switch ($async$goto) {
  63828. case 0:
  63829. // Function start
  63830. t1 = {};
  63831. t2 = node.name;
  63832. plainName = t2.get$asPlain();
  63833. t1.$function = null;
  63834. $async$goto = (plainName != null ? t1.$function = $async$self._async_evaluate0$_addExceptionSpan$2(node, new E._EvaluateVisitor_visitFunctionExpression_closure5($async$self, node, plainName)) : null) == null ? 3 : 4;
  63835. break;
  63836. case 3:
  63837. // then
  63838. if (node.namespace != null)
  63839. throw H.wrapException($async$self._async_evaluate0$_exception$2("Undefined function.", node.span));
  63840. $async$temp1 = t1;
  63841. $async$temp2 = L;
  63842. $async$goto = 5;
  63843. return P._asyncAwait($async$self._async_evaluate0$_performInterpolation$1(t2), $async$visitFunctionExpression$1);
  63844. case 5:
  63845. // returning from await.
  63846. $async$temp1.$function = new $async$temp2.PlainCssCallable0($async$result);
  63847. case 4:
  63848. // join
  63849. oldInFunction = $async$self._async_evaluate0$_inFunction;
  63850. $async$self._async_evaluate0$_inFunction = true;
  63851. $async$goto = 6;
  63852. return P._asyncAwait($async$self._async_evaluate0$_addErrorSpan$1$2(node, new E._EvaluateVisitor_visitFunctionExpression_closure6(t1, $async$self, node), type$.Value_2), $async$visitFunctionExpression$1);
  63853. case 6:
  63854. // returning from await.
  63855. result = $async$result;
  63856. $async$self._async_evaluate0$_inFunction = oldInFunction;
  63857. $async$returnValue = result;
  63858. // goto return
  63859. $async$goto = 1;
  63860. break;
  63861. case 1:
  63862. // return
  63863. return P._asyncReturn($async$returnValue, $async$completer);
  63864. }
  63865. });
  63866. return P._asyncStartSync($async$visitFunctionExpression$1, $async$completer);
  63867. },
  63868. _async_evaluate0$_getFunction$2$namespace: function($name, namespace) {
  63869. var local = this._async_evaluate0$_environment.getFunction$2$namespace($name, namespace);
  63870. if (local != null || namespace != null)
  63871. return local;
  63872. return this._async_evaluate0$_builtInFunctions.$index(0, $name);
  63873. },
  63874. _async_evaluate0$_runUserDefinedCallable$4: function($arguments, callable, nodeWithSpan, run) {
  63875. return this._runUserDefinedCallable$body$_EvaluateVisitor0($arguments, callable, nodeWithSpan, run);
  63876. },
  63877. _runUserDefinedCallable$body$_EvaluateVisitor0: function($arguments, callable, nodeWithSpan, run) {
  63878. var $async$goto = 0,
  63879. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  63880. $async$returnValue, $async$self = this, evaluated, t1, $name;
  63881. var $async$_async_evaluate0$_runUserDefinedCallable$4 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63882. if ($async$errorCode === 1)
  63883. return P._asyncRethrow($async$result, $async$completer);
  63884. while (true)
  63885. switch ($async$goto) {
  63886. case 0:
  63887. // Function start
  63888. $async$goto = 3;
  63889. return P._asyncAwait($async$self._async_evaluate0$_evaluateArguments$1($arguments), $async$_async_evaluate0$_runUserDefinedCallable$4);
  63890. case 3:
  63891. // returning from await.
  63892. evaluated = $async$result;
  63893. t1 = callable.declaration.name;
  63894. $name = t1 == null ? "@content" : t1 + "()";
  63895. $async$goto = 4;
  63896. return P._asyncAwait($async$self._async_evaluate0$_withStackFrame$1$3($name, nodeWithSpan, new E._EvaluateVisitor__runUserDefinedCallable_closure2($async$self, callable, evaluated, nodeWithSpan, run), type$.Value_2), $async$_async_evaluate0$_runUserDefinedCallable$4);
  63897. case 4:
  63898. // returning from await.
  63899. $async$returnValue = $async$result;
  63900. // goto return
  63901. $async$goto = 1;
  63902. break;
  63903. case 1:
  63904. // return
  63905. return P._asyncReturn($async$returnValue, $async$completer);
  63906. }
  63907. });
  63908. return P._asyncStartSync($async$_async_evaluate0$_runUserDefinedCallable$4, $async$completer);
  63909. },
  63910. _async_evaluate0$_runFunctionCallable$3: function($arguments, callable, nodeWithSpan) {
  63911. return this._runFunctionCallable$body$_EvaluateVisitor0($arguments, callable, nodeWithSpan);
  63912. },
  63913. _runFunctionCallable$body$_EvaluateVisitor0: function($arguments, callable, nodeWithSpan) {
  63914. var $async$goto = 0,
  63915. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  63916. $async$returnValue, $async$self = this, result, t1, t2, t3, first, _i, argument, rest, $async$temp1;
  63917. var $async$_async_evaluate0$_runFunctionCallable$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63918. if ($async$errorCode === 1)
  63919. return P._asyncRethrow($async$result, $async$completer);
  63920. while (true)
  63921. switch ($async$goto) {
  63922. case 0:
  63923. // Function start
  63924. $async$goto = type$.AsyncBuiltInCallable_2._is(callable) ? 3 : 5;
  63925. break;
  63926. case 3:
  63927. // then
  63928. $async$goto = 6;
  63929. return P._asyncAwait($async$self._async_evaluate0$_runBuiltInCallable$3($arguments, callable, nodeWithSpan), $async$_async_evaluate0$_runFunctionCallable$3);
  63930. case 6:
  63931. // returning from await.
  63932. result = $async$result;
  63933. if (result == null)
  63934. throw H.wrapException($async$self._async_evaluate0$_exception$2("Custom functions may not return Dart's null.", nodeWithSpan.get$span()));
  63935. $async$returnValue = result.withoutSlash$0();
  63936. // goto return
  63937. $async$goto = 1;
  63938. break;
  63939. // goto join
  63940. $async$goto = 4;
  63941. break;
  63942. case 5:
  63943. // else
  63944. $async$goto = type$.UserDefinedCallable_AsyncEnvironment_2._is(callable) ? 7 : 9;
  63945. break;
  63946. case 7:
  63947. // then
  63948. $async$goto = 10;
  63949. return P._asyncAwait($async$self._async_evaluate0$_runUserDefinedCallable$4($arguments, callable, nodeWithSpan, new E._EvaluateVisitor__runFunctionCallable_closure2($async$self, callable)), $async$_async_evaluate0$_runFunctionCallable$3);
  63950. case 10:
  63951. // returning from await.
  63952. $async$returnValue = $async$result.withoutSlash$0();
  63953. // goto return
  63954. $async$goto = 1;
  63955. break;
  63956. // goto join
  63957. $async$goto = 8;
  63958. break;
  63959. case 9:
  63960. // else
  63961. $async$goto = callable instanceof L.PlainCssCallable0 ? 11 : 13;
  63962. break;
  63963. case 11:
  63964. // then
  63965. t1 = $arguments.named;
  63966. if (t1.get$isNotEmpty(t1) || $arguments.keywordRest != null)
  63967. throw H.wrapException($async$self._async_evaluate0$_exception$2("Plain CSS functions don't support keyword arguments.", nodeWithSpan.get$span()));
  63968. t1 = H.S(callable.name) + "(";
  63969. t2 = $arguments.positional, t3 = t2.length, first = true, _i = 0;
  63970. case 14:
  63971. // for condition
  63972. if (!(_i < t3)) {
  63973. // goto after for
  63974. $async$goto = 16;
  63975. break;
  63976. }
  63977. argument = t2[_i];
  63978. if (first)
  63979. first = false;
  63980. else
  63981. t1 += ", ";
  63982. $async$temp1 = H;
  63983. $async$goto = 17;
  63984. return P._asyncAwait($async$self._async_evaluate0$_evaluateToCss$1(argument), $async$_async_evaluate0$_runFunctionCallable$3);
  63985. case 17:
  63986. // returning from await.
  63987. t1 += $async$temp1.S($async$result);
  63988. case 15:
  63989. // for update
  63990. ++_i;
  63991. // goto for condition
  63992. $async$goto = 14;
  63993. break;
  63994. case 16:
  63995. // after for
  63996. t2 = $arguments.rest;
  63997. $async$goto = 18;
  63998. return P._asyncAwait(t2 == null ? null : t2.accept$1($async$self), $async$_async_evaluate0$_runFunctionCallable$3);
  63999. case 18:
  64000. // returning from await.
  64001. rest = $async$result;
  64002. if (rest != null) {
  64003. if (!first)
  64004. t1 += ", ";
  64005. t2 = t1 + H.S($async$self._async_evaluate0$_serialize$2(rest, t2));
  64006. t1 = t2;
  64007. }
  64008. t1 += H.Primitives_stringFromCharCode(41);
  64009. $async$returnValue = new D.SassString0(t1.charCodeAt(0) == 0 ? t1 : t1, false);
  64010. // goto return
  64011. $async$goto = 1;
  64012. break;
  64013. // goto join
  64014. $async$goto = 12;
  64015. break;
  64016. case 13:
  64017. // else
  64018. $async$returnValue = null;
  64019. // goto return
  64020. $async$goto = 1;
  64021. break;
  64022. case 12:
  64023. // join
  64024. case 8:
  64025. // join
  64026. case 4:
  64027. // join
  64028. case 1:
  64029. // return
  64030. return P._asyncReturn($async$returnValue, $async$completer);
  64031. }
  64032. });
  64033. return P._asyncStartSync($async$_async_evaluate0$_runFunctionCallable$3, $async$completer);
  64034. },
  64035. _async_evaluate0$_runBuiltInCallable$3: function($arguments, callable, nodeWithSpan) {
  64036. return this._runBuiltInCallable$body$_EvaluateVisitor0($arguments, callable, nodeWithSpan);
  64037. },
  64038. _runBuiltInCallable$body$_EvaluateVisitor0: function($arguments, callable, nodeWithSpan) {
  64039. var $async$goto = 0,
  64040. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  64041. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, callback, result, error, error0, error1, message, namedSet, tuple, overload, declaredArguments, i, t1, argument, t2, t3, rest, argumentList, exception, evaluated, oldCallableNode, $async$exception;
  64042. var $async$_async_evaluate0$_runBuiltInCallable$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64043. if ($async$errorCode === 1) {
  64044. $async$currentError = $async$result;
  64045. $async$goto = $async$handler;
  64046. }
  64047. while (true)
  64048. switch ($async$goto) {
  64049. case 0:
  64050. // Function start
  64051. $async$goto = 3;
  64052. return P._asyncAwait($async$self._async_evaluate0$_evaluateArguments$2$trackSpans($arguments, false), $async$_async_evaluate0$_runBuiltInCallable$3);
  64053. case 3:
  64054. // returning from await.
  64055. evaluated = $async$result;
  64056. oldCallableNode = $async$self._async_evaluate0$_callableNode;
  64057. $async$self._async_evaluate0$_callableNode = nodeWithSpan;
  64058. namedSet = new M.MapKeySet(evaluated.named, type$.MapKeySet_String);
  64059. tuple = callable.callbackFor$2(evaluated.positional.length, namedSet);
  64060. overload = tuple.item1;
  64061. callback = tuple.item2;
  64062. $async$self._async_evaluate0$_addExceptionSpan$2(nodeWithSpan, new E._EvaluateVisitor__runBuiltInCallable_closure5(overload, evaluated, namedSet));
  64063. declaredArguments = overload.$arguments;
  64064. i = evaluated.positional.length, t1 = declaredArguments.length;
  64065. case 4:
  64066. // for condition
  64067. if (!(i < t1)) {
  64068. // goto after for
  64069. $async$goto = 6;
  64070. break;
  64071. }
  64072. argument = declaredArguments[i];
  64073. t2 = evaluated.positional;
  64074. t3 = evaluated.named.remove$1(0, argument.name);
  64075. $async$goto = t3 == null ? 7 : 8;
  64076. break;
  64077. case 7:
  64078. // then
  64079. t3 = argument.defaultValue;
  64080. $async$goto = 9;
  64081. return P._asyncAwait(t3 == null ? null : t3.accept$1($async$self), $async$_async_evaluate0$_runBuiltInCallable$3);
  64082. case 9:
  64083. // returning from await.
  64084. t3 = $async$result;
  64085. case 8:
  64086. // join
  64087. t2.push(t3);
  64088. case 5:
  64089. // for update
  64090. ++i;
  64091. // goto for condition
  64092. $async$goto = 4;
  64093. break;
  64094. case 6:
  64095. // after for
  64096. if (overload.restArgument != null) {
  64097. if (evaluated.positional.length > t1) {
  64098. rest = C.JSArray_methods.sublist$1(evaluated.positional, t1);
  64099. C.JSArray_methods.removeRange$2(evaluated.positional, t1, evaluated.positional.length);
  64100. } else
  64101. rest = C.List_empty16;
  64102. t1 = evaluated.named;
  64103. t2 = evaluated.separator === C.ListSeparator_undecided0 ? C.ListSeparator_comma0 : evaluated.separator;
  64104. t3 = type$.Value_2;
  64105. argumentList = new D.SassArgumentList0(H.ConstantMap_ConstantMap$from(t1, type$.String, t3), P.List_List$unmodifiable(rest, t3), t2, false);
  64106. argumentList.SassList$3$brackets0(rest, t2, false);
  64107. evaluated.positional.push(argumentList);
  64108. } else
  64109. argumentList = null;
  64110. result = null;
  64111. $async$handler = 11;
  64112. $async$goto = 14;
  64113. return P._asyncAwait(callback.call$1(evaluated.positional), $async$_async_evaluate0$_runBuiltInCallable$3);
  64114. case 14:
  64115. // returning from await.
  64116. result = $async$result;
  64117. $async$handler = 2;
  64118. // goto after finally
  64119. $async$goto = 13;
  64120. break;
  64121. case 11:
  64122. // catch
  64123. $async$handler = 10;
  64124. $async$exception = $async$currentError;
  64125. t1 = H.unwrapException($async$exception);
  64126. if (type$.SassRuntimeException_2._is(t1))
  64127. throw $async$exception;
  64128. else if (t1 instanceof E.MultiSpanSassScriptException0) {
  64129. error = t1;
  64130. throw H.wrapException(E.MultiSpanSassRuntimeException$0(error.message, nodeWithSpan.get$span(), error.primaryLabel, error.secondarySpans, $async$self._async_evaluate0$_stackTrace$1(nodeWithSpan.get$span())));
  64131. } else if (t1 instanceof E.MultiSpanSassException0) {
  64132. error0 = t1;
  64133. throw H.wrapException(E.MultiSpanSassRuntimeException$0(error0._span_exception$_message, error0.get$span(), error0.primaryLabel, error0.secondarySpans, $async$self._async_evaluate0$_stackTrace$1(error0.get$span())));
  64134. } else {
  64135. error1 = t1;
  64136. message = null;
  64137. try {
  64138. message = H._asStringNullable(J.get$message$x(error1));
  64139. } catch (exception) {
  64140. H.unwrapException($async$exception);
  64141. message = J.toString$0$(error1);
  64142. }
  64143. throw H.wrapException($async$self._async_evaluate0$_exception$2(message, nodeWithSpan.get$span()));
  64144. }
  64145. // goto after finally
  64146. $async$goto = 13;
  64147. break;
  64148. case 10:
  64149. // uncaught
  64150. // goto rethrow
  64151. $async$goto = 2;
  64152. break;
  64153. case 13:
  64154. // after finally
  64155. $async$self._async_evaluate0$_callableNode = oldCallableNode;
  64156. if (argumentList == null) {
  64157. $async$returnValue = result;
  64158. // goto return
  64159. $async$goto = 1;
  64160. break;
  64161. }
  64162. t1 = evaluated.named;
  64163. if (t1.get$isEmpty(t1)) {
  64164. $async$returnValue = result;
  64165. // goto return
  64166. $async$goto = 1;
  64167. break;
  64168. }
  64169. if (argumentList._argument_list$_wereKeywordsAccessed) {
  64170. $async$returnValue = result;
  64171. // goto return
  64172. $async$goto = 1;
  64173. break;
  64174. }
  64175. throw H.wrapException(E.MultiSpanSassRuntimeException$0("No " + B.pluralize0("argument", J.get$length$asx(evaluated.named.get$keys()), null) + " named " + H.S(B.toSentence0(J.map$1$1$ax(evaluated.named.get$keys(), new E._EvaluateVisitor__runBuiltInCallable_closure6(), type$.Object), "or")) + ".", nodeWithSpan.get$span(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([overload.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), $async$self._async_evaluate0$_stackTrace$1(nodeWithSpan.get$span())));
  64176. case 1:
  64177. // return
  64178. return P._asyncReturn($async$returnValue, $async$completer);
  64179. case 2:
  64180. // rethrow
  64181. return P._asyncRethrow($async$currentError, $async$completer);
  64182. }
  64183. });
  64184. return P._asyncStartSync($async$_async_evaluate0$_runBuiltInCallable$3, $async$completer);
  64185. },
  64186. _async_evaluate0$_evaluateArguments$2$trackSpans: function($arguments, trackSpans) {
  64187. return this._evaluateArguments$body$_EvaluateVisitor0($arguments, trackSpans);
  64188. },
  64189. _async_evaluate0$_evaluateArguments$1: function($arguments) {
  64190. return this._async_evaluate0$_evaluateArguments$2$trackSpans($arguments, null);
  64191. },
  64192. _evaluateArguments$body$_EvaluateVisitor0: function($arguments, trackSpans) {
  64193. var $async$goto = 0,
  64194. $async$completer = P._makeAsyncAwaitCompleter(type$._ArgumentResults_2),
  64195. $async$returnValue, $async$self = this, t1, t2, t3, _i, t4, t5, t6, t7, named, t8, positionalNodes, namedNodes, rest, restNodeForSpan, separator, keywordRest, keywordRestNodeForSpan, $async$temp1;
  64196. var $async$_async_evaluate0$_evaluateArguments$2$trackSpans = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64197. if ($async$errorCode === 1)
  64198. return P._asyncRethrow($async$result, $async$completer);
  64199. while (true)
  64200. switch ($async$goto) {
  64201. case 0:
  64202. // Function start
  64203. if (trackSpans == null)
  64204. trackSpans = $async$self._async_evaluate0$_sourceMap;
  64205. t1 = H.setRuntimeTypeInfo([], type$.JSArray_Value_2);
  64206. t2 = $arguments.positional, t3 = t2.length, _i = 0;
  64207. case 3:
  64208. // for condition
  64209. if (!(_i < t3)) {
  64210. // goto after for
  64211. $async$goto = 5;
  64212. break;
  64213. }
  64214. $async$temp1 = t1;
  64215. $async$goto = 6;
  64216. return P._asyncAwait(t2[_i].accept$1($async$self), $async$_async_evaluate0$_evaluateArguments$2$trackSpans);
  64217. case 6:
  64218. // returning from await.
  64219. $async$temp1.push($async$result);
  64220. case 4:
  64221. // for update
  64222. ++_i;
  64223. // goto for condition
  64224. $async$goto = 3;
  64225. break;
  64226. case 5:
  64227. // after for
  64228. t4 = $arguments.named;
  64229. t5 = type$.String;
  64230. t6 = type$.Expression_2;
  64231. t7 = type$.Value_2;
  64232. $async$goto = 7;
  64233. return P._asyncAwait(B.mapMapAsync0(t4, new E._EvaluateVisitor__evaluateArguments_closure8($async$self), t5, t6, t5, t7), $async$_async_evaluate0$_evaluateArguments$2$trackSpans);
  64234. case 7:
  64235. // returning from await.
  64236. named = $async$result;
  64237. if (trackSpans) {
  64238. t8 = H.setRuntimeTypeInfo([], type$.JSArray_AstNode_2);
  64239. for (_i = 0; _i < t3; ++_i)
  64240. t8.push($async$self._async_evaluate0$_expressionNode$1(t2[_i]));
  64241. positionalNodes = t8;
  64242. } else
  64243. positionalNodes = null;
  64244. namedNodes = trackSpans ? Y.mapMap(t4, null, new E._EvaluateVisitor__evaluateArguments_closure9($async$self), t5, t6, t5, type$.AstNode_2) : null;
  64245. t2 = $arguments.rest;
  64246. if (t2 == null) {
  64247. $async$returnValue = E._ArgumentResults$2(t1, named, C.ListSeparator_undecided0, namedNodes, positionalNodes);
  64248. // goto return
  64249. $async$goto = 1;
  64250. break;
  64251. }
  64252. $async$goto = 8;
  64253. return P._asyncAwait(t2.accept$1($async$self), $async$_async_evaluate0$_evaluateArguments$2$trackSpans);
  64254. case 8:
  64255. // returning from await.
  64256. rest = $async$result;
  64257. restNodeForSpan = trackSpans ? $async$self._async_evaluate0$_expressionNode$1(t2) : null;
  64258. if (rest instanceof A.SassMap0) {
  64259. $async$self._async_evaluate0$_addRestMap$1$3(named, rest, t2, t7);
  64260. if (namedNodes != null) {
  64261. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t5, type$.AstNode_2);
  64262. for (t3 = J.get$iterator$ax(rest.contents.get$keys()), t4 = type$.SassString_2; t3.moveNext$0();)
  64263. t2.$indexSet(0, t4._as(t3.get$current(t3)).text, restNodeForSpan);
  64264. namedNodes.addAll$1(0, t2);
  64265. }
  64266. separator = C.ListSeparator_undecided0;
  64267. } else if (rest instanceof D.SassList0) {
  64268. t2 = rest._list1$_contents;
  64269. C.JSArray_methods.addAll$1(t1, t2);
  64270. if (positionalNodes != null)
  64271. C.JSArray_methods.addAll$1(positionalNodes, P.List_List$filled(t2.length, restNodeForSpan, type$.AstNode_2));
  64272. separator = rest.separator;
  64273. if (rest instanceof D.SassArgumentList0) {
  64274. rest._argument_list$_wereKeywordsAccessed = true;
  64275. rest._argument_list$_keywords.forEach$1(0, new E._EvaluateVisitor__evaluateArguments_closure10(named, namedNodes, restNodeForSpan));
  64276. }
  64277. } else {
  64278. t1.push(rest);
  64279. if (positionalNodes != null)
  64280. positionalNodes.push(restNodeForSpan);
  64281. separator = C.ListSeparator_undecided0;
  64282. }
  64283. t2 = $arguments.keywordRest;
  64284. if (t2 == null) {
  64285. $async$returnValue = E._ArgumentResults$2(t1, named, separator, namedNodes, positionalNodes);
  64286. // goto return
  64287. $async$goto = 1;
  64288. break;
  64289. }
  64290. $async$goto = 9;
  64291. return P._asyncAwait(t2.accept$1($async$self), $async$_async_evaluate0$_evaluateArguments$2$trackSpans);
  64292. case 9:
  64293. // returning from await.
  64294. keywordRest = $async$result;
  64295. keywordRestNodeForSpan = trackSpans ? $async$self._async_evaluate0$_expressionNode$1(t2) : null;
  64296. if (keywordRest instanceof A.SassMap0) {
  64297. $async$self._async_evaluate0$_addRestMap$1$3(named, keywordRest, t2, t7);
  64298. if (namedNodes != null) {
  64299. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t5, type$.AstNode_2);
  64300. for (t3 = J.get$iterator$ax(keywordRest.contents.get$keys()), t4 = type$.SassString_2; t3.moveNext$0();)
  64301. t2.$indexSet(0, t4._as(t3.get$current(t3)).text, keywordRestNodeForSpan);
  64302. namedNodes.addAll$1(0, t2);
  64303. }
  64304. $async$returnValue = E._ArgumentResults$2(t1, named, separator, namedNodes, positionalNodes);
  64305. // goto return
  64306. $async$goto = 1;
  64307. break;
  64308. } else
  64309. throw H.wrapException($async$self._async_evaluate0$_exception$2("Variable keyword arguments must be a map (was " + H.S(keywordRest) + ").", t2.get$span()));
  64310. case 1:
  64311. // return
  64312. return P._asyncReturn($async$returnValue, $async$completer);
  64313. }
  64314. });
  64315. return P._asyncStartSync($async$_async_evaluate0$_evaluateArguments$2$trackSpans, $async$completer);
  64316. },
  64317. _async_evaluate0$_evaluateMacroArguments$1: function(invocation) {
  64318. return this._evaluateMacroArguments$body$_EvaluateVisitor0(invocation);
  64319. },
  64320. _evaluateMacroArguments$body$_EvaluateVisitor0: function(invocation) {
  64321. var $async$goto = 0,
  64322. $async$completer = P._makeAsyncAwaitCompleter(type$.Tuple2_of_List_Expression_and_Map_String_Expression_2),
  64323. $async$returnValue, $async$self = this, t3, positional, named, rest, keywordRest, t1, t2;
  64324. var $async$_async_evaluate0$_evaluateMacroArguments$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64325. if ($async$errorCode === 1)
  64326. return P._asyncRethrow($async$result, $async$completer);
  64327. while (true)
  64328. switch ($async$goto) {
  64329. case 0:
  64330. // Function start
  64331. t1 = invocation.$arguments;
  64332. t2 = t1.rest;
  64333. if (t2 == null) {
  64334. $async$returnValue = new S.Tuple2(t1.positional, t1.named, type$.Tuple2_of_List_Expression_and_Map_String_Expression_2);
  64335. // goto return
  64336. $async$goto = 1;
  64337. break;
  64338. }
  64339. t3 = t1.positional;
  64340. positional = H.setRuntimeTypeInfo(t3.slice(0), H._arrayInstanceType(t3)._eval$1("JSArray<1>"));
  64341. t3 = type$.Expression_2;
  64342. named = P.LinkedHashMap_LinkedHashMap$of(t1.named, type$.String, t3);
  64343. $async$goto = 3;
  64344. return P._asyncAwait(t2.accept$1($async$self), $async$_async_evaluate0$_evaluateMacroArguments$1);
  64345. case 3:
  64346. // returning from await.
  64347. rest = $async$result;
  64348. if (rest instanceof A.SassMap0)
  64349. $async$self._async_evaluate0$_addRestMap$1$4(named, rest, invocation, new E._EvaluateVisitor__evaluateMacroArguments_closure11(), t3);
  64350. else if (rest instanceof D.SassList0) {
  64351. t2 = rest._list1$_contents;
  64352. C.JSArray_methods.addAll$1(positional, new H.MappedListIterable(t2, new E._EvaluateVisitor__evaluateMacroArguments_closure12(), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Expression0>")));
  64353. if (rest instanceof D.SassArgumentList0) {
  64354. rest._argument_list$_wereKeywordsAccessed = true;
  64355. rest._argument_list$_keywords.forEach$1(0, new E._EvaluateVisitor__evaluateMacroArguments_closure13(named));
  64356. }
  64357. } else
  64358. positional.push(new F.ValueExpression0(rest, null));
  64359. t1 = t1.keywordRest;
  64360. if (t1 == null) {
  64361. $async$returnValue = new S.Tuple2(positional, named, type$.Tuple2_of_List_Expression_and_Map_String_Expression_2);
  64362. // goto return
  64363. $async$goto = 1;
  64364. break;
  64365. }
  64366. $async$goto = 4;
  64367. return P._asyncAwait(t1.accept$1($async$self), $async$_async_evaluate0$_evaluateMacroArguments$1);
  64368. case 4:
  64369. // returning from await.
  64370. keywordRest = $async$result;
  64371. if (keywordRest instanceof A.SassMap0) {
  64372. $async$self._async_evaluate0$_addRestMap$1$4(named, keywordRest, invocation, new E._EvaluateVisitor__evaluateMacroArguments_closure14(), t3);
  64373. $async$returnValue = new S.Tuple2(positional, named, type$.Tuple2_of_List_Expression_and_Map_String_Expression_2);
  64374. // goto return
  64375. $async$goto = 1;
  64376. break;
  64377. } else
  64378. throw H.wrapException($async$self._async_evaluate0$_exception$2("Variable keyword arguments must be a map (was " + H.S(keywordRest) + ").", invocation.span));
  64379. case 1:
  64380. // return
  64381. return P._asyncReturn($async$returnValue, $async$completer);
  64382. }
  64383. });
  64384. return P._asyncStartSync($async$_async_evaluate0$_evaluateMacroArguments$1, $async$completer);
  64385. },
  64386. _async_evaluate0$_addRestMap$1$4: function(values, map, nodeWithSpan, convert, $T) {
  64387. var t1 = {};
  64388. t1.convert = convert;
  64389. if (convert == null)
  64390. t1.convert = new E._EvaluateVisitor__addRestMap_closure5($T);
  64391. map.contents.forEach$1(0, new E._EvaluateVisitor__addRestMap_closure6(t1, this, values, map, nodeWithSpan));
  64392. },
  64393. _async_evaluate0$_addRestMap$1$3: function(values, map, nodeWithSpan, $T) {
  64394. return this._async_evaluate0$_addRestMap$1$4(values, map, nodeWithSpan, null, $T);
  64395. },
  64396. _async_evaluate0$_verifyArguments$4: function(positional, named, $arguments, nodeWithSpan) {
  64397. return this._async_evaluate0$_addExceptionSpan$2(nodeWithSpan, new E._EvaluateVisitor__verifyArguments_closure2($arguments, positional, named));
  64398. },
  64399. visitSelectorExpression$1: function(node) {
  64400. return this.visitSelectorExpression$body$_EvaluateVisitor0(node);
  64401. },
  64402. visitSelectorExpression$body$_EvaluateVisitor0: function(node) {
  64403. var $async$goto = 0,
  64404. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  64405. $async$returnValue, $async$self = this, t1;
  64406. var $async$visitSelectorExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64407. if ($async$errorCode === 1)
  64408. return P._asyncRethrow($async$result, $async$completer);
  64409. while (true)
  64410. switch ($async$goto) {
  64411. case 0:
  64412. // Function start
  64413. t1 = $async$self._async_evaluate0$_styleRule;
  64414. if (t1 == null) {
  64415. $async$returnValue = C.C_SassNull;
  64416. // goto return
  64417. $async$goto = 1;
  64418. break;
  64419. }
  64420. $async$returnValue = t1.originalSelector.get$asSassList();
  64421. // goto return
  64422. $async$goto = 1;
  64423. break;
  64424. case 1:
  64425. // return
  64426. return P._asyncReturn($async$returnValue, $async$completer);
  64427. }
  64428. });
  64429. return P._asyncStartSync($async$visitSelectorExpression$1, $async$completer);
  64430. },
  64431. visitStringExpression$1: function(node) {
  64432. return this.visitStringExpression$body$_EvaluateVisitor0(node);
  64433. },
  64434. visitStringExpression$body$_EvaluateVisitor0: function(node) {
  64435. var $async$goto = 0,
  64436. $async$completer = P._makeAsyncAwaitCompleter(type$.SassString_2),
  64437. $async$returnValue, $async$self = this, $async$temp1, $async$temp2;
  64438. var $async$visitStringExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64439. if ($async$errorCode === 1)
  64440. return P._asyncRethrow($async$result, $async$completer);
  64441. while (true)
  64442. switch ($async$goto) {
  64443. case 0:
  64444. // Function start
  64445. $async$temp1 = D;
  64446. $async$temp2 = J;
  64447. $async$goto = 3;
  64448. return P._asyncAwait(B.mapAsync0(node.text.contents, new E._EvaluateVisitor_visitStringExpression_closure2($async$self), type$.Object, type$.String), $async$visitStringExpression$1);
  64449. case 3:
  64450. // returning from await.
  64451. $async$returnValue = new $async$temp1.SassString0($async$temp2.join$0$ax($async$result), node.hasQuotes);
  64452. // goto return
  64453. $async$goto = 1;
  64454. break;
  64455. case 1:
  64456. // return
  64457. return P._asyncReturn($async$returnValue, $async$completer);
  64458. }
  64459. });
  64460. return P._asyncStartSync($async$visitStringExpression$1, $async$completer);
  64461. },
  64462. visitCssAtRule$1: function(node) {
  64463. return this.visitCssAtRule$body$_EvaluateVisitor0(node);
  64464. },
  64465. visitCssAtRule$body$_EvaluateVisitor0: function(node) {
  64466. var $async$goto = 0,
  64467. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  64468. $async$returnValue, $async$self = this, t1, t2, wasInKeyframes, wasInUnknownAtRule;
  64469. var $async$visitCssAtRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64470. if ($async$errorCode === 1)
  64471. return P._asyncRethrow($async$result, $async$completer);
  64472. while (true)
  64473. switch ($async$goto) {
  64474. case 0:
  64475. // Function start
  64476. if ($async$self._async_evaluate0$_declarationName != null)
  64477. throw H.wrapException($async$self._async_evaluate0$_exception$2("At-rules may not be used within nested declarations.", node.span));
  64478. if (node.isChildless) {
  64479. t1 = $async$self._async_evaluate0$_parent;
  64480. t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
  64481. t1.addChild$1(new U.ModifiableCssAtRule0(node.name, node.value, true, node.span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode_2), t2));
  64482. $async$returnValue = null;
  64483. // goto return
  64484. $async$goto = 1;
  64485. break;
  64486. }
  64487. wasInKeyframes = $async$self._async_evaluate0$_inKeyframes;
  64488. wasInUnknownAtRule = $async$self._async_evaluate0$_inUnknownAtRule;
  64489. t1 = node.name;
  64490. if (B.unvendor0(t1.get$value(t1)) === "keyframes")
  64491. $async$self._async_evaluate0$_inKeyframes = true;
  64492. else
  64493. $async$self._async_evaluate0$_inUnknownAtRule = true;
  64494. t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
  64495. $async$goto = 3;
  64496. return P._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(new U.ModifiableCssAtRule0(t1, node.value, false, node.span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode_2), t2), new E._EvaluateVisitor_visitCssAtRule_closure5($async$self, node), false, new E._EvaluateVisitor_visitCssAtRule_closure6(), type$.ModifiableCssAtRule_2, type$.Null), $async$visitCssAtRule$1);
  64497. case 3:
  64498. // returning from await.
  64499. $async$self._async_evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
  64500. $async$self._async_evaluate0$_inKeyframes = wasInKeyframes;
  64501. case 1:
  64502. // return
  64503. return P._asyncReturn($async$returnValue, $async$completer);
  64504. }
  64505. });
  64506. return P._asyncStartSync($async$visitCssAtRule$1, $async$completer);
  64507. },
  64508. visitCssComment$1: function(node) {
  64509. return this.visitCssComment$body$_EvaluateVisitor0(node);
  64510. },
  64511. visitCssComment$body$_EvaluateVisitor0: function(node) {
  64512. var $async$goto = 0,
  64513. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  64514. $async$self = this, t1, t2;
  64515. var $async$visitCssComment$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64516. if ($async$errorCode === 1)
  64517. return P._asyncRethrow($async$result, $async$completer);
  64518. while (true)
  64519. switch ($async$goto) {
  64520. case 0:
  64521. // Function start
  64522. t1 = $async$self._async_evaluate0$_parent;
  64523. t2 = $async$self._async_evaluate0$_root;
  64524. if (t1 == t2 && $async$self._async_evaluate0$_endOfImports === J.get$length$asx(t2.children._collection$_source))
  64525. $async$self._async_evaluate0$_endOfImports = $async$self._async_evaluate0$_endOfImports + 1;
  64526. $async$self._async_evaluate0$_parent.addChild$1(new R.ModifiableCssComment0(node.text, node.span));
  64527. // implicit return
  64528. return P._asyncReturn(null, $async$completer);
  64529. }
  64530. });
  64531. return P._asyncStartSync($async$visitCssComment$1, $async$completer);
  64532. },
  64533. visitCssDeclaration$1: function(node) {
  64534. return this.visitCssDeclaration$body$_EvaluateVisitor0(node);
  64535. },
  64536. visitCssDeclaration$body$_EvaluateVisitor0: function(node) {
  64537. var $async$goto = 0,
  64538. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  64539. $async$self = this;
  64540. var $async$visitCssDeclaration$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64541. if ($async$errorCode === 1)
  64542. return P._asyncRethrow($async$result, $async$completer);
  64543. while (true)
  64544. switch ($async$goto) {
  64545. case 0:
  64546. // Function start
  64547. $async$self._async_evaluate0$_parent.addChild$1(L.ModifiableCssDeclaration$0(node.name, node.value, node.span, node.valueSpanForMap));
  64548. // implicit return
  64549. return P._asyncReturn(null, $async$completer);
  64550. }
  64551. });
  64552. return P._asyncStartSync($async$visitCssDeclaration$1, $async$completer);
  64553. },
  64554. visitCssImport$1: function(node) {
  64555. return this.visitCssImport$body$_EvaluateVisitor0(node);
  64556. },
  64557. visitCssImport$body$_EvaluateVisitor0: function(node) {
  64558. var $async$goto = 0,
  64559. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  64560. $async$self = this, modifiableNode, t1, t2;
  64561. var $async$visitCssImport$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64562. if ($async$errorCode === 1)
  64563. return P._asyncRethrow($async$result, $async$completer);
  64564. while (true)
  64565. switch ($async$goto) {
  64566. case 0:
  64567. // Function start
  64568. modifiableNode = F.ModifiableCssImport$0(node.url, node.span, node.media, node.supports);
  64569. t1 = $async$self._async_evaluate0$_parent;
  64570. t2 = $async$self._async_evaluate0$_root;
  64571. if (t1 != t2)
  64572. t1.addChild$1(modifiableNode);
  64573. else if ($async$self._async_evaluate0$_endOfImports === J.get$length$asx(t2.children._collection$_source)) {
  64574. $async$self._async_evaluate0$_root.addChild$1(modifiableNode);
  64575. $async$self._async_evaluate0$_endOfImports = $async$self._async_evaluate0$_endOfImports + 1;
  64576. } else {
  64577. t1 = $async$self._async_evaluate0$_outOfOrderImports;
  64578. (t1 == null ? $async$self._async_evaluate0$_outOfOrderImports = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssImport_2) : t1).push(modifiableNode);
  64579. }
  64580. // implicit return
  64581. return P._asyncReturn(null, $async$completer);
  64582. }
  64583. });
  64584. return P._asyncStartSync($async$visitCssImport$1, $async$completer);
  64585. },
  64586. visitCssKeyframeBlock$1: function(node) {
  64587. return this.visitCssKeyframeBlock$body$_EvaluateVisitor0(node);
  64588. },
  64589. visitCssKeyframeBlock$body$_EvaluateVisitor0: function(node) {
  64590. var $async$goto = 0,
  64591. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  64592. $async$self = this, t1;
  64593. var $async$visitCssKeyframeBlock$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64594. if ($async$errorCode === 1)
  64595. return P._asyncRethrow($async$result, $async$completer);
  64596. while (true)
  64597. switch ($async$goto) {
  64598. case 0:
  64599. // Function start
  64600. t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
  64601. $async$goto = 2;
  64602. return P._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(new U.ModifiableCssKeyframeBlock0(node.selector, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1), new E._EvaluateVisitor_visitCssKeyframeBlock_closure5($async$self, node), false, new E._EvaluateVisitor_visitCssKeyframeBlock_closure6(), type$.ModifiableCssKeyframeBlock_2, type$.Null), $async$visitCssKeyframeBlock$1);
  64603. case 2:
  64604. // returning from await.
  64605. // implicit return
  64606. return P._asyncReturn(null, $async$completer);
  64607. }
  64608. });
  64609. return P._asyncStartSync($async$visitCssKeyframeBlock$1, $async$completer);
  64610. },
  64611. visitCssMediaRule$1: function(node) {
  64612. return this.visitCssMediaRule$body$_EvaluateVisitor0(node);
  64613. },
  64614. visitCssMediaRule$body$_EvaluateVisitor0: function(node) {
  64615. var $async$goto = 0,
  64616. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  64617. $async$returnValue, $async$self = this, t1, mergedQueries;
  64618. var $async$visitCssMediaRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64619. if ($async$errorCode === 1)
  64620. return P._asyncRethrow($async$result, $async$completer);
  64621. while (true)
  64622. switch ($async$goto) {
  64623. case 0:
  64624. // Function start
  64625. if ($async$self._async_evaluate0$_declarationName != null)
  64626. throw H.wrapException($async$self._async_evaluate0$_exception$2("Media rules may not be used within nested declarations.", node.span));
  64627. t1 = $async$self._async_evaluate0$_mediaQueries;
  64628. mergedQueries = t1 == null ? null : $async$self._async_evaluate0$_mergeMediaQueries$2(t1, node.queries);
  64629. t1 = mergedQueries == null;
  64630. if (!t1 && mergedQueries.length === 0) {
  64631. $async$returnValue = null;
  64632. // goto return
  64633. $async$goto = 1;
  64634. break;
  64635. }
  64636. t1 = t1 ? node.queries : mergedQueries;
  64637. $async$goto = 3;
  64638. return P._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(G.ModifiableCssMediaRule$0(t1, node.span), new E._EvaluateVisitor_visitCssMediaRule_closure5($async$self, mergedQueries, node), false, new E._EvaluateVisitor_visitCssMediaRule_closure6(mergedQueries), type$.ModifiableCssMediaRule_2, type$.Null), $async$visitCssMediaRule$1);
  64639. case 3:
  64640. // returning from await.
  64641. case 1:
  64642. // return
  64643. return P._asyncReturn($async$returnValue, $async$completer);
  64644. }
  64645. });
  64646. return P._asyncStartSync($async$visitCssMediaRule$1, $async$completer);
  64647. },
  64648. visitCssStyleRule$1: function(node) {
  64649. return this.visitCssStyleRule$body$_EvaluateVisitor0(node);
  64650. },
  64651. visitCssStyleRule$body$_EvaluateVisitor0: function(node) {
  64652. var $async$goto = 0,
  64653. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  64654. $async$self = this, t1, t2, t3, originalSelector, rule, oldAtRootExcludingStyleRule;
  64655. var $async$visitCssStyleRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64656. if ($async$errorCode === 1)
  64657. return P._asyncRethrow($async$result, $async$completer);
  64658. while (true)
  64659. switch ($async$goto) {
  64660. case 0:
  64661. // Function start
  64662. if ($async$self._async_evaluate0$_declarationName != null)
  64663. throw H.wrapException($async$self._async_evaluate0$_exception$2("Style rules may not be used within nested declarations.", node.span));
  64664. t1 = node.selector;
  64665. t2 = t1.value;
  64666. t3 = $async$self._async_evaluate0$_styleRule;
  64667. t3 = t3 == null ? null : t3.originalSelector;
  64668. originalSelector = t2.resolveParentSelectors$2$implicitParent(t3, !$async$self._async_evaluate0$_atRootExcludingStyleRule);
  64669. rule = X.ModifiableCssStyleRule$0($async$self._async_evaluate0$_extender.addSelector$3(originalSelector, t1.span, $async$self._async_evaluate0$_mediaQueries), node.span, originalSelector);
  64670. oldAtRootExcludingStyleRule = $async$self._async_evaluate0$_atRootExcludingStyleRule;
  64671. $async$self._async_evaluate0$_atRootExcludingStyleRule = false;
  64672. $async$goto = 2;
  64673. return P._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(rule, new E._EvaluateVisitor_visitCssStyleRule_closure5($async$self, rule, node), false, new E._EvaluateVisitor_visitCssStyleRule_closure6(), type$.ModifiableCssStyleRule_2, type$.Null), $async$visitCssStyleRule$1);
  64674. case 2:
  64675. // returning from await.
  64676. $async$self._async_evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  64677. if (!($async$self._async_evaluate0$_styleRule != null && !oldAtRootExcludingStyleRule)) {
  64678. t1 = $async$self._async_evaluate0$_parent.children;
  64679. t1 = !t1.get$isEmpty(t1);
  64680. } else
  64681. t1 = false;
  64682. if (t1) {
  64683. t1 = $async$self._async_evaluate0$_parent.children;
  64684. t1.get$last(t1).isGroupEnd = true;
  64685. }
  64686. // implicit return
  64687. return P._asyncReturn(null, $async$completer);
  64688. }
  64689. });
  64690. return P._asyncStartSync($async$visitCssStyleRule$1, $async$completer);
  64691. },
  64692. visitCssStylesheet$1: function(node) {
  64693. return this.visitCssStylesheet$body$_EvaluateVisitor0(node);
  64694. },
  64695. visitCssStylesheet$body$_EvaluateVisitor0: function(node) {
  64696. var $async$goto = 0,
  64697. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  64698. $async$self = this, t1;
  64699. var $async$visitCssStylesheet$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64700. if ($async$errorCode === 1)
  64701. return P._asyncRethrow($async$result, $async$completer);
  64702. while (true)
  64703. switch ($async$goto) {
  64704. case 0:
  64705. // Function start
  64706. t1 = J.get$iterator$ax(node.get$children());
  64707. case 2:
  64708. // for condition
  64709. if (!t1.moveNext$0()) {
  64710. // goto after for
  64711. $async$goto = 3;
  64712. break;
  64713. }
  64714. $async$goto = 4;
  64715. return P._asyncAwait(t1.get$current(t1).accept$1($async$self), $async$visitCssStylesheet$1);
  64716. case 4:
  64717. // returning from await.
  64718. // goto for condition
  64719. $async$goto = 2;
  64720. break;
  64721. case 3:
  64722. // after for
  64723. // implicit return
  64724. return P._asyncReturn(null, $async$completer);
  64725. }
  64726. });
  64727. return P._asyncStartSync($async$visitCssStylesheet$1, $async$completer);
  64728. },
  64729. visitCssSupportsRule$1: function(node) {
  64730. return this.visitCssSupportsRule$body$_EvaluateVisitor0(node);
  64731. },
  64732. visitCssSupportsRule$body$_EvaluateVisitor0: function(node) {
  64733. var $async$goto = 0,
  64734. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  64735. $async$self = this, t1;
  64736. var $async$visitCssSupportsRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64737. if ($async$errorCode === 1)
  64738. return P._asyncRethrow($async$result, $async$completer);
  64739. while (true)
  64740. switch ($async$goto) {
  64741. case 0:
  64742. // Function start
  64743. if ($async$self._async_evaluate0$_declarationName != null)
  64744. throw H.wrapException($async$self._async_evaluate0$_exception$2("Supports rules may not be used within nested declarations.", node.span));
  64745. t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
  64746. $async$goto = 2;
  64747. return P._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(new B.ModifiableCssSupportsRule0(node.condition, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1), new E._EvaluateVisitor_visitCssSupportsRule_closure5($async$self, node), false, new E._EvaluateVisitor_visitCssSupportsRule_closure6(), type$.ModifiableCssSupportsRule_2, type$.Null), $async$visitCssSupportsRule$1);
  64748. case 2:
  64749. // returning from await.
  64750. // implicit return
  64751. return P._asyncReturn(null, $async$completer);
  64752. }
  64753. });
  64754. return P._asyncStartSync($async$visitCssSupportsRule$1, $async$completer);
  64755. },
  64756. _async_evaluate0$_handleReturn$1$2: function(list, callback) {
  64757. return this._handleReturn$body$_EvaluateVisitor0(list, callback, null);
  64758. },
  64759. _async_evaluate0$_handleReturn$2: function(list, callback) {
  64760. return this._async_evaluate0$_handleReturn$1$2(list, callback, type$.dynamic);
  64761. },
  64762. _handleReturn$body$_EvaluateVisitor0: function(list, callback) {
  64763. var $async$goto = 0,
  64764. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  64765. $async$returnValue, t1, _i, result;
  64766. var $async$_async_evaluate0$_handleReturn$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64767. if ($async$errorCode === 1)
  64768. return P._asyncRethrow($async$result, $async$completer);
  64769. while (true)
  64770. switch ($async$goto) {
  64771. case 0:
  64772. // Function start
  64773. t1 = list.length, _i = 0;
  64774. case 3:
  64775. // for condition
  64776. if (!(_i < list.length)) {
  64777. // goto after for
  64778. $async$goto = 5;
  64779. break;
  64780. }
  64781. $async$goto = 6;
  64782. return P._asyncAwait(callback.call$1(list[_i]), $async$_async_evaluate0$_handleReturn$1$2);
  64783. case 6:
  64784. // returning from await.
  64785. result = $async$result;
  64786. if (result != null) {
  64787. $async$returnValue = result;
  64788. // goto return
  64789. $async$goto = 1;
  64790. break;
  64791. }
  64792. case 4:
  64793. // for update
  64794. list.length === t1 || (0, H.throwConcurrentModificationError)(list), ++_i;
  64795. // goto for condition
  64796. $async$goto = 3;
  64797. break;
  64798. case 5:
  64799. // after for
  64800. $async$returnValue = null;
  64801. // goto return
  64802. $async$goto = 1;
  64803. break;
  64804. case 1:
  64805. // return
  64806. return P._asyncReturn($async$returnValue, $async$completer);
  64807. }
  64808. });
  64809. return P._asyncStartSync($async$_async_evaluate0$_handleReturn$1$2, $async$completer);
  64810. },
  64811. _async_evaluate0$_withEnvironment$1$2: function(environment, callback, $T) {
  64812. return this._withEnvironment$body$_EvaluateVisitor0(environment, callback, $T, $T);
  64813. },
  64814. _withEnvironment$body$_EvaluateVisitor0: function(environment, callback, $T, $async$type) {
  64815. var $async$goto = 0,
  64816. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  64817. $async$returnValue, $async$self = this, result, oldEnvironment;
  64818. var $async$_async_evaluate0$_withEnvironment$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64819. if ($async$errorCode === 1)
  64820. return P._asyncRethrow($async$result, $async$completer);
  64821. while (true)
  64822. switch ($async$goto) {
  64823. case 0:
  64824. // Function start
  64825. oldEnvironment = $async$self._async_evaluate0$_environment;
  64826. $async$self._async_evaluate0$_environment = environment;
  64827. $async$goto = 3;
  64828. return P._asyncAwait(callback.call$0(), $async$_async_evaluate0$_withEnvironment$1$2);
  64829. case 3:
  64830. // returning from await.
  64831. result = $async$result;
  64832. $async$self._async_evaluate0$_environment = oldEnvironment;
  64833. $async$returnValue = result;
  64834. // goto return
  64835. $async$goto = 1;
  64836. break;
  64837. case 1:
  64838. // return
  64839. return P._asyncReturn($async$returnValue, $async$completer);
  64840. }
  64841. });
  64842. return P._asyncStartSync($async$_async_evaluate0$_withEnvironment$1$2, $async$completer);
  64843. },
  64844. _async_evaluate0$_interpolationToValue$3$trim$warnForColor: function(interpolation, trim, warnForColor) {
  64845. return this._interpolationToValue$body$_EvaluateVisitor0(interpolation, trim, warnForColor);
  64846. },
  64847. _async_evaluate0$_interpolationToValue$1: function(interpolation) {
  64848. return this._async_evaluate0$_interpolationToValue$3$trim$warnForColor(interpolation, false, false);
  64849. },
  64850. _async_evaluate0$_interpolationToValue$2$warnForColor: function(interpolation, warnForColor) {
  64851. return this._async_evaluate0$_interpolationToValue$3$trim$warnForColor(interpolation, false, warnForColor);
  64852. },
  64853. _interpolationToValue$body$_EvaluateVisitor0: function(interpolation, trim, warnForColor) {
  64854. var $async$goto = 0,
  64855. $async$completer = P._makeAsyncAwaitCompleter(type$.CssValue_String_2),
  64856. $async$returnValue, $async$self = this, result, t1;
  64857. var $async$_async_evaluate0$_interpolationToValue$3$trim$warnForColor = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64858. if ($async$errorCode === 1)
  64859. return P._asyncRethrow($async$result, $async$completer);
  64860. while (true)
  64861. switch ($async$goto) {
  64862. case 0:
  64863. // Function start
  64864. $async$goto = 3;
  64865. return P._asyncAwait($async$self._async_evaluate0$_performInterpolation$2$warnForColor(interpolation, warnForColor), $async$_async_evaluate0$_interpolationToValue$3$trim$warnForColor);
  64866. case 3:
  64867. // returning from await.
  64868. result = $async$result;
  64869. t1 = trim ? B.trimAscii0(result, true) : result;
  64870. $async$returnValue = new F.CssValue0(t1, interpolation.span, type$.CssValue_String_2);
  64871. // goto return
  64872. $async$goto = 1;
  64873. break;
  64874. case 1:
  64875. // return
  64876. return P._asyncReturn($async$returnValue, $async$completer);
  64877. }
  64878. });
  64879. return P._asyncStartSync($async$_async_evaluate0$_interpolationToValue$3$trim$warnForColor, $async$completer);
  64880. },
  64881. _async_evaluate0$_performInterpolation$2$warnForColor: function(interpolation, warnForColor) {
  64882. return this._performInterpolation$body$_EvaluateVisitor0(interpolation, warnForColor);
  64883. },
  64884. _async_evaluate0$_performInterpolation$1: function(interpolation) {
  64885. return this._async_evaluate0$_performInterpolation$2$warnForColor(interpolation, false);
  64886. },
  64887. _performInterpolation$body$_EvaluateVisitor0: function(interpolation, warnForColor) {
  64888. var $async$goto = 0,
  64889. $async$completer = P._makeAsyncAwaitCompleter(type$.String),
  64890. $async$returnValue, $async$self = this, $async$temp1;
  64891. var $async$_async_evaluate0$_performInterpolation$2$warnForColor = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64892. if ($async$errorCode === 1)
  64893. return P._asyncRethrow($async$result, $async$completer);
  64894. while (true)
  64895. switch ($async$goto) {
  64896. case 0:
  64897. // Function start
  64898. $async$temp1 = J;
  64899. $async$goto = 3;
  64900. return P._asyncAwait(B.mapAsync0(interpolation.contents, new E._EvaluateVisitor__performInterpolation_closure2($async$self, warnForColor), type$.Object, type$.String), $async$_async_evaluate0$_performInterpolation$2$warnForColor);
  64901. case 3:
  64902. // returning from await.
  64903. $async$returnValue = $async$temp1.join$0$ax($async$result);
  64904. // goto return
  64905. $async$goto = 1;
  64906. break;
  64907. case 1:
  64908. // return
  64909. return P._asyncReturn($async$returnValue, $async$completer);
  64910. }
  64911. });
  64912. return P._asyncStartSync($async$_async_evaluate0$_performInterpolation$2$warnForColor, $async$completer);
  64913. },
  64914. _async_evaluate0$_evaluateToCss$2$quote: function(expression, quote) {
  64915. return this._evaluateToCss$body$_EvaluateVisitor0(expression, quote);
  64916. },
  64917. _async_evaluate0$_evaluateToCss$1: function(expression) {
  64918. return this._async_evaluate0$_evaluateToCss$2$quote(expression, true);
  64919. },
  64920. _evaluateToCss$body$_EvaluateVisitor0: function(expression, quote) {
  64921. var $async$goto = 0,
  64922. $async$completer = P._makeAsyncAwaitCompleter(type$.String),
  64923. $async$returnValue, $async$self = this;
  64924. var $async$_async_evaluate0$_evaluateToCss$2$quote = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64925. if ($async$errorCode === 1)
  64926. return P._asyncRethrow($async$result, $async$completer);
  64927. while (true)
  64928. switch ($async$goto) {
  64929. case 0:
  64930. // Function start
  64931. $async$goto = 3;
  64932. return P._asyncAwait(expression.accept$1($async$self), $async$_async_evaluate0$_evaluateToCss$2$quote);
  64933. case 3:
  64934. // returning from await.
  64935. $async$returnValue = $async$self._async_evaluate0$_serialize$3$quote($async$result, expression, quote);
  64936. // goto return
  64937. $async$goto = 1;
  64938. break;
  64939. case 1:
  64940. // return
  64941. return P._asyncReturn($async$returnValue, $async$completer);
  64942. }
  64943. });
  64944. return P._asyncStartSync($async$_async_evaluate0$_evaluateToCss$2$quote, $async$completer);
  64945. },
  64946. _async_evaluate0$_serialize$3$quote: function(value, nodeWithSpan, quote) {
  64947. return this._async_evaluate0$_addExceptionSpan$2(nodeWithSpan, new E._EvaluateVisitor__serialize_closure2(value, quote));
  64948. },
  64949. _async_evaluate0$_serialize$2: function(value, nodeWithSpan) {
  64950. return this._async_evaluate0$_serialize$3$quote(value, nodeWithSpan, true);
  64951. },
  64952. _async_evaluate0$_expressionNode$1: function(expression) {
  64953. var t1;
  64954. if (!this._async_evaluate0$_sourceMap)
  64955. return null;
  64956. if (expression instanceof S.VariableExpression0) {
  64957. t1 = this._async_evaluate0$_environment.getVariableNode$2$namespace(expression.name, expression.namespace);
  64958. return t1 == null ? expression : t1;
  64959. } else
  64960. return expression;
  64961. },
  64962. _async_evaluate0$_withParent$2$4$scopeWhen$through: function(node, callback, scopeWhen, through, $S, $T) {
  64963. return this._withParent$body$_EvaluateVisitor0(node, callback, scopeWhen, through, $S, $T, $T);
  64964. },
  64965. _async_evaluate0$_withParent$2$2: function(node, callback, $S, $T) {
  64966. return this._async_evaluate0$_withParent$2$4$scopeWhen$through(node, callback, true, null, $S, $T);
  64967. },
  64968. _async_evaluate0$_withParent$2$3$scopeWhen: function(node, callback, scopeWhen, $S, $T) {
  64969. return this._async_evaluate0$_withParent$2$4$scopeWhen$through(node, callback, scopeWhen, null, $S, $T);
  64970. },
  64971. _withParent$body$_EvaluateVisitor0: function(node, callback, scopeWhen, through, $S, $T, $async$type) {
  64972. var $async$goto = 0,
  64973. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  64974. $async$returnValue, $async$self = this, oldParent, result;
  64975. var $async$_async_evaluate0$_withParent$2$4$scopeWhen$through = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64976. if ($async$errorCode === 1)
  64977. return P._asyncRethrow($async$result, $async$completer);
  64978. while (true)
  64979. switch ($async$goto) {
  64980. case 0:
  64981. // Function start
  64982. $async$self._async_evaluate0$_addChild$2$through(node, through);
  64983. oldParent = $async$self._async_evaluate0$_parent;
  64984. $async$self._async_evaluate0$_parent = node;
  64985. $async$goto = 3;
  64986. return P._asyncAwait($async$self._async_evaluate0$_environment.scope$1$2$when(callback, scopeWhen, $T), $async$_async_evaluate0$_withParent$2$4$scopeWhen$through);
  64987. case 3:
  64988. // returning from await.
  64989. result = $async$result;
  64990. $async$self._async_evaluate0$_parent = oldParent;
  64991. $async$returnValue = result;
  64992. // goto return
  64993. $async$goto = 1;
  64994. break;
  64995. case 1:
  64996. // return
  64997. return P._asyncReturn($async$returnValue, $async$completer);
  64998. }
  64999. });
  65000. return P._asyncStartSync($async$_async_evaluate0$_withParent$2$4$scopeWhen$through, $async$completer);
  65001. },
  65002. _async_evaluate0$_addChild$2$through: function(node, through) {
  65003. var grandparent,
  65004. $parent = this._async_evaluate0$_parent;
  65005. if (through != null) {
  65006. for (; through.call$1($parent);)
  65007. $parent = $parent._node2$_parent;
  65008. if ($parent.get$hasFollowingSibling()) {
  65009. grandparent = $parent._node2$_parent;
  65010. $parent = $parent.copyWithoutChildren$0();
  65011. grandparent.addChild$1($parent);
  65012. }
  65013. }
  65014. $parent.addChild$1(node);
  65015. },
  65016. _async_evaluate0$_addChild$1: function(node) {
  65017. return this._async_evaluate0$_addChild$2$through(node, null);
  65018. },
  65019. _async_evaluate0$_withStyleRule$1$2: function(rule, callback, $T) {
  65020. return this._withStyleRule$body$_EvaluateVisitor0(rule, callback, $T, $T);
  65021. },
  65022. _withStyleRule$body$_EvaluateVisitor0: function(rule, callback, $T, $async$type) {
  65023. var $async$goto = 0,
  65024. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  65025. $async$returnValue, $async$self = this, result, oldRule;
  65026. var $async$_async_evaluate0$_withStyleRule$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65027. if ($async$errorCode === 1)
  65028. return P._asyncRethrow($async$result, $async$completer);
  65029. while (true)
  65030. switch ($async$goto) {
  65031. case 0:
  65032. // Function start
  65033. oldRule = $async$self._async_evaluate0$_styleRule;
  65034. $async$self._async_evaluate0$_styleRule = rule;
  65035. $async$goto = 3;
  65036. return P._asyncAwait(callback.call$0(), $async$_async_evaluate0$_withStyleRule$1$2);
  65037. case 3:
  65038. // returning from await.
  65039. result = $async$result;
  65040. $async$self._async_evaluate0$_styleRule = oldRule;
  65041. $async$returnValue = result;
  65042. // goto return
  65043. $async$goto = 1;
  65044. break;
  65045. case 1:
  65046. // return
  65047. return P._asyncReturn($async$returnValue, $async$completer);
  65048. }
  65049. });
  65050. return P._asyncStartSync($async$_async_evaluate0$_withStyleRule$1$2, $async$completer);
  65051. },
  65052. _async_evaluate0$_withMediaQueries$1$2: function(queries, callback, $T) {
  65053. return this._withMediaQueries$body$_EvaluateVisitor0(queries, callback, $T, $T);
  65054. },
  65055. _withMediaQueries$body$_EvaluateVisitor0: function(queries, callback, $T, $async$type) {
  65056. var $async$goto = 0,
  65057. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  65058. $async$returnValue, $async$self = this, result, oldMediaQueries;
  65059. var $async$_async_evaluate0$_withMediaQueries$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65060. if ($async$errorCode === 1)
  65061. return P._asyncRethrow($async$result, $async$completer);
  65062. while (true)
  65063. switch ($async$goto) {
  65064. case 0:
  65065. // Function start
  65066. oldMediaQueries = $async$self._async_evaluate0$_mediaQueries;
  65067. $async$self._async_evaluate0$_mediaQueries = queries;
  65068. $async$goto = 3;
  65069. return P._asyncAwait(callback.call$0(), $async$_async_evaluate0$_withMediaQueries$1$2);
  65070. case 3:
  65071. // returning from await.
  65072. result = $async$result;
  65073. $async$self._async_evaluate0$_mediaQueries = oldMediaQueries;
  65074. $async$returnValue = result;
  65075. // goto return
  65076. $async$goto = 1;
  65077. break;
  65078. case 1:
  65079. // return
  65080. return P._asyncReturn($async$returnValue, $async$completer);
  65081. }
  65082. });
  65083. return P._asyncStartSync($async$_async_evaluate0$_withMediaQueries$1$2, $async$completer);
  65084. },
  65085. _async_evaluate0$_withStackFrame$1$3: function(member, nodeWithSpan, callback, $T) {
  65086. return this._withStackFrame$body$_EvaluateVisitor0(member, nodeWithSpan, callback, $T, $T);
  65087. },
  65088. _withStackFrame$body$_EvaluateVisitor0: function(member, nodeWithSpan, callback, $T, $async$type) {
  65089. var $async$goto = 0,
  65090. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  65091. $async$returnValue, $async$self = this, oldMember, result, t1;
  65092. var $async$_async_evaluate0$_withStackFrame$1$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65093. if ($async$errorCode === 1)
  65094. return P._asyncRethrow($async$result, $async$completer);
  65095. while (true)
  65096. switch ($async$goto) {
  65097. case 0:
  65098. // Function start
  65099. t1 = $async$self._async_evaluate0$_stack;
  65100. t1.push(new S.Tuple2($async$self._async_evaluate0$_member, nodeWithSpan, type$.Tuple2_String_AstNode_2));
  65101. oldMember = $async$self._async_evaluate0$_member;
  65102. $async$self._async_evaluate0$_member = member;
  65103. $async$goto = 3;
  65104. return P._asyncAwait(callback.call$0(), $async$_async_evaluate0$_withStackFrame$1$3);
  65105. case 3:
  65106. // returning from await.
  65107. result = $async$result;
  65108. $async$self._async_evaluate0$_member = oldMember;
  65109. t1.pop();
  65110. $async$returnValue = result;
  65111. // goto return
  65112. $async$goto = 1;
  65113. break;
  65114. case 1:
  65115. // return
  65116. return P._asyncReturn($async$returnValue, $async$completer);
  65117. }
  65118. });
  65119. return P._asyncStartSync($async$_async_evaluate0$_withStackFrame$1$3, $async$completer);
  65120. },
  65121. _async_evaluate0$_stackFrame$2: function(member, span) {
  65122. var url = span.file.url;
  65123. return B.frameForSpan0(span, member, url != null && this._async_evaluate0$_importCache != null ? this._async_evaluate0$_importCache.humanize$1(url) : url);
  65124. },
  65125. _async_evaluate0$_stackTrace$1: function(span) {
  65126. var t2, _this = this,
  65127. t1 = H.setRuntimeTypeInfo([], type$.JSArray_Frame);
  65128. for (t2 = _this._async_evaluate0$_stack, t2 = new H.MappedListIterable(t2, new E._EvaluateVisitor__stackTrace_closure2(_this), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Frame>")), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
  65129. t1.push(t2.__internal$_current);
  65130. if (span != null)
  65131. t1.push(_this._async_evaluate0$_stackFrame$2(_this._async_evaluate0$_member, span));
  65132. return new Y.Trace(P.List_List$unmodifiable(new H.ReversedListIterable(t1, type$.ReversedListIterable_Frame), type$.Frame), new P._StringStackTrace(null));
  65133. },
  65134. _async_evaluate0$_stackTrace$0: function() {
  65135. return this._async_evaluate0$_stackTrace$1(null);
  65136. },
  65137. _async_evaluate0$_warn$3$deprecation: function(message, span, deprecation) {
  65138. return this._async_evaluate0$_logger.warn$4$deprecation$span$trace(message, deprecation, span, this._async_evaluate0$_stackTrace$1(span));
  65139. },
  65140. _async_evaluate0$_warn$2: function(message, span) {
  65141. return this._async_evaluate0$_warn$3$deprecation(message, span, false);
  65142. },
  65143. _async_evaluate0$_exception$2: function(message, span) {
  65144. var t1 = span == null ? C.JSArray_methods.get$last(this._async_evaluate0$_stack).item2.get$span() : span;
  65145. return new E.SassRuntimeException0(this._async_evaluate0$_stackTrace$1(span), message, t1);
  65146. },
  65147. _async_evaluate0$_exception$1: function(message) {
  65148. return this._async_evaluate0$_exception$2(message, null);
  65149. },
  65150. _async_evaluate0$_multiSpanException$3: function(message, primaryLabel, secondaryLabels) {
  65151. var t1 = C.JSArray_methods.get$last(this._async_evaluate0$_stack).item2.get$span();
  65152. return new E.MultiSpanSassRuntimeException0(this._async_evaluate0$_stackTrace$0(), primaryLabel, H.ConstantMap_ConstantMap$from(secondaryLabels, type$.FileSpan, type$.String), message, t1);
  65153. },
  65154. _async_evaluate0$_adjustParseError$1$2: function(nodeWithSpan, callback) {
  65155. var error, errorText, span, syntheticFile, syntheticSpan, t1, exception, t2, t3, t4, t5, _null = null;
  65156. try {
  65157. t1 = callback.call$0();
  65158. return t1;
  65159. } catch (exception) {
  65160. t1 = H.unwrapException(exception);
  65161. if (t1 instanceof E.SassFormatException0) {
  65162. error = t1;
  65163. t1 = error;
  65164. errorText = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(G.SourceSpanException.prototype.get$span.call(t1).file._decodedChars, 0, _null), 0, _null);
  65165. span = nodeWithSpan.get$span();
  65166. t1 = span;
  65167. t2 = span;
  65168. syntheticFile = C.JSString_methods.replaceRange$3(P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(span.file._decodedChars, 0, _null), 0, _null), Y.FileLocation$_(t1.file, t1._file$_start).offset, Y.FileLocation$_(t2.file, t2._end).offset, errorText);
  65169. t2 = syntheticFile;
  65170. t1 = span.file.url;
  65171. t2.toString;
  65172. t2 = new H.CodeUnits(t2);
  65173. t3 = H.setRuntimeTypeInfo([0], type$.JSArray_int);
  65174. t3 = new Y.SourceFile(t1, t3, new Uint32Array(H._ensureNativeList(t2.toList$0(t2))));
  65175. t3.SourceFile$decoded$2$url(t2, t1);
  65176. t1 = span;
  65177. t1 = Y.FileLocation$_(t1.file, t1._file$_start);
  65178. t2 = error;
  65179. t2 = G.SourceSpanException.prototype.get$span.call(t2);
  65180. t2 = Y.FileLocation$_(t2.file, t2._file$_start);
  65181. t4 = span;
  65182. t4 = Y.FileLocation$_(t4.file, t4._file$_start);
  65183. t5 = error;
  65184. t5 = G.SourceSpanException.prototype.get$span.call(t5);
  65185. syntheticSpan = t3.span$2(t1.offset + t2.offset, t4.offset + Y.FileLocation$_(t5.file, t5._end).offset);
  65186. throw H.wrapException(this._async_evaluate0$_exception$2(error._span_exception$_message, syntheticSpan));
  65187. } else
  65188. throw exception;
  65189. }
  65190. },
  65191. _async_evaluate0$_adjustParseError$2: function(nodeWithSpan, callback) {
  65192. return this._async_evaluate0$_adjustParseError$1$2(nodeWithSpan, callback, type$.dynamic);
  65193. },
  65194. _async_evaluate0$_addExceptionSpan$1$2: function(nodeWithSpan, callback) {
  65195. var error, error0, t1, exception;
  65196. try {
  65197. t1 = callback.call$0();
  65198. return t1;
  65199. } catch (exception) {
  65200. t1 = H.unwrapException(exception);
  65201. if (t1 instanceof E.MultiSpanSassScriptException0) {
  65202. error = t1;
  65203. throw H.wrapException(E.MultiSpanSassRuntimeException$0(error.message, nodeWithSpan.get$span(), error.primaryLabel, error.secondarySpans, this._async_evaluate0$_stackTrace$1(nodeWithSpan.get$span())));
  65204. } else if (t1 instanceof E.SassScriptException0) {
  65205. error0 = t1;
  65206. throw H.wrapException(this._async_evaluate0$_exception$2(error0.message, nodeWithSpan.get$span()));
  65207. } else
  65208. throw exception;
  65209. }
  65210. },
  65211. _async_evaluate0$_addExceptionSpan$2: function(nodeWithSpan, callback) {
  65212. return this._async_evaluate0$_addExceptionSpan$1$2(nodeWithSpan, callback, type$.dynamic);
  65213. },
  65214. _async_evaluate0$_addExceptionSpanAsync$1$2: function(nodeWithSpan, callback, $T) {
  65215. return this._addExceptionSpanAsync$body$_EvaluateVisitor0(nodeWithSpan, callback, $T, $T);
  65216. },
  65217. _addExceptionSpanAsync$body$_EvaluateVisitor0: function(nodeWithSpan, callback, $T, $async$type) {
  65218. var $async$goto = 0,
  65219. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  65220. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, error, error0, t1, exception, $async$exception;
  65221. var $async$_async_evaluate0$_addExceptionSpanAsync$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65222. if ($async$errorCode === 1) {
  65223. $async$currentError = $async$result;
  65224. $async$goto = $async$handler;
  65225. }
  65226. while (true)
  65227. switch ($async$goto) {
  65228. case 0:
  65229. // Function start
  65230. $async$handler = 4;
  65231. $async$goto = 7;
  65232. return P._asyncAwait(callback.call$0(), $async$_async_evaluate0$_addExceptionSpanAsync$1$2);
  65233. case 7:
  65234. // returning from await.
  65235. t1 = $async$result;
  65236. $async$returnValue = t1;
  65237. // goto return
  65238. $async$goto = 1;
  65239. break;
  65240. $async$handler = 2;
  65241. // goto after finally
  65242. $async$goto = 6;
  65243. break;
  65244. case 4:
  65245. // catch
  65246. $async$handler = 3;
  65247. $async$exception = $async$currentError;
  65248. t1 = H.unwrapException($async$exception);
  65249. if (t1 instanceof E.MultiSpanSassScriptException0) {
  65250. error = t1;
  65251. throw H.wrapException(E.MultiSpanSassRuntimeException$0(error.message, nodeWithSpan.get$span(), error.primaryLabel, error.secondarySpans, $async$self._async_evaluate0$_stackTrace$1(nodeWithSpan.get$span())));
  65252. } else if (t1 instanceof E.SassScriptException0) {
  65253. error0 = t1;
  65254. throw H.wrapException($async$self._async_evaluate0$_exception$2(error0.message, nodeWithSpan.get$span()));
  65255. } else
  65256. throw $async$exception;
  65257. // goto after finally
  65258. $async$goto = 6;
  65259. break;
  65260. case 3:
  65261. // uncaught
  65262. // goto rethrow
  65263. $async$goto = 2;
  65264. break;
  65265. case 6:
  65266. // after finally
  65267. case 1:
  65268. // return
  65269. return P._asyncReturn($async$returnValue, $async$completer);
  65270. case 2:
  65271. // rethrow
  65272. return P._asyncRethrow($async$currentError, $async$completer);
  65273. }
  65274. });
  65275. return P._asyncStartSync($async$_async_evaluate0$_addExceptionSpanAsync$1$2, $async$completer);
  65276. },
  65277. _async_evaluate0$_addErrorSpan$1$2: function(nodeWithSpan, callback, $T) {
  65278. return this._addErrorSpan$body$_EvaluateVisitor0(nodeWithSpan, callback, $T, $T);
  65279. },
  65280. _addErrorSpan$body$_EvaluateVisitor0: function(nodeWithSpan, callback, $T, $async$type) {
  65281. var $async$goto = 0,
  65282. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  65283. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, error, t1, exception, $async$exception;
  65284. var $async$_async_evaluate0$_addErrorSpan$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65285. if ($async$errorCode === 1) {
  65286. $async$currentError = $async$result;
  65287. $async$goto = $async$handler;
  65288. }
  65289. while (true)
  65290. switch ($async$goto) {
  65291. case 0:
  65292. // Function start
  65293. $async$handler = 4;
  65294. $async$goto = 7;
  65295. return P._asyncAwait(callback.call$0(), $async$_async_evaluate0$_addErrorSpan$1$2);
  65296. case 7:
  65297. // returning from await.
  65298. t1 = $async$result;
  65299. $async$returnValue = t1;
  65300. // goto return
  65301. $async$goto = 1;
  65302. break;
  65303. $async$handler = 2;
  65304. // goto after finally
  65305. $async$goto = 6;
  65306. break;
  65307. case 4:
  65308. // catch
  65309. $async$handler = 3;
  65310. $async$exception = $async$currentError;
  65311. t1 = H.unwrapException($async$exception);
  65312. if (type$.SassRuntimeException_2._is(t1)) {
  65313. error = t1;
  65314. t1 = error.get$span();
  65315. if (!C.JSString_methods.startsWith$1(P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, null), "@error"))
  65316. throw $async$exception;
  65317. throw H.wrapException(E.SassRuntimeException$0(error._span_exception$_message, nodeWithSpan.get$span(), $async$self._async_evaluate0$_stackTrace$0()));
  65318. } else
  65319. throw $async$exception;
  65320. // goto after finally
  65321. $async$goto = 6;
  65322. break;
  65323. case 3:
  65324. // uncaught
  65325. // goto rethrow
  65326. $async$goto = 2;
  65327. break;
  65328. case 6:
  65329. // after finally
  65330. case 1:
  65331. // return
  65332. return P._asyncReturn($async$returnValue, $async$completer);
  65333. case 2:
  65334. // rethrow
  65335. return P._asyncRethrow($async$currentError, $async$completer);
  65336. }
  65337. });
  65338. return P._asyncStartSync($async$_async_evaluate0$_addErrorSpan$1$2, $async$completer);
  65339. }
  65340. };
  65341. E._EvaluateVisitor_closure29.prototype = {
  65342. call$1: function($arguments) {
  65343. var module, t2,
  65344. t1 = J.getInterceptor$asx($arguments),
  65345. variable = t1.$index($arguments, 0).assertString$1("name");
  65346. t1 = t1.$index($arguments, 1).get$realNull();
  65347. module = t1 == null ? null : t1.assertString$1("module");
  65348. t1 = this.$this._async_evaluate0$_environment;
  65349. t2 = variable.text;
  65350. t2.toString;
  65351. t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
  65352. return t1.globalVariableExists$2$namespace(t2, module == null ? null : module.text) ? C.SassBoolean_true : C.SassBoolean_false;
  65353. },
  65354. $signature: 15
  65355. };
  65356. E._EvaluateVisitor_closure30.prototype = {
  65357. call$1: function($arguments) {
  65358. var variable = J.$index$asx($arguments, 0).assertString$1("name"),
  65359. t1 = this.$this._async_evaluate0$_environment,
  65360. t2 = variable.text;
  65361. t2.toString;
  65362. return t1.getVariable$1(H.stringReplaceAllUnchecked(t2, "_", "-")) != null ? C.SassBoolean_true : C.SassBoolean_false;
  65363. },
  65364. $signature: 15
  65365. };
  65366. E._EvaluateVisitor_closure31.prototype = {
  65367. call$1: function($arguments) {
  65368. var module, t2, t3, t4,
  65369. t1 = J.getInterceptor$asx($arguments),
  65370. variable = t1.$index($arguments, 0).assertString$1("name");
  65371. t1 = t1.$index($arguments, 1).get$realNull();
  65372. module = t1 == null ? null : t1.assertString$1("module");
  65373. t1 = this.$this;
  65374. t2 = t1._async_evaluate0$_environment;
  65375. t3 = variable.text;
  65376. t3.toString;
  65377. t4 = H.stringReplaceAllUnchecked(t3, "_", "-");
  65378. return t2.getFunction$2$namespace(t4, module == null ? null : module.text) != null || t1._async_evaluate0$_builtInFunctions.containsKey$1(t3) ? C.SassBoolean_true : C.SassBoolean_false;
  65379. },
  65380. $signature: 15
  65381. };
  65382. E._EvaluateVisitor_closure32.prototype = {
  65383. call$1: function($arguments) {
  65384. var module, t2,
  65385. t1 = J.getInterceptor$asx($arguments),
  65386. variable = t1.$index($arguments, 0).assertString$1("name");
  65387. t1 = t1.$index($arguments, 1).get$realNull();
  65388. module = t1 == null ? null : t1.assertString$1("module");
  65389. t1 = this.$this._async_evaluate0$_environment;
  65390. t2 = variable.text;
  65391. t2.toString;
  65392. t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
  65393. return t1.getMixin$2$namespace(t2, module == null ? null : module.text) != null ? C.SassBoolean_true : C.SassBoolean_false;
  65394. },
  65395. $signature: 15
  65396. };
  65397. E._EvaluateVisitor_closure33.prototype = {
  65398. call$1: function($arguments) {
  65399. var t1 = this.$this._async_evaluate0$_environment;
  65400. if (!t1._async_environment0$_inMixin)
  65401. throw H.wrapException(E.SassScriptException$0("content-exists() may only be called within a mixin."));
  65402. return t1._async_environment0$_content != null ? C.SassBoolean_true : C.SassBoolean_false;
  65403. },
  65404. $signature: 15
  65405. };
  65406. E._EvaluateVisitor_closure34.prototype = {
  65407. call$1: function($arguments) {
  65408. var t2, t3, t4,
  65409. t1 = J.$index$asx($arguments, 0).assertString$1("module").text,
  65410. module = this.$this._async_evaluate0$_environment._async_environment0$_modules.$index(0, t1);
  65411. if (module == null)
  65412. throw H.wrapException('There is no module with namespace "' + H.S(t1) + '".');
  65413. t1 = type$.Value_2;
  65414. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  65415. for (t3 = module.get$variables().get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  65416. t4 = t3.get$current(t3);
  65417. t2.$indexSet(0, new D.SassString0(t4.key, true), t4.value);
  65418. }
  65419. return new A.SassMap0(H.ConstantMap_ConstantMap$from(t2, t1, t1));
  65420. },
  65421. $signature: 29
  65422. };
  65423. E._EvaluateVisitor_closure35.prototype = {
  65424. call$1: function($arguments) {
  65425. var t2, t3, t4,
  65426. t1 = J.$index$asx($arguments, 0).assertString$1("module").text,
  65427. module = this.$this._async_evaluate0$_environment._async_environment0$_modules.$index(0, t1);
  65428. if (module == null)
  65429. throw H.wrapException('There is no module with namespace "' + H.S(t1) + '".');
  65430. t1 = type$.Value_2;
  65431. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  65432. for (t3 = module.get$functions(module).get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  65433. t4 = t3.get$current(t3);
  65434. t2.$indexSet(0, new D.SassString0(t4.key, true), new F.SassFunction0(t4.value));
  65435. }
  65436. return new A.SassMap0(H.ConstantMap_ConstantMap$from(t2, t1, t1));
  65437. },
  65438. $signature: 29
  65439. };
  65440. E._EvaluateVisitor_closure36.prototype = {
  65441. call$1: function($arguments) {
  65442. var module, callable,
  65443. t1 = J.getInterceptor$asx($arguments),
  65444. $name = t1.$index($arguments, 0).assertString$1("name"),
  65445. css = t1.$index($arguments, 1).get$isTruthy();
  65446. t1 = t1.$index($arguments, 2).get$realNull();
  65447. module = t1 == null ? null : t1.assertString$1("module");
  65448. if (css && module != null)
  65449. throw H.wrapException("$css and $module may not both be passed at once.");
  65450. if (css)
  65451. callable = new L.PlainCssCallable0($name.text);
  65452. else {
  65453. t1 = this.$this;
  65454. callable = t1._async_evaluate0$_addExceptionSpan$2(t1._async_evaluate0$_callableNode, new E._EvaluateVisitor__closure18(t1, $name, module));
  65455. }
  65456. if (callable != null)
  65457. return new F.SassFunction0(callable);
  65458. throw H.wrapException("Function not found: " + $name.toString$0(0));
  65459. },
  65460. $signature: 80
  65461. };
  65462. E._EvaluateVisitor__closure18.prototype = {
  65463. call$0: function() {
  65464. var t2,
  65465. t1 = this.name.text;
  65466. t1.toString;
  65467. t1 = H.stringReplaceAllUnchecked(t1, "_", "-");
  65468. t2 = this.module;
  65469. t2 = t2 == null ? null : t2.text;
  65470. return this.$this._async_evaluate0$_getFunction$2$namespace(t1, t2);
  65471. },
  65472. $signature: 49
  65473. };
  65474. E._EvaluateVisitor_closure37.prototype = {
  65475. call$1: function($arguments) {
  65476. return this.$call$body$_EvaluateVisitor_closure2($arguments);
  65477. },
  65478. $call$body$_EvaluateVisitor_closure2: function($arguments) {
  65479. var $async$goto = 0,
  65480. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  65481. $async$returnValue, $async$self = this, t2, t3, t4, t5, t6, t7, invocation, callable, t1, $function, args;
  65482. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65483. if ($async$errorCode === 1)
  65484. return P._asyncRethrow($async$result, $async$completer);
  65485. while (true)
  65486. switch ($async$goto) {
  65487. case 0:
  65488. // Function start
  65489. t1 = J.getInterceptor$asx($arguments);
  65490. $function = t1.$index($arguments, 0);
  65491. args = type$.SassArgumentList_2._as(t1.$index($arguments, 1));
  65492. t1 = H.setRuntimeTypeInfo([], type$.JSArray_Expression_2);
  65493. t2 = type$.String;
  65494. t3 = $async$self.$this;
  65495. t4 = t3._async_evaluate0$_callableNode.get$span();
  65496. t5 = t3._async_evaluate0$_callableNode.get$span();
  65497. args._argument_list$_wereKeywordsAccessed = true;
  65498. t6 = args._argument_list$_keywords;
  65499. if (t6.get$isEmpty(t6))
  65500. t6 = null;
  65501. else {
  65502. args._argument_list$_wereKeywordsAccessed = true;
  65503. t7 = type$.Value_2;
  65504. t7 = new F.ValueExpression0(new A.SassMap0(H.ConstantMap_ConstantMap$from(Y.mapMap(t6, new E._EvaluateVisitor__closure16(), new E._EvaluateVisitor__closure17(), t2, t7, t7, t7), t7, t7)), t3._async_evaluate0$_callableNode.get$span());
  65505. t6 = t7;
  65506. }
  65507. invocation = X.ArgumentInvocation$0(t1, P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.Expression_2), t4, t6, new F.ValueExpression0(args, t5));
  65508. $async$goto = $function instanceof D.SassString0 ? 3 : 4;
  65509. break;
  65510. case 3:
  65511. // then
  65512. N.warn0("Passing a string to call() is deprecated and will be illegal\nin Dart Sass 2.0.0. Use call(get-function(" + $function.toString$0(0) + ")) instead.", true);
  65513. $async$goto = 5;
  65514. return P._asyncAwait(t3.visitFunctionExpression$1(new F.FunctionExpression0(null, X.Interpolation$0([$function.text], t3._async_evaluate0$_callableNode.get$span()), invocation, t3._async_evaluate0$_callableNode.get$span())), $async$call$1);
  65515. case 5:
  65516. // returning from await.
  65517. $async$returnValue = $async$result;
  65518. // goto return
  65519. $async$goto = 1;
  65520. break;
  65521. case 4:
  65522. // join
  65523. callable = $function.assertFunction$1("function").callable;
  65524. $async$goto = type$.AsyncCallable_2._is(callable) ? 6 : 8;
  65525. break;
  65526. case 6:
  65527. // then
  65528. $async$goto = 9;
  65529. return P._asyncAwait(t3._async_evaluate0$_runFunctionCallable$3(invocation, callable, t3._async_evaluate0$_callableNode), $async$call$1);
  65530. case 9:
  65531. // returning from await.
  65532. $async$returnValue = $async$result;
  65533. // goto return
  65534. $async$goto = 1;
  65535. break;
  65536. // goto join
  65537. $async$goto = 7;
  65538. break;
  65539. case 8:
  65540. // else
  65541. throw H.wrapException(E.SassScriptException$0("The function " + H.S(callable.get$name()) + " is asynchronous.\nThis is probably caused by a bug in a Sass plugin."));
  65542. case 7:
  65543. // join
  65544. case 1:
  65545. // return
  65546. return P._asyncReturn($async$returnValue, $async$completer);
  65547. }
  65548. });
  65549. return P._asyncStartSync($async$call$1, $async$completer);
  65550. }
  65551. };
  65552. E._EvaluateVisitor__closure16.prototype = {
  65553. call$2: function(key, _) {
  65554. return new D.SassString0(key, false);
  65555. }
  65556. };
  65557. E._EvaluateVisitor__closure17.prototype = {
  65558. call$2: function(_, value) {
  65559. return value;
  65560. }
  65561. };
  65562. E._EvaluateVisitor_closure38.prototype = {
  65563. call$1: function($arguments) {
  65564. return this.$call$body$_EvaluateVisitor_closure1($arguments);
  65565. },
  65566. $call$body$_EvaluateVisitor_closure1: function($arguments) {
  65567. var $async$goto = 0,
  65568. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  65569. $async$returnValue, $async$self = this, withMap, values, configuration, t2, t3, t1, url;
  65570. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65571. if ($async$errorCode === 1)
  65572. return P._asyncRethrow($async$result, $async$completer);
  65573. while (true)
  65574. switch ($async$goto) {
  65575. case 0:
  65576. // Function start
  65577. t1 = J.getInterceptor$asx($arguments);
  65578. url = P.Uri_parse(t1.$index($arguments, 0).assertString$1("module").text);
  65579. t1 = t1.$index($arguments, 1).get$realNull();
  65580. t1 = t1 == null ? null : t1.assertMap$1("with");
  65581. withMap = t1 == null ? null : t1.contents;
  65582. if (withMap != null) {
  65583. values = P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue_2);
  65584. t1 = $async$self.$this;
  65585. withMap.forEach$1(0, new E._EvaluateVisitor__closure14(values, t1._async_evaluate0$_callableNode.get$span()));
  65586. configuration = new A.Configuration0(values, t1._async_evaluate0$_callableNode, false);
  65587. } else
  65588. configuration = C.Configuration_Map_empty_null_true0;
  65589. t1 = $async$self.$this;
  65590. t2 = t1._async_evaluate0$_callableNode;
  65591. t3 = t2.get$span();
  65592. t3 = t3 == null ? null : t3.file.url;
  65593. $async$goto = 3;
  65594. return P._asyncAwait(t1._async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, "load-css()", t2, new E._EvaluateVisitor__closure15(t1), t3, configuration, true), $async$call$1);
  65595. case 3:
  65596. // returning from await.
  65597. t1._async_evaluate0$_assertConfigurationIsEmpty$2$nameInError(configuration, true);
  65598. $async$returnValue = null;
  65599. // goto return
  65600. $async$goto = 1;
  65601. break;
  65602. case 1:
  65603. // return
  65604. return P._asyncReturn($async$returnValue, $async$completer);
  65605. }
  65606. });
  65607. return P._asyncStartSync($async$call$1, $async$completer);
  65608. }
  65609. };
  65610. E._EvaluateVisitor__closure14.prototype = {
  65611. call$2: function(variable, value) {
  65612. var $name,
  65613. t1 = variable.assertString$1("with key").text;
  65614. t1.toString;
  65615. $name = H.stringReplaceAllUnchecked(t1, "_", "-");
  65616. t1 = this.values;
  65617. if (t1.containsKey$1($name))
  65618. throw H.wrapException("The variable $" + $name + " was configured twice.");
  65619. t1.$indexSet(0, $name, new Z.ConfiguredValue0(value, this.span, null));
  65620. }
  65621. };
  65622. E._EvaluateVisitor__closure15.prototype = {
  65623. call$1: function(module) {
  65624. var t1 = this.$this;
  65625. return t1._async_evaluate0$_combineCss$2$clone(module, true).accept$1(t1);
  65626. }
  65627. };
  65628. E._EvaluateVisitor_run_closure2.prototype = {
  65629. call$0: function() {
  65630. var $async$goto = 0,
  65631. $async$completer = P._makeAsyncAwaitCompleter(type$.EvaluateResult_2),
  65632. $async$returnValue, $async$self = this, t2, t1, url, $async$temp1, $async$temp2;
  65633. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65634. if ($async$errorCode === 1)
  65635. return P._asyncRethrow($async$result, $async$completer);
  65636. while (true)
  65637. switch ($async$goto) {
  65638. case 0:
  65639. // Function start
  65640. t1 = $async$self.node;
  65641. url = t1.span.file.url;
  65642. if (url != null) {
  65643. t2 = $async$self.$this;
  65644. t2._async_evaluate0$_activeModules.$indexSet(0, url, null);
  65645. if (t2._async_evaluate0$_nodeImporter != null)
  65646. if (url.get$scheme() === "file")
  65647. t2._async_evaluate0$_includedFiles.add$1(0, $.$get$context().style.pathFromUri$1(M._parseUri(url)));
  65648. else if (url.toString$0(0) !== "stdin")
  65649. t2._async_evaluate0$_includedFiles.add$1(0, url.toString$0(0));
  65650. }
  65651. t2 = $async$self.$this;
  65652. $async$temp1 = E;
  65653. $async$temp2 = t2;
  65654. $async$goto = 3;
  65655. return P._asyncAwait(t2._async_evaluate0$_execute$2($async$self.importer, t1), $async$call$0);
  65656. case 3:
  65657. // returning from await.
  65658. $async$returnValue = new $async$temp1.EvaluateResult0($async$temp2._async_evaluate0$_combineCss$1($async$result), t2._async_evaluate0$_includedFiles);
  65659. // goto return
  65660. $async$goto = 1;
  65661. break;
  65662. case 1:
  65663. // return
  65664. return P._asyncReturn($async$returnValue, $async$completer);
  65665. }
  65666. });
  65667. return P._asyncStartSync($async$call$0, $async$completer);
  65668. },
  65669. $signature: 106
  65670. };
  65671. E._EvaluateVisitor__withWarnCallback_closure2.prototype = {
  65672. call$2: function(message, deprecation) {
  65673. var t1 = this.$this,
  65674. t2 = t1._async_evaluate0$_importSpan;
  65675. return t1._async_evaluate0$_warn$3$deprecation(message, t2 == null ? t1._async_evaluate0$_callableNode.get$span() : t2, deprecation);
  65676. },
  65677. "call*": "call$2",
  65678. $requiredArgCount: 2
  65679. };
  65680. E._EvaluateVisitor__loadModule_closure2.prototype = {
  65681. call$0: function() {
  65682. var $async$goto = 0,
  65683. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  65684. $async$handler = 1, $async$currentError, $async$next = [], $async$self = this, module, error, error0, error1, error2, message, previousLoad, exception, t1, t2, result, importer, stylesheet, canonicalUrl, t3, $async$exception;
  65685. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65686. if ($async$errorCode === 1) {
  65687. $async$currentError = $async$result;
  65688. $async$goto = $async$handler;
  65689. }
  65690. while (true)
  65691. switch ($async$goto) {
  65692. case 0:
  65693. // Function start
  65694. t1 = $async$self.$this;
  65695. t2 = $async$self.nodeWithSpan;
  65696. $async$goto = 2;
  65697. return P._asyncAwait(t1._async_evaluate0$_loadStylesheet$3$baseUrl(J.toString$0$($async$self.url), t2.get$span(), $async$self.baseUrl), $async$call$0);
  65698. case 2:
  65699. // returning from await.
  65700. result = $async$result;
  65701. importer = result.item1;
  65702. stylesheet = result.item2;
  65703. canonicalUrl = stylesheet.span.file.url;
  65704. t3 = t1._async_evaluate0$_activeModules;
  65705. if (t3.containsKey$1(canonicalUrl)) {
  65706. message = $async$self.namesInErrors ? "Module loop: " + H.S($.$get$context().prettyUri$1(canonicalUrl)) + " is already being loaded." : "Module loop: this module is already being loaded.";
  65707. previousLoad = t3.$index(0, canonicalUrl);
  65708. throw H.wrapException(previousLoad == null ? t1._async_evaluate0$_exception$1(message) : t1._async_evaluate0$_multiSpanException$3(message, "new load", P.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(), "original load"], type$.FileSpan, type$.String)));
  65709. }
  65710. t3.$indexSet(0, canonicalUrl, t2);
  65711. module = null;
  65712. $async$handler = 3;
  65713. $async$goto = 6;
  65714. return P._asyncAwait(t1._async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, $async$self.configuration, $async$self.namesInErrors, t2), $async$call$0);
  65715. case 6:
  65716. // returning from await.
  65717. module = $async$result;
  65718. $async$next.push(5);
  65719. // goto finally
  65720. $async$goto = 4;
  65721. break;
  65722. case 3:
  65723. // uncaught
  65724. $async$next = [1];
  65725. case 4:
  65726. // finally
  65727. $async$handler = 1;
  65728. t3.remove$1(0, canonicalUrl);
  65729. // goto the next finally handler
  65730. $async$goto = $async$next.pop();
  65731. break;
  65732. case 5:
  65733. // after finally
  65734. $async$handler = 8;
  65735. $async$goto = 11;
  65736. return P._asyncAwait($async$self.callback.call$1(module), $async$call$0);
  65737. case 11:
  65738. // returning from await.
  65739. $async$handler = 1;
  65740. // goto after finally
  65741. $async$goto = 10;
  65742. break;
  65743. case 8:
  65744. // catch
  65745. $async$handler = 7;
  65746. $async$exception = $async$currentError;
  65747. t2 = H.unwrapException($async$exception);
  65748. if (type$.SassRuntimeException_2._is(t2))
  65749. throw $async$exception;
  65750. else if (t2 instanceof E.MultiSpanSassException0) {
  65751. error = t2;
  65752. throw H.wrapException(E.MultiSpanSassRuntimeException$0(error._span_exception$_message, error.get$span(), error.primaryLabel, error.secondarySpans, t1._async_evaluate0$_stackTrace$1(error.get$span())));
  65753. } else if (t2 instanceof E.SassException0) {
  65754. error0 = t2;
  65755. throw H.wrapException(t1._async_evaluate0$_exception$2(error0._span_exception$_message, error0.get$span()));
  65756. } else if (t2 instanceof E.MultiSpanSassScriptException0) {
  65757. error1 = t2;
  65758. throw H.wrapException(t1._async_evaluate0$_multiSpanException$3(error1.message, error1.primaryLabel, error1.secondarySpans));
  65759. } else if (t2 instanceof E.SassScriptException0) {
  65760. error2 = t2;
  65761. throw H.wrapException(t1._async_evaluate0$_exception$1(error2.message));
  65762. } else
  65763. throw $async$exception;
  65764. // goto after finally
  65765. $async$goto = 10;
  65766. break;
  65767. case 7:
  65768. // uncaught
  65769. // goto rethrow
  65770. $async$goto = 1;
  65771. break;
  65772. case 10:
  65773. // after finally
  65774. // implicit return
  65775. return P._asyncReturn(null, $async$completer);
  65776. case 1:
  65777. // rethrow
  65778. return P._asyncRethrow($async$currentError, $async$completer);
  65779. }
  65780. });
  65781. return P._asyncStartSync($async$call$0, $async$completer);
  65782. },
  65783. $signature: 2
  65784. };
  65785. E._EvaluateVisitor__execute_closure2.prototype = {
  65786. call$0: function() {
  65787. var $async$goto = 0,
  65788. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  65789. $async$self = this, t2, t3, t4, css, t1, oldImporter, oldStylesheet, oldRoot, oldParent, oldEndOfImports, oldOutOfOrderImports, oldExtender, oldStyleRule, oldMediaQueries, oldDeclarationName, oldInUnknownAtRule, oldAtRootExcludingStyleRule, oldInKeyframes, oldConfiguration;
  65790. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65791. if ($async$errorCode === 1)
  65792. return P._asyncRethrow($async$result, $async$completer);
  65793. while (true)
  65794. switch ($async$goto) {
  65795. case 0:
  65796. // Function start
  65797. t1 = $async$self.$this;
  65798. oldImporter = t1._async_evaluate0$_importer;
  65799. oldStylesheet = t1._async_evaluate0$_stylesheet;
  65800. oldRoot = t1._async_evaluate0$_root;
  65801. oldParent = t1._async_evaluate0$_parent;
  65802. oldEndOfImports = t1._async_evaluate0$_endOfImports;
  65803. oldOutOfOrderImports = t1._async_evaluate0$_outOfOrderImports;
  65804. oldExtender = t1._async_evaluate0$_extender;
  65805. oldStyleRule = t1._async_evaluate0$_styleRule;
  65806. oldMediaQueries = t1._async_evaluate0$_mediaQueries;
  65807. oldDeclarationName = t1._async_evaluate0$_declarationName;
  65808. oldInUnknownAtRule = t1._async_evaluate0$_inUnknownAtRule;
  65809. oldAtRootExcludingStyleRule = t1._async_evaluate0$_atRootExcludingStyleRule;
  65810. oldInKeyframes = t1._async_evaluate0$_inKeyframes;
  65811. oldConfiguration = t1._async_evaluate0$_configuration;
  65812. t1._async_evaluate0$_importer = $async$self.importer;
  65813. t2 = t1._async_evaluate0$_stylesheet = $async$self.stylesheet;
  65814. t3 = t2.span;
  65815. t4 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
  65816. t1._async_evaluate0$_parent = t1._async_evaluate0$_root = new V.ModifiableCssStylesheet0(t3, new P.UnmodifiableListView(t4, type$.UnmodifiableListView_ModifiableCssNode_2), t4);
  65817. t1._async_evaluate0$_endOfImports = 0;
  65818. t1._async_evaluate0$_outOfOrderImports = null;
  65819. t1._async_evaluate0$_extender = $async$self.extender;
  65820. t1._async_evaluate0$_declarationName = t1._async_evaluate0$_mediaQueries = t1._async_evaluate0$_styleRule = null;
  65821. t1._async_evaluate0$_inKeyframes = t1._async_evaluate0$_atRootExcludingStyleRule = t1._async_evaluate0$_inUnknownAtRule = false;
  65822. t4 = $async$self.configuration;
  65823. if (t4 != null)
  65824. t1._async_evaluate0$_configuration = t4;
  65825. $async$goto = 2;
  65826. return P._asyncAwait(t1.visitStylesheet$1(t2), $async$call$0);
  65827. case 2:
  65828. // returning from await.
  65829. css = t1._async_evaluate0$_outOfOrderImports == null ? t1._async_evaluate0$_root : new V.CssStylesheet0(new P.UnmodifiableListView(t1._async_evaluate0$_addOutOfOrderImports$0(), type$.UnmodifiableListView_CssNode_2), t3);
  65830. $async$self._box_0.css = css;
  65831. t1._async_evaluate0$_importer = oldImporter;
  65832. t1._async_evaluate0$_stylesheet = oldStylesheet;
  65833. t1._async_evaluate0$_root = oldRoot;
  65834. t1._async_evaluate0$_parent = oldParent;
  65835. t1._async_evaluate0$_endOfImports = oldEndOfImports;
  65836. t1._async_evaluate0$_outOfOrderImports = oldOutOfOrderImports;
  65837. t1._async_evaluate0$_extender = oldExtender;
  65838. t1._async_evaluate0$_styleRule = oldStyleRule;
  65839. t1._async_evaluate0$_mediaQueries = oldMediaQueries;
  65840. t1._async_evaluate0$_declarationName = oldDeclarationName;
  65841. t1._async_evaluate0$_inUnknownAtRule = oldInUnknownAtRule;
  65842. t1._async_evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  65843. t1._async_evaluate0$_inKeyframes = oldInKeyframes;
  65844. t1._async_evaluate0$_configuration = oldConfiguration;
  65845. // implicit return
  65846. return P._asyncReturn(null, $async$completer);
  65847. }
  65848. });
  65849. return P._asyncStartSync($async$call$0, $async$completer);
  65850. },
  65851. $signature: 2
  65852. };
  65853. E._EvaluateVisitor__combineCss_closure8.prototype = {
  65854. call$1: function(module) {
  65855. return module.get$transitivelyContainsCss();
  65856. }
  65857. };
  65858. E._EvaluateVisitor__combineCss_closure9.prototype = {
  65859. call$1: function(target) {
  65860. return !this.selectors.contains$1(0, target);
  65861. }
  65862. };
  65863. E._EvaluateVisitor__combineCss_closure10.prototype = {
  65864. call$1: function(module) {
  65865. return module.cloneCss$0();
  65866. }
  65867. };
  65868. E._EvaluateVisitor__extendModules_closure5.prototype = {
  65869. call$1: function(target) {
  65870. return !this.originalSelectors.contains$1(0, target);
  65871. }
  65872. };
  65873. E._EvaluateVisitor__extendModules_closure6.prototype = {
  65874. call$0: function() {
  65875. return H.setRuntimeTypeInfo([], type$.JSArray_Extender_2);
  65876. },
  65877. $signature: 81
  65878. };
  65879. E._EvaluateVisitor__topologicalModules_visitModule2.prototype = {
  65880. call$1: function(module) {
  65881. var t1, t2, t3, _i, upstream;
  65882. for (t1 = module.get$upstream(), t2 = t1.length, t3 = this.seen, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  65883. upstream = t1[_i];
  65884. if (upstream.get$transitivelyContainsCss() && t3.add$1(0, upstream))
  65885. this.call$1(upstream);
  65886. }
  65887. this.sorted.addFirst$1(module);
  65888. }
  65889. };
  65890. E._EvaluateVisitor_visitAtRootRule_closure8.prototype = {
  65891. call$0: function() {
  65892. var t1 = S.SpanScanner$(this.resolved, null);
  65893. return new V.AtRootQueryParser0(t1, this.$this._async_evaluate0$_logger).parse$0();
  65894. },
  65895. $signature: 48
  65896. };
  65897. E._EvaluateVisitor_visitAtRootRule_closure9.prototype = {
  65898. call$0: function() {
  65899. var $async$goto = 0,
  65900. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  65901. $async$self = this, t1, t2, t3, _i;
  65902. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65903. if ($async$errorCode === 1)
  65904. return P._asyncRethrow($async$result, $async$completer);
  65905. while (true)
  65906. switch ($async$goto) {
  65907. case 0:
  65908. // Function start
  65909. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  65910. case 2:
  65911. // for condition
  65912. if (!(_i < t2)) {
  65913. // goto after for
  65914. $async$goto = 4;
  65915. break;
  65916. }
  65917. $async$goto = 5;
  65918. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  65919. case 5:
  65920. // returning from await.
  65921. case 3:
  65922. // for update
  65923. ++_i;
  65924. // goto for condition
  65925. $async$goto = 2;
  65926. break;
  65927. case 4:
  65928. // after for
  65929. // implicit return
  65930. return P._asyncReturn(null, $async$completer);
  65931. }
  65932. });
  65933. return P._asyncStartSync($async$call$0, $async$completer);
  65934. },
  65935. $signature: 2
  65936. };
  65937. E._EvaluateVisitor_visitAtRootRule_closure10.prototype = {
  65938. call$0: function() {
  65939. var $async$goto = 0,
  65940. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  65941. $async$self = this, t1, t2, t3, _i;
  65942. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65943. if ($async$errorCode === 1)
  65944. return P._asyncRethrow($async$result, $async$completer);
  65945. while (true)
  65946. switch ($async$goto) {
  65947. case 0:
  65948. // Function start
  65949. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  65950. case 2:
  65951. // for condition
  65952. if (!(_i < t2)) {
  65953. // goto after for
  65954. $async$goto = 4;
  65955. break;
  65956. }
  65957. $async$goto = 5;
  65958. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  65959. case 5:
  65960. // returning from await.
  65961. case 3:
  65962. // for update
  65963. ++_i;
  65964. // goto for condition
  65965. $async$goto = 2;
  65966. break;
  65967. case 4:
  65968. // after for
  65969. // implicit return
  65970. return P._asyncReturn(null, $async$completer);
  65971. }
  65972. });
  65973. return P._asyncStartSync($async$call$0, $async$completer);
  65974. },
  65975. "call*": "call$0",
  65976. $requiredArgCount: 0,
  65977. $signature: 2
  65978. };
  65979. E._EvaluateVisitor__scopeForAtRoot_closure17.prototype = {
  65980. call$1: function(callback) {
  65981. var $async$goto = 0,
  65982. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  65983. $async$self = this, t1, oldParent;
  65984. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65985. if ($async$errorCode === 1)
  65986. return P._asyncRethrow($async$result, $async$completer);
  65987. while (true)
  65988. switch ($async$goto) {
  65989. case 0:
  65990. // Function start
  65991. t1 = $async$self.$this;
  65992. oldParent = t1._async_evaluate0$_parent;
  65993. t1._async_evaluate0$_parent = $async$self.newParent;
  65994. $async$goto = 2;
  65995. return P._asyncAwait(t1._async_evaluate0$_environment.scope$1$2$when(callback, $async$self.node.hasDeclarations, type$.void), $async$call$1);
  65996. case 2:
  65997. // returning from await.
  65998. t1._async_evaluate0$_parent = oldParent;
  65999. // implicit return
  66000. return P._asyncReturn(null, $async$completer);
  66001. }
  66002. });
  66003. return P._asyncStartSync($async$call$1, $async$completer);
  66004. }
  66005. };
  66006. E._EvaluateVisitor__scopeForAtRoot_closure18.prototype = {
  66007. call$1: function(callback) {
  66008. var $async$goto = 0,
  66009. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  66010. $async$self = this, t1, oldAtRootExcludingStyleRule;
  66011. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66012. if ($async$errorCode === 1)
  66013. return P._asyncRethrow($async$result, $async$completer);
  66014. while (true)
  66015. switch ($async$goto) {
  66016. case 0:
  66017. // Function start
  66018. t1 = $async$self.$this;
  66019. oldAtRootExcludingStyleRule = t1._async_evaluate0$_atRootExcludingStyleRule;
  66020. t1._async_evaluate0$_atRootExcludingStyleRule = true;
  66021. $async$goto = 2;
  66022. return P._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
  66023. case 2:
  66024. // returning from await.
  66025. t1._async_evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  66026. // implicit return
  66027. return P._asyncReturn(null, $async$completer);
  66028. }
  66029. });
  66030. return P._asyncStartSync($async$call$1, $async$completer);
  66031. }
  66032. };
  66033. E._EvaluateVisitor__scopeForAtRoot_closure19.prototype = {
  66034. call$1: function(callback) {
  66035. return this.$this._async_evaluate0$_withMediaQueries$1$2(null, new E._EvaluateVisitor__scopeForAtRoot__closure2(this.innerScope, callback), type$.Null);
  66036. }
  66037. };
  66038. E._EvaluateVisitor__scopeForAtRoot__closure2.prototype = {
  66039. call$0: function() {
  66040. return this.innerScope.call$1(this.callback);
  66041. },
  66042. $signature: 2
  66043. };
  66044. E._EvaluateVisitor__scopeForAtRoot_closure20.prototype = {
  66045. call$1: function(callback) {
  66046. var $async$goto = 0,
  66047. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  66048. $async$self = this, t1, wasInKeyframes;
  66049. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66050. if ($async$errorCode === 1)
  66051. return P._asyncRethrow($async$result, $async$completer);
  66052. while (true)
  66053. switch ($async$goto) {
  66054. case 0:
  66055. // Function start
  66056. t1 = $async$self.$this;
  66057. wasInKeyframes = t1._async_evaluate0$_inKeyframes;
  66058. t1._async_evaluate0$_inKeyframes = false;
  66059. $async$goto = 2;
  66060. return P._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
  66061. case 2:
  66062. // returning from await.
  66063. t1._async_evaluate0$_inKeyframes = wasInKeyframes;
  66064. // implicit return
  66065. return P._asyncReturn(null, $async$completer);
  66066. }
  66067. });
  66068. return P._asyncStartSync($async$call$1, $async$completer);
  66069. }
  66070. };
  66071. E._EvaluateVisitor__scopeForAtRoot_closure21.prototype = {
  66072. call$1: function($parent) {
  66073. return type$.CssAtRule_2._is($parent);
  66074. }
  66075. };
  66076. E._EvaluateVisitor__scopeForAtRoot_closure22.prototype = {
  66077. call$1: function(callback) {
  66078. var $async$goto = 0,
  66079. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  66080. $async$self = this, t1, wasInUnknownAtRule;
  66081. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66082. if ($async$errorCode === 1)
  66083. return P._asyncRethrow($async$result, $async$completer);
  66084. while (true)
  66085. switch ($async$goto) {
  66086. case 0:
  66087. // Function start
  66088. t1 = $async$self.$this;
  66089. wasInUnknownAtRule = t1._async_evaluate0$_inUnknownAtRule;
  66090. t1._async_evaluate0$_inUnknownAtRule = false;
  66091. $async$goto = 2;
  66092. return P._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
  66093. case 2:
  66094. // returning from await.
  66095. t1._async_evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
  66096. // implicit return
  66097. return P._asyncReturn(null, $async$completer);
  66098. }
  66099. });
  66100. return P._asyncStartSync($async$call$1, $async$completer);
  66101. }
  66102. };
  66103. E._EvaluateVisitor_visitContentRule_closure2.prototype = {
  66104. call$0: function() {
  66105. var $async$goto = 0,
  66106. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  66107. $async$returnValue, $async$self = this, t1, t2, t3, _i;
  66108. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66109. if ($async$errorCode === 1)
  66110. return P._asyncRethrow($async$result, $async$completer);
  66111. while (true)
  66112. switch ($async$goto) {
  66113. case 0:
  66114. // Function start
  66115. t1 = $async$self.content.declaration.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  66116. case 3:
  66117. // for condition
  66118. if (!(_i < t2)) {
  66119. // goto after for
  66120. $async$goto = 5;
  66121. break;
  66122. }
  66123. $async$goto = 6;
  66124. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  66125. case 6:
  66126. // returning from await.
  66127. case 4:
  66128. // for update
  66129. ++_i;
  66130. // goto for condition
  66131. $async$goto = 3;
  66132. break;
  66133. case 5:
  66134. // after for
  66135. $async$returnValue = null;
  66136. // goto return
  66137. $async$goto = 1;
  66138. break;
  66139. case 1:
  66140. // return
  66141. return P._asyncReturn($async$returnValue, $async$completer);
  66142. }
  66143. });
  66144. return P._asyncStartSync($async$call$0, $async$completer);
  66145. },
  66146. $signature: 2
  66147. };
  66148. E._EvaluateVisitor_visitDeclaration_closure2.prototype = {
  66149. call$0: function() {
  66150. var $async$goto = 0,
  66151. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  66152. $async$self = this, t1, t2, t3, _i;
  66153. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66154. if ($async$errorCode === 1)
  66155. return P._asyncRethrow($async$result, $async$completer);
  66156. while (true)
  66157. switch ($async$goto) {
  66158. case 0:
  66159. // Function start
  66160. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  66161. case 2:
  66162. // for condition
  66163. if (!(_i < t2)) {
  66164. // goto after for
  66165. $async$goto = 4;
  66166. break;
  66167. }
  66168. $async$goto = 5;
  66169. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  66170. case 5:
  66171. // returning from await.
  66172. case 3:
  66173. // for update
  66174. ++_i;
  66175. // goto for condition
  66176. $async$goto = 2;
  66177. break;
  66178. case 4:
  66179. // after for
  66180. // implicit return
  66181. return P._asyncReturn(null, $async$completer);
  66182. }
  66183. });
  66184. return P._asyncStartSync($async$call$0, $async$completer);
  66185. },
  66186. $signature: 2
  66187. };
  66188. E._EvaluateVisitor_visitEachRule_closure8.prototype = {
  66189. call$1: function(value) {
  66190. return this.$this._async_evaluate0$_environment.setLocalVariable$3(C.JSArray_methods.get$first(this.node.variables), value.withoutSlash$0(), this.nodeWithSpan);
  66191. }
  66192. };
  66193. E._EvaluateVisitor_visitEachRule_closure9.prototype = {
  66194. call$1: function(value) {
  66195. return this.$this._async_evaluate0$_setMultipleVariables$3(this.node.variables, value, this.nodeWithSpan);
  66196. }
  66197. };
  66198. E._EvaluateVisitor_visitEachRule_closure10.prototype = {
  66199. call$0: function() {
  66200. var _this = this,
  66201. t1 = _this.$this;
  66202. return t1._async_evaluate0$_handleReturn$2(_this.list.get$asList(), new E._EvaluateVisitor_visitEachRule__closure2(t1, _this.setVariables, _this.node));
  66203. },
  66204. $signature: 19
  66205. };
  66206. E._EvaluateVisitor_visitEachRule__closure2.prototype = {
  66207. call$1: function(element) {
  66208. var t1;
  66209. this.setVariables.call$1(element);
  66210. t1 = this.$this;
  66211. return t1._async_evaluate0$_handleReturn$2(this.node.children, new E._EvaluateVisitor_visitEachRule___closure2(t1));
  66212. }
  66213. };
  66214. E._EvaluateVisitor_visitEachRule___closure2.prototype = {
  66215. call$1: function(child) {
  66216. return child.accept$1(this.$this);
  66217. }
  66218. };
  66219. E._EvaluateVisitor_visitExtendRule_closure2.prototype = {
  66220. call$0: function() {
  66221. var t1 = this.targetText;
  66222. return D.SelectorList_SelectorList$parse0(B.trimAscii0(t1.get$value(t1), true), false, true, this.$this._async_evaluate0$_logger);
  66223. },
  66224. $signature: 33
  66225. };
  66226. E._EvaluateVisitor_visitAtRule_closure5.prototype = {
  66227. call$0: function() {
  66228. var $async$goto = 0,
  66229. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  66230. $async$self = this, t3, _i, t1, t2;
  66231. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66232. if ($async$errorCode === 1)
  66233. return P._asyncRethrow($async$result, $async$completer);
  66234. while (true)
  66235. switch ($async$goto) {
  66236. case 0:
  66237. // Function start
  66238. t1 = $async$self.$this;
  66239. t2 = t1._async_evaluate0$_styleRule;
  66240. $async$goto = !(t2 != null && !t1._async_evaluate0$_atRootExcludingStyleRule) || t1._async_evaluate0$_inKeyframes ? 2 : 4;
  66241. break;
  66242. case 2:
  66243. // then
  66244. t2 = $async$self.node.children, t3 = t2.length, _i = 0;
  66245. case 5:
  66246. // for condition
  66247. if (!(_i < t3)) {
  66248. // goto after for
  66249. $async$goto = 7;
  66250. break;
  66251. }
  66252. $async$goto = 8;
  66253. return P._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
  66254. case 8:
  66255. // returning from await.
  66256. case 6:
  66257. // for update
  66258. ++_i;
  66259. // goto for condition
  66260. $async$goto = 5;
  66261. break;
  66262. case 7:
  66263. // after for
  66264. // goto join
  66265. $async$goto = 3;
  66266. break;
  66267. case 4:
  66268. // else
  66269. $async$goto = 9;
  66270. return P._asyncAwait(t1._async_evaluate0$_withParent$2$3$scopeWhen(X.ModifiableCssStyleRule$0(t2.selector, t2.span, t2.originalSelector), new E._EvaluateVisitor_visitAtRule__closure2(t1, $async$self.node), false, type$.ModifiableCssStyleRule_2, type$.Null), $async$call$0);
  66271. case 9:
  66272. // returning from await.
  66273. case 3:
  66274. // join
  66275. // implicit return
  66276. return P._asyncReturn(null, $async$completer);
  66277. }
  66278. });
  66279. return P._asyncStartSync($async$call$0, $async$completer);
  66280. },
  66281. $signature: 2
  66282. };
  66283. E._EvaluateVisitor_visitAtRule__closure2.prototype = {
  66284. call$0: function() {
  66285. var $async$goto = 0,
  66286. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  66287. $async$self = this, t1, t2, t3, _i;
  66288. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66289. if ($async$errorCode === 1)
  66290. return P._asyncRethrow($async$result, $async$completer);
  66291. while (true)
  66292. switch ($async$goto) {
  66293. case 0:
  66294. // Function start
  66295. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  66296. case 2:
  66297. // for condition
  66298. if (!(_i < t2)) {
  66299. // goto after for
  66300. $async$goto = 4;
  66301. break;
  66302. }
  66303. $async$goto = 5;
  66304. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  66305. case 5:
  66306. // returning from await.
  66307. case 3:
  66308. // for update
  66309. ++_i;
  66310. // goto for condition
  66311. $async$goto = 2;
  66312. break;
  66313. case 4:
  66314. // after for
  66315. // implicit return
  66316. return P._asyncReturn(null, $async$completer);
  66317. }
  66318. });
  66319. return P._asyncStartSync($async$call$0, $async$completer);
  66320. },
  66321. $signature: 2
  66322. };
  66323. E._EvaluateVisitor_visitAtRule_closure6.prototype = {
  66324. call$1: function(node) {
  66325. return type$.CssStyleRule_2._is(node);
  66326. }
  66327. };
  66328. E._EvaluateVisitor_visitForRule_closure14.prototype = {
  66329. call$0: function() {
  66330. var $async$goto = 0,
  66331. $async$completer = P._makeAsyncAwaitCompleter(type$.SassNumber_2),
  66332. $async$returnValue, $async$self = this;
  66333. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66334. if ($async$errorCode === 1)
  66335. return P._asyncRethrow($async$result, $async$completer);
  66336. while (true)
  66337. switch ($async$goto) {
  66338. case 0:
  66339. // Function start
  66340. $async$goto = 3;
  66341. return P._asyncAwait($async$self.node.from.accept$1($async$self.$this), $async$call$0);
  66342. case 3:
  66343. // returning from await.
  66344. $async$returnValue = $async$result.assertNumber$0();
  66345. // goto return
  66346. $async$goto = 1;
  66347. break;
  66348. case 1:
  66349. // return
  66350. return P._asyncReturn($async$returnValue, $async$completer);
  66351. }
  66352. });
  66353. return P._asyncStartSync($async$call$0, $async$completer);
  66354. },
  66355. $signature: 82
  66356. };
  66357. E._EvaluateVisitor_visitForRule_closure15.prototype = {
  66358. call$0: function() {
  66359. var $async$goto = 0,
  66360. $async$completer = P._makeAsyncAwaitCompleter(type$.SassNumber_2),
  66361. $async$returnValue, $async$self = this;
  66362. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66363. if ($async$errorCode === 1)
  66364. return P._asyncRethrow($async$result, $async$completer);
  66365. while (true)
  66366. switch ($async$goto) {
  66367. case 0:
  66368. // Function start
  66369. $async$goto = 3;
  66370. return P._asyncAwait($async$self.node.to.accept$1($async$self.$this), $async$call$0);
  66371. case 3:
  66372. // returning from await.
  66373. $async$returnValue = $async$result.assertNumber$0();
  66374. // goto return
  66375. $async$goto = 1;
  66376. break;
  66377. case 1:
  66378. // return
  66379. return P._asyncReturn($async$returnValue, $async$completer);
  66380. }
  66381. });
  66382. return P._asyncStartSync($async$call$0, $async$completer);
  66383. },
  66384. $signature: 82
  66385. };
  66386. E._EvaluateVisitor_visitForRule_closure16.prototype = {
  66387. call$0: function() {
  66388. var t1 = this.toNumber,
  66389. t2 = t1.numeratorUnits;
  66390. t1 = t1.denominatorUnits;
  66391. return T.SassNumber$withUnits0(this.fromNumber.valueInUnits$2(t2, t1), t1, t2).assertInt$0();
  66392. },
  66393. $signature: 8
  66394. };
  66395. E._EvaluateVisitor_visitForRule_closure17.prototype = {
  66396. call$0: function() {
  66397. return this.toNumber.assertInt$0();
  66398. },
  66399. $signature: 8
  66400. };
  66401. E._EvaluateVisitor_visitForRule_closure18.prototype = {
  66402. call$0: function() {
  66403. var $async$goto = 0,
  66404. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  66405. $async$returnValue, $async$self = this, i, t3, t4, t5, t6, result, t1, t2, nodeWithSpan;
  66406. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66407. if ($async$errorCode === 1)
  66408. return P._asyncRethrow($async$result, $async$completer);
  66409. while (true)
  66410. switch ($async$goto) {
  66411. case 0:
  66412. // Function start
  66413. t1 = $async$self.$this;
  66414. t2 = $async$self.node;
  66415. nodeWithSpan = t1._async_evaluate0$_expressionNode$1(t2.from);
  66416. i = $async$self.from, t3 = $async$self._box_0, t4 = $async$self.direction, t5 = t2.children, t2 = t2.variable;
  66417. case 3:
  66418. // for condition
  66419. if (!(i !== t3.to)) {
  66420. // goto after for
  66421. $async$goto = 5;
  66422. break;
  66423. }
  66424. t6 = t1._async_evaluate0$_environment;
  66425. t6.setLocalVariable$3(t2, new T.SassNumber0(i, C.List_empty, C.List_empty, null), nodeWithSpan);
  66426. $async$goto = 6;
  66427. return P._asyncAwait(t1._async_evaluate0$_handleReturn$2(t5, new E._EvaluateVisitor_visitForRule__closure2(t1)), $async$call$0);
  66428. case 6:
  66429. // returning from await.
  66430. result = $async$result;
  66431. if (result != null) {
  66432. $async$returnValue = result;
  66433. // goto return
  66434. $async$goto = 1;
  66435. break;
  66436. }
  66437. case 4:
  66438. // for update
  66439. i += t4;
  66440. // goto for condition
  66441. $async$goto = 3;
  66442. break;
  66443. case 5:
  66444. // after for
  66445. $async$returnValue = null;
  66446. // goto return
  66447. $async$goto = 1;
  66448. break;
  66449. case 1:
  66450. // return
  66451. return P._asyncReturn($async$returnValue, $async$completer);
  66452. }
  66453. });
  66454. return P._asyncStartSync($async$call$0, $async$completer);
  66455. },
  66456. $signature: 19
  66457. };
  66458. E._EvaluateVisitor_visitForRule__closure2.prototype = {
  66459. call$1: function(child) {
  66460. return child.accept$1(this.$this);
  66461. }
  66462. };
  66463. E._EvaluateVisitor_visitForwardRule_closure5.prototype = {
  66464. call$1: function(module) {
  66465. this.$this._async_evaluate0$_environment.forwardModule$2(module, this.node);
  66466. }
  66467. };
  66468. E._EvaluateVisitor_visitForwardRule_closure6.prototype = {
  66469. call$1: function(module) {
  66470. this.$this._async_evaluate0$_environment.forwardModule$2(module, this.node);
  66471. }
  66472. };
  66473. E._EvaluateVisitor__assertConfigurationIsEmpty_closure2.prototype = {
  66474. call$2: function($name, value) {
  66475. var t1 = this.only;
  66476. if (t1 != null && !t1.contains$1(0, $name))
  66477. return;
  66478. t1 = this.nameInError ? "$" + H.S($name) + " was not declared with !default in the @used module." : "This variable was not declared with !default in the @used module.";
  66479. throw H.wrapException(this.$this._async_evaluate0$_exception$2(t1, value.configurationSpan));
  66480. }
  66481. };
  66482. E._EvaluateVisitor_visitIfRule_closure2.prototype = {
  66483. call$0: function() {
  66484. var t1 = this.$this;
  66485. return t1._async_evaluate0$_handleReturn$2(this._box_0.clause.children, new E._EvaluateVisitor_visitIfRule__closure2(t1));
  66486. },
  66487. $signature: 19
  66488. };
  66489. E._EvaluateVisitor_visitIfRule__closure2.prototype = {
  66490. call$1: function(child) {
  66491. return child.accept$1(this.$this);
  66492. }
  66493. };
  66494. E._EvaluateVisitor__visitDynamicImport_closure2.prototype = {
  66495. call$0: function() {
  66496. return this.$call$body$_EvaluateVisitor__visitDynamicImport_closure0();
  66497. },
  66498. $call$body$_EvaluateVisitor__visitDynamicImport_closure0: function() {
  66499. var $async$goto = 0,
  66500. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  66501. $async$returnValue, $async$self = this, previousLoad, oldImporter, oldStylesheet, t4, t5, t6, t7, t8, t9, t10, t11, environment, module, visitor, _box_0, t1, t2, result, importer, stylesheet, url, t3;
  66502. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66503. if ($async$errorCode === 1)
  66504. return P._asyncRethrow($async$result, $async$completer);
  66505. while (true)
  66506. switch ($async$goto) {
  66507. case 0:
  66508. // Function start
  66509. _box_0 = {};
  66510. t1 = $async$self.$this;
  66511. t2 = $async$self.$import;
  66512. $async$goto = 3;
  66513. return P._asyncAwait(t1._async_evaluate0$_loadStylesheet$3$forImport(t2.url, t2.span, true), $async$call$0);
  66514. case 3:
  66515. // returning from await.
  66516. result = $async$result;
  66517. importer = result.item1;
  66518. stylesheet = result.item2;
  66519. url = stylesheet.span.file.url;
  66520. t3 = t1._async_evaluate0$_activeModules;
  66521. if (t3.containsKey$1(url)) {
  66522. previousLoad = t3.$index(0, url);
  66523. throw H.wrapException(previousLoad == null ? t1._async_evaluate0$_exception$1("This file is already being loaded.") : t1._async_evaluate0$_multiSpanException$3("This file is already being loaded.", "new load", P.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(), "original load"], type$.FileSpan, type$.String)));
  66524. }
  66525. t3.$indexSet(0, url, t2);
  66526. t2 = new P.UnmodifiableListView(stylesheet._stylesheet1$_uses, type$.UnmodifiableListView_UseRule_2);
  66527. if (t2.get$length(t2) === 0) {
  66528. t2 = new P.UnmodifiableListView(stylesheet._stylesheet1$_forwards, type$.UnmodifiableListView_ForwardRule_2);
  66529. t2 = t2.get$length(t2) === 0;
  66530. } else
  66531. t2 = false;
  66532. $async$goto = t2 ? 4 : 5;
  66533. break;
  66534. case 4:
  66535. // then
  66536. oldImporter = t1._async_evaluate0$_importer;
  66537. oldStylesheet = t1._async_evaluate0$_stylesheet;
  66538. t1._async_evaluate0$_importer = importer;
  66539. t1._async_evaluate0$_stylesheet = stylesheet;
  66540. $async$goto = 6;
  66541. return P._asyncAwait(t1.visitStylesheet$1(stylesheet), $async$call$0);
  66542. case 6:
  66543. // returning from await.
  66544. t1._async_evaluate0$_importer = oldImporter;
  66545. t1._async_evaluate0$_stylesheet = oldStylesheet;
  66546. t3.remove$1(0, url);
  66547. // goto return
  66548. $async$goto = 1;
  66549. break;
  66550. case 5:
  66551. // join
  66552. _box_0.children = null;
  66553. t2 = t1._async_evaluate0$_environment;
  66554. t4 = type$.String;
  66555. t5 = type$.Module_AsyncCallable_2;
  66556. t6 = type$.AstNode_2;
  66557. t7 = H.setRuntimeTypeInfo([], type$.JSArray_Module_AsyncCallable_2);
  66558. t8 = t2._async_environment0$_variables;
  66559. t8 = H.setRuntimeTypeInfo(t8.slice(0), H._arrayInstanceType(t8));
  66560. t9 = t2._async_environment0$_variableNodes;
  66561. if (t9 == null)
  66562. t9 = null;
  66563. else
  66564. t9 = H.setRuntimeTypeInfo(t9.slice(0), H._arrayInstanceType(t9));
  66565. t10 = t2._async_environment0$_functions;
  66566. t10 = H.setRuntimeTypeInfo(t10.slice(0), H._arrayInstanceType(t10));
  66567. t11 = t2._async_environment0$_mixins;
  66568. t11 = H.setRuntimeTypeInfo(t11.slice(0), H._arrayInstanceType(t11));
  66569. environment = Q.AsyncEnvironment$_0(P.LinkedHashMap_LinkedHashMap$_empty(t4, t5), P.LinkedHashMap_LinkedHashMap$_empty(t4, t6), P.LinkedHashSet_LinkedHashSet$_empty(t5), P.LinkedHashMap_LinkedHashMap$_empty(t5, t6), null, null, null, t7, t8, t9, t10, t11, t2._async_environment0$_content);
  66570. $async$goto = 7;
  66571. return P._asyncAwait(t1._async_evaluate0$_withEnvironment$1$2(environment, new E._EvaluateVisitor__visitDynamicImport__closure2(_box_0, t1, importer, stylesheet, environment), type$.Null), $async$call$0);
  66572. case 7:
  66573. // returning from await.
  66574. module = Q._EnvironmentModule__EnvironmentModule2(environment, new V.CssStylesheet0(new P.UnmodifiableListView(C.List_empty12, type$.UnmodifiableListView_CssNode_2), Y.SourceFile$decoded(C.List_empty1, "<dummy module>").span$1(0)), C.C_EmptyExtender0, environment._async_environment0$_forwardedModules);
  66575. t1._async_evaluate0$_environment.importForwards$1(module);
  66576. $async$goto = module.transitivelyContainsCss ? 8 : 9;
  66577. break;
  66578. case 8:
  66579. // then
  66580. $async$goto = 10;
  66581. return P._asyncAwait(t1._async_evaluate0$_combineCss$2$clone(module, module.transitivelyContainsExtensions).accept$1(t1), $async$call$0);
  66582. case 10:
  66583. // returning from await.
  66584. case 9:
  66585. // join
  66586. visitor = new E._ImportedCssVisitor2(t1);
  66587. for (t1 = J.get$iterator$ax(_box_0.children); t1.moveNext$0();)
  66588. t1.get$current(t1).accept$1(visitor);
  66589. t3.remove$1(0, url);
  66590. case 1:
  66591. // return
  66592. return P._asyncReturn($async$returnValue, $async$completer);
  66593. }
  66594. });
  66595. return P._asyncStartSync($async$call$0, $async$completer);
  66596. },
  66597. $signature: 2
  66598. };
  66599. E._EvaluateVisitor__visitDynamicImport__closure2.prototype = {
  66600. call$0: function() {
  66601. var $async$goto = 0,
  66602. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  66603. $async$self = this, t2, t3, t1, oldImporter, oldStylesheet, oldRoot, oldParent, oldEndOfImports, oldOutOfOrderImports, oldConfiguration;
  66604. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66605. if ($async$errorCode === 1)
  66606. return P._asyncRethrow($async$result, $async$completer);
  66607. while (true)
  66608. switch ($async$goto) {
  66609. case 0:
  66610. // Function start
  66611. t1 = $async$self.$this;
  66612. oldImporter = t1._async_evaluate0$_importer;
  66613. oldStylesheet = t1._async_evaluate0$_stylesheet;
  66614. oldRoot = t1._async_evaluate0$_root;
  66615. oldParent = t1._async_evaluate0$_parent;
  66616. oldEndOfImports = t1._async_evaluate0$_endOfImports;
  66617. oldOutOfOrderImports = t1._async_evaluate0$_outOfOrderImports;
  66618. oldConfiguration = t1._async_evaluate0$_configuration;
  66619. t1._async_evaluate0$_importer = $async$self.importer;
  66620. t2 = t1._async_evaluate0$_stylesheet = $async$self.stylesheet;
  66621. t3 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
  66622. t1._async_evaluate0$_parent = t1._async_evaluate0$_root = new V.ModifiableCssStylesheet0(t2.span, new P.UnmodifiableListView(t3, type$.UnmodifiableListView_ModifiableCssNode_2), t3);
  66623. t1._async_evaluate0$_endOfImports = 0;
  66624. t1._async_evaluate0$_outOfOrderImports = null;
  66625. t3 = new P.UnmodifiableListView(t2._stylesheet1$_forwards, type$.UnmodifiableListView_ForwardRule_2);
  66626. if (!t3.get$isEmpty(t3))
  66627. t1._async_evaluate0$_configuration = $async$self.environment.toImplicitConfiguration$0();
  66628. $async$goto = 2;
  66629. return P._asyncAwait(t1.visitStylesheet$1(t2), $async$call$0);
  66630. case 2:
  66631. // returning from await.
  66632. $async$self._box_0.children = t1._async_evaluate0$_addOutOfOrderImports$0();
  66633. t1._async_evaluate0$_importer = oldImporter;
  66634. t1._async_evaluate0$_stylesheet = oldStylesheet;
  66635. t1._async_evaluate0$_root = oldRoot;
  66636. t1._async_evaluate0$_parent = oldParent;
  66637. t1._async_evaluate0$_endOfImports = oldEndOfImports;
  66638. t1._async_evaluate0$_outOfOrderImports = oldOutOfOrderImports;
  66639. t1._async_evaluate0$_configuration = oldConfiguration;
  66640. // implicit return
  66641. return P._asyncReturn(null, $async$completer);
  66642. }
  66643. });
  66644. return P._asyncStartSync($async$call$0, $async$completer);
  66645. },
  66646. $signature: 2
  66647. };
  66648. E._EvaluateVisitor_visitIncludeRule_closure8.prototype = {
  66649. call$0: function() {
  66650. var t1 = this.node;
  66651. return this.$this._async_evaluate0$_environment.getMixin$2$namespace(t1.name, t1.namespace);
  66652. },
  66653. $signature: 49
  66654. };
  66655. E._EvaluateVisitor_visitIncludeRule_closure9.prototype = {
  66656. call$0: function() {
  66657. return this.node.get$spanWithoutContent();
  66658. },
  66659. "call*": "call$0",
  66660. $requiredArgCount: 0,
  66661. $signature: 24
  66662. };
  66663. E._EvaluateVisitor_visitIncludeRule_closure10.prototype = {
  66664. call$0: function() {
  66665. var $async$goto = 0,
  66666. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  66667. $async$returnValue, $async$self = this, t1;
  66668. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66669. if ($async$errorCode === 1)
  66670. return P._asyncRethrow($async$result, $async$completer);
  66671. while (true)
  66672. switch ($async$goto) {
  66673. case 0:
  66674. // Function start
  66675. t1 = $async$self.$this;
  66676. $async$goto = 3;
  66677. return P._asyncAwait(t1._async_evaluate0$_environment.withContent$2($async$self.contentCallable, new E._EvaluateVisitor_visitIncludeRule__closure2(t1, $async$self.mixin, $async$self.nodeWithSpan)), $async$call$0);
  66678. case 3:
  66679. // returning from await.
  66680. $async$returnValue = null;
  66681. // goto return
  66682. $async$goto = 1;
  66683. break;
  66684. case 1:
  66685. // return
  66686. return P._asyncReturn($async$returnValue, $async$completer);
  66687. }
  66688. });
  66689. return P._asyncStartSync($async$call$0, $async$completer);
  66690. },
  66691. $signature: 2
  66692. };
  66693. E._EvaluateVisitor_visitIncludeRule__closure2.prototype = {
  66694. call$0: function() {
  66695. var $async$goto = 0,
  66696. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  66697. $async$returnValue, $async$self = this, t1;
  66698. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66699. if ($async$errorCode === 1)
  66700. return P._asyncRethrow($async$result, $async$completer);
  66701. while (true)
  66702. switch ($async$goto) {
  66703. case 0:
  66704. // Function start
  66705. t1 = $async$self.$this;
  66706. $async$goto = 3;
  66707. return P._asyncAwait(t1._async_evaluate0$_environment.asMixin$1(new E._EvaluateVisitor_visitIncludeRule___closure2(t1, $async$self.mixin, $async$self.nodeWithSpan)), $async$call$0);
  66708. case 3:
  66709. // returning from await.
  66710. $async$returnValue = null;
  66711. // goto return
  66712. $async$goto = 1;
  66713. break;
  66714. case 1:
  66715. // return
  66716. return P._asyncReturn($async$returnValue, $async$completer);
  66717. }
  66718. });
  66719. return P._asyncStartSync($async$call$0, $async$completer);
  66720. },
  66721. $signature: 2
  66722. };
  66723. E._EvaluateVisitor_visitIncludeRule___closure2.prototype = {
  66724. call$0: function() {
  66725. var $async$goto = 0,
  66726. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  66727. $async$self = this, t1, t2, t3, t4, t5, _i;
  66728. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66729. if ($async$errorCode === 1)
  66730. return P._asyncRethrow($async$result, $async$completer);
  66731. while (true)
  66732. switch ($async$goto) {
  66733. case 0:
  66734. // Function start
  66735. t1 = $async$self.mixin.declaration.children, t2 = t1.length, t3 = $async$self.$this, t4 = $async$self.nodeWithSpan, t5 = type$.Value_2, _i = 0;
  66736. case 2:
  66737. // for condition
  66738. if (!(_i < t2)) {
  66739. // goto after for
  66740. $async$goto = 4;
  66741. break;
  66742. }
  66743. $async$goto = 5;
  66744. return P._asyncAwait(t3._async_evaluate0$_addErrorSpan$1$2(t4, new E._EvaluateVisitor_visitIncludeRule____closure2(t3, t1[_i]), t5), $async$call$0);
  66745. case 5:
  66746. // returning from await.
  66747. case 3:
  66748. // for update
  66749. ++_i;
  66750. // goto for condition
  66751. $async$goto = 2;
  66752. break;
  66753. case 4:
  66754. // after for
  66755. // implicit return
  66756. return P._asyncReturn(null, $async$completer);
  66757. }
  66758. });
  66759. return P._asyncStartSync($async$call$0, $async$completer);
  66760. },
  66761. $signature: 2
  66762. };
  66763. E._EvaluateVisitor_visitIncludeRule____closure2.prototype = {
  66764. call$0: function() {
  66765. return this.statement.accept$1(this.$this);
  66766. },
  66767. $signature: 19
  66768. };
  66769. E._EvaluateVisitor_visitMediaRule_closure5.prototype = {
  66770. call$0: function() {
  66771. var $async$goto = 0,
  66772. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  66773. $async$self = this, t1, t2;
  66774. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66775. if ($async$errorCode === 1)
  66776. return P._asyncRethrow($async$result, $async$completer);
  66777. while (true)
  66778. switch ($async$goto) {
  66779. case 0:
  66780. // Function start
  66781. t1 = $async$self.$this;
  66782. t2 = $async$self.mergedQueries;
  66783. if (t2 == null)
  66784. t2 = $async$self.queries;
  66785. $async$goto = 2;
  66786. return P._asyncAwait(t1._async_evaluate0$_withMediaQueries$1$2(t2, new E._EvaluateVisitor_visitMediaRule__closure2(t1, $async$self.node), type$.Null), $async$call$0);
  66787. case 2:
  66788. // returning from await.
  66789. // implicit return
  66790. return P._asyncReturn(null, $async$completer);
  66791. }
  66792. });
  66793. return P._asyncStartSync($async$call$0, $async$completer);
  66794. },
  66795. $signature: 2
  66796. };
  66797. E._EvaluateVisitor_visitMediaRule__closure2.prototype = {
  66798. call$0: function() {
  66799. var $async$goto = 0,
  66800. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  66801. $async$self = this, t3, _i, t1, t2;
  66802. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66803. if ($async$errorCode === 1)
  66804. return P._asyncRethrow($async$result, $async$completer);
  66805. while (true)
  66806. switch ($async$goto) {
  66807. case 0:
  66808. // Function start
  66809. t1 = $async$self.$this;
  66810. t2 = t1._async_evaluate0$_styleRule;
  66811. $async$goto = !(t2 != null && !t1._async_evaluate0$_atRootExcludingStyleRule) ? 2 : 4;
  66812. break;
  66813. case 2:
  66814. // then
  66815. t2 = $async$self.node.children, t3 = t2.length, _i = 0;
  66816. case 5:
  66817. // for condition
  66818. if (!(_i < t3)) {
  66819. // goto after for
  66820. $async$goto = 7;
  66821. break;
  66822. }
  66823. $async$goto = 8;
  66824. return P._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
  66825. case 8:
  66826. // returning from await.
  66827. case 6:
  66828. // for update
  66829. ++_i;
  66830. // goto for condition
  66831. $async$goto = 5;
  66832. break;
  66833. case 7:
  66834. // after for
  66835. // goto join
  66836. $async$goto = 3;
  66837. break;
  66838. case 4:
  66839. // else
  66840. $async$goto = 9;
  66841. return P._asyncAwait(t1._async_evaluate0$_withParent$2$3$scopeWhen(X.ModifiableCssStyleRule$0(t2.selector, t2.span, t2.originalSelector), new E._EvaluateVisitor_visitMediaRule___closure2(t1, $async$self.node), false, type$.ModifiableCssStyleRule_2, type$.Null), $async$call$0);
  66842. case 9:
  66843. // returning from await.
  66844. case 3:
  66845. // join
  66846. // implicit return
  66847. return P._asyncReturn(null, $async$completer);
  66848. }
  66849. });
  66850. return P._asyncStartSync($async$call$0, $async$completer);
  66851. },
  66852. $signature: 2
  66853. };
  66854. E._EvaluateVisitor_visitMediaRule___closure2.prototype = {
  66855. call$0: function() {
  66856. var $async$goto = 0,
  66857. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  66858. $async$self = this, t1, t2, t3, _i;
  66859. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66860. if ($async$errorCode === 1)
  66861. return P._asyncRethrow($async$result, $async$completer);
  66862. while (true)
  66863. switch ($async$goto) {
  66864. case 0:
  66865. // Function start
  66866. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  66867. case 2:
  66868. // for condition
  66869. if (!(_i < t2)) {
  66870. // goto after for
  66871. $async$goto = 4;
  66872. break;
  66873. }
  66874. $async$goto = 5;
  66875. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  66876. case 5:
  66877. // returning from await.
  66878. case 3:
  66879. // for update
  66880. ++_i;
  66881. // goto for condition
  66882. $async$goto = 2;
  66883. break;
  66884. case 4:
  66885. // after for
  66886. // implicit return
  66887. return P._asyncReturn(null, $async$completer);
  66888. }
  66889. });
  66890. return P._asyncStartSync($async$call$0, $async$completer);
  66891. },
  66892. $signature: 2
  66893. };
  66894. E._EvaluateVisitor_visitMediaRule_closure6.prototype = {
  66895. call$1: function(node) {
  66896. var t1;
  66897. if (!type$.CssStyleRule_2._is(node))
  66898. t1 = this.mergedQueries != null && type$.CssMediaRule_2._is(node);
  66899. else
  66900. t1 = true;
  66901. return t1;
  66902. }
  66903. };
  66904. E._EvaluateVisitor__visitMediaQueries_closure2.prototype = {
  66905. call$0: function() {
  66906. var t1 = S.SpanScanner$(this.resolved, null);
  66907. return new F.MediaQueryParser0(t1, this.$this._async_evaluate0$_logger).parse$0();
  66908. },
  66909. $signature: 55
  66910. };
  66911. E._EvaluateVisitor_visitStyleRule_closure20.prototype = {
  66912. call$0: function() {
  66913. var t1 = this.selectorText;
  66914. t1 = S.SpanScanner$(t1.get$value(t1), null);
  66915. return new E.KeyframeSelectorParser0(t1, this.$this._async_evaluate0$_logger).parse$0();
  66916. },
  66917. $signature: 32
  66918. };
  66919. E._EvaluateVisitor_visitStyleRule_closure21.prototype = {
  66920. call$0: function() {
  66921. var $async$goto = 0,
  66922. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  66923. $async$self = this, t1, t2, t3, _i;
  66924. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66925. if ($async$errorCode === 1)
  66926. return P._asyncRethrow($async$result, $async$completer);
  66927. while (true)
  66928. switch ($async$goto) {
  66929. case 0:
  66930. // Function start
  66931. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  66932. case 2:
  66933. // for condition
  66934. if (!(_i < t2)) {
  66935. // goto after for
  66936. $async$goto = 4;
  66937. break;
  66938. }
  66939. $async$goto = 5;
  66940. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  66941. case 5:
  66942. // returning from await.
  66943. case 3:
  66944. // for update
  66945. ++_i;
  66946. // goto for condition
  66947. $async$goto = 2;
  66948. break;
  66949. case 4:
  66950. // after for
  66951. // implicit return
  66952. return P._asyncReturn(null, $async$completer);
  66953. }
  66954. });
  66955. return P._asyncStartSync($async$call$0, $async$completer);
  66956. },
  66957. $signature: 2
  66958. };
  66959. E._EvaluateVisitor_visitStyleRule_closure22.prototype = {
  66960. call$1: function(node) {
  66961. return type$.CssStyleRule_2._is(node);
  66962. }
  66963. };
  66964. E._EvaluateVisitor_visitStyleRule_closure23.prototype = {
  66965. call$0: function() {
  66966. var t2, t3,
  66967. t1 = this.selectorText;
  66968. t1 = t1.get$value(t1);
  66969. t2 = this.$this;
  66970. t3 = !t2._async_evaluate0$_stylesheet.plainCss;
  66971. return D.SelectorList_SelectorList$parse0(t1, t3, t3, t2._async_evaluate0$_logger);
  66972. },
  66973. $signature: 33
  66974. };
  66975. E._EvaluateVisitor_visitStyleRule_closure24.prototype = {
  66976. call$0: function() {
  66977. var t1 = this._box_0.parsedSelector,
  66978. t2 = this.$this,
  66979. t3 = t2._async_evaluate0$_styleRule;
  66980. t3 = t3 == null ? null : t3.originalSelector;
  66981. return t1.resolveParentSelectors$2$implicitParent(t3, !t2._async_evaluate0$_atRootExcludingStyleRule);
  66982. },
  66983. $signature: 33
  66984. };
  66985. E._EvaluateVisitor_visitStyleRule_closure25.prototype = {
  66986. call$0: function() {
  66987. var $async$goto = 0,
  66988. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  66989. $async$self = this, t1;
  66990. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66991. if ($async$errorCode === 1)
  66992. return P._asyncRethrow($async$result, $async$completer);
  66993. while (true)
  66994. switch ($async$goto) {
  66995. case 0:
  66996. // Function start
  66997. t1 = $async$self.$this;
  66998. $async$goto = 2;
  66999. return P._asyncAwait(t1._async_evaluate0$_withStyleRule$1$2($async$self.rule, new E._EvaluateVisitor_visitStyleRule__closure2(t1, $async$self.node), type$.Null), $async$call$0);
  67000. case 2:
  67001. // returning from await.
  67002. // implicit return
  67003. return P._asyncReturn(null, $async$completer);
  67004. }
  67005. });
  67006. return P._asyncStartSync($async$call$0, $async$completer);
  67007. },
  67008. $signature: 2
  67009. };
  67010. E._EvaluateVisitor_visitStyleRule__closure2.prototype = {
  67011. call$0: function() {
  67012. var $async$goto = 0,
  67013. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  67014. $async$self = this, t1, t2, t3, _i;
  67015. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67016. if ($async$errorCode === 1)
  67017. return P._asyncRethrow($async$result, $async$completer);
  67018. while (true)
  67019. switch ($async$goto) {
  67020. case 0:
  67021. // Function start
  67022. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  67023. case 2:
  67024. // for condition
  67025. if (!(_i < t2)) {
  67026. // goto after for
  67027. $async$goto = 4;
  67028. break;
  67029. }
  67030. $async$goto = 5;
  67031. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  67032. case 5:
  67033. // returning from await.
  67034. case 3:
  67035. // for update
  67036. ++_i;
  67037. // goto for condition
  67038. $async$goto = 2;
  67039. break;
  67040. case 4:
  67041. // after for
  67042. // implicit return
  67043. return P._asyncReturn(null, $async$completer);
  67044. }
  67045. });
  67046. return P._asyncStartSync($async$call$0, $async$completer);
  67047. },
  67048. $signature: 2
  67049. };
  67050. E._EvaluateVisitor_visitStyleRule_closure26.prototype = {
  67051. call$1: function(node) {
  67052. return type$.CssStyleRule_2._is(node);
  67053. }
  67054. };
  67055. E._EvaluateVisitor_visitSupportsRule_closure5.prototype = {
  67056. call$0: function() {
  67057. var $async$goto = 0,
  67058. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  67059. $async$self = this, t3, _i, t1, t2;
  67060. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67061. if ($async$errorCode === 1)
  67062. return P._asyncRethrow($async$result, $async$completer);
  67063. while (true)
  67064. switch ($async$goto) {
  67065. case 0:
  67066. // Function start
  67067. t1 = $async$self.$this;
  67068. t2 = t1._async_evaluate0$_styleRule;
  67069. $async$goto = !(t2 != null && !t1._async_evaluate0$_atRootExcludingStyleRule) ? 2 : 4;
  67070. break;
  67071. case 2:
  67072. // then
  67073. t2 = $async$self.node.children, t3 = t2.length, _i = 0;
  67074. case 5:
  67075. // for condition
  67076. if (!(_i < t3)) {
  67077. // goto after for
  67078. $async$goto = 7;
  67079. break;
  67080. }
  67081. $async$goto = 8;
  67082. return P._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
  67083. case 8:
  67084. // returning from await.
  67085. case 6:
  67086. // for update
  67087. ++_i;
  67088. // goto for condition
  67089. $async$goto = 5;
  67090. break;
  67091. case 7:
  67092. // after for
  67093. // goto join
  67094. $async$goto = 3;
  67095. break;
  67096. case 4:
  67097. // else
  67098. $async$goto = 9;
  67099. return P._asyncAwait(t1._async_evaluate0$_withParent$2$2(X.ModifiableCssStyleRule$0(t2.selector, t2.span, t2.originalSelector), new E._EvaluateVisitor_visitSupportsRule__closure2(t1, $async$self.node), type$.ModifiableCssStyleRule_2, type$.Null), $async$call$0);
  67100. case 9:
  67101. // returning from await.
  67102. case 3:
  67103. // join
  67104. // implicit return
  67105. return P._asyncReturn(null, $async$completer);
  67106. }
  67107. });
  67108. return P._asyncStartSync($async$call$0, $async$completer);
  67109. },
  67110. $signature: 2
  67111. };
  67112. E._EvaluateVisitor_visitSupportsRule__closure2.prototype = {
  67113. call$0: function() {
  67114. var $async$goto = 0,
  67115. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  67116. $async$self = this, t1, t2, t3, _i;
  67117. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67118. if ($async$errorCode === 1)
  67119. return P._asyncRethrow($async$result, $async$completer);
  67120. while (true)
  67121. switch ($async$goto) {
  67122. case 0:
  67123. // Function start
  67124. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  67125. case 2:
  67126. // for condition
  67127. if (!(_i < t2)) {
  67128. // goto after for
  67129. $async$goto = 4;
  67130. break;
  67131. }
  67132. $async$goto = 5;
  67133. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  67134. case 5:
  67135. // returning from await.
  67136. case 3:
  67137. // for update
  67138. ++_i;
  67139. // goto for condition
  67140. $async$goto = 2;
  67141. break;
  67142. case 4:
  67143. // after for
  67144. // implicit return
  67145. return P._asyncReturn(null, $async$completer);
  67146. }
  67147. });
  67148. return P._asyncStartSync($async$call$0, $async$completer);
  67149. },
  67150. $signature: 2
  67151. };
  67152. E._EvaluateVisitor_visitSupportsRule_closure6.prototype = {
  67153. call$1: function(node) {
  67154. return type$.CssStyleRule_2._is(node);
  67155. }
  67156. };
  67157. E._EvaluateVisitor_visitVariableDeclaration_closure8.prototype = {
  67158. call$0: function() {
  67159. var t1 = this.override;
  67160. this.$this._async_evaluate0$_environment.setVariable$4$global(this.node.name, t1.value, t1.assignmentNode, true);
  67161. },
  67162. $signature: 0
  67163. };
  67164. E._EvaluateVisitor_visitVariableDeclaration_closure9.prototype = {
  67165. call$0: function() {
  67166. var t1 = this.node;
  67167. return this.$this._async_evaluate0$_environment.getVariable$2$namespace(t1.name, t1.namespace);
  67168. },
  67169. $signature: 14
  67170. };
  67171. E._EvaluateVisitor_visitVariableDeclaration_closure10.prototype = {
  67172. call$0: function() {
  67173. var t1 = this.$this,
  67174. t2 = this.node;
  67175. t1._async_evaluate0$_environment.setVariable$5$global$namespace(t2.name, this.value, t1._async_evaluate0$_expressionNode$1(t2.expression), t2.isGlobal, t2.namespace);
  67176. },
  67177. $signature: 0
  67178. };
  67179. E._EvaluateVisitor_visitUseRule_closure2.prototype = {
  67180. call$1: function(module) {
  67181. var t1 = this.node;
  67182. this.$this._async_evaluate0$_environment.addModule$3$namespace(module, t1, t1.namespace);
  67183. }
  67184. };
  67185. E._EvaluateVisitor_visitWarnRule_closure2.prototype = {
  67186. call$0: function() {
  67187. return this.node.expression.accept$1(this.$this);
  67188. },
  67189. $signature: 19
  67190. };
  67191. E._EvaluateVisitor_visitWhileRule_closure2.prototype = {
  67192. call$0: function() {
  67193. var $async$goto = 0,
  67194. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  67195. $async$returnValue, $async$self = this, t1, t2, t3, result;
  67196. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67197. if ($async$errorCode === 1)
  67198. return P._asyncRethrow($async$result, $async$completer);
  67199. while (true)
  67200. switch ($async$goto) {
  67201. case 0:
  67202. // Function start
  67203. t1 = $async$self.node, t2 = t1.condition, t3 = $async$self.$this, t1 = t1.children;
  67204. case 3:
  67205. // for condition
  67206. $async$goto = 5;
  67207. return P._asyncAwait(t2.accept$1(t3), $async$call$0);
  67208. case 5:
  67209. // returning from await.
  67210. if (!$async$result.get$isTruthy()) {
  67211. // goto after for
  67212. $async$goto = 4;
  67213. break;
  67214. }
  67215. $async$goto = 6;
  67216. return P._asyncAwait(t3._async_evaluate0$_handleReturn$2(t1, new E._EvaluateVisitor_visitWhileRule__closure2(t3)), $async$call$0);
  67217. case 6:
  67218. // returning from await.
  67219. result = $async$result;
  67220. if (result != null) {
  67221. $async$returnValue = result;
  67222. // goto return
  67223. $async$goto = 1;
  67224. break;
  67225. }
  67226. // goto for condition
  67227. $async$goto = 3;
  67228. break;
  67229. case 4:
  67230. // after for
  67231. $async$returnValue = null;
  67232. // goto return
  67233. $async$goto = 1;
  67234. break;
  67235. case 1:
  67236. // return
  67237. return P._asyncReturn($async$returnValue, $async$completer);
  67238. }
  67239. });
  67240. return P._asyncStartSync($async$call$0, $async$completer);
  67241. },
  67242. $signature: 19
  67243. };
  67244. E._EvaluateVisitor_visitWhileRule__closure2.prototype = {
  67245. call$1: function(child) {
  67246. return child.accept$1(this.$this);
  67247. }
  67248. };
  67249. E._EvaluateVisitor_visitBinaryOperationExpression_closure2.prototype = {
  67250. call$0: function() {
  67251. var $async$goto = 0,
  67252. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  67253. $async$returnValue, $async$self = this, right, result, t1, t2, left, $async$temp1, $async$temp2;
  67254. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67255. if ($async$errorCode === 1)
  67256. return P._asyncRethrow($async$result, $async$completer);
  67257. while (true)
  67258. switch ($async$goto) {
  67259. case 0:
  67260. // Function start
  67261. t1 = $async$self.node;
  67262. t2 = $async$self.$this;
  67263. $async$goto = 3;
  67264. return P._asyncAwait(t1.left.accept$1(t2), $async$call$0);
  67265. case 3:
  67266. // returning from await.
  67267. left = $async$result;
  67268. case 4:
  67269. // switch
  67270. switch (t1.operator) {
  67271. case C.BinaryOperator_kjl0:
  67272. // goto case
  67273. $async$goto = 6;
  67274. break;
  67275. case C.BinaryOperator_or_or_10:
  67276. // goto case
  67277. $async$goto = 7;
  67278. break;
  67279. case C.BinaryOperator_and_and_20:
  67280. // goto case
  67281. $async$goto = 8;
  67282. break;
  67283. case C.BinaryOperator_YlX0:
  67284. // goto case
  67285. $async$goto = 9;
  67286. break;
  67287. case C.BinaryOperator_i5H0:
  67288. // goto case
  67289. $async$goto = 10;
  67290. break;
  67291. case C.BinaryOperator_AcR2:
  67292. // goto case
  67293. $async$goto = 11;
  67294. break;
  67295. case C.BinaryOperator_1da0:
  67296. // goto case
  67297. $async$goto = 12;
  67298. break;
  67299. case C.BinaryOperator_8qt0:
  67300. // goto case
  67301. $async$goto = 13;
  67302. break;
  67303. case C.BinaryOperator_33h0:
  67304. // goto case
  67305. $async$goto = 14;
  67306. break;
  67307. case C.BinaryOperator_AcR1:
  67308. // goto case
  67309. $async$goto = 15;
  67310. break;
  67311. case C.BinaryOperator_iyO0:
  67312. // goto case
  67313. $async$goto = 16;
  67314. break;
  67315. case C.BinaryOperator_O1M0:
  67316. // goto case
  67317. $async$goto = 17;
  67318. break;
  67319. case C.BinaryOperator_RTB0:
  67320. // goto case
  67321. $async$goto = 18;
  67322. break;
  67323. case C.BinaryOperator_2ad0:
  67324. // goto case
  67325. $async$goto = 19;
  67326. break;
  67327. default:
  67328. // goto default
  67329. $async$goto = 20;
  67330. break;
  67331. }
  67332. break;
  67333. case 6:
  67334. // case
  67335. $async$goto = 21;
  67336. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  67337. case 21:
  67338. // returning from await.
  67339. right = $async$result;
  67340. left.toString;
  67341. t1 = N.serializeValue(left, false, true) + "=";
  67342. right.toString;
  67343. $async$returnValue = new D.SassString0(t1 + N.serializeValue(right, false, true), false);
  67344. // goto return
  67345. $async$goto = 1;
  67346. break;
  67347. case 7:
  67348. // case
  67349. $async$goto = left.get$isTruthy() ? 22 : 24;
  67350. break;
  67351. case 22:
  67352. // then
  67353. $async$result = left;
  67354. // goto join
  67355. $async$goto = 23;
  67356. break;
  67357. case 24:
  67358. // else
  67359. $async$goto = 25;
  67360. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  67361. case 25:
  67362. // returning from await.
  67363. case 23:
  67364. // join
  67365. $async$returnValue = $async$result;
  67366. // goto return
  67367. $async$goto = 1;
  67368. break;
  67369. case 8:
  67370. // case
  67371. $async$goto = left.get$isTruthy() ? 26 : 28;
  67372. break;
  67373. case 26:
  67374. // then
  67375. $async$goto = 29;
  67376. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  67377. case 29:
  67378. // returning from await.
  67379. // goto join
  67380. $async$goto = 27;
  67381. break;
  67382. case 28:
  67383. // else
  67384. $async$result = left;
  67385. case 27:
  67386. // join
  67387. $async$returnValue = $async$result;
  67388. // goto return
  67389. $async$goto = 1;
  67390. break;
  67391. case 9:
  67392. // case
  67393. $async$temp1 = J;
  67394. $async$temp2 = left;
  67395. $async$goto = 30;
  67396. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  67397. case 30:
  67398. // returning from await.
  67399. $async$returnValue = $async$temp1.$eq$($async$temp2, $async$result) ? C.SassBoolean_true : C.SassBoolean_false;
  67400. // goto return
  67401. $async$goto = 1;
  67402. break;
  67403. case 10:
  67404. // case
  67405. $async$temp1 = J;
  67406. $async$temp2 = left;
  67407. $async$goto = 31;
  67408. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  67409. case 31:
  67410. // returning from await.
  67411. $async$returnValue = !$async$temp1.$eq$($async$temp2, $async$result) ? C.SassBoolean_true : C.SassBoolean_false;
  67412. // goto return
  67413. $async$goto = 1;
  67414. break;
  67415. case 11:
  67416. // case
  67417. $async$temp1 = left;
  67418. $async$goto = 32;
  67419. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  67420. case 32:
  67421. // returning from await.
  67422. $async$returnValue = $async$temp1.greaterThan$1($async$result);
  67423. // goto return
  67424. $async$goto = 1;
  67425. break;
  67426. case 12:
  67427. // case
  67428. $async$temp1 = left;
  67429. $async$goto = 33;
  67430. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  67431. case 33:
  67432. // returning from await.
  67433. $async$returnValue = $async$temp1.greaterThanOrEquals$1($async$result);
  67434. // goto return
  67435. $async$goto = 1;
  67436. break;
  67437. case 13:
  67438. // case
  67439. $async$temp1 = left;
  67440. $async$goto = 34;
  67441. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  67442. case 34:
  67443. // returning from await.
  67444. $async$returnValue = $async$temp1.lessThan$1($async$result);
  67445. // goto return
  67446. $async$goto = 1;
  67447. break;
  67448. case 14:
  67449. // case
  67450. $async$temp1 = left;
  67451. $async$goto = 35;
  67452. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  67453. case 35:
  67454. // returning from await.
  67455. $async$returnValue = $async$temp1.lessThanOrEquals$1($async$result);
  67456. // goto return
  67457. $async$goto = 1;
  67458. break;
  67459. case 15:
  67460. // case
  67461. $async$temp1 = left;
  67462. $async$goto = 36;
  67463. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  67464. case 36:
  67465. // returning from await.
  67466. $async$returnValue = $async$temp1.plus$1($async$result);
  67467. // goto return
  67468. $async$goto = 1;
  67469. break;
  67470. case 16:
  67471. // case
  67472. $async$temp1 = left;
  67473. $async$goto = 37;
  67474. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  67475. case 37:
  67476. // returning from await.
  67477. $async$returnValue = $async$temp1.minus$1($async$result);
  67478. // goto return
  67479. $async$goto = 1;
  67480. break;
  67481. case 17:
  67482. // case
  67483. $async$temp1 = left;
  67484. $async$goto = 38;
  67485. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  67486. case 38:
  67487. // returning from await.
  67488. $async$returnValue = $async$temp1.times$1($async$result);
  67489. // goto return
  67490. $async$goto = 1;
  67491. break;
  67492. case 18:
  67493. // case
  67494. $async$goto = 39;
  67495. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  67496. case 39:
  67497. // returning from await.
  67498. right = $async$result;
  67499. result = left.dividedBy$1(right);
  67500. if (t1.allowsSlash && left instanceof T.SassNumber0 && right instanceof T.SassNumber0) {
  67501. $async$returnValue = type$.SassNumber_2._as(result).withSlash$2(left, right);
  67502. // goto return
  67503. $async$goto = 1;
  67504. break;
  67505. } else {
  67506. $async$returnValue = result;
  67507. // goto return
  67508. $async$goto = 1;
  67509. break;
  67510. }
  67511. case 19:
  67512. // case
  67513. $async$temp1 = left;
  67514. $async$goto = 40;
  67515. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  67516. case 40:
  67517. // returning from await.
  67518. $async$returnValue = $async$temp1.modulo$1($async$result);
  67519. // goto return
  67520. $async$goto = 1;
  67521. break;
  67522. case 20:
  67523. // default
  67524. $async$returnValue = null;
  67525. // goto return
  67526. $async$goto = 1;
  67527. break;
  67528. case 5:
  67529. // after switch
  67530. case 1:
  67531. // return
  67532. return P._asyncReturn($async$returnValue, $async$completer);
  67533. }
  67534. });
  67535. return P._asyncStartSync($async$call$0, $async$completer);
  67536. },
  67537. $signature: 19
  67538. };
  67539. E._EvaluateVisitor_visitVariableExpression_closure2.prototype = {
  67540. call$0: function() {
  67541. var t1 = this.node;
  67542. return this.$this._async_evaluate0$_environment.getVariable$2$namespace(t1.name, t1.namespace);
  67543. },
  67544. $signature: 14
  67545. };
  67546. E._EvaluateVisitor_visitListExpression_closure2.prototype = {
  67547. call$1: function(expression) {
  67548. return expression.accept$1(this.$this);
  67549. }
  67550. };
  67551. E._EvaluateVisitor_visitFunctionExpression_closure5.prototype = {
  67552. call$0: function() {
  67553. var t1 = this.node.namespace,
  67554. t2 = this.plainName;
  67555. if (t1 == null)
  67556. t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
  67557. return this.$this._async_evaluate0$_getFunction$2$namespace(t2, t1);
  67558. },
  67559. $signature: 49
  67560. };
  67561. E._EvaluateVisitor_visitFunctionExpression_closure6.prototype = {
  67562. call$0: function() {
  67563. var t1 = this.node;
  67564. return this.$this._async_evaluate0$_runFunctionCallable$3(t1.$arguments, this._box_0.$function, t1);
  67565. },
  67566. $signature: 19
  67567. };
  67568. E._EvaluateVisitor__runUserDefinedCallable_closure2.prototype = {
  67569. call$0: function() {
  67570. var _this = this,
  67571. t1 = _this.$this,
  67572. t2 = _this.callable;
  67573. return t1._async_evaluate0$_withEnvironment$1$2(t2.environment.closure$0(), new E._EvaluateVisitor__runUserDefinedCallable__closure2(t1, _this.evaluated, t2, _this.nodeWithSpan, _this.run), type$.Value_2);
  67574. },
  67575. $signature: 19
  67576. };
  67577. E._EvaluateVisitor__runUserDefinedCallable__closure2.prototype = {
  67578. call$0: function() {
  67579. var _this = this,
  67580. t1 = _this.$this;
  67581. return t1._async_evaluate0$_environment.scope$1$1(new E._EvaluateVisitor__runUserDefinedCallable___closure2(t1, _this.evaluated, _this.callable, _this.nodeWithSpan, _this.run), type$.Value_2);
  67582. },
  67583. $signature: 19
  67584. };
  67585. E._EvaluateVisitor__runUserDefinedCallable___closure2.prototype = {
  67586. call$0: function() {
  67587. var $async$goto = 0,
  67588. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  67589. $async$returnValue, $async$self = this, declaredArguments, minLength, t8, i, t9, t10, t11, argument, value, t12, rest, argumentList, result, argumentWord, argumentNames, t1, t2, t3, t4, t5, t6, t7;
  67590. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67591. if ($async$errorCode === 1)
  67592. return P._asyncRethrow($async$result, $async$completer);
  67593. while (true)
  67594. switch ($async$goto) {
  67595. case 0:
  67596. // Function start
  67597. t1 = $async$self.$this;
  67598. t2 = $async$self.evaluated;
  67599. t3 = t2.positional;
  67600. t4 = t3.length;
  67601. t5 = t2.named;
  67602. t6 = $async$self.callable.declaration.$arguments;
  67603. t7 = $async$self.nodeWithSpan;
  67604. t1._async_evaluate0$_verifyArguments$4(t4, t5, t6, t7);
  67605. declaredArguments = t6.$arguments;
  67606. t4 = declaredArguments.length;
  67607. minLength = Math.min(t3.length, t4);
  67608. for (t8 = t1._async_evaluate0$_sourceMap, i = 0; i < minLength; ++i) {
  67609. t9 = t1._async_evaluate0$_environment;
  67610. t10 = declaredArguments[i].name;
  67611. t11 = t3[i].withoutSlash$0();
  67612. t9.setLocalVariable$3(t10, t11, t8 ? t2.positionalNodes[i] : null);
  67613. }
  67614. i = t3.length;
  67615. case 3:
  67616. // for condition
  67617. if (!(i < t4)) {
  67618. // goto after for
  67619. $async$goto = 5;
  67620. break;
  67621. }
  67622. argument = declaredArguments[i];
  67623. t9 = argument.name;
  67624. value = t5.remove$1(0, t9);
  67625. $async$goto = value == null ? 6 : 7;
  67626. break;
  67627. case 6:
  67628. // then
  67629. $async$goto = 8;
  67630. return P._asyncAwait(argument.defaultValue.accept$1(t1), $async$call$0);
  67631. case 8:
  67632. // returning from await.
  67633. value = $async$result;
  67634. case 7:
  67635. // join
  67636. t10 = t1._async_evaluate0$_environment;
  67637. t11 = value.withoutSlash$0();
  67638. if (t8) {
  67639. t12 = t2.namedNodes.$index(0, t9);
  67640. if (t12 == null)
  67641. t12 = t1._async_evaluate0$_expressionNode$1(argument.defaultValue);
  67642. } else
  67643. t12 = null;
  67644. t10.setLocalVariable$3(t9, t11, t12);
  67645. case 4:
  67646. // for update
  67647. ++i;
  67648. // goto for condition
  67649. $async$goto = 3;
  67650. break;
  67651. case 5:
  67652. // after for
  67653. t8 = t6.restArgument;
  67654. if (t8 != null) {
  67655. rest = t3.length > t4 ? C.JSArray_methods.sublist$1(t3, t4) : C.List_empty16;
  67656. t2 = t2.separator;
  67657. if (t2 === C.ListSeparator_undecided0)
  67658. t2 = C.ListSeparator_comma0;
  67659. t3 = type$.Value_2;
  67660. argumentList = new D.SassArgumentList0(H.ConstantMap_ConstantMap$from(t5, type$.String, t3), P.List_List$unmodifiable(rest, t3), t2, false);
  67661. argumentList.SassList$3$brackets0(rest, t2, false);
  67662. t1._async_evaluate0$_environment.setLocalVariable$3(t8, argumentList, t7);
  67663. } else
  67664. argumentList = null;
  67665. $async$goto = 9;
  67666. return P._asyncAwait($async$self.run.call$0(), $async$call$0);
  67667. case 9:
  67668. // returning from await.
  67669. result = $async$result;
  67670. if (argumentList == null) {
  67671. $async$returnValue = result;
  67672. // goto return
  67673. $async$goto = 1;
  67674. break;
  67675. }
  67676. if (t5.get$isEmpty(t5)) {
  67677. $async$returnValue = result;
  67678. // goto return
  67679. $async$goto = 1;
  67680. break;
  67681. }
  67682. if (argumentList._argument_list$_wereKeywordsAccessed) {
  67683. $async$returnValue = result;
  67684. // goto return
  67685. $async$goto = 1;
  67686. break;
  67687. }
  67688. argumentWord = B.pluralize0("argument", J.get$length$asx(t5.get$keys()), null);
  67689. argumentNames = B.toSentence0(J.map$1$1$ax(t5.get$keys(), new E._EvaluateVisitor__runUserDefinedCallable____closure2(), type$.Object), "or");
  67690. throw H.wrapException(E.MultiSpanSassRuntimeException$0("No " + argumentWord + " named " + H.S(argumentNames) + ".", t7.get$span(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([t6.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), t1._async_evaluate0$_stackTrace$1(t7.get$span())));
  67691. case 1:
  67692. // return
  67693. return P._asyncReturn($async$returnValue, $async$completer);
  67694. }
  67695. });
  67696. return P._asyncStartSync($async$call$0, $async$completer);
  67697. },
  67698. $signature: 19
  67699. };
  67700. E._EvaluateVisitor__runUserDefinedCallable____closure2.prototype = {
  67701. call$1: function($name) {
  67702. return "$" + H.S($name);
  67703. }
  67704. };
  67705. E._EvaluateVisitor__runFunctionCallable_closure2.prototype = {
  67706. call$0: function() {
  67707. var $async$goto = 0,
  67708. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  67709. $async$returnValue, $async$self = this, t1, t2, t3, t4, _i, $returnValue;
  67710. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67711. if ($async$errorCode === 1)
  67712. return P._asyncRethrow($async$result, $async$completer);
  67713. while (true)
  67714. switch ($async$goto) {
  67715. case 0:
  67716. // Function start
  67717. t1 = $async$self.callable.declaration, t2 = t1.children, t3 = t2.length, t4 = $async$self.$this, _i = 0;
  67718. case 3:
  67719. // for condition
  67720. if (!(_i < t3)) {
  67721. // goto after for
  67722. $async$goto = 5;
  67723. break;
  67724. }
  67725. $async$goto = 6;
  67726. return P._asyncAwait(t2[_i].accept$1(t4), $async$call$0);
  67727. case 6:
  67728. // returning from await.
  67729. $returnValue = $async$result;
  67730. if ($returnValue instanceof F.Value0) {
  67731. $async$returnValue = $returnValue;
  67732. // goto return
  67733. $async$goto = 1;
  67734. break;
  67735. }
  67736. case 4:
  67737. // for update
  67738. ++_i;
  67739. // goto for condition
  67740. $async$goto = 3;
  67741. break;
  67742. case 5:
  67743. // after for
  67744. throw H.wrapException(t4._async_evaluate0$_exception$2("Function finished without @return.", t1.span));
  67745. case 1:
  67746. // return
  67747. return P._asyncReturn($async$returnValue, $async$completer);
  67748. }
  67749. });
  67750. return P._asyncStartSync($async$call$0, $async$completer);
  67751. },
  67752. $signature: 19
  67753. };
  67754. E._EvaluateVisitor__runBuiltInCallable_closure5.prototype = {
  67755. call$0: function() {
  67756. return this.overload.verify$2(this.evaluated.positional.length, this.namedSet);
  67757. },
  67758. $signature: 1
  67759. };
  67760. E._EvaluateVisitor__runBuiltInCallable_closure6.prototype = {
  67761. call$1: function($name) {
  67762. return "$" + H.S($name);
  67763. }
  67764. };
  67765. E._EvaluateVisitor__evaluateArguments_closure8.prototype = {
  67766. call$2: function(_, expression) {
  67767. return expression.accept$1(this.$this);
  67768. }
  67769. };
  67770. E._EvaluateVisitor__evaluateArguments_closure9.prototype = {
  67771. call$2: function(_, expression) {
  67772. return this.$this._async_evaluate0$_expressionNode$1(expression);
  67773. }
  67774. };
  67775. E._EvaluateVisitor__evaluateArguments_closure10.prototype = {
  67776. call$2: function(key, value) {
  67777. var t1;
  67778. this.named.$indexSet(0, key, value);
  67779. t1 = this.namedNodes;
  67780. if (t1 != null)
  67781. t1.$indexSet(0, key, this.restNodeForSpan);
  67782. }
  67783. };
  67784. E._EvaluateVisitor__evaluateMacroArguments_closure11.prototype = {
  67785. call$1: function(value) {
  67786. return new F.ValueExpression0(value, null);
  67787. }
  67788. };
  67789. E._EvaluateVisitor__evaluateMacroArguments_closure12.prototype = {
  67790. call$1: function(value) {
  67791. return new F.ValueExpression0(value, null);
  67792. }
  67793. };
  67794. E._EvaluateVisitor__evaluateMacroArguments_closure13.prototype = {
  67795. call$2: function(key, value) {
  67796. this.named.$indexSet(0, key, new F.ValueExpression0(value, null));
  67797. }
  67798. };
  67799. E._EvaluateVisitor__evaluateMacroArguments_closure14.prototype = {
  67800. call$1: function(value) {
  67801. return new F.ValueExpression0(value, null);
  67802. }
  67803. };
  67804. E._EvaluateVisitor__addRestMap_closure5.prototype = {
  67805. call$1: function(value) {
  67806. return this.T._as(value);
  67807. }
  67808. };
  67809. E._EvaluateVisitor__addRestMap_closure6.prototype = {
  67810. call$2: function(key, value) {
  67811. var _this = this;
  67812. if (key instanceof D.SassString0)
  67813. _this.values.$indexSet(0, key.text, _this._box_0.convert.call$1(value));
  67814. else
  67815. throw H.wrapException(_this.$this._async_evaluate0$_exception$2("Variable keyword argument map must have string keys.\n" + H.S(key) + " is not a string in " + _this.map.toString$0(0) + ".", _this.nodeWithSpan.get$span()));
  67816. }
  67817. };
  67818. E._EvaluateVisitor__verifyArguments_closure2.prototype = {
  67819. call$0: function() {
  67820. return this.$arguments.verify$2(this.positional, new M.MapKeySet(this.named, type$.MapKeySet_String));
  67821. },
  67822. $signature: 1
  67823. };
  67824. E._EvaluateVisitor_visitStringExpression_closure2.prototype = {
  67825. call$1: function(value) {
  67826. var $async$goto = 0,
  67827. $async$completer = P._makeAsyncAwaitCompleter(type$.String),
  67828. $async$returnValue, $async$self = this, t1, result;
  67829. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67830. if ($async$errorCode === 1)
  67831. return P._asyncRethrow($async$result, $async$completer);
  67832. while (true)
  67833. switch ($async$goto) {
  67834. case 0:
  67835. // Function start
  67836. if (typeof value == "string") {
  67837. $async$returnValue = value;
  67838. // goto return
  67839. $async$goto = 1;
  67840. break;
  67841. }
  67842. type$.Expression_2._as(value);
  67843. t1 = $async$self.$this;
  67844. $async$goto = 3;
  67845. return P._asyncAwait(value.accept$1(t1), $async$call$1);
  67846. case 3:
  67847. // returning from await.
  67848. result = $async$result;
  67849. $async$returnValue = result instanceof D.SassString0 ? result.text : t1._async_evaluate0$_serialize$3$quote(result, value, false);
  67850. // goto return
  67851. $async$goto = 1;
  67852. break;
  67853. case 1:
  67854. // return
  67855. return P._asyncReturn($async$returnValue, $async$completer);
  67856. }
  67857. });
  67858. return P._asyncStartSync($async$call$1, $async$completer);
  67859. },
  67860. $signature: 43
  67861. };
  67862. E._EvaluateVisitor_visitCssAtRule_closure5.prototype = {
  67863. call$0: function() {
  67864. var $async$goto = 0,
  67865. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  67866. $async$self = this, t1, t2;
  67867. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67868. if ($async$errorCode === 1)
  67869. return P._asyncRethrow($async$result, $async$completer);
  67870. while (true)
  67871. switch ($async$goto) {
  67872. case 0:
  67873. // Function start
  67874. t1 = $async$self.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this;
  67875. case 2:
  67876. // for condition
  67877. if (!t1.moveNext$0()) {
  67878. // goto after for
  67879. $async$goto = 3;
  67880. break;
  67881. }
  67882. $async$goto = 4;
  67883. return P._asyncAwait(t1.__internal$_current.accept$1(t2), $async$call$0);
  67884. case 4:
  67885. // returning from await.
  67886. // goto for condition
  67887. $async$goto = 2;
  67888. break;
  67889. case 3:
  67890. // after for
  67891. // implicit return
  67892. return P._asyncReturn(null, $async$completer);
  67893. }
  67894. });
  67895. return P._asyncStartSync($async$call$0, $async$completer);
  67896. },
  67897. $signature: 2
  67898. };
  67899. E._EvaluateVisitor_visitCssAtRule_closure6.prototype = {
  67900. call$1: function(node) {
  67901. return type$.CssStyleRule_2._is(node);
  67902. }
  67903. };
  67904. E._EvaluateVisitor_visitCssKeyframeBlock_closure5.prototype = {
  67905. call$0: function() {
  67906. var $async$goto = 0,
  67907. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  67908. $async$self = this, t1, t2;
  67909. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67910. if ($async$errorCode === 1)
  67911. return P._asyncRethrow($async$result, $async$completer);
  67912. while (true)
  67913. switch ($async$goto) {
  67914. case 0:
  67915. // Function start
  67916. t1 = $async$self.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this;
  67917. case 2:
  67918. // for condition
  67919. if (!t1.moveNext$0()) {
  67920. // goto after for
  67921. $async$goto = 3;
  67922. break;
  67923. }
  67924. $async$goto = 4;
  67925. return P._asyncAwait(t1.__internal$_current.accept$1(t2), $async$call$0);
  67926. case 4:
  67927. // returning from await.
  67928. // goto for condition
  67929. $async$goto = 2;
  67930. break;
  67931. case 3:
  67932. // after for
  67933. // implicit return
  67934. return P._asyncReturn(null, $async$completer);
  67935. }
  67936. });
  67937. return P._asyncStartSync($async$call$0, $async$completer);
  67938. },
  67939. $signature: 2
  67940. };
  67941. E._EvaluateVisitor_visitCssKeyframeBlock_closure6.prototype = {
  67942. call$1: function(node) {
  67943. return type$.CssStyleRule_2._is(node);
  67944. }
  67945. };
  67946. E._EvaluateVisitor_visitCssMediaRule_closure5.prototype = {
  67947. call$0: function() {
  67948. var $async$goto = 0,
  67949. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  67950. $async$self = this, t1, t2;
  67951. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67952. if ($async$errorCode === 1)
  67953. return P._asyncRethrow($async$result, $async$completer);
  67954. while (true)
  67955. switch ($async$goto) {
  67956. case 0:
  67957. // Function start
  67958. t1 = $async$self.$this;
  67959. t2 = $async$self.mergedQueries;
  67960. if (t2 == null)
  67961. t2 = $async$self.node.queries;
  67962. $async$goto = 2;
  67963. return P._asyncAwait(t1._async_evaluate0$_withMediaQueries$1$2(t2, new E._EvaluateVisitor_visitCssMediaRule__closure2(t1, $async$self.node), type$.Null), $async$call$0);
  67964. case 2:
  67965. // returning from await.
  67966. // implicit return
  67967. return P._asyncReturn(null, $async$completer);
  67968. }
  67969. });
  67970. return P._asyncStartSync($async$call$0, $async$completer);
  67971. },
  67972. $signature: 2
  67973. };
  67974. E._EvaluateVisitor_visitCssMediaRule__closure2.prototype = {
  67975. call$0: function() {
  67976. var $async$goto = 0,
  67977. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  67978. $async$self = this, t1, t2;
  67979. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67980. if ($async$errorCode === 1)
  67981. return P._asyncRethrow($async$result, $async$completer);
  67982. while (true)
  67983. switch ($async$goto) {
  67984. case 0:
  67985. // Function start
  67986. t1 = $async$self.$this;
  67987. t2 = t1._async_evaluate0$_styleRule;
  67988. $async$goto = !(t2 != null && !t1._async_evaluate0$_atRootExcludingStyleRule) ? 2 : 4;
  67989. break;
  67990. case 2:
  67991. // then
  67992. t2 = $async$self.node.children, t2 = new H.ListIterator(t2, t2.get$length(t2));
  67993. case 5:
  67994. // for condition
  67995. if (!t2.moveNext$0()) {
  67996. // goto after for
  67997. $async$goto = 6;
  67998. break;
  67999. }
  68000. $async$goto = 7;
  68001. return P._asyncAwait(t2.__internal$_current.accept$1(t1), $async$call$0);
  68002. case 7:
  68003. // returning from await.
  68004. // goto for condition
  68005. $async$goto = 5;
  68006. break;
  68007. case 6:
  68008. // after for
  68009. // goto join
  68010. $async$goto = 3;
  68011. break;
  68012. case 4:
  68013. // else
  68014. $async$goto = 8;
  68015. return P._asyncAwait(t1._async_evaluate0$_withParent$2$3$scopeWhen(X.ModifiableCssStyleRule$0(t2.selector, t2.span, t2.originalSelector), new E._EvaluateVisitor_visitCssMediaRule___closure2(t1, $async$self.node), false, type$.ModifiableCssStyleRule_2, type$.Null), $async$call$0);
  68016. case 8:
  68017. // returning from await.
  68018. case 3:
  68019. // join
  68020. // implicit return
  68021. return P._asyncReturn(null, $async$completer);
  68022. }
  68023. });
  68024. return P._asyncStartSync($async$call$0, $async$completer);
  68025. },
  68026. $signature: 2
  68027. };
  68028. E._EvaluateVisitor_visitCssMediaRule___closure2.prototype = {
  68029. call$0: function() {
  68030. var $async$goto = 0,
  68031. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  68032. $async$self = this, t1, t2;
  68033. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68034. if ($async$errorCode === 1)
  68035. return P._asyncRethrow($async$result, $async$completer);
  68036. while (true)
  68037. switch ($async$goto) {
  68038. case 0:
  68039. // Function start
  68040. t1 = $async$self.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this;
  68041. case 2:
  68042. // for condition
  68043. if (!t1.moveNext$0()) {
  68044. // goto after for
  68045. $async$goto = 3;
  68046. break;
  68047. }
  68048. $async$goto = 4;
  68049. return P._asyncAwait(t1.__internal$_current.accept$1(t2), $async$call$0);
  68050. case 4:
  68051. // returning from await.
  68052. // goto for condition
  68053. $async$goto = 2;
  68054. break;
  68055. case 3:
  68056. // after for
  68057. // implicit return
  68058. return P._asyncReturn(null, $async$completer);
  68059. }
  68060. });
  68061. return P._asyncStartSync($async$call$0, $async$completer);
  68062. },
  68063. $signature: 2
  68064. };
  68065. E._EvaluateVisitor_visitCssMediaRule_closure6.prototype = {
  68066. call$1: function(node) {
  68067. var t1;
  68068. if (!type$.CssStyleRule_2._is(node))
  68069. t1 = this.mergedQueries != null && type$.CssMediaRule_2._is(node);
  68070. else
  68071. t1 = true;
  68072. return t1;
  68073. }
  68074. };
  68075. E._EvaluateVisitor_visitCssStyleRule_closure5.prototype = {
  68076. call$0: function() {
  68077. var $async$goto = 0,
  68078. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  68079. $async$self = this, t1;
  68080. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68081. if ($async$errorCode === 1)
  68082. return P._asyncRethrow($async$result, $async$completer);
  68083. while (true)
  68084. switch ($async$goto) {
  68085. case 0:
  68086. // Function start
  68087. t1 = $async$self.$this;
  68088. $async$goto = 2;
  68089. return P._asyncAwait(t1._async_evaluate0$_withStyleRule$1$2($async$self.rule, new E._EvaluateVisitor_visitCssStyleRule__closure2(t1, $async$self.node), type$.Null), $async$call$0);
  68090. case 2:
  68091. // returning from await.
  68092. // implicit return
  68093. return P._asyncReturn(null, $async$completer);
  68094. }
  68095. });
  68096. return P._asyncStartSync($async$call$0, $async$completer);
  68097. },
  68098. $signature: 2
  68099. };
  68100. E._EvaluateVisitor_visitCssStyleRule__closure2.prototype = {
  68101. call$0: function() {
  68102. var $async$goto = 0,
  68103. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  68104. $async$self = this, t1, t2;
  68105. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68106. if ($async$errorCode === 1)
  68107. return P._asyncRethrow($async$result, $async$completer);
  68108. while (true)
  68109. switch ($async$goto) {
  68110. case 0:
  68111. // Function start
  68112. t1 = $async$self.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this;
  68113. case 2:
  68114. // for condition
  68115. if (!t1.moveNext$0()) {
  68116. // goto after for
  68117. $async$goto = 3;
  68118. break;
  68119. }
  68120. $async$goto = 4;
  68121. return P._asyncAwait(t1.__internal$_current.accept$1(t2), $async$call$0);
  68122. case 4:
  68123. // returning from await.
  68124. // goto for condition
  68125. $async$goto = 2;
  68126. break;
  68127. case 3:
  68128. // after for
  68129. // implicit return
  68130. return P._asyncReturn(null, $async$completer);
  68131. }
  68132. });
  68133. return P._asyncStartSync($async$call$0, $async$completer);
  68134. },
  68135. $signature: 2
  68136. };
  68137. E._EvaluateVisitor_visitCssStyleRule_closure6.prototype = {
  68138. call$1: function(node) {
  68139. return type$.CssStyleRule_2._is(node);
  68140. }
  68141. };
  68142. E._EvaluateVisitor_visitCssSupportsRule_closure5.prototype = {
  68143. call$0: function() {
  68144. var $async$goto = 0,
  68145. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  68146. $async$self = this, t1, t2;
  68147. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68148. if ($async$errorCode === 1)
  68149. return P._asyncRethrow($async$result, $async$completer);
  68150. while (true)
  68151. switch ($async$goto) {
  68152. case 0:
  68153. // Function start
  68154. t1 = $async$self.$this;
  68155. t2 = t1._async_evaluate0$_styleRule;
  68156. $async$goto = !(t2 != null && !t1._async_evaluate0$_atRootExcludingStyleRule) ? 2 : 4;
  68157. break;
  68158. case 2:
  68159. // then
  68160. t2 = $async$self.node.children, t2 = new H.ListIterator(t2, t2.get$length(t2));
  68161. case 5:
  68162. // for condition
  68163. if (!t2.moveNext$0()) {
  68164. // goto after for
  68165. $async$goto = 6;
  68166. break;
  68167. }
  68168. $async$goto = 7;
  68169. return P._asyncAwait(t2.__internal$_current.accept$1(t1), $async$call$0);
  68170. case 7:
  68171. // returning from await.
  68172. // goto for condition
  68173. $async$goto = 5;
  68174. break;
  68175. case 6:
  68176. // after for
  68177. // goto join
  68178. $async$goto = 3;
  68179. break;
  68180. case 4:
  68181. // else
  68182. $async$goto = 8;
  68183. return P._asyncAwait(t1._async_evaluate0$_withParent$2$2(X.ModifiableCssStyleRule$0(t2.selector, t2.span, t2.originalSelector), new E._EvaluateVisitor_visitCssSupportsRule__closure2(t1, $async$self.node), type$.ModifiableCssStyleRule_2, type$.Null), $async$call$0);
  68184. case 8:
  68185. // returning from await.
  68186. case 3:
  68187. // join
  68188. // implicit return
  68189. return P._asyncReturn(null, $async$completer);
  68190. }
  68191. });
  68192. return P._asyncStartSync($async$call$0, $async$completer);
  68193. },
  68194. $signature: 2
  68195. };
  68196. E._EvaluateVisitor_visitCssSupportsRule__closure2.prototype = {
  68197. call$0: function() {
  68198. var $async$goto = 0,
  68199. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  68200. $async$self = this, t1, t2;
  68201. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68202. if ($async$errorCode === 1)
  68203. return P._asyncRethrow($async$result, $async$completer);
  68204. while (true)
  68205. switch ($async$goto) {
  68206. case 0:
  68207. // Function start
  68208. t1 = $async$self.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this;
  68209. case 2:
  68210. // for condition
  68211. if (!t1.moveNext$0()) {
  68212. // goto after for
  68213. $async$goto = 3;
  68214. break;
  68215. }
  68216. $async$goto = 4;
  68217. return P._asyncAwait(t1.__internal$_current.accept$1(t2), $async$call$0);
  68218. case 4:
  68219. // returning from await.
  68220. // goto for condition
  68221. $async$goto = 2;
  68222. break;
  68223. case 3:
  68224. // after for
  68225. // implicit return
  68226. return P._asyncReturn(null, $async$completer);
  68227. }
  68228. });
  68229. return P._asyncStartSync($async$call$0, $async$completer);
  68230. },
  68231. $signature: 2
  68232. };
  68233. E._EvaluateVisitor_visitCssSupportsRule_closure6.prototype = {
  68234. call$1: function(node) {
  68235. return type$.CssStyleRule_2._is(node);
  68236. }
  68237. };
  68238. E._EvaluateVisitor__performInterpolation_closure2.prototype = {
  68239. call$1: function(value) {
  68240. var $async$goto = 0,
  68241. $async$completer = P._makeAsyncAwaitCompleter(type$.String),
  68242. $async$returnValue, $async$self = this, t1, result, t2, t3;
  68243. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68244. if ($async$errorCode === 1)
  68245. return P._asyncRethrow($async$result, $async$completer);
  68246. while (true)
  68247. switch ($async$goto) {
  68248. case 0:
  68249. // Function start
  68250. if (typeof value == "string") {
  68251. $async$returnValue = value;
  68252. // goto return
  68253. $async$goto = 1;
  68254. break;
  68255. }
  68256. type$.Expression_2._as(value);
  68257. t1 = $async$self.$this;
  68258. $async$goto = 3;
  68259. return P._asyncAwait(value.accept$1(t1), $async$call$1);
  68260. case 3:
  68261. // returning from await.
  68262. result = $async$result;
  68263. if ($async$self.warnForColor && result instanceof K.SassColor0 && $.$get$namesByColor0().containsKey$1(result)) {
  68264. t2 = X.Interpolation$0([""], null);
  68265. t3 = $.$get$namesByColor0();
  68266. t1._async_evaluate0$_warn$2("You probably don't mean to use the color value " + H.S(t3.$index(0, result)) + " in interpolation here.\nIt may end up represented as " + H.S(result) + ', which will likely produce invalid CSS.\nAlways quote color names when using them as strings or map keys (for example, "' + H.S(t3.$index(0, result)) + "\").\nIf you really want to use the color value here, use '" + new V.BinaryOperationExpression0(C.BinaryOperator_AcR1, new D.StringExpression0(t2, true), value, false).toString$0(0) + "'.", value.get$span());
  68267. }
  68268. $async$returnValue = t1._async_evaluate0$_serialize$3$quote(result, value, false);
  68269. // goto return
  68270. $async$goto = 1;
  68271. break;
  68272. case 1:
  68273. // return
  68274. return P._asyncReturn($async$returnValue, $async$completer);
  68275. }
  68276. });
  68277. return P._asyncStartSync($async$call$1, $async$completer);
  68278. },
  68279. $signature: 43
  68280. };
  68281. E._EvaluateVisitor__serialize_closure2.prototype = {
  68282. call$0: function() {
  68283. var t1 = this.value;
  68284. t1.toString;
  68285. return N.serializeValue(t1, false, this.quote);
  68286. },
  68287. $signature: 10
  68288. };
  68289. E._EvaluateVisitor__stackTrace_closure2.prototype = {
  68290. call$1: function(tuple) {
  68291. return this.$this._async_evaluate0$_stackFrame$2(tuple.item1, tuple.item2.get$span());
  68292. }
  68293. };
  68294. E._ImportedCssVisitor2.prototype = {
  68295. visitCssAtRule$1: function(node) {
  68296. var t1 = node.isChildless ? null : new E._ImportedCssVisitor_visitCssAtRule_closure2();
  68297. this._async_evaluate0$_visitor._async_evaluate0$_addChild$2$through(node, t1);
  68298. },
  68299. visitCssComment$1: function(node) {
  68300. return this._async_evaluate0$_visitor._async_evaluate0$_addChild$1(node);
  68301. },
  68302. visitCssDeclaration$1: function(node) {
  68303. },
  68304. visitCssImport$1: function(node) {
  68305. var t1 = this._async_evaluate0$_visitor,
  68306. t2 = t1._async_evaluate0$_parent,
  68307. t3 = t1._async_evaluate0$_root;
  68308. if (t2 != t3)
  68309. t1._async_evaluate0$_addChild$1(node);
  68310. else if (t1._async_evaluate0$_endOfImports === J.get$length$asx(t3.children._collection$_source)) {
  68311. t1._async_evaluate0$_addChild$1(node);
  68312. t1._async_evaluate0$_endOfImports = t1._async_evaluate0$_endOfImports + 1;
  68313. } else {
  68314. t2 = t1._async_evaluate0$_outOfOrderImports;
  68315. (t2 == null ? t1._async_evaluate0$_outOfOrderImports = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssImport_2) : t2).push(node);
  68316. }
  68317. },
  68318. visitCssKeyframeBlock$1: function(node) {
  68319. },
  68320. visitCssMediaRule$1: function(node) {
  68321. var t1 = this._async_evaluate0$_visitor,
  68322. t2 = t1._async_evaluate0$_mediaQueries;
  68323. t1._async_evaluate0$_addChild$2$through(node, new E._ImportedCssVisitor_visitCssMediaRule_closure2(t2 == null || t1._async_evaluate0$_mergeMediaQueries$2(t2, node.queries) != null));
  68324. },
  68325. visitCssStyleRule$1: function(node) {
  68326. return this._async_evaluate0$_visitor._async_evaluate0$_addChild$2$through(node, new E._ImportedCssVisitor_visitCssStyleRule_closure2());
  68327. },
  68328. visitCssStylesheet$1: function(node) {
  68329. var t1;
  68330. for (t1 = node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();)
  68331. t1.__internal$_current.accept$1(this);
  68332. },
  68333. visitCssSupportsRule$1: function(node) {
  68334. return this._async_evaluate0$_visitor._async_evaluate0$_addChild$2$through(node, new E._ImportedCssVisitor_visitCssSupportsRule_closure2());
  68335. }
  68336. };
  68337. E._ImportedCssVisitor_visitCssAtRule_closure2.prototype = {
  68338. call$1: function(node) {
  68339. return type$.CssStyleRule_2._is(node);
  68340. }
  68341. };
  68342. E._ImportedCssVisitor_visitCssMediaRule_closure2.prototype = {
  68343. call$1: function(node) {
  68344. var t1;
  68345. if (!type$.CssStyleRule_2._is(node))
  68346. t1 = this.hasBeenMerged && type$.CssMediaRule_2._is(node);
  68347. else
  68348. t1 = true;
  68349. return t1;
  68350. }
  68351. };
  68352. E._ImportedCssVisitor_visitCssStyleRule_closure2.prototype = {
  68353. call$1: function(node) {
  68354. return type$.CssStyleRule_2._is(node);
  68355. }
  68356. };
  68357. E._ImportedCssVisitor_visitCssSupportsRule_closure2.prototype = {
  68358. call$1: function(node) {
  68359. return type$.CssStyleRule_2._is(node);
  68360. }
  68361. };
  68362. E.EvaluateResult0.prototype = {};
  68363. E._ArgumentResults2.prototype = {};
  68364. O.AsyncImportCache0.prototype = {
  68365. canonicalize$4$baseImporter$baseUrl$forImport: function(url, baseImporter, baseUrl, forImport) {
  68366. return this.canonicalize$body$AsyncImportCache0(url, baseImporter, baseUrl, forImport);
  68367. },
  68368. canonicalize$body$AsyncImportCache0: function(url, baseImporter, baseUrl, forImport) {
  68369. var $async$goto = 0,
  68370. $async$completer = P._makeAsyncAwaitCompleter(type$.Tuple3_AsyncImporter_Uri_Uri),
  68371. $async$returnValue, $async$self = this, resolvedUrl, canonicalUrl, t1;
  68372. var $async$canonicalize$4$baseImporter$baseUrl$forImport = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68373. if ($async$errorCode === 1)
  68374. return P._asyncRethrow($async$result, $async$completer);
  68375. while (true)
  68376. switch ($async$goto) {
  68377. case 0:
  68378. // Function start
  68379. $async$goto = baseImporter != null ? 3 : 4;
  68380. break;
  68381. case 3:
  68382. // then
  68383. resolvedUrl = baseUrl != null ? baseUrl.resolveUri$1(url) : url;
  68384. $async$goto = 5;
  68385. return P._asyncAwait($async$self._async_import_cache0$_canonicalize$3(baseImporter, resolvedUrl, forImport), $async$canonicalize$4$baseImporter$baseUrl$forImport);
  68386. case 5:
  68387. // returning from await.
  68388. canonicalUrl = $async$result;
  68389. if (canonicalUrl != null) {
  68390. $async$returnValue = new S.Tuple3(baseImporter, canonicalUrl, resolvedUrl, type$.Tuple3_AsyncImporter_Uri_Uri);
  68391. // goto return
  68392. $async$goto = 1;
  68393. break;
  68394. }
  68395. case 4:
  68396. // join
  68397. t1 = type$.Tuple2_Uri_bool;
  68398. $async$goto = 6;
  68399. return P._asyncAwait(B.putIfAbsentAsync0($async$self._async_import_cache0$_canonicalizeCache, new S.Tuple2(url, forImport, t1), new O.AsyncImportCache_canonicalize_closure0($async$self, url, forImport), t1, type$.Tuple3_AsyncImporter_Uri_Uri), $async$canonicalize$4$baseImporter$baseUrl$forImport);
  68400. case 6:
  68401. // returning from await.
  68402. $async$returnValue = $async$result;
  68403. // goto return
  68404. $async$goto = 1;
  68405. break;
  68406. case 1:
  68407. // return
  68408. return P._asyncReturn($async$returnValue, $async$completer);
  68409. }
  68410. });
  68411. return P._asyncStartSync($async$canonicalize$4$baseImporter$baseUrl$forImport, $async$completer);
  68412. },
  68413. _async_import_cache0$_canonicalize$3: function(importer, url, forImport) {
  68414. return this._canonicalize$body$AsyncImportCache0(importer, url, forImport);
  68415. },
  68416. _canonicalize$body$AsyncImportCache0: function(importer, url, forImport) {
  68417. var $async$goto = 0,
  68418. $async$completer = P._makeAsyncAwaitCompleter(type$.Uri),
  68419. $async$returnValue, $async$self = this, result;
  68420. var $async$_async_import_cache0$_canonicalize$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68421. if ($async$errorCode === 1)
  68422. return P._asyncRethrow($async$result, $async$completer);
  68423. while (true)
  68424. switch ($async$goto) {
  68425. case 0:
  68426. // Function start
  68427. $async$goto = 3;
  68428. return P._asyncAwait(forImport ? B.inImportRule0(new O.AsyncImportCache__canonicalize_closure0(importer, url)) : importer.canonicalize$1(url), $async$_async_import_cache0$_canonicalize$3);
  68429. case 3:
  68430. // returning from await.
  68431. result = $async$result;
  68432. if ((result == null ? null : result.get$scheme()) === "")
  68433. $async$self._async_import_cache0$_logger.warn$2$deprecation("Importer " + H.S(importer) + " canonicalized " + H.S(url) + " to " + H.S(result) + ".\nRelative canonical URLs are deprecated and will eventually be disallowed.\n", true);
  68434. $async$returnValue = result;
  68435. // goto return
  68436. $async$goto = 1;
  68437. break;
  68438. case 1:
  68439. // return
  68440. return P._asyncReturn($async$returnValue, $async$completer);
  68441. }
  68442. });
  68443. return P._asyncStartSync($async$_async_import_cache0$_canonicalize$3, $async$completer);
  68444. },
  68445. import$4$baseImporter$baseUrl$forImport: function(url, baseImporter, baseUrl, forImport) {
  68446. return this.import$body$AsyncImportCache0(url, baseImporter, baseUrl, forImport);
  68447. },
  68448. import$body$AsyncImportCache0: function(url, baseImporter, baseUrl, forImport) {
  68449. var $async$goto = 0,
  68450. $async$completer = P._makeAsyncAwaitCompleter(type$.Tuple2_AsyncImporter_Stylesheet_2),
  68451. $async$returnValue, $async$self = this, t1, tuple, $async$temp1, $async$temp2;
  68452. var $async$import$4$baseImporter$baseUrl$forImport = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68453. if ($async$errorCode === 1)
  68454. return P._asyncRethrow($async$result, $async$completer);
  68455. while (true)
  68456. switch ($async$goto) {
  68457. case 0:
  68458. // Function start
  68459. $async$goto = 3;
  68460. return P._asyncAwait($async$self.canonicalize$4$baseImporter$baseUrl$forImport(url, baseImporter, baseUrl, forImport), $async$import$4$baseImporter$baseUrl$forImport);
  68461. case 3:
  68462. // returning from await.
  68463. tuple = $async$result;
  68464. if (tuple == null) {
  68465. $async$returnValue = null;
  68466. // goto return
  68467. $async$goto = 1;
  68468. break;
  68469. }
  68470. t1 = tuple.item1;
  68471. $async$temp1 = S;
  68472. $async$temp2 = t1;
  68473. $async$goto = 4;
  68474. return P._asyncAwait($async$self.importCanonical$3(t1, tuple.item2, tuple.item3), $async$import$4$baseImporter$baseUrl$forImport);
  68475. case 4:
  68476. // returning from await.
  68477. $async$returnValue = new $async$temp1.Tuple2($async$temp2, $async$result, type$.Tuple2_AsyncImporter_Stylesheet_2);
  68478. // goto return
  68479. $async$goto = 1;
  68480. break;
  68481. case 1:
  68482. // return
  68483. return P._asyncReturn($async$returnValue, $async$completer);
  68484. }
  68485. });
  68486. return P._asyncStartSync($async$import$4$baseImporter$baseUrl$forImport, $async$completer);
  68487. },
  68488. importCanonical$3: function(importer, canonicalUrl, originalUrl) {
  68489. return this.importCanonical$body$AsyncImportCache0(importer, canonicalUrl, originalUrl);
  68490. },
  68491. importCanonical$body$AsyncImportCache0: function(importer, canonicalUrl, originalUrl) {
  68492. var $async$goto = 0,
  68493. $async$completer = P._makeAsyncAwaitCompleter(type$.Stylesheet),
  68494. $async$returnValue, $async$self = this;
  68495. var $async$importCanonical$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68496. if ($async$errorCode === 1)
  68497. return P._asyncRethrow($async$result, $async$completer);
  68498. while (true)
  68499. switch ($async$goto) {
  68500. case 0:
  68501. // Function start
  68502. $async$goto = 3;
  68503. return P._asyncAwait(B.putIfAbsentAsync0($async$self._async_import_cache0$_importCache, canonicalUrl, new O.AsyncImportCache_importCanonical_closure0($async$self, importer, canonicalUrl, originalUrl), type$.Uri, type$.Stylesheet), $async$importCanonical$3);
  68504. case 3:
  68505. // returning from await.
  68506. $async$returnValue = $async$result;
  68507. // goto return
  68508. $async$goto = 1;
  68509. break;
  68510. case 1:
  68511. // return
  68512. return P._asyncReturn($async$returnValue, $async$completer);
  68513. }
  68514. });
  68515. return P._asyncStartSync($async$importCanonical$3, $async$completer);
  68516. },
  68517. humanize$1: function(canonicalUrl) {
  68518. var t1 = this._async_import_cache0$_canonicalizeCache.get$values(),
  68519. t2 = H._instanceType(t1),
  68520. url = Y.minBy(new H.MappedIterable(new H.WhereIterable(t1, new O.AsyncImportCache_humanize_closure2(canonicalUrl), t2._eval$1("WhereIterable<Iterable.E>")), new O.AsyncImportCache_humanize_closure3(), t2._eval$1("MappedIterable<Iterable.E,Uri>")), new O.AsyncImportCache_humanize_closure4(), type$.Uri, type$.dynamic);
  68521. if (url == null)
  68522. return canonicalUrl;
  68523. t1 = $.$get$url();
  68524. return url.resolve$1(X.ParsedPath_ParsedPath$parse(canonicalUrl.get$path(canonicalUrl), t1.style).get$basename());
  68525. }
  68526. };
  68527. O.AsyncImportCache_canonicalize_closure0.prototype = {
  68528. call$0: function() {
  68529. var $async$goto = 0,
  68530. $async$completer = P._makeAsyncAwaitCompleter(type$.Tuple3_AsyncImporter_Uri_Uri),
  68531. $async$returnValue, $async$self = this, t1, t2, t3, _i, importer, canonicalUrl;
  68532. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68533. if ($async$errorCode === 1)
  68534. return P._asyncRethrow($async$result, $async$completer);
  68535. while (true)
  68536. switch ($async$goto) {
  68537. case 0:
  68538. // Function start
  68539. t1 = $async$self.$this, t2 = $async$self.url, t3 = $async$self.forImport, _i = 0;
  68540. case 3:
  68541. // for condition
  68542. if (!false) {
  68543. // goto after for
  68544. $async$goto = 5;
  68545. break;
  68546. }
  68547. importer = C.List_empty23[_i];
  68548. $async$goto = 6;
  68549. return P._asyncAwait(t1._async_import_cache0$_canonicalize$3(importer, t2, t3), $async$call$0);
  68550. case 6:
  68551. // returning from await.
  68552. canonicalUrl = $async$result;
  68553. if (canonicalUrl != null) {
  68554. $async$returnValue = new S.Tuple3(importer, canonicalUrl, t2, type$.Tuple3_AsyncImporter_Uri_Uri);
  68555. // goto return
  68556. $async$goto = 1;
  68557. break;
  68558. }
  68559. case 4:
  68560. // for update
  68561. ++_i;
  68562. // goto for condition
  68563. $async$goto = 3;
  68564. break;
  68565. case 5:
  68566. // after for
  68567. $async$returnValue = null;
  68568. // goto return
  68569. $async$goto = 1;
  68570. break;
  68571. case 1:
  68572. // return
  68573. return P._asyncReturn($async$returnValue, $async$completer);
  68574. }
  68575. });
  68576. return P._asyncStartSync($async$call$0, $async$completer);
  68577. },
  68578. $signature: 114
  68579. };
  68580. O.AsyncImportCache__canonicalize_closure0.prototype = {
  68581. call$0: function() {
  68582. return this.importer.canonicalize$1(this.url);
  68583. },
  68584. $signature: 76
  68585. };
  68586. O.AsyncImportCache_importCanonical_closure0.prototype = {
  68587. call$0: function() {
  68588. var $async$goto = 0,
  68589. $async$completer = P._makeAsyncAwaitCompleter(type$.Stylesheet),
  68590. $async$returnValue, $async$self = this, t2, t3, t4, t5, t1, result;
  68591. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68592. if ($async$errorCode === 1)
  68593. return P._asyncRethrow($async$result, $async$completer);
  68594. while (true)
  68595. switch ($async$goto) {
  68596. case 0:
  68597. // Function start
  68598. t1 = $async$self.canonicalUrl;
  68599. $async$goto = 3;
  68600. return P._asyncAwait($async$self.importer.load$1(t1), $async$call$0);
  68601. case 3:
  68602. // returning from await.
  68603. result = $async$result;
  68604. if (result == null) {
  68605. $async$returnValue = null;
  68606. // goto return
  68607. $async$goto = 1;
  68608. break;
  68609. }
  68610. t2 = $async$self.$this;
  68611. t2._async_import_cache0$_resultsCache.$indexSet(0, t1, result);
  68612. t3 = result.contents;
  68613. t4 = result.syntax;
  68614. t5 = $async$self.originalUrl;
  68615. t1 = t5 == null ? t1 : t5.resolveUri$1(t1);
  68616. $async$returnValue = V.Stylesheet_Stylesheet$parse0(t3, t4, t2._async_import_cache0$_logger, t1);
  68617. // goto return
  68618. $async$goto = 1;
  68619. break;
  68620. case 1:
  68621. // return
  68622. return P._asyncReturn($async$returnValue, $async$completer);
  68623. }
  68624. });
  68625. return P._asyncStartSync($async$call$0, $async$completer);
  68626. },
  68627. $signature: 115
  68628. };
  68629. O.AsyncImportCache_humanize_closure2.prototype = {
  68630. call$1: function(tuple) {
  68631. var t1 = tuple == null ? null : tuple.item2;
  68632. return J.$eq$(t1, this.canonicalUrl);
  68633. }
  68634. };
  68635. O.AsyncImportCache_humanize_closure3.prototype = {
  68636. call$1: function(tuple) {
  68637. return tuple.item3;
  68638. }
  68639. };
  68640. O.AsyncImportCache_humanize_closure4.prototype = {
  68641. call$1: function(url) {
  68642. return J.get$length$asx(J.get$path$x(url));
  68643. },
  68644. $signature: 28
  68645. };
  68646. V.AtRootQueryParser0.prototype = {
  68647. parse$0: function() {
  68648. return this.wrapSpanFormatException$1(new V.AtRootQueryParser_parse_closure0(this));
  68649. }
  68650. };
  68651. V.AtRootQueryParser_parse_closure0.prototype = {
  68652. call$0: function() {
  68653. var include, atRules,
  68654. t1 = this.$this,
  68655. t2 = t1.scanner;
  68656. t2.expectChar$1(40);
  68657. t1.whitespace$0();
  68658. include = t1.scanIdentifier$1("with");
  68659. if (!include)
  68660. t1.expectIdentifier$2$name("without", '"with" or "without"');
  68661. t1.whitespace$0();
  68662. t2.expectChar$1(58);
  68663. t1.whitespace$0();
  68664. atRules = P.LinkedHashSet_LinkedHashSet$_empty(type$.String);
  68665. do {
  68666. atRules.add$1(0, t1.identifier$0().toLowerCase());
  68667. t1.whitespace$0();
  68668. } while (t1.lookingAtIdentifier$0());
  68669. t2.expectChar$1(41);
  68670. t2.expectDone$0();
  68671. return new V.AtRootQuery0(include, atRules, atRules.contains$1(0, "all"), atRules.contains$1(0, "rule"));
  68672. },
  68673. $signature: 48
  68674. };
  68675. V.AtRootQuery0.prototype = {
  68676. excludes$1: function(node) {
  68677. var _this = this;
  68678. if (_this._at_root_query0$_all)
  68679. return !_this.include;
  68680. if (_this._at_root_query0$_rule && type$.CssStyleRule_2._is(node))
  68681. return !_this.include;
  68682. return _this.names.contains$1(0, _this._at_root_query0$_nameFor$1(node)) !== _this.include;
  68683. },
  68684. _at_root_query0$_nameFor$1: function(node) {
  68685. var t1;
  68686. if (type$.CssMediaRule_2._is(node))
  68687. return "media";
  68688. if (type$.CssSupportsRule_2._is(node))
  68689. return "supports";
  68690. if (type$.CssAtRule_2._is(node)) {
  68691. t1 = node.name;
  68692. return t1.get$value(t1).toLowerCase();
  68693. }
  68694. return null;
  68695. }
  68696. };
  68697. V.AtRootRule0.prototype = {
  68698. accept$1$1: function(visitor) {
  68699. return visitor.visitAtRootRule$1(this);
  68700. },
  68701. accept$1: function(visitor) {
  68702. return this.accept$1$1(visitor, type$.dynamic);
  68703. },
  68704. toString$0: function(_) {
  68705. var buffer = new P.StringBuffer("@at-root "),
  68706. t1 = this.query;
  68707. if (t1 != null)
  68708. buffer._contents = "@at-root " + (t1.toString$0(0) + " ");
  68709. t1 = this.children;
  68710. return buffer.toString$0(0) + " {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
  68711. },
  68712. get$span: function() {
  68713. return this.span;
  68714. }
  68715. };
  68716. U.ModifiableCssAtRule0.prototype = {
  68717. accept$1$1: function(visitor) {
  68718. return visitor.visitCssAtRule$1(this);
  68719. },
  68720. accept$1: function(visitor) {
  68721. return this.accept$1$1(visitor, type$.dynamic);
  68722. },
  68723. copyWithoutChildren$0: function() {
  68724. var _this = this,
  68725. t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
  68726. return new U.ModifiableCssAtRule0(_this.name, _this.value, _this.isChildless, _this.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1);
  68727. },
  68728. addChild$1: function(child) {
  68729. this.super$ModifiableCssParentNode$addChild0(child);
  68730. },
  68731. $isCssAtRule0: 1,
  68732. get$isChildless: function() {
  68733. return this.isChildless;
  68734. },
  68735. get$span: function() {
  68736. return this.span;
  68737. }
  68738. };
  68739. U.AtRule0.prototype = {
  68740. accept$1$1: function(visitor) {
  68741. return visitor.visitAtRule$1(this);
  68742. },
  68743. accept$1: function(visitor) {
  68744. return this.accept$1$1(visitor, type$.dynamic);
  68745. },
  68746. toString$0: function(_) {
  68747. var t1 = "@" + this.name.toString$0(0),
  68748. buffer = new P.StringBuffer(t1),
  68749. t2 = this.value;
  68750. if (t2 != null)
  68751. buffer._contents = t1 + (" " + t2.toString$0(0));
  68752. t1 = this.children;
  68753. return t1 == null ? buffer.toString$0(0) + ";" : buffer.toString$0(0) + " {" + C.JSArray_methods.join$1(t1, " ") + "}";
  68754. },
  68755. get$span: function() {
  68756. return this.span;
  68757. }
  68758. };
  68759. N.AttributeSelector0.prototype = {
  68760. accept$1$1: function(visitor) {
  68761. var t2, _this = this,
  68762. t1 = visitor._buffer;
  68763. t1.writeCharCode$1(91);
  68764. t1.write$1(0, _this.name);
  68765. t2 = _this.op;
  68766. if (t2 != null) {
  68767. t1.write$1(0, t2);
  68768. t2 = _this.value;
  68769. if (G.Parser_isIdentifier0(t2) && !J.startsWith$1$s(t2, "--")) {
  68770. t1.write$1(0, t2);
  68771. t2 = _this.modifier;
  68772. if (t2 != null)
  68773. t1.writeCharCode$1(32);
  68774. } else {
  68775. visitor._serialize0$_visitQuotedString$1(t2);
  68776. t2 = _this.modifier;
  68777. if (t2 != null)
  68778. if (visitor._serialize0$_style !== C.OutputStyle_compressed0)
  68779. t1.writeCharCode$1(32);
  68780. }
  68781. if (t2 != null)
  68782. t1.write$1(0, t2);
  68783. }
  68784. t1.writeCharCode$1(93);
  68785. return null;
  68786. },
  68787. accept$1: function(visitor) {
  68788. return this.accept$1$1(visitor, type$.dynamic);
  68789. },
  68790. $eq: function(_, other) {
  68791. var _this = this;
  68792. if (other == null)
  68793. return false;
  68794. return other instanceof N.AttributeSelector0 && other.name.$eq(0, _this.name) && other.op == _this.op && other.value == _this.value && other.modifier == _this.modifier;
  68795. },
  68796. get$hashCode: function(_) {
  68797. var _this = this,
  68798. t1 = _this.name;
  68799. return (C.JSString_methods.get$hashCode(t1.name) ^ J.get$hashCode$(t1.namespace) ^ J.get$hashCode$(_this.op) ^ J.get$hashCode$(_this.value) ^ J.get$hashCode$(_this.modifier)) >>> 0;
  68800. }
  68801. };
  68802. N.AttributeOperator0.prototype = {
  68803. toString$0: function(_) {
  68804. return this._attribute0$_text;
  68805. }
  68806. };
  68807. V.BinaryOperationExpression0.prototype = {
  68808. get$span: function() {
  68809. var right,
  68810. left = this.left;
  68811. for (; left instanceof V.BinaryOperationExpression0;)
  68812. left = left.left;
  68813. right = this.right;
  68814. for (; right instanceof V.BinaryOperationExpression0;)
  68815. right = right.right;
  68816. return B.spanForList0(H.setRuntimeTypeInfo([left, right], type$.JSArray_AstNode_2));
  68817. },
  68818. accept$1$1: function(visitor) {
  68819. return visitor.visitBinaryOperationExpression$1(this);
  68820. },
  68821. accept$1: function(visitor) {
  68822. return this.accept$1$1(visitor, type$.dynamic);
  68823. },
  68824. toString$0: function(_) {
  68825. var t2, right, rightNeedsParens, _this = this,
  68826. left = _this.left,
  68827. leftNeedsParens = left instanceof V.BinaryOperationExpression0 && left.operator.precedence < _this.operator.precedence,
  68828. t1 = leftNeedsParens ? H.Primitives_stringFromCharCode(40) : "";
  68829. t1 += H.S(left);
  68830. if (leftNeedsParens)
  68831. t1 += H.Primitives_stringFromCharCode(41);
  68832. t2 = _this.operator;
  68833. t1 = t1 + H.Primitives_stringFromCharCode(32) + t2.operator + H.Primitives_stringFromCharCode(32);
  68834. right = _this.right;
  68835. rightNeedsParens = right instanceof V.BinaryOperationExpression0 && right.operator.precedence <= t2.precedence;
  68836. if (rightNeedsParens)
  68837. t1 += H.Primitives_stringFromCharCode(40);
  68838. t1 += H.S(right);
  68839. if (rightNeedsParens)
  68840. t1 += H.Primitives_stringFromCharCode(41);
  68841. return t1.charCodeAt(0) == 0 ? t1 : t1;
  68842. },
  68843. $isExpression0: 1,
  68844. $isAstNode0: 1
  68845. };
  68846. V.BinaryOperator0.prototype = {
  68847. toString$0: function(_) {
  68848. return this.name;
  68849. }
  68850. };
  68851. Z.BooleanExpression0.prototype = {
  68852. accept$1$1: function(visitor) {
  68853. return visitor.visitBooleanExpression$1(this);
  68854. },
  68855. accept$1: function(visitor) {
  68856. return this.accept$1$1(visitor, type$.dynamic);
  68857. },
  68858. toString$0: function(_) {
  68859. return String(this.value);
  68860. },
  68861. $isExpression0: 1,
  68862. $isAstNode0: 1,
  68863. get$span: function() {
  68864. return this.span;
  68865. }
  68866. };
  68867. Z.closure249.prototype = {
  68868. call$0: function() {
  68869. var $constructor = P.allowInterop(new Z._closure34());
  68870. B.injectSuperclass(C.SassBoolean_true, $constructor);
  68871. self.Object.defineProperty(C.SassBoolean_true.constructor, "name", {value: "SassBoolean"});
  68872. B.forwardToString($constructor);
  68873. $constructor.prototype.getValue = P.allowInteropCaptureThis(new Z._closure35());
  68874. $constructor.TRUE = C.SassBoolean_true;
  68875. $constructor.FALSE = C.SassBoolean_false;
  68876. return $constructor;
  68877. },
  68878. $signature: 83
  68879. };
  68880. Z._closure34.prototype = {
  68881. call$1: function(_) {
  68882. throw H.wrapException("new sass.types.Boolean() isn't allowed.\nUse sass.types.Boolean.TRUE or sass.types.Boolean.FALSE instead.");
  68883. },
  68884. call$0: function() {
  68885. return this.call$1(null);
  68886. },
  68887. "call*": "call$1",
  68888. $requiredArgCount: 0,
  68889. $defaultValues: function() {
  68890. return [null];
  68891. },
  68892. $signature: 51
  68893. };
  68894. Z._closure35.prototype = {
  68895. call$1: function(thisArg) {
  68896. return thisArg === C.SassBoolean_true;
  68897. },
  68898. $signature: 5
  68899. };
  68900. Z.SassBoolean0.prototype = {
  68901. get$isTruthy: function() {
  68902. return this.value;
  68903. },
  68904. accept$1$1: function(visitor) {
  68905. return visitor._buffer.write$1(0, String(this.value));
  68906. },
  68907. accept$1: function(visitor) {
  68908. return this.accept$1$1(visitor, type$.dynamic);
  68909. },
  68910. unaryNot$0: function() {
  68911. return this.value ? C.SassBoolean_false : C.SassBoolean_true;
  68912. }
  68913. };
  68914. Q.BuiltInCallable0.prototype = {
  68915. callbackFor$2: function(positional, names) {
  68916. var t1, t2, fuzzyMatch, minMismatchDistance, _i, overload, t3, mismatchDistance, t4;
  68917. for (t1 = this._built_in$_overloads, t2 = t1.length, fuzzyMatch = null, minMismatchDistance = null, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  68918. overload = t1[_i];
  68919. t3 = overload.item1;
  68920. if (t3.matches$2(positional, names))
  68921. return overload;
  68922. mismatchDistance = t3.$arguments.length - positional;
  68923. if (minMismatchDistance != null) {
  68924. t3 = Math.abs(mismatchDistance);
  68925. t4 = Math.abs(minMismatchDistance);
  68926. if (t3 > t4)
  68927. continue;
  68928. if (t3 === t4 && mismatchDistance < 0)
  68929. continue;
  68930. }
  68931. minMismatchDistance = mismatchDistance;
  68932. fuzzyMatch = overload;
  68933. }
  68934. return fuzzyMatch;
  68935. },
  68936. withName$1: function($name) {
  68937. return new Q.BuiltInCallable0($name, this._built_in$_overloads);
  68938. },
  68939. $isAsyncCallable0: 1,
  68940. $isAsyncBuiltInCallable0: 1,
  68941. $isCallable0: 1,
  68942. get$name: function() {
  68943. return this.name;
  68944. }
  68945. };
  68946. Q.BuiltInCallable$mixin_closure0.prototype = {
  68947. call$1: function($arguments) {
  68948. this.callback.call$1($arguments);
  68949. return null;
  68950. },
  68951. $signature: 52
  68952. };
  68953. Q.BuiltInModule0.prototype = {
  68954. get$upstream: function() {
  68955. return C.List_empty14;
  68956. },
  68957. get$variableNodes: function() {
  68958. return C.Map_empty7;
  68959. },
  68960. get$extender: function() {
  68961. return C.C_EmptyExtender0;
  68962. },
  68963. get$css: function(_) {
  68964. return new V.CssStylesheet0(C.List_empty12, Y.SourceFile$decoded(C.List_empty1, this.url).span$2(0, 0));
  68965. },
  68966. get$transitivelyContainsCss: function() {
  68967. return false;
  68968. },
  68969. get$transitivelyContainsExtensions: function() {
  68970. return false;
  68971. },
  68972. setVariable$3: function($name, value, nodeWithSpan) {
  68973. if (!this.variables.containsKey$1($name))
  68974. throw H.wrapException(E.SassScriptException$0("Undefined variable."));
  68975. throw H.wrapException(E.SassScriptException$0("Cannot modify built-in variable."));
  68976. },
  68977. variableIdentity$1: function($name) {
  68978. return this;
  68979. },
  68980. cloneCss$0: function() {
  68981. return this;
  68982. },
  68983. $isModule0: 1,
  68984. get$url: function() {
  68985. return this.url;
  68986. },
  68987. get$functions: function(receiver) {
  68988. return this.functions;
  68989. },
  68990. get$mixins: function() {
  68991. return this.mixins;
  68992. },
  68993. get$variables: function() {
  68994. return this.variables;
  68995. }
  68996. };
  68997. D.Callable0.prototype = {};
  68998. M.CallableDeclaration0.prototype = {
  68999. get$span: function() {
  69000. return this.span;
  69001. }
  69002. };
  69003. Y.Chokidar0.prototype = {};
  69004. Y.ChokidarOptions0.prototype = {};
  69005. Y.ChokidarWatcher0.prototype = {};
  69006. X.ClassSelector0.prototype = {
  69007. $eq: function(_, other) {
  69008. if (other == null)
  69009. return false;
  69010. return other instanceof X.ClassSelector0 && other.name === this.name;
  69011. },
  69012. accept$1$1: function(visitor) {
  69013. var t1 = visitor._buffer;
  69014. t1.writeCharCode$1(46);
  69015. t1.write$1(0, this.name);
  69016. return null;
  69017. },
  69018. accept$1: function(visitor) {
  69019. return this.accept$1$1(visitor, type$.dynamic);
  69020. },
  69021. addSuffix$1: function(suffix) {
  69022. return new X.ClassSelector0(this.name + suffix);
  69023. },
  69024. get$hashCode: function(_) {
  69025. return C.JSString_methods.get$hashCode(this.name);
  69026. }
  69027. };
  69028. V._CloneCssVisitor0.prototype = {
  69029. visitCssAtRule$1: function(node) {
  69030. var t1 = node.isChildless,
  69031. t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2),
  69032. rule = new U.ModifiableCssAtRule0(node.name, node.value, t1, node.span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode_2), t2);
  69033. return t1 ? rule : this._clone_css$_visitChildren$2(rule, node);
  69034. },
  69035. visitCssComment$1: function(node) {
  69036. return new R.ModifiableCssComment0(node.text, node.span);
  69037. },
  69038. visitCssDeclaration$1: function(node) {
  69039. return L.ModifiableCssDeclaration$0(node.name, node.value, node.span, node.valueSpanForMap);
  69040. },
  69041. visitCssImport$1: function(node) {
  69042. return F.ModifiableCssImport$0(node.url, node.span, node.media, node.supports);
  69043. },
  69044. visitCssKeyframeBlock$1: function(node) {
  69045. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
  69046. return this._clone_css$_visitChildren$2(new U.ModifiableCssKeyframeBlock0(node.selector, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1), node);
  69047. },
  69048. visitCssMediaRule$1: function(node) {
  69049. return this._clone_css$_visitChildren$2(G.ModifiableCssMediaRule$0(node.queries, node.span), node);
  69050. },
  69051. visitCssStyleRule$1: function(node) {
  69052. var newSelector = this._clone_css$_oldToNewSelectors.$index(0, node.selector);
  69053. if (newSelector == null)
  69054. throw H.wrapException(P.StateError$("The Extender and CssStylesheet passed to cloneCssStylesheet() must come from the same compilation."));
  69055. return this._clone_css$_visitChildren$2(X.ModifiableCssStyleRule$0(newSelector, node.span, node.originalSelector), node);
  69056. },
  69057. visitCssStylesheet$1: function(node) {
  69058. var t1 = node.get$span(),
  69059. t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
  69060. return this._clone_css$_visitChildren$2(new V.ModifiableCssStylesheet0(t1, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode_2), t2), node);
  69061. },
  69062. visitCssSupportsRule$1: function(node) {
  69063. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
  69064. return this._clone_css$_visitChildren$2(new B.ModifiableCssSupportsRule0(node.condition, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1), node);
  69065. },
  69066. _clone_css$_visitChildren$1$2: function(newParent, oldParent) {
  69067. var t1, t2, newChild;
  69068. for (t1 = J.get$iterator$ax(oldParent.get$children()); t1.moveNext$0();) {
  69069. t2 = t1.get$current(t1);
  69070. newChild = t2.accept$1(this);
  69071. newChild.isGroupEnd = t2.get$isGroupEnd();
  69072. newParent.addChild$1(newChild);
  69073. }
  69074. return newParent;
  69075. },
  69076. _clone_css$_visitChildren$2: function(newParent, oldParent) {
  69077. return this._clone_css$_visitChildren$1$2(newParent, oldParent, type$.ModifiableCssParentNode_2);
  69078. }
  69079. };
  69080. K.ColorExpression0.prototype = {
  69081. get$span: function() {
  69082. return this.value.originalSpan;
  69083. },
  69084. accept$1$1: function(visitor) {
  69085. return visitor.visitColorExpression$1(this);
  69086. },
  69087. accept$1: function(visitor) {
  69088. return this.accept$1$1(visitor, type$.dynamic);
  69089. },
  69090. toString$0: function(_) {
  69091. return N.serializeValue(this.value, true, true);
  69092. },
  69093. $isExpression0: 1,
  69094. $isAstNode0: 1
  69095. };
  69096. K.closure151.prototype = {
  69097. call$1: function($arguments) {
  69098. return K._rgb0("rgb", $arguments);
  69099. },
  69100. $signature: 3
  69101. };
  69102. K.closure152.prototype = {
  69103. call$1: function($arguments) {
  69104. return K._rgb0("rgb", $arguments);
  69105. },
  69106. $signature: 3
  69107. };
  69108. K.closure153.prototype = {
  69109. call$1: function($arguments) {
  69110. return K._rgbTwoArg0("rgb", $arguments);
  69111. },
  69112. $signature: 3
  69113. };
  69114. K.closure154.prototype = {
  69115. call$1: function($arguments) {
  69116. var parsed = K._parseChannels0("rgb", H.setRuntimeTypeInfo(["$red", "$green", "$blue"], type$.JSArray_String), J.get$first$ax($arguments));
  69117. return parsed instanceof D.SassString0 ? parsed : K._rgb0("rgb", type$.List_Value_2._as(parsed));
  69118. },
  69119. $signature: 3
  69120. };
  69121. K.closure155.prototype = {
  69122. call$1: function($arguments) {
  69123. return K._rgb0("rgba", $arguments);
  69124. },
  69125. $signature: 3
  69126. };
  69127. K.closure156.prototype = {
  69128. call$1: function($arguments) {
  69129. return K._rgb0("rgba", $arguments);
  69130. },
  69131. $signature: 3
  69132. };
  69133. K.closure157.prototype = {
  69134. call$1: function($arguments) {
  69135. return K._rgbTwoArg0("rgba", $arguments);
  69136. },
  69137. $signature: 3
  69138. };
  69139. K.closure158.prototype = {
  69140. call$1: function($arguments) {
  69141. var parsed = K._parseChannels0("rgba", H.setRuntimeTypeInfo(["$red", "$green", "$blue"], type$.JSArray_String), J.get$first$ax($arguments));
  69142. return parsed instanceof D.SassString0 ? parsed : K._rgb0("rgba", type$.List_Value_2._as(parsed));
  69143. },
  69144. $signature: 3
  69145. };
  69146. K.closure159.prototype = {
  69147. call$1: function($arguments) {
  69148. var color, t2,
  69149. t1 = J.getInterceptor$asx($arguments),
  69150. weight = t1.$index($arguments, 1).assertNumber$1("weight");
  69151. if (t1.$index($arguments, 0) instanceof T.SassNumber0) {
  69152. if (weight.value !== 100 || !weight.hasUnit$1("%"))
  69153. throw H.wrapException("Only one argument may be passed to the plain-CSS invert() function.");
  69154. return K._functionString0("invert", t1.take$1($arguments, 1));
  69155. }
  69156. color = t1.$index($arguments, 0).assertColor$1("color");
  69157. t1 = color.get$red();
  69158. t2 = color.get$green();
  69159. return K._mixColors0(color.changeRgb$3$blue$green$red(255 - color.get$blue(), 255 - t2, 255 - t1), color, weight);
  69160. },
  69161. $signature: 3
  69162. };
  69163. K.closure160.prototype = {
  69164. call$1: function($arguments) {
  69165. return K._hsl0("hsl", $arguments);
  69166. },
  69167. $signature: 3
  69168. };
  69169. K.closure161.prototype = {
  69170. call$1: function($arguments) {
  69171. return K._hsl0("hsl", $arguments);
  69172. },
  69173. $signature: 3
  69174. };
  69175. K.closure162.prototype = {
  69176. call$1: function($arguments) {
  69177. var t1 = J.getInterceptor$asx($arguments);
  69178. if (t1.$index($arguments, 0).get$isVar() || t1.$index($arguments, 1).get$isVar())
  69179. return K._functionString0("hsl", $arguments);
  69180. else
  69181. throw H.wrapException(E.SassScriptException$0("Missing argument $lightness."));
  69182. },
  69183. $signature: 11
  69184. };
  69185. K.closure163.prototype = {
  69186. call$1: function($arguments) {
  69187. var parsed = K._parseChannels0("hsl", H.setRuntimeTypeInfo(["$hue", "$saturation", "$lightness"], type$.JSArray_String), J.get$first$ax($arguments));
  69188. return parsed instanceof D.SassString0 ? parsed : K._hsl0("hsl", type$.List_Value_2._as(parsed));
  69189. },
  69190. $signature: 3
  69191. };
  69192. K.closure164.prototype = {
  69193. call$1: function($arguments) {
  69194. return K._hsl0("hsla", $arguments);
  69195. },
  69196. $signature: 3
  69197. };
  69198. K.closure165.prototype = {
  69199. call$1: function($arguments) {
  69200. return K._hsl0("hsla", $arguments);
  69201. },
  69202. $signature: 3
  69203. };
  69204. K.closure166.prototype = {
  69205. call$1: function($arguments) {
  69206. var t1 = J.getInterceptor$asx($arguments);
  69207. if (t1.$index($arguments, 0).get$isVar() || t1.$index($arguments, 1).get$isVar())
  69208. return K._functionString0("hsla", $arguments);
  69209. else
  69210. throw H.wrapException(E.SassScriptException$0("Missing argument $lightness."));
  69211. },
  69212. $signature: 11
  69213. };
  69214. K.closure167.prototype = {
  69215. call$1: function($arguments) {
  69216. var parsed = K._parseChannels0("hsla", H.setRuntimeTypeInfo(["$hue", "$saturation", "$lightness"], type$.JSArray_String), J.get$first$ax($arguments));
  69217. return parsed instanceof D.SassString0 ? parsed : K._hsl0("hsla", type$.List_Value_2._as(parsed));
  69218. },
  69219. $signature: 3
  69220. };
  69221. K.closure168.prototype = {
  69222. call$1: function($arguments) {
  69223. var t1 = J.getInterceptor$asx($arguments);
  69224. if (t1.$index($arguments, 0) instanceof T.SassNumber0)
  69225. return K._functionString0("grayscale", $arguments);
  69226. return t1.$index($arguments, 0).assertColor$1("color").changeHsl$1$saturation(0);
  69227. },
  69228. $signature: 3
  69229. };
  69230. K.closure169.prototype = {
  69231. call$1: function($arguments) {
  69232. var t1 = J.getInterceptor$asx($arguments),
  69233. color = t1.$index($arguments, 0).assertColor$1("color"),
  69234. degrees = t1.$index($arguments, 1).assertNumber$1("degrees");
  69235. return color.changeHsl$1$hue(color.get$hue() + degrees.value);
  69236. },
  69237. $signature: 18
  69238. };
  69239. K.closure170.prototype = {
  69240. call$1: function($arguments) {
  69241. var t1 = J.getInterceptor$asx($arguments),
  69242. color = t1.$index($arguments, 0).assertColor$1("color"),
  69243. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  69244. return color.changeHsl$1$lightness(C.JSNumber_methods.clamp$2(color.get$lightness() + amount.valueInRange$3(0, 100, "amount"), 0, 100));
  69245. },
  69246. $signature: 18
  69247. };
  69248. K.closure171.prototype = {
  69249. call$1: function($arguments) {
  69250. var t1 = J.getInterceptor$asx($arguments),
  69251. color = t1.$index($arguments, 0).assertColor$1("color"),
  69252. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  69253. return color.changeHsl$1$lightness(C.JSNumber_methods.clamp$2(color.get$lightness() - amount.valueInRange$3(0, 100, "amount"), 0, 100));
  69254. },
  69255. $signature: 18
  69256. };
  69257. K.closure172.prototype = {
  69258. call$1: function($arguments) {
  69259. return new D.SassString0("saturate(" + N.serializeValue(J.$index$asx($arguments, 0).assertNumber$1("amount"), false, true) + ")", false);
  69260. },
  69261. $signature: 11
  69262. };
  69263. K.closure173.prototype = {
  69264. call$1: function($arguments) {
  69265. var t1 = J.getInterceptor$asx($arguments),
  69266. color = t1.$index($arguments, 0).assertColor$1("color"),
  69267. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  69268. return color.changeHsl$1$saturation(C.JSNumber_methods.clamp$2(color.get$saturation() + amount.valueInRange$3(0, 100, "amount"), 0, 100));
  69269. },
  69270. $signature: 18
  69271. };
  69272. K.closure174.prototype = {
  69273. call$1: function($arguments) {
  69274. var t1 = J.getInterceptor$asx($arguments),
  69275. color = t1.$index($arguments, 0).assertColor$1("color"),
  69276. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  69277. return color.changeHsl$1$saturation(C.JSNumber_methods.clamp$2(color.get$saturation() - amount.valueInRange$3(0, 100, "amount"), 0, 100));
  69278. },
  69279. $signature: 18
  69280. };
  69281. K.closure175.prototype = {
  69282. call$1: function($arguments) {
  69283. var color,
  69284. argument = J.$index$asx($arguments, 0);
  69285. if (argument instanceof D.SassString0 && !argument.hasQuotes && J.contains$1$asx(argument.text, $.$get$_microsoftFilterStart0()))
  69286. return K._functionString0("alpha", $arguments);
  69287. color = argument.assertColor$1("color");
  69288. return new T.SassNumber0(color.alpha, C.List_empty, C.List_empty, null);
  69289. },
  69290. $signature: 3
  69291. };
  69292. K.closure176.prototype = {
  69293. call$1: function($arguments) {
  69294. var t1,
  69295. argList = J.$index$asx($arguments, 0).get$asList();
  69296. if (argList.length !== 0 && C.JSArray_methods.every$1(argList, new K._closure25()))
  69297. return K._functionString0("alpha", $arguments);
  69298. t1 = argList.length;
  69299. if (t1 === 0)
  69300. throw H.wrapException(E.SassScriptException$0("Missing argument $color."));
  69301. else
  69302. throw H.wrapException(E.SassScriptException$0("Only 1 argument allowed, but " + t1 + " were passed."));
  69303. },
  69304. $signature: 11
  69305. };
  69306. K._closure25.prototype = {
  69307. call$1: function(argument) {
  69308. return argument instanceof D.SassString0 && !argument.hasQuotes && J.contains$1$asx(argument.text, $.$get$_microsoftFilterStart0());
  69309. }
  69310. };
  69311. K.closure177.prototype = {
  69312. call$1: function($arguments) {
  69313. var color,
  69314. t1 = J.getInterceptor$asx($arguments);
  69315. if (t1.$index($arguments, 0) instanceof T.SassNumber0)
  69316. return K._functionString0("opacity", $arguments);
  69317. color = t1.$index($arguments, 0).assertColor$1("color");
  69318. return new T.SassNumber0(color.alpha, C.List_empty, C.List_empty, null);
  69319. },
  69320. $signature: 3
  69321. };
  69322. K.closure204.prototype = {
  69323. call$1: function($arguments) {
  69324. var result, color, t2,
  69325. t1 = J.getInterceptor$asx($arguments),
  69326. weight = t1.$index($arguments, 1).assertNumber$1("weight");
  69327. if (t1.$index($arguments, 0) instanceof T.SassNumber0) {
  69328. if (weight.value !== 100 || !weight.hasUnit$1("%"))
  69329. throw H.wrapException("Only one argument may be passed to the plain-CSS invert() function.");
  69330. result = K._functionString0("invert", t1.take$1($arguments, 1));
  69331. N.warn0("Passing a number to color.invert() is deprecated.\n\nRecommendation: " + result.toString$0(0), false);
  69332. return result;
  69333. }
  69334. color = t1.$index($arguments, 0).assertColor$1("color");
  69335. t1 = color.get$red();
  69336. t2 = color.get$green();
  69337. return K._mixColors0(color.changeRgb$3$blue$green$red(255 - color.get$blue(), 255 - t2, 255 - t1), color, weight);
  69338. },
  69339. $signature: 3
  69340. };
  69341. K.closure205.prototype = {
  69342. call$1: function($arguments) {
  69343. var result,
  69344. t1 = J.getInterceptor$asx($arguments);
  69345. if (t1.$index($arguments, 0) instanceof T.SassNumber0) {
  69346. result = K._functionString0("grayscale", t1.take$1($arguments, 1));
  69347. N.warn0("Passing a number to color.grayscale() is deprecated.\n\nRecommendation: " + result.toString$0(0), false);
  69348. return result;
  69349. }
  69350. return t1.$index($arguments, 0).assertColor$1("color").changeHsl$1$saturation(0);
  69351. },
  69352. $signature: 3
  69353. };
  69354. K.closure206.prototype = {
  69355. call$1: function($arguments) {
  69356. var result, color,
  69357. argument = J.$index$asx($arguments, 0);
  69358. if (argument instanceof D.SassString0 && !argument.hasQuotes && J.contains$1$asx(argument.text, $.$get$_microsoftFilterStart0())) {
  69359. result = K._functionString0("alpha", $arguments);
  69360. N.warn0("Using color.alpha() for a Microsoft filter is deprecated.\n\nRecommendation: " + result.toString$0(0), false);
  69361. return result;
  69362. }
  69363. color = argument.assertColor$1("color");
  69364. return new T.SassNumber0(color.alpha, C.List_empty, C.List_empty, null);
  69365. },
  69366. $signature: 3
  69367. };
  69368. K.closure207.prototype = {
  69369. call$1: function($arguments) {
  69370. var result,
  69371. t1 = J.getInterceptor$asx($arguments);
  69372. if (C.JSArray_methods.every$1(t1.$index($arguments, 0).get$asList(), new K._closure27())) {
  69373. result = K._functionString0("alpha", $arguments);
  69374. N.warn0("Using color.alpha() for a Microsoft filter is deprecated.\n\nRecommendation: " + result.toString$0(0), false);
  69375. return result;
  69376. }
  69377. throw H.wrapException(E.SassScriptException$0("Only 1 argument allowed, but " + t1.get$length($arguments) + " were passed."));
  69378. },
  69379. $signature: 11
  69380. };
  69381. K._closure27.prototype = {
  69382. call$1: function(argument) {
  69383. return argument instanceof D.SassString0 && !argument.hasQuotes && J.contains$1$asx(argument.text, $.$get$_microsoftFilterStart0());
  69384. }
  69385. };
  69386. K.closure208.prototype = {
  69387. call$1: function($arguments) {
  69388. var result, color,
  69389. t1 = J.getInterceptor$asx($arguments);
  69390. if (t1.$index($arguments, 0) instanceof T.SassNumber0) {
  69391. result = K._functionString0("opacity", $arguments);
  69392. N.warn0("Passing a number to color.opacity() is deprecated.\n\nRecommendation: " + result.toString$0(0), false);
  69393. return result;
  69394. }
  69395. color = t1.$index($arguments, 0).assertColor$1("color");
  69396. return new T.SassNumber0(color.alpha, C.List_empty, C.List_empty, null);
  69397. },
  69398. $signature: 3
  69399. };
  69400. K.closure191.prototype = {
  69401. call$1: function($arguments) {
  69402. var t1 = J.get$first$ax($arguments).assertColor$1("color").get$red();
  69403. return new T.SassNumber0(t1, C.List_empty, C.List_empty, null);
  69404. },
  69405. $signature: 6
  69406. };
  69407. K.closure190.prototype = {
  69408. call$1: function($arguments) {
  69409. var t1 = J.get$first$ax($arguments).assertColor$1("color").get$green();
  69410. return new T.SassNumber0(t1, C.List_empty, C.List_empty, null);
  69411. },
  69412. $signature: 6
  69413. };
  69414. K.closure189.prototype = {
  69415. call$1: function($arguments) {
  69416. var t1 = J.get$first$ax($arguments).assertColor$1("color").get$blue();
  69417. return new T.SassNumber0(t1, C.List_empty, C.List_empty, null);
  69418. },
  69419. $signature: 6
  69420. };
  69421. K.closure188.prototype = {
  69422. call$1: function($arguments) {
  69423. var t1 = J.getInterceptor$asx($arguments);
  69424. return K._mixColors0(t1.$index($arguments, 0).assertColor$1("color1"), t1.$index($arguments, 1).assertColor$1("color2"), t1.$index($arguments, 2).assertNumber$1("weight"));
  69425. },
  69426. $signature: 18
  69427. };
  69428. K.closure187.prototype = {
  69429. call$1: function($arguments) {
  69430. var t1 = J.get$first$ax($arguments).assertColor$1("color").get$hue(),
  69431. t2 = H.setRuntimeTypeInfo(["deg"], type$.JSArray_String);
  69432. t2 = P.List_List$unmodifiable(t2, type$.String);
  69433. return new T.SassNumber0(t1, t2, C.List_empty, null);
  69434. },
  69435. $signature: 6
  69436. };
  69437. K.closure186.prototype = {
  69438. call$1: function($arguments) {
  69439. var t1 = J.get$first$ax($arguments).assertColor$1("color").get$saturation(),
  69440. t2 = H.setRuntimeTypeInfo(["%"], type$.JSArray_String);
  69441. t2 = P.List_List$unmodifiable(t2, type$.String);
  69442. return new T.SassNumber0(t1, t2, C.List_empty, null);
  69443. },
  69444. $signature: 6
  69445. };
  69446. K.closure185.prototype = {
  69447. call$1: function($arguments) {
  69448. var t1 = J.get$first$ax($arguments).assertColor$1("color").get$lightness(),
  69449. t2 = H.setRuntimeTypeInfo(["%"], type$.JSArray_String);
  69450. t2 = P.List_List$unmodifiable(t2, type$.String);
  69451. return new T.SassNumber0(t1, t2, C.List_empty, null);
  69452. },
  69453. $signature: 6
  69454. };
  69455. K.closure184.prototype = {
  69456. call$1: function($arguments) {
  69457. var color = J.$index$asx($arguments, 0).assertColor$1("color");
  69458. return color.changeHsl$1$hue(color.get$hue() + 180);
  69459. },
  69460. $signature: 18
  69461. };
  69462. K.closure182.prototype = {
  69463. call$1: function($arguments) {
  69464. var keywords, t2, red, green, blue, hue, saturation, lightness, alpha, hasRgb, hasHsl, t3, t4, t5, _null = null,
  69465. t1 = J.getInterceptor$asx($arguments),
  69466. color = t1.$index($arguments, 0).assertColor$1("color"),
  69467. argumentList = type$.SassArgumentList_2._as(t1.$index($arguments, 1));
  69468. if (argumentList._list1$_contents.length !== 0)
  69469. throw H.wrapException(E.SassScriptException$0("Only one positional argument is allowed. All other arguments must be passed by name."));
  69470. argumentList._argument_list$_wereKeywordsAccessed = true;
  69471. keywords = P.LinkedHashMap_LinkedHashMap$of(argumentList._argument_list$_keywords, type$.String, type$.Value_2);
  69472. t1 = new K.closure_getInRange2(keywords);
  69473. t2 = t1.call$3("red", -255, 255);
  69474. red = t2 == null ? _null : T.fuzzyRound0(t2);
  69475. t2 = t1.call$3("green", -255, 255);
  69476. green = t2 == null ? _null : T.fuzzyRound0(t2);
  69477. t2 = t1.call$3("blue", -255, 255);
  69478. blue = t2 == null ? _null : T.fuzzyRound0(t2);
  69479. t2 = keywords.remove$1(0, "hue");
  69480. t2 = t2 == null ? _null : t2.assertNumber$1("hue");
  69481. hue = t2 == null ? _null : t2.value;
  69482. saturation = t1.call$3("saturation", -100, 100);
  69483. lightness = t1.call$3("lightness", -100, 100);
  69484. alpha = t1.call$3("alpha", -1, 1);
  69485. if (keywords.get$isNotEmpty(keywords))
  69486. throw H.wrapException(E.SassScriptException$0("No " + B.pluralize0("argument", keywords.get$length(keywords), _null) + " named " + H.S(B.toSentence0(keywords.get$keys().map$1$1(0, new K._closure24(), type$.Object), "or")) + "."));
  69487. t1 = red == null;
  69488. hasRgb = !t1 || green != null || blue != null;
  69489. t2 = hue == null;
  69490. hasHsl = !t2 || saturation != null || lightness != null;
  69491. if (hasRgb) {
  69492. if (hasHsl)
  69493. throw H.wrapException(E.SassScriptException$0("RGB parameters may not be passed along with HSL parameters."));
  69494. t2 = color.get$red();
  69495. t2 = H._asIntNullable(C.JSInt_methods.clamp$2(t2 + (t1 ? 0 : red), 0, 255));
  69496. t3 = color.get$green();
  69497. t1 = H._asIntNullable(C.JSInt_methods.clamp$2(t3 + (green == null ? 0 : green), 0, 255));
  69498. t3 = color.get$blue();
  69499. t3 = H._asIntNullable(C.JSInt_methods.clamp$2(t3 + (blue == null ? 0 : blue), 0, 255));
  69500. t4 = alpha == null ? 0 : alpha;
  69501. return color.changeRgb$4$alpha$blue$green$red(C.JSNumber_methods.clamp$2(color.alpha + t4, 0, 1), t3, t1, t2);
  69502. } else if (hasHsl) {
  69503. t1 = color.get$hue();
  69504. t2 = t2 ? 0 : hue;
  69505. t3 = color.get$saturation();
  69506. t3 = C.JSNumber_methods.clamp$2(t3 + (saturation == null ? 0 : saturation), 0, 100);
  69507. t4 = color.get$lightness();
  69508. t4 = C.JSNumber_methods.clamp$2(t4 + (lightness == null ? 0 : lightness), 0, 100);
  69509. t5 = alpha == null ? 0 : alpha;
  69510. return color.changeHsl$4$alpha$hue$lightness$saturation(C.JSNumber_methods.clamp$2(color.alpha + t5, 0, 1), t1 + t2, t4, t3);
  69511. } else if (alpha != null)
  69512. return color.changeAlpha$1(C.JSNumber_methods.clamp$2(color.alpha + alpha, 0, 1));
  69513. else
  69514. return color;
  69515. },
  69516. $signature: 18
  69517. };
  69518. K.closure_getInRange2.prototype = {
  69519. call$3: function($name, min, max) {
  69520. var t1 = this.keywords.remove$1(0, $name);
  69521. t1 = t1 == null ? null : t1.assertNumber$1($name);
  69522. return t1 == null ? null : t1.valueInRange$3(min, max, $name);
  69523. }
  69524. };
  69525. K._closure24.prototype = {
  69526. call$1: function($name) {
  69527. return "$" + H.S($name);
  69528. }
  69529. };
  69530. K.closure181.prototype = {
  69531. call$1: function($arguments) {
  69532. var keywords, t2, red, green, blue, saturation, lightness, alpha, hasRgb, hasHsl, t3, t4,
  69533. t1 = J.getInterceptor$asx($arguments),
  69534. color = t1.$index($arguments, 0).assertColor$1("color"),
  69535. argumentList = type$.SassArgumentList_2._as(t1.$index($arguments, 1));
  69536. if (argumentList._list1$_contents.length !== 0)
  69537. throw H.wrapException(E.SassScriptException$0("Only one positional argument is allowed. All other arguments must be passed by name."));
  69538. argumentList._argument_list$_wereKeywordsAccessed = true;
  69539. keywords = P.LinkedHashMap_LinkedHashMap$of(argumentList._argument_list$_keywords, type$.String, type$.Value_2);
  69540. t1 = new K.closure_getScale0(keywords);
  69541. t2 = new K.closure_scaleValue0();
  69542. red = t1.call$1("red");
  69543. green = t1.call$1("green");
  69544. blue = t1.call$1("blue");
  69545. saturation = t1.call$1("saturation");
  69546. lightness = t1.call$1("lightness");
  69547. alpha = t1.call$1("alpha");
  69548. if (keywords.get$isNotEmpty(keywords))
  69549. throw H.wrapException(E.SassScriptException$0("No " + B.pluralize0("argument", keywords.get$length(keywords), null) + " named " + H.S(B.toSentence0(keywords.get$keys().map$1$1(0, new K._closure23(), type$.Object), "or")) + "."));
  69550. hasRgb = red != null || green != null || blue != null;
  69551. hasHsl = saturation != null || lightness != null;
  69552. if (hasRgb) {
  69553. if (hasHsl)
  69554. throw H.wrapException(E.SassScriptException$0("RGB parameters may not be passed along with HSL parameters."));
  69555. t1 = T.fuzzyRound0(t2.call$3(color.get$red(), red, 255));
  69556. t3 = T.fuzzyRound0(t2.call$3(color.get$green(), green, 255));
  69557. t4 = T.fuzzyRound0(t2.call$3(color.get$blue(), blue, 255));
  69558. return color.changeRgb$4$alpha$blue$green$red(t2.call$3(color.alpha, alpha, 1), t4, t3, t1);
  69559. } else if (hasHsl) {
  69560. t1 = t2.call$3(color.get$saturation(), saturation, 100);
  69561. t3 = t2.call$3(color.get$lightness(), lightness, 100);
  69562. return color.changeHsl$3$alpha$lightness$saturation(t2.call$3(color.alpha, alpha, 1), t3, t1);
  69563. } else if (alpha != null)
  69564. return color.changeAlpha$1(t2.call$3(color.alpha, alpha, 1));
  69565. else
  69566. return color;
  69567. },
  69568. $signature: 18
  69569. };
  69570. K.closure_getScale0.prototype = {
  69571. call$1: function($name) {
  69572. var number,
  69573. value = this.keywords.remove$1(0, $name);
  69574. if (value == null)
  69575. return null;
  69576. number = value.assertNumber$1($name);
  69577. number.assertUnit$2("%", $name);
  69578. return number.valueInRange$3(-100, 100, $name) / 100;
  69579. }
  69580. };
  69581. K.closure_scaleValue0.prototype = {
  69582. call$3: function(current, scale, max) {
  69583. if (scale == null)
  69584. return current;
  69585. return current + (scale > 0 ? max - current : current) * scale;
  69586. }
  69587. };
  69588. K._closure23.prototype = {
  69589. call$1: function($name) {
  69590. return "$" + H.S($name);
  69591. }
  69592. };
  69593. K.closure180.prototype = {
  69594. call$1: function($arguments) {
  69595. var keywords, t2, red, green, blue, hue, saturation, lightness, alpha, hasRgb, hasHsl, _null = null,
  69596. t1 = J.getInterceptor$asx($arguments),
  69597. color = t1.$index($arguments, 0).assertColor$1("color"),
  69598. argumentList = type$.SassArgumentList_2._as(t1.$index($arguments, 1));
  69599. if (argumentList._list1$_contents.length !== 0)
  69600. throw H.wrapException(E.SassScriptException$0("Only one positional argument is allowed. All other arguments must be passed by name."));
  69601. argumentList._argument_list$_wereKeywordsAccessed = true;
  69602. keywords = P.LinkedHashMap_LinkedHashMap$of(argumentList._argument_list$_keywords, type$.String, type$.Value_2);
  69603. t1 = new K.closure_getInRange1(keywords);
  69604. t2 = t1.call$3("red", 0, 255);
  69605. red = t2 == null ? _null : T.fuzzyRound0(t2);
  69606. t2 = t1.call$3("green", 0, 255);
  69607. green = t2 == null ? _null : T.fuzzyRound0(t2);
  69608. t2 = t1.call$3("blue", 0, 255);
  69609. blue = t2 == null ? _null : T.fuzzyRound0(t2);
  69610. t2 = keywords.remove$1(0, "hue");
  69611. t2 = t2 == null ? _null : t2.assertNumber$1("hue");
  69612. hue = t2 == null ? _null : t2.value;
  69613. saturation = t1.call$3("saturation", 0, 100);
  69614. lightness = t1.call$3("lightness", 0, 100);
  69615. alpha = t1.call$3("alpha", 0, 1);
  69616. if (keywords.get$isNotEmpty(keywords))
  69617. throw H.wrapException(E.SassScriptException$0("No " + B.pluralize0("argument", keywords.get$length(keywords), _null) + " named " + H.S(B.toSentence0(keywords.get$keys().map$1$1(0, new K._closure22(), type$.Object), "or")) + "."));
  69618. hasRgb = red != null || green != null || blue != null;
  69619. hasHsl = hue != null || saturation != null || lightness != null;
  69620. if (hasRgb) {
  69621. if (hasHsl)
  69622. throw H.wrapException(E.SassScriptException$0("RGB parameters may not be passed along with HSL parameters."));
  69623. return color.changeRgb$4$alpha$blue$green$red(alpha, blue, green, red);
  69624. } else if (hasHsl)
  69625. return color.changeHsl$4$alpha$hue$lightness$saturation(alpha, hue, lightness, saturation);
  69626. else if (alpha != null)
  69627. return color.changeAlpha$1(alpha);
  69628. else
  69629. return color;
  69630. },
  69631. $signature: 18
  69632. };
  69633. K.closure_getInRange1.prototype = {
  69634. call$3: function($name, min, max) {
  69635. var t1 = this.keywords.remove$1(0, $name);
  69636. t1 = t1 == null ? null : t1.assertNumber$1($name);
  69637. return t1 == null ? null : t1.valueInRange$3(min, max, $name);
  69638. }
  69639. };
  69640. K._closure22.prototype = {
  69641. call$1: function($name) {
  69642. return "$" + H.S($name);
  69643. }
  69644. };
  69645. K.closure183.prototype = {
  69646. call$1: function($arguments) {
  69647. var color = J.$index$asx($arguments, 0).assertColor$1("color"),
  69648. t1 = new K.closure_hexString0();
  69649. return new D.SassString0("#" + H.S(t1.call$1(T.fuzzyRound0(color.alpha * 255))) + H.S(t1.call$1(color.get$red())) + H.S(t1.call$1(color.get$green())) + H.S(t1.call$1(color.get$blue())), false);
  69650. },
  69651. $signature: 11
  69652. };
  69653. K.closure_hexString0.prototype = {
  69654. call$1: function(component) {
  69655. return C.JSString_methods.padLeft$2(J.toRadixString$1$n(component, 16), 2, "0").toUpperCase();
  69656. },
  69657. $signature: 36
  69658. };
  69659. K._functionString_closure0.prototype = {
  69660. call$1: function(argument) {
  69661. argument.toString;
  69662. return N.serializeValue(argument, false, true);
  69663. }
  69664. };
  69665. K._removedColorFunction_closure0.prototype = {
  69666. call$1: function($arguments) {
  69667. var t1 = this.name,
  69668. t2 = J.getInterceptor$asx($arguments),
  69669. t3 = "The function " + t1 + "() isn't in the sass:color module.\n\nRecommendation: color.adjust(" + H.S(t2.$index($arguments, 0)) + ", $" + this.argument + ": ";
  69670. throw H.wrapException(E.SassScriptException$0(t3 + (this.negative ? "-" : "") + H.S(t2.$index($arguments, 1)) + ")\n\nMore info: https://sass-lang.com/documentation/functions/color#" + t1));
  69671. },
  69672. $signature: 52
  69673. };
  69674. K._parseChannels_closure0.prototype = {
  69675. call$1: function(value) {
  69676. return value.get$isVar();
  69677. }
  69678. };
  69679. K._NodeSassColor.prototype = {};
  69680. K.closure239.prototype = {
  69681. call$6: function(thisArg, redOrArgb, green, blue, alpha, dartValue) {
  69682. var red, t1, t2, t3, t4;
  69683. if (dartValue != null) {
  69684. J.set$dartValue$x(thisArg, dartValue);
  69685. return;
  69686. }
  69687. if (green == null) {
  69688. H._asIntNullable(redOrArgb);
  69689. alpha = C.JSInt_methods._shrOtherPositive$1(redOrArgb, 24) / 255;
  69690. red = C.JSInt_methods.$mod(C.JSInt_methods._shrOtherPositive$1(redOrArgb, 16), 256);
  69691. green = C.JSInt_methods.$mod(C.JSInt_methods._shrOtherPositive$1(redOrArgb, 8), 256);
  69692. blue = C.JSInt_methods.$mod(redOrArgb, 256);
  69693. } else
  69694. red = redOrArgb;
  69695. t1 = C.JSNumber_methods.round$0(J.clamp$2$n(red, 0, 255));
  69696. t2 = C.JSNumber_methods.round$0(C.JSNumber_methods.clamp$2(green, 0, 255));
  69697. t3 = C.JSNumber_methods.round$0(J.clamp$2$n(blue, 0, 255));
  69698. t4 = alpha == null ? null : C.JSNumber_methods.clamp$2(alpha, 0, 1);
  69699. J.set$dartValue$x(thisArg, K.SassColor$rgb0(t1, t2, t3, t4 == null ? 1 : t4, null));
  69700. },
  69701. call$2: function(thisArg, redOrArgb) {
  69702. return this.call$6(thisArg, redOrArgb, null, null, null, null);
  69703. },
  69704. call$3: function(thisArg, redOrArgb, green) {
  69705. return this.call$6(thisArg, redOrArgb, green, null, null, null);
  69706. },
  69707. call$4: function(thisArg, redOrArgb, green, blue) {
  69708. return this.call$6(thisArg, redOrArgb, green, blue, null, null);
  69709. },
  69710. call$5: function(thisArg, redOrArgb, green, blue, alpha) {
  69711. return this.call$6(thisArg, redOrArgb, green, blue, alpha, null);
  69712. },
  69713. "call*": "call$6",
  69714. $requiredArgCount: 2,
  69715. $defaultValues: function() {
  69716. return [null, null, null, null];
  69717. }
  69718. };
  69719. K.closure240.prototype = {
  69720. call$1: function(thisArg) {
  69721. return J.get$dartValue$x(thisArg).get$red();
  69722. }
  69723. };
  69724. K.closure241.prototype = {
  69725. call$1: function(thisArg) {
  69726. return J.get$dartValue$x(thisArg).get$green();
  69727. }
  69728. };
  69729. K.closure242.prototype = {
  69730. call$1: function(thisArg) {
  69731. return J.get$dartValue$x(thisArg).get$blue();
  69732. }
  69733. };
  69734. K.closure243.prototype = {
  69735. call$1: function(thisArg) {
  69736. return J.get$dartValue$x(thisArg).alpha;
  69737. }
  69738. };
  69739. K.closure244.prototype = {
  69740. call$2: function(thisArg, value) {
  69741. var t1 = J.getInterceptor$x(thisArg);
  69742. t1.set$dartValue(thisArg, t1.get$dartValue(thisArg).changeRgb$1$red(C.JSNumber_methods.round$0(J.clamp$2$n(value, 0, 255))));
  69743. },
  69744. "call*": "call$2",
  69745. $requiredArgCount: 2
  69746. };
  69747. K.closure245.prototype = {
  69748. call$2: function(thisArg, value) {
  69749. var t1 = J.getInterceptor$x(thisArg);
  69750. t1.set$dartValue(thisArg, t1.get$dartValue(thisArg).changeRgb$1$green(C.JSNumber_methods.round$0(J.clamp$2$n(value, 0, 255))));
  69751. },
  69752. "call*": "call$2",
  69753. $requiredArgCount: 2
  69754. };
  69755. K.closure246.prototype = {
  69756. call$2: function(thisArg, value) {
  69757. var t1 = J.getInterceptor$x(thisArg);
  69758. t1.set$dartValue(thisArg, t1.get$dartValue(thisArg).changeRgb$1$blue(C.JSNumber_methods.round$0(J.clamp$2$n(value, 0, 255))));
  69759. },
  69760. "call*": "call$2",
  69761. $requiredArgCount: 2
  69762. };
  69763. K.closure247.prototype = {
  69764. call$2: function(thisArg, value) {
  69765. var t1 = J.getInterceptor$x(thisArg);
  69766. t1.set$dartValue(thisArg, t1.get$dartValue(thisArg).changeRgb$1$alpha(J.clamp$2$n(value, 0, 1)));
  69767. },
  69768. "call*": "call$2",
  69769. $requiredArgCount: 2
  69770. };
  69771. K.closure248.prototype = {
  69772. call$1: function(thisArg) {
  69773. return J.toString$0$(J.get$dartValue$x(thisArg));
  69774. }
  69775. };
  69776. K.SassColor0.prototype = {
  69777. get$red: function() {
  69778. if (this._color1$_red == null)
  69779. this._color1$_hslToRgb$0();
  69780. return this._color1$_red;
  69781. },
  69782. get$green: function() {
  69783. if (this._color1$_green == null)
  69784. this._color1$_hslToRgb$0();
  69785. return this._color1$_green;
  69786. },
  69787. get$blue: function() {
  69788. if (this._color1$_blue == null)
  69789. this._color1$_hslToRgb$0();
  69790. return this._color1$_blue;
  69791. },
  69792. get$hue: function() {
  69793. if (this._color1$_hue == null)
  69794. this._color1$_rgbToHsl$0();
  69795. return this._color1$_hue;
  69796. },
  69797. get$saturation: function() {
  69798. if (this._color1$_saturation == null)
  69799. this._color1$_rgbToHsl$0();
  69800. return this._color1$_saturation;
  69801. },
  69802. get$lightness: function() {
  69803. if (this._color1$_lightness == null)
  69804. this._color1$_rgbToHsl$0();
  69805. return this._color1$_lightness;
  69806. },
  69807. get$original: function() {
  69808. var t1 = this.originalSpan;
  69809. return t1 == null ? null : P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, null);
  69810. },
  69811. accept$1$1: function(visitor) {
  69812. return visitor.visitColor$1(this);
  69813. },
  69814. accept$1: function(visitor) {
  69815. return this.accept$1$1(visitor, type$.dynamic);
  69816. },
  69817. assertColor$1: function($name) {
  69818. return this;
  69819. },
  69820. changeRgb$4$alpha$blue$green$red: function(alpha, blue, green, red) {
  69821. var _this = this,
  69822. t1 = red == null ? _this.get$red() : red,
  69823. t2 = green == null ? _this.get$green() : green,
  69824. t3 = blue == null ? _this.get$blue() : blue;
  69825. return K.SassColor$rgb0(t1, t2, t3, alpha == null ? _this.alpha : alpha, null);
  69826. },
  69827. changeRgb$3$blue$green$red: function(blue, green, red) {
  69828. return this.changeRgb$4$alpha$blue$green$red(null, blue, green, red);
  69829. },
  69830. changeRgb$1$alpha: function(alpha) {
  69831. return this.changeRgb$4$alpha$blue$green$red(alpha, null, null, null);
  69832. },
  69833. changeRgb$1$blue: function(blue) {
  69834. return this.changeRgb$4$alpha$blue$green$red(null, blue, null, null);
  69835. },
  69836. changeRgb$1$green: function(green) {
  69837. return this.changeRgb$4$alpha$blue$green$red(null, null, green, null);
  69838. },
  69839. changeRgb$1$red: function(red) {
  69840. return this.changeRgb$4$alpha$blue$green$red(null, null, null, red);
  69841. },
  69842. changeHsl$4$alpha$hue$lightness$saturation: function(alpha, hue, lightness, saturation) {
  69843. var _this = this,
  69844. t1 = hue == null ? _this.get$hue() : hue,
  69845. t2 = saturation == null ? _this.get$saturation() : saturation,
  69846. t3 = lightness == null ? _this.get$lightness() : lightness;
  69847. return K.SassColor$hsl0(t1, t2, t3, alpha == null ? _this.alpha : alpha);
  69848. },
  69849. changeHsl$3$alpha$lightness$saturation: function(alpha, lightness, saturation) {
  69850. return this.changeHsl$4$alpha$hue$lightness$saturation(alpha, null, lightness, saturation);
  69851. },
  69852. changeHsl$1$saturation: function(saturation) {
  69853. return this.changeHsl$4$alpha$hue$lightness$saturation(null, null, null, saturation);
  69854. },
  69855. changeHsl$1$lightness: function(lightness) {
  69856. return this.changeHsl$4$alpha$hue$lightness$saturation(null, null, lightness, null);
  69857. },
  69858. changeHsl$1$hue: function(hue) {
  69859. return this.changeHsl$4$alpha$hue$lightness$saturation(null, hue, null, null);
  69860. },
  69861. changeAlpha$1: function(alpha) {
  69862. var _this = this;
  69863. return new K.SassColor0(_this._color1$_red, _this._color1$_green, _this._color1$_blue, _this._color1$_hue, _this._color1$_saturation, _this._color1$_lightness, T.fuzzyAssertRange0(alpha, 0, 1, "alpha"), null);
  69864. },
  69865. plus$1: function(other) {
  69866. if (!(other instanceof T.SassNumber0) && !(other instanceof K.SassColor0))
  69867. return this.super$Value$plus0(other);
  69868. throw H.wrapException(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " + " + H.S(other) + '".'));
  69869. },
  69870. minus$1: function(other) {
  69871. if (!(other instanceof T.SassNumber0) && !(other instanceof K.SassColor0))
  69872. return this.super$Value$minus0(other);
  69873. throw H.wrapException(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " - " + H.S(other) + '".'));
  69874. },
  69875. dividedBy$1: function(other) {
  69876. if (!(other instanceof T.SassNumber0) && !(other instanceof K.SassColor0))
  69877. return this.super$Value$dividedBy0(other);
  69878. throw H.wrapException(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " / " + H.S(other) + '".'));
  69879. },
  69880. modulo$1: function(other) {
  69881. return H.throwExpression(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " % " + H.S(other) + '".'));
  69882. },
  69883. $eq: function(_, other) {
  69884. var _this = this;
  69885. if (other == null)
  69886. return false;
  69887. return other instanceof K.SassColor0 && other.get$red() == _this.get$red() && other.get$green() == _this.get$green() && other.get$blue() == _this.get$blue() && other.alpha === _this.alpha;
  69888. },
  69889. get$hashCode: function(_) {
  69890. var _this = this;
  69891. return J.get$hashCode$(_this.get$red()) ^ J.get$hashCode$(_this.get$green()) ^ J.get$hashCode$(_this.get$blue()) ^ C.JSNumber_methods.get$hashCode(_this.alpha);
  69892. },
  69893. _color1$_rgbToHsl$0: function() {
  69894. var t2, t3, _this = this,
  69895. scaledRed = _this.get$red() / 255,
  69896. scaledGreen = _this.get$green() / 255,
  69897. scaledBlue = _this.get$blue() / 255,
  69898. max = Math.max(Math.max(scaledRed, scaledGreen), scaledBlue),
  69899. min = Math.min(Math.min(scaledRed, scaledGreen), scaledBlue),
  69900. delta = max - min,
  69901. t1 = max === min;
  69902. if (t1)
  69903. _this._color1$_hue = 0;
  69904. else if (max === scaledRed)
  69905. _this._color1$_hue = C.JSDouble_methods.$mod(60 * (scaledGreen - scaledBlue) / delta, 360);
  69906. else if (max === scaledGreen)
  69907. _this._color1$_hue = C.JSNumber_methods.$mod(120 + 60 * (scaledBlue - scaledRed) / delta, 360);
  69908. else if (max === scaledBlue)
  69909. _this._color1$_hue = C.JSNumber_methods.$mod(240 + 60 * (scaledRed - scaledGreen) / delta, 360);
  69910. t2 = max + min;
  69911. t3 = 50 * t2;
  69912. _this._color1$_lightness = t3;
  69913. if (t1)
  69914. _this._color1$_saturation = 0;
  69915. else {
  69916. t1 = 100 * delta;
  69917. if (t3 < 50)
  69918. _this._color1$_saturation = t1 / t2;
  69919. else
  69920. _this._color1$_saturation = t1 / (2 - max - min);
  69921. }
  69922. },
  69923. _color1$_hslToRgb$0: function() {
  69924. var _this = this,
  69925. scaledHue = _this.get$hue() / 360,
  69926. scaledSaturation = _this.get$saturation() / 100,
  69927. scaledLightness = _this.get$lightness() / 100,
  69928. m2 = scaledLightness <= 0.5 ? scaledLightness * (scaledSaturation + 1) : scaledLightness + scaledSaturation - scaledLightness * scaledSaturation,
  69929. m1 = scaledLightness * 2 - m2;
  69930. _this._color1$_red = _this._color1$_hueToRgb$3(m1, m2, scaledHue + 0.3333333333333333);
  69931. _this._color1$_green = _this._color1$_hueToRgb$3(m1, m2, scaledHue);
  69932. _this._color1$_blue = _this._color1$_hueToRgb$3(m1, m2, scaledHue - 0.3333333333333333);
  69933. },
  69934. _color1$_hueToRgb$3: function(m1, m2, hue) {
  69935. var result;
  69936. if (hue < 0)
  69937. ++hue;
  69938. if (hue > 1)
  69939. --hue;
  69940. if (hue < 0.16666666666666666)
  69941. result = m1 + (m2 - m1) * hue * 6;
  69942. else if (hue < 0.5)
  69943. result = m2;
  69944. else
  69945. result = hue < 0.6666666666666666 ? m1 + (m2 - m1) * (0.6666666666666666 - hue) * 6 : m1;
  69946. return T.fuzzyRound0(result * 255);
  69947. }
  69948. };
  69949. X.closure178.prototype = {
  69950. call$2: function(_, color) {
  69951. return color;
  69952. }
  69953. };
  69954. X.closure179.prototype = {
  69955. call$2: function($name, _) {
  69956. return $name;
  69957. }
  69958. };
  69959. R.ModifiableCssComment0.prototype = {
  69960. accept$1$1: function(visitor) {
  69961. return visitor.visitCssComment$1(this);
  69962. },
  69963. accept$1: function(visitor) {
  69964. return this.accept$1$1(visitor, type$.dynamic);
  69965. },
  69966. $isCssComment0: 1,
  69967. get$span: function() {
  69968. return this.span;
  69969. }
  69970. };
  69971. U._compileStylesheet_closure1.prototype = {
  69972. call$1: function(url) {
  69973. var t1, t2, _null = null;
  69974. if (url === "")
  69975. t1 = J.toString$0$(P.Uri_Uri$dataFromString(P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(this.stylesheet.span.file._decodedChars, 0, _null), 0, _null), C.C_Utf8Codec, _null));
  69976. else {
  69977. t1 = P.Uri_parse(url);
  69978. t2 = this.importCache._import_cache$_resultsCache.$index(0, t1);
  69979. t2 = t2 == null ? _null : t2.get$sourceMapUrl();
  69980. t1 = J.toString$0$(t2 == null ? t1 : t2);
  69981. }
  69982. return t1;
  69983. }
  69984. };
  69985. S.ComplexSelector0.prototype = {
  69986. get$minSpecificity: function() {
  69987. if (this._complex0$_minSpecificity == null)
  69988. this._complex0$_computeSpecificity$0();
  69989. return this._complex0$_minSpecificity;
  69990. },
  69991. get$maxSpecificity: function() {
  69992. if (this._complex0$_maxSpecificity == null)
  69993. this._complex0$_computeSpecificity$0();
  69994. return this._complex0$_maxSpecificity;
  69995. },
  69996. get$isInvisible: function() {
  69997. var t1 = this._complex0$_isInvisible;
  69998. if (t1 != null)
  69999. return t1;
  70000. return this._complex0$_isInvisible = C.JSArray_methods.any$1(this.components, new S.ComplexSelector_isInvisible_closure0());
  70001. },
  70002. accept$1$1: function(visitor) {
  70003. return visitor.visitComplexSelector$1(this);
  70004. },
  70005. accept$1: function(visitor) {
  70006. return this.accept$1$1(visitor, type$.dynamic);
  70007. },
  70008. _complex0$_computeSpecificity$0: function() {
  70009. var t1, t2, component, t3, _this = this,
  70010. _i = _this._complex0$_maxSpecificity = _this._complex0$_minSpecificity = 0;
  70011. for (t1 = _this.components, t2 = t1.length; _i < t2; ++_i) {
  70012. component = t1[_i];
  70013. if (component instanceof X.CompoundSelector0) {
  70014. t3 = _this._complex0$_minSpecificity;
  70015. if (component._compound0$_minSpecificity == null)
  70016. component._compound0$_computeSpecificity$0();
  70017. _this._complex0$_minSpecificity = t3 + component._compound0$_minSpecificity;
  70018. t3 = _this._complex0$_maxSpecificity;
  70019. if (component._compound0$_maxSpecificity == null)
  70020. component._compound0$_computeSpecificity$0();
  70021. _this._complex0$_maxSpecificity = t3 + component._compound0$_maxSpecificity;
  70022. }
  70023. }
  70024. },
  70025. get$hashCode: function(_) {
  70026. return C.C_ListEquality.hash$1(this.components);
  70027. },
  70028. $eq: function(_, other) {
  70029. if (other == null)
  70030. return false;
  70031. return other instanceof S.ComplexSelector0 && C.C_ListEquality.equals$2(this.components, other.components);
  70032. }
  70033. };
  70034. S.ComplexSelector_isInvisible_closure0.prototype = {
  70035. call$1: function(component) {
  70036. return component instanceof X.CompoundSelector0 && component.get$isInvisible();
  70037. }
  70038. };
  70039. S.ComplexSelectorComponent0.prototype = {};
  70040. S.Combinator0.prototype = {
  70041. toString$0: function(_) {
  70042. return this._complex0$_text;
  70043. },
  70044. $isComplexSelectorComponent0: 1
  70045. };
  70046. X.CompoundSelector0.prototype = {
  70047. get$isInvisible: function() {
  70048. return C.JSArray_methods.any$1(this.components, new X.CompoundSelector_isInvisible_closure0());
  70049. },
  70050. accept$1$1: function(visitor) {
  70051. return visitor.visitCompoundSelector$1(this);
  70052. },
  70053. accept$1: function(visitor) {
  70054. return this.accept$1$1(visitor, type$.dynamic);
  70055. },
  70056. _compound0$_computeSpecificity$0: function() {
  70057. var t1, t2, simple, _this = this,
  70058. _i = _this._compound0$_maxSpecificity = _this._compound0$_minSpecificity = 0;
  70059. for (t1 = _this.components, t2 = t1.length; _i < t2; ++_i) {
  70060. simple = t1[_i];
  70061. _this._compound0$_minSpecificity = _this._compound0$_minSpecificity + simple.get$minSpecificity();
  70062. _this._compound0$_maxSpecificity = _this._compound0$_maxSpecificity + simple.get$maxSpecificity();
  70063. }
  70064. },
  70065. get$hashCode: function(_) {
  70066. return C.C_ListEquality.hash$1(this.components);
  70067. },
  70068. $eq: function(_, other) {
  70069. if (other == null)
  70070. return false;
  70071. return other instanceof X.CompoundSelector0 && C.C_ListEquality.equals$2(this.components, other.components);
  70072. },
  70073. $isComplexSelectorComponent0: 1
  70074. };
  70075. X.CompoundSelector_isInvisible_closure0.prototype = {
  70076. call$1: function(component) {
  70077. return component.get$isInvisible();
  70078. }
  70079. };
  70080. A.Configuration0.prototype = {
  70081. throughForward$1: function($forward) {
  70082. var t1, t2,
  70083. newValues = this._configuration$_values;
  70084. if (newValues.get$isEmpty(newValues))
  70085. return C.Configuration_Map_empty_null_true0;
  70086. t1 = $forward.prefix;
  70087. if (t1 != null)
  70088. newValues = new R.UnprefixedMapView0(newValues, t1, type$.UnprefixedMapView_ConfiguredValue_2);
  70089. t1 = $forward.shownVariables;
  70090. if (t1 != null)
  70091. newValues = K.LimitedMapView$safelist0(newValues, t1, type$.String, type$.ConfiguredValue_2);
  70092. else {
  70093. t1 = $forward.hiddenVariables;
  70094. if (t1 == null)
  70095. t2 = null;
  70096. else {
  70097. t2 = t1._base;
  70098. t2 = t2.get$isNotEmpty(t2);
  70099. }
  70100. if (t2 === true)
  70101. newValues = K.LimitedMapView$blocklist0(newValues, t1, type$.String, type$.ConfiguredValue_2);
  70102. }
  70103. return this.isImplicit ? new A.Configuration0(newValues, null, true) : new A.Configuration0(newValues, this.nodeWithSpan, false);
  70104. }
  70105. };
  70106. Z.ConfiguredValue0.prototype = {};
  70107. Z.ConfiguredVariable0.prototype = {
  70108. toString$0: function(_) {
  70109. var t1 = "$" + this.name + ": " + H.S(this.expression);
  70110. return t1 + (this.isGuarded ? " !default" : "");
  70111. },
  70112. $isAstNode0: 1,
  70113. get$span: function() {
  70114. return this.span;
  70115. }
  70116. };
  70117. Y.ContentBlock0.prototype = {
  70118. accept$1$1: function(visitor) {
  70119. return visitor.visitContentBlock$1(this);
  70120. },
  70121. accept$1: function(visitor) {
  70122. return this.accept$1$1(visitor, type$.dynamic);
  70123. },
  70124. toString$0: function(_) {
  70125. var t2,
  70126. t1 = this.$arguments;
  70127. t1 = t1.$arguments.length === 0 && t1.restArgument == null ? "" : " using (" + t1.toString$0(0) + ")";
  70128. t2 = this.children;
  70129. return t1 + (" {" + (t2 && C.JSArray_methods).join$1(t2, " ") + "}");
  70130. }
  70131. };
  70132. Q.ContentRule0.prototype = {
  70133. accept$1$1: function(visitor) {
  70134. return visitor.visitContentRule$1(this);
  70135. },
  70136. accept$1: function(visitor) {
  70137. return this.accept$1$1(visitor, type$.dynamic);
  70138. },
  70139. toString$0: function(_) {
  70140. var t1 = this.$arguments;
  70141. return t1.get$isEmpty(t1) ? "@content;" : "@content(" + t1.toString$0(0) + ");";
  70142. },
  70143. $isAstNode0: 1,
  70144. $isStatement0: 1,
  70145. get$span: function() {
  70146. return this.span;
  70147. }
  70148. };
  70149. Q.closure213.prototype = {
  70150. call$1: function($function) {
  70151. return $function.name;
  70152. }
  70153. };
  70154. Q.CssParser0.prototype = {
  70155. get$plainCss: function() {
  70156. return true;
  70157. },
  70158. silentComment$0: function() {
  70159. var t1 = this.scanner,
  70160. t2 = t1._string_scanner$_position;
  70161. this.super$Parser$silentComment0();
  70162. this.error$2("Silent comments aren't allowed in plain CSS.", t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  70163. },
  70164. atRule$2$root: function(child, root) {
  70165. var $name, urlStart, next, url, urlSpan, queries, t2, t3, t4, t5, _this = this,
  70166. t1 = _this.scanner,
  70167. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  70168. t1.expectChar$1(64);
  70169. $name = _this.interpolatedIdentifier$0();
  70170. _this.whitespace$0();
  70171. switch ($name.get$asPlain()) {
  70172. case "at-root":
  70173. case "content":
  70174. case "debug":
  70175. case "each":
  70176. case "error":
  70177. case "extend":
  70178. case "for":
  70179. case "function":
  70180. case "if":
  70181. case "include":
  70182. case "mixin":
  70183. case "return":
  70184. case "warn":
  70185. case "while":
  70186. _this.almostAnyValue$0();
  70187. _this.error$2("This at-rule isn't allowed in plain CSS.", t1.spanFrom$1(start));
  70188. break;
  70189. case "charset":
  70190. _this.string$0();
  70191. if (!root)
  70192. _this.error$2("This at-rule is not allowed here.", t1.spanFrom$1(start));
  70193. return null;
  70194. case "import":
  70195. urlStart = new S._SpanScannerState(t1, t1._string_scanner$_position);
  70196. next = t1.peekChar$0();
  70197. url = next === 117 || next === 85 ? _this.dynamicUrl$0() : new D.StringExpression0(_this.interpolatedString$0().asInterpolation$1$static(true), false);
  70198. urlSpan = t1.spanFrom$1(urlStart);
  70199. _this.whitespace$0();
  70200. queries = _this.tryImportQueries$0();
  70201. _this.expectStatementSeparator$1("@import rule");
  70202. t2 = X.Interpolation$0([url], urlSpan);
  70203. t3 = t1.spanFrom$1(urlStart);
  70204. t4 = queries == null;
  70205. t5 = t4 ? null : queries.item1;
  70206. t2 = H.setRuntimeTypeInfo([new Q.StaticImport0(t2, t5, t4 ? null : queries.item2, t3)], type$.JSArray_Import_2);
  70207. t1 = t1.spanFrom$1(start);
  70208. return new B.ImportRule0(P.List_List$unmodifiable(t2, type$.Import_2), t1);
  70209. case "media":
  70210. return _this.mediaRule$1(start);
  70211. case "-moz-document":
  70212. return _this.mozDocumentRule$2(start, $name);
  70213. case "supports":
  70214. return _this.supportsRule$1(start);
  70215. default:
  70216. return _this.unknownAtRule$2(start, $name);
  70217. }
  70218. },
  70219. identifierLike$0: function() {
  70220. var t2, $arguments, _this = this,
  70221. t1 = _this.scanner,
  70222. start = new S._SpanScannerState(t1, t1._string_scanner$_position),
  70223. identifier = _this.interpolatedIdentifier$0(),
  70224. plain = identifier.get$asPlain(),
  70225. specialFunction = _this.trySpecialFunction$2(plain.toLowerCase(), start);
  70226. if (specialFunction != null)
  70227. return specialFunction;
  70228. t2 = t1._string_scanner$_position;
  70229. if (!t1.scanChar$1(40))
  70230. return new D.StringExpression0(identifier, false);
  70231. $arguments = H.setRuntimeTypeInfo([], type$.JSArray_Expression_2);
  70232. if (!t1.scanChar$1(41)) {
  70233. do {
  70234. _this.whitespace$0();
  70235. $arguments.push(_this.expression$1$singleEquals(true));
  70236. _this.whitespace$0();
  70237. } while (t1.scanChar$1(44));
  70238. t1.expectChar$1(41);
  70239. }
  70240. if ($.$get$_disallowedFunctionNames0().contains$1(0, plain))
  70241. _this.error$2("This function isn't allowed in plain CSS.", t1.spanFrom$1(start));
  70242. return new F.FunctionExpression0(null, X.Interpolation$0([new D.StringExpression0(identifier, false)], identifier.span), X.ArgumentInvocation$0($arguments, C.Map_empty9, t1.spanFrom$1(new S._SpanScannerState(t1, t2)), null, null), t1.spanFrom$1(start));
  70243. }
  70244. };
  70245. Q.DebugRule0.prototype = {
  70246. accept$1$1: function(visitor) {
  70247. return visitor.visitDebugRule$1(this);
  70248. },
  70249. accept$1: function(visitor) {
  70250. return this.accept$1$1(visitor, type$.dynamic);
  70251. },
  70252. toString$0: function(_) {
  70253. return "@debug " + H.S(this.expression) + ";";
  70254. },
  70255. $isAstNode0: 1,
  70256. $isStatement0: 1,
  70257. get$span: function() {
  70258. return this.span;
  70259. }
  70260. };
  70261. L.ModifiableCssDeclaration0.prototype = {
  70262. accept$1$1: function(visitor) {
  70263. return visitor.visitCssDeclaration$1(this);
  70264. },
  70265. accept$1: function(visitor) {
  70266. return this.accept$1$1(visitor, type$.dynamic);
  70267. },
  70268. get$span: function() {
  70269. return this.span;
  70270. }
  70271. };
  70272. L.Declaration0.prototype = {
  70273. accept$1$1: function(visitor) {
  70274. return visitor.visitDeclaration$1(this);
  70275. },
  70276. accept$1: function(visitor) {
  70277. return this.accept$1$1(visitor, type$.dynamic);
  70278. },
  70279. toString$0: function(_) {
  70280. return H.S(this.name) + ": " + H.S(this.value) + ";";
  70281. },
  70282. get$span: function() {
  70283. return this.span;
  70284. }
  70285. };
  70286. L.SupportsDeclaration0.prototype = {
  70287. toString$0: function(_) {
  70288. return "(" + H.S(this.name) + ": " + H.S(this.value) + ")";
  70289. },
  70290. $isAstNode0: 1,
  70291. get$span: function() {
  70292. return this.span;
  70293. }
  70294. };
  70295. B.DynamicImport0.prototype = {
  70296. toString$0: function(_) {
  70297. return new D.StringExpression0(X.Interpolation$0([this.url], null), true).asInterpolation$1$static(true).get$asPlain();
  70298. },
  70299. $isImport0: 1,
  70300. $isAstNode0: 1,
  70301. get$span: function() {
  70302. return this.span;
  70303. }
  70304. };
  70305. V.EachRule0.prototype = {
  70306. accept$1$1: function(visitor) {
  70307. return visitor.visitEachRule$1(this);
  70308. },
  70309. accept$1: function(visitor) {
  70310. return this.accept$1$1(visitor, type$.dynamic);
  70311. },
  70312. toString$0: function(_) {
  70313. var t1 = this.variables,
  70314. t2 = this.children;
  70315. return "@each " + new H.MappedListIterable(t1, new V.EachRule_toString_closure0(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$1(0, ", ") + " in " + H.S(this.list) + " {" + (t2 && C.JSArray_methods).join$1(t2, " ") + "}";
  70316. },
  70317. get$span: function() {
  70318. return this.span;
  70319. }
  70320. };
  70321. V.EachRule_toString_closure0.prototype = {
  70322. call$1: function(variable) {
  70323. return C.JSString_methods.$add("$", variable);
  70324. }
  70325. };
  70326. T.EmptyExtender0.prototype = {
  70327. get$isEmpty: function(_) {
  70328. return true;
  70329. },
  70330. get$simpleSelectors: function() {
  70331. return C.C_EmptyUnmodifiableSet0;
  70332. },
  70333. extensionsWhereTarget$1: function(callback) {
  70334. return C.List_empty13;
  70335. },
  70336. addExtensions$1: function(extenders) {
  70337. throw H.wrapException(P.UnsupportedError$("addExtensions() can't be called for a const Extender."));
  70338. },
  70339. clone$0: function() {
  70340. return C.Tuple2_EmptyExtender_Map_empty0;
  70341. },
  70342. $isExtender0: 1
  70343. };
  70344. O.Environment0.prototype = {
  70345. closure$0: function() {
  70346. var t5, t6, t7, _this = this,
  70347. t1 = _this._environment0$_forwardedModules,
  70348. t2 = _this._environment0$_forwardedModuleNodes,
  70349. t3 = _this._environment0$_nestedForwardedModules,
  70350. t4 = _this._environment0$_variables;
  70351. t4 = H.setRuntimeTypeInfo(t4.slice(0), H._arrayInstanceType(t4));
  70352. t5 = _this._environment0$_variableNodes;
  70353. if (t5 == null)
  70354. t5 = null;
  70355. else
  70356. t5 = H.setRuntimeTypeInfo(t5.slice(0), H._arrayInstanceType(t5));
  70357. t6 = _this._environment0$_functions;
  70358. t6 = H.setRuntimeTypeInfo(t6.slice(0), H._arrayInstanceType(t6));
  70359. t7 = _this._environment0$_mixins;
  70360. t7 = H.setRuntimeTypeInfo(t7.slice(0), H._arrayInstanceType(t7));
  70361. return O.Environment$_0(_this._environment0$_modules, _this._environment0$_namespaceNodes, _this._environment0$_globalModules, _this._environment0$_globalModuleNodes, t1, t2, t3, _this._environment0$_allModules, t4, t5, t6, t7, _this._environment0$_content);
  70362. },
  70363. addModule$3$namespace: function(module, nodeWithSpan, namespace) {
  70364. var t1, t2, _this = this;
  70365. if (namespace == null) {
  70366. _this._environment0$_globalModules.add$1(0, module);
  70367. _this._environment0$_globalModuleNodes.$indexSet(0, module, nodeWithSpan);
  70368. _this._environment0$_allModules.push(module);
  70369. for (t1 = J.get$iterator$ax(C.JSArray_methods.get$first(_this._environment0$_variables).get$keys()); t1.moveNext$0();) {
  70370. t2 = t1.get$current(t1);
  70371. if (module.get$variables().containsKey$1(t2))
  70372. throw H.wrapException(E.SassScriptException$0('This module and the new module both define a variable named "$' + H.S(t2) + '".'));
  70373. }
  70374. } else {
  70375. t1 = _this._environment0$_modules;
  70376. if (t1.containsKey$1(namespace))
  70377. throw H.wrapException(E.MultiSpanSassScriptException$0("There's already a module with namespace \"" + namespace + '".', "new @use", P.LinkedHashMap_LinkedHashMap$_literal([_this._environment0$_namespaceNodes.$index(0, namespace).get$span(), "original @use"], type$.FileSpan, type$.String)));
  70378. t1.$indexSet(0, namespace, module);
  70379. _this._environment0$_namespaceNodes.$indexSet(0, namespace, nodeWithSpan);
  70380. _this._environment0$_allModules.push(module);
  70381. }
  70382. },
  70383. forwardModule$2: function(module, rule) {
  70384. var view, t1, t2, _this = this;
  70385. if (_this._environment0$_forwardedModules == null)
  70386. _this._environment0$_forwardedModules = P.LinkedHashSet_LinkedHashSet$_empty(type$.Module_Callable_2);
  70387. if (_this._environment0$_forwardedModuleNodes == null)
  70388. _this._environment0$_forwardedModuleNodes = P.LinkedHashMap_LinkedHashMap$_empty(type$.Module_Callable_2, type$.AstNode_2);
  70389. view = R.ForwardedModuleView_ifNecessary0(module, rule, type$.Callable_2);
  70390. for (t1 = _this._environment0$_forwardedModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications); t1.moveNext$0();) {
  70391. t2 = t1._collection$_current;
  70392. _this._environment0$_assertNoConflicts$6(view.get$variables(), t2.get$variables(), view, t2, "variable", rule);
  70393. _this._environment0$_assertNoConflicts$6(view.get$functions(view), t2.get$functions(t2), view, t2, "function", rule);
  70394. _this._environment0$_assertNoConflicts$6(view.get$mixins(), t2.get$mixins(), view, t2, "mixin", rule);
  70395. }
  70396. _this._environment0$_allModules.push(module);
  70397. _this._environment0$_forwardedModules.add$1(0, view);
  70398. _this._environment0$_forwardedModuleNodes.$indexSet(0, view, rule);
  70399. },
  70400. _environment0$_assertNoConflicts$6: function(newMembers, oldMembers, newModule, oldModule, type, newModuleNodeWithSpan) {
  70401. var larger, smaller, t1, t2, $name;
  70402. if (newMembers.get$length(newMembers) < oldMembers.get$length(oldMembers)) {
  70403. larger = oldMembers;
  70404. smaller = newMembers;
  70405. } else {
  70406. larger = newMembers;
  70407. smaller = oldMembers;
  70408. }
  70409. for (t1 = J.get$iterator$ax(smaller.get$keys()), t2 = type === "variable"; t1.moveNext$0();) {
  70410. $name = t1.get$current(t1);
  70411. if (!larger.containsKey$1($name))
  70412. continue;
  70413. if (t2 ? newModule.variableIdentity$1($name) === oldModule.variableIdentity$1($name) : J.$eq$(larger.$index(0, $name), smaller.$index(0, $name)))
  70414. continue;
  70415. if (t2)
  70416. $name = "$" + H.S($name);
  70417. throw H.wrapException(E.MultiSpanSassScriptException$0("Two forwarded modules both define a " + type + " named " + H.S($name) + ".", "new @forward", P.LinkedHashMap_LinkedHashMap$_literal([this._environment0$_forwardedModuleNodes.$index(0, oldModule).get$span(), "original @forward"], type$.FileSpan, type$.String)));
  70418. }
  70419. },
  70420. importForwards$1: function(module) {
  70421. var t2, t3, t4, t5, forwardedVariableNames, forwardedFunctionNames, forwardedMixinNames, t6, t7, _i, shadowed, t8, _this = this,
  70422. t1 = module._environment0$_environment,
  70423. forwarded = t1._environment0$_forwardedModules;
  70424. if (forwarded == null)
  70425. return;
  70426. if (_this._environment0$_forwardedModules != null) {
  70427. t2 = P.LinkedHashSet_LinkedHashSet(type$.Module_Callable_2);
  70428. for (t3 = P._LinkedHashSetIterator$(forwarded, forwarded._collection$_modifications), t4 = _this._environment0$_globalModules; t3.moveNext$0();) {
  70429. t5 = t3._collection$_current;
  70430. if (!_this._environment0$_forwardedModules.contains$1(0, t5) || !t4.contains$1(0, t5))
  70431. t2.add$1(0, t5);
  70432. }
  70433. forwarded = t2;
  70434. }
  70435. if (_this._environment0$_forwardedModules == null)
  70436. _this._environment0$_forwardedModules = P.LinkedHashSet_LinkedHashSet$_empty(type$.Module_Callable_2);
  70437. if (_this._environment0$_forwardedModuleNodes == null)
  70438. _this._environment0$_forwardedModuleNodes = P.LinkedHashMap_LinkedHashMap$_empty(type$.Module_Callable_2, type$.AstNode_2);
  70439. t2 = H._instanceType(forwarded)._eval$1("ExpandIterable<1,String>");
  70440. t3 = t2._eval$1("Iterable.E");
  70441. forwardedVariableNames = P.LinkedHashSet_LinkedHashSet$from(new H.ExpandIterable(forwarded, new O.Environment_importForwards_closure3(), t2), t3);
  70442. forwardedFunctionNames = P.LinkedHashSet_LinkedHashSet$from(new H.ExpandIterable(forwarded, new O.Environment_importForwards_closure4(), t2), t3);
  70443. forwardedMixinNames = P.LinkedHashSet_LinkedHashSet$from(new H.ExpandIterable(forwarded, new O.Environment_importForwards_closure5(), t2), t3);
  70444. t2 = _this._environment0$_variables;
  70445. t3 = t2.length;
  70446. if (t3 === 1) {
  70447. for (t3 = _this._environment0$_globalModules, t4 = t3.toList$0(0), t5 = t4.length, t6 = type$.Callable_2, t7 = _this._environment0$_globalModuleNodes, _i = 0; _i < t4.length; t4.length === t5 || (0, H.throwConcurrentModificationError)(t4), ++_i) {
  70448. module = t4[_i];
  70449. shadowed = B.ShadowedModuleView_ifNecessary0(module, forwardedFunctionNames, forwardedMixinNames, forwardedVariableNames, t6);
  70450. if (shadowed != null) {
  70451. t3.remove$1(0, module);
  70452. t8 = shadowed.variables;
  70453. if (t8.get$isEmpty(t8)) {
  70454. t8 = shadowed.functions;
  70455. if (t8.get$isEmpty(t8)) {
  70456. t8 = shadowed.mixins;
  70457. if (t8.get$isEmpty(t8)) {
  70458. t8 = shadowed._shadowed_view0$_inner;
  70459. t8 = J.get$isEmpty$asx(t8.get$css(t8).get$children());
  70460. } else
  70461. t8 = false;
  70462. } else
  70463. t8 = false;
  70464. } else
  70465. t8 = false;
  70466. if (!t8) {
  70467. t3.add$1(0, shadowed);
  70468. t7.$indexSet(0, shadowed, t7.remove$1(0, module));
  70469. }
  70470. }
  70471. }
  70472. for (t4 = _this._environment0$_forwardedModules.toList$0(0), t5 = t4.length, _i = 0; _i < t4.length; t4.length === t5 || (0, H.throwConcurrentModificationError)(t4), ++_i) {
  70473. module = t4[_i];
  70474. shadowed = B.ShadowedModuleView_ifNecessary0(module, forwardedFunctionNames, forwardedMixinNames, forwardedVariableNames, t6);
  70475. if (shadowed != null) {
  70476. _this._environment0$_forwardedModules.remove$1(0, module);
  70477. t8 = shadowed.variables;
  70478. if (t8.get$isEmpty(t8)) {
  70479. t8 = shadowed.functions;
  70480. if (t8.get$isEmpty(t8)) {
  70481. t8 = shadowed.mixins;
  70482. if (t8.get$isEmpty(t8)) {
  70483. t8 = shadowed._shadowed_view0$_inner;
  70484. t8 = J.get$isEmpty$asx(t8.get$css(t8).get$children());
  70485. } else
  70486. t8 = false;
  70487. } else
  70488. t8 = false;
  70489. } else
  70490. t8 = false;
  70491. if (!t8) {
  70492. _this._environment0$_forwardedModules.add$1(0, shadowed);
  70493. t8 = _this._environment0$_forwardedModuleNodes;
  70494. t8.$indexSet(0, shadowed, t8.remove$1(0, module));
  70495. }
  70496. }
  70497. }
  70498. t3.addAll$1(0, forwarded);
  70499. t7.addAll$1(0, t1._environment0$_forwardedModuleNodes);
  70500. _this._environment0$_forwardedModules.addAll$1(0, forwarded);
  70501. _this._environment0$_forwardedModuleNodes.addAll$1(0, t1._environment0$_forwardedModuleNodes);
  70502. } else {
  70503. t1 = _this._environment0$_nestedForwardedModules;
  70504. J.addAll$1$ax(C.JSArray_methods.get$last(t1 == null ? _this._environment0$_nestedForwardedModules = P.List_List$generate(t3 - 1, new O.Environment_importForwards_closure6(), true, type$.List_Module_Callable_2) : t1), forwarded);
  70505. }
  70506. for (t1 = P._LinkedHashSetIterator$(forwardedVariableNames, forwardedVariableNames._collection$_modifications), t3 = _this._environment0$_variableNodes, t4 = t3 != null, t5 = _this._environment0$_variableIndices; t1.moveNext$0();) {
  70507. t6 = t1._collection$_current;
  70508. t5.remove$1(0, t6);
  70509. J.remove$1$ax(C.JSArray_methods.get$last(t2), t6);
  70510. if (t4)
  70511. J.remove$1$ax(C.JSArray_methods.get$last(t3), t6);
  70512. }
  70513. for (t1 = P._LinkedHashSetIterator$(forwardedFunctionNames, forwardedFunctionNames._collection$_modifications), t2 = _this._environment0$_functionIndices, t3 = _this._environment0$_functions; t1.moveNext$0();) {
  70514. t4 = t1._collection$_current;
  70515. t2.remove$1(0, t4);
  70516. J.remove$1$ax(C.JSArray_methods.get$last(t3), t4);
  70517. }
  70518. for (t1 = P._LinkedHashSetIterator$(forwardedMixinNames, forwardedMixinNames._collection$_modifications), t2 = _this._environment0$_mixinIndices, t3 = _this._environment0$_mixins; t1.moveNext$0();) {
  70519. t4 = t1._collection$_current;
  70520. t2.remove$1(0, t4);
  70521. J.remove$1$ax(C.JSArray_methods.get$last(t3), t4);
  70522. }
  70523. },
  70524. getVariable$2$namespace: function($name, namespace) {
  70525. var t1, index, _this = this;
  70526. if (namespace != null)
  70527. return _this._environment0$_getModule$1(namespace).get$variables().$index(0, $name);
  70528. if (_this._environment0$_lastVariableName === $name) {
  70529. t1 = J.$index$asx(_this._environment0$_variables[_this._environment0$_lastVariableIndex], $name);
  70530. return t1 == null ? _this._environment0$_getVariableFromGlobalModule$1($name) : t1;
  70531. }
  70532. t1 = _this._environment0$_variableIndices;
  70533. index = t1.$index(0, $name);
  70534. if (index != null) {
  70535. _this._environment0$_lastVariableName = $name;
  70536. _this._environment0$_lastVariableIndex = index;
  70537. t1 = J.$index$asx(_this._environment0$_variables[index], $name);
  70538. return t1 == null ? _this._environment0$_getVariableFromGlobalModule$1($name) : t1;
  70539. }
  70540. index = _this._environment0$_variableIndex$1($name);
  70541. if (index == null)
  70542. return _this._environment0$_getVariableFromGlobalModule$1($name);
  70543. _this._environment0$_lastVariableName = $name;
  70544. _this._environment0$_lastVariableIndex = index;
  70545. t1.$indexSet(0, $name, index);
  70546. t1 = J.$index$asx(_this._environment0$_variables[index], $name);
  70547. return t1 == null ? _this._environment0$_getVariableFromGlobalModule$1($name) : t1;
  70548. },
  70549. getVariable$1: function($name) {
  70550. return this.getVariable$2$namespace($name, null);
  70551. },
  70552. _environment0$_getVariableFromGlobalModule$1: function($name) {
  70553. return this._environment0$_fromOneModule$3($name, "variable", new O.Environment__getVariableFromGlobalModule_closure0($name));
  70554. },
  70555. getVariableNode$2$namespace: function($name, namespace) {
  70556. var t1, index, _this = this;
  70557. if (namespace != null)
  70558. return _this._environment0$_getModule$1(namespace).get$variableNodes().$index(0, $name);
  70559. if (_this._environment0$_lastVariableName === $name) {
  70560. t1 = J.$index$asx(_this._environment0$_variableNodes[_this._environment0$_lastVariableIndex], $name);
  70561. return t1 == null ? _this._environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
  70562. }
  70563. t1 = _this._environment0$_variableIndices;
  70564. index = t1.$index(0, $name);
  70565. if (index != null) {
  70566. _this._environment0$_lastVariableName = $name;
  70567. _this._environment0$_lastVariableIndex = index;
  70568. t1 = J.$index$asx(_this._environment0$_variableNodes[index], $name);
  70569. return t1 == null ? _this._environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
  70570. }
  70571. index = _this._environment0$_variableIndex$1($name);
  70572. if (index == null)
  70573. return _this._environment0$_getVariableNodeFromGlobalModule$1($name);
  70574. _this._environment0$_lastVariableName = $name;
  70575. _this._environment0$_lastVariableIndex = index;
  70576. t1.$indexSet(0, $name, index);
  70577. t1 = J.$index$asx(_this._environment0$_variableNodes[index], $name);
  70578. return t1 == null ? _this._environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
  70579. },
  70580. _environment0$_getVariableNodeFromGlobalModule$1: function($name) {
  70581. var t1, value;
  70582. for (t1 = this._environment0$_globalModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications); t1.moveNext$0();) {
  70583. value = t1._collection$_current.get$variableNodes().$index(0, $name);
  70584. if (value != null)
  70585. return value;
  70586. }
  70587. return null;
  70588. },
  70589. globalVariableExists$2$namespace: function($name, namespace) {
  70590. if (namespace != null)
  70591. return this._environment0$_getModule$1(namespace).get$variables().containsKey$1($name);
  70592. if (C.JSArray_methods.get$first(this._environment0$_variables).containsKey$1($name))
  70593. return true;
  70594. return this._environment0$_getVariableFromGlobalModule$1($name) != null;
  70595. },
  70596. globalVariableExists$1: function($name) {
  70597. return this.globalVariableExists$2$namespace($name, null);
  70598. },
  70599. _environment0$_variableIndex$1: function($name) {
  70600. var t1, i;
  70601. for (t1 = this._environment0$_variables, i = t1.length - 1; i >= 0; --i)
  70602. if (t1[i].containsKey$1($name))
  70603. return i;
  70604. return null;
  70605. },
  70606. setVariable$5$global$namespace: function($name, value, nodeWithSpan, global, namespace) {
  70607. var t1, moduleWithName, t2, t3, index, _this = this;
  70608. if (namespace != null) {
  70609. _this._environment0$_getModule$1(namespace).setVariable$3($name, value, nodeWithSpan);
  70610. return;
  70611. }
  70612. if (global || _this._environment0$_variables.length === 1) {
  70613. _this._environment0$_variableIndices.putIfAbsent$2($name, new O.Environment_setVariable_closure2(_this, $name));
  70614. t1 = _this._environment0$_variables;
  70615. if (!C.JSArray_methods.get$first(t1).containsKey$1($name)) {
  70616. moduleWithName = _this._environment0$_fromOneModule$3($name, "variable", new O.Environment_setVariable_closure3($name));
  70617. if (moduleWithName != null) {
  70618. moduleWithName.setVariable$3($name, value, nodeWithSpan);
  70619. return;
  70620. }
  70621. }
  70622. J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, value);
  70623. t1 = _this._environment0$_variableNodes;
  70624. if (t1 != null)
  70625. J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, nodeWithSpan);
  70626. return;
  70627. }
  70628. if (_this._environment0$_nestedForwardedModules != null && !_this._environment0$_variableIndices.containsKey$1($name) && _this._environment0$_variableIndex$1($name) == null) {
  70629. t1 = _this._environment0$_nestedForwardedModules;
  70630. t1.toString;
  70631. t1 = new H.ReversedListIterable(t1, H._arrayInstanceType(t1)._eval$1("ReversedListIterable<1>"));
  70632. t1 = new H.ListIterator(t1, t1.get$length(t1));
  70633. for (; t1.moveNext$0();)
  70634. for (t2 = J.get$reversed$ax(t1.__internal$_current), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  70635. t3 = t2.__internal$_current;
  70636. if (t3.get$variables().containsKey$1($name)) {
  70637. t3.setVariable$3($name, value, nodeWithSpan);
  70638. return;
  70639. }
  70640. }
  70641. }
  70642. index = _this._environment0$_lastVariableName === $name ? _this._environment0$_lastVariableIndex : _this._environment0$_variableIndices.putIfAbsent$2($name, new O.Environment_setVariable_closure4(_this, $name));
  70643. if (!_this._environment0$_inSemiGlobalScope && index === 0) {
  70644. index = _this._environment0$_variables.length - 1;
  70645. _this._environment0$_variableIndices.$indexSet(0, $name, index);
  70646. }
  70647. _this._environment0$_lastVariableName = $name;
  70648. _this._environment0$_lastVariableIndex = index;
  70649. J.$indexSet$ax(_this._environment0$_variables[index], $name, value);
  70650. t1 = _this._environment0$_variableNodes;
  70651. if (t1 != null)
  70652. J.$indexSet$ax(t1[index], $name, nodeWithSpan);
  70653. },
  70654. setVariable$4$global: function($name, value, nodeWithSpan, global) {
  70655. return this.setVariable$5$global$namespace($name, value, nodeWithSpan, global, null);
  70656. },
  70657. setLocalVariable$3: function($name, value, nodeWithSpan) {
  70658. var index, _this = this,
  70659. t1 = _this._environment0$_variables,
  70660. t2 = t1.length;
  70661. _this._environment0$_lastVariableName = $name;
  70662. index = _this._environment0$_lastVariableIndex = t2 - 1;
  70663. _this._environment0$_variableIndices.$indexSet(0, $name, index);
  70664. J.$indexSet$ax(t1[index], $name, value);
  70665. t1 = _this._environment0$_variableNodes;
  70666. if (t1 != null)
  70667. J.$indexSet$ax(t1[index], $name, nodeWithSpan);
  70668. },
  70669. getFunction$2$namespace: function($name, namespace) {
  70670. var t1, index, _this = this;
  70671. if (namespace != null) {
  70672. t1 = _this._environment0$_getModule$1(namespace);
  70673. return t1.get$functions(t1).$index(0, $name);
  70674. }
  70675. t1 = _this._environment0$_functionIndices;
  70676. index = t1.$index(0, $name);
  70677. if (index != null) {
  70678. t1 = J.$index$asx(_this._environment0$_functions[index], $name);
  70679. return t1 == null ? _this._environment0$_getFunctionFromGlobalModule$1($name) : t1;
  70680. }
  70681. index = _this._environment0$_functionIndex$1($name);
  70682. if (index == null)
  70683. return _this._environment0$_getFunctionFromGlobalModule$1($name);
  70684. t1.$indexSet(0, $name, index);
  70685. t1 = J.$index$asx(_this._environment0$_functions[index], $name);
  70686. return t1 == null ? _this._environment0$_getFunctionFromGlobalModule$1($name) : t1;
  70687. },
  70688. _environment0$_getFunctionFromGlobalModule$1: function($name) {
  70689. return this._environment0$_fromOneModule$3($name, "function", new O.Environment__getFunctionFromGlobalModule_closure0($name));
  70690. },
  70691. _environment0$_functionIndex$1: function($name) {
  70692. var t1, i;
  70693. for (t1 = this._environment0$_functions, i = t1.length - 1; i >= 0; --i)
  70694. if (t1[i].containsKey$1($name))
  70695. return i;
  70696. return null;
  70697. },
  70698. getMixin$2$namespace: function($name, namespace) {
  70699. var t1, index, _this = this;
  70700. if (namespace != null)
  70701. return _this._environment0$_getModule$1(namespace).get$mixins().$index(0, $name);
  70702. t1 = _this._environment0$_mixinIndices;
  70703. index = t1.$index(0, $name);
  70704. if (index != null) {
  70705. t1 = J.$index$asx(_this._environment0$_mixins[index], $name);
  70706. return t1 == null ? _this._environment0$_getMixinFromGlobalModule$1($name) : t1;
  70707. }
  70708. index = _this._environment0$_mixinIndex$1($name);
  70709. if (index == null)
  70710. return _this._environment0$_getMixinFromGlobalModule$1($name);
  70711. t1.$indexSet(0, $name, index);
  70712. t1 = J.$index$asx(_this._environment0$_mixins[index], $name);
  70713. return t1 == null ? _this._environment0$_getMixinFromGlobalModule$1($name) : t1;
  70714. },
  70715. _environment0$_getMixinFromGlobalModule$1: function($name) {
  70716. return this._environment0$_fromOneModule$3($name, "mixin", new O.Environment__getMixinFromGlobalModule_closure0($name));
  70717. },
  70718. _environment0$_mixinIndex$1: function($name) {
  70719. var t1, i;
  70720. for (t1 = this._environment0$_mixins, i = t1.length - 1; i >= 0; --i)
  70721. if (t1[i].containsKey$1($name))
  70722. return i;
  70723. return null;
  70724. },
  70725. scope$1$3$semiGlobal$when: function(callback, semiGlobal, when) {
  70726. var wasInSemiGlobalScope, wasInSemiGlobalScope0, $name, name0, name1, t1, t2, t3, t4, t5, _this = this;
  70727. if (!when) {
  70728. wasInSemiGlobalScope = _this._environment0$_inSemiGlobalScope;
  70729. _this._environment0$_inSemiGlobalScope = semiGlobal;
  70730. try {
  70731. t1 = callback.call$0();
  70732. return t1;
  70733. } finally {
  70734. _this._environment0$_inSemiGlobalScope = wasInSemiGlobalScope;
  70735. }
  70736. }
  70737. semiGlobal = semiGlobal && _this._environment0$_inSemiGlobalScope;
  70738. wasInSemiGlobalScope0 = _this._environment0$_inSemiGlobalScope;
  70739. _this._environment0$_inSemiGlobalScope = semiGlobal;
  70740. t1 = _this._environment0$_variables;
  70741. t2 = type$.String;
  70742. C.JSArray_methods.add$1(t1, P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.Value_2));
  70743. t3 = _this._environment0$_variableNodes;
  70744. if (t3 != null)
  70745. C.JSArray_methods.add$1(t3, P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.AstNode_2));
  70746. t3 = _this._environment0$_functions;
  70747. t4 = type$.Callable_2;
  70748. C.JSArray_methods.add$1(t3, P.LinkedHashMap_LinkedHashMap$_empty(t2, t4));
  70749. t5 = _this._environment0$_mixins;
  70750. C.JSArray_methods.add$1(t5, P.LinkedHashMap_LinkedHashMap$_empty(t2, t4));
  70751. t4 = _this._environment0$_nestedForwardedModules;
  70752. if (t4 != null)
  70753. C.JSArray_methods.add$1(t4, H.setRuntimeTypeInfo([], type$.JSArray_Module_Callable_2));
  70754. try {
  70755. t2 = callback.call$0();
  70756. return t2;
  70757. } finally {
  70758. _this._environment0$_inSemiGlobalScope = wasInSemiGlobalScope0;
  70759. _this._environment0$_lastVariableIndex = _this._environment0$_lastVariableName = null;
  70760. for (t1 = J.get$iterator$ax(C.JSArray_methods.removeLast$0(t1).get$keys()), t2 = _this._environment0$_variableIndices; t1.moveNext$0();) {
  70761. $name = t1.get$current(t1);
  70762. t2.remove$1(0, $name);
  70763. }
  70764. for (t1 = J.get$iterator$ax(C.JSArray_methods.removeLast$0(t3).get$keys()), t2 = _this._environment0$_functionIndices; t1.moveNext$0();) {
  70765. name0 = t1.get$current(t1);
  70766. t2.remove$1(0, name0);
  70767. }
  70768. for (t1 = J.get$iterator$ax(C.JSArray_methods.removeLast$0(t5).get$keys()), t2 = _this._environment0$_mixinIndices; t1.moveNext$0();) {
  70769. name1 = t1.get$current(t1);
  70770. t2.remove$1(0, name1);
  70771. }
  70772. t1 = _this._environment0$_nestedForwardedModules;
  70773. if (t1 != null)
  70774. C.JSArray_methods.removeLast$0(t1);
  70775. }
  70776. },
  70777. scope$1$1: function(callback, $T) {
  70778. return this.scope$1$3$semiGlobal$when(callback, false, true, $T);
  70779. },
  70780. scope$1$2$when: function(callback, when, $T) {
  70781. return this.scope$1$3$semiGlobal$when(callback, false, when, $T);
  70782. },
  70783. scope$1$2$semiGlobal: function(callback, semiGlobal, $T) {
  70784. return this.scope$1$3$semiGlobal$when(callback, semiGlobal, true, $T);
  70785. },
  70786. toImplicitConfiguration$0: function() {
  70787. var t2, t3, t4, t5, i, values, nodes, t6, t7,
  70788. t1 = type$.String,
  70789. configuration = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.ConfiguredValue_2);
  70790. for (t2 = this._environment0$_variables, t3 = this._environment0$_variableNodes, t4 = t3 == null, t5 = type$.AstNode_2, i = 0; i < t2.length; ++i) {
  70791. values = t2[i];
  70792. nodes = t4 ? P.LinkedHashMap_LinkedHashMap$_empty(t1, t5) : t3[i];
  70793. for (t6 = J.get$iterator$ax(values.get$keys()); t6.moveNext$0();) {
  70794. t7 = t6.get$current(t6);
  70795. configuration.$indexSet(0, t7, new Z.ConfiguredValue0(values.$index(0, t7), null, nodes.$index(0, t7)));
  70796. }
  70797. }
  70798. return new A.Configuration0(configuration, null, true);
  70799. },
  70800. _environment0$_getModule$1: function(namespace) {
  70801. var module = this._environment0$_modules.$index(0, namespace);
  70802. if (module != null)
  70803. return module;
  70804. throw H.wrapException(E.SassScriptException$0('There is no module with the namespace "' + namespace + '".'));
  70805. },
  70806. _environment0$_fromOneModule$1$3: function($name, type, callback) {
  70807. var t2, value, identity, t3, valueInModule, identityFromModule, t4, t5,
  70808. t1 = this._environment0$_nestedForwardedModules;
  70809. if (t1 != null)
  70810. for (t1 = new H.ReversedListIterable(t1, H._arrayInstanceType(t1)._eval$1("ReversedListIterable<1>")), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();)
  70811. for (t2 = J.get$reversed$ax(t1.__internal$_current), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  70812. value = callback.call$1(t2.__internal$_current);
  70813. if (value != null)
  70814. return value;
  70815. }
  70816. for (t1 = this._environment0$_globalModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications), t2 = type$.Callable_2, value = null, identity = null; t1.moveNext$0();) {
  70817. t3 = t1._collection$_current;
  70818. valueInModule = callback.call$1(t3);
  70819. if (valueInModule == null)
  70820. continue;
  70821. identityFromModule = t2._is(valueInModule) ? valueInModule : t3.variableIdentity$1($name);
  70822. if (identityFromModule.$eq(0, identity))
  70823. continue;
  70824. if (value != null) {
  70825. t1 = "This " + type + " is available from multiple global modules.";
  70826. t2 = type + " use";
  70827. t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  70828. for (t4 = this._environment0$_globalModuleNodes.get$entries(), t4 = t4.get$iterator(t4); t4.moveNext$0();) {
  70829. t5 = t4.get$current(t4);
  70830. if (callback.call$1(t5.key) != null)
  70831. t3.$indexSet(0, t5.value.get$span(), "includes " + type);
  70832. }
  70833. throw H.wrapException(E.MultiSpanSassScriptException$0(t1, t2, t3));
  70834. }
  70835. identity = identityFromModule;
  70836. value = valueInModule;
  70837. }
  70838. return value;
  70839. },
  70840. _environment0$_fromOneModule$3: function($name, type, callback) {
  70841. return this._environment0$_fromOneModule$1$3($name, type, callback, type$.dynamic);
  70842. }
  70843. };
  70844. O.Environment_importForwards_closure3.prototype = {
  70845. call$1: function(module) {
  70846. return module.get$variables().get$keys();
  70847. }
  70848. };
  70849. O.Environment_importForwards_closure4.prototype = {
  70850. call$1: function(module) {
  70851. return module.get$functions(module).get$keys();
  70852. }
  70853. };
  70854. O.Environment_importForwards_closure5.prototype = {
  70855. call$1: function(module) {
  70856. return module.get$mixins().get$keys();
  70857. }
  70858. };
  70859. O.Environment_importForwards_closure6.prototype = {
  70860. call$1: function(_) {
  70861. return H.setRuntimeTypeInfo([], type$.JSArray_Module_Callable_2);
  70862. },
  70863. $signature: 122
  70864. };
  70865. O.Environment__getVariableFromGlobalModule_closure0.prototype = {
  70866. call$1: function(module) {
  70867. return module.get$variables().$index(0, this.name);
  70868. }
  70869. };
  70870. O.Environment_setVariable_closure2.prototype = {
  70871. call$0: function() {
  70872. var t1 = this.$this;
  70873. t1._environment0$_lastVariableName = this.name;
  70874. return t1._environment0$_lastVariableIndex = 0;
  70875. },
  70876. $signature: 8
  70877. };
  70878. O.Environment_setVariable_closure3.prototype = {
  70879. call$1: function(module) {
  70880. return module.get$variables().containsKey$1(this.name) ? module : null;
  70881. }
  70882. };
  70883. O.Environment_setVariable_closure4.prototype = {
  70884. call$0: function() {
  70885. var t1 = this.$this,
  70886. t2 = t1._environment0$_variableIndex$1(this.name);
  70887. return t2 == null ? t1._environment0$_variables.length - 1 : t2;
  70888. },
  70889. $signature: 8
  70890. };
  70891. O.Environment__getFunctionFromGlobalModule_closure0.prototype = {
  70892. call$1: function(module) {
  70893. return module.get$functions(module).$index(0, this.name);
  70894. }
  70895. };
  70896. O.Environment__getMixinFromGlobalModule_closure0.prototype = {
  70897. call$1: function(module) {
  70898. return module.get$mixins().$index(0, this.name);
  70899. }
  70900. };
  70901. O._EnvironmentModule1.prototype = {
  70902. get$url: function() {
  70903. return this.css.get$span().file.url;
  70904. },
  70905. setVariable$3: function($name, value, nodeWithSpan) {
  70906. var t1, t2,
  70907. module = this._environment0$_modulesByVariable.$index(0, $name);
  70908. if (module != null) {
  70909. module.setVariable$3($name, value, nodeWithSpan);
  70910. return;
  70911. }
  70912. t1 = this._environment0$_environment;
  70913. t2 = t1._environment0$_variables;
  70914. if (!C.JSArray_methods.get$first(t2).containsKey$1($name))
  70915. throw H.wrapException(E.SassScriptException$0("Undefined variable."));
  70916. J.$indexSet$ax(C.JSArray_methods.get$first(t2), $name, value);
  70917. t1 = t1._environment0$_variableNodes;
  70918. if (t1 != null)
  70919. J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, nodeWithSpan);
  70920. return;
  70921. },
  70922. variableIdentity$1: function($name) {
  70923. var module = this._environment0$_modulesByVariable.$index(0, $name);
  70924. return module == null ? this : module.variableIdentity$1($name);
  70925. },
  70926. cloneCss$0: function() {
  70927. var newCssAndExtender, _this = this,
  70928. t1 = _this.css;
  70929. if (J.get$isEmpty$asx(t1.get$children()))
  70930. return _this;
  70931. newCssAndExtender = V.cloneCssStylesheet0(t1, _this.extender);
  70932. return O._EnvironmentModule$_1(_this._environment0$_environment, newCssAndExtender.item1, newCssAndExtender.item2, _this._environment0$_modulesByVariable, _this.variables, _this.variableNodes, _this.functions, _this.mixins, _this.transitivelyContainsCss, _this.transitivelyContainsExtensions);
  70933. },
  70934. toString$0: function(_) {
  70935. var t1 = this.css;
  70936. if (t1.get$span().file.url == null)
  70937. t1 = "<unknown url>";
  70938. else {
  70939. t1 = t1.get$span();
  70940. t1 = $.$get$context().prettyUri$1(t1.file.url);
  70941. }
  70942. return t1;
  70943. },
  70944. $isModule0: 1,
  70945. get$upstream: function() {
  70946. return this.upstream;
  70947. },
  70948. get$variables: function() {
  70949. return this.variables;
  70950. },
  70951. get$variableNodes: function() {
  70952. return this.variableNodes;
  70953. },
  70954. get$functions: function(receiver) {
  70955. return this.functions;
  70956. },
  70957. get$mixins: function() {
  70958. return this.mixins;
  70959. },
  70960. get$extender: function() {
  70961. return this.extender;
  70962. },
  70963. get$css: function(receiver) {
  70964. return this.css;
  70965. },
  70966. get$transitivelyContainsCss: function() {
  70967. return this.transitivelyContainsCss;
  70968. },
  70969. get$transitivelyContainsExtensions: function() {
  70970. return this.transitivelyContainsExtensions;
  70971. }
  70972. };
  70973. O._EnvironmentModule__EnvironmentModule_closure11.prototype = {
  70974. call$1: function(module) {
  70975. return module.get$variables();
  70976. }
  70977. };
  70978. O._EnvironmentModule__EnvironmentModule_closure12.prototype = {
  70979. call$1: function(module) {
  70980. return module.get$variableNodes();
  70981. }
  70982. };
  70983. O._EnvironmentModule__EnvironmentModule_closure13.prototype = {
  70984. call$1: function(module) {
  70985. return module.get$functions(module);
  70986. }
  70987. };
  70988. O._EnvironmentModule__EnvironmentModule_closure14.prototype = {
  70989. call$1: function(module) {
  70990. return module.get$mixins();
  70991. }
  70992. };
  70993. O._EnvironmentModule__EnvironmentModule_closure15.prototype = {
  70994. call$1: function(module) {
  70995. return module.get$transitivelyContainsCss();
  70996. }
  70997. };
  70998. O._EnvironmentModule__EnvironmentModule_closure16.prototype = {
  70999. call$1: function(module) {
  71000. return module.get$transitivelyContainsExtensions();
  71001. }
  71002. };
  71003. V.JSError.prototype = {};
  71004. D.ErrorRule0.prototype = {
  71005. accept$1$1: function(visitor) {
  71006. return visitor.visitErrorRule$1(this);
  71007. },
  71008. accept$1: function(visitor) {
  71009. return this.accept$1$1(visitor, type$.dynamic);
  71010. },
  71011. toString$0: function(_) {
  71012. return "@error " + H.S(this.expression) + ";";
  71013. },
  71014. $isAstNode0: 1,
  71015. $isStatement0: 1,
  71016. get$span: function() {
  71017. return this.span;
  71018. }
  71019. };
  71020. R._EvaluateVisitor1.prototype = {
  71021. _EvaluateVisitor$5$functions$importCache$logger$nodeImporter$sourceMap1: function(functions, importCache, logger, nodeImporter, sourceMap) {
  71022. var t6, t7, t8, t9, t10, t11, t12, t13, metaFunctions, metaMixins, _i, metaModule, module, $function, _this = this,
  71023. _s9_ = "sass:meta",
  71024. t1 = type$.String,
  71025. t2 = type$.VariableDeclaration_2,
  71026. t3 = S.SpanScanner$("@function global-variable-exists($name, $module: null) {", _s9_),
  71027. t4 = type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2,
  71028. t5 = type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2;
  71029. t3 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t3, C.C_StderrLogger).parseArgumentDeclaration$0(), new R._EvaluateVisitor_closure19(_this), t4)], t5);
  71030. t6 = S.SpanScanner$("@function variable-exists($name) {", _s9_);
  71031. t6 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t6, C.C_StderrLogger).parseArgumentDeclaration$0(), new R._EvaluateVisitor_closure20(_this), t4)], t5);
  71032. t7 = S.SpanScanner$("@function function-exists($name, $module: null) {", _s9_);
  71033. t7 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t7, C.C_StderrLogger).parseArgumentDeclaration$0(), new R._EvaluateVisitor_closure21(_this), t4)], t5);
  71034. t8 = S.SpanScanner$("@function mixin-exists($name, $module: null) {", _s9_);
  71035. t8 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t8, C.C_StderrLogger).parseArgumentDeclaration$0(), new R._EvaluateVisitor_closure22(_this), t4)], t5);
  71036. t9 = S.SpanScanner$("@function content-exists() {", _s9_);
  71037. t9 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t9, C.C_StderrLogger).parseArgumentDeclaration$0(), new R._EvaluateVisitor_closure23(_this), t4)], t5);
  71038. t10 = S.SpanScanner$("@function module-variables($module) {", _s9_);
  71039. t10 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t10, C.C_StderrLogger).parseArgumentDeclaration$0(), new R._EvaluateVisitor_closure24(_this), t4)], t5);
  71040. t11 = S.SpanScanner$("@function module-functions($module) {", _s9_);
  71041. t11 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t11, C.C_StderrLogger).parseArgumentDeclaration$0(), new R._EvaluateVisitor_closure25(_this), t4)], t5);
  71042. t12 = S.SpanScanner$("@function get-function($name, $css: false, $module: null) {", _s9_);
  71043. t12 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t12, C.C_StderrLogger).parseArgumentDeclaration$0(), new R._EvaluateVisitor_closure26(_this), t4)], t5);
  71044. t13 = S.SpanScanner$("@function call($function, $args...) {", _s9_);
  71045. metaFunctions = [new Q.BuiltInCallable0("global-variable-exists", t3), new Q.BuiltInCallable0("variable-exists", t6), new Q.BuiltInCallable0("function-exists", t7), new Q.BuiltInCallable0("mixin-exists", t8), new Q.BuiltInCallable0("content-exists", t9), new Q.BuiltInCallable0("module-variables", t10), new Q.BuiltInCallable0("module-functions", t11), new Q.BuiltInCallable0("get-function", t12), new Q.BuiltInCallable0("call", H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t13, C.C_StderrLogger).parseArgumentDeclaration$0(), new R._EvaluateVisitor_closure27(_this), t4)], t5))];
  71046. t1 = type$.JSArray_BuiltInCallable_2;
  71047. metaMixins = H.setRuntimeTypeInfo([Q.BuiltInCallable$mixin0("load-css", "$module, $with: null", new R._EvaluateVisitor_closure28(_this), _s9_)], t1);
  71048. t1 = H.setRuntimeTypeInfo([], t1);
  71049. for (t2 = $.$get$global6(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
  71050. t1.push(t2.__internal$_current);
  71051. for (_i = 0; _i < 9; ++_i)
  71052. t1.push(metaFunctions[_i]);
  71053. metaModule = Q.BuiltInModule$0("meta", t1, metaMixins, null, type$.BuiltInCallable_2);
  71054. t1 = H.setRuntimeTypeInfo([], type$.JSArray_BuiltInModule_BuiltInCallable_2);
  71055. for (t2 = $.$get$coreModules0(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
  71056. t1.push(t2.__internal$_current);
  71057. t1.push(metaModule);
  71058. t2 = t1.length;
  71059. t3 = _this._evaluate0$_builtInModules;
  71060. _i = 0;
  71061. for (; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  71062. module = t1[_i];
  71063. t3.$indexSet(0, module.url, module);
  71064. }
  71065. t1 = H.setRuntimeTypeInfo([], type$.JSArray_Callable_2);
  71066. for (t2 = new H.ListIterator(functions, functions.get$length(functions)); t2.moveNext$0();)
  71067. t1.push(t2.__internal$_current);
  71068. for (t2 = $.$get$globalFunctions0(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
  71069. t1.push(t2.__internal$_current);
  71070. for (_i = 0; _i < 9; ++_i)
  71071. t1.push(metaFunctions[_i]);
  71072. for (t2 = t1.length, t3 = _this._evaluate0$_builtInFunctions, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  71073. $function = t1[_i];
  71074. t4 = $function.get$name();
  71075. t4.toString;
  71076. t3.$indexSet(0, H.stringReplaceAllUnchecked(t4, "_", "-"), $function);
  71077. }
  71078. },
  71079. run$2: function(_, importer, node) {
  71080. return this._evaluate0$_withWarnCallback$1$1(new R._EvaluateVisitor_run_closure1(this, node, importer), type$.EvaluateResult_2);
  71081. },
  71082. _evaluate0$_withWarnCallback$1$1: function(callback, $T) {
  71083. return N.withWarnCallback0(new R._EvaluateVisitor__withWarnCallback_closure1(this), callback, $T);
  71084. },
  71085. _evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors: function(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
  71086. var t1, _this = this,
  71087. builtInModule = _this._evaluate0$_builtInModules.$index(0, url);
  71088. if (builtInModule != null) {
  71089. if (configuration != null && !configuration.isImplicit) {
  71090. t1 = namesInErrors ? "Built-in module " + H.S(url) + " can't be configured." : "Built-in modules can't be configured.";
  71091. throw H.wrapException(_this._evaluate0$_exception$2(t1, nodeWithSpan.get$span()));
  71092. }
  71093. callback.call$1(builtInModule);
  71094. return;
  71095. }
  71096. _this._evaluate0$_withStackFrame$3(stackFrame, nodeWithSpan, new R._EvaluateVisitor__loadModule_closure1(_this, url, nodeWithSpan, baseUrl, namesInErrors, configuration, callback));
  71097. },
  71098. _evaluate0$_loadModule$5$configuration: function(url, stackFrame, nodeWithSpan, callback, configuration) {
  71099. return this._evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, configuration, false);
  71100. },
  71101. _evaluate0$_loadModule$4: function(url, stackFrame, nodeWithSpan, callback) {
  71102. return this._evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, null, false);
  71103. },
  71104. _evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan: function(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
  71105. var message, existingNode, environment, t3, extender, module, _this = this, t1 = {},
  71106. url = stylesheet.span.file.url,
  71107. t2 = _this._evaluate0$_modules,
  71108. alreadyLoaded = t2.$index(0, url);
  71109. if (alreadyLoaded != null) {
  71110. t1 = configuration == null;
  71111. if (!(t1 ? _this._evaluate0$_configuration : configuration).isImplicit) {
  71112. message = namesInErrors ? H.S($.$get$context().prettyUri$1(url)) + ' was already loaded, so it can\'t be configured using "with".' : 'This module was already loaded, so it can\'t be configured using "with".';
  71113. existingNode = _this._evaluate0$_moduleNodes.$index(0, url);
  71114. t2 = P.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  71115. if (existingNode != null)
  71116. t2.$indexSet(0, existingNode.get$span(), "original load");
  71117. if (t1)
  71118. t2.$indexSet(0, _this._evaluate0$_configuration.nodeWithSpan.get$span(), "configuration");
  71119. throw H.wrapException(t2.get$isEmpty(t2) ? _this._evaluate0$_exception$1(message) : _this._evaluate0$_multiSpanException$3(message, "new load", t2));
  71120. }
  71121. return alreadyLoaded;
  71122. }
  71123. environment = O.Environment$0(_this._evaluate0$_sourceMap);
  71124. t1.css = null;
  71125. t3 = type$.SimpleSelector_2;
  71126. extender = new F.Extender0(P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.Set_ModifiableCssValue_SelectorList_2), P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.Map_ComplexSelector_Extension_2), P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.List_Extension_2), P.LinkedHashMap_LinkedHashMap$_empty(type$.ModifiableCssValue_SelectorList_2, type$.List_CssMediaQuery_2), P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6(t3, type$.int), new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_ComplexSelector_2), C.ExtendMode_normal0);
  71127. _this._evaluate0$_withEnvironment$2(environment, new R._EvaluateVisitor__execute_closure1(t1, _this, importer, stylesheet, extender, configuration));
  71128. module = O._EnvironmentModule__EnvironmentModule1(environment, t1.css, extender, environment._environment0$_forwardedModules);
  71129. t2.$indexSet(0, url, module);
  71130. _this._evaluate0$_moduleNodes.$indexSet(0, url, nodeWithSpan);
  71131. return module;
  71132. },
  71133. _evaluate0$_execute$2: function(importer, stylesheet) {
  71134. return this._evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, null, false, null);
  71135. },
  71136. _evaluate0$_addOutOfOrderImports$0: function() {
  71137. var t1, statements, _this = this;
  71138. if (_this._evaluate0$_outOfOrderImports == null)
  71139. return _this._evaluate0$_root.children;
  71140. t1 = new Array(J.get$length$asx(_this._evaluate0$_root.children._collection$_source) + _this._evaluate0$_outOfOrderImports.length);
  71141. t1.fixed$length = Array;
  71142. statements = new G.FixedLengthListBuilder0(H.setRuntimeTypeInfo(t1, type$.JSArray_ModifiableCssNode_2), type$.FixedLengthListBuilder_ModifiableCssNode_2);
  71143. statements.addRange$3(_this._evaluate0$_root.children, 0, _this._evaluate0$_endOfImports);
  71144. statements.addAll$1(0, _this._evaluate0$_outOfOrderImports);
  71145. statements.addRange$2(_this._evaluate0$_root.children, _this._evaluate0$_endOfImports);
  71146. return statements.build$0();
  71147. },
  71148. _evaluate0$_combineCss$2$clone: function(root, clone) {
  71149. var selectors, unsatisfiedExtension, sortedModules, t1, imports, css, t2, statements, index, _this = this;
  71150. if (!C.JSArray_methods.any$1(root.get$upstream(), new R._EvaluateVisitor__combineCss_closure5())) {
  71151. selectors = root.get$extender().get$simpleSelectors();
  71152. unsatisfiedExtension = B.firstOrNull0(root.get$extender().extensionsWhereTarget$1(new R._EvaluateVisitor__combineCss_closure6(selectors)));
  71153. if (unsatisfiedExtension != null)
  71154. _this._evaluate0$_throwForUnsatisfiedExtension$1(unsatisfiedExtension);
  71155. return root.get$css(root);
  71156. }
  71157. sortedModules = _this._evaluate0$_topologicalModules$1(root);
  71158. if (clone)
  71159. sortedModules = new H.MappedListIterable(sortedModules, new R._EvaluateVisitor__combineCss_closure7(), sortedModules.$ti._eval$1("MappedListIterable<ListMixin.E,Module0<Callable0>>")).toList$0(0);
  71160. _this._evaluate0$_extendModules$1(sortedModules);
  71161. t1 = type$.JSArray_CssNode_2;
  71162. imports = H.setRuntimeTypeInfo([], t1);
  71163. css = H.setRuntimeTypeInfo([], t1);
  71164. for (t1 = J.get$reversed$ax(sortedModules), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  71165. t2 = t1.__internal$_current;
  71166. statements = t2.get$css(t2).get$children();
  71167. index = _this._evaluate0$_indexAfterImports$1(statements);
  71168. t2 = J.getInterceptor$ax(statements);
  71169. C.JSArray_methods.addAll$1(imports, t2.getRange$2(statements, 0, index));
  71170. C.JSArray_methods.addAll$1(css, t2.getRange$2(statements, index, t2.get$length(statements)));
  71171. }
  71172. return new V.CssStylesheet0(new P.UnmodifiableListView(C.JSArray_methods.$add(imports, css), type$.UnmodifiableListView_CssNode_2), root.get$css(root).get$span());
  71173. },
  71174. _evaluate0$_combineCss$1: function(root) {
  71175. return this._evaluate0$_combineCss$2$clone(root, false);
  71176. },
  71177. _evaluate0$_extendModules$1: function(sortedModules) {
  71178. var t1, t2, originalSelectors, extenders, t3, t4, _i,
  71179. downstreamExtenders = P.LinkedHashMap_LinkedHashMap$_empty(type$.Uri, type$.List_Extender_2),
  71180. unsatisfiedExtensions = new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_Extension_2);
  71181. for (t1 = J.get$iterator$ax(sortedModules); t1.moveNext$0();) {
  71182. t2 = t1.get$current(t1);
  71183. originalSelectors = t2.get$extender().get$simpleSelectors().toSet$0(0);
  71184. unsatisfiedExtensions.addAll$1(0, t2.get$extender().extensionsWhereTarget$1(new R._EvaluateVisitor__extendModules_closure3(originalSelectors)));
  71185. extenders = downstreamExtenders.$index(0, t2.get$url());
  71186. if (extenders != null)
  71187. t2.get$extender().addExtensions$1(extenders);
  71188. t3 = t2.get$extender();
  71189. if (t3.get$isEmpty(t3))
  71190. continue;
  71191. for (t3 = t2.get$upstream(), t4 = t3.length, _i = 0; _i < t3.length; t3.length === t4 || (0, H.throwConcurrentModificationError)(t3), ++_i)
  71192. J.add$1$ax(downstreamExtenders.putIfAbsent$2(t3[_i].get$url(), new R._EvaluateVisitor__extendModules_closure4()), t2.get$extender());
  71193. unsatisfiedExtensions.removeAll$1(t2.get$extender().extensionsWhereTarget$1(originalSelectors.get$contains(originalSelectors)));
  71194. }
  71195. if (unsatisfiedExtensions._collection$_length !== 0)
  71196. this._evaluate0$_throwForUnsatisfiedExtension$1(unsatisfiedExtensions.get$first(unsatisfiedExtensions));
  71197. },
  71198. _evaluate0$_throwForUnsatisfiedExtension$1: function(extension) {
  71199. throw H.wrapException(E.SassException$0('The target selector was not found.\nUse "@extend ' + H.S(extension.target) + ' !optional" to avoid this error.', extension.span));
  71200. },
  71201. _evaluate0$_topologicalModules$1: function(root) {
  71202. var t1 = type$.Module_Callable_2,
  71203. sorted = Q.QueueList$(null, t1);
  71204. new R._EvaluateVisitor__topologicalModules_visitModule1(P.LinkedHashSet_LinkedHashSet$_empty(t1), sorted).call$1(root);
  71205. return sorted;
  71206. },
  71207. _evaluate0$_indexAfterImports$1: function(statements) {
  71208. var t1, t2, t3, lastImport, i, statement;
  71209. for (t1 = J.getInterceptor$asx(statements), t2 = type$.CssComment_2, t3 = type$.CssImport_2, lastImport = -1, i = 0; i < t1.get$length(statements); ++i) {
  71210. statement = t1.$index(statements, i);
  71211. if (t3._is(statement))
  71212. lastImport = i;
  71213. else if (!t2._is(statement))
  71214. break;
  71215. }
  71216. return lastImport + 1;
  71217. },
  71218. visitStylesheet$1: function(node) {
  71219. var t1, t2, _i;
  71220. for (t1 = node.children, t2 = t1.length, _i = 0; _i < t2; ++_i)
  71221. t1[_i].accept$1(this);
  71222. return null;
  71223. },
  71224. visitAtRootRule$1: function(node) {
  71225. var root, innerCopy, outerCopy, copy, _this = this, _null = null,
  71226. t1 = node.query,
  71227. query = t1 != null ? _this._evaluate0$_adjustParseError$2(t1, new R._EvaluateVisitor_visitAtRootRule_closure5(_this, _this._evaluate0$_performInterpolation$2$warnForColor(t1, true))) : C.AtRootQuery_UsS0,
  71228. $parent = _this._evaluate0$_parent,
  71229. included = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssParentNode_2);
  71230. for (t1 = type$.CssStylesheet_2; !t1._is($parent);) {
  71231. if (!query.excludes$1($parent))
  71232. included.push($parent);
  71233. $parent = $parent._node2$_parent;
  71234. }
  71235. root = _this._evaluate0$_trimIncluded$1(included);
  71236. if (root == _this._evaluate0$_parent) {
  71237. _this._evaluate0$_environment.scope$1$2$when(new R._EvaluateVisitor_visitAtRootRule_closure6(_this, node), node.hasDeclarations, type$.Null);
  71238. return _null;
  71239. }
  71240. innerCopy = included.length === 0 ? _null : C.JSArray_methods.get$first(included).copyWithoutChildren$0();
  71241. for (t1 = H.SubListIterable$(included, 1, _null, type$.ModifiableCssParentNode_2), t1 = new H.ListIterator(t1, t1.get$length(t1)), outerCopy = innerCopy; t1.moveNext$0(); outerCopy = copy) {
  71242. copy = t1.__internal$_current.copyWithoutChildren$0();
  71243. copy.addChild$1(outerCopy);
  71244. }
  71245. if (outerCopy != null)
  71246. root.addChild$1(outerCopy);
  71247. _this._evaluate0$_scopeForAtRoot$4(node, innerCopy == null ? root : innerCopy, query, included).call$1(new R._EvaluateVisitor_visitAtRootRule_closure7(_this, node));
  71248. return _null;
  71249. },
  71250. _evaluate0$_trimIncluded$1: function(nodes) {
  71251. var $parent, innermostContiguous, i, t2, root,
  71252. t1 = nodes.length;
  71253. if (t1 === 0)
  71254. return this._evaluate0$_root;
  71255. $parent = this._evaluate0$_parent;
  71256. for (innermostContiguous = null, i = 0; i < t1; ++i) {
  71257. for (; $parent != nodes[i]; innermostContiguous = null)
  71258. $parent = $parent._node2$_parent;
  71259. if (innermostContiguous == null)
  71260. innermostContiguous = i;
  71261. $parent = $parent._node2$_parent;
  71262. }
  71263. t2 = this._evaluate0$_root;
  71264. if ($parent != t2)
  71265. return t2;
  71266. root = nodes[innermostContiguous];
  71267. C.JSArray_methods.removeRange$2(nodes, innermostContiguous, t1);
  71268. return root;
  71269. },
  71270. _evaluate0$_scopeForAtRoot$4: function(node, newParent, query, included) {
  71271. var _this = this,
  71272. scope = new R._EvaluateVisitor__scopeForAtRoot_closure11(_this, newParent, node),
  71273. t1 = query._at_root_query0$_all,
  71274. t2 = t1 || query._at_root_query0$_rule,
  71275. t3 = query.include;
  71276. if (t2 !== t3)
  71277. scope = new R._EvaluateVisitor__scopeForAtRoot_closure12(_this, scope);
  71278. if (t1 ? !t3 : query.names.contains$1(0, "media") !== t3)
  71279. scope = new R._EvaluateVisitor__scopeForAtRoot_closure13(_this, scope);
  71280. if (_this._evaluate0$_inKeyframes && query.names.contains$1(0, "keyframes") !== t3)
  71281. scope = new R._EvaluateVisitor__scopeForAtRoot_closure14(_this, scope);
  71282. return _this._evaluate0$_inUnknownAtRule && !C.JSArray_methods.any$1(included, new R._EvaluateVisitor__scopeForAtRoot_closure15()) ? new R._EvaluateVisitor__scopeForAtRoot_closure16(_this, scope) : scope;
  71283. },
  71284. visitContentBlock$1: function(node) {
  71285. return H.throwExpression(P.UnsupportedError$("Evaluation handles @include and its content block together."));
  71286. },
  71287. visitContentRule$1: function(node) {
  71288. var $content = this._evaluate0$_environment._environment0$_content;
  71289. if ($content == null)
  71290. return null;
  71291. this._evaluate0$_runUserDefinedCallable$4(node.$arguments, $content, node, new R._EvaluateVisitor_visitContentRule_closure1(this, $content));
  71292. return null;
  71293. },
  71294. visitDebugRule$1: function(node) {
  71295. var value = node.expression.accept$1(this),
  71296. t1 = value instanceof D.SassString0 ? value.text : J.toString$0$(value);
  71297. this._evaluate0$_logger.debug$2(t1, node.span);
  71298. return null;
  71299. },
  71300. visitDeclaration$1: function(node) {
  71301. var $name, t1, cssValue, t2, oldDeclarationName, _this = this;
  71302. if (!(_this._evaluate0$_styleRule != null && !_this._evaluate0$_atRootExcludingStyleRule) && !_this._evaluate0$_inUnknownAtRule && !_this._evaluate0$_inKeyframes)
  71303. throw H.wrapException(_this._evaluate0$_exception$2("Declarations may only be used within style rules.", node.span));
  71304. $name = _this._evaluate0$_interpolationToValue$2$warnForColor(node.name, true);
  71305. t1 = _this._evaluate0$_declarationName;
  71306. if (t1 != null)
  71307. $name = new F.CssValue0(t1 + "-" + H.S($name.value), $name.span, type$.CssValue_String_2);
  71308. t1 = node.value;
  71309. cssValue = t1 == null ? null : new F.CssValue0(t1.accept$1(_this), t1.get$span(), type$.CssValue_Value_2);
  71310. if (cssValue != null) {
  71311. t2 = cssValue.value;
  71312. t2 = !t2.get$isBlank() || t2.get$asList().length === 0;
  71313. } else
  71314. t2 = false;
  71315. if (t2) {
  71316. t2 = _this._evaluate0$_parent;
  71317. t1 = _this._evaluate0$_expressionNode$1(t1);
  71318. t1 = t1 == null ? null : t1.get$span();
  71319. t2.addChild$1(L.ModifiableCssDeclaration$0($name, cssValue, node.span, t1));
  71320. } else if (J.startsWith$1$s($name.value, "--"))
  71321. throw H.wrapException(_this._evaluate0$_exception$2("Custom property values may not be empty.", t1.get$span()));
  71322. if (node.children != null) {
  71323. oldDeclarationName = _this._evaluate0$_declarationName;
  71324. _this._evaluate0$_declarationName = $name.value;
  71325. _this._evaluate0$_environment.scope$1$2$when(new R._EvaluateVisitor_visitDeclaration_closure1(_this, node), node.hasDeclarations, type$.Null);
  71326. _this._evaluate0$_declarationName = oldDeclarationName;
  71327. }
  71328. return null;
  71329. },
  71330. visitEachRule$1: function(node) {
  71331. var _this = this,
  71332. t1 = node.list,
  71333. list = t1.accept$1(_this),
  71334. nodeWithSpan = _this._evaluate0$_expressionNode$1(t1),
  71335. setVariables = node.variables.length === 1 ? new R._EvaluateVisitor_visitEachRule_closure5(_this, node, nodeWithSpan) : new R._EvaluateVisitor_visitEachRule_closure6(_this, node, nodeWithSpan);
  71336. return _this._evaluate0$_environment.scope$1$2$semiGlobal(new R._EvaluateVisitor_visitEachRule_closure7(_this, list, setVariables, node), true, type$.Value_2);
  71337. },
  71338. _evaluate0$_setMultipleVariables$3: function(variables, value, nodeWithSpan) {
  71339. var i,
  71340. list = value.get$asList(),
  71341. t1 = variables.length,
  71342. minLength = Math.min(t1, list.length);
  71343. for (i = 0; i < minLength; ++i)
  71344. this._evaluate0$_environment.setLocalVariable$3(variables[i], list[i].withoutSlash$0(), nodeWithSpan);
  71345. for (i = minLength; i < t1; ++i)
  71346. this._evaluate0$_environment.setLocalVariable$3(variables[i], C.C_SassNull, nodeWithSpan);
  71347. },
  71348. visitErrorRule$1: function(node) {
  71349. throw H.wrapException(this._evaluate0$_exception$2(J.toString$0$(node.expression.accept$1(this)), node.span));
  71350. },
  71351. visitExtendRule$1: function(node) {
  71352. var targetText, t1, t2, t3, _i, t4, _this = this;
  71353. if (!(_this._evaluate0$_styleRule != null && !_this._evaluate0$_atRootExcludingStyleRule) || _this._evaluate0$_declarationName != null)
  71354. throw H.wrapException(_this._evaluate0$_exception$2("@extend may only be used within style rules.", node.span));
  71355. targetText = _this._evaluate0$_interpolationToValue$2$warnForColor(node.selector, true);
  71356. for (t1 = _this._evaluate0$_adjustParseError$2(targetText, new R._EvaluateVisitor_visitExtendRule_closure1(_this, targetText)).components, t2 = t1.length, t3 = type$.CompoundSelector_2, _i = 0; _i < t2; ++_i) {
  71357. t4 = t1[_i].components;
  71358. if (t4.length !== 1 || !(C.JSArray_methods.get$first(t4) instanceof X.CompoundSelector0))
  71359. throw H.wrapException(E.SassFormatException$0("complex selectors may not be extended.", targetText.span));
  71360. t4 = t3._as(C.JSArray_methods.get$first(t4)).components;
  71361. if (t4.length !== 1)
  71362. throw H.wrapException(E.SassFormatException$0("compound selectors may no longer be extended.\nConsider `@extend " + C.JSArray_methods.join$1(t4, ", ") + "` instead.\nSee http://bit.ly/ExtendCompound for details.\n", targetText.span));
  71363. _this._evaluate0$_extender.addExtension$4(_this._evaluate0$_styleRule.selector, C.JSArray_methods.get$first(t4), node, _this._evaluate0$_mediaQueries);
  71364. }
  71365. return null;
  71366. },
  71367. visitAtRule$1: function(node) {
  71368. var $name, t1, value, t2, wasInKeyframes, wasInUnknownAtRule, _this = this;
  71369. if (_this._evaluate0$_declarationName != null)
  71370. throw H.wrapException(_this._evaluate0$_exception$2("At-rules may not be used within nested declarations.", node.span));
  71371. $name = _this._evaluate0$_interpolationToValue$1(node.name);
  71372. t1 = node.value;
  71373. value = t1 == null ? null : _this._evaluate0$_interpolationToValue$3$trim$warnForColor(t1, true, true);
  71374. if (node.children == null) {
  71375. t1 = _this._evaluate0$_parent;
  71376. t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
  71377. t1.addChild$1(new U.ModifiableCssAtRule0($name, value, true, node.span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode_2), t2));
  71378. return null;
  71379. }
  71380. wasInKeyframes = _this._evaluate0$_inKeyframes;
  71381. wasInUnknownAtRule = _this._evaluate0$_inUnknownAtRule;
  71382. if (B.unvendor0($name.value) === "keyframes")
  71383. _this._evaluate0$_inKeyframes = true;
  71384. else
  71385. _this._evaluate0$_inUnknownAtRule = true;
  71386. t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
  71387. _this._evaluate0$_withParent$2$4$scopeWhen$through(new U.ModifiableCssAtRule0($name, value, false, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1), new R._EvaluateVisitor_visitAtRule_closure3(_this, node), node.hasDeclarations, new R._EvaluateVisitor_visitAtRule_closure4(), type$.ModifiableCssAtRule_2, type$.Null);
  71388. _this._evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
  71389. _this._evaluate0$_inKeyframes = wasInKeyframes;
  71390. return null;
  71391. },
  71392. visitForRule$1: function(node) {
  71393. var _this = this, t1 = {},
  71394. t2 = node.from,
  71395. fromNumber = _this._evaluate0$_addExceptionSpan$2(t2, new R._EvaluateVisitor_visitForRule_closure9(_this, node)),
  71396. t3 = node.to,
  71397. toNumber = _this._evaluate0$_addExceptionSpan$2(t3, new R._EvaluateVisitor_visitForRule_closure10(_this, node)),
  71398. from = _this._evaluate0$_addExceptionSpan$2(t2, new R._EvaluateVisitor_visitForRule_closure11(fromNumber, toNumber)),
  71399. to = t1.to = _this._evaluate0$_addExceptionSpan$2(t3, new R._EvaluateVisitor_visitForRule_closure12(toNumber)),
  71400. direction = from > to ? -1 : 1;
  71401. if (from === (!node.isExclusive ? t1.to = to + direction : to))
  71402. return null;
  71403. return _this._evaluate0$_environment.scope$1$2$semiGlobal(new R._EvaluateVisitor_visitForRule_closure13(t1, _this, node, from, direction), true, type$.Value_2);
  71404. },
  71405. visitForwardRule$1: function(node) {
  71406. var newConfiguration, t4, _i, variable, _this = this,
  71407. _s8_ = "@forward",
  71408. oldConfiguration = _this._evaluate0$_configuration,
  71409. adjustedConfiguration = oldConfiguration.throughForward$1(node),
  71410. t1 = node.configuration,
  71411. t2 = t1.length,
  71412. t3 = node.url;
  71413. if (t2 !== 0) {
  71414. newConfiguration = _this._evaluate0$_addForwardConfiguration$2(adjustedConfiguration, node);
  71415. _this._evaluate0$_loadModule$5$configuration(t3, _s8_, node, new R._EvaluateVisitor_visitForwardRule_closure3(_this, node), newConfiguration);
  71416. t3 = type$.String;
  71417. t4 = P.LinkedHashSet_LinkedHashSet(t3);
  71418. for (_i = 0; _i < t2; ++_i) {
  71419. variable = t1[_i];
  71420. if (!variable.isGuarded)
  71421. t4.add$1(0, variable.name);
  71422. }
  71423. _this._evaluate0$_removeUsedConfiguration$3$except(adjustedConfiguration, newConfiguration, t4);
  71424. t3 = P.LinkedHashSet_LinkedHashSet(t3);
  71425. for (_i = 0; _i < t2; ++_i)
  71426. t3.add$1(0, t1[_i].name);
  71427. _this._evaluate0$_assertConfigurationIsEmpty$2$only(newConfiguration, t3);
  71428. } else {
  71429. _this._evaluate0$_configuration = adjustedConfiguration;
  71430. _this._evaluate0$_loadModule$4(t3, _s8_, node, new R._EvaluateVisitor_visitForwardRule_closure4(_this, node));
  71431. _this._evaluate0$_configuration = oldConfiguration;
  71432. }
  71433. return null;
  71434. },
  71435. _evaluate0$_addForwardConfiguration$2: function(configuration, node) {
  71436. var t2, t3, _i, variable, t4, t5,
  71437. t1 = configuration._configuration$_values,
  71438. newValues = P.LinkedHashMap_LinkedHashMap$of(new P.UnmodifiableMapView(t1, type$.UnmodifiableMapView_String_ConfiguredValue_2), type$.String, type$.ConfiguredValue_2);
  71439. for (t2 = node.configuration, t3 = t2.length, _i = 0; _i < t3; ++_i) {
  71440. variable = t2[_i];
  71441. if (variable.isGuarded) {
  71442. t4 = variable.name;
  71443. t5 = t1.get$isEmpty(t1) ? null : t1.remove$1(0, t4);
  71444. if (t5 != null && !J.$eq$(t5.value, C.C_SassNull)) {
  71445. newValues.$indexSet(0, t4, t5);
  71446. continue;
  71447. }
  71448. }
  71449. t4 = variable.name;
  71450. t5 = variable.expression;
  71451. newValues.$indexSet(0, t4, new Z.ConfiguredValue0(t5.accept$1(this).withoutSlash$0(), variable.span, this._evaluate0$_expressionNode$1(t5)));
  71452. }
  71453. return new A.Configuration0(newValues, node, false);
  71454. },
  71455. _evaluate0$_removeUsedConfiguration$3$except: function(upstream, downstream, except) {
  71456. var t1, t2, t3, t4, _i, $name;
  71457. for (t1 = upstream._configuration$_values, t2 = J.toList$0$ax(t1.get$keys()), t3 = t2.length, t4 = downstream._configuration$_values, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i) {
  71458. $name = t2[_i];
  71459. if (except.contains$1(0, $name))
  71460. continue;
  71461. if (!t4.containsKey$1($name))
  71462. if (!t1.get$isEmpty(t1))
  71463. t1.remove$1(0, $name);
  71464. }
  71465. },
  71466. _evaluate0$_assertConfigurationIsEmpty$3$nameInError$only: function(configuration, nameInError, only) {
  71467. configuration._configuration$_values.forEach$1(0, new R._EvaluateVisitor__assertConfigurationIsEmpty_closure1(this, only, nameInError));
  71468. },
  71469. _evaluate0$_assertConfigurationIsEmpty$2$nameInError: function(configuration, nameInError) {
  71470. return this._evaluate0$_assertConfigurationIsEmpty$3$nameInError$only(configuration, nameInError, null);
  71471. },
  71472. _evaluate0$_assertConfigurationIsEmpty$1: function(configuration) {
  71473. return this._evaluate0$_assertConfigurationIsEmpty$3$nameInError$only(configuration, false, null);
  71474. },
  71475. _evaluate0$_assertConfigurationIsEmpty$2$only: function(configuration, only) {
  71476. return this._evaluate0$_assertConfigurationIsEmpty$3$nameInError$only(configuration, false, only);
  71477. },
  71478. visitFunctionRule$1: function(node) {
  71479. var t1 = this._evaluate0$_environment,
  71480. t2 = t1.closure$0(),
  71481. t3 = t1._environment0$_functions,
  71482. index = t3.length - 1,
  71483. t4 = node.name;
  71484. t1._environment0$_functionIndices.$indexSet(0, t4, index);
  71485. J.$indexSet$ax(t3[index], t4, new E.UserDefinedCallable0(node, t2, type$.UserDefinedCallable_Environment_2));
  71486. return null;
  71487. },
  71488. visitIfRule$1: function(node) {
  71489. var t1, t2, _i, clauseToCheck, _box_0 = {};
  71490. _box_0.clause = node.lastClause;
  71491. for (t1 = node.clauses, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  71492. clauseToCheck = t1[_i];
  71493. if (clauseToCheck.expression.accept$1(this).get$isTruthy()) {
  71494. _box_0.clause = clauseToCheck;
  71495. break;
  71496. }
  71497. }
  71498. t1 = _box_0.clause;
  71499. if (t1 == null)
  71500. return null;
  71501. return this._evaluate0$_environment.scope$1$3$semiGlobal$when(new R._EvaluateVisitor_visitIfRule_closure1(_box_0, this), true, t1.hasDeclarations, type$.Value_2);
  71502. },
  71503. visitImportRule$1: function(node) {
  71504. var t1, t2, t3, t4, t5, t6, _i, $import, t7, result, supports, t8, t9, resolvedSupports, mediaQuery, t10, result0, _this = this, _null = null;
  71505. for (t1 = node.imports, t2 = t1.length, t3 = type$.CssMediaQuery_2, t4 = type$.CssValue_String_2, t5 = type$.StaticImport_2, t6 = type$.JSArray_ModifiableCssImport_2, _i = 0; _i < t2; ++_i) {
  71506. $import = t1[_i];
  71507. if ($import instanceof B.DynamicImport0)
  71508. _this._evaluate0$_visitDynamicImport$1($import);
  71509. else {
  71510. t5._as($import);
  71511. t7 = $import.url;
  71512. result = _this._evaluate0$_performInterpolation$2$warnForColor(t7, false);
  71513. supports = $import.supports;
  71514. if (supports instanceof L.SupportsDeclaration0) {
  71515. t8 = supports.name;
  71516. t8 = H.S(_this._evaluate0$_serialize$3$quote(t8.accept$1(_this), t8, true)) + ": ";
  71517. t9 = supports.value;
  71518. resolvedSupports = t8 + H.S(_this._evaluate0$_serialize$3$quote(t9.accept$1(_this), t9, true));
  71519. } else
  71520. resolvedSupports = supports == null ? _null : _this._evaluate0$_visitSupportsCondition$1(supports);
  71521. t8 = $import.media;
  71522. mediaQuery = t8 == null ? _null : _this._evaluate0$_visitMediaQueries$1(t8);
  71523. t8 = $import.span;
  71524. t9 = resolvedSupports == null ? _null : new F.CssValue0("supports(" + resolvedSupports + ")", supports.get$span(), t4);
  71525. if (mediaQuery == null)
  71526. t10 = _null;
  71527. else {
  71528. result0 = P.List_List$from(mediaQuery, false, t3);
  71529. result0.fixed$length = Array;
  71530. result0.immutable$list = Array;
  71531. t10 = result0;
  71532. }
  71533. node = new F.ModifiableCssImport0(new F.CssValue0(result, t7.span, t4), t9, t10, t8);
  71534. t7 = _this._evaluate0$_parent;
  71535. t8 = _this._evaluate0$_root;
  71536. if (t7 != t8)
  71537. t7.addChild$1(node);
  71538. else if (_this._evaluate0$_endOfImports === J.get$length$asx(t8.children._collection$_source)) {
  71539. t7 = _this._evaluate0$_root;
  71540. t7.toString;
  71541. node._node2$_parent = t7;
  71542. t7 = t7._node2$_children;
  71543. node._node2$_indexInParent = t7.length;
  71544. t7.push(node);
  71545. _this._evaluate0$_endOfImports = _this._evaluate0$_endOfImports + 1;
  71546. } else {
  71547. t7 = _this._evaluate0$_outOfOrderImports;
  71548. (t7 == null ? _this._evaluate0$_outOfOrderImports = H.setRuntimeTypeInfo([], t6) : t7).push(node);
  71549. }
  71550. }
  71551. }
  71552. return _null;
  71553. },
  71554. _evaluate0$_visitDynamicImport$1: function($import) {
  71555. return this._evaluate0$_withStackFrame$3("@import", $import, new R._EvaluateVisitor__visitDynamicImport_closure1(this, $import));
  71556. },
  71557. _evaluate0$_loadStylesheet$4$baseUrl$forImport: function(url, span, baseUrl, forImport) {
  71558. var stylesheet, tuple, error, error0, message, t1, t2, t3, exception, _this = this;
  71559. try {
  71560. _this._evaluate0$_importSpan = span;
  71561. if (_this._nodeImporter != null) {
  71562. stylesheet = _this._importLikeNode$2(url, forImport);
  71563. if (stylesheet != null)
  71564. return new S.Tuple2(null, stylesheet, type$.Tuple2_Importer_Stylesheet_2);
  71565. } else {
  71566. t1 = P.Uri_parse(url);
  71567. t2 = _this._evaluate0$_importer;
  71568. if (baseUrl == null) {
  71569. t3 = _this._evaluate0$_stylesheet;
  71570. t3 = t3 == null ? null : t3.span;
  71571. t3 = t3 == null ? null : t3.file.url;
  71572. } else
  71573. t3 = baseUrl;
  71574. tuple = _this._evaluate0$_importCache.import$4$baseImporter$baseUrl$forImport(t1, t2, t3, forImport);
  71575. if (tuple != null)
  71576. return tuple;
  71577. }
  71578. if (C.JSString_methods.startsWith$1(url, "package:") && true)
  71579. throw H.wrapException('"package:" URLs aren\'t supported on this platform.');
  71580. else
  71581. throw H.wrapException("Can't find stylesheet to import.");
  71582. } catch (exception) {
  71583. t1 = H.unwrapException(exception);
  71584. if (t1 instanceof E.SassException0) {
  71585. error = t1;
  71586. t1 = _this._evaluate0$_exception$2(error._span_exception$_message, error.get$span());
  71587. throw H.wrapException(t1);
  71588. } else {
  71589. error0 = t1;
  71590. message = null;
  71591. try {
  71592. message = H._asStringNullable(J.get$message$x(error0));
  71593. } catch (exception) {
  71594. H.unwrapException(exception);
  71595. message = J.toString$0$(error0);
  71596. }
  71597. t1 = _this._evaluate0$_exception$1(message);
  71598. throw H.wrapException(t1);
  71599. }
  71600. } finally {
  71601. _this._evaluate0$_importSpan = null;
  71602. }
  71603. },
  71604. _evaluate0$_loadStylesheet$3$baseUrl: function(url, span, baseUrl) {
  71605. return this._evaluate0$_loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, false);
  71606. },
  71607. _evaluate0$_loadStylesheet$3$forImport: function(url, span, forImport) {
  71608. return this._evaluate0$_loadStylesheet$4$baseUrl$forImport(url, span, null, forImport);
  71609. },
  71610. _importLikeNode$2: function(originalUrl, forImport) {
  71611. var contents, url, _this = this,
  71612. t1 = _this._evaluate0$_stylesheet.span,
  71613. result = _this._nodeImporter.load$3(originalUrl, t1.file.url, forImport);
  71614. if (result == null)
  71615. return null;
  71616. contents = result.item1;
  71617. url = result.item2;
  71618. t1 = J.getInterceptor$s(url).startsWith$1(url, "file:") ? $.$get$context().style.pathFromUri$1(M._parseUri(url)) : url;
  71619. _this._includedFiles.add$1(0, t1);
  71620. t1 = C.JSString_methods.startsWith$1(url, "file") ? M.Syntax_forPath0(url) : C.Syntax_SCSS0;
  71621. return V.Stylesheet_Stylesheet$parse0(contents, t1, _this._evaluate0$_logger, url);
  71622. },
  71623. visitIncludeRule$1: function(node) {
  71624. var nodeWithSpan, t1, t2, t3, contentCallable, _this = this,
  71625. _s37_ = "Mixin doesn't accept a content block.",
  71626. mixin = _this._evaluate0$_addExceptionSpan$2(node, new R._EvaluateVisitor_visitIncludeRule_closure5(_this, node));
  71627. if (mixin == null)
  71628. throw H.wrapException(_this._evaluate0$_exception$2("Undefined mixin.", node.span));
  71629. nodeWithSpan = new B._FakeAstNode0(new R._EvaluateVisitor_visitIncludeRule_closure6(node));
  71630. if (mixin instanceof Q.BuiltInCallable0) {
  71631. if (node.content != null)
  71632. throw H.wrapException(_this._evaluate0$_exception$2(_s37_, node.span));
  71633. _this._evaluate0$_runBuiltInCallable$3(node.$arguments, mixin, nodeWithSpan);
  71634. } else {
  71635. t1 = type$.UserDefinedCallable_Environment_2;
  71636. if (t1._is(mixin)) {
  71637. t2 = node.content;
  71638. t3 = t2 == null;
  71639. if (!t3 && !type$.MixinRule_2._as(mixin.declaration).hasContent)
  71640. throw H.wrapException(E.MultiSpanSassRuntimeException$0(_s37_, node.get$spanWithoutContent(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([mixin.declaration.$arguments.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), _this._evaluate0$_stackTrace$1(node.get$spanWithoutContent())));
  71641. contentCallable = t3 ? null : new E.UserDefinedCallable0(t2, _this._evaluate0$_environment.closure$0(), t1);
  71642. _this._evaluate0$_runUserDefinedCallable$4(node.$arguments, mixin, nodeWithSpan, new R._EvaluateVisitor_visitIncludeRule_closure7(_this, contentCallable, mixin, nodeWithSpan));
  71643. } else
  71644. throw H.wrapException(P.UnsupportedError$("Unknown callable type " + mixin.toString$0(0) + "."));
  71645. }
  71646. return null;
  71647. },
  71648. visitMixinRule$1: function(node) {
  71649. var t1 = this._evaluate0$_environment,
  71650. t2 = t1.closure$0(),
  71651. t3 = t1._environment0$_mixins,
  71652. index = t3.length - 1,
  71653. t4 = node.name;
  71654. t1._environment0$_mixinIndices.$indexSet(0, t4, index);
  71655. J.$indexSet$ax(t3[index], t4, new E.UserDefinedCallable0(node, t2, type$.UserDefinedCallable_Environment_2));
  71656. return null;
  71657. },
  71658. visitLoudComment$1: function(node) {
  71659. var t1, t2, _this = this;
  71660. if (_this._evaluate0$_inFunction)
  71661. return null;
  71662. t1 = _this._evaluate0$_parent;
  71663. t2 = _this._evaluate0$_root;
  71664. if (t1 == t2 && _this._evaluate0$_endOfImports === J.get$length$asx(t2.children._collection$_source))
  71665. _this._evaluate0$_endOfImports = _this._evaluate0$_endOfImports + 1;
  71666. t1 = node.text;
  71667. _this._evaluate0$_parent.addChild$1(new R.ModifiableCssComment0(_this._evaluate0$_performInterpolation$1(t1), t1.span));
  71668. return null;
  71669. },
  71670. visitMediaRule$1: function(node) {
  71671. var queries, t1, mergedQueries, _this = this;
  71672. if (_this._evaluate0$_declarationName != null)
  71673. throw H.wrapException(_this._evaluate0$_exception$2("Media rules may not be used within nested declarations.", node.span));
  71674. queries = _this._evaluate0$_visitMediaQueries$1(node.query);
  71675. t1 = _this._evaluate0$_mediaQueries;
  71676. mergedQueries = t1 == null ? null : _this._evaluate0$_mergeMediaQueries$2(t1, queries);
  71677. t1 = mergedQueries == null;
  71678. if (!t1 && mergedQueries.length === 0)
  71679. return null;
  71680. t1 = t1 ? queries : mergedQueries;
  71681. _this._evaluate0$_withParent$2$4$scopeWhen$through(G.ModifiableCssMediaRule$0(t1, node.span), new R._EvaluateVisitor_visitMediaRule_closure3(_this, mergedQueries, queries, node), node.hasDeclarations, new R._EvaluateVisitor_visitMediaRule_closure4(mergedQueries), type$.ModifiableCssMediaRule_2, type$.Null);
  71682. return null;
  71683. },
  71684. _evaluate0$_visitMediaQueries$1: function(interpolation) {
  71685. return this._evaluate0$_adjustParseError$2(interpolation, new R._EvaluateVisitor__visitMediaQueries_closure1(this, this._evaluate0$_performInterpolation$2$warnForColor(interpolation, true)));
  71686. },
  71687. _evaluate0$_mergeMediaQueries$2: function(queries1, queries2) {
  71688. var t1, t2, t3, t4, t5, result,
  71689. queries = H.setRuntimeTypeInfo([], type$.JSArray_CssMediaQuery_2);
  71690. for (t1 = J.get$iterator$ax(queries1), t2 = J.getInterceptor$ax(queries2), t3 = type$.MediaQuerySuccessfulMergeResult_2; t1.moveNext$0();) {
  71691. t4 = t1.get$current(t1);
  71692. for (t5 = t2.get$iterator(queries2); t5.moveNext$0();) {
  71693. result = t4.merge$1(t5.get$current(t5));
  71694. if (result === C._SingletonCssMediaQueryMergeResult_empty0)
  71695. continue;
  71696. if (result === C._SingletonCssMediaQueryMergeResult_unrepresentable0)
  71697. return null;
  71698. queries.push(t3._as(result).query);
  71699. }
  71700. }
  71701. return queries;
  71702. },
  71703. visitReturnRule$1: function(node) {
  71704. return node.expression.accept$1(this);
  71705. },
  71706. visitSilentComment$1: function(node) {
  71707. return null;
  71708. },
  71709. visitStyleRule$1: function(node) {
  71710. var t2, selectorText, t3, parsedSelector, rule, oldAtRootExcludingStyleRule, _this = this, t1 = {};
  71711. if (_this._evaluate0$_declarationName != null)
  71712. throw H.wrapException(_this._evaluate0$_exception$2("Style rules may not be used within nested declarations.", node.span));
  71713. t2 = node.selector;
  71714. selectorText = _this._evaluate0$_interpolationToValue$3$trim$warnForColor(t2, true, true);
  71715. if (_this._evaluate0$_inKeyframes) {
  71716. t1 = P.List_List$unmodifiable(_this._evaluate0$_adjustParseError$2(t2, new R._EvaluateVisitor_visitStyleRule_closure13(_this, selectorText)), type$.String);
  71717. t3 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
  71718. _this._evaluate0$_withParent$2$4$scopeWhen$through(new U.ModifiableCssKeyframeBlock0(new F.CssValue0(t1, t2.span, type$.CssValue_List_String_2), node.span, new P.UnmodifiableListView(t3, type$.UnmodifiableListView_ModifiableCssNode_2), t3), new R._EvaluateVisitor_visitStyleRule_closure14(_this, node), node.hasDeclarations, new R._EvaluateVisitor_visitStyleRule_closure15(), type$.ModifiableCssKeyframeBlock_2, type$.Null);
  71719. return null;
  71720. }
  71721. t1.parsedSelector = _this._evaluate0$_adjustParseError$2(t2, new R._EvaluateVisitor_visitStyleRule_closure16(_this, selectorText));
  71722. parsedSelector = _this._evaluate0$_addExceptionSpan$2(t2, new R._EvaluateVisitor_visitStyleRule_closure17(t1, _this));
  71723. t1.parsedSelector = parsedSelector;
  71724. rule = X.ModifiableCssStyleRule$0(_this._evaluate0$_extender.addSelector$3(parsedSelector, t2.span, _this._evaluate0$_mediaQueries), node.span, t1.parsedSelector);
  71725. oldAtRootExcludingStyleRule = _this._evaluate0$_atRootExcludingStyleRule;
  71726. _this._evaluate0$_atRootExcludingStyleRule = false;
  71727. _this._evaluate0$_withParent$2$4$scopeWhen$through(rule, new R._EvaluateVisitor_visitStyleRule_closure18(_this, rule, node), node.hasDeclarations, new R._EvaluateVisitor_visitStyleRule_closure19(), type$.ModifiableCssStyleRule_2, type$.Null);
  71728. _this._evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  71729. if (!(_this._evaluate0$_styleRule != null && !oldAtRootExcludingStyleRule)) {
  71730. t1 = _this._evaluate0$_parent.children;
  71731. t1 = !t1.get$isEmpty(t1);
  71732. } else
  71733. t1 = false;
  71734. if (t1) {
  71735. t1 = _this._evaluate0$_parent.children;
  71736. t1.get$last(t1).isGroupEnd = true;
  71737. }
  71738. return null;
  71739. },
  71740. visitSupportsRule$1: function(node) {
  71741. var t1, t2, t3, _this = this;
  71742. if (_this._evaluate0$_declarationName != null)
  71743. throw H.wrapException(_this._evaluate0$_exception$2("Supports rules may not be used within nested declarations.", node.span));
  71744. t1 = node.condition;
  71745. t2 = _this._evaluate0$_visitSupportsCondition$1(t1);
  71746. t1 = t1.get$span();
  71747. t3 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
  71748. _this._evaluate0$_withParent$2$4$scopeWhen$through(new B.ModifiableCssSupportsRule0(new F.CssValue0(t2, t1, type$.CssValue_String_2), node.span, new P.UnmodifiableListView(t3, type$.UnmodifiableListView_ModifiableCssNode_2), t3), new R._EvaluateVisitor_visitSupportsRule_closure3(_this, node), node.hasDeclarations, new R._EvaluateVisitor_visitSupportsRule_closure4(), type$.ModifiableCssSupportsRule_2, type$.Null);
  71749. return null;
  71750. },
  71751. _evaluate0$_visitSupportsCondition$1: function(condition) {
  71752. var t1, t2, _this = this;
  71753. if (condition instanceof U.SupportsOperation0) {
  71754. t1 = condition.left;
  71755. t2 = condition.operator;
  71756. return H.S(_this._evaluate0$_parenthesize$2(t1, t2)) + " " + t2 + " " + H.S(_this._evaluate0$_parenthesize$2(condition.right, t2));
  71757. } else if (condition instanceof M.SupportsNegation0)
  71758. return "not " + H.S(_this._evaluate0$_parenthesize$1(condition.condition));
  71759. else if (condition instanceof X.SupportsInterpolation0) {
  71760. t1 = condition.expression;
  71761. return _this._evaluate0$_serialize$3$quote(t1.accept$1(_this), t1, false);
  71762. } else if (condition instanceof L.SupportsDeclaration0) {
  71763. t1 = condition.name;
  71764. t1 = "(" + H.S(_this._evaluate0$_serialize$3$quote(t1.accept$1(_this), t1, true)) + ": ";
  71765. t2 = condition.value;
  71766. return t1 + H.S(_this._evaluate0$_serialize$3$quote(t2.accept$1(_this), t2, true)) + ")";
  71767. } else
  71768. return null;
  71769. },
  71770. _evaluate0$_parenthesize$2: function(condition, operator) {
  71771. var t1;
  71772. if (!(condition instanceof M.SupportsNegation0))
  71773. if (condition instanceof U.SupportsOperation0)
  71774. t1 = operator == null || operator !== condition.operator;
  71775. else
  71776. t1 = false;
  71777. else
  71778. t1 = true;
  71779. if (t1)
  71780. return "(" + H.S(this._evaluate0$_visitSupportsCondition$1(condition)) + ")";
  71781. else
  71782. return this._evaluate0$_visitSupportsCondition$1(condition);
  71783. },
  71784. _evaluate0$_parenthesize$1: function(condition) {
  71785. return this._evaluate0$_parenthesize$2(condition, null);
  71786. },
  71787. visitVariableDeclaration$1: function(node) {
  71788. var t1, value, t2, _this = this, _null = null;
  71789. if (node.isGuarded) {
  71790. if (node.namespace == null && _this._evaluate0$_environment._environment0$_variables.length === 1) {
  71791. t1 = _this._evaluate0$_configuration._configuration$_values;
  71792. t1 = t1.get$isEmpty(t1) ? _null : t1.remove$1(0, node.name);
  71793. if (t1 != null) {
  71794. _this._evaluate0$_addExceptionSpan$2(node, new R._EvaluateVisitor_visitVariableDeclaration_closure5(_this, node, t1));
  71795. return _null;
  71796. }
  71797. }
  71798. value = _this._evaluate0$_addExceptionSpan$2(node, new R._EvaluateVisitor_visitVariableDeclaration_closure6(_this, node));
  71799. if (value != null && !value.$eq(0, C.C_SassNull))
  71800. return _null;
  71801. }
  71802. if (node.isGlobal && !_this._evaluate0$_environment.globalVariableExists$1(node.name)) {
  71803. t1 = _this._evaluate0$_environment._environment0$_variables.length === 1 ? "As of Dart Sass 2.0.0, !global assignments won't be able to\ndeclare new variables. Since this assignment is at the root of the stylesheet,\nthe !global flag is unnecessary and can safely be removed." : "As of Dart Sass 2.0.0, !global assignments won't be able to\ndeclare new variables. Consider adding `" + B.declarationName0(node.span) + ": null` at the root of the\nstylesheet.";
  71804. t2 = node.span;
  71805. _this._evaluate0$_logger.warn$4$deprecation$span$trace(t1, true, t2, _this._evaluate0$_stackTrace$1(t2));
  71806. }
  71807. _this._evaluate0$_addExceptionSpan$2(node, new R._EvaluateVisitor_visitVariableDeclaration_closure7(_this, node, node.expression.accept$1(_this).withoutSlash$0()));
  71808. return _null;
  71809. },
  71810. visitUseRule$1: function(node) {
  71811. var configuration, t3, _i, variable, t4, t5, _this = this,
  71812. t1 = node.configuration,
  71813. t2 = t1.length;
  71814. if (t2 === 0)
  71815. configuration = C.Configuration_Map_empty_null_true0;
  71816. else {
  71817. t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue_2);
  71818. for (_i = 0; _i < t2; ++_i) {
  71819. variable = t1[_i];
  71820. t4 = variable.name;
  71821. t5 = variable.expression;
  71822. t3.$indexSet(0, t4, new Z.ConfiguredValue0(t5.accept$1(_this).withoutSlash$0(), variable.span, _this._evaluate0$_expressionNode$1(t5)));
  71823. }
  71824. configuration = new A.Configuration0(t3, node, false);
  71825. }
  71826. _this._evaluate0$_loadModule$5$configuration(node.url, "@use", node, new R._EvaluateVisitor_visitUseRule_closure1(_this, node), configuration);
  71827. _this._evaluate0$_assertConfigurationIsEmpty$1(configuration);
  71828. return null;
  71829. },
  71830. visitWarnRule$1: function(node) {
  71831. var _this = this,
  71832. value = _this._evaluate0$_addExceptionSpan$2(node, new R._EvaluateVisitor_visitWarnRule_closure1(_this, node)),
  71833. t1 = value instanceof D.SassString0 ? value.text : _this._evaluate0$_serialize$2(value, node.expression);
  71834. _this._evaluate0$_logger.warn$2$trace(t1, _this._evaluate0$_stackTrace$1(node.span));
  71835. return null;
  71836. },
  71837. visitWhileRule$1: function(node) {
  71838. return this._evaluate0$_environment.scope$1$3$semiGlobal$when(new R._EvaluateVisitor_visitWhileRule_closure1(this, node), true, node.hasDeclarations, type$.Value_2);
  71839. },
  71840. visitBinaryOperationExpression$1: function(node) {
  71841. return this._evaluate0$_addExceptionSpan$2(node, new R._EvaluateVisitor_visitBinaryOperationExpression_closure1(this, node));
  71842. },
  71843. visitValueExpression$1: function(node) {
  71844. return node.value;
  71845. },
  71846. visitVariableExpression$1: function(node) {
  71847. var result = this._evaluate0$_addExceptionSpan$2(node, new R._EvaluateVisitor_visitVariableExpression_closure1(this, node));
  71848. if (result != null)
  71849. return result;
  71850. throw H.wrapException(this._evaluate0$_exception$2("Undefined variable.", node.span));
  71851. },
  71852. visitUnaryOperationExpression$1: function(node) {
  71853. var operand = node.operand.accept$1(this),
  71854. t1 = node.operator;
  71855. switch (t1) {
  71856. case C.UnaryOperator_j2w0:
  71857. return operand.unaryPlus$0();
  71858. case C.UnaryOperator_U4G0:
  71859. return operand.unaryMinus$0();
  71860. case C.UnaryOperator_zDx0:
  71861. operand.toString;
  71862. return new D.SassString0("/" + N.serializeValue(operand, false, true), false);
  71863. case C.UnaryOperator_not_not0:
  71864. return operand.unaryNot$0();
  71865. default:
  71866. throw H.wrapException(P.StateError$("Unknown unary operator " + H.S(t1) + "."));
  71867. }
  71868. },
  71869. visitBooleanExpression$1: function(node) {
  71870. return node.value ? C.SassBoolean_true : C.SassBoolean_false;
  71871. },
  71872. visitIfExpression$1: function(node) {
  71873. var condition, ifTrue, ifFalse, _this = this,
  71874. pair = _this._evaluate0$_evaluateMacroArguments$1(node),
  71875. positional = pair.item1,
  71876. named = pair.item2,
  71877. t1 = J.getInterceptor$asx(positional);
  71878. _this._evaluate0$_verifyArguments$4(t1.get$length(positional), named, $.$get$IfExpression_declaration0(), node);
  71879. condition = t1.get$length(positional) > 0 ? t1.$index(positional, 0) : named.$index(0, "condition");
  71880. ifTrue = t1.get$length(positional) > 1 ? t1.$index(positional, 1) : named.$index(0, "if-true");
  71881. ifFalse = t1.get$length(positional) > 2 ? t1.$index(positional, 2) : named.$index(0, "if-false");
  71882. return (condition.accept$1(_this).get$isTruthy() ? ifTrue : ifFalse).accept$1(_this);
  71883. },
  71884. visitNullExpression$1: function(node) {
  71885. return C.C_SassNull;
  71886. },
  71887. visitNumberExpression$1: function(node) {
  71888. var t1 = node.unit;
  71889. t1 = t1 == null ? null : H.setRuntimeTypeInfo([t1], type$.JSArray_String);
  71890. t1 = t1 == null ? C.List_empty : P.List_List$unmodifiable(t1, type$.String);
  71891. return new T.SassNumber0(node.value, t1, C.List_empty, null);
  71892. },
  71893. visitParenthesizedExpression$1: function(node) {
  71894. return node.expression.accept$1(this);
  71895. },
  71896. visitColorExpression$1: function(node) {
  71897. return node.value;
  71898. },
  71899. visitListExpression$1: function(node) {
  71900. var t1 = node.contents;
  71901. return D.SassList$0(new H.MappedListIterable(t1, new R._EvaluateVisitor_visitListExpression_closure1(this), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value0>")), node.separator, node.hasBrackets);
  71902. },
  71903. visitMapExpression$1: function(node) {
  71904. var t2, t3, _i, pair, t4, keyValue, valueValue,
  71905. t1 = type$.Value_2,
  71906. map = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1),
  71907. keyNodes = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.AstNode_2);
  71908. for (t2 = node.pairs, t3 = t2.length, _i = 0; _i < t3; ++_i) {
  71909. pair = t2[_i];
  71910. t4 = pair.item1;
  71911. keyValue = t4.accept$1(this);
  71912. valueValue = pair.item2.accept$1(this);
  71913. if (map.containsKey$1(keyValue))
  71914. throw H.wrapException(E.MultiSpanSassRuntimeException$0("Duplicate key.", t4.get$span(), "second key", P.LinkedHashMap_LinkedHashMap$_literal([keyNodes.$index(0, keyValue).get$span(), "first key"], type$.FileSpan, type$.String), this._evaluate0$_stackTrace$1(t4.get$span())));
  71915. map.$indexSet(0, keyValue, valueValue);
  71916. keyNodes.$indexSet(0, keyValue, t4);
  71917. }
  71918. return new A.SassMap0(H.ConstantMap_ConstantMap$from(map, t1, t1));
  71919. },
  71920. visitFunctionExpression$1: function(node) {
  71921. var oldInFunction, result, _this = this, t1 = {},
  71922. t2 = node.name,
  71923. plainName = t2.get$asPlain();
  71924. t1.$function = null;
  71925. if ((plainName != null ? t1.$function = _this._evaluate0$_addExceptionSpan$2(node, new R._EvaluateVisitor_visitFunctionExpression_closure3(_this, node, plainName)) : null) == null) {
  71926. if (node.namespace != null)
  71927. throw H.wrapException(_this._evaluate0$_exception$2("Undefined function.", node.span));
  71928. t1.$function = new L.PlainCssCallable0(_this._evaluate0$_performInterpolation$1(t2));
  71929. }
  71930. oldInFunction = _this._evaluate0$_inFunction;
  71931. _this._evaluate0$_inFunction = true;
  71932. result = _this._evaluate0$_addErrorSpan$2(node, new R._EvaluateVisitor_visitFunctionExpression_closure4(t1, _this, node));
  71933. _this._evaluate0$_inFunction = oldInFunction;
  71934. return result;
  71935. },
  71936. _evaluate0$_getFunction$2$namespace: function($name, namespace) {
  71937. var local = this._evaluate0$_environment.getFunction$2$namespace($name, namespace);
  71938. if (local != null || namespace != null)
  71939. return local;
  71940. return this._evaluate0$_builtInFunctions.$index(0, $name);
  71941. },
  71942. _evaluate0$_runUserDefinedCallable$4: function($arguments, callable, nodeWithSpan, run) {
  71943. var evaluated = this._evaluate0$_evaluateArguments$1($arguments),
  71944. t1 = callable.declaration.name,
  71945. $name = t1 == null ? "@content" : t1 + "()";
  71946. return this._evaluate0$_withStackFrame$3($name, nodeWithSpan, new R._EvaluateVisitor__runUserDefinedCallable_closure1(this, callable, evaluated, nodeWithSpan, run));
  71947. },
  71948. _evaluate0$_runFunctionCallable$3: function($arguments, callable, nodeWithSpan) {
  71949. var result, t1, t2, t3, first, _i, argument, rest, _this = this;
  71950. if (callable instanceof Q.BuiltInCallable0) {
  71951. result = _this._evaluate0$_runBuiltInCallable$3($arguments, callable, nodeWithSpan);
  71952. if (result == null)
  71953. throw H.wrapException(_this._evaluate0$_exception$2("Custom functions may not return Dart's null.", nodeWithSpan.get$span()));
  71954. return result.withoutSlash$0();
  71955. } else if (type$.UserDefinedCallable_Environment_2._is(callable))
  71956. return _this._evaluate0$_runUserDefinedCallable$4($arguments, callable, nodeWithSpan, new R._EvaluateVisitor__runFunctionCallable_closure1(_this, callable)).withoutSlash$0();
  71957. else if (callable instanceof L.PlainCssCallable0) {
  71958. t1 = $arguments.named;
  71959. if (t1.get$isNotEmpty(t1) || $arguments.keywordRest != null)
  71960. throw H.wrapException(_this._evaluate0$_exception$2("Plain CSS functions don't support keyword arguments.", nodeWithSpan.get$span()));
  71961. t1 = H.S(callable.name) + "(";
  71962. for (t2 = $arguments.positional, t3 = t2.length, first = true, _i = 0; _i < t3; ++_i) {
  71963. argument = t2[_i];
  71964. if (first)
  71965. first = false;
  71966. else
  71967. t1 += ", ";
  71968. t1 += H.S(_this._evaluate0$_serialize$3$quote(argument.accept$1(_this), argument, true));
  71969. }
  71970. t2 = $arguments.rest;
  71971. rest = t2 == null ? null : t2.accept$1(_this);
  71972. if (rest != null) {
  71973. if (!first)
  71974. t1 += ", ";
  71975. t2 = t1 + H.S(_this._evaluate0$_serialize$2(rest, t2));
  71976. t1 = t2;
  71977. }
  71978. t1 += H.Primitives_stringFromCharCode(41);
  71979. return new D.SassString0(t1.charCodeAt(0) == 0 ? t1 : t1, false);
  71980. } else
  71981. return null;
  71982. },
  71983. _evaluate0$_runBuiltInCallable$3: function($arguments, callable, nodeWithSpan) {
  71984. var callback, result, error, error0, error1, message, namedSet, tuple, overload, declaredArguments, i, t1, argument, t2, t3, rest, argumentList, exception, _this = this,
  71985. evaluated = _this._evaluate0$_evaluateArguments$2$trackSpans($arguments, false),
  71986. oldCallableNode = _this._evaluate0$_callableNode;
  71987. _this._evaluate0$_callableNode = nodeWithSpan;
  71988. namedSet = new M.MapKeySet(evaluated.named, type$.MapKeySet_String);
  71989. tuple = callable.callbackFor$2(evaluated.positional.length, namedSet);
  71990. overload = tuple.item1;
  71991. callback = tuple.item2;
  71992. _this._evaluate0$_addExceptionSpan$2(nodeWithSpan, new R._EvaluateVisitor__runBuiltInCallable_closure3(overload, evaluated, namedSet));
  71993. declaredArguments = overload.$arguments;
  71994. for (i = evaluated.positional.length, t1 = declaredArguments.length; i < t1; ++i) {
  71995. argument = declaredArguments[i];
  71996. t2 = evaluated.positional;
  71997. t3 = evaluated.named.remove$1(0, argument.name);
  71998. if (t3 == null) {
  71999. t3 = argument.defaultValue;
  72000. t3 = t3 == null ? null : t3.accept$1(_this);
  72001. }
  72002. t2.push(t3);
  72003. }
  72004. if (overload.restArgument != null) {
  72005. if (evaluated.positional.length > t1) {
  72006. rest = C.JSArray_methods.sublist$1(evaluated.positional, t1);
  72007. C.JSArray_methods.removeRange$2(evaluated.positional, t1, evaluated.positional.length);
  72008. } else
  72009. rest = C.List_empty16;
  72010. t1 = evaluated.named;
  72011. t2 = evaluated.separator === C.ListSeparator_undecided0 ? C.ListSeparator_comma0 : evaluated.separator;
  72012. t3 = type$.Value_2;
  72013. argumentList = new D.SassArgumentList0(H.ConstantMap_ConstantMap$from(t1, type$.String, t3), P.List_List$unmodifiable(rest, t3), t2, false);
  72014. argumentList.SassList$3$brackets0(rest, t2, false);
  72015. evaluated.positional.push(argumentList);
  72016. } else
  72017. argumentList = null;
  72018. result = null;
  72019. try {
  72020. result = callback.call$1(evaluated.positional);
  72021. } catch (exception) {
  72022. t1 = H.unwrapException(exception);
  72023. if (type$.SassRuntimeException_2._is(t1))
  72024. throw exception;
  72025. else if (t1 instanceof E.MultiSpanSassScriptException0) {
  72026. error = t1;
  72027. throw H.wrapException(E.MultiSpanSassRuntimeException$0(error.message, nodeWithSpan.get$span(), error.primaryLabel, error.secondarySpans, _this._evaluate0$_stackTrace$1(nodeWithSpan.get$span())));
  72028. } else if (t1 instanceof E.MultiSpanSassException0) {
  72029. error0 = t1;
  72030. throw H.wrapException(E.MultiSpanSassRuntimeException$0(error0._span_exception$_message, error0.get$span(), error0.primaryLabel, error0.secondarySpans, _this._evaluate0$_stackTrace$1(error0.get$span())));
  72031. } else {
  72032. error1 = t1;
  72033. message = null;
  72034. try {
  72035. message = H._asStringNullable(J.get$message$x(error1));
  72036. } catch (exception) {
  72037. H.unwrapException(exception);
  72038. message = J.toString$0$(error1);
  72039. }
  72040. throw H.wrapException(_this._evaluate0$_exception$2(message, nodeWithSpan.get$span()));
  72041. }
  72042. }
  72043. _this._evaluate0$_callableNode = oldCallableNode;
  72044. if (argumentList == null)
  72045. return result;
  72046. t1 = evaluated.named;
  72047. if (t1.get$isEmpty(t1))
  72048. return result;
  72049. if (argumentList._argument_list$_wereKeywordsAccessed)
  72050. return result;
  72051. t1 = evaluated.named.get$keys();
  72052. throw H.wrapException(E.MultiSpanSassRuntimeException$0("No " + B.pluralize0("argument", t1.get$length(t1), null) + " named " + H.S(B.toSentence0(evaluated.named.get$keys().map$1$1(0, new R._EvaluateVisitor__runBuiltInCallable_closure4(), type$.Object), "or")) + ".", nodeWithSpan.get$span(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([overload.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), _this._evaluate0$_stackTrace$1(nodeWithSpan.get$span())));
  72053. },
  72054. _evaluate0$_evaluateArguments$2$trackSpans: function($arguments, trackSpans) {
  72055. var t1, t2, t3, _i, t4, t5, t6, t7, named, t8, positionalNodes, namedNodes, rest, restNodeForSpan, separator, keywordRest, keywordRestNodeForSpan, _this = this, _null = null;
  72056. if (trackSpans == null)
  72057. trackSpans = _this._evaluate0$_sourceMap;
  72058. t1 = H.setRuntimeTypeInfo([], type$.JSArray_Value_2);
  72059. for (t2 = $arguments.positional, t3 = t2.length, _i = 0; _i < t3; ++_i)
  72060. t1.push(t2[_i].accept$1(_this));
  72061. t4 = $arguments.named;
  72062. t5 = type$.String;
  72063. t6 = type$.Expression_2;
  72064. t7 = type$.Value_2;
  72065. named = Y.mapMap(t4, _null, new R._EvaluateVisitor__evaluateArguments_closure5(_this), t5, t6, t5, t7);
  72066. if (trackSpans) {
  72067. t8 = H.setRuntimeTypeInfo([], type$.JSArray_AstNode_2);
  72068. for (_i = 0; _i < t3; ++_i)
  72069. t8.push(_this._evaluate0$_expressionNode$1(t2[_i]));
  72070. positionalNodes = t8;
  72071. } else
  72072. positionalNodes = _null;
  72073. namedNodes = trackSpans ? Y.mapMap(t4, _null, new R._EvaluateVisitor__evaluateArguments_closure6(_this), t5, t6, t5, type$.AstNode_2) : _null;
  72074. t2 = $arguments.rest;
  72075. if (t2 == null)
  72076. return R._ArgumentResults$1(t1, named, C.ListSeparator_undecided0, namedNodes, positionalNodes);
  72077. rest = t2.accept$1(_this);
  72078. restNodeForSpan = trackSpans ? _this._evaluate0$_expressionNode$1(t2) : _null;
  72079. if (rest instanceof A.SassMap0) {
  72080. _this._evaluate0$_addRestMap$1$3(named, rest, t2, t7);
  72081. if (namedNodes != null) {
  72082. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t5, type$.AstNode_2);
  72083. for (t3 = J.get$iterator$ax(rest.contents.get$keys()), t4 = type$.SassString_2; t3.moveNext$0();)
  72084. t2.$indexSet(0, t4._as(t3.get$current(t3)).text, restNodeForSpan);
  72085. namedNodes.addAll$1(0, t2);
  72086. }
  72087. separator = C.ListSeparator_undecided0;
  72088. } else if (rest instanceof D.SassList0) {
  72089. t2 = rest._list1$_contents;
  72090. C.JSArray_methods.addAll$1(t1, t2);
  72091. if (positionalNodes != null)
  72092. C.JSArray_methods.addAll$1(positionalNodes, P.List_List$filled(t2.length, restNodeForSpan, type$.AstNode_2));
  72093. separator = rest.separator;
  72094. if (rest instanceof D.SassArgumentList0) {
  72095. rest._argument_list$_wereKeywordsAccessed = true;
  72096. rest._argument_list$_keywords.forEach$1(0, new R._EvaluateVisitor__evaluateArguments_closure7(named, namedNodes, restNodeForSpan));
  72097. }
  72098. } else {
  72099. t1.push(rest);
  72100. if (positionalNodes != null)
  72101. positionalNodes.push(restNodeForSpan);
  72102. separator = C.ListSeparator_undecided0;
  72103. }
  72104. t2 = $arguments.keywordRest;
  72105. if (t2 == null)
  72106. return R._ArgumentResults$1(t1, named, separator, namedNodes, positionalNodes);
  72107. keywordRest = t2.accept$1(_this);
  72108. keywordRestNodeForSpan = trackSpans ? _this._evaluate0$_expressionNode$1(t2) : _null;
  72109. if (keywordRest instanceof A.SassMap0) {
  72110. _this._evaluate0$_addRestMap$1$3(named, keywordRest, t2, t7);
  72111. if (namedNodes != null) {
  72112. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t5, type$.AstNode_2);
  72113. for (t3 = J.get$iterator$ax(keywordRest.contents.get$keys()), t4 = type$.SassString_2; t3.moveNext$0();)
  72114. t2.$indexSet(0, t4._as(t3.get$current(t3)).text, keywordRestNodeForSpan);
  72115. namedNodes.addAll$1(0, t2);
  72116. }
  72117. return R._ArgumentResults$1(t1, named, separator, namedNodes, positionalNodes);
  72118. } else
  72119. throw H.wrapException(_this._evaluate0$_exception$2("Variable keyword arguments must be a map (was " + H.S(keywordRest) + ").", t2.get$span()));
  72120. },
  72121. _evaluate0$_evaluateArguments$1: function($arguments) {
  72122. return this._evaluate0$_evaluateArguments$2$trackSpans($arguments, null);
  72123. },
  72124. _evaluate0$_evaluateMacroArguments$1: function(invocation) {
  72125. var t3, positional, named, rest, keywordRest, _this = this,
  72126. t1 = invocation.$arguments,
  72127. t2 = t1.rest;
  72128. if (t2 == null)
  72129. return new S.Tuple2(t1.positional, t1.named, type$.Tuple2_of_List_Expression_and_Map_String_Expression_2);
  72130. t3 = t1.positional;
  72131. positional = H.setRuntimeTypeInfo(t3.slice(0), H._arrayInstanceType(t3)._eval$1("JSArray<1>"));
  72132. t3 = type$.Expression_2;
  72133. named = P.LinkedHashMap_LinkedHashMap$of(t1.named, type$.String, t3);
  72134. rest = t2.accept$1(_this);
  72135. if (rest instanceof A.SassMap0)
  72136. _this._evaluate0$_addRestMap$1$4(named, rest, invocation, new R._EvaluateVisitor__evaluateMacroArguments_closure7(), t3);
  72137. else if (rest instanceof D.SassList0) {
  72138. t2 = rest._list1$_contents;
  72139. C.JSArray_methods.addAll$1(positional, new H.MappedListIterable(t2, new R._EvaluateVisitor__evaluateMacroArguments_closure8(), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Expression0>")));
  72140. if (rest instanceof D.SassArgumentList0) {
  72141. rest._argument_list$_wereKeywordsAccessed = true;
  72142. rest._argument_list$_keywords.forEach$1(0, new R._EvaluateVisitor__evaluateMacroArguments_closure9(named));
  72143. }
  72144. } else
  72145. positional.push(new F.ValueExpression0(rest, null));
  72146. t1 = t1.keywordRest;
  72147. if (t1 == null)
  72148. return new S.Tuple2(positional, named, type$.Tuple2_of_List_Expression_and_Map_String_Expression_2);
  72149. keywordRest = t1.accept$1(_this);
  72150. if (keywordRest instanceof A.SassMap0) {
  72151. _this._evaluate0$_addRestMap$1$4(named, keywordRest, invocation, new R._EvaluateVisitor__evaluateMacroArguments_closure10(), t3);
  72152. return new S.Tuple2(positional, named, type$.Tuple2_of_List_Expression_and_Map_String_Expression_2);
  72153. } else
  72154. throw H.wrapException(_this._evaluate0$_exception$2("Variable keyword arguments must be a map (was " + H.S(keywordRest) + ").", invocation.span));
  72155. },
  72156. _evaluate0$_addRestMap$1$4: function(values, map, nodeWithSpan, convert, $T) {
  72157. var t1 = {};
  72158. t1.convert = convert;
  72159. if (convert == null)
  72160. t1.convert = new R._EvaluateVisitor__addRestMap_closure3($T);
  72161. map.contents.forEach$1(0, new R._EvaluateVisitor__addRestMap_closure4(t1, this, values, map, nodeWithSpan));
  72162. },
  72163. _evaluate0$_addRestMap$1$3: function(values, map, nodeWithSpan, $T) {
  72164. return this._evaluate0$_addRestMap$1$4(values, map, nodeWithSpan, null, $T);
  72165. },
  72166. _evaluate0$_verifyArguments$4: function(positional, named, $arguments, nodeWithSpan) {
  72167. return this._evaluate0$_addExceptionSpan$2(nodeWithSpan, new R._EvaluateVisitor__verifyArguments_closure1($arguments, positional, named));
  72168. },
  72169. visitSelectorExpression$1: function(node) {
  72170. var t1 = this._evaluate0$_styleRule;
  72171. if (t1 == null)
  72172. return C.C_SassNull;
  72173. return t1.originalSelector.get$asSassList();
  72174. },
  72175. visitStringExpression$1: function(node) {
  72176. var t1 = node.text.contents;
  72177. return new D.SassString0(new H.MappedListIterable(t1, new R._EvaluateVisitor_visitStringExpression_closure1(this), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$0(0), node.hasQuotes);
  72178. },
  72179. visitCssAtRule$1: function(node) {
  72180. var t1, t2, wasInKeyframes, wasInUnknownAtRule, _this = this;
  72181. if (_this._evaluate0$_declarationName != null)
  72182. throw H.wrapException(_this._evaluate0$_exception$2("At-rules may not be used within nested declarations.", node.span));
  72183. if (node.isChildless) {
  72184. t1 = _this._evaluate0$_parent;
  72185. t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
  72186. t1.addChild$1(new U.ModifiableCssAtRule0(node.name, node.value, true, node.span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode_2), t2));
  72187. return null;
  72188. }
  72189. wasInKeyframes = _this._evaluate0$_inKeyframes;
  72190. wasInUnknownAtRule = _this._evaluate0$_inUnknownAtRule;
  72191. t1 = node.name;
  72192. if (B.unvendor0(t1.get$value(t1)) === "keyframes")
  72193. _this._evaluate0$_inKeyframes = true;
  72194. else
  72195. _this._evaluate0$_inUnknownAtRule = true;
  72196. t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
  72197. _this._evaluate0$_withParent$2$4$scopeWhen$through(new U.ModifiableCssAtRule0(t1, node.value, false, node.span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode_2), t2), new R._EvaluateVisitor_visitCssAtRule_closure3(_this, node), false, new R._EvaluateVisitor_visitCssAtRule_closure4(), type$.ModifiableCssAtRule_2, type$.Null);
  72198. _this._evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
  72199. _this._evaluate0$_inKeyframes = wasInKeyframes;
  72200. },
  72201. visitCssComment$1: function(node) {
  72202. var _this = this,
  72203. t1 = _this._evaluate0$_parent,
  72204. t2 = _this._evaluate0$_root;
  72205. if (t1 == t2 && _this._evaluate0$_endOfImports === J.get$length$asx(t2.children._collection$_source))
  72206. _this._evaluate0$_endOfImports = _this._evaluate0$_endOfImports + 1;
  72207. _this._evaluate0$_parent.addChild$1(new R.ModifiableCssComment0(node.text, node.span));
  72208. },
  72209. visitCssDeclaration$1: function(node) {
  72210. this._evaluate0$_parent.addChild$1(L.ModifiableCssDeclaration$0(node.name, node.value, node.span, node.valueSpanForMap));
  72211. },
  72212. visitCssImport$1: function(node) {
  72213. var _this = this,
  72214. modifiableNode = F.ModifiableCssImport$0(node.url, node.span, node.media, node.supports),
  72215. t1 = _this._evaluate0$_parent,
  72216. t2 = _this._evaluate0$_root;
  72217. if (t1 != t2)
  72218. t1.addChild$1(modifiableNode);
  72219. else if (_this._evaluate0$_endOfImports === J.get$length$asx(t2.children._collection$_source)) {
  72220. _this._evaluate0$_root.addChild$1(modifiableNode);
  72221. _this._evaluate0$_endOfImports = _this._evaluate0$_endOfImports + 1;
  72222. } else {
  72223. t1 = _this._evaluate0$_outOfOrderImports;
  72224. (t1 == null ? _this._evaluate0$_outOfOrderImports = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssImport_2) : t1).push(modifiableNode);
  72225. }
  72226. },
  72227. visitCssKeyframeBlock$1: function(node) {
  72228. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
  72229. this._evaluate0$_withParent$2$4$scopeWhen$through(new U.ModifiableCssKeyframeBlock0(node.selector, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1), new R._EvaluateVisitor_visitCssKeyframeBlock_closure3(this, node), false, new R._EvaluateVisitor_visitCssKeyframeBlock_closure4(), type$.ModifiableCssKeyframeBlock_2, type$.Null);
  72230. },
  72231. visitCssMediaRule$1: function(node) {
  72232. var t1, mergedQueries, _this = this;
  72233. if (_this._evaluate0$_declarationName != null)
  72234. throw H.wrapException(_this._evaluate0$_exception$2("Media rules may not be used within nested declarations.", node.span));
  72235. t1 = _this._evaluate0$_mediaQueries;
  72236. mergedQueries = t1 == null ? null : _this._evaluate0$_mergeMediaQueries$2(t1, node.queries);
  72237. t1 = mergedQueries == null;
  72238. if (!t1 && mergedQueries.length === 0)
  72239. return null;
  72240. t1 = t1 ? node.queries : mergedQueries;
  72241. _this._evaluate0$_withParent$2$4$scopeWhen$through(G.ModifiableCssMediaRule$0(t1, node.span), new R._EvaluateVisitor_visitCssMediaRule_closure3(_this, mergedQueries, node), false, new R._EvaluateVisitor_visitCssMediaRule_closure4(mergedQueries), type$.ModifiableCssMediaRule_2, type$.Null);
  72242. },
  72243. visitCssStyleRule$1: function(node) {
  72244. var t1, t2, t3, originalSelector, rule, oldAtRootExcludingStyleRule, _this = this;
  72245. if (_this._evaluate0$_declarationName != null)
  72246. throw H.wrapException(_this._evaluate0$_exception$2("Style rules may not be used within nested declarations.", node.span));
  72247. t1 = node.selector;
  72248. t2 = t1.value;
  72249. t3 = _this._evaluate0$_styleRule;
  72250. t3 = t3 == null ? null : t3.originalSelector;
  72251. originalSelector = t2.resolveParentSelectors$2$implicitParent(t3, !_this._evaluate0$_atRootExcludingStyleRule);
  72252. rule = X.ModifiableCssStyleRule$0(_this._evaluate0$_extender.addSelector$3(originalSelector, t1.span, _this._evaluate0$_mediaQueries), node.span, originalSelector);
  72253. oldAtRootExcludingStyleRule = _this._evaluate0$_atRootExcludingStyleRule;
  72254. _this._evaluate0$_atRootExcludingStyleRule = false;
  72255. _this._evaluate0$_withParent$2$4$scopeWhen$through(rule, new R._EvaluateVisitor_visitCssStyleRule_closure3(_this, rule, node), false, new R._EvaluateVisitor_visitCssStyleRule_closure4(), type$.ModifiableCssStyleRule_2, type$.Null);
  72256. _this._evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  72257. if (!(_this._evaluate0$_styleRule != null && !oldAtRootExcludingStyleRule)) {
  72258. t1 = _this._evaluate0$_parent.children;
  72259. t1 = !t1.get$isEmpty(t1);
  72260. } else
  72261. t1 = false;
  72262. if (t1) {
  72263. t1 = _this._evaluate0$_parent.children;
  72264. t1.get$last(t1).isGroupEnd = true;
  72265. }
  72266. },
  72267. visitCssStylesheet$1: function(node) {
  72268. var t1;
  72269. for (t1 = J.get$iterator$ax(node.get$children()); t1.moveNext$0();)
  72270. t1.get$current(t1).accept$1(this);
  72271. },
  72272. visitCssSupportsRule$1: function(node) {
  72273. var t1, _this = this;
  72274. if (_this._evaluate0$_declarationName != null)
  72275. throw H.wrapException(_this._evaluate0$_exception$2("Supports rules may not be used within nested declarations.", node.span));
  72276. t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
  72277. _this._evaluate0$_withParent$2$4$scopeWhen$through(new B.ModifiableCssSupportsRule0(node.condition, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1), new R._EvaluateVisitor_visitCssSupportsRule_closure3(_this, node), false, new R._EvaluateVisitor_visitCssSupportsRule_closure4(), type$.ModifiableCssSupportsRule_2, type$.Null);
  72278. },
  72279. _evaluate0$_handleReturn$1$2: function(list, callback) {
  72280. var t1, _i, result;
  72281. for (t1 = list.length, _i = 0; _i < list.length; list.length === t1 || (0, H.throwConcurrentModificationError)(list), ++_i) {
  72282. result = callback.call$1(list[_i]);
  72283. if (result != null)
  72284. return result;
  72285. }
  72286. return null;
  72287. },
  72288. _evaluate0$_handleReturn$2: function(list, callback) {
  72289. return this._evaluate0$_handleReturn$1$2(list, callback, type$.dynamic);
  72290. },
  72291. _evaluate0$_withEnvironment$1$2: function(environment, callback) {
  72292. var result,
  72293. oldEnvironment = this._evaluate0$_environment;
  72294. this._evaluate0$_environment = environment;
  72295. result = callback.call$0();
  72296. this._evaluate0$_environment = oldEnvironment;
  72297. return result;
  72298. },
  72299. _evaluate0$_withEnvironment$2: function(environment, callback) {
  72300. return this._evaluate0$_withEnvironment$1$2(environment, callback, type$.dynamic);
  72301. },
  72302. _evaluate0$_interpolationToValue$3$trim$warnForColor: function(interpolation, trim, warnForColor) {
  72303. var result = this._evaluate0$_performInterpolation$2$warnForColor(interpolation, warnForColor),
  72304. t1 = trim ? B.trimAscii0(result, true) : result;
  72305. return new F.CssValue0(t1, interpolation.span, type$.CssValue_String_2);
  72306. },
  72307. _evaluate0$_interpolationToValue$1: function(interpolation) {
  72308. return this._evaluate0$_interpolationToValue$3$trim$warnForColor(interpolation, false, false);
  72309. },
  72310. _evaluate0$_interpolationToValue$2$warnForColor: function(interpolation, warnForColor) {
  72311. return this._evaluate0$_interpolationToValue$3$trim$warnForColor(interpolation, false, warnForColor);
  72312. },
  72313. _evaluate0$_performInterpolation$2$warnForColor: function(interpolation, warnForColor) {
  72314. var t1 = interpolation.contents;
  72315. return new H.MappedListIterable(t1, new R._EvaluateVisitor__performInterpolation_closure1(this, warnForColor), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$0(0);
  72316. },
  72317. _evaluate0$_performInterpolation$1: function(interpolation) {
  72318. return this._evaluate0$_performInterpolation$2$warnForColor(interpolation, false);
  72319. },
  72320. _evaluate0$_serialize$3$quote: function(value, nodeWithSpan, quote) {
  72321. return this._evaluate0$_addExceptionSpan$2(nodeWithSpan, new R._EvaluateVisitor__serialize_closure1(value, quote));
  72322. },
  72323. _evaluate0$_serialize$2: function(value, nodeWithSpan) {
  72324. return this._evaluate0$_serialize$3$quote(value, nodeWithSpan, true);
  72325. },
  72326. _evaluate0$_expressionNode$1: function(expression) {
  72327. var t1;
  72328. if (!this._evaluate0$_sourceMap)
  72329. return null;
  72330. if (expression instanceof S.VariableExpression0) {
  72331. t1 = this._evaluate0$_environment.getVariableNode$2$namespace(expression.name, expression.namespace);
  72332. return t1 == null ? expression : t1;
  72333. } else
  72334. return expression;
  72335. },
  72336. _evaluate0$_withParent$2$4$scopeWhen$through: function(node, callback, scopeWhen, through, $S, $T) {
  72337. var oldParent, result, _this = this;
  72338. _this._evaluate0$_addChild$2$through(node, through);
  72339. oldParent = _this._evaluate0$_parent;
  72340. _this._evaluate0$_parent = node;
  72341. result = _this._evaluate0$_environment.scope$1$2$when(callback, scopeWhen, $T);
  72342. _this._evaluate0$_parent = oldParent;
  72343. return result;
  72344. },
  72345. _evaluate0$_withParent$2$3$scopeWhen: function(node, callback, scopeWhen, $S, $T) {
  72346. return this._evaluate0$_withParent$2$4$scopeWhen$through(node, callback, scopeWhen, null, $S, $T);
  72347. },
  72348. _evaluate0$_withParent$2$2: function(node, callback, $S, $T) {
  72349. return this._evaluate0$_withParent$2$4$scopeWhen$through(node, callback, true, null, $S, $T);
  72350. },
  72351. _evaluate0$_addChild$2$through: function(node, through) {
  72352. var grandparent,
  72353. $parent = this._evaluate0$_parent;
  72354. if (through != null) {
  72355. for (; through.call$1($parent);)
  72356. $parent = $parent._node2$_parent;
  72357. if ($parent.get$hasFollowingSibling()) {
  72358. grandparent = $parent._node2$_parent;
  72359. $parent = $parent.copyWithoutChildren$0();
  72360. grandparent.addChild$1($parent);
  72361. }
  72362. }
  72363. $parent.addChild$1(node);
  72364. },
  72365. _evaluate0$_addChild$1: function(node) {
  72366. return this._evaluate0$_addChild$2$through(node, null);
  72367. },
  72368. _evaluate0$_withStyleRule$1$2: function(rule, callback) {
  72369. var result,
  72370. oldRule = this._evaluate0$_styleRule;
  72371. this._evaluate0$_styleRule = rule;
  72372. result = callback.call$0();
  72373. this._evaluate0$_styleRule = oldRule;
  72374. return result;
  72375. },
  72376. _evaluate0$_withStyleRule$2: function(rule, callback) {
  72377. return this._evaluate0$_withStyleRule$1$2(rule, callback, type$.dynamic);
  72378. },
  72379. _evaluate0$_withMediaQueries$1$2: function(queries, callback) {
  72380. var result,
  72381. oldMediaQueries = this._evaluate0$_mediaQueries;
  72382. this._evaluate0$_mediaQueries = queries;
  72383. result = callback.call$0();
  72384. this._evaluate0$_mediaQueries = oldMediaQueries;
  72385. return result;
  72386. },
  72387. _evaluate0$_withMediaQueries$2: function(queries, callback) {
  72388. return this._evaluate0$_withMediaQueries$1$2(queries, callback, type$.dynamic);
  72389. },
  72390. _evaluate0$_withStackFrame$1$3: function(member, nodeWithSpan, callback) {
  72391. var oldMember, result, _this = this,
  72392. t1 = _this._evaluate0$_stack;
  72393. t1.push(new S.Tuple2(_this._evaluate0$_member, nodeWithSpan, type$.Tuple2_String_AstNode_2));
  72394. oldMember = _this._evaluate0$_member;
  72395. _this._evaluate0$_member = member;
  72396. result = callback.call$0();
  72397. _this._evaluate0$_member = oldMember;
  72398. t1.pop();
  72399. return result;
  72400. },
  72401. _evaluate0$_withStackFrame$3: function(member, nodeWithSpan, callback) {
  72402. return this._evaluate0$_withStackFrame$1$3(member, nodeWithSpan, callback, type$.dynamic);
  72403. },
  72404. _evaluate0$_stackFrame$2: function(member, span) {
  72405. var url = span.file.url;
  72406. return B.frameForSpan0(span, member, url != null && this._evaluate0$_importCache != null ? this._evaluate0$_importCache.humanize$1(url) : url);
  72407. },
  72408. _evaluate0$_stackTrace$1: function(span) {
  72409. var t2, _this = this,
  72410. t1 = H.setRuntimeTypeInfo([], type$.JSArray_Frame);
  72411. for (t2 = _this._evaluate0$_stack, t2 = new H.MappedListIterable(t2, new R._EvaluateVisitor__stackTrace_closure1(_this), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Frame>")), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
  72412. t1.push(t2.__internal$_current);
  72413. if (span != null)
  72414. t1.push(_this._evaluate0$_stackFrame$2(_this._evaluate0$_member, span));
  72415. return new Y.Trace(P.List_List$unmodifiable(new H.ReversedListIterable(t1, type$.ReversedListIterable_Frame), type$.Frame), new P._StringStackTrace(null));
  72416. },
  72417. _evaluate0$_stackTrace$0: function() {
  72418. return this._evaluate0$_stackTrace$1(null);
  72419. },
  72420. _evaluate0$_warn$3$deprecation: function(message, span, deprecation) {
  72421. return this._evaluate0$_logger.warn$4$deprecation$span$trace(message, deprecation, span, this._evaluate0$_stackTrace$1(span));
  72422. },
  72423. _evaluate0$_warn$2: function(message, span) {
  72424. return this._evaluate0$_warn$3$deprecation(message, span, false);
  72425. },
  72426. _evaluate0$_exception$2: function(message, span) {
  72427. var t1 = span == null ? C.JSArray_methods.get$last(this._evaluate0$_stack).item2.get$span() : span;
  72428. return new E.SassRuntimeException0(this._evaluate0$_stackTrace$1(span), message, t1);
  72429. },
  72430. _evaluate0$_exception$1: function(message) {
  72431. return this._evaluate0$_exception$2(message, null);
  72432. },
  72433. _evaluate0$_multiSpanException$3: function(message, primaryLabel, secondaryLabels) {
  72434. var t1 = C.JSArray_methods.get$last(this._evaluate0$_stack).item2.get$span();
  72435. return new E.MultiSpanSassRuntimeException0(this._evaluate0$_stackTrace$0(), primaryLabel, H.ConstantMap_ConstantMap$from(secondaryLabels, type$.FileSpan, type$.String), message, t1);
  72436. },
  72437. _evaluate0$_adjustParseError$1$2: function(nodeWithSpan, callback) {
  72438. var error, errorText, span, syntheticFile, syntheticSpan, t1, exception, t2, t3, t4, t5, _null = null;
  72439. try {
  72440. t1 = callback.call$0();
  72441. return t1;
  72442. } catch (exception) {
  72443. t1 = H.unwrapException(exception);
  72444. if (t1 instanceof E.SassFormatException0) {
  72445. error = t1;
  72446. t1 = error;
  72447. errorText = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(G.SourceSpanException.prototype.get$span.call(t1).file._decodedChars, 0, _null), 0, _null);
  72448. span = nodeWithSpan.get$span();
  72449. t1 = span;
  72450. t2 = span;
  72451. syntheticFile = C.JSString_methods.replaceRange$3(P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(span.file._decodedChars, 0, _null), 0, _null), Y.FileLocation$_(t1.file, t1._file$_start).offset, Y.FileLocation$_(t2.file, t2._end).offset, errorText);
  72452. t2 = syntheticFile;
  72453. t1 = span.file.url;
  72454. t2.toString;
  72455. t2 = new H.CodeUnits(t2);
  72456. t3 = H.setRuntimeTypeInfo([0], type$.JSArray_int);
  72457. t3 = new Y.SourceFile(t1, t3, new Uint32Array(H._ensureNativeList(t2.toList$0(t2))));
  72458. t3.SourceFile$decoded$2$url(t2, t1);
  72459. t1 = span;
  72460. t1 = Y.FileLocation$_(t1.file, t1._file$_start);
  72461. t2 = error;
  72462. t2 = G.SourceSpanException.prototype.get$span.call(t2);
  72463. t2 = Y.FileLocation$_(t2.file, t2._file$_start);
  72464. t4 = span;
  72465. t4 = Y.FileLocation$_(t4.file, t4._file$_start);
  72466. t5 = error;
  72467. t5 = G.SourceSpanException.prototype.get$span.call(t5);
  72468. syntheticSpan = t3.span$2(t1.offset + t2.offset, t4.offset + Y.FileLocation$_(t5.file, t5._end).offset);
  72469. throw H.wrapException(this._evaluate0$_exception$2(error._span_exception$_message, syntheticSpan));
  72470. } else
  72471. throw exception;
  72472. }
  72473. },
  72474. _evaluate0$_adjustParseError$2: function(nodeWithSpan, callback) {
  72475. return this._evaluate0$_adjustParseError$1$2(nodeWithSpan, callback, type$.dynamic);
  72476. },
  72477. _evaluate0$_addExceptionSpan$1$2: function(nodeWithSpan, callback) {
  72478. var error, error0, t1, exception;
  72479. try {
  72480. t1 = callback.call$0();
  72481. return t1;
  72482. } catch (exception) {
  72483. t1 = H.unwrapException(exception);
  72484. if (t1 instanceof E.MultiSpanSassScriptException0) {
  72485. error = t1;
  72486. throw H.wrapException(E.MultiSpanSassRuntimeException$0(error.message, nodeWithSpan.get$span(), error.primaryLabel, error.secondarySpans, this._evaluate0$_stackTrace$1(nodeWithSpan.get$span())));
  72487. } else if (t1 instanceof E.SassScriptException0) {
  72488. error0 = t1;
  72489. throw H.wrapException(this._evaluate0$_exception$2(error0.message, nodeWithSpan.get$span()));
  72490. } else
  72491. throw exception;
  72492. }
  72493. },
  72494. _evaluate0$_addExceptionSpan$2: function(nodeWithSpan, callback) {
  72495. return this._evaluate0$_addExceptionSpan$1$2(nodeWithSpan, callback, type$.dynamic);
  72496. },
  72497. _evaluate0$_addErrorSpan$1$2: function(nodeWithSpan, callback) {
  72498. var error, t1, exception;
  72499. try {
  72500. t1 = callback.call$0();
  72501. return t1;
  72502. } catch (exception) {
  72503. t1 = H.unwrapException(exception);
  72504. if (type$.SassRuntimeException_2._is(t1)) {
  72505. error = t1;
  72506. t1 = error.get$span();
  72507. if (!C.JSString_methods.startsWith$1(P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, null), "@error"))
  72508. throw exception;
  72509. throw H.wrapException(E.SassRuntimeException$0(error._span_exception$_message, nodeWithSpan.get$span(), this._evaluate0$_stackTrace$0()));
  72510. } else
  72511. throw exception;
  72512. }
  72513. },
  72514. _evaluate0$_addErrorSpan$2: function(nodeWithSpan, callback) {
  72515. return this._evaluate0$_addErrorSpan$1$2(nodeWithSpan, callback, type$.dynamic);
  72516. }
  72517. };
  72518. R._EvaluateVisitor_closure19.prototype = {
  72519. call$1: function($arguments) {
  72520. var module, t2,
  72521. t1 = J.getInterceptor$asx($arguments),
  72522. variable = t1.$index($arguments, 0).assertString$1("name");
  72523. t1 = t1.$index($arguments, 1).get$realNull();
  72524. module = t1 == null ? null : t1.assertString$1("module");
  72525. t1 = this.$this._evaluate0$_environment;
  72526. t2 = variable.text;
  72527. t2.toString;
  72528. t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
  72529. return t1.globalVariableExists$2$namespace(t2, module == null ? null : module.text) ? C.SassBoolean_true : C.SassBoolean_false;
  72530. },
  72531. $signature: 15
  72532. };
  72533. R._EvaluateVisitor_closure20.prototype = {
  72534. call$1: function($arguments) {
  72535. var variable = J.$index$asx($arguments, 0).assertString$1("name"),
  72536. t1 = this.$this._evaluate0$_environment,
  72537. t2 = variable.text;
  72538. t2.toString;
  72539. return t1.getVariable$1(H.stringReplaceAllUnchecked(t2, "_", "-")) != null ? C.SassBoolean_true : C.SassBoolean_false;
  72540. },
  72541. $signature: 15
  72542. };
  72543. R._EvaluateVisitor_closure21.prototype = {
  72544. call$1: function($arguments) {
  72545. var module, t2, t3, t4,
  72546. t1 = J.getInterceptor$asx($arguments),
  72547. variable = t1.$index($arguments, 0).assertString$1("name");
  72548. t1 = t1.$index($arguments, 1).get$realNull();
  72549. module = t1 == null ? null : t1.assertString$1("module");
  72550. t1 = this.$this;
  72551. t2 = t1._evaluate0$_environment;
  72552. t3 = variable.text;
  72553. t3.toString;
  72554. t4 = H.stringReplaceAllUnchecked(t3, "_", "-");
  72555. return t2.getFunction$2$namespace(t4, module == null ? null : module.text) != null || t1._evaluate0$_builtInFunctions.containsKey$1(t3) ? C.SassBoolean_true : C.SassBoolean_false;
  72556. },
  72557. $signature: 15
  72558. };
  72559. R._EvaluateVisitor_closure22.prototype = {
  72560. call$1: function($arguments) {
  72561. var module, t2,
  72562. t1 = J.getInterceptor$asx($arguments),
  72563. variable = t1.$index($arguments, 0).assertString$1("name");
  72564. t1 = t1.$index($arguments, 1).get$realNull();
  72565. module = t1 == null ? null : t1.assertString$1("module");
  72566. t1 = this.$this._evaluate0$_environment;
  72567. t2 = variable.text;
  72568. t2.toString;
  72569. t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
  72570. return t1.getMixin$2$namespace(t2, module == null ? null : module.text) != null ? C.SassBoolean_true : C.SassBoolean_false;
  72571. },
  72572. $signature: 15
  72573. };
  72574. R._EvaluateVisitor_closure23.prototype = {
  72575. call$1: function($arguments) {
  72576. var t1 = this.$this._evaluate0$_environment;
  72577. if (!t1._environment0$_inMixin)
  72578. throw H.wrapException(E.SassScriptException$0("content-exists() may only be called within a mixin."));
  72579. return t1._environment0$_content != null ? C.SassBoolean_true : C.SassBoolean_false;
  72580. },
  72581. $signature: 15
  72582. };
  72583. R._EvaluateVisitor_closure24.prototype = {
  72584. call$1: function($arguments) {
  72585. var t2, t3, t4,
  72586. t1 = J.$index$asx($arguments, 0).assertString$1("module").text,
  72587. module = this.$this._evaluate0$_environment._environment0$_modules.$index(0, t1);
  72588. if (module == null)
  72589. throw H.wrapException('There is no module with namespace "' + H.S(t1) + '".');
  72590. t1 = type$.Value_2;
  72591. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  72592. for (t3 = module.get$variables().get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  72593. t4 = t3.get$current(t3);
  72594. t2.$indexSet(0, new D.SassString0(t4.key, true), t4.value);
  72595. }
  72596. return new A.SassMap0(H.ConstantMap_ConstantMap$from(t2, t1, t1));
  72597. },
  72598. $signature: 29
  72599. };
  72600. R._EvaluateVisitor_closure25.prototype = {
  72601. call$1: function($arguments) {
  72602. var t2, t3, t4,
  72603. t1 = J.$index$asx($arguments, 0).assertString$1("module").text,
  72604. module = this.$this._evaluate0$_environment._environment0$_modules.$index(0, t1);
  72605. if (module == null)
  72606. throw H.wrapException('There is no module with namespace "' + H.S(t1) + '".');
  72607. t1 = type$.Value_2;
  72608. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  72609. for (t3 = module.get$functions(module).get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  72610. t4 = t3.get$current(t3);
  72611. t2.$indexSet(0, new D.SassString0(t4.key, true), new F.SassFunction0(t4.value));
  72612. }
  72613. return new A.SassMap0(H.ConstantMap_ConstantMap$from(t2, t1, t1));
  72614. },
  72615. $signature: 29
  72616. };
  72617. R._EvaluateVisitor_closure26.prototype = {
  72618. call$1: function($arguments) {
  72619. var module, callable,
  72620. t1 = J.getInterceptor$asx($arguments),
  72621. $name = t1.$index($arguments, 0).assertString$1("name"),
  72622. css = t1.$index($arguments, 1).get$isTruthy();
  72623. t1 = t1.$index($arguments, 2).get$realNull();
  72624. module = t1 == null ? null : t1.assertString$1("module");
  72625. if (css && module != null)
  72626. throw H.wrapException("$css and $module may not both be passed at once.");
  72627. if (css)
  72628. callable = new L.PlainCssCallable0($name.text);
  72629. else {
  72630. t1 = this.$this;
  72631. callable = t1._evaluate0$_addExceptionSpan$2(t1._evaluate0$_callableNode, new R._EvaluateVisitor__closure13(t1, $name, module));
  72632. }
  72633. if (callable != null)
  72634. return new F.SassFunction0(callable);
  72635. throw H.wrapException("Function not found: " + $name.toString$0(0));
  72636. },
  72637. $signature: 80
  72638. };
  72639. R._EvaluateVisitor__closure13.prototype = {
  72640. call$0: function() {
  72641. var t2,
  72642. t1 = this.name.text;
  72643. t1.toString;
  72644. t1 = H.stringReplaceAllUnchecked(t1, "_", "-");
  72645. t2 = this.module;
  72646. t2 = t2 == null ? null : t2.text;
  72647. return this.$this._evaluate0$_getFunction$2$namespace(t1, t2);
  72648. },
  72649. $signature: 50
  72650. };
  72651. R._EvaluateVisitor_closure27.prototype = {
  72652. call$1: function($arguments) {
  72653. var t2, t3, t4, t5, t6, t7, invocation, callable,
  72654. t1 = J.getInterceptor$asx($arguments),
  72655. $function = t1.$index($arguments, 0),
  72656. args = type$.SassArgumentList_2._as(t1.$index($arguments, 1));
  72657. t1 = H.setRuntimeTypeInfo([], type$.JSArray_Expression_2);
  72658. t2 = type$.String;
  72659. t3 = this.$this;
  72660. t4 = t3._evaluate0$_callableNode.get$span();
  72661. t5 = t3._evaluate0$_callableNode.get$span();
  72662. args._argument_list$_wereKeywordsAccessed = true;
  72663. t6 = args._argument_list$_keywords;
  72664. if (t6.get$isEmpty(t6))
  72665. t6 = null;
  72666. else {
  72667. args._argument_list$_wereKeywordsAccessed = true;
  72668. t7 = type$.Value_2;
  72669. t7 = new F.ValueExpression0(new A.SassMap0(H.ConstantMap_ConstantMap$from(Y.mapMap(t6, new R._EvaluateVisitor__closure11(), new R._EvaluateVisitor__closure12(), t2, t7, t7, t7), t7, t7)), t3._evaluate0$_callableNode.get$span());
  72670. t6 = t7;
  72671. }
  72672. invocation = X.ArgumentInvocation$0(t1, P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.Expression_2), t4, t6, new F.ValueExpression0(args, t5));
  72673. if ($function instanceof D.SassString0) {
  72674. N.warn0("Passing a string to call() is deprecated and will be illegal\nin Dart Sass 2.0.0. Use call(get-function(" + $function.toString$0(0) + ")) instead.", true);
  72675. return t3.visitFunctionExpression$1(new F.FunctionExpression0(null, X.Interpolation$0([$function.text], t3._evaluate0$_callableNode.get$span()), invocation, t3._evaluate0$_callableNode.get$span()));
  72676. }
  72677. callable = $function.assertFunction$1("function").callable;
  72678. if (type$.Callable_2._is(callable))
  72679. return t3._evaluate0$_runFunctionCallable$3(invocation, callable, t3._evaluate0$_callableNode);
  72680. else
  72681. throw H.wrapException(E.SassScriptException$0("The function " + H.S(callable.get$name()) + " is asynchronous.\nThis is probably caused by a bug in a Sass plugin."));
  72682. },
  72683. $signature: 3
  72684. };
  72685. R._EvaluateVisitor__closure11.prototype = {
  72686. call$2: function(key, _) {
  72687. return new D.SassString0(key, false);
  72688. }
  72689. };
  72690. R._EvaluateVisitor__closure12.prototype = {
  72691. call$2: function(_, value) {
  72692. return value;
  72693. }
  72694. };
  72695. R._EvaluateVisitor_closure28.prototype = {
  72696. call$1: function($arguments) {
  72697. var withMap, values, configuration, t2, t3, _null = null,
  72698. t1 = J.getInterceptor$asx($arguments),
  72699. url = P.Uri_parse(t1.$index($arguments, 0).assertString$1("module").text);
  72700. t1 = t1.$index($arguments, 1).get$realNull();
  72701. t1 = t1 == null ? _null : t1.assertMap$1("with");
  72702. withMap = t1 == null ? _null : t1.contents;
  72703. if (withMap != null) {
  72704. values = P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue_2);
  72705. t1 = this.$this;
  72706. withMap.forEach$1(0, new R._EvaluateVisitor__closure9(values, t1._evaluate0$_callableNode.get$span()));
  72707. configuration = new A.Configuration0(values, t1._evaluate0$_callableNode, false);
  72708. } else
  72709. configuration = C.Configuration_Map_empty_null_true0;
  72710. t1 = this.$this;
  72711. t2 = t1._evaluate0$_callableNode;
  72712. t3 = t2.get$span();
  72713. t3 = t3 == null ? _null : t3.file.url;
  72714. t1._evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, "load-css()", t2, new R._EvaluateVisitor__closure10(t1), t3, configuration, true);
  72715. t1._evaluate0$_assertConfigurationIsEmpty$2$nameInError(configuration, true);
  72716. return _null;
  72717. },
  72718. $signature: 52
  72719. };
  72720. R._EvaluateVisitor__closure9.prototype = {
  72721. call$2: function(variable, value) {
  72722. var $name,
  72723. t1 = variable.assertString$1("with key").text;
  72724. t1.toString;
  72725. $name = H.stringReplaceAllUnchecked(t1, "_", "-");
  72726. t1 = this.values;
  72727. if (t1.containsKey$1($name))
  72728. throw H.wrapException("The variable $" + $name + " was configured twice.");
  72729. t1.$indexSet(0, $name, new Z.ConfiguredValue0(value, this.span, null));
  72730. }
  72731. };
  72732. R._EvaluateVisitor__closure10.prototype = {
  72733. call$1: function(module) {
  72734. var t1 = this.$this;
  72735. return t1._evaluate0$_combineCss$2$clone(module, true).accept$1(t1);
  72736. }
  72737. };
  72738. R._EvaluateVisitor_run_closure1.prototype = {
  72739. call$0: function() {
  72740. var t2, _this = this,
  72741. t1 = _this.node,
  72742. url = t1.span.file.url;
  72743. if (url != null) {
  72744. t2 = _this.$this;
  72745. t2._evaluate0$_activeModules.$indexSet(0, url, null);
  72746. if (t2._nodeImporter != null)
  72747. if (url.get$scheme() === "file")
  72748. t2._includedFiles.add$1(0, $.$get$context().style.pathFromUri$1(M._parseUri(url)));
  72749. else if (url.toString$0(0) !== "stdin")
  72750. t2._includedFiles.add$1(0, url.toString$0(0));
  72751. }
  72752. t2 = _this.$this;
  72753. return new E.EvaluateResult0(t2._evaluate0$_combineCss$1(t2._evaluate0$_execute$2(_this.importer, t1)), t2._includedFiles);
  72754. },
  72755. $signature: 124
  72756. };
  72757. R._EvaluateVisitor__withWarnCallback_closure1.prototype = {
  72758. call$2: function(message, deprecation) {
  72759. var t1 = this.$this,
  72760. t2 = t1._evaluate0$_importSpan;
  72761. return t1._evaluate0$_warn$3$deprecation(message, t2 == null ? t1._evaluate0$_callableNode.get$span() : t2, deprecation);
  72762. },
  72763. "call*": "call$2",
  72764. $requiredArgCount: 2
  72765. };
  72766. R._EvaluateVisitor__loadModule_closure1.prototype = {
  72767. call$0: function() {
  72768. var module, error, error0, error1, error2, message, previousLoad, exception, _this = this,
  72769. t1 = _this.$this,
  72770. t2 = _this.nodeWithSpan,
  72771. result = t1._evaluate0$_loadStylesheet$3$baseUrl(J.toString$0$(_this.url), t2.get$span(), _this.baseUrl),
  72772. importer = result.item1,
  72773. stylesheet = result.item2,
  72774. canonicalUrl = stylesheet.span.file.url,
  72775. t3 = t1._evaluate0$_activeModules;
  72776. if (t3.containsKey$1(canonicalUrl)) {
  72777. message = _this.namesInErrors ? "Module loop: " + H.S($.$get$context().prettyUri$1(canonicalUrl)) + " is already being loaded." : "Module loop: this module is already being loaded.";
  72778. previousLoad = t3.$index(0, canonicalUrl);
  72779. throw H.wrapException(previousLoad == null ? t1._evaluate0$_exception$1(message) : t1._evaluate0$_multiSpanException$3(message, "new load", P.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(), "original load"], type$.FileSpan, type$.String)));
  72780. }
  72781. t3.$indexSet(0, canonicalUrl, t2);
  72782. module = null;
  72783. try {
  72784. module = t1._evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, _this.configuration, _this.namesInErrors, t2);
  72785. } finally {
  72786. t3.remove$1(0, canonicalUrl);
  72787. }
  72788. try {
  72789. _this.callback.call$1(module);
  72790. } catch (exception) {
  72791. t2 = H.unwrapException(exception);
  72792. if (type$.SassRuntimeException_2._is(t2))
  72793. throw exception;
  72794. else if (t2 instanceof E.MultiSpanSassException0) {
  72795. error = t2;
  72796. throw H.wrapException(E.MultiSpanSassRuntimeException$0(error._span_exception$_message, error.get$span(), error.primaryLabel, error.secondarySpans, t1._evaluate0$_stackTrace$1(error.get$span())));
  72797. } else if (t2 instanceof E.SassException0) {
  72798. error0 = t2;
  72799. throw H.wrapException(t1._evaluate0$_exception$2(error0._span_exception$_message, error0.get$span()));
  72800. } else if (t2 instanceof E.MultiSpanSassScriptException0) {
  72801. error1 = t2;
  72802. throw H.wrapException(t1._evaluate0$_multiSpanException$3(error1.message, error1.primaryLabel, error1.secondarySpans));
  72803. } else if (t2 instanceof E.SassScriptException0) {
  72804. error2 = t2;
  72805. throw H.wrapException(t1._evaluate0$_exception$1(error2.message));
  72806. } else
  72807. throw exception;
  72808. }
  72809. },
  72810. $signature: 0
  72811. };
  72812. R._EvaluateVisitor__execute_closure1.prototype = {
  72813. call$0: function() {
  72814. var t2, t3, t4, css, _this = this,
  72815. t1 = _this.$this,
  72816. oldImporter = t1._evaluate0$_importer,
  72817. oldStylesheet = t1._evaluate0$_stylesheet,
  72818. oldRoot = t1._evaluate0$_root,
  72819. oldParent = t1._evaluate0$_parent,
  72820. oldEndOfImports = t1._evaluate0$_endOfImports,
  72821. oldOutOfOrderImports = t1._evaluate0$_outOfOrderImports,
  72822. oldExtender = t1._evaluate0$_extender,
  72823. oldStyleRule = t1._evaluate0$_styleRule,
  72824. oldMediaQueries = t1._evaluate0$_mediaQueries,
  72825. oldDeclarationName = t1._evaluate0$_declarationName,
  72826. oldInUnknownAtRule = t1._evaluate0$_inUnknownAtRule,
  72827. oldAtRootExcludingStyleRule = t1._evaluate0$_atRootExcludingStyleRule,
  72828. oldInKeyframes = t1._evaluate0$_inKeyframes,
  72829. oldConfiguration = t1._evaluate0$_configuration;
  72830. t1._evaluate0$_importer = _this.importer;
  72831. t2 = t1._evaluate0$_stylesheet = _this.stylesheet;
  72832. t3 = t2.span;
  72833. t4 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
  72834. t1._evaluate0$_parent = t1._evaluate0$_root = new V.ModifiableCssStylesheet0(t3, new P.UnmodifiableListView(t4, type$.UnmodifiableListView_ModifiableCssNode_2), t4);
  72835. t1._evaluate0$_endOfImports = 0;
  72836. t1._evaluate0$_outOfOrderImports = null;
  72837. t1._evaluate0$_extender = _this.extender;
  72838. t1._evaluate0$_declarationName = t1._evaluate0$_mediaQueries = t1._evaluate0$_styleRule = null;
  72839. t1._evaluate0$_inKeyframes = t1._evaluate0$_atRootExcludingStyleRule = t1._evaluate0$_inUnknownAtRule = false;
  72840. t4 = _this.configuration;
  72841. if (t4 != null)
  72842. t1._evaluate0$_configuration = t4;
  72843. t1.visitStylesheet$1(t2);
  72844. css = t1._evaluate0$_outOfOrderImports == null ? t1._evaluate0$_root : new V.CssStylesheet0(new P.UnmodifiableListView(t1._evaluate0$_addOutOfOrderImports$0(), type$.UnmodifiableListView_CssNode_2), t3);
  72845. _this._box_0.css = css;
  72846. t1._evaluate0$_importer = oldImporter;
  72847. t1._evaluate0$_stylesheet = oldStylesheet;
  72848. t1._evaluate0$_root = oldRoot;
  72849. t1._evaluate0$_parent = oldParent;
  72850. t1._evaluate0$_endOfImports = oldEndOfImports;
  72851. t1._evaluate0$_outOfOrderImports = oldOutOfOrderImports;
  72852. t1._evaluate0$_extender = oldExtender;
  72853. t1._evaluate0$_styleRule = oldStyleRule;
  72854. t1._evaluate0$_mediaQueries = oldMediaQueries;
  72855. t1._evaluate0$_declarationName = oldDeclarationName;
  72856. t1._evaluate0$_inUnknownAtRule = oldInUnknownAtRule;
  72857. t1._evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  72858. t1._evaluate0$_inKeyframes = oldInKeyframes;
  72859. t1._evaluate0$_configuration = oldConfiguration;
  72860. },
  72861. $signature: 0
  72862. };
  72863. R._EvaluateVisitor__combineCss_closure5.prototype = {
  72864. call$1: function(module) {
  72865. return module.get$transitivelyContainsCss();
  72866. }
  72867. };
  72868. R._EvaluateVisitor__combineCss_closure6.prototype = {
  72869. call$1: function(target) {
  72870. return !this.selectors.contains$1(0, target);
  72871. }
  72872. };
  72873. R._EvaluateVisitor__combineCss_closure7.prototype = {
  72874. call$1: function(module) {
  72875. return module.cloneCss$0();
  72876. }
  72877. };
  72878. R._EvaluateVisitor__extendModules_closure3.prototype = {
  72879. call$1: function(target) {
  72880. return !this.originalSelectors.contains$1(0, target);
  72881. }
  72882. };
  72883. R._EvaluateVisitor__extendModules_closure4.prototype = {
  72884. call$0: function() {
  72885. return H.setRuntimeTypeInfo([], type$.JSArray_Extender_2);
  72886. },
  72887. $signature: 81
  72888. };
  72889. R._EvaluateVisitor__topologicalModules_visitModule1.prototype = {
  72890. call$1: function(module) {
  72891. var t1, t2, t3, _i, upstream;
  72892. for (t1 = module.get$upstream(), t2 = t1.length, t3 = this.seen, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  72893. upstream = t1[_i];
  72894. if (upstream.get$transitivelyContainsCss() && t3.add$1(0, upstream))
  72895. this.call$1(upstream);
  72896. }
  72897. this.sorted.addFirst$1(module);
  72898. }
  72899. };
  72900. R._EvaluateVisitor_visitAtRootRule_closure5.prototype = {
  72901. call$0: function() {
  72902. var t1 = S.SpanScanner$(this.resolved, null);
  72903. return new V.AtRootQueryParser0(t1, this.$this._evaluate0$_logger).parse$0();
  72904. },
  72905. $signature: 48
  72906. };
  72907. R._EvaluateVisitor_visitAtRootRule_closure6.prototype = {
  72908. call$0: function() {
  72909. var t1, t2, t3, _i;
  72910. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  72911. t1[_i].accept$1(t3);
  72912. },
  72913. $signature: 0
  72914. };
  72915. R._EvaluateVisitor_visitAtRootRule_closure7.prototype = {
  72916. call$0: function() {
  72917. var t1, t2, t3, _i;
  72918. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  72919. t1[_i].accept$1(t3);
  72920. },
  72921. "call*": "call$0",
  72922. $requiredArgCount: 0,
  72923. $signature: 0
  72924. };
  72925. R._EvaluateVisitor__scopeForAtRoot_closure11.prototype = {
  72926. call$1: function(callback) {
  72927. var t1 = this.$this,
  72928. oldParent = t1._evaluate0$_parent;
  72929. t1._evaluate0$_parent = this.newParent;
  72930. t1._evaluate0$_environment.scope$1$2$when(callback, this.node.hasDeclarations, type$.void);
  72931. t1._evaluate0$_parent = oldParent;
  72932. }
  72933. };
  72934. R._EvaluateVisitor__scopeForAtRoot_closure12.prototype = {
  72935. call$1: function(callback) {
  72936. var t1 = this.$this,
  72937. oldAtRootExcludingStyleRule = t1._evaluate0$_atRootExcludingStyleRule;
  72938. t1._evaluate0$_atRootExcludingStyleRule = true;
  72939. this.innerScope.call$1(callback);
  72940. t1._evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  72941. }
  72942. };
  72943. R._EvaluateVisitor__scopeForAtRoot_closure13.prototype = {
  72944. call$1: function(callback) {
  72945. return this.$this._evaluate0$_withMediaQueries$2(null, new R._EvaluateVisitor__scopeForAtRoot__closure1(this.innerScope, callback));
  72946. }
  72947. };
  72948. R._EvaluateVisitor__scopeForAtRoot__closure1.prototype = {
  72949. call$0: function() {
  72950. return this.innerScope.call$1(this.callback);
  72951. },
  72952. $signature: 0
  72953. };
  72954. R._EvaluateVisitor__scopeForAtRoot_closure14.prototype = {
  72955. call$1: function(callback) {
  72956. var t1 = this.$this,
  72957. wasInKeyframes = t1._evaluate0$_inKeyframes;
  72958. t1._evaluate0$_inKeyframes = false;
  72959. this.innerScope.call$1(callback);
  72960. t1._evaluate0$_inKeyframes = wasInKeyframes;
  72961. }
  72962. };
  72963. R._EvaluateVisitor__scopeForAtRoot_closure15.prototype = {
  72964. call$1: function($parent) {
  72965. return type$.CssAtRule_2._is($parent);
  72966. }
  72967. };
  72968. R._EvaluateVisitor__scopeForAtRoot_closure16.prototype = {
  72969. call$1: function(callback) {
  72970. var t1 = this.$this,
  72971. wasInUnknownAtRule = t1._evaluate0$_inUnknownAtRule;
  72972. t1._evaluate0$_inUnknownAtRule = false;
  72973. this.innerScope.call$1(callback);
  72974. t1._evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
  72975. }
  72976. };
  72977. R._EvaluateVisitor_visitContentRule_closure1.prototype = {
  72978. call$0: function() {
  72979. var t1, t2, t3, _i;
  72980. for (t1 = this.content.declaration.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  72981. t1[_i].accept$1(t3);
  72982. return null;
  72983. },
  72984. $signature: 0
  72985. };
  72986. R._EvaluateVisitor_visitDeclaration_closure1.prototype = {
  72987. call$0: function() {
  72988. var t1, t2, t3, _i;
  72989. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  72990. t1[_i].accept$1(t3);
  72991. },
  72992. $signature: 0
  72993. };
  72994. R._EvaluateVisitor_visitEachRule_closure5.prototype = {
  72995. call$1: function(value) {
  72996. return this.$this._evaluate0$_environment.setLocalVariable$3(C.JSArray_methods.get$first(this.node.variables), value.withoutSlash$0(), this.nodeWithSpan);
  72997. }
  72998. };
  72999. R._EvaluateVisitor_visitEachRule_closure6.prototype = {
  73000. call$1: function(value) {
  73001. return this.$this._evaluate0$_setMultipleVariables$3(this.node.variables, value, this.nodeWithSpan);
  73002. }
  73003. };
  73004. R._EvaluateVisitor_visitEachRule_closure7.prototype = {
  73005. call$0: function() {
  73006. var _this = this,
  73007. t1 = _this.$this;
  73008. return t1._evaluate0$_handleReturn$2(_this.list.get$asList(), new R._EvaluateVisitor_visitEachRule__closure1(t1, _this.setVariables, _this.node));
  73009. },
  73010. $signature: 14
  73011. };
  73012. R._EvaluateVisitor_visitEachRule__closure1.prototype = {
  73013. call$1: function(element) {
  73014. var t1;
  73015. this.setVariables.call$1(element);
  73016. t1 = this.$this;
  73017. return t1._evaluate0$_handleReturn$2(this.node.children, new R._EvaluateVisitor_visitEachRule___closure1(t1));
  73018. }
  73019. };
  73020. R._EvaluateVisitor_visitEachRule___closure1.prototype = {
  73021. call$1: function(child) {
  73022. return child.accept$1(this.$this);
  73023. }
  73024. };
  73025. R._EvaluateVisitor_visitExtendRule_closure1.prototype = {
  73026. call$0: function() {
  73027. return D.SelectorList_SelectorList$parse0(B.trimAscii0(this.targetText.value, true), false, true, this.$this._evaluate0$_logger);
  73028. },
  73029. $signature: 33
  73030. };
  73031. R._EvaluateVisitor_visitAtRule_closure3.prototype = {
  73032. call$0: function() {
  73033. var t3, _i,
  73034. t1 = this.$this,
  73035. t2 = t1._evaluate0$_styleRule;
  73036. if (!(t2 != null && !t1._evaluate0$_atRootExcludingStyleRule) || t1._evaluate0$_inKeyframes)
  73037. for (t2 = this.node.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
  73038. t2[_i].accept$1(t1);
  73039. else
  73040. t1._evaluate0$_withParent$2$3$scopeWhen(X.ModifiableCssStyleRule$0(t2.selector, t2.span, t2.originalSelector), new R._EvaluateVisitor_visitAtRule__closure1(t1, this.node), false, type$.ModifiableCssStyleRule_2, type$.Null);
  73041. },
  73042. $signature: 0
  73043. };
  73044. R._EvaluateVisitor_visitAtRule__closure1.prototype = {
  73045. call$0: function() {
  73046. var t1, t2, t3, _i;
  73047. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  73048. t1[_i].accept$1(t3);
  73049. },
  73050. $signature: 0
  73051. };
  73052. R._EvaluateVisitor_visitAtRule_closure4.prototype = {
  73053. call$1: function(node) {
  73054. return type$.CssStyleRule_2._is(node);
  73055. }
  73056. };
  73057. R._EvaluateVisitor_visitForRule_closure9.prototype = {
  73058. call$0: function() {
  73059. return this.node.from.accept$1(this.$this).assertNumber$0();
  73060. },
  73061. $signature: 85
  73062. };
  73063. R._EvaluateVisitor_visitForRule_closure10.prototype = {
  73064. call$0: function() {
  73065. return this.node.to.accept$1(this.$this).assertNumber$0();
  73066. },
  73067. $signature: 85
  73068. };
  73069. R._EvaluateVisitor_visitForRule_closure11.prototype = {
  73070. call$0: function() {
  73071. var t1 = this.toNumber,
  73072. t2 = t1.numeratorUnits;
  73073. t1 = t1.denominatorUnits;
  73074. return T.SassNumber$withUnits0(this.fromNumber.valueInUnits$2(t2, t1), t1, t2).assertInt$0();
  73075. },
  73076. $signature: 8
  73077. };
  73078. R._EvaluateVisitor_visitForRule_closure12.prototype = {
  73079. call$0: function() {
  73080. return this.toNumber.assertInt$0();
  73081. },
  73082. $signature: 8
  73083. };
  73084. R._EvaluateVisitor_visitForRule_closure13.prototype = {
  73085. call$0: function() {
  73086. var i, t3, t4, t5, t6, result, _this = this,
  73087. t1 = _this.$this,
  73088. t2 = _this.node,
  73089. nodeWithSpan = t1._evaluate0$_expressionNode$1(t2.from);
  73090. for (i = _this.from, t3 = _this._box_0, t4 = _this.direction, t5 = t2.children, t2 = t2.variable; i !== t3.to; i += t4) {
  73091. t6 = t1._evaluate0$_environment;
  73092. t6.setLocalVariable$3(t2, new T.SassNumber0(i, C.List_empty, C.List_empty, null), nodeWithSpan);
  73093. result = t1._evaluate0$_handleReturn$2(t5, new R._EvaluateVisitor_visitForRule__closure1(t1));
  73094. if (result != null)
  73095. return result;
  73096. }
  73097. return null;
  73098. },
  73099. $signature: 14
  73100. };
  73101. R._EvaluateVisitor_visitForRule__closure1.prototype = {
  73102. call$1: function(child) {
  73103. return child.accept$1(this.$this);
  73104. }
  73105. };
  73106. R._EvaluateVisitor_visitForwardRule_closure3.prototype = {
  73107. call$1: function(module) {
  73108. this.$this._evaluate0$_environment.forwardModule$2(module, this.node);
  73109. }
  73110. };
  73111. R._EvaluateVisitor_visitForwardRule_closure4.prototype = {
  73112. call$1: function(module) {
  73113. this.$this._evaluate0$_environment.forwardModule$2(module, this.node);
  73114. }
  73115. };
  73116. R._EvaluateVisitor__assertConfigurationIsEmpty_closure1.prototype = {
  73117. call$2: function($name, value) {
  73118. var t1 = this.only;
  73119. if (t1 != null && !t1.contains$1(0, $name))
  73120. return;
  73121. t1 = this.nameInError ? "$" + H.S($name) + " was not declared with !default in the @used module." : "This variable was not declared with !default in the @used module.";
  73122. throw H.wrapException(this.$this._evaluate0$_exception$2(t1, value.configurationSpan));
  73123. }
  73124. };
  73125. R._EvaluateVisitor_visitIfRule_closure1.prototype = {
  73126. call$0: function() {
  73127. var t1 = this.$this;
  73128. return t1._evaluate0$_handleReturn$2(this._box_0.clause.children, new R._EvaluateVisitor_visitIfRule__closure1(t1));
  73129. },
  73130. $signature: 14
  73131. };
  73132. R._EvaluateVisitor_visitIfRule__closure1.prototype = {
  73133. call$1: function(child) {
  73134. return child.accept$1(this.$this);
  73135. }
  73136. };
  73137. R._EvaluateVisitor__visitDynamicImport_closure1.prototype = {
  73138. call$0: function() {
  73139. var previousLoad, oldImporter, oldStylesheet, t4, t5, t6, t7, t8, t9, t10, t11, environment, module, visitor, _null = null,
  73140. _s34_ = "This file is already being loaded.",
  73141. _box_0 = {},
  73142. t1 = this.$this,
  73143. t2 = this.$import,
  73144. result = t1._evaluate0$_loadStylesheet$3$forImport(t2.url, t2.span, true),
  73145. importer = result.item1,
  73146. stylesheet = result.item2,
  73147. url = stylesheet.span.file.url,
  73148. t3 = t1._evaluate0$_activeModules;
  73149. if (t3.containsKey$1(url)) {
  73150. previousLoad = t3.$index(0, url);
  73151. throw H.wrapException(previousLoad == null ? t1._evaluate0$_exception$1(_s34_) : t1._evaluate0$_multiSpanException$3(_s34_, "new load", P.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(), "original load"], type$.FileSpan, type$.String)));
  73152. }
  73153. t3.$indexSet(0, url, t2);
  73154. t2 = new P.UnmodifiableListView(stylesheet._stylesheet1$_uses, type$.UnmodifiableListView_UseRule_2);
  73155. if (t2.get$length(t2) === 0) {
  73156. t2 = new P.UnmodifiableListView(stylesheet._stylesheet1$_forwards, type$.UnmodifiableListView_ForwardRule_2);
  73157. t2 = t2.get$length(t2) === 0;
  73158. } else
  73159. t2 = false;
  73160. if (t2) {
  73161. oldImporter = t1._evaluate0$_importer;
  73162. oldStylesheet = t1._evaluate0$_stylesheet;
  73163. t1._evaluate0$_importer = importer;
  73164. t1._evaluate0$_stylesheet = stylesheet;
  73165. t1.visitStylesheet$1(stylesheet);
  73166. t1._evaluate0$_importer = oldImporter;
  73167. t1._evaluate0$_stylesheet = oldStylesheet;
  73168. t3.remove$1(0, url);
  73169. return;
  73170. }
  73171. _box_0.children = null;
  73172. t2 = t1._evaluate0$_environment;
  73173. t4 = type$.String;
  73174. t5 = type$.Module_Callable_2;
  73175. t6 = type$.AstNode_2;
  73176. t7 = H.setRuntimeTypeInfo([], type$.JSArray_Module_Callable_2);
  73177. t8 = t2._environment0$_variables;
  73178. t8 = H.setRuntimeTypeInfo(t8.slice(0), H._arrayInstanceType(t8));
  73179. t9 = t2._environment0$_variableNodes;
  73180. if (t9 == null)
  73181. t9 = _null;
  73182. else
  73183. t9 = H.setRuntimeTypeInfo(t9.slice(0), H._arrayInstanceType(t9));
  73184. t10 = t2._environment0$_functions;
  73185. t10 = H.setRuntimeTypeInfo(t10.slice(0), H._arrayInstanceType(t10));
  73186. t11 = t2._environment0$_mixins;
  73187. t11 = H.setRuntimeTypeInfo(t11.slice(0), H._arrayInstanceType(t11));
  73188. environment = O.Environment$_0(P.LinkedHashMap_LinkedHashMap$_empty(t4, t5), P.LinkedHashMap_LinkedHashMap$_empty(t4, t6), P.LinkedHashSet_LinkedHashSet$_empty(t5), P.LinkedHashMap_LinkedHashMap$_empty(t5, t6), _null, _null, _null, t7, t8, t9, t10, t11, t2._environment0$_content);
  73189. t1._evaluate0$_withEnvironment$2(environment, new R._EvaluateVisitor__visitDynamicImport__closure1(_box_0, t1, importer, stylesheet, environment));
  73190. module = O._EnvironmentModule__EnvironmentModule1(environment, new V.CssStylesheet0(new P.UnmodifiableListView(C.List_empty12, type$.UnmodifiableListView_CssNode_2), Y.SourceFile$decoded(C.List_empty1, "<dummy module>").span$1(0)), C.C_EmptyExtender0, environment._environment0$_forwardedModules);
  73191. t1._evaluate0$_environment.importForwards$1(module);
  73192. if (module.transitivelyContainsCss)
  73193. t1._evaluate0$_combineCss$2$clone(module, module.transitivelyContainsExtensions).accept$1(t1);
  73194. visitor = new R._ImportedCssVisitor1(t1);
  73195. for (t1 = J.get$iterator$ax(_box_0.children); t1.moveNext$0();)
  73196. t1.get$current(t1).accept$1(visitor);
  73197. t3.remove$1(0, url);
  73198. },
  73199. $signature: 0
  73200. };
  73201. R._EvaluateVisitor__visitDynamicImport__closure1.prototype = {
  73202. call$0: function() {
  73203. var t2, t3, _this = this,
  73204. t1 = _this.$this,
  73205. oldImporter = t1._evaluate0$_importer,
  73206. oldStylesheet = t1._evaluate0$_stylesheet,
  73207. oldRoot = t1._evaluate0$_root,
  73208. oldParent = t1._evaluate0$_parent,
  73209. oldEndOfImports = t1._evaluate0$_endOfImports,
  73210. oldOutOfOrderImports = t1._evaluate0$_outOfOrderImports,
  73211. oldConfiguration = t1._evaluate0$_configuration;
  73212. t1._evaluate0$_importer = _this.importer;
  73213. t2 = t1._evaluate0$_stylesheet = _this.stylesheet;
  73214. t3 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
  73215. t1._evaluate0$_parent = t1._evaluate0$_root = new V.ModifiableCssStylesheet0(t2.span, new P.UnmodifiableListView(t3, type$.UnmodifiableListView_ModifiableCssNode_2), t3);
  73216. t1._evaluate0$_endOfImports = 0;
  73217. t1._evaluate0$_outOfOrderImports = null;
  73218. t3 = new P.UnmodifiableListView(t2._stylesheet1$_forwards, type$.UnmodifiableListView_ForwardRule_2);
  73219. if (!t3.get$isEmpty(t3))
  73220. t1._evaluate0$_configuration = _this.environment.toImplicitConfiguration$0();
  73221. t1.visitStylesheet$1(t2);
  73222. _this._box_0.children = t1._evaluate0$_addOutOfOrderImports$0();
  73223. t1._evaluate0$_importer = oldImporter;
  73224. t1._evaluate0$_stylesheet = oldStylesheet;
  73225. t1._evaluate0$_root = oldRoot;
  73226. t1._evaluate0$_parent = oldParent;
  73227. t1._evaluate0$_endOfImports = oldEndOfImports;
  73228. t1._evaluate0$_outOfOrderImports = oldOutOfOrderImports;
  73229. t1._evaluate0$_configuration = oldConfiguration;
  73230. },
  73231. $signature: 0
  73232. };
  73233. R._EvaluateVisitor_visitIncludeRule_closure5.prototype = {
  73234. call$0: function() {
  73235. var t1 = this.node;
  73236. return this.$this._evaluate0$_environment.getMixin$2$namespace(t1.name, t1.namespace);
  73237. },
  73238. $signature: 50
  73239. };
  73240. R._EvaluateVisitor_visitIncludeRule_closure6.prototype = {
  73241. call$0: function() {
  73242. return this.node.get$spanWithoutContent();
  73243. },
  73244. "call*": "call$0",
  73245. $requiredArgCount: 0,
  73246. $signature: 24
  73247. };
  73248. R._EvaluateVisitor_visitIncludeRule_closure7.prototype = {
  73249. call$0: function() {
  73250. var _this = this,
  73251. t1 = _this.$this,
  73252. t2 = t1._evaluate0$_environment,
  73253. oldContent = t2._environment0$_content;
  73254. t2._environment0$_content = _this.contentCallable;
  73255. new R._EvaluateVisitor_visitIncludeRule__closure1(t1, _this.mixin, _this.nodeWithSpan).call$0();
  73256. t2._environment0$_content = oldContent;
  73257. return null;
  73258. },
  73259. $signature: 0
  73260. };
  73261. R._EvaluateVisitor_visitIncludeRule__closure1.prototype = {
  73262. call$0: function() {
  73263. var t1 = this.$this,
  73264. t2 = t1._evaluate0$_environment,
  73265. oldInMixin = t2._environment0$_inMixin;
  73266. t2._environment0$_inMixin = true;
  73267. new R._EvaluateVisitor_visitIncludeRule___closure1(t1, this.mixin, this.nodeWithSpan).call$0();
  73268. t2._environment0$_inMixin = oldInMixin;
  73269. return null;
  73270. },
  73271. $signature: 0
  73272. };
  73273. R._EvaluateVisitor_visitIncludeRule___closure1.prototype = {
  73274. call$0: function() {
  73275. var t1, t2, t3, t4, _i;
  73276. for (t1 = this.mixin.declaration.children, t2 = t1.length, t3 = this.$this, t4 = this.nodeWithSpan, _i = 0; _i < t2; ++_i)
  73277. t3._evaluate0$_addErrorSpan$2(t4, new R._EvaluateVisitor_visitIncludeRule____closure1(t3, t1[_i]));
  73278. },
  73279. $signature: 0
  73280. };
  73281. R._EvaluateVisitor_visitIncludeRule____closure1.prototype = {
  73282. call$0: function() {
  73283. return this.statement.accept$1(this.$this);
  73284. },
  73285. $signature: 14
  73286. };
  73287. R._EvaluateVisitor_visitMediaRule_closure3.prototype = {
  73288. call$0: function() {
  73289. var _this = this,
  73290. t1 = _this.$this,
  73291. t2 = _this.mergedQueries;
  73292. if (t2 == null)
  73293. t2 = _this.queries;
  73294. t1._evaluate0$_withMediaQueries$2(t2, new R._EvaluateVisitor_visitMediaRule__closure1(t1, _this.node));
  73295. },
  73296. $signature: 0
  73297. };
  73298. R._EvaluateVisitor_visitMediaRule__closure1.prototype = {
  73299. call$0: function() {
  73300. var t3, _i,
  73301. t1 = this.$this,
  73302. t2 = t1._evaluate0$_styleRule;
  73303. if (!(t2 != null && !t1._evaluate0$_atRootExcludingStyleRule))
  73304. for (t2 = this.node.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
  73305. t2[_i].accept$1(t1);
  73306. else
  73307. t1._evaluate0$_withParent$2$3$scopeWhen(X.ModifiableCssStyleRule$0(t2.selector, t2.span, t2.originalSelector), new R._EvaluateVisitor_visitMediaRule___closure1(t1, this.node), false, type$.ModifiableCssStyleRule_2, type$.Null);
  73308. },
  73309. $signature: 0
  73310. };
  73311. R._EvaluateVisitor_visitMediaRule___closure1.prototype = {
  73312. call$0: function() {
  73313. var t1, t2, t3, _i;
  73314. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  73315. t1[_i].accept$1(t3);
  73316. },
  73317. $signature: 0
  73318. };
  73319. R._EvaluateVisitor_visitMediaRule_closure4.prototype = {
  73320. call$1: function(node) {
  73321. var t1;
  73322. if (!type$.CssStyleRule_2._is(node))
  73323. t1 = this.mergedQueries != null && type$.CssMediaRule_2._is(node);
  73324. else
  73325. t1 = true;
  73326. return t1;
  73327. }
  73328. };
  73329. R._EvaluateVisitor__visitMediaQueries_closure1.prototype = {
  73330. call$0: function() {
  73331. var t1 = S.SpanScanner$(this.resolved, null);
  73332. return new F.MediaQueryParser0(t1, this.$this._evaluate0$_logger).parse$0();
  73333. },
  73334. $signature: 55
  73335. };
  73336. R._EvaluateVisitor_visitStyleRule_closure13.prototype = {
  73337. call$0: function() {
  73338. var t1 = S.SpanScanner$(this.selectorText.value, null);
  73339. return new E.KeyframeSelectorParser0(t1, this.$this._evaluate0$_logger).parse$0();
  73340. },
  73341. $signature: 32
  73342. };
  73343. R._EvaluateVisitor_visitStyleRule_closure14.prototype = {
  73344. call$0: function() {
  73345. var t1, t2, t3, _i;
  73346. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  73347. t1[_i].accept$1(t3);
  73348. },
  73349. $signature: 0
  73350. };
  73351. R._EvaluateVisitor_visitStyleRule_closure15.prototype = {
  73352. call$1: function(node) {
  73353. return type$.CssStyleRule_2._is(node);
  73354. }
  73355. };
  73356. R._EvaluateVisitor_visitStyleRule_closure16.prototype = {
  73357. call$0: function() {
  73358. var t1 = this.$this,
  73359. t2 = !t1._evaluate0$_stylesheet.plainCss;
  73360. return D.SelectorList_SelectorList$parse0(this.selectorText.value, t2, t2, t1._evaluate0$_logger);
  73361. },
  73362. $signature: 33
  73363. };
  73364. R._EvaluateVisitor_visitStyleRule_closure17.prototype = {
  73365. call$0: function() {
  73366. var t1 = this._box_0.parsedSelector,
  73367. t2 = this.$this,
  73368. t3 = t2._evaluate0$_styleRule;
  73369. t3 = t3 == null ? null : t3.originalSelector;
  73370. return t1.resolveParentSelectors$2$implicitParent(t3, !t2._evaluate0$_atRootExcludingStyleRule);
  73371. },
  73372. $signature: 33
  73373. };
  73374. R._EvaluateVisitor_visitStyleRule_closure18.prototype = {
  73375. call$0: function() {
  73376. var t1 = this.$this;
  73377. t1._evaluate0$_withStyleRule$2(this.rule, new R._EvaluateVisitor_visitStyleRule__closure1(t1, this.node));
  73378. },
  73379. $signature: 0
  73380. };
  73381. R._EvaluateVisitor_visitStyleRule__closure1.prototype = {
  73382. call$0: function() {
  73383. var t1, t2, t3, _i;
  73384. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  73385. t1[_i].accept$1(t3);
  73386. },
  73387. $signature: 0
  73388. };
  73389. R._EvaluateVisitor_visitStyleRule_closure19.prototype = {
  73390. call$1: function(node) {
  73391. return type$.CssStyleRule_2._is(node);
  73392. }
  73393. };
  73394. R._EvaluateVisitor_visitSupportsRule_closure3.prototype = {
  73395. call$0: function() {
  73396. var t3, _i,
  73397. t1 = this.$this,
  73398. t2 = t1._evaluate0$_styleRule;
  73399. if (!(t2 != null && !t1._evaluate0$_atRootExcludingStyleRule))
  73400. for (t2 = this.node.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
  73401. t2[_i].accept$1(t1);
  73402. else
  73403. t1._evaluate0$_withParent$2$2(X.ModifiableCssStyleRule$0(t2.selector, t2.span, t2.originalSelector), new R._EvaluateVisitor_visitSupportsRule__closure1(t1, this.node), type$.ModifiableCssStyleRule_2, type$.Null);
  73404. },
  73405. $signature: 0
  73406. };
  73407. R._EvaluateVisitor_visitSupportsRule__closure1.prototype = {
  73408. call$0: function() {
  73409. var t1, t2, t3, _i;
  73410. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  73411. t1[_i].accept$1(t3);
  73412. },
  73413. $signature: 0
  73414. };
  73415. R._EvaluateVisitor_visitSupportsRule_closure4.prototype = {
  73416. call$1: function(node) {
  73417. return type$.CssStyleRule_2._is(node);
  73418. }
  73419. };
  73420. R._EvaluateVisitor_visitVariableDeclaration_closure5.prototype = {
  73421. call$0: function() {
  73422. var t1 = this.override;
  73423. this.$this._evaluate0$_environment.setVariable$4$global(this.node.name, t1.value, t1.assignmentNode, true);
  73424. },
  73425. $signature: 0
  73426. };
  73427. R._EvaluateVisitor_visitVariableDeclaration_closure6.prototype = {
  73428. call$0: function() {
  73429. var t1 = this.node;
  73430. return this.$this._evaluate0$_environment.getVariable$2$namespace(t1.name, t1.namespace);
  73431. },
  73432. $signature: 14
  73433. };
  73434. R._EvaluateVisitor_visitVariableDeclaration_closure7.prototype = {
  73435. call$0: function() {
  73436. var t1 = this.$this,
  73437. t2 = this.node;
  73438. t1._evaluate0$_environment.setVariable$5$global$namespace(t2.name, this.value, t1._evaluate0$_expressionNode$1(t2.expression), t2.isGlobal, t2.namespace);
  73439. },
  73440. $signature: 0
  73441. };
  73442. R._EvaluateVisitor_visitUseRule_closure1.prototype = {
  73443. call$1: function(module) {
  73444. var t1 = this.node;
  73445. this.$this._evaluate0$_environment.addModule$3$namespace(module, t1, t1.namespace);
  73446. }
  73447. };
  73448. R._EvaluateVisitor_visitWarnRule_closure1.prototype = {
  73449. call$0: function() {
  73450. return this.node.expression.accept$1(this.$this);
  73451. },
  73452. $signature: 14
  73453. };
  73454. R._EvaluateVisitor_visitWhileRule_closure1.prototype = {
  73455. call$0: function() {
  73456. var t1, t2, t3, result;
  73457. for (t1 = this.node, t2 = t1.condition, t3 = this.$this, t1 = t1.children; t2.accept$1(t3).get$isTruthy();) {
  73458. result = t3._evaluate0$_handleReturn$2(t1, new R._EvaluateVisitor_visitWhileRule__closure1(t3));
  73459. if (result != null)
  73460. return result;
  73461. }
  73462. return null;
  73463. },
  73464. $signature: 14
  73465. };
  73466. R._EvaluateVisitor_visitWhileRule__closure1.prototype = {
  73467. call$1: function(child) {
  73468. return child.accept$1(this.$this);
  73469. }
  73470. };
  73471. R._EvaluateVisitor_visitBinaryOperationExpression_closure1.prototype = {
  73472. call$0: function() {
  73473. var right, result,
  73474. t1 = this.node,
  73475. t2 = this.$this,
  73476. left = t1.left.accept$1(t2);
  73477. switch (t1.operator) {
  73478. case C.BinaryOperator_kjl0:
  73479. right = t1.right.accept$1(t2);
  73480. left.toString;
  73481. t1 = N.serializeValue(left, false, true) + "=";
  73482. right.toString;
  73483. return new D.SassString0(t1 + N.serializeValue(right, false, true), false);
  73484. case C.BinaryOperator_or_or_10:
  73485. return left.get$isTruthy() ? left : t1.right.accept$1(t2);
  73486. case C.BinaryOperator_and_and_20:
  73487. return left.get$isTruthy() ? t1.right.accept$1(t2) : left;
  73488. case C.BinaryOperator_YlX0:
  73489. return J.$eq$(left, t1.right.accept$1(t2)) ? C.SassBoolean_true : C.SassBoolean_false;
  73490. case C.BinaryOperator_i5H0:
  73491. return !J.$eq$(left, t1.right.accept$1(t2)) ? C.SassBoolean_true : C.SassBoolean_false;
  73492. case C.BinaryOperator_AcR2:
  73493. return left.greaterThan$1(t1.right.accept$1(t2));
  73494. case C.BinaryOperator_1da0:
  73495. return left.greaterThanOrEquals$1(t1.right.accept$1(t2));
  73496. case C.BinaryOperator_8qt0:
  73497. return left.lessThan$1(t1.right.accept$1(t2));
  73498. case C.BinaryOperator_33h0:
  73499. return left.lessThanOrEquals$1(t1.right.accept$1(t2));
  73500. case C.BinaryOperator_AcR1:
  73501. return left.plus$1(t1.right.accept$1(t2));
  73502. case C.BinaryOperator_iyO0:
  73503. return left.minus$1(t1.right.accept$1(t2));
  73504. case C.BinaryOperator_O1M0:
  73505. return left.times$1(t1.right.accept$1(t2));
  73506. case C.BinaryOperator_RTB0:
  73507. right = t1.right.accept$1(t2);
  73508. result = left.dividedBy$1(right);
  73509. if (t1.allowsSlash && left instanceof T.SassNumber0 && right instanceof T.SassNumber0)
  73510. return type$.SassNumber_2._as(result).withSlash$2(left, right);
  73511. else
  73512. return result;
  73513. case C.BinaryOperator_2ad0:
  73514. return left.modulo$1(t1.right.accept$1(t2));
  73515. default:
  73516. return null;
  73517. }
  73518. },
  73519. $signature: 14
  73520. };
  73521. R._EvaluateVisitor_visitVariableExpression_closure1.prototype = {
  73522. call$0: function() {
  73523. var t1 = this.node;
  73524. return this.$this._evaluate0$_environment.getVariable$2$namespace(t1.name, t1.namespace);
  73525. },
  73526. $signature: 14
  73527. };
  73528. R._EvaluateVisitor_visitListExpression_closure1.prototype = {
  73529. call$1: function(expression) {
  73530. return expression.accept$1(this.$this);
  73531. }
  73532. };
  73533. R._EvaluateVisitor_visitFunctionExpression_closure3.prototype = {
  73534. call$0: function() {
  73535. var t1 = this.node.namespace,
  73536. t2 = this.plainName;
  73537. if (t1 == null)
  73538. t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
  73539. return this.$this._evaluate0$_getFunction$2$namespace(t2, t1);
  73540. },
  73541. $signature: 50
  73542. };
  73543. R._EvaluateVisitor_visitFunctionExpression_closure4.prototype = {
  73544. call$0: function() {
  73545. var t1 = this.node;
  73546. return this.$this._evaluate0$_runFunctionCallable$3(t1.$arguments, this._box_0.$function, t1);
  73547. },
  73548. $signature: 14
  73549. };
  73550. R._EvaluateVisitor__runUserDefinedCallable_closure1.prototype = {
  73551. call$0: function() {
  73552. var _this = this,
  73553. t1 = _this.$this,
  73554. t2 = _this.callable;
  73555. return t1._evaluate0$_withEnvironment$2(t2.environment.closure$0(), new R._EvaluateVisitor__runUserDefinedCallable__closure1(t1, _this.evaluated, t2, _this.nodeWithSpan, _this.run));
  73556. },
  73557. $signature: 14
  73558. };
  73559. R._EvaluateVisitor__runUserDefinedCallable__closure1.prototype = {
  73560. call$0: function() {
  73561. var _this = this,
  73562. t1 = _this.$this;
  73563. return t1._evaluate0$_environment.scope$1$1(new R._EvaluateVisitor__runUserDefinedCallable___closure1(t1, _this.evaluated, _this.callable, _this.nodeWithSpan, _this.run), type$.Value_2);
  73564. },
  73565. $signature: 14
  73566. };
  73567. R._EvaluateVisitor__runUserDefinedCallable___closure1.prototype = {
  73568. call$0: function() {
  73569. var declaredArguments, minLength, t8, t9, i, t10, t11, t12, argument, value, t13, rest, argumentList, result, argumentWord, argumentNames, _this = this, _null = null,
  73570. t1 = _this.$this,
  73571. t2 = _this.evaluated,
  73572. t3 = t2.positional,
  73573. t4 = t3.length,
  73574. t5 = t2.named,
  73575. t6 = _this.callable.declaration.$arguments,
  73576. t7 = _this.nodeWithSpan;
  73577. t1._evaluate0$_verifyArguments$4(t4, t5, t6, t7);
  73578. declaredArguments = t6.$arguments;
  73579. t4 = declaredArguments.length;
  73580. minLength = Math.min(t3.length, t4);
  73581. for (t8 = t1._evaluate0$_sourceMap, t9 = t2.positionalNodes, i = 0; i < minLength; ++i) {
  73582. t10 = t1._evaluate0$_environment;
  73583. t11 = declaredArguments[i].name;
  73584. t12 = t3[i].withoutSlash$0();
  73585. t10.setLocalVariable$3(t11, t12, t8 ? t9[i] : _null);
  73586. }
  73587. for (i = t3.length, t9 = t2.namedNodes; i < t4; ++i) {
  73588. argument = declaredArguments[i];
  73589. t10 = argument.name;
  73590. value = t5.remove$1(0, t10);
  73591. if (value == null)
  73592. value = argument.defaultValue.accept$1(t1);
  73593. t11 = t1._evaluate0$_environment;
  73594. t12 = value.withoutSlash$0();
  73595. if (t8) {
  73596. t13 = t9.$index(0, t10);
  73597. if (t13 == null)
  73598. t13 = t1._evaluate0$_expressionNode$1(argument.defaultValue);
  73599. } else
  73600. t13 = _null;
  73601. t11.setLocalVariable$3(t10, t12, t13);
  73602. }
  73603. t8 = t6.restArgument;
  73604. if (t8 != null) {
  73605. rest = t3.length > t4 ? C.JSArray_methods.sublist$1(t3, t4) : C.List_empty16;
  73606. t2 = t2.separator;
  73607. if (t2 === C.ListSeparator_undecided0)
  73608. t2 = C.ListSeparator_comma0;
  73609. t3 = type$.Value_2;
  73610. argumentList = new D.SassArgumentList0(H.ConstantMap_ConstantMap$from(t5, type$.String, t3), P.List_List$unmodifiable(rest, t3), t2, false);
  73611. argumentList.SassList$3$brackets0(rest, t2, false);
  73612. t1._evaluate0$_environment.setLocalVariable$3(t8, argumentList, t7);
  73613. } else
  73614. argumentList = _null;
  73615. result = _this.run.call$0();
  73616. if (argumentList == null)
  73617. return result;
  73618. if (t5.get$isEmpty(t5))
  73619. return result;
  73620. if (argumentList._argument_list$_wereKeywordsAccessed)
  73621. return result;
  73622. t2 = t5.get$keys();
  73623. argumentWord = B.pluralize0("argument", t2.get$length(t2), _null);
  73624. t5 = t5.get$keys();
  73625. argumentNames = B.toSentence0(H.MappedIterable_MappedIterable(t5, new R._EvaluateVisitor__runUserDefinedCallable____closure1(), H._instanceType(t5)._eval$1("Iterable.E"), type$.Object), "or");
  73626. throw H.wrapException(E.MultiSpanSassRuntimeException$0("No " + argumentWord + " named " + H.S(argumentNames) + ".", t7.get$span(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([t6.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), t1._evaluate0$_stackTrace$1(t7.get$span())));
  73627. },
  73628. $signature: 14
  73629. };
  73630. R._EvaluateVisitor__runUserDefinedCallable____closure1.prototype = {
  73631. call$1: function($name) {
  73632. return "$" + H.S($name);
  73633. }
  73634. };
  73635. R._EvaluateVisitor__runFunctionCallable_closure1.prototype = {
  73636. call$0: function() {
  73637. var t1, t2, t3, t4, _i, $returnValue;
  73638. for (t1 = this.callable.declaration, t2 = t1.children, t3 = t2.length, t4 = this.$this, _i = 0; _i < t3; ++_i) {
  73639. $returnValue = t2[_i].accept$1(t4);
  73640. if ($returnValue instanceof F.Value0)
  73641. return $returnValue;
  73642. }
  73643. throw H.wrapException(t4._evaluate0$_exception$2("Function finished without @return.", t1.span));
  73644. },
  73645. $signature: 14
  73646. };
  73647. R._EvaluateVisitor__runBuiltInCallable_closure3.prototype = {
  73648. call$0: function() {
  73649. return this.overload.verify$2(this.evaluated.positional.length, this.namedSet);
  73650. },
  73651. $signature: 1
  73652. };
  73653. R._EvaluateVisitor__runBuiltInCallable_closure4.prototype = {
  73654. call$1: function($name) {
  73655. return "$" + H.S($name);
  73656. }
  73657. };
  73658. R._EvaluateVisitor__evaluateArguments_closure5.prototype = {
  73659. call$2: function(_, expression) {
  73660. return expression.accept$1(this.$this);
  73661. }
  73662. };
  73663. R._EvaluateVisitor__evaluateArguments_closure6.prototype = {
  73664. call$2: function(_, expression) {
  73665. return this.$this._evaluate0$_expressionNode$1(expression);
  73666. }
  73667. };
  73668. R._EvaluateVisitor__evaluateArguments_closure7.prototype = {
  73669. call$2: function(key, value) {
  73670. var t1;
  73671. this.named.$indexSet(0, key, value);
  73672. t1 = this.namedNodes;
  73673. if (t1 != null)
  73674. t1.$indexSet(0, key, this.restNodeForSpan);
  73675. }
  73676. };
  73677. R._EvaluateVisitor__evaluateMacroArguments_closure7.prototype = {
  73678. call$1: function(value) {
  73679. return new F.ValueExpression0(value, null);
  73680. }
  73681. };
  73682. R._EvaluateVisitor__evaluateMacroArguments_closure8.prototype = {
  73683. call$1: function(value) {
  73684. return new F.ValueExpression0(value, null);
  73685. }
  73686. };
  73687. R._EvaluateVisitor__evaluateMacroArguments_closure9.prototype = {
  73688. call$2: function(key, value) {
  73689. this.named.$indexSet(0, key, new F.ValueExpression0(value, null));
  73690. }
  73691. };
  73692. R._EvaluateVisitor__evaluateMacroArguments_closure10.prototype = {
  73693. call$1: function(value) {
  73694. return new F.ValueExpression0(value, null);
  73695. }
  73696. };
  73697. R._EvaluateVisitor__addRestMap_closure3.prototype = {
  73698. call$1: function(value) {
  73699. return this.T._as(value);
  73700. }
  73701. };
  73702. R._EvaluateVisitor__addRestMap_closure4.prototype = {
  73703. call$2: function(key, value) {
  73704. var _this = this;
  73705. if (key instanceof D.SassString0)
  73706. _this.values.$indexSet(0, key.text, _this._box_0.convert.call$1(value));
  73707. else
  73708. throw H.wrapException(_this.$this._evaluate0$_exception$2("Variable keyword argument map must have string keys.\n" + H.S(key) + " is not a string in " + _this.map.toString$0(0) + ".", _this.nodeWithSpan.get$span()));
  73709. }
  73710. };
  73711. R._EvaluateVisitor__verifyArguments_closure1.prototype = {
  73712. call$0: function() {
  73713. return this.$arguments.verify$2(this.positional, new M.MapKeySet(this.named, type$.MapKeySet_String));
  73714. },
  73715. $signature: 1
  73716. };
  73717. R._EvaluateVisitor_visitStringExpression_closure1.prototype = {
  73718. call$1: function(value) {
  73719. var t1, result;
  73720. if (typeof value == "string")
  73721. return value;
  73722. type$.Expression_2._as(value);
  73723. t1 = this.$this;
  73724. result = value.accept$1(t1);
  73725. return result instanceof D.SassString0 ? result.text : t1._evaluate0$_serialize$3$quote(result, value, false);
  73726. },
  73727. $signature: 27
  73728. };
  73729. R._EvaluateVisitor_visitCssAtRule_closure3.prototype = {
  73730. call$0: function() {
  73731. var t1, t2;
  73732. for (t1 = this.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = this.$this; t1.moveNext$0();)
  73733. t1.__internal$_current.accept$1(t2);
  73734. },
  73735. $signature: 0
  73736. };
  73737. R._EvaluateVisitor_visitCssAtRule_closure4.prototype = {
  73738. call$1: function(node) {
  73739. return type$.CssStyleRule_2._is(node);
  73740. }
  73741. };
  73742. R._EvaluateVisitor_visitCssKeyframeBlock_closure3.prototype = {
  73743. call$0: function() {
  73744. var t1, t2;
  73745. for (t1 = this.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = this.$this; t1.moveNext$0();)
  73746. t1.__internal$_current.accept$1(t2);
  73747. },
  73748. $signature: 0
  73749. };
  73750. R._EvaluateVisitor_visitCssKeyframeBlock_closure4.prototype = {
  73751. call$1: function(node) {
  73752. return type$.CssStyleRule_2._is(node);
  73753. }
  73754. };
  73755. R._EvaluateVisitor_visitCssMediaRule_closure3.prototype = {
  73756. call$0: function() {
  73757. var _this = this,
  73758. t1 = _this.$this,
  73759. t2 = _this.mergedQueries;
  73760. if (t2 == null)
  73761. t2 = _this.node.queries;
  73762. t1._evaluate0$_withMediaQueries$2(t2, new R._EvaluateVisitor_visitCssMediaRule__closure1(t1, _this.node));
  73763. },
  73764. $signature: 0
  73765. };
  73766. R._EvaluateVisitor_visitCssMediaRule__closure1.prototype = {
  73767. call$0: function() {
  73768. var t1 = this.$this,
  73769. t2 = t1._evaluate0$_styleRule;
  73770. if (!(t2 != null && !t1._evaluate0$_atRootExcludingStyleRule))
  73771. for (t2 = this.node.children, t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
  73772. t2.__internal$_current.accept$1(t1);
  73773. else
  73774. t1._evaluate0$_withParent$2$3$scopeWhen(X.ModifiableCssStyleRule$0(t2.selector, t2.span, t2.originalSelector), new R._EvaluateVisitor_visitCssMediaRule___closure1(t1, this.node), false, type$.ModifiableCssStyleRule_2, type$.Null);
  73775. },
  73776. $signature: 0
  73777. };
  73778. R._EvaluateVisitor_visitCssMediaRule___closure1.prototype = {
  73779. call$0: function() {
  73780. var t1, t2;
  73781. for (t1 = this.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = this.$this; t1.moveNext$0();)
  73782. t1.__internal$_current.accept$1(t2);
  73783. },
  73784. $signature: 0
  73785. };
  73786. R._EvaluateVisitor_visitCssMediaRule_closure4.prototype = {
  73787. call$1: function(node) {
  73788. var t1;
  73789. if (!type$.CssStyleRule_2._is(node))
  73790. t1 = this.mergedQueries != null && type$.CssMediaRule_2._is(node);
  73791. else
  73792. t1 = true;
  73793. return t1;
  73794. }
  73795. };
  73796. R._EvaluateVisitor_visitCssStyleRule_closure3.prototype = {
  73797. call$0: function() {
  73798. var t1 = this.$this;
  73799. t1._evaluate0$_withStyleRule$2(this.rule, new R._EvaluateVisitor_visitCssStyleRule__closure1(t1, this.node));
  73800. },
  73801. $signature: 0
  73802. };
  73803. R._EvaluateVisitor_visitCssStyleRule__closure1.prototype = {
  73804. call$0: function() {
  73805. var t1, t2;
  73806. for (t1 = this.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = this.$this; t1.moveNext$0();)
  73807. t1.__internal$_current.accept$1(t2);
  73808. },
  73809. $signature: 0
  73810. };
  73811. R._EvaluateVisitor_visitCssStyleRule_closure4.prototype = {
  73812. call$1: function(node) {
  73813. return type$.CssStyleRule_2._is(node);
  73814. }
  73815. };
  73816. R._EvaluateVisitor_visitCssSupportsRule_closure3.prototype = {
  73817. call$0: function() {
  73818. var t1 = this.$this,
  73819. t2 = t1._evaluate0$_styleRule;
  73820. if (!(t2 != null && !t1._evaluate0$_atRootExcludingStyleRule))
  73821. for (t2 = this.node.children, t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
  73822. t2.__internal$_current.accept$1(t1);
  73823. else
  73824. t1._evaluate0$_withParent$2$2(X.ModifiableCssStyleRule$0(t2.selector, t2.span, t2.originalSelector), new R._EvaluateVisitor_visitCssSupportsRule__closure1(t1, this.node), type$.ModifiableCssStyleRule_2, type$.Null);
  73825. },
  73826. $signature: 0
  73827. };
  73828. R._EvaluateVisitor_visitCssSupportsRule__closure1.prototype = {
  73829. call$0: function() {
  73830. var t1, t2;
  73831. for (t1 = this.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = this.$this; t1.moveNext$0();)
  73832. t1.__internal$_current.accept$1(t2);
  73833. },
  73834. $signature: 0
  73835. };
  73836. R._EvaluateVisitor_visitCssSupportsRule_closure4.prototype = {
  73837. call$1: function(node) {
  73838. return type$.CssStyleRule_2._is(node);
  73839. }
  73840. };
  73841. R._EvaluateVisitor__performInterpolation_closure1.prototype = {
  73842. call$1: function(value) {
  73843. var t1, result, t2, t3;
  73844. if (typeof value == "string")
  73845. return value;
  73846. type$.Expression_2._as(value);
  73847. t1 = this.$this;
  73848. result = value.accept$1(t1);
  73849. if (this.warnForColor && result instanceof K.SassColor0 && $.$get$namesByColor0().containsKey$1(result)) {
  73850. t2 = X.Interpolation$0([""], null);
  73851. t3 = $.$get$namesByColor0();
  73852. t1._evaluate0$_warn$2("You probably don't mean to use the color value " + H.S(t3.$index(0, result)) + " in interpolation here.\nIt may end up represented as " + H.S(result) + ', which will likely produce invalid CSS.\nAlways quote color names when using them as strings or map keys (for example, "' + H.S(t3.$index(0, result)) + "\").\nIf you really want to use the color value here, use '" + new V.BinaryOperationExpression0(C.BinaryOperator_AcR1, new D.StringExpression0(t2, true), value, false).toString$0(0) + "'.", value.get$span());
  73853. }
  73854. return t1._evaluate0$_serialize$3$quote(result, value, false);
  73855. },
  73856. $signature: 27
  73857. };
  73858. R._EvaluateVisitor__serialize_closure1.prototype = {
  73859. call$0: function() {
  73860. var t1 = this.value;
  73861. t1.toString;
  73862. return N.serializeValue(t1, false, this.quote);
  73863. },
  73864. $signature: 10
  73865. };
  73866. R._EvaluateVisitor__stackTrace_closure1.prototype = {
  73867. call$1: function(tuple) {
  73868. return this.$this._evaluate0$_stackFrame$2(tuple.item1, tuple.item2.get$span());
  73869. }
  73870. };
  73871. R._ImportedCssVisitor1.prototype = {
  73872. visitCssAtRule$1: function(node) {
  73873. var t1 = node.isChildless ? null : new R._ImportedCssVisitor_visitCssAtRule_closure1();
  73874. this._evaluate0$_visitor._evaluate0$_addChild$2$through(node, t1);
  73875. },
  73876. visitCssComment$1: function(node) {
  73877. return this._evaluate0$_visitor._evaluate0$_addChild$1(node);
  73878. },
  73879. visitCssDeclaration$1: function(node) {
  73880. },
  73881. visitCssImport$1: function(node) {
  73882. var t1 = this._evaluate0$_visitor,
  73883. t2 = t1._evaluate0$_parent,
  73884. t3 = t1._evaluate0$_root;
  73885. if (t2 != t3)
  73886. t1._evaluate0$_addChild$1(node);
  73887. else if (t1._evaluate0$_endOfImports === J.get$length$asx(t3.children._collection$_source)) {
  73888. t1._evaluate0$_addChild$1(node);
  73889. t1._evaluate0$_endOfImports = t1._evaluate0$_endOfImports + 1;
  73890. } else {
  73891. t2 = t1._evaluate0$_outOfOrderImports;
  73892. (t2 == null ? t1._evaluate0$_outOfOrderImports = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssImport_2) : t2).push(node);
  73893. }
  73894. },
  73895. visitCssKeyframeBlock$1: function(node) {
  73896. },
  73897. visitCssMediaRule$1: function(node) {
  73898. var t1 = this._evaluate0$_visitor,
  73899. t2 = t1._evaluate0$_mediaQueries;
  73900. t1._evaluate0$_addChild$2$through(node, new R._ImportedCssVisitor_visitCssMediaRule_closure1(t2 == null || t1._evaluate0$_mergeMediaQueries$2(t2, node.queries) != null));
  73901. },
  73902. visitCssStyleRule$1: function(node) {
  73903. return this._evaluate0$_visitor._evaluate0$_addChild$2$through(node, new R._ImportedCssVisitor_visitCssStyleRule_closure1());
  73904. },
  73905. visitCssStylesheet$1: function(node) {
  73906. var t1;
  73907. for (t1 = node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();)
  73908. t1.__internal$_current.accept$1(this);
  73909. },
  73910. visitCssSupportsRule$1: function(node) {
  73911. return this._evaluate0$_visitor._evaluate0$_addChild$2$through(node, new R._ImportedCssVisitor_visitCssSupportsRule_closure1());
  73912. }
  73913. };
  73914. R._ImportedCssVisitor_visitCssAtRule_closure1.prototype = {
  73915. call$1: function(node) {
  73916. return type$.CssStyleRule_2._is(node);
  73917. }
  73918. };
  73919. R._ImportedCssVisitor_visitCssMediaRule_closure1.prototype = {
  73920. call$1: function(node) {
  73921. var t1;
  73922. if (!type$.CssStyleRule_2._is(node))
  73923. t1 = this.hasBeenMerged && type$.CssMediaRule_2._is(node);
  73924. else
  73925. t1 = true;
  73926. return t1;
  73927. }
  73928. };
  73929. R._ImportedCssVisitor_visitCssStyleRule_closure1.prototype = {
  73930. call$1: function(node) {
  73931. return type$.CssStyleRule_2._is(node);
  73932. }
  73933. };
  73934. R._ImportedCssVisitor_visitCssSupportsRule_closure1.prototype = {
  73935. call$1: function(node) {
  73936. return type$.CssStyleRule_2._is(node);
  73937. }
  73938. };
  73939. R._ArgumentResults1.prototype = {};
  73940. E.SassException0.prototype = {
  73941. get$trace: function() {
  73942. return new Y.Trace(P.List_List$unmodifiable(H.setRuntimeTypeInfo([B.frameForSpan0(G.SourceSpanException.prototype.get$span.call(this), "root stylesheet", null)], type$.JSArray_Frame), type$.Frame), new P._StringStackTrace(null));
  73943. },
  73944. get$span: function() {
  73945. return G.SourceSpanException.prototype.get$span.call(this);
  73946. },
  73947. toString$0: function(_) {
  73948. var t2, _i, frame, t3,
  73949. buffer = new P.StringBuffer(""),
  73950. t1 = "Error: " + H.S(this._span_exception$_message) + "\n";
  73951. buffer._contents = t1;
  73952. buffer._contents = t1 + G.SourceSpanException.prototype.get$span.call(this).highlight$1$color(null);
  73953. for (t1 = this.get$trace().toString$0(0).split("\n"), t2 = t1.length, _i = 0; _i < t2; ++_i) {
  73954. frame = t1[_i];
  73955. frame.toString;
  73956. if (J.get$length$asx(frame) === 0)
  73957. continue;
  73958. t3 = buffer._contents += "\n";
  73959. buffer._contents = t3 + (" " + H.S(frame));
  73960. }
  73961. t1 = buffer._contents;
  73962. return t1.charCodeAt(0) == 0 ? t1 : t1;
  73963. }
  73964. };
  73965. E.MultiSpanSassException0.prototype = {
  73966. toString$0: function(_) {
  73967. var t2, _i, frame, t3, _this = this,
  73968. buffer = new P.StringBuffer(""),
  73969. t1 = "Error: " + H.S(_this._span_exception$_message) + "\n";
  73970. buffer._contents = t1;
  73971. buffer._contents = t1 + U.Highlighter$multiple(G.SourceSpanException.prototype.get$span.call(_this), _this.primaryLabel, _this.secondarySpans, false, null, null).highlight$0();
  73972. for (t1 = _this.get$trace().toString$0(0).split("\n"), t2 = t1.length, _i = 0; _i < t2; ++_i) {
  73973. frame = t1[_i];
  73974. frame.toString;
  73975. if (J.get$length$asx(frame) === 0)
  73976. continue;
  73977. t3 = buffer._contents += "\n";
  73978. buffer._contents = t3 + (" " + H.S(frame));
  73979. }
  73980. t1 = buffer._contents;
  73981. return t1.charCodeAt(0) == 0 ? t1 : t1;
  73982. }
  73983. };
  73984. E.SassRuntimeException0.prototype = {
  73985. get$trace: function() {
  73986. return this.trace;
  73987. }
  73988. };
  73989. E.MultiSpanSassRuntimeException0.prototype = {$isSassRuntimeException0: 1,
  73990. get$trace: function() {
  73991. return this.trace;
  73992. }
  73993. };
  73994. E.SassFormatException0.prototype = {
  73995. get$source: function() {
  73996. return P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(G.SourceSpanException.prototype.get$span.call(this).file._decodedChars, 0, null), 0, null);
  73997. },
  73998. $isFormatException: 1,
  73999. $isSourceSpanFormatException: 1
  74000. };
  74001. E.SassScriptException0.prototype = {
  74002. toString$0: function(_) {
  74003. return this.message + "\n\nBUG: This should include a source span!";
  74004. },
  74005. get$message: function(receiver) {
  74006. return this.message;
  74007. }
  74008. };
  74009. E.MultiSpanSassScriptException0.prototype = {};
  74010. D.Exports.prototype = {};
  74011. T.Expression0.prototype = {$isAstNode0: 1};
  74012. X.ExtendRule0.prototype = {
  74013. accept$1$1: function(visitor) {
  74014. return visitor.visitExtendRule$1(this);
  74015. },
  74016. accept$1: function(visitor) {
  74017. return this.accept$1$1(visitor, type$.dynamic);
  74018. },
  74019. toString$0: function(_) {
  74020. return "@extend " + this.selector.toString$0(0);
  74021. },
  74022. $isAstNode0: 1,
  74023. $isStatement0: 1,
  74024. get$span: function() {
  74025. return this.span;
  74026. }
  74027. };
  74028. F.Extender0.prototype = {
  74029. get$isEmpty: function(_) {
  74030. var t1 = this._extender$_extensions;
  74031. return t1.get$isEmpty(t1);
  74032. },
  74033. get$simpleSelectors: function() {
  74034. return new M.MapKeySet(this._extender$_selectors, type$.MapKeySet_SimpleSelector_2);
  74035. },
  74036. extensionsWhereTarget$1: function($async$callback) {
  74037. var $async$self = this;
  74038. return P._makeSyncStarIterable(function() {
  74039. var callback = $async$callback;
  74040. var $async$goto = 0, $async$handler = 1, $async$currentError, t1, t2, t3, t4;
  74041. return function $async$extensionsWhereTarget$1($async$errorCode, $async$result) {
  74042. if ($async$errorCode === 1) {
  74043. $async$currentError = $async$result;
  74044. $async$goto = $async$handler;
  74045. }
  74046. while (true)
  74047. switch ($async$goto) {
  74048. case 0:
  74049. // Function start
  74050. t1 = $async$self._extender$_extensions, t2 = t1.get$keys(), t2 = t2.get$iterator(t2);
  74051. case 2:
  74052. // for condition
  74053. if (!t2.moveNext$0()) {
  74054. // goto after for
  74055. $async$goto = 3;
  74056. break;
  74057. }
  74058. t3 = t2.get$current(t2);
  74059. if (!callback.call$1(t3)) {
  74060. // goto for condition
  74061. $async$goto = 2;
  74062. break;
  74063. }
  74064. t3 = t1.$index(0, t3).get$values(), t3 = t3.get$iterator(t3);
  74065. case 4:
  74066. // for condition
  74067. if (!t3.moveNext$0()) {
  74068. // goto after for
  74069. $async$goto = 5;
  74070. break;
  74071. }
  74072. t4 = t3.get$current(t3);
  74073. $async$goto = t4 instanceof A.MergedExtension0 ? 6 : 8;
  74074. break;
  74075. case 6:
  74076. // then
  74077. t4 = t4.unmerge$0();
  74078. $async$goto = 9;
  74079. return P._IterationMarker_yieldStar(new H.WhereIterable(t4, new F.Extender_extensionsWhereTarget_closure0(), t4.$ti._eval$1("WhereIterable<Iterable.E>")));
  74080. case 9:
  74081. // after yield
  74082. // goto join
  74083. $async$goto = 7;
  74084. break;
  74085. case 8:
  74086. // else
  74087. $async$goto = !t4.isOptional ? 10 : 11;
  74088. break;
  74089. case 10:
  74090. // then
  74091. $async$goto = 12;
  74092. return t4;
  74093. case 12:
  74094. // after yield
  74095. case 11:
  74096. // join
  74097. case 7:
  74098. // join
  74099. // goto for condition
  74100. $async$goto = 4;
  74101. break;
  74102. case 5:
  74103. // after for
  74104. // goto for condition
  74105. $async$goto = 2;
  74106. break;
  74107. case 3:
  74108. // after for
  74109. // implicit return
  74110. return P._IterationMarker_endOfIteration();
  74111. case 1:
  74112. // rethrow
  74113. return P._IterationMarker_uncaughtError($async$currentError);
  74114. }
  74115. };
  74116. }, type$.Extension_2);
  74117. },
  74118. addSelector$3: function(selector, span, mediaContext) {
  74119. var error, t1, t2, t3, _i, exception, modifiableSelector, _this = this,
  74120. originalSelector = selector;
  74121. if (!originalSelector.get$isInvisible())
  74122. for (t1 = originalSelector.components, t2 = t1.length, t3 = _this._extender$_originals, _i = 0; _i < t2; ++_i)
  74123. t3.add$1(0, t1[_i]);
  74124. t1 = _this._extender$_extensions;
  74125. if (t1.get$isNotEmpty(t1))
  74126. try {
  74127. selector = _this._extender$_extendList$3(originalSelector, t1, mediaContext);
  74128. } catch (exception) {
  74129. t1 = H.unwrapException(exception);
  74130. if (t1 instanceof E.SassException0) {
  74131. error = t1;
  74132. throw H.wrapException(E.SassException$0("From " + error.get$span().message$1(0, "") + "\n" + H.S(error._span_exception$_message), span));
  74133. } else
  74134. throw exception;
  74135. }
  74136. modifiableSelector = new F.ModifiableCssValue0(selector, span, type$.ModifiableCssValue_SelectorList_2);
  74137. if (mediaContext != null)
  74138. _this._extender$_mediaContexts.$indexSet(0, modifiableSelector, mediaContext);
  74139. _this._extender$_registerSelector$2(selector, modifiableSelector);
  74140. return modifiableSelector;
  74141. },
  74142. _extender$_registerSelector$2: function(list, selector) {
  74143. var t1, t2, t3, _i, t4, t5, _i0, component, t6, t7, _i1, simple;
  74144. for (t1 = list.components, t2 = t1.length, t3 = this._extender$_selectors, _i = 0; _i < t2; ++_i)
  74145. for (t4 = t1[_i].components, t5 = t4.length, _i0 = 0; _i0 < t5; ++_i0) {
  74146. component = t4[_i0];
  74147. if (component instanceof X.CompoundSelector0)
  74148. for (t6 = component.components, t7 = t6.length, _i1 = 0; _i1 < t7; ++_i1) {
  74149. simple = t6[_i1];
  74150. J.add$1$ax(t3.putIfAbsent$2(simple, new F.Extender__registerSelector_closure0()), selector);
  74151. if (simple instanceof D.PseudoSelector0 && simple.selector != null)
  74152. this._extender$_registerSelector$2(simple.selector, selector);
  74153. }
  74154. }
  74155. },
  74156. addExtension$4: function(extender, target, extend, mediaContext) {
  74157. var t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, newExtensions, _i, complex, t12, state, existingState, t13, _i0, component, t14, t15, _i1, simple, newExtensionsByTarget, additionalExtensions, _this = this,
  74158. selectors = _this._extender$_selectors.$index(0, target),
  74159. t1 = _this._extender$_extensionsByExtender,
  74160. existingExtensions = t1.$index(0, target),
  74161. sources = _this._extender$_extensions.putIfAbsent$2(target, new F.Extender_addExtension_closure2());
  74162. for (t2 = extender.value.components, t3 = t2.length, t4 = selectors == null, t5 = _this._extender$_sourceSpecificity, t6 = extender.span, t7 = extend.span, t8 = extend.isOptional, t9 = existingExtensions != null, t10 = type$.ComplexSelector_2, t11 = type$.Extension_2, newExtensions = null, _i = 0; _i < t3; ++_i) {
  74163. complex = t2[_i];
  74164. if (complex._complex0$_maxSpecificity == null)
  74165. complex._complex0$_computeSpecificity$0();
  74166. t12 = complex._complex0$_maxSpecificity;
  74167. state = new S.Extension0(complex, target, t12, t8, false, mediaContext, t6, t7);
  74168. existingState = sources.$index(0, complex);
  74169. if (existingState != null) {
  74170. sources.$indexSet(0, complex, A.MergedExtension_merge0(existingState, state));
  74171. continue;
  74172. }
  74173. sources.$indexSet(0, complex, state);
  74174. for (t12 = complex.components, t13 = t12.length, _i0 = 0; _i0 < t13; ++_i0) {
  74175. component = t12[_i0];
  74176. if (component instanceof X.CompoundSelector0)
  74177. for (t14 = component.components, t15 = t14.length, _i1 = 0; _i1 < t15; ++_i1) {
  74178. simple = t14[_i1];
  74179. J.add$1$ax(t1.putIfAbsent$2(simple, new F.Extender_addExtension_closure3()), state);
  74180. t5.putIfAbsent$2(simple, new F.Extender_addExtension_closure4(complex));
  74181. }
  74182. }
  74183. if (!t4 || t9) {
  74184. if (newExtensions == null)
  74185. newExtensions = P.LinkedHashMap_LinkedHashMap$_empty(t10, t11);
  74186. newExtensions.$indexSet(0, complex, state);
  74187. }
  74188. }
  74189. if (newExtensions == null)
  74190. return;
  74191. newExtensionsByTarget = P.LinkedHashMap_LinkedHashMap$_literal([target, newExtensions], type$.SimpleSelector_2, type$.Map_ComplexSelector_Extension_2);
  74192. if (t9) {
  74193. additionalExtensions = _this._extender$_extendExistingExtensions$2(existingExtensions, newExtensionsByTarget);
  74194. if (additionalExtensions != null)
  74195. B.mapAddAll20(newExtensionsByTarget, additionalExtensions);
  74196. }
  74197. if (!t4)
  74198. _this._extender$_extendExistingSelectors$2(selectors, newExtensionsByTarget);
  74199. },
  74200. _extender$_extendExistingExtensions$2: function(extensions, newExtensions) {
  74201. var extension, selectors, error, t1, t2, t3, t4, t5, t6, additionalExtensions, _i, sources, exception, containsExtension, t7, t8, first, _i0, complex, t9, t10, t11, t12, t13, t14, withExtender, existingExtension, _i1, component, _i2;
  74202. for (t1 = J.toList$0$ax(extensions), t2 = t1.length, t3 = this._extender$_extensionsByExtender, t4 = type$.SimpleSelector_2, t5 = type$.Map_ComplexSelector_Extension_2, t6 = this._extender$_extensions, additionalExtensions = null, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  74203. extension = t1[_i];
  74204. sources = t6.$index(0, extension.target);
  74205. selectors = null;
  74206. try {
  74207. selectors = this._extender$_extendComplex$3(extension.extender, newExtensions, extension.mediaContext);
  74208. if (selectors == null)
  74209. continue;
  74210. } catch (exception) {
  74211. t1 = H.unwrapException(exception);
  74212. if (t1 instanceof E.SassException0) {
  74213. error = t1;
  74214. throw H.wrapException(E.SassException$0("From " + extension.extenderSpan.message$1(0, "") + "\n" + H.S(error._span_exception$_message), error.get$span()));
  74215. } else
  74216. throw exception;
  74217. }
  74218. containsExtension = J.$eq$(J.get$first$ax(selectors), extension.extender);
  74219. for (t7 = selectors, t8 = t7.length, first = false, _i0 = 0; _i0 < t7.length; t7.length === t8 || (0, H.throwConcurrentModificationError)(t7), ++_i0) {
  74220. complex = t7[_i0];
  74221. if (containsExtension && first) {
  74222. first = false;
  74223. continue;
  74224. }
  74225. t9 = extension;
  74226. t10 = t9.target;
  74227. t11 = t9.extenderSpan;
  74228. t12 = t9.span;
  74229. t13 = t9.mediaContext;
  74230. t14 = t9.specificity;
  74231. t9 = t9.isOptional;
  74232. if (t14 == null) {
  74233. if (complex._complex0$_maxSpecificity == null)
  74234. complex._complex0$_computeSpecificity$0();
  74235. t14 = complex._complex0$_maxSpecificity;
  74236. }
  74237. withExtender = new S.Extension0(complex, t10, t14, t9, false, t13, t11, t12);
  74238. existingExtension = sources.$index(0, complex);
  74239. if (existingExtension != null)
  74240. sources.$indexSet(0, complex, A.MergedExtension_merge0(existingExtension, withExtender));
  74241. else {
  74242. sources.$indexSet(0, complex, withExtender);
  74243. for (t9 = complex.components, t10 = t9.length, _i1 = 0; _i1 < t10; ++_i1) {
  74244. component = t9[_i1];
  74245. if (component instanceof X.CompoundSelector0)
  74246. for (t11 = component.components, t12 = t11.length, _i2 = 0; _i2 < t12; ++_i2)
  74247. J.add$1$ax(t3.putIfAbsent$2(t11[_i2], new F.Extender__extendExistingExtensions_closure1()), withExtender);
  74248. }
  74249. if (newExtensions.containsKey$1(extension.target)) {
  74250. if (additionalExtensions == null)
  74251. additionalExtensions = P.LinkedHashMap_LinkedHashMap$_empty(t4, t5);
  74252. additionalExtensions.putIfAbsent$2(extension.target, new F.Extender__extendExistingExtensions_closure2()).$indexSet(0, complex, withExtender);
  74253. }
  74254. }
  74255. }
  74256. if (!containsExtension)
  74257. sources.remove$1(0, extension.extender);
  74258. }
  74259. return additionalExtensions;
  74260. },
  74261. _extender$_extendExistingSelectors$2: function(selectors, newExtensions) {
  74262. var selector, error, t1, t2, oldValue, exception;
  74263. for (t1 = selectors.get$iterator(selectors), t2 = this._extender$_mediaContexts; t1.moveNext$0();) {
  74264. selector = t1.get$current(t1);
  74265. oldValue = selector.value;
  74266. try {
  74267. selector.value = this._extender$_extendList$3(selector.value, newExtensions, t2.$index(0, selector));
  74268. } catch (exception) {
  74269. t1 = H.unwrapException(exception);
  74270. if (t1 instanceof E.SassException0) {
  74271. error = t1;
  74272. throw H.wrapException(E.SassException$0("From " + selector.span.message$1(0, "") + "\n" + H.S(error._span_exception$_message), error.get$span()));
  74273. } else
  74274. throw exception;
  74275. }
  74276. if (oldValue == selector.value)
  74277. continue;
  74278. this._extender$_registerSelector$2(selector.value, selector);
  74279. }
  74280. },
  74281. addExtensions$1: function(extenders) {
  74282. var t1, t2, t3, _this = this, _box_0 = {};
  74283. _box_0.newExtensions = _box_0.selectorsToExtend = _box_0.extensionsToExtend = null;
  74284. for (t1 = J.get$iterator$ax(extenders), t2 = _this._extender$_sourceSpecificity; t1.moveNext$0();) {
  74285. t3 = t1.get$current(t1);
  74286. if (t3.get$isEmpty(t3))
  74287. continue;
  74288. t2.addAll$1(0, t3.get$_extender$_sourceSpecificity());
  74289. t3.get$_extender$_extensions().forEach$1(0, new F.Extender_addExtensions_closure0(_box_0, _this, t3));
  74290. }
  74291. t1 = _box_0.newExtensions;
  74292. if (t1 == null)
  74293. return;
  74294. t2 = _box_0.extensionsToExtend;
  74295. if (t2 != null)
  74296. _this._extender$_extendExistingExtensions$2(t2, t1);
  74297. t1 = _box_0.selectorsToExtend;
  74298. if (t1 != null)
  74299. _this._extender$_extendExistingSelectors$2(t1, _box_0.newExtensions);
  74300. },
  74301. _extender$_extendList$3: function(list, extensions, mediaQueryContext) {
  74302. var t1, t2, t3, extended, i, complex, result, t4;
  74303. for (t1 = list.components, t2 = t1.length, t3 = type$.JSArray_ComplexSelector_2, extended = null, i = 0; i < t2; ++i) {
  74304. complex = t1[i];
  74305. result = this._extender$_extendComplex$3(complex, extensions, mediaQueryContext);
  74306. if (result == null) {
  74307. if (extended != null)
  74308. extended.push(complex);
  74309. } else {
  74310. if (extended == null)
  74311. if (i === 0)
  74312. extended = H.setRuntimeTypeInfo([], t3);
  74313. else {
  74314. t4 = C.JSArray_methods.sublist$2(t1, 0, i);
  74315. extended = H.setRuntimeTypeInfo(t4.slice(0), H._arrayInstanceType(t4)._eval$1("JSArray<1>"));
  74316. }
  74317. C.JSArray_methods.addAll$1(extended, result);
  74318. }
  74319. }
  74320. if (extended == null)
  74321. return list;
  74322. t1 = this._extender$_originals;
  74323. return D.SelectorList$0(J.where$1$ax(this._extender$_trim$2(extended, t1.get$contains(t1)), new F.Extender__extendList_closure0()));
  74324. },
  74325. _extender$_extendComplex$3: function(complex, extensions, mediaQueryContext) {
  74326. var t1, t2, t3, t4, t5, t6, extendedNotExpanded, i, component, extended, result, t7,
  74327. _s28_ = "components may not be empty.",
  74328. _box_0 = {},
  74329. isOriginal = this._extender$_originals.contains$1(0, complex);
  74330. for (t1 = complex.components, t2 = t1.length, t3 = type$.JSArray_ComplexSelector_2, t4 = type$.JSArray_ComplexSelectorComponent_2, t5 = type$.ComplexSelectorComponent_2, t6 = H._arrayInstanceType(t1)._precomputed1, extendedNotExpanded = null, i = 0; i < t2; ++i) {
  74331. component = t1[i];
  74332. if (component instanceof X.CompoundSelector0) {
  74333. extended = this._extender$_extendCompound$4$inOriginal(component, extensions, mediaQueryContext, isOriginal);
  74334. if (extended == null) {
  74335. if (extendedNotExpanded != null) {
  74336. result = P.List_List$from(H.setRuntimeTypeInfo([component], t4), false, t5);
  74337. result.fixed$length = Array;
  74338. result.immutable$list = Array;
  74339. t7 = result;
  74340. if (t7.length === 0)
  74341. H.throwExpression(P.ArgumentError$(_s28_));
  74342. C.JSArray_methods.add$1(extendedNotExpanded, H.setRuntimeTypeInfo([new S.ComplexSelector0(t7, false)], t3));
  74343. }
  74344. } else {
  74345. if (extendedNotExpanded == null) {
  74346. t7 = H.SubListIterable$(t1, 0, i, t6);
  74347. extendedNotExpanded = new H.MappedListIterable(t7, new F.Extender__extendComplex_closure1(complex), t7.$ti._eval$1("MappedListIterable<ListIterable.E,List<ComplexSelector0>>")).toList$0(0);
  74348. }
  74349. C.JSArray_methods.add$1(extendedNotExpanded, extended);
  74350. }
  74351. } else if (extendedNotExpanded != null) {
  74352. result = P.List_List$from(H.setRuntimeTypeInfo([component], t4), false, t5);
  74353. result.fixed$length = Array;
  74354. result.immutable$list = Array;
  74355. t7 = result;
  74356. if (t7.length === 0)
  74357. H.throwExpression(P.ArgumentError$(_s28_));
  74358. C.JSArray_methods.add$1(extendedNotExpanded, H.setRuntimeTypeInfo([new S.ComplexSelector0(t7, false)], t3));
  74359. }
  74360. }
  74361. if (extendedNotExpanded == null)
  74362. return null;
  74363. _box_0.first = true;
  74364. t1 = type$.ComplexSelector_2;
  74365. t1 = J.expand$1$1$ax(Y.paths0(extendedNotExpanded, t1), new F.Extender__extendComplex_closure2(_box_0, this, complex), t1);
  74366. return P.List_List$from(t1, true, t1.$ti._eval$1("Iterable.E"));
  74367. },
  74368. _extender$_extendCompound$4$inOriginal: function(compound, extensions, mediaQueryContext, inOriginal) {
  74369. var t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, options, i, simple, extended, result, t12, t13, _this = this, _null = null,
  74370. _s28_ = "components may not be empty.",
  74371. _box_1 = {},
  74372. t1 = _this._extender$_mode,
  74373. targetsUsed = t1 === C.ExtendMode_normal0 || extensions.get$length(extensions) < 2 ? _null : P.LinkedHashSet_LinkedHashSet$_empty(type$.SimpleSelector_2);
  74374. for (t2 = compound.components, t3 = t2.length, t4 = type$.JSArray_List_Extension_2, t5 = type$.JSArray_Extension_2, t6 = type$.JSArray_ComplexSelectorComponent_2, t7 = type$.ComplexSelectorComponent_2, t8 = H._arrayInstanceType(t2)._precomputed1, t9 = type$.SimpleSelector_2, t10 = _this._extender$_sourceSpecificity, t11 = type$.JSArray_SimpleSelector_2, options = _null, i = 0; i < t3; ++i) {
  74375. simple = t2[i];
  74376. extended = _this._extender$_extendSimple$4(simple, extensions, mediaQueryContext, targetsUsed);
  74377. if (extended == null) {
  74378. if (options != null) {
  74379. result = P.List_List$from(H.setRuntimeTypeInfo([simple], t11), false, t9);
  74380. result.fixed$length = Array;
  74381. result.immutable$list = Array;
  74382. t12 = result;
  74383. if (t12.length === 0)
  74384. H.throwExpression(P.ArgumentError$(_s28_));
  74385. result = P.List_List$from(H.setRuntimeTypeInfo([new X.CompoundSelector0(t12)], t6), false, t7);
  74386. result.fixed$length = Array;
  74387. result.immutable$list = Array;
  74388. t12 = result;
  74389. if (t12.length === 0)
  74390. H.throwExpression(P.ArgumentError$(_s28_));
  74391. t13 = t10.$index(0, simple);
  74392. if (t13 == null)
  74393. t13 = 0;
  74394. options.push(H.setRuntimeTypeInfo([new S.Extension0(new S.ComplexSelector0(t12, false), _null, t13, true, true, _null, _null, _null)], t5));
  74395. }
  74396. } else {
  74397. if (options == null) {
  74398. options = H.setRuntimeTypeInfo([], t4);
  74399. if (i !== 0) {
  74400. result = P.List_List$from(H.SubListIterable$(t2, 0, i, t8), false, t9);
  74401. result.fixed$length = Array;
  74402. result.immutable$list = Array;
  74403. t12 = result;
  74404. compound = new X.CompoundSelector0(t12);
  74405. if (t12.length === 0)
  74406. H.throwExpression(P.ArgumentError$(_s28_));
  74407. result = P.List_List$from(H.setRuntimeTypeInfo([compound], t6), false, t7);
  74408. result.fixed$length = Array;
  74409. result.immutable$list = Array;
  74410. t12 = result;
  74411. if (t12.length === 0)
  74412. H.throwExpression(P.ArgumentError$(_s28_));
  74413. t13 = _this._extender$_sourceSpecificityFor$1(compound);
  74414. options.push(H.setRuntimeTypeInfo([new S.Extension0(new S.ComplexSelector0(t12, false), _null, t13, true, true, _null, _null, _null)], t5));
  74415. }
  74416. }
  74417. C.JSArray_methods.addAll$1(options, extended);
  74418. }
  74419. }
  74420. if (options == null)
  74421. return _null;
  74422. if (targetsUsed != null && targetsUsed._collection$_length !== extensions.get$length(extensions))
  74423. return _null;
  74424. if (options.length === 1)
  74425. return J.map$1$1$ax(C.JSArray_methods.get$first(options), new F.Extender__extendCompound_closure3(mediaQueryContext), type$.ComplexSelector_2).toList$0(0);
  74426. _box_1.first = t1 !== C.ExtendMode_replace0;
  74427. t1 = J.map$1$1$ax(Y.paths0(options, type$.Extension_2), new F.Extender__extendCompound_closure4(_box_1, mediaQueryContext), type$.List_ComplexSelector_2).where$1(0, new F.Extender__extendCompound_closure5());
  74428. t2 = t1.$ti._eval$1("ExpandIterable<Iterable.E,ComplexSelector0>");
  74429. return P.List_List$from(new H.ExpandIterable(t1, new F.Extender__extendCompound_closure6(), t2), true, t2._eval$1("Iterable.E"));
  74430. },
  74431. _extender$_extendSimple$4: function(simple, extensions, mediaQueryContext, targetsUsed) {
  74432. var extended, result,
  74433. t1 = new F.Extender__extendSimple_withoutPseudo0(this, extensions, targetsUsed);
  74434. if (simple instanceof D.PseudoSelector0 && simple.selector != null) {
  74435. extended = this._extender$_extendPseudo$3(simple, extensions, mediaQueryContext);
  74436. if (extended != null)
  74437. return new H.MappedListIterable(extended, new F.Extender__extendSimple_closure0(this, t1), H._arrayInstanceType(extended)._eval$1("MappedListIterable<1,List<Extension0>>"));
  74438. }
  74439. result = t1.call$1(simple);
  74440. return result == null ? null : H.setRuntimeTypeInfo([result], type$.JSArray_List_Extension_2);
  74441. },
  74442. _extender$_extensionForSimple$1: function(simple) {
  74443. var t1 = S.ComplexSelector$0(H.setRuntimeTypeInfo([X.CompoundSelector$0(H.setRuntimeTypeInfo([simple], type$.JSArray_SimpleSelector_2))], type$.JSArray_ComplexSelectorComponent_2), false),
  74444. t2 = this._extender$_sourceSpecificity.$index(0, simple);
  74445. return S.Extension$oneOff0(t1, true, t2 == null ? 0 : t2);
  74446. },
  74447. _extender$_extendPseudo$3: function(pseudo, extensions, mediaQueryContext) {
  74448. var complexes, t2, result,
  74449. t1 = pseudo.selector,
  74450. extended = this._extender$_extendList$3(t1, extensions, mediaQueryContext);
  74451. if (extended == t1)
  74452. return null;
  74453. complexes = extended.components;
  74454. t2 = pseudo.normalizedName === "not";
  74455. if (t2 && !C.JSArray_methods.any$1(t1.components, new F.Extender__extendPseudo_closure4()) && C.JSArray_methods.any$1(complexes, new F.Extender__extendPseudo_closure5()))
  74456. complexes = new H.WhereIterable(complexes, new F.Extender__extendPseudo_closure6(), H._arrayInstanceType(complexes)._eval$1("WhereIterable<1>"));
  74457. complexes = J.expand$1$1$ax(complexes, new F.Extender__extendPseudo_closure7(pseudo), type$.ComplexSelector_2);
  74458. if (t2 && t1.components.length === 1) {
  74459. t1 = H.MappedIterable_MappedIterable(complexes, new F.Extender__extendPseudo_closure8(pseudo), complexes.$ti._eval$1("Iterable.E"), type$.PseudoSelector_2);
  74460. result = P.List_List$from(t1, true, H._instanceType(t1)._eval$1("Iterable.E"));
  74461. return result.length === 0 ? null : result;
  74462. } else
  74463. return H.setRuntimeTypeInfo([D.PseudoSelector$0(pseudo.name, pseudo.argument, !pseudo.isClass, D.SelectorList$0(complexes))], type$.JSArray_PseudoSelector_2);
  74464. },
  74465. _extender$_trim$2: function(selectors, isOriginal) {
  74466. var result, i, t1, numOriginals, _box_0, complex1, j, t2, t3, _i, component;
  74467. if (selectors.length > 100)
  74468. return selectors;
  74469. result = Q.QueueList$(null, type$.ComplexSelector_2);
  74470. $label0$0:
  74471. for (i = selectors.length - 1, t1 = H._arrayInstanceType(selectors)._precomputed1, numOriginals = 0; i >= 0; --i) {
  74472. _box_0 = {};
  74473. complex1 = selectors[i];
  74474. if (isOriginal.call$1(complex1)) {
  74475. for (j = 0; j < numOriginals; ++j)
  74476. if (J.$eq$(result.$index(0, j), complex1)) {
  74477. B.rotateSlice0(result, 0, j + 1);
  74478. continue $label0$0;
  74479. }
  74480. ++numOriginals;
  74481. result.addFirst$1(complex1);
  74482. continue $label0$0;
  74483. }
  74484. _box_0.maxSpecificity = 0;
  74485. for (t2 = complex1.components, t3 = t2.length, _i = 0; _i < t3; ++_i) {
  74486. component = t2[_i];
  74487. if (component instanceof X.CompoundSelector0)
  74488. _box_0.maxSpecificity = Math.max(_box_0.maxSpecificity, this._extender$_sourceSpecificityFor$1(component));
  74489. }
  74490. if (result.any$1(result, new F.Extender__trim_closure1(_box_0, complex1)))
  74491. continue $label0$0;
  74492. if (H.SubListIterable$(selectors, 0, i, t1).any$1(0, new F.Extender__trim_closure2(_box_0, complex1)))
  74493. continue $label0$0;
  74494. result.addFirst$1(complex1);
  74495. }
  74496. return result;
  74497. },
  74498. _extender$_sourceSpecificityFor$1: function(compound) {
  74499. var t1, t2, t3, specificity, _i, t4;
  74500. for (t1 = compound.components, t2 = t1.length, t3 = this._extender$_sourceSpecificity, specificity = 0, _i = 0; _i < t2; ++_i) {
  74501. t4 = t3.$index(0, t1[_i]);
  74502. specificity = Math.max(specificity, H.checkNum(t4 == null ? 0 : t4));
  74503. }
  74504. return specificity;
  74505. },
  74506. clone$0: function() {
  74507. var t3, t4, _this = this,
  74508. t1 = type$.SimpleSelector_2,
  74509. newSelectors = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Set_ModifiableCssValue_SelectorList_2),
  74510. t2 = type$.ModifiableCssValue_SelectorList_2,
  74511. newMediaContexts = P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.List_CssMediaQuery_2),
  74512. oldToNewSelectors = P.LinkedHashMap_LinkedHashMap$_empty(type$.CssValue_SelectorList_2, t2);
  74513. _this._extender$_selectors.forEach$1(0, new F.Extender_clone_closure0(_this, newSelectors, oldToNewSelectors, newMediaContexts));
  74514. t2 = type$.Extension_2;
  74515. t3 = B.copyMapOfMap0(_this._extender$_extensions, t1, type$.ComplexSelector_2, t2);
  74516. t2 = B.copyMapOfList0(_this._extender$_extensionsByExtender, t1, t2);
  74517. t1 = P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6(t1, type$.int);
  74518. t1.addAll$1(0, _this._extender$_sourceSpecificity);
  74519. t4 = new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_ComplexSelector_2);
  74520. t4.addAll$1(0, _this._extender$_originals);
  74521. return new S.Tuple2(new F.Extender0(newSelectors, t3, t2, newMediaContexts, t1, t4, C.ExtendMode_normal0), oldToNewSelectors, type$.Tuple2_of_Extender_and_Map_of_CssValue_SelectorList_and_ModifiableCssValue_SelectorList_2);
  74522. },
  74523. get$_extender$_extensions: function() {
  74524. return this._extender$_extensions;
  74525. },
  74526. get$_extender$_sourceSpecificity: function() {
  74527. return this._extender$_sourceSpecificity;
  74528. }
  74529. };
  74530. F.Extender_extensionsWhereTarget_closure0.prototype = {
  74531. call$1: function(extension) {
  74532. return !extension.isOptional;
  74533. }
  74534. };
  74535. F.Extender__registerSelector_closure0.prototype = {
  74536. call$0: function() {
  74537. return P.LinkedHashSet_LinkedHashSet$_empty(type$.ModifiableCssValue_SelectorList_2);
  74538. },
  74539. $signature: 126
  74540. };
  74541. F.Extender_addExtension_closure2.prototype = {
  74542. call$0: function() {
  74543. return P.LinkedHashMap_LinkedHashMap$_empty(type$.ComplexSelector_2, type$.Extension_2);
  74544. },
  74545. $signature: 60
  74546. };
  74547. F.Extender_addExtension_closure3.prototype = {
  74548. call$0: function() {
  74549. return H.setRuntimeTypeInfo([], type$.JSArray_Extension_2);
  74550. },
  74551. $signature: 87
  74552. };
  74553. F.Extender_addExtension_closure4.prototype = {
  74554. call$0: function() {
  74555. return this.complex.get$maxSpecificity();
  74556. },
  74557. $signature: 8
  74558. };
  74559. F.Extender__extendExistingExtensions_closure1.prototype = {
  74560. call$0: function() {
  74561. return H.setRuntimeTypeInfo([], type$.JSArray_Extension_2);
  74562. },
  74563. $signature: 87
  74564. };
  74565. F.Extender__extendExistingExtensions_closure2.prototype = {
  74566. call$0: function() {
  74567. return P.LinkedHashMap_LinkedHashMap$_empty(type$.ComplexSelector_2, type$.Extension_2);
  74568. },
  74569. $signature: 60
  74570. };
  74571. F.Extender_addExtensions_closure0.prototype = {
  74572. call$2: function(target, newSources) {
  74573. var t1, extensionsForTarget, t2, t3, t4, selectorsForTarget, t5, existingSources, _this = this;
  74574. if (target instanceof N.PlaceholderSelector0 && T.isPrivate0(target.name))
  74575. return;
  74576. t1 = _this.$this;
  74577. extensionsForTarget = t1._extender$_extensionsByExtender.$index(0, target);
  74578. t2 = extensionsForTarget == null;
  74579. if (!t2) {
  74580. t3 = _this._box_0;
  74581. t4 = t3.extensionsToExtend;
  74582. C.JSArray_methods.addAll$1(t4 == null ? t3.extensionsToExtend = H.setRuntimeTypeInfo([], type$.JSArray_Extension_2) : t4, extensionsForTarget);
  74583. }
  74584. selectorsForTarget = t1._extender$_selectors.$index(0, target);
  74585. t3 = selectorsForTarget != null;
  74586. if (t3) {
  74587. t4 = _this._box_0;
  74588. t5 = t4.selectorsToExtend;
  74589. (t5 == null ? t4.selectorsToExtend = P.LinkedHashSet_LinkedHashSet$_empty(type$.ModifiableCssValue_SelectorList_2) : t5).addAll$1(0, selectorsForTarget);
  74590. }
  74591. t1 = t1._extender$_extensions;
  74592. existingSources = t1.$index(0, target);
  74593. if (existingSources == null) {
  74594. t4 = _this.extender;
  74595. t1.$indexSet(0, target, t4.get$_extender$_extensions().$index(0, target));
  74596. if (!t2 || t3) {
  74597. t1 = _this._box_0;
  74598. t2 = t1.newExtensions;
  74599. t1 = t2 == null ? t1.newExtensions = P.LinkedHashMap_LinkedHashMap$_empty(type$.SimpleSelector_2, type$.Map_ComplexSelector_Extension_2) : t2;
  74600. t1.$indexSet(0, target, t4.get$_extender$_extensions().$index(0, target));
  74601. }
  74602. } else
  74603. newSources.forEach$1(0, new F.Extender_addExtensions__closure0(_this._box_0, existingSources, extensionsForTarget, selectorsForTarget, target));
  74604. }
  74605. };
  74606. F.Extender_addExtensions__closure0.prototype = {
  74607. call$2: function(extender, extension) {
  74608. var t2, _this = this,
  74609. t1 = _this.existingSources;
  74610. if (t1.containsKey$1(extender))
  74611. return;
  74612. t1.$indexSet(0, extender, extension);
  74613. if (_this.extensionsForTarget != null || _this.selectorsForTarget != null) {
  74614. t1 = _this._box_0;
  74615. t2 = t1.newExtensions;
  74616. t1 = t2 == null ? t1.newExtensions = P.LinkedHashMap_LinkedHashMap$_empty(type$.SimpleSelector_2, type$.Map_ComplexSelector_Extension_2) : t2;
  74617. t1.putIfAbsent$2(_this.target, new F.Extender_addExtensions___closure1()).putIfAbsent$2(extender, new F.Extender_addExtensions___closure2(extension));
  74618. }
  74619. }
  74620. };
  74621. F.Extender_addExtensions___closure1.prototype = {
  74622. call$0: function() {
  74623. return P.LinkedHashMap_LinkedHashMap$_empty(type$.ComplexSelector_2, type$.Extension_2);
  74624. },
  74625. $signature: 60
  74626. };
  74627. F.Extender_addExtensions___closure2.prototype = {
  74628. call$0: function() {
  74629. return this.extension;
  74630. },
  74631. $signature: 129
  74632. };
  74633. F.Extender__extendList_closure0.prototype = {
  74634. call$1: function(complex) {
  74635. return complex != null;
  74636. }
  74637. };
  74638. F.Extender__extendComplex_closure1.prototype = {
  74639. call$1: function(component) {
  74640. return H.setRuntimeTypeInfo([S.ComplexSelector$0(H.setRuntimeTypeInfo([component], type$.JSArray_ComplexSelectorComponent_2), this.complex.lineBreak)], type$.JSArray_ComplexSelector_2);
  74641. }
  74642. };
  74643. F.Extender__extendComplex_closure2.prototype = {
  74644. call$1: function(path) {
  74645. var t1 = Y.weave0(J.map$1$1$ax(path, new F.Extender__extendComplex__closure1(), type$.List_ComplexSelectorComponent_2).toList$0(0));
  74646. return new H.MappedListIterable(t1, new F.Extender__extendComplex__closure2(this._box_0, this.$this, this.complex, path), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector0>"));
  74647. }
  74648. };
  74649. F.Extender__extendComplex__closure1.prototype = {
  74650. call$1: function(complex) {
  74651. return complex.components;
  74652. }
  74653. };
  74654. F.Extender__extendComplex__closure2.prototype = {
  74655. call$1: function(components) {
  74656. var _this = this,
  74657. t1 = _this.complex,
  74658. outputComplex = S.ComplexSelector$0(components, t1.lineBreak || J.any$1$ax(_this.path, new F.Extender__extendComplex___closure0())),
  74659. t2 = _this._box_0;
  74660. if (t2.first && _this.$this._extender$_originals.contains$1(0, t1))
  74661. _this.$this._extender$_originals.add$1(0, outputComplex);
  74662. t2.first = false;
  74663. return outputComplex;
  74664. }
  74665. };
  74666. F.Extender__extendComplex___closure0.prototype = {
  74667. call$1: function(inputComplex) {
  74668. return inputComplex.lineBreak;
  74669. }
  74670. };
  74671. F.Extender__extendCompound_closure3.prototype = {
  74672. call$1: function(state) {
  74673. state.assertCompatibleMediaContext$1(this.mediaQueryContext);
  74674. return state.extender;
  74675. }
  74676. };
  74677. F.Extender__extendCompound_closure4.prototype = {
  74678. call$1: function(path) {
  74679. var complexes, toUnify, t2, t3, originals, t4, _box_0 = {},
  74680. t1 = this._box_1;
  74681. if (t1.first) {
  74682. t1.first = false;
  74683. complexes = H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([X.CompoundSelector$0(J.expand$1$1$ax(path, new F.Extender__extendCompound__closure1(), type$.SimpleSelector_2))], type$.JSArray_ComplexSelectorComponent_2)], type$.JSArray_List_ComplexSelectorComponent_2);
  74684. } else {
  74685. toUnify = Q.QueueList$(null, type$.List_ComplexSelectorComponent_2);
  74686. for (t1 = J.get$iterator$ax(path), t2 = type$.CompoundSelector_2, t3 = type$.JSArray_SimpleSelector_2, originals = null; t1.moveNext$0();) {
  74687. t4 = t1.get$current(t1);
  74688. if (t4.isOriginal) {
  74689. if (originals == null)
  74690. originals = H.setRuntimeTypeInfo([], t3);
  74691. C.JSArray_methods.addAll$1(originals, t2._as(C.JSArray_methods.get$last(t4.extender.components)).components);
  74692. } else
  74693. toUnify._queue_list$_add$1(t4.extender.components);
  74694. }
  74695. if (originals != null)
  74696. toUnify.addFirst$1(H.setRuntimeTypeInfo([X.CompoundSelector$0(originals)], type$.JSArray_ComplexSelectorComponent_2));
  74697. complexes = Y.unifyComplex0(toUnify);
  74698. if (complexes == null)
  74699. return null;
  74700. }
  74701. _box_0.lineBreak = false;
  74702. for (t1 = J.get$iterator$ax(path), t2 = this.mediaQueryContext; t1.moveNext$0();) {
  74703. t3 = t1.get$current(t1);
  74704. t3.assertCompatibleMediaContext$1(t2);
  74705. _box_0.lineBreak = _box_0.lineBreak || t3.extender.lineBreak;
  74706. }
  74707. return J.map$1$1$ax(complexes, new F.Extender__extendCompound__closure2(_box_0), type$.ComplexSelector_2).toList$0(0);
  74708. }
  74709. };
  74710. F.Extender__extendCompound__closure1.prototype = {
  74711. call$1: function(state) {
  74712. return type$.CompoundSelector_2._as(C.JSArray_methods.get$last(state.extender.components)).components;
  74713. }
  74714. };
  74715. F.Extender__extendCompound__closure2.prototype = {
  74716. call$1: function(components) {
  74717. return S.ComplexSelector$0(components, this._box_0.lineBreak);
  74718. }
  74719. };
  74720. F.Extender__extendCompound_closure5.prototype = {
  74721. call$1: function(complexes) {
  74722. return complexes != null;
  74723. }
  74724. };
  74725. F.Extender__extendCompound_closure6.prototype = {
  74726. call$1: function(l) {
  74727. return l;
  74728. }
  74729. };
  74730. F.Extender__extendSimple_withoutPseudo0.prototype = {
  74731. call$1: function(simple) {
  74732. var t1, t2,
  74733. extenders = this.extensions.$index(0, simple);
  74734. if (extenders == null)
  74735. return null;
  74736. t1 = this.targetsUsed;
  74737. if (t1 != null)
  74738. t1.add$1(0, simple);
  74739. t1 = this.$this;
  74740. if (t1._extender$_mode === C.ExtendMode_replace0) {
  74741. t1 = extenders.get$values();
  74742. return P.List_List$from(t1, true, H._instanceType(t1)._eval$1("Iterable.E"));
  74743. }
  74744. t2 = H.setRuntimeTypeInfo([], type$.JSArray_Extension_2);
  74745. t2.push(t1._extender$_extensionForSimple$1(simple));
  74746. for (t1 = extenders.get$values(), t1 = t1.get$iterator(t1); t1.moveNext$0();)
  74747. t2.push(t1.get$current(t1));
  74748. return t2;
  74749. }
  74750. };
  74751. F.Extender__extendSimple_closure0.prototype = {
  74752. call$1: function(pseudo) {
  74753. var t1 = this.withoutPseudo.call$1(pseudo);
  74754. return t1 == null ? H.setRuntimeTypeInfo([this.$this._extender$_extensionForSimple$1(pseudo)], type$.JSArray_Extension_2) : t1;
  74755. }
  74756. };
  74757. F.Extender__extendPseudo_closure4.prototype = {
  74758. call$1: function(complex) {
  74759. return complex.components.length > 1;
  74760. }
  74761. };
  74762. F.Extender__extendPseudo_closure5.prototype = {
  74763. call$1: function(complex) {
  74764. return complex.components.length === 1;
  74765. }
  74766. };
  74767. F.Extender__extendPseudo_closure6.prototype = {
  74768. call$1: function(complex) {
  74769. return complex.components.length <= 1;
  74770. }
  74771. };
  74772. F.Extender__extendPseudo_closure7.prototype = {
  74773. call$1: function(complex) {
  74774. var innerPseudo, t2,
  74775. t1 = complex.components;
  74776. if (t1.length !== 1)
  74777. return H.setRuntimeTypeInfo([complex], type$.JSArray_ComplexSelector_2);
  74778. if (!(C.JSArray_methods.get$first(t1) instanceof X.CompoundSelector0))
  74779. return H.setRuntimeTypeInfo([complex], type$.JSArray_ComplexSelector_2);
  74780. t1 = type$.CompoundSelector_2._as(C.JSArray_methods.get$first(t1)).components;
  74781. if (t1.length !== 1)
  74782. return H.setRuntimeTypeInfo([complex], type$.JSArray_ComplexSelector_2);
  74783. if (!(C.JSArray_methods.get$first(t1) instanceof D.PseudoSelector0))
  74784. return H.setRuntimeTypeInfo([complex], type$.JSArray_ComplexSelector_2);
  74785. innerPseudo = type$.PseudoSelector_2._as(C.JSArray_methods.get$first(t1));
  74786. t1 = innerPseudo.selector;
  74787. if (t1 == null)
  74788. return H.setRuntimeTypeInfo([complex], type$.JSArray_ComplexSelector_2);
  74789. t2 = this.pseudo;
  74790. switch (t2.normalizedName) {
  74791. case "not":
  74792. if (innerPseudo.normalizedName !== "matches")
  74793. return H.setRuntimeTypeInfo([], type$.JSArray_ComplexSelector_2);
  74794. return t1.components;
  74795. case "matches":
  74796. case "any":
  74797. case "current":
  74798. case "nth-child":
  74799. case "nth-last-child":
  74800. if (innerPseudo.name !== t2.name)
  74801. return H.setRuntimeTypeInfo([], type$.JSArray_ComplexSelector_2);
  74802. if (innerPseudo.argument != t2.argument)
  74803. return H.setRuntimeTypeInfo([], type$.JSArray_ComplexSelector_2);
  74804. return t1.components;
  74805. case "has":
  74806. case "host":
  74807. case "host-context":
  74808. case "slotted":
  74809. return H.setRuntimeTypeInfo([complex], type$.JSArray_ComplexSelector_2);
  74810. default:
  74811. return H.setRuntimeTypeInfo([], type$.JSArray_ComplexSelector_2);
  74812. }
  74813. }
  74814. };
  74815. F.Extender__extendPseudo_closure8.prototype = {
  74816. call$1: function(complex) {
  74817. var t1 = this.pseudo;
  74818. return D.PseudoSelector$0(t1.name, t1.argument, !t1.isClass, D.SelectorList$0(H.setRuntimeTypeInfo([complex], type$.JSArray_ComplexSelector_2)));
  74819. }
  74820. };
  74821. F.Extender__trim_closure1.prototype = {
  74822. call$1: function(complex2) {
  74823. return complex2.get$minSpecificity() >= this._box_0.maxSpecificity && Y.complexIsSuperselector0(complex2.components, this.complex1.components);
  74824. }
  74825. };
  74826. F.Extender__trim_closure2.prototype = {
  74827. call$1: function(complex2) {
  74828. return complex2.get$minSpecificity() >= this._box_0.maxSpecificity && Y.complexIsSuperselector0(complex2.components, this.complex1.components);
  74829. }
  74830. };
  74831. F.Extender_clone_closure0.prototype = {
  74832. call$2: function(simple, selectors) {
  74833. var t2, t3, t4, t5, t6, newSelector, mediaContext, _this = this,
  74834. t1 = type$.ModifiableCssValue_SelectorList_2,
  74835. newSelectorSet = P.LinkedHashSet_LinkedHashSet$_empty(t1);
  74836. _this.newSelectors.$indexSet(0, simple, newSelectorSet);
  74837. for (t2 = selectors.get$iterator(selectors), t3 = _this.oldToNewSelectors, t4 = _this.$this._extender$_mediaContexts, t5 = _this.newMediaContexts; t2.moveNext$0();) {
  74838. t6 = t2.get$current(t2);
  74839. newSelector = new F.ModifiableCssValue0(t6.value, t6.span, t1);
  74840. newSelectorSet.add$1(0, newSelector);
  74841. t3.$indexSet(0, t6, newSelector);
  74842. mediaContext = t4.$index(0, t6);
  74843. if (mediaContext != null)
  74844. t5.$indexSet(0, newSelector, mediaContext);
  74845. }
  74846. }
  74847. };
  74848. S.Extension0.prototype = {
  74849. assertCompatibleMediaContext$1: function(mediaContext) {
  74850. var t1 = this.mediaContext;
  74851. if (t1 == null)
  74852. return;
  74853. if (mediaContext != null && C.C_ListEquality.equals$2(t1, mediaContext))
  74854. return;
  74855. throw H.wrapException(E.SassException$0("You may not @extend selectors across media queries.", this.span));
  74856. },
  74857. toString$0: function(_) {
  74858. var t1 = H.S(this.extender) + " {@extend " + H.S(this.target);
  74859. return t1 + (this.isOptional ? " !optional" : "") + "}";
  74860. },
  74861. get$target: function() {
  74862. return this.target;
  74863. },
  74864. get$span: function() {
  74865. return this.span;
  74866. }
  74867. };
  74868. E.FiberClass.prototype = {};
  74869. E.Fiber.prototype = {};
  74870. F.FilesystemImporter0.prototype = {
  74871. canonicalize$1: function(url) {
  74872. var t1, resolved;
  74873. if (url.get$scheme() !== "file" && url.get$scheme() !== "")
  74874. return null;
  74875. t1 = $.$get$context();
  74876. resolved = B.resolveImportPath0(D.join(this._filesystem$_loadPath, t1.style.pathFromUri$1(M._parseUri(url)), null));
  74877. return resolved == null ? null : t1.toUri$1(t1.canonicalize$1(resolved));
  74878. },
  74879. load$1: function(url) {
  74880. var t3,
  74881. t1 = $.$get$context(),
  74882. path = t1.style.pathFromUri$1(M._parseUri(url)),
  74883. t2 = B.readFile0(path);
  74884. t1 = J.$eq$(J.get$platform$x(self.process), "win32") || J.$eq$(J.get$platform$x(self.process), "darwin") ? t1.toUri$1(F.realCasePath0(path)) : url;
  74885. t3 = M.Syntax_forPath0(path);
  74886. if ((t1 == null ? null : t1.get$scheme()) === "")
  74887. H.throwExpression(P.ArgumentError$value(t1, "sourceMapUrl", "must be absolute"));
  74888. return new E.ImporterResult0(t2, t1, t3);
  74889. },
  74890. toString$0: function(_) {
  74891. return this._filesystem$_loadPath;
  74892. }
  74893. };
  74894. G.FixedLengthListBuilder0.prototype = {
  74895. add$1: function(_, element) {
  74896. var t1, _this = this;
  74897. _this._fixed_length_list_builder0$_checkUnbuilt$0();
  74898. t1 = _this._fixed_length_list_builder0$_index;
  74899. _this._fixed_length_list_builder0$_list[t1] = element;
  74900. _this._fixed_length_list_builder0$_index = t1 + 1;
  74901. },
  74902. addAll$1: function(_, elements) {
  74903. var _this = this;
  74904. _this._fixed_length_list_builder0$_checkUnbuilt$0();
  74905. C.JSArray_methods.setAll$2(_this._fixed_length_list_builder0$_list, _this._fixed_length_list_builder0$_index, elements);
  74906. _this._fixed_length_list_builder0$_index = _this._fixed_length_list_builder0$_index + elements.length;
  74907. },
  74908. addRange$3: function(elements, start, end) {
  74909. var $length, t1, _this = this;
  74910. _this._fixed_length_list_builder0$_checkUnbuilt$0();
  74911. $length = (end == null ? J.get$length$asx(elements._collection$_source) : end) - start;
  74912. t1 = _this._fixed_length_list_builder0$_index;
  74913. C.JSArray_methods.setRange$4(_this._fixed_length_list_builder0$_list, t1, t1 + $length, elements, start);
  74914. _this._fixed_length_list_builder0$_index += $length;
  74915. },
  74916. addRange$2: function(elements, start) {
  74917. return this.addRange$3(elements, start, null);
  74918. },
  74919. build$0: function() {
  74920. this._fixed_length_list_builder0$_checkUnbuilt$0();
  74921. this._fixed_length_list_builder0$_index = -1;
  74922. return this._fixed_length_list_builder0$_list;
  74923. },
  74924. _fixed_length_list_builder0$_checkUnbuilt$0: function() {
  74925. if (this._fixed_length_list_builder0$_index === -1)
  74926. throw H.wrapException(P.StateError$("build() has already been called."));
  74927. }
  74928. };
  74929. B.ForRule0.prototype = {
  74930. accept$1$1: function(visitor) {
  74931. return visitor.visitForRule$1(this);
  74932. },
  74933. accept$1: function(visitor) {
  74934. return this.accept$1$1(visitor, type$.dynamic);
  74935. },
  74936. toString$0: function(_) {
  74937. var _this = this,
  74938. t1 = "@for $" + _this.variable + " from " + H.S(_this.from) + " ",
  74939. t2 = _this.children;
  74940. return t1 + (_this.isExclusive ? "to" : "through") + " " + H.S(_this.to) + " {" + (t2 && C.JSArray_methods).join$1(t2, " ") + "}";
  74941. },
  74942. get$span: function() {
  74943. return this.span;
  74944. }
  74945. };
  74946. L.ForwardRule0.prototype = {
  74947. accept$1$1: function(visitor) {
  74948. return visitor.visitForwardRule$1(this);
  74949. },
  74950. accept$1: function(visitor) {
  74951. return this.accept$1$1(visitor, type$.dynamic);
  74952. },
  74953. toString$0: function(_) {
  74954. var t3, _this = this,
  74955. t1 = "@forward " + H.S(new D.StringExpression0(X.Interpolation$0([J.toString$0$(_this.url)], null), true).asInterpolation$1$static(true).get$asPlain()),
  74956. t2 = _this.shownMixinsAndFunctions;
  74957. if (t2 != null)
  74958. t1 = t1 + " show " + _this._forward_rule0$_memberList$2(t2, _this.shownVariables);
  74959. else {
  74960. t2 = _this.hiddenMixinsAndFunctions;
  74961. if (t2 != null) {
  74962. t3 = t2._base;
  74963. t3 = t3.get$isNotEmpty(t3);
  74964. } else
  74965. t3 = false;
  74966. if (t3)
  74967. t1 = t1 + " hide " + _this._forward_rule0$_memberList$2(t2, _this.hiddenVariables);
  74968. }
  74969. t2 = _this.prefix;
  74970. if (t2 != null)
  74971. t1 += " as " + t2 + "*";
  74972. t2 = _this.configuration;
  74973. t1 = (t2.length !== 0 ? t1 + (" with (" + C.JSArray_methods.join$1(t2, ", ") + ")") : t1) + ";";
  74974. return t1.charCodeAt(0) == 0 ? t1 : t1;
  74975. },
  74976. _forward_rule0$_memberList$2: function(mixinsAndFunctions, variables) {
  74977. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_String),
  74978. t2 = this.shownMixinsAndFunctions;
  74979. if (t2 != null)
  74980. for (t2 = t2._base, t2 = t2.get$iterator(t2); t2.moveNext$0();)
  74981. t1.push(t2.get$current(t2));
  74982. t2 = this.shownVariables;
  74983. if (t2 != null)
  74984. for (t2 = t2._base, t2 = t2.get$iterator(t2); t2.moveNext$0();)
  74985. t1.push("$" + H.S(t2.get$current(t2)));
  74986. return C.JSArray_methods.join$1(t1, ", ");
  74987. },
  74988. $isAstNode0: 1,
  74989. $isStatement0: 1,
  74990. get$span: function() {
  74991. return this.span;
  74992. }
  74993. };
  74994. R.ForwardedModuleView0.prototype = {
  74995. get$url: function() {
  74996. return this._forwarded_view0$_inner.get$url();
  74997. },
  74998. get$upstream: function() {
  74999. return this._forwarded_view0$_inner.get$upstream();
  75000. },
  75001. get$extender: function() {
  75002. return this._forwarded_view0$_inner.get$extender();
  75003. },
  75004. get$css: function(_) {
  75005. var t1 = this._forwarded_view0$_inner;
  75006. return t1.get$css(t1);
  75007. },
  75008. get$transitivelyContainsCss: function() {
  75009. return this._forwarded_view0$_inner.get$transitivelyContainsCss();
  75010. },
  75011. get$transitivelyContainsExtensions: function() {
  75012. return this._forwarded_view0$_inner.get$transitivelyContainsExtensions();
  75013. },
  75014. setVariable$3: function($name, value, nodeWithSpan) {
  75015. var _s19_ = "Undefined variable.",
  75016. t1 = this._forwarded_view0$_rule,
  75017. t2 = t1.shownVariables;
  75018. if (t2 != null && !t2._base.contains$1(0, $name))
  75019. throw H.wrapException(E.SassScriptException$0(_s19_));
  75020. else {
  75021. t2 = t1.hiddenVariables;
  75022. if (t2 != null && t2._base.contains$1(0, $name))
  75023. throw H.wrapException(E.SassScriptException$0(_s19_));
  75024. }
  75025. t1 = t1.prefix;
  75026. if (t1 != null) {
  75027. if (!C.JSString_methods.startsWith$1($name, t1))
  75028. throw H.wrapException(E.SassScriptException$0(_s19_));
  75029. $name = C.JSString_methods.substring$1($name, t1.length);
  75030. }
  75031. return this._forwarded_view0$_inner.setVariable$3($name, value, nodeWithSpan);
  75032. },
  75033. variableIdentity$1: function($name) {
  75034. var t1 = this._forwarded_view0$_rule.prefix;
  75035. if (t1 != null)
  75036. $name = J.substring$1$s($name, t1.length);
  75037. return this._forwarded_view0$_inner.variableIdentity$1($name);
  75038. },
  75039. $eq: function(_, other) {
  75040. if (other == null)
  75041. return false;
  75042. return other instanceof R.ForwardedModuleView0 && J.$eq$(this._forwarded_view0$_inner, other._forwarded_view0$_inner) && this._forwarded_view0$_rule === other._forwarded_view0$_rule;
  75043. },
  75044. get$hashCode: function(_) {
  75045. return (J.get$hashCode$(this._forwarded_view0$_inner) ^ H.Primitives_objectHashCode(this._forwarded_view0$_rule)) >>> 0;
  75046. },
  75047. cloneCss$0: function() {
  75048. return R.ForwardedModuleView$0(this._forwarded_view0$_inner.cloneCss$0(), this._forwarded_view0$_rule, this.$ti._precomputed1);
  75049. },
  75050. toString$0: function(_) {
  75051. return "forwarded " + H.S(this._forwarded_view0$_inner);
  75052. },
  75053. $isModule0: 1,
  75054. get$variables: function() {
  75055. return this.variables;
  75056. },
  75057. get$variableNodes: function() {
  75058. return this.variableNodes;
  75059. },
  75060. get$functions: function(receiver) {
  75061. return this.functions;
  75062. },
  75063. get$mixins: function() {
  75064. return this.mixins;
  75065. }
  75066. };
  75067. F.FunctionExpression0.prototype = {
  75068. accept$1$1: function(visitor) {
  75069. return visitor.visitFunctionExpression$1(this);
  75070. },
  75071. accept$1: function(visitor) {
  75072. return this.accept$1$1(visitor, type$.dynamic);
  75073. },
  75074. toString$0: function(_) {
  75075. var t1 = this.namespace;
  75076. t1 = t1 != null ? t1 + "." : "";
  75077. t1 += this.name.toString$0(0) + this.$arguments.toString$0(0);
  75078. return t1.charCodeAt(0) == 0 ? t1 : t1;
  75079. },
  75080. $isExpression0: 1,
  75081. $isAstNode0: 1,
  75082. get$span: function() {
  75083. return this.span;
  75084. }
  75085. };
  75086. F.JSFunction0.prototype = {};
  75087. F.SassFunction0.prototype = {
  75088. accept$1$1: function(visitor) {
  75089. var t1;
  75090. if (!visitor._inspect)
  75091. H.throwExpression(E.SassScriptException$0(this.toString$0(0) + " isn't a valid CSS value."));
  75092. t1 = visitor._buffer;
  75093. t1.write$1(0, "get-function(");
  75094. visitor._serialize0$_visitQuotedString$1(this.callable.get$name());
  75095. t1.writeCharCode$1(41);
  75096. return null;
  75097. },
  75098. accept$1: function(visitor) {
  75099. return this.accept$1$1(visitor, type$.dynamic);
  75100. },
  75101. assertFunction$1: function($name) {
  75102. return this;
  75103. },
  75104. $eq: function(_, other) {
  75105. if (other == null)
  75106. return false;
  75107. return other instanceof F.SassFunction0 && J.$eq$(this.callable, other.callable);
  75108. },
  75109. get$hashCode: function(_) {
  75110. return J.get$hashCode$(this.callable);
  75111. }
  75112. };
  75113. M.FunctionRule0.prototype = {
  75114. accept$1$1: function(visitor) {
  75115. return visitor.visitFunctionRule$1(this);
  75116. },
  75117. accept$1: function(visitor) {
  75118. return this.accept$1$1(visitor, type$.dynamic);
  75119. },
  75120. toString$0: function(_) {
  75121. var t1 = this.children;
  75122. return "@function " + H.S(this.name) + "(" + H.S(this.$arguments) + ") {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
  75123. }
  75124. };
  75125. Y.unifyComplex_closure0.prototype = {
  75126. call$1: function(complex) {
  75127. var t1 = J.getInterceptor$asx(complex);
  75128. return t1.sublist$2(complex, 0, t1.get$length(complex) - 1);
  75129. }
  75130. };
  75131. Y._weaveParents_closure6.prototype = {
  75132. call$2: function(group1, group2) {
  75133. var unified, t1, _null = null;
  75134. if (C.C_ListEquality.equals$2(group1, group2))
  75135. return group1;
  75136. if (!(J.get$first$ax(group1) instanceof X.CompoundSelector0) || !(J.get$first$ax(group2) instanceof X.CompoundSelector0))
  75137. return _null;
  75138. if (Y.complexIsParentSuperselector0(group1, group2))
  75139. return group2;
  75140. if (Y.complexIsParentSuperselector0(group2, group1))
  75141. return group1;
  75142. if (!Y._mustUnify0(group1, group2))
  75143. return _null;
  75144. unified = Y.unifyComplex0(H.setRuntimeTypeInfo([group1, group2], type$.JSArray_List_ComplexSelectorComponent_2));
  75145. if (unified == null)
  75146. return _null;
  75147. t1 = J.getInterceptor$asx(unified);
  75148. if (t1.get$length(unified) > 1)
  75149. return _null;
  75150. return t1.get$first(unified);
  75151. }
  75152. };
  75153. Y._weaveParents_closure7.prototype = {
  75154. call$1: function(sequence) {
  75155. return Y.complexIsParentSuperselector0(sequence.get$first(sequence), this.group);
  75156. }
  75157. };
  75158. Y._weaveParents_closure8.prototype = {
  75159. call$1: function(chunk) {
  75160. return J.expand$1$1$ax(chunk, new Y._weaveParents__closure4(), type$.ComplexSelectorComponent_2);
  75161. }
  75162. };
  75163. Y._weaveParents__closure4.prototype = {
  75164. call$1: function(group) {
  75165. return group;
  75166. }
  75167. };
  75168. Y._weaveParents_closure9.prototype = {
  75169. call$1: function(sequence) {
  75170. return sequence.get$length(sequence) === 0;
  75171. }
  75172. };
  75173. Y._weaveParents_closure10.prototype = {
  75174. call$1: function(chunk) {
  75175. return J.expand$1$1$ax(chunk, new Y._weaveParents__closure3(), type$.ComplexSelectorComponent_2);
  75176. }
  75177. };
  75178. Y._weaveParents__closure3.prototype = {
  75179. call$1: function(group) {
  75180. return group;
  75181. }
  75182. };
  75183. Y._weaveParents_closure11.prototype = {
  75184. call$1: function(choice) {
  75185. return J.get$isNotEmpty$asx(choice);
  75186. }
  75187. };
  75188. Y._weaveParents_closure12.prototype = {
  75189. call$1: function(path) {
  75190. var t1 = J.expand$1$1$ax(path, new Y._weaveParents__closure2(), type$.ComplexSelectorComponent_2);
  75191. return P.List_List$from(t1, true, t1.$ti._eval$1("Iterable.E"));
  75192. }
  75193. };
  75194. Y._weaveParents__closure2.prototype = {
  75195. call$1: function(group) {
  75196. return group;
  75197. }
  75198. };
  75199. Y._mustUnify_closure0.prototype = {
  75200. call$1: function(component) {
  75201. return component instanceof X.CompoundSelector0 && C.JSArray_methods.any$1(component.components, new Y._mustUnify__closure0(this.uniqueSelectors));
  75202. }
  75203. };
  75204. Y._mustUnify__closure0.prototype = {
  75205. call$1: function(simple) {
  75206. var t1;
  75207. if (!(simple instanceof N.IDSelector0))
  75208. t1 = simple instanceof D.PseudoSelector0 && !simple.isClass;
  75209. else
  75210. t1 = true;
  75211. return t1 && this.uniqueSelectors.contains$1(0, simple);
  75212. }
  75213. };
  75214. Y.paths_closure0.prototype = {
  75215. call$2: function(paths, choice) {
  75216. var t1 = this.T;
  75217. t1 = J.expand$1$1$ax(choice, new Y.paths__closure0(paths, t1), t1._eval$1("List<0>"));
  75218. return P.List_List$from(t1, true, t1.$ti._eval$1("Iterable.E"));
  75219. }
  75220. };
  75221. Y.paths__closure0.prototype = {
  75222. call$1: function(option) {
  75223. var t1 = this.T;
  75224. return J.map$1$1$ax(this.paths, new Y.paths___closure0(option, t1), t1._eval$1("List<0>"));
  75225. },
  75226. $signature: function() {
  75227. return this.T._eval$1("Iterable<List<0>>(0)");
  75228. }
  75229. };
  75230. Y.paths___closure0.prototype = {
  75231. call$1: function(path) {
  75232. var t2,
  75233. t1 = H.setRuntimeTypeInfo([], this.T._eval$1("JSArray<0>"));
  75234. for (t2 = J.get$iterator$ax(path); t2.moveNext$0();)
  75235. t1.push(t2.get$current(t2));
  75236. t1.push(this.option);
  75237. return t1;
  75238. }
  75239. };
  75240. Y._hasRoot_closure0.prototype = {
  75241. call$1: function(simple) {
  75242. return simple instanceof D.PseudoSelector0 && simple.isClass && simple.normalizedName === "root";
  75243. }
  75244. };
  75245. Y.listIsSuperslector_closure0.prototype = {
  75246. call$1: function(complex1) {
  75247. return C.JSArray_methods.any$1(this.list1, new Y.listIsSuperslector__closure0(complex1));
  75248. }
  75249. };
  75250. Y.listIsSuperslector__closure0.prototype = {
  75251. call$1: function(complex2) {
  75252. return Y.complexIsSuperselector0(complex2.components, this.complex1.components);
  75253. }
  75254. };
  75255. Y._simpleIsSuperselectorOfCompound_closure0.prototype = {
  75256. call$1: function(theirSimple) {
  75257. var t1 = this.simple;
  75258. if (J.$eq$(t1, theirSimple))
  75259. return true;
  75260. if (theirSimple instanceof D.PseudoSelector0 && theirSimple.selector != null && $._subselectorPseudos0.contains$1(0, theirSimple.normalizedName))
  75261. return C.JSArray_methods.every$1(theirSimple.selector.components, new Y._simpleIsSuperselectorOfCompound__closure0(t1));
  75262. else
  75263. return false;
  75264. }
  75265. };
  75266. Y._simpleIsSuperselectorOfCompound__closure0.prototype = {
  75267. call$1: function(complex) {
  75268. var t1 = complex.components;
  75269. if (t1.length !== 1)
  75270. return false;
  75271. return C.JSArray_methods.contains$1(type$.CompoundSelector_2._as(C.JSArray_methods.get$single(t1)).components, this.simple);
  75272. }
  75273. };
  75274. Y._selectorPseudoIsSuperselector_closure6.prototype = {
  75275. call$1: function(pseudo2) {
  75276. var t1 = pseudo2.selector;
  75277. return Y.listIsSuperslector0(this.pseudo1.selector.components, t1.components);
  75278. }
  75279. };
  75280. Y._selectorPseudoIsSuperselector_closure7.prototype = {
  75281. call$1: function(complex1) {
  75282. var t1 = complex1.components,
  75283. t2 = H.setRuntimeTypeInfo([], type$.JSArray_ComplexSelectorComponent_2),
  75284. t3 = this.parents;
  75285. if (t3 != null)
  75286. for (t3 = t3.get$iterator(t3); t3.moveNext$0();)
  75287. t2.push(t3.get$current(t3));
  75288. t2.push(this.compound2);
  75289. return Y.complexIsSuperselector0(t1, t2);
  75290. }
  75291. };
  75292. Y._selectorPseudoIsSuperselector_closure8.prototype = {
  75293. call$1: function(pseudo2) {
  75294. var t1 = pseudo2.selector;
  75295. return Y.listIsSuperslector0(this.pseudo1.selector.components, t1.components);
  75296. }
  75297. };
  75298. Y._selectorPseudoIsSuperselector_closure9.prototype = {
  75299. call$1: function(pseudo2) {
  75300. var t1 = pseudo2.selector;
  75301. return Y.listIsSuperslector0(this.pseudo1.selector.components, t1.components);
  75302. }
  75303. };
  75304. Y._selectorPseudoIsSuperselector_closure10.prototype = {
  75305. call$1: function(complex) {
  75306. return C.JSArray_methods.any$1(this.compound2.components, new Y._selectorPseudoIsSuperselector__closure0(complex, this.pseudo1));
  75307. }
  75308. };
  75309. Y._selectorPseudoIsSuperselector__closure0.prototype = {
  75310. call$1: function(simple2) {
  75311. var compound1, _this = this;
  75312. if (simple2 instanceof F.TypeSelector0) {
  75313. compound1 = C.JSArray_methods.get$last(_this.complex.components);
  75314. return compound1 instanceof X.CompoundSelector0 && C.JSArray_methods.any$1(compound1.components, new Y._selectorPseudoIsSuperselector___closure1(simple2));
  75315. } else if (simple2 instanceof N.IDSelector0) {
  75316. compound1 = C.JSArray_methods.get$last(_this.complex.components);
  75317. return compound1 instanceof X.CompoundSelector0 && C.JSArray_methods.any$1(compound1.components, new Y._selectorPseudoIsSuperselector___closure2(simple2));
  75318. } else if (simple2 instanceof D.PseudoSelector0 && simple2.name === _this.pseudo1.name && simple2.selector != null)
  75319. return Y.listIsSuperslector0(simple2.selector.components, H.setRuntimeTypeInfo([_this.complex], type$.JSArray_ComplexSelector_2));
  75320. else
  75321. return false;
  75322. }
  75323. };
  75324. Y._selectorPseudoIsSuperselector___closure1.prototype = {
  75325. call$1: function(simple1) {
  75326. var t1;
  75327. if (simple1 instanceof F.TypeSelector0) {
  75328. t1 = this.simple2.name.$eq(0, simple1.name);
  75329. t1 = !t1;
  75330. } else
  75331. t1 = false;
  75332. return t1;
  75333. }
  75334. };
  75335. Y._selectorPseudoIsSuperselector___closure2.prototype = {
  75336. call$1: function(simple1) {
  75337. var t1;
  75338. if (simple1 instanceof N.IDSelector0) {
  75339. t1 = simple1.name;
  75340. t1 = this.simple2.name !== t1;
  75341. } else
  75342. t1 = false;
  75343. return t1;
  75344. }
  75345. };
  75346. Y._selectorPseudoIsSuperselector_closure11.prototype = {
  75347. call$1: function(pseudo2) {
  75348. return J.$eq$(this.pseudo1.selector, pseudo2.selector);
  75349. }
  75350. };
  75351. Y._selectorPseudoIsSuperselector_closure12.prototype = {
  75352. call$1: function(pseudo2) {
  75353. var t1, t2;
  75354. if (pseudo2 instanceof D.PseudoSelector0) {
  75355. t1 = this.pseudo1;
  75356. if (pseudo2.name === t1.name)
  75357. if (pseudo2.argument == t1.argument) {
  75358. t2 = pseudo2.selector;
  75359. t2 = Y.listIsSuperslector0(t1.selector.components, t2.components);
  75360. t1 = t2;
  75361. } else
  75362. t1 = false;
  75363. else
  75364. t1 = false;
  75365. } else
  75366. t1 = false;
  75367. return t1;
  75368. }
  75369. };
  75370. Y._selectorPseudosNamed_closure0.prototype = {
  75371. call$1: function(pseudo) {
  75372. return pseudo.isClass === this.isClass && pseudo.selector != null && pseudo.name === this.name;
  75373. }
  75374. };
  75375. Y.closure107.prototype = {
  75376. call$1: function($arguments) {
  75377. var t1 = J.getInterceptor$asx($arguments);
  75378. return t1.$index($arguments, 0).get$isTruthy() ? t1.$index($arguments, 1) : t1.$index($arguments, 2);
  75379. },
  75380. $signature: 3
  75381. };
  75382. N.IDSelector0.prototype = {
  75383. get$minSpecificity: function() {
  75384. return H._asIntNullable(Math.pow(M.SimpleSelector0.prototype.get$minSpecificity.call(this), 2));
  75385. },
  75386. accept$1$1: function(visitor) {
  75387. var t1 = visitor._buffer;
  75388. t1.writeCharCode$1(35);
  75389. t1.write$1(0, this.name);
  75390. return null;
  75391. },
  75392. accept$1: function(visitor) {
  75393. return this.accept$1$1(visitor, type$.dynamic);
  75394. },
  75395. addSuffix$1: function(suffix) {
  75396. return new N.IDSelector0(this.name + suffix);
  75397. },
  75398. unify$1: function(compound) {
  75399. if (C.JSArray_methods.any$1(compound, new N.IDSelector_unify_closure0(this)))
  75400. return null;
  75401. return this.super$SimpleSelector$unify0(compound);
  75402. },
  75403. $eq: function(_, other) {
  75404. if (other == null)
  75405. return false;
  75406. return other instanceof N.IDSelector0 && other.name === this.name;
  75407. },
  75408. get$hashCode: function(_) {
  75409. return C.JSString_methods.get$hashCode(this.name);
  75410. }
  75411. };
  75412. N.IDSelector_unify_closure0.prototype = {
  75413. call$1: function(simple) {
  75414. var t1;
  75415. if (simple instanceof N.IDSelector0) {
  75416. t1 = simple.name;
  75417. t1 = this.$this.name !== t1;
  75418. } else
  75419. t1 = false;
  75420. return t1;
  75421. }
  75422. };
  75423. L.IfExpression0.prototype = {
  75424. accept$1$1: function(visitor) {
  75425. return visitor.visitIfExpression$1(this);
  75426. },
  75427. accept$1: function(visitor) {
  75428. return this.accept$1$1(visitor, type$.dynamic);
  75429. },
  75430. toString$0: function(_) {
  75431. return "if" + this.$arguments.toString$0(0);
  75432. },
  75433. $isExpression0: 1,
  75434. $isAstNode0: 1,
  75435. get$span: function() {
  75436. return this.span;
  75437. }
  75438. };
  75439. V.IfRule0.prototype = {
  75440. accept$1$1: function(visitor) {
  75441. return visitor.visitIfRule$1(this);
  75442. },
  75443. accept$1: function(visitor) {
  75444. return this.accept$1$1(visitor, type$.dynamic);
  75445. },
  75446. toString$0: function(_) {
  75447. var t2, t1 = {};
  75448. t1.first = true;
  75449. t2 = this.clauses;
  75450. return new H.MappedListIterable(t2, new V.IfRule_toString_closure0(t1), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,String>")).join$1(0, " ");
  75451. },
  75452. $isAstNode0: 1,
  75453. $isStatement0: 1,
  75454. get$span: function() {
  75455. return this.span;
  75456. }
  75457. };
  75458. V.IfRule_toString_closure0.prototype = {
  75459. call$1: function(clause) {
  75460. var t1 = this._box_0,
  75461. $name = t1.first ? "if" : "else";
  75462. t1.first = false;
  75463. return "@" + $name + " " + H.S(clause.expression) + " {" + C.JSArray_methods.join$1(clause.children, " ") + "}";
  75464. }
  75465. };
  75466. V.IfClause0.prototype = {
  75467. toString$0: function(_) {
  75468. var t1 = this.expression;
  75469. t1 = t1 == null ? "@else" : "@if " + t1.toString$0(0);
  75470. return t1 + (" {" + C.JSArray_methods.join$1(this.children, " ") + "}");
  75471. }
  75472. };
  75473. V.IfClause$__closure0.prototype = {
  75474. call$1: function(child) {
  75475. var t1;
  75476. if (!(child instanceof Z.VariableDeclaration0))
  75477. if (!(child instanceof M.FunctionRule0))
  75478. if (!(child instanceof T.MixinRule0))
  75479. t1 = child instanceof B.ImportRule0 && C.JSArray_methods.any$1(child.imports, new V.IfClause$___closure0());
  75480. else
  75481. t1 = true;
  75482. else
  75483. t1 = true;
  75484. else
  75485. t1 = true;
  75486. return t1;
  75487. }
  75488. };
  75489. V.IfClause$___closure0.prototype = {
  75490. call$1: function($import) {
  75491. return $import instanceof B.DynamicImport0;
  75492. }
  75493. };
  75494. F.NodeImporter.prototype = {
  75495. load$3: function(url, previous, forImport) {
  75496. var result, previousString, t1, t2, t3, _i, value, _this = this,
  75497. parsed = P.Uri_parse(url);
  75498. if (parsed.get$scheme() === "" || parsed.get$scheme() === "file") {
  75499. result = _this._resolveRelativePath$3($.$get$context().style.pathFromUri$1(M._parseUri(parsed)), previous, forImport);
  75500. if (result != null)
  75501. return result;
  75502. }
  75503. previousString = previous.get$scheme() === "file" ? $.$get$context().style.pathFromUri$1(M._parseUri(previous)) : previous.toString$0(0);
  75504. for (t1 = _this._implementation$_importers, t2 = t1.length, t3 = _this._implementation$_context, _i = 0; _i < t2; ++_i) {
  75505. value = J.apply$2$x(t1[_i], t3, [url, previousString]);
  75506. if (value != null)
  75507. return _this._handleImportResult$4(url, previous, value, forImport);
  75508. }
  75509. return _this._resolveLoadPathFromUrl$3(parsed, previous, forImport);
  75510. },
  75511. loadAsync$3: function(url, previous, forImport) {
  75512. return this.loadAsync$body$NodeImporter(url, previous, forImport);
  75513. },
  75514. loadAsync$body$NodeImporter: function(url, previous, forImport) {
  75515. var $async$goto = 0,
  75516. $async$completer = P._makeAsyncAwaitCompleter(type$.Tuple2_String_String),
  75517. $async$returnValue, $async$self = this, result, previousString, t1, t2, _i, value, parsed;
  75518. var $async$loadAsync$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  75519. if ($async$errorCode === 1)
  75520. return P._asyncRethrow($async$result, $async$completer);
  75521. while (true)
  75522. switch ($async$goto) {
  75523. case 0:
  75524. // Function start
  75525. parsed = P.Uri_parse(url);
  75526. if (parsed.get$scheme() === "" || parsed.get$scheme() === "file") {
  75527. result = $async$self._resolveRelativePath$3($.$get$context().style.pathFromUri$1(M._parseUri(parsed)), previous, forImport);
  75528. if (result != null) {
  75529. $async$returnValue = result;
  75530. // goto return
  75531. $async$goto = 1;
  75532. break;
  75533. }
  75534. }
  75535. previousString = previous.get$scheme() === "file" ? $.$get$context().style.pathFromUri$1(M._parseUri(previous)) : previous.toString$0(0);
  75536. t1 = $async$self._implementation$_importers, t2 = t1.length, _i = 0;
  75537. case 3:
  75538. // for condition
  75539. if (!(_i < t2)) {
  75540. // goto after for
  75541. $async$goto = 5;
  75542. break;
  75543. }
  75544. $async$goto = 6;
  75545. return P._asyncAwait($async$self._callImporterAsync$3(t1[_i], url, previousString), $async$loadAsync$3);
  75546. case 6:
  75547. // returning from await.
  75548. value = $async$result;
  75549. if (value != null) {
  75550. $async$returnValue = $async$self._handleImportResult$4(url, previous, value, forImport);
  75551. // goto return
  75552. $async$goto = 1;
  75553. break;
  75554. }
  75555. case 4:
  75556. // for update
  75557. ++_i;
  75558. // goto for condition
  75559. $async$goto = 3;
  75560. break;
  75561. case 5:
  75562. // after for
  75563. $async$returnValue = $async$self._resolveLoadPathFromUrl$3(parsed, previous, forImport);
  75564. // goto return
  75565. $async$goto = 1;
  75566. break;
  75567. case 1:
  75568. // return
  75569. return P._asyncReturn($async$returnValue, $async$completer);
  75570. }
  75571. });
  75572. return P._asyncStartSync($async$loadAsync$3, $async$completer);
  75573. },
  75574. _resolveRelativePath$3: function(path, previous, forImport) {
  75575. var result,
  75576. t1 = $.$get$context(),
  75577. t2 = t1.style;
  75578. if (t2.rootLength$1(path) > 0)
  75579. return this._tryPath$2(path, forImport);
  75580. if (previous.get$scheme() === "file") {
  75581. result = this._tryPath$2(D.join(t1.dirname$1(t2.pathFromUri$1(M._parseUri(previous))), path, null), forImport);
  75582. if (result != null)
  75583. return result;
  75584. }
  75585. return null;
  75586. },
  75587. _resolveLoadPathFromUrl$3: function(url, previous, forImport) {
  75588. return url.get$scheme() === "" || url.get$scheme() === "file" ? this._resolveLoadPath$3($.$get$context().style.pathFromUri$1(M._parseUri(url)), previous, forImport) : null;
  75589. },
  75590. _resolveLoadPath$3: function(path, previous, forImport) {
  75591. var t1, t2, _i, includePath, t3, result, _null = null,
  75592. cwdResult = this._tryPath$2(D.absolute(path), forImport);
  75593. if (cwdResult != null)
  75594. return cwdResult;
  75595. for (t1 = this._includePaths, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  75596. includePath = t1[_i];
  75597. t3 = $.$get$context();
  75598. result = this._tryPath$2(t3.absolute$7(t3.join$8(0, includePath, path, _null, _null, _null, _null, _null, _null), _null, _null, _null, _null, _null, _null), forImport);
  75599. if (result != null)
  75600. return result;
  75601. }
  75602. return _null;
  75603. },
  75604. _tryPath$2: function(path, forImport) {
  75605. var resolved = forImport ? B.inImportRule0(new F.NodeImporter__tryPath_closure(path)) : B.resolveImportPath0(path);
  75606. return resolved == null ? null : new S.Tuple2(B.readFile0(resolved), J.toString$0$($.$get$context().toUri$1(resolved)), type$.Tuple2_String_String);
  75607. },
  75608. _handleImportResult$4: function(url, previous, value, forImport) {
  75609. var resolved,
  75610. t1 = self.Error;
  75611. if (H._asBoolNullable($.$get$_jsInstanceOf().call$2(value, t1)))
  75612. throw H.wrapException(value);
  75613. if (!type$.NodeImporterResult._is(value))
  75614. return null;
  75615. t1 = J.getInterceptor$x(value);
  75616. if (t1.get$file(value) == null) {
  75617. t1 = t1.get$contents(value);
  75618. if (t1 == null)
  75619. t1 = "";
  75620. return new S.Tuple2(t1, url, type$.Tuple2_String_String);
  75621. } else if (t1.get$contents(value) != null)
  75622. return new S.Tuple2(t1.get$contents(value), t1.get$file(value), type$.Tuple2_String_String);
  75623. else {
  75624. resolved = this._resolveRelativePath$3(t1.get$file(value), previous, forImport);
  75625. if (resolved == null)
  75626. resolved = this._resolveLoadPath$3(t1.get$file(value), previous, forImport);
  75627. if (resolved != null)
  75628. return resolved;
  75629. throw H.wrapException("Can't find stylesheet to import.");
  75630. }
  75631. },
  75632. _callImporterAsync$3: function(importer, url, previousString) {
  75633. return this._callImporterAsync$body$NodeImporter(importer, url, previousString);
  75634. },
  75635. _callImporterAsync$body$NodeImporter: function(importer, url, previousString) {
  75636. var $async$goto = 0,
  75637. $async$completer = P._makeAsyncAwaitCompleter(type$.Object),
  75638. $async$returnValue, $async$self = this, t1, result;
  75639. var $async$_callImporterAsync$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  75640. if ($async$errorCode === 1)
  75641. return P._asyncRethrow($async$result, $async$completer);
  75642. while (true)
  75643. switch ($async$goto) {
  75644. case 0:
  75645. // Function start
  75646. t1 = new P._Future($.Zone__current, type$._Future_Object);
  75647. result = J.apply$2$x(importer, $async$self._implementation$_context, [url, previousString, P.allowInterop(new P._AsyncCompleter(t1, type$._AsyncCompleter_Object).get$complete())]);
  75648. $async$goto = H._asBoolNullable($.$get$_isUndefined().call$1(result)) ? 3 : 4;
  75649. break;
  75650. case 3:
  75651. // then
  75652. $async$goto = 5;
  75653. return P._asyncAwait(t1, $async$_callImporterAsync$3);
  75654. case 5:
  75655. // returning from await.
  75656. $async$returnValue = $async$result;
  75657. // goto return
  75658. $async$goto = 1;
  75659. break;
  75660. case 4:
  75661. // join
  75662. $async$returnValue = result;
  75663. // goto return
  75664. $async$goto = 1;
  75665. break;
  75666. case 1:
  75667. // return
  75668. return P._asyncReturn($async$returnValue, $async$completer);
  75669. }
  75670. });
  75671. return P._asyncStartSync($async$_callImporterAsync$3, $async$completer);
  75672. }
  75673. };
  75674. F.NodeImporter__tryPath_closure.prototype = {
  75675. call$0: function() {
  75676. return B.resolveImportPath0(this.path);
  75677. },
  75678. $signature: 10
  75679. };
  75680. F.ModifiableCssImport0.prototype = {
  75681. accept$1$1: function(visitor) {
  75682. return visitor.visitCssImport$1(this);
  75683. },
  75684. accept$1: function(visitor) {
  75685. return this.accept$1$1(visitor, type$.dynamic);
  75686. },
  75687. $isCssImport0: 1,
  75688. get$span: function() {
  75689. return this.span;
  75690. }
  75691. };
  75692. F.Import0.prototype = {$isAstNode0: 1};
  75693. R.ImportCache0.prototype = {
  75694. canonicalize$4$baseImporter$baseUrl$forImport: function(url, baseImporter, baseUrl, forImport) {
  75695. var resolvedUrl, canonicalUrl;
  75696. if (baseImporter != null) {
  75697. resolvedUrl = baseUrl != null ? baseUrl.resolveUri$1(url) : url;
  75698. canonicalUrl = this._import_cache$_canonicalize$3(baseImporter, resolvedUrl, forImport);
  75699. if (canonicalUrl != null)
  75700. return new S.Tuple3(baseImporter, canonicalUrl, resolvedUrl, type$.Tuple3_Importer_Uri_Uri_2);
  75701. }
  75702. return this._import_cache$_canonicalizeCache.putIfAbsent$2(new S.Tuple2(url, forImport, type$.Tuple2_Uri_bool), new R.ImportCache_canonicalize_closure0(this, url, forImport));
  75703. },
  75704. _import_cache$_canonicalize$3: function(importer, url, forImport) {
  75705. var result = forImport ? B.inImportRule0(new R.ImportCache__canonicalize_closure0(importer, url)) : importer.canonicalize$1(url);
  75706. if ((result == null ? null : result.get$scheme()) === "")
  75707. this._import_cache$_logger.warn$2$deprecation("Importer " + H.S(importer) + " canonicalized " + H.S(url) + " to " + H.S(result) + ".\nRelative canonical URLs are deprecated and will eventually be disallowed.\n", true);
  75708. return result;
  75709. },
  75710. import$4$baseImporter$baseUrl$forImport: function(url, baseImporter, baseUrl, forImport) {
  75711. var t1,
  75712. tuple = this.canonicalize$4$baseImporter$baseUrl$forImport(url, baseImporter, baseUrl, forImport);
  75713. if (tuple == null)
  75714. return null;
  75715. t1 = tuple.item1;
  75716. return new S.Tuple2(t1, this.importCanonical$3(t1, tuple.item2, tuple.item3), type$.Tuple2_Importer_Stylesheet_2);
  75717. },
  75718. importCanonical$3: function(importer, canonicalUrl, originalUrl) {
  75719. return this._import_cache$_importCache.putIfAbsent$2(canonicalUrl, new R.ImportCache_importCanonical_closure0(this, importer, canonicalUrl, originalUrl));
  75720. },
  75721. humanize$1: function(canonicalUrl) {
  75722. var t1 = this._import_cache$_canonicalizeCache.get$values(),
  75723. t2 = H._instanceType(t1),
  75724. url = Y.minBy(new H.MappedIterable(new H.WhereIterable(t1, new R.ImportCache_humanize_closure2(canonicalUrl), t2._eval$1("WhereIterable<Iterable.E>")), new R.ImportCache_humanize_closure3(), t2._eval$1("MappedIterable<Iterable.E,Uri>")), new R.ImportCache_humanize_closure4(), type$.Uri, type$.dynamic);
  75725. if (url == null)
  75726. return canonicalUrl;
  75727. t1 = $.$get$url();
  75728. return url.resolve$1(X.ParsedPath_ParsedPath$parse(canonicalUrl.get$path(canonicalUrl), t1.style).get$basename());
  75729. }
  75730. };
  75731. R.ImportCache_canonicalize_closure0.prototype = {
  75732. call$0: function() {
  75733. var t1, t2, t3, _i, importer, canonicalUrl;
  75734. for (t1 = this.$this, t2 = this.url, t3 = this.forImport, _i = 0; false; ++_i) {
  75735. importer = C.List_empty17[_i];
  75736. canonicalUrl = t1._import_cache$_canonicalize$3(importer, t2, t3);
  75737. if (canonicalUrl != null)
  75738. return new S.Tuple3(importer, canonicalUrl, t2, type$.Tuple3_Importer_Uri_Uri_2);
  75739. }
  75740. return null;
  75741. },
  75742. $signature: 130
  75743. };
  75744. R.ImportCache__canonicalize_closure0.prototype = {
  75745. call$0: function() {
  75746. return this.importer.canonicalize$1(this.url);
  75747. },
  75748. $signature: 67
  75749. };
  75750. R.ImportCache_importCanonical_closure0.prototype = {
  75751. call$0: function() {
  75752. var t3, _this = this,
  75753. t1 = _this.canonicalUrl,
  75754. result = _this.importer.load$1(t1),
  75755. t2 = _this.$this;
  75756. t2._import_cache$_resultsCache.$indexSet(0, t1, result);
  75757. t3 = _this.originalUrl;
  75758. t1 = t3 == null ? t1 : t3.resolveUri$1(t1);
  75759. return V.Stylesheet_Stylesheet$parse0(result.contents, result.syntax, t2._import_cache$_logger, t1);
  75760. },
  75761. $signature: 88
  75762. };
  75763. R.ImportCache_humanize_closure2.prototype = {
  75764. call$1: function(tuple) {
  75765. var t1 = tuple == null ? null : tuple.item2;
  75766. return J.$eq$(t1, this.canonicalUrl);
  75767. }
  75768. };
  75769. R.ImportCache_humanize_closure3.prototype = {
  75770. call$1: function(tuple) {
  75771. return tuple.item3;
  75772. }
  75773. };
  75774. R.ImportCache_humanize_closure4.prototype = {
  75775. call$1: function(url) {
  75776. return J.get$length$asx(J.get$path$x(url));
  75777. },
  75778. $signature: 28
  75779. };
  75780. B.ImportRule0.prototype = {
  75781. accept$1$1: function(visitor) {
  75782. return visitor.visitImportRule$1(this);
  75783. },
  75784. accept$1: function(visitor) {
  75785. return this.accept$1$1(visitor, type$.dynamic);
  75786. },
  75787. toString$0: function(_) {
  75788. return "@import " + C.JSArray_methods.join$1(this.imports, ", ") + ";";
  75789. },
  75790. $isAstNode0: 1,
  75791. $isStatement0: 1,
  75792. get$span: function() {
  75793. return this.span;
  75794. }
  75795. };
  75796. M.Importer0.prototype = {};
  75797. F.NodeImporterResult0.prototype = {};
  75798. A.IncludeRule0.prototype = {
  75799. get$spanWithoutContent: function() {
  75800. var t2, t3,
  75801. t1 = this.span;
  75802. if (!(this.content == null)) {
  75803. t2 = t1.file;
  75804. t3 = this.$arguments.span;
  75805. t3 = B.SpanExtensions_trim0(t2.span$2(Y.FileLocation$_(t2, t1._file$_start).offset, Y.FileLocation$_(t3.file, t3._end).offset));
  75806. t1 = t3;
  75807. }
  75808. return t1;
  75809. },
  75810. accept$1$1: function(visitor) {
  75811. return visitor.visitIncludeRule$1(this);
  75812. },
  75813. accept$1: function(visitor) {
  75814. return this.accept$1$1(visitor, type$.dynamic);
  75815. },
  75816. toString$0: function(_) {
  75817. var t2, _this = this,
  75818. t1 = _this.namespace;
  75819. t1 = t1 != null ? "@include " + (t1 + ".") : "@include ";
  75820. t1 += _this.name;
  75821. t2 = _this.$arguments;
  75822. if (!t2.get$isEmpty(t2))
  75823. t1 += "(" + t2.toString$0(0) + ")";
  75824. t2 = _this.content;
  75825. t1 += t2 == null ? ";" : " " + t2.toString$0(0);
  75826. return t1.charCodeAt(0) == 0 ? t1 : t1;
  75827. },
  75828. $isAstNode0: 1,
  75829. $isStatement0: 1,
  75830. get$span: function() {
  75831. return this.span;
  75832. }
  75833. };
  75834. X.Interpolation0.prototype = {
  75835. get$asPlain: function() {
  75836. var first,
  75837. t1 = this.contents,
  75838. t2 = t1.length;
  75839. if (t2 === 0)
  75840. return "";
  75841. if (t2 > 1)
  75842. return null;
  75843. first = C.JSArray_methods.get$first(t1);
  75844. return typeof first == "string" ? first : null;
  75845. },
  75846. Interpolation$20: function(contents, span) {
  75847. var t1, t2, t3, i, t4, t5,
  75848. _s8_ = "contents";
  75849. for (t1 = this.contents, t2 = t1.length, t3 = type$.Expression_2, i = 0; i < t2; ++i) {
  75850. t4 = t1[i];
  75851. t5 = typeof t4 == "string";
  75852. if (!t5 && !t3._is(t4))
  75853. throw H.wrapException(P.ArgumentError$value(t1, _s8_, "May only contains Strings or Expressions."));
  75854. if (i !== 0 && typeof t1[i - 1] == "string" && t5)
  75855. throw H.wrapException(P.ArgumentError$value(t1, _s8_, "May not contain adjacent Strings."));
  75856. }
  75857. },
  75858. toString$0: function(_) {
  75859. var t1 = this.contents;
  75860. return new H.MappedListIterable(t1, new X.Interpolation_toString_closure0(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$0(0);
  75861. },
  75862. $isAstNode0: 1,
  75863. get$span: function() {
  75864. return this.span;
  75865. }
  75866. };
  75867. X.Interpolation_toString_closure0.prototype = {
  75868. call$1: function(value) {
  75869. return typeof value == "string" ? value : "#{" + H.S(value) + "}";
  75870. },
  75871. $signature: 27
  75872. };
  75873. X.SupportsInterpolation0.prototype = {
  75874. toString$0: function(_) {
  75875. return "#{" + H.S(this.expression) + "}";
  75876. },
  75877. $isAstNode0: 1,
  75878. get$span: function() {
  75879. return this.span;
  75880. }
  75881. };
  75882. Z.InterpolationBuffer0.prototype = {
  75883. add$1: function(_, expression) {
  75884. this._interpolation_buffer0$_flushText$0();
  75885. this._interpolation_buffer0$_contents.push(expression);
  75886. },
  75887. addInterpolation$1: function(interpolation) {
  75888. var first, t1, _this = this,
  75889. toAdd = interpolation.contents;
  75890. if (toAdd.length === 0)
  75891. return;
  75892. first = C.JSArray_methods.get$first(toAdd);
  75893. if (typeof first == "string") {
  75894. _this._interpolation_buffer0$_text._contents += first;
  75895. toAdd = H.SubListIterable$(toAdd, 1, null, H._arrayInstanceType(toAdd)._precomputed1);
  75896. }
  75897. _this._interpolation_buffer0$_flushText$0();
  75898. t1 = _this._interpolation_buffer0$_contents;
  75899. C.JSArray_methods.addAll$1(t1, toAdd);
  75900. if (typeof C.JSArray_methods.get$last(t1) == "string")
  75901. _this._interpolation_buffer0$_text._contents += H.S(t1.pop());
  75902. },
  75903. _interpolation_buffer0$_flushText$0: function() {
  75904. var t1 = this._interpolation_buffer0$_text,
  75905. t2 = t1._contents;
  75906. if (t2.length === 0)
  75907. return;
  75908. this._interpolation_buffer0$_contents.push(t2.charCodeAt(0) == 0 ? t2 : t2);
  75909. t1._contents = "";
  75910. },
  75911. interpolation$1: function(span) {
  75912. var t2, t3, _i, t1 = [];
  75913. for (t2 = this._interpolation_buffer0$_contents, t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i)
  75914. t1.push(t2[_i]);
  75915. t2 = this._interpolation_buffer0$_text._contents;
  75916. if (t2.length !== 0)
  75917. t1.push(t2.charCodeAt(0) == 0 ? t2 : t2);
  75918. return X.Interpolation$0(t1, span);
  75919. },
  75920. toString$0: function(_) {
  75921. var t1, t2, _i, t3, element;
  75922. for (t1 = this._interpolation_buffer0$_contents, t2 = t1.length, _i = 0, t3 = ""; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  75923. element = t1[_i];
  75924. t3 = typeof element == "string" ? t3 + element : t3 + "#{" + H.S(element) + H.Primitives_stringFromCharCode(125);
  75925. }
  75926. t1 = t3 + this._interpolation_buffer0$_text.toString$0(0);
  75927. return t1.charCodeAt(0) == 0 ? t1 : t1;
  75928. }
  75929. };
  75930. F.realCasePath_closure0.prototype = {
  75931. call$1: function(realPath) {
  75932. return B.equalsIgnoreCase0(X.ParsedPath_ParsedPath$parse(realPath, $.$get$context().style).get$basename(), this.basename);
  75933. }
  75934. };
  75935. U.ModifiableCssKeyframeBlock0.prototype = {
  75936. accept$1$1: function(visitor) {
  75937. return visitor.visitCssKeyframeBlock$1(this);
  75938. },
  75939. accept$1: function(visitor) {
  75940. return this.accept$1$1(visitor, type$.dynamic);
  75941. },
  75942. copyWithoutChildren$0: function() {
  75943. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
  75944. return new U.ModifiableCssKeyframeBlock0(this.selector, this.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1);
  75945. },
  75946. get$span: function() {
  75947. return this.span;
  75948. }
  75949. };
  75950. E.KeyframeSelectorParser0.prototype = {
  75951. parse$0: function() {
  75952. return this.wrapSpanFormatException$1(new E.KeyframeSelectorParser_parse_closure0(this));
  75953. },
  75954. _keyframe_selector$_percentage$0: function() {
  75955. var t3, next,
  75956. t1 = this.scanner,
  75957. t2 = t1.scanChar$1(43) ? H.Primitives_stringFromCharCode(43) : "",
  75958. second = t1.peekChar$0();
  75959. if (!T.isDigit0(second) && second !== 46)
  75960. t1.error$1("Expected number.");
  75961. while (true) {
  75962. t3 = t1.peekChar$0();
  75963. if (!(t3 != null && t3 >= 48 && t3 <= 57))
  75964. break;
  75965. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  75966. }
  75967. if (t1.peekChar$0() === 46) {
  75968. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  75969. while (true) {
  75970. t3 = t1.peekChar$0();
  75971. if (!(t3 != null && t3 >= 48 && t3 <= 57))
  75972. break;
  75973. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  75974. }
  75975. }
  75976. if (this.scanIdentifier$1("e")) {
  75977. t2 += t1.readChar$0();
  75978. next = t1.peekChar$0();
  75979. if (next === 43 || next === 45)
  75980. t2 += t1.readChar$0();
  75981. if (!T.isDigit0(t1.peekChar$0()))
  75982. t1.error$1("Expected digit.");
  75983. while (true) {
  75984. t3 = t1.peekChar$0();
  75985. if (!(t3 != null && t3 >= 48 && t3 <= 57))
  75986. break;
  75987. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  75988. }
  75989. }
  75990. t1.expectChar$1(37);
  75991. t2 += H.Primitives_stringFromCharCode(37);
  75992. return t2.charCodeAt(0) == 0 ? t2 : t2;
  75993. }
  75994. };
  75995. E.KeyframeSelectorParser_parse_closure0.prototype = {
  75996. call$0: function() {
  75997. var selectors = H.setRuntimeTypeInfo([], type$.JSArray_String),
  75998. t1 = this.$this,
  75999. t2 = t1.scanner;
  76000. do {
  76001. t1.whitespace$0();
  76002. if (t1.lookingAtIdentifier$0())
  76003. if (t1.scanIdentifier$1("from"))
  76004. selectors.push("from");
  76005. else {
  76006. t1.expectIdentifier$2$name("to", '"to" or "from"');
  76007. selectors.push("to");
  76008. }
  76009. else
  76010. selectors.push(t1._keyframe_selector$_percentage$0());
  76011. t1.whitespace$0();
  76012. } while (t2.scanChar$1(44));
  76013. t2.expectDone$0();
  76014. return selectors;
  76015. },
  76016. $signature: 32
  76017. };
  76018. K.LimitedMapView0.prototype = {
  76019. get$keys: function() {
  76020. return this._limited_map_view0$_keys;
  76021. },
  76022. get$length: function(_) {
  76023. return this._limited_map_view0$_keys._collection$_length;
  76024. },
  76025. get$isEmpty: function(_) {
  76026. return this._limited_map_view0$_keys._collection$_length === 0;
  76027. },
  76028. get$isNotEmpty: function(_) {
  76029. return this._limited_map_view0$_keys._collection$_length !== 0;
  76030. },
  76031. $index: function(_, key) {
  76032. return this._limited_map_view0$_keys.contains$1(0, key) ? this._limited_map_view0$_map.$index(0, key) : null;
  76033. },
  76034. containsKey$1: function(key) {
  76035. return this._limited_map_view0$_keys.contains$1(0, key);
  76036. },
  76037. remove$1: function(_, key) {
  76038. return this._limited_map_view0$_keys.contains$1(0, key) ? this._limited_map_view0$_map.remove$1(0, key) : null;
  76039. }
  76040. };
  76041. D.ListExpression0.prototype = {
  76042. accept$1$1: function(visitor) {
  76043. return visitor.visitListExpression$1(this);
  76044. },
  76045. accept$1: function(visitor) {
  76046. return this.accept$1$1(visitor, type$.dynamic);
  76047. },
  76048. toString$0: function(_) {
  76049. var _this = this,
  76050. t1 = _this.hasBrackets,
  76051. t2 = t1 ? H.Primitives_stringFromCharCode(91) : "",
  76052. t3 = _this.contents,
  76053. t4 = _this.separator === C.ListSeparator_comma0 ? ", " : " ";
  76054. t4 = t2 + new H.MappedListIterable(t3, new D.ListExpression_toString_closure0(_this), H._arrayInstanceType(t3)._eval$1("MappedListIterable<1,String>")).join$1(0, t4);
  76055. t1 = t1 ? t4 + H.Primitives_stringFromCharCode(93) : t4;
  76056. return t1.charCodeAt(0) == 0 ? t1 : t1;
  76057. },
  76058. _list3$_elementNeedsParens$1: function(expression) {
  76059. var t1, t2;
  76060. if (expression instanceof D.ListExpression0) {
  76061. if (expression.contents.length < 2)
  76062. return false;
  76063. if (expression.hasBrackets)
  76064. return false;
  76065. t1 = this.separator;
  76066. t2 = t1 === C.ListSeparator_comma0;
  76067. return t2 ? t2 : t1 !== C.ListSeparator_undecided0;
  76068. }
  76069. if (this.separator !== C.ListSeparator_space0)
  76070. return false;
  76071. if (expression instanceof X.UnaryOperationExpression0) {
  76072. t1 = expression.operator;
  76073. return t1 === C.UnaryOperator_j2w0 || t1 === C.UnaryOperator_U4G0;
  76074. }
  76075. return false;
  76076. },
  76077. $isExpression0: 1,
  76078. $isAstNode0: 1,
  76079. get$span: function() {
  76080. return this.span;
  76081. }
  76082. };
  76083. D.ListExpression_toString_closure0.prototype = {
  76084. call$1: function(element) {
  76085. return this.$this._list3$_elementNeedsParens$1(element) ? "(" + H.S(element) + ")" : J.toString$0$(element);
  76086. }
  76087. };
  76088. D.closure150.prototype = {
  76089. call$1: function($arguments) {
  76090. var t1 = J.$index$asx($arguments, 0).get$asList().length;
  76091. return new T.SassNumber0(t1, C.List_empty, C.List_empty, null);
  76092. },
  76093. $signature: 6
  76094. };
  76095. D.closure149.prototype = {
  76096. call$1: function($arguments) {
  76097. var t1 = J.getInterceptor$asx($arguments),
  76098. list = t1.$index($arguments, 0),
  76099. index = t1.$index($arguments, 1);
  76100. return list.get$asList()[list.sassIndexToListIndex$2(index, "n")];
  76101. },
  76102. $signature: 3
  76103. };
  76104. D.closure148.prototype = {
  76105. call$1: function($arguments) {
  76106. var t1 = J.getInterceptor$asx($arguments),
  76107. list = t1.$index($arguments, 0),
  76108. index = t1.$index($arguments, 1),
  76109. value = t1.$index($arguments, 2),
  76110. t2 = list.get$asList(),
  76111. newList = H.setRuntimeTypeInfo(t2.slice(0), H._arrayInstanceType(t2));
  76112. newList[list.sassIndexToListIndex$2(index, "n")] = value;
  76113. return t1.$index($arguments, 0).changeListContents$1(newList);
  76114. },
  76115. $signature: 17
  76116. };
  76117. D.closure147.prototype = {
  76118. call$1: function($arguments) {
  76119. var separator, bracketed, t2, t3, _i,
  76120. t1 = J.getInterceptor$asx($arguments),
  76121. list1 = t1.$index($arguments, 0),
  76122. list2 = t1.$index($arguments, 1),
  76123. separatorParam = t1.$index($arguments, 2).assertString$1("separator"),
  76124. bracketedParam = t1.$index($arguments, 3);
  76125. t1 = separatorParam.text;
  76126. if (t1 === "auto")
  76127. if (list1.get$separator() !== C.ListSeparator_undecided0)
  76128. separator = list1.get$separator();
  76129. else
  76130. separator = list2.get$separator() !== C.ListSeparator_undecided0 ? list2.get$separator() : C.ListSeparator_space0;
  76131. else if (t1 === "space")
  76132. separator = C.ListSeparator_space0;
  76133. else {
  76134. if (t1 !== "comma")
  76135. throw H.wrapException(E.SassScriptException$0('$separator: Must be "space", "comma", or "auto".'));
  76136. separator = C.ListSeparator_comma0;
  76137. }
  76138. bracketed = bracketedParam instanceof D.SassString0 && bracketedParam.text === "auto" ? list1.get$hasBrackets() : bracketedParam.get$isTruthy();
  76139. t1 = H.setRuntimeTypeInfo([], type$.JSArray_Value_2);
  76140. for (t2 = list1.get$asList(), t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i)
  76141. t1.push(t2[_i]);
  76142. for (t2 = list2.get$asList(), t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i)
  76143. t1.push(t2[_i]);
  76144. return D.SassList$0(t1, separator, bracketed);
  76145. },
  76146. $signature: 17
  76147. };
  76148. D.closure146.prototype = {
  76149. call$1: function($arguments) {
  76150. var separator, t2, t3, _i,
  76151. t1 = J.getInterceptor$asx($arguments),
  76152. list = t1.$index($arguments, 0),
  76153. value = t1.$index($arguments, 1);
  76154. t1 = t1.$index($arguments, 2).assertString$1("separator").text;
  76155. if (t1 === "auto")
  76156. separator = list.get$separator() === C.ListSeparator_undecided0 ? C.ListSeparator_space0 : list.get$separator();
  76157. else if (t1 === "space")
  76158. separator = C.ListSeparator_space0;
  76159. else {
  76160. if (t1 !== "comma")
  76161. throw H.wrapException(E.SassScriptException$0('$separator: Must be "space", "comma", or "auto".'));
  76162. separator = C.ListSeparator_comma0;
  76163. }
  76164. t1 = H.setRuntimeTypeInfo([], type$.JSArray_Value_2);
  76165. for (t2 = list.get$asList(), t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i)
  76166. t1.push(t2[_i]);
  76167. t1.push(value);
  76168. return list.changeListContents$2$separator(t1, separator);
  76169. },
  76170. $signature: 17
  76171. };
  76172. D.closure145.prototype = {
  76173. call$1: function($arguments) {
  76174. var results, t2, result, _box_0 = {},
  76175. t1 = J.$index$asx($arguments, 0).get$asList(),
  76176. lists = new H.MappedListIterable(t1, new D._closure19(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,List<Value0>>")).toList$0(0);
  76177. if (lists.length === 0)
  76178. return C.SassList_lmy0;
  76179. _box_0.i = 0;
  76180. results = H.setRuntimeTypeInfo([], type$.JSArray_SassList_2);
  76181. for (t1 = H._arrayInstanceType(lists)._eval$1("MappedListIterable<1,Value0>"), t2 = type$.Value_2; C.JSArray_methods.every$1(lists, new D._closure20(_box_0));) {
  76182. result = P.List_List$from(new H.MappedListIterable(lists, new D._closure21(_box_0), t1), false, t2);
  76183. result.fixed$length = Array;
  76184. result.immutable$list = Array;
  76185. results.push(new D.SassList0(result, C.ListSeparator_space0, false));
  76186. ++_box_0.i;
  76187. }
  76188. return D.SassList$0(results, C.ListSeparator_comma0, false);
  76189. },
  76190. $signature: 17
  76191. };
  76192. D._closure19.prototype = {
  76193. call$1: function(list) {
  76194. return list.get$asList();
  76195. }
  76196. };
  76197. D._closure20.prototype = {
  76198. call$1: function(list) {
  76199. return this._box_0.i !== J.get$length$asx(list);
  76200. }
  76201. };
  76202. D._closure21.prototype = {
  76203. call$1: function(list) {
  76204. return J.$index$asx(list, this._box_0.i);
  76205. },
  76206. $signature: 3
  76207. };
  76208. D.closure144.prototype = {
  76209. call$1: function($arguments) {
  76210. var t1 = J.getInterceptor$asx($arguments),
  76211. index = C.JSArray_methods.indexOf$1(t1.$index($arguments, 0).get$asList(), t1.$index($arguments, 1));
  76212. if (index === -1)
  76213. t1 = C.C_SassNull;
  76214. else
  76215. t1 = new T.SassNumber0(index + 1, C.List_empty, C.List_empty, null);
  76216. return t1;
  76217. },
  76218. $signature: 3
  76219. };
  76220. D.closure142.prototype = {
  76221. call$1: function($arguments) {
  76222. return J.$index$asx($arguments, 0).get$separator() === C.ListSeparator_comma0 ? new D.SassString0("comma", false) : new D.SassString0("space", false);
  76223. },
  76224. $signature: 11
  76225. };
  76226. D.closure143.prototype = {
  76227. call$1: function($arguments) {
  76228. return J.$index$asx($arguments, 0).get$hasBrackets() ? C.SassBoolean_true : C.SassBoolean_false;
  76229. },
  76230. $signature: 15
  76231. };
  76232. D.SelectorList0.prototype = {
  76233. get$isInvisible: function() {
  76234. return C.JSArray_methods.every$1(this.components, new D.SelectorList_isInvisible_closure0());
  76235. },
  76236. get$asSassList: function() {
  76237. var t1 = this.components;
  76238. return D.SassList$0(new H.MappedListIterable(t1, new D.SelectorList_asSassList_closure0(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value0>")), C.ListSeparator_comma0, false);
  76239. },
  76240. accept$1$1: function(visitor) {
  76241. return visitor.visitSelectorList$1(this);
  76242. },
  76243. accept$1: function(visitor) {
  76244. return this.accept$1$1(visitor, type$.dynamic);
  76245. },
  76246. unify$1: function(other) {
  76247. var t1 = this.components,
  76248. t2 = H._arrayInstanceType(t1)._eval$1("ExpandIterable<1,ComplexSelector0>"),
  76249. contents = P.List_List$from(new H.ExpandIterable(t1, new D.SelectorList_unify_closure0(other), t2), true, t2._eval$1("Iterable.E"));
  76250. return contents.length === 0 ? null : D.SelectorList$0(contents);
  76251. },
  76252. resolveParentSelectors$2$implicitParent: function($parent, implicitParent) {
  76253. var t1, _this = this;
  76254. if ($parent == null) {
  76255. if (!C.JSArray_methods.any$1(_this.components, _this.get$_list2$_complexContainsParentSelector()))
  76256. return _this;
  76257. throw H.wrapException(E.SassScriptException$0('Top-level selectors may not contain the parent selector "&".'));
  76258. }
  76259. t1 = _this.components;
  76260. return D.SelectorList$0(B.flattenVertically0(new H.MappedListIterable(t1, new D.SelectorList_resolveParentSelectors_closure0(_this, implicitParent, $parent), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Iterable<ComplexSelector0>>")), type$.ComplexSelector_2));
  76261. },
  76262. resolveParentSelectors$1: function($parent) {
  76263. return this.resolveParentSelectors$2$implicitParent($parent, true);
  76264. },
  76265. _list2$_complexContainsParentSelector$1: function(complex) {
  76266. return C.JSArray_methods.any$1(complex.components, new D.SelectorList__complexContainsParentSelector_closure0());
  76267. },
  76268. _list2$_resolveParentSelectorsCompound$2: function(compound, $parent) {
  76269. var resolvedMembers0, parentSelector, t1,
  76270. resolvedMembers = compound.components,
  76271. containsSelectorPseudo = C.JSArray_methods.any$1(resolvedMembers, new D.SelectorList__resolveParentSelectorsCompound_closure2());
  76272. if (!containsSelectorPseudo && !(C.JSArray_methods.get$first(resolvedMembers) instanceof M.ParentSelector0))
  76273. return null;
  76274. resolvedMembers0 = containsSelectorPseudo ? new H.MappedListIterable(resolvedMembers, new D.SelectorList__resolveParentSelectorsCompound_closure3($parent), H._arrayInstanceType(resolvedMembers)._eval$1("MappedListIterable<1,SimpleSelector0>")) : resolvedMembers;
  76275. parentSelector = C.JSArray_methods.get$first(resolvedMembers);
  76276. if (parentSelector instanceof M.ParentSelector0) {
  76277. if (resolvedMembers.length === 1 && parentSelector.suffix == null)
  76278. return $parent.components;
  76279. } else
  76280. return H.setRuntimeTypeInfo([S.ComplexSelector$0(H.setRuntimeTypeInfo([X.CompoundSelector$0(resolvedMembers0)], type$.JSArray_ComplexSelectorComponent_2), false)], type$.JSArray_ComplexSelector_2);
  76281. t1 = $parent.components;
  76282. return new H.MappedListIterable(t1, new D.SelectorList__resolveParentSelectorsCompound_closure4(compound, resolvedMembers0), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector0>"));
  76283. },
  76284. get$hashCode: function(_) {
  76285. return C.C_ListEquality.hash$1(this.components);
  76286. },
  76287. $eq: function(_, other) {
  76288. if (other == null)
  76289. return false;
  76290. return other instanceof D.SelectorList0 && C.C_ListEquality.equals$2(this.components, other.components);
  76291. }
  76292. };
  76293. D.SelectorList_isInvisible_closure0.prototype = {
  76294. call$1: function(complex) {
  76295. return complex.get$isInvisible();
  76296. }
  76297. };
  76298. D.SelectorList_asSassList_closure0.prototype = {
  76299. call$1: function(complex) {
  76300. var t1 = complex.components;
  76301. return D.SassList$0(new H.MappedListIterable(t1, new D.SelectorList_asSassList__closure0(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value0>")), C.ListSeparator_space0, false);
  76302. }
  76303. };
  76304. D.SelectorList_asSassList__closure0.prototype = {
  76305. call$1: function(component) {
  76306. return new D.SassString0(J.toString$0$(component), false);
  76307. }
  76308. };
  76309. D.SelectorList_unify_closure0.prototype = {
  76310. call$1: function(complex1) {
  76311. var t1 = this.other.components;
  76312. return new H.ExpandIterable(t1, new D.SelectorList_unify__closure0(complex1), H._arrayInstanceType(t1)._eval$1("ExpandIterable<1,ComplexSelector0>"));
  76313. }
  76314. };
  76315. D.SelectorList_unify__closure0.prototype = {
  76316. call$1: function(complex2) {
  76317. var unified = Y.unifyComplex0(H.setRuntimeTypeInfo([this.complex1.components, complex2.components], type$.JSArray_List_ComplexSelectorComponent_2));
  76318. if (unified == null)
  76319. return C.List_empty15;
  76320. return J.map$1$1$ax(unified, new D.SelectorList_unify___closure0(), type$.ComplexSelector_2);
  76321. }
  76322. };
  76323. D.SelectorList_unify___closure0.prototype = {
  76324. call$1: function(complex) {
  76325. return S.ComplexSelector$0(complex, false);
  76326. }
  76327. };
  76328. D.SelectorList_resolveParentSelectors_closure0.prototype = {
  76329. call$1: function(complex) {
  76330. var t2, t3, newComplexes, t4, t5, t6, t7, _i, component, resolved, t8, _i0, previousLineBreaks, newComplexes0, t9, i, newComplex, i0, lineBreak, t10, t11, t12, t13, t14, t15, _i1, _this = this, _box_0 = {},
  76331. t1 = _this.$this;
  76332. if (!t1._list2$_complexContainsParentSelector$1(complex)) {
  76333. if (!_this.implicitParent)
  76334. return H.setRuntimeTypeInfo([complex], type$.JSArray_ComplexSelector_2);
  76335. t1 = _this.parent.components;
  76336. return new H.MappedListIterable(t1, new D.SelectorList_resolveParentSelectors__closure1(complex), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector0>"));
  76337. }
  76338. t2 = type$.JSArray_ComplexSelectorComponent_2;
  76339. t3 = type$.JSArray_List_ComplexSelectorComponent_2;
  76340. newComplexes = H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([], t2)], t3);
  76341. t4 = type$.JSArray_bool;
  76342. _box_0.lineBreaks = H.setRuntimeTypeInfo([false], t4);
  76343. for (t5 = complex.components, t6 = t5.length, t7 = _this.parent, _i = 0; _i < t6; ++_i) {
  76344. component = t5[_i];
  76345. if (component instanceof X.CompoundSelector0) {
  76346. resolved = t1._list2$_resolveParentSelectorsCompound$2(component, t7);
  76347. if (resolved == null) {
  76348. for (t8 = newComplexes.length, _i0 = 0; _i0 < newComplexes.length; newComplexes.length === t8 || (0, H.throwConcurrentModificationError)(newComplexes), ++_i0)
  76349. newComplexes[_i0].push(component);
  76350. continue;
  76351. }
  76352. previousLineBreaks = _box_0.lineBreaks;
  76353. newComplexes0 = H.setRuntimeTypeInfo([], t3);
  76354. _box_0.lineBreaks = H.setRuntimeTypeInfo([], t4);
  76355. for (t8 = newComplexes.length, t9 = J.getInterceptor$ax(resolved), i = 0, _i0 = 0; _i0 < newComplexes.length; newComplexes.length === t8 || (0, H.throwConcurrentModificationError)(newComplexes), ++_i0, i = i0) {
  76356. newComplex = newComplexes[_i0];
  76357. i0 = i + 1;
  76358. lineBreak = previousLineBreaks[i];
  76359. for (t10 = t9.get$iterator(resolved), t11 = !lineBreak; t10.moveNext$0();) {
  76360. t12 = t10.get$current(t10);
  76361. t13 = H.setRuntimeTypeInfo([], t2);
  76362. for (t14 = C.JSArray_methods.get$iterator(newComplex); t14.moveNext$0();)
  76363. t13.push(t14.get$current(t14));
  76364. for (t14 = t12.components, t15 = t14.length, _i1 = 0; _i1 < t15; ++_i1)
  76365. t13.push(t14[_i1]);
  76366. newComplexes0.push(t13);
  76367. t13 = _box_0.lineBreaks;
  76368. t13.push(!t11 || t12.lineBreak);
  76369. }
  76370. }
  76371. newComplexes = newComplexes0;
  76372. } else
  76373. for (t8 = newComplexes.length, _i0 = 0; _i0 < newComplexes.length; newComplexes.length === t8 || (0, H.throwConcurrentModificationError)(newComplexes), ++_i0)
  76374. newComplexes[_i0].push(component);
  76375. }
  76376. _box_0.i = 0;
  76377. return new H.MappedListIterable(newComplexes, new D.SelectorList_resolveParentSelectors__closure2(_box_0), H._arrayInstanceType(newComplexes)._eval$1("MappedListIterable<1,ComplexSelector0>"));
  76378. }
  76379. };
  76380. D.SelectorList_resolveParentSelectors__closure1.prototype = {
  76381. call$1: function(parentComplex) {
  76382. var t2, t3, _i, t4,
  76383. t1 = H.setRuntimeTypeInfo([], type$.JSArray_ComplexSelectorComponent_2);
  76384. for (t2 = parentComplex.components, t3 = t2.length, _i = 0; _i < t3; ++_i)
  76385. t1.push(t2[_i]);
  76386. for (t2 = this.complex, t3 = t2.components, t4 = t3.length, _i = 0; _i < t4; ++_i)
  76387. t1.push(t3[_i]);
  76388. return S.ComplexSelector$0(t1, t2.lineBreak || parentComplex.lineBreak);
  76389. }
  76390. };
  76391. D.SelectorList_resolveParentSelectors__closure2.prototype = {
  76392. call$1: function(newComplex) {
  76393. var t1 = this._box_0;
  76394. return S.ComplexSelector$0(newComplex, t1.lineBreaks[t1.i++]);
  76395. }
  76396. };
  76397. D.SelectorList__complexContainsParentSelector_closure0.prototype = {
  76398. call$1: function(component) {
  76399. return component instanceof X.CompoundSelector0 && C.JSArray_methods.any$1(component.components, new D.SelectorList__complexContainsParentSelector__closure0());
  76400. }
  76401. };
  76402. D.SelectorList__complexContainsParentSelector__closure0.prototype = {
  76403. call$1: function(simple) {
  76404. var t1;
  76405. if (!(simple instanceof M.ParentSelector0))
  76406. if (simple instanceof D.PseudoSelector0) {
  76407. t1 = simple.selector;
  76408. t1 = t1 != null && C.JSArray_methods.any$1(t1.components, t1.get$_list2$_complexContainsParentSelector());
  76409. } else
  76410. t1 = false;
  76411. else
  76412. t1 = true;
  76413. return t1;
  76414. }
  76415. };
  76416. D.SelectorList__resolveParentSelectorsCompound_closure2.prototype = {
  76417. call$1: function(simple) {
  76418. var t1;
  76419. if (simple instanceof D.PseudoSelector0) {
  76420. t1 = simple.selector;
  76421. t1 = t1 != null && C.JSArray_methods.any$1(t1.components, t1.get$_list2$_complexContainsParentSelector());
  76422. } else
  76423. t1 = false;
  76424. return t1;
  76425. }
  76426. };
  76427. D.SelectorList__resolveParentSelectorsCompound_closure3.prototype = {
  76428. call$1: function(simple) {
  76429. var t1, t2, t3;
  76430. if (simple instanceof D.PseudoSelector0) {
  76431. t1 = simple.selector;
  76432. if (t1 == null)
  76433. return simple;
  76434. if (!C.JSArray_methods.any$1(t1.components, t1.get$_list2$_complexContainsParentSelector()))
  76435. return simple;
  76436. t1 = t1.resolveParentSelectors$2$implicitParent(this.parent, false);
  76437. t2 = simple.name;
  76438. t3 = simple.isClass;
  76439. return D.PseudoSelector$0(t2, simple.argument, !t3, t1);
  76440. } else
  76441. return simple;
  76442. }
  76443. };
  76444. D.SelectorList__resolveParentSelectorsCompound_closure4.prototype = {
  76445. call$1: function(complex) {
  76446. var suffix, t2, t3, t4, last, _i,
  76447. t1 = complex.components,
  76448. lastComponent = C.JSArray_methods.get$last(t1);
  76449. if (!(lastComponent instanceof X.CompoundSelector0))
  76450. throw H.wrapException(E.SassScriptException$0('Parent "' + complex.toString$0(0) + '" is incompatible with this selector.'));
  76451. suffix = type$.ParentSelector_2._as(C.JSArray_methods.get$first(this.compound.components)).suffix;
  76452. t2 = type$.JSArray_SimpleSelector_2;
  76453. if (suffix != null) {
  76454. t2 = H.setRuntimeTypeInfo([], t2);
  76455. for (t3 = lastComponent.components, t4 = H.SubListIterable$(t3, 0, t3.length - 1, H._arrayInstanceType(t3)._precomputed1), t4 = new H.ListIterator(t4, t4.get$length(t4)); t4.moveNext$0();)
  76456. t2.push(t4.__internal$_current);
  76457. t2.push(C.JSArray_methods.get$last(t3).addSuffix$1(suffix));
  76458. for (t3 = J.skip$1$ax(this.resolvedMembers, 1), t3 = new H.ListIterator(t3, t3.get$length(t3)); t3.moveNext$0();)
  76459. t2.push(t3.__internal$_current);
  76460. last = X.CompoundSelector$0(t2);
  76461. } else {
  76462. t2 = H.setRuntimeTypeInfo([], t2);
  76463. for (t3 = lastComponent.components, t4 = t3.length, _i = 0; _i < t4; ++_i)
  76464. t2.push(t3[_i]);
  76465. for (t3 = J.skip$1$ax(this.resolvedMembers, 1), t3 = new H.ListIterator(t3, t3.get$length(t3)); t3.moveNext$0();)
  76466. t2.push(t3.__internal$_current);
  76467. last = X.CompoundSelector$0(t2);
  76468. }
  76469. t2 = H.setRuntimeTypeInfo([], type$.JSArray_ComplexSelectorComponent_2);
  76470. for (t1 = H.SubListIterable$(t1, 0, t1.length - 1, H._arrayInstanceType(t1)._precomputed1), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();)
  76471. t2.push(t1.__internal$_current);
  76472. t2.push(last);
  76473. return S.ComplexSelector$0(t2, complex.lineBreak);
  76474. }
  76475. };
  76476. D._NodeSassList.prototype = {};
  76477. D.closure232.prototype = {
  76478. call$4: function(thisArg, $length, commaSeparator, dartValue) {
  76479. var t1;
  76480. if (dartValue == null) {
  76481. t1 = P.Iterable_Iterable$generate($length, new D._closure33(), type$.Value_2);
  76482. t1 = D.SassList$0(t1, commaSeparator !== false ? C.ListSeparator_comma0 : C.ListSeparator_space0, false);
  76483. } else
  76484. t1 = dartValue;
  76485. J.set$dartValue$x(thisArg, t1);
  76486. },
  76487. call$2: function(thisArg, $length) {
  76488. return this.call$4(thisArg, $length, null, null);
  76489. },
  76490. call$3: function(thisArg, $length, commaSeparator) {
  76491. return this.call$4(thisArg, $length, commaSeparator, null);
  76492. },
  76493. "call*": "call$4",
  76494. $requiredArgCount: 2,
  76495. $defaultValues: function() {
  76496. return [null, null];
  76497. }
  76498. };
  76499. D._closure33.prototype = {
  76500. call$1: function(_) {
  76501. return C.C_SassNull;
  76502. },
  76503. $signature: 90
  76504. };
  76505. D.closure233.prototype = {
  76506. call$2: function(thisArg, index) {
  76507. return F.wrapValue(J.get$dartValue$x(thisArg)._list1$_contents[index]);
  76508. },
  76509. "call*": "call$2",
  76510. $requiredArgCount: 2
  76511. };
  76512. D.closure234.prototype = {
  76513. call$3: function(thisArg, index, value) {
  76514. var t1 = J.getInterceptor$x(thisArg),
  76515. t2 = t1.get$dartValue(thisArg)._list1$_contents,
  76516. mutable = H.setRuntimeTypeInfo(t2.slice(0), H._arrayInstanceType(t2)._eval$1("JSArray<1>"));
  76517. mutable[index] = F.unwrapValue(value);
  76518. t1.set$dartValue(thisArg, t1.get$dartValue(thisArg).changeListContents$1(mutable));
  76519. },
  76520. "call*": "call$3",
  76521. $requiredArgCount: 3
  76522. };
  76523. D.closure235.prototype = {
  76524. call$1: function(thisArg) {
  76525. return J.get$dartValue$x(thisArg).separator === C.ListSeparator_comma0;
  76526. }
  76527. };
  76528. D.closure236.prototype = {
  76529. call$2: function(thisArg, isComma) {
  76530. var t1 = J.getInterceptor$x(thisArg),
  76531. t2 = t1.get$dartValue(thisArg)._list1$_contents,
  76532. t3 = isComma ? C.ListSeparator_comma0 : C.ListSeparator_space0;
  76533. t1.set$dartValue(thisArg, D.SassList$0(t2, t3, t1.get$dartValue(thisArg).hasBrackets));
  76534. },
  76535. "call*": "call$2",
  76536. $requiredArgCount: 2
  76537. };
  76538. D.closure237.prototype = {
  76539. call$1: function(thisArg) {
  76540. return J.get$dartValue$x(thisArg)._list1$_contents.length;
  76541. }
  76542. };
  76543. D.closure238.prototype = {
  76544. call$1: function(thisArg) {
  76545. return J.toString$0$(J.get$dartValue$x(thisArg));
  76546. }
  76547. };
  76548. D.SassList0.prototype = {
  76549. get$isBlank: function() {
  76550. return C.JSArray_methods.every$1(this._list1$_contents, new D.SassList_isBlank_closure0());
  76551. },
  76552. get$asList: function() {
  76553. return this._list1$_contents;
  76554. },
  76555. get$lengthAsList: function() {
  76556. return this._list1$_contents.length;
  76557. },
  76558. SassList$3$brackets0: function(contents, separator, brackets) {
  76559. if (this.separator === C.ListSeparator_undecided0 && this._list1$_contents.length > 1)
  76560. throw H.wrapException(P.ArgumentError$("A list with more than one element must have an explicit separator."));
  76561. },
  76562. accept$1$1: function(visitor) {
  76563. return visitor.visitList$1(this);
  76564. },
  76565. accept$1: function(visitor) {
  76566. return this.accept$1$1(visitor, type$.dynamic);
  76567. },
  76568. assertMap$1: function($name) {
  76569. return this._list1$_contents.length === 0 ? C.SassMap_Map_empty0 : this.super$Value$assertMap0($name);
  76570. },
  76571. $eq: function(_, other) {
  76572. var t1, _this = this;
  76573. if (other == null)
  76574. return false;
  76575. if (!(other instanceof D.SassList0 && other.separator === _this.separator && other.hasBrackets === _this.hasBrackets && C.C_ListEquality.equals$2(other._list1$_contents, _this._list1$_contents)))
  76576. t1 = _this._list1$_contents.length === 0 && other instanceof A.SassMap0 && other.get$asList().length === 0;
  76577. else
  76578. t1 = true;
  76579. return t1;
  76580. },
  76581. get$hashCode: function(_) {
  76582. return C.C_ListEquality.hash$1(this._list1$_contents);
  76583. },
  76584. get$separator: function() {
  76585. return this.separator;
  76586. },
  76587. get$hasBrackets: function() {
  76588. return this.hasBrackets;
  76589. }
  76590. };
  76591. D.SassList_isBlank_closure0.prototype = {
  76592. call$1: function(element) {
  76593. return element.get$isBlank();
  76594. }
  76595. };
  76596. D.ListSeparator0.prototype = {
  76597. toString$0: function(_) {
  76598. return this._list1$_name;
  76599. }
  76600. };
  76601. L.LoudComment0.prototype = {
  76602. get$span: function() {
  76603. return this.text.span;
  76604. },
  76605. accept$1$1: function(visitor) {
  76606. return visitor.visitLoudComment$1(this);
  76607. },
  76608. accept$1: function(visitor) {
  76609. return this.accept$1$1(visitor, type$.dynamic);
  76610. },
  76611. toString$0: function(_) {
  76612. return this.text.toString$0(0);
  76613. },
  76614. $isAstNode0: 1,
  76615. $isStatement0: 1
  76616. };
  76617. A.MapExpression0.prototype = {
  76618. accept$1$1: function(visitor) {
  76619. return visitor.visitMapExpression$1(this);
  76620. },
  76621. accept$1: function(visitor) {
  76622. return this.accept$1$1(visitor, type$.dynamic);
  76623. },
  76624. toString$0: function(_) {
  76625. var t1 = this.pairs;
  76626. return "(" + new H.MappedListIterable(t1, new A.MapExpression_toString_closure0(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$1(0, ", ") + ")";
  76627. },
  76628. $isExpression0: 1,
  76629. $isAstNode0: 1,
  76630. get$span: function() {
  76631. return this.span;
  76632. }
  76633. };
  76634. A.MapExpression_toString_closure0.prototype = {
  76635. call$1: function(pair) {
  76636. return H.S(pair.item1) + ": " + H.S(pair.item2);
  76637. }
  76638. };
  76639. A.closure141.prototype = {
  76640. call$1: function($arguments) {
  76641. var t1 = J.getInterceptor$asx($arguments);
  76642. t1 = t1.$index($arguments, 0).assertMap$1("map").contents.$index(0, t1.$index($arguments, 1));
  76643. return t1 == null ? C.C_SassNull : t1;
  76644. },
  76645. $signature: 3
  76646. };
  76647. A.closure140.prototype = {
  76648. call$1: function($arguments) {
  76649. var t2, t3, t4,
  76650. t1 = J.getInterceptor$asx($arguments),
  76651. map1 = t1.$index($arguments, 0).assertMap$1("map1"),
  76652. map2 = t1.$index($arguments, 1).assertMap$1("map2");
  76653. t1 = type$.Value_2;
  76654. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  76655. for (t3 = map1.contents.get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  76656. t4 = t3.get$current(t3);
  76657. t2.$indexSet(0, t4.key, t4.value);
  76658. }
  76659. for (t3 = map2.contents.get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  76660. t4 = t3.get$current(t3);
  76661. t2.$indexSet(0, t4.key, t4.value);
  76662. }
  76663. return new A.SassMap0(H.ConstantMap_ConstantMap$from(t2, t1, t1));
  76664. },
  76665. $signature: 29
  76666. };
  76667. A.closure138.prototype = {
  76668. call$1: function($arguments) {
  76669. return J.$index$asx($arguments, 0).assertMap$1("map");
  76670. },
  76671. $signature: 29
  76672. };
  76673. A.closure139.prototype = {
  76674. call$1: function($arguments) {
  76675. var t3, _i, mutableMap,
  76676. t1 = J.getInterceptor$asx($arguments),
  76677. map = t1.$index($arguments, 0).assertMap$1("map"),
  76678. t2 = H.setRuntimeTypeInfo([], type$.JSArray_Value_2);
  76679. t2.push(t1.$index($arguments, 1));
  76680. for (t1 = t1.$index($arguments, 2).get$asList(), t3 = t1.length, _i = 0; _i < t1.length; t1.length === t3 || (0, H.throwConcurrentModificationError)(t1), ++_i)
  76681. t2.push(t1[_i]);
  76682. t1 = type$.Value_2;
  76683. mutableMap = P.LinkedHashMap_LinkedHashMap$of(map.contents, t1, t1);
  76684. for (t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i)
  76685. mutableMap.remove$1(0, t2[_i]);
  76686. return new A.SassMap0(H.ConstantMap_ConstantMap$from(mutableMap, t1, t1));
  76687. },
  76688. $signature: 29
  76689. };
  76690. A.closure137.prototype = {
  76691. call$1: function($arguments) {
  76692. return D.SassList$0(J.$index$asx($arguments, 0).assertMap$1("map").contents.get$keys(), C.ListSeparator_comma0, false);
  76693. },
  76694. $signature: 17
  76695. };
  76696. A.closure136.prototype = {
  76697. call$1: function($arguments) {
  76698. return D.SassList$0(J.$index$asx($arguments, 0).assertMap$1("map").contents.get$values(), C.ListSeparator_comma0, false);
  76699. },
  76700. $signature: 17
  76701. };
  76702. A.closure135.prototype = {
  76703. call$1: function($arguments) {
  76704. var t1 = J.getInterceptor$asx($arguments);
  76705. return t1.$index($arguments, 0).assertMap$1("map").contents.containsKey$1(t1.$index($arguments, 1)) ? C.SassBoolean_true : C.SassBoolean_false;
  76706. },
  76707. $signature: 15
  76708. };
  76709. A._NodeSassMap.prototype = {};
  76710. A.closure225.prototype = {
  76711. call$3: function(thisArg, $length, dartValue) {
  76712. var t1, t2, t3, map;
  76713. if (dartValue == null) {
  76714. t1 = type$.Value_2;
  76715. t2 = P.Iterable_Iterable$generate($length, new A._closure31(), t1);
  76716. t3 = P.Iterable_Iterable$generate($length, new A._closure32(), t1);
  76717. map = P.LinkedHashMap_LinkedHashMap(null, null, null, t1, t1);
  76718. P.MapBase__fillMapWithIterables(map, t2, t3);
  76719. t1 = new A.SassMap0(H.ConstantMap_ConstantMap$from(map, t1, t1));
  76720. } else
  76721. t1 = dartValue;
  76722. J.set$dartValue$x(thisArg, t1);
  76723. },
  76724. call$2: function(thisArg, $length) {
  76725. return this.call$3(thisArg, $length, null);
  76726. },
  76727. "call*": "call$3",
  76728. $requiredArgCount: 2,
  76729. $defaultValues: function() {
  76730. return [null];
  76731. }
  76732. };
  76733. A._closure31.prototype = {
  76734. call$1: function(i) {
  76735. return new T.SassNumber0(i, C.List_empty, C.List_empty, null);
  76736. },
  76737. $signature: 135
  76738. };
  76739. A._closure32.prototype = {
  76740. call$1: function(_) {
  76741. return C.C_SassNull;
  76742. },
  76743. $signature: 90
  76744. };
  76745. A.closure226.prototype = {
  76746. call$2: function(thisArg, index) {
  76747. return F.wrapValue(J.elementAt$1$ax(J.get$dartValue$x(thisArg).contents.get$keys(), index));
  76748. },
  76749. "call*": "call$2",
  76750. $requiredArgCount: 2
  76751. };
  76752. A.closure227.prototype = {
  76753. call$2: function(thisArg, index) {
  76754. return F.wrapValue(J.get$dartValue$x(thisArg).contents.get$values().elementAt$1(0, index));
  76755. },
  76756. "call*": "call$2",
  76757. $requiredArgCount: 2
  76758. };
  76759. A.closure228.prototype = {
  76760. call$1: function(thisArg) {
  76761. var t1 = J.get$dartValue$x(thisArg).contents;
  76762. return t1.get$length(t1);
  76763. }
  76764. };
  76765. A.closure229.prototype = {
  76766. call$3: function(thisArg, index, key) {
  76767. var newKey, t2, newMap, t3, i, t4,
  76768. t1 = J.getInterceptor$x(thisArg),
  76769. oldMap = t1.get$dartValue(thisArg).contents;
  76770. P.RangeError_checkValidIndex(index, oldMap, "index");
  76771. newKey = F.unwrapValue(key);
  76772. t2 = type$.Value_2;
  76773. newMap = P.LinkedHashMap_LinkedHashMap$_empty(t2, t2);
  76774. for (t3 = J.get$iterator$ax(t1.get$dartValue(thisArg).contents.get$keys()), i = 0; t3.moveNext$0();) {
  76775. t4 = t3.get$current(t3);
  76776. if (i === index)
  76777. newMap.$indexSet(0, newKey, oldMap.$index(0, t4));
  76778. else {
  76779. if (newKey.$eq(0, t4))
  76780. throw H.wrapException(P.ArgumentError$value(key, "key", "is already in the map"));
  76781. newMap.$indexSet(0, t4, oldMap.$index(0, t4));
  76782. }
  76783. ++i;
  76784. }
  76785. t1.set$dartValue(thisArg, new A.SassMap0(H.ConstantMap_ConstantMap$from(newMap, t2, t2)));
  76786. },
  76787. "call*": "call$3",
  76788. $requiredArgCount: 3
  76789. };
  76790. A.closure230.prototype = {
  76791. call$3: function(thisArg, index, value) {
  76792. var t4, t5,
  76793. t1 = J.getInterceptor$x(thisArg),
  76794. key = J.elementAt$1$ax(t1.get$dartValue(thisArg).contents.get$keys(), index),
  76795. t2 = type$.Value_2,
  76796. t3 = P.LinkedHashMap_LinkedHashMap$_empty(t2, t2);
  76797. for (t4 = t1.get$dartValue(thisArg).contents.get$entries(), t4 = t4.get$iterator(t4); t4.moveNext$0();) {
  76798. t5 = t4.get$current(t4);
  76799. t3.$indexSet(0, t5.key, t5.value);
  76800. }
  76801. t3.$indexSet(0, key, F.unwrapValue(value));
  76802. t1.set$dartValue(thisArg, new A.SassMap0(H.ConstantMap_ConstantMap$from(t3, t2, t2)));
  76803. },
  76804. "call*": "call$3",
  76805. $requiredArgCount: 3
  76806. };
  76807. A.closure231.prototype = {
  76808. call$1: function(thisArg) {
  76809. return J.toString$0$(J.get$dartValue$x(thisArg));
  76810. }
  76811. };
  76812. A.SassMap0.prototype = {
  76813. get$separator: function() {
  76814. var t1 = this.contents;
  76815. return t1.get$isEmpty(t1) ? C.ListSeparator_undecided0 : C.ListSeparator_comma0;
  76816. },
  76817. get$asList: function() {
  76818. var result = H.setRuntimeTypeInfo([], type$.JSArray_Value_2);
  76819. this.contents.forEach$1(0, new A.SassMap_asList_closure0(result));
  76820. return result;
  76821. },
  76822. get$lengthAsList: function() {
  76823. var t1 = this.contents;
  76824. return t1.get$length(t1);
  76825. },
  76826. accept$1$1: function(visitor) {
  76827. return visitor.visitMap$1(this);
  76828. },
  76829. accept$1: function(visitor) {
  76830. return this.accept$1$1(visitor, type$.dynamic);
  76831. },
  76832. assertMap$1: function($name) {
  76833. return this;
  76834. },
  76835. $eq: function(_, other) {
  76836. var t1;
  76837. if (other == null)
  76838. return false;
  76839. if (!(other instanceof A.SassMap0 && C.C_MapEquality.equals$2(other.contents, this.contents))) {
  76840. t1 = this.contents;
  76841. t1 = t1.get$isEmpty(t1) && other instanceof D.SassList0 && other._list1$_contents.length === 0;
  76842. } else
  76843. t1 = true;
  76844. return t1;
  76845. },
  76846. get$hashCode: function(_) {
  76847. var t1 = this.contents;
  76848. return t1.get$isEmpty(t1) ? C.C_ListEquality.hash$1(C.List_empty16) : C.C_MapEquality.hash$1(t1);
  76849. }
  76850. };
  76851. A.SassMap_asList_closure0.prototype = {
  76852. call$2: function(key, value) {
  76853. this.result.push(D.SassList$0(H.setRuntimeTypeInfo([key, value], type$.JSArray_Value_2), C.ListSeparator_space0, false));
  76854. }
  76855. };
  76856. K.closure133.prototype = {
  76857. call$1: function(value) {
  76858. return J.ceil$0$n(value);
  76859. },
  76860. $signature: 34
  76861. };
  76862. K.closure199.prototype = {
  76863. call$1: function($arguments) {
  76864. var t2, t3, arg2, arg2Name, unit1, unit2,
  76865. _s11_ = "is unitless",
  76866. t1 = J.getInterceptor$asx($arguments),
  76867. min = t1.$index($arguments, 0).assertNumber$1("min"),
  76868. number = t1.$index($arguments, 1).assertNumber$1("number"),
  76869. max = t1.$index($arguments, 2).assertNumber$1("max");
  76870. t1 = min.numeratorUnits.length === 0;
  76871. t2 = !t1 || min.denominatorUnits.length !== 0;
  76872. t3 = number.numeratorUnits.length === 0;
  76873. if (t2 === (!t3 || number.denominatorUnits.length !== 0)) {
  76874. t2 = !t3 || number.denominatorUnits.length !== 0;
  76875. t2 = t2 === (max.numeratorUnits.length !== 0 || max.denominatorUnits.length !== 0);
  76876. } else
  76877. t2 = false;
  76878. if (t2) {
  76879. if (min.greaterThanOrEquals$1(max).value)
  76880. return min;
  76881. if (min.greaterThanOrEquals$1(number).value)
  76882. return min;
  76883. if (number.greaterThanOrEquals$1(max).value)
  76884. return max;
  76885. return number;
  76886. }
  76887. t2 = !t1 || min.denominatorUnits.length !== 0;
  76888. arg2 = t2 !== (!t3 || number.denominatorUnits.length !== 0) ? number : max;
  76889. t2 = !t1 || min.denominatorUnits.length !== 0;
  76890. arg2Name = t2 !== (!t3 || number.denominatorUnits.length !== 0) ? "$number" : "$max";
  76891. unit1 = !t1 || min.denominatorUnits.length !== 0 ? "has unit " + min.get$unitString() : _s11_;
  76892. unit2 = arg2.numeratorUnits.length !== 0 || arg2.denominatorUnits.length !== 0 ? "has unit " + arg2.get$unitString() : _s11_;
  76893. throw H.wrapException(E.SassScriptException$0("$min " + unit1 + " but " + arg2Name + " " + unit2 + ". Arguments must all have units or all be unitless."));
  76894. },
  76895. $signature: 6
  76896. };
  76897. K.closure132.prototype = {
  76898. call$1: function(value) {
  76899. return J.floor$0$n(value);
  76900. },
  76901. $signature: 34
  76902. };
  76903. K.closure131.prototype = {
  76904. call$1: function($arguments) {
  76905. var t1, t2, max, _i, number;
  76906. for (t1 = J.$index$asx($arguments, 0).get$asList(), t2 = t1.length, max = null, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  76907. number = t1[_i].assertNumber$0();
  76908. if (max == null || max.lessThan$1(number).value)
  76909. max = number;
  76910. }
  76911. if (max != null)
  76912. return max;
  76913. throw H.wrapException(E.SassScriptException$0("At least one argument must be passed."));
  76914. },
  76915. $signature: 6
  76916. };
  76917. K.closure130.prototype = {
  76918. call$1: function($arguments) {
  76919. var t1, t2, min, _i, number;
  76920. for (t1 = J.$index$asx($arguments, 0).get$asList(), t2 = t1.length, min = null, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  76921. number = t1[_i].assertNumber$0();
  76922. if (min == null || min.greaterThan$1(number).value)
  76923. min = number;
  76924. }
  76925. if (min != null)
  76926. return min;
  76927. throw H.wrapException(E.SassScriptException$0("At least one argument must be passed."));
  76928. },
  76929. $signature: 6
  76930. };
  76931. K.closure134.prototype = {
  76932. call$1: function(value) {
  76933. return Math.abs(value);
  76934. },
  76935. $signature: 68
  76936. };
  76937. K.closure197.prototype = {
  76938. call$1: function($arguments) {
  76939. var numeratorUnits, denominatorUnits, subtotal, i, number, t2, t3, t4, t5, t6, t7, result, unit1, unit2,
  76940. _s11_ = "is unitless",
  76941. t1 = J.$index$asx($arguments, 0).get$asList(),
  76942. numbers = new H.MappedListIterable(t1, new K._closure26(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,SassNumber0>")).toList$0(0);
  76943. if (numbers.length === 0)
  76944. throw H.wrapException(E.SassScriptException$0("At least one argument must be passed."));
  76945. t1 = numbers[0];
  76946. numeratorUnits = t1.numeratorUnits;
  76947. denominatorUnits = t1.denominatorUnits;
  76948. for (t1 = type$.String, subtotal = 0, i = 0; i < numbers.length; ++i) {
  76949. number = numbers[i];
  76950. t2 = number.numeratorUnits;
  76951. t3 = t2.length === 0;
  76952. t4 = !t3 || number.denominatorUnits.length !== 0;
  76953. t5 = numbers[0];
  76954. t6 = t5.numeratorUnits;
  76955. t7 = t6.length === 0;
  76956. if (t4 === (!t7 || t5.denominatorUnits.length !== 0)) {
  76957. t2 = number.valueInUnits$2(numeratorUnits, denominatorUnits);
  76958. result = P.List_List$from(numeratorUnits, false, t1);
  76959. result.fixed$length = Array;
  76960. result.immutable$list = Array;
  76961. result = P.List_List$from(denominatorUnits, false, t1);
  76962. result.fixed$length = Array;
  76963. result.immutable$list = Array;
  76964. H.checkNum(t2);
  76965. subtotal += Math.pow(t2, 2);
  76966. } else {
  76967. if (!t7 || t5.denominatorUnits.length !== 0)
  76968. unit1 = "has unit " + (!t7 || t5.denominatorUnits.length !== 0 ? t5._number1$_unitString$2(t6, t5.denominatorUnits) : "");
  76969. else
  76970. unit1 = _s11_;
  76971. if (!t3 || number.denominatorUnits.length !== 0)
  76972. unit2 = "has unit " + (!t3 || number.denominatorUnits.length !== 0 ? number._number1$_unitString$2(t2, number.denominatorUnits) : "");
  76973. else
  76974. unit2 = _s11_;
  76975. throw H.wrapException(E.SassScriptException$0("Argument 1 " + unit1 + " but argument " + (i + 1) + " " + unit2 + ". Arguments must all have units or all be unitless."));
  76976. }
  76977. }
  76978. return T.SassNumber$withUnits0(Math.sqrt(subtotal), denominatorUnits, numeratorUnits);
  76979. },
  76980. $signature: 6
  76981. };
  76982. K._closure26.prototype = {
  76983. call$1: function(argument) {
  76984. return argument.assertNumber$0();
  76985. }
  76986. };
  76987. K.closure196.prototype = {
  76988. call$1: function($arguments) {
  76989. var numberValue, base, baseValue, t2,
  76990. _s18_ = " to have no units.",
  76991. t1 = J.getInterceptor$asx($arguments),
  76992. number = t1.$index($arguments, 0).assertNumber$1("number");
  76993. if (number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0)
  76994. throw H.wrapException(E.SassScriptException$0("$number: Expected " + number.toString$0(0) + _s18_));
  76995. numberValue = K._fuzzyRoundIfZero0(number.value);
  76996. if (J.$eq$(t1.$index($arguments, 1), C.C_SassNull)) {
  76997. t1 = Math.log(H.checkNum(numberValue));
  76998. return new T.SassNumber0(t1, C.List_empty, C.List_empty, null);
  76999. }
  77000. base = t1.$index($arguments, 1).assertNumber$1("base");
  77001. if (base.numeratorUnits.length !== 0 || base.denominatorUnits.length !== 0)
  77002. throw H.wrapException(E.SassScriptException$0("$base: Expected " + base.toString$0(0) + _s18_));
  77003. t1 = base.value;
  77004. baseValue = Math.abs(t1 - 1) < $.$get$epsilon0() ? T.fuzzyRound0(t1) : K._fuzzyRoundIfZero0(t1);
  77005. t1 = Math.log(H.checkNum(numberValue));
  77006. t2 = Math.log(H.checkNum(baseValue));
  77007. return new T.SassNumber0(t1 / t2, C.List_empty, C.List_empty, null);
  77008. },
  77009. $signature: 6
  77010. };
  77011. K.closure195.prototype = {
  77012. call$1: function($arguments) {
  77013. var baseValue, exponentValue, t2, _null = null,
  77014. _s18_ = " to have no units.",
  77015. t1 = J.getInterceptor$asx($arguments),
  77016. base = t1.$index($arguments, 0).assertNumber$1("base"),
  77017. exponent = t1.$index($arguments, 1).assertNumber$1("exponent");
  77018. if (base.numeratorUnits.length !== 0 || base.denominatorUnits.length !== 0)
  77019. throw H.wrapException(E.SassScriptException$0("$base: Expected " + base.toString$0(0) + _s18_));
  77020. else if (exponent.numeratorUnits.length !== 0 || exponent.denominatorUnits.length !== 0)
  77021. throw H.wrapException(E.SassScriptException$0("$exponent: Expected " + exponent.toString$0(0) + _s18_));
  77022. baseValue = K._fuzzyRoundIfZero0(base.value);
  77023. exponentValue = K._fuzzyRoundIfZero0(exponent.value);
  77024. t1 = $.$get$epsilon0();
  77025. if (Math.abs(Math.abs(baseValue) - 1) < t1) {
  77026. exponentValue.toString;
  77027. t2 = exponentValue == 1 / 0 || exponentValue == -1 / 0;
  77028. } else
  77029. t2 = false;
  77030. if (t2)
  77031. return new T.SassNumber0(0 / 0, C.List_empty, C.List_empty, _null);
  77032. else if (Math.abs(baseValue - 0) < t1) {
  77033. exponentValue.toString;
  77034. if (isFinite(exponentValue))
  77035. if (T.fuzzyIsInt0(exponentValue))
  77036. t1 = C.JSInt_methods.$mod(T.fuzzyIsInt0(exponentValue) ? C.JSNumber_methods.round$0(exponentValue) : _null, 2) === 1;
  77037. else
  77038. t1 = false;
  77039. else
  77040. t1 = false;
  77041. if (t1)
  77042. exponentValue = T.fuzzyRound0(exponentValue);
  77043. } else {
  77044. if (isFinite(baseValue))
  77045. if (baseValue < 0 && true) {
  77046. exponentValue.toString;
  77047. t1 = isFinite(exponentValue) && T.fuzzyIsInt0(exponentValue);
  77048. } else
  77049. t1 = false;
  77050. else
  77051. t1 = false;
  77052. if (t1)
  77053. exponentValue = T.fuzzyRound0(exponentValue);
  77054. else {
  77055. if (baseValue == 1 / 0 || baseValue == -1 / 0)
  77056. if (baseValue < 0 && true) {
  77057. exponentValue.toString;
  77058. if (isFinite(exponentValue))
  77059. if (T.fuzzyIsInt0(exponentValue))
  77060. t1 = C.JSInt_methods.$mod(T.fuzzyIsInt0(exponentValue) ? C.JSNumber_methods.round$0(exponentValue) : _null, 2) === 1;
  77061. else
  77062. t1 = false;
  77063. else
  77064. t1 = false;
  77065. } else
  77066. t1 = false;
  77067. else
  77068. t1 = false;
  77069. if (t1)
  77070. exponentValue = T.fuzzyRound0(exponentValue);
  77071. }
  77072. }
  77073. H.checkNum(exponentValue);
  77074. t1 = Math.pow(baseValue, exponentValue);
  77075. return new T.SassNumber0(t1, C.List_empty, C.List_empty, _null);
  77076. },
  77077. $signature: 6
  77078. };
  77079. K.closure193.prototype = {
  77080. call$1: function($arguments) {
  77081. var t1,
  77082. number = J.$index$asx($arguments, 0).assertNumber$1("number");
  77083. if (number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0)
  77084. throw H.wrapException(E.SassScriptException$0("$number: Expected " + number.toString$0(0) + " to have no units."));
  77085. t1 = Math.sqrt(H.checkNum(K._fuzzyRoundIfZero0(number.value)));
  77086. return new T.SassNumber0(t1, C.List_empty, C.List_empty, null);
  77087. },
  77088. $signature: 6
  77089. };
  77090. K.closure203.prototype = {
  77091. call$1: function($arguments) {
  77092. var numberValue,
  77093. number = J.$index$asx($arguments, 0).assertNumber$1("number");
  77094. if (number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0)
  77095. throw H.wrapException(E.SassScriptException$0("$number: Expected " + number.toString$0(0) + " to have no units."));
  77096. numberValue = number.value;
  77097. if (Math.abs(Math.abs(numberValue) - 1) < $.$get$epsilon0())
  77098. numberValue = T.fuzzyRound0(numberValue);
  77099. return T.SassNumber$withUnits0(Math.acos(numberValue) * 180 / 3.141592653589793, null, H.setRuntimeTypeInfo(["deg"], type$.JSArray_String));
  77100. },
  77101. $signature: 6
  77102. };
  77103. K.closure202.prototype = {
  77104. call$1: function($arguments) {
  77105. var t1,
  77106. number = J.$index$asx($arguments, 0).assertNumber$1("number");
  77107. if (number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0)
  77108. throw H.wrapException(E.SassScriptException$0("$number: Expected " + number.toString$0(0) + " to have no units."));
  77109. t1 = number.value;
  77110. return T.SassNumber$withUnits0(Math.asin(H.checkNum(Math.abs(Math.abs(t1) - 1) < $.$get$epsilon0() ? T.fuzzyRound0(t1) : K._fuzzyRoundIfZero0(t1))) * 180 / 3.141592653589793, null, H.setRuntimeTypeInfo(["deg"], type$.JSArray_String));
  77111. },
  77112. $signature: 6
  77113. };
  77114. K.closure201.prototype = {
  77115. call$1: function($arguments) {
  77116. var number = J.$index$asx($arguments, 0).assertNumber$1("number");
  77117. if (number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0)
  77118. throw H.wrapException(E.SassScriptException$0("$number: Expected " + number.toString$0(0) + " to have no units."));
  77119. return T.SassNumber$withUnits0(Math.atan(H.checkNum(K._fuzzyRoundIfZero0(number.value))) * 180 / 3.141592653589793, null, H.setRuntimeTypeInfo(["deg"], type$.JSArray_String));
  77120. },
  77121. $signature: 6
  77122. };
  77123. K.closure200.prototype = {
  77124. call$1: function($arguments) {
  77125. var t2, t3, t4, unit1, unit2, xValue,
  77126. _s11_ = "is unitless",
  77127. t1 = J.getInterceptor$asx($arguments),
  77128. y = t1.$index($arguments, 0).assertNumber$1("y"),
  77129. x = t1.$index($arguments, 1).assertNumber$1("x");
  77130. t1 = y.numeratorUnits;
  77131. t2 = t1.length === 0;
  77132. t3 = !t2 || y.denominatorUnits.length !== 0;
  77133. t4 = x.numeratorUnits.length === 0;
  77134. if (t3 !== (!t4 || x.denominatorUnits.length !== 0)) {
  77135. unit1 = !t2 || y.denominatorUnits.length !== 0 ? "has unit " + y.get$unitString() : _s11_;
  77136. unit2 = !t4 || x.denominatorUnits.length !== 0 ? "has unit " + x.get$unitString() : _s11_;
  77137. throw H.wrapException(E.SassScriptException$0("$y " + unit1 + " but $x " + unit2 + ". Arguments must all have units or all be unitless."));
  77138. }
  77139. t2 = y.denominatorUnits;
  77140. xValue = K._fuzzyRoundIfZero0(T.SassNumber$withUnits0(x.valueInUnits$2(t1, t2), t2, t1).value);
  77141. return T.SassNumber$withUnits0(Math.atan2(H.checkNum(K._fuzzyRoundIfZero0(y.value)), H.checkNum(xValue)) * 180 / 3.141592653589793, null, H.setRuntimeTypeInfo(["deg"], type$.JSArray_String));
  77142. },
  77143. $signature: 6
  77144. };
  77145. K.closure198.prototype = {
  77146. call$1: function($arguments) {
  77147. var t1 = Math.cos(H.checkNum(K._coerceToRad0(J.$index$asx($arguments, 0).assertNumber$1("number")).value));
  77148. return new T.SassNumber0(t1, C.List_empty, C.List_empty, null);
  77149. },
  77150. $signature: 6
  77151. };
  77152. K.closure194.prototype = {
  77153. call$1: function($arguments) {
  77154. var t1 = Math.sin(H.checkNum(K._fuzzyRoundIfZero0(K._coerceToRad0(J.$index$asx($arguments, 0).assertNumber$1("number")).value)));
  77155. return new T.SassNumber0(t1, C.List_empty, C.List_empty, null);
  77156. },
  77157. $signature: 6
  77158. };
  77159. K.closure192.prototype = {
  77160. call$1: function($arguments) {
  77161. var t1 = K._coerceToRad0(J.$index$asx($arguments, 0).assertNumber$1("number")).value,
  77162. t2 = C.JSNumber_methods.$mod(t1 - 1.5707963267948966, 6.283185307179586),
  77163. t3 = $.$get$epsilon0();
  77164. if (Math.abs(t2 - 0) < t3)
  77165. return new T.SassNumber0(1 / 0, C.List_empty, C.List_empty, null);
  77166. else if (Math.abs(C.JSNumber_methods.$mod(t1 + 1.5707963267948966, 6.283185307179586) - 0) < t3)
  77167. return new T.SassNumber0(-1 / 0, C.List_empty, C.List_empty, null);
  77168. else {
  77169. t1 = Math.tan(H.checkNum(K._fuzzyRoundIfZero0(t1)));
  77170. return new T.SassNumber0(t1, C.List_empty, C.List_empty, null);
  77171. }
  77172. },
  77173. $signature: 6
  77174. };
  77175. K.closure126.prototype = {
  77176. call$1: function($arguments) {
  77177. var t1 = J.getInterceptor$asx($arguments);
  77178. return t1.$index($arguments, 0).assertNumber$1("number1").isComparableTo$1(t1.$index($arguments, 1).assertNumber$1("number2")) ? C.SassBoolean_true : C.SassBoolean_false;
  77179. },
  77180. $signature: 15
  77181. };
  77182. K.closure125.prototype = {
  77183. call$1: function($arguments) {
  77184. var number = J.$index$asx($arguments, 0).assertNumber$1("number");
  77185. return !(number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0) ? C.SassBoolean_true : C.SassBoolean_false;
  77186. },
  77187. $signature: 15
  77188. };
  77189. K.closure127.prototype = {
  77190. call$1: function($arguments) {
  77191. return new D.SassString0(J.$index$asx($arguments, 0).assertNumber$1("number").get$unitString(), true);
  77192. },
  77193. $signature: 11
  77194. };
  77195. K.closure129.prototype = {
  77196. call$1: function($arguments) {
  77197. var t1,
  77198. number = J.$index$asx($arguments, 0).assertNumber$1("number");
  77199. number.assertNoUnits$1("number");
  77200. t1 = H.setRuntimeTypeInfo(["%"], type$.JSArray_String);
  77201. t1 = P.List_List$unmodifiable(t1, type$.String);
  77202. return new T.SassNumber0(number.value * 100, t1, C.List_empty, null);
  77203. },
  77204. $signature: 6
  77205. };
  77206. K.closure128.prototype = {
  77207. call$1: function($arguments) {
  77208. var limit,
  77209. t1 = J.getInterceptor$asx($arguments);
  77210. if (J.$eq$(t1.$index($arguments, 0), C.C_SassNull)) {
  77211. t1 = $.$get$_random2().nextDouble$0();
  77212. return new T.SassNumber0(t1, C.List_empty, C.List_empty, null);
  77213. }
  77214. limit = t1.$index($arguments, 0).assertNumber$1("limit").assertInt$1("limit");
  77215. if (limit < 1)
  77216. throw H.wrapException(E.SassScriptException$0("$limit: Must be greater than 0, was " + limit + "."));
  77217. t1 = $.$get$_random2().nextInt$1(limit);
  77218. return new T.SassNumber0(t1 + 1, C.List_empty, C.List_empty, null);
  77219. },
  77220. $signature: 6
  77221. };
  77222. K._numberFunction_closure0.prototype = {
  77223. call$1: function($arguments) {
  77224. var number = J.$index$asx($arguments, 0).assertNumber$1("number");
  77225. return T.SassNumber$withUnits0(this.transform.call$1(number.value), number.denominatorUnits, number.numeratorUnits);
  77226. },
  77227. $signature: 6
  77228. };
  77229. F.CssMediaQuery0.prototype = {
  77230. merge$1: function(other) {
  77231. var _i, t8, negativeFeatures, features, type, modifier, fewerFeatures, fewerFeatures0, moreFeatures, _this = this, _null = null, _s3_ = "all",
  77232. t1 = _this.modifier,
  77233. ourModifier = t1 == null ? _null : t1.toLowerCase(),
  77234. t2 = _this.type,
  77235. t3 = t2 == null,
  77236. ourType = t3 ? _null : t2.toLowerCase(),
  77237. t4 = other.modifier,
  77238. theirModifier = t4 == null ? _null : t4.toLowerCase(),
  77239. t5 = other.type,
  77240. t6 = t5 == null,
  77241. theirType = t6 ? _null : t5.toLowerCase(),
  77242. t7 = ourType == null;
  77243. if (t7 && theirType == null) {
  77244. t1 = H.setRuntimeTypeInfo([], type$.JSArray_String);
  77245. for (t2 = _this.features, t3 = t2.length, _i = 0; _i < t3; ++_i)
  77246. t1.push(t2[_i]);
  77247. for (t2 = other.features, t3 = t2.length, _i = 0; _i < t3; ++_i)
  77248. t1.push(t2[_i]);
  77249. return new F.MediaQuerySuccessfulMergeResult0(new F.CssMediaQuery0(_null, _null, P.List_List$unmodifiable(t1, type$.String)));
  77250. }
  77251. t8 = ourModifier === "not";
  77252. if (t8 !== (theirModifier === "not")) {
  77253. if (ourType == theirType) {
  77254. negativeFeatures = t8 ? _this.features : other.features;
  77255. if (C.JSArray_methods.every$1(negativeFeatures, C.JSArray_methods.get$contains(t8 ? other.features : _this.features)))
  77256. return C._SingletonCssMediaQueryMergeResult_empty0;
  77257. else
  77258. return C._SingletonCssMediaQueryMergeResult_unrepresentable0;
  77259. } else if (t3 || B.equalsIgnoreCase0(t2, _s3_) || t6 || B.equalsIgnoreCase0(t5, _s3_))
  77260. return C._SingletonCssMediaQueryMergeResult_unrepresentable0;
  77261. if (t8) {
  77262. features = other.features;
  77263. type = theirType;
  77264. modifier = theirModifier;
  77265. } else {
  77266. features = _this.features;
  77267. type = ourType;
  77268. modifier = ourModifier;
  77269. }
  77270. } else if (t8) {
  77271. if (ourType != theirType)
  77272. return C._SingletonCssMediaQueryMergeResult_unrepresentable0;
  77273. fewerFeatures = _this.features;
  77274. fewerFeatures0 = other.features;
  77275. t3 = fewerFeatures.length > fewerFeatures0.length;
  77276. moreFeatures = t3 ? fewerFeatures : fewerFeatures0;
  77277. if (t3)
  77278. fewerFeatures = fewerFeatures0;
  77279. if (!C.JSArray_methods.every$1(fewerFeatures, C.JSArray_methods.get$contains(moreFeatures)))
  77280. return C._SingletonCssMediaQueryMergeResult_unrepresentable0;
  77281. features = moreFeatures;
  77282. type = ourType;
  77283. modifier = ourModifier;
  77284. } else if (t3 || B.equalsIgnoreCase0(t2, _s3_)) {
  77285. type = (t6 || B.equalsIgnoreCase0(t5, _s3_)) && t7 ? _null : theirType;
  77286. t3 = H.setRuntimeTypeInfo([], type$.JSArray_String);
  77287. for (t6 = _this.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
  77288. t3.push(t6[_i]);
  77289. for (t6 = other.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
  77290. t3.push(t6[_i]);
  77291. features = t3;
  77292. modifier = theirModifier;
  77293. } else {
  77294. if (t6 || B.equalsIgnoreCase0(t5, _s3_)) {
  77295. t3 = H.setRuntimeTypeInfo([], type$.JSArray_String);
  77296. for (t6 = _this.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
  77297. t3.push(t6[_i]);
  77298. for (t6 = other.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
  77299. t3.push(t6[_i]);
  77300. features = t3;
  77301. modifier = ourModifier;
  77302. } else {
  77303. if (ourType != theirType)
  77304. return C._SingletonCssMediaQueryMergeResult_empty0;
  77305. else {
  77306. modifier = ourModifier == null ? theirModifier : ourModifier;
  77307. t3 = H.setRuntimeTypeInfo([], type$.JSArray_String);
  77308. for (t6 = _this.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
  77309. t3.push(t6[_i]);
  77310. for (t6 = other.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
  77311. t3.push(t6[_i]);
  77312. }
  77313. features = t3;
  77314. }
  77315. type = ourType;
  77316. }
  77317. t2 = type == ourType ? t2 : t5;
  77318. return new F.MediaQuerySuccessfulMergeResult0(F.CssMediaQuery$0(t2, features, modifier == ourModifier ? t1 : t4));
  77319. },
  77320. $eq: function(_, other) {
  77321. if (other == null)
  77322. return false;
  77323. return other instanceof F.CssMediaQuery0 && other.modifier == this.modifier && other.type == this.type && C.C_ListEquality.equals$2(other.features, this.features);
  77324. },
  77325. get$hashCode: function(_) {
  77326. return J.get$hashCode$(this.modifier) ^ J.get$hashCode$(this.type) ^ C.C_ListEquality.hash$1(this.features);
  77327. },
  77328. toString$0: function(_) {
  77329. var t2, _this = this,
  77330. t1 = _this.modifier;
  77331. t1 = t1 != null ? t1 + " " : "";
  77332. t2 = _this.type;
  77333. if (t2 != null) {
  77334. t1 += t2;
  77335. if (_this.features.length !== 0)
  77336. t1 += " and ";
  77337. }
  77338. t1 += C.JSArray_methods.join$1(_this.features, " and ");
  77339. return t1.charCodeAt(0) == 0 ? t1 : t1;
  77340. }
  77341. };
  77342. F._SingletonCssMediaQueryMergeResult0.prototype = {
  77343. toString$0: function(_) {
  77344. return this._media_query1$_name;
  77345. }
  77346. };
  77347. F.MediaQuerySuccessfulMergeResult0.prototype = {};
  77348. F.MediaQueryParser0.prototype = {
  77349. parse$0: function() {
  77350. return this.wrapSpanFormatException$1(new F.MediaQueryParser_parse_closure0(this));
  77351. },
  77352. _media_query0$_mediaQuery$0: function() {
  77353. var identifier1, identifier2, type, modifier, features, _this = this, _null = null,
  77354. t1 = _this.scanner;
  77355. if (t1.peekChar$0() !== 40) {
  77356. identifier1 = _this.identifier$0();
  77357. _this.whitespace$0();
  77358. if (!_this.lookingAtIdentifier$0())
  77359. return F.CssMediaQuery$0(identifier1, _null, _null);
  77360. identifier2 = _this.identifier$0();
  77361. _this.whitespace$0();
  77362. if (B.equalsIgnoreCase0(identifier2, "and")) {
  77363. type = identifier1;
  77364. modifier = _null;
  77365. } else {
  77366. if (_this.scanIdentifier$1("and"))
  77367. _this.whitespace$0();
  77368. else
  77369. return F.CssMediaQuery$0(identifier2, _null, identifier1);
  77370. type = identifier2;
  77371. modifier = identifier1;
  77372. }
  77373. } else {
  77374. type = _null;
  77375. modifier = type;
  77376. }
  77377. features = H.setRuntimeTypeInfo([], type$.JSArray_String);
  77378. do {
  77379. _this.whitespace$0();
  77380. t1.expectChar$1(40);
  77381. features.push("(" + _this.declarationValue$0() + ")");
  77382. t1.expectChar$1(41);
  77383. _this.whitespace$0();
  77384. } while (_this.scanIdentifier$1("and"));
  77385. if (type == null)
  77386. return new F.CssMediaQuery0(_null, _null, P.List_List$unmodifiable(features, type$.String));
  77387. else
  77388. return F.CssMediaQuery$0(type, features, modifier);
  77389. }
  77390. };
  77391. F.MediaQueryParser_parse_closure0.prototype = {
  77392. call$0: function() {
  77393. var queries = H.setRuntimeTypeInfo([], type$.JSArray_CssMediaQuery_2),
  77394. t1 = this.$this,
  77395. t2 = t1.scanner;
  77396. do {
  77397. t1.whitespace$0();
  77398. queries.push(t1._media_query0$_mediaQuery$0());
  77399. } while (t2.scanChar$1(44));
  77400. t2.expectDone$0();
  77401. return queries;
  77402. },
  77403. $signature: 55
  77404. };
  77405. G.ModifiableCssMediaRule0.prototype = {
  77406. accept$1$1: function(visitor) {
  77407. return visitor.visitCssMediaRule$1(this);
  77408. },
  77409. accept$1: function(visitor) {
  77410. return this.accept$1$1(visitor, type$.dynamic);
  77411. },
  77412. copyWithoutChildren$0: function() {
  77413. return G.ModifiableCssMediaRule$0(this.queries, this.span);
  77414. },
  77415. $isCssMediaRule0: 1,
  77416. get$span: function() {
  77417. return this.span;
  77418. }
  77419. };
  77420. G.MediaRule0.prototype = {
  77421. accept$1$1: function(visitor) {
  77422. return visitor.visitMediaRule$1(this);
  77423. },
  77424. accept$1: function(visitor) {
  77425. return this.accept$1$1(visitor, type$.dynamic);
  77426. },
  77427. toString$0: function(_) {
  77428. var t1 = this.children;
  77429. return "@media " + this.query.toString$0(0) + " {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
  77430. },
  77431. get$span: function() {
  77432. return this.span;
  77433. }
  77434. };
  77435. A.MergedExtension0.prototype = {
  77436. unmerge$0: function() {
  77437. var $async$self = this;
  77438. return P._makeSyncStarIterable(function() {
  77439. var $async$goto = 0, $async$handler = 1, $async$currentError, t1;
  77440. return function $async$unmerge$0($async$errorCode, $async$result) {
  77441. if ($async$errorCode === 1) {
  77442. $async$currentError = $async$result;
  77443. $async$goto = $async$handler;
  77444. }
  77445. while (true)
  77446. switch ($async$goto) {
  77447. case 0:
  77448. // Function start
  77449. t1 = $async$self.left;
  77450. $async$goto = t1 instanceof A.MergedExtension0 ? 2 : 4;
  77451. break;
  77452. case 2:
  77453. // then
  77454. $async$goto = 5;
  77455. return P._IterationMarker_yieldStar(t1.unmerge$0());
  77456. case 5:
  77457. // after yield
  77458. // goto join
  77459. $async$goto = 3;
  77460. break;
  77461. case 4:
  77462. // else
  77463. $async$goto = 6;
  77464. return t1;
  77465. case 6:
  77466. // after yield
  77467. case 3:
  77468. // join
  77469. $async$goto = 7;
  77470. return $async$self.right;
  77471. case 7:
  77472. // after yield
  77473. // implicit return
  77474. return P._IterationMarker_endOfIteration();
  77475. case 1:
  77476. // rethrow
  77477. return P._IterationMarker_uncaughtError($async$currentError);
  77478. }
  77479. };
  77480. }, type$.Extension_2);
  77481. }
  77482. };
  77483. Z.MergedMapView0.prototype = {
  77484. get$keys: function() {
  77485. return this._merged_map_view$_mapsByKey.get$keys();
  77486. },
  77487. get$length: function(_) {
  77488. var t1 = this._merged_map_view$_mapsByKey;
  77489. return t1.get$length(t1);
  77490. },
  77491. get$isEmpty: function(_) {
  77492. var t1 = this._merged_map_view$_mapsByKey;
  77493. return t1.get$isEmpty(t1);
  77494. },
  77495. get$isNotEmpty: function(_) {
  77496. var t1 = this._merged_map_view$_mapsByKey;
  77497. return t1.get$isNotEmpty(t1);
  77498. },
  77499. MergedMapView$10: function(maps, $K, $V) {
  77500. var t1, t2, t3, _i, map, t4, t5;
  77501. for (t1 = maps.length, t2 = this._merged_map_view$_mapsByKey, t3 = $K._eval$1("@<0>")._bind$1($V)._eval$1("MergedMapView0<1,2>"), _i = 0; _i < maps.length; maps.length === t1 || (0, H.throwConcurrentModificationError)(maps), ++_i) {
  77502. map = maps[_i];
  77503. if (t3._is(map))
  77504. for (t4 = map._merged_map_view$_mapsByKey.get$values(), t4 = t4.get$iterator(t4); t4.moveNext$0();) {
  77505. t5 = t4.get$current(t4);
  77506. B.setAll0(t2, t5.get$keys(), t5);
  77507. }
  77508. else
  77509. B.setAll0(t2, map.get$keys(), map);
  77510. }
  77511. },
  77512. $index: function(_, key) {
  77513. var child = this._merged_map_view$_mapsByKey.$index(0, key);
  77514. return child == null ? null : child.$index(0, key);
  77515. },
  77516. $indexSet: function(_, key, value) {
  77517. var child = this._merged_map_view$_mapsByKey.$index(0, key);
  77518. if (child == null)
  77519. throw H.wrapException(P.UnsupportedError$("New entries may not be added to MergedMapView."));
  77520. child.$indexSet(0, key, value);
  77521. },
  77522. remove$1: function(_, key) {
  77523. throw H.wrapException(P.UnsupportedError$("Entries may not be removed from MergedMapView."));
  77524. },
  77525. containsKey$1: function(key) {
  77526. return this._merged_map_view$_mapsByKey.containsKey$1(key);
  77527. }
  77528. };
  77529. Q.closure209.prototype = {
  77530. call$1: function($arguments) {
  77531. return $._features0.contains$1(0, J.$index$asx($arguments, 0).assertString$1("feature").text) ? C.SassBoolean_true : C.SassBoolean_false;
  77532. },
  77533. $signature: 15
  77534. };
  77535. Q.closure210.prototype = {
  77536. call$1: function($arguments) {
  77537. return new D.SassString0(J.toString$0$(J.get$first$ax($arguments)), false);
  77538. },
  77539. $signature: 11
  77540. };
  77541. Q.closure211.prototype = {
  77542. call$1: function($arguments) {
  77543. var value = J.$index$asx($arguments, 0);
  77544. if (value instanceof D.SassArgumentList0)
  77545. return new D.SassString0("arglist", false);
  77546. if (value instanceof Z.SassBoolean0)
  77547. return new D.SassString0("bool", false);
  77548. if (value instanceof K.SassColor0)
  77549. return new D.SassString0("color", false);
  77550. if (value instanceof D.SassList0)
  77551. return new D.SassString0("list", false);
  77552. if (value instanceof A.SassMap0)
  77553. return new D.SassString0("map", false);
  77554. if (value instanceof O.SassNull0)
  77555. return new D.SassString0("null", false);
  77556. if (value instanceof T.SassNumber0)
  77557. return new D.SassString0("number", false);
  77558. if (value instanceof F.SassFunction0)
  77559. return new D.SassString0("function", false);
  77560. return new D.SassString0("string", false);
  77561. },
  77562. $signature: 11
  77563. };
  77564. Q.closure212.prototype = {
  77565. call$1: function($arguments) {
  77566. var t1,
  77567. argumentList = J.$index$asx($arguments, 0);
  77568. if (argumentList instanceof D.SassArgumentList0) {
  77569. argumentList._argument_list$_wereKeywordsAccessed = true;
  77570. t1 = type$.Value_2;
  77571. return new A.SassMap0(H.ConstantMap_ConstantMap$from(Y.mapMap(argumentList._argument_list$_keywords, new Q._closure28(), null, type$.String, t1, t1, t1), t1, t1));
  77572. } else
  77573. throw H.wrapException("$args: " + H.S(argumentList) + " is not an argument list.");
  77574. },
  77575. $signature: 29
  77576. };
  77577. Q._closure28.prototype = {
  77578. call$2: function(key, _) {
  77579. return new D.SassString0(key, false);
  77580. }
  77581. };
  77582. T.MixinRule0.prototype = {
  77583. accept$1$1: function(visitor) {
  77584. return visitor.visitMixinRule$1(this);
  77585. },
  77586. accept$1: function(visitor) {
  77587. return this.accept$1$1(visitor, type$.dynamic);
  77588. },
  77589. toString$0: function(_) {
  77590. var t1 = "@mixin " + H.S(this.name),
  77591. t2 = this.$arguments;
  77592. if (!(t2.$arguments.length === 0 && t2.restArgument == null))
  77593. t1 += "(" + t2.toString$0(0) + ")";
  77594. t2 = this.children;
  77595. t2 = t1 + (" {" + (t2 && C.JSArray_methods).join$1(t2, " ") + "}");
  77596. return t2.charCodeAt(0) == 0 ? t2 : t2;
  77597. }
  77598. };
  77599. L.ExtendMode0.prototype = {
  77600. toString$0: function(_) {
  77601. return this.name;
  77602. }
  77603. };
  77604. G.Module0.prototype = {};
  77605. M.SupportsNegation0.prototype = {
  77606. toString$0: function(_) {
  77607. var t1 = this.condition;
  77608. if (t1 instanceof M.SupportsNegation0 || t1 instanceof U.SupportsOperation0)
  77609. return "not (" + t1.toString$0(0) + ")";
  77610. else
  77611. return "not " + t1.toString$0(0);
  77612. },
  77613. $isAstNode0: 1,
  77614. get$span: function() {
  77615. return this.span;
  77616. }
  77617. };
  77618. N.NoSourceMapBuffer.prototype = {
  77619. get$length: function(_) {
  77620. return this._no_source_map_buffer$_buffer._contents.length;
  77621. },
  77622. get$sourceFiles: function() {
  77623. return C.Map_empty;
  77624. },
  77625. forSpan$1$2: function(span, callback) {
  77626. return callback.call$0();
  77627. },
  77628. forSpan$2: function(span, callback) {
  77629. return this.forSpan$1$2(span, callback, type$.dynamic);
  77630. },
  77631. write$1: function(_, object) {
  77632. this._no_source_map_buffer$_buffer._contents += H.S(object);
  77633. return null;
  77634. },
  77635. writeCharCode$1: function(charCode) {
  77636. this._no_source_map_buffer$_buffer._contents += H.Primitives_stringFromCharCode(charCode);
  77637. return null;
  77638. },
  77639. toString$0: function(_) {
  77640. var t1 = this._no_source_map_buffer$_buffer._contents;
  77641. return t1.charCodeAt(0) == 0 ? t1 : t1;
  77642. },
  77643. buildSourceMap$1$prefix: function(prefix) {
  77644. return H.throwExpression(P.UnsupportedError$("NoSourceMapBuffer.buildSourceMap() is not supported."));
  77645. },
  77646. $isStringBuffer: 1
  77647. };
  77648. B.AstNode0.prototype = {};
  77649. B._FakeAstNode0.prototype = {
  77650. get$span: function() {
  77651. return this._node3$_callback.call$0();
  77652. },
  77653. $isAstNode0: 1
  77654. };
  77655. B.CssNode0.prototype = {
  77656. toString$0: function(_) {
  77657. return N.serialize0(this, true, null, true, null, false, null, true).css;
  77658. }
  77659. };
  77660. B.CssParentNode0.prototype = {};
  77661. B._FS0.prototype = {};
  77662. B._Stat0.prototype = {};
  77663. B._Date0.prototype = {};
  77664. B._Stderr0.prototype = {};
  77665. B._Stdin0.prototype = {};
  77666. B._SystemError0.prototype = {};
  77667. B._Process0.prototype = {};
  77668. B.FileSystemException0.prototype = {
  77669. toString$0: function(_) {
  77670. var t1 = $.$get$context();
  77671. return H.S(t1.prettyUri$1(t1.toUri$1(this.path))) + ": " + this.message;
  77672. },
  77673. get$message: function(receiver) {
  77674. return this.message;
  77675. },
  77676. get$path: function(receiver) {
  77677. return this.path;
  77678. }
  77679. };
  77680. B.Stderr0.prototype = {
  77681. writeln$1: function(object) {
  77682. J.write$1$x(this._node1$_stderr, (object == null ? "" : object) + "\n");
  77683. },
  77684. writeln$0: function() {
  77685. return this.writeln$1(null);
  77686. }
  77687. };
  77688. B._readFile_closure0.prototype = {
  77689. call$0: function() {
  77690. return J.readFileSync$2$x(self.fs, this.path, this.encoding);
  77691. },
  77692. $signature: 44
  77693. };
  77694. B.fileExists_closure0.prototype = {
  77695. call$0: function() {
  77696. var error, systemError, exception,
  77697. t1 = this.path;
  77698. if (!J.existsSync$1$x(self.fs, t1))
  77699. return false;
  77700. try {
  77701. t1 = J.isFile$0$x(J.statSync$1$x(self.fs, t1));
  77702. return t1;
  77703. } catch (exception) {
  77704. error = H.unwrapException(exception);
  77705. systemError = type$._SystemError_2._as(error);
  77706. if (J.$eq$(J.get$code$x(systemError), "ENOENT"))
  77707. return false;
  77708. throw exception;
  77709. }
  77710. },
  77711. $signature: 25
  77712. };
  77713. B.dirExists_closure0.prototype = {
  77714. call$0: function() {
  77715. var error, systemError, exception,
  77716. t1 = this.path;
  77717. if (!J.existsSync$1$x(self.fs, t1))
  77718. return false;
  77719. try {
  77720. t1 = J.isDirectory$0$x(J.statSync$1$x(self.fs, t1));
  77721. return t1;
  77722. } catch (exception) {
  77723. error = H.unwrapException(exception);
  77724. systemError = type$._SystemError_2._as(error);
  77725. if (J.$eq$(J.get$code$x(systemError), "ENOENT"))
  77726. return false;
  77727. throw exception;
  77728. }
  77729. },
  77730. $signature: 25
  77731. };
  77732. B.listDir_closure0.prototype = {
  77733. call$0: function() {
  77734. var t1 = this.path;
  77735. if (!this.recursive)
  77736. return J.map$1$1$ax(J.readdirSync$1$x(self.fs, t1), new B.listDir__closure1(t1), type$.String).where$1(0, new B.listDir__closure2());
  77737. else
  77738. return new B.listDir_closure_list0().call$1(t1);
  77739. },
  77740. $signature: 66
  77741. };
  77742. B.listDir__closure1.prototype = {
  77743. call$1: function(child) {
  77744. return D.join(this.path, H._asStringNullable(child), null);
  77745. },
  77746. $signature: 27
  77747. };
  77748. B.listDir__closure2.prototype = {
  77749. call$1: function(child) {
  77750. return !B.dirExists0(child);
  77751. }
  77752. };
  77753. B.listDir_closure_list0.prototype = {
  77754. call$1: function($parent) {
  77755. return J.expand$1$1$ax(J.readdirSync$1$x(self.fs, $parent), new B.listDir__list_closure0($parent, this), type$.String);
  77756. }
  77757. };
  77758. B.listDir__list_closure0.prototype = {
  77759. call$1: function(child) {
  77760. var path = D.join(this.parent, H._asStringNullable(child), null);
  77761. return B.dirExists0(path) ? this.list.call$1(path) : H.setRuntimeTypeInfo([path], type$.JSArray_String);
  77762. },
  77763. $signature: 79
  77764. };
  77765. B.ModifiableCssNode0.prototype = {
  77766. get$hasFollowingSibling: function() {
  77767. var siblings, i, t2,
  77768. t1 = this._node2$_parent;
  77769. if (t1 == null)
  77770. return false;
  77771. siblings = t1.children;
  77772. for (i = this._node2$_indexInParent + 1, t1 = siblings._collection$_source, t2 = J.getInterceptor$asx(t1); i < t2.get$length(t1); ++i)
  77773. if (!this._node2$_isInvisible$1(t2.elementAt$1(t1, i)))
  77774. return true;
  77775. return false;
  77776. },
  77777. _node2$_isInvisible$1: function(node) {
  77778. if (type$.CssParentNode_2._is(node)) {
  77779. if (type$.CssAtRule_2._is(node))
  77780. return false;
  77781. if (type$.CssStyleRule_2._is(node) && node.selector.value.get$isInvisible())
  77782. return true;
  77783. return J.every$1$ax(node.get$children(), this.get$_node2$_isInvisible());
  77784. } else
  77785. return false;
  77786. },
  77787. get$isGroupEnd: function() {
  77788. return this.isGroupEnd;
  77789. }
  77790. };
  77791. B.ModifiableCssParentNode0.prototype = {
  77792. get$isChildless: function() {
  77793. return false;
  77794. },
  77795. addChild$1: function(child) {
  77796. var t1;
  77797. child._node2$_parent = this;
  77798. t1 = this._node2$_children;
  77799. child._node2$_indexInParent = t1.length;
  77800. t1.push(child);
  77801. },
  77802. $isCssParentNode0: 1,
  77803. get$children: function() {
  77804. return this.children;
  77805. }
  77806. };
  77807. B.SassNode0.prototype = {};
  77808. B._render_closure.prototype = {
  77809. call$0: function() {
  77810. var error, exception;
  77811. try {
  77812. this.callback.call$2(null, B._renderSync(this.options));
  77813. } catch (exception) {
  77814. error = H.unwrapException(exception);
  77815. this.callback.call$2(type$.JSError._as(error), null);
  77816. }
  77817. return null;
  77818. },
  77819. "call*": "call$0",
  77820. $requiredArgCount: 0,
  77821. $signature: 0
  77822. };
  77823. B._render_closure0.prototype = {
  77824. call$1: function(result) {
  77825. this.callback.call$2(null, result);
  77826. }
  77827. };
  77828. B._render_closure1.prototype = {
  77829. call$2: function(error, stackTrace) {
  77830. var _null = null,
  77831. t1 = this.callback;
  77832. if (error instanceof E.SassException0)
  77833. t1.call$2(B._wrapException(error), _null);
  77834. else
  77835. t1.call$2(B._newRenderError(J.toString$0$(error), _null, _null, _null, 3), _null);
  77836. },
  77837. "call*": "call$2",
  77838. $requiredArgCount: 2,
  77839. $signature: 89
  77840. };
  77841. B._parseFunctions_closure.prototype = {
  77842. call$2: function(signature, callback) {
  77843. var error, t1, exception, _this = this, tuple = null;
  77844. try {
  77845. t1 = S.SpanScanner$(signature, null);
  77846. tuple = new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, C.C_StderrLogger).parseSignature$0();
  77847. } catch (exception) {
  77848. t1 = H.unwrapException(exception);
  77849. if (t1 instanceof E.SassFormatException0) {
  77850. error = t1;
  77851. throw H.wrapException(E.SassFormatException$0('Invalid signature "' + H.S(signature) + '": ' + H.S(error._span_exception$_message), error.get$span()));
  77852. } else
  77853. throw exception;
  77854. }
  77855. t1 = _this.options;
  77856. if (J.get$fiber$x(t1) != null)
  77857. _this.result.push(Q.BuiltInCallable$parsed(tuple.item1, tuple.item2, new B._parseFunctions__closure(t1, callback)));
  77858. else {
  77859. t1 = _this.result;
  77860. if (!_this.asynch)
  77861. t1.push(Q.BuiltInCallable$parsed(tuple.item1, tuple.item2, new B._parseFunctions__closure0(callback)));
  77862. else
  77863. t1.push(new S.AsyncBuiltInCallable0(tuple.item1, tuple.item2, new B._parseFunctions__closure1(callback)));
  77864. }
  77865. },
  77866. $signature: 137
  77867. };
  77868. B._parseFunctions__closure.prototype = {
  77869. call$1: function($arguments) {
  77870. var t4, result,
  77871. t1 = this.options,
  77872. t2 = J.getInterceptor$x(t1),
  77873. fiber = J.get$current$x(t2.get$fiber(t1)),
  77874. t3 = [];
  77875. for (t4 = J.map$1$1$ax($arguments, F.value1__wrapValue$closure(), type$.Object), t4 = t4.get$iterator(t4); t4.moveNext$0();)
  77876. t3.push(t4.get$current(t4));
  77877. t3.push(P.allowInterop(new B._parseFunctions___closure0(fiber)));
  77878. result = P.Function_apply(type$.Function._as(this.callback), t3);
  77879. return F.unwrapValue(H._asBoolNullable($.$get$_isUndefined().call$1(result)) ? J.yield$0$x(t2.get$fiber(t1)) : result);
  77880. },
  77881. $signature: 3
  77882. };
  77883. B._parseFunctions___closure0.prototype = {
  77884. call$1: function(result) {
  77885. P.scheduleMicrotask(new B._parseFunctions____closure(this.fiber, result));
  77886. },
  77887. call$0: function() {
  77888. return this.call$1(null);
  77889. },
  77890. "call*": "call$1",
  77891. $requiredArgCount: 0,
  77892. $defaultValues: function() {
  77893. return [null];
  77894. },
  77895. $signature: 40
  77896. };
  77897. B._parseFunctions____closure.prototype = {
  77898. call$0: function() {
  77899. return J.run$1$x(this.fiber, this.result);
  77900. },
  77901. "call*": "call$0",
  77902. $requiredArgCount: 0,
  77903. $signature: 44
  77904. };
  77905. B._parseFunctions__closure0.prototype = {
  77906. call$1: function($arguments) {
  77907. return F.unwrapValue(P.Function_apply(type$.Function._as(this.callback), J.map$1$1$ax($arguments, F.value1__wrapValue$closure(), type$.Object).toList$0(0)));
  77908. },
  77909. $signature: 3
  77910. };
  77911. B._parseFunctions__closure1.prototype = {
  77912. call$1: function($arguments) {
  77913. return this.$call$body$_parseFunctions__closure($arguments);
  77914. },
  77915. $call$body$_parseFunctions__closure: function($arguments) {
  77916. var $async$goto = 0,
  77917. $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
  77918. $async$returnValue, $async$self = this, t2, result, completer, t1, $async$temp1;
  77919. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  77920. if ($async$errorCode === 1)
  77921. return P._asyncRethrow($async$result, $async$completer);
  77922. while (true)
  77923. switch ($async$goto) {
  77924. case 0:
  77925. // Function start
  77926. completer = new P._AsyncCompleter(new P._Future($.Zone__current, type$._Future_Object), type$._AsyncCompleter_Object);
  77927. t1 = [];
  77928. for (t2 = J.map$1$1$ax($arguments, F.value1__wrapValue$closure(), type$.Object), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  77929. t1.push(t2.get$current(t2));
  77930. t1.push(P.allowInterop(new B._parseFunctions___closure(completer)));
  77931. result = P.Function_apply(type$.Function._as($async$self.callback), t1);
  77932. $async$temp1 = F;
  77933. $async$goto = H._asBoolNullable($.$get$_isUndefined().call$1(result)) ? 3 : 5;
  77934. break;
  77935. case 3:
  77936. // then
  77937. $async$goto = 6;
  77938. return P._asyncAwait(completer.future, $async$call$1);
  77939. case 6:
  77940. // returning from await.
  77941. // goto join
  77942. $async$goto = 4;
  77943. break;
  77944. case 5:
  77945. // else
  77946. $async$result = result;
  77947. case 4:
  77948. // join
  77949. $async$returnValue = $async$temp1.unwrapValue($async$result);
  77950. // goto return
  77951. $async$goto = 1;
  77952. break;
  77953. case 1:
  77954. // return
  77955. return P._asyncReturn($async$returnValue, $async$completer);
  77956. }
  77957. });
  77958. return P._asyncStartSync($async$call$1, $async$completer);
  77959. }
  77960. };
  77961. B._parseFunctions___closure.prototype = {
  77962. call$1: function(result) {
  77963. return this.completer.complete$1(result);
  77964. },
  77965. call$0: function() {
  77966. return this.call$1(null);
  77967. },
  77968. "call*": "call$1",
  77969. $requiredArgCount: 0,
  77970. $defaultValues: function() {
  77971. return [null];
  77972. },
  77973. $signature: 86
  77974. };
  77975. B._parseImporter_closure.prototype = {
  77976. call$1: function(importer) {
  77977. return type$.JSFunction._as(P.allowInteropCaptureThis(new B._parseImporter__closure(this.options, importer)));
  77978. }
  77979. };
  77980. B._parseImporter__closure.prototype = {
  77981. call$4: function(thisArg, url, previous, _) {
  77982. var t1 = this.options,
  77983. t2 = J.getInterceptor$x(t1),
  77984. result = J.apply$2$x(this.importer, thisArg, [url, previous, P.allowInterop(new B._parseImporter___closure(J.get$current$x(t2.get$fiber(t1))))]);
  77985. if (H._asBoolNullable($.$get$_isUndefined().call$1(result)))
  77986. return J.yield$0$x(t2.get$fiber(t1));
  77987. return result;
  77988. },
  77989. call$3: function(thisArg, url, previous) {
  77990. return this.call$4(thisArg, url, previous, null);
  77991. },
  77992. "call*": "call$4",
  77993. $requiredArgCount: 3,
  77994. $defaultValues: function() {
  77995. return [null];
  77996. }
  77997. };
  77998. B._parseImporter___closure.prototype = {
  77999. call$1: function(result) {
  78000. P.scheduleMicrotask(new B._parseImporter____closure(this.fiber, result));
  78001. },
  78002. $signature: 138
  78003. };
  78004. B._parseImporter____closure.prototype = {
  78005. call$0: function() {
  78006. return J.run$1$x(this.fiber, this.result);
  78007. },
  78008. "call*": "call$0",
  78009. $requiredArgCount: 0,
  78010. $signature: 44
  78011. };
  78012. O.NullExpression0.prototype = {
  78013. accept$1$1: function(visitor) {
  78014. return visitor.visitNullExpression$1(this);
  78015. },
  78016. accept$1: function(visitor) {
  78017. return this.accept$1$1(visitor, type$.dynamic);
  78018. },
  78019. toString$0: function(_) {
  78020. return "null";
  78021. },
  78022. $isExpression0: 1,
  78023. $isAstNode0: 1,
  78024. get$span: function() {
  78025. return this.span;
  78026. }
  78027. };
  78028. O.closure224.prototype = {
  78029. call$0: function() {
  78030. var $constructor = P.allowInterop(new O._closure29());
  78031. B.injectSuperclass(C.C_SassNull, $constructor);
  78032. self.Object.defineProperty(C.C_SassNull.constructor, "name", {value: "SassNull"});
  78033. B.forwardToString($constructor);
  78034. $constructor.NULL = C.C_SassNull;
  78035. C.C_SassNull.toString = P.allowInterop(new O._closure30());
  78036. return $constructor;
  78037. },
  78038. $signature: 83
  78039. };
  78040. O._closure29.prototype = {
  78041. call$1: function(_) {
  78042. throw H.wrapException("new sass.types.Null() isn't allowed. Use sass.types.Null.NULL instead.");
  78043. },
  78044. call$0: function() {
  78045. return this.call$1(null);
  78046. },
  78047. "call*": "call$1",
  78048. $requiredArgCount: 0,
  78049. $defaultValues: function() {
  78050. return [null];
  78051. },
  78052. $signature: 51
  78053. };
  78054. O._closure30.prototype = {
  78055. call$0: function() {
  78056. return "null";
  78057. },
  78058. "call*": "call$0",
  78059. $requiredArgCount: 0,
  78060. $signature: 10
  78061. };
  78062. O.SassNull0.prototype = {
  78063. get$isTruthy: function() {
  78064. return false;
  78065. },
  78066. get$isBlank: function() {
  78067. return true;
  78068. },
  78069. get$realNull: function() {
  78070. return null;
  78071. },
  78072. accept$1$1: function(visitor) {
  78073. if (visitor._inspect)
  78074. visitor._buffer.write$1(0, "null");
  78075. return null;
  78076. },
  78077. accept$1: function(visitor) {
  78078. return this.accept$1$1(visitor, type$.dynamic);
  78079. },
  78080. unaryNot$0: function() {
  78081. return C.SassBoolean_true;
  78082. }
  78083. };
  78084. T.NumberExpression0.prototype = {
  78085. accept$1$1: function(visitor) {
  78086. return visitor.visitNumberExpression$1(this);
  78087. },
  78088. accept$1: function(visitor) {
  78089. return this.accept$1$1(visitor, type$.dynamic);
  78090. },
  78091. toString$0: function(_) {
  78092. var t1 = H.S(this.value),
  78093. t2 = this.unit;
  78094. return t1 + (t2 == null ? "" : t2);
  78095. },
  78096. $isExpression0: 1,
  78097. $isAstNode0: 1,
  78098. get$span: function() {
  78099. return this.span;
  78100. }
  78101. };
  78102. T._NodeSassNumber.prototype = {};
  78103. T.closure218.prototype = {
  78104. call$4: function(thisArg, value, unit, dartValue) {
  78105. J.set$dartValue$x(thisArg, dartValue == null ? T._parseNumber(value, unit) : dartValue);
  78106. },
  78107. call$2: function(thisArg, value) {
  78108. return this.call$4(thisArg, value, null, null);
  78109. },
  78110. call$3: function(thisArg, value, unit) {
  78111. return this.call$4(thisArg, value, unit, null);
  78112. },
  78113. "call*": "call$4",
  78114. $requiredArgCount: 2,
  78115. $defaultValues: function() {
  78116. return [null, null];
  78117. }
  78118. };
  78119. T.closure219.prototype = {
  78120. call$1: function(thisArg) {
  78121. return J.get$dartValue$x(thisArg).value;
  78122. }
  78123. };
  78124. T.closure220.prototype = {
  78125. call$2: function(thisArg, value) {
  78126. var t1 = J.getInterceptor$x(thisArg),
  78127. t2 = t1.get$dartValue(thisArg).numeratorUnits;
  78128. t1.set$dartValue(thisArg, T.SassNumber$withUnits0(value, t1.get$dartValue(thisArg).denominatorUnits, t2));
  78129. },
  78130. "call*": "call$2",
  78131. $requiredArgCount: 2
  78132. };
  78133. T.closure221.prototype = {
  78134. call$1: function(thisArg) {
  78135. var t1 = J.getInterceptor$x(thisArg),
  78136. t2 = C.JSArray_methods.join$1(t1.get$dartValue(thisArg).numeratorUnits, "*");
  78137. return t2 + (t1.get$dartValue(thisArg).denominatorUnits.length === 0 ? "" : "/") + C.JSArray_methods.join$1(t1.get$dartValue(thisArg).denominatorUnits, "*");
  78138. }
  78139. };
  78140. T.closure222.prototype = {
  78141. call$2: function(thisArg, unit) {
  78142. var t1 = J.getInterceptor$x(thisArg);
  78143. t1.set$dartValue(thisArg, T._parseNumber(t1.get$dartValue(thisArg).value, unit));
  78144. },
  78145. "call*": "call$2",
  78146. $requiredArgCount: 2
  78147. };
  78148. T.closure223.prototype = {
  78149. call$1: function(thisArg) {
  78150. return J.toString$0$(J.get$dartValue$x(thisArg));
  78151. }
  78152. };
  78153. T._parseNumber_closure.prototype = {
  78154. call$1: function(unit) {
  78155. return unit.length === 0;
  78156. }
  78157. };
  78158. T._parseNumber_closure0.prototype = {
  78159. call$1: function(unit) {
  78160. return unit.length === 0;
  78161. }
  78162. };
  78163. T.SassNumber0.prototype = {
  78164. get$unitString: function() {
  78165. var _this = this,
  78166. t1 = _this.numeratorUnits;
  78167. return t1.length !== 0 || _this.denominatorUnits.length !== 0 ? _this._number1$_unitString$2(t1, _this.denominatorUnits) : "";
  78168. },
  78169. accept$1$1: function(visitor) {
  78170. return visitor.visitNumber$1(this);
  78171. },
  78172. accept$1: function(visitor) {
  78173. return this.accept$1$1(visitor, type$.dynamic);
  78174. },
  78175. withoutSlash$0: function() {
  78176. var _this = this;
  78177. if (_this.asSlash == null)
  78178. return _this;
  78179. return new T.SassNumber0(_this.value, _this.numeratorUnits, _this.denominatorUnits, null);
  78180. },
  78181. withSlash$2: function(numerator, denominator) {
  78182. return new T.SassNumber0(this.value, this.numeratorUnits, this.denominatorUnits, new S.Tuple2(numerator, denominator, type$.Tuple2_SassNumber_SassNumber_2));
  78183. },
  78184. assertNumber$1: function($name) {
  78185. return this;
  78186. },
  78187. assertNumber$0: function() {
  78188. return this.assertNumber$1(null);
  78189. },
  78190. assertInt$1: function($name) {
  78191. var t1 = this.value,
  78192. integer = T.fuzzyIsInt0(t1) ? J.round$0$n(t1) : null;
  78193. if (integer != null)
  78194. return integer;
  78195. throw H.wrapException(this._number1$_exception$2(this.toString$0(0) + " is not an int.", $name));
  78196. },
  78197. assertInt$0: function() {
  78198. return this.assertInt$1(null);
  78199. },
  78200. valueInRange$3: function(min, max, $name) {
  78201. var _this = this,
  78202. result = T.fuzzyCheckRange0(_this.value, min, max);
  78203. if (result != null)
  78204. return result;
  78205. throw H.wrapException(_this._number1$_exception$2("Expected " + _this.toString$0(0) + " to be within " + min + _this.get$unitString() + " and " + max + _this.get$unitString() + ".", $name));
  78206. },
  78207. hasUnit$1: function(unit) {
  78208. var t1 = this.numeratorUnits;
  78209. return t1.length === 1 && this.denominatorUnits.length === 0 && J.$eq$(C.JSArray_methods.get$first(t1), unit);
  78210. },
  78211. assertUnit$2: function(unit, $name) {
  78212. if (this.hasUnit$1(unit))
  78213. return;
  78214. throw H.wrapException(this._number1$_exception$2("Expected " + this.toString$0(0) + ' to have unit "' + unit + '".', $name));
  78215. },
  78216. assertNoUnits$1: function($name) {
  78217. var _this = this;
  78218. if (!(_this.numeratorUnits.length !== 0 || _this.denominatorUnits.length !== 0))
  78219. return;
  78220. throw H.wrapException(_this._number1$_exception$2("Expected " + _this.toString$0(0) + " to have no units.", $name));
  78221. },
  78222. valueInUnits$2: function(newNumerators, newDenominators) {
  78223. var t1, oldNumerators, t2, _i, oldDenominators, t3, _this = this, _box_0 = {};
  78224. if (!(newNumerators.length === 0 && newDenominators.length === 0)) {
  78225. t1 = _this.numeratorUnits;
  78226. if (!(t1.length === 0 && _this.denominatorUnits.length === 0))
  78227. t1 = C.C_ListEquality.equals$2(t1, newNumerators) && C.C_ListEquality.equals$2(_this.denominatorUnits, newDenominators);
  78228. else
  78229. t1 = true;
  78230. } else
  78231. t1 = true;
  78232. if (t1)
  78233. return _this.value;
  78234. _box_0.value = _this.value;
  78235. t1 = _this.numeratorUnits;
  78236. oldNumerators = H.setRuntimeTypeInfo(t1.slice(0), H._arrayInstanceType(t1)._eval$1("JSArray<1>"));
  78237. for (t2 = newNumerators.length, _i = 0; _i < newNumerators.length; newNumerators.length === t2 || (0, H.throwConcurrentModificationError)(newNumerators), ++_i)
  78238. B.removeFirstWhere0(oldNumerators, new T.SassNumber_valueInUnits_closure3(_box_0, _this, newNumerators[_i]), new T.SassNumber_valueInUnits_closure4(_this, newNumerators, newDenominators));
  78239. t2 = _this.denominatorUnits;
  78240. oldDenominators = H.setRuntimeTypeInfo(t2.slice(0), H._arrayInstanceType(t2)._eval$1("JSArray<1>"));
  78241. for (t3 = newDenominators.length, _i = 0; _i < newDenominators.length; newDenominators.length === t3 || (0, H.throwConcurrentModificationError)(newDenominators), ++_i)
  78242. B.removeFirstWhere0(oldDenominators, new T.SassNumber_valueInUnits_closure5(_box_0, _this, newDenominators[_i]), new T.SassNumber_valueInUnits_closure6(_this, newNumerators, newDenominators));
  78243. if (oldNumerators.length !== 0 || oldDenominators.length !== 0)
  78244. throw H.wrapException(E.SassScriptException$0("Incompatible units " + _this._number1$_unitString$2(t1, t2) + " and " + _this._number1$_unitString$2(newNumerators, newDenominators) + "."));
  78245. return _box_0.value;
  78246. },
  78247. isComparableTo$1: function(other) {
  78248. var t1, exception;
  78249. if (this.numeratorUnits.length !== 0 || this.denominatorUnits.length !== 0)
  78250. t1 = !(other.numeratorUnits.length !== 0 || other.denominatorUnits.length !== 0);
  78251. else
  78252. t1 = true;
  78253. if (t1)
  78254. return true;
  78255. try {
  78256. this.greaterThan$1(other);
  78257. return true;
  78258. } catch (exception) {
  78259. if (H.unwrapException(exception) instanceof E.SassScriptException0)
  78260. return false;
  78261. else
  78262. throw exception;
  78263. }
  78264. },
  78265. greaterThan$1: function(other) {
  78266. if (other instanceof T.SassNumber0)
  78267. return this._number1$_coerceUnits$2(other, T.number2__fuzzyGreaterThan$closure()) ? C.SassBoolean_true : C.SassBoolean_false;
  78268. throw H.wrapException(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " > " + H.S(other) + '".'));
  78269. },
  78270. greaterThanOrEquals$1: function(other) {
  78271. if (other instanceof T.SassNumber0)
  78272. return this._number1$_coerceUnits$2(other, T.number2__fuzzyGreaterThanOrEquals$closure()) ? C.SassBoolean_true : C.SassBoolean_false;
  78273. throw H.wrapException(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " >= " + H.S(other) + '".'));
  78274. },
  78275. lessThan$1: function(other) {
  78276. if (other instanceof T.SassNumber0)
  78277. return this._number1$_coerceUnits$2(other, T.number2__fuzzyLessThan$closure()) ? C.SassBoolean_true : C.SassBoolean_false;
  78278. throw H.wrapException(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " < " + H.S(other) + '".'));
  78279. },
  78280. lessThanOrEquals$1: function(other) {
  78281. if (other instanceof T.SassNumber0)
  78282. return this._number1$_coerceUnits$2(other, T.number2__fuzzyLessThanOrEquals$closure()) ? C.SassBoolean_true : C.SassBoolean_false;
  78283. throw H.wrapException(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " <= " + H.S(other) + '".'));
  78284. },
  78285. modulo$1: function(other) {
  78286. if (other instanceof T.SassNumber0)
  78287. return this._number1$_coerceNumber$2(other, new T.SassNumber_modulo_closure0());
  78288. throw H.wrapException(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " % " + H.S(other) + '".'));
  78289. },
  78290. plus$1: function(other) {
  78291. if (other instanceof T.SassNumber0)
  78292. return this._number1$_coerceNumber$2(other, new T.SassNumber_plus_closure0());
  78293. if (!(other instanceof K.SassColor0))
  78294. return this.super$Value$plus0(other);
  78295. throw H.wrapException(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " + " + other.toString$0(0) + '".'));
  78296. },
  78297. minus$1: function(other) {
  78298. if (other instanceof T.SassNumber0)
  78299. return this._number1$_coerceNumber$2(other, new T.SassNumber_minus_closure0());
  78300. if (!(other instanceof K.SassColor0))
  78301. return this.super$Value$minus0(other);
  78302. throw H.wrapException(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " - " + other.toString$0(0) + '".'));
  78303. },
  78304. times$1: function(other) {
  78305. var _this = this;
  78306. if (other instanceof T.SassNumber0)
  78307. return _this._number1$_multiplyUnits$5(_this.value * other.value, _this.numeratorUnits, _this.denominatorUnits, other.numeratorUnits, other.denominatorUnits);
  78308. throw H.wrapException(E.SassScriptException$0('Undefined operation "' + _this.toString$0(0) + " * " + H.S(other) + '".'));
  78309. },
  78310. dividedBy$1: function(other) {
  78311. var _this = this;
  78312. if (other instanceof T.SassNumber0)
  78313. return _this._number1$_multiplyUnits$5(_this.value / other.value, _this.numeratorUnits, _this.denominatorUnits, other.denominatorUnits, other.numeratorUnits);
  78314. return _this.super$Value$dividedBy0(other);
  78315. },
  78316. unaryPlus$0: function() {
  78317. return this;
  78318. },
  78319. unaryMinus$0: function() {
  78320. return T.SassNumber$withUnits0(-this.value, this.denominatorUnits, this.numeratorUnits);
  78321. },
  78322. _number1$_coerceNumber$2: function(other, operation) {
  78323. var _this = this,
  78324. result = _this._number1$_coerceUnits$2(other, operation),
  78325. t1 = _this.numeratorUnits,
  78326. t2 = t1.length === 0;
  78327. t1 = !t2 || _this.denominatorUnits.length !== 0 ? t1 : other.numeratorUnits;
  78328. return T.SassNumber$withUnits0(result, !t2 || _this.denominatorUnits.length !== 0 ? _this.denominatorUnits : other.denominatorUnits, t1);
  78329. },
  78330. _number1$_coerceUnits$1$2: function(other, operation) {
  78331. var num1, num2, _this = this,
  78332. t1 = _this.numeratorUnits;
  78333. if (t1.length !== 0 || _this.denominatorUnits.length !== 0) {
  78334. num1 = _this.value;
  78335. num2 = other.valueInUnits$2(t1, _this.denominatorUnits);
  78336. } else {
  78337. num1 = _this.valueInUnits$2(other.numeratorUnits, other.denominatorUnits);
  78338. num2 = other.value;
  78339. }
  78340. return operation.call$2(num1, num2);
  78341. },
  78342. _number1$_coerceUnits$2: function(other, operation) {
  78343. return this._number1$_coerceUnits$1$2(other, operation, type$.dynamic);
  78344. },
  78345. _number1$_multiplyUnits$5: function(value, numerators1, denominators1, numerators2, denominators2) {
  78346. var t1, newNumerators, mutableDenominators2, _i, numerator, mutableDenominators1, _this = this, _box_0 = {};
  78347. _box_0.value = value;
  78348. t1 = numerators1.length;
  78349. if (t1 === 0) {
  78350. if (denominators2.length === 0 && !_this._number1$_areAnyConvertible$2(denominators1, numerators2))
  78351. return T.SassNumber$withUnits0(value, denominators1, numerators2);
  78352. else if (denominators1.length === 0)
  78353. return T.SassNumber$withUnits0(value, denominators2, numerators2);
  78354. } else if (numerators2.length === 0)
  78355. if (denominators2.length === 0)
  78356. return T.SassNumber$withUnits0(value, denominators2, numerators1);
  78357. else if (denominators1.length === 0 && !_this._number1$_areAnyConvertible$2(numerators1, denominators2))
  78358. return T.SassNumber$withUnits0(value, denominators2, numerators1);
  78359. newNumerators = H.setRuntimeTypeInfo([], type$.JSArray_String);
  78360. mutableDenominators2 = H.setRuntimeTypeInfo(denominators2.slice(0), H._arrayInstanceType(denominators2)._eval$1("JSArray<1>"));
  78361. for (_i = 0; _i < t1; ++_i) {
  78362. numerator = numerators1[_i];
  78363. B.removeFirstWhere0(mutableDenominators2, new T.SassNumber__multiplyUnits_closure3(_box_0, _this, numerator), new T.SassNumber__multiplyUnits_closure4(newNumerators, numerator));
  78364. }
  78365. mutableDenominators1 = H.setRuntimeTypeInfo(denominators1.slice(0), H._arrayInstanceType(denominators1)._eval$1("JSArray<1>"));
  78366. for (t1 = numerators2.length, _i = 0; _i < t1; ++_i) {
  78367. numerator = numerators2[_i];
  78368. B.removeFirstWhere0(mutableDenominators1, new T.SassNumber__multiplyUnits_closure5(_box_0, _this, numerator), new T.SassNumber__multiplyUnits_closure6(newNumerators, numerator));
  78369. }
  78370. t1 = _box_0.value;
  78371. C.JSArray_methods.addAll$1(mutableDenominators1, mutableDenominators2);
  78372. return T.SassNumber$withUnits0(t1, mutableDenominators1, newNumerators);
  78373. },
  78374. _number1$_areAnyConvertible$2: function(units1, units2) {
  78375. return C.JSArray_methods.any$1(units1, new T.SassNumber__areAnyConvertible_closure0(this, units2));
  78376. },
  78377. _number1$_conversionFactor$2: function(unit1, unit2) {
  78378. var innerMap;
  78379. if (unit1 == unit2)
  78380. return 1;
  78381. innerMap = $.$get$_conversions0().$index(0, unit1);
  78382. if (innerMap == null)
  78383. return null;
  78384. return innerMap.$index(0, unit2);
  78385. },
  78386. _number1$_unitString$2: function(numerators, denominators) {
  78387. var t1;
  78388. if (numerators.length === 0) {
  78389. t1 = denominators.length;
  78390. if (t1 === 0)
  78391. return "no units";
  78392. if (t1 === 1)
  78393. return J.$add$ansx(C.JSArray_methods.get$single(denominators), "^-1");
  78394. return "(" + C.JSArray_methods.join$1(denominators, "*") + ")^-1";
  78395. }
  78396. if (denominators.length === 0)
  78397. return C.JSArray_methods.join$1(numerators, "*");
  78398. return C.JSArray_methods.join$1(numerators, "*") + "/" + C.JSArray_methods.join$1(denominators, "*");
  78399. },
  78400. $eq: function(_, other) {
  78401. var t1, t2, t3, exception, _this = this;
  78402. if (other == null)
  78403. return false;
  78404. if (other instanceof T.SassNumber0) {
  78405. t1 = _this.numeratorUnits.length === 0;
  78406. t2 = !t1 || _this.denominatorUnits.length !== 0;
  78407. t3 = other;
  78408. if (t2 !== (t3.numeratorUnits.length !== 0 || t3.denominatorUnits.length !== 0))
  78409. return false;
  78410. if (!(!t1 || _this.denominatorUnits.length !== 0))
  78411. return Math.abs(_this.value - other.value) < $.$get$epsilon0();
  78412. try {
  78413. t1 = _this._number1$_coerceUnits$2(other, T.number2__fuzzyEquals$closure());
  78414. return t1;
  78415. } catch (exception) {
  78416. if (H.unwrapException(exception) instanceof E.SassScriptException0)
  78417. return false;
  78418. else
  78419. throw exception;
  78420. }
  78421. } else
  78422. return false;
  78423. },
  78424. get$hashCode: function(_) {
  78425. var _this = this;
  78426. return C.JSInt_methods.get$hashCode(C.JSDouble_methods.round$0(_this.value * _this._number1$_canonicalMultiplier$1(_this.numeratorUnits) / _this._number1$_canonicalMultiplier$1(_this.denominatorUnits) * $.$get$_inverseEpsilon0()));
  78427. },
  78428. _number1$_canonicalMultiplier$1: function(units) {
  78429. return C.JSArray_methods.fold$2(units, 1, new T.SassNumber__canonicalMultiplier_closure0());
  78430. },
  78431. _number1$_exception$2: function(message, $name) {
  78432. return new E.SassScriptException0($name == null ? message : "$" + $name + ": " + message);
  78433. }
  78434. };
  78435. T.SassNumber_valueInUnits_closure3.prototype = {
  78436. call$1: function(oldNumerator) {
  78437. var t1,
  78438. factor = this.$this._number1$_conversionFactor$2(this.newNumerator, oldNumerator);
  78439. if (factor == null)
  78440. return false;
  78441. t1 = this._box_0;
  78442. t1.value = t1.value * factor;
  78443. return true;
  78444. }
  78445. };
  78446. T.SassNumber_valueInUnits_closure4.prototype = {
  78447. call$0: function() {
  78448. var t1 = this.$this;
  78449. throw H.wrapException(E.SassScriptException$0("Incompatible units " + t1._number1$_unitString$2(t1.numeratorUnits, t1.denominatorUnits) + " and " + t1._number1$_unitString$2(this.newNumerators, this.newDenominators) + "."));
  78450. },
  78451. $signature: 0
  78452. };
  78453. T.SassNumber_valueInUnits_closure5.prototype = {
  78454. call$1: function(oldDenominator) {
  78455. var t1,
  78456. factor = this.$this._number1$_conversionFactor$2(this.newDenominator, oldDenominator);
  78457. if (factor == null)
  78458. return false;
  78459. t1 = this._box_0;
  78460. t1.value = t1.value / factor;
  78461. return true;
  78462. }
  78463. };
  78464. T.SassNumber_valueInUnits_closure6.prototype = {
  78465. call$0: function() {
  78466. var t1 = this.$this;
  78467. throw H.wrapException(E.SassScriptException$0("Incompatible units " + t1._number1$_unitString$2(t1.numeratorUnits, t1.denominatorUnits) + " and " + t1._number1$_unitString$2(this.newNumerators, this.newDenominators) + "."));
  78468. },
  78469. $signature: 0
  78470. };
  78471. T.SassNumber_modulo_closure0.prototype = {
  78472. call$2: function(num1, num2) {
  78473. var t1;
  78474. if (num2 > 0)
  78475. return C.JSNumber_methods.$mod(num1, num2);
  78476. if (num2 === 0)
  78477. return 0 / 0;
  78478. t1 = C.JSNumber_methods.$mod(num1, num2);
  78479. return t1 === 0 ? 0 : t1 + num2;
  78480. }
  78481. };
  78482. T.SassNumber_plus_closure0.prototype = {
  78483. call$2: function(num1, num2) {
  78484. return num1 + num2;
  78485. }
  78486. };
  78487. T.SassNumber_minus_closure0.prototype = {
  78488. call$2: function(num1, num2) {
  78489. return num1 - num2;
  78490. }
  78491. };
  78492. T.SassNumber__multiplyUnits_closure3.prototype = {
  78493. call$1: function(denominator) {
  78494. var factor = this.$this._number1$_conversionFactor$2(this.numerator, denominator);
  78495. if (factor == null)
  78496. return false;
  78497. this._box_0.value /= factor;
  78498. return true;
  78499. }
  78500. };
  78501. T.SassNumber__multiplyUnits_closure4.prototype = {
  78502. call$0: function() {
  78503. this.newNumerators.push(this.numerator);
  78504. return null;
  78505. },
  78506. $signature: 0
  78507. };
  78508. T.SassNumber__multiplyUnits_closure5.prototype = {
  78509. call$1: function(denominator) {
  78510. var factor = this.$this._number1$_conversionFactor$2(this.numerator, denominator);
  78511. if (factor == null)
  78512. return false;
  78513. this._box_0.value /= factor;
  78514. return true;
  78515. }
  78516. };
  78517. T.SassNumber__multiplyUnits_closure6.prototype = {
  78518. call$0: function() {
  78519. this.newNumerators.push(this.numerator);
  78520. return null;
  78521. },
  78522. $signature: 0
  78523. };
  78524. T.SassNumber__areAnyConvertible_closure0.prototype = {
  78525. call$1: function(unit1) {
  78526. var t1 = $.$get$_conversions0();
  78527. if (!t1.containsKey$1(unit1))
  78528. return C.JSArray_methods.contains$1(this.units2, unit1);
  78529. return C.JSArray_methods.any$1(this.units2, t1.$index(0, unit1).get$containsKey());
  78530. }
  78531. };
  78532. T.SassNumber__canonicalMultiplier_closure0.prototype = {
  78533. call$2: function(multiplier, unit) {
  78534. var t1,
  78535. innerMap = $.$get$_conversions0().$index(0, unit);
  78536. if (innerMap == null)
  78537. t1 = multiplier;
  78538. else {
  78539. t1 = innerMap.get$values();
  78540. t1 = multiplier / t1.get$first(t1);
  78541. }
  78542. return t1;
  78543. }
  78544. };
  78545. U.SupportsOperation0.prototype = {
  78546. toString$0: function(_) {
  78547. var _this = this;
  78548. return _this._operation0$_parenthesize$1(_this.left) + " " + _this.operator + " " + _this._operation0$_parenthesize$1(_this.right);
  78549. },
  78550. _operation0$_parenthesize$1: function(condition) {
  78551. var t1;
  78552. if (!(condition instanceof M.SupportsNegation0))
  78553. t1 = condition instanceof U.SupportsOperation0 && condition.operator === this.operator;
  78554. else
  78555. t1 = true;
  78556. return t1 ? "(" + condition.toString$0(0) + ")" : condition.toString$0(0);
  78557. },
  78558. $isAstNode0: 1,
  78559. get$span: function() {
  78560. return this.span;
  78561. }
  78562. };
  78563. M.ParentSelector0.prototype = {
  78564. accept$1$1: function(visitor) {
  78565. var t2,
  78566. t1 = visitor._buffer;
  78567. t1.writeCharCode$1(38);
  78568. t2 = this.suffix;
  78569. if (t2 != null)
  78570. t1.write$1(0, t2);
  78571. return null;
  78572. },
  78573. accept$1: function(visitor) {
  78574. return this.accept$1$1(visitor, type$.dynamic);
  78575. },
  78576. unify$1: function(compound) {
  78577. return H.throwExpression(P.UnsupportedError$("& doesn't support unification."));
  78578. }
  78579. };
  78580. M.ParentStatement0.prototype = {$isAstNode0: 1, $isStatement0: 1};
  78581. M.ParentStatement_closure0.prototype = {
  78582. call$1: function(child) {
  78583. var t1;
  78584. if (!(child instanceof Z.VariableDeclaration0))
  78585. if (!(child instanceof M.FunctionRule0))
  78586. if (!(child instanceof T.MixinRule0))
  78587. t1 = child instanceof B.ImportRule0 && C.JSArray_methods.any$1(child.imports, new M.ParentStatement__closure0());
  78588. else
  78589. t1 = true;
  78590. else
  78591. t1 = true;
  78592. else
  78593. t1 = true;
  78594. return t1;
  78595. }
  78596. };
  78597. M.ParentStatement__closure0.prototype = {
  78598. call$1: function($import) {
  78599. return $import instanceof B.DynamicImport0;
  78600. }
  78601. };
  78602. T.ParenthesizedExpression0.prototype = {
  78603. accept$1$1: function(visitor) {
  78604. return visitor.visitParenthesizedExpression$1(this);
  78605. },
  78606. accept$1: function(visitor) {
  78607. return this.accept$1$1(visitor, type$.dynamic);
  78608. },
  78609. toString$0: function(_) {
  78610. return J.toString$0$(this.expression);
  78611. },
  78612. $isExpression0: 1,
  78613. $isAstNode0: 1,
  78614. get$span: function() {
  78615. return this.span;
  78616. }
  78617. };
  78618. G.Parser1.prototype = {
  78619. _parser$_parseIdentifier$0: function() {
  78620. return this.wrapSpanFormatException$1(new G.Parser__parseIdentifier_closure0(this));
  78621. },
  78622. whitespace$0: function() {
  78623. do
  78624. this.whitespaceWithoutComments$0();
  78625. while (this.scanComment$0());
  78626. },
  78627. whitespaceWithoutComments$0: function() {
  78628. var t3,
  78629. t1 = this.scanner,
  78630. t2 = t1.string.length;
  78631. while (true) {
  78632. if (t1._string_scanner$_position !== t2) {
  78633. t3 = t1.peekChar$0();
  78634. t3 = t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12;
  78635. } else
  78636. t3 = false;
  78637. if (!t3)
  78638. break;
  78639. t1.readChar$0();
  78640. }
  78641. },
  78642. spaces$0: function() {
  78643. var t3,
  78644. t1 = this.scanner,
  78645. t2 = t1.string.length;
  78646. while (true) {
  78647. if (t1._string_scanner$_position !== t2) {
  78648. t3 = t1.peekChar$0();
  78649. t3 = t3 === 32 || t3 === 9;
  78650. } else
  78651. t3 = false;
  78652. if (!t3)
  78653. break;
  78654. t1.readChar$0();
  78655. }
  78656. },
  78657. scanComment$0: function() {
  78658. var next,
  78659. t1 = this.scanner;
  78660. if (t1.peekChar$0() !== 47)
  78661. return false;
  78662. next = t1.peekChar$1(1);
  78663. if (next === 47) {
  78664. this.silentComment$0();
  78665. return true;
  78666. } else if (next === 42) {
  78667. this.loudComment$0();
  78668. return true;
  78669. } else
  78670. return false;
  78671. },
  78672. silentComment$0: function() {
  78673. var t2, t3,
  78674. t1 = this.scanner;
  78675. t1.expect$1("//");
  78676. t2 = t1.string.length;
  78677. while (true) {
  78678. if (t1._string_scanner$_position !== t2) {
  78679. t3 = t1.peekChar$0();
  78680. t3 = !(t3 === 10 || t3 === 13 || t3 === 12);
  78681. } else
  78682. t3 = false;
  78683. if (!t3)
  78684. break;
  78685. t1.readChar$0();
  78686. }
  78687. },
  78688. loudComment$0: function() {
  78689. var next,
  78690. t1 = this.scanner;
  78691. t1.expect$1("/*");
  78692. for (; true;) {
  78693. if (t1.readChar$0() !== 42)
  78694. continue;
  78695. do
  78696. next = t1.readChar$0();
  78697. while (next === 42);
  78698. if (next === 47)
  78699. break;
  78700. }
  78701. },
  78702. identifier$2$normalize$unit: function(normalize, unit) {
  78703. var t2, first, _this = this,
  78704. _s20_ = "Expected identifier.",
  78705. text = new P.StringBuffer(""),
  78706. t1 = _this.scanner;
  78707. if (t1.scanChar$1(45)) {
  78708. t2 = text._contents = H.Primitives_stringFromCharCode(45);
  78709. if (t1.scanChar$1(45)) {
  78710. text._contents = t2 + H.Primitives_stringFromCharCode(45);
  78711. _this._parser$_identifierBody$3$normalize$unit(text, normalize, unit);
  78712. t1 = text._contents;
  78713. return t1.charCodeAt(0) == 0 ? t1 : t1;
  78714. }
  78715. } else
  78716. t2 = "";
  78717. first = t1.peekChar$0();
  78718. if (first == null)
  78719. t1.error$1(_s20_);
  78720. else if (normalize && first === 95) {
  78721. t1.readChar$0();
  78722. text._contents = t2 + H.Primitives_stringFromCharCode(45);
  78723. } else if (first === 95 || T.isAlphabetic1(first) || first >= 128)
  78724. text._contents = t2 + H.Primitives_stringFromCharCode(t1.readChar$0());
  78725. else if (first === 92)
  78726. text._contents = t2 + H.S(_this.escape$1$identifierStart(true));
  78727. else
  78728. t1.error$1(_s20_);
  78729. _this._parser$_identifierBody$3$normalize$unit(text, normalize, unit);
  78730. t1 = text._contents;
  78731. return t1.charCodeAt(0) == 0 ? t1 : t1;
  78732. },
  78733. identifier$0: function() {
  78734. return this.identifier$2$normalize$unit(false, false);
  78735. },
  78736. identifier$1$normalize: function(normalize) {
  78737. return this.identifier$2$normalize$unit(normalize, false);
  78738. },
  78739. identifier$1$unit: function(unit) {
  78740. return this.identifier$2$normalize$unit(false, unit);
  78741. },
  78742. _parser$_identifierBody$3$normalize$unit: function(text, normalize, unit) {
  78743. var t1, next, second, t2;
  78744. for (t1 = this.scanner; true;) {
  78745. next = t1.peekChar$0();
  78746. if (next == null)
  78747. break;
  78748. else if (unit && next === 45) {
  78749. second = t1.peekChar$1(1);
  78750. if (second != null)
  78751. if (second !== 46)
  78752. t2 = second >= 48 && second <= 57;
  78753. else
  78754. t2 = true;
  78755. else
  78756. t2 = false;
  78757. if (t2)
  78758. break;
  78759. text._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  78760. } else if (normalize && next === 95) {
  78761. t1.readChar$0();
  78762. text._contents += H.Primitives_stringFromCharCode(45);
  78763. } else {
  78764. if (next !== 95) {
  78765. if (!(next >= 97 && next <= 122))
  78766. t2 = next >= 65 && next <= 90;
  78767. else
  78768. t2 = true;
  78769. t2 = t2 || next >= 128;
  78770. } else
  78771. t2 = true;
  78772. if (!t2) {
  78773. t2 = next >= 48 && next <= 57;
  78774. t2 = t2 || next === 45;
  78775. } else
  78776. t2 = true;
  78777. if (t2)
  78778. text._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  78779. else if (next === 92)
  78780. text._contents += H.S(this.escape$0());
  78781. else
  78782. break;
  78783. }
  78784. }
  78785. },
  78786. _parser$_identifierBody$1: function(text) {
  78787. return this._parser$_identifierBody$3$normalize$unit(text, false, false);
  78788. },
  78789. string$0: function() {
  78790. var t2, buffer, next,
  78791. t1 = this.scanner,
  78792. quote = t1.readChar$0();
  78793. if (quote !== 39 && quote !== 34) {
  78794. t2 = t1._string_scanner$_position;
  78795. t1.error$2$position("Expected string.", t2 - 1);
  78796. }
  78797. buffer = new P.StringBuffer("");
  78798. for (; true;) {
  78799. next = t1.peekChar$0();
  78800. if (next === quote) {
  78801. t1.readChar$0();
  78802. break;
  78803. } else if (next == null || next === 10 || next === 13 || next === 12)
  78804. t1.error$1("Expected " + H.Primitives_stringFromCharCode(quote) + ".");
  78805. else if (next === 92) {
  78806. t2 = t1.peekChar$1(1);
  78807. if (t2 === 10 || t2 === 13 || t2 === 12) {
  78808. t1.readChar$0();
  78809. t1.readChar$0();
  78810. } else
  78811. buffer._contents += H.Primitives_stringFromCharCode(this.escapeCharacter$0());
  78812. } else
  78813. buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  78814. }
  78815. t1 = buffer._contents;
  78816. return t1.charCodeAt(0) == 0 ? t1 : t1;
  78817. },
  78818. naturalNumber$0: function() {
  78819. var number, t2,
  78820. t1 = this.scanner,
  78821. first = t1.readChar$0();
  78822. if (!T.isDigit0(first))
  78823. t1.error$2$position("Expected digit.", t1._string_scanner$_position - 1);
  78824. number = first - 48;
  78825. while (true) {
  78826. t2 = t1.peekChar$0();
  78827. if (!(t2 != null && t2 >= 48 && t2 <= 57))
  78828. break;
  78829. number = number * 10 + (t1.readChar$0() - 48);
  78830. }
  78831. return number;
  78832. },
  78833. declarationValue$1$allowEmpty: function(allowEmpty) {
  78834. var t1, t2, wroteNewline, next, start, end, t3, url, _this = this,
  78835. buffer = new P.StringBuffer(""),
  78836. brackets = H.setRuntimeTypeInfo([], type$.JSArray_int);
  78837. $label0$1:
  78838. for (t1 = _this.scanner, t2 = _this.get$string(), wroteNewline = false; true;) {
  78839. next = t1.peekChar$0();
  78840. switch (next) {
  78841. case 92:
  78842. buffer._contents += H.S(_this.escape$1$identifierStart(true));
  78843. wroteNewline = false;
  78844. break;
  78845. case 34:
  78846. case 39:
  78847. start = t1._string_scanner$_position;
  78848. t2.call$0();
  78849. end = t1._string_scanner$_position;
  78850. buffer._contents += J.substring$2$s(t1.string, start, end);
  78851. wroteNewline = false;
  78852. break;
  78853. case 47:
  78854. if (t1.peekChar$1(1) === 42) {
  78855. t3 = _this.get$loudComment();
  78856. start = t1._string_scanner$_position;
  78857. t3.call$0();
  78858. end = t1._string_scanner$_position;
  78859. buffer._contents += J.substring$2$s(t1.string, start, end);
  78860. } else
  78861. buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  78862. wroteNewline = false;
  78863. break;
  78864. case 32:
  78865. case 9:
  78866. if (!wroteNewline) {
  78867. t3 = t1.peekChar$1(1);
  78868. t3 = !(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12);
  78869. } else
  78870. t3 = true;
  78871. if (t3)
  78872. buffer._contents += H.Primitives_stringFromCharCode(32);
  78873. t1.readChar$0();
  78874. break;
  78875. case 10:
  78876. case 13:
  78877. case 12:
  78878. t3 = t1.peekChar$1(-1);
  78879. if (!(t3 === 10 || t3 === 13 || t3 === 12))
  78880. buffer._contents += "\n";
  78881. t1.readChar$0();
  78882. wroteNewline = true;
  78883. break;
  78884. case 40:
  78885. case 123:
  78886. case 91:
  78887. buffer._contents += H.Primitives_stringFromCharCode(next);
  78888. brackets.push(T.opposite0(t1.readChar$0()));
  78889. wroteNewline = false;
  78890. break;
  78891. case 41:
  78892. case 125:
  78893. case 93:
  78894. if (brackets.length === 0)
  78895. break $label0$1;
  78896. buffer._contents += H.Primitives_stringFromCharCode(next);
  78897. t1.expectChar$1(brackets.pop());
  78898. wroteNewline = false;
  78899. break;
  78900. case 59:
  78901. if (brackets.length === 0)
  78902. break $label0$1;
  78903. buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  78904. break;
  78905. case 117:
  78906. case 85:
  78907. url = _this.tryUrl$0();
  78908. if (url != null)
  78909. buffer._contents += url;
  78910. else
  78911. buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  78912. wroteNewline = false;
  78913. break;
  78914. default:
  78915. if (next == null)
  78916. break $label0$1;
  78917. if (_this.lookingAtIdentifier$0())
  78918. buffer._contents += _this.identifier$0();
  78919. else
  78920. buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  78921. wroteNewline = false;
  78922. break;
  78923. }
  78924. }
  78925. if (brackets.length !== 0)
  78926. t1.expectChar$1(C.JSArray_methods.get$last(brackets));
  78927. if (!allowEmpty && buffer._contents.length === 0)
  78928. t1.error$1("Expected token.");
  78929. t1 = buffer._contents;
  78930. return t1.charCodeAt(0) == 0 ? t1 : t1;
  78931. },
  78932. declarationValue$0: function() {
  78933. return this.declarationValue$1$allowEmpty(false);
  78934. },
  78935. tryUrl$0: function() {
  78936. var buffer, next, t2, _this = this,
  78937. t1 = _this.scanner,
  78938. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  78939. if (!_this.scanIdentifier$1("url"))
  78940. return null;
  78941. if (!t1.scanChar$1(40)) {
  78942. t1.set$state(start);
  78943. return null;
  78944. }
  78945. _this.whitespace$0();
  78946. buffer = new P.StringBuffer("");
  78947. buffer._contents = "url(";
  78948. for (; true;) {
  78949. next = t1.peekChar$0();
  78950. if (next == null)
  78951. break;
  78952. else {
  78953. if (next !== 37)
  78954. if (next !== 38)
  78955. if (next !== 35)
  78956. t2 = next >= 42 && next <= 126 || next >= 128;
  78957. else
  78958. t2 = true;
  78959. else
  78960. t2 = true;
  78961. else
  78962. t2 = true;
  78963. if (t2)
  78964. buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  78965. else if (next === 92)
  78966. buffer._contents += H.S(_this.escape$0());
  78967. else if (next === 32 || next === 9 || next === 10 || next === 13 || next === 12) {
  78968. _this.whitespace$0();
  78969. if (t1.peekChar$0() !== 41)
  78970. break;
  78971. } else if (next === 41) {
  78972. t2 = buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  78973. return t2.charCodeAt(0) == 0 ? t2 : t2;
  78974. } else
  78975. break;
  78976. }
  78977. }
  78978. t1.set$state(start);
  78979. return null;
  78980. },
  78981. variableName$0: function() {
  78982. this.scanner.expectChar$1(36);
  78983. return this.identifier$1$normalize(true);
  78984. },
  78985. escape$1$identifierStart: function(identifierStart) {
  78986. var first, value, i, next,
  78987. t1 = this.scanner;
  78988. t1.expectChar$1(92);
  78989. first = t1.peekChar$0();
  78990. if (first == null)
  78991. return "";
  78992. else if (T.isNewline0(first)) {
  78993. t1.error$1("Expected escape sequence.");
  78994. value = 0;
  78995. } else if (T.isHex0(first)) {
  78996. for (value = 0, i = 0; i < 6; ++i) {
  78997. next = t1.peekChar$0();
  78998. if (next == null || !T.isHex0(next))
  78999. break;
  79000. value = value * 16 + T.asHex0(t1.readChar$0());
  79001. }
  79002. this.scanCharIf$1(T.character0__isWhitespace$closure());
  79003. } else
  79004. value = t1.readChar$0();
  79005. if (identifierStart)
  79006. t1 = value === 95 || T.isAlphabetic1(value) || value >= 128;
  79007. else
  79008. t1 = value === 95 || T.isAlphabetic1(value) || value >= 128 || T.isDigit0(value) || value === 45;
  79009. if (t1)
  79010. return H.Primitives_stringFromCharCode(value);
  79011. else {
  79012. if (value > 31)
  79013. if (value !== 127)
  79014. t1 = identifierStart && T.isDigit0(value);
  79015. else
  79016. t1 = true;
  79017. else
  79018. t1 = true;
  79019. if (t1) {
  79020. t1 = H.Primitives_stringFromCharCode(92);
  79021. if (value > 15)
  79022. t1 += H.Primitives_stringFromCharCode(T.hexCharFor0(C.JSInt_methods._shrOtherPositive$1(value, 4)));
  79023. t1 = t1 + H.Primitives_stringFromCharCode(T.hexCharFor0(value & 15)) + H.Primitives_stringFromCharCode(32);
  79024. return t1.charCodeAt(0) == 0 ? t1 : t1;
  79025. } else
  79026. return P.String_String$fromCharCodes(H.setRuntimeTypeInfo([92, value], type$.JSArray_int), 0, null);
  79027. }
  79028. },
  79029. escape$0: function() {
  79030. return this.escape$1$identifierStart(false);
  79031. },
  79032. escapeCharacter$0: function() {
  79033. var first, value, i, next, t2,
  79034. t1 = this.scanner;
  79035. t1.expectChar$1(92);
  79036. first = t1.peekChar$0();
  79037. if (first == null)
  79038. return 65533;
  79039. else if (T.isNewline0(first))
  79040. t1.error$1("Expected escape sequence.");
  79041. else if (T.isHex0(first)) {
  79042. for (value = 0, i = 0; i < 6; ++i) {
  79043. next = t1.peekChar$0();
  79044. if (next == null || !T.isHex0(next))
  79045. break;
  79046. value = (value << 4 >>> 0) + T.asHex0(t1.readChar$0());
  79047. }
  79048. t2 = t1.peekChar$0();
  79049. if (t2 === 32 || t2 === 9 || T.isNewline0(t2))
  79050. t1.readChar$0();
  79051. if (value !== 0)
  79052. t1 = value >= 55296 && value <= 57343 || value >= 1114111;
  79053. else
  79054. t1 = true;
  79055. if (t1)
  79056. return 65533;
  79057. else
  79058. return value;
  79059. } else
  79060. return t1.readChar$0();
  79061. },
  79062. scanCharIf$1: function(condition) {
  79063. var t1 = this.scanner;
  79064. if (!condition.call$1(t1.peekChar$0()))
  79065. return false;
  79066. t1.readChar$0();
  79067. return true;
  79068. },
  79069. scanIdentChar$2$caseSensitive: function(char, caseSensitive) {
  79070. var t3,
  79071. t1 = new G.Parser_scanIdentChar_matches0(caseSensitive, char),
  79072. t2 = this.scanner,
  79073. next = t2.peekChar$0();
  79074. if (t1.call$1(next)) {
  79075. t2.readChar$0();
  79076. return true;
  79077. } else if (next === 92) {
  79078. t3 = t2._string_scanner$_position;
  79079. if (t1.call$1(this.escapeCharacter$0()))
  79080. return true;
  79081. t2.set$state(new S._SpanScannerState(t2, t3));
  79082. }
  79083. return false;
  79084. },
  79085. scanIdentChar$1: function(char) {
  79086. return this.scanIdentChar$2$caseSensitive(char, false);
  79087. },
  79088. expectIdentChar$1: function(letter) {
  79089. var t1;
  79090. if (this.scanIdentChar$2$caseSensitive(letter, false))
  79091. return;
  79092. t1 = this.scanner;
  79093. t1.error$2$position('Expected "' + H.Primitives_stringFromCharCode(letter) + '".', t1._string_scanner$_position);
  79094. },
  79095. lookingAtNumber$0: function() {
  79096. var second, third,
  79097. t1 = this.scanner,
  79098. first = t1.peekChar$0();
  79099. if (first == null)
  79100. return false;
  79101. if (T.isDigit0(first))
  79102. return true;
  79103. if (first === 46) {
  79104. second = t1.peekChar$1(1);
  79105. return second != null && T.isDigit0(second);
  79106. } else if (first === 43 || first === 45) {
  79107. second = t1.peekChar$1(1);
  79108. if (second == null)
  79109. return false;
  79110. if (T.isDigit0(second))
  79111. return true;
  79112. if (second !== 46)
  79113. return false;
  79114. third = t1.peekChar$1(2);
  79115. return third != null && T.isDigit0(third);
  79116. } else
  79117. return false;
  79118. },
  79119. lookingAtIdentifier$1: function($forward) {
  79120. var t1, first, second;
  79121. if ($forward == null)
  79122. $forward = 0;
  79123. t1 = this.scanner;
  79124. first = t1.peekChar$1($forward);
  79125. if (first == null)
  79126. return false;
  79127. if (first === 95 || T.isAlphabetic1(first) || first >= 128 || first === 92)
  79128. return true;
  79129. if (first !== 45)
  79130. return false;
  79131. second = t1.peekChar$1($forward + 1);
  79132. if (second == null)
  79133. return false;
  79134. return second === 95 || T.isAlphabetic1(second) || second >= 128 || second === 92 || second === 45;
  79135. },
  79136. lookingAtIdentifier$0: function() {
  79137. return this.lookingAtIdentifier$1(null);
  79138. },
  79139. lookingAtIdentifierBody$0: function() {
  79140. var t1,
  79141. next = this.scanner.peekChar$0();
  79142. if (next != null)
  79143. t1 = next === 95 || T.isAlphabetic1(next) || next >= 128 || T.isDigit0(next) || next === 45 || next === 92;
  79144. else
  79145. t1 = false;
  79146. return t1;
  79147. },
  79148. scanIdentifier$2$caseSensitive: function(text, caseSensitive) {
  79149. var t1, start, t2, _this = this;
  79150. if (!_this.lookingAtIdentifier$0())
  79151. return false;
  79152. t1 = _this.scanner;
  79153. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  79154. for (t2 = new H.CodeUnits(text), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  79155. if (_this.scanIdentChar$2$caseSensitive(t2.__internal$_current, caseSensitive))
  79156. continue;
  79157. if (start._scanner !== t1)
  79158. H.throwExpression(P.ArgumentError$("The given LineScannerState was not returned by this LineScanner."));
  79159. t2 = start.position;
  79160. if (t2 < 0 || t2 > t1.string.length)
  79161. H.throwExpression(P.ArgumentError$("Invalid position " + t2));
  79162. t1._string_scanner$_position = t2;
  79163. t1._lastMatch = null;
  79164. return false;
  79165. }
  79166. if (!_this.lookingAtIdentifierBody$0())
  79167. return true;
  79168. t1.set$state(start);
  79169. return false;
  79170. },
  79171. scanIdentifier$1: function(text) {
  79172. return this.scanIdentifier$2$caseSensitive(text, false);
  79173. },
  79174. expectIdentifier$2$name: function(text, $name) {
  79175. var t1, start, t2;
  79176. if ($name == null)
  79177. $name = '"' + text + '"';
  79178. t1 = this.scanner;
  79179. start = t1._string_scanner$_position;
  79180. for (t2 = new H.CodeUnits(text), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  79181. if (this.scanIdentChar$2$caseSensitive(t2.__internal$_current, false))
  79182. continue;
  79183. t1.error$2$position("Expected " + $name + ".", start);
  79184. }
  79185. if (!this.lookingAtIdentifierBody$0())
  79186. return;
  79187. t1.error$2$position("Expected " + $name, start);
  79188. },
  79189. expectIdentifier$1: function(text) {
  79190. return this.expectIdentifier$2$name(text, null);
  79191. },
  79192. rawText$1: function(consumer) {
  79193. var t1 = this.scanner,
  79194. start = t1._string_scanner$_position;
  79195. consumer.call$0();
  79196. return t1.substring$1(0, start);
  79197. },
  79198. error$2: function(message, span) {
  79199. return H.throwExpression(E.StringScannerException$(message, span, this.scanner.string));
  79200. },
  79201. withErrorMessage$1$2: function(message, callback) {
  79202. var error, t1, exception;
  79203. try {
  79204. t1 = callback.call$0();
  79205. return t1;
  79206. } catch (exception) {
  79207. t1 = H.unwrapException(exception);
  79208. if (type$.SourceSpanFormatException._is(t1)) {
  79209. error = t1;
  79210. throw H.wrapException(G.SourceSpanFormatException$(message, error.get$span(), error.get$source()));
  79211. } else
  79212. throw exception;
  79213. }
  79214. },
  79215. withErrorMessage$2: function(message, callback) {
  79216. return this.withErrorMessage$1$2(message, callback, type$.dynamic);
  79217. },
  79218. wrapSpanFormatException$1$1: function(callback) {
  79219. var error, span, startPosition, t1, exception;
  79220. try {
  79221. t1 = callback.call$0();
  79222. return t1;
  79223. } catch (exception) {
  79224. t1 = H.unwrapException(exception);
  79225. if (type$.SourceSpanFormatException._is(t1)) {
  79226. error = t1;
  79227. span = error.get$span();
  79228. if (B.startsWithIgnoreCase0(error._span_exception$_message, "expected")) {
  79229. t1 = span;
  79230. t1 = t1._end - t1._file$_start === 0;
  79231. } else
  79232. t1 = false;
  79233. if (t1) {
  79234. t1 = span;
  79235. startPosition = this._parser$_firstNewlineBefore$1(Y.FileLocation$_(t1.file, t1._file$_start).offset);
  79236. t1 = span;
  79237. if (!J.$eq$(startPosition, Y.FileLocation$_(t1.file, t1._file$_start).offset))
  79238. span = span.file.span$2(startPosition, startPosition);
  79239. }
  79240. throw H.wrapException(E.SassFormatException$0(error._span_exception$_message, span));
  79241. } else
  79242. throw exception;
  79243. }
  79244. },
  79245. wrapSpanFormatException$1: function(callback) {
  79246. return this.wrapSpanFormatException$1$1(callback, type$.dynamic);
  79247. },
  79248. _parser$_firstNewlineBefore$1: function(position) {
  79249. var t1, t2, lastNewline, codeUnit,
  79250. index = position - 1;
  79251. for (t1 = this.scanner.string, t2 = J.getInterceptor$s(t1), lastNewline = null; index >= 0;) {
  79252. codeUnit = t2.codeUnitAt$1(t1, index);
  79253. if (!(codeUnit === 32 || codeUnit === 9 || codeUnit === 10 || codeUnit === 13 || codeUnit === 12))
  79254. return lastNewline == null ? position : lastNewline;
  79255. if (codeUnit === 10 || codeUnit === 13 || codeUnit === 12)
  79256. lastNewline = index;
  79257. --index;
  79258. }
  79259. return position;
  79260. }
  79261. };
  79262. G.Parser__parseIdentifier_closure0.prototype = {
  79263. call$0: function() {
  79264. var t1 = this.$this,
  79265. result = t1.identifier$0();
  79266. t1.scanner.expectDone$0();
  79267. return result;
  79268. },
  79269. $signature: 10
  79270. };
  79271. G.Parser_scanIdentChar_matches0.prototype = {
  79272. call$1: function(actual) {
  79273. var t1 = this.char;
  79274. return this.caseSensitive ? actual == t1 : T.characterEqualsIgnoreCase0(t1, actual);
  79275. },
  79276. $signature: 16
  79277. };
  79278. N.PlaceholderSelector0.prototype = {
  79279. get$isInvisible: function() {
  79280. return true;
  79281. },
  79282. accept$1$1: function(visitor) {
  79283. var t1 = visitor._buffer;
  79284. t1.writeCharCode$1(37);
  79285. t1.write$1(0, this.name);
  79286. return null;
  79287. },
  79288. accept$1: function(visitor) {
  79289. return this.accept$1$1(visitor, type$.dynamic);
  79290. },
  79291. addSuffix$1: function(suffix) {
  79292. return new N.PlaceholderSelector0(this.name + suffix);
  79293. },
  79294. $eq: function(_, other) {
  79295. if (other == null)
  79296. return false;
  79297. return other instanceof N.PlaceholderSelector0 && other.name === this.name;
  79298. },
  79299. get$hashCode: function(_) {
  79300. return C.JSString_methods.get$hashCode(this.name);
  79301. }
  79302. };
  79303. L.PlainCssCallable0.prototype = {
  79304. $eq: function(_, other) {
  79305. if (other == null)
  79306. return false;
  79307. return other instanceof L.PlainCssCallable0 && this.name == other.name;
  79308. },
  79309. get$hashCode: function(_) {
  79310. return J.get$hashCode$(this.name);
  79311. },
  79312. $isAsyncCallable0: 1,
  79313. $isCallable0: 1,
  79314. get$name: function() {
  79315. return this.name;
  79316. }
  79317. };
  79318. F.PrefixedMapView0.prototype = {
  79319. get$keys: function() {
  79320. return new F._PrefixedKeys0(this);
  79321. },
  79322. get$length: function(_) {
  79323. var t1 = this._prefixed_map_view0$_map;
  79324. return t1.get$length(t1);
  79325. },
  79326. get$isEmpty: function(_) {
  79327. var t1 = this._prefixed_map_view0$_map;
  79328. return t1.get$isEmpty(t1);
  79329. },
  79330. get$isNotEmpty: function(_) {
  79331. var t1 = this._prefixed_map_view0$_map;
  79332. return t1.get$isNotEmpty(t1);
  79333. },
  79334. $index: function(_, key) {
  79335. return typeof key == "string" && C.JSString_methods.startsWith$1(key, this._prefixed_map_view0$_prefix) ? this._prefixed_map_view0$_map.$index(0, J.substring$1$s(key, this._prefixed_map_view0$_prefix.length)) : null;
  79336. },
  79337. containsKey$1: function(key) {
  79338. return typeof key == "string" && C.JSString_methods.startsWith$1(key, this._prefixed_map_view0$_prefix) && this._prefixed_map_view0$_map.containsKey$1(J.substring$1$s(key, this._prefixed_map_view0$_prefix.length));
  79339. }
  79340. };
  79341. F._PrefixedKeys0.prototype = {
  79342. get$length: function(_) {
  79343. var t1 = this._prefixed_map_view0$_view._prefixed_map_view0$_map;
  79344. return t1.get$length(t1);
  79345. },
  79346. get$iterator: function(_) {
  79347. var t1 = J.map$1$1$ax(this._prefixed_map_view0$_view._prefixed_map_view0$_map.get$keys(), new F._PrefixedKeys_iterator_closure0(this), type$.String);
  79348. return t1.get$iterator(t1);
  79349. },
  79350. contains$1: function(_, key) {
  79351. return this._prefixed_map_view0$_view.containsKey$1(key);
  79352. }
  79353. };
  79354. F._PrefixedKeys_iterator_closure0.prototype = {
  79355. call$1: function(key) {
  79356. return this.$this._prefixed_map_view0$_view._prefixed_map_view0$_prefix + H.S(key);
  79357. }
  79358. };
  79359. D.PseudoSelector0.prototype = {
  79360. get$minSpecificity: function() {
  79361. if (this._pseudo0$_minSpecificity == null)
  79362. this._pseudo0$_computeSpecificity$0();
  79363. return this._pseudo0$_minSpecificity;
  79364. },
  79365. get$maxSpecificity: function() {
  79366. if (this._pseudo0$_maxSpecificity == null)
  79367. this._pseudo0$_computeSpecificity$0();
  79368. return this._pseudo0$_maxSpecificity;
  79369. },
  79370. get$isInvisible: function() {
  79371. var t1 = this.selector;
  79372. if (t1 == null)
  79373. return false;
  79374. return this.name !== "not" && t1.get$isInvisible();
  79375. },
  79376. addSuffix$1: function(suffix) {
  79377. var _this = this;
  79378. if (_this.argument != null || _this.selector != null)
  79379. _this.super$SimpleSelector$addSuffix0(suffix);
  79380. return D.PseudoSelector$0(_this.name + suffix, null, !_this.isClass, null);
  79381. },
  79382. unify$1: function(compound) {
  79383. var result, t1, t2, addedThis, _i, simple, _this = this;
  79384. if (compound.length === 1 && C.JSArray_methods.get$first(compound) instanceof N.UniversalSelector0)
  79385. return C.JSArray_methods.get$first(compound).unify$1(H.setRuntimeTypeInfo([_this], type$.JSArray_SimpleSelector_2));
  79386. if (C.JSArray_methods.contains$1(compound, _this))
  79387. return compound;
  79388. result = H.setRuntimeTypeInfo([], type$.JSArray_SimpleSelector_2);
  79389. for (t1 = compound.length, t2 = !_this.isClass, addedThis = false, _i = 0; _i < compound.length; compound.length === t1 || (0, H.throwConcurrentModificationError)(compound), ++_i) {
  79390. simple = compound[_i];
  79391. if (simple instanceof D.PseudoSelector0 && !simple.isClass) {
  79392. if (t2)
  79393. return null;
  79394. result.push(_this);
  79395. addedThis = true;
  79396. }
  79397. result.push(simple);
  79398. }
  79399. if (!addedThis)
  79400. result.push(_this);
  79401. return result;
  79402. },
  79403. _pseudo0$_computeSpecificity$0: function() {
  79404. var t1, _i, t2, complex, t3, t4, _this = this;
  79405. if (!_this.isClass) {
  79406. _this._pseudo0$_maxSpecificity = _this._pseudo0$_minSpecificity = 1;
  79407. return;
  79408. }
  79409. t1 = _this.selector;
  79410. if (t1 == null) {
  79411. _this._pseudo0$_minSpecificity = M.SimpleSelector0.prototype.get$minSpecificity.call(_this);
  79412. _this._pseudo0$_maxSpecificity = M.SimpleSelector0.prototype.get$maxSpecificity.call(_this);
  79413. return;
  79414. }
  79415. if (_this.name === "not") {
  79416. _i = _this._pseudo0$_maxSpecificity = _this._pseudo0$_minSpecificity = 0;
  79417. for (t1 = t1.components, t2 = t1.length; _i < t2; ++_i) {
  79418. complex = t1[_i];
  79419. t3 = _this._pseudo0$_minSpecificity;
  79420. if (complex._complex0$_minSpecificity == null)
  79421. complex._complex0$_computeSpecificity$0();
  79422. t4 = complex._complex0$_minSpecificity;
  79423. _this._pseudo0$_minSpecificity = Math.max(H.checkNum(t3), H.checkNum(t4));
  79424. t4 = _this._pseudo0$_maxSpecificity;
  79425. if (complex._complex0$_maxSpecificity == null)
  79426. complex._complex0$_computeSpecificity$0();
  79427. t3 = complex._complex0$_maxSpecificity;
  79428. _this._pseudo0$_maxSpecificity = Math.max(H.checkNum(t4), H.checkNum(t3));
  79429. }
  79430. } else {
  79431. _this._pseudo0$_minSpecificity = H._asIntNullable(Math.pow(M.SimpleSelector0.prototype.get$minSpecificity.call(_this), 3));
  79432. _i = _this._pseudo0$_maxSpecificity = 0;
  79433. for (t1 = t1.components, t2 = t1.length; _i < t2; ++_i) {
  79434. complex = t1[_i];
  79435. t3 = _this._pseudo0$_minSpecificity;
  79436. if (complex._complex0$_minSpecificity == null)
  79437. complex._complex0$_computeSpecificity$0();
  79438. t4 = complex._complex0$_minSpecificity;
  79439. _this._pseudo0$_minSpecificity = Math.min(H.checkNum(t3), H.checkNum(t4));
  79440. t4 = _this._pseudo0$_maxSpecificity;
  79441. if (complex._complex0$_maxSpecificity == null)
  79442. complex._complex0$_computeSpecificity$0();
  79443. t3 = complex._complex0$_maxSpecificity;
  79444. _this._pseudo0$_maxSpecificity = Math.max(H.checkNum(t4), H.checkNum(t3));
  79445. }
  79446. }
  79447. },
  79448. accept$1$1: function(visitor) {
  79449. return visitor.visitPseudoSelector$1(this);
  79450. },
  79451. accept$1: function(visitor) {
  79452. return this.accept$1$1(visitor, type$.dynamic);
  79453. },
  79454. $eq: function(_, other) {
  79455. var _this = this;
  79456. if (other == null)
  79457. return false;
  79458. return other instanceof D.PseudoSelector0 && other.name === _this.name && other.isClass === _this.isClass && other.argument == _this.argument && J.$eq$(other.selector, _this.selector);
  79459. },
  79460. get$hashCode: function(_) {
  79461. var _this = this;
  79462. return (C.JSString_methods.get$hashCode(_this.name) ^ C.JSBool_methods.get$hashCode(!_this.isClass) ^ J.get$hashCode$(_this.argument) ^ J.get$hashCode$(_this.selector)) >>> 0;
  79463. }
  79464. };
  79465. U.PublicMemberMapView0.prototype = {
  79466. get$keys: function() {
  79467. return J.where$1$ax(this._public_member_map_view$_inner.get$keys(), B.utils0__isPublic$closure());
  79468. },
  79469. containsKey$1: function(key) {
  79470. return typeof key == "string" && B.isPublic0(key) && this._public_member_map_view$_inner.containsKey$1(key);
  79471. },
  79472. $index: function(_, key) {
  79473. if (typeof key == "string" && B.isPublic0(key))
  79474. return this._public_member_map_view$_inner.$index(0, key);
  79475. return null;
  79476. }
  79477. };
  79478. D.QualifiedName0.prototype = {
  79479. $eq: function(_, other) {
  79480. if (other == null)
  79481. return false;
  79482. return other instanceof D.QualifiedName0 && other.name === this.name && other.namespace == this.namespace;
  79483. },
  79484. get$hashCode: function(_) {
  79485. return C.JSString_methods.get$hashCode(this.name) ^ J.get$hashCode$(this.namespace);
  79486. },
  79487. toString$0: function(_) {
  79488. var t1 = this.namespace,
  79489. t2 = this.name;
  79490. return t1 == null ? t2 : t1 + "|" + t2;
  79491. }
  79492. };
  79493. Z.RenderContext.prototype = {};
  79494. L.RenderContextOptions.prototype = {};
  79495. R.RenderOptions.prototype = {};
  79496. U.RenderResult.prototype = {};
  79497. U.RenderResultStats.prototype = {};
  79498. E.ImporterResult0.prototype = {
  79499. get$sourceMapUrl: function() {
  79500. var t1 = this._result$_sourceMapUrl;
  79501. return t1 == null ? P.Uri_Uri$dataFromString(this.contents, C.C_Utf8Codec, null) : t1;
  79502. }
  79503. };
  79504. B.ReturnRule0.prototype = {
  79505. accept$1$1: function(visitor) {
  79506. return visitor.visitReturnRule$1(this);
  79507. },
  79508. accept$1: function(visitor) {
  79509. return this.accept$1$1(visitor, type$.dynamic);
  79510. },
  79511. toString$0: function(_) {
  79512. return "@return " + H.S(this.expression) + ";";
  79513. },
  79514. $isAstNode0: 1,
  79515. $isStatement0: 1,
  79516. get$span: function() {
  79517. return this.span;
  79518. }
  79519. };
  79520. U.main_printError.prototype = {
  79521. call$2: function(error, stackTrace) {
  79522. var t1 = this._box_0;
  79523. if (t1.printedError)
  79524. $.$get$stderr().writeln$0();
  79525. t1.printedError = true;
  79526. t1 = $.$get$stderr();
  79527. t1.writeln$1(error);
  79528. if (stackTrace != null) {
  79529. t1.writeln$0();
  79530. t1.writeln$1(C.JSString_methods.trimRight$0(Y.Trace_Trace$from(stackTrace).get$terse().toString$0(0)));
  79531. }
  79532. }
  79533. };
  79534. U.main_closure.prototype = {
  79535. call$0: function() {
  79536. var t1, exception;
  79537. try {
  79538. t1 = this.destination;
  79539. if (t1 != null && !this._box_0.options.get$emitErrorCss())
  79540. B.deleteFile(t1);
  79541. } catch (exception) {
  79542. if (!(H.unwrapException(exception) instanceof B.FileSystemException))
  79543. throw exception;
  79544. }
  79545. },
  79546. $signature: 0
  79547. };
  79548. U.SassParser0.prototype = {
  79549. get$currentIndentation: function() {
  79550. return this._sass0$_currentIndentation;
  79551. },
  79552. get$indented: function() {
  79553. return true;
  79554. },
  79555. styleRuleSelector$0: function() {
  79556. var t4,
  79557. t1 = this.scanner,
  79558. t2 = t1._string_scanner$_position,
  79559. t3 = new P.StringBuffer(""),
  79560. buffer = new Z.InterpolationBuffer0(t3, []);
  79561. do {
  79562. buffer.addInterpolation$1(this.almostAnyValue$0());
  79563. t4 = t3._contents += H.Primitives_stringFromCharCode(10);
  79564. } while (C.JSString_methods.endsWith$1(C.JSString_methods.trimRight$0(t4.charCodeAt(0) == 0 ? t4 : t4), ",") && this.scanCharIf$1(T.character0__isNewline$closure()));
  79565. return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  79566. },
  79567. expectStatementSeparator$1: function($name) {
  79568. var _this = this;
  79569. if (!_this.atEndOfStatement$0())
  79570. _this._sass0$_expectNewline$0();
  79571. if (_this._sass0$_peekIndentation$0() <= _this._sass0$_currentIndentation)
  79572. return;
  79573. _this.scanner.error$2$position("Nothing may be indented " + ($name == null ? "here" : "beneath a " + $name) + ".", _this._sass0$_nextIndentationEnd.position);
  79574. },
  79575. expectStatementSeparator$0: function() {
  79576. return this.expectStatementSeparator$1(null);
  79577. },
  79578. atEndOfStatement$0: function() {
  79579. var next = this.scanner.peekChar$0();
  79580. return next == null || T.isNewline0(next);
  79581. },
  79582. lookingAtChildren$0: function() {
  79583. return this.atEndOfStatement$0() && this._sass0$_peekIndentation$0() > this._sass0$_currentIndentation;
  79584. },
  79585. importArgument$0: function() {
  79586. var url, span, innerError, start, next, t2, exception, _this = this,
  79587. t1 = _this.scanner;
  79588. switch (t1.peekChar$0()) {
  79589. case 117:
  79590. case 85:
  79591. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  79592. if (_this.scanIdentifier$1("url"))
  79593. if (t1.scanChar$1(40)) {
  79594. t1.set$state(start);
  79595. return _this.super$StylesheetParser$importArgument0();
  79596. } else
  79597. t1.set$state(start);
  79598. break;
  79599. case 39:
  79600. case 34:
  79601. return _this.super$StylesheetParser$importArgument0();
  79602. }
  79603. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  79604. next = t1.peekChar$0();
  79605. while (true) {
  79606. if (next != null)
  79607. if (next !== 44)
  79608. if (next !== 59)
  79609. t2 = !(next === 10 || next === 13 || next === 12);
  79610. else
  79611. t2 = false;
  79612. else
  79613. t2 = false;
  79614. else
  79615. t2 = false;
  79616. if (!t2)
  79617. break;
  79618. t1.readChar$0();
  79619. next = t1.peekChar$0();
  79620. }
  79621. url = t1.substring$1(0, start.position);
  79622. span = t1.spanFrom$1(start);
  79623. if (_this.isPlainImportUrl$1(url))
  79624. return new Q.StaticImport0(X.Interpolation$0([N.serializeValue(new D.SassString0(url, true), true, true)], span), null, null, span);
  79625. else
  79626. try {
  79627. t1 = _this.parseImportUrl$1(url);
  79628. return new B.DynamicImport0(t1, span);
  79629. } catch (exception) {
  79630. t1 = H.unwrapException(exception);
  79631. if (type$.FormatException._is(t1)) {
  79632. innerError = t1;
  79633. _this.error$2("Invalid URL: " + H.S(J.get$message$x(innerError)), span);
  79634. } else
  79635. throw exception;
  79636. }
  79637. },
  79638. scanElse$1: function(ifIndentation) {
  79639. var t1, t2, startIndentation, startNextIndentation, startNextIndentationEnd, _this = this;
  79640. if (_this._sass0$_peekIndentation$0() != ifIndentation)
  79641. return false;
  79642. t1 = _this.scanner;
  79643. t2 = t1._string_scanner$_position;
  79644. startIndentation = _this._sass0$_currentIndentation;
  79645. startNextIndentation = _this._sass0$_nextIndentation;
  79646. startNextIndentationEnd = _this._sass0$_nextIndentationEnd;
  79647. _this._sass0$_readIndentation$0();
  79648. if (t1.scanChar$1(64) && _this.scanIdentifier$1("else"))
  79649. return true;
  79650. t1.set$state(new S._SpanScannerState(t1, t2));
  79651. _this._sass0$_currentIndentation = startIndentation;
  79652. _this._sass0$_nextIndentation = startNextIndentation;
  79653. _this._sass0$_nextIndentationEnd = startNextIndentationEnd;
  79654. return false;
  79655. },
  79656. children$1: function(child) {
  79657. var children = H.setRuntimeTypeInfo([], type$.JSArray_Statement_2);
  79658. this._sass0$_whileIndentedLower$1(new U.SassParser_children_closure0(this, children, child));
  79659. return children;
  79660. },
  79661. statements$1: function(statement) {
  79662. var statements, t2, child,
  79663. t1 = this.scanner,
  79664. first = t1.peekChar$0();
  79665. if (first === 9 || first === 32)
  79666. t1.error$3$length$position("Indenting at the beginning of the document is illegal.", t1._string_scanner$_position, 0);
  79667. statements = H.setRuntimeTypeInfo([], type$.JSArray_Statement_2);
  79668. for (t2 = t1.string.length; t1._string_scanner$_position !== t2;) {
  79669. child = this._sass0$_child$1(statement);
  79670. if (child != null)
  79671. statements.push(child);
  79672. this._sass0$_readIndentation$0();
  79673. }
  79674. return statements;
  79675. },
  79676. _sass0$_child$1: function(child) {
  79677. var _this = this,
  79678. t1 = _this.scanner;
  79679. switch (t1.peekChar$0()) {
  79680. case 13:
  79681. case 10:
  79682. case 12:
  79683. return null;
  79684. case 36:
  79685. return _this.variableDeclarationWithoutNamespace$0();
  79686. case 47:
  79687. switch (t1.peekChar$1(1)) {
  79688. case 47:
  79689. return _this._sass0$_silentComment$0();
  79690. case 42:
  79691. return _this._sass0$_loudComment$0();
  79692. default:
  79693. return child.call$0();
  79694. }
  79695. default:
  79696. return child.call$0();
  79697. }
  79698. },
  79699. _sass0$_silentComment$0: function() {
  79700. var buffer, parentIndentation, t3, commentPrefix, i, t4, i0, t5, t6, _this = this,
  79701. t1 = _this.scanner,
  79702. t2 = t1._string_scanner$_position;
  79703. t1.expect$1("//");
  79704. buffer = new P.StringBuffer("");
  79705. parentIndentation = _this._sass0$_currentIndentation;
  79706. t3 = t1.string;
  79707. $label0$0:
  79708. do {
  79709. commentPrefix = t1.scanChar$1(47) ? "///" : "//";
  79710. for (i = commentPrefix.length; true;) {
  79711. t4 = buffer._contents += commentPrefix;
  79712. for (i0 = i; i0 < _this._sass0$_currentIndentation - parentIndentation; ++i0) {
  79713. t4 += H.Primitives_stringFromCharCode(32);
  79714. buffer._contents = t4;
  79715. }
  79716. t5 = t3.length;
  79717. while (true) {
  79718. if (t1._string_scanner$_position !== t5) {
  79719. t6 = t1.peekChar$0();
  79720. t6 = !(t6 === 10 || t6 === 13 || t6 === 12);
  79721. } else
  79722. t6 = false;
  79723. if (!t6)
  79724. break;
  79725. t4 += H.Primitives_stringFromCharCode(t1.readChar$0());
  79726. buffer._contents = t4;
  79727. }
  79728. buffer._contents = t4 + "\n";
  79729. if (_this._sass0$_peekIndentation$0() < parentIndentation)
  79730. break $label0$0;
  79731. if (_this._sass0$_peekIndentation$0() === parentIndentation) {
  79732. if (t1.peekChar$1(1 + parentIndentation) === 47 && t1.peekChar$1(2 + parentIndentation) === 47)
  79733. _this._sass0$_readIndentation$0();
  79734. break;
  79735. }
  79736. _this._sass0$_readIndentation$0();
  79737. }
  79738. } while (t1.scan$1("//"));
  79739. t3 = buffer._contents;
  79740. return _this.lastSilentComment = new B.SilentComment0(t3.charCodeAt(0) == 0 ? t3 : t3, t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  79741. },
  79742. _sass0$_loudComment$0: function() {
  79743. var t3, t4, buffer, parentIndentation, t5, first, beginningOfComment, t6, end, i, t7, _this = this,
  79744. t1 = _this.scanner,
  79745. t2 = t1._string_scanner$_position;
  79746. t1.expect$1("/*");
  79747. t3 = new P.StringBuffer("");
  79748. t4 = [];
  79749. buffer = new Z.InterpolationBuffer0(t3, t4);
  79750. t3._contents = "/*";
  79751. parentIndentation = _this._sass0$_currentIndentation;
  79752. for (t5 = t1.string, first = true; true; first = false) {
  79753. if (first) {
  79754. beginningOfComment = t1._string_scanner$_position;
  79755. _this.spaces$0();
  79756. t6 = t1.peekChar$0();
  79757. if (t6 === 10 || t6 === 13 || t6 === 12) {
  79758. _this._sass0$_readIndentation$0();
  79759. t3._contents += H.Primitives_stringFromCharCode(32);
  79760. } else {
  79761. end = t1._string_scanner$_position;
  79762. t3._contents += J.substring$2$s(t5, beginningOfComment, end);
  79763. }
  79764. } else {
  79765. t6 = t3._contents += "\n";
  79766. t3._contents = t6 + " * ";
  79767. }
  79768. for (i = 3; i < _this._sass0$_currentIndentation - parentIndentation; ++i)
  79769. t3._contents += H.Primitives_stringFromCharCode(32);
  79770. $label0$1:
  79771. for (t6 = t5.length; t1._string_scanner$_position !== t6;)
  79772. switch (t1.peekChar$0()) {
  79773. case 10:
  79774. case 13:
  79775. case 12:
  79776. break $label0$1;
  79777. case 35:
  79778. if (t1.peekChar$1(1) === 123) {
  79779. t7 = _this.singleInterpolation$0();
  79780. buffer._interpolation_buffer0$_flushText$0();
  79781. t4.push(t7);
  79782. } else
  79783. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  79784. break;
  79785. default:
  79786. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  79787. break;
  79788. }
  79789. if (_this._sass0$_peekIndentation$0() <= parentIndentation)
  79790. break;
  79791. for (; _this._sass0$_lookingAtDoubleNewline$0();) {
  79792. _this._sass0$_expectNewline$0();
  79793. t6 = t3._contents += "\n";
  79794. t3._contents = t6 + " *";
  79795. }
  79796. _this._sass0$_readIndentation$0();
  79797. }
  79798. t4 = t3._contents;
  79799. if (!C.JSString_methods.endsWith$1(C.JSString_methods.trimRight$0(t4.charCodeAt(0) == 0 ? t4 : t4), "*/"))
  79800. t3._contents += " */";
  79801. return new L.LoudComment0(buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2))));
  79802. },
  79803. whitespaceWithoutComments$0: function() {
  79804. var t1, t2, next;
  79805. for (t1 = this.scanner, t2 = t1.string.length; t1._string_scanner$_position !== t2;) {
  79806. next = t1.peekChar$0();
  79807. if (next !== 9 && next !== 32)
  79808. break;
  79809. t1.readChar$0();
  79810. }
  79811. },
  79812. loudComment$0: function() {
  79813. var next,
  79814. t1 = this.scanner;
  79815. t1.expect$1("/*");
  79816. for (; true;) {
  79817. next = t1.readChar$0();
  79818. if (next === 10 || next === 13 || next === 12)
  79819. t1.error$1("expected */.");
  79820. if (next !== 42)
  79821. continue;
  79822. do
  79823. next = t1.readChar$0();
  79824. while (next === 42);
  79825. if (next === 47)
  79826. break;
  79827. }
  79828. },
  79829. _sass0$_expectNewline$0: function() {
  79830. var t1 = this.scanner;
  79831. switch (t1.peekChar$0()) {
  79832. case 59:
  79833. t1.error$1("semicolons aren't allowed in the indented syntax.");
  79834. break;
  79835. case 13:
  79836. t1.readChar$0();
  79837. if (t1.peekChar$0() === 10)
  79838. t1.readChar$0();
  79839. return;
  79840. case 10:
  79841. case 12:
  79842. t1.readChar$0();
  79843. return;
  79844. default:
  79845. t1.error$1("expected newline.");
  79846. }
  79847. },
  79848. _sass0$_lookingAtDoubleNewline$0: function() {
  79849. var nextChar,
  79850. t1 = this.scanner;
  79851. switch (t1.peekChar$0()) {
  79852. case 13:
  79853. nextChar = t1.peekChar$1(1);
  79854. if (nextChar === 10)
  79855. return T.isNewline0(t1.peekChar$1(2));
  79856. return nextChar === 13 || nextChar === 12;
  79857. case 10:
  79858. case 12:
  79859. return T.isNewline0(t1.peekChar$1(1));
  79860. default:
  79861. return false;
  79862. }
  79863. },
  79864. _sass0$_whileIndentedLower$1: function(body) {
  79865. var t1, t2, childIndentation, indentation, t3, t4, t5, _this = this,
  79866. parentIndentation = _this._sass0$_currentIndentation;
  79867. for (t1 = _this.scanner, t2 = t1._sourceFile, childIndentation = null; _this._sass0$_peekIndentation$0() > parentIndentation;) {
  79868. indentation = _this._sass0$_readIndentation$0();
  79869. if (childIndentation == null)
  79870. childIndentation = indentation;
  79871. if (childIndentation != indentation) {
  79872. t3 = "Inconsistent indentation, expected " + H.S(childIndentation) + " spaces.";
  79873. t4 = t1._string_scanner$_position;
  79874. t5 = t2.getColumn$1(t4);
  79875. t1.error$3$length$position(t3, t2.getColumn$1(t1._string_scanner$_position), t4 - t5);
  79876. }
  79877. body.call$0();
  79878. }
  79879. },
  79880. _sass0$_readIndentation$0: function() {
  79881. var _this = this;
  79882. if (_this._sass0$_nextIndentation == null)
  79883. _this._sass0$_peekIndentation$0();
  79884. _this._sass0$_currentIndentation = _this._sass0$_nextIndentation;
  79885. _this.scanner.set$state(_this._sass0$_nextIndentationEnd);
  79886. _this._sass0$_nextIndentationEnd = _this._sass0$_nextIndentation = null;
  79887. return _this._sass0$_currentIndentation;
  79888. },
  79889. _sass0$_peekIndentation$0: function() {
  79890. var t2, t3, start, containsTab, containsSpace, next, t4, _this = this,
  79891. t1 = _this._sass0$_nextIndentation;
  79892. if (t1 != null)
  79893. return t1;
  79894. t1 = _this.scanner;
  79895. t2 = t1._string_scanner$_position;
  79896. t3 = t1.string.length;
  79897. if (t2 === t3) {
  79898. _this._sass0$_nextIndentation = 0;
  79899. _this._sass0$_nextIndentationEnd = new S._SpanScannerState(t1, t2);
  79900. return 0;
  79901. }
  79902. start = new S._SpanScannerState(t1, t2);
  79903. if (!_this.scanCharIf$1(T.character0__isNewline$closure()))
  79904. t1.error$2$position("Expected newline.", t1._string_scanner$_position);
  79905. do {
  79906. _this._sass0$_nextIndentation = 0;
  79907. for (containsTab = false, containsSpace = false; true;) {
  79908. next = t1.peekChar$0();
  79909. if (next === 32)
  79910. containsSpace = true;
  79911. else {
  79912. if (next !== 9)
  79913. break;
  79914. containsTab = true;
  79915. }
  79916. _this._sass0$_nextIndentation = _this._sass0$_nextIndentation + 1;
  79917. t1.readChar$0();
  79918. }
  79919. t2 = t1._string_scanner$_position;
  79920. if (t2 === t3) {
  79921. _this._sass0$_nextIndentation = 0;
  79922. _this._sass0$_nextIndentationEnd = new S._SpanScannerState(t1, t2);
  79923. t1.set$state(start);
  79924. return 0;
  79925. }
  79926. } while (_this.scanCharIf$1(T.character0__isNewline$closure()));
  79927. if (containsTab) {
  79928. if (containsSpace) {
  79929. t2 = t1._string_scanner$_position;
  79930. t3 = t1._sourceFile;
  79931. t4 = t3.getColumn$1(t2);
  79932. t1.error$3$length$position("Tabs and spaces may not be mixed.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
  79933. } else if (_this._sass0$_spaces === true) {
  79934. t2 = t1._string_scanner$_position;
  79935. t3 = t1._sourceFile;
  79936. t4 = t3.getColumn$1(t2);
  79937. t1.error$3$length$position("Expected spaces, was tabs.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
  79938. }
  79939. } else if (containsSpace && _this._sass0$_spaces === false) {
  79940. t2 = t1._string_scanner$_position;
  79941. t3 = t1._sourceFile;
  79942. t4 = t3.getColumn$1(t2);
  79943. t1.error$3$length$position("Expected tabs, was spaces.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
  79944. }
  79945. if (_this._sass0$_nextIndentation > 0)
  79946. if (_this._sass0$_spaces == null)
  79947. _this._sass0$_spaces = containsSpace;
  79948. _this._sass0$_nextIndentationEnd = new S._SpanScannerState(t1, t1._string_scanner$_position);
  79949. t1.set$state(start);
  79950. return _this._sass0$_nextIndentation;
  79951. }
  79952. };
  79953. U.SassParser_children_closure0.prototype = {
  79954. call$0: function() {
  79955. this.children.push(this.$this._sass0$_child$1(this.child));
  79956. },
  79957. $signature: 0
  79958. };
  79959. R._Exports.prototype = {};
  79960. R._wrapMain_closure.prototype = {
  79961. call$1: function(_) {
  79962. return this.main.call$0();
  79963. },
  79964. $signature: 139
  79965. };
  79966. R._wrapMain_closure0.prototype = {
  79967. call$1: function(args) {
  79968. return this.main.call$1(P.List_List$from(type$.List_Object._as(args), true, type$.String));
  79969. },
  79970. $signature: 28
  79971. };
  79972. L.ScssParser0.prototype = {
  79973. get$indented: function() {
  79974. return false;
  79975. },
  79976. get$currentIndentation: function() {
  79977. return null;
  79978. },
  79979. styleRuleSelector$0: function() {
  79980. return this.almostAnyValue$0();
  79981. },
  79982. expectStatementSeparator$1: function($name) {
  79983. var t1, next;
  79984. this.whitespaceWithoutComments$0();
  79985. t1 = this.scanner;
  79986. if (t1._string_scanner$_position === t1.string.length)
  79987. return;
  79988. next = t1.peekChar$0();
  79989. if (next === 59 || next === 125)
  79990. return;
  79991. t1.expectChar$1(59);
  79992. },
  79993. expectStatementSeparator$0: function() {
  79994. return this.expectStatementSeparator$1(null);
  79995. },
  79996. atEndOfStatement$0: function() {
  79997. var next = this.scanner.peekChar$0();
  79998. return next == null || next === 59 || next === 125 || next === 123;
  79999. },
  80000. lookingAtChildren$0: function() {
  80001. return this.scanner.peekChar$0() === 123;
  80002. },
  80003. scanElse$1: function(_) {
  80004. var t3, _this = this,
  80005. t1 = _this.scanner,
  80006. t2 = t1._string_scanner$_position;
  80007. _this.whitespace$0();
  80008. t3 = t1._string_scanner$_position;
  80009. if (t1.scanChar$1(64)) {
  80010. if (_this.scanIdentifier$2$caseSensitive("else", true))
  80011. return true;
  80012. if (_this.scanIdentifier$2$caseSensitive("elseif", true)) {
  80013. _this.logger.warn$3$deprecation$span('@elseif is deprecated and will not be supported in future Sass versions.\nUse "@else if" instead.', true, t1.spanFrom$1(new S._SpanScannerState(t1, t3)));
  80014. t1.set$position(t1._string_scanner$_position - 2);
  80015. return true;
  80016. }
  80017. }
  80018. t1.set$state(new S._SpanScannerState(t1, t2));
  80019. return false;
  80020. },
  80021. children$1: function(child) {
  80022. var children, _this = this,
  80023. t1 = _this.scanner;
  80024. t1.expectChar$1(123);
  80025. _this.whitespaceWithoutComments$0();
  80026. children = H.setRuntimeTypeInfo([], type$.JSArray_Statement_2);
  80027. for (; true;)
  80028. switch (t1.peekChar$0()) {
  80029. case 36:
  80030. children.push(_this.variableDeclarationWithoutNamespace$0());
  80031. break;
  80032. case 47:
  80033. switch (t1.peekChar$1(1)) {
  80034. case 47:
  80035. children.push(_this._scss0$_silentComment$0());
  80036. _this.whitespaceWithoutComments$0();
  80037. break;
  80038. case 42:
  80039. children.push(_this._scss0$_loudComment$0());
  80040. _this.whitespaceWithoutComments$0();
  80041. break;
  80042. default:
  80043. children.push(child.call$0());
  80044. break;
  80045. }
  80046. break;
  80047. case 59:
  80048. t1.readChar$0();
  80049. _this.whitespaceWithoutComments$0();
  80050. break;
  80051. case 125:
  80052. t1.expectChar$1(125);
  80053. return children;
  80054. default:
  80055. children.push(child.call$0());
  80056. break;
  80057. }
  80058. },
  80059. statements$1: function(statement) {
  80060. var t1, t2, child, _this = this,
  80061. statements = H.setRuntimeTypeInfo([], type$.JSArray_Statement_2);
  80062. _this.whitespaceWithoutComments$0();
  80063. for (t1 = _this.scanner, t2 = t1.string.length; t1._string_scanner$_position !== t2;)
  80064. switch (t1.peekChar$0()) {
  80065. case 36:
  80066. statements.push(_this.variableDeclarationWithoutNamespace$0());
  80067. break;
  80068. case 47:
  80069. switch (t1.peekChar$1(1)) {
  80070. case 47:
  80071. statements.push(_this._scss0$_silentComment$0());
  80072. _this.whitespaceWithoutComments$0();
  80073. break;
  80074. case 42:
  80075. statements.push(_this._scss0$_loudComment$0());
  80076. _this.whitespaceWithoutComments$0();
  80077. break;
  80078. default:
  80079. child = statement.call$0();
  80080. if (child != null)
  80081. statements.push(child);
  80082. break;
  80083. }
  80084. break;
  80085. case 59:
  80086. t1.readChar$0();
  80087. _this.whitespaceWithoutComments$0();
  80088. break;
  80089. default:
  80090. child = statement.call$0();
  80091. if (child != null)
  80092. statements.push(child);
  80093. break;
  80094. }
  80095. return statements;
  80096. },
  80097. _scss0$_silentComment$0: function() {
  80098. var t2, t3, _this = this,
  80099. t1 = _this.scanner,
  80100. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  80101. t1.expect$1("//");
  80102. t2 = t1.string.length;
  80103. do {
  80104. while (true) {
  80105. if (t1._string_scanner$_position !== t2) {
  80106. t3 = t1.readChar$0();
  80107. t3 = !(t3 === 10 || t3 === 13 || t3 === 12);
  80108. } else
  80109. t3 = false;
  80110. if (!t3)
  80111. break;
  80112. }
  80113. if (t1._string_scanner$_position === t2)
  80114. break;
  80115. _this.whitespaceWithoutComments$0();
  80116. } while (t1.scan$1("//"));
  80117. if (_this.get$plainCss())
  80118. _this.error$2("Silent comments aren't allowed in plain CSS.", t1.spanFrom$1(start));
  80119. return _this.lastSilentComment = new B.SilentComment0(t1.substring$1(0, start.position), t1.spanFrom$1(start));
  80120. },
  80121. _scss0$_loudComment$0: function() {
  80122. var t3, t4, buffer, t5, endPosition,
  80123. t1 = this.scanner,
  80124. t2 = t1._string_scanner$_position;
  80125. t1.expect$1("/*");
  80126. t3 = new P.StringBuffer("");
  80127. t4 = [];
  80128. buffer = new Z.InterpolationBuffer0(t3, t4);
  80129. t3._contents = "/*";
  80130. for (; true;)
  80131. switch (t1.peekChar$0()) {
  80132. case 35:
  80133. if (t1.peekChar$1(1) === 123) {
  80134. t5 = this.singleInterpolation$0();
  80135. buffer._interpolation_buffer0$_flushText$0();
  80136. t4.push(t5);
  80137. } else
  80138. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  80139. break;
  80140. case 42:
  80141. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  80142. if (t1.peekChar$0() !== 47)
  80143. break;
  80144. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  80145. endPosition = t1._string_scanner$_position;
  80146. return new L.LoudComment0(buffer.interpolation$1(Y._FileSpan$(t1._sourceFile, new S._SpanScannerState(t1, t2).position, endPosition)));
  80147. case 13:
  80148. t1.readChar$0();
  80149. if (t1.peekChar$0() !== 10)
  80150. t3._contents += H.Primitives_stringFromCharCode(10);
  80151. break;
  80152. case 12:
  80153. t1.readChar$0();
  80154. t3._contents += H.Primitives_stringFromCharCode(10);
  80155. break;
  80156. default:
  80157. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  80158. break;
  80159. }
  80160. }
  80161. };
  80162. T.Selector0.prototype = {
  80163. get$isInvisible: function() {
  80164. return false;
  80165. },
  80166. toString$0: function(_) {
  80167. var visitor = N._SerializeVisitor$(null, true, null, true, false, null, true);
  80168. this.accept$1(visitor);
  80169. return visitor._buffer.toString$0(0);
  80170. }
  80171. };
  80172. T.SelectorExpression0.prototype = {
  80173. accept$1$1: function(visitor) {
  80174. return visitor.visitSelectorExpression$1(this);
  80175. },
  80176. accept$1: function(visitor) {
  80177. return this.accept$1$1(visitor, type$.dynamic);
  80178. },
  80179. toString$0: function(_) {
  80180. return "&";
  80181. },
  80182. $isExpression0: 1,
  80183. $isAstNode0: 1,
  80184. get$span: function() {
  80185. return this.span;
  80186. }
  80187. };
  80188. T.closure121.prototype = {
  80189. call$1: function($arguments) {
  80190. var selectors = J.$index$asx($arguments, 0).get$asList();
  80191. if (selectors.length === 0)
  80192. throw H.wrapException(E.SassScriptException$0("$selectors: At least one selector must be passed."));
  80193. return new H.MappedListIterable(selectors, new T._closure16(), H._arrayInstanceType(selectors)._eval$1("MappedListIterable<1,SelectorList0>")).reduce$1(0, new T._closure17()).get$asSassList();
  80194. },
  80195. $signature: 17
  80196. };
  80197. T._closure16.prototype = {
  80198. call$1: function(selector) {
  80199. return selector.assertSelector$1$allowParent(true);
  80200. }
  80201. };
  80202. T._closure17.prototype = {
  80203. call$2: function($parent, child) {
  80204. return child.resolveParentSelectors$1($parent);
  80205. }
  80206. };
  80207. T.closure120.prototype = {
  80208. call$1: function($arguments) {
  80209. var selectors = J.$index$asx($arguments, 0).get$asList();
  80210. if (selectors.length === 0)
  80211. throw H.wrapException(E.SassScriptException$0("$selectors: At least one selector must be passed."));
  80212. return new H.MappedListIterable(selectors, new T._closure14(), H._arrayInstanceType(selectors)._eval$1("MappedListIterable<1,SelectorList0>")).reduce$1(0, new T._closure15()).get$asSassList();
  80213. },
  80214. $signature: 17
  80215. };
  80216. T._closure14.prototype = {
  80217. call$1: function(selector) {
  80218. return selector.assertSelector$0();
  80219. }
  80220. };
  80221. T._closure15.prototype = {
  80222. call$2: function($parent, child) {
  80223. var t1 = child.components;
  80224. return D.SelectorList$0(new H.MappedListIterable(t1, new T.__closure0($parent), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector0>"))).resolveParentSelectors$1($parent);
  80225. }
  80226. };
  80227. T.__closure0.prototype = {
  80228. call$1: function(complex) {
  80229. var newCompound, t2,
  80230. t1 = complex.components,
  80231. compound = C.JSArray_methods.get$first(t1);
  80232. if (compound instanceof X.CompoundSelector0) {
  80233. newCompound = T._prependParent0(compound);
  80234. if (newCompound == null)
  80235. throw H.wrapException(E.SassScriptException$0("Can't append " + complex.toString$0(0) + " to " + H.S(this.parent) + "."));
  80236. t2 = H.setRuntimeTypeInfo([], type$.JSArray_ComplexSelectorComponent_2);
  80237. t2.push(newCompound);
  80238. for (t1 = H.SubListIterable$(t1, 1, null, H._arrayInstanceType(t1)._precomputed1), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();)
  80239. t2.push(t1.__internal$_current);
  80240. return S.ComplexSelector$0(t2, false);
  80241. } else
  80242. throw H.wrapException(E.SassScriptException$0("Can't append " + complex.toString$0(0) + " to " + H.S(this.parent) + "."));
  80243. }
  80244. };
  80245. T.closure119.prototype = {
  80246. call$1: function($arguments) {
  80247. var t1 = J.getInterceptor$asx($arguments),
  80248. selector = t1.$index($arguments, 0).assertSelector$1$name("selector"),
  80249. target = t1.$index($arguments, 1).assertSelector$1$name("extendee");
  80250. return F.Extender__extendOrReplace0(selector, t1.$index($arguments, 2).assertSelector$1$name("extender"), target, C.ExtendMode_allTargets0).get$asSassList();
  80251. },
  80252. $signature: 17
  80253. };
  80254. T.closure118.prototype = {
  80255. call$1: function($arguments) {
  80256. var t1 = J.getInterceptor$asx($arguments),
  80257. selector = t1.$index($arguments, 0).assertSelector$1$name("selector"),
  80258. target = t1.$index($arguments, 1).assertSelector$1$name("original");
  80259. return F.Extender__extendOrReplace0(selector, t1.$index($arguments, 2).assertSelector$1$name("replacement"), target, C.ExtendMode_replace0).get$asSassList();
  80260. },
  80261. $signature: 17
  80262. };
  80263. T.closure117.prototype = {
  80264. call$1: function($arguments) {
  80265. var t1 = J.getInterceptor$asx($arguments),
  80266. result = t1.$index($arguments, 0).assertSelector$1$name("selector1").unify$1(t1.$index($arguments, 1).assertSelector$1$name("selector2"));
  80267. return result == null ? C.C_SassNull : result.get$asSassList();
  80268. },
  80269. $signature: 3
  80270. };
  80271. T.closure124.prototype = {
  80272. call$1: function($arguments) {
  80273. var t1 = J.getInterceptor$asx($arguments),
  80274. selector1 = t1.$index($arguments, 0).assertSelector$1$name("super"),
  80275. selector2 = t1.$index($arguments, 1).assertSelector$1$name("sub");
  80276. return Y.listIsSuperslector0(selector1.components, selector2.components) ? C.SassBoolean_true : C.SassBoolean_false;
  80277. },
  80278. $signature: 15
  80279. };
  80280. T.closure123.prototype = {
  80281. call$1: function($arguments) {
  80282. var t1 = J.$index$asx($arguments, 0).assertCompoundSelector$1$name("selector").components;
  80283. return D.SassList$0(new H.MappedListIterable(t1, new T._closure18(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value0>")), C.ListSeparator_comma0, false);
  80284. },
  80285. $signature: 17
  80286. };
  80287. T._closure18.prototype = {
  80288. call$1: function(simple) {
  80289. return new D.SassString0(J.toString$0$(simple), false);
  80290. }
  80291. };
  80292. T.closure122.prototype = {
  80293. call$1: function($arguments) {
  80294. return J.$index$asx($arguments, 0).assertSelector$1$name("selector").get$asSassList();
  80295. },
  80296. $signature: 17
  80297. };
  80298. T.SelectorParser0.prototype = {
  80299. parse$0: function() {
  80300. return this.wrapSpanFormatException$1(new T.SelectorParser_parse_closure0(this));
  80301. },
  80302. parseCompoundSelector$0: function() {
  80303. return this.wrapSpanFormatException$1(new T.SelectorParser_parseCompoundSelector_closure0(this));
  80304. },
  80305. _selector$_selectorList$0: function() {
  80306. var t3, t4, lineBreak, _this = this,
  80307. t1 = _this.scanner,
  80308. t2 = t1._sourceFile,
  80309. previousLine = t2.getLine$1(t1._string_scanner$_position),
  80310. components = H.setRuntimeTypeInfo([_this._selector$_complexSelector$0()], type$.JSArray_ComplexSelector_2);
  80311. _this.whitespace$0();
  80312. for (t3 = t1.string; t1.scanChar$1(44);) {
  80313. _this.whitespace$0();
  80314. if (t1.peekChar$0() === 44)
  80315. continue;
  80316. t4 = t1._string_scanner$_position;
  80317. if (t4 === t3.length)
  80318. break;
  80319. lineBreak = t2.getLine$1(t4) != previousLine;
  80320. if (lineBreak)
  80321. previousLine = t2.getLine$1(t1._string_scanner$_position);
  80322. components.push(_this._selector$_complexSelector$1$lineBreak(lineBreak));
  80323. }
  80324. return D.SelectorList$0(components);
  80325. },
  80326. _selector$_complexSelector$1$lineBreak: function(lineBreak) {
  80327. var t1, next, _this = this,
  80328. _s58_ = '"&" may only used at the beginning of a compound selector.',
  80329. components = H.setRuntimeTypeInfo([], type$.JSArray_ComplexSelectorComponent_2);
  80330. $label0$1:
  80331. for (t1 = _this.scanner; true;) {
  80332. _this.whitespace$0();
  80333. next = t1.peekChar$0();
  80334. switch (next) {
  80335. case 43:
  80336. t1.readChar$0();
  80337. components.push(C.Combinator_uzg0);
  80338. break;
  80339. case 62:
  80340. t1.readChar$0();
  80341. components.push(C.Combinator_sgq0);
  80342. break;
  80343. case 126:
  80344. t1.readChar$0();
  80345. components.push(C.Combinator_CzM0);
  80346. break;
  80347. case 91:
  80348. case 46:
  80349. case 35:
  80350. case 37:
  80351. case 58:
  80352. case 38:
  80353. case 42:
  80354. case 124:
  80355. components.push(_this._selector$_compoundSelector$0());
  80356. if (t1.peekChar$0() === 38)
  80357. t1.error$1(_s58_);
  80358. break;
  80359. default:
  80360. if (next == null || !_this.lookingAtIdentifier$0())
  80361. break $label0$1;
  80362. components.push(_this._selector$_compoundSelector$0());
  80363. if (t1.peekChar$0() === 38)
  80364. t1.error$1(_s58_);
  80365. break;
  80366. }
  80367. }
  80368. if (components.length === 0)
  80369. t1.error$1("expected selector.");
  80370. return S.ComplexSelector$0(components, lineBreak);
  80371. },
  80372. _selector$_complexSelector$0: function() {
  80373. return this._selector$_complexSelector$1$lineBreak(false);
  80374. },
  80375. _selector$_compoundSelector$0: function() {
  80376. var t2,
  80377. components = H.setRuntimeTypeInfo([this._selector$_simpleSelector$0()], type$.JSArray_SimpleSelector_2),
  80378. t1 = this.scanner;
  80379. while (true) {
  80380. t2 = t1.peekChar$0();
  80381. if (!(t2 === 42 || t2 === 91 || t2 === 46 || t2 === 35 || t2 === 37 || t2 === 58))
  80382. break;
  80383. components.push(this._selector$_simpleSelector$1$allowParent(false));
  80384. }
  80385. return X.CompoundSelector$0(components);
  80386. },
  80387. _selector$_simpleSelector$1$allowParent: function(allowParent) {
  80388. var $name, text, t2, suffix, _this = this,
  80389. t1 = _this.scanner,
  80390. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  80391. if (allowParent == null)
  80392. allowParent = _this._selector$_allowParent;
  80393. switch (t1.peekChar$0()) {
  80394. case 91:
  80395. return _this._selector$_attributeSelector$0();
  80396. case 46:
  80397. t1.expectChar$1(46);
  80398. return new X.ClassSelector0(_this.identifier$0());
  80399. case 35:
  80400. t1.expectChar$1(35);
  80401. return new N.IDSelector0(_this.identifier$0());
  80402. case 37:
  80403. t1.expectChar$1(37);
  80404. $name = _this.identifier$0();
  80405. if (!_this._selector$_allowPlaceholder)
  80406. _this.error$2("Placeholder selectors aren't allowed here.", t1.spanFrom$1(start));
  80407. return new N.PlaceholderSelector0($name);
  80408. case 58:
  80409. return _this._selector$_pseudoSelector$0();
  80410. case 38:
  80411. t1.expectChar$1(38);
  80412. if (_this.lookingAtIdentifierBody$0()) {
  80413. text = new P.StringBuffer("");
  80414. _this._parser$_identifierBody$1(text);
  80415. if (text._contents.length === 0)
  80416. t1.error$1("Expected identifier body.");
  80417. t2 = text._contents;
  80418. suffix = t2.charCodeAt(0) == 0 ? t2 : t2;
  80419. } else
  80420. suffix = null;
  80421. if (!allowParent)
  80422. _this.error$2("Parent selectors aren't allowed here.", t1.spanFrom$1(start));
  80423. return new M.ParentSelector0(suffix);
  80424. default:
  80425. return _this._selector$_typeOrUniversalSelector$0();
  80426. }
  80427. },
  80428. _selector$_simpleSelector$0: function() {
  80429. return this._selector$_simpleSelector$1$allowParent(null);
  80430. },
  80431. _selector$_attributeSelector$0: function() {
  80432. var $name, operator, next, value, modifier, _this = this, _null = null,
  80433. t1 = _this.scanner;
  80434. t1.expectChar$1(91);
  80435. _this.whitespace$0();
  80436. $name = _this._selector$_attributeName$0();
  80437. _this.whitespace$0();
  80438. if (t1.scanChar$1(93))
  80439. return new N.AttributeSelector0($name, _null, _null, _null);
  80440. operator = _this._selector$_attributeOperator$0();
  80441. _this.whitespace$0();
  80442. next = t1.peekChar$0();
  80443. value = next === 39 || next === 34 ? _this.string$0() : _this.identifier$0();
  80444. _this.whitespace$0();
  80445. modifier = T.isAlphabetic1(t1.peekChar$0()) ? H.Primitives_stringFromCharCode(t1.readChar$0()) : _null;
  80446. t1.expectChar$1(93);
  80447. return new N.AttributeSelector0($name, operator, value, modifier);
  80448. },
  80449. _selector$_attributeName$0: function() {
  80450. var nameOrNamespace, _this = this,
  80451. t1 = _this.scanner;
  80452. if (t1.scanChar$1(42)) {
  80453. t1.expectChar$1(124);
  80454. return new D.QualifiedName0(_this.identifier$0(), "*");
  80455. }
  80456. nameOrNamespace = _this.identifier$0();
  80457. if (t1.peekChar$0() !== 124 || t1.peekChar$1(1) === 61)
  80458. return new D.QualifiedName0(nameOrNamespace, null);
  80459. t1.readChar$0();
  80460. return new D.QualifiedName0(_this.identifier$0(), nameOrNamespace);
  80461. },
  80462. _selector$_attributeOperator$0: function() {
  80463. var t1 = this.scanner,
  80464. t2 = t1._string_scanner$_position;
  80465. switch (t1.readChar$0()) {
  80466. case 61:
  80467. return C.AttributeOperator_sEs0;
  80468. case 126:
  80469. t1.expectChar$1(61);
  80470. return C.AttributeOperator_fz10;
  80471. case 124:
  80472. t1.expectChar$1(61);
  80473. return C.AttributeOperator_AuK0;
  80474. case 94:
  80475. t1.expectChar$1(61);
  80476. return C.AttributeOperator_4L50;
  80477. case 36:
  80478. t1.expectChar$1(61);
  80479. return C.AttributeOperator_mOX0;
  80480. case 42:
  80481. t1.expectChar$1(61);
  80482. return C.AttributeOperator_gqZ0;
  80483. default:
  80484. t1.error$2$position('Expected "]".', t2);
  80485. }
  80486. },
  80487. _selector$_pseudoSelector$0: function() {
  80488. var element, $name, unvendored, selector, argument, t2, _this = this, _null = null,
  80489. t1 = _this.scanner;
  80490. t1.expectChar$1(58);
  80491. element = t1.scanChar$1(58);
  80492. $name = _this.identifier$0();
  80493. if (!t1.scanChar$1(40))
  80494. return D.PseudoSelector$0($name, _null, element, _null);
  80495. _this.whitespace$0();
  80496. unvendored = B.unvendor0($name);
  80497. if (element)
  80498. if ($._selectorPseudoElements0.contains$1(0, unvendored)) {
  80499. selector = _this._selector$_selectorList$0();
  80500. argument = _null;
  80501. } else {
  80502. argument = _this.declarationValue$1$allowEmpty(true);
  80503. selector = _null;
  80504. }
  80505. else if ($._selectorPseudoClasses0.contains$1(0, unvendored)) {
  80506. selector = _this._selector$_selectorList$0();
  80507. argument = _null;
  80508. } else if (unvendored === "nth-child" || unvendored === "nth-last-child") {
  80509. argument = _this._selector$_aNPlusB$0();
  80510. _this.whitespace$0();
  80511. t2 = t1.peekChar$1(-1);
  80512. if ((t2 === 32 || t2 === 9 || T.isNewline0(t2)) && t1.peekChar$0() !== 41) {
  80513. _this.expectIdentifier$1("of");
  80514. argument += " of";
  80515. _this.whitespace$0();
  80516. selector = _this._selector$_selectorList$0();
  80517. } else
  80518. selector = _null;
  80519. } else {
  80520. argument = C.JSString_methods.trimRight$0(_this.declarationValue$1$allowEmpty(true));
  80521. selector = _null;
  80522. }
  80523. t1.expectChar$1(41);
  80524. return D.PseudoSelector$0($name, argument, element, selector);
  80525. },
  80526. _selector$_aNPlusB$0: function() {
  80527. var t2, first, t3, next, last, _this = this,
  80528. t1 = _this.scanner;
  80529. switch (t1.peekChar$0()) {
  80530. case 101:
  80531. case 69:
  80532. _this.expectIdentifier$1("even");
  80533. return "even";
  80534. case 111:
  80535. case 79:
  80536. _this.expectIdentifier$1("odd");
  80537. return "odd";
  80538. case 43:
  80539. case 45:
  80540. t2 = H.Primitives_stringFromCharCode(t1.readChar$0());
  80541. break;
  80542. default:
  80543. t2 = "";
  80544. }
  80545. first = t1.peekChar$0();
  80546. if (first != null && T.isDigit0(first)) {
  80547. while (true) {
  80548. t3 = t1.peekChar$0();
  80549. if (!(t3 != null && t3 >= 48 && t3 <= 57))
  80550. break;
  80551. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  80552. }
  80553. _this.whitespace$0();
  80554. if (!_this.scanIdentChar$1(110))
  80555. return t2.charCodeAt(0) == 0 ? t2 : t2;
  80556. } else
  80557. _this.expectIdentChar$1(110);
  80558. t2 += H.Primitives_stringFromCharCode(110);
  80559. _this.whitespace$0();
  80560. next = t1.peekChar$0();
  80561. if (next !== 43 && next !== 45)
  80562. return t2.charCodeAt(0) == 0 ? t2 : t2;
  80563. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  80564. _this.whitespace$0();
  80565. last = t1.peekChar$0();
  80566. if (last == null || !T.isDigit0(last))
  80567. t1.error$1("Expected a number.");
  80568. while (true) {
  80569. t3 = t1.peekChar$0();
  80570. if (!(t3 != null && t3 >= 48 && t3 <= 57))
  80571. break;
  80572. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  80573. }
  80574. return t2.charCodeAt(0) == 0 ? t2 : t2;
  80575. },
  80576. _selector$_typeOrUniversalSelector$0: function() {
  80577. var nameOrNamespace, _this = this,
  80578. t1 = _this.scanner,
  80579. first = t1.peekChar$0();
  80580. if (first === 42) {
  80581. t1.readChar$0();
  80582. if (!t1.scanChar$1(124))
  80583. return new N.UniversalSelector0(null);
  80584. if (t1.scanChar$1(42))
  80585. return new N.UniversalSelector0("*");
  80586. else
  80587. return new F.TypeSelector0(new D.QualifiedName0(_this.identifier$0(), "*"));
  80588. } else if (first === 124) {
  80589. t1.readChar$0();
  80590. if (t1.scanChar$1(42))
  80591. return new N.UniversalSelector0("");
  80592. else
  80593. return new F.TypeSelector0(new D.QualifiedName0(_this.identifier$0(), ""));
  80594. }
  80595. nameOrNamespace = _this.identifier$0();
  80596. if (!t1.scanChar$1(124))
  80597. return new F.TypeSelector0(new D.QualifiedName0(nameOrNamespace, null));
  80598. else if (t1.scanChar$1(42))
  80599. return new N.UniversalSelector0(nameOrNamespace);
  80600. else
  80601. return new F.TypeSelector0(new D.QualifiedName0(_this.identifier$0(), nameOrNamespace));
  80602. }
  80603. };
  80604. T.SelectorParser_parse_closure0.prototype = {
  80605. call$0: function() {
  80606. var t1 = this.$this,
  80607. selector = t1._selector$_selectorList$0();
  80608. t1 = t1.scanner;
  80609. if (t1._string_scanner$_position !== t1.string.length)
  80610. t1.error$1("expected selector.");
  80611. return selector;
  80612. },
  80613. $signature: 33
  80614. };
  80615. T.SelectorParser_parseCompoundSelector_closure0.prototype = {
  80616. call$0: function() {
  80617. var t1 = this.$this,
  80618. compound = t1._selector$_compoundSelector$0();
  80619. t1 = t1.scanner;
  80620. if (t1._string_scanner$_position !== t1.string.length)
  80621. t1.error$1("expected selector.");
  80622. return compound;
  80623. },
  80624. $signature: 140
  80625. };
  80626. N.serialize_closure0.prototype = {
  80627. call$1: function(codeUnit) {
  80628. return codeUnit > 127;
  80629. },
  80630. $signature: 16
  80631. };
  80632. N._SerializeVisitor.prototype = {
  80633. visitCssStylesheet$1: function(node) {
  80634. var t1, t2, t3, t4, t5, previous, i, child, _this = this;
  80635. for (t1 = _this._serialize0$_style !== C.OutputStyle_compressed0, t2 = type$.CssComment_2, t3 = type$.CssParentNode_2, t4 = _this._buffer, t5 = _this._lineFeed.text, previous = null, i = 0; i < J.get$length$asx(node.get$children()); ++i) {
  80636. child = J.$index$asx(node.get$children(), i);
  80637. if (_this._serialize0$_isInvisible$1(child))
  80638. continue;
  80639. if (previous != null) {
  80640. if (t3._is(previous) ? previous.get$isChildless() : !t2._is(previous))
  80641. t4.writeCharCode$1(59);
  80642. if (t1)
  80643. t4.write$1(0, t5);
  80644. if (previous.get$isGroupEnd())
  80645. if (t1)
  80646. t4.write$1(0, t5);
  80647. }
  80648. child.accept$1(_this);
  80649. previous = child;
  80650. }
  80651. if (previous != null)
  80652. t1 = (t3._is(previous) ? previous.get$isChildless() : !t2._is(previous)) && t1;
  80653. else
  80654. t1 = false;
  80655. if (t1)
  80656. t4.writeCharCode$1(59);
  80657. },
  80658. visitCssComment$1: function(node) {
  80659. this._buffer.forSpan$2(node.span, new N._SerializeVisitor_visitCssComment_closure0(this, node));
  80660. },
  80661. visitCssAtRule$1: function(node) {
  80662. var t1, _this = this;
  80663. _this._serialize0$_writeIndentation$0();
  80664. t1 = _this._buffer;
  80665. t1.forSpan$2(node.span, new N._SerializeVisitor_visitCssAtRule_closure0(_this, node));
  80666. if (!node.isChildless) {
  80667. if (_this._serialize0$_style !== C.OutputStyle_compressed0)
  80668. t1.writeCharCode$1(32);
  80669. _this._serialize0$_visitChildren$1(node.children);
  80670. }
  80671. },
  80672. visitCssMediaRule$1: function(node) {
  80673. var t1, _this = this;
  80674. _this._serialize0$_writeIndentation$0();
  80675. t1 = _this._buffer;
  80676. t1.forSpan$2(node.span, new N._SerializeVisitor_visitCssMediaRule_closure0(_this, node));
  80677. if (_this._serialize0$_style !== C.OutputStyle_compressed0)
  80678. t1.writeCharCode$1(32);
  80679. _this._serialize0$_visitChildren$1(node.children);
  80680. },
  80681. visitCssImport$1: function(node) {
  80682. this._serialize0$_writeIndentation$0();
  80683. this._buffer.forSpan$2(node.span, new N._SerializeVisitor_visitCssImport_closure0(this, node));
  80684. },
  80685. _serialize0$_writeImportUrl$1: function(url) {
  80686. var urlContents, maybeQuote, _this = this;
  80687. if (_this._serialize0$_style !== C.OutputStyle_compressed0 || J._codeUnitAt$1$s(url, 0) !== 117) {
  80688. _this._buffer.write$1(0, url);
  80689. return;
  80690. }
  80691. urlContents = J.substring$2$s(url, 4, url.length - 1);
  80692. maybeQuote = C.JSString_methods._codeUnitAt$1(urlContents, 0);
  80693. if (maybeQuote === 39 || maybeQuote === 34)
  80694. _this._buffer.write$1(0, urlContents);
  80695. else
  80696. _this._serialize0$_visitQuotedString$1(urlContents);
  80697. },
  80698. visitCssKeyframeBlock$1: function(node) {
  80699. var t1, _this = this;
  80700. _this._serialize0$_writeIndentation$0();
  80701. t1 = _this._buffer;
  80702. t1.forSpan$2(node.selector.span, new N._SerializeVisitor_visitCssKeyframeBlock_closure0(_this, node));
  80703. if (_this._serialize0$_style !== C.OutputStyle_compressed0)
  80704. t1.writeCharCode$1(32);
  80705. _this._serialize0$_visitChildren$1(node.children);
  80706. },
  80707. _serialize0$_visitMediaQuery$1: function(query) {
  80708. var t2, t3, _this = this,
  80709. t1 = query.modifier;
  80710. if (t1 != null) {
  80711. t2 = _this._buffer;
  80712. t2.write$1(0, t1);
  80713. t2.writeCharCode$1(32);
  80714. }
  80715. t1 = query.type;
  80716. if (t1 != null) {
  80717. t2 = _this._buffer;
  80718. t2.write$1(0, t1);
  80719. if (query.features.length !== 0)
  80720. t2.write$1(0, " and ");
  80721. }
  80722. t1 = query.features;
  80723. t2 = _this._serialize0$_style === C.OutputStyle_compressed0 ? "and " : " and ";
  80724. t3 = _this._buffer;
  80725. _this._serialize0$_writeBetween$3(t1, t2, t3.get$write(t3));
  80726. },
  80727. visitCssStyleRule$1: function(node) {
  80728. var t1, _this = this;
  80729. _this._serialize0$_writeIndentation$0();
  80730. t1 = _this._buffer;
  80731. t1.forSpan$2(node.selector.span, new N._SerializeVisitor_visitCssStyleRule_closure0(_this, node));
  80732. if (_this._serialize0$_style !== C.OutputStyle_compressed0)
  80733. t1.writeCharCode$1(32);
  80734. _this._serialize0$_visitChildren$1(node.children);
  80735. },
  80736. visitCssSupportsRule$1: function(node) {
  80737. var t1, _this = this;
  80738. _this._serialize0$_writeIndentation$0();
  80739. t1 = _this._buffer;
  80740. t1.forSpan$2(node.span, new N._SerializeVisitor_visitCssSupportsRule_closure0(_this, node));
  80741. if (_this._serialize0$_style !== C.OutputStyle_compressed0)
  80742. t1.writeCharCode$1(32);
  80743. _this._serialize0$_visitChildren$1(node.children);
  80744. },
  80745. visitCssDeclaration$1: function(node) {
  80746. var error, error0, t1, exception, _this = this;
  80747. _this._serialize0$_writeIndentation$0();
  80748. _this._serialize0$_write$1(node.name);
  80749. t1 = _this._buffer;
  80750. t1.writeCharCode$1(58);
  80751. if (_this._serialize0$_isParsedCustomProperty$1(node))
  80752. t1.forSpan$2(node.value.span, new N._SerializeVisitor_visitCssDeclaration_closure1(_this, node));
  80753. else {
  80754. if (_this._serialize0$_style !== C.OutputStyle_compressed0)
  80755. t1.writeCharCode$1(32);
  80756. try {
  80757. t1.forSpan$2(node.valueSpanForMap, new N._SerializeVisitor_visitCssDeclaration_closure2(_this, node));
  80758. } catch (exception) {
  80759. t1 = H.unwrapException(exception);
  80760. if (t1 instanceof E.MultiSpanSassScriptException0) {
  80761. error = t1;
  80762. throw H.wrapException(E.MultiSpanSassException$0(error.message, node.value.span, error.primaryLabel, error.secondarySpans));
  80763. } else if (t1 instanceof E.SassScriptException0) {
  80764. error0 = t1;
  80765. throw H.wrapException(E.SassException$0(error0.message, node.value.span));
  80766. } else
  80767. throw exception;
  80768. }
  80769. }
  80770. },
  80771. _serialize0$_isParsedCustomProperty$1: function(node) {
  80772. var value,
  80773. t1 = node.name;
  80774. if (!J.startsWith$1$s(t1.get$value(t1), "--"))
  80775. return false;
  80776. value = node.value.value;
  80777. return value instanceof D.SassString0 && !value.hasQuotes;
  80778. },
  80779. _serialize0$_writeFoldedValue$1: function(node) {
  80780. var t1, t2, next, t3,
  80781. scanner = X.StringScanner$(type$.SassString_2._as(node.value.value).text, null, null);
  80782. for (t1 = scanner.string.length, t2 = this._buffer; scanner._string_scanner$_position !== t1;) {
  80783. next = scanner.readChar$0();
  80784. if (next !== 10) {
  80785. t2.writeCharCode$1(next);
  80786. continue;
  80787. }
  80788. t2.writeCharCode$1(32);
  80789. while (true) {
  80790. t3 = scanner.peekChar$0();
  80791. if (!(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12))
  80792. break;
  80793. scanner.readChar$0();
  80794. }
  80795. }
  80796. },
  80797. _serialize0$_writeReindentedValue$1: function(node) {
  80798. var _this = this,
  80799. t1 = node.value,
  80800. value = type$.SassString_2._as(t1.value).text,
  80801. minimumIndentation = _this._serialize0$_minimumIndentation$1(value);
  80802. if (minimumIndentation == null) {
  80803. _this._buffer.write$1(0, value);
  80804. return;
  80805. } else if (minimumIndentation === -1) {
  80806. t1 = _this._buffer;
  80807. t1.write$1(0, B.trimAsciiRight0(value, true));
  80808. t1.writeCharCode$1(32);
  80809. return;
  80810. }
  80811. if (t1.span != null) {
  80812. t1 = node.name.get$span();
  80813. t1 = Y.FileLocation$_(t1.file, t1._file$_start);
  80814. minimumIndentation = Math.min(minimumIndentation, t1.file.getColumn$1(t1.offset));
  80815. }
  80816. _this._serialize0$_writeWithIndent$2(value, minimumIndentation);
  80817. },
  80818. _serialize0$_minimumIndentation$1: function(text) {
  80819. var character, t2, min, next, min0,
  80820. scanner = new Z.LineScanner(null, text),
  80821. t1 = text.length;
  80822. while (true) {
  80823. if (scanner._string_scanner$_position !== t1) {
  80824. character = scanner.super$StringScanner$readChar();
  80825. scanner._adjustLineAndColumn$1(character);
  80826. t2 = character !== 10;
  80827. } else
  80828. t2 = false;
  80829. if (!t2)
  80830. break;
  80831. }
  80832. if (scanner._string_scanner$_position === t1)
  80833. return scanner.peekChar$1(-1) === 10 ? -1 : null;
  80834. for (min = null; scanner._string_scanner$_position !== t1;) {
  80835. for (; scanner._string_scanner$_position !== t1;) {
  80836. next = scanner.peekChar$0();
  80837. if (next !== 32 && next !== 9)
  80838. break;
  80839. scanner._adjustLineAndColumn$1(scanner.super$StringScanner$readChar());
  80840. }
  80841. if (scanner._string_scanner$_position === t1 || scanner.scanChar$1(10))
  80842. continue;
  80843. min0 = scanner._line_scanner$_column;
  80844. min = min == null ? min0 : Math.min(min, min0);
  80845. while (true) {
  80846. if (scanner._string_scanner$_position !== t1) {
  80847. character = scanner.super$StringScanner$readChar();
  80848. scanner._adjustLineAndColumn$1(character);
  80849. t2 = character !== 10;
  80850. } else
  80851. t2 = false;
  80852. if (!t2)
  80853. break;
  80854. }
  80855. }
  80856. return min == null ? -1 : min;
  80857. },
  80858. _serialize0$_writeWithIndent$2: function(text, minimumIndentation) {
  80859. var t1, t2, character, t3, lineStart, newlines, end,
  80860. scanner = new Z.LineScanner(null, text);
  80861. for (t1 = text.length, t2 = this._buffer; scanner._string_scanner$_position !== t1;) {
  80862. character = scanner.super$StringScanner$readChar();
  80863. scanner._adjustLineAndColumn$1(character);
  80864. if (character === 10)
  80865. break;
  80866. t2.writeCharCode$1(character);
  80867. }
  80868. for (t3 = J.getInterceptor$s(text); true;) {
  80869. lineStart = scanner._string_scanner$_position;
  80870. for (newlines = 1; true;) {
  80871. if (scanner._string_scanner$_position === t1) {
  80872. t2.writeCharCode$1(32);
  80873. return;
  80874. }
  80875. character = scanner.super$StringScanner$readChar();
  80876. scanner._adjustLineAndColumn$1(character);
  80877. if (character === 32 || character === 9)
  80878. continue;
  80879. if (character !== 10)
  80880. break;
  80881. lineStart = scanner._string_scanner$_position;
  80882. ++newlines;
  80883. }
  80884. this._serialize0$_writeTimes$2(10, newlines);
  80885. this._serialize0$_writeIndentation$0();
  80886. end = scanner._string_scanner$_position;
  80887. t2.write$1(0, t3.substring$2(text, lineStart + minimumIndentation, end));
  80888. for (; true;) {
  80889. if (scanner._string_scanner$_position === t1)
  80890. return;
  80891. character = scanner.super$StringScanner$readChar();
  80892. scanner._adjustLineAndColumn$1(character);
  80893. if (character === 10)
  80894. break;
  80895. t2.writeCharCode$1(character);
  80896. }
  80897. }
  80898. },
  80899. visitColor$1: function(value) {
  80900. var $name, hexLength, t2, t3, _this = this,
  80901. t1 = _this._serialize0$_style === C.OutputStyle_compressed0;
  80902. if (t1 && Math.abs(value.alpha - 1) < $.$get$epsilon0()) {
  80903. $name = $.$get$namesByColor0().$index(0, value);
  80904. hexLength = _this._serialize0$_canUseShortHex$1(value) ? 4 : 7;
  80905. if ($name != null && $name.length <= hexLength)
  80906. _this._buffer.write$1(0, $name);
  80907. else {
  80908. t1 = _this._buffer;
  80909. if (_this._serialize0$_canUseShortHex$1(value)) {
  80910. t1.writeCharCode$1(35);
  80911. t1.writeCharCode$1(T.hexCharFor0(value.get$red() & 15));
  80912. t1.writeCharCode$1(T.hexCharFor0(value.get$green() & 15));
  80913. t1.writeCharCode$1(T.hexCharFor0(value.get$blue() & 15));
  80914. } else {
  80915. t1.writeCharCode$1(35);
  80916. _this._serialize0$_writeHexComponent$1(value.get$red());
  80917. _this._serialize0$_writeHexComponent$1(value.get$green());
  80918. _this._serialize0$_writeHexComponent$1(value.get$blue());
  80919. }
  80920. }
  80921. return;
  80922. }
  80923. if (value.get$original() != null)
  80924. _this._buffer.write$1(0, value.get$original());
  80925. else {
  80926. t2 = $.$get$namesByColor0();
  80927. if (t2.containsKey$1(value) && !(Math.abs(value.alpha - 0) < $.$get$epsilon0()))
  80928. _this._buffer.write$1(0, t2.$index(0, value));
  80929. else {
  80930. t2 = value.alpha;
  80931. t3 = _this._buffer;
  80932. if (Math.abs(t2 - 1) < $.$get$epsilon0()) {
  80933. t3.writeCharCode$1(35);
  80934. _this._serialize0$_writeHexComponent$1(value.get$red());
  80935. _this._serialize0$_writeHexComponent$1(value.get$green());
  80936. _this._serialize0$_writeHexComponent$1(value.get$blue());
  80937. } else {
  80938. t3.write$1(0, "rgba(" + H.S(value.get$red()));
  80939. t3.write$1(0, t1 ? "," : ", ");
  80940. t3.write$1(0, value.get$green());
  80941. t3.write$1(0, t1 ? "," : ", ");
  80942. t3.write$1(0, value.get$blue());
  80943. t3.write$1(0, t1 ? "," : ", ");
  80944. _this._serialize0$_writeNumber$1(t2);
  80945. t3.writeCharCode$1(41);
  80946. }
  80947. }
  80948. }
  80949. },
  80950. _serialize0$_canUseShortHex$1: function(color) {
  80951. var t1 = color.get$red();
  80952. if ((t1 & 15) === C.JSInt_methods._shrOtherPositive$1(t1, 4)) {
  80953. t1 = color.get$green();
  80954. if ((t1 & 15) === C.JSInt_methods._shrOtherPositive$1(t1, 4)) {
  80955. t1 = color.get$blue();
  80956. t1 = (t1 & 15) === C.JSInt_methods._shrOtherPositive$1(t1, 4);
  80957. } else
  80958. t1 = false;
  80959. } else
  80960. t1 = false;
  80961. return t1;
  80962. },
  80963. _serialize0$_writeHexComponent$1: function(color) {
  80964. var t1 = this._buffer;
  80965. t1.writeCharCode$1(T.hexCharFor0(C.JSInt_methods._shrOtherPositive$1(color, 4)));
  80966. t1.writeCharCode$1(T.hexCharFor0(color & 15));
  80967. },
  80968. visitList$1: function(value) {
  80969. var t2, singleton, t3, t4, _this = this,
  80970. t1 = value.hasBrackets;
  80971. if (t1)
  80972. _this._buffer.writeCharCode$1(91);
  80973. else if (value._list1$_contents.length === 0) {
  80974. if (!_this._inspect)
  80975. throw H.wrapException(E.SassScriptException$0("() isn't a valid CSS value."));
  80976. _this._buffer.write$1(0, "()");
  80977. return;
  80978. }
  80979. t2 = _this._inspect;
  80980. singleton = t2 && value._list1$_contents.length === 1 && value.separator === C.ListSeparator_comma0;
  80981. if (singleton && !t1)
  80982. _this._buffer.writeCharCode$1(40);
  80983. t3 = value._list1$_contents;
  80984. t3 = t2 ? t3 : new H.WhereIterable(t3, new N._SerializeVisitor_visitList_closure2(), H._arrayInstanceType(t3)._eval$1("WhereIterable<1>"));
  80985. if (value.separator === C.ListSeparator_space0)
  80986. t4 = " ";
  80987. else
  80988. t4 = _this._serialize0$_style === C.OutputStyle_compressed0 ? "," : ", ";
  80989. _this._serialize0$_writeBetween$3(t3, t4, t2 ? new N._SerializeVisitor_visitList_closure3(_this, value) : new N._SerializeVisitor_visitList_closure4(_this));
  80990. if (singleton) {
  80991. t2 = _this._buffer;
  80992. t2.writeCharCode$1(44);
  80993. if (!t1)
  80994. t2.writeCharCode$1(41);
  80995. }
  80996. if (t1)
  80997. _this._buffer.writeCharCode$1(93);
  80998. },
  80999. _serialize0$_elementNeedsParens$2: function(separator, value) {
  81000. var t1;
  81001. if (value instanceof D.SassList0) {
  81002. if (value._list1$_contents.length < 2)
  81003. return false;
  81004. if (value.hasBrackets)
  81005. return false;
  81006. t1 = value.separator;
  81007. return separator === C.ListSeparator_comma0 ? t1 === C.ListSeparator_comma0 : t1 !== C.ListSeparator_undecided0;
  81008. }
  81009. return false;
  81010. },
  81011. visitMap$1: function(map) {
  81012. var t1, _this = this;
  81013. if (!_this._inspect)
  81014. throw H.wrapException(E.SassScriptException$0(map.toString$0(0) + " isn't a valid CSS value."));
  81015. t1 = _this._buffer;
  81016. t1.writeCharCode$1(40);
  81017. _this._serialize0$_writeBetween$3(map.contents.get$keys(), ", ", new N._SerializeVisitor_visitMap_closure0(_this, map));
  81018. t1.writeCharCode$1(41);
  81019. },
  81020. _serialize0$_writeMapElement$1: function(value) {
  81021. var needsParens = value instanceof D.SassList0 && value.separator === C.ListSeparator_comma0 && !value.hasBrackets;
  81022. if (needsParens)
  81023. this._buffer.writeCharCode$1(40);
  81024. value.accept$1(this);
  81025. if (needsParens)
  81026. this._buffer.writeCharCode$1(41);
  81027. },
  81028. visitNumber$1: function(value) {
  81029. var t2, _this = this,
  81030. t1 = value.asSlash;
  81031. if (t1 != null) {
  81032. _this.visitNumber$1(t1.item1);
  81033. _this._buffer.writeCharCode$1(47);
  81034. _this.visitNumber$1(t1.item2);
  81035. return;
  81036. }
  81037. _this._serialize0$_writeNumber$1(value.value);
  81038. if (!_this._inspect) {
  81039. t1 = value.numeratorUnits;
  81040. t2 = t1.length;
  81041. if (t2 > 1 || value.denominatorUnits.length !== 0)
  81042. throw H.wrapException(E.SassScriptException$0(value.toString$0(0) + " isn't a valid CSS value."));
  81043. if (t2 !== 0)
  81044. _this._buffer.write$1(0, C.JSArray_methods.get$first(t1));
  81045. } else
  81046. _this._buffer.write$1(0, value.get$unitString());
  81047. },
  81048. _serialize0$_writeNumber$1: function(number) {
  81049. var t1, text, text0, _this = this,
  81050. integer = T.fuzzyIsInt0(number) ? J.round$0$n(number) : null;
  81051. if (integer != null) {
  81052. t1 = integer >= 1e21 ? _this._serialize0$_removeExponent$1(C.JSInt_methods.toString$0(integer)) : C.JSInt_methods.toString$0(integer);
  81053. _this._buffer.write$1(0, t1);
  81054. return;
  81055. }
  81056. text = number >= 1e21 ? _this._serialize0$_removeExponent$1(C.JSNumber_methods.toString$0(number)) : C.JSNumber_methods.toString$0(number);
  81057. text0 = _this._serialize0$_style === C.OutputStyle_compressed0 && C.JSString_methods._codeUnitAt$1(text, 0) === 48 ? C.JSString_methods.substring$1(text, 1) : text;
  81058. if (text.length < 12) {
  81059. _this._buffer.write$1(0, text0);
  81060. return;
  81061. }
  81062. _this._serialize0$_writeDecimal$1(text0);
  81063. },
  81064. _serialize0$_removeExponent$1: function(text) {
  81065. var exponent, buffer, t2, additionalZeroes, negative, _null = null,
  81066. t1 = text.length,
  81067. i = 0;
  81068. while (true) {
  81069. if (!(i < t1)) {
  81070. exponent = _null;
  81071. buffer = exponent;
  81072. break;
  81073. }
  81074. c$0: {
  81075. if (C.JSString_methods._codeUnitAt$1(text, i) !== 101)
  81076. break c$0;
  81077. buffer = new P.StringBuffer("");
  81078. t2 = H.Primitives_stringFromCharCode(C.JSString_methods._codeUnitAt$1(text, 0));
  81079. buffer._contents = t2;
  81080. if (i > 2)
  81081. buffer._contents = t2 + C.JSString_methods.substring$2(text, 2, i);
  81082. exponent = P.int_parse(C.JSString_methods.substring$2(text, i + 1, t1), _null, _null);
  81083. break;
  81084. }
  81085. ++i;
  81086. }
  81087. if (buffer == null)
  81088. return text;
  81089. if (exponent > 0) {
  81090. t1 = buffer._contents;
  81091. additionalZeroes = exponent - (t1.length - 1);
  81092. for (i = 0; i < additionalZeroes; ++i)
  81093. t1 = buffer._contents += H.Primitives_stringFromCharCode(48);
  81094. return t1.charCodeAt(0) == 0 ? t1 : t1;
  81095. } else {
  81096. negative = C.JSString_methods._codeUnitAt$1(text, 0) === 45;
  81097. t1 = (negative ? H.Primitives_stringFromCharCode(45) : "") + "0.";
  81098. for (i = -1; i > exponent; --i)
  81099. t1 += H.Primitives_stringFromCharCode(48);
  81100. if (negative) {
  81101. t2 = buffer._contents;
  81102. t2 = C.JSString_methods.substring$1(t2.charCodeAt(0) == 0 ? t2 : t2, 1);
  81103. } else
  81104. t2 = buffer;
  81105. t2 = t1 + H.S(t2);
  81106. return t2.charCodeAt(0) == 0 ? t2 : t2;
  81107. }
  81108. },
  81109. _serialize0$_writeDecimal$1: function(text) {
  81110. var t1, t2, textIndex, codeUnit, digits, t3, digitsIndex, digitsIndex0, textIndex0, newDigit, i;
  81111. for (t1 = text.length, t2 = this._buffer, textIndex = 0; textIndex < t1; ++textIndex) {
  81112. codeUnit = C.JSString_methods._codeUnitAt$1(text, textIndex);
  81113. if (codeUnit === 46) {
  81114. if (textIndex === t1 - 2 && C.JSString_methods.codeUnitAt$1(text, t1 - 1) === 48)
  81115. return;
  81116. t2.writeCharCode$1(codeUnit);
  81117. ++textIndex;
  81118. break;
  81119. }
  81120. t2.writeCharCode$1(codeUnit);
  81121. }
  81122. if (textIndex === t1)
  81123. return;
  81124. digits = new Uint8Array(10);
  81125. t3 = digits.length;
  81126. digitsIndex = 0;
  81127. while (true) {
  81128. if (!(textIndex < t1 && digitsIndex < t3))
  81129. break;
  81130. digitsIndex0 = digitsIndex + 1;
  81131. textIndex0 = textIndex + 1;
  81132. digits[digitsIndex] = C.JSString_methods._codeUnitAt$1(text, textIndex) - 48;
  81133. digitsIndex = digitsIndex0;
  81134. textIndex = textIndex0;
  81135. }
  81136. if (textIndex !== t1 && C.JSString_methods._codeUnitAt$1(text, textIndex) - 48 >= 5)
  81137. for (; digitsIndex >= 0; digitsIndex = digitsIndex0) {
  81138. digitsIndex0 = digitsIndex - 1;
  81139. newDigit = digits[digitsIndex0] + 1;
  81140. digits[digitsIndex0] = newDigit;
  81141. if (newDigit !== 10)
  81142. break;
  81143. }
  81144. while (true) {
  81145. if (!(digitsIndex > 0 && digits[digitsIndex - 1] === 0))
  81146. break;
  81147. --digitsIndex;
  81148. }
  81149. for (i = 0; i < digitsIndex; ++i)
  81150. t2.writeCharCode$1(48 + digits[i]);
  81151. },
  81152. _serialize0$_visitQuotedString$2$forceDoubleQuote: function(string, forceDoubleQuote) {
  81153. var t1, includesSingleQuote, includesDoubleQuote, i, char, t2, next, quote, _this = this,
  81154. buffer = forceDoubleQuote ? _this._buffer : new P.StringBuffer("");
  81155. if (forceDoubleQuote)
  81156. buffer.writeCharCode$1(34);
  81157. for (t1 = string.length, includesSingleQuote = false, includesDoubleQuote = false, i = 0; i < t1; ++i) {
  81158. char = C.JSString_methods._codeUnitAt$1(string, i);
  81159. switch (char) {
  81160. case 39:
  81161. if (forceDoubleQuote)
  81162. buffer.writeCharCode$1(39);
  81163. else {
  81164. if (includesDoubleQuote) {
  81165. _this._serialize0$_visitQuotedString$2$forceDoubleQuote(string, true);
  81166. return;
  81167. } else
  81168. buffer.writeCharCode$1(39);
  81169. includesSingleQuote = true;
  81170. }
  81171. break;
  81172. case 34:
  81173. if (forceDoubleQuote) {
  81174. buffer.writeCharCode$1(92);
  81175. buffer.writeCharCode$1(34);
  81176. } else {
  81177. if (includesSingleQuote) {
  81178. _this._serialize0$_visitQuotedString$2$forceDoubleQuote(string, true);
  81179. return;
  81180. } else
  81181. buffer.writeCharCode$1(34);
  81182. includesDoubleQuote = true;
  81183. }
  81184. break;
  81185. case 0:
  81186. case 1:
  81187. case 2:
  81188. case 3:
  81189. case 4:
  81190. case 5:
  81191. case 6:
  81192. case 7:
  81193. case 8:
  81194. case 10:
  81195. case 11:
  81196. case 12:
  81197. case 13:
  81198. case 14:
  81199. case 15:
  81200. case 16:
  81201. case 17:
  81202. case 18:
  81203. case 19:
  81204. case 20:
  81205. case 21:
  81206. case 22:
  81207. case 23:
  81208. case 24:
  81209. case 25:
  81210. case 26:
  81211. case 27:
  81212. case 28:
  81213. case 29:
  81214. case 30:
  81215. case 31:
  81216. buffer.writeCharCode$1(92);
  81217. if (char > 15) {
  81218. t2 = char >>> 4;
  81219. buffer.writeCharCode$1(t2 < 10 ? 48 + t2 : 87 + t2);
  81220. }
  81221. t2 = char & 15;
  81222. buffer.writeCharCode$1(t2 < 10 ? 48 + t2 : 87 + t2);
  81223. t2 = i + 1;
  81224. if (t1 === t2)
  81225. break;
  81226. next = C.JSString_methods._codeUnitAt$1(string, t2);
  81227. if (T.isHex0(next) || next === 32 || next === 9)
  81228. buffer.writeCharCode$1(32);
  81229. break;
  81230. case 92:
  81231. buffer.writeCharCode$1(92);
  81232. buffer.writeCharCode$1(92);
  81233. break;
  81234. default:
  81235. buffer.writeCharCode$1(char);
  81236. break;
  81237. }
  81238. }
  81239. if (forceDoubleQuote)
  81240. buffer.writeCharCode$1(34);
  81241. else {
  81242. quote = includesDoubleQuote ? 39 : 34;
  81243. t1 = _this._buffer;
  81244. t1.writeCharCode$1(quote);
  81245. t1.write$1(0, buffer);
  81246. t1.writeCharCode$1(quote);
  81247. }
  81248. },
  81249. _serialize0$_visitQuotedString$1: function(string) {
  81250. return this._serialize0$_visitQuotedString$2$forceDoubleQuote(string, false);
  81251. },
  81252. _serialize0$_visitUnquotedString$1: function(string) {
  81253. var t1, t2, afterNewline, i, char;
  81254. for (t1 = string.length, t2 = this._buffer, afterNewline = false, i = 0; i < t1; ++i) {
  81255. char = C.JSString_methods._codeUnitAt$1(string, i);
  81256. switch (char) {
  81257. case 10:
  81258. t2.writeCharCode$1(32);
  81259. afterNewline = true;
  81260. break;
  81261. case 32:
  81262. if (!afterNewline)
  81263. t2.writeCharCode$1(32);
  81264. break;
  81265. default:
  81266. t2.writeCharCode$1(char);
  81267. afterNewline = false;
  81268. break;
  81269. }
  81270. }
  81271. },
  81272. visitComplexSelector$1: function(complex) {
  81273. var t1, t2, t3, t4, lastComponent, _i, component, t5;
  81274. for (t1 = complex.components, t2 = t1.length, t3 = this._buffer, t4 = this._serialize0$_style === C.OutputStyle_compressed0, lastComponent = null, _i = 0; _i < t2; ++_i, lastComponent = component) {
  81275. component = t1[_i];
  81276. if (lastComponent != null)
  81277. if (!(t4 && lastComponent instanceof S.Combinator0))
  81278. t5 = !(t4 && component instanceof S.Combinator0);
  81279. else
  81280. t5 = false;
  81281. else
  81282. t5 = false;
  81283. if (t5)
  81284. t3.write$1(0, " ");
  81285. if (component instanceof X.CompoundSelector0)
  81286. this.visitCompoundSelector$1(component);
  81287. else
  81288. t3.write$1(0, component);
  81289. }
  81290. },
  81291. visitCompoundSelector$1: function(compound) {
  81292. var t2, t3, _i,
  81293. t1 = this._buffer,
  81294. start = t1.get$length(t1);
  81295. for (t2 = compound.components, t3 = t2.length, _i = 0; _i < t3; ++_i)
  81296. t2[_i].accept$1(this);
  81297. if (t1.get$length(t1) === start)
  81298. t1.writeCharCode$1(42);
  81299. },
  81300. visitSelectorList$1: function(list) {
  81301. var complexes, t1, t2, t3, t4, first, t5, _this = this;
  81302. if (_this._inspect)
  81303. complexes = list.components;
  81304. else {
  81305. t1 = list.components;
  81306. complexes = new H.WhereIterable(t1, new N._SerializeVisitor_visitSelectorList_closure0(), H._arrayInstanceType(t1)._eval$1("WhereIterable<1>"));
  81307. }
  81308. for (t1 = J.get$iterator$ax(complexes), t2 = _this._serialize0$_style !== C.OutputStyle_compressed0, t3 = _this._buffer, t4 = _this._lineFeed.text, first = true; t1.moveNext$0();) {
  81309. t5 = t1.get$current(t1);
  81310. if (first)
  81311. first = false;
  81312. else {
  81313. t3.writeCharCode$1(44);
  81314. if (t5.lineBreak) {
  81315. if (t2)
  81316. t3.write$1(0, t4);
  81317. } else if (t2)
  81318. t3.writeCharCode$1(32);
  81319. }
  81320. _this.visitComplexSelector$1(t5);
  81321. }
  81322. },
  81323. visitPseudoSelector$1: function(pseudo) {
  81324. var t4, t5, t6,
  81325. t1 = pseudo.selector,
  81326. t2 = t1 == null,
  81327. t3 = !t2;
  81328. if (t3 && pseudo.name === "not" && t1.get$isInvisible())
  81329. return;
  81330. t4 = this._buffer;
  81331. t4.writeCharCode$1(58);
  81332. if (!pseudo.isSyntacticClass)
  81333. t4.writeCharCode$1(58);
  81334. t4.write$1(0, pseudo.name);
  81335. t5 = pseudo.argument;
  81336. t6 = t5 == null;
  81337. if (t6 && t2)
  81338. return;
  81339. t4.writeCharCode$1(40);
  81340. if (!t6) {
  81341. t4.write$1(0, t5);
  81342. if (t3)
  81343. t4.writeCharCode$1(32);
  81344. }
  81345. if (t3)
  81346. this.visitSelectorList$1(t1);
  81347. t4.writeCharCode$1(41);
  81348. },
  81349. _serialize0$_write$1: function(value) {
  81350. return this._buffer.forSpan$2(value.get$span(), new N._SerializeVisitor__write_closure0(this, value));
  81351. },
  81352. _serialize0$_visitChildren$1: function(children) {
  81353. var _this = this, t1 = {},
  81354. t2 = _this._buffer;
  81355. t2.writeCharCode$1(123);
  81356. if (children.every$1(children, _this.get$_serialize0$_isInvisible())) {
  81357. t2.writeCharCode$1(125);
  81358. return;
  81359. }
  81360. _this._serialize0$_writeLineFeed$0();
  81361. t1.previous = null;
  81362. ++_this._serialize0$_indentation;
  81363. new N._SerializeVisitor__visitChildren_closure0(t1, _this, children).call$0();
  81364. --_this._serialize0$_indentation;
  81365. t1 = t1.previous;
  81366. if ((type$.CssParentNode_2._is(t1) ? t1.get$isChildless() : !type$.CssComment_2._is(t1)) && _this._serialize0$_style !== C.OutputStyle_compressed0)
  81367. t2.writeCharCode$1(59);
  81368. _this._serialize0$_writeLineFeed$0();
  81369. _this._serialize0$_writeIndentation$0();
  81370. t2.writeCharCode$1(125);
  81371. },
  81372. _serialize0$_writeLineFeed$0: function() {
  81373. if (this._serialize0$_style !== C.OutputStyle_compressed0)
  81374. this._buffer.write$1(0, this._lineFeed.text);
  81375. },
  81376. _serialize0$_writeIndentation$0: function() {
  81377. var _this = this;
  81378. if (_this._serialize0$_style === C.OutputStyle_compressed0)
  81379. return;
  81380. _this._serialize0$_writeTimes$2(_this._serialize0$_indentCharacter, _this._serialize0$_indentation * _this._serialize0$_indentWidth);
  81381. },
  81382. _serialize0$_writeTimes$2: function(char, times) {
  81383. var t1, i;
  81384. for (t1 = this._buffer, i = 0; i < times; ++i)
  81385. t1.writeCharCode$1(char);
  81386. },
  81387. _serialize0$_writeBetween$1$3: function(iterable, text, callback) {
  81388. var t1, t2, first, value;
  81389. for (t1 = J.get$iterator$ax(iterable), t2 = this._buffer, first = true; t1.moveNext$0();) {
  81390. value = t1.get$current(t1);
  81391. if (first)
  81392. first = false;
  81393. else
  81394. t2.write$1(0, text);
  81395. callback.call$1(value);
  81396. }
  81397. },
  81398. _serialize0$_writeBetween$3: function(iterable, text, callback) {
  81399. return this._serialize0$_writeBetween$1$3(iterable, text, callback, type$.dynamic);
  81400. },
  81401. _serialize0$_isInvisible$1: function(node) {
  81402. if (this._inspect)
  81403. return false;
  81404. if (this._serialize0$_style === C.OutputStyle_compressed0 && type$.CssComment_2._is(node) && J._codeUnitAt$1$s(node.text, 2) !== 33)
  81405. return true;
  81406. if (type$.CssParentNode_2._is(node)) {
  81407. if (type$.CssAtRule_2._is(node))
  81408. return false;
  81409. if (type$.CssStyleRule_2._is(node) && node.selector.value.get$isInvisible())
  81410. return true;
  81411. return J.every$1$ax(node.get$children(), this.get$_serialize0$_isInvisible());
  81412. } else
  81413. return false;
  81414. }
  81415. };
  81416. N._SerializeVisitor_visitCssComment_closure0.prototype = {
  81417. call$0: function() {
  81418. var t2, t3, minimumIndentation,
  81419. t1 = this.$this;
  81420. if (t1._serialize0$_style === C.OutputStyle_compressed0 && J._codeUnitAt$1$s(this.node.text, 2) !== 33)
  81421. return;
  81422. t2 = this.node;
  81423. t3 = t2.text;
  81424. minimumIndentation = t1._serialize0$_minimumIndentation$1(t3);
  81425. if (minimumIndentation == null) {
  81426. t1._serialize0$_writeIndentation$0();
  81427. t1._buffer.write$1(0, t3);
  81428. return;
  81429. }
  81430. t2 = t2.span;
  81431. if (t2 != null) {
  81432. t2 = Y.FileLocation$_(t2.file, t2._file$_start);
  81433. minimumIndentation = Math.min(minimumIndentation, t2.file.getColumn$1(t2.offset));
  81434. }
  81435. t1._serialize0$_writeIndentation$0();
  81436. t1._serialize0$_writeWithIndent$2(t3, minimumIndentation);
  81437. },
  81438. $signature: 0
  81439. };
  81440. N._SerializeVisitor_visitCssAtRule_closure0.prototype = {
  81441. call$0: function() {
  81442. var t3,
  81443. t1 = this.$this,
  81444. t2 = t1._buffer;
  81445. t2.writeCharCode$1(64);
  81446. t3 = this.node;
  81447. t1._serialize0$_write$1(t3.name);
  81448. t3 = t3.value;
  81449. if (t3 != null) {
  81450. t2.writeCharCode$1(32);
  81451. t1._serialize0$_write$1(t3);
  81452. }
  81453. },
  81454. $signature: 0
  81455. };
  81456. N._SerializeVisitor_visitCssMediaRule_closure0.prototype = {
  81457. call$0: function() {
  81458. var t3, t4,
  81459. t1 = this.$this,
  81460. t2 = t1._buffer;
  81461. t2.write$1(0, "@media");
  81462. t3 = t1._serialize0$_style === C.OutputStyle_compressed0;
  81463. if (t3) {
  81464. t4 = C.JSArray_methods.get$first(this.node.queries);
  81465. t4 = !(t4.modifier == null && t4.type == null);
  81466. } else
  81467. t4 = true;
  81468. if (t4)
  81469. t2.writeCharCode$1(32);
  81470. t2 = t3 ? "," : ", ";
  81471. t1._serialize0$_writeBetween$3(this.node.queries, t2, t1.get$_serialize0$_visitMediaQuery());
  81472. },
  81473. $signature: 0
  81474. };
  81475. N._SerializeVisitor_visitCssImport_closure0.prototype = {
  81476. call$0: function() {
  81477. var t3, t4, t5, t6,
  81478. t1 = this.$this,
  81479. t2 = t1._buffer;
  81480. t2.write$1(0, "@import");
  81481. t3 = t1._serialize0$_style === C.OutputStyle_compressed0;
  81482. t4 = !t3;
  81483. if (t4)
  81484. t2.writeCharCode$1(32);
  81485. t5 = this.node;
  81486. t2.forSpan$2(t5.url.get$span(), new N._SerializeVisitor_visitCssImport__closure0(t1, t5));
  81487. t6 = t5.supports;
  81488. if (t6 != null) {
  81489. if (t4)
  81490. t2.writeCharCode$1(32);
  81491. t1._serialize0$_write$1(t6);
  81492. }
  81493. t5 = t5.media;
  81494. if (t5 != null) {
  81495. if (t4)
  81496. t2.writeCharCode$1(32);
  81497. t2 = t3 ? "," : ", ";
  81498. t1._serialize0$_writeBetween$3(t5, t2, t1.get$_serialize0$_visitMediaQuery());
  81499. }
  81500. },
  81501. $signature: 0
  81502. };
  81503. N._SerializeVisitor_visitCssImport__closure0.prototype = {
  81504. call$0: function() {
  81505. var t1 = this.node.url;
  81506. return this.$this._serialize0$_writeImportUrl$1(t1.get$value(t1));
  81507. },
  81508. $signature: 1
  81509. };
  81510. N._SerializeVisitor_visitCssKeyframeBlock_closure0.prototype = {
  81511. call$0: function() {
  81512. var t1 = this.$this,
  81513. t2 = t1._serialize0$_style === C.OutputStyle_compressed0 ? "," : ", ",
  81514. t3 = t1._buffer;
  81515. return t1._serialize0$_writeBetween$3(this.node.selector.value, t2, t3.get$write(t3));
  81516. },
  81517. $signature: 1
  81518. };
  81519. N._SerializeVisitor_visitCssStyleRule_closure0.prototype = {
  81520. call$0: function() {
  81521. var t1 = this.node.selector.value;
  81522. t1.toString;
  81523. return this.$this.visitSelectorList$1(t1);
  81524. },
  81525. $signature: 1
  81526. };
  81527. N._SerializeVisitor_visitCssSupportsRule_closure0.prototype = {
  81528. call$0: function() {
  81529. var t1 = this.$this,
  81530. t2 = t1._buffer;
  81531. t2.write$1(0, "@supports");
  81532. if (!(t1._serialize0$_style === C.OutputStyle_compressed0 && J.codeUnitAt$1$s(this.node.condition.value, 0) === 40))
  81533. t2.writeCharCode$1(32);
  81534. t1._serialize0$_write$1(this.node.condition);
  81535. },
  81536. $signature: 0
  81537. };
  81538. N._SerializeVisitor_visitCssDeclaration_closure1.prototype = {
  81539. call$0: function() {
  81540. var t1 = this.$this,
  81541. t2 = this.node;
  81542. if (t1._serialize0$_style === C.OutputStyle_compressed0)
  81543. t1._serialize0$_writeFoldedValue$1(t2);
  81544. else
  81545. t1._serialize0$_writeReindentedValue$1(t2);
  81546. },
  81547. $signature: 0
  81548. };
  81549. N._SerializeVisitor_visitCssDeclaration_closure2.prototype = {
  81550. call$0: function() {
  81551. return this.node.value.value.accept$1(this.$this);
  81552. },
  81553. $signature: 1
  81554. };
  81555. N._SerializeVisitor_visitList_closure2.prototype = {
  81556. call$1: function(element) {
  81557. return !element.get$isBlank();
  81558. }
  81559. };
  81560. N._SerializeVisitor_visitList_closure3.prototype = {
  81561. call$1: function(element) {
  81562. var t1 = this.$this,
  81563. needsParens = t1._serialize0$_elementNeedsParens$2(this.value.separator, element);
  81564. if (needsParens)
  81565. t1._buffer.writeCharCode$1(40);
  81566. element.accept$1(t1);
  81567. if (needsParens)
  81568. t1._buffer.writeCharCode$1(41);
  81569. }
  81570. };
  81571. N._SerializeVisitor_visitList_closure4.prototype = {
  81572. call$1: function(element) {
  81573. element.accept$1(this.$this);
  81574. }
  81575. };
  81576. N._SerializeVisitor_visitMap_closure0.prototype = {
  81577. call$1: function(key) {
  81578. var t1 = this.$this;
  81579. t1._serialize0$_writeMapElement$1(key);
  81580. t1._buffer.write$1(0, ": ");
  81581. t1._serialize0$_writeMapElement$1(this.map.contents.$index(0, key));
  81582. }
  81583. };
  81584. N._SerializeVisitor_visitSelectorList_closure0.prototype = {
  81585. call$1: function(complex) {
  81586. return !complex.get$isInvisible();
  81587. }
  81588. };
  81589. N._SerializeVisitor__write_closure0.prototype = {
  81590. call$0: function() {
  81591. var t1 = this.value;
  81592. return this.$this._buffer.write$1(0, t1.get$value(t1));
  81593. },
  81594. $signature: 1
  81595. };
  81596. N._SerializeVisitor__visitChildren_closure0.prototype = {
  81597. call$0: function() {
  81598. var t1, t2, t3, t4, t5, t6, t7, t8, i, child, t9;
  81599. for (t1 = this.children._collection$_source, t2 = J.getInterceptor$asx(t1), t3 = this._box_0, t4 = this.$this, t5 = type$.CssComment_2, t6 = type$.CssParentNode_2, t7 = t4._buffer, t8 = t4._lineFeed.text, i = 0; i < t2.get$length(t1); ++i) {
  81600. child = t2.elementAt$1(t1, i);
  81601. if (t4._serialize0$_isInvisible$1(child))
  81602. continue;
  81603. t9 = t3.previous;
  81604. if (t9 != null) {
  81605. if (t6._is(t9) ? t9.get$isChildless() : !t5._is(t9))
  81606. t7.writeCharCode$1(59);
  81607. t9 = t4._serialize0$_style !== C.OutputStyle_compressed0;
  81608. if (t9)
  81609. t7.write$1(0, t8);
  81610. if (t3.previous.get$isGroupEnd())
  81611. if (t9)
  81612. t7.write$1(0, t8);
  81613. }
  81614. t3.previous = child;
  81615. child.accept$1(t4);
  81616. }
  81617. },
  81618. $signature: 0
  81619. };
  81620. N.OutputStyle0.prototype = {
  81621. toString$0: function(_) {
  81622. return this._name;
  81623. }
  81624. };
  81625. N.LineFeed0.prototype = {
  81626. toString$0: function(_) {
  81627. return this.name;
  81628. }
  81629. };
  81630. N.SerializeResult0.prototype = {};
  81631. B.ShadowedModuleView0.prototype = {
  81632. get$url: function() {
  81633. return this._shadowed_view0$_inner.get$url();
  81634. },
  81635. get$upstream: function() {
  81636. return this._shadowed_view0$_inner.get$upstream();
  81637. },
  81638. get$extender: function() {
  81639. return this._shadowed_view0$_inner.get$extender();
  81640. },
  81641. get$css: function(_) {
  81642. var t1 = this._shadowed_view0$_inner;
  81643. return t1.get$css(t1);
  81644. },
  81645. get$transitivelyContainsCss: function() {
  81646. return this._shadowed_view0$_inner.get$transitivelyContainsCss();
  81647. },
  81648. get$transitivelyContainsExtensions: function() {
  81649. return this._shadowed_view0$_inner.get$transitivelyContainsExtensions();
  81650. },
  81651. setVariable$3: function($name, value, nodeWithSpan) {
  81652. if (!this.variables.containsKey$1($name))
  81653. throw H.wrapException(E.SassScriptException$0("Undefined variable."));
  81654. else
  81655. return this._shadowed_view0$_inner.setVariable$3($name, value, nodeWithSpan);
  81656. },
  81657. variableIdentity$1: function($name) {
  81658. return this._shadowed_view0$_inner.variableIdentity$1($name);
  81659. },
  81660. $eq: function(_, other) {
  81661. var _this = this;
  81662. if (other == null)
  81663. return false;
  81664. return other instanceof B.ShadowedModuleView0 && _this._shadowed_view0$_inner.$eq(0, other._shadowed_view0$_inner) && C.C_IterableEquality.equals$2(_this.variables.get$keys(), other.variables.get$keys()) && C.C_IterableEquality.equals$2(_this.functions.get$keys(), other.functions.get$keys()) && C.C_IterableEquality.equals$2(_this.mixins.get$keys(), other.mixins.get$keys());
  81665. },
  81666. get$hashCode: function(_) {
  81667. var t1 = this._shadowed_view0$_inner;
  81668. return t1.get$hashCode(t1);
  81669. },
  81670. cloneCss$0: function() {
  81671. var _this = this;
  81672. return new B.ShadowedModuleView0(_this._shadowed_view0$_inner.cloneCss$0(), _this.variables, _this.variableNodes, _this.functions, _this.mixins, _this.$ti);
  81673. },
  81674. toString$0: function(_) {
  81675. return "shadowed " + this._shadowed_view0$_inner.toString$0(0);
  81676. },
  81677. $isModule0: 1,
  81678. get$variables: function() {
  81679. return this.variables;
  81680. },
  81681. get$variableNodes: function() {
  81682. return this.variableNodes;
  81683. },
  81684. get$functions: function(receiver) {
  81685. return this.functions;
  81686. },
  81687. get$mixins: function() {
  81688. return this.mixins;
  81689. }
  81690. };
  81691. B.SilentComment0.prototype = {
  81692. accept$1$1: function(visitor) {
  81693. return visitor.visitSilentComment$1(this);
  81694. },
  81695. accept$1: function(visitor) {
  81696. return this.accept$1$1(visitor, type$.dynamic);
  81697. },
  81698. toString$0: function(_) {
  81699. return this.text;
  81700. },
  81701. $isAstNode0: 1,
  81702. $isStatement0: 1,
  81703. get$span: function() {
  81704. return this.span;
  81705. }
  81706. };
  81707. M.SimpleSelector0.prototype = {
  81708. get$minSpecificity: function() {
  81709. return 1000;
  81710. },
  81711. get$maxSpecificity: function() {
  81712. return this.get$minSpecificity();
  81713. },
  81714. addSuffix$1: function(suffix) {
  81715. return H.throwExpression(E.SassScriptException$0('Invalid parent selector "' + this.toString$0(0) + '"'));
  81716. },
  81717. unify$1: function(compound) {
  81718. var result, t1, addedThis, _i, simple, _this = this;
  81719. if (compound.length === 1 && C.JSArray_methods.get$first(compound) instanceof N.UniversalSelector0)
  81720. return C.JSArray_methods.get$first(compound).unify$1(H.setRuntimeTypeInfo([_this], type$.JSArray_SimpleSelector_2));
  81721. if (C.JSArray_methods.contains$1(compound, _this))
  81722. return compound;
  81723. result = H.setRuntimeTypeInfo([], type$.JSArray_SimpleSelector_2);
  81724. for (t1 = compound.length, addedThis = false, _i = 0; _i < compound.length; compound.length === t1 || (0, H.throwConcurrentModificationError)(compound), ++_i) {
  81725. simple = compound[_i];
  81726. if (!addedThis && simple instanceof D.PseudoSelector0) {
  81727. result.push(_this);
  81728. addedThis = true;
  81729. }
  81730. result.push(simple);
  81731. }
  81732. if (!addedThis)
  81733. result.push(_this);
  81734. return result;
  81735. }
  81736. };
  81737. D.SourceMapBuffer.prototype = {
  81738. get$sourceFiles: function() {
  81739. var t1 = type$.SourceFile;
  81740. return new P.UnmodifiableMapView(Y.mapMap(this._source_map_buffer$_sourceFiles, new D.SourceMapBuffer_sourceFiles_closure0(), null, type$.Uri, t1, type$.String, t1), type$.UnmodifiableMapView_String_SourceFile);
  81741. },
  81742. get$_targetLocation: function() {
  81743. var t1 = this._source_map_buffer$_buffer._contents,
  81744. t2 = this._line;
  81745. return V.SourceLocation$(t1.length, this._column, t2, null);
  81746. },
  81747. get$length: function(_) {
  81748. return this._source_map_buffer$_buffer._contents.length;
  81749. },
  81750. forSpan$1$2: function(span, callback) {
  81751. var t1, _this = this,
  81752. wasInSpan = _this._inSpan;
  81753. _this._inSpan = true;
  81754. _this._source_map_buffer$_addEntry$2(Y.FileLocation$_(span.file, span._file$_start), _this.get$_targetLocation());
  81755. try {
  81756. t1 = callback.call$0();
  81757. return t1;
  81758. } finally {
  81759. _this._inSpan = wasInSpan;
  81760. }
  81761. },
  81762. forSpan$2: function(span, callback) {
  81763. return this.forSpan$1$2(span, callback, type$.dynamic);
  81764. },
  81765. _source_map_buffer$_addEntry$2: function(source, target) {
  81766. var entry, t2,
  81767. t1 = this._entries;
  81768. if (t1.length !== 0) {
  81769. entry = C.JSArray_methods.get$last(t1);
  81770. t2 = entry.source;
  81771. if (t2.file.getLine$1(t2.offset) == source.file.getLine$1(source.offset) && entry.target.line === target.line)
  81772. return;
  81773. if (entry.target.offset === target.offset)
  81774. return;
  81775. }
  81776. this._source_map_buffer$_sourceFiles.putIfAbsent$2(source.file.url, new D.SourceMapBuffer__addEntry_closure0(source));
  81777. t1.push(new L.Entry(source, target, null));
  81778. },
  81779. write$1: function(_, object) {
  81780. var t1, i,
  81781. string = J.toString$0$(object);
  81782. this._source_map_buffer$_buffer._contents += H.S(string);
  81783. for (t1 = string.length, i = 0; i < t1; ++i)
  81784. if (C.JSString_methods._codeUnitAt$1(string, i) === 10)
  81785. this._writeLine$0();
  81786. else
  81787. ++this._column;
  81788. },
  81789. writeCharCode$1: function(charCode) {
  81790. this._source_map_buffer$_buffer._contents += H.Primitives_stringFromCharCode(charCode);
  81791. if (charCode === 10)
  81792. this._writeLine$0();
  81793. else
  81794. ++this._column;
  81795. },
  81796. _writeLine$0: function() {
  81797. var _this = this,
  81798. t1 = _this._entries;
  81799. if (C.JSArray_methods.get$last(t1).target.line === _this._line && C.JSArray_methods.get$last(t1).target.column === _this._column)
  81800. t1.pop();
  81801. ++_this._line;
  81802. _this._column = 0;
  81803. if (_this._inSpan)
  81804. t1.push(new L.Entry(C.JSArray_methods.get$last(t1).source, _this.get$_targetLocation(), null));
  81805. },
  81806. toString$0: function(_) {
  81807. var t1 = this._source_map_buffer$_buffer._contents;
  81808. return t1.charCodeAt(0) == 0 ? t1 : t1;
  81809. },
  81810. buildSourceMap$1$prefix: function(prefix) {
  81811. var i, t2, prefixColumn, _box_0 = {},
  81812. t1 = prefix.length;
  81813. if (t1 === 0)
  81814. return T.SingleMapping_SingleMapping$fromEntries(this._entries);
  81815. _box_0.prefixColumn = _box_0.prefixLines = 0;
  81816. for (i = 0, t2 = 0; i < t1; ++i)
  81817. if (C.JSString_methods._codeUnitAt$1(prefix, i) === 10) {
  81818. ++_box_0.prefixLines;
  81819. _box_0.prefixColumn = 0;
  81820. t2 = 0;
  81821. } else {
  81822. prefixColumn = t2 + 1;
  81823. _box_0.prefixColumn = prefixColumn;
  81824. t2 = prefixColumn;
  81825. }
  81826. t2 = this._entries;
  81827. return T.SingleMapping_SingleMapping$fromEntries(new H.MappedListIterable(t2, new D.SourceMapBuffer_buildSourceMap_closure0(_box_0, t1), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Entry>")));
  81828. },
  81829. $isStringBuffer: 1
  81830. };
  81831. D.SourceMapBuffer_sourceFiles_closure0.prototype = {
  81832. call$2: function(url, _) {
  81833. return J.toString$0$(url);
  81834. },
  81835. $signature: 70
  81836. };
  81837. D.SourceMapBuffer__addEntry_closure0.prototype = {
  81838. call$0: function() {
  81839. return this.source.file;
  81840. },
  81841. $signature: 47
  81842. };
  81843. D.SourceMapBuffer_buildSourceMap_closure0.prototype = {
  81844. call$1: function(entry) {
  81845. var t1 = entry.source,
  81846. t2 = entry.target,
  81847. t3 = t2.line,
  81848. t4 = this._box_0,
  81849. t5 = t4.prefixLines;
  81850. t4 = t3 === 0 ? t4.prefixColumn : 0;
  81851. return new L.Entry(t1, V.SourceLocation$(t2.offset + this.prefixLength, t2.column + t4, t3 + t5, null), entry.identifierName);
  81852. }
  81853. };
  81854. O.Statement0.prototype = {$isAstNode0: 1};
  81855. Q.StaticImport0.prototype = {
  81856. toString$0: function(_) {
  81857. var t1 = this.url.toString$0(0),
  81858. t2 = this.supports;
  81859. if (t2 != null)
  81860. t1 += " supports(" + t2.toString$0(0) + ")";
  81861. t2 = this.media;
  81862. if (t2 != null)
  81863. t1 += " " + t2.toString$0(0);
  81864. t1 += H.Primitives_stringFromCharCode(59);
  81865. return t1.charCodeAt(0) == 0 ? t1 : t1;
  81866. },
  81867. $isImport0: 1,
  81868. $isAstNode0: 1,
  81869. get$span: function() {
  81870. return this.span;
  81871. }
  81872. };
  81873. S.StderrLogger0.prototype = {
  81874. warn$4$deprecation$span$trace: function(message, deprecation, span, trace) {
  81875. var t1;
  81876. if (deprecation)
  81877. J.write$1$x($.$get$stderr0()._node1$_stderr, "DEPRECATION ");
  81878. J.write$1$x($.$get$stderr0()._node1$_stderr, "WARNING");
  81879. if (span == null) {
  81880. t1 = $.$get$stderr0();
  81881. t1.writeln$1(": " + H.S(message));
  81882. } else if (trace != null) {
  81883. t1 = $.$get$stderr0();
  81884. t1.writeln$1(": " + H.S(message) + "\n\n" + span.highlight$1$color(false));
  81885. } else {
  81886. t1 = $.$get$stderr0();
  81887. t1.writeln$1(" on " + span.message$2$color(0, C.JSString_methods.$add("\n", message), false));
  81888. }
  81889. if (trace != null)
  81890. t1.writeln$1(B.indent0(C.JSString_methods.trimRight$0(trace.toString$0(0)), 4));
  81891. t1.writeln$0();
  81892. },
  81893. warn$2$deprecation: function(message, deprecation) {
  81894. return this.warn$4$deprecation$span$trace(message, deprecation, null, null);
  81895. },
  81896. warn$2$span: function(message, span) {
  81897. return this.warn$4$deprecation$span$trace(message, false, span, null);
  81898. },
  81899. warn$3$deprecation$span: function(message, deprecation, span) {
  81900. return this.warn$4$deprecation$span$trace(message, deprecation, span, null);
  81901. },
  81902. warn$2$trace: function(message, trace) {
  81903. return this.warn$4$deprecation$span$trace(message, false, null, trace);
  81904. },
  81905. debug$2: function(message, span) {
  81906. var url, t3, t4,
  81907. t1 = span.file,
  81908. t2 = span._file$_start;
  81909. if (Y.FileLocation$_(t1, t2).file.url == null)
  81910. url = "-";
  81911. else {
  81912. t3 = Y.FileLocation$_(t1, t2);
  81913. url = $.$get$context().prettyUri$1(t3.file.url);
  81914. }
  81915. t3 = $.$get$stderr0();
  81916. t4 = H.S(url) + ":";
  81917. t2 = Y.FileLocation$_(t1, t2);
  81918. t2 = t4 + (t2.file.getLine$1(t2.offset) + 1) + " ";
  81919. t4 = t3._node1$_stderr;
  81920. J.write$1$x(t4, t2);
  81921. J.write$1$x(t4, "DEBUG");
  81922. t3.writeln$1(": " + H.S(message));
  81923. }
  81924. };
  81925. D.StringExpression0.prototype = {
  81926. get$span: function() {
  81927. return this.text.span;
  81928. },
  81929. accept$1$1: function(visitor) {
  81930. return visitor.visitStringExpression$1(this);
  81931. },
  81932. accept$1: function(visitor) {
  81933. return this.accept$1$1(visitor, type$.dynamic);
  81934. },
  81935. asInterpolation$1$static: function($static) {
  81936. var quote, t1, t2, buffer, t3, t4, t5, t6, _i, value, t7, t8, i, codeUnit, next, t9, _this = this;
  81937. if (!_this.hasQuotes)
  81938. return _this.text;
  81939. quote = _this._string0$_bestQuote$0();
  81940. t1 = new P.StringBuffer("");
  81941. t2 = [];
  81942. buffer = new Z.InterpolationBuffer0(t1, t2);
  81943. t1._contents += H.Primitives_stringFromCharCode(quote);
  81944. for (t3 = _this.text, t4 = t3.contents, t5 = t4.length, t6 = type$.Expression_2, _i = 0; _i < t5; ++_i) {
  81945. value = t4[_i];
  81946. if (t6._is(value)) {
  81947. buffer._interpolation_buffer0$_flushText$0();
  81948. t2.push(value);
  81949. } else if (typeof value == "string")
  81950. for (t7 = value.length, t8 = t7 - 1, i = 0; i < t7; ++i) {
  81951. codeUnit = C.JSString_methods._codeUnitAt$1(value, i);
  81952. if (codeUnit === 10 || codeUnit === 13 || codeUnit === 12) {
  81953. t1._contents += H.Primitives_stringFromCharCode(92);
  81954. t1._contents += H.Primitives_stringFromCharCode(97);
  81955. if (i !== t8) {
  81956. next = C.JSString_methods._codeUnitAt$1(value, i + 1);
  81957. if (next === 32 || next === 9 || next === 10 || next === 13 || next === 12 || T.isHex0(next))
  81958. t1._contents += H.Primitives_stringFromCharCode(32);
  81959. }
  81960. } else {
  81961. if (codeUnit !== quote)
  81962. if (codeUnit !== 92)
  81963. t9 = $static && codeUnit === 35 && i < t8 && C.JSString_methods._codeUnitAt$1(value, i + 1) === 123;
  81964. else
  81965. t9 = true;
  81966. else
  81967. t9 = true;
  81968. if (t9)
  81969. t1._contents += H.Primitives_stringFromCharCode(92);
  81970. t1._contents += H.Primitives_stringFromCharCode(codeUnit);
  81971. }
  81972. }
  81973. }
  81974. t1._contents += H.Primitives_stringFromCharCode(quote);
  81975. return buffer.interpolation$1(t3.span);
  81976. },
  81977. asInterpolation$0: function() {
  81978. return this.asInterpolation$1$static(false);
  81979. },
  81980. _string0$_bestQuote$0: function() {
  81981. var t1, t2, containsDoubleQuote, _i, value, t3, i, codeUnit;
  81982. for (t1 = this.text.contents, t2 = t1.length, containsDoubleQuote = false, _i = 0; _i < t2; ++_i) {
  81983. value = t1[_i];
  81984. if (typeof value == "string")
  81985. for (t3 = value.length, i = 0; i < t3; ++i) {
  81986. codeUnit = C.JSString_methods._codeUnitAt$1(value, i);
  81987. if (codeUnit === 39)
  81988. return 34;
  81989. if (codeUnit === 34)
  81990. containsDoubleQuote = true;
  81991. }
  81992. }
  81993. return containsDoubleQuote ? 39 : 34;
  81994. },
  81995. toString$0: function(_) {
  81996. return this.asInterpolation$0().toString$0(0);
  81997. },
  81998. $isExpression0: 1,
  81999. $isAstNode0: 1
  82000. };
  82001. D.closure116.prototype = {
  82002. call$1: function($arguments) {
  82003. var string = J.$index$asx($arguments, 0).assertString$1("string");
  82004. if (!string.hasQuotes)
  82005. return string;
  82006. return new D.SassString0(string.text, false);
  82007. },
  82008. $signature: 11
  82009. };
  82010. D.closure115.prototype = {
  82011. call$1: function($arguments) {
  82012. var string = J.$index$asx($arguments, 0).assertString$1("string");
  82013. if (string.hasQuotes)
  82014. return string;
  82015. return new D.SassString0(string.text, true);
  82016. },
  82017. $signature: 11
  82018. };
  82019. D.closure111.prototype = {
  82020. call$1: function($arguments) {
  82021. var t1 = J.$index$asx($arguments, 0).assertString$1("string").get$sassLength();
  82022. return new T.SassNumber0(t1, C.List_empty, C.List_empty, null);
  82023. },
  82024. $signature: 6
  82025. };
  82026. D.closure110.prototype = {
  82027. call$1: function($arguments) {
  82028. var indexInt, codeUnitIndex, _s5_ = "index",
  82029. t1 = J.getInterceptor$asx($arguments),
  82030. string = t1.$index($arguments, 0).assertString$1("string"),
  82031. insert = t1.$index($arguments, 1).assertString$1("insert"),
  82032. index = t1.$index($arguments, 2).assertNumber$1(_s5_);
  82033. index.assertNoUnits$1(_s5_);
  82034. indexInt = index.assertInt$1(_s5_);
  82035. if (indexInt < 0)
  82036. indexInt = string.get$sassLength() + indexInt + 2;
  82037. t1 = string.text;
  82038. codeUnitIndex = B.codepointIndexToCodeUnitIndex0(t1, D._codepointForIndex0(indexInt, string.get$sassLength(), false));
  82039. return new D.SassString0(J.replaceRange$3$asx(t1, codeUnitIndex, codeUnitIndex, insert.text), string.hasQuotes);
  82040. },
  82041. $signature: 11
  82042. };
  82043. D.closure109.prototype = {
  82044. call$1: function($arguments) {
  82045. var codepointIndex,
  82046. t1 = J.getInterceptor$asx($arguments),
  82047. t2 = t1.$index($arguments, 0).assertString$1("string").text,
  82048. codeUnitIndex = J.indexOf$1$asx(t2, t1.$index($arguments, 1).assertString$1("substring").text);
  82049. if (codeUnitIndex === -1)
  82050. return C.C_SassNull;
  82051. codepointIndex = B.codeUnitIndexToCodepointIndex0(t2, codeUnitIndex);
  82052. return new T.SassNumber0(codepointIndex + 1, C.List_empty, C.List_empty, null);
  82053. },
  82054. $signature: 3
  82055. };
  82056. D.closure108.prototype = {
  82057. call$1: function($arguments) {
  82058. var lengthInCodepoints, endInt, startCodepoint, endCodepoint,
  82059. t1 = J.getInterceptor$asx($arguments),
  82060. string = t1.$index($arguments, 0).assertString$1("string"),
  82061. start = t1.$index($arguments, 1).assertNumber$1("start-at"),
  82062. end = t1.$index($arguments, 2).assertNumber$1("end-at");
  82063. start.assertNoUnits$1("start");
  82064. end.assertNoUnits$1("end");
  82065. lengthInCodepoints = string.get$sassLength();
  82066. endInt = end.assertInt$0();
  82067. if (endInt === 0)
  82068. return string.hasQuotes ? $.$get$_emptyQuoted0() : $.$get$_emptyUnquoted0();
  82069. startCodepoint = D._codepointForIndex0(start.assertInt$0(), lengthInCodepoints, false);
  82070. endCodepoint = D._codepointForIndex0(endInt, lengthInCodepoints, true);
  82071. if (endCodepoint === lengthInCodepoints)
  82072. --endCodepoint;
  82073. if (endCodepoint < startCodepoint)
  82074. return string.hasQuotes ? $.$get$_emptyQuoted0() : $.$get$_emptyUnquoted0();
  82075. t1 = string.text;
  82076. return new D.SassString0(J.substring$2$s(t1, B.codepointIndexToCodeUnitIndex0(t1, startCodepoint), B.codepointIndexToCodeUnitIndex0(t1, endCodepoint + 1)), string.hasQuotes);
  82077. },
  82078. $signature: 11
  82079. };
  82080. D.closure114.prototype = {
  82081. call$1: function($arguments) {
  82082. var t1, t2, t3, i, t4, t5,
  82083. string = J.$index$asx($arguments, 0).assertString$1("string");
  82084. for (t1 = string.text, t2 = t1.length, t3 = J.getInterceptor$s(t1), i = 0, t4 = ""; i < t2; ++i) {
  82085. t5 = t3._codeUnitAt$1(t1, i);
  82086. t4 += H.Primitives_stringFromCharCode(t5 >= 97 && t5 <= 122 ? t5 & 4294967263 : t5);
  82087. }
  82088. return new D.SassString0(t4.charCodeAt(0) == 0 ? t4 : t4, string.hasQuotes);
  82089. },
  82090. $signature: 11
  82091. };
  82092. D.closure113.prototype = {
  82093. call$1: function($arguments) {
  82094. var t1, t2, t3, i, t4, t5,
  82095. string = J.$index$asx($arguments, 0).assertString$1("string");
  82096. for (t1 = string.text, t2 = t1.length, t3 = J.getInterceptor$s(t1), i = 0, t4 = ""; i < t2; ++i) {
  82097. t5 = t3._codeUnitAt$1(t1, i);
  82098. t4 += H.Primitives_stringFromCharCode(t5 >= 65 && t5 <= 90 ? t5 | 32 : t5);
  82099. }
  82100. return new D.SassString0(t4.charCodeAt(0) == 0 ? t4 : t4, string.hasQuotes);
  82101. },
  82102. $signature: 11
  82103. };
  82104. D.closure112.prototype = {
  82105. call$1: function($arguments) {
  82106. var t1 = $.$get$_previousUniqueId0() + ($.$get$_random1().nextInt$1(36) + 1);
  82107. $._previousUniqueId0 = t1;
  82108. if (t1 > Math.pow(36, 6))
  82109. $._previousUniqueId0 = C.JSInt_methods.$mod($.$get$_previousUniqueId0(), H._asIntNullable(Math.pow(36, 6)));
  82110. return new D.SassString0("u" + C.JSString_methods.padLeft$2(J.toRadixString$1$n($.$get$_previousUniqueId0(), 36), 6, "0"), false);
  82111. },
  82112. $signature: 11
  82113. };
  82114. D._NodeSassString.prototype = {};
  82115. D.closure214.prototype = {
  82116. call$3: function(thisArg, value, dartValue) {
  82117. J.set$dartValue$x(thisArg, dartValue == null ? new D.SassString0(value, false) : dartValue);
  82118. },
  82119. call$2: function(thisArg, value) {
  82120. return this.call$3(thisArg, value, null);
  82121. },
  82122. "call*": "call$3",
  82123. $requiredArgCount: 2,
  82124. $defaultValues: function() {
  82125. return [null];
  82126. }
  82127. };
  82128. D.closure215.prototype = {
  82129. call$1: function(thisArg) {
  82130. return J.get$dartValue$x(thisArg).text;
  82131. }
  82132. };
  82133. D.closure216.prototype = {
  82134. call$2: function(thisArg, value) {
  82135. J.set$dartValue$x(thisArg, new D.SassString0(value, false));
  82136. },
  82137. "call*": "call$2",
  82138. $requiredArgCount: 2
  82139. };
  82140. D.closure217.prototype = {
  82141. call$1: function(thisArg) {
  82142. return J.toString$0$(J.get$dartValue$x(thisArg));
  82143. }
  82144. };
  82145. D.SassString0.prototype = {
  82146. get$sassLength: function() {
  82147. var t1 = this._string$_sassLength;
  82148. if (t1 == null) {
  82149. t1 = this.text;
  82150. t1.toString;
  82151. t1 = new P.Runes(t1);
  82152. t1 = this._string$_sassLength = t1.get$length(t1);
  82153. }
  82154. return t1;
  82155. },
  82156. get$isSpecialNumber: function() {
  82157. var t1, t2;
  82158. if (this.hasQuotes)
  82159. return false;
  82160. t1 = this.text;
  82161. if (t1.length < 6)
  82162. return false;
  82163. t2 = J.getInterceptor$s(t1)._codeUnitAt$1(t1, 0) | 32;
  82164. if (t2 === 99) {
  82165. if ((C.JSString_methods._codeUnitAt$1(t1, 1) | 32) !== 97)
  82166. return false;
  82167. if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 108)
  82168. return false;
  82169. if ((C.JSString_methods._codeUnitAt$1(t1, 3) | 32) !== 99)
  82170. return false;
  82171. return C.JSString_methods._codeUnitAt$1(t1, 4) === 40;
  82172. } else if (t2 === 118) {
  82173. if ((C.JSString_methods._codeUnitAt$1(t1, 1) | 32) !== 97)
  82174. return false;
  82175. if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 114)
  82176. return false;
  82177. return C.JSString_methods._codeUnitAt$1(t1, 3) === 40;
  82178. } else if (t2 === 101) {
  82179. if ((C.JSString_methods._codeUnitAt$1(t1, 1) | 32) !== 110)
  82180. return false;
  82181. if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 118)
  82182. return false;
  82183. return C.JSString_methods._codeUnitAt$1(t1, 3) === 40;
  82184. } else if (t2 === 109) {
  82185. t2 = C.JSString_methods._codeUnitAt$1(t1, 1) | 32;
  82186. if (t2 === 97) {
  82187. if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 120)
  82188. return false;
  82189. return C.JSString_methods._codeUnitAt$1(t1, 3) === 40;
  82190. } else if (t2 === 105) {
  82191. if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 110)
  82192. return false;
  82193. return C.JSString_methods._codeUnitAt$1(t1, 3) === 40;
  82194. } else
  82195. return false;
  82196. } else
  82197. return false;
  82198. },
  82199. get$isVar: function() {
  82200. if (this.hasQuotes)
  82201. return false;
  82202. var t1 = this.text;
  82203. if (t1.length < 8)
  82204. return false;
  82205. return (J.getInterceptor$s(t1)._codeUnitAt$1(t1, 0) | 32) === 118 && (C.JSString_methods._codeUnitAt$1(t1, 1) | 32) === 97 && (C.JSString_methods._codeUnitAt$1(t1, 2) | 32) === 114 && C.JSString_methods._codeUnitAt$1(t1, 3) === 40;
  82206. },
  82207. get$isBlank: function() {
  82208. return !this.hasQuotes && this.text.length === 0;
  82209. },
  82210. accept$1$1: function(visitor) {
  82211. var t1 = visitor._serialize0$_quote && this.hasQuotes,
  82212. t2 = this.text;
  82213. if (t1)
  82214. visitor._serialize0$_visitQuotedString$1(t2);
  82215. else
  82216. visitor._serialize0$_visitUnquotedString$1(t2);
  82217. return null;
  82218. },
  82219. accept$1: function(visitor) {
  82220. return this.accept$1$1(visitor, type$.dynamic);
  82221. },
  82222. assertString$1: function($name) {
  82223. return this;
  82224. },
  82225. plus$1: function(other) {
  82226. var t1 = this.text,
  82227. t2 = this.hasQuotes;
  82228. if (other instanceof D.SassString0)
  82229. return new D.SassString0(J.$add$ansx(t1, other.text), t2);
  82230. else {
  82231. other.toString;
  82232. return new D.SassString0(J.$add$ansx(t1, N.serializeValue(other, false, true)), t2);
  82233. }
  82234. },
  82235. $eq: function(_, other) {
  82236. if (other == null)
  82237. return false;
  82238. return other instanceof D.SassString0 && this.text == other.text;
  82239. },
  82240. get$hashCode: function(_) {
  82241. return J.get$hashCode$(this.text);
  82242. }
  82243. };
  82244. X.ModifiableCssStyleRule0.prototype = {
  82245. accept$1$1: function(visitor) {
  82246. return visitor.visitCssStyleRule$1(this);
  82247. },
  82248. accept$1: function(visitor) {
  82249. return this.accept$1$1(visitor, type$.dynamic);
  82250. },
  82251. copyWithoutChildren$0: function() {
  82252. return X.ModifiableCssStyleRule$0(this.selector, this.span, this.originalSelector);
  82253. },
  82254. $isCssStyleRule0: 1,
  82255. get$span: function() {
  82256. return this.span;
  82257. }
  82258. };
  82259. X.StyleRule0.prototype = {
  82260. accept$1$1: function(visitor) {
  82261. return visitor.visitStyleRule$1(this);
  82262. },
  82263. accept$1: function(visitor) {
  82264. return this.accept$1$1(visitor, type$.dynamic);
  82265. },
  82266. toString$0: function(_) {
  82267. var t1 = this.children;
  82268. return this.selector.toString$0(0) + " {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
  82269. },
  82270. get$span: function() {
  82271. return this.span;
  82272. }
  82273. };
  82274. V.CssStylesheet0.prototype = {
  82275. get$isGroupEnd: function() {
  82276. return false;
  82277. },
  82278. get$isChildless: function() {
  82279. return false;
  82280. },
  82281. accept$1$1: function(visitor) {
  82282. return visitor.visitCssStylesheet$1(this);
  82283. },
  82284. accept$1: function(visitor) {
  82285. return this.accept$1$1(visitor, type$.dynamic);
  82286. },
  82287. get$children: function() {
  82288. return this.children;
  82289. },
  82290. get$span: function() {
  82291. return this.span;
  82292. }
  82293. };
  82294. V.ModifiableCssStylesheet0.prototype = {
  82295. accept$1$1: function(visitor) {
  82296. return visitor.visitCssStylesheet$1(this);
  82297. },
  82298. accept$1: function(visitor) {
  82299. return this.accept$1$1(visitor, type$.dynamic);
  82300. },
  82301. copyWithoutChildren$0: function() {
  82302. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
  82303. return new V.ModifiableCssStylesheet0(this.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1);
  82304. },
  82305. $isCssStylesheet0: 1,
  82306. get$span: function() {
  82307. return this.span;
  82308. }
  82309. };
  82310. V.StylesheetParser0.prototype = {
  82311. parse$0: function() {
  82312. return this.wrapSpanFormatException$1(new V.StylesheetParser_parse_closure0(this));
  82313. },
  82314. parseArgumentDeclaration$0: function() {
  82315. return this._stylesheet0$_parseSingleProduction$1$1(new V.StylesheetParser_parseArgumentDeclaration_closure0(this), type$.ArgumentDeclaration_2);
  82316. },
  82317. _stylesheet0$_parseSingleProduction$1$1: function(production, $T) {
  82318. return this.wrapSpanFormatException$1(new V.StylesheetParser__parseSingleProduction_closure0(this, production, $T));
  82319. },
  82320. parseSignature$0: function() {
  82321. return this.wrapSpanFormatException$1(new V.StylesheetParser_parseSignature_closure(this));
  82322. },
  82323. _stylesheet0$_statement$1$root: function(root) {
  82324. var t2, _this = this,
  82325. t1 = _this.scanner;
  82326. switch (t1.peekChar$0()) {
  82327. case 64:
  82328. return _this.atRule$2$root(new V.StylesheetParser__statement_closure0(_this), root);
  82329. case 43:
  82330. if (!_this.get$indented() || !_this.lookingAtIdentifier$1(1))
  82331. return _this._stylesheet0$_styleRule$0();
  82332. _this._stylesheet0$_isUseAllowed = false;
  82333. t2 = t1._string_scanner$_position;
  82334. t1.readChar$0();
  82335. return _this._stylesheet0$_includeRule$1(new S._SpanScannerState(t1, t2));
  82336. case 61:
  82337. if (!_this.get$indented())
  82338. return _this._stylesheet0$_styleRule$0();
  82339. _this._stylesheet0$_isUseAllowed = false;
  82340. t2 = t1._string_scanner$_position;
  82341. t1.readChar$0();
  82342. _this.whitespace$0();
  82343. return _this._stylesheet0$_mixinRule$1(new S._SpanScannerState(t1, t2));
  82344. case 125:
  82345. t1.error$2$length('unmatched "}".', 1);
  82346. break;
  82347. default:
  82348. return _this._stylesheet0$_inStyleRule || _this._stylesheet0$_inUnknownAtRule || _this._stylesheet0$_inMixin || _this._stylesheet0$_inContentBlock ? _this._stylesheet0$_declarationOrStyleRule$0() : _this._stylesheet0$_variableDeclarationOrStyleRule$0();
  82349. }
  82350. },
  82351. _stylesheet0$_statement$0: function() {
  82352. return this._stylesheet0$_statement$1$root(false);
  82353. },
  82354. variableDeclarationWithoutNamespace$2: function(namespace, start) {
  82355. var precedingComment, t1, $name, t2, value, flagStart, guarded, global, flag, endPosition, declaration, _this = this, _box_0 = {};
  82356. _box_0.start = start;
  82357. precedingComment = _this.lastSilentComment;
  82358. _this.lastSilentComment = null;
  82359. if (start == null) {
  82360. t1 = _this.scanner;
  82361. _box_0.start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  82362. }
  82363. $name = _this.variableName$0();
  82364. t1 = namespace != null;
  82365. if (t1)
  82366. _this._stylesheet0$_assertPublic$2($name, new V.StylesheetParser_variableDeclarationWithoutNamespace_closure1(_box_0, _this));
  82367. if (_this.get$plainCss())
  82368. _this.error$2("Sass variables aren't allowed in plain CSS.", _this.scanner.spanFrom$1(_box_0.start));
  82369. _this.whitespace$0();
  82370. t2 = _this.scanner;
  82371. t2.expectChar$1(58);
  82372. _this.whitespace$0();
  82373. value = _this.expression$0();
  82374. flagStart = new S._SpanScannerState(t2, t2._string_scanner$_position);
  82375. for (guarded = false, global = false; t2.scanChar$1(33);) {
  82376. flag = _this.identifier$0();
  82377. if (flag === "default")
  82378. guarded = true;
  82379. else if (flag === "global") {
  82380. if (t1) {
  82381. endPosition = t2._string_scanner$_position;
  82382. _this.error$2("!global isn't allowed for variables in other modules.", Y._FileSpan$(t2._sourceFile, flagStart.position, endPosition));
  82383. }
  82384. global = true;
  82385. } else {
  82386. endPosition = t2._string_scanner$_position;
  82387. _this.error$2("Invalid flag name.", Y._FileSpan$(t2._sourceFile, flagStart.position, endPosition));
  82388. }
  82389. _this.whitespace$0();
  82390. flagStart = new S._SpanScannerState(t2, t2._string_scanner$_position);
  82391. }
  82392. _this.expectStatementSeparator$1("variable declaration");
  82393. declaration = Z.VariableDeclaration$0($name, value, t2.spanFrom$1(_box_0.start), precedingComment, global, guarded, namespace);
  82394. if (global)
  82395. _this._stylesheet0$_globalVariables.putIfAbsent$2($name, new V.StylesheetParser_variableDeclarationWithoutNamespace_closure2(declaration));
  82396. return declaration;
  82397. },
  82398. variableDeclarationWithoutNamespace$0: function() {
  82399. return this.variableDeclarationWithoutNamespace$2(null, null);
  82400. },
  82401. _stylesheet0$_variableDeclarationOrStyleRule$0: function() {
  82402. var t1, t2, variableOrInterpolation, t3, _this = this;
  82403. if (_this.get$plainCss())
  82404. return _this._stylesheet0$_styleRule$0();
  82405. if (_this.get$indented() && _this.scanner.scanChar$1(92))
  82406. return _this._stylesheet0$_styleRule$0();
  82407. if (!_this.lookingAtIdentifier$0())
  82408. return _this._stylesheet0$_styleRule$0();
  82409. t1 = _this.scanner;
  82410. t2 = t1._string_scanner$_position;
  82411. variableOrInterpolation = _this._stylesheet0$_variableDeclarationOrInterpolation$0();
  82412. if (variableOrInterpolation instanceof Z.VariableDeclaration0)
  82413. return variableOrInterpolation;
  82414. else {
  82415. t3 = new Z.InterpolationBuffer0(new P.StringBuffer(""), []);
  82416. t3.addInterpolation$1(type$.Interpolation_2._as(variableOrInterpolation));
  82417. return _this._stylesheet0$_styleRule$2(t3, new S._SpanScannerState(t1, t2));
  82418. }
  82419. },
  82420. _stylesheet0$_declarationOrStyleRule$0: function() {
  82421. var t1, t2, declarationOrBuffer, _this = this;
  82422. if (_this.get$plainCss() && _this._stylesheet0$_inStyleRule && !_this._stylesheet0$_inUnknownAtRule)
  82423. return _this._stylesheet0$_propertyOrVariableDeclaration$0();
  82424. if (_this.get$indented() && _this.scanner.scanChar$1(92))
  82425. return _this._stylesheet0$_styleRule$0();
  82426. t1 = _this.scanner;
  82427. t2 = t1._string_scanner$_position;
  82428. declarationOrBuffer = _this._stylesheet0$_declarationOrBuffer$0();
  82429. return type$.Statement_2._is(declarationOrBuffer) ? declarationOrBuffer : _this._stylesheet0$_styleRule$2(type$.InterpolationBuffer_2._as(declarationOrBuffer), new S._SpanScannerState(t1, t2));
  82430. },
  82431. _stylesheet0$_declarationOrBuffer$0: function() {
  82432. var midBuffer, couldBeSelector, beforeDeclaration, additional, t3, startsWithPunctuation, variableOrInterpolation, t4, $name, value, postColonWhitespace, exception, _this = this, t1 = {},
  82433. t2 = _this.scanner,
  82434. start = new S._SpanScannerState(t2, t2._string_scanner$_position),
  82435. nameBuffer = new Z.InterpolationBuffer0(new P.StringBuffer(""), []),
  82436. first = t2.peekChar$0();
  82437. if (first !== 58)
  82438. if (first !== 42)
  82439. if (first !== 46)
  82440. t3 = first === 35 && t2.peekChar$1(1) !== 123;
  82441. else
  82442. t3 = true;
  82443. else
  82444. t3 = true;
  82445. else
  82446. t3 = true;
  82447. if (t3) {
  82448. t3 = t2.readChar$0();
  82449. nameBuffer._interpolation_buffer0$_text._contents += H.Primitives_stringFromCharCode(t3);
  82450. t3 = _this.rawText$1(_this.get$whitespace());
  82451. nameBuffer._interpolation_buffer0$_text._contents += t3;
  82452. startsWithPunctuation = true;
  82453. } else
  82454. startsWithPunctuation = false;
  82455. if (!_this._stylesheet0$_lookingAtInterpolatedIdentifier$0())
  82456. return nameBuffer;
  82457. variableOrInterpolation = startsWithPunctuation ? _this.interpolatedIdentifier$0() : _this._stylesheet0$_variableDeclarationOrInterpolation$0();
  82458. if (variableOrInterpolation instanceof Z.VariableDeclaration0)
  82459. return variableOrInterpolation;
  82460. else
  82461. nameBuffer.addInterpolation$1(type$.Interpolation_2._as(variableOrInterpolation));
  82462. _this._stylesheet0$_isUseAllowed = false;
  82463. if (t2.matches$1("/*")) {
  82464. t3 = _this.rawText$1(_this.get$loudComment());
  82465. nameBuffer._interpolation_buffer0$_text._contents += t3;
  82466. }
  82467. midBuffer = new P.StringBuffer("");
  82468. t3 = _this.get$whitespace();
  82469. midBuffer._contents += _this.rawText$1(t3);
  82470. t4 = t2._string_scanner$_position;
  82471. if (!t2.scanChar$1(58)) {
  82472. if (midBuffer._contents.length !== 0)
  82473. nameBuffer._interpolation_buffer0$_text._contents += H.Primitives_stringFromCharCode(32);
  82474. return nameBuffer;
  82475. }
  82476. midBuffer._contents += H.Primitives_stringFromCharCode(58);
  82477. $name = nameBuffer.interpolation$1(t2.spanFrom$2(start, new S._SpanScannerState(t2, t4)));
  82478. first = C.JSArray_methods.get$first($name.contents);
  82479. if (C.JSString_methods.startsWith$1(typeof first == "string" ? first : "", "--")) {
  82480. value = _this._stylesheet0$_interpolatedDeclarationValue$0();
  82481. _this.expectStatementSeparator$1("custom property");
  82482. return L.Declaration$0($name, t2.spanFrom$1(start), null, value);
  82483. }
  82484. if (t2.scanChar$1(58)) {
  82485. t1 = nameBuffer;
  82486. t2 = t1._interpolation_buffer0$_text;
  82487. t2._contents += H.S(midBuffer);
  82488. t2._contents += H.Primitives_stringFromCharCode(58);
  82489. return t1;
  82490. } else if (_this.get$indented() && _this._stylesheet0$_lookingAtInterpolatedIdentifier$0()) {
  82491. t1 = nameBuffer;
  82492. t1._interpolation_buffer0$_text._contents += H.S(midBuffer);
  82493. return t1;
  82494. }
  82495. postColonWhitespace = _this.rawText$1(t3);
  82496. if (_this.lookingAtChildren$0())
  82497. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_declarationChild(), start, new V.StylesheetParser__declarationOrBuffer_closure1($name));
  82498. midBuffer._contents += postColonWhitespace;
  82499. couldBeSelector = postColonWhitespace.length === 0 && _this._stylesheet0$_lookingAtInterpolatedIdentifier$0();
  82500. beforeDeclaration = new S._SpanScannerState(t2, t2._string_scanner$_position);
  82501. t1.value = null;
  82502. try {
  82503. if (_this.lookingAtChildren$0()) {
  82504. t3 = Y.FileLocation$_(t2._sourceFile, t2._string_scanner$_position);
  82505. t4 = t3.offset;
  82506. value = new D.StringExpression0(X.Interpolation$0([], Y._FileSpan$(t3.file, t4, t4)), true);
  82507. } else
  82508. value = _this.expression$0();
  82509. t3 = t1.value = value;
  82510. if (_this.lookingAtChildren$0()) {
  82511. if (couldBeSelector)
  82512. _this.expectStatementSeparator$0();
  82513. } else if (!_this.atEndOfStatement$0())
  82514. _this.expectStatementSeparator$0();
  82515. } catch (exception) {
  82516. if (type$.FormatException._is(H.unwrapException(exception))) {
  82517. if (!couldBeSelector)
  82518. throw exception;
  82519. t2.set$state(beforeDeclaration);
  82520. additional = _this.almostAnyValue$0();
  82521. if (!_this.get$indented() && t2.peekChar$0() === 59)
  82522. throw exception;
  82523. nameBuffer._interpolation_buffer0$_text._contents += H.S(midBuffer);
  82524. nameBuffer.addInterpolation$1(additional);
  82525. return nameBuffer;
  82526. } else
  82527. throw exception;
  82528. }
  82529. if (_this.lookingAtChildren$0())
  82530. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_declarationChild(), start, new V.StylesheetParser__declarationOrBuffer_closure2(t1, $name));
  82531. else {
  82532. _this.expectStatementSeparator$0();
  82533. return L.Declaration$0($name, t2.spanFrom$1(start), null, t3);
  82534. }
  82535. },
  82536. _stylesheet0$_variableDeclarationOrInterpolation$0: function() {
  82537. var t1, start, identifier, t2, buffer, _this = this;
  82538. if (!_this.lookingAtIdentifier$0())
  82539. return _this.interpolatedIdentifier$0();
  82540. t1 = _this.scanner;
  82541. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  82542. identifier = _this.identifier$0();
  82543. if (t1.matches$1(".$")) {
  82544. t1.readChar$0();
  82545. return _this.variableDeclarationWithoutNamespace$2(identifier, start);
  82546. } else {
  82547. t2 = new P.StringBuffer("");
  82548. buffer = new Z.InterpolationBuffer0(t2, []);
  82549. t2._contents = identifier;
  82550. if (_this._stylesheet0$_lookingAtInterpolatedIdentifierBody$0())
  82551. buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  82552. return buffer.interpolation$1(t1.spanFrom$1(start));
  82553. }
  82554. },
  82555. _stylesheet0$_styleRule$2: function(buffer, start) {
  82556. var t2, interpolation, t3, wasInStyleRule, _this = this, t1 = {};
  82557. t1.start = start;
  82558. _this._stylesheet0$_isUseAllowed = false;
  82559. if (start == null) {
  82560. t2 = _this.scanner;
  82561. t2 = t1.start = new S._SpanScannerState(t2, t2._string_scanner$_position);
  82562. } else
  82563. t2 = start;
  82564. interpolation = t1.interpolation = _this.styleRuleSelector$0();
  82565. if (buffer != null) {
  82566. buffer.addInterpolation$1(interpolation);
  82567. t3 = t1.interpolation = buffer.interpolation$1(_this.scanner.spanFrom$1(t2));
  82568. } else
  82569. t3 = interpolation;
  82570. if (t3.contents.length === 0)
  82571. _this.scanner.error$1('expected "}".');
  82572. wasInStyleRule = _this._stylesheet0$_inStyleRule;
  82573. _this._stylesheet0$_inStyleRule = true;
  82574. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), t2, new V.StylesheetParser__styleRule_closure0(t1, _this, wasInStyleRule));
  82575. },
  82576. _stylesheet0$_styleRule$0: function() {
  82577. return this._stylesheet0$_styleRule$2(null, null);
  82578. },
  82579. _stylesheet0$_propertyOrVariableDeclaration$0: function() {
  82580. var first, t3, nameBuffer, variableOrInterpolation, $name, value, _this = this,
  82581. _s48_ = "Nested declarations aren't allowed in plain CSS.",
  82582. t1 = {},
  82583. t2 = _this.scanner,
  82584. start = new S._SpanScannerState(t2, t2._string_scanner$_position);
  82585. t1.name = null;
  82586. first = t2.peekChar$0();
  82587. if (first !== 58)
  82588. if (first !== 42)
  82589. if (first !== 46)
  82590. t3 = first === 35 && t2.peekChar$1(1) !== 123;
  82591. else
  82592. t3 = true;
  82593. else
  82594. t3 = true;
  82595. else
  82596. t3 = true;
  82597. if (t3) {
  82598. t3 = new P.StringBuffer("");
  82599. nameBuffer = new Z.InterpolationBuffer0(t3, []);
  82600. t3._contents += H.Primitives_stringFromCharCode(t2.readChar$0());
  82601. t3._contents += _this.rawText$1(_this.get$whitespace());
  82602. nameBuffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  82603. t3 = t1.name = nameBuffer.interpolation$1(t2.spanFrom$1(start));
  82604. } else if (!_this.get$plainCss()) {
  82605. variableOrInterpolation = _this._stylesheet0$_variableDeclarationOrInterpolation$0();
  82606. if (variableOrInterpolation instanceof Z.VariableDeclaration0)
  82607. return variableOrInterpolation;
  82608. else {
  82609. type$.Interpolation_2._as(variableOrInterpolation);
  82610. t1.name = variableOrInterpolation;
  82611. }
  82612. t3 = variableOrInterpolation;
  82613. } else {
  82614. $name = _this.interpolatedIdentifier$0();
  82615. t1.name = $name;
  82616. t3 = $name;
  82617. }
  82618. _this.whitespace$0();
  82619. t2.expectChar$1(58);
  82620. _this.whitespace$0();
  82621. if (_this.lookingAtChildren$0()) {
  82622. if (_this.get$plainCss())
  82623. t2.error$1(_s48_);
  82624. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_declarationChild(), start, new V.StylesheetParser__propertyOrVariableDeclaration_closure1(t1));
  82625. }
  82626. value = _this.expression$0();
  82627. if (_this.lookingAtChildren$0()) {
  82628. if (_this.get$plainCss())
  82629. t2.error$1(_s48_);
  82630. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_declarationChild(), start, new V.StylesheetParser__propertyOrVariableDeclaration_closure2(t1, value));
  82631. } else {
  82632. _this.expectStatementSeparator$0();
  82633. return L.Declaration$0(t3, t2.spanFrom$1(start), null, value);
  82634. }
  82635. },
  82636. _stylesheet0$_declarationChild$0: function() {
  82637. if (this.scanner.peekChar$0() === 64)
  82638. return this._stylesheet0$_declarationAtRule$0();
  82639. return this._stylesheet0$_propertyOrVariableDeclaration$0();
  82640. },
  82641. atRule$2$root: function(child, root) {
  82642. var $name, wasUseAllowed, value, optional, url, namespace, configuration, span, _this = this,
  82643. _s9_ = "@use rule",
  82644. t1 = _this.scanner,
  82645. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  82646. t1.expectChar$2$name(64, "@-rule");
  82647. $name = _this.interpolatedIdentifier$0();
  82648. _this.whitespace$0();
  82649. wasUseAllowed = _this._stylesheet0$_isUseAllowed;
  82650. _this._stylesheet0$_isUseAllowed = false;
  82651. switch ($name.get$asPlain()) {
  82652. case "at-root":
  82653. return _this._stylesheet0$_atRootRule$1(start);
  82654. case "charset":
  82655. _this._stylesheet0$_isUseAllowed = wasUseAllowed;
  82656. if (!root)
  82657. _this._stylesheet0$_disallowedAtRule$1(start);
  82658. _this.string$0();
  82659. return null;
  82660. case "content":
  82661. return _this._stylesheet0$_contentRule$1(start);
  82662. case "debug":
  82663. return _this._stylesheet0$_debugRule$1(start);
  82664. case "each":
  82665. return _this._stylesheet0$_eachRule$2(start, child);
  82666. case "else":
  82667. return _this._stylesheet0$_disallowedAtRule$1(start);
  82668. case "error":
  82669. return _this._stylesheet0$_errorRule$1(start);
  82670. case "extend":
  82671. if (!_this._stylesheet0$_inStyleRule && !_this._stylesheet0$_inMixin && !_this._stylesheet0$_inContentBlock)
  82672. _this.error$2("@extend may only be used within style rules.", t1.spanFrom$1(start));
  82673. value = _this.almostAnyValue$0();
  82674. optional = t1.scanChar$1(33);
  82675. if (optional)
  82676. _this.expectIdentifier$1("optional");
  82677. _this.expectStatementSeparator$1("@extend rule");
  82678. return new X.ExtendRule0(value, optional, t1.spanFrom$1(start));
  82679. case "for":
  82680. return _this._stylesheet0$_forRule$2(start, child);
  82681. case "forward":
  82682. _this._stylesheet0$_isUseAllowed = wasUseAllowed;
  82683. if (!root)
  82684. _this._stylesheet0$_disallowedAtRule$1(start);
  82685. return _this._stylesheet0$_forwardRule$1(start);
  82686. case "function":
  82687. return _this._stylesheet0$_functionRule$1(start);
  82688. case "if":
  82689. return _this._stylesheet0$_ifRule$2(start, child);
  82690. case "import":
  82691. return _this._stylesheet0$_importRule$1(start);
  82692. case "include":
  82693. return _this._stylesheet0$_includeRule$1(start);
  82694. case "media":
  82695. return _this.mediaRule$1(start);
  82696. case "mixin":
  82697. return _this._stylesheet0$_mixinRule$1(start);
  82698. case "-moz-document":
  82699. return _this.mozDocumentRule$2(start, $name);
  82700. case "return":
  82701. return _this._stylesheet0$_disallowedAtRule$1(start);
  82702. case "supports":
  82703. return _this.supportsRule$1(start);
  82704. case "use":
  82705. _this._stylesheet0$_isUseAllowed = wasUseAllowed;
  82706. if (!root)
  82707. _this._stylesheet0$_disallowedAtRule$1(start);
  82708. url = _this._stylesheet0$_urlString$0();
  82709. _this.whitespace$0();
  82710. namespace = _this._stylesheet0$_useNamespace$2(url, start);
  82711. _this.whitespace$0();
  82712. configuration = _this._stylesheet0$_configuration$0();
  82713. _this.expectStatementSeparator$1(_s9_);
  82714. span = t1.spanFrom$1(start);
  82715. if (!_this._stylesheet0$_isUseAllowed)
  82716. _this.error$2("@use rules must be written before any other rules.", span);
  82717. _this.expectStatementSeparator$1(_s9_);
  82718. return T.UseRule$0(url, namespace, span, configuration);
  82719. case "warn":
  82720. return _this._stylesheet0$_warnRule$1(start);
  82721. case "while":
  82722. return _this._stylesheet0$_whileRule$2(start, child);
  82723. default:
  82724. return _this.unknownAtRule$2(start, $name);
  82725. }
  82726. },
  82727. _stylesheet0$_declarationAtRule$0: function() {
  82728. var _this = this,
  82729. t1 = _this.scanner,
  82730. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  82731. switch (_this._stylesheet0$_plainAtRuleName$0()) {
  82732. case "content":
  82733. return _this._stylesheet0$_contentRule$1(start);
  82734. case "debug":
  82735. return _this._stylesheet0$_debugRule$1(start);
  82736. case "each":
  82737. return _this._stylesheet0$_eachRule$2(start, _this.get$_stylesheet0$_declarationChild());
  82738. case "else":
  82739. return _this._stylesheet0$_disallowedAtRule$1(start);
  82740. case "error":
  82741. return _this._stylesheet0$_errorRule$1(start);
  82742. case "for":
  82743. return _this._stylesheet0$_forRule$2(start, _this.get$_stylesheet0$_declarationAtRule());
  82744. case "if":
  82745. return _this._stylesheet0$_ifRule$2(start, _this.get$_stylesheet0$_declarationChild());
  82746. case "include":
  82747. return _this._stylesheet0$_includeRule$1(start);
  82748. case "warn":
  82749. return _this._stylesheet0$_warnRule$1(start);
  82750. case "while":
  82751. return _this._stylesheet0$_whileRule$2(start, _this.get$_stylesheet0$_declarationChild());
  82752. default:
  82753. return _this._stylesheet0$_disallowedAtRule$1(start);
  82754. }
  82755. },
  82756. _stylesheet0$_functionChild$0: function() {
  82757. var state, variableDeclarationError, statement, t2, namespace, exception, t3, start, value, _this = this,
  82758. t1 = _this.scanner;
  82759. if (t1.peekChar$0() !== 64) {
  82760. t2 = t1._string_scanner$_position;
  82761. state = new S._SpanScannerState(t1, t2);
  82762. try {
  82763. namespace = _this.identifier$0();
  82764. t1.expectChar$1(46);
  82765. t2 = _this.variableDeclarationWithoutNamespace$2(namespace, new S._SpanScannerState(t1, t2));
  82766. return t2;
  82767. } catch (exception) {
  82768. t2 = H.unwrapException(exception);
  82769. t3 = type$.SourceSpanFormatException;
  82770. if (t3._is(t2)) {
  82771. variableDeclarationError = t2;
  82772. t1.set$state(state);
  82773. statement = null;
  82774. try {
  82775. statement = _this._stylesheet0$_declarationOrStyleRule$0();
  82776. } catch (exception) {
  82777. if (t3._is(H.unwrapException(exception)))
  82778. throw H.wrapException(variableDeclarationError);
  82779. else
  82780. throw exception;
  82781. }
  82782. _this.error$2("@function rules may not contain " + (statement instanceof X.StyleRule0 ? "style rules" : "declarations") + ".", statement.get$span());
  82783. } else
  82784. throw exception;
  82785. }
  82786. }
  82787. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  82788. switch (_this._stylesheet0$_plainAtRuleName$0()) {
  82789. case "debug":
  82790. return _this._stylesheet0$_debugRule$1(start);
  82791. case "each":
  82792. return _this._stylesheet0$_eachRule$2(start, _this.get$_stylesheet0$_functionChild());
  82793. case "else":
  82794. return _this._stylesheet0$_disallowedAtRule$1(start);
  82795. case "error":
  82796. return _this._stylesheet0$_errorRule$1(start);
  82797. case "for":
  82798. return _this._stylesheet0$_forRule$2(start, _this.get$_stylesheet0$_functionChild());
  82799. case "if":
  82800. return _this._stylesheet0$_ifRule$2(start, _this.get$_stylesheet0$_functionChild());
  82801. case "return":
  82802. value = _this.expression$0();
  82803. _this.expectStatementSeparator$1("@return rule");
  82804. return new B.ReturnRule0(value, t1.spanFrom$1(start));
  82805. case "warn":
  82806. return _this._stylesheet0$_warnRule$1(start);
  82807. case "while":
  82808. return _this._stylesheet0$_whileRule$2(start, _this.get$_stylesheet0$_functionChild());
  82809. default:
  82810. return _this._stylesheet0$_disallowedAtRule$1(start);
  82811. }
  82812. },
  82813. _stylesheet0$_plainAtRuleName$0: function() {
  82814. this.scanner.expectChar$2$name(64, "@-rule");
  82815. var $name = this.identifier$0();
  82816. this.whitespace$0();
  82817. return $name;
  82818. },
  82819. _stylesheet0$_atRootRule$1: function(start) {
  82820. var query, t2, t3, _this = this,
  82821. t1 = _this.scanner;
  82822. if (t1.peekChar$0() === 40) {
  82823. query = _this._stylesheet0$_atRootQuery$0();
  82824. _this.whitespace$0();
  82825. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new V.StylesheetParser__atRootRule_closure1(query));
  82826. } else if (_this.lookingAtChildren$0())
  82827. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new V.StylesheetParser__atRootRule_closure2());
  82828. else {
  82829. t2 = H.setRuntimeTypeInfo([_this._stylesheet0$_styleRule$0()], type$.JSArray_Statement_2);
  82830. t1 = t1.spanFrom$1(start);
  82831. t2 = P.List_List$unmodifiable(t2, type$.Statement_2);
  82832. t3 = C.JSArray_methods.any$1(t2, new M.ParentStatement_closure0());
  82833. return new V.AtRootRule0(null, t1, t2, t3);
  82834. }
  82835. },
  82836. _stylesheet0$_atRootQuery$0: function() {
  82837. var interpolation, t2, t3, t4, buffer, t5, _this = this,
  82838. t1 = _this.scanner;
  82839. if (t1.peekChar$0() === 35) {
  82840. interpolation = _this.singleInterpolation$0();
  82841. return X.Interpolation$0([interpolation], interpolation.get$span());
  82842. }
  82843. t2 = t1._string_scanner$_position;
  82844. t3 = new P.StringBuffer("");
  82845. t4 = [];
  82846. buffer = new Z.InterpolationBuffer0(t3, t4);
  82847. t1.expectChar$1(40);
  82848. t3._contents += H.Primitives_stringFromCharCode(40);
  82849. _this.whitespace$0();
  82850. t5 = _this.expression$0();
  82851. buffer._interpolation_buffer0$_flushText$0();
  82852. t4.push(t5);
  82853. if (t1.scanChar$1(58)) {
  82854. _this.whitespace$0();
  82855. t3._contents += H.Primitives_stringFromCharCode(58);
  82856. t3._contents += H.Primitives_stringFromCharCode(32);
  82857. t5 = _this.expression$0();
  82858. buffer._interpolation_buffer0$_flushText$0();
  82859. t4.push(t5);
  82860. }
  82861. t1.expectChar$1(41);
  82862. _this.whitespace$0();
  82863. t3._contents += H.Primitives_stringFromCharCode(41);
  82864. return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  82865. },
  82866. _stylesheet0$_contentRule$1: function(start) {
  82867. var t1, $arguments, t2, t3, _this = this;
  82868. if (!_this._stylesheet0$_inMixin)
  82869. _this.error$2("@content is only allowed within mixin declarations.", _this.scanner.spanFrom$1(start));
  82870. _this.whitespace$0();
  82871. t1 = _this.scanner;
  82872. if (t1.peekChar$0() === 40)
  82873. $arguments = _this._stylesheet0$_argumentInvocation$1$mixin(true);
  82874. else {
  82875. t2 = Y.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
  82876. t3 = t2.offset;
  82877. $arguments = new X.ArgumentInvocation0(C.List_empty19, C.Map_empty9, null, null, Y._FileSpan$(t2.file, t3, t3));
  82878. }
  82879. _this._stylesheet0$_mixinHasContent = true;
  82880. _this.expectStatementSeparator$1("@content rule");
  82881. return new Q.ContentRule0(t1.spanFrom$1(start), $arguments);
  82882. },
  82883. _stylesheet0$_debugRule$1: function(start) {
  82884. var value = this.expression$0();
  82885. this.expectStatementSeparator$1("@debug rule");
  82886. return new Q.DebugRule0(value, this.scanner.spanFrom$1(start));
  82887. },
  82888. _stylesheet0$_eachRule$2: function(start, child) {
  82889. var variables, t1, _this = this,
  82890. wasInControlDirective = _this._stylesheet0$_inControlDirective;
  82891. _this._stylesheet0$_inControlDirective = true;
  82892. variables = H.setRuntimeTypeInfo([_this.variableName$0()], type$.JSArray_String);
  82893. _this.whitespace$0();
  82894. for (t1 = _this.scanner; t1.scanChar$1(44);) {
  82895. _this.whitespace$0();
  82896. t1.expectChar$1(36);
  82897. variables.push(_this.identifier$1$normalize(true));
  82898. _this.whitespace$0();
  82899. }
  82900. _this.expectIdentifier$1("in");
  82901. _this.whitespace$0();
  82902. return _this._stylesheet0$_withChildren$3(child, start, new V.StylesheetParser__eachRule_closure0(_this, wasInControlDirective, variables, _this.expression$0()));
  82903. },
  82904. _stylesheet0$_errorRule$1: function(start) {
  82905. var value = this.expression$0();
  82906. this.expectStatementSeparator$1("@error rule");
  82907. return new D.ErrorRule0(value, this.scanner.spanFrom$1(start));
  82908. },
  82909. _stylesheet0$_functionRule$1: function(start) {
  82910. var $name, $arguments, _this = this,
  82911. precedingComment = _this.lastSilentComment;
  82912. _this.lastSilentComment = null;
  82913. $name = _this.identifier$1$normalize(true);
  82914. _this.whitespace$0();
  82915. $arguments = _this._stylesheet0$_argumentDeclaration$0();
  82916. if (_this._stylesheet0$_inMixin || _this._stylesheet0$_inContentBlock)
  82917. _this.error$2("Mixins may not contain function declarations.", _this.scanner.spanFrom$1(start));
  82918. else if (_this._stylesheet0$_inControlDirective)
  82919. _this.error$2("Functions may not be declared in control directives.", _this.scanner.spanFrom$1(start));
  82920. switch (B.unvendor0($name)) {
  82921. case "calc":
  82922. case "element":
  82923. case "expression":
  82924. case "url":
  82925. case "and":
  82926. case "or":
  82927. case "not":
  82928. _this.error$2("Invalid function name.", _this.scanner.spanFrom$1(start));
  82929. break;
  82930. }
  82931. _this.whitespace$0();
  82932. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_functionChild(), start, new V.StylesheetParser__functionRule_closure0($name, $arguments, precedingComment));
  82933. },
  82934. _stylesheet0$_forRule$2: function(start, child) {
  82935. var variable, from, _this = this, t1 = {},
  82936. wasInControlDirective = _this._stylesheet0$_inControlDirective;
  82937. _this._stylesheet0$_inControlDirective = true;
  82938. variable = _this.variableName$0();
  82939. _this.whitespace$0();
  82940. _this.expectIdentifier$1("from");
  82941. _this.whitespace$0();
  82942. t1.exclusive = null;
  82943. from = _this.expression$1$until(new V.StylesheetParser__forRule_closure1(t1, _this));
  82944. if (t1.exclusive == null)
  82945. _this.scanner.error$1('Expected "to" or "through".');
  82946. _this.whitespace$0();
  82947. return _this._stylesheet0$_withChildren$3(child, start, new V.StylesheetParser__forRule_closure2(t1, _this, wasInControlDirective, variable, from, _this.expression$0()));
  82948. },
  82949. _stylesheet0$_forwardRule$1: function(start) {
  82950. var prefix, members, shownMixinsAndFunctions, shownVariables, hiddenVariables, hiddenMixinsAndFunctions, configuration, span, t1, t2, t3, t4, _this = this, _null = null,
  82951. url = _this._stylesheet0$_urlString$0();
  82952. _this.whitespace$0();
  82953. if (_this.scanIdentifier$1("as")) {
  82954. _this.whitespace$0();
  82955. prefix = _this.identifier$1$normalize(true);
  82956. _this.scanner.expectChar$1(42);
  82957. _this.whitespace$0();
  82958. } else
  82959. prefix = _null;
  82960. if (_this.scanIdentifier$1("show")) {
  82961. members = _this._stylesheet0$_memberList$0();
  82962. shownMixinsAndFunctions = members.item1;
  82963. shownVariables = members.item2;
  82964. hiddenVariables = _null;
  82965. hiddenMixinsAndFunctions = hiddenVariables;
  82966. } else {
  82967. if (_this.scanIdentifier$1("hide")) {
  82968. members = _this._stylesheet0$_memberList$0();
  82969. hiddenMixinsAndFunctions = members.item1;
  82970. hiddenVariables = members.item2;
  82971. } else {
  82972. hiddenVariables = _null;
  82973. hiddenMixinsAndFunctions = hiddenVariables;
  82974. }
  82975. shownVariables = _null;
  82976. shownMixinsAndFunctions = shownVariables;
  82977. }
  82978. configuration = _this._stylesheet0$_configuration$1$allowGuarded(true);
  82979. _this.expectStatementSeparator$1("@forward rule");
  82980. span = _this.scanner.spanFrom$1(start);
  82981. if (!_this._stylesheet0$_isUseAllowed)
  82982. _this.error$2("@forward rules must be written before any other rules.", span);
  82983. if (shownMixinsAndFunctions != null) {
  82984. t1 = type$.String;
  82985. t2 = P.LinkedHashSet_LinkedHashSet$of(shownMixinsAndFunctions, t1);
  82986. t3 = type$.UnmodifiableSetView_String;
  82987. t1 = P.LinkedHashSet_LinkedHashSet$of(shownVariables, t1);
  82988. t4 = configuration == null ? C.List_empty18 : P.List_List$unmodifiable(configuration, type$.ConfiguredVariable_2);
  82989. return new L.ForwardRule0(url, new L.UnmodifiableSetView(t2, t3), new L.UnmodifiableSetView(t1, t3), _null, _null, prefix, t4, span);
  82990. } else if (hiddenMixinsAndFunctions != null) {
  82991. t1 = type$.String;
  82992. t2 = P.LinkedHashSet_LinkedHashSet$of(hiddenMixinsAndFunctions, t1);
  82993. t3 = type$.UnmodifiableSetView_String;
  82994. t1 = P.LinkedHashSet_LinkedHashSet$of(hiddenVariables, t1);
  82995. t4 = configuration == null ? C.List_empty18 : P.List_List$unmodifiable(configuration, type$.ConfiguredVariable_2);
  82996. return new L.ForwardRule0(url, _null, _null, new L.UnmodifiableSetView(t2, t3), new L.UnmodifiableSetView(t1, t3), prefix, t4, span);
  82997. } else
  82998. return new L.ForwardRule0(url, _null, _null, _null, _null, prefix, configuration == null ? C.List_empty18 : P.List_List$unmodifiable(configuration, type$.ConfiguredVariable_2), span);
  82999. },
  83000. _stylesheet0$_memberList$0: function() {
  83001. var _this = this,
  83002. t1 = type$.String,
  83003. identifiers = P.LinkedHashSet_LinkedHashSet$_empty(t1),
  83004. variables = P.LinkedHashSet_LinkedHashSet$_empty(t1);
  83005. t1 = _this.scanner;
  83006. do {
  83007. _this.whitespace$0();
  83008. _this.withErrorMessage$2("Expected variable, mixin, or function name", new V.StylesheetParser__memberList_closure0(_this, variables, identifiers));
  83009. _this.whitespace$0();
  83010. } while (t1.scanChar$1(44));
  83011. return new S.Tuple2(identifiers, variables, type$.Tuple2_of_Set_String_and_Set_String);
  83012. },
  83013. _stylesheet0$_ifRule$2: function(start, child) {
  83014. var condition, children, t1, t2, clauses, lastClause, result, t3, span, _this = this,
  83015. ifIndentation = _this.get$currentIndentation(),
  83016. wasInControlDirective = _this._stylesheet0$_inControlDirective;
  83017. _this._stylesheet0$_inControlDirective = true;
  83018. condition = _this.expression$0();
  83019. children = _this.children$1(child);
  83020. _this.whitespaceWithoutComments$0();
  83021. t1 = type$.Statement_2;
  83022. t2 = P.List_List$unmodifiable(children, t1);
  83023. clauses = H.setRuntimeTypeInfo([new V.IfClause0(condition, t2, C.JSArray_methods.any$1(t2, new V.IfClause$__closure0()))], type$.JSArray_IfClause_2);
  83024. while (true) {
  83025. if (!_this.scanElse$1(ifIndentation)) {
  83026. lastClause = null;
  83027. break;
  83028. }
  83029. _this.whitespace$0();
  83030. if (_this.scanIdentifier$1("if")) {
  83031. _this.whitespace$0();
  83032. t2 = _this.expression$0();
  83033. result = P.List_List$from(_this.children$1(child), false, t1);
  83034. result.fixed$length = Array;
  83035. result.immutable$list = Array;
  83036. t3 = result;
  83037. clauses.push(new V.IfClause0(t2, t3, C.JSArray_methods.any$1(t3, new V.IfClause$__closure0())));
  83038. } else {
  83039. result = P.List_List$from(_this.children$1(child), false, t1);
  83040. result.fixed$length = Array;
  83041. result.immutable$list = Array;
  83042. t1 = result;
  83043. lastClause = new V.IfClause0(null, t1, C.JSArray_methods.any$1(t1, new V.IfClause$__closure0()));
  83044. break;
  83045. }
  83046. }
  83047. _this._stylesheet0$_inControlDirective = wasInControlDirective;
  83048. span = _this.scanner.spanFrom$1(start);
  83049. _this.whitespaceWithoutComments$0();
  83050. return new V.IfRule0(P.List_List$unmodifiable(clauses, type$.IfClause_2), lastClause, span);
  83051. },
  83052. _stylesheet0$_importRule$1: function(start) {
  83053. var argument, _this = this,
  83054. imports = H.setRuntimeTypeInfo([], type$.JSArray_Import_2),
  83055. t1 = _this.scanner;
  83056. do {
  83057. _this.whitespace$0();
  83058. argument = _this.importArgument$0();
  83059. if ((_this._stylesheet0$_inControlDirective || _this._stylesheet0$_inMixin) && argument instanceof B.DynamicImport0)
  83060. _this._stylesheet0$_disallowedAtRule$1(start);
  83061. imports.push(argument);
  83062. _this.whitespace$0();
  83063. } while (t1.scanChar$1(44));
  83064. _this.expectStatementSeparator$1("@import rule");
  83065. t1 = t1.spanFrom$1(start);
  83066. return new B.ImportRule0(P.List_List$unmodifiable(imports, type$.Import_2), t1);
  83067. },
  83068. importArgument$0: function() {
  83069. var url, urlSpan, innerError, queries, t2, t3, t4, exception, _this = this, _null = null,
  83070. t1 = _this.scanner,
  83071. start = new S._SpanScannerState(t1, t1._string_scanner$_position),
  83072. next = t1.peekChar$0();
  83073. if (next === 117 || next === 85) {
  83074. url = _this.dynamicUrl$0();
  83075. _this.whitespace$0();
  83076. queries = _this.tryImportQueries$0();
  83077. t2 = X.Interpolation$0([url], t1.spanFrom$1(start));
  83078. t1 = t1.spanFrom$1(start);
  83079. t3 = queries == null;
  83080. t4 = t3 ? _null : queries.item1;
  83081. return new Q.StaticImport0(t2, t4, t3 ? _null : queries.item2, t1);
  83082. }
  83083. url = _this.string$0();
  83084. urlSpan = t1.spanFrom$1(start);
  83085. _this.whitespace$0();
  83086. queries = _this.tryImportQueries$0();
  83087. if (_this.isPlainImportUrl$1(url) || queries != null) {
  83088. t2 = urlSpan;
  83089. t2 = X.Interpolation$0([P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t2.file._decodedChars, t2._file$_start, t2._end), 0, _null)], urlSpan);
  83090. t1 = t1.spanFrom$1(start);
  83091. t3 = queries == null;
  83092. t4 = t3 ? _null : queries.item1;
  83093. return new Q.StaticImport0(t2, t4, t3 ? _null : queries.item2, t1);
  83094. } else
  83095. try {
  83096. t1 = _this.parseImportUrl$1(url);
  83097. return new B.DynamicImport0(t1, urlSpan);
  83098. } catch (exception) {
  83099. t1 = H.unwrapException(exception);
  83100. if (type$.FormatException._is(t1)) {
  83101. innerError = t1;
  83102. _this.error$2("Invalid URL: " + H.S(J.get$message$x(innerError)), urlSpan);
  83103. } else
  83104. throw exception;
  83105. }
  83106. },
  83107. parseImportUrl$1: function(url) {
  83108. var t1 = $.$get$windows();
  83109. if (t1.style.rootLength$1(url) > 0)
  83110. return J.toString$0$(t1.toUri$1(url));
  83111. P.Uri_parse(url);
  83112. return url;
  83113. },
  83114. isPlainImportUrl$1: function(url) {
  83115. var first;
  83116. if (url.length < 5)
  83117. return false;
  83118. if (C.JSString_methods.endsWith$1(url, ".css"))
  83119. return true;
  83120. first = C.JSString_methods._codeUnitAt$1(url, 0);
  83121. if (first === 47)
  83122. return C.JSString_methods._codeUnitAt$1(url, 1) === 47;
  83123. if (first !== 104)
  83124. return false;
  83125. return C.JSString_methods.startsWith$1(url, "http://") || C.JSString_methods.startsWith$1(url, "https://");
  83126. },
  83127. tryImportQueries$0: function() {
  83128. var t1, start, supports, $name, media, _this = this;
  83129. if (_this.scanIdentifier$1("supports")) {
  83130. t1 = _this.scanner;
  83131. t1.expectChar$1(40);
  83132. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  83133. if (_this.scanIdentifier$1("not")) {
  83134. _this.whitespace$0();
  83135. supports = new M.SupportsNegation0(_this._stylesheet0$_supportsConditionInParens$0(), t1.spanFrom$1(start));
  83136. } else if (t1.peekChar$0() === 40)
  83137. supports = _this._stylesheet0$_supportsCondition$0();
  83138. else {
  83139. $name = _this.expression$0();
  83140. t1.expectChar$1(58);
  83141. _this.whitespace$0();
  83142. supports = new L.SupportsDeclaration0($name, _this.expression$0(), t1.spanFrom$1(start));
  83143. }
  83144. t1.expectChar$1(41);
  83145. _this.whitespace$0();
  83146. } else
  83147. supports = null;
  83148. media = _this._stylesheet0$_lookingAtInterpolatedIdentifier$0() || _this.scanner.peekChar$0() === 40 ? _this._stylesheet0$_mediaQueryList$0() : null;
  83149. if (supports == null && media == null)
  83150. return null;
  83151. return new S.Tuple2(supports, media, type$.Tuple2_SupportsCondition_Interpolation_2);
  83152. },
  83153. _stylesheet0$_includeRule$1: function(start) {
  83154. var name0, namespace, $arguments, t3, t4, wasInContentBlock, $content, _this = this, _null = null, t1 = {},
  83155. $name = _this.identifier$0(),
  83156. t2 = _this.scanner;
  83157. if (t2.scanChar$1(46)) {
  83158. name0 = _this._stylesheet0$_publicIdentifier$0();
  83159. namespace = $name;
  83160. $name = name0;
  83161. } else {
  83162. $name = H.stringReplaceAllUnchecked($name, "_", "-");
  83163. namespace = _null;
  83164. }
  83165. _this.whitespace$0();
  83166. if (t2.peekChar$0() === 40)
  83167. $arguments = _this._stylesheet0$_argumentInvocation$1$mixin(true);
  83168. else {
  83169. t3 = Y.FileLocation$_(t2._sourceFile, t2._string_scanner$_position);
  83170. t4 = t3.offset;
  83171. $arguments = new X.ArgumentInvocation0(C.List_empty19, C.Map_empty9, _null, _null, Y._FileSpan$(t3.file, t4, t4));
  83172. }
  83173. _this.whitespace$0();
  83174. t1.contentArguments = null;
  83175. if (_this.scanIdentifier$1("using")) {
  83176. _this.whitespace$0();
  83177. t3 = t1.contentArguments = _this._stylesheet0$_argumentDeclaration$0();
  83178. _this.whitespace$0();
  83179. } else
  83180. t3 = _null;
  83181. t3 = t3 == null;
  83182. if (!t3 || _this.lookingAtChildren$0()) {
  83183. if (t3) {
  83184. t3 = Y.FileLocation$_(t2._sourceFile, t2._string_scanner$_position);
  83185. t4 = t3.offset;
  83186. t1.contentArguments = new B.ArgumentDeclaration0(C.List_empty20, _null, Y._FileSpan$(t3.file, t4, t4));
  83187. }
  83188. wasInContentBlock = _this._stylesheet0$_inContentBlock;
  83189. _this._stylesheet0$_inContentBlock = true;
  83190. $content = _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new V.StylesheetParser__includeRule_closure0(t1));
  83191. _this._stylesheet0$_inContentBlock = wasInContentBlock;
  83192. } else {
  83193. _this.expectStatementSeparator$0();
  83194. $content = _null;
  83195. }
  83196. t1 = t2.spanFrom$2(start, start);
  83197. return new A.IncludeRule0(namespace, $name, $arguments, $content, t1.expand$1(0, ($content == null ? $arguments : $content).get$span()));
  83198. },
  83199. mediaRule$1: function(start) {
  83200. return this._stylesheet0$_withChildren$3(this.get$_stylesheet0$_statement(), start, new V.StylesheetParser_mediaRule_closure0(this._stylesheet0$_mediaQueryList$0()));
  83201. },
  83202. _stylesheet0$_mixinRule$1: function(start) {
  83203. var $name, t1, $arguments, t2, t3, _this = this,
  83204. precedingComment = _this.lastSilentComment;
  83205. _this.lastSilentComment = null;
  83206. $name = _this.identifier$1$normalize(true);
  83207. _this.whitespace$0();
  83208. t1 = _this.scanner;
  83209. if (t1.peekChar$0() === 40)
  83210. $arguments = _this._stylesheet0$_argumentDeclaration$0();
  83211. else {
  83212. t2 = Y.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
  83213. t3 = t2.offset;
  83214. $arguments = new B.ArgumentDeclaration0(C.List_empty20, null, Y._FileSpan$(t2.file, t3, t3));
  83215. }
  83216. if (_this._stylesheet0$_inMixin || _this._stylesheet0$_inContentBlock)
  83217. _this.error$2("Mixins may not contain mixin declarations.", t1.spanFrom$1(start));
  83218. else if (_this._stylesheet0$_inControlDirective)
  83219. _this.error$2("Mixins may not be declared in control directives.", t1.spanFrom$1(start));
  83220. _this.whitespace$0();
  83221. _this._stylesheet0$_inMixin = true;
  83222. _this._stylesheet0$_mixinHasContent = false;
  83223. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new V.StylesheetParser__mixinRule_closure0(_this, $name, $arguments, precedingComment));
  83224. },
  83225. mozDocumentRule$2: function(start, $name) {
  83226. var t5, t6, identifier, contents, argument, trailing, endPosition, start0, end, _this = this, _box_0 = {},
  83227. t1 = _this.scanner,
  83228. t2 = t1._string_scanner$_position,
  83229. t3 = new P.StringBuffer(""),
  83230. t4 = [],
  83231. buffer = new Z.InterpolationBuffer0(t3, t4);
  83232. _box_0.needsDeprecationWarning = false;
  83233. for (t5 = _this.get$whitespace(); true;) {
  83234. if (t1.peekChar$0() === 35) {
  83235. t6 = _this.singleInterpolation$0();
  83236. buffer._interpolation_buffer0$_flushText$0();
  83237. t4.push(t6);
  83238. _box_0.needsDeprecationWarning = true;
  83239. } else {
  83240. t6 = t1._string_scanner$_position;
  83241. identifier = _this.identifier$0();
  83242. switch (identifier) {
  83243. case "url":
  83244. case "url-prefix":
  83245. case "domain":
  83246. contents = _this._stylesheet0$_tryUrlContents$2$name(new S._SpanScannerState(t1, t6), identifier);
  83247. if (contents != null)
  83248. buffer.addInterpolation$1(contents);
  83249. else {
  83250. t1.expectChar$1(40);
  83251. _this.whitespace$0();
  83252. argument = _this.interpolatedString$0();
  83253. t1.expectChar$1(41);
  83254. t3._contents += identifier;
  83255. t3._contents += H.Primitives_stringFromCharCode(40);
  83256. buffer.addInterpolation$1(argument.asInterpolation$0());
  83257. t3._contents += H.Primitives_stringFromCharCode(41);
  83258. }
  83259. t6 = t3._contents;
  83260. trailing = t6.charCodeAt(0) == 0 ? t6 : t6;
  83261. if (!C.JSString_methods.endsWith$1(trailing, "url-prefix()") && !C.JSString_methods.endsWith$1(trailing, "url-prefix('')") && !C.JSString_methods.endsWith$1(trailing, 'url-prefix("")'))
  83262. _box_0.needsDeprecationWarning = true;
  83263. break;
  83264. case "regexp":
  83265. t3._contents += "regexp(";
  83266. t1.expectChar$1(40);
  83267. buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
  83268. t1.expectChar$1(41);
  83269. t3._contents += H.Primitives_stringFromCharCode(41);
  83270. _box_0.needsDeprecationWarning = true;
  83271. break;
  83272. default:
  83273. endPosition = t1._string_scanner$_position;
  83274. _this.error$2("Invalid function name.", Y._FileSpan$(t1._sourceFile, t6, endPosition));
  83275. }
  83276. }
  83277. _this.whitespace$0();
  83278. if (!t1.scanChar$1(44))
  83279. break;
  83280. t3._contents += H.Primitives_stringFromCharCode(44);
  83281. start0 = t1._string_scanner$_position;
  83282. t5.call$0();
  83283. end = t1._string_scanner$_position;
  83284. t3._contents += J.substring$2$s(t1.string, start0, end);
  83285. }
  83286. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new V.StylesheetParser_mozDocumentRule_closure0(_box_0, _this, $name, buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)))));
  83287. },
  83288. supportsRule$1: function(start) {
  83289. var _this = this,
  83290. condition = _this._stylesheet0$_supportsCondition$0();
  83291. _this.whitespace$0();
  83292. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new V.StylesheetParser_supportsRule_closure0(condition));
  83293. },
  83294. _stylesheet0$_useNamespace$2: function(url, start) {
  83295. var namespace, basename, dot, t1, exception, _this = this;
  83296. if (_this.scanIdentifier$1("as")) {
  83297. _this.whitespace$0();
  83298. return _this.scanner.scanChar$1(42) ? null : _this.identifier$0();
  83299. }
  83300. basename = url.get$pathSegments().length === 0 ? "" : C.JSArray_methods.get$last(url.get$pathSegments());
  83301. dot = J.getInterceptor$asx(basename).indexOf$1(basename, ".");
  83302. t1 = C.JSString_methods.startsWith$1(basename, "_") ? 1 : 0;
  83303. namespace = C.JSString_methods.substring$2(basename, t1, dot === -1 ? basename.length : dot);
  83304. try {
  83305. t1 = G.Parser$1(namespace, _this.logger, null)._parser$_parseIdentifier$0();
  83306. return t1;
  83307. } catch (exception) {
  83308. if (H.unwrapException(exception) instanceof E.SassFormatException0)
  83309. _this.error$2('Invalid Sass identifier "' + H.S(namespace) + '"', _this.scanner.spanFrom$1(start));
  83310. else
  83311. throw exception;
  83312. }
  83313. },
  83314. _stylesheet0$_configuration$1$allowGuarded: function(allowGuarded) {
  83315. var variableNames, configuration, t1, t2, $name, expression, t3, guarded, endPosition, span, _this = this;
  83316. if (!_this.scanIdentifier$1("with"))
  83317. return null;
  83318. variableNames = P.LinkedHashSet_LinkedHashSet$_empty(type$.String);
  83319. configuration = H.setRuntimeTypeInfo([], type$.JSArray_ConfiguredVariable_2);
  83320. _this.whitespace$0();
  83321. t1 = _this.scanner;
  83322. t1.expectChar$1(40);
  83323. for (; true;) {
  83324. _this.whitespace$0();
  83325. t2 = t1._string_scanner$_position;
  83326. t1.expectChar$1(36);
  83327. $name = _this.identifier$1$normalize(true);
  83328. _this.whitespace$0();
  83329. t1.expectChar$1(58);
  83330. _this.whitespace$0();
  83331. expression = _this._stylesheet0$_expressionUntilComma$0();
  83332. t3 = t1._string_scanner$_position;
  83333. if (allowGuarded && t1.scanChar$1(33))
  83334. if (_this.identifier$0() === "default")
  83335. guarded = true;
  83336. else {
  83337. endPosition = t1._string_scanner$_position;
  83338. _this.error$2("Invalid flag name.", Y._FileSpan$(t1._sourceFile, t3, endPosition));
  83339. guarded = false;
  83340. }
  83341. else
  83342. guarded = false;
  83343. endPosition = t1._string_scanner$_position;
  83344. span = Y._FileSpan$(t1._sourceFile, t2, endPosition);
  83345. if (variableNames.contains$1(0, $name))
  83346. _this.error$2("The same variable may only be configured once.", span);
  83347. variableNames.add$1(0, $name);
  83348. configuration.push(new Z.ConfiguredVariable0($name, expression, guarded, span));
  83349. if (!t1.scanChar$1(44))
  83350. break;
  83351. _this.whitespace$0();
  83352. if (!_this._stylesheet0$_lookingAtExpression$0())
  83353. break;
  83354. }
  83355. t1.expectChar$1(41);
  83356. return configuration;
  83357. },
  83358. _stylesheet0$_configuration$0: function() {
  83359. return this._stylesheet0$_configuration$1$allowGuarded(false);
  83360. },
  83361. _stylesheet0$_warnRule$1: function(start) {
  83362. var value = this.expression$0();
  83363. this.expectStatementSeparator$1("@warn rule");
  83364. return new Y.WarnRule0(value, this.scanner.spanFrom$1(start));
  83365. },
  83366. _stylesheet0$_whileRule$2: function(start, child) {
  83367. var _this = this,
  83368. wasInControlDirective = _this._stylesheet0$_inControlDirective;
  83369. _this._stylesheet0$_inControlDirective = true;
  83370. return _this._stylesheet0$_withChildren$3(child, start, new V.StylesheetParser__whileRule_closure0(_this, wasInControlDirective, _this.expression$0()));
  83371. },
  83372. unknownAtRule$2: function(start, $name) {
  83373. var t2, t3, rule, _this = this, t1 = {},
  83374. wasInUnknownAtRule = _this._stylesheet0$_inUnknownAtRule;
  83375. _this._stylesheet0$_inUnknownAtRule = true;
  83376. t1.value = null;
  83377. t2 = _this.scanner;
  83378. t3 = t2.peekChar$0() !== 33 && !_this.atEndOfStatement$0() ? t1.value = _this.almostAnyValue$0() : null;
  83379. if (_this.lookingAtChildren$0())
  83380. rule = _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new V.StylesheetParser_unknownAtRule_closure0(t1, $name));
  83381. else {
  83382. _this.expectStatementSeparator$0();
  83383. rule = U.AtRule$0($name, t2.spanFrom$1(start), null, t3);
  83384. }
  83385. _this._stylesheet0$_inUnknownAtRule = wasInUnknownAtRule;
  83386. return rule;
  83387. },
  83388. _stylesheet0$_disallowedAtRule$1: function(start) {
  83389. this.almostAnyValue$0();
  83390. this.error$2("This at-rule is not allowed here.", this.scanner.spanFrom$1(start));
  83391. },
  83392. _stylesheet0$_argumentDeclaration$0: function() {
  83393. var $arguments, named, restArgument, t3, $name, defaultValue, endPosition, _this = this,
  83394. t1 = _this.scanner,
  83395. t2 = t1._string_scanner$_position;
  83396. t1.expectChar$1(40);
  83397. _this.whitespace$0();
  83398. $arguments = H.setRuntimeTypeInfo([], type$.JSArray_Argument_2);
  83399. named = P.LinkedHashSet_LinkedHashSet$_empty(type$.String);
  83400. while (true) {
  83401. if (!(t1.peekChar$0() === 36)) {
  83402. restArgument = null;
  83403. break;
  83404. }
  83405. t3 = t1._string_scanner$_position;
  83406. t1.expectChar$1(36);
  83407. $name = _this.identifier$1$normalize(true);
  83408. _this.whitespace$0();
  83409. if (t1.scanChar$1(58)) {
  83410. _this.whitespace$0();
  83411. defaultValue = _this._stylesheet0$_expressionUntilComma$0();
  83412. } else {
  83413. if (t1.scanChar$1(46)) {
  83414. t1.expectChar$1(46);
  83415. t1.expectChar$1(46);
  83416. _this.whitespace$0();
  83417. restArgument = $name;
  83418. break;
  83419. }
  83420. defaultValue = null;
  83421. }
  83422. endPosition = t1._string_scanner$_position;
  83423. $arguments.push(new Z.Argument0($name, defaultValue, Y._FileSpan$(t1._sourceFile, t3, endPosition)));
  83424. if (!named.add$1(0, $name))
  83425. _this.error$2("Duplicate argument.", C.JSArray_methods.get$last($arguments).span);
  83426. if (!t1.scanChar$1(44)) {
  83427. restArgument = null;
  83428. break;
  83429. }
  83430. _this.whitespace$0();
  83431. }
  83432. t1.expectChar$1(41);
  83433. t1 = t1.spanFrom$1(new S._SpanScannerState(t1, t2));
  83434. return new B.ArgumentDeclaration0(P.List_List$unmodifiable($arguments, type$.Argument_2), restArgument, t1);
  83435. },
  83436. _stylesheet0$_argumentInvocation$1$mixin: function(mixin) {
  83437. var positional, named, keywordRest, t3, rest, expression, t4, _this = this,
  83438. t1 = _this.scanner,
  83439. t2 = t1._string_scanner$_position;
  83440. t1.expectChar$1(40);
  83441. _this.whitespace$0();
  83442. positional = H.setRuntimeTypeInfo([], type$.JSArray_Expression_2);
  83443. named = P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.Expression_2);
  83444. t3 = !mixin;
  83445. rest = null;
  83446. while (true) {
  83447. if (!_this._stylesheet0$_lookingAtExpression$0()) {
  83448. keywordRest = null;
  83449. break;
  83450. }
  83451. expression = _this._stylesheet0$_expressionUntilComma$1$singleEquals(t3);
  83452. _this.whitespace$0();
  83453. if (expression instanceof S.VariableExpression0 && t1.scanChar$1(58)) {
  83454. _this.whitespace$0();
  83455. t4 = expression.name;
  83456. if (named.containsKey$1(t4))
  83457. _this.error$2("Duplicate argument.", expression.span);
  83458. named.$indexSet(0, t4, _this._stylesheet0$_expressionUntilComma$1$singleEquals(t3));
  83459. } else if (t1.scanChar$1(46)) {
  83460. t1.expectChar$1(46);
  83461. t1.expectChar$1(46);
  83462. if (rest != null) {
  83463. _this.whitespace$0();
  83464. keywordRest = expression;
  83465. break;
  83466. }
  83467. rest = expression;
  83468. } else if (named.get$isNotEmpty(named))
  83469. t1.expect$1("...");
  83470. else
  83471. positional.push(expression);
  83472. _this.whitespace$0();
  83473. if (!t1.scanChar$1(44)) {
  83474. keywordRest = null;
  83475. break;
  83476. }
  83477. _this.whitespace$0();
  83478. }
  83479. t1.expectChar$1(41);
  83480. return X.ArgumentInvocation$0(positional, named, t1.spanFrom$1(new S._SpanScannerState(t1, t2)), keywordRest, rest);
  83481. },
  83482. _stylesheet0$_argumentInvocation$0: function() {
  83483. return this._stylesheet0$_argumentInvocation$1$mixin(false);
  83484. },
  83485. expression$3$bracketList$singleEquals$until: function(bracketList, singleEquals, until) {
  83486. var t2, beforeBracket, t3, wasInParentheses, resetState, resolveOneOperation, resolveOperations, addSingleExpression, addOperator, resolveSpaceExpressions, first, next, t4, _this = this,
  83487. _s20_ = "Expected expression.",
  83488. _box_0 = {},
  83489. t1 = until != null;
  83490. if (t1 && until.call$0())
  83491. _this.scanner.error$1(_s20_);
  83492. if (bracketList) {
  83493. t2 = _this.scanner;
  83494. beforeBracket = new S._SpanScannerState(t2, t2._string_scanner$_position);
  83495. t2.expectChar$1(91);
  83496. _this.whitespace$0();
  83497. if (t2.scanChar$1(93)) {
  83498. t1 = H.setRuntimeTypeInfo([], type$.JSArray_Expression_2);
  83499. t2 = t2.spanFrom$1(beforeBracket);
  83500. t1 = P.List_List$unmodifiable(t1, type$.Expression_2);
  83501. return new D.ListExpression0(t1, C.ListSeparator_undecided0, true, t2);
  83502. }
  83503. } else
  83504. beforeBracket = null;
  83505. t2 = _this.scanner;
  83506. t3 = t2._string_scanner$_position;
  83507. wasInParentheses = _this._stylesheet0$_inParentheses;
  83508. _box_0.operands = _box_0.operators = _box_0.spaceExpressions = _box_0.singleEqualsOperand = _box_0.commaExpressions = null;
  83509. _box_0.allowSlash = _this.lookingAtNumber$0();
  83510. _box_0.singleExpression = _this._stylesheet0$_singleExpression$0();
  83511. resetState = new V.StylesheetParser_expression_resetState0(_box_0, _this, new S._SpanScannerState(t2, t3));
  83512. resolveOneOperation = new V.StylesheetParser_expression_resolveOneOperation0(_box_0, _this);
  83513. resolveOperations = new V.StylesheetParser_expression_resolveOperations0(_box_0, resolveOneOperation);
  83514. addSingleExpression = new V.StylesheetParser_expression_addSingleExpression0(_box_0, _this, resetState, resolveOperations);
  83515. addOperator = new V.StylesheetParser_expression_addOperator0(_box_0, _this, resolveOneOperation);
  83516. resolveSpaceExpressions = new V.StylesheetParser_expression_resolveSpaceExpressions0(_box_0, resolveOperations);
  83517. $label0$0:
  83518. for (t3 = type$.JSArray_Expression_2; true;) {
  83519. _this.whitespace$0();
  83520. if (t1 && until.call$0())
  83521. break $label0$0;
  83522. first = t2.peekChar$0();
  83523. switch (first) {
  83524. case 40:
  83525. addSingleExpression.call$1(_this._stylesheet0$_parentheses$0());
  83526. break;
  83527. case 91:
  83528. addSingleExpression.call$1(_this.expression$1$bracketList(true));
  83529. break;
  83530. case 36:
  83531. addSingleExpression.call$1(_this._stylesheet0$_variable$0());
  83532. break;
  83533. case 38:
  83534. addSingleExpression.call$1(_this._stylesheet0$_selector$0());
  83535. break;
  83536. case 39:
  83537. case 34:
  83538. addSingleExpression.call$1(_this.interpolatedString$0());
  83539. break;
  83540. case 35:
  83541. addSingleExpression.call$1(_this._stylesheet0$_hashExpression$0());
  83542. break;
  83543. case 61:
  83544. t2.readChar$0();
  83545. if (singleEquals && t2.peekChar$0() !== 61) {
  83546. resolveSpaceExpressions.call$0();
  83547. _box_0.singleEqualsOperand = _box_0.singleExpression;
  83548. _box_0.singleExpression = null;
  83549. } else {
  83550. t2.expectChar$1(61);
  83551. addOperator.call$1(C.BinaryOperator_YlX0);
  83552. }
  83553. break;
  83554. case 33:
  83555. next = t2.peekChar$1(1);
  83556. if (next === 61) {
  83557. t2.readChar$0();
  83558. t2.readChar$0();
  83559. addOperator.call$1(C.BinaryOperator_i5H0);
  83560. } else {
  83561. if (next != null)
  83562. if ((next | 32) !== 105)
  83563. t4 = next === 32 || next === 9 || next === 10 || next === 13 || next === 12;
  83564. else
  83565. t4 = true;
  83566. else
  83567. t4 = true;
  83568. if (t4)
  83569. addSingleExpression.call$1(_this._stylesheet0$_importantExpression$0());
  83570. else
  83571. break $label0$0;
  83572. }
  83573. break;
  83574. case 60:
  83575. t2.readChar$0();
  83576. addOperator.call$1(t2.scanChar$1(61) ? C.BinaryOperator_33h0 : C.BinaryOperator_8qt0);
  83577. break;
  83578. case 62:
  83579. t2.readChar$0();
  83580. addOperator.call$1(t2.scanChar$1(61) ? C.BinaryOperator_1da0 : C.BinaryOperator_AcR2);
  83581. break;
  83582. case 42:
  83583. t2.readChar$0();
  83584. addOperator.call$1(C.BinaryOperator_O1M0);
  83585. break;
  83586. case 43:
  83587. if (_box_0.singleExpression == null)
  83588. addSingleExpression.call$1(_this._stylesheet0$_unaryOperation$0());
  83589. else {
  83590. t2.readChar$0();
  83591. addOperator.call$1(C.BinaryOperator_AcR1);
  83592. }
  83593. break;
  83594. case 45:
  83595. next = t2.peekChar$1(1);
  83596. if (next != null && next >= 48 && next <= 57 || next === 46)
  83597. if (_box_0.singleExpression != null) {
  83598. t4 = t2.peekChar$1(-1);
  83599. t4 = t4 === 32 || t4 === 9 || t4 === 10 || t4 === 13 || t4 === 12;
  83600. } else
  83601. t4 = true;
  83602. else
  83603. t4 = false;
  83604. if (t4)
  83605. addSingleExpression.call$2$number(_this._stylesheet0$_number$0(), true);
  83606. else if (_this._stylesheet0$_lookingAtInterpolatedIdentifier$0())
  83607. addSingleExpression.call$1(_this.identifierLike$0());
  83608. else if (_box_0.singleExpression == null)
  83609. addSingleExpression.call$1(_this._stylesheet0$_unaryOperation$0());
  83610. else {
  83611. t2.readChar$0();
  83612. addOperator.call$1(C.BinaryOperator_iyO0);
  83613. }
  83614. break;
  83615. case 47:
  83616. if (_box_0.singleExpression == null)
  83617. addSingleExpression.call$1(_this._stylesheet0$_unaryOperation$0());
  83618. else {
  83619. t2.readChar$0();
  83620. addOperator.call$1(C.BinaryOperator_RTB0);
  83621. }
  83622. break;
  83623. case 37:
  83624. t2.readChar$0();
  83625. addOperator.call$1(C.BinaryOperator_2ad0);
  83626. break;
  83627. case 48:
  83628. case 49:
  83629. case 50:
  83630. case 51:
  83631. case 52:
  83632. case 53:
  83633. case 54:
  83634. case 55:
  83635. case 56:
  83636. case 57:
  83637. addSingleExpression.call$2$number(_this._stylesheet0$_number$0(), true);
  83638. break;
  83639. case 46:
  83640. if (t2.peekChar$1(1) === 46)
  83641. break $label0$0;
  83642. addSingleExpression.call$2$number(_this._stylesheet0$_number$0(), true);
  83643. break;
  83644. case 97:
  83645. if (!_this.get$plainCss() && _this.scanIdentifier$1("and"))
  83646. addOperator.call$1(C.BinaryOperator_and_and_20);
  83647. else
  83648. addSingleExpression.call$1(_this.identifierLike$0());
  83649. break;
  83650. case 111:
  83651. if (!_this.get$plainCss() && _this.scanIdentifier$1("or"))
  83652. addOperator.call$1(C.BinaryOperator_or_or_10);
  83653. else
  83654. addSingleExpression.call$1(_this.identifierLike$0());
  83655. break;
  83656. case 117:
  83657. case 85:
  83658. if (t2.peekChar$1(1) === 43)
  83659. addSingleExpression.call$1(_this._stylesheet0$_unicodeRange$0());
  83660. else
  83661. addSingleExpression.call$1(_this.identifierLike$0());
  83662. break;
  83663. case 98:
  83664. case 99:
  83665. case 100:
  83666. case 101:
  83667. case 102:
  83668. case 103:
  83669. case 104:
  83670. case 105:
  83671. case 106:
  83672. case 107:
  83673. case 108:
  83674. case 109:
  83675. case 110:
  83676. case 112:
  83677. case 113:
  83678. case 114:
  83679. case 115:
  83680. case 116:
  83681. case 118:
  83682. case 119:
  83683. case 120:
  83684. case 121:
  83685. case 122:
  83686. case 65:
  83687. case 66:
  83688. case 67:
  83689. case 68:
  83690. case 69:
  83691. case 70:
  83692. case 71:
  83693. case 72:
  83694. case 73:
  83695. case 74:
  83696. case 75:
  83697. case 76:
  83698. case 77:
  83699. case 78:
  83700. case 79:
  83701. case 80:
  83702. case 81:
  83703. case 82:
  83704. case 83:
  83705. case 84:
  83706. case 86:
  83707. case 87:
  83708. case 88:
  83709. case 89:
  83710. case 90:
  83711. case 95:
  83712. case 92:
  83713. addSingleExpression.call$1(_this.identifierLike$0());
  83714. break;
  83715. case 44:
  83716. if (_this._stylesheet0$_inParentheses) {
  83717. _this._stylesheet0$_inParentheses = false;
  83718. if (_box_0.allowSlash) {
  83719. resetState.call$0();
  83720. break;
  83721. }
  83722. }
  83723. if (_box_0.commaExpressions == null)
  83724. _box_0.commaExpressions = H.setRuntimeTypeInfo([], t3);
  83725. if (_box_0.singleExpression == null)
  83726. t2.error$1(_s20_);
  83727. resolveSpaceExpressions.call$0();
  83728. _box_0.commaExpressions.push(_box_0.singleExpression);
  83729. t2.readChar$0();
  83730. _box_0.allowSlash = true;
  83731. _box_0.singleExpression = null;
  83732. break;
  83733. default:
  83734. if (first != null && first >= 128) {
  83735. addSingleExpression.call$1(_this.identifierLike$0());
  83736. break;
  83737. } else
  83738. break $label0$0;
  83739. }
  83740. }
  83741. if (bracketList)
  83742. t2.expectChar$1(93);
  83743. if (_box_0.commaExpressions != null) {
  83744. resolveSpaceExpressions.call$0();
  83745. _this._stylesheet0$_inParentheses = wasInParentheses;
  83746. t1 = _box_0.singleExpression;
  83747. if (t1 != null)
  83748. _box_0.commaExpressions.push(t1);
  83749. t1 = _box_0.commaExpressions;
  83750. t2 = bracketList ? t2.spanFrom$1(beforeBracket) : null;
  83751. t1 = P.List_List$unmodifiable(t1, type$.Expression_2);
  83752. return new D.ListExpression0(t1, C.ListSeparator_comma0, bracketList, t2 == null ? B.spanForList0(t1) : t2);
  83753. } else if (bracketList && _box_0.spaceExpressions != null && _box_0.singleEqualsOperand == null) {
  83754. resolveOperations.call$0();
  83755. t1 = _box_0.spaceExpressions;
  83756. t1.push(_box_0.singleExpression);
  83757. t2 = t2.spanFrom$1(beforeBracket);
  83758. t1 = P.List_List$unmodifiable(t1, type$.Expression_2);
  83759. return new D.ListExpression0(t1, C.ListSeparator_space0, true, t2);
  83760. } else {
  83761. resolveSpaceExpressions.call$0();
  83762. if (bracketList) {
  83763. t1 = H.setRuntimeTypeInfo([_box_0.singleExpression], t3);
  83764. t2 = t2.spanFrom$1(beforeBracket);
  83765. t1 = P.List_List$unmodifiable(t1, type$.Expression_2);
  83766. _box_0.singleExpression = new D.ListExpression0(t1, C.ListSeparator_undecided0, true, t2);
  83767. }
  83768. return _box_0.singleExpression;
  83769. }
  83770. },
  83771. expression$2$singleEquals$until: function(singleEquals, until) {
  83772. return this.expression$3$bracketList$singleEquals$until(false, singleEquals, until);
  83773. },
  83774. expression$1$bracketList: function(bracketList) {
  83775. return this.expression$3$bracketList$singleEquals$until(bracketList, false, null);
  83776. },
  83777. expression$0: function() {
  83778. return this.expression$3$bracketList$singleEquals$until(false, false, null);
  83779. },
  83780. expression$1$singleEquals: function(singleEquals) {
  83781. return this.expression$3$bracketList$singleEquals$until(false, singleEquals, null);
  83782. },
  83783. expression$1$until: function(until) {
  83784. return this.expression$3$bracketList$singleEquals$until(false, false, until);
  83785. },
  83786. _stylesheet0$_expressionUntilComma$1$singleEquals: function(singleEquals) {
  83787. return this.expression$2$singleEquals$until(singleEquals, new V.StylesheetParser__expressionUntilComma_closure0(this));
  83788. },
  83789. _stylesheet0$_expressionUntilComma$0: function() {
  83790. return this._stylesheet0$_expressionUntilComma$1$singleEquals(false);
  83791. },
  83792. _stylesheet0$_singleExpression$0: function() {
  83793. var next, _this = this,
  83794. t1 = _this.scanner,
  83795. first = t1.peekChar$0();
  83796. switch (first) {
  83797. case 40:
  83798. return _this._stylesheet0$_parentheses$0();
  83799. case 47:
  83800. return _this._stylesheet0$_unaryOperation$0();
  83801. case 46:
  83802. return _this._stylesheet0$_number$0();
  83803. case 91:
  83804. return _this.expression$1$bracketList(true);
  83805. case 36:
  83806. return _this._stylesheet0$_variable$0();
  83807. case 38:
  83808. return _this._stylesheet0$_selector$0();
  83809. case 39:
  83810. case 34:
  83811. return _this.interpolatedString$0();
  83812. case 35:
  83813. return _this._stylesheet0$_hashExpression$0();
  83814. case 43:
  83815. next = t1.peekChar$1(1);
  83816. return T.isDigit0(next) || next === 46 ? _this._stylesheet0$_number$0() : _this._stylesheet0$_unaryOperation$0();
  83817. case 45:
  83818. return _this._stylesheet0$_minusExpression$0();
  83819. case 33:
  83820. return _this._stylesheet0$_importantExpression$0();
  83821. case 117:
  83822. case 85:
  83823. if (t1.peekChar$1(1) === 43)
  83824. return _this._stylesheet0$_unicodeRange$0();
  83825. else
  83826. return _this.identifierLike$0();
  83827. case 48:
  83828. case 49:
  83829. case 50:
  83830. case 51:
  83831. case 52:
  83832. case 53:
  83833. case 54:
  83834. case 55:
  83835. case 56:
  83836. case 57:
  83837. return _this._stylesheet0$_number$0();
  83838. case 97:
  83839. case 98:
  83840. case 99:
  83841. case 100:
  83842. case 101:
  83843. case 102:
  83844. case 103:
  83845. case 104:
  83846. case 105:
  83847. case 106:
  83848. case 107:
  83849. case 108:
  83850. case 109:
  83851. case 110:
  83852. case 111:
  83853. case 112:
  83854. case 113:
  83855. case 114:
  83856. case 115:
  83857. case 116:
  83858. case 118:
  83859. case 119:
  83860. case 120:
  83861. case 121:
  83862. case 122:
  83863. case 65:
  83864. case 66:
  83865. case 67:
  83866. case 68:
  83867. case 69:
  83868. case 70:
  83869. case 71:
  83870. case 72:
  83871. case 73:
  83872. case 74:
  83873. case 75:
  83874. case 76:
  83875. case 77:
  83876. case 78:
  83877. case 79:
  83878. case 80:
  83879. case 81:
  83880. case 82:
  83881. case 83:
  83882. case 84:
  83883. case 86:
  83884. case 87:
  83885. case 88:
  83886. case 89:
  83887. case 90:
  83888. case 95:
  83889. case 92:
  83890. return _this.identifierLike$0();
  83891. default:
  83892. if (first != null && first >= 128)
  83893. return _this.identifierLike$0();
  83894. t1.error$1("Expected expression.");
  83895. }
  83896. },
  83897. _stylesheet0$_parentheses$0: function() {
  83898. var wasInParentheses, start, first, expressions, t1, t2, _this = this;
  83899. if (_this.get$plainCss())
  83900. _this.scanner.error$2$length("Parentheses aren't allowed in plain CSS.", 1);
  83901. wasInParentheses = _this._stylesheet0$_inParentheses;
  83902. _this._stylesheet0$_inParentheses = true;
  83903. try {
  83904. t1 = _this.scanner;
  83905. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  83906. t1.expectChar$1(40);
  83907. _this.whitespace$0();
  83908. if (!_this._stylesheet0$_lookingAtExpression$0()) {
  83909. t1.expectChar$1(41);
  83910. t2 = H.setRuntimeTypeInfo([], type$.JSArray_Expression_2);
  83911. t1 = t1.spanFrom$1(start);
  83912. t2 = P.List_List$unmodifiable(t2, type$.Expression_2);
  83913. return new D.ListExpression0(t2, C.ListSeparator_undecided0, false, t1);
  83914. }
  83915. first = _this._stylesheet0$_expressionUntilComma$0();
  83916. if (t1.scanChar$1(58)) {
  83917. _this.whitespace$0();
  83918. t1 = _this._stylesheet0$_map$2(first, start);
  83919. return t1;
  83920. }
  83921. if (!t1.scanChar$1(44)) {
  83922. t1.expectChar$1(41);
  83923. t1 = t1.spanFrom$1(start);
  83924. return new T.ParenthesizedExpression0(first, t1);
  83925. }
  83926. _this.whitespace$0();
  83927. expressions = H.setRuntimeTypeInfo([first], type$.JSArray_Expression_2);
  83928. for (; true;) {
  83929. if (!_this._stylesheet0$_lookingAtExpression$0())
  83930. break;
  83931. J.add$1$ax(expressions, _this._stylesheet0$_expressionUntilComma$0());
  83932. if (!t1.scanChar$1(44))
  83933. break;
  83934. _this.whitespace$0();
  83935. }
  83936. t1.expectChar$1(41);
  83937. t1 = t1.spanFrom$1(start);
  83938. t2 = P.List_List$unmodifiable(expressions, type$.Expression_2);
  83939. return new D.ListExpression0(t2, C.ListSeparator_comma0, false, t1);
  83940. } finally {
  83941. _this._stylesheet0$_inParentheses = wasInParentheses;
  83942. }
  83943. },
  83944. _stylesheet0$_map$2: function(first, start) {
  83945. var t2, key, _this = this,
  83946. t1 = type$.Tuple2_Expression_Expression_2,
  83947. pairs = H.setRuntimeTypeInfo([new S.Tuple2(first, _this._stylesheet0$_expressionUntilComma$0(), t1)], type$.JSArray_Tuple2_Expression_Expression_2);
  83948. for (t2 = _this.scanner; t2.scanChar$1(44);) {
  83949. _this.whitespace$0();
  83950. if (!_this._stylesheet0$_lookingAtExpression$0())
  83951. break;
  83952. key = _this._stylesheet0$_expressionUntilComma$0();
  83953. t2.expectChar$1(58);
  83954. _this.whitespace$0();
  83955. pairs.push(new S.Tuple2(key, _this._stylesheet0$_expressionUntilComma$0(), t1));
  83956. }
  83957. t2.expectChar$1(41);
  83958. t2 = t2.spanFrom$1(start);
  83959. return new A.MapExpression0(P.List_List$unmodifiable(pairs, t1), t2);
  83960. },
  83961. _stylesheet0$_hashExpression$0: function() {
  83962. var start, first, t2, identifier, buffer, _this = this,
  83963. t1 = _this.scanner;
  83964. if (t1.peekChar$1(1) === 123)
  83965. return _this.identifierLike$0();
  83966. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  83967. t1.expectChar$1(35);
  83968. first = t1.peekChar$0();
  83969. if (first != null && T.isDigit0(first))
  83970. return new K.ColorExpression0(_this._stylesheet0$_hexColorContents$1(start));
  83971. t2 = t1._string_scanner$_position;
  83972. identifier = _this.interpolatedIdentifier$0();
  83973. if (_this._stylesheet0$_isHexColor$1(identifier)) {
  83974. t1.set$state(new S._SpanScannerState(t1, t2));
  83975. return new K.ColorExpression0(_this._stylesheet0$_hexColorContents$1(start));
  83976. }
  83977. t2 = new P.StringBuffer("");
  83978. buffer = new Z.InterpolationBuffer0(t2, []);
  83979. t2._contents += H.Primitives_stringFromCharCode(35);
  83980. buffer.addInterpolation$1(identifier);
  83981. return new D.StringExpression0(buffer.interpolation$1(t1.spanFrom$1(start)), false);
  83982. },
  83983. _stylesheet0$_hexColorContents$1: function(start) {
  83984. var red, green, blue, alpha, digit4, t2, t3, _this = this,
  83985. digit1 = _this._stylesheet0$_hexDigit$0(),
  83986. digit2 = _this._stylesheet0$_hexDigit$0(),
  83987. digit3 = _this._stylesheet0$_hexDigit$0(),
  83988. t1 = _this.scanner;
  83989. if (!T.isHex0(t1.peekChar$0())) {
  83990. red = (digit1 << 4 >>> 0) + digit1;
  83991. green = (digit2 << 4 >>> 0) + digit2;
  83992. blue = (digit3 << 4 >>> 0) + digit3;
  83993. alpha = 1;
  83994. } else {
  83995. digit4 = _this._stylesheet0$_hexDigit$0();
  83996. t2 = digit1 << 4 >>> 0;
  83997. t3 = digit3 << 4 >>> 0;
  83998. if (!T.isHex0(t1.peekChar$0())) {
  83999. red = t2 + digit1;
  84000. green = (digit2 << 4 >>> 0) + digit2;
  84001. blue = t3 + digit3;
  84002. alpha = ((digit4 << 4 >>> 0) + digit4) / 255;
  84003. } else {
  84004. red = t2 + digit2;
  84005. green = t3 + digit4;
  84006. blue = (_this._stylesheet0$_hexDigit$0() << 4 >>> 0) + _this._stylesheet0$_hexDigit$0();
  84007. alpha = T.isHex0(t1.peekChar$0()) ? ((_this._stylesheet0$_hexDigit$0() << 4 >>> 0) + _this._stylesheet0$_hexDigit$0()) / 255 : 1;
  84008. }
  84009. }
  84010. return K.SassColor$rgb0(red, green, blue, alpha, t1.spanFrom$1(start));
  84011. },
  84012. _stylesheet0$_isHexColor$1: function(interpolation) {
  84013. var t1,
  84014. plain = interpolation.get$asPlain();
  84015. if (plain == null)
  84016. return false;
  84017. t1 = plain.length;
  84018. if (t1 !== 3 && t1 !== 4 && t1 !== 6 && t1 !== 8)
  84019. return false;
  84020. t1 = new H.CodeUnits(plain);
  84021. return t1.every$1(t1, T.character0__isHex$closure());
  84022. },
  84023. _stylesheet0$_hexDigit$0: function() {
  84024. var t1 = this.scanner,
  84025. char = t1.peekChar$0();
  84026. if (char == null || !T.isHex0(char))
  84027. t1.error$1("Expected hex digit.");
  84028. return T.asHex0(t1.readChar$0());
  84029. },
  84030. _stylesheet0$_minusExpression$0: function() {
  84031. var _this = this,
  84032. next = _this.scanner.peekChar$1(1);
  84033. if (T.isDigit0(next) || next === 46)
  84034. return _this._stylesheet0$_number$0();
  84035. if (_this._stylesheet0$_lookingAtInterpolatedIdentifier$0())
  84036. return _this.identifierLike$0();
  84037. return _this._stylesheet0$_unaryOperation$0();
  84038. },
  84039. _stylesheet0$_importantExpression$0: function() {
  84040. var t1 = this.scanner,
  84041. t2 = t1._string_scanner$_position;
  84042. t1.readChar$0();
  84043. this.whitespace$0();
  84044. this.expectIdentifier$1("important");
  84045. return new D.StringExpression0(X.Interpolation$0(["!important"], t1.spanFrom$1(new S._SpanScannerState(t1, t2))), false);
  84046. },
  84047. _stylesheet0$_unaryOperation$0: function() {
  84048. var _this = this,
  84049. t1 = _this.scanner,
  84050. t2 = t1._string_scanner$_position,
  84051. operator = _this._stylesheet0$_unaryOperatorFor$1(t1.readChar$0());
  84052. if (operator == null)
  84053. t1.error$2$position("Expected unary operator.", t1._string_scanner$_position - 1);
  84054. else if (_this.get$plainCss() && operator !== C.UnaryOperator_zDx0)
  84055. t1.error$3$length$position("Operators aren't allowed in plain CSS.", 1, t1._string_scanner$_position - 1);
  84056. _this.whitespace$0();
  84057. return new X.UnaryOperationExpression0(operator, _this._stylesheet0$_singleExpression$0(), t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  84058. },
  84059. _stylesheet0$_unaryOperatorFor$1: function(character) {
  84060. switch (character) {
  84061. case 43:
  84062. return C.UnaryOperator_j2w0;
  84063. case 45:
  84064. return C.UnaryOperator_U4G0;
  84065. case 47:
  84066. return C.UnaryOperator_zDx0;
  84067. default:
  84068. return null;
  84069. }
  84070. },
  84071. _stylesheet0$_number$0: function() {
  84072. var number, t4, unit, t5, _this = this,
  84073. t1 = _this.scanner,
  84074. t2 = t1._string_scanner$_position,
  84075. first = t1.peekChar$0(),
  84076. t3 = first === 45,
  84077. sign = t3 ? -1 : 1;
  84078. if (first === 43 || t3)
  84079. t1.readChar$0();
  84080. number = t1.peekChar$0() === 46 ? 0 : _this.naturalNumber$0();
  84081. t3 = _this._stylesheet0$_tryDecimal$1$allowTrailingDot(t1._string_scanner$_position !== t2);
  84082. t4 = _this._stylesheet0$_tryExponent$0();
  84083. if (t1.scanChar$1(37))
  84084. unit = "%";
  84085. else {
  84086. if (_this.lookingAtIdentifier$0())
  84087. t5 = t1.peekChar$0() !== 45 || t1.peekChar$1(1) !== 45;
  84088. else
  84089. t5 = false;
  84090. unit = t5 ? _this.identifier$1$unit(true) : null;
  84091. }
  84092. return new T.NumberExpression0(sign * ((number + t3) * t4), unit, t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  84093. },
  84094. _stylesheet0$_tryDecimal$1$allowTrailingDot: function(allowTrailingDot) {
  84095. var t2,
  84096. t1 = this.scanner,
  84097. start = t1._string_scanner$_position;
  84098. if (t1.peekChar$0() !== 46)
  84099. return 0;
  84100. if (!T.isDigit0(t1.peekChar$1(1))) {
  84101. if (allowTrailingDot)
  84102. return 0;
  84103. t1.error$2$position("Expected digit.", t1._string_scanner$_position + 1);
  84104. }
  84105. t1.readChar$0();
  84106. while (true) {
  84107. t2 = t1.peekChar$0();
  84108. if (!(t2 != null && t2 >= 48 && t2 <= 57))
  84109. break;
  84110. t1.readChar$0();
  84111. }
  84112. return P.double_parse(t1.substring$1(0, start));
  84113. },
  84114. _stylesheet0$_tryExponent$0: function() {
  84115. var next, t2, exponentSign, exponent,
  84116. t1 = this.scanner,
  84117. first = t1.peekChar$0();
  84118. if (first !== 101 && first !== 69)
  84119. return 1;
  84120. next = t1.peekChar$1(1);
  84121. if (!T.isDigit0(next) && next !== 45 && next !== 43)
  84122. return 1;
  84123. t1.readChar$0();
  84124. t2 = next === 45;
  84125. exponentSign = t2 ? -1 : 1;
  84126. if (next === 43 || t2)
  84127. t1.readChar$0();
  84128. if (!T.isDigit0(t1.peekChar$0()))
  84129. t1.error$1("Expected digit.");
  84130. exponent = 0;
  84131. while (true) {
  84132. t2 = t1.peekChar$0();
  84133. if (!(t2 != null && t2 >= 48 && t2 <= 57))
  84134. break;
  84135. exponent = exponent * 10 + (t1.readChar$0() - 48);
  84136. }
  84137. return Math.pow(10, exponentSign * exponent);
  84138. },
  84139. _stylesheet0$_unicodeRange$0: function() {
  84140. var i, j, _this = this,
  84141. t1 = _this.scanner,
  84142. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  84143. _this.expectIdentChar$1(117);
  84144. t1.expectChar$1(43);
  84145. for (i = 0; i < 6; ++i)
  84146. if (!_this.scanCharIf$1(new V.StylesheetParser__unicodeRange_closure1()))
  84147. break;
  84148. if (t1.scanChar$1(63)) {
  84149. ++i;
  84150. for (; i < 6; ++i)
  84151. if (!t1.scanChar$1(63))
  84152. break;
  84153. return new D.StringExpression0(X.Interpolation$0([t1.substring$1(0, start.position)], t1.spanFrom$1(start)), false);
  84154. }
  84155. if (i === 0)
  84156. t1.error$1('Expected hex digit or "?".');
  84157. if (t1.scanChar$1(45)) {
  84158. for (j = 0; j < 6; ++j)
  84159. if (!_this.scanCharIf$1(new V.StylesheetParser__unicodeRange_closure2()))
  84160. break;
  84161. if (j === 0)
  84162. t1.error$1("Expected hex digit.");
  84163. }
  84164. if (_this._stylesheet0$_lookingAtInterpolatedIdentifierBody$0())
  84165. t1.error$1("Expected end of identifier.");
  84166. return new D.StringExpression0(X.Interpolation$0([t1.substring$1(0, start.position)], t1.spanFrom$1(start)), false);
  84167. },
  84168. _stylesheet0$_variable$0: function() {
  84169. var _this = this,
  84170. t1 = _this.scanner,
  84171. start = new S._SpanScannerState(t1, t1._string_scanner$_position),
  84172. $name = _this.variableName$0();
  84173. if (_this.get$plainCss())
  84174. _this.error$2("Sass variables aren't allowed in plain CSS.", t1.spanFrom$1(start));
  84175. return new S.VariableExpression0(null, $name, t1.spanFrom$1(start));
  84176. },
  84177. _stylesheet0$_selector$0: function() {
  84178. var t1, start, _this = this;
  84179. if (_this.get$plainCss())
  84180. _this.scanner.error$2$length("The parent selector isn't allowed in plain CSS.", 1);
  84181. t1 = _this.scanner;
  84182. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  84183. t1.expectChar$1(38);
  84184. if (t1.scanChar$1(38)) {
  84185. _this.logger.warn$2$span('In Sass, "&&" means two copies of the parent selector. You probably want to use "and" instead.', t1.spanFrom$1(start));
  84186. t1.set$position(t1._string_scanner$_position - 1);
  84187. }
  84188. return new T.SelectorExpression0(t1.spanFrom$1(start));
  84189. },
  84190. interpolatedString$0: function() {
  84191. var t3, t4, buffer, next, second, t5,
  84192. t1 = this.scanner,
  84193. t2 = t1._string_scanner$_position,
  84194. quote = t1.readChar$0();
  84195. if (quote !== 39 && quote !== 34)
  84196. t1.error$2$position("Expected string.", t2);
  84197. t3 = new P.StringBuffer("");
  84198. t4 = [];
  84199. buffer = new Z.InterpolationBuffer0(t3, t4);
  84200. for (; true;) {
  84201. next = t1.peekChar$0();
  84202. if (next === quote) {
  84203. t1.readChar$0();
  84204. break;
  84205. } else if (next == null || next === 10 || next === 13 || next === 12)
  84206. t1.error$1("Expected " + H.Primitives_stringFromCharCode(quote) + ".");
  84207. else if (next === 92) {
  84208. second = t1.peekChar$1(1);
  84209. if (second === 10 || second === 13 || second === 12) {
  84210. t1.readChar$0();
  84211. t1.readChar$0();
  84212. if (second === 13)
  84213. t1.scanChar$1(10);
  84214. } else
  84215. t3._contents += H.Primitives_stringFromCharCode(this.escapeCharacter$0());
  84216. } else if (next === 35)
  84217. if (t1.peekChar$1(1) === 123) {
  84218. t5 = this.singleInterpolation$0();
  84219. buffer._interpolation_buffer0$_flushText$0();
  84220. t4.push(t5);
  84221. } else
  84222. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84223. else
  84224. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84225. }
  84226. return new D.StringExpression0(buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2))), true);
  84227. },
  84228. identifierLike$0: function() {
  84229. var invocation, lower, color, specialFunction, $name, _this = this,
  84230. t1 = _this.scanner,
  84231. start = new S._SpanScannerState(t1, t1._string_scanner$_position),
  84232. identifier = _this.interpolatedIdentifier$0(),
  84233. plain = identifier.get$asPlain(),
  84234. t2 = plain == null;
  84235. if (!t2) {
  84236. if (plain === "if") {
  84237. invocation = _this._stylesheet0$_argumentInvocation$0();
  84238. return new L.IfExpression0(invocation, B.spanForList0(H.setRuntimeTypeInfo([identifier, invocation], type$.JSArray_AstNode_2)));
  84239. } else if (plain === "not") {
  84240. _this.whitespace$0();
  84241. return new X.UnaryOperationExpression0(C.UnaryOperator_not_not0, _this._stylesheet0$_singleExpression$0(), identifier.span);
  84242. }
  84243. lower = plain.toLowerCase();
  84244. if (t1.peekChar$0() !== 40) {
  84245. switch (plain) {
  84246. case "false":
  84247. return new Z.BooleanExpression0(false, identifier.span);
  84248. case "null":
  84249. return new O.NullExpression0(identifier.span);
  84250. case "true":
  84251. return new Z.BooleanExpression0(true, identifier.span);
  84252. }
  84253. color = $.$get$colorsByName0().$index(0, lower);
  84254. if (color != null)
  84255. return new K.ColorExpression0(K.SassColor$rgb0(color.get$red(), color.get$green(), color.get$blue(), color.alpha, identifier.span));
  84256. }
  84257. specialFunction = _this.trySpecialFunction$2(lower, start);
  84258. if (specialFunction != null)
  84259. return specialFunction;
  84260. }
  84261. switch (t1.peekChar$0()) {
  84262. case 46:
  84263. if (t1.peekChar$1(1) === 46)
  84264. return new D.StringExpression0(identifier, false);
  84265. t1.readChar$0();
  84266. if (t2)
  84267. _this.error$2("Interpolation isn't allowed in namespaces.", identifier.span);
  84268. if (t1.peekChar$0() === 36) {
  84269. $name = _this.variableName$0();
  84270. _this._stylesheet0$_assertPublic$2($name, new V.StylesheetParser_identifierLike_closure0(_this, start));
  84271. return new S.VariableExpression0(plain, $name, t1.spanFrom$1(start));
  84272. }
  84273. t2 = t1._string_scanner$_position;
  84274. return new F.FunctionExpression0(plain, X.Interpolation$0([_this._stylesheet0$_publicIdentifier$0()], t1.spanFrom$1(new S._SpanScannerState(t1, t2))), _this._stylesheet0$_argumentInvocation$0(), t1.spanFrom$1(start));
  84275. case 40:
  84276. return new F.FunctionExpression0(null, identifier, _this._stylesheet0$_argumentInvocation$0(), t1.spanFrom$1(start));
  84277. default:
  84278. return new D.StringExpression0(identifier, false);
  84279. }
  84280. },
  84281. trySpecialFunction$2: function($name, start) {
  84282. var t1, buffer, t2, t3, next, contents, _this = this, _null = null;
  84283. switch (B.unvendor0($name)) {
  84284. case "calc":
  84285. case "element":
  84286. case "expression":
  84287. if (!_this.scanner.scanChar$1(40))
  84288. return _null;
  84289. t1 = new P.StringBuffer("");
  84290. buffer = new Z.InterpolationBuffer0(t1, []);
  84291. t1._contents = $name;
  84292. t1._contents += H.Primitives_stringFromCharCode(40);
  84293. break;
  84294. case "min":
  84295. case "max":
  84296. t1 = _this.scanner;
  84297. t2 = t1._string_scanner$_position;
  84298. if (!t1.scanChar$1(40))
  84299. return _null;
  84300. _this.whitespace$0();
  84301. t3 = new P.StringBuffer("");
  84302. buffer = new Z.InterpolationBuffer0(t3, []);
  84303. t3._contents = $name;
  84304. t3._contents += H.Primitives_stringFromCharCode(40);
  84305. if (!_this._stylesheet0$_tryMinMaxContents$1(buffer)) {
  84306. t1.set$state(new S._SpanScannerState(t1, t2));
  84307. return _null;
  84308. }
  84309. return new D.StringExpression0(buffer.interpolation$1(t1.spanFrom$1(start)), false);
  84310. case "progid":
  84311. t1 = _this.scanner;
  84312. if (!t1.scanChar$1(58))
  84313. return _null;
  84314. t2 = new P.StringBuffer("");
  84315. buffer = new Z.InterpolationBuffer0(t2, []);
  84316. t2._contents = $name;
  84317. t2._contents += H.Primitives_stringFromCharCode(58);
  84318. next = t1.peekChar$0();
  84319. while (true) {
  84320. if (next != null) {
  84321. if (!(next >= 97 && next <= 122))
  84322. t3 = next >= 65 && next <= 90;
  84323. else
  84324. t3 = true;
  84325. t3 = t3 || next === 46;
  84326. } else
  84327. t3 = false;
  84328. if (!t3)
  84329. break;
  84330. t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84331. next = t1.peekChar$0();
  84332. }
  84333. t1.expectChar$1(40);
  84334. t2._contents += H.Primitives_stringFromCharCode(40);
  84335. break;
  84336. case "url":
  84337. contents = _this._stylesheet0$_tryUrlContents$1(start);
  84338. return contents == null ? _null : new D.StringExpression0(contents, false);
  84339. default:
  84340. return _null;
  84341. }
  84342. buffer.addInterpolation$1(_this._stylesheet0$_interpolatedDeclarationValue$1$allowEmpty(true).text);
  84343. t1 = _this.scanner;
  84344. t1.expectChar$1(41);
  84345. buffer._interpolation_buffer0$_text._contents += H.Primitives_stringFromCharCode(41);
  84346. return new D.StringExpression0(buffer.interpolation$1(t1.spanFrom$1(start)), false);
  84347. },
  84348. _stylesheet0$_tryMinMaxContents$2$allowComma: function(buffer, allowComma) {
  84349. var t1, t2, t3, t4, start, end, exception, t5, _this = this;
  84350. for (t1 = _this.scanner, t2 = buffer._interpolation_buffer0$_text, t3 = !allowComma, t4 = _this.get$_stylesheet0$_number(); true;) {
  84351. switch (t1.peekChar$0()) {
  84352. case 45:
  84353. case 43:
  84354. case 48:
  84355. case 49:
  84356. case 50:
  84357. case 51:
  84358. case 52:
  84359. case 53:
  84360. case 54:
  84361. case 55:
  84362. case 56:
  84363. case 57:
  84364. try {
  84365. start = t1._string_scanner$_position;
  84366. t4.call$0();
  84367. end = t1._string_scanner$_position;
  84368. t2._contents += J.substring$2$s(t1.string, start, end);
  84369. } catch (exception) {
  84370. if (type$.FormatException._is(H.unwrapException(exception)))
  84371. return false;
  84372. else
  84373. throw exception;
  84374. }
  84375. break;
  84376. case 35:
  84377. if (t1.peekChar$1(1) !== 123)
  84378. return false;
  84379. t5 = _this.singleInterpolation$0();
  84380. buffer._interpolation_buffer0$_flushText$0();
  84381. buffer._interpolation_buffer0$_contents.push(t5);
  84382. break;
  84383. case 99:
  84384. case 67:
  84385. if (!_this._stylesheet0$_tryMinMaxFunction$2(buffer, "calc"))
  84386. return false;
  84387. break;
  84388. case 101:
  84389. case 69:
  84390. if (!_this._stylesheet0$_tryMinMaxFunction$2(buffer, "env"))
  84391. return false;
  84392. break;
  84393. case 118:
  84394. case 86:
  84395. if (!_this._stylesheet0$_tryMinMaxFunction$2(buffer, "var"))
  84396. return false;
  84397. break;
  84398. case 40:
  84399. t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84400. if (!_this._stylesheet0$_tryMinMaxContents$2$allowComma(buffer, false))
  84401. return false;
  84402. break;
  84403. case 109:
  84404. case 77:
  84405. t1.readChar$0();
  84406. if (_this.scanIdentChar$1(105)) {
  84407. if (!_this.scanIdentChar$1(110))
  84408. return false;
  84409. t2._contents += "min(";
  84410. } else if (_this.scanIdentChar$1(97)) {
  84411. if (!_this.scanIdentChar$1(120))
  84412. return false;
  84413. t2._contents += "max(";
  84414. } else
  84415. return false;
  84416. if (!t1.scanChar$1(40))
  84417. return false;
  84418. if (!_this._stylesheet0$_tryMinMaxContents$1(buffer))
  84419. return false;
  84420. break;
  84421. default:
  84422. return false;
  84423. }
  84424. _this.whitespace$0();
  84425. switch (t1.peekChar$0()) {
  84426. case 41:
  84427. t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84428. return true;
  84429. case 43:
  84430. case 45:
  84431. case 42:
  84432. case 47:
  84433. t2._contents += H.Primitives_stringFromCharCode(32);
  84434. t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84435. t2._contents += H.Primitives_stringFromCharCode(32);
  84436. break;
  84437. case 44:
  84438. if (t3)
  84439. return false;
  84440. t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84441. t2._contents += H.Primitives_stringFromCharCode(32);
  84442. break;
  84443. default:
  84444. return false;
  84445. }
  84446. _this.whitespace$0();
  84447. }
  84448. },
  84449. _stylesheet0$_tryMinMaxContents$1: function(buffer) {
  84450. return this._stylesheet0$_tryMinMaxContents$2$allowComma(buffer, true);
  84451. },
  84452. _stylesheet0$_tryMinMaxFunction$2: function(buffer, $name) {
  84453. var t1, t2;
  84454. if (!this.scanIdentifier$1($name))
  84455. return false;
  84456. t1 = this.scanner;
  84457. if (!t1.scanChar$1(40))
  84458. return false;
  84459. t2 = buffer._interpolation_buffer0$_text;
  84460. t2._contents += $name;
  84461. t2._contents += H.Primitives_stringFromCharCode(40);
  84462. buffer.addInterpolation$1(this._stylesheet0$_interpolatedDeclarationValue$1$allowEmpty(true).asInterpolation$0());
  84463. t2._contents += H.Primitives_stringFromCharCode(41);
  84464. if (!t1.scanChar$1(41))
  84465. return false;
  84466. return true;
  84467. },
  84468. _stylesheet0$_tryUrlContents$2$name: function(start, $name) {
  84469. var t3, t4, buffer, next, t5, endPosition, _this = this,
  84470. t1 = _this.scanner,
  84471. t2 = t1._string_scanner$_position;
  84472. if (!t1.scanChar$1(40))
  84473. return null;
  84474. _this.whitespaceWithoutComments$0();
  84475. t3 = new P.StringBuffer("");
  84476. t4 = [];
  84477. buffer = new Z.InterpolationBuffer0(t3, t4);
  84478. t3._contents = $name == null ? "url" : $name;
  84479. t3._contents += H.Primitives_stringFromCharCode(40);
  84480. for (; true;) {
  84481. next = t1.peekChar$0();
  84482. if (next == null)
  84483. break;
  84484. else {
  84485. if (next !== 33)
  84486. if (next !== 37)
  84487. if (next !== 38)
  84488. t5 = next >= 42 && next <= 126 || next >= 128;
  84489. else
  84490. t5 = true;
  84491. else
  84492. t5 = true;
  84493. else
  84494. t5 = true;
  84495. if (t5)
  84496. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84497. else if (next === 92)
  84498. t3._contents += H.S(_this.escape$0());
  84499. else if (next === 35)
  84500. if (t1.peekChar$1(1) === 123) {
  84501. t5 = _this.singleInterpolation$0();
  84502. buffer._interpolation_buffer0$_flushText$0();
  84503. t4.push(t5);
  84504. } else
  84505. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84506. else if (next === 32 || next === 9 || next === 10 || next === 13 || next === 12) {
  84507. _this.whitespaceWithoutComments$0();
  84508. if (t1.peekChar$0() !== 41)
  84509. break;
  84510. } else if (next === 41) {
  84511. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84512. endPosition = t1._string_scanner$_position;
  84513. return buffer.interpolation$1(Y._FileSpan$(t1._sourceFile, start.position, endPosition));
  84514. } else
  84515. break;
  84516. }
  84517. }
  84518. t1.set$state(new S._SpanScannerState(t1, t2));
  84519. return null;
  84520. },
  84521. _stylesheet0$_tryUrlContents$1: function(start) {
  84522. return this._stylesheet0$_tryUrlContents$2$name(start, null);
  84523. },
  84524. dynamicUrl$0: function() {
  84525. var contents, _this = this,
  84526. t1 = _this.scanner,
  84527. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  84528. _this.expectIdentifier$1("url");
  84529. contents = _this._stylesheet0$_tryUrlContents$1(start);
  84530. if (contents != null)
  84531. return new D.StringExpression0(contents, false);
  84532. return new F.FunctionExpression0(null, X.Interpolation$0(["url"], t1.spanFrom$1(start)), _this._stylesheet0$_argumentInvocation$0(), t1.spanFrom$1(start));
  84533. },
  84534. almostAnyValue$0: function() {
  84535. var t4, next, commentStart, end, t5, contents, _this = this,
  84536. t1 = _this.scanner,
  84537. t2 = t1._string_scanner$_position,
  84538. t3 = new P.StringBuffer(""),
  84539. buffer = new Z.InterpolationBuffer0(t3, []);
  84540. $label0$1:
  84541. for (t4 = t1.string; true;) {
  84542. next = t1.peekChar$0();
  84543. switch (next) {
  84544. case 92:
  84545. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84546. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84547. break;
  84548. case 34:
  84549. case 39:
  84550. buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
  84551. break;
  84552. case 47:
  84553. commentStart = t1._string_scanner$_position;
  84554. if (_this.scanComment$0()) {
  84555. end = t1._string_scanner$_position;
  84556. t3._contents += J.substring$2$s(t4, commentStart, end);
  84557. } else
  84558. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84559. break;
  84560. case 35:
  84561. if (t1.peekChar$1(1) === 123)
  84562. buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  84563. else
  84564. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84565. break;
  84566. case 13:
  84567. case 10:
  84568. case 12:
  84569. if (_this.get$indented())
  84570. break $label0$1;
  84571. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84572. break;
  84573. case 33:
  84574. case 59:
  84575. case 123:
  84576. case 125:
  84577. break $label0$1;
  84578. case 117:
  84579. case 85:
  84580. t5 = t1._string_scanner$_position;
  84581. if (!_this.scanIdentifier$1("url")) {
  84582. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84583. break;
  84584. }
  84585. contents = _this._stylesheet0$_tryUrlContents$1(new S._SpanScannerState(t1, t5));
  84586. if (contents == null) {
  84587. if (t5 < 0 || t5 > t4.length)
  84588. H.throwExpression(P.ArgumentError$("Invalid position " + t5));
  84589. t1._string_scanner$_position = t5;
  84590. t1._lastMatch = null;
  84591. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84592. } else
  84593. buffer.addInterpolation$1(contents);
  84594. break;
  84595. default:
  84596. if (next == null)
  84597. break $label0$1;
  84598. if (_this.lookingAtIdentifier$0())
  84599. t3._contents += _this.identifier$0();
  84600. else
  84601. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84602. break;
  84603. }
  84604. }
  84605. return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  84606. },
  84607. _stylesheet0$_interpolatedDeclarationValue$1$allowEmpty: function(allowEmpty) {
  84608. var t4, wroteNewline, next, t5, start, end, contents, _this = this,
  84609. t1 = _this.scanner,
  84610. t2 = t1._string_scanner$_position,
  84611. t3 = new P.StringBuffer(""),
  84612. buffer = new Z.InterpolationBuffer0(t3, []),
  84613. brackets = H.setRuntimeTypeInfo([], type$.JSArray_int);
  84614. $label0$1:
  84615. for (t4 = t1.string, wroteNewline = false; true;) {
  84616. next = t1.peekChar$0();
  84617. switch (next) {
  84618. case 92:
  84619. t3._contents += H.S(_this.escape$1$identifierStart(true));
  84620. wroteNewline = false;
  84621. break;
  84622. case 34:
  84623. case 39:
  84624. buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
  84625. wroteNewline = false;
  84626. break;
  84627. case 47:
  84628. if (t1.peekChar$1(1) === 42) {
  84629. t5 = _this.get$loudComment();
  84630. start = t1._string_scanner$_position;
  84631. t5.call$0();
  84632. end = t1._string_scanner$_position;
  84633. t3._contents += J.substring$2$s(t4, start, end);
  84634. } else
  84635. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84636. wroteNewline = false;
  84637. break;
  84638. case 35:
  84639. if (t1.peekChar$1(1) === 123)
  84640. buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  84641. else
  84642. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84643. wroteNewline = false;
  84644. break;
  84645. case 32:
  84646. case 9:
  84647. if (!wroteNewline) {
  84648. t5 = t1.peekChar$1(1);
  84649. t5 = !(t5 === 32 || t5 === 9 || t5 === 10 || t5 === 13 || t5 === 12);
  84650. } else
  84651. t5 = true;
  84652. if (t5)
  84653. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84654. else
  84655. t1.readChar$0();
  84656. break;
  84657. case 10:
  84658. case 13:
  84659. case 12:
  84660. if (_this.get$indented())
  84661. break $label0$1;
  84662. t5 = t1.peekChar$1(-1);
  84663. if (!(t5 === 10 || t5 === 13 || t5 === 12))
  84664. t3._contents += "\n";
  84665. t1.readChar$0();
  84666. wroteNewline = true;
  84667. break;
  84668. case 40:
  84669. case 123:
  84670. case 91:
  84671. t3._contents += H.Primitives_stringFromCharCode(next);
  84672. brackets.push(T.opposite0(t1.readChar$0()));
  84673. wroteNewline = false;
  84674. break;
  84675. case 41:
  84676. case 125:
  84677. case 93:
  84678. if (brackets.length === 0)
  84679. break $label0$1;
  84680. t3._contents += H.Primitives_stringFromCharCode(next);
  84681. t1.expectChar$1(brackets.pop());
  84682. wroteNewline = false;
  84683. break;
  84684. case 59:
  84685. if (brackets.length === 0)
  84686. break $label0$1;
  84687. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84688. break;
  84689. case 117:
  84690. case 85:
  84691. t5 = t1._string_scanner$_position;
  84692. if (!_this.scanIdentifier$1("url")) {
  84693. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84694. wroteNewline = false;
  84695. break;
  84696. }
  84697. contents = _this._stylesheet0$_tryUrlContents$1(new S._SpanScannerState(t1, t5));
  84698. if (contents == null) {
  84699. if (t5 < 0 || t5 > t4.length)
  84700. H.throwExpression(P.ArgumentError$("Invalid position " + t5));
  84701. t1._string_scanner$_position = t5;
  84702. t1._lastMatch = null;
  84703. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84704. } else
  84705. buffer.addInterpolation$1(contents);
  84706. wroteNewline = false;
  84707. break;
  84708. default:
  84709. if (next == null)
  84710. break $label0$1;
  84711. if (_this.lookingAtIdentifier$0())
  84712. t3._contents += _this.identifier$0();
  84713. else
  84714. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84715. wroteNewline = false;
  84716. break;
  84717. }
  84718. }
  84719. if (brackets.length !== 0)
  84720. t1.expectChar$1(C.JSArray_methods.get$last(brackets));
  84721. if (!allowEmpty && buffer._interpolation_buffer0$_contents.length === 0 && t3._contents.length === 0)
  84722. t1.error$1("Expected token.");
  84723. return new D.StringExpression0(buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2))), false);
  84724. },
  84725. _stylesheet0$_interpolatedDeclarationValue$0: function() {
  84726. return this._stylesheet0$_interpolatedDeclarationValue$1$allowEmpty(false);
  84727. },
  84728. interpolatedIdentifier$0: function() {
  84729. var first, _this = this,
  84730. _s20_ = "Expected identifier.",
  84731. t1 = _this.scanner,
  84732. start = new S._SpanScannerState(t1, t1._string_scanner$_position),
  84733. t2 = new P.StringBuffer(""),
  84734. t3 = [],
  84735. buffer = new Z.InterpolationBuffer0(t2, t3);
  84736. if (t1.scanChar$1(45)) {
  84737. t2._contents += H.Primitives_stringFromCharCode(45);
  84738. if (t1.scanChar$1(45)) {
  84739. t2._contents += H.Primitives_stringFromCharCode(45);
  84740. _this._stylesheet0$_interpolatedIdentifierBody$1(buffer);
  84741. return buffer.interpolation$1(t1.spanFrom$1(start));
  84742. }
  84743. }
  84744. first = t1.peekChar$0();
  84745. if (first == null)
  84746. t1.error$1(_s20_);
  84747. else if (first === 95 || T.isAlphabetic1(first) || first >= 128)
  84748. t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84749. else if (first === 92)
  84750. t2._contents += H.S(_this.escape$1$identifierStart(true));
  84751. else if (first === 35 && t1.peekChar$1(1) === 123) {
  84752. t2 = _this.singleInterpolation$0();
  84753. buffer._interpolation_buffer0$_flushText$0();
  84754. t3.push(t2);
  84755. } else
  84756. t1.error$1(_s20_);
  84757. _this._stylesheet0$_interpolatedIdentifierBody$1(buffer);
  84758. return buffer.interpolation$1(t1.spanFrom$1(start));
  84759. },
  84760. _stylesheet0$_interpolatedIdentifierBody$1: function(buffer) {
  84761. var t1, t2, t3, next, t4;
  84762. for (t1 = buffer._interpolation_buffer0$_contents, t2 = this.scanner, t3 = buffer._interpolation_buffer0$_text; true;) {
  84763. next = t2.peekChar$0();
  84764. if (next == null)
  84765. break;
  84766. else {
  84767. if (next !== 95)
  84768. if (next !== 45) {
  84769. if (!(next >= 97 && next <= 122))
  84770. t4 = next >= 65 && next <= 90;
  84771. else
  84772. t4 = true;
  84773. if (!t4)
  84774. t4 = next >= 48 && next <= 57;
  84775. else
  84776. t4 = true;
  84777. t4 = t4 || next >= 128;
  84778. } else
  84779. t4 = true;
  84780. else
  84781. t4 = true;
  84782. if (t4)
  84783. t3._contents += H.Primitives_stringFromCharCode(t2.readChar$0());
  84784. else if (next === 92)
  84785. t3._contents += H.S(this.escape$0());
  84786. else if (next === 35 && t2.peekChar$1(1) === 123) {
  84787. t4 = this.singleInterpolation$0();
  84788. buffer._interpolation_buffer0$_flushText$0();
  84789. t1.push(t4);
  84790. } else
  84791. break;
  84792. }
  84793. }
  84794. },
  84795. singleInterpolation$0: function() {
  84796. var contents, _this = this,
  84797. t1 = _this.scanner,
  84798. t2 = t1._string_scanner$_position;
  84799. t1.expect$1("#{");
  84800. _this.whitespace$0();
  84801. contents = _this.expression$0();
  84802. t1.expectChar$1(125);
  84803. if (_this.get$plainCss())
  84804. _this.error$2("Interpolation isn't allowed in plain CSS.", t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  84805. return contents;
  84806. },
  84807. _stylesheet0$_mediaQueryList$0: function() {
  84808. var t1 = this.scanner,
  84809. t2 = t1._string_scanner$_position,
  84810. t3 = new P.StringBuffer(""),
  84811. buffer = new Z.InterpolationBuffer0(t3, []);
  84812. for (; true;) {
  84813. this.whitespace$0();
  84814. this._stylesheet0$_mediaQuery$1(buffer);
  84815. if (!t1.scanChar$1(44))
  84816. break;
  84817. t3._contents += H.Primitives_stringFromCharCode(44);
  84818. t3._contents += H.Primitives_stringFromCharCode(32);
  84819. }
  84820. return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  84821. },
  84822. _stylesheet0$_mediaQuery$1: function(buffer) {
  84823. var t1, identifier, _this = this;
  84824. if (_this.scanner.peekChar$0() !== 40) {
  84825. buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  84826. _this.whitespace$0();
  84827. if (!_this._stylesheet0$_lookingAtInterpolatedIdentifier$0())
  84828. return;
  84829. t1 = buffer._interpolation_buffer0$_text;
  84830. t1._contents += H.Primitives_stringFromCharCode(32);
  84831. identifier = _this.interpolatedIdentifier$0();
  84832. _this.whitespace$0();
  84833. if (B.equalsIgnoreCase0(identifier.get$asPlain(), "and"))
  84834. t1._contents += " and ";
  84835. else {
  84836. buffer.addInterpolation$1(identifier);
  84837. if (_this.scanIdentifier$1("and")) {
  84838. _this.whitespace$0();
  84839. t1._contents += " and ";
  84840. } else
  84841. return;
  84842. }
  84843. }
  84844. for (t1 = buffer._interpolation_buffer0$_text; true;) {
  84845. _this.whitespace$0();
  84846. buffer.addInterpolation$1(_this._stylesheet0$_mediaFeature$0());
  84847. _this.whitespace$0();
  84848. if (!_this.scanIdentifier$1("and"))
  84849. break;
  84850. t1._contents += " and ";
  84851. }
  84852. },
  84853. _stylesheet0$_mediaFeature$0: function() {
  84854. var interpolation, t2, t3, t4, buffer, t5, next, isAngle, _this = this,
  84855. t1 = _this.scanner;
  84856. if (t1.peekChar$0() === 35) {
  84857. interpolation = _this.singleInterpolation$0();
  84858. return X.Interpolation$0([interpolation], interpolation.get$span());
  84859. }
  84860. t2 = t1._string_scanner$_position;
  84861. t3 = new P.StringBuffer("");
  84862. t4 = [];
  84863. buffer = new Z.InterpolationBuffer0(t3, t4);
  84864. t1.expectChar$1(40);
  84865. t3._contents += H.Primitives_stringFromCharCode(40);
  84866. _this.whitespace$0();
  84867. t5 = _this._stylesheet0$_expressionUntilComparison$0();
  84868. buffer._interpolation_buffer0$_flushText$0();
  84869. t4.push(t5);
  84870. if (t1.scanChar$1(58)) {
  84871. _this.whitespace$0();
  84872. t3._contents += H.Primitives_stringFromCharCode(58);
  84873. t3._contents += H.Primitives_stringFromCharCode(32);
  84874. t5 = _this.expression$0();
  84875. buffer._interpolation_buffer0$_flushText$0();
  84876. t4.push(t5);
  84877. } else {
  84878. next = t1.peekChar$0();
  84879. isAngle = next === 60 || next === 62;
  84880. if (isAngle || next === 61) {
  84881. t3._contents += H.Primitives_stringFromCharCode(32);
  84882. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84883. if (isAngle && t1.scanChar$1(61))
  84884. t3._contents += H.Primitives_stringFromCharCode(61);
  84885. t3._contents += H.Primitives_stringFromCharCode(32);
  84886. _this.whitespace$0();
  84887. t5 = _this._stylesheet0$_expressionUntilComparison$0();
  84888. buffer._interpolation_buffer0$_flushText$0();
  84889. t4.push(t5);
  84890. if (isAngle && t1.scanChar$1(next)) {
  84891. t3._contents += H.Primitives_stringFromCharCode(32);
  84892. t3._contents += H.Primitives_stringFromCharCode(next);
  84893. if (t1.scanChar$1(61))
  84894. t3._contents += H.Primitives_stringFromCharCode(61);
  84895. t3._contents += H.Primitives_stringFromCharCode(32);
  84896. _this.whitespace$0();
  84897. t5 = _this._stylesheet0$_expressionUntilComparison$0();
  84898. buffer._interpolation_buffer0$_flushText$0();
  84899. t4.push(t5);
  84900. }
  84901. }
  84902. }
  84903. t1.expectChar$1(41);
  84904. _this.whitespace$0();
  84905. t3._contents += H.Primitives_stringFromCharCode(41);
  84906. return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  84907. },
  84908. _stylesheet0$_expressionUntilComparison$0: function() {
  84909. return this.expression$1$until(new V.StylesheetParser__expressionUntilComparison_closure0(this));
  84910. },
  84911. _stylesheet0$_supportsCondition$0: function() {
  84912. var condition, operator, right, endPosition, lowerOperator, _this = this,
  84913. t1 = _this.scanner,
  84914. t2 = t1._string_scanner$_position,
  84915. first = t1.peekChar$0();
  84916. if (first !== 40 && first !== 35) {
  84917. t2 = t1._string_scanner$_position;
  84918. _this.expectIdentifier$1("not");
  84919. _this.whitespace$0();
  84920. return new M.SupportsNegation0(_this._stylesheet0$_supportsConditionInParens$0(), t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  84921. }
  84922. condition = _this._stylesheet0$_supportsConditionInParens$0();
  84923. _this.whitespace$0();
  84924. for (; _this.lookingAtIdentifier$0();) {
  84925. if (_this.scanIdentifier$1("or"))
  84926. operator = "or";
  84927. else {
  84928. _this.expectIdentifier$1("and");
  84929. operator = "and";
  84930. }
  84931. _this.whitespace$0();
  84932. right = _this._stylesheet0$_supportsConditionInParens$0();
  84933. endPosition = t1._string_scanner$_position;
  84934. condition = new U.SupportsOperation0(condition, right, operator, Y._FileSpan$(t1._sourceFile, t2, endPosition));
  84935. lowerOperator = operator.toLowerCase();
  84936. if (lowerOperator !== "and" && lowerOperator !== "or")
  84937. H.throwExpression(P.ArgumentError$value(operator, "operator", 'may only be "and" or "or".'));
  84938. _this.whitespace$0();
  84939. }
  84940. return condition;
  84941. },
  84942. _stylesheet0$_supportsConditionInParens$0: function() {
  84943. var next, condition, negation, $name, value, _this = this,
  84944. t1 = _this.scanner,
  84945. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  84946. if (t1.peekChar$0() === 35)
  84947. return new X.SupportsInterpolation0(_this.singleInterpolation$0(), t1.spanFrom$1(start));
  84948. t1.expectChar$1(40);
  84949. _this.whitespace$0();
  84950. next = t1.peekChar$0();
  84951. if (next === 40 || next === 35) {
  84952. condition = _this._stylesheet0$_supportsCondition$0();
  84953. _this.whitespace$0();
  84954. t1.expectChar$1(41);
  84955. return condition;
  84956. }
  84957. if (next === 110 || next === 78) {
  84958. negation = _this._stylesheet0$_trySupportsNegation$0();
  84959. if (negation != null) {
  84960. t1.expectChar$1(41);
  84961. return negation;
  84962. }
  84963. }
  84964. $name = _this.expression$0();
  84965. t1.expectChar$1(58);
  84966. _this.whitespace$0();
  84967. value = _this.expression$0();
  84968. t1.expectChar$1(41);
  84969. return new L.SupportsDeclaration0($name, value, t1.spanFrom$1(start));
  84970. },
  84971. _stylesheet0$_trySupportsNegation$0: function() {
  84972. var next, _this = this,
  84973. t1 = _this.scanner,
  84974. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  84975. if (!_this.scanIdentifier$1("not") || t1._string_scanner$_position === t1.string.length) {
  84976. t1.set$state(start);
  84977. return null;
  84978. }
  84979. next = t1.peekChar$0();
  84980. if (!(next === 32 || next === 9 || T.isNewline0(next)) && next !== 40) {
  84981. t1.set$state(start);
  84982. return null;
  84983. }
  84984. _this.whitespace$0();
  84985. return new M.SupportsNegation0(_this._stylesheet0$_supportsConditionInParens$0(), t1.spanFrom$1(start));
  84986. },
  84987. _stylesheet0$_lookingAtInterpolatedIdentifier$0: function() {
  84988. var second,
  84989. t1 = this.scanner,
  84990. first = t1.peekChar$0();
  84991. if (first == null)
  84992. return false;
  84993. if (first === 95 || T.isAlphabetic1(first) || first >= 128 || first === 92)
  84994. return true;
  84995. if (first === 35)
  84996. return t1.peekChar$1(1) === 123;
  84997. if (first !== 45)
  84998. return false;
  84999. second = t1.peekChar$1(1);
  85000. if (second == null)
  85001. return false;
  85002. if (second === 35)
  85003. return t1.peekChar$1(2) === 123;
  85004. return second === 95 || T.isAlphabetic1(second) || second >= 128 || second === 92 || second === 45;
  85005. },
  85006. _stylesheet0$_lookingAtInterpolatedIdentifierBody$0: function() {
  85007. var t1 = this.scanner,
  85008. first = t1.peekChar$0();
  85009. if (first == null)
  85010. return false;
  85011. if (first === 95 || T.isAlphabetic1(first) || first >= 128 || T.isDigit0(first) || first === 45 || first === 92)
  85012. return true;
  85013. return first === 35 && t1.peekChar$1(1) === 123;
  85014. },
  85015. _stylesheet0$_lookingAtExpression$0: function() {
  85016. var next,
  85017. t1 = this.scanner,
  85018. character = t1.peekChar$0();
  85019. if (character == null)
  85020. return false;
  85021. if (character === 46)
  85022. return t1.peekChar$1(1) !== 46;
  85023. if (character === 33) {
  85024. next = t1.peekChar$1(1);
  85025. if (next != null)
  85026. if ((next | 32) !== 105)
  85027. t1 = next === 32 || next === 9 || T.isNewline0(next);
  85028. else
  85029. t1 = true;
  85030. else
  85031. t1 = true;
  85032. return t1;
  85033. }
  85034. if (character !== 40)
  85035. if (character !== 47)
  85036. if (character !== 91)
  85037. if (character !== 39)
  85038. if (character !== 34)
  85039. if (character !== 35)
  85040. if (character !== 43)
  85041. if (character !== 45)
  85042. if (character !== 92)
  85043. if (character !== 36)
  85044. if (character !== 38)
  85045. t1 = character === 95 || T.isAlphabetic1(character) || character >= 128 || T.isDigit0(character);
  85046. else
  85047. t1 = true;
  85048. else
  85049. t1 = true;
  85050. else
  85051. t1 = true;
  85052. else
  85053. t1 = true;
  85054. else
  85055. t1 = true;
  85056. else
  85057. t1 = true;
  85058. else
  85059. t1 = true;
  85060. else
  85061. t1 = true;
  85062. else
  85063. t1 = true;
  85064. else
  85065. t1 = true;
  85066. else
  85067. t1 = true;
  85068. return t1;
  85069. },
  85070. _stylesheet0$_withChildren$1$3: function(child, start, create) {
  85071. var result = create.call$2(this.children$1(child), this.scanner.spanFrom$1(start));
  85072. this.whitespaceWithoutComments$0();
  85073. return result;
  85074. },
  85075. _stylesheet0$_withChildren$3: function(child, start, create) {
  85076. return this._stylesheet0$_withChildren$1$3(child, start, create, type$.dynamic);
  85077. },
  85078. _stylesheet0$_urlString$0: function() {
  85079. var innerError, t2, exception,
  85080. t1 = this.scanner,
  85081. start = new S._SpanScannerState(t1, t1._string_scanner$_position),
  85082. url = this.string$0();
  85083. try {
  85084. t2 = P.Uri_parse(url);
  85085. return t2;
  85086. } catch (exception) {
  85087. t2 = H.unwrapException(exception);
  85088. if (type$.FormatException._is(t2)) {
  85089. innerError = t2;
  85090. this.error$2("Invalid URL: " + H.S(J.get$message$x(innerError)), t1.spanFrom$1(start));
  85091. } else
  85092. throw exception;
  85093. }
  85094. },
  85095. _stylesheet0$_publicIdentifier$0: function() {
  85096. var _this = this,
  85097. t1 = _this.scanner,
  85098. t2 = t1._string_scanner$_position,
  85099. result = _this.identifier$1$normalize(true);
  85100. _this._stylesheet0$_assertPublic$2(result, new V.StylesheetParser__publicIdentifier_closure0(_this, new S._SpanScannerState(t1, t2)));
  85101. return result;
  85102. },
  85103. _stylesheet0$_assertPublic$2: function(identifier, span) {
  85104. if (!T.isPrivate0(identifier))
  85105. return;
  85106. this.error$2("Private members can't be accessed from outside their modules.", span.call$0());
  85107. },
  85108. get$plainCss: function() {
  85109. return false;
  85110. }
  85111. };
  85112. V.StylesheetParser_parse_closure0.prototype = {
  85113. call$0: function() {
  85114. var statements, t4,
  85115. t1 = this.$this,
  85116. t2 = t1.scanner,
  85117. t3 = t2._string_scanner$_position;
  85118. t2.scanChar$1(65279);
  85119. statements = t1.statements$1(new V.StylesheetParser_parse__closure1(t1));
  85120. t2.expectDone$0();
  85121. t4 = t1._stylesheet0$_globalVariables.get$values();
  85122. C.JSArray_methods.addAll$1(statements, H.MappedIterable_MappedIterable(t4, new V.StylesheetParser_parse__closure2(), H._instanceType(t4)._eval$1("Iterable.E"), type$.Statement_2));
  85123. return V.Stylesheet$0(statements, t2.spanFrom$1(new S._SpanScannerState(t2, t3)), t1.get$plainCss());
  85124. },
  85125. $signature: 88
  85126. };
  85127. V.StylesheetParser_parse__closure1.prototype = {
  85128. call$0: function() {
  85129. return this.$this._stylesheet0$_statement$1$root(true);
  85130. },
  85131. $signature: 39
  85132. };
  85133. V.StylesheetParser_parse__closure2.prototype = {
  85134. call$1: function(declaration) {
  85135. return Z.VariableDeclaration$0(declaration.name, new O.NullExpression0(declaration.expression.get$span()), declaration.span, null, false, true, null);
  85136. }
  85137. };
  85138. V.StylesheetParser_parseArgumentDeclaration_closure0.prototype = {
  85139. call$0: function() {
  85140. var $arguments,
  85141. t1 = this.$this,
  85142. t2 = t1.scanner;
  85143. t2.expectChar$2$name(64, "@-rule");
  85144. t1.identifier$0();
  85145. t1.whitespace$0();
  85146. t1.identifier$0();
  85147. $arguments = t1._stylesheet0$_argumentDeclaration$0();
  85148. t1.whitespace$0();
  85149. t2.expectChar$1(123);
  85150. return $arguments;
  85151. },
  85152. $signature: 145
  85153. };
  85154. V.StylesheetParser__parseSingleProduction_closure0.prototype = {
  85155. call$0: function() {
  85156. var result = this.production.call$0();
  85157. this.$this.scanner.expectDone$0();
  85158. return result;
  85159. },
  85160. $signature: function() {
  85161. return this.T._eval$1("0()");
  85162. }
  85163. };
  85164. V.StylesheetParser_parseSignature_closure.prototype = {
  85165. call$0: function() {
  85166. var t2, $arguments, t3,
  85167. t1 = this.$this,
  85168. $name = t1.identifier$0();
  85169. t1.whitespace$0();
  85170. t2 = t1.scanner;
  85171. if (t2.peekChar$0() === 40)
  85172. $arguments = t1._stylesheet0$_argumentDeclaration$0();
  85173. else {
  85174. t1 = Y.FileLocation$_(t2._sourceFile, t2._string_scanner$_position);
  85175. t3 = t1.offset;
  85176. $arguments = new B.ArgumentDeclaration0(C.List_empty20, null, Y._FileSpan$(t1.file, t3, t3));
  85177. }
  85178. t2.expectDone$0();
  85179. return new S.Tuple2($name, $arguments, type$.Tuple2_String_ArgumentDeclaration);
  85180. },
  85181. $signature: 146
  85182. };
  85183. V.StylesheetParser__statement_closure0.prototype = {
  85184. call$0: function() {
  85185. return this.$this._stylesheet0$_statement$0();
  85186. },
  85187. $signature: 39
  85188. };
  85189. V.StylesheetParser_variableDeclarationWithoutNamespace_closure1.prototype = {
  85190. call$0: function() {
  85191. return this.$this.scanner.spanFrom$1(this._box_0.start);
  85192. },
  85193. $signature: 24
  85194. };
  85195. V.StylesheetParser_variableDeclarationWithoutNamespace_closure2.prototype = {
  85196. call$0: function() {
  85197. return this.declaration;
  85198. },
  85199. $signature: 147
  85200. };
  85201. V.StylesheetParser__declarationOrBuffer_closure1.prototype = {
  85202. call$2: function(children, span) {
  85203. return L.Declaration$0(this.name, span, children, null);
  85204. }
  85205. };
  85206. V.StylesheetParser__declarationOrBuffer_closure2.prototype = {
  85207. call$2: function(children, span) {
  85208. return L.Declaration$0(this.name, span, children, this._box_0.value);
  85209. }
  85210. };
  85211. V.StylesheetParser__styleRule_closure0.prototype = {
  85212. call$2: function(children, span) {
  85213. var t2, t3, t4, _this = this,
  85214. t1 = _this.$this;
  85215. if (t1.get$indented() && children.length === 0)
  85216. t1.logger.warn$2$span("This selector doesn't have any properties and won't be rendered.", _this._box_0.interpolation.span);
  85217. t1._stylesheet0$_inStyleRule = _this.wasInStyleRule;
  85218. t2 = _this._box_0;
  85219. t3 = t2.interpolation;
  85220. t2 = t1.scanner.spanFrom$1(t2.start);
  85221. t1 = P.List_List$unmodifiable(children, type$.Statement_2);
  85222. t4 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
  85223. return new X.StyleRule0(t3, t2, t1, t4);
  85224. }
  85225. };
  85226. V.StylesheetParser__propertyOrVariableDeclaration_closure1.prototype = {
  85227. call$2: function(children, span) {
  85228. return L.Declaration$0(this._box_0.name, span, children, null);
  85229. }
  85230. };
  85231. V.StylesheetParser__propertyOrVariableDeclaration_closure2.prototype = {
  85232. call$2: function(children, span) {
  85233. return L.Declaration$0(this._box_0.name, span, children, this.value);
  85234. }
  85235. };
  85236. V.StylesheetParser__atRootRule_closure1.prototype = {
  85237. call$2: function(children, span) {
  85238. var t1 = P.List_List$unmodifiable(children, type$.Statement_2),
  85239. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
  85240. return new V.AtRootRule0(this.query, span, t1, t2);
  85241. }
  85242. };
  85243. V.StylesheetParser__atRootRule_closure2.prototype = {
  85244. call$2: function(children, span) {
  85245. var t1 = P.List_List$unmodifiable(children, type$.Statement_2),
  85246. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
  85247. return new V.AtRootRule0(null, span, t1, t2);
  85248. }
  85249. };
  85250. V.StylesheetParser__eachRule_closure0.prototype = {
  85251. call$2: function(children, span) {
  85252. var t1, t2, t3, _this = this;
  85253. _this.$this._stylesheet0$_inControlDirective = _this.wasInControlDirective;
  85254. t1 = P.List_List$unmodifiable(_this.variables, type$.String);
  85255. t2 = P.List_List$unmodifiable(children, type$.Statement_2);
  85256. t3 = C.JSArray_methods.any$1(t2, new M.ParentStatement_closure0());
  85257. return new V.EachRule0(t1, _this.list, span, t2, t3);
  85258. }
  85259. };
  85260. V.StylesheetParser__functionRule_closure0.prototype = {
  85261. call$2: function(children, span) {
  85262. var t1 = P.List_List$unmodifiable(children, type$.Statement_2),
  85263. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
  85264. return new M.FunctionRule0(this.name, this.$arguments, span, t1, t2);
  85265. }
  85266. };
  85267. V.StylesheetParser__forRule_closure1.prototype = {
  85268. call$0: function() {
  85269. var t1 = this.$this;
  85270. if (!t1.lookingAtIdentifier$0())
  85271. return false;
  85272. if (t1.scanIdentifier$1("to"))
  85273. return this._box_0.exclusive = true;
  85274. else if (t1.scanIdentifier$1("through")) {
  85275. this._box_0.exclusive = false;
  85276. return true;
  85277. } else
  85278. return false;
  85279. },
  85280. $signature: 25
  85281. };
  85282. V.StylesheetParser__forRule_closure2.prototype = {
  85283. call$2: function(children, span) {
  85284. var t1, t2, t3, _this = this;
  85285. _this.$this._stylesheet0$_inControlDirective = _this.wasInControlDirective;
  85286. t1 = _this._box_0.exclusive;
  85287. t2 = P.List_List$unmodifiable(children, type$.Statement_2);
  85288. t3 = C.JSArray_methods.any$1(t2, new M.ParentStatement_closure0());
  85289. return new B.ForRule0(_this.variable, _this.from, _this.to, t1, span, t2, t3);
  85290. }
  85291. };
  85292. V.StylesheetParser__memberList_closure0.prototype = {
  85293. call$0: function() {
  85294. var t1 = this.$this;
  85295. if (t1.scanner.peekChar$0() === 36)
  85296. this.variables.add$1(0, t1.variableName$0());
  85297. else
  85298. this.identifiers.add$1(0, t1.identifier$1$normalize(true));
  85299. },
  85300. $signature: 0
  85301. };
  85302. V.StylesheetParser__includeRule_closure0.prototype = {
  85303. call$2: function(children, span) {
  85304. var t1 = this._box_0.contentArguments,
  85305. t2 = P.List_List$unmodifiable(children, type$.Statement_2),
  85306. t3 = C.JSArray_methods.any$1(t2, new M.ParentStatement_closure0());
  85307. return new Y.ContentBlock0(null, t1, span, t2, t3);
  85308. }
  85309. };
  85310. V.StylesheetParser_mediaRule_closure0.prototype = {
  85311. call$2: function(children, span) {
  85312. var t1 = P.List_List$unmodifiable(children, type$.Statement_2),
  85313. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
  85314. return new G.MediaRule0(this.query, span, t1, t2);
  85315. }
  85316. };
  85317. V.StylesheetParser__mixinRule_closure0.prototype = {
  85318. call$2: function(children, span) {
  85319. var t2,
  85320. t1 = this.$this,
  85321. hadContent = t1._stylesheet0$_mixinHasContent;
  85322. t1._stylesheet0$_inMixin = false;
  85323. t1._stylesheet0$_mixinHasContent = null;
  85324. t1 = P.List_List$unmodifiable(children, type$.Statement_2);
  85325. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
  85326. return new T.MixinRule0(hadContent, this.name, this.$arguments, span, t1, t2);
  85327. }
  85328. };
  85329. V.StylesheetParser_mozDocumentRule_closure0.prototype = {
  85330. call$2: function(children, span) {
  85331. var _this = this;
  85332. if (_this._box_0.needsDeprecationWarning)
  85333. _this.$this.logger.warn$3$deprecation$span("@-moz-document is deprecated and support will be removed from Sass in a future\nrelase. For details, see http://bit.ly/moz-document.\n", true, span);
  85334. return U.AtRule$0(_this.name, span, children, _this.value);
  85335. }
  85336. };
  85337. V.StylesheetParser_supportsRule_closure0.prototype = {
  85338. call$2: function(children, span) {
  85339. var t1 = P.List_List$unmodifiable(children, type$.Statement_2),
  85340. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
  85341. return new B.SupportsRule0(this.condition, span, t1, t2);
  85342. }
  85343. };
  85344. V.StylesheetParser__whileRule_closure0.prototype = {
  85345. call$2: function(children, span) {
  85346. var t1, t2;
  85347. this.$this._stylesheet0$_inControlDirective = this.wasInControlDirective;
  85348. t1 = P.List_List$unmodifiable(children, type$.Statement_2);
  85349. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
  85350. return new G.WhileRule0(this.condition, span, t1, t2);
  85351. }
  85352. };
  85353. V.StylesheetParser_unknownAtRule_closure0.prototype = {
  85354. call$2: function(children, span) {
  85355. return U.AtRule$0(this.name, span, children, this._box_0.value);
  85356. }
  85357. };
  85358. V.StylesheetParser_expression_resetState0.prototype = {
  85359. call$0: function() {
  85360. var t2,
  85361. t1 = this._box_0;
  85362. t1.operands = t1.operators = t1.spaceExpressions = t1.commaExpressions = null;
  85363. t2 = this.$this;
  85364. t2.scanner.set$state(this.start);
  85365. t1.allowSlash = t2.lookingAtNumber$0();
  85366. t1.singleExpression = t2._stylesheet0$_singleExpression$0();
  85367. },
  85368. $signature: 1
  85369. };
  85370. V.StylesheetParser_expression_resolveOneOperation0.prototype = {
  85371. call$0: function() {
  85372. var t2, t3,
  85373. t1 = this._box_0,
  85374. operator = t1.operators.pop();
  85375. if (operator !== C.BinaryOperator_RTB0)
  85376. t1.allowSlash = false;
  85377. t2 = t1.allowSlash && !this.$this._stylesheet0$_inParentheses;
  85378. t3 = t1.operands;
  85379. if (t2)
  85380. t1.singleExpression = new V.BinaryOperationExpression0(C.BinaryOperator_RTB0, t3.pop(), t1.singleExpression, true);
  85381. else
  85382. t1.singleExpression = new V.BinaryOperationExpression0(operator, t3.pop(), t1.singleExpression, false);
  85383. },
  85384. $signature: 1
  85385. };
  85386. V.StylesheetParser_expression_resolveOperations0.prototype = {
  85387. call$0: function() {
  85388. var t2,
  85389. t1 = this._box_0;
  85390. if (t1.operators == null)
  85391. return;
  85392. for (t2 = this.resolveOneOperation; t1.operators.length !== 0;)
  85393. t2.call$0();
  85394. },
  85395. $signature: 1
  85396. };
  85397. V.StylesheetParser_expression_addSingleExpression0.prototype = {
  85398. call$2$number: function(expression, number) {
  85399. var t2, _this = this,
  85400. t1 = _this._box_0;
  85401. if (t1.singleExpression != null) {
  85402. t2 = _this.$this;
  85403. if (t2._stylesheet0$_inParentheses) {
  85404. t2._stylesheet0$_inParentheses = false;
  85405. if (t1.allowSlash) {
  85406. _this.resetState.call$0();
  85407. return;
  85408. }
  85409. }
  85410. if (t1.spaceExpressions == null)
  85411. t1.spaceExpressions = H.setRuntimeTypeInfo([], type$.JSArray_Expression_2);
  85412. _this.resolveOperations.call$0();
  85413. t1.spaceExpressions.push(t1.singleExpression);
  85414. t1.allowSlash = number;
  85415. } else if (!number)
  85416. t1.allowSlash = false;
  85417. t1.singleExpression = expression;
  85418. },
  85419. call$1: function(expression) {
  85420. return this.call$2$number(expression, false);
  85421. }
  85422. };
  85423. V.StylesheetParser_expression_addOperator0.prototype = {
  85424. call$1: function(operator) {
  85425. var t2, t3, t4, t5, singleExpression,
  85426. t1 = this.$this;
  85427. if (t1.get$plainCss() && operator !== C.BinaryOperator_RTB0) {
  85428. t2 = t1.scanner;
  85429. t3 = operator.operator.length;
  85430. t2.error$3$length$position("Operators aren't allowed in plain CSS.", t3, t2._string_scanner$_position - t3);
  85431. }
  85432. t2 = this._box_0;
  85433. t2.allowSlash = t2.allowSlash && operator === C.BinaryOperator_RTB0;
  85434. if (t2.operators == null)
  85435. t2.operators = H.setRuntimeTypeInfo([], type$.JSArray_BinaryOperator_2);
  85436. if (t2.operands == null)
  85437. t2.operands = H.setRuntimeTypeInfo([], type$.JSArray_Expression_2);
  85438. t3 = this.resolveOneOperation;
  85439. t4 = operator.precedence;
  85440. while (true) {
  85441. t5 = t2.operators;
  85442. if (!(t5.length !== 0 && C.JSArray_methods.get$last(t5).precedence >= t4))
  85443. break;
  85444. t3.call$0();
  85445. }
  85446. t2.operators.push(operator);
  85447. t2.operands.push(t2.singleExpression);
  85448. t1.whitespace$0();
  85449. t2.allowSlash = t2.allowSlash && t1.lookingAtNumber$0();
  85450. singleExpression = t1._stylesheet0$_singleExpression$0();
  85451. t2.singleExpression = singleExpression;
  85452. t2.allowSlash = t2.allowSlash && singleExpression instanceof T.NumberExpression0;
  85453. }
  85454. };
  85455. V.StylesheetParser_expression_resolveSpaceExpressions0.prototype = {
  85456. call$0: function() {
  85457. var t1, t2, t3;
  85458. this.resolveOperations.call$0();
  85459. t1 = this._box_0;
  85460. t2 = t1.spaceExpressions;
  85461. if (t2 != null) {
  85462. t2.push(t1.singleExpression);
  85463. t2 = P.List_List$unmodifiable(t1.spaceExpressions, type$.Expression_2);
  85464. t3 = B.spanForList0(t2);
  85465. t1.singleExpression = new D.ListExpression0(t2, C.ListSeparator_space0, false, t3);
  85466. t1.spaceExpressions = null;
  85467. }
  85468. t2 = t1.singleEqualsOperand;
  85469. if (t2 != null) {
  85470. t1.singleExpression = new V.BinaryOperationExpression0(C.BinaryOperator_kjl0, t2, t1.singleExpression, false);
  85471. t1.singleEqualsOperand = null;
  85472. }
  85473. },
  85474. $signature: 1
  85475. };
  85476. V.StylesheetParser__expressionUntilComma_closure0.prototype = {
  85477. call$0: function() {
  85478. return this.$this.scanner.peekChar$0() === 44;
  85479. },
  85480. $signature: 25
  85481. };
  85482. V.StylesheetParser__unicodeRange_closure1.prototype = {
  85483. call$1: function(char) {
  85484. return char != null && T.isHex0(char);
  85485. },
  85486. $signature: 16
  85487. };
  85488. V.StylesheetParser__unicodeRange_closure2.prototype = {
  85489. call$1: function(char) {
  85490. return char != null && T.isHex0(char);
  85491. },
  85492. $signature: 16
  85493. };
  85494. V.StylesheetParser_identifierLike_closure0.prototype = {
  85495. call$0: function() {
  85496. return this.$this.scanner.spanFrom$1(this.start);
  85497. },
  85498. $signature: 24
  85499. };
  85500. V.StylesheetParser__expressionUntilComparison_closure0.prototype = {
  85501. call$0: function() {
  85502. var t1 = this.$this.scanner,
  85503. next = t1.peekChar$0();
  85504. if (next === 61)
  85505. return t1.peekChar$1(1) !== 61;
  85506. return next === 60 || next === 62;
  85507. },
  85508. $signature: 25
  85509. };
  85510. V.StylesheetParser__publicIdentifier_closure0.prototype = {
  85511. call$0: function() {
  85512. return this.$this.scanner.spanFrom$1(this.start);
  85513. },
  85514. $signature: 24
  85515. };
  85516. V.Stylesheet0.prototype = {
  85517. Stylesheet$3$plainCss0: function(children, span, plainCss) {
  85518. var t1, t2, t3, t4, _i, child;
  85519. for (t1 = this.children, t2 = t1.length, t3 = this._stylesheet1$_forwards, t4 = this._stylesheet1$_uses, _i = 0; _i < t2; ++_i) {
  85520. child = t1[_i];
  85521. if (child instanceof T.UseRule0)
  85522. t4.push(child);
  85523. else if (child instanceof L.ForwardRule0)
  85524. t3.push(child);
  85525. else if (!(child instanceof B.SilentComment0) && !(child instanceof L.LoudComment0) && !(child instanceof Z.VariableDeclaration0))
  85526. break;
  85527. }
  85528. },
  85529. accept$1$1: function(visitor) {
  85530. return visitor.visitStylesheet$1(this);
  85531. },
  85532. accept$1: function(visitor) {
  85533. return this.accept$1$1(visitor, type$.dynamic);
  85534. },
  85535. toString$0: function(_) {
  85536. var t1 = this.children;
  85537. return (t1 && C.JSArray_methods).join$1(t1, " ");
  85538. },
  85539. get$span: function() {
  85540. return this.span;
  85541. }
  85542. };
  85543. N.SupportsCondition0.prototype = {};
  85544. B.ModifiableCssSupportsRule0.prototype = {
  85545. accept$1$1: function(visitor) {
  85546. return visitor.visitCssSupportsRule$1(this);
  85547. },
  85548. accept$1: function(visitor) {
  85549. return this.accept$1$1(visitor, type$.dynamic);
  85550. },
  85551. copyWithoutChildren$0: function() {
  85552. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
  85553. return new B.ModifiableCssSupportsRule0(this.condition, this.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1);
  85554. },
  85555. $isCssSupportsRule0: 1,
  85556. get$span: function() {
  85557. return this.span;
  85558. }
  85559. };
  85560. B.SupportsRule0.prototype = {
  85561. accept$1$1: function(visitor) {
  85562. return visitor.visitSupportsRule$1(this);
  85563. },
  85564. accept$1: function(visitor) {
  85565. return this.accept$1$1(visitor, type$.dynamic);
  85566. },
  85567. toString$0: function(_) {
  85568. var t1 = this.children;
  85569. return "@supports " + this.condition.toString$0(0) + " {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
  85570. },
  85571. get$span: function() {
  85572. return this.span;
  85573. }
  85574. };
  85575. M.Syntax0.prototype = {
  85576. toString$0: function(_) {
  85577. return this._syntax0$_name;
  85578. }
  85579. };
  85580. F.TypeSelector0.prototype = {
  85581. get$minSpecificity: function() {
  85582. return 1;
  85583. },
  85584. accept$1$1: function(visitor) {
  85585. visitor._buffer.write$1(0, this.name);
  85586. return null;
  85587. },
  85588. accept$1: function(visitor) {
  85589. return this.accept$1$1(visitor, type$.dynamic);
  85590. },
  85591. addSuffix$1: function(suffix) {
  85592. var t1 = this.name;
  85593. return new F.TypeSelector0(new D.QualifiedName0(t1.name + suffix, t1.namespace));
  85594. },
  85595. unify$1: function(compound) {
  85596. var unified, t1, t2, _i;
  85597. if (C.JSArray_methods.get$first(compound) instanceof N.UniversalSelector0 || C.JSArray_methods.get$first(compound) instanceof F.TypeSelector0) {
  85598. unified = Y.unifyUniversalAndElement0(this, C.JSArray_methods.get$first(compound));
  85599. if (unified == null)
  85600. return null;
  85601. t1 = H.setRuntimeTypeInfo([], type$.JSArray_SimpleSelector_2);
  85602. t1.push(unified);
  85603. for (t2 = H.SubListIterable$(compound, 1, null, H._arrayInstanceType(compound)._precomputed1), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
  85604. t1.push(t2.__internal$_current);
  85605. return t1;
  85606. } else {
  85607. t1 = H.setRuntimeTypeInfo([], type$.JSArray_SimpleSelector_2);
  85608. t1.push(this);
  85609. for (t2 = compound.length, _i = 0; _i < compound.length; compound.length === t2 || (0, H.throwConcurrentModificationError)(compound), ++_i)
  85610. t1.push(compound[_i]);
  85611. return t1;
  85612. }
  85613. },
  85614. $eq: function(_, other) {
  85615. if (other == null)
  85616. return false;
  85617. return other instanceof F.TypeSelector0 && other.name.$eq(0, this.name);
  85618. },
  85619. get$hashCode: function(_) {
  85620. var t1 = this.name;
  85621. return C.JSString_methods.get$hashCode(t1.name) ^ J.get$hashCode$(t1.namespace);
  85622. }
  85623. };
  85624. G.Types.prototype = {};
  85625. X.UnaryOperationExpression0.prototype = {
  85626. accept$1$1: function(visitor) {
  85627. return visitor.visitUnaryOperationExpression$1(this);
  85628. },
  85629. accept$1: function(visitor) {
  85630. return this.accept$1$1(visitor, type$.dynamic);
  85631. },
  85632. toString$0: function(_) {
  85633. var t1 = this.operator,
  85634. t2 = t1.operator;
  85635. t1 = t1 === C.UnaryOperator_not_not0 ? t2 + H.Primitives_stringFromCharCode(32) : t2;
  85636. t1 += H.S(this.operand);
  85637. return t1.charCodeAt(0) == 0 ? t1 : t1;
  85638. },
  85639. $isExpression0: 1,
  85640. $isAstNode0: 1,
  85641. get$span: function() {
  85642. return this.span;
  85643. }
  85644. };
  85645. X.UnaryOperator0.prototype = {
  85646. toString$0: function(_) {
  85647. return this.name;
  85648. }
  85649. };
  85650. N.UniversalSelector0.prototype = {
  85651. get$minSpecificity: function() {
  85652. return 0;
  85653. },
  85654. accept$1$1: function(visitor) {
  85655. var t2,
  85656. t1 = this.namespace;
  85657. if (t1 != null) {
  85658. t2 = visitor._buffer;
  85659. t2.write$1(0, t1);
  85660. t2.writeCharCode$1(124);
  85661. }
  85662. visitor._buffer.writeCharCode$1(42);
  85663. return null;
  85664. },
  85665. accept$1: function(visitor) {
  85666. return this.accept$1$1(visitor, type$.dynamic);
  85667. },
  85668. unify$1: function(compound) {
  85669. var unified, t1, t2, _i, _this = this;
  85670. if (C.JSArray_methods.get$first(compound) instanceof N.UniversalSelector0 || C.JSArray_methods.get$first(compound) instanceof F.TypeSelector0) {
  85671. unified = Y.unifyUniversalAndElement0(_this, C.JSArray_methods.get$first(compound));
  85672. if (unified == null)
  85673. return null;
  85674. t1 = H.setRuntimeTypeInfo([], type$.JSArray_SimpleSelector_2);
  85675. t1.push(unified);
  85676. for (t2 = H.SubListIterable$(compound, 1, null, H._arrayInstanceType(compound)._precomputed1), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
  85677. t1.push(t2.__internal$_current);
  85678. return t1;
  85679. }
  85680. t1 = _this.namespace;
  85681. if (t1 != null && t1 !== "*") {
  85682. t1 = H.setRuntimeTypeInfo([], type$.JSArray_SimpleSelector_2);
  85683. t1.push(_this);
  85684. for (t2 = compound.length, _i = 0; _i < compound.length; compound.length === t2 || (0, H.throwConcurrentModificationError)(compound), ++_i)
  85685. t1.push(compound[_i]);
  85686. return t1;
  85687. }
  85688. if (compound.length !== 0)
  85689. return compound;
  85690. return H.setRuntimeTypeInfo([_this], type$.JSArray_SimpleSelector_2);
  85691. },
  85692. $eq: function(_, other) {
  85693. if (other == null)
  85694. return false;
  85695. return other instanceof N.UniversalSelector0 && other.namespace == this.namespace;
  85696. },
  85697. get$hashCode: function(_) {
  85698. return J.get$hashCode$(this.namespace);
  85699. }
  85700. };
  85701. R.UnprefixedMapView0.prototype = {
  85702. get$keys: function() {
  85703. return new R._UnprefixedKeys0(this);
  85704. },
  85705. $index: function(_, key) {
  85706. return typeof key == "string" ? this._unprefixed_map_view0$_map.$index(0, J.$add$ansx(this._unprefixed_map_view0$_prefix, key)) : null;
  85707. },
  85708. containsKey$1: function(key) {
  85709. return typeof key == "string" && this._unprefixed_map_view0$_map.containsKey$1(J.$add$ansx(this._unprefixed_map_view0$_prefix, key));
  85710. },
  85711. remove$1: function(_, key) {
  85712. return typeof key == "string" ? this._unprefixed_map_view0$_map.remove$1(0, J.$add$ansx(this._unprefixed_map_view0$_prefix, key)) : null;
  85713. }
  85714. };
  85715. R._UnprefixedKeys0.prototype = {
  85716. get$iterator: function(_) {
  85717. var t1 = J.where$1$ax(this._unprefixed_map_view0$_view._unprefixed_map_view0$_map.get$keys(), new R._UnprefixedKeys_iterator_closure1(this)).map$1$1(0, new R._UnprefixedKeys_iterator_closure2(this), type$.String);
  85718. return t1.get$iterator(t1);
  85719. },
  85720. contains$1: function(_, key) {
  85721. return this._unprefixed_map_view0$_view.containsKey$1(key);
  85722. }
  85723. };
  85724. R._UnprefixedKeys_iterator_closure1.prototype = {
  85725. call$1: function(key) {
  85726. return J.startsWith$1$s(key, this.$this._unprefixed_map_view0$_view._unprefixed_map_view0$_prefix);
  85727. }
  85728. };
  85729. R._UnprefixedKeys_iterator_closure2.prototype = {
  85730. call$1: function(key) {
  85731. return J.substring$1$s(key, this.$this._unprefixed_map_view0$_view._unprefixed_map_view0$_prefix.length);
  85732. }
  85733. };
  85734. T.UseRule0.prototype = {
  85735. UseRule$4$configuration0: function(url, namespace, span, configuration) {
  85736. var t1, t2, _i, variable;
  85737. for (t1 = this.configuration, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  85738. variable = t1[_i];
  85739. if (variable.isGuarded)
  85740. throw H.wrapException(P.ArgumentError$value(variable, "configured variable", "can't be guarded in a @use rule."));
  85741. }
  85742. },
  85743. accept$1$1: function(visitor) {
  85744. return visitor.visitUseRule$1(this);
  85745. },
  85746. accept$1: function(visitor) {
  85747. return this.accept$1$1(visitor, type$.dynamic);
  85748. },
  85749. toString$0: function(_) {
  85750. var t1 = this.url,
  85751. t2 = "@use " + H.S(new D.StringExpression0(X.Interpolation$0([J.toString$0$(t1)], null), true).asInterpolation$1$static(true).get$asPlain()),
  85752. basename = t1.get$pathSegments().length === 0 ? "" : C.JSArray_methods.get$last(t1.get$pathSegments()),
  85753. dot = J.getInterceptor$asx(basename).indexOf$1(basename, ".");
  85754. t1 = this.namespace;
  85755. if (t1 !== C.JSString_methods.substring$2(basename, 0, dot === -1 ? basename.length : dot))
  85756. t1 = t2 + (" as " + (t1 == null ? "*" : t1));
  85757. else
  85758. t1 = t2;
  85759. t2 = this.configuration;
  85760. t1 = (t2.length !== 0 ? t1 + (" with (" + C.JSArray_methods.join$1(t2, ", ") + ")") : t1) + ";";
  85761. return t1.charCodeAt(0) == 0 ? t1 : t1;
  85762. },
  85763. $isAstNode0: 1,
  85764. $isStatement0: 1,
  85765. get$span: function() {
  85766. return this.span;
  85767. }
  85768. };
  85769. E.UserDefinedCallable0.prototype = {
  85770. get$name: function() {
  85771. return this.declaration.name;
  85772. },
  85773. $isAsyncCallable0: 1,
  85774. $isCallable0: 1
  85775. };
  85776. B.resolveImportPath_closure1.prototype = {
  85777. call$0: function() {
  85778. return B._exactlyOne0(B._tryPath0($.$get$context().withoutExtension$1(this.path) + ".import" + this.extension));
  85779. },
  85780. $signature: 10
  85781. };
  85782. B.resolveImportPath_closure2.prototype = {
  85783. call$0: function() {
  85784. return B._exactlyOne0(B._tryPathWithExtensions0(H.S(this.path) + ".import"));
  85785. },
  85786. $signature: 10
  85787. };
  85788. B._tryPathAsDirectory_closure0.prototype = {
  85789. call$0: function() {
  85790. return B._exactlyOne0(B._tryPathWithExtensions0(D.join(this.path, "index.import", null)));
  85791. },
  85792. $signature: 10
  85793. };
  85794. B._exactlyOne_closure0.prototype = {
  85795. call$1: function(path) {
  85796. var t1 = $.$get$context();
  85797. return C.JSString_methods.$add(" ", t1.prettyUri$1(t1.toUri$1(path)));
  85798. }
  85799. };
  85800. B.forwardToString_closure.prototype = {
  85801. call$1: function(thisArg) {
  85802. return J.toString$0$(thisArg);
  85803. },
  85804. $signature: 27
  85805. };
  85806. B.createClass_closure.prototype = {
  85807. call$2: function($name, body) {
  85808. this.$prototype[$name] = P.allowInteropCaptureThis(body);
  85809. }
  85810. };
  85811. B._PropertyDescriptor0.prototype = {};
  85812. B.indent_closure0.prototype = {
  85813. call$1: function(line) {
  85814. return C.JSString_methods.$add(C.JSString_methods.$mul(" ", this.indentation), line);
  85815. }
  85816. };
  85817. B.flattenVertically_closure1.prototype = {
  85818. call$1: function(inner) {
  85819. return Q.QueueList_QueueList$from(inner, this.T);
  85820. }
  85821. };
  85822. B.flattenVertically_closure2.prototype = {
  85823. call$1: function(queue) {
  85824. this.result.push(queue.removeFirst$0());
  85825. return queue.get$length(queue) === 0;
  85826. }
  85827. };
  85828. B.longestCommonSubsequence_closure2.prototype = {
  85829. call$2: function(element1, element2) {
  85830. return J.$eq$(element1, element2) ? element1 : null;
  85831. },
  85832. $signature: function() {
  85833. return this.T._eval$1("0(0,0)");
  85834. }
  85835. };
  85836. B.longestCommonSubsequence_closure3.prototype = {
  85837. call$1: function(_) {
  85838. return P.List_List$filled(J.get$length$asx(this.list2) + 1, 0, type$.int);
  85839. },
  85840. $signature: 72
  85841. };
  85842. B.longestCommonSubsequence_closure4.prototype = {
  85843. call$1: function(_) {
  85844. var t1 = new Array(J.get$length$asx(this.list2));
  85845. t1.fixed$length = Array;
  85846. return H.setRuntimeTypeInfo(t1, this.T._eval$1("JSArray<0>"));
  85847. },
  85848. $signature: function() {
  85849. return this.T._eval$1("List<0>(int)");
  85850. }
  85851. };
  85852. B.longestCommonSubsequence_backtrack0.prototype = {
  85853. call$2: function(i, j) {
  85854. var selection, t1, _this = this;
  85855. if (i === -1 || j === -1)
  85856. return H.setRuntimeTypeInfo([], _this.T._eval$1("JSArray<0>"));
  85857. selection = J.$index$asx(_this.selections[i], j);
  85858. if (selection != null) {
  85859. t1 = _this.call$2(i - 1, j - 1);
  85860. J.add$1$ax(t1, selection);
  85861. return t1;
  85862. }
  85863. t1 = _this.lengths;
  85864. return J.$index$asx(t1[i + 1], j) > J.$index$asx(t1[i], j + 1) ? _this.call$2(i, j - 1) : _this.call$2(i - 1, j);
  85865. }
  85866. };
  85867. B.mapAddAll2_closure0.prototype = {
  85868. call$2: function(key, inner) {
  85869. var t1 = this.destination;
  85870. if (t1.containsKey$1(key))
  85871. t1.$index(0, key).addAll$1(0, inner);
  85872. else
  85873. t1.$indexSet(0, key, inner);
  85874. }
  85875. };
  85876. B.mapMapAsync_closure0.prototype = {
  85877. call$2: function(mapKey, _) {
  85878. return this.$call$body$mapMapAsync_closure0(mapKey, _, this.K2);
  85879. },
  85880. $call$body$mapMapAsync_closure0: function(mapKey, _, $async$type) {
  85881. var $async$goto = 0,
  85882. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  85883. $async$returnValue, $async$self = this;
  85884. var $async$call$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  85885. if ($async$errorCode === 1)
  85886. return P._asyncRethrow($async$result, $async$completer);
  85887. while (true)
  85888. switch ($async$goto) {
  85889. case 0:
  85890. // Function start
  85891. $async$returnValue = $async$self.K2._as(mapKey);
  85892. // goto return
  85893. $async$goto = 1;
  85894. break;
  85895. case 1:
  85896. // return
  85897. return P._asyncReturn($async$returnValue, $async$completer);
  85898. }
  85899. });
  85900. return P._asyncStartSync($async$call$2, $async$completer);
  85901. },
  85902. $signature: function() {
  85903. return this.K2._eval$1("@<0>")._bind$1(this.K1)._bind$1(this.V1)._eval$1("Future<1>(2,3)");
  85904. }
  85905. };
  85906. B.copyMapOfMap_closure0.prototype = {
  85907. call$2: function(_, innerMap) {
  85908. return P.LinkedHashMap_LinkedHashMap$of(innerMap, this.K2, this.V);
  85909. }
  85910. };
  85911. B.copyMapOfList_closure0.prototype = {
  85912. call$2: function(_, list) {
  85913. return J.toList$0$ax(list);
  85914. }
  85915. };
  85916. F.CssValue0.prototype = {
  85917. toString$0: function(_) {
  85918. return J.toString$0$(this.value);
  85919. },
  85920. $isAstNode0: 1,
  85921. get$value: function(receiver) {
  85922. return this.value;
  85923. },
  85924. get$span: function() {
  85925. return this.span;
  85926. }
  85927. };
  85928. F.ValueExpression0.prototype = {
  85929. accept$1$1: function(visitor) {
  85930. return visitor.visitValueExpression$1(this);
  85931. },
  85932. accept$1: function(visitor) {
  85933. return this.accept$1$1(visitor, type$.dynamic);
  85934. },
  85935. toString$0: function(_) {
  85936. return J.toString$0$(this.value);
  85937. },
  85938. $isExpression0: 1,
  85939. $isAstNode0: 1,
  85940. get$span: function() {
  85941. return this.span;
  85942. }
  85943. };
  85944. F.ModifiableCssValue0.prototype = {
  85945. toString$0: function(_) {
  85946. return J.toString$0$(this.value);
  85947. },
  85948. $isAstNode0: 1,
  85949. $isCssValue0: 1,
  85950. get$value: function(receiver) {
  85951. return this.value;
  85952. },
  85953. get$span: function() {
  85954. return this.span;
  85955. }
  85956. };
  85957. F.Value0.prototype = {
  85958. get$isTruthy: function() {
  85959. return true;
  85960. },
  85961. get$separator: function() {
  85962. return C.ListSeparator_undecided0;
  85963. },
  85964. get$hasBrackets: function() {
  85965. return false;
  85966. },
  85967. get$asList: function() {
  85968. return H.setRuntimeTypeInfo([this], type$.JSArray_Value_2);
  85969. },
  85970. get$lengthAsList: function() {
  85971. return 1;
  85972. },
  85973. get$isBlank: function() {
  85974. return false;
  85975. },
  85976. get$isSpecialNumber: function() {
  85977. return false;
  85978. },
  85979. get$isVar: function() {
  85980. return false;
  85981. },
  85982. get$realNull: function() {
  85983. return this;
  85984. },
  85985. sassIndexToListIndex$2: function(sassIndex, $name) {
  85986. var _this = this,
  85987. index = sassIndex.assertNumber$1($name).assertInt$1($name);
  85988. if (index === 0)
  85989. throw H.wrapException(_this._value0$_exception$2("List index may not be 0.", $name));
  85990. if (Math.abs(index) > _this.get$lengthAsList())
  85991. throw H.wrapException(_this._value0$_exception$2("Invalid index " + sassIndex.toString$0(0) + " for a list with " + _this.get$lengthAsList() + " elements.", $name));
  85992. return index < 0 ? _this.get$lengthAsList() + index : index - 1;
  85993. },
  85994. assertColor$1: function($name) {
  85995. return H.throwExpression(this._value0$_exception$2(this.toString$0(0) + " is not a color.", $name));
  85996. },
  85997. assertFunction$1: function($name) {
  85998. return H.throwExpression(this._value0$_exception$2(this.toString$0(0) + " is not a function reference.", $name));
  85999. },
  86000. assertMap$1: function($name) {
  86001. return H.throwExpression(this._value0$_exception$2(this.toString$0(0) + " is not a map.", $name));
  86002. },
  86003. assertNumber$1: function($name) {
  86004. return H.throwExpression(this._value0$_exception$2(this.toString$0(0) + " is not a number.", $name));
  86005. },
  86006. assertNumber$0: function() {
  86007. return this.assertNumber$1(null);
  86008. },
  86009. assertString$1: function($name) {
  86010. return H.throwExpression(this._value0$_exception$2(this.toString$0(0) + " is not a string.", $name));
  86011. },
  86012. assertSelector$2$allowParent$name: function(allowParent, $name) {
  86013. var error, t1, exception,
  86014. string = this._value0$_selectorString$1($name);
  86015. try {
  86016. t1 = D.SelectorList_SelectorList$parse0(string, allowParent, true, null);
  86017. return t1;
  86018. } catch (exception) {
  86019. t1 = H.unwrapException(exception);
  86020. if (t1 instanceof E.SassFormatException0) {
  86021. error = t1;
  86022. throw H.wrapException(this._value0$_exception$2(C.JSString_methods.replaceFirst$2(J.toString$0$(error), "Error: ", ""), $name));
  86023. } else
  86024. throw exception;
  86025. }
  86026. },
  86027. assertSelector$1$name: function($name) {
  86028. return this.assertSelector$2$allowParent$name(false, $name);
  86029. },
  86030. assertSelector$0: function() {
  86031. return this.assertSelector$2$allowParent$name(false, null);
  86032. },
  86033. assertSelector$1$allowParent: function(allowParent) {
  86034. return this.assertSelector$2$allowParent$name(allowParent, null);
  86035. },
  86036. assertCompoundSelector$1$name: function($name) {
  86037. var error, t1, exception,
  86038. allowParent = false,
  86039. string = this._value0$_selectorString$1($name);
  86040. try {
  86041. t1 = S.SpanScanner$(string, null);
  86042. t1 = new T.SelectorParser0(allowParent, true, t1, C.C_StderrLogger).parseCompoundSelector$0();
  86043. return t1;
  86044. } catch (exception) {
  86045. t1 = H.unwrapException(exception);
  86046. if (t1 instanceof E.SassFormatException0) {
  86047. error = t1;
  86048. throw H.wrapException(this._value0$_exception$2(C.JSString_methods.replaceFirst$2(J.toString$0$(error), "Error: ", ""), $name));
  86049. } else
  86050. throw exception;
  86051. }
  86052. },
  86053. _value0$_selectorString$1: function($name) {
  86054. var string = this._value0$_selectorStringOrNull$0();
  86055. if (string != null)
  86056. return string;
  86057. throw H.wrapException(this._value0$_exception$2(this.toString$0(0) + " is not a valid selector: it must be a string,\na list of strings, or a list of lists of strings.", $name));
  86058. },
  86059. _value0$_selectorString$0: function() {
  86060. return this._value0$_selectorString$1(null);
  86061. },
  86062. _value0$_selectorStringOrNull$0: function() {
  86063. var t1, t2, result, t3, _i, complex, string, compound, _this = this, _null = null;
  86064. if (_this instanceof D.SassString0)
  86065. return _this.text;
  86066. if (!(_this instanceof D.SassList0))
  86067. return _null;
  86068. t1 = _this._list1$_contents;
  86069. t2 = t1.length;
  86070. if (t2 === 0)
  86071. return _null;
  86072. result = H.setRuntimeTypeInfo([], type$.JSArray_String);
  86073. t3 = _this.separator === C.ListSeparator_comma0;
  86074. if (t3)
  86075. for (_i = 0; _i < t2; ++_i) {
  86076. complex = t1[_i];
  86077. if (complex instanceof D.SassString0)
  86078. result.push(complex.text);
  86079. else if (complex instanceof D.SassList0 && complex.separator === C.ListSeparator_space0) {
  86080. string = complex._value0$_selectorString$0();
  86081. result.push(string);
  86082. } else
  86083. return _null;
  86084. }
  86085. else
  86086. for (_i = 0; _i < t2; ++_i) {
  86087. compound = t1[_i];
  86088. if (compound instanceof D.SassString0)
  86089. result.push(compound.text);
  86090. else
  86091. return _null;
  86092. }
  86093. return C.JSArray_methods.join$1(result, t3 ? ", " : " ");
  86094. },
  86095. changeListContents$2$separator: function(contents, separator) {
  86096. var t1 = separator == null ? this.get$separator() : separator,
  86097. t2 = this.get$hasBrackets();
  86098. return D.SassList$0(contents, t1, t2);
  86099. },
  86100. changeListContents$1: function(contents) {
  86101. return this.changeListContents$2$separator(contents, null);
  86102. },
  86103. greaterThan$1: function(other) {
  86104. return H.throwExpression(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " > " + H.S(other) + '".'));
  86105. },
  86106. greaterThanOrEquals$1: function(other) {
  86107. return H.throwExpression(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " >= " + H.S(other) + '".'));
  86108. },
  86109. lessThan$1: function(other) {
  86110. return H.throwExpression(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " < " + H.S(other) + '".'));
  86111. },
  86112. lessThanOrEquals$1: function(other) {
  86113. return H.throwExpression(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " <= " + H.S(other) + '".'));
  86114. },
  86115. times$1: function(other) {
  86116. return H.throwExpression(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " * " + H.S(other) + '".'));
  86117. },
  86118. modulo$1: function(other) {
  86119. return H.throwExpression(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " % " + H.S(other) + '".'));
  86120. },
  86121. plus$1: function(other) {
  86122. var t1;
  86123. if (other instanceof D.SassString0)
  86124. return new D.SassString0(C.JSString_methods.$add(N.serializeValue(this, false, true), other.text), other.hasQuotes);
  86125. else {
  86126. t1 = N.serializeValue(this, false, true);
  86127. other.toString;
  86128. return new D.SassString0(t1 + N.serializeValue(other, false, true), false);
  86129. }
  86130. },
  86131. minus$1: function(other) {
  86132. var t1 = N.serializeValue(this, false, true) + "-";
  86133. other.toString;
  86134. return new D.SassString0(t1 + N.serializeValue(other, false, true), false);
  86135. },
  86136. dividedBy$1: function(other) {
  86137. var t1 = N.serializeValue(this, false, true) + "/";
  86138. other.toString;
  86139. return new D.SassString0(t1 + N.serializeValue(other, false, true), false);
  86140. },
  86141. unaryPlus$0: function() {
  86142. return new D.SassString0("+" + N.serializeValue(this, false, true), false);
  86143. },
  86144. unaryMinus$0: function() {
  86145. return new D.SassString0("-" + N.serializeValue(this, false, true), false);
  86146. },
  86147. unaryNot$0: function() {
  86148. return C.SassBoolean_false;
  86149. },
  86150. withoutSlash$0: function() {
  86151. return this;
  86152. },
  86153. toString$0: function(_) {
  86154. return N.serializeValue(this, true, true);
  86155. },
  86156. _value0$_exception$2: function(message, $name) {
  86157. return new E.SassScriptException0($name == null ? message : "$" + $name + ": " + message);
  86158. }
  86159. };
  86160. S.VariableExpression0.prototype = {
  86161. accept$1$1: function(visitor) {
  86162. return visitor.visitVariableExpression$1(this);
  86163. },
  86164. accept$1: function(visitor) {
  86165. return this.accept$1$1(visitor, type$.dynamic);
  86166. },
  86167. toString$0: function(_) {
  86168. var t1 = this.namespace;
  86169. t1 = t1 != null ? "$" + (t1 + ".") : "$";
  86170. t1 += this.name;
  86171. return t1.charCodeAt(0) == 0 ? t1 : t1;
  86172. },
  86173. $isExpression0: 1,
  86174. $isAstNode0: 1,
  86175. get$span: function() {
  86176. return this.span;
  86177. }
  86178. };
  86179. Z.VariableDeclaration0.prototype = {
  86180. accept$1$1: function(visitor) {
  86181. return visitor.visitVariableDeclaration$1(this);
  86182. },
  86183. accept$1: function(visitor) {
  86184. return this.accept$1$1(visitor, type$.dynamic);
  86185. },
  86186. toString$0: function(_) {
  86187. var t1 = this.namespace;
  86188. t1 = t1 != null ? "$" + (t1 + ".") : "$";
  86189. t1 += this.name + ": " + H.S(this.expression) + ";";
  86190. return t1.charCodeAt(0) == 0 ? t1 : t1;
  86191. },
  86192. $isAstNode0: 1,
  86193. $isStatement0: 1,
  86194. get$span: function() {
  86195. return this.span;
  86196. }
  86197. };
  86198. N.withWarnCallback_closure0.prototype = {
  86199. call$0: function() {
  86200. return this.callback.call$0();
  86201. },
  86202. "call*": "call$0",
  86203. $requiredArgCount: 0,
  86204. $signature: function() {
  86205. return this.T._eval$1("0()");
  86206. }
  86207. };
  86208. Y.WarnRule0.prototype = {
  86209. accept$1$1: function(visitor) {
  86210. return visitor.visitWarnRule$1(this);
  86211. },
  86212. accept$1: function(visitor) {
  86213. return this.accept$1$1(visitor, type$.dynamic);
  86214. },
  86215. toString$0: function(_) {
  86216. return "@warn " + H.S(this.expression) + ";";
  86217. },
  86218. $isAstNode0: 1,
  86219. $isStatement0: 1,
  86220. get$span: function() {
  86221. return this.span;
  86222. }
  86223. };
  86224. G.WhileRule0.prototype = {
  86225. accept$1$1: function(visitor) {
  86226. return visitor.visitWhileRule$1(this);
  86227. },
  86228. accept$1: function(visitor) {
  86229. return this.accept$1$1(visitor, type$.dynamic);
  86230. },
  86231. toString$0: function(_) {
  86232. var t1 = this.children;
  86233. return "@while " + H.S(this.condition) + " {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
  86234. },
  86235. get$span: function() {
  86236. return this.span;
  86237. }
  86238. };
  86239. (function aliases() {
  86240. var _ = J.Interceptor.prototype;
  86241. _.super$Interceptor$noSuchMethod = _.noSuchMethod$1;
  86242. _ = J.JavaScriptObject.prototype;
  86243. _.super$JavaScriptObject$toString = _.toString$0;
  86244. _ = H.JsLinkedHashMap.prototype;
  86245. _.super$JsLinkedHashMap$internalContainsKey = _.internalContainsKey$1;
  86246. _.super$JsLinkedHashMap$internalGet = _.internalGet$1;
  86247. _.super$JsLinkedHashMap$internalSet = _.internalSet$2;
  86248. _.super$JsLinkedHashMap$internalRemove = _.internalRemove$1;
  86249. _ = P._BroadcastStreamController.prototype;
  86250. _.super$_BroadcastStreamController$_addEventError = _._addEventError$0;
  86251. _ = P._BufferingStreamSubscription.prototype;
  86252. _.super$_BufferingStreamSubscription$_add = _._async$_add$1;
  86253. _.super$_BufferingStreamSubscription$_addError = _._addError$2;
  86254. _ = P.ListMixin.prototype;
  86255. _.super$ListMixin$setRange = _.setRange$4;
  86256. _ = P.Iterable.prototype;
  86257. _.super$Iterable$where = _.where$1;
  86258. _.super$Iterable$skipWhile = _.skipWhile$1;
  86259. _ = B.ModifiableCssParentNode.prototype;
  86260. _.super$ModifiableCssParentNode$addChild = _.addChild$1;
  86261. _ = M.SimpleSelector.prototype;
  86262. _.super$SimpleSelector$addSuffix = _.addSuffix$1;
  86263. _.super$SimpleSelector$unify = _.unify$1;
  86264. _ = G.Parser.prototype;
  86265. _.super$Parser$silentComment = _.silentComment$0;
  86266. _ = V.StylesheetParser.prototype;
  86267. _.super$StylesheetParser$importArgument = _.importArgument$0;
  86268. _ = F.Value.prototype;
  86269. _.super$Value$assertMap = _.assertMap$1;
  86270. _.super$Value$plus = _.plus$1;
  86271. _.super$Value$minus = _.minus$1;
  86272. _.super$Value$dividedBy = _.dividedBy$1;
  86273. _ = Y.SourceSpanMixin.prototype;
  86274. _.super$SourceSpanMixin$compareTo = _.compareTo$1;
  86275. _.super$SourceSpanMixin$$eq = _.$eq;
  86276. _ = X.StringScanner.prototype;
  86277. _.super$StringScanner$readChar = _.readChar$0;
  86278. _.super$StringScanner$scanChar = _.scanChar$1;
  86279. _.super$StringScanner$scan = _.scan$1;
  86280. _.super$StringScanner$matches = _.matches$1;
  86281. _ = B.ModifiableCssParentNode0.prototype;
  86282. _.super$ModifiableCssParentNode$addChild0 = _.addChild$1;
  86283. _ = G.Parser1.prototype;
  86284. _.super$Parser$silentComment0 = _.silentComment$0;
  86285. _ = M.SimpleSelector0.prototype;
  86286. _.super$SimpleSelector$addSuffix0 = _.addSuffix$1;
  86287. _.super$SimpleSelector$unify0 = _.unify$1;
  86288. _ = V.StylesheetParser0.prototype;
  86289. _.super$StylesheetParser$importArgument0 = _.importArgument$0;
  86290. _ = F.Value0.prototype;
  86291. _.super$Value$assertMap0 = _.assertMap$1;
  86292. _.super$Value$plus0 = _.plus$1;
  86293. _.super$Value$minus0 = _.minus$1;
  86294. _.super$Value$dividedBy0 = _.dividedBy$1;
  86295. })();
  86296. (function installTearOffs() {
  86297. var _static_2 = hunkHelpers._static_2,
  86298. _instance_1_i = hunkHelpers._instance_1i,
  86299. _instance_1_u = hunkHelpers._instance_1u,
  86300. _static_1 = hunkHelpers._static_1,
  86301. _static_0 = hunkHelpers._static_0,
  86302. _static = hunkHelpers.installStaticTearOff,
  86303. _instance_0_u = hunkHelpers._instance_0u,
  86304. _instance = hunkHelpers.installInstanceTearOff,
  86305. _instance_0_i = hunkHelpers._instance_0i,
  86306. _instance_2_u = hunkHelpers._instance_2u;
  86307. _static_2(J, "_interceptors_JSArray__compareAny$closure", "JSArray__compareAny", 93);
  86308. _instance_1_i(J.JSArray.prototype, "get$contains", "contains$1", 5);
  86309. _instance_1_i(H._CastIterableBase.prototype, "get$contains", "contains$1", 5);
  86310. _instance_1_u(H.ConstantStringMap.prototype, "get$containsKey", "containsKey$1", 5);
  86311. _instance_1_u(H.ConstantProtoMap.prototype, "get$containsKey", "containsKey$1", 5);
  86312. _instance_1_u(H.JsLinkedHashMap.prototype, "get$containsKey", "containsKey$1", 5);
  86313. _static_1(P, "async__AsyncRun__scheduleImmediateJsOverride$closure", "_AsyncRun__scheduleImmediateJsOverride", 64);
  86314. _static_1(P, "async__AsyncRun__scheduleImmediateWithSetImmediate$closure", "_AsyncRun__scheduleImmediateWithSetImmediate", 64);
  86315. _static_1(P, "async__AsyncRun__scheduleImmediateWithTimer$closure", "_AsyncRun__scheduleImmediateWithTimer", 64);
  86316. _static_0(P, "async___startMicrotaskLoop$closure", "_startMicrotaskLoop", 1);
  86317. _static_1(P, "async___nullDataHandler$closure", "_nullDataHandler", 23);
  86318. _static(P, "async___nullErrorHandler$closure", 1, function() {
  86319. return [null];
  86320. }, ["call$2", "call$1"], ["_nullErrorHandler", function(error) {
  86321. return P._nullErrorHandler(error, null);
  86322. }], 41, 0);
  86323. _static_0(P, "async___nullDoneHandler$closure", "_nullDoneHandler", 1);
  86324. _static(P, "async___rootHandleUncaughtError$closure", 5, null, ["call$5"], ["_rootHandleUncaughtError"], 150, 0);
  86325. _static(P, "async___rootRun$closure", 4, null, ["call$1$4", "call$4"], ["_rootRun", function($self, $parent, zone, f) {
  86326. return P._rootRun($self, $parent, zone, f, type$.dynamic);
  86327. }], 151, 1);
  86328. _static(P, "async___rootRunUnary$closure", 5, null, ["call$2$5", "call$5"], ["_rootRunUnary", function($self, $parent, zone, f, arg) {
  86329. return P._rootRunUnary($self, $parent, zone, f, arg, type$.dynamic, type$.dynamic);
  86330. }], 152, 1);
  86331. _static(P, "async___rootRunBinary$closure", 6, null, ["call$3$6", "call$6"], ["_rootRunBinary", function($self, $parent, zone, f, arg1, arg2) {
  86332. return P._rootRunBinary($self, $parent, zone, f, arg1, arg2, type$.dynamic, type$.dynamic, type$.dynamic);
  86333. }], 153, 1);
  86334. _static(P, "async___rootRegisterCallback$closure", 4, null, ["call$1$4", "call$4"], ["_rootRegisterCallback", function($self, $parent, zone, f) {
  86335. return P._rootRegisterCallback($self, $parent, zone, f, type$.dynamic);
  86336. }], 154, 0);
  86337. _static(P, "async___rootRegisterUnaryCallback$closure", 4, null, ["call$2$4", "call$4"], ["_rootRegisterUnaryCallback", function($self, $parent, zone, f) {
  86338. return P._rootRegisterUnaryCallback($self, $parent, zone, f, type$.dynamic, type$.dynamic);
  86339. }], 155, 0);
  86340. _static(P, "async___rootRegisterBinaryCallback$closure", 4, null, ["call$3$4", "call$4"], ["_rootRegisterBinaryCallback", function($self, $parent, zone, f) {
  86341. return P._rootRegisterBinaryCallback($self, $parent, zone, f, type$.dynamic, type$.dynamic, type$.dynamic);
  86342. }], 156, 0);
  86343. _static(P, "async___rootErrorCallback$closure", 5, null, ["call$5"], ["_rootErrorCallback"], 157, 0);
  86344. _static(P, "async___rootScheduleMicrotask$closure", 4, null, ["call$4"], ["_rootScheduleMicrotask"], 158, 0);
  86345. _static(P, "async___rootCreateTimer$closure", 5, null, ["call$5"], ["_rootCreateTimer"], 159, 0);
  86346. _static(P, "async___rootCreatePeriodicTimer$closure", 5, null, ["call$5"], ["_rootCreatePeriodicTimer"], 160, 0);
  86347. _static(P, "async___rootPrint$closure", 4, null, ["call$4"], ["_rootPrint"], 161, 0);
  86348. _static_1(P, "async___printToZone$closure", "_printToZone", 162);
  86349. _static(P, "async___rootFork$closure", 5, null, ["call$5"], ["_rootFork"], 163, 0);
  86350. var _;
  86351. _instance_0_u(_ = P._BroadcastSubscription.prototype, "get$_async$_onPause", "_async$_onPause$0", 1);
  86352. _instance_0_u(_, "get$_async$_onResume", "_async$_onResume$0", 1);
  86353. _instance(P._AsyncCompleter.prototype, "get$complete", 0, 0, function() {
  86354. return [null];
  86355. }, ["call$1", "call$0"], ["complete$1", "complete$0"], 86, 0);
  86356. _instance(P._Future.prototype, "get$_completeError", 0, 1, function() {
  86357. return [null];
  86358. }, ["call$2", "call$1"], ["_completeError$2", "_completeError$1"], 41, 0);
  86359. _instance_1_i(_ = P._StreamController.prototype, "get$add", "add$1", 23);
  86360. _instance(_, "get$addError", 0, 1, function() {
  86361. return [null];
  86362. }, ["call$2", "call$1"], ["addError$2", "addError$1"], 41, 0);
  86363. _instance_0_i(_, "get$close", "close$0", 61);
  86364. _instance_1_u(_, "get$_async$_add", "_async$_add$1", 23);
  86365. _instance_2_u(_, "get$_addError", "_addError$2", 120);
  86366. _instance_0_u(_, "get$_close", "_close$0", 1);
  86367. _instance_0_u(_ = P._ControllerSubscription.prototype, "get$_async$_onPause", "_async$_onPause$0", 1);
  86368. _instance_0_u(_, "get$_async$_onResume", "_async$_onResume$0", 1);
  86369. _instance(_ = P._BufferingStreamSubscription.prototype, "get$pause", 1, 0, null, ["call$1", "call$0"], ["pause$1", "pause$0"], 84, 0);
  86370. _instance_0_u(_, "get$resume", "resume$0", 1);
  86371. _instance_0_u(_, "get$_async$_onPause", "_async$_onPause$0", 1);
  86372. _instance_0_u(_, "get$_async$_onResume", "_async$_onResume$0", 1);
  86373. _instance(_ = P._DoneStreamSubscription.prototype, "get$pause", 1, 0, null, ["call$1", "call$0"], ["pause$1", "pause$0"], 84, 0);
  86374. _instance_0_u(_, "get$resume", "resume$0", 1);
  86375. _instance_0_u(_, "get$_sendDone", "_sendDone$0", 1);
  86376. _instance_1_u(_ = P._StreamIterator.prototype, "get$_onData", "_onData$1", 23);
  86377. _instance(_, "get$_onError", 0, 1, function() {
  86378. return [null];
  86379. }, ["call$2", "call$1"], ["_onError$2", "_onError$1"], 41, 0);
  86380. _instance_0_u(_, "get$_onDone", "_onDone$0", 1);
  86381. _instance_0_u(_ = P._ForwardingStreamSubscription.prototype, "get$_async$_onPause", "_async$_onPause$0", 1);
  86382. _instance_0_u(_, "get$_async$_onResume", "_async$_onResume$0", 1);
  86383. _instance_1_u(_, "get$_handleData", "_handleData$1", 23);
  86384. _instance_2_u(_, "get$_handleError", "_handleError$2", 117);
  86385. _instance_0_u(_, "get$_handleDone", "_handleDone$0", 1);
  86386. _static_2(P, "collection___defaultEquals$closure", "_defaultEquals", 164);
  86387. _static_1(P, "collection___defaultHashCode$closure", "_defaultHashCode", 165);
  86388. _static_2(P, "collection_ListMixin__compareAny$closure", "ListMixin__compareAny", 93);
  86389. _instance_1_u(P._HashMap.prototype, "get$containsKey", "containsKey$1", 5);
  86390. _instance_1_u(P._LinkedCustomHashMap.prototype, "get$containsKey", "containsKey$1", 5);
  86391. _instance(_ = P._LinkedHashSet.prototype, "get$_newSimilarSet", 0, 0, null, ["call$1$0", "call$0"], ["_newSimilarSet$1$0", "_newSimilarSet$0"], 113, 0);
  86392. _instance_1_i(_, "get$contains", "contains$1", 5);
  86393. _instance(P._LinkedIdentityHashSet.prototype, "get$_newSimilarSet", 0, 0, null, ["call$1$0", "call$0"], ["_newSimilarSet$1$0", "_newSimilarSet$0"], 112, 0);
  86394. _instance_1_u(P.MapMixin.prototype, "get$containsKey", "containsKey$1", 5);
  86395. _instance_1_u(P.MapView.prototype, "get$containsKey", "containsKey$1", 5);
  86396. _instance(_ = P._UnmodifiableSet.prototype, "get$_newSimilarSet", 0, 0, null, ["call$1$0", "call$0"], ["_newSimilarSet$1$0", "_newSimilarSet$0"], 110, 0);
  86397. _instance_1_i(_, "get$contains", "contains$1", 5);
  86398. _static_1(P, "convert___defaultToEncodable$closure", "_defaultToEncodable", 28);
  86399. _static_1(P, "core__identityHashCode$closure", "identityHashCode", 166);
  86400. _static_2(P, "core__identical$closure", "identical", 167);
  86401. _static_1(P, "core_Uri_decodeComponent$closure", "Uri_decodeComponent", 95);
  86402. _instance_1_i(P.Iterable.prototype, "get$contains", "contains$1", 5);
  86403. _static(P, "math__max$closure", 2, null, ["call$1$2", "call$2"], ["max", function(a, b) {
  86404. return P.max(a, b, type$.num);
  86405. }], 169, 1);
  86406. _instance_1_u(_ = Y.StreamCompleter.prototype, "get$setSourceStream", "setSourceStream$1", 23);
  86407. _instance(_, "get$setError", 0, 1, function() {
  86408. return [null];
  86409. }, ["call$2", "call$1"], ["setError$2", "setError$1"], 96, 0);
  86410. _instance_0_u(_ = L.StreamGroup.prototype, "get$_onListen", "_onListen$0", 1);
  86411. _instance_0_u(_, "get$_onPause", "_onPause$0", 1);
  86412. _instance_0_u(_, "get$_onResume", "_onResume$0", 1);
  86413. _instance_0_u(_, "get$_onCancel", "_onCancel$0", 61);
  86414. _instance_1_i(O.EmptyUnmodifiableSet.prototype, "get$contains", "contains$1", 5);
  86415. _instance_1_i(M._DelegatingIterableBase.prototype, "get$contains", "contains$1", 5);
  86416. _instance_1_i(M.MapKeySet.prototype, "get$contains", "contains$1", 5);
  86417. _instance_1_u(B.ModifiableCssNode.prototype, "get$_node0$_isInvisible", "_node0$_isInvisible$1", 94);
  86418. _instance_1_u(D.SelectorList.prototype, "get$_complexContainsParentSelector", "_complexContainsParentSelector$1", 102);
  86419. _static_1(Y, "functions___isUnique$closure", "_isUnique", 170);
  86420. _static_1(K, "color___opacify$closure", "_opacify", 21);
  86421. _static_1(K, "color___transparentize$closure", "_transparentize", 21);
  86422. _instance_0_u(_ = G.Parser.prototype, "get$whitespace", "whitespace$0", 1);
  86423. _instance_0_u(_, "get$loudComment", "loudComment$0", 1);
  86424. _instance_0_u(_, "get$string", "string$0", 10);
  86425. _instance_0_u(U.SassParser.prototype, "get$loudComment", "loudComment$0", 1);
  86426. _instance(_ = V.StylesheetParser.prototype, "get$_statement", 0, 0, null, ["call$1$root", "call$0"], ["_statement$1$root", "_statement$0"], 118, 0);
  86427. _instance_0_u(_, "get$_declarationChild", "_declarationChild$0", 35);
  86428. _instance_0_u(_, "get$_declarationAtRule", "_declarationAtRule$0", 35);
  86429. _instance_0_u(_, "get$_functionChild", "_functionChild$0", 35);
  86430. _instance(_, "get$expression", 0, 0, null, ["call$3$bracketList$singleEquals$until", "call$0", "call$2$singleEquals$until", "call$1$bracketList", "call$1$singleEquals", "call$1$until"], ["expression$3$bracketList$singleEquals$until", "expression$0", "expression$2$singleEquals$until", "expression$1$bracketList", "expression$1$singleEquals", "expression$1$until"], 99, 0);
  86431. _instance_0_u(_, "get$_number", "_number$0", 103);
  86432. _instance_1_u(K.LimitedMapView.prototype, "get$containsKey", "containsKey$1", 5);
  86433. _instance_1_u(Z.MergedMapView.prototype, "get$containsKey", "containsKey$1", 5);
  86434. _instance_1_i(N.NoSourceMapBuffer0.prototype, "get$write", "write$1", 23);
  86435. _instance_1_u(F.PrefixedMapView.prototype, "get$containsKey", "containsKey$1", 5);
  86436. _instance_1_u(U.PublicMemberMapView.prototype, "get$containsKey", "containsKey$1", 5);
  86437. _instance_1_i(D.SourceMapBuffer0.prototype, "get$write", "write$1", 23);
  86438. _instance_1_u(R.UnprefixedMapView.prototype, "get$containsKey", "containsKey$1", 5);
  86439. _static_1(B, "utils__isPublic$closure", "isPublic", 65);
  86440. _instance_1_u(_ = N._SerializeVisitor0.prototype, "get$_visitMediaQuery", "_visitMediaQuery$1", 141);
  86441. _instance_1_u(_, "get$_isInvisible", "_isInvisible$1", 94);
  86442. _instance(Y.SourceFile.prototype, "get$span", 0, 1, null, ["call$2", "call$1"], ["span$2", "span$1"], 149, 0);
  86443. _instance(Y.SourceSpanMixin.prototype, "get$message", 1, 1, function() {
  86444. return {color: null};
  86445. }, ["call$2$color", "call$1"], ["message$2$color", "message$1"], 171, 0);
  86446. _static(L, "from_handlers__StreamTransformer__defaultHandleError$closure", 3, null, ["call$1$3", "call$3"], ["_StreamTransformer__defaultHandleError", function(error, stackTrace, sink) {
  86447. return L._StreamTransformer__defaultHandleError(error, stackTrace, sink, type$.dynamic);
  86448. }], 172, 0);
  86449. _static(R, "rate_limit___collectToList$closure", 2, null, ["call$1$2", "call$2"], ["_collectToList", function(element, soFar) {
  86450. return R._collectToList(element, soFar, type$.dynamic);
  86451. }], 173, 0);
  86452. _static_1(K, "color0___opacify$closure", "_opacify0", 18);
  86453. _static_1(K, "color0___transparentize$closure", "_transparentize0", 18);
  86454. _static_1(Y, "functions0___isUnique$closure", "_isUnique0", 174);
  86455. _instance_1_u(K.LimitedMapView0.prototype, "get$containsKey", "containsKey$1", 5);
  86456. _instance_1_u(D.SelectorList0.prototype, "get$_list2$_complexContainsParentSelector", "_list2$_complexContainsParentSelector$1", 133);
  86457. _instance_1_u(Z.MergedMapView0.prototype, "get$containsKey", "containsKey$1", 5);
  86458. _instance_1_i(N.NoSourceMapBuffer.prototype, "get$write", "write$1", 23);
  86459. _instance_1_u(B.ModifiableCssNode0.prototype, "get$_node2$_isInvisible", "_node2$_isInvisible$1", 91);
  86460. _static_2(B, "node___render$closure", "_render", 175);
  86461. _static_1(B, "node___renderSync$closure", "_renderSync", 176);
  86462. _instance_0_u(_ = G.Parser1.prototype, "get$whitespace", "whitespace$0", 1);
  86463. _instance_0_u(_, "get$loudComment", "loudComment$0", 1);
  86464. _instance_0_u(_, "get$string", "string$0", 10);
  86465. _instance_1_u(F.PrefixedMapView0.prototype, "get$containsKey", "containsKey$1", 5);
  86466. _instance_1_u(U.PublicMemberMapView0.prototype, "get$containsKey", "containsKey$1", 5);
  86467. _static_1(U, "sass__main$closure", "main", 177);
  86468. _instance_0_u(U.SassParser0.prototype, "get$loudComment", "loudComment$0", 1);
  86469. _instance_1_u(_ = N._SerializeVisitor.prototype, "get$_serialize0$_visitMediaQuery", "_serialize0$_visitMediaQuery$1", 179);
  86470. _instance_1_u(_, "get$_serialize0$_isInvisible", "_serialize0$_isInvisible$1", 91);
  86471. _instance_1_i(D.SourceMapBuffer.prototype, "get$write", "write$1", 23);
  86472. _instance(_ = V.StylesheetParser0.prototype, "get$_stylesheet0$_statement", 0, 0, null, ["call$1$root", "call$0"], ["_stylesheet0$_statement$1$root", "_stylesheet0$_statement$0"], 142, 0);
  86473. _instance_0_u(_, "get$_stylesheet0$_declarationChild", "_stylesheet0$_declarationChild$0", 39);
  86474. _instance_0_u(_, "get$_stylesheet0$_declarationAtRule", "_stylesheet0$_declarationAtRule$0", 39);
  86475. _instance_0_u(_, "get$_stylesheet0$_functionChild", "_stylesheet0$_functionChild$0", 39);
  86476. _instance_0_u(_, "get$_stylesheet0$_number", "_stylesheet0$_number$0", 144);
  86477. _instance_1_u(R.UnprefixedMapView0.prototype, "get$containsKey", "containsKey$1", 5);
  86478. _static_1(B, "utils0__isPublic$closure", "isPublic0", 65);
  86479. _static_1(D, "path__dirname$closure", "dirname", 95);
  86480. _static_1(T, "character__isWhitespace$closure", "isWhitespace", 16);
  86481. _static_1(T, "character__isNewline$closure", "isNewline", 16);
  86482. _static_1(T, "character__isHex$closure", "isHex", 16);
  86483. _static_2(T, "number0__fuzzyEquals$closure", "fuzzyEquals", 26);
  86484. _static_2(T, "number0__fuzzyLessThan$closure", "fuzzyLessThan", 26);
  86485. _static_2(T, "number0__fuzzyLessThanOrEquals$closure", "fuzzyLessThanOrEquals", 26);
  86486. _static_2(T, "number0__fuzzyGreaterThan$closure", "fuzzyGreaterThan", 26);
  86487. _static_2(T, "number0__fuzzyGreaterThanOrEquals$closure", "fuzzyGreaterThanOrEquals", 26);
  86488. _static_1(T, "number0__fuzzyRound$closure", "fuzzyRound", 34);
  86489. _static_1(T, "character0__isWhitespace$closure", "isWhitespace0", 16);
  86490. _static_1(T, "character0__isNewline$closure", "isNewline0", 16);
  86491. _static_1(T, "character0__isHex$closure", "isHex0", 16);
  86492. _static_2(T, "number2__fuzzyEquals$closure", "fuzzyEquals0", 26);
  86493. _static_2(T, "number2__fuzzyLessThan$closure", "fuzzyLessThan0", 26);
  86494. _static_2(T, "number2__fuzzyLessThanOrEquals$closure", "fuzzyLessThanOrEquals0", 26);
  86495. _static_2(T, "number2__fuzzyGreaterThan$closure", "fuzzyGreaterThan0", 26);
  86496. _static_2(T, "number2__fuzzyGreaterThanOrEquals$closure", "fuzzyGreaterThanOrEquals0", 26);
  86497. _static_1(T, "number2__fuzzyRound$closure", "fuzzyRound0", 34);
  86498. _static_1(F, "value1__wrapValue$closure", "wrapValue", 119);
  86499. })();
  86500. (function inheritance() {
  86501. var _mixin = hunkHelpers.mixin,
  86502. _inherit = hunkHelpers.inherit,
  86503. _inheritMany = hunkHelpers.inheritMany;
  86504. _inherit(P.Object, null);
  86505. _inheritMany(P.Object, [H.JS_CONST, J.Interceptor, J.ArrayIterator, P.Iterable, H.CastIterator, H.Closure, P._ListBase_Object_ListMixin, H.ListIterator, P.Iterator, H.ExpandIterator, H.EmptyIterator, H.FollowedByIterator, H.WhereTypeIterator, H.FixedLengthListMixin, H.UnmodifiableListMixin, H.Symbol, P.MapView, H.ConstantMap, H.JSInvocationMirror, H.TypeErrorDecoder, P.Error, H.ExceptionAndStackTrace, H._StackTrace, P.MapMixin, H.LinkedHashMapCell, H.LinkedHashMapKeyIterator, H.JSSyntaxRegExp, H._MatchImplementation, H._AllMatchesIterator, H.StringMatch, H._StringAllMatchesIterator, H.Rti, H._FunctionParameters, H._Type, P._TimerImpl, P._AsyncAwaitCompleter, P._AsyncStarStreamController, P._IterationMarker, P._SyncStarIterator, P.Stream, P._BufferingStreamSubscription, P._BroadcastStreamController, P.Future, P._Completer, P._FutureListener, P._Future, P._AsyncCallbackEntry, P.StreamSubscription, P.EventSink, P.StreamTransformerBase, P._StreamController, P._SyncStreamControllerDispatch, P._AsyncStreamControllerDispatch, P._AddStreamState, P._DelayedEvent, P._DelayedDone, P._PendingEvents, P._DoneStreamSubscription, P._StreamIterator, P.Timer, P.AsyncError, P._ZoneFunction, P._RunNullaryZoneFunction, P._RunUnaryZoneFunction, P._RunBinaryZoneFunction, P._RegisterNullaryZoneFunction, P._RegisterUnaryZoneFunction, P._RegisterBinaryZoneFunction, P.ZoneSpecification, P._ZoneSpecification, P.ZoneDelegate, P.Zone, P._ZoneDelegate, P._Zone, P._HashMapKeyIterator, P._SetBase, P._LinkedHashSetCell, P._LinkedHashSetIterator, P.ListMixin, P._MapBaseValueIterator, P._UnmodifiableMapMixin, P.Queue, P._ListQueueIterator, P.Codec, P._Base64Encoder, P.ChunkedConversionSink, P._JsonStringifier, P.StringConversionSinkMixin, P._Utf8Encoder, P._Utf8Decoder, P.bool, P.DateTime, P.num, P.Duration, P.OutOfMemoryError, P.StackOverflowError, P._Exception, P.FormatException, P.Function, P.List, P.Map, P.MapEntry, P.Null, P.Match, P.RegExpMatch, P.StackTrace, P._StringStackTrace, P.String, P.RuneIterator, P.StringBuffer, P.StringSink, P.Symbol0, P.Uri, P._Uri, P.UriData, P._SimpleUri, P._JSRandom, P.Uint8List, N.ArgParser, V.ArgResults, G.Option, G.OptionType, G.Parser0, G.Usage, V.ErrorResult, E.Result, F.ValueResult, Y.StreamCompleter, L.StreamGroup, L._StreamGroupState, G.StreamQueue, G._EventRequest, G._NextRequest, Q.Repl, B.ReplAdapter, U.DefaultEquality, U.IterableEquality, U.ListEquality, U._MapEntry, U.MapEquality, Q._QueueList_Object_ListMixin, M._DelegatingIterableBase, L.UnmodifiableSetMixin, M.Context, M._PathDirection, M._PathRelation, O.Style, X.ParsedPath, X.PathException, F.CssMediaQuery, F._SingletonCssMediaQueryMergeResult, F.MediaQuerySuccessfulMergeResult, B.AstNode, F.ModifiableCssValue, F.CssValue, B._FakeAstNode, Z.Argument, B.ArgumentDeclaration, X.ArgumentInvocation, V.AtRootQuery, Z.ConfiguredVariable, T.Expression, V.BinaryOperationExpression, V.BinaryOperator, Z.BooleanExpression, K.ColorExpression, F.FunctionExpression, L.IfExpression, D.ListExpression, A.MapExpression, O.NullExpression, T.NumberExpression, T.ParenthesizedExpression, T.SelectorExpression, D.StringExpression, X.UnaryOperationExpression, X.UnaryOperator, F.ValueExpression, S.VariableExpression, F.Import, B.DynamicImport, Q.StaticImport, X.Interpolation, O.Statement, M.ParentStatement, Q.ContentRule, Q.DebugRule, D.ErrorRule, X.ExtendRule, L.ForwardRule, V.IfRule, V.IfClause, B.ImportRule, A.IncludeRule, L.LoudComment, B.ReturnRule, B.SilentComment, T.UseRule, Z.VariableDeclaration, Y.WarnRule, L.SupportsDeclaration, X.SupportsInterpolation, M.SupportsNegation, U.SupportsOperation, T.Selector, N.AttributeOperator, S.ComplexSelectorComponent, S.Combinator, D.QualifiedName, X.CompileResult, Q.AsyncEnvironment, Q._EnvironmentModule0, O.AsyncImportCache, B.AsyncCallable, S.AsyncBuiltInCallable, Q.BuiltInCallable, L.PlainCssCallable, E.UserDefinedCallable, A.Configuration, Z.ConfiguredValue, O.Environment, O._EnvironmentModule, G.SourceSpanException, E.SassScriptException, B.ExecutableOptions, B.UsageException, A._Watcher, T.EmptyExtender, F.Extender, S.Extension, L.ExtendMode, R.ImportCache, B.AsyncImporter, E.ImporterResult, Z.InterpolationBuffer, B.FileSystemException, B.Stderr, F._QuietLogger, S.StderrLogger, T.TrackingLogger, G.Module, Q.BuiltInModule, R.ForwardedModuleView, B.ShadowedModuleView, G.Parser, M.StylesheetGraph, M.StylesheetNode, M.Syntax, G.FixedLengthListBuilder, U.MultiDirWatcher, N.NoSourceMapBuffer0, D.SourceMapBuffer0, F.Value, D.ListSeparator, E._EvaluateVisitor0, E._ImportedCssVisitor0, E.EvaluateResult, E._ArgumentResults0, V._CloneCssVisitor, R.Evaluator, R._EvaluateVisitor, R._ImportedCssVisitor, R._ArgumentResults, D.RecursiveStatementVisitor, N._SerializeVisitor0, N.OutputStyle, N.LineFeed, N.SerializeResult, L.Entry, T.Mapping, T.TargetLineEntry, T.TargetEntry, Y.SourceFile, D.SourceLocationMixin, Y.FileSpan, Y.SourceSpanMixin, U.Highlighter, U._Highlight, U._Line, V.SourceLocation, V.SourceSpan, U.Chain, A.Frame, T.LazyTrace, Y.Trace, N.UnparsedFrame, X.StringScanner, S._SpanScannerState, A.AsciiGlyphSet, K.UnicodeGlyphSet, S.Tuple2, S.Tuple3, E.WatchEvent, E.ChangeType, Z.Argument0, B.ArgumentDeclaration0, X.ArgumentInvocation0, F.Value0, B.AsyncCallable0, B.AsyncImporter0, S.AsyncBuiltInCallable0, X.CompileResult0, Q.AsyncEnvironment0, Q._EnvironmentModule2, E._EvaluateVisitor2, E._ImportedCssVisitor2, E.EvaluateResult0, E._ArgumentResults2, O.AsyncImportCache0, G.Parser1, V.AtRootQuery0, M.ParentStatement0, B.AstNode0, T.Selector0, N.AttributeOperator0, V.BinaryOperationExpression0, V.BinaryOperator0, Z.BooleanExpression0, Q.BuiltInCallable0, Q.BuiltInModule0, V._CloneCssVisitor0, K.ColorExpression0, S.ComplexSelectorComponent0, S.Combinator0, A.Configuration0, Z.ConfiguredValue0, Z.ConfiguredVariable0, Q.ContentRule0, Q.DebugRule0, L.SupportsDeclaration0, B.DynamicImport0, T.EmptyExtender0, O.Environment0, O._EnvironmentModule1, D.ErrorRule0, R._EvaluateVisitor1, R._ImportedCssVisitor1, R._ArgumentResults1, E.SassScriptException0, T.Expression0, X.ExtendRule0, F.Extender0, S.Extension0, G.FixedLengthListBuilder0, L.ForwardRule0, R.ForwardedModuleView0, F.FunctionExpression0, L.IfExpression0, V.IfRule0, V.IfClause0, F.NodeImporter, F.Import0, R.ImportCache0, B.ImportRule0, A.IncludeRule0, X.Interpolation0, X.SupportsInterpolation0, Z.InterpolationBuffer0, D.ListExpression0, D.ListSeparator0, L.LoudComment0, A.MapExpression0, F.CssMediaQuery0, F._SingletonCssMediaQueryMergeResult0, F.MediaQuerySuccessfulMergeResult0, L.ExtendMode0, G.Module0, M.SupportsNegation0, N.NoSourceMapBuffer, B._FakeAstNode0, B.FileSystemException0, B.Stderr0, O.NullExpression0, T.NumberExpression0, U.SupportsOperation0, T.ParenthesizedExpression0, L.PlainCssCallable0, D.QualifiedName0, E.ImporterResult0, B.ReturnRule0, T.SelectorExpression0, N._SerializeVisitor, N.OutputStyle0, N.LineFeed0, N.SerializeResult0, B.ShadowedModuleView0, B.SilentComment0, D.SourceMapBuffer, O.Statement0, Q.StaticImport0, S.StderrLogger0, D.StringExpression0, M.Syntax0, X.UnaryOperationExpression0, X.UnaryOperator0, T.UseRule0, E.UserDefinedCallable0, F.CssValue0, F.ValueExpression0, F.ModifiableCssValue0, S.VariableExpression0, Z.VariableDeclaration0, Y.WarnRule0]);
  86506. _inheritMany(J.Interceptor, [J.JSBool, J.JSNull, J.JavaScriptObject, J.JSArray, J.JSNumber, J.JSString, H.NativeTypedData]);
  86507. _inheritMany(J.JavaScriptObject, [J.PlainJavaScriptObject, J.UnknownJavaScriptObject, J.JavaScriptFunction, B.Stdin, B.Stdout, B.ReadlineModule, B.ReadlineOptions, B.ReadlineInterface, B._FS, B._Stat, B._Date, B._Stderr, B._Stdin, B._SystemError, B._Process, Y.Chokidar, Y.ChokidarOptions, Y.ChokidarWatcher, F.JSFunction, F.NodeImporterResult, B._PropertyDescriptor, Y.Chokidar0, Y.ChokidarOptions0, Y.ChokidarWatcher0, K._NodeSassColor, V.JSError, D.Exports, E.FiberClass, E.Fiber, F.JSFunction0, F.NodeImporterResult0, D._NodeSassList, A._NodeSassMap, B._FS0, B._Stat0, B._Date0, B._Stderr0, B._Stdin0, B._SystemError0, B._Process0, T._NodeSassNumber, Z.RenderContext, L.RenderContextOptions, R.RenderOptions, U.RenderResult, U.RenderResultStats, R._Exports, D._NodeSassString, G.Types, B._PropertyDescriptor0]);
  86508. _inherit(J.JSUnmodifiableArray, J.JSArray);
  86509. _inheritMany(J.JSNumber, [J.JSInt, J.JSDouble]);
  86510. _inheritMany(P.Iterable, [H._CastIterableBase, H.EfficientLengthIterable, H.MappedIterable, H.WhereIterable, H.ExpandIterable, H.TakeIterable, H.SkipIterable, H.SkipWhileIterable, H.FollowedByIterable, H.WhereTypeIterable, H._ConstantMapKeyIterable, P.IterableBase, H._StringAllMatchesIterable, P.Runes]);
  86511. _inheritMany(H._CastIterableBase, [H.CastIterable, H.__CastListBase__CastIterableBase_ListMixin, H.CastSet, H.CastQueue]);
  86512. _inherit(H._EfficientLengthCastIterable, H.CastIterable);
  86513. _inherit(H._CastListBase, H.__CastListBase__CastIterableBase_ListMixin);
  86514. _inheritMany(H.Closure, [H._CastListBase_sort_closure, H.ConstantStringMap_values_closure, H.Instantiation, H.Primitives_functionNoSuchMethod_closure, H.unwrapException_saveStackTrace, H.TearOffClosure, H.JsLinkedHashMap_values_closure, H.JsLinkedHashMap_addAll_closure, H.initHooks_closure, H.initHooks_closure0, H.initHooks_closure1, P._AsyncRun__initializeScheduleImmediate_internalCallback, P._AsyncRun__initializeScheduleImmediate_closure, P._AsyncRun__scheduleImmediateJsOverride_internalCallback, P._AsyncRun__scheduleImmediateWithSetImmediate_internalCallback, P._TimerImpl_internalCallback, P._TimerImpl$periodic_closure, P._awaitOnObject_closure, P._awaitOnObject_closure0, P._wrapJsFunctionForAsync_closure, P._asyncStarHelper_closure, P._asyncStarHelper_closure0, P._AsyncStarStreamController__resumeBody, P._AsyncStarStreamController__resumeBody_closure, P._AsyncStarStreamController_closure0, P._AsyncStarStreamController_closure1, P._AsyncStarStreamController_closure, P._AsyncStarStreamController__closure, P._SyncBroadcastStreamController__sendData_closure, P._SyncBroadcastStreamController__sendError_closure, P._SyncBroadcastStreamController__sendDone_closure, P.Future_wait_handleError, P.Future_wait_closure, P._Future__addListener_closure, P._Future__prependListeners_closure, P._Future__chainForeignFuture_closure, P._Future__chainForeignFuture_closure0, P._Future__chainForeignFuture_closure1, P._Future__asyncComplete_closure, P._Future__chainFuture_closure, P._Future__asyncCompleteError_closure, P._Future__propagateToListeners_handleWhenCompleteCallback, P._Future__propagateToListeners_handleWhenCompleteCallback_closure, P._Future__propagateToListeners_handleValueCallback, P._Future__propagateToListeners_handleError, P.Stream_Stream$fromFuture_closure, P.Stream_Stream$fromFuture_closure0, P.Stream_length_closure, P.Stream_length_closure0, P._StreamController__subscribe_closure, P._StreamController__recordCancel_complete, P._AddStreamState_cancel_closure, P._BufferingStreamSubscription__sendError_sendError, P._BufferingStreamSubscription__sendDone_sendDone, P._PendingEvents_schedule_closure, P._CustomZone_bindCallback_closure, P._CustomZone_bindUnaryCallback_closure, P._CustomZone_bindCallbackGuarded_closure, P._rootHandleUncaughtError_closure, P._RootZone_bindCallback_closure, P._RootZone_bindCallbackGuarded_closure, P._HashMap_values_closure, P._HashMap_addAll_closure, P._LinkedCustomHashMap_closure, P.HashMap_HashMap$from_closure, P.LinkedHashMap_LinkedHashMap$from_closure, P.MapBase_mapToString_closure, P.MapMixin_entries_closure, P._JsonStringifier_writeMap_closure, P.NoSuchMethodError_toString_closure, P.Duration_toString_sixDigits, P.Duration_toString_twoDigits, P.Uri__parseIPv4Address_error, P.Uri_parseIPv6Address_error, P.Uri_parseIPv6Address_parseHex, P._Uri__Uri$notSimple_closure, P._Uri__checkNonWindowsPathReservedCharacters_closure, P._Uri__makePath_closure, P._createTables_closure, P._createTables_build, P._createTables_setChars, P._createTables_setRange, N.ArgParser_findByAbbreviation_closure, N.ArgParser_findByAbbreviation_closure0, G.Parser_parse_closure, G.Parser_setOption_closure, G.Usage_generate_closure, G.Usage_buildAllowedList_closure, L.StreamGroup_add_closure, L.StreamGroup_add_closure0, L.StreamGroup__onListen_closure, L.StreamGroup__onCancel_closure, L.StreamGroup__onCancel_closure0, L.StreamGroup__listenToStream_closure, G.StreamQueue__ensureListening_closure, G.StreamQueue__ensureListening_closure1, G.StreamQueue__ensureListening_closure0, Q.closure106, B.ReplAdapter_runAsync_closure, Y.mapMap_closure, Y.mapMap_closure0, Y.mapMap_closure1, Y.groupBy_closure, B.defaultCompare_closure, M.Context_join_closure, M.Context_joinAll_closure, M.Context_split_closure, M._validateArgList_closure, X.ParsedPath_normalize_closure, X.ParsedPath__splitExtension_closure, X.ParsedPath__splitExtension_closure0, K.PathMap__create_closure, K.PathMap__create_closure0, K.PathMap__create_closure1, L.WindowsStyle_absolutePathToUri_closure, B.ArgumentDeclaration_verify_closure, B.ArgumentDeclaration_verify_closure0, D.ListExpression_toString_closure, A.MapExpression_toString_closure, X.Interpolation_toString_closure, V.EachRule_toString_closure, V.IfRule_toString_closure, V.IfClause$__closure, V.IfClause$___closure, M.ParentStatement_closure, M.ParentStatement__closure, S.ComplexSelector_isInvisible_closure, X.CompoundSelector_isInvisible_closure, N.IDSelector_unify_closure, D.SelectorList_isInvisible_closure, D.SelectorList_asSassList_closure, D.SelectorList_asSassList__closure, D.SelectorList_unify_closure, D.SelectorList_unify__closure, D.SelectorList_unify___closure, D.SelectorList_resolveParentSelectors_closure, D.SelectorList_resolveParentSelectors__closure, D.SelectorList_resolveParentSelectors__closure0, D.SelectorList__complexContainsParentSelector_closure, D.SelectorList__complexContainsParentSelector__closure, D.SelectorList__resolveParentSelectorsCompound_closure, D.SelectorList__resolveParentSelectorsCompound_closure0, D.SelectorList__resolveParentSelectorsCompound_closure1, X._compileStylesheet_closure0, Q.AsyncEnvironment_importForwards_closure, Q.AsyncEnvironment_importForwards_closure0, Q.AsyncEnvironment_importForwards_closure1, Q.AsyncEnvironment_importForwards_closure2, Q.AsyncEnvironment__getVariableFromGlobalModule_closure, Q.AsyncEnvironment_setVariable_closure, Q.AsyncEnvironment_setVariable_closure0, Q.AsyncEnvironment_setVariable_closure1, Q.AsyncEnvironment__getFunctionFromGlobalModule_closure, Q.AsyncEnvironment__getMixinFromGlobalModule_closure, Q._EnvironmentModule__EnvironmentModule_closure5, Q._EnvironmentModule__EnvironmentModule_closure6, Q._EnvironmentModule__EnvironmentModule_closure7, Q._EnvironmentModule__EnvironmentModule_closure8, Q._EnvironmentModule__EnvironmentModule_closure9, Q._EnvironmentModule__EnvironmentModule_closure10, O.AsyncImportCache_canonicalize_closure, O.AsyncImportCache__canonicalize_closure, O.AsyncImportCache_importCanonical_closure, O.AsyncImportCache_humanize_closure, O.AsyncImportCache_humanize_closure0, O.AsyncImportCache_humanize_closure1, S.AsyncBuiltInCallable$mixin_closure, Q.BuiltInCallable$mixin_closure, X.closure70, X.closure71, U._compileStylesheet_closure, O.Environment_importForwards_closure, O.Environment_importForwards_closure0, O.Environment_importForwards_closure1, O.Environment_importForwards_closure2, O.Environment__getVariableFromGlobalModule_closure, O.Environment_setVariable_closure, O.Environment_setVariable_closure0, O.Environment_setVariable_closure1, O.Environment__getFunctionFromGlobalModule_closure, O.Environment__getMixinFromGlobalModule_closure, O._EnvironmentModule__EnvironmentModule_closure, O._EnvironmentModule__EnvironmentModule_closure0, O._EnvironmentModule__EnvironmentModule_closure1, O._EnvironmentModule__EnvironmentModule_closure2, O._EnvironmentModule__EnvironmentModule_closure3, O._EnvironmentModule__EnvironmentModule_closure4, D._writeSourceMap_closure, B.ExecutableOptions_closure, B.ExecutableOptions_emitErrorCss_closure, A.watch_closure, A._Watcher__debounceEvents_closure, A._Watcher__debounceEvents__closure, F.Extender_extensionsWhereTarget_closure, F.Extender__registerSelector_closure, F.Extender_addExtension_closure, F.Extender_addExtension_closure0, F.Extender_addExtension_closure1, F.Extender__extendExistingExtensions_closure, F.Extender__extendExistingExtensions_closure0, F.Extender_addExtensions_closure, F.Extender_addExtensions__closure, F.Extender_addExtensions___closure, F.Extender_addExtensions___closure0, F.Extender__extendList_closure, F.Extender__extendComplex_closure, F.Extender__extendComplex_closure0, F.Extender__extendComplex__closure, F.Extender__extendComplex__closure0, F.Extender__extendComplex___closure, F.Extender__extendCompound_closure, F.Extender__extendCompound_closure0, F.Extender__extendCompound__closure, F.Extender__extendCompound__closure0, F.Extender__extendCompound_closure1, F.Extender__extendCompound_closure2, F.Extender__extendSimple_withoutPseudo, F.Extender__extendSimple_closure, F.Extender__extendPseudo_closure, F.Extender__extendPseudo_closure0, F.Extender__extendPseudo_closure1, F.Extender__extendPseudo_closure2, F.Extender__extendPseudo_closure3, F.Extender__trim_closure, F.Extender__trim_closure0, F.Extender_clone_closure, Y.unifyComplex_closure, Y._weaveParents_closure, Y._weaveParents_closure0, Y._weaveParents_closure1, Y._weaveParents__closure1, Y._weaveParents_closure2, Y._weaveParents_closure3, Y._weaveParents__closure0, Y._weaveParents_closure4, Y._weaveParents_closure5, Y._weaveParents__closure, Y._mustUnify_closure, Y._mustUnify__closure, Y.paths_closure, Y.paths__closure, Y.paths___closure, Y._hasRoot_closure, Y.listIsSuperslector_closure, Y.listIsSuperslector__closure, Y._simpleIsSuperselectorOfCompound_closure, Y._simpleIsSuperselectorOfCompound__closure, Y._selectorPseudoIsSuperselector_closure, Y._selectorPseudoIsSuperselector_closure0, Y._selectorPseudoIsSuperselector_closure1, Y._selectorPseudoIsSuperselector_closure2, Y._selectorPseudoIsSuperselector_closure3, Y._selectorPseudoIsSuperselector__closure, Y._selectorPseudoIsSuperselector___closure, Y._selectorPseudoIsSuperselector___closure0, Y._selectorPseudoIsSuperselector_closure4, Y._selectorPseudoIsSuperselector_closure5, Y._selectorPseudosNamed_closure, Y.closure, K.closure43, K.closure44, K.closure45, K.closure46, K.closure47, K.closure48, K.closure49, K.closure50, K.closure51, K.closure52, K.closure53, K.closure54, K.closure55, K.closure56, K.closure57, K.closure58, K.closure59, K.closure60, K.closure61, K.closure62, K.closure63, K.closure64, K.closure65, K.closure66, K.closure67, K.closure68, K._closure10, K.closure69, K.closure96, K.closure97, K.closure98, K.closure99, K._closure12, K.closure100, K.closure83, K.closure82, K.closure81, K.closure80, K.closure79, K.closure78, K.closure77, K.closure76, K.closure74, K.closure_getInRange0, K._closure9, K.closure73, K.closure_getScale, K.closure_scaleValue, K._closure8, K.closure72, K.closure_getInRange, K._closure7, K.closure75, K.closure_hexString, K._functionString_closure, K._removedColorFunction_closure, K._parseChannels_closure, D.closure42, D.closure41, D.closure40, D.closure39, D.closure38, D.closure37, D._closure4, D._closure5, D._closure6, D.closure36, D.closure34, D.closure35, A.closure33, A.closure32, A.closure30, A.closure31, A.closure29, A.closure28, A.closure27, K.closure25, K.closure91, K.closure24, K.closure23, K.closure22, K.closure26, K.closure89, K._closure11, K.closure88, K.closure87, K.closure85, K.closure95, K.closure94, K.closure93, K.closure92, K.closure90, K.closure86, K.closure84, K.closure18, K.closure17, K.closure19, K.closure21, K.closure20, K._numberFunction_closure, Q.closure101, Q.closure102, Q.closure103, Q.closure104, Q._closure13, T.closure13, T._closure1, T._closure2, T.closure12, T._closure, T._closure0, T.__closure, T.closure11, T.closure10, T.closure9, T.closure16, T.closure15, T._closure3, T.closure14, D.closure8, D.closure7, D.closure3, D.closure2, D.closure1, D.closure0, D.closure6, D.closure5, D.closure4, R.ImportCache_canonicalize_closure, R.ImportCache__canonicalize_closure, R.ImportCache_importCanonical_closure, R.ImportCache_humanize_closure, R.ImportCache_humanize_closure0, R.ImportCache_humanize_closure1, B.resolveImportPath_closure, B.resolveImportPath_closure0, B._tryPathAsDirectory_closure, B._exactlyOne_closure, F.realCasePath_closure, B._readFile_closure, B.writeFile_closure, B.deleteFile_closure, B.readStdin_closure, B.readStdin_closure0, B.readStdin_closure1, B.readStdin_closure2, B.fileExists_closure, B.dirExists_closure, B.ensureDir_closure, B.listDir_closure, B.listDir__closure, B.listDir__closure0, B.listDir_closure_list, B.listDir__list_closure, B.modificationTime_closure, B.watchDir_closure, B.watchDir_closure0, B.watchDir_closure1, B.watchDir_closure2, B.watchDir_closure3, B.watchDir__closure, V.AtRootQueryParser_parse_closure, Q.closure105, E.KeyframeSelectorParser_parse_closure, F.MediaQueryParser_parse_closure, G.Parser__parseIdentifier_closure, G.Parser_scanIdentChar_matches, U.SassParser_children_closure, T.SelectorParser_parse_closure, T.SelectorParser_parseCompoundSelector_closure, V.StylesheetParser_parse_closure, V.StylesheetParser_parse__closure, V.StylesheetParser_parse__closure0, V.StylesheetParser_parseArgumentDeclaration_closure, V.StylesheetParser_parseVariableDeclaration_closure, V.StylesheetParser_parseUseRule_closure, V.StylesheetParser__parseSingleProduction_closure, V.StylesheetParser__statement_closure, V.StylesheetParser_variableDeclarationWithoutNamespace_closure, V.StylesheetParser_variableDeclarationWithoutNamespace_closure0, V.StylesheetParser__declarationOrBuffer_closure, V.StylesheetParser__declarationOrBuffer_closure0, V.StylesheetParser__styleRule_closure, V.StylesheetParser__propertyOrVariableDeclaration_closure, V.StylesheetParser__propertyOrVariableDeclaration_closure0, V.StylesheetParser__atRootRule_closure, V.StylesheetParser__atRootRule_closure0, V.StylesheetParser__eachRule_closure, V.StylesheetParser__functionRule_closure, V.StylesheetParser__forRule_closure, V.StylesheetParser__forRule_closure0, V.StylesheetParser__memberList_closure, V.StylesheetParser__includeRule_closure, V.StylesheetParser_mediaRule_closure, V.StylesheetParser__mixinRule_closure, V.StylesheetParser_mozDocumentRule_closure, V.StylesheetParser_supportsRule_closure, V.StylesheetParser__whileRule_closure, V.StylesheetParser_unknownAtRule_closure, V.StylesheetParser_expression_resetState, V.StylesheetParser_expression_resolveOneOperation, V.StylesheetParser_expression_resolveOperations, V.StylesheetParser_expression_addSingleExpression, V.StylesheetParser_expression_addOperator, V.StylesheetParser_expression_resolveSpaceExpressions, V.StylesheetParser__expressionUntilComma_closure, V.StylesheetParser__unicodeRange_closure, V.StylesheetParser__unicodeRange_closure0, V.StylesheetParser_identifierLike_closure, V.StylesheetParser__expressionUntilComparison_closure, V.StylesheetParser__publicIdentifier_closure, M.StylesheetGraph_modifiedSince_transitiveModificationTime, M.StylesheetGraph_modifiedSince_transitiveModificationTime_closure, M.StylesheetGraph__add_closure, M.StylesheetGraph_addCanonical_closure, M.StylesheetGraph_reload_closure, M.StylesheetGraph__recanonicalizeImportsForNode_closure, M.StylesheetGraph__nodeFor_closure, M.StylesheetGraph__nodeFor_closure0, F._PrefixedKeys_iterator_closure, D.SourceMapBuffer_sourceFiles_closure, D.SourceMapBuffer__addEntry_closure, D.SourceMapBuffer_buildSourceMap_closure, R._UnprefixedKeys_iterator_closure, R._UnprefixedKeys_iterator_closure0, B.indent_closure, B.flattenVertically_closure, B.flattenVertically_closure0, B.longestCommonSubsequence_closure, B.longestCommonSubsequence_closure0, B.longestCommonSubsequence_closure1, B.longestCommonSubsequence_backtrack, B.mapAddAll2_closure, B.mapMapAsync_closure, B.copyMapOfMap_closure, B.copyMapOfList_closure, D.SassList_isBlank_closure, A.SassMap_asList_closure, T.SassNumber_valueInUnits_closure, T.SassNumber_valueInUnits_closure0, T.SassNumber_valueInUnits_closure1, T.SassNumber_valueInUnits_closure2, T.SassNumber_modulo_closure, T.SassNumber_plus_closure, T.SassNumber_minus_closure, T.SassNumber__multiplyUnits_closure, T.SassNumber__multiplyUnits_closure0, T.SassNumber__multiplyUnits_closure1, T.SassNumber__multiplyUnits_closure2, T.SassNumber__areAnyConvertible_closure, T.SassNumber__canonicalMultiplier_closure, E._EvaluateVisitor_closure9, E._EvaluateVisitor_closure10, E._EvaluateVisitor_closure11, E._EvaluateVisitor_closure12, E._EvaluateVisitor_closure13, E._EvaluateVisitor_closure14, E._EvaluateVisitor_closure15, E._EvaluateVisitor_closure16, E._EvaluateVisitor__closure8, E._EvaluateVisitor_closure17, E._EvaluateVisitor__closure6, E._EvaluateVisitor__closure7, E._EvaluateVisitor_closure18, E._EvaluateVisitor__closure4, E._EvaluateVisitor__closure5, E._EvaluateVisitor_run_closure0, E._EvaluateVisitor__withWarnCallback_closure0, E._EvaluateVisitor__loadModule_closure0, E._EvaluateVisitor__execute_closure0, E._EvaluateVisitor__combineCss_closure2, E._EvaluateVisitor__combineCss_closure3, E._EvaluateVisitor__combineCss_closure4, E._EvaluateVisitor__extendModules_closure1, E._EvaluateVisitor__extendModules_closure2, E._EvaluateVisitor__topologicalModules_visitModule0, E._EvaluateVisitor_visitAtRootRule_closure2, E._EvaluateVisitor_visitAtRootRule_closure3, E._EvaluateVisitor_visitAtRootRule_closure4, E._EvaluateVisitor__scopeForAtRoot_closure5, E._EvaluateVisitor__scopeForAtRoot_closure6, E._EvaluateVisitor__scopeForAtRoot_closure7, E._EvaluateVisitor__scopeForAtRoot__closure0, E._EvaluateVisitor__scopeForAtRoot_closure8, E._EvaluateVisitor__scopeForAtRoot_closure9, E._EvaluateVisitor__scopeForAtRoot_closure10, E._EvaluateVisitor_visitContentRule_closure0, E._EvaluateVisitor_visitDeclaration_closure0, E._EvaluateVisitor_visitEachRule_closure2, E._EvaluateVisitor_visitEachRule_closure3, E._EvaluateVisitor_visitEachRule_closure4, E._EvaluateVisitor_visitEachRule__closure0, E._EvaluateVisitor_visitEachRule___closure0, E._EvaluateVisitor_visitExtendRule_closure0, E._EvaluateVisitor_visitAtRule_closure1, E._EvaluateVisitor_visitAtRule__closure0, E._EvaluateVisitor_visitAtRule_closure2, E._EvaluateVisitor_visitForRule_closure4, E._EvaluateVisitor_visitForRule_closure5, E._EvaluateVisitor_visitForRule_closure6, E._EvaluateVisitor_visitForRule_closure7, E._EvaluateVisitor_visitForRule_closure8, E._EvaluateVisitor_visitForRule__closure0, E._EvaluateVisitor_visitForwardRule_closure1, E._EvaluateVisitor_visitForwardRule_closure2, E._EvaluateVisitor__assertConfigurationIsEmpty_closure0, E._EvaluateVisitor_visitIfRule_closure0, E._EvaluateVisitor_visitIfRule__closure0, E._EvaluateVisitor__visitDynamicImport_closure0, E._EvaluateVisitor__visitDynamicImport__closure0, E._EvaluateVisitor_visitIncludeRule_closure2, E._EvaluateVisitor_visitIncludeRule_closure3, E._EvaluateVisitor_visitIncludeRule_closure4, E._EvaluateVisitor_visitIncludeRule__closure0, E._EvaluateVisitor_visitIncludeRule___closure0, E._EvaluateVisitor_visitIncludeRule____closure0, E._EvaluateVisitor_visitMediaRule_closure1, E._EvaluateVisitor_visitMediaRule__closure0, E._EvaluateVisitor_visitMediaRule___closure0, E._EvaluateVisitor_visitMediaRule_closure2, E._EvaluateVisitor__visitMediaQueries_closure0, E._EvaluateVisitor_visitStyleRule_closure6, E._EvaluateVisitor_visitStyleRule_closure7, E._EvaluateVisitor_visitStyleRule_closure8, E._EvaluateVisitor_visitStyleRule_closure9, E._EvaluateVisitor_visitStyleRule_closure10, E._EvaluateVisitor_visitStyleRule_closure11, E._EvaluateVisitor_visitStyleRule__closure0, E._EvaluateVisitor_visitStyleRule_closure12, E._EvaluateVisitor_visitSupportsRule_closure1, E._EvaluateVisitor_visitSupportsRule__closure0, E._EvaluateVisitor_visitSupportsRule_closure2, E._EvaluateVisitor_visitVariableDeclaration_closure2, E._EvaluateVisitor_visitVariableDeclaration_closure3, E._EvaluateVisitor_visitVariableDeclaration_closure4, E._EvaluateVisitor_visitUseRule_closure0, E._EvaluateVisitor_visitWarnRule_closure0, E._EvaluateVisitor_visitWhileRule_closure0, E._EvaluateVisitor_visitWhileRule__closure0, E._EvaluateVisitor_visitBinaryOperationExpression_closure0, E._EvaluateVisitor_visitVariableExpression_closure0, E._EvaluateVisitor_visitListExpression_closure0, E._EvaluateVisitor_visitFunctionExpression_closure1, E._EvaluateVisitor_visitFunctionExpression_closure2, E._EvaluateVisitor__runUserDefinedCallable_closure0, E._EvaluateVisitor__runUserDefinedCallable__closure0, E._EvaluateVisitor__runUserDefinedCallable___closure0, E._EvaluateVisitor__runUserDefinedCallable____closure0, E._EvaluateVisitor__runFunctionCallable_closure0, E._EvaluateVisitor__runBuiltInCallable_closure1, E._EvaluateVisitor__runBuiltInCallable_closure2, E._EvaluateVisitor__evaluateArguments_closure2, E._EvaluateVisitor__evaluateArguments_closure3, E._EvaluateVisitor__evaluateArguments_closure4, E._EvaluateVisitor__evaluateMacroArguments_closure3, E._EvaluateVisitor__evaluateMacroArguments_closure4, E._EvaluateVisitor__evaluateMacroArguments_closure5, E._EvaluateVisitor__evaluateMacroArguments_closure6, E._EvaluateVisitor__addRestMap_closure1, E._EvaluateVisitor__addRestMap_closure2, E._EvaluateVisitor__verifyArguments_closure0, E._EvaluateVisitor_visitStringExpression_closure0, E._EvaluateVisitor_visitCssAtRule_closure1, E._EvaluateVisitor_visitCssAtRule_closure2, E._EvaluateVisitor_visitCssKeyframeBlock_closure1, E._EvaluateVisitor_visitCssKeyframeBlock_closure2, E._EvaluateVisitor_visitCssMediaRule_closure1, E._EvaluateVisitor_visitCssMediaRule__closure0, E._EvaluateVisitor_visitCssMediaRule___closure0, E._EvaluateVisitor_visitCssMediaRule_closure2, E._EvaluateVisitor_visitCssStyleRule_closure1, E._EvaluateVisitor_visitCssStyleRule__closure0, E._EvaluateVisitor_visitCssStyleRule_closure2, E._EvaluateVisitor_visitCssSupportsRule_closure1, E._EvaluateVisitor_visitCssSupportsRule__closure0, E._EvaluateVisitor_visitCssSupportsRule_closure2, E._EvaluateVisitor__performInterpolation_closure0, E._EvaluateVisitor__serialize_closure0, E._EvaluateVisitor__stackTrace_closure0, E._ImportedCssVisitor_visitCssAtRule_closure0, E._ImportedCssVisitor_visitCssMediaRule_closure0, E._ImportedCssVisitor_visitCssStyleRule_closure0, E._ImportedCssVisitor_visitCssSupportsRule_closure0, R._EvaluateVisitor_closure, R._EvaluateVisitor_closure0, R._EvaluateVisitor_closure1, R._EvaluateVisitor_closure2, R._EvaluateVisitor_closure3, R._EvaluateVisitor_closure4, R._EvaluateVisitor_closure5, R._EvaluateVisitor_closure6, R._EvaluateVisitor__closure3, R._EvaluateVisitor_closure7, R._EvaluateVisitor__closure1, R._EvaluateVisitor__closure2, R._EvaluateVisitor_closure8, R._EvaluateVisitor__closure, R._EvaluateVisitor__closure0, R._EvaluateVisitor_run_closure, R._EvaluateVisitor_runExpression_closure, R._EvaluateVisitor_runExpression__closure, R._EvaluateVisitor_runStatement_closure, R._EvaluateVisitor_runStatement__closure, R._EvaluateVisitor__withWarnCallback_closure, R._EvaluateVisitor__loadModule_closure, R._EvaluateVisitor__execute_closure, R._EvaluateVisitor__combineCss_closure, R._EvaluateVisitor__combineCss_closure0, R._EvaluateVisitor__combineCss_closure1, R._EvaluateVisitor__extendModules_closure, R._EvaluateVisitor__extendModules_closure0, R._EvaluateVisitor__topologicalModules_visitModule, R._EvaluateVisitor_visitAtRootRule_closure, R._EvaluateVisitor_visitAtRootRule_closure0, R._EvaluateVisitor_visitAtRootRule_closure1, R._EvaluateVisitor__scopeForAtRoot_closure, R._EvaluateVisitor__scopeForAtRoot_closure0, R._EvaluateVisitor__scopeForAtRoot_closure1, R._EvaluateVisitor__scopeForAtRoot__closure, R._EvaluateVisitor__scopeForAtRoot_closure2, R._EvaluateVisitor__scopeForAtRoot_closure3, R._EvaluateVisitor__scopeForAtRoot_closure4, R._EvaluateVisitor_visitContentRule_closure, R._EvaluateVisitor_visitDeclaration_closure, R._EvaluateVisitor_visitEachRule_closure, R._EvaluateVisitor_visitEachRule_closure0, R._EvaluateVisitor_visitEachRule_closure1, R._EvaluateVisitor_visitEachRule__closure, R._EvaluateVisitor_visitEachRule___closure, R._EvaluateVisitor_visitExtendRule_closure, R._EvaluateVisitor_visitAtRule_closure, R._EvaluateVisitor_visitAtRule__closure, R._EvaluateVisitor_visitAtRule_closure0, R._EvaluateVisitor_visitForRule_closure, R._EvaluateVisitor_visitForRule_closure0, R._EvaluateVisitor_visitForRule_closure1, R._EvaluateVisitor_visitForRule_closure2, R._EvaluateVisitor_visitForRule_closure3, R._EvaluateVisitor_visitForRule__closure, R._EvaluateVisitor_visitForwardRule_closure, R._EvaluateVisitor_visitForwardRule_closure0, R._EvaluateVisitor__assertConfigurationIsEmpty_closure, R._EvaluateVisitor_visitIfRule_closure, R._EvaluateVisitor_visitIfRule__closure, R._EvaluateVisitor__visitDynamicImport_closure, R._EvaluateVisitor__visitDynamicImport__closure, R._EvaluateVisitor_visitIncludeRule_closure, R._EvaluateVisitor_visitIncludeRule_closure0, R._EvaluateVisitor_visitIncludeRule_closure1, R._EvaluateVisitor_visitIncludeRule__closure, R._EvaluateVisitor_visitIncludeRule___closure, R._EvaluateVisitor_visitIncludeRule____closure, R._EvaluateVisitor_visitMediaRule_closure, R._EvaluateVisitor_visitMediaRule__closure, R._EvaluateVisitor_visitMediaRule___closure, R._EvaluateVisitor_visitMediaRule_closure0, R._EvaluateVisitor__visitMediaQueries_closure, R._EvaluateVisitor_visitStyleRule_closure, R._EvaluateVisitor_visitStyleRule_closure0, R._EvaluateVisitor_visitStyleRule_closure1, R._EvaluateVisitor_visitStyleRule_closure2, R._EvaluateVisitor_visitStyleRule_closure3, R._EvaluateVisitor_visitStyleRule_closure4, R._EvaluateVisitor_visitStyleRule__closure, R._EvaluateVisitor_visitStyleRule_closure5, R._EvaluateVisitor_visitSupportsRule_closure, R._EvaluateVisitor_visitSupportsRule__closure, R._EvaluateVisitor_visitSupportsRule_closure0, R._EvaluateVisitor_visitVariableDeclaration_closure, R._EvaluateVisitor_visitVariableDeclaration_closure0, R._EvaluateVisitor_visitVariableDeclaration_closure1, R._EvaluateVisitor_visitUseRule_closure, R._EvaluateVisitor_visitWarnRule_closure, R._EvaluateVisitor_visitWhileRule_closure, R._EvaluateVisitor_visitWhileRule__closure, R._EvaluateVisitor_visitBinaryOperationExpression_closure, R._EvaluateVisitor_visitVariableExpression_closure, R._EvaluateVisitor_visitListExpression_closure, R._EvaluateVisitor_visitFunctionExpression_closure, R._EvaluateVisitor_visitFunctionExpression_closure0, R._EvaluateVisitor__runUserDefinedCallable_closure, R._EvaluateVisitor__runUserDefinedCallable__closure, R._EvaluateVisitor__runUserDefinedCallable___closure, R._EvaluateVisitor__runUserDefinedCallable____closure, R._EvaluateVisitor__runFunctionCallable_closure, R._EvaluateVisitor__runBuiltInCallable_closure, R._EvaluateVisitor__runBuiltInCallable_closure0, R._EvaluateVisitor__evaluateArguments_closure, R._EvaluateVisitor__evaluateArguments_closure0, R._EvaluateVisitor__evaluateArguments_closure1, R._EvaluateVisitor__evaluateMacroArguments_closure, R._EvaluateVisitor__evaluateMacroArguments_closure0, R._EvaluateVisitor__evaluateMacroArguments_closure1, R._EvaluateVisitor__evaluateMacroArguments_closure2, R._EvaluateVisitor__addRestMap_closure, R._EvaluateVisitor__addRestMap_closure0, R._EvaluateVisitor__verifyArguments_closure, R._EvaluateVisitor_visitStringExpression_closure, R._EvaluateVisitor_visitCssAtRule_closure, R._EvaluateVisitor_visitCssAtRule_closure0, R._EvaluateVisitor_visitCssKeyframeBlock_closure, R._EvaluateVisitor_visitCssKeyframeBlock_closure0, R._EvaluateVisitor_visitCssMediaRule_closure, R._EvaluateVisitor_visitCssMediaRule__closure, R._EvaluateVisitor_visitCssMediaRule___closure, R._EvaluateVisitor_visitCssMediaRule_closure0, R._EvaluateVisitor_visitCssStyleRule_closure, R._EvaluateVisitor_visitCssStyleRule__closure, R._EvaluateVisitor_visitCssStyleRule_closure0, R._EvaluateVisitor_visitCssSupportsRule_closure, R._EvaluateVisitor_visitCssSupportsRule__closure, R._EvaluateVisitor_visitCssSupportsRule_closure0, R._EvaluateVisitor__performInterpolation_closure, R._EvaluateVisitor__serialize_closure, R._EvaluateVisitor__stackTrace_closure, R._ImportedCssVisitor_visitCssAtRule_closure, R._ImportedCssVisitor_visitCssMediaRule_closure, R._ImportedCssVisitor_visitCssStyleRule_closure, R._ImportedCssVisitor_visitCssSupportsRule_closure, N.serialize_closure, N._SerializeVisitor_visitCssComment_closure, N._SerializeVisitor_visitCssAtRule_closure, N._SerializeVisitor_visitCssMediaRule_closure, N._SerializeVisitor_visitCssImport_closure, N._SerializeVisitor_visitCssImport__closure, N._SerializeVisitor_visitCssKeyframeBlock_closure, N._SerializeVisitor_visitCssStyleRule_closure, N._SerializeVisitor_visitCssSupportsRule_closure, N._SerializeVisitor_visitCssDeclaration_closure, N._SerializeVisitor_visitCssDeclaration_closure0, N._SerializeVisitor_visitList_closure, N._SerializeVisitor_visitList_closure0, N._SerializeVisitor_visitList_closure1, N._SerializeVisitor_visitMap_closure, N._SerializeVisitor_visitSelectorList_closure, N._SerializeVisitor__write_closure, N._SerializeVisitor__visitChildren_closure, N.withWarnCallback_closure, T.SingleMapping_SingleMapping$fromEntries_closure, T.SingleMapping_SingleMapping$fromEntries_closure0, T.SingleMapping_SingleMapping$fromEntries_closure1, T.SingleMapping_toJson_closure, T.SingleMapping_toJson_closure0, U.Highlighter_closure, U.Highlighter$__closure, U.Highlighter$___closure, U.Highlighter$__closure0, U.Highlighter__collateLines_closure, U.Highlighter__collateLines_closure0, U.Highlighter__collateLines_closure1, U.Highlighter__collateLines__closure, U.Highlighter_highlight_closure, U.Highlighter_highlight_closure0, U.Highlighter__writeFileStart_closure, U.Highlighter__writeMultilineHighlights_closure, U.Highlighter__writeMultilineHighlights_closure0, U.Highlighter__writeMultilineHighlights_closure1, U.Highlighter__writeMultilineHighlights_closure2, U.Highlighter__writeMultilineHighlights__closure, U.Highlighter__writeMultilineHighlights__closure0, U.Highlighter__writeHighlightedText_closure, U.Highlighter__writeIndicator_closure, U.Highlighter__writeIndicator_closure0, U.Highlighter__writeIndicator_closure1, U.Highlighter__writeSidebar_closure, U._Highlight_closure, U.Chain_Chain$parse_closure, U.Chain_Chain$parse_closure0, U.Chain_toTrace_closure, U.Chain_toString_closure0, U.Chain_toString__closure0, U.Chain_toString_closure, U.Chain_toString__closure, A.Frame_Frame$parseVM_closure, A.Frame_Frame$parseV8_closure, A.Frame_Frame$parseV8_closure_parseLocation, A.Frame_Frame$parseFirefox_closure, A.Frame_Frame$parseFriendly_closure, T.LazyTrace_terse_closure, Y.Trace_Trace$from_closure, Y.Trace__parseVM_closure, Y.Trace$parseV8_closure, Y.Trace$parseV8_closure0, Y.Trace$parseJSCore_closure, Y.Trace$parseJSCore_closure0, Y.Trace$parseFirefox_closure, Y.Trace$parseFirefox_closure0, Y.Trace$parseFriendly_closure, Y.Trace$parseFriendly_closure0, Y.Trace_terse_closure, Y.Trace_foldFrames_closure, Y.Trace_foldFrames_closure0, Y.Trace_toString_closure0, Y.Trace_toString_closure, L._StreamTransformer_bind_closure, L._StreamTransformer_bind__closure, L._StreamTransformer_bind__closure1, L._StreamTransformer_bind__closure0, L._StreamTransformer_bind__closure2, R._debounceAggregate_closure, R._debounceAggregate__closure, R._debounceAggregate_closure0, B.ArgumentDeclaration_verify_closure1, B.ArgumentDeclaration_verify_closure2, S.AsyncBuiltInCallable$mixin_closure0, X._compileStylesheet_closure2, Q.AsyncEnvironment_importForwards_closure3, Q.AsyncEnvironment_importForwards_closure4, Q.AsyncEnvironment_importForwards_closure5, Q.AsyncEnvironment_importForwards_closure6, Q.AsyncEnvironment__getVariableFromGlobalModule_closure0, Q.AsyncEnvironment_setVariable_closure2, Q.AsyncEnvironment_setVariable_closure3, Q.AsyncEnvironment_setVariable_closure4, Q.AsyncEnvironment__getFunctionFromGlobalModule_closure0, Q.AsyncEnvironment__getMixinFromGlobalModule_closure0, Q._EnvironmentModule__EnvironmentModule_closure17, Q._EnvironmentModule__EnvironmentModule_closure18, Q._EnvironmentModule__EnvironmentModule_closure19, Q._EnvironmentModule__EnvironmentModule_closure20, Q._EnvironmentModule__EnvironmentModule_closure21, Q._EnvironmentModule__EnvironmentModule_closure22, E._EvaluateVisitor_closure29, E._EvaluateVisitor_closure30, E._EvaluateVisitor_closure31, E._EvaluateVisitor_closure32, E._EvaluateVisitor_closure33, E._EvaluateVisitor_closure34, E._EvaluateVisitor_closure35, E._EvaluateVisitor_closure36, E._EvaluateVisitor__closure18, E._EvaluateVisitor_closure37, E._EvaluateVisitor__closure16, E._EvaluateVisitor__closure17, E._EvaluateVisitor_closure38, E._EvaluateVisitor__closure14, E._EvaluateVisitor__closure15, E._EvaluateVisitor_run_closure2, E._EvaluateVisitor__withWarnCallback_closure2, E._EvaluateVisitor__loadModule_closure2, E._EvaluateVisitor__execute_closure2, E._EvaluateVisitor__combineCss_closure8, E._EvaluateVisitor__combineCss_closure9, E._EvaluateVisitor__combineCss_closure10, E._EvaluateVisitor__extendModules_closure5, E._EvaluateVisitor__extendModules_closure6, E._EvaluateVisitor__topologicalModules_visitModule2, E._EvaluateVisitor_visitAtRootRule_closure8, E._EvaluateVisitor_visitAtRootRule_closure9, E._EvaluateVisitor_visitAtRootRule_closure10, E._EvaluateVisitor__scopeForAtRoot_closure17, E._EvaluateVisitor__scopeForAtRoot_closure18, E._EvaluateVisitor__scopeForAtRoot_closure19, E._EvaluateVisitor__scopeForAtRoot__closure2, E._EvaluateVisitor__scopeForAtRoot_closure20, E._EvaluateVisitor__scopeForAtRoot_closure21, E._EvaluateVisitor__scopeForAtRoot_closure22, E._EvaluateVisitor_visitContentRule_closure2, E._EvaluateVisitor_visitDeclaration_closure2, E._EvaluateVisitor_visitEachRule_closure8, E._EvaluateVisitor_visitEachRule_closure9, E._EvaluateVisitor_visitEachRule_closure10, E._EvaluateVisitor_visitEachRule__closure2, E._EvaluateVisitor_visitEachRule___closure2, E._EvaluateVisitor_visitExtendRule_closure2, E._EvaluateVisitor_visitAtRule_closure5, E._EvaluateVisitor_visitAtRule__closure2, E._EvaluateVisitor_visitAtRule_closure6, E._EvaluateVisitor_visitForRule_closure14, E._EvaluateVisitor_visitForRule_closure15, E._EvaluateVisitor_visitForRule_closure16, E._EvaluateVisitor_visitForRule_closure17, E._EvaluateVisitor_visitForRule_closure18, E._EvaluateVisitor_visitForRule__closure2, E._EvaluateVisitor_visitForwardRule_closure5, E._EvaluateVisitor_visitForwardRule_closure6, E._EvaluateVisitor__assertConfigurationIsEmpty_closure2, E._EvaluateVisitor_visitIfRule_closure2, E._EvaluateVisitor_visitIfRule__closure2, E._EvaluateVisitor__visitDynamicImport_closure2, E._EvaluateVisitor__visitDynamicImport__closure2, E._EvaluateVisitor_visitIncludeRule_closure8, E._EvaluateVisitor_visitIncludeRule_closure9, E._EvaluateVisitor_visitIncludeRule_closure10, E._EvaluateVisitor_visitIncludeRule__closure2, E._EvaluateVisitor_visitIncludeRule___closure2, E._EvaluateVisitor_visitIncludeRule____closure2, E._EvaluateVisitor_visitMediaRule_closure5, E._EvaluateVisitor_visitMediaRule__closure2, E._EvaluateVisitor_visitMediaRule___closure2, E._EvaluateVisitor_visitMediaRule_closure6, E._EvaluateVisitor__visitMediaQueries_closure2, E._EvaluateVisitor_visitStyleRule_closure20, E._EvaluateVisitor_visitStyleRule_closure21, E._EvaluateVisitor_visitStyleRule_closure22, E._EvaluateVisitor_visitStyleRule_closure23, E._EvaluateVisitor_visitStyleRule_closure24, E._EvaluateVisitor_visitStyleRule_closure25, E._EvaluateVisitor_visitStyleRule__closure2, E._EvaluateVisitor_visitStyleRule_closure26, E._EvaluateVisitor_visitSupportsRule_closure5, E._EvaluateVisitor_visitSupportsRule__closure2, E._EvaluateVisitor_visitSupportsRule_closure6, E._EvaluateVisitor_visitVariableDeclaration_closure8, E._EvaluateVisitor_visitVariableDeclaration_closure9, E._EvaluateVisitor_visitVariableDeclaration_closure10, E._EvaluateVisitor_visitUseRule_closure2, E._EvaluateVisitor_visitWarnRule_closure2, E._EvaluateVisitor_visitWhileRule_closure2, E._EvaluateVisitor_visitWhileRule__closure2, E._EvaluateVisitor_visitBinaryOperationExpression_closure2, E._EvaluateVisitor_visitVariableExpression_closure2, E._EvaluateVisitor_visitListExpression_closure2, E._EvaluateVisitor_visitFunctionExpression_closure5, E._EvaluateVisitor_visitFunctionExpression_closure6, E._EvaluateVisitor__runUserDefinedCallable_closure2, E._EvaluateVisitor__runUserDefinedCallable__closure2, E._EvaluateVisitor__runUserDefinedCallable___closure2, E._EvaluateVisitor__runUserDefinedCallable____closure2, E._EvaluateVisitor__runFunctionCallable_closure2, E._EvaluateVisitor__runBuiltInCallable_closure5, E._EvaluateVisitor__runBuiltInCallable_closure6, E._EvaluateVisitor__evaluateArguments_closure8, E._EvaluateVisitor__evaluateArguments_closure9, E._EvaluateVisitor__evaluateArguments_closure10, E._EvaluateVisitor__evaluateMacroArguments_closure11, E._EvaluateVisitor__evaluateMacroArguments_closure12, E._EvaluateVisitor__evaluateMacroArguments_closure13, E._EvaluateVisitor__evaluateMacroArguments_closure14, E._EvaluateVisitor__addRestMap_closure5, E._EvaluateVisitor__addRestMap_closure6, E._EvaluateVisitor__verifyArguments_closure2, E._EvaluateVisitor_visitStringExpression_closure2, E._EvaluateVisitor_visitCssAtRule_closure5, E._EvaluateVisitor_visitCssAtRule_closure6, E._EvaluateVisitor_visitCssKeyframeBlock_closure5, E._EvaluateVisitor_visitCssKeyframeBlock_closure6, E._EvaluateVisitor_visitCssMediaRule_closure5, E._EvaluateVisitor_visitCssMediaRule__closure2, E._EvaluateVisitor_visitCssMediaRule___closure2, E._EvaluateVisitor_visitCssMediaRule_closure6, E._EvaluateVisitor_visitCssStyleRule_closure5, E._EvaluateVisitor_visitCssStyleRule__closure2, E._EvaluateVisitor_visitCssStyleRule_closure6, E._EvaluateVisitor_visitCssSupportsRule_closure5, E._EvaluateVisitor_visitCssSupportsRule__closure2, E._EvaluateVisitor_visitCssSupportsRule_closure6, E._EvaluateVisitor__performInterpolation_closure2, E._EvaluateVisitor__serialize_closure2, E._EvaluateVisitor__stackTrace_closure2, E._ImportedCssVisitor_visitCssAtRule_closure2, E._ImportedCssVisitor_visitCssMediaRule_closure2, E._ImportedCssVisitor_visitCssStyleRule_closure2, E._ImportedCssVisitor_visitCssSupportsRule_closure2, O.AsyncImportCache_canonicalize_closure0, O.AsyncImportCache__canonicalize_closure0, O.AsyncImportCache_importCanonical_closure0, O.AsyncImportCache_humanize_closure2, O.AsyncImportCache_humanize_closure3, O.AsyncImportCache_humanize_closure4, V.AtRootQueryParser_parse_closure0, Z.closure249, Z._closure34, Z._closure35, Q.BuiltInCallable$mixin_closure0, K.closure151, K.closure152, K.closure153, K.closure154, K.closure155, K.closure156, K.closure157, K.closure158, K.closure159, K.closure160, K.closure161, K.closure162, K.closure163, K.closure164, K.closure165, K.closure166, K.closure167, K.closure168, K.closure169, K.closure170, K.closure171, K.closure172, K.closure173, K.closure174, K.closure175, K.closure176, K._closure25, K.closure177, K.closure204, K.closure205, K.closure206, K.closure207, K._closure27, K.closure208, K.closure191, K.closure190, K.closure189, K.closure188, K.closure187, K.closure186, K.closure185, K.closure184, K.closure182, K.closure_getInRange2, K._closure24, K.closure181, K.closure_getScale0, K.closure_scaleValue0, K._closure23, K.closure180, K.closure_getInRange1, K._closure22, K.closure183, K.closure_hexString0, K._functionString_closure0, K._removedColorFunction_closure0, K._parseChannels_closure0, K.closure239, K.closure240, K.closure241, K.closure242, K.closure243, K.closure244, K.closure245, K.closure246, K.closure247, K.closure248, X.closure178, X.closure179, U._compileStylesheet_closure1, S.ComplexSelector_isInvisible_closure0, X.CompoundSelector_isInvisible_closure0, Q.closure213, V.EachRule_toString_closure0, O.Environment_importForwards_closure3, O.Environment_importForwards_closure4, O.Environment_importForwards_closure5, O.Environment_importForwards_closure6, O.Environment__getVariableFromGlobalModule_closure0, O.Environment_setVariable_closure2, O.Environment_setVariable_closure3, O.Environment_setVariable_closure4, O.Environment__getFunctionFromGlobalModule_closure0, O.Environment__getMixinFromGlobalModule_closure0, O._EnvironmentModule__EnvironmentModule_closure11, O._EnvironmentModule__EnvironmentModule_closure12, O._EnvironmentModule__EnvironmentModule_closure13, O._EnvironmentModule__EnvironmentModule_closure14, O._EnvironmentModule__EnvironmentModule_closure15, O._EnvironmentModule__EnvironmentModule_closure16, R._EvaluateVisitor_closure19, R._EvaluateVisitor_closure20, R._EvaluateVisitor_closure21, R._EvaluateVisitor_closure22, R._EvaluateVisitor_closure23, R._EvaluateVisitor_closure24, R._EvaluateVisitor_closure25, R._EvaluateVisitor_closure26, R._EvaluateVisitor__closure13, R._EvaluateVisitor_closure27, R._EvaluateVisitor__closure11, R._EvaluateVisitor__closure12, R._EvaluateVisitor_closure28, R._EvaluateVisitor__closure9, R._EvaluateVisitor__closure10, R._EvaluateVisitor_run_closure1, R._EvaluateVisitor__withWarnCallback_closure1, R._EvaluateVisitor__loadModule_closure1, R._EvaluateVisitor__execute_closure1, R._EvaluateVisitor__combineCss_closure5, R._EvaluateVisitor__combineCss_closure6, R._EvaluateVisitor__combineCss_closure7, R._EvaluateVisitor__extendModules_closure3, R._EvaluateVisitor__extendModules_closure4, R._EvaluateVisitor__topologicalModules_visitModule1, R._EvaluateVisitor_visitAtRootRule_closure5, R._EvaluateVisitor_visitAtRootRule_closure6, R._EvaluateVisitor_visitAtRootRule_closure7, R._EvaluateVisitor__scopeForAtRoot_closure11, R._EvaluateVisitor__scopeForAtRoot_closure12, R._EvaluateVisitor__scopeForAtRoot_closure13, R._EvaluateVisitor__scopeForAtRoot__closure1, R._EvaluateVisitor__scopeForAtRoot_closure14, R._EvaluateVisitor__scopeForAtRoot_closure15, R._EvaluateVisitor__scopeForAtRoot_closure16, R._EvaluateVisitor_visitContentRule_closure1, R._EvaluateVisitor_visitDeclaration_closure1, R._EvaluateVisitor_visitEachRule_closure5, R._EvaluateVisitor_visitEachRule_closure6, R._EvaluateVisitor_visitEachRule_closure7, R._EvaluateVisitor_visitEachRule__closure1, R._EvaluateVisitor_visitEachRule___closure1, R._EvaluateVisitor_visitExtendRule_closure1, R._EvaluateVisitor_visitAtRule_closure3, R._EvaluateVisitor_visitAtRule__closure1, R._EvaluateVisitor_visitAtRule_closure4, R._EvaluateVisitor_visitForRule_closure9, R._EvaluateVisitor_visitForRule_closure10, R._EvaluateVisitor_visitForRule_closure11, R._EvaluateVisitor_visitForRule_closure12, R._EvaluateVisitor_visitForRule_closure13, R._EvaluateVisitor_visitForRule__closure1, R._EvaluateVisitor_visitForwardRule_closure3, R._EvaluateVisitor_visitForwardRule_closure4, R._EvaluateVisitor__assertConfigurationIsEmpty_closure1, R._EvaluateVisitor_visitIfRule_closure1, R._EvaluateVisitor_visitIfRule__closure1, R._EvaluateVisitor__visitDynamicImport_closure1, R._EvaluateVisitor__visitDynamicImport__closure1, R._EvaluateVisitor_visitIncludeRule_closure5, R._EvaluateVisitor_visitIncludeRule_closure6, R._EvaluateVisitor_visitIncludeRule_closure7, R._EvaluateVisitor_visitIncludeRule__closure1, R._EvaluateVisitor_visitIncludeRule___closure1, R._EvaluateVisitor_visitIncludeRule____closure1, R._EvaluateVisitor_visitMediaRule_closure3, R._EvaluateVisitor_visitMediaRule__closure1, R._EvaluateVisitor_visitMediaRule___closure1, R._EvaluateVisitor_visitMediaRule_closure4, R._EvaluateVisitor__visitMediaQueries_closure1, R._EvaluateVisitor_visitStyleRule_closure13, R._EvaluateVisitor_visitStyleRule_closure14, R._EvaluateVisitor_visitStyleRule_closure15, R._EvaluateVisitor_visitStyleRule_closure16, R._EvaluateVisitor_visitStyleRule_closure17, R._EvaluateVisitor_visitStyleRule_closure18, R._EvaluateVisitor_visitStyleRule__closure1, R._EvaluateVisitor_visitStyleRule_closure19, R._EvaluateVisitor_visitSupportsRule_closure3, R._EvaluateVisitor_visitSupportsRule__closure1, R._EvaluateVisitor_visitSupportsRule_closure4, R._EvaluateVisitor_visitVariableDeclaration_closure5, R._EvaluateVisitor_visitVariableDeclaration_closure6, R._EvaluateVisitor_visitVariableDeclaration_closure7, R._EvaluateVisitor_visitUseRule_closure1, R._EvaluateVisitor_visitWarnRule_closure1, R._EvaluateVisitor_visitWhileRule_closure1, R._EvaluateVisitor_visitWhileRule__closure1, R._EvaluateVisitor_visitBinaryOperationExpression_closure1, R._EvaluateVisitor_visitVariableExpression_closure1, R._EvaluateVisitor_visitListExpression_closure1, R._EvaluateVisitor_visitFunctionExpression_closure3, R._EvaluateVisitor_visitFunctionExpression_closure4, R._EvaluateVisitor__runUserDefinedCallable_closure1, R._EvaluateVisitor__runUserDefinedCallable__closure1, R._EvaluateVisitor__runUserDefinedCallable___closure1, R._EvaluateVisitor__runUserDefinedCallable____closure1, R._EvaluateVisitor__runFunctionCallable_closure1, R._EvaluateVisitor__runBuiltInCallable_closure3, R._EvaluateVisitor__runBuiltInCallable_closure4, R._EvaluateVisitor__evaluateArguments_closure5, R._EvaluateVisitor__evaluateArguments_closure6, R._EvaluateVisitor__evaluateArguments_closure7, R._EvaluateVisitor__evaluateMacroArguments_closure7, R._EvaluateVisitor__evaluateMacroArguments_closure8, R._EvaluateVisitor__evaluateMacroArguments_closure9, R._EvaluateVisitor__evaluateMacroArguments_closure10, R._EvaluateVisitor__addRestMap_closure3, R._EvaluateVisitor__addRestMap_closure4, R._EvaluateVisitor__verifyArguments_closure1, R._EvaluateVisitor_visitStringExpression_closure1, R._EvaluateVisitor_visitCssAtRule_closure3, R._EvaluateVisitor_visitCssAtRule_closure4, R._EvaluateVisitor_visitCssKeyframeBlock_closure3, R._EvaluateVisitor_visitCssKeyframeBlock_closure4, R._EvaluateVisitor_visitCssMediaRule_closure3, R._EvaluateVisitor_visitCssMediaRule__closure1, R._EvaluateVisitor_visitCssMediaRule___closure1, R._EvaluateVisitor_visitCssMediaRule_closure4, R._EvaluateVisitor_visitCssStyleRule_closure3, R._EvaluateVisitor_visitCssStyleRule__closure1, R._EvaluateVisitor_visitCssStyleRule_closure4, R._EvaluateVisitor_visitCssSupportsRule_closure3, R._EvaluateVisitor_visitCssSupportsRule__closure1, R._EvaluateVisitor_visitCssSupportsRule_closure4, R._EvaluateVisitor__performInterpolation_closure1, R._EvaluateVisitor__serialize_closure1, R._EvaluateVisitor__stackTrace_closure1, R._ImportedCssVisitor_visitCssAtRule_closure1, R._ImportedCssVisitor_visitCssMediaRule_closure1, R._ImportedCssVisitor_visitCssStyleRule_closure1, R._ImportedCssVisitor_visitCssSupportsRule_closure1, F.Extender_extensionsWhereTarget_closure0, F.Extender__registerSelector_closure0, F.Extender_addExtension_closure2, F.Extender_addExtension_closure3, F.Extender_addExtension_closure4, F.Extender__extendExistingExtensions_closure1, F.Extender__extendExistingExtensions_closure2, F.Extender_addExtensions_closure0, F.Extender_addExtensions__closure0, F.Extender_addExtensions___closure1, F.Extender_addExtensions___closure2, F.Extender__extendList_closure0, F.Extender__extendComplex_closure1, F.Extender__extendComplex_closure2, F.Extender__extendComplex__closure1, F.Extender__extendComplex__closure2, F.Extender__extendComplex___closure0, F.Extender__extendCompound_closure3, F.Extender__extendCompound_closure4, F.Extender__extendCompound__closure1, F.Extender__extendCompound__closure2, F.Extender__extendCompound_closure5, F.Extender__extendCompound_closure6, F.Extender__extendSimple_withoutPseudo0, F.Extender__extendSimple_closure0, F.Extender__extendPseudo_closure4, F.Extender__extendPseudo_closure5, F.Extender__extendPseudo_closure6, F.Extender__extendPseudo_closure7, F.Extender__extendPseudo_closure8, F.Extender__trim_closure1, F.Extender__trim_closure2, F.Extender_clone_closure0, Y.unifyComplex_closure0, Y._weaveParents_closure6, Y._weaveParents_closure7, Y._weaveParents_closure8, Y._weaveParents__closure4, Y._weaveParents_closure9, Y._weaveParents_closure10, Y._weaveParents__closure3, Y._weaveParents_closure11, Y._weaveParents_closure12, Y._weaveParents__closure2, Y._mustUnify_closure0, Y._mustUnify__closure0, Y.paths_closure0, Y.paths__closure0, Y.paths___closure0, Y._hasRoot_closure0, Y.listIsSuperslector_closure0, Y.listIsSuperslector__closure0, Y._simpleIsSuperselectorOfCompound_closure0, Y._simpleIsSuperselectorOfCompound__closure0, Y._selectorPseudoIsSuperselector_closure6, Y._selectorPseudoIsSuperselector_closure7, Y._selectorPseudoIsSuperselector_closure8, Y._selectorPseudoIsSuperselector_closure9, Y._selectorPseudoIsSuperselector_closure10, Y._selectorPseudoIsSuperselector__closure0, Y._selectorPseudoIsSuperselector___closure1, Y._selectorPseudoIsSuperselector___closure2, Y._selectorPseudoIsSuperselector_closure11, Y._selectorPseudoIsSuperselector_closure12, Y._selectorPseudosNamed_closure0, Y.closure107, N.IDSelector_unify_closure0, V.IfRule_toString_closure0, V.IfClause$__closure0, V.IfClause$___closure0, F.NodeImporter__tryPath_closure, R.ImportCache_canonicalize_closure0, R.ImportCache__canonicalize_closure0, R.ImportCache_importCanonical_closure0, R.ImportCache_humanize_closure2, R.ImportCache_humanize_closure3, R.ImportCache_humanize_closure4, X.Interpolation_toString_closure0, F.realCasePath_closure0, E.KeyframeSelectorParser_parse_closure0, D.ListExpression_toString_closure0, D.closure150, D.closure149, D.closure148, D.closure147, D.closure146, D.closure145, D._closure19, D._closure20, D._closure21, D.closure144, D.closure142, D.closure143, D.SelectorList_isInvisible_closure0, D.SelectorList_asSassList_closure0, D.SelectorList_asSassList__closure0, D.SelectorList_unify_closure0, D.SelectorList_unify__closure0, D.SelectorList_unify___closure0, D.SelectorList_resolveParentSelectors_closure0, D.SelectorList_resolveParentSelectors__closure1, D.SelectorList_resolveParentSelectors__closure2, D.SelectorList__complexContainsParentSelector_closure0, D.SelectorList__complexContainsParentSelector__closure0, D.SelectorList__resolveParentSelectorsCompound_closure2, D.SelectorList__resolveParentSelectorsCompound_closure3, D.SelectorList__resolveParentSelectorsCompound_closure4, D.closure232, D._closure33, D.closure233, D.closure234, D.closure235, D.closure236, D.closure237, D.closure238, D.SassList_isBlank_closure0, A.MapExpression_toString_closure0, A.closure141, A.closure140, A.closure138, A.closure139, A.closure137, A.closure136, A.closure135, A.closure225, A._closure31, A._closure32, A.closure226, A.closure227, A.closure228, A.closure229, A.closure230, A.closure231, A.SassMap_asList_closure0, K.closure133, K.closure199, K.closure132, K.closure131, K.closure130, K.closure134, K.closure197, K._closure26, K.closure196, K.closure195, K.closure193, K.closure203, K.closure202, K.closure201, K.closure200, K.closure198, K.closure194, K.closure192, K.closure126, K.closure125, K.closure127, K.closure129, K.closure128, K._numberFunction_closure0, F.MediaQueryParser_parse_closure0, Q.closure209, Q.closure210, Q.closure211, Q.closure212, Q._closure28, B._readFile_closure0, B.fileExists_closure0, B.dirExists_closure0, B.listDir_closure0, B.listDir__closure1, B.listDir__closure2, B.listDir_closure_list0, B.listDir__list_closure0, B._render_closure, B._render_closure0, B._render_closure1, B._parseFunctions_closure, B._parseFunctions__closure, B._parseFunctions___closure0, B._parseFunctions____closure, B._parseFunctions__closure0, B._parseFunctions__closure1, B._parseFunctions___closure, B._parseImporter_closure, B._parseImporter__closure, B._parseImporter___closure, B._parseImporter____closure, O.closure224, O._closure29, O._closure30, T.closure218, T.closure219, T.closure220, T.closure221, T.closure222, T.closure223, T._parseNumber_closure, T._parseNumber_closure0, T.SassNumber_valueInUnits_closure3, T.SassNumber_valueInUnits_closure4, T.SassNumber_valueInUnits_closure5, T.SassNumber_valueInUnits_closure6, T.SassNumber_modulo_closure0, T.SassNumber_plus_closure0, T.SassNumber_minus_closure0, T.SassNumber__multiplyUnits_closure3, T.SassNumber__multiplyUnits_closure4, T.SassNumber__multiplyUnits_closure5, T.SassNumber__multiplyUnits_closure6, T.SassNumber__areAnyConvertible_closure0, T.SassNumber__canonicalMultiplier_closure0, M.ParentStatement_closure0, M.ParentStatement__closure0, G.Parser__parseIdentifier_closure0, G.Parser_scanIdentChar_matches0, F._PrefixedKeys_iterator_closure0, U.main_printError, U.main_closure, U.SassParser_children_closure0, R._wrapMain_closure, R._wrapMain_closure0, T.closure121, T._closure16, T._closure17, T.closure120, T._closure14, T._closure15, T.__closure0, T.closure119, T.closure118, T.closure117, T.closure124, T.closure123, T._closure18, T.closure122, T.SelectorParser_parse_closure0, T.SelectorParser_parseCompoundSelector_closure0, N.serialize_closure0, N._SerializeVisitor_visitCssComment_closure0, N._SerializeVisitor_visitCssAtRule_closure0, N._SerializeVisitor_visitCssMediaRule_closure0, N._SerializeVisitor_visitCssImport_closure0, N._SerializeVisitor_visitCssImport__closure0, N._SerializeVisitor_visitCssKeyframeBlock_closure0, N._SerializeVisitor_visitCssStyleRule_closure0, N._SerializeVisitor_visitCssSupportsRule_closure0, N._SerializeVisitor_visitCssDeclaration_closure1, N._SerializeVisitor_visitCssDeclaration_closure2, N._SerializeVisitor_visitList_closure2, N._SerializeVisitor_visitList_closure3, N._SerializeVisitor_visitList_closure4, N._SerializeVisitor_visitMap_closure0, N._SerializeVisitor_visitSelectorList_closure0, N._SerializeVisitor__write_closure0, N._SerializeVisitor__visitChildren_closure0, D.SourceMapBuffer_sourceFiles_closure0, D.SourceMapBuffer__addEntry_closure0, D.SourceMapBuffer_buildSourceMap_closure0, D.closure116, D.closure115, D.closure111, D.closure110, D.closure109, D.closure108, D.closure114, D.closure113, D.closure112, D.closure214, D.closure215, D.closure216, D.closure217, V.StylesheetParser_parse_closure0, V.StylesheetParser_parse__closure1, V.StylesheetParser_parse__closure2, V.StylesheetParser_parseArgumentDeclaration_closure0, V.StylesheetParser__parseSingleProduction_closure0, V.StylesheetParser_parseSignature_closure, V.StylesheetParser__statement_closure0, V.StylesheetParser_variableDeclarationWithoutNamespace_closure1, V.StylesheetParser_variableDeclarationWithoutNamespace_closure2, V.StylesheetParser__declarationOrBuffer_closure1, V.StylesheetParser__declarationOrBuffer_closure2, V.StylesheetParser__styleRule_closure0, V.StylesheetParser__propertyOrVariableDeclaration_closure1, V.StylesheetParser__propertyOrVariableDeclaration_closure2, V.StylesheetParser__atRootRule_closure1, V.StylesheetParser__atRootRule_closure2, V.StylesheetParser__eachRule_closure0, V.StylesheetParser__functionRule_closure0, V.StylesheetParser__forRule_closure1, V.StylesheetParser__forRule_closure2, V.StylesheetParser__memberList_closure0, V.StylesheetParser__includeRule_closure0, V.StylesheetParser_mediaRule_closure0, V.StylesheetParser__mixinRule_closure0, V.StylesheetParser_mozDocumentRule_closure0, V.StylesheetParser_supportsRule_closure0, V.StylesheetParser__whileRule_closure0, V.StylesheetParser_unknownAtRule_closure0, V.StylesheetParser_expression_resetState0, V.StylesheetParser_expression_resolveOneOperation0, V.StylesheetParser_expression_resolveOperations0, V.StylesheetParser_expression_addSingleExpression0, V.StylesheetParser_expression_addOperator0, V.StylesheetParser_expression_resolveSpaceExpressions0, V.StylesheetParser__expressionUntilComma_closure0, V.StylesheetParser__unicodeRange_closure1, V.StylesheetParser__unicodeRange_closure2, V.StylesheetParser_identifierLike_closure0, V.StylesheetParser__expressionUntilComparison_closure0, V.StylesheetParser__publicIdentifier_closure0, R._UnprefixedKeys_iterator_closure1, R._UnprefixedKeys_iterator_closure2, B.resolveImportPath_closure1, B.resolveImportPath_closure2, B._tryPathAsDirectory_closure0, B._exactlyOne_closure0, B.forwardToString_closure, B.createClass_closure, B.indent_closure0, B.flattenVertically_closure1, B.flattenVertically_closure2, B.longestCommonSubsequence_closure2, B.longestCommonSubsequence_closure3, B.longestCommonSubsequence_closure4, B.longestCommonSubsequence_backtrack0, B.mapAddAll2_closure0, B.mapMapAsync_closure0, B.copyMapOfMap_closure0, B.copyMapOfList_closure0, N.withWarnCallback_closure0]);
  86515. _inherit(H.CastList, H._CastListBase);
  86516. _inherit(P.ListBase, P._ListBase_Object_ListMixin);
  86517. _inherit(H.UnmodifiableListBase, P.ListBase);
  86518. _inheritMany(H.UnmodifiableListBase, [H.CodeUnits, P.UnmodifiableListView]);
  86519. _inheritMany(H.EfficientLengthIterable, [H.ListIterable, H.EmptyIterable, H.LinkedHashMapKeyIterable, P._HashMapKeyIterable, P._MapBaseValueIterable, P.Set]);
  86520. _inheritMany(H.ListIterable, [H.SubListIterable, H.MappedListIterable, H.ReversedListIterable, P.ListQueue, P._GeneratorIterable]);
  86521. _inherit(H.EfficientLengthMappedIterable, H.MappedIterable);
  86522. _inheritMany(P.Iterator, [H.MappedIterator, H.WhereIterator, H.TakeIterator, H.SkipIterator, H.SkipWhileIterator]);
  86523. _inherit(H.EfficientLengthTakeIterable, H.TakeIterable);
  86524. _inherit(H.EfficientLengthSkipIterable, H.SkipIterable);
  86525. _inherit(H.EfficientLengthFollowedByIterable, H.FollowedByIterable);
  86526. _inheritMany(P.MapView, [P._UnmodifiableMapView_MapView__UnmodifiableMapMixin, K.PathMap]);
  86527. _inherit(P.UnmodifiableMapView, P._UnmodifiableMapView_MapView__UnmodifiableMapMixin);
  86528. _inherit(H.ConstantMapView, P.UnmodifiableMapView);
  86529. _inherit(H.ConstantStringMap, H.ConstantMap);
  86530. _inherit(H.ConstantProtoMap, H.ConstantStringMap);
  86531. _inherit(H.Instantiation1, H.Instantiation);
  86532. _inheritMany(P.Error, [H.NullError, H.JsNoSuchMethodError, H.UnknownJsTypeError, H.RuntimeError, H._Error, P.JsonUnsupportedObjectError, P.AssertionError, P.NullThrownError, P.ArgumentError, P.NoSuchMethodError, P.UnsupportedError, P.UnimplementedError, P.StateError, P.ConcurrentModificationError, P.CyclicInitializationError]);
  86533. _inheritMany(H.TearOffClosure, [H.StaticClosure, H.BoundClosure]);
  86534. _inherit(P.MapBase, P.MapMixin);
  86535. _inheritMany(P.MapBase, [H.JsLinkedHashMap, P._HashMap, P.UnmodifiableMapBase, Z.MergedMapView, Z.MergedMapView0]);
  86536. _inheritMany(P.IterableBase, [H._AllMatchesIterable, P._SyncStarIterable, O.EmptyUnmodifiableSet, F._PrefixedKeys, R._UnprefixedKeys, F._PrefixedKeys0, R._UnprefixedKeys0]);
  86537. _inherit(H.NativeTypedArray, H.NativeTypedData);
  86538. _inheritMany(H.NativeTypedArray, [H._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin, H._NativeTypedArrayOfInt_NativeTypedArray_ListMixin]);
  86539. _inherit(H._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin, H._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin);
  86540. _inherit(H.NativeTypedArrayOfDouble, H._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin);
  86541. _inherit(H._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, H._NativeTypedArrayOfInt_NativeTypedArray_ListMixin);
  86542. _inherit(H.NativeTypedArrayOfInt, H._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin);
  86543. _inheritMany(H.NativeTypedArrayOfDouble, [H.NativeFloat32List, H.NativeFloat64List]);
  86544. _inheritMany(H.NativeTypedArrayOfInt, [H.NativeInt16List, H.NativeInt32List, H.NativeInt8List, H.NativeUint16List, H.NativeUint32List, H.NativeUint8ClampedList, H.NativeUint8List]);
  86545. _inherit(H._TypeError, H._Error);
  86546. _inheritMany(P.Stream, [P._StreamImpl, P._ForwardingStream, Y._CompleterStream]);
  86547. _inherit(P._ControllerStream, P._StreamImpl);
  86548. _inherit(P._BroadcastStream, P._ControllerStream);
  86549. _inheritMany(P._BufferingStreamSubscription, [P._ControllerSubscription, P._ForwardingStreamSubscription]);
  86550. _inherit(P._BroadcastSubscription, P._ControllerSubscription);
  86551. _inherit(P._SyncBroadcastStreamController, P._BroadcastStreamController);
  86552. _inherit(P._AsyncCompleter, P._Completer);
  86553. _inheritMany(P._StreamController, [P._AsyncStreamController, P._SyncStreamController]);
  86554. _inherit(P._StreamControllerAddStreamState, P._AddStreamState);
  86555. _inheritMany(P._DelayedEvent, [P._DelayedData, P._DelayedError]);
  86556. _inherit(P._StreamImplEvents, P._PendingEvents);
  86557. _inherit(P._ExpandStream, P._ForwardingStream);
  86558. _inheritMany(P._Zone, [P._CustomZone, P._RootZone]);
  86559. _inheritMany(H.JsLinkedHashMap, [P._LinkedIdentityHashMap, P._LinkedCustomHashMap]);
  86560. _inheritMany(P._SetBase, [P._LinkedHashSet, P._UnmodifiableSet]);
  86561. _inherit(P._LinkedIdentityHashSet, P._LinkedHashSet);
  86562. _inheritMany(P.Codec, [P.Encoding, P.Base64Codec, P.JsonCodec]);
  86563. _inheritMany(P.Encoding, [P.AsciiCodec, P.Utf8Codec]);
  86564. _inheritMany(P.StreamTransformerBase, [P.Converter, L._StreamTransformer]);
  86565. _inheritMany(P.Converter, [P._UnicodeSubsetEncoder, P.Base64Encoder, P.JsonEncoder, P.Utf8Encoder, P.Utf8Decoder]);
  86566. _inherit(P.AsciiEncoder, P._UnicodeSubsetEncoder);
  86567. _inherit(P._BufferCachingBase64Encoder, P._Base64Encoder);
  86568. _inherit(P.ByteConversionSink, P.ChunkedConversionSink);
  86569. _inheritMany(P.ByteConversionSink, [P.ByteConversionSinkBase, P._Utf8StringSinkAdapter, P._Utf8ConversionSink]);
  86570. _inherit(P._Base64EncoderSink, P.ByteConversionSinkBase);
  86571. _inheritMany(P._Base64EncoderSink, [P._AsciiBase64EncoderSink, P._Utf8Base64EncoderSink]);
  86572. _inherit(P.JsonCyclicError, P.JsonUnsupportedObjectError);
  86573. _inherit(P._JsonStringStringifier, P._JsonStringifier);
  86574. _inherit(P.StringConversionSinkBase, P.StringConversionSinkMixin);
  86575. _inheritMany(P.StringConversionSinkBase, [P._StringSinkConversionSink, P._StringAdapterSink]);
  86576. _inherit(P._StringCallbackSink, P._StringSinkConversionSink);
  86577. _inheritMany(P.num, [P.double, P.int]);
  86578. _inheritMany(P.ArgumentError, [P.RangeError, P.IndexError]);
  86579. _inherit(P._DataUri, P._Uri);
  86580. _inherit(Z.ArgParserException, P.FormatException);
  86581. _inherit(Q.QueueList, Q._QueueList_Object_ListMixin);
  86582. _inherit(Q._CastQueueList, Q.QueueList);
  86583. _inheritMany(M._DelegatingIterableBase, [M.DelegatingIterable, M._MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin]);
  86584. _inherit(M.DelegatingSet, M.DelegatingIterable);
  86585. _inherit(L._UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin, M.DelegatingSet);
  86586. _inherit(L.UnmodifiableSetView, L._UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin);
  86587. _inherit(M.MapKeySet, M._MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin);
  86588. _inherit(B.InternalStyle, O.Style);
  86589. _inheritMany(B.InternalStyle, [E.PosixStyle, F.UrlStyle, L.WindowsStyle]);
  86590. _inheritMany(B.AstNode, [B.CssNode, B.SassNode]);
  86591. _inheritMany(B.CssNode, [B.ModifiableCssNode, B.CssParentNode]);
  86592. _inheritMany(B.ModifiableCssNode, [B.ModifiableCssParentNode, R.ModifiableCssComment, L.ModifiableCssDeclaration, F.ModifiableCssImport]);
  86593. _inheritMany(B.ModifiableCssParentNode, [U.ModifiableCssAtRule, U.ModifiableCssKeyframeBlock, G.ModifiableCssMediaRule, X.ModifiableCssStyleRule, V.ModifiableCssStylesheet, B.ModifiableCssSupportsRule]);
  86594. _inherit(V.CssStylesheet, B.CssParentNode);
  86595. _inheritMany(M.ParentStatement, [V.AtRootRule, U.AtRule, M.CallableDeclaration, L.Declaration, V.EachRule, B.ForRule, G.MediaRule, X.StyleRule, V.Stylesheet, B.SupportsRule, G.WhileRule]);
  86596. _inheritMany(M.CallableDeclaration, [Y.ContentBlock, M.FunctionRule, T.MixinRule]);
  86597. _inherit(N.SupportsCondition, B.SassNode);
  86598. _inheritMany(T.Selector, [M.SimpleSelector, S.ComplexSelector, X.CompoundSelector, D.SelectorList]);
  86599. _inheritMany(M.SimpleSelector, [N.AttributeSelector, X.ClassSelector, N.IDSelector, M.ParentSelector, N.PlaceholderSelector, D.PseudoSelector, F.TypeSelector, N.UniversalSelector]);
  86600. _inherit(D.Callable, B.AsyncCallable);
  86601. _inheritMany(G.SourceSpanException, [E.SassException, G.SourceSpanFormatException, E.SassException0]);
  86602. _inheritMany(E.SassException, [E.MultiSpanSassException, E.SassRuntimeException, E.SassFormatException]);
  86603. _inherit(E.MultiSpanSassRuntimeException, E.MultiSpanSassException);
  86604. _inherit(E.MultiSpanSassScriptException, E.SassScriptException);
  86605. _inherit(A.MergedExtension, S.Extension);
  86606. _inherit(M.Importer, B.AsyncImporter);
  86607. _inherit(F.FilesystemImporter, M.Importer);
  86608. _inheritMany(G.Parser, [V.AtRootQueryParser, V.StylesheetParser, E.KeyframeSelectorParser, F.MediaQueryParser, T.SelectorParser]);
  86609. _inheritMany(V.StylesheetParser, [L.ScssParser, U.SassParser]);
  86610. _inherit(Q.CssParser, L.ScssParser);
  86611. _inheritMany(P.UnmodifiableMapBase, [K.LimitedMapView, F.PrefixedMapView, U.PublicMemberMapView, R.UnprefixedMapView, K.LimitedMapView0, F.PrefixedMapView0, U.PublicMemberMapView0, R.UnprefixedMapView0]);
  86612. _inheritMany(F.Value, [D.SassList, Z.SassBoolean, K.SassColor, F.SassFunction, A.SassMap, O.SassNull, T.SassNumber, D.SassString]);
  86613. _inherit(D.SassArgumentList, D.SassList);
  86614. _inherit(F._FindDependenciesVisitor, D.RecursiveStatementVisitor);
  86615. _inherit(T.SingleMapping, T.Mapping);
  86616. _inherit(Y.FileLocation, D.SourceLocationMixin);
  86617. _inheritMany(Y.SourceSpanMixin, [Y._FileSpan, V.SourceSpanBase]);
  86618. _inherit(X.SourceSpanWithContext, V.SourceSpanBase);
  86619. _inherit(E.StringScannerException, G.SourceSpanFormatException);
  86620. _inheritMany(X.StringScanner, [Z.LineScanner, S.SpanScanner]);
  86621. _inheritMany(F.Value0, [D.SassList0, Z.SassBoolean0, K.SassColor0, F.SassFunction0, A.SassMap0, O.SassNull0, T.SassNumber0, D.SassString0]);
  86622. _inherit(D.SassArgumentList0, D.SassList0);
  86623. _inheritMany(G.Parser1, [V.AtRootQueryParser0, V.StylesheetParser0, E.KeyframeSelectorParser0, F.MediaQueryParser0, T.SelectorParser0]);
  86624. _inheritMany(M.ParentStatement0, [V.AtRootRule0, U.AtRule0, M.CallableDeclaration0, L.Declaration0, V.EachRule0, B.ForRule0, G.MediaRule0, X.StyleRule0, V.Stylesheet0, B.SupportsRule0, G.WhileRule0]);
  86625. _inheritMany(B.AstNode0, [B.CssNode0, B.SassNode0]);
  86626. _inheritMany(B.CssNode0, [B.ModifiableCssNode0, B.CssParentNode0]);
  86627. _inheritMany(B.ModifiableCssNode0, [B.ModifiableCssParentNode0, R.ModifiableCssComment0, L.ModifiableCssDeclaration0, F.ModifiableCssImport0]);
  86628. _inheritMany(B.ModifiableCssParentNode0, [U.ModifiableCssAtRule0, U.ModifiableCssKeyframeBlock0, G.ModifiableCssMediaRule0, X.ModifiableCssStyleRule0, V.ModifiableCssStylesheet0, B.ModifiableCssSupportsRule0]);
  86629. _inheritMany(T.Selector0, [M.SimpleSelector0, S.ComplexSelector0, X.CompoundSelector0, D.SelectorList0]);
  86630. _inheritMany(M.SimpleSelector0, [N.AttributeSelector0, X.ClassSelector0, N.IDSelector0, M.ParentSelector0, N.PlaceholderSelector0, D.PseudoSelector0, F.TypeSelector0, N.UniversalSelector0]);
  86631. _inherit(D.Callable0, B.AsyncCallable0);
  86632. _inheritMany(M.CallableDeclaration0, [Y.ContentBlock0, M.FunctionRule0, T.MixinRule0]);
  86633. _inheritMany(V.StylesheetParser0, [L.ScssParser0, U.SassParser0]);
  86634. _inherit(Q.CssParser0, L.ScssParser0);
  86635. _inheritMany(E.SassException0, [E.MultiSpanSassException0, E.SassRuntimeException0, E.SassFormatException0]);
  86636. _inherit(E.MultiSpanSassRuntimeException0, E.MultiSpanSassException0);
  86637. _inherit(E.MultiSpanSassScriptException0, E.SassScriptException0);
  86638. _inherit(M.Importer0, B.AsyncImporter0);
  86639. _inherit(F.FilesystemImporter0, M.Importer0);
  86640. _inherit(A.MergedExtension0, S.Extension0);
  86641. _inherit(V.CssStylesheet0, B.CssParentNode0);
  86642. _inherit(N.SupportsCondition0, B.SassNode0);
  86643. _mixin(H.UnmodifiableListBase, H.UnmodifiableListMixin);
  86644. _mixin(H.__CastListBase__CastIterableBase_ListMixin, P.ListMixin);
  86645. _mixin(H._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin, P.ListMixin);
  86646. _mixin(H._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin, H.FixedLengthListMixin);
  86647. _mixin(H._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, P.ListMixin);
  86648. _mixin(H._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, H.FixedLengthListMixin);
  86649. _mixin(P._AsyncStreamController, P._AsyncStreamControllerDispatch);
  86650. _mixin(P._SyncStreamController, P._SyncStreamControllerDispatch);
  86651. _mixin(P.UnmodifiableMapBase, P._UnmodifiableMapMixin);
  86652. _mixin(P._ListBase_Object_ListMixin, P.ListMixin);
  86653. _mixin(P._UnmodifiableMapView_MapView__UnmodifiableMapMixin, P._UnmodifiableMapMixin);
  86654. _mixin(Q._QueueList_Object_ListMixin, P.ListMixin);
  86655. _mixin(L._UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin, L.UnmodifiableSetMixin);
  86656. _mixin(M._MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin, L.UnmodifiableSetMixin);
  86657. })();
  86658. var init = {
  86659. typeUniverse: {eC: new Map(), tR: {}, eT: {}, tPV: {}, sEA: []},
  86660. mangledGlobalNames: {int: "int", double: "double", num: "num", String: "String", bool: "bool", Null: "Null", List: "List"},
  86661. mangledNames: {},
  86662. getTypeFromName: getGlobalFromName,
  86663. metadata: [],
  86664. types: ["Null()", "~()", "Future<Null>()", "Value0(List<Value0>)", "Value(List<Value>)", "bool(Object)", "SassNumber0(List<Value0>)", "SassNumber(List<Value>)", "int()", "Value()", "String()", "SassString0(List<Value0>)", "SassString(List<Value>)", "SassBoolean(List<Value>)", "Value0()", "SassBoolean0(List<Value0>)", "bool(int)", "SassList0(List<Value0>)", "SassColor0(List<Value0>)", "Future<Value0>()", "Future<Value>()", "SassColor(List<Value>)", "SassList(List<Value>)", "~(Object)", "FileSpan()", "bool()", "bool(num,num)", "String(Object)", "@(@)", "SassMap0(List<Value0>)", "SassMap(List<Value>)", "SelectorList()", "List<String>()", "SelectorList0()", "int(num)", "Statement()", "String(int)", "Stylesheet()", "Null(@,@)", "Statement0()", "Null([Object])", "~(Object[StackTrace])", "Frame()", "Future<String>(@)", "Object()", "AsyncCallable()", "Map<ComplexSelector,Extension>()", "SourceFile()", "AtRootQuery0()", "AsyncCallable0()", "Callable0()", "Null([@])", "Null(List<Value0>)", "bool(@)", "Null(@)", "List<CssMediaQuery0>()", "Tuple3<Importer,Uri,Uri>()", "Callable()", "Null(@,StackTrace)", "Null(List<Value>)", "Map<ComplexSelector0,Extension0>()", "Future<@>()", "List<CssMediaQuery>()", "AtRootQuery()", "~(~())", "bool(String)", "Iterable<String>()", "Uri()", "num(num)", "VariableDeclaration()", "String(@,@)", "List<Extension>()", "List<int>(int)", "SassFunction(List<Value>)", "List<Extender>()", "Future<SassNumber>()", "Uri/()", "SassNumber()", "Trace()", "Iterable<String>(Object)", "SassFunction0(List<Value0>)", "List<Extender0>()", "Future<SassNumber0>()", "Null([@])()", "~([Future<@>])", "SassNumber0()", "~([Object])", "List<Extension0>()", "Stylesheet0()", "Null(Object,StackTrace)", "SassNull0(int)", "bool(CssNode0)", "DateTime()", "int(@,@)", "bool(CssNode)", "String(String)", "~(@[StackTrace])", "List<Module<AsyncCallable>>(int)", "Frame(@,@)", "Expression({bracketList:bool,singleEquals:bool,until:bool()})", "Future<~>()", "List<Module0<AsyncCallable0>>(int)", "bool(ComplexSelector)", "NumberExpression()", "ArgumentDeclaration()", "String(@)", "Future<EvaluateResult0>()", "Set<ModifiableCssValue<SelectorList>>()", "Uint8List(@,@)", "Uint8List(int)", "Set<0^>()<Object>", "Future<EvaluateResult>()", "Set<0^>()<Object>", "Set<0^>()<Object>", "Future<Tuple3<AsyncImporter0,Uri,Uri>>()", "Future<Stylesheet0>()", "ArgParser()", "~(@,StackTrace)", "Statement({root:bool})", "Object(Value0)", "~(Object,StackTrace)", "_Future<@>(@)", "List<Module0<Callable0>>(int)", "Null(@[StackTrace])", "EvaluateResult0()", "List<Module<Callable>>(int)", "Set<ModifiableCssValue0<SelectorList0>>()", "UseRule()", "Future<Stylesheet>()", "Extension0()", "Tuple3<Importer0,Uri,Uri>()", "Extension()", "Future<Tuple3<AsyncImporter,Uri,Uri>>()", "bool(ComplexSelector0)", "EvaluateResult()", "SassNumber0(int)", "CompoundSelector()", "Null(Object,Object)", "Null(Object)", "Object(@)", "CompoundSelector0()", "~(CssMediaQuery)", "Statement0({root:bool})", "_Future<@>()", "NumberExpression0()", "ArgumentDeclaration0()", "Tuple2<String,ArgumentDeclaration0>()", "VariableDeclaration0()", "SourceFile(int)", "FileSpan(int[int])", "~(Zone,ZoneDelegate,Zone,@,StackTrace)", "0^(Zone,ZoneDelegate,Zone,0^())<Object>", "0^(Zone,ZoneDelegate,Zone,0^(1^),1^)<Object,Object>", "0^(Zone,ZoneDelegate,Zone,0^(1^,2^),1^,2^)<Object,Object,Object>", "0^()(Zone,ZoneDelegate,Zone,0^())<Object>", "0^(1^)(Zone,ZoneDelegate,Zone,0^(1^))<Object,Object>", "0^(1^,2^)(Zone,ZoneDelegate,Zone,0^(1^,2^))<Object,Object,Object>", "AsyncError(Zone,ZoneDelegate,Zone,Object,StackTrace)", "~(Zone,ZoneDelegate,Zone,~())", "Timer(Zone,ZoneDelegate,Zone,Duration,~())", "Timer(Zone,ZoneDelegate,Zone,Duration,~(Timer))", "~(Zone,ZoneDelegate,Zone,String)", "~(String)", "Zone(Zone,ZoneDelegate,Zone,ZoneSpecification,Map<@,@>)", "bool(@,@)", "int(@)", "int(Object)", "bool(Object,Object)", "SourceSpanWithContext()", "0^(0^,0^)<num>", "bool(SimpleSelector)", "String(String{color:@})", "~(Object,StackTrace,EventSink<0^>)<Object>", "List<0^>(0^,List<0^>)<Object>", "bool(SimpleSelector0)", "~(RenderOptions,~(JSError,RenderResult))", "RenderResult(RenderOptions)", "Future<~>(List<String>)", "~(@)", "~(CssMediaQuery0)"],
  86665. interceptorsByTag: null,
  86666. leafTags: null,
  86667. arrayRti: typeof Symbol == "function" && typeof Symbol() == "symbol" ? Symbol("$ti") : "$ti"
  86668. };
  86669. H._Universe_addRules(init.typeUniverse, JSON.parse('{"_Exports":"JavaScriptObject","JSError":"JavaScriptObject","Exports":"JavaScriptObject","JSFunction0":"JavaScriptObject","RenderContext":"JavaScriptObject","RenderContextOptions":"JavaScriptObject","RenderOptions":"JavaScriptObject","RenderResult":"JavaScriptObject","RenderResultStats":"JavaScriptObject","Types":"JavaScriptObject","_PropertyDescriptor0":"JavaScriptObject","_FS":"JavaScriptObject","_Stat":"JavaScriptObject","_Date":"JavaScriptObject","_Stderr":"JavaScriptObject","_Stdin":"JavaScriptObject","_SystemError":"JavaScriptObject","_Process":"JavaScriptObject","_FS0":"JavaScriptObject","_Stat0":"JavaScriptObject","_Date0":"JavaScriptObject","_Stderr0":"JavaScriptObject","_Stdin0":"JavaScriptObject","_SystemError0":"JavaScriptObject","_Process0":"JavaScriptObject","FiberClass":"JavaScriptObject","Fiber":"JavaScriptObject","_NodeSassColor":"JavaScriptObject","_NodeSassList":"JavaScriptObject","_NodeSassMap":"JavaScriptObject","_NodeSassNumber":"JavaScriptObject","_NodeSassString":"JavaScriptObject","Chokidar":"JavaScriptObject","ChokidarOptions":"JavaScriptObject","ChokidarWatcher":"JavaScriptObject","Chokidar0":"JavaScriptObject","ChokidarOptions0":"JavaScriptObject","ChokidarWatcher0":"JavaScriptObject","NodeImporterResult0":"JavaScriptObject","Stdin":"JavaScriptObject","Stdout":"JavaScriptObject","ReadlineModule":"JavaScriptObject","ReadlineOptions":"JavaScriptObject","ReadlineInterface":"JavaScriptObject","JSFunction":"JavaScriptObject","NodeImporterResult":"JavaScriptObject","_PropertyDescriptor":"JavaScriptObject","PlainJavaScriptObject":"JavaScriptObject","UnknownJavaScriptObject":"JavaScriptObject","JavaScriptFunction":"JavaScriptObject","JSBool":{"bool":[]},"JSNull":{"Null":[]},"JavaScriptObject":{"Function":[],"_SystemError":[],"_NodeSassColor":[],"JSError":[],"JSFunction0":[],"NodeImporterResult0":[],"_NodeSassList":[],"_NodeSassMap":[],"_SystemError0":[],"_NodeSassNumber":[],"RenderOptions":[],"RenderResult":[],"_NodeSassString":[]},"JSArray":{"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"JSUnmodifiableArray":{"JSArray":["1"],"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"JSNumber":{"double":[],"num":[],"Comparable":["num"]},"JSInt":{"int":[],"double":[],"num":[],"Comparable":["num"]},"JSDouble":{"double":[],"num":[],"Comparable":["num"]},"JSString":{"String":[],"Comparable":["String"]},"_CastIterableBase":{"Iterable":["2"]},"CastIterable":{"_CastIterableBase":["1","2"],"Iterable":["2"],"Iterable.E":"2"},"_EfficientLengthCastIterable":{"CastIterable":["1","2"],"EfficientLengthIterable":["2"],"_CastIterableBase":["1","2"],"Iterable":["2"],"Iterable.E":"2"},"_CastListBase":{"ListMixin":["2"],"List":["2"],"_CastIterableBase":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"]},"CastList":{"_CastListBase":["1","2"],"ListMixin":["2"],"List":["2"],"_CastIterableBase":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2","ListMixin.E":"2"},"CastSet":{"Set":["2"],"_CastIterableBase":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2"},"CastQueue":{"Queue":["2"],"_CastIterableBase":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2"},"CodeUnits":{"ListMixin":["int"],"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"ListMixin.E":"int"},"EfficientLengthIterable":{"Iterable":["1"]},"ListIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"]},"SubListIterable":{"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListIterable.E":"1","Iterable.E":"1"},"MappedIterable":{"Iterable":["2"],"Iterable.E":"2"},"EfficientLengthMappedIterable":{"MappedIterable":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2"},"MappedListIterable":{"ListIterable":["2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"ListIterable.E":"2","Iterable.E":"2"},"WhereIterable":{"Iterable":["1"],"Iterable.E":"1"},"ExpandIterable":{"Iterable":["2"],"Iterable.E":"2"},"TakeIterable":{"Iterable":["1"],"Iterable.E":"1"},"EfficientLengthTakeIterable":{"TakeIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"SkipIterable":{"Iterable":["1"],"Iterable.E":"1"},"EfficientLengthSkipIterable":{"SkipIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"SkipWhileIterable":{"Iterable":["1"],"Iterable.E":"1"},"EmptyIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"FollowedByIterable":{"Iterable":["1"],"Iterable.E":"1"},"EfficientLengthFollowedByIterable":{"FollowedByIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"WhereTypeIterable":{"Iterable":["1"],"Iterable.E":"1"},"UnmodifiableListBase":{"ListMixin":["1"],"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"ReversedListIterable":{"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListIterable.E":"1","Iterable.E":"1"},"Symbol":{"Symbol0":[]},"ConstantMapView":{"UnmodifiableMapView":["1","2"],"Map":["1","2"]},"ConstantMap":{"Map":["1","2"]},"ConstantStringMap":{"ConstantMap":["1","2"],"Map":["1","2"]},"ConstantProtoMap":{"ConstantStringMap":["1","2"],"ConstantMap":["1","2"],"Map":["1","2"]},"_ConstantMapKeyIterable":{"Iterable":["1"],"Iterable.E":"1"},"Instantiation":{"Function":[]},"Instantiation1":{"Function":[]},"NullError":{"Error":[]},"JsNoSuchMethodError":{"Error":[]},"UnknownJsTypeError":{"Error":[]},"_StackTrace":{"StackTrace":[]},"Closure":{"Function":[]},"TearOffClosure":{"Function":[]},"StaticClosure":{"Function":[]},"BoundClosure":{"Function":[]},"RuntimeError":{"Error":[]},"JsLinkedHashMap":{"MapMixin":["1","2"],"Map":["1","2"],"MapMixin.K":"1","MapMixin.V":"2"},"LinkedHashMapKeyIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"_MatchImplementation":{"RegExpMatch":[],"Match":[]},"_AllMatchesIterable":{"Iterable":["RegExpMatch"],"Iterable.E":"RegExpMatch"},"StringMatch":{"Match":[]},"_StringAllMatchesIterable":{"Iterable":["Match"],"Iterable.E":"Match"},"NativeTypedArray":{"JavaScriptIndexingBehavior":["@"]},"NativeTypedArrayOfDouble":{"ListMixin":["double"],"JavaScriptIndexingBehavior":["@"],"List":["double"],"EfficientLengthIterable":["double"],"Iterable":["double"]},"NativeTypedArrayOfInt":{"ListMixin":["int"],"List":["int"],"JavaScriptIndexingBehavior":["@"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"NativeFloat32List":{"NativeTypedArrayOfDouble":[],"ListMixin":["double"],"JavaScriptIndexingBehavior":["@"],"List":["double"],"EfficientLengthIterable":["double"],"Iterable":["double"],"ListMixin.E":"double"},"NativeFloat64List":{"NativeTypedArrayOfDouble":[],"ListMixin":["double"],"JavaScriptIndexingBehavior":["@"],"List":["double"],"EfficientLengthIterable":["double"],"Iterable":["double"],"ListMixin.E":"double"},"NativeInt16List":{"NativeTypedArrayOfInt":[],"ListMixin":["int"],"List":["int"],"JavaScriptIndexingBehavior":["@"],"EfficientLengthIterable":["int"],"Iterable":["int"],"ListMixin.E":"int"},"NativeInt32List":{"NativeTypedArrayOfInt":[],"ListMixin":["int"],"List":["int"],"JavaScriptIndexingBehavior":["@"],"EfficientLengthIterable":["int"],"Iterable":["int"],"ListMixin.E":"int"},"NativeInt8List":{"NativeTypedArrayOfInt":[],"ListMixin":["int"],"List":["int"],"JavaScriptIndexingBehavior":["@"],"EfficientLengthIterable":["int"],"Iterable":["int"],"ListMixin.E":"int"},"NativeUint16List":{"NativeTypedArrayOfInt":[],"ListMixin":["int"],"List":["int"],"JavaScriptIndexingBehavior":["@"],"EfficientLengthIterable":["int"],"Iterable":["int"],"ListMixin.E":"int"},"NativeUint32List":{"NativeTypedArrayOfInt":[],"ListMixin":["int"],"List":["int"],"JavaScriptIndexingBehavior":["@"],"EfficientLengthIterable":["int"],"Iterable":["int"],"ListMixin.E":"int"},"NativeUint8ClampedList":{"NativeTypedArrayOfInt":[],"ListMixin":["int"],"List":["int"],"JavaScriptIndexingBehavior":["@"],"EfficientLengthIterable":["int"],"Iterable":["int"],"ListMixin.E":"int"},"NativeUint8List":{"NativeTypedArrayOfInt":[],"Uint8List":[],"ListMixin":["int"],"List":["int"],"JavaScriptIndexingBehavior":["@"],"EfficientLengthIterable":["int"],"Iterable":["int"],"ListMixin.E":"int"},"_Error":{"Error":[]},"_TypeError":{"Error":[]},"_SyncStarIterable":{"Iterable":["1"],"Iterable.E":"1"},"_BroadcastStream":{"_ControllerStream":["1"],"_StreamImpl":["1"],"Stream":["1"],"Stream.T":"1"},"_BroadcastSubscription":{"_ControllerSubscription":["1"],"_BufferingStreamSubscription":["1"],"StreamSubscription":["1"]},"_BroadcastStreamController":{"EventSink":["1"]},"_SyncBroadcastStreamController":{"_BroadcastStreamController":["1"],"EventSink":["1"]},"_AsyncCompleter":{"_Completer":["1"]},"_Future":{"Future":["1"]},"_StreamController":{"EventSink":["1"]},"_AsyncStreamController":{"_StreamController":["1"],"EventSink":["1"]},"_SyncStreamController":{"_StreamController":["1"],"EventSink":["1"]},"_ControllerStream":{"_StreamImpl":["1"],"Stream":["1"],"Stream.T":"1"},"_ControllerSubscription":{"_BufferingStreamSubscription":["1"],"StreamSubscription":["1"]},"_BufferingStreamSubscription":{"StreamSubscription":["1"]},"_StreamImpl":{"Stream":["1"]},"_DoneStreamSubscription":{"StreamSubscription":["1"]},"_ForwardingStream":{"Stream":["2"]},"_ForwardingStreamSubscription":{"_BufferingStreamSubscription":["2"],"StreamSubscription":["2"]},"_ExpandStream":{"_ForwardingStream":["1","2"],"Stream":["2"],"Stream.T":"2"},"AsyncError":{"Error":[]},"_ZoneSpecification":{"ZoneSpecification":[]},"_ZoneDelegate":{"ZoneDelegate":[]},"_Zone":{"Zone":[]},"_CustomZone":{"Zone":[]},"_RootZone":{"Zone":[]},"_HashMap":{"MapMixin":["1","2"],"Map":["1","2"],"MapMixin.K":"1","MapMixin.V":"2"},"_HashMapKeyIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"_LinkedIdentityHashMap":{"JsLinkedHashMap":["1","2"],"MapMixin":["1","2"],"Map":["1","2"],"MapMixin.K":"1","MapMixin.V":"2"},"_LinkedCustomHashMap":{"JsLinkedHashMap":["1","2"],"MapMixin":["1","2"],"Map":["1","2"],"MapMixin.K":"1","MapMixin.V":"2"},"_LinkedHashSet":{"_SetBase":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"_LinkedIdentityHashSet":{"_LinkedHashSet":["1"],"_SetBase":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"UnmodifiableListView":{"ListMixin":["1"],"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListMixin.E":"1"},"IterableBase":{"Iterable":["1"]},"ListBase":{"ListMixin":["1"],"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"MapBase":{"MapMixin":["1","2"],"Map":["1","2"]},"MapMixin":{"Map":["1","2"]},"UnmodifiableMapBase":{"MapMixin":["1","2"],"Map":["1","2"]},"_MapBaseValueIterable":{"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2"},"MapView":{"Map":["1","2"]},"UnmodifiableMapView":{"Map":["1","2"]},"Queue":{"EfficientLengthIterable":["1"],"Iterable":["1"]},"ListQueue":{"ListIterable":["1"],"Queue":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListIterable.E":"1","Iterable.E":"1"},"_SetBase":{"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"_UnmodifiableSet":{"_SetBase":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"AsciiCodec":{"Codec":["String","List<int>"]},"_UnicodeSubsetEncoder":{"Converter":["String","List<int>"]},"AsciiEncoder":{"Converter":["String","List<int>"]},"Base64Codec":{"Codec":["List<int>","String"]},"Base64Encoder":{"Converter":["List<int>","String"]},"Encoding":{"Codec":["String","List<int>"]},"JsonUnsupportedObjectError":{"Error":[]},"JsonCyclicError":{"Error":[]},"JsonCodec":{"Codec":["Object","String"]},"JsonEncoder":{"Converter":["Object","String"]},"StringConversionSinkBase":{"StringConversionSink":[]},"StringConversionSinkMixin":{"StringConversionSink":[]},"_StringSinkConversionSink":{"StringConversionSink":[]},"_StringCallbackSink":{"StringConversionSink":[]},"_StringAdapterSink":{"StringConversionSink":[]},"Utf8Codec":{"Codec":["String","List<int>"]},"Utf8Encoder":{"Converter":["String","List<int>"]},"Utf8Decoder":{"Converter":["List<int>","String"]},"DateTime":{"Comparable":["DateTime"]},"double":{"num":[],"Comparable":["num"]},"Duration":{"Comparable":["Duration"]},"AssertionError":{"Error":[]},"NullThrownError":{"Error":[]},"ArgumentError":{"Error":[]},"RangeError":{"Error":[]},"IndexError":{"Error":[]},"NoSuchMethodError":{"Error":[]},"UnsupportedError":{"Error":[]},"UnimplementedError":{"Error":[]},"StateError":{"Error":[]},"ConcurrentModificationError":{"Error":[]},"OutOfMemoryError":{"Error":[]},"StackOverflowError":{"Error":[]},"CyclicInitializationError":{"Error":[]},"_Exception":{"Exception":[]},"FormatException":{"Exception":[]},"int":{"num":[],"Comparable":["num"]},"_GeneratorIterable":{"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListIterable.E":"1","Iterable.E":"1"},"List":{"EfficientLengthIterable":["1"],"Iterable":["1"]},"num":{"Comparable":["num"]},"RegExpMatch":{"Match":[]},"Set":{"EfficientLengthIterable":["1"],"Iterable":["1"]},"_StringStackTrace":{"StackTrace":[]},"String":{"Comparable":["String"]},"Runes":{"Iterable":["int"],"Iterable.E":"int"},"_Uri":{"Uri":[]},"_SimpleUri":{"Uri":[]},"_DataUri":{"Uri":[]},"Uint8List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"ArgParserException":{"FormatException":[],"Exception":[]},"ErrorResult":{"Result":["Null"]},"ValueResult":{"Result":["1"]},"_CompleterStream":{"Stream":["1"],"Stream.T":"1"},"_NextRequest":{"_EventRequest":["1"]},"EmptyUnmodifiableSet":{"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"QueueList":{"ListMixin":["1"],"Queue":["1"],"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListMixin.E":"1","QueueList.E":"1"},"_CastQueueList":{"QueueList":["2"],"ListMixin":["2"],"Queue":["2"],"List":["2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"ListMixin.E":"2","QueueList.E":"2"},"UnmodifiableSetView":{"DelegatingSet":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"_DelegatingIterableBase":{"Iterable":["1"]},"DelegatingIterable":{"Iterable":["1"]},"DelegatingSet":{"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"MapKeySet":{"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"PathException":{"Exception":[]},"PathMap":{"Map":["String","1"]},"ModifiableCssAtRule":{"ModifiableCssParentNode":[],"CssAtRule":[],"ModifiableCssNode":[],"CssParentNode":[],"CssNode":[],"AstNode":[]},"ModifiableCssComment":{"ModifiableCssNode":[],"CssComment":[],"CssNode":[],"AstNode":[]},"ModifiableCssDeclaration":{"ModifiableCssNode":[],"CssNode":[],"AstNode":[]},"ModifiableCssImport":{"ModifiableCssNode":[],"CssImport":[],"CssNode":[],"AstNode":[]},"ModifiableCssKeyframeBlock":{"ModifiableCssParentNode":[],"ModifiableCssNode":[],"CssParentNode":[],"CssNode":[],"AstNode":[]},"ModifiableCssMediaRule":{"ModifiableCssParentNode":[],"CssMediaRule":[],"ModifiableCssNode":[],"CssParentNode":[],"CssNode":[],"AstNode":[]},"ModifiableCssNode":{"CssNode":[],"AstNode":[]},"ModifiableCssParentNode":{"ModifiableCssNode":[],"CssParentNode":[],"CssNode":[],"AstNode":[]},"ModifiableCssStyleRule":{"ModifiableCssParentNode":[],"CssStyleRule":[],"ModifiableCssNode":[],"CssParentNode":[],"CssNode":[],"AstNode":[]},"ModifiableCssStylesheet":{"ModifiableCssParentNode":[],"CssStylesheet":[],"ModifiableCssNode":[],"CssParentNode":[],"CssNode":[],"AstNode":[]},"ModifiableCssSupportsRule":{"ModifiableCssParentNode":[],"CssSupportsRule":[],"ModifiableCssNode":[],"CssParentNode":[],"CssNode":[],"AstNode":[]},"ModifiableCssValue":{"CssValue":["1"],"AstNode":[]},"CssNode":{"AstNode":[]},"CssParentNode":{"CssNode":[],"AstNode":[]},"CssStylesheet":{"CssParentNode":[],"CssNode":[],"AstNode":[]},"CssValue":{"AstNode":[]},"_FakeAstNode":{"AstNode":[]},"Argument":{"AstNode":[]},"ArgumentDeclaration":{"AstNode":[]},"ArgumentInvocation":{"AstNode":[]},"ConfiguredVariable":{"AstNode":[]},"Expression":{"AstNode":[]},"BinaryOperationExpression":{"Expression":[],"AstNode":[]},"BooleanExpression":{"Expression":[],"AstNode":[]},"ColorExpression":{"Expression":[],"AstNode":[]},"FunctionExpression":{"Expression":[],"AstNode":[]},"IfExpression":{"Expression":[],"AstNode":[]},"ListExpression":{"Expression":[],"AstNode":[]},"MapExpression":{"Expression":[],"AstNode":[]},"NullExpression":{"Expression":[],"AstNode":[]},"NumberExpression":{"Expression":[],"AstNode":[]},"ParenthesizedExpression":{"Expression":[],"AstNode":[]},"SelectorExpression":{"Expression":[],"AstNode":[]},"StringExpression":{"Expression":[],"AstNode":[]},"UnaryOperationExpression":{"Expression":[],"AstNode":[]},"ValueExpression":{"Expression":[],"AstNode":[]},"VariableExpression":{"Expression":[],"AstNode":[]},"Import":{"AstNode":[]},"DynamicImport":{"Import":[],"AstNode":[]},"StaticImport":{"Import":[],"AstNode":[]},"Interpolation":{"AstNode":[]},"SassNode":{"AstNode":[]},"Statement":{"AstNode":[]},"AtRootRule":{"Statement":[],"AstNode":[]},"AtRule":{"Statement":[],"AstNode":[]},"CallableDeclaration":{"Statement":[],"AstNode":[]},"ContentBlock":{"Statement":[],"AstNode":[]},"ContentRule":{"Statement":[],"AstNode":[]},"DebugRule":{"Statement":[],"AstNode":[]},"Declaration":{"Statement":[],"AstNode":[]},"EachRule":{"Statement":[],"AstNode":[]},"ErrorRule":{"Statement":[],"AstNode":[]},"ExtendRule":{"Statement":[],"AstNode":[]},"ForRule":{"Statement":[],"AstNode":[]},"ForwardRule":{"Statement":[],"AstNode":[]},"FunctionRule":{"Statement":[],"AstNode":[]},"IfRule":{"Statement":[],"AstNode":[]},"ImportRule":{"Statement":[],"AstNode":[]},"IncludeRule":{"Statement":[],"AstNode":[]},"LoudComment":{"Statement":[],"AstNode":[]},"MediaRule":{"Statement":[],"AstNode":[]},"MixinRule":{"Statement":[],"AstNode":[]},"ParentStatement":{"Statement":[],"AstNode":[]},"ReturnRule":{"Statement":[],"AstNode":[]},"SilentComment":{"Statement":[],"AstNode":[]},"StyleRule":{"Statement":[],"AstNode":[]},"Stylesheet":{"Statement":[],"AstNode":[]},"SupportsRule":{"Statement":[],"AstNode":[]},"UseRule":{"Statement":[],"AstNode":[]},"VariableDeclaration":{"Statement":[],"AstNode":[]},"WarnRule":{"Statement":[],"AstNode":[]},"WhileRule":{"Statement":[],"AstNode":[]},"SupportsCondition":{"AstNode":[]},"SupportsDeclaration":{"AstNode":[]},"SupportsInterpolation":{"AstNode":[]},"SupportsNegation":{"AstNode":[]},"SupportsOperation":{"AstNode":[]},"AttributeSelector":{"SimpleSelector":[]},"ClassSelector":{"SimpleSelector":[]},"Combinator":{"ComplexSelectorComponent":[]},"CompoundSelector":{"ComplexSelectorComponent":[]},"IDSelector":{"SimpleSelector":[]},"ParentSelector":{"SimpleSelector":[]},"PlaceholderSelector":{"SimpleSelector":[]},"PseudoSelector":{"SimpleSelector":[]},"TypeSelector":{"SimpleSelector":[]},"UniversalSelector":{"SimpleSelector":[]},"_EnvironmentModule0":{"Module":["AsyncCallable"]},"Callable":{"AsyncCallable":[]},"AsyncBuiltInCallable":{"AsyncCallable":[]},"BuiltInCallable":{"AsyncBuiltInCallable":[],"Callable":[],"AsyncCallable":[]},"PlainCssCallable":{"Callable":[],"AsyncCallable":[]},"UserDefinedCallable":{"Callable":[],"AsyncCallable":[]},"_EnvironmentModule":{"Module":["Callable"]},"SassException":{"Exception":[]},"MultiSpanSassException":{"Exception":[]},"SassRuntimeException":{"Exception":[]},"MultiSpanSassRuntimeException":{"SassRuntimeException":[],"Exception":[]},"SassFormatException":{"SourceSpanFormatException":[],"FormatException":[],"Exception":[]},"UsageException":{"Exception":[]},"EmptyExtender":{"Extender":[]},"MergedExtension":{"Extension":[]},"Importer":{"AsyncImporter":[]},"FilesystemImporter":{"Importer":[],"AsyncImporter":[]},"BuiltInModule":{"Module":["1"]},"ForwardedModuleView":{"Module":["1"]},"ShadowedModuleView":{"Module":["1"]},"LimitedMapView":{"MapMixin":["1","2"],"Map":["1","2"],"MapMixin.K":"1","MapMixin.V":"2"},"MergedMapView":{"MapMixin":["1","2"],"Map":["1","2"],"MapMixin.K":"1","MapMixin.V":"2"},"NoSourceMapBuffer0":{"StringBuffer":[]},"PrefixedMapView":{"MapMixin":["String","1"],"Map":["String","1"],"MapMixin.K":"String","MapMixin.V":"1"},"_PrefixedKeys":{"Iterable":["String"],"Iterable.E":"String"},"PublicMemberMapView":{"MapMixin":["String","1"],"Map":["String","1"],"MapMixin.K":"String","MapMixin.V":"1"},"SourceMapBuffer0":{"StringBuffer":[]},"UnprefixedMapView":{"MapMixin":["String","1"],"Map":["String","1"],"MapMixin.K":"String","MapMixin.V":"1"},"_UnprefixedKeys":{"Iterable":["String"],"Iterable.E":"String"},"SassArgumentList":{"SassList":[],"Value":[]},"SassBoolean":{"Value":[]},"SassColor":{"Value":[]},"SassFunction":{"Value":[]},"SassList":{"Value":[]},"SassMap":{"Value":[]},"SassNull":{"Value":[]},"SassNumber":{"Value":[]},"SassString":{"Value":[]},"Entry":{"Comparable":["Entry"]},"FileLocation":{"SourceLocation":[],"Comparable":["SourceLocation"]},"FileSpan":{"SourceSpanWithContext":[],"SourceSpan":[],"Comparable":["SourceSpan"]},"_FileSpan":{"FileSpan":[],"SourceSpanWithContext":[],"SourceSpan":[],"Comparable":["SourceSpan"]},"SourceLocation":{"Comparable":["SourceLocation"]},"SourceLocationMixin":{"SourceLocation":[],"Comparable":["SourceLocation"]},"SourceSpan":{"Comparable":["SourceSpan"]},"SourceSpanBase":{"SourceSpan":[],"Comparable":["SourceSpan"]},"SourceSpanException":{"Exception":[]},"SourceSpanFormatException":{"FormatException":[],"Exception":[]},"SourceSpanMixin":{"SourceSpan":[],"Comparable":["SourceSpan"]},"SourceSpanWithContext":{"SourceSpan":[],"Comparable":["SourceSpan"]},"Chain":{"StackTrace":[]},"LazyTrace":{"Trace":[],"StackTrace":[]},"Trace":{"StackTrace":[]},"UnparsedFrame":{"Frame":[]},"StringScannerException":{"SourceSpanFormatException":[],"FormatException":[],"Exception":[]},"Argument0":{"AstNode0":[]},"ArgumentDeclaration0":{"AstNode0":[]},"ArgumentInvocation0":{"AstNode0":[]},"SassArgumentList0":{"SassList0":[],"Value0":[]},"AsyncBuiltInCallable0":{"AsyncCallable0":[]},"_EnvironmentModule2":{"Module0":["AsyncCallable0"]},"AtRootRule0":{"Statement0":[],"AstNode0":[]},"ModifiableCssAtRule0":{"ModifiableCssParentNode0":[],"CssAtRule0":[],"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"AtRule0":{"Statement0":[],"AstNode0":[]},"AttributeSelector0":{"SimpleSelector0":[]},"BinaryOperationExpression0":{"Expression0":[],"AstNode0":[]},"BooleanExpression0":{"Expression0":[],"AstNode0":[]},"SassBoolean0":{"Value0":[]},"BuiltInCallable0":{"AsyncBuiltInCallable0":[],"Callable0":[],"AsyncCallable0":[]},"BuiltInModule0":{"Module0":["1"]},"Callable0":{"AsyncCallable0":[]},"CallableDeclaration0":{"Statement0":[],"AstNode0":[]},"ClassSelector0":{"SimpleSelector0":[]},"ColorExpression0":{"Expression0":[],"AstNode0":[]},"SassColor0":{"Value0":[]},"ModifiableCssComment0":{"ModifiableCssNode0":[],"CssComment0":[],"CssNode0":[],"AstNode0":[]},"Combinator0":{"ComplexSelectorComponent0":[]},"CompoundSelector0":{"ComplexSelectorComponent0":[]},"ConfiguredVariable0":{"AstNode0":[]},"ContentBlock0":{"Statement0":[],"AstNode0":[]},"ContentRule0":{"Statement0":[],"AstNode0":[]},"DebugRule0":{"Statement0":[],"AstNode0":[]},"ModifiableCssDeclaration0":{"ModifiableCssNode0":[],"CssNode0":[],"AstNode0":[]},"Declaration0":{"Statement0":[],"AstNode0":[]},"SupportsDeclaration0":{"AstNode0":[]},"DynamicImport0":{"Import0":[],"AstNode0":[]},"EachRule0":{"Statement0":[],"AstNode0":[]},"EmptyExtender0":{"Extender0":[]},"_EnvironmentModule1":{"Module0":["Callable0"]},"ErrorRule0":{"Statement0":[],"AstNode0":[]},"SassException0":{"Exception":[]},"MultiSpanSassException0":{"Exception":[]},"SassRuntimeException0":{"Exception":[]},"MultiSpanSassRuntimeException0":{"SassRuntimeException0":[],"Exception":[]},"SassFormatException0":{"SourceSpanFormatException":[],"FormatException":[],"Exception":[]},"Expression0":{"AstNode0":[]},"ExtendRule0":{"Statement0":[],"AstNode0":[]},"FilesystemImporter0":{"Importer0":[],"AsyncImporter0":[]},"ForRule0":{"Statement0":[],"AstNode0":[]},"ForwardRule0":{"Statement0":[],"AstNode0":[]},"ForwardedModuleView0":{"Module0":["1"]},"FunctionExpression0":{"Expression0":[],"AstNode0":[]},"SassFunction0":{"Value0":[]},"FunctionRule0":{"Statement0":[],"AstNode0":[]},"IDSelector0":{"SimpleSelector0":[]},"IfExpression0":{"Expression0":[],"AstNode0":[]},"IfRule0":{"Statement0":[],"AstNode0":[]},"ModifiableCssImport0":{"ModifiableCssNode0":[],"CssImport0":[],"CssNode0":[],"AstNode0":[]},"Import0":{"AstNode0":[]},"ImportRule0":{"Statement0":[],"AstNode0":[]},"Importer0":{"AsyncImporter0":[]},"IncludeRule0":{"Statement0":[],"AstNode0":[]},"Interpolation0":{"AstNode0":[]},"SupportsInterpolation0":{"AstNode0":[]},"ModifiableCssKeyframeBlock0":{"ModifiableCssParentNode0":[],"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"LimitedMapView0":{"MapMixin":["1","2"],"Map":["1","2"],"MapMixin.K":"1","MapMixin.V":"2"},"ListExpression0":{"Expression0":[],"AstNode0":[]},"SassList0":{"Value0":[]},"LoudComment0":{"Statement0":[],"AstNode0":[]},"MapExpression0":{"Expression0":[],"AstNode0":[]},"SassMap0":{"Value0":[]},"ModifiableCssMediaRule0":{"ModifiableCssParentNode0":[],"CssMediaRule0":[],"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"MediaRule0":{"Statement0":[],"AstNode0":[]},"MergedExtension0":{"Extension0":[]},"MergedMapView0":{"MapMixin":["1","2"],"Map":["1","2"],"MapMixin.K":"1","MapMixin.V":"2"},"MixinRule0":{"Statement0":[],"AstNode0":[]},"SupportsNegation0":{"AstNode0":[]},"NoSourceMapBuffer":{"StringBuffer":[]},"_FakeAstNode0":{"AstNode0":[]},"CssNode0":{"AstNode0":[]},"CssParentNode0":{"CssNode0":[],"AstNode0":[]},"ModifiableCssNode0":{"CssNode0":[],"AstNode0":[]},"ModifiableCssParentNode0":{"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"SassNode0":{"AstNode0":[]},"NullExpression0":{"Expression0":[],"AstNode0":[]},"SassNull0":{"Value0":[]},"NumberExpression0":{"Expression0":[],"AstNode0":[]},"SassNumber0":{"Value0":[]},"SupportsOperation0":{"AstNode0":[]},"ParentSelector0":{"SimpleSelector0":[]},"ParentStatement0":{"Statement0":[],"AstNode0":[]},"ParenthesizedExpression0":{"Expression0":[],"AstNode0":[]},"PlaceholderSelector0":{"SimpleSelector0":[]},"PlainCssCallable0":{"Callable0":[],"AsyncCallable0":[]},"PrefixedMapView0":{"MapMixin":["String","1"],"Map":["String","1"],"MapMixin.K":"String","MapMixin.V":"1"},"_PrefixedKeys0":{"Iterable":["String"],"Iterable.E":"String"},"PseudoSelector0":{"SimpleSelector0":[]},"PublicMemberMapView0":{"MapMixin":["String","1"],"Map":["String","1"],"MapMixin.K":"String","MapMixin.V":"1"},"ReturnRule0":{"Statement0":[],"AstNode0":[]},"SelectorExpression0":{"Expression0":[],"AstNode0":[]},"ShadowedModuleView0":{"Module0":["1"]},"SilentComment0":{"Statement0":[],"AstNode0":[]},"SourceMapBuffer":{"StringBuffer":[]},"Statement0":{"AstNode0":[]},"StaticImport0":{"Import0":[],"AstNode0":[]},"StringExpression0":{"Expression0":[],"AstNode0":[]},"SassString0":{"Value0":[]},"ModifiableCssStyleRule0":{"ModifiableCssParentNode0":[],"CssStyleRule0":[],"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"StyleRule0":{"Statement0":[],"AstNode0":[]},"CssStylesheet0":{"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"ModifiableCssStylesheet0":{"ModifiableCssParentNode0":[],"CssStylesheet0":[],"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"Stylesheet0":{"Statement0":[],"AstNode0":[]},"SupportsCondition0":{"AstNode0":[]},"ModifiableCssSupportsRule0":{"ModifiableCssParentNode0":[],"CssSupportsRule0":[],"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"SupportsRule0":{"Statement0":[],"AstNode0":[]},"TypeSelector0":{"SimpleSelector0":[]},"UnaryOperationExpression0":{"Expression0":[],"AstNode0":[]},"UniversalSelector0":{"SimpleSelector0":[]},"UnprefixedMapView0":{"MapMixin":["String","1"],"Map":["String","1"],"MapMixin.K":"String","MapMixin.V":"1"},"_UnprefixedKeys0":{"Iterable":["String"],"Iterable.E":"String"},"UseRule0":{"Statement0":[],"AstNode0":[]},"UserDefinedCallable0":{"Callable0":[],"AsyncCallable0":[]},"CssValue0":{"AstNode0":[]},"ValueExpression0":{"Expression0":[],"AstNode0":[]},"ModifiableCssValue0":{"CssValue0":["1"],"AstNode0":[]},"VariableExpression0":{"Expression0":[],"AstNode0":[]},"VariableDeclaration0":{"Statement0":[],"AstNode0":[]},"WarnRule0":{"Statement0":[],"AstNode0":[]},"WhileRule0":{"Statement0":[],"AstNode0":[]}}'));
  86670. H._Universe_addErasedTypes(init.typeUniverse, JSON.parse('{"ArrayIterator":1,"ListIterator":1,"MappedIterator":2,"WhereIterator":1,"ExpandIterator":2,"TakeIterator":1,"SkipIterator":1,"SkipWhileIterator":1,"EmptyIterator":1,"FollowedByIterator":1,"FixedLengthListMixin":1,"UnmodifiableListMixin":1,"UnmodifiableListBase":1,"__CastListBase__CastIterableBase_ListMixin":2,"LinkedHashMapKeyIterator":1,"_SyncStarIterator":1,"_FutureListener":2,"EventSink":1,"StreamTransformerBase":2,"_SyncStreamControllerDispatch":1,"_AsyncStreamControllerDispatch":1,"_AddStreamState":1,"_StreamControllerAddStreamState":1,"_DelayedEvent":1,"_DelayedData":1,"_PendingEvents":1,"_StreamImplEvents":1,"_StreamIterator":1,"_ZoneFunction":1,"_HashMapKeyIterator":1,"_LinkedHashSetIterator":1,"IterableBase":1,"ListBase":1,"MapBase":2,"UnmodifiableMapBase":2,"_MapBaseValueIterator":2,"_UnmodifiableMapMixin":2,"MapView":2,"Queue":1,"_ListQueueIterator":1,"_ListBase_Object_ListMixin":1,"_UnmodifiableMapView_MapView__UnmodifiableMapMixin":2,"ChunkedConversionSink":1,"_StringSinkConversionSink":1,"Iterator":1,"_EventRequest":1,"DefaultEquality":1,"IterableEquality":1,"ListEquality":1,"MapEquality":2,"_QueueList_Object_ListMixin":1,"UnmodifiableSetMixin":1,"_UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin":1,"_DelegatingIterableBase":1,"DelegatingIterable":1,"_MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin":1,"RecursiveStatementVisitor":1}'));
  86671. var type$ = (function rtii() {
  86672. var findType = H.findType;
  86673. return {
  86674. $env_1_1_String: findType("@<String>"),
  86675. ArgParser: findType("ArgParser"),
  86676. Argument: findType("Argument"),
  86677. ArgumentDeclaration: findType("ArgumentDeclaration"),
  86678. ArgumentDeclaration_2: findType("ArgumentDeclaration0"),
  86679. Argument_2: findType("Argument0"),
  86680. AstNode: findType("AstNode"),
  86681. AstNode_2: findType("AstNode0"),
  86682. AsyncBuiltInCallable: findType("AsyncBuiltInCallable"),
  86683. AsyncBuiltInCallable_2: findType("AsyncBuiltInCallable0"),
  86684. AsyncCallable: findType("AsyncCallable"),
  86685. AsyncCallable_2: findType("AsyncCallable0"),
  86686. BuiltInCallable: findType("BuiltInCallable"),
  86687. BuiltInCallable_2: findType("BuiltInCallable0"),
  86688. Callable: findType("Callable"),
  86689. Callable_2: findType("Callable0"),
  86690. ChangeType: findType("ChangeType"),
  86691. Combinator: findType("Combinator"),
  86692. Combinator_2: findType("Combinator0"),
  86693. Comparable_dynamic: findType("Comparable<@>"),
  86694. CompileResult: findType("CompileResult"),
  86695. CompileResult_2: findType("CompileResult0"),
  86696. ComplexSelector: findType("ComplexSelector"),
  86697. ComplexSelectorComponent: findType("ComplexSelectorComponent"),
  86698. ComplexSelectorComponent_2: findType("ComplexSelectorComponent0"),
  86699. ComplexSelector_2: findType("ComplexSelector0"),
  86700. CompoundSelector: findType("CompoundSelector"),
  86701. CompoundSelector_2: findType("CompoundSelector0"),
  86702. Configuration: findType("Configuration"),
  86703. Configuration_2: findType("Configuration0"),
  86704. ConfiguredValue: findType("ConfiguredValue"),
  86705. ConfiguredValue_2: findType("ConfiguredValue0"),
  86706. ConfiguredVariable: findType("ConfiguredVariable"),
  86707. ConfiguredVariable_2: findType("ConfiguredVariable0"),
  86708. ConstantMapView_Symbol_dynamic: findType("ConstantMapView<Symbol0,@>"),
  86709. CssAtRule: findType("CssAtRule"),
  86710. CssAtRule_2: findType("CssAtRule0"),
  86711. CssComment: findType("CssComment"),
  86712. CssComment_2: findType("CssComment0"),
  86713. CssImport: findType("CssImport"),
  86714. CssImport_2: findType("CssImport0"),
  86715. CssMediaQuery: findType("CssMediaQuery"),
  86716. CssMediaQuery_2: findType("CssMediaQuery0"),
  86717. CssMediaRule: findType("CssMediaRule"),
  86718. CssMediaRule_2: findType("CssMediaRule0"),
  86719. CssParentNode: findType("CssParentNode"),
  86720. CssParentNode_2: findType("CssParentNode0"),
  86721. CssStyleRule: findType("CssStyleRule"),
  86722. CssStyleRule_2: findType("CssStyleRule0"),
  86723. CssStylesheet: findType("CssStylesheet"),
  86724. CssStylesheet_2: findType("CssStylesheet0"),
  86725. CssSupportsRule: findType("CssSupportsRule"),
  86726. CssSupportsRule_2: findType("CssSupportsRule0"),
  86727. CssValue_List_String: findType("CssValue<List<String>>"),
  86728. CssValue_List_String_2: findType("CssValue0<List<String>>"),
  86729. CssValue_SelectorList: findType("CssValue<SelectorList>"),
  86730. CssValue_SelectorList_2: findType("CssValue0<SelectorList0>"),
  86731. CssValue_String: findType("CssValue<String>"),
  86732. CssValue_String_2: findType("CssValue0<String>"),
  86733. CssValue_Value: findType("CssValue<Value>"),
  86734. CssValue_Value_2: findType("CssValue0<Value0>"),
  86735. DateTime: findType("DateTime"),
  86736. EfficientLengthIterable_dynamic: findType("EfficientLengthIterable<@>"),
  86737. Error: findType("Error"),
  86738. EvaluateResult: findType("EvaluateResult"),
  86739. EvaluateResult_2: findType("EvaluateResult0"),
  86740. Exception: findType("Exception"),
  86741. Expression: findType("Expression"),
  86742. Expression_2: findType("Expression0"),
  86743. Extension: findType("Extension"),
  86744. Extension_2: findType("Extension0"),
  86745. FileLocation: findType("FileLocation"),
  86746. FileSpan: findType("FileSpan"),
  86747. FixedLengthListBuilder_ModifiableCssNode: findType("FixedLengthListBuilder<ModifiableCssNode>"),
  86748. FixedLengthListBuilder_ModifiableCssNode_2: findType("FixedLengthListBuilder0<ModifiableCssNode0>"),
  86749. FormatException: findType("FormatException"),
  86750. Frame: findType("Frame"),
  86751. Function: findType("Function"),
  86752. FutureOr_EvaluateResult: findType("EvaluateResult/"),
  86753. FutureOr_EvaluateResult_2: findType("EvaluateResult0/"),
  86754. Future_Null: findType("Future<Null>"),
  86755. Future_dynamic: findType("Future<@>"),
  86756. Future_void: findType("Future<~>"),
  86757. IfClause: findType("IfClause"),
  86758. IfClause_2: findType("IfClause0"),
  86759. Import: findType("Import"),
  86760. Import_2: findType("Import0"),
  86761. ImporterResult: findType("ImporterResult0"),
  86762. ImporterResult_2: findType("ImporterResult"),
  86763. Interpolation: findType("Interpolation"),
  86764. InterpolationBuffer: findType("InterpolationBuffer"),
  86765. InterpolationBuffer_2: findType("InterpolationBuffer0"),
  86766. Interpolation_2: findType("Interpolation0"),
  86767. Iterable_ComplexSelectorComponent: findType("Iterable<ComplexSelectorComponent>"),
  86768. Iterable_ComplexSelectorComponent_2: findType("Iterable<ComplexSelectorComponent0>"),
  86769. JSArray_Argument: findType("JSArray<Argument>"),
  86770. JSArray_Argument_2: findType("JSArray<Argument0>"),
  86771. JSArray_AstNode: findType("JSArray<AstNode>"),
  86772. JSArray_AstNode_2: findType("JSArray<AstNode0>"),
  86773. JSArray_AsyncBuiltInCallable: findType("JSArray<AsyncBuiltInCallable>"),
  86774. JSArray_AsyncBuiltInCallable_2: findType("JSArray<AsyncBuiltInCallable0>"),
  86775. JSArray_AsyncCallable: findType("JSArray<AsyncCallable0>"),
  86776. JSArray_AsyncCallable_2: findType("JSArray<AsyncCallable>"),
  86777. JSArray_AsyncImporter: findType("JSArray<AsyncImporter>"),
  86778. JSArray_BinaryOperator: findType("JSArray<BinaryOperator>"),
  86779. JSArray_BinaryOperator_2: findType("JSArray<BinaryOperator0>"),
  86780. JSArray_BuiltInCallable: findType("JSArray<BuiltInCallable>"),
  86781. JSArray_BuiltInCallable_2: findType("JSArray<BuiltInCallable0>"),
  86782. JSArray_BuiltInModule_AsyncBuiltInCallable: findType("JSArray<BuiltInModule<AsyncBuiltInCallable>>"),
  86783. JSArray_BuiltInModule_AsyncBuiltInCallable_2: findType("JSArray<BuiltInModule0<AsyncBuiltInCallable0>>"),
  86784. JSArray_BuiltInModule_BuiltInCallable: findType("JSArray<BuiltInModule<BuiltInCallable>>"),
  86785. JSArray_BuiltInModule_BuiltInCallable_2: findType("JSArray<BuiltInModule0<BuiltInCallable0>>"),
  86786. JSArray_Callable: findType("JSArray<Callable>"),
  86787. JSArray_Callable_2: findType("JSArray<Callable0>"),
  86788. JSArray_Combinator: findType("JSArray<Combinator>"),
  86789. JSArray_Combinator_2: findType("JSArray<Combinator0>"),
  86790. JSArray_ComplexSelector: findType("JSArray<ComplexSelector>"),
  86791. JSArray_ComplexSelectorComponent: findType("JSArray<ComplexSelectorComponent>"),
  86792. JSArray_ComplexSelectorComponent_2: findType("JSArray<ComplexSelectorComponent0>"),
  86793. JSArray_ComplexSelector_2: findType("JSArray<ComplexSelector0>"),
  86794. JSArray_CompoundSelector: findType("JSArray<CompoundSelector>"),
  86795. JSArray_CompoundSelector_2: findType("JSArray<CompoundSelector0>"),
  86796. JSArray_ConfiguredVariable: findType("JSArray<ConfiguredVariable>"),
  86797. JSArray_ConfiguredVariable_2: findType("JSArray<ConfiguredVariable0>"),
  86798. JSArray_CssMediaQuery: findType("JSArray<CssMediaQuery>"),
  86799. JSArray_CssMediaQuery_2: findType("JSArray<CssMediaQuery0>"),
  86800. JSArray_CssNode: findType("JSArray<CssNode>"),
  86801. JSArray_CssNode_2: findType("JSArray<CssNode0>"),
  86802. JSArray_Entry: findType("JSArray<Entry>"),
  86803. JSArray_Expression: findType("JSArray<Expression>"),
  86804. JSArray_Expression_2: findType("JSArray<Expression0>"),
  86805. JSArray_Extender: findType("JSArray<Extender>"),
  86806. JSArray_Extender_2: findType("JSArray<Extender0>"),
  86807. JSArray_Extension: findType("JSArray<Extension>"),
  86808. JSArray_Extension_2: findType("JSArray<Extension0>"),
  86809. JSArray_ForwardRule: findType("JSArray<ForwardRule>"),
  86810. JSArray_ForwardRule_2: findType("JSArray<ForwardRule0>"),
  86811. JSArray_Frame: findType("JSArray<Frame>"),
  86812. JSArray_IfClause: findType("JSArray<IfClause>"),
  86813. JSArray_IfClause_2: findType("JSArray<IfClause0>"),
  86814. JSArray_Import: findType("JSArray<Import>"),
  86815. JSArray_Import_2: findType("JSArray<Import0>"),
  86816. JSArray_Importer: findType("JSArray<Importer>"),
  86817. JSArray_Iterable_ComplexSelectorComponent: findType("JSArray<Iterable<ComplexSelectorComponent>>"),
  86818. JSArray_Iterable_ComplexSelectorComponent_2: findType("JSArray<Iterable<ComplexSelectorComponent0>>"),
  86819. JSArray_JSFunction: findType("JSArray<JSFunction0>"),
  86820. JSArray_List_ComplexSelectorComponent: findType("JSArray<List<ComplexSelectorComponent>>"),
  86821. JSArray_List_ComplexSelectorComponent_2: findType("JSArray<List<ComplexSelectorComponent0>>"),
  86822. JSArray_List_Extension: findType("JSArray<List<Extension>>"),
  86823. JSArray_List_Extension_2: findType("JSArray<List<Extension0>>"),
  86824. JSArray_List_Iterable_ComplexSelectorComponent: findType("JSArray<List<Iterable<ComplexSelectorComponent>>>"),
  86825. JSArray_List_Iterable_ComplexSelectorComponent_2: findType("JSArray<List<Iterable<ComplexSelectorComponent0>>>"),
  86826. JSArray_Map_String_AstNode: findType("JSArray<Map<String,AstNode>>"),
  86827. JSArray_Map_String_AstNode_2: findType("JSArray<Map<String,AstNode0>>"),
  86828. JSArray_Map_String_AsyncCallable: findType("JSArray<Map<String,AsyncCallable>>"),
  86829. JSArray_Map_String_AsyncCallable_2: findType("JSArray<Map<String,AsyncCallable0>>"),
  86830. JSArray_Map_String_Callable: findType("JSArray<Map<String,Callable>>"),
  86831. JSArray_Map_String_Callable_2: findType("JSArray<Map<String,Callable0>>"),
  86832. JSArray_Map_String_Value: findType("JSArray<Map<String,Value>>"),
  86833. JSArray_Map_String_Value_2: findType("JSArray<Map<String,Value0>>"),
  86834. JSArray_ModifiableCssImport: findType("JSArray<ModifiableCssImport>"),
  86835. JSArray_ModifiableCssImport_2: findType("JSArray<ModifiableCssImport0>"),
  86836. JSArray_ModifiableCssNode: findType("JSArray<ModifiableCssNode>"),
  86837. JSArray_ModifiableCssNode_2: findType("JSArray<ModifiableCssNode0>"),
  86838. JSArray_ModifiableCssParentNode: findType("JSArray<ModifiableCssParentNode>"),
  86839. JSArray_ModifiableCssParentNode_2: findType("JSArray<ModifiableCssParentNode0>"),
  86840. JSArray_Module_AsyncCallable: findType("JSArray<Module<AsyncCallable>>"),
  86841. JSArray_Module_AsyncCallable_2: findType("JSArray<Module0<AsyncCallable0>>"),
  86842. JSArray_Module_Callable: findType("JSArray<Module<Callable>>"),
  86843. JSArray_Module_Callable_2: findType("JSArray<Module0<Callable0>>"),
  86844. JSArray_PseudoSelector: findType("JSArray<PseudoSelector>"),
  86845. JSArray_PseudoSelector_2: findType("JSArray<PseudoSelector0>"),
  86846. JSArray_SassList: findType("JSArray<SassList>"),
  86847. JSArray_SassList_2: findType("JSArray<SassList0>"),
  86848. JSArray_SimpleSelector: findType("JSArray<SimpleSelector>"),
  86849. JSArray_SimpleSelector_2: findType("JSArray<SimpleSelector0>"),
  86850. JSArray_Statement: findType("JSArray<Statement>"),
  86851. JSArray_Statement_2: findType("JSArray<Statement0>"),
  86852. JSArray_String: findType("JSArray<String>"),
  86853. JSArray_StylesheetNode: findType("JSArray<StylesheetNode>"),
  86854. JSArray_TargetEntry: findType("JSArray<TargetEntry>"),
  86855. JSArray_TargetLineEntry: findType("JSArray<TargetLineEntry>"),
  86856. JSArray_Trace: findType("JSArray<Trace>"),
  86857. JSArray_Tuple2_Expression_Expression: findType("JSArray<Tuple2<Expression,Expression>>"),
  86858. JSArray_Tuple2_Expression_Expression_2: findType("JSArray<Tuple2<Expression0,Expression0>>"),
  86859. JSArray_Tuple2_String_AstNode: findType("JSArray<Tuple2<String,AstNode>>"),
  86860. JSArray_Tuple2_String_AstNode_2: findType("JSArray<Tuple2<String,AstNode0>>"),
  86861. JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value: findType("JSArray<Tuple2<ArgumentDeclaration,Value(List<Value>)>>"),
  86862. JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2: findType("JSArray<Tuple2<ArgumentDeclaration0,Value0(List<Value0>)>>"),
  86863. JSArray_Uri: findType("JSArray<Uri>"),
  86864. JSArray_UseRule: findType("JSArray<UseRule>"),
  86865. JSArray_UseRule_2: findType("JSArray<UseRule0>"),
  86866. JSArray_Value: findType("JSArray<Value>"),
  86867. JSArray_Value_2: findType("JSArray<Value0>"),
  86868. JSArray__Highlight: findType("JSArray<_Highlight>"),
  86869. JSArray__Line: findType("JSArray<_Line>"),
  86870. JSArray_bool: findType("JSArray<bool>"),
  86871. JSArray_dynamic: findType("JSArray<@>"),
  86872. JSArray_int: findType("JSArray<int>"),
  86873. JSError: findType("JSError"),
  86874. JSFunction: findType("JSFunction0"),
  86875. JavaScriptFunction: findType("JavaScriptFunction"),
  86876. JavaScriptIndexingBehavior_dynamic: findType("JavaScriptIndexingBehavior<@>"),
  86877. JsLinkedHashMap_Symbol_dynamic: findType("JsLinkedHashMap<Symbol0,@>"),
  86878. List_ComplexSelector: findType("List<ComplexSelector>"),
  86879. List_ComplexSelectorComponent: findType("List<ComplexSelectorComponent>"),
  86880. List_ComplexSelectorComponent_2: findType("List<ComplexSelectorComponent0>"),
  86881. List_ComplexSelector_2: findType("List<ComplexSelector0>"),
  86882. List_CssMediaQuery: findType("List<CssMediaQuery>"),
  86883. List_CssMediaQuery_2: findType("List<CssMediaQuery0>"),
  86884. List_Extender: findType("List<Extender>"),
  86885. List_Extender_2: findType("List<Extender0>"),
  86886. List_Extension: findType("List<Extension>"),
  86887. List_Extension_2: findType("List<Extension0>"),
  86888. List_List_ComplexSelectorComponent: findType("List<List<ComplexSelectorComponent>>"),
  86889. List_List_ComplexSelectorComponent_2: findType("List<List<ComplexSelectorComponent0>>"),
  86890. List_Module_AsyncCallable: findType("List<Module<AsyncCallable>>"),
  86891. List_Module_AsyncCallable_2: findType("List<Module0<AsyncCallable0>>"),
  86892. List_Module_Callable: findType("List<Module<Callable>>"),
  86893. List_Module_Callable_2: findType("List<Module0<Callable0>>"),
  86894. List_Object: findType("List<Object>"),
  86895. List_String: findType("List<String>"),
  86896. List_Value: findType("List<Value>"),
  86897. List_Value_2: findType("List<Value0>"),
  86898. List_WatchEvent: findType("List<WatchEvent>"),
  86899. List_dynamic: findType("List<@>"),
  86900. List_int: findType("List<int>"),
  86901. MapKeySet_Object: findType("MapKeySet<Object>"),
  86902. MapKeySet_SimpleSelector: findType("MapKeySet<SimpleSelector>"),
  86903. MapKeySet_SimpleSelector_2: findType("MapKeySet<SimpleSelector0>"),
  86904. MapKeySet_String: findType("MapKeySet<String>"),
  86905. Map_ComplexSelector_Extension: findType("Map<ComplexSelector,Extension>"),
  86906. Map_ComplexSelector_Extension_2: findType("Map<ComplexSelector0,Extension0>"),
  86907. Map_dynamic_dynamic: findType("Map<@,@>"),
  86908. MappedIterable_String_Frame: findType("MappedIterable<String,Frame>"),
  86909. MappedListIterable_Frame_Frame: findType("MappedListIterable<Frame,Frame>"),
  86910. MappedListIterable_String_String: findType("MappedListIterable<String,String>"),
  86911. MappedListIterable_String_Trace: findType("MappedListIterable<String,Trace>"),
  86912. MappedListIterable_String_dynamic: findType("MappedListIterable<String,@>"),
  86913. MappedListIterable_of_String_and_Future_void: findType("MappedListIterable<String,Future<~>>"),
  86914. MediaQuerySuccessfulMergeResult: findType("MediaQuerySuccessfulMergeResult"),
  86915. MediaQuerySuccessfulMergeResult_2: findType("MediaQuerySuccessfulMergeResult0"),
  86916. MixinRule: findType("MixinRule"),
  86917. MixinRule_2: findType("MixinRule0"),
  86918. ModifiableCssAtRule: findType("ModifiableCssAtRule"),
  86919. ModifiableCssAtRule_2: findType("ModifiableCssAtRule0"),
  86920. ModifiableCssKeyframeBlock: findType("ModifiableCssKeyframeBlock"),
  86921. ModifiableCssKeyframeBlock_2: findType("ModifiableCssKeyframeBlock0"),
  86922. ModifiableCssMediaRule: findType("ModifiableCssMediaRule"),
  86923. ModifiableCssMediaRule_2: findType("ModifiableCssMediaRule0"),
  86924. ModifiableCssParentNode: findType("ModifiableCssParentNode"),
  86925. ModifiableCssParentNode_2: findType("ModifiableCssParentNode0"),
  86926. ModifiableCssStyleRule: findType("ModifiableCssStyleRule"),
  86927. ModifiableCssStyleRule_2: findType("ModifiableCssStyleRule0"),
  86928. ModifiableCssSupportsRule: findType("ModifiableCssSupportsRule"),
  86929. ModifiableCssSupportsRule_2: findType("ModifiableCssSupportsRule0"),
  86930. ModifiableCssValue_SelectorList: findType("ModifiableCssValue<SelectorList>"),
  86931. ModifiableCssValue_SelectorList_2: findType("ModifiableCssValue0<SelectorList0>"),
  86932. Module_AsyncCallable: findType("Module<AsyncCallable>"),
  86933. Module_AsyncCallable_2: findType("Module0<AsyncCallable0>"),
  86934. Module_Callable: findType("Module<Callable>"),
  86935. Module_Callable_2: findType("Module0<Callable0>"),
  86936. NativeTypedArrayOfDouble: findType("NativeTypedArrayOfDouble"),
  86937. NativeTypedArrayOfInt: findType("NativeTypedArrayOfInt"),
  86938. NativeUint8List: findType("NativeUint8List"),
  86939. NodeImporterResult: findType("NodeImporterResult0"),
  86940. Null: findType("Null"),
  86941. Object: findType("Object"),
  86942. Object_Function: findType("Object()"),
  86943. Option: findType("Option"),
  86944. ParentSelector: findType("ParentSelector"),
  86945. ParentSelector_2: findType("ParentSelector0"),
  86946. PathMap_ChangeType: findType("PathMap<ChangeType>"),
  86947. PathMap_String: findType("PathMap<String>"),
  86948. PseudoSelector: findType("PseudoSelector"),
  86949. PseudoSelector_2: findType("PseudoSelector0"),
  86950. RenderResult: findType("RenderResult"),
  86951. Result_String: findType("Result<String>"),
  86952. ReversedListIterable_Combinator: findType("ReversedListIterable<Combinator>"),
  86953. ReversedListIterable_Combinator_2: findType("ReversedListIterable<Combinator0>"),
  86954. ReversedListIterable_Frame: findType("ReversedListIterable<Frame>"),
  86955. SassArgumentList: findType("SassArgumentList"),
  86956. SassArgumentList_2: findType("SassArgumentList0"),
  86957. SassBoolean: findType("SassBoolean"),
  86958. SassBoolean_2: findType("SassBoolean0"),
  86959. SassColor: findType("SassColor"),
  86960. SassColor_2: findType("SassColor0"),
  86961. SassList: findType("SassList"),
  86962. SassList_2: findType("SassList0"),
  86963. SassMap: findType("SassMap"),
  86964. SassMap_2: findType("SassMap0"),
  86965. SassNull: findType("SassNull"),
  86966. SassNull_2: findType("SassNull0"),
  86967. SassNumber: findType("SassNumber"),
  86968. SassNumber_2: findType("SassNumber0"),
  86969. SassRuntimeException: findType("SassRuntimeException"),
  86970. SassRuntimeException_2: findType("SassRuntimeException0"),
  86971. SassString: findType("SassString"),
  86972. SassString_2: findType("SassString0"),
  86973. Set_ModifiableCssValue_SelectorList: findType("Set<ModifiableCssValue<SelectorList>>"),
  86974. Set_ModifiableCssValue_SelectorList_2: findType("Set<ModifiableCssValue0<SelectorList0>>"),
  86975. SimpleSelector: findType("SimpleSelector"),
  86976. SimpleSelector_2: findType("SimpleSelector0"),
  86977. SourceFile: findType("SourceFile"),
  86978. SourceLocation: findType("SourceLocation"),
  86979. SourceSpan: findType("SourceSpan"),
  86980. SourceSpanFormatException: findType("SourceSpanFormatException"),
  86981. SourceSpanWithContext: findType("SourceSpanWithContext"),
  86982. Statement: findType("Statement"),
  86983. Statement_2: findType("Statement0"),
  86984. StaticImport: findType("StaticImport"),
  86985. StaticImport_2: findType("StaticImport0"),
  86986. StreamCompleter_WatchEvent: findType("StreamCompleter<WatchEvent>"),
  86987. StreamGroup_WatchEvent: findType("StreamGroup<WatchEvent>"),
  86988. StreamQueue_String: findType("StreamQueue<String>"),
  86989. StreamSubscription_WatchEvent: findType("StreamSubscription<WatchEvent>"),
  86990. Stream_WatchEvent: findType("Stream<WatchEvent>"),
  86991. String: findType("String"),
  86992. StringBuffer: findType("StringBuffer"),
  86993. StringConversionSink: findType("StringConversionSink"),
  86994. Stylesheet: findType("Stylesheet0"),
  86995. StylesheetNode: findType("StylesheetNode"),
  86996. Stylesheet_2: findType("Stylesheet"),
  86997. Timer: findType("Timer"),
  86998. Trace: findType("Trace"),
  86999. Tuple2_AsyncImporter_Stylesheet: findType("Tuple2<AsyncImporter,Stylesheet>"),
  87000. Tuple2_AsyncImporter_Stylesheet_2: findType("Tuple2<AsyncImporter0,Stylesheet0>"),
  87001. Tuple2_Expression_Expression: findType("Tuple2<Expression,Expression>"),
  87002. Tuple2_Expression_Expression_2: findType("Tuple2<Expression0,Expression0>"),
  87003. Tuple2_Importer_Stylesheet: findType("Tuple2<Importer,Stylesheet>"),
  87004. Tuple2_Importer_Stylesheet_2: findType("Tuple2<Importer0,Stylesheet0>"),
  87005. Tuple2_ModifiableCssStylesheet_Extender: findType("Tuple2<ModifiableCssStylesheet,Extender>"),
  87006. Tuple2_ModifiableCssStylesheet_Extender_2: findType("Tuple2<ModifiableCssStylesheet0,Extender0>"),
  87007. Tuple2_SassNumber_SassNumber: findType("Tuple2<SassNumber,SassNumber>"),
  87008. Tuple2_SassNumber_SassNumber_2: findType("Tuple2<SassNumber0,SassNumber0>"),
  87009. Tuple2_String_ArgumentDeclaration: findType("Tuple2<String,ArgumentDeclaration0>"),
  87010. Tuple2_String_AstNode: findType("Tuple2<String,AstNode>"),
  87011. Tuple2_String_AstNode_2: findType("Tuple2<String,AstNode0>"),
  87012. Tuple2_String_String: findType("Tuple2<String,String>"),
  87013. Tuple2_SupportsCondition_Interpolation: findType("Tuple2<SupportsCondition,Interpolation>"),
  87014. Tuple2_SupportsCondition_Interpolation_2: findType("Tuple2<SupportsCondition0,Interpolation0>"),
  87015. Tuple2_Uri_bool: findType("Tuple2<Uri,bool>"),
  87016. Tuple2_of_ArgumentDeclaration_and_FutureOr_Value_Function_List_Value: findType("Tuple2<ArgumentDeclaration,Value/(List<Value>)>"),
  87017. Tuple2_of_ArgumentDeclaration_and_FutureOr_Value_Function_List_Value_2: findType("Tuple2<ArgumentDeclaration0,Value0/(List<Value0>)>"),
  87018. Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value: findType("Tuple2<ArgumentDeclaration,Value(List<Value>)>"),
  87019. Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2: findType("Tuple2<ArgumentDeclaration0,Value0(List<Value0>)>"),
  87020. Tuple2_of_Extender_and_Map_of_CssValue_SelectorList_and_ModifiableCssValue_SelectorList: findType("Tuple2<Extender,Map<CssValue<SelectorList>,ModifiableCssValue<SelectorList>>>"),
  87021. Tuple2_of_Extender_and_Map_of_CssValue_SelectorList_and_ModifiableCssValue_SelectorList_2: findType("Tuple2<Extender0,Map<CssValue0<SelectorList0>,ModifiableCssValue0<SelectorList0>>>"),
  87022. Tuple2_of_List_Expression_and_Map_String_Expression: findType("Tuple2<List<Expression>,Map<String,Expression>>"),
  87023. Tuple2_of_List_Expression_and_Map_String_Expression_2: findType("Tuple2<List<Expression0>,Map<String,Expression0>>"),
  87024. Tuple2_of_List_Uri_and_List_Uri: findType("Tuple2<List<Uri>,List<Uri>>"),
  87025. Tuple2_of_Map_Uri_StylesheetNode_and_Map_Uri_StylesheetNode: findType("Tuple2<Map<Uri,StylesheetNode>,Map<Uri,StylesheetNode>>"),
  87026. Tuple2_of_Set_String_and_Set_String: findType("Tuple2<Set<String>,Set<String>>"),
  87027. Tuple3_AsyncImporter_Uri_Uri: findType("Tuple3<AsyncImporter0,Uri,Uri>"),
  87028. Tuple3_AsyncImporter_Uri_Uri_2: findType("Tuple3<AsyncImporter,Uri,Uri>"),
  87029. Tuple3_Importer_Uri_Uri: findType("Tuple3<Importer,Uri,Uri>"),
  87030. Tuple3_Importer_Uri_Uri_2: findType("Tuple3<Importer0,Uri,Uri>"),
  87031. Uint8List: findType("Uint8List"),
  87032. UnknownJavaScriptObject: findType("UnknownJavaScriptObject"),
  87033. UnmodifiableListView_CssNode: findType("UnmodifiableListView<CssNode>"),
  87034. UnmodifiableListView_CssNode_2: findType("UnmodifiableListView<CssNode0>"),
  87035. UnmodifiableListView_ForwardRule: findType("UnmodifiableListView<ForwardRule>"),
  87036. UnmodifiableListView_ForwardRule_2: findType("UnmodifiableListView<ForwardRule0>"),
  87037. UnmodifiableListView_ModifiableCssNode: findType("UnmodifiableListView<ModifiableCssNode>"),
  87038. UnmodifiableListView_ModifiableCssNode_2: findType("UnmodifiableListView<ModifiableCssNode0>"),
  87039. UnmodifiableListView_String: findType("UnmodifiableListView<String>"),
  87040. UnmodifiableListView_UseRule: findType("UnmodifiableListView<UseRule>"),
  87041. UnmodifiableListView_UseRule_2: findType("UnmodifiableListView<UseRule0>"),
  87042. UnmodifiableMapView_String_ArgParser: findType("UnmodifiableMapView<String,ArgParser>"),
  87043. UnmodifiableMapView_String_ConfiguredValue: findType("UnmodifiableMapView<String,ConfiguredValue>"),
  87044. UnmodifiableMapView_String_ConfiguredValue_2: findType("UnmodifiableMapView<String,ConfiguredValue0>"),
  87045. UnmodifiableMapView_String_Option: findType("UnmodifiableMapView<String,Option>"),
  87046. UnmodifiableMapView_String_SourceFile: findType("UnmodifiableMapView<String,SourceFile>"),
  87047. UnmodifiableMapView_String_String: findType("UnmodifiableMapView<String,String>"),
  87048. UnmodifiableMapView_String_Value: findType("UnmodifiableMapView<String,Value>"),
  87049. UnmodifiableMapView_String_Value_2: findType("UnmodifiableMapView<String,Value0>"),
  87050. UnmodifiableMapView_Uri_StylesheetNode: findType("UnmodifiableMapView<Uri,StylesheetNode>"),
  87051. UnmodifiableSetView_String: findType("UnmodifiableSetView<String>"),
  87052. UnmodifiableSetView_StylesheetNode: findType("UnmodifiableSetView<StylesheetNode>"),
  87053. UnprefixedMapView_ConfiguredValue: findType("UnprefixedMapView<ConfiguredValue>"),
  87054. UnprefixedMapView_ConfiguredValue_2: findType("UnprefixedMapView0<ConfiguredValue0>"),
  87055. Uri: findType("Uri"),
  87056. UseRule: findType("UseRule"),
  87057. UserDefinedCallable_AsyncEnvironment: findType("UserDefinedCallable<AsyncEnvironment>"),
  87058. UserDefinedCallable_AsyncEnvironment_2: findType("UserDefinedCallable0<AsyncEnvironment0>"),
  87059. UserDefinedCallable_Environment: findType("UserDefinedCallable<Environment>"),
  87060. UserDefinedCallable_Environment_2: findType("UserDefinedCallable0<Environment0>"),
  87061. Value: findType("Value"),
  87062. Value_2: findType("Value0"),
  87063. VariableDeclaration: findType("VariableDeclaration"),
  87064. VariableDeclaration_2: findType("VariableDeclaration0"),
  87065. WatchEvent: findType("WatchEvent"),
  87066. WhereIterable_List_Iterable_ComplexSelectorComponent: findType("WhereIterable<List<Iterable<ComplexSelectorComponent>>>"),
  87067. WhereIterable_List_Iterable_ComplexSelectorComponent_2: findType("WhereIterable<List<Iterable<ComplexSelectorComponent0>>>"),
  87068. WhereIterable_String: findType("WhereIterable<String>"),
  87069. WhereTypeIterable_PseudoSelector: findType("WhereTypeIterable<PseudoSelector>"),
  87070. WhereTypeIterable_PseudoSelector_2: findType("WhereTypeIterable<PseudoSelector0>"),
  87071. _ArgumentResults: findType("_ArgumentResults0"),
  87072. _ArgumentResults_2: findType("_ArgumentResults2"),
  87073. _AsyncCompleter_Object: findType("_AsyncCompleter<Object>"),
  87074. _AsyncCompleter_Stream_WatchEvent: findType("_AsyncCompleter<Stream<WatchEvent>>"),
  87075. _AsyncCompleter_String: findType("_AsyncCompleter<String>"),
  87076. _CompleterStream_WatchEvent: findType("_CompleterStream<WatchEvent>"),
  87077. _EventRequest_dynamic: findType("_EventRequest<@>"),
  87078. _Future_Object: findType("_Future<Object>"),
  87079. _Future_Stream_WatchEvent: findType("_Future<Stream<WatchEvent>>"),
  87080. _Future_String: findType("_Future<String>"),
  87081. _Future_bool: findType("_Future<bool>"),
  87082. _Future_dynamic: findType("_Future<@>"),
  87083. _Future_int: findType("_Future<int>"),
  87084. _Future_void: findType("_Future<~>"),
  87085. _Highlight: findType("_Highlight"),
  87086. _LinkedIdentityHashSet_ComplexSelector: findType("_LinkedIdentityHashSet<ComplexSelector>"),
  87087. _LinkedIdentityHashSet_ComplexSelector_2: findType("_LinkedIdentityHashSet<ComplexSelector0>"),
  87088. _LinkedIdentityHashSet_Extension: findType("_LinkedIdentityHashSet<Extension>"),
  87089. _LinkedIdentityHashSet_Extension_2: findType("_LinkedIdentityHashSet<Extension0>"),
  87090. _MapEntry: findType("_MapEntry"),
  87091. _SystemError: findType("_SystemError"),
  87092. _SystemError_2: findType("_SystemError0"),
  87093. bool: findType("bool"),
  87094. double: findType("double"),
  87095. dynamic: findType("@"),
  87096. dynamic_Function_Object: findType("@(Object)"),
  87097. dynamic_Function_Object_StackTrace: findType("@(Object,StackTrace)"),
  87098. int: findType("int"),
  87099. num: findType("num"),
  87100. void: findType("~"),
  87101. void_Function_Object: findType("~(Object)"),
  87102. void_Function_Object_StackTrace: findType("~(Object,StackTrace)")
  87103. };
  87104. })();
  87105. (function constants() {
  87106. var makeConstList = hunkHelpers.makeConstList;
  87107. C.Interceptor_methods = J.Interceptor.prototype;
  87108. C.JSArray_methods = J.JSArray.prototype;
  87109. C.JSBool_methods = J.JSBool.prototype;
  87110. C.JSDouble_methods = J.JSDouble.prototype;
  87111. C.JSInt_methods = J.JSInt.prototype;
  87112. C.JSNumber_methods = J.JSNumber.prototype;
  87113. C.JSString_methods = J.JSString.prototype;
  87114. C.JavaScriptFunction_methods = J.JavaScriptFunction.prototype;
  87115. C.NativeUint32List_methods = H.NativeUint32List.prototype;
  87116. C.NativeUint8List_methods = H.NativeUint8List.prototype;
  87117. C.PlainJavaScriptObject_methods = J.PlainJavaScriptObject.prototype;
  87118. C.UnknownJavaScriptObject_methods = J.UnknownJavaScriptObject.prototype;
  87119. C.AsciiEncoder_127 = new P.AsciiEncoder(127);
  87120. C.C_EmptyUnmodifiableSet1 = new O.EmptyUnmodifiableSet(H.findType("EmptyUnmodifiableSet<String>"));
  87121. C.AtRootQuery_UsS = new V.AtRootQuery(false, C.C_EmptyUnmodifiableSet1, false, true);
  87122. C.AtRootQuery_UsS0 = new V.AtRootQuery0(false, C.C_EmptyUnmodifiableSet1, false, true);
  87123. C.AttributeOperator_4L5 = new N.AttributeOperator("^=");
  87124. C.AttributeOperator_4L50 = new N.AttributeOperator0("^=");
  87125. C.AttributeOperator_AuK = new N.AttributeOperator("|=");
  87126. C.AttributeOperator_AuK0 = new N.AttributeOperator0("|=");
  87127. C.AttributeOperator_fz1 = new N.AttributeOperator("~=");
  87128. C.AttributeOperator_fz10 = new N.AttributeOperator0("~=");
  87129. C.AttributeOperator_gqZ = new N.AttributeOperator("*=");
  87130. C.AttributeOperator_gqZ0 = new N.AttributeOperator0("*=");
  87131. C.AttributeOperator_mOX = new N.AttributeOperator("$=");
  87132. C.AttributeOperator_mOX0 = new N.AttributeOperator0("$=");
  87133. C.AttributeOperator_sEs = new N.AttributeOperator("=");
  87134. C.AttributeOperator_sEs0 = new N.AttributeOperator0("=");
  87135. C.BinaryOperator_1da = new V.BinaryOperator("greater than or equals", ">=", 4);
  87136. C.BinaryOperator_1da0 = new V.BinaryOperator0("greater than or equals", ">=", 4);
  87137. C.BinaryOperator_2ad = new V.BinaryOperator("modulo", "%", 6);
  87138. C.BinaryOperator_2ad0 = new V.BinaryOperator0("modulo", "%", 6);
  87139. C.BinaryOperator_33h = new V.BinaryOperator("less than or equals", "<=", 4);
  87140. C.BinaryOperator_33h0 = new V.BinaryOperator0("less than or equals", "<=", 4);
  87141. C.BinaryOperator_8qt = new V.BinaryOperator("less than", "<", 4);
  87142. C.BinaryOperator_8qt0 = new V.BinaryOperator0("less than", "<", 4);
  87143. C.BinaryOperator_AcR0 = new V.BinaryOperator("greater than", ">", 4);
  87144. C.BinaryOperator_AcR = new V.BinaryOperator("plus", "+", 5);
  87145. C.BinaryOperator_AcR2 = new V.BinaryOperator0("greater than", ">", 4);
  87146. C.BinaryOperator_AcR1 = new V.BinaryOperator0("plus", "+", 5);
  87147. C.BinaryOperator_O1M = new V.BinaryOperator("times", "*", 6);
  87148. C.BinaryOperator_O1M0 = new V.BinaryOperator0("times", "*", 6);
  87149. C.BinaryOperator_RTB = new V.BinaryOperator("divided by", "/", 6);
  87150. C.BinaryOperator_RTB0 = new V.BinaryOperator0("divided by", "/", 6);
  87151. C.BinaryOperator_YlX = new V.BinaryOperator("equals", "==", 3);
  87152. C.BinaryOperator_YlX0 = new V.BinaryOperator0("equals", "==", 3);
  87153. C.BinaryOperator_and_and_2 = new V.BinaryOperator("and", "and", 2);
  87154. C.BinaryOperator_and_and_20 = new V.BinaryOperator0("and", "and", 2);
  87155. C.BinaryOperator_i5H = new V.BinaryOperator("not equals", "!=", 3);
  87156. C.BinaryOperator_i5H0 = new V.BinaryOperator0("not equals", "!=", 3);
  87157. C.BinaryOperator_iyO = new V.BinaryOperator("minus", "-", 5);
  87158. C.BinaryOperator_iyO0 = new V.BinaryOperator0("minus", "-", 5);
  87159. C.BinaryOperator_kjl = new V.BinaryOperator("single equals", "=", 0);
  87160. C.BinaryOperator_kjl0 = new V.BinaryOperator0("single equals", "=", 0);
  87161. C.BinaryOperator_or_or_1 = new V.BinaryOperator("or", "or", 1);
  87162. C.BinaryOperator_or_or_10 = new V.BinaryOperator0("or", "or", 1);
  87163. C.C_AsciiCodec = new P.AsciiCodec();
  87164. C.C_AsciiGlyphSet = new A.AsciiGlyphSet();
  87165. C.C_Base64Encoder = new P.Base64Encoder();
  87166. C.C_Base64Codec = new P.Base64Codec();
  87167. C.C_DefaultEquality = new U.DefaultEquality();
  87168. C.C_EmptyExtender = new T.EmptyExtender();
  87169. C.C_EmptyExtender0 = new T.EmptyExtender0();
  87170. C.C_EmptyIterator = new H.EmptyIterator();
  87171. C.C_EmptyUnmodifiableSet = new O.EmptyUnmodifiableSet(H.findType("EmptyUnmodifiableSet<SimpleSelector>"));
  87172. C.C_EmptyUnmodifiableSet0 = new O.EmptyUnmodifiableSet(H.findType("EmptyUnmodifiableSet<SimpleSelector0>"));
  87173. C.C_IterableEquality = new U.IterableEquality();
  87174. C.C_JS_CONST = function getTagFallback(o) {
  87175. var s = Object.prototype.toString.call(o);
  87176. return s.substring(8, s.length - 1);
  87177. };
  87178. C.C_JS_CONST0 = function() {
  87179. var toStringFunction = Object.prototype.toString;
  87180. function getTag(o) {
  87181. var s = toStringFunction.call(o);
  87182. return s.substring(8, s.length - 1);
  87183. }
  87184. function getUnknownTag(object, tag) {
  87185. if (/^HTML[A-Z].*Element$/.test(tag)) {
  87186. var name = toStringFunction.call(object);
  87187. if (name == "[object Object]") return null;
  87188. return "HTMLElement";
  87189. }
  87190. }
  87191. function getUnknownTagGenericBrowser(object, tag) {
  87192. if (self.HTMLElement && object instanceof HTMLElement) return "HTMLElement";
  87193. return getUnknownTag(object, tag);
  87194. }
  87195. function prototypeForTag(tag) {
  87196. if (typeof window == "undefined") return null;
  87197. if (typeof window[tag] == "undefined") return null;
  87198. var constructor = window[tag];
  87199. if (typeof constructor != "function") return null;
  87200. return constructor.prototype;
  87201. }
  87202. function discriminator(tag) { return null; }
  87203. var isBrowser = typeof navigator == "object";
  87204. return {
  87205. getTag: getTag,
  87206. getUnknownTag: isBrowser ? getUnknownTagGenericBrowser : getUnknownTag,
  87207. prototypeForTag: prototypeForTag,
  87208. discriminator: discriminator };
  87209. };
  87210. C.C_JS_CONST6 = function(getTagFallback) {
  87211. return function(hooks) {
  87212. if (typeof navigator != "object") return hooks;
  87213. var ua = navigator.userAgent;
  87214. if (ua.indexOf("DumpRenderTree") >= 0) return hooks;
  87215. if (ua.indexOf("Chrome") >= 0) {
  87216. function confirm(p) {
  87217. return typeof window == "object" && window[p] && window[p].name == p;
  87218. }
  87219. if (confirm("Window") && confirm("HTMLElement")) return hooks;
  87220. }
  87221. hooks.getTag = getTagFallback;
  87222. };
  87223. };
  87224. C.C_JS_CONST1 = function(hooks) {
  87225. if (typeof dartExperimentalFixupGetTag != "function") return hooks;
  87226. hooks.getTag = dartExperimentalFixupGetTag(hooks.getTag);
  87227. };
  87228. C.C_JS_CONST2 = function(hooks) {
  87229. var getTag = hooks.getTag;
  87230. var prototypeForTag = hooks.prototypeForTag;
  87231. function getTagFixed(o) {
  87232. var tag = getTag(o);
  87233. if (tag == "Document") {
  87234. if (!!o.xmlVersion) return "!Document";
  87235. return "!HTMLDocument";
  87236. }
  87237. return tag;
  87238. }
  87239. function prototypeForTagFixed(tag) {
  87240. if (tag == "Document") return null;
  87241. return prototypeForTag(tag);
  87242. }
  87243. hooks.getTag = getTagFixed;
  87244. hooks.prototypeForTag = prototypeForTagFixed;
  87245. };
  87246. C.C_JS_CONST5 = function(hooks) {
  87247. var userAgent = typeof navigator == "object" ? navigator.userAgent : "";
  87248. if (userAgent.indexOf("Firefox") == -1) return hooks;
  87249. var getTag = hooks.getTag;
  87250. var quickMap = {
  87251. "BeforeUnloadEvent": "Event",
  87252. "DataTransfer": "Clipboard",
  87253. "GeoGeolocation": "Geolocation",
  87254. "Location": "!Location",
  87255. "WorkerMessageEvent": "MessageEvent",
  87256. "XMLDocument": "!Document"};
  87257. function getTagFirefox(o) {
  87258. var tag = getTag(o);
  87259. return quickMap[tag] || tag;
  87260. }
  87261. hooks.getTag = getTagFirefox;
  87262. };
  87263. C.C_JS_CONST4 = function(hooks) {
  87264. var userAgent = typeof navigator == "object" ? navigator.userAgent : "";
  87265. if (userAgent.indexOf("Trident/") == -1) return hooks;
  87266. var getTag = hooks.getTag;
  87267. var quickMap = {
  87268. "BeforeUnloadEvent": "Event",
  87269. "DataTransfer": "Clipboard",
  87270. "HTMLDDElement": "HTMLElement",
  87271. "HTMLDTElement": "HTMLElement",
  87272. "HTMLPhraseElement": "HTMLElement",
  87273. "Position": "Geoposition"
  87274. };
  87275. function getTagIE(o) {
  87276. var tag = getTag(o);
  87277. var newTag = quickMap[tag];
  87278. if (newTag) return newTag;
  87279. if (tag == "Object") {
  87280. if (window.DataView && (o instanceof window.DataView)) return "DataView";
  87281. }
  87282. return tag;
  87283. }
  87284. function prototypeForTagIE(tag) {
  87285. var constructor = window[tag];
  87286. if (constructor == null) return null;
  87287. return constructor.prototype;
  87288. }
  87289. hooks.getTag = getTagIE;
  87290. hooks.prototypeForTag = prototypeForTagIE;
  87291. };
  87292. C.C_JS_CONST3 = function(hooks) { return hooks; }
  87293. ;
  87294. C.C_JsonCodec = new P.JsonCodec();
  87295. C.C_LineFeed = new N.LineFeed();
  87296. C.C_ListEquality = new U.ListEquality();
  87297. C.C_MapEquality = new U.MapEquality();
  87298. C.C_OutOfMemoryError = new P.OutOfMemoryError();
  87299. C.C_SassNull0 = new O.SassNull();
  87300. C.C_SassNull = new O.SassNull0();
  87301. C.C_StderrLogger = new S.StderrLogger0();
  87302. C.C_UnicodeGlyphSet = new K.UnicodeGlyphSet();
  87303. C.C_Utf8Codec = new P.Utf8Codec();
  87304. C.C_Utf8Encoder = new P.Utf8Encoder();
  87305. C.C__DelayedDone = new P._DelayedDone();
  87306. C.C__JSRandom = new P._JSRandom();
  87307. C.C__RootZone = new P._RootZone();
  87308. C.ChangeType_add = new E.ChangeType("add");
  87309. C.ChangeType_modify = new E.ChangeType("modify");
  87310. C.ChangeType_remove = new E.ChangeType("remove");
  87311. C.Combinator_CzM = new S.Combinator("~");
  87312. C.Combinator_CzM0 = new S.Combinator0("~");
  87313. C.Combinator_sgq = new S.Combinator(">");
  87314. C.Combinator_sgq0 = new S.Combinator0(">");
  87315. C.Combinator_uzg = new S.Combinator("+");
  87316. C.Combinator_uzg0 = new S.Combinator0("+");
  87317. C.List_empty = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_String);
  87318. C.Map_empty12 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String,ConfiguredValue>"));
  87319. C.Configuration_Map_empty_null_true = new A.Configuration(C.Map_empty12, null, true);
  87320. C.Map_empty13 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String,ConfiguredValue0>"));
  87321. C.Configuration_Map_empty_null_true0 = new A.Configuration0(C.Map_empty13, null, true);
  87322. C.Duration_0 = new P.Duration(0);
  87323. C.ExtendMode_allTargets = new L.ExtendMode("allTargets");
  87324. C.ExtendMode_allTargets0 = new L.ExtendMode0("allTargets");
  87325. C.ExtendMode_normal = new L.ExtendMode("normal");
  87326. C.ExtendMode_normal0 = new L.ExtendMode0("normal");
  87327. C.ExtendMode_replace = new L.ExtendMode("replace");
  87328. C.ExtendMode_replace0 = new L.ExtendMode0("replace");
  87329. C.JsonEncoder_null = new P.JsonEncoder(null);
  87330. C.LineFeed_D6m = new N.LineFeed0("lf", "\n");
  87331. C.LineFeed_Mss = new N.LineFeed0("crlf", "\r\n");
  87332. C.LineFeed_a1Y = new N.LineFeed0("lfcr", "\n\r");
  87333. C.LineFeed_kMT = new N.LineFeed0("cr", "\r");
  87334. C.ListSeparator_comma = new D.ListSeparator("comma");
  87335. C.ListSeparator_comma0 = new D.ListSeparator0("comma");
  87336. C.ListSeparator_space = new D.ListSeparator("space");
  87337. C.ListSeparator_space0 = new D.ListSeparator0("space");
  87338. C.ListSeparator_undecided = new D.ListSeparator("undecided");
  87339. C.ListSeparator_undecided0 = new D.ListSeparator0("undecided");
  87340. C.List_127_2047_65535_1114111 = H.setRuntimeTypeInfo(makeConstList([127, 2047, 65535, 1114111]), type$.JSArray_int);
  87341. C.List_2Vk = H.setRuntimeTypeInfo(makeConstList([0, 0, 32776, 33792, 1, 10240, 0, 0]), type$.JSArray_int);
  87342. C.List_CVk = H.setRuntimeTypeInfo(makeConstList([0, 0, 65490, 45055, 65535, 34815, 65534, 18431]), type$.JSArray_int);
  87343. C.List_JYB = H.setRuntimeTypeInfo(makeConstList([0, 0, 26624, 1023, 65534, 2047, 65534, 2047]), type$.JSArray_int);
  87344. C.List_empty8 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_Argument);
  87345. C.List_empty20 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_Argument_2);
  87346. C.List_empty21 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_AsyncCallable);
  87347. C.List_empty23 = H.setRuntimeTypeInfo(makeConstList([]), H.findType("JSArray<AsyncImporter0>"));
  87348. C.List_empty4 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_ComplexSelector);
  87349. C.List_empty15 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_ComplexSelector_2);
  87350. C.List_empty6 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_ConfiguredVariable);
  87351. C.List_empty18 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_ConfiguredVariable_2);
  87352. C.List_empty0 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_CssNode);
  87353. C.List_empty12 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_CssNode_2);
  87354. C.List_empty7 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_Expression);
  87355. C.List_empty19 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_Expression_2);
  87356. C.List_empty2 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_Extension);
  87357. C.List_empty13 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_Extension_2);
  87358. C.List_empty10 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_Importer);
  87359. C.List_empty17 = H.setRuntimeTypeInfo(makeConstList([]), H.findType("JSArray<Importer0>"));
  87360. C.List_empty3 = H.setRuntimeTypeInfo(makeConstList([]), H.findType("JSArray<Module<Null>>"));
  87361. C.List_empty14 = H.setRuntimeTypeInfo(makeConstList([]), H.findType("JSArray<Module0<Null>>"));
  87362. C.List_empty9 = H.setRuntimeTypeInfo(makeConstList([]), H.findType("JSArray<Null>"));
  87363. C.List_empty11 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_Statement);
  87364. C.List_empty5 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_Value);
  87365. C.List_empty16 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_Value_2);
  87366. C.List_empty1 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_int);
  87367. C.List_empty22 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_dynamic);
  87368. C.List_gRj = H.setRuntimeTypeInfo(makeConstList([0, 0, 32722, 12287, 65534, 34815, 65534, 18431]), type$.JSArray_int);
  87369. C.List_nxB = H.setRuntimeTypeInfo(makeConstList([0, 0, 24576, 1023, 65534, 34815, 65534, 18431]), type$.JSArray_int);
  87370. C.List_qFt = H.setRuntimeTypeInfo(makeConstList([0, 0, 27858, 1023, 65534, 51199, 65535, 32767]), type$.JSArray_int);
  87371. C.List_qNA = H.setRuntimeTypeInfo(makeConstList([0, 0, 32754, 11263, 65534, 34815, 65534, 18431]), type$.JSArray_int);
  87372. C.List_qg40 = H.setRuntimeTypeInfo(makeConstList([0, 0, 32722, 12287, 65535, 34815, 65534, 18431]), type$.JSArray_int);
  87373. C.List_qg4 = H.setRuntimeTypeInfo(makeConstList([0, 0, 65490, 12287, 65535, 34815, 65534, 18431]), type$.JSArray_int);
  87374. C.Map_empty1 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String,AstNode>"));
  87375. C.Map_empty7 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String,AstNode0>"));
  87376. C.Map_empty3 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String,Expression>"));
  87377. C.Map_empty9 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String,Expression0>"));
  87378. C.Map_empty4 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String,Module<AsyncCallable>>"));
  87379. C.Map_empty0 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String,Module<Callable>>"));
  87380. C.Map_empty11 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String,Module0<AsyncCallable0>>"));
  87381. C.Map_empty6 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String,Module0<Callable0>>"));
  87382. C.Map_empty = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String,SourceFile>"));
  87383. C.Map_empty5 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String,String>"));
  87384. C.Map_empty2 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String,Value>"));
  87385. C.Map_empty8 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String,Value0>"));
  87386. C.List_empty24 = H.setRuntimeTypeInfo(makeConstList([]), H.findType("JSArray<Symbol0>"));
  87387. C.Map_empty10 = new H.ConstantStringMap(0, {}, C.List_empty24, H.findType("ConstantStringMap<Symbol0,@>"));
  87388. C.OptionType_YwU = new G.OptionType("OptionType.single");
  87389. C.OptionType_nMZ = new G.OptionType("OptionType.flag");
  87390. C.OptionType_qyr = new G.OptionType("OptionType.multiple");
  87391. C.OutputStyle_compressed = new N.OutputStyle("compressed");
  87392. C.OutputStyle_compressed0 = new N.OutputStyle0("compressed");
  87393. C.OutputStyle_expanded0 = new N.OutputStyle("expanded");
  87394. C.OutputStyle_expanded = new N.OutputStyle0("expanded");
  87395. C.SassBoolean_false0 = new Z.SassBoolean(false);
  87396. C.SassBoolean_false = new Z.SassBoolean0(false);
  87397. C.SassBoolean_true0 = new Z.SassBoolean(true);
  87398. C.SassBoolean_true = new Z.SassBoolean0(true);
  87399. C.SassList_lmy = new D.SassList(C.List_empty5, C.ListSeparator_comma, false);
  87400. C.SassList_lmy0 = new D.SassList0(C.List_empty16, C.ListSeparator_comma0, false);
  87401. C.Map_empty14 = new H.ConstantStringMap(0, {}, C.List_empty5, H.findType("ConstantStringMap<Value,Value>"));
  87402. C.SassMap_Map_empty = new A.SassMap(C.Map_empty14);
  87403. C.Map_empty15 = new H.ConstantStringMap(0, {}, C.List_empty16, H.findType("ConstantStringMap<Value0,Value0>"));
  87404. C.SassMap_Map_empty0 = new A.SassMap0(C.Map_empty15);
  87405. C.List_empty25 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_Module_AsyncCallable);
  87406. C.Map_empty16 = new H.ConstantStringMap(0, {}, C.List_empty25, H.findType("ConstantStringMap<Module<AsyncCallable>,Null>"));
  87407. C.Set_empty0 = new P._UnmodifiableSet(C.Map_empty16, H.findType("_UnmodifiableSet<Module<AsyncCallable>>"));
  87408. C.List_empty26 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_Module_Callable);
  87409. C.Map_empty17 = new H.ConstantStringMap(0, {}, C.List_empty26, H.findType("ConstantStringMap<Module<Callable>,Null>"));
  87410. C.Set_empty = new P._UnmodifiableSet(C.Map_empty17, H.findType("_UnmodifiableSet<Module<Callable>>"));
  87411. C.List_empty27 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_Module_AsyncCallable_2);
  87412. C.Map_empty18 = new H.ConstantStringMap(0, {}, C.List_empty27, H.findType("ConstantStringMap<Module0<AsyncCallable0>,Null>"));
  87413. C.Set_empty3 = new P._UnmodifiableSet(C.Map_empty18, H.findType("_UnmodifiableSet<Module0<AsyncCallable0>>"));
  87414. C.List_empty28 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_Module_Callable_2);
  87415. C.Map_empty19 = new H.ConstantStringMap(0, {}, C.List_empty28, H.findType("ConstantStringMap<Module0<Callable0>,Null>"));
  87416. C.Set_empty2 = new P._UnmodifiableSet(C.Map_empty19, H.findType("_UnmodifiableSet<Module0<Callable0>>"));
  87417. C.List_empty29 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_StylesheetNode);
  87418. C.Map_empty20 = new H.ConstantStringMap(0, {}, C.List_empty29, H.findType("ConstantStringMap<StylesheetNode,Null>"));
  87419. C.Set_empty1 = new P._UnmodifiableSet(C.Map_empty20, H.findType("_UnmodifiableSet<StylesheetNode>"));
  87420. C.StderrLogger_false = new S.StderrLogger(false);
  87421. C.Symbol__warn = new H.Symbol("_warn");
  87422. C.Symbol_call = new H.Symbol("call");
  87423. C.Syntax_CSS = new M.Syntax("CSS");
  87424. C.Syntax_CSS0 = new M.Syntax0("CSS");
  87425. C.Syntax_SCSS = new M.Syntax("SCSS");
  87426. C.Syntax_SCSS0 = new M.Syntax0("SCSS");
  87427. C.Syntax_Sass = new M.Syntax("Sass");
  87428. C.Syntax_Sass0 = new M.Syntax0("Sass");
  87429. C.List_empty30 = H.setRuntimeTypeInfo(makeConstList([]), H.findType("JSArray<CssValue<SelectorList>>"));
  87430. C.Map_empty21 = new H.ConstantStringMap(0, {}, C.List_empty30, H.findType("ConstantStringMap<CssValue<SelectorList>,ModifiableCssValue<SelectorList>>"));
  87431. C.Tuple2_EmptyExtender_Map_empty = new S.Tuple2(C.C_EmptyExtender, C.Map_empty21, type$.Tuple2_of_Extender_and_Map_of_CssValue_SelectorList_and_ModifiableCssValue_SelectorList);
  87432. C.List_empty31 = H.setRuntimeTypeInfo(makeConstList([]), H.findType("JSArray<CssValue0<SelectorList0>>"));
  87433. C.Map_empty22 = new H.ConstantStringMap(0, {}, C.List_empty31, H.findType("ConstantStringMap<CssValue0<SelectorList0>,ModifiableCssValue0<SelectorList0>>"));
  87434. C.Tuple2_EmptyExtender_Map_empty0 = new S.Tuple2(C.C_EmptyExtender0, C.Map_empty22, type$.Tuple2_of_Extender_and_Map_of_CssValue_SelectorList_and_ModifiableCssValue_SelectorList_2);
  87435. C.UnaryOperator_U4G = new X.UnaryOperator("minus", "-");
  87436. C.UnaryOperator_U4G0 = new X.UnaryOperator0("minus", "-");
  87437. C.UnaryOperator_j2w = new X.UnaryOperator("plus", "+");
  87438. C.UnaryOperator_j2w0 = new X.UnaryOperator0("plus", "+");
  87439. C.UnaryOperator_not_not = new X.UnaryOperator("not", "not");
  87440. C.UnaryOperator_not_not0 = new X.UnaryOperator0("not", "not");
  87441. C.UnaryOperator_zDx = new X.UnaryOperator("divide", "/");
  87442. C.UnaryOperator_zDx0 = new X.UnaryOperator0("divide", "/");
  87443. C._IterationMarker_null_2 = new P._IterationMarker(null, 2);
  87444. C._PathDirection_8Gl = new M._PathDirection("at root");
  87445. C._PathDirection_988 = new M._PathDirection("below root");
  87446. C._PathDirection_FIw = new M._PathDirection("reaches root");
  87447. C._PathDirection_ZGD = new M._PathDirection("above root");
  87448. C._PathRelation_different = new M._PathRelation("different");
  87449. C._PathRelation_equal = new M._PathRelation("equal");
  87450. C._PathRelation_inconclusive = new M._PathRelation("inconclusive");
  87451. C._PathRelation_within = new M._PathRelation("within");
  87452. C._RegisterBinaryZoneFunction_kGu = new P._RegisterBinaryZoneFunction(C.C__RootZone, P.async___rootRegisterBinaryCallback$closure());
  87453. C._RegisterNullaryZoneFunction__RootZone__rootRegisterCallback = new P._RegisterNullaryZoneFunction(C.C__RootZone, P.async___rootRegisterCallback$closure());
  87454. C._RegisterUnaryZoneFunction_Bqo = new P._RegisterUnaryZoneFunction(C.C__RootZone, P.async___rootRegisterUnaryCallback$closure());
  87455. C._RunBinaryZoneFunction__RootZone__rootRunBinary = new P._RunBinaryZoneFunction(C.C__RootZone, P.async___rootRunBinary$closure());
  87456. C._RunNullaryZoneFunction__RootZone__rootRun = new P._RunNullaryZoneFunction(C.C__RootZone, P.async___rootRun$closure());
  87457. C._RunUnaryZoneFunction__RootZone__rootRunUnary = new P._RunUnaryZoneFunction(C.C__RootZone, P.async___rootRunUnary$closure());
  87458. C._SingletonCssMediaQueryMergeResult_empty = new F._SingletonCssMediaQueryMergeResult("empty");
  87459. C._SingletonCssMediaQueryMergeResult_empty0 = new F._SingletonCssMediaQueryMergeResult0("empty");
  87460. C._SingletonCssMediaQueryMergeResult_unrepresentable = new F._SingletonCssMediaQueryMergeResult("unrepresentable");
  87461. C._SingletonCssMediaQueryMergeResult_unrepresentable0 = new F._SingletonCssMediaQueryMergeResult0("unrepresentable");
  87462. C._StreamGroupState_canceled = new L._StreamGroupState("canceled");
  87463. C._StreamGroupState_dormant = new L._StreamGroupState("dormant");
  87464. C._StreamGroupState_listening = new L._StreamGroupState("listening");
  87465. C._StreamGroupState_paused = new L._StreamGroupState("paused");
  87466. C._StringStackTrace_3uE = new P._StringStackTrace("");
  87467. C._ZoneFunction_3bB = new P._ZoneFunction(C.C__RootZone, P.async___rootCreatePeriodicTimer$closure());
  87468. C._ZoneFunction_NMc = new P._ZoneFunction(C.C__RootZone, P.async___rootHandleUncaughtError$closure());
  87469. C._ZoneFunction__RootZone__rootCreateTimer = new P._ZoneFunction(C.C__RootZone, P.async___rootCreateTimer$closure());
  87470. C._ZoneFunction__RootZone__rootErrorCallback = new P._ZoneFunction(C.C__RootZone, P.async___rootErrorCallback$closure());
  87471. C._ZoneFunction__RootZone__rootFork = new P._ZoneFunction(C.C__RootZone, P.async___rootFork$closure());
  87472. C._ZoneFunction__RootZone__rootPrint = new P._ZoneFunction(C.C__RootZone, P.async___rootPrint$closure());
  87473. C._ZoneFunction__RootZone__rootScheduleMicrotask = new P._ZoneFunction(C.C__RootZone, P.async___rootScheduleMicrotask$closure());
  87474. C._ZoneSpecification_ALf = new P._ZoneSpecification(null, null, null, null, null, null, null, null, null, null, null, null, null);
  87475. })();
  87476. (function staticFields() {
  87477. $.printToZone = null;
  87478. $.Closure_functionCounter = 0;
  87479. $.BoundClosure_selfFieldNameCache = null;
  87480. $.BoundClosure_receiverFieldNameCache = null;
  87481. $.getTagFunction = null;
  87482. $.alternateTagFunction = null;
  87483. $.prototypeForTagFunction = null;
  87484. $.dispatchRecordsForInstanceTags = null;
  87485. $.interceptorsForUncacheableTags = null;
  87486. $.initNativeDispatchFlag = null;
  87487. $._nextCallback = null;
  87488. $._lastCallback = null;
  87489. $._lastPriorityCallback = null;
  87490. $._isInCallbackLoop = false;
  87491. $.Zone__current = C.C__RootZone;
  87492. $._RootZone__rootDelegate = null;
  87493. $._toStringVisiting = [];
  87494. $._currentUriBase = null;
  87495. $._current = null;
  87496. $._subselectorPseudos = P.LinkedHashSet_LinkedHashSet$_literal(["matches", "any", "nth-child", "nth-last-child"], type$.String);
  87497. $._features = P.LinkedHashSet_LinkedHashSet$_literal(["global-variable-shadowing", "extend-selector-pseudoclass", "units-level-3", "at-error", "custom-property"], type$.String);
  87498. $._inImportRule = false;
  87499. $._selectorPseudoClasses = P.LinkedHashSet_LinkedHashSet$_literal(["not", "matches", "current", "any", "has", "host", "host-context"], type$.String);
  87500. $._selectorPseudoElements = P.LinkedHashSet_LinkedHashSet$_literal(["slotted"], type$.String);
  87501. $._glyphs = C.C_UnicodeGlyphSet;
  87502. $._subselectorPseudos0 = P.LinkedHashSet_LinkedHashSet$_literal(["matches", "any", "nth-child", "nth-last-child"], type$.String);
  87503. $._features0 = P.LinkedHashSet_LinkedHashSet$_literal(["global-variable-shadowing", "extend-selector-pseudoclass", "units-level-3", "at-error", "custom-property"], type$.String);
  87504. $._selectorPseudoClasses0 = P.LinkedHashSet_LinkedHashSet$_literal(["not", "matches", "current", "any", "has", "host", "host-context"], type$.String);
  87505. $._selectorPseudoElements0 = P.LinkedHashSet_LinkedHashSet$_literal(["slotted"], type$.String);
  87506. $._inImportRule0 = false;
  87507. })();
  87508. (function lazyInitializers() {
  87509. var _lazy = hunkHelpers.lazy;
  87510. _lazy($, "DART_CLOSURE_PROPERTY_NAME", "$get$DART_CLOSURE_PROPERTY_NAME", function() {
  87511. return H.getIsolateAffinityTag("_$dart_dartClosure");
  87512. });
  87513. _lazy($, "JS_INTEROP_INTERCEPTOR_TAG", "$get$JS_INTEROP_INTERCEPTOR_TAG", function() {
  87514. return H.getIsolateAffinityTag("_$dart_js");
  87515. });
  87516. _lazy($, "TypeErrorDecoder_noSuchMethodPattern", "$get$TypeErrorDecoder_noSuchMethodPattern", function() {
  87517. return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn({
  87518. toString: function() {
  87519. return "$receiver$";
  87520. }
  87521. }));
  87522. });
  87523. _lazy($, "TypeErrorDecoder_notClosurePattern", "$get$TypeErrorDecoder_notClosurePattern", function() {
  87524. return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn({$method$: null,
  87525. toString: function() {
  87526. return "$receiver$";
  87527. }
  87528. }));
  87529. });
  87530. _lazy($, "TypeErrorDecoder_nullCallPattern", "$get$TypeErrorDecoder_nullCallPattern", function() {
  87531. return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn(null));
  87532. });
  87533. _lazy($, "TypeErrorDecoder_nullLiteralCallPattern", "$get$TypeErrorDecoder_nullLiteralCallPattern", function() {
  87534. return H.TypeErrorDecoder_extractPattern(function() {
  87535. var $argumentsExpr$ = '$arguments$';
  87536. try {
  87537. null.$method$($argumentsExpr$);
  87538. } catch (e) {
  87539. return e.message;
  87540. }
  87541. }());
  87542. });
  87543. _lazy($, "TypeErrorDecoder_undefinedCallPattern", "$get$TypeErrorDecoder_undefinedCallPattern", function() {
  87544. return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn(void 0));
  87545. });
  87546. _lazy($, "TypeErrorDecoder_undefinedLiteralCallPattern", "$get$TypeErrorDecoder_undefinedLiteralCallPattern", function() {
  87547. return H.TypeErrorDecoder_extractPattern(function() {
  87548. var $argumentsExpr$ = '$arguments$';
  87549. try {
  87550. (void 0).$method$($argumentsExpr$);
  87551. } catch (e) {
  87552. return e.message;
  87553. }
  87554. }());
  87555. });
  87556. _lazy($, "TypeErrorDecoder_nullPropertyPattern", "$get$TypeErrorDecoder_nullPropertyPattern", function() {
  87557. return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokePropertyErrorOn(null));
  87558. });
  87559. _lazy($, "TypeErrorDecoder_nullLiteralPropertyPattern", "$get$TypeErrorDecoder_nullLiteralPropertyPattern", function() {
  87560. return H.TypeErrorDecoder_extractPattern(function() {
  87561. try {
  87562. null.$method$;
  87563. } catch (e) {
  87564. return e.message;
  87565. }
  87566. }());
  87567. });
  87568. _lazy($, "TypeErrorDecoder_undefinedPropertyPattern", "$get$TypeErrorDecoder_undefinedPropertyPattern", function() {
  87569. return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokePropertyErrorOn(void 0));
  87570. });
  87571. _lazy($, "TypeErrorDecoder_undefinedLiteralPropertyPattern", "$get$TypeErrorDecoder_undefinedLiteralPropertyPattern", function() {
  87572. return H.TypeErrorDecoder_extractPattern(function() {
  87573. try {
  87574. (void 0).$method$;
  87575. } catch (e) {
  87576. return e.message;
  87577. }
  87578. }());
  87579. });
  87580. _lazy($, "_AsyncRun__scheduleImmediateClosure", "$get$_AsyncRun__scheduleImmediateClosure", function() {
  87581. return P._AsyncRun__initializeScheduleImmediate();
  87582. });
  87583. _lazy($, "Future__nullFuture", "$get$Future__nullFuture", function() {
  87584. return P._Future$zoneValue(null, C.C__RootZone, type$.Null);
  87585. });
  87586. _lazy($, "Future__falseFuture", "$get$Future__falseFuture", function() {
  87587. return P._Future$zoneValue(false, C.C__RootZone, type$.bool);
  87588. });
  87589. _lazy($, "_RootZone__rootMap", "$get$_RootZone__rootMap", function() {
  87590. var t1 = type$.dynamic;
  87591. return P.HashMap_HashMap(t1, t1);
  87592. });
  87593. _lazy($, "Utf8Decoder__decoder", "$get$Utf8Decoder__decoder", function() {
  87594. return P.Utf8Decoder__makeDecoder();
  87595. });
  87596. _lazy($, "_Base64Decoder__inverseAlphabet", "$get$_Base64Decoder__inverseAlphabet", function() {
  87597. return H.NativeInt8List__create1(H._ensureNativeList(H.setRuntimeTypeInfo([-2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -1, -2, -2, -2, -2, -2, 62, -2, 62, -2, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -2, -2, -2, -1, -2, -2, -2, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -2, -2, -2, -2, 63, -2, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -2, -2, -2, -2, -2], type$.JSArray_int)));
  87598. });
  87599. _lazy($, "_Uri__isWindowsCached", "$get$_Uri__isWindowsCached", function() {
  87600. return typeof process != "undefined" && Object.prototype.toString.call(process) == "[object process]" && process.platform == "win32";
  87601. });
  87602. _lazy($, "_Uri__needsNoEncoding", "$get$_Uri__needsNoEncoding", function() {
  87603. return P.RegExp_RegExp("^[\\-\\.0-9A-Z_a-z~]*$", false);
  87604. });
  87605. _lazy($, "_hasErrorStackProperty", "$get$_hasErrorStackProperty", function() {
  87606. return new Error().stack != void 0;
  87607. });
  87608. _lazy($, "_scannerTables", "$get$_scannerTables", function() {
  87609. return P._createTables();
  87610. });
  87611. _lazy($, "Option__invalidChars", "$get$Option__invalidChars", function() {
  87612. return P.RegExp_RegExp("[ \\t\\r\\n\"'\\\\/]", false);
  87613. });
  87614. _lazy($, "alwaysValid", "$get$alwaysValid", function() {
  87615. return new Q.closure106();
  87616. });
  87617. _lazy($, "readline", "$get$readline", function() {
  87618. return self.readline;
  87619. });
  87620. _lazy($, "windows", "$get$windows", function() {
  87621. return M.Context_Context($.$get$Style_windows());
  87622. });
  87623. _lazy($, "url", "$get$url", function() {
  87624. return M.Context_Context($.$get$Style_url());
  87625. });
  87626. _lazy($, "context", "$get$context", function() {
  87627. return new M.Context($.$get$Style_platform(), null);
  87628. });
  87629. _lazy($, "Style_posix", "$get$Style_posix", function() {
  87630. return new E.PosixStyle(P.RegExp_RegExp("/", false), P.RegExp_RegExp("[^/]$", false), P.RegExp_RegExp("^/", false));
  87631. });
  87632. _lazy($, "Style_windows", "$get$Style_windows", function() {
  87633. return new L.WindowsStyle(P.RegExp_RegExp("[/\\\\]", false), P.RegExp_RegExp("[^/\\\\]$", false), P.RegExp_RegExp("^(\\\\\\\\[^\\\\]+\\\\[^\\\\/]+|[a-zA-Z]:[/\\\\])", false), P.RegExp_RegExp("^[/\\\\](?![/\\\\])", false));
  87634. });
  87635. _lazy($, "Style_url", "$get$Style_url", function() {
  87636. return new F.UrlStyle(P.RegExp_RegExp("/", false), P.RegExp_RegExp("(^[a-zA-Z][-+.a-zA-Z\\d]*://|[^/])$", false), P.RegExp_RegExp("[a-zA-Z][-+.a-zA-Z\\d]*://[^/]*", false), P.RegExp_RegExp("^/", false));
  87637. });
  87638. _lazy($, "Style_platform", "$get$Style_platform", function() {
  87639. return O.Style__getPlatformStyle();
  87640. });
  87641. _lazy($, "IfExpression_declaration", "$get$IfExpression_declaration", function() {
  87642. return B.ArgumentDeclaration_ArgumentDeclaration$parse("@function if($condition, $if-true, $if-false) {", null);
  87643. });
  87644. _lazy($, "colorsByName", "$get$colorsByName", function() {
  87645. var _null = null;
  87646. return P.LinkedHashMap_LinkedHashMap$_literal(["yellowgreen", K.SassColor$rgb(154, 205, 50, _null, _null), "yellow", K.SassColor$rgb(255, 255, 0, _null, _null), "whitesmoke", K.SassColor$rgb(245, 245, 245, _null, _null), "white", K.SassColor$rgb(255, 255, 255, _null, _null), "wheat", K.SassColor$rgb(245, 222, 179, _null, _null), "violet", K.SassColor$rgb(238, 130, 238, _null, _null), "turquoise", K.SassColor$rgb(64, 224, 208, _null, _null), "transparent", K.SassColor$rgb(0, 0, 0, 0, _null), "tomato", K.SassColor$rgb(255, 99, 71, _null, _null), "thistle", K.SassColor$rgb(216, 191, 216, _null, _null), "teal", K.SassColor$rgb(0, 128, 128, _null, _null), "tan", K.SassColor$rgb(210, 180, 140, _null, _null), "steelblue", K.SassColor$rgb(70, 130, 180, _null, _null), "springgreen", K.SassColor$rgb(0, 255, 127, _null, _null), "snow", K.SassColor$rgb(255, 250, 250, _null, _null), "slategrey", K.SassColor$rgb(112, 128, 144, _null, _null), "slategray", K.SassColor$rgb(112, 128, 144, _null, _null), "slateblue", K.SassColor$rgb(106, 90, 205, _null, _null), "skyblue", K.SassColor$rgb(135, 206, 235, _null, _null), "silver", K.SassColor$rgb(192, 192, 192, _null, _null), "sienna", K.SassColor$rgb(160, 82, 45, _null, _null), "seashell", K.SassColor$rgb(255, 245, 238, _null, _null), "seagreen", K.SassColor$rgb(46, 139, 87, _null, _null), "sandybrown", K.SassColor$rgb(244, 164, 96, _null, _null), "salmon", K.SassColor$rgb(250, 128, 114, _null, _null), "saddlebrown", K.SassColor$rgb(139, 69, 19, _null, _null), "royalblue", K.SassColor$rgb(65, 105, 225, _null, _null), "rosybrown", K.SassColor$rgb(188, 143, 143, _null, _null), "red", K.SassColor$rgb(255, 0, 0, _null, _null), "rebeccapurple", K.SassColor$rgb(102, 51, 153, _null, _null), "purple", K.SassColor$rgb(128, 0, 128, _null, _null), "powderblue", K.SassColor$rgb(176, 224, 230, _null, _null), "plum", K.SassColor$rgb(221, 160, 221, _null, _null), "pink", K.SassColor$rgb(255, 192, 203, _null, _null), "peru", K.SassColor$rgb(205, 133, 63, _null, _null), "peachpuff", K.SassColor$rgb(255, 218, 185, _null, _null), "papayawhip", K.SassColor$rgb(255, 239, 213, _null, _null), "palevioletred", K.SassColor$rgb(219, 112, 147, _null, _null), "paleturquoise", K.SassColor$rgb(175, 238, 238, _null, _null), "palegreen", K.SassColor$rgb(152, 251, 152, _null, _null), "palegoldenrod", K.SassColor$rgb(238, 232, 170, _null, _null), "orchid", K.SassColor$rgb(218, 112, 214, _null, _null), "orangered", K.SassColor$rgb(255, 69, 0, _null, _null), "orange", K.SassColor$rgb(255, 165, 0, _null, _null), "olivedrab", K.SassColor$rgb(107, 142, 35, _null, _null), "olive", K.SassColor$rgb(128, 128, 0, _null, _null), "oldlace", K.SassColor$rgb(253, 245, 230, _null, _null), "navy", K.SassColor$rgb(0, 0, 128, _null, _null), "navajowhite", K.SassColor$rgb(255, 222, 173, _null, _null), "moccasin", K.SassColor$rgb(255, 228, 181, _null, _null), "mistyrose", K.SassColor$rgb(255, 228, 225, _null, _null), "mintcream", K.SassColor$rgb(245, 255, 250, _null, _null), "midnightblue", K.SassColor$rgb(25, 25, 112, _null, _null), "mediumvioletred", K.SassColor$rgb(199, 21, 133, _null, _null), "mediumturquoise", K.SassColor$rgb(72, 209, 204, _null, _null), "mediumspringgreen", K.SassColor$rgb(0, 250, 154, _null, _null), "mediumslateblue", K.SassColor$rgb(123, 104, 238, _null, _null), "mediumseagreen", K.SassColor$rgb(60, 179, 113, _null, _null), "mediumpurple", K.SassColor$rgb(147, 112, 219, _null, _null), "mediumorchid", K.SassColor$rgb(186, 85, 211, _null, _null), "mediumblue", K.SassColor$rgb(0, 0, 205, _null, _null), "mediumaquamarine", K.SassColor$rgb(102, 205, 170, _null, _null), "maroon", K.SassColor$rgb(128, 0, 0, _null, _null), "magenta", K.SassColor$rgb(255, 0, 255, _null, _null), "linen", K.SassColor$rgb(250, 240, 230, _null, _null), "limegreen", K.SassColor$rgb(50, 205, 50, _null, _null), "lime", K.SassColor$rgb(0, 255, 0, _null, _null), "lightyellow", K.SassColor$rgb(255, 255, 224, _null, _null), "lightsteelblue", K.SassColor$rgb(176, 196, 222, _null, _null), "lightslategrey", K.SassColor$rgb(119, 136, 153, _null, _null), "lightslategray", K.SassColor$rgb(119, 136, 153, _null, _null), "lightskyblue", K.SassColor$rgb(135, 206, 250, _null, _null), "lightseagreen", K.SassColor$rgb(32, 178, 170, _null, _null), "lightsalmon", K.SassColor$rgb(255, 160, 122, _null, _null), "lightpink", K.SassColor$rgb(255, 182, 193, _null, _null), "lightgrey", K.SassColor$rgb(211, 211, 211, _null, _null), "lightgreen", K.SassColor$rgb(144, 238, 144, _null, _null), "lightgray", K.SassColor$rgb(211, 211, 211, _null, _null), "lightgoldenrodyellow", K.SassColor$rgb(250, 250, 210, _null, _null), "lightcyan", K.SassColor$rgb(224, 255, 255, _null, _null), "lightcoral", K.SassColor$rgb(240, 128, 128, _null, _null), "lightblue", K.SassColor$rgb(173, 216, 230, _null, _null), "lemonchiffon", K.SassColor$rgb(255, 250, 205, _null, _null), "lawngreen", K.SassColor$rgb(124, 252, 0, _null, _null), "lavenderblush", K.SassColor$rgb(255, 240, 245, _null, _null), "lavender", K.SassColor$rgb(230, 230, 250, _null, _null), "khaki", K.SassColor$rgb(240, 230, 140, _null, _null), "ivory", K.SassColor$rgb(255, 255, 240, _null, _null), "indigo", K.SassColor$rgb(75, 0, 130, _null, _null), "indianred", K.SassColor$rgb(205, 92, 92, _null, _null), "hotpink", K.SassColor$rgb(255, 105, 180, _null, _null), "honeydew", K.SassColor$rgb(240, 255, 240, _null, _null), "grey", K.SassColor$rgb(128, 128, 128, _null, _null), "greenyellow", K.SassColor$rgb(173, 255, 47, _null, _null), "green", K.SassColor$rgb(0, 128, 0, _null, _null), "gray", K.SassColor$rgb(128, 128, 128, _null, _null), "goldenrod", K.SassColor$rgb(218, 165, 32, _null, _null), "gold", K.SassColor$rgb(255, 215, 0, _null, _null), "ghostwhite", K.SassColor$rgb(248, 248, 255, _null, _null), "gainsboro", K.SassColor$rgb(220, 220, 220, _null, _null), "fuchsia", K.SassColor$rgb(255, 0, 255, _null, _null), "forestgreen", K.SassColor$rgb(34, 139, 34, _null, _null), "floralwhite", K.SassColor$rgb(255, 250, 240, _null, _null), "firebrick", K.SassColor$rgb(178, 34, 34, _null, _null), "dodgerblue", K.SassColor$rgb(30, 144, 255, _null, _null), "dimgrey", K.SassColor$rgb(105, 105, 105, _null, _null), "dimgray", K.SassColor$rgb(105, 105, 105, _null, _null), "deepskyblue", K.SassColor$rgb(0, 191, 255, _null, _null), "deeppink", K.SassColor$rgb(255, 20, 147, _null, _null), "darkviolet", K.SassColor$rgb(148, 0, 211, _null, _null), "darkturquoise", K.SassColor$rgb(0, 206, 209, _null, _null), "darkslategrey", K.SassColor$rgb(47, 79, 79, _null, _null), "darkslategray", K.SassColor$rgb(47, 79, 79, _null, _null), "darkslateblue", K.SassColor$rgb(72, 61, 139, _null, _null), "darkseagreen", K.SassColor$rgb(143, 188, 143, _null, _null), "darksalmon", K.SassColor$rgb(233, 150, 122, _null, _null), "darkred", K.SassColor$rgb(139, 0, 0, _null, _null), "darkorchid", K.SassColor$rgb(153, 50, 204, _null, _null), "darkorange", K.SassColor$rgb(255, 140, 0, _null, _null), "darkolivegreen", K.SassColor$rgb(85, 107, 47, _null, _null), "darkmagenta", K.SassColor$rgb(139, 0, 139, _null, _null), "darkkhaki", K.SassColor$rgb(189, 183, 107, _null, _null), "darkgrey", K.SassColor$rgb(169, 169, 169, _null, _null), "darkgreen", K.SassColor$rgb(0, 100, 0, _null, _null), "darkgray", K.SassColor$rgb(169, 169, 169, _null, _null), "darkgoldenrod", K.SassColor$rgb(184, 134, 11, _null, _null), "darkcyan", K.SassColor$rgb(0, 139, 139, _null, _null), "darkblue", K.SassColor$rgb(0, 0, 139, _null, _null), "cyan", K.SassColor$rgb(0, 255, 255, _null, _null), "crimson", K.SassColor$rgb(220, 20, 60, _null, _null), "cornsilk", K.SassColor$rgb(255, 248, 220, _null, _null), "cornflowerblue", K.SassColor$rgb(100, 149, 237, _null, _null), "coral", K.SassColor$rgb(255, 127, 80, _null, _null), "chocolate", K.SassColor$rgb(210, 105, 30, _null, _null), "chartreuse", K.SassColor$rgb(127, 255, 0, _null, _null), "cadetblue", K.SassColor$rgb(95, 158, 160, _null, _null), "burlywood", K.SassColor$rgb(222, 184, 135, _null, _null), "brown", K.SassColor$rgb(165, 42, 42, _null, _null), "blueviolet", K.SassColor$rgb(138, 43, 226, _null, _null), "blue", K.SassColor$rgb(0, 0, 255, _null, _null), "blanchedalmond", K.SassColor$rgb(255, 235, 205, _null, _null), "black", K.SassColor$rgb(0, 0, 0, _null, _null), "bisque", K.SassColor$rgb(255, 228, 196, _null, _null), "beige", K.SassColor$rgb(245, 245, 220, _null, _null), "azure", K.SassColor$rgb(240, 255, 255, _null, _null), "aquamarine", K.SassColor$rgb(127, 255, 212, _null, _null), "aqua", K.SassColor$rgb(0, 255, 255, _null, _null), "antiquewhite", K.SassColor$rgb(250, 235, 215, _null, _null), "aliceblue", K.SassColor$rgb(240, 248, 255, _null, _null)], type$.String, type$.SassColor);
  87647. });
  87648. _lazy($, "namesByColor", "$get$namesByColor", function() {
  87649. var t1 = type$.String,
  87650. t2 = type$.SassColor;
  87651. return Y.mapMap($.$get$colorsByName(), new X.closure70(), new X.closure71(), t1, t2, t2, t1);
  87652. });
  87653. _lazy($, "ExecutableOptions__separatorBar", "$get$ExecutableOptions__separatorBar", function() {
  87654. return B.isWindows() ? "=" : "\u2501";
  87655. });
  87656. _lazy($, "ExecutableOptions__parser", "$get$ExecutableOptions__parser", function() {
  87657. return new B.ExecutableOptions_closure().call$0();
  87658. });
  87659. _lazy($, "globalFunctions", "$get$globalFunctions", function() {
  87660. var t2,
  87661. t1 = H.setRuntimeTypeInfo([], type$.JSArray_BuiltInCallable);
  87662. for (t2 = $.$get$global0(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  87663. t1.push(t2.__internal$_current);
  87664. for (t2 = $.$get$global1(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  87665. t1.push(t2.__internal$_current);
  87666. for (t2 = $.$get$global2(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  87667. t1.push(t2.__internal$_current);
  87668. for (t2 = $.$get$global3(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  87669. t1.push(t2.__internal$_current);
  87670. for (t2 = $.$get$global4(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  87671. t1.push(t2.__internal$_current);
  87672. for (t2 = $.$get$global5(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  87673. t1.push(t2.__internal$_current);
  87674. for (t2 = $.$get$global(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  87675. t1.push(t2.__internal$_current);
  87676. t1.push(Q.BuiltInCallable$function("if", "$condition, $if-true, $if-false", new Y.closure(), null));
  87677. return P.UnmodifiableListView$(t1, type$.BuiltInCallable);
  87678. });
  87679. _lazy($, "coreModules", "$get$coreModules", function() {
  87680. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$get$module(), $.$get$module0(), $.$get$module1(), $.$get$module2(), $.$get$module3(), $.$get$module4()], type$.JSArray_BuiltInModule_BuiltInCallable), H.findType("BuiltInModule<BuiltInCallable>"));
  87681. });
  87682. _lazy($, "_microsoftFilterStart", "$get$_microsoftFilterStart", function() {
  87683. return P.RegExp_RegExp("^[a-zA-Z]+\\s*=", false);
  87684. });
  87685. _lazy($, "global", "$get$global0", function() {
  87686. var _s27_ = "$red, $green, $blue, $alpha",
  87687. _s19_ = "$red, $green, $blue",
  87688. _s37_ = "$hue, $saturation, $lightness, $alpha",
  87689. _s29_ = "$hue, $saturation, $lightness",
  87690. _s17_ = "$hue, $saturation",
  87691. _s15_ = "$color, $amount",
  87692. t1 = type$.String,
  87693. t2 = H.findType("Value(List<Value>)");
  87694. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$get$_red(), $.$get$_green(), $.$get$_blue(), $.$get$_mix(), Q.BuiltInCallable$overloadedFunction("rgb", P.LinkedHashMap_LinkedHashMap$_literal([_s27_, new K.closure43(), _s19_, new K.closure44(), "$color, $alpha", new K.closure45(), "$channels", new K.closure46()], t1, t2)), Q.BuiltInCallable$overloadedFunction("rgba", P.LinkedHashMap_LinkedHashMap$_literal([_s27_, new K.closure47(), _s19_, new K.closure48(), "$color, $alpha", new K.closure49(), "$channels", new K.closure50()], t1, t2)), K._function4("invert", "$color, $weight: 100%", new K.closure51()), $.$get$_hue(), $.$get$_saturation(), $.$get$_lightness(), $.$get$_complement(), Q.BuiltInCallable$overloadedFunction("hsl", P.LinkedHashMap_LinkedHashMap$_literal([_s37_, new K.closure52(), _s29_, new K.closure53(), _s17_, new K.closure54(), "$channels", new K.closure55()], t1, t2)), Q.BuiltInCallable$overloadedFunction("hsla", P.LinkedHashMap_LinkedHashMap$_literal([_s37_, new K.closure56(), _s29_, new K.closure57(), _s17_, new K.closure58(), "$channels", new K.closure59()], t1, t2)), K._function4("grayscale", "$color", new K.closure60()), K._function4("adjust-hue", "$color, $degrees", new K.closure61()), K._function4("lighten", _s15_, new K.closure62()), K._function4("darken", _s15_, new K.closure63()), Q.BuiltInCallable$overloadedFunction("saturate", P.LinkedHashMap_LinkedHashMap$_literal(["$amount", new K.closure64(), "$color, $amount", new K.closure65()], t1, t2)), K._function4("desaturate", _s15_, new K.closure66()), K._function4("opacify", _s15_, K.color___opacify$closure()), K._function4("fade-in", _s15_, K.color___opacify$closure()), K._function4("transparentize", _s15_, K.color___transparentize$closure()), K._function4("fade-out", _s15_, K.color___transparentize$closure()), Q.BuiltInCallable$overloadedFunction("alpha", P.LinkedHashMap_LinkedHashMap$_literal(["$color", new K.closure67(), "$args...", new K.closure68()], t1, t2)), K._function4("opacity", "$color", new K.closure69()), $.$get$_ieHexStr(), $.$get$_adjust().withName$1("adjust-color"), $.$get$_scale().withName$1("scale-color"), $.$get$_change().withName$1("change-color")], type$.JSArray_BuiltInCallable), type$.BuiltInCallable);
  87695. });
  87696. _lazy($, "module", "$get$module", function() {
  87697. var _s9_ = "lightness",
  87698. _s10_ = "saturation",
  87699. _s5_ = "alpha";
  87700. return Q.BuiltInModule$("color", H.setRuntimeTypeInfo([$.$get$_red(), $.$get$_green(), $.$get$_blue(), $.$get$_mix(), K._function4("invert", "$color, $weight: 100%", new K.closure96()), $.$get$_hue(), $.$get$_saturation(), $.$get$_lightness(), $.$get$_complement(), K._removedColorFunction("adjust-hue", "hue", false), K._removedColorFunction("lighten", _s9_, false), K._removedColorFunction("darken", _s9_, true), K._removedColorFunction("saturate", _s10_, false), K._removedColorFunction("desaturate", _s10_, true), K._function4("grayscale", "$color", new K.closure97()), K._removedColorFunction("opacify", _s5_, false), K._removedColorFunction("fade-in", _s5_, false), K._removedColorFunction("transparentize", _s5_, true), K._removedColorFunction("fade-out", _s5_, true), Q.BuiltInCallable$overloadedFunction(_s5_, P.LinkedHashMap_LinkedHashMap$_literal(["$color", new K.closure98(), "$args...", new K.closure99()], type$.String, H.findType("Value(List<Value>)"))), K._function4("opacity", "$color", new K.closure100()), $.$get$_adjust(), $.$get$_scale(), $.$get$_change(), $.$get$_ieHexStr()], type$.JSArray_BuiltInCallable), null, null, type$.BuiltInCallable);
  87701. });
  87702. _lazy($, "_red", "$get$_red", function() {
  87703. return K._function4("red", "$color", new K.closure83());
  87704. });
  87705. _lazy($, "_green", "$get$_green", function() {
  87706. return K._function4("green", "$color", new K.closure82());
  87707. });
  87708. _lazy($, "_blue", "$get$_blue", function() {
  87709. return K._function4("blue", "$color", new K.closure81());
  87710. });
  87711. _lazy($, "_mix", "$get$_mix", function() {
  87712. return K._function4("mix", "$color1, $color2, $weight: 50%", new K.closure80());
  87713. });
  87714. _lazy($, "_hue", "$get$_hue", function() {
  87715. return K._function4("hue", "$color", new K.closure79());
  87716. });
  87717. _lazy($, "_saturation", "$get$_saturation", function() {
  87718. return K._function4("saturation", "$color", new K.closure78());
  87719. });
  87720. _lazy($, "_lightness", "$get$_lightness", function() {
  87721. return K._function4("lightness", "$color", new K.closure77());
  87722. });
  87723. _lazy($, "_complement", "$get$_complement", function() {
  87724. return K._function4("complement", "$color", new K.closure76());
  87725. });
  87726. _lazy($, "_adjust", "$get$_adjust", function() {
  87727. return K._function4("adjust", "$color, $kwargs...", new K.closure74());
  87728. });
  87729. _lazy($, "_scale", "$get$_scale", function() {
  87730. return K._function4("scale", "$color, $kwargs...", new K.closure73());
  87731. });
  87732. _lazy($, "_change", "$get$_change", function() {
  87733. return K._function4("change", "$color, $kwargs...", new K.closure72());
  87734. });
  87735. _lazy($, "_ieHexStr", "$get$_ieHexStr", function() {
  87736. return K._function4("ie-hex-str", "$color", new K.closure75());
  87737. });
  87738. _lazy($, "global0", "$get$global1", function() {
  87739. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$get$_length0(), $.$get$_nth(), $.$get$_setNth(), $.$get$_join(), $.$get$_append0(), $.$get$_zip(), $.$get$_index0(), $.$get$_isBracketed(), $.$get$_separator().withName$1("list-separator")], type$.JSArray_BuiltInCallable), type$.BuiltInCallable);
  87740. });
  87741. _lazy($, "module0", "$get$module0", function() {
  87742. return Q.BuiltInModule$("list", H.setRuntimeTypeInfo([$.$get$_length0(), $.$get$_nth(), $.$get$_setNth(), $.$get$_join(), $.$get$_append0(), $.$get$_zip(), $.$get$_index0(), $.$get$_isBracketed(), $.$get$_separator()], type$.JSArray_BuiltInCallable), null, null, type$.BuiltInCallable);
  87743. });
  87744. _lazy($, "_length", "$get$_length0", function() {
  87745. return D._function3("length", "$list", new D.closure42());
  87746. });
  87747. _lazy($, "_nth", "$get$_nth", function() {
  87748. return D._function3("nth", "$list, $n", new D.closure41());
  87749. });
  87750. _lazy($, "_setNth", "$get$_setNth", function() {
  87751. return D._function3("set-nth", "$list, $n, $value", new D.closure40());
  87752. });
  87753. _lazy($, "_join", "$get$_join", function() {
  87754. return D._function3("join", "$list1, $list2, $separator: auto, $bracketed: auto", new D.closure39());
  87755. });
  87756. _lazy($, "_append", "$get$_append0", function() {
  87757. return D._function3("append", "$list, $val, $separator: auto", new D.closure38());
  87758. });
  87759. _lazy($, "_zip", "$get$_zip", function() {
  87760. return D._function3("zip", "$lists...", new D.closure37());
  87761. });
  87762. _lazy($, "_index", "$get$_index0", function() {
  87763. return D._function3("index", "$list, $value", new D.closure36());
  87764. });
  87765. _lazy($, "_separator", "$get$_separator", function() {
  87766. return D._function3("separator", "$list", new D.closure34());
  87767. });
  87768. _lazy($, "_isBracketed", "$get$_isBracketed", function() {
  87769. return D._function3("is-bracketed", "$list", new D.closure35());
  87770. });
  87771. _lazy($, "global1", "$get$global2", function() {
  87772. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$get$_get().withName$1("map-get"), $.$get$_merge().withName$1("map-merge"), $.$get$_remove().withName$1("map-remove"), $.$get$_keys().withName$1("map-keys"), $.$get$_values().withName$1("map-values"), $.$get$_hasKey().withName$1("map-has-key")], type$.JSArray_BuiltInCallable), type$.BuiltInCallable);
  87773. });
  87774. _lazy($, "module1", "$get$module1", function() {
  87775. return Q.BuiltInModule$("map", H.setRuntimeTypeInfo([$.$get$_get(), $.$get$_merge(), $.$get$_remove(), $.$get$_keys(), $.$get$_values(), $.$get$_hasKey()], type$.JSArray_BuiltInCallable), null, null, type$.BuiltInCallable);
  87776. });
  87777. _lazy($, "_get", "$get$_get", function() {
  87778. return A._function2("get", "$map, $key", new A.closure33());
  87779. });
  87780. _lazy($, "_merge", "$get$_merge", function() {
  87781. return A._function2("merge", "$map1, $map2", new A.closure32());
  87782. });
  87783. _lazy($, "_remove", "$get$_remove", function() {
  87784. return Q.BuiltInCallable$overloadedFunction("remove", P.LinkedHashMap_LinkedHashMap$_literal(["$map", new A.closure30(), "$map, $key, $keys...", new A.closure31()], type$.String, H.findType("Value(List<Value>)")));
  87785. });
  87786. _lazy($, "_keys", "$get$_keys", function() {
  87787. return A._function2("keys", "$map", new A.closure29());
  87788. });
  87789. _lazy($, "_values", "$get$_values", function() {
  87790. return A._function2("values", "$map", new A.closure28());
  87791. });
  87792. _lazy($, "_hasKey", "$get$_hasKey", function() {
  87793. return A._function2("has-key", "$map, $key", new A.closure27());
  87794. });
  87795. _lazy($, "global2", "$get$global3", function() {
  87796. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$get$_abs(), $.$get$_ceil(), $.$get$_floor(), $.$get$_max(), $.$get$_min(), $.$get$_percentage(), $.$get$_randomFunction(), $.$get$_round(), $.$get$_unit(), $.$get$_compatible().withName$1("comparable"), $.$get$_isUnitless().withName$1("unitless")], type$.JSArray_BuiltInCallable), type$.BuiltInCallable);
  87797. });
  87798. _lazy($, "module2", "$get$module2", function() {
  87799. return Q.BuiltInModule$("math", H.setRuntimeTypeInfo([$.$get$_abs(), $.$get$_acos(), $.$get$_asin(), $.$get$_atan(), $.$get$_atan2(), $.$get$_ceil(), $.$get$_clamp(), $.$get$_cos(), $.$get$_compatible(), $.$get$_floor(), $.$get$_hypot(), $.$get$_isUnitless(), $.$get$_log(), $.$get$_max(), $.$get$_min(), $.$get$_percentage(), $.$get$_pow(), $.$get$_randomFunction(), $.$get$_round(), $.$get$_sin(), $.$get$_sqrt(), $.$get$_tan(), $.$get$_unit()], type$.JSArray_BuiltInCallable), null, P.LinkedHashMap_LinkedHashMap$_literal(["e", T.SassNumber$(2.718281828459045, null), "pi", T.SassNumber$(3.141592653589793, null)], type$.String, type$.Value), type$.BuiltInCallable);
  87800. });
  87801. _lazy($, "_ceil", "$get$_ceil", function() {
  87802. return K._numberFunction("ceil", new K.closure25());
  87803. });
  87804. _lazy($, "_clamp", "$get$_clamp", function() {
  87805. return K._function1("clamp", "$min, $number, $max", new K.closure91());
  87806. });
  87807. _lazy($, "_floor", "$get$_floor", function() {
  87808. return K._numberFunction("floor", new K.closure24());
  87809. });
  87810. _lazy($, "_max", "$get$_max", function() {
  87811. return K._function1("max", "$numbers...", new K.closure23());
  87812. });
  87813. _lazy($, "_min", "$get$_min", function() {
  87814. return K._function1("min", "$numbers...", new K.closure22());
  87815. });
  87816. _lazy($, "_round", "$get$_round", function() {
  87817. return K._numberFunction("round", T.number0__fuzzyRound$closure());
  87818. });
  87819. _lazy($, "_abs", "$get$_abs", function() {
  87820. return K._numberFunction("abs", new K.closure26());
  87821. });
  87822. _lazy($, "_hypot", "$get$_hypot", function() {
  87823. return K._function1("hypot", "$numbers...", new K.closure89());
  87824. });
  87825. _lazy($, "_log", "$get$_log", function() {
  87826. return K._function1("log", "$number, $base: null", new K.closure88());
  87827. });
  87828. _lazy($, "_pow", "$get$_pow", function() {
  87829. return K._function1("pow", "$base, $exponent", new K.closure87());
  87830. });
  87831. _lazy($, "_sqrt", "$get$_sqrt", function() {
  87832. return K._function1("sqrt", "$number", new K.closure85());
  87833. });
  87834. _lazy($, "_acos", "$get$_acos", function() {
  87835. return K._function1("acos", "$number", new K.closure95());
  87836. });
  87837. _lazy($, "_asin", "$get$_asin", function() {
  87838. return K._function1("asin", "$number", new K.closure94());
  87839. });
  87840. _lazy($, "_atan", "$get$_atan", function() {
  87841. return K._function1("atan", "$number", new K.closure93());
  87842. });
  87843. _lazy($, "_atan2", "$get$_atan2", function() {
  87844. return K._function1("atan2", "$y, $x", new K.closure92());
  87845. });
  87846. _lazy($, "_cos", "$get$_cos", function() {
  87847. return K._function1("cos", "$number", new K.closure90());
  87848. });
  87849. _lazy($, "_sin", "$get$_sin", function() {
  87850. return K._function1("sin", "$number", new K.closure86());
  87851. });
  87852. _lazy($, "_tan", "$get$_tan", function() {
  87853. return K._function1("tan", "$number", new K.closure84());
  87854. });
  87855. _lazy($, "_compatible", "$get$_compatible", function() {
  87856. return K._function1("compatible", "$number1, $number2", new K.closure18());
  87857. });
  87858. _lazy($, "_isUnitless", "$get$_isUnitless", function() {
  87859. return K._function1("is-unitless", "$number", new K.closure17());
  87860. });
  87861. _lazy($, "_unit", "$get$_unit", function() {
  87862. return K._function1("unit", "$number", new K.closure19());
  87863. });
  87864. _lazy($, "_percentage", "$get$_percentage", function() {
  87865. return K._function1("percentage", "$number", new K.closure21());
  87866. });
  87867. _lazy($, "_random", "$get$_random0", function() {
  87868. return P.Random_Random();
  87869. });
  87870. _lazy($, "_randomFunction", "$get$_randomFunction", function() {
  87871. return K._function1("random", "$limit: null", new K.closure20());
  87872. });
  87873. _lazy($, "global3", "$get$global", function() {
  87874. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([Q._function5("feature-exists", "$feature", new Q.closure101()), Q._function5("inspect", "$value", new Q.closure102()), Q._function5("type-of", "$value", new Q.closure103()), Q._function5("keywords", "$args", new Q.closure104())], type$.JSArray_BuiltInCallable), type$.BuiltInCallable);
  87875. });
  87876. _lazy($, "global4", "$get$global4", function() {
  87877. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$get$_isSuperselector(), $.$get$_simpleSelectors(), $.$get$_parse().withName$1("selector-parse"), $.$get$_nest().withName$1("selector-nest"), $.$get$_append().withName$1("selector-append"), $.$get$_extend().withName$1("selector-extend"), $.$get$_replace().withName$1("selector-replace"), $.$get$_unify().withName$1("selector-unify")], type$.JSArray_BuiltInCallable), type$.BuiltInCallable);
  87878. });
  87879. _lazy($, "module3", "$get$module3", function() {
  87880. return Q.BuiltInModule$("selector", H.setRuntimeTypeInfo([$.$get$_isSuperselector(), $.$get$_simpleSelectors(), $.$get$_parse(), $.$get$_nest(), $.$get$_append(), $.$get$_extend(), $.$get$_replace(), $.$get$_unify()], type$.JSArray_BuiltInCallable), null, null, type$.BuiltInCallable);
  87881. });
  87882. _lazy($, "_nest", "$get$_nest", function() {
  87883. return T._function0("nest", "$selectors...", new T.closure13());
  87884. });
  87885. _lazy($, "_append0", "$get$_append", function() {
  87886. return T._function0("append", "$selectors...", new T.closure12());
  87887. });
  87888. _lazy($, "_extend", "$get$_extend", function() {
  87889. return T._function0("extend", "$selector, $extendee, $extender", new T.closure11());
  87890. });
  87891. _lazy($, "_replace", "$get$_replace", function() {
  87892. return T._function0("replace", "$selector, $original, $replacement", new T.closure10());
  87893. });
  87894. _lazy($, "_unify", "$get$_unify", function() {
  87895. return T._function0("unify", "$selector1, $selector2", new T.closure9());
  87896. });
  87897. _lazy($, "_isSuperselector", "$get$_isSuperselector", function() {
  87898. return T._function0("is-superselector", "$super, $sub", new T.closure16());
  87899. });
  87900. _lazy($, "_simpleSelectors", "$get$_simpleSelectors", function() {
  87901. return T._function0("simple-selectors", "$selector", new T.closure15());
  87902. });
  87903. _lazy($, "_parse", "$get$_parse", function() {
  87904. return T._function0("parse", "$selector", new T.closure14());
  87905. });
  87906. _lazy($, "_random0", "$get$_random", function() {
  87907. return P.Random_Random();
  87908. });
  87909. _lazy($, "_previousUniqueId", "$get$_previousUniqueId", function() {
  87910. return $.$get$_random().nextInt$1(H._asIntNullable(P.pow(36, 6)));
  87911. });
  87912. _lazy($, "global5", "$get$global5", function() {
  87913. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$get$_unquote(), $.$get$_quote(), $.$get$_toUpperCase(), $.$get$_toLowerCase(), $.$get$_uniqueId(), $.$get$_length().withName$1("str-length"), $.$get$_insert().withName$1("str-insert"), $.$get$_index().withName$1("str-index"), $.$get$_slice().withName$1("str-slice")], type$.JSArray_BuiltInCallable), type$.BuiltInCallable);
  87914. });
  87915. _lazy($, "module4", "$get$module4", function() {
  87916. return Q.BuiltInModule$("string", H.setRuntimeTypeInfo([$.$get$_unquote(), $.$get$_quote(), $.$get$_toUpperCase(), $.$get$_toLowerCase(), $.$get$_length(), $.$get$_insert(), $.$get$_index(), $.$get$_slice(), $.$get$_uniqueId()], type$.JSArray_BuiltInCallable), null, null, type$.BuiltInCallable);
  87917. });
  87918. _lazy($, "_unquote", "$get$_unquote", function() {
  87919. return D._function("unquote", "$string", new D.closure8());
  87920. });
  87921. _lazy($, "_quote", "$get$_quote", function() {
  87922. return D._function("quote", "$string", new D.closure7());
  87923. });
  87924. _lazy($, "_length0", "$get$_length", function() {
  87925. return D._function("length", "$string", new D.closure3());
  87926. });
  87927. _lazy($, "_insert", "$get$_insert", function() {
  87928. return D._function("insert", "$string, $insert, $index", new D.closure2());
  87929. });
  87930. _lazy($, "_index0", "$get$_index", function() {
  87931. return D._function("index", "$string, $substring", new D.closure1());
  87932. });
  87933. _lazy($, "_slice", "$get$_slice", function() {
  87934. return D._function("slice", "$string, $start-at, $end-at: -1", new D.closure0());
  87935. });
  87936. _lazy($, "_toUpperCase", "$get$_toUpperCase", function() {
  87937. return D._function("to-upper-case", "$string", new D.closure6());
  87938. });
  87939. _lazy($, "_toLowerCase", "$get$_toLowerCase", function() {
  87940. return D._function("to-lower-case", "$string", new D.closure5());
  87941. });
  87942. _lazy($, "_uniqueId", "$get$_uniqueId", function() {
  87943. return D._function("unique-id", "", new D.closure4());
  87944. });
  87945. _lazy($, "stderr", "$get$stderr", function() {
  87946. return new B.Stderr(self.process.stderr);
  87947. });
  87948. _lazy($, "Logger_quiet", "$get$Logger_quiet", function() {
  87949. return new F._QuietLogger();
  87950. });
  87951. _lazy($, "_disallowedFunctionNames", "$get$_disallowedFunctionNames", function() {
  87952. var t1 = $.$get$globalFunctions();
  87953. t1 = t1.map$1$1(t1, new Q.closure105(), type$.String).toSet$0(0);
  87954. t1.add$1(0, "if");
  87955. t1.remove$1(0, "rgb");
  87956. t1.remove$1(0, "rgba");
  87957. t1.remove$1(0, "hsl");
  87958. t1.remove$1(0, "hsla");
  87959. t1.remove$1(0, "grayscale");
  87960. t1.remove$1(0, "invert");
  87961. t1.remove$1(0, "alpha");
  87962. t1.remove$1(0, "opacity");
  87963. t1.remove$1(0, "saturate");
  87964. return t1;
  87965. });
  87966. _lazy($, "epsilon", "$get$epsilon", function() {
  87967. return P.pow(10, -11);
  87968. });
  87969. _lazy($, "_inverseEpsilon", "$get$_inverseEpsilon", function() {
  87970. return 1 / $.$get$epsilon();
  87971. });
  87972. _lazy($, "_noSourceUrl", "$get$_noSourceUrl", function() {
  87973. return P.Uri_parse("-");
  87974. });
  87975. _lazy($, "_conversions", "$get$_conversions", function() {
  87976. var t1 = type$.String,
  87977. t2 = type$.num;
  87978. return P.LinkedHashMap_LinkedHashMap$_literal(["in", P.LinkedHashMap_LinkedHashMap$_literal(["in", 1, "cm", 0.39370078740157477, "pc", 0.16666666666666666, "mm", 0.03937007874015748, "q", 0.00984251968503937, "pt", 0.013888888888888888, "px", 0.010416666666666666], t1, t2), "cm", P.LinkedHashMap_LinkedHashMap$_literal(["in", 2.54, "cm", 1, "pc", 0.42333333333333334, "mm", 0.1, "q", 0.025, "pt", 0.035277777777777776, "px", 0.026458333333333334], t1, t2), "pc", P.LinkedHashMap_LinkedHashMap$_literal(["in", 6, "cm", 2.3622047244094486, "pc", 1, "mm", 0.2362204724409449, "q", 0.05905511811023623, "pt", 0.08333333333333333, "px", 0.0625], t1, t2), "mm", P.LinkedHashMap_LinkedHashMap$_literal(["in", 25.4, "cm", 10, "pc", 4.233333333333333, "mm", 1, "q", 0.25, "pt", 0.35277777777777775, "px", 0.26458333333333334], t1, t2), "q", P.LinkedHashMap_LinkedHashMap$_literal(["in", 101.6, "cm", 40, "pc", 16.933333333333334, "mm", 4, "q", 1, "pt", 1.411111111111111, "px", 1.0583333333333333], t1, t2), "pt", P.LinkedHashMap_LinkedHashMap$_literal(["in", 72, "cm", 28.346456692913385, "pc", 12, "mm", 2.834645669291339, "q", 0.7086614173228347, "pt", 1, "px", 0.75], t1, t2), "px", P.LinkedHashMap_LinkedHashMap$_literal(["in", 96, "cm", 37.79527559055118, "pc", 16, "mm", 3.7795275590551185, "q", 0.9448818897637796, "pt", 1.3333333333333333, "px", 1], t1, t2), "deg", P.LinkedHashMap_LinkedHashMap$_literal(["deg", 1, "grad", 0.9, "rad", 57.29577951308232, "turn", 360], t1, t2), "grad", P.LinkedHashMap_LinkedHashMap$_literal(["deg", 1.1111111111111112, "grad", 1, "rad", 63.66197723675813, "turn", 400], t1, t2), "rad", P.LinkedHashMap_LinkedHashMap$_literal(["deg", 0.017453292519943295, "grad", 0.015707963267948967, "rad", 1, "turn", 6.283185307179586], t1, t2), "turn", P.LinkedHashMap_LinkedHashMap$_literal(["deg", 0.002777777777777778, "grad", 0.0025, "rad", 0.15915494309189535, "turn", 1], t1, t2), "s", P.LinkedHashMap_LinkedHashMap$_literal(["s", 1, "ms", 0.001], t1, t2), "ms", P.LinkedHashMap_LinkedHashMap$_literal(["s", 1000, "ms", 1], t1, t2), "Hz", P.LinkedHashMap_LinkedHashMap$_literal(["Hz", 1, "kHz", 1000], t1, t2), "kHz", P.LinkedHashMap_LinkedHashMap$_literal(["Hz", 0.001, "kHz", 1], t1, t2), "dpi", P.LinkedHashMap_LinkedHashMap$_literal(["dpi", 1, "dpcm", 2.54, "dppx", 96], t1, t2), "dpcm", P.LinkedHashMap_LinkedHashMap$_literal(["dpi", 0.39370078740157477, "dpcm", 1, "dppx", 37.79527559055118], t1, t2), "dppx", P.LinkedHashMap_LinkedHashMap$_literal(["dpi", 0.010416666666666666, "dpcm", 0.026458333333333334, "dppx", 1], t1, t2)], t1, H.findType("Map<String,num>"));
  87979. });
  87980. _lazy($, "_emptyQuoted", "$get$_emptyQuoted", function() {
  87981. return D.SassString$("", true);
  87982. });
  87983. _lazy($, "_emptyUnquoted", "$get$_emptyUnquoted", function() {
  87984. return D.SassString$("", false);
  87985. });
  87986. _lazy($, "MAX_INT32", "$get$MAX_INT32", function() {
  87987. return P.pow(2, 31) - 1;
  87988. });
  87989. _lazy($, "MIN_INT32", "$get$MIN_INT32", function() {
  87990. return -P.pow(2, 31);
  87991. });
  87992. _lazy($, "_vmFrame", "$get$_vmFrame", function() {
  87993. return P.RegExp_RegExp("^#\\d+\\s+(\\S.*) \\((.+?)((?::\\d+){0,2})\\)$", false);
  87994. });
  87995. _lazy($, "_v8Frame", "$get$_v8Frame", function() {
  87996. return P.RegExp_RegExp("^\\s*at (?:(\\S.*?)(?: \\[as [^\\]]+\\])? \\((.*)\\)|(.*))$", false);
  87997. });
  87998. _lazy($, "_v8UrlLocation", "$get$_v8UrlLocation", function() {
  87999. return P.RegExp_RegExp("^(.*):(\\d+):(\\d+)|native$", false);
  88000. });
  88001. _lazy($, "_v8EvalLocation", "$get$_v8EvalLocation", function() {
  88002. return P.RegExp_RegExp("^eval at (?:\\S.*?) \\((.*)\\)(?:, .*?:\\d+:\\d+)?$", false);
  88003. });
  88004. _lazy($, "_firefoxSafariFrame", "$get$_firefoxSafariFrame", function() {
  88005. return P.RegExp_RegExp("^(?:([^@(/]*)(?:\\(.*\\))?((?:/[^/]*)*)(?:\\(.*\\))?@)?(.*?):(\\d*)(?::(\\d*))?$", false);
  88006. });
  88007. _lazy($, "_friendlyFrame", "$get$_friendlyFrame", function() {
  88008. return P.RegExp_RegExp("^(\\S+)(?: (\\d+)(?::(\\d+))?)?\\s+([^\\d].*)$", false);
  88009. });
  88010. _lazy($, "_asyncBody", "$get$_asyncBody", function() {
  88011. return P.RegExp_RegExp("<(<anonymous closure>|[^>]+)_async_body>", false);
  88012. });
  88013. _lazy($, "_initialDot", "$get$_initialDot", function() {
  88014. return P.RegExp_RegExp("^\\.", false);
  88015. });
  88016. _lazy($, "Frame__uriRegExp", "$get$Frame__uriRegExp", function() {
  88017. return P.RegExp_RegExp("^[a-zA-Z][-+.a-zA-Z\\d]*://", false);
  88018. });
  88019. _lazy($, "Frame__windowsRegExp", "$get$Frame__windowsRegExp", function() {
  88020. return P.RegExp_RegExp("^([a-zA-Z]:[\\\\/]|\\\\\\\\)", false);
  88021. });
  88022. _lazy($, "_terseRegExp", "$get$_terseRegExp", function() {
  88023. return P.RegExp_RegExp("(-patch)?([/\\\\].*)?$", false);
  88024. });
  88025. _lazy($, "_v8Trace", "$get$_v8Trace", function() {
  88026. return P.RegExp_RegExp("\\n ?at ", false);
  88027. });
  88028. _lazy($, "_v8TraceLine", "$get$_v8TraceLine", function() {
  88029. return P.RegExp_RegExp(" ?at ", false);
  88030. });
  88031. _lazy($, "_firefoxSafariTrace", "$get$_firefoxSafariTrace", function() {
  88032. return P.RegExp_RegExp("^(([.0-9A-Za-z_$/<]|\\(.*\\))*@)?[^\\s]*:\\d*$", true);
  88033. });
  88034. _lazy($, "_friendlyTrace", "$get$_friendlyTrace", function() {
  88035. return P.RegExp_RegExp("^[^\\s<][^\\s]*( \\d+(:\\d+)?)?[ \\t]+[^\\s]+$", true);
  88036. });
  88037. _lazy($, "_newlineRegExp", "$get$_newlineRegExp", function() {
  88038. return P.RegExp_RegExp("\\r\\n?|\\n", false);
  88039. });
  88040. _lazy($, "booleanConstructor", "$get$booleanConstructor", function() {
  88041. return new Z.closure249().call$0();
  88042. });
  88043. _lazy($, "_microsoftFilterStart0", "$get$_microsoftFilterStart0", function() {
  88044. return P.RegExp_RegExp("^[a-zA-Z]+\\s*=", false);
  88045. });
  88046. _lazy($, "global6", "$get$global7", function() {
  88047. var _s27_ = "$red, $green, $blue, $alpha",
  88048. _s19_ = "$red, $green, $blue",
  88049. _s37_ = "$hue, $saturation, $lightness, $alpha",
  88050. _s29_ = "$hue, $saturation, $lightness",
  88051. _s17_ = "$hue, $saturation",
  88052. _s15_ = "$color, $amount",
  88053. t1 = type$.String,
  88054. t2 = H.findType("Value0(List<Value0>)");
  88055. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$get$_red0(), $.$get$_green0(), $.$get$_blue0(), $.$get$_mix0(), Q.BuiltInCallable$overloadedFunction0("rgb", P.LinkedHashMap_LinkedHashMap$_literal([_s27_, new K.closure151(), _s19_, new K.closure152(), "$color, $alpha", new K.closure153(), "$channels", new K.closure154()], t1, t2)), Q.BuiltInCallable$overloadedFunction0("rgba", P.LinkedHashMap_LinkedHashMap$_literal([_s27_, new K.closure155(), _s19_, new K.closure156(), "$color, $alpha", new K.closure157(), "$channels", new K.closure158()], t1, t2)), K._function11("invert", "$color, $weight: 100%", new K.closure159()), $.$get$_hue0(), $.$get$_saturation0(), $.$get$_lightness0(), $.$get$_complement0(), Q.BuiltInCallable$overloadedFunction0("hsl", P.LinkedHashMap_LinkedHashMap$_literal([_s37_, new K.closure160(), _s29_, new K.closure161(), _s17_, new K.closure162(), "$channels", new K.closure163()], t1, t2)), Q.BuiltInCallable$overloadedFunction0("hsla", P.LinkedHashMap_LinkedHashMap$_literal([_s37_, new K.closure164(), _s29_, new K.closure165(), _s17_, new K.closure166(), "$channels", new K.closure167()], t1, t2)), K._function11("grayscale", "$color", new K.closure168()), K._function11("adjust-hue", "$color, $degrees", new K.closure169()), K._function11("lighten", _s15_, new K.closure170()), K._function11("darken", _s15_, new K.closure171()), Q.BuiltInCallable$overloadedFunction0("saturate", P.LinkedHashMap_LinkedHashMap$_literal(["$amount", new K.closure172(), "$color, $amount", new K.closure173()], t1, t2)), K._function11("desaturate", _s15_, new K.closure174()), K._function11("opacify", _s15_, K.color0___opacify$closure()), K._function11("fade-in", _s15_, K.color0___opacify$closure()), K._function11("transparentize", _s15_, K.color0___transparentize$closure()), K._function11("fade-out", _s15_, K.color0___transparentize$closure()), Q.BuiltInCallable$overloadedFunction0("alpha", P.LinkedHashMap_LinkedHashMap$_literal(["$color", new K.closure175(), "$args...", new K.closure176()], t1, t2)), K._function11("opacity", "$color", new K.closure177()), $.$get$_ieHexStr0(), $.$get$_adjust0().withName$1("adjust-color"), $.$get$_scale0().withName$1("scale-color"), $.$get$_change0().withName$1("change-color")], type$.JSArray_BuiltInCallable_2), type$.BuiltInCallable_2);
  88056. });
  88057. _lazy($, "module5", "$get$module5", function() {
  88058. var _s9_ = "lightness",
  88059. _s10_ = "saturation",
  88060. _s5_ = "alpha";
  88061. return Q.BuiltInModule$0("color", H.setRuntimeTypeInfo([$.$get$_red0(), $.$get$_green0(), $.$get$_blue0(), $.$get$_mix0(), K._function11("invert", "$color, $weight: 100%", new K.closure204()), $.$get$_hue0(), $.$get$_saturation0(), $.$get$_lightness0(), $.$get$_complement0(), K._removedColorFunction0("adjust-hue", "hue", false), K._removedColorFunction0("lighten", _s9_, false), K._removedColorFunction0("darken", _s9_, true), K._removedColorFunction0("saturate", _s10_, false), K._removedColorFunction0("desaturate", _s10_, true), K._function11("grayscale", "$color", new K.closure205()), K._removedColorFunction0("opacify", _s5_, false), K._removedColorFunction0("fade-in", _s5_, false), K._removedColorFunction0("transparentize", _s5_, true), K._removedColorFunction0("fade-out", _s5_, true), Q.BuiltInCallable$overloadedFunction0(_s5_, P.LinkedHashMap_LinkedHashMap$_literal(["$color", new K.closure206(), "$args...", new K.closure207()], type$.String, H.findType("Value0(List<Value0>)"))), K._function11("opacity", "$color", new K.closure208()), $.$get$_adjust0(), $.$get$_scale0(), $.$get$_change0(), $.$get$_ieHexStr0()], type$.JSArray_BuiltInCallable_2), null, null, type$.BuiltInCallable_2);
  88062. });
  88063. _lazy($, "_red0", "$get$_red0", function() {
  88064. return K._function11("red", "$color", new K.closure191());
  88065. });
  88066. _lazy($, "_green0", "$get$_green0", function() {
  88067. return K._function11("green", "$color", new K.closure190());
  88068. });
  88069. _lazy($, "_blue0", "$get$_blue0", function() {
  88070. return K._function11("blue", "$color", new K.closure189());
  88071. });
  88072. _lazy($, "_mix0", "$get$_mix0", function() {
  88073. return K._function11("mix", "$color1, $color2, $weight: 50%", new K.closure188());
  88074. });
  88075. _lazy($, "_hue0", "$get$_hue0", function() {
  88076. return K._function11("hue", "$color", new K.closure187());
  88077. });
  88078. _lazy($, "_saturation0", "$get$_saturation0", function() {
  88079. return K._function11("saturation", "$color", new K.closure186());
  88080. });
  88081. _lazy($, "_lightness0", "$get$_lightness0", function() {
  88082. return K._function11("lightness", "$color", new K.closure185());
  88083. });
  88084. _lazy($, "_complement0", "$get$_complement0", function() {
  88085. return K._function11("complement", "$color", new K.closure184());
  88086. });
  88087. _lazy($, "_adjust0", "$get$_adjust0", function() {
  88088. return K._function11("adjust", "$color, $kwargs...", new K.closure182());
  88089. });
  88090. _lazy($, "_scale0", "$get$_scale0", function() {
  88091. return K._function11("scale", "$color, $kwargs...", new K.closure181());
  88092. });
  88093. _lazy($, "_change0", "$get$_change0", function() {
  88094. return K._function11("change", "$color, $kwargs...", new K.closure180());
  88095. });
  88096. _lazy($, "_ieHexStr0", "$get$_ieHexStr0", function() {
  88097. return K._function11("ie-hex-str", "$color", new K.closure183());
  88098. });
  88099. _lazy($, "colorConstructor", "$get$colorConstructor", function() {
  88100. return B.createClass("SassColor", new K.closure239(), P.LinkedHashMap_LinkedHashMap$_literal(["getR", new K.closure240(), "getG", new K.closure241(), "getB", new K.closure242(), "getA", new K.closure243(), "setR", new K.closure244(), "setG", new K.closure245(), "setB", new K.closure246(), "setA", new K.closure247(), "toString", new K.closure248()], type$.String, type$.Function));
  88101. });
  88102. _lazy($, "colorsByName0", "$get$colorsByName0", function() {
  88103. var _null = null;
  88104. return P.LinkedHashMap_LinkedHashMap$_literal(["yellowgreen", K.SassColor$rgb0(154, 205, 50, _null, _null), "yellow", K.SassColor$rgb0(255, 255, 0, _null, _null), "whitesmoke", K.SassColor$rgb0(245, 245, 245, _null, _null), "white", K.SassColor$rgb0(255, 255, 255, _null, _null), "wheat", K.SassColor$rgb0(245, 222, 179, _null, _null), "violet", K.SassColor$rgb0(238, 130, 238, _null, _null), "turquoise", K.SassColor$rgb0(64, 224, 208, _null, _null), "transparent", K.SassColor$rgb0(0, 0, 0, 0, _null), "tomato", K.SassColor$rgb0(255, 99, 71, _null, _null), "thistle", K.SassColor$rgb0(216, 191, 216, _null, _null), "teal", K.SassColor$rgb0(0, 128, 128, _null, _null), "tan", K.SassColor$rgb0(210, 180, 140, _null, _null), "steelblue", K.SassColor$rgb0(70, 130, 180, _null, _null), "springgreen", K.SassColor$rgb0(0, 255, 127, _null, _null), "snow", K.SassColor$rgb0(255, 250, 250, _null, _null), "slategrey", K.SassColor$rgb0(112, 128, 144, _null, _null), "slategray", K.SassColor$rgb0(112, 128, 144, _null, _null), "slateblue", K.SassColor$rgb0(106, 90, 205, _null, _null), "skyblue", K.SassColor$rgb0(135, 206, 235, _null, _null), "silver", K.SassColor$rgb0(192, 192, 192, _null, _null), "sienna", K.SassColor$rgb0(160, 82, 45, _null, _null), "seashell", K.SassColor$rgb0(255, 245, 238, _null, _null), "seagreen", K.SassColor$rgb0(46, 139, 87, _null, _null), "sandybrown", K.SassColor$rgb0(244, 164, 96, _null, _null), "salmon", K.SassColor$rgb0(250, 128, 114, _null, _null), "saddlebrown", K.SassColor$rgb0(139, 69, 19, _null, _null), "royalblue", K.SassColor$rgb0(65, 105, 225, _null, _null), "rosybrown", K.SassColor$rgb0(188, 143, 143, _null, _null), "red", K.SassColor$rgb0(255, 0, 0, _null, _null), "rebeccapurple", K.SassColor$rgb0(102, 51, 153, _null, _null), "purple", K.SassColor$rgb0(128, 0, 128, _null, _null), "powderblue", K.SassColor$rgb0(176, 224, 230, _null, _null), "plum", K.SassColor$rgb0(221, 160, 221, _null, _null), "pink", K.SassColor$rgb0(255, 192, 203, _null, _null), "peru", K.SassColor$rgb0(205, 133, 63, _null, _null), "peachpuff", K.SassColor$rgb0(255, 218, 185, _null, _null), "papayawhip", K.SassColor$rgb0(255, 239, 213, _null, _null), "palevioletred", K.SassColor$rgb0(219, 112, 147, _null, _null), "paleturquoise", K.SassColor$rgb0(175, 238, 238, _null, _null), "palegreen", K.SassColor$rgb0(152, 251, 152, _null, _null), "palegoldenrod", K.SassColor$rgb0(238, 232, 170, _null, _null), "orchid", K.SassColor$rgb0(218, 112, 214, _null, _null), "orangered", K.SassColor$rgb0(255, 69, 0, _null, _null), "orange", K.SassColor$rgb0(255, 165, 0, _null, _null), "olivedrab", K.SassColor$rgb0(107, 142, 35, _null, _null), "olive", K.SassColor$rgb0(128, 128, 0, _null, _null), "oldlace", K.SassColor$rgb0(253, 245, 230, _null, _null), "navy", K.SassColor$rgb0(0, 0, 128, _null, _null), "navajowhite", K.SassColor$rgb0(255, 222, 173, _null, _null), "moccasin", K.SassColor$rgb0(255, 228, 181, _null, _null), "mistyrose", K.SassColor$rgb0(255, 228, 225, _null, _null), "mintcream", K.SassColor$rgb0(245, 255, 250, _null, _null), "midnightblue", K.SassColor$rgb0(25, 25, 112, _null, _null), "mediumvioletred", K.SassColor$rgb0(199, 21, 133, _null, _null), "mediumturquoise", K.SassColor$rgb0(72, 209, 204, _null, _null), "mediumspringgreen", K.SassColor$rgb0(0, 250, 154, _null, _null), "mediumslateblue", K.SassColor$rgb0(123, 104, 238, _null, _null), "mediumseagreen", K.SassColor$rgb0(60, 179, 113, _null, _null), "mediumpurple", K.SassColor$rgb0(147, 112, 219, _null, _null), "mediumorchid", K.SassColor$rgb0(186, 85, 211, _null, _null), "mediumblue", K.SassColor$rgb0(0, 0, 205, _null, _null), "mediumaquamarine", K.SassColor$rgb0(102, 205, 170, _null, _null), "maroon", K.SassColor$rgb0(128, 0, 0, _null, _null), "magenta", K.SassColor$rgb0(255, 0, 255, _null, _null), "linen", K.SassColor$rgb0(250, 240, 230, _null, _null), "limegreen", K.SassColor$rgb0(50, 205, 50, _null, _null), "lime", K.SassColor$rgb0(0, 255, 0, _null, _null), "lightyellow", K.SassColor$rgb0(255, 255, 224, _null, _null), "lightsteelblue", K.SassColor$rgb0(176, 196, 222, _null, _null), "lightslategrey", K.SassColor$rgb0(119, 136, 153, _null, _null), "lightslategray", K.SassColor$rgb0(119, 136, 153, _null, _null), "lightskyblue", K.SassColor$rgb0(135, 206, 250, _null, _null), "lightseagreen", K.SassColor$rgb0(32, 178, 170, _null, _null), "lightsalmon", K.SassColor$rgb0(255, 160, 122, _null, _null), "lightpink", K.SassColor$rgb0(255, 182, 193, _null, _null), "lightgrey", K.SassColor$rgb0(211, 211, 211, _null, _null), "lightgreen", K.SassColor$rgb0(144, 238, 144, _null, _null), "lightgray", K.SassColor$rgb0(211, 211, 211, _null, _null), "lightgoldenrodyellow", K.SassColor$rgb0(250, 250, 210, _null, _null), "lightcyan", K.SassColor$rgb0(224, 255, 255, _null, _null), "lightcoral", K.SassColor$rgb0(240, 128, 128, _null, _null), "lightblue", K.SassColor$rgb0(173, 216, 230, _null, _null), "lemonchiffon", K.SassColor$rgb0(255, 250, 205, _null, _null), "lawngreen", K.SassColor$rgb0(124, 252, 0, _null, _null), "lavenderblush", K.SassColor$rgb0(255, 240, 245, _null, _null), "lavender", K.SassColor$rgb0(230, 230, 250, _null, _null), "khaki", K.SassColor$rgb0(240, 230, 140, _null, _null), "ivory", K.SassColor$rgb0(255, 255, 240, _null, _null), "indigo", K.SassColor$rgb0(75, 0, 130, _null, _null), "indianred", K.SassColor$rgb0(205, 92, 92, _null, _null), "hotpink", K.SassColor$rgb0(255, 105, 180, _null, _null), "honeydew", K.SassColor$rgb0(240, 255, 240, _null, _null), "grey", K.SassColor$rgb0(128, 128, 128, _null, _null), "greenyellow", K.SassColor$rgb0(173, 255, 47, _null, _null), "green", K.SassColor$rgb0(0, 128, 0, _null, _null), "gray", K.SassColor$rgb0(128, 128, 128, _null, _null), "goldenrod", K.SassColor$rgb0(218, 165, 32, _null, _null), "gold", K.SassColor$rgb0(255, 215, 0, _null, _null), "ghostwhite", K.SassColor$rgb0(248, 248, 255, _null, _null), "gainsboro", K.SassColor$rgb0(220, 220, 220, _null, _null), "fuchsia", K.SassColor$rgb0(255, 0, 255, _null, _null), "forestgreen", K.SassColor$rgb0(34, 139, 34, _null, _null), "floralwhite", K.SassColor$rgb0(255, 250, 240, _null, _null), "firebrick", K.SassColor$rgb0(178, 34, 34, _null, _null), "dodgerblue", K.SassColor$rgb0(30, 144, 255, _null, _null), "dimgrey", K.SassColor$rgb0(105, 105, 105, _null, _null), "dimgray", K.SassColor$rgb0(105, 105, 105, _null, _null), "deepskyblue", K.SassColor$rgb0(0, 191, 255, _null, _null), "deeppink", K.SassColor$rgb0(255, 20, 147, _null, _null), "darkviolet", K.SassColor$rgb0(148, 0, 211, _null, _null), "darkturquoise", K.SassColor$rgb0(0, 206, 209, _null, _null), "darkslategrey", K.SassColor$rgb0(47, 79, 79, _null, _null), "darkslategray", K.SassColor$rgb0(47, 79, 79, _null, _null), "darkslateblue", K.SassColor$rgb0(72, 61, 139, _null, _null), "darkseagreen", K.SassColor$rgb0(143, 188, 143, _null, _null), "darksalmon", K.SassColor$rgb0(233, 150, 122, _null, _null), "darkred", K.SassColor$rgb0(139, 0, 0, _null, _null), "darkorchid", K.SassColor$rgb0(153, 50, 204, _null, _null), "darkorange", K.SassColor$rgb0(255, 140, 0, _null, _null), "darkolivegreen", K.SassColor$rgb0(85, 107, 47, _null, _null), "darkmagenta", K.SassColor$rgb0(139, 0, 139, _null, _null), "darkkhaki", K.SassColor$rgb0(189, 183, 107, _null, _null), "darkgrey", K.SassColor$rgb0(169, 169, 169, _null, _null), "darkgreen", K.SassColor$rgb0(0, 100, 0, _null, _null), "darkgray", K.SassColor$rgb0(169, 169, 169, _null, _null), "darkgoldenrod", K.SassColor$rgb0(184, 134, 11, _null, _null), "darkcyan", K.SassColor$rgb0(0, 139, 139, _null, _null), "darkblue", K.SassColor$rgb0(0, 0, 139, _null, _null), "cyan", K.SassColor$rgb0(0, 255, 255, _null, _null), "crimson", K.SassColor$rgb0(220, 20, 60, _null, _null), "cornsilk", K.SassColor$rgb0(255, 248, 220, _null, _null), "cornflowerblue", K.SassColor$rgb0(100, 149, 237, _null, _null), "coral", K.SassColor$rgb0(255, 127, 80, _null, _null), "chocolate", K.SassColor$rgb0(210, 105, 30, _null, _null), "chartreuse", K.SassColor$rgb0(127, 255, 0, _null, _null), "cadetblue", K.SassColor$rgb0(95, 158, 160, _null, _null), "burlywood", K.SassColor$rgb0(222, 184, 135, _null, _null), "brown", K.SassColor$rgb0(165, 42, 42, _null, _null), "blueviolet", K.SassColor$rgb0(138, 43, 226, _null, _null), "blue", K.SassColor$rgb0(0, 0, 255, _null, _null), "blanchedalmond", K.SassColor$rgb0(255, 235, 205, _null, _null), "black", K.SassColor$rgb0(0, 0, 0, _null, _null), "bisque", K.SassColor$rgb0(255, 228, 196, _null, _null), "beige", K.SassColor$rgb0(245, 245, 220, _null, _null), "azure", K.SassColor$rgb0(240, 255, 255, _null, _null), "aquamarine", K.SassColor$rgb0(127, 255, 212, _null, _null), "aqua", K.SassColor$rgb0(0, 255, 255, _null, _null), "antiquewhite", K.SassColor$rgb0(250, 235, 215, _null, _null), "aliceblue", K.SassColor$rgb0(240, 248, 255, _null, _null)], type$.String, type$.SassColor_2);
  88105. });
  88106. _lazy($, "namesByColor0", "$get$namesByColor0", function() {
  88107. var t1 = type$.String,
  88108. t2 = type$.SassColor_2;
  88109. return Y.mapMap($.$get$colorsByName0(), new X.closure178(), new X.closure179(), t1, t2, t2, t1);
  88110. });
  88111. _lazy($, "_disallowedFunctionNames0", "$get$_disallowedFunctionNames0", function() {
  88112. var t1 = $.$get$globalFunctions0();
  88113. t1 = t1.map$1$1(t1, new Q.closure213(), type$.String).toSet$0(0);
  88114. t1.add$1(0, "if");
  88115. t1.remove$1(0, "rgb");
  88116. t1.remove$1(0, "rgba");
  88117. t1.remove$1(0, "hsl");
  88118. t1.remove$1(0, "hsla");
  88119. t1.remove$1(0, "grayscale");
  88120. t1.remove$1(0, "invert");
  88121. t1.remove$1(0, "alpha");
  88122. t1.remove$1(0, "opacity");
  88123. t1.remove$1(0, "saturate");
  88124. return t1;
  88125. });
  88126. _lazy($, "globalFunctions0", "$get$globalFunctions0", function() {
  88127. var t2,
  88128. t1 = H.setRuntimeTypeInfo([], type$.JSArray_BuiltInCallable_2);
  88129. for (t2 = $.$get$global7(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  88130. t1.push(t2.__internal$_current);
  88131. for (t2 = $.$get$global8(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  88132. t1.push(t2.__internal$_current);
  88133. for (t2 = $.$get$global9(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  88134. t1.push(t2.__internal$_current);
  88135. for (t2 = $.$get$global10(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  88136. t1.push(t2.__internal$_current);
  88137. for (t2 = $.$get$global11(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  88138. t1.push(t2.__internal$_current);
  88139. for (t2 = $.$get$global12(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  88140. t1.push(t2.__internal$_current);
  88141. for (t2 = $.$get$global6(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  88142. t1.push(t2.__internal$_current);
  88143. t1.push(Q.BuiltInCallable$function0("if", "$condition, $if-true, $if-false", new Y.closure107(), null));
  88144. return P.UnmodifiableListView$(t1, type$.BuiltInCallable_2);
  88145. });
  88146. _lazy($, "coreModules0", "$get$coreModules0", function() {
  88147. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$get$module5(), $.$get$module6(), $.$get$module7(), $.$get$module8(), $.$get$module9(), $.$get$module10()], type$.JSArray_BuiltInModule_BuiltInCallable_2), H.findType("BuiltInModule0<BuiltInCallable0>"));
  88148. });
  88149. _lazy($, "IfExpression_declaration0", "$get$IfExpression_declaration0", function() {
  88150. return B.ArgumentDeclaration_ArgumentDeclaration$parse0("@function if($condition, $if-true, $if-false) {", null);
  88151. });
  88152. _lazy($, "global7", "$get$global8", function() {
  88153. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$get$_length2(), $.$get$_nth0(), $.$get$_setNth0(), $.$get$_join0(), $.$get$_append2(), $.$get$_zip0(), $.$get$_index2(), $.$get$_isBracketed0(), $.$get$_separator0().withName$1("list-separator")], type$.JSArray_BuiltInCallable_2), type$.BuiltInCallable_2);
  88154. });
  88155. _lazy($, "module6", "$get$module6", function() {
  88156. return Q.BuiltInModule$0("list", H.setRuntimeTypeInfo([$.$get$_length2(), $.$get$_nth0(), $.$get$_setNth0(), $.$get$_join0(), $.$get$_append2(), $.$get$_zip0(), $.$get$_index2(), $.$get$_isBracketed0(), $.$get$_separator0()], type$.JSArray_BuiltInCallable_2), null, null, type$.BuiltInCallable_2);
  88157. });
  88158. _lazy($, "_length1", "$get$_length2", function() {
  88159. return D._function10("length", "$list", new D.closure150());
  88160. });
  88161. _lazy($, "_nth0", "$get$_nth0", function() {
  88162. return D._function10("nth", "$list, $n", new D.closure149());
  88163. });
  88164. _lazy($, "_setNth0", "$get$_setNth0", function() {
  88165. return D._function10("set-nth", "$list, $n, $value", new D.closure148());
  88166. });
  88167. _lazy($, "_join0", "$get$_join0", function() {
  88168. return D._function10("join", "$list1, $list2, $separator: auto, $bracketed: auto", new D.closure147());
  88169. });
  88170. _lazy($, "_append1", "$get$_append2", function() {
  88171. return D._function10("append", "$list, $val, $separator: auto", new D.closure146());
  88172. });
  88173. _lazy($, "_zip0", "$get$_zip0", function() {
  88174. return D._function10("zip", "$lists...", new D.closure145());
  88175. });
  88176. _lazy($, "_index1", "$get$_index2", function() {
  88177. return D._function10("index", "$list, $value", new D.closure144());
  88178. });
  88179. _lazy($, "_separator0", "$get$_separator0", function() {
  88180. return D._function10("separator", "$list", new D.closure142());
  88181. });
  88182. _lazy($, "_isBracketed0", "$get$_isBracketed0", function() {
  88183. return D._function10("is-bracketed", "$list", new D.closure143());
  88184. });
  88185. _lazy($, "listConstructor", "$get$listConstructor", function() {
  88186. return B.createClass("SassList", new D.closure232(), P.LinkedHashMap_LinkedHashMap$_literal(["getValue", new D.closure233(), "setValue", new D.closure234(), "getSeparator", new D.closure235(), "setSeparator", new D.closure236(), "getLength", new D.closure237(), "toString", new D.closure238()], type$.String, type$.Function));
  88187. });
  88188. _lazy($, "global8", "$get$global9", function() {
  88189. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$get$_get0().withName$1("map-get"), $.$get$_merge0().withName$1("map-merge"), $.$get$_remove0().withName$1("map-remove"), $.$get$_keys0().withName$1("map-keys"), $.$get$_values0().withName$1("map-values"), $.$get$_hasKey0().withName$1("map-has-key")], type$.JSArray_BuiltInCallable_2), type$.BuiltInCallable_2);
  88190. });
  88191. _lazy($, "module7", "$get$module7", function() {
  88192. return Q.BuiltInModule$0("map", H.setRuntimeTypeInfo([$.$get$_get0(), $.$get$_merge0(), $.$get$_remove0(), $.$get$_keys0(), $.$get$_values0(), $.$get$_hasKey0()], type$.JSArray_BuiltInCallable_2), null, null, type$.BuiltInCallable_2);
  88193. });
  88194. _lazy($, "_get0", "$get$_get0", function() {
  88195. return A._function9("get", "$map, $key", new A.closure141());
  88196. });
  88197. _lazy($, "_merge0", "$get$_merge0", function() {
  88198. return A._function9("merge", "$map1, $map2", new A.closure140());
  88199. });
  88200. _lazy($, "_remove0", "$get$_remove0", function() {
  88201. return Q.BuiltInCallable$overloadedFunction0("remove", P.LinkedHashMap_LinkedHashMap$_literal(["$map", new A.closure138(), "$map, $key, $keys...", new A.closure139()], type$.String, H.findType("Value0(List<Value0>)")));
  88202. });
  88203. _lazy($, "_keys0", "$get$_keys0", function() {
  88204. return A._function9("keys", "$map", new A.closure137());
  88205. });
  88206. _lazy($, "_values0", "$get$_values0", function() {
  88207. return A._function9("values", "$map", new A.closure136());
  88208. });
  88209. _lazy($, "_hasKey0", "$get$_hasKey0", function() {
  88210. return A._function9("has-key", "$map, $key", new A.closure135());
  88211. });
  88212. _lazy($, "mapConstructor", "$get$mapConstructor", function() {
  88213. return B.createClass("SassMap", new A.closure225(), P.LinkedHashMap_LinkedHashMap$_literal(["getKey", new A.closure226(), "getValue", new A.closure227(), "getLength", new A.closure228(), "setKey", new A.closure229(), "setValue", new A.closure230(), "toString", new A.closure231()], type$.String, type$.Function));
  88214. });
  88215. _lazy($, "global9", "$get$global10", function() {
  88216. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$get$_abs0(), $.$get$_ceil0(), $.$get$_floor0(), $.$get$_max0(), $.$get$_min0(), $.$get$_percentage0(), $.$get$_randomFunction0(), $.$get$_round0(), $.$get$_unit0(), $.$get$_compatible0().withName$1("comparable"), $.$get$_isUnitless0().withName$1("unitless")], type$.JSArray_BuiltInCallable_2), type$.BuiltInCallable_2);
  88217. });
  88218. _lazy($, "module8", "$get$module8", function() {
  88219. return Q.BuiltInModule$0("math", H.setRuntimeTypeInfo([$.$get$_abs0(), $.$get$_acos0(), $.$get$_asin0(), $.$get$_atan0(), $.$get$_atan20(), $.$get$_ceil0(), $.$get$_clamp0(), $.$get$_cos0(), $.$get$_compatible0(), $.$get$_floor0(), $.$get$_hypot0(), $.$get$_isUnitless0(), $.$get$_log0(), $.$get$_max0(), $.$get$_min0(), $.$get$_percentage0(), $.$get$_pow0(), $.$get$_randomFunction0(), $.$get$_round0(), $.$get$_sin0(), $.$get$_sqrt0(), $.$get$_tan0(), $.$get$_unit0()], type$.JSArray_BuiltInCallable_2), null, P.LinkedHashMap_LinkedHashMap$_literal(["e", T.SassNumber$0(2.718281828459045, null), "pi", T.SassNumber$0(3.141592653589793, null)], type$.String, type$.Value_2), type$.BuiltInCallable_2);
  88220. });
  88221. _lazy($, "_ceil0", "$get$_ceil0", function() {
  88222. return K._numberFunction0("ceil", new K.closure133());
  88223. });
  88224. _lazy($, "_clamp0", "$get$_clamp0", function() {
  88225. return K._function8("clamp", "$min, $number, $max", new K.closure199());
  88226. });
  88227. _lazy($, "_floor0", "$get$_floor0", function() {
  88228. return K._numberFunction0("floor", new K.closure132());
  88229. });
  88230. _lazy($, "_max0", "$get$_max0", function() {
  88231. return K._function8("max", "$numbers...", new K.closure131());
  88232. });
  88233. _lazy($, "_min0", "$get$_min0", function() {
  88234. return K._function8("min", "$numbers...", new K.closure130());
  88235. });
  88236. _lazy($, "_round0", "$get$_round0", function() {
  88237. return K._numberFunction0("round", T.number2__fuzzyRound$closure());
  88238. });
  88239. _lazy($, "_abs0", "$get$_abs0", function() {
  88240. return K._numberFunction0("abs", new K.closure134());
  88241. });
  88242. _lazy($, "_hypot0", "$get$_hypot0", function() {
  88243. return K._function8("hypot", "$numbers...", new K.closure197());
  88244. });
  88245. _lazy($, "_log0", "$get$_log0", function() {
  88246. return K._function8("log", "$number, $base: null", new K.closure196());
  88247. });
  88248. _lazy($, "_pow0", "$get$_pow0", function() {
  88249. return K._function8("pow", "$base, $exponent", new K.closure195());
  88250. });
  88251. _lazy($, "_sqrt0", "$get$_sqrt0", function() {
  88252. return K._function8("sqrt", "$number", new K.closure193());
  88253. });
  88254. _lazy($, "_acos0", "$get$_acos0", function() {
  88255. return K._function8("acos", "$number", new K.closure203());
  88256. });
  88257. _lazy($, "_asin0", "$get$_asin0", function() {
  88258. return K._function8("asin", "$number", new K.closure202());
  88259. });
  88260. _lazy($, "_atan0", "$get$_atan0", function() {
  88261. return K._function8("atan", "$number", new K.closure201());
  88262. });
  88263. _lazy($, "_atan20", "$get$_atan20", function() {
  88264. return K._function8("atan2", "$y, $x", new K.closure200());
  88265. });
  88266. _lazy($, "_cos0", "$get$_cos0", function() {
  88267. return K._function8("cos", "$number", new K.closure198());
  88268. });
  88269. _lazy($, "_sin0", "$get$_sin0", function() {
  88270. return K._function8("sin", "$number", new K.closure194());
  88271. });
  88272. _lazy($, "_tan0", "$get$_tan0", function() {
  88273. return K._function8("tan", "$number", new K.closure192());
  88274. });
  88275. _lazy($, "_compatible0", "$get$_compatible0", function() {
  88276. return K._function8("compatible", "$number1, $number2", new K.closure126());
  88277. });
  88278. _lazy($, "_isUnitless0", "$get$_isUnitless0", function() {
  88279. return K._function8("is-unitless", "$number", new K.closure125());
  88280. });
  88281. _lazy($, "_unit0", "$get$_unit0", function() {
  88282. return K._function8("unit", "$number", new K.closure127());
  88283. });
  88284. _lazy($, "_percentage0", "$get$_percentage0", function() {
  88285. return K._function8("percentage", "$number", new K.closure129());
  88286. });
  88287. _lazy($, "_random1", "$get$_random2", function() {
  88288. return P.Random_Random();
  88289. });
  88290. _lazy($, "_randomFunction0", "$get$_randomFunction0", function() {
  88291. return K._function8("random", "$limit: null", new K.closure128());
  88292. });
  88293. _lazy($, "global10", "$get$global6", function() {
  88294. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([Q._function12("feature-exists", "$feature", new Q.closure209()), Q._function12("inspect", "$value", new Q.closure210()), Q._function12("type-of", "$value", new Q.closure211()), Q._function12("keywords", "$args", new Q.closure212())], type$.JSArray_BuiltInCallable_2), type$.BuiltInCallable_2);
  88295. });
  88296. _lazy($, "stderr0", "$get$stderr0", function() {
  88297. return new B.Stderr0(self.process.stderr);
  88298. });
  88299. _lazy($, "nullConstructor", "$get$nullConstructor", function() {
  88300. return new O.closure224().call$0();
  88301. });
  88302. _lazy($, "epsilon0", "$get$epsilon0", function() {
  88303. return P.pow(10, -11);
  88304. });
  88305. _lazy($, "_inverseEpsilon0", "$get$_inverseEpsilon0", function() {
  88306. return 1 / $.$get$epsilon0();
  88307. });
  88308. _lazy($, "numberConstructor", "$get$numberConstructor", function() {
  88309. return B.createClass("SassNumber", new T.closure218(), P.LinkedHashMap_LinkedHashMap$_literal(["getValue", new T.closure219(), "setValue", new T.closure220(), "getUnit", new T.closure221(), "setUnit", new T.closure222(), "toString", new T.closure223()], type$.String, type$.Function));
  88310. });
  88311. _lazy($, "_conversions0", "$get$_conversions0", function() {
  88312. var t1 = type$.String,
  88313. t2 = type$.num;
  88314. return P.LinkedHashMap_LinkedHashMap$_literal(["in", P.LinkedHashMap_LinkedHashMap$_literal(["in", 1, "cm", 0.39370078740157477, "pc", 0.16666666666666666, "mm", 0.03937007874015748, "q", 0.00984251968503937, "pt", 0.013888888888888888, "px", 0.010416666666666666], t1, t2), "cm", P.LinkedHashMap_LinkedHashMap$_literal(["in", 2.54, "cm", 1, "pc", 0.42333333333333334, "mm", 0.1, "q", 0.025, "pt", 0.035277777777777776, "px", 0.026458333333333334], t1, t2), "pc", P.LinkedHashMap_LinkedHashMap$_literal(["in", 6, "cm", 2.3622047244094486, "pc", 1, "mm", 0.2362204724409449, "q", 0.05905511811023623, "pt", 0.08333333333333333, "px", 0.0625], t1, t2), "mm", P.LinkedHashMap_LinkedHashMap$_literal(["in", 25.4, "cm", 10, "pc", 4.233333333333333, "mm", 1, "q", 0.25, "pt", 0.35277777777777775, "px", 0.26458333333333334], t1, t2), "q", P.LinkedHashMap_LinkedHashMap$_literal(["in", 101.6, "cm", 40, "pc", 16.933333333333334, "mm", 4, "q", 1, "pt", 1.411111111111111, "px", 1.0583333333333333], t1, t2), "pt", P.LinkedHashMap_LinkedHashMap$_literal(["in", 72, "cm", 28.346456692913385, "pc", 12, "mm", 2.834645669291339, "q", 0.7086614173228347, "pt", 1, "px", 0.75], t1, t2), "px", P.LinkedHashMap_LinkedHashMap$_literal(["in", 96, "cm", 37.79527559055118, "pc", 16, "mm", 3.7795275590551185, "q", 0.9448818897637796, "pt", 1.3333333333333333, "px", 1], t1, t2), "deg", P.LinkedHashMap_LinkedHashMap$_literal(["deg", 1, "grad", 0.9, "rad", 57.29577951308232, "turn", 360], t1, t2), "grad", P.LinkedHashMap_LinkedHashMap$_literal(["deg", 1.1111111111111112, "grad", 1, "rad", 63.66197723675813, "turn", 400], t1, t2), "rad", P.LinkedHashMap_LinkedHashMap$_literal(["deg", 0.017453292519943295, "grad", 0.015707963267948967, "rad", 1, "turn", 6.283185307179586], t1, t2), "turn", P.LinkedHashMap_LinkedHashMap$_literal(["deg", 0.002777777777777778, "grad", 0.0025, "rad", 0.15915494309189535, "turn", 1], t1, t2), "s", P.LinkedHashMap_LinkedHashMap$_literal(["s", 1, "ms", 0.001], t1, t2), "ms", P.LinkedHashMap_LinkedHashMap$_literal(["s", 1000, "ms", 1], t1, t2), "Hz", P.LinkedHashMap_LinkedHashMap$_literal(["Hz", 1, "kHz", 1000], t1, t2), "kHz", P.LinkedHashMap_LinkedHashMap$_literal(["Hz", 0.001, "kHz", 1], t1, t2), "dpi", P.LinkedHashMap_LinkedHashMap$_literal(["dpi", 1, "dpcm", 2.54, "dppx", 96], t1, t2), "dpcm", P.LinkedHashMap_LinkedHashMap$_literal(["dpi", 0.39370078740157477, "dpcm", 1, "dppx", 37.79527559055118], t1, t2), "dppx", P.LinkedHashMap_LinkedHashMap$_literal(["dpi", 0.010416666666666666, "dpcm", 0.026458333333333334, "dppx", 1], t1, t2)], t1, H.findType("Map<String,num>"));
  88315. });
  88316. _lazy($, "global11", "$get$global11", function() {
  88317. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$get$_isSuperselector0(), $.$get$_simpleSelectors0(), $.$get$_parse0().withName$1("selector-parse"), $.$get$_nest0().withName$1("selector-nest"), $.$get$_append1().withName$1("selector-append"), $.$get$_extend0().withName$1("selector-extend"), $.$get$_replace0().withName$1("selector-replace"), $.$get$_unify0().withName$1("selector-unify")], type$.JSArray_BuiltInCallable_2), type$.BuiltInCallable_2);
  88318. });
  88319. _lazy($, "module9", "$get$module9", function() {
  88320. return Q.BuiltInModule$0("selector", H.setRuntimeTypeInfo([$.$get$_isSuperselector0(), $.$get$_simpleSelectors0(), $.$get$_parse0(), $.$get$_nest0(), $.$get$_append1(), $.$get$_extend0(), $.$get$_replace0(), $.$get$_unify0()], type$.JSArray_BuiltInCallable_2), null, null, type$.BuiltInCallable_2);
  88321. });
  88322. _lazy($, "_nest0", "$get$_nest0", function() {
  88323. return T._function7("nest", "$selectors...", new T.closure121());
  88324. });
  88325. _lazy($, "_append2", "$get$_append1", function() {
  88326. return T._function7("append", "$selectors...", new T.closure120());
  88327. });
  88328. _lazy($, "_extend0", "$get$_extend0", function() {
  88329. return T._function7("extend", "$selector, $extendee, $extender", new T.closure119());
  88330. });
  88331. _lazy($, "_replace0", "$get$_replace0", function() {
  88332. return T._function7("replace", "$selector, $original, $replacement", new T.closure118());
  88333. });
  88334. _lazy($, "_unify0", "$get$_unify0", function() {
  88335. return T._function7("unify", "$selector1, $selector2", new T.closure117());
  88336. });
  88337. _lazy($, "_isSuperselector0", "$get$_isSuperselector0", function() {
  88338. return T._function7("is-superselector", "$super, $sub", new T.closure124());
  88339. });
  88340. _lazy($, "_simpleSelectors0", "$get$_simpleSelectors0", function() {
  88341. return T._function7("simple-selectors", "$selector", new T.closure123());
  88342. });
  88343. _lazy($, "_parse0", "$get$_parse0", function() {
  88344. return T._function7("parse", "$selector", new T.closure122());
  88345. });
  88346. _lazy($, "_random2", "$get$_random1", function() {
  88347. return P.Random_Random();
  88348. });
  88349. _lazy($, "_previousUniqueId0", "$get$_previousUniqueId0", function() {
  88350. return $.$get$_random1().nextInt$1(H._asIntNullable(P.pow(36, 6)));
  88351. });
  88352. _lazy($, "global12", "$get$global12", function() {
  88353. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$get$_unquote0(), $.$get$_quote0(), $.$get$_toUpperCase0(), $.$get$_toLowerCase0(), $.$get$_uniqueId0(), $.$get$_length1().withName$1("str-length"), $.$get$_insert0().withName$1("str-insert"), $.$get$_index1().withName$1("str-index"), $.$get$_slice0().withName$1("str-slice")], type$.JSArray_BuiltInCallable_2), type$.BuiltInCallable_2);
  88354. });
  88355. _lazy($, "module10", "$get$module10", function() {
  88356. return Q.BuiltInModule$0("string", H.setRuntimeTypeInfo([$.$get$_unquote0(), $.$get$_quote0(), $.$get$_toUpperCase0(), $.$get$_toLowerCase0(), $.$get$_length1(), $.$get$_insert0(), $.$get$_index1(), $.$get$_slice0(), $.$get$_uniqueId0()], type$.JSArray_BuiltInCallable_2), null, null, type$.BuiltInCallable_2);
  88357. });
  88358. _lazy($, "_unquote0", "$get$_unquote0", function() {
  88359. return D._function6("unquote", "$string", new D.closure116());
  88360. });
  88361. _lazy($, "_quote0", "$get$_quote0", function() {
  88362. return D._function6("quote", "$string", new D.closure115());
  88363. });
  88364. _lazy($, "_length2", "$get$_length1", function() {
  88365. return D._function6("length", "$string", new D.closure111());
  88366. });
  88367. _lazy($, "_insert0", "$get$_insert0", function() {
  88368. return D._function6("insert", "$string, $insert, $index", new D.closure110());
  88369. });
  88370. _lazy($, "_index2", "$get$_index1", function() {
  88371. return D._function6("index", "$string, $substring", new D.closure109());
  88372. });
  88373. _lazy($, "_slice0", "$get$_slice0", function() {
  88374. return D._function6("slice", "$string, $start-at, $end-at: -1", new D.closure108());
  88375. });
  88376. _lazy($, "_toUpperCase0", "$get$_toUpperCase0", function() {
  88377. return D._function6("to-upper-case", "$string", new D.closure114());
  88378. });
  88379. _lazy($, "_toLowerCase0", "$get$_toLowerCase0", function() {
  88380. return D._function6("to-lower-case", "$string", new D.closure113());
  88381. });
  88382. _lazy($, "_uniqueId0", "$get$_uniqueId0", function() {
  88383. return D._function6("unique-id", "", new D.closure112());
  88384. });
  88385. _lazy($, "stringConstructor", "$get$stringConstructor", function() {
  88386. return B.createClass("SassString", new D.closure214(), P.LinkedHashMap_LinkedHashMap$_literal(["getValue", new D.closure215(), "setValue", new D.closure216(), "toString", new D.closure217()], type$.String, type$.Function));
  88387. });
  88388. _lazy($, "_emptyQuoted0", "$get$_emptyQuoted0", function() {
  88389. return D.SassString$0("", true);
  88390. });
  88391. _lazy($, "_emptyUnquoted0", "$get$_emptyUnquoted0", function() {
  88392. return D.SassString$0("", false);
  88393. });
  88394. _lazy($, "_jsThrow", "$get$_jsThrow", function() {
  88395. return new self.Function("error", "throw error;");
  88396. });
  88397. _lazy($, "_isUndefined", "$get$_isUndefined", function() {
  88398. return new self.Function("value", "return value === undefined;");
  88399. });
  88400. _lazy($, "_jsInstanceOf", "$get$_jsInstanceOf", function() {
  88401. return new self.Function("value", "type", "return value instanceof type;");
  88402. });
  88403. _lazy($, "_noSourceUrl0", "$get$_noSourceUrl0", function() {
  88404. return P.Uri_parse("-");
  88405. });
  88406. })();
  88407. (function nativeSupport() {
  88408. !function() {
  88409. var intern = function(s) {
  88410. var o = {};
  88411. o[s] = 1;
  88412. return Object.keys(hunkHelpers.convertToFastObject(o))[0];
  88413. };
  88414. init.getIsolateTag = function(name) {
  88415. return intern("___dart_" + name + init.isolateTag);
  88416. };
  88417. var tableProperty = "___dart_isolate_tags_";
  88418. var usedProperties = Object[tableProperty] || (Object[tableProperty] = Object.create(null));
  88419. var rootProperty = "_ZxYxX";
  88420. for (var i = 0;; i++) {
  88421. var property = intern(rootProperty + "_" + i + "_");
  88422. if (!(property in usedProperties)) {
  88423. usedProperties[property] = 1;
  88424. init.isolateTag = property;
  88425. break;
  88426. }
  88427. }
  88428. init.dispatchPropertyName = init.getIsolateTag("dispatch_record");
  88429. }();
  88430. hunkHelpers.setOrUpdateInterceptorsByTag({ArrayBuffer: J.Interceptor, DataView: H.NativeTypedData, ArrayBufferView: H.NativeTypedData, Float32Array: H.NativeFloat32List, Float64Array: H.NativeFloat64List, Int16Array: H.NativeInt16List, Int32Array: H.NativeInt32List, Int8Array: H.NativeInt8List, Uint16Array: H.NativeUint16List, Uint32Array: H.NativeUint32List, Uint8ClampedArray: H.NativeUint8ClampedList, CanvasPixelArray: H.NativeUint8ClampedList, Uint8Array: H.NativeUint8List});
  88431. hunkHelpers.setOrUpdateLeafTags({ArrayBuffer: true, DataView: true, ArrayBufferView: false, Float32Array: true, Float64Array: true, Int16Array: true, Int32Array: true, Int8Array: true, Uint16Array: true, Uint32Array: true, Uint8ClampedArray: true, CanvasPixelArray: true, Uint8Array: false});
  88432. H.NativeTypedArray.$nativeSuperclassTag = "ArrayBufferView";
  88433. H._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin.$nativeSuperclassTag = "ArrayBufferView";
  88434. H._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin.$nativeSuperclassTag = "ArrayBufferView";
  88435. H.NativeTypedArrayOfDouble.$nativeSuperclassTag = "ArrayBufferView";
  88436. H._NativeTypedArrayOfInt_NativeTypedArray_ListMixin.$nativeSuperclassTag = "ArrayBufferView";
  88437. H._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin.$nativeSuperclassTag = "ArrayBufferView";
  88438. H.NativeTypedArrayOfInt.$nativeSuperclassTag = "ArrayBufferView";
  88439. })();
  88440. Function.prototype.call$2 = function(a, b) {
  88441. return this(a, b);
  88442. };
  88443. Function.prototype.call$1 = function(a) {
  88444. return this(a);
  88445. };
  88446. Function.prototype.call$0 = function() {
  88447. return this();
  88448. };
  88449. Function.prototype.call$1$1 = function(a) {
  88450. return this(a);
  88451. };
  88452. Function.prototype.call$3 = function(a, b, c) {
  88453. return this(a, b, c);
  88454. };
  88455. Function.prototype.call$4 = function(a, b, c, d) {
  88456. return this(a, b, c, d);
  88457. };
  88458. Function.prototype.call$6 = function(a, b, c, d, e, f) {
  88459. return this(a, b, c, d, e, f);
  88460. };
  88461. Function.prototype.call$5 = function(a, b, c, d, e) {
  88462. return this(a, b, c, d, e);
  88463. };
  88464. Function.prototype.call$1$3 = function(a, b, c) {
  88465. return this(a, b, c);
  88466. };
  88467. Function.prototype.call$2$2 = function(a, b) {
  88468. return this(a, b);
  88469. };
  88470. Function.prototype.call$1$0 = function() {
  88471. return this();
  88472. };
  88473. convertAllToFastObject(holders);
  88474. convertToFastObject($);
  88475. (function(callback) {
  88476. if (typeof document === "undefined") {
  88477. callback(null);
  88478. return;
  88479. }
  88480. if (typeof document.currentScript != 'undefined') {
  88481. callback(document.currentScript);
  88482. return;
  88483. }
  88484. var scripts = document.scripts;
  88485. function onLoad(event) {
  88486. for (var i = 0; i < scripts.length; ++i)
  88487. scripts[i].removeEventListener("load", onLoad, false);
  88488. callback(event.target);
  88489. }
  88490. for (var i = 0; i < scripts.length; ++i)
  88491. scripts[i].addEventListener("load", onLoad, false);
  88492. })(function(currentScript) {
  88493. init.currentScript = currentScript;
  88494. if (typeof dartMainRunner === "function")
  88495. dartMainRunner(R.main0, []);
  88496. else
  88497. R.main0([]);
  88498. });
  88499. })();